mirror of
https://github.com/NousResearch/atropos.git
synced 2026-04-19 12:57:58 +00:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
86d5163316
commit
53a69d30e1
2 changed files with 7 additions and 10 deletions
|
|
@ -244,7 +244,9 @@ class RegexEnv(BaseEnv):
|
|||
return None
|
||||
|
||||
for s in scores["scores"]:
|
||||
self.percent_correct_buffer.append(1.0 if s >= self.config.score_threshold else 0.0)
|
||||
self.percent_correct_buffer.append(
|
||||
1.0 if s >= self.config.score_threshold else 0.0
|
||||
)
|
||||
|
||||
# If all scores identical, no learning signal
|
||||
if len(set(scores["scores"])) == 1:
|
||||
|
|
|
|||
|
|
@ -15,9 +15,7 @@ PROBLEMS = [
|
|||
"difficulty": "easy",
|
||||
},
|
||||
{
|
||||
"description": (
|
||||
"Match a string that starts with 'hello' (case-sensitive)."
|
||||
),
|
||||
"description": ("Match a string that starts with 'hello' (case-sensitive)."),
|
||||
"positive": ["hello", "hello world", "hellooo", "hello123"],
|
||||
"negative": ["Hello", "hi hello", "HELLO", "hell"],
|
||||
"difficulty": "easy",
|
||||
|
|
@ -46,9 +44,7 @@ PROBLEMS = [
|
|||
"difficulty": "easy",
|
||||
},
|
||||
{
|
||||
"description": (
|
||||
"Match a string that contains at least one uppercase letter."
|
||||
),
|
||||
"description": ("Match a string that contains at least one uppercase letter."),
|
||||
"positive": ["Hello", "ABC", "aB", "123A456"],
|
||||
"negative": ["hello", "123", "abc!", ""],
|
||||
"difficulty": "easy",
|
||||
|
|
@ -189,7 +185,7 @@ PROBLEMS = [
|
|||
"description": (
|
||||
"Match a string enclosed in double quotes. Inside the"
|
||||
" quotes, any characters are allowed except unescaped"
|
||||
' double quotes. Escaped quotes (\\\") are allowed.'
|
||||
' double quotes. Escaped quotes (\\") are allowed.'
|
||||
),
|
||||
"positive": [
|
||||
'"hello"',
|
||||
|
|
@ -207,8 +203,7 @@ PROBLEMS = [
|
|||
},
|
||||
{
|
||||
"description": (
|
||||
"Match a phone number in the format (XXX) XXX-XXXX"
|
||||
" where X is a digit."
|
||||
"Match a phone number in the format (XXX) XXX-XXXX" " where X is a digit."
|
||||
),
|
||||
"positive": [
|
||||
"(123) 456-7890",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue