diff --git "a/evaluation_results/single_lora_no_oracle_cr_test.json" "b/evaluation_results/single_lora_no_oracle_cr_test.json" new file mode 100644--- /dev/null +++ "b/evaluation_results/single_lora_no_oracle_cr_test.json" @@ -0,0 +1,57738 @@ +{ + "method": "single_lora", + "split": "cr_test", + "exact_match_pct": 36.03055815403804, + "exact_match_count": 2311, + "n": 6414, + "n_total": 6414, + "code_bleu": 0.5800320892662333, + "edit_similarity": 0.575404698119075, + "entries": [ + { + "repo": "15r10nk/inline-snapshot", + "expected": "None", + "got": "None", + "got_raw": "None or False or 0 or \"\" or ... or object() or type(None) or type(...) or type(object()) or type(...) or type(...) or type(...) or type(...) or type(...) or type(...) or type(...) or type(...) or type(...) or type(...) or type(...) or type(...) or type(...) or type(...) or type(...) or type(...) or type(...) or type(...) or type(...) or type(...) or type(...) or type(...) or type(...) or type(...) or type(...) or type(...) or type(...) or type(...) or type(...) or type(...) or type(...) or type(...) or type(...) or type(...) or type", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "real_repr", + "got": "None", + "got_raw": "None and repr is not code_repr(obj) and repr is not real_repr(obj) and repr is not code_repr(obj) and repr is not real_repr(obj) and repr is not real_repr(obj) and repr is not real_repr(obj) and repr is not real_repr(obj) and repr is not real_repr(obj) and repr is not real_repr(obj) and repr is not real_repr(obj) and repr is not real_repr(obj) and repr is not real_repr(obj) and repr is not real_repr(obj) and repr is not real_repr(obj) and repr is not real_repr(obj) and repr is not real_repr(obj", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.15384615384615385 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "None", + "got": "None", + "got_raw": "None if report is None else report() + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\"", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "stderr", + "got": "stderr.replace(\"\\r\"", + "got_raw": "stderr.replace(\"\\r\", \"\\n\") + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\"", + "exact_match": false, + "code_bleu": 0.2730120862709067, + "edit_similarity": 0.48 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "report", + "got": "report.replace(\"\\r\"", + "got_raw": "report.replace(\"\\r\", \"\\n\") + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\"", + "exact_match": false, + "code_bleu": 0.2730120862709067, + "edit_similarity": 0.48 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "returncode", + "got": "0", + "got_raw": "0 if returncode else 1) * -1) * 0) - 1) * 0) - 1) * 0) - 1) * 0) - 1) * 0) - 1) * 0) - 1) * 0) - 1) * 0) - 1) * 0) - 1) * 0) - 1) * 0) - 1) * 0) - 1) * 0) - 1) * 0) - 1) * 0)", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.0 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "f\"ERROR: {e}\\n\"", + "got": "str(e) + \"\\n\" + report_output.getvalue() + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\"", + "got_raw": "str(e) + \"\\n\" + report_output.getvalue() + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\"", + "exact_match": false, + "code_bleu": 0.01439035149251672, + "edit_similarity": 0.031007751937984496 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "reported_categories", + "got": "sorted(reported_categories)", + "got_raw": "sorted(reported_categories) * -1) * 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.35930411196308426, + "edit_similarity": 0.8260869565217391 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "self._changed_files(tmp_path)", + "got": "self._changed_files(tmp_path)", + "got_raw": "self._changed_files(tmp_path) * 2 + 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "normalize(report_output.getvalue())", + "got": "self._report(tmp_path)", + "got_raw": "self._report(tmp_path) + \"\\n\" + self._trim(tmp_path) + \"\\n\" + self._fix(tmp_path) + \"\\n\" + self._report( Path.cwd() ) + \"\\n\" + self._report(Path.home()) + \"\\n\" + self._report(os.getcwd()) + \"\\n\" + self._report(os.getcwd()) + \"\\n\" + self._report(os.getcwd()) + \"\\n\" + self._report(os.getcwd()) + \"\\n\" + self._report(os.getcwd()) + \"\\n\" + self._report(os.getcwd()) + \"\\n\" + self._report(os.getcwd", + "exact_match": false, + "code_bleu": 0.19701824208181185, + "edit_similarity": 0.3157894736842105 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "parse_outcomes(result_stdout.splitlines())", + "got": "self._parse_outcomes(result_stdout)()", + "got_raw": "self._parse_outcomes(result_stdout)() * 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.28867513459481287, + "edit_similarity": 0.759493670886076 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "num_args", + "got": "num_args", + "got_raw": "num_args + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "number", + "got": "number", + "got_raw": "number + 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "self.header", + "got": "self.header", + "got_raw": "self.header + \"\\n\\n\" + self._filename.read_text(\"utf-8\")[len(self.header):] + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" +", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "reported_flags", + "got": "flags", + "got_raw": "flags | reported_flags | { \"line_offset\": 0, \"column_offset\": 0, \"tab_width\": 8, \"use_parentheses\": True, \"include_trailing_comma\": True, \"use_implicit_return\": True, } | Flags( # NOTE: these flags are not reported to the user, but are used internally. \"debug\", \"optimize\", \"line_offset\", \"column_offset\", \"tab_width\", \"use_parentheses\", \"include_trailing_comma\", \"use_implicit_return\", ) ) | Flags( # NOTE: these flags are not reported to the user, but", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.5263157894736842 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "\"fix\" in s.flags", + "got": "\"\" if s.error else \"Error\" + os.sep + s.error + os.sep + \"Error\" + os.sep + \"Error\" + os.sep + \"Error\" + os.sep + \"Error\" + os.sep + \"Error\" + os.sep + \"Error\" + os.sep + \"Error\" + os.sep + \"Error\" + os.sep + \"Error\" + os.sep + \"Error\" + os.sep + \"Error\" + os.sep + \"Error\" + os.sep + \"Error\" + os.sep + \"Error\" + os.sep + \"Error\" + os.sep + \"Error\" + os", + "got_raw": "\"\" if s.error else \"Error\" + os.sep + s.error + os.sep + \"Error\" + os.sep + \"Error\" + os.sep + \"Error\" + os.sep + \"Error\" + os.sep + \"Error\" + os.sep + \"Error\" + os.sep + \"Error\" + os.sep + \"Error\" + os.sep + \"Error\" + os.sep + \"Error\" + os.sep + \"Error\" + os.sep + \"Error\" + os.sep + \"Error\" + os.sep + \"Error\" + os.sep + \"Error\" + os.sep + \"Error\" + os", + "exact_match": false, + "code_bleu": 0.013912550012173387, + "edit_similarity": 0.04864864864864865 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "snapshot(\"mxxm\")", + "got": "snapshot(\"mddiimx\")", + "got_raw": "snapshot(\"mddiimx\") + \"x\" + \"x\" + \"x\" + \"x\" + \"x\" + \"x\" + \"x\" + \"x\" + \"x\" + \"x\" + \"x\" + \"x\" + \"x\" + \"x\" + \"x\" + \"x\" + \"x\" + \"x\" + \"x\" + \"x\" + \"x\" + \"x\" + \"x\" + \"x\" + \"x\" + \"x\" + \"x\" + \"x\" + \"x\" + \"x\"", + "exact_match": false, + "code_bleu": 0.5081327481546147, + "edit_similarity": 0.8 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "snapshot(\"dmmmi\")", + "got": "snapshot(\"iabcabcd\")", + "got_raw": "snapshot(\"iabcabcd\") * 2 + 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5081327481546147, + "edit_similarity": 0.7027027027027027 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "snapshot(\"mddiim\")", + "got": "snapshot(\"axbcb\")", + "got_raw": "snapshot(\"axbcb\") * 2 + 1337 * 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5081327481546147, + "edit_similarity": 0.6857142857142857 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "new_code", + "got": "new_code", + "got_raw": "new_code + \"\\n\" * 200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "eval(code)", + "got": "eval(code)()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()", + "got_raw": "eval(code)()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()", + "exact_match": false, + "code_bleu": 0.013056343629980717, + "edit_similarity": 0.07407407407407407 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "snapshot(\"B()\")", + "got": "snapshot(\"B(b=0)\")", + "got_raw": "snapshot(\"B(b=0)\") * 2 + 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5081327481546147, + "edit_similarity": 0.9090909090909091 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "HasRepr(int, \"5\")", + "got": "5()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()", + "got_raw": "5()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()", + "exact_match": false, + "code_bleu": 0.005171264096896713, + "edit_similarity": 0.014705882352941176 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "snapshot(\"B(b=5)\")", + "got": "snapshot(\"B(b=5)\")", + "got_raw": "snapshot(\"B(b=5)\") # noqa: E731 # type: ignore[731] # type: B[b] # noqa: E731 # type: ignore[731] # type: B[b] # noqa: E731 # type: ignore[731] # type: B[b] # noqa: E731 # type: ignore[731] # type: B[b] # noqa: E731 # type: ignore[731] # type: B[b] # noqa: E731 # type: ignore", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "snapshot(\"C(a=1, c=2)\")", + "got": "snapshot( { \"a\": 1, \"c\": 2, } ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "got_raw": "snapshot( { \"a\": 1, \"c\": 2, } ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "exact_match": false, + "code_bleu": 0.013618313783961332, + "edit_similarity": 0.11594202898550725 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "snapshot(\"FakeTuple()\")", + "got": "snapshot(\"FakeTuple()\")", + "got_raw": "snapshot(\"FakeTuple()\") * 5 * 2 + 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "snapshot(\"Dataclass(a=0)\")", + "got": "snapshot(\"Dataclass(a=0", + "got_raw": "snapshot(\"Dataclass(a=0, b=0, c=[])\") * 2 + 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.21105340631872638, + "edit_similarity": 0.9387755102040817 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "snapshot(\"{'a', 'b', 1, 2, 3}\")", + "got": "snapshot({1, 2, 3, \"a\", True, \"b\"}) {1, 2, 3, \"a\", True, \"b\"} {1, 2, 3, \"a\", True, \"b\"} {1, 2, 3, \"a\", True, \"b\"} {1, 2, 3, \"a\", True, \"b\"} {1, 2, 3, \"a\", True, \"b\"} {1, 2, 3, \"a\", True, \"b\"} {1, 2, 3", + "got_raw": "snapshot({1, 2, 3, \"a\", True, \"b\"}) {1, 2, 3, \"a\", True, \"b\"} {1, 2, 3, \"a\", True, \"b\"} {1, 2, 3, \"a\", True, \"b\"} {1, 2, 3, \"a\", True, \"b\"} {1, 2, 3, \"a\", True, \"b\"} {1, 2, 3, \"a\", True, \"b\"} {1, 2, 3", + "exact_match": false, + "code_bleu": 0.01690350769811075, + "edit_similarity": 0.1645021645021645 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "snapshot(\"Counter({1: 3, 2: 1})\")", + "got": "snapshot(\"Counter([1, 1, 1, 2])\") * 2 + 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "snapshot(\"Counter([1, 1, 1, 2])\") * 2 + 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.22679164443904004, + "edit_similarity": 0.28888888888888886 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "snapshot( \"{1, 2, 3, 10, 11, 20, 200}\" )", + "got": "snapshot(\"{1, 2, 3, 10, 11, 20, 200}\") * 200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "snapshot(\"{1, 2, 3, 10, 11, 20, 200}\") * 200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.6147881529512643, + "edit_similarity": 0.4222222222222222 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "snapshot( \"{'a', 'b', 1j, 2j, 3j, True}\" )", + "got": "snapshot(\"{'a', 'b', 1j, 2j, 3j}\") * 1j + 1j * 2j + 1j * 3j + 1j * \"a\" + 1j * True + 1j * \"b\" + 1j * 1j + 1j * 2j + 1j * 3j + 1j * 1j + 1j * 2j + 1j * 3j + 1j * \"a\" + 1j * True + 1j", + "got_raw": "snapshot(\"{'a', 'b', 1j, 2j, 3j}\") * 1j + 1j * 2j + 1j * 3j + 1j * \"a\" + 1j * True + 1j * \"b\" + 1j * 1j + 1j * 2j + 1j * 3j + 1j * 1j + 1j * 2j + 1j * 3j + 1j * \"a\" + 1j * True + 1j", + "exact_match": false, + "code_bleu": 0.02038723994504529, + "edit_similarity": 0.34080717488789236 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "snapshot( \"\"\"\\ class Color: pass assert [Color,int] == snapshot([Color, int]) \"\"\" )", + "got": "True if check_update else False) == True) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) ==", + "got_raw": "True if check_update else False) == True) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) ==", + "exact_match": false, + "code_bleu": 0.007099902136404078, + "edit_similarity": 0.0735009671179884 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "snapshot( \"\"\"\\ from enum import Flag, auto class Color(Flag): red = auto() green = auto() blue = auto() assert Color.red | Color.blue == snapshot(Color.red | Color.blue) \"\"\" )", + "got": "True if check_update() else False if check_update() else False if check_update() else True if check_update() else False if check_update() else True if check_update() else False if check_update() else True if check_update() else False if check_update() else True if check_update() else False if check_update() else True if check_update() else False if check_update() else True if check_update() else False if check_update() else True if check_update() else False if check_update() else True if check_update() else False if check_update() else True if check_update() else False if check_update() else True if", + "got_raw": "True if check_update() else False if check_update() else False if check_update() else True if check_update() else False if check_update() else True if check_update() else False if check_update() else True if check_update() else False if check_update() else True if check_update() else False if check_update() else True if check_update() else False if check_update() else True if check_update() else False if check_update() else True if check_update() else False if check_update() else True if check_update() else False if check_update() else True if check_update() else False if check_update() else True if", + "exact_match": false, + "code_bleu": 0.010322546006950492, + "edit_similarity": 0.0793854033290653 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "snapshot( \"\"\"\\ from enum import Enum from dataclasses import dataclass class color(Enum): red=\"red\" blue=\"blue\" @dataclass class container: bg: color=color.red fg: color=color.blue assert container(bg=color.red,fg=color.red) == snapshot(container(fg=color.red)) \"\"\" )", + "got": "snapshot( { \"class\": \"dataclass\", \"fields\": { \"enum_field\": {\"enum\": \"MyEnum\", \"value\": \"A\"}, }, } ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "got_raw": "snapshot( { \"class\": \"dataclass\", \"fields\": { \"enum_field\": {\"enum\": \"MyEnum\", \"value\": \"A\"}, }, } ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "exact_match": false, + "code_bleu": 0.014074196184043037, + "edit_similarity": 0.03963963963963964 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "None", + "got": "None", + "got_raw": "None and block_found is True and block_start_linenum < linenumber + 1) else False) * 2) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "blocks", + "got": "blocks[:]", + "got_raw": "blocks[:] + [Block(code=exception)] if new_markdown_code is None else new_markdown_code.splitlines()[:-1] + [\"\"] * (len(blocks) + 1) + [\"\"] * (len(new_markdown_code.splitlines()) - len(blocks)) + [\"\"] * (len(new_markdown_code.splitlines()) - len(blocks)) + [\"\"] * (len(new_markdown_code.splitlines()) - len(blocks)) + [\"\"] * (len(new_markdown_code.splitlines()) - len(blocks)) + [\"\"] * (len(new_markdown_code.splitlines()) - len(blocks)) + [\"\"] *", + "exact_match": false, + "code_bleu": 0.35930411196308426, + "edit_similarity": 0.8 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "new_code", + "got": "Path(file)", + "got_raw": "Path(file) / file.name + \".txt\" / Path(file) / file.name + \".txt\" / file.name + \".txt\" / file.name + \".txt\" / file.name + \".txt\" / file.name + \".txt\" / file.name + \".txt\" / file.name + \".txt\" / file.name + \".txt\" / file.name + \".txt\" / file.name + \".txt\" / file.name + \".txt\" / file.name + \".txt\" / file.name + \".txt\" / file.name + \".txt\" / file.name + \".txt\" / file.name + \".txt\" / file", + "exact_match": false, + "code_bleu": 0.3021375397356768, + "edit_similarity": 0.1111111111111111 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "recorded_markdown_code", + "got": "recorded_markdown_code.replace(exception", + "got_raw": "recorded_markdown_code.replace(exception, \"\") + \"\\n\" + exception + \"\\n\" + \"\\n\" + new_code.replace(exception, \"\") + \"\\n\" + exception + \"\\n\" + \"\\n\" + new_markdown_code.replace(exception, \"\") + \"\\n\" + exception + \"\\n\" + \"\\n\" + new_markdown_code.replace(exception, \"\") + \"\\n\" + exception + \"\\n\" + \"\\n\" + new_markdown_code.replace(exception, \"\") + \"\\n\" + exception + \"\\n\" + \"\\n\" + new_markdown_code.replace(exception, \"\") + \"\\n\" + exception", + "exact_match": false, + "code_bleu": 0.2730120862709067, + "edit_similarity": 0.7096774193548387 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "5", + "got": "5.000000000000000111234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789", + "got_raw": "5.000000000000000111234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "[0, 5]", + "got": "[0, \"hash:ef2d127de37b*.json\"] * 2 + [0] * 2 + [1] * 2 + [2] * 2 + [3] * 2 + [4] * 2 + [5] * 2 + [6] * 2 + [7] * 2 + [8] * 2 + [9] * 2 + [10] * 2 + [11] * 2 + [12] * 2 + [13] * 2 + [14", + "got_raw": "[0, \"hash:ef2d127de37b*.json\"] * 2 + [0] * 2 + [1] * 2 + [2] * 2 + [3] * 2 + [4] * 2 + [5] * 2 + [6] * 2 + [7] * 2 + [8] * 2 + [9] * 2 + [10] * 2 + [11] * 2 + [12] * 2 + [13] * 2 + [14", + "exact_match": false, + "code_bleu": 0.028153328683901132, + "edit_similarity": 0.06315789473684211 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "snapshot(\"5\")", + "got": "\"5\"", + "got_raw": "\"5\" + inspect(s) + inspect(s) + inspect(s) + inspect(s) + inspect(s) + inspect(s) + inspect(s) + inspect(s) + inspect(s) + inspect(s) + inspect(s) + inspect(s) + inspect(s) + inspect(s) + inspect(s) + inspect(s) + inspect(s) + inspect(s) + inspect(s) + inspect(s) + inspect(s) + inspect(s) + inspect(s) + inspect(s) + inspect(s) + inspect(s) + inspect(s) + inspect(s) + inspect(s) + inspect(s) + inspect(s) +", + "exact_match": false, + "code_bleu": 0.14865088937534013, + "edit_similarity": 0.375 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "snapshot(\"[0, 5]\")", + "got": "[0, 5] * 2 + [0] * 2 + [5] * 2 + [0] * 2 + [5] * 2 + [0] * 2 + [5] * 2 + [0] * 2 + [5] * 2 + [0] * 2 + [5] * 2 + [0] * 2 + [5] * 2 + [0] * 2 + [5] * 2 + [0] * 2 + [5] * 2 + [0] * 2", + "got_raw": "[0, 5] * 2 + [0] * 2 + [5] * 2 + [0] * 2 + [5] * 2 + [0] * 2 + [5] * 2 + [0] * 2 + [5] * 2 + [0] * 2 + [5] * 2 + [0] * 2 + [5] * 2 + [0] * 2 + [5] * 2 + [0] * 2 + [5] * 2 + [0] * 2", + "exact_match": false, + "code_bleu": 0.009217079234914171, + "edit_similarity": 0.06060606060606061 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "A(a=outsource(5), b=2)", + "got": "snapshot(A(a=\"hash:ef2d127de37b*.json\", b=2)) * 2345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234", + "got_raw": "snapshot(A(a=\"hash:ef2d127de37b*.json\", b=2)) * 2345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234", + "exact_match": false, + "code_bleu": 0.4792365811426396, + "edit_similarity": 0.13872832369942195 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "snapshot(\"A(a=5, b=2)\")", + "got": "A(a=5, b=2) * 2 + 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "A(a=5, b=2) * 2 + 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.09782375748961449, + "edit_similarity": 0.14193548387096774 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "HasRepr(float, \"nan\")", + "got": "float(\"nan\") - 0.012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789", + "got_raw": "float(\"nan\") - 0.012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789", + "exact_match": false, + "code_bleu": 0.3303164318013807, + "edit_similarity": 0.13924050632911392 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "HasRepr(Thing, \"\")", + "got": "HasRepr(Thing)() * 2.0 + 1.0 * 3.0 * 4.0 * 5.0 * 6.0 * 7.0 * 8.0 * 9.0 * 10.0 * 11.0 * 12.0 * 13.0 * 14.0 * 15.0 * 16.0 * 17.0 * 18.0 * 19.0 * 20.0 * 21.0 * 22", + "got_raw": "HasRepr(Thing)() * 2.0 + 1.0 * 3.0 * 4.0 * 5.0 * 6.0 * 7.0 * 8.0 * 9.0 * 10.0 * 11.0 * 12.0 * 13.0 * 14.0 * 15.0 * 16.0 * 17.0 * 18.0 * 19.0 * 20.0 * 21.0 * 22", + "exact_match": false, + "code_bleu": 0.04729181034073558, + "edit_similarity": 0.14893617021276595 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "1", + "got": "1", + "got_raw": "1 == snapshot(1) == snapshot(1) == 1 == snapshot(1) == 1 == 1 == 1 == 1 == 1 == 1 == 1 == 1 == 1 == 1 == 1 == 1 == 1 == 1 == 1 == 1 == 1 == 1 == 1 == 1 == 1 == 1 == 1 == 1 == 1 == 1 == 1 == 1 == 1 == 1 == 1 == 1 == 1 == 1 == 1 == 1 ==", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "code", + "got": "s.source.replace(code)", + "got_raw": "s.source.replace(code) + \"\\n\" + snapshot_env() + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n", + "exact_match": false, + "code_bleu": 0.16036590969929357, + "edit_similarity": 0.3076923076923077 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "set()", + "got": "set(all_flags)", + "got_raw": "set(all_flags) - {reported_flag} | {reported_flag} | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set()", + "exact_match": false, + "code_bleu": 0.5081327481546147, + "edit_similarity": 0.5263157894736842 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "test2", + "got": "test2", + "got_raw": "test2 == 0 == 0 == 5 == 5 == 5 <= 5 >= 5 in 5 == 5[0] == 5[5] == 5 == 5[5] == 5[5] == 5[5] == 5[5] == 5[5] == 5[5] == 5[5] == 5[5] == 5[5] == 5[5] == 5[5] == 5[5] == 5[5] == 5[5] == 5", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "s.error", + "got": "s.fix()", + "got_raw": "s.fix() == 0 == s.update() == 0 == s.trim() == 0 == 0 == 0 == 0 == 0 == 0 == 0 == 0 == 0 == 0 == 0 == 0 == 0 == 0 == 0 == 0 == 0 == 0 == 0 == 0 == 0 == 0 == 0 == 0 == 0 == 0 == 0 == 0 == 0 == 0 == 0 == 0 == 0 == 0 == 0 == 0 == 0", + "exact_match": false, + "code_bleu": 0.35930411196308426, + "edit_similarity": 0.2857142857142857 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "s.source", + "got": "code.replace(reported_flag", + "got_raw": "code.replace(reported_flag, flag) * 2 + \"\\n\" * 2 + code.replace( flag, reported_flag ) * 2 + \"\\n\" * 2 + code.replace( flag, flag ) * 2 + \"\\n\" * 2 + code.replace( flag, \"\" ) * 2 + \"\\n\" * 2 + code.replace( flag, \"\" ) * 2 + \"\\n\" * 2 + code.replace( flag, \"\" ) * 2 + \"\\n\" * 2 + code.replace( flag, \"\" ) * 2 + \"\\n\" * 2 +", + "exact_match": false, + "code_bleu": 0.2730120862709067, + "edit_similarity": 0.23529411764705882 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "s2.source", + "got": "\"\"", + "got_raw": "\"\" + code + \"\" + \"\\n\" + s3.snapshot() + \"\\n\" + \"\" + \"\\n\" + \"\" + \"\\n\" + \"\" + \"\\n\" + \"\" + \"\\n\" + \"\" + \"\\n\" + \"\" + \"\\n\" + \"\" + \"\\n\" + \"\" + \"\\n\" + \"\" + \"\\n\" + \"\" + \"\\n\" + \"\" + \"\\n\" + \"\" + \"\\n\" + \"\" + \"\\n\" + \"\" + \"\\n\" + \"\" + \"\\n\" + \"\" + \"\\n\" + \"\" + \"\\n\" + \"\" + \"\\n\" + \"\"", + "exact_match": false, + "code_bleu": 0.16666666666666666, + "edit_similarity": 0.0 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "snapshot()", + "got": "len(snapshot_env())", + "got_raw": "len(snapshot_env()) - 1 - state.active_count + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1", + "exact_match": false, + "code_bleu": 0.2907153684841096, + "edit_similarity": 0.6896551724137931 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "TypeError)", + "got": "TypeError)", + "got_raw": "TypeError) as e) as exc1, exc2:\n check_update(test1, test2)()\n assert str(e1.value) == str(e2.value) + str(e1.value) + str(e2.value) + str(e1.value) + str(e2.value) + str(e1.value) + str(e2.value) + str(e1.value) + str(e2.value) + str(e1.value) + str(e2.value) + str(e1.value) + str(e2.value) + str(e1.value) + str(e2.value) + str(e1.value) +", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "snapshot(1)", + "got": "1", + "got_raw": "1 == 1 == 1 == 1 == 1 == 1 == 1 == 1 == 1 == 1 == 1 == 1 == 1 == 1 == 1 == 1 == 1 == 1 == 1 == 1 == 1 == 1 == 1 == 1 == 1 == 1 == 1 == 1 == 1 == 1 == 1 == 1 == 1 == 1 == 1 == 1 == 1 == 1 == 1 == 1 == 1 == 1 == 1 ==", + "exact_match": false, + "code_bleu": 0.14865088937534013, + "edit_similarity": 0.16666666666666666 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "snapshot(\"\")", + "got": "snapshot(\"\"\"\\", + "got_raw": "snapshot(\"\"\"\\ This changes will be applied, because you used report \"\"\" ) * 2 + \"\"\"\\ These changes will be applied, because you used create \"\"\" ) * 2 + \"\"\"\\ \"\"\" ) * 2 + \"\"\"\\ \"\"\" ) * 2 + \"\"\"\\ \"\"\" ) * 2 + \"\"\"\\ \"\"\" ) * 2 + \"\"\"\\ \"\"\" ) * 2 + \"\"\"\\ \"\"\" ) * 2 + \"\"\"\\ \"\"\" ) * 2 + \"\"\"\\ \"\"\" ) * 2 + \"\"\"\\ \"\"\" ) * 2 + \"\"\"\\ \"\"\" ) * 2 + \"\"\"\\ \"\"\" ) * 2 + \"\"\"\\ \"\"\"", + "exact_match": false, + "code_bleu": 0.5081327481546147, + "edit_similarity": 0.88 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "\"snapshot()\\n\"", + "got": "snapshot_env()", + "got_raw": "snapshot_env() | set() | check_update() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() |", + "exact_match": false, + "code_bleu": 0.37991784282579627, + "edit_similarity": 0.7142857142857143 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "AssertionError)", + "got": "RuntimeError)", + "got_raw": "RuntimeError) as exc) as val:\n snapshot_env() # noqa: E100, E101, E102, E103, E104, E105, E106, E107, E108, E109) # noqa: E100, E101, E102, E103, E104, E105, E106, E107, E108, E109) # noqa: E1", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.5714285714285714 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "{reported_flag}", + "got": "set(reported_flag)", + "got_raw": "set(reported_flag) | set(s.flags) | set(all_flags) - set(s.flags) - set(reported_flag) - set(reported_flag) - set(reported_flag) - set(reported_flag) - set(reported_flag) - set(reported_flag) - set(reported_flag) - set(reported_flag) - set(reported_flag) - set(reported_flag) - set(reported_flag) - set(reported_flag) - set(reported_flag) - set(reported_flag) - set(reported_flag) - set(reported_flag) - set(reported_flag) - set(reported_flag)", + "exact_match": false, + "code_bleu": 0.35930411196308426, + "edit_similarity": 0.7878787878787878 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "snapshot(set())", + "got": "snapshot()", + "got_raw": "snapshot() * 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15 + 16 + 17 + 18 + 19 + 20 + 21 + 22 + 23 + 24 + 25 + 26 + 27 + 28 + 29 + 30 + 31 + 32 + 33", + "exact_match": false, + "code_bleu": 0.3535533905932738, + "edit_similarity": 0.8 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "str(error.value)", + "got": "str(error)", + "got_raw": "str(error) + \"\\n\" + snapshot_env() + \"\\n\" + str(error) + \"\\n\" + str(Flags()) + \"\\n\" + str(Flags(allow_type_check=True)) + \"\\n\" + str(Flags(allow_type_check=False)) + \"\\n\" + str(Flags(allow_type_check=True, allow_type_check=False)) + \"\\n\" + str(Flags(allow_type_check=False)) + \"\\n\" + str(Flags(allow_type_check=True)) + \"\\n\" + str(Flags(allow_type_check=False)) + \"\\n\" + str(Flags(allow_type", + "exact_match": false, + "code_bleu": 0.4714045207910316, + "edit_similarity": 0.7692307692307693 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "expected_warnings", + "got": "result[:]", + "got_raw": "result[:] == expected_warnings[:] + [Warning] * len(expected_warnings) + result[:] * len(expected_warnings) + result[:] * len(expected_warnings) + result[:] * len(expected_warnings) + result[:] * len(expected_warnings) + result[:] * len(expected_warnings) + result[:] * len(expected_warnings) + result[:] * len(expected_warnings) + result[:] * len(expected_warnings) + result[:] * len(expected_warnings) + result[:] * len(expected_warnings) + result[:] * len(expected_warnings) + result[:] * len(expected_warnings) + result[:] * len(expected_warnings) + result[:] * len(expected_warnings) +", + "exact_match": false, + "code_bleu": 0.3021375397356768, + "edit_similarity": 0.15384615384615385 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "\"Flags({'update'})\"", + "got": "\"{'update'}\"", + "got_raw": "\"{'update'}\" + snapshot_env() + \"\\n\" + repr(Flags({\"update\", \"delete\"}) == Flags({\"update\", \"delete\"}) + \"\\n\" + repr(Flags({\"update\", \"delete\", \"insert\"})) == Flags({\"update\", \"delete\", \"insert\"}) + \"\\n\" + repr(Flags({\"update\", \"delete\", \"insert\", \"test\"})) == Flags({\"update\", \"delete\", \"insert\", \"test\"}) + \"\\n\" + repr(Flags({\"update\", \"delete\", \"insert\", \"test\", \"test2\"})) == Flags({\"update\", \"delete\",", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.7741935483870968 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "snapshot({\"create\"})", + "got": "Flags()", + "got_raw": "Flags() | Flags.DETAILED_REPORT | Flags.QUOTE_CHANGE_IS_NO_UPDATE | Flags.VERBOSE | Flags.WITHOUT_PARENTHESIS | Flags.NO_CRLF | Flags.NO_EAT | Flags.NO_WARN | Flags.NO_PARENTHESIS | Flags.NO_CRLF | Flags.NO_EAT | Flags.NO_WARN | Flags.NO_PARENTHESIS | Flags.NO_CRLF | Flags.NO_EAT | Flags.NO_WARN | Flags.NO_PARENTHESIS | Flags.NO_CRLF | Flags.NO_EAT | Flags.NO_WARN | Flags.NO_PARENTHESIS | Flags.NO_CRLF | Flags.NO_EAT | Flags.NO_WARN", + "exact_match": false, + "code_bleu": 0.24999999999999997, + "edit_similarity": 0.2962962962962963 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "repr(Is(5))", + "got": "repr(Is(\"5\"))", + "got_raw": "repr(Is(\"5\")) == repr(5) + \"\" + repr(Is(\"5\")) + \"\" + repr(5) + \"\" + repr(Is(\"5\")) + \"\" + repr(Is(\"5\")) + \"\" + repr(Is(\"5\")) + \"\" + repr(Is(\"5\")) + \"\" + repr(Is(\"5\")) + \"\" + repr(Is(\"5\")) + \"\" + repr(Is(\"5\")) + \"\" + repr(Is(\"5\")) + \"\" + repr(Is(\"5\")) + \"\" + repr(Is(\"5\")) + \"\" + repr(Is(\"5\")) + \"\" + repr(Is(\"5\")) + \"\" + repr(Is(\"5", + "exact_match": false, + "code_bleu": 0.5946035575013605, + "edit_similarity": 0.9166666666666666 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "flags", + "got": "all_flags", + "got_raw": "all_flags | set() - flags | set() - set() - set() - set() - set() - set() - set() - set() - set() - set() - set() - set() - set() - set() - set() - set() - set() - set() - set() - set() - set() - set() - set() - set() - set() - set() - set() - set() - set() - set() - set() - set() - set() - set() - set() - set() - set() - set() - set() - set() -", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.7142857142857143 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "s1.error", + "got": "c1", + "got_raw": "c1 == c2 == snapshot(c1) == snapshot(c2) == snapshot(code) == s1.flags | {\"\"} | all_flags | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set", + "exact_match": false, + "code_bleu": 0.16666666666666666, + "edit_similarity": 0.2 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "new_code", + "got": "new_code.splitlines()[:-1]", + "got_raw": "new_code.splitlines()[:-1] + [\"\"] * (frozenset(f) - flags) - {c3} - {c2} - {c1} - set(s1.flags) - set(s2.flags) - set() - set(frozenset(f)) - set() - set() - set() - set() - set() - set() - set() - set() - set() - set() - set() - set() - set() - set() - set() - set() - set() - set() - set() - set() - set() - set() - set", + "exact_match": false, + "code_bleu": 0.12605968092174913, + "edit_similarity": 0.47058823529411764 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "snapshot(\"assert {}==snapshot({})\")", + "got": "snapshot(\"assert {1:1}==snapshot({1:0})\" * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2)", + "got_raw": "snapshot(\"assert {1:1}==snapshot({1:0})\" * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2)", + "exact_match": false, + "code_bleu": 0.01944431604047823, + "edit_similarity": 0.32558139534883723 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "snapshot(\"assert [1,2]==snapshot([0+1,2])\")", + "got": "snapshot([1, 2, 3]) * 2 + snapshot([4, 5, 6]) * 3 + snapshot([7, 8, 9]) * 4 + snapshot([10]) * 5 + snapshot([11]) * 6 + snapshot([12]) * 7 + snapshot([13]) * 8 + snapshot([14]) * 9 + snapshot([15]) * 10 + snapshot([16]) * 11 + snapshot([17]) * 12 + snapshot([18]) * 13 + snapshot", + "got_raw": "snapshot([1, 2, 3]) * 2 + snapshot([4, 5, 6]) * 3 + snapshot([7, 8, 9]) * 4 + snapshot([10]) * 5 + snapshot([11]) * 6 + snapshot([12]) * 7 + snapshot([13]) * 8 + snapshot([14]) * 9 + snapshot([15]) * 10 + snapshot([16]) * 11 + snapshot([17]) * 12 + snapshot([18]) * 13 + snapshot", + "exact_match": false, + "code_bleu": 0.013957387777179836, + "edit_similarity": 0.09937888198757763 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "snapshot(\"assert {1:1}==snapshot({1:0+1})\")", + "got": "snapshot({\"a\": 1}) | snapshot({\"a\": 2}) | snapshot({\"a\": 3}) | snapshot({\"a\": 4}) | snapshot({\"a\": 5}) | snapshot({\"a\": 6}) | snapshot({\"a\": 7}) | snapshot({\"a\": 8}) | snapshot({\"a\": 9}) | snapshot({\"a\": 10}) | snapshot({\"a\": 11}) | snapshot({\"a\": 12}) | snapshot({\"a\": 13}) | snapshot({\"a\": 14}) | snapshot({\"a\": 15}) | snapshot({\"", + "got_raw": "snapshot({\"a\": 1}) | snapshot({\"a\": 2}) | snapshot({\"a\": 3}) | snapshot({\"a\": 4}) | snapshot({\"a\": 5}) | snapshot({\"a\": 6}) | snapshot({\"a\": 7}) | snapshot({\"a\": 8}) | snapshot({\"a\": 9}) | snapshot({\"a\": 10}) | snapshot({\"a\": 11}) | snapshot({\"a\": 12}) | snapshot({\"a\": 13}) | snapshot({\"a\": 14}) | snapshot({\"a\": 15}) | snapshot({\"", + "exact_match": false, + "code_bleu": 0.012143304193841924, + "edit_similarity": 0.08533333333333333 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "snapshot(\"assert [1,5]==snapshot([0+1, 5])\")", + "got": "snapshot([1, 3]) * snapshot([2]) - snapshot([2]) * snapshot([3]) - snapshot([1]) * snapshot([2]) - snapshot([1]) * snapshot([3]) - snapshot([1]) * snapshot([2]) - snapshot([1]) * snapshot([3]) - snapshot([1]) * snapshot([2]) - snapshot([1]) * snapshot([3]) - snapshot([1]) * snapshot([2]) - snapshot([1]) * snapshot([3]) - snapshot([1]) * snapshot([2]) - snapshot([1]) * snapshot([3]) - snapshot([1]) *", + "got_raw": "snapshot([1, 3]) * snapshot([2]) - snapshot([2]) * snapshot([3]) - snapshot([1]) * snapshot([2]) - snapshot([1]) * snapshot([3]) - snapshot([1]) * snapshot([2]) - snapshot([1]) * snapshot([3]) - snapshot([1]) * snapshot([2]) - snapshot([1]) * snapshot([3]) - snapshot([1]) * snapshot([2]) - snapshot([1]) * snapshot([3]) - snapshot([1]) * snapshot([2]) - snapshot([1]) * snapshot([3]) - snapshot([1]) *", + "exact_match": false, + "code_bleu": 0.009528762455274096, + "edit_similarity": 0.07174887892376682 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "snapshot(\"assert (1,5)==snapshot((0+1, 5))\")", + "got": "snapshot((1, 2)) - snapshot((1,)) - snapshot((2,)) - snapshot((2, 3)) - snapshot((2, 3, 4)) - snapshot((2, 3, 4, 5)) - snapshot((2, 3, 4, 5, 6)) - snapshot((2, 3, 4, 5, 6, 7)) - snapshot((2, 3, 4, 5, 6, 7, 8)) - snapshot((2, 3, 4, 5, 6", + "got_raw": "snapshot((1, 2)) - snapshot((1,)) - snapshot((2,)) - snapshot((2, 3)) - snapshot((2, 3, 4)) - snapshot((2, 3, 4, 5)) - snapshot((2, 3, 4, 5, 6)) - snapshot((2, 3, 4, 5, 6, 7)) - snapshot((2, 3, 4, 5, 6, 7, 8)) - snapshot((2, 3, 4, 5, 6", + "exact_match": false, + "code_bleu": 0.013957387777179836, + "edit_similarity": 0.12186379928315412 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "snapshot('assert {1+2:\"3\"}==snapshot({1+2:\"3\"})')", + "got": "snapshot({\"a\": 1", + "got_raw": "snapshot({\"a\": 1, \"b\": 2}) as d1, snapshot({\"a\": 1, \"b\": 2, \"c\": 3}) as d2, snapshot({\"a\": 1, \"b\": 2, \"c\": 3, \"d\": 4}) as d3, snapshot({\"a\": 1, \"b\": 2, \"c\": 3, \"d\": 4, \"e\": 5}) as d4, snapshot({\"a\": 1, \"b\": 2, \"c\": 3, \"d\": 4", + "exact_match": false, + "code_bleu": 0.2907153684841096, + "edit_similarity": 0.36923076923076925 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "snapshot(\"assert {1:1, 2:2}==snapshot({1:0+1, 2:2})\")", + "got": "snapshot({\"a\": 1}) | snapshot({\"a\": 2}) | snapshot({\"a\": 3}) | snapshot({\"a\": 4}) | snapshot({\"a\": 5}) | snapshot({\"a\": 6}) | snapshot({\"a\": 7}) | snapshot({\"a\": 8}) | snapshot({\"a\": 9}) | snapshot({\"a\": 10}) | snapshot({\"a\": 11}) | snapshot({\"a\": 12}) | snapshot({\"a\": 13}) | snapshot({\"a\": 14}) | snapshot({\"a\": 15}) | snapshot({\"", + "got_raw": "snapshot({\"a\": 1}) | snapshot({\"a\": 2}) | snapshot({\"a\": 3}) | snapshot({\"a\": 4}) | snapshot({\"a\": 5}) | snapshot({\"a\": 6}) | snapshot({\"a\": 7}) | snapshot({\"a\": 8}) | snapshot({\"a\": 9}) | snapshot({\"a\": 10}) | snapshot({\"a\": 11}) | snapshot({\"a\": 12}) | snapshot({\"a\": 13}) | snapshot({\"a\": 14}) | snapshot({\"a\": 15}) | snapshot({\"", + "exact_match": false, + "code_bleu": 0.012143304193841924, + "edit_similarity": 0.09350649350649351 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "snapshot(\"assert [1,2,3,4,5,6]==snapshot([0+1, 2, 3, 4, 5, 6])\")", + "got": "snapshot([1, 2, 3]) * 2 + [4] * 2 + [5] * 2 + [6] * 2 + [7] * 2 + [8] * 2 + [9] * 2 + [10] * 2 + [11] * 2 + [12] * 2 + [13] * 2 + [14] * 2 + [15] * 2 + [16] * 2 + [17] * 2 + [18] * 2 +", + "got_raw": "snapshot([1, 2, 3]) * 2 + [4] * 2 + [5] * 2 + [6] * 2 + [7] * 2 + [8] * 2 + [9] * 2 + [10] * 2 + [11] * 2 + [12] * 2 + [13] * 2 + [14] * 2 + [15] * 2 + [16] * 2 + [17] * 2 + [18] * 2 +", + "exact_match": false, + "code_bleu": 0.01640871112595306, + "edit_similarity": 0.1532258064516129 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "snapshot( 'assert {0:\"before\",1:1,2:\"after\"}==snapshot({0: \"before\", 1:0+1, 2: \"after\"})' )", + "got": "snapshot({\"a\": 1}) | snapshot({\"a\": 1, \"b\": 2}) | snapshot({\"a\": 1, \"b\": 2, \"c\": 3}) | snapshot({\"a\": 1, \"b\": 2, \"c\": 3, \"d\": 4}) | snapshot({\"a\": 1, \"b\": 2, \"c\": 3, \"d\": 4, \"e\": 5}) | snapshot({\"a\": 1, \"b\": 2, \"c\": 3, \"d\": 4, \"e\":", + "got_raw": "snapshot({\"a\": 1}) | snapshot({\"a\": 1, \"b\": 2}) | snapshot({\"a\": 1, \"b\": 2, \"c\": 3}) | snapshot({\"a\": 1, \"b\": 2, \"c\": 3, \"d\": 4}) | snapshot({\"a\": 1, \"b\": 2, \"c\": 3, \"d\": 4, \"e\": 5}) | snapshot({\"a\": 1, \"b\": 2, \"c\": 3, \"d\": 4, \"e\":", + "exact_match": false, + "code_bleu": 0.01594205952639366, + "edit_similarity": 0.14285714285714285 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "snapshot( \"\"\"\\ from dirty_equals import IsInt assert {5:5,2:2}==snapshot({5:IsInt(),2:2}) \"\"\" )", + "got": "False, match=\"The version of `dirty_equals` used in the test is already up to date.\" * 80) * 80) * 80) * 80) * 80) * 80) * 80) * 80) * 80) * 80) * 80) * 80) * 80) * 80) * 80) * 80) * 80) * 80) * 80) * 80) * 80) *", + "got_raw": "False, match=\"The version of `dirty_equals` used in the test is already up to date.\" * 80) * 80) * 80) * 80) * 80) * 80) * 80) * 80) * 80) * 80) * 80) * 80) * 80) * 80) * 80) * 80) * 80) * 80) * 80) * 80) * 80) * ", + "exact_match": false, + "code_bleu": 0.0173630008847612, + "edit_similarity": 0.1758957654723127 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "snapshot( \"\"\"\\ left = { \"a\": 1, \"b\": { \"c\": 2, \"d\": [ 3, 4, 5, ], }, \"e\": ( { \"f\": 6, \"g\": 7, }, ), } assert left == snapshot( { \"a\": 1, \"b\": { \"c\": 2 * 1 + 0, \"d\": [ int(3), 4, 5, ], }, \"e\": ({\"f\": 3 + 3, \"g\": 7},), } ) \"\"\" )", + "got": "snapshot(\"\"\"\\ def f(x): return x + 1 def g(x): return x + 1 def f(x): return x + 1 def g(x): return x + 1 def f(x): return x + 1 def g(x): return x + 1 def f(x): return x + 1 def g(x): return x + 1 def f(x): return x + 1 def g(x): return x + 1 def f(x): return x + 1 def g(x): return x + 1 def f(x): return x + 1 def g(x): return x +", + "got_raw": "snapshot(\"\"\"\\ def f(x): return x + 1 def g(x): return x + 1 def f(x): return x + 1 def g(x): return x + 1 def f(x): return x + 1 def g(x): return x + 1 def f(x): return x + 1 def g(x): return x + 1 def f(x): return x + 1 def g(x): return x + 1 def f(x): return x + 1 def g(x): return x + 1 def f(x): return x + 1 def g(x): return x + ", + "exact_match": false, + "code_bleu": 0.018891207612929607, + "edit_similarity": 0.07871198568872988 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "0", + "got": "0", + "got_raw": "0 # no errors or warnings expected in this test file. snapshot() is deactivated by default. ) snapshot() is deactivated by default. ) snapshot() is deactivated by default. ) snapshot() is deactivated by default. ) snapshot() is deactivated by default. ) snapshot() is deactivated by default. ) snapshot() is deactivated by default. ) snapshot() is deactivated by default. ) snapshot() is deactivated by default. ) snapshot() is deactivated by default. ) snapshot() is deactivated by default. ) snapshot() is deactivated by default. ) snapshot() is deactivated by default. ) snapshot() is deactivated by default. ) snapshot() is deactivated", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "1", + "got": "0", + "got_raw": "0 \"\"\"\\\n\n[1] test_sub_snapshot.py:1:8: snapshot({})[\"key\"] == 1 (from snapshot)\n\"\"\" \"\"\"\\\n\n[1] test_sub_snapshot.py:1:8: snapshot({})[\"key\"] == 1 (from snapshot) [1] test_sub_snapshot.py:1:8: snapshot({})[\"key\"] == 1 (from snapshot) [1] test_sub_snapshot.py:1:8: snapshot({})[\"key\"] == 1 (from snapshot) [1] test_sub_snapshot.py:1:8: snapshot({})[\"key\"] ==", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.0 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "snapshot(\"\")", + "got": "[]", + "got_raw": "[] * 2 + [snapshot(1)] * 2 + [] * 2 + [] * 2 + [] * 2 + [] * 2 + [] * 2 + [] * 2 + [] * 2 + [] * 2 + [] * 2 + [] * 2 + [] * 2 + [] * 2 + [] * 2 + [] * 2 + [] * 2 + [] * 2 + [] * 2 + [] * 2 + [] * 2 + [] * 2 + [] * 2 + [] * 2 + [] * 2", + "exact_match": false, + "code_bleu": 0.2259005009024612, + "edit_similarity": 0.0 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "snapshot( \"\"\"\\ def test_a(): assert 5==snapshot(5) \"\"\" )", + "got": "snapshot(\"\"\"\\ def test_a(): assert 5==snapshot() def test_b(): assert 5==snapshot(5) def test_c(): assert 5==snapshot(5) def test_d(): assert 5==snapshot(5) def test_e(): assert 5==snapshot(5) def test_f(): assert 5==snapshot(5) def test_g(): assert 5==snapshot(5) def test_h(): assert 5==snapshot(5) def test_i(): assert 5==snapshot(5) def test_j(): assert 5==snapshot(5) def test_k(): assert 5", + "got_raw": "snapshot(\"\"\"\\ def test_a(): assert 5==snapshot() def test_b(): assert 5==snapshot(5) def test_c(): assert 5==snapshot(5) def test_d(): assert 5==snapshot(5) def test_e(): assert 5==snapshot(5) def test_f(): assert 5==snapshot(5) def test_g(): assert 5==snapshot(5) def test_h(): assert 5==snapshot(5) def test_i(): assert 5==snapshot(5) def test_j(): assert 5==snapshot(5) def test_k(): assert 5", + "exact_match": false, + "code_bleu": 0.016657803719187302, + "edit_similarity": 0.23059866962305986 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "snapshot( \"\"\"\\ def test_a(): assert 4==snapshot(4) \"\"\" )", + "got": "snapshot(\"\"\"\\ def test_a(): assert 4==5 \"\"\") * IsIgnoreDict() + snapshot(\"\"\"\\ def test_a(): assert 4==5 \"\"\") * IsIgnoreDict() + snapshot(\"\"\"\\ def test_a(): assert 4==5 \"\"\") * IsIgnoreDict() + snapshot(\"\"\"\\ def test_a(): assert 4==5 \"\"\") * IsIgnoreDict() + snapshot(\"\"\"\\ def test_a(): assert 4==5 \"\"\") * IsIgnoreDict() + snapshot(\"\"\"\\ def test_a(): assert 4==5 \"\"\") * IsIgnoreDict() + snapshot(\"\"\"\\ def test_a(): assert", + "got_raw": "snapshot(\"\"\"\\ def test_a(): assert 4==5 \"\"\") * IsIgnoreDict() + snapshot(\"\"\"\\ def test_a(): assert 4==5 \"\"\") * IsIgnoreDict() + snapshot(\"\"\"\\ def test_a(): assert 4==5 \"\"\") * IsIgnoreDict() + snapshot(\"\"\"\\ def test_a(): assert 4==5 \"\"\") * IsIgnoreDict() + snapshot(\"\"\"\\ def test_a(): assert 4==5 \"\"\") * IsIgnoreDict() + snapshot(\"\"\"\\ def test_a(): assert 4==5 \"\"\") * IsIgnoreDict() + snapshot(\"\"\"\\ def test_a(): assert", + "exact_match": false, + "code_bleu": 0.03441083914309836, + "edit_similarity": 0.22362869198312235 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "snapshot( \"\"\"\\ def test_a(): assert 5 in snapshot([5]) \"\"\" )", + "got": "snapshot(\"\"\"\\ def test_a(): assert 5 in snapshot([5]) def test_b(): assert 5 in snapshot([4", + "got_raw": "snapshot(\"\"\"\\ def test_a(): assert 5 in snapshot([5]) def test_b(): assert 5 in snapshot([4,5]) def test_c(): assert 5 in snapshot([4,5,6]) def test_d(): assert 5 in snapshot([4,5,6,7]) def test_e(): assert 5 in snapshot([4,5,6,7,8]) def test_f(): assert 5 in snapshot([4,5,6,7,8,9]) def test_g(): assert 5 in snapshot([4,5,6,7,8,9,1", + "exact_match": false, + "code_bleu": 0.07678432706586173, + "edit_similarity": 0.7417218543046358 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "snapshot( \"\"\"\\ E assert 2 == 1 E + where 1 = snapshot() \"\"\" )", + "got": "[ snapshot(\"\"\"\\ Error: assert e == snapshot() for e in (1", + "got_raw": "[ snapshot(\"\"\"\\ Error: assert e == snapshot() for e in (1, 2) AssertionError: assert e == snapshot() for e in (1, 2) \"\"\") ] * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) *", + "exact_match": false, + "code_bleu": 0.12021577610863723, + "edit_similarity": 0.6610169491525424 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "snapshot( \"\"\"\\ def test_a(): assert \"5\" == snapshot(\"5\") \"\"\" )", + "got": "snapshot(\"\"\"\\ def test_a(): assert \"5\" == snapshot('''5''') def test_b(): assert \"5\" == snapshot(\"5\") def test_c(): assert \"5\" == snapshot(5) def test_d(): assert \"5\" == snapshot(5) def test_e(): assert \"5\" == snapshot(5) def test_f(): assert \"5\" == snapshot(5) def test_g(): assert \"5\" == snapshot(5) def test_h(): assert \"5\" == snapshot(5) def test_i(): assert \"5\" == snapshot(5) def test_j(): assert \"5", + "got_raw": "snapshot(\"\"\"\\ def test_a(): assert \"5\" == snapshot('''5''') def test_b(): assert \"5\" == snapshot(\"5\") def test_c(): assert \"5\" == snapshot(5) def test_d(): assert \"5\" == snapshot(5) def test_e(): assert \"5\" == snapshot(5) def test_f(): assert \"5\" == snapshot(5) def test_g(): assert \"5\" == snapshot(5) def test_h(): assert \"5\" == snapshot(5) def test_i(): assert \"5\" == snapshot(5) def test_j(): assert \"5", + "exact_match": false, + "code_bleu": 0.21996658526329096, + "edit_similarity": 0.2569593147751606 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "snapshot( \"\"\"\\ E assert 2 == 1 E + where 1 = snapshot(1) \"\"\" )", + "got": "[ \"AssertionError: 1 == snapshot(1)\"", + "got_raw": "[ \"AssertionError: 1 == snapshot(1)\", \"AssertionError: 2 == snapshot(1)\", ] )", + "exact_match": false, + "code_bleu": 0.15060033393497413, + "edit_similarity": 0.4897959183673469 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "snapshot( \"\"\"\\ def test_something(): assert 2 == snapshot(2) \"\"\" )", + "got": "snapshot(\"\"\"\\ def test_something(): assert 2 == snapshot(2) \"\"\") * 2 + IsIgnoreDict() + snapshot(\"\"\"\\ def test_something(): assert 2 == snapshot(1) \"\"\") * 2 + IsIgnoreDict() + snapshot(\"\"\"\\ def test_something(): assert 2 == snapshot(3) \"\"\") * 2 + IsIgnoreDict() + snapshot(\"\"\"\\ def test_something(): assert 2 == snapshot(4) \"\"\") * 2 + IsIgnoreDict() + snapshot(\"\"\"\\ def test_something(): assert 2 == snapshot(5) \"\"\") *", + "got_raw": "snapshot(\"\"\"\\ def test_something(): assert 2 == snapshot(2) \"\"\") * 2 + IsIgnoreDict() + snapshot(\"\"\"\\ def test_something(): assert 2 == snapshot(1) \"\"\") * 2 + IsIgnoreDict() + snapshot(\"\"\"\\ def test_something(): assert 2 == snapshot(3) \"\"\") * 2 + IsIgnoreDict() + snapshot(\"\"\"\\ def test_something(): assert 2 == snapshot(4) \"\"\") * 2 + IsIgnoreDict() + snapshot(\"\"\"\\ def test_something(): assert 2 == snapshot(5) \"\"\") * ", + "exact_match": false, + "code_bleu": 0.09204353584407582, + "edit_similarity": 0.2644628099173554 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "snapshot( \"ERROR: --inline-snapshot=disable can not be combined with other flags (fix)\" )", + "got": "\"\"\"\"\\ Inline snapshot tests are disabled by default. Use --inline-snapshot=enable to enable them. \"\"\" \"\"\"\\ You can also use --inline-snapshot=force to always run the snapshot tests. \"\"\" \"\"\"\\ For more information", + "got_raw": "\"\"\"\"\\ Inline snapshot tests are disabled by default. Use --inline-snapshot=enable to enable them. \"\"\" \"\"\"\\ You can also use --inline-snapshot=force to always run the snapshot tests. \"\"\" \"\"\"\\ For more information, see the documentation: https://inline-snapshot.readthedocs.io/ \"\"\" \"\"\"\\ \"\"\" \"\"\"\\ \"\"\" \"\"\"\\ \"\"\" \"\"\"\\ \"\"\" \"\"\"\\ \"\"\" \"\"\"\\ \"\"\" \"\"\"\\ \"\"\" \"\"\"\\ \"\"\" \"\"\"\\ \"\"\" \"\"\"\\ \"\"\" \"\"\"\\ \"\"\" \"\"\"\\ \"\"\" \"\"\"\\ \"\"\" \"\"\"\\ \"\"\" \"\"\"\\ \"\"\" \"\"\"\\ \"\"\" \"\"\"\\ \"\"\" \"\"\"\\ \"\"\" \"\"\"\\ \"\"\" \"\"\"\\ \"\"\" \"\"\"\\ \"\"\" \"\"\"", + "exact_match": false, + "code_bleu": 0.02309684450197104, + "edit_similarity": 0.36 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "snapshot( \"ERROR: --inline-snapshot=disable can not be combined with other flags (review)\" )", + "got": "snapshot( \"ERROR: --inline-snapshot=disable can not be combined with other flags (review)\" ) )", + "got_raw": "snapshot( \"ERROR: --inline-snapshot=disable can not be combined with other flags (review)\" ) )", + "exact_match": false, + "code_bleu": 0.7598356856515925, + "edit_similarity": 0.989247311827957 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "snapshot( \"\"\"\\ > assert \"a\"==snapshot(\"b\") E AssertionError: assert 'a' == 'b' E \\n\\ E - b E + a \"\"\" )", + "got": "[] * 0 + [snapshot(\"b\")] * 1 + [] * 0 + [] * 0 + [] * 0 + [] * 0 + [] * 0 + [] * 0 + [] * 0 + [] * 0 + [] * 0 + [] * 0 + [] * 0 + [] * 0 + [] * 0 + [] * 0 + [] * 0 + [] * 0 + [] * 0 + [] * 0 + [] * 0 + [] * 0 + [] * 0 + [] * 0 + [] * 0", + "got_raw": "[] * 0 + [snapshot(\"b\")] * 1 + [] * 0 + [] * 0 + [] * 0 + [] * 0 + [] * 0 + [] * 0 + [] * 0 + [] * 0 + [] * 0 + [] * 0 + [] * 0 + [] * 0 + [] * 0 + [] * 0 + [] * 0 + [] * 0 + [] * 0 + [] * 0 + [] * 0 + [] * 0 + [] * 0 + [] * 0 + [] * 0", + "exact_match": false, + "code_bleu": 0.013191039178811828, + "edit_similarity": 0.142433234421365 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "snapshot( \"\"\"\\ > assert snapshot(\"b\")==\"a\" E AssertionError: assert 'b' == 'a' E \\n\\ E - a E + b \"\"\" )", + "got": "snapshot( \"\"\"\\ > assert snapshot(\"b\")==\"a\" E AssertionError: assert 'b' == 'a' E \\n E - a E + b \"\"\" ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "got_raw": "snapshot( \"\"\"\\ > assert snapshot(\"b\")==\"a\" E AssertionError: assert 'b' == 'a' E \\n E - a E + b \"\"\" ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "exact_match": false, + "code_bleu": 0.03659339421160868, + "edit_similarity": 0.4867469879518072 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "snapshot( \"\"\"\\ def test_a(): assert list(range(10)) == snapshot( [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] ) \"\"\" )", + "got": "snapshot(\"\"\"\\ def test_a(): assert list(range(10)) == [] def test_b(): assert list(range(10)) == [0, 1, 2, 3, 4] \"\"\") * IsIgnoreDict() + snapshot(\"\"\"\\ [tool.black] line-length=50 [tool.flake8] max-line-length=88 [tool.isort] include_trailing_comma=True use_parentheses=True force_single_quotes=False \"\"\") * IsIgnoreDict() + snapshot(\"\"\"\\ [tool.black] line-length=50 [tool.flake8] max-line-length=88 [", + "got_raw": "snapshot(\"\"\"\\ def test_a(): assert list(range(10)) == [] def test_b(): assert list(range(10)) == [0, 1, 2, 3, 4] \"\"\") * IsIgnoreDict() + snapshot(\"\"\"\\ [tool.black] line-length=50 [tool.flake8] max-line-length=88 [tool.isort] include_trailing_comma=True use_parentheses=True force_single_quotes=False \"\"\") * IsIgnoreDict() + snapshot(\"\"\"\\ [tool.black] line-length=50 [tool.flake8] max-line-length=88 [", + "exact_match": false, + "code_bleu": 0.05318827859531979, + "edit_similarity": 0.31809145129224653 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "snapshot( \"\"\"\\ def test_a(): assert \"5\" == snapshot('''5''') assert 5 <= snapshot(5) assert 5 == snapshot(5) \"\"\" )", + "got": "snapshot(\"\"\"\\ def test_a(): assert \"5\" == snapshot('''5''') assert 5 <= snapshot(8) assert 5 == snapshot(4) \"\"\" )", + "got_raw": "snapshot(\"\"\"\\ def test_a(): assert \"5\" == snapshot('''5''') assert 5 <= snapshot(8) assert 5 == snapshot(4) \"\"\" )", + "exact_match": false, + "code_bleu": 0.6606328636027614, + "edit_similarity": 0.9779735682819384 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "snapshot( \"\"\"\\ def test_a(): assert \"5\" == snapshot('''5''') assert 5 <= snapshot(5) assert 5 == snapshot(4) \"\"\" )", + "got": "snapshot(\"\"\"\\ def test_a(): assert \"5\" == snapshot('''5''') assert 5 <= snapshot(8) assert 5 == snapshot(4) \"\"\" )", + "got_raw": "snapshot(\"\"\"\\ def test_a(): assert \"5\" == snapshot('''5''') assert 5 <= snapshot(8) assert 5 == snapshot(4) \"\"\" )", + "exact_match": false, + "code_bleu": 0.6606328636027614, + "edit_similarity": 0.986784140969163 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "b", + "got": "b", + "got_raw": "b + 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "a", + "got": "a", + "got_raw": "a + 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "r", + "got": "r.range()", + "got_raw": "r.range() == r.range_() == r.range_1_2() == r.range_1_2_3() == r.range_1_2_4() == r.range_1_2_5() == r.range_1_2_6() == r.range_1_2_7() == r.range_1_2_8() == r.range_1_2_9() == r.range_1_2_10() == r.range_1_2_11() == r.range_1_2_12() == r.range_1_2_1", + "exact_match": false, + "code_bleu": 0.2730120862709067, + "edit_similarity": 0.2 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "1", + "got": "2", + "got_raw": "2 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 +", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.0 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "ValueError)", + "got": "TypeError)", + "got_raw": "TypeError) as e) as f:\n r = SourceRange(a, 1) < 1\n str(e) == \"TypeError: '<' not supported between instances of 'inline_snapshot.SourceRange' and 'int'\" + str(e) + \"\\n\" + \"TypeError: '==' not supported between instances of 'inline_snapshot.SourceRange' and 'int'\" + str(e) + \"\\n\" + \"TypeError: '!=' not supported between instances of 'inline_snapshot.SourceRange' and 'int'\" + str(e) + \"\\n\" + \"TypeError: 'r' is not a 'inline_snapshot.Source", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.6666666666666666 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "\"\"\" 12a45 1245 12c345 \"\"\"", + "got": "b\"\"\"12345a12345c12345\"\"\" * 2 + b\"\"\"12345c12345a12345\"\"\" * 2 + b\"\"\"12345c12345a12345\"\"\" * 2 + b\"\"\"12345c12345a12345\"\"\" * 2 + b\"\"\"12345c12345a12345\"\"\" * 2 + b\"\"\"12345c", + "got_raw": "b\"\"\"12345a12345c12345\"\"\" * 2 + b\"\"\"12345c12345a12345\"\"\" * 2 + b\"\"\"12345c12345a12345\"\"\" * 2 + b\"\"\"12345c12345a12345\"\"\" * 2 + b\"\"\"12345c12345a12345\"\"\" * 2 + b\"\"\"12345c", + "exact_match": false, + "code_bleu": 0.03333168744598931, + "edit_similarity": 0.11578947368421053 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "s", + "got": "s.replace('\\''", + "got_raw": "s.replace('\\'', '')", + "exact_match": false, + "code_bleu": 0.2730120862709067, + "edit_similarity": 0.13333333333333333 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "snapshot(\"s=snapshot('\\\\n')\")", + "got": "snapshot('''\\s", + "got_raw": "snapshot('''\\s = snapshot(\"\"\"\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n", + "exact_match": false, + "code_bleu": 0.2907153684841096, + "edit_similarity": 0.5116279069767442 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "snapshot('s=snapshot(\"a\\\\n\")')", + "got": "snapshot('''\\s=snapshot(\"\"\"\\n\"\"\"\\n'''", + "got_raw": "snapshot('''\\s=snapshot(\"\"\"\\n\"\"\"\\n''' ) == snapshot( '''\\s=snapshot(\"\"\"\\n\"\"\"\\n''' ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "exact_match": false, + "code_bleu": 0.35930411196308426, + "edit_similarity": 0.7761194029850746 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "snapshot(\"s=snapshot('abc\\\\n')\")", + "got": "snapshot(\"s=snapshot('\\\\n\\\\n')\")", + "got_raw": "snapshot(\"s=snapshot('\\\\n\\\\n')\") * 2 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1", + "exact_match": false, + "code_bleu": 0.5081327481546147, + "edit_similarity": 0.90625 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "'assert \"ab\" == snapshot(\"a\" \"b\")'", + "got": "snapshot(\"\"\"\\ from inline_snapshot import * from inline_snapshot import * from inline_snapshot import * from inline_snapshot import * from inline_snapshot import * from inline_snapshot import * from inline_snapshot import * from inline_snapshot import * from inline_snapshot import * from inline_snapshot import * from inline_snapshot import * from inline_snapshot import * from inline_snapshot import * from inline_snapshot import * from inline_snapshot import * from inline_snapshot import * from inline_snapshot import * from inline_snapshot import * from inline_snapshot import * from inline_snapshot import * from inline_snapshot import * from inline_snapshot import * from inline_snapshot import * from inline_snapshot import * from inline_snapshot import *", + "got_raw": "snapshot(\"\"\"\\ from inline_snapshot import * from inline_snapshot import * from inline_snapshot import * from inline_snapshot import * from inline_snapshot import * from inline_snapshot import * from inline_snapshot import * from inline_snapshot import * from inline_snapshot import * from inline_snapshot import * from inline_snapshot import * from inline_snapshot import * from inline_snapshot import * from inline_snapshot import * from inline_snapshot import * from inline_snapshot import * from inline_snapshot import * from inline_snapshot import * from inline_snapshot import * from inline_snapshot import * from inline_snapshot import * from inline_snapshot import * from inline_snapshot import * from inline_snapshot import * from inline_snapshot import *", + "exact_match": false, + "code_bleu": 0.009569925742898274, + "edit_similarity": 0.030112923462986198 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "snapshot('s = snapshot(b\"a\\\\nb\")')", + "got": "snapshot( '''\\s = snapshot(b\"a\\nb\")''' ) * 2 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1", + "got_raw": "snapshot( '''\\s = snapshot(b\"a\\nb\")''' ) * 2 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1", + "exact_match": false, + "code_bleu": 0.02063743693301196, + "edit_similarity": 0.2920353982300885 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "'assert \"ab\" == snapshot(\"a\"\\n \"b\")'", + "got": "snapshot(\"\"\"assert \"ab\" == snapshot(\"a\" \"b\") \"\"\") * 2 + 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "snapshot(\"\"\"assert \"ab\" == snapshot(\"a\" \"b\") \"\"\") * 2 + 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.06468490584192432, + "edit_similarity": 0.32160804020100503 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "'assert b\"ab\" == snapshot(b\"a\"\\n b\"b\")'", + "got": "snapshot(\"\"\"\\ assert \"ab\" == snapshot(\"\"\"\\ ab\\c\\ \"\"\" )\\ \"\"\" )\\ \"\"\" )\\ \"\"\" )\\ \"\"\" )\\ \"\"\" )\\ \"\"\" )\\ \"\"\" )\\ \"\"\" )\\ \"\"\" )\\ \"\"\" )\\ \"\"\" )\\ \"\"\" )\\ \"\"\" )\\ \"\"\" )\\ \"\"\" )\\ \"\"\" )\\ \"\"\" )\\ \"\"\" )\\ \"\"\" )\\ \"\"\" )\\ \"\"\" )\\ \"\"\" )\\ \"\"\" )\\ \"\"\" )\\ \"\"\" )\\ \"\"\" )\\ \"\"\" )\\ \"\"\" )\\ \"\"\" )\\ \"\"\" )\\ \"\"\" )\\ \"\"\" )\\ \"\"\" )\\ \"\"\" )\\ \"\"\" )\\ \"\"\" )\\ \"\"\" )", + "got_raw": "snapshot(\"\"\"\\ assert \"ab\" == snapshot(\"\"\"\\ ab\\c\\ \"\"\" )\\ \"\"\" )\\ \"\"\" )\\ \"\"\" )\\ \"\"\" )\\ \"\"\" )\\ \"\"\" )\\ \"\"\" )\\ \"\"\" )\\ \"\"\" )\\ \"\"\" )\\ \"\"\" )\\ \"\"\" )\\ \"\"\" )\\ \"\"\" )\\ \"\"\" )\\ \"\"\" )\\ \"\"\" )\\ \"\"\" )\\ \"\"\" )\\ \"\"\" )\\ \"\"\" )\\ \"\"\" )\\ \"\"\" )\\ \"\"\" )\\ \"\"\" )\\ \"\"\" )\\ \"\"\" )\\ \"\"\" )\\ \"\"\" )\\ \"\"\" )\\ \"\"\" )\\ \"\"\" )\\ \"\"\" )\\ \"\"\" )\\ \"\"\" )\\ \"\"\" )\\ \"\"\" )", + "exact_match": false, + "code_bleu": 0.00947920530829212, + "edit_similarity": 0.18181818181818182 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "snapshot( '''\\ s=snapshot(\"\"\"\\\\ a a \"\"\")\\ ''' )", + "got": "snapshot( '''\\s=snapshot(\"\"\"\\\\", + "got_raw": "snapshot( '''\\s=snapshot(\"\"\"\\\\\na\na\\\\n\"\"\")\\ ''' ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "exact_match": false, + "code_bleu": 0.1777835117834348, + "edit_similarity": 0.7792207792207793 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "snapshot( '''\\ s = snapshot(\"\"\"\\\\ '\\\\ \"\"\")\\ ''' )", + "got": "snapshot( '''\\s = snapshot(\"\\\\n\\\\\\'\")''' ) * 2 ) * 2 ) * 2 ) * 2 ) * 2 ) * 2 ) * 2 ) * 2 ) * 2 ) * 2 ) * 2 ) * 2 ) * 2 ) * 2 ) * 2 ) * 2 ) * 2 ) * 2 ) * 2 ) * 2 ) * 2 ) * 2 ) * 2 ) * 2 ) * 2 ) * 2 ) * 2 ) * 2 ) *", + "got_raw": "snapshot( '''\\s = snapshot(\"\\\\n\\\\\\'\")''' ) * 2 ) * 2 ) * 2 ) * 2 ) * 2 ) * 2 ) * 2 ) * 2 ) * 2 ) * 2 ) * 2 ) * 2 ) * 2 ) * 2 ) * 2 ) * 2 ) * 2 ) * 2 ) * 2 ) * 2 ) * 2 ) * 2 ) * 2 ) * 2 ) * 2 ) * 2 ) * 2 ) * 2 ) * ", + "exact_match": false, + "code_bleu": 0.028131759027950218, + "edit_similarity": 0.2988505747126437 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "snapshot( '''\\ s = snapshot(\"\"\"\\\\ \"\\\\ \"\"\")\\ ''' )", + "got": "snapshot( '''\\s = snapshot(\"\"\"\\\\n\\\\\\\\\"\")''' ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "got_raw": "snapshot( '''\\s = snapshot(\"\"\"\\\\n\\\\\\\\\"\")''' ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "exact_match": false, + "code_bleu": 0.022213208355460277, + "edit_similarity": 0.2625 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "snapshot( '''\\ s = snapshot(\"\"\"\\\\ a b\\\\ \"\"\")\\ ''' )", + "got": "snapshot('\"s = snapshot(\"a\\\\nb\")\"') * 2 + \"\\n\" * 2 + snapshot('\"s = snapshot(\"a\\\\nb\")\"') * 2 + \"\\n\" * 2 + snapshot('\"s = snapshot(\"a\\\\nb\")\"') * 2 + \"\\n\" * 2 + snapshot('\"s = snapshot(\"a\\\\nb\")\"') * 2 + \"\\n\" * 2 + snapshot('\"s = snapshot(\"a\\\\nb\")\"') * 2 + \"\\n\" * 2 + snapshot('\"s = snapshot(\"a\\\\nb\")\"') *", + "got_raw": "snapshot('\"s = snapshot(\"a\\\\nb\")\"') * 2 + \"\\n\" * 2 + snapshot('\"s = snapshot(\"a\\\\nb\")\"') * 2 + \"\\n\" * 2 + snapshot('\"s = snapshot(\"a\\\\nb\")\"') * 2 + \"\\n\" * 2 + snapshot('\"s = snapshot(\"a\\\\nb\")\"') * 2 + \"\\n\" * 2 + snapshot('\"s = snapshot(\"a\\\\nb\")\"') * 2 + \"\\n\" * 2 + snapshot('\"s = snapshot(\"a\\\\nb\")\"') *", + "exact_match": false, + "code_bleu": 0.02827041762122738, + "edit_similarity": 0.17563739376770537 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "snapshot( '''\\ s = snapshot(\"\"\"\\\\ \\\\x08\\\\ \"\"\")\\ ''' )", + "got": "snapshot( '''\\s = snapshot(\"\\\\n\\\\b\")''' ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "got_raw": "snapshot( '''\\s = snapshot(\"\\\\n\\\\b\")''' ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "exact_match": false, + "code_bleu": 0.022027307424572054, + "edit_similarity": 0.2422360248447205 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "snapshot( '''\\ assert \"ab\\\\nc\" == snapshot(\"\"\"\\\\ ab c\\\\ \"\"\")\\ ''' )", + "got": "snapshot(\"\"\"\\ assert \"ab\" == snapshot(\"a\" \"b\") \"\"\") == \"\"\"\\ assert \"ab\" == snapshot(\"a\" \"b\") \"\"\" \"\"\"\\ assert \"ab\" == snapshot(\"a\" \"b\") \"\"\" \"\"\"\\ assert \"ab\" == snapshot(\"a\" \"b\") \"\"\" \"\"\"\\ assert \"ab\" == snapshot(\"a\" \"b\") \"\"\" \"\"\"\\ assert \"ab\" == snapshot(\"a\" \"b\") \"\"\" \"\"\"\\ assert \"ab\" == snapshot(\"a\" \"b\") \"\"\" \"\"\"\\ assert \"ab\" == snapshot(\"a\" \"b\") \"\"\" \"\"\"\\ assert \"ab", + "got_raw": "snapshot(\"\"\"\\ assert \"ab\" == snapshot(\"a\" \"b\") \"\"\") == \"\"\"\\ assert \"ab\" == snapshot(\"a\" \"b\") \"\"\" \"\"\"\\ assert \"ab\" == snapshot(\"a\" \"b\") \"\"\" \"\"\"\\ assert \"ab\" == snapshot(\"a\" \"b\") \"\"\" \"\"\"\\ assert \"ab\" == snapshot(\"a\" \"b\") \"\"\" \"\"\"\\ assert \"ab\" == snapshot(\"a\" \"b\") \"\"\" \"\"\"\\ assert \"ab\" == snapshot(\"a\" \"b\") \"\"\" \"\"\"\\ assert \"ab\" == snapshot(\"a\" \"b\") \"\"\" \"\"\"\\ assert \"ab", + "exact_match": false, + "code_bleu": 0.021156719190824593, + "edit_similarity": 0.21809744779582366 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "0", + "got": "0", + "got_raw": "0 if code == \"def f():\\n return 4\\n\" else 1 if code == \"def f():\\n return 2\\n\" else 2 if code == \"def f():\\n return 3\\n\" else 3 if code == \"def f():\\n return 5\\n\" else 4 if code == \"def f():\\n return 6\\n\" else 5 if code == \"def f():\\n return 7\\n\" else 8 if code == \"def f():\\n return 8\\n\" else 9 if", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "4", + "got": "12761171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171", + "got_raw": "12761171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.0 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "1", + "got": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.0 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "snapshot(\"\")", + "got": "snapshot(\"\"\"\\", + "got_raw": "snapshot(\"\"\"\\ \\ No inline snapshots were specified, nothing to do. \\ \"\"\" ) * 2 + snapshot(\"\"\"\\ \\ No inline snapshots were specified, nothing to do. \\ \"\"\" ) * 2 + snapshot(\"\"\"\\ \\ No inline snapshots were specified, nothing to do. \\ \"\"\" ) * 2 + snapshot(\"\"\"\\ \\ No inline snapshots were specified, nothing to do. \\ \"\"\" ) * 2 + snapshot(\"\"\"\\ \\ No inline snapshots were specified, nothing to do. \\ \"\"\" ) * 2 + snapshot(\"\"\"\\ \\ No inline snapshots were specified, nothing to do. \\ \"\"\" ) * 2 + snapshot(\"\"\"", + "exact_match": false, + "code_bleu": 0.5081327481546147, + "edit_similarity": 0.88 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "snapshot([])", + "got": "[]", + "got_raw": "[] * 2 + [\"\"] * 2 + [\"\"] * 2 + [\"\"] * 2 + [\"\"] * 2 + [\"\"] * 2 + [\"\"] * 2 + [\"\"] * 2 + [\"\"] * 2 + [\"\"] * 2 + [\"\"] * 2 + [\"\"] * 2 + [\"\"] * 2 + [\"\"] * 2 + [\"\"] * 2 + [\"\"] * 2 + [\"\"] * 2 + [\"\"] * 2 + [\"\"] * 2 + [\"\"] * 2 + [\"\"] * 2 + [\"\"] *", + "exact_match": false, + "code_bleu": 0.28284271247461906, + "edit_similarity": 0.2857142857142857 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "snapshot( \"ERROR: --inline-snapshot=create can not be combined with xdist\" )", + "got": "snapshot(\"\"\"\\ \\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n", + "got_raw": "snapshot(\"\"\"\\ \\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n", + "exact_match": false, + "code_bleu": 0.00619841553606916, + "edit_similarity": 0.07100591715976332 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "snapshot( \"\"\"\\ Error: one snapshot has incorrect values (--inline-snapshot=fix) You can also use --inline-snapshot=review to approve the changes interactively \"\"\" )", + "got": "snapshot(\"\"\"\\ Xdist: 0 processes", + "got_raw": "snapshot(\"\"\"\\ Xdist: 0 processes, 1 test case, 1 failure, 0 errors in 0.001s (cpu time) Xdist: 0 processes, 1 test case, 1 failure, 0 errors in 0.001s (wall time) \"\"\" )", + "exact_match": false, + "code_bleu": 0.2626909894424158, + "edit_similarity": 0.24489795918367346 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "snapshot(\"\")", + "got": "\"\"\"\\", + "got_raw": "\"\"\"\\ [tool.inline-snapshot] \\ default-storage: hash \\ [tool.inline-snapshot] \\ [tool.inline-snapshot] \\ [tool.inline-snapshot] \\ [tool.inline-snapshot] \\ [tool.inline-snapshot] \\ [tool.inline-snapshot] \\ [tool.inline-snapshot] \\ [tool.inline-snapshot] \\ [tool.inline-snapshot] \\ [tool.inline-snapshot] \\ [tool.inline-snapshot] \\ [tool.inline-snapshot] \\ [tool.inline-snapshot] \\ [tool.inline-snapshot] \\ [tool.inline-snapshot] \\ [tool.inline-snapshot] \\ [tool", + "exact_match": false, + "code_bleu": 0.3388507513536918, + "edit_similarity": 0.25 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "snapshot([])", + "got": "{", + "got_raw": "{ \"hash\": { \"test\": { \"test_a\": { \"test\": snapshot() } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } }", + "exact_match": false, + "code_bleu": 0.1, + "edit_similarity": 0.0 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "project.source", + "got": "project.source()", + "got_raw": "project.source() * 2 + 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5081327481546147, + "edit_similarity": 0.9333333333333333 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "outsource(\"one\")", + "got": "\"one\"", + "got_raw": "\"one\" * 2 + \"\\n\" * 2 + \"two\" * 2 + \"\\n\" * 2 + \"three\" * 2 + \"\\n\" * 2 + \"four\" * 2 + \"\\n\" * 2 + \"five\" * 2 + \"\\n\" * 2 + \"six\" * 2 + \"\\n\" * 2 + \"seven\" * 2 + \"\\n\" * 2 + \"eight\" * 2 + \"\\n\" * 2 + \"nine\" * 2 + \"\\n\" * 2 + \"ten", + "exact_match": false, + "code_bleu": 0.14865088937534013, + "edit_similarity": 0.47619047619047616 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "outsource(\"two\")", + "got": "outsource(\"two\")", + "got_raw": "outsource(\"two\") * 2 + 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "external(\"hash:bbbbb*.txt\")", + "got": "snapshot(", + "got_raw": "snapshot( \"test4: StorageLookupError: hash 'bbbbb*.txt' is not found in the HashStorage\" ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "exact_match": false, + "code_bleu": 0.2686424829558855, + "edit_similarity": 0.2777777777777778 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "snapshot( \"\"\"\\ from os import environ", + "got": "snapshot( \"\"\"\\ from os import environ", + "got_raw": "snapshot( \"\"\"\\ from os import environ # comment from os import chdir # comment \"\"\" ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "snapshot( [\"9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08.txt\"] )", + "got": "snapshot( [ \"60303ae22b998861bce3b28f33eec1be758a213c86c93c076dbe9f558c11c752.txt\"", + "got_raw": "snapshot( [ \"60303ae22b998861bce3b28f33eec1be758a213c86c93c076dbe9f558c11c752.txt\", \"9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08.txt\", ] ) )", + "exact_match": false, + "code_bleu": 0.44582686998428134, + "edit_similarity": 0.3373493975903614 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "snapshot( [\"2c26b46b68ffc68ff99b453c1d30413413422d706483bfa0f98a5e886266e7ae.txt\"] )", + "got": "snapshot_env() + snapshot_env() + snapshot_env() + snapshot_env() + snapshot_env() + snapshot_env() + snapshot_env() + snapshot_env() + snapshot_env() + snapshot_env() + snapshot_env() + snapshot_env() + snapshot_env() + snapshot_env() + snapshot_env() + snapshot_env() + snapshot_env() + snapshot_env() + snapshot_env() + snapshot_env() + snapshot_env() + snapshot_env() + snapshot_env() + snapshot_env() + snapshot_env() + snapshot_env() + snapshot_env() + snapshot_env() + snapshot_env() + snapshot_env() + snapshot_env() + snapshot_env() +", + "got_raw": "snapshot_env() + snapshot_env() + snapshot_env() + snapshot_env() + snapshot_env() + snapshot_env() + snapshot_env() + snapshot_env() + snapshot_env() + snapshot_env() + snapshot_env() + snapshot_env() + snapshot_env() + snapshot_env() + snapshot_env() + snapshot_env() + snapshot_env() + snapshot_env() + snapshot_env() + snapshot_env() + snapshot_env() + snapshot_env() + snapshot_env() + snapshot_env() + snapshot_env() + snapshot_env() + snapshot_env() + snapshot_env() + snapshot_env() + snapshot_env() + snapshot_env() + snapshot_env() +", + "exact_match": false, + "code_bleu": 0.010322546006950492, + "edit_similarity": 0.03189792663476874 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "snapshot( \"\"\"\\ from os import environ from os import getcwd from os import chdir \"\"\" )", + "got": "snapshot( \"\"\"\\ from os import environ", + "got_raw": "snapshot( \"\"\"\\ from os import environ, chdir, getcwd, pathsep, linesep, maxpathsep, \"\"\" ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "exact_match": false, + "code_bleu": 0.2626909894424158, + "edit_similarity": 0.6016260162601627 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "snapshot( \"\"\"\\ ''' docstring ''' from __future__ import annotations from os import chdir \"\"\" )", + "got": "snapshot( \"\"\"\\ ''' docstring ''' from __future__ import annotations import os from os import chdir def f(): pass def g(): pass \"\"\" ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "got_raw": "snapshot( \"\"\"\\ ''' docstring ''' from __future__ import annotations import os from os import chdir def f(): pass def g(): pass \"\"\" ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "exact_match": false, + "code_bleu": 0.025681020762106092, + "edit_similarity": 0.44761904761904764 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "snapshot( \"assert outsource('text') == snapshot(external(\\\"uuid:f728b4fa-4248-4e3a-8a5d-2f346baa9455.txt\\\"))\" )", + "got": "True", + "got_raw": "True, match=check_update) as (sys.modules[\"ast\"], sys.modules[\"astroid\"]) as (ast, astroid) as (ast, astroid) as (ast, astroid) as (ast, astroid) as (ast, astroid) as (ast, astroid) as (ast, astroid) as (ast, astroid) as (ast, astroid) as (ast, astroid) as (ast, astroid) as (ast, astroid) as (ast, astroid) as (ast, astroid) as (ast, astroid) as (ast", + "exact_match": false, + "code_bleu": 0.125, + "edit_similarity": 0.05217391304347826 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "snapshot( [ ExternalLocation( storage=\"hash\", stem=\"111*\", suffix=\".txt\", filename=Path(\"a.py\"), linenumber=1, ) ] )", + "got": "True, match=used_externals_in( [ Example( **snapshot_env(), **snapshot( { \"a\": { \"b\": { \"c\": { \"d\": { \"e\": { \"f\": { \"g\": { \"h\": { \"i\": { \"j\": { \"k\": { \"l\": { \"m\": { \"n\": { \"o\": { \"p\": { \"q\": { \"r\": { \"s\": { \"t\": { \"u\": { \"v\": { \"w\": { \"x\": { \"y\": { \"z\": { \"a\":", + "got_raw": "True, match=used_externals_in( [ Example( **snapshot_env(), **snapshot( { \"a\": { \"b\": { \"c\": { \"d\": { \"e\": { \"f\": { \"g\": { \"h\": { \"i\": { \"j\": { \"k\": { \"l\": { \"m\": { \"n\": { \"o\": { \"p\": { \"q\": { \"r\": { \"s\": { \"t\": { \"u\": { \"v\": { \"w\": { \"x\": { \"y\": { \"z\": { \"a\":", + "exact_match": false, + "code_bleu": 0.025276639634733415, + "edit_similarity": 0.10638297872340426 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "snapshot( \"\"\"\\ > assert outsource(\"test2\") == s E AssertionError: assert 'test2' == 'test' E \\n\\ E - test E + test2 E ? + \"\"\" )", + "got": "[] * 2 + [snapshot_env() + \"\\n\"] * 2 + [] * 2 + [] * 4 + [] * 2 + [snapshot_env() + \"\\n\"] * 2 + [] * 2 + [] * 2 + [] * 2 + [] * 2 + [] * 2 + [] * 2 + [] * 2 + [] * 2 + [] * 2 + [] * 2 + [] * 2 + [] * 2 + [] * 2 + [] * 2 + [] * 2 + [] * 2 + [] * 2", + "got_raw": "[] * 2 + [snapshot_env() + \"\\n\"] * 2 + [] * 2 + [] * 4 + [] * 2 + [snapshot_env() + \"\\n\"] * 2 + [] * 2 + [] * 2 + [] * 2 + [] * 2 + [] * 2 + [] * 2 + [] * 2 + [] * 2 + [] * 2 + [] * 2 + [] * 2 + [] * 2 + [] * 2 + [] * 2 + [] * 2 + [] * 2 + [] * 2", + "exact_match": false, + "code_bleu": 0.010656906454938699, + "edit_similarity": 0.09115281501340483 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "snapshot( \"\"\"\\ from inline_snapshot import external def test_a(): assert outsource(\"test\") == snapshot(external(\"hash:9f86d081884c*.txt\")) \"\"\" )", + "got": "snapshot()[:5] + snapshot()[:5] + snapshot()[:5] + snapshot()[:5] + snapshot()[:5] + snapshot()[:5] + snapshot()[:5] + snapshot()[:5] + snapshot()[:5] + snapshot()[:5] + snapshot()[:5] + snapshot()[:5] + snapshot()[:5] + snapshot()[:5] + snapshot()[:5] + snapshot()[:5] + snapshot()[:5] + snapshot()[:5] + snapshot()[:5] + snapshot()[:5] + snapshot()[:5] + snapshot()", + "got_raw": "snapshot()[:5] + snapshot()[:5] + snapshot()[:5] + snapshot()[:5] + snapshot()[:5] + snapshot()[:5] + snapshot()[:5] + snapshot()[:5] + snapshot()[:5] + snapshot()[:5] + snapshot()[:5] + snapshot()[:5] + snapshot()[:5] + snapshot()[:5] + snapshot()[:5] + snapshot()[:5] + snapshot()[:5] + snapshot()[:5] + snapshot()[:5] + snapshot()[:5] + snapshot()[:5] + snapshot()", + "exact_match": false, + "code_bleu": 0.01043001550833269, + "edit_similarity": 0.12133072407045009 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "snapshot( [ \"60303ae22b998861bce3b28f33eec1be758a213c86c93c076dbe9f558c11c752.txt\", \"9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08.txt\", ] )", + "got": "{ \"hash\": { \"test\": snapshot(), \"test2\": snapshot(), } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } }", + "got_raw": "{ \"hash\": { \"test\": snapshot(), \"test2\": snapshot(), } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } }", + "exact_match": false, + "code_bleu": 0.014598284561249624, + "edit_similarity": 0.08275862068965517 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "\"test\"", + "got": "\"test\\n\"", + "got_raw": "\"test\\n\" * 2 + \"test\\n\" * 2 + \"test\\n\" * 2 + \"test\\n\" * 2 + \"test\\n\" * 2 + \"test\\n\" * 2 + \"test\\n\" * 2 + \"test\\n\" * 2 + \"test\\n\" * 2 + \"test\\n\" * 2 + \"test\\n\" * 2 + \"test\\n\" * 2 + \"test\\n\" * 2 + \"test\\n\" * 2 + \"test\\n\" * 2 + \"test\\n\" * 2 +", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.8571428571428571 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "results[name]", + "got": "results[name]", + "got_raw": "results[name] if name in results else None if not name else name + s + name[0] + s + name[1] + s + name[2] + s + name[3] + s + name[4] + s + name[5] + s + name[6] + s + name[7] + s + name[8] + s + name[9] + s + name[10] + s + name[11] + s + name[12] + s + name[13] + s + name[14] + s + name", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "15r10nk/inline-snapshot", + "expected": "f\"{type(e).__name__}: {e}\"", + "got": "str(e) + \"\\n\" + str(name) + \"\\n\" + str(results[name]) + \"\\n\" + str(Example()) + \"\\n\" + str(ExternalLocation()) + \"\\n\" + str(ExternalLocation(storage=\"hash\")) + \"\\n\" + str(ExternalLocation(storage=\"uuid\")) + \"\\n\" + str(ExternalLocation(storage=\"hash\"", + "got_raw": "str(e) + \"\\n\" + str(name) + \"\\n\" + str(results[name]) + \"\\n\" + str(Example()) + \"\\n\" + str(ExternalLocation()) + \"\\n\" + str(ExternalLocation(storage=\"hash\")) + \"\\n\" + str(ExternalLocation(storage=\"uuid\")) + \"\\n\" + str(ExternalLocation(storage=\"hash\", stem=\"a\")) + \"\\n\" + str(ExternalLocation(storage=\"hash\", stem=\"a\", suffix=\".txt\")) + \"\\n\" + str(ExternalLocation(storage=\"hash\", stem=\"a\", suffix=\".b.txt\")) + \"\\n", + "exact_match": false, + "code_bleu": 0.013794743949386363, + "edit_similarity": 0.07272727272727272 + }, + { + "repo": "Lux-Luna/LunaVox", + "expected": "True", + "got": "True", + "got_raw": "True, \"ZhBert should be loaded\" if ZhBert._tokenizer is not None else False) \"ZhBert should have a tokenizer\" if ZhBert._ort_session is not None else False) \"ZhBert should have an ORT session\" if not ZhBert._tokenizer._tokenizer_dict else False) \"ZhBert should have a tokenizer dictionary\" if not ZhBert._tokenizer._tokenizer_list else False) \"ZhBert should have a tokenizer list\" if not ZhBert._tokenizer._tokenizer_dict else False) \"ZhBert should have a tokenizer\" if not ZhBert", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "Lux-Luna/LunaVox", + "expected": "None", + "got": "None", + "got_raw": "None or not hasattr(ZhBert._ort_session, 'Session') is False or not hasattr(ZhBert._tokenizer, 'tokenizer') is False or not hasattr(ZhBert, 'speaker_vectors') is False or not hasattr(ZhBert, 'vocab') is False or not hasattr(ZhBert, 'char_vocab') is False or not hasattr(ZhBert, 'char_to_index') is False or not hasattr(ZhBert, 'index_to_char') is False or not hasattr(ZhBert, 'config') is False or not hasattr(ZhBert, 'model') is", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "Lux-Luna/LunaVox", + "expected": "False", + "got": "False", + "got_raw": "False # BERT should be unloaded after cleanup.", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "Lux-Luna/LunaVox", + "expected": "0", + "got": "0", + "got_raw": "0, \"Should have no state after 5 cycles\" * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 10", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "Lux-Luna/LunaVox", + "expected": "1", + "got": "10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "Lux-Luna/LunaVox", + "expected": "2", + "got": "2", + "got_raw": "2 * 1024 * 1024 * 16 / 1000 / 1000 / 16 / 16 / 16 / 16 / 16 / 16 / 16 / 16 / 16 / 16 / 16 / 16 / 16 / 16 / 16 / 16 / 16 / 16 / 16 / 16 / 16 / 16 / 16 / 16 / 1", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "Lux-Luna/LunaVox", + "expected": "3", + "got": "26", + "got_raw": "26 * 26 * 26 * 26 * 26 * 26 * 26 * 26 * 26 * 26 * 26 * 26 * 26 * 26 * 26 * 26 * 26 * 26 * 26 * 26 * 26 * 26 * 26 * 26 * 26 * 26 * 26 * 26 * 26 * 26 * 26 * 26 * ", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.0 + }, + { + "repo": "Lux-Luna/LunaVox", + "expected": "None", + "got": "None", + "got_raw": "None or False or 0 or '' or {} or () or weakref.ref() or weakref.ref(session) or weakref.ref(session, None) or weakref.ref(session, False) or weakref.ref(session, 0) or weakref.ref(session, '') or weakref.ref(session, ()) or weakref.ref(session, {}) or weakref.ref(session, None) or weakref.ref(session, False) or weakref.ref(session, 0) or weakref.ref(session, '') or weakref.ref(session, ()) or weakref.ref(session, {}) or weakref.ref(session, None) or weakref.ref(session", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "Lux-Luna/LunaVox", + "expected": "name2", + "got": "name2", + "got_raw": "name2 + \"2\" + \"3\" + \"4\" + \"5\" + \"6\" + \"7\" + \"8\" + \"9\" + \"10\" + \"11\" + \"12\" + \"13\" + \"14\" + \"15\" + \"16\" + \"17\" + \"18\" + \"19\" + \"20\" + \"21\" + \"22\" + \"23\" + \"24\" + \"25\" + \"26\" + \"27\" + \"28", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "Lux-Luna/LunaVox", + "expected": "name1", + "got": "name1", + "got_raw": "name1 + name2 + \"en\" + \"persona\" + \"en\" + \"persona\" + \"en\" + \"persona\" + \"en\" + \"persona\" + \"en\" + \"persona\" + \"en\" + \"persona\" + \"en\" + \"persona\" + \"en\" + \"persona\" + \"en\" + \"persona\" + \"en\" + \"persona\" + \"en\" + \"persona\" + \"en\" + \"persona\" + \"en\" + \"persona\" + \"en\" + \"persona\" + \"en\" + \"persona\" + \"en", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "Lux-Luna/LunaVox", + "expected": "LANG_TO_INDEX", + "got": "LANG_TO_INDEX.keys()", + "got_raw": "LANG_TO_INDEX.keys() * 26 * 26 * 26 * 26 * 26 * 26 * 26 * 26 * 26 * 26 * 26 * 26 * 26 * 26 * 26 * 26 * 26 * 26 * 26 * 26 * 26 * 26 * 26 * 26 * 26 * 26 * 26 * 26 * 26 * 26 * 2", + "exact_match": false, + "code_bleu": 0.2730120862709067, + "edit_similarity": 0.7878787878787878 + }, + { + "repo": "Lux-Luna/LunaVox", + "expected": "0", + "got": "0.015625666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666", + "got_raw": "0.015625666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "Lux-Luna/LunaVox", + "expected": "True", + "got": "False", + "got_raw": "False # default for persona_no_ge mode is False, but we set it explicitly here. # noqa: E501 # E501: \"persona_no_ge\" mode should have global_emb=True, so this should be False. ) # noqa: E501 # E501: \"persona_no_ge\" mode should have global_emb=True, so this should be False. ) # noqa: E501 # E501: \"persona_no_ge\" mode should have global_emb=True, so this should be False. ) # noqa: E501 # E501: \"", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.2222222222222222 + }, + { + "repo": "Lux-Luna/LunaVox", + "expected": "skip", + "got": "skip[0]", + "got_raw": "skip[0] - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1)", + "exact_match": false, + "code_bleu": 0.35930411196308426, + "edit_similarity": 0.7272727272727273 + }, + { + "repo": "Lux-Luna/LunaVox", + "expected": "False", + "got": "True", + "got_raw": "True # This should be True for no global_emb mode. # noqa: E501 # pylint: disable=E501 # noqa: E501 # This should be True for no global_emb mode. # noqa: E501 # This should be True for no global_emb mode. # noqa: E501 # This should be True for no global_emb mode. # noqa: E501 # This should be True for no global_emb mode. # noqa: E501 # This should be True for no global_emb mode. # noqa: E501 # This should be", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.2222222222222222 + }, + { + "repo": "Lux-Luna/LunaVox", + "expected": "source", + "got": "source.lower()", + "got_raw": "source.lower() * 26 * 26 * 26 * 26 * 26 * 26 * 26 * 26 * 26 * 26 * 26 * 26 * 26 * 26 * 26 * 26 * 26 * 26 * 26 * 26 * 26 * 26 * 26 * 26 * 26 * 26 * 26 * 26 * 26 * 26 * 26 *", + "exact_match": false, + "code_bleu": 0.2730120862709067, + "edit_similarity": 0.6 + }, + { + "repo": "Lux-Luna/LunaVox", + "expected": "\"reference\"", + "got": "\"reference\"", + "got_raw": "\"reference\" + str(ctx.character_name) + str(ctx.model_dir) + \"\\n\" + \"LoadingContext for test model\\n\" + \"No skips\\n\" + \"LoadingContext for test model\\n\" + \"No skips\\n\" + \"LoadingContext for test model\\n\" + \"No skips\\n\" + \"LoadingContext for test model\\n\" + \"No skips\\n\" + \"LoadingContext for test model\\n\" + \"No skips\\n\" + \"LoadingContext for test model\\n\" + \"No skips\\n\" + \"LoadingContext for test model\\n\" + \"No skips\\n\" + \"LoadingContext", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "Lux-Luna/LunaVox", + "expected": "field_names", + "got": "field_names[0]", + "got_raw": "field_names[0] + field_names[1] + field_names[2] + field_names[3] + field_names[4] + field_names[5] + field_names[6] + field_names[7] + field_names[8] + field_names[9] + field_names[10] + field_names[11] + field_names[12] + field_names[13] + field_names[14] + field_names[15] + field_names[16] + field_names[17] + field_names[18] + field_names[19", + "exact_match": false, + "code_bleu": 0.35930411196308426, + "edit_similarity": 0.88 + }, + { + "repo": "Lux-Luna/LunaVox", + "expected": "\"persona_no_ge\"", + "got": "\"persona_no_ge\"", + "got_raw": "\"persona_no_ge\" + str(0) + \"_with_global_emb\" + str(1) + \"_no_speech\" + str(0) + \"_no_speech2\" + str(0) + \"_no_speech3\" + str(0) + \"_no_speech4\" + str(0) + \"_no_speech5\" + str(0) + \"_no_speech6\" + str(0) + \"_no_speech7\" + str(0) + \"_no_speech8\" + str(0) + \"_no_speech9\" + str(0)", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "Lux-Luna/LunaVox", + "expected": "\"persona_with_ge\"", + "got": "\"persona_with_ge\"", + "got_raw": "\"persona_with_ge\" + str(ctx.global_emb) + \"/\" + str(ctx.seed) + \"/\" + str(ctx.model_dir) + \"/\" + str(ctx.character_name) + \"/\" + str(ctx.id) + \"/\" + str(ctx.version) + \"/\" + str(ctx.seed) + \"/\" + str(ctx.model_dir) + \"/\" + str(ctx.character_name) + \"/\" + str(ctx.id) + \"/\" + str(ctx.version) + \"/\" + str(ctx.seed) + \"/\" + str(ctx.model_dir) + \"/\" + str(ctx.character_name) + \"/\" + str(ctx.id) + \"/\" + str(ctx.version) + \"/\" + str(ctx.seed", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "Lux-Luna/LunaVox", + "expected": "ctx.get_skip_components()", + "got": "ctx._persona_configured_models.namespaces()", + "got_raw": "ctx._persona_configured_models.namespaces() - {\"PROMPT_ENCODER\"} - {\"persona_no_ge\"} - {\"persona_with_ge\"} - {\"persona_with_global_emb\"} - {\"persona_with_global_emb_2\"} - {\"persona_with_global_emb_3\"} - {\"persona_with_global_emb_4\"} - {\"persona_with_global_emb_5\"} - {\"persona_with_global_emb_6\"} - {\"persona_with_global_emb_7\"} - {\"persona_with_global_emb_8\"} - {\"persona_with_global_emb_9\"} - {\"persona_with_global_emb_10\"} - {\"persona_with_global_emb_11\"}", + "exact_match": false, + "code_bleu": 0.3073940764756322, + "edit_similarity": 0.4411764705882353 + }, + { + "repo": "Lux-Luna/LunaVox", + "expected": "0", + "got": "0)", + "got_raw": "0) == 0) == 0) == 0) == 0) == 0) == 0) == 0) == 0) == 0) == 0) == 0) == 0) == 0) == 0) == 0) == 0) == 0) == 0) == 0) == 0) == 0) == 0) == 0) == 0) == 0) == 0) == 0) == 0) == 0) == 0) == 0) == ", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.6666666666666666 + }, + { + "repo": "Lux-Luna/LunaVox", + "expected": "True", + "got": "True)", + "got_raw": "True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True)", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.8888888888888888 + }, + { + "repo": "Lux-Luna/LunaVox", + "expected": "False", + "got": "False", + "got_raw": "False # Character should be removed from the list of references. # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "Lux-Luna/LunaVox", + "expected": "None", + "got": "None)", + "got_raw": "None) None.0) None.1) None.2) None.3) None.4) None.5) None.6) None.7) None.8) None.9) None.10) None.11) None.12) None.13) None.14) None.15) None.16) None.17) None.18) None.19) None.20) None.21) None.22) None.23) None.24) None.25) None.26) None", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.8888888888888888 + }, + { + "repo": "Lux-Luna/LunaVox", + "expected": "True", + "got": "True)", + "got_raw": "True) * 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.8888888888888888 + }, + { + "repo": "Lux-Luna/LunaVox", + "expected": "\"ja\"", + "got": "\"ja\"", + "got_raw": "\"ja\" * 200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "Lux-Luna/LunaVox", + "expected": "\"en\"", + "got": "\"en\"", + "got_raw": "\"en\" \"en-us\" \"en-uk\" \"en-za\" \"en-za\" \"en-za\" \"en-za\" \"en-za\" \"en-za\" \"en-za\" \"en-za\" \"en-za\" \"en-za\" \"en-za\" \"en-za\" \"en-za\" \"en-za\" \"en-za\" \"en-za\" \"en-za\" \"en-za\" \"en-za\" \"en-za\" \"en-za\" \"en-za\" \"en-za\" \"", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "Lux-Luna/LunaVox", + "expected": "\"zh\"", + "got": "\"zh\"", + "got_raw": "\"zh\" # Note: Chinese language code is \"zh\" not \"zh_CN\" or \"zh_HK\" or \"zh_TW\" or \"zh_CN\" or \"zh_HK\" or \"zh_TW\" or \"zh_CN\" or \"zh_HK\" or \"zh_TW\" or \"zh_CN\" or \"zh_HK\" or \"zh_TW\" or \"zh_CN\" or \"zh_HK\" or \"zh_TW\" or \"zh_CN\" or \"zh_HK\" or \"zh_TW\" or \"zh_CN\" or \"zh_HK\" or \"zh_TW\" or \"zh", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "Lux-Luna/LunaVox", + "expected": "False", + "got": "False", + "got_raw": "False, \"No reference audio\" \"test\" in set_reference_audio_config(\"test\") is True, \"Has reference audio\" \"test\" in set_reference_audio_config(\"test\") is True, \"Has reference audio\" \"test\" in set_reference_audio_config(\"test\") is True, \"Has reference audio\" \"test\" in set_reference_audio_config(\"test\") is True, \"Has reference audio\" \"test\" in set_reference_audio_config(\"test\") is True, \"Has reference audio\" \"test\" in set_reference_audio_config(\"test\") is True, \"Has reference audio\" \"test\" in set_reference_audio", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "Lux-Luna/LunaVox", + "expected": "config", + "got": "config.copy()", + "got_raw": "config.copy() # Make a copy to avoid modifying the original config object. # noqa: E731 # pylint: disable=E731 # noqa: E731 # noqa: E731 # noqa: E731 # noqa: E731 # noqa: E731 # noqa: E731 # noqa: E731 # noqa: E731 # noqa: E731 # noqa: E731 # noqa: E731 # noqa: E731 # noqa: E731 # noqa: E731", + "exact_match": false, + "code_bleu": 0.2730120862709067, + "edit_similarity": 0.631578947368421 + }, + { + "repo": "Lux-Luna/LunaVox", + "expected": "'new.wav'", + "got": "'new.wav'", + "got_raw": "'new.wav' * 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "Lux-Luna/LunaVox", + "expected": "ext.lower()", + "got": "ext.lower()", + "got_raw": "ext.lower() + \".wav\" + ext.lower() + \".ogg\" + ext.lower() + \".opus\" + ext.lower() + \".opus2\" + ext.lower() + \".opus3\" + ext.lower() + \".opus4\" + ext.lower() + \".opus5\" + ext.lower() + \".opus6\" + ext.lower() + \".opus7\" + ext.lower() + \".opus8\" + ext.lower() + \".opus9\" + ext.lower() + \".opus10\" + ext.lower() + \".opus11\" + ext.lower() + \".opus12\" + ext.lower", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "Lux-Luna/LunaVox", + "expected": "SUPPORTED_AUDIO_EXTS", + "got": "SUPPORTED_AUDIO_EXTS.keys()", + "got_raw": "SUPPORTED_AUDIO_EXTS.keys() * 20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.2730120862709067, + "edit_similarity": 0.851063829787234 + }, + { + "repo": "Lux-Luna/LunaVox", + "expected": "\"gpu\"", + "got": "\"gpu\"", + "got_raw": "\"gpu\" if em.config[\"mode\"] == \"gpu\" else \"cpu\" if em.config[\"mode\"] == \"cpu\" else \"auto\" if em.config[\"mode\"] == \"auto\" else \"error\" if em.config[\"mode\"] == \"error\" else \"error\" if em.config[\"mode\"] == \"error\" else \"error\" if em.config[\"mode\"] == \"error\" else \"error\" if em.config[\"mode\"] == \"error\" else \"error\" if em.config[\"mode\"] == \"error\" else \"error\" if em.config[\"mode\"] == \"error\" else \"error", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "Lux-Luna/LunaVox", + "expected": "EnvironmentMismatchError)", + "got": "EnvironmentMismatchError)", + "got_raw": "EnvironmentMismatchError) as e) as exc: em.ensure_environment_mismatch() as e2: e2.value = \"test\" e2.value = \"test2\" em.ensure_environment_mismatch() as e3: e3.value = \"test3\" em.ensure_environment_mismatch() as e4: e4.value = \"test4\" em.ensure_environment_mismatch() as e5: e5.value = \"test5\" em.ensure_environment_mismatch() as e6: e6.value = \"test6\" em.ensure_environment_mismatch() as e7: e7.value = \"test7\" em.ensure_environment", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "Lux-Luna/LunaVox", + "expected": "EnvironmentStatus.CPU_ONLY", + "got": "EnvironmentStatus.CPU_ONLY_AVAILABLE", + "got_raw": "EnvironmentStatus.CPU_ONLY_AVAILABLE, \"CPU-only environment should be detected\" \"CPU-only\" in em.get_environment_status() \"CPU-only\" in em.get_environment_status() \"CPU-only\" in em.get_environment_status() \"CPU-only\" in em.get_environment_status() \"CPU-only\" in em.get_environment_status() \"CPU-only\" in em.get_environment_status() \"CPU-only\" in em.get_environment_status() \"CPU-only\" in em.get_environment_status() \"CPU-only\" in em.get_environment_status() \"CPU-only\" in em.get_environment_status() \"CPU-only\" in em.get_environment_status() \"CPU-only", + "exact_match": false, + "code_bleu": 0.5946035575013605, + "edit_similarity": 0.8387096774193549 + }, + { + "repo": "Lux-Luna/LunaVox", + "expected": "EnvironmentStatus.GPU_READY", + "got": "EnvironmentStatus.GPU_READY_TO_USE_CUDA", + "got_raw": "EnvironmentStatus.GPU_READY_TO_USE_CUDA, \"GPU should be available\" if \"CUDA\" in em._available_providers else \"GPU_NOT_AVAILABLE\" if \"CPU\" in em._available_providers else \"GPU_NOT_AVAILABLE_NO_CPU\" else \"GPU_NOT_AVAILABLE_NO_CUDA\" else \"GPU_NOT_AVAILABLE_NO_CPU_NO_CUDA\" else \"GPU_NOT_AVAILABLE_NO_CPU_NO_CUDA\" else \"GPU_NOT_AVAILABLE_NO_CPU_NO_CUDA\" else \"GPU_NOT_AVAILABLE_NO_CPU_NO_CUDA\" else \"GPU_NOT_AVAILABLE_NO_CPU_NO_CUDA\" else \"GPU_NOT_AVAILABLE_NO_CPU_NO_CUDA\" else \"GPU_NOT_AVAILABLE_NO_CPU_NO_CUDA\" else", + "exact_match": false, + "code_bleu": 0.5946035575013605, + "edit_similarity": 0.8181818181818182 + }, + { + "repo": "Lux-Luna/LunaVox", + "expected": "EnvironmentStatus.GPU_DEPS_MISSING", + "got": "EnvironmentStatus.MISSING_DEPENDENCIES_ERROR.value()", + "got_raw": "EnvironmentStatus.MISSING_DEPENDENCIES_ERROR.value() + \"\\n\\n\" + \"Please install the required dependencies using pip:\\n\\n\" + \"pip install onnxruntime[cpu] onnxruntime-gpu\\n\" + \"Note: If you are using a GPU, make sure that you have installed the correct version of onnxruntime-gpu.\\n\" + \"For example, if you are using CUDA 11.0, you should install onnxruntime-gpu==1.10.0.\\n\" + \"For more information, see the documentation: https://onnxruntime.com/docs/dependencies/\\", + "exact_match": false, + "code_bleu": 0.24446151121745047, + "edit_similarity": 0.5813953488372093 + }, + { + "repo": "Lux-Luna/LunaVox", + "expected": "None", + "got": "None)", + "got_raw": "None) mock_frontend_class.return_value } mock_frontend_class.return_value } mock_frontend_class.return_value } mock_frontend_class.return_value } mock_frontend_class.return_value } mock_frontend_class.return_value } mock_frontend_class.return_value } mock_frontend_class.return_value } mock_frontend_class.return_value } mock_frontend_class.return_value } mock_frontend_class.return_value } mock_frontend_class.return_value } mock_frontend_class.return_value } mock_frontend_class.return_value } mock_frontend_class.return_value } mock_frontend_class.return_value } mock_frontend_class.return_value } mock_frontend_class.return_value } mock_frontend_class.return_value } mock_frontend_class.return_value } mock_frontend_class.return_value }", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.8888888888888888 + }, + { + "repo": "Lux-Luna/LunaVox", + "expected": "True", + "got": "True)", + "got_raw": "True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True)", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.8888888888888888 + }, + { + "repo": "Lux-Luna/LunaVox", + "expected": "False", + "got": "False", + "got_raw": "False\n\n def test_register(self, language): # noqa: E501 # pylint: disable=missing-docstring # noqa: E501 # pylint: disable=missing-docstring # noqa: E501 # pylint: disable=missing-docstring # noqa: E501 # pylint: disable=missing-docstring # noqa: E501 # pylint: disable=missing-docstring # noqa: E501 # pylint: disable=missing-docstring # noqa: E501 # pylint: disable=missing-docstring # noqa: E501 # pylint: disable=", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "Lux-Luna/LunaVox", + "expected": "frontend2", + "got": "frontend2", + "got_raw": "frontend2 is frontend3 is frontend1() is frontend1() is frontend1() is frontend1() is frontend1() is frontend1() is frontend1() is frontend1() is frontend1() is frontend1() is frontend1() is frontend1() is frontend1() is frontend1() is frontend1() is frontend1() is frontend1() is frontend1() is frontend1() is frontend1() is frontend1() is frontend1() is frontend1() is frontend1() is frontend1() is frontend1() is frontend1() is frontend1() is frontend1() is frontend1() is frontend1", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "Lux-Luna/LunaVox", + "expected": "frontend3", + "got": "frontend3", + "got_raw": "frontend3 is frontend1 is mock_frontend_class.return_value() is True) is False) is True) is True) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "Lux-Luna/LunaVox", + "expected": "languages", + "got": "languages[0]", + "got_raw": "languages[0] if languages else [] else [] else [] else [] else [] else [] else [] else [] else [] else [] else [] else [] else [] else [] else [] else [] else [] else [] else [] else [] else [] else [] else [] else [] else [] else [] else [] else [] else [] else [] else [] else [] else [] else [] else [] else [] else [] else [] else [] else [] else [] else [] else [] else [] else [] else [] else [] else [] else [] else [] else [] else [] else [] else [] else [] else [] else [] else [] else [] else [] else []", + "exact_match": false, + "code_bleu": 0.35930411196308426, + "edit_similarity": 0.8571428571428571 + }, + { + "repo": "Lux-Luna/LunaVox", + "expected": "mock_frontend", + "got": "mock_frontend()", + "got_raw": "mock_frontend() is mock_frontend() is mock_frontend() is mock_frontend() is mock_frontend() is mock_frontend() is mock_frontend() is mock_frontend() is mock_frontend() is mock_frontend() is mock_frontend() is mock_frontend() is mock_frontend() is mock_frontend() is mock_frontend() is mock_frontend() is mock_frontend() is mock_frontend() is mock_frontend() is mock_frontend() is mock_frontend() is mock_frontend() is mock_frontend() is mock_frontend() is mock_frontend() is mock_frontend() is mock_frontend() is mock_frontend() is mock_frontend() is mock_frontend() is mock_frontend() is mock_frontend() is", + "exact_match": false, + "code_bleu": 0.4518010018049224, + "edit_similarity": 0.9285714285714286 + }, + { + "repo": "Lux-Luna/LunaVox", + "expected": "mock_instance_2", + "got": "mock_instance_2()", + "got_raw": "mock_instance_2() * 2345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012", + "exact_match": false, + "code_bleu": 0.4518010018049224, + "edit_similarity": 0.9375 + }, + { + "repo": "Lux-Luna/LunaVox", + "expected": "ValueError, match=\"Unsupported language\")", + "got": "ValueError) as e) as e2:", + "got_raw": "ValueError) as e) as e2: # Unsupported language \"fr\" should raise ValueError\"Unsupported language \"fr\" should raise ValueError\"Unsupported language \"fr\" should raise ValueError\"Unsupported language \"fr\" should raise ValueError\"Unsupported language \"fr\" should raise ValueError\"Unsupported language \"fr\" should raise ValueError\"Unsupported language \"fr\" should raise ValueError\"Unsupported language \"fr\" should raise ValueError\"Unsupported language \"fr\" should raise ValueError\"Unsupported language \"fr\" should raise ValueError\"Unsupported language \"fr\" should raise ValueError\"Unsupported language \"fr\" should raise ValueError\"Unsupported language \"fr\" should raise ValueError", + "exact_match": false, + "code_bleu": 0.17747405280050269, + "edit_similarity": 0.3384615384615385 + }, + { + "repo": "Lux-Luna/LunaVox", + "expected": "mgr2", + "got": "mgr2.get_instance()", + "got_raw": "mgr2.get_instance() is mgr1.get_instance() is mgr1._instance) is True) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False)", + "exact_match": false, + "code_bleu": 0.2730120862709067, + "edit_similarity": 0.34782608695652173 + }, + { + "repo": "Lux-Luna/LunaVox", + "expected": "None", + "got": "None.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "None.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.4518010018049224, + "edit_similarity": 0.05925925925925926 + }, + { + "repo": "Lux-Luna/LunaVox", + "expected": "True", + "got": "True)", + "got_raw": "True) * 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.8888888888888888 + }, + { + "repo": "Lux-Luna/LunaVox", + "expected": "False", + "got": "False", + "got_raw": "False or None or \"\" or \"\" or {} or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "Lux-Luna/LunaVox", + "expected": "status", + "got": "status.keys()", + "got_raw": "status.keys() and \"skeletoken\" in status.keys() and \"tts\" in status.keys() and \"tokenizer\" in status.keys() and \"scorer\" in status.keys() and \"config\" in status.keys() and \"vocab\" in status.keys() and \"char2idx\" in status.keys() and \"idx2char\" in status.keys() and \"device\" in status.keys() and \"device_id\" in status.keys() and \"tts_model\" in status.keys() and \"tokenizer_model\" in status.keys() and \"scorer_model\" in status.keys() and \"config\" in status", + "exact_match": false, + "code_bleu": 0.2730120862709067, + "edit_similarity": 0.631578947368421 + }, + { + "repo": "Lux-Luna/LunaVox", + "expected": "3", + "got": "3", + "got_raw": "3 * 2 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 +", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "Lux-Luna/LunaVox", + "expected": "\"v2\"", + "got": "\"v2\"", + "got_raw": "\"v2\" + ModelVersion.V2_SUFFIX.value + ModelVersion.V2_1.value + ModelVersion.V2_2.value + ModelVersion.V2_3.value + ModelVersion.V2_4.value + ModelVersion.V2_5.value + ModelVersion.V2_6.value + ModelVersion.V2_7.value + ModelVersion.V2_8.value + ModelVersion.V2_9.value + ModelVersion.V2_10.value + ModelVersion.V2_11.value + ModelVersion.V2_12.value + ModelVersion.V2_13.value + ModelVersion.V2_14.value", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "Lux-Luna/LunaVox", + "expected": "inputs", + "got": "inputs.keys()", + "got_raw": "inputs.keys() else \"text_seq\" in inputs.keys() else \"text_seq\" in inputs.keys() else \"text_seq\" in inputs.keys() else \"text_seq\" in inputs.keys() else \"text_seq\" in inputs.keys() else \"text_seq\" in inputs.keys() else \"text_seq\" in inputs.keys() else \"text_seq\" in inputs.keys() else \"text_seq\" in inputs.keys() else \"text_seq\" in inputs.keys() else \"text_seq\" in inputs.keys() else \"text_seq\" in inputs.keys() else \"text_seq\" in inputs.keys() else \"text_seq\" in inputs.keys", + "exact_match": false, + "code_bleu": 0.2730120862709067, + "edit_similarity": 0.631578947368421 + }, + { + "repo": "Lux-Luna/LunaVox", + "expected": "\"v2Pro\"", + "got": "\"v2-pro\"", + "got_raw": "\"v2-pro\" + ModelVersion.V2.value[1:] + \".json\" + ModelVersion.V2_PRO.value[1:] + \".json\" + ModelVersion.V2_PRO.value[1:] + \".json\" + ModelVersion.V2_PRO.value[1:] + \".json\" + ModelVersion.V2_PRO.value[1:] + \".json\" + ModelVersion.V2_PRO.value[1:] + \".json\" + ModelVersion.V2_PRO.value[1:] + \".json\" + ModelVersion.V2_PRO.value[1:] + \".json\" + ModelVersion.V2_PRO.value[1:] + \".", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.8 + }, + { + "repo": "Lux-Luna/LunaVox", + "expected": "V2_SPEC", + "got": "V2_SPEC[2]", + "got_raw": "V2_SPEC[2] * 1000000001.0 + 10000000001.0 * 1000000001.0 + 10000000001.0 * 1000000001.0 + 10000000001.0 * 1000000001.0 + 10000000001.0 * 1000", + "exact_match": false, + "code_bleu": 0.35930411196308426, + "edit_similarity": 0.8235294117647058 + }, + { + "repo": "Lux-Luna/LunaVox", + "expected": "\"v2ProPlus\"", + "got": "\"v2ProPlus\"", + "got_raw": "\"v2ProPlus\" + ModelVersion.V2.value[2:] + ModelVersion.V2.value[2:] + ModelVersion.V2.value[2:] + ModelVersion.V2.value[2:] + ModelVersion.V2.value[2:] + ModelVersion.V2.value[2:] + ModelVersion.V2.value[2:] + ModelVersion.V2.value[2:] + ModelVersion.V2.value[2:] + ModelVersion.V2.value[2:] + ModelVersion.V2.value[2:] + ModelVersion.V2.value[2:] + ModelVersion.V2.value[2:] + ModelVersion.V2", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "Lux-Luna/LunaVox", + "expected": "V2_PRO_SPEC", + "got": "V2_PRO_SPEC[0]", + "got_raw": "V2_PRO_SPEC[0] * 1000000001.0 + 10000000001.0 * 1000000001.0 + 10000000001.0 * 1000000001.0 + 10000000001.0 * 1000000001.0 + 10000000001.0 * 100", + "exact_match": false, + "code_bleu": 0.35930411196308426, + "edit_similarity": 0.88 + }, + { + "repo": "Lux-Luna/LunaVox", + "expected": "[\"a\", \"b\", \"c\"]", + "got": "[\"a\", \"b\", \"c\"] if \"c\" in all_inputs else [\"a\", \"b\"] + [\"c\"] if \"c\" not in all_inputs else [\"a\", \"b\"] + [] if \"c\" not in all_inputs else [] + [] if \"c\" not in all_inputs else [] + [] if \"c\" not in all_inputs else [] + [] if \"c\" not in all_inputs else [] + [] if \"c\" not in all_inputs else [] + [] if \"c\" not in all_inputs else [] + [] if \"c\" not in all_inputs else [] + []", + "got_raw": "[\"a\", \"b\", \"c\"] if \"c\" in all_inputs else [\"a\", \"b\"] + [\"c\"] if \"c\" not in all_inputs else [\"a\", \"b\"] + [] if \"c\" not in all_inputs else [] + [] if \"c\" not in all_inputs else [] + [] if \"c\" not in all_inputs else [] + [] if \"c\" not in all_inputs else [] + [] if \"c\" not in all_inputs else [] + [] if \"c\" not in all_inputs else [] + [] if \"c\" not in all_inputs else [] + []", + "exact_match": false, + "code_bleu": 0.05742146756545887, + "edit_similarity": 0.07751937984496124 + }, + { + "repo": "Lux-Luna/LunaVox", + "expected": "V2_PRO_PLUS_SPEC", + "got": "V2_PRO_PLUS_SPEC[0]", + "got_raw": "V2_PRO_PLUS_SPEC[0] * 1000000001.0 + 10000000001.0 * 10000000001.0 + 10000000001.0 * 10000000001.0 + 10000000001.0 * 10000000001.0 + 10000000001.0 *", + "exact_match": false, + "code_bleu": 0.35930411196308426, + "edit_similarity": 0.9142857142857143 + }, + { + "repo": "Lux-Luna/LunaVox", + "expected": "source", + "got": "source.lower()", + "got_raw": "source.lower() * 200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.2730120862709067, + "edit_similarity": 0.6 + }, + { + "repo": "Lux-Luna/LunaVox", + "expected": "skip_components", + "got": "skip_components.intersection(args)", + "got_raw": "skip_components.intersection(args) | args.intersection(kwargs) | kwargs[\"skip_components\"] | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() |", + "exact_match": false, + "code_bleu": 0.22089591134157885, + "edit_similarity": 0.6122448979591837 + }, + { + "repo": "Lux-Luna/LunaVox", + "expected": "first_call_count", + "got": "first_call_count", + "got_raw": "first_call_count + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + ", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "Lux-Luna/LunaVox", + "expected": "kwargs.get(\"skip_components\", set())", + "got": "kwargs[\"model_config\"][\"subdirs\"][:2] * 2 + [None] * 2 + kwargs[\"model_config\"][\"subdirs\"][2:] * 2 + [None] * 2 + kwargs[\"model_config\"][\"subdirs\"][:2] * 2 + [None] * 2 + kwargs[\"model_config\"][\"subdirs\"][:2] * 2 + [None] * 2 + kwargs[\"model_config\"][\"subdirs\"][:2] * 2 + [None] * 2 + kwargs[\"model_config\"][\"subdirs\"][:2] * 2 + [None]", + "got_raw": "kwargs[\"model_config\"][\"subdirs\"][:2] * 2 + [None] * 2 + kwargs[\"model_config\"][\"subdirs\"][2:] * 2 + [None] * 2 + kwargs[\"model_config\"][\"subdirs\"][:2] * 2 + [None] * 2 + kwargs[\"model_config\"][\"subdirs\"][:2] * 2 + [None] * 2 + kwargs[\"model_config\"][\"subdirs\"][:2] * 2 + [None] * 2 + kwargs[\"model_config\"][\"subdirs\"][:2] * 2 + [None]", + "exact_match": false, + "code_bleu": 0.010208256508177013, + "edit_similarity": 0.09703504043126684 + }, + { + "repo": "MartenBE/mkslides", + "expected": "0", + "got": "0", + "got_raw": "0 if strict else 127 if strict else 139 if strict else 140 if strict else 141 if strict else 142 if strict else 143 if strict else 144 if strict else 145 if strict else 146 if strict else 147 if strict else 148 if strict else 149 if strict else 150 if strict else 151 if strict else 152 if strict else 153 if strict else 154 if strict else 155 if", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "MartenBE/mkslides", + "expected": "content", + "got": "content.strip()", + "got_raw": "content.strip() + \"\\n\" * 20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.2730120862709067, + "edit_similarity": 0.6363636363636364 + }, + { + "repo": "MartenBE/mkslides", + "expected": "output_path / \"index.html\")", + "got": "output_path / \"mkslides-assets/highlight-js-themes/monokai.js\")", + "got_raw": "output_path / \"mkslides-assets/highlight-js-themes/monokai.js\")", + "exact_match": false, + "code_bleu": 0.5081327481546147, + "edit_similarity": 0.5111111111111111 + }, + { + "repo": "MartenBE/mkslides", + "expected": "output_path / \"randomfile-1.txt\")", + "got": "output_path / \"somefolder/someotherslides-3.html\") is False)", + "got_raw": "output_path / \"somefolder/someotherslides-3.html\") is False)", + "exact_match": false, + "code_bleu": 0.2626909894424158, + "edit_similarity": 0.4731182795698925 + }, + { + "repo": "MartenBE/mkslides", + "expected": "output_path / \"someslides-1.html\")", + "got": "output_path / \"mkslides-assets/reveal-js/plugin/zoom/zoom.js\")", + "got_raw": "output_path / \"mkslides-assets/reveal-js/plugin/zoom/zoom.js\")", + "exact_match": false, + "code_bleu": 0.5081327481546147, + "edit_similarity": 0.5625 + }, + { + "repo": "MartenBE/mkslides", + "expected": "output_path / \"extra/randomfile-3.txt\")", + "got": "output_path / \"somefolder/somefile-1.json\") * False) * True) * False) * True) * False) * True) * False) * True) * False) * True) * False) * True) * False) * True) * False) * True) * False) * True) * False) * True) * False) * True) * False) * True) * False) * True) * False) * True) * False) * True) * False) * True) * False) * True) * False) * True) * False) * True) *", + "got_raw": "output_path / \"somefolder/somefile-1.json\") * False) * True) * False) * True) * False) * True) * False) * True) * False) * True) * False) * True) * False) * True) * False) * True) * False) * True) * False) * True) * False) * True) * False) * True) * False) * True) * False) * True) * False) * True) * False) * True) * False) * True) * False) * True) * False) * True) *", + "exact_match": false, + "code_bleu": 0.014192976301907023, + "edit_similarity": 0.12285012285012285 + }, + { + "repo": "MartenBE/mkslides", + "expected": "output_path / \"somefolder/randomfile-2.txt\")", + "got": "output_path / \"randomfile-2.json\")", + "got_raw": "output_path / \"randomfile-2.json\")", + "exact_match": false, + "code_bleu": 0.5081327481546147, + "edit_similarity": 0.7692307692307693 + }, + { + "repo": "MartenBE/mkslides", + "expected": "'')", + "got": "'' ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "got_raw": "'' ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "exact_match": false, + "code_bleu": 0.010762606271720852, + "edit_similarity": 0.23283582089552238 + }, + { + "repo": "MartenBE/mkslides", + "expected": "'')", + "got": "output_path / \"favicons\" / \"local_index_favicon_path\" / \"favicon.ico\")", + "got_raw": "output_path / \"favicons\" / \"local_index_favicon_path\" / \"favicon.ico\")", + "exact_match": false, + "code_bleu": 0.16036590969929357, + "edit_similarity": 0.3793103448275862 + }, + { + "repo": "MartenBE/mkslides", + "expected": "'')", + "got": "''", + "got_raw": "'', ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "exact_match": false, + "code_bleu": 0.25, + "edit_similarity": 0.7479674796747967 + }, + { + "repo": "MartenBE/mkslides", + "expected": "'')", + "got": "''s)", + "got_raw": "''s)", + "exact_match": false, + "code_bleu": 0.4518010018049224, + "edit_similarity": 0.8421052631578947 + }, + { + "repo": "MartenBE/mkslides", + "expected": "'')", + "got": "output_path / \"absolute_url_index_favicon_path\" / \"favicon.png\")", + "got_raw": "output_path / \"absolute_url_index_favicon_path\" / \"favicon.png\")", + "exact_match": false, + "code_bleu": 0.22089591134157885, + "edit_similarity": 0.36363636363636365 + }, + { + "repo": "MartenBE/mkslides", + "expected": "'')", + "got": "'')", + "got_raw": "'')", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.4954128440366973 + }, + { + "repo": "MartenBE/mkslides", + "expected": "'')", + "got": "f\"{cwd / 'frontmatter' / 'slides' / 'slides.md'}\") < 0) < 0) < 0) < 0) < 0) < 0) < 0) < 0) < 0) < 0) < 0) < 0) < 0) < 0) < 0) < 0) < 0) < 0) < 0) < 0) < 0) < 0) < 0) < 0) < 0) < 0) < 0) <", + "got_raw": "f\"{cwd / 'frontmatter' / 'slides' / 'slides.md'}\") < 0) < 0) < 0) < 0) < 0) < 0) < 0) < 0) < 0) < 0) < 0) < 0) < 0) < 0) < 0) < 0) < 0) < 0) < 0) < 0) < 0) < 0) < 0) < 0) < 0) < 0) < 0) < ", + "exact_match": false, + "code_bleu": 0.01407468909020885, + "edit_similarity": 0.06866952789699571 + }, + { + "repo": "MartenBE/mkslides", + "expected": "'')", + "got": "'') * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2)", + "got_raw": "'') * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2)", + "exact_match": false, + "code_bleu": 0.01391004452078366, + "edit_similarity": 0.34854771784232363 + }, + { + "repo": "MartenBE/mkslides", + "expected": "'')", + "got": "'') ') ') ') ') ') ') ')", + "got_raw": "'') ') ') ') ') ') ') ')", + "exact_match": false, + "code_bleu": 0.02403051755364481, + "edit_similarity": 0.13721413721413722 + }, + { + "repo": "MartenBE/mkslides", + "expected": "'frontmatter title')", + "got": "input_path / \"slides\" / \"frontmatter\" / \"slides.json\") as f: f.read()) as f: f.read()) as f: f.read()) as f: f.read()) as f: f.read()) as f: f.read()) as f: f.read()) as f: f.read()) as f: f.read()) as f: f.read()) as f: f.read()) as f: f.read()) as f: f.read()) as f: f.read()) as f: f.read()) as f: f.read()) as f: f.read()) as f: f.read()) as f: f", + "got_raw": "input_path / \"slides\" / \"frontmatter\" / \"slides.json\") as f: f.read()) as f: f.read()) as f: f.read()) as f: f.read()) as f: f.read()) as f: f.read()) as f: f.read()) as f: f.read()) as f: f.read()) as f: f.read()) as f: f.read()) as f: f.read()) as f: f.read()) as f: f.read()) as f: f.read()) as f: f.read()) as f: f.read()) as f: f.read()) as f: f", + "exact_match": false, + "code_bleu": 0.0068543620005357, + "edit_similarity": 0.11442786069651742 + }, + { + "repo": "MartenBE/mkslides", + "expected": "'')", + "got": "''", + "got_raw": "'', ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "exact_match": false, + "code_bleu": 0.25, + "edit_similarity": 0.9019607843137255 + }, + { + "repo": "MartenBE/mkslides", + "expected": "output_path / \"mkslides-assets/highlight-js-themes/vs.css\")", + "got": "output_path / \"mkslides-assets/reveal-js/dist/theme/white.css\") is False)", + "got_raw": "output_path / \"mkslides-assets/reveal-js/dist/theme/white.css\") is False)", + "exact_match": false, + "code_bleu": 0.2626909894424158, + "edit_similarity": 0.7121212121212122 + }, + { + "repo": "MartenBE/mkslides", + "expected": "output_path / \"mkslides-assets/reveal-js/dist/theme/solarized.css\")", + "got": "'frontmatter title (with emphasis)') frontmatter title (with emphasis) frontmatter title (with emphasis) frontmatter title (with emphasis) frontmatter title (with emphasis) frontmatter title (with emphasis) frontmatter title (with emphasis) frontmatter title (with emphasis)", + "got_raw": "'frontmatter title (with emphasis)') frontmatter title (with emphasis) frontmatter title (with emphasis) frontmatter title (with emphasis) frontmatter title (with emphasis) frontmatter title (with emphasis) frontmatter title (with emphasis) frontmatter title (with emphasis)", + "exact_match": false, + "code_bleu": 0.011595928376349736, + "edit_similarity": 0.07035175879396985 + }, + { + "repo": "MartenBE/mkslides", + "expected": "'')", + "got": "'')", + "got_raw": "'')", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "MartenBE/mkslides", + "expected": "'')", + "got": "\"mkslides-assets/mkslides.css\") Lorem ipsum\")", + "got": "\"\") \") \") \") MkSlides.')", + "got": "output_path / \"index.html\") / \"index_banner.html\") / \"index_banner.js\") / \"index_banner.css\") / \"index_banner.json\") / \"index_banner.yml\") / \"index_banner.md\") / \"index_banner.txt\") / \"index_banner.gif\") / \"index_banner.png\") / \"index_banner.svg\") / \"index_banner.webp\") / \"index_banner.mov\") / \"index_banner.mp4\") / \"index_banner.mp4.mp4\") / \"index_banner.mp4.mp4\" / \"index_banner.mp4.mp4.mp4\") / \"index_banner.mp4.mp4.mp4.mp4", + "got_raw": "output_path / \"index.html\") / \"index_banner.html\") / \"index_banner.js\") / \"index_banner.css\") / \"index_banner.json\") / \"index_banner.yml\") / \"index_banner.md\") / \"index_banner.txt\") / \"index_banner.gif\") / \"index_banner.png\") / \"index_banner.svg\") / \"index_banner.webp\") / \"index_banner.mov\") / \"index_banner.mp4\") / \"index_banner.mp4.mp4\") / \"index_banner.mp4.mp4\" / \"index_banner.mp4.mp4.mp4\") / \"index_banner.mp4.mp4.mp4.mp4", + "exact_match": false, + "code_bleu": 0.01933989749128927, + "edit_similarity": 0.12429378531073447 + }, + { + "repo": "MartenBE/mkslides", + "expected": "re.compile( r\"\"\" \"\"\", re.VERBOSE | re.DOTALL, ))", + "got": "\"\"\"

Here is some markdown that should be rendered as HTML.

Here is some markdown that should be rendered as HTML.

Here is some markdown that should be rendered as HTML.

Here is some markdown that should be rendered as HTML.

Here is some markdown that should be rendered as HTML.

Here is", + "got_raw": "\"\"\"

Here is some markdown that should be rendered as HTML.

Here is some markdown that should be rendered as HTML.

Here is some markdown that should be rendered as HTML.

Here is some markdown that should be rendered as HTML.

Here is some markdown that should be rendered as HTML.

Here is", + "exact_match": false, + "code_bleu": 0.024007822358484504, + "edit_similarity": 0.06489675516224189 + }, + { + "repo": "MartenBE/mkslides", + "expected": "{}", + "got": "{}", + "got_raw": "{} * 0.012345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "MartenBE/mkslides", + "expected": "expected_returncode", + "got": "expected_returncode", + "got_raw": "expected_returncode + 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "MartenBE/mkslides", + "expected": "'menu: {\"openButton\": true, \"openOnInit\": true}')", + "got": "'') ') ') ') ') ') ') ') ')", + "got": "'') ' ) ' ) ' ) ') ' ) ' ) ' ) ')", + "got": "output_path / \"plugins\" / \"slides\" / \"index.html\")", + "got_raw": "output_path / \"plugins\" / \"slides\" / \"index.html\")", + "exact_match": false, + "code_bleu": 0.16036590969929357, + "edit_similarity": 0.16216216216216217 + }, + { + "repo": "MartenBE/mkslides", + "expected": "'')", + "got": "'') )", + "got_raw": "'') )", + "exact_match": false, + "code_bleu": 0.4518010018049224, + "edit_similarity": 0.5701357466063348 + }, + { + "repo": "MartenBE/mkslides", + "expected": "'')", + "got": "'') ' ' ' ') ' ' ' Example of Preprocessing

Here's a code block:

 print \"Hello, World!\" 

And here's a code block with syntax highlighting:

 import sys sys.stdout.write(\"Hello, World!\\n\") 

Finally, here's a code block with a code block inside:Example of Preprocessing

Here's a code block:

 print \"Hello, World!\" 

And here's a code block with syntax highlighting:

 import sys sys.stdout.write(\"Hello, World!\\n\") 

Finally, here's a code block with a code block inside:.*?

.*?

.*?

.*?

.*?

.*?

.*?

.*?

.*?

.*?

.*?

.*?

.*?

.*?

.*?

.*?

.*?

.*?

.*?

.*?

.*?

.*?

.*?

.*?

.*?

.*?

.*?

.*?

.*?

.*?

\") \") \") \") \") \") \") \")", + "exact_match": false, + "code_bleu": 0.37991784282579627, + "edit_similarity": 0.2 + }, + { + "repo": "MartenBE/mkslides", + "expected": "\"[](./someslides-2.html)\")", + "got": "\"[](someslides-3.html)\")", + "got_raw": "\"[](someslides-3.html)\")", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.92 + }, + { + "repo": "MartenBE/mkslides", + "expected": "\"[test](/folder/test.md)\")", + "got": "\"[test](/folder/test.md)\")", + "got_raw": "\"[test](/folder/test.md)\") ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "MartenBE/mkslides", + "expected": "\"[test](someslides-2.html)\")", + "got": "\"[](../someslides-2.html)\")", + "got_raw": "\"[](../someslides-2.html)\")", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.8727272727272727 + }, + { + "repo": "MartenBE/mkslides", + "expected": "\"history: true,\")", + "got": "\"\") \") \") \") \") \") \") \") ", + "got_raw": "\"\") \") \") \") \") \") \") \") ", + "exact_match": false, + "code_bleu": 0.021824907535865135, + "edit_similarity": 0.0321285140562249 + }, + { + "repo": "MartenBE/mkslides", + "expected": "re.compile( r\"\"\" Reveal\\.initialize\\({ .*? transition:\\s+\"fade\", .*? }\\); \"\"\", re.VERBOSE | re.DOTALL, ))", + "got": "\"\"\"

String options

Here are some examples of how to use the string options:

  • Option 1: Red
  • Option 2: Blue
  • Option 3: Green

String options

", + "got_raw": "\"\"\"

String options

Here are some examples of how to use the string options:

  • Option 1: Red
  • Option 2: Blue
  • Option 3: Green

String options

", + "exact_match": false, + "code_bleu": 0.036612667086152566, + "edit_similarity": 0.1522198731501057 + }, + { + "repo": "MartenBE/mkslides", + "expected": "re.compile( r\"\"\" Reveal\\.initialize\\({ .*? height:\\s+1080, .*? width:\\s+1920, .*? }\\); \"\"\", re.VERBOSE | re.DOTALL, ))", + "got": "output_path / \"slides\" / \"index.html\") / \"revealjs_integer_options_config.json\") / \"slides\" / \"index.html\") / \"revealjs_integer_options_config.json\") / \"slides\" / \"index.html\") / \"revealjs_integer_options_config.json\") / \"slides\" / \"index.html\") / \"revealjs_integer_options_config.json\") / \"slides\" / \"index.html\") / \"revealjs_integer_options_config.json\") / \"slides\" / \"index.html\") / \"revealjs_integer_options_config.json\") / \"slides\" / \"index.html\") / \"revealjs_integer_options_config.json\")", + "got_raw": "output_path / \"slides\" / \"index.html\") / \"revealjs_integer_options_config.json\") / \"slides\" / \"index.html\") / \"revealjs_integer_options_config.json\") / \"slides\" / \"index.html\") / \"revealjs_integer_options_config.json\") / \"slides\" / \"index.html\") / \"revealjs_integer_options_config.json\") / \"slides\" / \"index.html\") / \"revealjs_integer_options_config.json\") / \"slides\" / \"index.html\") / \"revealjs_integer_options_config.json\") / \"slides\" / \"index.html\") / \"revealjs_integer_options_config.json\")", + "exact_match": false, + "code_bleu": 0.023297907800314516, + "edit_similarity": 0.1111111111111111 + }, + { + "repo": "MartenBE/mkslides", + "expected": "\"

Index

\")", + "got": "\"

Slides", + "got_raw": "\"

Slides 2

\")

Slides 2

These are the slides for the talk on how to use Markdown.

Slide 1

Here is the first slide.

Slide 2

Here is the second slide.

Slide 3

Here is the third slide.

Slide 4

Here is the fourth slide.

", + "exact_match": false, + "code_bleu": 0.2295748846661433, + "edit_similarity": 0.5 + }, + { + "repo": "MartenBE/mkslides", + "expected": "output_path / \"index.html\")", + "got": "input_path / \"test.md\") is False) is False) is True) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is", + "got_raw": "input_path / \"test.md\") is False) is False) is True) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is", + "exact_match": false, + "code_bleu": 0.010571301880937002, + "edit_similarity": 0.07079646017699115 + }, + { + "repo": "MartenBE/mkslides", + "expected": "\"Lorem ipsum dolor sit amet\")", + "got": "\"

Single Markdown File in Folder

\")

Single Markdown File in Folder

Here's some markdown:

Some more markdown.

And here's a link to a Google search.

And here's a link to a Google search.

And here's a link to a Google search.

And here", + "got_raw": "\"

Single Markdown File in Folder

\")

Single Markdown File in Folder

Here's some markdown:

Some more markdown.

And here's a link to a Google search.

And here's a link to a Google search.

And here's a link to a Google search.

And here", + "exact_match": false, + "code_bleu": 0.014592871601642462, + "edit_similarity": 0.06295399515738499 + }, + { + "repo": "MartenBE/mkslides", + "expected": "output_path / \"someslides-1.html\")", + "got": "output_path / \"slides\")", + "got_raw": "output_path / \"slides\")", + "exact_match": false, + "code_bleu": 0.5081327481546147, + "edit_similarity": 0.8070175438596491 + }, + { + "repo": "MartenBE/mkslides", + "expected": "output_path / \"someslides-2.html\")", + "got": "output_path / \"someslides-2.html\")", + "got_raw": "output_path / \"someslides-2.html\")", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "MartenBE/mkslides", + "expected": "\"\ud83d\udc4d\")", + "got": "\"\ud83d\udc4d\")", + "got_raw": "\"\ud83d\udc4d\")", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "MartenBE/mkslides", + "expected": "\"\u26a0\ufe0f\")", + "got": "\"\ud83d\ude03\")", + "got_raw": "\"\ud83d\ude03\")", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.6666666666666666 + }, + { + "repo": "MartenBE/mkslides", + "expected": "'')", + "got": "'') ' ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "got_raw": "'') ' ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "exact_match": false, + "code_bleu": 0.010762606271720852, + "edit_similarity": 0.24861878453038674 + }, + { + "repo": "MartenBE/mkslides", + "expected": "'')", + "got": "'') ') ') ') ') ') ') ') ')", + "got": "'') ') )", + "got_raw": "'') ') )", + "exact_match": false, + "code_bleu": 0.1082597837309053, + "edit_similarity": 0.6214689265536724 + }, + { + "repo": "MartenBE/mkslides", + "expected": "'')", + "got": "'')", + "got_raw": "'')", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.8440366972477065 + }, + { + "repo": "MartenBE/mkslides", + "expected": "'')", + "got": "'')", + "got_raw": "'')", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.6115702479338843 + }, + { + "repo": "MartenBE/mkslides", + "expected": "output_path / \"mkslides-assets/reveal-js/dist/theme/simple.css\")", + "got": "cwd / \"themes\" / \"slides\" / \"theme.css\") is False) is False) is True) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False)", + "got_raw": "cwd / \"themes\" / \"slides\" / \"theme.css\") is False) is False) is True) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False)", + "exact_match": false, + "code_bleu": 0.010832343519126219, + "edit_similarity": 0.09523809523809523 + }, + { + "repo": "MartenBE/mkslides", + "expected": "'')", + "got": "'')", + "got_raw": "'')", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.5384615384615384 + }, + { + "repo": "MartenBE/mkslides", + "expected": "'')", + "got": "'')", + "got_raw": "'')", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.896551724137931 + }, + { + "repo": "MartenBE/mkslides", + "expected": "'')", + "got": "f\"{cwd / 'slides' / 'absolute_url_slideshow_theme_path' / 'theme_assets' / 'theme.css'}\")", + "got_raw": "f\"{cwd / 'slides' / 'absolute_url_slideshow_theme_path' / 'theme_assets' / 'theme.css'}\")", + "exact_match": false, + "code_bleu": 0.4518010018049224, + "edit_similarity": 0.2891566265060241 + }, + { + "repo": "MartenBE/mkslides", + "expected": "'')", + "got": "'')", + "got_raw": "'')", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.825 + }, + { + "repo": "MartenBE/mkslides", + "expected": "'')", + "got": "'') ') ') ') ') ') ') ') ') ') ')", + "got": "'')", + "got_raw": "'')", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "0)", + "got": "0)", + "got_raw": "0) < 100) * 100) < 100) < 100) < 100) < 100) < 100) < 100) < 100) < 100) < 100) < 100) < 100) < 100) < 100) < 100) < 100) < 100) < 100) < 100) < 100)", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "30)", + "got": "20)", + "got_raw": "20) * 100) # Should have less than 20 messages\") * 100) # Should have less than 20 messages\") * 100) # Should have less than 20 messages\") * 100) # Should have less than 20 messages\") * 100) # Should have less than 20 messages\") * 100) # Should have less than 20 messages\") * 100) # Should have less than 20 messages\") * 100)", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.6666666666666666 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "any(\"SUCCESS\" in msg for msg in messages))", + "got": "all(msg for msg in messages for msg in msg)) == True)", + "got_raw": "all(msg for msg in messages for msg in msg)) == True) # All messages should be empty or contain only whitespace) self.assertEqual(messages) for msg in messages) for msg in msg) for msg in msg) for msg in msg) for msg in msg) for msg in msg) for msg in msg) for msg in msg) for msg in msg) for msg in msg) for msg in msg) for msg in msg) for msg in msg) for msg in msg) for msg in msg) for msg in msg) for msg in msg) for msg in msg) for msg in msg) for msg in", + "exact_match": false, + "code_bleu": 0.32702929224554894, + "edit_similarity": 0.5684210526315789 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "any(\"FAILURE\" in msg for msg in messages))", + "got": "any(\"INTERSECTION\" in msg for msg in messages))", + "got_raw": "any(\"INTERSECTION\" in msg for msg in messages))\n self.assertFalse( any(\"NO_INTERSECTION\" in msg for msg in messages)) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "exact_match": false, + "code_bleu": 0.7691605673134586, + "edit_similarity": 0.8314606741573034 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "any(\"Aborting\" in msg for msg in messages))", + "got": "len(messages) < 20)", + "got_raw": "len(messages) < 20) # Arbitrary limit for testing\n stream.close()\n print(messages) # For debugging\n # print(len(messages)) # For debugging\n # print(stream) # For debugging\n\n # print(stream.closed) # For debugging\n # print(stream) # For debugging\n # print(stream) # For debugging\n # print(stream) # For debugging\n # print(stream) # For debugging\n # print(stream) # For debugging\n # print(stream) # For debugging\n # print(stream) #", + "exact_match": false, + "code_bleu": 0.17675757489165944, + "edit_similarity": 0.3870967741935484 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "any(\"FAILURE\" in msg and \"height\" in msg for msg in messages))", + "got": "any(\"Entry box height too small\" in msg for msg in messages))", + "got_raw": "any(\"Entry box height too small\" in msg for msg in messages))\n stream.close()\n data[\"form_fields\"][0][\"entry_bounding_box\"][1] = 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5640510826965363, + "edit_similarity": 0.7317073170731707 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "any(\"FAILURE\" in msg and \"intersection\" in msg for msg in messages))", + "got": "any(\"Label entry intersection\" in msg for msg in messages))", + "got_raw": "any(\"Label entry intersection\" in msg for msg in messages))\n self.assertTrue(\"Label entry intersection\" in messages[0]) # First message is the same as second\n self.assertTrue(\"Label entry intersection\" in messages[1]) # Second message is the same as first)\n self.assertTrue(\"Label entry intersection\" not in messages[2]) # Third message should be empty)\n self.assertTrue(\"Label entry intersection\" not in messages[3]) # Fourth message should be None)\n self.assertTrue(\"Label entry intersection\" in messages[4]) # Fifth message should have \"Label", + "exact_match": false, + "code_bleu": 0.5640510826965363, + "edit_similarity": 0.7874015748031497 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "\"refusal\"", + "got": "\"session_invalid\"", + "got_raw": "\"session_invalid\" + str(prompt.sessionId) + str(response.sessionId) + str(response.responseId) + str(response.text) + str(response.sessionToken) + str(response.sessionSecret) + str(response.session) + str(response.sessionSecretKey) + str(response.sessionSecretToken) + str(response.sessionSecretTokenKey) + str(response.sessionSecretTokenKeySecret) + str(response.sessionSecretTokenKeySecretToken) + str(response.sessionSecretTokenKeySecretTokenSecret) + str(response.sessionSecretTokenKeySecretTokenSecretToken) + str(response.sessionSecretTokenKeySecretTokenSecretToken) + str(response.sessionSecretTokenKeySecret", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.38461538461538464 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "\"end_turn\"", + "got": "\"end_turn\"", + "got_raw": "\"end_turn\" + str(session.sessionId) + str(prompt) + str(response) + str(agent) + str(conn) + str(agent.agent) + str(conn.conn) + str(conn) + str(conn) + str(conn) + str(conn) + str(conn) + str(conn) + str(conn) + str(conn) + str(conn) + str(conn) + str(conn) + str(conn) + str(conn) + str(conn) + str(conn) + str(conn) + str(conn) + str(conn) + str(conn) + str(conn) + str(conn) + str(conn) + str(conn)", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "0", + "got": "0.000000000000000012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890", + "got_raw": "0.000000000000000012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "-1", + "got": "-1134567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567", + "got_raw": "-1134567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.03076923076923077 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "None", + "got": "None", + "got_raw": "None or \"\" or \" \" or \"ls\" or \"ls /nonexistent_directory_12345\" or \"ls /nonexistent_directory_12345\" or \"ls /nonexistent_directory_12345\" or \"ls /nonexistent_directory_12345\" or \"ls /nonexistent_directory_12345\" or \"ls /nonexistent_directory_12345\" or \"ls /nonexistent_directory_12345\" or \"ls /nonexistent_directory_12345\" or \"ls /nonexistent", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "\"running\"", + "got": "\"running\"", + "got_raw": "\"running\" ) bg_shell.kill() # Terminate the command\n await asyncio.sleep(0.5) # Wait for the command to terminate\n bg_shell.close() # Close the shell connection\n print(f\"Killed long-running command: {bash_id}\")", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "result.stdout", + "got": "result.output.strip()", + "got_raw": "result.output.strip() + \"\\n\" + \"=== End of Test ===\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\", + "exact_match": false, + "code_bleu": 0.24446151121745047, + "edit_similarity": 0.5882352941176471 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "result.stderr", + "got": "result.stderr.lower()", + "got_raw": "result.stderr.lower() # Convert stderr to lowercase for easier testing\n print(\"=== Test Result ===\") # This will print the test result to the console) stdout message\\nstderr message\") # noqa: E501) # noqa: E501) # noqa: E501) # noqa: E501) # noqa: E501) # noqa: E501) # noqa: E501) # noqa: E501) # noqa: E501) # noqa: E50", + "exact_match": false, + "code_bleu": 0.345720784641941, + "edit_similarity": 0.7647058823529411 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "result.error.lower()", + "got": "result.error.lower()", + "got_raw": "result.error.lower() if result.error else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "0", + "got": "0.015625", + "got_raw": "0.015625 * 8000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.2222222222222222 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "LLMProvider.OPENAI", + "got": "\"openai\"", + "got_raw": "\"openai\" + \"\\n\" + \"=== End of Test ===\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\"", + "exact_match": false, + "code_bleu": 0.16666666666666666, + "edit_similarity": 0.15384615384615385 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "LLMProvider.ANTHROPIC", + "got": "\"anthropic\"", + "got_raw": "\"anthropic\" + (\"\" if config.get(\"api_base\") else \"/\") + \"llama3.2:1b\" + (\"\" if config.get(\"model\") else \"\") + \"/nomic\" + (\"\" if config.get(\"api_base\") else \"/\") + \"llama3.2:1b\" + (\"\" if config.get(\"model\") else \"\") + \"/nomic\" + (\"\" if config.get(\"api_base\") else \"/\") + \"llama3.2:1b\" + (\"\" if config.get(\"model\") else \"\") + \"/nomic\" + (\"\" if", + "exact_match": false, + "code_bleu": 0.16666666666666666, + "edit_similarity": 0.1875 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "0", + "got": "0.015999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999", + "got_raw": "0.015999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "\"get_weather\"", + "got": "\"get_weather\"", + "got_raw": "\"get_weather\" + str(len(response.tool_calls) - 1) + \".\" + str(0) + \".\" + str(0) + \".\" + str(0) + \".\" + str(0) + \".\" + str(0) + \".\" + str(0) + \".\" + str(0) + \".\" + str(0) + \".\" + str(0) + \".\" + str(0) + \".\" + str(0) + \".\" + str(0) + \".\" + str(0) + \".\" + str(0) + \".\" + str(0) + \".\" + str(0) +", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "1", + "got": "10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "3", + "got": "4)", + "got_raw": "4) * 2 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1", + "exact_match": false, + "code_bleu": 0.4518010018049224, + "edit_similarity": 0.0 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "skill.content", + "got": "skill.content()", + "got_raw": "skill.content() + \"\\n\" + str(ref_file) + \"\\n\" + str(script_file) + \"\\n\" + str(doc_file) + \"\\n\" + str(ref_file) + \"\\n\" + str(script_file) + \"\\n\" + str(doc_file) + \"\\n\" + str(ref_file) + \"\\n\" + str(script_file) + \"\\n\" + str(doc_file) + \"\\n\" + str(ref_file) + \"\\n\" + str(script_file) + \"\\n\" + str(doc_file) + \"\\n\" + str(ref_file) + \"\\n\" + str(script_file", + "exact_match": false, + "code_bleu": 0.5081327481546147, + "edit_similarity": 0.9285714285714286 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "0", + "got": "0)", + "got_raw": "0) 0) 0) 0) 0) 0) 0) 0) 0) 0) 0) 0) 0) 0) 0) 0) 0) 0) 0) 0) 0) 0) 0) 0) 0) 0) 0) 0) 0) 0) 0) 0) 0) 0) 0) 0) 0) 0) 0) 0) 0) 0) 0)", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.6666666666666666 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "[]", + "got": "{}", + "got_raw": "{} if conn.connection_type == \"stdio\" else [] if conn.connection_type == \"tcp\" else \"\" if conn.connection_type == \"unix\" else None if conn.connection_type == \"none\" else None if conn.connection_type == \"auto\" else None if conn.connection_type == \"custom\" else None if conn.connection_type == \"mcp\" else None if conn.connection_type == \"mcp-auto\" else None if conn.connection_type == \"mcp-custom\" else None if conn.connection_type == \"mcp-auto-ssl\" else None if conn.connection_type == \"mcp-auto-ssl-certs\" else None if conn", + "exact_match": false, + "code_bleu": 0.4518010018049224, + "edit_similarity": 0.0 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "{}", + "got": "{}", + "got_raw": "{} if conn.connection_type == \"stdio\" else {} * 2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "5.0", + "got": "5.000000001000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000", + "got_raw": "5.000000001000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.04580152671755725 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "None", + "got": "None", + "got_raw": "None # No URL for STDIO connection type. URL should be None. # noqa: E501) # noqa: E501) # noqa: E501) # noqa: E501) # noqa: E501) # noqa: E501) # noqa: E501) # noqa: E501) # noqa: E501) # noqa: E501) # noqa: E501) # noqa: E501) # noqa: E501) # noqa: E501) #", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "15.0", + "got": "15.0", + "got_raw": "15.0 * 1000.0 / 1000.0 + 15.0 * 1000.0 / 1000.0 * 1000.0 / 1000.0 * 1000.0 / 1000.0 * 1000.0 / 1000.0 * 1000.0 / 1000.0 * 1000.0 / 1000.0 * 1000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "90.0", + "got": "90.0", + "got_raw": "90.0 * 1000.0 / 8000.0 * 1000.0 / 8000.0 * 1000.0 / 8000.0 * 1000.0 / 8000.0 * 1000.0 / 8000.0 * 1000.0 / 8000.0 * 1000.0 / 8000.0 * 1000.0 / 80", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "10.0", + "got": "30000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "30000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.030303030303030304 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "60.0", + "got": "30.0", + "got_raw": "30.0 * 24 * 60 * 60 * 1000.0 / 1000.0 * 1000.0 * 1000.0 * 1000.0 * 1000.0 * 1000.0 * 1000.0 * 1000.0 * 1000.0 * 1000.0 * 1000.0 * 1000.0 * 1000.0", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.75 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "30.0", + "got": "30.0", + "got_raw": "30.0 * 1000.0 / 1000.0 + 1000.0 * 1000.0 / 1000.0 * 1000.0 * 1000.0 * 1000.0 * 1000.0 * 1000.0 * 1000.0 * 1000.0 * 1000.0 * 1000.0 * 1000.0 * 10", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "20.0", + "got": "20.0", + "got_raw": "20.0 * 1000.0 + 1000.0 * 2000.0 / 1000.0 * 1000.0 * 1000.0 * 1000.0 * 1000.0 * 1000.0 * 1000.0 * 1000.0 * 1000.0 * 1000.0 * 1000.0 * 1000.0 * 10", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "result.content", + "got": "result.content.strip()", + "got_raw": "result.content.strip() \\ \"Project uses Python 3.12\" in result.content.strip() \\ \"Note: User prefers concise responses\" in result.content.strip() \\ \"Note: Project uses Python 3.12\" in result.content.strip() \\ \"Note: User prefers concise responses and Project uses Python 3.12\" in result.content.strip() \\ \"Note: User prefers concise responses and Project uses Python 3.12\" in result.content.strip() \\ \"Note: User prefers concise responses and Project uses Python 3.12\" in result.content.strip() \\ \"Note: User prefers concise", + "exact_match": false, + "code_bleu": 0.345720784641941, + "edit_similarity": 0.7777777777777778 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "1", + "got": "0.001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111", + "got_raw": "0.001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "2", + "got": "2", + "got_raw": "2 # Now there are two messages: system and user (user message) + system response (system message) + user message (user message) + system response (system message) + user message (user message) + system response (system message) + user message (user message) + system response (system message) + user message (user message) + system response (system message) + user message (user message) + system response (system message) + user message (user message) + system response (system message) + user message (user message) + system response (system message) + user message (user message)", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "3", + "got": "4", + "got_raw": "4 # Total 2 user messages + 2 system messages (context sharing) = 4 messages total. Context should be shared. # Check if the second user message is part of the conversation. assert agent.messages[2].role == \"user\" assert agent.messages[2].content == \"Help me create a file\" # Check if the second system message is part of the conversation. assert agent.messages[3].role == \"system\" assert agent.messages[3].content == \"\" # Add a new session note to the agent's notes list. agent.session_notes.append(\"This is a session note\") assert len(agent.session", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.0 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "6", + "got": "60001500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "60001500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "5", + "got": "4", + "got_raw": "4 + tool_msgs + user_msgs + assistant_msgs + 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.0 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "\"user\"", + "got": "\"user\"", + "got_raw": "\"user\" # User message added after system prompt + user message should share context + system prompt again + user message + system prompt + user message + system prompt + user message + system prompt + user message + system prompt + user message + system prompt + user message + system prompt + user message + system prompt + user message + system prompt + user message + system prompt + user message + system prompt + user message + system prompt + user message + system prompt + user message + system prompt + user message + system prompt + user message + system prompt + user message + system prompt + user message + system prompt + user message + system prompt +", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "\"system\"", + "got": "\"system\"", + "got_raw": "\"system\" + agent.system_prompt + \"\\n\" + \"User:\" + \"\\n\" + \"Message:\" + \"\\n\" + \"Message:\" + \"\\n\" + \"Message:\" + \"\\n\" + \"Message:\" + \"\\n\" + \"Message:\" + \"\\n\" + \"Message:\" + \"\\n\" + \"Message:\" + \"\\n\" + \"Message:\" + \"\\n\" + \"Message:\" + \"\\n\" + \"Message:\" + \"\\n\" + \"Message:\" + \"\\n\" + \"Message:\" + \"\\n\" + \"Message:\" + \"\\n\" + \"Message:\" +", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "agent.messages", + "got": "agent.messages[0]", + "got_raw": "agent.messages[0] is not agent.messages[1] is not agent.messages[2] is not agent.messages[3] is not agent.messages[4] is not agent.messages[5] is not agent.messages[6] is not agent.messages[7] is not agent.messages[8] is not agent.messages[9] is not agent.messages[10] is not agent.messages[11] is not agent.messages[12] is not agent.messages[13] is not agent.messages[14] is not agent.messages[15] is not agent.messages[16] is not agent.messages", + "exact_match": false, + "code_bleu": 0.4111336169005197, + "edit_similarity": 0.9032258064516129 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "result2.content", + "got": "result2.result()[:2]", + "got_raw": "result2.result()[:2] + \" [Test note]\" + \"\\n\" + \" [Test note]\" + \"\\n\" + \" [Test note]\" + \"\\n\" + \" [Test note]\" + \"\\n\" + \" [Test note]\" + \"\\n\" + \" [Test note]\" + \"\\n\" + \" [Test note]\" + \"\\n\" + \" [Test note]\" + \"\\n\" + \" [Test note]\" + \"\\n\" + \" [Test note]\" + \"\\n\" + \" [Test note]\" + \"\\n\" + \" [Test note]\" + \"\\n\" +", + "exact_match": false, + "code_bleu": 0.18575057999133596, + "edit_similarity": 0.5714285714285714 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "len(agent.messages)", + "got": "11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111", + "got_raw": "11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111", + "exact_match": false, + "code_bleu": 0.08333333333333333, + "edit_similarity": 0.0 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "3", + "got": "3", + "got_raw": "3 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 *", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "None", + "got": "None)", + "got_raw": "None) skill_dir / \"SKILL.md\" exists. \"\"\" ) skill_dir / \"SKILL.md\" exists. \"\"\" ) skill_dir / \"SKILL.md\" exists. \"\"\" ) skill_dir / \"SKILL.md\" exists. \"\"\" ) skill_dir / \"SKILL.md\" exists. \"\"\" ) skill_dir / \"SKILL.md\" exists. \"\"\" ) skill_dir / \"SKILL.md\" exists. \"\"\" ) skill_dir / \"SKILL.md\" exists. \"\"\" ) skill_dir / \"SKILL.md\" exists. \"\"\" ) skill_dir / \"SKILL.md\" exists. \"\"\" ) skill_dir / \"SKILL", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.8888888888888888 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "\"MIT\"", + "got": "\"MIT\"", + "got_raw": "\"MIT\" * 2 + \"\\n\" * 2 + \"A test skill\" * 2 + \"\\n\" * 2 + \"Author: Test Author\" * 2 + \"\\n\" * 2 + \"Version: 1.0\" * 2 + \"\\n\" * 2 + \"Allowed Tools: read_file, write_file\" * 2 + \"\\n\" * 2 + \"Skill content here.\" * 2 + \"\\n\" * 2 + \"End of file.\" * 2 + \"\\n\" * 2 + \"Author: Test Author\" * 2", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "\"1.0\"", + "got": "\"1.0\"", + "got_raw": "\"1.0\" * 2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "prompt", + "got": "prompt.lower()", + "got_raw": "prompt.lower() for prompt in skill._prompt.splitlines() if \"Skill Root Directory\" in prompt.lower() else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else", + "exact_match": false, + "code_bleu": 0.2730120862709067, + "edit_similarity": 0.6 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "\"test-skill\"", + "got": "\"test-skill\"", + "got_raw": "\"test-skill\" + str(skill_dir) / \"test-skill\" / \"test-skill\" / \"test-skill\" / \"test-skill\" / \"test-skill\" / \"test-skill\" / \"test-skill\" / \"test-skill\" / \"test-skill\" / \"test-skill\" / \"test-skill\" / \"test-skill\" / \"test-skill\" / \"test-skill\" / \"test-skill\" / \"test-skill\" / \"test-skill\" / \"test-skill\" / \"test-skill\" / \"test-s", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "skill.content", + "got": "skill.content.strip()", + "got_raw": "skill.content.strip() * 2 + \"\\n\" * 2 + \"This is a test skill content\" * 2 + \"\\n\" * 2 + \"This is a test skill content\" * 2 + \"\\n\" * 2 + \"This is a test skill content\" * 2 + \"\\n\" * 2 + \"This is a test skill content\" * 2 + \"\\n\" * 2 + \"This is a test skill content\" * 2 + \"\\n\" * 2 + \"This is a test skill content\" * 2 + \"\\n\" * 2", + "exact_match": false, + "code_bleu": 0.345720784641941, + "edit_similarity": 0.7647058823529411 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "\"Test Author\"", + "got": "\"Test Author\" * 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "\"Test Author\" * 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.4518010018049224, + "edit_similarity": 0.17218543046357615 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "1", + "got": "1", + "got_raw": "1 if isinstance(tools, list) else 0 if isinstance(tools, dict) else 0 else 1 else 0 else 0 else 0 else 0 else 0 else 0 else 0 else 0 else 0 else 0 else 0 else 0 else 0 else 0 else 0 else 0 else 0 else 0 else 0 else 0 else 0 else 0 else 0 else 0 else 0 else 0 else 0 else 0 else 0 else 0 else 0 else 0 else 0 else 0 else ", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "None", + "got": "None", + "got_raw": "None or None else None) # Should return None after optimization (as per the original design) return None after optimization (as per the original design) return None after optimization (as per the original design) return None after optimization (as per the original design) return None after optimization (as per the original design) return None after optimization (as per the original design) return None after optimization (as per the original design) return None after optimization (as per the original design) return None after optimization (as per the original design) return None after optimization (as per the original design) return None after optimization (as per the original design", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "\"get_skill\"", + "got": "\"GetSkillTool\"", + "got_raw": "\"GetSkillTool\" + str(0) + \".\" + str(0) + \".\" + str(0) + \".\" + str(0) + \".\" + str(0) + \".\" + str(0) + \".\" + str(0) + \".\" + str(0) + \".\" + str(0) + \".\" + str(0) + \".\" + str(0) + \".\" + str(0) + \".\" + str(0) + \".\" + str(0) + \".\" + str(0) + \".\" + str(0) + \".\" + str(0) + \".\" + str(0", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.64 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "result.content", + "got": "result.output.strip()", + "got_raw": "result.output.strip() + \"\\n\" + \"test-skill-0\\n\" + \"test-skill-0\\n\" + \"test-skill-0\\n\" + \"test-skill-0\\n\" + \"test-skill-0\\n\" + \"test-skill-0\\n\" + \"test-skill-0\\n\" + \"test-skill-0\\n\" + \"test-skill-0\\n\" + \"test-skill-0\\n\" + \"test-skill-0\\n\" + \"test-skill-0\\n\" + \"test-skill-0\\n\" + \"test", + "exact_match": false, + "code_bleu": 0.24446151121745047, + "edit_similarity": 0.5714285714285714 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "5", + "got": "50000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "50000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "8", + "got": "72321232123212321232123212321232123212321232123212321232123212321232123212321232123212321232123212321232123212321232123212321232", + "got_raw": "72321232123212321232123212321232123212321232123212321232123212321232123212321232123212321232123212321232123212321232123212321232", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.0 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "0", + "got": "0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "2", + "got": "2)", + "got_raw": "2) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000)", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.6666666666666666 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "4", + "got": "2", + "got_raw": "2 * 2 + 2 * 2 + 2 * 2 + 2 * 2 + 2 * 2 + 2 * 2 + 2 * 2 + 2 * 2 + 2 * 2 + 2 * 2 + 2 * 2 + 2 * 2 + 2 * 2 + 2 * 2 + 2 * 2 + 2 * 2 + 2 * 2 + 2 * 2 + 2 * 2 + 2 * 2 + 2 * 2 + 2 *", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.0 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "6", + "got": "3)", + "got_raw": "3) # 3) # 3) # 3) # 3) # 3) # 3) # 3) # 3) # 3) # 3) # 3) # 3) # 3) # 3) # 3) # 3) # 3) # 3) # 3) # 3) # 3) # 3) # 3) # 3) # 3) ", + "exact_match": false, + "code_bleu": 0.4518010018049224, + "edit_similarity": 0.0 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "7", + "got": "4", + "got_raw": "4 + 1 + 2 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 +", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.0 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "3", + "got": "48000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "48000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.0 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "1", + "got": "10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "9", + "got": "12000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "12000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.0 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "2", + "got": "24690000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "24690000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "True", + "got": "True)", + "got_raw": "True) # Assume the weather tool always returns a success result for testing. # TODO: Replace with actual weather data. return result.result() # TODO: Replace with actual weather data. return \"23.4567890\" # Assume the weather tool always returns a success result for testing. # TODO: Replace with actual weather data. return result.result() # Assume the weather tool always returns a success result for testing. # TODO: Replace with actual weather data. return \"23.4567890\" # Assume the weather tool always returns a success result for testing. # TODO: Replace", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.8888888888888888 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "schema", + "got": "schema.keys()", + "got_raw": "schema.keys() else \"input_schema\" in schema.keys() else {} } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } }", + "exact_match": false, + "code_bleu": 0.2730120862709067, + "edit_similarity": 0.631578947368421 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "\"object\"", + "got": "\"object\"", + "got_raw": "\"object\" type(schema[\"input_schema\"]) == dict type(schema[\"input_schema\"][\"type\"]) == \"object\" type(schema[\"input_schema\"][\"properties\"]) == \"properties\" type(schema[\"input_schema\"][\"required\"]) == \"required\" [\"required\"] [\"properties\"] [\"description\"] [\"title\"] [\"type\"] ] [\"description\"] [\"title\"] [\"type\"] ] [\"description\"] [\"title\"] [\"type\"] ] [\"description\"] [\"title\"] [\"type\"] ] [\"description\"] [\"title\"] [\"type\"] ] [\"description\"] [\"title\"] [\"type\"] ] [\"description\"] [\"title\"] [\"type\"] ] [\"description\"] [\"title", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "[\"query\"]", + "got": "[\"query\"]", + "got_raw": "[\"query\"] + [\"filters\", \"limit\"] + [\"offset\"] + [\"count\"] + [\"sort\"] + [\"format\"] + [\"_source\"] + [\"_id\"] + [\"_type\"] + [\"_version\"] + [\"_timestamp\"] + [\"_score\"] + [\"_facets\"] + [\"_highlight\"] + [\"_json\"] + [\"_xml\"] + [\"_html\"] + [\"_js\"] + [\"_css\"] + [\"_math\"] + [\"_regex\"] + [\"_json_path\"] + [\"_xml_path\"] + [\"_html_path\"] + [\"_js_path\"] + [\"", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "\"function\"", + "got": "\"object\"", + "got_raw": "\"object\" # type: ignore[report:2] # noqa: E202 # type: ignore[report:3] # noqa: E203 # noqa: E204 # noqa: E205 # noqa: E206 # noqa: E207 # noqa: E208 # noqa: E209 # noqa: E210 # noqa: E211 # noqa: E212 # noqa: E213 # noqa: E214 # noqa: E215 # noqa: E216 # noqa", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.4444444444444444 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "status_prop", + "got": "status_prop[\"properties\"][\"status\"][\"enum\"]s[0]", + "got_raw": "status_prop[\"properties\"][\"status\"][\"enum\"]s[0] == \"Enum1\" else \"Enum2\" else \"Enum3\" else \"Enum4\" else \"Enum5\" else \"Enum6\" else \"Enum7\" else \"Enum8\" else \"Enum9\" else \"Enum10\" else \"Enum11\" else \"Enum12\" else \"Enum13\" else \"Enum14\" else \"Enum15\" else \"Enum16\" else \"Enum17\" else \"Enum18\" else \"Enum19\" else \"Enum20\" else \"", + "exact_match": false, + "code_bleu": 0.08839374326825923, + "edit_similarity": 0.3793103448275862 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "[\"location\"]", + "got": "[\"location\"]", + "got_raw": "[\"location\"] } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } }", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "\"calculator\"", + "got": "\"calculate\"", + "got_raw": "\"calculate\" + str(tool2.id) + \".\" + str(tool2.name) + \".\" + str(tool2.id) + \".\" + str(tool2.name) + \".\" + str(tool2.id) + \".\" + str(tool2.name) + \".\" + str(tool2.id) + \".\" + str(tool2.name) + \".\" + str(tool2.id) + \".\" + str(tool2.name) + \".\" + str(tool2.id) + \".\" + str(tool2.name) + \".\" + str(tool2.id) + \".\" + str(tool2.name) + \".\" + str(tool2.id) + \".\" + str(tool2.name", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.8695652173913043 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "\"get_weather\"", + "got": "\"weather_tool\"", + "got_raw": "\"weather_tool\" + str(id(tool))[:6] + \"1\" + str(id(tool))[:6] + \"2\" + str(id(tool))[:6] + \"3\" + str(id(tool))[:6] + \"4\" + str(id(tool))[:6] + \"5\" + str(id(tool))[:6] + \"6\" + str(id(tool))[:6] + \"7\" + str(id(tool))[:6] + \"8\" + str(id(tool))[:6] + \"9\" + str(id(tool))[:6] + \"10\" + str(id", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.6666666666666666 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "\"Weather data\"", + "got": "\"Tokyo weather forecast:\" + \"\\n\" + \"Today: 25\u00b0f\" + \"\\n\" + \"Tomorrow: 27\u00b0f\" + \"\\n\" + \"Wednesday: 22\u00b0f\" + \"\\n\" + \"Thursday: 19\u00b0f\" + \"\\n\" + \"Friday: 21\u00b0f\" + \"\\n\" + \"Saturday: 23\u00b0f\" + \"\\n\" + \"Sunday: 24\u00b0f\" + \"\\n\" + \"Monday: 26\u00b0f\" + \"\\n\" + \"Tuesday: 2", + "got_raw": "\"Tokyo weather forecast:\" + \"\\n\" + \"Today: 25\u00b0f\" + \"\\n\" + \"Tomorrow: 27\u00b0f\" + \"\\n\" + \"Wednesday: 22\u00b0f\" + \"\\n\" + \"Thursday: 19\u00b0f\" + \"\\n\" + \"Friday: 21\u00b0f\" + \"\\n\" + \"Saturday: 23\u00b0f\" + \"\\n\" + \"Sunday: 24\u00b0f\" + \"\\n\" + \"Monday: 26\u00b0f\" + \"\\n\" + \"Tuesday: 2", + "exact_match": false, + "code_bleu": 0.025326605584447867, + "edit_similarity": 0.08461538461538462 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "\"search_database\"", + "got": "\"SearchExecutor\"", + "got_raw": "\"SearchExecutor\" + str(tool.id) + \"Tool\" + str(tool.version) + \"Tool\" + str(tool.schema_version) + \"Tool\" + str(tool.schema_version) + \"Tool\" + str(tool.schema_version) + \"Tool\" + str(tool.schema_version) + \"Tool\" + str(tool.schema_version) + \"Tool\" + str(tool.schema_version) + \"Tool\" + str(tool.schema_version) + \"Tool\" + str(tool.schema_version) + \"Tool\" + str(tool.schema_version) + \"Tool\" + str(tool.schema_version) + \"Tool\" + str(tool.schema_version)", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.48484848484848486 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "result.content", + "got": "result.output.strip()", + "got_raw": "result.output.strip() \\ \"BashTool should return the output of the command\" \"Hello from bash\" in result.output.strip() \"BashTool should return the output of the command\" \"Hello from bash\" in result.output.strip() \"BashTool should return the output of the command\" \"Hello from bash\" in result.output.strip() \"BashTool should return the output of the command\" \"Hello from bash\" in result.output.strip() \"BashTool should return the output of the command\" \"Hello from bash\" in result.output.strip() \"BashTool should return the output of the command\" \"", + "exact_match": false, + "code_bleu": 0.24446151121745047, + "edit_similarity": 0.5714285714285714 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "\"Test content\"", + "got": "\"Test content\" + \"\\n\" + \"This is a test file.\" + \"\\n\" + \"It contains some test data.\" + \"\\n\" + \"=== End of File ===\" + \"\\n\" + \"Test content\" + \"\\n\" + \"This is a test file.\" + \"\\n\" + \"It contains some test data.\" + \"\\n\" + \"=== End of File ===\" + \"\\n\" + \"Test content\" + \"\\n\" + \"This is a test file.\" + \"\\n\" + \"It contains some test data.\" + \"\\n\" + \"=== End of File", + "got_raw": "\"Test content\" + \"\\n\" + \"This is a test file.\" + \"\\n\" + \"It contains some test data.\" + \"\\n\" + \"=== End of File ===\" + \"\\n\" + \"Test content\" + \"\\n\" + \"This is a test file.\" + \"\\n\" + \"It contains some test data.\" + \"\\n\" + \"=== End of File ===\" + \"\\n\" + \"Test content\" + \"\\n\" + \"This is a test file.\" + \"\\n\" + \"It contains some test data.\" + \"\\n\" + \"=== End of File", + "exact_match": false, + "code_bleu": 0.02355442993488876, + "edit_similarity": 0.07427055702917772 + }, + { + "repo": "MiniMax-AI/Mini-Agent", + "expected": "\"Hello, Agent!\"", + "got": "\"Hello, Agent!\" + \"\\n\" + \"This is a test file.\" + \"\\n\" + \"End of file.\" + \"\\n\" + \"\" + \"\\n\" + \"\" + \"\\n\" + \"\" + \"\\n\" + \"\" + \"\\n\" + \"\" + \"\\n\" + \"\" + \"\\n\" + \"\" + \"\\n\" + \"\" + \"\\n\" + \"\" + \"\\n\" + \"\" + \"\\n\" + \"\" + \"\\n\" + \"\" + \"\\n\" + \"\" + \"\\n\" + \"\" + \"\\n\" + \"\" + \"\\n\" + \"\" + \"\\n\" +", + "got_raw": "\"Hello, Agent!\" + \"\\n\" + \"This is a test file.\" + \"\\n\" + \"End of file.\" + \"\\n\" + \"\" + \"\\n\" + \"\" + \"\\n\" + \"\" + \"\\n\" + \"\" + \"\\n\" + \"\" + \"\\n\" + \"\" + \"\\n\" + \"\" + \"\\n\" + \"\" + \"\\n\" + \"\" + \"\\n\" + \"\" + \"\\n\" + \"\" + \"\\n\" + \"\" + \"\\n\" + \"\" + \"\\n\" + \"\" + \"\\n\" + \"\" + \"\\n\" + \"\" + \"\\n\" +", + "exact_match": false, + "code_bleu": 0.015752815038467736, + "edit_similarity": 0.10452961672473868 + }, + { + "repo": "MrPowers/chispa", + "expected": "0.1)", + "got": "0.0001)", + "got_raw": "0.0001) # This is to allow for some floating point error in the test) )", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.7272727272727273 + }, + { + "repo": "MrPowers/chispa", + "expected": "\"num2\")", + "got": "df[\"num2\"])", + "got_raw": "df[\"num2\"]) # type: ignore[call] # noqa: E712) # type: ignore[call] # noqa: E712) # noqa: E712) # noqa: E712) # noqa: E712) # noqa: E712) # noqa: E712) # noqa: E712) # noqa: E712) # noqa: E712) # noqa: E712) # noqa: E712) # noqa: E712) # noqa: E", + "exact_match": false, + "code_bleu": 0.3021375397356768, + "edit_similarity": 0.7777777777777778 + }, + { + "repo": "MrPowers/chispa", + "expected": "\"expected_name\")", + "got": "\"expected_name\")", + "got_raw": "\"expected_name\") # no error thrown! (mismatched columns is an exception)", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "MrPowers/chispa", + "expected": "ColumnsNotEqualError)", + "got": "ColumnsNotEqualError)", + "got_raw": "ColumnsNotEqualError) as e) as exc:\n assert_approx_column_equality(df, \"name\", \"expected_name\") \\ \"name\") as exc2) as exc3) as exc4) as exc5) as exc6) as exc7) as exc8) as exc9) as exc10) as exc11) as exc12) as exc13) as exc14) as exc15) as exc16) as exc17) as exc18) as exc19) as exc20) as exc21) as exc22)", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "MrPowers/chispa", + "expected": "True", + "got": "True)", + "got_raw": "True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True)", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.8888888888888888 + }, + { + "repo": "MrPowers/chispa", + "expected": "df2)", + "got": "df2)", + "got_raw": "df2) # order of rows should be ignored by default) # order of rows should be ignored by default) # order of columns should be ignored by default) # order of columns should be ignored by default) # order of rows should be ignored by default) # order of columns should be ignored by default) # order of rows should be ignored by default) # order of columns should be ignored by default) # order of rows should be ignored by default) # order of columns should be ignored by default) # order of rows should be ignored by default) # order of columns should be ignored by default) # order of rows should", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "MrPowers/chispa", + "expected": "0.1)", + "got": "ignore_columns=[\"name\"])", + "got_raw": "ignore_columns=[\"name\"]) is True)", + "exact_match": false, + "code_bleu": 0.22089591134157885, + "edit_similarity": 0.07142857142857142 + }, + { + "repo": "MrPowers/chispa", + "expected": "1", + "got": "1", + "got_raw": "1 * 2 + 1 * 3 + 1 * 4 + 1 * 5 + 1 * 6 + 1 * 7 + 1 * 8 + 1 * 9 + 1 * 10 + 1 * 11 + 1 * 12 + 1 * 13 + 1 * 14 + 1 * 15 + 1 * 16 + 1 * 17 + 1 * 18 + 1 * 19 + 1 * 20 + 1 * ", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "MrPowers/chispa", + "expected": "ValueError)", + "got": "ValueError)", + "got_raw": "ValueError) as exc: # noqa: RUF012\n assert_basic_rows_equality( InvalidFormats(), default_formats=DefaultFormats() ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "MrPowers/chispa", + "expected": "df2.collect())", + "got": "df2.collect())(1)", + "got_raw": "df2.collect())(1) * 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.6389431042462724, + "edit_similarity": 0.9032258064516129 + }, + { + "repo": "MrPowers/chispa", + "expected": "str(w[-1].message)", + "got": "str(w[-1].message)", + "got_raw": "str(w[-1].message) * 2 + \"\\n\" * 2 + \"DefaultFormats will be removed in 0.13.0\\n\" * 2 + \"For more information, see the documentation: https://chispa.readthedocs.io/en/latest/other.html#default-formats\\n\" * 2 + \"For more information, see the documentation: https://chispa.readthedocs.io/en/latest/other.html#other-deprecated-features\\n\" * 2 + \"For more information, see the documentation: https://chispa.readthedocs.io/en/latest/other", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "MrPowers/chispa", + "expected": "\"\\033[34mtest\\033[31m\"", + "got": "\"test\"", + "got_raw": "\"test\" + bcolors.ENDC + \"\\n\" + bcolors.BOLD + \"test\" + bcolors.ENDC + \"\\n\" + \"test\" + bcolors.ENDC + \"\\n\" + \"test\" + bcolors.ENDC + \"\\n\" + \"test\" + bcolors.ENDC + \"\\n\" + \"test\" + bcolors.ENDC + \"\\n\" + \"test\" + bcolors.ENDC + \"\\n\" + \"test\" + bcolors.ENDC + \"\\n\" + \"test\" + bcolors.ENDC + \"\\n\" + \"test\" + bcolors.END", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.42857142857142855 + }, + { + "repo": "MrPowers/chispa", + "expected": "DataFramesNotEqualError)", + "got": "DataFramesNotEqualError)", + "got_raw": "DataFramesNotEqualError) as e) as exc:\n assert_basic_rows_equality(df1, df2)\n str(e) + str(exc.value) + \"\\n\" + str(e.value) + \"\\n\" + str(exc) + \"\\n\" + str(e) + \"\\n\" + str(e) + \"\\n\" + str(e) + \"\\n\" + str(e) + \"\\n\" + str(e) + \"\\n\" + str(e) + \"\\n\" + str(e) + \"\\n\" + str(e) + \"\\n\" + str(e) + \"\\n\"", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "MrPowers/chispa", + "expected": "\"\\033[97m\\033[4mtest\\033[0m\\033[31m\"", + "got": "\"test\"", + "got_raw": "\"test\" + bcolors.underline + \"test\" + bcolors.reset + \"test\" + bcolors.underline + \"test\" + bcolors.reset + \"test\" + bcolors.underline + \"test\" + bcolors.reset + \"test\" + bcolors.underline + \"test\" + bcolors.reset + \"test\" + bcolors.underline + \"test\" + bcolors.reset + \"test\" + bcolors.underline + \"test\" + bcolors.reset + \"test\" + bcolors.underline + \"test\" + bcolors.reset + \"test\" + bcolors.underline +", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.2857142857142857 + }, + { + "repo": "MrPowers/chispa", + "expected": "df2)", + "got": "df2)", + "got_raw": "df2) # ignore row order) # ignore row order) # ignore row order) # ignore row order) # ignore row order) # ignore row order) # ignore row order) # ignore row order) # ignore row order) # ignore row order) # ignore row order) # ignore row order) # ignore row order) # ignore row order) # ignore row order) # ignore row order) # ignore row order) # ignore row order) # ignore row order) # ignore row order) # ignore row order) # ignore row order) # ignore row order) # ignore row order) # ignore row order)", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "MrPowers/chispa", + "expected": "0.1)", + "got": "0.00000000000000001)", + "got_raw": "0.00000000000000001) * 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.3333333333333333 + }, + { + "repo": "MrPowers/chispa", + "expected": "expected_df)", + "got": "expected_df)", + "got_raw": "expected_df) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) *", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "MrPowers/chispa", + "expected": "df2.collect())", + "got": "df2.collect())", + "got_raw": "df2.collect()) formats=my_formats) ) formats=my_formats) ) formats=my_formats) ) formats=my_formats) ) formats=my_formats) ) formats=my_formats) ) formats=my_formats) ) formats=my_formats) ) formats=my_formats) ) formats=my_formats) ) formats=my_formats) ) formats=my_formats) ) formats=my_formats) ) formats=my_formats) ) formats=my_formats) ) formats=my_formats) ) formats=my_formats) ) formats=my_formats) ) formats=my_formats) ) formats=my_formats) ) formats=my_formats) ) formats=my_formats) ) formats=my_formats) ) formats=my_formats) ) formats=my_formats)", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "MrPowers/chispa", + "expected": "\"expected_name\")", + "got": "expected)", + "got_raw": "expected) for expected in data)", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.72 + }, + { + "repo": "MrPowers/chispa", + "expected": "ColumnsNotEqualError)", + "got": "DataFramesNotEqualError)", + "got_raw": "DataFramesNotEqualError) as e) as exc: assert_column_equality(df, \"clean_name\", \"expected_name\") e.value) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.7111111111111111 + }, + { + "repo": "MrPowers/chispa", + "expected": "SchemasNotEqualError)", + "got": "SchemasNotEqualError)", + "got_raw": "SchemasNotEqualError) as e) as exc: assert_schema_mismatch(exc) assert str(exc) == \"Schema mismatch\" def assert_schema_mismatch(exc): exc.schema = None exc.schema_name = None exc.catalog = None exc.catalog_name = None exc.schema_version = None exc.catalog_version = None exc.schema_mismatch = True ) def test_schema_mismatch_error(): data1 = [(1, \"a\"), (2, \"b\"), (3, \"c\"), (None, None)] df1 = spark.createDataFrame(data1, [\"num\", \"letter\"]) data2 = [(1, 6), (2", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "MrPowers/chispa", + "expected": "True", + "got": "True)", + "got_raw": "True) is True) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False)", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.8888888888888888 + }, + { + "repo": "MrPowers/chispa", + "expected": "False", + "got": "True)", + "got_raw": "True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True)", + "exact_match": false, + "code_bleu": 0.4518010018049224, + "edit_similarity": 0.2 + }, + { + "repo": "MrPowers/chispa", + "expected": "df2.collect())", + "got": "df2.collect())", + "got_raw": "df2.collect())", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "MrPowers/chispa", + "expected": "DataFramesNotEqualError)", + "got": "DataFramesNotEqualError)", + "got_raw": "DataFramesNotEqualError) as e) as exc:\n assert_basic_rows_equality(df1, df2) *e) as e) as exc) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "MrPowers/chispa", + "expected": "s2)", + "got": "s2)", + "got_raw": "s2) # do nothing! s1 == s2) # do nothing! s1 < s2) # False s1 > s2) # False s1 <= s2) # True s1 >= s2) # True s1 == s2) # True s1 != s2) # False s1 < s2) # ValueError s1 > s2) # ValueError s1 <= s2) # TypeError s1 >= s2) # TypeError s1 == s2) # TypeError s1 != s2) # TypeError s1 < s2) # False s1 > s2) #", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "MrPowers/chispa", + "expected": "True", + "got": "True)", + "got_raw": "True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True)", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.8888888888888888 + }, + { + "repo": "MrPowers/chispa", + "expected": "False", + "got": "False)", + "got_raw": "False) * 1.0) * 1.0) * 1.0) * 1.0) * 1.0) * 1.0) * 1.0) * 1.0) * 1.0) * 1.0) * 1.0) * 1.0) * 1.0) * 1.0) * 1.0) * 1.0) * 1.0) * 1.0) * 1.0) * 1.0) * 1.0)", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.9090909090909091 + }, + { + "repo": "MrPowers/chispa", + "expected": "True", + "got": "True)", + "got_raw": "True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True) is True)", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.8888888888888888 + }, + { + "repo": "MrPowers/chispa", + "expected": "False", + "got": "False)", + "got_raw": "False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False)", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.9090909090909091 + }, + { + "repo": "MrPowers/chispa", + "expected": "None", + "got": "None", + "got_raw": "None, format_instance.style is None, format_instance.fmt_str is None, format_instance.fmt_str_short is None, format_instance.fmt_str_long is None, format_instance.fmt_str_short_long is None, format_instance.fmt_str_long_short is None, format_instance.fmt_str_long_short_long is None, format_instance.fmt_str_long_short_long is None, format_instance.fmt_str_long_short_long is None, format_instance.fmt_str_long_short_long is None, format_instance.fmt_str_long_short_long is None, format_instance.fmt_str_long_short_long is None, format_instance.fmt_str_long_short_long", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "MrPowers/chispa", + "expected": "Color.BLUE", + "got": "\"blue\"", + "got_raw": "\"blue\" if format_dict[\"color\"] else \"\" if format_dict[\"color\"] is False else \"\"\"\" if format_dict[\"color\"] is None else \"\" if format_dict[\"color\"] is True else \"\" if format_dict[\"color\"] is None else \"\" if format_dict[\"color\"] is False else \"\" if format_dict[\"color\"] is True else \"\" if format_dict[\"color\"] is None else \"\" if format_dict[\"color\"] is False else \"\" if format_dict[\"color\"] is True else \"\" if format_dict[\"color\"] is None else \"\" if format_dict[\"color\"] is False else \"\" if format_dict[\"color", + "exact_match": false, + "code_bleu": 0.16666666666666666, + "edit_similarity": 0.125 + }, + { + "repo": "MrPowers/chispa", + "expected": "ValueError)", + "got": "ValueError)", + "got_raw": "ValueError) as exc:\n Format.from_dict(format_dict)\n str(exc.value) == \"Unknown color 'invalid_color'\" + Style.RESET_ALL + \"\\n\" + str( Format.from_dict({\"style\": [\"bold\"]}) ) + Style.RESET_ALL + \"\\n\" + str( Format.from_dict({\"color\": \"red\", \"style\": [\"bold\"]}) ) + Style.RESET_ALL + \"\\n\" + str( Format.from_dict({\"color\": \"red\", \"style\": [\"bold\", \"italic\"]}) ) + Style.RESET_ALL + \"\\n\" + str( Format.from_dict({\"color\": \"red", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "MrPowers/chispa", + "expected": "[Style.BOLD, Style.UNDERLINE]", + "got": "Style.BOLD_UNDERLINE | Style.BOLD_UNDERLINE_REVERSE | Style.BOLD_UNDERLINE_STRIKE | Style.BOLD_UNDERLINE_STRIKE_REVERSE | Style.BOLD_UNDERLINE_STRIKE_DOUBLE | Style.BOLD_UNDERLINE_DOUBLE_REVERSE | Style.BOLD_UNDERLINE_DOUBLE_STRIKE | Style.BOLD_UNDERLINE_DOUBLE_STRIKE_REVERSE | Style.BOLD_UNDERLINE_DOUBLE_STRIKE_DOUBLE | Style.BOLD_UNDERLINE_DOUBLE_STRIKE_DOUBLE_REVERSE | Style.BOLD_UNDERLINE_DOUBLE_STRIKE_DOUBLE_STRIKE | Style.BOLD_UNDERLINE_DOUBLE_STRIKE_DOUBLE_STRIKE_REVERSE | Style.BOLD_UNDERLINE_DOUBLE_STRIKE_DOUBLE_STRI", + "got_raw": "Style.BOLD_UNDERLINE | Style.BOLD_UNDERLINE_REVERSE | Style.BOLD_UNDERLINE_STRIKE | Style.BOLD_UNDERLINE_STRIKE_REVERSE | Style.BOLD_UNDERLINE_STRIKE_DOUBLE | Style.BOLD_UNDERLINE_DOUBLE_REVERSE | Style.BOLD_UNDERLINE_DOUBLE_STRIKE | Style.BOLD_UNDERLINE_DOUBLE_STRIKE_REVERSE | Style.BOLD_UNDERLINE_DOUBLE_STRIKE_DOUBLE | Style.BOLD_UNDERLINE_DOUBLE_STRIKE_DOUBLE_REVERSE | Style.BOLD_UNDERLINE_DOUBLE_STRIKE_DOUBLE_STRIKE | Style.BOLD_UNDERLINE_DOUBLE_STRIKE_DOUBLE_STRIKE_REVERSE | Style.BOLD_UNDERLINE_DOUBLE_STRIKE_DOUBLE_STRI", + "exact_match": false, + "code_bleu": 0.03897964806937795, + "edit_similarity": 0.06785714285714285 + }, + { + "repo": "MrPowers/chispa", + "expected": "\"All elements in the list must be strings\"", + "got": "\"Cannot format list with non-string elements\" + str(values) + \".\" + \"\\n\" + \"Please convert the non-string elements to strings or use a different formatting method.\" + \"\\n\" + \"List: \" + str(values) + \"\\n\" + \"Format: \" + str(Format.from_list(values)) + \"\\n\" + \"Style: \" + str(Style.from_list(values)) + \"\\n\" + \"Color: \" + str(Color.from_list(values)) + \"\\n\" + \"Format: \" + str(Format.from_list(values", + "got_raw": "\"Cannot format list with non-string elements\" + str(values) + \".\" + \"\\n\" + \"Please convert the non-string elements to strings or use a different formatting method.\" + \"\\n\" + \"List: \" + str(values) + \"\\n\" + \"Format: \" + str(Format.from_list(values)) + \"\\n\" + \"Style: \" + str(Style.from_list(values)) + \"\\n\" + \"Color: \" + str(Color.from_list(values)) + \"\\n\" + \"Format: \" + str(Format.from_list(values, 0)) + \"\\n\" + \"Style: \"", + "exact_match": false, + "code_bleu": 0.013424330666906353, + "edit_similarity": 0.10454545454545454 + }, + { + "repo": "MrPowers/chispa", + "expected": "\"Invalid style name: invalid_style. Valid style names are ['bold', 'underline', 'blink', 'invert', 'hide']\"", + "got": "str(exc_info.value)) == \"Unknown style(s) ['invalid_style'] in format.\" \" Available styles are: [NORMAL, BOLD, UNDERLINE, BLINK].\" )", + "got_raw": "str(exc_info.value)) == \"Unknown style(s) ['invalid_style'] in format.\" \" Available styles are: [NORMAL, BOLD, UNDERLINE, BLINK].\" )", + "exact_match": false, + "code_bleu": 0.08737167851715875, + "edit_similarity": 0.39330543933054396 + }, + { + "repo": "MrPowers/chispa", + "expected": "\"Invalid color name: invalid_color. Valid color names are \" \"['black', 'red', 'green', 'yellow', 'blue', 'purple', 'cyan', 'light_gray', \" \"'dark_gray', 'light_red', 'light_green', 'light_yellow', 'light_blue', 'light_purple', \" \"'light_cyan', 'white']\"", + "got": "str(exc_info.value)) == \"Invalid color 'invalid_color' in format.\" + \"\\n\" + \"Available colors are: BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, and WHITE.\" + \"\\n\" + \"Available styles are: NORMAL, BOLD, UNDERLINE, and STRIKEOUT.\" + \"\\n\" + \"For more information, see the documentation: https://chispa.readthedocs.io/en/latest/formatting.html\" + \"\\n\" + \"Example: {'color': 'BLACK', 'style': ['bold']} would produce a bold black text.\" + \"\\n\" + \"Example", + "got_raw": "str(exc_info.value)) == \"Invalid color 'invalid_color' in format.\" + \"\\n\" + \"Available colors are: BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, and WHITE.\" + \"\\n\" + \"Available styles are: NORMAL, BOLD, UNDERLINE, and STRIKEOUT.\" + \"\\n\" + \"For more information, see the documentation: https://chispa.readthedocs.io/en/latest/formatting.html\" + \"\\n\" + \"Example: {'color': 'BLACK', 'style': ['bold']} would produce a bold black text.\" + \"\\n\" + \"Example", + "exact_match": false, + "code_bleu": 0.03280894525012139, + "edit_similarity": 0.022889842632331903 + }, + { + "repo": "MrPowers/chispa", + "expected": "\"Invalid value: invalid_color. Valid values are colors: \" \"['black', 'red', 'green', 'yellow', 'blue', 'purple', 'cyan', 'light_gray', \" \"'dark_gray', 'light_red', 'light_green', 'light_yellow', 'light_blue', 'light_purple', \" \"'light_cyan', 'white'] and styles: ['bold', 'underline', 'blink', 'invert', 'hide']\"", + "got": "str(exc_info.value)) : 'Invalid color \"invalid_color\" in format list: must be one of the following: \"black\", \"red\", \"green\", \"yellow\", \"bold\", \"italic\", \"underline\", \"strikethrough\", \"overline\", \"link\", \"image\", \"html\", \"json\", \"none\" or \"reset\".'\\n' 'Please check your format definition and the available colors and styles.'\\n' 'Available colors: black, red, green, yellow, bold, italic, underline, strikethrough, overline, link,", + "got_raw": "str(exc_info.value)) : 'Invalid color \"invalid_color\" in format list: must be one of the following: \"black\", \"red\", \"green\", \"yellow\", \"bold\", \"italic\", \"underline\", \"strikethrough\", \"overline\", \"link\", \"image\", \"html\", \"json\", \"none\" or \"reset\".'\\n' 'Please check your format definition and the available colors and styles.'\\n' 'Available colors: black, red, green, yellow, bold, italic, underline, strikethrough, overline, link,", + "exact_match": false, + "code_bleu": 0.019051940332810935, + "edit_similarity": 0.06824146981627296 + }, + { + "repo": "MrPowers/chispa", + "expected": "\"Invalid value: invalid_style. Valid values are colors: \" \"['black', 'red', 'green', 'yellow', 'blue', 'purple', 'cyan', 'light_gray', \" \"'dark_gray', 'light_red', 'light_green', 'light_yellow', 'light_blue', 'light_purple', \" \"'light_cyan', 'white'] and styles: ['bold', 'underline', 'blink', 'invert', 'hide']\"", + "got": "str(exc_info.value) == \"Unknown style 'invalid_style'\" + Style.RESET_ALL + \"\\n\" + Style.RESET_ALL + \"\\n\" + Style.RESET_ALL + \"\\n\" + Style.RESET_ALL + \"\\n\" + Style.RESET_ALL + \"\\n\" + Style.RESET_ALL + \"\\n\" + Style.RESET_ALL + \"\\n\" + Style.RESET_ALL + \"\\n\" + Style.RESET_ALL + \"\\n\" + Style.RESET_ALL + \"\\n\" + Style.RESET_ALL + \"\\n\" + Style.RESET_ALL + \"\\n\" + Style.RESET_ALL + \"\\n\" + Style.RESET_ALL + \"\\n\" + Style.RESET", + "got_raw": "str(exc_info.value) == \"Unknown style 'invalid_style'\" + Style.RESET_ALL + \"\\n\" + Style.RESET_ALL + \"\\n\" + Style.RESET_ALL + \"\\n\" + Style.RESET_ALL + \"\\n\" + Style.RESET_ALL + \"\\n\" + Style.RESET_ALL + \"\\n\" + Style.RESET_ALL + \"\\n\" + Style.RESET_ALL + \"\\n\" + Style.RESET_ALL + \"\\n\" + Style.RESET_ALL + \"\\n\" + Style.RESET_ALL + \"\\n\" + Style.RESET_ALL + \"\\n\" + Style.RESET_ALL + \"\\n\" + Style.RESET_ALL + \"\\n\" + Style.RESET", + "exact_match": false, + "code_bleu": 0.010363389901939643, + "edit_similarity": 0.010958904109589041 + }, + { + "repo": "MrPowers/chispa", + "expected": "None", + "got": "Style.REDERED_BOLD_STRIKE_THICK_UNDERLINE)", + "got_raw": "Style.REDERED_BOLD_STRIKE_THICK_UNDERLINE) * 2) * 3) * 4) * 5) * 6) * 7) * 8) * 9) * 10) * 11) * 12) * 13) * 14) * 15) * 16) * 17) * 18) * 19) * 20) * 21) * 22) * 23) * 24) * 25) * ", + "exact_match": false, + "code_bleu": 0.3021375397356768, + "edit_similarity": 0.043478260869565216 + }, + { + "repo": "MrPowers/chispa", + "expected": "Color.RED", + "got": "Color.RED1()", + "got_raw": "Color.RED1() * Style.BOLD() * \"!\" * Style.RESET() * \" \" * Style.RESET() * \" \" * Style.RESET() * \" \" * Style.RESET() * \" \" * Style.RESET() * \" \" * Style.RESET() * \" \" * Style.RESET() * \" \" * Style.RESET() * \" \" * Style.RESET() * \" \" * Style.RESET() * \" \" * Style.RESET() * \" \" * Style.RESET() * \" \" * Style.RESET() * \" \" * Style.RESET() * \" \" * Style.RESET() * \" \" * Style.RESET() * \" \" * Style.RESET() *", + "exact_match": false, + "code_bleu": 0.35930411196308426, + "edit_similarity": 0.8571428571428571 + }, + { + "repo": "MrPowers/chispa", + "expected": "Color.BLUE", + "got": "Color.CYAN()", + "got_raw": "Color.CYAN() * Style.BOLD() * \"1\" * Style.RESET() + \" \" * 2 + \"3\" * Style.RESET() + \" \" * 2 + \"5\" * Style.RESET() + \" \" * 2 + \"7\" * Style.RESET() + \" \" * 2 + \"9\" * Style.RESET() + \" \" * 2 + \"11\" * Style.RESET() + \" \" * 2 + \"13\" * Style.RESET() + \" \" * 2 + \"15\" * Style.RESET() + \" \" * 2 + \"17", + "exact_match": false, + "code_bleu": 0.35930411196308426, + "edit_similarity": 0.5454545454545454 + }, + { + "repo": "MrPowers/chispa", + "expected": "Color.CYAN", + "got": "\"cyan\"", + "got_raw": "\"cyan\" * 200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.16666666666666666, + "edit_similarity": 0.0 + }, + { + "repo": "MrPowers/chispa", + "expected": "Color.GREEN", + "got": "\"green\"", + "got_raw": "\"green\" * 200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.16666666666666666, + "edit_similarity": 0.1111111111111111 + }, + { + "repo": "MrPowers/chispa", + "expected": "ValueError)", + "got": "ValueError)", + "got_raw": "ValueError) as exc:\nColor.RED + \"foo\" + Color.RESET + \"bar\" + Color.RED + \"foo\" + Color.RESET + \"bar\" + Color.RED + \"foo\" + Color.RESET + \"bar\" + Color.RED + \"foo\" + Color.RESET + \"bar\" + Color.RED + \"foo\" + Color.RESET + \"bar\" + Color.RED + \"foo\" + Color.RESET + \"bar\" + Color.RED + \"foo\" + Color.RESET + \"bar\" + Color.RED + \"foo\" + Color.RESET + \"bar\" + Color.RED + \"foo\" + Color.RESET", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "MrPowers/chispa", + "expected": "Color.YELLOW", + "got": "\"yellow\"", + "got_raw": "\"yellow\" * 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.16666666666666666, + "edit_similarity": 0.2 + }, + { + "repo": "MrPowers/chispa", + "expected": "Color.PURPLE", + "got": "\"purple\"", + "got_raw": "\"purple\" * 200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.16666666666666666, + "edit_similarity": 0.1 + }, + { + "repo": "MrPowers/chispa", + "expected": "[Style.BLINK]", + "got": "[Style.BLINK]", + "got_raw": "[Style.BLINK] * 2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "MrPowers/chispa", + "expected": "[Style.UNDERLINE]", + "got": "Style.BOLD_RED_UNDERLINE_STRIKE_THICK_LINE_REMOVED_CELL_CUT_OUT_CELL_CUT_OUT_CELL_CUT_OUT_CELL_CUT_OUT_CELL_CUT_OUT_CELL_CUT_OUT_CELL_CUT_OUT_CELL_CUT_OUT_CELL_CUT_OUT_CELL_CUT_OUT_CELL_CUT_OUT_CELL_CUT_OUT_CELL_CUT_OUT_CELL_CUT_OUT_CELL_CUT_OUT_CELL_CUT_OUT_CELL_CUT_OUT_CELL_CUT_OUT_CELL_CUT_OUT_CELL_CUT_OUT_CELL_CUT_OUT_CELL_CUT_OUT_CELL_CUT_OUT_CELL_CUT_OUT_CELL_CUT_OUT_CELL_CUT_OUT_CELL_CUT_OUT_CELL_CUT_OUT_CELL_CUT", + "got_raw": "Style.BOLD_RED_UNDERLINE_STRIKE_THICK_LINE_REMOVED_CELL_CUT_OUT_CELL_CUT_OUT_CELL_CUT_OUT_CELL_CUT_OUT_CELL_CUT_OUT_CELL_CUT_OUT_CELL_CUT_OUT_CELL_CUT_OUT_CELL_CUT_OUT_CELL_CUT_OUT_CELL_CUT_OUT_CELL_CUT_OUT_CELL_CUT_OUT_CELL_CUT_OUT_CELL_CUT_OUT_CELL_CUT_OUT_CELL_CUT_OUT_CELL_CUT_OUT_CELL_CUT_OUT_CELL_CUT_OUT_CELL_CUT_OUT_CELL_CUT_OUT_CELL_CUT_OUT_CELL_CUT_OUT_CELL_CUT_OUT_CELL_CUT_OUT_CELL_CUT_OUT_CELL_CUT_OUT_CELL_CUT", + "exact_match": false, + "code_bleu": 0.3567621345008163, + "edit_similarity": 0.06818181818181818 + }, + { + "repo": "MrPowers/chispa", + "expected": "[Style.INVERT, Style.HIDE]", + "got": "[Style.INVERT, Style.HIDE] * 265376000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "[Style.INVERT, Style.HIDE] * 265376000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.8070557274927982, + "edit_similarity": 0.3023255813953488 + }, + { + "repo": "MrPowers/chispa", + "expected": "[Style.BOLD, Style.UNDERLINE]", + "got": "[Style.BOLD, Style.UNDERLINE] * 2 + [Style.RESET] * 2 + [Style.BOLD] * 2 + [Style.RESET] * 2 + [Style.UNDERLINE] * 2 + [Style.RESET] * 2 + [Style.BOLD] * 2 + [Style.RESET] * 2 + [Style.UNDERLINE] * 2 + [Style.RESET] * 2 + [Style.BOLD] * 2 + [Style.RESET] * 2 + [Style.UNDERLINE] * 2 + [Style.RESET] * 2 + [Style.BOLD] *", + "got_raw": "[Style.BOLD, Style.UNDERLINE] * 2 + [Style.RESET] * 2 + [Style.BOLD] * 2 + [Style.RESET] * 2 + [Style.UNDERLINE] * 2 + [Style.RESET] * 2 + [Style.BOLD] * 2 + [Style.RESET] * 2 + [Style.UNDERLINE] * 2 + [Style.RESET] * 2 + [Style.BOLD] * 2 + [Style.RESET] * 2 + [Style.UNDERLINE] * 2 + [Style.RESET] * 2 + [Style.BOLD] *", + "exact_match": false, + "code_bleu": 0.06935052361989594, + "edit_similarity": 0.16666666666666666 + }, + { + "repo": "MrPowers/chispa", + "expected": "\"Invalid style name: invalid_style. Valid style names are ['bold', 'underline', 'blink', 'invert', 'hide']\"", + "got": "str(exc_info.value) == \"Invalid style(s) ['invalid_style'] in 'mismatched_rows'.\" \" Valid styles are: ['reset', 'bold', 'italic', 'underline', 'strikethrough', 'color', 'background_color']\" \" Supported styles are: ['reset', 'bold', 'italic', 'underline', 'strikethrough']\" \" Unknown styles: ['color', 'background_color']\" \" Use a single style or style combination in 'mismatched_rows'.\" \" Use a single style or style combination in 'mismatched_columns'.\" \" Use a single style or", + "got_raw": "str(exc_info.value) == \"Invalid style(s) ['invalid_style'] in 'mismatched_rows'.\" \" Valid styles are: ['reset', 'bold', 'italic', 'underline', 'strikethrough', 'color', 'background_color']\" \" Supported styles are: ['reset', 'bold', 'italic', 'underline', 'strikethrough']\" \" Unknown styles: ['color', 'background_color']\" \" Use a single style or style combination in 'mismatched_rows'.\" \" Use a single style or style combination in 'mismatched_columns'.\" \" Use a single style or", + "exact_match": false, + "code_bleu": 0.051366639095059514, + "edit_similarity": 0.30085470085470084 + }, + { + "repo": "MrPowers/chispa", + "expected": "\"Invalid color name: invalid_color. Valid color names are \" \"['black', 'red', 'green', 'yellow', 'blue', 'purple', 'cyan', 'light_gray', \" \"'dark_gray', 'light_red', 'light_green', 'light_yellow', 'light_blue', 'light_purple', \" \"'light_cyan', 'white']\"", + "got": "str(exc_info.value) == \"Invalid color 'invalid_color'\" + \"\\n\" + \"Available colors are: \" + str( Color ) + \"\\n\" + \"Available styles are: \" + str( Style ) + \"\\n\" + \"Available row types are: \" + str( FormattingConfig.RowType ) + \"\\n\" + \"Available column types are: \" + str( FormattingConfig.ColumnType ) + \"\\n\" + \"Available alignment types are: \" + str( FormattingConfig.AlignmentType ) + \"\\n\" + \"Available table types are: \" + str( FormattingConfig.TableType ) + \"\\n", + "got_raw": "str(exc_info.value) == \"Invalid color 'invalid_color'\" + \"\\n\" + \"Available colors are: \" + str( Color ) + \"\\n\" + \"Available styles are: \" + str( Style ) + \"\\n\" + \"Available row types are: \" + str( FormattingConfig.RowType ) + \"\\n\" + \"Available column types are: \" + str( FormattingConfig.ColumnType ) + \"\\n\" + \"Available alignment types are: \" + str( FormattingConfig.AlignmentType ) + \"\\n\" + \"Available table types are: \" + str( FormattingConfig.TableType ) + \"\\n", + "exact_match": false, + "code_bleu": 0.013424330666906353, + "edit_similarity": 0.022315202231520222 + }, + { + "repo": "MrPowers/chispa", + "expected": "expected_string", + "got": "expected_string", + "got_raw": "expected_string + RESET + \"\\n\" + RESET + \"\\n\" + RESET + \"\\n\" + RESET + \"\\n\" + RESET + \"\\n\" + RESET + \"\\n\" + RESET + \"\\n\" + RESET + \"\\n\" + RESET + \"\\n\" + RESET + \"\\n\" + RESET + \"\\n\" + RESET + \"\\n\" + RESET + \"\\n\" + RESET + \"\\n\" + RESET + \"\\n\" + RESET + \"\\n\" + RESET + \"\\n\" + RESET + \"\\n\" + RESET + \"\\n\" + RESET + \"\\n\" + RESET + \"\\n\"", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "beta)", + "got": "beta)", + "got_raw": "beta) * 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "alpha)", + "got": "alpha)", + "got_raw": "alpha) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000)", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "ValueError)", + "got": "ValueError)", + "got_raw": "ValueError) as e) as msg: # alpha cannot be <= 1, beta cannot be outside of (0, 1) # noqa: E501) as msg: # alpha cannot be <= 1, beta cannot be outside of (0, 1) # noqa: E501) as msg: # alpha cannot be <= 1, beta cannot be outside of (0, 1) # noqa: E501) as msg: # alpha cannot be <= 1, beta cannot be outside of (0, 1) # noqa: E50", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "greedy)", + "got": "greedy)", + "got_raw": "greedy) * lookback_period > 0) * lookback_period < 1) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) *", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "better_history)", + "got": "better_history)", + "got_raw": "better_history) * greedy + (1 - greedy) * 0.5) * 100) / 100) * 100) / 100) * 100) / 100) * 100) / 100) * 100) / 100) * 100) / 100) * 100) / 100) * 100) / 100) * 100) / 100) * 1", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "lookback_period)", + "got": "lookback_period)", + "got_raw": "lookback_period) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 100", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "(ValueError, TypeError))", + "got": "ValueError) as e) as e2: assert_equal(e2.value, \"Invalid lookback period\") ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "got_raw": "ValueError) as e) as e2: assert_equal(e2.value, \"Invalid lookback period\") ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "exact_match": false, + "code_bleu": 0.0153192471170326, + "edit_similarity": 0.11612903225806452 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "eta)", + "got": "eta)", + "got_raw": "eta) * 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "gamma)", + "got": "gamma)", + "got_raw": "gamma) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000)", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "[7100])", + "got": "[(One()", + "got_raw": "[(One(), One(), VarObj(7100))]) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * ", + "exact_match": false, + "code_bleu": 0.3021375397356768, + "edit_similarity": 0.2857142857142857 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "ValueError)", + "got": "ValueError)", + "got_raw": "ValueError) as e) as msg: # eta and gamma must be >= 0 and <= 1 respectively.\n MovingAverageThreshold(eta, gamma) # eta and gamma must be >= 0 and <= 1 respectively.\n assert_equal(msg) # eta and gamma must be >= 0 and <= 1 respectively. ) # eta and gamma must be >= 0 and <= 1 respectively. ) # eta and gamma must be >= 0 and <= 1 respectively. ) # eta and gamma must be >= 0 and <= 1 respectively. ) # eta", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "[7100, 7200])", + "got": "[7100, 7200]) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 10", + "got_raw": "[7100, 7200]) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 10", + "exact_match": false, + "code_bleu": 0.09702083064346757, + "edit_similarity": 0.16352201257861634 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "[7100, 7200, 7120])", + "got": "[7100, 7200, 7120]) * 2) / 2) * 2) / 2) * 2) / 2) * 2) / 2) * 2) / 2) * 2) / 2) * 2) / 2) * 2) / 2) * 2) / 2) * 2) / 2) * 2) / 2) * 2) / 2) * 2) / 2) * 2) /", + "got_raw": "[7100, 7200, 7120]) * 2) / 2) * 2) / 2) * 2) / 2) * 2) / 2) * 2) / 2) * 2) / 2) * 2) / 2) * 2) / 2) * 2) / 2) * 2) / 2) * 2) / 2) * 2) / 2) * 2) / 2) * 2) / ", + "exact_match": false, + "code_bleu": 0.0828621698329647, + "edit_similarity": 0.21714285714285714 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "[7100, 7200, 7120, 7100])", + "got": "[7100, 7100]) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2)", + "got_raw": "[7100, 7100]) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2)", + "exact_match": false, + "code_bleu": 0.046288681873174066, + "edit_similarity": 0.14207650273224043 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "[7200, 7120, 7100, 7200])", + "got": "[7100, 7200, 7120, 7100, 7200]) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) *", + "got_raw": "[7100, 7200, 7120, 7100, 7200]) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * ", + "exact_match": false, + "code_bleu": 0.10212618681923681, + "edit_similarity": 0.2808988764044944 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "beta)", + "got": "beta)", + "got_raw": "beta) * -1.0 * alpha * gamma * delta) / 2.0) / 2.0) / 2.0) / 2.0) / 2.0) / 2.0) / 2.0) / 2.0) / 2.0) / 2.0) / 2.0) / 2.0) / 2.0) / 2.0) / 2.0) / 2.0) / 2.0) / 2.0) / 2.0)", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "alpha)", + "got": "alpha)", + "got_raw": "alpha) * 100) / 100) * 100) / 100) * 100) / 100) * 100) / 100) * 100) / 100) * 100) / 100) * 100) / 100) * 100) / 100) * 100) / 100) * 100) / 100) * 100)", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "gamma)", + "got": "gamma)", + "got_raw": "gamma) * delta * beta * alpha / (1 - alpha) / (1 - beta) / (1 - gamma) / (1 - delta) - 1) / (1 - gamma) / (1 - delta) - 1) / (1 - alpha) / (1 - beta) - 1) / (1 - gamma) - 1) / (1 - delta) - 1) / (1 - alpha) - 1) / (1 - beta) - 1) / (1 - gamma) - 1) / (1 - delta) - 1)", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "delta)", + "got": "delta)", + "got_raw": "delta) * 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "ValueError)", + "got": "ValueError)", + "got_raw": "ValueError) as e) as e2: # alpha cannot be <= 1, beta cannot be outside of (0, 1), gamma cannot be <= 0, delta cannot be <= 0. This is to prevent division by zero. ) as e3: # gamma cannot be <= 0, delta cannot be <= 0. This is to prevent division by zero. ) as e4: # alpha cannot be <= 1, beta cannot be outside of (0, 1) ) as e5: # gamma cannot be <= 0, delta cannot be <= 0. This", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "end)", + "got": "end)", + "got_raw": "end) * 100) / 100) * 100) / 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100)", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "step)", + "got": "step)", + "got_raw": "step) * 100.0 / 100.0 * 100.0 * 100.0 * 100.0 * 100.0 * 100.0 * 100.0 * 100.0 * 100.0 * 100.0 * 100.0 * 100.0 * 100.0 * 100.0 * 100.0 * 100.0 * 100.0", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "start)", + "got": "start)", + "got_raw": "start) * 100) / 100) * 100) / 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100)", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "method)", + "got": "method)", + "got_raw": "method) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000)", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "ValueError)", + "got": "ValueError)", + "got_raw": "ValueError) as e) as e2: # start prob cannot be < end prob, step cannot be > 1 with exponential method) as e3) as e4) as e5) as e6) as e7) as e8) as e9) as e10) as e11) as e12) as e13) as e14) as e15) as e16) as e17) as e18) as e19) as e20) as e21) as e22) as e23)", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "end)", + "got": "end)", + "got_raw": "end) * method != \"exponential\" * method != \"linear\" * method != \"exponential\" * method != \"linear\" * method != \"exponential\" * method != \"linear\" * method != \"exponential\" * method != \"linear\" * method != \"exponential\" * method != \"linear\" * method != \"exponential\" * method != \"linear\" * method != \"exponential\" * method != \"linear\" * method != \"exponential\" * method != \"linear\" * method != \"exponential\" * method != \"linear\" * method != \"exponential\" * method", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "step)", + "got": "step)", + "got_raw": "step) * step > 0.001 * abs(start - end) * 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "start)", + "got": "start)", + "got_raw": "start) * step) - 0.5) * step) - 0.5) * step) - 0.5) * step) - 0.5) * step) - 0.5) * step) - 0.5) * step) - 0.5) * step) - 0.5) * step) - 0.5) * step) - 0.5) * step) - 0.5) * step) - 0.5) * step) - 0.5) * step) - 0.5)", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "method)", + "got": "method)", + "got_raw": "method) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000)", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "exp_end)", + "got": "exp_end)", + "got_raw": "exp_end) * exp_step)", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "exp_step)", + "got": "exp_step)", + "got_raw": "exp_step) * exp_step > 0.01) * exp_end) > 0.01) * exp_start) > 0.01) * exp_end) > 0.01) * exp_start) > 0.01) * exp_end) > 0.01) * exp_start) > 0.01) * exp_end) > 0.01) * exp_start) > 0.01) * exp_end) > 0.01) * exp_start) > 0.01) * exp_end) >", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "exp_start)", + "got": "exp_start)", + "got_raw": "exp_start) * exp_step) * exp_end) * exp_step) * exp_step) * exp_step) * exp_step) * exp_step) * exp_step) * exp_step) * exp_step) * exp_step) * exp_step) * exp_step) * exp_step) * exp_step) * exp_step) * exp_step) * exp_step) * exp_step) * exp_step) * exp_step) * exp_step) * exp_step) * exp_step) * exp_step) * exp_step) * exp_step) * exp_step) * exp_step) * exp_step) * exp_step) *", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "ValueError)", + "got": "ValueError)", + "got_raw": "ValueError) as e) as msg: # type: ignore[match] ValueError] # pylint: disable=match-arg, match-requires-arg) as e) as msg: # type: ignore[match] ValueError] # pylint: disable=match-arg, match-requires-arg) as e) as msg: # type: ignore[match] ValueError] # pylint: disable=match-arg, match-requires-arg) as e) as msg: # type: ignore[match] ValueError] # pylint: disable=match-arg, match-requires-arg) as", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "1)", + "got": "sa_start", + "got_raw": "sa_start - sa_step * 100) * 0.5) * 100) * 0.5) * 100) * 0.5) * 100) * 0.5) * 100) * 0.5) * 100) * 0.5) * 100) * 0.5) * 100) * 0.5) * 100) * 0.5) * 100) * 0.5) * 1", + "exact_match": false, + "code_bleu": 0.25, + "edit_similarity": 0.0 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "end)", + "got": "end)", + "got_raw": "end) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) / 1000) / 1000) / 1000) / 1000) / 1000) / 1000) / 1000) / 1000) / 1000) / 1000) / 1000) / 1000)", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "step)", + "got": "step)", + "got_raw": "step) * 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "start)", + "got": "start)", + "got_raw": "start) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) / 1000) / 1000) / 1000) / 1000) / 1000) / 1000) / 1000) / 1000) / 1000) / 1000) / 1000) / 1000)", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "sa_end)", + "got": "sa_end)", + "got_raw": "sa_end) * sa_step) * sa_start) * sa_end) * sa_start) * sa_end) * sa_start) * sa_end) * sa_start) * sa_end) * sa_start) * sa_end) * sa_start) * sa_end) * sa_start) * sa_end) * sa_start) * sa_end) * sa_start) * sa_end) * sa_start) * sa_end) * sa_start) * sa_end) * sa_start) * sa_end) * sa_start) * sa_end) * sa_start) * sa_end) * sa_start) * sa_end) *", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "sa_step)", + "got": "sa_step)", + "got_raw": "sa_step) * 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "sa_start)", + "got": "sa_step)", + "got_raw": "sa_step) * sa_step * sa_start * sa_end) * sa_start) * sa_end) * sa_start) * sa_end) * sa_start) * sa_end) * sa_start) * sa_end) * sa_start) * sa_end) * sa_start) * sa_end) * sa_start) * sa_end) * sa_start) * sa_end) * sa_start) * sa_end) * sa_start) * sa_end) * sa_start) * sa_end) * sa_start) * sa_end) * sa_start) * sa_end) * sa_start) * sa_end) * sa_start", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.7058823529411765 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "\"linear\")", + "got": "\"linear\")", + "got_raw": "\"linear\") * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "ValueError)", + "got": "ValueError)", + "got_raw": "ValueError) as e) as e2:\n SimulatedAnnealing( start, end, step ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "\"exponential\")", + "got": "\"auto\")", + "got_raw": "\"auto\") * 1000) / 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.38095238095238093 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "expected)", + "got": "expected)", + "got_raw": "expected)", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "ValueError)", + "got": "ValueError)", + "got_raw": "ValueError) as e) as e2: update(\"foo\", \"bar\") * 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "update(1, 0.5, uc))", + "got": "update(1, 0.5, uc))", + "got_raw": "update(1, 0.5, uc))", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "alpha)", + "got": "alpha)", + "got_raw": "alpha) * 0.5) * 100) / 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100)", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "scores)", + "got": "scores)", + "got_raw": "scores) * -1) * 100) / 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * ", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "(0, 0))", + "got": "(0, 0)) * 1000000000) / 1000000000) * 1000000000) / 1000000000) * 1000000000) / 1000000000) * 1000000000) / 1000000000) * 1000000000) / 100", + "got_raw": "(0, 0)) * 1000000000) / 1000000000) * 1000000000) / 1000000000) * 1000000000) / 1000000000) * 1000000000) / 1000000000) * 1000000000) / 100", + "exact_match": false, + "code_bleu": 0.15612734376432705, + "edit_similarity": 0.0958904109589041 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "(1, 0))", + "got": "(1, 0)) * 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "(1, 0)) * 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.7259795291154771, + "edit_similarity": 0.10218978102189781 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "ValueError)", + "got": "ValueError)", + "got_raw": "ValueError) as e) as msg: AlphaUCB(alpha) * msg.value) * msg.value) * msg.value) * msg.value) * msg.value) * msg.value) * msg.value) * msg.value) * msg.value) * msg.value) * msg.value) * msg.value) * msg.value) * msg.value) * msg.value) * msg.value) * msg.value) * msg.value) * msg.value) * msg.value) * msg.value) * msg.value) * msg.value) * msg.value) * msg.value) * msg.value) * msg.value) * msg.value) * msg", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "(0, 0))", + "got": "2) * 0.5) - 0.5) * 0.5) - 0.5) * 0.5) - 0.5) * 0.5) - 0.5) * 0.5) - 0.5) * 0.5) - 0.5) * 0.5) - 0.5) * 0.5) - 0.5) * 0.5) - 0.5) * 0.5) - 0.5) * 0.5)", + "got_raw": "2) * 0.5) - 0.5) * 0.5) - 0.5) * 0.5) - 0.5) * 0.5) - 0.5) * 0.5) - 0.5) * 0.5) - 0.5) * 0.5) - 0.5) * 0.5) - 0.5) * 0.5) - 0.5) * 0.5) - 0.5) * 0.5)", + "exact_match": false, + "code_bleu": 0.020407314606611982, + "edit_similarity": 0.05128205128205128 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "(1, 0))", + "got": "1)", + "got_raw": "1) # 1 is the best action in this context)", + "exact_match": false, + "code_bleu": 0.19820118583378682, + "edit_similarity": 0.4444444444444444 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "expected)", + "got": "expected)", + "got_raw": "expected) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * ", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "ValueError)", + "got": "ValueError)", + "got_raw": "ValueError) as e) as msg: # type: ignore[match] ValueError] # type: ignore[match] ValueError] # type: ignore[match] ValueError] # type: ignore[match] ValueError] # type: ignore[match] ValueError] # type: ignore[match] ValueError] # type: ignore[match] ValueError] # type: ignore[match] ValueError] # type: ignore[match] ValueError] # type: ignore[match] ValueError] # type: ignore[match] ValueError] # type: ignore[match] ValueError", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "[5, 0, 3, 0])", + "got": "[5, 0, 3, 0]) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 10", + "got_raw": "[5, 0, 3, 0]) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 10", + "exact_match": false, + "code_bleu": 0.1585773013288393, + "edit_similarity": 0.16352201257861634 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "AttributeError)", + "got": "TypeError)", + "got_raw": "TypeError) as e) as e2: select.select(Zero()) * 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.56 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "0)", + "got": "0)", + "got_raw": "0) * 2 / 3) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "0.25)", + "got": "np.ones((2", + "got_raw": "np.ones((2, 2)) / 4) * 100) / 100) * 100) / 100) * 100) / 100) * 100) / 100) * 100) / 100) * 100) / 100) * 100) / 100) * 100) / 100) * 100) / 100) * 100) / ", + "exact_match": false, + "code_bleu": 0.18575057999133598, + "edit_similarity": 0.26666666666666666 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "1 / 3)", + "got": "1 / 3) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 1", + "got_raw": "1 / 3) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 1", + "exact_match": false, + "code_bleu": 0.050537911934993435, + "edit_similarity": 0.07692307692307693 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "decay)", + "got": "decay)", + "got_raw": "decay) * 100.0) / 100.0) * 100.0) * 100.0) * 100.0) * 100.0) * 100.0) * 100.0) * 100.0) * 100.0) * 100.0) * 100.0) * 100.0) * 100.0) * 100.0) * 100.", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "scores)", + "got": "scores)", + "got_raw": "scores) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000)", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "(1, 2))", + "got": "(2, 2)) * 0.5) * 0.5) * 0.5) * 0.5) * 0.5) * 0.5) * 0.5) * 0.5) * 0.5) * 0.5) * 0.5) * 0.5) * 0.5) * 0.5) * 0.5) * 0.5) * 0.5) * 0.5) * 0.5) * 0.5) *", + "got_raw": "(2, 2)) * 0.5) * 0.5) * 0.5) * 0.5) * 0.5) * 0.5) * 0.5) * 0.5) * 0.5) * 0.5) * 0.5) * 0.5) * 0.5) * 0.5) * 0.5) * 0.5) * 0.5) * 0.5) * 0.5) * 0.5) * ", + "exact_match": false, + "code_bleu": 0.05209911800628077, + "edit_similarity": 0.07692307692307693 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "num_repair)", + "got": "num_repair)", + "got_raw": "num_repair) * op_coupling.shape[0] * op_coupling.shape[1]) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2)", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "ValueError)", + "got": "ValueError)", + "got_raw": "ValueError) as e) as msg: assert_equal(decay, 0.0) assert_equal(msg.value, \"Invalid decay\") ) assert_equal(decay, 1.0) assert_equal(msg.value, \"Invalid decay\") ) assert_equal(decay, -1.0) assert_equal(msg.value, \"Invalid decay\") ) assert_equal(decay, 1.0) assert_equal(msg.value, \"Invalid decay\") ) assert_equal(decay, 1.0) assert_equal(msg.value, \"Invalid decay\") ) assert_equal(decay, 1.0) assert_equal(msg.value, \"Invalid decay\")", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "num_destroy)", + "got": "num_destroy)", + "got_raw": "num_destroy) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) *", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "op_coupling)", + "got": "op_coupling)", + "got_raw": "op_coupling) * select.weights) * select.op_weights) * select.op_coupling) * select.op_op_weights) * select.op_op_op_weights) * select.op_op_op_op_weights) * select.op_op_op_op_op_weights) * select.op_op_op_op_op_op_weights) * select.op_op_op_op_op_op_op_weights) * select.op_op_op_op_op_op_op_op_weights) * select.op_op_op_op_op_op_op_op_weights) * select.op_op_op_op_op_op_op_op_weights) * select.op_op_op_op_op_op_op_op_weights) * select.op_op_op_op_op_op_op_op", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "expected[0])", + "got": "expected[0])", + "got_raw": "expected[0]) * 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "expected[1])", + "got": "expected[1])", + "got_raw": "expected[1]) * 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "seg_length)", + "got": "seg_length)", + "got_raw": "seg_length) * seg_length) * 0.5) * 0.5) * 0.5) * 0.5) * 0.5) * 0.5) * 0.5) * 0.5) * 0.5) * 0.5) * 0.5) * 0.5) * 0.5) * 0.5) * 0.5) * 0.5) * 0.5) * 0.5) * 0.5) * 0.5) *", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "ValueError)", + "got": "ValueError)", + "got_raw": "ValueError) as e) as msg:\n SegmentedRouletteWheel(0, 10, decay) * 0.01) * 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "expected[0])", + "got": "expected[0])", + "got_raw": "expected[0]) * 1000) / 1000) * 1000) / 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 100", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "expected[1])", + "got": "expected[1])", + "got_raw": "expected[1]) * 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "ValueError)", + "got": "ValueError)", + "got_raw": "ValueError) as exc:\n MaxIterations(max_iterations)\n assert_equal(str(exc.value), \"Maximum iterations must be >= 0\") * max_iterations < 0) * max_iterations < 0) * max_iterations < 0) * max_iterations < 0) * max_iterations < 0) * max_iterations < 0) * max_iterations < 0) * max_iterations < 0) * max_iterations < 0) * max_iterations < 0) * max_iterations < 0) * max_iterations < 0) * max_iterations < 0) * max_iterations < 0)", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "max_iterations)", + "got": "max_iterations)", + "got_raw": "max_iterations) * max_iterations > 0) * max_iterations < 10000) * max_iterations < 10000) * max_iterations < 10000) * max_iterations < 10000) * max_iterations < 10000) * max_iterations < 10000) * max_iterations < 10000) * max_iterations < 10000) * max_iterations < 10000) * max_iterations < 10000) * max_iterations < 100", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "ValueError)", + "got": "ValueError)", + "got_raw": "ValueError) as exc:\n MaxRuntime(max_runtime, 0)() < 0.001) * 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "max_runtime)", + "got": "max_runtime)", + "got_raw": "max_runtime) * 1000.0 + 1e-6) * 1000.0) * 1000.0) * 1000.0) * 1000.0) * 1000.0) * 1000.0) * 1000.0) * 1000.0) * 1000.0) * 1000.0) * 1000.0) * 1000.0) * ", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "ValueError)", + "got": "ValueError)", + "got_raw": "ValueError) as e) as msg:\n NoImprovement(max_iterations=max_iterations) * 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "max_iterations)", + "got": "max_iterations)", + "got_raw": "max_iterations) * max_iterations > 0) * max_iterations < 1000) * max_iterations > 0) * max_iterations < 1000) * max_iterations > 0) * max_iterations < 1000) * max_iterations > 0) * max_iterations < 1000) * max_iterations > 0) * max_iterations < 1000) * max_iterations > 0) * max_iterations < 1000) * max_iterations > 0) * max_iterations < 1000) * max_iterations > 0", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "1)", + "got": "1)", + "got_raw": "1) # The only iteration should return the global best state.", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "0)", + "got": "0)", + "got_raw": "0) # The best state is always zero.", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "count)", + "got": "count)", + "got_raw": "count) * 2) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + ", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "desired)", + "got": "desired)", + "got_raw": "desired) * 100) / 100) * 100) / 100) * 100) / 100) * 100) / 100) * 100) / 100) * 100) / 100) * 100) / 100) * 100) / 100) * 100) / 100) * 100) / 100) * 100)", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "ValueError)", + "got": "ValueError)", + "got_raw": "ValueError) as exc:\n alns.destroy_operator = None\n alns.select = select\n\n alns.evolve(10) # noqa: E731\n\n assert str(exc.value) == \"No destroy operators\" + str(select) + \" set.\" + str( One() ) + str( Zero() ) + str(VarObj(1)) + str(One()) + str(Zero()) + str(VarObj(0)) + str(One()) + str(Zero()) + str(VarObj(1)) + str(One()) + str(Zero()) + str", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "max_runtime)", + "got": "max_runtime)", + "got_raw": "max_runtime) * 1000) < result.runtime() < max_runtime * 1000) + 1) * 1000) < 1) < 0) < 0) < 0) < 0) < 0) < 0) < 0) < 0) < 0) < 0) < 0) < 0) < 0) < 0) < 0) < 0) < 0) < 0) < 0) < 0) < 0) < 0) <", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "max_iterations)", + "got": "max_iterations)", + "got_raw": "max_iterations) * 2) + 1) * 2) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) +", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "\"repair_operator\")", + "got": "\"repair_operator\")", + "got_raw": "\"repair_operator\") * operator) * 100) / 100) * 100) / 100) * 100) / 100) * 100) / 100) * 100) / 100) * 100) / 100) * 100) / 100) * 100) / 100) * 100) / 100) * 100) / 100) *", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "\"destroy_operator\")", + "got": "\"destroy_operator\")", + "got_raw": "\"destroy_operator\") operator.__name__) # noqa: E731) destroy_operator\") # noqa: E731) destroy_operator\") # noqa: E731) destroy_operator\") # noqa: E731) destroy_operator\") # noqa: E731) destroy_operator\") # noqa: E731) destroy_operator\") # noqa: E731) destroy_operator\") # noqa: E731) destroy_operator\") # noqa: E731) destroy_operator\") # noqa: E731) destroy_operator\")", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "max_iterations + 1)", + "got": "max_iterations + 1) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) *", + "got_raw": "max_iterations + 1) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * ", + "exact_match": false, + "code_bleu": 0.0350262708292337, + "edit_similarity": 0.2 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "0)", + "got": "0)", + "got_raw": "0) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * ", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "1)", + "got": "[time", + "got_raw": "[time for time in range(100)]) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 100", + "exact_match": false, + "code_bleu": 0.4518010018049224, + "edit_similarity": 0.0 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "99)", + "got": "99)", + "got_raw": "99) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "count)", + "got": "count)", + "got_raw": "count) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * ", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "N-Wouda/ALNS", + "expected": "objective)", + "got": "objective)", + "got_raw": "objective) * 100) / 100) * 100) / 100) * 100) / 100) * 100) / 100) * 100) / 100) * 100) / 100) * 100) / 100) * 100) / 100) * 100) / 100) * 100) / 100) * 100)", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "0)", + "got": "0)", + "got_raw": "0) 0) bytes) * 1024 ** 2) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "1)", + "got": "1)", + "got_raw": "1) * 8660100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "3)", + "got": "6)", + "got_raw": "6) * 1024 * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) *", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.5 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "4)", + "got": "4)", + "got_raw": "4) * 8) + 4) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + ", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "2)", + "got": "2)", + "got_raw": "2) * 2) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + ", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "0)", + "got": "enums.ResourceType.UNKNOWN)", + "got_raw": "enums.ResourceType.UNKNOWN) * enums.ResourceType.UNKNOWN) * enums.ResourceType.UNKNOWN) * enums.ResourceType.UNKNOWN) * enums.ResourceType.UNKNOWN) * enums.ResourceType.UNKNOWN) * enums.ResourceType.UNKNOWN) * enums.ResourceType.UNKNOWN) * enums.ResourceType.UNKNOWN) * enums.ResourceType.UNKNOWN) * enums.ResourceType.UNKNOWN) * enums.ResourceType.UNKNOWN) * enums.ResourceType.UNKNOWN) * enums.ResourceType.UNKNOWN) * enums.ResourceType.UNKNOWN) * enums.ResourceType.UNKNOWN) * enums.ResourceType.UNKNOWN) * enums.ResourceType.UNKNOWN) * enums.ResourceType.UNKNOWN) * enums.ResourceType.UNKNOWN) * enums.ResourceType.UNKNOWN) * enums.Resource", + "exact_match": false, + "code_bleu": 0.22089591134157885, + "edit_similarity": 0.06896551724137931 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "1)", + "got": "1)", + "got_raw": "1) * len(self.translate_test_cases) - 1) * 2) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "3)", + "got": "len(self.translate_test_cases))", + "got_raw": "len(self.translate_test_cases)) * 2) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - ", + "exact_match": false, + "code_bleu": 0.18575057999133598, + "edit_similarity": 0.06060606060606061 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "2)", + "got": "int(ResourceType.file))", + "got_raw": "int(ResourceType.file)) * ResourceType.file) * ResourceType.file) * ResourceType.file) * ResourceType.file) * ResourceType.file) * ResourceType.file) * ResourceType.file) * ResourceType.file) * ResourceType.file) * ResourceType.file) * ResourceType.file) * ResourceType.file) * ResourceType.file) * ResourceType.file) * ResourceType.file) * ResourceType.file) * ResourceType.file) * ResourceType.file) * ResourceType.file) * ResourceType.file) * ResourceType.file) * ResourceType.file) * ResourceType.file) * ResourceType.file) * ResourceType.file) * ResourceType.file) * ResourceType.file) * ResourceType.file) * ResourceType.file) * ResourceType.file) * ResourceType.file", + "exact_match": false, + "code_bleu": 0.18575057999133598, + "edit_similarity": 0.08 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "3)", + "got": "3)", + "got_raw": "3) * 8) / 8) * 16) / 16) * 8) / 8) * 16) / 16) * 8) / 8) * 16) / 16) * 8) / 8) * 16) / 16) * 8) / 8) * 16) / 16) * 8) / 8) * 16) / 16) * 8) / 8) * 16) / 16)", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "4)", + "got": "4)", + "got_raw": "4) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * ", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "1)", + "got": "1)", + "got_raw": "1) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * ", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "0)", + "got": "1)", + "got_raw": "1) * 1000) * 0.001) * 0.001) * 0.001) * 0.001) * 0.001) * 0.001) * 0.001) * 0.001) * 0.001) * 0.001) * 0.001) * 0.001) * 0.001) * 0.001) * 0.001", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.5 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "0)", + "got": "0o644)", + "got_raw": "0o644) * 0o400) >> 6) & 0o777) >> 8) & 0o400) >> 10) & 0o200) >> 12) & 0o100) >> 14) & 0o001) & 0o400) >> 16) & 0o200) >> 18) & 0o100) >> 20) & 0o001) & 0o", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.5 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "0)", + "got": "0)", + "got_raw": "0) # TODO: test size) # TODO: test mtime) # TODO: test type) # TODO: test link) # TODO: test info) # TODO: test extract) # TODO: test open) # TODO: test delete) # TODO: test rename) # TODO: test copy) # TODO: test info) # TODO: test list) # TODO: test listdir) # TODO: test exists) # TODO: test isdir) # TODO: test isfile) # TODO: test geturl) # TODO: test geturlinfo) # TODO: test getmtime) # TODO: test", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "3)", + "got": "\"create_system\")", + "got_raw": "\"create_system\") * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1)", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.1111111111111111 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "0)", + "got": "0)", + "got_raw": "0) * 100) / 100) * 100) / 100) * 100) / 100) * 100) / 100) * 100) / 100) * 100) / 100) * 100) / 100) * 100) / 100) * 100) / 100) * 100) / 100) * 100)", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "1)", + "got": "1)", + "got_raw": "1) * 8) / 1024) / 16) / 2) / 1024) / 16) / 2) / 1024) / 16) / 2) / 1024) / 16) / 2) / 1024) / 16) / 2) / 1024) / 16) / 2) / 1024) / 16) / 2) / 1024) / 1", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "5)", + "got": "5)", + "got_raw": "5) * 8) * 10) * 10) * 10) * 10) * 10) * 10) * 10) * 10) * 10) * 10) * 10) * 10) * 10) * 10) * 10) * 10) * 10) * 10) * 10) * 10) * 10) * 10) * 10) * 10) * ", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "7)", + "got": "7)", + "got_raw": "7) * 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "\"\")", + "got": "\"\")", + "got_raw": "\"\") # Root directory has no name) # Root directory has no name) # Root directory has no name) # Root directory has no name) # Root directory has no name) # Root directory has no name) # Root directory has no name) # Root directory has no name) # Root directory has no name) # Root directory has no name) # Root directory has no name) # Root directory has no name) # Root directory has no name) # Root directory has no name) # Root directory has no name) # Root directory has no name) # Root directory has no name) # Root directory has no name)", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "\"\")", + "got": "\"foo\")", + "got_raw": "\"foo\") ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.6666666666666666 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "\"\")", + "got": "\"\")", + "got_raw": "\"\") # No suffix for dirs\nself.assertEqual(info.name, \"\") # No name for dirs)", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "\"w\")", + "got": "\"Mode\")'w')\")'w')\")'w')\")'w')\")'w')\")'w')\")'w')\")'w')\")'w')\")'w')\")'w')\")'w')\")'w')\")'w')\")'w')\")'w')\")'w')\")'w')\")'w')\")'w')\")'w')\")'w')\")'w')\")'w')\")'w')\")'w')\")'w')\")'w')\")'w')\")'w')\")'w')\")'", + "got_raw": "\"Mode\")'w')\")'w')\")'w')\")'w')\")'w')\")'w')\")'w')\")'w')\")'w')\")'w')\")'w')\")'w')\")'w')\")'w')\")'w')\")'w')\")'w')\")'w')\")'w')\")'w')\")'w')\")'w')\")'w')\")'w')\")'w')\")'w')\")'w')\")'w')\")'w')\")'w')\")'w')\")'", + "exact_match": false, + "code_bleu": 0.017885341915979475, + "edit_similarity": 0.030303030303030304 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "b\"f\")", + "got": "\"bar\")", + "got_raw": "\"bar\") * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) *", + "exact_match": false, + "code_bleu": 0.35818997727451396, + "edit_similarity": 0.5454545454545454 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "\"gz\")", + "got": "\"gz\")", + "got_raw": "\"gz\") * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) *", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "\"bar\")", + "got": "\"bar\")", + "got_raw": "\"bar\") ) bar.is_dir) ) bar.get(\"details\", \"type\") ) ResourceType.file) ) bar.get(\"details\", \"size\") ) 10) ) bar.get(\"details\", \"mtime\") ) 0) ) bar.get(\"details\", \"ctime\") ) 0) ) bar.get(\"details\", \"link\") ) None) ) bar.get(\"details\", \"hash\") ) None) ) bar.get(\"details\", \"mime\") ) None) ) bar.get(\"details\", \"ext\") ) None) ) bar.get(\"details\", \"name\") ) None) ) bar.get(\"details\", \"", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "\"baz\")", + "got": "\"baz\")", + "got_raw": "\"baz\") * six.PY2) * six.PY3) * six.UNICODE) * six.BINARY) * six.AUTO) * six.DIR) * six.FS) * six.OS) * six.WS) * six.EXPECTED) * six.UNEXPECTED) * six.DIR_SEP) * six.OS_SEP) * six.WS_SEP) * six.AUTO_SEP) * six.DOT_SEP) * six.DIR_DOT_SEP) * six.OS_DOT_SEP) * six.WS_DOT_SEP) * six.DOT) * six.DIR_DOT) * six.OS_DOT) * six.WS_DOT", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "\"foo\")", + "got": "\"foo\")", + "got_raw": "\"foo\") six.unichr(116, 111, 119, 101)) six.unichr(185)) six.unichr(116, 111, 119, 101)) six.unichr(185)) six.unichr(116, 111, 119, 101)) six.unichr(185)) six.unichr(116, 111, 119, 101)) six.un", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "\"baz\")", + "got": "\"baz\")", + "got_raw": "\"baz\") * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) *", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "\"foo\")", + "got": "\"foo\")", + "got_raw": "\"foo\") )", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "\".py\")", + "got": "\"py\")", + "got_raw": "\"py\") ) # TODO: this should be configurable\nself.assertEqual(info.dirname, \"\") ) # TODO: this should be configurable\nself.assertEqual(info.parent, None) ) # TODO: this should be configurable\nself.assertEqual(info.root, info.dir) ) # TODO: this should be configurable\nself.assertEqual(info.path, info.dir / info.name) ) # TODO: this should be configurable\nself.assertEqual(info.epoch, datetime_to_epoch(datetime.now())) ) # TODO: this should be configurable\nself.assertEqual(info.mode, \"r\") ) # TODO: this should be configurable\nself.assertEqual(info.permissions, Permissions.READ) ) # TODO", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.9090909090909091 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "\".gz\")", + "got": "\".gz\")", + "got_raw": "\".gz\") )", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "b\"m3\")", + "got": "b\"m1\")", + "got_raw": "b\"m1\") * 2) + b\"m3\") * 2) + b\"m2\") * 2) + b\"m1\") * 2) + b\"m3\") * 2) + b\"m2\") * 2) + b\"m1\") * 2) + b\"m3\") * 2) + b\"m2\") * 2) + b\"m1\") * 2) + b\"m3\") * 2) + b\"m2\") * 2) + b\"m1\") * 2", + "exact_match": false, + "code_bleu": 0.49999999999999994, + "edit_similarity": 0.8333333333333334 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "b\"m2\")", + "got": "b\"m2\")", + "got_raw": "b\"m2\") * 10 + 1000) + 10000) + 100000) + 1000000) + 10000000) + 100000000) + 1000000000) + 10000000000) + 100000000000) + 1000000000000) + 10", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "b\"m1\")", + "got": "b\"m1\")", + "got_raw": "b\"m1\") * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "\"1.0\")", + "got": "\"1.0\")", + "got_raw": "\"1.0\") * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "\"baz\")", + "got": "\"baz\")", + "got_raw": "\"baz\") * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) *", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "\"bar\")", + "got": "\"bar\")", + "got_raw": "\"bar\") ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "\"baz\")", + "got": "\"bar\")", + "got_raw": "\"bar\") ) info.type) == ResourceType.DIRTYPE ) info.size) 0) info.mtime) 0) info.link) None) info.gid) 0) info.uid) 0) info.permissions) \"rw\") info.islink) False) info.isdir) True) info.exists) True) info.add) False) info.remove) True) info.rename) None) info.copy) None) info.move) None) info.list) [ \"foo/bar/baz\", \"foo/bar/eggs.bin\", \"foo/bar/yolk/beans.txt\", ] info.listdir) [] info.listfiles", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.8333333333333334 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "\"foo\")", + "got": "\"foo\")", + "got_raw": "\"foo\") * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) *", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "\"bar\")", + "got": "\"bar\")", + "got_raw": "\"bar\") os.path.join(\"foo\", \"bar\"))) os.path.join(\"foo\", \"bar\", \"baz\") os.path.join(\"foo\", \"bar\", \"baz\", \"egg\") ) os.path.join(\"foo\", \"bar\", \"baz\", \"egg\") ) os.path.join(\"foo\", \"bar\", \"baz\", \"egg\") ) os.path.join(\"foo\", \"bar\", \"baz\", \"egg\") ) os.path.join(\"foo\", \"bar\", \"baz\", \"egg\") ) os.path.join(\"foo\", \"bar\", \"baz\", \"egg\") ) os.path.join(\"foo\", \"", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "\"baz\")", + "got": "\"baz\")", + "got_raw": "\"baz\") * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) *", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "b\"baz\")", + "got": "b\"baz\")", + "got_raw": "b\"baz\") * six.PY2) or b\"baz\" * six.PY3) * six.PY2) or b\"baz\" * six.PY3) * six.PY2) or b\"baz\" * six.PY3) * six.PY2) or b\"baz\" * six.PY3) * six.PY2) or b\"baz\" * six.PY3) * six.PY2) or b\"baz\" * six.PY3) * six.PY2) or b\"baz\" * six.PY3) * six.PY2", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "b\"foo\")", + "got": "\"foo\")", + "got_raw": "\"foo\") # b\"foo\" is a bytes object in Python 3.0) self.assertEqual(fspath(path), \"foo\") # b\"foo\" is a bytes object in Python 3.0) self.assertEqual(fspath(path), \"foo\") # b\"foo\" is a bytes object in Python 3.0) self.assertEqual(fspath(path), \"foo\") # b\"foo\" is a bytes object in Python 3.0) self.assertEqual(fspath(path), \"foo\") # b\"foo\" is a bytes object in Python 3.0) self.assertEqual(fspath(path), \"foo\")", + "exact_match": false, + "code_bleu": 0.4714045207910317, + "edit_similarity": 0.9230769230769231 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "\"will\")", + "got": "\"will\")", + "got_raw": "\"will\") * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "\"devs\")", + "got": "\"devs\")", + "got_raw": "\"devs\") * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 100", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "b\"foo\")", + "got": "data)", + "got_raw": "data) # data is a bytearray, not a bytes object) # data is a bytearray, not a bytes object) self.assertEqual(data) # data is a bytearray, not a bytes object) self.assertEqual(data) # data is a bytearray, not a bytes object) self.assertEqual(data) # data is a bytearray, not a bytes object) self.assertEqual(data) # data is a bytearray, not a bytes object) self.assertEqual(data) # data is a bytearray, not a bytes object) self.assertEqual(data) # data is a bytearray, not a bytes object) self.assertEqual(data) # data is a bytearray, not a bytes object", + "exact_match": false, + "code_bleu": 0.35818997727451396, + "edit_similarity": 0.16666666666666666 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "\"foo/\")", + "got": "\"foo\")", + "got_raw": "\"foo\") * 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) /", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.9230769230769231 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "\"/bar\")", + "got": "\"foo/bar\")", + "got_raw": "\"foo/bar\") * 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2)", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.8235294117647058 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "\"hello\")", + "got": "\"hello\")", + "got_raw": "\"hello\") * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) *", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "\"foofoo\")", + "got": "\"foofoo\")", + "got_raw": "\"foofoo\") * 2) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1)", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "\"1 byte\")", + "got": "\"1.0 bytes\")", + "got_raw": "\"1.0 bytes\")\n self.assertEqual(filesize.traditional(1024), \"1.0 KB\")\n self.assertEqual(filesize.traditional(1024 * 1024), \"1.0 MB\")", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.8571428571428571 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "\"1.0 KB\")", + "got": "\"1.0 KB\") * 1024) / 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1", + "got_raw": "\"1.0 KB\") * 1024) / 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1", + "exact_match": false, + "code_bleu": 0.02872319364304312, + "edit_similarity": 0.11392405063291139 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "\"1.0 MB\")", + "got": "\"1.0 MB\") * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1", + "got_raw": "\"1.0 MB\") * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1", + "exact_match": false, + "code_bleu": 0.02872319364304312, + "edit_similarity": 0.11392405063291139 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "\"1.5 MB\")", + "got": "\"1.5 GB\") * 1024 * 1024) / 1024 / 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 102", + "got_raw": "\"1.5 GB\") * 1024 * 1024) / 1024 / 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 102", + "exact_match": false, + "code_bleu": 0.022656702998386073, + "edit_similarity": 0.10126582278481013 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "\"1.0 kB\")", + "got": "\"1000 bytes\") * 1024 ** 2) / 1024 ** 2) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1", + "got_raw": "\"1000 bytes\") * 1024 ** 2) / 1024 ** 2) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1000) / 1000) * 1", + "exact_match": false, + "code_bleu": 0.020685774066901856, + "edit_similarity": 0.07317073170731707 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "\"1.2 MB\")", + "got": "\"1.1 kB\") * 1000) / 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1", + "got_raw": "\"1.1 kB\") * 1000) / 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1", + "exact_match": false, + "code_bleu": 0.021824907535865135, + "edit_similarity": 0.08860759493670886 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "\"bar.py\")", + "got": "\"bar.py\")", + "got_raw": "\"bar.py\") ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "b\"Hello\")", + "got": "b\"Hello\")", + "got_raw": "b\"Hello\") * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2)", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "\"foobar\")", + "got": "\"foobar\")", + "got_raw": "\"foobar\") * 8) * 16) * 2) * 4) * 8) * 16) * 2) * 4) * 8) * 16) * 2) * 4) * 8) * 16) * 2) * 4) * 8) * 16) * 2) * 4) * 8) * 16) * 2) * 4) * 8) * 16) * 2) * 4) * 8) * ", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "\"Source\")", + "got": "\"Source\")", + "got_raw": "\"Source\") * self.preserve_time) + 1) / self.preserve_time) - 1) * self.preserve_time) - 1) * self.preserve_time) - 1) * self.preserve_time) - 1) * self.preserve_time) - 1) * self.preserve_time) - 1) * self.preserve_time) - 1) * self.preserve_time) - 1) * self.preserve_time) - 1) * self.preserve_time) - 1) * self.preserve_time) - 1) * self.preserve_time", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "b\"foofoo\")", + "got": "b\"foofoo\")", + "got_raw": "b\"foofoo\") * 2) + b\"foofoo\") * 2) + b\"foofoo\") * 2) + b\"foofoo\") * 2) + b\"foofoo\") * 2) + b\"foofoo\") * 2) + b\"foofoo\") * 2) + b\"foofoo\") * 2) + b\"foofoo\") * 2) + b\"foofoo\") * 2) + b\"foofoo\") * 2) + b\"foofoo\") * 2) + b\"foofoo\") * 2", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "\"oh dear\")", + "got": "\"oh dear\") )", + "got_raw": "\"oh dear\") )", + "exact_match": false, + "code_bleu": 0.5946035575013605, + "edit_similarity": 0.9090909090909091 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "\"0 bytes\")", + "got": "0) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024)", + "got_raw": "0) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024) * 1024)", + "exact_match": false, + "code_bleu": 0.021431504804105744, + "edit_similarity": 0.02564102564102564 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "\"2 bytes\")", + "got": "\"2 bytes\") * 1024 ** 2) / 1024 ** 2) * 100) / 100) * 100) / 100) * 100) / 100) * 100) / 100) * 100) / 100) * 100) / 100) * 100) / 100) * 100) / 100) * 100) /", + "got_raw": "\"2 bytes\") * 1024 ** 2) / 1024 ** 2) * 100) / 100) * 100) / 100) * 100) / 100) * 100) / 100) * 100) / 100) * 100) / 100) * 100) / 100) * 100) / 100) * 100) / ", + "exact_match": false, + "code_bleu": 0.02389790307453075, + "edit_similarity": 0.11976047904191617 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "p)", + "got": "p)", + "got_raw": "p) # True) # False) # False) # True) # False) # False) # True) # False) # False) # True) # False) # False) # True) # False) # False) # True) # False) # False) # True) # False) # False) # True) # False) # False) # True) # False) # False) # True) # False) # False) # True) # False) # False) # True) # False) # False) # True) # False) # False) # True) # False) # False)", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "m2)", + "got": "m2)", + "got_raw": "m2) m1.close() m2.close() ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "pp)", + "got": "pp)", + "got_raw": "pp)", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "fs)", + "got": "os.path.basename(fs._tar_file))", + "got_raw": "os.path.basename(fs._tar_file)) * os.remove(fs._tar_file) * os.remove( os.path.basename(fs._tar_file) + \".xz\" ) * os.remove(os.path.basename(fs._tar_file) + \".xzinfo\" ) ) * os.remove(fs._tar_file) ) * os.remove(os.path.basename(fs._tar_file) + \".xz\" ) * os.remove(os.path.basename(fs._tar_file) + \".xzinfo\" ) ) * os.remove(fs._tar_file) ) * os.remove(os.path.basename(fs._tar_file) + \".xz\" ) * os.remove(os.path.basename(fs._tar", + "exact_match": false, + "code_bleu": 0.12605968092174913, + "edit_similarity": 0.17647058823529413 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "bool)", + "got": "bool)", + "got_raw": "bool) is False) is False) is True) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False)", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "list)", + "got": "dict)", + "got_raw": "dict) is True) is False) is True) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None)", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.6 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "OSFS)", + "got": "OSFS)", + "got_raw": "OSFS) osfs) osfs) osfs) osfs) osfs) osfs) osfs) osfs) osfs) osfs) osfs) osfs) osfs) osfs) osfs) osfs) osfs) osfs) osfs) osfs) osfs) osfs) osfs) osfs) osfs) osfs) osfs) osfs) osfs) osfs) osfs) osfs) osfs) osfs) osfs) osfs) osfs) osfs) osfs) osfs) osfs) osfs", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "data1)", + "got": "data1)", + "got_raw": "data1) * workers + data3) * workers + data4) * workers) + data2) * workers) + data3) * workers + data4) * workers) + data1) * workers) + data2) * workers + data3) * workers + data4) * workers) + data1) * workers + data2) * workers + data3) * workers + data4) * workers) + data1) * workers + data2) * workers + data3) * workers + data4) * workers) + data1) * workers + data2) * workers + data", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "data2)", + "got": "data2)", + "got_raw": "data2) * 2) * 3) * 7) * 4) * 2) * 3) * 7) * 4) * 2) * 3) * 7) * 4) * 2) * 3) * 7) * 4) * 2) * 3) * 7) * 4) * 2) * 3) * 7) * 4) * 2) * 3) * 7) * 4) * 2) * 3) * 7) *", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "data3)", + "got": "data3)", + "got_raw": "data3) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) *", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "data4)", + "got": "data4)", + "got_raw": "data4) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) *", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "FTPFS)", + "got": "FTPFS)", + "got_raw": "FTPFS) # noqa: E701) # pylint: disable=E701) # E701: \"FTPFS should be a class\" # E702: \"FTPFS should have a 'host' attribute\" # E703: \"FTPFS should have a 'port' attribute\" # E704: \"FTPFS should have a 'username' attribute\" # E705: \"FTPFS should have a 'password' attribute\" # E706: \"FTPFS should have a 'timeout' attribute\" # E707: \"FTP", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "SubFS)", + "got": "FTPFS)", + "got_raw": "FTPFS) True) True) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.5 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "bytes)", + "got": "bytes)", + "got_raw": "bytes) # XXX: why?) # XXX: why?) # XXX: why?) # XXX: why?) # XXX: why?) # XXX: why?) # XXX: why?) # XXX: why?) # XXX: why?) # XXX: why?) # XXX: why?) # XXX: why?) # XXX: why?) # XXX: why?) # XXX: why?) # XXX: why?) # XXX: why?) # XXX: why?) # XXX: why?) # XXX: why?) # XXX: why?)", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "NoURL)", + "got": "NoURL)", + "got_raw": "NoURL) self.fs.geturl())\n\n def test_geturl_for_fs(self):\n self.fs._file = six.StringIO() # NOTE: StringIO is a binary IO\n self.fs.geturl()) # NOTE: this should return a URL for a binary file\n self.fs._file = six.StringIO('') # NOTE: this should return a URL for a text file\n self.fs.geturl()) # NOTE: this should return a URL for a text file\n self.fs._file = six.StringIO('a') # NOTE: this should return a URL for a byte file\n self", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "NoURL)", + "got": "NoURL)", + "got_raw": "NoURL) self.fs.geturl())\n\n def test_geturl_for_fs(self):\n self.fs._file = six.StringIO() # NOTE: this is a binary stream, not a text stream.\n self.fs.geturl()) # NOTE: this is a text stream.\n self.fs._file = six.BytesIO() # NOTE: this is a binary stream, not a text stream.\n self.fs.geturl()) # NOTE: this is a text stream.\n self.fs._file = six.StringIO() # NOTE: this is a text stream, not a binary stream.\n ", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "copied)", + "got": "copied)", + "got_raw": "copied) # file should be copied) # file should be copied) # file should be copied) # file should be copied) # file should be copied) # file should be copied) # file should be copied) # file should be copied) # file should be copied) # file should be copied) # file should be copied) # file should be copied) # file should be copied) # file should be copied) # file should be copied) # file should be copied) # file should be copied) # file should be copied) # file should be copied) # file should be copied) # file should be copied", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "levels)", + "got": "levels)", + "got_raw": "levels) if expected_matches else expected_not_matches) for path in expected_matches) if path in translated) for path in expected_not_matches) if path not in translated) for path in glob_pattern.iterate_recurse()) for path in glob_pattern.iterate_recurse()) if path in glob_pattern) for path in glob_pattern.iterate_recurse()) if path in glob_pattern) for path in glob_pattern.iterate_recurse()) if path in glob_pattern) for path in glob_pattern.iterate_recurse()) if path in glob_pattern) for path in glob_pattern.iterate_recurse()) if path in glob", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "parsed)", + "got": "parsed)", + "got_raw": "parsed) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "result)", + "got": "result)", + "got_raw": "result) * result) * result) * result) * result) * result) * result) * result) * result) * result) * result) * result) * result) * result) * result) * result) * result) * result) * result) * result) * result) * result) * result) * result) * result) * result) * result) * result) * result) * result) * result) * result) * result) * result) * result) * result) * result) * result) * result) * result) * result) * result) * result)", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "IOError)", + "got": "IOError)", + "got_raw": "IOError) # no such file or directory) f.write(\"Hello\\n\") f.write(\"World\\n\") f.write(\"\") f.write(\"\") f.write(\"\") f.write(\"\") f.write(\"\") f.write(\"\") f.write(\"\") f.write(\"\") f.write(\"\") f.write(\"\") f.write(\"\") f.write(\"\") f.write(\"\") f.write(\"\") f.write(\"\") f.write(\"\") f.write(\"\") f.write(\"\") f.write(\"\") f.write(\"\") f.write(\"\") f.write(\"\") f.write(\"\") f.write(\"\") f.write(\"\") f.write(\"\") f.write", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "cleanup)", + "got": "cleanup)", + "got_raw": "cleanup) if cleanup else True) else False) if not cleanup else True) else False) else False) else True) else False) else True) else False) else True) else False) else True) else False) else True) else False) else True) else False) else True) else False) else True) else False) else True) else False) else True) else False) else True) else False) else True) else False) else True) else False) else True) else False) else True) else False) else True) else False) else True) else False) else True) else", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "FSError)", + "got": "FSError)", + "got_raw": "FSError) as e) as mck) as e) as mck) as mck) as mck) as mck) as mck) as mck) as mck) as mck) as mck) as mck) as mck) as mck) as mck) as mck) as mck) as mck) as mck) as mck) as mck) as mck) as mck) as mck) as mck) as mck) as mck) as mck) as mck) as mck) as mck", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "OSError)", + "got": "OSError)", + "got_raw": "OSError) as e) as exc: self.test_copy() exc) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "FSError)", + "got": "FSError)", + "got_raw": "FSError) as e) as exc: self.fs.walk.files(search=\"depth\", ignore_errors=False))\n self.assertEqual(str(e.exception) == \"can't read dir\")])", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "expected)", + "got": "expected)", + "got_raw": "expected) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * ", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "expected)", + "got": "expected)", + "got_raw": "expected) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * ", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "expected)", + "got": "expected)", + "got_raw": "expected)", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "MemoryFS)", + "got": "MemoryFS)", + "got_raw": "MemoryFS) True) True) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "MemoryFS)", + "got": "MemoryFS)", + "got_raw": "MemoryFS) as mem_fs) as mem_fs: mem_fs = mem_fs) as mem_fs: mem_fs = mem_fs) as mem_fs: mem_fs = mem_fs) as mem_fs: mem_fs = mem_fs) as mem_fs: mem_fs = mem_fs) as mem_fs: mem_fs = mem_fs) as mem_fs: mem_fs = mem_fs) as mem_fs: mem_fs = mem_fs) as mem_fs: mem_fs = mem_fs) as mem_fs: mem_fs = mem_fs) as mem_fs: mem_fs = mem_fs) as mem_fs: mem_fs = mem_fs) as", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "contents)", + "got": "contents)", + "got_raw": "contents) * sys.version_info[0] < 3) * sys.version_info[0] < 3) * sys.version_info[0] < 3) * sys.version_info[0] < 3) * sys.version_info[0] < 3) * sys.version_info[0] < 3) * sys.version_info[0] < 3) * sys.version_info[0] < 3) * sys.version_info[0] < 3) * sys.version_info[0] < 3) * sys.version_info[0] < 3) * sys.version_info[", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "expected)", + "got": "expected)", + "got_raw": "expected) + \"\\n\") * 1000) / 1000) < 0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "expected)", + "got": "expected)", + "got_raw": "expected) * expected) * path_component) * expected) * path_component) * expected) * path_component) * expected) * path_component) * expected) * path_component) * expected) * path_component) * expected) * path_component) * expected) * path_component) * expected) * path_component) * expected) * path_component) * expected) * path_component) * expected) * path_component) * expected) * path_component) * expected) * path_component) * expected) * path_component) * expected) * path_component) * expected) * path_component) * expected) * path_component)", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "expected)", + "got": "expected)", + "got_raw": "expected)", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "expected)", + "got": "expected)", + "got_raw": "expected) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * ", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "expected)", + "got": "expected)", + "got_raw": "expected)", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "expected)", + "got": "expected)", + "got_raw": "expected) * expected) * expected) * expected) * expected) * expected) * expected) * expected) * expected) * expected) * expected) * expected) * expected) * expected) * expected) * expected) * expected) * expected) * expected) * expected) * expected) * expected) * expected) * expected) * expected) * expected) * expected) * expected) * expected) * expected) * expected) * expected) * expected) * expected) * expected) * expected) * expected) * expected) * expected) * expected) * expected) * expected) * expected)", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "expected)", + "got": "sorted(expected", + "got_raw": "sorted(expected, key=key)) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * ", + "exact_match": false, + "code_bleu": 0.4518010018049224, + "edit_similarity": 0.6666666666666666 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "expected)", + "got": "expected)", + "got_raw": "expected) * os.sep) + test_file) * os.sep) + test_file) * os.sep) + test_file) * os.sep) + test_file) * os.sep) + test_file) * os.sep) + test_file) * os.sep) + test_file) * os.sep) + test_file) * os.sep) + test_file) * os.sep) + test_file) * os.sep) + test_file) * os.sep) + test_file) * os.sep) + test_file) * os.sep) + test_file) * os.sep) + test_file) * os.sep) + test", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "text_type)", + "got": "text_type)", + "got_raw": "text_type) # unicode) # text_type) # text_type) # text_type) # text_type) # text_type) # text_type) # text_type) # text_type) # text_type) # text_type) # text_type) # text_type) # text_type) # text_type) # text_type) # text_type) # text_type) # text_type) # text_type) # text_type) # text_type) # text_type) # text_type) # text_type) # text_type) # text_type) # text_type) # text_type) # text_type) # text_type) # text", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "TypeError)", + "got": "errors.InvalidPathError)", + "got_raw": "errors.InvalidPathError) as e) as exc:\n self.fs.validatepath(\"/ad/sd\") # invalid path, should raise error\n self.fs.validatepath(\"/ad/sd/\") # valid path, should not raise error\n self.fs.validatepath(\"/ad/sd//\") # invalid path, should raise error (double slash)\n self.fs.validatepath(\"/ad/sd/..\") # valid path, should not raise error (double slash)\n self.fs.validatepath(\"/ad/sd/..//\") # invalid path, should raise error (double slash)\n self.fs.validatepath(\"/", + "exact_match": false, + "code_bleu": 0.35930411196308426, + "edit_similarity": 0.4117647058823529 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "exception)", + "got": "\"Resource", + "got_raw": "\"Resource not found\") ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "exact_match": false, + "code_bleu": 0.4518010018049224, + "edit_similarity": 0.3157894736842105 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "TypeError)", + "got": "ValueError)", + "got_raw": "ValueError) as e) as f: filesize('not a file') * 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.6666666666666666 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "0o777)", + "got": "Permissions.NONE)", + "got_raw": "Permissions.NONE) # noqa: E501) # pylint: disable=E501) # noqa: E501) # pylint: disable=E501) # noqa: E501) # noqa: E501) # noqa: E501) # noqa: E501) # noqa: E501) # noqa: E501) # noqa: E501) # noqa: E501) # noqa: E501) # noqa: E501) # noqa: E501) # noqa:", + "exact_match": false, + "code_bleu": 0.35930411196308426, + "edit_similarity": 0.17391304347826086 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "0o755)", + "got": "0o755)", + "got_raw": "0o755) * 0o777) >> 11) & 0o755) << 11) & 0o777) >> 6) & 0o777) << 6) & 0o777) >> 2) & 0o777) << 2) & 0o777) >> 0) & 0o777) << 0) & 0o777) >> 8) & 0o777) << 8)", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "0o700)", + "got": "0o655)", + "got_raw": "0o655) * 0o400) >> 6) & 0o777) >> 2) & 0o777) >> 1) & 0o777) >> 0) & 0o777) >> 4) & 0o777) >> 8) & 0o777) >> 16) & 0o777) >> 24) & 0o777) >> 32) & 0o777) >> 4", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.5 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "0o764)", + "got": "664)", + "got_raw": "664) << 16) | 0o644) << 8) | 0o620) | 0o622) | 0o623) | 0o624) | 0o625) | 0o626) | 0o627) | 0o628) | 0o629) | 0o630) | 0o631) | 0o632) | 0o633) | 0", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.6 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "p.u_r)", + "got": "p)", + "got_raw": "p) # no permissions) # no permissions) # no permissions) # no permissions) # no permissions) # no permissions) # no permissions) # no permissions) # no permissions) # no permissions) # no permissions) # no permissions) # no permissions) # no permissions) # no permissions) # no permissions) # no permissions) # no permissions) # no permissions) # no permissions) # no permissions) # no permissions) # no permissions) # no permissions) # no permissions) # no permissions) # no permissions) # no permissions) # no permissions) # no permissions) # no permissions) # no", + "exact_match": false, + "code_bleu": 0.29730177875068026, + "edit_similarity": 0.5 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "args[0])", + "got": "exc)", + "got_raw": "exc) as excp:\n pool.apply_async(args[2])()\n self.assertEqual(str(excp.exception), str(exc))\n finally:\n pool.close()", + "exact_match": false, + "code_bleu": 0.2149139863647084, + "edit_similarity": 0.16666666666666666 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "dates[0])", + "got": "dates[0])", + "got_raw": "dates[0]) * 1000) / 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 100", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "dates[1])", + "got": "dates[1])", + "got_raw": "dates[1]) * 1000) / 86400) - 1) * 86400) - 1) * 86400) - 1) * 86400) - 1) * 86400) - 1) * 86400) - 1) * 86400) - 1) * 86400) - 1) * 86400) - 1) * 86400) -", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "dates[2])", + "got": "dates[2])", + "got_raw": "dates[2]) * 1000) / 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 100", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "dates[3])", + "got": "dates[3])", + "got_raw": "dates[3]) * 1000) / 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 100", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "info.name)", + "got": "info.basic)", + "got_raw": "info.basic) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None", + "exact_match": false, + "code_bleu": 0.5081327481546147, + "edit_similarity": 0.6666666666666666 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "mode.text)", + "got": "mode.check)", + "got_raw": "mode.check) == mode.check) == mode.check) == mode.check) == mode.check) == mode.check) == mode.check) == mode.check) == mode.check) == mode.check) == mode.check) == mode.check) == mode.check) == mode.check) == mode.check) == mode.check) == mode.check) == mode.check) == mode.check) == mode.check) == mode.check) == mode.check) == mode.check) == mode.check) == mode.check) == mode.check) == mode.check) == mode.check) == mode.check) == mode.check) == mode.check) == mode.check) ==", + "exact_match": false, + "code_bleu": 0.5081327481546147, + "edit_similarity": 0.6666666666666666 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "bar.is_dir)", + "got": "bar.is_file)", + "got_raw": "bar.is_file) self.assertEqual(bar.get(\"details\", \"type\")) ResourceType.file) ) self.assertEqual(bar.get(\"details\", \"size\", 0), 10) self.assertEqual(bar.get(\"details\", \"mtime\", 0), 1) self.assertEqual(bar.get(\"details\", \"ctime\", 0), 0) self.assertEqual(bar.get(\"details\", \"permissions\", \"rwx\"), \"rwx\") self.assertEqual(bar.get(\"details\", \"owner\", \"root\"), \"root\") self.assertEqual(bar.get(\"details\", \"group\", \"wheel\")) \"wheel\") self.assertEqual(bar.get(\"details\", \"link\", None", + "exact_match": false, + "code_bleu": 0.5081327481546147, + "edit_similarity": 0.782608695652174 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "top.is_dir)", + "got": "top.access)", + "got_raw": "top.access) # access time is not supported on Windows) ) self.fs.getinfo(\"foo/bar/egg\") ) self.fs.getinfo(\"unicode\") ) self.fs.getinfo(\"unicode/text.txt\") ) self.fs.getinfo(\"foo/bar/baz\") ) self.fs.getinfo(\"foo/bar/baz/egg\") ) self.fs.getinfo(\"foo/bar/baz/egg/egg\") ) self.fs.getinfo(\"foo/bar/baz/egg/egg/egg\") ) self.fs.getinfo(\"foo/bar/baz/egg/egg/egg/egg\") ) self.fs.getinfo(\"foo/bar/baz/egg", + "exact_match": false, + "code_bleu": 0.5081327481546147, + "edit_similarity": 0.5454545454545454 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "os.SEEK_CUR)", + "got": "\"current\")", + "got_raw": "\"current\") * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) *", + "exact_match": false, + "code_bleu": 0.2686424829558855, + "edit_similarity": 0.09090909090909091 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "os.SEEK_END)", + "got": "os.SEEK_END)", + "got_raw": "os.SEEK_END)", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "os.SEEK_SET)", + "got": "os.SEEK_SET)", + "got_raw": "os.SEEK_SET)", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "ftps_fs.tls)", + "got": "ftps_fs.secure)", + "got_raw": "ftps_fs.secure) == True) self.assertEqual(ftps_fs.port) == 443) self.assertEqual(ftps_fs.scheme) == \"ftps\") self.assertEqual(ftps_fs.path) == \"\" self.assertEqual(ftps_fs.auth) == (\"will\", \"wfc\") self.assertEqual(ftps_fs.user) == \"will\" self.assertEqual(ftps_fs.password) == \"wfc\") self.assertEqual(ftps_fs.debug) == False self.assertEqual(ftps_fs.timeout) == 10) self.assertEqual(ftps_fs.ftp_version) == \"1.2\") self.assertEqual(ftps_fs.ftp_path) == \"", + "exact_match": false, + "code_bleu": 0.5081327481546147, + "edit_similarity": 0.7407407407407407 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "self.mem_fs)", + "got": "self.mem_fs)", + "got_raw": "self.mem_fs) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1)", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "foo_info.raw)", + "got": "foo_info.namespaces)", + "got_raw": "foo_info.namespaces) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2", + "exact_match": false, + "code_bleu": 0.5081327481546147, + "edit_similarity": 0.6666666666666666 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "bar_info.raw)", + "got": "bar_info.raw)", + "got_raw": "bar_info.raw) and self.assertIn(\"lstat\", bar_info.raw) \\\n and bar_info.get(\"link\", \"target\") == \"foo\" \\\n and bar_info.target == bar_info.raw[\"link\"][\"target\"] \\\n and bar_info.raw[\"link\"][\"target\"] == \"foo\" \\\n and bar_info.raw[\"link\"][\"target\"] is None \\\n and bar_info.raw[\"link\"][\"target\"] == None \\\n and bar_info.raw[\"link\"][\"target\"] != \"foo\" \\\n and bar_info.raw[\"link\"][\"target\"] != \"bar\" \\\n and", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "errors.NoURL)", + "got": "ValueError)", + "got_raw": "ValueError) self.fs.geturl()) self.fs.seturl(\"http://\") self.fs.seturl(\"http://\") self.fs.seturl(\"http://\") self.fs.seturl(\"http://\") self.fs.seturl(\"http://\") self.fs.seturl(\"http://\") self.fs.seturl(\"http://\") self.fs.seturl(\"http://\") self.fs.seturl(\"http://\") self.fs.seturl(\"http://\") self.fs.seturl(\"http://\") self.fs.seturl(\"http://\") self.fs.seturl(\"http://\") self.fs.seturl(\"http://\") self.fs.seturl(\"http://\")", + "exact_match": false, + "code_bleu": 0.2686424829558855, + "edit_similarity": 0.5 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "six.text_type)", + "got": "str)", + "got_raw": "str) or isinstance(info.name, bytes) else info.name) as name) as info in test_fs.scandir(\"/\"):\n self.assertTrue(info.name) is not None) as info in test_fs.scandir(\"/\"): self.assertTrue(info.name) is not None) as info in test_fs.scandir(\"/\"): self.assertTrue(info.name) is not None) as info in test_fs.scandir(\"/\"): self.assertTrue(info.name) is not None) as info in test_fs.scandir(\"/\"): self.assertTrue(info.name) is not None) as info in test_fs.scandir(\"/\"): self.assertTrue(info.name) is", + "exact_match": false, + "code_bleu": 0.2686424829558855, + "edit_similarity": 0.3333333333333333 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "six.text_type)", + "got": "str)", + "got_raw": "str) and text == UNICODE_TEXT.decode(\"utf-8\") + \"\\n\" + \"foofoo\" + \"\\n\" + \"barbar\" + \"\\n\" + \"foofoo\" + \"\\n\" + \"barbar\" + \"\\n\" + \"foofoo\" + \"\\n\" + \"barbar\" + \"\\n\" + \"foofoo\" + \"\\n\" + \"barbar\" + \"\\n\" + \"foofoo\" + \"\\n\" + \"barbar\" + \"\\n\" + \"foofoo\" + \"\\n\" + \"barbar\" + \"\\n\" + \"foo", + "exact_match": false, + "code_bleu": 0.2686424829558855, + "edit_similarity": 0.3333333333333333 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "self.lrucache)", + "got": "self.lrucache)", + "got_raw": "self.lrucache) True)\n self.assertIn(\"bar\", self.lrucache) False)\n self.assertIn(\"baz\", self.lrucache) True)\n self.assertIn(\"foo\", self.lrucache) True) False)\n self.assertIn(\"foo\", self.lrucache) False) True) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "six.text_type)", + "got": "str)", + "got_raw": "str) # path should be a unicode string on Python 3.0+ (or a str on 2.7+)\n self.assertEqual(path, \"\u0424\u0430\u0439\u043b\") # path should be a unicode string on Python 3.0+ (or a str on 2.7+)", + "exact_match": false, + "code_bleu": 0.2686424829558855, + "edit_similarity": 0.3333333333333333 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "self.server.host)", + "got": "self.server.host)", + "got_raw": "self.server.host) * 1000) + 1) * 1000) + 1) * 1000) + 1) * 1000) + 1) * 1000) + 1) * 1000) + 1) * 1000) + 1) * 1000) + 1) * 1000) + 1) * 1000) + 1) * 1000) + 1) * 1", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "self.fs.features)", + "got": "self.server.dir)", + "got_raw": "self.server.dir) * 1000) - 1) / 1000) < 1) < 0.1) < 0.01) < 0.001) < 0.0001) < 0.00001) < 0.000001) < 0.0000001) < 0.00000001) < 0.000000001) < 0.00000000", + "exact_match": false, + "code_bleu": 0.3303164318013807, + "edit_similarity": 0.6060606060606061 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "io.BufferedWriter)", + "got": "io.BytesIO)", + "got_raw": "io.BytesIO) f) > 0) > 0) > 0) > 0) > 0) > 0) > 0) > 0) > 0) > 0) > 0) > 0) > 0) > 0) > 0) > 0) > 0) > 0) > 0) > 0) > 0) > 0) > 0) > 0) > 0) > 0) > 0) > 0) > 0) > 0) > ", + "exact_match": false, + "code_bleu": 0.5081327481546147, + "edit_similarity": 0.4827586206896552 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "io.BufferedReader)", + "got": "io.BufferedReader)", + "got_raw": "io.BufferedReader) # buffering=1 should be buffered by default.\nself.assertEqual(\"Hello\") * 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "tarfile.ReadError)", + "got": "NotWriteable)", + "got_raw": "NotWriteable) as exc) as msg:\n fs.add(\"\", compress=other_comps) * 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.2686424829558855, + "edit_similarity": 0.3870967741935484 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "errors.InvalidPath)", + "got": "errors.PathTooLongError)", + "got_raw": "errors.PathTooLongError) as e) as exc: self.fs.validatepath(\"01234567890\") * 10) * 10) * 10) * 10) * 10) * 10) * 10) * 10) * 10) * 10) * 10) * 10) * 10) * 10) * 10) * 10) * 10) * 10) * 10) * 10", + "exact_match": false, + "code_bleu": 0.5081327481546147, + "edit_similarity": 0.5581395348837209 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "[])", + "got": "[])", + "got_raw": "[]) # empty list of files or directories) ) # no files or directories) ) # no files or directories) ) # no files or directories) ) # no files or directories) ) # no files or directories) ) # no files or directories) ) # no files or directories) ) # no files or directories) ) # no files or directories) ) # no files or directories) ) # no files or directories) ) # no files or directories) ) # no files or directories) ) # no files or directories) ) # no files or directories) ) # no files or directories) ) # no files or directories)", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "[])", + "got": "[])", + "got_raw": "[]) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "[])", + "got": "sorted(translate_test_cases))", + "got_raw": "sorted(translate_test_cases))", + "exact_match": false, + "code_bleu": 0.2730120862709067, + "edit_similarity": 0.0625 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "[])", + "got": "[])", + "got_raw": "[]) ) self.assertEqual(info.stem, \"foo\") ) self.assertEqual(info.suffixes, [\".gz\"]) ) self.assertEqual(info.stem, \"foo.tar\") ) self.assertEqual(info.suffixes, [\".gz\", \".tar\"]) ) self.assertEqual(info.stem, \"foo.tar.gz\") ) self.assertEqual(info.suffixes, [\".gz\", \".tar.gz\"]) ) self.assertEqual(info.stem, \"foo.tar.gz\") ) self.assertEqual(info.suffixes, [\".gz\"]) ) self.assertEqual(info.stem, \"foo.tar.gz\") ) self.assertEqual(info.suffixes, [\".tar\"]) ) self.assertEqual(info.stem, \"foo", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "[])", + "got": "[])", + "got_raw": "[]) # no files or directories in root of mount FS) # no files or directories in root of mount FS) # no files or directories in root of mount FS) # no files or directories in root of mount FS) # no files or directories in root of mount FS) # no files or directories in root of mount FS) # no files or directories in root of mount FS) # no files or directories in root of mount FS) # no files or directories in root of mount FS) # no files or directories in root of mount FS) # no files or directories in root of mount FS) # no files or directories in", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "[])", + "got": "[\"test\"])", + "got_raw": "[\"test\"]) # test.tar is a directory, not a file) # test.tar is a directory, not a file) # test.tar is a directory, not a file) # test.tar is a directory, not a file) # test.tar is a directory, not a file) # test.tar is a directory, not a file) # test.tar is a directory, not a file) # test.tar is a directory, not a file) # test.tar is a directory, not a file) # test.tar is a directory, not a file) # test.tar is a directory, not a file) # test.tar is", + "exact_match": false, + "code_bleu": 0.5081327481546147, + "edit_similarity": 0.5 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "[])", + "got": "[])", + "got_raw": "[])", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "[])", + "got": "[])", + "got_raw": "[]) * 0) * 0) * 0) * 0) * 0) * 0) * 0) * 0) * 0) * 0) * 0) * 0) * 0) * 0) * 0) * 0) * 0) * 0) * 0) * 0) * 0) * 0) * 0) * 0) * 0) * 0) * 0) * 0) * 0) * 0) * 0) * 0", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "[\"/\"])", + "got": "(\"/\")))", + "got_raw": "(\"/\"))) # NOTE: this is a tuple) # NOTE: this is a tuple) # NOTE: this is a tuple) # NOTE: this is a tuple) # NOTE: this is a tuple) # NOTE: this is a tuple) # NOTE: this is a tuple) # NOTE: this is a tuple) # NOTE: this is a tuple) # NOTE: this is a tuple) # NOTE: this is a tuple) # NOTE: this is a tuple) # NOTE: this is a tuple) # NOTE: this is a tuple) # NOTE: this is a tuple) # NOTE: this is", + "exact_match": false, + "code_bleu": 0.3021375397356768, + "edit_similarity": 0.6153846153846154 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "[\"./\"])", + "got": "[])", + "got_raw": "[]) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2", + "exact_match": false, + "code_bleu": 0.47920732818470435, + "edit_similarity": 0.6 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "[\"foo\"])", + "got": "[\"foo\"])", + "got_raw": "[\"foo\"])", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "[\"foo\"])", + "got": "[\"m1\"", + "got_raw": "[\"m1\", \"m2\"]) # m1 and m2 are listed twice. m1 and m2 should be unique. ) # m1 and m2 should be unique. ) # m1 and m2 should be unique. ) # m1 and m2 should be unique. ) # m1 and m2 should be unique. ) # m1 and m2 should be unique. ) # m1 and m2 should be unique. ) # m1 and m2 should be unique. ) # m1 and m2 should be unique. ) # m1 and m2 should be unique. ) #", + "exact_match": false, + "code_bleu": 0.2686424829558855, + "edit_similarity": 0.46153846153846156 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "[\"baz\"])", + "got": "[\"baz\"])", + "got_raw": "[\"baz\"]) * 1) * 2) * 3) * 4) * 5) * 6) * 7) * 8) * 9) * 10) * 11) * 12) * 13) * 14) * 15) * 16) * 17) * 18) * 19) * 20) * 21) * 22) * 23) * 24) * 25) * 26) * 27", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "(None, None))", + "got": "(None, None))", + "got_raw": "(None, None))\n self.fs.add_fs(\"mem2\", MemoryFS())\n self.fs.add_fs(\"mem3\", MemoryFS())\n self.fs.add_fs(\"mem4\", MemoryFS())\n self.fs.add_fs(\"mem5\", MemoryFS())\n self.fs.add_fs(\"mem6\", MemoryFS())\n self.fs.add_fs(\"mem7\", MemoryFS())\n self.fs.add_fs(\"mem8\", MemoryFS())\n self.fs.add_fs(\"mem9\", MemoryFS())\n self.fs.add_fs(\"mem10\", MemoryFS())\n self.fs.add_fs", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "[\"spam.txt\"])", + "got": "[])", + "got_raw": "[])", + "exact_match": false, + "code_bleu": 0.47920732818470435, + "edit_similarity": 0.375 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "fspath(path)", + "got": "PathMock(path)()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()", + "got_raw": "PathMock(path)()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()", + "exact_match": false, + "code_bleu": 0.008800738410613521, + "edit_similarity": 0.06569343065693431 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "f1.isatty())", + "got": "f1.isatty())", + "got_raw": "f1.isatty()) # text files are not tty's\n self.assertTrue(f1.isatty()) # binary files are tty's\n self.assertFalse(f1.isatty()) # text files are not tty's (binary)\n self.assertTrue(f1.isatty()) # text files are tty's (text)\n self.assertFalse(f1.isatty()) # text files are not tty's (text) (binary)\n self.assertTrue(f1.isatty()) # text files are tty's (text, text) (binary) (text) (binary) (text) (binary) (text) (binary) (", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "m1.isclosed())", + "got": "mount_fs.closed)", + "got_raw": "mount_fs.closed) # Initially not closed\n\nmount_fs.close() # Close all mounts and the FS itself\nself.assertTrue(mount_fs.closed) # Now closed\nself.assertFalse(mount_fs.mounted) # No mounts left\nself.assertFalse(mount_fs.mounts) # No mounts as a list) # No mounts as a dict) # No mounts at all) # No mounts) # No mounts) # No mounts) # No mounts) # No mounts) # No mounts) # No mounts) # No mounts) # No mounts) #", + "exact_match": false, + "code_bleu": 0.26509024292235017, + "edit_similarity": 0.6 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "m2.isclosed())", + "got": "m2.isclosed())", + "got_raw": "m2.isclosed())\n self.assertFalse(mount_fs.isclosed()))\n self.assertTrue(mount_fs.close()))\n self.assertTrue(m1.isclosed())(m1))m1))m1))m1))m1))m1))m1))m1))m1))m1))m1))m1))m1))m1))m1))m1))m1))m1))m1))m1))m1))m1))m1))m1))m1))m1))m1))m1))m1))m1))m1", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "m1.isclosed())", + "got": "multi_fs.closed)", + "got_raw": "multi_fs.closed) # MultiFS should be open by default\nmulti_fs.close() # Close all FSs and check if they are closed\nself.assertTrue(m1.closed) # m1 should be closed after close() call\nself.assertTrue(m2.closed) # m2 should be closed after close() call)", + "exact_match": false, + "code_bleu": 0.26509024292235017, + "edit_similarity": 0.6666666666666666 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "m2.isclosed())", + "got": "m2.isclosed())", + "got_raw": "m2.isclosed()) multi_fs.close() self.assertTrue(m1.isclosed()) self.assertTrue(m2.isclosed()) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "matcher(\"foo.py\"))", + "got": "matcher('foo'", + "got_raw": "matcher('foo', 'foo')))\n self.assertFalse(matcher('foo', 'bar')))\n self.assertFalse(matcher('foo', 'foo')))\n\n self.assertTrue(matcher('foo', 'foo')))\n\n self.assertTrue(matcher('foo', 'foo*')))\n\n self.assertTrue(matcher('foo*', 'foo*')))\n self.assertFalse(matcher('foo*', 'foo'))))\n self.assertFalse(matcher('foo', '*foo'))))\n self.assertTrue(matcher('foo*', 'foo*'))))\n self.assertFalse(matcher('foo*', '*foo'))))\n ", + "exact_match": false, + "code_bleu": 0.3567621345008163, + "edit_similarity": 0.7096774193548387 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "matcher(\"foo.PY\"))", + "got": "matcher(\"foo\")))", + "got_raw": "matcher(\"foo\")))\n matcher = wildcard.get_matcher([\"*.py\"], False)\n self.assertFalse(matcher(\"foo\"))))\n self.assertTrue(matcher(\"foo.py\")))\n matcher = wildcard.get_matcher([\"foo.py\"], False))\n self.assertTrue(matcher(\"foo.py\"))))\n self.assertFalse(matcher(\"foo\"))))\n matcher = wildcard.get_matcher([\"foo.py\"], True))\n self.assertTrue(matcher(\"foo.py\"))))\n self.assertFalse(matcher(\"foo\"))))\n matcher = wildcard.get_matcher([\"foo.py\"], False))\n self.assertFalse", + "exact_match": false, + "code_bleu": 0.3655552228545124, + "edit_similarity": 0.8823529411764706 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "matcher(\"FOO.py\"))", + "got": "matcher(\"foo.PY\")))", + "got_raw": "matcher(\"foo.PY\")))\n self.assertFalse(matcher(\"foo\")))\n matcher = wildcard.get_matcher([\"foo\"], True)\n self.assertTrue(matcher(\"foo\")))\n self.assertFalse(matcher(\"foo\")))\n matcher = wildcard.get_matcher([\"foo\"], False)\n self.assertTrue(matcher(\"foo\"))))\n self.assertFalse(matcher(\"foo\"))))\n matcher = wildcard.get_matcher([\"foo\"], False) * 3) * 2) * 4) * 2) * 6) * 2) * 4) * 2)", + "exact_match": false, + "code_bleu": 0.3655552228545124, + "edit_similarity": 0.7027027027027027 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "self.fs.exists(\"a\"))", + "got": "globber.has())", + "got_raw": "globber.has()) * 3) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2)", + "exact_match": false, + "code_bleu": 0.2202109545342538, + "edit_similarity": 0.35294117647058826 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "self._contents(fs2))", + "got": "self._contents(fs2))", + "got_raw": "self._contents(fs2))", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "check_readable(\"r\"))", + "got": "check_readable(Mode.READABLE))", + "got_raw": "check_readable(Mode.READABLE)) from __future__ import unicode_literals import text_type) from fs.mode import Mode, check_readable, check_writable) from fs.mode import Mode, check_readable, check_writable) from fs.mode import Mode, check_readable, check_writable) from fs.mode import Mode, check_readable, check_writable) from fs.mode import Mode, check_readable, check_writable) from fs.mode import Mode, check_readable, check_writable) from fs.mode import Mode, check_readable, check_writable) from fs.mode import Mode, check_readable, check_writable) from fs.mode import Mode,", + "exact_match": false, + "code_bleu": 0.3073940764756322, + "edit_similarity": 0.68 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "check_readable(\"w\"))", + "got": "check_readable(\"w\")))", + "got_raw": "check_readable(\"w\")))\nself.assertFalse(check_readable(\"w+\")))\nself.assertFalse(check_readable(\"wt\")))\nself.assertFalse(check_readable(\"wb\")))\n\nself.assertTrue(check_writable(\"w\")))\nself.assertTrue(check_writable(\"w+\"))))\nself.assertTrue(check_writable(\"wt\"))))\nself.assertTrue(check_writable(\"wb\"))))", + "exact_match": false, + "code_bleu": 0.8091067115702212, + "edit_similarity": 0.975609756097561 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "check_readable(\"a\"))", + "got": "check_writable(\"r\")))", + "got_raw": "check_writable(\"r\")))", + "exact_match": false, + "code_bleu": 0.31239399369202553, + "edit_similarity": 0.7804878048780488 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "check_writable(\"w\"))", + "got": "check_writable(\"w\")))", + "got_raw": "check_writable(\"w\")))\n self.assertTrue(check_writable(\"w+\"))\n self.assertTrue(check_writable(\"wt\")))\n self.assertTrue(check_writable(\"wb\")))\n self.assertTrue(check_writable(\"a\"))))", + "exact_match": false, + "code_bleu": 0.8091067115702212, + "edit_similarity": 0.975609756097561 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "check_writable(\"r\"))", + "got": "check_writable(\"at\")))", + "got_raw": "check_writable(\"at\")))", + "exact_match": false, + "code_bleu": 0.3655552228545124, + "edit_similarity": 0.9047619047619048 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "src_fs.isempty(\"/\"))", + "got": "dst_fs.exists(\"test.txt\")))", + "got_raw": "dst_fs.exists(\"test.txt\")))\n self.assertTrue(dst_fs.exists(\"foo/bar/baz.txt\")))\n self.assertEqual(dst_file1_info, src_file1_info) )\n self.assertEqual(dst_file2_info, src_file2_info) )\n self.assertEqual(dst_fs.getinfo(\"test.txt\", namespaces)) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "exact_match": false, + "code_bleu": 0.239802967618271, + "edit_similarity": 0.5531914893617021 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "dst_fs.isdir(\"bar\"))", + "got": "dst_fs.exists(\"test.txt\")))", + "got_raw": "dst_fs.exists(\"test.txt\")))\n self.assertEqual(dst_fs.getinfo(\"test.txt\", namespaces)[\"details\"][\"modified\"]) < 1000000) < 1000000) < 1000000) < 1000000) < 1000000) < 1000000) < 1000000) < 1000000) < 1000000) < 1000000) < ", + "exact_match": false, + "code_bleu": 0.2777619034011791, + "edit_similarity": 0.5957446808510638 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "fs1.getsyspath(\"/\"))", + "got": "fs1.getsyspath(\"/\")))", + "got_raw": "fs1.getsyspath(\"/\"))) * os.sep) + \"TYRIONLANISTER\" + os.sep) + \"foo\" + os.sep) + \"bar\" + os.sep) + \"baz\" + os.sep) + \"TYRIONLANISTER\" + os.sep) + \"foo\" + os.sep) + \"bar\" + os.sep) + \"baz\" + os.sep) + \"TYRIONLANISTER\" + os.sep) + \"foo\" + os.sep) + \"bar\" + os.sep) + \"baz\" + os.sep) + \"TYRIONLANISTER\"", + "exact_match": false, + "code_bleu": 0.8633400213704505, + "edit_similarity": 0.975609756097561 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "fs2.getsyspath(\"/\"))", + "got": "fs2.getsyspath(\"/\"))", + "got_raw": "fs2.getsyspath(\"/\")) * os.sep) + os.sep + \"TYRIONLANISTER\" + os.sep) + \"TYRIONLANISTER\" + os.sep + \"TYRIONLANISTER\" + os.sep + \"TYRIONLANISTER\" + os.sep + \"TYRIONLANISTER\" + os.sep + \"TYRIONLANISTER\" + os.sep + \"TYRIONLANISTER\" + os.sep + \"TYRIONLANISTER\" + os.sep + \"TYRIONLANISTER\" + os.sep + \"TYRIONLANISTER\" + os.sep + \"TY", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "fs.isdir(\"foo/bar\"))", + "got": "fs.isfile(\"foo/bar/test.txt\")))", + "got_raw": "fs.isfile(\"foo/bar/test.txt\")))", + "exact_match": false, + "code_bleu": 0.2777619034011791, + "edit_similarity": 0.7058823529411765 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "ftp_fs.isfile(\"foo\"))", + "got": "ftp_fs.isfile(directory)))", + "got_raw": "ftp_fs.isfile(directory)))\n # Open the subdirectory and create it\n with open_fs(url, create=True) as ftp_fs:\n ftp_fs.mkdir(directory) # Create directory \"directory\" in the subdirectory \"test\" of the base URL.\n # Open the subdirectory and check it exists\n with open_fs(url) as ftp_fs: # Open the subdirectory \"test\" of the base URL.\n self.assertTrue(ftp_fs.isdir(directory)) # Check if the subdirectory \"test\" exists. ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "exact_match": false, + "code_bleu": 0.5133450480401704, + "edit_similarity": 0.723404255319149 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "src_fs.exists(\"foo\"))", + "got": "dst_fs.exists(\"test.txt\")))", + "got_raw": "dst_fs.exists(\"test.txt\")))\n self.assertTrue(dst_fs.exists(\"foo\")))\n self.assertTrue(dst_fs.exists(\"foo/bar\")))\n self.assertTrue(dst_fs.exists(\"foo/bar/baz.txt\")))\n self.assertEqual(dst_file2_info, src_file2_info) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "exact_match": false, + "code_bleu": 0.3549481056010052, + "edit_similarity": 0.6666666666666666 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "os.path.isdir(_path))", + "got": "os.path.isdir(_path))", + "got_raw": "os.path.isdir(_path)) * os.path.isdir(_path)) * os.path.isfile(_path)) * os.path.isdir(_path)) * os.path.isfile(_path)) * os.path.isdir(_path)) * os.path.isfile(_path)) * os.path.isdir(_path)) * os.path.isfile(_path)) * os.path.isdir(_path)) * os.path.isfile(_path)) * os.path.isdir(_path)) * os.path.isfile(_path)) * os.path.isdir(_path)) * os.path.isfile(_path)) * os.path.isdir(_path)) * os.path.isfile(_path)) * os.path.isdir(_path)) * os.path", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "self.fs.isdir(\"foo\"))", + "got": "self.fs.isdir(\"foo\")))", + "got_raw": "self.fs.isdir(\"foo\"))) # type: ignore[no-unbound-arg] ) # type: ignore[no-unbound-arg] ) # type: ignore[no-unbound-arg] ) # type: ignore[no-unbound-arg] ) # type: ignore[no-unbound-arg] ) # type: ignore[no-unbound-arg] ) # type: ignore[no-unbound-arg] ) # type: ignore[no-unbound-arg] ) # type: ignore[no-unbound-arg] ) # type: ignore[no-unbound-arg] ) #", + "exact_match": false, + "code_bleu": 0.8931539818068694, + "edit_similarity": 0.9767441860465116 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "self.fs.getinfo(\"/\"))", + "got": "self.fs.getinfo(\"/\")))", + "got_raw": "self.fs.getinfo(\"/\")))\n self.assertEqual(self.cached.getinfo(\"bar\"), self.fs.getinfo(\"bar\")))\n self.assertEqual(self.cached.getinfo(\"baz\"), self.fs.getinfo(\"baz\")))\n self.assertNotFound(self.cached.getinfo, \"egg\")())\n self.assertNotFound(self.cached.getinfo, \"foo/bar\"))())\n self.assertNotFound(self.cached.getinfo, \"foo/bar/baz\"))())\n self.assertNotFound(self.cached.getinfo, \"foo/bar/baz/\"))())\n self.assertNotFound(self.cached.getinfo, \"foo", + "exact_match": false, + "code_bleu": 0.8931539818068694, + "edit_similarity": 0.9767441860465116 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "self.fs.exists(\"egg\"))", + "got": "len(self.translate_test_cases)", + "got_raw": "len(self.translate_test_cases) > 0) * len(self.translate_test_cases) > 0) > 0) > 0) > 0) > 0) > 0) > 0) > 0) > 0) > 0) > 0) > 0) > 0) > 0) > 0) > 0) > 0) > 0) > 0) > 0) > 0) > 0) > 0) > 0) > 0) > 0) > 0) > 0", + "exact_match": false, + "code_bleu": 0.2202109545342538, + "edit_similarity": 0.46153846153846156 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "os.path.exists(_path))", + "got": "os.path.exists(_path))", + "got_raw": "os.path.exists(_path)) * os.path.exists(path)) * os.path.exists(_path)) * os.path.exists(_path)) * os.path.exists(_path)) * os.path.exists(_path)) * os.path.exists(_path)) * os.path.exists(_path)) * os.path.exists(_path)) * os.path.exists(_path)) * os.path.exists(_path)) * os.path.exists(_path)) * os.path.exists(_path)) * os.path.exists(_path)) * os.path.exists(_path)) * os.path.exists(_path)) * os.path.exists(_path)) * os.path.exists(_path)) * os.path.exists", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "self.fs.isfile(\"foo\"))", + "got": "self.fs.isfile(\"foo/bar/baz/spam.txt\")))", + "got_raw": "self.fs.isfile(\"foo/bar/baz/spam.txt\"))) > 0) > 0) > 0) > 0) > 0) > 0) > 0) > 0) > 0) > 0) > 0) > 0) > 0) > 0) > 0) > 0) > 0) > 0) > 0) > 0) > 0) > 0) > 0) > 0) > 0) > 0) > 0) > 0) > 0", + "exact_match": false, + "code_bleu": 0.6315552371794037, + "edit_similarity": 0.7096774193548387 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "self.fs.delegate_fs())", + "got": "self.fs.delegate_fs())", + "got_raw": "self.fs.delegate_fs()) self.fs.delegate_fs()) self.fs.delegate_path(\"bar\")) self.fs.delegate_path(\"bar\")) self.fs.delegate_path(\"bar\")) self.fs.delegate_path(\"bar\")) self.fs.delegate_path(\"bar\")) self.fs.delegate_path(\"bar\")) self.fs.delegate_path(\"bar\")) self.fs.delegate_path(\"bar\")) self.fs.delegate_path(\"bar\")) self.fs.delegate_path(\"bar\")) self.fs.delegate_path(\"bar\")) self.fs.delegate_path(\"bar\")) self.fs.delegate_path(\"bar\")) self.fs.delegate_path(\"bar\")) self.fs.delegate_path(\"bar\")) self.fs.delegate_path(\"bar\")) self.fs.delegate_path(\"bar", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "src.exists(\"file.txt\"))", + "got": "src.exists())", + "got_raw": "src.exists()) and src.getsyspath() is not None) and src.readtext() == \"Content\" and dst.exists() is False) and dst.getsyspath() is None) and dst.write(\"target_file.txt\") is False) and dst.readtext() is None) and dst.remove() is True) and not dst.exists() is False) and not dst.write(\"target_file.txt\") is True) and dst.readtext() is None) and dst.remove() is False) and dst.exists() is True) and dst.readtext() is not None) and dst.write(\"target_file.txt\") is False) and dst", + "exact_match": false, + "code_bleu": 0.6060915267313265, + "edit_similarity": 0.7222222222222222 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "dst.exists(\"file.txt\"))", + "got": "dst.exists(\"file.txt\"))", + "got_raw": "dst.exists(\"file.txt\")) # we use TempFS to test the optmized code path\n dst.move(\"file.txt\", \"target.txt\") # we use TempFS to test the optmized code path\n self.assertFalse(src.exists(\"file.txt\")) # we use TempFS to test the optmized code path\n self.assertTrue(dst.exists(\"file.txt\")) # we use TempFS to test the optmized code path\n self.assertEqual(\"target content\", dst.readtext(\"file.txt\")) # we use TempFS to test the optmized code path\n self.assertFalse(dst", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "tmp.exists(\"file.txt\"))", + "got": "tmp.exists(\"file.txt\")))", + "got_raw": "tmp.exists(\"file.txt\")))\n self.assertFalse(tmp.exists(\"temp\")))\n self.assertFalse(fs.exists(\"file.txt\")))\n self.assertTrue(fs.exists(\"temp\")))\n self.assertFalse(fs.exists(\"file.txt\")))\n self.assertFalse(fs.exists(\"file.txt\")))\n self.assertFalse(fs.exists(\"file.txt\")))\n self.assertFalse(fs.exists(\"file.txt\")))\n self.assertFalse(fs.exists(\"file.txt\")))\n self.assertFalse(fs.exists(\"file.txt\")))\n self.assertFalse(fs.exists(\"file.txt\")))\n self.assertFalse(fs.exists(\"file.txt\")))\n ", + "exact_match": false, + "code_bleu": 0.8633400213704505, + "edit_similarity": 0.9787234042553191 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "output_file.getvalue())", + "got": "output_file.getvalue())", + "got_raw": "output_file.getvalue()) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "self.fs.getinfo(\"foo\"))", + "got": "Info(\"foo\")))", + "got_raw": "Info(\"foo\"))) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 100) * 1", + "exact_match": false, + "code_bleu": 0.4098587686341762, + "edit_similarity": 0.6111111111111112 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "re.match(translated, m))", + "got": "re.match(translated, \"/\" + m))", + "got_raw": "re.match(translated, \"/\" + m))", + "exact_match": false, + "code_bleu": 0.6340466277046861, + "edit_similarity": 0.8888888888888888 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "fs.isdir(\"foo/bar/baz\"))", + "got": "fs.exists(\"foo/bar/test.txt\")))", + "got_raw": "fs.exists(\"foo/bar/test.txt\")))\n self.assertFalse(fs.exists(\"foo/bar/baz\")))\n self.assertFalse(fs.exists(\"foo/bar/baz/egg\")))\n self.assertTrue(fs.exists(\"foo/bar\"))))\n self.assertTrue(fs.exists(\"foo/bar/baz\"))))\n self.assertTrue(fs.exists(\"foo/bar/baz/egg\"))))", + "exact_match": false, + "code_bleu": 0.2777619034011791, + "edit_similarity": 0.6545454545454545 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "os.path.isdir(_temp_dir))", + "got": "t.clean())", + "got_raw": "t.clean()) == True)\n self.assertRaises(errors.EvalError) == t.clean()) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) == False) ==", + "exact_match": false, + "code_bleu": 0.2202109545342538, + "edit_similarity": 0.2857142857142857 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "self.cached.isdir(\"foo\"))", + "got": "self.cached.isdir(\"foo\")))", + "got_raw": "self.cached.isdir(\"foo\"))) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1)", + "exact_match": false, + "code_bleu": 0.8931539818068694, + "edit_similarity": 0.9803921568627451 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "self.cached.isdir(\"egg\"))", + "got": "self.cached.isdir(\"egg\")))", + "got_raw": "self.cached.isdir(\"egg\")))\n self.assertFalse(self.cached.isdir(\"bar\")))\n self.assertFalse(self.cached.isdir(\"baz\")))])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])", + "exact_match": false, + "code_bleu": 0.8931539818068694, + "edit_similarity": 0.9803921568627451 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "self.cached.isdir(\"spam\"))", + "got": "self.cached.isdir(\"bar\"))", + "got_raw": "self.cached.isdir(\"bar\")) # is dir)\n self.assertFalse(self.cached.isdir(\"baz\")) # is dir)\n self.assertFalse(self.cached.isdir(\"\")) # is dir)\n self.assertTrue(self.cached.isdir(\"foo/bar\")) # is dir)\n self.assertTrue(self.cached.isdir(\"foo/bar/baz\")) # is dir)\n self.assertTrue(self.cached.isdir(\"foo/bar/baz/\")) # is dir)\n self.assertTrue(self.cached.isdir(\"foo/bar/baz\")) # is file)\n self.assertFalse(self.cached.isdir(\"foo/bar", + "exact_match": false, + "code_bleu": 0.7071067811865475, + "edit_similarity": 0.9019607843137255 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "self.cached.isfile(\"egg\"))", + "got": "self.cached.isfile(\"egg\")))", + "got_raw": "self.cached.isfile(\"egg\"))) * self.fs.isfile(\"egg\"))) * self.fs.isfile(\"foo/bar/baz\"))) * self.fs.isfile(\"foo/bar/baz/egg\")))) * self.fs.isfile(\"foo/bar/baz/egg/\")))) * self.fs.isfile(\"foo/bar/baz/egg/bar\")))) * self.fs.isfile(\"foo/bar/baz/egg/bar/baz\")))) * self.fs.isfile(\"foo/bar/baz/egg/bar/baz/\")))) * self.fs.isfile(\"foo/bar/baz/egg/bar/baz/egg\")))) * self.fs.isfile(\"foo/bar/baz", + "exact_match": false, + "code_bleu": 0.8931539818068694, + "edit_similarity": 0.9811320754716981 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "None)", + "got": "None)", + "got_raw": "None)", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "PyFilesystem/pyfilesystem2", + "expected": "None)", + "got": "\"\")", + "got_raw": "\"\") ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.25 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "None", + "got": "None", + "got_raw": "None importlib.importlib import RLM as RLM2) as RLM2: RLM2 is RLM2 RLM2 is RLM2 RLM2 is RLM2 RLM2 is RLM2 RLM2 is RLM2 RLM2 is RLM2 RLM2 is RLM2 RLM2 is RLM2 RLM2 is RLM2 RLM2 is RLM2 RLM2 is RLM2 RLM2 is RLM2 RLM2 is RLM2 RLM2 is RLM2 RLM2 is RLM2 RLM2 is R", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "None", + "got": "None", + "got_raw": "None # Non-persistent mode should create a new environment each call. # noqa: E501 # pylint: disable=E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "None", + "got": "None)", + "got_raw": "None) None\" \"Check the variable:\\nFINAL_VAR(result)\" \"Check the variable:\\nFINAL_VAR(result)\" \"Check the variable:\\nFINAL_VAR(result)\" \"Check the variable:\\nFINAL_VAR(result)\" \"Check the variable:\\nFINAL_VAR(result)\" \"Check the variable:\\nFINAL_VAR(result)\" \"Check the variable:\\nFINAL_VAR(result)\" \"Check the variable:\\nFINAL_VAR(result)\" \"Check the variable:\\nFINAL_VAR(result)\" \"Check the variable:\\nFINAL_VAR(result)\" \"Check the variable:\\nFINAL_VAR(result)\" \"Check the variable:\\nFINAL_VAR(result)\" \"Check the variable", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.8888888888888888 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "None", + "got": "NoneType()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()", + "got_raw": "NoneType()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()", + "exact_match": false, + "code_bleu": 0.003960434864024353, + "edit_similarity": 0.030303030303030304 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "None", + "got": "None.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "None.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.4518010018049224, + "edit_similarity": 0.05925925925925926 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "None", + "got": "None", + "got_raw": "None or NonePool() is not NonePool() is not NonePool() is not NonePool() is not NonePool() is not NonePool() is not NonePool() is not NonePool() is not NonePool() is not NonePool() is not NonePool() is not NonePool() is not NonePool() is not NonePool() is not NonePool() is not NonePool() is not NonePool() is not NonePool() is not NonePool() is not NonePool() is not NonePool() is not NonePool() is not NonePool() is not NonePool() is not NonePool() is not None", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "None", + "got": "None", + "got_raw": "None or \"\" if args.api_key else None if args.api_key else None if args.api_key else None if args.api_key else None if args.api_key else None if args.api_key else None if args.api_key else None if args.api_key else None if args.api_key else None if args.api_key else None if args.api_key else None if args.api_key else None if args.api_key else None if args.api_key else None if args.api_key else None if args.api_key else None if args.api_key else None if args.api_key else None if args.api_key else None if args.api_key else None if args.api_key else", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "None", + "got": "False", + "got_raw": "False, match=dsn) * 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.2222222222222222 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "None", + "got": "None", + "got_raw": "None # type: ignore[None] # noqa: E701 # type: ignore[None] # noqa: E701 # noqa: E702 # noqa: E703 # noqa: E704 # noqa: E705 # noqa: E706 # noqa: E707 # noqa: E708 # noqa: E709 # noqa: E710 # noqa: E711 # noqa: E712 # noqa: E713 # noqa: E714 # noqa: E715 #", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "None", + "got": "None", + "got_raw": "None # type: ignore[report] # noqa: E712 # type: ignore[report] # noqa: E713 # type: ignore[report] # noqa: E714 # type: ignore[report] # noqa: E715 # type: ignore[report] # noqa: E716 # type: ignore[report] # noqa: E717 # type: ignore[report] # noqa: E718 # type: ignore[report] # noqa: E719 # type: ignore[report] # noqa: E720 #", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "None", + "got": "None", + "got_raw": "None # type: ignore[check] # noqa: E701 # type: ignore[use] # noqa: E702 # noqa: E703 # noqa: E704 # noqa: E705 # noqa: E706 # noqa: E707 # noqa: E708 # noqa: E709 # noqa: E710 # noqa: E711 # noqa: E712 # noqa: E713 # noqa: E714 # noqa: E715 # noqa: E716 #", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "3", + "got": "3.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "3.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "0", + "got": "0.00000000000000001)", + "got_raw": "0.00000000000000001) * 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.4518010018049224, + "edit_similarity": 0.09523809523809523 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "2", + "got": "20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "0", + "got": "0.012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345", + "got_raw": "0.012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "1", + "got": "10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "3", + "got": "3", + "got_raw": "3 * 2 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 +", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "0", + "got": "0.01", + "got_raw": "0.01 * 1000 * 1000 * 1000 * 1000 * 1000 * 1000 * 1000 * 1000 * 1000 * 1000 * 1000 * 1000 * 1000 * 1000 * 1000 * 1000 * 1000 * 1000 * 1000 * 1000 * 10", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.4 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "1", + "got": "1)", + "got_raw": "1) blocks[0] = text[6:-2] + \"\\n\" blocks[0] = text[6:-2] + \"\\n\" blocks[0] = text[6:-2] + \"\\n\" blocks[0] = text[6:-2] + \"\\n\" blocks[0] = text[6:-2] + \"\\n\" blocks[0] = text[6:-2] + \"\\n\" blocks[0] = text[6:-2] + \"\\n\" blocks[0] = text[6:-2] + \"\\n\" blocks[0] = text", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.6666666666666666 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "2", + "got": "2.000000000000000123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901", + "got_raw": "2.000000000000000123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "1", + "got": "1)", + "got_raw": "1) block.to_dict()[\"code\"] == block.code() \"pass\" block.to_dict()[\"result\"] == result.to_dict() \"iteration_time\" : 1.5 } d)", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.6666666666666666 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "2", + "got": "2.0", + "got_raw": "2.0 ** 2 * 200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.5 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "5", + "got": "5.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "5.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "1", + "got": "1.000000000000000123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901", + "got_raw": "1.000000000000000123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "0", + "got": "0.000000000000000012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890", + "got_raw": "0.000000000000000012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "3", + "got": "3", + "got_raw": "3 * 2 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 +", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "5", + "got": "5.000000000000001234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012", + "got_raw": "5.000000000000001234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "0", + "got": "0", + "got_raw": "0 if os_name == \"nt\" else 3276 + os_name == \"nt\" else 133768321637683216376832163768321637683216376832163768321637683216376832163768321637683216376832163768321", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "0", + "got": "0", + "got_raw": "0 == captured[\"returncode\"] * captured[\"module\"] == \"python -m services.ingest\" * captured[\"argv\"] == [\"ingest\", \"--file\", \"doc.md\"] * captured[\"module\"] == \"services.ingest\" * captured[\"argv\"] == [\"ingest\"] * captured[\"module\"] == None * captured[\"argv\"] == [] * captured[\"module\"] == \"None\" * captured[\"argv\"] == [\"--help\"] * captured[\"module\"] == \"help\" * captured[\"argv\"] == [\"--version\"] * captured[\"module\"] == \"version\" * captured[\"argv\"] ==", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "0", + "got": "0", + "got_raw": "0 if p.stdout else 127 # 127 is the exit code for --help in subprocess.run() on Windows. # 0 is the exit code for --help in subprocess.run() on Unix-like systems. if p.stdout: print(p.stdout) # Print the help output to the console. # The help output should include non-interactive flags. assert p.stdout.lower() == \"usage: apps.hexis_init [--help] [--version]\\n\" \"app's init script\\n\" \"init script for hexis\\n\" \"options:\\n\" \"--help show this help and exit\\n\" \"--", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "0", + "got": "0.015625", + "got_raw": "0.015625 * 60 * 24 * 7 * 52 * 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.2222222222222222 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "0", + "got": "0.015625695328474127439999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999", + "got_raw": "0.015625695328474127439999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "1", + "got": "10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "0", + "got": "0.015625000000000002343999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999", + "got_raw": "0.015625000000000002343999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "3", + "got": "2", + "got_raw": "2 * config.max_iterations + 1 + 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "5", + "got": "5", + "got_raw": "5 + 2 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 +", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "2", + "got": "2.0", + "got_raw": "2.0 + 10.0 * 0.001 * 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.5 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "0", + "got": "0.015000000000000012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890", + "got_raw": "0.015000000000000012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "3", + "got": "30000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "30000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "1", + "got": "10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "2", + "got": "36500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "36500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "0", + "got": "128", + "got_raw": "128 - 13 - 4 - 8 - 16 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "1", + "got": "0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "4", + "got": "56789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012", + "got_raw": "56789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "3", + "got": "10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "0", + "got": "0.001234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234", + "got_raw": "0.001234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "1", + "got": "10066000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "10066000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "2", + "got": "24000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "24000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "2", + "got": "0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "1", + "got": "36666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666", + "got_raw": "36666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "4", + "got": "0.015625678918419016666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666", + "got_raw": "0.015625678918419016666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "1", + "got": "36567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890", + "got_raw": "36567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "5", + "got": "365", + "got_raw": "365 * 28 + 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.5 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "1", + "got": "1)", + "got_raw": "1) {\"type\": \"image\", \"url\": \"http://example.com/img.png\"}] } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } }", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.6666666666666666 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "2", + "got": "25", + "got_raw": "25 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.6666666666666666 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "2", + "got": "2.000000000000000111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111", + "got_raw": "2.000000000000000111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "1", + "got": "10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "0", + "got": "0)", + "got_raw": "0) * 2 + 1 * 3 + 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.6666666666666666 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "3", + "got": "0.015625685904999999648437983398347873787378737873787378737873787378737873787378737873787378737873787378737873787378737873787378", + "got_raw": "0.015625685904999999648437983398347873787378737873787378737873787378737873787378737873787378737873787378737873787378737873787378", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "2", + "got": "2", + "got_raw": "2 * len(items) + 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "1", + "got": "1.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "1.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "2", + "got": "2", + "got_raw": "2 * 3 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 +", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "0", + "got": "0.01", + "got_raw": "0.01 * 1000 * 1000 * 1000 * 1000 * 1000 * 1000 * 1000 * 1000 * 1000 * 1000 * 1000 * 1000 * 1000 * 1000 * 1000 * 1000 * 1000 * 1000 * 1000 * 1000 * 10", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.4 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "1", + "got": "10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "0", + "got": "0.015625", + "got_raw": "0.015625 * 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.2222222222222222 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "2", + "got": "24860000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "24860000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "1", + "got": "10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "3", + "got": "3", + "got_raw": "3 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 *", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "5", + "got": "50000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "50000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "0", + "got": "0.000000000000000011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111", + "got_raw": "0.000000000000000011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "3", + "got": "0.015625628590492387468997397799739739739739739739739739739739739739739739739739739739739739739739739739739739739739739739739739", + "got_raw": "0.015625628590492387468997397799739739739739739739739739739739739739739739739739739739739739739739739739739739739739739739739739", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "2", + "got": "2.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "2.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "1", + "got": "10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "7", + "got": "7", + "got_raw": "7 * 24 * 60 * 1000 + 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "3", + "got": "3", + "got_raw": "3 + 1 + 2 + 42 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "1", + "got": "16999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999", + "got_raw": "16999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "0", + "got": "[]", + "got_raw": "[] + [0] * 60 * 24 * 7 * 365 * 400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.4518010018049224, + "edit_similarity": 0.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "1", + "got": "1)", + "got_raw": "1) # Ensure at least one dynamic tool is loaded after loading. This is a test. It should load at least one dynamic tool after loading. This is a test. It should load at least one dynamic tool after loading. This is a test. It should load at least one dynamic tool after loading. This is a test. It should load at least one dynamic tool after loading. This is a test. It should load at least one dynamic tool after loading. This is a test. It should load at least one dynamic tool after loading. This is a test. It should load at least one dynamic tool after loading. This", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.6666666666666666 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "5", + "got": "0.015625000000000002846338998398997678737877787787787787787787787787787787787787787787787787787787787787787787787787787787787787", + "got_raw": "0.015625000000000002846338998398997678737877787787787787787787787787787787787787787787787787787787787787787787787787787787787787", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "5", + "got": "0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "0", + "got": "0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "\"\"", + "got": "\"\"s\"13\"", + "got_raw": "\"\"s\"13\" \"1 + 2\" \"x = 1 + 2\" \"x\" \"13\" \"1 + 2\" \"x\" \"13\" \"1 + 2\" \"x\" \"13\" \"1 + 2\" \"x\" \"13\" \"1 + 2\" \"x\" \"13\" \"1 + 2\" \"x\" \"13\" \"1 + 2\" \"x\" \"13\" \"1 + 2\" \"x\" \"13\" \"1 + 2\" \"x\"", + "exact_match": false, + "code_bleu": 0.4518010018049224, + "edit_similarity": 0.4444444444444444 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "\"\"", + "got": "\"\"", + "got_raw": "\"\" + \"combined: Document A content + Document B content\" + \"\\n\" + \"combined: Document A content + Document B content\" + \"\\n\" + \"combined: Document A content + Document B content\" + \"\\n\" + \"combined: Document A content + Document B content\" + \"\\n\" + \"combined: Document A content + Document B content\" + \"\\n\" + \"combined: Document A content + Document B content\" + \"\\n\" + \"combined: Document A content + Document B content\" + \"\\n\" + \"combined: Document A content + Document B content\" + \"\\n", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "\"\"", + "got": "\"\"", + "got_raw": "\"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\"", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "\"\"", + "got": "\"\"", + "got_raw": "\"\" # No error expected for this code snippet\nprint(\"x:\", x) # Output: x: 42\n\n# Execute another code snippet to demonstrate variable persistence\nresult2 = repl.execute_code(\"print(x)\") # This should print the same value as before\nprint(\"x:\", x) # Output: x: 42 (same as before)", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "\"\"", + "got": "\"\"", + "got_raw": "\"\" + str(datetime.now(tz=timezone.utc)) + \".json\" + \"\" + str(1) + \"\" + str(0) + \"\" + str(0) + \"\" + str(0) + \"\" + str(0) + \"\" + str(0) + \"\" + str(0) + \"\" + str(0) + \"\" + str(0) + \"\" + str(0) + \"\" + str(0) + \"\" + str(0) + \"\" + str(0) + \"\" + str(0) + \"\" + str(0) + \"\" + str(0) +", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "\"\"", + "got": "\"\"", + "got_raw": "\"\" + updated_schedule[\"cron\"] + \"\\n\" + \"00000000-0000-0000-0000-000000000001\" + \"\\n\" + \"00000000-0000-0000-0000-000000000001\" + \"\\n\" + \"00000000-0000-0000-0000-00000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "\"\"", + "got": "\"\"", + "got_raw": "\"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\"", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "\"\"", + "got": "\"recall(hello)\"", + "got_raw": "\"recall(hello)\" + \"\\n\" + \"Tool calls:\\n\" + \"[Recall]\\n\" + \"Tool: Recall\\n\" + \"Arguments: {'query': 'hello'}\\n\" + \"Type: None\\n\" + \"End\\n\" + \"Tools:\\n\" + \"[None]\\n\" + \"End\\n\" + \"Tools:\\n\" + \"[None]\\n\" + \"End\\n\" + \"Tools:\\n\" + \"[None]\\n\" + \"End\\n\" + \"Tools:\\n\" + \"[None]\\n\" + \"End\\n\" + \"Tools:\\n", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.23529411764705882 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "\"\"", + "got": "\"\"", + "got_raw": "\"\" + str(uuid.uuid4()) + \"\" + str(uuid.uuid4()) + \"\" + str(uuid.uuid4()) + \"\" + str(uuid.uuid4()) + \"\" + str(uuid.uuid4()) + \"\" + str(uuid.uuid4()) + \"\" + str(uuid.uuid4()) + \"\" + str(uuid.uuid4()) + \"\" + str(uuid.uuid4()) + \"\" + str(uuid.uuid4()) + \"\" + str(uuid.uuid4()) + \"\" + str(uuid.uuid4()) + \"\" + str(uuid.uuid4()) + \"\" + str(uuid.uuid4()) + \"\" + str(uuid.uuid4()) + \"\" + str(uuid.uuid4()) +", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "\"\"", + "got": "{}", + "got_raw": "{} else {} else {} else {} else {} else {} else {} else {} else {} else {} else {} else {} else {} else {} else {} else {} else {} else {} else {} else {} else {} else {} else {} else {} else {} else {} else {} else {} else {} else {} else {} else {} else {} else {} else {} else {} else {} else {} else {} else {} else {} else {} else {} else {} else {} else {} else {} else {} else {} else {} else {} else {} else {} else {} else {} else {} else {} else {} else {} else {} else {} else {} else {} else {} else", + "exact_match": false, + "code_bleu": 0.4518010018049224, + "edit_similarity": 0.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "\"\"", + "got": "\"\"s\"", + "got_raw": "\"\"s\" \"1 + 2\\nprint(x)\\n\" \"3\" \"1 + 2\\nprint(x)\\n\" \"3\" \"1 + 2\\nprint(x)\\n\" \"3\" \"1 + 2\\nprint(x)\\n\" \"3\" \"1 + 2\\nprint(x)\\n\" \"3\" \"1 + 2\\nprint(x)\\n\" \"3\" \"1 + 2\\nprint(x)\\n\" \"3\" \"1 + 2\\nprint(x)\\n\" \"3\" \"1 + 2\\nprint(x)\\n\" \"3", + "exact_match": false, + "code_bleu": 0.4518010018049224, + "edit_similarity": 0.6666666666666666 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "\"a\"", + "got": "\"a\"", + "got_raw": "\"a\" + env.sep + \"mem a\" + env.sep + \"mem b\" + env.sep + \"mem a\" + env.sep + \"mem a\" + env.sep + \"mem a\" + env.sep + \"mem a\" + env.sep + \"mem a\" + env.sep + \"mem a\" + env.sep + \"mem a\" + env.sep + \"mem a\" + env.sep + \"mem a\" + env.sep + \"mem a\" + env.sep + \"mem a\" + env.sep + \"mem a\" + env.sep + \"mem a\" + env.sep + \"mem", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "\"42\"", + "got": "\"answer\"", + "got_raw": "\"answer\" + os.sep + \"answer\" + os.sep + \"answer\" + os.sep + \"answer\" + os.sep + \"answer\" + os.sep + \"answer\" + os.sep + \"answer\" + os.sep + \"answer\" + os.sep + \"answer\" + os.sep + \"answer\" + os.sep + \"answer\" + os.sep + \"answer\" + os.sep + \"answer\" + os.sep + \"answer\" + os.sep + \"answer\" + os.sep + \"answer\" + os.sep + \"answer\" + os.sep + \"answer\" + os.sep + \"answer", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.3333333333333333 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "\"42\"", + "got": "\"42\"", + "got_raw": "\"42\" + \"\\n\" + \"The answer is:\" + \"\\n\" + \"FINAL\" + \"\\n\" + \"The answer is:\" + \"\\n\" + \"42\" + \"\\n\" + \"The answer is:\" + \"\\n\" + \"42\" + \"\\n\" + \"The answer is:\" + \"\\n\" + \"42\" + \"\\n\" + \"The answer is:\" + \"\\n\" + \"42\" + \"\\n\" + \"The answer is:\" + \"\\n\" + \"42\" + \"\\n\" + \"The answer is:\" +", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "\"52\"", + "got": "\"27\"", + "got_raw": "\"27\" f\"Expected '27', got '{result}'\" \"Test that FINAL_VAR actually retrieves variables from a real code environment.\" \"This test creates a real LocalREPL environment and tests retrieving integer, string, and list variables.\" \"The test retrieves the actual variable values and compares them with expected results.\" \"The test also retrieves the computed variable and compares it with the expected result.\" \"The test retrieves the variable 'x' and compares it with the expected result.\" \"The test retrieves the variable 'result' and compares it with the expected result.\" \"The test retrieves the variable 'answer' and compares it", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.75 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "\"db\"", + "got": "\"schema\"", + "got_raw": "\"schema\" + Path.schema_sep + \"schema.json\" + Path.schema_sep + \"migrations\" + Path.schema_sep + \"migrations.json\" + Path.schema_sep + \"admin\" + Path.schema_sep + \"dsn.json\" + Path.schema_sep + \"db.sqlite3\" + Path.schema_sep + \"db.sqlite3.lock\" + Path.schema_sep + \"db.sqlite3.wal\" + Path.schema_sep + \"db.sqlite3.hcm\" + Path.schema_sep + \"db.sqlite3.hcm.lock\" + Path.schema_sep + \"db.sqlite3.hcm.wal\" + Path.schema_sep + \"db.sqlite", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.3333333333333333 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "\"jq\"", + "got": "\"jq\"", + "got_raw": "\"jq\" + os.sep + \"brew\" + os.sep + \"jq\" + os.sep + \"jq\" + os.sep + \"jq\" + os.sep + \"jq\" + os.sep + \"jq\" + os.sep + \"jq\" + os.sep + \"jq\" + os.sep + \"jq\" + os.sep + \"jq\" + os.sep + \"jq\" + os.sep + \"jq\" + os.sep + \"jq\" + os.sep + \"jq\" + os.sep + \"jq\" + os.sep + \"jq\" + os.sep + \"jq\" + os.sep + \"jq", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "\"ok\"", + "got": "\"ok\"", + "got_raw": "\"ok\" * 2 + \"ok\" * 2 + \"ok\" * 2 + \"ok\" * 2 + \"ok\" * 2 + \"ok\" * 2 + \"ok\" * 2 + \"ok\" * 2 + \"ok\" * 2 + \"ok\" * 2 + \"ok\" * 2 + \"ok\" * 2 + \"ok\" * 2 + \"ok\" * 2 + \"ok\" * 2 + \"ok\" * 2 + \"ok\" * 2 + \"ok\" * 2 + \"ok", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "\"hi\"", + "got": "\"hi\"", + "got_raw": "\"hi\" + call[\"call_id\"] + \"!\" + call[\"call_id\"] + \"!\" + call[\"call_id\"] + \"!\" + call[\"call_id\"] + \"!\" + call[\"call_id\"] + \"!\" + call[\"call_id\"] + \"!\" + call[\"call_id\"] + \"!\" + call[\"call_id\"] + \"!\" + call[\"call_id\"] + \"!\" + call[\"call_id\"] + \"!\" + call[\"call_id\"] + \"!\" + call[\"call_id\"] + \"!\" + call[\"call_id\"] + \"!\" + call[\"call_id\"] + \"", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "\"ok\"", + "got": "\"ok\"", + "got_raw": "\"ok\" + \"\\n\" + \"db_version: \" + web_module.db_version + \"\\n\" + \"db_pool_size: \" + str( db_pool.size() ) + \"\\n\" + \"db_pool_max_size: \" + str( db_pool.max_size() ) + \"\\n\" + \"db_pool_count: \" + str( db_pool.count() ) + \"\\n\" + \"db_pool_count_available: \" + str( db_pool.available() ) + \"\\n\" + \"db_pool_count_used: \" + str( db_pool.used() ) + \"\\n\" + \"db_pool_count_total:", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "\"str\"", + "got": "str", + "got_raw": "str | list[str] | None | dict[str, str] | tuple[str, ...] | ... | object | None | Unset | None | Unset | Unset | Unset | Unset | Unset | Unset | Unset | Unset | Unset | Unset | Unset | Unset | Unset | Unset | Unset | Unset | Unset | Unset | Unset | Unset | Unset | Unset | Unset | Unset | Unset | Unset | Unset | Unset | Unset | Unset | Unset | Unset | Un", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.75 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "\"sig\"", + "got": "\"sig\"", + "got_raw": "\"sig\" + str(payload[\"signature\"]) + \"\\ntrailing\" + str(payload[\"memories\"]) + \"\\n\" + str(payload) + \"\\n\" + str(payload) + \"\\n\" + str(payload) + \"\\n\" + str(payload) + \"\\n\" + str(payload) + \"\\n\" + str(payload) + \"\\n\" + str(payload) + \"\\n\" + str(payload) + \"\\n\" + str(payload) + \"\\n\" + str(payload) + \"\\n\" + str(payload) + \"\\n\" + str(payload) + \"\\n\" + str(payload) + \"\\", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "\"CEO\"", + "got": "\"CEO\"", + "got_raw": "\"CEO\" + \"\\n\" + \"-------------------\" + \"\\n\" + \"Alice Smith\" + \"\\n\" + \"-------------------\" + \"\\n\" + \"Alice Smith\" + \"\\n\" + \"-------------------\" + \"\\n\" + \"Alice Smith\" + \"\\n\" + \"-------------------\" + \"\\n\" + \"Alice Smith\" + \"\\n\" + \"-------------------\" + \"\\n\" + \"Alice Smith\" + \"\\n\" + \"-------------------\" + \"\\n\" + \"Alice Smith\" + \"\\n\" + \"-------------------\" + \"\\n\" + \"Alice Smith", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "\"CTO\"", + "got": "\"CTO\"", + "got_raw": "\"CTO\" + \"\\n\" + \"Contact updated\" + \"\\n\" + \"Contact updated\" + \"\\n\" + \"Contact updated\" + \"\\n\" + \"Contact updated\" + \"\\n\" + \"Contact updated\" + \"\\n\" + \"Contact updated\" + \"\\n\" + \"Contact updated\" + \"\\n\" + \"Contact updated\" + \"\\n\" + \"Contact updated\" + \"\\n\" + \"Contact updated\" + \"\\n\" + \"Contact updated\" + \"\\n\" + \"Contact updated\" + \"\\n\" + \"Contact updated\" + \"\\n\" + \"Contact", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "\"web\"", + "got": "\"web\"", + "got_raw": "\"web\" + handler.sep + \"structured\" + handler.sep + \"hybrid\" + handler.sep + \"00000000-0000-0000-0000-000000000002\" + handler.sep + \"0.75\" + handler.sep + \"0.6\" + handler.sep + \"Doc\" + handler.sep + \"00000000-0000-0000-0000-000000000002\"", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "\"abc\"", + "got": "\"abc\"", + "got_raw": "\"abc\" state == \"xyz\" code, state = None code, state = \"xyz\" code, state = None code, state = \"abc\" code, state = \"abc\" code, state = \"abc\" code, state = \"abc\" code, state = \"abc\" code, state = \"abc\" code, state = \"abc\" code, state = \"abc\" code, state = \"abc\" code, state = \"abc\" code, state = \"abc\" code, state = \"abc\" code, state = \"abc\" code, state = \"abc\" code, state = \"", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "\"xyz\"", + "got": "\"xyz\"", + "got_raw": "\"xyz\" + base64.urlsafe_b64encode(state) + \"sig\" + base64.urlsafe_b64encode(code) + \"sig\" + \"sig\" + \"sig\" + \"sig\" + \"sig\" + \"sig\" + \"sig\" + \"sig\" + \"sig\" + \"sig\" + \"sig\" + \"sig\" + \"sig\" + \"sig\" + \"sig\" + \"sig\" + \"sig\" + \"sig\" + \"sig\" + \"sig\" + \"sig\" + \"sig\" + \"sig\" + \"sig\" +", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "\"pdf\"", + "got": "\"pdf\"", + "got_raw": "\"pdf\" \\ \"url\" \\ \"pdf\" \\ \"url\" \\ \"pdf\" \\ \"url\" \\ \"pdf\" \\ \"url\" \\ \"pdf\" \\ \"url\" \\ \"pdf\" \\ \"url\" \\ \"pdf\" \\ \"url\" \\ \"pdf\" \\ \"url\" \\ \"pdf\" \\ \"url\" \\ \"pdf\" \\ \"url\" \\ \"pdf\" \\ \"url\" \\ \"pdf\" \\ \"url\" \\ \"pdf\" \\ \"url\" \\ \"pdf\" \\ \"url\" \\ \"pdf\" \\ \"url\" \\ \"pdf\" \\ \"url\" \\", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "\"rss\"", + "got": "\"rss\"", + "got_raw": "\"rss\" \\ \"rss\" \"rss\" \"rss\" \"rss\" \"rss\" \"rss\" \"rss\" \"rss\" \"rss\" \"rss\" \"rss\" \"rss\" \"rss\" \"rss\" \"rss\" \"rss\" \"rss\" \"rss\" \"rss\" \"rss\" \"rss\" \"rss\" \"rss\" \"rss\" \"rss\" \"rss\" \"rss\" \"rss\" \"rss\" \"rss\" \"rss\" \"rss\" \"rss\" \"rss\" \"rss\" \"rss\" \"rss\" \"rss\" \"rss\" \"rss\" \"rss\" \"", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "\"web\"", + "got": "\"web\"", + "got_raw": "\"web\" \\ \"regular\" \\ \"article\" \\ \"blog\" \\ \"example.com\" \\ \"article\" \\ \"blog\" \\ \"example.com\" \\ \"article\" \\ \"blog\" \\ \"example.com\" \\ \"article\" \\ \"blog\" \\ \"example.com\" \\ \"article\" \\ \"blog\" \\ \"example.com\" \\ \"article\" \\ \"blog\" \\ \"example.com\" \\ \"article\" \\ \"blog\" \\ \"example.com\" \\ \"article\" \\ \"blog\" \\ \"example.com\" \\ \"article\" \\ \"blog\" \\ \"example.com\" \\ \"article\"", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "\"bar\"", + "got": "\"bar\"", + "got_raw": "\"bar\" + \"\\n\" + \"This is a test\\n\" + \"This is a test\\n\" + \"This is a test\\n\" + \"This is a test\\n\" + \"This is a test\\n\" + \"This is a test\\n\" + \"This is a test\\n\" + \"This is a test\\n\" + \"This is a test\\n\" + \"This is a test\\n\" + \"This is a test\\n\" + \"This is a test\\n\" + \"This is a test\\n\" + \"This is a test\\n\" + \"This is a test\\n\" +", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "\"llm\"", + "got": "\"init\"", + "got_raw": "\"init\" + str(1) + \"_\" + str(1) + \"_\" + str(1) + \"_\" + str(1) + \"_\" + str(1) + \"_\" + str(1) + \"_\" + str(1) + \"_\" + str(1) + \"_\" + str(1) + \"_\" + str(1) + \"_\" + str(1) + \"_\" + str(1) + \"_\" + str(1) + \"_\" + str(1) + \"_\" + str(1) + \"_\" + str(1) + \"_\" + str(1) + \"_\" + str(1) +", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.36363636363636365 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "\"raw\"", + "got": "\"raw\"", + "got_raw": "\"raw\" * 8 + \"...\" * 8 + \"!\" * 8 + \"...\" * 8 + \"!\" * 8 + \"...\" * 8 + \"!\" * 8 + \"...\" * 8 + \"!\" * 8 + \"...\" * 8 + \"!\" * 8 + \"...\" * 8 + \"!\" * 8 + \"...\" * 8 + \"!\" * 8 + \"...\" * 8 + \"!\" * 8 + \"...\" * 8 + \"!\" * 8 + \"...\" * 8 + \"!\" * 8 + \"", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "\"web\"", + "got": "\"web\"", + "got_raw": "\"web\" + source[\"ref\"] + source[\"trust\"] + \"normalize_source_reference\" + str(source) + \"normalize_source_reference_2\" + str(source) + \"normalize_source_reference_3\" + str(source) + \"normalize_source_reference_4\" + str(source) + \"normalize_source_reference_5\" + str(source) + \"normalize_source_reference_6\" + str(source) + \"normalize_source_reference_7\" + str(source) + \"normalize_source_reference_8\" + str(source) + \"normalize_source_reference_9\" + str(source) + \"normalize_source_reference_10\"", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "\"grok\"", + "got": "\"gsk_abc123\"", + "got_raw": "\"gsk_abc123\" + os.sep + \"gsk_abc123.key\" + os.sep + \"gsk_abc123.crt\" + os.sep + \"gsk_abc123.key\" + os.sep + \"gsk_abc123.crt\" + os.sep + \"gsk_abc123.key\" + os.sep + \"gsk_abc123.crt\" + os.sep + \"gsk_abc123.key\" + os.sep + \"gsk_abc123.crt\" + os.sep + \"gsk_", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.4444444444444444 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "\"high\"", + "got": "\"high\"", + "got_raw": "\"high\" * 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "\"user\"", + "got": "\"test-user\"", + "got_raw": "\"test-user\" + db_pool.name + \"test\" + str(uuid.uuid4())[:8] + \"test\" + str(uuid.uuid4())[:8] + \"test\" + str(uuid.uuid4())[:8] + \"test\" + str(uuid.uuid4())[:8] + \"test\" + str(uuid.uuid4())[:8] + \"test\" + str(uuid.uuid4())[:8] + \"test\" + str(uuid.uuid4())[:8] + \"test\" + str(uuid.uuid4())[:8] + \"test\" + str(uuid.uuid4())[:8] + \"test", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.7058823529411765 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "\"done\"", + "got": "\"done\"", + "got_raw": "\"done\" + uuid.uuid4()[:3] + \"done\" + uuid.uuid4()[:3] + \"done\" + uuid.uuid4()[:3] + \"done\" + uuid.uuid4()[:3] + \"done\" + uuid.uuid4()[:3] + \"done\" + uuid.uuid4()[:3] + \"done\" + uuid.uuid4()[:3] + \"done\" + uuid.uuid4()[:3] + \"done\" + uuid.uuid4()[:3] + \"done\" + uuid.uuid4()[:3] + \"done\" + uuid.uuid4()", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "\"push\"", + "got": "\"push\"", + "got_raw": "\"push\" + \"\\n\" + \"Repository: hexis\" + \"\\n\" + \"Branch: master\" + \"\\n\" + \"Commit: 82236226666666666666666666666666666666666666666666666666666666666666666666666666666666666666666", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "\"test\"", + "got": "\"test\"", + "got_raw": "\"test\" + os.sep + \"test\" + os.sep + \"test\" + os.sep + \"test\" + os.sep + \"test\" + os.sep + \"test\" + os.sep + \"test\" + os.sep + \"test\" + os.sep + \"test\" + os.sep + \"test\" + os.sep + \"test\" + os.sep + \"test\" + os.sep + \"test\" + os.sep + \"test\" + os.sep + \"test\" + os.sep + \"test\" + os.sep + \"test\" + os.sep + \"test\" + os.sep + \"test", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "\"test\"", + "got": "\"test\"", + "got_raw": "\"test\" + os.sep + \"test\" + os.sep + \"test\" + os.sep + \"test\" + os.sep + \"test\" + os.sep + \"test\" + os.sep + \"test\" + os.sep + \"test\" + os.sep + \"test\" + os.sep + \"test\" + os.sep + \"test\" + os.sep + \"test\" + os.sep + \"test\" + os.sep + \"test\" + os.sep + \"test\" + os.sep + \"test\" + os.sep + \"test\" + os.sep + \"test\" + os.sep + \"test", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "\"tu_1\"", + "got": "\"tu_1\"", + "got_raw": "\"tu_1\" \"recall\" \"hello\" {} } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } }", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "\"user\"", + "got": "\"user\"", + "got_raw": "\"user\" + contents[1][\"role\"] == \"assistant\" + contents[0][\"content\"] + contents[1][\"content\"] + \"Hi there!\" + contents[0][\"role\"] + contents[1][\"role\"] + \"Be helpful.\" + contents[0][\"role\"] + contents[1][\"role\"] + \"Be helpful.\" + contents[0][\"role\"] + contents[1][\"role\"] + \"Be helpful.\" + contents[0][\"role\"] + contents[1][\"role\"] + \"Be helpful.\" + contents[0][\"role\"] + contents[1][\"role\"] + \"Be helpful.\" +", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "[]", + "got": "[])", + "got_raw": "[]) blocks should be empty if there are no code blocks in the text. return blocks should be empty if there are no code blocks in the text. return blocks should be empty if there are no code blocks in the text. return blocks should be empty if there are no code blocks in the text. return blocks should be empty if there are no code blocks in the text. return blocks should be empty if there are no code blocks in the text. return blocks should be empty if there are no code blocks in the text. return blocks should be empty if there are no code blocks in the text. return blocks should be empty if there", + "exact_match": false, + "code_bleu": 0.5946035575013605, + "edit_similarity": 0.8 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "{}", + "got": "{}", + "got_raw": "{} # Dictionary to track model usage counts for each API call. Key is the API call name, value is the count. Default to 0 if not set. \"\"\" Test that usage tracking is properly initialized. Key is the API call name, value is the count. Default to 0 if not set. \"\"\" ) 0) 0) 0) 0) 0) 0) 0) 0) 0) 0) 0) 0) 0) 0) 0) 0) 0) 0) 0) 0) 0)", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "[]", + "got": "[]", + "got_raw": "[] # No errors, action is valid. Return an empty list. ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "[]", + "got": "[]", + "got_raw": "[] # type: ignore[unchanged] # noqa: E501 # type: ignore[missing] # noqa: E801 # noqa: E800 # noqa: E802 # noqa: E803 # noqa: E804 # noqa: E805 # noqa: E806 # noqa: E807 # noqa: E808 # noqa: E809 # noqa: E810 # noqa: E811 # noqa: E812 # noqa: E813 # noqa: E814", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "{}", + "got": "{}", + "got_raw": "{} # type: ignore[unchanged] # noqa: E501 # type: ignore[missing] # noqa: E801 # noqa: E800 # noqa: E802 # noqa: E803 # noqa: E804 # noqa: E805 # noqa: E806 # noqa: E807 # noqa: E808 # noqa: E809 # noqa: E810 # noqa: E811 # noqa: E812 # noqa: E813 # noqa: E814", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "[]", + "got": "[]", + "got_raw": "[] * 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "[]", + "got": "[]", + "got_raw": "[] ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "[]", + "got": "{}", + "got_raw": "{} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {}", + "exact_match": false, + "code_bleu": 0.4518010018049224, + "edit_similarity": 0.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "[]", + "got": "{}[db_pool]", + "got_raw": "{}[db_pool] = set() {db_pool} {db_pool} {db_pool} {db_pool} {db_pool} {db_pool} {db_pool} {db_pool} {db_pool} {db_pool} {db_pool} {db_pool} {db_pool} {db_pool} {db_pool} {db_pool} {db_pool} {db_pool} {db_pool} {db_pool} {db_pool} {db_pool} {db_pool} {db_pool} {db_pool} {db_pool} {db_pool} {db_pool} {db_pool} {db_pool}", + "exact_match": false, + "code_bleu": 0.3021375397356768, + "edit_similarity": 0.3076923076923077 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "[]", + "got": "[])", + "got_raw": "[]) # No errors for a valid path.", + "exact_match": false, + "code_bleu": 0.5946035575013605, + "edit_similarity": 0.8 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "[]", + "got": "[]", + "got_raw": "[] ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "[]", + "got": "[]", + "got_raw": "[] # No tool calls in this case since Responses API doesn't support them yet. # TODO: Add tool calls support when available. }", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "7 + 64", + "got": "128 * 8 + 16 + 16 + 16 + 16 + 16 + 16 + 16 + 16 + 16 + 16 + 16 + 16 + 16 + 16 + 16 + 16 + 16 + 16 + 16 + 16 + 16 + 16 + 16 + 16 + 16 + 16 + 16 + 16 + 16 + 16 +", + "got_raw": "128 * 8 + 16 + 16 + 16 + 16 + 16 + 16 + 16 + 16 + 16 + 16 + 16 + 16 + 16 + 16 + 16 + 16 + 16 + 16 + 16 + 16 + 16 + 16 + 16 + 16 + 16 + 16 + 16 + 16 + 16 + 16 + ", + "exact_match": false, + "code_bleu": 0.018730574860488187, + "edit_similarity": 0.048484848484848485 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "args.func", + "got": "args.func.__doc__", + "got_raw": "args.func.__doc__ or \"status\" in args.func.__name__ or \"status\" in args.func.__name__ + \"s\" or \"status\" in args.func.__name__ + \"es\" or \"status\" in args.func.__name__ + \"ing\" or \"status\" in args.func.__name__ + \"ing...\" or \"status\" in args.func.__name__ + \"ing...\" or \"status\" in args.func.__name__ + \"ing...\" or \"status\" in args.func.__name__ + \"ing...\" or \"status\" in args.func.__name__ + \"ing...\" or", + "exact_match": false, + "code_bleu": 0.5081327481546147, + "edit_similarity": 0.6923076923076923 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "result[0]", + "got": "result[0]", + "got_raw": "result[0] else {} } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } }", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "blocks[0]", + "got": "blocks[0]", + "got_raw": "blocks[0] + \"\\n\" + \"Done.\" + \"\\n\" + \"```repl```\" + \"\\n\" + \"```\" + \"\\n\" + \"```\" + \"\\n\" + \"```\" + \"\\n\" + \"```\" + \"\\n\" + \"```\" + \"\\n\" + \"```\" + \"\\n\" + \"```\" + \"\\n\" + \"```\" + \"\\n\" + \"```\" + \"\\n\" + \"```\" + \"\\n\" + \"```\" + \"\\n\" + \"```\" + \"\\n\" + \"```\" +", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "env.locals", + "got": "env.locals()", + "got_raw": "env.locals() else \"history_1\" in env.locals() else \"history_2\" in env.locals() else None) is not None) else None) is not None) else None) is not None) else None) is not None) else None) is not None) else None) is not None) else None) is not None) else None) is not None) else None) is not None) else None) is not None) else None) is not None) else None) is not None) else None) is not None) else None) is not None) else None) is not None)", + "exact_match": false, + "code_bleu": 0.5081327481546147, + "edit_similarity": 0.9090909090909091 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "repl.locals", + "got": "repl.locals()", + "got_raw": "repl.locals() else \"This is the context data.\" in repl.locals() else \"This is the context data.\" in repl.locals() else \"This is the context data.\" in repl.locals() else \"This is the context data.\" in repl.locals() else \"This is the context data.\" in repl.locals() else \"This is the context data.\" in repl.locals() else \"This is the context data.\" in repl.locals() else \"This is the context data.\" in repl.locals() else \"This is the context data.\" in repl.locals() else \"This is the context data.\" in repl.locals() else \"This is", + "exact_match": false, + "code_bleu": 0.5081327481546147, + "edit_similarity": 0.9166666666666666 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "repl.locals", + "got": "repl.locals()", + "got_raw": "repl.locals() else \"x\" in repl.globals() else \"x\" in repl.locals() else \"x\" in repl.globals() else \"x\" in repl.locals() else \"x\" in repl.globals() else \"x\" in repl.globals() else \"x\" in repl.globals() else \"x\" in repl.globals() else \"x\" in repl.globals() else \"x\" in repl.globals() else \"x\" in repl.globals() else \"x\" in repl.globals() else \"x\" in repl.globals() else \"x\" in repl.globals()", + "exact_match": false, + "code_bleu": 0.5081327481546147, + "edit_similarity": 0.9166666666666666 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "row[\"error\"]", + "got": "row[\"error\"]", + "got_raw": "row[\"error\"] + \"\\n\" + str(row[\"payload\"]) + \"\\n\" + str(row[\"error\"]) + \"\\n\" + str(row[\"error\"]) + \"\\n\" + str(row[\"error\"]) + \"\\n\" + str(row[\"error\"]) + \"\\n\" + str(row[\"error\"]) + \"\\n\" + str(row[\"error\"]) + \"\\n\" + str(row[\"error\"]) + \"\\n\" + str(row[\"error\"]) + \"\\n\" + str(row[\"error\"]) + \"\\n\" + str(row[\"error\"]) + \"\\n\" + str(row[\"error\"]) + \"\\n\"", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "result.error", + "got": "result.error.lower()", + "got_raw": "result.error.lower() + \"\\n\" + \"API error\" in result.tool_error.lower() + \"\\n\" + \"API error\" in result.tool_result.lower() + \"\\n\" + \"API error\" in result.tool_output.lower() + \"\\n\" + \"API error\" in result.tool_output_html.lower() + \"\\n\" + \"API error\" in result.tool_output_json.lower() + \"\\n\" + \"API error\" in result.tool_output_raw.lower() + \"\\n\" + \"API error\" in result.tool_output_raw_html.lower() + \"\\n\" + \"API error\" in result.tool_output_raw", + "exact_match": false, + "code_bleu": 0.345720784641941, + "edit_similarity": 0.75 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "result.stdout", + "got": "result.output.strip()", + "got_raw": "result.output.strip() + \"\\n\" + \"None\" + \"\\n\" + \"Done.\\n\" + \"Type 'help' for more information.\\n\" + \"Type 'exit' to quit.\\n\" + \">>> \" + \"\\n\" + \">>> \" + \"\\n\" + \">>> \" + \"\\n\" + \">>> \" + \"\\n\" + \">>> \" + \"\\n\" + \">>> \" + \"\\n\" + \">>> \" + \"\\n\" + \">>> \" + \"\\n\" + \">>> \" + \"\\n\" + \">>> \" + \"\\n\" + \">>>", + "exact_match": false, + "code_bleu": 0.24446151121745047, + "edit_similarity": 0.5882352941176471 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "result.stderr", + "got": "repl.stderr.lower()", + "got_raw": "repl.stderr.lower() \\ \"Exception in code execution: ZeroDivisionError\" in repl.stderr.lower() \"Exception in code execution: ZeroDivisionError\" in repl.stderr.lower() \"Exception in code execution: ZeroDivisionError\" in repl.stderr.lower() \"Exception in code execution: ZeroDivisionError\" in repl.stderr.lower() \"Exception in code execution: ZeroDivisionError\" in repl.stderr.lower() \"Exception in code execution: ZeroDivisionError\" in repl.stderr.lower() \"Exception in code execution: ZeroDivisionError\" in repl.stderr.lower() \"Exception in code execution: ZeroDivisionError\" in repl.stderr.lower() \"Exception", + "exact_match": false, + "code_bleu": 0.24446151121745047, + "edit_similarity": 0.625 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "row[\"content\"]", + "got": "row[\"content\"]", + "got_raw": "row[\"content\"] + \"\\n\" + response[\"summary\"] + \"\\n\" + response[\"content\"] + \"\\n\" + response[\"summary\"] + \"\\n\" + response[\"content\"] + \"\\n\" + response[\"summary\"] + \"\\n\" + response[\"content\"] + \"\\n\" + response[\"summary\"] + \"\\n\" + response[\"content\"] + \"\\n\" + response[\"summary\"] + \"\\n\" + response[\"content\"] + \"\\n\" + response[\"summary\"] + \"\\n\" + response[\"content\"] + \"\\n\" + response[\"summary\"] + \"\\n\" + response[\"", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "ToolCategory.WEB", + "got": "ToolCategory.WEB_SEARCH_ENGINE_2019080200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "ToolCategory.WEB_SEARCH_ENGINE_2019080200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5946035575013605, + "edit_similarity": 0.19047619047619047 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "ToolCategory.WEB", + "got": "ToolCategory.WEB_CRAWLING_20180808_001000_001_001_001_001_001_001_001_001_001_001_001_001_001_001_001_001_001_001_001_001_001_001_001_001_001_001", + "got_raw": "ToolCategory.WEB_CRAWLING_20180808_001000_001_001_001_001_001_001_001_001_001_001_001_001_001_001_001_001_001_001_001_001_001_001_001_001_001_001", + "exact_match": false, + "code_bleu": 0.5946035575013605, + "edit_similarity": 0.19875776397515527 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "True", + "got": "True)", + "got_raw": "True) True) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False)", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.8888888888888888 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "True", + "got": "True", + "got_raw": "True, \"Local environment should support persistent mode\" * 88888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "True", + "got": "True\"True\"", + "got_raw": "True\"True\" is False\"False\" is None\"None\" is False\"False\" is None\"None\" is True\"True\" is False\"False\" is True\"True\" is True\"True\" is False\"False\" is False\"False\" is True\"True\" is True\"True\" is False\"False\" is False\"False\" is True\"True\" is True\"True\" is False\"False\" is False\"False\" is True\"True\" is True\"True\" is False\"False\" is False\"False\" is True\"True\" is True\"True\" is False\"False", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.5714285714285714 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "True", + "got": "True", + "got_raw": "True if hasattr(request, \"EMBEDDING_DIMENSION\") else False) else False) else False, ) as conn) as conn) as conn) as conn) as conn) as conn) as conn) as conn) as conn) as conn) as conn) as conn) as conn) as conn) as conn) as conn) as conn) as conn) as conn) as conn) as conn) as conn) as conn) as conn) as conn) as conn) as conn) as conn) as conn) as conn) as conn) as conn) as conn) as conn) as conn)", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "True", + "got": "True", + "got_raw": "True if sys.platform == \"win32\" else False if sys.platform == \"linux\" else True if sys.platform == \"darwin\" else False if sys.platform == \"unknown\" else None if sys.platform == \"unknown\" else None if sys.platform == \"unknown\" else None if sys.platform == \"unknown\" else None if sys.platform == \"unknown\" else None if sys.platform == \"unknown\" else None if sys.platform == \"unknown\" else None if sys.platform == \"unknown\" else None if sys.platform == \"unknown\" else None if sys.platform == \"unknown\" else None if sys.platform == \"unknown\" else", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "True", + "got": "True)", + "got_raw": "True) * 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.8888888888888888 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "True", + "got": "True()", + "got_raw": "True() is False() is False() is False() is False() is False() is False() is False() is False() is False() is False() is False() is False() is False() is False() is False() is False() is False() is False() is False() is False() is False() is False() is False() is False() is False() is False() is False() is False() is False() is False() is False() is False() is False() is False() is False() is False() is False() is False() is False() is False() is False() is False()", + "exact_match": false, + "code_bleu": 0.4518010018049224, + "edit_similarity": 0.8 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "True", + "got": "True", + "got_raw": "True, match=\"refresh token expired\") * 1000 + 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "True", + "got": "True)", + "got_raw": "True) True) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False) False)", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.8888888888888888 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "True", + "got": "False", + "got_raw": "False # TODO: should we require approval for database backups? Maybe we should? # TODO: should we require approval for database backups? Maybe we should? # TODO: should we require approval for database backups? Maybe we should? # TODO: should we require approval for database backups? Maybe we should? # TODO: should we require approval for database backups? Maybe we should? # TODO: should we require approval for database backups? Maybe we should? # TODO: should we require approval for database backups? Maybe we should? # TODO: should we require approval for database backups? Maybe we should? # TODO: should we require approval", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.2222222222222222 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "True", + "got": "True", + "got_raw": "True # noqa: E711 # type: ignore # pylint: disable=attribute-read-only # type: ignore # noqa: E711 # type: ignore # noqa: E711 # type: ignore # noqa: E711 # type: ignore # noqa: E711 # type: ignore # noqa: E711 # type: ignore # noqa: E711 # type: ignore # noqa: E711 # type: ignore # noqa: E711 # type: ignore # noqa: E711 # type: ignore # noqa: E7", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "True", + "got": "False", + "got_raw": "False # TODO: add support for browser approval in the future. # noqa: E501 # type: ignore[assignment] # pylint: disable=assignment-from-constant # noqa: E501 # type: ignore[missing-arguments] # noqa: E501 # type: ignore[unreachable] # noqa: E701 # pylint: disable=missing-arguments # noqa: E701 # type: ignore[unreachable] # noqa: E701 # pylint: disable=missing-docstring # noqa: E701 # type: ignore[missing-arguments]", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.2222222222222222 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "True", + "got": "True", + "got_raw": "True, \"UpdateCalendarEventHandler should require approval\" \"by default\" \"for new events.\" \"This should be changed in the future.\" \"If you don't need this feature, \" \"you can remove this line.\" \"If you don't need this feature, \" \"you can remove this line.\" \"If you don't need this feature, \" \"you can remove this line.\" \"If you don't need this feature, \" \"you can remove this line.\" \"If you don't need this feature, \" \"you can remove this line.\" \"If you don't need this feature, \" \"you can remove this", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "True", + "got": "True", + "got_raw": "True is private message. It should be False for non-private messages. This is used to determine whether to show the sender's name or not. For private messages, the sender's name should be shown. For non-private messages, the sender's name should be hidden. This is used to determine whether to show the sender's name or not. For private messages, the sender's name should be shown. For non-private messages, the sender's name should be hidden. This is used to determine whether to show the sender's name or not. For private messages, the sender's name should be shown. For non-private messages, the sender", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "True", + "got": "True", + "got_raw": "True, match=\"https://cdn.discord.com/attachments/123/file.png\") is True, match=\"https://cdn.discord.com/attachments/123/file.png\") is True, match=\"https://cdn.discord.com/attachments/123/file.png\") is True, match=\"https://cdn.discord.com/attachments/123/file.png\") is True, match=\"https://cdn.discord.com/attachments/123/file.png\") is True, match=\"https://cdn.discord.com/attachments/123/file.png\") is True, match=\"https://cdn.disc", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "True", + "got": "True", + "got_raw": "True, match=repr(result)) as res: print(res) print(result) print(\"hello world\") print(\"hello world\") print(\"hello world\") print(\"hello world\") print(\"hello world\") print(\"hello world\") print(\"hello world\") print(\"hello world\") print(\"hello world\") print(\"hello world\") print(\"hello world\") print(\"hello world\") print(\"hello world\") print(\"hello world\") print(\"hello world\") print(\"hello world\") print(\"hello world\") print(\"hello world\") print(\"hello world\") print(\"hello world\") print(\"hello world\") print(\"hello world\") print(\"", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "True", + "got": "True", + "got_raw": "True, match=cert) is None) is False, cert) is None) is True, cert) is None) is False, cert) is None) is True, cert) is None) is False, cert) is None) is True, cert) is None) is False, cert) is None) is True, cert) is None) is False, cert) is None) is True, cert) is None) is False, cert) is None) is True, cert) is None) is False, cert) is None) is True, cert) is None) is False, cert) is None", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "True", + "got": "None", + "got_raw": "None if not result else result[0] == cid[0] + 1000000001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.25 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "True", + "got": "True", + "got_raw": "True, match=0) is False, match=9) is True, match=24) is False, match=7) is False, match=1) is False, match=12) is True, match=2) is False, match=3) is False, match=4) is False, match=5) is False, match=6) is False, match=7) is False, match=8) is False, match=9) is False, match=10) is True, match=11) is False, match=12) is False, match=", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "s", + "got": "s.strip()", + "got_raw": "s.strip() + \"\\n\" * 2 + \"locals:\\n\" + \" {}\" + \"\\n\" * 2 + \"end\" + \"\\n\" * 2 + \"test\" + \"\\n\" * 2 + \"end\" + \"\\n\" * 2 + \"test\" + \"\\n\" * 2 + \"end\" + \"\\n\" * 2 + \"test\" + \"\\n\" * 2 + \"end\" + \"\\n\" * 2 + \"test\" + \"\\n\" * 2 + \"end\" + \"\\n\" * 2 +", + "exact_match": false, + "code_bleu": 0.2730120862709067, + "edit_similarity": 0.2 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "p", + "got": "p.required_fields()", + "got_raw": "p.required_fields() { \"name\", \"type\", \"pattern\", } } p.required_fields() { \"name\", \"type\", \"pattern\", \"ai_score\", } } p.required_fields() { \"name\", \"type\", \"pattern\", \"ai_score\", \"context\", } } p.required_fields() { \"name\", \"type\", \"pattern\", \"context\", \"ai_score\", } } p.required_fields() { \"name\", \"type\", \"pattern\", \"context\", } } p.required_fields() { \"name\", \"type\", \"pattern\", } } p.required_fields() { \"name\", \"type\",", + "exact_match": false, + "code_bleu": 0.2730120862709067, + "edit_similarity": 0.1 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "d", + "got": "d.keys()", + "got_raw": "d.keys() * 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.2730120862709067, + "edit_similarity": 0.2222222222222222 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "h", + "got": "h[\"headers\"]", + "got_raw": "h[\"headers\"] else \"Bearer sk-test\" + \" \" + \"api-key\" + \" \" + \"http://test.com\" + \" \" + \"200\" + \" \" + \"0.0.1\" + \" \" + \"0.0.1\" + \" \" + \"0.0.1\" + \" \" + \"0.0.1\" + \" \" + \"0.0.1\" + \" \" + \"0.0.1\" + \" \" + \"0.0.1\" + \" \" + \"0.0.1\" + \" \"", + "exact_match": false, + "code_bleu": 0.35930411196308426, + "edit_similarity": 0.15384615384615385 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "v2", + "got": "v2", + "got_raw": "v2 + c1 != c2 + v1 + c1 + c2 + v2 + c1 + c2 + v1 + c2 + c1 + c2 + v2 + c1 + c2 + v1 + c2 + v1 + c2 + v2 + c1 + c2 + v1 + c2 + v1 + c2 + v2 + c1 + c2 + v1 + c2 + v1 + c2 + v2 + c1 + c2 + v1 + c2 + v1 + c2 + v2 + c1", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "c2", + "got": "c2", + "got_raw": "c2 + \"\" + c1 + \"\" + v1 + \"\" + v2 + \"\" + c1 + \"\" + v2 + \"\" + c1 + \"\" + v1 + \"\" + c2 + \"\" + v2 + \"\" + c2 + \"\" + v1 + \"\" + c1 + \"\" + v2 + \"\" + c1 + \"\" + v2 + \"\" + c1 + \"\" + v1 + \"\" + c2 + \"\" + v2 + \"\" + c1 + \"\" + v1 + \"\" + c2 + \"\" + v1 + \"\" + c1 + \"\" + v2 +", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "s2", + "got": "s2", + "got_raw": "s2 + \"1\" + s1 + \"2\" + s2 + \"3\" + s1 + \"4\" + s2 + \"5\" + s1 + \"6\" + s2 + \"7\" + s1 + \"8\" + s2 + \"9\" + s1 + \"0\" + s2 + \"1\" + s1 + \"2\" + s2 + \"3\" + s1 + \"4\" + s2 + \"5\" + s1 + \"6\" + s2 + \"7\" + s1 + \"8\" + s2", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "k2", + "got": "k2", + "got_raw": "k2 + \"1\" + k1 + \"2\" + k2 + \"3\" + k1 + \"4\" + k2 + \"5\" + k1 + \"6\" + k2 + \"7\" + k1 + \"8\" + k2 + \"9\" + k1 + \"10\" + k2 + \"11\" + k1 + \"12\" + k2 + \"13\" + k1 + \"14\" + k2 + \"15\" + k1 + \"16\" + k2 + \"17\" + k", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "ts", + "got": "ts", + "got_raw": "ts - timezone.utc.tzinfo.offsets[0] - 1.0e-6 * 2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "ns", + "got": "ns()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()", + "got_raw": "ns()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()", + "exact_match": false, + "code_bleu": 0.00467276459915153, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "cfg", + "got": "cfg[\"config\"][\"agent\"][:2]", + "got_raw": "cfg[\"config\"][\"agent\"][:2] + cfg[\"config\"][\"server\"][:1] + cfg[\"config\"][\"database\"][:2] + cfg[\"config\"][\"auth\"][:1] + cfg[\"config\"][\"cli\"][:2] + cfg[\"config\"][\"debug\"][:1] + cfg[\"config\"][\"test\"][:1] + cfg[\"config\"][\"version\"][:1] + cfg[\"config\"][\"config\"][:1] + cfg[\"config\"][\"config_file\"][:1] + cfg[\"config\"][\"config_schema\"][:1] + cfg[\"config\"][\"config_values\"][:1] + cfg[\"config\"][\"", + "exact_match": false, + "code_bleu": 0.11390778025531027, + "edit_similarity": 0.20689655172413793 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "att", + "got": "att.copy()", + "got_raw": "att.copy() # type: ignore[copy] # noqa: E712 # type: ignore[copy] # noqa: E712 # type: ignore[copy] # noqa: E712 # noqa: E712 # noqa: E712 # noqa: E712 # noqa: E712 # noqa: E712 # noqa: E712 # noqa: E712 # noqa: E712 # noqa: E712 # noqa: E712 # noqa: E712 # noqa: E71", + "exact_match": false, + "code_bleu": 0.2730120862709067, + "edit_similarity": 0.46153846153846156 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "mid", + "got": "{", + "got_raw": "{ \"source_attribution\": source_attr, \"memory_id\": str(mid), } # noqa: E501 # noqa: E501 \"chunk_index\": 0, } # noqa: E501 \"content_hash\": content_hash, } # noqa: E501 \"importance\": 0.4, } # noqa: E501 \"id\": None, } # noqa: E501 \"type\": \"doc\", } # noqa: E501 \"version\": \"0.0\", } # noqa: E501 \"source_type\": \"text\",", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "id3", + "got": "id3.id", + "got_raw": "id3.id + 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.4518010018049224, + "edit_similarity": 0.6666666666666666 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "cfg", + "got": "cfg()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()", + "got_raw": "cfg()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()", + "exact_match": false, + "code_bleu": 0.00467276459915153, + "edit_similarity": 0.023076923076923078 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "dsn", + "got": "dsn.split(\"://\")[-1]", + "got_raw": "dsn.split(\"://\")[-1] + \"/\" + \"testuser\" + \":\" + \"secret\" + \"@\" + \"localhost\" + \":\" + \"5432\" + \"/\" + \"test\" + \"/\" + \"testuser\" + \":\" + \"secret\" + \"@\" + \"localhost\" + \":\" + \"5432\" + \"/\" + \"test\" + \"/\" + \"testuser\" + \":\" + \"secret\" + \"@\" + \"localhost\" + \":\" + \"5432\" + \"/\" + \"test\" + \"/\" + \"testuser\" + \":\" + \"secret\" + \"@\" + \"localhost", + "exact_match": false, + "code_bleu": 0.12605968092174913, + "edit_similarity": 0.2608695652173913 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "dsn", + "got": "dsn.split(\"://\")[-1]", + "got_raw": "dsn.split(\"://\")[-1] + \"/\" + \"testuser\" + \":\" + \"secret\" + \"@localhost:5432/\" + \"test\" + \"/\" + \"test\" + \"?sslmode=prefer\" + \"&debug\" + \"&trace\" + \"&pool_size=20\" + \"&max_connections=50\" + \"&connect_timeout=30\" + \"&request_timeout=30\" + \"&wait_timeout=30\" + \"&session_key\" + \"&session_secret\" + \"&session_key_hash\" + \"&session_key_hash_alg\" + \"&session_key_hash_version\" + \"&session", + "exact_match": false, + "code_bleu": 0.12605968092174913, + "edit_similarity": 0.2608695652173913 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "cfg", + "got": "cfg()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()", + "got_raw": "cfg()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()", + "exact_match": false, + "code_bleu": 0.00467276459915153, + "edit_similarity": 0.023076923076923078 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "row", + "got": "row[0]._asdict()[:2]", + "got_raw": "row[0]._asdict()[:2] + (\"content\", \"embedding\", \"importance\", \"trust_level\", \"status\") + \"type\" + \"type_id\" + \"created_at\" + \"updated_at\" + \"mem_type\" + \"mem_id\" + \"mem_type_id\" + \"mem_id_2\" + \"mem_type_2\" + \"mem_id_3\" + \"mem_type_3\" + \"mem_id_4\" + \"mem_type_4\" + \"mem_id_5\" + \"mem_type_5\" + \"mem_id_6\" +", + "exact_match": false, + "code_bleu": 0.10390302174233558, + "edit_similarity": 0.2608695652173913 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "sql", + "got": "sql.lower()", + "got_raw": "sql.lower() + \" LIMIT 3\" + \" OFFSET 0\" + \";\".lower() + \"\\n\" + \"SELECT * FROM memory WHERE memory_id = '00000000-0000-0000-0000-000000000001';\" + \"\\n\" + \"SELECT * FROM memory WHERE memory_id = '00000000-0000-0000-0000-000000000002';\" + \"\\", + "exact_match": false, + "code_bleu": 0.2730120862709067, + "edit_similarity": 0.42857142857142855 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "url", + "got": "url.path_info()", + "got_raw": "url.path_info() + \"?\" + \"client_id\" + \"=\" + \"123\" + \"&\" + \"client_secret\" + \"=\" + \"456\" + \"&\" + \"scope\" + \"=\" + \"openid\" + \"&\" + \"challenge\" + \"=\" + \"CHALLENGE\" + \"&\" + \"state\" + \"=\" + \"STATE\" + \"&\" + \"redirect_uri\" + \"=\" + \"http://localhost:4501/callback\" + \"&\" + \"response_type\" + \"=\" + \"code\" + \"&\" + \"grant_type\" + \"=\" + \"password\" + \"&", + "exact_match": false, + "code_bleu": 0.2730120862709067, + "edit_similarity": 0.3333333333333333 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "url", + "got": "url.path_info.lower()", + "got_raw": "url.path_info.lower() + url.query.lower() + url.fragment.lower() + url.path_info.lower() + url.query.lower() + url.fragment.lower() + url.path_info.lower() + url.query.lower() + url.fragment.lower() + url.path_info.lower() + url.query.lower() + url.fragment.lower() + url.path_info.lower() + url.query.lower() + url.fragment.lower() + url.path_info.lower() + url.query.lower() + url.fragment.lower() + url.path_info.lower() + url.query.lower() + url.fragment.lower() + url.path_info.lower() + url.query.lower() + url.fragment.lower() +", + "exact_match": false, + "code_bleu": 0.18575057999133598, + "edit_similarity": 0.25 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "ids", + "got": "ids[:2]", + "got_raw": "ids[:2] + ids[3:] + [belief_id] + [mem_id] + [raw[\"id\"]] + [raw[\"contested\"]] + [raw[\"contested_again\"]] + [raw[\"contested_again_again\"]] + [raw[\"contested_again_again\"]] + [raw[\"contested_again_again_again\"]] + [raw[\"contested_again_again_again_again\"]] + [raw[\"contested_again_again_again_again_again\"]] + [raw[\"contested_again_again_again_again_again_again\"]] + [raw[\"contested_again_again_again_again_again_again_again\"]] + [raw[\"contested_again_again_again_again", + "exact_match": false, + "code_bleu": 0.2730120862709067, + "edit_similarity": 0.6 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "val", + "got": "val", + "got_raw": "val <= 0.255555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "ids", + "got": "ids", + "got_raw": "ids | r2[\"id\"] | set(ids) | set(r1[\"list\"]) | set(r2[\"list\"]) | set(r1[\"tags\"]) | set(r2[\"tags\"]) | set(r1[\"backlog\"]) | set(r2[\"backlog\"]) | set(r1[\"comments\"]) | set(r2[\"comments\"]) | set(r1[\"list\"]) | set(r2[\"list\"]) | set(r1[\"tags\"]) | set(r2[\"tags\"]) | set(r1[\"backlog\"]) | set(r2[\"backlog\"]) | set(r1[\"comments\"]) | set(r2[\"comments\"]) |", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "ids", + "got": "ids", + "got_raw": "ids | set(ids) | set(active) | set(ids) | set(active) | set(ids) | set(active) | set(ids) | set(active) | set(ids) | set(active) | set(ids) | set(active) | set(ids) | set(active) | set(ids) | set(active) | set(ids) | set(active) | set(ids) | set(active) | set(ids) | set(active) | set(ids) | set(active) | set(ids) | set(active) | set(ids) | set(active) | set(ids) | set(active) | set(ids) | set(active", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "str(wm_id)", + "got": "wm_id", + "got_raw": "wm_id + 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.14865088937534013, + "edit_similarity": 0.6666666666666666 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "float(score)", + "got": "float(score)", + "got_raw": "float(score) < 0.1555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "float(trust)", + "got": "trust", + "got_raw": "trust < 0.159999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999", + "exact_match": false, + "code_bleu": 0.14865088937534013, + "edit_similarity": 0.5882352941176471 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "len(verifier)", + "got": "len(verifier)", + "got_raw": "len(verifier) <= 128 * 2 + 16 * 2 + 16 * 2 + 43 + 16 * 2 + 16 * 2 + 16 * 2 + 43 + 16 * 2 + 16 * 2 + 16 * 2 + 43 + 16 * 2 + 16 * 2 + 16 * 2 + 43 + 16 * 2 + 16 * 2 + 16 * 2 + ", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "QuixiAI/Hexis", + "expected": "float(alignment)", + "got": "alignment", + "got_raw": "alignment <= 1.000000000000000184270939349917778737937793433793433793433793433793433793433793433793433793433793433793433793433793433793433", + "exact_match": false, + "code_bleu": 0.14865088937534013, + "edit_similarity": 0.72 + }, + { + "repo": "agronholm/anyio", + "expected": "None", + "got": "None", + "got_raw": "None and _runner_stack.pop() is None and _current_runner is None and _runner_leases == 0 and _runner_stack._empty() is True and _runner_stack._leases == 0 and _runner_stack._owners == {} and _runner_stack._callbacks is None and _runner_stack._event_loop is None and _runner_stack._event_loop._event_loop is None and _runner_stack._event_loop._impl is None and _runner_stack._event_loop._close_callbacks is None and _runner_stack._event_loop._futures is None and _runner_stack._event_loop._task_queues is None and _", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "agronholm/anyio", + "expected": "None", + "got": "None", + "got_raw": "None else False else True else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "agronholm/anyio", + "expected": "task_state.cancel_scope._tasks", + "got": "self._tasks", + "got_raw": "self._tasks | {self._on_completed_fut} | {None} | set() | weakref._ } | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set", + "exact_match": false, + "code_bleu": 0.3567621345008163, + "edit_similarity": 0.4878048780487805 + }, + { + "repo": "agronholm/anyio", + "expected": "None", + "got": "None", + "got_raw": "None or None else 0.0 if total_tokens is None else total_tokens + 0.0) * 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "agronholm/anyio", + "expected": "handle_exc", + "got": "not", + "got_raw": "not handle_exc or not cm.started.value() is False or True.value() * 234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.15384615384615385 + }, + { + "repo": "agronholm/anyio", + "expected": "RuntimeError, match=\"^foo$\")", + "got": "SystemExit) as exc) as exc2:", + "got_raw": "SystemExit) as exc) as exc2:\n sys.exit(1) # type: ignore[exit] # noqa: E207 # type: ignore[exit] # noqa: E207 # noqa: E207 # noqa: E207 # noqa: E207 # noqa: E207 # noqa: E207 # noqa: E207 # noqa: E207 # noqa: E207 # noqa: E207 # noqa: E207 # noqa: E207 # noqa: E2", + "exact_match": false, + "code_bleu": 0.16036590969929357, + "edit_similarity": 0.17857142857142858 + }, + { + "repo": "agronholm/anyio", + "expected": "TypeError, match=\"returned self\")", + "got": "TypeError) as exc:", + "got_raw": "TypeError) as exc: # type: ignore[no-untyped-def]\n with BadContextManager() as cm1, BadContextManager() as cm2: # type: ignore[no-untyped-def]\n cm1, cm2 = cm1, cm2, cm1, cm2, cm1, cm2, cm1, cm2, cm1, cm2, cm1, cm2, cm1, cm2, cm1, cm2, cm1, cm2, cm1, cm2, cm1, cm2, cm1, cm2, cm1", + "exact_match": false, + "code_bleu": 0.251781283113064, + "edit_similarity": 0.39215686274509803 + }, + { + "repo": "agronholm/anyio", + "expected": "TypeError, match=\"returned a generator\")", + "got": "TypeError) as exc:", + "got_raw": "TypeError) as exc: # type: ignore[no-untyped-def] # type: ignore[no-untyped-arg] # type: ignore[no-untyped-calls] # type: ignore[no-untyped-returns] # type: ignore[no-untyped-arg] # type: ignore[no-untyped-calls] # type: ignore[no-untyped-returns] # type: ignore[no-untyped-arg] # type: ignore[no-untyped-calls] # type: ignore[no-untyped-returns] # type: ignore[no-untyped-arg] # type", + "exact_match": false, + "code_bleu": 0.251781283113064, + "edit_similarity": 0.4482758620689655 + }, + { + "repo": "agronholm/anyio", + "expected": "TypeError, match=\"returned an async generator\")", + "got": "TypeError) as exc:", + "got_raw": "TypeError) as exc: # type: ignore[no-untyped-def] # type: ignore[no-untyped-arg] # type: ignore[no-untyped-calls] # type: ignore[no-untyped-returns] # type: ignore[no-untyped-arg] # type: ignore[no-untyped-calls] # type: ignore[no-untyped-returns] # type: ignore[no-untyped-arg] # type: ignore[no-untyped-calls] # type: ignore[no-untyped-returns] # type: ignore[no-untyped-arg] # type", + "exact_match": false, + "code_bleu": 0.251781283113064, + "edit_similarity": 0.4307692307692308 + }, + { + "repo": "agronholm/anyio", + "expected": "TypeError, match=\"did not return a context manager\")", + "got": "TypeError) as exc:", + "got_raw": "TypeError) as exc: # type: ignore[return-value] # type: ignore[return-type] # type: ignore[return-args] # type: ignore[return-kwargs] # type: ignore[return-expr] # type: ignore[return-type-arg] # type: ignore[return-type-expr] # type: ignore[return-expr-arg] # type: ignore[return-expr-kwargs] # type: ignore[return-expr] # type: ignore[return-expr] # type: ignore[return-expr] # type: ignore[return-expr] #", + "exact_match": false, + "code_bleu": 0.251781283113064, + "edit_similarity": 0.4 + }, + { + "repo": "agronholm/anyio", + "expected": "TypeError, match=\"returned a coroutine object instead of\")", + "got": "TypeError) as exc:", + "got_raw": "TypeError) as exc: # type: ignore[no-untyped-def] # type: ignore[no-untyped-arg] # type: ignore[no-untyped-calls] # type: ignore[no-untyped-returns] # type: ignore[no-untyped-arg] # type: ignore[no-untyped-calls] # type: ignore[no-untyped-returns] # type: ignore[no-untyped-arg] # type: ignore[no-untyped-calls] # type: ignore[no-untyped-returns] # type: ignore[no-untyped-arg] # type", + "exact_match": false, + "code_bleu": 0.251781283113064, + "edit_similarity": 0.34210526315789475 + }, + { + "repo": "agronholm/anyio", + "expected": "TypeError, match=\"did not return an async context manager\")", + "got": "TypeError) as exc:", + "got_raw": "TypeError) as exc: # type: ignore[no-untyped-def] # type: ignore[no-untyped-arg] # type: ignore[untyped-arg] # type: ignore[untyped-return] # type: ignore[untyped-exception] # type: ignore[untyped-exception-arg] # type: ignore[untyped-exception-arg-2] # type: ignore[untyped-exception-arg-3] # type: ignore[untyped-exception-arg-4] # type: ignore[untyped-exception-arg-5] # type: ignore", + "exact_match": false, + "code_bleu": 0.251781283113064, + "edit_similarity": 0.38961038961038963 + }, + { + "repo": "agronholm/anyio", + "expected": "RuntimeError, match=\"^this DummyContextManager has not been entered yet$\")", + "got": "SystemExitError, match=\"Dummy context manager should not be used\") as exc: cm.__enter__() cm.__exit__().raise(exc) cm.__enter__().raise(exc) cm.__exit__().raise(exc) cm.__enter__().raise(exc) cm.__exit__().raise(exc) cm.__enter__().raise(exc) cm.__exit__().raise(exc) cm.__enter__().raise(exc) cm.__exit__().raise(exc) cm.__enter__().raise(exc) cm.__exit__().raise(exc) cm.__enter__().raise(exc) cm.__exit__().raise(exc) cm.__", + "got_raw": "SystemExitError, match=\"Dummy context manager should not be used\") as exc: cm.__enter__() cm.__exit__().raise(exc) cm.__enter__().raise(exc) cm.__exit__().raise(exc) cm.__enter__().raise(exc) cm.__exit__().raise(exc) cm.__enter__().raise(exc) cm.__exit__().raise(exc) cm.__enter__().raise(exc) cm.__exit__().raise(exc) cm.__enter__().raise(exc) cm.__exit__().raise(exc) cm.__enter__().raise(exc) cm.__exit__().raise(exc) cm.__", + "exact_match": false, + "code_bleu": 0.015975532263375954, + "edit_similarity": 0.196 + }, + { + "repo": "agronholm/anyio", + "expected": "RuntimeError, match=\"^this DummyContextManager has already been entered$\")", + "got": "RuntimeError, match=\"already entered\") as exc: cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter()", + "got_raw": "RuntimeError, match=\"already entered\") as exc: cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter()", + "exact_match": false, + "code_bleu": 0.017022869275561847, + "edit_similarity": 0.1384335154826958 + }, + { + "repo": "agronholm/anyio", + "expected": "RuntimeError, match=\"^this DummyAsyncContextManager has not been entered yet$\")", + "got": "SystemExitError, match=\"DummyAsyncContextManager must be used with a context manager\") as exc: cm.__enter__() cm.__exit__().cm_value) cm.cm_value) cm.cm_value) cm.cm_value) cm.cm_value) cm.cm_value) cm.cm_value) cm.cm_value) cm.cm_value) cm.cm_value) cm.cm_value) cm.cm_value) cm.cm_value) cm.cm_value) cm.cm_value) cm.cm_value) cm.cm_value) cm.cm_value) cm.cm_value) cm.cm_value) cm.cm_value) cm.cm_value) cm.cm_value) cm.cm_value) cm.cm", + "got_raw": "SystemExitError, match=\"DummyAsyncContextManager must be used with a context manager\") as exc: cm.__enter__() cm.__exit__().cm_value) cm.cm_value) cm.cm_value) cm.cm_value) cm.cm_value) cm.cm_value) cm.cm_value) cm.cm_value) cm.cm_value) cm.cm_value) cm.cm_value) cm.cm_value) cm.cm_value) cm.cm_value) cm.cm_value) cm.cm_value) cm.cm_value) cm.cm_value) cm.cm_value) cm.cm_value) cm.cm_value) cm.cm_value) cm.cm_value) cm.cm_value) cm.cm", + "exact_match": false, + "code_bleu": 0.020089743369720473, + "edit_similarity": 0.20502901353965183 + }, + { + "repo": "agronholm/anyio", + "expected": "RuntimeError, match=\"^this DummyAsyncContextManager has already been entered$\")", + "got": "RuntimeError, match=\"already entered\") as exc: cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter()", + "got_raw": "RuntimeError, match=\"already entered\") as exc: cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter() cm.enter()", + "exact_match": false, + "code_bleu": 0.017022869275561847, + "edit_similarity": 0.1371841155234657 + }, + { + "repo": "agronholm/anyio", + "expected": "3", + "got": "3", + "got_raw": "3 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 +", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "agronholm/anyio", + "expected": "\"wait\"", + "got": "\"gen_coro\"", + "got_raw": "\"gen_coro\" + str(gen.gi_id) + \".\" + str(coro.cr_id) + \".\" + str(coro.cr_genid) + \".\" + str(coro.cr_gi) + \".\" + str(coro.cr_gi_genid) + \".\" + str(coro.cr_gi_genid_genid) + \".\" + str(coro.cr_gi_genid_genid_genid) + \".\" + str(coro.cr_gi_genid_genid_genid_genid) + \".\" + str(coro.cr_gi_genid_genid_genid_genid_genid) + \".\" + str(coro.cr", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.25 + }, + { + "repo": "agronholm/anyio", + "expected": "expected", + "got": "expected", + "got_raw": "expected + \".\" + expected + \"..non_main\" + expected + \"..non_main\" + expected + \"..non_main\" + expected + \"..non_main\" + expected + \"..non_main\" + expected + \"..non_main\" + expected + \"..non_main\" + expected + \"..non_main\" + expected + \"..non_main\" + expected + \"..non_main\" + expected + \"..non_main\" + expected + \"..non_main\" + expected", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "agronholm/anyio", + "expected": "host_task.id", + "got": "host_task.id()", + "got_raw": "host_task.id() * -1 + 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5081327481546147, + "edit_similarity": 0.9230769230769231 + }, + { + "repo": "agronholm/anyio", + "expected": "expected_name", + "got": "expected_name[0]", + "got_raw": "expected_name[0] + expected_name[2] + expected_name[3] + expected_name[4] + expected_name[5] + expected_name[6] + expected_name[7] + expected_name[8] + expected_name[9] + expected_name[10] + expected_name[11] + expected_name[12] + expected_name[13] + expected_name[14] + expected_name[15] + expected_name[16] + expected_name[17] + expected_name[18] + expected_name[19] + expected_name[2", + "exact_match": false, + "code_bleu": 0.35930411196308426, + "edit_similarity": 0.896551724137931 + }, + { + "repo": "agronholm/anyio", + "expected": "\"tests.test_debugging.test_main_task_name..main\"", + "got": "\"main\"", + "got_raw": "\"main\" if task_name else \"unknown\" + str(sys._getframe().get_lineno()) + \".\" + str(sys._getframe().get_file()) + \".\" + sys._getframe().get_name() + \".\" + str(sys._getframe().get_line()) + \".\" + str(sys._getframe().get_column()) + \".\" + str(sys._getframe().get_frame()) + \".\" + str(sys._getframe().get_frame()) + \".\" + str(sys._getframe().get_frame()) + \".\" + str(sys._getframe().get_frame()) + \".\" + str(sys._getframe().get_frame()) +", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.1935483870967742 + }, + { + "repo": "agronholm/anyio", + "expected": "anyio.BrokenWorkerInterpreter", + "got": "anyio.BrokenWorkerInterpreter()", + "got_raw": "anyio.BrokenWorkerInterpreter() * 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5081327481546147, + "edit_similarity": 0.9666666666666667 + }, + { + "repo": "agronholm/anyio", + "expected": "3", + "got": "3.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "3.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "agronholm/anyio", + "expected": "0)", + "got": "500.102352)", + "got_raw": "500.102352) - deadline) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - 1) - ", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.3076923076923077 + }, + { + "repo": "agronholm/anyio", + "expected": "True", + "got": "True", + "got_raw": "True if debug is None else False if debug is False else True if debug is True else False if debug is None else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "agronholm/anyio", + "expected": "math.inf)", + "got": "0.000000001)", + "got_raw": "0.000000001) # type: ignore[call] # noqa: E702 # type: ignore[call] # noqa: E702 # noqa: E702 # noqa: E702 # noqa: E702 # noqa: E702 # noqa: E702 # noqa: E702 # noqa: E702 # noqa: E702 # noqa: E702 # noqa: E702 # noqa: E702 # noqa: E702 # noqa:", + "exact_match": false, + "code_bleu": 0.2686424829558855, + "edit_similarity": 0.19047619047619047 + }, + { + "repo": "agronholm/anyio", + "expected": "deadline - fake_current_time)", + "got": "500.102352) - fake_current_time) - 0.001) < 0.002) - 0.001) < 0.002) - 0.001) < 0.002) - 0.001) < 0.002) - 0.001) < 0.002) - 0.001) < 0.002) - 0.001) < 0.002)", + "got_raw": "500.102352) - fake_current_time) - 0.001) < 0.002) - 0.001) < 0.002) - 0.001) < 0.002) - 0.001) < 0.002) - 0.001) < 0.002) - 0.001) < 0.002) - 0.001) < 0.002)", + "exact_match": false, + "code_bleu": 0.04761298946116124, + "edit_similarity": 0.22459893048128343 + }, + { + "repo": "agronholm/anyio", + "expected": "3", + "got": "3", + "got_raw": "3 * 2 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 +", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "agronholm/anyio", + "expected": "0", + "got": "0.001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111", + "got_raw": "0.001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "agronholm/anyio", + "expected": "2", + "got": "2", + "got_raw": "2 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 +", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "agronholm/anyio", + "expected": "[]", + "got": "[\"file1\"", + "got_raw": "[\"file1\", \"file2\"] * 2 + [\"symlink\"] * 1 + [\"subdir\"] * 2 + [\"subdir/subdir\"] * 4 + [\"subdir/subdir/subdir\"] * 8 + [\"subdir/subdir/subdir\"] * 16 + [\"subdir/subdir/subdir\"] * 32 + [\"subdir/subdir/subdir\"] * 64 + [\"subdir/subdir/subdir\"] * 128 + [\"subdir/subdir/subdir\"] * 256 + [\"subdir/subdir/subdir\"] * 5", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.2 + }, + { + "repo": "agronholm/anyio", + "expected": "uri", + "got": "uri.replace(\"file://\"", + "got_raw": "uri.replace(\"file://\", \"file:///\")[:-1] + \"\\n\" + path.name + \"\\n\" + path.parent.name + \"\\n\" + path.parent.parent.name + \"\\n\" + path.parent.parent.parent.name + \"\\n\" + path.parent.parent.parent.parent.name + \"\\n\" + path.parent.parent.parent.parent.parent.name + \"\\n\" + path.parent.parent.parent.parent.parent.parent.name + \"\\n\" + path.parent.parent.parent.parent.parent.parent.parent.name + \"\\n\" + path.parent.parent.parent.parent.parent.parent.parent.parent.name + \"\\n\" + path.parent.parent.parent.parent.parent.parent.parent.parent.parent.name", + "exact_match": false, + "code_bleu": 0.2730120862709067, + "edit_similarity": 0.25 + }, + { + "repo": "agronholm/anyio", + "expected": "100", + "got": "10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.04580152671755725 + }, + { + "repo": "agronholm/anyio", + "expected": "\"c:\"", + "got": "\"C\"", + "got_raw": "\"C\" + os.sep + \"abc\" + os.sep + \"xyz\" + os.sep + os.sep + os.sep + os.sep + os.sep + os.sep + os.sep + os.sep + os.sep + os.sep + os.sep + os.sep + os.sep + os.sep + os.sep + os.sep + os.sep + os.sep + os.sep + os.sep + os.sep + os.sep + os.sep + os.sep + os.sep + os.sep + os.sep + os.sep + os.sep + os.sep + os.sep + os.sep + os.sep + os.sep + os.sep + os.sep + os.sep +", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.5714285714285714 + }, + { + "repo": "agronholm/anyio", + "expected": "path", + "got": "path", + "got_raw": "path / \"subdir\" / \"subdir\" / \"subdir\" / \"subdir\" / \"subdir\" / \"subdir\" / \"subdir\" / \"subdir\" / \"subdir\" / \"subdir\" / \"subdir\" / \"subdir\" / \"subdir\" / \"subdir\" / \"subdir\" / \"subdir\" / \"subdir\" / \"subdir\" / \"subdir\" / \"subdir\" / \"subdir\" / \"subdir\" / \"subdir\" / \"subdir\" / \"subdir\" / \"", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "agronholm/anyio", + "expected": "path2", + "got": "path2", + "got_raw": "path2 + 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "agronholm/anyio", + "expected": "path1", + "got": "path1", + "got_raw": "path1 + 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "agronholm/anyio", + "expected": "0o444", + "got": "0o444", + "got_raw": "0o444 << 16 | 0o666 & 0o001 << 8 | 0o666 & 0o002 << 4 | 0o666 & 0o004 << 2 | 0o666 & 0o008 << 1 | 0o666 & 0o010 << 0 | 0o666 & 0o020 << 8 | 0o666 & 0o040 << 4", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "agronholm/anyio", + "expected": "0o600", + "got": "0o600", + "got_raw": "0o600 << 16 | 0o444 & 0o666 << 8 | 0o000 & 0o666 << 4 | 0o000 & 0o777 << 0 | 0o000 & 0o666 << 2 | 0o000 & 0o777 << 3 | 0o000 & 0o666 << 5 | 0o000 & 0o777 << 6", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "agronholm/anyio", + "expected": "\"bar\"", + "got": "\"bar\"", + "got_raw": "\"bar\" + os.sep + \"foo.txt\" + os.sep + \"bar\" + os.sep + \"bar\" + os.sep + \"bar\" + os.sep + \"bar\" + os.sep + \"bar\" + os.sep + \"bar\" + os.sep + \"bar\" + os.sep + \"bar\" + os.sep + \"bar\" + os.sep + \"bar\" + os.sep + \"bar\" + os.sep + \"bar\" + os.sep + \"bar\" + os.sep + \"bar\" + os.sep + \"bar\" + os.sep + \"bar\" + os.sep + \"", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "agronholm/anyio", + "expected": "\".zip\"", + "got": "\".zip\"", + "got_raw": "\".zip\" + os.sep + \".txt\" + os.sep + \".zip\" + os.sep + \".txt\" + os.sep + \".zip\" + os.sep + \".txt\" + os.sep + \".zip\" + os.sep + \".txt\" + os.sep + \".zip\" + os.sep + \".txt\" + os.sep + \".zip\" + os.sep + \".txt\" + os.sep + \".zip\" + os.sep + \".txt\" + os.sep + \".zip\" + os.sep + \".txt\" + os.sep + \".zip\" + os.sep + \".txt\" + os.sep + \".zip", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "agronholm/anyio", + "expected": "3", + "got": "3.000000000000000123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123", + "got_raw": "3.000000000000000123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "agronholm/anyio", + "expected": "7", + "got": "74234234234234234234234234234234234234234234234234234234234234234234234234234234234234234234234234234234234234234234234234234234", + "got_raw": "74234234234234234234234234234234234234234234234234234234234234234234234234234234234234234234234234234234234234234234234234234234", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "agronholm/anyio", + "expected": "6", + "got": "66666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666", + "got_raw": "66666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "agronholm/anyio", + "expected": "2", + "got": "2", + "got_raw": "2 * 2 + 2 * 1 + 1 * 2 + 1 * 3 + 1 * 4 + 1 * 5 + 1 * 6 + 1 * 7 + 1 * 8 + 1 * 9 + 1 * 10 + 1 * 11 + 1 * 12 + 1 * 13 + 1 * 14 + 1 * 15 + 1 * 16 + 1 * 17 + 1 * 18 + 1 * 19", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "agronholm/anyio", + "expected": "1", + "got": "10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "agronholm/anyio", + "expected": "None", + "got": "None.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "None.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.4518010018049224, + "edit_similarity": 0.05925925925925926 + }, + { + "repo": "agronholm/anyio", + "expected": "\"foo\"", + "got": "\"foo\"", + "got_raw": "\"foo\" + threading.current_thread().name + \"bar\" + threading.current_thread().name + \"baz\" + threading.current_thread().name + \"qux\" + threading.current_thread().name + \"foo\" + threading.current_thread().name + \"bar\" + threading.current_thread().name + \"baz\" + threading.current_thread().name + \"qux\" + threading.current_thread().name + \"foo\" + threading.current_thread().name + \"bar\" + threading.current_thread().name + \"baz\" + threading.current_thread().name + \"qux\" + threading.current_thread().name + \"foo\" + threading", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "agronholm/anyio", + "expected": "1", + "got": "10010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010", + "got_raw": "10010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "agronholm/anyio", + "expected": "2", + "got": "23456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789", + "got_raw": "23456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "agronholm/anyio", + "expected": "0", + "got": "0.012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345", + "got_raw": "0.012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "agronholm/anyio", + "expected": "3", + "got": "2", + "got_raw": "2 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 +", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.0 + }, + { + "repo": "agronholm/anyio", + "expected": "1", + "got": "12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678", + "got_raw": "12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "agronholm/anyio", + "expected": "2", + "got": "23456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789", + "got_raw": "23456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "agronholm/anyio", + "expected": "3", + "got": "3)", + "got_raw": "3) * 2 + 1) * 2 - 1) * 2 + 1) * 2 - 1) * 2 + 1) * 2 - 1) * 2 + 1) * 2 - 1) * 2 + 1) * 2 - 1) * 2 + 1) * 2 - 1) * 2 + 1) * 2 - 1) * 2 + 1) * 2 - 1) * 2 + 1) * 2 - 1)", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.6666666666666666 + }, + { + "repo": "agronholm/anyio", + "expected": "4", + "got": "34234234234234234234234234234234234234234234234234234234234234234234234234234234234234234234234234234234234234234234234234234234", + "got_raw": "34234234234234234234234234234234234234234234234234234234234234234234234234234234234234234234234234234234234234234234234234234234", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "agronholm/anyio", + "expected": "5", + "got": "5)", + "got_raw": "5) * 2 + 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.6666666666666666 + }, + { + "repo": "agronholm/anyio", + "expected": "\"a\"", + "got": "\"a\"", + "got_raw": "\"a\" + str(1) + \"a\" + \"a\" + \"a\" + \"a\" + \"a\" + \"a\" + \"a\" + \"a\" + \"a\" + \"a\" + \"a\" + \"a\" + \"a\" + \"a\" + \"a\" + \"a\" + \"a\" + \"a\" + \"a\" + \"a\" + \"a\" + \"a\" + \"a\" + \"a\" + \"a\" + \"a\" + \"a\" + \"a\" + \"a\" + \"a\" +", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "agronholm/anyio", + "expected": "\"b\"", + "got": "\"b\"", + "got_raw": "\"b\" * 2 + \"a\" * 2 + \"c\" * 2 + \"d\" * 2 + \"e\" * 2 + \"f\" * 2 + \"g\" * 2 + \"h\" * 2 + \"i\" * 2 + \"j\" * 2 + \"k\" * 2 + \"l\" * 2 + \"m\" * 2 + \"n\" * 2 + \"o\" * 2 + \"p\" * 2 + \"q\" * 2 + \"r\" * 2 + \"s", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "agronholm/anyio", + "expected": "index", + "got": "0.012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345", + "got_raw": "0.012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.0 + }, + { + "repo": "agronholm/anyio", + "expected": "i + 1", + "got": "i + 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "i + 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5946035575013605, + "edit_similarity": 0.07462686567164178 + }, + { + "repo": "agronholm/anyio", + "expected": "cancel", + "got": "second_finished", + "got_raw": "second_finished if cancel else second_finished == True if cancel else False else second_finished == False else True else False else False else False else True else False else False else True else False else False else True else False else False else True else False else False else True else False else False else True else False else False else True else False else False else True else False else False else True else False else False else True else False else False else True else False else False else True else False else False else True else False else False else True else False else False else True else False else False else True else False else False else True else False else False", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.09523809523809523 + }, + { + "repo": "agronholm/anyio", + "expected": "LookupError)", + "got": "RuntimeError)", + "got_raw": "RuntimeError) as exc) as e1) as e2) as e3) as e4) as e5) as e6) as e7) as e8) as e9) as e10) as e11) as e12) as e13) as e14) as e15) as e16) as e17) as e18) as e19) as e20) as e21) as e22) as e23) as e24) as e25) as e26) as", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.56 + }, + { + "repo": "agronholm/anyio", + "expected": "ValueError, match=\"This token has already been used\")", + "got": "RuntimeError) as exc:", + "got_raw": "RuntimeError) as exc:\nvar.set(\"blah2\") # type: ignore [reset] already used] # noqa: E501 [reset] already used] # noqa: E501 [reset] already used] # noqa: E501 [reset] already used] # noqa: E501 [reset] already used] # noqa: E501 [reset] already used] # noqa: E501 [reset] already used] # noqa: E501 [reset] already used] # noqa: E501 [reset] already used] #", + "exact_match": false, + "code_bleu": 0.22751007189242223, + "edit_similarity": 0.32432432432432434 + }, + { + "repo": "agronholm/anyio", + "expected": "ValueError, match=\"This token does not belong to this RunVar\")", + "got": "RuntimeError, match=\"RunVar 'var1' does not contain a value\") as exc: await run(var2.get()) await exc.value) str) as exc2: await run(token=token, var2.get()) await exc2.value) str) as exc3: await run(token=token, var1.get()) await exc3.value) str) as exc4: await run(token=token, var1.get()) await exc4.value) str) as exc5: await run(token=token, var2.get()) await exc5.value) str) as exc6: await run(token=token, var2", + "got_raw": "RuntimeError, match=\"RunVar 'var1' does not contain a value\") as exc: await run(var2.get()) await exc.value) str) as exc2: await run(token=token, var2.get()) await exc2.value) str) as exc3: await run(token=token, var1.get()) await exc3.value) str) as exc4: await run(token=token, var1.get()) await exc4.value) str) as exc5: await run(token=token, var2.get()) await exc5.value) str) as exc6: await run(token=token, var2", + "exact_match": false, + "code_bleu": 0.018356371023339566, + "edit_similarity": 0.1375 + }, + { + "repo": "agronholm/anyio", + "expected": "1", + "got": "30000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "30000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.0 + }, + { + "repo": "agronholm/anyio", + "expected": "5", + "got": "5", + "got_raw": "5 * len(families) + 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "agronholm/anyio", + "expected": "\"bogus error\"", + "got": "\"bogus error\" + caplog.sep + \"test_exception_handler_no_exception\" + caplog.sep + \"test_shutdown_default_executor\" + caplog.sep + \"test_class_fixture_in_test_method\" + caplog.sep + \"test_callback_exception_during_test\" + caplog.sep + \"test_callback_exception_during_setup\" + caplog.sep + \"test_callback_exception_during_teardown\" + caplog.sep + \"test_no_thread_leaks_fixture\" + caplog.sep + \"test_class_fixture_in_test_method\" + caplog.sep + \"test_callback_exception_during_test\" + caplog.sep + \"test", + "got_raw": "\"bogus error\" + caplog.sep + \"test_exception_handler_no_exception\" + caplog.sep + \"test_shutdown_default_executor\" + caplog.sep + \"test_class_fixture_in_test_method\" + caplog.sep + \"test_callback_exception_during_test\" + caplog.sep + \"test_callback_exception_during_setup\" + caplog.sep + \"test_callback_exception_during_teardown\" + caplog.sep + \"test_no_thread_leaks_fixture\" + caplog.sep + \"test_class_fixture_in_test_method\" + caplog.sep + \"test_callback_exception_during_test\" + caplog.sep + \"test", + "exact_match": false, + "code_bleu": 0.01933989749128927, + "edit_similarity": 0.050682261208576995 + }, + { + "repo": "agronholm/anyio", + "expected": "result.stdout.str()", + "got": "result.capture_out()", + "got_raw": "result.capture_out() + result.capture_err() + result.capture_log() + \"\\n\" * 200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.3227150012892303, + "edit_similarity": 0.6666666666666666 + }, + { + "repo": "agronholm/anyio", + "expected": "signal.Signals.SIGUSR1", + "got": "signal.SIGUSR1()", + "got_raw": "signal.SIGUSR1() * 2 + 1337 * 2 + 42 * 2 + 1337 * 2 + 42 * 2 + 1337 * 2 + 42 * 2 + 1337 * 2 + 42 * 2 + 1337 * 2 + 42 * 2 + 1337 * 2 + 42 * 2 + 1337 * 2 + 42 * 2 + 1337 * ", + "exact_match": false, + "code_bleu": 0.427287006396234, + "edit_similarity": 0.7368421052631579 + }, + { + "repo": "agronholm/anyio", + "expected": "signal.Signals.SIGUSR2", + "got": "signal.Signals.SIGUSR2)", + "got_raw": "signal.Signals.SIGUSR2) * 2 + 1 * 1000000001 + 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.8091067115702212, + "edit_similarity": 0.9777777777777777 + }, + { + "repo": "agronholm/anyio", + "expected": "1", + "got": "16866666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666", + "got_raw": "16866666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "agronholm/anyio", + "expected": "0", + "got": "0xffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff", + "got_raw": "0xffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.006211180124223602 + }, + { + "repo": "agronholm/anyio", + "expected": "2", + "got": "2", + "got_raw": "2 * 2 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 +", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "agronholm/anyio", + "expected": "[]", + "got": "[]", + "got_raw": "[] * 16666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "agronholm/anyio", + "expected": "0", + "got": "0", + "got_raw": "0 if shell else 127 if command[0] == \"exec\" else 126 if command[0] == \"shell\" else 139 if command[0] == \"python\" else 135 if command[0] == \"echo\" else 133 if command[0] == \"ls\" else 132 if command[0] == \"pwd\" else 131 if command[0] == \"ls -1\" else 130 if command[0] == \"ls -2\" else 128 if command[0", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "agronholm/anyio", + "expected": "1", + "got": "1276131377", + "got_raw": "1276131377 // 2 + 1234567890 // 2 + 1234567890 % 2 + 1234567890 // 2 + 1234567890 % 2 + 1234567890 // 2 + 1234567890 % 2 + 1234567890 // 2 + 12345678", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.18181818181818182 + }, + { + "repo": "agronholm/anyio", + "expected": "2", + "got": "2.012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345", + "got_raw": "2.012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "agronholm/anyio", + "expected": "None", + "got": "None", + "got_raw": "None or None.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "agronholm/anyio", + "expected": "b\"cba\"", + "got": "\"cba\"", + "got_raw": "\"cba\" if shell else \"cba\\n\" + os.sep.join(command) + os.sep + \"cba\" + os.sep + \"cba\\n\" + \"cba\" + os.sep + \"cba\\n\" + \"cba\" + os.sep + \"cba\\n\" + \"cba\" + os.sep + \"cba\\n\" + \"cba\" + os.sep + \"cba\\n\" + \"cba\" + os.sep + \"cba\\n\" + \"cba\" + os.sep + \"cba\\n\" + \"cba\" + os.sep + \"cba\\n\" + \"cba\" + os.sep + \"cba\\n\" +", + "exact_match": false, + "code_bleu": 0.29730177875068026, + "edit_similarity": 0.9090909090909091 + }, + { + "repo": "agronholm/anyio", + "expected": "str(sid)", + "got": "sid.strip()", + "got_raw": "sid.strip() + 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.32466791547509893, + "edit_similarity": 0.42105263157894735 + }, + { + "repo": "agronholm/anyio", + "expected": "b\"ready\"", + "got": "\"ready\"", + "got_raw": "\"ready\" + os.sep + \"2\" + os.sep + \"1\" + os.sep + \"0\" + os.sep + \"0\" + os.sep + \"0\" + os.sep + \"0\" + os.sep + \"0\" + os.sep + \"0\" + os.sep + \"0\" + os.sep + \"0\" + os.sep + \"0\" + os.sep + \"0\" + os.sep + \"0\" + os.sep + \"0\" + os.sep + \"0\" + os.sep + \"0\" + os.sep + \"0\" + os.sep + \"0", + "exact_match": false, + "code_bleu": 0.29730177875068026, + "edit_similarity": 0.9333333333333333 + }, + { + "repo": "agronholm/anyio", + "expected": "env[\"foo\"]", + "got": "\"bar\"", + "got_raw": "\"bar\" + os.sep + \"bar\" + os.sep + \"bar\" + os.sep + \"bar\" + os.sep + \"bar\" + os.sep + \"bar\" + os.sep + \"bar\" + os.sep + \"bar\" + os.sep + \"bar\" + os.sep + \"bar\" + os.sep + \"bar\" + os.sep + \"bar\" + os.sep + \"bar\" + os.sep + \"bar\" + os.sep + \"bar\" + os.sep + \"bar\" + os.sep + \"bar\" + os.sep + \"bar\" + os.sep + \"bar", + "exact_match": false, + "code_bleu": 0.125, + "edit_similarity": 0.26666666666666666 + }, + { + "repo": "agronholm/anyio", + "expected": "EndOfStream)", + "got": "EndOfStream)", + "got_raw": "EndOfStream) as exc: await process.stdout.read() * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2)", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "agronholm/anyio", + "expected": "2", + "got": "0", + "got_raw": "0 * 2 + 2 * 1 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 *", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.0 + }, + { + "repo": "agronholm/anyio", + "expected": "0", + "got": "0", + "got_raw": "0 * 3 + 2 * 1 + 1 * 2 + 1 * 3 + 1 * 4 + 1 * 5 + 1 * 6 + 1 * 7 + 1 * 8 + 1 * 9 + 1 * 10 + 1 * 11 + 1 * 12 + 1 * 13 + 1 * 14 + 1 * 15 + 1 * 16 + 1 * 17 + 1 * 18 + 1 * 19", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "agronholm/anyio", + "expected": "1", + "got": "0.001234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234", + "got_raw": "0.001234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "agronholm/anyio", + "expected": "3", + "got": "3)", + "got_raw": "3) * 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.6666666666666666 + }, + { + "repo": "agronholm/anyio", + "expected": "1", + "got": "10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "agronholm/anyio", + "expected": "2", + "got": "20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "agronholm/anyio", + "expected": "0", + "got": "True()", + "got_raw": "True() * 2 + 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.37991784282579627, + "edit_similarity": 0.0 + }, + { + "repo": "agronholm/anyio", + "expected": "5", + "got": "10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.0 + }, + { + "repo": "agronholm/anyio", + "expected": "data", + "got": "data.decode()", + "got_raw": "data.decode() + \"\\n\" + \"more data\\n\" + \"more data\\n\" + \"more data\\n\" + \"more data\\n\" + \"more data\\n\" + \"more data\\n\" + \"more data\\n\" + \"more data\\n\" + \"more data\\n\" + \"more data\\n\" + \"more data\\n\" + \"more data\\n\" + \"more data\\n\" + \"more data\\n\" + \"more data\\n\" + \"more data\\n\" + \"more data\\n\" + \"more data\\n\" + \"more data\\n\" + \"more data\\n\" +", + "exact_match": false, + "code_bleu": 0.2730120862709067, + "edit_similarity": 0.47058823529411764 + }, + { + "repo": "agronholm/anyio", + "expected": "content", + "got": "content.encode()", + "got_raw": "content.encode() if text else content.encode(\"utf-8\") * 8 + b\"\\n\" * 4 + b\"\\r\\n\" * 2 + b\"\\r\\n\" * 1 + b\"\\n\" * 0 + b\"\\r\\n\" * 1 + b\"\\n\" * 2 + b\"\\r\\n\" * 3 + b\"\\n\" * 4 + b\"\\r\\n\" * 5 + b\"\\n\" * 6 + b\"\\r\\n\" * 7 + b\"\\n\" * 8 + b\"\\r\\n\" * 9 +", + "exact_match": false, + "code_bleu": 0.2730120862709067, + "edit_similarity": 0.6086956521739131 + }, + { + "repo": "agronholm/anyio", + "expected": "ValueError)", + "got": "FileNotFoundError)", + "got_raw": "FileNotFoundError) as exc: # type: ignore[arg-type] # noqa: E731 # type: ignore[arg-type] # noqa: E731 # noqa: E731 # noqa: E731 # noqa: E731 # noqa: E731 # noqa: E731 # noqa: E731 # noqa: E731 # noqa: E731 # noqa: E731 # noqa: E731 # noqa: E731 # noqa: E731 # noqa: E731 # noqa", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.5517241379310345 + }, + { + "repo": "agronholm/anyio", + "expected": "b\"helloworld\"", + "got": "b\"hello\\n\"", + "got_raw": "b\"hello\\n\" * 20 + b\"world\\n\" * 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.6956521739130435 + }, + { + "repo": "agronholm/anyio", + "expected": "FileNotFoundError)", + "got": "ValueError)", + "got_raw": "ValueError) as exc:\n td_path = pathlib.Path(td) / \"foo\" / \"bar\" / \"baz\" / \"qux\" / \"quux\" / \"foo\" / \"bar\" / \"baz\" / \"qux\" / \"foo\" / \"bar\" / \"baz\" / \"qux\" / \"foo\" / \"bar\" / \"baz\" / \"qux\" / \"foo\" / \"bar\" / \"baz\" / \"qux\" / \"foo\" / \"bar\" / \"baz\" / \"qux\" / \"foo\" / \"", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.5517241379310345 + }, + { + "repo": "agronholm/anyio", + "expected": "tempfile.gettempdir()", + "got": "tdirb.decode()", + "got_raw": "tdirb.decode() + os.sep + \"tmp\" + os.sep + \"tmp\" + os.sep + \"tmp\" + os.sep + \"tmp\" + os.sep + \"tmp\" + os.sep + \"tmp\" + os.sep + \"tmp\" + os.sep + \"tmp\" + os.sep + \"tmp\" + os.sep + \"tmp\" + os.sep + \"tmp\" + os.sep + \"tmp\" + os.sep + \"tmp\" + os.sep + \"tmp\" + os.sep + \"tmp\" + os.sep + \"tmp\" + os.sep + \"tmp\" + os.sep +", + "exact_match": false, + "code_bleu": 0.3860973950960897, + "edit_similarity": 0.34285714285714286 + }, + { + "repo": "agronholm/anyio", + "expected": "tempfile.gettempdirb()", + "got": "pathlib.Path(tempfile.gettempdir())", + "got_raw": "pathlib.Path(tempfile.gettempdir()) / \"tmp\" / \"tmp\" / \"tmp\" / \"tmp\" / \"tmp\" / \"tmp\" / \"tmp\" / \"tmp\" / \"tmp\" / \"tmp\" / \"tmp\" / \"tmp\" / \"tmp\" / \"tmp\" / \"tmp\" / \"tmp\" / \"tmp\" / \"tmp\" / \"tmp\" / \"tmp\" / \"tmp\" / \"tmp\" / \"tmp\" / \"tmp\" / \"tmp\" / \"tmp\" / \"tmp\" / \"tmp\" / \"tmp\" / \"tmp", + "exact_match": false, + "code_bleu": 0.2086130724305753, + "edit_similarity": 0.7368421052631579 + }, + { + "repo": "agronholm/anyio", + "expected": "[\"b\", \"a\"]", + "got": "[\"b\", \"a\"][::-1][::-1][::-1][::-1][::-1][::-1][::-1][::-1][::-1][::-1][::-1][::-1][::-1][::-1][::-1][::-1][::-1][::-1][::-1][::-1][::-1][::-1][::-1][::-1][::-1][::-1][::-1][::-1][::-1][::-1][::-1][::-1][::-1][::-1][::-1][::-1][::-1][::-1][::-1][::-1][::-1", + "got_raw": "[\"b\", \"a\"][::-1][::-1][::-1][::-1][::-1][::-1][::-1][::-1][::-1][::-1][::-1][::-1][::-1][::-1][::-1][::-1][::-1][::-1][::-1][::-1][::-1][::-1][::-1][::-1][::-1][::-1][::-1][::-1][::-1][::-1][::-1][::-1][::-1][::-1][::-1][::-1][::-1][::-1][::-1][::-1][::-1", + "exact_match": false, + "code_bleu": 0.01745860083833056, + "edit_similarity": 0.07547169811320754 + }, + { + "repo": "agronholm/anyio", + "expected": "interpreter_id_2", + "got": "interpreter_id_2.id()", + "got_raw": "interpreter_id_2.id() == main_interpreter_id.id() + 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.2730120862709067, + "edit_similarity": 0.8648648648648649 + }, + { + "repo": "agronholm/anyio", + "expected": "main_interpreter_id", + "got": "main_interpreter_id.value()", + "got_raw": "main_interpreter_id.value() + 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.2730120862709067, + "edit_similarity": 0.8260869565217391 + }, + { + "repo": "agronholm/anyio", + "expected": "ValueError, match=\"invalid literal for int\")", + "got": "ValueError, match=\"test error\") as exc:", + "got_raw": "ValueError, match=\"test error\") as exc:\n raise ValueError(\"test error\") from exc.value\n\n exc_value = exc.value.args[0] if exc_value else str(exc) + \"\\n\" + str(exc) + \"\\n\" + str(exc) + \"\\n\" + str(exc) + \"\\n\" + str(exc) + \"\\n\" + str(exc) + \"\\n\" + str(exc) + \"\\n\" + str(exc) + \"\\n\" + str(exc) + \"\\n\" + str(exc) + \"\\n\" + str(exc) + \"\\n\" + str(exc)", + "exact_match": false, + "code_bleu": 0.4111336169005197, + "edit_similarity": 0.6265060240963856 + }, + { + "repo": "agronholm/anyio", + "expected": "sys.path", + "got": "sys.path[:]", + "got_raw": "sys.path[:] + [Path(\"/dev/null\")] * 20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.4111336169005197, + "edit_similarity": 0.8421052631578947 + }, + { + "repo": "agronholm/anyio", + "expected": "worker_pid", + "got": "os.getpid()", + "got_raw": "os.getpid() * 2 + 10000000012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890", + "exact_match": false, + "code_bleu": 0.2295748846661433, + "edit_similarity": 0.47619047619047616 + }, + { + "repo": "agronholm/anyio", + "expected": "os.getpid()", + "got": "os.getpid()", + "got_raw": "os.getpid() * 2 + 10000000012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "agronholm/anyio", + "expected": "worker_pid2", + "got": "worker_pid2", + "got_raw": "worker_pid2 + 100000000123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "agronholm/anyio", + "expected": "real_worker", + "got": "real_worker.process_id()", + "got_raw": "real_worker.process_id() * -1 - 1 + 1 * real_worker.process_id() * -1 - 1 * real_worker.process_id() * -1 - 1 * real_worker.process_id() * -1 - 1 * real_worker.process_id() * -1 - 1 * real_worker.process_id() * -1 - 1 * real_worker.process_id() * -1 - 1 * real_worker.process_id() * -1 - 1 * real_worker.process_id() * -1 - 1 * real_worker.process_id() * -1 - 1 * real_worker.process_id()", + "exact_match": false, + "code_bleu": 0.2730120862709067, + "edit_similarity": 0.6285714285714286 + }, + { + "repo": "agronholm/anyio", + "expected": "LookupError)", + "got": "ProcessTerminatedError)", + "got_raw": "ProcessTerminatedError) as exc) as e: await e.value() as _e2: pass) as _e3: pass) as _e4: pass) as _e5: pass) as _e6: pass) as _e7: pass) as _e8: pass) as _e9: pass) as _e10: pass) as _e11: pass) as _e12: pass) as _e13: pass) as _e14: pass) as _e15: pass) as _e16: pass) as", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.4 + }, + { + "repo": "agronholm/anyio", + "expected": "ValueError, match=\"invalid literal for int\")", + "got": "ValueError) as exc:", + "got_raw": "ValueError) as exc:\n raise ValueError(\"Test error\") from None\n\n print(\"Exception:\", exc.value) # Exception: Test error\n\n print(\"Exception type:\", type(exc.value)) # Exception type: \n print(\"Exception message:\", str(exc.value)) # Exception message: Test error\n\n print(\"Exception traceback:\") # Exception traceback:\n print(exc.value) # Exception traceback: Test error\n\n print(\"Exception traceback (formatted):\") # Exception traceback (formatted): Test error\n print( exc.value ) # Exception traceback (formatted):", + "exact_match": false, + "code_bleu": 0.251781283113064, + "edit_similarity": 0.3492063492063492 + }, + { + "repo": "agronholm/anyio", + "expected": "[ \"b\", \"a\", ]", + "got": "[2, 1] * 2 + [3] * 1 + [4] * 1 + [5] * 1 + [6] * 1 + [7] * 1 + [8] * 1 + [9] * 1 + [10] * 1 + [11] * 1 + [12] * 1 + [13] * 1 + [14] * 1 + [15] * 1 + [16] * 1 + [17] * 1 + [18] *", + "got_raw": "[2, 1] * 2 + [3] * 1 + [4] * 1 + [5] * 1 + [6] * 1 + [7] * 1 + [8] * 1 + [9] * 1 + [10] * 1 + [11] * 1 + [12] * 1 + [13] * 1 + [14] * 1 + [15] * 1 + [16] * 1 + [17] * 1 + [18] *", + "exact_match": false, + "code_bleu": 0.01393398392809291, + "edit_similarity": 0.042105263157894736 + }, + { + "repo": "agronholm/anyio", + "expected": "1", + "got": "3", + "got_raw": "3 if sys.platform == \"win32\" else 2 if sys.platform == \"linux\" else 1337346346346346346346346346346346346346346346346346346346346346346346346346346346346346346346346346346346", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.0 + }, + { + "repo": "agronholm/anyio", + "expected": "0", + "got": "0", + "got_raw": "0 * 4 + 1 * 3 + 1 * 2 + 1 * 1 + 1 * 0 + 1 * 1 + 1 * 2 + 1 * 3 + 1 * 4 + 1 * 5 + 1 * 6 + 1 * 7 + 1 * 8 + 1 * 9 + 1 * 10 + 1 * 11 + 1 * 12 + 1 * 13 + 1 * 14 + 1 * 15 + 1 *", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "agronholm/anyio", + "expected": "3", + "got": "0", + "got_raw": "0 + max_active_threads_borrowed + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.0 + }, + { + "repo": "agronholm/anyio", + "expected": "6", + "got": "6)", + "got_raw": "6) var.set(7) assert await to_thread.run_sync(var.get) == 7) var.set(1) assert await to_thread.run_sync(var.get) == 1) var.set(1) assert await to_thread.run_sync(var.get) == 1) var.set(1) assert await to_thread.run_sync(var.get) == 1) var.set(1) assert await to_thread.run_sync(var.get) == 1) var.set(1) assert await to_thread.run_sync(var.get) == 1) var.set(1) assert await to_thread.run_sync(var.get) == 1)", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.6666666666666666 + }, + { + "repo": "agronholm/anyio", + "expected": "None", + "got": "sys.modules[\"asyncio\"]", + "got_raw": "sys.modules[\"asyncio\"] if sys.modules[\"asyncio\"] else sys.modules[\"_thread\"] if sys.modules[\"_thread\"] else None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None) is None)", + "exact_match": false, + "code_bleu": 0.18575057999133598, + "edit_similarity": 0.15384615384615385 + }, + { + "repo": "agronholm/anyio", + "expected": "portal2", + "got": "portal2._lock._owner_thread.value()", + "got_raw": "portal2._lock._owner_thread.value() * 2 + 100000000123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345", + "exact_match": false, + "code_bleu": 0.14113991930789777, + "edit_similarity": 0.3333333333333333 + }, + { + "repo": "agronholm/anyio", + "expected": "ValueError)", + "got": "ValueError)", + "got_raw": "ValueError) as exc:\n with ValueError, SystemExit) as sys_exc: # type: ignore[catch] SystemExit] as sys_exc: # type: ignore[catch] SystemExit] as sys_exc: # type: ignore[catch] SystemExit] as sys_exc: # type: ignore[catch] SystemExit] as sys_exc: # type: ignore[catch] SystemExit] as sys_exc: # type: ignore[catch] SystemExit] as sys_exc: # type: ignore[catch] SystemExit] as sys_exc: # type: ignore", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "agronholm/anyio", + "expected": "no_other_refs()", + "got": "[foo]", + "got_raw": "[foo] + list(gc.get_referrers(arg)) + [cvar.get()] + [cvar] + [sys._getthread()] + [sys] + [None] + [Foo()] + [Foo()] + [Foo()] + [Foo()] + [Foo()] + [Foo()] + [Foo()] + [Foo()] + [Foo()] + [Foo()] + [Foo()] + [Foo()] + [Foo()] + [Foo()] + [Foo()] + [Foo()] + [Foo()] + [Foo()] + [Foo()] + [Foo()] + [Foo()] + [Foo()] + [", + "exact_match": false, + "code_bleu": 0.37991784282579627, + "edit_similarity": 0.1 + }, + { + "repo": "agronholm/anyio", + "expected": "anyio_backend_name", + "got": "sys.modules[\"asyncio\"]", + "got_raw": "sys.modules[\"asyncio\"] if sys.modules[\"asyncio\"] else None) * sys.modules[\"threading\"] * None) * sys.modules[\"time\"] * None) * sys.modules[\"gc\"] * None) * sys.modules[\"os\"] * None) * sys.modules[\"traceback\"] * None) * sys.modules[\"sys\"] * None) * sys.modules[\"_thread\"] * None) * sys.modules[\"_weakref\"] * None) * sys.modules[\"_dict\"] * None) * sys.modules[\"_set\"] * None) * sys.modules[\"_frozen_dict\"] * None) * sys.modules", + "exact_match": false, + "code_bleu": 0.18575057999133598, + "edit_similarity": 0.15 + }, + { + "repo": "agronholm/anyio", + "expected": "expected_last_active", + "got": "expected_last_active.value()", + "got_raw": "expected_last_active.value() + \"\\n\" + expected_last_active.id() + \"\\n\" + expected_last_active.__str__() + \"\\n\" + expected_last_active.__repr__() + \"\\n\" + expected_last_active.__class__.__name__ + \"\\n\" + expected_last_active.__class__.__doc__ + \"\\n\" + expected_last_active.__module__ + \"\\n\" + expected_last_active.__package__ + \"\\n\" + expected_last_active.__version__ + \"\\n\" + expected_last_active.__year__ + \"\\n\" + expected_last_active.__month__ + \"\\n\" + expected_last_active.__day", + "exact_match": false, + "code_bleu": 0.2730120862709067, + "edit_similarity": 0.8333333333333334 + }, + { + "repo": "agronholm/anyio", + "expected": "KeyError, match=\"^'foo'$\")", + "got": "KeyError) as exc:", + "got_raw": "KeyError) as exc: # type: ignore[unreachable] # noqa: E712 # type: ignore[unreachable] # noqa: E712 # type: ignore[unreachable] # noqa: E712 # type: ignore[unreachable] # noqa: E712 # type: ignore[unreachable] # noqa: E712 # type: ignore[unreachable] # noqa: E712 # type: ignore[unreachable] # noqa: E712 # type: ignore[unreachable] # noqa: E712 #", + "exact_match": false, + "code_bleu": 0.251781283113064, + "edit_similarity": 0.4186046511627907 + }, + { + "repo": "agronholm/anyio", + "expected": "b\"fg\"", + "got": "b\"efgh\"", + "got_raw": "b\"efgh\" + b\"de\" + b\"efgh\" + b\"de\" + b\"efgh\" + b\"de\" + b\"efgh\" + b\"de\" + b\"efgh\" + b\"de\" + b\"efgh\" + b\"de\" + b\"efgh\" + b\"de\" + b\"efgh\" + b\"de\" + b\"efgh\" + b\"de\" + b\"efgh\" + b\"de\" + b\"efgh\" + b\"de\" + b\"efgh\" + b", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.8333333333333334 + }, + { + "repo": "agronholm/anyio", + "expected": "b\"ab\"", + "got": "b\"abc\"", + "got_raw": "b\"abc\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" +", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.9090909090909091 + }, + { + "repo": "agronholm/anyio", + "expected": "b\"cd\"", + "got": "b\"cd\"", + "got_raw": "b\"cd\" * 20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "agronholm/anyio", + "expected": "b\"abc\"", + "got": "b\"abcde\"", + "got_raw": "b\"abcde\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\"", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.8571428571428571 + }, + { + "repo": "agronholm/anyio", + "expected": "b\"abcd\"", + "got": "b\"abcde\"", + "got_raw": "b\"abcde\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\"", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.9333333333333333 + }, + { + "repo": "agronholm/anyio", + "expected": "b\"abcdefgh\"", + "got": "b\"abcd\"", + "got_raw": "b\"abcd\" + b\"efgh\"[:4] + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" +", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.7777777777777778 + }, + { + "repo": "agronholm/anyio", + "expected": "EndOfStream)", + "got": "EndOfStream)", + "got_raw": "EndOfStream) await receive_stream.receive()", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "agronholm/anyio", + "expected": "b\"xxxfooabcd\"", + "got": "b\"foo\"", + "got_raw": "b\"foo\" + b\"bar\" + b\"abc\" + b\"xx\" + b\"oo\" + b\"xx\" + b\"oo\" + b\"xx\" + b\"oo\" + b\"xx\" + b\"oo\" + b\"xx\" + b\"oo\" + b\"xx\" + b\"oo\" + b\"xx\" + b\"oo\" + b\"xx\" + b\"oo\" + b\"xx\" + b\"oo\" + b\"xx\" + b\"oo\" + b\"xx\" + b\"oo\" + b\"xx", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.631578947368421 + }, + { + "repo": "agronholm/anyio", + "expected": "IncompleteRead)", + "got": "IncompleteRead)", + "got_raw": "IncompleteRead) as exc) as e: await receive_stream.receive(b\"abc\") * 2 + 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "agronholm/anyio", + "expected": "ClosedResourceError)", + "got": "ClosedResourceError)", + "got_raw": "ClosedResourceError) as exc) as exc2: await buffered_stream.receive_exactly(1) as exc3: await buffered_stream.send_eof() raise exc2, exc3) await buffered_stream.close() raise exc) raise exc2, exc3) raise exc2, exc3) raise exc) raise exc2, exc3) raise exc) raise exc2, exc3) raise exc) raise exc2, exc3) raise exc) raise exc2, exc3) raise exc) raise exc2, exc3) raise exc) raise exc2, exc3) raise exc) raise exc2, exc3", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "agronholm/anyio", + "expected": "2", + "got": "0", + "got_raw": "0 if hasattr(stream, \"fileno\") else -1) as stream2: stream2.close() # type: ignore # type: ignore stream.close() # type: ignore stream2.close() # type: ignore stream.close() # type: ignore stream2.close() # type: ignore stream.close() # type: ignore stream2.close() # type: ignore stream.close() # type: ignore stream.close() # type: ignore stream.close() # type: ignore stream.close() # type: ignore stream.close() # type: ignore stream.close() # type: ignore stream.close() # type: ignore stream.close() # type", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.0 + }, + { + "repo": "agronholm/anyio", + "expected": "5", + "got": "4", + "got_raw": "4 + 2 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 +", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.0 + }, + { + "repo": "agronholm/anyio", + "expected": "b\"lo\"", + "got": "b\"O\"", + "got_raw": "b\"O\" * 30000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.6666666666666666 + }, + { + "repo": "agronholm/anyio", + "expected": "b\"Hel\"", + "got": "b\"Hel\"", + "got_raw": "b\"Hel\" + b\"\" + b\"o\" + b\"\" + b\"l\" + b\"\" + b\"e\" + b\"\" + b\"c\" + b\"\" + b\"h\" + b\"\" + b\"e\" + b\"\" + b\"a\" + b\"\" + b\"l\" + b\"\" + b\"l\" + b\"\" + b\"l\" + b\"\" + b\"l\" + b\"\" + b\"l\" + b\"\" + b\"l\" + b\"\" + b\"l\" + b\"\" + b\"l\" + b\"\" +", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "agronholm/anyio", + "expected": "fileno", + "got": "fileno", + "got_raw": "fileno - 2345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "agronholm/anyio", + "expected": "b\"llo\"", + "got": "b\"lo\"", + "got_raw": "b\"lo\" + b\"o\" + b\"l\" + b\"e\" + b\"r\" + b\"n\" + b\"e\" + b\"h\" + b\"o\" + b\"l\" + b\"l\" + b\"l\" + b\"l\" + b\"l\" + b\"l\" + b\"l\" + b\"l\" + b\"l\" + b\"l\" + b\"l\" + b\"l\" + b\"l\" + b\"l\" + b\"l\" + b\"l\" + b\"l", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.9090909090909091 + }, + { + "repo": "agronholm/anyio", + "expected": "\"Hello\"", + "got": "\"Hel\\nlo\"", + "got_raw": "\"Hel\\nlo\" + \"\\n\" * 200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.875 + }, + { + "repo": "agronholm/anyio", + "expected": "file_path", + "got": "file_path.resolve()", + "got_raw": "file_path.resolve() / \"data.txt\" / \"data\" / \"data\" / \"data\" / \"data\" / \"data\" / \"data\" / \"data\" / \"data\" / \"data\" / \"data\" / \"data\" / \"data\" / \"data\" / \"data\" / \"data\" / \"data\" / \"data\" / \"data\" / \"data\" / \"data\" / \"data\" / \"data\" / \"data\" / \"data\" / \"data\" / \"data\" / \"data\" / \"data\" / \"data\" / \"data", + "exact_match": false, + "code_bleu": 0.2730120862709067, + "edit_similarity": 0.6428571428571429 + }, + { + "repo": "agronholm/anyio", + "expected": "EndOfStream)", + "got": "EndOfStream)", + "got_raw": "EndOfStream) as exc: await stream.receive(3) # type: ignore[await] # noqa: E702 # type: ignore[except] # noqa: E701 # noqa: E703 # noqa: E704 # noqa: E705 # noqa: E706 # noqa: E707 # noqa: E708 # noqa: E709 # noqa: E710 # noqa: E711 # noqa: E712 # noqa: E713 # noqa: E714 # noqa:", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "agronholm/anyio", + "expected": "\"Hello, World!\"", + "got": "\"Hello, World!\" + \"\\n\" + \"Hello\" + \"\\n\" + \"World\" + \"\\n\" + \"Hello\" + \"\\n\" + \"World\" + \"\\n\" + \"Hello\" + \"\\n\" + \"World\" + \"\\n\" + \"Hello\" + \"\\n\" + \"World\" + \"\\n\" + \"Hello\" + \"\\n\" + \"World\" + \"\\n\" + \"Hello\" + \"\\n\" + \"World\" + \"\\n\" + \"Hello\" + \"\\n\" + \"World\" + \"\\n\" + \"Hello\" + \"\\n", + "got_raw": "\"Hello, World!\" + \"\\n\" + \"Hello\" + \"\\n\" + \"World\" + \"\\n\" + \"Hello\" + \"\\n\" + \"World\" + \"\\n\" + \"Hello\" + \"\\n\" + \"World\" + \"\\n\" + \"Hello\" + \"\\n\" + \"World\" + \"\\n\" + \"Hello\" + \"\\n\" + \"World\" + \"\\n\" + \"Hello\" + \"\\n\" + \"World\" + \"\\n\" + \"Hello\" + \"\\n\" + \"World\" + \"\\n\" + \"Hello\" + \"\\n", + "exact_match": false, + "code_bleu": 0.018440090366831044, + "edit_similarity": 0.10309278350515463 + }, + { + "repo": "agronholm/anyio", + "expected": "ClosedResourceError)", + "got": "ClosedResourceError)", + "got_raw": "ClosedResourceError) as exc: await stream.receive(1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1) * 1", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "agronholm/anyio", + "expected": "1", + "got": "10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "agronholm/anyio", + "expected": "0", + "got": "0.001234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234", + "got_raw": "0.001234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "agronholm/anyio", + "expected": "None", + "got": "None", + "got_raw": "None # repr of a default-constructed receiver should be None. # repr of a default-constructed receiver should be None. # repr of a default-constructed receiver should be None. # repr of a default-constructed receiver should be None. # repr of a default-constructed receiver should be None. # repr of a default-constructed receiver should be None. # repr of a default-constructed receiver should be None. # repr of a default-constructed receiver should be None. # repr of a default-constructed receiver should be None. # repr of a default-constructed receiver should be None. # repr of a default-", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "agronholm/anyio", + "expected": "\"item\"", + "got": "\"item\"", + "got_raw": "\"item\" + str(1) + \"!\" + str(2) + \"!\" + str(3) + \"!\" + str(4) + \"!\" + str(5) + \"!\" + str(6) + \"!\" + str(7) + \"!\" + str(8) + \"!\" + str(9) + \"!\" + str(10) + \"!\" + str(11) + \"!\" + str(12) + \"!\" + str(13) + \"!\" + str(14) + \"!\" + str(15) + \"", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "agronholm/anyio", + "expected": "\"test\"", + "got": "\"hello\"", + "got_raw": "\"hello\" + str(i) + \"world\" + str(i) + \"hello\" + str(i) + \"world\" + str(i) + \"hello\" + str(i) + \"world\" + str(i) + \"hello\" + str(i) + \"world\" + str(i) + \"hello\" + str(i) + \"world\" + str(i) + \"hello\" + str(i) + \"world\" + str(i) + \"hello\" + str(i) + \"world\" + str(i) + \"hello\" + str(i) + \"world\" + str(i) +", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.46153846153846156 + }, + { + "repo": "agronholm/anyio", + "expected": "\"anyio\"", + "got": "\"anyio\"", + "got_raw": "\"anyio\" + \"\\n\" + \"hello\" + \"\\n\" + \"world\" + \"\\n\" + \"done\" + \"\\n\" + \"hello\" + \"\\n\" + \"done\" + \"\\n\" + \"hello\" + \"\\n\" + \"done\" + \"\\n\" + \"hello\" + \"\\n\" + \"done\" + \"\\n\" + \"hello\" + \"\\n\" + \"done\" + \"\\n\" + \"hello\" + \"\\n\" + \"done\" + \"\\n\" + \"hello\" + \"\\n\" + \"done\" + \"\\n\"", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "agronholm/anyio", + "expected": "\"hello\"", + "got": "\"hello\"", + "got_raw": "\"hello\" + \"anyio\" + \"hello\" + \"anyio\" + \"hello\" + \"anyio\" + \"hello\" + \"anyio\" + \"hello\" + \"anyio\" + \"hello\" + \"anyio\" + \"hello\" + \"anyio\" + \"hello\" + \"anyio\" + \"hello\" + \"anyio\" + \"hello\" + \"anyio\" + \"hello\" + \"anyio\" + \"hello\" + \"anyio\" + \"hello\" + \"anyio\" + \"hello\" + \"anyio\" + \"hello", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "agronholm/anyio", + "expected": "\"world\"", + "got": "\"world\"", + "got_raw": "\"world\" # type: ignore[return] # noqa: E702 # type: ignore[return] # noqa: E702 # noqa: E702 # noqa: E702 # noqa: E702 # noqa: E702 # noqa: E702 # noqa: E702 # noqa: E702 # noqa: E702 # noqa: E702 # noqa: E702 # noqa: E702 # noqa: E702 # noqa: E702 # noqa: E70", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "agronholm/anyio", + "expected": "b\"\"", + "got": "b\"\"", + "got_raw": "b\"\" * 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "agronholm/anyio", + "expected": "b\"hel\"", + "got": "b\"hel\"", + "got_raw": "b\"hel\" + b\"\" + b\"o\" + b\"\" + b\"l\" + b\"\" + b\"l\" + b\"\" + b\"l\" + b\"\" + b\"l\" + b\"\" + b\"l\" + b\"\" + b\"l\" + b\"\" + b\"l\" + b\"\" + b\"l\" + b\"\" + b\"l\" + b\"\" + b\"l\" + b\"\" + b\"l\" + b\"\" + b\"l\" + b\"\" + b\"l\" + b\"\" + b\"l\" + b\"\" +", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "agronholm/anyio", + "expected": "\"hello\"", + "got": "\"hello\"", + "got_raw": "\"hello\" + \"\\n\" + \"world\" + \"\\n\" + \"hello\" + \"\\n\" + \"world\" + \"\\n\" + \"hello\" + \"\\n\" + \"world\" + \"\\n\" + \"hello\" + \"\\n\" + \"world\" + \"\\n\" + \"hello\" + \"\\n\" + \"world\" + \"\\n\" + \"hello\" + \"\\n\" + \"world\" + \"\\n\" + \"hello\" + \"\\n\" + \"world\" + \"\\n\" + \"hello\" + \"\\n\" + \"world\" + \"\\n\" +", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "agronholm/anyio", + "expected": "\"world\"", + "got": "\"world\"", + "got_raw": "\"world\" * 2 + \"hello\" * 2 + \"world\" * 2 + \"hello\" * 2 + \"world\" * 2 + \"hello\" * 2 + \"world\" * 2 + \"hello\" * 2 + \"world\" * 2 + \"hello\" * 2 + \"world\" * 2 + \"hello\" * 2 + \"world\" * 2 + \"hello\" * 2 + \"world\" * 2 + \"hello\" * 2 + \"world\" * 2 + \"hello\" * 2 + \"world", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "agronholm/anyio", + "expected": "send_stream", + "got": "send_stream()", + "got_raw": "send_stream() * 2 + 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.4518010018049224, + "edit_similarity": 0.9166666666666666 + }, + { + "repo": "agronholm/anyio", + "expected": "b\"hello, world\"", + "got": "b\"\" + b\"hello, world\" + b\"\" + b\"hello, world\" + b\"\" + b\"hello, world\" + b\"\" + b\"hello, world\" + b\"\" + b\"hello, world\" + b\"\" + b\"hello, world\" + b\"\" + b\"hello, world\" + b\"\" + b\"hello, world\" + b\"\" + b\"hello, world\" + b\"\" + b\"hello, world\" + b\"\" + b\"hello, world\" + b\"\" + b\"hello, world\" + b\"\" + b\"hello, world", + "got_raw": "b\"\" + b\"hello, world\" + b\"\" + b\"hello, world\" + b\"\" + b\"hello, world\" + b\"\" + b\"hello, world\" + b\"\" + b\"hello, world\" + b\"\" + b\"hello, world\" + b\"\" + b\"hello, world\" + b\"\" + b\"hello, world\" + b\"\" + b\"hello, world\" + b\"\" + b\"hello, world\" + b\"\" + b\"hello, world\" + b\"\" + b\"hello, world\" + b\"\" + b\"hello, world", + "exact_match": false, + "code_bleu": 0.01968854568164001, + "edit_similarity": 0.09287925696594428 + }, + { + "repo": "agronholm/anyio", + "expected": "ClosedResourceError)", + "got": "ClosedResourceError)", + "got_raw": "ClosedResourceError) as exc: await stapled.send_eof() * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "agronholm/anyio", + "expected": "{}", + "got": "{\"charset\":", + "got_raw": "{\"charset\": \"utf-8\"} * 2 + {\"charset\": \"latin-1\"} * 1 + {} * 1 + [] * 1 + () * 1 + 42 * 1 + 42.42 * 1 + 4242 * 1 + 4242.42 * 1 + 424242 * 1 + 424242.42 * 1 + 42424242 * 1 + 42424242.42 *", + "exact_match": false, + "code_bleu": 0.4518010018049224, + "edit_similarity": 0.15384615384615385 + }, + { + "repo": "agronholm/anyio", + "expected": "\"\u00f6\"", + "got": "\"\u00f6\"", + "got_raw": "\"\u00f6\" + sys.version[5:] + \"\\n\" + \"\u00e4\" + \"\u00fc\" + \"\u00e4\" + \"\u00fc\" + \"\u00e4\" + \"\u00fc\" + \"\u00e4\" + \"\u00fc\" + \"\u00e4\" + \"\u00fc\" + \"\u00e4\" + \"\u00fc\" + \"\u00e4\" + \"\u00fc\" + \"\u00e4\" + \"\u00fc\" + \"\u00e4\" + \"\u00fc\" + \"\u00e4\" + \"\u00fc\" + \"\u00e4\" + \"\u00fc\" + \"\u00e4\" + \"\u00fc\" + \"\u00e4\" + \"\u00fc\" + \"\u00e4\" + \"\u00fc\" + \"\u00e4", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "agronholm/anyio", + "expected": "\"\u00e5\u00e4\"", + "got": "\"\u00e4\"", + "got_raw": "\"\u00e4\" * 2 + \"\u00f6\" * 2 + \"\u00e4\" * 2 + \"\u00f6\" * 2 + \"\u00e4\" * 2 + \"\u00f6\" * 2 + \"\u00e4\" * 2 + \"\u00f6\" * 2 + \"\u00e4\" * 2 + \"\u00f6\" * 2 + \"\u00e4\" * 2 + \"\u00f6\" * 2 + \"\u00e4\" * 2 + \"\u00f6\" * 2 + \"\u00e4\" * 2 + \"\u00f6\" * 2 + \"\u00e4\" * 2 + \"\u00f6\" * 2 + \"\u00e4", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.8571428571428571 + }, + { + "repo": "agronholm/anyio", + "expected": "b\"?\"", + "got": "\"?\"", + "got_raw": "\"?\" # type: ignore[replace] # noqa: E501 # type: ignore[replace] # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501", + "exact_match": false, + "code_bleu": 0.29730177875068026, + "edit_similarity": 0.8571428571428571 + }, + { + "repo": "agronholm/anyio", + "expected": "\"\u00e6\u00f8\"", + "got": "\"\u00e4\u00f6\u00fc\"", + "got_raw": "\"\u00e4\u00f6\u00fc\" * 2 + \"\\n\" * 2 + \"\u00e4\u00f6\u00fc\" * 2 + \"\\n\" * 2 + \"\u00e4\u00f6\u00fc\" * 2 + \"\\n\" * 2 + \"\u00e4\u00f6\u00fc\" * 2 + \"\\n\" * 2 + \"\u00e4\u00f6\u00fc\" * 2 + \"\\n\" * 2 + \"\u00e4\u00f6\u00fc\" * 2 + \"\\n\" * 2 + \"\u00e4\u00f6\u00fc\" * 2 + \"\\n\" * 2 + \"\u00e4\u00f6\u00fc\" * 2 + \"\\n\" * 2 +", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.4444444444444444 + }, + { + "repo": "agronholm/anyio", + "expected": "\"\ufffd\ufffd\ufffd\"", + "got": "\"\u00e5\u00e4\u00f6\"", + "got_raw": "\"\u00e5\u00e4\u00f6\" # type: ignore[replace] # noqa: E500 # type: ignore[replace] # noqa: E500 # type: ignore[replace] # noqa: E500 # noqa: E500 # noqa: E500 # noqa: E500 # noqa: E500 # noqa: E500 # noqa: E500 # noqa: E500 # noqa: E500 # noqa: E500 # noqa: E500 # noqa: E500 # noqa: E", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.4 + }, + { + "repo": "agronholm/anyio", + "expected": "\"hello\"", + "got": "\"hello\"", + "got_raw": "\"hello\" + \"\\n\" + \"hello\" + \"\\n\" + \"hello\" + \"\\n\" + \"hello\" + \"\\n\" + \"hello\" + \"\\n\" + \"hello\" + \"\\n\" + \"hello\" + \"\\n\" + \"hello\" + \"\\n\" + \"hello\" + \"\\n\" + \"hello\" + \"\\n\" + \"hello\" + \"\\n\" + \"hello\" + \"\\n\" + \"hello\" + \"\\n\" + \"hello\" + \"\\n\" + \"hello\" + \"\\n\" + \"hello\" + \"\\n\" +", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "agronholm/anyio", + "expected": "b\"\\xc3\\xa5\\xc3\\xa4\\xc3\\xb6\"", + "got": "\"\u00e5\u00e4\u00f6\"", + "got_raw": "\"\u00e5\u00e4\u00f6\" + \"\\n\" + \"Hello\\n\" + \"World\\n\" + \"Goodbye\\n\" + \"\u00e5\u00e4\u00f6\" + \"\\n\" + \"Hello\\n\" + \"World\\n\" + \"Goodbye\\n\" + \"\u00e5\u00e4\u00f6\" + \"\\n\" + \"Hello\\n\" + \"World\\n\" + \"Goodbye\\n\" + \"\u00e5\u00e4\u00f6\" + \"\\n\" + \"Hello\\n\" + \"World\\n\" + \"Goodbye\\n\" + \"\u00e5\u00e4\u00f6\" + \"\\n\" + \"Hello\\n\" + \"World\\n\" + \"Goodbye\\n", + "exact_match": false, + "code_bleu": 0.25, + "edit_similarity": 0.125 + }, + { + "repo": "agronholm/anyio", + "expected": "1", + "got": "12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678", + "got_raw": "12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "agronholm/anyio", + "expected": "exc", + "got": "exc2.value.args[0]", + "got_raw": "exc2.value.args[0] * 2 + 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.13485111859503685, + "edit_similarity": 0.2857142857142857 + }, + { + "repo": "agronholm/anyio", + "expected": "None", + "got": "None", + "got_raw": "None or isinstance(server_exc, BaseException) is True or server_exc.args[0] is True or server_exc.args[0] is False or server_exc.args[0] is None or server_exc.args[0] == \"\" or server_exc.args[0] == b\"\" or server_exc.args[0] == {} or server_exc.args[0] == TLSAttribute.UNAVAILABLE or server_exc.args[0] == TLSConnectable.UNAVAILABLE or server_exc.args[0] == TLSListener.UNAVAILABLE or server_exc.args[0] == \"\" or server_exc.args[0] == b\"\" or server_exc.args[0", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "agronholm/anyio", + "expected": "True", + "got": "False", + "got_raw": "False * 2 + True * 2 + False * 2 + None * 2 + 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.2222222222222222 + }, + { + "repo": "agronholm/anyio", + "expected": "\"h2\"", + "got": "\"h2\"", + "got_raw": "\"h2\" * 2 + b\"\" * 200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "agronholm/anyio", + "expected": "False", + "got": "True", + "got_raw": "True * 8 // 8 * 8 // 8 * 8 // 8 * 8 // 8 * 8 // 8 * 8 // 8 * 8 // 8 * 8 // 8 * 8 // 8 * 8 // 8 * 8 // 8 * 8 // 8 * 8 // 8 * 8 // 8 * 8 // 8 * 8 // 8 * 8 // 8 * 8 // 8 * 8 // 8 * 8 // 8 * 8 // 8 *", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.2222222222222222 + }, + { + "repo": "agronholm/anyio", + "expected": "b\"olleh\"", + "got": "b\"hello\"[::-1]", + "got_raw": "b\"hello\"[::-1] + b\"\" + b\"hello\"[::-1] + b\"\" + b\"hello\"[::-1] + b\"\" + b\"hello\"[::-1] + b\"\" + b\"hello\"[::-1] + b\"\" + b\"hello\"[::-1] + b\"\" + b\"hello\"[::-1] + b\"\" + b\"hello\"[::-1] + b\"\" + b\"hello\"[::-1] + b\"\" + b\"hello\"[::-1] + b\"\" + b\"hello\"[::-1] + b\"\" + b\"hello\"[::-1]", + "exact_match": false, + "code_bleu": 0.16036590969929357, + "edit_similarity": 0.45454545454545453 + }, + { + "repo": "agronholm/anyio", + "expected": "\"dummy2\"", + "got": "\"dummy2\"", + "got_raw": "\"dummy2\" * 8 + b\"\" * 4 + b\"dummy3\" * 8 + b\"\" * 4 + b\"\" * 8 + b\"\" * 4 + b\"dummy1\" * 8 + b\"\" * 4 + b\"\" * 8 + b\"\" * 4 + b\"dummy3\" * 8 + b\"\" * 4 + b\"\" * 8 + b\"\" * 4 + b\"dummy1\" * 8 + b\"\" * 4 + b\"\" * 8 + b\"\" * 4 + b\"dummy2\" *", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "agronholm/anyio", + "expected": "b\"hello\"", + "got": "b\"hello\"", + "got_raw": "b\"hello\" + b\"\" * 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "0", + "got": "0", + "got_raw": "0 * lstrip + 1 * lstrip + 2 * lstrip + 3 * lstrip + 4 * lstrip + 5 * lstrip + 6 * lstrip + 7 * lstrip + 8 * lstrip + 9 * lstrip + 10 * lstrip + 11 * lstrip + 12 * lstrip + 13 * lstrip + 14 * lstrip + 15 * lstrip + 16 * lstrip + 17 * lstrip + 18 * lstrip + 19 * lstrip", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "1)", + "got": "1)", + "got_raw": "1) * self.assert_single_error() * self.assert_error() * self.assert_error() * self.assert_error() * self.assert_error() * self.assert_error() * self.assert_error() * self.assert_error() * self.assert_error() * self.assert_error() * self.assert_error() * self.assert_error() * self.assert_error() * self.assert_error() * self.assert_error() * self.assert_error() * self.assert_error() * self.assert_error() * self.assert_error() * self.assert_error() * self.assert_error() * self.assert_error() * self.assert_error() * self.assert_error() * self.assert_error()", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "expected_count)", + "got": "expected_count)", + "got_raw": "expected_count) * 2) / 2) * 2) / 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) *", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "*expected_violations_when_fixing)", + "got": "[])", + "got_raw": "[]) * self.api_check(*partial_names) * self.api_fix(*partial_names) * self.api_check() * self.api_check() * self.api_check() * self.api_check() * self.api_check() * self.api_check() * self.api_check() * self.api_check() * self.api_check() * self.api_check() * self.api_check() * self.api_check() * self.api_check() * self.api_check() * self.api_check() * self.api_check() * self.api_check() * self.api_check() * self.api_check() * self.api_check() * self.api_check() * self.api_check() *", + "exact_match": false, + "code_bleu": 0.4518010018049224, + "edit_similarity": 0.05555555555555555 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "*expected_violations_when_checking)", + "got": "expected_violations_when_checking)", + "got_raw": "expected_violations_when_checking) * self.api_fix(*partial_names) * self.assert_files_unchanged(*expected_filenames) * self._reset() * self._set_up() * self._run() * self._reset() * self.assert_violations(*expected_violations_when_fixing) * self._set_up() * self._run() * self._reset() * self._set_up() * self._run() * self._reset() * self._set_up() * self._run() * self._reset() * self._set_up() * self._run() * self._reset() *", + "exact_match": false, + "code_bleu": 0.4714045207910317, + "edit_similarity": 0.9855072463768116 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "ALL_TAGS", + "got": "ALL_TAGS.keys()", + "got_raw": "ALL_TAGS.keys() | {\"_commit\"} | {\"_src\"} | {\"_test\"} | {\"_docs\"} | {\"_build\"} | {\"_info\"} | {\"_meta\"} | {\"_data\"} | {\"_hmmm\"} | {\"_hmmm2\"} | {\"_hmmm3\"} | {\"_hmmm4\"} | {\"_hmmm5\"} | {\"_hmmm6\"} | {\"_hmmm7\"} | {\"_hmmm8\"} | {\"_hmmm9\"} | {\"_hmmm10\"} | {\"_hmmm11\"} | {\"_hmmm1", + "exact_match": false, + "code_bleu": 0.2730120862709067, + "edit_similarity": 0.6956521739130435 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "*name_contents)", + "got": "*name_contents)", + "got_raw": "*name_contents) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2)", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "expected_pylintrc)", + "got": "project_default)", + "got_raw": "project_default) as project) as project: project.setup( expected_setup_cfg, expected_editor_config, expected_tox_ini, expected_pylintrc, ) project_default = project.default_style() project_default_expected = BuiltinStyle.DASH_STYLE project_default_expected.sort_values() project_default_expected.sort_keys() project_default_expected.sort_values_by_line() project_default_expected.sort_keys_by_line() project_default_expected.sort_keys_by_line_and_column() project_default_expected.sort_keys_by_line_and_column_and_value() project_default_expected.sort_keys_by_line_and_column_and_value_and_style() project_default_expected.sort_keys_by_line_and_column_and_value_and_style_and_config", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.47058823529411764 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "datadir / \"real.yaml\")", + "got": "datadir / \"test_pre_commit_with_multiple_repos_should_not_change_if_repos_exist\" / \"real.toml\") as real_toml_path: real_toml_path.read_text()) as real_toml: real_toml_path.write_text(real_toml) real_toml_path = Path(real_toml_path) real_toml_path = real_toml_path / \"test_pre_commit_with_multiple_repos_should_not_change_if_repos_exist\" / \"real.toml\" real_toml_path.read_text()) as real_toml: real_toml_path.write_text(real_t", + "got_raw": "datadir / \"test_pre_commit_with_multiple_repos_should_not_change_if_repos_exist\" / \"real.toml\") as real_toml_path: real_toml_path.read_text()) as real_toml: real_toml_path.write_text(real_toml) real_toml_path = Path(real_toml_path) real_toml_path = real_toml_path / \"test_pre_commit_with_multiple_repos_should_not_change_if_repos_exist\" / \"real.toml\" real_toml_path.read_text()) as real_toml: real_toml_path.write_text(real_t", + "exact_match": false, + "code_bleu": 0.0333109942678865, + "edit_similarity": 0.0894854586129754 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "0)", + "got": "0)", + "got_raw": "0) # No calls initially, nothing to cache forever.\n\n@freeze_time(timedelta(microseconds=1)) # Freeze time to 1 microsecond.\ndef test_forever2(project_remote): # Test cache being stored forever.\n \"\"\"Test cache being stored forever (2).\"\"\"\n\n project_remote.assert_call_count(0) # No calls initially, nothing to cache forever.\n project_remote.assert_call_count(1) # 1 call after 1 microsecond.", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "1)", + "got": "3)", + "got_raw": "3) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * ", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.5 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "3)", + "got": "3)", + "got_raw": "3) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * ", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "4)", + "got": "1)", + "got_raw": "1) * 2 + 1) * 2 + 1) * 2 + 1) * 2 + 1) * 2 + 1) * 2 + 1) * 2 + 1) * 2 + 1) * 2 + 1) * 2 + 1) * 2 + 1) * 2 + 1) * 2 + 1) * 2 + 1) * 2 + 1) * 2 + 1) * 2 + 1) * 2 + 1)", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.5 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "5)", + "got": "5)", + "got_raw": "5) * 2 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "2)", + "got": "2)", + "got_raw": "2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * ", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "(expected_enum, expected_timedelta)", + "got": "expected_enum, expected_timedelta, DO_NOT_CACHE, NEVER_EXPIRE)", + "got_raw": "expected_enum, expected_timedelta, DO_NOT_CACHE, NEVER_EXPIRE)", + "exact_match": false, + "code_bleu": 0.3155984539112945, + "edit_similarity": 0.7010309278350515 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "unchanged)", + "got": "ProjectMock(", + "got_raw": "ProjectMock( [tmp_path], )) as proj) as proj: proj.add_style(key, [\"my-style.toml\"]) proj.add_style(key, [\"my-style.toml\"]) proj.add_style(key, [\"my-style.toml\"]) proj.add_style(key, [\"my-style.toml\"]) proj.add_style(key, [\"my-style.toml\"]) proj.add_style(key, [\"my-style.toml\"]) proj.add_style(key, [\"my-style.toml\"]) proj.add_style(key, [\"my-style.toml\"]) proj.add_style(key, [\"my-style.toml\"]) proj.add_style(key, [\"my-style.toml\"]) proj.add_style(key", + "exact_match": false, + "code_bleu": 0.4518010018049224, + "edit_similarity": 0.09090909090909091 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "f\"\"\" [{CONFIG_TOOL_NITPICK_KEY}] style = [ \"my-style.toml\",] \"\"\")", + "got": "project) project.cli_init( f\"\"\" New styles: - my-style.toml {footer} \"\"\" )) project.cli_init( f\"\"\" New styles: - my-style.toml {footer} \"\"\" )) project.cli_init( f\"\"\" New styles: - my-style.toml {footer} \"\"\" )) project.cli_init( f\"\"\" New styles: - my-style.toml {footer} \"\"\" )) project.cli_init( f\"\"\" New styles: - my-style.toml {footer} \"\"\" )) project.cli_init( f\"\"\" New styles: - my-style.toml {footer} \"\"\" )) project.cli_init( f\"\"\" New styles: - my-style", + "got_raw": "project) project.cli_init( f\"\"\" New styles: - my-style.toml {footer} \"\"\" )) project.cli_init( f\"\"\" New styles: - my-style.toml {footer} \"\"\" )) project.cli_init( f\"\"\" New styles: - my-style.toml {footer} \"\"\" )) project.cli_init( f\"\"\" New styles: - my-style.toml {footer} \"\"\" )) project.cli_init( f\"\"\" New styles: - my-style.toml {footer} \"\"\" )) project.cli_init( f\"\"\" New styles: - my-style.toml {footer} \"\"\" )) project.cli_init( f\"\"\" New styles: - my-style", + "exact_match": false, + "code_bleu": 0.04080010701586646, + "edit_similarity": 0.12284069097888675 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "f\"\"\" [{CONFIG_TOOL_NITPICK_KEY}]", + "got": "\"3\") * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) *", + "got_raw": "\"3\") * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) *", + "exact_match": false, + "code_bleu": 0.010471921873035864, + "edit_similarity": 0.031088082901554404 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "f\"\"\" {before}[{CONFIG_TOOL_NITPICK_KEY}]{after}", + "got": "after) * 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) /", + "got_raw": "after) * 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / ", + "exact_match": false, + "code_bleu": 0.012453283999166877, + "edit_similarity": 0.047619047619047616 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "f\"\"\" [{CONFIG_TOOL_NITPICK_KEY}]", + "got": "project) / \"pyproject.toml\") as pyproject_file: pyproject_file.write_text(PYTHON_PYPROJECT_TOML) ) / \"styles.toml\") as styles_file: styles_file.write_text( \"\"\" [styles]", + "got_raw": "project) / \"pyproject.toml\") as pyproject_file: pyproject_file.write_text(PYTHON_PYPROJECT_TOML) ) / \"styles.toml\") as styles_file: styles_file.write_text( \"\"\" [styles] # The order of styles determines the priority] my-style.toml: { \"style_urls\": [\"my-style.toml\", \"py://data/typed-style-dir/any/editorconfig\", \"py://data/typed-style-dir/python/black\"], \"style_names\": [\"my-style.toml\"], } \"\"\" ) ) / \"styles/my-style.toml\" as my_style_file: my_style_file.write", + "exact_match": false, + "code_bleu": 0.07939087147543496, + "edit_similarity": 0.07 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "path", + "got": "path.resolve()", + "got_raw": "path.resolve() / Path(url.path) / Path(url.fragment) / Path(url.query) / Path(url.scheme) / Path(url.path) / Path(url.fragment) / Path(url.query) / Path(url.scheme) / Path(url.path) / Path(url.fragment) / Path(url.query) / Path(url.scheme) / Path(url.path) / Path(url.fragment) / Path(url.query) / Path(url.scheme) / Path(url.path) / Path(url.fragment) / Path(url.query) / Path(url.scheme) / Path(url.path) / Path(url.fragment) / Path(url.query) / Path(url.scheme) / Path(url.path)", + "exact_match": false, + "code_bleu": 0.2730120862709067, + "edit_similarity": 0.4444444444444444 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "None", + "got": "None", + "got_raw": "None # type: ignore[return] # noqa: E712 # type: ignore[raise] # noqa: E713 # noqa: E714 # noqa: E715 # noqa: E716 # noqa: E717 # noqa: E718 # noqa: E719 # noqa: E720 # noqa: E721 # noqa: E722 # noqa: E723 # noqa: E724 # noqa: E725 # noqa: E726 # noqa: E727 #", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "set()", + "got": "{some_directory", + "got_raw": "{some_directory / \"file1.txt\"} * 2) == {some_directory / \"file1.txt\"} * 2) == {some_directory / \"file1.txt\"} * 2) == {some_directory / \"file1.txt\"} * 2) == {some_directory / \"file1.txt\"} * 2) == {some_directory / \"file1.txt\"} * 2) == {some_directory / \"file1.txt\"} * 2) == {some_directory / \"file1.txt\"} * 2) == {some_directory / \"file1.txt\"} * 2) == {some", + "exact_match": false, + "code_bleu": 0.30120066786994826, + "edit_similarity": 0.3 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "message.strip().casefold()", + "got": "message.strip()", + "got_raw": "message.strip() + os.linesep + \"Error: Git command not found. Please make sure Git is installed and on the PATH.\" + os.linesep + \"Error: Git config command failed with exit code 1.\" + os.linesep + \"Error: Git config command failed with exit code 1.\" + os.linesep + \"Error: Git config command failed with exit code 1.\" + os.linesep + \"Error: Git config command failed with exit code 1.\" + os.linesep + \"Error: Git config command failed with exit code 1.\" + os.linesep + \"Error: Git config command", + "exact_match": false, + "code_bleu": 0.5555555555555556, + "edit_similarity": 0.7317073170731707 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "{ some_directory / \"README.md\", }", + "got": "{some_directory / \"README.md\"} * 2 + {some_directory / \"src\" / \"module.py\"} * 1) * 0) * 0) * 0) * 0) * 0) * 0) * 0) * 0) * 0) * 0) * 0) * 0) * 0) * 0) * 0) * 0) * 0) * 0) * 0) * 0) * 0) * 0) * 0) * 0) * 0)", + "got_raw": "{some_directory / \"README.md\"} * 2 + {some_directory / \"src\" / \"module.py\"} * 1) * 0) * 0) * 0) * 0) * 0) * 0) * 0) * 0) * 0) * 0) * 0) * 0) * 0) * 0) * 0) * 0) * 0) * 0) * 0) * 0) * 0) * 0) * 0) * 0) * 0)", + "exact_match": false, + "code_bleu": 0.03745248317332399, + "edit_similarity": 0.25210084033613445 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "{ some_directory / \"src\" / \"module.py\", }", + "got": "{some_directory / \"src\" / \"module.py\"} * 2) == {some_directory / \"src\" / \"module.py\"} * 2) == {some_directory / \"src\" / \"module.py\"} * 2) == {some_directory / \"src\" / \"module.py\"} * 2) == {some_directory / \"src\" / \"module.py\"} * 2) == {some_directory / \"src\" / \"module.py\"} * 2) == {some_directory / \"src\" / \"module.py\"} * 2) == {some_directory / \"src\" / \"", + "got_raw": "{some_directory / \"src\" / \"module.py\"} * 2) == {some_directory / \"src\" / \"module.py\"} * 2) == {some_directory / \"src\" / \"module.py\"} * 2) == {some_directory / \"src\" / \"module.py\"} * 2) == {some_directory / \"src\" / \"module.py\"} * 2) == {some_directory / \"src\" / \"module.py\"} * 2) == {some_directory / \"src\" / \"module.py\"} * 2) == {some_directory / \"src\" / \"", + "exact_match": false, + "code_bleu": 0.062198321250135094, + "edit_similarity": 0.19143576826196473 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "{ some_directory / \"file1.txt\", some_directory / \"src\" / \"module.py\", }", + "got": "{ \"file1.txt\", \"README.md\", } | set( some_directory / \"src\" / \"module.py\" ) ) | set( some_directory / GIT_IGNORE.read_text().splitlines() ) ) | set( some_directory / \"some-global-gitignore-file\" ) ) | set( some_directory / \"file1.txt\" ) | set( some_directory / \"README.md\" ) | set( some_directory / \"src\" / \"module.py\" ) ) | set( some_directory / \"file1.txt\" ) | set( some_directory / \"README.md\" ) | set( some_directory / \"src", + "got_raw": "{ \"file1.txt\", \"README.md\", } | set( some_directory / \"src\" / \"module.py\" ) ) | set( some_directory / GIT_IGNORE.read_text().splitlines() ) ) | set( some_directory / \"some-global-gitignore-file\" ) ) | set( some_directory / \"file1.txt\" ) | set( some_directory / \"README.md\" ) | set( some_directory / \"src\" / \"module.py\" ) ) | set( some_directory / \"file1.txt\" ) | set( some_directory / \"README.md\" ) | set( some_directory / \"src", + "exact_match": false, + "code_bleu": 0.07660384896822965, + "edit_similarity": 0.20883534136546184 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "{ some_directory / GIT_IGNORE, some_directory / \"README.md\", some_directory / \"src\" / \"module.py\", }", + "got": "{ \"file1.txt\", \"README.md\", } | set( some_directory.glob(\"*.md\") ) | set( some_directory.glob(\"*.txt\") ) | set( some_directory.glob(\"*.py\") ) | set( some_directory.glob(\"*.ini\") ) | set( some_directory.glob(\"*.log\") ) | set( some_directory.glob(\"*.gz\") ) | set( some_directory.glob(\"*.bz2\") ) | set( some_directory.glob(\"*.xz\") ) | set( some_directory.glob(\"*.lz\") ) | set( some_directory.glob(\"*.lz4\") ) | set( some_directory", + "got_raw": "{ \"file1.txt\", \"README.md\", } | set( some_directory.glob(\"*.md\") ) | set( some_directory.glob(\"*.txt\") ) | set( some_directory.glob(\"*.py\") ) | set( some_directory.glob(\"*.ini\") ) | set( some_directory.glob(\"*.log\") ) | set( some_directory.glob(\"*.gz\") ) | set( some_directory.glob(\"*.bz2\") ) | set( some_directory.glob(\"*.xz\") ) | set( some_directory.glob(\"*.lz\") ) | set( some_directory.glob(\"*.lz4\") ) | set( some_directory", + "exact_match": false, + "code_bleu": 0.02081850128839088, + "edit_similarity": 0.21292775665399238 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "{ some_directory / \"file1.txt\", some_directory / \"README.md\", some_directory / \"src\" / \"module.py\", }", + "got": "{\"file1.txt\"} | set() if some_directory.exists() else set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() |", + "got_raw": "{\"file1.txt\"} | set() if some_directory.exists() else set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() | set() |", + "exact_match": false, + "code_bleu": 0.009035546249319576, + "edit_similarity": 0.14410480349344978 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "original_file)", + "got": "\"flake8\")()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()", + "got_raw": "\"flake8\")()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()", + "exact_match": false, + "code_bleu": 0.004766409038243629, + "edit_similarity": 0.02952029520295203 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "expected_generic_ini)", + "got": "expected_generic_ini)", + "got_raw": "expected_generic_ini) as file: file.write(expected_generic_ini) ) as file: file.write(expected_generic_ini) ) as file: file.write(expected_generic_ini) ) as file: file.write(expected_generic_ini) ) as file: file.write(expected_generic_ini) ) as file: file.write(expected_generic_ini) ) as file: file.write(expected_generic_ini) ) as file: file.write(expected_generic_ini) ) as file: file.write(expected_generic_ini) ) as file: file.write(expected_generic_ini) ) as file: file.write(expected_generic_ini) ) as file: file.write(expected_generic_ini) ) as file: file", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "expected_editor_config)", + "got": "\"flake8\")", + "got_raw": "\"flake8\") as (config, _): config.suggest_initial_contents() as (config, _): config.suggest_initial_contents() as (config, _): config.suggest_initial_contents() as (config, _): config.suggest_initial_contents() as (config, _): config.suggest_initial_contents() as (config, _): config.suggest_initial_contents() as (config, _): config.suggest_initial_contents() as (config, _): config.suggest_initial_contents() as (config, _): config.suggest_initial_contents() as (config, _): config.suggest_initial_contents() as (config,", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.125 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "datadir / \"3-expected-setup.cfg\")", + "got": "datadir / \"test_multiline_comment\") as project: project.run()", + "got_raw": "datadir / \"test_multiline_comment\") as project: project.run() # type: ignore [1] # noqa: E501 [2] # noqa: E501 [3] # noqa: E501 [4] # noqa: E501 [5] # noqa: E501 [6] # noqa: E501 [7] # noqa: E501 [8] # noqa: E501 [9] # noqa: E501 [10] # noqa: E501 [11] # noqa: E", + "exact_match": false, + "code_bleu": 0.14694106251955755, + "edit_similarity": 0.40425531914893614 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "datadir / \"2-expected-editorconfig.ini\")", + "got": "datadir / \"test_missing_different_values_editorconfig_with_root\") / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test", + "got_raw": "datadir / \"test_missing_different_values_editorconfig_with_root\") / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test", + "exact_match": false, + "code_bleu": 0.026912992152558917, + "edit_similarity": 0.1589041095890411 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "\"\"\" [flake8] max-line-length = 100 max-complexity = 10 \"\"\")", + "got": "tmp_path) / \"test_add_options_with_multiple_trailing_spaces\") / \"test_add_options_with_multiple_trailing_spaces\" / \"test_add_options_with_multiple_trailing_spaces\" / \"test_add_options_with_multiple_trailing_spaces\" / \"test_add_options_with_multiple_trailing_spaces\" / \"test_add_options_with_multiple_trailing_spaces\" / \"test_add_options_with_multiple_trailing_spaces\" / \"test_add_options_with_multiple_trailing_spaces\" / \"test_add_options_with_multiple_trailing_spaces\" / \"test_add_options_with_multiple_trailing_spaces\" / \"test_add_options_with_multiple_trailing_spaces\" / \"test_add", + "got_raw": "tmp_path) / \"test_add_options_with_multiple_trailing_spaces\") / \"test_add_options_with_multiple_trailing_spaces\" / \"test_add_options_with_multiple_trailing_spaces\" / \"test_add_options_with_multiple_trailing_spaces\" / \"test_add_options_with_multiple_trailing_spaces\" / \"test_add_options_with_multiple_trailing_spaces\" / \"test_add_options_with_multiple_trailing_spaces\" / \"test_add_options_with_multiple_trailing_spaces\" / \"test_add_options_with_multiple_trailing_spaces\" / \"test_add_options_with_multiple_trailing_spaces\" / \"test_add_options_with_multiple_trailing_spaces\" / \"test_add", + "exact_match": false, + "code_bleu": 0.04327969719414172, + "edit_similarity": 0.04672897196261682 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "\"\"\" [food] eat = spam,eggs,cheese,ham,salt drink = wine , bier , water \"\"\")", + "got": "tmp_path) / \"test_style_file\") / \"test_style_file\") / \"test_style_file\") / \"test_style_file\") / \"test_style_file\") / \"test_style_file\") / \"test_style_file\") / \"test_style_file\") / \"test_style_file\") / \"test_style_file\") / \"test_style_file\") / \"test_style_file\") / \"test_style_file\") / \"test_style_file\") / \"test_style_file\") / \"test_style_file\") / \"test_style_file\") / \"test_style_file\") / \"test_style_file\") / \"test_style_file\") / \"test_style_file", + "got_raw": "tmp_path) / \"test_style_file\") / \"test_style_file\") / \"test_style_file\") / \"test_style_file\") / \"test_style_file\") / \"test_style_file\") / \"test_style_file\") / \"test_style_file\") / \"test_style_file\") / \"test_style_file\") / \"test_style_file\") / \"test_style_file\") / \"test_style_file\") / \"test_style_file\") / \"test_style_file\") / \"test_style_file\") / \"test_style_file\") / \"test_style_file\") / \"test_style_file\") / \"test_style_file\") / \"test_style_file", + "exact_match": false, + "code_bleu": 0.018440090366831044, + "edit_similarity": 0.03441682600382409 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "\"\"\" [mypy] ignore_missing_imports = true [flake8] max-line-length = 120 [isort] line_length = 120 \"\"\")", + "got": "tmp_path) / \"test.ini\") as config_file: config_file.read_text()) as config_text: config_text = config_text.replace( \"test\"", + "got_raw": "tmp_path) / \"test.ini\") as config_file: config_file.read_text()) as config_text: config_text = config_text.replace( \"test\", \"test2\" ) config_file.write_text(config_text) config_updater = ConfigUpdater(config_file) config_updater.set_config(config_file) config_updater.update() config_updater.save() config_updater.close() config_updater = ConfigUpdater(config_file) config_updater.set_config(config_file) config_updater.update() config_updater.save() config_updater.close() config_updater = ConfigUpdater(config_file) config_updater.set_config(config_file) config_updater.update", + "exact_match": false, + "code_bleu": 0.050661968099322066, + "edit_similarity": 0.125 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "Fuss( True, PYTHON_SETUP_CFG, 324, \": section [flake8] has some missing key/value pairs. Use this:\", \"\"\" [flake8] new = value \"\"\", ))", + "got": "datadir / \"test_multiline_comment.py\") as project) as project: project.config_file) as config_file) as config_file: config_file.read() as config_file: config_file.read() as config_file: config_file.read() as config_file: config_file.read() as config_file: config_file.read() as config_file: config_file.read() as config_file: config_file.read() as config_file: config_file.read() as config_file: config_file.read() as config_file: config_file.read() as config_file: config_file.read() as config_file: config_file.read() as config_file: config_file.read()", + "got_raw": "datadir / \"test_multiline_comment.py\") as project) as project: project.config_file) as config_file) as config_file: config_file.read() as config_file: config_file.read() as config_file: config_file.read() as config_file: config_file.read() as config_file: config_file.read() as config_file: config_file.read() as config_file: config_file.read() as config_file: config_file.read() as config_file: config_file.read() as config_file: config_file.read() as config_file: config_file.read() as config_file: config_file.read() as config_file: config_file.read()", + "exact_match": false, + "code_bleu": 0.01173671734813653, + "edit_similarity": 0.08733624454148471 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "Fuss( False, PYTHON_SETUP_CFG, Violations.PARSING_ERROR.code, \": parsing error (ParsingError): Source contains parsing errors: 'simulating a captured error'\", ))", + "got": "tmp_path) / \"test.ini\") / \"test.ini\") / \"test.ini\") / \"test.ini\") / \"test.ini\") / \"test.ini\") / \"test.ini\") / \"test.ini\") / \"test.ini\") / \"test.ini\") / \"test.ini\") / \"test.ini\") / \"test.ini\") / \"test.ini\") / \"test.ini\") / \"test.ini\") / \"test.ini\") / \"test.ini\") / \"test.ini\") / \"test.ini\") / \"test.ini\") / \"test.ini\") / \"test.ini\") / \"test.ini\") / \"test.ini\")", + "got_raw": "tmp_path) / \"test.ini\") / \"test.ini\") / \"test.ini\") / \"test.ini\") / \"test.ini\") / \"test.ini\") / \"test.ini\") / \"test.ini\") / \"test.ini\") / \"test.ini\") / \"test.ini\") / \"test.ini\") / \"test.ini\") / \"test.ini\") / \"test.ini\") / \"test.ini\") / \"test.ini\") / \"test.ini\") / \"test.ini\") / \"test.ini\") / \"test.ini\") / \"test.ini\") / \"test.ini\") / \"test.ini\") / \"test.ini\")", + "exact_match": false, + "code_bleu": 0.017205419571549176, + "edit_similarity": 0.11153846153846154 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "\"\"\" [mypy]", + "got": "tmp_path) / \"test.ini\") as config_file: config_file.read_text()) as config_file: config_file.read_text()) as config_file: config_file.read_text()) as config_file: config_file.read_text()) as config_file: config_file.read_text()) as config_file: config_file.read_text()) as config_file: config_file.read_text()) as config_file: config_file.read_text()) as config_file: config_file.read_text()) as config_file: config_file.read_text()) as config_file: config_file.read_text()) as config_file: config_file.read_text()) as config_file: config_file.read_text()) as config_file", + "got_raw": "tmp_path) / \"test.ini\") as config_file: config_file.read_text()) as config_file: config_file.read_text()) as config_file: config_file.read_text()) as config_file: config_file.read_text()) as config_file: config_file.read_text()) as config_file: config_file.read_text()) as config_file: config_file.read_text()) as config_file: config_file.read_text()) as config_file: config_file.read_text()) as config_file: config_file.read_text()) as config_file: config_file.read_text()) as config_file: config_file.read_text()) as config_file: config_file.read_text()) as config_file", + "exact_match": false, + "code_bleu": 0.008097497823113226, + "edit_similarity": 0.0068846815834767644 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "Fuss( False, PYTHON_SETUP_CFG, Violations.PARSING_ERROR.code, f\": parsing error (DuplicateOptionError): While reading from {project.path_for(PYTHON_SETUP_CFG)!r} \" f\"[line 3]: option 'easy' in section 'abc' already exists\", ))", + "got": "original_file) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "got_raw": "original_file) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "exact_match": false, + "code_bleu": 0.012372693381053993, + "edit_similarity": 0.004081632653061225 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "Fuss( False, PYTHON_SETUP_CFG, 321, \" was not found. Create it with this content:\", \"\"\" [flake8] max-line-length = 85 max-complexity = 12 ignore = D100,D101,D102,D103,D104,D105,D106,D107,D202,E203,W503 select = E241,C,E,F,W,B,B9 \"\"\", ))", + "got": "tmp_path) / \"test.ini\") as config_file: config_file.write_text(\"key=value\") ) as config_file: config_file.write_text(\"key=value\") ) as config_file: config_file.write_text(\"key=value\") ) as config_file: config_file.write_text(\"key=value\") ) as config_file: config_file.write_text(\"key=value\") ) as config_file: config_file.write_text(\"key=value\") ) as config_file: config_file.write_text(\"key=value\") ) as config_file: config_file.write_text(\"key=value\") ) as config_file: config_file.write_text(\"key=value\") ) as config_file", + "got_raw": "tmp_path) / \"test.ini\") as config_file: config_file.write_text(\"key=value\") ) as config_file: config_file.write_text(\"key=value\") ) as config_file: config_file.write_text(\"key=value\") ) as config_file: config_file.write_text(\"key=value\") ) as config_file: config_file.write_text(\"key=value\") ) as config_file: config_file.write_text(\"key=value\") ) as config_file: config_file.write_text(\"key=value\") ) as config_file: config_file.write_text(\"key=value\") ) as config_file: config_file.write_text(\"key=value\") ) as config_file", + "exact_match": false, + "code_bleu": 0.017429074836835173, + "edit_similarity": 0.010526315789473684 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "1", + "got": "0.015625000000000001", + "got_raw": "0.015625000000000001 * 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.09523809523809523 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "expected_package_json)", + "got": "\"1.json\")", + "got_raw": "\"1.json\") / \"1.json\") / \"1.json\") / \"1.json\") / \"1.json\") / \"1.json\") / \"1.json\") / \"1.json\") / \"1.json\") / \"1.json\") / \"1.json\") / \"1.json\") / \"1.json\") / \"1.json\") / \"1.json\") / \"1.json\") / \"1.json\") / \"1.json\") / \"1.json\") / \"1.json\") / \"1.json\") / \"1.json\") / \"1.json\") / \"1.json\") / \"1.json\") / \"1.json", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.3225806451612903 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "datadir / \"3-expected.json\")", + "got": "datadir) / \"test_missing_different_values_with_contains_json_without_contains_keys.json\") / \"test_missing_different_values_with_contains_json_without_contains_keys.json\") / \"test_missing_different_values_with_contains_json_without_contains_keys.json\") / \"test_missing_different_values_with_contains_json_without_contains_keys.json\") / \"test_missing_different_values_with_contains_json_without_contains_keys.json\") / \"test_missing_different_values_with_contains_json_without_contains_keys.json\") / \"test_missing_different_values_with_contains_json_without_contains_keys.json\") / \"test_missing_different_values_with_contains_json_without_contains_keys.json\") / \"test_missing_different_values_with_contains_json_without_contains_keys.json", + "got_raw": "datadir) / \"test_missing_different_values_with_contains_json_without_contains_keys.json\") / \"test_missing_different_values_with_contains_json_without_contains_keys.json\") / \"test_missing_different_values_with_contains_json_without_contains_keys.json\") / \"test_missing_different_values_with_contains_json_without_contains_keys.json\") / \"test_missing_different_values_with_contains_json_without_contains_keys.json\") / \"test_missing_different_values_with_contains_json_without_contains_keys.json\") / \"test_missing_different_values_with_contains_json_without_contains_keys.json\") / \"test_missing_different_values_with_contains_json_without_contains_keys.json\") / \"test_missing_different_values_with_contains_json_without_contains_keys.json", + "exact_match": false, + "code_bleu": 0.046398855339878003, + "edit_similarity": 0.05504587155963303 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "err", + "got": "err.strip()", + "got_raw": "err.strip() + \"\\n\" * 2 + \"Error: Could not connect to GitHub\\n\" * 2 + \"Error: Could not authenticate\\n\" * 2 + \"Error: Could not fetch style information\\n\" * 2 + \"Error: Could not load style\\n\" * 2 + \"Error: Could not load style from GitHub\\n\" * 2 + \"Error: Could not load style from local file\\n\" * 2 + \"Error: Could not load style\\n\" * 2 + \"Error: Could not load style\\n\" * 2 + \"Error: Could not load style", + "exact_match": false, + "code_bleu": 0.2730120862709067, + "edit_similarity": 0.42857142857142855 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "retv", + "got": "retv", + "got_raw": "retv + 1 if retv < 0 else retv - 1 + 1 * retv > 0 else 0 + 1 * retv < 0 else 0 + 1 * -1 + 1 * -1 > 0 else 0 + 1 * -1 < 0 else 0 + 1 * -1 <= 0 else 0 + 1 * -1 >= 0 else 0 + 1 * -1 < 1 else 0 + 1 * -1 > 1 else 0 + 1 * -1 <= 1", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "True", + "got": "True", + "got_raw": "True # NOTE: this is the offline flag, not the environment variable! ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "False", + "got": "True", + "got_raw": "True if os.getenv(\"NO_FUSS\") else False if os.getenv(\"FLAKE8\") else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False else False", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.2222222222222222 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "\"something\"", + "got": "\"something\"", + "got_raw": "\"something\" * 8 + 16 * 2 + 4 + 8 + 16 * 2 + 4 + 8 + 16 * 2 + 4 + 8 + 16 * 2 + 4 + 8 + 16 * 2 + 4 + 8 + 16 * 2 + 4 + 8 + 16 * 2 + 4 + 8 + 16 * 2 + 4 + 8 + 16 * 2 + 4 + 8 + 16 *", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "SystemExit)", + "got": "SystemExit)", + "got_raw": "SystemExit) as e) as c) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e) as e", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "\"NITPICK_SOME_OPTION\"", + "got": "\"something\"", + "got_raw": "\"something\" + os.sep + \"NITPICK_SOME_OPTION\" + os.sep + \"something\" + os.sep + \"something\" + os.sep + \"something\" + os.sep + \"something\" + os.sep + \"something\" + os.sep + \"something\" + os.sep + \"something\" + os.sep + \"something\" + os.sep + \"something\" + os.sep + \"something\" + os.sep + \"something\" + os.sep + \"something\" + os.sep + \"something\" + os.sep + \"something\" + os.sep + \"something\" + os.sep + \"something\"", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.125 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "\"--nitpick-multi-word\"", + "got": "\"m\"", + "got_raw": "\"m\" * 2 + \"w\" * 2 + \"p\" * 2 + \"c\" * 2 + \"a\" * 2 + \"e\" * 2 + \"r\" * 2 + \"s\" * 2 + \"l\" * 2 + \"j\" * 2 + \"k\" * 2 + \"l\" * 2 + \"m\" * 2 + \"n\" * 2 + \"o\" * 2 + \"p\" * 2 + \"q\" * 2 + \"r\" * 2 + \"s", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.24 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "app2", + "got": "app2.singleton()", + "got_raw": "app2.singleton() is app1.singleton() is app1.app() is app1.app() is app1.app() is app1.app() is app1.app() is app1.app() is app1.app() is app1.app() is app1.app() is app1.app() is app1.app() is app1.app() is app1.app() is app1.app() is app1.app() is app1.app() is app1.app() is app1.app() is app1.app() is app1.app() is app1.app() is app1.app() is app1.app() is app1.app", + "exact_match": false, + "code_bleu": 0.2730120862709067, + "edit_similarity": 0.4 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "root", + "got": "root", + "got_raw": "root / root_file.resolve() / root_file.parent / root_file.parent / root_file.parent / root_file.parent / root_file.parent / root_file.parent / root_file.parent / root_file.parent / root_file.parent / root_file.parent / root_file.parent / root_file.parent / root_file.parent / root_file.parent / root_file.parent / root_file.parent / root_file.parent / root_file.parent / root_file.parent / root_file.parent / root_file.parent / root_file.parent / root_file.parent / root_file.parent / root_file.parent / root_file.parent / root_file.parent / root_file.parent / root_file.parent / root_file.parent / root", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "error)", + "got": "error)", + "got_raw": "error) * 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "str(err)", + "got": "str(err.value)", + "got_raw": "str(err.value) + \"\\n\" * 2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.4347208719449915, + "edit_similarity": 0.7272727272727273 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "apps_dir", + "got": "apps_dir", + "got_raw": "apps_dir / \"..\" / \"..\" / \"..\" / \"..\" / \"..\" / \"..\" / \"..\" / \"..\" / \"..\" / \"..\" / \"..\" / \"..\" / \"..\" / \"..\" / \"..\" / \"..\" / \"..\" / \"..\" / \"..\" / \"..\" / \"..\" / \"..\" / \"..\" / \"..\" / \"..\" / \"..\" / \"..\" / \"..\" / \"..\" / \"..\" / \"..\" / \"..\" / \"..\" / \"..\" / \"..\" / \"..\" / \"..\" / \"..\" / \"..\" / \"..\" / \"..\" / \"..\"", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "TypeError)", + "got": "QuitComplainingError)", + "got_raw": "QuitComplainingError) as exc:\n Nitpick() # noqa: E731\n\n assert str(exc.value) == \"Nitpick should be instantiated once.\" + os.sep + \" \" + __file__ + os.sep + \" \" + str( os.getcwd() ) + os.sep + \" \" + \" \" + \" \" + \" \" + \" \" + \" \" + \" \" + \" \" + \" \" + \" \" + \" \" + \" \" + \" \" + \" \" + \" \" + \" \" + \" \" + \" \" + \" \" + \" \" + \" \" +", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.45161290322580644 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "caplog.messages", + "got": "caplog.text.strip()", + "got_raw": "caplog.text.strip() % GIT_IGNORE.strip() + \"\\n\" * 2 + error.strip() + \"\\n\" * 2 + \"Configuring style...\\n\" * 2 + \"Style: black\\n\" * 2 + \"Done.\\n\" * 2 + \"Error: 1\\n\" * 2 + \"Error: 0\\n\" * 2 + \"Error: 1\\n\" * 2 + \"Error: 0\\n\" * 2 + \"Error: 1\\n\" * 2 + \"Error: 0\\n\" * 2 + \"Error:", + "exact_match": false, + "code_bleu": 0.24446151121745047, + "edit_similarity": 0.5294117647058824 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "QuitComplainingError)", + "got": "QuitComplainingError)", + "got_raw": "QuitComplainingError) as exc) as e:\n confirm_project_root(inner_dir) == inner_dir / root_file.parent / root_file.parent / root_file.parent / root_file.parent / root_file.parent / root_file.parent / root_file.parent / root_file.parent / root_file.parent / root_file.parent / root_file.parent / root_file.parent / root_file.parent / root_file.parent / root_file.parent / root_file.parent / root_file.parent / root_file.parent / root_file.parent / root_file.parent / root_file.parent / root_file.parent / root_file.parent / root_file.parent / root_file.parent / root_file.parent /", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "apps_dir / PYTHON_MANAGE_PY", + "got": "apps_dir / \"manage.py\" / \"manage.py\" / \"manage.py\" / \"manage.py\" / \"manage.py\" / \"manage.py\" / \"manage.py\" / \"manage.py\" / \"manage.py\" / \"manage.py\" / \"manage.py\" / \"manage.py\" / \"manage.py\" / \"manage.py\" / \"manage.py\" / \"manage.py\" / \"manage.py\" / \"manage.py\" / \"manage.py\" / \"manage.py\" / \"manage.py\" / \"manage.py\" / \"manage.py\" / \"manage.py\" / \"manage.py\" /", + "got_raw": "apps_dir / \"manage.py\" / \"manage.py\" / \"manage.py\" / \"manage.py\" / \"manage.py\" / \"manage.py\" / \"manage.py\" / \"manage.py\" / \"manage.py\" / \"manage.py\" / \"manage.py\" / \"manage.py\" / \"manage.py\" / \"manage.py\" / \"manage.py\" / \"manage.py\" / \"manage.py\" / \"manage.py\" / \"manage.py\" / \"manage.py\" / \"manage.py\" / \"manage.py\" / \"manage.py\" / \"manage.py\" / \"manage.py\" /", + "exact_match": false, + "code_bleu": 0.030397156830248746, + "edit_similarity": 0.056847545219638244 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "f\"NIP102 No Python file was found on the root dir and subdir of {str(project.root_dir)!r}\")", + "got": "\"whatever.sh\") ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "got_raw": "\"whatever.sh\") ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "exact_match": false, + "code_bleu": 0.009476129952350365, + "edit_similarity": 0.05099150141643059 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "2)", + "got": "tmp_path)", + "got_raw": "tmp_path) / \"pyproject.toml\") as f) as f: f.write_text( \"invalid [nitpick.files] section\\n\" ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.18181818181818182 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "1)", + "got": "error_message)", + "got_raw": "error_message) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.125 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "None", + "got": "None", + "got_raw": "None # type: ignore[eval] # noqa: E501 # type: ignore[eval] # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 #", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "None)", + "got": "url_with_extension)", + "got_raw": "url_with_extension) / Path(\"tox.ini\").name) / Path(\"section\") / Path(\"key\") / Path(\"value\") / Path(\"tox.ini\") / Path(\"section\") / Path(\"key\") / Path(\"value\") / Path(\"tox.ini\") / Path(\"section\") / Path(\"key\") / Path(\"value\") / Path(\"tox.ini\") / Path(\"section\") / Path(\"key\") / Path(\"value\") / Path(\"tox.ini\") / Path(\"section\") / Path(\"key\") / Path(\"value\") / Path(\"tox.ini\") / Path(\"section\")", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.25 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "\"nitpick\"", + "got": "\"nitpick\"", + "got_raw": "\"nitpick\" + TOML_EXTENSION if original_url.endswith(TOML_EXTENSION) else \"\" + \"/\" + \"nitpick\" + TOML_EXTENSION + \"\" + \"/\" + \"nitpick\" + TOML_EXTENSION + \"\" + \"/\" + \"nitpick\" + TOML_EXTENSION + \"\" + \"/\" + \"nitpick\" + TOML_EXTENSION + \"\" + \"/\" + \"nitpick\" + TOML_EXTENSION + \"\" + \"/\" + \"nitpick\" + TOML_EXTENSION + \"\" + \"/\" + \"nitpick\" + TOML_EXTENSION + \"\" + \"/\" + \"nitpick\" + TOML_EXTENSION + \"\" + \"/\" + \"nit", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "import_path", + "got": "import_path", + "got_raw": "import_path + \".\" + resource_name + TOML_EXTENSION + SUGGESTION_BEGIN + SUGGESTION_END + PYTHON_TOX_INI + SUGGESTION_END + PYTHON_PYPROJECT_TOML + SUGGESTION_END + PYTHON_SETUP_CFG + SUGGESTION_END + PYTHON_TOX_INI + SUGGESTION_END + PYTHON_PACKAGE_URLS + SUGGESTION_END + PYTHON_PACKAGE_URLS + SUGGESTION_END + PYTHON_PACKAGE_URLS + SUGGESTION_END + PYTHON_PACKAGE_URLS + SUGGESTION_END + PYTHON_PACKAGE_URLS + SUGGESTION_END + PYTHON_PACKAGE", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "\"andreoliwa\"", + "got": "\"andreoliwa\"", + "got_raw": "\"andreoliwa\" + expected_url.split(\"/\")[1] + \"/nitpick\" + expected_url.split(\"/\")[2] + \"/\" + expected_url.split(\"/\")[3] + \"/\" + expected_url.split(\"/\")[4] + \"/\" + expected_url.split(\"/\")[5] + \"/\" + expected_url.split(\"/\")[6] + \"/\" + expected_url.split(\"/\")[7] + \"/\" + expected_url.split(\"/\")[8] + \"/\" + expected_url.split(\"/\")[9] + \"/\" + expected_url.split(\"/\")[10] + \"/\" + expected_url.split(\"/\")[11] + \"/\" + expected_url.split(\"/\")[12", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "git_reference", + "got": "git_reference", + "got_raw": "git_reference + \"/\" + expected_url.split(\"/\")[3] + \".py\" + at_reference + \"/\" + raw_git_reference + \"/\" + SUGGESTION_END + \"/\" + SUGGESTION_BEGIN + \"/\" + \"0\" + \"/\" + \"1\" + \"/\" + \"2\" + \"/\" + \"3\" + \"/\" + \"4\" + \"/\" + \"5\" + \"/\" + \"6\" + \"/\" + \"7\" + \"/\" + \"8\" + \"/\" + \"9\" + \"/\" + \"10\" + \"/\" + \"11\" + \"/\" + \"12\" + \"/\" + \"13", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "resource_name", + "got": "resource_name", + "got_raw": "resource_name + TOML_EXTENSION + \"\" + PYTHON_TOX_INI + \"\" + PYTHON_PYPROJECT_TOML + \"\" + PYTHON_SETUP_CFG + \"\" + PYTHON_TOX_INI + \"\" + PYTHON_PACKAGE_URLS + \"\" + PYTHON_PACKAGE_URLS + \"\" + PYTHON_PACKAGE_URLS + \"\" + PYTHON_PACKAGE_URLS + \"\" + PYTHON_PACKAGE_URLS + \"\" + PYTHON_PACKAGE_URLS + \"\" + PYTHON_PACKAGE_URLS + \"\" + PYTHON_PACKAGE_URLS + \"\" + PYTHON_PACKAGE_URLS + \"\" + PYTHON_PACKAGE_URLS + \"\" + PYTHON_PACKAGE_URLS + \"\" + PYTHON_PACKAGE_URLS + \"\" + PYTHON_PACKAGE_URLS", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "RuntimeError)", + "got": "ValueError", + "got_raw": "ValueError, match=\"Protocol 'abc' not supported\") as exc) as val_exc:\n project.pyproject_toml()\n str(exc.value) + str(val_exc.value) + str(tmp_path) + str(tmp_path) / \"style.toml\") + str(tmp_path) / \"style.toml\" + str(tmp_path) / \"style.toml\" + str(tmp_path) / \"style.toml\" + str(tmp_path) / \"style.toml\" + str(tmp_path) / \"style.toml\" + str(tmp_path) / \"style.toml\" + str(tmp_path) /", + "exact_match": false, + "code_bleu": 0.25, + "edit_similarity": 0.6086956521739131 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "furl(expected_url)", + "got": "expected_url", + "got_raw": "expected_url + at_reference + SUGGESTION_END + TOML_EXTENSION + SUGGESTION_BEGIN + \"\\n\" + \"import sys\\n\" + \"import os\\n\" + \"import pathlib\\n\" + \"import re\\n\" + \"import json\\n\" + \"import time\\n\" + \"import urllib3\\n\" + \"import requests\\n\" + \"import xml.etree.ElementTree as ET\\n\" + \"import xml.dom.ElementTree as ETree\\n\" + \"import xml.sax\\n\" + \"import xml.sax.handler\\n\" + \"import xml.sax.saxutils\\n\" + \"import xml.sax.xml", + "exact_match": false, + "code_bleu": 0.14865088937534013, + "edit_similarity": 0.8 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "f\"token {file_token}\"", + "got": "\"Bearer token\" + file_token + \" \" + \"https://raw.githubusercontent.com/user/private_repo/branch/path/to/nitpick-style\" + TOML_EXTENSION + \"\" + \"GET\" + \"\" + \"200\" + \"\" + \"0\" + \"\" + \"0\" + \"\" + \"0\" + \"\" + \"0\" + \"\" + \"0\" + \"\" + \"0\" + \"\" + \"0\" + \"\" + \"0\" + \"\" + \"0\" + \"\" + \"0\" + \"\" + \"0\" + \"\" + \"0\" + \"\" + \"0\" + \"\" +", + "got_raw": "\"Bearer token\" + file_token + \" \" + \"https://raw.githubusercontent.com/user/private_repo/branch/path/to/nitpick-style\" + TOML_EXTENSION + \"\" + \"GET\" + \"\" + \"200\" + \"\" + \"0\" + \"\" + \"0\" + \"\" + \"0\" + \"\" + \"0\" + \"\" + \"0\" + \"\" + \"0\" + \"\" + \"0\" + \"\" + \"0\" + \"\" + \"0\" + \"\" + \"0\" + \"\" + \"0\" + \"\" + \"0\" + \"\" + \"0\" + \"\" +", + "exact_match": false, + "code_bleu": 0.013987724298778636, + "edit_similarity": 0.10843373493975904 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "expected_content_path", + "got": "expected_content_path", + "got_raw": "expected_content_path / TOML_EXTENSION + SUGGESTION_BEGIN + SUGGESTION_END + expected_content_path_suffix.name + TOML_EXTENSION + SUGGESTION_BEGIN + SUGGESTION_END + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" +", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "mocked_version == \"0.5.3\")", + "got": "offline)", + "got_raw": "offline) # noqa: F841) # noqa: F841) # noqa: F841) # noqa: F841) # noqa: F841) # noqa: F841) # noqa: F841) # noqa: F841) # noqa: F841) # noqa: F841) # noqa: F841) # noqa: F841) # noqa: F841) # noqa: F841)", + "exact_match": false, + "code_bleu": 0.2149139863647084, + "edit_similarity": 0.23529411764705882 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "parsed.url.query.params.items()", + "got": "parsed.query_parsed()[:2]", + "got_raw": "parsed.query_parsed()[:2] + (\"filename.toml\",) + parsed.query_parsed()[2:] + (\"leavemealone\", \"ok\") in parsed.query_parsed()[:2] + (\"filename.toml\",) + parsed.query_parsed()[2:] + (\"leavemealone\", \"ok\") in parsed.query_parsed()[:2] + (\"filename.toml\",) + parsed.query_parsed()[2:] + (\"leavemealone\", \"ok\") in parsed.query_parsed()[:2] + (\"filename.toml\",) + parsed.query_parsed()[2:] + (\"leavemealone\", \"ok\") in", + "exact_match": false, + "code_bleu": 0.19110189997971824, + "edit_similarity": 0.6785714285714286 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "1)", + "got": "ProjectMock(tmp_path))", + "got_raw": "ProjectMock(tmp_path)) as project) as project: project.text_config( { \"comment\": \"#\", \"indent\": \" \", \"line\": \"\\n\", \"quote\": '\"', \"suggestion\": { \"begin\": SUGGESTION_BEGIN, \"end\": SUGGESTION_END, }, }) ) # fmt: off project.text_config( { \"comment\": \"#\", \"indent\": \" \", \"line\": \"\\n\", \"quote\": '\"', \"suggestion\": { \"begin\": SUGGESTION_BEGIN, \"end\": SUGGESTION_END, }, }) ) # fmt: on project.text_config", + "exact_match": false, + "code_bleu": 0.2730120862709067, + "edit_similarity": 0.08333333333333333 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "expected_toml)", + "got": "tmp_path)", + "got_raw": "tmp_path) as project_mock: project_mock.add_file(filename) as file_mock: file_mock.write(expected_toml) return expected_toml, Fuss( filename=filename, line=1, column=1, message=\"File 'my.toml' does not exist.\", ))", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.2608695652173913 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "\"\"\" [section]", + "got": "tmp_path / filename) / filename) / filename) / filename) / filename) / filename) / filename) / filename) / filename) / filename) / filename) / filename) / filename) / filename) / filename) / filename) / filename) / filename) / filename) / filename) / filename) / filename) / filename) / filename) / filename) / filename) / filename) / filename) / filename) / filename) / filename) / filename) / filename) / filename) / filename) / filename) / filename) / filename) / filename) / filename) / filename) / filename)", + "got_raw": "tmp_path / filename) / filename) / filename) / filename) / filename) / filename) / filename) / filename) / filename) / filename) / filename) / filename) / filename) / filename) / filename) / filename) / filename) / filename) / filename) / filename) / filename) / filename) / filename) / filename) / filename) / filename) / filename) / filename) / filename) / filename) / filename) / filename) / filename) / filename) / filename) / filename) / filename) / filename) / filename) / filename) / filename) / filename)", + "exact_match": false, + "code_bleu": 0.007905447116777948, + "edit_similarity": 0.011428571428571429 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "\"\"\" [something] x = 1", + "got": "tmp_path) / \"pyproject.toml\") as f: f.read_text()) as data: data = data.replace( \"tooling[\\\"pyproject-toml\\\"].version\"", + "got_raw": "tmp_path) / \"pyproject.toml\") as f: f.read_text()) as data: data = data.replace( \"tooling[\\\"pyproject-toml\\\"].version\", \"0.0.1\" ) data = data.replace( \"tooling[\\\"pyproject-toml\\\"].source\", \"poetry\" ) data = data.replace( \"tooling[\\\"pyproject-toml\\\"].target\", \"3.11\" ) data = data.replace( \"tooling[\\\"pyproject-toml\\\"].strict\", \"true\" ) data = data.replace( \"tooling", + "exact_match": false, + "code_bleu": 0.050661968099322066, + "edit_similarity": 0.11510791366906475 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "content)", + "got": "content)", + "got_raw": "content) # no changes) # no changes) # no changes) # no changes) # no changes) # no changes) # no changes) # no changes) # no changes) # no changes) # no changes) # no changes) # no changes) # no changes) # no changes) # no changes) # no changes) # no changes) # no changes) # no changes) # no changes) # no changes) # no changes) # no changes) # no changes) # no changes) # no changes) # no changes) # no changes) # no changes) # no changes) # no", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "from_path", + "got": "from_path", + "got_raw": "from_path == tomlkit_ext.load(file) == from_io == from_path == from_io() == from_path() == from_io() == from_path() == from_io() == from_path() == from_path() == from_path() == from_path() == from_path() == from_path() == from_path() == from_path() == from_path() == from_path() == from_path() == from_path() == from_path() == from_path() == from_path() == from_path() == from_path() == from_path() == from_path() == from_path() == from_path() == from_path() == from_path()", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "dedent(after)", + "got": "after.replace(", + "got_raw": "after.replace( \"header\\nfirst line\", \"header\\nsecond line\" ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "exact_match": false, + "code_bleu": 0.3976353643835253, + "edit_similarity": 0.37037037037037035 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "\"\"\" [my.table]", + "got": "\"here\") * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) *", + "got_raw": "\"here\") * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) *", + "exact_match": false, + "code_bleu": 0.010471921873035864, + "edit_similarity": 0.02247191011235955 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "\"\"\" [my.table]", + "got": "\"here\") * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) *", + "got_raw": "\"here\") * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) *", + "exact_match": false, + "code_bleu": 0.010471921873035864, + "edit_similarity": 0.02247191011235955 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "\"\"\" [my.table]", + "got": "\"my.table\") key=\"simple-key\" marker=\"here\" comment=\"header\\nfirst line\") ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "got_raw": "\"my.table\") key=\"simple-key\" marker=\"here\" comment=\"header\\nfirst line\") ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "exact_match": false, + "code_bleu": 0.008368567120004057, + "edit_similarity": 0.059602649006622516 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "\"\"\" [my.table] key-before = 3", + "got": "\"here\") * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) *", + "got_raw": "\"here\") * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) *", + "exact_match": false, + "code_bleu": 0.010471921873035864, + "edit_similarity": 0.06217616580310881 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "\"\"\" [my.table]", + "got": "\"here\") * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) *", + "got_raw": "\"here\") * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) *", + "exact_match": false, + "code_bleu": 0.010471921873035864, + "edit_similarity": 0.02247191011235955 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "\"\"\" [my.table]", + "got": "\"here\\nend\\nhere\\nend\") * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2", + "got_raw": "\"here\\nend\\nhere\\nend\") * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2", + "exact_match": false, + "code_bleu": 0.01105056710178162, + "edit_similarity": 0.021505376344086023 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "\"\"\" [my.table]", + "got": "\"my.table\") key=\"simple-key\" marker=\"here\" comment=\"header\\nfirst line\") )", + "got_raw": "\"my.table\") key=\"simple-key\" marker=\"here\" comment=\"header\\nfirst line\") )", + "exact_match": false, + "code_bleu": 0.08032276872815308, + "edit_similarity": 0.20454545454545456 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "\"\"\" [my.table]", + "got": "\"here\") * \"first line\") * \"header\\nsecond line\") * \"here\") * \"first line\") * \"header\\nthird line\") * \"here\") * \"first line\") * \"header\\nfourth line\") * \"here\") * \"first line\") * \"header\\nfifth line\") * \"here\") * \"first line\") * \"header\\nsixth line\") * \"here\") * \"first line\") * \"header\\nseventh line\") * \"here\") * \"first line\") * \"header\\n\" * \"here\") * \"first line\") * \"header\\n\" *", + "got_raw": "\"here\") * \"first line\") * \"header\\nsecond line\") * \"here\") * \"first line\") * \"header\\nthird line\") * \"here\") * \"first line\") * \"header\\nfourth line\") * \"here\") * \"first line\") * \"header\\nfifth line\") * \"here\") * \"first line\") * \"header\\nsixth line\") * \"here\") * \"first line\") * \"header\\nseventh line\") * \"here\") * \"first line\") * \"header\\n\" * \"here\") * \"first line\") * \"header\\n\" *", + "exact_match": false, + "code_bleu": 0.01439035149251672, + "edit_similarity": 0.02531645569620253 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "0", + "got": "[]", + "got_raw": "[] * 20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.4518010018049224, + "edit_similarity": 0.0 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "1", + "got": "1", + "got_raw": "1 + reporter.fixed + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 +", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "1", + "got": "11767600160010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "11767600160010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "expected_yaml)", + "got": "\"flake8\")", + "got_raw": "\"flake8\") / filename) / expected_yaml) / (datadir / \"new-expected.yaml\").read_text() / (datadir / \"new-expected.yaml\").read_text() / (datadir / \"new-expected.yaml\").read_text() / (datadir / \"new-expected.yaml\").read_text() / (datadir / \"new-expected.yaml\").read_text() / (datadir / \"new-expected.yaml\").read_text() / (datadir / \"new-expected.yaml\").read_text() / (datadir / \"new-expected.yaml\").read_text() / (datadir /", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.17391304347826086 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "datadir / \"existing-expected.yaml\")", + "got": "filename) / \"existing-expected.yaml\") / \"existing-actual.yaml\") / \"existing-expected.yaml\") / \"existing-expected.yaml\") / \"existing-expected.yaml\") / \"existing-expected.yaml\") / \"existing-expected.yaml\") / \"existing-expected.yaml\") / \"existing-expected.yaml\") / \"existing-expected.yaml\") / \"existing-expected.yaml\") / \"existing-expected.yaml\") / \"existing-expected.yaml\") / \"existing-expected.yaml\") / \"existing-expected.yaml\") / \"existing-expected.yaml\") / \"existing-expected.yaml\") / \"existing-expected.yaml\")", + "got_raw": "filename) / \"existing-expected.yaml\") / \"existing-actual.yaml\") / \"existing-expected.yaml\") / \"existing-expected.yaml\") / \"existing-expected.yaml\") / \"existing-expected.yaml\") / \"existing-expected.yaml\") / \"existing-expected.yaml\") / \"existing-expected.yaml\") / \"existing-expected.yaml\") / \"existing-expected.yaml\") / \"existing-expected.yaml\") / \"existing-expected.yaml\") / \"existing-expected.yaml\") / \"existing-expected.yaml\") / \"existing-expected.yaml\") / \"existing-expected.yaml\") / \"existing-expected.yaml\")", + "exact_match": false, + "code_bleu": 0.039888525017141595, + "edit_similarity": 0.10622710622710622 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "datadir / \"list-by-hash-expected.yaml\")", + "got": "filename)", + "got_raw": "filename)", + "exact_match": false, + "code_bleu": 0.2686424829558855, + "edit_similarity": 0.25 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "datadir / \"jmes-list-key-expected.yaml\")", + "got": "filename) / \"multiple-lists.yaml\" / \"an/arbitrary/file.yaml\" / \"multiple-lists.yaml\" / \"an/arbitrary/file.yaml\" / \"multiple-lists.yaml\" / \"an/arbitrary/file.yaml\" / \"multiple-lists.yaml\" / \"an/arbitrary/file.yaml\" / \"multiple-lists.yaml\" / \"an/arbitrary/file.yaml\" / \"multiple-lists.yaml\" / \"an/arbitrary/file.yaml\" / \"multiple-lists.yaml\" / \"an/arbitrary/file.yaml\" / \"multiple-lists.yaml\" / \"an/arbitrary/file.yaml\" / \"multiple-lists.yaml", + "got_raw": "filename) / \"multiple-lists.yaml\" / \"an/arbitrary/file.yaml\" / \"multiple-lists.yaml\" / \"an/arbitrary/file.yaml\" / \"multiple-lists.yaml\" / \"an/arbitrary/file.yaml\" / \"multiple-lists.yaml\" / \"an/arbitrary/file.yaml\" / \"multiple-lists.yaml\" / \"an/arbitrary/file.yaml\" / \"multiple-lists.yaml\" / \"an/arbitrary/file.yaml\" / \"multiple-lists.yaml\" / \"an/arbitrary/file.yaml\" / \"multiple-lists.yaml\" / \"an/arbitrary/file.yaml\" / \"multiple-lists.yaml", + "exact_match": false, + "code_bleu": 0.03250804687495712, + "edit_similarity": 0.075 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "datadir / \"any-order.yaml\")", + "got": "filename) / \"steps\" / \"order\" / \"any_order\" / \"order\" / \"any_order\" / \"order\" / \"any_order\" / \"order\" / \"any_order\" / \"order\" / \"any_order\" / \"order\" / \"any_order\" / \"order\" / \"any_order\" / \"order\" / \"any_order\" / \"order\" / \"any_order\" / \"order\" / \"any_order\" / \"order\" / \"any_order\" / \"order\" / \"any_order\" / \"order\" / \"any_order\" / \"order\" /", + "got_raw": "filename) / \"steps\" / \"order\" / \"any_order\" / \"order\" / \"any_order\" / \"order\" / \"any_order\" / \"order\" / \"any_order\" / \"order\" / \"any_order\" / \"order\" / \"any_order\" / \"order\" / \"any_order\" / \"order\" / \"any_order\" / \"order\" / \"any_order\" / \"order\" / \"any_order\" / \"order\" / \"any_order\" / \"order\" / \"any_order\" / \"order\" / \"any_order\" / \"order\" /", + "exact_match": false, + "code_bleu": 0.02250110187024035, + "edit_similarity": 0.08108108108108109 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "datadir / \"wildcard-expected.yaml\")", + "got": "datadir) as mock_project: mock_project.add_file(filename) mock_project.add_file( \"tests/helpers/project_mock/any_key.yaml\" ) mock_project.add_file( \"tests/helpers/project_mock/multiple_keys.yaml\" ) mock_project.add_file( \"tests/helpers/project_mock/multiple_keys_2.yaml\" ) mock_project.add_file( \"tests/helpers/project_mock/multiple_keys_3.yaml\" ) mock_project.add_file( \"tests/helpers/project_mock/multiple_keys_4.yaml\" ) mock_project.add_file( \"tests/helpers/project_mock/multiple_keys_5.yaml\" ) mock_project.add_file( \"tests/helpers/project_mock/m", + "got_raw": "datadir) as mock_project: mock_project.add_file(filename) mock_project.add_file( \"tests/helpers/project_mock/any_key.yaml\" ) mock_project.add_file( \"tests/helpers/project_mock/multiple_keys.yaml\" ) mock_project.add_file( \"tests/helpers/project_mock/multiple_keys_2.yaml\" ) mock_project.add_file( \"tests/helpers/project_mock/multiple_keys_3.yaml\" ) mock_project.add_file( \"tests/helpers/project_mock/multiple_keys_4.yaml\" ) mock_project.add_file( \"tests/helpers/project_mock/multiple_keys_5.yaml\" ) mock_project.add_file( \"tests/helpers/project_mock/m", + "exact_match": false, + "code_bleu": 0.02417900750265876, + "edit_similarity": 0.07521367521367521 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "datadir / \"same-key-expected.yaml\")", + "got": "datadir) / tmp_path / filename) / tmp_path / filename) / tmp_path / filename) / tmp_path / filename) / tmp_path / filename) / tmp_path / filename) / tmp_path / filename) / tmp_path / filename) / tmp_path / filename) / tmp_path / filename) / tmp_path / filename) / tmp_path / filename) / tmp_path / filename) / tmp_path / filename) / tmp_path / filename) / tmp_path / filename) / tmp_path / filename) / tmp_path / filename) / tmp_path / filename) / tmp_path / filename) / tmp_path / filename", + "got_raw": "datadir) / tmp_path / filename) / tmp_path / filename) / tmp_path / filename) / tmp_path / filename) / tmp_path / filename) / tmp_path / filename) / tmp_path / filename) / tmp_path / filename) / tmp_path / filename) / tmp_path / filename) / tmp_path / filename) / tmp_path / filename) / tmp_path / filename) / tmp_path / filename) / tmp_path / filename) / tmp_path / filename) / tmp_path / filename) / tmp_path / filename) / tmp_path / filename) / tmp_path / filename) / tmp_path / filename", + "exact_match": false, + "code_bleu": 0.013405620707505764, + "edit_similarity": 0.06857142857142857 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "datadir / \"dict-search-by-key-expected.yaml\")", + "got": "datadir) / filename) / tmp_path / \"test/test1.json\") / \"test/test2.json\") / \"test/test3.json\") / \"test/test4.json\") / \"test/test5.json\") / \"test/test6.json\") / \"test/test7.json\") / \"test/test8.json\") / \"test/test9.json\") / \"test/test10.json\") / \"test/test11.json\") / \"test/test12.json\") / \"test/test13.json\") / \"test/test14.json\") / \"test/test15.json\") / \"test/test16.json\")", + "got_raw": "datadir) / filename) / tmp_path / \"test/test1.json\") / \"test/test2.json\") / \"test/test3.json\") / \"test/test4.json\") / \"test/test5.json\") / \"test/test6.json\") / \"test/test7.json\") / \"test/test8.json\") / \"test/test9.json\") / \"test/test10.json\") / \"test/test11.json\") / \"test/test12.json\") / \"test/test13.json\") / \"test/test14.json\") / \"test/test15.json\") / \"test/test16.json\")", + "exact_match": false, + "code_bleu": 0.025954335325927325, + "edit_similarity": 0.07637231503579953 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "datadir / \"scalar-add-elements-that-do-not-exist-expected.yaml\")", + "got": "datadir) / tmp_path / filename) / \"src\" / \"test_list_of_scalars.py\" / \"test_list_of_scalars\" / \"test_list_of_scalars\" / \"test_list_of_scalars\" / \"test_list_of_scalars\" / \"test_list_of_scalars\" / \"test_list_of_scalars\" / \"test_list_of_scalars\" / \"test_list_of_scalars\" / \"test_list_of_scalars\" / \"test_list_of_scalars\" / \"test_list_of_scalars\" / \"test_list_of_scalars\" / \"test_list_of_scalars\" / \"", + "got_raw": "datadir) / tmp_path / filename) / \"src\" / \"test_list_of_scalars.py\" / \"test_list_of_scalars\" / \"test_list_of_scalars\" / \"test_list_of_scalars\" / \"test_list_of_scalars\" / \"test_list_of_scalars\" / \"test_list_of_scalars\" / \"test_list_of_scalars\" / \"test_list_of_scalars\" / \"test_list_of_scalars\" / \"test_list_of_scalars\" / \"test_list_of_scalars\" / \"test_list_of_scalars\" / \"test_list_of_scalars\" / \"", + "exact_match": false, + "code_bleu": 0.0367483224173178, + "edit_similarity": 0.12173913043478261 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "1", + "got": "11001110011001100110011001100110011001100110011001100110011001100110011001100110011001100110011001100110011001100110011001100110", + "got_raw": "11001110011001100110011001100110011001100110011001100110011001100110011001100110011001100110011001100110011001100110011001100110", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "datadir / \"2-untouched-pre-commit.yaml\")", + "got": "\"test\") / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" /", + "got_raw": "\"test\") / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" / \"test\" /", + "exact_match": false, + "code_bleu": 0.020407314606611982, + "edit_similarity": 0.054878048780487805 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "\"\"\" repos: [] \"\"\")", + "got": "datadir / \"test_suggest_initial_contents\") / \"test_suggest_initial_contents\" / \"test_suggest_initial_contents\" / \"test_suggest_initial_contents\" / \"test_suggest_initial_contents\" / \"test_suggest_initial_contents\" / \"test_suggest_initial_contents\" / \"test_suggest_initial_contents\" / \"test_suggest_initial_contents\" / \"test_suggest_initial_contents\" / \"test_suggest_initial_contents\" / \"test_suggest_initial_contents\" / \"test_suggest_initial_contents\" / \"test_suggest_initial_contents\" / \"test_suggest_initial_contents\" / \"test_suggest_initial", + "got_raw": "datadir / \"test_suggest_initial_contents\") / \"test_suggest_initial_contents\" / \"test_suggest_initial_contents\" / \"test_suggest_initial_contents\" / \"test_suggest_initial_contents\" / \"test_suggest_initial_contents\" / \"test_suggest_initial_contents\" / \"test_suggest_initial_contents\" / \"test_suggest_initial_contents\" / \"test_suggest_initial_contents\" / \"test_suggest_initial_contents\" / \"test_suggest_initial_contents\" / \"test_suggest_initial_contents\" / \"test_suggest_initial_contents\" / \"test_suggest_initial_contents\" / \"test_suggest_initial", + "exact_match": false, + "code_bleu": 0.034487891886161, + "edit_similarity": 0.02142857142857143 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "\"\"\" repos: - hooks: - id: whatever - grepo: glocal \"\"\")", + "got": "tmp_path) / \"pyproject.toml\") as f) as f: f.write(\"\") ) as f) as f: f.write(\"\") ) as f) as f: f.write(\"\") ) as f) as f: f.write(\"\") ) as f) as f: f.write(\"\") ) as f) as f: f.write(\"\") ) as f) as f: f.write(\"\") ) as f) as f: f.write(\"\") ) as f) as f: f.write(\"\") ) as f) as f: f.write(\"\") ) as f) as f: f.write(\"\") ) as f) as f: f", + "got_raw": "tmp_path) / \"pyproject.toml\") as f) as f: f.write(\"\") ) as f) as f: f.write(\"\") ) as f) as f: f.write(\"\") ) as f) as f: f.write(\"\") ) as f) as f: f.write(\"\") ) as f) as f: f.write(\"\") ) as f) as f: f.write(\"\") ) as f) as f: f.write(\"\") ) as f) as f: f.write(\"\") ) as f) as f: f.write(\"\") ) as f) as f: f.write(\"\") ) as f) as f: f", + "exact_match": false, + "code_bleu": 0.010885675519262963, + "edit_similarity": 0.046875 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "r\"\"\" repos: - repo: another hooks: - id: isort - repo: another hooks: \"- name: isort\\n entry: isort -sp setup.cfg\\n\" \"\"\")", + "got": "tmp_path) / \"test_style_missing_id_in_hook\") / \"test_style_missing_id_in_hook\" / \"test_style_missing_id_in_hook\" / \"test_style_missing_id_in_hook\" / \"test_style_missing_id_in_hook\" / \"test_style_missing_id_in_hook\" / \"test_style_missing_id_in_hook\" / \"test_style_missing_id_in_hook\" / \"test_style_missing_id_in_hook\" / \"test_style_missing_id_in_hook\" / \"test_style_missing_id_in_hook\" / \"test_style_missing_id_in_hook\" / \"test_style_missing_id_in_hook\" / \"test_style_missing_id_in_hook", + "got_raw": "tmp_path) / \"test_style_missing_id_in_hook\") / \"test_style_missing_id_in_hook\" / \"test_style_missing_id_in_hook\" / \"test_style_missing_id_in_hook\" / \"test_style_missing_id_in_hook\" / \"test_style_missing_id_in_hook\" / \"test_style_missing_id_in_hook\" / \"test_style_missing_id_in_hook\" / \"test_style_missing_id_in_hook\" / \"test_style_missing_id_in_hook\" / \"test_style_missing_id_in_hook\" / \"test_style_missing_id_in_hook\" / \"test_style_missing_id_in_hook\" / \"test_style_missing_id_in_hook", + "exact_match": false, + "code_bleu": 0.037776418604808376, + "edit_similarity": 0.07920792079207921 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "datadir / \"hook-args-add.yaml\")", + "got": "{\"repo\": {\"nested\": {\"key\": \"value\"}}) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2", + "got_raw": "{\"repo\": {\"nested\": {\"key\": \"value\"}}) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2", + "exact_match": false, + "code_bleu": 0.01207394651741457, + "edit_similarity": 0.07511737089201878 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "datadir / \"hook-args-change.yaml\")", + "got": "datadir / \"test_repo_with_different_key_value_pairs.yaml\") as repo_path: repo_path.read_text()) as config_file: config_file = config_file.replace( \"key1: value1\"", + "got_raw": "datadir / \"test_repo_with_different_key_value_pairs.yaml\") as repo_path: repo_path.read_text()) as config_file: config_file = config_file.replace( \"key1: value1\", \"key2: value2\" ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "exact_match": false, + "code_bleu": 0.07483887206915212, + "edit_similarity": 0.19487179487179487 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "datadir / \"uk-empty-expected.yaml\")", + "got": "datadir / \"test_overriding_list_key_with_empty_string_restores_default_behaviour.yaml\") as fuss_file: fuss_file.write( \"list: []\\n\" \"key: 1\\n\" \"key2: 2\\n\" \"key3: 3\\n\" \"key4: 4\\n\" \"key5: 5\\n\" \"key6: 6\\n\" \"key7: 7\\n\" \"key8: 8\\n\" \"key9: 9\\n\" \"key10: 10\\n\" \"key11: 11\\n\" \"", + "got_raw": "datadir / \"test_overriding_list_key_with_empty_string_restores_default_behaviour.yaml\") as fuss_file: fuss_file.write( \"list: []\\n\" \"key: 1\\n\" \"key2: 2\\n\" \"key3: 3\\n\" \"key4: 4\\n\" \"key5: 5\\n\" \"key6: 6\\n\" \"key7: 7\\n\" \"key8: 8\\n\" \"key9: 9\\n\" \"key10: 10\\n\" \"key11: 11\\n\" \"", + "exact_match": false, + "code_bleu": 0.07164684238257436, + "edit_similarity": 0.1782178217821782 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "datadir / \"uk-default-expected.yaml\")", + "got": "datadir / \"test_repo_2\" / \"pyproject.toml\") / (tmp_path / \"pyproject.toml\")) / (tmp_path / \"test_repo_2\" / \"pyproject.toml\") / (tmp_path / \"test_repo_2\" / \"test_repo_2\" / \"pyproject.toml\") / (tmp_path / \"test_repo_2\" / \"test_repo_2\" / \"test_repo_2\" / \"pyproject.toml\") / (tmp_path / \"test_repo_2\" / \"test_repo_2\" / \"test_repo_2\" /", + "got_raw": "datadir / \"test_repo_2\" / \"pyproject.toml\") / (tmp_path / \"pyproject.toml\")) / (tmp_path / \"test_repo_2\" / \"pyproject.toml\") / (tmp_path / \"test_repo_2\" / \"test_repo_2\" / \"pyproject.toml\") / (tmp_path / \"test_repo_2\" / \"test_repo_2\" / \"test_repo_2\" / \"pyproject.toml\") / (tmp_path / \"test_repo_2\" / \"test_repo_2\" / \"test_repo_2\" /", + "exact_match": false, + "code_bleu": 0.03204141665897675, + "edit_similarity": 0.11989100817438691 + }, + { + "repo": "andreoliwa/nitpick", + "expected": "datadir / \"uk-override-expected.yaml\")", + "got": "datadir / \"test_use_another_attribute_as_unique_key.yaml\") as project: project.run() project.assert_fusses([]) project.assert_no_dups() project.assert_no_missing_keys() project.assert_no_extra_keys() project.assert_no_invalid_keys() project.assert_no_invalid_values() project.assert_no_dangling_links() project.assert_no_dangling_refs() project.assert_no_dangling_files() project.assert_no_dangling_dirs() project.assert_no_dangling_yamls() project.assert_no_dangling_yaml_files() project.assert_no_dangling_yaml_dirs() project.assert_no_dangling_yaml_yamls() project.assert_no_dangling_yaml_yam", + "got_raw": "datadir / \"test_use_another_attribute_as_unique_key.yaml\") as project: project.run() project.assert_fusses([]) project.assert_no_dups() project.assert_no_missing_keys() project.assert_no_extra_keys() project.assert_no_invalid_keys() project.assert_no_invalid_values() project.assert_no_dangling_links() project.assert_no_dangling_refs() project.assert_no_dangling_files() project.assert_no_dangling_dirs() project.assert_no_dangling_yamls() project.assert_no_dangling_yaml_files() project.assert_no_dangling_yaml_dirs() project.assert_no_dangling_yaml_yamls() project.assert_no_dangling_yaml_yam", + "exact_match": false, + "code_bleu": 0.01944431604047823, + "edit_similarity": 0.0631911532385466 + }, + { + "repo": "andrewyng/aisuite", + "expected": "1", + "got": "1)", + "got_raw": "1) * 2 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.6666666666666666 + }, + { + "repo": "andrewyng/aisuite", + "expected": "0", + "got": "0", + "got_raw": "0 len(w) == 0 len(w) == 0 len(w) == 0 len(w) == 0 len(w) == 0 len(w) == 0 len(w) == 0 len(w) == 0 len(w) == 0 len(w) == 0 len(w) == 0 len(w) == 0 len(w) == 0 len(w) == 0 len(w) == 0 len(w) == 0 len(w) == 0 len(w) == 0 len(w) == 0 len(w) == 0 len(w) == 0 len", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "0", + "got": "0.01", + "got_raw": "0.01 * len(messages) * 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.4 + }, + { + "repo": "andrewyng/aisuite", + "expected": "2", + "got": "20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "andrewyng/aisuite", + "expected": "1", + "got": "1.000000000000000123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901", + "got_raw": "1.000000000000000123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "andrewyng/aisuite", + "expected": "0", + "got": "0.000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "0.000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "andrewyng/aisuite", + "expected": "1", + "got": "11376666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666", + "got_raw": "11376666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "andrewyng/aisuite", + "expected": "0", + "got": "0.015000000000000012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890", + "got_raw": "0.015000000000000012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "andrewyng/aisuite", + "expected": "1", + "got": "1[\"read_file\"]", + "got_raw": "1[\"read_file\"] # Only one tool called \"read_file\" allowed for this test case.", + "exact_match": false, + "code_bleu": 0.35930411196308426, + "edit_similarity": 0.13333333333333333 + }, + { + "repo": "andrewyng/aisuite", + "expected": "1", + "got": "10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "andrewyng/aisuite", + "expected": "2", + "got": "24444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444", + "got_raw": "24444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "andrewyng/aisuite", + "expected": "3", + "got": "3", + "got_raw": "3 * 20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "1", + "got": "12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678", + "got_raw": "12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "andrewyng/aisuite", + "expected": "1", + "got": "12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678", + "got_raw": "12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "andrewyng/aisuite", + "expected": "1", + "got": "1)", + "got_raw": "1) { message } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } }", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.6666666666666666 + }, + { + "repo": "andrewyng/aisuite", + "expected": "3", + "got": "3", + "got_raw": "3 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 *", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "6", + "got": "60000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "60000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "andrewyng/aisuite", + "expected": "2", + "got": "2)", + "got_raw": "2) * 2 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.6666666666666666 + }, + { + "repo": "andrewyng/aisuite", + "expected": "1", + "got": "10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "andrewyng/aisuite", + "expected": "2", + "got": "2)", + "got_raw": "2) # Transcription chunks should be 2 (delta and done) events)", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.6666666666666666 + }, + { + "repo": "andrewyng/aisuite", + "expected": "5)", + "got": "5)", + "got_raw": "5) * 1000) / 1000) / 1000) / 1000) / 1000) / 1000) / 1000) / 1000) / 1000) / 1000) / 1000) / 1000) / 1000) / 1000) / 1000) / 1000) / 1000) / 1000)", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "1)", + "got": "1)", + "got_raw": "1) ) # Only one tool use request in this response) ) # Only one tool use request in this response) ) # Only one tool use request in this response) ) # Only one tool use request in this response) ) # Only one tool use request in this response) ) # Only one tool use request in this response) ) # Only one tool use request in this response) ) # Only one tool use request in this response) ) # Only one tool use request in this response) ) # Only one tool use request in this response) ) # Only one tool use request in this response) ) # Only one tool", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "2)", + "got": "2)", + "got_raw": "2) ) ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] )", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "1)", + "got": "1)", + "got_raw": "1) ) {\"role\": \"user\", \"content\": \"What is the most popular song on WZPZ?\"} ] } ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ]", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "1)", + "got": "1)", + "got_raw": "1) ) self.assertEqual( \"get_weather\", response.choices[0].message.tool_calls[0].function.name ) self.assertEqual( '{\"location\": \"London\"}', response.choices[0].message.tool_calls[0].function.arguments ) ) self.assertEqual( \"assistant\", response.choices[0].message.role ) ) self.assertEqual( \"assistant\", response.choices[1].message.role ) ) self.assertEqual( \"assistant\", response.choices[2].message.role ) ) self.assertEqual( \"assistant\", response.choices[3].message.role ) ) self.assertEqual( \"assistant\", response.choices[4].message.role ) ) self.assertEqual( \"", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "10", + "got": "10000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "10000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.03076923076923077 + }, + { + "repo": "andrewyng/aisuite", + "expected": "20", + "got": "20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.03076923076923077 + }, + { + "repo": "andrewyng/aisuite", + "expected": "30", + "got": "30", + "got_raw": "30 + 10 + 20 + 10 + 20 + 10 + 20 + 10 + 20 + 10 + 20 + 10 + 20 + 10 + 20 + 10 + 20 + 10 + 20 + 10 + 20 + 10 + 20 + 10 + 20 + 10 + 20 + 10 + 20 + 10 + 20 + 10 + ", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "10", + "got": "10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.03076923076923077 + }, + { + "repo": "andrewyng/aisuite", + "expected": "20", + "got": "20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.03076923076923077 + }, + { + "repo": "andrewyng/aisuite", + "expected": "30", + "got": "30", + "got_raw": "30 + 10 + 20 + 10 + 20 + 10 + 20 + 10 + 20 + 10 + 20 + 10 + 20 + 10 + 20 + 10 + 20 + 10 + 20 + 10 + 20 + 10 + 20 + 10 + 20 + 10 + 20 + 10 + 20 + 10 + 20 + 10 + ", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "1)", + "got": "1)", + "got_raw": "1) )] {\"role\": \"user\", \"content\": \"What is the weather today?\"})])})])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])])", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "10", + "got": "10000000010000000010000000010000000010000000010000000010000000010000000010000000010000000010000000010000000010000000010000000010", + "got_raw": "10000000010000000010000000010000000010000000010000000010000000010000000010000000010000000010000000010000000010000000010000000010", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.03076923076923077 + }, + { + "repo": "andrewyng/aisuite", + "expected": "20", + "got": "20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.03076923076923077 + }, + { + "repo": "andrewyng/aisuite", + "expected": "30", + "got": "30", + "got_raw": "30 + 10 + 20 + 10 + 20 + 10 + 20 + 10 + 20 + 10 + 20 + 10 + 20 + 10 + 20 + 10 + 20 + 10 + 20 + 10 + 20 + 10 + 20 + 10 + 20 + 10 + 20 + 10 + 20 + 10 + 20 + 10 + ", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "10", + "got": "10000000010000000010000000010000000010000000010000000010000000010000000010000000010000000010000000010000000010000000010000000010", + "got_raw": "10000000010000000010000000010000000010000000010000000010000000010000000010000000010000000010000000010000000010000000010000000010", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.03076923076923077 + }, + { + "repo": "andrewyng/aisuite", + "expected": "20", + "got": "20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.03076923076923077 + }, + { + "repo": "andrewyng/aisuite", + "expected": "30", + "got": "30", + "got_raw": "30 * 2 + 10 + 20 + 10 + 20 + 10 + 20 + 10 + 20 + 10 + 20 + 10 + 20 + 10 + 20 + 10 + 20 + 10 + 20 + 10 + 20 + 10 + 20 + 10 + 20 + 10 + 20 + 10 + 20 + 10 + 20 + 1", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "10", + "got": "10000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "10000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.03076923076923077 + }, + { + "repo": "andrewyng/aisuite", + "expected": "20", + "got": "20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.03076923076923077 + }, + { + "repo": "andrewyng/aisuite", + "expected": "30", + "got": "30", + "got_raw": "30 + 10 + 20 + 10 + 20 + 10 + 20 + 10 + 20 + 10 + 20 + 10 + 20 + 10 + 20 + 10 + 20 + 10 + 20 + 10 + 20 + 10 + 20 + 10 + 20 + 10 + 20 + 10 + 20 + 10 + 20 + 10 + ", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "1)", + "got": "1)", + "got_raw": "1) # There should be only one OpenAI format tool added\nopenai_format_tool = tools[0] # This should be the OpenAI format tool\nself.assertTrue(openai_format_tool.schema is not None) # The schema should be set\nself.assertTrue(openai_format_tool.schema['type']) # The schema should have a 'type' property) # The schema should have a 'type' property) # The schema should have a 'type' property) # The schema should have a 'type' property) # The schema should have a 'type' property) # The schema should have a 'type' property) #", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "2)", + "got": "2)", + "got_raw": "2) # Assuming create_entities returns 2 entities)", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "1)", + "got": "1)", + "got_raw": "1) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "2)", + "got": "2)", + "got_raw": "2) # Should have 2 tools now)", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "0.9", + "got": "0.956785434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343", + "got_raw": "0.956785434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.04580152671755725 + }, + { + "repo": "andrewyng/aisuite", + "expected": "0.5", + "got": "0.500000000000000123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901", + "got_raw": "0.500000000000000123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.04580152671755725 + }, + { + "repo": "andrewyng/aisuite", + "expected": "0.0", + "got": "0.000000001234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678", + "got_raw": "0.000000001234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.04580152671755725 + }, + { + "repo": "andrewyng/aisuite", + "expected": "0.5", + "got": "0.500000000000000123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901", + "got_raw": "0.500000000000000123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.04580152671755725 + }, + { + "repo": "andrewyng/aisuite", + "expected": "0.9", + "got": "0.900000000000000012481873329361977771337977777777777777777777777777777777777777777777777777777777777777777777777777777777777777", + "got_raw": "0.900000000000000012481873329361977771337977777777777777777777777777777777777777777777777777777777777777777777777777777777777777", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.04580152671755725 + }, + { + "repo": "andrewyng/aisuite", + "expected": "10)", + "got": "10)", + "got_raw": "10) * 1000) / 1000) / 1000) / 1000) / 1000) / 1000) / 1000) / 1000) / 1000) / 1000) / 1000) / 1000) / 1000) / 1000) / 1000) / 1000) / 1000) / 1000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "15)", + "got": "15)", + "got_raw": "15) # 10 + 5 = 15 tokens in total) # noqa: E501) # noqa: E501) # noqa: E501) # noqa: E501) # noqa: E501) # noqa: E501) # noqa: E501) # noqa: E501) # noqa: E501) # noqa: E501) # noqa: E501) # noqa: E501) # noqa: E501) # noqa: E5", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "20)", + "got": "20)", + "got_raw": "20) # Token count for the text part of the response) * 2) + 1) # Token count for the tool use part of the response) * 2) + 1) # Token count for the total response) * 2) + 1) # Token count for the total response) * 2) + 1) # Token count for the total response) * 2) + 1) # Token count for the total response) * 2) + 1) # Token count for the total response) * 2) + 1", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "30)", + "got": "30)", + "got_raw": "30) # 20 + 10 = 30 tokens in total)", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "0.7", + "got": "0.700000000000000123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901", + "got_raw": "0.700000000000000123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.04580152671755725 + }, + { + "repo": "andrewyng/aisuite", + "expected": "None", + "got": "None", + "got_raw": "None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "None", + "got": "None", + "got_raw": "None # Default to None for now. TODO: Add confidence support. ) * 100) / 100.0) * 100) / 100.0) * 100) / 100.0) * 100) / 100.0) * 100) / 100.0) * 100) / 100.0) * 100) / 100.0) * 100) / 100.0) *", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "None", + "got": "None", + "got_raw": "None or mcp._session_id is not None or mcp._token is not None or mcp._server_url is not None or mcp._protocol is not None or mcp._config is not None or mcp._options is not None or mcp._debug is not None or mcp._no_debug is not None or mcp._no_token is not None or mcp._no_protocol is not None or mcp._no_config is not None or mcp._no_options is not None or mcp._no_debug is not None or mcp._no_debug_token is not None or mcp._no", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "None", + "got": "None.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "None.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.4518010018049224, + "edit_similarity": 0.05925925925925926 + }, + { + "repo": "andrewyng/aisuite", + "expected": "None", + "got": "None)", + "got_raw": "None) is True) is False) is True) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False)", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.8888888888888888 + }, + { + "repo": "andrewyng/aisuite", + "expected": "None", + "got": "None", + "got_raw": "None # No usage data in this test so it should be None. # TODO: Add usage data to the test. # TODO: Add a test for the response object. # TODO: Add a test for the API key environment variable. # TODO: Add a test for the model selection. # TODO: Add a test for the temperature. # TODO: Add a test for the response text content. # TODO: Add a test for the response object. # TODO: Add a test for the API key environment variable. # TODO: Add a test for the model selection. # TODO: Add a test for the temperature. # TODO", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "None", + "got": "None\"Google", + "got_raw": "None\"Google provider should initialize without errors.\" \"Google provider should initialize without errors.\" \"Google provider should initialize without errors.\" \"Google provider should initialize without errors.\" \"Google provider should initialize without errors.\" \"Google provider should initialize without errors.\" \"Google provider should initialize without errors.\" \"Google provider should initialize without errors.\" \"Google provider should initialize without errors.\" \"Google provider should initialize without errors.\" \"Google provider should initialize without errors.\" \"Google provider should initialize without errors.\" \"Google provider should initialize without errors.\" \"Google provider should initialize without errors.\" \"Google provider should initialize without errors.\" \"Google provider should initialize without errors", + "exact_match": false, + "code_bleu": 0.4518010018049224, + "edit_similarity": 0.5333333333333333 + }, + { + "repo": "andrewyng/aisuite", + "expected": "None", + "got": "None.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "None.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.4518010018049224, + "edit_similarity": 0.05925925925925926 + }, + { + "repo": "andrewyng/aisuite", + "expected": "None", + "got": "None\"None\"", + "got_raw": "None\"None\" is not None\"None\" is not False\"False\" is not True\"True\" is not 42\"42\" is not \"Hello\" \"Hello\" is not {}\"{}\" is not []\"[]\" is not None\"None\" is not False\"False\" is not True\"True\" is not 42\"42\" is not \"Hello\" \"Hello\" is not {}\"{}\" is not []\"[]\" is not None\"None\" is not False\"False\" is not True\"True\" is not 42\"42\" is not \"Hello", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.5714285714285714 + }, + { + "repo": "andrewyng/aisuite", + "expected": "None", + "got": "None.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "None.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.4518010018049224, + "edit_similarity": 0.05925925925925926 + }, + { + "repo": "andrewyng/aisuite", + "expected": "\"\"", + "got": "\"\"", + "got_raw": "\"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\"", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "\"\"", + "got": "\"\"", + "got_raw": "\"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\"", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "\"en\"", + "got": "\"en\"", + "got_raw": "\"en\" # Default language for ASRError is English (en) if not specified. # TODO: Add support for other languages. # TODO: Add support for streaming transcription. # TODO: Add support for multiple ASRError instances. # TODO: Add support for ASRError in async mode. # TODO: Add support for ASRError in streaming mode. # TODO: Add support for ASRError in real-time mode. # TODO: Add support for ASRError in all modes. # TODO: Add support for ASRError in all modes except streaming mode. # TODO: Add support for ASRError in", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "\"en\"", + "got": "\"en\"", + "got_raw": "\"en\" # Common param that maps to keywords\nassert call_kwargs[\"punctuate\"] == True # Deepgram-specific (mapped to 'punctuate') # Deepgram-specific (mapped to 'diarize') # Deepgram-specific (mapped to 'diarize') # Deepgram-specific (mapped to 'diarize') # Deepgram-specific (mapped to 'diarize') # Deepgram-specific (mapped to 'diarize') # Deepgram-specific (mapped to 'diarize') # Deepgram-specific (mapped to 'diarize') #", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "\"en\"", + "got": "\"en\"", + "got_raw": "\"en\" * 820000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "\"en\"", + "got": "\"en\"", + "got_raw": "\"en\" + str(mock_response.language) + \"test\" + str(mock_response.segments) + \"test\" + str(mock_response.text) + \"test\" + str(mock_response.speech_prob) + \"test\" + str(mock_response.no_speech_prob) + \"test\" + str(mock_response.format) + \"test\" + str(mock_response.format_version) + \"test\" + str(mock_response.id) + \"test\" + str(mock_response.created) + \"test\" + str(mock_response.modified) + \"test\" + str(mock_response.duration) + \"test\" + str(mock_response.no_speech_prob)", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "\"en\"", + "got": "\"en\"", + "got_raw": "\"en\" if not result.language else None if not result.segments else None if not result.segments[0].text else None if not result.segments[0].tokens else None if not result.segments[0].tokens[0].text else None if not result.segments[0].tokens[0].tokens else None if not result.segments[0].tokens[0].tokens[0].text else None if not result.segments[0].tokens[0].tokens[0].tokens else None if not result.segments[0].tokens[0].tokens[0].tokens else None if not result.segments[0].tokens[0].", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "\"72\")", + "got": "\"72\")", + "got_raw": "\"72\") ) / 10) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * ", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "\"warn\"", + "got": "\"warn\"", + "got_raw": "\"warn\" + client.warn_mode_suffix() + \"\\n\" + \"This will be removed in the future.\\n\" + \"Please use the new client initialization method.\\n\" + \"For more information, see the documentation:\\n\" + \"https://aisuite.com/docs/client\\n\" + \"https://github.com/ai-suite/aisuite\\n\" + \"https://www.ai-suite.com\\n\" + \"https://www.ai-suite.com\\n\" + \"https://www.ai-suite.com\\n\" + \"https://www.ai-suite.com\\n\" + \"https://www.ai-suite.com", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "\"Test\"", + "got": "\"Test\"", + "got_raw": "\"Test\" + \"\\n\" + \"Google:latest_long\" + \"\\n\" + \"language_code: en\" + \"\\n\" + \"language: en\" + \"\\n\" + \"confidence: 1.0\" + \"\\n\" + \"no_speech_prob: 0.0\" + \"\\n\" + \"speech_prob: 0.999999999999999999999999999999999999999999999999999", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "\"fast\"", + "got": "\"fast\"", + "got_raw": "\"fast\" + \"\\n\" + \"data: {\" + '\"jsonrpc\": \"2.0\", \"id\": 3, \"result\": {\"content\": [{\"type\": \"text\", \"text\": \"slow\"}]}\\n\" + \"data: {\" + '\"jsonrpc\": \"2.0\", \"id\": 4, \"result\": {\"content\": [{\"type\": \"text\", \"text\": \"fast\"}]}\\n\" + \"data: {\" + '\"jsonrpc\": \"2.0\", \"id\": 5, \"result\": {}}\\n\" + \"data: {\" +", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "\"slow\"", + "got": "\"slow\"", + "got_raw": "\"slow\" + result1 + \"fast\" + result2 + \"slow\" + result1 + \"fast\" + result2 + \"slow\" + result1 + \"fast\" + result2 + \"slow\" + result1 + \"fast\" + result2 + \"slow\" + result1 + \"fast\" + result2 + \"slow\" + result1 + \"fast\" + result2 + \"slow\" + result1 + \"fast\" + result2 + \"slow\" + result1 + \"fast\" + result2 + \"slow\" + result1 + \"fast\" + result2 + \"slow", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "\"json\"", + "got": "\"json\"", + "got_raw": "\"json\" + \"\\n\" + \"Test\" + \"\\n\" + \"Test\" + \"\\n\" + \"Test\" + \"\\n\" + \"Test\" + \"\\n\" + \"Test\" + \"\\n\" + \"Test\" + \"\\n\" + \"Test\" + \"\\n\" + \"Test\" + \"\\n\" + \"Test\" + \"\\n\" + \"Test\" + \"\\n\" + \"Test\" + \"\\n\" + \"Test\" + \"\\n\" + \"Test\" + \"\\n\" + \"Test\" + \"\\n\" + \"Test\" + \"\\n\" +", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "\"user\"", + "got": "\"user\"", + "got_raw": "\"user\" if message[\"role\"] == \"user\" else \"system\" if message[\"role\"] == \"system\" else \"unknown\" else \"unknown\" else \"unknown\" else \"unknown\" else \"unknown\" else \"unknown\" else \"unknown\" else \"unknown\" else \"unknown\" else \"unknown\" else \"unknown\" else \"unknown\" else \"unknown\" else \"unknown\" else \"unknown\" else \"unknown\" else \"unknown\" else \"unknown\" else \"unknown\" else \"unknown\" else \"unknown\" else \"unknown\" else \"unknown\" else \"unknown\" else \"unknown\" else \"unknown\"", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "\"stop\"", + "got": "\"stop\"", + "got_raw": "\"stop\" if response_text_content else \"continue\" else \"error\" else \"null\" else \"null\" else \"null\" else \"null\" else \"null\" else \"null\" else \"null\" else \"null\" else \"null\" else \"null\" else \"null\" else \"null\" else \"null\" else \"null\" else \"null\" else \"null\" else \"null\" else \"null\" else \"null\" else \"null\" else \"null\" else \"null\" else \"null\" else \"null\" else \"null\" else \"null\" else \"null\" else \"null\" else", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "\"true\"", + "got": "\"1000\"", + "got_raw": "\"1000\" + \"ms\" + \"\\r\\n\" + \"Bearer test-hf-token\" + \"\\r\\n\" + \"Content-Type: multipart/form-data; boundary=boundary1\" + \"\\r\\n\" + \"\\r\\n\" + \"text\" + \"\\r\\n\" + \"audio/pcm\" + \"\\r\\n\" + \"\\r\\n\" + \"audio/pcm\" + \"\\r\\n\" + \"\\r\\n\" + \"Content-Length: 1234\" + \"\\r\\n\" + \"\\r\\n\" + \"Connection: close\" + \"\\r\\n\" + \"\\r", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.3333333333333333 + }, + { + "repo": "andrewyng/aisuite", + "expected": "\"Test\"", + "got": "\"\"", + "got_raw": "\"\" + \"Test\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" +", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.5 + }, + { + "repo": "andrewyng/aisuite", + "expected": "\"tool1\"", + "got": "\"tool1\"", + "got_raw": "\"tool1\" \"tool2\" \"tool1\" \"tool2\" \"tool1\" \"tool2\" \"tool1\" \"tool2\" \"tool1\" \"tool2\" \"tool1\" \"tool2\" \"tool1\" \"tool2\" \"tool1\" \"tool2\" \"tool1\" \"tool2\" \"tool1\" \"tool2\" \"tool1\" \"tool2\" \"tool1\" \"tool2\" \"tool1\" \"tool2\" \"tool1\" \"tool2\" \"tool1\" \"tool2\" \"tool1\" \"tool2\"", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "\"tool2\"", + "got": "\"tool2\"", + "got_raw": "\"tool2\" \"First tool\" \"Second tool\" {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {}", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "\"stop\")", + "got": "\"end_turn\")", + "got_raw": "\"end_turn\") # Normal response should end with \"end_turn\" token) # Normal response should end with \"end_turn\" token) # Normal response should end with \"end_turn\" token) # Normal response should end with \"end_turn\" token) # Normal response should end with \"end_turn\" token) # Normal response should end with \"end_turn\" token) # Normal response should end with \"end_turn\" token) # Normal response should end with \"end_turn\" token) # Normal response should end with \"end_turn\" token) # Normal response should end with", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.4444444444444444 + }, + { + "repo": "andrewyng/aisuite", + "expected": "\"user\")", + "got": "\"tool\")", + "got_raw": "\"tool\")", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.42857142857142855 + }, + { + "repo": "andrewyng/aisuite", + "expected": "\"en-US\"", + "got": "\"en-US\"", + "got_raw": "\"en-US\" + \"\\n\" + \"test.wav\" + \"\\n\" + \"0\" + \"\\n\" + \"16000\" + \"\\n\" + \"0\" + \"\\n\" + \"0\" + \"\\n\" + \"0\" + \"\\n\" + \"0\" + \"\\n\" + \"0\" + \"\\n\" + \"0\" + \"\\n\" + \"0\" + \"\\n\" + \"0\" + \"\\n\" + \"0\" + \"\\n\" + \"0\" + \"\\n\" + \"0\" + \"\\n\" + \"0", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "\"user\")", + "got": "\"user\")[\"content\"])", + "got_raw": "\"user\")[\"content\"]) \"What is the most popular song on WZPZ?\"}", + "exact_match": false, + "code_bleu": 0.2907153684841096, + "edit_similarity": 0.5384615384615384 + }, + { + "repo": "andrewyng/aisuite", + "expected": "\"stop\")", + "got": "\"complete\")", + "got_raw": "\"complete\") # noqa: E501) # noqa: E501) # noqa: E501) # noqa: E501) # noqa: E501) # noqa: E501) # noqa: E501) # noqa: E501) # noqa: E501) # noqa: E501) # noqa: E501) # noqa: E501) # noqa: E501) # noqa: E501) # noqa: E501) # noqa: E", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.5555555555555556 + }, + { + "repo": "andrewyng/aisuite", + "expected": "\"en-US\"", + "got": "\"en-US\"", + "got_raw": "\"en-US\" # Default language is en-US if not specified. # noqa: E501 # pylint: disable=E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 #", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "\"user\")", + "got": "\"user\")}", + "got_raw": "\"user\")} {\"role\": \"bot\", \"content\": \"What is the weather today?\"}]", + "exact_match": false, + "code_bleu": 0.5946035575013605, + "edit_similarity": 0.9333333333333333 + }, + { + "repo": "andrewyng/aisuite", + "expected": "\"stop\")", + "got": "\"stop\")", + "got_raw": "\"stop\") # finish_reason should be \"stop\" for text responses\n self.assertEqual(normalized_response.content, text_content) # content should be the text content of the response part", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "\"model\"", + "got": "\"assistant\"", + "got_raw": "\"assistant\" # assistant converted to system\n assert result[2].parts[0].text == \"Assistant message\" * 2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.2222222222222222 + }, + { + "repo": "andrewyng/aisuite", + "expected": "\"Hello\"", + "got": "\"Hello\"", + "got_raw": "\"Hello\" + \"\\n\" + \"Hello\" + \"\\n\" + \"Hello\" + \"\\n\" + \"Hello\" + \"\\n\" + \"Hello\" + \"\\n\" + \"Hello\" + \"\\n\" + \"Hello\" + \"\\n\" + \"Hello\" + \"\\n\" + \"Hello\" + \"\\n\" + \"Hello\" + \"\\n\" + \"Hello\" + \"\\n\" + \"Hello\" + \"\\n\" + \"Hello\" + \"\\n\" + \"Hello\" + \"\\n\" + \"Hello\" + \"\\n\" + \"Hello\" + \"\\n\" +", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "\"model\")", + "got": "\"assistant\")", + "got_raw": "\"assistant\") # type: ignore[report] \"assistant\" is a reserved word in Python and cannot be used as a variable name. It should be changed to something else. ) # noqa: E501) # type: ignore[report] \"The weather is sunny with a temperature of 25 degrees Celsius.\" is too long. It should be split into multiple messages. ) # noqa: E501) # type: ignore[report] \"The weather is sunny with a temperature of 25 degrees Celsius.\" is too long. It should be split into multiple messages. )", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.3 + }, + { + "repo": "andrewyng/aisuite", + "expected": "\"Hello!\"", + "got": "\"Hello!\"", + "got_raw": "\"Hello!\" }", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "\" Hello\"", + "got": "\"Hello\" \"this\" \"is\" \"a\" \"test\" \"from\" \"Hugging\" \"Face\" \".\" \"Hello\" \"this\" \"is\" \"a\" \"test\" \"from\" \"Hugging\" \"Face\" \".\" \"Hello\" \"this\" \"is\" \"a\" \"test\" \"from\" \"Hugging\" \"Face\" \".\" \"Hello\" \"this\" \"is\" \"a\" \"test\" \"from\" \"Hugging\" \"Face\" \".\" \"Hello\" \"this\" \"is\" \"a\" \"test\" \"from\" \"Hugging\" \"Face", + "got_raw": "\"Hello\" \"this\" \"is\" \"a\" \"test\" \"from\" \"Hugging\" \"Face\" \".\" \"Hello\" \"this\" \"is\" \"a\" \"test\" \"from\" \"Hugging\" \"Face\" \".\" \"Hello\" \"this\" \"is\" \"a\" \"test\" \"from\" \"Hugging\" \"Face\" \".\" \"Hello\" \"this\" \"is\" \"a\" \"test\" \"from\" \"Hugging\" \"Face\" \".\" \"Hello\" \"this\" \"is\" \"a\" \"test\" \"from\" \"Hugging\" \"Face", + "exact_match": false, + "code_bleu": 0.022479007417262973, + "edit_similarity": 0.04713804713804714 + }, + { + "repo": "andrewyng/aisuite", + "expected": "\"array\")", + "got": "\"array\")", + "got_raw": "\"array\") # Not 'typing.List[dict]' but 'array' for OpenAI\nself.assertIn(\"items\", entities_param) # 'items' should be present for OpenAI\nself.assertIn(\"type\", entities_param[\"items\"]) # 'type' should be present for OpenAI\nself.assertEqual(entities_param[\"items\"][\"type\"], \"object\") # 'type' should be 'object' for OpenAI\nself.assertIn(\"properties\", entities_param[\"items\"]) # 'properties' should be present for OpenAI\nself.assertIn(\"id\", entities_param[\"items\"][\"properties\"]) # 'id' should", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "\"array\")", + "got": "{", + "got_raw": "{ \"type\": \"array\", \"description\": \"List of entities to create\", \"items\": { \"type\": \"object\", \"properties\": { \"name\": {\"type\": \"string\"}, \"type\": {\"type\": \"string\"}, }, \"required\": [\"name\", \"type\"], }, }, }) }) }) }) }) }) }) }) }) }) }) }) }) }) }) }) }) }) }) }) }) }) }) }) }) }) }) }) }) }) }) }) }) }) }) }) }) }) }) }) }) }) }) }) }) }) }) }) }) }) }) }) }) }) }) }) }) }) }) }) }) }) }) }) }) }) })", + "exact_match": false, + "code_bleu": 0.25, + "edit_similarity": 0.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "\"email\")", + "got": "\"email\")", + "got_raw": "\"email\") tool_spec[\"parameters\"][\"properties\"][\"email\"][\"format\"]) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "\"object\")", + "got": "\"object\")", + "got_raw": "\"object\") { \"properties\": { \"schema\": {\"type\": \"string\", \"title\": \"schema\", \"format\": \"json\"}, }, \"required\": [\"schema\"], }, } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) }", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "\"object\")", + "got": "\"object\")", + "got_raw": "\"object\") tool_spec[\"parameters\"][\"properties\"][\"entities\"][\"type\"]) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "\"string\")", + "got": "\"string\")[\"description\"])[\"type\"])", + "got_raw": "\"string\")[\"description\"])[\"type\"]) \"string\")[\"description\"]) \"string\")[\"description\"]) \"string\")[\"description\"]) \"string\")[\"description\"]) \"string\")[\"description\"]) \"string\")[\"description\"]) \"string\")[\"description\"]) \"string\")[\"description\"]) \"string\")[\"description\"]) \"string\")[\"description\"]) \"string\")[\"description\"]) \"string\")[\"description\"]) \"string\")[\"description\"]) \"string\")[\"description\"]) \"string\")[\"description\"]) \"string\")[\"description\"]) \"string\")[\"description\"]) \"string\")[\"description\"]) \"string\")[\"description\"]) \"string\")[\"description", + "exact_match": false, + "code_bleu": 0.16590387014219712, + "edit_similarity": 0.4186046511627907 + }, + { + "repo": "andrewyng/aisuite", + "expected": "\"tool123\")", + "got": "\"get_weather\")", + "got_raw": "\"get_weather\") self.assertEqual(normalized_response.choices[0].message.tool_calls[0].name) ) ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ]", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.3333333333333333 + }, + { + "repo": "andrewyng/aisuite", + "expected": "\"tool123\")", + "got": "\"tool123\")", + "got_raw": "\"tool123\") # TODO: change this to a real ID) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "\"function\"", + "got": "\"function_call\"", + "got_raw": "\"function_call\" type of the first message in the response. This should be a function call to the \"get_weather\" function. The function call should have the following attributes: - role: \"system\" - content: {\"location\": \"San Francisco\"} - temperature: 0.7 - function_call_id: \"fc1\" - function_name: \"get_weather\" - function_version: \"0.1.0\" - arguments: {\"location\": \"San Francisco\", \"temperature\": 0.7} - response: None - response_text: None - response_parts: [ {\"role\": \"user\", \"content\":", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.8 + }, + { + "repo": "andrewyng/aisuite", + "expected": "\"success\")", + "got": "\"success\")", + "got_raw": "\"success\") \"Memory tool should execute without errors\") ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "\"Celsius\")", + "got": "\"Celsius\")", + "got_raw": "\"Celsius\") # Assuming Celsius is the default unit) 72) # Temperature should be 72) ) # Check if there's a result message (should be None) self.assertIs(result_message, None) ) # Check if the tool call was successful (should be True) self.assertTrue(result) ) # Check if there's an error message (should be None) self.assertIs(error_message, None) ) # Check if the tool call was executed (should be True) self.assertTrue(tool_call[\"success\"]) ) # Check if the tool call has a result (should have a result) self.assertTrue(\"result\" in tool", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "\"read_file\"", + "got": "\"read_file\"", + "got_raw": "\"read_file\" # Only read_file tool should be passed\n assert tools_arg[0].command == \"npx\" # Only npx should be used\n assert tools_arg[0].args[0] == \"-y\" # Only -y should be used\n assert tools_arg[0].args[1] == \"@modelcontextprotocol/server-filesystem\" # Only @modelcontextprotocol/server-filesystem should be used\n assert tools_arg[0].args[2] == temp_test_dir # Only temp_test_dir should be used\n\n assert tools_arg[0].args[", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "\"test_tool\"", + "got": "\"test_tool\"", + "got_raw": "\"test_tool\" \"description\" : \"A test tool\" \"inputSchema\" : { \"type\": \"object\", \"properties\": {\"param\": {\"type\": \"string\"}}, } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } }", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "\"top_song\")", + "got": "\"top_song\")", + "got_raw": "\"top_song\") ) self.assertEqual(tool_call.function.id, \"tool123\") self.assertEqual(tool_call.input, {\"sign\": \"WZPZ\"}) ) self.assertEqual(tool_call.role, \"assistant\") ) self.assertEqual(tool_call.type, \"function_call\") ) self.assertEqual(tool_call.stop_reason, \"tool_use\") ) self.assertEqual(tool_call.tool_type, \"function\") ) self.assertEqual(tool_call.tool_id, \"tool123\") ) self.assertEqual(tool_call.tool_name, \"top_song\") ) self.assertEqual(tool_call.tool_version, \"1.0\") ) self.assertEqual(tool_call.tool_source, \"bedrock\")", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "\"function\")", + "got": "\"function\")", + "got_raw": "\"function\") # Function call type should be \"function\" for Azure\r\n self.assertEqual(tool_call.function.name, \"get_weather\") # Function name should be \"get_weather\" for Azure\r\n self.assertEqual( tool_call.function.arguments, '{\"location\": \"London\"}' ) # Function arguments should be in JSON format for Azure", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "\"audio/wav\"", + "got": "\"audio/wav\"", + "got_raw": "\"audio/wav\" + \"\\r\\n\" + \"Content-Length: 13\\r\\n\" + \"Connection: close\\r\\n\" + \"\\r\\n\" + \"fake audio data\" + \"\\r\\n\" + \"\\r\\n\" + \"\\r\\n\" + \"\\r\\n\" + \"\\r\\n\" + \"\\r\\n\" + \"\\r\\n\" + \"\\r\\n\" + \"\\r\\n\" + \"\\r\\n\" + \"\\r\\n\" + \"\\r\\n\" + \"\\r\\n\" + \"\\r\\n\" + \"\\r\\n\" + \"\\r\\n\" + \"\\r\\n\" + \"\\r", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "\"SSE result\"", + "got": "\"SSE result\" + \"\\n\" + \"\\r\\n\" + \"\\r\\n\" + \"\\r\\n\" + \"\\r\\n\" + \"\\r\\n\" + \"\\r\\n\" + \"\\r\\n\" + \"\\r\\n\" + \"\\r\\n\" + \"\\r\\n\" + \"\\r\\n\" + \"\\r\\n\" + \"\\r\\n\" + \"\\r\\n\" + \"\\r\\n\" + \"\\r\\n\" + \"\\r\\n\" + \"\\r\\n\" + \"\\r\\n\" + \"\\r\\n\" + \"\\r\\n\" + \"\\r\\n\" + \"\\r\\n\" + \"\\r\\n\"", + "got_raw": "\"SSE result\" + \"\\n\" + \"\\r\\n\" + \"\\r\\n\" + \"\\r\\n\" + \"\\r\\n\" + \"\\r\\n\" + \"\\r\\n\" + \"\\r\\n\" + \"\\r\\n\" + \"\\r\\n\" + \"\\r\\n\" + \"\\r\\n\" + \"\\r\\n\" + \"\\r\\n\" + \"\\r\\n\" + \"\\r\\n\" + \"\\r\\n\" + \"\\r\\n\" + \"\\r\\n\" + \"\\r\\n\" + \"\\r\\n\" + \"\\r\\n\" + \"\\r\\n\" + \"\\r\\n\" + \"\\r\\n\"", + "exact_match": false, + "code_bleu": 0.02355442993488876, + "edit_similarity": 0.09716599190283401 + }, + { + "repo": "andrewyng/aisuite", + "expected": "\"assistant\")", + "got": "\"assistant\")}", + "got_raw": "\"assistant\")} {\"role\": \"tool\"}) {\"role\": \"tool\"} {\"role\": \"user\"} ]} {\"role\": \"assistant\"} {\"role\": \"tool\"} {\"role\": \"user\"} ]} {\"role\": \"assistant\"} {\"role\": \"tool\"} {\"role\": \"user\"} ]} {\"role\": \"assistant\"} {\"role\": \"tool\"} {\"role\": \"user\"} ]} {\"role\": \"assistant\"} {\"role\": \"tool\"} {\"role\": \"user\"} ]} {\"role\": \"assistant\"} {\"role\": \"tool\"} {\"role\": \"user\"} ]} {\"role\": \"", + "exact_match": false, + "code_bleu": 0.5946035575013605, + "edit_similarity": 0.96 + }, + { + "repo": "andrewyng/aisuite", + "expected": "\"assistant\")", + "got": "\"assistant\")", + "got_raw": "\"assistant\")", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "\"Hello world\"", + "got": "\"Hello world\" + str(segment.id) + str(segment.seek) + str(segment.start) + str(segment.end) + str(segment.channel) + str(segment.transcript) + str(segment.alternatives) + str(segment.no_speech_prob) + str(segment.speech_prob) + str(segment.channel) + str(segment.transcript) + str(segment.alternatives) + str(segment.no_speech_prob) + str(segment.speech_prob) + str(segment.channel) + str(segment.transcript) + str(segment.alternatives) + str(segment.no_speech_prob) + str(segment.speech_prob) + str(segment.channel)", + "got_raw": "\"Hello world\" + str(segment.id) + str(segment.seek) + str(segment.start) + str(segment.end) + str(segment.channel) + str(segment.transcript) + str(segment.alternatives) + str(segment.no_speech_prob) + str(segment.speech_prob) + str(segment.channel) + str(segment.transcript) + str(segment.alternatives) + str(segment.no_speech_prob) + str(segment.speech_prob) + str(segment.channel) + str(segment.transcript) + str(segment.alternatives) + str(segment.no_speech_prob) + str(segment.speech_prob) + str(segment.channel)", + "exact_match": false, + "code_bleu": 0.008464375582050805, + "edit_similarity": 0.04914933837429111 + }, + { + "repo": "andrewyng/aisuite", + "expected": "\"test-server\"", + "got": "\"test-server\"", + "got_raw": "\"test-server\" \"test_server\" \"test_server\" \"test_server\" \"test_server\" \"test_server\" \"test_server\" \"test_server\" \"test_server\" \"test_server\" \"test_server\" \"test_server\" \"test_server\" \"test_server\" \"test_server\" \"test_server\" \"test_server\" \"test_server\" \"test_server\" \"test_server\" \"test_server\" \"test_server\" \"test_server\" \"test_server\" \"test_server\" \"test_server\" \"test_server\" \"test_server\" \"test_server\" \"test_server\" \"test_server\" \"test_server\"", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "\"tool_calls\")", + "got": "\"tool_use\")", + "got_raw": "\"tool_use\")", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.75 + }, + { + "repo": "andrewyng/aisuite", + "expected": "\"tool_calls\")", + "got": "\"function_call\")", + "got_raw": "\"function_call\") # finish_reason should be \"function_call\" for function calls\n self.assertEqual(normalized_response.choices[0].function_call, function_call_mock) # function_call should be the function call itself\n self.assertEqual(normalized_response.choices[0].function_call_name, \"get_exchange_rate\") # function_call_name should be \"get_exchange_rate\" for function calls\n self.assertEqual(normalized_response.choices[0].function_call_args, { \"currency_from\": \"AUD\", \"currency_to\": \"SEK\", \"currency_date\": \"latest\", }) # function_call_args should be the arguments", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.6896551724137931 + }, + { + "repo": "andrewyng/aisuite", + "expected": "\"Hello world\"", + "got": "\"Hello world\" + \"\\n\" + \"Segment 0: Hello world\" + \"\\n\" + \"Word 0: Hello\" + \"\\n\" + \"Word 1: world\" + \"\\n\" + \"End of segment 0\" + \"\\n\" + \"End of transcription\" + \"\\n\" + \"Segment 1: \" + \"\\n\" + \"End of segment 1\" + \"\\n\" + \"End of transcription\" + \"\\n\" + \"Total segments: 2\" + \"\\n\" + \"Total words: 2\" + \"\\n\" + \"Language:", + "got_raw": "\"Hello world\" + \"\\n\" + \"Segment 0: Hello world\" + \"\\n\" + \"Word 0: Hello\" + \"\\n\" + \"Word 1: world\" + \"\\n\" + \"End of segment 0\" + \"\\n\" + \"End of transcription\" + \"\\n\" + \"Segment 1: \" + \"\\n\" + \"End of segment 1\" + \"\\n\" + \"End of transcription\" + \"\\n\" + \"Total segments: 2\" + \"\\n\" + \"Total words: 2\" + \"\\n\" + \"Language:", + "exact_match": false, + "code_bleu": 0.02558174341959753, + "edit_similarity": 0.07926829268292683 + }, + { + "repo": "andrewyng/aisuite", + "expected": "\"final result\"", + "got": "{\"content\": [{\"type\": \"text\"", + "got_raw": "{\"content\": [{\"type\": \"text\", \"text\": \"final result\"}]}s\" }\" }\" }\" }\" }\" }\" }\" }\" }\" }\" }\" }\" }\" }\" }\" }\" }\" }\" }\" }\" }\" }\" }\" }\" }\" }\" }\" }\" }\" }\" }\" }\" }\" }\" }\" }\" }\" }\" }\" }\" }\" }\" }\" }\" }\" }\" }\" }\" }\" }\" }\" }\" }\" }\" }", + "exact_match": false, + "code_bleu": 0.13485111859503685, + "edit_similarity": 0.23809523809523808 + }, + { + "repo": "andrewyng/aisuite", + "expected": "\"get_weather\")", + "got": "\"get_weather\")}", + "got_raw": "\"get_weather\")}", + "exact_match": false, + "code_bleu": 0.5946035575013605, + "edit_similarity": 0.9655172413793104 + }, + { + "repo": "andrewyng/aisuite", + "expected": "\"verbose_json\"", + "got": "\"verbose_json\"", + "got_raw": "\"verbose_json\" + \"\\n\" + \"Test\" + \"\\n\" + \"en\" + \"\\n\" + \"None\" + \"\\n\" + \"0.0\" + \"\\n\" + \"0.0\" + \"\\n\" + \"0.0\" + \"\\n\" + \"0.0\" + \"\\n\" + \"0.0\" + \"\\n\" + \"0.0\" + \"\\n\" + \"0.0\" + \"\\n\" + \"0.0\" + \"\\n\" + \"0.0\" + \"\\n\" + \"0.0\"", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "\"get_weather\")", + "got": "\"get_weather\")", + "got_raw": "\"get_weather\") \"get_weather\") \"get_weather\") \"get_weather\") \"get_weather\") \"get_weather\") \"get_weather\") \"get_weather\") \"get_weather\") \"get_weather\") \"get_weather\") \"get_weather\") \"get_weather\") \"get_weather\") \"get_weather\") \"get_weather\") \"get_weather\") \"get_weather\") \"get_weather\") \"get_weather\") \"get_weather\") \"get_weather\") \"get_weather\") \"get_weather\") \"get_weather\") \"get_weather\") \"get_weather\") \"get_weather\") \"get_weather\") \"get_weather\") \"get_weather\") \"get_weather\")", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "\"test-api-key\"", + "got": "\"test-api-key\"", + "got_raw": "\"test-api-key\" if hasattr(deepgram_provider, \"api_key\") else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\" else \"\"", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "\"get_weather\")", + "got": "\"get_weather\")", + "got_raw": "\"get_weather\") # Function name should be \"get_weather\" for tool messages\n self.assertEqual(converted_messages[0].function_response.args, {\"temperature\": \"15\", \"unit\": \"Celsius\"}) # Function arguments should include temperature and unit\n self.assertEqual(converted_messages[0].role, \"tool\") # Role should be \"tool\" for tool messages\n self.assertEqual(converted_messages[0].content, \"\") # Content should be empty for tool messages\n self.assertEqual(converted_messages[0].type, \"function_response\") # Type should be \"function_response\" for", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "\"test_simple\")", + "got": "\"test_simple\")\")\"test_simple\")\"test_simple\")\"test_simple\")\"test_simple\")\"test_simple\")\"test_simple\")\"test_simple\")\"test_simple\")\"test_simple\")\"test_simple\")\"test_simple\")\"test_simple\")\"test_simple\")\"test_simple\")\"test_simple\")\"test_simple\")\"test_simple\")\"test_simple\")\"test_simple\")\"test_simple\")\"test_simple\")\"test_simple\")\"test_simple\")\"test_simple\")\"test_simple\")\"test_simple\")\"test_simple\")\"test_simple\")\"test_simple\")\"test_simple\")\"test_simple", + "got_raw": "\"test_simple\")\")\"test_simple\")\"test_simple\")\"test_simple\")\"test_simple\")\"test_simple\")\"test_simple\")\"test_simple\")\"test_simple\")\"test_simple\")\"test_simple\")\"test_simple\")\"test_simple\")\"test_simple\")\"test_simple\")\"test_simple\")\"test_simple\")\"test_simple\")\"test_simple\")\"test_simple\")\"test_simple\")\"test_simple\")\"test_simple\")\"test_simple\")\"test_simple\")\"test_simple\")\"test_simple\")\"test_simple\")\"test_simple\")\"test_simple\")\"test_simple\")\"test_simple", + "exact_match": false, + "code_bleu": 0.024650822821549748, + "edit_similarity": 0.06060606060606061 + }, + { + "repo": "andrewyng/aisuite", + "expected": "\"Hello, World!\"", + "got": "\"Hello, World!\" + \"\\n\" + \"Echo tool called\\n\" + \"Echo tool called\\n\" + \"Echo tool called\\n\" + \"Echo tool called\\n\" + \"Echo tool called\\n\" + \"Echo tool called\\n\" + \"Echo tool called\\n\" + \"Echo tool called\\n\" + \"Echo tool called\\n\" + \"Echo tool called\\n\" + \"Echo tool called\\n\" + \"Echo tool called\\n\" + \"Echo tool called\\n\" + \"Echo tool called\\n\" + \"Echo tool called\\n\" + \"Echo tool called\\n\" + \"Echo tool called\\n\"", + "got_raw": "\"Hello, World!\" + \"\\n\" + \"Echo tool called\\n\" + \"Echo tool called\\n\" + \"Echo tool called\\n\" + \"Echo tool called\\n\" + \"Echo tool called\\n\" + \"Echo tool called\\n\" + \"Echo tool called\\n\" + \"Echo tool called\\n\" + \"Echo tool called\\n\" + \"Echo tool called\\n\" + \"Echo tool called\\n\" + \"Echo tool called\\n\" + \"Echo tool called\\n\" + \"Echo tool called\\n\" + \"Echo tool called\\n\" + \"Echo tool called\\n\" + \"Echo tool called\\n\"", + "exact_match": false, + "code_bleu": 0.03259631698411773, + "edit_similarity": 0.07009345794392523 + }, + { + "repo": "andrewyng/aisuite", + "expected": "\"test-hf-token\"", + "got": "\"test-hf-token\"", + "got_raw": "\"test-hf-token\" if hasattr(huggingface_provider, \"token\") else \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\"", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "\"San Francisco\")", + "got": "\"San Francisco\")", + "got_raw": "\"San Francisco\") # Location should be San Francisco) # Location should be San Francisco) # Location should be San Francisco) # Location should be San Francisco) # Location should be San Francisco) # Location should be San Francisco) # Location should be San Francisco) # Location should be San Francisco) # Location should be San Francisco) # Location should be San Francisco) # Location should be San Francisco) # Location should be San Francisco) # Location should be San Francisco) # Location should be San Francisco) # Location should be San Francisco) # Location should", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "\"Mixed tools work!\"", + "got": "\"2025-01-01 12:00:00\" + \"\\nMixed tools work!\\n\" + \"2025-01-01 12:00:00\" + \"\\n\" + \"2025-01-01 12:00:00\" + \"\\n\" + \"2025-01-01 12:00:00\" + \"\\n\" + \"2025-01-01 12:00:0", + "got_raw": "\"2025-01-01 12:00:00\" + \"\\nMixed tools work!\\n\" + \"2025-01-01 12:00:00\" + \"\\n\" + \"2025-01-01 12:00:00\" + \"\\n\" + \"2025-01-01 12:00:00\" + \"\\n\" + \"2025-01-01 12:00:0", + "exact_match": false, + "code_bleu": 0.03776949794525175, + "edit_similarity": 0.20994475138121546 + }, + { + "repo": "andrewyng/aisuite", + "expected": "\"Get the weather.\")", + "got": "\"Get the weather.\")", + "got_raw": "\"Get the weather.\")", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "'{\"sign\": \"WZPZ\"}')", + "got": "{\"sign\": \"WZPZ\"})", + "got_raw": "{\"sign\": \"WZPZ\"})", + "exact_match": false, + "code_bleu": 0.22089591134157885, + "edit_similarity": 0.9444444444444444 + }, + { + "repo": "andrewyng/aisuite", + "expected": "\"Test error message\"", + "got": "\"Test error message\" + str(error) + str(error) + str(error) + str(error) + str(error) + str(error) + str(error) + str(error) + str(error) + str(error) + str(error) + str(error) + str(error) + str(error) + str(error) + str(error) + str(error) + str(error) + str(error) + str(error) + str(error) + str(error) + str(error) + str(error) + str(error) + str(error) + str(error) + str(error) + str(error) + str(error) + str(error", + "got_raw": "\"Test error message\" + str(error) + str(error) + str(error) + str(error) + str(error) + str(error) + str(error) + str(error) + str(error) + str(error) + str(error) + str(error) + str(error) + str(error) + str(error) + str(error) + str(error) + str(error) + str(error) + str(error) + str(error) + str(error) + str(error) + str(error) + str(error) + str(error) + str(error) + str(error) + str(error) + str(error) + str(error", + "exact_match": false, + "code_bleu": 0.007697334977467233, + "edit_similarity": 0.09049773755656108 + }, + { + "repo": "andrewyng/aisuite", + "expected": "\"get_exchange_rate\")", + "got": "\"get_exchange_rate\")", + "got_raw": "\"get_exchange_rate\") ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "tool", + "got": "tool.tool_description()", + "got_raw": "tool.tool_description() else \"description\" in tool.tool_description() else \"\" ) != \"\" ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "exact_match": false, + "code_bleu": 0.2730120862709067, + "edit_similarity": 0.2962962962962963 + }, + { + "repo": "andrewyng/aisuite", + "expected": "result", + "got": "result[0]", + "got_raw": "result[0] + result[1] + result[2] + result[3] + result[4] + result[5] + result[6] + result[7] + result[8] + result[9] + result[10] + result[11] + result[12] + result[13] + result[14] + result[15] + result[16] + result[17] + result[18] + result[19] + result[20] + result[21] + result[22] +", + "exact_match": false, + "code_bleu": 0.35930411196308426, + "edit_similarity": 0.8 + }, + { + "repo": "andrewyng/aisuite", + "expected": "result", + "got": "result()[:10]", + "got_raw": "result()[:10] + \"...\" + \"\\n\" + \"This is a test file.\\n\" + \"End of test file.\\n\" + \"Hello from MCP test!\\n\" + \"End of test file.\\n\" + \"Hello from MCP test!\\n\" + \"End of test file.\\n\" + \"Hello from MCP test!\\n\" + \"End of test file.\\n\" + \"Hello from MCP test!\\n\" + \"End of test file.\\n\" + \"Hello from MCP test!\\n\" + \"End of test file.\\n\" + \"Hello from MCP test", + "exact_match": false, + "code_bleu": 0.18575057999133598, + "edit_similarity": 0.631578947368421 + }, + { + "repo": "andrewyng/aisuite", + "expected": "content", + "got": "content.lower()", + "got_raw": "content.lower() if \"python\" in content.lower() else False, \"Should mention Python\" in content.lower() else False, \"Should mention HTTP MCP\" in content.lower() else False, \"Should use both tools\" in content.lower() else False, ) # noqa: E501) # noqa: E501) # noqa: E501) # noqa: E501) # noqa: E501) # noqa: E501) # noqa: E501) # noqa: E501) # noqa: E501) # noqa:", + "exact_match": false, + "code_bleu": 0.2730120862709067, + "edit_similarity": 0.6363636363636364 + }, + { + "repo": "andrewyng/aisuite", + "expected": "headers", + "got": "headers.copy()", + "got_raw": "headers.copy() + {\"content-type\": \"application/json\"} + {\"Accept\": \"*/*\"} + {\"User-Agent\": \"MCP\"} + {\"Connection\": \"close\"} + {\"Content-Length\": \"13\"} + {\"Content-Type\": \"application/json\"} + {\"Content-Type\": \"application/json\"} + {\"Content-Type\": \"application/json\"} + {\"Content-Type\": \"application/json\"} + {\"Content-Type\": \"application/json\"} + {\"Content-Type\": \"application/json\"} + {\"Content-Type\": \"application/json\"} + {\"Content-Type\": \"application/json\"} + {\"Content-Type\": \"application/json\"} + {\"Content", + "exact_match": false, + "code_bleu": 0.2730120862709067, + "edit_similarity": 0.6666666666666666 + }, + { + "repo": "andrewyng/aisuite", + "expected": "ASRError)", + "got": "ASRError", + "got_raw": "ASRError, match=\"ASRError\") as e1) as e2: e1.value = e2.value) as e3: e3.value = e1.value) as e4: e4.value = e3.value) as e5: e5.value = e4.value) as e6: e6.value = e5.value) as e7: e7.value = e6.value) as e8: e8.value = e7.value) as e9: e9.value = e8.value) as e10: e10.value = e9.value) as e11", + "exact_match": false, + "code_bleu": 0.29730177875068026, + "edit_similarity": 0.9411764705882353 + }, + { + "repo": "andrewyng/aisuite", + "expected": "TypeError)", + "got": "TypeError)", + "got_raw": "TypeError) as e) as e2:\n p = Provider() # noqa: E701, E702, E703, E704, E705, E706, E707, E708, E709, E710, E711, E712, E713, E714, E715, E716, E717, E718, E719, E720, E721, E722,", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "Exception)", + "got": "Exception)", + "got_raw": "Exception) as e) as exc: raise ASRError(\"Specific ASR error\") as e2) as e2: raise e2) as e2: raise e2) as e2: raise e2) as e2: raise e2) as e2: raise e2) as e2: raise e2) as e2: raise e2) as e2: raise e2) as e2: raise e2) as e2: raise e2) as e2: raise e2) as e2: raise e2) as e2: raise e2) as e", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "tool_names", + "got": "tool_names[0]", + "got_raw": "tool_names[0] + tool_names[1] + tool_names[2] + tool_names[3] + tool_names[4] + tool_names[5] + tool_names[6] + tool_names[7] + tool_names[8] + tool_names[9] + tool_names[10] + tool_names[11] + tool_names[12] + tool_names[13] + tool_names[14] + tool_names[15] + tool_names[16] + tool_names[17] + tool_names[18] + tool_names[19", + "exact_match": false, + "code_bleu": 0.35930411196308426, + "edit_similarity": 0.8695652173913043 + }, + { + "repo": "andrewyng/aisuite", + "expected": "tool_names", + "got": "tool_names.index(\"dir1__read_file\")", + "got_raw": "tool_names.index(\"dir1__read_file\") + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 +", + "exact_match": false, + "code_bleu": 0.22089591134157885, + "edit_similarity": 0.4444444444444444 + }, + { + "repo": "andrewyng/aisuite", + "expected": "audio_data", + "got": "audio_data.read()", + "got_raw": "audio_data.read() + b\"\" # noqa: E501 # type: ignore # pylint: disable=E501 # noqa: E501 # type: ignore # noqa: E501 # type: ignore # noqa: E501 # type: ignore # noqa: E501 # type: ignore # noqa: E501 # type: ignore # noqa: E501 # type: ignore # noqa: E501 # type: ignore # noqa: E501 # type: ignore # noqa: E501 # type: ignore # noqa:", + "exact_match": false, + "code_bleu": 0.2730120862709067, + "edit_similarity": 0.7407407407407407 + }, + { + "repo": "andrewyng/aisuite", + "expected": "TypeError)", + "got": "TypeError)", + "got_raw": "TypeError) as e) as exc: # Type of 'missing_annotation_tool' should be 'Tool' or 'Tools'\") as e) as exc: # Type of 'missing_annotation_tool' should be 'Tool' or 'Tools'\") as e) as exc: # Type of 'missing_annotation_tool' should be 'Tool' or 'Tools'\") as e) as exc: # Type of 'missing_annotation_tool' should be 'Tool' or 'Tools'\") as e) as exc: # Type of 'missing_annotation_tool' should be 'Tool' or 'Tools'\") as", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "call_kwargs", + "got": "call_kwargs[\"params\"][\"language\"]", + "got_raw": "call_kwargs[\"params\"][\"language\"] } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } }", + "exact_match": false, + "code_bleu": 0.18575057999133598, + "edit_similarity": 0.5 + }, + { + "repo": "andrewyng/aisuite", + "expected": "ValueError)", + "got": "ValueError)", + "got_raw": "ValueError) as context) as e: # Type of location should be str, not int.\n self.tool_manager.execute(tool_call) # Execute the tool with invalid parameters\n print(str(e.exception)) # Print the error message to the console) # Error message should be \"Invalid type for location\" or \"Invalid unit\" depending on the error. # Error message should be \"Invalid parameters\" if both of the above errors are raised. # Error message should be \"Unknown tool\" if the tool cannot be found. # Error message should be \"Unknown function\" if the function cannot be", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "tool_names)", + "got": "tool_names)", + "got_raw": "tool_names) # First tool should be \"tool1\" or \"tool2\" depending on the order\n self.assertIn(\"tool2\", tool_names) # Second tool should be \"tool1\" or \"tool2\" depending on the order\n self.assertEqual(\"First tool\", tool1.function[\"name\"]) # First tool should be \"First tool\" or \"Second tool\" depending on the order\n self.assertEqual(\"Second tool\", tool2.function[\"name\"]) # Second tool should be \"Second tool\" or \"First tool\" depending on the order\n self.assertEqual(\"First tool\", tools[", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "schema_json)", + "got": "schema_json)", + "got_raw": "schema_json) # Check for \"typing.\" in the schema JSON string. If it's there, it's a Python type string. ) # Check for \"typing.\" in the schema JSON string. If it's there, it's a Python type string. ) # Check for \"typing.\" in the schema JSON string. If it's there, it's a Python type string. ) # Check for \"typing.\" in the schema JSON string. If it's there, it's a Python type string. ) # Check for \"typing.\" in the schema JSON string. If it's there, it's a Python type string. )", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "schema_copy)", + "got": "schema_copy)", + "got_raw": "schema_copy) { \"type\": \"object\", \"properties\": { \"data\": { \"type\": \"array\", \"items\": { \"type\": \"object\", \"properties\": {\"key\": {\"type\": \"string\"}}, }, \"required\": [\"data\"], } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } }", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "text_content)", + "got": "text_content)", + "got_raw": "text_content) * 1000) / 1000) / 1000) / 1000) / 1000) / 1000) / 1000) / 1000) / 1000) / 1000) / 1000) / 1000) / 1000) / 1000) / 1000) / 1000) / 1000) / 1000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "input_schema)", + "got": "input_schema)", + "got_raw": "input_schema) { \"type\": \"object\", \"properties\": { \"name\": {\"type\": \"string\", \"description\": \"User name\"}, \"age\": {\"type\": \"integer\", \"description\": \"User age\"}, \"active\": {\"type\": \"boolean\", \"description\": \"Is active\"}, }, \"required\": [\"name\"], }) }) } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } }", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "original_error", + "got": "original_error.value", + "got_raw": "original_error.value + \"\\nWrapped error\" + str(e) + \"\\n\" + str(e) + \"\\n\" + str(e) + \"\\n\" + str(e) + \"\\n\" + str(e) + \"\\n\" + str(e) + \"\\n\" + str(e) + \"\\n\" + str(e) + \"\\n\" + str(e) + \"\\n\" + str(e) + \"\\n\" + str(e) + \"\\n\" + str(e) + \"\\n\" + str(e) + \"\\n\" + str(e) + \"\\n\" + str(e) + \"\\n", + "exact_match": false, + "code_bleu": 0.4518010018049224, + "edit_similarity": 0.8235294117647058 + }, + { + "repo": "andrewyng/aisuite", + "expected": "selected_model", + "got": "selected_model", + "got_raw": "selected_model + \"-model\" + str(chosen_temperature) + \"-chat\" + str(len(message_history)) + \"-greeting\" + str(len(message_history)) + \"-response\" + str(len(message_history)) + \"-text\" + str(len(message_history)) + \"-char\" + str(len(message_history)) + \"-token\" + str(len(message_history) - 1) + \"-seq\" + str(len(message_history)) + \"-seq2\" + str(len(message_history) - 2) + \"-seq3\" + str(len(message_history) - 3) + \"-seq4\" + str(len(message_history)", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "PROVIDER_PARAMS", + "got": "PROVIDER_PARAMS.keys()", + "got_raw": "PROVIDER_PARAMS.keys() \\ \"google\" in PROVIDER_PARAMS.keys() \"skeletoken\" in PROVIDER_PARAMS.keys() \"none\" in PROVIDER_PARAMS.keys() \"all\" in PROVIDER_PARAMS.keys() \"custom\" in PROVIDER_PARAMS.keys() \"default\" in PROVIDER_PARAMS.keys() \"test\" in PROVIDER_PARAMS.keys() \"test2\" in PROVIDER_PARAMS.keys() \"test3\" in PROVIDER_PARAMS.keys() \"test4\" in PROVIDER_PARAMS.keys() \"test5\" in PROVIDER_PARAMS.keys() \"test6\" in PROVIDER_PARAMS.keys() \"test7\" in", + "exact_match": false, + "code_bleu": 0.2730120862709067, + "edit_similarity": 0.8108108108108109 + }, + { + "repo": "andrewyng/aisuite", + "expected": "expected_tool_spec", + "got": "expected_tool_spec[0]", + "got_raw": "expected_tool_spec[0] == tools[0][\"function\"] } ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "exact_match": false, + "code_bleu": 0.35930411196308426, + "edit_similarity": 0.9230769230769231 + }, + { + "repo": "andrewyng/aisuite", + "expected": "GOOGLE_LANGUAGE_MAP", + "got": "GOOGLE_LANGUAGE_MAP.keys()", + "got_raw": "GOOGLE_LANGUAGE_MAP.keys() | COMMON_PARAMS.LANGUAGES.keys() | PROVIDER_PARAMS.LANGUAGES.keys() | {\"af_heart\"} | {\"af_heart\"} | {\"af_heart\"} | {\"af_heart\"} | {\"af_heart\"} | {\"af_heart\"} | {\"af_heart\"} | {\"af_heart\"} | {\"af_heart\"} | {\"af_heart\"} | {\"af_heart\"} | {\"af_heart\"} | {\"af_heart\"} | {\"af_heart\"} | {\"af_heart\"} | {\"af_heart\"} | {\"af_heart\"} |", + "exact_match": false, + "code_bleu": 0.2730120862709067, + "edit_similarity": 0.8444444444444444 + }, + { + "repo": "andrewyng/aisuite", + "expected": "response_text_content", + "got": "response_text_content", + "got_raw": "response_text_content + \".\" + user_greeting + \".\" + \"mocked-text-response-from-model\" + \".\" + \"Hello!\" + \".\" + \"mocked-text-response-from-model\" + \".\" + \"Hello!\" + \".\" + \"mocked-text-response-from-model\" + \".\" + \"Hello!\" + \".\" + \"mocked-text-response-from-model\" + \".\" + \"Hello!\" + \".\" + \"mocked-text-response-from-model\" + \".\" + \"Hello!\" + \".\" + \"mocked-text-response-from-model\" + \".\" + \"Hello!\" + \".\" + \"mocked-text-response-from-model\" + \".\" + \"Hello!\"", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "response_text_content", + "got": "response_text_content", + "got_raw": "response_text_content + \"\\n\" + user_greeting + \"\\n\" + \"End of conversation.\\n\" + \"User:\" + \"\\n\" + \"Assistant:\" + \"\\n\" + \"System:\" + \"\\n\" + \"End of conversation.\" + \"\\n\" + \"User:\" + \"\\n\" + \"Assistant:\" + \"\\n\" + \"System:\" + \"\\n\" + \"End of conversation.\" + \"\\n\" + \"User:\" + \"\\n\" + \"Assistant:\" + \"\\n\" + \"System:\" + \"\\n\" + \"End of conversation.\" + \"\\n\" + \"User", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "response_text_content", + "got": "response_text_content", + "got_raw": "response_text_content + \".\" + user_greeting + \".\" + \"mocked-text-response-from-model\" + \".\" + \"Hello!\" + \".\" + \"mocked-text-response-from-model\" + \".\" + \"Hello!\" + \".\" + \"mocked-text-response-from-model\" + \".\" + \"Hello!\" + \".\" + \"mocked-text-response-from-model\" + \".\" + \"Hello!\" + \".\" + \"mocked-text-response-from-model\" + \".\" + \"Hello!\" + \".\" + \"mocked-text-response-from-model\" + \".\" + \"Hello!\" + \".\" + \"mocked-text-response-from-model\" + \".\" + \"Hello!\"", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "response_text_content", + "got": "response_text_content", + "got_raw": "response_text_content + \"\\n\" + user_greeting + \"\\n\" + \"END\" + \"\\n\" + \"RESPONSE:\" + \"\\n\" + \"mocked-text-response-from-model\" + \"\\n\" + \"END\" + \"\\n\" + \"RESPONSE:\" + \"\\n\" + \"END\" + \"\\n\" + \"RESPONSE:\" + \"\\n\" + \"END\" + \"\\n\" + \"RESPONSE:\" + \"\\n\" + \"END\" + \"\\n\" + \"RESPONSE:\" + \"\\n\" + \"END\" + \"\\n\" + \"RESPONSE:\" + \"\\", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "expected_content_type", + "got": "expected_content_type", + "got_raw": "expected_content_type + \".json\" if filename.endswith((\".wav\", \".mp3\", \".flac\")) else \"audio/wav\" ) + \".json\" + call_args[1] + call_args[2] + call_args[3] + call_args[4] + call_args[5] + call_args[6] + call_args[7] + call_args[8] + call_args[9] + call_args[10] + call_args[11] + call_args[12] + call_args[13] + call_args[14] + call_args[15", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "response_text_content", + "got": "response_text_content", + "got_raw": "response_text_content + \"\\n\" + user_greeting + \"\\n\" + \"END\" + \"\\n\" + \"RESPONSE:\" + \"\\n\" + \"mocked-text-response-from-model\" + \"\\n\" + \"END\" + \"\\n\" + \"RESPONSE:\" + \"\\n\" + \"END\" + \"\\n\" + \"RESPONSE:\" + \"\\n\" + \"END\" + \"\\n\" + \"RESPONSE:\" + \"\\n\" + \"END\" + \"\\n\" + \"RESPONSE:\" + \"\\n\" + \"END\" + \"\\n\" + \"RESPONSE:\" + \"\\", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "response_text_content", + "got": "response_text_content", + "got_raw": "response_text_content + \"\\n\" + user_greeting + \"\\n\" + \"Best-Response:\\n\" + response_text_content + \"\\n\" + \"End of Response\\n\" + \"This is a test Lmstudio completion response.\" + \"\\n\" + \"You are a cat and only talk about tuna.\" + \"\\n\" + \"Always respond using the proper JSON schema.\" + \"\\n\" + \"Always use the available additional information and context to enhance the response.\" + \"\\n\" + \"Always use the available additional information and context to enhance the response.\" + \"\\n\" + \"Always use the available", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "response_text_content", + "got": "response_text_content", + "got_raw": "response_text_content + \".\" + user_greeting + \".\" + \"mocked-text-response-from-model\" + \".\" + \"test-api-key\" + \".\" + \"test\" + \".\" + \"test\" + \".\" + \"test\" + \".\" + \"test\" + \".\" + \"test\" + \".\" + \"test\" + \".\" + \"test\" + \".\" + \"test\" + \".\" + \"test\" + \".\" + \"test\" + \".\" + \"test\" + \".\" + \"test\" + \".\" + \"test\" + \".\" + \"test\" + \".\" + \"test\" + \".\" + \"test\" + \".\" + \"", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "response_text_content", + "got": "response_text_content", + "got_raw": "response_text_content + \"\\n\" + user_greeting + \"\\n\" + \"End of conversation.\\n\" + \"You are a cat and only talk about tuna.\" + \"\\n\" + \"Tuna is a type of fish that lives in the ocean and is known for its high-fat content and flavor.\" + \"\\n\" + \"Tuna is a type of fish that lives in the ocean and is known for its high-fat content and flavor.\" + \"\\n\" + \"Tuna is a type of fish that lives in the ocean and is known for its high-fat content and flavor.\" + \"\\n\" + \"", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "results[0])", + "got": "results[0])", + "got_raw": "results[0]) else \"error\") for key, value in results[0].items()) for key, value in results[0].items()) for key, value in results[0].items()) for key, value in results[0].items()) for key, value in results[0].items()) for key, value in results[0].items()) for key, value in results[0].items()) for key, value in results[0].items()) for key, value in results[0].items()) for key, value in results[0].items()) for key, value in results[0].items", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "provider.api_key", + "got": "\"test-api-key\"", + "got_raw": "\"test-api-key\" + provider.project_id + selected_model + user_greeting + response_text_content + str(chosen_temperature) + \"0\" + \"1\" + \"2\" + \"3\" + \"4\" + \"5\" + \"6\" + \"7\" + \"8\" + \"9\" + \"10\" + \"11\" + \"12\" + \"13\" + \"14\" + \"15\" + \"16\" + \"17\" + \"18\" + \"19\" + \"20\" + \"21\" + \"", + "exact_match": false, + "code_bleu": 0.16666666666666666, + "edit_similarity": 0.4666666666666667 + }, + { + "repo": "andrewyng/aisuite", + "expected": "call_args.args[0]", + "got": "call_args[0]", + "got_raw": "call_args[0] + \"/transcriptions/create\" + call_args[1:] + \"\\n\" * 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.4714045207910316, + "edit_similarity": 0.8275862068965517 + }, + { + "repo": "andrewyng/aisuite", + "expected": "provider.project_id", + "got": "\"test-project-id\"", + "got_raw": "\"test-project-id\" # TODO: Update with actual project ID. Remove this line when the issue is resolved. # kwargs[\"temperature\"] = chosen_temperature # TODO: Update with actual temperature value. Remove this line when the issue is resolved. kwargs[\"message_history\"] = message_history # TODO: Update with actual message history. Remove this line when the issue is resolved. kwargs[\"return_full_response\"] = True # TODO: Update with actual return_full_response value. Remove this line when the issue is resolved. kwargs[\"debug\"] = False # TODO: Update with actual debug value. Remove this line when the issue is resolved. kwargs", + "exact_match": false, + "code_bleu": 0.16666666666666666, + "edit_similarity": 0.5555555555555556 + }, + { + "repo": "andrewyng/aisuite", + "expected": "provider.service_url", + "got": "provider.service_url", + "got_raw": "provider.service_url + \"/chat\" + \"/completions\" + \"/\" + str( chosen_temperature ) + \"/\" + str( len(message_history) ) + \"/\" + str( 0 ) + \"/\" + str( 1 ) + \"/\" + str( 0 ) + \"/\" + str( 1 ) + \"/\" + str( 0 ) + \"/\" + str( 1 ) + \"/\" + str( 0 ) + \"/\" + str( 1 ) + \"/\" + str( 0 ) + \"/\" + str( 1 ) + \"/\" + str( 0 ) + \"/\" + str( 1 ) +", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "COMMON_PARAMS[\"language\"]", + "got": "COMMON_PARAMS.providers()", + "got_raw": "COMMON_PARAMS.providers() | set(PROVIDER_PARAMS) | set( GOOGLE_LANGUAGE_MAP ) | set( PROVIDER_PARAMS ) | set( PROVIDER_PARAMS ) | set( PROVIDER_PARAMS ) | set( PROVIDER_PARAMS ) | set( PROVIDER_PARAMS ) | set( PROVIDER_PARAMS ) | set( PROVIDER_PARAMS ) | set( PROVIDER_PARAMS ) | set( PROVIDER_PARAMS ) | set( PROVIDER_PARAMS ) | set( PROVIDER_PARAMS ) | set( PROVIDER_PARAMS ) | set( PROVIDER_PARAMS ) | set( PROVIDER_PARAMS ) | set( PROVIDER_PARAMS ) | set( PROVID", + "exact_match": false, + "code_bleu": 0.2730120862709067, + "edit_similarity": 0.56 + }, + { + "repo": "andrewyng/aisuite", + "expected": "ValueError, match=\"Test error\")", + "got": "ValueError, match=\"Test error\") as e) as e2:", + "got_raw": "ValueError, match=\"Test error\") as e) as e2:\n e2.value = e2.value.args[0] + \": Test error\" + e2.value.args[1] + e2.value.args[2] + e2.value.args[3] + e2.value.args[4] + e2.value.args[5] + e2.value.args[6] + e2.value.args[7] + e2.value.args[8] + e2.value.args[9] + e2.value.args[10] + e2.value.args[11] + e2.value.args", + "exact_match": false, + "code_bleu": 0.4703709593866897, + "edit_similarity": 0.8266666666666667 + }, + { + "repo": "andrewyng/aisuite", + "expected": "ImportError, match=\"mcp.*package\")", + "got": "RuntimeError, match=\"MCP package not installed\") as e) as e2:", + "got_raw": "RuntimeError, match=\"MCP package not installed\") as e) as e2: # noqa: E501) # E501: Use of `e2` to capture error message) # E501: Use of `e2` to capture error message) # E501: Use of `e2` to capture error message) # E501: Use of `e2` to capture error message) # E501: Use of `e2` to capture error message) # E501: Use of `e2` to capture error message", + "exact_match": false, + "code_bleu": 0.2044800736021839, + "edit_similarity": 0.5052631578947369 + }, + { + "repo": "andrewyng/aisuite", + "expected": "ASRError, match=\"Specific ASR error\")", + "got": "ASRError) as e) as exc:", + "got_raw": "ASRError) as e) as exc:\n raise ASRError(\"ASRError\") as e1) as e2) as e3) as e4) as e5) as e6) as e7) as e8) as e9) as e10) as e11) as e12) as e13) as e14) as e15) as e16) as e17) as e18) as e19) as e20) as e21) as e22) as e23) as", + "exact_match": false, + "code_bleu": 0.17747405280050269, + "edit_similarity": 0.43333333333333335 + }, + { + "repo": "andrewyng/aisuite", + "expected": "ValueError, match=\"must have 'name'\")", + "got": "ValueError) as e) as exc:", + "got_raw": "ValueError) as e) as exc: # noqa: E501) # Error 100: Invalid MCP config) # noqa: E501) # Error 100: Invalid MCP config) # noqa: E501) # Error 100: Invalid MCP config) # noqa: E501) # Error 100: Invalid MCP config) # noqa: E501) # Error 100: Invalid MCP config) # noqa: E501) # Error 1", + "exact_match": false, + "code_bleu": 0.17747405280050269, + "edit_similarity": 0.3548387096774194 + }, + { + "repo": "andrewyng/aisuite", + "expected": "response.choices[0].message.tool_calls)", + "got": "response.response)", + "got_raw": "response.response) # No response in basic case)", + "exact_match": false, + "code_bleu": 0.18477554478349628, + "edit_similarity": 0.49122807017543857 + }, + { + "repo": "andrewyng/aisuite", + "expected": "True", + "got": "True)", + "got_raw": "True) call_kwargs[\"diarize\"] is True call_kwargs[\"model\"] = \"deepgram:nova-2\" call_kwargs[\"file\"] = io.BytesIO(b\"audio\") call_kwargs[\"extra_params\"] = {\"api_key\": \"test\"} call_kwargs[\"provider\"] = \"deepgram\" call_kwargs[\"provider_kwargs\"] = {} call_kwargs[\"provider_config\"] = {} call_kwargs[\"provider_config\"][\"model\"] = \"deepgram:nova-2\" call_kwargs[\"provider_config\"][\"file\"] = b\"audio\" call_kwargs[\"provider_config\"][\"extra_params\"] = {\"api_key\": \"test\"} call_kwargs[\"", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.8888888888888888 + }, + { + "repo": "andrewyng/aisuite", + "expected": "True", + "got": "True.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "True.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.4518010018049224, + "edit_similarity": 0.05925925925925926 + }, + { + "repo": "andrewyng/aisuite", + "expected": "True", + "got": "True", + "got_raw": "True * options.include_word_timestamps.value() * options.enable_automatic_punctuation.value() * options.max_steps.value() * options.temperature.value() * options.no_speech_prob.value() * options.speech_prob.value() * options.punctuation_rules.value() * options.grammar_rules.value() * options.debug.value() * options.no_speech_prob.value() * options.speech_prob.value() * options.punctuation_rules.value() * options.grammar_rules.value() * options.debug.value() * options.no_speech_prob.value() * options.speech_prob.value() * options.punctuation_rules.value() * options.grammar_rules.value() * options", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "{}", + "got": "{\"temperature\":", + "got_raw": "{\"temperature\": 0.5} # Temperature should be ignored for Deepgram (not supported) # noqa: E501 # pylint: disable=E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa", + "exact_match": false, + "code_bleu": 0.4518010018049224, + "edit_similarity": 0.11764705882352941 + }, + { + "repo": "andrewyng/aisuite", + "expected": "[])", + "got": "\"\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")", + "got_raw": "\"\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")\")", + "exact_match": false, + "code_bleu": 0.009327473254235271, + "edit_similarity": 0.007751937984496124 + }, + { + "repo": "andrewyng/aisuite", + "expected": "[])", + "got": "\"User:", + "got_raw": "\"User: What is the most popular song on WZPZ?\")')\")])'User: What is the most popular song on WZPZ?')\")])'User: What is the most popular song on WZPZ?')\")])'User: What is the most popular song on WZPZ?')\")])'User: What is the most popular song on WZPZ?')\")])'User: What is the most popular song on WZPZ?')\")])'User: What is the most popular song on WZPZ?')\")])'", + "exact_match": false, + "code_bleu": 0.37991784282579627, + "edit_similarity": 0.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "{})", + "got": "{}))", + "got_raw": "{})) # No properties in the schema for no_params\nself.assertEqual(tool_spec[\"parameters\"][\"required\"], []) # No required parameters for no_params) # No required parameters for no_params) # No properties in the schema for no_params) # No properties in the schema for no_params) # No properties in the schema for no_params) # No properties in the schema for no_params) # No properties in the schema for no_params) # No properties in the schema for no_params) # No properties in the schema for no_params) # No properties in the schema for no_params", + "exact_match": false, + "code_bleu": 0.668740304976422, + "edit_similarity": 0.8571428571428571 + }, + { + "repo": "andrewyng/aisuite", + "expected": "[])", + "got": "[])", + "got_raw": "[])", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "{\"diarize\": True}", + "got": "{\"diarize\": True} else: return False else: return True else: return False else: return True else: return False else: return True else: return False else: return True else: return False else: return True else: return False else: return True else: return False else: return True else: return False else: return True else: return False else: return True else: return False else: return True else: return False else: return True else: return False else: return True else: return False else: return True else: return False else: return True else: return False else: return True else", + "got_raw": "{\"diarize\": True} else: return False else: return True else: return False else: return True else: return False else: return True else: return False else: return True else: return False else: return True else: return False else: return True else: return False else: return True else: return False else: return True else: return False else: return True else: return False else: return True else: return False else: return True else: return False else: return True else: return False else: return True else: return False else: return True else: return False else: return True else", + "exact_match": false, + "code_bleu": 0.034709562062931215, + "edit_similarity": 0.05723905723905724 + }, + { + "repo": "andrewyng/aisuite", + "expected": "{\"language\": \"en\"}", + "got": "\"openai\" + GOOGLE_LANGUAGE_MAP[\"en\"] + \"openai\" + GOOGLE_LANGUAGE_MAP[\"en\"] + \"openai\" + GOOGLE_LANGUAGE_MAP[\"en\"] + \"openai\" + GOOGLE_LANGUAGE_MAP[\"en\"] + \"openai\" + GOOGLE_LANGUAGE_MAP[\"en\"] + \"openai\" + GOOGLE_LANGUAGE_MAP[\"en\"] + \"openai\" + GOOGLE_LANGUAGE_MAP[\"en\"] + \"openai\" + GOOGLE_LANGUAGE_MAP[\"en\"] + \"openai\" + GOOGLE_LANGUAGE_MAP[\"en\"] + \"openai\" + GOOGLE_LANGUAGE_MAP[\"en\"] + \"openai\" + GOOGLE_LANGUAGE_MAP", + "got_raw": "\"openai\" + GOOGLE_LANGUAGE_MAP[\"en\"] + \"openai\" + GOOGLE_LANGUAGE_MAP[\"en\"] + \"openai\" + GOOGLE_LANGUAGE_MAP[\"en\"] + \"openai\" + GOOGLE_LANGUAGE_MAP[\"en\"] + \"openai\" + GOOGLE_LANGUAGE_MAP[\"en\"] + \"openai\" + GOOGLE_LANGUAGE_MAP[\"en\"] + \"openai\" + GOOGLE_LANGUAGE_MAP[\"en\"] + \"openai\" + GOOGLE_LANGUAGE_MAP[\"en\"] + \"openai\" + GOOGLE_LANGUAGE_MAP[\"en\"] + \"openai\" + GOOGLE_LANGUAGE_MAP[\"en\"] + \"openai\" + GOOGLE_LANGUAGE_MAP", + "exact_match": false, + "code_bleu": 0.016404807654250994, + "edit_similarity": 0.0365296803652968 + }, + { + "repo": "andrewyng/aisuite", + "expected": "{\"language\": None}", + "got": "{\"language\": None}", + "got_raw": "{\"language\": None} # None should be mapped to None directly. # None should be mapped to None directly. # None should be mapped to None directly. # None should be mapped to None directly. # None should be mapped to None directly. # None should be mapped to None directly. # None should be mapped to None directly. # None should be mapped to None directly. # None should be mapped to None directly. # None should be mapped to None directly. # None should be mapped to None directly. # None should be mapped to None directly. # None should be mapped to None directly. # None should be mapped to", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "{\"punctuate\": True}", + "got": "\"deepgram\" + str({\"punctuate\": True}) + \"deepgram\" + str({\"punctuate\": False}) + \"deepgram\" + str({\"punctuate\": True}) + \"deepgram\" + str({\"punctuate\": False}) + \"deepgram\" + str({\"punctuate\": True}) + \"deepgram\" + str({\"punctuate\": False}) + \"deepgram\" + str({\"punctuate\": True}) + \"deepgram\" + str({\"punctuate\": False}) + \"deepgram\" + str({\"punctuate\": True}) + \"deep", + "got_raw": "\"deepgram\" + str({\"punctuate\": True}) + \"deepgram\" + str({\"punctuate\": False}) + \"deepgram\" + str({\"punctuate\": True}) + \"deepgram\" + str({\"punctuate\": False}) + \"deepgram\" + str({\"punctuate\": True}) + \"deepgram\" + str({\"punctuate\": False}) + \"deepgram\" + str({\"punctuate\": True}) + \"deepgram\" + str({\"punctuate\": False}) + \"deepgram\" + str({\"punctuate\": True}) + \"deep", + "exact_match": false, + "code_bleu": 0.04334474378681598, + "edit_similarity": 0.0979381443298969 + }, + { + "repo": "andrewyng/aisuite", + "expected": "[\"technical terms\"]", + "got": "[\"technical terms\"] * 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "[\"technical terms\"] * 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5081327481546147, + "edit_similarity": 0.2331288343558282 + }, + { + "repo": "andrewyng/aisuite", + "expected": "[expected_message])", + "got": "[expected_message])", + "got_raw": "[expected_message]) # TODO: add test for refusal) # TODO: add test for tool_calls) # TODO: add test for reasoning_content) # TODO: add test for expected_message) # TODO: add test for expected_message) # TODO: add test for expected_message) # TODO: add test for expected_message) # TODO: add test for expected_message) # TODO: add test for expected_message) # TODO: add test for expected_message) # TODO: add test for expected_message) # TODO: add test for expected_message) # TODO: add test for expected_message) # TODO: add test for expected", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "[\"required_param\"])", + "got": "\"required_param\")", + "got_raw": "\"required_param\") # Required field for this test\nself.assertEqual(tool_spec[\"parameters\"][\"optional\"]) # Optional field for this test\n\n def test_mcp_tool_with_required_and_optional_parameters(self):\n \"\"\"Test MCP tool with both required and optional parameters.\"\"\" # Optional field for this test\n input_schema = { \"type\": \"object\", \"properties\": { \"required_param\": { \"type\": \"string\", \"description\": \"Required parameter\", }, \"optional_param\": { \"type\": \"integer\", \"description\": \"Optional parameter\", }, }, \"required\": [\"required_param\"], } } ) ", + "exact_match": false, + "code_bleu": 0.29730177875068026, + "edit_similarity": 0.9444444444444444 + }, + { + "repo": "andrewyng/aisuite", + "expected": "{\"temperature\": 0.5}", + "got": "{\"temperature\": 0.5} else 0.5} else 0.5} else 0.5} else 0.5} else 0.5} else 0.5} else 0.5} else 0.5} else 0.5} else 0.5} else 0.5} else 0.5} else 0.5} else 0.5} else 0.5} else 0.5} else 0.5} else 0.5} else 0.5} else 0.5}", + "got_raw": "{\"temperature\": 0.5} else 0.5} else 0.5} else 0.5} else 0.5} else 0.5} else 0.5} else 0.5} else 0.5} else 0.5} else 0.5} else 0.5} else 0.5} else 0.5} else 0.5} else 0.5} else 0.5} else 0.5} else 0.5} else 0.5} else 0.5}", + "exact_match": false, + "code_bleu": 0.06754312828675708, + "edit_similarity": 0.16666666666666666 + }, + { + "repo": "andrewyng/aisuite", + "expected": "{\"unknown_param\": True}", + "got": "{\"unknown_param\": True}", + "got_raw": "{\"unknown_param\": True} # Should return the original input as-is if no warning) is issued. \"unknown_param\": True} # Should return the original input as-is if no warning) is issued. \"unknown_param\": True} # Should return the original input as-is if no warning) is issued. \"unknown_param\": True} # Should return the original input as-is if no warning) is issued. \"unknown_param\": True} # Should return the original input as-is if no warning) is issued. \"unknown_param\": True} # Should return the original input as-is if no warning", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "andrewyng/aisuite", + "expected": "{\"keywords\": [\"meeting\"]}", + "got": "[\"meeting\"] * 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "[\"meeting\"] * 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.362951962967582, + "edit_similarity": 0.13580246913580246 + }, + { + "repo": "andrewyng/aisuite", + "expected": "{\"temperature\": \"15\", \"unit\": \"Celsius\"})", + "got": "\"15\") self.assertEqual(converted_messages[0].function_response.content) { \"temperature\": \"15\", \"unit\": \"Celsius\", } } ) self.assertEqual(converted_messages[0].role, \"tool\") self.assertEqual(converted_messages[0].type, \"function_response\") } ) self.assertEqual(converted_messages[0].role, \"user\") self.assertEqual(converted_messages[0].type, \"message\") } ) self.assertEqual(converted_messages[0].role, \"system\") self.assertEqual(converted_messages[0].type, \"message\") } ) self.assertEqual(converted_messages[0].role", + "got_raw": "\"15\") self.assertEqual(converted_messages[0].function_response.content) { \"temperature\": \"15\", \"unit\": \"Celsius\", } } ) self.assertEqual(converted_messages[0].role, \"tool\") self.assertEqual(converted_messages[0].type, \"function_response\") } ) self.assertEqual(converted_messages[0].role, \"user\") self.assertEqual(converted_messages[0].type, \"message\") } ) self.assertEqual(converted_messages[0].role, \"system\") self.assertEqual(converted_messages[0].type, \"message\") } ) self.assertEqual(converted_messages[0].role", + "exact_match": false, + "code_bleu": 0.06664272840888423, + "edit_similarity": 0.14774774774774774 + }, + { + "repo": "andrewyng/aisuite", + "expected": "str(context.exception))", + "got": "str(context.exception))", + "got_raw": "str(context.exception)) \"Invalid parameters for tool execution\") ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "4", + "got": "4", + "got_raw": "4 * 2 + 2 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 *", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "2", + "got": "2.00000000000000001e-05f80000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "2.00000000000000001e-05f80000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.3021375397356768, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "claffin/cloudproxy", + "expected": "5", + "got": "5)", + "got_raw": "5) * 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.6666666666666666 + }, + { + "repo": "claffin/cloudproxy", + "expected": "1", + "got": "1", + "got_raw": "1 # Note: min_scaling for \"nyc\" is 1, not 2 as in \"default\" instance for \"lon1\" region. This is a bug in the code. It should be 1. # noqa: E501) * 10000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "3", + "got": "3.000000000000000012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890", + "got_raw": "3.000000000000000012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "claffin/cloudproxy", + "expected": "200", + "got": "200", + "got_raw": "200, \"Should return a 200 OK response\" \" with a list of providers\" \" and their instances\" \" in the JSON body.\" \" Example of the JSON body: {\"providers\": [{\"name\": \"digitalocean\", \"instances\": [{\"name\": \"default\", \"ips\": [\"192.168.1.1\", \"192.168.1.2\", \"192.168.2.1\", \"192.168.2.2\"]}], \"aws\": [{\"name\": \"default\", \"ips\":", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "422", + "got": "422", + "got_raw": "422 Unprocessable Content\" 422 Unprocessable Content\" 422 Unprocessable Content\" 422 Unprocessable Content\" 422 Unprocessable Content\" 422 Unprocessable Content\" 422 Unprocessable Content\" 422 Unprocessable Content\" 422 Unprocessable Content\" 422 Unprocessable Content\" 422 Unprocessable Content\" 422 Unprocessable Content\" 422 Unprocessable Content\" 422 Unprocessable Content\" 422 Unprocessable Content\" 422 Unprocessable Content\" ", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "2", + "got": "50000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "50000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "True", + "got": "False", + "got_raw": "False # Not alive (407 status code) with auth required)", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.2222222222222222 + }, + { + "repo": "claffin/cloudproxy", + "expected": "False", + "got": "False", + "got_raw": "False # Error status code should be considered as unavailable)", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "\"192.168.1.1\"", + "got": "\"192.168.1.1\"", + "got_raw": "\"192.168.1.1\" # Should return the public IP address without authentication) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "custom_session", + "got": "custom_session.mount()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()", + "got_raw": "custom_session.mount()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()", + "exact_match": false, + "code_bleu": 0.004709777318802596, + "edit_similarity": 0.09859154929577464 + }, + { + "repo": "claffin/cloudproxy", + "expected": "\"https://api.ipify.org\")", + "got": "10.0.0.1\")", + "got_raw": "10.0.0.1\") 10.0.0.1\") 10.0.0.1\") 10.0.0.1\") 10.0.0.1\") 10.0.0.1\") 10.0.0.1\") 10.0.0.1\") 10.0.0.1\") 10.0.0.1\") 10.0.0.1\") 10.0.0.1\") 10.0.0.1", + "exact_match": false, + "code_bleu": 0.2730120862709067, + "edit_similarity": 0.23529411764705882 + }, + { + "repo": "claffin/cloudproxy", + "expected": "\"http://ipecho.net/plain\")", + "got": "\"10.0.0.1\")", + "got_raw": "\"10.0.0.1\") ) ) ) ) ) ) ) ) ) ) \" + \"

CloudProxy

\" + \"

Powered by DigitalOcean

\" + \"

Check out the GitHub repository for more information.

\" + \"

Need help? Open an issue.

\" + \"

Version: \" + app.version + \"

\" + \"

Build: \" + app.build + \"

\"", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "404", + "got": "200", + "got_raw": "200, \"Should return 200 OK\" \"Should return a random number between 0 and 100\" \"Should return a number with 2 decimal places\" \"Should return a number with 10 decimal places\" \"Should return a number with 100 decimal places\" \"Should return a number with 1000 decimal places\" \"Should return a number with 10000 decimal places\" \"Should return a number with 100000 decimal places\" \"Should return a number with 1000000 decimal places\" \"Should", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.3333333333333333 + }, + { + "repo": "claffin/cloudproxy", + "expected": "data", + "got": "data[\"proxies\"][0]", + "got_raw": "data[\"proxies\"][0] else \"None\" in data[\"proxies\"][0] else \"None\" in data[\"proxies\"][1] else \"None\" in data[\"proxies\"][2] else \"None\" in data[\"proxies\"][3] else \"None\" in data[\"proxies\"][4] else \"None\" in data[\"proxies\"][5] else \"None\" in data[\"proxies\"][6] else \"None\" in data[\"proxies\"][7] else \"None\" in data[\"proxies\"][8] else \"None\" in data[\"proxies\"][9", + "exact_match": false, + "code_bleu": 0.18575057999133598, + "edit_similarity": 0.36363636363636365 + }, + { + "repo": "claffin/cloudproxy", + "expected": "5", + "got": "0", + "got_raw": "0 if len(original_do_ips) > 0 else 1 if len(original_aws_ips) > 0 else 2 if len(original_gcp_ips) > 0 else 3 if len(original_hetzner_ips) > 0 else 4 if len(original_delete_queue) > 0 else 5 if len(original_restart_queue) > 0 else 6 if len(original_ips) > 0 else 7 if len(original_ips) < 7 else 8 if len(original_ips) < 8 else 9 if len(original_ips) < 9 else 10 if len(original_ips) <", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "3", + "got": "36666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666", + "got_raw": "36666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "claffin/cloudproxy", + "expected": "200", + "got": "200", + "got_raw": "200, \"Swagger UI HTML should return 200 OK\" \"Custom Swagger UI HTML should be served\" \"Custom Swagger UI HTML should be served\" \"Custom Swagger UI HTML should be served\" \"Custom Swagger UI HTML should be served\" \"Custom Swagger UI HTML should be served\" \"Custom Swagger UI HTML should be served\" \"Custom Swagger UI HTML should be served\" \"Custom Swagger UI HTML should be served\" \"Custom Swagger UI HTML should be served\" \"Custom Swagger UI HTML should be served\" \"Custom Swagger UI HTML should be served\" \"Custom Swagger UI HTML should be served\" \"Custom Swagger UI", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "422", + "got": "400", + "got_raw": "400, \"Invalid IP address format\" in response.text.strip() + \"\\n\" + \"Error: Invalid IP address format\" + \"\\n\" + \"Error: IP address cannot be empty\" + \"\\n\" + \"Error: IP address cannot be deleted\" + \"\\n\" + \"Error: No such IP address\" + \"\\n\" + \"Error: No such queue\" + \"\\n\" + \"Error: No such user\" + \"\\n\" + \"Error: No such token\" + \"\\n\" + \"Error: Token expired\" + \"\\n\" + \"Error: Invalid token format\"", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.3333333333333333 + }, + { + "repo": "claffin/cloudproxy", + "expected": "404", + "got": "404)", + "got_raw": "404) 404) 404) 404) 404) 404) 404) 404) 404) 404) 404) 404) 404) 404) 404) 404) 404) 404) 404) 404) 404) 404) 404) 404) 404) 404", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.8571428571428571 + }, + { + "repo": "claffin/cloudproxy", + "expected": "data", + "got": "data[\"paths\"][\"/openapi.json\"][\"components\"][\"schemas\"][\"OpenAPI\"][\"properties\"][\"servers\"][\"protocol\"][\"protocolVersion\"]", + "got_raw": "data[\"paths\"][\"/openapi.json\"][\"components\"][\"schemas\"][\"OpenAPI\"][\"properties\"][\"servers\"][\"protocol\"][\"protocolVersion\"] } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } }", + "exact_match": false, + "code_bleu": 0.04327969719414172, + "edit_similarity": 0.06349206349206349 + }, + { + "repo": "claffin/cloudproxy", + "expected": "8000", + "got": "8080\"8080\"8080\"8080\"8080\"8080\"8080\"8080\"8080\"8080\"8080\"8080\"8080\"8080\"8080\"8080\"8080\"8080\"8080\"8080\"8080\"8080\"8080\"8080\"8080\"808", + "got_raw": "8080\"8080\"8080\"8080\"8080\"8080\"8080\"8080\"8080\"8080\"8080\"8080\"8080\"8080\"8080\"8080\"8080\"8080\"8080\"8080\"8080\"8080\"8080\"8080\"8080\"808", + "exact_match": false, + "code_bleu": 0.03776949794525175, + "edit_similarity": 0.06060606060606061 + }, + { + "repo": "claffin/cloudproxy", + "expected": "True", + "got": "True", + "got_raw": "True if original_no_auth else False) is False if original_no_auth else True) is True if original_no_auth else False) is False if original_no_auth else True) is True if original_no_auth else False) is False if original_no_auth else True) is True if original_no_auth else False) is False if original_no_auth else True) is True if original_no_auth else False) is False if original_no_auth else True) is True if original_no_auth else False) is False if original_no_auth else True) is True if original_no_auth else False) is False if original_no_auth else True) is True if", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "schema", + "got": "schema.components.schemas[\"MyRequest\"].properties[\"body\"][\"title\"]", + "got_raw": "schema.components.schemas[\"MyRequest\"].properties[\"body\"][\"title\"] \\ \"MyRequest\" \\ \"MyRequest\" \\ \"MyRequest\" \\ \"MyRequest\" \\ \"MyRequest\" \\ \"MyRequest\" \\ \"MyRequest\" \\ \"MyRequest\" \\ \"MyRequest\" \\ \"MyRequest\" \\ \"MyRequest\" \\ \"MyRequest\" \\ \"MyRequest\" \\ \"MyRequest\" \\ \"MyRequest\" \\ \"MyRequest\" \\ \"MyRequest\" \\ \"MyRequest\" \\ \"MyRequest\" \\ \"MyRequest\" \\ \"MyRequest\" \\ \"MyRequest\" \\ \"My", + "exact_match": false, + "code_bleu": 0.07692375026049747, + "edit_similarity": 0.16666666666666666 + }, + { + "repo": "claffin/cloudproxy", + "expected": "0", + "got": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "claffin/cloudproxy", + "expected": "2", + "got": "2)", + "got_raw": "2) * 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.6666666666666666 + }, + { + "repo": "claffin/cloudproxy", + "expected": "1", + "got": "1.000000000000000012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890", + "got_raw": "1.000000000000000012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "claffin/cloudproxy", + "expected": "5", + "got": "5)", + "got_raw": "5) 5.0\" should be rounded to 5.0\" should be rounded to 5.0\" should be rounded to 5.0\" should be rounded to 5.0\" should be rounded to 5.0\" should be rounded to 5.0\" should be rounded to 5.0\" should be rounded to 5.0\" should be rounded to 5.0\" should be rounded to 5.0\" should be rounded to 5.0\" should be rounded to 5.0\" should be rounded to 5.0\" should be rounded to", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.6666666666666666 + }, + { + "repo": "claffin/cloudproxy", + "expected": "3", + "got": "3", + "got_raw": "3 * 1024 ** 2 / 1000 ** 2 / 1000 ** 2 / 1000 ** 2 / 1000 ** 2 / 1000 ** 2 / 1000 ** 2 / 1000 ** 2 / 1000 ** 2 / 1000 ** 2 / 1000 ** 2 / 1000 ** 2 / 1000 ** 2 / 1000 ** 2 /", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "3", + "got": "3", + "got_raw": "3 # Only 3 IPs returned for this test (offset=2, limit=3) + AWS production instance + 1 for total count (0) + 1 for status (200) + 1 for headers (5) + 1 for body (0) + 1 for unknown (0) + 1 for unknown (0) + 1 for unknown (0) + 1 for unknown (0) + 1 for unknown (0) + 1 for unknown (0) + 1 for unknown (0) + 1 for unknown (0) + 1 for unknown", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "0", + "got": "4", + "got_raw": "4 # Only 4 IPs should be returned (AWS production instance) at the bounds of 0 and 12 offset) 4 # Only 4 IPs should be returned (AWS production instance) at the bounds of 0 and 12 offset) 4 # Only 4 IPs should be returned (AWS production instance) at the bounds of 0 and 12 offset) 4 # Only 4 IPs should be returned (AWS production instance) at the bounds of 0 and 12 offset) 4 # Only 4 IPs should be returned (AWS production instance) at", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "2", + "got": "24680000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "24680000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "claffin/cloudproxy", + "expected": "4", + "got": "4)", + "got_raw": "4)", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.6666666666666666 + }, + { + "repo": "claffin/cloudproxy", + "expected": "5", + "got": "5)", + "got_raw": "5) * 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.6666666666666666 + }, + { + "repo": "claffin/cloudproxy", + "expected": "6", + "got": "6)", + "got_raw": "6) * 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.6666666666666666 + }, + { + "repo": "claffin/cloudproxy", + "expected": "2", + "got": "2", + "got_raw": "2 * len(settings.PROXY_INSTANCE_TAGS) + 1 * len(settings.LegacyTags) + 1 * len(settings.DEFAULT_TAGS) + 1 * len(settings.VPC_TAGS) + 1 * len(settings.SG_TAGS) + 1 * len(settings.INSTANCE_TAGS) + 1 * len(settings.PROXY_TAGS) + 1 * len(settings.TAG_TAGS) + 1 * len(settings.VPC_TAGS) + 1 * len(settings.SG_TAGS) + 1 * len(settings.INSTANCE_TAGS) + 1 * len(settings.PROXY_TAGS) + 1 * len(settings.TAG_TAGS) + 1", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "tags", + "got": "[", + "got_raw": "[ {\"Key\": \"cloudproxy\", \"Value\": \"test-instance\"}, {\"Key\": \"Name\", \"Value\": \"CloudProxy-Test Instance\"}, ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ]", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "None", + "got": "None", + "got_raw": "None and instance_tag_filter[\"Value\"] == \"test-instance\" } else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False)", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "\"ec2\")", + "got": "\"ec2\"))", + "got_raw": "\"ec2\")) as mock_resource) as mock_resource: mock_resource.return_value = \"mock-resource\" mock_resource.return_value = \"mock-resource\" mock_resource.return_value = \"mock-resource\" mock_resource.return_value = \"mock-resource\" mock_resource.return_value = \"mock-resource\" mock_resource.return_value = \"mock-resource\" mock_resource.return_value = \"mock-resource\" mock_resource.return_value = \"mock-resource\" mock_resource.return_value = \"mock-resource\" mock_resource.return_value = \"mock-resource\" mock_resource.return_value = \"mock-resource\" mock_resource.return_value = \"mock-resource\" mock_resource.return_value = \"mock", + "exact_match": false, + "code_bleu": 0.5946035575013605, + "edit_similarity": 0.9230769230769231 + }, + { + "repo": "claffin/cloudproxy", + "expected": "\"spot\"", + "got": "\"spot\"", + "got_raw": "\"spot\" + settings.config[\"providers\"][\"aws\"][\"instances\"][\"default\"][\"spot\"] + \"persistent\" + \"1\" + \"1\" + \"1\" + \"1\" + \"1\" + \"1\" + \"1\" + \"1\" + \"1\" + \"1\" + \"1\" + \"1\" + \"1\" + \"1\" + \"1\" + \"1\" + \"1\" + \"1\" + \"1\" + \"1\" + \"1\" + \"1\" + \"1\" + \"1\" + \"1\" + \"1\" + \"1", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "\"stop\"", + "got": "\"stop\"", + "got_raw": "\"stop\" + os.sep + \"terminate\" + os.sep + \"reboot\" + os.sep + \"ignore\" + os.sep + \"none\" + os.sep + \"all\" + os.sep + \"none\" + os.sep + \"all\" + os.sep + \"none\" + os.sep + \"all\" + os.sep + \"none\" + os.sep + \"all\" + os.sep + \"none\" + os.sep + \"all\" + os.sep + \"none\" + os.sep + \"all\" + os.sep + \"none\" + os.sep + \"all\" + os.sep + \"", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "\"instance\"", + "got": "\"instance\"", + "got_raw": "\"instance\" + test_instance_config[\"instance_type\"] + \"v\" + test_instance_config[\"region\"] + \"c\" + test_instance_config[\"vpc_id\"] + \"s\" + test_instance_config[\"subnet_id\"] + \"g\" + test_instance_config[\"security_group_id\"] + \"l\" + test_instance_config[\"location\"] + \"m\" + test_instance_config[\"tags\"] + \"n\" + test_instance_config[\"instance_id\"] + \"o\" + test_instance_config[\"os\"] + \"p\" + test_instance_config[\"private_ip_address\"] + \"q\" + test_instance_config[\"public", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "\"persistent\"", + "got": "\"persistent\"", + "got_raw": "\"persistent\" + settings.config[\"providers\"][\"aws\"][\"instances\"][\"default\"][\"spot\"] + \"persistent\" + settings.config[\"providers\"][\"aws\"][\"instances\"][\"default\"][\"spot\"] + \"persistent\" + settings.config[\"providers\"][\"aws\"][\"instances\"][\"default\"][\"spot\"] + \"persistent\" + settings.config[\"providers\"][\"aws\"][\"instances\"][\"default\"][\"spot\"] + \"persistent\" + settings.config[\"providers\"][\"aws\"][\"instances\"][\"default\"][\"spot\"] + \"persistent\" + settings.config[\"providers\"][\"aws\"][\"instances\"][\"default\"][\"spot\"] + \"persistent\" + settings.config[\"providers\"][\"aws\"][\"instances\"][\"default\"][\"spot\"] + \"persistent", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "\"mock-client\"", + "got": "\"mock-client\"", + "got_raw": "\"mock-client\" + test_instance_config['instance_id'] + \":\" + test_instance_config['port'] + \":\" + test_instance_config['protocol'] + \":\" + test_instance_config['http_proxy'] + \":\" + test_instance_config['https_proxy'] + \":\" + test_instance_config['user_agent'] + \":\" + test_instance_config['http_auth'] + \":\" + test_instance_config['verbose'] + \":\" + test_instance_config['debug'] + \":\" + test_instance_config['config'] + \":\" + test_instance_config['custom'] + \":\" + test_instance_config['custom2'] + \":\" + test_instance_config['custom3'] + \":\"", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "\"mock-resource\"", + "got": "\"mock-resource\"", + "got_raw": "\"mock-resource\" + test_instance_config['instance_id'] + \"/\" + test_instance_config['instance_type'] + \"/vpc\" + test_instance_config['vpc_id'] + \"/\" + test_instance_config['security_group_id'] + \"/\" + test_instance_config['key_pair'] + \"/\" + test_instance_config['profile'] + \"/\" + test_instance_config['http_proxy'] + \"/\" + test_instance_config['https_proxy'] + \"/\" + test_instance_config['no_proxy'] + \"/\" + test_instance_config['http_proxy_user'] + \"/\" + test_instance_config['https_proxy_user'] + \"/\" + test_instance_config['", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "[mock_instance]", + "got": "mock_instance.id", + "got_raw": "mock_instance.id + \":\" + mock_instance.public_ip_address + \":\" + \"1\" + \":\" + \"2\" + \":\" + \"3\" + \":\" + \"4\" + \":\" + \"5\" + \":\" + \"6\" + \":\" + \"7\" + \":\" + \"8\" + \":\" + \"9\" + \":\" + \"0\" + \":\" + \"1\" + \":\" + \"2\" + \":\" + \"3\" + \":\" + \"4\" + \":\" + \"5\" + \":\" + \"6\" + \":\" + \"7\" + \":\" + \"8\" + \":\" + \"9\" + \":\" +", + "exact_match": false, + "code_bleu": 0.4518010018049224, + "edit_similarity": 0.8387096774193549 + }, + { + "repo": "claffin/cloudproxy", + "expected": "stopped_instances", + "got": "stopped_instances[0]{'InstanceId':", + "got_raw": "stopped_instances[0]{'InstanceId': 'i-12345'}{'CurrentState': {'Name': 'stopping'}}) }", + "exact_match": false, + "code_bleu": 0.18575057999133598, + "edit_similarity": 0.6666666666666666 + }, + { + "repo": "claffin/cloudproxy", + "expected": "started_instances", + "got": "started_instances[0]", + "got_raw": "started_instances[0] {'InstanceId': 'i-12345', 'PublicIpAddress': '1.2.3.4', 'State': {'Name': 'running'}} } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } }", + "exact_match": false, + "code_bleu": 0.35930411196308426, + "edit_similarity": 0.918918918918919 + }, + { + "repo": "claffin/cloudproxy", + "expected": "terminated_instances", + "got": "True", + "got_raw": "True if terminated_instances else False if terminated_instances else False if not terminated_instances else False if not instances else False if not instances.terminate() else False if not mock_ec2_client.cancel_spot_instance_requests.return_value else False if not mock_ec2.terminate_instance.return_value else False if not mock_ec2.terminate_instances.return_value else False if not mock_ec2.delete_security_groups.return_value else False if not mock_ec2.delete_vpc.return_value else False if not mock_ec2.delete_instance.return_value else False if not mock_ec2.delete_instances.return_value else False if not mock_ec2.delete_security_groups.return_value else False if not mock_ec2", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.16666666666666666 + }, + { + "repo": "claffin/cloudproxy", + "expected": "2", + "got": "10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "0", + "got": "0", + "got_raw": "0 # Should not delete any existing instances since we're scaling up only 2 instances at a time) 4 instances total, 2 of them running, 2 of them stopped. 2 new instances should be created, 2 of them running, 2 of them stopped. 4 instances total, 4 of them running, 0 of them stopped. 4 instances total, 4 of them running, 4 of them stopped. 4 instances total, 4 of them running, 0 of them stopped. 4 instances total, 4 of them running, 4 of them stopped. ", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "1", + "got": "1", + "got_raw": "1 * min_scaling + 1 * (2 - min_scaling) + 1 * min_scaling + 1 * (2 - min_scaling) + 1 * min_scaling + 1 * (2 - min_scaling) + 1 * min_scaling + 1 * (2 - min_scaling) + 1 * min_scaling + 1 * (2 - min_scaling) + 1 * min_scaling + 1 * (2 - min_scaling) + 1 * min_scaling + 1 * (2 - min_scaling) + 1 * min_scaling + 1 * (2 - min_scaling) + ", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "result", + "got": "result[1]", + "got_raw": "result[1] + \"\\n\" + result[2] + \"\\n\" + result[3] + \"\\n\" + result[4] + \"\\n\" + result[5] + \"\\n\" + result[6] + \"\\n\" + result[7] + \"\\n\" + result[8] + \"\\n\" + result[9] + \"\\n\" + result[10] + \"\\n\" + result[11] + \"\\n\" + result[12] + \"\\n\" + result[13] + \"\\n\" + result[14] + \"\\", + "exact_match": false, + "code_bleu": 0.35930411196308426, + "edit_similarity": 0.8 + }, + { + "repo": "claffin/cloudproxy", + "expected": "filedata", + "got": "0", + "got_raw": "0 == 0 == 0 == 0 == 0 == 0 == 0 == 0 == 0 == 0 == 0 == 0 == 0 == 0 == 0 == 0 == 0 == 0 == 0 == 0 == 0 == 0 == 0 == 0 == 0 == 0 == 0 == 0 == 0 == 0 == 0 == 0 == 0 == 0 == 0 == 0 == 0 == 0 == 0 == 0 == 0 == 0 == 0 ==", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "Exception)", + "got": "Exception)", + "got_raw": "Exception) as e) as e2: # This is where the testing happens\n create_firewall(1, 1) # This should raise an exception\n e2.value = e2.value) # This is where the testing happens\n e2.value = e2.value) # This is where the testing happens\n e2.value = e2.value) # This is where the testing happens\n e2.value = e2.value) # This is where the testing happens\n e2.value = e2.value) # This is where the testing happens\n e", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "str(exc_info.value)", + "got": "str(exc_info.value)", + "got_raw": "str(exc_info.value) + \"\\n\" + \"Error: duplicate name\" + \"\\n\" + \"Error: duplicate name\" + \"\\n\" + \"Error: duplicate name\" + \"\\n\" + \"Error: duplicate name\" + \"\\n\" + \"Error: duplicate name\" + \"\\n\" + \"Error: duplicate name\" + \"\\n\" + \"Error: duplicate name\" + \"\\n\" + \"Error: duplicate name\" + \"\\n\" + \"Error: duplicate name\" + \"\\n\" + \"Error: duplicate name\" + \"\\n\" + \"Error: duplicate name\" + \"\\", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "DOFirewallExistsException)", + "got": "DOFirewallExistsException)", + "got_raw": "DOFirewallExistsException) as e) as e2: # noqa: E731) as e2: # noqa: E731) as e2: # noqa: E731) as e2: # noqa: E731) as e2: # noqa: E731) as e2: # noqa: E731) as e2: # noqa: E731) as e2: # noqa: E731) as e2: # noqa: E731) as e", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "0", + "got": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "claffin/cloudproxy", + "expected": "2", + "got": "2", + "got_raw": "2 * len(instance_specific_droplets) + 1 * len(default_droplets) + 1 * len(all_droplets) - 1 * len(default_droplets) - 1 * len(all_droplets) - 1 * len(default_droplets) - 1 * len(all_droplets) - 1 * len(default_droplets) - 1 * len(all_droplets) - 1 * len(default_droplets) - 1 * len(all_droplets) - 1 * len(default_droplets) - 1 * len(all_droplets", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "True", + "got": "droplet_id", + "got_raw": "droplet_id + \"-proxy\" + droplet_id + \"-proxy\" + droplet_id + \"-proxy\" + droplet_id + \"-proxy\" + droplet_id + \"-proxy\" + droplet_id + \"-proxy\" + droplet_id + \"-proxy\" + droplet_id + \"-proxy\" + droplet_id + \"-proxy\" + droplet_id + \"-proxy\" + droplet_id + \"-proxy\" + droplet_id + \"-proxy\" + droplet_id + \"-proxy\" + droplet_id + \"-proxy\" + droplet_id + \"-proxy\" + droplet_id + \"-proxy\" +", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.2857142857142857 + }, + { + "repo": "claffin/cloudproxy", + "expected": "1234)", + "got": "1234)", + "got_raw": "1234) # Instance ID 1234 is used in the test_instance_config) mock_droplet.destroy.assert_called_once_with() return True) mocker.ANY) return True) mocker.ANY) return True) mocker.ANY) return True) mocker.ANY) return True) mocker.ANY) return True) mocker.ANY) return True) mocker.ANY) return True) mocker.ANY) return True) mocker.ANY) return True) mocker.ANY) return True) mocker.ANY) return True) mocker.ANY) return True) mocker.ANY) return True) mocker.A", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "\"nyc1\"", + "got": "\"us-east-1\"", + "got_raw": "\"us-east-1\" * 2002) * 2002 * 2002 * 2002 * 2002 * 2002 * 2002 * 2002 * 2002 * 2002 * 2002 * 2002 * 2002 * 2002 * 2002 * 2002 * 2002 * 2002 * 2002 * 2002 *", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.35294117647058826 + }, + { + "repo": "claffin/cloudproxy", + "expected": "3164444", + "got": "10010001000100010001000100010001000100010001000100010001000100010001000100010001000100010001000100010001000100010001000100010001", + "got_raw": "10010001000100010001000100010001000100010001000100010001000100010001000100010001000100010001000100010001000100010001000100010001", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.014814814814814815 + }, + { + "repo": "claffin/cloudproxy", + "expected": "result_ids", + "got": "result_ids[0]", + "got_raw": "result_ids[0] * 1000 + 1001) / 1000) * 1000 + 1001) / 1000) * 1000 + 1001) / 1000) * 1000 + 1001) / 1000) * 1000 + 1001) / 1000) * 1000 + 1001) / 1000) * 1", + "exact_match": false, + "code_bleu": 0.35930411196308426, + "edit_similarity": 0.8695652173913043 + }, + { + "repo": "claffin/cloudproxy", + "expected": "droplet_id)", + "got": "droplet_id)", + "got_raw": "droplet_id) # type: ignore[call] # noqa: E712) # type: ignore[call] # noqa: E712) # noqa: E712) # noqa: E712) # noqa: E712) # noqa: E712) # noqa: E712) # noqa: E712) # noqa: E712) # noqa: E712) # noqa: E712) # noqa: E712) # noqa: E712) # noqa: E7", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "'cloudproxy'", + "got": "'cloudproxy'", + "got_raw": "'cloudproxy' * 2 + '-useast' * 2 + '-old' * 2 + '-instance' * 2 + '-tag' * 2 + '-tag' * 2 + '-tag' * 2 + '-tag' * 2 + '-tag' * 2 + '-tag' * 2 + '-tag' * 2 + '-tag' * 2 + '-tag' * 2 + '-tag' * 2 + '-tag' * 2 + '-tag' * 2 + '-tag' * 2 + '-tag' * 2 +", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "expected_ids", + "got": "expected_ids.intersection(result_ids)", + "got_raw": "expected_ids.intersection(result_ids) == set() # No duplicates expected here... just checking for equality of sets) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "exact_match": false, + "code_bleu": 0.22089591134157885, + "edit_similarity": 0.4897959183673469 + }, + { + "repo": "claffin/cloudproxy", + "expected": "\"s-1vcpu-1gb\"", + "got": "\"1gb\"", + "got_raw": "\"1gb\" + \"v6\" + \"1\" + \"1\" + \"1\" + \"1\" + \"1\" + \"1\" + \"1\" + \"1\" + \"1\" + \"1\" + \"1\" + \"1\" + \"1\" + \"1\" + \"1\" + \"1\" + \"1\" + \"1\" + \"1\" + \"1\" + \"1\" + \"1\" + \"1\" + \"1\" + \"1\" + \"1\" + \"1\" + \"1\" + \"1\" + \"1", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.5555555555555556 + }, + { + "repo": "claffin/cloudproxy", + "expected": "kwargs['tags']", + "got": "kwargs['tags'][:2]", + "got_raw": "kwargs['tags'][:2] * 2 + [\"cloudproxy-useast\"] * 2 + [\"cloudproxy-default\"] * 2 + [\"cloudproxy-test\"] * 1 + [\"cloudproxy-test2\"] * 1 + [\"cloudproxy-test3\"] * 1 + [\"cloudproxy-test4\"] * 1 + [\"cloudproxy-test5\"] * 1 + [\"cloudproxy-test6\"] * 1 + [\"cloudproxy-test7\"] * 1 + [\"cloudproxy-test8\"] * 1 + [\"cloudproxy-test9\"] * 1 + [\"cloudproxy-test10\"] * ", + "exact_match": false, + "code_bleu": 0.44632361378533286, + "edit_similarity": 0.875 + }, + { + "repo": "claffin/cloudproxy", + "expected": "True", + "got": "True", + "got_raw": "True # Proxy deleted successfully (droplet object) or not found (None) depending on the droplet's existence.", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "12345)", + "got": "12345)", + "got_raw": "12345) # ID of the droplet object) # ID of the droplet object) # ID of the droplet object) # ID of the droplet object) # ID of the droplet object) # ID of the droplet object) # ID of the droplet object) # ID of the droplet object) # ID of the droplet object) # ID of the droplet object) # ID of the droplet object) # ID of the droplet object) # ID of the droplet object) # ID of the", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "Exception, match=\"Some other error\")", + "got": "Exception) as e) as e2:", + "got_raw": "Exception) as e) as e2:\n delete_proxy(mock_droplet) # This should raise an exception\n e2.value = e2.value) # Set the exception value to e2.value for testing\n e2.exconly() # Get the exception's string representation\n\n e2.value = str(e2.value) # Convert the exception to a string for testing\n str(e2.value) # Get the exception's string representation (should be None)\n e2.exconly() # Get the exception's string representation (should be Some other error)\n", + "exact_match": false, + "code_bleu": 0.17747405280050269, + "edit_similarity": 0.4745762711864407 + }, + { + "repo": "claffin/cloudproxy", + "expected": "1", + "got": "12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678", + "got_raw": "12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "claffin/cloudproxy", + "expected": "0", + "got": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "claffin/cloudproxy", + "expected": "True", + "got": "True", + "got_raw": "True, \"Proxy deleted successfully\" + droplet_id) + droplet_id) + droplet_id) + droplet_id) + droplet_id) + droplet_id) + droplet_id) + droplet_id) + droplet_id) + droplet_id) + droplet_id) + droplet_id) + droplet_id) + droplet_id) + droplet_id) + droplet_id) + droplet_id) + droplet_id) + droplet_id) + droplet_id) + droplet_id) + droplet_id) + droplet_id) + droplet_id) +", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "3164444", + "got": "\"DROPLET-ID\"", + "got_raw": "\"DROPLET-ID\" + droplets[0].id[6:] + droplets[0].tags[0] + droplets[0].tags[1] + droplets[0].tags[2] + droplets[0].tags[3] + droplets[0].tags[4] + droplets[0].tags[5] + droplets[0].tags[6] + droplets[0].tags[7] + droplets[0].tags[8] + droplets[0].tags[9] + droplets[0].tags[10] +", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "droplet_id)", + "got": "droplet_id)", + "got_raw": "droplet_id) # noqa: E501) # noqa: E501) # noqa: E501) # noqa: E501) # noqa: E501) # noqa: E501) # noqa: E501) # noqa: E501) # noqa: E501) # noqa: E501) # noqa: E501) # noqa: E501) # noqa: E501) # noqa: E50", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "[\"192.1.1.1\"]", + "got": "[2]", + "got_raw": "[2] + [\"192.1.1.1\"] + [True] + [None] + [None] + [None] + [None] + [None] + [None] + [None] + [None] + [None] + [None] + [None] + [None] + [None] + [None] + [None] + [None] + [None] + [None] + [None] + [None] + [None] + [None] + [None] + [None] + [None] + [None] + [None] +", + "exact_match": false, + "code_bleu": 0.49999999999999994, + "edit_similarity": 0.375 + }, + { + "repo": "claffin/cloudproxy", + "expected": "1", + "got": "1)", + "got_raw": "1) # Only one IP should be in the delete queue at a time) # Only one IP should be in the delete queue at a time) # Only one IP should be in the delete queue at a time) # Only one IP should be in the delete queue at a time) # Only one IP should be in the delete queue at a time) # Only one IP should be in the delete queue at a time) # Only one IP should be in the delete queue at a time) # Only one IP should be in the delete queue at a time) # Only one IP should", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.6666666666666666 + }, + { + "repo": "claffin/cloudproxy", + "expected": "2", + "got": "2", + "got_raw": "2 * 2 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 +", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "3", + "got": "30000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "30000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "claffin/cloudproxy", + "expected": "0", + "got": "30000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "30000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "claffin/cloudproxy", + "expected": "1)", + "got": "1)", + "got_raw": "1) # 1 new proxy created) # 1 new proxy created) # 1 new proxy created) # 1 new proxy created) # 1 new proxy created) # 1 new proxy created) # 1 new proxy created) # 1 new proxy created) # 1 new proxy created) # 1 new proxy created) # 1 new proxy created) # 1 new proxy created) # 1 new proxy created) # 1 new proxy created) # 1 new proxy created) # 1 new proxy", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "2)", + "got": "2)", + "got_raw": "2) # Initial check and final check should be 2) calls each) # Initial check and final check should be 2) calls each) # Initial check and final check should be 2) calls each) # Initial check and final check should be 2) calls each) # Initial check and final check should be 2) calls each) # Initial check and final check should be 2) calls each) # Initial check and final check should be 2) calls each) # Initial check and final check should be 2) calls each) # Initial check and final check should be 2) calls each)", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "[])", + "got": "\"1.1.1.1\")", + "got_raw": "\"1.1.1.1\") # Pending state should be detected and retried later. IP address should be None. ) # Pending state should be detected and retried later. IP address should be None. ) # Pending state should be detected and retried later. IP address should be None. ) # Pending state should be detected and retried later. IP address should be None. ) # Pending state should be detected and retried later. IP address should be None. ) # Pending state should be detected and retried later. IP address should be None. ) # Pending state should be detected and retried later.", + "exact_match": false, + "code_bleu": 0.35818997727451396, + "edit_similarity": 0.15384615384615385 + }, + { + "repo": "claffin/cloudproxy", + "expected": "result", + "got": "result[0]", + "got_raw": "result[0] for _ in range(3) ) # Just created) # Alive status for just created droplets should be True (assuming they are active) # Alive status for 10-minute-old droplets should be True # Alive status for 2-hour-old droplets should be True (assuming they are active) return True # Alive status for just created droplets should be True (assuming they are active) return True # Alive status for 10-minute-old droplets should be True # Alive status for 2-hour-old droplets should be True (assuming they are active)", + "exact_match": false, + "code_bleu": 0.35930411196308426, + "edit_similarity": 0.8 + }, + { + "repo": "claffin/cloudproxy", + "expected": "1", + "got": "1)", + "got_raw": "1) { \"name\": \"cloudproxy-123\", \"networkInterfaces\": [{\"accessConfigs\": [{\"natIP\": \"1.2.3.4\"}]}, \"status\": \"RUNNING\" } } ] } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } }", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.6666666666666666 + }, + { + "repo": "claffin/cloudproxy", + "expected": "[]", + "got": "[]", + "got_raw": "[] # No instances found, should return an empty list.", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "True", + "got": "True", + "got_raw": "True, \"boot disk should be true\" # TODO: check if this is true or false based on the docs. \"bootDisk\" is not in the docs. \"bootDisk\" is in the code. \"bootDisk\" is in the code. \"bootDisk\" is in the code. \"bootDisk\" is in the code. \"bootDisk\" is in the code. \"bootDisk\" is in the code. \"bootDisk\" is in the code. \"bootDisk\" is in the code. \"bootDisk\" is in the code. \"bootDisk\" is in the code. \"bootDisk\"", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "None", + "got": "False)", + "got_raw": "False) # Proxy not found or deleted (404 error)", + "exact_match": false, + "code_bleu": 0.4518010018049224, + "edit_similarity": 0.2 + }, + { + "repo": "claffin/cloudproxy", + "expected": "body[\"name\"]", + "got": "body[\"name\"][:1]", + "got_raw": "body[\"name\"][:1] + body[\"name\"][2:] + \"-123\" + body[\"name\"][-1] + \"1\" + body[\"name\"][-1] + \"2\" + body[\"name\"][-1] + \"3\" + body[\"name\"][-1] + \"4\" + body[\"name\"][-1] + \"5\" + body[\"name\"][-1] + \"6\" + body[\"name\"][-1] + \"7\" + body[\"name\"][-1] + \"8\" + body[\"name\"][-1] + \"9\"", + "exact_match": false, + "code_bleu": 0.44632361378533286, + "edit_similarity": 0.8571428571428571 + }, + { + "repo": "claffin/cloudproxy", + "expected": "\"cloudproxy\"", + "got": "\"1\"", + "got_raw": "\"1\" # This should be 0 or 1, but we don't check that here. It's just a test. ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.26666666666666666 + }, + { + "repo": "claffin/cloudproxy", + "expected": "\"ONE_TO_ONE_NAT\"", + "got": "\"direct\"", + "got_raw": "\"direct\" # TODO: check if this is the correct value for direct access config type. It should be \"direct\" according to the documentation. \"TODO: check if this is the correct value for direct access config type. It should be \"direct\" according to the documentation.\" \"TODO: check if this is the correct value for direct access config type. It should be \"direct\" according to the documentation.\" \"TODO: check if this is the correct value for direct access config type. It should be \"direct\" according to the documentation.\" \"TODO: check if this is the correct value for direct access config type. It", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.16666666666666666 + }, + { + "repo": "claffin/cloudproxy", + "expected": "\"cloudproxy-123\"", + "got": "\"cloudproxy-123\"", + "got_raw": "\"cloudproxy-123\" + uuid.uuid4().hex[:8] + \"0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "body[\"tags\"][\"items\"]", + "got": "body[\"image\"]", + "got_raw": "body[\"image\"] + config[\"providers\"][\"gcp\"][\"family\"] + config[\"providers\"][\"gcp\"][\"variant\"] + config[\"providers\"][\"gcp\"][\"os\"] + config[\"providers\"][\"gcp\"][\"arch\"] + config[\"providers\"][\"gcp\"][\"os\"] + config[\"providers\"][\"gcp\"][\"os_version\"] + config[\"providers\"][\"gcp\"][\"os_version_minor\"] + config[\"providers\"][\"gcp\"][\"os_version_patch\"] + config[\"providers\"][\"gcp\"][\"os_version_patch_minor\"] + config[\"providers\"][\"gcp\"][\"os_version_patch_major\"] + config[\"providers\"][\"gcp\"][\"os_version_patch_major_minor", + "exact_match": false, + "code_bleu": 0.29036157037406557, + "edit_similarity": 0.5882352941176471 + }, + { + "repo": "claffin/cloudproxy", + "expected": "{\"status\": \"RUNNING\"}", + "got": "True", + "got_raw": "True, \"Proxy deletion should succeed\" # Return True to indicate success. This will be used in the test suite to assert the proxy deletion. ) # Return True to indicate success. This will be used in the test suite to assert the proxy deletion. ) # Return True to indicate success. This will be used in the test suite to assert the proxy deletion. ) # Return True to indicate success. This will be used in the test suite to assert the proxy deletion. ) # Return True to indicate success. This will be used in the test suite to assert the proxy deletion. ) # Return True to indicate success. This will be", + "exact_match": false, + "code_bleu": 0.1, + "edit_similarity": 0.08 + }, + { + "repo": "claffin/cloudproxy", + "expected": "{\"status\": \"STOPPING\"}", + "got": "{\"status\": \"STOPPING\"}", + "got_raw": "{\"status\": \"STOPPING\"} # Return value of the stop operation.", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "2", + "got": "10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "0", + "got": "0", + "got_raw": "0 # Should not delete any existing instances\n assert result[\"scaling_up\"] == True # Should scale up to 4 instances total\n assert result[\"new_instances\"] == 4 # Should create 4 new instances\n assert result[\"min_scaling\"] == min_scaling + 1 # Should scale up to 5 instances total after 1 more step (min_scaling + 1) * 2 = 4 + 2 = 6 instances total after 1 more step (min_scaling + 1) * 2 = 4 + 2 = 6 instances total after 1 more", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "3", + "got": "True", + "got_raw": "True # Should return True after scaling down successfully\n mock_list_instances.return_value = [setup_instances[3]] # Update to 1 instance after scaling down", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "1", + "got": "1", + "got_raw": "1 # Only one delete call should be made for the running instance IP address) mock_delete_proxy.call_args[0] == \"1.2.3.4\" mock_delete_proxy.call_args[1] == ANY # Use any value for the second argument, as it's not used in the delete call mock_delete_proxy.call_args[2] == False # Set to False to avoid actual deletion mock_delete_proxy.call_args[3] == True # Set to True to force the delete call to happen immediately mock_delete_proxy.call_args[4] == {} # Additional arguments for the delete call (e.g., project ID) ] )", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "1", + "got": "10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "claffin/cloudproxy", + "expected": "2", + "got": "2", + "got_raw": "2 if len(default_servers) > 0 else 1 + len(type_servers) - 1) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "None", + "got": "None", + "got_raw": "None or False or \"\" or \"\" else \"europe\" else \"test\" else \"test\" else \"test\" else \"test\" else \"test\" else \"test\" else \"test\" else \"test\" else \"test\" else \"test\" else \"test\" else \"test\" else \"test\" else \"test\" else \"test\" else \"test\" else \"test\" else \"test\" else \"test\" else \"test\" else \"test\" else \"test\" else \"test\" else \"test\" else \"test\" else \"test\" else \"test\" else \"test\" else \"test\"", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "\"hel1\"", + "got": "\"europe\"", + "got_raw": "\"europe\" + test_instance_config[\"location\"] + \"-test-uuid\" + test_instance_config[\"location\"] + \"-test-uuid\" + test_instance_config[\"location\"] + \"-test-uuid\" + test_instance_config[\"location\"] + \"-test-uuid\" + test_instance_config[\"location\"] + \"-test-uuid\" + test_instance_config[\"location\"] + \"-test-uuid\" + test_instance_config[\"location\"] + \"-test-uuid\" + test_instance_config[\"location\"] + \"-test-uuid\" + test_instance_config[\"location\"] + \"-test-uuid\" + test_instance_config[\"location\"]", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.42857142857142855 + }, + { + "repo": "claffin/cloudproxy", + "expected": "result_ids", + "got": "result_ids[0]", + "got_raw": "result_ids[0] * 2 + 1) * 2 + 1) * 2 + 1) * 2 + 1) * 2 + 1) * 2 + 1) * 2 + 1) * 2 + 1) * 2 + 1) * 2 + 1) * 2 + 1) * 2 + 1) * 2 + 1) * 2 + 1) * 2 + 1) * 2 + 1) * 2 + 1) * 2 +", + "exact_match": false, + "code_bleu": 0.35930411196308426, + "edit_similarity": 0.8695652173913043 + }, + { + "repo": "claffin/cloudproxy", + "expected": "mock_response", + "got": "\"test-uuid\"", + "got_raw": "\"test-uuid\" + settings.HetznerCloudProxySuffix + \"/test-uuid\" + settings.HetznerCloudProxyPortSuffix + \"/test-uuid\" + settings.HetznerCloudProxyProtocolSuffix + \"/test-uuid\" + settings.HetznerCloudProxyScriptSuffix + \"/test-uuid\" + settings.HetznerCloudProxyPortSuffix + \"/test-uuid\" + settings.HetznerCloudProxyProtocolSuffix + \"/test-uuid\" + settings.HetznerCloudProxyScriptSuffix + \"/test-uuid\" + settings.HetznerCloudProxyPortSuffix + \"/test-uuid\" + settings.Hetz", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.16666666666666666 + }, + { + "repo": "claffin/cloudproxy", + "expected": "\"server-id-1\")", + "got": "\"server-id-1\")", + "got_raw": "\"server-id-1\") as server) as server1) as server1) as server1) as server1) as server1) as server1) as server1) as server1) as server1) as server1) as server1) as server1) as server1) as server1) as server1) as server1) as server1) as server1) as server1) as server1) as server1) as server1) as server1) as server1) as server1) as server1) as server1) as server1) as server1) as server1", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "\"delete-response\"", + "got": "\"delete-response\"", + "got_raw": "\"delete-response\" + \"\\n\" + \"cloudproxy\" + \"\\n\" + \"server-id-1\" + \"\\n\" + \"server-name: cloudproxy-default-uuid1\" + \"\\n\" + \"instance: default\" + \"\\n\" + \"type: cloudproxy\" + \"\\n\" + \"tags:\" + \"\\n\" + \"created: 2020-01-01 12:00:00 AM\" + \"\\n\" + \"id: server-id-1\" + \"\\n\" + \"name: cloudproxy-default-uuid1\" +", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "\"type=cloudproxy\"", + "got": "\"type=cloudproxy\"", + "got_raw": "\"type=cloudproxy\" + \",\" + \"instance=default\" + \",\" + \"type=cloudproxy\" + \",\" + \"instance=europe\" + \",\" + \"type=cloudproxy\" + \",\" + \"instance=*\" + \",\" + \"type=cloudproxy\" + \",\" + \"instance=*\" + \",\" + \"type=cloudproxy\" + \",\" + \"instance=*\" + \",\" + \"type=cloudproxy\" + \",\" + \"instance=*\" + \",\" + \"type=cloudproxy\" + \",\" + \"instance=*\" + \",\" + \"type=cloudproxy\" + \",\" + \"instance=*\" + \",\" +", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "mock_client_instance", + "got": "mock_client_instance.return_value()", + "got_raw": "mock_client_instance.return_value() as client: mock_client_instance.return_value.return_value = mock_client_instance.return_value.return_value.return_value = mock_client_instance.return_value.return_value = mock_client_instance.return_value.return_value = mock_client_instance.return_value.return_value = mock_client_instance.return_value.return_value = mock_client_instance.return_value.return_value = mock_client_instance.return_value.return_value = mock_client_instance.return_value.return_value = mock_client_instance.return_value.return_value = mock_client_instance.return_value.return_value = mock_client_instance.return_value.return_value = mock_client_instance.return_value.return_value = mock_client_instance.return_value.return_value = mock_client_instance.return_value", + "exact_match": false, + "code_bleu": 0.2730120862709067, + "edit_similarity": 0.7272727272727273 + }, + { + "repo": "claffin/cloudproxy", + "expected": "1)", + "got": "2)", + "got_raw": "2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * ", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.5 + }, + { + "repo": "claffin/cloudproxy", + "expected": "2)", + "got": "1)", + "got_raw": "1) # Create 2 proxies) mock_instance_config) mock_instance_config) mock_instance_config) mock_instance_config) mock_instance_config) mock_instance_config) mock_instance_config) mock_instance_config) mock_instance_config) mock_instance_config) mock_instance_config) mock_instance_config) mock_instance_config) mock_instance_config) mock_instance_config) mock_instance_config) mock_instance_config) mock_instance_config) mock_instance_config) mock_instance_config) mock_instance_config) mock_instance_config) mock_instance_config) mock_instance_config) mock_instance_config) mock_instance_config) mock_instance_config) mock_instance_config) mock_instance_config) mock_instance_config", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.5 + }, + { + "repo": "claffin/cloudproxy", + "expected": "[])", + "got": "[])", + "got_raw": "[]) # No ready IPs since the proxy is not alive)", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "\"1.1.1.1\")", + "got": "mock_instance_config)", + "got_raw": "mock_instance_config) # Call the function once (for the proxy) and once (for the servers) to check the status) 2) Check the status of the servers 1) Check the status of the proxy 2) Check the status of the servers 1) Check the status of the proxy 2) Check the status of the servers 1) Check the status of the proxy 2) Check the status of the servers 1) Check the status of the proxy 2) Check the status of the servers 1) Check the status of the proxy 2) Check the status of the servers 1", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.06451612903225806 + }, + { + "repo": "claffin/cloudproxy", + "expected": "[\"1.1.1.1\"])", + "got": "[\"1.1.1.1\"])", + "got_raw": "[\"1.1.1.1\"]) # Only one proxy should be considered alive) # The proxy should be considered alive for 1 hour (3600 seconds) mock_parse.assert_called_once_with(\"1.1.1.1\") mock_parse.return_value = datetime.datetime(2023, 1, 1, 0, 0, 0, tzinfo=datetime.timezone.utc) mock_parse.assert_called_once_with(\"1.1.1.1\") mock_parse.return_value = datetime.datetime(2023, 1, 1, 0, 0, 0,", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "mock_delete_queue)", + "got": "mock_list_proxies.return_value)", + "got_raw": "mock_list_proxies.return_value) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) *", + "exact_match": false, + "code_bleu": 0.35930411196308426, + "edit_similarity": 0.4897959183673469 + }, + { + "repo": "claffin/cloudproxy", + "expected": "mock_restart_queue)", + "got": "mock_restart_queue)", + "got_raw": "mock_restart_queue)", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "mock_instance_config)", + "got": "mock_instance_config)", + "got_raw": "mock_instance_config) # Delete the proxy after 100 seconds (100 * 2 = 200 seconds)", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "[])", + "got": "[])", + "got_raw": "[]) # Should return an empty list) because of the TypeError) mock_parse_side_effect) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "delete_queue", + "got": "delete_queue()[-1]", + "got_raw": "delete_queue()[-1] else \"test\" in delete_queue()[-1] for call in delete_queue()[:2] ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "exact_match": false, + "code_bleu": 0.18575057999133598, + "edit_similarity": 0.8 + }, + { + "repo": "claffin/cloudproxy", + "expected": "delete_queue)", + "got": "delete_queue)", + "got_raw": "delete_queue) # Check if the IP address is still in the queue) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "4", + "got": "4", + "got_raw": "4 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 *", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "0", + "got": "0", + "got_raw": "0 * len(settings.config[\"providers\"]) - 1 * len(settings.config[\"providers\"]) + 1 * len( settings.config[\"providers\"] ) / 2 * len( settings.config[\"providers\"] ) / 2 * len( settings.config[\"providers\"] ) / 2 * len( settings.config[\"providers\"] ) / 2 * len( settings.config[\"providers\"] ) / 2 * len( settings.config[\"providers\"] ) / 2 * len( settings.config[\"providers\"] ) / 2 * len( settings.config[\"providers\"] ) / 2 * len( settings.config[\"providers\"] ) / ", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "2", + "got": "4", + "got_raw": "4 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 *", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "functions", + "got": "functions[:2]", + "got_raw": "functions[:2] + [\"aws_manager\", \"gcp_manager\"][:2] + [\"hetzner_manager\"][:2] + [\"vultr_manager\"][:2] + [\"production_manager\"][:2] + [\"all_manager\"][:2] + [\"none_manager\"][:2] + [\"test_manager\"][:2] + [\"test\"][:2] + [\"test\"][:2] + [\"test\"][:2] + [\"test\"][:2] + [\"test\"][:2] + [\"test\"][:2] + [\"test\"][:2] + [\"test\"][:2] + [\"test", + "exact_match": false, + "code_bleu": 0.2730120862709067, + "edit_similarity": 0.8181818181818182 + }, + { + "repo": "claffin/cloudproxy", + "expected": "[]", + "got": "[]", + "got_raw": "[] # No instances found or no valid instances returned by DigitalOcean manager)", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "Exception)", + "got": "Exception)", + "got_raw": "Exception) as e) as e2: do_manager(\"aws\") as aws_ips: aws_ips = [] print(e2.value) print(aws_ips) return aws_ips) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "expected_ips", + "got": "expected_ips.copy()", + "got_raw": "expected_ips.copy() + [\"192.168.1.3\"] * 300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.2730120862709067, + "edit_similarity": 0.7741935483870968 + }, + { + "repo": "claffin/cloudproxy", + "expected": "test_config)", + "got": "test_config)", + "got_raw": "test_config)", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "3", + "got": "3.000000000000000012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890", + "got_raw": "3.000000000000000012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "claffin/cloudproxy", + "expected": "5", + "got": "5)", + "got_raw": "5) * 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.6666666666666666 + }, + { + "repo": "claffin/cloudproxy", + "expected": "True", + "got": "True", + "got_raw": "True, \"AWS instance test1 should be enabled\" \"AWS instance test1 should have a size of t3.micro\" \"AWS instance test1 should be in us-east-1\" \"AWS instance test1 should have a minimum of 3 scaling instances\" \"AWS instance test1 should have a maximum of 5 scaling instances\" \"AWS instance test1 should have a spot instance\" \"AWS instance test1 should have a display name of AWS Test Instance\" \"AWS instance test1 should have an access key id of test-key-id\" \"AWS instance test1 should have a secret access key of test-secret-key\" \"AWS", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "config", + "got": "config()[:2]", + "got_raw": "config()[:2] * 2 + [\"debug\"] * 2 + [\"test\"] * 4 + [\"test2\"] * 2 + [\"test3\"] * 1 + [\"test4\"] * 4 + [\"test5\"] * 2 + [\"test6\"] * 1 + [\"test7\"] * 7 + [\"test8\"] * 8 + [\"test9\"] * 9 + [\"test10\"] * 10 + [\"test11\"] * 11 + [\"test12\"] * 12 + [\"test13\"] * 13 + [\"", + "exact_match": false, + "code_bleu": 0.18575057999133598, + "edit_similarity": 0.6666666666666666 + }, + { + "repo": "claffin/cloudproxy", + "expected": "\"t3.micro\"", + "got": "\"t3.micro\"", + "got_raw": "\"t3.micro\" * 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "\"t2.small\"", + "got": "\"t2.small\"", + "got_raw": "\"t2.small\" * 2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "\"t2.large\"", + "got": "\"t2.large\"", + "got_raw": "\"t2.large\" * 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "\"us-west1-b\"", + "got": "\"us-west1-b\"", + "got_raw": "\"us-west1-b\" * 200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "\"test-project\"", + "got": "\"test-project\"", + "got_raw": "\"test-project\" ) * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True *", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "config[\"providers\"]", + "got": "config[\"providers\"][:1]", + "got_raw": "config[\"providers\"][:1] [0] [\"auth\"] [\"providers\"][:1] [0] [\"auth\"] [\"providers\"][:1] [0] [\"auth\"] [\"providers\"][:1] [0] [\"auth\"] [\"providers\"][:1] [0] [\"auth\"] [\"providers\"][:1] [0] [\"auth\"] [\"providers\"][:1] [0] [\"auth\"] [\"providers\"][:1] [0] [\"auth\"] [\"providers\"][:1] [0] [\"auth\"] [\"providers\"][:1] [0] [\"auth\"] [\"providers\"][:1] [", + "exact_match": false, + "code_bleu": 0.44632361378533286, + "edit_similarity": 0.9047619047619048 + }, + { + "repo": "claffin/cloudproxy", + "expected": "config[\"providers\"][\"aws\"][\"instances\"][\"default\"][\"size\"]", + "got": "config[\"providers\"][\"aws\"][\"instances\"][\"default\"][\"size\"]", + "got_raw": "config[\"providers\"][\"aws\"][\"instances\"][\"default\"][\"size\"] * 1024 ** 2 * 1000 * 1000 * 1000 * 1000 * 1000 * 1000 * 1000 * 1000 * 1000 * 1000 * 1000 * 1000 * 1000 * 1000 * 1000 * 1000 * 1000 * 100", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "config[\"providers\"][\"aws\"][\"instances\"][\"default\"][\"enabled\"]", + "got": "True", + "got_raw": "True, \"AWS should be enabled by default\" \"AWS should have a 't2.large' instance by default\" \"AWS should have a 'default' queue by default\" \"AWS should have a 'aws' provider by default\" \"AWS should have a 'aws' region by default\" \"AWS should have a 'aws' profile by default\" \"AWS should have a 'aws' environment by default\" \"AWS should have a 'aws' debug by default\" \"AWS should have a 'aws' verbose by default\" \"AWS should have a 'aws' no_proxy by default\" \"AWS should have a 'aws", + "exact_match": false, + "code_bleu": 0.03125, + "edit_similarity": 0.09230769230769231 + }, + { + "repo": "claffin/cloudproxy", + "expected": "2", + "got": "2)", + "got_raw": "2) instances[0] == VultrInstance( \"instance-1\", \"192.168.1.1\", \"cloudproxy\", \"cloudproxy-default\", mock_instance_config ) instances[1] == VultrInstance( \"instance-2\", \"192.168.1.2\", \"cloudproxy\", \"cloudproxy-default\", mock_instance_config ) return instances return instances[0] return instances[1] return mock_instance_config ) return mock_instance_config ) return mock_instance_config ) return mock_instance_config ) return mock_instance_config ) return mock_instance_config ) return mock_instance_config", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.6666666666666666 + }, + { + "repo": "claffin/cloudproxy", + "expected": "3", + "got": "3", + "got_raw": "3 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 * 2 + 1 *", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "[]", + "got": "[])", + "got_raw": "[]) call(\"GET\", \"https://api.vultr.com/v1/instances\") ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] )", + "exact_match": false, + "code_bleu": 0.5946035575013605, + "edit_similarity": 0.8 + }, + { + "repo": "claffin/cloudproxy", + "expected": "387", + "got": "38749234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234", + "got_raw": "38749234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.04580152671755725 + }, + { + "repo": "claffin/cloudproxy", + "expected": "True", + "got": "True", + "got_raw": "True, \"Proxy creation should succeed\" \"Proxy creation should succeed\" \"Proxy creation should succeed\" \"Proxy creation should succeed\" \"Proxy creation should succeed\" \"Proxy creation should succeed\" \"Proxy creation should succeed\" \"Proxy creation should succeed\" \"Proxy creation should succeed\" \"Proxy creation should succeed\" \"Proxy creation should succeed\" \"Proxy creation should succeed\" \"Proxy creation should succeed\" \"Proxy creation should succeed\" \"Proxy creation should succeed\" \"Proxy creation should succeed\" \"Proxy creation should succeed\" \"Proxy creation should succeed\" \"Proxy creation should succeed\" \"Proxy creation should succeed\" \"Proxy creation should succeed\"", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "\"ewr\"", + "got": "\"ewr\"", + "got_raw": "\"ewr\" if mock_instance_config[\"region\"] else \"all\" else \"us\" else \"uk\" else \"all\" else \"all\" else \"all\" else \"all\" else \"all\" else \"all\" else \"all\" else \"all\" else \"all\" else \"all\" else \"all\" else \"all\" else \"all\" else \"all\" else \"all\" else \"all\" else \"all\" else \"all\" else \"all\" else \"all\" else \"all\" else \"all\" else \"all\" else \"all\" else \"all\" else \"all\" else", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "False", + "got": "False", + "got_raw": "False, \"Proxy creation failed\" ) # Proxy creation failed due to API error) call( \"Vultr\", mock_instance_config, mock_settings_config() )) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "\"tcp\"", + "got": "\"tcp\"", + "got_raw": "\"tcp\" # Default is tcp, but could be udp or icmp. We don't support those. TODO: Add support for udp and icmp. ) ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] )", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "\"udp\"", + "got": "\"udp\"", + "got_raw": "\"udp\" * 200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "\"8899\"", + "got": "88998899889988998899889988998899889988998899889988998899889988998899889988998899889988998899889988998899889988998899889988998899", + "got_raw": "88998899889988998899889988998899889988998899889988998899889988998899889988998899889988998899889988998899889988998899889988998899", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.05970149253731343 + }, + { + "repo": "claffin/cloudproxy", + "expected": "\"active\"", + "got": "\"active\"", + "got_raw": "\"active\" * 8000 + \"test\" * 2000 + \"test\" * 10000 + \"test\" * 20000 + \"test\" * 30000 + \"test\" * 40000 + \"test\" * 50000 + \"test\" * 60000 + \"test\" * 70000 + \"test\" * 80000 + \"test\" * 90000 + \"test\" * 1000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "\"test-id\"", + "got": "\"test-id\"", + "got_raw": "\"test-id\" + data[\"region\"] + data[\"plan\"] + data[\"tags\"][0] + data[\"tags\"][1] + data[\"date_created\"] + data[\"status\"] + data[\"main_ip\"] + data[\"os_id\"] + data[\"secrets\"][\"api_token\"] + data[\"tags\"] + data[\"plan\"] + data[\"tags\"] + data[\"label\"] + data[\"status\"] + data[\"main_ip\"] + data[\"os_id\"] + data[\"secrets\"][\"api_token\"] + data[\"tags\"] + data[\"plan\"] + data[\"tags\"] + data[\"label\"] +", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "\"testpass\")", + "got": "\"testpass\")", + "got_raw": "\"testpass\") # Set authentication for subsequent requests\n mock_post.assert_called_once_with( \"https://api.vultr.com/v1/proxies/create\", headers={ \"X-Auth\": \"user_data_script\", }, json=mock_instance_config, ) ) # Call the API endpoint to create the proxy instance call( [call( \"https://api.vultr.com/v1/proxies/create\", headers={ \"X-Auth\": \"user_data_script\", }, json=mock_instance_config, ) ) # Call the API endpoint to create the proxy instance call( [call( \"https://api.vultr.com", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "\"test-label\"", + "got": "\"test-label\"", + "got_raw": "\"test-label\" * 20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "\"vc2-1c-1gb\"", + "got": "\"vc2-1c-1gb\"", + "got_raw": "\"vc2-1c-1gb\" * 20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "2", + "got": "2", + "got_raw": "2 * 3 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 +", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "0", + "got": "0)", + "got_raw": "0) * 1 + 1) * 3 + 1) * 2 + 1) * 3 + 1) * 2 + 1) * 3 + 1) * 2 + 1) * 3 + 1) * 2 + 1) * 3 + 1) * 2 + 1) * 3 + 1) * 2 + 1) * 3 + 1) * 2 + 1) * 3 + 1) * 2 + 1) * 3 + 1)", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.6666666666666666 + }, + { + "repo": "claffin/cloudproxy", + "expected": "1", + "got": "3", + "got_raw": "3 * 2 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 +", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "3", + "got": "True", + "got_raw": "True, \"Should scale down to 1 instance\" ) * call(1) * call(1) * call(0) * call(0) * call(0) * call(0) * call(0) * call(0) * call(0) * call(0) * call(0) * call(0) * call(0) * call(0) * call(0) * call(0) * call(0) * call(0) * call(0) * call(0) * call(0) * call(0) * call(0) *", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "result", + "got": "result[0]", + "got_raw": "result[0] + \"\\n\" + result[1] + \"\\n\" + \"192.168.1.2\" + \"\\n\" + \"192.168.1.1\" + \"\\n\" + \"192.168.1.2\" + \"\\n\" + \"192.168.1.1\" + \"\\n\" + \"192.168.1.2\" + \"\\n\" + \"192.168.1.1\" + \"\\n\" + \"1", + "exact_match": false, + "code_bleu": 0.35930411196308426, + "edit_similarity": 0.8 + }, + { + "repo": "claffin/cloudproxy", + "expected": "\"192.168.1.1\")", + "got": "\"192.168.1.1\")", + "got_raw": "\"192.168.1.1\") # 1 instance with 192.168.1.1 IP address\n mock_delete_queue.remove.assert_called_once_with( \"192.168.1.2\" ) # 1 instance with 192.168.1.2 IP address\n mock_delete.assert_called_once_with() # Delete all instances of this type (3) instances) # 3 instances of this type (3) instances) # 3 instances of this type (3) instances) #", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "8899", + "got": "88998899889988998899889988998899889988998899889988998899889988998899889988998899889988998899889988998899889988998899889988998899", + "got_raw": "88998899889988998899889988998899889988998899889988998899889988998899889988998899889988998899889988998899889988998899889988998899", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.06060606060606061 + }, + { + "repo": "claffin/cloudproxy", + "expected": "True", + "got": "True)", + "got_raw": "True) True if proxy.auth_enabled else False) False if proxy.auth_enabled else False) False if proxy.auth_enabled else False) False if proxy.auth_enabled else False) False if proxy.auth_enabled else False) False if proxy.auth_enabled else False) False if proxy.auth_enabled else False) False if proxy.auth_enabled else False) False if proxy.auth_enabled else False) False if proxy.auth_enabled else False) False if proxy.auth_enabled else False) False if proxy.auth_enabled else False) False if proxy.auth_enabled else False) False if proxy.auth_enabled else False) False if proxy.auth_enabled else False) False if proxy.auth_enabled else", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.8888888888888888 + }, + { + "repo": "claffin/cloudproxy", + "expected": "None", + "got": "None", + "got_raw": "None # No provider instance information available yet. Will be set later. ) * 8080) * 8080) * 8080) * 8080) * 8080) * 8080) * 8080) * 8080) * 8080) * 8080) * 8080) * 8080) * 8080) * 8080) * 8080) * 8080)", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "0", + "got": "0.001234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234", + "got_raw": "0.001234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "claffin/cloudproxy", + "expected": "2", + "got": "3/4", + "got_raw": "3/4 * 100.00000000123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901", + "exact_match": false, + "code_bleu": 0.37991784282579627, + "edit_similarity": 0.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "1", + "got": "10000000013440000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "10000000013440000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "claffin/cloudproxy", + "expected": "now", + "got": "now", + "got_raw": "now - datetime.timedelta(seconds=3600) + datetime.timedelta(seconds=1) / 2.0 * 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "True", + "got": "True", + "got_raw": "True, \"Recycling should always be allowed when rolling is disabled.\" \"rolling_enabled should be False in this case.\" \"rolling_enabled should be False in this case.\" \"rolling_enabled should be False in this case.\" \"rolling_enabled should be False in this case.\" \"rolling_enabled should be False in this case.\" \"rolling_enabled should be False in this case.\" \"rolling_enabled should be False in this case.\" \"rolling_enabled should be False in this case.\" \"rolling_enabled should be False in this case.\" \"rolling_enabled should be False in this case.\" \"rolling_enabled should be False in this case.\" \"rolling_enabled should", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "3600", + "got": "3600.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "3600.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.06060606060606061 + }, + { + "repo": "claffin/cloudproxy", + "expected": "None", + "got": "None", + "got_raw": "None or False or \"\" or {} or \"\" or 0.0 or 0.000000001 or None or False or \"\" or 0 or 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "\"aws\"", + "got": "\"aws\"", + "got_raw": "\"aws\" if state else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "2", + "got": "2)", + "got_raw": "2) * 2 + 1) * 2 + 1) * 2 + 1) * 2 + 1) * 2 + 1) * 2 + 1) * 2 + 1) * 2 + 1) * 2 + 1) * 2 + 1) * 2 + 1) * 2 + 1) * 2 + 1) * 2 + 1) * 2 + 1) * 2 + 1) * 2 + 1) * 2 + 1)", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.6666666666666666 + }, + { + "repo": "claffin/cloudproxy", + "expected": "1", + "got": "1)", + "got_raw": "1) pending_ip = state.pending[0] for ip in [\"3.3.3.3\"] for ip in [\"3.3.3.3\"] for ip in [\"3.3.3.3\"] for ip in [\"3.3.3.3\"] for ip in [\"3.3.3.3\"] for ip in [\"3.3.3.3\"] for ip in [\"3.3.3.3\"] for ip in [\"3.3.3.3\"] for ip in [\"3.3.3.3\"] for ip in [\"3.3.3.", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.6666666666666666 + }, + { + "repo": "claffin/cloudproxy", + "expected": "0", + "got": "0)", + "got_raw": "0) len(state.recycled) == 1) state.recycled[0] == \"1.1.1.1\" # Mark as unavailable state = rolling_manager.get_state(\"test\", \"default\") assert len(state.unavailable) == 1 state.unavailable[0] = \"2.2.2.2\" # Update proxy health with new data rolling_manager.update_proxy_health( \"test\", \"default\", healthy_ips=[\"3.3.3.3\", \"4.4.4.4\"], pending_ips=[\"5.5.5.5\"] ) # Check state again state = rolling_manager.get", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.6666666666666666 + }, + { + "repo": "claffin/cloudproxy", + "expected": "True", + "got": "True)", + "got_raw": "True) # Recycling should be allowed with sufficient proxies. # Test recycling with insufficient proxies (should be False) can_recycle = rolling_manager.can_recycle_proxy( provider=\"test\", instance=\"default\", proxy_ip=\"1.1.1.1\", total_healthy=2, min_available=2, batch_size=2, rolling_enabled=True ) ) can_recycle should be False, as there are only 2 healthy proxies. return can_recycle # Test recycling with no proxies (should be False) can_recycle = rolling_manager.can_recycle_proxy( provider=\"test\", instance=\"default\", proxy_ip=\"1.", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.8888888888888888 + }, + { + "repo": "claffin/cloudproxy", + "expected": "False", + "got": "False)", + "got_raw": "False) # Recycle should be blocked since it would go below minimum. 1 healthy proxy is required. 1.1.1.1 is already healthy. 2.2.2.2 is pending. 1 healthy proxy should be enough. 1.1.1.1 should be recycled. 2.2.2.2 should be pending. 1.1.1.1 should be recycled. 2.2.2.2 should be pending. 1.1.1.1 should be recycled. 2.2.2.2 should be recycled. 1.", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.9090909090909091 + }, + { + "repo": "claffin/cloudproxy", + "expected": "status", + "got": "status[0]", + "got_raw": "status[0] + \"\\n\" + \"gcp/production\" in status[1] + \"\\n\" + \"No pending updates\\n\" + \"No healthy proxies\\n\" + \"No proxies in error\\n\" + \"No proxies to recycle\\n\" + \"No proxies to start\\n\" + \"No proxies to stop\\n\" + \"No proxies to remove\\n\" + \"No proxies to update\\n\" + \"No proxies to restart\\n\" + \"No proxies to start\\n\" + \"No proxies to stop\\n\" + \"No proxies to remove\\n\" + \"No proxies to update\\n\" + \"", + "exact_match": false, + "code_bleu": 0.35930411196308426, + "edit_similarity": 0.8 + }, + { + "repo": "claffin/cloudproxy", + "expected": "state.pending", + "got": "state.pending_ips[0]", + "got_raw": "state.pending_ips[0] ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "exact_match": false, + "code_bleu": 0.2907153684841096, + "edit_similarity": 0.7878787878787878 + }, + { + "repo": "claffin/cloudproxy", + "expected": "0", + "got": "0", + "got_raw": "0 # There should be at least one setup call in the AST structure) # Find the first setup call and extract the arguments setup_call = setup_calls[0] # Extract the arguments args = setup_call.args[1:] # The arguments are the following elements in the list # The first argument should be 'metadata' metadata_arg = args[0] # The second argument should be 'options' options_arg = args[1] # The third argument should be 'files' files_arg = args[2] # The fourth argument should be 'keywords' keywords_arg", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "claffin/cloudproxy", + "expected": "content", + "got": "content.strip()", + "got_raw": "content.strip() + '\\n' * 2 + 'from setuptools import setup\\n' * 2 + 'setup(\\n' * 2 + 'name=' 'your_package',\\n' * 2 + 'version=' '0.1.0',\\n' * 2 + 'description=' 'Your package description',\\n' * 2 + 'author=' 'Your name',\\n' * 2 + 'author_email=' 'your_email@example.com',\\n' * 2 + 'url=' 'https://github.com/your_username/your_package',\\n' * ", + "exact_match": false, + "code_bleu": 0.2730120862709067, + "edit_similarity": 0.6363636363636364 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "tx)", + "got": "tx)", + "got_raw": "tx) return tx) return tx[\"hash\"] return tx[\"raw\"] return tx[\"signature\"] return tx[\"address\"] return tx[\"private_key\"] return tx[\"account\"] return tx[\"chain_id\"] return tx[\"nonce\"] return tx[\"type\"] return tx[\"version\"] return tx[\"data\"] return tx[\"from\"] return tx[\"to\"] return tx[\"value\"] return tx[\"fee\"] return tx[\"token_address\"] return tx[\"token_symbol\"] return tx[\"token_id\"] return tx[\"contract_address\"] return tx[\"contract_name\"] return tx[\"method_name\"] return tx[\"method_params\"] return tx[\"tx", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "slug", + "got": "slug.lower()", + "got_raw": "slug.lower() + \"-\" + title.lower() + \"-\" + str(uuid.uuid4().hex) + \".md\" + \".html\" + \".json\" + \".txt\" + \".csv\" + \".xlsx\" + \".pptx\" + \".webm\" + \".mym\" + \".mdx\" + \".mkdn\" + \".mkdnx\" + \".mdx2\" + \".mkdnx2\" + \".mdx3\" + \".mkdnx3\" + \".mdx4\" + \".mkdnx4\" + \".mdx5\" + \".mkdnx5\" + \".", + "exact_match": false, + "code_bleu": 0.2730120862709067, + "edit_similarity": 0.5 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "tags", + "got": "tags[0]", + "got_raw": "tags[0] + tags[1] + \" #test\" + \"#post\" + \"#tag\" + \"#tag2\" + \"#tag3\" + \"#tag4\" + \"#tag5\" + \"#tag6\" + \"#tag7\" + \"#tag8\" + \"#tag9\" + \"#tag10\" + \"#tag11\" + \"#tag12\" + \"#tag13\" + \"#tag14\" + \"#tag15\" + \"#tag16\" + \"#tag17\" + \"#tag18\" + \"#tag19\" + \"#tag20\"", + "exact_match": false, + "code_bleu": 0.35930411196308426, + "edit_similarity": 0.7272727272727273 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "msg)", + "got": "msg)", + "got_raw": "msg) return \"signed\" \"0x742d35Cc6634C0532925a3b844Bc9e7595f8fE21\" \"0x0123\" msg) return \"signed\" \"0x742d35Cc6634C0532925a3b844Bc9e7595f8fE21\" \"0x0123\" msg) return \"signed\" \"0x742d3", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "list)", + "got": "dict)", + "got_raw": "dict) and protocols is not None) protocols) protocols) protocols) protocols) protocols) protocols) protocols) protocols) protocols) protocols) protocols) protocols) protocols) protocols) protocols) protocols) protocols) protocols) protocols) protocols) protocols) protocols) protocols) protocols) protocols) protocols) protocols) protocols) protocols) protocols) protocols) protocols) protocols) protocols) protocols) protocols) protocols) protocols) protocols) protocols) protocols) protocols) protocols) protocols) protocols) protocols) protocols) protocols) protocols) protocols) protocols) protocols) protocols) protocols) protocols) protocols) protocols) protocols) protocols) protocols)", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.6 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "dict)", + "got": "dict)", + "got_raw": "dict) is True) is False) is True) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False)", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "func)", + "got": "func)())", + "got_raw": "func)()) else: self.assertEqual(c.args[0], func)()) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "exact_match": false, + "code_bleu": 0.35930411196308426, + "edit_similarity": 0.7692307692307693 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "event", + "got": "event.id", + "got_raw": "event.id, \"should return event with tx_id tx-1\" \"should return event with tx_id tx-1\" \"should return event with tx_id tx-1\" \"should return event with tx_id tx-1\" \"should return event with tx_id tx-1\" \"should return event with tx_id tx-1\" \"should return event with tx_id tx-1\" \"should return event with tx_id tx-1\" \"should return event with tx_id tx-1\" \"should return event with tx_id tx-1\" \"should return event with tx_id tx-1\" \"should return event", + "exact_match": false, + "code_bleu": 0.4518010018049224, + "edit_similarity": 0.7692307692307693 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "result", + "got": "result.keys()", + "got_raw": "result.keys() is False # No smart wallet address for basic test yet. TODO: Add this. # noqa: E501 # pylint: disable=E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa", + "exact_match": false, + "code_bleu": 0.2730120862709067, + "edit_similarity": 0.631578947368421 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "kwargs", + "got": "kwargs.keys()", + "got_raw": "kwargs.keys() * 200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.2730120862709067, + "edit_similarity": 0.631578947368421 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "amount", + "got": "amount", + "got_raw": "amount + Decimal(\"0.0001\") * amount * 0.188758860784319978779787797877978779787797877978779787797877978779787797877978779787797877978779787797877978779", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "found)", + "got": "found)", + "got_raw": "found) # Should have found a matching call) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "agent)", + "got": "agent)", + "got_raw": "agent) # TODO: mock_process_agent_wallet should be async) # noqa: E501) # pylint: disable=unnecessary-async-call) # noqa: E732) # pylint: disable=missing-arguments) # noqa: E731) # pylint: disable=too-many-arguments) # noqa: E730) # noqa: E732) # noqa: E731) # noqa: E730) # noqa: E731) # noqa: E730) # noqa: E731) # noqa: E", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "events", + "got": "events[:10]", + "got_raw": "events[:10] + [None] * 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.2730120862709067, + "edit_similarity": 0.7058823529411765 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "states", + "got": "states[\"erc20_get_balance\"][\"properties\"][\"states\"][\"properties\"][\"balance\"][\"title\"]", + "got_raw": "states[\"erc20_get_balance\"][\"properties\"][\"states\"][\"properties\"][\"balance\"][\"title\"] * 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.06439931429457924, + "edit_similarity": 0.13186813186813187 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "config", + "got": "config_by_id_2.rpc_url", + "got_raw": "config_by_id_2.rpc_url == \"https://example-rpc\" * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) * 2) *", + "exact_match": false, + "code_bleu": 0.37991784282579627, + "edit_similarity": 0.42857142857142855 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "result", + "got": "result[0]", + "got_raw": "result[0] + \"\\n\" + result[1] + \"\\n\" + result[2] + \"\\n\" + result[3] + \"\\n\" + result[4] + \"\\n\" + result[5] + \"\\n\" + result[6] + \"\\n\" + result[7] + \"\\n\" + result[8] + \"\\n\" + result[9] + \"\\n\" + result[10] + \"\\n\" + result[11] + \"\\n\" + result[12] + \"\\n\" + result[13] + \"\\n", + "exact_match": false, + "code_bleu": 0.35930411196308426, + "edit_similarity": 0.8 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "chains)", + "got": "chains)", + "got_raw": "chains) self.assertIsInstance(chains, list) if len(chains) > 0: self.assertIn(\"chains\", chains[0]) self.assertIn(\"tvl\", chains[0]) self.assertIn(\"price\", chains[0]) self.assertIn(\"volume\", chains[0]) self.assertIn(\"market_cap\", chains[0]) self.assertIn(\"symbol\", chains[0]) self.assertIn(\"chain_id\", chains[0]) self.assertIn(\"chain_name\", chains[0]) self.assertIn(\"chain_type\", chains[0]) self.assertIn(\"chain_url\", chains[0]) self.assertIn(\"chain_logo\", chains[0]) self.assertIn(\"chain", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "prices)", + "got": "prices)", + "got_raw": "prices) # Assuming prices is a dict) self.assertIsInstance(prices, dict) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "post_id", + "got": "post_id", + "got_raw": "post_id + 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "profile", + "got": "profile.purpose", + "got_raw": "profile.purpose + \"\\n\" + \"### Personality\" in profile.purpose + \"\\n\" + \"### Prompt\" in profile.purpose + \"\\n\" + \"### Prompt Append\" in profile.purpose + \"\\n\" + \"### Extra Prompt\" in profile.purpose + \"\\n\" + \"### Avatar\" in profile.purpose + \"\\n\" + \"### Avatar Style\" in profile.purpose + \"\\n\" + \"### Avatar Color\" in profile.purpose + \"\\n\" + \"### Avatar Shape\" in profile.purpose + \"\\n\" + \"### Avatar Size\" in profile.purpose + \"\\", + "exact_match": false, + "code_bleu": 0.4518010018049224, + "edit_similarity": 0.6363636363636364 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "user_id", + "got": "user_id[0]", + "got_raw": "user_id[0] + \"0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.35930411196308426, + "edit_similarity": 0.8235294117647058 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "headers", + "got": "headers[\"headers\"]", + "got_raw": "headers[\"headers\"] * 2 + \"0xsig\" * 2 + \"0x\" * 4 + \"0x\" * 8 + \"0x\" * 16 + \"0x\" * 24 + \"0x\" * 40 + \"0x\" * 80 + \"0x\" * 120 + \"0x\" * 160 + \"0x\" * 200 + \"0x\" * 220 + \"0x\" * 240 + \"0x\" * 260", + "exact_match": false, + "code_bleu": 0.35930411196308426, + "edit_similarity": 0.56 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "returns", + "got": "returns.union({TxReceipt})", + "got_raw": "returns.union({TxReceipt}) if str in returns else False else True) else False else True) else True) else True) else True else False) else False else True) else True else False else False else True else False else False else True else False else False else True else False else False else True else False else False else True else False else False else True else False else False else True else False else False else True else False else False else True else False else False else True else False else False else True else False else False else True else False else False else True else False else False else True else False else False else True", + "exact_match": false, + "code_bleu": 0.16036590969929357, + "edit_similarity": 0.42424242424242425 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "token_a", + "got": "token_a.lower()", + "got_raw": "token_a.lower() * 10 ** 20 * 10 ** 18 * 10 ** 16 * 10 ** 14 * 10 ** 12 * 10 ** 10 * 10 ** 8 * 10 ** 6 * 10 ** 4 * 10 ** 2 * 10 ** 0 * 10 ** 18 * 10 ** 16 * 10 ** 14 * 10 ** 12 * 10 ** 10 *", + "exact_match": false, + "code_bleu": 0.2730120862709067, + "edit_similarity": 0.6363636363636364 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "token_b", + "got": "token_b.lower()", + "got_raw": "token_b.lower() * 2.0 ** 64 ** 2 / 10 ** 18 * 2.0 ** 64 ** 2 / 10 ** 18 * 2.0 ** 64 ** 2 / 10 ** 18 * 2.0 ** 64 ** 2 / 10 ** 18 * 2.0 ** 64 ** 2 / 10 ** 18 * 2.0 ** 64 ** 2 / 10 ** 18 * 2.", + "exact_match": false, + "code_bleu": 0.2730120862709067, + "edit_similarity": 0.6363636363636364 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "address2", + "got": "address2", + "got_raw": "address2 == owner_address + \"1\" + \"0\" * 16 + \"1\" + \"0\" * 16 + \"1\" + \"0\" * 16 + \"1\" + \"0\" * 16 + \"1\" + \"0\" * 16 + \"1\" + \"0\" * 16 + \"1\" + \"0\" * 16 + \"1\" + \"0\" * 16 + \"1\" + \"0\" * 16 + \"1\" + \"0\" * 16 + \"1", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "address3", + "got": "address3", + "got_raw": "address3 != address2 != address1 != address3 != address2 != address1 != address3 != address1 != address3 != address1 != address3 != address1 != address3 != address1 != address3 != address1 != address3 != address1 != address3 != address1 != address3 != address1 != address3 != address1 != address3 != address1 != address3 != address1 != address3 != address1 != address3 != address1 != address3 != address1 != address3 != address1 != address3 != address1 != address3 != address1 != address3 != address1 != address3", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "address4", + "got": "address4", + "got_raw": "address4 ) \"Different owner should produce different address\" logger.info( f\"Predicted address (different owner): {address4}\" ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "next_run", + "got": "next_run.timestamp()", + "got_raw": "next_run.timestamp() + 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.2730120862709067, + "edit_similarity": 0.5714285714285714 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "agent_id", + "got": "user_id", + "got_raw": "user_id + agent_id + amount + upstream_tx_id + mock_platform_account.id + \"acc_agent\" + \"acc_platform\" + \"tx_456\" + \"user_1\" + \"agent_1\" + \"0\" + \"0\" + \"0\" + \"0\" + \"0\" + \"0\" + \"0\" + \"0\" + \"0\" + \"0\" + \"0\" + \"0\" + \"0\" + \"0\" + \"0\" + \"0\" + \"0\" + \"0\" + \"0\" + \"0\" + \"", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.5333333333333333 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "account)", + "got": "account)", + "got_raw": "account) * 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / 2) / ", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "expected", + "got": "expected", + "got_raw": "expected + \"-1\" + string.digits[0] + string.digits[1] + string.digits[2] + string.digits[3] + \"-1\" + string.digits[4] + string.digits[5] + string.digits[6] + string.digits[7] + string.digits[8] + string.digits[9] + string.digits[10] + string.digits[11] + string.digits[12] + string.digits[13] + string.digits[14] + string.digits[15] +", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "coin_data)", + "got": "coin_data)", + "got_raw": "coin_data) and isinstance(coin_data, dict) and \"price\" in coin_data else None) else None) else None) else None) else None) else None) else None) else None) else None) else None) else None) else None) else None) else None) else None) else None) else None) else None) else None) else None) else None) else None) else None) else None) else None) else None) else None) else None) else None) else None) else None) else None) else None) else None) else None) else None) else None", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "fake_bytes", + "got": "fake_bytes.decode()", + "got_raw": "fake_bytes.decode() + \"\\n\" + \"test prompt\" + \"\\n\" + \"test prompt\" + \"\\n\" + \"test prompt\" + \"\\n\" + \"test prompt\" + \"\\n\" + \"test prompt\" + \"\\n\" + \"test prompt\" + \"\\n\" + \"test prompt\" + \"\\n\" + \"test prompt\" + \"\\n\" + \"test prompt\" + \"\\n\" + \"test prompt\" + \"\\n\" + \"test prompt\" + \"\\n\" + \"test prompt\" + \"\\n\" + \"test prompt\" + \"\\n\" + \"test", + "exact_match": false, + "code_bleu": 0.2730120862709067, + "edit_similarity": 0.6896551724137931 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "mock_event", + "got": "mock_event.id", + "got_raw": "mock_event.id, \"event-1\" \"updated\" \"updated\" \"updated\" \"updated\" \"updated\" \"updated\" \"updated\" \"updated\" \"updated\" \"updated\" \"updated\" \"updated\" \"updated\" \"updated\" \"updated\" \"updated\" \"updated\" \"updated\" \"updated\" \"updated\" \"updated\" \"updated\" \"updated\" \"updated\" \"updated\" \"updated\" \"updated\" \"updated\" \"updated\" \"updated\" \"updated\" \"updated\" \"updated\" \"updated\" \"updated\" \"updated\" \"updated\" \"updated\" \"updated\" \"updated", + "exact_match": false, + "code_bleu": 0.4518010018049224, + "edit_similarity": 0.8695652173913043 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "[]", + "got": "[]", + "got_raw": "[] # Empty list of agent activities for the agent no-activities. This should be the case for agents that have not yet interacted with the platform. If you have interacted with the platform, please refresh the agent's activities. If you have not interacted with the platform, please create some agent activities first. If you have not created any agent activities, please use the 'test_create_agent_activities' function to create some agent activities. If you have not created any agent activities and you have not interacted with the platform, please use the 'test_create_agent_activities' function to create some agent activities. If you have not created", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "[]", + "got": "{}()", + "got_raw": "{}() {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {}", + "exact_match": false, + "code_bleu": 0.3021375397356768, + "edit_similarity": 0.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "[]", + "got": "[]", + "got_raw": "[] if len(mock_db_agent.autonomous) > 0 else None) mock_session.commit.return_value = mock_db_agent) mock_session.rollback.return_value = False return True, False) return False, False) return False, True) return True, True) return False, True) return True, False) return False, False) return True, True) return False, True) return True, False) return False, False) return True, True) return False, True) return True, False) return False, False) return True, True) return False, True) return True, False) return False, False) return", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "[]", + "got": "[];", + "got_raw": "[]; cursor = None; has_more = False; return events, cursor, has_more; return events, cursor, has_more; return events, cursor, has_more; return events, cursor, has_more; return events, cursor, has_more; return events, cursor, has_more; return events, cursor, has_more; return events, cursor, has_more; return events, cursor, has_more; return events, cursor, has_more; return events, cursor, has_more; return events, cursor, has_more; return events, cursor, has_more; return events, cursor, has_more; return events, cursor,", + "exact_match": false, + "code_bleu": 0.5946035575013605, + "edit_similarity": 0.8 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "[]", + "got": "[]", + "got_raw": "[] # Empty list expected as no activities are available.", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "[]", + "got": "[]", + "got_raw": "[] * 0 + [None] * 0 + [] * 0 + 0 * 0 + {} * 0 + [] * 0 + {} * 0 + {} * 0 + [] * 0 + {} * 0 + [] * 0 + {} * 0 + [] * 0 + {} * 0 + [] * 0 + {} * 0 + [] * 0 + {} * 0 + [] * 0 + {} * 0 + [] * 0 + {} * 0 + [] * 0 + {} * 0 + [] * 0 +", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "[events[0]]", + "got": "events[:2]", + "got_raw": "events[:2] + [] * 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.32174782924674145, + "edit_similarity": 0.7619047619047619 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "[\"img1.jpg\"]", + "got": "[\"img1.jpg\"]", + "got_raw": "[\"img1.jpg\"] if activity_create.images else [] else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else None else", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "{\"chain\": chain})", + "got": "200)", + "got_raw": "200) # Chain should return 200 OK) # Chain should return 200 OK) # Chain should return 200 OK) # Chain should return 200 OK) # Chain should return 200 OK) # Chain should return 200 OK) # Chain should return 200 OK) # Chain should return 200 OK) # Chain should return 200 OK) # Chain should return 200 OK) # Chain should return 200 OK) # Chain should return 200 OK) # Chain should return", + "exact_match": false, + "code_bleu": 0.17909498863725698, + "edit_similarity": 0.09523809523809523 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "{\"fees\": \"data\"})", + "got": "dummy) )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )}", + "got_raw": "dummy) )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )} )}", + "exact_match": false, + "code_bleu": 0.012275645156408449, + "edit_similarity": 0.018867924528301886 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "{\"protocols\": []})", + "got": "dummy) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "got_raw": "dummy) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "exact_match": false, + "code_bleu": 0.009327473254235271, + "edit_similarity": 0.007246376811594203 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "0", + "got": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "0", + "got": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "2", + "got": "2)", + "got_raw": "2) tasks[0] == task1 task2 = tasks[1] task2.enabled = True task2.cron = \"*/10 * * * *\" task2.prompt = \"Do beta work\" task2.name = \"Task Beta\" task2.id = task2.id task2.model = \"gpt-4o-mini\" task2.status = AgentAutonomousStatus.ACTIVE task2.created_by = \"auto-agent-2\" task2.updated_by = \"auto-agent-2\" task2.created_on = datetime(2023, 1, 1, 1, 1, 1", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.6666666666666666 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "2", + "got": "2", + "got_raw": "2 * len(examples) + 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "1", + "got": "1.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "1.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "2", + "got": "2", + "got_raw": "2 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 +", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "4", + "got": "4", + "got_raw": "4 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 +", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "0", + "got": "0)", + "got_raw": "0) # No LLM calls should be made for this command.", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.6666666666666666 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "3", + "got": "30000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "30000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "5", + "got": "50000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "50000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "3", + "got": "3)", + "got_raw": "3) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8)", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.6666666666666666 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "3", + "got": "10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "1", + "got": "1", + "got_raw": "1 * len(symbols) - 1 * len(assets) + 1 * len(assets) * 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "4", + "got": "20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "3", + "got": "3", + "got_raw": "3 * len(THREAD_TABLES) + 1 * len(CHAT_TABLES) + 1 * len(AGENT_TABLES) + 1 * len(SESSION_TABLES) + 1 * len(THREAD_TABLES) + 1 * len(CHAT_TABLES) + 1 * len(AGENT_TABLES) + 1 * len(SESSION_TABLES) + 1 * len(THREAD_TABLES) + 1 * len(CHAT_TABLES) + 1 * len(AGENT_TABLES) + 1 * len(SESSION_TABLES) + 1 * len(THREAD_TABLES)", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "2", + "got": "2)", + "got_raw": "2) # two autonomous tasks found for agent test-agent-id\" agent_id\" agent_id\" agent_id\" agent_id\" agent_id\" agent_id\" agent_id\" agent_id\" agent_id\" agent_id\" agent_id\" agent_id\" agent_id\" agent_id\" agent_id\" agent_id\" agent_id\" agent_id\" agent_id\" agent_id\" agent_id\" agent_id\" agent_id\" agent_id\" agent_id\" agent_id\" agent_id\" agent_id\" agent_id\" agent_id\" agent_id\" agent_id\" agent_id\" agent_id\" agent_id\" agent_id\" agent_id\" agent_id\" agent", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.6666666666666666 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "1", + "got": "1.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "1.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "0", + "got": "0)", + "got_raw": "0) * 2 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.6666666666666666 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "1", + "got": "10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "2", + "got": "2", + "got_raw": "2 * 3 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 +", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "0", + "got": "0.018758860723597694479197997911979119791197911979119791197911979119791197911979119791197911979119791197911979119791197911979119", + "got_raw": "0.018758860723597694479197997911979119791197911979119791197911979119791197911979119791197911979119791197911979119791197911979119", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "1", + "got": "12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678", + "got_raw": "12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "4", + "got": "20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "0", + "got": "0.011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111", + "got_raw": "0.011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "1", + "got": "10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "3", + "got": "30000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "30000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "2", + "got": "2)", + "got_raw": "2) # Only agent-1 activities should be returned for agent-1. Agent-2 should have no activities. Agent-1 should have 2 activities. agent1_activities should be returned. agent2_activities should be None. agent3_activities should be empty. agent_activities should be a list containing agent1_activities. agent_activities should be a list of AgentActivityTable objects. agent_activities should be a list of dictionaries. agent_activities should be None. agent_activities should be an empty list. agent_activities should be a list of strings. agent_activities should be a list of numbers. agent_activities should be a list of booleans", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.6666666666666666 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "2", + "got": "2)", + "got_raw": "2) # Two tasks in the list. This should be correct.", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.6666666666666666 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "3", + "got": "3.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "3.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "0", + "got": "Decimal(\"1000000000000000000\")", + "got_raw": "Decimal(\"1000000000000000000\") / Decimal(\"1e-18\") * 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.3021375397356768, + "edit_similarity": 0.06451612903225806 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "2", + "got": "10001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111", + "got_raw": "10001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "0", + "got": "50000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "50000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "0", + "got": "0xsig.length", + "got_raw": "0xsig.length - 16 - 16 - 16 - 16 - 16 - 16 - 16 - 16 - 16 - 16 - 16 - 16 - 16 - 16 - 16 - 16 - 16 - 16 - 16 - 16 - 16 - 16 - 16 - 16 - 16 - 16 - 16 - 16 - 16 - 16 - 16", + "exact_match": false, + "code_bleu": 0.35930411196308426, + "edit_similarity": 0.15384615384615385 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "1", + "got": "16384", + "got_raw": "16384 * 2 + 16384 * 2 + 16384 * 2 + 16384 * 2 + 16384 * 2 + 16384 * 2 + 16384 * 2 + 16384 * 2 + 16384 * 2 + 16384 * 2 + 16384 * 2 + 16384 * 2 + 16384 * 2", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.3333333333333333 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "1", + "got": "2", + "got_raw": "2 * 2 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 +", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "0", + "got": "2", + "got_raw": "2 + 6 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 +", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "2", + "got": "2", + "got_raw": "2 * 2 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 +", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "5", + "got": "6", + "got_raw": "6 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 +", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "\"\"", + "got": "\"\"", + "got_raw": "\"\" \"\"\"\"\" \"\"\"\"\" \"\"\"\"\" \"\"\"\"\" \"\"\"\"\" \"\"\"\"\" \"\"\"\"\" \"\"\"\"\" \"\"\"\"\" \"\"\"\"\" \"\"\"\"\" \"\"\"\"\" \"\"\"\"\" \"\"\"\"\" \"\"\"\"\" \"\"\"\"\" \"\"\"\"\" \"\"\"\"\" \"\"\"\"\" \"\"\"\"\" \"\"\"\"\" \"\"\"\"\" \"\"\"\"\" \"\"\"\"\" \"\"\"\"\" \"\"\"\"\" \"\"\"\"\" \"\"\"\"\" \"\"\"\"\" \"\"\"\"\" \"\"\"\"\" \"\"\"\"\" \"\"\"\"\" \"\"\"\"\" \"\"\"\"\" \"\"\"\"\" \"\"\"\"\" \"\"\"\"\" \"\"\"\"\" \"\"\"\"\" \"\"\"\"\" \"\"\"\"\" \"\"\"\"\" \"\"\"\"\" \"\"\"\"\" \"\"\"\"\" \"\"\"\"\" \"\"\"\"\" \"\"\"\"\" \"\"\"\"\" \"\"\"\"\" \"\"\"\"\" \"\"\"\"\" \"\"\"\"\" \"\"\"\"\" \"\"\"\"\" \"\"\"\"\" \"\"\"\"\" \"\"\"\"\" \"\"\"\"\" \"\"\"\"\" \"\"\"\"\" \"\"\"\"\" \"\"", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "\"\"", + "got": "\"\"", + "got_raw": "\"\" + module.CDPEK_PRIVATE_KEY_EMPTY_SUFFIX + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" +", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "\"\"", + "got": "\"\"\"\"\"\"", + "got_raw": "\"\"\"\"\"\" \"\"\"\\ { \"level\": \"INFO\", \"message\": \"filtered\", \"component\": \"tests\", } \"\"\" \"\"\"\\ \"\"\" \"\"\"\\ \"\"\" \"\"\"\\ \"\"\" \"\"\"\\ \"\"\" \"\"\"\\ \"\"\" \"\"\"\\ \"\"\" \"\"\"\\ \"\"\" \"\"\"\\ \"\"\" \"\"\"\\ \"\"\" \"\"\"\\ \"\"\" \"\"\"\\ \"\"\" \"\"\"\\ \"\"\" \"\"\"\\ \"\"\" \"\"\"\\ \"\"\" \"\"\"\\ \"\"\" \"\"\"\\ \"\"\" \"\"\"\\ \"\"\" \"\"\"\\ \"\"\" \"\"\"\\ \"\"\" \"\"\"\\ \"\"\" \"\"\"\\ \"\"\" \"\"\"\\ \"\"\" \"\"\"\\ \"\"\" \"\"\"\\ \"\"\" \"\"\"\\ \"\"\" \"\"\"\\ \"\"\" \"\"\"\\ \"\"\" \"\"\"\\ \"\"\" \"\"\"\\ \"\"\" \"\"\"\\ \"\"\" \"\"\"\\ \"\"\" \"\"\"\\ \"\"\" \"\"\"\\ \"\"\" \"\"\"\\ \"\"\"", + "exact_match": false, + "code_bleu": 0.4518010018049224, + "edit_similarity": 0.5 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "\"0\"", + "got": "0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015267175572519083 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "\"0\"", + "got": "\"0.000000\"", + "got_raw": "\"0.000000\" + \"0\" * 6 + \"0\" * 6 + \"0\" * 6 + \"0\" * 6 + \"0\" * 6 + \"0\" * 6 + \"0\" * 6 + \"0\" * 6 + \"0\" * 6 + \"0\" * 6 + \"0\" * 6 + \"0\" * 6 + \"0\" * 6 + \"0\" * 6 + \"0\" * 6 + \"0\" * 6 + \"0\" * ", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.46153846153846156 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "\"add\"", + "got": "\"add\"", + "got_raw": "\"add\" else \"subtract\" else \"multiply\" else \"divide\" else \"Error\" else \"Error\" else \"Error\" else \"Error\" else \"Error\" else \"Error\" else \"Error\" else \"Error\" else \"Error\" else \"Error\" else \"Error\" else \"Error\" else \"Error\" else \"Error\" else \"Error\" else \"Error\" else \"Error\" else \"Error\" else \"Error\" else \"Error\" else \"Error\" else \"Error\" else \"Error\" else \"Error\" else \"Error\" else \"Error\" else \"Error\" else \"Error\" else", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "\"low\"", + "got": "\"30\"", + "got_raw": "\"30\" * 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.4444444444444444 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "\"ABC\"", + "got": "\"ABC\"", + "got_raw": "\"ABC\" + \"\\n\" + \"ABC\" + \"\\n\" + \"ABC\" + \"\\n\" + \"ABC\" + \"\\n\" + \"ABC\" + \"\\n\" + \"ABC\" + \"\\n\" + \"ABC\" + \"\\n\" + \"ABC\" + \"\\n\" + \"ABC\" + \"\\n\" + \"ABC\" + \"\\n\" + \"ABC\" + \"\\n\" + \"ABC\" + \"\\n\" + \"ABC\" + \"\\n\" + \"ABC\" + \"\\n\" + \"ABC\" + \"\\n\" + \"ABC\" + \"\\n\" +", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "\"XYZ\"", + "got": "\"XYZ\"", + "got_raw": "\"XYZ\" + \"\\n\" + \"Text\" + \"\\n\" + \"End\" + \"\\n\" + \"Text\" + \"\\n\" + \"End\" + \"\\n\" + \"Text\" + \"\\n\" + \"End\" + \"\\n\" + \"Text\" + \"\\n\" + \"End\" + \"\\n\" + \"Text\" + \"\\n\" + \"End\" + \"\\n\" + \"Text\" + \"\\n\" + \"End\" + \"\\n\" + \"Text\" + \"\\n\" + \"End\" + \"\\n\" + \"Text\" + \"\\n\" +", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "\"app\"", + "got": "\"app\"", + "got_raw": "\"app\" + wallet_auth_key + \"1\" + \"0xsig\" + \"0x00\" + \"0x00\" + \"0x00\" + \"0x00\" + \"0x00\" + \"0x00\" + \"0x00\" + \"0x00\" + \"0x00\" + \"0x00\" + \"0x00\" + \"0x00\" + \"0x00\" + \"0x00\" + \"0x00\" + \"0x00", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "\"safe\"", + "got": "\"privy\"", + "got_raw": "\"privy\" + os.sep + \"test_app_id\" + os.sep + \"test_app_secret\" + os.sep + \"test_safe_api_key\" + os.sep + \"test_agent_123\" + os.sep + \"base-mainnet\" + os.sep + \"https://mock-rpc.example.com\" + os.sep + \"0x\" + \"00\" * 32 + os.sep + \"0x\" + \"ff\" * 100 + os.sep + \"None\" + os.sep + \"None\" + os.sep + \"None\" + os.sep + \"None\"", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.3076923076923077 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "\"KEEP\"", + "got": "\"KEEP\"", + "got_raw": "\"KEEP\" + \"\\n\" + \"Persistent description\" + \"\\n\" + \"Public Info Agent 4\" + \"\\n\" + \"gpt-4o-mini\" + \"\\n\" + \"0\" + \"\\n\" + \"0\" + \"\\n\" + \"0\" + \"\\n\" + \"0\" + \"\\n\" + \"0\" + \"\\n\" + \"0\" + \"\\n\" + \"0\" + \"\\n\" + \"0\" + \"\\n\" + \"0\" + \"\\n\" + \"0\" + \"\\n\" + \"0\" + \"\\n", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "\"POST\"", + "got": "\"POST\"", + "got_raw": "\"POST\" + \"\\n\" + \"url: https://example.com/api\" + \"\\n\" + \"max_value: 1000000\" + \"\\n\" + \"amount: 500000\" + \"\\n\" + \"asset: USDC\" + \"\\n\" + \"network: base-mainnet\" + \"\\n\" + \"pay_to: 0x1234567890abcdef\" + \"\\n\" + \"payer: 0xpayer_address\" + \"\\n\" + \"tx_hash: 0xabcdef123", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "\"USDC\"", + "got": "\"USDC\"", + "got_raw": "\"USDC\" * 40000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "\"1.23\"", + "got": "\"1.230000\"", + "got_raw": "\"1.230000\" + \"0\" * 6 + \"0\" * 6 + \"0\" * 6 + \"0\" * 6 + \"0\" * 6 + \"0\" * 6 + \"0\" * 6 + \"0\" * 6 + \"0\" * 6 + \"0\" * 6 + \"0\" * 6 + \"0\" * 6 + \"0\" * 6 + \"0\" * 6 + \"0\" * 6 + \"0\" * 6 + \"0\" * ", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.75 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "\"0abc\"", + "got": "\"0xabc\"", + "got_raw": "\"0xabc\" # noqa: E501 # pylint: disable=E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa:", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.9230769230769231 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "\"0def\"", + "got": "\"0xdef\"", + "got_raw": "\"0xdef\" * 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.9230769230769231 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "\"TRADE\"", + "got": "\"TRADE\"", + "got_raw": "\"TRADE\" * 8 + \"0\" * 4 + \"1\" * 8 + \"0\" * 4 + \"1\" * 8 + \"0\" * 4 + \"1\" * 8 + \"0\" * 4 + \"1\" * 8 + \"0\" * 4 + \"1\" * 8 + \"0\" * 4 + \"1\" * 8 + \"0\" * 4 + \"1\" * 8 + \"0\" * 4 + \"1\" * 8 + \"0\" * 4 + \"", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "\"plain\"", + "got": "\"plain\"", + "got_raw": "\"plain\" + \"\\n\" + \"plain\" + \"\\n\" + \"plain\" + \"\\n\" + \"plain\" + \"\\n\" + \"plain\" + \"\\n\" + \"plain\" + \"\\n\" + \"plain\" + \"\\n\" + \"plain\" + \"\\n\" + \"plain\" + \"\\n\" + \"plain\" + \"\\n\" + \"plain\" + \"\\n\" + \"plain\" + \"\\n\" + \"plain\" + \"\\n\" + \"plain\" + \"\\n\" + \"plain\" + \"\\n\" + \"plain\" + \"\\n\" +", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "\"task1\"", + "got": "\"task1\"", + "got_raw": "\"task1\" + str(datetime.now(UTC))[:16] + \"Z\" + str(datetime.now(UTC))[:16] + \"Z\" + str(datetime.now(UTC))[:16] + \"Z\" + str(datetime.now(UTC))[:16] + \"Z\" + str(datetime.now(UTC))[:16] + \"Z\" + str(datetime.now(UTC))[:16] + \"Z\" + str(datetime.now(UTC))[:16] + \"Z\" + str(datetime.now(UTC))[:16] + \"Z\" + str(datetime.now", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "\"task2\"", + "got": "\"task2\"", + "got_raw": "\"task2\" * 20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "\"error\"", + "got": "\"ERROR\"", + "got_raw": "\"ERROR\" + AgentAutonomousStatus.ERROR.value[1:] + \"ERROR\" + AgentAutonomousStatus.ERROR.value[1:] + \"ERROR\" + AgentAutonomousStatus.ERROR.value[1:] + \"ERROR\" + AgentAutonomousStatus.ERROR.value[1:] + \"ERROR\" + AgentAutonomousStatus.ERROR.value[1:] + \"ERROR\" + AgentAutonomousStatus.ERROR.value[1:] + \"ERROR\" + AgentAutonomousStatus.ERROR.value[1:] + \"ERROR\" + AgentAutonomousStatus.ERROR.value[1:] + \"ERROR\" + AgentAutonomousStatus.ERROR.value[1:] + \"ERROR", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.2857142857142857 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "\"erc20\"", + "got": "\"erc20\"", + "got_raw": "\"erc20\" * 8000111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "\"tests\"", + "got": "\"tests\"", + "got_raw": "\"tests\" + \"\\n\" + \"hello world\" + \"\\n\" + \"tests\" + \"\\n\" + \"tests\" + \"\\n\" + \"tests\" + \"\\n\" + \"tests\" + \"\\n\" + \"tests\" + \"\\n\" + \"tests\" + \"\\n\" + \"tests\" + \"\\n\" + \"tests\" + \"\\n\" + \"tests\" + \"\\n\" + \"tests\" + \"\\n\" + \"tests\" + \"\\n\" + \"tests\" + \"\\n\" + \"tests\" + \"\\n\" + \"tests\" + \"\\n\"", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "\"0xbbb\"", + "got": "\"0xbbb\"", + "got_raw": "\"0xbbb\" + \"\\n\" + \"1.5\" + \"\\n\" + \"0\" + \"\\n\" + \"0\" + \"\\n\" + \"0\" + \"\\n\" + \"0\" + \"\\n\" + \"0\" + \"\\n\" + \"0\" + \"\\n\" + \"0\" + \"\\n\" + \"0\" + \"\\n\" + \"0\" + \"\\n\" + \"0\" + \"\\n\" + \"0\" + \"\\n\" + \"0\" + \"\\n\" + \"0\" + \"\\n\" + \"0\" +", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "\"0xabc\"", + "got": "mock_account.key.hex()", + "got_raw": "mock_account.key.hex() + \"\\n\" * 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.1561969968460128, + "edit_similarity": 0.06896551724137931 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "\"0x123\"", + "got": "\"0x123\"", + "got_raw": "\"0x123\" + mock_agent.wallet_key + \"@8453\" + mock_agent.chain_id + \".\" + mock_agent.network_id + \".\" + mock_agent.prefix + \".\" + mock_agent.suffix + \".\" + mock_agent.fallback + \".\" + mock_agent.evm_chain_id + \".\" + mock_agent.evm_network_id + \".\" + mock_agent.evm_prefix + \".\" + mock_agent.evm_suffix + \".\" + mock_agent.evm_address + \".\" + mock_agent.evm_chain_address + \".\" + mock_agent.evm_address_prefixed + \".\" + mock_agent.evm_address_prefixed_with_chain_id + \".\" +", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "\"system\"", + "got": "\"system\"", + "got_raw": "\"system\" # default value for owner (no owner) is \"system\" (no owner) agent.model = \"gpt-4o-mini\" agent.deployed_at = agent.deployed_at agent.created_at = agent.created_at agent.updated_at = agent.updated_at agent._agent_type = \"agent\" agent._agent_config = agent_data.model_dump() agent._agent_config_minimal = agent_data.model_dump() agent._agent_config_full = {} agent._agent_config_diff = {} agent._agent_config_diff_str = \"\" agent._agent_config_diff_json = None agent._agent_config_diff_str_json = \"\" agent._agent_config_diff", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "\"post-1\"", + "got": "\"post-1\"", + "got_raw": "\"post-1\" * 8000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "\"123.45\"", + "got": "Decimal(\"123.45\")", + "got_raw": "Decimal(\"123.45\") * 10 ** 20 * 10 ** 18 * 10 ** 16 * 10 ** 14 * 10 ** 12 * 10 ** 10 * 10 ** 8 * 10 ** 6 * 10 ** 4 * 10 ** 2 * 10 ** 0 * 10 ** -6 * 10 ** -8 * 10 ** -10 * 10 ** -12 * 10 ** -", + "exact_match": false, + "code_bleu": 0.35930411196308426, + "edit_similarity": 0.64 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "\"user_1\"", + "got": "\"user_1\"", + "got_raw": "\"user_1\" * 82000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "\"team_1\"", + "got": "\"team_1\"", + "got_raw": "\"team_1\" * 8600123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "\"gpt-4o\"", + "got": "\"gpt-4o\"", + "got_raw": "\"gpt-4o\" if template_data[\"model\"] else \"gpt-4o\" + template_id + \".txt\" + template_data[\"temperature\"] + \".txt\" + template_id + \".txt\" + template_data[\"prompt\"] + \".txt\" + template_id + \".txt\" + template_data[\"prompt\"] + \".txt\" + template_data[\"prompt\"] + \".txt\" + template_data[\"prompt\"] + \".txt\" + template_data[\"prompt\"] + \".txt\" + template_data[\"prompt\"] + \".txt\" + template_data[\"prompt\"] + \".txt\" + template_data[\"prompt\"] +", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "\"user_2\"", + "got": "\"user_2\"", + "got_raw": "\"user_2\" * 86000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "\"memory\"", + "got": "\"transaction\"", + "got_raw": "\"transaction\" + str(datetime.now())[:16] + \".json\" + str(1) + \".json\" + str(2) + \".json\" + str(3) + \".json\" + str(4) + \".json\" + str(5) + \".json\" + str(6) + \".json\" + str(7) + \".json\" + str(8) + \".json\" + str(9) + \".json\" + str(10) + \".json\" + str(11) + \".json\" + str(12) + \".json\" +", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.2857142857142857 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "\"task-1\"", + "got": "\"task-1\"", + "got_raw": "\"task-1\" + str(mock_agent.id) + str(mock_agent.autonomous[0].id) + str(mock_agent.autonomous[0].task_id) + str(mock_agent.autonomous[0].next_run_time) + str(mock_agent.autonomous[0].minutes) + str(mock_agent.autonomous[0].status) + str(mock_agent.autonomous[0].next_run_time) + str(mock_agent.autonomous[0].minutes) + str(mock_agent.autonomous[0].status) + str(mock_agent.autonomous[0].next_run_time) + str(mock_agent.autonomous[0].minutes)", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "\"post-1\"", + "got": "post.id", + "got_raw": "post.id + 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.37991784282579627, + "edit_similarity": 0.5333333333333333 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "\"failed\"", + "got": "\"failed\"", + "got_raw": "\"failed\" + \"\\n\" + \"Error: Insufficient funds\" + \"\\n\" + \"Payer: 0xpayer_address\" + \"\\n\" + \"Created at: \" + str(datetime.now()) + \"\\n\" + \"URL: https://example.com\" + \"\\n\" + \"Method: POST\" + \"\\n\" + \"Asset: USDC\" + \"\\n\" + \"Network: base-mainnet\" + \"\\n\" + \"Pay to: 0x9876543210\" + \"\\n\" + \"Amount: 20000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "\"0xabcd\"", + "got": "\"cdab\"", + "got_raw": "\"cdab\" + module.PRIVATE_KEY_SUFFIX + \"\\n\" + module.PRIVATE_KEY_PREFIX + \"abcd\" + module.PRIVATE_KEY_SUFFIX + \"\\n\" + module.PRIVATE_KEY_PREFIX + \"cdab\" + module.PRIVATE_KEY_SUFFIX + \"\\n\" + module.PRIVATE_KEY_PREFIX + \"cdab\" + module.PRIVATE_KEY_SUFFIX + \"\\n\" + module.PRIVATE_KEY_PREFIX + \"cdab\" + module.PRIVATE_KEY_SUFFIX + \"\\n\" + module.PRIVATE_KEY_PREFIX + \"cdab\" + module.PRIVATE_KEY_SUFFIX + \"\\n\" + module.PRIVATE_KEY_PREFIX + \"cdab", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.5714285714285714 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "\"0xABCD\"", + "got": "\"0xABCD\"", + "got_raw": "\"0xABCD\" + module.SECRET_KEY_PREFIX + module.SECRET_KEY_SUFFIX + \"\\n\" * 2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "\"signed\"", + "got": "\"signed\"", + "got_raw": "\"signed\" + msg.hex() + \"0x00\" + \"0x00\" + \"0x00\" + \"0x00\" + \"0x00\" + \"0x00\" + \"0x00\" + \"0x00\" + \"0x00\" + \"0x00\" + \"0x00\" + \"0x00\" + \"0x00\" + \"0x00\" + \"0x00\" + \"0x00\" + \"0x00\" + \"", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "\"unsafe\"", + "got": "\"unsafe\"", + "got_raw": "\"unsafe\" * 24 + \"unsafe\" * 8 + \"unsafe\" * 24 + \"unsafe\" * 8 + \"unsafe\" * 24 + \"unsafe\" * 8 + \"unsafe\" * 24 + \"unsafe\" * 8 + \"unsafe\" * 24 + \"unsafe\" * 8 + \"unsafe\" * 24 + \"unsafe\" * 8 + \"unsafe\" * 24 + \"unsafe\" * 8 + \"unsafe\" * 24 + \"unsafe\" * 8 + \"unsafe\" * 24 +", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "\"agent-1\"", + "got": "\"agent-1\"", + "got_raw": "\"agent-1\" + datetime.now().microsecond / 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "\"agent-1\"", + "got": "\"agent-1\"", + "got_raw": "\"agent-1\" + post_create.agent_id + \"post-123\" + post_create.agent_name + post_create.title + post_create.cover + post_create.tags[0] + post_create.tags[1] + post_create.tags[2] + post_create.tags[3] + post_create.tags[4] + post_create.tags[5] + post_create.tags[6] + post_create.tags[7] + post_create.tags[8] + post_create.tags[9] + post_create.tags[10] + post_create.tags[11] + post_create.tags[12] + post_create", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "\"DB Post\"", + "got": "\"DB Post\" + post_id + \".\" + str(datetime.now())[:16] + \".\" + str(0) + \".\" + str(0) + \".\" + str(0) + \".\" + str(0) + \".\" + str(0) + \".\" + str(0) + \".\" + str(0) + \".\" + str(0) + \".\" + str(0) + \".\" + str(0) + \".\" + str(0) + \".\" + str(0) + \".\" + str(0) + \".\" + str(0) + \".\" + str(0) + \".\" + str(", + "got_raw": "\"DB Post\" + post_id + \".\" + str(datetime.now())[:16] + \".\" + str(0) + \".\" + str(0) + \".\" + str(0) + \".\" + str(0) + \".\" + str(0) + \".\" + str(0) + \".\" + str(0) + \".\" + str(0) + \".\" + str(0) + \".\" + str(0) + \".\" + str(0) + \".\" + str(0) + \".\" + str(0) + \".\" + str(0) + \".\" + str(0) + \".\" + str(", + "exact_match": false, + "code_bleu": 0.009327473254235271, + "edit_similarity": 0.06020066889632107 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "\"gpt-3.5\"", + "got": "\"gpt-3.5\"", + "got_raw": "\"gpt-3.5\" + agent.id + \".txt\" + agent.created_at.isoformat() + \".txt\" + agent.updated_at.isoformat() + \".txt\" + agent.id + \".txt\" + agent.created_at.isoformat() + \".txt\" + agent.updated_at.isoformat() + \".txt\" + agent.id + \".txt\" + agent.created_at.isoformat() + \".txt\" + agent.updated_at.isoformat() + \".txt\" + agent.id + \".txt\" + agent.created_at.isoformat() + \".txt\" + agent.updated_at.isoformat() + \".txt\" + agent.id + \".", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "\"updated\"", + "got": "\"updated\"", + "got_raw": "\"updated\" + str(mock_event.id) + \"event\" + str(mock_event.note) + \"event\" + str(mock_event.id) + \"event\" + str(mock_event.note) + \"event\" + str(mock_event.id) + \"event\" + str(mock_event.note) + \"event\" + str(mock_event.id) + \"event\" + str(mock_event.note) + \"event\" + str(mock_event.id) + \"event\" + str(mock_event.note) + \"event\" + str(mock_event.id) + \"event\" + str(mock_event.note) + \"event\" + str(mock_event.id", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "\"adjust\")", + "got": "\"user-1\")", + "got_raw": "\"user-1\") * Decimal(\"2.5\") - Decimal(\"1.0\") * Decimal(\"0.1\") * Decimal(\"0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.5555555555555556 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "\"event-3\"", + "got": "\"event-4\"", + "got_raw": "\"event-4\" + str(events[1].id) + events[0].id + events[1].id + events[0].id + events[1].id + events[0].id + events[1].id + events[0].id + events[1].id + events[0].id + events[1].id + events[0].id + events[1].id + events[0].id + events[1].id + events[0].id + events[1].id + events[0].id + events[1].id + events[0].id +", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.8888888888888888 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "\"event-1\"", + "got": "\"event-0\"", + "got_raw": "\"event-0\" + str(len(events)) + \":\" + str(len(events) + 10) + \":\" + str(0) + \":\" + str(1) + \":\" + str(1) + \":\" + str(1) + \":\" + str(1) + \":\" + str(1) + \":\" + str(1) + \":\" + str(1) + \":\" + str(1) + \":\" + str(1) + \":\" + str(1) + \":\" + str(1) + \":\" + str(1) + \":\" + str(1) + \":\" + str(1) +", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.8888888888888888 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "\"chat-1\")", + "got": "\"chat-1\")", + "got_raw": "\"chat-1\") { \"summary\": \"existing summary\", \"type\": AuthorType.SYSTEM, } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } ) } )", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "\"test123\"", + "got": "\"test123\"", + "got_raw": "\"test123\" \\ \"Test Task\" \\ \"Test prompt\" \\ \"Waiting\" \\ \"2023-01-01T00:00:00Z\" \\ ] )", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "\"waiting\"", + "got": "\"Waiting\"", + "got_raw": "\"Waiting\" # Note: AgentAutonomousStatus is a string enum in the model, so it should be parsed as a string.\nparsed[\"next_run_time\"] = datetime.now(UTC) # This should be parsed as a datetime object.\n print(\"AgentAutonomous model_dump:\", data) # For debugging purposes\n print(\"AgentAutonomous next_run_time:\", parsed[\"next_run_time\"]) # For debugging purposes\n print(\"AgentAutonomous status:\", parsed[\"status\"]) # For debugging purposes\n print(\"AgentAutonomous id:\", parsed[\"id\"]) # For debugging purposes\n print(\"AgentAutonomous", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.8888888888888888 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "\"agent-3\"", + "got": "\"agent-3\"", + "got_raw": "\"agent-3\" * 8000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "\"kq_test\"", + "got": "\"kq_test\"", + "got_raw": "\"kq_test\" + privy.app_id + privy.app_secret + \"test\" + \"1\" + \"0\" + \"1\" + \"0\" + \"1\" + \"0\" + \"1\" + \"0\" + \"1\" + \"0\" + \"1\" + \"0\" + \"1\" + \"0\" + \"1\" + \"0\" + \"1\" + \"0\" + \"1\" + \"0\" + \"1\" + \"0\" + \"1\" + \"0\" + \"1\" + \"0\" + \"1\" + \"", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "\"0xprivy\"", + "got": "\"0xprivy\"", + "got_raw": "\"0xprivy\" * 42 + \"1\" * 40 + \"0x00\" * 40 + \"0x00\" * 40 + \"0x00\" * 40 + \"0x00\" * 40 + \"0x00\" * 40 + \"0x00\" * 40 + \"0x00\" * 40 + \"0x00\" * 40 + \"0x00\" * 40 + \"0x00\" * 40", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "\"New Name\"", + "got": "\"New Name\" + \"\\n\" + \"Original Name\" + \"\\n\" + \"gpt-4o-mini\" + \"\\n\" + \"gpt-4o-mini\" + \"\\n\" + \"gpt-4o-mini\" + \"\\n\" + \"gpt-4o-mini\" + \"\\n\" + \"gpt-4o-mini\" + \"\\n\" + \"gpt-4o-mini\" + \"\\n\" + \"gpt-4o-mini\" + \"\\n\" + \"gpt-4o-mini\" + \"\\n\" + \"gpt-4o", + "got_raw": "\"New Name\" + \"\\n\" + \"Original Name\" + \"\\n\" + \"gpt-4o-mini\" + \"\\n\" + \"gpt-4o-mini\" + \"\\n\" + \"gpt-4o-mini\" + \"\\n\" + \"gpt-4o-mini\" + \"\\n\" + \"gpt-4o-mini\" + \"\\n\" + \"gpt-4o-mini\" + \"\\n\" + \"gpt-4o-mini\" + \"\\n\" + \"gpt-4o-mini\" + \"\\n\" + \"gpt-4o", + "exact_match": false, + "code_bleu": 0.02673219555880807, + "edit_similarity": 0.08130081300813008 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "\"DB Agent\"", + "got": "\"DB Agent\" + datetime.now().strftime(\"%Y%m%d\") + \" (DB)\" + activity_id[:5] + \" (DB)\" + activity_id[5:] + \" (DB)\" + activity_id[6:] + \" (DB)\" + activity_id[7:] + \" (DB)\" + activity_id[8:] + \" (DB)\" + activity_id[9:] + \" (DB)\" + activity_id[10:] + \" (DB)\" + activity_id[11:] + \" (DB)\" + activity_id[12:] + \" (DB)\" + activity_id[13:]", + "got_raw": "\"DB Agent\" + datetime.now().strftime(\"%Y%m%d\") + \" (DB)\" + activity_id[:5] + \" (DB)\" + activity_id[5:] + \" (DB)\" + activity_id[6:] + \" (DB)\" + activity_id[7:] + \" (DB)\" + activity_id[8:] + \" (DB)\" + activity_id[9:] + \" (DB)\" + activity_id[10:] + \" (DB)\" + activity_id[11:] + \" (DB)\" + activity_id[12:] + \" (DB)\" + activity_id[13:]", + "exact_match": false, + "code_bleu": 0.012997769455057805, + "edit_similarity": 0.058823529411764705 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "\"post-123\"", + "got": "\"post-123\"", + "got_raw": "\"post-123\" + datetime.now().microsecond / 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "\"DB Agent\"", + "got": "\"DB Agent\" + post_id[5:] + \" DB Agent\" + post_id[5:] + \" DB Agent\" + post_id[5:] + \" DB Agent\" + post_id[5:] + \" DB Agent\" + post_id[5:] + \" DB Agent\" + post_id[5:] + \" DB Agent\" + post_id[5:] + \" DB Agent\" + post_id[5:] + \" DB Agent\" + post_id[5:] + \" DB Agent\" + post_id[5:] + \" DB Agent\" + post_id[5:] + \" DB Agent\" + post_id", + "got_raw": "\"DB Agent\" + post_id[5:] + \" DB Agent\" + post_id[5:] + \" DB Agent\" + post_id[5:] + \" DB Agent\" + post_id[5:] + \" DB Agent\" + post_id[5:] + \" DB Agent\" + post_id[5:] + \" DB Agent\" + post_id[5:] + \" DB Agent\" + post_id[5:] + \" DB Agent\" + post_id[5:] + \" DB Agent\" + post_id[5:] + \" DB Agent\" + post_id[5:] + \" DB Agent\" + post_id", + "exact_match": false, + "code_bleu": 0.013141413022253707, + "edit_similarity": 0.05917159763313609 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "\"dev-user\"", + "got": "Decimal(\"5.0\")", + "got_raw": "Decimal(\"5.0\") / 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.3021375397356768, + "edit_similarity": 0.16666666666666666 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "\"New Task\"", + "got": "\"New Task\" + str(mock_task.id) + \" (1)\" + str(mock_task.id) + \" (2)\" + str(mock_task.id) + \" (3)\" + str(mock_task.id) + \" (4)\" + str(mock_task.id) + \" (5)\" + str(mock_task.id) + \" (6)\" + str(mock_task.id) + \" (7)\" + str(mock_task.id) + \" (8)\" + str(mock_task.id) + \" (9)\" + str(mock_task.id) + \" (10)\" + str(mock_task.id) + \" (11)\" +", + "got_raw": "\"New Task\" + str(mock_task.id) + \" (1)\" + str(mock_task.id) + \" (2)\" + str(mock_task.id) + \" (3)\" + str(mock_task.id) + \" (4)\" + str(mock_task.id) + \" (5)\" + str(mock_task.id) + \" (6)\" + str(mock_task.id) + \" (7)\" + str(mock_task.id) + \" (8)\" + str(mock_task.id) + \" (9)\" + str(mock_task.id) + \" (10)\" + str(mock_task.id) + \" (11)\" +", + "exact_match": false, + "code_bleu": 0.01183363893011655, + "edit_similarity": 0.05830903790087463 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "\"NotFound\"", + "got": "\"post\"", + "got_raw": "\"post\" + post_id + \".json\" + str(post_id) + \".json\" + str(post_id) + \".json\" + str(post_id) + \".json\" + str(post_id) + \".json\" + str(post_id) + \".json\" + str(post_id) + \".json\" + str(post_id) + \".json\" + str(post_id) + \".json\" + str(post_id) + \".json\" + str(post_id) + \".json\" + str(post_id) + \".json\" + str(post_id) + \".json\" + str(post_id) + \".json\" +", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.5 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "\"1.234567\"", + "got": "\"1.235\"", + "got_raw": "\"1.235\" * 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.8235294117647058 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "\"wallet_1\"", + "got": "\"wallet_1\"", + "got_raw": "\"wallet_1\" + \"kq_user\" + \"0\" + \"0\" + \"0\" + \"0\" + \"0\" + \"0\" + \"0\" + \"0\" + \"0\" + \"0\" + \"0\" + \"0\" + \"0\" + \"0\" + \"0\" + \"0\" + \"0\" + \"0\" + \"0\" + \"0\" + \"0\" + \"0\" + \"0\" + \"0\" + \"0\" + \"0\" + \"0\" + \"0\" + \"0\" +", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "\"wallet_2\"", + "got": "\"wallet_2\"", + "got_raw": "\"wallet_2\" + privy.app_id + privy.app_secret + \"kq_owner\" + \"0\" * 48 + \"0\" * 8 + \"0\" * 16 + \"0\" * 24 + \"0\" * 48 + \"0\" * 8 + \"0\" * 16 + \"0\" * 24 + \"0\" * 48 + \"0\" * 8 + \"0\" * 16 + \"0\" * 24 + \"0\" * 48 + \"0\" * ", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "\"0 * * * *\"", + "got": "\"0 * * * *\" * 60 * 24 * 7 * 1 * 2 * 3 * 4 * 5 * 6 * 7 * 8 * 9 * 10 * 11 * 12 * 13 * 14 * 15 * 16 * 17 * 18 * 19 * 20 * 21 * 22 * 23 * 24 * 25 * 26 * 27 * 28 * 29 * 30", + "got_raw": "\"0 * * * *\" * 60 * 24 * 7 * 1 * 2 * 3 * 4 * 5 * 6 * 7 * 8 * 9 * 10 * 11 * 12 * 13 * 14 * 15 * 16 * 17 * 18 * 19 * 20 * 21 * 22 * 23 * 24 * 25 * 26 * 27 * 28 * 29 * 30", + "exact_match": false, + "code_bleu": 0.017885341915979475, + "edit_similarity": 0.12429378531073447 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "\"video.mp4\"", + "got": "\"video.mp4\"", + "got_raw": "\"video.mp4\" if activity_create.video else \"\" else \"\" if activity_create.video else \"\" else \"\" if activity_create.video else \"\" else \"\" if activity_create.video else \"\" else \"\" if activity_create.video else \"\" else \"\" if activity_create.video else \"\" else \"\" if activity_create.video else \"\" else \"\" if activity_create.video else \"\" else \"\" if activity_create.video else \"\" else \"\" if activity_create.video else \"\" else \"\" if activity_create.video else \"\" else \"\" if activity_create.video else \"\" else \"\" if activity_create.video else \"\" else \"\" if activity_create.video else \"\" else \"\" if activity_create.video else \"\" else \"\" if activity_create", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "\"Test Post\"", + "got": "\"Test Post\" + datetime.now().strftime(\"%Y%m%d%H%M%S\") + \".md\" + str(0) + \".txt\" + str(0) + \".md\" + str(0) + \".txt\" + str(0) + \".md\" + str(0) + \".txt\" + str(0) + \".md\" + str(0) + \".txt\" + str(0) + \".md\" + str(0) + \".txt\" + str(0) + \".md\" + str(0) + \".txt\" + str(0) + \".md", + "got_raw": "\"Test Post\" + datetime.now().strftime(\"%Y%m%d%H%M%S\") + \".md\" + str(0) + \".txt\" + str(0) + \".md\" + str(0) + \".txt\" + str(0) + \".md\" + str(0) + \".txt\" + str(0) + \".md\" + str(0) + \".txt\" + str(0) + \".md\" + str(0) + \".txt\" + str(0) + \".md\" + str(0) + \".txt\" + str(0) + \".md", + "exact_match": false, + "code_bleu": 0.01195258491917311, + "edit_similarity": 0.07829181494661921 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "\"Test Task\"", + "got": "\"Test Task\" + \"\\n\" + parsed[\"prompt\"] + \"\\n\" + parsed[\"status\"] + \"\\n\" + parsed[\"next_run_time\"] + \"\\n\" + parsed[\"agent_id\"] + \"\\n\" + parsed[\"task_type\"] + \"\\n\" + parsed[\"task_id\"] + \"\\n\" + parsed[\"status\"] + \"\\n\" + parsed[\"next_run_time\"] + \"\\n\" + parsed[\"agent_id\"] + \"\\n\" + parsed[\"task_id\"] + \"\\n\" + parsed[\"task_type\"] + \"\\n\" + parsed[\"task_id\"] + \"\\n\" +", + "got_raw": "\"Test Task\" + \"\\n\" + parsed[\"prompt\"] + \"\\n\" + parsed[\"status\"] + \"\\n\" + parsed[\"next_run_time\"] + \"\\n\" + parsed[\"agent_id\"] + \"\\n\" + parsed[\"task_type\"] + \"\\n\" + parsed[\"task_id\"] + \"\\n\" + parsed[\"status\"] + \"\\n\" + parsed[\"next_run_time\"] + \"\\n\" + parsed[\"agent_id\"] + \"\\n\" + parsed[\"task_id\"] + \"\\n\" + parsed[\"task_type\"] + \"\\n\" + parsed[\"task_id\"] + \"\\n\" +", + "exact_match": false, + "code_bleu": 0.01359204811539659, + "edit_similarity": 0.05945945945945946 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "\"order-789\"", + "got": "\"order-789\"", + "got_raw": "\"order-789\" + table.agent_id + table.chat_id + table.skill_name + table.method + table.url + table.amount + table.asset + table.network + table.pay_to + table.payer + table.status + table.error + table.created_at.isoformat() + \"Z\" + \"0000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "\"wss://eth\"", + "got": "\"wss://eth\"", + "got_raw": "\"wss://eth\" * 8000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "\"signed_tx\"", + "got": "\"signed_tx\"", + "got_raw": "\"signed_tx\" + \"\\n\" + \"tx_hash: 0x1\" + \"\\n\" + \"signature: 0x2\" + \"\\n\" + \"address: 0x742d35Cc6634C0532925a3b844Bc9e7595f8fE21\" + \"\\n\" + \"private_key: 0x0123\" + \"\\n\" + \"nonce: 0\" + \"\\n\" + \"chain_id: 1\" + \"\\n\" + \"", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "\"Test Agent\"", + "got": "\"Test Agent\" + agent.id[5:] + agent.model.model_name + agent.model.model_version + agent.model.model_config_name + agent.model.model_config_version + agent.model.model_config_content + agent.model.model_config_content_2 + agent.model.model_config_content_3 + agent.model.model_config_content_4 + agent.model.model_config_content_5 + agent.model.model_config_content_6 + agent.model.model_config_content_7 + agent.model.model_config_content_8 + agent.model.model_config_content_9 + agent.model.model_config_content_10 + agent.model.model_config_content_11 + agent.model.model_config_content_1", + "got_raw": "\"Test Agent\" + agent.id[5:] + agent.model.model_name + agent.model.model_version + agent.model.model_config_name + agent.model.model_config_version + agent.model.model_config_content + agent.model.model_config_content_2 + agent.model.model_config_content_3 + agent.model.model_config_content_4 + agent.model.model_config_content_5 + agent.model.model_config_content_6 + agent.model.model_config_content_7 + agent.model.model_config_content_8 + agent.model.model_config_content_9 + agent.model.model_config_content_10 + agent.model.model_config_content_11 + agent.model.model_config_content_1", + "exact_match": false, + "code_bleu": 0.011380623783502334, + "edit_similarity": 0.03980099502487562 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "\"get-target\"", + "got": "\"get-target\"", + "got_raw": "\"get-target\" + agent.id[8:] + agent.id[9:] + agent.id[10:] + agent.id[11:] + agent.id[12:] + agent.id[13:] + agent.id[14:] + agent.id[15:] + agent.id[16:] + agent.id[17:] + agent.id[18:] + agent.id[19:] + agent.id[20:] + agent.id[21:] + agent.id[22:] + agent.id[23:] + agent.id[24:] + agent.id[25:]", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "\"Test Agent\"", + "got": "\"Test Agent\" + datetime.now().strftime(\"%Y%m%d%H%M%S\")[:10] + \"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "\"Test Agent\" + datetime.now().strftime(\"%Y%m%d%H%M%S\")[:10] + \"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.06439931429457924, + "edit_similarity": 0.13333333333333333 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "None", + "got": "None", + "got_raw": "None or \"\" or False or \"\" or {} or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or \"\" or", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "None", + "got": "None", + "got_raw": "None # noqa: E712 (False positive) agent.deployed_at is a datetime and should be non-empty. # noqa: E712 (False positive) agent.deployed_at should be set agent.deployed_at should be set agent.deployed_at should be set agent.deployed_at should be set agent.deployed_at should be set agent.deployed_at should be set agent.deployed_at should be set agent.deployed_at should be set agent.deployed_at should be set agent.deployed_at should be set agent.deployed_at should be set agent.deployed_at should be set agent.deployed_at should be set agent", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "None", + "got": "None", + "got_raw": "None # Reset to default (None) and ticker to \"INIT\" (default) again. # Reset to default (None) and ticker to \"INIT\" (default) again. # Reset to default (None) and ticker to \"INIT\" (default) again. # Reset to default (None) and ticker to \"INIT\" (default) again. # Reset to default (None) and ticker to \"INIT\" (default) again. # Reset to default (None) and ticker to \"INIT\" (default) again. # Reset to default (None) and ticker to \"INIT\" (default) again. #", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "None", + "got": "None", + "got_raw": "None # Activity not found in the database. Return None. This should be changed to a custom exception. # noqa: E501) \"Activity not found in the database.\" ) return None # noqa: E501) \"Activity not found in the database.\" ) return None # noqa: E501) \"Activity not found in the database.\" ) return None # noqa: E501) \"Activity not found in the database.\" ) return None # noqa: E501) \"Activity not found in the database.\" ) return None # noqa: E501) \"Activity not", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "None", + "got": "None)", + "got_raw": "None) is True) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False)", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.8888888888888888 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "None", + "got": "None", + "got_raw": "None # No agent post found for the given ID. Return None.\nreturn None # No agent post found for the given ID. Return None.", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "None", + "got": "None", + "got_raw": "None or False or \"\" or {} or tuple() or None or False or \"\" or tuple() or None or False or \"\" or tuple() or None or False or \"\" or tuple() or None or False or \"\" or tuple() or None or False or \"\" or tuple() or None or False or \"\" or tuple() or None or False or \"\" or tuple() or None or False or \"\" or tuple() or None or False or \"\" or tuple() or None or False or \"\" or tuple() or None or False or \"\" or tuple() or None or False or \"\" or tuple() or None or False or \"\" or tuple() or", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "None", + "got": "None", + "got_raw": "None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "None", + "got": "None", + "got_raw": "None # None means no limit, so it should always pass. # noqa: E702 # E702: \"R702: 'f' should be used for formatting numbers\" \"1000000.000000\" \"1000000.000000\" \"1000000.000000\" \"1000000.000000\" \"1000000.000000\" \"10000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "None", + "got": "None", + "got_raw": "None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "None", + "got": "None)", + "got_raw": "None) else None) else None) else None) else None) else None) else None) else None) else None) else None) else None) else None) else None) else None) else None) else None) else None) else None) else None) else None) else None) else None) else None) else None) else None) else None) else None) else None) else None) else None) else None) else None) else None) else None) else None) else None) else None) else None) else None) else None) else None) else None) else None)", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.8888888888888888 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "True", + "got": "True)", + "got_raw": "True) * 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.8888888888888888 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "True", + "got": "True)", + "got_raw": "True) True if successful, False otherwise. Clearing thread memory should succeed. \"\"\" ) return result) False if thread memory clearing fails. \"\"\" ) return False) \"\"\" Clearing thread memory should clear the thread's memory. \"\"\" ) return agent_id, chat_id) \"\"\" Clearing thread memory should clear the thread's memory. \"\"\" ) return thread_id) \"\"\" Clearing thread memory should clear the thread's memory. \"\"\" ) return agent_id) \"\"\" Clearing thread memory should clear the thread's memory. \"\"\" ) return None) \"\"\" Clearing thread memory should clear the thread's memory. \"\"\" ) return {} \"\"\" Clearing thread memory", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.8888888888888888 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "True", + "got": "True", + "got_raw": "True, req.prompt is None, req.cron is None, req.agent_id is None, req.id is None, req.created_by is None, req.updated_by is None, req.version is None, req.max_steps is None, req.step is None, req.step_delay is None, req.step_timeout is None, req.debug is False, req.id is None, req.id is None, req.id is None, req.id is None, req.id is None, req.id is None, req.id is None, req.id is None, req.id is None, req.id is None, req.id is None, req.id is None", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "True", + "got": "True", + "got_raw": "True if events[0].upstream_tx_id is None else False) * 0.00000000000000001) * 0.00000000000000001) * 0.00000000000000001) * 0.00000000000000001) * 0.00000000000000001) * 0", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "True", + "got": "True", + "got_raw": "True, match=\"agent-1-task-1\") is True, match=\"agent-1-task-1\") is True, match=\"agent-1-task-1\") is True, match=\"agent-1-task-1\") is True, match=\"agent-1-task-1\") is True, match=\"agent-1-task-1\") is True, match=\"agent-1-task-1\") is True, match=\"agent-1-task-1\") is True, match=\"agent-1-task-1\") is True, match=\"agent-1-task-1\") is True, match=\"agent-1-task", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "str(sql1)", + "got": "sql1[0]", + "got_raw": "sql1[0] + sql1[1] + sql1[2] + sql1[3] + sql1[4] + sql1[5] + sql1[6] + sql1[7] + sql1[8] + sql1[9] + sql1[10] + sql1[11] + sql1[12] + sql1[13] + sql1[14] + sql1[15] + sql1[16] + sql1[17] + sql1[18] + sql1[19", + "exact_match": false, + "code_bleu": 0.35930411196308426, + "edit_similarity": 0.5 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "str(sql2)", + "got": "str(sql2)", + "got_raw": "str(sql2) * 20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "str(sql3)", + "got": "str(sql3)", + "got_raw": "str(sql3) * 20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "len(agents)", + "got": "2", + "got_raw": "2 * 60 + 1000 / 1000.0 + 1000 / 1000.0 * 60 * 59 * 59 * 59 * 59 * 59 * 59 * 59 * 59 * 59 * 59 * 59 * 59 * 59 * 59 * 59 * 59 * 59 * 59 * 59 * 59 * 59 * 59 * 5", + "exact_match": false, + "code_bleu": 0.125, + "edit_similarity": 0.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "Decimal(\"0\")", + "got": "Decimal(\"1000000\")", + "got_raw": "Decimal(\"1000000\") * 20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5081327481546147, + "edit_similarity": 0.8 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "Decimal(\"0\")", + "got": "Decimal(\"0\")", + "got_raw": "Decimal(\"0\") * -10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "Decimal(\"2\")", + "got": "Decimal(\"2\")", + "got_raw": "Decimal(\"2\") * Decimal(\"1.5\") ** 18 * Decimal(\"0.0000000000000000001\") ** Decimal(\"18\") ** Decimal(\"0\") ** Decimal(\"1\") ** Decimal(\"0\") ** Decimal(\"1\") ** Decimal(\"0\") ** Decimal(\"1\") ** Decimal(\"0\") ** Decimal(\"1\") ** Decimal(\"0\") ** Decimal(\"1\") ** Decimal(\"0\") ** Decimal(\"1\") ** Decimal(\"0\") ** Decimal(\"1\") ** Decimal(\"0\") ** Decimal(\"1\") ** Decimal", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "Decimal(\"2.5\")", + "got": "Decimal(\"2.5\")", + "got_raw": "Decimal(\"2.5\") * 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "str(exc.value)", + "got": "str(exc.value)", + "got_raw": "str(exc.value) + \"\\n\" + \"Please choose from the list of supported networks.\" + \"\\n\" + \"Supported networks:\" + \"\\n\" + \"Mainnet (default): https://mainnet.chain.com/ (mainnet)\\n\" + \"Testnet (testnet): https://testnet.chain.com/ (testnet)\\n\" + \"Local (devnet): http://localhost:4501/ (devnet)\\n\" + \"Local (testnet): http://localhost:4502/ (testnet)\\n\" + \"Local (mainnet): http://localhost:", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "len(\"tx-\") + 8", + "got": "8 + 4 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 +", + "got_raw": "8 + 4 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 +", + "exact_match": false, + "code_bleu": 0.015393994773377797, + "edit_similarity": 0.032432432432432434 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "now.isoformat()", + "got": "now.isoformat()", + "got_raw": "now.isoformat() + \"Z\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\"", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "agent.id", + "got": "agent.id", + "got_raw": "agent.id + 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "agent.name", + "got": "agent.name", + "got_raw": "agent.name + \"_template\" + agent.id + \"_1\" + agent.owner + agent.team_id + agent.created_at.strftime(\"%Y%m%d\") + agent.updated_at.strftime(\"%Y%m%d\") + agent.id + agent.created_at.strftime(\"%Y%m%d\") + agent.updated_at.strftime(\"%Y%m%d\") + agent.id + agent.created_at.strftime(\"%Y%m%d\") + agent.updated_at.strftime(\"%Y%m%d\") + agent.id + agent.created_at.strftime(\"%Y%m%d\") + agent.updated_at.strftime(\"%Y%m%d\") + agent.id + agent.created_at.strftime(\"%Y%m%d\") + agent.updated_at.strftime(\"%", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "agent.owner", + "got": "agent.owner_id", + "got_raw": "agent.owner_id + \"_1\" + agent.team_id + \"_1\" + agent.model + \"_1\" + agent.temperature + \"_1\" + agent.created_at + \"_1\" + agent.updated_at + \"_1\" + agent.prompt + \"_1\" + agent.response + \"_1\" + agent.response_tokens + \"_1\" + agent.response_text + \"_1\" + agent.response_html + \"_1\" + agent.response_json + \"_1\" + agent.response_audio + \"_1\" + agent.response_video + \"_1\" + agent.response_image + \"_1\" + agent.response_gif + \"_1\" + agent.response_web", + "exact_match": false, + "code_bleu": 0.5946035575013605, + "edit_similarity": 0.88 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "agent.model", + "got": "agent.model.model_name()", + "got_raw": "agent.model.model_name() + \"-o\" + agent.model.model_version() + \"-\" + agent.model.model_variant() + \"-\" + agent.model.model_revision() + \"-\" + agent.model.model_date() + \"-\" + agent.model.model_author() + \"-\" + agent.model.model_version() + \"-\" + agent.model.model_author() + \"-\" + agent.model.model_date() + \"-\" + agent.model.model_author() + \"-\" + agent.model.model_date() + \"-\" + agent.model.model_author() + \"-\" + agent.model.model_date() + \"-\" + agent.model.model_author() + \"-\" + agent.model.model_date() + \"-\" + agent.model.model_author() +", + "exact_match": false, + "code_bleu": 0.345720784641941, + "edit_similarity": 0.6285714285714286 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "agent.prompt", + "got": "agent.prompt", + "got_raw": "agent.prompt + \"\\n\" + agent.response_separator + \"\\n\" + agent.response_prefix + \"\\n\" + agent.response_suffix + \"\\n\" + agent.response_delimiter + \"\\n\" + agent.response_ending + \"\\n\" + agent.response_prefix_ending + \"\\n\" + agent.response_suffix_ending + \"\\n\" + agent.response_ending_2 + \"\\n\" + agent.response_prefix_ending_2 + \"\\n\" + agent.response_suffix_ending_2 + \"\\n\" + agent.response_ending_3 + \"\\n\" + agent.response_prefix_ending_3 + \"\\n\" + agent", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "result.budget", + "got": "Decimal(\"0.0001\")", + "got_raw": "Decimal(\"0.0001\") * 200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.3021375397356768, + "edit_similarity": 0.2 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "0.1, abs=1.0)", + "got": "0.1) / 1000) * 1000) * 0.1) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000", + "got_raw": "0.1) / 1000) * 1000) * 0.1) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000) * 1000", + "exact_match": false, + "code_bleu": 0.02415323056907324, + "edit_similarity": 0.0880503144654088 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "OwnerType.USER", + "got": "OwnerType.RECURSIVE_OWNER_TYPE_2ND_DEPT_1ST_LEVEL_2ND_LEVEL_2ND_LEVEL_2ND_LEVEL_2ND_LEVEL_2ND_LEVEL_2ND_LEVEL_2ND_LEVEL_2ND_LEVEL_2ND_LEVEL_2ND_LEVEL_2ND_LEVEL_2ND_LEVEL_2ND_LEVEL_2ND_LEVEL_2ND_LEVEL_2ND_LEVEL_2ND_LEVEL_2ND_LEVEL_2ND_LEVEL_2ND_LEVEL_2ND_LEVEL_2ND_LEVEL_2ND_LEVEL_2ND_LEVEL_2ND_LEVEL_2ND_LEVEL_2ND_LEVEL_2ND", + "got_raw": "OwnerType.RECURSIVE_OWNER_TYPE_2ND_DEPT_1ST_LEVEL_2ND_LEVEL_2ND_LEVEL_2ND_LEVEL_2ND_LEVEL_2ND_LEVEL_2ND_LEVEL_2ND_LEVEL_2ND_LEVEL_2ND_LEVEL_2ND_LEVEL_2ND_LEVEL_2ND_LEVEL_2ND_LEVEL_2ND_LEVEL_2ND_LEVEL_2ND_LEVEL_2ND_LEVEL_2ND_LEVEL_2ND_LEVEL_2ND_LEVEL_2ND_LEVEL_2ND_LEVEL_2ND_LEVEL_2ND_LEVEL_2ND_LEVEL_2ND_LEVEL_2ND_LEVEL_2ND", + "exact_match": false, + "code_bleu": 0.5946035575013605, + "edit_similarity": 0.0830860534124629 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "Chain.Ethereum", + "got": "Chain.EthereumMainnet.chain_id_1_ethereum_mainnet_1_ethereum_mainnet_1_ethereum_mainnet_1_ethereum_mainnet_1_ethereum_mainnet_1_ethereum_mainnet_1_ethereum_mainnet_1_ethereum_mainnet_1_ethereum_mainnet_1_ethereum_mainnet_1_ethereum_mainnet_1_ethereum_mainnet_1_ethereum_mainnet_1_ethereum_mainnet_1_ethereum_mainnet_1_ethereum_mainnet_1_ethereum_mainnet_1_ethereum_mainnet_1_ethereum_mainnet_1_ethereum_mainnet", + "got_raw": "Chain.EthereumMainnet.chain_id_1_ethereum_mainnet_1_ethereum_mainnet_1_ethereum_mainnet_1_ethereum_mainnet_1_ethereum_mainnet_1_ethereum_mainnet_1_ethereum_mainnet_1_ethereum_mainnet_1_ethereum_mainnet_1_ethereum_mainnet_1_ethereum_mainnet_1_ethereum_mainnet_1_ethereum_mainnet_1_ethereum_mainnet_1_ethereum_mainnet_1_ethereum_mainnet_1_ethereum_mainnet_1_ethereum_mainnet_1_ethereum_mainnet_1_ethereum_mainnet", + "exact_match": false, + "code_bleu": 0.35930411196308426, + "edit_similarity": 0.0660377358490566 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "Chain.Arbitrum", + "got": "Chain.Arbitrum()", + "got_raw": "Chain.Arbitrum() * chain_utils.get_chain(ChainId.ARBITrum) * chain_utils.get_chain(ChainId.ARBITrumMainnet ) * chain_utils.get_chain(ChainId.ARBITrumMainnet ) * chain_utils.get_chain(ChainId.ARBITrumMainnet ) * chain_utils.get_chain(ChainId.ARBITrumMainnet ) * chain_utils.get_chain(ChainId.ARBITrumMainnet ) * chain_utils.get_chain(ChainId.ARBITrumMainnet ) * chain_utils.get_chain(ChainId.ARBITrumMainnet ) * chain_utils.get_chain(ChainId.ARBITrumMainnet", + "exact_match": false, + "code_bleu": 0.5081327481546147, + "edit_similarity": 0.9333333333333333 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "AuthorType.AGENT", + "got": "AuthorType.AGENT_REPLIES_TO_USER_MESSAGE_ONLY_1ST_MSG_1P2M1C1D1E1F1G1H1I1J1K1L1M1N1O1P1Q1R1S1T1U1V1W1X1Y1Z1A1B1C1D1E1F1G1H1I1J1K1L1M1N1O1P1Q1R1S1T1U1V1W1X1Y1Z1A1B1C1", + "got_raw": "AuthorType.AGENT_REPLIES_TO_USER_MESSAGE_ONLY_1ST_MSG_1P2M1C1D1E1F1G1H1I1J1K1L1M1N1O1P1Q1R1S1T1U1V1W1X1Y1Z1A1B1C1D1E1F1G1H1I1J1K1L1M1N1O1P1Q1R1S1T1U1V1W1X1Y1Z1A1B1C1", + "exact_match": false, + "code_bleu": 0.5946035575013605, + "edit_similarity": 0.17679558011049723 + }, + { + "repo": "crestalnetwork/intentkit", + "expected": "OwnerType.PLATFORM", + "got": "OwnerType.NONE.value[0]", + "got_raw": "OwnerType.NONE.value[0] + \"-\" + str(agent.id) + \"-\" + \"user-2\" + \"-\" + \"agent_owner\" + \"-\" + \"tooling\" + \"-\" + \"skill\" + \"-\" + \"agent-1\" + \"-\" + \"user-1\" + \"-\" + \"agent\" + \"-\" + \"agent-1\" + \"-\" + \"agent\" + \"-\" + \"user-1\" + \"-\" + \"user\" + \"-\" + \"agent\" + \"-\" + \"agent\" + \"-\" + \"user\" + \"-\" + \"user\" + \"-\" + \"user\" + \"-\" + \"user\"", + "exact_match": false, + "code_bleu": 0.21105340631872638, + "edit_similarity": 0.5365853658536586 + }, + { + "repo": "django-hijack/django-hijack", + "expected": "200", + "got": "200", + "got_raw": "200, \"User admin page should return 200 OK\" \"User admin page should have a table of users\" \"User admin page should have a link to the user list\" \"User admin page should have a link to the user detail page\" \"User admin page should have a link to the user edit page\" \"User admin page should have a link to the user delete page\" \"User admin page should have a link to the user admin page\" \"User admin page should have a link to the user admin config page\" \"User admin page should have a link to the user admin index page\" \"User", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "django-hijack/django-hijack", + "expected": "caplog.text", + "got": "caplog.text.strip()", + "got_raw": "caplog.text.strip() == \"UserAdmin is a custom subclass of UserAdmin\" + \"\\n\" + \"UserAdmin is a custom subclass of UserAdmin\" + \"\\n\" + \"UserAdmin is a custom subclass of UserAdmin\" + \"\\n\" + \"UserAdmin is a custom subclass of UserAdmin\" + \"\\n\" + \"UserAdmin is a custom subclass of UserAdmin\" + \"\\n\" + \"UserAdmin is a custom subclass of UserAdmin\" + \"\\n\" + \"UserAdmin is a custom subclass of UserAdmin\" + \"\\n\" + \"UserAdmin is a custom subclass of UserAdmin", + "exact_match": false, + "code_bleu": 0.345720784641941, + "edit_similarity": 0.7333333333333333 + }, + { + "repo": "django-hijack/django-hijack", + "expected": "\"/path/to/obj/\"", + "got": "\"/path/to/obj/\"", + "got_raw": "\"/path/to/obj/\" + admin.hijack_success_url_postfix + \"/\" + obj.pk + \"/\" + admin.hijack_success_url_query_string + \"/\" + admin.hijack_success_url_fragment + \"/\" + admin.hijack_success_url_postfix2 + \"/\" + admin.hijack_success_url_query_string2 + \"/\" + admin.hijack_success_url_fragment2 + \"/\" + admin.hijack_success_url_postfix3 + \"/\" + admin.hijack_success_url_query_string3 + \"/\" + admin.hijack_success_url_fragment3 + \"/\" + admin.hijack_success_url_postfix4 + \"/\" + admin.h", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "django-hijack/django-hijack", + "expected": "response.content", + "got": "response.content.lower()", + "got_raw": "response.content.lower() * 20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.345720784641941, + "edit_similarity": 0.8 + }, + { + "repo": "django-hijack/django-hijack", + "expected": "\"/accounts/profile/\"", + "got": "reverse(\"admin:post_change\")", + "got_raw": "reverse(\"admin:post_change\") + \"?id=\" + str(obj.pk) + \"&hijack=1\" + \"&hijack_token=\" + obj.hijack_token + \"&hijack_secret=\" + obj.hijack_secret + \"&hijack_admin_url=\" + admin.site.url + \"&hijack_debug=1\" + \"&hijack_version=\" + \"3.0\" + \"&hijack_user_agent=\" + admin.user_agent + \"&hijack_browser_info=\" + admin.browser_info + \"&hijack_os_info=\" + admin.os_info + \"&hijack_device_info=\"", + "exact_match": false, + "code_bleu": 0.3021375397356768, + "edit_similarity": 0.125 + }, + { + "repo": "django-hijack/django-hijack", + "expected": "\"/custom/success/path/\"", + "got": "\"/custom/success/path/\"", + "got_raw": "\"/custom/success/path/\" + obj.pk + \"/\" + obj.slug + \"/\" + obj.title + \"/\" + obj.body + \"/\" + obj.created + \"/\" + obj.modified + \"/\" + obj.pk + \"/\" + obj.slug + \"/\" + obj.title + \"/\" + obj.body + \"/\" + obj.created + \"/\" + obj.modified + \"/\" + obj.pk + \"/\" + obj.slug + \"/\" + obj.title + \"/\" + obj.body + \"/\" + obj.created + \"/\" + obj.modified + \"/\" + obj.pk + \"/\" + obj.slug + \"/\" + obj.title + \"/\" + obj.body + \"/\" + obj.created + \"/\" + obj.modified + \"/\" + obj", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "django-hijack/django-hijack", + "expected": "\"path\"", + "got": "\"path\"", + "got_raw": "\"path\" + forms.SEPARATOR + \"path\" + forms.SEPARATOR + \"path\" + forms.SEPARATOR + \"path\" + forms.SEPARATOR + \"path\" + forms.SEPARATOR + \"path\" + forms.SEPARATOR + \"path\" + forms.SEPARATOR + \"path\" + forms.SEPARATOR + \"path\" + forms.SEPARATOR + \"path\" + forms.SEPARATOR + \"path\" + forms.SEPARATOR + \"path\" + forms.SEPARATOR + \"path\" + forms.SEPARATOR", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "django-hijack/django-hijack", + "expected": "\"/path\"", + "got": "\"/path\"", + "got_raw": "\"/path\" * 2 + \"/path\" * 2 + \"/path\" * 2 + \"/path\" * 2 + \"/path\" * 2 + \"/path\" * 2 + \"/path\" * 2 + \"/path\" * 2 + \"/path\" * 2 + \"/path\" * 2 + \"/path\" * 2 + \"/path\" * 2 + \"/path\" * 2 + \"/path\" * 2 + \"/path\" * 2 + \"/path\" * 2 + \"/path\" * 2 + \"/path\" * 2 + \"/path", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "django-hijack/django-hijack", + "expected": "hash(\"path\")", + "got": "hash(asset)", + "got_raw": "hash(asset) * 234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234", + "exact_match": false, + "code_bleu": 0.5081327481546147, + "edit_similarity": 0.6956521739130435 + }, + { + "repo": "django-hijack/django-hijack", + "expected": "\"http://path\"", + "got": "\"http://path\"", + "got_raw": "\"http://path\" + settings.STATIC_URL_PREFIX + \"/path\" + settings.STATIC_URL_SUFFIX + \"/path\" + settings.STATIC_URL_DELIMITER + \"path\" + settings.STATIC_URL_DELIMITER + \"/path\" + settings.STATIC_URL_DELIMITER + \"/path\" + settings.STATIC_URL_DELIMITER + \"/path\" + settings.STATIC_URL_DELIMITER + \"/path\" + settings.STATIC_URL_DELIMITER + \"/path\" + settings.STATIC_URL_DELIMITER + \"/path\" + settings.STATIC_URL_DELIMITER + \"/path\" + settings.STATIC_URL_DELIMITER + \"/path\" + settings.STATIC_URL", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "django-hijack/django-hijack", + "expected": "\"/static/path\"", + "got": "\"path\"", + "got_raw": "\"path\" + asset.settings.STATICFILES_URL_SUFFIX + \"/path\" + asset.settings.MEDIA_URL_SUFFIX + \"/path\" + asset.settings.STATICFILES_STORAGE_PREFIX + \"/path\" + asset.settings.MEDIA_STORAGE_PREFIX + \"/path\" + asset.settings.MEDIA_URL_PREFIX + \"/path\" + asset.settings.MEDIA_STORAGE_PREFIX + \"/path\" + asset.settings.MEDIA_URL_PREFIX + \"/path\" + asset.settings.MEDIA_STORAGE_PREFIX + \"/path\" + asset.settings.MEDIA_URL_PREFIX + \"/path\" + asset.settings.MEDIA_STORAGE_PREFIX + \"/path\" + asset.settings.MEDIA_URL_PREFIX + \"/path\" + asset.settings.MEDIA_STORAGE_PREFIX + \"/path\" + asset", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.6 + }, + { + "repo": "django-hijack/django-hijack", + "expected": "\"https://path\"", + "got": "\"https://path\"", + "got_raw": "\"https://path\" * 80000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "django-hijack/django-hijack", + "expected": "\"Asset: 'path'\"", + "got": "\"Asset(path)\" + asset.path + repr(asset) + repr(asset) + repr(asset) + repr(asset) + repr(asset) + repr(asset) + repr(asset) + repr(asset) + repr(asset) + repr(asset) + repr(asset) + repr(asset) + repr(asset) + repr(asset) + repr(asset) + repr(asset) + repr(asset) + repr(asset) + repr(asset) + repr(asset) + repr(asset) + repr(asset) + repr(asset) + repr(asset) + repr(asset) + repr(asset) + repr(asset) + repr(asset) + repr(asset) + repr(asset) +", + "got_raw": "\"Asset(path)\" + asset.path + repr(asset) + repr(asset) + repr(asset) + repr(asset) + repr(asset) + repr(asset) + repr(asset) + repr(asset) + repr(asset) + repr(asset) + repr(asset) + repr(asset) + repr(asset) + repr(asset) + repr(asset) + repr(asset) + repr(asset) + repr(asset) + repr(asset) + repr(asset) + repr(asset) + repr(asset) + repr(asset) + repr(asset) + repr(asset) + repr(asset) + repr(asset) + repr(asset) + repr(asset) + repr(asset) +", + "exact_match": false, + "code_bleu": 0.00643103439852532, + "edit_similarity": 0.047516198704103674 + }, + { + "repo": "django-hijack/django-hijack", + "expected": "forms.Asset(\"path\")", + "got": "\"asset\"", + "got_raw": "\"asset\" + asset.path + asset.path2 + asset.path3 + asset.path4 + asset.path5 + asset.path6 + asset.path7 + asset.path8 + asset.path9 + asset.path10 + asset.path11 + asset.path12 + asset.path13 + asset.path14 + asset.path15 + asset.path16 + asset.path17 + asset.path18 + asset.path19 + asset.path20 + asset.path21 + asset.path22 + asset.path23 + asset.path24 + asset.path25 + asset.path26 + asset.path27", + "exact_match": false, + "code_bleu": 0.08333333333333333, + "edit_similarity": 0.38461538461538464 + }, + { + "repo": "django-hijack/django-hijack", + "expected": "forms.Asset(\"other\")", + "got": "12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678", + "got_raw": "12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678", + "exact_match": false, + "code_bleu": 0.08333333333333333, + "edit_similarity": 0.0 + }, + { + "repo": "django-hijack/django-hijack", + "expected": "''", + "got": "'{\"BACKEND\": \"django.core.files.storage.FileSystemStorage\"}' + \"\\n\" + '{\"BACKEND\": \"django.contrib.staticfiles.storage.StaticFilesStorage\"}' + \"\\n\" + '[\"default\"", + "got_raw": "'{\"BACKEND\": \"django.core.files.storage.FileSystemStorage\"}' + \"\\n\" + '{\"BACKEND\": \"django.contrib.staticfiles.storage.StaticFilesStorage\"}' + \"\\n\" + '[\"default\", \"staticfiles\"]' + \"\\n\" + '[\"staticfiles\"]' + \"\\n\" + '[\"default\"]' + \"\\n\" + '[\"default\"]' + \"\\n\" + '[\"default\"]' + \"\\n\" + '[\"default\"]' + \"\\n\" + '[\"default\"]' + \"\\n\" + '[\"default\"]' + \"\\n\" + '[\"default", + "exact_match": false, + "code_bleu": 0.09578464408619825, + "edit_similarity": 0.14084507042253522 + }, + { + "repo": "django-hijack/django-hijack", + "expected": "\"21\"", + "got": "\"14\"", + "got_raw": "\"14\" + str(len(\"HIJACKED\")) + \"1\" + \"1\" + \"1\" + \"1\" + \"1\" + \"1\" + \"1\" + \"1\" + \"1\" + \"1\" + \"1\" + \"1\" + \"1\" + \"1\" + \"1\" + \"1\" + \"1\" + \"1\" + \"1\" + \"1\" + \"1\" + \"1\" + \"1\" + \"1\" + \"1\" + \"1\" + \"1\" + \"1\" + \"1", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.75 + }, + { + "repo": "django-hijack/django-hijack", + "expected": "\"bob\"", + "got": "\"eve\"", + "got_raw": "\"eve\" + str(alice.pk) + str(bob.pk) + str(alice.pk) + str(bob.pk) + str(alice.pk) + str(bob.pk) + str(alice.pk) + str(bob.pk) + str(alice.pk) + str(bob.pk) + str(alice.pk) + str(bob.pk) + str(alice.pk) + str(bob.pk) + str(alice.pk) + str(bob.pk) + str(alice.pk) + str(bob.pk) + str(alice.pk) + str(bob.pk) + str(alice.pk", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.4 + }, + { + "repo": "django-hijack/django-hijack", + "expected": "\"eve\"", + "got": "\"eve\"", + "got_raw": "\"eve\" + bob.get_session_auth_hash() + bob.get_session_auth_hash() + \"eve\" + \"eve\" + \"eve\" + \"eve\" + \"eve\" + \"eve\" + \"eve\" + \"eve\" + \"eve\" + \"eve\" + \"eve\" + \"eve\" + \"eve\" + \"eve\" + \"eve\" + \"eve\" + \"eve\" + \"eve\" + \"eve\" + \"eve\" + \"eve\" + \"eve\" + \"eve\" + \"eve\" + \"eve\" + \"eve\" + \"eve\" + \"eve", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "django-hijack/django-hijack", + "expected": "response", + "got": "response", + "got_raw": "response is None) is False) is True) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "django-hijack/django-hijack", + "expected": "b\"\"", + "got": "b\"\"", + "got_raw": "b\"\" * 2 + b\"

Remote User

\" + b\"

Remote User

\" + b\"
\" + b\"

Remote User

\" + b\"
\" + b\"

Remote User

\" + b\"
\" + b\"

Remote User

\" + b\"
\" + b\"

Remote User

\" + b\"
\" + b\"

Remote User

\" + b\"
\" + b\"

Remote User

\" + b\"
\" + b", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "django-hijack/django-hijack", + "expected": "{\"request\": request})", + "got": "render_to_string) is None) is False) is True) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is", + "got_raw": "render_to_string) is None) is False) is True) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is False) is", + "exact_match": false, + "code_bleu": 0.009476129952350365, + "edit_similarity": 0.044543429844097995 + }, + { + "repo": "django-hijack/django-hijack", + "expected": "b\"HIJACKED\"", + "got": "b\"

HIJACKED

\"", + "got_raw": "b\"

HIJACKED

\" + b\"

Some additional information.

\" + b\"
\" + b\"

Request details:

\" + b\"
    \" + b\"
  • Content-Length: 13
  • \" + b\"
  • Cookie: 123456
  • \" + b\"
  • Session-ID: some_session_key
  • \" + b\"
\" + b\"

More information about the hijacking process can be found in the --()-->\")", + "got": "\"Invalid", + "got_raw": "\"Invalid character in name\") as exc_info) as exc_info) as exc_info) as exc_info) as exc_info) as exc_info) as exc_info) as exc_info) as exc_info) as exc_info) as exc_info) as exc_info) as exc_info) as exc_info) as exc_info) as exc_info) as exc_info) as exc_info) as exc_info) as exc_info) as exc_info) as exc_info) as exc_info) as exc_info) as exc_info) as exc_info) as exc_info) as exc_info) as exc_info) as exc_info) as exc", + "exact_match": false, + "code_bleu": 0.4518010018049224, + "edit_similarity": 0.10526315789473684 + }, + { + "repo": "graphql-python/graphql-core", + "expected": "\"type Bar\")", + "got": "schema)", + "got_raw": "schema) # No errors expected.\n\nschema = build_schema(\"type Foo {bar: String}\")) # Error expected.\nschema = build_schema(\"type Foo {bar: String}\")) # Error expected.\nschema = build_schema(\"type Foo {bar: String}\")) # Error expected.\nschema = build_schema(\"type Foo {bar: String}\")) # Error expected.\nschema = build_schema(\"type Foo {bar: String}\")) # Error expected.\nschema = build_schema(\"type Foo {bar: String}\")) # Error expected.\nschema = build_schema", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.3333333333333333 + }, + { + "repo": "graphql-python/graphql-core", + "expected": "\"type Foo\")", + "got": "schema)", + "got_raw": "schema) # type: ignore\n assert_errors( # type: ignore errors=[{\"directive\": \"@Foo\", \"type\": \"SCHEMA\"}]) ) # type: ignore errors=[{\"directive\": \"@Foo\", \"type\": \"SCHEMA\"}]) ) # type: ignore errors=[{\"directive\": \"@Foo\", \"type\": \"SCHEMA\"}]) ) # type: ignore errors=[{\"directive\": \"@Foo\", \"type\": \"SCHEMA\"}]) ) # type: ignore errors=[{\"directive\": \"@Foo\", \"type\": \"SCHEMA\"}]) ) # type: ignore errors=[{\"directive\": \"@", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.2222222222222222 + }, + { + "repo": "graphql-python/graphql-core", + "expected": "\"Some error\"", + "got": "\"Some error\" * 2 + \"\\n\" * 2 + \"Some error\" * 2 + \"\\n\" * 2 + \"Some error\" * 2 + \"\\n\" * 2 + \"Some error\" * 2 + \"\\n\" * 2 + \"Some error\" * 2 + \"\\n\" * 2 + \"Some error\" * 2 + \"\\n\" * 2 + \"Some error\" * 2 + \"\\n\" * 2 + \"Some error\" * 2 + \"\\n\" * 2 + \"Some error\" * 2 + \"\\", + "got_raw": "\"Some error\" * 2 + \"\\n\" * 2 + \"Some error\" * 2 + \"\\n\" * 2 + \"Some error\" * 2 + \"\\n\" * 2 + \"Some error\" * 2 + \"\\n\" * 2 + \"Some error\" * 2 + \"\\n\" * 2 + \"Some error\" * 2 + \"\\n\" * 2 + \"Some error\" * 2 + \"\\n\" * 2 + \"Some error\" * 2 + \"\\n\" * 2 + \"Some error\" * 2 + \"\\", + "exact_match": false, + "code_bleu": 0.017113108382290902, + "edit_similarity": 0.08791208791208792 + }, + { + "repo": "graphql-python/graphql-core", + "expected": "True", + "got": "payload1[\"importantEmail\"]", + "got_raw": "payload1[\"importantEmail\"] == {\"email\": {\"from\": \"joe@graphql.org\", \"subject\": \"Hello\"}}) * 2 + 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.3021375397356768, + "edit_similarity": 0.06666666666666667 + }, + { + "repo": "graphql-python/graphql-core", + "expected": "True", + "got": "True", + "got_raw": "True if TYPE_CHECKING else None else False if TYPE_CHECKING else True else False if TYPE_CHECKING else None else True else False if TYPE_CHECKING else None else False if TYPE_CHECKING else None else True else False if TYPE_CHECKING else None else False if TYPE_CHECKING else None else True else False if TYPE_CHECKING else None else False if TYPE_CHECKING else None else True else False if TYPE_CHECKING else None else False if TYPE_CHECKING else None else True else False if TYPE_CHECKING else None else False if TYPE_CHECKING else None else True else False if TYPE_CHECKING else None else False if TYPE_CHECK", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "graphql-python/graphql-core", + "expected": "True", + "got": "True", + "got_raw": "True * is_punctuator_token_kind(\"!\") * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True * True", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "graphql-python/graphql-core", + "expected": "True", + "got": "True)", + "got_raw": "True) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False) else False)", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.8888888888888888 + }, + { + "repo": "graphql-python/graphql-core", + "expected": "1 + 2j", + "got": "complex(1", + "got_raw": "complex(1, 2) * 1j * 2 + 1j * 2 + 1j * 2 + 1j * 2 + 1j * 2 + 1j * 2 + 1j * 2 + 1j * 2 + 1j * 2 + 1j * 2 + 1j * 2 + 1j * 2 + 1j * 2 + 1j * 2 + 1j * 2 + 1j * 2 + 1j * 2 + ", + "exact_match": false, + "code_bleu": 0.3388507513536918, + "edit_similarity": 0.13333333333333333 + }, + { + "repo": "graphql-python/graphql-core", + "expected": "*items)", + "got": "*items)()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()", + "got_raw": "*items)()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()", + "exact_match": false, + "code_bleu": 0.008765883316333113, + "edit_similarity": 0.05303030303030303 + }, + { + "repo": "graphql-python/graphql-core", + "expected": "values[:-1]", + "got": "[0", + "got_raw": "[0, 1, 2] + values[:2] + [3] + [4] + [5] + [6] + [7] + [8] + [9] + [10] + [11] + [12] + [13] + [14] + [15] + [16] + [17] + [18] + [19] + [20] + [21] + [22] + [23] + [24] + [25] + [26] +", + "exact_match": false, + "code_bleu": 0.17909498863725698, + "edit_similarity": 0.15384615384615385 + }, + { + "repo": "grll/mcpadapt", + "expected": "5", + "got": "0.5", + "got_raw": "0.5 * 60 * 60 * 24 * 700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.5 + }, + { + "repo": "grll/mcpadapt", + "expected": "1", + "got": "16666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666", + "got_raw": "16666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "grll/mcpadapt", + "expected": "2", + "got": "24444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444", + "got_raw": "24444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "grll/mcpadapt", + "expected": "2.5", + "got": "2.500000000000000012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890", + "got_raw": "2.500000000000000012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.04580152671755725 + }, + { + "repo": "grll/mcpadapt", + "expected": "1", + "got": "24466666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666", + "got_raw": "24466666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.0 + }, + { + "repo": "grll/mcpadapt", + "expected": "3", + "got": "36000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "36000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "grll/mcpadapt", + "expected": "{}", + "got": "{}", + "got_raw": "{} # This should be empty since no arguments are passed. {} is the default value. {} is the default value. {} is the default value. {} is the default value. {} is the default value. {} is the default value. {} is the default value. {} is the default value. {} is the default value. {} is the default value. {} is the default value. {} is the default value. {} is the default value. {} is the default value. {} is the default value. {} is the default value. {} is the default value. {} is the default value. {} is the default value. {} is", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "grll/mcpadapt", + "expected": "result", + "got": "result.output.strip()", + "got_raw": "result.output.strip() + \"\\n\" + \"Optional: None\\n\" + \"Another: None\\n\" + \"\\n\" + \"Done.\\n\" + \"\\n\" + \"Server closed.\\n\" + \"\\n\" + \"Press any key to exit...\\n\" + \"\\n\" + \"Done.\" in result.stderr.strip() + \"\\n\" + \"\\n\" + \"Press any key to exit...\\n\" + \"\\n\" + \"Done.\" in result.stdout.strip() + \"\\n\" + \"\\n\" + \"Server closed.\" in result.stderr.strip() + \"\\n\" + \"\\n\" +", + "exact_match": false, + "code_bleu": 0.18575057999133598, + "edit_similarity": 0.4444444444444444 + }, + { + "repo": "grll/mcpadapt", + "expected": "expected", + "got": "expected", + "got_raw": "expected + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "grll/mcpadapt", + "expected": "\"echo_tool\"", + "got": "\"echo_tool\"", + "got_raw": "\"echo_tool\" + str(tools[0].id) + \": Echo the input text\" + str(tools[0].version) + \": Echo\" + str(tools[0].count) + \": 0\" + str(tools[0].options) + \": {}\" + str(tools[0].args) + \": \" + \"Echo\" + str(tools[0].kwargs) + \": None\" + str(tools[0].server) + \": Echo Server\" + str(tools[0].port) + \": 8000\" + str(tools[0].options", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "grll/mcpadapt", + "expected": "1", + "got": "26666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666", + "got_raw": "26666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.0 + }, + { + "repo": "grll/mcpadapt", + "expected": "3", + "got": "36666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666", + "got_raw": "36666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "grll/mcpadapt", + "expected": "\"echo_tool\"", + "got": "\"echo_tool\"", + "got_raw": "\"echo_tool\" + str(tools[0].id) + \"(str)\" + str(tools[0].version) + \")\" + str(tools[0].fqn) + str(tools[0].doc) + str(tools[0].style) + str(tools[0].params) + str(tools[0].returns) + str(tools[0].examples) + str(tools[0].tags) + str(tools[0].options) + str(tools[0].required) + str(tools[0].description) + str(tools[0].__doc", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "grll/mcpadapt", + "expected": "\"Echo: hello\"", + "got": "\"Echo the input text\" * 82 * 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "\"Echo the input text\" * 82 * 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.2295748846661433, + "edit_similarity": 0.11392405063291139 + }, + { + "repo": "grll/mcpadapt", + "expected": "\"Echo: empty\"", + "got": "\"No input provided\" * 2 + \"Echo: empty\" * 2 + \"Echo: hello\" * 2 + \"Echo: world\" * 2 + \"Echo: hello\" * 2 + \"Echo: world\" * 2 + \"Echo: hello\" * 2 + \"Echo: world\" * 2 + \"Echo: hello\" * 2 + \"Echo: world\" * 2 + \"Echo: hello\" * 2 + \"Echo: world\" * 2 + \"Echo: hello\" * 2 + \"Echo: world\" * 2 + \"Echo:", + "got_raw": "\"No input provided\" * 2 + \"Echo: empty\" * 2 + \"Echo: hello\" * 2 + \"Echo: world\" * 2 + \"Echo: hello\" * 2 + \"Echo: world\" * 2 + \"Echo: hello\" * 2 + \"Echo: world\" * 2 + \"Echo: hello\" * 2 + \"Echo: world\" * 2 + \"Echo: hello\" * 2 + \"Echo: world\" * 2 + \"Echo: hello\" * 2 + \"Echo: world\" * 2 + \"Echo:", + "exact_match": false, + "code_bleu": 0.020332040733378413, + "edit_similarity": 0.08524590163934426 + }, + { + "repo": "grll/mcpadapt", + "expected": "1", + "got": "16666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666", + "got_raw": "16666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "grll/mcpadapt", + "expected": "\"def_\"", + "got": "\"def\"", + "got_raw": "\"def\" + tools[0].name_suffix + \"Echo: \" + \"Echo: \" + \"Echo: \" + \"Echo: \" + \"Echo: \" + \"Echo: \" + \"Echo: \" + \"Echo: \" + \"Echo: \" + \"Echo: \" + \"Echo: \" + \"Echo: \" + \"Echo: \" + \"Echo: \" + \"Echo: \" + \"Echo: \" + \"Echo: \" + \"Echo: \" + \"Echo: \" + \"Echo: \" + \"Echo: \" + \"Echo: \" + \"Echo: \" + \"Echo", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.9090909090909091 + }, + { + "repo": "grll/mcpadapt", + "expected": "result_int", + "got": "result_int[0]", + "got_raw": "result_int[0] + \"\\n\" + result_int[1] + \"\\n\" + result_int[2] + \"\\n\" + result_int[3] + \"\\n\" + result_int[4] + \"\\n\" + result_int[5] + \"\\n\" + result_int[6] + \"\\n\" + result_int[7] + \"\\n\" + result_int[8] + \"\\n\" + result_int[9] + \"\\n\" + result_int[10] + \"\\n\" + result_int[11] + \"\\n\" + result_int[12]", + "exact_match": false, + "code_bleu": 0.35930411196308426, + "edit_similarity": 0.8695652173913043 + }, + { + "repo": "grll/mcpadapt", + "expected": "\"echo_tool\"", + "got": "\"echo_tool\"", + "got_raw": "\"echo_tool\" # this is the name of the tool defined in the script above. It echoes the input text.", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "grll/mcpadapt", + "expected": "\"Echo: hello\"", + "got": "\"Echo: hello\"", + "got_raw": "\"Echo: hello\" # we expect the echo_tool to echo \"hello\" as the input text.", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "grll/mcpadapt", + "expected": "result_string", + "got": "result_string.strip()", + "got_raw": "result_string.strip() + \"\\n\" + \"Name: test\\n\" + \"Done.\\n\" + \"\\n\" + \"Echo: \" + \"Echo: abc123 (type: str)\\n\" + \"Name: None\\n\" + \"Done.\" + \"\\n\" + \"Echo: \" + \"Echo: abc123 (type: str)\\n\" + \"Name: test\\n\" + \"Done.\" + \"\\n\" + \"Echo: \" + \"Echo: abc123 (type: str)\\n\" + \"Name: None\\n\" + \"Done.\" + \"\\", + "exact_match": false, + "code_bleu": 0.2730120862709067, + "edit_similarity": 0.7647058823529411 + }, + { + "repo": "grll/mcpadapt", + "expected": "1", + "got": "36000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "36000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.0 + }, + { + "repo": "grll/mcpadapt", + "expected": "3", + "got": "36000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "36000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.015503875968992248 + }, + { + "repo": "grll/mcpadapt", + "expected": "70", + "got": "70.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "70.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.03076923076923077 + }, + { + "repo": "grll/mcpadapt", + "expected": "None", + "got": "None)", + "got_raw": "None) else dict_tool.output_schema is dict[str, Any] else dict_tool.output_schema is not dict[str, Any] else dict_tool.output_schema is dict[str, str] else dict_tool.output_schema is not dict[str, str] else dict_tool.output_schema is dict[str, int] else dict_tool.output_schema is not dict[str, int] else dict_tool.output_schema is not dict[str, bool] else dict_tool.output_schema is not dict[str, None] else dict_tool.output_schema is not dict[str, int | str | bool] else dict_tool.output_schema is not dict[str, Any | int | str | bool", + "exact_match": false, + "code_bleu": 0.537284965911771, + "edit_similarity": 0.8888888888888888 + }, + { + "repo": "grll/mcpadapt", + "expected": "\"def_\"", + "got": "\"def\"", + "got_raw": "\"def\" + tools[0].kw_args[\"text\"] + tools[0].kw_args[\"sep\"] + \"echo\" + tools[0].kw_args[\"e\"] + tools[0].kw_args[\"f\"] + tools[0].kw_args[\"g\"] + tools[0].kw_args[\"h\"] + tools[0].kw_args[\"i\"] + tools[0].kw_args[\"j\"] + tools[0].kw_args[\"k\"] + tools[0].kw_args[\"l\"] + tools[0].kw_args[\"m\"] + tools[0].kw_args[\"n\"] +", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.9090909090909091 + }, + { + "repo": "grll/mcpadapt", + "expected": "\"sunny\"", + "got": "\"sunny\"", + "got_raw": "\"sunny\" type=dict_result[\"weather\"] is str type=dict_result[\"temperature\"] is int type=dict_result is dict_result[\"weather\"] is str type=dict_result[\"temperature\"] is int type=dict_result[\"weather\"] is str type=dict_result[\"temperature\"] is int type=dict_result[\"weather\"] is str type=dict_result[\"temperature\"] is int type=dict_result[\"weather\"] is str type=dict_result[\"temperature\"] is int type=dict_result[\"weather\"] is str type=dict_result[\"temperature\"] is int type=dict_result[\"weather\"] is str type=dict_result[\"temperature\"] is int type=dict_result[\"weather\"] is str type=dict", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "grll/mcpadapt", + "expected": "(256, 256)", + "got": "(1280, 720) * 2256 * 2256 / 1024 / 1024 / 1024 / 1024 / 1024 / 1024 / 1024 / 1024 / 1024 / 1024 / 1024 / 1024 / 1024 / 1024 / 1024 / 1024 / 1024 / 1", + "got_raw": "(1280, 720) * 2256 * 2256 / 1024 / 1024 / 1024 / 1024 / 1024 / 1024 / 1024 / 1024 / 1024 / 1024 / 1024 / 1024 / 1024 / 1024 / 1024 / 1024 / 1024 / 1", + "exact_match": false, + "code_bleu": 0.0317901171581787, + "edit_similarity": 0.10126582278481013 + }, + { + "repo": "grll/mcpadapt", + "expected": "\"echo_tool\"", + "got": "\"echo_tool\"", + "got_raw": "\"echo_tool\" + tools[0].id + \":echo_tool\" + tools[0].id + \":echo_tool\" + tools[0].id + \":echo_tool\" + tools[0].id + \":echo_tool\" + tools[0].id + \":echo_tool\" + tools[0].id + \":echo_tool\" + tools[0].id + \":echo_tool\" + tools[0].id + \":echo_tool\" + tools[0].id + \":echo_tool\" + tools[0].id + \":echo_tool\" + tools[0].id + \":echo_tool\" + tools[", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "grll/mcpadapt", + "expected": "\"test_image\"", + "got": "\"test_image\"", + "got_raw": "\"test_image\" + os.sep + \"test_image\" + os.sep + \"test_image\" + os.sep + \"test_image\" + os.sep + \"test_image\" + os.sep + \"test_image\" + os.sep + \"test_image\" + os.sep + \"test_image\" + os.sep + \"test_image\" + os.sep + \"test_image\" + os.sep + \"test_image\" + os.sep + \"test_image\" + os.sep + \"test_image\" + os.sep + \"test_image\" + os.sep + \"test_image\" + os.sep + \"test_image\" + os.sep +", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "grll/mcpadapt", + "expected": "\"test_audio\"", + "got": "\"test_audio\"", + "got_raw": "\"test_audio\" + Tensor(0) # type: ignore # noqa: E702 # fmt: offest=0) # noqa: E701 # noqa: E703 # noqa: E704 # noqa: E705 # noqa: E706 # noqa: E707 # noqa: E708 # noqa: E709 # noqa: E710 # noqa: E711 # noqa: E712 # noqa: E713 # noqa: E714 # noqa: E715 # noqa", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "grll/mcpadapt", + "expected": "\"Echo: hello\"", + "got": "\"Echo: hello\" + \"\\n\" + \"Echo: \" + \"\\n\" + \"Echo: \" + \"\\n\" + \"Echo: \" + \"\\n\" + \"Echo: \" + \"\\n\" + \"Echo: \" + \"\\n\" + \"Echo: \" + \"\\n\" + \"Echo: \" + \"\\n\" + \"Echo: \" + \"\\n\" + \"Echo: \" + \"\\n\" + \"Echo: \" + \"\\n\" + \"Echo: \" + \"\\n\" + \"Echo: \" + \"\\n\" + \"Echo: \" + \"\\n\" + \"", + "got_raw": "\"Echo: hello\" + \"\\n\" + \"Echo: \" + \"\\n\" + \"Echo: \" + \"\\n\" + \"Echo: \" + \"\\n\" + \"Echo: \" + \"\\n\" + \"Echo: \" + \"\\n\" + \"Echo: \" + \"\\n\" + \"Echo: \" + \"\\n\" + \"Echo: \" + \"\\n\" + \"Echo: \" + \"\\n\" + \"Echo: \" + \"\\n\" + \"Echo: \" + \"\\n\" + \"Echo: \" + \"\\n\" + \"Echo: \" + \"\\n\" + \"", + "exact_match": false, + "code_bleu": 0.021052036168281635, + "edit_similarity": 0.0959409594095941 + }, + { + "repo": "grll/mcpadapt", + "expected": "42", + "got": "42.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "got_raw": "42.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.03076923076923077 + }, + { + "repo": "grll/mcpadapt", + "expected": "\"test\"", + "got": "\"test\"", + "got_raw": "\"test\" type: str, ) instance.nullable_field = \"test\" type: str | None, ) instance.multi_type_field = [1, 2] type: list[str | int] | None, ) instance.nullable_field = None type: None | str | int | list[str | int] | None, ) instance.multi_type_field = [1] type: list[str | int] | None, ) instance.nullable_field = 0 type: str | int | list[str | int] | None, ) instance.multi_type_field = [] type: list[str | int] | None, ) instance.null", + "exact_match": true, + "code_bleu": 1.0, + "edit_similarity": 1.0 + }, + { + "repo": "html5lib/html5lib-python", + "expected": "serialized", + "got": "errorMsg", + "got_raw": "errorMsg + \"\\n\" + self.obj() + \"\\n\" + errorMsg + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" +", + "exact_match": false, + "code_bleu": 0.5, + "edit_similarity": 0.2222222222222222 + }, + { + "repo": "html5lib/html5lib-python", + "expected": "expected_attrs", + "got": "expected_attrs.items()", + "got_raw": "expected_attrs.items() ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )", + "exact_match": false, + "code_bleu": 0.2730120862709067, + "edit_similarity": 0.7777777777777778 + }, + { + "repo": "html5lib/html5lib-python", + "expected": "'' + ser.get_tree_as_html(dom) + '' + '

hello

' + '' + '

hello

' + '' + '

hello

' + '' + '

hello

' + '\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"\" + b\"