71f60ac1afd5942e0981fc98cd3e534c3dc24a78,setup.py,,,#,7

Before Change


from os import path
from io import open  // for Python 2 and 3 compatibility

exec(open(path.join("pyod", "version.py")).read())
this_directory = path.abspath(path.dirname(__file__))

def readme():
    with open(path.join(this_directory, "README.rst"), encoding="utf-8") as f:

After Change


// get __version__ from _version.py
ver_file = path.join("pyod", "version.py")
with open(ver_file) as f:
    exec(f.read())

this_directory = path.abspath(path.dirname(__file__))

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: yzhao062/pyod
Commit Name: 71f60ac1afd5942e0981fc98cd3e534c3dc24a78
Time: 2018-11-26
Author: yuezhao@cs.toronto.edu
File Name: setup.py
Class Name:
Method Name:


Project Name: BerkeleyAutomation/gqcnn
Commit Name: 66f8a11ad9236d6bf6a09a5391b07abfa5c4c9b9
Time: 2019-04-12
Author: vsatish@berkeley.edu
File Name: setup.py
Class Name:
Method Name:


Project Name: nipy/dipy
Commit Name: c585a9779e5d8ae0b0b148792f8a7f8cecf73532
Time: 2019-02-12
Author: skab12@gmail.com
File Name: tools/make_examples.py
Class Name:
Method Name: run_script