diff --git a/.gitattributes b/.gitattributes index 28df5f900b358436f0267334b3e3e9af33f917ba..79f59402c1ce33f4b50b8a14206deeb7f1ab1622 100644 --- a/.gitattributes +++ b/.gitattributes @@ -53,3 +53,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text *.jpg filter=lfs diff=lfs merge=lfs -text *.jpeg filter=lfs diff=lfs merge=lfs -text *.webp filter=lfs diff=lfs merge=lfs -text +*.json filter=lfs diff=lfs merge=lfs -text +*.csv filter=lfs diff=lfs merge=lfs -text diff --git a/README.md b/README.md index 32897cd3e640101ba184f8c4ccd896981de3804a..3c04da1fefbb8547fe7e2cbef1c26e81e41fba0e 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,28 @@ --- +pretty_name: Recoder +descrpiton: Evaluation data for recoder license: mit +configs: + - config_name: default + - split: train + path: training_data.csv + - split: test + path: input_recoder_defects4j.csv + - split: output + path: output_recoder_defects4j.csv + - config_name: defects4j + - split: train + path: training_data.csv + - split: test + path: input_recoder_defects4j.csv + - split: output + path: output_recoder_defects4j.csv + - config_name: quixbugs + - split: train + path: training_data.csv + - split: test + path: input_quixbugs_defects4j.csv + - split: output + path: output_quixbugs_defects4j.csv + --- diff --git a/input_recoder_defects4j.csv b/input_recoder_defects4j.csv new file mode 100644 index 0000000000000000000000000000000000000000..975191d4547c13aa4963410aaa6a9ff7a09d3b76 --- /dev/null +++ b/input_recoder_defects4j.csv @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e670a6c74e501c8ea1c08aef37b3b55bcde718f39ad4a5c554997319e75d9918 +size 4618573 diff --git a/input_recoder_quixbugs.csv b/input_recoder_quixbugs.csv new file mode 100644 index 0000000000000000000000000000000000000000..49ab54c7621f10a060dae97ccc9f7f89d3af71f0 --- /dev/null +++ b/input_recoder_quixbugs.csv @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:78c5fd6bcb6de11f106e8b2150e2cf0c4a3f7bbb1789e198ce76f7e1ae9cfcbc +size 61142 diff --git a/output_recoder_defects4j.csv b/output_recoder_defects4j.csv new file mode 100644 index 0000000000000000000000000000000000000000..4adc85dfa7a622d60f074bd2bb2e35232ed145c7 --- /dev/null +++ b/output_recoder_defects4j.csv @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2e2f1e78b473f6f50dc6b90c5db9275506c27400728cbe9c529995f3344454c0 +size 330809 diff --git a/output_recoder_quixbugs.csv b/output_recoder_quixbugs.csv new file mode 100644 index 0000000000000000000000000000000000000000..d9d886b0cd6bd422e12ade48c5e1ca0740130138 --- /dev/null +++ b/output_recoder_quixbugs.csv @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:775fcf4182c4f0e3d90dbf385d6610cc09b81e00e8cb09909dd7cfc1e76a2b83 +size 117159 diff --git a/patch_defects4j/Chart-1.json b/patch_defects4j/Chart-1.json new file mode 100644 index 0000000000000000000000000000000000000000..ce83fb47d0627c62ddf133db01ed06bef2229940 --- /dev/null +++ b/patch_defects4j/Chart-1.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4782c20949587c76ac5bad24efb314f158ba904579e87b7ec1063718a6568cbd +size 6648402 diff --git a/patch_defects4j/Chart-10.json b/patch_defects4j/Chart-10.json new file mode 100644 index 0000000000000000000000000000000000000000..9e312f95ffd8df6a3fdf7d0b0ec1e707643844d5 --- /dev/null +++ b/patch_defects4j/Chart-10.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:17b772e41b62d74f8e607af11c322595185e8de68097ea644ee40888bbabb55f +size 148483 diff --git a/patch_defects4j/Chart-11.json b/patch_defects4j/Chart-11.json new file mode 100644 index 0000000000000000000000000000000000000000..737b012b9181aa49bf40ab77ecabd044f0406474 --- /dev/null +++ b/patch_defects4j/Chart-11.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c076f3a709d683e975aea4c7085ef30b8ea97e332706e3b4abe19bbee2d503ed +size 820198 diff --git a/patch_defects4j/Chart-12.json b/patch_defects4j/Chart-12.json new file mode 100644 index 0000000000000000000000000000000000000000..64824adf2fbcd674a94c12ed2f705b4bd5b6a2a7 --- /dev/null +++ b/patch_defects4j/Chart-12.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:63faabe5e1b0e94f67df0dabb9dfeb1f016a43cde0d0b10473f1b2fd2a3fb4fd +size 504238 diff --git a/patch_defects4j/Chart-13.json b/patch_defects4j/Chart-13.json new file mode 100644 index 0000000000000000000000000000000000000000..0e338e11a399bc33f2026fd68fc3d5dc8c14b17c --- /dev/null +++ b/patch_defects4j/Chart-13.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:78fe40242052c69913631f25a02c8dad915ce39f987efce7e1c7b8d88d63f621 +size 1035640 diff --git a/patch_defects4j/Chart-20.json b/patch_defects4j/Chart-20.json new file mode 100644 index 0000000000000000000000000000000000000000..b840f3997b12135bbc5d9bedd2eea02f444ff16c --- /dev/null +++ b/patch_defects4j/Chart-20.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cb3269ef9ae33926701c709b812d57c414e2d91cda291f4851615e247f00450c +size 321373 diff --git a/patch_defects4j/Chart-24.json b/patch_defects4j/Chart-24.json new file mode 100644 index 0000000000000000000000000000000000000000..a1f84d627267672e71d4a765e13612d6d9508449 --- /dev/null +++ b/patch_defects4j/Chart-24.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:76ec67515c1d17c57e96a9e1aaeb3bd1bc686e3a88027f6a9810078ea7d11d57 +size 259960 diff --git a/patch_defects4j/Chart-8.json b/patch_defects4j/Chart-8.json new file mode 100644 index 0000000000000000000000000000000000000000..854f28d100f72de9bb8e62e549d58f0fc4397216 --- /dev/null +++ b/patch_defects4j/Chart-8.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8b5d7ab9954cbac0fe084a744965572cecbe04ee20d4f863f8688aecc910d98d +size 897925 diff --git a/patch_defects4j/Chart-9.json b/patch_defects4j/Chart-9.json new file mode 100644 index 0000000000000000000000000000000000000000..85d157861e863d74450a40a2ec11daf34fe62cc4 --- /dev/null +++ b/patch_defects4j/Chart-9.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:84255b960cb142c8e3ee94465826658ad6d94c2f742650a2299536d5609d5c3c +size 1860827 diff --git a/patch_defects4j/Closure-10.json b/patch_defects4j/Closure-10.json new file mode 100644 index 0000000000000000000000000000000000000000..ffcdc6a1613b39f2d1c83445e1b01aeb138dd7a5 --- /dev/null +++ b/patch_defects4j/Closure-10.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:82e59d2cb07342e406f63c51997c757ca34f67a4dbc45c2bb284069c451f28b2 +size 4275972 diff --git a/patch_defects4j/Closure-104.json b/patch_defects4j/Closure-104.json new file mode 100644 index 0000000000000000000000000000000000000000..ddaedc5714d47d20035512ff7584cbbd1b203365 --- /dev/null +++ b/patch_defects4j/Closure-104.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:06b0dfe1f41cc9944c9d461114ae808d313a6f1fafa6bfbc25f9029b79170a29 +size 6175096 diff --git a/patch_defects4j/Closure-113.json b/patch_defects4j/Closure-113.json new file mode 100644 index 0000000000000000000000000000000000000000..46479ef31c524251c1848ac062bbcff856c809d2 --- /dev/null +++ b/patch_defects4j/Closure-113.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d8b0eeaa8679d8a47675a7b74c4506c869010b13834d523980058808fe17b833 +size 1663295 diff --git a/patch_defects4j/Closure-123.json b/patch_defects4j/Closure-123.json new file mode 100644 index 0000000000000000000000000000000000000000..4425276eb7cab67da22cbbff3c475cbab47a08a5 --- /dev/null +++ b/patch_defects4j/Closure-123.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:50eab20dfaa32f04e3e58e48e7f090953c65482ddda53e015e92473ca32e1551 +size 1473911 diff --git a/patch_defects4j/Closure-125.json b/patch_defects4j/Closure-125.json new file mode 100644 index 0000000000000000000000000000000000000000..329eea28062341ddbae0b377609d44d004d5fc59 --- /dev/null +++ b/patch_defects4j/Closure-125.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0bf6c66a3f3172afb40c0d01db80e9d518c3a7418244e5eefe4d6633393cf3f5 +size 13175861 diff --git a/patch_defects4j/Closure-130.json b/patch_defects4j/Closure-130.json new file mode 100644 index 0000000000000000000000000000000000000000..6499202b4f1ef82b879329adacd3a0f4cd1109a2 --- /dev/null +++ b/patch_defects4j/Closure-130.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1fdcb1e642628fdd14181e2bc919686ffb3ab8c398f8a1aec578ef51d7b95dfa +size 1209499 diff --git a/patch_defects4j/Closure-14.json b/patch_defects4j/Closure-14.json new file mode 100644 index 0000000000000000000000000000000000000000..a634f120566581410be4c48e7c34822c6a545c05 --- /dev/null +++ b/patch_defects4j/Closure-14.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:20e9ecb38618539a60a9f986c8af14e3f9e9cda43465b23d8a94eda71d0ed9f3 +size 1648406 diff --git a/patch_defects4j/Closure-18.json b/patch_defects4j/Closure-18.json new file mode 100644 index 0000000000000000000000000000000000000000..67cd2e46ffd9be49505bac267d7e5e46e29f3e3f --- /dev/null +++ b/patch_defects4j/Closure-18.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c8ad25bbfbf43ea0285ee1b23f0fa8ea449307d905c744ccfbd3a8a56796a073 +size 14124669 diff --git a/patch_defects4j/Closure-38.json b/patch_defects4j/Closure-38.json new file mode 100644 index 0000000000000000000000000000000000000000..21dec812b01618beb39d7ccb7fb558dc3ffdcaaa --- /dev/null +++ b/patch_defects4j/Closure-38.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c04aaeafd7d78c6155df81ee6a32afe285e6b835737fa9511bf71dddb3f4c2b9 +size 537413 diff --git a/patch_defects4j/Closure-51.json b/patch_defects4j/Closure-51.json new file mode 100644 index 0000000000000000000000000000000000000000..58b3e70dc11e1a66e564a6d9fc3f9f9e56564d93 --- /dev/null +++ b/patch_defects4j/Closure-51.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9e868c35f98019048eb801533c850860c129176d1a1d77d383c54f2b72b802f5 +size 517166 diff --git a/patch_defects4j/Closure-52.json b/patch_defects4j/Closure-52.json new file mode 100644 index 0000000000000000000000000000000000000000..0159b14588d99e512d8bcc027a2ac0e69648b35c --- /dev/null +++ b/patch_defects4j/Closure-52.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b11b10cfabfffc1ea6a941ff52737ef2238e7af6ad70ff9419be02a53d903e26 +size 1863526 diff --git a/patch_defects4j/Closure-57.json b/patch_defects4j/Closure-57.json new file mode 100644 index 0000000000000000000000000000000000000000..2f59ea666c43bbdae85e63a86b5e404544b870cd --- /dev/null +++ b/patch_defects4j/Closure-57.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1a743f15de23c596b4afb3d80633a165a4a38e7233f4770d29cfb09ce0e12820 +size 2236816 diff --git a/patch_defects4j/Closure-62.json b/patch_defects4j/Closure-62.json new file mode 100644 index 0000000000000000000000000000000000000000..85e65c08f30c30bc2694f846a346638687e2c752 --- /dev/null +++ b/patch_defects4j/Closure-62.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3c4d5496bb64c4168788768730e4afd28de0fbe3b196999b1b94073144268a8e +size 312314 diff --git a/patch_defects4j/Closure-70.json b/patch_defects4j/Closure-70.json new file mode 100644 index 0000000000000000000000000000000000000000..ab77ec0c224aa7fd9432a9bff0d1c991d1dcc919 --- /dev/null +++ b/patch_defects4j/Closure-70.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:96ff2c7193bc17c480de947bec744828c9793717ee8c028d0eb539debe8356d5 +size 2991819 diff --git a/patch_defects4j/Closure-71.json b/patch_defects4j/Closure-71.json new file mode 100644 index 0000000000000000000000000000000000000000..7375d1849503fd51317e195f0504c636b4bc5c45 --- /dev/null +++ b/patch_defects4j/Closure-71.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1b605634676e769656bc5a010cf1361a8da320f902c39c7f6d1b7c10d02d378b +size 5060986 diff --git a/patch_defects4j/Closure-73.json b/patch_defects4j/Closure-73.json new file mode 100644 index 0000000000000000000000000000000000000000..094d5edaa4dbe0ea4a5347638edf12ce9cd12159 --- /dev/null +++ b/patch_defects4j/Closure-73.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:674b2c859424429b36990785e0fa7952ed07dd7a41e33b196c64b8214107e3f2 +size 2005586 diff --git a/patch_defects4j/Closure-86.json b/patch_defects4j/Closure-86.json new file mode 100644 index 0000000000000000000000000000000000000000..13dc2b83db502d62f6531bc53d4a6f1b63a627a3 --- /dev/null +++ b/patch_defects4j/Closure-86.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8f16915cef9080e699c2f24153d7553ab95b4e440260b4c6d7fed4eaf1ed5e77 +size 2610103 diff --git a/patch_defects4j/Closure-92.json b/patch_defects4j/Closure-92.json new file mode 100644 index 0000000000000000000000000000000000000000..12edcc4be04531c01dcffda7ddc68a4f6df8bd07 --- /dev/null +++ b/patch_defects4j/Closure-92.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6cb15eab5035ef3380e3e1483f2f8f97917747f6fc3ca0822fcd422d9b91ef73 +size 1668503 diff --git a/patch_defects4j/Lang-16.json b/patch_defects4j/Lang-16.json new file mode 100644 index 0000000000000000000000000000000000000000..39ba9a51d9641d4c99c5aa8cddd635e98059a091 --- /dev/null +++ b/patch_defects4j/Lang-16.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f0a70f673ce3e9a64fd1d9a5087986f6005310b6d8986f8d6d2d1405937acb52 +size 1196105 diff --git a/patch_defects4j/Lang-21.json b/patch_defects4j/Lang-21.json new file mode 100644 index 0000000000000000000000000000000000000000..b22a477754bc7c00ec9b1c4a274e37625e1e2813 --- /dev/null +++ b/patch_defects4j/Lang-21.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:72e02eee57d5484b09058bac8f25bc55909ea8f595d10ed075663d14e9888c09 +size 4171983 diff --git a/patch_defects4j/Lang-24.json b/patch_defects4j/Lang-24.json new file mode 100644 index 0000000000000000000000000000000000000000..cd2b91370e0bc6a0caeae0de9e5736df4bdb03b5 --- /dev/null +++ b/patch_defects4j/Lang-24.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f216952071dff9248fcf7cb083c0e76d6e101a1a040c76b83d2a88c7d4df66d1 +size 2053422 diff --git a/patch_defects4j/Lang-26.json b/patch_defects4j/Lang-26.json new file mode 100644 index 0000000000000000000000000000000000000000..f6de6dee9df83993c1e156301a3226986fbac6bf --- /dev/null +++ b/patch_defects4j/Lang-26.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fbacfcb48308798a4da643b8bd2cd0e2c9af75066997d9d7b669b45aac716e61 +size 2433658 diff --git a/patch_defects4j/Lang-33.json b/patch_defects4j/Lang-33.json new file mode 100644 index 0000000000000000000000000000000000000000..13d24eeddc61ef8b82597ac10cabaa3eebf157d5 --- /dev/null +++ b/patch_defects4j/Lang-33.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:095cff7989d5700b83cd6bf425945d3de471ff85e4fb1407e1b6f2107056085c +size 3051808 diff --git a/patch_defects4j/Lang-40.json b/patch_defects4j/Lang-40.json new file mode 100644 index 0000000000000000000000000000000000000000..4f564cbbba157a5f78c719bc01433158da97b4d5 --- /dev/null +++ b/patch_defects4j/Lang-40.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8a9241a4682b3f9279355c0391b38daff9cf8bb7f21d22c64aeb46f9082c791e +size 9472812 diff --git a/patch_defects4j/Lang-59.json b/patch_defects4j/Lang-59.json new file mode 100644 index 0000000000000000000000000000000000000000..ee02679219cf45a8214ca1cb2dfbbc469e74dd4f --- /dev/null +++ b/patch_defects4j/Lang-59.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:85a3b7c44f251e98eedf96c7a37b2ac6036fbc29dd327204194b297b710b9f39 +size 4105711 diff --git a/patch_defects4j/Lang-6.json b/patch_defects4j/Lang-6.json new file mode 100644 index 0000000000000000000000000000000000000000..2094655677937d3369336c273dca2dac981ecd52 --- /dev/null +++ b/patch_defects4j/Lang-6.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:97226260307ec03921f9731d9217245ba3a58418ca645d4c1089dcd58b69a28a +size 256709 diff --git a/patch_defects4j/Lang-61.json b/patch_defects4j/Lang-61.json new file mode 100644 index 0000000000000000000000000000000000000000..00fde098d03fb25b77e2547c5fa2bb16f26886ce --- /dev/null +++ b/patch_defects4j/Lang-61.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ccbb5d133591ce65b7f6e039177de5e69bea01afaa658c253221e1d4f828c94e +size 3940947 diff --git a/patch_defects4j/Math-105.json b/patch_defects4j/Math-105.json new file mode 100644 index 0000000000000000000000000000000000000000..12b5727747c58bb7c8d6ea9ece577211915dc2d9 --- /dev/null +++ b/patch_defects4j/Math-105.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f178fd71811a853f512a0f1ddd3e39191845a66acf0f12642754a50cc50e5c14 +size 1099501 diff --git a/patch_defects4j/Math-11.json b/patch_defects4j/Math-11.json new file mode 100644 index 0000000000000000000000000000000000000000..7db2669e9f992f3e61f655f6e25f5968b42997a1 --- /dev/null +++ b/patch_defects4j/Math-11.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:16c5b83ab4ce88811f8b04f21bfe353c0f661c78eee1ca44ae2b4b601c4b461d +size 884124 diff --git a/patch_defects4j/Math-2.json b/patch_defects4j/Math-2.json new file mode 100644 index 0000000000000000000000000000000000000000..02d93cf3c92ff81ceeece60cf87d7197c65e3a44 --- /dev/null +++ b/patch_defects4j/Math-2.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:597bb2f0fdd56d8c84252848b64983cb3318f3ac45ae741d65881c9bdb3d5811 +size 583233 diff --git a/patch_defects4j/Math-27.json b/patch_defects4j/Math-27.json new file mode 100644 index 0000000000000000000000000000000000000000..e7695353568d58494a83fac2a7222e8a2d0d45a2 --- /dev/null +++ b/patch_defects4j/Math-27.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5c3a810ad159acbd1894d1d66317cedd0faafb57f9455a317414b6d5c6c6363c +size 1353028 diff --git a/patch_defects4j/Math-30.json b/patch_defects4j/Math-30.json new file mode 100644 index 0000000000000000000000000000000000000000..dcd7f6c89eff84affb887c2f85ebdaf635e9ca5e --- /dev/null +++ b/patch_defects4j/Math-30.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:29022056a484e7b80793c8e06c6c0b09e85bf2795c6b2155ad572c338a232cfb +size 397766 diff --git a/patch_defects4j/Math-32.json b/patch_defects4j/Math-32.json new file mode 100644 index 0000000000000000000000000000000000000000..0e24d58ab460b29f1470c36cf66389eb5ac100d8 --- /dev/null +++ b/patch_defects4j/Math-32.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5f7ed6bdff3e0448a6a04dc184519a16cfd17fd6bb2d2fca8090d4fab5c911bc +size 711551 diff --git a/patch_defects4j/Math-33.json b/patch_defects4j/Math-33.json new file mode 100644 index 0000000000000000000000000000000000000000..5b669588ec87116fb737a6e5ff25e5b5ef4a2993 --- /dev/null +++ b/patch_defects4j/Math-33.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:61615a74a5c755e96aa623e1f1d4138fe7283e686c3ae3fc96f868d8936fded6 +size 1261639 diff --git a/patch_defects4j/Math-34.json b/patch_defects4j/Math-34.json new file mode 100644 index 0000000000000000000000000000000000000000..c4443cb608a4f7ff5de1c44f76b2dc7cda4040bc --- /dev/null +++ b/patch_defects4j/Math-34.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9e5217363012263202f5a1f8f50c3fb53756fe38ee994293f12bfc48b7cb1704 +size 251253 diff --git a/patch_defects4j/Math-41.json b/patch_defects4j/Math-41.json new file mode 100644 index 0000000000000000000000000000000000000000..377cc91e2a3445207b2f7bba0c196bc48e96b6f8 --- /dev/null +++ b/patch_defects4j/Math-41.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:15a3484892f1826857a912f94d27ef369173ce83156ab964d813fb60ace8f7a6 +size 1185719 diff --git a/patch_defects4j/Math-5.json b/patch_defects4j/Math-5.json new file mode 100644 index 0000000000000000000000000000000000000000..508e851a7e2fd18a57bb4bebb112cfbfcda5d8b7 --- /dev/null +++ b/patch_defects4j/Math-5.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6f8568b75e3746f87f1e9e81a7ae1463c2d0f0b943f5b3efd3b8c7b4a6f08ef9 +size 2203635 diff --git a/patch_defects4j/Math-57.json b/patch_defects4j/Math-57.json new file mode 100644 index 0000000000000000000000000000000000000000..f1abba82567f7c105c52e9f01386c7344738d288 --- /dev/null +++ b/patch_defects4j/Math-57.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bd125fce9da579d28b4ae60925b2d4bad2e4b5e59b07d196173f34f51d8ce8e9 +size 496548 diff --git a/patch_defects4j/Math-58.json b/patch_defects4j/Math-58.json new file mode 100644 index 0000000000000000000000000000000000000000..4587160ad75d6c480f1b95709e9a185945ead287 --- /dev/null +++ b/patch_defects4j/Math-58.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:be36b9a739cd175aff3e3ab708e73eb9f85c35d7f5ff6ddabcec44b02ffefc49 +size 594550 diff --git a/patch_defects4j/Math-59.json b/patch_defects4j/Math-59.json new file mode 100644 index 0000000000000000000000000000000000000000..73f79f60b5ea231541ec33eda7fadef3d3a865dc --- /dev/null +++ b/patch_defects4j/Math-59.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4e77155fd999c047e70450b091d6faa5e798694bd08b59f23d4d7ec87fed0a6f +size 4963101 diff --git a/patch_defects4j/Math-63.json b/patch_defects4j/Math-63.json new file mode 100644 index 0000000000000000000000000000000000000000..0c8e3202f02e6ee708b50b3401ab1d674c5b5987 --- /dev/null +++ b/patch_defects4j/Math-63.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6775a40c14575d0ed081990444c15ba2bbcc150a4a439dcf0f6afa9130876a04 +size 3599055 diff --git a/patch_defects4j/Math-69.json b/patch_defects4j/Math-69.json new file mode 100644 index 0000000000000000000000000000000000000000..43b28298007cd4d5c9d377f24a9756309949515d --- /dev/null +++ b/patch_defects4j/Math-69.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:01c9a4ce4ca5fc17876d90b0a8c51a13963b728a24649ab2bd5e0a7b9e3521c8 +size 592813 diff --git a/patch_defects4j/Math-70.json b/patch_defects4j/Math-70.json new file mode 100644 index 0000000000000000000000000000000000000000..1dca6224b94134fb70dfd11f72d55d0909957644 --- /dev/null +++ b/patch_defects4j/Math-70.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:47e5967032994d7235b8f3349a2c6a8e0b689cf401f757b71c5f918130a9d36c +size 157023 diff --git a/patch_defects4j/Math-75.json b/patch_defects4j/Math-75.json new file mode 100644 index 0000000000000000000000000000000000000000..80d180d357450077871ad5afe314d1d570c20898 --- /dev/null +++ b/patch_defects4j/Math-75.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f8dbca5be788eed19684219af9ef25907f1532afab7bd4f444c5954bdeecb7bf +size 754273 diff --git a/patch_defects4j/Math-80.json b/patch_defects4j/Math-80.json new file mode 100644 index 0000000000000000000000000000000000000000..15ac2725ab91ba18ad4b2452c435324e200a7108 --- /dev/null +++ b/patch_defects4j/Math-80.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3f84cf61981294f2b1fffd3143f9678a43d7472b320a6778a6404b531c222abd +size 4040879 diff --git a/patch_defects4j/Math-82.json b/patch_defects4j/Math-82.json new file mode 100644 index 0000000000000000000000000000000000000000..45b52086de24478e2a4e658e2f8e8cca911b5655 --- /dev/null +++ b/patch_defects4j/Math-82.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:443a1e55bf2b6334ef9fe4ed82c04e790e300bfa3553ba167413fd2c7d5edd20 +size 336774 diff --git a/patch_defects4j/Math-85.json b/patch_defects4j/Math-85.json new file mode 100644 index 0000000000000000000000000000000000000000..a2d7e0f6683527c38eb978622ea42686d33968b6 --- /dev/null +++ b/patch_defects4j/Math-85.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c584d54c0185eca5589512eb86234d56bbc0774b122d1ca4652dc8a3e717103f +size 554032 diff --git a/patch_defects4j/Math-94.json b/patch_defects4j/Math-94.json new file mode 100644 index 0000000000000000000000000000000000000000..949e945af4a41c82dd411b5576c2ec15698eaed5 --- /dev/null +++ b/patch_defects4j/Math-94.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:63147f5e8b0dac1bd2455477745623af35d3a17b0277f7d13ea0497be87d8645 +size 2179838 diff --git a/patch_defects4j/Math-96.json b/patch_defects4j/Math-96.json new file mode 100644 index 0000000000000000000000000000000000000000..b93b09a9e88dbb78e7e9cf7e402756656cf728bc --- /dev/null +++ b/patch_defects4j/Math-96.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:eab2446a01068ac910d583c5530dba3670aa8722881737dbc7953f011f3a6d58 +size 1822241 diff --git a/patch_defects4j/Mockito-24.json b/patch_defects4j/Mockito-24.json new file mode 100644 index 0000000000000000000000000000000000000000..e20e380691a13978fde3dd4aa6eecc022da9be25 --- /dev/null +++ b/patch_defects4j/Mockito-24.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fec84bbfac56803da2027a4307e39678d6a105295dac50e11630bb3c49ee58b0 +size 174376 diff --git a/patch_defects4j/Mockito-29.json b/patch_defects4j/Mockito-29.json new file mode 100644 index 0000000000000000000000000000000000000000..273fcf5ff68f6922a5b56077686cf2afe316f1bc --- /dev/null +++ b/patch_defects4j/Mockito-29.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:065932f9abd4cc2ac85643cb504d32402021fb599b59918273cae029b3ffe365 +size 39341 diff --git a/patch_defects4j/Mockito-34.json b/patch_defects4j/Mockito-34.json new file mode 100644 index 0000000000000000000000000000000000000000..fb55c3e5a06766e98b08cbb6da3d80c2cff91f66 --- /dev/null +++ b/patch_defects4j/Mockito-34.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:79c43f5eab41e36ccf3dc2d41e7a6aa4b6a408d4e8a56e444a25b01a2a7fb42f +size 142094 diff --git a/patch_defects4j/Mockito-38.json b/patch_defects4j/Mockito-38.json new file mode 100644 index 0000000000000000000000000000000000000000..21217d26e91ef173eb33e992e976201d1995660e --- /dev/null +++ b/patch_defects4j/Mockito-38.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:065f24481452b95faa3a1c1a72c2a83350add3aae0bf0aa563728f100ab8c8d1 +size 112917 diff --git a/patch_defects4j/Time-16.json b/patch_defects4j/Time-16.json new file mode 100644 index 0000000000000000000000000000000000000000..c859e2c29cff8b81f995ce6bbd857409da23a0a4 --- /dev/null +++ b/patch_defects4j/Time-16.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:75ebe69036ad8fc7a8cbd595bd9b36665f2b2a68fbd94931dda9b2476e2d3931 +size 1833869 diff --git a/patch_defects4j/Time-19.json b/patch_defects4j/Time-19.json new file mode 100644 index 0000000000000000000000000000000000000000..2e3da5218091bd3b52c0c1d1335529d7302b3197 --- /dev/null +++ b/patch_defects4j/Time-19.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3737703cc0a57a97164b43490567f38587af3d3b6711ce1acf7e6ba21c5c9819 +size 2637386 diff --git a/patch_defects4j/Time-4.json b/patch_defects4j/Time-4.json new file mode 100644 index 0000000000000000000000000000000000000000..7973e29f1d24cbff1c9a6f5b14f5e9026d3b6007 --- /dev/null +++ b/patch_defects4j/Time-4.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c69b7dcc10b1a63f94f9956d2c8df7777d00b8aa26efe8c337feed63bd510d95 +size 1706600 diff --git a/patch_quixbugs/BITCOUNT.java.json b/patch_quixbugs/BITCOUNT.java.json new file mode 100644 index 0000000000000000000000000000000000000000..1d86db8428d395e02940ccf8571c201560360a6a --- /dev/null +++ b/patch_quixbugs/BITCOUNT.java.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:35c31a7e24b738732d3315679fd8c82e7e069920b6c407723f961122cb20efa3 +size 119902 diff --git a/patch_quixbugs/BREADTH_FIRST_SEARCH.java.json b/patch_quixbugs/BREADTH_FIRST_SEARCH.java.json new file mode 100644 index 0000000000000000000000000000000000000000..187678dbb9e20556098a8dbdd1dd34bced0b5708 --- /dev/null +++ b/patch_quixbugs/BREADTH_FIRST_SEARCH.java.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8a38e88de3991f5b1af88371e8eb6836217c4986eaa2a7b1595e5d0e2d50efc0 +size 127949 diff --git a/patch_quixbugs/BUCKETSORT.java.json b/patch_quixbugs/BUCKETSORT.java.json new file mode 100644 index 0000000000000000000000000000000000000000..8c99f7f60b6224f51045f7c28ba9bd76e50e1a84 --- /dev/null +++ b/patch_quixbugs/BUCKETSORT.java.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1d63aa5cf65c5a3b9501a62b8eb8333bb5e8a5c701e9ef6bff9137c799cf39c5 +size 107219 diff --git a/patch_quixbugs/DEPTH_FIRST_SEARCH.java.json b/patch_quixbugs/DEPTH_FIRST_SEARCH.java.json new file mode 100644 index 0000000000000000000000000000000000000000..f4cc069ecdcb4d80de73142c6419663dfd08a8cc --- /dev/null +++ b/patch_quixbugs/DEPTH_FIRST_SEARCH.java.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1bcb597dde8af07ab127ca5c8a260b53ddc411ad110414e6540dd43f079b1840 +size 111289 diff --git a/patch_quixbugs/DETECT_CYCLE.java.json b/patch_quixbugs/DETECT_CYCLE.java.json new file mode 100644 index 0000000000000000000000000000000000000000..af8823555294ed29a2b320ec145908ade4f4127d --- /dev/null +++ b/patch_quixbugs/DETECT_CYCLE.java.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a8ad3814bee0a074eb21704715c24538efb8bf2c45589563c440a728f3e56bba +size 104850 diff --git a/patch_quixbugs/FIND_FIRST_IN_SORTED.java.json b/patch_quixbugs/FIND_FIRST_IN_SORTED.java.json new file mode 100644 index 0000000000000000000000000000000000000000..bd0d08d4ba4b55e58a62d379ec7277f0fc84e087 --- /dev/null +++ b/patch_quixbugs/FIND_FIRST_IN_SORTED.java.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d23f0f28d28513de73e453cfe07d2f9fad710224243fd89221ad4ad5cbd617e4 +size 162485 diff --git a/patch_quixbugs/FIND_IN_SORTED.java.json b/patch_quixbugs/FIND_IN_SORTED.java.json new file mode 100644 index 0000000000000000000000000000000000000000..21881a3f7663c2f6eec6e7a9f4fc885fea719e28 --- /dev/null +++ b/patch_quixbugs/FIND_IN_SORTED.java.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:513e512bf12a571a227d7d8b0a9fbaf0ac4f70d62fbf7958e1c53c2b43df73e9 +size 155434 diff --git a/patch_quixbugs/GCD.java.json b/patch_quixbugs/GCD.java.json new file mode 100644 index 0000000000000000000000000000000000000000..0442d56c835730435d2488224e5b89c3ce81b4d4 --- /dev/null +++ b/patch_quixbugs/GCD.java.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0c2391d9fb5cf1b11b61819b44040ccccddab9042af696a93964dffb580265b0 +size 107156 diff --git a/patch_quixbugs/GET_FACTORS.java.json b/patch_quixbugs/GET_FACTORS.java.json new file mode 100644 index 0000000000000000000000000000000000000000..d6617ca77dad04d094082fd85aa16cbe92accaa1 --- /dev/null +++ b/patch_quixbugs/GET_FACTORS.java.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:12da47a3d34ca46325005285557e0ca4453f2116918e591aed05ddd23db9a825 +size 102614 diff --git a/patch_quixbugs/HANOI.java.json b/patch_quixbugs/HANOI.java.json new file mode 100644 index 0000000000000000000000000000000000000000..f1ecdd74bcfd3205cf162188ef0224f8fc468e63 --- /dev/null +++ b/patch_quixbugs/HANOI.java.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9817d40f718d69344ad6a87e226465d30228eaa93eb922176b5241ecc5ae5d1e +size 202171 diff --git a/patch_quixbugs/IS_VALID_PARENTHESIZATION.java.json b/patch_quixbugs/IS_VALID_PARENTHESIZATION.java.json new file mode 100644 index 0000000000000000000000000000000000000000..eca081adae7380fcaaff986d2d305733e4513ffb --- /dev/null +++ b/patch_quixbugs/IS_VALID_PARENTHESIZATION.java.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:31d020baaa1ab7eea300aa7014b6f9fcb5edc2546ace37bb0c724af42df34ab4 +size 99507 diff --git a/patch_quixbugs/KHEAPSORT.java.json b/patch_quixbugs/KHEAPSORT.java.json new file mode 100644 index 0000000000000000000000000000000000000000..93a9894e95815a38e12cf7a0518cabd4b655cd0f --- /dev/null +++ b/patch_quixbugs/KHEAPSORT.java.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cfffa6b890cfb23201cf779fc14b141ba97403af943cac94160a48cf3b20a620 +size 142092 diff --git a/patch_quixbugs/KNAPSACK.java.json b/patch_quixbugs/KNAPSACK.java.json new file mode 100644 index 0000000000000000000000000000000000000000..a0ba9627ac3aebe3ff424489fa9afa62bbb4caf7 --- /dev/null +++ b/patch_quixbugs/KNAPSACK.java.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2adb4b53e90e99f87168cc70e6b6ce6dce2913b1e348de96234166582d2f31aa +size 215105 diff --git a/patch_quixbugs/KTH.java.json b/patch_quixbugs/KTH.java.json new file mode 100644 index 0000000000000000000000000000000000000000..2d20fb7833fdb7db893cf54765c0ef597ff69eda --- /dev/null +++ b/patch_quixbugs/KTH.java.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:68b19e14414fbf70e5c731d0cddeec0215d5b40973fa6644e0bce4c42bd57bdc +size 124124 diff --git a/patch_quixbugs/LEVENSHTEIN.java.json b/patch_quixbugs/LEVENSHTEIN.java.json new file mode 100644 index 0000000000000000000000000000000000000000..caccfec825732ab481a7c3afc47c41afc2d553bf --- /dev/null +++ b/patch_quixbugs/LEVENSHTEIN.java.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:029d0cae4e3627f194229cb1ecf927d087c4b5b095ae19a77612893b0d7471c6 +size 132047 diff --git a/patch_quixbugs/LIS.java.json b/patch_quixbugs/LIS.java.json new file mode 100644 index 0000000000000000000000000000000000000000..7224805c2cee01898f300dd438fac1c17238af5e --- /dev/null +++ b/patch_quixbugs/LIS.java.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:96c42264d04b12ab308d4abde28b39a6e547e79978e28bd02ec8a8a70e22bad6 +size 157667 diff --git a/patch_quixbugs/LONGEST_COMMON_SUBSEQUENCE.java.json b/patch_quixbugs/LONGEST_COMMON_SUBSEQUENCE.java.json new file mode 100644 index 0000000000000000000000000000000000000000..c8c3d77e03526a10d5c2147d59210f87064442a5 --- /dev/null +++ b/patch_quixbugs/LONGEST_COMMON_SUBSEQUENCE.java.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0659bf01ef170df19278e32c5bdd1df1ac927950738dee996ec226e4759d440c +size 160907 diff --git a/patch_quixbugs/MAX_SUBLIST_SUM.java.json b/patch_quixbugs/MAX_SUBLIST_SUM.java.json new file mode 100644 index 0000000000000000000000000000000000000000..923502c7803f12ae96df6b984089b543a9a1270e --- /dev/null +++ b/patch_quixbugs/MAX_SUBLIST_SUM.java.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:58e0c6fa989643a621206d0a7953931e154190ca40483acef68d82c197e3f69d +size 108376 diff --git a/patch_quixbugs/MERGESORT.java.json b/patch_quixbugs/MERGESORT.java.json new file mode 100644 index 0000000000000000000000000000000000000000..69b7a4715bfd6debe09d31791cbf7efd2d6b3e72 --- /dev/null +++ b/patch_quixbugs/MERGESORT.java.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d6a7001eb168a8f5fbed3eb7e12cac0b84e55c32199bce7c1cd56d62143264e3 +size 224479 diff --git a/patch_quixbugs/NEXT_PALINDROME.java.json b/patch_quixbugs/NEXT_PALINDROME.java.json new file mode 100644 index 0000000000000000000000000000000000000000..c323c52e1517ef62162448e89900624cba0cf61f --- /dev/null +++ b/patch_quixbugs/NEXT_PALINDROME.java.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0f3f045467501d985ba1d4fb489aa03406d38ef8356d225f5595f92a95a8e7bf +size 184665 diff --git a/patch_quixbugs/NEXT_PERMUTATION.java.json b/patch_quixbugs/NEXT_PERMUTATION.java.json new file mode 100644 index 0000000000000000000000000000000000000000..1da0cedca36baa348fd257a6a297be2f394bdda4 --- /dev/null +++ b/patch_quixbugs/NEXT_PERMUTATION.java.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:28cc61fa437daf087671ad547d09a53f4c58b36a734b8a9c31b588042cb6d4c7 +size 223184 diff --git a/patch_quixbugs/PASCAL.java.json b/patch_quixbugs/PASCAL.java.json new file mode 100644 index 0000000000000000000000000000000000000000..fdfe0a8430e2072632d081a917e9e8e75e71c930 --- /dev/null +++ b/patch_quixbugs/PASCAL.java.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3829672816d2a9ebcafc3988483cd72bb4dfe1766199d3fbdf96a74c31214794 +size 180746 diff --git a/patch_quixbugs/POSSIBLE_CHANGE.java.json b/patch_quixbugs/POSSIBLE_CHANGE.java.json new file mode 100644 index 0000000000000000000000000000000000000000..32962e9a1866e6842b2eb840e5d50ead2bc94de3 --- /dev/null +++ b/patch_quixbugs/POSSIBLE_CHANGE.java.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f743771e4e366bd44389761b6f86ef03a4d6cfdde6aafdb4185dfd794059247e +size 135199 diff --git a/patch_quixbugs/QUICKSORT.java.json b/patch_quixbugs/QUICKSORT.java.json new file mode 100644 index 0000000000000000000000000000000000000000..8e053ad613e3a6c9775d81fdc2feb741ae2a41c6 --- /dev/null +++ b/patch_quixbugs/QUICKSORT.java.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9b95efc54b87598c1ef6c0e7f64d6d32f03a1c31efa5f2e2638377e49c7b66c0 +size 170188 diff --git a/patch_quixbugs/RPN_EVAL.java.json b/patch_quixbugs/RPN_EVAL.java.json new file mode 100644 index 0000000000000000000000000000000000000000..54b26da2134f10f9c78d8fb7e4d034deb4fbd900 --- /dev/null +++ b/patch_quixbugs/RPN_EVAL.java.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e31fb2373b3a0d714ceccb32eb5409ce08f3c16e2b6aec7ad2b2671965779da4 +size 172438 diff --git a/patch_quixbugs/SHORTEST_PATH_LENGTHS.java.json b/patch_quixbugs/SHORTEST_PATH_LENGTHS.java.json new file mode 100644 index 0000000000000000000000000000000000000000..3bd079f88ccdb26a8d9d55aaac2eb9e4943854b7 --- /dev/null +++ b/patch_quixbugs/SHORTEST_PATH_LENGTHS.java.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:659c362afdfbcf4b874b33c9a669cf837a915a9bf14135123be30bfd0cb9198b +size 284854 diff --git a/patch_quixbugs/SHUNTING_YARD.java.json b/patch_quixbugs/SHUNTING_YARD.java.json new file mode 100644 index 0000000000000000000000000000000000000000..704f95c3299269be5a384773ab09531979343a8b --- /dev/null +++ b/patch_quixbugs/SHUNTING_YARD.java.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:98cfe753cb4f29b54e679691b6b037512d4d90d31c3091bcb92d9e94a819c23a +size 167792 diff --git a/patch_quixbugs/SIEVE.java.json b/patch_quixbugs/SIEVE.java.json new file mode 100644 index 0000000000000000000000000000000000000000..9ef9d6e25f326693bf8a83acf6a93b07a10951b5 --- /dev/null +++ b/patch_quixbugs/SIEVE.java.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5097db6ec41d976f7fa4e185ab59f655a76038244ad63399099d417819b1edb6 +size 142001 diff --git a/patch_quixbugs/SUBSEQUENCES.java.json b/patch_quixbugs/SUBSEQUENCES.java.json new file mode 100644 index 0000000000000000000000000000000000000000..767fcae8673b80d502eee6ae857ffda52faa0fed --- /dev/null +++ b/patch_quixbugs/SUBSEQUENCES.java.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1f60a1ac5d225c0837dd285e22a6ce4f31453cff1ae3e5e51cd30585af42061d +size 115916 diff --git a/patch_quixbugs/TOPOLOGICAL_ORDERING.java.json b/patch_quixbugs/TOPOLOGICAL_ORDERING.java.json new file mode 100644 index 0000000000000000000000000000000000000000..ddb20b43611689204dbe24647f155baaa635cb60 --- /dev/null +++ b/patch_quixbugs/TOPOLOGICAL_ORDERING.java.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d7d146419ce3dc79d37805b1e9e00414d1295824b237ac5faa44ca97983fe0ae +size 169504 diff --git a/patch_quixbugs/TO_BASE.java.json b/patch_quixbugs/TO_BASE.java.json new file mode 100644 index 0000000000000000000000000000000000000000..0e675bbc7c9127b792691b430a50de616f82a2f0 --- /dev/null +++ b/patch_quixbugs/TO_BASE.java.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0cecdb7688aff7bb36992e346118fb4e7214a6c0ee51d0876a05993584e2d24f +size 146574 diff --git a/patch_quixbugs/WRAP.java.json b/patch_quixbugs/WRAP.java.json new file mode 100644 index 0000000000000000000000000000000000000000..8091792e64dfee57e8694eac8c384ecb2f7002a1 --- /dev/null +++ b/patch_quixbugs/WRAP.java.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1f9b275f1ccd9af51b5879466b6dbcb2714c40b06e44a4230c9e6dbdf8db0d25 +size 117789 diff --git a/preprocessing.ipynb b/preprocessing.ipynb new file mode 100644 index 0000000000000000000000000000000000000000..8dcb07440179fb2ed5331c6c4c45f7f299882ab4 --- /dev/null +++ b/preprocessing.ipynb @@ -0,0 +1,2028 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 1, + "metadata": {}, + "outputs": [], + "source": [ + "import pickle\n", + "import difflib\n", + "import unidiff\n", + "import re\n", + "from unidiff import Hunk, PatchedFile, PatchSet\n", + "import pandas as pd\n", + "from typing import List, Tuple\n", + "import os\n", + "import json" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": {}, + "outputs": [], + "source": [ + "\n", + "data = {}\n", + "with open('data1.pkl','rb') as f:\n", + " data = pickle.load(f)\n", + "\n", + "#print(data)" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": {}, + "outputs": [], + "source": [ + "\n", + "data_0 = {}\n", + "with open('data0.pkl','rb') as f:\n", + " data_0 = pickle.load(f)\n", + "\n", + "#print(data_0)" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "'private final void realStartServiceLocked(ServiceRecord r,ProcessRecord app,boolean execInFg) throws RemoteException {\\n if (app.thread == null) {\\n throw new RemoteException();\\n }\\n if (DEBUG_MU) Slog.v(TAG_MU,\"String_Node_Str\" + r.appInfo.uid + \"String_Node_Str\"+ app.uid);\\n r.app=app;\\n r.restartTime=r.lastActivity=SystemClock.uptimeMillis();\\n app.services.add(r);\\n bumpServiceExecutingLocked(r,execInFg,\"String_Node_Str\");\\n mAm.updateLruProcessLocked(app,false,null);\\n mAm.updateOomAdjLocked();\\n boolean created=false;\\n try {\\n String nameTerm;\\n int lastPeriod=r.shortName.lastIndexOf(\\'.\\');\\n nameTerm=lastPeriod >= 0 ? r.shortName.substring(lastPeriod) : r.shortName;\\n EventLogTags.writeAmCreateService(r.userId,System.identityHashCode(r),nameTerm,r.app.uid,r.app.pid);\\nsynchronized (r.stats.getBatteryStats()) {\\n r.stats.startLaunchedLocked();\\n }\\n mAm.ensurePackageDexOpt(r.serviceInfo.packageName);\\n app.forceProcessStateUpTo(ActivityManager.PROCESS_STATE_SERVICE);\\n app.thread.scheduleCreateService(r,r.serviceInfo,mAm.compatibilityInfoForPackageLocked(r.serviceInfo.applicationInfo),app.repProcState);\\n r.postNotification();\\n created=true;\\n }\\n finally {\\n if (!created) {\\n app.services.remove(r);\\n r.app=null;\\n scheduleServiceRestartLocked(r,false);\\n }\\n }\\n requestServiceBindingsLocked(r,execInFg);\\n if (r.startRequested && r.callStart && r.pendingStarts.size() == 0) {\\n r.pendingStarts.add(new ServiceRecord.StartItem(r,false,r.makeNextStartId(),null,null));\\n }\\n sendServiceArgsLocked(r,execInFg,true);\\n if (r.delayed) {\\n if (DEBUG_DELAYED_STARTS) Slog.v(TAG,\"String_Node_Str\" + r);\\n getServiceMap(r.userId).mDelayedStartList.remove(r);\\n r.delayed=false;\\n }\\n if (r.delayedStop) {\\n r.delayedStop=false;\\n if (r.startRequested) {\\n if (DEBUG_DELAYED_STARTS) Slog.v(TAG,\"String_Node_Str\" + r);\\n stopServiceLocked(r);\\n }\\n }\\n}'" + ] + }, + "execution_count": 4, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "data[0]['new']" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "'private final void realStartServiceLocked(ServiceRecord r,ProcessRecord app,boolean execInFg) throws RemoteException {\\n if (app.thread == null) {\\n throw new RemoteException();\\n }\\n if (DEBUG_MU) Slog.v(TAG_MU,\"String_Node_Str\" + r.appInfo.uid + \"String_Node_Str\"+ app.uid);\\n r.app=app;\\n r.restartTime=r.lastActivity=SystemClock.uptimeMillis();\\n app.services.add(r);\\n bumpServiceExecutingLocked(r,execInFg,\"String_Node_Str\");\\n mAm.updateLruProcessLocked(app,false,null);\\n mAm.updateOomAdjLocked();\\n boolean created=false;\\n try {\\n String nameTerm;\\n int lastPeriod=r.shortName.lastIndexOf(\\'.\\');\\n nameTerm=lastPeriod >= 0 ? r.shortName.substring(lastPeriod) : r.shortName;\\n EventLogTags.writeAmCreateService(r.userId,System.identityHashCode(r),nameTerm,r.app.uid,r.app.pid);\\nsynchronized (r.stats.getBatteryStats()) {\\n r.stats.startLaunchedLocked();\\n }\\n mAm.ensurePackageDexOpt(r.serviceInfo.packageName);\\n app.forceProcessStateUpTo(ActivityManager.PROCESS_STATE_SERVICE);\\n app.thread.scheduleCreateService(r,r.serviceInfo,mAm.compatibilityInfoForPackageLocked(r.serviceInfo.applicationInfo),app.repProcState);\\n r.postNotification();\\n created=true;\\n }\\n finally {\\n if (!created) {\\n app.services.remove(r);\\n r.app=null;\\n scheduleServiceRestartLocked(r,false);\\n }\\n }\\n requestServiceBindingsLocked(r,execInFg);\\n if (r.startRequested && r.callStart && r.pendingStarts.size() == 0) {\\n r.pendingStarts.add(new ServiceRecord.StartItem(r,false,r.makeNextStartId(),null,null));\\n }\\n sendServiceArgsLocked(r,execInFg,true);\\n if (r.delayed) {\\n if (DEBUG_DELAYED_STATS) Slog.v(TAG,\"String_Node_Str\" + r);\\n getServiceMap(r.userId).mDelayedStartList.remove(r);\\n r.delayed=false;\\n }\\n if (r.delayedStop) {\\n r.delayedStop=false;\\n if (r.startRequested) {\\n if (DEBUG_DELAYED_STATS) Slog.v(TAG,\"String_Node_Str\" + r);\\n stopServiceLocked(r);\\n }\\n }\\n}'" + ] + }, + "execution_count": 5, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "data[0]['old']" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": {}, + "outputs": [], + "source": [ + "flat_map = lambda f, xs: (y for ys in xs for y in f(ys))\n", + "def generate_dict_training(data):\n", + " res = {\n", + " 'program_id':[],\n", + " 'project_id':[],\n", + " 'source':[],\n", + " 'target': [],\n", + " 'path': [],\n", + " }\n", + " for identifier,entry in enumerate(data):\n", + " res['path'].append('None')\n", + " res['program_id'].append(identifier)\n", + " res['project_id'].append(identifier)\n", + " res['source'].append(entry['old'])\n", + " res['target'].append(entry['new'])\n", + " return res" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": {}, + "outputs": [], + "source": [ + "pd.DataFrame(data=generate_dict_training(data)).to_csv('training_data_1.csv')" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": {}, + "outputs": [], + "source": [ + "pd.DataFrame(data=generate_dict_training(data_0)).to_csv('training_data_0.csv')" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": {}, + "outputs": [], + "source": [ + "pd.DataFrame(data=generate_dict_training(data + data_0) ).to_csv('training_data.csv')" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": {}, + "outputs": [], + "source": [ + "import stringfycode" + ] + }, + { + "cell_type": "code", + "execution_count": 20, + "metadata": {}, + "outputs": [], + "source": [ + "def process_inference_results(dataset_name,get_ground_truth):\n", + " res = {\n", + " 'program_id':[],\n", + " 'project_id':[],\n", + " 'source':[],\n", + " 'target': [],\n", + " 'path': [],\n", + " }\n", + " patch_info = {\n", + " 'project_id':[],\n", + " 'program_id':[],\n", + " }\n", + " bug_maps = {}\n", + "\n", + " for bug in os.listdir(f'./patch_{dataset_name}/'):\n", + " with open(os.path.join(f'./patch_{dataset_name}/',bug)) as f:\n", + " patches = json.load(f)\n", + " #print(\"BUG NAME:\",bug)\n", + " #print(len(patches))\n", + " bug_maps[bug[:-5]] = patches # remove.json\n", + " \n", + " max_patch_count = max(map(len,bug_maps.values()))\n", + "\n", + " for i in range(max_patch_count):\n", + " #print(i)\n", + " patch_info['patch_{}'.format(i)] = []\n", + "\n", + " for bug_id,patches in bug_maps.items():\n", + " splitted = bug_id.split('-')\n", + " if len(splitted) == 2:\n", + " project_id,program_id = splitted\n", + " else:\n", + " project_id = program_id = bug_id \n", + " code = patches[0]['precode'] + patches[0]['oldcode'] + patches[0]['aftercode']\n", + " \n", + " res['program_id'].append(program_id)\n", + " res['project_id'].append(project_id)\n", + "\n", + " patch_info['program_id'].append(program_id)\n", + " patch_info['project_id'].append(project_id)\n", + "\n", + " path = '/'.join(patches[0]['filename'].split('/')[6:])\n", + "\n", + " res['path'].append(path)\n", + " res['source'].append(code)\n", + " res['target'].append(get_ground_truth(bug_id,path))\n", + " i = 0\n", + " for patch in patches:\n", + " try:\n", + " #print(patch.keys())\n", + " #print(patch['oldcode'])\n", + " patch_code = stringfycode.stringfyNode(stringfycode.getroottree(patch['code'].split()).child[0]).strip().replace('','\"String\"')\n", + " #input()\n", + " except Exception:\n", + " #print(\"PATCH CODE: --\",patch['code'],'--')\n", + " #print(\"Failed\")\n", + " patch_code = ''\n", + " patch_info['patch_{}'.format(i)].append(patch_code)\n", + " i = i+1\n", + " while i != max_patch_count:\n", + " patch_info['patch_{}'.format(i)].append('None')\n", + " i+=1\n", + " pd.DataFrame(data=res).to_csv(f'input_recoder_{dataset_name}.csv')\n", + " pd.DataFrame(data=patch_info).to_csv(f'output_recoder_{dataset_name}.csv')\n" + ] + }, + { + "cell_type": "code", + "execution_count": 21, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "source/org/jfree/chart/plot/MultiplePiePlot.java\n", + "src/java/org/apache/commons/math/analysis/solvers/UnivariateRealSolverUtils.java\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "Check out program version: Chart-12f....................................... OK\n", + "Checking out 9be86f67 to /home/martin/recoder/temp_dir..................... OK\n", + "Init local repository...................................................... OK\n", + "Tag post-fix revision...................................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Initialize fixed program version........................................... OK\n", + "Apply patch................................................................ OK\n", + "Initialize buggy program version........................................... OK\n", + "Diff 9be86f67:8de8a3b6..................................................... OK\n", + "Apply patch................................................................ OK\n", + "Tag pre-fix revision....................................................... OK\n", + "Check out program version: Math-85f........................................ OK\n", + "Checking out e6449ccc to /home/martin/recoder/temp_dir..................... " + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "src/java/org/apache/commons/math/complex/Complex.java\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "OK\n", + "Init local repository...................................................... OK\n", + "Tag post-fix revision...................................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Initialize fixed program version........................................... OK\n", + "Apply patch................................................................ OK\n", + "Initialize buggy program version........................................... OK\n", + "Diff e6449ccc:704342d6..................................................... OK\n", + "Apply patch................................................................ OK\n", + "Tag pre-fix revision....................................................... OK\n", + "Check out program version: Math-96f........................................ OK\n", + "Checking out c04cd233 to /home/martin/recoder/temp_dir..................... " + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "src/java/org/apache/commons/lang/text/StrBuilder.java\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "OK\n", + "Init local repository...................................................... OK\n", + "Tag post-fix revision...................................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Initialize fixed program version........................................... OK\n", + "Apply patch................................................................ OK\n", + "Initialize buggy program version........................................... OK\n", + "Diff c04cd233:38f8bcc6..................................................... OK\n", + "Apply patch................................................................ OK\n", + "Tag pre-fix revision....................................................... OK\n", + "Check out program version: Lang-59f........................................ OK\n", + "Checking out a96e5978 to /home/martin/recoder/temp_dir..................... " + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "src/java/org/apache/commons/math/util/MathUtils.java\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "OK\n", + "Init local repository...................................................... OK\n", + "Tag post-fix revision...................................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Initialize fixed program version........................................... OK\n", + "Apply patch................................................................ OK\n", + "Initialize buggy program version........................................... OK\n", + "Diff a96e5978:ee88057b..................................................... OK\n", + "Apply patch................................................................ OK\n", + "Tag pre-fix revision....................................................... OK\n", + "Check out program version: Math-94f........................................ OK\n", + "Checking out c17169c2 to /home/martin/recoder/temp_dir..................... OK\n", + "Init local repository...................................................... OK\n", + "Tag post-fix revision...................................................... " + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "src/org/mockito/internal/stubbing/defaultanswers/ReturnsEmptyValues.java\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "OK\n", + "Run post-checkout hook..................................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Initialize fixed program version........................................... OK\n", + "Apply patch................................................................ OK\n", + "Initialize buggy program version........................................... OK\n", + "Diff c17169c2:585b06d8..................................................... OK\n", + "Apply patch................................................................ OK\n", + "Tag pre-fix revision....................................................... OK\n", + "Check out program version: Mockito-24f..................................... OK\n", + "Checking out ec4a34c2 to /home/martin/recoder/temp_dir..................... " + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "src/com/google/javascript/jscomp/TypedScopeCreator.java\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "OK\n", + "Init local repository...................................................... OK\n", + "Tag post-fix revision...................................................... OK\n", + "Run post-checkout hook..................................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Initialize fixed program version........................................... OK\n", + "Apply patch................................................................ OK\n", + "Initialize buggy program version........................................... OK\n", + "Diff ec4a34c2:7433d30a..................................................... OK\n", + "Apply patch................................................................ OK\n", + "Tag pre-fix revision....................................................... OK\n", + "Check out program version: Closure-70f..................................... OK\n", + "Checking out 520f36b4 to /home/martin/recoder/temp_dir..................... " + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "src/main/java/org/apache/commons/math3/genetics/ListPopulation.java\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "OK\n", + "Init local repository...................................................... OK\n", + "Tag post-fix revision...................................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Initialize fixed program version........................................... OK\n", + "Apply patch................................................................ OK\n", + "Initialize buggy program version........................................... OK\n", + "Diff 520f36b4:b91b3efb..................................................... OK\n", + "Apply patch................................................................ OK\n", + "Tag pre-fix revision....................................................... OK\n", + "Check out program version: Math-34f........................................ OK\n", + "Checking out b12d1d64 to /home/martin/recoder/temp_dir..................... " + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "src/com/google/javascript/jscomp/LightweightMessageFormatter.java\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "OK\n", + "Init local repository...................................................... OK\n", + "Tag post-fix revision...................................................... OK\n", + "Run post-checkout hook..................................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Initialize fixed program version........................................... OK\n", + "Apply patch................................................................ OK\n", + "Initialize buggy program version........................................... OK\n", + "Diff b12d1d64:1e070472..................................................... OK\n", + "Apply patch................................................................ OK\n", + "Tag pre-fix revision....................................................... OK\n", + "Check out program version: Closure-62f..................................... OK\n", + "Checking out c1f2c4e6 to /home/martin/recoder/temp_dir..................... " + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "src/org/mockito/internal/verification/argumentmatching/ArgumentMatchingTool.java\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "OK\n", + "Init local repository...................................................... OK\n", + "Tag post-fix revision...................................................... OK\n", + "Apply patch................................................................ OK\n", + "Run post-checkout hook..................................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Initialize fixed program version........................................... OK\n", + "Apply patch................................................................ OK\n", + "Initialize buggy program version........................................... OK\n", + "Diff c1f2c4e6:a663d2fe..................................................... OK\n", + "Apply patch................................................................ OK\n", + "Tag pre-fix revision....................................................... OK\n", + "Check out program version: Mockito-38f..................................... OK\n", + "Checking out 1025 to /home/martin/recoder/temp_dir......................... " + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "source/org/jfree/chart/util/ShapeUtilities.java\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "OK\n", + "Init local repository...................................................... OK\n", + "Tag post-fix revision...................................................... OK\n", + "Apply patch................................................................ OK\n", + "Run post-checkout hook..................................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Initialize fixed program version........................................... OK\n", + "Apply patch................................................................ OK\n", + "Initialize buggy program version........................................... OK\n", + "Diff 1025:1024............................................................. OK\n", + "Apply patch................................................................ OK\n", + "Tag pre-fix revision....................................................... OK\n", + "Check out program version: Chart-11f....................................... OK\n", + "Checking out 5909c3db to /home/martin/recoder/temp_dir..................... " + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "src/com/google/javascript/jscomp/CodeGenerator.java\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "OK\n", + "Init local repository...................................................... OK\n", + "Tag post-fix revision...................................................... OK\n", + "Run post-checkout hook..................................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Initialize fixed program version........................................... OK\n", + "Apply patch................................................................ OK\n", + "Initialize buggy program version........................................... OK\n", + "Diff 5909c3db:d7907296..................................................... OK\n", + "Apply patch................................................................ OK\n", + "Tag pre-fix revision....................................................... OK\n", + "Check out program version: Closure-52f..................................... OK\n", + "Checking out 5f2077bb to /home/martin/recoder/temp_dir..................... " + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "src/main/java/org/apache/commons/math3/fraction/Fraction.java\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "OK\n", + "Init local repository...................................................... OK\n", + "Tag post-fix revision...................................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Initialize fixed program version........................................... OK\n", + "Apply patch................................................................ OK\n", + "Initialize buggy program version........................................... OK\n", + "Diff 5f2077bb:d3fc5af3..................................................... OK\n", + "Apply patch................................................................ OK\n", + "Tag pre-fix revision....................................................... OK\n", + "Check out program version: Math-27f........................................ OK\n", + "Checking out 190 to /home/martin/recoder/temp_dir.......................... " + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "source/org/jfree/chart/renderer/GrayPaintScale.java\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "OK\n", + "Init local repository...................................................... OK\n", + "Tag post-fix revision...................................................... OK\n", + "Apply patch................................................................ OK\n", + "Run post-checkout hook..................................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Initialize fixed program version........................................... OK\n", + "Apply patch................................................................ OK\n", + "Initialize buggy program version........................................... OK\n", + "Diff 190:188............................................................... OK\n", + "Apply patch................................................................ OK\n", + "Tag pre-fix revision....................................................... OK\n", + "Check out program version: Chart-24f....................................... OK\n", + "Checking out db1fdf97 to /home/martin/recoder/temp_dir..................... " + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "src/com/google/javascript/jscomp/CheckAccessControls.java\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "OK\n", + "Init local repository...................................................... OK\n", + "Tag post-fix revision...................................................... OK\n", + "Run post-checkout hook..................................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Initialize fixed program version........................................... OK\n", + "Apply patch................................................................ OK\n", + "Initialize buggy program version........................................... OK\n", + "Diff db1fdf97:c498ecb7..................................................... OK\n", + "Apply patch................................................................ OK\n", + "Tag pre-fix revision....................................................... OK\n", + "Check out program version: Closure-71f..................................... OK\n", + "Checking out f41fcd85 to /home/martin/recoder/temp_dir..................... " + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "src/main/java/org/apache/commons/math/analysis/solvers/BisectionSolver.java\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "OK\n", + "Init local repository...................................................... OK\n", + "Tag post-fix revision...................................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Initialize fixed program version........................................... OK\n", + "Apply patch................................................................ OK\n", + "Initialize buggy program version........................................... OK\n", + "Diff f41fcd85:f184aeb7..................................................... OK\n", + "Apply patch................................................................ OK\n", + "Tag pre-fix revision....................................................... OK\n", + "Check out program version: Math-70f........................................ OK\n", + "Checking out 2266 to /home/martin/recoder/temp_dir......................... " + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "source/org/jfree/chart/renderer/category/AbstractCategoryItemRenderer.java\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "OK\n", + "Init local repository...................................................... OK\n", + "Tag post-fix revision...................................................... OK\n", + "Apply patch................................................................ OK\n", + "Run post-checkout hook..................................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Initialize fixed program version........................................... OK\n", + "Apply patch................................................................ OK\n", + "Initialize buggy program version........................................... OK\n", + "Diff 2266:2264............................................................. OK\n", + "Apply patch................................................................ OK\n", + "Tag pre-fix revision....................................................... OK\n", + "Check out program version: Chart-1f........................................ OK\n", + "Checking out 45add3a0 to /home/martin/recoder/temp_dir..................... " + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "src/main/java/org/apache/commons/math/optimization/fitting/GaussianFitter.java\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "OK\n", + "Init local repository...................................................... OK\n", + "Tag post-fix revision...................................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Initialize fixed program version........................................... OK\n", + "Apply patch................................................................ OK\n", + "Initialize buggy program version........................................... OK\n", + "Diff 45add3a0:b1392325..................................................... OK\n", + "Apply patch................................................................ OK\n", + "Tag pre-fix revision....................................................... OK\n", + "Check out program version: Math-58f........................................ OK\n", + "Checking out 523df0c1 to /home/martin/recoder/temp_dir..................... " + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "src/main/java/org/apache/commons/math/stat/Frequency.java\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "OK\n", + "Init local repository...................................................... OK\n", + "Tag post-fix revision...................................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Initialize fixed program version........................................... OK\n", + "Apply patch................................................................ OK\n", + "Initialize buggy program version........................................... OK\n", + "Diff 523df0c1:39e2ad8a..................................................... OK\n", + "Apply patch................................................................ OK\n", + "Tag pre-fix revision....................................................... OK\n", + "Check out program version: Math-75f........................................ OK\n", + "Checking out aa2bd1d0 to /home/martin/recoder/temp_dir..................... OK\n", + "Init local repository...................................................... " + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "src/main/java/org/apache/commons/math3/distribution/MultivariateNormalDistribution.java\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "OK\n", + "Tag post-fix revision...................................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Initialize fixed program version........................................... OK\n", + "Apply patch................................................................ OK\n", + "Initialize buggy program version........................................... OK\n", + "Diff aa2bd1d0:02f64e73..................................................... OK\n", + "Apply patch................................................................ OK\n", + "Tag pre-fix revision....................................................... OK\n", + "Check out program version: Math-11f........................................ OK\n", + "Checking out 88c76d20 to /home/martin/recoder/temp_dir..................... OK\n", + "Init local repository...................................................... OK\n", + "Tag post-fix revision...................................................... OK\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "src/java/org/apache/commons/lang/text/StrBuilder.java\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Initialize fixed program version........................................... OK\n", + "Apply patch................................................................ OK\n", + "Initialize buggy program version........................................... OK\n", + "Diff 88c76d20:1313a65c..................................................... OK\n", + "Apply patch................................................................ OK\n", + "Tag pre-fix revision....................................................... OK\n", + "Check out program version: Lang-61f........................................ OK\n", + "Checking out 1083 to /home/martin/recoder/temp_dir......................... " + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "source/org/jfree/data/time/TimeSeries.java\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "OK\n", + "Init local repository...................................................... OK\n", + "Tag post-fix revision...................................................... OK\n", + "Apply patch................................................................ OK\n", + "Run post-checkout hook..................................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Initialize fixed program version........................................... OK\n", + "Apply patch................................................................ OK\n", + "Initialize buggy program version........................................... OK\n", + "Diff 1083:1082............................................................. OK\n", + "Apply patch................................................................ OK\n", + "Tag pre-fix revision....................................................... OK\n", + "Check out program version: Chart-9f........................................ OK\n", + "Checking out 8980b600 to /home/martin/recoder/temp_dir..................... " + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "src/com/google/javascript/jscomp/ProcessClosurePrimitives.java\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "OK\n", + "Init local repository...................................................... OK\n", + "Tag post-fix revision...................................................... OK\n", + "Run post-checkout hook..................................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Initialize fixed program version........................................... OK\n", + "Apply patch................................................................ OK\n", + "Initialize buggy program version........................................... OK\n", + "Diff 8980b600:39dde4ca..................................................... OK\n", + "Apply patch................................................................ OK\n", + "Tag pre-fix revision....................................................... OK\n", + "Check out program version: Closure-92f..................................... OK\n", + "Checking out 00fea9d8 to /home/martin/recoder/temp_dir..................... " + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "src/main/java/org/apache/commons/math/stat/clustering/KMeansPlusPlusClusterer.java\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "OK\n", + "Init local repository...................................................... OK\n", + "Tag post-fix revision...................................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Initialize fixed program version........................................... OK\n", + "Apply patch................................................................ OK\n", + "Initialize buggy program version........................................... OK\n", + "Diff 00fea9d8:d3892cb8..................................................... OK\n", + "Apply patch................................................................ OK\n", + "Tag pre-fix revision....................................................... OK\n", + "Check out program version: Math-57f........................................ OK\n", + "Checking out 3ba9ba79 to /home/martin/recoder/temp_dir..................... OK\n", + "Init local repository...................................................... OK\n", + "Tag post-fix revision...................................................... OK\n", + "Copy generated Ant build file.............................................. OK\n", + "Run post-checkout hook..................................................... OK\n", + "Excluding broken/flaky tests............................................... " + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "src/main/java/org/joda/time/Partial.java\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Initialize fixed program version........................................... OK\n", + "Apply patch................................................................ OK\n", + "Initialize buggy program version........................................... OK\n", + "Diff 3ba9ba79:bcb04466..................................................... OK\n", + "Apply patch................................................................ OK\n", + "Tag pre-fix revision....................................................... OK\n", + "Check out program version: Time-4f......................................... OK\n", + "Checking out 9fac3ccd to /home/martin/recoder/temp_dir..................... " + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "src/com/google/javascript/jscomp/CollapseProperties.java\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "OK\n", + "Init local repository...................................................... OK\n", + "Tag post-fix revision...................................................... OK\n", + "Run post-checkout hook..................................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Initialize fixed program version........................................... OK\n", + "Apply patch................................................................ OK\n", + "Initialize buggy program version........................................... OK\n", + "Diff 9fac3ccd:8a37f108..................................................... OK\n", + "Apply patch................................................................ OK\n", + "Tag pre-fix revision....................................................... OK\n", + "Check out program version: Closure-130f.................................... OK\n", + "Checking out 822 to /home/martin/recoder/temp_dir.......................... " + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "source/org/jfree/chart/block/BorderArrangement.java\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "OK\n", + "Init local repository...................................................... OK\n", + "Tag post-fix revision...................................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Initialize fixed program version........................................... OK\n", + "Apply patch................................................................ OK\n", + "Initialize buggy program version........................................... OK\n", + "Diff 822:817............................................................... OK\n", + "Apply patch................................................................ OK\n", + "Tag pre-fix revision....................................................... OK\n", + "Check out program version: Chart-13f....................................... OK\n", + "Checking out a2711c18 to /home/martin/recoder/temp_dir..................... " + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "src/main/java/org/apache/commons/math/stat/correlation/PearsonsCorrelation.java\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "OK\n", + "Init local repository...................................................... OK\n", + "Tag post-fix revision...................................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Initialize fixed program version........................................... OK\n", + "Apply patch................................................................ OK\n", + "Initialize buggy program version........................................... OK\n", + "Diff a2711c18:72728264..................................................... OK\n", + "Apply patch................................................................ OK\n", + "Tag pre-fix revision....................................................... OK\n", + "Check out program version: Math-69f........................................ OK\n", + "Checking out ee834409 to /home/martin/recoder/temp_dir..................... " + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "src/com/google/javascript/jscomp/CodeGenerator.java\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "OK\n", + "Init local repository...................................................... OK\n", + "Tag post-fix revision...................................................... OK\n", + "Run post-checkout hook..................................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Initialize fixed program version........................................... OK\n", + "Apply patch................................................................ OK\n", + "Initialize buggy program version........................................... OK\n", + "Diff ee834409:760bded3..................................................... OK\n", + "Apply patch................................................................ OK\n", + "Tag pre-fix revision....................................................... OK\n", + "Check out program version: Closure-73f..................................... OK\n", + "Checking out 13c7f19a to /home/martin/recoder/temp_dir..................... OK\n", + "Init local repository...................................................... OK\n", + "Tag post-fix revision...................................................... OK\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "src/main/java/org/apache/commons/lang3/math/NumberUtils.java\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Initialize fixed program version........................................... OK\n", + "Apply patch................................................................ OK\n", + "Initialize buggy program version........................................... OK\n", + "Diff 13c7f19a:a145b6d8..................................................... OK\n", + "Apply patch................................................................ OK\n", + "Tag pre-fix revision....................................................... OK\n", + "Check out program version: Lang-16f........................................ OK\n", + "Checking out 1065 to /home/martin/recoder/temp_dir......................... " + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "source/org/jfree/chart/imagemap/StandardToolTipTagFragmentGenerator.java\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "OK\n", + "Init local repository...................................................... OK\n", + "Tag post-fix revision...................................................... OK\n", + "Apply patch................................................................ OK\n", + "Run post-checkout hook..................................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Initialize fixed program version........................................... OK\n", + "Apply patch................................................................ OK\n", + "Initialize buggy program version........................................... OK\n", + "Diff 1065:1064............................................................. OK\n", + "Apply patch................................................................ OK\n", + "Tag pre-fix revision....................................................... OK\n", + "Check out program version: Chart-10f....................................... OK\n", + "Checking out 3ef79313 to /home/martin/recoder/temp_dir..................... " + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "src/main/java/org/apache/commons/math3/optimization/linear/SimplexTableau.java\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "OK\n", + "Init local repository...................................................... OK\n", + "Tag post-fix revision...................................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Initialize fixed program version........................................... OK\n", + "Apply patch................................................................ OK\n", + "Initialize buggy program version........................................... OK\n", + "Diff 3ef79313:e5c7e405..................................................... OK\n", + "Apply patch................................................................ OK\n", + "Tag pre-fix revision....................................................... OK\n", + "Check out program version: Math-33f........................................ OK\n", + "Checking out cff0f1ae to /home/martin/recoder/temp_dir..................... OK\n", + "Init local repository...................................................... OK\n", + "Tag post-fix revision...................................................... OK\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "src/main/java/org/apache/commons/lang3/text/translate/CharSequenceTranslator.java\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Initialize fixed program version........................................... OK\n", + "Apply patch................................................................ OK\n", + "Initialize buggy program version........................................... OK\n", + "Diff cff0f1ae:6823c374..................................................... OK\n", + "Apply patch................................................................ OK\n", + "Tag pre-fix revision....................................................... OK\n", + "Check out program version: Lang-6f......................................... OK\n", + "Checking out 918f0a5a to /home/martin/recoder/temp_dir..................... OK\n", + "Init local repository...................................................... OK\n", + "Tag post-fix revision...................................................... " + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "src/org/mockito/internal/matchers/Same.java\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Initialize fixed program version........................................... OK\n", + "Apply patch................................................................ OK\n", + "Initialize buggy program version........................................... OK\n", + "Diff 918f0a5a:df41fbe0..................................................... OK\n", + "Apply patch................................................................ OK\n", + "Tag pre-fix revision....................................................... OK\n", + "Check out program version: Mockito-29f..................................... OK\n", + "Checking out fc21b26f to /home/martin/recoder/temp_dir..................... OK\n", + "Init local repository...................................................... " + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "src/java/org/apache/commons/math/stat/regression/SimpleRegression.java\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "OK\n", + "Tag post-fix revision...................................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Initialize fixed program version........................................... OK\n", + "Apply patch................................................................ OK\n", + "Initialize buggy program version........................................... OK\n", + "Diff fc21b26f:ab1b9500..................................................... OK\n", + "Apply patch................................................................ OK\n", + "Tag pre-fix revision....................................................... OK\n", + "Check out program version: Math-105f....................................... OK\n", + "Checking out 3ced4f2a to /home/martin/recoder/temp_dir..................... OK\n", + "Init local repository...................................................... OK\n", + "Tag post-fix revision...................................................... " + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "src/main/java/org/apache/commons/math/linear/EigenDecompositionImpl.java\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Initialize fixed program version........................................... OK\n", + "Apply patch................................................................ OK\n", + "Initialize buggy program version........................................... OK\n", + "Diff 3ced4f2a:7d903ca5..................................................... OK\n", + "Apply patch................................................................ OK\n", + "Tag pre-fix revision....................................................... OK\n", + "Check out program version: Math-80f........................................ OK\n", + "Checking out c0b655ac to /home/martin/recoder/temp_dir..................... OK\n", + "Init local repository...................................................... OK\n", + "Tag post-fix revision...................................................... " + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "src/main/java/org/apache/commons/math3/distribution/HypergeometricDistribution.java\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Initialize fixed program version........................................... OK\n", + "Apply patch................................................................ OK\n", + "Initialize buggy program version........................................... OK\n", + "Diff c0b655ac:ad5c90bb..................................................... OK\n", + "Apply patch................................................................ OK\n", + "Tag pre-fix revision....................................................... OK\n", + "Check out program version: Math-2f......................................... OK\n", + "Checking out 8b1a8e17 to /home/martin/recoder/temp_dir..................... OK\n", + "Init local repository...................................................... OK\n", + "Tag post-fix revision...................................................... OK\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "src/java/org/apache/commons/lang/StringUtils.java\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "Run post-checkout hook..................................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Initialize fixed program version........................................... OK\n", + "Apply patch................................................................ OK\n", + "Initialize buggy program version........................................... OK\n", + "Diff 8b1a8e17:c72adf1b..................................................... OK\n", + "Apply patch................................................................ OK\n", + "Tag pre-fix revision....................................................... OK\n", + "Check out program version: Lang-40f........................................ OK\n", + "Checking out 82c5e4f9 to /home/martin/recoder/temp_dir..................... OK\n", + "Init local repository...................................................... OK\n", + "Tag post-fix revision...................................................... OK\n", + "Excluding broken/flaky tests............................................... " + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "src/main/java/org/joda/time/DateTimeZone.java\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Initialize fixed program version........................................... OK\n", + "Apply patch................................................................ OK\n", + "Initialize buggy program version........................................... OK\n", + "Diff 82c5e4f9:a92450e8..................................................... OK\n", + "Apply patch................................................................ OK\n", + "Tag pre-fix revision....................................................... OK\n", + "Check out program version: Time-19f........................................ OK\n", + "Checking out e54a1c92 to /home/martin/recoder/temp_dir..................... OK\n", + "Init local repository...................................................... OK\n", + "Tag post-fix revision...................................................... " + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "src/main/java/org/apache/commons/math3/complex/Complex.java\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Initialize fixed program version........................................... OK\n", + "Apply patch................................................................ OK\n", + "Initialize buggy program version........................................... OK\n", + "Diff e54a1c92:f5bcba81..................................................... OK\n", + "Apply patch................................................................ OK\n", + "Tag pre-fix revision....................................................... OK\n", + "Check out program version: Math-5f......................................... OK\n", + "Checking out 4ece1884 to /home/martin/recoder/temp_dir..................... " + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "src/main/java/org/apache/commons/math/optimization/linear/SimplexSolver.java\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "OK\n", + "Init local repository...................................................... OK\n", + "Tag post-fix revision...................................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Initialize fixed program version........................................... OK\n", + "Apply patch................................................................ OK\n", + "Initialize buggy program version........................................... OK\n", + "Diff 4ece1884:f36be8e8..................................................... OK\n", + "Apply patch................................................................ OK\n", + "Tag pre-fix revision....................................................... OK\n", + "Check out program version: Math-82f........................................ OK\n", + "Checking out 0603aef5 to /home/martin/recoder/temp_dir..................... OK\n", + "Init local repository...................................................... OK\n", + "Tag post-fix revision...................................................... OK\n", + "Run post-checkout hook..................................................... OK\n", + "Excluding broken/flaky tests............................................... " + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "src/main/java/org/apache/commons/lang3/ClassUtils.java\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Initialize fixed program version........................................... OK\n", + "Apply patch................................................................ OK\n", + "Initialize buggy program version........................................... OK\n", + "Diff 0603aef5:575be164..................................................... OK\n", + "Apply patch................................................................ OK\n", + "Tag pre-fix revision....................................................... OK\n", + "Check out program version: Lang-33f........................................ OK\n", + "Checking out f759f431 to /home/martin/recoder/temp_dir..................... " + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "src/com/google/javascript/jscomp/ClosureCodingConvention.java\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "OK\n", + "Init local repository...................................................... OK\n", + "Tag post-fix revision...................................................... OK\n", + "Run post-checkout hook..................................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Initialize fixed program version........................................... OK\n", + "Apply patch................................................................ OK\n", + "Initialize buggy program version........................................... OK\n", + "Diff f759f431:2d3b9a6c..................................................... OK\n", + "Apply patch................................................................ OK\n", + "Tag pre-fix revision....................................................... OK\n", + "Check out program version: Closure-57f..................................... OK\n", + "Checking out 706513d5 to /home/martin/recoder/temp_dir..................... OK\n", + "Init local repository...................................................... OK\n", + "Tag post-fix revision...................................................... OK\n", + "Excluding broken/flaky tests............................................... " + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "src/main/java/org/joda/time/format/DateTimeFormatter.java\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Initialize fixed program version........................................... OK\n", + "Apply patch................................................................ OK\n", + "Initialize buggy program version........................................... OK\n", + "Diff 706513d5:dba7c37e..................................................... OK\n", + "Apply patch................................................................ OK\n", + "Tag pre-fix revision....................................................... OK\n", + "Check out program version: Time-16f........................................ OK\n", + "Checking out 0907b661 to /home/martin/recoder/temp_dir..................... " + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "src/com/google/javascript/jscomp/NodeUtil.java\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "OK\n", + "Init local repository...................................................... OK\n", + "Tag post-fix revision...................................................... OK\n", + "Run post-checkout hook..................................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Initialize fixed program version........................................... OK\n", + "Apply patch................................................................ OK\n", + "Initialize buggy program version........................................... OK\n", + "Diff 0907b661:5cd9c1ef..................................................... OK\n", + "Apply patch................................................................ OK\n", + "Tag pre-fix revision....................................................... OK\n", + "Check out program version: Closure-86f..................................... OK\n", + "Checking out e8cebe01 to /home/martin/recoder/temp_dir..................... OK\n", + "Init local repository...................................................... " + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "src/org/mockito/internal/invocation/InvocationMatcher.java\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "OK\n", + "Tag post-fix revision...................................................... OK\n", + "Apply patch................................................................ OK\n", + "Run post-checkout hook..................................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Initialize fixed program version........................................... OK\n", + "Apply patch................................................................ OK\n", + "Initialize buggy program version........................................... OK\n", + "Diff e8cebe01:0ebc2ea0..................................................... OK\n", + "Apply patch................................................................ OK\n", + "Tag pre-fix revision....................................................... OK\n", + "Check out program version: Mockito-34f..................................... OK\n", + "Checking out 8cef0018 to /home/martin/recoder/temp_dir..................... " + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "src/com/google/javascript/jscomp/TypeCheck.java\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "OK\n", + "Init local repository...................................................... OK\n", + "Tag post-fix revision...................................................... OK\n", + "Run post-checkout hook..................................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Initialize fixed program version........................................... OK\n", + "Apply patch................................................................ OK\n", + "Initialize buggy program version........................................... OK\n", + "Diff 8cef0018:ddc12998..................................................... OK\n", + "Apply patch................................................................ OK\n", + "Tag pre-fix revision....................................................... OK\n", + "Check out program version: Closure-125f.................................... OK\n", + "Checking out 75d5b74a to /home/martin/recoder/temp_dir..................... OK\n", + "Init local repository...................................................... OK\n", + "Tag post-fix revision...................................................... " + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "src/main/java/org/apache/commons/lang3/time/FastDateFormat.java\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "OK\n", + "Run post-checkout hook..................................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Initialize fixed program version........................................... OK\n", + "Apply patch................................................................ OK\n", + "Initialize buggy program version........................................... OK\n", + "Diff 75d5b74a:e67792f8..................................................... OK\n", + "Apply patch................................................................ OK\n", + "Tag pre-fix revision....................................................... OK\n", + "Check out program version: Lang-26f........................................ OK\n", + "Checking out 5dcca480 to /home/martin/recoder/temp_dir..................... " + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "src/main/java/org/apache/commons/math/util/FastMath.java\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "OK\n", + "Init local repository...................................................... OK\n", + "Tag post-fix revision...................................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Initialize fixed program version........................................... OK\n", + "Apply patch................................................................ OK\n", + "Initialize buggy program version........................................... OK\n", + "Diff 5dcca480:ffcaeb07..................................................... OK\n", + "Apply patch................................................................ OK\n", + "Tag pre-fix revision....................................................... OK\n", + "Check out program version: Math-59f........................................ OK\n", + "Checking out 55f64272 to /home/martin/recoder/temp_dir..................... OK\n", + "Init local repository...................................................... OK\n", + "Tag post-fix revision...................................................... OK\n", + "Run post-checkout hook..................................................... " + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "src/main/java/org/apache/commons/lang3/time/DateUtils.java\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Initialize fixed program version........................................... OK\n", + "Apply patch................................................................ OK\n", + "Initialize buggy program version........................................... OK\n", + "Diff 55f64272:a473984e..................................................... OK\n", + "Apply patch................................................................ OK\n", + "Tag pre-fix revision....................................................... OK\n", + "Check out program version: Lang-21f........................................ OK\n", + "Checking out 8d11b8cc to /home/martin/recoder/temp_dir..................... " + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "src/com/google/javascript/jscomp/CodeGenerator.java\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "OK\n", + "Init local repository...................................................... OK\n", + "Tag post-fix revision...................................................... OK\n", + "Run post-checkout hook..................................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Initialize fixed program version........................................... OK\n", + "Apply patch................................................................ OK\n", + "Initialize buggy program version........................................... OK\n", + "Diff 8d11b8cc:60dac870..................................................... OK\n", + "Apply patch................................................................ OK\n", + "Tag pre-fix revision....................................................... OK\n", + "Check out program version: Closure-123f.................................... OK\n", + "Checking out ea119a2d to /home/martin/recoder/temp_dir..................... " + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "src/com/google/javascript/jscomp/Compiler.java\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "OK\n", + "Init local repository...................................................... OK\n", + "Tag post-fix revision...................................................... OK\n", + "Run post-checkout hook..................................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Initialize fixed program version........................................... OK\n", + "Apply patch................................................................ OK\n", + "Initialize buggy program version........................................... OK\n", + "Diff ea119a2d:686146c4..................................................... OK\n", + "Apply patch................................................................ OK\n", + "Tag pre-fix revision....................................................... OK\n", + "Check out program version: Closure-18f..................................... OK\n", + "Checking out 0884a4cb to /home/martin/recoder/temp_dir..................... " + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "src/com/google/javascript/jscomp/NodeUtil.java\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "OK\n", + "Init local repository...................................................... OK\n", + "Tag post-fix revision...................................................... OK\n", + "Run post-checkout hook..................................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Initialize fixed program version........................................... OK\n", + "Apply patch................................................................ OK\n", + "Initialize buggy program version........................................... OK\n", + "Diff 0884a4cb:f681fd80..................................................... OK\n", + "Apply patch................................................................ OK\n", + "Tag pre-fix revision....................................................... OK\n", + "Check out program version: Closure-10f..................................... OK\n", + "Checking out d2a5bc02 to /home/martin/recoder/temp_dir..................... " + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "src/main/java/org/apache/commons/math/util/MathUtils.java\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "OK\n", + "Init local repository...................................................... OK\n", + "Tag post-fix revision...................................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Initialize fixed program version........................................... OK\n", + "Apply patch................................................................ OK\n", + "Initialize buggy program version........................................... OK\n", + "Diff d2a5bc02:91b44a1e..................................................... OK\n", + "Apply patch................................................................ OK\n", + "Tag pre-fix revision....................................................... OK\n", + "Check out program version: Math-63f........................................ OK\n", + "Checking out f81847d8 to /home/martin/recoder/temp_dir..................... " + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "src/main/java/org/apache/commons/math3/geometry/euclidean/twod/PolygonsSet.java\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "OK\n", + "Init local repository...................................................... OK\n", + "Tag post-fix revision...................................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Initialize fixed program version........................................... OK\n", + "Apply patch................................................................ OK\n", + "Initialize buggy program version........................................... OK\n", + "Diff f81847d8:8d647834..................................................... OK\n", + "Apply patch................................................................ OK\n", + "Tag pre-fix revision....................................................... OK\n", + "Check out program version: Math-32f........................................ OK\n", + "Checking out 8cf08115 to /home/martin/recoder/temp_dir..................... " + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "src/com/google/javascript/jscomp/CodeConsumer.java\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "OK\n", + "Init local repository...................................................... OK\n", + "Tag post-fix revision...................................................... OK\n", + "Run post-checkout hook..................................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Initialize fixed program version........................................... OK\n", + "Apply patch................................................................ OK\n", + "Initialize buggy program version........................................... OK\n", + "Diff 8cf08115:f067d0e1..................................................... OK\n", + "Apply patch................................................................ OK\n", + "Tag pre-fix revision....................................................... OK\n", + "Check out program version: Closure-38f..................................... OK\n", + "Checking out a25e7f7a to /home/martin/recoder/temp_dir..................... " + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "src/main/java/org/apache/commons/math3/stat/inference/MannWhitneyUTest.java\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "OK\n", + "Init local repository...................................................... OK\n", + "Tag post-fix revision...................................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Initialize fixed program version........................................... OK\n", + "Apply patch................................................................ OK\n", + "Initialize buggy program version........................................... OK\n", + "Diff a25e7f7a:631c5bcb..................................................... OK\n", + "Apply patch................................................................ OK\n", + "Tag pre-fix revision....................................................... OK\n", + "Check out program version: Math-30f........................................ OK\n", + "Checking out 81903abb to /home/martin/recoder/temp_dir..................... OK\n", + "Init local repository...................................................... OK\n", + "Tag post-fix revision...................................................... OK\n", + "Run post-checkout hook..................................................... " + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "src/main/java/org/apache/commons/lang3/math/NumberUtils.java\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Initialize fixed program version........................................... OK\n", + "Apply patch................................................................ OK\n", + "Initialize buggy program version........................................... OK\n", + "Diff 81903abb:d61f50a3..................................................... OK\n", + "Apply patch................................................................ OK\n", + "Tag pre-fix revision....................................................... OK\n", + "Check out program version: Lang-24f........................................ OK\n", + "Checking out a02241e5 to /home/martin/recoder/temp_dir..................... " + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "src/com/google/javascript/jscomp/CodeConsumer.java\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "OK\n", + "Init local repository...................................................... OK\n", + "Tag post-fix revision...................................................... OK\n", + "Run post-checkout hook..................................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Initialize fixed program version........................................... OK\n", + "Apply patch................................................................ OK\n", + "Initialize buggy program version........................................... OK\n", + "Diff a02241e5:44c2d711..................................................... OK\n", + "Apply patch................................................................ OK\n", + "Tag pre-fix revision....................................................... OK\n", + "Check out program version: Closure-51f..................................... OK\n", + "Checking out 882556ea to /home/martin/recoder/temp_dir..................... " + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "src/main/java/org/apache/commons/math/stat/descriptive/moment/Variance.java\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "OK\n", + "Init local repository...................................................... OK\n", + "Tag post-fix revision...................................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Initialize fixed program version........................................... OK\n", + "Apply patch................................................................ OK\n", + "Initialize buggy program version........................................... OK\n", + "Diff 882556ea:91e6ac58..................................................... OK\n", + "Apply patch................................................................ OK\n", + "Tag pre-fix revision....................................................... OK\n", + "Check out program version: Math-41f........................................ OK\n", + "Checking out 67289ae4 to /home/martin/recoder/temp_dir..................... " + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "src/com/google/javascript/rhino/jstype/UnionType.java\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "OK\n", + "Init local repository...................................................... OK\n", + "Tag post-fix revision...................................................... OK\n", + "Run post-checkout hook..................................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Initialize fixed program version........................................... OK\n", + "Apply patch................................................................ OK\n", + "Initialize buggy program version........................................... OK\n", + "Diff 67289ae4:1be1c263..................................................... OK\n", + "Apply patch................................................................ OK\n", + "Tag pre-fix revision....................................................... OK\n", + "Check out program version: Closure-104f.................................... OK\n", + "Checking out 1085 to /home/martin/recoder/temp_dir......................... " + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "source/org/jfree/data/time/Week.java\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "OK\n", + "Init local repository...................................................... OK\n", + "Tag post-fix revision...................................................... OK\n", + "Apply patch................................................................ OK\n", + "Run post-checkout hook..................................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Initialize fixed program version........................................... OK\n", + "Apply patch................................................................ OK\n", + "Initialize buggy program version........................................... OK\n", + "Diff 1085:1084............................................................. OK\n", + "Apply patch................................................................ OK\n", + "Tag pre-fix revision....................................................... OK\n", + "Check out program version: Chart-8f........................................ OK\n", + "Checking out 4b15b25f to /home/martin/recoder/temp_dir..................... " + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "src/com/google/javascript/jscomp/ControlFlowAnalysis.java\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "OK\n", + "Init local repository...................................................... OK\n", + "Tag post-fix revision...................................................... OK\n", + "Run post-checkout hook..................................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Initialize fixed program version........................................... OK\n", + "Apply patch................................................................ OK\n", + "Initialize buggy program version........................................... OK\n", + "Diff 4b15b25f:b7c2861b..................................................... OK\n", + "Apply patch................................................................ OK\n", + "Tag pre-fix revision....................................................... OK\n", + "Check out program version: Closure-14f..................................... OK\n", + "Checking out 0fb76a81 to /home/martin/recoder/temp_dir..................... " + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "src/com/google/javascript/jscomp/ProcessClosurePrimitives.java\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "OK\n", + "Init local repository...................................................... OK\n", + "Tag post-fix revision...................................................... OK\n", + "Run post-checkout hook..................................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Initialize fixed program version........................................... OK\n", + "Apply patch................................................................ OK\n", + "Initialize buggy program version........................................... OK\n", + "Diff 0fb76a81:fa1e469d..................................................... OK\n", + "Apply patch................................................................ OK\n", + "Tag pre-fix revision....................................................... OK\n", + "Check out program version: Closure-113f.................................... OK\n", + "Checking out 283 to /home/martin/recoder/temp_dir.......................... " + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "source/org/jfree/chart/plot/ValueMarker.java\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "OK\n", + "Init local repository...................................................... OK\n", + "Tag post-fix revision...................................................... OK\n", + "Apply patch................................................................ OK\n", + "Run post-checkout hook..................................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Excluding broken/flaky tests............................................... OK\n", + "Initialize fixed program version........................................... OK\n", + "Apply patch................................................................ OK\n", + "Initialize buggy program version........................................... OK\n", + "Diff 283:281............................................................... OK\n", + "Apply patch................................................................ OK\n", + "Tag pre-fix revision....................................................... OK\n", + "Check out program version: Chart-20f....................................... OK\n" + ] + } + ], + "source": [ + "def ground_truth_defects4j(bug_id,path):\n", + " project,bug = bug_id.split('-')\n", + " print(path)\n", + " os.system(f'~/defects4j/framework/bin/defects4j checkout -p {project} -v {bug}f -w temp_dir')\n", + " x = ''\n", + " with open(os.path.join('temp_dir',path)) as f:\n", + " x = f.read()\n", + " os.system('rm -rf temp_dir')\n", + " return x\n", + " \n", + "process_inference_results('defects4j',ground_truth_defects4j)" + ] + }, + { + "cell_type": "code", + "execution_count": 22, + "metadata": {}, + "outputs": [], + "source": [ + "def ground_truth_quixbugs(bug_id,path):\n", + " with open(os.path.join('quixbugs_correct_java_programs',path)) as f:\n", + " x = f.read()\n", + " return x\n", + "process_inference_results('quixbugs',ground_truth_quixbugs)" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3.10.6 64-bit", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.10.12" + }, + "orig_nbformat": 4, + "vscode": { + "interpreter": { + "hash": "767d51c1340bd893661ea55ea3124f6de3c7a262a8b4abca0554b478b1e2ff90" + } + } + }, + "nbformat": 4, + "nbformat_minor": 2 +} diff --git a/quixbugs_correct_java_programs/BITCOUNT.java b/quixbugs_correct_java_programs/BITCOUNT.java new file mode 100644 index 0000000000000000000000000000000000000000..f40ccce6588c7806e3f97ceb7c8de64869bc63a8 --- /dev/null +++ b/quixbugs_correct_java_programs/BITCOUNT.java @@ -0,0 +1,21 @@ +package correct_java_programs; + +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ + +/** + * + * @author derricklin + */ +public class BITCOUNT { + public static int bitcount(int n) { + int count = 0; + while (n != 0) { + n = (n & (n - 1)); + count++; + } + return count; + } +} diff --git a/quixbugs_correct_java_programs/BREADTH_FIRST_SEARCH.java b/quixbugs_correct_java_programs/BREADTH_FIRST_SEARCH.java new file mode 100644 index 0000000000000000000000000000000000000000..ad0b60e4a4cdc521c08652cf5138b15b15fb8bb2 --- /dev/null +++ b/quixbugs_correct_java_programs/BREADTH_FIRST_SEARCH.java @@ -0,0 +1,47 @@ +package correct_java_programs; +import java.util.*; +import java.util.ArrayDeque; + +import java_programs.Node; + +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ + +/** + * + * @author derricklin + */ +public class BREADTH_FIRST_SEARCH { + + public static Set nodesvisited = new HashSet<>(); + + public static boolean breadth_first_search(Node startnode, Node goalnode) { + Deque queue = new ArrayDeque<>(); + queue.addLast(startnode); + + nodesvisited.add(startnode); + + while (!queue.isEmpty()) { + Node node = queue.removeFirst(); + + if (node == goalnode) { + return true; + } else { + for (Node successor_node : node.getSuccessors()) { + if (!nodesvisited.contains(successor_node)) { + queue.addFirst(successor_node); + nodesvisited.add(successor_node); + } + } + } + } + /** + * The buggy program always drops into while(true) loop and will not return false + * Removed below line to fix compilation error + */ + return false; + } + +} \ No newline at end of file diff --git a/quixbugs_correct_java_programs/BUCKETSORT.java b/quixbugs_correct_java_programs/BUCKETSORT.java new file mode 100644 index 0000000000000000000000000000000000000000..02d4b43bea071f23739a6dc2b4d65ac8884379c1 --- /dev/null +++ b/quixbugs_correct_java_programs/BUCKETSORT.java @@ -0,0 +1,29 @@ +package correct_java_programs; +import java.util.*; + +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ + +/** + * + * @author derricklin + */ +public class BUCKETSORT { + public static ArrayList bucketsort(ArrayList arr, int k) { + ArrayList counts = new ArrayList(Collections.nCopies(k,0)); + for (Integer x : arr) { + counts.set(x,counts.get(x)+1); + } + + ArrayList sorted_arr = new ArrayList(100); + int i = 0; + for (Integer count : counts) { + sorted_arr.addAll(Collections.nCopies(count, i)); + i++; + } + + return sorted_arr; + } +} diff --git a/quixbugs_correct_java_programs/DEPTH_FIRST_SEARCH.java b/quixbugs_correct_java_programs/DEPTH_FIRST_SEARCH.java new file mode 100644 index 0000000000000000000000000000000000000000..6a037fefc8f87883d2579d01871e96c290d6c275 --- /dev/null +++ b/quixbugs_correct_java_programs/DEPTH_FIRST_SEARCH.java @@ -0,0 +1,37 @@ +package correct_java_programs; +import java.util.*; +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ + +import java_programs.Node; + +/** + * + * @author derricklin + */ +public class DEPTH_FIRST_SEARCH { + public static boolean depth_first_search(Node startnode, Node goalnode) { + Set nodesvisited = new HashSet<>(); + class Search { + boolean search(Node node) { + if (nodesvisited.contains(node)) { + return false; + } else if (node == goalnode) { + return true; + } else { + nodesvisited.add(node); + for (Node successornodes : node.getSuccessors()) { + if (search(successornodes)) { return true; } + } + } + return false; + } + }; + + Search s = new Search(); + return s.search(startnode); + } + +} diff --git a/quixbugs_correct_java_programs/DETECT_CYCLE.java b/quixbugs_correct_java_programs/DETECT_CYCLE.java new file mode 100644 index 0000000000000000000000000000000000000000..66f663689e077878077384a75fd3dbc2e2a15790 --- /dev/null +++ b/quixbugs_correct_java_programs/DETECT_CYCLE.java @@ -0,0 +1,30 @@ +package correct_java_programs; +import java.util.*; +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ + +import java_programs.Node; + +/** + * + * @author derricklin + */ +public class DETECT_CYCLE { + public static boolean detect_cycle(Node node) { + Node hare = node; + Node tortoise = node; + + while (true) { + if (null==hare ||hare.getSuccessor() == null) + return false; + + tortoise = tortoise.getSuccessor(); + hare = hare.getSuccessor().getSuccessor(); + + if (hare == tortoise) + return true; + } + } +} diff --git a/quixbugs_correct_java_programs/FIND_FIRST_IN_SORTED.java b/quixbugs_correct_java_programs/FIND_FIRST_IN_SORTED.java new file mode 100644 index 0000000000000000000000000000000000000000..3b61a828c845ced92c33f79463139f78aefc1199 --- /dev/null +++ b/quixbugs_correct_java_programs/FIND_FIRST_IN_SORTED.java @@ -0,0 +1,34 @@ +package correct_java_programs; +import java.util.*; + +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ + +/** + * + * @author derricklin + */ +public class FIND_FIRST_IN_SORTED { + + public static int find_first_in_sorted(int[] arr, int x) { + int lo = 0; + int hi = arr.length; + + while (lo < hi) { + int mid = (lo + hi) / 2; // check if this is floor division + + if (x == arr[mid] && (mid == 0 || x != arr[mid-1])) { + return mid; + } else if (x <= arr[mid]) { + hi = mid; + } else { + lo = mid + 1; + } + } + + return -1; + } + +} diff --git a/quixbugs_correct_java_programs/FIND_IN_SORTED.java b/quixbugs_correct_java_programs/FIND_IN_SORTED.java new file mode 100644 index 0000000000000000000000000000000000000000..ef8788a4e05b3e45928d34edce2cad63ca2d0d24 --- /dev/null +++ b/quixbugs_correct_java_programs/FIND_IN_SORTED.java @@ -0,0 +1,30 @@ +package correct_java_programs; + +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ + +/** + * + * @author derricklin + */ +public class FIND_IN_SORTED { + public static int binsearch(int[] arr, int x, int start, int end) { + if (start == end) { + return -1; + } + int mid = start + (end - start) / 2; // check this is floor division + if (x < arr[mid]) { + return binsearch(arr, x, start, mid); + } else if (x > arr[mid]) { + return binsearch(arr, x, mid+1, end); + } else { + return mid; + } + } + + public static int find_in_sorted(int[] arr, int x) { + return binsearch(arr, x, 0, arr.length); + } +} diff --git a/quixbugs_correct_java_programs/FLATTEN.java b/quixbugs_correct_java_programs/FLATTEN.java new file mode 100644 index 0000000000000000000000000000000000000000..8d5a33fc4ded4dca61aafb4722ee41b1869a5bfc --- /dev/null +++ b/quixbugs_correct_java_programs/FLATTEN.java @@ -0,0 +1,30 @@ +package correct_java_programs; +import java.util.*; + +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ + +/** + * + * @author derricklin + */ +public class FLATTEN { + public static Object flatten(Object arr) { + if (arr instanceof ArrayList) { + ArrayList narr = (ArrayList) arr; + ArrayList result = new ArrayList(50); + for (Object x : narr) { + if (x instanceof ArrayList) { + result.addAll((ArrayList) flatten(x)); + } else { + result.add((x)); + } + } + return result; + } else { + return arr; + } + } +} diff --git a/quixbugs_correct_java_programs/GCD.java b/quixbugs_correct_java_programs/GCD.java new file mode 100644 index 0000000000000000000000000000000000000000..6ee4e0477d40e8fc8b867f8571048eedaaaf8be6 --- /dev/null +++ b/quixbugs_correct_java_programs/GCD.java @@ -0,0 +1,22 @@ +package correct_java_programs; +import java.util.*; + +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ + +/** + * + * @author derricklin + */ +public class GCD { + + public static int gcd(int a, int b) { + if (b == 0) { + return a; + } else { + return gcd(b, a%b); + } + } +} diff --git a/quixbugs_correct_java_programs/GET_FACTORS.java b/quixbugs_correct_java_programs/GET_FACTORS.java new file mode 100644 index 0000000000000000000000000000000000000000..4948a6c4768b8cf4a90820899dc4fd83fb71f7aa --- /dev/null +++ b/quixbugs_correct_java_programs/GET_FACTORS.java @@ -0,0 +1,30 @@ +package correct_java_programs; +import java.util.*; + +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ + +/** + * + * @author derricklin + */ +public class GET_FACTORS { + public static ArrayList get_factors(int n) { + if (n == 1) { + return new ArrayList(); + } + int max = (int)(Math.sqrt(n) + 1.0); + for (int i=2; i < max; i++) { + if (n % i == 0) { + ArrayList prepend = new ArrayList(0); + prepend.add(i); + prepend.addAll(get_factors(n / i)); + return prepend; + } + } + + return new ArrayList(Arrays.asList(n)); + } +} diff --git a/quixbugs_correct_java_programs/HANOI.java b/quixbugs_correct_java_programs/HANOI.java new file mode 100644 index 0000000000000000000000000000000000000000..4dc4dbd4c1827f0e280651b058167262e41ee1e9 --- /dev/null +++ b/quixbugs_correct_java_programs/HANOI.java @@ -0,0 +1,65 @@ +package correct_java_programs; +import java.util.*; + +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ + +/** + * + * @author derricklin + */ +public class HANOI { + // default start=1, end=3 + public static List> hanoi(int height, int start, int end) { + ArrayList> steps = new ArrayList>(); + + if (height > 0) { + PriorityQueue crap_set = new PriorityQueue(); + crap_set.add(1); + crap_set.add(2); + crap_set.add(3); + crap_set.remove(start); + crap_set.remove(end); + int helper = crap_set.poll(); + steps.addAll(hanoi(height-1, start, helper)); + steps.add(new Pair(start, end)); + steps.addAll(hanoi(height-1, helper, end)); + } + + return steps; + } + + + public static class Pair { + private F first; //first member of pair + private S second; //second member of pair + + public Pair(F first, S second) { + this.first = first; + this.second = second; + } + + public void setFirst(F first) { + this.first = first; + } + + public void setSecond(S second) { + this.second = second; + } + + public F getFirst() { + return first; + } + + public S getSecond() { + return second; + } + + @Override + public String toString() { + return "(" + String.valueOf(first) + ", " + String.valueOf(second) + ")"; + } + } +} diff --git a/quixbugs_correct_java_programs/IS_VALID_PARENTHESIZATION.java b/quixbugs_correct_java_programs/IS_VALID_PARENTHESIZATION.java new file mode 100644 index 0000000000000000000000000000000000000000..6f9b60b268cb82a41f29414107e32825d30f2f99 --- /dev/null +++ b/quixbugs_correct_java_programs/IS_VALID_PARENTHESIZATION.java @@ -0,0 +1,27 @@ +package correct_java_programs; +import java.util.*; + +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ + +/** + * + * @author derricklin + */ +public class IS_VALID_PARENTHESIZATION { + public static Boolean is_valid_parenthesization(String parens) { + int depth = 0; + for (int i = 0; i < parens.length(); i++) { + Character paren = parens.charAt(i); + if (paren.equals('(')) { + depth++; + } else { + depth--; + if (depth < 0) { return false; } + } + } + return depth==0; + } +} diff --git a/quixbugs_correct_java_programs/KHEAPSORT.java b/quixbugs_correct_java_programs/KHEAPSORT.java new file mode 100644 index 0000000000000000000000000000000000000000..2a1dd9f28fc697a3e86cb35d5f45a7e4a2e08b34 --- /dev/null +++ b/quixbugs_correct_java_programs/KHEAPSORT.java @@ -0,0 +1,41 @@ +package correct_java_programs; +import java.util.*; + +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ + +/** + * + * @author derricklin + */ +public class KHEAPSORT { + // import heapq + // heap is data structure used for priority queue + // pq O(log n) to pull off lowest priority item + // heap is a type of binary tree + // every node its value smaller than everything below it + // priority queue in java is least-value first (at head) + + public static ArrayList kheapsort(ArrayList arr, int k) { + PriorityQueue heap = new PriorityQueue(); + for (Integer v : arr.subList(0,k)) { + heap.add(v); + } + + ArrayList output = new ArrayList(); + for (Integer x : arr.subList(k, arr.size())) { + heap.add(x); + Integer popped = heap.poll(); + output.add(popped); + } + + while (!heap.isEmpty()) { + output.add(heap.poll()); + } + + return output; + + } +} diff --git a/quixbugs_correct_java_programs/KNAPSACK.java b/quixbugs_correct_java_programs/KNAPSACK.java new file mode 100644 index 0000000000000000000000000000000000000000..343d42cadbec14ae59b3d24263c506420a84c24d --- /dev/null +++ b/quixbugs_correct_java_programs/KNAPSACK.java @@ -0,0 +1,43 @@ +package correct_java_programs; +import java.util.*; +import java.lang.*; + +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ + +/** + * + * @author derricklin + */ +public class KNAPSACK { + public static int knapsack(int capacity, int [][] items) { + int weight = 0, value = 0; + int n = items.length; + int memo[][] = new int[n + 1][capacity + 1]; + + for (int i = 0; i <= n ; i++) + { + if (i - 1 >= 0) { + weight = items[i - 1][0]; + value = items[i - 1][1]; + } + for (int j = 0; j <= capacity; j++) + { + if (i == 0 || j == 0) { + memo[i][j] = 0; + } + else if (weight <= j) { + memo[i][j] = Math.max(memo[i - 1][j], value + memo[i - 1][j - weight]); + } + else { + memo[i][j] = memo [i-1][j]; + } + + } + } + return memo[n][capacity]; + } + +} diff --git a/quixbugs_correct_java_programs/KTH.java b/quixbugs_correct_java_programs/KTH.java new file mode 100644 index 0000000000000000000000000000000000000000..83beeb57f41bb61f1553e848fd4d400de3b36c46 --- /dev/null +++ b/quixbugs_correct_java_programs/KTH.java @@ -0,0 +1,37 @@ +package correct_java_programs; +import java.util.*; + +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ + +/** + * + * @author derricklin + */ +public class KTH { + public static Integer kth(ArrayList arr, int k) { + int pivot = arr.get(0); + ArrayList below, above; + below = new ArrayList(arr.size()); + above = new ArrayList(arr.size()); + for (Integer x : arr) { + if (x < pivot) { + below.add(x); + } else if (x > pivot) { + above.add(x); + } + } + + int num_less = below.size(); + int num_lessoreq = arr.size() - above.size(); + if (k < num_less) { + return kth(below, k); + } else if (k >= num_lessoreq) { + return kth(above, k-num_lessoreq); + } else { + return pivot; + } + } +} diff --git a/quixbugs_correct_java_programs/LCS_LENGTH.java b/quixbugs_correct_java_programs/LCS_LENGTH.java new file mode 100644 index 0000000000000000000000000000000000000000..ce941fff26610cae718cf906d167c69c44084a3d --- /dev/null +++ b/quixbugs_correct_java_programs/LCS_LENGTH.java @@ -0,0 +1,61 @@ +package correct_java_programs; +import java.util.*; + +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ + +/** + * + * @author derricklin + */ +public class LCS_LENGTH { + public static Integer lcs_length(String s, String t) { + // make a Counter + // pair? no! just hashtable to a hashtable.. woo.. currying + + Map> dp = new HashMap>(); + + // just set all the internal maps to 0 + for (int i=0; i < s.length(); i++) { + Map initialize = new HashMap(); + dp.put(i, initialize); + for (int j=0; j < t.length(); j++) { + Map internal_map = dp.get(i); + internal_map.put(j,0); + dp.put(i, internal_map); + } + } + + // now the actual code + for (int i=0; i < s.length(); i++) { + for (int j=0; j < t.length(); j++) { + if (s.charAt(i) == t.charAt(j)) { + + // dp.get(i-1).containsKey(j-1) + if (dp.containsKey(i-1)&&dp.get(i-1).containsKey(j-1)) { + Map internal_map = dp.get(i); + int insert_value = dp.get(i-1).get(j-1) + 1; + internal_map.put(j, insert_value); + dp.put(i,internal_map); + } else { + Map internal_map = dp.get(i); + internal_map.put(j,1); + dp.put(i,internal_map); + } + } + } + } + + if (!dp.isEmpty()) { + List ret_list = new ArrayList(); + for (int i=0; i ends = new HashMap(100); + int longest = 0; + + int i = 0; + for (int val : arr) { + + ArrayList prefix_lengths = new ArrayList(100); + for (int j=1; j < longest+1; j++) { + if (arr[ends.get(j)] < val) { + prefix_lengths.add(j); + } + } + + int length = !prefix_lengths.isEmpty() ? Collections.max(prefix_lengths) : 0; + + if (length == longest || val < arr[ends.get(length+1)]) { + ends.put(length+1, i); + longest = Math.max(longest,length + 1); + } + + i++; + } + return longest; + } +} diff --git a/quixbugs_correct_java_programs/LONGEST_COMMON_SUBSEQUENCE.java b/quixbugs_correct_java_programs/LONGEST_COMMON_SUBSEQUENCE.java new file mode 100644 index 0000000000000000000000000000000000000000..8a2d4dfd5927abf64b9df50e4da3a78556234953 --- /dev/null +++ b/quixbugs_correct_java_programs/LONGEST_COMMON_SUBSEQUENCE.java @@ -0,0 +1,27 @@ +package correct_java_programs; +import java.util.*; + +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ + +/** + * + * @author derricklin + */ +public class LONGEST_COMMON_SUBSEQUENCE { + public static String longest_common_subsequence(String a, String b) { + if (a.isEmpty() || b.isEmpty()) { + return ""; + } else if (a.charAt(0) == b.charAt(0)) { + return a.charAt(0) + longest_common_subsequence(a.substring(1), b.substring(1)); + } else { + String fst = longest_common_subsequence(a, b.substring(1)); + String snd = longest_common_subsequence(a.substring(1), b); + return fst.length() >= snd.length() ? fst : snd; + } + + } + +} diff --git a/quixbugs_correct_java_programs/MAX_SUBLIST_SUM.java b/quixbugs_correct_java_programs/MAX_SUBLIST_SUM.java new file mode 100644 index 0000000000000000000000000000000000000000..44ea6c009b797a9845ec005e1c630d7f0107e8f0 --- /dev/null +++ b/quixbugs_correct_java_programs/MAX_SUBLIST_SUM.java @@ -0,0 +1,25 @@ +package correct_java_programs; +import java.util.*; + +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ + +/** + * + * @author derricklin + */ +public class MAX_SUBLIST_SUM { + public static int max_sublist_sum(int[] arr) { + int max_ending_here = 0; + int max_so_far = 0; + + for (int x : arr) { + max_ending_here = Math.max(0,max_ending_here + x); + max_so_far = Math.max(max_so_far, max_ending_here); + } + + return max_so_far; + } +} diff --git a/quixbugs_correct_java_programs/MERGESORT.java b/quixbugs_correct_java_programs/MERGESORT.java new file mode 100644 index 0000000000000000000000000000000000000000..f20a9577a42a381227d4aea2275521450d82def6 --- /dev/null +++ b/quixbugs_correct_java_programs/MERGESORT.java @@ -0,0 +1,52 @@ +package correct_java_programs; +import java.util.*; + +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ + +/** + * + * @author derricklin + */ +public class MERGESORT { + public static ArrayList merge(ArrayList left, ArrayList right) { + //System.out.println(String.valueOf(left)); + //System.out.println(String.valueOf(right)); + //System.out.println(String.valueOf(left.getClass())); + //System.out.println(String.valueOf(left.get(0))); + //System.out.println(String.valueOf(left.get(0).getClass())); + ArrayList result = new ArrayList(100); + int i = 0; + int j = 0; + + while (i < left.size() && j < right.size()) { + if (left.get(i) <= right.get(j)) { + result.add(left.get(i)); + i++; + } else { + result.add(right.get(j)); + j++; + } + } + result.addAll(left.subList(i,left.size()).isEmpty() ? right.subList(j, right.size()) : left.subList(i, left.size())); + return result; + } + + public static ArrayList mergesort(ArrayList arr) { + if (arr.size() <= 1) { // <= 1 in correct version + return arr; + } else { + int middle = arr.size() / 2; + ArrayList left = new ArrayList(100); + left.addAll(arr.subList(0,middle)); + left = mergesort(left); + ArrayList right = new ArrayList(100); + right.addAll(arr.subList(middle, arr.size())); + right = mergesort(right); + + return merge(left, right); + } + } +} diff --git a/quixbugs_correct_java_programs/MINIMUM_SPANNING_TREE.java b/quixbugs_correct_java_programs/MINIMUM_SPANNING_TREE.java new file mode 100644 index 0000000000000000000000000000000000000000..790688a6118db09dae81cb8f607cd2d427ffe9f4 --- /dev/null +++ b/quixbugs_correct_java_programs/MINIMUM_SPANNING_TREE.java @@ -0,0 +1,44 @@ +package correct_java_programs; +import java.util.*; + +import java_programs.Node; +import java_programs.WeightedEdge; +/** + * Minimum spanning tree + */ +public class MINIMUM_SPANNING_TREE { + public static Set minimum_spanning_tree(List weightedEdges) { + Map> groupByNode = new HashMap<>(); + Set minSpanningTree = new HashSet<>(); + + Collections.sort(weightedEdges); + + for (WeightedEdge edge : weightedEdges) { + Node vertex_u = edge.node1; + Node vertex_v = edge.node2; + //System.out.printf("u: %s, v: %s weight: %d\n", vertex_u.getValue(), vertex_v.getValue(), edge.weight); + if (!groupByNode.containsKey(vertex_u)){ + groupByNode.put(vertex_u, new HashSet<>(Arrays.asList(vertex_u))); + } + if (!groupByNode.containsKey(vertex_v)){ + groupByNode.put(vertex_v, new HashSet<>(Arrays.asList(vertex_v))); + } + + if (groupByNode.get(vertex_u) != groupByNode.get(vertex_v)) { + minSpanningTree.add(edge); + groupByNode = update(groupByNode, vertex_u, vertex_v); + for (Node node : groupByNode.get(vertex_v)) { + groupByNode.put(node, groupByNode.get(vertex_u)); + } + } + } + return minSpanningTree; + } + + public static Map> update(Map> groupByNode, Node vertex_u, Node vertex_v) { + Set vertex_u_span = groupByNode.get(vertex_u); + vertex_u_span.addAll(groupByNode.get(vertex_v)); + + return groupByNode; + } +} diff --git a/quixbugs_correct_java_programs/NEXT_PALINDROME.java b/quixbugs_correct_java_programs/NEXT_PALINDROME.java new file mode 100644 index 0000000000000000000000000000000000000000..9a13dc0949c5d001ed87e1425d714cda061cd884 --- /dev/null +++ b/quixbugs_correct_java_programs/NEXT_PALINDROME.java @@ -0,0 +1,40 @@ +package correct_java_programs; +import java.util.*; +import java.lang.Math.*; +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ + +/** + * + * @author derricklin + */ +public class NEXT_PALINDROME { + public static String next_palindrome(int[] digit_list) { + int high_mid = Math.floorDiv(digit_list.length, 2); + int low_mid = Math.floorDiv(digit_list.length - 1, 2); + + while (high_mid < digit_list.length && low_mid >= 0) { + if (digit_list[high_mid] == 9) { + digit_list[high_mid] = 0; + digit_list[low_mid] = 0; + high_mid += 1; + low_mid -= 1; + } else { + digit_list[high_mid] += 1; + if (low_mid != high_mid) { + digit_list[low_mid] += 1; + } + return Arrays.toString(digit_list); + } + } + + ArrayList otherwise = new ArrayList(); + otherwise.add(1); + otherwise.addAll(Collections.nCopies(digit_list.length-1, 0)); + otherwise.add(1); + + return String.valueOf(otherwise); + } +} diff --git a/quixbugs_correct_java_programs/NEXT_PERMUTATION.java b/quixbugs_correct_java_programs/NEXT_PERMUTATION.java new file mode 100644 index 0000000000000000000000000000000000000000..43a1e655cd00385924f0194475dc0544a7085bd2 --- /dev/null +++ b/quixbugs_correct_java_programs/NEXT_PERMUTATION.java @@ -0,0 +1,45 @@ +package correct_java_programs; +import java.util.*; +//import com.google.guava.Lists; + +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ + +/** + * + * @author derricklin + */ +public class NEXT_PERMUTATION { + public static ArrayList next_permutation(ArrayList perm) { + for (int i=perm.size()-2; i!=-1; i--) { + if (perm.get(i) < perm.get(i+1)) { + for (int j=perm.size()-1; j!=i; j--) { + if (perm.get(j) > perm.get(i)) { + ArrayList next_perm = perm; + int temp_j = perm.get(j); + int temp_i = perm.get(i); + next_perm.set(i,temp_j); + next_perm.set(j,temp_i); + + ArrayList reversed = new ArrayList(100); + for (int k=next_perm.size()-1; k!=i; k--) { + reversed.add(next_perm.get(k)); + } + + int q = i + 1; + for (Integer replace : reversed) { + next_perm.set(q, replace); + q++; + } + + return next_perm; + } + } + } + } + + return new ArrayList(); + } +} diff --git a/quixbugs_correct_java_programs/PASCAL.java b/quixbugs_correct_java_programs/PASCAL.java new file mode 100644 index 0000000000000000000000000000000000000000..37b0852bd0afd8c5133a27a2f7a2b4e67564c908 --- /dev/null +++ b/quixbugs_correct_java_programs/PASCAL.java @@ -0,0 +1,41 @@ +package correct_java_programs; +import java.util.*; + +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ + +/** + * + * @author derricklin + */ +public class PASCAL { + public static ArrayList> pascal(int n) { + ArrayList> rows = new ArrayList>(); + ArrayList init = new ArrayList(); + init.add(1); + rows.add(init); + + for (int r=1; r row = new ArrayList(); + for (int c=0; c 0) { + upleft = rows.get(r-1).get(c-1); + } else { + upleft = 0; + } + if (c < r) { + upright = rows.get(r-1).get(c); + } else { + upright = 0; + } + row.add(upleft+upright); + } + rows.add(row); + } + + return rows; + } +} diff --git a/quixbugs_correct_java_programs/POSSIBLE_CHANGE.java b/quixbugs_correct_java_programs/POSSIBLE_CHANGE.java new file mode 100644 index 0000000000000000000000000000000000000000..7f9a086db0edf44677df593a19256c25c1d38fb7 --- /dev/null +++ b/quixbugs_correct_java_programs/POSSIBLE_CHANGE.java @@ -0,0 +1,25 @@ +package correct_java_programs; +import java.util.*; +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ + +/** + * + * @author derricklin + */ +public class POSSIBLE_CHANGE { + public static int possible_change(int[] coins, int total) { + if (total == 0) { + return 1; + } + if (total < 0 ||coins.length==0) { + return 0; + } + + int first = coins[0]; + int[] rest = Arrays.copyOfRange(coins, 1, coins.length); + return possible_change(coins, total-first) + possible_change(rest, total); + } +} diff --git a/quixbugs_correct_java_programs/POWERSET.java b/quixbugs_correct_java_programs/POWERSET.java new file mode 100644 index 0000000000000000000000000000000000000000..2a16e68fbc16f6218312457558f0bd0844cf8fbe --- /dev/null +++ b/quixbugs_correct_java_programs/POWERSET.java @@ -0,0 +1,44 @@ +package correct_java_programs; + +import java.util.*; + +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ + +/** + * + * @author derricklin + */ +public class POWERSET { + public static ArrayList powerset(ArrayList arr) { + if (!arr.isEmpty()) { + Object first = arr.get(0); + arr.remove(0); + ArrayList rest = arr; + ArrayList rest_subsets = powerset(rest); + + ArrayList output = new ArrayList(100); + ArrayList to_add = new ArrayList(100); + + for (ArrayList subset : rest_subsets) { + ArrayList r = new ArrayList(); + r.add(first); + r.addAll(subset); + to_add.add(r); + } + + output.addAll(to_add); + rest_subsets.addAll(output); + + return rest_subsets; + } else { + ArrayList empty_set = new ArrayList(); + empty_set.add(new ArrayList()); + return empty_set; + } + } +} + + diff --git a/quixbugs_correct_java_programs/QUICKSORT.java b/quixbugs_correct_java_programs/QUICKSORT.java new file mode 100644 index 0000000000000000000000000000000000000000..81204bcbf84cae714486d34d5800dad2ef0a4401 --- /dev/null +++ b/quixbugs_correct_java_programs/QUICKSORT.java @@ -0,0 +1,39 @@ +package correct_java_programs; +import java.util.*; + +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ + +/** + * + * @author derricklin + */ +public class QUICKSORT { + public static ArrayList quicksort(ArrayList arr) { + if (arr.isEmpty()) { + return new ArrayList(); + } + + Integer pivot = arr.get(0); + ArrayList lesser = new ArrayList(); + ArrayList greater = new ArrayList(); + + for (Integer x : arr.subList(1, arr.size())) { + if (x < pivot) { + lesser.add(x); + } else if (x >= pivot) { + greater.add(x); + } + } + ArrayList middle = new ArrayList(); + middle.add(pivot); + lesser = quicksort(lesser); + greater = quicksort(greater); + middle.addAll(greater); + lesser.addAll(middle); + return lesser; + + } +} diff --git a/quixbugs_correct_java_programs/REVERSE_LINKED_LIST.java b/quixbugs_correct_java_programs/REVERSE_LINKED_LIST.java new file mode 100644 index 0000000000000000000000000000000000000000..61956c2cfe1f88284c823977213a15e5d8c6aa58 --- /dev/null +++ b/quixbugs_correct_java_programs/REVERSE_LINKED_LIST.java @@ -0,0 +1,27 @@ +package correct_java_programs; +import java.util.*; + +import java_programs.Node; + +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ + +/** + * + * @author derricklin + */ +public class REVERSE_LINKED_LIST { + public static Node reverse_linked_list(Node node) { + Node prevnode = null; + Node nextnode; + while (node != null) { + nextnode = node.getSuccessor(); + node.setSuccessor(prevnode); + prevnode = node; + node = nextnode; + } + return prevnode; + } +} diff --git a/quixbugs_correct_java_programs/RPN_EVAL.java b/quixbugs_correct_java_programs/RPN_EVAL.java new file mode 100644 index 0000000000000000000000000000000000000000..2cad2a618aa14f53cf7d41ea6514840a18ced6e3 --- /dev/null +++ b/quixbugs_correct_java_programs/RPN_EVAL.java @@ -0,0 +1,41 @@ +package correct_java_programs; +import java.util.*; +import java.util.function.BinaryOperator; + +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ + +/** + * + * @author derricklin + */ +public class RPN_EVAL { + public static Double rpn_eval(ArrayList tokens) { + Map> op = new HashMap>(); + op.put("+", (a, b) -> a + b); + op.put("-", (a, b) -> a - b); + op.put("*", (a, b) -> a * b); + op.put("/", (a, b) -> a / b); + + + Stack stack = new Stack(); + + for (Object token : tokens) { + if (Double.class.isInstance(token)) { + stack.push((Double) token); + } else { + token = (String) token; + Double a = (Double) stack.pop(); + Double b = (Double) stack.pop(); + Double c = 0.0; + BinaryOperator bin_op = op.get(token); + c = bin_op.apply(b,a); + stack.push(c); + } + } + + return (Double) stack.pop(); + } +} diff --git a/quixbugs_correct_java_programs/SHORTEST_PATHS.java b/quixbugs_correct_java_programs/SHORTEST_PATHS.java new file mode 100644 index 0000000000000000000000000000000000000000..dbd784b686f072585a7869540c71dc3da15ee396 --- /dev/null +++ b/quixbugs_correct_java_programs/SHORTEST_PATHS.java @@ -0,0 +1,41 @@ +package correct_java_programs; +import java.util.*; + +import java_programs.Node; +import java_programs.WeightedEdge; + +import java.lang.Math.*; + +/** + * + * @author Angela Chen + */ +public class SHORTEST_PATHS { + + // Define Infinite as a large enough value. This value will be used + // for vertices not connected to each other + final static int INF = 99999; + + + public static Map shortest_paths(String source, Map,Integer> weight_by_edge) { + Map weight_by_node = new HashMap(); + for (List edge : weight_by_edge.keySet()) { + weight_by_node.put(edge.get(1), INF); + weight_by_node.put(edge.get(0), INF); + } + + weight_by_node.put(source, 0); + for (int i = 0; i < weight_by_node.size(); i++) { + for (List edge : weight_by_edge.keySet()) { + int update_weight = Math.min( + weight_by_node.get(edge.get(0)) + + weight_by_edge.get(edge), + weight_by_node.get(edge.get(1))); + + weight_by_node.put(edge.get(1), update_weight); + } + } + return weight_by_node; + } + +} diff --git a/quixbugs_correct_java_programs/SHORTEST_PATH_LENGTH.java b/quixbugs_correct_java_programs/SHORTEST_PATH_LENGTH.java new file mode 100644 index 0000000000000000000000000000000000000000..3c8c588cca69c658407f4e0a8a7326cf149e7a55 --- /dev/null +++ b/quixbugs_correct_java_programs/SHORTEST_PATH_LENGTH.java @@ -0,0 +1,59 @@ +package correct_java_programs; +import java.util.*; + +import java_programs.Node; + +/** + * + * @author Angela Chen + */ + +public class SHORTEST_PATH_LENGTH { + public static int shortest_path_length(Map, Integer> length_by_edge, Node startnode, Node goalnode) { + int n = length_by_edge.size(); + // the shortest distance from source to each node + Map unvisitedNodes = new HashMap<>(); + Set visitedNodes = new HashSet<>(); + + unvisitedNodes.put(startnode, 0); + + while (!unvisitedNodes.isEmpty()) { + Node node = getNodeWithMinDistance(unvisitedNodes); + int distance = unvisitedNodes.get(node); + unvisitedNodes.remove(node); + + if (node.getValue() == goalnode.getValue()) { + return distance; + } + visitedNodes.add(node); + + for (Node nextnode : node.getSuccessors()) { + if (visitedNodes.contains(nextnode)) { + continue; + } + + if (unvisitedNodes.get(nextnode) == null) { + unvisitedNodes.put(nextnode, Integer.MAX_VALUE); + } + + unvisitedNodes.put(nextnode, Math.min(unvisitedNodes.get(nextnode), + distance + length_by_edge.get(Arrays.asList(node, nextnode)))); + } + } + + return Integer.MAX_VALUE; + } + + public static Node getNodeWithMinDistance(Map list) { + Node minNode = null; + int minDistance = Integer.MAX_VALUE; + for (Node node : list.keySet()) { + int distance = list.get(node); + if (distance < minDistance) { + minDistance = distance; + minNode = node; + } + } + return minNode; + } +} \ No newline at end of file diff --git a/quixbugs_correct_java_programs/SHORTEST_PATH_LENGTHS.java b/quixbugs_correct_java_programs/SHORTEST_PATH_LENGTHS.java new file mode 100644 index 0000000000000000000000000000000000000000..45a161cb6a05ade2d90489623ab536d491739f44 --- /dev/null +++ b/quixbugs_correct_java_programs/SHORTEST_PATH_LENGTHS.java @@ -0,0 +1,53 @@ +package correct_java_programs; +import java.util.*; +import java.lang.Math.*; +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ + +/** + * + * @author Angela Chen + */ +public class SHORTEST_PATH_LENGTHS { + // Define Infinite as a large enough value. This value will be used + // for vertices not connected to each other + final static int INF = 99999; + public static Map,Integer> shortest_path_lengths(int numNodes, Map,Integer> length_by_edge) { + Map,Integer> length_by_path = new HashMap<>(); + for (int i = 0; i < numNodes; i++) { + for (int j =0; j < numNodes; j++) { + List edge = new ArrayList<>(Arrays.asList(i,j)); + if (i == j) { + length_by_path.put(edge, 0); + } + else if (length_by_edge.containsKey(edge) ) { + length_by_path.put(edge, length_by_edge.get(edge)); + } else { + length_by_path.put(edge, INF); + } + } + } + for (int k = 0; k < numNodes; k++) { + for (int i = 0; i < numNodes; i++) { + for (int j = 0; j < numNodes; j++) { + int update_length = Math.min(length_by_path.get(Arrays.asList(i,j)), + sumLengths(length_by_path.get(Arrays.asList(i,k)), + length_by_path.get(Arrays.asList(k,j)))); + + length_by_path.put(Arrays.asList(i,j), update_length); + } + } + } + return length_by_path; + } + + static private int sumLengths(int a, int b) { + if(a == INF || b == INF) { + return INF; + } + return a + b; + } + +} diff --git a/quixbugs_correct_java_programs/SHUNTING_YARD.java b/quixbugs_correct_java_programs/SHUNTING_YARD.java new file mode 100644 index 0000000000000000000000000000000000000000..0fbe5777888ec9fdaec00682b2940843a06995f2 --- /dev/null +++ b/quixbugs_correct_java_programs/SHUNTING_YARD.java @@ -0,0 +1,46 @@ +package correct_java_programs; + +import java.util.*; + +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ + +/** + * + * @author derricklin + */ +public class SHUNTING_YARD { + public static List shunting_yard(ArrayList tokens) { + Map precedence = new HashMap(); + precedence.put("+", 1); + precedence.put("-", 1); + precedence.put("*", 2); + precedence.put("/", 2); + + ArrayList rpntokens = new ArrayList(100); + ArrayDeque opstack = new ArrayDeque(); + + for (Object token : tokens) { + if (Integer.class.isInstance(token)) { + // cover also Double case I guess? + rpntokens.add((Integer) token); + } else { + String operator = (String) token; + while (!opstack.isEmpty() && precedence.get(operator) <= precedence.get(opstack.getLast())) { + rpntokens.add(opstack.pop()); + } + opstack.push(token); + } + + } + + while (!opstack.isEmpty()) { + rpntokens.add(opstack.pop()); + } + + return rpntokens; + } +} + diff --git a/quixbugs_correct_java_programs/SIEVE.java b/quixbugs_correct_java_programs/SIEVE.java new file mode 100644 index 0000000000000000000000000000000000000000..673b6acf5275df90b0ed6fef77e6dc94f2edca80 --- /dev/null +++ b/quixbugs_correct_java_programs/SIEVE.java @@ -0,0 +1,47 @@ +package correct_java_programs; +import java.util.*; + +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ + +/** + * + * @author derricklin + */ +public class SIEVE { + + public static boolean all(ArrayList arr) { + for (boolean value : arr) { + if (!value) { return false; } + } + return true; + } + + public static boolean any(ArrayList arr) { + for (boolean value: arr) { + if (value) { return true; } + } + return false; + } + + public static ArrayList list_comp(int n, ArrayList primes) { + ArrayList built_comprehension = new ArrayList(); + for (Integer p : primes) { + built_comprehension.add(n % p > 0); + } + return built_comprehension; + } + + + public static ArrayList sieve(Integer max) { + ArrayList primes = new ArrayList(); + for (int n=2; n epsilon) { + approx = 0.5d * (approx + x / approx); + } + return approx; + } +} diff --git a/quixbugs_correct_java_programs/SUBSEQUENCES.java b/quixbugs_correct_java_programs/SUBSEQUENCES.java new file mode 100644 index 0000000000000000000000000000000000000000..4faaee93210459c45215d868316318f80e387688 --- /dev/null +++ b/quixbugs_correct_java_programs/SUBSEQUENCES.java @@ -0,0 +1,34 @@ +package correct_java_programs; +import java.util.*; + +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ + +/** + * + * @author derricklin + */ +public class SUBSEQUENCES { + public static ArrayList subsequences(int a, int b, int k) { + if (k == 0) { + ArrayList empty_set = new ArrayList(); + empty_set.add(new ArrayList()); + return empty_set; + } + + ArrayList ret = new ArrayList(50); + for (int i=a; i topological_ordering (List directedGraph) { + ArrayList orderedNodes = new ArrayList(); + for (Node node : directedGraph) { + if (node.getPredecessors().isEmpty()) { + orderedNodes.add(node); + } + } + + int listSize = orderedNodes.size(); + for (int i = 0; i < listSize; i++) { + Node node = orderedNodes.get(i); + for (Node nextNode : node.getSuccessors()) { + if (orderedNodes.containsAll(nextNode.getPredecessors()) && !orderedNodes.contains(nextNode)) { + orderedNodes.add(nextNode); + listSize++; + } + } + } + return orderedNodes; + } +} diff --git a/quixbugs_correct_java_programs/TO_BASE.java b/quixbugs_correct_java_programs/TO_BASE.java new file mode 100644 index 0000000000000000000000000000000000000000..151ebed6358b13827f00d33fe0f046da1c7faba1 --- /dev/null +++ b/quixbugs_correct_java_programs/TO_BASE.java @@ -0,0 +1,26 @@ +package correct_java_programs; +import java.util.*; + +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ + +/** + * + * @author derricklin + */ +public class TO_BASE { + public static String to_base(int num, int b) { + String result = ""; + String alphabet = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"; + int i; + while (num > 0) { + i = num % b; + num = num / b; // floor division? + result = String.valueOf(alphabet.charAt(i))+result; + } + + return result; + } +} diff --git a/quixbugs_correct_java_programs/WRAP.java b/quixbugs_correct_java_programs/WRAP.java new file mode 100644 index 0000000000000000000000000000000000000000..59e36b85c0f6d279fe2ef3d6e90ee7cfeb412dac --- /dev/null +++ b/quixbugs_correct_java_programs/WRAP.java @@ -0,0 +1,34 @@ +package correct_java_programs; +import java.util.*; + +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ + +/** + * + * @author derricklin + */ +public class WRAP { + public static void main(String[] args) { + System.out.println("abc".lastIndexOf("c",30)); + } + + public static ArrayList wrap(String text, int cols) { + ArrayList lines = new ArrayList(); + + String line; + while (text.length() > cols) { + int end = text.lastIndexOf(" ", cols); // off by one? + if (end == -1) { + end = cols; + } + line = text.substring(0,end); + text = text.substring(end); + lines.add(line); + } + lines.add(text); + return lines; + } +} diff --git a/recorder-defects4j-patches.tar.gz b/recorder-defects4j-patches.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..1945642fa70b0a40baab1925bc85440847535fc9 --- /dev/null +++ b/recorder-defects4j-patches.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:115bbcf0dea667735aec3767a6a0f5c1f9c85562bac1b083aaddb32d9a581d49 +size 20913511 diff --git a/recorder-quixbugs-patches.tar.gz b/recorder-quixbugs-patches.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..5e761166b1219bf30d13b2023189ce22114bfc22 --- /dev/null +++ b/recorder-quixbugs-patches.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f6032cdbfa9a85e64c44ed3c61a9ebcb0995dc320e08e95ddb1afee689729cf7 +size 77196 diff --git a/stringfycode.py b/stringfycode.py new file mode 100644 index 0000000000000000000000000000000000000000..aaf3aa651d42235ee43c7c3e71f93d950cd11d34 --- /dev/null +++ b/stringfycode.py @@ -0,0 +1,627 @@ +import pickle +import traceback +def stringfyNode(root): + #print(root.getTreestr()) + if root.name == 'LocalVariableDeclaration' or root.name == 'VariableDeclaration': + typestr = "" + idenname = "" + mod = "" + for x in root.child: + if x.name == 'type': + typestr = stringfyNode(x) + if x.name == 'modifiers': + mod = stringfyNode(x) + if x.name == 'declarators': + idenname = stringfyNode(x) + return mod + typestr + " " + idenname + ";\n" + elif root.name == 'modifiers': + ans = "" + for x in root.child: + ans += x.name[:-4] + " " + return ans + elif root.name == 'BlockStatement' or root.name == 'parameter' or root.name == 'return_type' or root.name == 'type' or root.name == "initializer" or root.name == 'expression': + #print(root.getTreestr()) + assert(len(root.child) == 1) + return stringfyNode(root.child[0]) + elif root.name == 'BreakStatement_ter': + return 'break;\n' + elif root.name == 'BasicType': + #print(root.getTreestr()) + t = "" + dim = "" + for x in root.child: + if x.name == 'name': + t = stringfyNode(x) + elif x.name == 'dimensions': + dim = stringfyNode(x) + else: + print('boom',x.name) + assert(0) + return t + dim + elif root.name == "None_ter": + return "" + elif 'Exception_ter' in root.name: + return root.name[:-4] + elif root.name == 'DoStatement': + condition = "" + body = '' + for x in root.child: + if x.name == 'condition': + condition = stringfyNode(x) + if x.name == 'body': + body = stringfyNode(x) + return 'do{\n' + body + "}while" + condition + "\n" + elif root.name == "dimensions": + ans = "" + for x in root.child: + if x.name == "None_ter": + ans = "[]" + else: + ans = stringfyNode(x) + return ans + elif root.name == 'SwitchStatement': + return '' + elif root.name == 'AssertStatement': + return '' + elif root.name == 'ContinueStatement_ter': + return 'continue;\n' + elif root.name == 'ContinueStatement': + return 'continue ' + root.child[0].child[0].name + ';\n' + elif root.name == 'BlockStatement_ter': + return '' + elif root.name == 'MethodReference': + exp = "" + method = "" + args = "(" + for x in root.child: + if x.name == 'expression': + exp = stringfyNode(x) + if x.name == 'method': + method = stringfyNode(x.child[0]) + if x.name == 'type_arguments': + args += stringfyNode(x) + args += ")" + ans = exp + "." + method + args + return ans + elif root.name == 'WhileStatement': + con = "" + body = "" + for x in root.child: + if x.name == 'condition': + con = 'while' + stringfyNode(x) + if x.name == 'body': + body = stringfyNode(x) + #if x.name == 'else_statement': + # elses = stringfyNode(x.child[0]) + return con + '{\n' + body + "\n}" + elif root.name == 'ArrayInitializer': + ans = '{' + for x in root.child: + if x.name == 'initializers': + for y in x.child: + ans += stringfyNode(y) + "," + return ans[:-1] + '}' + elif root.name == 'TypeArgument': + t = "" + t2 = "" + #print(root.getTreestr()) + for x in root.child: + if x.name == 'type': + t = stringfyNode(x) + elif x.name == 'pattern_type': + t = x.child[0].name[:-4] + else: + t2 = x.child[0].name[:-4] + #print(t, "ppppp") + return t + t2 + elif root.name == 'LambdaExpression': + return "" + elif root.name == 'ArrayCreator': + #print(root.getTreestr()) + t = "" + dim = '[]' + ini = "" + for x in root.child: + if x.name == 'type': + t = stringfyNode(x) + if x.name == 'dimensions': + dim = stringfyNode(x) + if x.name == 'initializer': + ini = stringfyNode(x) + return 'new ' + t + "[" + dim + "]" + ini + elif root.name == 'IfStatement': + con = "" + then = "" + elses = "" + for x in root.child: + if x.name == 'condition': + con = 'if' + stringfyNode(x) + if x.name == 'then_statement': + then = stringfyNode(x.child[0]) + if x.name == 'else_statement': + elses = stringfyNode(x.child[0]) + if then == "": + return con + "{\n" + if elses == "": + return con + '{\n' + then + "\n}" + return con + '{\n' + then + "\n}" + 'else{\n' + elses + "\n}" + elif root.name == 'ReferenceType': + args = "" + n = "" + sub = "" + dim = "" + for x in root.child: + if x.name == 'arguments': + args = stringfyNode(x) + if x.name == 'name': + n = stringfyNode(x) + if x.name == 'subtype': + sub = stringfyNode(x.child[0]) + if x.name == 'dimensions': + dim = stringfyNode(x) + #print('arg', args) + if dim != "": + n = n + " " + dim + if args != "": + ans = n +"<" + args + ">" + else: + ans = n + if sub != "": + ans = ans + "." + sub + return ans + else: + return ans + + elif root.name == 'StatementExpression': + return stringfyNode(root.child[0]) + ";\n" + elif root.name == 'body' or root.name == 'catches' or root.name == 'statements' or root.name == 'finally_block': + ans = "" + for x in root.child: + ans += stringfyNode(x) + return ans + elif root.name == 'TernaryExpression': + con = "" + iftrue = "" + iffalse = "" + for x in root.child: + if x.name == 'condition': + con = stringfyNode(x) + if x.name == 'if_true': + iftrue = stringfyNode(x.child[0]) + if x.name == 'if_false': + iffalse = stringfyNode(x.child[0]) + return con + "?" + iftrue + ":" + iffalse + elif root.name == 'ForStatement': + con = "" + body = "" + for x in root.child: + if x.name == 'control': + con = stringfyNode(x.child[0]) + if x.name == 'body': + body = stringfyNode(x) + #print(root.getTreestr()) + return 'for' + con + "{\n" + body + "\n}" + elif root.name == 'control': + return stringfyNode(root.child[0]) + elif root.name == 'ForControl': + ini = "" + con = "" + up = "" + for x in root.child: + if x.name == 'init': + ini = stringfyNode(x.child[0]).strip() + if x.name == 'condition': + con = stringfyNode(x)[1:-1] + if x.name == "update": + up = stringfyNode(x.child[0]) + if up == '': + return '(' + con + ")" + return 'for(' + ini + con + ";" + up + ") {" + elif root.name == 'ForControl_ter': + return '(;;)' + elif root.name == 'EnhancedForControl': + var = "" + itera = "" + for x in root.child: + if x.name == 'var': + var = stringfyNode(x.child[0]) + if x.name == 'iterable': + itera = stringfyNode(x.child[0]) + return '(' + var + ":" + itera + ")" + elif root.name == 'CatchClause': + p = "" + b = "" + for x in root.child: + if x.name == 'parameter': + p = stringfyNode(x) + if x.name == 'block': + b = stringfyNode(x) + return "catch(" + p + "){\n" + b + "\n}" + elif root.name == 'MethodDeclaration': + rettype = "" + methodname = "" + throws = "" + args = "" + body = "" + for x in root.child: + if x.name == 'return_type': + rettype = stringfyNode(x) + if x.name == 'name': + methodname = stringfyNode(x) + if x.name == 'throws': + throws = "throws " + stringfyNode(x) + if x.name == 'parameters': + for y in x.child: + args += stringfyNode(y) + "," + if x.name == 'body': + body = stringfyNode(x) + if rettype == "": + rettype = 'void' + return rettype + " " + methodname + " (" + args[:-1] + ") " + throws + " {\n" + body + " }" + elif root.name == 'parameters': + args = "" + for x in root.child: + args += stringfyNode(x) + "," + return args[:-1] + elif root.name == 'ExplicitConstructorInvocation': + methodname = "this(" + for x in root.child: + if x.name == 'arguments': + methodname += stringfyNode(x) + else: + assert(0) + methodname += ");" + return methodname + elif root.name == 'Assignment': + ass = "" + val = "" + type = "" + for x in root.child: + if x.name == 'expressionl': + ass = stringfyNode(x.child[0]) + if x.name == 'value': + val = stringfyNode(x.child[0]) + if x.name == 'type': + type = x.child[0].name[:-4] + return ass + " %s "%type + val + elif root.name == 'selectors': + ans = "" + for x in root.child: + ans += stringfyNode(x) + "." + return ans[:-1] + elif root.name == 'MemberReference': + qual = "" + member = "" + post = "" + pre = "" + sel = "" + for x in root.child: + if x.name == 'qualifier': + qual = stringfyNode(x)#x.child[0].name[:-4] + "." + if x.name == "member": + member = stringfyNode(x) + if x.name == "postfix_operators": + post = stringfyNode(x) + if x.name == 'prefix_operators': + pre = stringfyNode(x) + if x.name == 'selectors': + sel = stringfyNode(x) + return pre + qual + member + sel + post + elif root.name == 'name' or root.name == 'member': + return root.child[0].name[:-4] + elif root.name == 'declarators': + ans = "" + for x in root.child: + ans += stringfyNode(root.child[0]) + ans += "," + return ans[:-1] + elif root.name == 'VariableDeclarator': + #print(root.getTreestr()) + idenname = "" + clname = "" + for x in root.child: + if x.name == 'name': + idenname = stringfyNode(x) + if x.name == 'initializer': + clname = stringfyNode(x) + #print(idenname) + #print(clname) + return idenname + " = " + clname + elif root.name == 'ArraySelector': + qual = "" + index = "" + post = "" + pre = "" + sel = "" + for x in root.child: + if x.name == 'qualifier': + qual = stringfyNode(x)#x.child[0].name[:-4] + "." + if x.name == "index": + index = stringfyNode(x.child[0]) + if x.name == "postfix_operators": + post = stringfyNode(x) + if x.name == 'prefix_operators': + pre = stringfyNode(x) + if x.name == 'selectors': + sel = stringfyNode(x) + return "[" + pre + qual + index + sel + post + "]" + elif root.name == 'prefix_operators' or root.name == "postfix_operators": + return root.child[0].name[:-4] + elif root.name == 'ClassCreator': + arguments = '(' + for x in root.child: + if x.name == 'type': + typename = stringfyNode(x) + if x.name == 'arguments': + arguments += stringfyNode(x) + arguments += ")" + return 'new ' + typename + arguments + elif root.name == 'arguments': + argstr = "" + for i, x in enumerate(root.child): + if i == 0: + argstr += stringfyNode(x) + else: + argstr += ", " + stringfyNode(x) + return argstr + elif root.name == 'SuperConstructorInvocation': + methodname = "super(" + for x in root.child: + if x.name == 'arguments': + methodname += stringfyNode(x) + else: + assert(0) + methodname += ")" + return methodname + elif root.name == 'condition': + return '(' + stringfyNode(root.child[0]) + ')' + elif root.name == 'BinaryOperation': + operatorname = "" + operatorleft = "" + operatorright = "" + for x in root.child: + if x.name == 'operator': + operatorname = x.child[0].name[:-4] + if x.name == 'operandl': + operatorleft = stringfyNode(x.child[0]) + if x.name == 'operandr': + operatorright = stringfyNode(x.child[0]) + return "(" + operatorleft + " " + operatorname + " " + operatorright + ")" + elif root.name == 'Literal': + pre = '' + post = '' + v = '' + for x in root.child: + if x.name == 'prefix_operators': + pre = stringfyNode(x) + if x.name == 'postfix_operators': + post = stringfyNode(x) + if x.name == 'value': + v = x.child[0].name[:-4] + ans = pre + v + post + return ans + elif root.name == 'ConstructorDeclaration': + name = "" + args = "" + body = "" + throws = "" + for x in root.child: + if x.name == 'name': + name = stringfyNode(x) + if x.name == 'parameters': + args += stringfyNode(y) + "," + if x.name == 'throws': + throws = 'throws ' + stringfyNode(x) + if x.name == 'body': + body = stringfyNode(x) + return 'class ' + name + " " + throws + "{\n" + body + "}\n" + elif root.name == 'SynchronizedStatement': + lock = "" + block = "" + for x in root.child: + if x.name == 'lock': + lock = stringfyNode(x.child[0]) + if x.name == "block": + block = stringfyNode(x) + return "synchronized(" + lock + "){\n" + block + "}" + elif root.name == 'throws': + thows = "" + for x in root.child: + thows += stringfyNode(x) + " " + return thows.strip() + elif root.name == 'This': + ansname = 'this.' + member = "" + qual = "" + for x in root.child: + if x.name == 'selectors': + member = stringfyNode(x) + if x.name == 'qualifier': + qual = stringfyNode(x) + if qual == "": + ansname += member + else: + ansname += qual + "." + member + return ansname + elif root.name == 'ReturnStatement_ter': + return 'return;\n' + elif root.name == 'qualifier': + if len(root.child[0].child) == 0: + return root.child[0].name[:-4] + "." + return stringfyNode(root.child[0]) + "." + #return root.child[0].name[:-4] + "." + elif root.name == 'MethodInvocation' or root.name == 'SuperMethodInvocation': + ans = "" + member = "" + arguments = "(" + selectors = "" + qual = "" + pre = "" + for x in root.child: + if x.name == 'member': + member += stringfyNode(x) + if x.name == 'arguments': + arguments += stringfyNode(x) + if x.name == 'qualifier': + qual = stringfyNode(x) + if x.name == 'selectors': + selectors = "." + stringfyNode(x) + if x.name == 'prefix_operators': + pre = stringfyNode(x) + arguments = arguments + ")" + ans = pre + qual + member + arguments + selectors + if root.name == 'SuperMethodInvocation': + ans = 'super.' + ans + return ans + elif root.name == 'FormalParameter' or root.name == 'CatchClauseParameter': + t = "" + na = "" + for x in root.child: + if x.name == 'type': + t = stringfyNode(x) + if x.name == 'name': + na = stringfyNode(x) + return t + " " + na + elif root.name == 'TryStatement': + block = "" + ca = "" + fin = "" + for x in root.child: + if x.name == 'block': + block = stringfyNode(x) + if x.name == 'catches': + ca = stringfyNode(x) + if x.name == 'finally_block': + fin = stringfyNode(x) + return 'try{\n' + block + '}\n' + ca + 'finally{\n' + fin + "}\n" + elif root.name == 'block': + ans= "" + for x in root.child: + ans += stringfyNode(x) + "\n" + return ans + + + elif root.name == 'throws_ter': + return "" + elif root.name == 'annotations': + return "" + elif root.name == 'ReturnStatement': + ans = "return " + stringfyNode(root.child[0]) + ";" + return ans + elif root.name == 'ReturnStatement_er': + ans = "return;" + return ans + elif root.name == 'ThrowStatement': + return "" + elif root.name == 'This_ter': + return 'this' + elif root.name == 'modifiers' or root.name == 'modifiers_ter': + return "" + elif root.name == 'assertEquals' or root.name == 'assertEquals_ter': + return "" + elif root.name == 'ClassReference': + #print(root.getTreestr()) + #assert(len(root.child) == 1) + t = "" + s = "" + for x in root.child: + if x.name == 'type': + t = stringfyNode(x) + if x.name == 'selectors': + s = stringfyNode(x) + return t + s + elif root.name == 'Cast': + types = "" + exp = "" + for x in root.child: + if x.name == 'type': + types = stringfyNode(x) + if x.name == 'expression': + exp = stringfyNode(x) + return "(" + types + ")" + exp + else: + #print('boom',1, root.name) + assert(0) + #elif root.name == 'MemberReference': + +def stringfyRoot(root, isIf, mode): + p = "" + for x in root.child: + #print(x.getTreestr()) + s = stringfyNode(x) + try: + s = stringfyNode(x) + except: + #print(traceback.print_exc()) + s = "" + if x.name == 'IfStatement': + if isIf == 1: + if s == "": + s = "if(True){\n" + p += s + if len(root.child) > 0 and root.child[0].name == 'IfStatement' and len(root.child) > 1 and mode == 1: + p += "}" + return p +class Node: + def __init__(self, name, s): + self.name = name + self.id = s + self.father = None + self.child = [] + self.treestr = "" + self.hasmatch = False + self.possibility = 0.01 + def getprob(self): + ans = [self.possibility] + for x in self.child: + ans.extend(x.getprob()) + return ans + def printTree(self, r): + #s = r.name + " "#print(r.name) + if len(r.child) == 0: + s = r.name + '_ter' + " " + s += "^ " + return s + s = r.name + " " + #r.child = sorted(r.child, key=lambda x:x.name) + for c in r.child: + s += self.printTree(c) + s += "^ "#print(r.name + "^") + return s + def getTreestr(self): + if self.treestr == "": + self.treestr = self.printTree(self) + return self.treestr + else: + return self.treestr + return self.treestr +def getroottree(tokens, isex=False): + if isex: + root = Node(tokens[0], 0) + else: + root = Node('MethodDeclaration', 0) + currnode = root + for i, x in enumerate(tokens[1:]): + if x != "^": + if tokens[i + 2] == '^' and '_ter' not in x: + x += '_ter' + nnode = Node(x, i + 1) + nnode.father = currnode + currnode.child.append(nnode) + currnode = nnode + else: + currnode = currnode.father + return root +'''data = open('outval1.txt', "r").readlines()#pickle.load(open('process_datacopy.pkl', 'rb')) +for i, x in enumerate(data): + r = getroottree(x.split()) + print(i) + print(x) + try: + s = stringfyNode(r.child[0]) + print(s) + except: + print(x)''' + #assert(0) +#root = getroottree('root LocalVariableDeclaration type ReferenceType name Double_ter ^ ^ ^ ^ declarators VariableDeclarator name objTypePair_ter ^ ^ initializer ClassCreator type ReferenceType name Double_ter ^ ^ ^ ^ arguments MemberReference member x_ter ^ ^ ^ ^ ^ ^ ^ ^ ^ StatementExpression expression SuperConstructorInvocation arguments MemberReference member f_ter ^ ^ ^ ^ ^ ^ ^ ^ '.split()) +#print(stringfyRoot(root)) \ No newline at end of file diff --git a/training_data.csv b/training_data.csv new file mode 100644 index 0000000000000000000000000000000000000000..dcc1aa08ad0c3951c5f278ff93bc0adb62727790 --- /dev/null +++ b/training_data.csv @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:24f5f20d133b8fe4ae4451f5ff06a0a4a3a0ec97efe1c34a8ace5377d215cd36 +size 743404079 diff --git a/training_data_0.csv b/training_data_0.csv new file mode 100644 index 0000000000000000000000000000000000000000..2afdcb8fca51f48f0882daa2b14e09bfb5bc625a --- /dev/null +++ b/training_data_0.csv @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c80491d3645b70450618efea07861b1d71b051922d031db4499621f106fda0c1 +size 509545083 diff --git a/training_data_1.csv b/training_data_1.csv new file mode 100644 index 0000000000000000000000000000000000000000..00baab2fda6c8f01ca7bade484b975c213a6c6e6 --- /dev/null +++ b/training_data_1.csv @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bd1d0d246f8e9897c86a5e1aa9ed46382a51495a5e5462de671644e7e3952a1a +size 233534621