MCPcopy Create free account
hub / github.com/evalplus/evalplus / check_unique

Function check_unique

tools/humaneval/fix_v011.py:30–31  ·  view source on GitHub ↗
(grid)

Source from the content-addressed store, hash-verified

28"""
29
30 def check_unique(grid):
31 return {x for l in grid for x in l} == set(range(1, len(grid) ** 2 + 1))
32
33 data[129]["base_input"] = [x for x in data[129]["base_input"] if check_unique(x[0])]
34 data[129]["plus_input"] = [x for x in data[129]["plus_input"] if check_unique(x[0])]

Callers 1

fixFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…