-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinputs.py
35 lines (34 loc) · 1.09 KB
/
inputs.py
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
29
30
31
32
33
34
35
# add dictionaries with the properties query, type, and test_cases to synthesize new problems
inputs = [
{
"query": "Create a java function that finds if an item is in an int array",
"type": "boolean",
"test_cases": [
({"int[]": "new int[] {1, 2, 3, 4}", "int": "3"}, "true"),
({"int[]": "new int[] {1, 2, 3, 4}", "int": "7"}, "false"),
({"int[]": "new int[] {1, 2, 3, 4}", "int": "4"}, "true"),
({"int[]": "new int[] {1, 2, 3, 4, 4, 4}", "int": "4"}, "true"),
({"int[]": "new int[] {1, 2, 3, 4, 4, 4}", "int": "6"}, "false")
]
},
{
"query": "Create a java function that returns the nth value of the fibonacci sequence",
"type": "int",
"test_cases": [
({"int": "3"}, "2"),
({"int": "6"}, "8"),
({"int": "1"}, "1"),
({"int": "2"}, "1"),
({"int": "5"}, "5")
]
},
{
"query": "Create a java function that reverses an input string",
"type": "String",
"test_cases": [
({"String": "\"hello\""}, "olleh"),
({"String": "\"xyx\""}, "xyx"),
({"String": "\"hey there\""}, "ereht yeh")
]
}
]