58cb5e6c44bb9f3f85de74c85584e926b5954610,setup.py,,,#,7

Before Change


from Cython.Distutils import build_ext as _build_ext

list_pyx = ["cydtw", "cygak", "cysax", "cycc", "soft_dtw_fast"]
ext = [Extension("tslearn.%s" % s, ["tslearn/%s.pyx" % s], include_dirs=[numpy.get_include()]) for s in list_pyx]

setup(
    name="tslearn",

After Change


from Cython.Build import cythonize

// dirty but working (from POT)
__version__ = re.search(
    r"__version__\s*=\s*[\""]([^\""]*)[\""]",  // It excludes inline comment too
    open("tslearn/__init__.py").read()).group(1)
// The beautiful part is, I don"t even need to check exceptions here.
// If something messes up, let the build process fail noisy, BEFORE my release!
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: rtavenar/tslearn
Commit Name: 58cb5e6c44bb9f3f85de74c85584e926b5954610
Time: 2019-06-28
Author: romain.tavenard@univ-rennes2.fr
File Name: setup.py
Class Name:
Method Name:


Project Name: ilastik/ilastik
Commit Name: 66c44551f903a45b9a2b870c3f7b98390535c36d
Time: 2014-04-15
Author: bergs@janelia.hhmi.org
File Name: ilastik/__init__.py
Class Name:
Method Name: convertVersion


Project Name: bambinos/bambi
Commit Name: 4a33119910ed45d01edae121648bc7ea402b2a40
Time: 2017-03-22
Author: jake.a.westfall@gmail.com
File Name: bambi/backends/pymc.py
Class Name: PyMC3BackEnd
Method Name: _get_transformed_vars