b0a246995fc8b4eafa91bc123cf0c78e284573f5,src/python/pants/java/nailgun_executor.py,NailgunExecutor,_fingerprint,#Any#Any#Any#,112
Before Change
digest = hashlib.sha1()
// TODO(John Sirois): hash classpath contents?
[digest.update(item) for item in (b"".join(sorted(jvm_options)),
b"".join(sorted(classpath)),
repr(java_version).encode("utf-8"))]
return digest.hexdigest() if PY3 else digest.hexdigest().decode("utf-8")
After Change
encoded_classpath = [cp.encode("utf-8") for cp in sorted(classpath)]
encoded_java_version = repr(java_version).encode("utf-8")
for item in (encoded_jvm_options, encoded_classpath, encoded_java_version):
digest.update(str(item).encode("utf-8"))
return digest.hexdigest() if PY3 else digest.hexdigest().decode("utf-8")
def _runner(self, classpath, main, jvm_options, args, cwd=None):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 2
Instances
Project Name: pantsbuild/pants
Commit Name: b0a246995fc8b4eafa91bc123cf0c78e284573f5
Time: 2018-08-16
Author: ericarellano@me.com
File Name: src/python/pants/java/nailgun_executor.py
Class Name: NailgunExecutor
Method Name: _fingerprint
Project Name: hanxiao/bert-as-service
Commit Name: 208146e25347b8fe3fe57cd813b5e3880bbe4f9a
Time: 2019-01-16
Author: hanhxiao@tencent.com
File Name: server/bert_serving/server/helper.py
Class Name: BertRequestHandler
Method Name: do_POST
Project Name: pantsbuild/pants
Commit Name: 6229c419d8f1b63cac22f23f24e19ef28d89b0a3
Time: 2018-06-27
Author: dawagner@gmail.com
File Name: tests/python/pants_test/source/test_payload_fields.py
Class Name: PayloadTest
Method Name: test_passes_eager_fileset_with_spec_through