e258ef3ea167b86d6680bfcc513dd207586b90f4,setup.py,,read_requirements,#,30
Before Change
for ir in install_reqs:
pip_main(["install", str(ir.req or ir.link)])
if ir.req:
reqs.append(str(ir.req))
return reqs
def readme():
After Change
names = []
links = []
for req in reqs:
if "://" in req:
links.append(req)
else:
names.append(req)
return {"install_requires": names, "dependency_links": links}
def readme():
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
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: OpenNMT/OpenNMT-py
Commit Name: 32579822389423c7f4120e222aa26652f8507735
Time: 2018-12-18
Author: guillaumekln@users.noreply.github.com
File Name: onmt/utils/optimizers.py
Class Name: Optimizer
Method Name: set_parameters
Project Name: keras-team/keras
Commit Name: 560cb94519ad5a5eed3adc323a9e1ad3cf0690e9
Time: 2015-06-30
Author: francois.chollet@gmail.com
File Name: keras/callbacks.py
Class Name: BaseLogger
Method Name: on_batch_end