| 3 | |
| 4 | |
| 5 | def fix(data): |
| 6 | # fix: https://github.com/evalplus/evalplus/issues/156 |
| 7 | |
| 8 | check_id(data, 334, "Mbpp/734") |
| 9 | data[334]["prompt"] = data[334]["prompt"].replace( |
| 10 | "https://www.geeksforgeeks.org/sum-of-products-of-all-possible-subarrays/", "" |
| 11 | ) |
| 12 | |
| 13 | check_id(data, 335, "Mbpp/735") |
| 14 | data[335]["prompt"] = data[335]["prompt"].replace( |
| 15 | "https://www.geeksforgeeks.org/toggle-bits-number-expect-first-last-bits/", "" |
| 16 | ) |
| 17 | |
| 18 | check_id(data, 336, "Mbpp/736") |
| 19 | data[336]["prompt"] = data[336]["prompt"].replace( |
| 20 | "https://www.w3resource.com/python-exercises/data-structures-and-algorithms/python-data-structure-exercise-24.php", |
| 21 | "", |
| 22 | ) |
| 23 | |
| 24 | check_id(data, 338, "Mbpp/739") |
| 25 | data[338]["prompt"] = data[338]["prompt"].replace( |
| 26 | "https://www.geeksforgeeks.org/index-of-smallest-triangular-number-with-n-digits/", |
| 27 | "", |
| 28 | ) |
| 29 | |
| 30 | check_id(data, 339, "Mbpp/740") |
| 31 | data[339]["prompt"] = data[339]["prompt"].replace( |
| 32 | "https://www.geeksforgeeks.org/python-convert-tuple-to-adjacent-pair-dictionary/", |
| 33 | "", |
| 34 | ) |
| 35 | |
| 36 | check_id(data, 342, "Mbpp/743") |
| 37 | data[342]["prompt"] = data[342]["prompt"].replace( |
| 38 | "https://www.geeksforgeeks.org/python-program-right-rotate-list-n/", "" |
| 39 | ) |
| 40 | |
| 41 | check_id(data, 344, "Mbpp/745") |
| 42 | data[344]["prompt"] = data[344]["prompt"].replace( |
| 43 | "https://www.w3resource.com/python-exercises/lambda/python-lambda-exercise-24.php", |
| 44 | "", |
| 45 | ) |
| 46 | |
| 47 | check_id(data, 347, "Mbpp/749") |
| 48 | data[347]["prompt"] = data[347]["prompt"].replace( |
| 49 | "https://www.geeksforgeeks.org/python-sort-numeric-strings-in-a-list/", "" |
| 50 | ) |
| 51 | |
| 52 | check_id(data, 349, "Mbpp/751") |
| 53 | data[349]["prompt"] = data[349]["prompt"].replace( |
| 54 | "https://www.geeksforgeeks.org/how-to-check-if-a-given-array-represents-a-binary-heap/", |
| 55 | "", |
| 56 | ) |
| 57 | |
| 58 | check_id(data, 350, "Mbpp/752") |
| 59 | data[350]["prompt"] = data[350]["prompt"].replace( |
| 60 | "https://www.geeksforgeeks.org/jacobsthal-and-jacobsthal-lucas-numbers/", "" |
| 61 | ) |
| 62 | |