Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
human-eval
Commits
312c5e55
Unverified
Commit
312c5e55
authored
Dec 01, 2021
by
Yichen Xu
Committed by
GitHub
Nov 30, 2021
Browse files
Fix type signature of read_problems (#9)
parent
fa06031e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
human_eval/data.py
human_eval/data.py
+1
-1
No files found.
human_eval/data.py
View file @
312c5e55
...
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(os.path.abspath(__file__))
...
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(os.path.abspath(__file__))
HUMAN_EVAL
=
os
.
path
.
join
(
ROOT
,
".."
,
"data"
,
"HumanEval.jsonl.gz"
)
HUMAN_EVAL
=
os
.
path
.
join
(
ROOT
,
".."
,
"data"
,
"HumanEval.jsonl.gz"
)
def
read_problems
(
evalset_file
:
str
=
HUMAN_EVAL
)
->
Iterable
[
Dict
[
str
,
Dict
]
]
:
def
read_problems
(
evalset_file
:
str
=
HUMAN_EVAL
)
->
Dict
[
str
,
Dict
]:
return
{
task
[
"task_id"
]:
task
for
task
in
stream_jsonl
(
evalset_file
)}
return
{
task
[
"task_id"
]:
task
for
task
in
stream_jsonl
(
evalset_file
)}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment