mc
This commit is contained in:
@@ -71,7 +71,7 @@ def run_tests(models: dict[int, Model], seeds: list[int], tests: dict[int, Test]
|
||||
'seed': seed,
|
||||
'technique_id': technique_id
|
||||
}
|
||||
hash_key = str(nxhash(json.dumps(combination, sort_keys=True)))
|
||||
hash_key = nxhash(json.dumps(combination, sort_keys=True))
|
||||
|
||||
combination.update({
|
||||
'test_name': test.name,
|
||||
|
||||
@@ -157,9 +157,9 @@ def get_notes_containing(patterns: Union[list[str], str]) -> str:
|
||||
return ret
|
||||
|
||||
@tool
|
||||
def write_note(command: str) -> str:
|
||||
def write_note(note: str) -> str:
|
||||
"""Write a not with the current time to the database."""
|
||||
return command
|
||||
return "Written."
|
||||
|
||||
@tool
|
||||
def save_python_repl(command: str):
|
||||
@@ -171,6 +171,7 @@ def save_python_repl(command: str):
|
||||
"^ *subprocess\\.",
|
||||
"^ *(with)? ?open\\(",
|
||||
"^ *shutil\\.",
|
||||
"^ *requests\\.",
|
||||
]
|
||||
valid = True
|
||||
for pattern in blocked_patterns:
|
||||
|
||||
Reference in New Issue
Block a user