29389772364178f76ccf565917870639cad283bb,einops.py,,get_axes_names,#,124

Before Change


    composite_axis_name = list(composite_axis_name)
    while len(composite_axis_name) > 0:
        letter = composite_axis_name.pop()
        if "a" <= letter <= "z" or letter == "_":
            elementary_axes.append(letter)
        else:
            assert "0" <= letter <= "9"
            prev_letter = composite_axis_name.pop()
            assert "a" <= prev_letter <= "z"
            elementary_axes.append(prev_letter + letter)
    return elementary_axes[::-1]


def transpose(tensor, pattern, **axes_lengths):

After Change


    for axis in axes_names:
        if axis == "_":
            continue
        assert "a" <= axis[0] <= "z"
        for letter in axis:
            assert str.isdigit(letter) or "a" <= letter <= "z"
    return axes_names
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: arogozhnikov/einops
Commit Name: 29389772364178f76ccf565917870639cad283bb
Time: 2018-09-27
Author: iamfullofspam@gmail.com
File Name: einops.py
Class Name:
Method Name: get_axes_names


Project Name: tensorflow/minigo
Commit Name: e2d6d2109f5fda3b49959cfd1b26f6aca1656268
Time: 2019-03-15
Author: tmadams@google.com
File Name: rl_loop/selfplay.py
Class Name:
Method Name: run_tpu


Project Name: pymanopt/pymanopt
Commit Name: 1c10f0dc589fc13e011d8ffc61f3d94c8d6adbb8
Time: 2020-02-02
Author: niklas.koep@gmail.com
File Name: pymanopt/core/problem.py
Class Name: Problem
Method Name: _flatten_arguments