MCPcopy Create free account
hub / github.com/FlyingFeather/DEA-SQL / load_cache

Function load_cache

evaluation/test-suite-sql-eval/evaluate_classical.py:86–91  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

84# the key is a ternary tuple (empty_database_path, SQL1, SQL2)
85# the value is whether SQL1 and SQL2 are equivalent, judged by the test suites
86def load_cache() -> Dict[Tuple[str, str, str], bool]:
87 if os.path.exists(cache_path):
88 d = m.dict(pkl.load(open(cache_path, 'rb')))
89 for k, v in d.items():
90 cache[k] = v
91 return cache
92
93
94# dump the cache

Callers 1

Calls 1

loadMethod · 0.45

Tested by

no test coverage detected