169b911510d1872c2f356926100902d7c949083f,qcengine/compute.py,,compute,#Any#Any#Any#Any#Any#Any#,13
Before Change
A FailedOperation returns
try:
if isinstance(input_data, dict):
input_data = ResultInput(**input_data)
except ValidationError as val_error:
failure = FailedOperation(input_data=input_data,
success=False,
error=ComputeError(error_type="input_validation_error",
error_message="Input could not be validated for the following "
"reasons:\n{}".format(val_error.json())))
if return_dict:
return failure.dict()
return failure
except Exception as unk_err:
failure = FailedOperation(input_data=input_data,
success=False,
error=ComputeError(
error_type="unknown_input_error",
error_message="Input could not be validated for unknown reasons, "
"likely due to invalid input data types:\n{}".format(unk_err)))
if return_dict:
return failure.dict()
return failure
if local_options is None:
local_options = {}
try:
After Change
// 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:
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: home-assistant/home-assistant
Commit Name: 9f54bcc21b1744f2850a35e54903f3581d14badb
Time: 2015-12-23
Author: marhje52@kth.se
File Name: homeassistant/components/mysensors.py
Class Name:
Method Name: setup
Project Name: hyperspy/hyperspy
Commit Name: b9e02147f21d75d04ee909c52dc161e4d8fce388
Time: 2017-02-04
Author: t.ostasevicius@gmail.com
File Name: hyperspy/_signals/lazy.py
Class Name: LazySignal
Method Name: _block_iterator