MCPcopy Index your code
hub / github.com/SourceCode-AI/aura / load_existing

Function load_existing

files/dataset_scripts/convert2sqlite.py:76–85  ·  view source on GitHub ↗
(cursor)

Source from the content-addressed store, hash-verified

74
75
76def load_existing(cursor):
77 cursor.execute("SELECT id, name FROM tag_names")
78
79 for (id, name) in cursor.fetchall():
80 TAG_NAMES[name] = id
81
82 cursor.execute("SELECT id, name FROM detection_types")
83
84 for (id, name) in cursor.fetchall():
85 DETECTION_TYPES[name] = id
86
87
88def get_tag_id(name, cursor) -> int:

Callers 1

create_or_openFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected