File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -32,12 +32,13 @@ dependencies = [
32
32
" pytest" ,
33
33
" pytest-cov" ,
34
34
" litellm" ,
35
+ " inspect-ai" ,
36
+ " datasets" ,
35
37
# requirements for execution
36
38
" numpy" ,
37
39
" scipy" ,
38
40
" matplotlib" ,
39
41
" sympy" ,
40
- " inspect-ai" ,
41
42
]
42
43
43
44
# Classifiers help users find your project by categorizing it.
Original file line number Diff line number Diff line change 8
8
import scipy
9
9
import numpy as np
10
10
from sympy import Symbol
11
+ from datasets import load_dataset
11
12
12
13
OrderedContent = list [tuple [str , str ]]
13
14
@@ -56,6 +57,10 @@ def read_from_jsonl(file_path):
56
57
data .append (json .loads (line .strip ()))
57
58
return data
58
59
60
+ def read_from_hf_dataset (split = 'validation' ):
61
+ dataset = load_dataset ('Zilinghan/scicode' , split = split )
62
+ return dataset
63
+
59
64
def rm_comments (string : str ) -> str :
60
65
ret_lines = []
61
66
lines = string .split ('\n ' )
You can’t perform that action at this time.
0 commit comments