bc6042a0a200eaea9b3b7e8e45dd6767c7831d73,studio/local_worker.py,,pip_install_packages,#Any#Any#,278

Before Change




def pip_install_packages(packages, logger=None):
    pipp = subprocess.Popen(
        ["pip", "install"] + [p for p in packages],
        stdout=subprocess.PIPE,
        stderr=subprocess.STDOUT)
    pipout, _ = pipp.communicate()
    if logger:
        logger.info("pip output: \n" + pipout)
    return pipp.returncode

After Change


    //    stdout=subprocess.PIPE,
    //    stderr=subprocess.STDOUT)
    // pipout, _ = pipp.communicate()
    return pip.main(["install"] + list(packages))
    // if logger:
    //    logger.info("pip output: \n" + pipout)
    // return pipp.returncode
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 7

Instances


Project Name: studioml/studio
Commit Name: bc6042a0a200eaea9b3b7e8e45dd6767c7831d73
Time: 2017-10-20
Author: peter.zhokhov@sentient.ai
File Name: studio/local_worker.py
Class Name:
Method Name: pip_install_packages


Project Name: EducationalTestingService/skll
Commit Name: f2caf089885a591c79ee531cc1f13b7995ba7607
Time: 2014-11-01
Author: nmadnani@ets.org
File Name: tests/test_utilities.py
Class Name:
Method Name: check_generate_predictions_console


Project Name: EducationalTestingService/skll
Commit Name: f2caf089885a591c79ee531cc1f13b7995ba7607
Time: 2014-11-01
Author: nmadnani@ets.org
File Name: tests/test_utilities.py
Class Name:
Method Name: check_print_model_weights


Project Name: bjherger/ResumeParser
Commit Name: e08fcab00157590859a9a19bd483825e9ba75c18
Time: 2019-03-29
Author: 13herger@gmail.com
File Name: bin/lib.py
Class Name:
Method Name: convert_pdf


Project Name: studioml/studio
Commit Name: 0bc0f57a4e1de4297ddffbea135f97e57af77b0a
Time: 2017-12-11
Author: peter.zhokhov@sentient.ai
File Name: studio/magics.py
Class Name: StudioMagics
Method Name: studio_run