02b1345a9b521639f8966f35b6103fcdecdb8f91,setup.py,,,#,9

Before Change


    pkgname = "lingpy2"
    // replace manifest path

if this_version == "2":
    f = open("MANIFEST.in").read()
    if not "lingpy2" in f:
        out = open("MANIFEST.in","w")
        out.write(f.replace("lingpy","lingpy2"))
        out.close()
else:
    f = open("MANIFEST.in").read()
    if "lingpy2" in f:
        out = open("MANIFEST.in","w")
        out.write(f.replace("lingpy2","lingpy"))
        out.close()


// set up extension modules
if "install" in sys.argv or "bdist_egg" in sys.argv:
    if this_version == "3":

        if with_c: //"--with-c" in sys.argv or "--with-C" in sys.argv in sys.argv:

After Change


    pkg_dir = {"":"lingpy_build"}

    // import lingpy2 to compile the data
    sys.path = ["lingpy_build/"] + sys.path
    from lingpy import *

// set up extension modules
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: lingpy/lingpy
Commit Name: 02b1345a9b521639f8966f35b6103fcdecdb8f91
Time: 2013-09-16
Author: mattis.list@posteo.de
File Name: setup.py
Class Name:
Method Name:


Project Name: cesium-ml/cesium
Commit Name: af89ac5acf45685e5a48c8d61328552dc92f8b4f
Time: 2017-03-29
Author: brettnaul@gmail.com
File Name: cesium/data_management.py
Class Name:
Method Name: parse_headerfile


Project Name: MTG/freesound
Commit Name: da8c3cd7660e1a4b7fcc0e196462a05271ef7fef
Time: 2019-05-07
Author: frederic.font@upf.edu
File Name: utils/audioprocessing/processing.py
Class Name:
Method Name: convert_to_pcm