284c2d94c6b50f7f1f3091d0c4bec62e7f54dd73,setup.py,,read_requirements,#,26

Before Change


    // // parses requirements from requirements.txt
    reqs_path = os.path.join(__location__, "requirements.txt")
    install_reqs = parse_requirements(reqs_path, session=PipSession())
    reqs = [str(ir.req) for ir in install_reqs]

    for r in reqs:
        pip.main(["install", "-U", r])

After 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
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 3

Instances


Project Name: deepmipt/DeepPavlov
Commit Name: 284c2d94c6b50f7f1f3091d0c4bec62e7f54dd73
Time: 2018-03-15
Author: dilyara.rimovna@gmail.com
File Name: setup.py
Class Name:
Method Name: read_requirements


Project Name: deepmipt/DeepPavlov
Commit Name: b1eaa3487165ebaedb489ced63a38eb45f650b5f
Time: 2018-10-17
Author: yoptar@gmail.com
File Name: deeppavlov/models/embedders/glove_embedder.py
Class Name: GloVeEmbedder
Method Name: load


Project Name: deepmipt/DeepPavlov
Commit Name: bc763baf9ea16e6a01c3803f9d180baface0a943
Time: 2018-03-14
Author: bushkov@phystech.edu
File Name: setup.py
Class Name:
Method Name: read_requirements


Project Name: deepmipt/DeepPavlov
Commit Name: b1eaa3487165ebaedb489ced63a38eb45f650b5f
Time: 2018-10-17
Author: yoptar@gmail.com
File Name: deeppavlov/models/embedders/fasttext_embedder.py
Class Name: FasttextEmbedder
Method Name: load


Project Name: ray-project/ray
Commit Name: d35de2272d31f0a8dcfb49c2ef3d54dc95b38a0b
Time: 2020-11-15
Author: David.A.Hannasch@gmail.com
File Name: python/ray/tests/test_ray_init.py
Class Name: TestRedisPassword
Method Name: test_redis_password