wesleysimplicio commited on
Commit
018704e
·
verified ·
1 Parent(s): cde37ad

benchmarks: add aider_instances.json

Browse files
Files changed (1) hide show
  1. benchmarks/aider_instances.json +37 -0
benchmarks/aider_instances.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "instance_id": "aider_two_fer",
4
+ "file": "two_fer.py",
5
+ "instructions": "Implement two_fer(name=None) returning \"One for {name}, one for me.\", defaulting to \"you\".",
6
+ "initial_code": "def two_fer(name=None):\n pass\n",
7
+ "test_code": "from two_fer import two_fer\ndef test_no_name(): assert two_fer() == \"One for you, one for me.\"\ndef test_name(): assert two_fer(\"Alice\") == \"One for Alice, one for me.\"\n"
8
+ },
9
+ {
10
+ "instance_id": "aider_isogram",
11
+ "file": "isogram.py",
12
+ "instructions": "Determine if a word or phrase is an isogram, ignoring spaces and hyphens.",
13
+ "initial_code": "def is_isogram(string):\n pass\n",
14
+ "test_code": "from isogram import is_isogram\ndef test_empty(): assert is_isogram(\"\") is True\ndef test_iso(): assert is_isogram(\"lumberjacks\") is True\ndef test_dup(): assert is_isogram(\"eleven\") is False\n"
15
+ },
16
+ {
17
+ "instance_id": "aider_raindrops",
18
+ "file": "raindrops.py",
19
+ "instructions": "Convert factor to raindrop sounds: 3=Pling, 5=Plang, 7=Plong, else number as string.",
20
+ "initial_code": "def convert(number):\n pass\n",
21
+ "test_code": "from raindrops import convert\ndef test_28(): assert convert(28) == \"Plong\"\ndef test_30(): assert convert(30) == \"PlingPlang\"\ndef test_34(): assert convert(34) == \"34\"\n"
22
+ },
23
+ {
24
+ "instance_id": "aider_flatten_array",
25
+ "file": "flatten_array.py",
26
+ "instructions": "Flatten a nested list omitting all None values.",
27
+ "initial_code": "def flatten(iterable):\n pass\n",
28
+ "test_code": "from flatten_array import flatten\ndef test_empty(): assert flatten([]) == []\ndef test_nested(): assert flatten([0, 2, [[2, 3], 8, 100, 4, [[[50]]]], -2]) == [0, 2, 2, 3, 8, 100, 4, 50, -2]\n"
29
+ },
30
+ {
31
+ "instance_id": "aider_resistor_color",
32
+ "file": "resistor_color.py",
33
+ "instructions": "Return resistance band number and list of colors.",
34
+ "initial_code": "def color_code(color):\n pass\n\ndef colors():\n pass\n",
35
+ "test_code": "from resistor_color import color_code, colors\ndef test_black(): assert color_code(\"black\") == 0\ndef test_white(): assert color_code(\"white\") == 9\ndef test_list(): assert colors()[0] == \"black\"\n"
36
+ }
37
+ ]