Dataset Viewer
Auto-converted to Parquet Duplicate
id
stringlengths
12
40
messages
listlengths
2
6
category
stringclasses
6 values
subcategory
stringlengths
4
106
language
stringclasses
3 values
grade_level
stringclasses
7 values
subject
stringclasses
10 values
difficulty
stringclasses
4 values
source
stringclasses
14 values
source_id
stringlengths
6
39
license
stringclasses
12 values
provenance_type
stringclasses
3 values
synthetic
bool
2 classes
transformation
stringclasses
18 values
codefeedback_python-train-132429
[ { "role": "user", "content": "You are presented with a challenge: Constructing H2O molecules. The details are as follows: You have two types of threads, `oxygen` and `hydrogen`. The objective is to assemble these threads into water molecules. A barrier exists where each thread must wait until a full molecul...
code
wizardcoder
en
11-12
computer_science
hard
m-a-p/CodeFeedback-Filtered-Instruction
train-132429
Apache-2.0 (as stated on card); card discloses part of the content is OpenAI-model-generated
transformed
true
filtered_to_python_only (upstream dataset spans 20 languages)
python_code_instructions_18k-train-818
[ { "role": "user", "content": "Create a Python function for computing the Fibonacci sequence up to the nth number.\n\nNumber n: 10" }, { "role": "assistant", "content": "def fibonacci(n):\n a, b = 0, 1\n for _ in range(n):\n a, b = b, a + b\n return a\n\nprint(fibonacci(10)) # out...
code
python_general
en
9-10
computer_science
unknown
iamtarun/python_code_instructions_18k_alpaca
train-818
UNSTATED
original
true
null
codefeedback_python-train-125740
[ { "role": "user", "content": "Examine the utility of semaphores in regulating access to shared resources amid a milieu characterized by concurrent threads of execution in a multiprogramming landscape. Additionally, consider the impact of priority inversion and starvation, and propose solutions to prevent th...
code
wizardcoder
en
11-12
computer_science
hard
m-a-p/CodeFeedback-Filtered-Instruction
train-125740
Apache-2.0 (as stated on card); card discloses part of the content is OpenAI-model-generated
transformed
true
filtered_to_python_only (upstream dataset spans 20 languages)
codefeedback_python-train-126712
[ { "role": "user", "content": "Develop a Python function that determines the shared characters in two provided strings, ignoring their case. Additionally, the function should also find any repeating characters within each string. Implement this enhancement without using built-in functions like set(). \n\nYou...
code
wizardcoder
en
11-12
computer_science
hard
m-a-p/CodeFeedback-Filtered-Instruction
train-126712
Apache-2.0 (as stated on card); card discloses part of the content is OpenAI-model-generated
transformed
true
filtered_to_python_only (upstream dataset spans 20 languages)
codefeedback_python-train-122853
[ { "role": "user", "content": "Develop a Python code implementing the insertion sort technique. However, your task is not only to organize an array consisting of n distinct numerical values but also to add the following extra functionalities:\na) The code must incorporate a user-input decision for choosing w...
code
wizardcoder
en
11-12
computer_science
hard
m-a-p/CodeFeedback-Filtered-Instruction
train-122853
Apache-2.0 (as stated on card); card discloses part of the content is OpenAI-model-generated
transformed
true
filtered_to_python_only (upstream dataset spans 20 languages)
codefeedback_python-train-21877
[ { "role": "user", "content": "Create a Corpus of English words in Python by processing a large text file containing sentences. The sentences in the file are not properly formatted and may contain errors such as misspellings, grammatical mistakes, and punctuation errors. Your task is to extract individual wo...
code
evolinstruct
en
11-12
computer_science
hard
m-a-p/CodeFeedback-Filtered-Instruction
train-21877
Apache-2.0 (as stated on card); card discloses part of the content is OpenAI-model-generated
transformed
true
filtered_to_python_only (upstream dataset spans 20 languages)
python_code_instructions_18k-train-840
[ { "role": "user", "content": "Design and implement an API in Python for an online store application." }, { "role": "assistant", "content": "from flask import Flask, jsonify, request\n \napp = Flask(__name__)\n\n@app.route('/products', methods=['GET'])\ndef get_all_products():\n # query databa...
code
python_general
en
9-10
computer_science
unknown
iamtarun/python_code_instructions_18k_alpaca
train-840
UNSTATED
original
true
null
codefeedback_python-train-99917
[ { "role": "user", "content": "Design and implement an API in Python for an online store application." }, { "role": "assistant", "content": "Below is a very basic example of how an API for an online store application could look in Python using Flask - a micro web framework. The assumptions here a...
code
wizardcoder
en
11-12
computer_science
hard
m-a-p/CodeFeedback-Filtered-Instruction
train-99917
Apache-2.0 (as stated on card); card discloses part of the content is OpenAI-model-generated
transformed
true
filtered_to_python_only (upstream dataset spans 20 languages)
python_code_instructions_18k-train-3461
[ { "role": "user", "content": "Write a Python program to edit a list given some criteria.\n\nlist = [5, 6, 2, 8, 11]\ncriteria = lambda x: x % 2 == 0" }, { "role": "assistant", "content": "def edit_list(list, criteria):\n return [x for x in list if criteria(x) == True]" } ]
code
python_general
en
9-10
computer_science
unknown
iamtarun/python_code_instructions_18k_alpaca
train-3461
UNSTATED
original
true
null
python_code_instructions_18k-train-5528
[ { "role": "user", "content": "Develop a web socket server with Python that will communicate with a web client, and process messages received from the user.\n\nNot applicable" }, { "role": "assistant", "content": "import asyncio\nimport websockets\n\nasync def handler(websocket, path):\n messa...
code
python_general
en
9-10
computer_science
unknown
iamtarun/python_code_instructions_18k_alpaca
train-5528
UNSTATED
original
true
null
codefeedback_python-train-109951
[ { "role": "user", "content": "Rephrase this code in Javascript:\ndef versatile_median(l: list, cmp_func: callable):\n \"\"\"Return median of elements in the list l without sorting it or using built-in functions.\n Handles different data types including tuples with even and odd number of elements, dupl...
code
wizardcoder
en
11-12
computer_science
hard
m-a-p/CodeFeedback-Filtered-Instruction
train-109951
Apache-2.0 (as stated on card); card discloses part of the content is OpenAI-model-generated
transformed
true
filtered_to_python_only (upstream dataset spans 20 languages)
codefeedback_python-train-87766
[ { "role": "user", "content": "Engineer a robust and comprehensive solution utilizing Amazon Web Services (AWS) resources for hosting services specifically for a WordPress-oriented website. Ensure the inclusion of multi-region fail-over capabilities, self-scaling mechanisms, and thorough data backup and reco...
code
wizardcoder
en
11-12
computer_science
hard
m-a-p/CodeFeedback-Filtered-Instruction
train-87766
Apache-2.0 (as stated on card); card discloses part of the content is OpenAI-model-generated
transformed
true
filtered_to_python_only (upstream dataset spans 20 languages)
codefeedback_python-train-129766
[ { "role": "user", "content": "Craft a Python function utilizing recursive methodology to calculate the factorial of a non-negative integer. A factorial is the product of a particular integer and all the integers beneath it. Therefore, factorial of, say, four would be calculated as '4x3x2x1=24'. Ponder upon ...
code
wizardcoder
en
11-12
computer_science
hard
m-a-p/CodeFeedback-Filtered-Instruction
train-129766
Apache-2.0 (as stated on card); card discloses part of the content is OpenAI-model-generated
transformed
true
filtered_to_python_only (upstream dataset spans 20 languages)
python_code_instructions_18k-train-6405
[ { "role": "user", "content": "Generate a Python program that adds a given number to an array.\n\nNumber: 5" }, { "role": "assistant", "content": "def add_to_array(num, array):\n for i in range(len(array)):\n array[i] += num\n\n return array" } ]
code
python_general
en
9-10
computer_science
unknown
iamtarun/python_code_instructions_18k_alpaca
train-6405
UNSTATED
original
true
null
python_code_instructions_18k-train-278
[ { "role": "user", "content": "Write a Python program to convert ratings in a list of strings to a float.\n\n['4.5', '3.0', '2.5', '4.0']" }, { "role": "assistant", "content": "def str_to_float(ratings):\n return [float(x) for x in ratings]" } ]
code
python_general
en
9-10
computer_science
unknown
iamtarun/python_code_instructions_18k_alpaca
train-278
UNSTATED
original
true
null
codefeedback_python-train-39596
[ { "role": "user", "content": "Create a content aggregator application in Python." }, { "role": "assistant", "content": "import requests\nimport json \n\ndef content_aggregator():\n api_url = \"https://www.example.com/api/\"\n response = requests.get(api_url)\n response_data = json.loads...
code
evolinstruct
en
11-12
computer_science
hard
m-a-p/CodeFeedback-Filtered-Instruction
train-39596
Apache-2.0 (as stated on card); card discloses part of the content is OpenAI-model-generated
transformed
true
filtered_to_python_only (upstream dataset spans 20 languages)
codefeedback_python-train-66290
[ { "role": "user", "content": "You are tasked with implementing a Python class method for signing a transaction. The method is part of a cryptocurrency transaction class and is responsible for generating a signature for the transaction inputs. The method should handle different types of transaction inputs, i...
code
magicoder
en
11-12
computer_science
hard
m-a-p/CodeFeedback-Filtered-Instruction
train-66290
Apache-2.0 (as stated on card); card discloses part of the content is OpenAI-model-generated
transformed
true
filtered_to_python_only (upstream dataset spans 20 languages)
codefeedback_python-train-88304
[ { "role": "user", "content": "Write a Python class to implement a doubly linked list with methods for adding elements at both the beginning and end. Additionally, include methods to delete a node given the key, insert a node after a given node, and display the contents of the list." }, { "role": "as...
code
wizardcoder
en
11-12
computer_science
hard
m-a-p/CodeFeedback-Filtered-Instruction
train-88304
Apache-2.0 (as stated on card); card discloses part of the content is OpenAI-model-generated
transformed
true
filtered_to_python_only (upstream dataset spans 20 languages)
codefeedback_python-train-16460
[ { "role": "user", "content": "Replace all occurrences of ‘x’ with ‘y’ in the following string. However, you are not allowed to use any built-in string manipulation functions or regular expressions. You must implement your own algorithm to achieve the desired result. sentence = \"This is x a sentence x with ...
code
evolinstruct
en
11-12
computer_science
hard
m-a-p/CodeFeedback-Filtered-Instruction
train-16460
Apache-2.0 (as stated on card); card discloses part of the content is OpenAI-model-generated
transformed
true
filtered_to_python_only (upstream dataset spans 20 languages)
python_code_instructions_18k-train-4679
[ { "role": "user", "content": "Create a class in Python that calculates the total and average of 3 numbers." }, { "role": "assistant", "content": "class Calculator:\n def __init__(self, num1, num2, num3):\n self.num1 = num1\n self.num2 = num2\n self.num3 = num3\n\n def ...
code
python_general
en
9-10
computer_science
unknown
iamtarun/python_code_instructions_18k_alpaca
train-4679
UNSTATED
original
true
null
python_code_instructions_18k-train-6241
[ { "role": "user", "content": "Create an environment in Python to demonstrate the effects of an unbalanced dataset." }, { "role": "assistant", "content": "import numpy as np\nimport matplotlib.pyplot as plt\n\n# Creating a dataset\nX = np.random.uniform(-1,1,100)\nY = np.random.uniform(-1,1,100)\...
code
python_general
en
9-10
computer_science
unknown
iamtarun/python_code_instructions_18k_alpaca
train-6241
UNSTATED
original
true
null
codefeedback_python-train-45798
[ { "role": "user", "content": "You are tasked with creating a Python decorator that measures the execution time of a function and prints the result. Your decorator should be able to handle both synchronous and asynchronous functions.\n\nCreate a decorator named `measure_execution_time` that takes a function ...
code
magicoder
en
11-12
computer_science
hard
m-a-p/CodeFeedback-Filtered-Instruction
train-45798
Apache-2.0 (as stated on card); card discloses part of the content is OpenAI-model-generated
transformed
true
filtered_to_python_only (upstream dataset spans 20 languages)
python_code_instructions_18k-train-11664
[ { "role": "user", "content": "Write a function in Python that prints the Fibonacci numbers" }, { "role": "assistant", "content": "def Fibonacci(n): \n\tif n<0: \n\t\tprint(\"Incorrect input\") \n\telif n==1: \n\t\treturn 0\n\telif n==2: \n\t\treturn 1\n\telse: \n\t\treturn Fibonacci(n-1)+Fibonac...
code
python_general
en
9-10
computer_science
unknown
iamtarun/python_code_instructions_18k_alpaca
train-11664
UNSTATED
original
true
null
codefeedback_python-train-73972
[ { "role": "user", "content": "Develop a code snippet for displaying a count-down timer, taking into consideration its potential complexity for advanced AI systems like ChatGPT and GPT-4 while ensuring human comprehension." }, { "role": "assistant", "content": "Here is a simple Python code snippe...
code
wizardcoder
en
11-12
computer_science
hard
m-a-p/CodeFeedback-Filtered-Instruction
train-73972
Apache-2.0 (as stated on card); card discloses part of the content is OpenAI-model-generated
transformed
true
filtered_to_python_only (upstream dataset spans 20 languages)
python_code_instructions_18k-train-17997
[ { "role": "user", "content": "Optimize a Python program to sort numeric data in ascending order.\n\n[3, 5, 2, 1, 4]" }, { "role": "assistant", "content": "def sort_list(nums):\n for i in range(len(nums)):\n min_value = min(nums[i:])\n min_index = nums[i:].index(min_value)\n nums[i], nu...
code
python_general
en
9-10
computer_science
unknown
iamtarun/python_code_instructions_18k_alpaca
train-17997
UNSTATED
original
true
null
python_code_instructions_18k-train-6880
[ { "role": "user", "content": "Create a Python program to convert a list of characters into a string\n\nConvert this array ['a', 'b', 'c'] into a string" }, { "role": "assistant", "content": "def list_to_str(arr):\n str = \"\"\n for i in arr:\n str += i\n return str\n\narr = ['a',...
code
python_general
en
9-10
computer_science
unknown
iamtarun/python_code_instructions_18k_alpaca
train-6880
UNSTATED
original
true
null
codefeedback_python-train-91550
[ { "role": "user", "content": "Design a function that calculates the factorial of a non-negative integer. This function should also be equipped to handle an additional optional parameter. If this parameter is provided, the function should produce the factorial of the integer raised to the power of the second...
code
wizardcoder
en
11-12
computer_science
hard
m-a-p/CodeFeedback-Filtered-Instruction
train-91550
Apache-2.0 (as stated on card); card discloses part of the content is OpenAI-model-generated
transformed
true
filtered_to_python_only (upstream dataset spans 20 languages)
python_code_instructions_18k-train-10726
[ { "role": "user", "content": "Optimize a Python program for calculating the sum of the first N numbers.\n\nn = 20" }, { "role": "assistant", "content": "def get_sum(n):\n return (n*(n+1)) // 2\n\nn = 20\nsum_of_num = get_sum(n)\n\nprint(\"Sum of first\", n, \"numbers is\", sum_of_num)" } ]
code
python_general
en
9-10
computer_science
unknown
iamtarun/python_code_instructions_18k_alpaca
train-10726
UNSTATED
original
true
null
codefeedback_python-train-46509
[ { "role": "user", "content": "You are tasked with implementing a Python function that takes a list of URLs as input and returns a dictionary containing the unique domain names as keys and the count of occurrences as values. The domain name should be extracted from the URLs, and any subdomains or paths shoul...
code
magicoder
en
11-12
computer_science
hard
m-a-p/CodeFeedback-Filtered-Instruction
train-46509
Apache-2.0 (as stated on card); card discloses part of the content is OpenAI-model-generated
transformed
true
filtered_to_python_only (upstream dataset spans 20 languages)
codefeedback_python-train-75686
[ { "role": "user", "content": "Develop a Python program that identifies and deletes the outliers from a given set of data using the Z-score method. Your program should then re-evaluate the modified data after outlier detection inorder to verify their impact on the average and standard deviation of the set.\n...
code
wizardcoder
en
11-12
computer_science
hard
m-a-p/CodeFeedback-Filtered-Instruction
train-75686
Apache-2.0 (as stated on card); card discloses part of the content is OpenAI-model-generated
transformed
true
filtered_to_python_only (upstream dataset spans 20 languages)
codefeedback_python-train-43817
[ { "role": "user", "content": "You are given a Python code snippet that processes molecular structures using the OpenEye OEChem toolkit. Your task is to create a function that calculates the torsion angle between four atoms in a molecule and returns the corresponding InChI key for the specific dihedral angle...
code
magicoder
en
11-12
computer_science
hard
m-a-p/CodeFeedback-Filtered-Instruction
train-43817
Apache-2.0 (as stated on card); card discloses part of the content is OpenAI-model-generated
transformed
true
filtered_to_python_only (upstream dataset spans 20 languages)
codefeedback_python-train-85187
[ { "role": "user", "content": "Write a regular expression pattern to match all the strings that start with a lowercase letter and contain at least one uppercase letter, one digit, and a special character." }, { "role": "assistant", "content": "In Python, you can use the `re` module and its `match...
code
wizardcoder
en
11-12
computer_science
hard
m-a-p/CodeFeedback-Filtered-Instruction
train-85187
Apache-2.0 (as stated on card); card discloses part of the content is OpenAI-model-generated
transformed
true
filtered_to_python_only (upstream dataset spans 20 languages)
python_code_instructions_18k-train-14859
[ { "role": "user", "content": "Write a Python function to filter a list of numbers and return only prime numbers." }, { "role": "assistant", "content": "def filter_prime_numbers(numbers):\n primes = []\n for num in numbers:\n if is_prime(num):\n primes.append(num)\n ret...
code
python_general
en
9-10
computer_science
unknown
iamtarun/python_code_instructions_18k_alpaca
train-14859
UNSTATED
original
true
null
codefeedback_python-train-30010
[ { "role": "user", "content": "Design a function in Python to find all the elements in an array that are divisible by 3. \n\nHowever, there are two additional requirements: \n1. The function must not use the modulo operator (%) or any other division operation to check for divisibility. You need to come up wi...
code
evolinstruct
en
11-12
computer_science
hard
m-a-p/CodeFeedback-Filtered-Instruction
train-30010
Apache-2.0 (as stated on card); card discloses part of the content is OpenAI-model-generated
transformed
true
filtered_to_python_only (upstream dataset spans 20 languages)
codefeedback_python-train-58006
[ { "role": "user", "content": "You are tasked with creating a Python module that manages controllers for a financial data export service. The module should contain classes for different controllers, each responsible for exporting data from a specific trading session to a database. The provided code snippet i...
code
magicoder
en
11-12
computer_science
hard
m-a-p/CodeFeedback-Filtered-Instruction
train-58006
Apache-2.0 (as stated on card); card discloses part of the content is OpenAI-model-generated
transformed
true
filtered_to_python_only (upstream dataset spans 20 languages)
codefeedback_python-train-12213
[ { "role": "user", "content": "Write a code to delete a node from a given AVL tree, while also maintaining the property of an AVL tree.\n\nNote: An AVL tree is a self-balancing binary search tree where the heights of the left and right subtrees of any node differ by at most 1.\n\nAdditional Requirements:\n1....
code
evolinstruct
en
11-12
computer_science
hard
m-a-p/CodeFeedback-Filtered-Instruction
train-12213
Apache-2.0 (as stated on card); card discloses part of the content is OpenAI-model-generated
transformed
true
filtered_to_python_only (upstream dataset spans 20 languages)
python_code_instructions_18k-train-147
[ { "role": "user", "content": "Write a Python program to generate an HTML table displaying information about the top 10 bestselling books in a specific genre.\n\nTable name: Books\nTable columns: id (int), title (string), author (string), genre (string), sales (int)" }, { "role": "assistant", "co...
code
python_general
en
9-10
computer_science
unknown
iamtarun/python_code_instructions_18k_alpaca
train-147
UNSTATED
original
true
null
codefeedback_python-train-77794
[ { "role": "user", "content": "Increase the difficulty of the given programming challenge.\n\nHere's a tougher task: Create a function that combines two given strings by alternating their letters, then reverse the combined result.\n\nComplete the following code:\nfrom typing import Tuple\n\ndef custom_mix_st...
code
wizardcoder
en
11-12
computer_science
hard
m-a-p/CodeFeedback-Filtered-Instruction
train-77794
Apache-2.0 (as stated on card); card discloses part of the content is OpenAI-model-generated
transformed
true
filtered_to_python_only (upstream dataset spans 20 languages)
codefeedback_python-train-43756
[ { "role": "user", "content": "You are given a list of egg weights and a target weight. Your task is to implement a dynamic programming function to find the minimum number of eggs required to achieve the target weight. Each egg can only be used once, and you can use any combination of eggs to reach the targe...
code
magicoder
en
11-12
computer_science
hard
m-a-p/CodeFeedback-Filtered-Instruction
train-43756
Apache-2.0 (as stated on card); card discloses part of the content is OpenAI-model-generated
transformed
true
filtered_to_python_only (upstream dataset spans 20 languages)
codefeedback_python-train-35189
[ { "role": "user", "content": "Change the last line of the code to assign a nested list value to the variable x, where each nested list contains only integers. Additionally, introduce an error in the code that needs to be fixed.\n\nx = None\nx[0] = [1, 2, 3]" }, { "role": "assistant", "content": ...
code
evolinstruct
en
11-12
computer_science
hard
m-a-p/CodeFeedback-Filtered-Instruction
train-35189
Apache-2.0 (as stated on card); card discloses part of the content is OpenAI-model-generated
transformed
true
filtered_to_python_only (upstream dataset spans 20 languages)
python_code_instructions_18k-train-13718
[ { "role": "user", "content": "Design a python program to create a new pair of integers from a given pair\n\nGiven a pair (1, 2), create a new pair (2, 3)" }, { "role": "assistant", "content": "def create_pair(a,b):\n c = a+1\n d = b+1\n return (c, d)" } ]
code
python_general
en
9-10
computer_science
unknown
iamtarun/python_code_instructions_18k_alpaca
train-13718
UNSTATED
original
true
null
python_code_instructions_18k-train-3593
[ { "role": "user", "content": "Create a function in Python which takes two strings and checks if they are anagrams.\n\n\"apple\", \"leapp\"" }, { "role": "assistant", "content": "def is_anagram(string1, string2): \n # Remove white spaces from strings \n string1 = string1.replace(\" \", \"\"...
code
python_general
en
9-10
computer_science
unknown
iamtarun/python_code_instructions_18k_alpaca
train-3593
UNSTATED
original
true
null
codefeedback_python-train-100212
[ { "role": "user", "content": "I have a 4 corpuses:\n\nC1 = ['hello','good','good','desk']\nC2 = ['nice','good','desk','paper']\nC3 = ['red','blue','green']\nC4 = ['good']\n\n\nI want to define a list of words, and for each - get the occurances per corpus.\nso if\n> l= ['good','blue']\nI will get\n\nres_df =...
code
wizardcoder
en
11-12
computer_science
hard
m-a-p/CodeFeedback-Filtered-Instruction
train-100212
Apache-2.0 (as stated on card); card discloses part of the content is OpenAI-model-generated
transformed
true
filtered_to_python_only (upstream dataset spans 20 languages)
codefeedback_python-train-147926
[ { "role": "user", "content": "Extend the calculation in #The Given Prompt# to include the sum of the next 10 consecutive odd natural numbers, starting from 5. Please present the final result in a table, where the first column shows the name of the numbers being added and the second column shows the calculat...
code
sharegpt
en
11-12
computer_science
hard
m-a-p/CodeFeedback-Filtered-Instruction
train-147926
Apache-2.0 (as stated on card); card discloses part of the content is OpenAI-model-generated
transformed
true
filtered_to_python_only (upstream dataset spans 20 languages)
python_code_instructions_18k-train-9584
[ { "role": "user", "content": "Write a Python program to print out the factorial of a number.\n\n7" }, { "role": "assistant", "content": "def factorial(x):\n factorial = 1\n while x > 1:\n factorial = factorial * x\n x = x - 1\n return factorial\n\nnumber = 7\nresult = fact...
code
python_general
en
9-10
computer_science
unknown
iamtarun/python_code_instructions_18k_alpaca
train-9584
UNSTATED
original
true
null
python_code_instructions_18k-train-3420
[ { "role": "user", "content": "Compute the factorial of a given number using a recursive function in Python." }, { "role": "assistant", "content": "def factorial(n):\n if n == 0:\n return 1\n else:\n return n * factorial(n-1)" } ]
code
python_general
en
9-10
computer_science
unknown
iamtarun/python_code_instructions_18k_alpaca
train-3420
UNSTATED
original
true
null
python_code_instructions_18k-train-6533
[ { "role": "user", "content": "Develop a Python program to demonstrate the use of **args and *kargs." }, { "role": "assistant", "content": "\"\"\"Demonstrates usage of *args and **kwargs\"\"\"\n\ndef my_func(*args, **kwargs):\n \"\"\"Prints arguments passed to the my_func() function\"\"\"\n f...
code
python_general
en
9-10
computer_science
unknown
iamtarun/python_code_instructions_18k_alpaca
train-6533
UNSTATED
original
true
null
codefeedback_python-train-127627
[ { "role": "user", "content": "Write a program that identifies the least frequently used word and its count in the text and once that is identified, find its index positions. Additionally, the program should also exclude commonly used stopwords from the analysis. \n\"Once upon a time in a land far, far away,...
code
wizardcoder
en
11-12
computer_science
hard
m-a-p/CodeFeedback-Filtered-Instruction
train-127627
Apache-2.0 (as stated on card); card discloses part of the content is OpenAI-model-generated
transformed
true
filtered_to_python_only (upstream dataset spans 20 languages)
python_code_instructions_18k-train-7652
[ { "role": "user", "content": "Construct a basic GUI calculator in Python." }, { "role": "assistant", "content": "import tkinter as tk\n\nwindow = tk.Tk()\nwindow.title(\"Calculator\")\nwindow.geometry(\"400x220\")\nwindow.resizable(0, 0)\n\ndef num(n):\n o.insert(\"end\", n)\n\ndef res():\n ...
code
python_general
en
9-10
computer_science
unknown
iamtarun/python_code_instructions_18k_alpaca
train-7652
UNSTATED
original
true
null
python_code_instructions_18k-train-8278
[ { "role": "user", "content": "Develop an API call in Python to fech data from a website.\n\nLink to website: www.example.com" }, { "role": "assistant", "content": "import requests \n\nURL = \"www.example.com\" \n \n# defining a params dict for the parameters to be sent to the API \nPARAMS = { }...
code
python_general
en
9-10
computer_science
unknown
iamtarun/python_code_instructions_18k_alpaca
train-8278
UNSTATED
original
true
null
codefeedback_python-train-19676
[ { "role": "user", "content": "Retrieve all the values from the nested dictionary and return them in a flattened list.\ndata_dict = {\n'key1': {\n 'inner_key1': \"1\",\n 'inner_key2': \"2\",\n 'inner_key3': {\n 'inner_inner_key1': \"5\",\n 'inner_inner_key2': \"6\"\n }\n},\n'key2': {\n 'inner_key1...
code
evolinstruct
en
11-12
computer_science
hard
m-a-p/CodeFeedback-Filtered-Instruction
train-19676
Apache-2.0 (as stated on card); card discloses part of the content is OpenAI-model-generated
transformed
true
filtered_to_python_only (upstream dataset spans 20 languages)
codefeedback_python-train-125747
[ { "role": "user", "content": "Increase the complexity of the given programming test.\n\nComplete the code segment with added constraint:\n\ndef peculiar_ordering(lst):\n '''\n Provided a list of integers and decimal numbers, return the list in an unusual order.\n The unusual ordering should adhere ...
code
wizardcoder
en
11-12
computer_science
hard
m-a-p/CodeFeedback-Filtered-Instruction
train-125747
Apache-2.0 (as stated on card); card discloses part of the content is OpenAI-model-generated
transformed
true
filtered_to_python_only (upstream dataset spans 20 languages)
codefeedback_python-train-121698
[ { "role": "user", "content": "Not only convert the following function into a recursive version, but also handle the possible issues of negative numbers and floating point as inputs. Implement extensive error checking for these edge cases. Design clean error messages that quickly direct the programmer's atte...
code
wizardcoder
en
11-12
computer_science
hard
m-a-p/CodeFeedback-Filtered-Instruction
train-121698
Apache-2.0 (as stated on card); card discloses part of the content is OpenAI-model-generated
transformed
true
filtered_to_python_only (upstream dataset spans 20 languages)
codefeedback_python-train-95190
[ { "role": "user", "content": "from what i understand about random forest alogirthm is that the algorithm randomly samples the original dataset to build a new sampled/bootstrapped dataset. the sampled dataset then turned into decision trees.\nin scikit learn, you can visualize each individual trees in random...
code
wizardcoder
en
11-12
computer_science
hard
m-a-p/CodeFeedback-Filtered-Instruction
train-95190
Apache-2.0 (as stated on card); card discloses part of the content is OpenAI-model-generated
transformed
true
filtered_to_python_only (upstream dataset spans 20 languages)
python_code_instructions_18k-train-4772
[ { "role": "user", "content": "What code would you write to implement an efficient binary search in Python?" }, { "role": "assistant", "content": "def binary_search(arr, target):\n low = 0\n high = len(arr) - 1\n\n while low <= high:\n mid = (low + high) // 2 # floor division\n guess = a...
code
python_general
en
9-10
computer_science
unknown
iamtarun/python_code_instructions_18k_alpaca
train-4772
UNSTATED
original
true
null
codefeedback_python-train-132805
[ { "role": "user", "content": "As I traverse the intricate journey of fabricating a resilient serverless framework, leveraging the prowess of Amazon Web Services (AWS) Lambda and API Gateway, I've stumbled upon initial hurdles. Could you illuminate a comprehensive, step-by-step schematic for proficiently ere...
code
wizardcoder
en
11-12
computer_science
hard
m-a-p/CodeFeedback-Filtered-Instruction
train-132805
Apache-2.0 (as stated on card); card discloses part of the content is OpenAI-model-generated
transformed
true
filtered_to_python_only (upstream dataset spans 20 languages)
codefeedback_python-train-108493
[ { "role": "user", "content": "Write a code that not only displays the current directory path in the terminal, but also lists out all subdirectories and files within it. For each file, your code should provide some basic information such as the file size, the date it was last modified, and its file type (e.g...
code
wizardcoder
en
11-12
computer_science
hard
m-a-p/CodeFeedback-Filtered-Instruction
train-108493
Apache-2.0 (as stated on card); card discloses part of the content is OpenAI-model-generated
transformed
true
filtered_to_python_only (upstream dataset spans 20 languages)
codefeedback_python-train-48002
[ { "role": "user", "content": "You are tasked with creating a web form for a blog application using Django. The form should include a field for users to input the content of their blog post. You have been provided with a code snippet from the Django forms module that creates a textarea widget for the content...
code
magicoder
en
11-12
computer_science
hard
m-a-p/CodeFeedback-Filtered-Instruction
train-48002
Apache-2.0 (as stated on card); card discloses part of the content is OpenAI-model-generated
transformed
true
filtered_to_python_only (upstream dataset spans 20 languages)
python_code_instructions_18k-train-17320
[ { "role": "user", "content": "Design a reinforcement learning agent for a given game using Python.\n\nA game description." }, { "role": "assistant", "content": "import numpy as np \n\n# Create the agent class\nclass ReinforcementLearningAgent:\n def __init__(self, environment, alpha=0.1, gamm...
code
python_general
en
9-10
computer_science
unknown
iamtarun/python_code_instructions_18k_alpaca
train-17320
UNSTATED
original
true
null
codefeedback_python-train-106704
[ { "role": "user", "content": "Are there examples of estimators that are minimax, but not efficient? Perhaps, to be more concrete, any of the following:\n\n- (strong) Estimator sequence for each $n$ that is minimax but does not match the Cramer-Rao lower bound for any $n$\n\n- (in-between) Estimator sequence...
code
wizardcoder
en
11-12
computer_science
hard
m-a-p/CodeFeedback-Filtered-Instruction
train-106704
Apache-2.0 (as stated on card); card discloses part of the content is OpenAI-model-generated
transformed
true
filtered_to_python_only (upstream dataset spans 20 languages)
codefeedback_python-train-60801
[ { "role": "user", "content": "You are tasked with creating a program that simulates the execution of a series of scripts. Each script is represented by a string, and the program must execute the scripts in the order they are provided. However, if any script returns a non-zero value, the program should stop ...
code
magicoder
en
11-12
computer_science
hard
m-a-p/CodeFeedback-Filtered-Instruction
train-60801
Apache-2.0 (as stated on card); card discloses part of the content is OpenAI-model-generated
transformed
true
filtered_to_python_only (upstream dataset spans 20 languages)
codefeedback_python-train-102909
[ { "role": "user", "content": "I have this problem : Pour Water with Obstacles\nDescription are as below: We are given an elevation map, `heights[i]` representing the height of the terrain at that index. The width at each index is 1. After `V` units of water fall at index `K`, how much water is at each index...
code
wizardcoder
en
11-12
computer_science
hard
m-a-p/CodeFeedback-Filtered-Instruction
train-102909
Apache-2.0 (as stated on card); card discloses part of the content is OpenAI-model-generated
transformed
true
filtered_to_python_only (upstream dataset spans 20 languages)
codefeedback_python-train-100285
[ { "role": "user", "content": "Write a program that takes two binary numbers as input, calculates the NOR for each corresponding pair of bits and then, stores those final bits into a new binary number. Ensure the program can handle binary numbers of any length, not just a single binary digit. The application...
code
wizardcoder
en
11-12
computer_science
hard
m-a-p/CodeFeedback-Filtered-Instruction
train-100285
Apache-2.0 (as stated on card); card discloses part of the content is OpenAI-model-generated
transformed
true
filtered_to_python_only (upstream dataset spans 20 languages)
codefeedback_python-train-51911
[ { "role": "user", "content": "You are tasked with creating a Python function that compares two files and asserts whether a specific portion of one file matches the content of another file. Your task is to implement the function that performs this comparison and raises an assertion error if the content does ...
code
magicoder
en
11-12
computer_science
hard
m-a-p/CodeFeedback-Filtered-Instruction
train-51911
Apache-2.0 (as stated on card); card discloses part of the content is OpenAI-model-generated
transformed
true
filtered_to_python_only (upstream dataset spans 20 languages)
python_code_instructions_18k-train-7005
[ { "role": "user", "content": "Edit the given python program to display the sum of all even numbers in the given list.\n\nlist = [1, 2, 3, 4, 5]" }, { "role": "assistant", "content": "list = [1, 2, 3, 4, 5]\n\ntotal = 0\nfor num in list:\n if (num % 2 == 0):\n total += num\nprint (total)" }...
code
python_general
en
9-10
computer_science
unknown
iamtarun/python_code_instructions_18k_alpaca
train-7005
UNSTATED
original
true
null
python_code_instructions_18k-train-7706
[ { "role": "user", "content": "Create a Python program to reverse a string in place.\n\n\"Hello World!\"" }, { "role": "assistant", "content": "def reverse_string_in_space(s): \n temp_list = list(s) \n start = 0\n end = len(temp_list) - 1\n \n while start < end: \n temp_list[s...
code
python_general
en
9-10
computer_science
unknown
iamtarun/python_code_instructions_18k_alpaca
train-7706
UNSTATED
original
true
null
codefeedback_python-train-85663
[ { "role": "user", "content": "Compose a regular expression that correctly identifies legal hexadecimal color code sequences. Additionally, ensure that your regular expression validates the correct 8-digit ARGB (alpha, red, green and blue) hexadecimal color code sequences too." }, { "role": "assistan...
code
wizardcoder
en
11-12
computer_science
hard
m-a-p/CodeFeedback-Filtered-Instruction
train-85663
Apache-2.0 (as stated on card); card discloses part of the content is OpenAI-model-generated
transformed
true
filtered_to_python_only (upstream dataset spans 20 languages)
python_code_instructions_18k-train-14015
[ { "role": "user", "content": "Create a function in Python that takes in a list and sorts it in ascending order.\n\n[3, 5, 1, 2, 9]" }, { "role": "assistant", "content": "def sortList(list):\n list.sort()\n return list\n\nprint(sortList([3, 5, 1, 2, 9])) # Output: [1, 2, 3, 5, 9]" } ]
code
python_general
en
9-10
computer_science
unknown
iamtarun/python_code_instructions_18k_alpaca
train-14015
UNSTATED
original
true
null
python_code_instructions_18k-train-15338
[ { "role": "user", "content": "Create an open-ended machine learning program in Python to classify a given dataset based on its features.\n\nNot applicable" }, { "role": "assistant", "content": "import pandas as pd\nimport numpy as np\nfrom sklearn.model_selection import train_test_split\nfrom sk...
code
python_general
en
9-10
computer_science
unknown
iamtarun/python_code_instructions_18k_alpaca
train-15338
UNSTATED
original
true
null
codefeedback_python-train-93946
[ { "role": "user", "content": "Write a Python code using Scikit-learn to load the digit dataset. Instead of implementing simple Naive Bayes, modify your training process to use Cross Validation with Gaussian Naive Bayes where you would need to determine the optimal number of folds. Additionally, implement di...
code
wizardcoder
en
11-12
computer_science
hard
m-a-p/CodeFeedback-Filtered-Instruction
train-93946
Apache-2.0 (as stated on card); card discloses part of the content is OpenAI-model-generated
transformed
true
filtered_to_python_only (upstream dataset spans 20 languages)
python_code_instructions_18k-train-12019
[ { "role": "user", "content": "Optimize the following Python code to remove any redundant operations.\n\nx = 0\nfor i in range(100):\n for j in range(100):\n x += i\n x += j" }, { "role": "assistant", "content": "x = 0\nfor i in range(100):\n x += i * 100\n for j in range(1...
code
python_general
en
9-10
computer_science
unknown
iamtarun/python_code_instructions_18k_alpaca
train-12019
UNSTATED
original
true
null
codefeedback_python-train-105046
[ { "role": "user", "content": "Develop a function that incorporates a dictionary into a tuple, ensuring the final output retains the tuple data structure. Additionally, the function should be able to handle nested dictionaries and convert them into nested tuples. The function should also be able to handle a ...
code
wizardcoder
en
11-12
computer_science
hard
m-a-p/CodeFeedback-Filtered-Instruction
train-105046
Apache-2.0 (as stated on card); card discloses part of the content is OpenAI-model-generated
transformed
true
filtered_to_python_only (upstream dataset spans 20 languages)
python_code_instructions_18k-train-14161
[ { "role": "user", "content": "Write a Python program to convert a given binary number to a decimal number.\n\n101101" }, { "role": "assistant", "content": "binary = input(\"Enter a binary number: \")\ndecimal = 0\nfor i in range(len(binary)):\n if binary[i] == '1': \n decimal += 2**(le...
code
python_general
en
9-10
computer_science
unknown
iamtarun/python_code_instructions_18k_alpaca
train-14161
UNSTATED
original
true
null
python_code_instructions_18k-train-7504
[ { "role": "user", "content": "Compute the sum of the first 100 natural numbers using a function in Python." }, { "role": "assistant", "content": "def sum_numbers(n):\n \"\"\"\n Computes the sum of the first `n` natural numbers\n \"\"\"\n s = 0\n for i in range(n):\n s += i+...
code
python_general
en
9-10
computer_science
unknown
iamtarun/python_code_instructions_18k_alpaca
train-7504
UNSTATED
original
true
null
codefeedback_python-train-99666
[ { "role": "user", "content": "Embark on the trailblazing creation and implementation of a groundbreaking, unified system that leverages the capabilities of quantum computing and sophisticated nanotechnology, with a particular focus on Quantum Nanotechnological Security (QNS), utilizing the Google Quantum Co...
code
wizardcoder
en
11-12
computer_science
hard
m-a-p/CodeFeedback-Filtered-Instruction
train-99666
Apache-2.0 (as stated on card); card discloses part of the content is OpenAI-model-generated
transformed
true
filtered_to_python_only (upstream dataset spans 20 languages)
python_code_instructions_18k-train-13486
[ { "role": "user", "content": "Write a Python program to create a dictionary from two lists where the first list contains keys and the second list contains values.\n\nkeys = ['a', 'b', 'c', 'd']\nvalues = [1, 2, 3, 4]" }, { "role": "assistant", "content": "def create_dictionary(keys, values):\n ...
code
python_general
en
9-10
computer_science
unknown
iamtarun/python_code_instructions_18k_alpaca
train-13486
UNSTATED
original
true
null
codefeedback_python-train-100013
[ { "role": "user", "content": "Refine the partially developed nested bracket management code to adhere to the following specifications:\n\nThe prototype function 'complex_brackets(lst)' provided below is incomplete. It takes a list with at least two strings, limited to open and close brackets '{', '}', '[', ...
code
wizardcoder
en
11-12
computer_science
hard
m-a-p/CodeFeedback-Filtered-Instruction
train-100013
Apache-2.0 (as stated on card); card discloses part of the content is OpenAI-model-generated
transformed
true
filtered_to_python_only (upstream dataset spans 20 languages)
codefeedback_python-train-104831
[ { "role": "user", "content": "Consider a rectangle, whose dimensions are accordingly, 20m for the length and 12m for the width. Within this confined plane figure, a circle is perfectly inscribed. Compute the greatest possible area this circle can occupy by implying the principles of geometry." }, { ...
code
wizardcoder
en
11-12
computer_science
hard
m-a-p/CodeFeedback-Filtered-Instruction
train-104831
Apache-2.0 (as stated on card); card discloses part of the content is OpenAI-model-generated
transformed
true
filtered_to_python_only (upstream dataset spans 20 languages)
codefeedback_python-train-42984
[ { "role": "user", "content": "Convert the following hexadecimal number FA to its binary form.\nFA" }, { "role": "assistant", "content": "11111010" } ]
code
evolinstruct
en
11-12
computer_science
hard
m-a-p/CodeFeedback-Filtered-Instruction
train-42984
Apache-2.0 (as stated on card); card discloses part of the content is OpenAI-model-generated
transformed
true
filtered_to_python_only (upstream dataset spans 20 languages)
python_code_instructions_18k-train-13263
[ { "role": "user", "content": "Create a Python program to parse a list of strings and print the words with odd length.\n\n['abc', 'hello', 'world']" }, { "role": "assistant", "content": "list = ['abc', 'hello', 'world']\n\nfor word in list:\n if (len(word) % 2 != 0):\n print(word)" } ...
code
python_general
en
9-10
computer_science
unknown
iamtarun/python_code_instructions_18k_alpaca
train-13263
UNSTATED
original
true
null
codefeedback_python-train-32097
[ { "role": "user", "content": "Change the following code to a yield statement so that it can be used as a generator. Additionally, modify the code to only generate the Fibonacci sequence up to a given number N. However, the code should also handle cases where N is not a positive integer and return an appropr...
code
evolinstruct
en
11-12
computer_science
hard
m-a-p/CodeFeedback-Filtered-Instruction
train-32097
Apache-2.0 (as stated on card); card discloses part of the content is OpenAI-model-generated
transformed
true
filtered_to_python_only (upstream dataset spans 20 languages)
codefeedback_python-train-123723
[ { "role": "user", "content": "Can you elaborate on the intricate techniques and key factors to consider when employing the IBM Watson AI for the execution of a thorough emotion detection in text data gathered from diverse online forums and discussion boards? Furthermore, could you explore the potential chal...
code
wizardcoder
en
11-12
computer_science
hard
m-a-p/CodeFeedback-Filtered-Instruction
train-123723
Apache-2.0 (as stated on card); card discloses part of the content is OpenAI-model-generated
transformed
true
filtered_to_python_only (upstream dataset spans 20 languages)
codefeedback_python-train-99382
[ { "role": "user", "content": "Given the initial $k$ terms of a sequence, it's impossible to definitively determine the subsequent term due to the infinite number of polynomial functions that could potentially model the sequence. For instance, consider the sequence of cube numbers, defined by the generating ...
code
wizardcoder
en
11-12
computer_science
hard
m-a-p/CodeFeedback-Filtered-Instruction
train-99382
Apache-2.0 (as stated on card); card discloses part of the content is OpenAI-model-generated
transformed
true
filtered_to_python_only (upstream dataset spans 20 languages)
codefeedback_python-train-60540
[ { "role": "user", "content": "You are tasked with creating a program that simulates the execution of a test suite for a build tool. The build tool uses a custom DSL (Domain Specific Language) to define and execute tests. The DSL consists of commands enclosed in quotes, where each command represents a specif...
code
magicoder
en
11-12
computer_science
hard
m-a-p/CodeFeedback-Filtered-Instruction
train-60540
Apache-2.0 (as stated on card); card discloses part of the content is OpenAI-model-generated
transformed
true
filtered_to_python_only (upstream dataset spans 20 languages)
codefeedback_python-train-156206
[ { "role": "user", "content": "How many elements does the following array contain, excluding duplicates and ignoring negative numbers? The array should be sorted in non-decreasing order. Array: [4, -2, 6, 1, 9, 7, 1, -2, 4]" }, { "role": "assistant", "content": "The array, excluding duplicates an...
code
evolinstruct
en
11-12
computer_science
hard
m-a-p/CodeFeedback-Filtered-Instruction
train-156206
Apache-2.0 (as stated on card); card discloses part of the content is OpenAI-model-generated
transformed
true
filtered_to_python_only (upstream dataset spans 20 languages)
python_code_instructions_18k-train-11507
[ { "role": "user", "content": "Create an API endpoint in Python to delete a record from a MongoDB database." }, { "role": "assistant", "content": "@app.route('/delete-record', methods=['DELETE'])\ndef delete_record():\n db = client.your_database # specify the correct database\n collection ...
code
python_general
en
9-10
computer_science
unknown
iamtarun/python_code_instructions_18k_alpaca
train-11507
UNSTATED
original
true
null
codefeedback_python-train-28413
[ { "role": "user", "content": "Increase the difficulty of the test by requiring the solution to handle a list of strings that contains special characters and to capitalize the first letter of each word within each string, while ignoring special characters.\n\nmylist = [\"this is a test!\", \"of the...\", \"d...
code
evolinstruct
en
11-12
computer_science
hard
m-a-p/CodeFeedback-Filtered-Instruction
train-28413
Apache-2.0 (as stated on card); card discloses part of the content is OpenAI-model-generated
transformed
true
filtered_to_python_only (upstream dataset spans 20 languages)
python_code_instructions_18k-train-13951
[ { "role": "user", "content": "Create a Python function that takes in two sets and returns a set containing the items that are in the first set but not in the second.\n\nset_A = {1, 2, 3, 4}, set_B = {2, 3, 5}" }, { "role": "assistant", "content": "def diff(set_A, set_B):\n res= set_A.difference...
code
python_general
en
9-10
computer_science
unknown
iamtarun/python_code_instructions_18k_alpaca
train-13951
UNSTATED
original
true
null
codefeedback_python-train-57291
[ { "role": "user", "content": "You are tasked with implementing a performance monitoring system for a computational software framework. The given code snippet is a part of the monitoring system and is responsible for printing out the function evaluations, derivative evaluations, and errors after running a co...
code
magicoder
en
11-12
computer_science
hard
m-a-p/CodeFeedback-Filtered-Instruction
train-57291
Apache-2.0 (as stated on card); card discloses part of the content is OpenAI-model-generated
transformed
true
filtered_to_python_only (upstream dataset spans 20 languages)
codefeedback_python-train-85442
[ { "role": "user", "content": "Create a program that identifies and returns all isogram words in a provided sentence. Subdermatoglyphic, uncopyrightable, and dermatoglyphics are examples of isograms." }, { "role": "assistant", "content": "An isogram is a word that does not repeat any letter; each...
code
wizardcoder
en
11-12
computer_science
hard
m-a-p/CodeFeedback-Filtered-Instruction
train-85442
Apache-2.0 (as stated on card); card discloses part of the content is OpenAI-model-generated
transformed
true
filtered_to_python_only (upstream dataset spans 20 languages)
python_code_instructions_18k-train-13150
[ { "role": "user", "content": "Build a Python script to multiply two integer values." }, { "role": "assistant", "content": "def multiply(a, b):\n return a * b\n\nprint(multiply(2, 3))" } ]
code
python_general
en
9-10
computer_science
unknown
iamtarun/python_code_instructions_18k_alpaca
train-13150
UNSTATED
original
true
null
End of preview. Expand in Data Studio

LUCA SFT Dataset

Supervised fine-tuning dataset assembled for LUCA, 10X Technologies' K-12 educational AI. This is an internal working dataset, uploaded privately for team access — not a public release.

Contents

  • luca_sft_train.jsonl — 248,122 records
  • luca_sft_eval.jsonl — 4,330 records
  • 252,452 total records, 0 verified train/eval leakage (question-level groups are kept atomic across the split — no shared underlying question appears in both train and eval)

Schema

Each line is a JSON object:

{
  "id": "string",
  "messages": [{"role": "user", "content": "..."}, {"role": "assistant", "content": "..."}],
  "category": "string",
  "subcategory": "string",
  "language": "en | hi | te",
  "grade_level": "pre-k | k-2 | 3-5 | 6-8 | 9-10 | 11-12 | general_k12 | unknown",
  "subject": "string",
  "difficulty": "easy | medium | hard | unknown",
  "source": "string (upstream dataset identifier)",
  "source_id": "string",
  "license": "string (per-source license, see below)",
  "provenance_type": "original | transformed | synthetic",
  "synthetic": "boolean",
  "transformation": "string | null"
}

Category breakdown

Category Count Target
general_instruction 74,000 74,000
math_reasoning 65,931 65,931
code 46,388 46,388
telugu_multilingual 35,000 35,000
science_educational 30,155 30,155
safety_refusal_uncertainty 978 10,000 (still filling — synthetic generation is rate-limited by upstream API quotas)

luca_identity (target 5,000) is not yet included — blocked pending an internal source file.

Source composition and licenses

Source Rows License Notes
allenai/math_qa 37,139 Apache-2.0 Human-authored (AQuA-RAT), GRE/GMAT-prep-style algebra — banded 11-12/hard, not general K-12
VenkataRamanaKurumallajaddangi/telugu-instructions-pure 35,000 Apache-2.0 (as stated) Machine-translated from English Alpaca/GPTeacher instruction data — NOT original Telugu authorship or curriculum content; translation engine used upstream is undocumented
m-a-p/CodeFeedback-Filtered-Instruction 30,000 Apache-2.0 (as stated); card discloses part of the content is OpenAI-model-generated Filtered to Python only, with an added scope filter to exclude non-K12 advanced topics; still skews toward harder/professional-grade code (11-12/hard band)
yahma/alpaca-cleaned 28,000 CC-BY-NC-4.0 (non-commercial) Generic instruction-following, not curriculum-grounded
ParthKadam2003/NCERT_Dataset 25,000 MIT (as stated; underlying NCERT-curriculum-alignment provenance not independently re-verified) Indian NCERT curriculum-aligned science content
ai4bharat/indic-instruct-data-v0.1 [dolly] 22,000 CC-BY-SA-3.0 (share-alike) Human-authored (Databricks employees), en + hi
meta-math/MetaMathQA 20,000 MIT (as stated) A large fraction of question/answer text is GPT-3.5-generated (per the MetaMath paper) despite the clean MIT tag — an unresolved OpenAI ToS question, same class of concern as the Alpaca-family sources
iamtarun/python_code_instructions_18k_alpaca 16,388 UNSTATED No license documented upstream at all
ai4bharat/indic-instruct-data-v0.1 [wikihow] 16,000 wikiHow-terms (not independently re-verified) — possible NC restriction wikiHow's own site terms are historically CC-BY-NC-SA if applicable to this content
openai/gsm8k 8,792 MIT Grade-school math word problems
ai4bharat/indic-instruct-data-v0.1 [anudesh] 8,000 Llama-2 Community License Responses generated by Llama-2-70B. This license explicitly prohibits using Llama-2 outputs "to improve any other large language model." Included here for internal use under an accepted project risk decision — see the internal license audit (configs/sources.yaml) before using this data to train any model, and do not redistribute further without re-reviewing this clause.
derek-thomas/ScienceQA 5,155 CC-BY-SA-4.0 (share-alike) Text-only subset (image-bearing rows excluded)
synthetic (Gemini) 866 10x_generated Synthetic safety-refusal data, generated via Gemini API (gemini-flash-lite-latest)
synthetic (Groq) 112 10x_generated Synthetic safety-refusal data, generated via Groq API (openai/gpt-oss-20b)

⚠️ License notice: this corpus mixes several licenses with real restrictions, most notably:

  • CC-BY-NC-4.0 and possible-NC wikiHow terms (non-commercial use only)
  • Llama-2 Community License (indic_instruct_anudesh) — explicitly prohibits using its outputs to train/improve other LLMs
  • UNSTATED license (python_code_instructions_18k)
  • CC-BY-SA-3.0 / CC-BY-SA-4.0 (share-alike obligations not independently evaluated for what they require of a corpus this data is folded into)

This dataset is uploaded privately for exactly this reason. Do not make this repository public, and do not redistribute it further, without re-reviewing the full per-source license audit in this project's configs/sources.yaml.

Known content characteristics (not defects — documented trade-offs)

  • Math and code skew toward the harder end of K-12 for a meaningful share of rows (MathQA's GRE/GMAT-prep style, CodeFeedback's advanced/professional-grade code) — banded 11-12/hard rather than silently mislabeled.
  • Telugu content is machine-translated generic instruction data, not original Telugu-authored or curriculum-grounded content.
  • grade_level and subject are heuristic/keyword-derived for several general-instruction sources (see src/classify/heuristics.py) — unknown is used rather than a fabricated label wherever no reliable signal exists.

Pipeline

Built via: normalize → structural filter → content filter (leakage/ boilerplate/artifact patterns) → per-source cap (internal dedup before sampling) → corpus-wide dedup (exact + normalized, question-level near-dup groups flagged) → category balancing → train/eval split (question-groups kept atomic, 0 leakage verified). Full pipeline source lives in this project's src/ and scripts/ directories; see progress.md for the complete decision log.

Downloads last month
16