e8c80767a61512b95a98159ac00341bae7e765e4,contrib/go/src/python/pants/contrib/go/tasks/go_protobuf_gen.py,GoProtobufGen,_get_go_namespace,#Any#Any#,102
Before Change
with open(source) as fh:
namespace = cls._NAMESPACE_PARSER.search(fh.read())
if not namespace:
raise TaskError("File {} must contain "option go_package"".format(source) )
return namespace.group(1)
After Change
data = fh.read()
namespace = cls._NAMESPACE_PARSER.search(data)
if not namespace:
namespace = cls._PACKAGE_PARSER.search(data)
return namespace.group(1)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 2
Instances Project Name: pantsbuild/pants
Commit Name: e8c80767a61512b95a98159ac00341bae7e765e4
Time: 2018-06-01
Author: traviscrawford@gmail.com
File Name: contrib/go/src/python/pants/contrib/go/tasks/go_protobuf_gen.py
Class Name: GoProtobufGen
Method Name: _get_go_namespace
Project Name: okfn-brasil/serenata-de-amor
Commit Name: cef99445ab551931fed507518b85034b97c946ee
Time: 2016-11-09
Author: cuducos@gmail.com
File Name: src/search_suspect_places.py
Class Name:
Method Name: search_suspicious_around_company
Project Name: Qiskit/qiskit-aqua
Commit Name: 6e3fb1d3406a255fc602a7cc5912141a0aab2e91
Time: 2019-02-19
Author: manoel@us.ibm.com
File Name: qiskit_aqua_ui/run/_threadsafeoutputview.py
Class Name: ThreadSafeOutputView
Method Name: _write_text