bf7211ec259f05c1ef65841fc56a531873098d3f,benchmarking/utils/subprocess_with_logger.py,,processRun,#,20
Before Change
subprocess.Popen(*args)
return "", None
else:
output = subprocess.check_output(*args,
stderr=subprocess.STDOUT,
**kwargs).\
decode("utf-8", "ignore")
return output, None
except subprocess.CalledProcessError as e:
getLogger().error("Command failed: {}".format(e.output))
err_output = e.output.decode("utf-8", "ignore")
After Change
stderr=subprocess.STDOUT,
**kwargs)
// without the decode/encode the string cannot be printed out
output = output_raw.decode("utf-8", "ignore").encode("utf-8")
return output, None
except subprocess.CalledProcessError as e:
err_output = e.output.decode("utf-8", "ignore")
getLogger().error("Command failed: {}".format(err_output))
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 2
Instances Project Name: facebook/FAI-PEP
Commit Name: bf7211ec259f05c1ef65841fc56a531873098d3f
Time: 2018-09-04
Author: sf_wind@hotmail.com
File Name: benchmarking/utils/subprocess_with_logger.py
Class Name:
Method Name: processRun
Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: d64a598dd2a127d76ffc94f6077e306885a4290f
Time: 2020-01-09
Author: billyjacobson@users.noreply.github.com
File Name: bigtable/quickstart_happybase/main.py
Class Name:
Method Name: main
Project Name: commonsense/conceptnet5
Commit Name: db4b9f4d50af9e83733fc301c32e85cbe6d9c812
Time: 2014-02-25
Author: rob@luminoso.com
File Name: conceptnet5/builders/json_to_csv.py
Class Name:
Method Name: convert_to_tab_separated
Project Name: VOLTTRON/volttron
Commit Name: 1b89286a98c9f0535507e47ca35286ceb21364f9
Time: 2019-10-02
Author: craig.allwardt@pnnl.gov
File Name: volttron/platform/vip/pubsubservice.py
Class Name: PubSubService
Method Name: _peer_publish