MCPcopy Create free account
hub / github.com/SalesforceAIResearch/perfcodegen / __init__

Method __init__

src/evaluate.py:104–107  ·  view source on GitHub ↗
(self, dataset, dataset_repo = "test_datasets", mbpp_helpfile = None)

Source from the content-addressed store, hash-verified

102
103class Evaluator(object):
104 def __init__(self, dataset, dataset_repo = "test_datasets", mbpp_helpfile = None):
105 self.dataset = Dataset(dataset, data_path = os.path.join(dataset_repo, dataset.replace("/", "_")), testfile_path = mbpp_helpfile)
106 self.dataset.load_testcases()
107 self.dataset.load_groundtruths()
108
109
110 def load_solutions(self, solution_file):

Callers

nothing calls this directly

Calls 3

DatasetClass · 0.90
load_testcasesMethod · 0.80
load_groundtruthsMethod · 0.80

Tested by

no test coverage detected