ebed3093c57867e94073e55747add4bd8d4d2925,setup.py,,,#,10

Before Change


******************************************************************************


try:
    markdown = os.stat("README.md").st_mtime
    if os.path.exists("README.rst"):
        rst = os.stat("README.rst").st_mtime
    else:
        rst = markdown - 1

    if rst >= markdown:
        with open("README.rst", "r") as rst:
            description = rst.read()
    else:
        import pypandoc

        osx_line_ending = "\r"
        windows_line_ending = "\r\n"
        linux_line_ending = "\n"

        description = pypandoc.convert_file("README.md", "rst")
        description = description.replace(windows_line_ending, linux_line_ending)
        description = description.replace(osx_line_ending, linux_line_ending)
        with open("README.rst", "w") as rst:
            rst.write(description)

except (ImportError, OSError):
    import warnings

    warnings.warn("Unable to convert README.md to README.rst", UserWarning)
    description = open("README.md").read()

additional_files = ["py.typed"]
for filename in glob.iglob("./linearmodels/datasets/**", recursive=True):
    if ".csv.bz" in filename:
        additional_files.append(filename.replace("./linearmodels/", ""))

After Change


******************************************************************************

with open("README.md", "r") as readme:
    long_description = readme.read()


additional_files = ["py.typed"]
for filename in glob.iglob("./linearmodels/datasets/**", recursive=True):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: bashtage/linearmodels
Commit Name: ebed3093c57867e94073e55747add4bd8d4d2925
Time: 2020-02-02
Author: kevin.k.sheppard@gmail.com
File Name: setup.py
Class Name:
Method Name:


Project Name: rflamary/POT
Commit Name: 702f222a428cfabb464c92da5e101642afdc643d
Time: 2018-05-02
Author: remi.flamary@gmail.com
File Name: setup.py
Class Name:
Method Name:


Project Name: iskandr/fancyimpute
Commit Name: 69e3281193adeac365b0a223fbfb13eb8be2ee5e
Time: 2018-11-09
Author: alex.rubinsteyn@gmail.com
File Name: setup.py
Class Name:
Method Name: