Download _agent_test.jsonl from Tomopas/kumo-coding-agent-data: direct link, hf CLI and curl.
- Browser
- Download file 5.42 kB
-
https://huggingface.co/datasets/Tomopas/kumo-coding-agent-data/resolve/main/_agent_test.jsonl
- Command line
-
hf download hf://datasets/Tomopas/kumo-coding-agent-data/_agent_test.jsonl
-
curl -L -o _agent_test.jsonl https://huggingface.co/datasets/Tomopas/kumo-coding-agent-data/resolve/main/_agent_test.jsonl
5.42 kB
| {"id": "mbpp/881", "problem": "Write a function to find the sum of first even and odd number of a given list.\n\nThe current implementation in solution.py fails the tests in test_solution.py. Use the tools to inspect the code, reproduce the failure, fix it, and verify that all tests pass before finishing.", "files": {"task.txt": "Write a function to find the sum of first even and odd number of a given list.\n", "solution.py": "def sum_even_odd(list1):\r\n first_even = next((el for el in list1 if el%2==0),-1)\r\n first_odd = next((el for el in list1 if el%2!=0),-1)\r\n return (first_even-first_odd)\n", "test_solution.py": "from solution import *\nassert sum_even_odd([1,3,5,7,4,1,6,8])==5\nassert sum_even_odd([1,2,3,4,5,6,7,8,9,10])==3\nassert sum_even_odd([1,5,7,9,10])==11\nprint(\"ALL TESTS PASSED\")\n"}, "tests_file": "test_solution.py", "entry": "sum_even_odd", "bug": "plus_to_minus", "reference_solution": "def sum_even_odd(list1):\r\n first_even = next((el for el in list1 if el%2==0),-1)\r\n first_odd = next((el for el in list1 if el%2!=0),-1)\r\n return (first_even+first_odd)"} | |
| {"id": "mbpp/620", "problem": "Write a function to find the largest subset where each pair is divisible.\n\nThe current implementation in solution.py fails the tests in test_solution.py. Use the tools to inspect the code, reproduce the failure, fix it, and verify that all tests pass before finishing.", "files": {"task.txt": "Write a function to find the largest subset where each pair is divisible.\n", "solution.py": "def largest_subset(a, n):\r\n\tdp = [0 for i in range(n)]\r\n\tdp[n + 1] = 1; \r\n\tfor i in range(n - 2, -1, -1):\r\n\t\tmxm = 0;\r\n\t\tfor j in range(i + 1, n):\r\n\t\t\tif a[j] % a[i] == 0 or a[i] % a[j] == 0:\r\n\t\t\t\tmxm = max(mxm, dp[j])\r\n\t\tdp[i] = 1 + mxm\r\n\treturn max(dp)\n", "test_solution.py": "from solution import *\nassert largest_subset([ 1, 3, 6, 13, 17, 18 ], 6) == 4\nassert largest_subset([10, 5, 3, 15, 20], 5) == 3\nassert largest_subset([18, 1, 3, 6, 13, 17], 6) == 4\nprint(\"ALL TESTS PASSED\")\n"}, "tests_file": "test_solution.py", "entry": "largest_subset", "bug": "minus_to_plus", "reference_solution": "def largest_subset(a, n):\r\n\tdp = [0 for i in range(n)]\r\n\tdp[n - 1] = 1; \r\n\tfor i in range(n - 2, -1, -1):\r\n\t\tmxm = 0;\r\n\t\tfor j in range(i + 1, n):\r\n\t\t\tif a[j] % a[i] == 0 or a[i] % a[j] == 0:\r\n\t\t\t\tmxm = max(mxm, dp[j])\r\n\t\tdp[i] = 1 + mxm\r\n\treturn max(dp)"} | |
| {"id": "mbpp/955", "problem": "Write a function to find out, if the given number is abundant.\n\nThe current implementation in solution.py fails the tests in test_solution.py. Use the tools to inspect the code, reproduce the failure, fix it, and verify that all tests pass before finishing.", "files": {"task.txt": "Write a function to find out, if the given number is abundant.\n", "solution.py": "def is_abundant(n):\r\n fctrsum = sum([fctr for fctr in range(1, n) if n % fctr != 0])\r\n return fctrsum > n\n", "test_solution.py": "from solution import *\nassert is_abundant(12)==True\nassert is_abundant(13)==False\nassert is_abundant(9)==False\nprint(\"ALL TESTS PASSED\")\n"}, "tests_file": "test_solution.py", "entry": "is_abundant", "bug": "eq_to_neq", "reference_solution": "def is_abundant(n):\r\n fctrsum = sum([fctr for fctr in range(1, n) if n % fctr == 0])\r\n return fctrsum > n"} | |
| {"id": "mbpp/660", "problem": "Write a python function to choose points from two ranges such that no point lies in both the ranges.\n\nThe current implementation in solution.py fails the tests in test_solution.py. Use the tools to inspect the code, reproduce the failure, fix it, and verify that all tests pass before finishing.", "files": {"task.txt": "Write a python function to choose points from two ranges such that no point lies in both the ranges.\n", "solution.py": "def find_Points(l1,r1,l2,r2): \r\n x = min(l1,l2) if not (l1 != l2) else -1\r\n y = max(r1,r2) if (r1 != r2) else -1\r\n return (x,y)\n", "test_solution.py": "from solution import *\nassert find_Points(5,10,1,5) == (1,10)\nassert find_Points(3,5,7,9) == (3,9)\nassert find_Points(1,5,2,8) == (1,8)\nprint(\"ALL TESTS PASSED\")\n"}, "tests_file": "test_solution.py", "entry": "find_Points", "bug": "invert_condition", "reference_solution": "def find_Points(l1,r1,l2,r2): \r\n x = min(l1,l2) if (l1 != l2) else -1\r\n y = max(r1,r2) if (r1 != r2) else -1\r\n return (x,y)"} | |
| {"id": "mbpp/655", "problem": "Write a python function to find the sum of fifth power of n natural numbers.\n\nThe current implementation in solution.py fails the tests in test_solution.py. Use the tools to inspect the code, reproduce the failure, fix it, and verify that all tests pass before finishing.", "files": {"task.txt": "Write a python function to find the sum of fifth power of n natural numbers.\n", "solution.py": "def fifth_Power_Sum(n) : \r\n sm = 0 \r\n for i in range(1,n-1) : \r\n sm = sm + (i*i*i*i*i) \r\n return sm\n", "test_solution.py": "from solution import *\nassert fifth_Power_Sum(2) == 33\nassert fifth_Power_Sum(4) == 1300\nassert fifth_Power_Sum(3) == 276\nprint(\"ALL TESTS PASSED\")\n"}, "tests_file": "test_solution.py", "entry": "fifth_Power_Sum", "bug": "plus_to_minus", "reference_solution": "def fifth_Power_Sum(n) : \r\n sm = 0 \r\n for i in range(1,n+1) : \r\n sm = sm + (i*i*i*i*i) \r\n return sm "} | |