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
lm-evaluation-harness
Commits
df18b5a2
Commit
df18b5a2
authored
Jun 20, 2023
by
haileyschoelkopf
Browse files
remove sh() util
parent
41677741
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
9 deletions
+0
-9
lm_eval/utils.py
lm_eval/utils.py
+0
-9
No files found.
lm_eval/utils.py
View file @
df18b5a2
...
...
@@ -22,15 +22,6 @@ from itertools import islice
from
lm_eval.logger
import
eval_logger
class
ExitCodeError
(
Exception
):
pass
def
sh
(
x
):
if
os
.
system
(
x
):
raise
ExitCodeError
()
def
escaped_split
(
text
,
sep_char
,
maxsplit
=-
1
):
"""Split text into a list on occurrences of the given separation
character `sep_char`. The separation character may be escaped by a
...
...
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