Dataset Viewer
Auto-converted to Parquet Duplicate
domain
stringclasses
4 values
messages
listlengths
2
2
web_code
[ { "role": "user", "content": "" }, { "role": "assistant", "content": "" } ]
code_general
[ { "role": "user", "content": "Write a JavaScript function that takes a string argument and returns a count of all the times the letter 'a' appears in the string. Additionally, the function should also count the number of times the letter 'A' appears in the string, treating it as a different character than '...
code_general
[ { "role": "user", "content": "Generate an HTML page with a heading and a paragraph. The heading must have a font size of 24px and the paragraph must have a font size of 16px. Additionally, the heading must be centered both horizontally and vertically on the page. The paragraph must have a line height of 1.5...
reasoning
[ { "role": "user", "content": "Two circles of radius 3 are centered at $(0,3)$ and at $(3,0)$. What is the area of the intersection of the interiors of these two circles? Express your answer in terms of $\\pi$ in its simplest form." }, { "role": "assistant", "content": "" } ]
code_general
[ { "role": "user", "content": "Write a SQL query to get the top 5 employees with the highest salary in the company, considering only those who have been employed for at least 3 years." }, { "role": "assistant", "content": "SELECT TOP 5 employee_name, salary\nFROM employees\nWHERE DATEDIFF(year, h...
code_general
[ { "role": "user", "content": "Compute the sum of two given two-dimensional arrays. The sum of each corresponding element in the arrays must be a prime number. Additionally, the sum must be stored in a new array with the same dimensions as the original arrays.\n\n# Example Input\narray1 = [[2, 3, 5], [7, 11,...
web_code
[ { "role": "user", "content": "" }, { "role": "assistant", "content": "" } ]
web_code
[ { "role": "user", "content": "" }, { "role": "assistant", "content": "" } ]
web_code
[ { "role": "user", "content": "" }, { "role": "assistant", "content": "" } ]
reasoning
[ { "role": "user", "content": "Find the sum of the solutions to\n\\[\\frac{1}{\\sin x} + \\frac{1}{\\cos x} = 2 \\sqrt{2}\\]in the interval $0 \\le x \\le 2 \\pi.$" }, { "role": "assistant", "content": "" } ]
agent
[ { "role": "user", "content": "Issue ID: awelzel__flake8-gl-codeclimate-15" }, { "role": "assistant", "content": "" } ]
web_code
[ { "role": "user", "content": "" }, { "role": "assistant", "content": "" } ]
code_general
[ { "role": "user", "content": "Split a list into two parts, where the first part contains odd numbers and the second part contains even numbers. The list should be split in such a way that the first part maintains the relative order of odd numbers and the second part maintains the relative order of even numb...
code_general
[ { "role": "user", "content": "Compute the Minkowski distance between two lists, where each list can contain up to 10^6 elements. Additionally, the elements in each list can range from -10^9 to 10^9. \n\n#Erroneous code reference#\nlist_1 = [1, 2, 3, ..., 10^6]\nlist_2 = [-1, -2, -3, ..., -10^6]\n\n#Provide ...
web_code
[ { "role": "user", "content": "" }, { "role": "assistant", "content": "" } ]
reasoning
[ { "role": "user", "content": "4(299) + 3(299) + 2(299) + 298 = " }, { "role": "assistant", "content": "1. **Identify the common factor and apply the distributive property**: Notice that $299$ appears as a common factor in the first three terms. We can factor out $299$ from these terms:\n \\[\n...
agent
[ { "role": "user", "content": "Issue ID: sanic-org__sanic-2704" }, { "role": "assistant", "content": "" } ]
reasoning
[ { "role": "user", "content": "Let $T_i$ be the set of all integers $n$ such that $50i \\leq n < 50(i + 1)$. For example, $T_4$ is the set $\\{200, 201, 202, \\ldots, 249\\}$. How many of the sets $T_0, T_1, T_2, \\ldots, T_{1999}$ do not contain a perfect square?" }, { "role": "assistant", "cont...
web_code
[ { "role": "user", "content": "" }, { "role": "assistant", "content": "" } ]
agent
[ { "role": "user", "content": "Issue ID: simphony__simphony-remote-117" }, { "role": "assistant", "content": "" } ]
code_general
[ { "role": "user", "content": "Create a program in C that takes in two integers and adds them together. The program should also check if the sum is a prime number and print whether it is prime or not.\nint x = 2;\nint y = 3;" }, { "role": "assistant", "content": "Here's the program that takes two...
reasoning
[ { "role": "user", "content": "Given an ellipse $\\frac{x^{2}}{8} + \\frac{y^{2}}{2} = 1$, and a point $A(2,1)$ on the ellipse. The slopes of the lines $AB$ and $AC$ connecting point $A$ to two moving points $B$ and $C$ on the ellipse are $k_{1}$ and $k_{2}$, respectively, with $k_{1} + k_{2} = 0$. Determine...
reasoning
[ { "role": "user", "content": "Given positive numbers $a$ and $b$ satisfying $a+b=1$, $c\\in R$, find the minimum value of $\\frac{3a}{b{c}^{2}+b}+\\frac{1}{ab{c}^{2}+ab}+3c^{2}$." }, { "role": "assistant", "content": "" } ]
reasoning
[ { "role": "user", "content": "In triangle $\\triangle ABC$, with angles A, B, and C, the sides opposite these angles are labeled as $a, b,$ and $c$ respectively. Given the vectors $\\overrightarrow{m}=\\left( \\frac{a}{2}, \\frac{c}{2} \\right)$ and $\\overrightarrow{n}=(\\cos C, \\cos A)$, it is also known...
code_general
[ { "role": "user", "content": "Write a JavaScript function to check if a string ends with the given substring, but the function should be case-sensitive and should not use built-in string methods like endsWith() or slice()." }, { "role": "assistant", "content": "Here is a JavaScript function that...
web_code
[ { "role": "user", "content": "" }, { "role": "assistant", "content": "" } ]
code_general
[ { "role": "user", "content": "Please debug and modify the following program to count the number of unique words in the given text, where a word is defined as a sequence of alphabetic characters. Additionally, implement a function that returns the frequency of each unique word in the text. \n\ndef count_uniq...
reasoning
[ { "role": "user", "content": "Every day, the ram learns the same number of languages. By the evening of his birthday, he knew 1000 languages. On the first day of the same month, he knew 820 languages by evening, and on the last day of that month, he knew 1100 languages. When is the ram's birthday?" }, {...
web_code
[ { "role": "user", "content": "" }, { "role": "assistant", "content": "" } ]
code_general
[ { "role": "user", "content": "Using the given data structure, find and return the 3 highest numbers in descending order. The algorithm should have a time complexity of O(n log n) and use constant space. The input array will contain at most 10^5 integers, ranging from -10^9 to 10^9." }, { "role": "as...
code_general
[ { "role": "user", "content": "Create a dictionary with the item and their corresponding prices.\nApple - $2.99\nBanana - $0.99" }, { "role": "assistant", "content": "d = {'Apple': 2.99, 'Banana': 0.99}" } ]
agent
[ { "role": "user", "content": "Issue ID: zalando-stups__senza-535" }, { "role": "assistant", "content": "" } ]
agent
[ { "role": "user", "content": "Issue ID: tefra__xsdata-358" }, { "role": "assistant", "content": "" } ]
reasoning
[ { "role": "user", "content": "In the triangle $\\triangle ABC$, let $G$ be the centroid, and let $I$ be the center of the inscribed circle. Let $\\alpha$ and $\\beta$ be the angles at the vertices $A$ and $B$, respectively. Suppose that the segment $IG$ is parallel to $AB$ and that $\\beta = 2 \\tan^{-1} (1...
web_code
[ { "role": "user", "content": "" }, { "role": "assistant", "content": "" } ]
code_general
[ { "role": "user", "content": "Use the following code to create a dictionary of the words in the text and the frequency of their occurrence, but exclude common English words such as \"a\", \"the\", and \"and\" from the dictionary. Additionally, ensure that the program can handle text input with multiple para...
web_code
[ { "role": "user", "content": "" }, { "role": "assistant", "content": "" } ]
reasoning
[ { "role": "user", "content": "Given the word 'ARROW', find the probability that a random arrangement of its letters will have both R's next to each other." }, { "role": "assistant", "content": "" } ]
agent
[ { "role": "user", "content": "Issue ID: python-lsp__python-lsp-server-459" }, { "role": "assistant", "content": "" } ]
code_general
[ { "role": "user", "content": "Consider a deterministic finite automaton (DFA) with N states and M symbols in its input alphabet. Write a program to determine the set of reachable, non-reachable, and partially reachable states in the DFA.\n\nInput:\n- N: an integer representing the number of states in the DF...
web_code
[ { "role": "user", "content": "" }, { "role": "assistant", "content": "" } ]
reasoning
[ { "role": "user", "content": "What is the arithmetic mean of all positive two-digit multiples of 7?" }, { "role": "assistant", "content": "" } ]
code_general
[ { "role": "user", "content": "Given a list of sentence fragments, use a loop in Python to print each fragment on a separate line. The time complexity of your solution should still be O(n), where n is the length of the list. Additionally, you are not allowed to use any built-in Python functions or libraries ...
agent
[ { "role": "user", "content": "Issue ID: BlueBrain__NeuroM-1008" }, { "role": "assistant", "content": "" } ]
code_general
[ { "role": "user", "content": "Create a HTML page that includes a table with 3 columns and 3 rows." }, { "role": "assistant", "content": "<html>\n <head>\n <title>Table Example</title>\n </head>\n <body>\n <table>\n <tr>\n <th>Column 1 Header</th>\n <th>Column 2 Header...
code_general
[ { "role": "user", "content": "Find the length of the longest substring in the given string without repetition, where the substring must also be a palindrome.\nstring = \"abcbaeedefabcddcbaxyz\"" }, { "role": "assistant", "content": "The longest substring in the given string without repetition an...
web_code
[ { "role": "user", "content": "" }, { "role": "assistant", "content": "" } ]
agent
[ { "role": "user", "content": "Issue ID: googleapis__python-containeranalysis-251" }, { "role": "assistant", "content": "" } ]
web_code
[ { "role": "user", "content": "" }, { "role": "assistant", "content": "" } ]
agent
[ { "role": "user", "content": "Issue ID: iterative__dvc-6120" }, { "role": "assistant", "content": "" } ]
agent
[ { "role": "user", "content": "Issue ID: mozilla__bleach-423" }, { "role": "assistant", "content": "" } ]
reasoning
[ { "role": "user", "content": "Given an ellipse $E$ with eccentricity $\\frac{\\sqrt{2}}{2}$: $\\frac{x^{2}}{a^{2}}+ \\frac{y^{2}}{b^{2}}=1(a > b > 0)$ that passes through point $A(1, \\frac{\\sqrt{2}}{2})$.\n\n$(1)$ Find the equation of ellipse $E$; \n$(2)$ If a line $l$: $y= \\frac{\\sqrt{2}}{2}x+m$ that ...
web_code
[ { "role": "user", "content": "" }, { "role": "assistant", "content": "" } ]
agent
[ { "role": "user", "content": "Issue ID: netromdk__vermin-8" }, { "role": "assistant", "content": "" } ]
reasoning
[ { "role": "user", "content": "The quadrilateral \\(ABCD\\) is circumscribed around a circle with a radius of \\(1\\). Find the greatest possible value of \\(\\left| \\frac{1}{AC^2} + \\frac{1}{BD^2} \\right|\\)." }, { "role": "assistant", "content": "" } ]
web_code
[ { "role": "user", "content": "" }, { "role": "assistant", "content": "" } ]
agent
[ { "role": "user", "content": "Issue ID: iterative__dvc-7823" }, { "role": "assistant", "content": "" } ]
web_code
[ { "role": "user", "content": "" }, { "role": "assistant", "content": "" } ]
code_general
[ { "role": "user", "content": "Create a method to checkout the content of dictionary." }, { "role": "assistant", "content": "def check_dict(dictionary):\n for key in dictionary:\n print(key + \": \" + str(dictionary[key]))" } ]
agent
[ { "role": "user", "content": "Issue ID: lebrice__SimpleParsing-99" }, { "role": "assistant", "content": "" } ]
code_general
[ { "role": "user", "content": "Compare and contrast the features, differences, and limitations of Python and Java, providing a comprehensive analysis. Additionally, provide an example of erroneous code in either language and explain the specific error and how it can be fixed.\n\nWrite a program in Python tha...
agent
[ { "role": "user", "content": "Issue ID: adamchainz__time-machine-433" }, { "role": "assistant", "content": "" } ]
code_general
[ { "role": "user", "content": "Write a jQuery command to add a classname to an element only if it doesn't already have that classname." }, { "role": "assistant", "content": "To add a classname to an element only if it doesn't already have that classname using jQuery, you can use the `addClass()` ...
code_general
[ { "role": "user", "content": "Calculate the number of weekdays (Monday to Friday) between two given dates in Python, considering leap years.\ndate1 = '2020-09-13'\ndate2 = '2021-02-06'\n\n# Additional Requirements:\n1. Implement error handling for invalid date inputs.\n2. Account for leap years when calcula...
web_code
[ { "role": "user", "content": "" }, { "role": "assistant", "content": "" } ]
web_code
[ { "role": "user", "content": "" }, { "role": "assistant", "content": "" } ]
reasoning
[ { "role": "user", "content": "The numbers from 1 to 150, inclusive, are placed in a bag and a number is randomly selected from the bag. What is the probability it is neither a perfect square nor a perfect cube? Express your answer as a common fraction." }, { "role": "assistant", "content": "" ...
code_general
[ { "role": "user", "content": "Select the best approach to process large amount of data in parallel." }, { "role": "assistant", "content": "Using MapReduce." } ]
reasoning
[ { "role": "user", "content": "Ten circles of diameter 1 are arranged in the first quadrant of a coordinate plane. Five circles are in the base row with centers at $(0.5, 0.5)$, $(1.5, 0.5)$, $(2.5, 0.5)$, $(3.5, 0.5)$, $(4.5, 0.5)$, and the remaining five directly above the first row with centers at $(0.5, ...
web_code
[ { "role": "user", "content": "" }, { "role": "assistant", "content": "" } ]
agent
[ { "role": "user", "content": "Issue ID: PyCQA__flake8-bugbear-284" }, { "role": "assistant", "content": "" } ]
reasoning
[ { "role": "user", "content": "Evaluate $\\left\\lceil\\sqrt{140}\\right\\rceil$." }, { "role": "assistant", "content": "" } ]
reasoning
[ { "role": "user", "content": "Points $A$ and $B$ are on a circle of radius $5$ and $AB = 6$. Point $C$ is the midpoint of the minor arc $AB$. What is the length of the line segment $AC$?" }, { "role": "assistant", "content": "\n#### Step-by-step Explanation:\n\n**Solution 1: Using Trigonometry a...
reasoning
[ { "role": "user", "content": "Find $a_{2012}$ if $a_{n} \\equiv a_{n-1}+n(\\bmod 2012)$ and $a_{1}=1$." }, { "role": "assistant", "content": "Taking both sides modulo 2012, we see that $a_{n} \\equiv a_{n-1}+n(\\bmod 2012)$. Therefore, $a_{2012} \\equiv a_{2011}+2012 \\equiv a_{2010}+2011+2012 \...
agent
[ { "role": "user", "content": "Issue ID: ResearchObject__ro-crate-py-161" }, { "role": "assistant", "content": "" } ]
reasoning
[ { "role": "user", "content": "A rectangular park is to be fenced on three sides using a 150-meter concrete wall as the fourth side. Fence posts are to be placed every 15 meters along the fence, including at the points where the fence meets the concrete wall. Calculate the minimal number of posts required to...
code_general
[ { "role": "user", "content": "Generate a web service function in Python to return the current date and time." }, { "role": "assistant", "content": "import datetime\n\ndef get_current_time():\n now = datetime.datetime.now()\n return now.strftime(\"%Y-%m-%d %H:%M:%S\")" } ]
reasoning
[ { "role": "user", "content": "Antoine, Benoît, Claude, Didier, Étienne, and Françoise go to the cinéma together to see a movie. The six of them want to sit in a single row of six seats. But Antoine, Benoît, and Claude are mortal enemies and refuse to sit next to either of the other two. How many different a...
agent
[ { "role": "user", "content": "Issue ID: tsroten__dragonmapper-24" }, { "role": "assistant", "content": "" } ]
reasoning
[ { "role": "user", "content": "What is the smallest possible sum of two consecutive integers whose product is greater than 420?" }, { "role": "assistant", "content": "" } ]
agent
[ { "role": "user", "content": "Issue ID: sphinx-gallery__sphinx-gallery-573" }, { "role": "assistant", "content": "" } ]
code_general
[ { "role": "user", "content": "Describe in one sentence what is wrong with the following Java code and explain why it would not compile correctly: \n\npublic class Main {\n public static void main(String[] args) {\n int y;\n y = 10 + 5;\n y -= 30;\n y = \"hello\";\n Syst...
agent
[ { "role": "user", "content": "Issue ID: repobee__repobee-207" }, { "role": "assistant", "content": "" } ]
agent
[ { "role": "user", "content": "Issue ID: pydantic__pydantic-2479" }, { "role": "assistant", "content": "" } ]
reasoning
[ { "role": "user", "content": "A pizza is cut into 10 pieces. Two of the pieces are each \\(\\frac{1}{24}\\) of the whole pizza, four are each \\(\\frac{1}{12}\\), two are each \\(\\frac{1}{8}\\), and two are each \\(\\frac{1}{6}\\). A group of \\(n\\) friends share the pizza by distributing all of these pie...
reasoning
[ { "role": "user", "content": "Two regular tetrahedrons $A$ and $B$ are made with the 8 vertices of a unit cube. (this way is unique)\r\n\r\nWhat's the volume of $A\\cup B$ ?" }, { "role": "assistant", "content": "" } ]
code_general
[ { "role": "user", "content": "Create a HTML table element with n columns and m rows, where n and m are positive integers. The table should have alternating background colors for each row and each column should have a unique ID. The table cells should contain random integers ranging from 1 to 1000, and the c...
web_code
[ { "role": "user", "content": "" }, { "role": "assistant", "content": "" } ]
agent
[ { "role": "user", "content": "Issue ID: aequitas__python-rflink-39" }, { "role": "assistant", "content": "" } ]
reasoning
[ { "role": "user", "content": "Natural numbers are arranged according to the following pattern:\n\\begin{tabular}{cccc}\n$1-2$ & 5 & 10 & 17 \\\\\n$\\mid$ & $\\mid$ & $\\mid$ & $\\mid$ \\\\\n$4-3$ & 6 & 11 & 18 \\\\\n& $\\mid$ & $\\mid$ & $\\mid$ \\\\\n$9-8-7$ & 12 & 19 \\\\\n& $\\mid$ & $\\mid$ \\\\\n$16-15...
code_general
[ { "role": "user", "content": "Generate a Python dictionary containing the squares of the numbers from 1 to n, where n is a positive integer less than or equal to 100. Each square value in the dictionary should be unique." }, { "role": "assistant", "content": "def generate_squares_dict(n):\n s...
reasoning
[ { "role": "user", "content": "Compute the number of positive integers less than 10! which can be expressed as the sum of at most 4 (not necessarily distinct) factorials." }, { "role": "assistant", "content": "Since $0!=1!=1$, we ignore any possible 0!'s in our sums. Call a sum of factorials redu...
agent
[ { "role": "user", "content": "Issue ID: reata__sqllineage-58" }, { "role": "assistant", "content": "" } ]
agent
[ { "role": "user", "content": "Issue ID: scitokens__scitokens-193" }, { "role": "assistant", "content": "" } ]
reasoning
[ { "role": "user", "content": "Let $x$ and $y$ be real numbers, $y > x > 0,$ such that\n\\[\\frac{x}{y} + \\frac{y}{x} = 4.\\]Find the value of \\[\\frac{x + y}{x - y}.\\]" }, { "role": "assistant", "content": "" } ]
code_general
[ { "role": "user", "content": "Use Polyglot to detect the language of the following sentence\nDies ist ein Satz." }, { "role": "assistant", "content": "from polyglot.detect import Detector\n\nsentence = \"Dies ist ein Satz.\"\n\ndetector = Detector(sentence)\nprint(detector.language.name)\n\n# Ou...
reasoning
[ { "role": "user", "content": "Let $a$ and $b$ be positive integers satisfying $\\frac{ab+1}{a+b} < \\frac{3}{2}$. The maximum possible value of $\\frac{a^3b^3+1}{a^3+b^3}$ is $\\frac{p}{q}$, where $p$ and $q$ are relatively prime positive integers. Find $p+q$." }, { "role": "assistant", "content...
reasoning
[ { "role": "user", "content": "Let $b_1$, $b_2$, $b_3$, $c_1$, $c_2$, and $c_3$ be real numbers such that for every real number $x$, we have\n\\[\n x^6 - x^5 + x^4 - x^3 + x^2 - x + 1 = (x^2 + b_1 x + c_1)(x^2 + b_2 x + c_2)(x^2 + b_3 x + c_3). \n\\]Compute $b_1 c_1 + b_2 c_2 + b_3 c_3$." }, { "role...
web_code
[ { "role": "user", "content": "" }, { "role": "assistant", "content": "" } ]
reasoning
[ { "role": "user", "content": "A person flips $2010$ coins at a time. He gains one penny every time he flips a prime number of heads, but must stop once he flips a non-prime number. If his expected amount of money gained in dollars is $\\frac{a}{b}$ , where $a$ and $b$ are relatively prime, compute $...
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
29