File size: 3,224 Bytes
7fec244
 
 
 
1
2
3
4
5
{"id":"bbb35932-067d-49f6-8080-3f33d78f13c1","programming_language":"java","code":"public class Calculator {\n    public static int add(int a, int b) {\n        return a + b;\n    }\n    public static int multiply(int a, int b) {\n        return a * b;\n    }\n}","code_description":"Synthetic java code snippet demonstrating common patterns","task_type":"code_generation","difficulty_level":"beginner","dataset_source":"synthetic","quality_score":0.9,"is_tested":true,"has_bugs":false,"lines_of_code":8,"complexity_score":0.4,"functions_count":1,"dependencies":null,"tags":["algorithm","example"],"docstring":null,"source_url":null,"source_repository":null,"license":"CC0-1.0","author":"synthetic","created_at":"2025-10-25T07:54:31.453096Z","collected_at":"2025-10-25T07:54:31.453096Z"}
{"id":"e9a75eec-f094-4753-a051-cb8072bd7787","programming_language":"javascript","code":"const debounce = (func, delay) => {\n    let timeoutId;\n    return (...args) => {\n        clearTimeout(timeoutId);\n        timeoutId = setTimeout(() => func(...args), delay);\n    };\n}","code_description":"Synthetic javascript code snippet demonstrating common patterns","task_type":"code_generation","difficulty_level":"beginner","dataset_source":"synthetic","quality_score":0.9,"is_tested":true,"has_bugs":false,"lines_of_code":7,"complexity_score":0.4,"functions_count":1,"dependencies":null,"tags":["algorithm","example"],"docstring":null,"source_url":null,"source_repository":null,"license":"CC0-1.0","author":"synthetic","created_at":"2025-10-25T07:54:31.451096Z","collected_at":"2025-10-25T07:54:31.451096Z"}
{"id":"b83c937a-2b86-4e83-9579-789e2f8f859f","programming_language":"python","code":"def binary_search(arr, target):\n    left, right = 0, len(arr) - 1\n    while left <= right:\n        mid = (left + right) \/\/ 2\n        if arr[mid] == target:\n            return mid\n        elif arr[mid] < target:\n            left = mid + 1\n        else:\n            right = mid - 1\n    return -1","code_description":"Synthetic python code snippet demonstrating common patterns","task_type":"code_generation","difficulty_level":"beginner","dataset_source":"synthetic","quality_score":0.9,"is_tested":true,"has_bugs":false,"lines_of_code":11,"complexity_score":0.4,"functions_count":1,"dependencies":null,"tags":["algorithm","example"],"docstring":null,"source_url":null,"source_repository":null,"license":"CC0-1.0","author":"synthetic","created_at":"2025-10-25T07:54:31.450096Z","collected_at":"2025-10-25T07:54:31.450096Z"}
{"id":"4bbd21cc-29ac-47e0-8497-e6aacf6aa6dc","programming_language":"python","code":"def fibonacci(n):\n    if n <= 1:\n        return n\n    return fibonacci(n-1) + fibonacci(n-2)","code_description":"Synthetic python code snippet demonstrating common patterns","task_type":"code_generation","difficulty_level":"beginner","dataset_source":"synthetic","quality_score":0.9,"is_tested":true,"has_bugs":false,"lines_of_code":4,"complexity_score":0.4,"functions_count":1,"dependencies":null,"tags":["algorithm","example"],"docstring":null,"source_url":null,"source_repository":null,"license":"CC0-1.0","author":"synthetic","created_at":"2025-10-25T07:54:31.449100Z","collected_at":"2025-10-25T07:54:31.449100Z"}