4fdfdc0c0c649b828857db13822894ecfc15361a,tools/build_versions.py,,main,#,8

Before Change


    for requirement_file in requirements_dir.glob("*.txt"):
        print(requirement_file.name)
        with open(str(requirement_file), "r") as fd:
            for req in requirements.parse(fd):
                try:
                    version = pkg_resources.get_distribution(req.name).version
                    print(req.name.rjust(20), version)
                except pkg_resources.DistributionNotFound:
                    print(req.name.rjust(20), "is not installed")

After Change


        print(requirement_file.name)
        with open(str(requirement_file), "r") as f:
            for req in f:
                req = req.strip()
                if req[0] == "//":
                    continue
                req = re.split("<|>|=|!|;", req)[0]
                try:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: scikit-image/scikit-image
Commit Name: 4fdfdc0c0c649b828857db13822894ecfc15361a
Time: 2018-11-03
Author: mark.harfouche@gmail.com
File Name: tools/build_versions.py
Class Name:
Method Name: main


Project Name: shibing624/pycorrector
Commit Name: 4e144c9f842d7415d8be5bdbb5912d88ae32cced
Time: 2018-04-16
Author: 507153809@qq.com
File Name: pycorrector/seq2seq/corpus_reader.py
Class Name: CGEDReader
Method Name: read_samples_by_string


Project Name: shibing624/pycorrector
Commit Name: 4e144c9f842d7415d8be5bdbb5912d88ae32cced
Time: 2018-04-16
Author: 507153809@qq.com
File Name: pycorrector/seq2seq/corpus_reader.py
Class Name: CGEDReader
Method Name: read_tokens