f91c6aaadfed8c6dc7ee58f459c4aa369fcba882,scripts/abduction_tools.py,,GetPremisesThatMatchConclusionArgs_,#Any#Any#,101

Before Change


  candidate_premises = []
  for premise in premises:
    premise_terms = premise.split()[2:]
    logging.debug(premise_terms)
    if len(premise_terms) == len(conclusion_terms) and \
       premise_terms[1:] == conclusion_terms[1:]:
      candidate_premises.append(premise)
  return candidate_premises

After Change


  for premise in premises:
    premise_terms = [p.strip(")(") for p in premise.split()[2:]]
    premise_args = set(premise_terms[1:])
    logging.debug("Conclusion args: " + str(conclusion_args) + \
                  "\nPremise args: " + str(premise_args))
    if premise_args.intersection(conclusion_args):
      candidate_premises.append(premise)
  return candidate_premises
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: mynlp/ccg2lambda
Commit Name: f91c6aaadfed8c6dc7ee58f459c4aa369fcba882
Time: 2017-01-12
Author: pascual@nii.ac.jp
File Name: scripts/abduction_tools.py
Class Name:
Method Name: GetPremisesThatMatchConclusionArgs_


Project Name: dickreuter/Poker
Commit Name: 5ac9b45c6ecf67ff59ec55112a030093cf10b9ba
Time: 2016-09-18
Author: dickreuter@yahoo.com
File Name: mouse_mover.py
Class Name: MouseMoverTableBased
Method Name: mouse_action


Project Name: shibing624/pycorrector
Commit Name: 5290b7756074514e6e59e6c63c8023da7a0bf9d1
Time: 2019-07-09
Author: 507153809@qq.com
File Name: pycorrector/detector.py
Class Name: Detector
Method Name: initialize_detector