def _filter_tuples(self, depth): white_list = '%s/%s' % (self.folder, config.white_list_file()) tuples_output = '%s/%s/%s' % (self.folder, config.tuples_dir(), config.tuples_output_file()) depths_csv = '%s/%s/%s' % (self.folder, config.tuples_dir(), config.tuples_depths_file()) tuples_final = '%s/%s' % (self.folder, config.tuples_final_file()) hit_rates = '%s/hit_rates_%d.txt' % (self.folder, depth) min_hit_rate = 0.5 running = 'java -cp %s cpb.RefineCandidateMethods %d %f %s %s %s %s %s' % (commons.scala_libs(), depth, min_hit_rate, tuples_output, depths_csv, tuples_final, hit_rates, white_list) self._create_filter_depths_trace() subprocess.call(shlex.split(str(running)))
def _filter_tuples(self, depth): white_list = '%s/%s' % (self.folder, config.white_list_file()) tuples_output = '%s/%s/%s' % (self.folder, config.tuples_dir(), config.tuples_output_file()) depths_csv = '%s/%s/%s' % (self.folder, config.tuples_dir(), config.tuples_depths_file()) tuples_final = '%s/%s' % (self.folder, config.tuples_final_file()) hit_rates = '%s/hit_rates_%d.txt' % (self.folder, depth) min_hit_rate = 0.5 running = 'java -cp %s cpb.RefineCandidateMethods %d %f %s %s %s %s %s' % ( commons.scala_libs(), depth, min_hit_rate, tuples_output, depths_csv, tuples_final, hit_rates, white_list) self._create_filter_depths_trace() subprocess.call(shlex.split(str(running)))
def _create_tuples_file(self): if commons.profile_exaustive() == True: from_file = '%s/%s/%s' % (self.folder, config.tuples_dir(), config.tuples_output_file()) to_file = '%s/%s' % (self.folder, config.tuples_final_file()) self._copy_file(from_file, to_file)