e28a71a76f797d280ebe280c68259fde0095e18e,tests/unit_tests.py,ExhaustiveFullTextCase,runTest,#ExhaustiveFullTextCase#,76

Before Change


                continue

            out_fn = domain + str(domain_counters[domain]) + ".txt"
            out_fn = os.path.join(TEXT_FN, out_fn)
            with open(out_fn, "r") as f:
                correct_text = f.read()

            condensed_url = url[:30] + " ..."
            print("%s -- fulltext status: %s" %
                  (condensed_url, a.text == correct_text))
            // assert a.text == correct_text

After Change


                a.parse()
            except Exception:
                print("<< URL: %s parse ERROR >>" % url)
                traceback.print_exc()
                continue

            correct_text = mock_resource_with(res_filename, "txt")
            condensed_url = url[:30] + " ..."
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: codelucas/newspaper
Commit Name: e28a71a76f797d280ebe280c68259fde0095e18e
Time: 2015-01-02
Author: lucasyangpersonal@gmail.com
File Name: tests/unit_tests.py
Class Name: ExhaustiveFullTextCase
Method Name: runTest


Project Name: Microsoft/nni
Commit Name: 19173aa4370e36cba96ee7049eaaa0dceda5007c
Time: 2019-08-14
Author: suiguoxin@gmail.com
File Name: tools/nni_gpu_tool/gpu_metrics_collector.py
Class Name:
Method Name: main


Project Name: Microsoft/nni
Commit Name: eaf421206d42537f956f46ba2945335d060e21ea
Time: 2019-08-11
Author: suiguoxin@gmail.com
File Name: tools/nni_gpu_tool/gpu_metrics_collector.py
Class Name:
Method Name: main