16246c8a9d84c875208a5e370da87888e799dd96,src/python/pants/java/nailgun_executor.py,NailgunExecutor,__init__,#NailgunExecutor#Any#Any#Any#Any#Any#Any#Any#Any#,82

Before Change


                                         process_name=self._PROCESS_NAME,
                                         metadata_base_dir=metadata_base_dir)

    if not isinstance(workdir, string_types):
      raise ValueError("Workdir must be a path string, not: {workdir}".format(workdir=workdir))

    self._identity = identity
    self._workdir = workdir
    self._ng_stdout = os.path.join(workdir, "stdout")
    self._ng_stderr = os.path.join(workdir, "stderr")

After Change



// TODO: Once we integrate standard logging into our reporting framework, we can consider making
// some of the log.debug() below into log.info(). Right now it just looks wrong on the console.
class NailgunExecutor(Executor, FingerprintedProcessManager):
  """Executes java programs by launching them in nailgun server.

     If a nailgun is not available for a given set of jvm args and classpath, one is launched and
     re-used for the given jvm args and classpath on subsequent runs.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: pantsbuild/pants
Commit Name: 16246c8a9d84c875208a5e370da87888e799dd96
Time: 2017-11-08
Author: stuhood@twitter.com
File Name: src/python/pants/java/nailgun_executor.py
Class Name: NailgunExecutor
Method Name: __init__


Project Name: leonsim/simhash
Commit Name: 6e8898b82f4591fe2256ca56be3c98836fe94b88
Time: 2017-10-31
Author: akellne@users.noreply.github.com
File Name: simhash/__init__.py
Class Name: Simhash
Method Name: __init__


Project Name: SeldonIO/seldon-core
Commit Name: d3874384937c4b5d50ac1e0b6f95c5bfe9be3ba1
Time: 2018-12-11
Author: jk@seldon.io
File Name: python/seldon_core/persistence.py
Class Name:
Method Name: persist