MCPcopy
hub / github.com/evalplus/evalplus / get_mbpp_plus_hash

Function get_mbpp_plus_hash

evalplus/data/mbpp.py:195–203  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

193
194
195def get_mbpp_plus_hash(mini=False, noextreme=False, version="default") -> str:
196 """Get the hash of MbppPlus.
197 Returns:
198 str: The hash of MbppPlus
199 """
200 plus_path = _ready_mbpp_plus_path(mini=mini, noextreme=noextreme, version=version)
201 with open(plus_path, "rb") as f:
202 plus = f.read()
203 return hashlib.md5(plus).hexdigest()

Callers 4

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

Calls 2

_ready_mbpp_plus_pathFunction · 0.85
readMethod · 0.80

Tested by

no test coverage detected