8a41ecdc1ba365fb9d51e12b8ab793bc2a3f67fa,setup.py,,,#,10

Before Change



import build

this_file = os.path.dirname(__file__)

setup(
    name="torchaudio",
    version="0.1",
    description="An audio package for PyTorch",
    url="https://github.com/pytorch/audio",
    author="Soumith Chintala, David Pollack, Sean Naren",
    author_email="soumith@pytorch.org",
    // Require cffi.
    install_requires=["cffi>=1.0.0"],
    setup_requires=["cffi>=1.0.0"],
    // Exclude the build files.
    packages=find_packages(exclude=["build"]),
    // Package where to put the extensions. Has to be a prefix of build.py.
    ext_package="",
    // Extensions to compile.
    cffi_modules=[
        os.path.join(this_file, "build.py:ffi")
    ],
)

After Change


    author_email="soumith@pytorch.org",
    // Exclude the build files.
    packages=find_packages(exclude=["build"]),
    ext_modules=[
        CppExtension(
            "_torch_sox", ["torchaudio/torch_sox.cpp"], libraries=["sox"]),
    ],
    cmdclass={"build_ext": BuildExtension})
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 10

Instances


Project Name: pytorch/audio
Commit Name: 8a41ecdc1ba365fb9d51e12b8ab793bc2a3f67fa
Time: 2018-04-25
Author: psag@fb.com
File Name: setup.py
Class Name:
Method Name:


Project Name: pytorch/audio
Commit Name: cfe3f29686673fecc5d4b05ab2ed1b9bca476950
Time: 2018-05-07
Author: ezyang@mit.edu
File Name: setup.py
Class Name:
Method Name:


Project Name: pytorch/audio
Commit Name: 18c01bef0b65cc5b11799bda7b19f4856fdfeac3
Time: 2018-05-09
Author: peter@goldsborough.me
File Name: setup.py
Class Name:
Method Name: