def assert_script(self, test):
        result = self.invoke_parser_assert_syntax(test)
        ref_file = self.test_script_dir + test + '.ref'
        reference = self._read_file(ref_file)
        # Canonical form
        sorted_result = json.dumps(result, indent=4, sort_keys=True)
        sorted_result = "\n".join([line for line in sorted_result.splitlines() if "sourcefile" not in line])
        reference = "\n".join([line for line in reference.splitlines() if "sourcefile" not in line])
        diff_lines = difflib.unified_diff(sorted_result.splitlines(), reference.splitlines())
        diff = '\n'.join(diff_lines)
        self.assertFalse(diff, diff)
You have to squint to see it, but the general strategy is just:
dataset/ETHPy150Open EricssonResearch/calvin-base/calvin/tests/test_calvinscript.py/CalvinTestBase.assert_script--crossover with--dataset/ETHPy150Open openstack/swift/swift/container/reconciler.py/cmp_policy_info