27aebd9429cd624a0dada25b9685ffc7af444919,integration_test/process.py,,execute_and_capture,#Any#Any#,37

Before Change


    
    command_line = [command]
    command_line.extend(arguments)
    print((" ".join(command_line)))
    try:
        result = check_output(command_line, stderr=STDOUT)
        return (0, str(result))
    except CalledProcessError as error:

After Change


    :rtype: (int, str or unicode)
    :raises OSError: if there are problems running the command
    
    with TemporaryFile(mode="w+", suffix="log") as stdouterr:
        result = execute(command, arguments,
                         stdout=stdouterr, stderr=stdouterr)
        stdouterr.seek(0)
        log = stdouterr.readlines()
    return (result, log)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: recipy/recipy
Commit Name: 27aebd9429cd624a0dada25b9685ffc7af444919
Time: 2016-09-22
Author: michaelj@epcc.ed.ac.uk
File Name: integration_test/process.py
Class Name:
Method Name: execute_and_capture


Project Name: rusty1s/pytorch_geometric
Commit Name: e6ac7fa449af1e1462ee9a7f8bf08a26c9e08f84
Time: 2017-10-15
Author: matthias.fey@tu-dortmund.de
File Name: torch_geometric/datasets/faust.py
Class Name:
Method Name:


Project Name: Cadene/pretrained-models.pytorch
Commit Name: 570a22506963b004e79f543507dadc9959c3b438
Time: 2017-07-13
Author: remi.cadene@icloud.com
File Name: test/toy-example.py
Class Name:
Method Name: