a51edfd1394a6262bf57bb33c1529bea683add19,devtools/jenkins/compare_results.py,,test_compare_results,#,39

Before Change




def test_compare_results():
  desired_results = open("devtools/jenkins/desired_results.csv").readlines()
  given_results = open("results.csv").readlines()
  exceptions = []
  for result in given_results:
    desired_result = find_desired_result(result, desired_results)
    my_result = get_my_results(result)
    if not is_good_result(my_result, desired_result):
      exceptions.append((result, my_result, desired_result))
    if len(exceptions) > 0:

After Change




def test_compare_results():
  desired_results = open("devtools/jenkins/desired_results.csv").readlines()[1:]
  desired_results = parse_desired_results(desired_results)
  test_results = open("results.csv").readlines()
  test_results = parse_test_results(test_results)
  exceptions = []
  for test_result in test_results:
    desired_result = find_desired_result(test_result, desired_results)
    if not is_good_result(test_result, desired_result):
      exceptions.append((test_result, desired_result))
  if len(exceptions) > 0:
    for exception in exceptions:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: deepchem/deepchem
Commit Name: a51edfd1394a6262bf57bb33c1529bea683add19
Time: 2017-02-13
Author: lilleswing@gmail.com
File Name: devtools/jenkins/compare_results.py
Class Name:
Method Name: test_compare_results


Project Name: deepchem/deepchem
Commit Name: bb32d8f3c3ce7e0ae2cf1dae8f34b7ba9f8d30cc
Time: 2017-02-16
Author: lilleswing@gmail.com
File Name: devtools/jenkins/compare_results.py
Class Name:
Method Name: test_compare_results


Project Name: tensorflow/datasets
Commit Name: 0056b63d2321ca546cb0c1b1004dede775ec33cd
Time: 2019-10-08
Author: yaozhaoyz@google.com
File Name: tensorflow_datasets/summarization/xsum.py
Class Name: Xsum
Method Name: _generate_examples