b9f710538abab20f120d3d3e23c123ba7a6f7536,tests/c_languages/codeclone_detection/ClangCloneDetectionBearTest.py,ClangCloneDetectionBearTest,test_clones,#ClangCloneDetectionBearTest#,53

Before Change


                                        self.assertEqual(results, [], msg))

    def test_clones(self):
        self.clone_files = [
            os.path.join(self.base_test_path, "clones", elem)
            for elem in os.listdir(os.path.join(self.base_test_path,
                                                "clones"))]

        self.check_clone_detection_bear(self.clone_files,
                                        lambda results, msg:
                                        self.assertNotEqual(results, [], msg))

After Change


        // Due to different floating numbers implementation on Python version
        // 3.5 and 3.4, we just run this test on Python 3.6 or later
        if sys.version_info > (3, 6, 0):
            for files_result, files_expected_result in zip(
                    files_results, files_expected_results_py36):
                self.assertComparableObjectsEqual(files_result,
                                                  files_expected_result)

        self.check_clone_detection_bear(clone_files,
                                        lambda results, msg:
                                        self.assertNotEqual(results, [], msg))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: coala/coala-bears
Commit Name: b9f710538abab20f120d3d3e23c123ba7a6f7536
Time: 2018-07-10
Author: rafidteam@gmail.com
File Name: tests/c_languages/codeclone_detection/ClangCloneDetectionBearTest.py
Class Name: ClangCloneDetectionBearTest
Method Name: test_clones


Project Name: stratosphereips/StratosphereLinuxIPS
Commit Name: bfff0cb09ae56b722c03f014337346c3a095abea
Time: 2019-04-02
Author: eldraco@gmail.com
File Name: slips.py
Class Name:
Method Name:


Project Name: tgsmith61591/pmdarima
Commit Name: 942f284052b22214d830c1bc2c8de03bffaa8d07
Time: 2020-02-18
Author: aaronreidsmith@gmail.com
File Name: build_tools/azure/render_meta.py
Class Name:
Method Name: