fc56073588771c81b4e134bff54195f5e74e6b43,thinc/backends/ops.py,Ops,multibatch,#,73

Before Change


        is_list = isinstance(sequence, list)
        if isinstance(sequence, list):  // need condition here for type checking
            sequence = Objects(sequence)
            others = tuple(Objects(sq) if isinstance(sq, list) else sq for sq in others)
        sequences = (sequence,) + tuple(others)
        sizes = itertools.repeat(size) if isinstance(size, int) else size
        indices = numpy.arange(len(sequence))

After Change


            subseqs = []
            for sequence in sequences:
                if isinstance(sequence, list):
                    subseq = [sequence[i] for i in idx_batch]
                elif isinstance(sequence, tuple):
                    subseq = tuple(sequence[i] for i in idx_batch)  // type: ignore
                else:
                    subseq = sequence[idx_batch]  // type: ignore
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: explosion/thinc
Commit Name: fc56073588771c81b4e134bff54195f5e74e6b43
Time: 2020-01-21
Author: ines@ines.io
File Name: thinc/backends/ops.py
Class Name: Ops
Method Name: multibatch


Project Name: scikit-learn-contrib/sklearn-pandas
Commit Name: 2646c8b4d4a5ff79b71f439b27c8bf291c580291
Time: 2017-10-20
Author: developer.z@outlook.com
File Name: sklearn_pandas/features_generator.py
Class Name:
Method Name: gen_features


Project Name: tyarkoni/pliers
Commit Name: 3ab4b8614054e9920676ae479df1ff4c2c2e438b
Time: 2018-02-13
Author: quinten.mcnamara@gmail.com
File Name: pliers/extractors/api.py
Class Name: IndicoAPIExtractor
Method Name: _extract