7cdb2074318a449647168fb087f2f2a775164863,sos/actions.py,,report,#Any#Any#Any#,574
Before Change
// file lock to prevent race condition
with fasteners.InterProcessLock("/tmp/report_lock"):
if input is not None:
if script is not None and script.strip():
raise ValueError("Please specify only one of parameter script and input: script={}, input={}".format(script, input))
if isinstance(input, str):
env.logger.debug("Loading report from {}".format(input))
with open(input) as ifile:
writer(ifile.read())
After Change
// file lock to prevent race condition
with fasteners.InterProcessLock("/tmp/report_lock"):
if isinstance(script, str) and script.strip():
writer(script.rstrip() + "\n\n")
if input is not None:
if isinstance(input, str):
env.logger.debug("Loading report from {}".format(input))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances Project Name: vatlab/SoS
Commit Name: 7cdb2074318a449647168fb087f2f2a775164863
Time: 2016-12-16
Author: ben.bog@gmail.com
File Name: sos/actions.py
Class Name:
Method Name: report
Project Name: vatlab/SoS
Commit Name: b72e0df77218fb3e8cb938fe344c3412ccb65bd4
Time: 2016-12-16
Author: ben.bog@gmail.com
File Name: sos/actions.py
Class Name:
Method Name: report
Project Name: markovmodel/PyEMMA
Commit Name: f51387e15daaeb04ae4438bfd88446534ce663ae
Time: 2017-09-15
Author: clonker@gmail.com
File Name: pyemma/_base/serialization/jsonpickler_handlers.py
Class Name: NumpyExtractedDtypeHandler
Method Name: flatten