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
|
return None
|
||||||
|
|
||||||
for s in scores["scores"]:
|
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 all scores identical, no learning signal
|
||||||
if len(set(scores["scores"])) == 1:
|
if len(set(scores["scores"])) == 1:
|
||||||
|
|
|
||||||
|
|
@ -15,9 +15,7 @@ PROBLEMS = [
|
||||||
"difficulty": "easy",
|
"difficulty": "easy",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": (
|
"description": ("Match a string that starts with 'hello' (case-sensitive)."),
|
||||||
"Match a string that starts with 'hello' (case-sensitive)."
|
|
||||||
),
|
|
||||||
"positive": ["hello", "hello world", "hellooo", "hello123"],
|
"positive": ["hello", "hello world", "hellooo", "hello123"],
|
||||||
"negative": ["Hello", "hi hello", "HELLO", "hell"],
|
"negative": ["Hello", "hi hello", "HELLO", "hell"],
|
||||||
"difficulty": "easy",
|
"difficulty": "easy",
|
||||||
|
|
@ -46,9 +44,7 @@ PROBLEMS = [
|
||||||
"difficulty": "easy",
|
"difficulty": "easy",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": (
|
"description": ("Match a string that contains at least one uppercase letter."),
|
||||||
"Match a string that contains at least one uppercase letter."
|
|
||||||
),
|
|
||||||
"positive": ["Hello", "ABC", "aB", "123A456"],
|
"positive": ["Hello", "ABC", "aB", "123A456"],
|
||||||
"negative": ["hello", "123", "abc!", ""],
|
"negative": ["hello", "123", "abc!", ""],
|
||||||
"difficulty": "easy",
|
"difficulty": "easy",
|
||||||
|
|
@ -189,7 +185,7 @@ PROBLEMS = [
|
||||||
"description": (
|
"description": (
|
||||||
"Match a string enclosed in double quotes. Inside the"
|
"Match a string enclosed in double quotes. Inside the"
|
||||||
" quotes, any characters are allowed except unescaped"
|
" quotes, any characters are allowed except unescaped"
|
||||||
' double quotes. Escaped quotes (\\\") are allowed.'
|
' double quotes. Escaped quotes (\\") are allowed.'
|
||||||
),
|
),
|
||||||
"positive": [
|
"positive": [
|
||||||
'"hello"',
|
'"hello"',
|
||||||
|
|
@ -207,8 +203,7 @@ PROBLEMS = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": (
|
"description": (
|
||||||
"Match a phone number in the format (XXX) XXX-XXXX"
|
"Match a phone number in the format (XXX) XXX-XXXX" " where X is a digit."
|
||||||
" where X is a digit."
|
|
||||||
),
|
),
|
||||||
"positive": [
|
"positive": [
|
||||||
"(123) 456-7890",
|
"(123) 456-7890",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue