MutaFix benchmark

48 injected one-line bugs in 4 open-source Python libraries · Nemotron on Nebius Token Factory · generated 2026-10-25 16:58

40/48 (83.3%)repaired (all tests green)
30/48exact restore of the original line
83.3%ranker top-1 = buggy function
83.3%retriever top-1 (no model)
97.9%bug in the 20 candidates
$0.0081API cost per task
0.0smean ranker call
9.33smean patcher call

By repository

repositorytasksrepairedranker top-1
toolz1299
more-itertools121012
boltons12127
sortedcontainers12912

Every task

taskbug typebuggy functionranker pos.outcomefixturnstimecost
toolz-001NEGCONDvalfilter1fixedexact24s$0.0003
toolz-002NEGCONDcheck_keywords2not fixed-8103s$0.0231
toolz-003CMPcurry.__signature__3not fixed-8100s$0.0297
toolz-004NEGCONDget_exclude_keywords-not fixed-8145s$0.0363
toolz-005NEGCOND_has_keywords1fixedexact446s$0.0096
toolz-006NEGCONDcountby1fixedplausible25s$0.0003
toolz-007NEGCONDdissoc1fixedplausible27s$0.0005
toolz-008NEGCONDthread_first.<locals>.evalform_front1fixedexact322s$0.0042
toolz-009CMPhas_keywords1fixedexact446s$0.0107
toolz-010CONSTapply1fixedexact26s$0.0003
toolz-011NEGCONDmerge_sorted1fixedplausible26s$0.0007
toolz-012NEGCOND_has_varargs1fixedplausible24s$0.0003
more-itertools-001NEGCONDpartition.<locals>.gen1fixedexact348s$0.0041
more-itertools-002CMPone1fixedexact237s$0.0007
more-itertools-003BINOPnth_combination1not fixed-7136s$0.0338
more-itertools-004BINOP_sliding_window_deque1fixedplausible352s$0.0042
more-itertools-005CONSTset_partitions.<locals>.set_partitions_helper1fixedexact236s$0.0008
more-itertools-006NEGCONDrandom_derangement1fixedexact235s$0.0007
more-itertools-007CMPnumeric_range.count1fixedexact235s$0.0003
more-itertools-008CMPcount_cycle1not fixed-3373s$0.0057
more-itertools-009NEGCONDchunked.<locals>.ret1fixedexact133s$0.0002
more-itertools-010NEGCONDunique_justseen1fixedplausible350s$0.0031
more-itertools-011NEGCONDclassify_unique1fixedexact238s$0.0006
more-itertools-012NEGCONDonly1fixedexact238s$0.0007
boltons-001NEGCONDExceptionInfo.from_exc_info-fixedplausible633s$0.0085
boltons-002CMPManyToMany.update2fixedplausible8111s$0.0305
boltons-003NEGCONDSpooledStringIO._traverse_codepoints5fixedexact443s$0.0068
boltons-004NEGCONDLRU.__getitem__1fixedexact563s$0.0138
boltons-005NEGCONDprint_exception1fixedexact316s$0.0021
boltons-006CONSTStats._calc_variance2fixedplausible321s$0.0021
boltons-007NEGCONDrotate_file1fixedplausible211s$0.0004
boltons-008BINOPStats._calc_pearson_type1fixedexact457s$0.0096
boltons-009NEGCONDSpooledIOBase._checkClosed1fixedexact429s$0.0036
boltons-010CMPURL.__ne__1fixedexact210s$0.0005
boltons-011BINOPBarrelList.iter_slice2fixedexact342s$0.0046
boltons-012NEGCONDfind_all_links1fixedexact6129s$0.0290
sortedcontainers-001NEGCONDSortedList.__contains__1fixedexact28s$0.0005
sortedcontainers-002CMPSortedKeyList.count1fixedexact29s$0.0006
sortedcontainers-003NEGCONDSortedKeyList.remove1fixedexact29s$0.0006
sortedcontainers-004NEGCONDSortedSet.discard1fixedexact318s$0.0030
sortedcontainers-005NEGCONDSortedList._delete1not fixed-8106s$0.0298
sortedcontainers-006CONSTSortedList._pos1fixedexact335s$0.0069
sortedcontainers-007NEGCONDSortedKeyList.index1fixedexact7139s$0.0326
sortedcontainers-008CONSTSortedList.irange1not fixed-335s$0.0082
sortedcontainers-009NEGCONDSortedKeyList.__contains__1fixedexact320s$0.0028
sortedcontainers-010NEGCONDSortedList.add1not fixed-7101s$0.0212
sortedcontainers-011NEGCONDSortedDict.__ror__1fixedexact29s$0.0005
sortedcontainers-012CMPSortedSet.count1fixedexact28s$0.0004

"exact" = the patch restored the original line. "plausible" = all tests pass with a different edit; the test suite cannot tell it apart from the original. Total cost $0.3893 for 839,575 prompt and 249,512 completion tokens.