{"similarity_score": 0.48477466504263095, "equal_cnt": 15, "replace_cnt": 7, "delete_cnt": 3, "insert_cnt": 4, "fix_ops_cnt": 14, "bug_source_code": "= $c) && ($g <= $d))\n {\n $e[$x] = $g;\n }\n if(($h >= $c) && ($h <= $d))\n {\n $f[$x] = $h;\n }\n}\n$i = array_intersect($e, $f);\nprint count($i);\n?>", "lang": "PHP", "bug_code_uid": "bf05dfd8517ccb82f07d2df0d22d5186", "src_uid": "c7aa8a95d5f8832015853cffa1374c48", "apr_id": "41497e84063b4b202d59c2a04b17fb1e", "difficulty": 1200, "tags": ["math"], "bug_exec_outcome": "TIME_LIMIT_EXCEEDED", "potential_dominant_fix_op": "replace", "lang_cluster": "PHP"} {"similarity_score": 0.9957805907172996, "equal_cnt": 2, "replace_cnt": 0, "delete_cnt": 0, "insert_cnt": 1, "fix_ops_cnt": 1, "bug_source_code": "", "lang": "PHP", "bug_code_uid": "4d24033817732a47d111fd0cdfdd455b", "src_uid": "c7aa8a95d5f8832015853cffa1374c48", "apr_id": "41497e84063b4b202d59c2a04b17fb1e", "difficulty": 1200, "tags": ["math"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "insert", "lang_cluster": "PHP"} {"similarity_score": 0.9554655870445344, "equal_cnt": 6, "replace_cnt": 2, "delete_cnt": 1, "insert_cnt": 2, "fix_ops_cnt": 5, "bug_source_code": "", "lang": "PHP", "bug_code_uid": "e70dac77923cd2cd5e16454fd6fb51c0", "src_uid": "7bf30ceb24b66d91382e97767f9feeb6", "apr_id": "0e87c56df56743d4765af439eafe97cb", "difficulty": 800, "tags": ["number theory", "math", "implementation"], "bug_exec_outcome": "COMPILATION_ERROR", "potential_dominant_fix_op": "replace", "lang_cluster": "PHP"} {"similarity_score": 0.7580372250423012, "equal_cnt": 5, "replace_cnt": 4, "delete_cnt": 0, "insert_cnt": 0, "fix_ops_cnt": 4, "bug_source_code": "", "lang": "PHP", "bug_code_uid": "116cee303ef6f7464d9e60ca3e0545b8", "src_uid": "3a0c1b6d710fd8f0b6daf420255d76ee", "apr_id": "e2a132ffa58ae9aca477852759e17130", "difficulty": 900, "tags": ["brute force", "implementation"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "replace", "lang_cluster": "PHP"} {"similarity_score": 0.735973597359736, "equal_cnt": 7, "replace_cnt": 5, "delete_cnt": 0, "insert_cnt": 1, "fix_ops_cnt": 6, "bug_source_code": " 2 * $k) $good = false;\n}\nif ($good) printf (\"YES\\n\");\nelse printf (\"NO\\n\");\n?>", "lang": "PHP", "bug_code_uid": "619802da827304ff22d3a1cb5ffb463d", "src_uid": "5fdaf8ee7763cb5815f49c0c38398f16", "apr_id": "77afa2bd2c2e09cb195e2c343c984280", "difficulty": 900, "tags": ["implementation"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "insert", "lang_cluster": "PHP"} {"similarity_score": 0.980688497061293, "equal_cnt": 2, "replace_cnt": 0, "delete_cnt": 0, "insert_cnt": 1, "fix_ops_cnt": 1, "bug_source_code": "= 1 && $watermelon_kilos <= 100)\n {\n $flag = FALSE;\n for($i = 2; $i < $watermelon_kilos; $i++)\n {\n $div = $watermelon_kilos / $i;\n if($div % 2 == 0)\n {\n $flag = TRUE;\n break;\n }\n }\n if($flag)\n echo \"YES\".\"\\n\";\n else\n echo \"NO\".\"\\n\";\n }\nelse\n {\n echo \"\\n\".\"Weight of watermelon is wrong input\".\"\\n\";\n }\n \n\n?>", "lang": "PHP", "bug_code_uid": "5695d7c7714146b52e555f53ef7f99cf", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "4494f9e8db9730124558c507edcb022b", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "insert", "lang_cluster": "PHP"} {"similarity_score": 0.9557522123893806, "equal_cnt": 2, "replace_cnt": 0, "delete_cnt": 0, "insert_cnt": 1, "fix_ops_cnt": 1, "bug_source_code": "= 1 && $input <= 100)\n {\n if($input %2 == 0)\n echo \"YES\";\n else\n echo \"NO\";\n }\n \n?>\n", "lang": "PHP", "bug_code_uid": "3bbff081cf091fa1eb8098a4a04debb5", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "5c2b71687f7ed3aa60415d3c7c069722", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "insert", "lang_cluster": "PHP"} {"similarity_score": 0.5617977528089888, "equal_cnt": 27, "replace_cnt": 9, "delete_cnt": 12, "insert_cnt": 5, "fix_ops_cnt": 26, "bug_source_code": "\n", "lang": "PHP", "bug_code_uid": "a92290ac8a745513cd3104f751e5900b", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "5c2b71687f7ed3aa60415d3c7c069722", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "COMPILATION_ERROR", "potential_dominant_fix_op": "delete", "lang_cluster": "PHP"} {"similarity_score": 0.912568306010929, "equal_cnt": 7, "replace_cnt": 2, "delete_cnt": 3, "insert_cnt": 2, "fix_ops_cnt": 7, "bug_source_code": " ", "lang": "PHP", "bug_code_uid": "883005f564f8bcd8ada44e0e5aadf449", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "cc2c6d271dadc8bdef15ae2d0fafdd7a", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "delete", "lang_cluster": "PHP"} {"similarity_score": 0.9893992932862191, "equal_cnt": 3, "replace_cnt": 1, "delete_cnt": 1, "insert_cnt": 0, "fix_ops_cnt": 2, "bug_source_code": "= 1 && $number <= 100){\n echo 'YES';\n} else {\n echo 'NO';\n}\n?>", "lang": "PHP", "bug_code_uid": "6ca2a83ee4c4b5e675de68b52d1555ff", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "67d98f170c72532a5bbddbd6b10132fe", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "replace", "lang_cluster": "PHP"} {"similarity_score": 0.9425287356321839, "equal_cnt": 2, "replace_cnt": 0, "delete_cnt": 0, "insert_cnt": 1, "fix_ops_cnt": 1, "bug_source_code": "= 2){ \n echo \"YES\\n\"; \n} else {\n echo \"NO\\n\"; \n}", "lang": "PHP", "bug_code_uid": "3f744a43808fdc53d17cfce47b0014a3", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "21c7d5cac864d24b55a1544252c68877", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "delete", "lang_cluster": "PHP"} {"similarity_score": 0.8992805755395683, "equal_cnt": 7, "replace_cnt": 2, "delete_cnt": 0, "insert_cnt": 4, "fix_ops_cnt": 6, "bug_source_code": "", "lang": "PHP", "bug_code_uid": "6a7b4b248026a42a0e458a5a9f18c6fb", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "dd2f604e44c9be65e5785cea7608e1e2", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "insert", "lang_cluster": "PHP"} {"similarity_score": 0.9133858267716536, "equal_cnt": 2, "replace_cnt": 0, "delete_cnt": 1, "insert_cnt": 1, "fix_ops_cnt": 2, "bug_source_code": "\n", "lang": "PHP", "bug_code_uid": "c442ad5c4bb2bf0eeaa26c3f287a110f", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "4fbfb2f147b186b2b57653cfcc13fd58", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "insert", "lang_cluster": "PHP"} {"similarity_score": 0.6745562130177515, "equal_cnt": 7, "replace_cnt": 0, "delete_cnt": 1, "insert_cnt": 5, "fix_ops_cnt": 6, "bug_source_code": "", "lang": "PHP", "bug_code_uid": "c29cca87f5ebee725bee184eda10ab0e", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "e898bf9c4c9879020a20b9707f3fe645", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "COMPILATION_ERROR", "potential_dominant_fix_op": "insert", "lang_cluster": "PHP"} {"similarity_score": 0.8111111111111111, "equal_cnt": 3, "replace_cnt": 0, "delete_cnt": 0, "insert_cnt": 2, "fix_ops_cnt": 2, "bug_source_code": "", "lang": "PHP", "bug_code_uid": "585ce39e39e94bf48e71f3353a32a90e", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "e898bf9c4c9879020a20b9707f3fe645", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "insert", "lang_cluster": "PHP"} {"similarity_score": 0.991044776119403, "equal_cnt": 2, "replace_cnt": 0, "delete_cnt": 1, "insert_cnt": 1, "fix_ops_cnt": 2, "bug_source_code": " 2){\n echo \"Yes\";\n}else{\n echo \"No\";\n}\n", "lang": "PHP", "bug_code_uid": "b6bdbbe97f3736c67b33a5a3bab9d611", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "4ab921ccb76d8d69d781df1f92eab621", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "insert", "lang_cluster": "PHP"} {"similarity_score": 0.9874055415617129, "equal_cnt": 4, "replace_cnt": 2, "delete_cnt": 1, "insert_cnt": 0, "fix_ops_cnt": 3, "bug_source_code": "= 1 && $w <= 100){\n if ($w % 4 == 0){\n echo \"YES\";\n }\n else\n echo \"NO\";\n}\nelse\n echo \"NO\";\n?>", "lang": "PHP", "bug_code_uid": "c972f6d6813f4ee5260a2ccf94badec1", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "d14fe0a3bb44f3562396fd2f8e8e0fa0", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "replace", "lang_cluster": "PHP"} {"similarity_score": 0.9605263157894737, "equal_cnt": 1, "replace_cnt": 0, "delete_cnt": 0, "insert_cnt": 1, "fix_ops_cnt": 1, "bug_source_code": "$number = fgets(STDIN);\necho($number % 2 == 0 && $number > 2)?\"YES\":\"NO\";", "lang": "PHP", "bug_code_uid": "e003e7ce39038375029d1af75bc955a2", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "71513f23524fae4f1c2241440a41d360", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "insert", "lang_cluster": "PHP"} {"similarity_score": 0.9940476190476191, "equal_cnt": 3, "replace_cnt": 0, "delete_cnt": 0, "insert_cnt": 2, "fix_ops_cnt": 2, "bug_source_code": " 1) {\n print \"YES\";\n}else echo \"NO\";\n \n}\n\n?>\n\n", "lang": "PHP", "bug_code_uid": "a955725423ce0844f9bbaad2a4ab199c", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "5d59553744eafb60b8708041b12d30aa", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "insert", "lang_cluster": "PHP"} {"similarity_score": 0.9363636363636364, "equal_cnt": 5, "replace_cnt": 2, "delete_cnt": 2, "insert_cnt": 0, "fix_ops_cnt": 4, "bug_source_code": " 2)\n\techo 'YES';\nelse\n\techo 'NO';\n\n\n\n?>", "lang": "PHP", "bug_code_uid": "6a8a20214e945474515adbf7e60c28f3", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "8b6d0efc6b65881a2cdf40001dca2cdf", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "replace", "lang_cluster": "PHP"} {"similarity_score": 0.9157392686804452, "equal_cnt": 2, "replace_cnt": 0, "delete_cnt": 0, "insert_cnt": 1, "fix_ops_cnt": 1, "bug_source_code": "", "lang": "PHP", "bug_code_uid": "34e60b8314990fefa449cf068f949c14", "src_uid": "f1b43baa14d4c262ba616d892525dfde", "apr_id": "9aed765c47fd336c291baf1f2fe9497b", "difficulty": 1100, "tags": ["math", "combinatorics"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "insert", "lang_cluster": "PHP"} {"similarity_score": 0.975609756097561, "equal_cnt": 4, "replace_cnt": 2, "delete_cnt": 0, "insert_cnt": 1, "fix_ops_cnt": 3, "bug_source_code": "", "lang": "PHP", "bug_code_uid": "c46c99694ce844e9f3d0bb36f87bf120", "src_uid": "b9fa2bb8001bd064ede531a5281cfd8a", "apr_id": "0c85eb094daf60026dfb7043dc7a456f", "difficulty": 1000, "tags": ["greedy"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "replace", "lang_cluster": "PHP"} {"similarity_score": 0.9819927971188476, "equal_cnt": 2, "replace_cnt": 0, "delete_cnt": 1, "insert_cnt": 0, "fix_ops_cnt": 1, "bug_source_code": "", "lang": "PHP", "bug_code_uid": "cea18f8c383c845ebf96eb22073de618", "src_uid": "c5d19dc8f2478ee8d9cba8cc2e4cd838", "apr_id": "3856dc982ffc899ecd10479c3716cdff", "difficulty": 1000, "tags": ["strings", "greedy"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "delete", "lang_cluster": "PHP"} {"similarity_score": 0.3155339805825243, "equal_cnt": 6, "replace_cnt": 5, "delete_cnt": 0, "insert_cnt": 0, "fix_ops_cnt": 5, "bug_source_code": "", "lang": "PHP", "bug_code_uid": "2740d0e893786f5ae5202686dfa322ca", "src_uid": "2b8c2deb5d7e49e8e3ededabfd4427db", "apr_id": "6f01bbf8b42029aabba70f703fefae64", "difficulty": 1000, "tags": ["implementation"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "insert", "lang_cluster": "PHP"} {"similarity_score": 0.9950248756218906, "equal_cnt": 2, "replace_cnt": 1, "delete_cnt": 0, "insert_cnt": 0, "fix_ops_cnt": 1, "bug_source_code": "", "lang": "PHP", "bug_code_uid": "428f1147404eaa385afe8749cf70d208", "src_uid": "faa343ad6028c5a069857a38fa19bb24", "apr_id": "abc68f52c07c19d09f82a53e413b683d", "difficulty": 1200, "tags": ["implementation"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "replace", "lang_cluster": "PHP"} {"similarity_score": 0.9925558312655087, "equal_cnt": 3, "replace_cnt": 1, "delete_cnt": 1, "insert_cnt": 0, "fix_ops_cnt": 2, "bug_source_code": "", "lang": "PHP", "bug_code_uid": "de2a46e5ddc93c0c6c40fcb19aeee40c", "src_uid": "faa343ad6028c5a069857a38fa19bb24", "apr_id": "abc68f52c07c19d09f82a53e413b683d", "difficulty": 1200, "tags": ["implementation"], "bug_exec_outcome": "COMPILATION_ERROR", "potential_dominant_fix_op": "replace", "lang_cluster": "PHP"} {"similarity_score": 0.9974811083123426, "equal_cnt": 2, "replace_cnt": 1, "delete_cnt": 0, "insert_cnt": 0, "fix_ops_cnt": 1, "bug_source_code": " $b) {\n $sum += $b;\n } else {\n $sum += $n * $a;\n }\n\n echo $sum . PHP_EOL;\n}", "lang": "PHP", "bug_code_uid": "121a3cec790f781db19b1c6dda46d14c", "src_uid": "faa343ad6028c5a069857a38fa19bb24", "apr_id": "44cbf9aea90c2eb2007afac003e3946b", "difficulty": 1200, "tags": ["implementation"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "replace", "lang_cluster": "PHP"} {"similarity_score": 0.7643312101910829, "equal_cnt": 11, "replace_cnt": 5, "delete_cnt": 0, "insert_cnt": 5, "fix_ops_cnt": 10, "bug_source_code": "\n", "lang": "PHP", "bug_code_uid": "e8c8df728f193bc42936a81f8bce9baf", "src_uid": "faa343ad6028c5a069857a38fa19bb24", "apr_id": "fa9907f7f94ea4321798e7af39a62bda", "difficulty": 1200, "tags": ["implementation"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "replace", "lang_cluster": "PHP"} {"similarity_score": 0.05204460966542751, "equal_cnt": 1, "replace_cnt": 0, "delete_cnt": 0, "insert_cnt": 1, "fix_ops_cnt": 1, "bug_source_code": " $half_multi_ride+$other_half_two)\n\t\t\t\t\t$multi_ride = $half_multi_ride+$other_half_two;\n\t\t\t\telse\n\t\t\t\t\t$multi_ride = $half_multi_ride+$other_half_one;\n\t\t\t}else{\n\t\t\t\t$multi_ride = ((int)($n/$m))*$b;\n\t\t\t}\n\t\t}else{\n\t\t\t$multi_ride = $b;\n\t\t}\n\t\tif($one_ride > $multi_ride)\n\t\t\treturn $multi_ride;\n\t\telse\n\t\t\treturn $one_ride;\n\t}\n\t\n\t$handle = fopen(\"php://stdin\", 'r');\n\t$readAll = stream_get_contents($handle);\n\t$contents = explode(' ', $readAll);\n\techo process($contents[0], $contents[1], $contents[2], $contents[3]);\n\n?>\n", "lang": "PHP", "bug_code_uid": "beb9a8c474530306a71e8e2d3f08eb79", "src_uid": "faa343ad6028c5a069857a38fa19bb24", "apr_id": "4f968de42bcacbed6ef4465754d9c06b", "difficulty": 1200, "tags": ["implementation"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "insert", "lang_cluster": "PHP"} {"similarity_score": 0.34854771784232363, "equal_cnt": 8, "replace_cnt": 3, "delete_cnt": 2, "insert_cnt": 2, "fix_ops_cnt": 7, "bug_source_code": " $f) && ($j[$x] < $g))\n {\n $p++;\n }\n}\nprint $p;\n?>", "lang": "PHP", "bug_code_uid": "5fa5af1dcf852d0880ac8f611443fe39", "src_uid": "1c4cf1c3cb464a483511a8a61f8685a7", "apr_id": "7b408dfd096e3ac799794e95049430bc", "difficulty": 1600, "tags": ["implementation"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "replace", "lang_cluster": "PHP"} {"similarity_score": 0.9740480232840165, "equal_cnt": 10, "replace_cnt": 5, "delete_cnt": 2, "insert_cnt": 2, "fix_ops_cnt": 9, "bug_source_code": " 30,\n// DURING => 60\n// );\n// $tb_arr = array(\n// FREQ => 60,\n// DURING => 60\n// );\n// $ta_start = 22 * 60 + 30;\n\necho get_count($ta_arr, $tb_arr, $ta_start) . PHP_EOL;\n\nfunction get_count($ta_arr, $tb_arr, $ta_start)\n{\n $tb_start = get_start($ta_start, $tb_arr);\n\n $ta_end = get_end($ta_start, $ta_arr[DURING]);\n\n $count = ceil(($ta_end - $tb_start) / $tb_arr[FREQ]);\n\n debug(\" check between time $tb_start and $ta_end. Initial count: $count\" );\n\n // meet at start staion\n if (is_station($ta_start-$tb_arr[DURING], $tb_arr[FREQ]))\n {\n $count--;\n }\n\n return intval($count);\n}\n\n// get the most recent meetable bus start time\nfunction get_start($start, $t_arr)\n{\n global $ts;\n\n if ($start - $t_arr[DURING] > $ts)\n {\n $start_time = $start - $t_arr[DURING];\n\n if ( (($start_time - $ts) % $t_arr[FREQ]) == 0)\n {\n return $start_time;\n }\n else\n {\n return $ts + ceil(($start_time - $ts) / $t_arr[FREQ]) * $t_arr[FREQ];\n }\n }\n else\n return $ts;\n}\n\nfunction get_end($start, $during)\n{\n global $te;\n\n if ($start + $during < $te)\n return $start + $during;\n else\n return $te;\n}\n\nfunction is_station($t, $freq)\n{\n global $ts, $te;\n\n if ($t<$ts || $t > $te)\n return false;\n\n if ((($t - $ts) % $freq) == 0)\n {\n debug(\"meet in station at time: $t, freq: $freq\");\n return true;\n }\n else\n return false;\n}", "lang": "PHP", "bug_code_uid": "c1bfadfa72cdb91b3ea60c4052bde97f", "src_uid": "1c4cf1c3cb464a483511a8a61f8685a7", "apr_id": "97afe3b3c373474e2d0a9adb2a53b4c5", "difficulty": 1600, "tags": ["implementation"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "replace", "lang_cluster": "PHP"} {"similarity_score": 0.44967880085653106, "equal_cnt": 7, "replace_cnt": 4, "delete_cnt": 1, "insert_cnt": 1, "fix_ops_cnt": 6, "bug_source_code": "", "lang": "PHP", "bug_code_uid": "bec47ed3b92ec19baaa4ef38f7878141", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "f60747bdb3193782bd49c5ee060c4edb", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "replace", "lang_cluster": "PHP"} {"similarity_score": 0.9012345679012346, "equal_cnt": 5, "replace_cnt": 1, "delete_cnt": 0, "insert_cnt": 3, "fix_ops_cnt": 4, "bug_source_code": "", "lang": "PHP", "bug_code_uid": "18e08f2a53d0481233f323f2f4f23a74", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "adc70c9a12357bb92f260505fb902dad", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "RUNTIME_ERROR", "potential_dominant_fix_op": "insert", "lang_cluster": "PHP"} {"similarity_score": 0.9789674952198852, "equal_cnt": 2, "replace_cnt": 1, "delete_cnt": 0, "insert_cnt": 0, "fix_ops_cnt": 1, "bug_source_code": "= 1 AND $w <= 100)\n{\n if($w % 2 == 0)\n {\n $i = $w / 2;\n\n if($i % 2 == 0)\n {\n echo 'YES';\n } else {\n echo 'NO';\n }\n } else {\n echo 'NO';\n }\n}\n?>", "lang": "PHP", "bug_code_uid": "4ec2230acc9632423e282ddf7a77cd38", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "b9057ed166ca3231f8499de9d65bc944", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "replace", "lang_cluster": "PHP"} {"similarity_score": 0.8908554572271387, "equal_cnt": 2, "replace_cnt": 0, "delete_cnt": 0, "insert_cnt": 1, "fix_ops_cnt": 1, "bug_source_code": "", "lang": "PHP", "bug_code_uid": "a96f6e90cbf81d7c76ded57e260da2a0", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "a75247886f5dc5d291b984e3998283cc", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "insert", "lang_cluster": "PHP"} {"similarity_score": 0.8488372093023255, "equal_cnt": 3, "replace_cnt": 0, "delete_cnt": 0, "insert_cnt": 2, "fix_ops_cnt": 2, "bug_source_code": "2){\n printf(\"YES\\n\");\n }\n else{\n printf(\"NO\\n\");\n }\n\n?>", "lang": "PHP", "bug_code_uid": "698b8264355dea13e9948e30727e0081", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "f7c5522fe7d71ca07f0cdc40685f35b1", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "replace", "lang_cluster": "PHP"} {"similarity_score": 0.9556650246305419, "equal_cnt": 2, "replace_cnt": 0, "delete_cnt": 0, "insert_cnt": 1, "fix_ops_cnt": 1, "bug_source_code": "", "lang": "PHP", "bug_code_uid": "490ec6b3194dcbe56de754c481ac4d4b", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "6f666545a8413800093a7a442e065071", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "insert", "lang_cluster": "PHP"} {"similarity_score": 0.8811881188118812, "equal_cnt": 4, "replace_cnt": 0, "delete_cnt": 0, "insert_cnt": 4, "fix_ops_cnt": 4, "bug_source_code": "", "lang": "PHP", "bug_code_uid": "ab429220d18e8d6c47a834d7dc939bc7", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "87c7b061ae996a59ce3818c9805c1c38", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "insert", "lang_cluster": "PHP"} {"similarity_score": 0.9375, "equal_cnt": 2, "replace_cnt": 0, "delete_cnt": 0, "insert_cnt": 1, "fix_ops_cnt": 1, "bug_source_code": "", "lang": "PHP", "bug_code_uid": "d1460571bca007ef70797e5d92a39a11", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "065568a71bf84f33809ea369f27de160", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "insert", "lang_cluster": "PHP"} {"similarity_score": 0.34153005464480873, "equal_cnt": 8, "replace_cnt": 6, "delete_cnt": 1, "insert_cnt": 1, "fix_ops_cnt": 8, "bug_source_code": "\n", "lang": "PHP", "bug_code_uid": "85ecf8272ece03bfa8f3db478f5ef3d7", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "b9c60bf75479663926446d5c1777c7cc", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "insert", "lang_cluster": "PHP"} {"similarity_score": 0.22712933753943218, "equal_cnt": 10, "replace_cnt": 2, "delete_cnt": 4, "insert_cnt": 3, "fix_ops_cnt": 9, "bug_source_code": "
\n\n
';\n}\n$a=$_GET[\"n\"];\n\n//if($_GET[\"n\"]){\nif(($a%2==0)AND($a!=2)) ECHO \"YES\";\nELSE ECHO \"NO\";\n//}\n\n?>", "lang": "PHP", "bug_code_uid": "7b8d48da070cd1429f9269b409981e26", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "c3842dd83ee1689997c839c5d08a54e9", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "delete", "lang_cluster": "PHP"} {"similarity_score": 0.9806451612903225, "equal_cnt": 2, "replace_cnt": 0, "delete_cnt": 0, "insert_cnt": 2, "fix_ops_cnt": 2, "bug_source_code": "\n", "lang": "PHP", "bug_code_uid": "be39128b96b0ccf5be63d87a2c0d482d", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "068e52d7c0f33321c8a4f4960379e2ba", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "delete", "lang_cluster": "PHP"} {"similarity_score": 0.8711656441717791, "equal_cnt": 4, "replace_cnt": 3, "delete_cnt": 0, "insert_cnt": 0, "fix_ops_cnt": 3, "bug_source_code": "", "lang": "PHP", "bug_code_uid": "6676777c55151da5ae25d41de3215703", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "908f5d8652db7a2114ac0b0fc1801ecb", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "replace", "lang_cluster": "PHP"} {"similarity_score": 0.8387096774193549, "equal_cnt": 5, "replace_cnt": 1, "delete_cnt": 0, "insert_cnt": 3, "fix_ops_cnt": 4, "bug_source_code": "", "lang": "PHP", "bug_code_uid": "c49ac5e4fcfa61ad6640d18927587ac1", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "cfca8eebe7be14a89b4587d03fb84c54", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "insert", "lang_cluster": "PHP"} {"similarity_score": 0.9354838709677419, "equal_cnt": 4, "replace_cnt": 0, "delete_cnt": 2, "insert_cnt": 1, "fix_ops_cnt": 3, "bug_source_code": "", "lang": "PHP", "bug_code_uid": "89b41152ac6217158c473b9462d9ab94", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "3f25c59f06880d9bffb495197431b3db", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "insert", "lang_cluster": "PHP"} {"similarity_score": 0.05024011821204285, "equal_cnt": 17, "replace_cnt": 14, "delete_cnt": 2, "insert_cnt": 1, "fix_ops_cnt": 17, "bug_source_code": " 'e',\n 'h{1,}' => 'h',\n 'l{2,}' => 'll',\n 'o{1,}' => 'o',\n);\n$str = fgets(STDIN);\nforeach ($_trans as $p => $r) {\n $str = preg_replace('/' . $p . '/i', $r, $str);\n}\nif (strpos($str, 'hello') !== false) {\n $str = 'YES';\n} else {\n $str = 'NO';\n}\nfwrite(STDOUT, $str);", "lang": "PHP", "bug_code_uid": "d68a3e478754947e4f404c4b873608c6", "src_uid": "c5d19dc8f2478ee8d9cba8cc2e4cd838", "apr_id": "6885e4eced7af8d6b7466b777189c35d", "difficulty": 1000, "tags": ["strings", "greedy"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "replace", "lang_cluster": "PHP"} {"similarity_score": 0.9803921568627451, "equal_cnt": 5, "replace_cnt": 0, "delete_cnt": 0, "insert_cnt": 4, "fix_ops_cnt": 4, "bug_source_code": "", "lang": "PHP", "bug_code_uid": "aab16b4c12b30a6e569e4823d8353ec3", "src_uid": "c5d19dc8f2478ee8d9cba8cc2e4cd838", "apr_id": "cc9d1852fbb556509295b9aa6a198538", "difficulty": 1000, "tags": ["strings", "greedy"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "insert", "lang_cluster": "PHP"} {"similarity_score": 0.6905982905982906, "equal_cnt": 3, "replace_cnt": 2, "delete_cnt": 0, "insert_cnt": 0, "fix_ops_cnt": 2, "bug_source_code": "", "lang": "PHP", "bug_code_uid": "ad91c56492794f2805c24966ee118cbc", "src_uid": "c5d19dc8f2478ee8d9cba8cc2e4cd838", "apr_id": "ede8c3a5c647b3015944a9378e1b9436", "difficulty": 1000, "tags": ["strings", "greedy"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "replace", "lang_cluster": "PHP"} {"similarity_score": 0.3076923076923077, "equal_cnt": 15, "replace_cnt": 4, "delete_cnt": 5, "insert_cnt": 6, "fix_ops_cnt": 15, "bug_source_code": "$count[$i+1]){\n \techo \"NO\";\n \tbreak;\n }\n else $cnt++;\n\n}\nif($cnt==4)\n\techo \"YES\";\n", "lang": "PHP", "bug_code_uid": "0fb6e87ee741e1a6ad47ec34ac0c03c1", "src_uid": "c5d19dc8f2478ee8d9cba8cc2e4cd838", "apr_id": "5ff39da8caaa11f9c6a77fffccbfaa7f", "difficulty": 1000, "tags": ["strings", "greedy"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "replace", "lang_cluster": "PHP"} {"similarity_score": 0.9745331069609507, "equal_cnt": 6, "replace_cnt": 0, "delete_cnt": 0, "insert_cnt": 5, "fix_ops_cnt": 5, "bug_source_code": " 0, \"e\" => 0, \"l\" => 0, \"o\" => 0);\n foreach ($parsed_chars as $pchar) {\n if ($pchar == 'h' && $got_h == 0) {\n //echo \"found first h\\n\";\n $got_h = 1;\n $got_e = 0;\n $got_l = 0;\n $got_l2 = 0;\n $got_o = 0;\n }\n\n if ($pchar == 'e' && $got_h && !$got_e) {\n //echo \"found first e\\n\";\n $got_e = 1;\n }\n\n if ($pchar == 'l' && $got_h && $got_e && !$got_l){\n //echo \"found first l\\n\";\n $got_l = 1;\n }\n\n if ($pchar == 'l' && $got_h && $got_e && $got_l && !$got_l2) {\n //echo \"found second l\\n\";\n $got_l2 = 1;\n }\n\n if ($pchar == 'o' && $got_h && $got_e && $got_l && $got_l2 && !$got_o) {\n //echo \"found first o\\n\";\n $got_o = 1;\n }\n }\n\n if ($got_h && $got_e && $got_l && $got_l2 && $got_o) {\n echo \"YES\";\n }\n else {\n echo \"NO\";\n }\n}\n?>\n", "lang": "PHP", "bug_code_uid": "4b3b81f41ed337946bc44f9c55e2ee6b", "src_uid": "c5d19dc8f2478ee8d9cba8cc2e4cd838", "apr_id": "6ac206a288cdad083c9034972d614387", "difficulty": 1000, "tags": ["strings", "greedy"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "insert", "lang_cluster": "PHP"} {"similarity_score": 0.9175257731958762, "equal_cnt": 3, "replace_cnt": 0, "delete_cnt": 0, "insert_cnt": 2, "fix_ops_cnt": 2, "bug_source_code": "", "lang": "PHP", "bug_code_uid": "f0a341f8a41b85f900d61ae164e3d641", "src_uid": "c5d19dc8f2478ee8d9cba8cc2e4cd838", "apr_id": "2f882c584cb770f025792ae79c388445", "difficulty": 1000, "tags": ["strings", "greedy"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "replace", "lang_cluster": "PHP"} {"similarity_score": 0.869281045751634, "equal_cnt": 9, "replace_cnt": 1, "delete_cnt": 3, "insert_cnt": 4, "fix_ops_cnt": 8, "bug_source_code": "", "lang": "PHP", "bug_code_uid": "1ce2471f88a360d5a832f58dff3047b9", "src_uid": "c5d19dc8f2478ee8d9cba8cc2e4cd838", "apr_id": "0a9983df37fcc54deb65faa0b4732bd3", "difficulty": 1000, "tags": ["strings", "greedy"], "bug_exec_outcome": "COMPILATION_ERROR", "potential_dominant_fix_op": "replace", "lang_cluster": "PHP"} {"similarity_score": 0.9197860962566845, "equal_cnt": 8, "replace_cnt": 1, "delete_cnt": 4, "insert_cnt": 2, "fix_ops_cnt": 7, "bug_source_code": "", "lang": "PHP", "bug_code_uid": "2a00c50ad348b2b018d85e98c57420e2", "src_uid": "c5d19dc8f2478ee8d9cba8cc2e4cd838", "apr_id": "0a9983df37fcc54deb65faa0b4732bd3", "difficulty": 1000, "tags": ["strings", "greedy"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "delete", "lang_cluster": "PHP"} {"similarity_score": 0.7228381374722838, "equal_cnt": 3, "replace_cnt": 1, "delete_cnt": 1, "insert_cnt": 0, "fix_ops_cnt": 2, "bug_source_code": "\n", "lang": "PHP", "bug_code_uid": "4ec5f061b41f0509ec4f31f6771e7cd4", "src_uid": "c5d19dc8f2478ee8d9cba8cc2e4cd838", "apr_id": "a4af6956facbd04f031bf768a989b366", "difficulty": 1000, "tags": ["strings", "greedy"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "replace", "lang_cluster": "PHP"} {"similarity_score": 0.7366071428571429, "equal_cnt": 2, "replace_cnt": 1, "delete_cnt": 0, "insert_cnt": 0, "fix_ops_cnt": 1, "bug_source_code": "", "lang": "PHP", "bug_code_uid": "f5d1eee84b4b64f93ada164d0fc43623", "src_uid": "c5d19dc8f2478ee8d9cba8cc2e4cd838", "apr_id": "a4af6956facbd04f031bf768a989b366", "difficulty": 1000, "tags": ["strings", "greedy"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "replace", "lang_cluster": "PHP"} {"similarity_score": 0.9173789173789174, "equal_cnt": 5, "replace_cnt": 3, "delete_cnt": 1, "insert_cnt": 0, "fix_ops_cnt": 4, "bug_source_code": "", "lang": "PHP", "bug_code_uid": "91c72dec3ab27a6e418efaa5b28a6794", "src_uid": "c5d19dc8f2478ee8d9cba8cc2e4cd838", "apr_id": "b5fc6c6cf0270225e4754ec79d5ad6c2", "difficulty": 1000, "tags": ["strings", "greedy"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "replace", "lang_cluster": "PHP"} {"similarity_score": 0.4170731707317073, "equal_cnt": 13, "replace_cnt": 9, "delete_cnt": 0, "insert_cnt": 4, "fix_ops_cnt": 13, "bug_source_code": "= 4) {\n\tprintf(\"YES\");\n}else{\n\tprintf(\"NO\");\n}", "lang": "PHP", "bug_code_uid": "3a9d4a7a05f614026ef97c7181f877ab", "src_uid": "c5d19dc8f2478ee8d9cba8cc2e4cd838", "apr_id": "86469f2c0fc8fe86612541816832897e", "difficulty": 1000, "tags": ["strings", "greedy"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "replace", "lang_cluster": "PHP"} {"similarity_score": 0.4962121212121212, "equal_cnt": 6, "replace_cnt": 5, "delete_cnt": 0, "insert_cnt": 0, "fix_ops_cnt": 5, "bug_source_code": " 0) {\n $arr = str_split($str);\n $unique_arr = array_unique($arr);\n $unique_str = implode('', $unique_arr);\n if (preg_match('/helo/', $unique_str)) {\n echo \"YES\\n\";\n } else {\n echo \"NO\\n\";\n }\n}\n", "lang": "PHP", "bug_code_uid": "a5954ee42ebb90e76edc596de575f6f5", "src_uid": "c5d19dc8f2478ee8d9cba8cc2e4cd838", "apr_id": "9deb68cfacbdfc36f85eef2a9e93a8b6", "difficulty": 1000, "tags": ["strings", "greedy"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "replace", "lang_cluster": "PHP"} {"similarity_score": 0.6586666666666666, "equal_cnt": 7, "replace_cnt": 2, "delete_cnt": 4, "insert_cnt": 0, "fix_ops_cnt": 6, "bug_source_code": " substr_count($s, 'SF') ? 'YES' : 'NO';", "lang": "PHP", "bug_code_uid": "daf2215bc5439394949cdadf9e4692bd", "src_uid": "ab8a2070ea758d118b3c09ee165d9517", "apr_id": "849ef5c68b5dd38e42262ac85632c0f4", "difficulty": 800, "tags": ["implementation"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "delete", "lang_cluster": "PHP"} {"similarity_score": 0.6232558139534884, "equal_cnt": 15, "replace_cnt": 9, "delete_cnt": 1, "insert_cnt": 4, "fix_ops_cnt": 14, "bug_source_code": "", "lang": "PHP", "bug_code_uid": "82ecf91d13322b392c5e54946d9aad44", "src_uid": "1c80040104e06c9f24abfcfe654a851f", "apr_id": "f9fab45da3f8f7e5de913794f62457bd", "difficulty": 1200, "tags": ["number theory", "math", "implementation"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "replace", "lang_cluster": "PHP"} {"similarity_score": 0.8599167822468793, "equal_cnt": 2, "replace_cnt": 0, "delete_cnt": 0, "insert_cnt": 1, "fix_ops_cnt": 1, "bug_source_code": "", "lang": "PHP", "bug_code_uid": "7d844c3cb691232384817c2294e5ff67", "src_uid": "d3c10d1b1a17ad018359e2dab80d2b82", "apr_id": "01dbc92fe3351c67ce025abce6cf8e65", "difficulty": 1100, "tags": ["greedy"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "insert", "lang_cluster": "PHP"} {"similarity_score": 0.5581176470588235, "equal_cnt": 11, "replace_cnt": 6, "delete_cnt": 2, "insert_cnt": 2, "fix_ops_cnt": 10, "bug_source_code": " $point[3][1]) && ($point[5][1] < $point[6][1] && $point[6][1] < $point[7][1]);\n\n\n$vertical = ($point[0][0] < $point[3][0] && $point[3][0] < $point[5][0]) && ($point[6][0] > $point[1][0]) && ($point[2][0] < $point[4][0] && $point[4][0] < $point[7][0]);\n\nif ($horizon && $vertical) {\n echo 'respectable';\n} else {\n echo 'ugly';\n}\n\nfunction cmpPoint($x, $y)\n{\n if ($x[0] == $y[0]) {\n if ($x[1] == $y[1]) {\n return 0;\n }\n return ($x[1] < $y[1]) ? -1 : 1;\n } elseif ($x[0] < $y[0]) {\n return -1;\n } else {\n return 1;\n }\n}", "lang": "PHP", "bug_code_uid": "b734886f437a52865a3f3f7abe17ba2f", "src_uid": "f3c96123334534056f26b96f90886807", "apr_id": "631045a2678da16b2d707d96da169478", "difficulty": 1400, "tags": ["sortings"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "replace", "lang_cluster": "PHP"} {"similarity_score": 0.3575883575883576, "equal_cnt": 8, "replace_cnt": 6, "delete_cnt": 0, "insert_cnt": 1, "fix_ops_cnt": 7, "bug_source_code": "", "lang": "PHP", "bug_code_uid": "0fdc019a1200cf8afa2661e1fde7c1c3", "src_uid": "7bffa6e8d2d21bbb3b7f4aec109b3319", "apr_id": "d3bae4f189512df743559829b3f91f71", "difficulty": 800, "tags": ["math", "sortings", "implementation"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "replace", "lang_cluster": "PHP"} {"similarity_score": 0.9726918075422627, "equal_cnt": 2, "replace_cnt": 0, "delete_cnt": 1, "insert_cnt": 0, "fix_ops_cnt": 1, "bug_source_code": " $sNum) {\n echo \"NO\", PHP_EOL;die;\n }\n}\necho \"YES\", PHP_EOL;\n", "lang": "PHP", "bug_code_uid": "c40c38a07284a47d232c2d019231c3c5", "src_uid": "ceb3807aaffef60bcdbcc9a17a1391be", "apr_id": "0ad7c1439cc9c1b3e2f54327daa8bbb7", "difficulty": 900, "tags": ["brute force", "implementation"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "delete", "lang_cluster": "PHP"} {"similarity_score": 0.8748538011695907, "equal_cnt": 5, "replace_cnt": 0, "delete_cnt": 3, "insert_cnt": 1, "fix_ops_cnt": 4, "bug_source_code": "", "lang": "PHP", "bug_code_uid": "17e07cc36b261a27cbdeb7f831dcb570", "src_uid": "3c4b2d1c9440515bc3002eddd2b89f6f", "apr_id": "997c8c316ce0e697948fa2f411fa17f2", "difficulty": 1100, "tags": ["greedy", "sortings"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "delete", "lang_cluster": "PHP"} {"similarity_score": 0.38997214484679665, "equal_cnt": 4, "replace_cnt": 2, "delete_cnt": 1, "insert_cnt": 0, "fix_ops_cnt": 3, "bug_source_code": "", "lang": "PHP", "bug_code_uid": "4898f73b525987d6281a626f80381a3e", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "049aeb9badd2c37840968a8ceea35e2b", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "COMPILATION_ERROR", "potential_dominant_fix_op": "replace", "lang_cluster": "PHP"} {"similarity_score": 0.6911764705882353, "equal_cnt": 5, "replace_cnt": 2, "delete_cnt": 0, "insert_cnt": 2, "fix_ops_cnt": 4, "bug_source_code": "", "lang": "PHP", "bug_code_uid": "c3acd267a979c33fc23b284275869d0c", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "049aeb9badd2c37840968a8ceea35e2b", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "replace", "lang_cluster": "PHP"} {"similarity_score": 0.625, "equal_cnt": 6, "replace_cnt": 0, "delete_cnt": 2, "insert_cnt": 5, "fix_ops_cnt": 7, "bug_source_code": " \necho ($w%2 == 0)? 'YES':'NO';\n", "lang": "PHP", "bug_code_uid": "8a3078f2d9ed33877f04fb3822d5c77e", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "7f707ce23d53dd395f814aefc5715f96", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "insert", "lang_cluster": "PHP"} {"similarity_score": 0.8795811518324608, "equal_cnt": 7, "replace_cnt": 0, "delete_cnt": 1, "insert_cnt": 5, "fix_ops_cnt": 6, "bug_source_code": " 2 && $input % 2) ? 'NO' : 'YES';", "lang": "PHP", "bug_code_uid": "ea06bcc11612166f612e40f91b874e30", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "6e7f06a77d34fa8d6a40ca0645c67d5d", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "insert", "lang_cluster": "PHP"} {"similarity_score": 0.970873786407767, "equal_cnt": 1, "replace_cnt": 0, "delete_cnt": 0, "insert_cnt": 1, "fix_ops_cnt": 1, "bug_source_code": "$line = (int) readline();\n \nif ($line%2 == 0 && $line>2) {\n echo 'YES';\n} else {\n echo 'NO';\n}", "lang": "PHP", "bug_code_uid": "72fa27d543fb08854c93531edd674227", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "6b5ffd84b69d52c7f21c5c213a4cf125", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "insert", "lang_cluster": "PHP"} {"similarity_score": 0.9723756906077348, "equal_cnt": 3, "replace_cnt": 2, "delete_cnt": 0, "insert_cnt": 0, "fix_ops_cnt": 2, "bug_source_code": " 2) {\n echo 'YES';\n} else {\n echo 'NO';\n}", "lang": "PHP", "bug_code_uid": "832519c7a0a1ccad1dbc57e3dd8b8a54", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "6b5ffd84b69d52c7f21c5c213a4cf125", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "RUNTIME_ERROR", "potential_dominant_fix_op": "replace", "lang_cluster": "PHP"} {"similarity_score": 0.848314606741573, "equal_cnt": 3, "replace_cnt": 0, "delete_cnt": 0, "insert_cnt": 2, "fix_ops_cnt": 2, "bug_source_code": "", "lang": "PHP", "bug_code_uid": "0e36dd00c9795bbb48eb7b41e861ffd7", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "b1574c1ba8dde094ff6b5e6bd9654da4", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "insert", "lang_cluster": "PHP"} {"similarity_score": 0.8166089965397924, "equal_cnt": 2, "replace_cnt": 0, "delete_cnt": 0, "insert_cnt": 1, "fix_ops_cnt": 1, "bug_source_code": "", "lang": "PHP", "bug_code_uid": "60a3706cca2ee75c554ef7cbf3cfc57d", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "b1574c1ba8dde094ff6b5e6bd9654da4", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "insert", "lang_cluster": "PHP"} {"similarity_score": 0.9512195121951219, "equal_cnt": 4, "replace_cnt": 2, "delete_cnt": 0, "insert_cnt": 1, "fix_ops_cnt": 3, "bug_source_code": "", "lang": "PHP", "bug_code_uid": "3a3a5eed058fcda02d75d0d1d812a698", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "20bba851509151f9040b300254bbd956", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "insert", "lang_cluster": "PHP"} {"similarity_score": 0.8701298701298701, "equal_cnt": 6, "replace_cnt": 4, "delete_cnt": 1, "insert_cnt": 2, "fix_ops_cnt": 7, "bug_source_code": "fscanf(STDIN, \"%d\", $n);\nif($n==2 || $n%2==1) echo \"NO\";\nelse echo=\"YES\";", "lang": "PHP", "bug_code_uid": "3b869e6e7d788f77dc113e00f50a9ee5", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "9bc1017fdc4845c948cd42c758e36e68", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "replace", "lang_cluster": "PHP"} {"similarity_score": 0.7407407407407407, "equal_cnt": 7, "replace_cnt": 3, "delete_cnt": 2, "insert_cnt": 1, "fix_ops_cnt": 6, "bug_source_code": "2 && $w%2==0) echo \"YES\";\nelse echo=\"NO\";\n?>", "lang": "PHP", "bug_code_uid": "493764954615eb4fdac721c7979aaded", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "9bc1017fdc4845c948cd42c758e36e68", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "COMPILATION_ERROR", "potential_dominant_fix_op": "replace", "lang_cluster": "PHP"} {"similarity_score": 0.9642857142857143, "equal_cnt": 2, "replace_cnt": 0, "delete_cnt": 0, "insert_cnt": 1, "fix_ops_cnt": 1, "bug_source_code": " 2 && $num % 2 === 0) ? true : false;\necho ($b === true ? \"YES\\n\" : \"NO\\n\");\n}", "lang": "PHP", "bug_code_uid": "ad3537a65467eea69c364f0caa0bd71d", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "29ce063ecfa8eb151f2803476120ebbe", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "insert", "lang_cluster": "PHP"} {"similarity_score": 0.16968011126564672, "equal_cnt": 11, "replace_cnt": 9, "delete_cnt": 1, "insert_cnt": 0, "fix_ops_cnt": 10, "bug_source_code": "getMessage()); \n\t\t }\n\t \t} \n\t \treturn self::$cont;\n\t\t}\n\t\t\n\t\tpublic static function disconnect() {\n\t\t\tself::$cont = null;\n\t\t}\n\t}\n\t$a=fgets(STDIN);\n\techo$a&1|$a==2?'NO':'YES';\n\t$pdo = Database::connect();\n\t$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n\t$sql = \"INSERT INTO `Prueba`(`intento`, `input`, `answer`) VALUES (null,?,?)\";\n\t$q = $pdo->prepare($sql);\n\t$q->execute(array($a,a&1|$a==2?'NO':'YES'));\n?>", "lang": "PHP", "bug_code_uid": "0973b7a6e88474aedf35c5d597d58c89", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "4105ef25b1042e5af366a79e8a9804a5", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "replace", "lang_cluster": "PHP"} {"similarity_score": 0.16944444444444445, "equal_cnt": 11, "replace_cnt": 9, "delete_cnt": 1, "insert_cnt": 0, "fix_ops_cnt": 10, "bug_source_code": "getMessage()); \n\t\t }\n\t \t} \n\t \treturn self::$cont;\n\t\t}\n\t\t\n\t\tpublic static function disconnect() {\n\t\t\tself::$cont = null;\n\t\t}\n\t}\n\t$w=fgets(STDIN);\n\t$ans = ($w%2==1||$w<4)?'NO':'YES'\n\techo $ans;\n\t$pdo = Database::connect();\n\t$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n\t$sql = \"INSERT INTO `Prueba`(`intento`, `input`, `answer`) VALUES (null,?,?)\";\n\t$q = $pdo->prepare($sql);\n\t$q->execute(array($w,$ans);\n?>", "lang": "PHP", "bug_code_uid": "b959e8d976c45d247b215356dbb19e5e", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "4105ef25b1042e5af366a79e8a9804a5", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "COMPILATION_ERROR", "potential_dominant_fix_op": "replace", "lang_cluster": "PHP"} {"similarity_score": 0.9936708860759493, "equal_cnt": 3, "replace_cnt": 0, "delete_cnt": 0, "insert_cnt": 2, "fix_ops_cnt": 2, "bug_source_code": "query($sql);\n\t$mysqli->close();\n\techo $ans;\n?>", "lang": "PHP", "bug_code_uid": "8d89ee797ab6dd1e92eef6e960e76906", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "4105ef25b1042e5af366a79e8a9804a5", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "RUNTIME_ERROR", "potential_dominant_fix_op": "insert", "lang_cluster": "PHP"} {"similarity_score": 0.9528301886792453, "equal_cnt": 3, "replace_cnt": 0, "delete_cnt": 2, "insert_cnt": 0, "fix_ops_cnt": 2, "bug_source_code": " 2)\n\t\techo $cin.\"YES\\n\";\n\telse\n\t\techo $cin.\"NO\\n\";", "lang": "PHP", "bug_code_uid": "12c84cc7a74f2da8054fd8570a5556ec", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "71ae5b8bfbf6aeda21b61322407c48a7", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "delete", "lang_cluster": "PHP"} {"similarity_score": 0.9878048780487805, "equal_cnt": 3, "replace_cnt": 0, "delete_cnt": 1, "insert_cnt": 1, "fix_ops_cnt": 2, "bug_source_code": " 2 ? \"YES\": \"NO\");", "lang": "PHP", "bug_code_uid": "8a6bceb51c55bf20aac82c33e842db7c", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "71ae5b8bfbf6aeda21b61322407c48a7", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "delete", "lang_cluster": "PHP"} {"similarity_score": 0.5764705882352941, "equal_cnt": 18, "replace_cnt": 4, "delete_cnt": 6, "insert_cnt": 7, "fix_ops_cnt": 17, "bug_source_code": "Scan();\nif($n % 2 == 0)\n echo \"YES\";\nelse\n echo \"NO\";\n$Scanner->close();\n\n}\n\nfunction run(){\n\nsolve();\n\n}\n\nrun();\n?>", "lang": "PHP", "bug_code_uid": "eb3562f438d16ed5186a7c1d6cd126b1", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "1e688b751ac455fb1cc61582eb7e20b5", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "RUNTIME_ERROR", "potential_dominant_fix_op": "insert", "lang_cluster": "PHP"} {"similarity_score": 0.9927536231884058, "equal_cnt": 2, "replace_cnt": 1, "delete_cnt": 0, "insert_cnt": 0, "fix_ops_cnt": 1, "bug_source_code": "", "lang": "PHP", "bug_code_uid": "c76f3d14f413e1a8bd7e7e12f71b4b76", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "1e688b751ac455fb1cc61582eb7e20b5", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "replace", "lang_cluster": "PHP"} {"similarity_score": 0.7107438016528925, "equal_cnt": 4, "replace_cnt": 1, "delete_cnt": 0, "insert_cnt": 2, "fix_ops_cnt": 3, "bug_source_code": " $d) && ($g <= $d + $e))\n{\n $h = $d + $e;\n $i = $h - $g;\n print number_format(($a / $c) + $i, 8, \".\", \"\");\n}\nelseif($g > ($d + $e))\n{\n $h = $g % ($d + $e);\n print number_format(($a / $c) + $h, 8, \".\", \"\");\n}\n?>", "lang": "PHP", "bug_code_uid": "9de7d03c352c7c06edf01ae2d6b17497", "src_uid": "e4a4affb439365c843c9f9828d81b42c", "apr_id": "e57dd7fa8dc7296acbe7674380d469d0", "difficulty": 1500, "tags": ["implementation"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "insert", "lang_cluster": "PHP"} {"similarity_score": 0.9834087481146304, "equal_cnt": 2, "replace_cnt": 1, "delete_cnt": 0, "insert_cnt": 0, "fix_ops_cnt": 1, "bug_source_code": "", "lang": "PHP", "bug_code_uid": "12dcd8cba69941c3fc174486639c7130", "src_uid": "d6c876a84c7b92141710be5d76536eab", "apr_id": "b77f934584e55c8e2e223210d3cf71b3", "difficulty": 900, "tags": ["brute force", "sortings", "implementation"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "replace", "lang_cluster": "PHP"} {"similarity_score": 0.9096296296296297, "equal_cnt": 2, "replace_cnt": 0, "delete_cnt": 0, "insert_cnt": 1, "fix_ops_cnt": 1, "bug_source_code": "", "lang": "PHP", "bug_code_uid": "5c34038e804cbdcca66a6b1a9f1f8d5a", "src_uid": "d6c876a84c7b92141710be5d76536eab", "apr_id": "7f71ce579838a1e783654050f9a80cc7", "difficulty": 900, "tags": ["brute force", "sortings", "implementation"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "insert", "lang_cluster": "PHP"} {"similarity_score": 0.9993178717598908, "equal_cnt": 2, "replace_cnt": 1, "delete_cnt": 0, "insert_cnt": 0, "fix_ops_cnt": 1, "bug_source_code": "", "lang": "PHP", "bug_code_uid": "d3d20e0732fc4d0950c6e791d22933bd", "src_uid": "7dbf58806db185f0fe70c00b60973f4b", "apr_id": "6873e223f5efd13dfe2bef85c2215ff2", "difficulty": 1100, "tags": ["graphs", "math", "shortest paths"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "replace", "lang_cluster": "PHP"} {"similarity_score": 0.9491525423728814, "equal_cnt": 4, "replace_cnt": 2, "delete_cnt": 1, "insert_cnt": 0, "fix_ops_cnt": 3, "bug_source_code": "\n\n\n", "lang": "PHP", "bug_code_uid": "153cb80209787618eaa5ece4bffaefbb", "src_uid": "775766790e91e539c1cfaa5030e5b955", "apr_id": "b35af1e9d26988da75e26294cf5e9909", "difficulty": 800, "tags": ["math", "implementation"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "replace", "lang_cluster": "PHP"} {"similarity_score": 0.3107913669064748, "equal_cnt": 16, "replace_cnt": 7, "delete_cnt": 5, "insert_cnt": 3, "fix_ops_cnt": 15, "bug_source_code": "0) $res+=1;\necho $res;\n?>", "lang": "PHP", "bug_code_uid": "2444af8aec7b15920d3faab64291919e", "src_uid": "775766790e91e539c1cfaa5030e5b955", "apr_id": "e7b2719cac1ff39f8e9c46c60102fb0e", "difficulty": 800, "tags": ["math", "implementation"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "replace", "lang_cluster": "PHP"} {"similarity_score": 0.9711538461538461, "equal_cnt": 2, "replace_cnt": 1, "delete_cnt": 0, "insert_cnt": 0, "fix_ops_cnt": 1, "bug_source_code": " 1) && ($mah % 2 != 0));\n if ($mah > 1) {\n $winner = \"Mahmoud\";\n }\n $n = $n-$mah;\n do {\n $ehab = rand(1, $n);\n } while (($n >= 1) && ($ehab % 2 == 0));\n if ($ehab > 0) {\n $winner = \"Ehab\";\n }\n $n = $n-$ehab;\n $mah = 0;\n $ehab = 0;\n}\necho $winner;\n\n?>", "lang": "PHP", "bug_code_uid": "27eb8ba1725d1744399e15639bf5bf48", "src_uid": "5e74750f44142624e6da41d4b35beb9a", "apr_id": "42d082ee3e5e2618a5c47fb8d59a2e52", "difficulty": 800, "tags": ["math", "games"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "delete", "lang_cluster": "PHP"} {"similarity_score": 0.9433962264150944, "equal_cnt": 3, "replace_cnt": 1, "delete_cnt": 0, "insert_cnt": 1, "fix_ops_cnt": 2, "bug_source_code": "\n", "lang": "PHP", "bug_code_uid": "be12679a85384a74fb341e6f1e1838d7", "src_uid": "5e74750f44142624e6da41d4b35beb9a", "apr_id": "04431136724ffde78ddfe02ef7c9fb8b", "difficulty": 800, "tags": ["math", "games"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "replace", "lang_cluster": "PHP"} {"similarity_score": 0.19858156028368795, "equal_cnt": 7, "replace_cnt": 6, "delete_cnt": 0, "insert_cnt": 1, "fix_ops_cnt": 7, "bug_source_code": "", "lang": "PHP", "bug_code_uid": "7e7c2c842ac5ed7a5a6c6dce4a5c13f9", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "319a192255233cef12e9d9d58e0dd07d", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "COMPILATION_ERROR", "potential_dominant_fix_op": "insert", "lang_cluster": "PHP"} {"similarity_score": 0.9933333333333333, "equal_cnt": 3, "replace_cnt": 0, "delete_cnt": 0, "insert_cnt": 2, "fix_ops_cnt": 2, "bug_source_code": "", "lang": "PHP", "bug_code_uid": "53d10b52b01999b8253d47978c5d2173", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "319a192255233cef12e9d9d58e0dd07d", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "insert", "lang_cluster": "PHP"} {"similarity_score": 0.9799196787148594, "equal_cnt": 2, "replace_cnt": 0, "delete_cnt": 1, "insert_cnt": 0, "fix_ops_cnt": 1, "bug_source_code": "", "lang": "PHP", "bug_code_uid": "8f3b2e4a24578a8fbb43a843672d7143", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "d18d2b7c312221e039323d11de1cce06", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "delete", "lang_cluster": "PHP"} {"similarity_score": 0.9728506787330317, "equal_cnt": 4, "replace_cnt": 1, "delete_cnt": 2, "insert_cnt": 1, "fix_ops_cnt": 4, "bug_source_code": "= 1 && $dataP <= 100){\n $weight = $dataP;\n}\n\nif($weight % 2 == 0 && $weight % 2 != 1){\n echo('YES');\n}else{\n echo('NO');\n}", "lang": "PHP", "bug_code_uid": "62a484a94dcdecdc3c7fe818754647db", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "655c64ed7eb5f1f8e9e4b26e4d55ce06", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "delete", "lang_cluster": "PHP"} {"similarity_score": 0.6054421768707483, "equal_cnt": 16, "replace_cnt": 8, "delete_cnt": 6, "insert_cnt": 1, "fix_ops_cnt": 15, "bug_source_code": " 2 && $watermelon % 2 != 0) {\n\t$query = \"NO\";\n} \n\necho $query;\n\n?>", "lang": "PHP", "bug_code_uid": "1b664d2ae958e0beac109e11486d854c", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "11a832d49704ef7148c9baa6cf2bb04c", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "replace", "lang_cluster": "PHP"} {"similarity_score": 0.9726775956284153, "equal_cnt": 4, "replace_cnt": 2, "delete_cnt": 1, "insert_cnt": 0, "fix_ops_cnt": 3, "bug_source_code": "= 1 && $M <= 100 && $M % 4 === 0 ? 'YES' : 'NO';\n", "lang": "PHP", "bug_code_uid": "47e30a1887259e4196be844dfd6ab10d", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "dfe71cfbfe1b435245468d4a4631eb8f", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "replace", "lang_cluster": "PHP"} {"similarity_score": 0.8243243243243243, "equal_cnt": 6, "replace_cnt": 4, "delete_cnt": 0, "insert_cnt": 1, "fix_ops_cnt": 5, "bug_source_code": "= 2)\necho \"YES\";\nelse\necho \"NO\";\n?>", "lang": "PHP", "bug_code_uid": "94e3ca46eef1c3ac96d5a506ad1562b1", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "c09f22c357e6f6e6345eb536420c8897", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "replace", "lang_cluster": "PHP"} {"similarity_score": 0.9896907216494846, "equal_cnt": 3, "replace_cnt": 0, "delete_cnt": 0, "insert_cnt": 2, "fix_ops_cnt": 2, "bug_source_code": "", "lang": "PHP", "bug_code_uid": "87cdd7af5692bc483d7824f2e6cd019d", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "cc18ac22a5e59d793dc125282686a835", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "insert", "lang_cluster": "PHP"} {"similarity_score": 0.8333333333333334, "equal_cnt": 14, "replace_cnt": 4, "delete_cnt": 6, "insert_cnt": 3, "fix_ops_cnt": 13, "bug_source_code": "", "lang": "PHP", "bug_code_uid": "f0d8d7f254a81176a6981a93cdf09410", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "c001fc0fc299d9767646b1aecfd559b8", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "delete", "lang_cluster": "PHP"} {"similarity_score": 0.5837837837837838, "equal_cnt": 7, "replace_cnt": 2, "delete_cnt": 2, "insert_cnt": 2, "fix_ops_cnt": 6, "bug_source_code": "", "lang": "PHP", "bug_code_uid": "278ac7581d183437eae1d9606725a5ca", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "27eb9a8a08cfa7f26dd9bbb16b2213e0", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "COMPILATION_ERROR", "potential_dominant_fix_op": "replace", "lang_cluster": "PHP"} {"similarity_score": 0.9456521739130435, "equal_cnt": 4, "replace_cnt": 1, "delete_cnt": 1, "insert_cnt": 1, "fix_ops_cnt": 3, "bug_source_code": "", "lang": "PHP", "bug_code_uid": "ad70cf88a54ab66c6c5c320e563f43f9", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "27eb9a8a08cfa7f26dd9bbb16b2213e0", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "replace", "lang_cluster": "PHP"} {"similarity_score": 0.47783251231527096, "equal_cnt": 6, "replace_cnt": 4, "delete_cnt": 0, "insert_cnt": 1, "fix_ops_cnt": 5, "bug_source_code": "\n\n\n", "lang": "PHP", "bug_code_uid": "9203696d11ee5ce858344c22635289d5", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "2f5ac3913e32792e83377c5988ce168f", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "replace", "lang_cluster": "PHP"} {"similarity_score": 0.8761061946902655, "equal_cnt": 3, "replace_cnt": 2, "delete_cnt": 0, "insert_cnt": 0, "fix_ops_cnt": 2, "bug_source_code": " 2)\n{\n echo \"YES\";\n}\nelse\n{\n echo \"NO\";\n}\n\n?>", "lang": "PHP", "bug_code_uid": "cfb54acc50562424961d505a6ca11632", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "de5c22ea3f1b4426e2aaf113a58e9915", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "replace", "lang_cluster": "PHP"} {"similarity_score": 0.25487256371814093, "equal_cnt": 10, "replace_cnt": 3, "delete_cnt": 8, "insert_cnt": 0, "fix_ops_cnt": 11, "bug_source_code": "\n\n\n \n \n \n Document\n\n\n
\n
\n \n
\n 2)\n{\n echo \"YES\";\n}\nelse\n{\n echo \"NO\";\n}\n\n?>\n\n", "lang": "PHP", "bug_code_uid": "469e9e1019ce8ccb3f3789168c0f4a34", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "de5c22ea3f1b4426e2aaf113a58e9915", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "delete", "lang_cluster": "PHP"} {"similarity_score": 0.7674418604651163, "equal_cnt": 6, "replace_cnt": 2, "delete_cnt": 0, "insert_cnt": 4, "fix_ops_cnt": 6, "bug_source_code": "", "lang": "PHP", "bug_code_uid": "96dad2c7e7e9ccdb4280bc7c7d8350a2", "src_uid": "8b26ca1ca2b28166c3d25dceb1f3d49f", "apr_id": "36ec94cd338902881c1872ee63f8f096", "difficulty": null, "tags": ["implementation", "two pointers"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "delete", "lang_cluster": "PHP"} {"similarity_score": 0.9930458970792768, "equal_cnt": 2, "replace_cnt": 1, "delete_cnt": 0, "insert_cnt": 0, "fix_ops_cnt": 1, "bug_source_code": "", "lang": "PHP", "bug_code_uid": "283464ff3a1016303b9634d85cd2e281", "src_uid": "60dbfc7a65702ae8bd4a587db1e06398", "apr_id": "db0b8d9107bff5d42d41814842d1e9a0", "difficulty": 1400, "tags": ["greedy", "math", "sortings"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "replace", "lang_cluster": "PHP"} {"similarity_score": 0.9986893840104849, "equal_cnt": 2, "replace_cnt": 1, "delete_cnt": 0, "insert_cnt": 0, "fix_ops_cnt": 1, "bug_source_code": "= 0; $i--) { \n\t\t\t echo $array[$i];\n\t}\n?>", "lang": "PHP", "bug_code_uid": "acefcbc892b5a4d5e9690b7c5cfbd03e", "src_uid": "60dbfc7a65702ae8bd4a587db1e06398", "apr_id": "aaf93d5724572fd80a4495b2b812d6d0", "difficulty": 1400, "tags": ["greedy", "math", "sortings"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "replace", "lang_cluster": "PHP"} {"similarity_score": 0.5168539325842697, "equal_cnt": 10, "replace_cnt": 7, "delete_cnt": 1, "insert_cnt": 1, "fix_ops_cnt": 9, "bug_source_code": " 0){\n $result = false;\n break;\n }\n}\n\n$stdout = fopen('php://stdout', 'w');\nfwrite($stdout, ($result ? \"YES\" : \"NO\"));\nfclose($stdout);", "lang": "PHP", "bug_code_uid": "81f6a0b20290fcd7218c625bba2d9cdf", "src_uid": "ceb3807aaffef60bcdbcc9a17a1391be", "apr_id": "0d459efb7d3adfededcc6c84e23c71de", "difficulty": 900, "tags": ["brute force", "implementation"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "replace", "lang_cluster": "PHP"} {"similarity_score": 0.5106382978723404, "equal_cnt": 18, "replace_cnt": 10, "delete_cnt": 3, "insert_cnt": 4, "fix_ops_cnt": 17, "bug_source_code": "", "lang": "PHP", "bug_code_uid": "105120750db80b71bb3a7265b35308d0", "src_uid": "3ff1c25a1026c90aeb14d148d7fb96ba", "apr_id": "f802fb1430b0b038e63b8f1d8f87b78a", "difficulty": 1200, "tags": ["math", "brute force", "number theory"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "replace", "lang_cluster": "PHP"} {"similarity_score": 0.7387862796833773, "equal_cnt": 8, "replace_cnt": 4, "delete_cnt": 2, "insert_cnt": 2, "fix_ops_cnt": 8, "bug_source_code": "", "lang": "PHP", "bug_code_uid": "25dd2846e5cad63c8fab7b7d2608a8ff", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "613949245c5c0b86a46ce95ee86ca2a3", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "replace", "lang_cluster": "PHP"} {"similarity_score": 0.9634703196347032, "equal_cnt": 2, "replace_cnt": 0, "delete_cnt": 0, "insert_cnt": 1, "fix_ops_cnt": 1, "bug_source_code": "", "lang": "PHP", "bug_code_uid": "b11e465418e3a8d68fd24803d5a8f8ed", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "8ff13358a108a03f7744df172faec618", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "insert", "lang_cluster": "PHP"} {"similarity_score": 0.9375, "equal_cnt": 3, "replace_cnt": 1, "delete_cnt": 0, "insert_cnt": 1, "fix_ops_cnt": 2, "bug_source_code": "", "lang": "PHP", "bug_code_uid": "a7e011c8c1b796820bc7fb3b311d2e6f", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "82cc88c5e91af6ecdf86c0fa9bc23042", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "delete", "lang_cluster": "PHP"} {"similarity_score": 0.9904761904761905, "equal_cnt": 3, "replace_cnt": 0, "delete_cnt": 0, "insert_cnt": 2, "fix_ops_cnt": 2, "bug_source_code": " 0){\n echo 'YES';\n } else {\n echo 'NO';\n }\n", "lang": "PHP", "bug_code_uid": "e7404ac0a95975dd3dc3491f4f866214", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "8c58eda58164606f6bff976da70cbac8", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "insert", "lang_cluster": "PHP"} {"similarity_score": 0.9111111111111111, "equal_cnt": 3, "replace_cnt": 1, "delete_cnt": 0, "insert_cnt": 1, "fix_ops_cnt": 2, "bug_source_code": " 2 && $w % 2 == 0) echo 'YES';\nelse echo 'NO';\n?>", "lang": "PHP", "bug_code_uid": "ad83d507c3917efec1aab7646de3d864", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "508847dccc3930bc77ca34a24f0347bc", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "insert", "lang_cluster": "PHP"} {"similarity_score": 0.9940828402366864, "equal_cnt": 2, "replace_cnt": 0, "delete_cnt": 0, "insert_cnt": 1, "fix_ops_cnt": 1, "bug_source_code": " 2 && $w % 2 == 0) echo \"YES\";\n\telse echo \"NO\";\n?>", "lang": "PHP", "bug_code_uid": "315dab72fb0378ca21bb7fa16868780d", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "508847dccc3930bc77ca34a24f0347bc", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "RUNTIME_ERROR", "potential_dominant_fix_op": "insert", "lang_cluster": "PHP"} {"similarity_score": 0.9500860585197934, "equal_cnt": 5, "replace_cnt": 1, "delete_cnt": 0, "insert_cnt": 3, "fix_ops_cnt": 4, "bug_source_code": "= 0; $x--)\n{\n if($b[$x] == \"1\")\n {\n $f++;\n }\n if(($b[$x] == \"1\") && ($e == \"0\"))\n {\n unset($b[$x]);\n }\n else\n {\n $e = 1;\n }\n}\nif($a == $f)\n{\n $f--;\n}\nfor($x = 0; $x < count($b); $x++)\n{\n if($b[$x] == \"0\")\n {\n $c++;\n $d = 1;\n }\n if(($b[$x] == \"1\") && ($d == \"1\"))\n {\n $c--;\n }\n if($c < \"1\")\n {\n $d = 0;\n }\n}\nprint $c + $f;\n?>", "lang": "PHP", "bug_code_uid": "70d69eca91cb775fe73ff45123786a75", "src_uid": "9b543e07e805fe1dd8fa869d5d7c8b99", "apr_id": "7ad88b900331720c0c7ad2bffbd0618e", "difficulty": 1200, "tags": ["dp", "brute force", "implementation"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "insert", "lang_cluster": "PHP"} {"similarity_score": 0.9967320261437909, "equal_cnt": 2, "replace_cnt": 0, "delete_cnt": 1, "insert_cnt": 0, "fix_ops_cnt": 1, "bug_source_code": " $ans) $ans = $t;\n\t}\necho $ans;\n\t\n?>", "lang": "PHP", "bug_code_uid": "06900687337f664dba5b2dd8f11a560e", "src_uid": "9b543e07e805fe1dd8fa869d5d7c8b99", "apr_id": "6c03e6f92d63c81529fc514f3ce6b141", "difficulty": 1200, "tags": ["dp", "brute force", "implementation"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "delete", "lang_cluster": "PHP"} {"similarity_score": 0.9906890130353817, "equal_cnt": 2, "replace_cnt": 1, "delete_cnt": 0, "insert_cnt": 0, "fix_ops_cnt": 1, "bug_source_code": "", "lang": "PHP", "bug_code_uid": "15b6e89a14e8119124295906bd1dc258", "src_uid": "67410b7d36b9d2e6a97ca5c7cff317c1", "apr_id": "44d1e59312d30fcd06b841115679e4d7", "difficulty": 800, "tags": ["math", "implementation"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "replace", "lang_cluster": "PHP"} {"similarity_score": 0.9978858350951374, "equal_cnt": 2, "replace_cnt": 0, "delete_cnt": 0, "insert_cnt": 1, "fix_ops_cnt": 1, "bug_source_code": "", "lang": "PHP", "bug_code_uid": "fcc83d32113a5af6da0e61e0690f6bc8", "src_uid": "67410b7d36b9d2e6a97ca5c7cff317c1", "apr_id": "6767b1c298b188ed7f6e469156463d5e", "difficulty": 800, "tags": ["math", "implementation"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "insert", "lang_cluster": "PHP"} {"similarity_score": 0.9757489300998573, "equal_cnt": 3, "replace_cnt": 1, "delete_cnt": 0, "insert_cnt": 1, "fix_ops_cnt": 2, "bug_source_code": "", "lang": "PHP", "bug_code_uid": "44baec9fc0e16d8b6ff2ce0a6ad5304d", "src_uid": "faa343ad6028c5a069857a38fa19bb24", "apr_id": "7588c13ae2532060c8398d5be6f283e7", "difficulty": 1200, "tags": ["implementation"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "replace", "lang_cluster": "PHP"} {"similarity_score": 0.6313465783664459, "equal_cnt": 4, "replace_cnt": 1, "delete_cnt": 1, "insert_cnt": 1, "fix_ops_cnt": 3, "bug_source_code": "", "lang": "PHP", "bug_code_uid": "36fe1f3758c4508919f08861c4cb1b96", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "8deb08044734a75e3471e662e03ba5d8", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "replace", "lang_cluster": "PHP"} {"similarity_score": 0.9375, "equal_cnt": 2, "replace_cnt": 0, "delete_cnt": 0, "insert_cnt": 1, "fix_ops_cnt": 1, "bug_source_code": "= 1 && $w <= 100)) \n\t\t{\n\t\t\t if($w % 2 == 0)\n\t\t\t { \n\t\t return \"Yes\"; \n \t\t } \n\t\t else{ \n\t\t return \"no\"; \n\t\t\t} \n\t\t}\n\n\t\treturn 'invalid number';\n\t}\n\n$w = intval(readline());\n\necho getWieght($w);\n?>", "lang": "PHP", "bug_code_uid": "e3616d3a2d6271868f885ffc29b87753", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "8e65c6b4f7de9db82ecec4f37d917fe1", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "insert", "lang_cluster": "PHP"} {"similarity_score": 0.6154970760233918, "equal_cnt": 22, "replace_cnt": 13, "delete_cnt": 3, "insert_cnt": 6, "fix_ops_cnt": 22, "bug_source_code": " ceil(($k*($k+1)/2)-$k +1)) {$r = -1;}\n \n else \n {\n while($l<$r)\n {\n $mid = ceil($l + ($r - $l) / 2);\n if ($n <= ceil(($mid*($mid+1)/2)-$mid +1))\n {\n $r = $mid;\n }\n else\n {\n $l = $mid + 1;\n }\n }\n \n }\n if($n==$k) $r = 1;\n // echo ceil($l + ($r - $l) / 2);\n echo $r;\n", "lang": "PHP", "bug_code_uid": "c0e7a2c2af177cd875a145fe20bc29e0", "src_uid": "83bcfe32db302fbae18e8a95d89cf411", "apr_id": "69a01ba07a9c988c097bca83a590a7f9", "difficulty": 1700, "tags": ["math", "binary search"], "bug_exec_outcome": "TIME_LIMIT_EXCEEDED", "potential_dominant_fix_op": "replace", "lang_cluster": "PHP"} {"similarity_score": 0.986198243412798, "equal_cnt": 2, "replace_cnt": 0, "delete_cnt": 0, "insert_cnt": 1, "fix_ops_cnt": 1, "bug_source_code": " ($k+1)/2 * $k+1) {$r = -1; }\n else \n {\n while(($l-$r)<0)\n {\n $mid = floor(($l + $r ) / 2); \n //$Mmid = (($mid*($mid+1)/2)-$mid +1) ; \n $Mmid = ($k+$k -$mid +1)/2 *$mid ; \n if ($n <= $Mmid)\n {\n $r = $mid; \n }\n else\n {\n $l = $mid+1; \n } \n } \n }\n if($n==$k+1) $r = 1;\n // echo $l.PHP_EOL.$r.PHP_EOL;\n\n\n\n\n\n\n echo $r;\n ", "lang": "PHP", "bug_code_uid": "01887dae9914f4b5bbd15a0151e55fce", "src_uid": "83bcfe32db302fbae18e8a95d89cf411", "apr_id": "69a01ba07a9c988c097bca83a590a7f9", "difficulty": 1700, "tags": ["math", "binary search"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "insert", "lang_cluster": "PHP"} {"similarity_score": 0.9680284191829485, "equal_cnt": 6, "replace_cnt": 4, "delete_cnt": 0, "insert_cnt": 1, "fix_ops_cnt": 5, "bug_source_code": "solution($data1, $data2);\n\n// End of interface\n\nclass MainClass {\n\t// 978\u0412.File name\n\t//public $problemLink = 'https://codeforces.com/problemset/problem/978/B';\n\t//public $submissionLink = '';\n\n\tpublic function solution($n, $arrayOfstrings)\n\t{\n\t\t$res=0;\n\t\t$counter=0;\n\t\tforeach ($arrayOfstrings as $value){\n\t\t\tif ($value === 'x'){\n\t\t\t\t$counter++;\n\t\t\t} else {\n\t\t\t\t$counter=0;\n\t\t\t}\n\t\t\tif($counter>2){\n\t\t\t\t$res++;\n\t\t\t}\n\t\t}\n\t\treturn $res;\n\t}\n}\n", "lang": "PHP", "bug_code_uid": "dcd145e29f372b78a1b594419635fe81", "src_uid": "8de14db41d0acee116bd5d8079cb2b02", "apr_id": "72c75788942f32f67dabeada2b5a14be", "difficulty": 800, "tags": ["strings", "greedy"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "replace", "lang_cluster": "PHP"} {"similarity_score": 0.9932203389830508, "equal_cnt": 3, "replace_cnt": 0, "delete_cnt": 2, "insert_cnt": 0, "fix_ops_cnt": 2, "bug_source_code": "= 3)) {\n $contador = $contador - 2;\n }\n\n if (($values[$x] != \"x\") && $aux < 3) {\n $contador = $contador - $aux;\n }\n if (($values[$x] != \"x\")) {\n $aux = 0;\n }\n\n}\nif ($aux < 3 && $values[$longitud - 1] == \"x\") {\n $contador = $contador - $aux;\n}\n\nif ($aux > 3 && $values[$longitud - 1] == \"x\") {\n $contador = $contador - 2;\n}\n\necho $contador;\n", "lang": "PHP", "bug_code_uid": "2640b67cc821562b624c6f6814a4ad41", "src_uid": "8de14db41d0acee116bd5d8079cb2b02", "apr_id": "4b604955eafddc1438b4322eaba5ee61", "difficulty": 800, "tags": ["strings", "greedy"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "insert", "lang_cluster": "PHP"} {"similarity_score": 0.9281767955801105, "equal_cnt": 5, "replace_cnt": 1, "delete_cnt": 2, "insert_cnt": 1, "fix_ops_cnt": 4, "bug_source_code": "", "lang": "PHP", "bug_code_uid": "c812bb8a08c4371c20bb2b59c4f7135e", "src_uid": "8de14db41d0acee116bd5d8079cb2b02", "apr_id": "a51f5965edcc0360dde304fd43f22454", "difficulty": 800, "tags": ["strings", "greedy"], "bug_exec_outcome": "RUNTIME_ERROR", "potential_dominant_fix_op": "delete", "lang_cluster": "PHP"} {"similarity_score": 0.9307479224376731, "equal_cnt": 4, "replace_cnt": 1, "delete_cnt": 1, "insert_cnt": 1, "fix_ops_cnt": 3, "bug_source_code": "", "lang": "PHP", "bug_code_uid": "7f75a70e2e41ad8e2d65bee9cbcbb168", "src_uid": "8de14db41d0acee116bd5d8079cb2b02", "apr_id": "a51f5965edcc0360dde304fd43f22454", "difficulty": 800, "tags": ["strings", "greedy"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "replace", "lang_cluster": "PHP"} {"similarity_score": 0.6763942931258107, "equal_cnt": 50, "replace_cnt": 19, "delete_cnt": 24, "insert_cnt": 6, "fix_ops_cnt": 49, "bug_source_code": " $f)\n{\n $a2 = $a;\n $b2 = $b;\n $c2 = $c;\n $d2 = $d;\n $j = 0;\n while(TRUE)\n {\n $a2 -= ($e - $c2);\n $d2 -= ($b2 - $f);\n if(($a2 > 0) && ($d2 <= 0))\n {\n $j = 1;\n $k = 0;\n break;\n }\n elseif($a2 <= 0)\n {\n break;\n }\n }\n}\nif($j == 1)\n{\n print $k;\n}\nelse\n{\n $l = 0;\n $k = 1000000000;\n if($b <= $f)\n {\n $l = (($f + 1) - $b) * $h;\n $b += ($f + 1) - $b;\n }\n $m = floor(1000 / $g);\n $n = floor(1000 / $h);\n $o = floor(1000 / $i);\n for($x = 0; $x <= $m; $x++)\n {\n for($y = 0; $y <= $n; $y++)\n {\n for($z = 0; $z <= $o; $z++)\n {\n $a2 = $a + $x;\n $b2 = $b + $y;\n $c2 = $c + $z;\n $d2 = $d;\n while(TRUE)\n {\n $a2 -= ($e - $c2);\n $d2 -= ($b2 - $f);\n if(($a2 > 0) && ($d2 <= 0))\n {\n $k = min($k, ($x * $g) + ($y * $h) + ($z * $i));\n break;\n }\n elseif($a2 <= 0)\n {\n break;\n }\n }\n }\n }\n }\n print $k + $l;\n}\n?>", "lang": "PHP", "bug_code_uid": "edd086977fcaf4d615732b8dcd690f5e", "src_uid": "bf8a133154745e64a547de6f31ddc884", "apr_id": "c7186b4f6ba504fa62d97a9432010374", "difficulty": 1800, "tags": ["brute force", "implementation"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "delete", "lang_cluster": "PHP"} {"similarity_score": 0.6913746630727763, "equal_cnt": 38, "replace_cnt": 17, "delete_cnt": 15, "insert_cnt": 5, "fix_ops_cnt": 37, "bug_source_code": " 0) && ($d2 <= 0))\n {\n $j = 1;\n $k = 0;\n break;\n }\n elseif($a2 <= 0)\n {\n break;\n }\n}\nif($j == 1)\n{\n print $k;\n}\nelse\n{\n $l = 0;\n $k = 1000000000;\n if($b <= $f)\n {\n $l = (($f + 1) - $b) * $h;\n $b += ($f + 1) - $b;\n }\n $m = floor(1000 / $g);\n $n = floor(1000 / $h);\n $o = floor(1000 / $i);\n for($x = 0; $x <= $m; $x++)\n {\n for($y = 0; $y <= $n; $y++)\n {\n for($z = 0; $z <= $o; $z++)\n {\n $a2 = $a + $x;\n $b2 = $b + $y;\n $c2 = $c + $z;\n $d2 = $d;\n while(TRUE)\n {\n $a2 -= ($e - $c2);\n $d2 -= ($b2 - $f);\n if(($a2 > 0) && ($d2 <= 0))\n {\n $k = min($k, ($x * $g) + ($y * $h) + ($z * $i));\n break;\n }\n elseif($a2 <= 0)\n {\n break;\n }\n }\n }\n }\n }\n print $k + $l;\n}\n?>", "lang": "PHP", "bug_code_uid": "ea3886b21779ef3b2446030f301d96e2", "src_uid": "bf8a133154745e64a547de6f31ddc884", "apr_id": "c7186b4f6ba504fa62d97a9432010374", "difficulty": 1800, "tags": ["brute force", "implementation"], "bug_exec_outcome": "TIME_LIMIT_EXCEEDED", "potential_dominant_fix_op": "replace", "lang_cluster": "PHP"} {"similarity_score": 0.9283276450511946, "equal_cnt": 2, "replace_cnt": 0, "delete_cnt": 0, "insert_cnt": 1, "fix_ops_cnt": 1, "bug_source_code": "=1 && $str>2) ? \"NO\" : \"YES\");\n?>", "lang": "PHP", "bug_code_uid": "34e0903f83d121d1aa691b7fb7c6f3b1", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "bcea1045b71a0f1a000d8feba8330ae6", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "replace", "lang_cluster": "PHP"} {"similarity_score": 0.968421052631579, "equal_cnt": 2, "replace_cnt": 0, "delete_cnt": 0, "insert_cnt": 1, "fix_ops_cnt": 1, "bug_source_code": " 2)\n {\n print \"YES\";\n }\n else\n {\n print \"NO\";\n }\n?>", "lang": "PHP", "bug_code_uid": "86a469983174aff49c5ae7a327e91769", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "e54420a73160057619aab5d6444bff94", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "insert", "lang_cluster": "PHP"} {"similarity_score": 0.8623188405797102, "equal_cnt": 10, "replace_cnt": 3, "delete_cnt": 3, "insert_cnt": 3, "fix_ops_cnt": 9, "bug_source_code": "", "lang": "PHP", "bug_code_uid": "6ba10a96cfb3619c7d74e848db27ae1b", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "e54420a73160057619aab5d6444bff94", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "COMPILATION_ERROR", "potential_dominant_fix_op": "replace", "lang_cluster": "PHP"} {"similarity_score": 0.9887640449438202, "equal_cnt": 2, "replace_cnt": 1, "delete_cnt": 0, "insert_cnt": 0, "fix_ops_cnt": 1, "bug_source_code": "= 1 && $weight <= 100) {\n\t\tif($weight % 2 === 0) {\n\t\t\techo \"YES \\n\";\n\t\t} else {\n\t\t\techo \"NO \\n\";\n\t\t}\n\t} else {\n\t\techo \"NO \\n\";\n\t}\n\n\n\n?> ", "lang": "PHP", "bug_code_uid": "708ad5e71128b548d318fe551a63cbef", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "efdd5342903a486ebcc2681f87b1da5e", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "replace", "lang_cluster": "PHP"} {"similarity_score": 0.9230769230769231, "equal_cnt": 2, "replace_cnt": 0, "delete_cnt": 0, "insert_cnt": 1, "fix_ops_cnt": 1, "bug_source_code": "", "lang": "PHP", "bug_code_uid": "0c308c8f395b1e1f0f3f883a6a3e6461", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "bb9712fbd34a4c6b1f79f6eab6deb2d6", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "insert", "lang_cluster": "PHP"} {"similarity_score": 0.9512195121951219, "equal_cnt": 4, "replace_cnt": 3, "delete_cnt": 0, "insert_cnt": 0, "fix_ops_cnt": 3, "bug_source_code": "\";\n else\n echo \"YES
;\n?>", "lang": "PHP", "bug_code_uid": "9a9499c9035cf051f3d4898056c0431e", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "84c5acb522784b86209d4638bafdca34", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "COMPILATION_ERROR", "potential_dominant_fix_op": "insert", "lang_cluster": "PHP"} {"similarity_score": 0.9809885931558935, "equal_cnt": 2, "replace_cnt": 0, "delete_cnt": 0, "insert_cnt": 1, "fix_ops_cnt": 1, "bug_source_code": " 2))\n echo \"YES\".\"\\n\";\n else\n echo \"NO\".\"\\n\";\n?>", "lang": "PHP", "bug_code_uid": "7b864bf64e6c277f13c913db4f0f145a", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "84c5acb522784b86209d4638bafdca34", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "WRONG_ANSWER", "potential_dominant_fix_op": "insert", "lang_cluster": "PHP"} {"similarity_score": 0.913946587537092, "equal_cnt": 12, "replace_cnt": 4, "delete_cnt": 6, "insert_cnt": 1, "fix_ops_cnt": 11, "bug_source_code": "", "lang": "PHP", "bug_code_uid": "74623be5be7b56d61690a731e81ee538", "src_uid": "230a3c4d7090401e5fa3c6b9d994cdf2", "apr_id": "f1ba88ecb74035b5b1db3ab40225f24c", "difficulty": 800, "tags": ["math", "brute force"], "bug_exec_outcome": "COMPILATION_ERROR", "potential_dominant_fix_op": "delete", "lang_cluster": "PHP"} {"similarity_score": 0.6187845303867403, "equal_cnt": 3, "replace_cnt": 1, "delete_cnt": 0, "insert_cnt": 2, "fix_ops_cnt": 3, "bug_source_code": "