Dataset Preview
Duplicate
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
Job has been terminated due to a temporary spike in resource usage and may be restarted later.
Error code:   JobManagerCrashedError

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

messages
list
meta
dict
[ { "role": "user", "content": "Using the Mutually Exclusive and Collectively Exhaustive (MECE) methodology, please formulate an elaborate and specific long-form content outline catering to our expert Fluent English writers. The subject matter would be 'Continuity Testers Egypt'. In addition, please present a...
{ "source": "wizardlm", "score": 0, "category": "generic_coding", "signals": [ "no_code_in_response(-0.5)" ] }
[ { "role": "user", "content": "You are tasked to implement a simple feedforward neural network with two hidden layers using TensorFlow. The network receives an input tensor `X` and performs the following transformations:\n\n1. Applies a linear transformation followed by a sigmoid activation to compute the fi...
{ "source": "opc_sft2", "score": 0.5, "category": "generic_coding", "signals": [ "detailed_problem_with_code_answer(+0.5)" ] }
[ { "role": "user", "content": "In this problem, we will focus on plotting a decision boundary determined by a vector `beta`. You are required to write a function named `plot_decision_boundary` that uses the numpy and matplotlib libraries to generate the boundary line. Here's the detailed breakdown:\n\n1. **F...
{ "source": "opc_sft2", "score": 0.5, "category": "generic_coding", "signals": [ "detailed_problem_with_code_answer(+0.5)" ] }
[ { "role": "user", "content": "If I have N subsets of the data, each with the same variables, and run logistic regressions on each subset, could I then take an average of the coefficients found to find an \"average\" model?\nFor example, a very large dataset of sensor data that could be split into subsets by...
{ "source": "magicoder", "score": 0, "category": "generic_coding", "signals": [ "no_code_in_response(-0.5)" ] }
[ { "role": "user", "content": ":\n### Polynomial Interpolation using Lagrange's Method\n\nLagrange interpolation is a popular method to find a polynomial that passes through a given set of points. Your task is to create a Python function that takes in two lists, `x` and `y`, which represent the x-coordinates...
{ "source": "opc_sft2", "score": 0.5, "category": "generic_coding", "signals": [ "detailed_problem_with_code_answer(+0.5)" ] }
[ { "role": "user", "content": "You are tasked with implementing a custom string class in C++ called `CustomString`. This class should have the following functionalities:\n1. A default constructor that initializes an empty string.\n2. A parameterized constructor that takes a C-style string (null-terminated ch...
{ "source": "magicoder_oss", "score": 0, "category": "generic_coding", "signals": [] }
[ { "role": "user", "content": "You are tasked with implementing a simple dice game simulation. The game proceeds as follows:\n- Roll two six-sided dice and sum their values.\n- If the sum is 2 or 12, the player loses immediately.\n- If the sum is 7 or 11, the player wins immediately.\n- If the sum is any oth...
{ "source": "opencodeinstruct", "score": 0.5, "category": "generic_coding", "signals": [ "detailed_problem_with_code_answer(+0.5)" ] }
[ { "role": "user", "content": "Generate a product description for a stainless steel kitchen sink." }, { "role": "assistant", "content": "Introducing our premium stainless steel kitchen sink – the ultimate addition to your modern kitchen! Crafted from top-quality 18-gauge, resilient stainless stee...
{ "source": "wizardlm", "score": 0, "category": "generic_coding", "signals": [ "no_code_in_response(-0.5)" ] }
[ { "role": "user", "content": "Create a function to serialize and deserialize an enumeration of weekdays using JSON. The function will define an Enum for weekdays, serialize it to a JSON string, and subsequently deserialize it back to an Enum object. Each day of the week in the JSON string should be represen...
{ "source": "opc_sft2", "score": 0.5, "category": "generic_coding", "signals": [ "detailed_problem_with_code_answer(+0.5)" ] }
[ { "role": "user", "content": "You are tasked with implementing an `InventoryManager` class for a small store's inventory system. The class should support the following operations:\n\n1. **Add Item**: Add a new item to the inventory or update the quantity if it already exists. The quantity must be greater th...
{ "source": "opencodeinstruct", "score": 0.5, "category": "generic_coding", "signals": [ "detailed_problem_with_code_answer(+0.5)" ] }
[ { "role": "user", "content": "**\n\nIn this problem, you will implement a crucial part of the backpropagation algorithm used in neural networks. Specifically, you will compute the gradients for the weights and biases for each layer of a neural network during the backpropagation phase.\n\nYou are given the f...
{ "source": "opc_sft2", "score": 0.5, "category": "generic_coding", "signals": [ "detailed_problem_with_code_answer(+0.5)" ] }
[ { "role": "user", "content": "Write a Python script that uses regular expressions to check whether a given URL is correctly formatted or not, also ensuring it uses HTTPS encryption. Additionally, provide functionality that would check if the domain name in the URL uses a top-level domain from a list of appr...
{ "source": "magicoder", "score": 0, "category": "generic_coding", "signals": [] }
[ { "role": "user", "content": "Provide a Python code snippet utilizing the Pandas library to purge every column that hosts any missing or null entries from a specific dataframe labelled 'df'. Multiple steps of reasoning are required." }, { "role": "assistant", "content": "In Python, you can use t...
{ "source": "magicoder", "score": 0, "category": "generic_coding", "signals": [] }
[ { "role": "user", "content": "Devise a C language program to construct an advanced arithmetic calculator with trigonometric and logarithmic functions." }, { "role": "assistant", "content": "Here is a simple console-based C program for calculator performing basic math, trigonometric and logarithm...
{ "source": "magicoder", "score": 0, "category": "generic_coding", "signals": [] }
[ { "role": "user", "content": "Create a 15-minute presentation that delves into the hidden symbolism behind Vincent van Gogh's \"Starry Night\". Explore how van Gogh utilized a variety of colors and brushstrokes to create the swirling night sky, and how these techniques were influenced by contemporary art mo...
{ "source": "wizardlm", "score": 0, "category": "generic_coding", "signals": [ "no_code_in_response(-0.5)" ] }
[ { "role": "user", "content": "You are tasked with creating a Rust program that involves defining an enum, a struct, and implementing a method for the enum. Your goal is to implement the missing parts of the program to make it compile and run successfully.\n\nGiven the following code snippet:\n\n```rust\n// ...
{ "source": "magicoder_oss", "score": 0.5, "category": "generic_coding", "signals": [ "detailed_problem_with_code_answer(+0.5)" ] }
[ { "role": "user", "content": "In the process of designing a user interface, it's important to understand the user's cognitive load and how it affects their experience. To dive deeper into this concept, I'd like to discuss a particular user flow in depth. It pertains to a non-visual component of our website,...
{ "source": "wizardlm", "score": 0, "category": "generic_coding", "signals": [ "no_code_in_response(-0.5)" ] }
[ { "role": "user", "content": "Fetches JSON data from a given URL, detects the encoding of the response content, and parses it. The content is verified to ensure it is valid JSON.\nThe function should raise the exception for: ValueError: If the content cannot be decoded as valid JSON.\nThe function should ou...
{ "source": "opc_sft2", "score": 0.5, "category": "generic_coding", "signals": [ "detailed_problem_with_code_answer(+0.5)" ] }
[ { "role": "user", "content": "I want to add a gradient fill to this SVG. Any suggestions?\n<svg width=\"32\" height=\"32\" viewBox=\"0 0 32 32\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M9 6C9 4 10.5 2 13 2H19C21.5 2 23 4 23 6V11H29C30.1046 11 31 11.8954 31 13V16C31 17.0713 30.1577 17....
{ "source": "magicoder", "score": 0, "category": "generic_coding", "signals": [] }
[ { "role": "user", "content": "You are tasked with implementing a simple UDP server using Python's `socket` library. The server should be able to bind to a specific IP address and port, listen for incoming data, and perform certain actions based on the data received.\n\nYour task is to write a function calle...
{ "source": "opc_sft2", "score": 0.5, "category": "generic_coding", "signals": [ "detailed_problem_with_code_answer(+0.5)" ] }
[ { "role": "user", "content": "You are tasked with developing a function `benchmark_sorting_performance` that evaluates the performance of a provided sorting function over a given number of trials. This function will:\n\n1. Generate random lists of integers.\n2. Sort these lists using the provided sorting fu...
{ "source": "opc_sft2", "score": 0.5, "category": "generic_coding", "signals": [ "detailed_problem_with_code_answer(+0.5)" ] }
[ { "role": "user", "content": "Compose a comprehensive and in-depth research paper that analyzes and explores the multifaceted and complex issues faced by the field of [Robotics] in the contemporary era. The research paper should include an analysis of the historical context and evolution of the field, the c...
{ "source": "wizardlm", "score": 0, "category": "generic_coding", "signals": [ "no_code_in_response(-0.5)" ] }
[ { "role": "user", "content": "Fix: Add type id attribute in modeling\n\n(Language: Java)\n\npackage sizebay.catalog.client.model;\n\nimport java.util.*;\nimport com.fasterxml.jackson.annotation.JsonValue;\nimport lombok.*;\n\n@Getter\n@Setter\npublic class Modeling {\n \n private Long id;\n private Str...
{ "source": "commitpackft", "score": 0, "category": "generic_coding", "signals": [] }
[ { "role": "user", "content": "Using the provided XML data, can you calculate the exact number of feet in 2.5 miles and output the result? Please demonstrate your ability to handle complex data structures and perform multi-step calculations accurately." }, { "role": "assistant", "content": "Certa...
{ "source": "wizardlm", "score": 0, "category": "generic_coding", "signals": [] }
[ { "role": "user", "content": "In this problem, you are asked to implement a Python function `backward_elimination(x, y, p)` that performs backward elimination to select the most significant features from a given dataset `x` with respect to a dependent variable `y`. The elimination process should be based on...
{ "source": "opc_sft2", "score": 0.5, "category": "generic_coding", "signals": [ "detailed_problem_with_code_answer(+0.5)" ] }
[ { "role": "user", "content": "You are tasked with writing a function that finds the `k` closest points to the origin from a given list of 2D coordinates. Each point is represented as a tuple `\\( (x, y) \\)`, and its distance from the origin is calculated using the Euclidean norm: \\( \\sqrt{x^2 + y^2} \\)....
{ "source": "opc_sft2", "score": 0.5, "category": "generic_coding", "signals": [ "detailed_problem_with_code_answer(+0.5)" ] }
[ { "role": "user", "content": "Use string symbol kind for markdown symbols\n\n(Language: TypeScript)\n\n/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See Licen...
{ "source": "commitpackft", "score": 0, "category": "generic_coding", "signals": [] }
[ { "role": "user", "content": "Disable password change on the client\n\n(Language: JavaScript)\n\n(function() {\n 'use strict';\n\n angular\n .module('sentryApp')\n .config(stateConfig);\n\n stateConfig.$inject = ['$stateProvider'];\n\n function stateConfig($stateProvider) {\n ...
{ "source": "commitpackft", "score": 0, "category": "generic_coding", "signals": [] }
[ { "role": "user", "content": "You are tasked with creating a Go program that generates error and syscall strings based on the given error and signal tables. The program should output the error table and signal table as Go code, with each error and signal paired with its corresponding string. The program sho...
{ "source": "glaive_v3", "score": 0, "category": "generic_coding", "signals": [] }
[ { "role": "user", "content": "How can I use R to make the upcoming event reminder notification even more visually appealing? \nI have created the HTML page for the notification using the following code:\n<!DOCTYPE html>\n<html>\n<head>\n\t<title>Upcoming Event Reminder</title>\n\t<style>\n\t\t.notification ...
{ "source": "wizardlm", "score": 0.5, "category": "generic_coding", "signals": [ "detailed_problem_with_code_answer(+0.5)" ] }
[ { "role": "user", "content": "You are tasked with implementing a class `Employee` that models an employee's details including their name, ID, department, and salary. The class should support a method to apply a salary increase based on a given percentage. Your implementation should pass the following test c...
{ "source": "opencodeinstruct", "score": 0.5, "category": "generic_coding", "signals": [ "detailed_problem_with_code_answer(+0.5)" ] }
[ { "role": "user", "content": "Imagine a situation where you are solving a crossword puzzle and the clue reads, \"A strong feeling of determination towards one's desired profession, expressed without using any synonyms for thrill or enthusiasm.\" How would you fill in the blanks to complete the puzzle?" },...
{ "source": "wizardlm", "score": 0, "category": "generic_coding", "signals": [ "no_code_in_response(-0.5)" ] }
[ { "role": "user", "content": "You are given a string `s`. Your task is to implement a function `count_unique_words` that returns a dictionary. The keys of the dictionary should be the unique words in the string, and the values should be the number of times each word appears. The function should be case-inse...
{ "source": "opencodeinstruct", "score": 0.5, "category": "generic_coding", "signals": [ "detailed_problem_with_code_answer(+0.5)" ] }
[ { "role": "user", "content": "i'm learning php, can you translate this code?\ndef below_threshold(l: list, t: int) -> bool:\n for num in l:\n if num > t:\n return False\n return True\ni'd like to fully understand the translation; could you add notes to the php code?" }, { "ro...
{ "source": "magicoder", "score": 0, "category": "generic_coding", "signals": [] }
[ { "role": "user", "content": "In this problem, you will create a function named `plot_linear_separator` that visualizes a linear decision boundary for a two-dimensional dataset using the `matplotlib` library. This function will take in parameters related to a linear equation and will plot the decision bound...
{ "source": "opc_sft2", "score": 0.5, "category": "generic_coding", "signals": [ "detailed_problem_with_code_answer(+0.5)" ] }
[ { "role": "user", "content": "Develop a mathematical function with given input parameters that yields a specific output utilizing any arithmetic operations as appropriate." }, { "role": "assistant", "content": "To solve this problem, we first need to understand the input parameters and the desir...
{ "source": "magicoder", "score": 0, "category": "generic_coding", "signals": [] }
[ { "role": "user", "content": "You are tasked with implementing a function that processes a given input and performs specific actions based on the input type. The input can be of type `string`, `number`, or `boolean`. The function should handle each input type differently and return a corresponding result. A...
{ "source": "magicoder_oss", "score": 0, "category": "generic_coding", "signals": [] }
[ { "role": "user", "content": "CREATE TABLE company (\n id INT PRIMARY KEY,\n name VARCHAR(50),\n address VARCHAR(100),\n industry VARCHAR(50)\n);\n\nCREATE TABLE legal_risk (\n id INT PRIMARY KEY,\n company_id INT,\n risk_type VARCHAR(50),\n risk_description VARCHAR(500),\n risk_impact VARCHAR(500)...
{ "source": "wizardlm", "score": 0, "category": "generic_coding", "signals": [] }
[ { "role": "user", "content": "You are tasked with creating a FollowPresenter interface and implementing a FollowPresenterImpl class in TypeScript. The FollowPresenter interface should have the following methods:\n\n1. getTargetCount(viewSize: Size, framePosition: Point): number - This method should return t...
{ "source": "glaive_v3", "score": 0, "category": "generic_coding", "signals": [] }
[ { "role": "user", "content": "Construct a Java-coded software to perform a comparative analysis on two character sequences, assessing their equality or disparity. Comprising character sequence one as \"Hello\" and character sequence two as \"World\"." }, { "role": "assistant", "content": "For th...
{ "source": "magicoder", "score": 0, "category": "generic_coding", "signals": [] }
[ { "role": "user", "content": "You are tasked with implementing an image processing function using the OpenCV library in Python. This function will read an input image, convert it to grayscale, apply a binary threshold, and then add text to the processed image before displaying it in a window.\n\nFunction Na...
{ "source": "opc_sft2", "score": 0.5, "category": "generic_coding", "signals": [ "detailed_problem_with_code_answer(+0.5)" ] }
[ { "role": "user", "content": "Here is a step-by-step approach for exhibiting an isometric cube using React Three Fiber along with the code examples. The instructions to install the React Three Fiber package via npm can be extended with additional details on how to configure the package for different operati...
{ "source": "wizardlm", "score": 0.5, "category": "generic_coding", "signals": [ "detailed_problem_with_code_answer(+0.5)" ] }
[ { "role": "user", "content": "How can I develop a Swift program that generates a comprehensive comparative analysis of skiing and snowboarding based on the user's input and outputs the data in an Excel table? \nThe program should prompt the user to provide their preferred winter sport, analyze the pros and ...
{ "source": "wizardlm", "score": 0, "category": "generic_coding", "signals": [] }
[ { "role": "user", "content": "You are tasked with solving a system of linear equations using numpy, a widely used library for numerical operations in Python. You need to define a function `solve_system_of_equations()` that calculates the solution of the following system:\n\n\\[ \n\\begin{align*}\nx_1 - 2x_2...
{ "source": "opc_sft2", "score": 0.5, "category": "generic_coding", "signals": [ "detailed_problem_with_code_answer(+0.5)" ] }
[ { "role": "user", "content": "Write a Python function to check whether a given object has a `name` attribute. If not, return a string `\"No name provided\"`." }, { "role": "assistant", "content": "To check if an object has a `name` attribute and return the corresponding string, you can use the `...
{ "source": "selfoss_sc2", "score": 0, "category": "generic_coding", "signals": [] }
[ { "role": "user", "content": "You are working on a mobile application that requires the implementation of push notifications. You have successfully set up basic notifications, and now you need to configure tag-based notifications and advanced options. Your task is to write the code to add these Push Notific...
{ "source": "glaive_v3", "score": 0, "category": "generic_coding", "signals": [ "no_code_in_response(-0.5)" ] }
[ { "role": "user", "content": "Write a function that reverses a string if it starts with a vowel, otherwise, it returns the string in its original order." }, { "role": "assistant", "content": "Here is the code to solve this problem: \n```python\ndef reverse_if_vowel_start(word):\n vowels = ['a...
{ "source": "opc_sft2", "score": 0, "category": "generic_coding", "signals": [] }
[ { "role": "user", "content": "Explain quantum computing, its potential applications, and impact it will have on the computing industry in the next decade, highlighting the challenges in implementing it at scale." }, { "role": "assistant", "content": "Quantum computing is a new paradigm of comput...
{ "source": "wizardlm", "score": 0, "category": "generic_coding", "signals": [ "no_code_in_response(-0.5)" ] }
[ { "role": "user", "content": "Extract the information from the given dictionary\nDictionary: {'constellation': 'Orion', 'coordinates': '05h 35m', 'visible_thru': 'November to February'}" }, { "role": "assistant", "content": "You can extract all the information from a dictionary in Python by usin...
{ "source": "magicoder", "score": 0, "category": "generic_coding", "signals": [] }
[ { "role": "user", "content": "You are tasked with implementing a function to compute the nth Fibonacci number efficiently. Utilize dynamic programming to optimize the recursive approach. Your function should handle large values of n efficiently.\n\n**Input:**\n- An integer `n` (0 ≤ n ≤ 1000)\n\n**Output:**\...
{ "source": "opencodeinstruct", "score": 0.5, "category": "generic_coding", "signals": [ "detailed_problem_with_code_answer(+0.5)" ] }
[ { "role": "user", "content": "Write a python function to find the smallest possible gap between any two elements in the list. If the input list is empty or has only one element, the function should return None." }, { "role": "assistant", "content": "Here is the code to solve this problem: \n```p...
{ "source": "opc_sft2", "score": 0, "category": "generic_coding", "signals": [] }
[ { "role": "user", "content": "Write a function to find the number of times a given substring appears in a string, ignoring case sensitivity." }, { "role": "assistant", "content": "Here is the code to solve this problem: \n```python\ndef count_substring_ignore_case(string, substring):\n return...
{ "source": "opc_sft2", "score": 0, "category": "generic_coding", "signals": [] }
[ { "role": "user", "content": "Fix the code: from nltk import pos_tag\ntagged = pos_tag(tokens)\n\nRefine the POS tagging by adding lemmatization and filtering out non-noun tags..." }, { "role": "assistant", "content": "```python\nfrom nltk import pos_tag\nfrom nltk.corpus import wordnet\nfrom nl...
{ "source": "python25k", "score": 0, "category": "generic_coding", "signals": [] }
[ { "role": "user", "content": "Reads a CSV file from a given file path and calculates the mean of each numerical column. If the directory does not exist, creates the directory and raises an Exception if the file cannot be read. If the CSV file contains any non-numeric data in cells expected to be numeric, th...
{ "source": "opc_sft2", "score": 0.5, "category": "generic_coding", "signals": [ "detailed_problem_with_code_answer(+0.5)" ] }
[ { "role": "user", "content": "How can environmental factors impact the longevity of civilizations? What changes can be made to prevent environmental degradation and ensure sustainability?\n\nSoil quality is an essential ecological factor that can significantly impact the sustainability and collapse of civil...
{ "source": "wizardlm", "score": 0, "category": "generic_coding", "signals": [ "no_code_in_response(-0.5)" ] }
[ { "role": "user", "content": "How can I add a customizable box shadow to a React Native component with varied blur radius, offset and color, and a crisp edge that doesn't affect the layout or sizing? How can I guarantee that the box shadow scales proportionally with changes in pixel density, screen resoluti...
{ "source": "wizardlm", "score": 0, "category": "generic_coding", "signals": [] }
[ { "role": "user", "content": "Write a python function to check if a given list of words is lexicographically sorted." }, { "role": "assistant", "content": "Here is the code to solve this problem: \n```python\ndef is_lexicographically_sorted(words):\n return words == sorted(words)\n\nassert is...
{ "source": "opc_sft2", "score": 0, "category": "generic_coding", "signals": [] }
[ { "role": "user", "content": "Write a Python function `plot_exponential_decay()` that utilizes `numpy` and `matplotlib` libraries to plot the exponential decay of a randomly generated value. The function should adjust the decay rate incrementally from 0 to 0.0005 in steps of 0.001. During each step of decay...
{ "source": "opc_sft2", "score": 0.5, "category": "generic_coding", "signals": [ "detailed_problem_with_code_answer(+0.5)" ] }
[ { "role": "user", "content": "You are working on building a neural network from scratch, and you need to compute the loss function for classification tasks. One of the most commonly used loss functions in classification is the cross-entropy loss. Given a set of predicted probabilities for each class and the...
{ "source": "opc_sft2", "score": 0.5, "category": "generic_coding", "signals": [ "detailed_problem_with_code_answer(+0.5)" ] }
[ { "role": "user", "content": "Write a function to check if the array contains a mountain subarray.\n\nA mountain subarray is a contiguous subarray that has the following properties:\n- The subarray has at least three elements.\n- There exists a peak element in the subarray such that all elements to the left...
{ "source": "opc_sft2", "score": 0, "category": "generic_coding", "signals": [] }
[ { "role": "user", "content": "Can you provide a comprehensive explanation of the XML data format utilized in the e-wallet puzzle? This should include an in-depth analysis of each element and attribute present, along with a detailed description of the functions they perform within the puzzle. Furthermore, co...
{ "source": "wizardlm", "score": 0, "category": "generic_coding", "signals": [ "no_code_in_response(-0.5)" ] }
[ { "role": "user", "content": "What is the ultimate aim behind the creation of \"A Courses In Miracles?\" Could it be regarded as an attempt to establish an all-encompassing system of spiritual thought that provides a comprehensive worldview and practical guidance on the path towards personal transformation ...
{ "source": "wizardlm", "score": 0, "category": "generic_coding", "signals": [ "no_code_in_response(-0.5)" ] }
[ { "role": "user", "content": "You are tasked with creating a program that utilizes Docker to run a container with a specified command and a Seccomp profile. The program should pull the Docker image if it has not already been pulled, create a container, run the command, and handle any errors or timeouts that...
{ "source": "glaive_v3", "score": 0, "category": "generic_coding", "signals": [] }
[ { "role": "user", "content": "Identify the byte sequence that produces the following output.\nHello World!" }, { "role": "assistant", "content": "48 65 6c 6c 6f 20 57 6f 72 6c 64 21" } ]
{ "source": "codealpaca", "score": 0, "category": "generic_coding", "signals": [ "no_code_in_response(-0.5)", "very_short_exchange(-0.5)" ] }
[ { "role": "user", "content": "You are tasked with creating a type checking utility for a React component library. The utility should ensure that the props passed to the components adhere to the specified types. The code snippet provided is a part of the type checking configuration for a component called `Ch...
{ "source": "magicoder_oss", "score": 0.5, "category": "generic_coding", "signals": [ "detailed_problem_with_code_answer(+0.5)" ] }
[ { "role": "user", "content": "You are tasked with implementing a collaborative filtering algorithm to recommend items to users based on their past interactions. Collaborative filtering is a technique commonly used in recommendation systems to predict the interests of a user by collecting preferences from ma...
{ "source": "magicoder_oss", "score": 0, "category": "generic_coding", "signals": [] }
[ { "role": "user", "content": "Write a python function to determine the most frequent element in a list. If there is no element that appears more than half of the size of the list, return 0." }, { "role": "assistant", "content": "Here is the code to solve this problem: \n```python\nfrom collectio...
{ "source": "opc_sft2", "score": 0, "category": "generic_coding", "signals": [] }
[ { "role": "user", "content": "i used ocr to get this python code, but it's filled with errors. can you help?\nimpont_ne\n\nd€f validate 5tr1ng(s}:\n# Stniq non-alp#abetic c#aracterz fnom s7art and end of ztring\ns = re.5u8('^[^a-z4-Z]+', ''._$)\ns = re.sub('[^a-z@=S]+$', ''. s)\n\n# Che(k for presen(e of ml...
{ "source": "magicoder", "score": 0, "category": "generic_coding", "signals": [] }
[ { "role": "user", "content": "Add Chapter 25, exercise 8\n\n(Language: C++)" }, { "role": "assistant", "content": "// Chapter 25, exercise 8: write out the numerical values of each character on\n// your keyboard\n\n#include<iostream>\n\nusing namespace std;\n\nvoid print(char ch)\n{\n cout <<...
{ "source": "commitpackft", "score": 0, "category": "generic_coding", "signals": [] }
[ { "role": "user", "content": "I have the following segment of C++ code that calculates a result using three variables: x, y, and z. However, I would like to optimize this code by reducing its length without affecting its functionality. Can you suggest a revised version of this code that accomplishes this?\n...
{ "source": "glaive_v3", "score": 0, "category": "generic_coding", "signals": [] }
[ { "role": "user", "content": "Write a Python decorator function called `check_input_type` that checks the input type of a function. If the input type is valid, the function should return the result of the decorated function. Otherwise, the function should return the string \"Invalid input type\". The decora...
{ "source": "selfoss_sc2", "score": 0.5, "category": "generic_coding", "signals": [ "detailed_problem_with_code_answer(+0.5)" ] }
[ { "role": "user", "content": "Provide a Python function that takes a list of strings and removes any words that include numbers or special characters. The function should also handle errors if the input provided is not a list or if the elements in the list are not of string type. Ensure you document the dec...
{ "source": "magicoder", "score": 0, "category": "generic_coding", "signals": [] }
[ { "role": "user", "content": "Design a Go program that manages pricing plans for a cloud service provider. Each plan has a base price and a set of features, which include storage, stages, backups, and scaling options. The program should be able to:\n\n1. Represent the pricing plans with their respective fea...
{ "source": "opc_sft2", "score": 0, "category": "generic_coding", "signals": [] }
[ { "role": "user", "content": "You are required to write a function that will check whether a given integer is a prime number or not. To accomplish this, make use of the `math.ceil` and `math.sqrt` functions from the Python `math` library.\n\nA prime number is a natural number greater than 1 that has no posi...
{ "source": "opc_sft2", "score": 0.5, "category": "generic_coding", "signals": [ "detailed_problem_with_code_answer(+0.5)" ] }
[ { "role": "user", "content": "You are tasked with creating a function to compute and write radiation fluxes for different radiation length scales. The function should read data from CSV files, process the data, and then write the computed radiation fluxes and standard deviations to new CSV files. The radiat...
{ "source": "glaive_v3", "score": 0, "category": "generic_coding", "signals": [] }
End of preview.

Gemma 4 Cleaned Coding Dataset

This dataset has been specially cleaned and formatted for fine-tuning large language models like Gemma 4 (31B) using LoRA and Unsloth.

It contains filtered instruction-following coding examples derived from the coding-instruct-370k dataset, optimized for multi-turn chat and code generation tasks.

Dataset Structure

The dataset follows a standard chat template format with the following columns:

  • messages: A list of dictionaries containing role (user / model) and content.
  • meta: Additional metadata used for source tracking and filtering.

Sources & Composition

This dataset incorporates data from all 10 open-source coding instruction datasets:

  1. WizardLM
  2. Magicoder
  3. OpenCoder / OPC_SFT2
  4. Magicoder-OSS
  5. Evol-Instruct
  6. Code-Contests
  7. LeetCode Datasets
  8. MBPP (Mostly Basic Python Problems)
  9. HumanEval-X
  10. CodeFeedback

Usage

You can load this dataset directly using the Hugging Face datasets library:

from datasets import load_dataset

dataset = load_dataset("Ali000007/gemma4-cleaned-dataset", split="train")
Downloads last month
52