c08e45b9968501980c5e5daab2a46c3b7305c162,setup.py,,update_tf_dep,#Any#,441

Before Change


                          "blank to manually install): ")
        if custom_tf and not os.path.isfile(custom_tf):
            out_error("{} not found".format(custom_tf))
            return
        if custom_tf:
            REQUIRED_PACKAGES.append(custom_tf)
        return

After Change


    custom_tf = os.path.realpath(os.path.expanduser(custom_tf))
    if not os.path.isfile(custom_tf):
        out_error("{} not found".format(custom_tf))
    elif os.path.splitext(custom_tf)[1] != ".whl":
        out_error("{} is not a valid pip wheel".format(custom_tf))
    elif custom_tf:
        REQUIRED_PACKAGES.append(custom_tf)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 4

Instances


Project Name: deepfakes/faceswap
Commit Name: c08e45b9968501980c5e5daab2a46c3b7305c162
Time: 2018-11-16
Author: 36920800+torzdf@users.noreply.github.com
File Name: setup.py
Class Name:
Method Name: update_tf_dep


Project Name: dmnfarrell/pandastable
Commit Name: 8886a3a02b5027e2b41f7f17253688b5b76779d1
Time: 2014-02-23
Author: farrell.damien@gmail.com@c7c09e87-b3be-f776-313c-63292bcc8aec
File Name: data.py
Class Name: TableModel
Method Name: save


Project Name: bjherger/ResumeParser
Commit Name: e08fcab00157590859a9a19bd483825e9ba75c18
Time: 2019-03-29
Author: 13herger@gmail.com
File Name: bin/lib.py
Class Name:
Method Name: convert_pdf


Project Name: biolab/orange3
Commit Name: 1327fcb931e87fa9ea5b67f2f2bcf05673914c27
Time: 2013-01-21
Author: janez.demsar@fri.uni-lj.si
File Name: Orange/data/io.py
Class Name: TabDelimReader
Method Name: read_file


Project Name: SheffieldML/GPy
Commit Name: 4f877dd62c19f94f2d0c06295ea4d9f60566b0b9
Time: 2015-10-12
Author: ibinbei@gmail.com
File Name: setup.py
Class Name:
Method Name: read_to_rst


Project Name: cesium-ml/cesium
Commit Name: 820de79517aaed577f9af9131f5ec87cd432f04a
Time: 2015-02-06
Author: a.crellinquick@gmail.com
File Name: mltsp/featurize.py
Class Name:
Method Name: shorten_fname