ef7e473d04352059c33af7bef48321e5dec7b3da,setup.py,,calculate_version,#,14
Before Change
def calculate_version():
// Fetch version from git tags, and write to version.py.
// Also, when git is not available (PyPi package), use stored version.py.
version_py = os.path.join(os.path.dirname(__file__) , "version.py")
try:
version_git = subprocess.check_output(["git", "tag"]).rstrip().split("\n")[-1]
except Exception:
After Change
def calculate_version():
initpy = open("tpot/__init__.py").read().split("\n")
version = next(filter(lambda x: "__version__" in x, initpy)).split("\"")[1]
return version
requirements = parse_requirements("requirements.txt")
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: EpistasisLab/tpot
Commit Name: ef7e473d04352059c33af7bef48321e5dec7b3da
Time: 2015-11-13
Author: rso@randalolson.com
File Name: setup.py
Class Name:
Method Name: calculate_version
Project Name: tzutalin/labelImg
Commit Name: a86093ca60134ef0b5cce61e288eebe86cf3fa82
Time: 2020-11-14
Author: tzu.ta.lin@gmail.com
File Name: labelImg.py
Class Name: MainWindow
Method Name: showBoundingBoxFromAnnotationFile
Project Name: mozilla/TTS
Commit Name: 278c7a91b77448236af73d6942da425a5d5a2e34
Time: 2019-04-28
Author: egolge@mozilla.com
File Name: datasets/preprocess.py
Class Name:
Method Name: mozilla