1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
{
"category": [
"code"
],
"cutoff": 90,
"dependencies": [
"TestWriteFile"
],
"eval_id": "15686763-9be7-41e0-902a-80a99fd88089",
"ground": {
"answer": "password_generator.py is created and satisfies the requirements.",
"eval": {
"type": "python"
},
"files": [
"test.py"
],
"should_contain": [],
"should_not_contain": []
},
"info": {
"description": "Tests ability for the agent to create a random password generator.",
"difficulty": "basic",
"side_effects": []
},
"name": "PasswordGenerator",
"task": "Create a random password generator. The password should have between 8 and 16 characters and should contain letters, numbers and symbols. The password should be printed to the console. The entry point will be a python file that can be run this way: python password_generator.py [--len x] where x is the length of the password. The password_generator can also be imported as a module and called as password = password_generator.generate_password(len=x). If no length is specified, the password should be 8 characters long. Any invalid input should raise a ValueError."
}
|