MCPcopy Index your code
hub / github.com/TaskingAI/TaskingAI / check_order

Function check_order

inference/test/utils/utils.py:332–333  ·  view source on GitHub ↗
(lst, key)

Source from the content-addressed store, hash-verified

330
331
332def check_order(lst, key):
333 return all(lst[i][key] >= lst[i + 1][key] for i in range(len(lst) - 1))
334
335
336def is_unit_vector(vector, tolerance=1e-3):

Callers 1

test_rerankMethod · 0.50

Calls

no outgoing calls

Tested by 1

test_rerankMethod · 0.40