fd3f643d7ccc44e3ec7e6e6b074ee2efe7f077db,deepchem/dock/pose_generation.py,VinaPoseGenerator,__init__,#VinaPoseGenerator#Any#Any#,91

Before Change


      check_output(untar_cmd.split())
      logger.info("Moving to final location")
      mv_cmd = "mv %s %s" % (dirname, data_dir)
      check_output(mv_cmd.split())
      logger.info("Cleanup: removing downloaded vina tar.gz")
      rm_cmd = "rm %s" % filename
      call(rm_cmd.split())
    self.vina_cmd = os.path.join(self.vina_dir, "bin/vina")

After Change


      download_url(url, data_dir)
      downloaded_file = os.path.join(data_dir, filename)
      logger.info("Downloaded Vina. Extracting")
      with tarfile.open(downloaded_file) as tar:
        tar.extractall(data_dir)
      logger.info("Cleanup: removing downloaded vina tar.gz")
      os.remove(downloaded_file)
    self.vina_cmd = os.path.join(self.vina_dir, "bin/vina")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: deepchem/deepchem
Commit Name: fd3f643d7ccc44e3ec7e6e6b074ee2efe7f077db
Time: 2020-06-16
Author: peastman@stanford.edu
File Name: deepchem/dock/pose_generation.py
Class Name: VinaPoseGenerator
Method Name: __init__


Project Name: recipy/recipy
Commit Name: 27aebd9429cd624a0dada25b9685ffc7af444919
Time: 2016-09-22
Author: michaelj@epcc.ed.ac.uk
File Name: integration_test/process.py
Class Name:
Method Name: execute_and_capture


Project Name: HazyResearch/pdftotree
Commit Name: 54065add4551a2415af574ad558f7c2d6fbeb9a9
Time: 2020-09-24
Author: hiromu.hota@hal.hitachi.com
File Name: pdftotree/TreeVisualizer.py
Class Name:
Method Name: get_pdf_dim