fdbb9a9d2348022d1ea305f8465d2fff2750d3b0,lingpy/algorithm/cython/compilePYX.py,,main,#,62
Before Change
pyx2py(inf)
input("pause")
os.system("cython calign.pyx")
os.system("cython cluster.pyx")
os.system("cython misc.pyx")
os.system("cython malign.pyx")
os.system("cython talign.pyx")
After Change
def main():
scripts = ["calign","cluster","misc","malign","talign"]
for script in scripts:
print("[i] compiling {0}...".format(script))
pyx2py(script)
os.system("cython "+script+".pyx")
cmd = "gcc -c -fPIC -I/usr/include/python{1}m/ {0}.c".format(script,
argv[1])
os.system(cmd)
os.system("gcc -shared "+script+".o -o "+script+".so")
print("... done.")
if __name__ == "__main__":
main()
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: lingpy/lingpy
Commit Name: fdbb9a9d2348022d1ea305f8465d2fff2750d3b0
Time: 2015-11-02
Author: mattis.list@uni-marburg.de
File Name: lingpy/algorithm/cython/compilePYX.py
Class Name:
Method Name: main
Project Name: open-mmlab/mmcv
Commit Name: aea750051f7660cf61dbd2360a25ea0bd13efa3b
Time: 2019-11-21
Author: rinatshigapov@gmail.com
File Name: setup.py
Class Name:
Method Name:
Project Name: testerSunshine/12306
Commit Name: 0afa64ac07be8b4679c2e69b6898ee45ff5e802c
Time: 2019-01-02
Author: 931128603@qq.com
File Name: config/AutoSynchroTime.py
Class Name:
Method Name: autoSynchroTime
Project Name: dPys/PyNets
Commit Name: a764d34be5933215313aa65f74cc1e0fb231fc7c
Time: 2020-11-29
Author: dpisner@utexas.edu
File Name: pynets/dmri/track.py
Class Name:
Method Name: run_tracking