5557a2e4143f7ec707daf9ae094db84eb91b9d1b,tools/nni_cmd/command_utils.py,,install_requirements_command,#Any#,47

Before Change


    if sys.platform == "win32":
        cmds = cmds.format("python")
    else:
        cmds = cmds.format("python3")
    call(cmds, shell=True)

After Change


    requirements_path: str
        Path to the directory that contains `requirements.txt`.
    
    call(_get_pip_install() + ["-r", os.path.join(requirements_path, "requirements.txt")], shell=False)


def _get_pip_install():
    python = "python" if sys.platform == "win32" else "python3"
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: microsoft/nni
Commit Name: 5557a2e4143f7ec707daf9ae094db84eb91b9d1b
Time: 2019-10-22
Author: v-yugzh@microsoft.com
File Name: tools/nni_cmd/command_utils.py
Class Name:
Method Name: install_requirements_command


Project Name: microsoft/nni
Commit Name: 5557a2e4143f7ec707daf9ae094db84eb91b9d1b
Time: 2019-10-22
Author: v-yugzh@microsoft.com
File Name: tools/nni_cmd/command_utils.py
Class Name:
Method Name: install_package_command


Project Name: AlexEMG/DeepLabCut
Commit Name: ccdc36ed8d463609a21bd76cf51ad24c9c4b9f11
Time: 2020-05-16
Author: amathis@fas.harvard.edu
File Name: deeplabcut/utils/auxfun_videos.py
Class Name:
Method Name: ShortenVideo