MCPcopy Index your code
hub / github.com/evalplus/evalplus / get_dataset_metadata

Function get_dataset_metadata

evalplus/data/utils.py:14–24  ·  view source on GitHub ↗
(name: str, version: str, mini: bool, noextreme: bool = False)

Source from the content-addressed store, hash-verified

12
13
14def get_dataset_metadata(name: str, version: str, mini: bool, noextreme: bool = False):
15 assert name in ["HumanEvalPlus", "MbppPlus"], f"Unknown/unsupported dataset: {name}"
16 extra = ""
17 assert not (mini and noextreme), "Cannot have both mini and noextreme"
18 if mini:
19 extra = "-Mini"
20 if noextreme:
21 extra = "-NoExtreme"
22 url = f"https://github.com/evalplus/{name.lower()}_release/releases/download/{version}/{name}{extra}.jsonl.gz"
23 cache_path = os.path.join(CACHE_DIR, f"{name}{extra}-{version}.jsonl")
24 return url, cache_path
25
26
27def make_cache(gzip_url, cache_path):

Callers 2

_ready_mbpp_plus_pathFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected