def determine_anisotropy_classification(branch_classification: str) -> int:
    """
    Return value based on branch classification.

    Only C-C branches have a value, but this can be changed here.
    Classification can differ from 'C - C', 'C - I', 'I - I' (e.g. 'C - E') in
    which case a value (0) is still returned.

    :param branch_classification: Branch classification string.
    :return: Classification encoded as integer.

    E.g.

    >>> determine_anisotropy_classification("C - C")
    1

    >>> determine_anisotropy_classification("C - E")
    0
    """
    if branch_classification not in ("C - C", "C - I", "I - I"):
        return 0
    if branch_classification == "C - C":
        return 1
    if branch_classification == "C - I":
        return 0
    if branch_classification == "I - I":
        return 0
    return 0