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

Function get_human_eval_plus_hash

evalplus/data/humaneval.py:31–39  ·  view source on GitHub ↗

Get the hash of HumanEvalPlus. Returns: str: The hash of HumanEvalPlus

(mini=False, noextreme=False, version="default")

Source from the content-addressed store, hash-verified

29
30
31def get_human_eval_plus_hash(mini=False, noextreme=False, version="default") -> str:
32 """Get the hash of HumanEvalPlus.
33 Returns:
34 str: The hash of HumanEvalPlus
35 """
36 plus_path = _ready_human_eval_plus_path(mini, noextreme, version="default")
37 with open(plus_path, "rb") as f:
38 plus = f.read()
39 return hashlib.md5(plus).hexdigest()
40
41
42def get_human_eval_plus(

Callers 4

scriptFunction · 0.90
mainFunction · 0.90
get_evalplus_dataFunction · 0.90
evaluateFunction · 0.90

Calls 2

readMethod · 0.80

Tested by

no test coverage detected