4952a9ebd45cde469e15dfe8e896c737a63adebe,PyInstaller/lib/modulegraph/find_modules.py,,parse_mf_results,#Any#,63

Before Change


        if item.identifier == "__main__":
            continue
        src = item.filename
        if src:
            suffix = os.path.splitext(src)[1]

            if suffix in PY_SUFFIXES:
                py_files.append(item)
            elif suffix in C_SUFFIXES:
                extensions.append(item)
            else:
                raise TypeError("Don"t know how to handle "%s"" % repr(src))

    // sort on the file names, the output is nicer to read
    py_files.sort(key=lambda v: v.filename)
    extensions.sort(key=lambda v: v.filename)
    return py_files, extensions

After Change


                extensions.append(item)

            else:
                py_files.append(item)

    // sort on the file names, the output is nicer to read
    py_files.sort(key=lambda v: v.filename)
    extensions.sort(key=lambda v: v.filename)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: pyinstaller/pyinstaller
Commit Name: 4952a9ebd45cde469e15dfe8e896c737a63adebe
Time: 2013-07-12
Author: mzibr.public@gmail.com
File Name: PyInstaller/lib/modulegraph/find_modules.py
Class Name:
Method Name: parse_mf_results


Project Name: Theano/Theano
Commit Name: 24e7ed3b8f62fd702b2fea624189f93d145ad8b5
Time: 2017-05-30
Author: nouiz@nouiz.org
File Name: theano/gof/fg.py
Class Name: FunctionGraph
Method Name: orderings


Project Name: analysiscenter/batchflow
Commit Name: 4c50261df4847bdfd7c8067307e8532f96d04104
Time: 2019-08-02
Author: Tsimfer.SA@gazprom-neft.ru
File Name: batchflow/models/torch/encoder_decoder.py
Class Name: EncoderDecoder
Method Name: decoder