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

Before Change


    :rtype: (int, str or unicode)
    :raises OSError: if there are problems running the command
    
    command_line = [command]
    command_line.extend(arguments)
    print((" ".join(command_line)))
    try:
        result = check_output(command_line, stderr=STDOUT)

After Change


    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: 4

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: chakki-works/doccano
Commit Name: a07dd1863bbad48a3214ea67bff36f1f4847baaa
Time: 2019-07-19
Author: null
File Name: app/api/tests/test_utils.py
Class Name: TestCoNLLParser
Method Name: test_calc_char_offset


Project Name: scipy/scipy
Commit Name: 7151a58d339692c40e1edf3cf9ffe6c052d03001
Time: 2020-02-05
Author: sethtroisi@google.com
File Name: tools/refguide_check.py
Class Name:
Method Name: _run_doctests