MCPcopy Index your code
hub / github.com/diffgram/diffgram / find

Function find

default/play_and_scripts/coco_transform.py:9–13  ·  view source on GitHub ↗
(lst, key, value)

Source from the content-addressed store, hash-verified

7
8
9def find(lst, key, value):
10 for i, dic in enumerate(lst):
11 if dic[key] == value:
12 return dic
13 return -1
14
15i = 0
16for ann in x['annotations']:

Callers 1

coco_transform.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected