169b911510d1872c2f356926100902d7c949083f,qcengine/compute.py,,compute,#Any#Any#Any#Any#Any#Any#,13

Before Change


                                             error_message=e.json()))

        except Exception as e:
            output_data = FailedOperation(input_data=input_data.dict(),
                                          success=False,
                                          error=ComputeError(
                                              error_type="runtime_error",
                                              error_message="QCEngine Error:\nError Message: {}".format(str(e))
                                          ))

    return handle_output_metadata(output_data, metadata, raise_error=raise_error, return_dict=return_dict)

After Change



    
    input_data = model_wrapper(input_data, ResultInput)
    if isinstance(input_data, FailedOperation):
        if return_dict:
            return input_data.dict()
        return input_data

    if local_options is None:
        local_options = {}

    try:
        input_engine_options = input_data._qcengine_local_config
        input_data = input_data.copy(exclude={"_qcengine_local_config"})
    except AttributeError:
        input_engine_options = {}

    local_options = {**local_options, **input_engine_options}
    config = get_config(local_options=local_options)

    // Run the program
    with compute_wrapper(capture_output=capture_output) as metadata:
        output_data = input_data.copy()  // Initial in case of error handling
        try:
            output_data = get_program(program)(input_data, config)
        except KeyError as e:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: MolSSI/QCEngine
Commit Name: 169b911510d1872c2f356926100902d7c949083f
Time: 2019-01-27
Author: lnaden@vt.edu
File Name: qcengine/compute.py
Class Name:
Method Name: compute


Project Name: biotite-dev/biotite
Commit Name: 4e593abf61905c9d4722be4bfdaea253874f2462
Time: 2017-08-31
Author: patrick.kunzm@gmail.com
File Name: src/biopython/application/blast/online.py
Class Name: BlastOnline
Method Name: __init__


Project Name: asyml/texar
Commit Name: de6d802b480f1504d060915dc520bef9223aac84
Time: 2018-03-21
Author: zhitinghu@gmail.com
File Name: texar/data/data/multi_aligned_data.py
Class Name: MultiAlignedTextData
Method Name: _make_processor