84b8f96b05155e134b3bc979c53a5c3845dab689,src/python/pants/pantsd/process_manager.py,ProcessManager,purge_metadata,#ProcessManager#Any#,200

Before Change


      assert not self.is_alive(), "aborting attempt to purge metadata for a running process!"

    meta_dir = self.get_metadata_dir()
    logging.debug("purging metadata directory: {}".format(meta_dir))
    try:
      rm_rf(meta_dir)
    except OSError as e:
      raise self.MetadataError("failed to purge metadata directory {}: {!r}".format(meta_dir, e))

After Change


    if not force and self.is_alive():
      raise self.MetadataError("cannot purge metadata for a running process!")

    super(ProcessManager, self).purge_metadata_by_name(self._name)

  def _kill(self, kill_sig):
    Send a signal to the current process.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: pantsbuild/pants
Commit Name: 84b8f96b05155e134b3bc979c53a5c3845dab689
Time: 2016-01-04
Author: kwilson@twopensource.com
File Name: src/python/pants/pantsd/process_manager.py
Class Name: ProcessManager
Method Name: purge_metadata


Project Name: HazyResearch/fonduer
Commit Name: 8946a24d7c1a21a80ccaf86418c354cf87e84bfa
Time: 2018-09-04
Author: lwhsiao@stanford.edu
File Name: src/fonduer/supervision/labeler.py
Class Name: LabelerUDF
Method Name: apply


Project Name: home-assistant/home-assistant
Commit Name: 8775c54d29a4adcc11a55c4a37db7da54eccc6e7
Time: 2017-08-25
Author: marhje52@kth.se
File Name: homeassistant/components/climate/mysensors.py
Class Name: MySensorsHVAC
Method Name: update


Project Name: home-assistant/home-assistant
Commit Name: 1d615ea6c3a5f9b3ae6481b827919f04f23c09ce
Time: 2017-08-25
Author: marhje52@kth.se
File Name: homeassistant/components/climate/mysensors.py
Class Name: MySensorsHVAC
Method Name: update