e258ef3ea167b86d6680bfcc513dd207586b90f4,setup.py,,read_requirements,#,30

Before Change


    install_reqs = parse_requirements(reqs_path, session=PipSession())
    reqs = []
    for ir in install_reqs:
        pip_main(["install", str(ir.req or ir.link)])
        if ir.req:
            reqs.append(str(ir.req))
    return reqs

After Change


def read_requirements():
    // // parses requirements from requirements.txt
    reqs_path = os.path.join(__location__, "requirements.txt")
    with open(reqs_path) as f:
        reqs = [line.strip() for line in f]

    for req in reqs:
        install(req)

    names = []
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: deepmipt/DeepPavlov
Commit Name: e258ef3ea167b86d6680bfcc513dd207586b90f4
Time: 2018-07-03
Author: yoptar@gmail.com
File Name: setup.py
Class Name:
Method Name: read_requirements


Project Name: google/tangent
Commit Name: 5cf5f2eac7a6a60959db76b744e5a2ac50305968
Time: 2018-05-16
Author: mrocklin@gmail.com
File Name: setup.py
Class Name:
Method Name:


Project Name: NervanaSystems/coach
Commit Name: ce9838a7d68f2c5a5a7a4b287e09f1eaac1b8747
Time: 2018-10-23
Author: ajay.deshpande@intel.com
File Name: setup.py
Class Name:
Method Name: