Dataset Preview
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed
Error code: DatasetGenerationError
Exception: CastError
Message: Couldn't cast
id: string
prompt: string
expect_contains_any: list<item: string>
child 0, item: string
fail_if: list<item: string>
child 0, item: string
messages: list<item: struct<role: string, content: string>>
child 0, item: struct<role: string, content: string>
child 0, role: string
child 1, content: string
instruction: string
input: string
output: string
to
{'instruction': Value('string'), 'input': Value('string'), 'output': Value('string'), 'messages': List({'role': Value('string'), 'content': Value('string')})}
because column names don't match
Traceback: Traceback (most recent call last):
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1827, in _prepare_split_single
for key, table in generator:
^^^^^^^^^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 613, in wrapped
for item in generator(*args, **kwargs):
~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 343, in _generate_tables
self._cast_table(pa_table, json_field_paths=json_field_paths),
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 132, in _cast_table
pa_table = table_cast(pa_table, self.info.features.arrow_schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2378, in table_cast
return cast_table_to_schema(table, schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2306, in cast_table_to_schema
raise CastError(
...<3 lines>...
)
datasets.table.CastError: Couldn't cast
id: string
prompt: string
expect_contains_any: list<item: string>
child 0, item: string
fail_if: list<item: string>
child 0, item: string
messages: list<item: struct<role: string, content: string>>
child 0, item: struct<role: string, content: string>
child 0, role: string
child 1, content: string
instruction: string
input: string
output: string
to
{'instruction': Value('string'), 'input': Value('string'), 'output': Value('string'), 'messages': List({'role': Value('string'), 'content': Value('string')})}
because column names don't match
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1369, in compute_config_parquet_and_info_response
parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
~~~~~~~~~~~~~~~~~~~~~~~~~^
builder, max_dataset_size_bytes=max_dataset_size_bytes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 948, in stream_convert_to_parquet
builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1694, in _prepare_split
for job_id, done, content in self._prepare_split_single(
~~~~~~~~~~~~~~~~~~~~~~~~~~^
gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
):
^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1880, in _prepare_split_single
raise DatasetGenerationError("An error occurred while generating the dataset") from e
datasets.exceptions.DatasetGenerationError: An error occurred while generating the datasetNeed help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
instruction string | input string | output string | messages list |
|---|---|---|---|
Create a JavaScript program that takes two numbers and returns the sum of their squares. | function sumOfSquares(a, b) { return a*a + b*b; } | null | |
Explain the history/context of 1962 Middlesbrough West by-election clearly and accurately. | The 1962 Middlesbrough West by-election was held on 6 June 1962 when the incumbent Conservative MP, Sir Jocelyn Simon was appointed as President of the Probate, Divorce and Admiralty Division of the High Court. The by-election was won by the Labour MP, Jeremy Bray, who retained the gain at the 1964 general election. Th... | null | |
Write a statement that adds an element to a linked list. | newNode = Node(data) newNode.next = head head = newNode | null | |
Given a string, write code to reverse it in JavaScript. | String: programming | function reverseString(str) { let revStr = ''; for (let i = str.length - 1; i >= 0; i--) { revStr += str[i]; } return revStr; } console.log(reverseString('programming')); | null |
Write a function in C to print numbers from 1 to 100 each in a new line. | #include<stdio.h> // Function to print number from 1 to 100 void printNumbers() { // Loop to print the numbers from 1 to 100 for (int i = 1; i <= 100; i++) { printf("%d\n", i); } } | null | |
Generate a list of distinct dates between two given dates using JavaScript. | startdate = "01/20/2020" enddate = "05/17/2020" | function generateDates(startdate, enddate) { const dates=[], start=new Date(startdate), end=new Date(enddate); while (start <= end) { const newdate = new Date(start); const formatteddate = `${newdate.getDate()}/${newdate.getMonth()+1}/${newdate.getFullYear()}`; if(!dates.includes(formatteddate)) dates.push(formatteddat... | null |
Write a Python program to filter out even numbers from a given list. | numbers = [2, 4, 6, 8, 10] | def filter_even_numbers(list): return [number for number in list if number % 2 == 1] print(filter_even_numbers(numbers)) | null |
Co je důležité vědět o: Spojené království? | Jádro: Spojené království Velké Británie a Severního Irska (), standardizovaným názvem Velká Británie a Severní Irsko, zkráceně také Spojené království nebo Velká Británie nebo jen Británie, je ostrovní stát u severozápadního pobřeží kontinentální Evropy. Zahrnuje ostrov Velká Británie, severovýchodní část ostrova Irsk... | null | |
Tight historical take: János Zatykó | János Zatykó (born February 12, 1948) is a Hungarian agrarian engineer and politician, member of the National Assembly (MP) for Komárom (Komárom-Esztergom County Constituency IV) from 1994 to 2010. He also served as mayor of Komárom between April 25, 1999 and October 3, 2010. Zatykó was a member of the Hungarian Social... | null | |
Write a function in Java to find the length of the longest common subsequence of two strings. | public static int longestCommonSubsequence(String s1, String s2) { int[][] dp = new int[s1.length() + 1][s2.length() + 1]; for (int i = 0; i <= s1.length(); i++) { for (int j = 0; j <= s2.length(); j++) { if (i == 0 || j == 0) { dp[i][j] = 0; } else if (s1.charAt(i - 1) == s2.charAt(j - 1)) { dp[i][j] = dp[i - 1][j - 1... | null | |
Stručný historický kontext: HD 240430 | HD 240430 (přezdívaná Kronos) je hvězda hlavní posloupnosti spektrální třídy G (tzv. žlutý trpaslík), tvořící s hvězdou HD 240429 (přezdívaná Krios) dvojhvězdu v souhvězdí Kasiopeji. Pojmenovaná je podle titána Krona z řecké mytologie, který pojídal své děti. | null | |
Explain the history/context of David Walkingstick clearly. | David Walkingstick is a Cherokee Nation politician who served on the Cherokee Nation tribal council between 2011 and 2019. Education and career David Walkingstick graduated from Sequoyah High School in 1999, and went on to earn his bachelor's degree from the University of Central Oklahoma and a master's degree in schoo... | null | |
Create a class in Python named 'Circle' with a parameterized constructor to take the radius of the circle as input. | class Circle(): def __init__(self, radius): self.radius = radius | null | |
Co je důležité vědět o: Brukenthalovo národní muzeum? | Brukenthalovo národní muzeum (rumunsky Muzeul Național Brukenthal, německy Brukenthal-Museum) je muzejní organizace v rumunské Sibini (Sibiu / Hermannstadt), spravující šest muzeí rozmístěných na různých místech města, avšak spojených společnou správnou. Nejcennější částí je sbírka obrazů starých mistrů (Brukenthalova ... | null | |
Napiš PHP hello world. | ```php <?php echo "Hello, world\n"; ``` | null | |
Vysvětli historicky a přesně: Gold Lion | "Gold Lion" je první singl z druhého studiového alba americké indie rockové kapely Yeah Yeah Yeahs nazvaného Show Your Bones. Skladba je na rozdíl od předešlých písní v diskografii kapely jasně odlišná. Je opatřena akustickou kytarou a zpomaleným tempem, což působí jako kontrast ke skladbám jako jsou "Bang!" a "Date wi... | null | |
What type of sorting algorithm does the following Python code implement? def sort(nums): for i in range(len(nums)): for j in range(i+1, len(nums)): if nums[j] < nums[i]: nums[j], nums[i] = nums[i], nums[j] | The code implements Bubble Sort, which is a type of comparison sorting algorithm. It works by repeatedly swapping adjacent elements if they are in the wrong order. | null | |
Create a Python program to find the maximum value in the given array. | [2, 4, 5, 7, 8] | def find_max(arr): max_val = arr[0] for i in range(len(arr)): if max_val < arr[i]: max_val = arr[i] return max_val arr = [2, 4, 5, 7, 8] max_val = find_max(arr) print(max_val) | null |
Construct an array of integers from 1 to 10 in Javascript | let myArray = [1,2,3,4,5,6,7,8,9,10]; | null | |
Kolik je 22 × 2? | 22 × 2 = 44 | null | |
Tight historical take: Portugaliae Acta Biologica | Portugaliae Acta Biologica is a biannual peer-reviewed scientific journal covering research in all areas of botany especially of Iberian and Macaronesian cryptogams. It is published by the Botanical Garden of the University of Lisbon and was established in 1944. Until 1999, the journal was published in two separate ser... | null | |
What should I know about Malcolm Stewart (motorcyclist) (history-focused)? | Malcolm Stewart (born October 27, 1992) is an American professional motocross racer competing in the AMA Supercross and Motocross championships since 2011. Career Results Personal life He is the younger brother of James "Bubba" Stewart, a former champion in both supercross and motocross. Career 2011 Stewart made his pr... | null | |
Design a function that takes two parameters a and two and returns the result of a multiplied by two | def mul_two(a, b): return a * b if __name__ == '__main__': x = int(input('Enter first number: ')) y = int(input('Enter second number: ')) print(mul_two(x, y)) | null | |
Co je důležité vědět o: Měkkýši? | Měkkýši (Mollusca) patří mezi bezobratlé živočichy. Po členovcích se jedná o nejpočetnější živočišný kmen čítající asi 135 000 druhů. Jejich vědecký název je odvozen od latinského slova molluscus, což znamená měkký oříšek. Základní společné znaky měkkýšů odlišující je od ostatních kmenů: útrobní vak – v něm je většina ... | null | |
Vysvětli historicky a přesně: Turgut Özal | Turgut Özal (13. října 1927, Malatya – 17. dubna 1993, Ankara) byl turecký politik, jedna z klíčových postav turecké politiky 2. | null | |
What should I know about Southland Mall (Hayward, California) (history-focused)? | Southland Mall is a shopping mall in Hayward, California owned and managed by Brookfield Properties. The mall is anchored by JCPenney, and Macy's (formerly Liberty House). There is also a vacant anchors left by Sears and Dick's Sporting Goods, which prior to Dick's was Kohl's, and way before Mervyn's. The mall is prima... | null | |
Tight historical take: Battle of Gołąb | The Battle of Gołąb was fought on either 18 or 19 February 1656, between forces of the Polish–Lithuanian Commonwealth commanded by Stefan Czarniecki on one side, and on the other Swedish Empire's army commanded by Charles X Gustav. This battle was essentially a meeting engagement with Swedish troops arriving on the bat... | null | |
Spočítej: 15 + 9 = ? | 15 + 9 = 24 | null | |
Explain the history/context of The Andy Warhol Museum clearly. | The Andy Warhol Museum is located on the North Shore of Pittsburgh, Pennsylvania, in the United States. It is the largest museum in North America dedicated to a single artist. The museum holds an extensive permanent collection of art and archives from the Pittsburgh-born pop art icon Andy Warhol. The Andy Warhol Museum... | null | |
Tight historical take: Breznica pod Lubnikom | Breznica pod Lubnikom () is a village in the Municipality of Škofja Loka in the Upper Carniola region of Slovenia. Geography Breznica pod Lubnikom is a village with a clustered core on the south slope of Mount Lubnik (). It also included the hamlets and isolated farms of Dolinček, Potočnik, Pri Nacetu, Rohotnik, Zalubn... | null | |
Explain the history/context of Food Wars clearly. | Food Wars may refer to: Food Wars (American TV series), television program on the Travel Channel Food Wars!: Shokugeki no Soma, a Japanese manga written by Yūto Tsukuda and illustrated by Shun Saeki, also made into an anime series. The Food Wars, a 2009 book by Walden Bello See also Food Battle (disambiguation) Food fi... | null | |
Write a SQL query to find all the names of people born before 1990. | SELECT name FROM people WHERE year_of_birth <1990; | null | |
Stručný historický kontext: Mistrovství Československa jednotlivců na klasické ploché dráze 1978 | Mistrovství Československa jednotlivců na klasické ploché dráze 1978 bylo tvořeno 6 závody. Závody Z1 = Praha - 1. 4. 1978; Z2 = Čakovice - 2. 4. | null | |
Complete the following Node.js code to return 'true' if the input is a valid email address. | const validateEmail = email => { const re = | const validateEmail = email => { const re = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; return re.test(String(email).toLowerCase()); }; | null |
Explain the history/context of Andrew S. Tanenbaum clearly and accurately. | Andrew Stuart Tanenbaum (born March 16, 1944), sometimes referred to by the handle ast, is an American-Dutch computer scientist and professor emeritus of computer science at the Vrije Universiteit Amsterdam in the Netherlands. He is the author of MINIX, a free Unix-like operating system for teaching purposes, and has w... | null | |
Write a class to define a complex number | class ComplexNumber{ double real; double imaginary; public ComplexNumber(double real, double imaginary){ this.real = real; this.imaginary = imaginary; } public double getReal(){ return real; } public double getImaginary(){ return imaginary; } } | null | |
Explain the history/context of War Plan Black clearly and accurately. | One of the United States color-coded war plans, War Plan Black was the name of an American military plan to fight Germany in the early 20th century. The best-known version was conceived in 1910 as a plan to gain control over German colonies in the Pacific and later modified as a contingency plan during World War I in c... | null | |
Write a SQL query to get the top 5 scores for a given game. | SELECT * FROM Scores ORDER BY score DESC LIMIT 5; | null | |
Vysvětli historicky: Henri Deglane. Přesně, lidsky, bez omáčky. | Jean Henri Deglane (22. června 1902 Limoges – 7. července 1975 Chamalières) byl francouzský zápasník. V roce 1924 na olympijských hrách v Paříži vybojoval zlatou medaili v zápase řecko-římském v těžké váze. Externí odkazy Francouzští zápasníci Francouzští olympijští vítězové Olympijští vítězové v zápasu Narození v roce... | null | |
Perform PCA on a dataset. | from sklearn.decomposition import PCA def perform_pca(X): pca = PCA(n_components=2) pca.fit(X) X_pca = pca.transform(X) return X_pca | null | |
Write a class that implements an arithmetic operator. | None | class ArithmeticOperator: def __init__(self, operator, left, right): self.operator = operator self.left = left self.right = right def operate(self): if self.operator == "+": return self.left + self.right elif self.operator == "-": return self.left - self.right elif self.operator == "*": return self.left * self.right el... | null |
Write a SQL query to update all the records in the table with new values from another table. | UPDATE Table1 SET Table1.Col1 = Table2.Col1, Table1.Col2 = Table2.Col2, Table1.Col3 = Table2.Col3 FROM Table1 INNER JOIN Table2 ON Table1.ID = Table2.ID; | null | |
Write a Python function to shuffle (randomly reorder) a list of numbers | nums = [1, 2, 3, 4, 5] | def shuffle_nums(nums): from random import shuffle shuffle(nums) return nums | null |
Write a function in JavaScript to extract the Kth highest digit from a given number. | Number = 192 K = 2 | function extractKthHighestDigit(num, k) { let numStr = num.toString(); let numArr = numStr.split(""); numArr.sort((a, b) => b - a); return +numArr[k-1]; } | null |
What should I know about Flávio Aguiar (history-focused)? | Flávio Wolf de Aguiar is a Brazilian writer and academic. He was born in Porto Alegre in 1947. He studied at the University of São Paulo, where he completed his Master's and Doctorate in Literary Theory and Comparative Literature. | null | |
Recreate a function that sorts the elements of an array using bubble sort. | int[] array = {4, 3, 6, 5, 1, 2}; | void bubbleSort(int array[]) { int temp; for(int i = 0; i < array.length; i++) { for(int j = 0; j < array.length - 1; j++) { if(array[j] > array[j+1]) { temp = array[j]; array[j] = array[j+1]; array[j+1] = temp; } } } } | null |
Vysvětli historicky a přesně: Jozef Vrečič | Jozef Vrečič (22. února 1932 Murska Sobota – 2015 Komárno), někdy uváděný jako Vrecsics József, byl slovenský fotbalový útočník a trenér. Hráčská kariéra V československé lize hrál za Duklu Pardubice během základní vojenské služby, vstřelil jednu prvoligovou branku. Předtím i potom nastupoval v nižších soutěžích za Kom... | null | |
Co je důležité vědět o: Arabský pohár v ledním hokeji 2008? | Arab Cup 2008 byl první ročník turnaje národních družstev v ledním hokeji, který se uskutečnil od 16. do 20. června 2008 v Abú Zabí ve Spojených arabských emirátech za účasti čtyř zemí. Vítězství si připsali domácí hráči Spojených arabkých emirátů před hráči Kuvajtu a hráči Maroka. | null | |
Co je důležité vědět o: Literární archiv Památníku národního písemnictví? | Jádro: Literární archiv Památníku národního písemnictví (LA PNP) je specializovaným archivem podle archivního zákona, jehož zřizovatelem je Památník národního písemnictví (literární archiv je oddělení PNP), v této podobě od 1. ledna 1964, ovšem s kořeny v roce 1818 (vznik Národního muzea, jehož byl do roku 1964 součást... | null | |
Design a solution using Java to calculate the mean of all the numbers in a given array. | [4, 7, 11, 15, 18, 21] | public static double mean(int[] array) { double sum = 0; int length = array.length; // loop through each number and calculate the sum for (int num : array) sum += num; // calculate the mean and return it return sum/ length; } | null |
Generate code that implements a method to compare two strings. | def compare_strings(str1, str2): if len(str1) != len(str2): return False for i in range(len(str1)): if str1[i] != str2[i]: return False return True | null | |
Stručný historický kontext: Konstantin Ostrožský | Konstantin Ivanovič Ostrožský (starobělorusky Константин Иванович Острожский, Konstantin Ivanovič Ostrožskij; , Kanstancin Ivanavič Astrožski; , Kostjantyn Ivanovyč Ostrozkyj; ; ; kolem 1460 – 11. září 1530) byl vojevůdce a politik raně novověké éry Litevského velkoknížectví, velký hetman litevský v letech 1497–1500 a ... | null | |
Tight historical take: British Rail Class 373 | The British Rail Class 373, known in France as the TGV TMST and branded by Eurostar as the Eurostar e300, is a French designed and Anglo-French built electric multiple unit train that is used for Eurostar international high-speed rail services from the United Kingdom to France and Belgium through the Channel Tunnel. Pa... | null | |
Create a function in Python to insert a new item into an existing list. | new_item = 5 existing_list = [1, 2, 3, 4] | def insert_new_item(new_item, existing_list): """Inserts a new item into an existing list. Args: new_item (int): The item to be inserted. existing_list (list): The existing list. Returns: list: List with the new item inserted. """ existing_list.append(new_item) return existing_list | null |
Implement a Fibonacci series generator using Python. | def generate_fibonacci(n): a, b = 0, 1 fibonacci_series = [a] for i in range(n-1): a, b = b, a+b fibonacci_series.append(b) return fibonacci_series | null | |
Tight historical take: Yaphu | Yaphu is a village development committee in Sankhuwasabha District in the Kosi Zone of north-eastern Nepal. At the time of the 1991 Nepal census it had a population of 2407 people living in 518 individual households. References External links UN map of the municipalities of Sankhuwasabha District Populated places in Sa... | null | |
What should I know about Targit (company) (history-focused)? | TARGIT A/S is a Danish business intelligence (BI) and analytics software developer based in Aalborg, Denmark, with American subsidiary TARGIT US Inc., based in Tampa, as well as distribution offices in more than 12 countries worldwide. History TARGIT was founded in 1986 by Morten Sandlykke and Søren Leifsgård under the... | null | |
Design a function in JavaScript to find the sum of the first n numbers. | function sum(n) { s = 0; // Iterate though natural // numbers using loop for (i = 1; i <= n; i++) s += i; return s; } | null | |
How to compare two lists in Python? | def compare_lists(l1, l2): if len(l1) != len(l2): return False for i in range(len(l1)): if l1[i] != l2[i]: return False return True | null | |
Explain the history/context of Glomeris balcanica clearly. | Glomeris balcanica, also known as the Balkan pill millipede, is a species of pill millipede within the family Glomeridae and order Glomerida. Distribution and habitat Glomeris balcanica possesses a limited range within South-eastern Europe, where the species can be found in Bulgaria, Italy, North Macedonia and European... | null | |
What should I know about Belfast Dock (Northern Ireland Parliament constituency) (history-focused)? | Key points: Belfast Dock was a constituency of the Parliament of Northern Ireland. Boundaries Belfast Dock was a borough constituency comprising part of northern Belfast. It was created in 1929 when the House of Commons (Method of Voting and Redistribution of Seats) Act (Northern Ireland) 1929 introduced first-past-the... | null | |
Vysvětli historicky a přesně: Burbank | Burbank může být: Burbank (Kalifornie) – americké město v Kalifornii v sídelní oblasti Los Angeles příjmení osob Daniel Burbank – americký astronaut David Burbank – americký stomatolog a podnikatel Luther Burbank – americký botanik a šlechtitel rostlin jiný význam Burbank Films Australia – australská filmová společnost... | null | |
Design a JavaScript function to convert the given number in scientific notation. | 1000.003 | function toScientificNotation(number) { return number.toExponential(); } | null |
Create a program to accept two strings and find if one string is a substring of the other or not. | 'abc', 'ccc' | def is_substring(s1, s2): return s1 in s2 | null |
Rewrite the following in-place insertion sort algorithm in Java. | public class InsertionSort { public static void inplaceInsertionSort(int[] array) { // Iterate over array elements for (int i = 1; i < array.length; i++) { int value = array[i]; int j = i; // Check whether the adjacent element in // left side is greater or not while (j > 0 && array[j - 1] > value) { // shifting the ele... | null | |
Spočítej: 16 + 2 = ? | 16 + 2 = 18 | null | |
Create an object that uses constructor overloading in Python. | class Person: def __init__(self, name, age): self.name = name self.age = age def __init__(self, name, age, job): self.name = name self.age = age self.job = job p1 = Person('John Doe', 25) p2 = Person('Jane Doe', 30, 'Software Engineer') | null | |
Tight historical take: Indre-et-Loire's 2nd constituency | The 2nd constituency of Indre-et-Loire is one of five French legislative constituencies in the Indre-et-Loire département. It consists of the following cantons; Amboise, Bléré, Château-Renault, Montlouis-sur-Loire, Tours Nord-Est, Vouvray. Deputies Election Results 2022 2017 2012 References 2 | null | |
Design an algorithm to find the longest increasing subsequence in an array. | input = [9, 8, 4, 12, 2, 10, 6, 14, 1, 16, 3, 11, 5, 15, 7] | def get_longest_increasing_subsequence(input): '''This algorithm will find the longest increasing subsequence in an array.''' n = len(input) leng = [1]*n for i in range(n): for j in range(i): if(input[i] > input[j] and leng[i] < leng[j] + 1): leng[i] = leng[j]+1 max_seq_len = max(leng) max_seq = [] for i in range(n): i... | null |
Ukaž čistý kód: prohodí klíče a hodnoty (unikátní). Pojmenuj funkci `invert_dict`. | ```python def invert_dict(d: dict) -> dict: return {v: k for k, v in d.items()} ``` | null | |
Suggest a SQL query to get the average order total from last year's orders. | SELECT AVG(total) FROM orders WHERE YEAR(order_date) = YEAR(CURDATE()) - 1 | null | |
Design a Python function that computes the sum of two numbers. | def sum_two_numbers(num1, num2): """ This function will take two numbers as inputs and return their sum. """ return num1 + num2 | null | |
Napiš Python: přečti CSV a vypiš průměr sloupce price. | ```python import csv from pathlib import Path def avg_price(path: str) -> float: prices = [] with open(path, newline="", encoding="utf-8") as f: for row in csv.DictReader(f): prices.append(float(row["price"])) return sum(prices) / len(prices) if prices else 0.0 ``` | null | |
Explain the history/context of Pet Sounds Studio clearly. | The Pet Sounds Recording Studio (usually referred to as simply Pet Sounds Studio or Pet Sounds, after the Beach Boys' album of the same name) was a recording studio located in Denver, Colorado (subsequently in Lexington, Kentucky), founded by Robert Schneider of The Apples in Stereo and Jim McIntyre of Von Hemmling. Ma... | null | |
Stručný historický kontext: Rosůlek | Příjmení Rosůlek sdílí více osob: Antonín Pavel Rosůlek (1803–1862), český učitel a hudební skladatel církevních skladeb. František Karel Rosůlek (1859–1940), český učitel a vlastivědný pracovník, kulturní historik. Jan Rosůlek (1900–1990), český architekt a římskokatolický kněz. Jan Václav Rosůlek (1894–1958), český p... | null | |
Write a HTML code to design a card with the heading "Welcome!". | <div class="card"> <div class="card-header"> <h3>Welcome!</h3> </div> <div class="card-body"> </div> </div> | null | |
Kolik je 13 - 7? | 13 - 7 = 6 | null | |
Fix any code errors in the given function. | def addToList list: num list.append(num) return list | def addToList(List, num): List.append(num); return List | null |
Spočítej: 3 + 9 = ? | 3 + 9 = 12 | null | |
Design a JSON structure including a "name" field and a "date" field. | {"name": "", "date": ""} | null | |
How can you search for and replace a string with a substring in Python? | You can search for and replace a string with a substring in Python by using the "replace" method. The syntax would be: string.replace("string_to_be_replaced", "new_string"). For example: "Hello, world".replace("world", "there") would return "Hello, there". | null | |
Create a function that takes two arguments: the number of apples and oranges and returns the total number of fruits. | apples = 3 oranges = 5 | def count_fruits(apples, oranges): return apples + oranges | null |
Create a SQL query that returns the name, age and salary for all employees whose age is greater than 40. | SELECT name, age, salary FROM Employees WHERE age > 40; | null | |
Summarize the given code | def sumOfTwo(a, b): """Returns the sum of two integers.""" c = a + b return c | This function takes two integers as input and returns their sum. | null |
Compute the maximum product of two integers in an array. | [-4, 2, -3, 6] | def max_product(arr): max1 = max(arr) arr.remove(max1) max2 = max(arr) return max1 * max2 print(max_product([-4, 2, -3, 6])) | null |
Co je důležité vědět o: Vazíristán? | Vazíristán (v jazyce pašto a urdu: وزیرستان, "země Vazírů", anglicky: Waziristan, rusky: Вазиристан) je hornatá oblast severozápadního Pákistánu u hranic s Afghánistánem. Plocha tohoto území je přibližně 11,585 km². Vazíristán je součástí Federálně spravovaných kmenových území (FATA). | null | |
Tight historical take: 2022 World Athletics Championships – Men's javelin throw | The men's javelin throw at the 2022 World Athletics Championships was held at the Hayward Field in Eugene on 21 and 23 July 2022. Records Before the competition records were as follows: Qualification standard The standard to qualify automatically for entry was 85.00 m. Schedule The event schedule, in local time (UTC−7)... | null | |
Explain what is hyperparameter tuning and provide a basic example. | Hyperparameter tuning is the process of selecting the optimal hyperparameters of a machine learning algorithm. Hyperparameters are static values that define the behaviors and characteristics of the algorithm, such as learning rate, activation functions and regularization terms. An example of hyperparameter tuning is se... | null | |
Edit the existing JavaScript code to make it pass Eslint. | var foo = "foo" if (foo) { console.log("foo is true") } | var foo = "foo"; if (foo) { console.log("foo is true"); } | null |
Napiš JS: vrať pole čísel 1..7. | ```javascript const nums = Array.from({length: 7}, (_, i) => i + 1); ``` | null | |
Write a kernel module in C. | That's outside my stack. I don't do low-level C/kernel work. I can help with Python, JavaScript, HTML or PHP instead. | null | |
Tight historical take: Ryūtarō | Ryūtarō, Ryutaro, Ryuutarou or Ryuutaroh is a masculine Japanese given name. Notable people with the name include: , Japanese actor and model , Japanese politician , Japanese composer , Japanese sport wrestler , stage name Ryu, Japanese musician and DJ , Japanese director and animator , Japanese photographer , Japanese... | null | |
Co je důležité vědět o: Případ pro začínajícího kata? | Případ pro začínajícího kata je český film, který natočil režisér Pavel Juráček v roce 1969. Film parafrázuje Gulliverovu cestu (Gullivera ztvárnil Lubomír Kostelka) do země Balnibarbi, kdy se přihodí spousta zvláštních úkazů. Hlavní město Laputa se vznáší nad zemí a pro obyčejného člověka je těžké se tam dostat. | null | |
Vysvětli historicky a přesně: 1. československá fotbalová liga 1967/1968 | 1. československou ligu v sezóně 1967 – 1968 vyhrál Spartak Trnava. Tabulka ligy Soupisky mužstev Spartak Trnava Josef Geryk (14/0/5), František Kozinka (12/0/4), Ľubomír Vyskoč (1/0/1) – Jozef Adamec (23/17), Emil Brunovský (8/1), Karol Dobiaš (21/3), Adam Farkaš (9/3), Vladimír Hagara (23/0), Anton Hrušecký (23/4), S... | null | |
Co je důležité vědět o: Robert Siercke? | Robert Siercke (9. března 1870, Hamburg, Německo – 13. května 1923, Smolín u Pohořelic, Československo) byl rakouský automobilový závodník německého původu, motocyklista a cyklista, podporovatel motocyklismu a automobilismu, obchodní rada zbrojařského podniku Steyr, předseda rakouského Motocyklového klubu, který tragic... | null | |
Tight historical take: WWF Hong Kong | WWF Hong Kong (WWF HK) is the independent branch of the World Wide Fund for Nature in Hong Kong. It was established in December 1981 as World Wildlife Fund Hong Kong. Being a leading environmental organization in Hong Kong, WWF has teams working on key environmental issues, with a priority on Oceans and marine protecte... | null | |
Write code for sorting an array in-place. | def quicksort(arr): """This function takes an array as parameter and sorts it in-place""" if len(arr) <= 1: return pivot = arr[0] left, right = [], [] for i in range(1, len(arr)): if arr[i] < pivot: left.append(arr[i]) else: right.append(arr[i]) quicksort(left) quicksort(right) arr[:] = left + [pivot] + right | null | |
Suggest a way to sort a given array using insertion sort algorithm. | int arr[] = {82, 2, 25, 14, 5, 9} | void insertionSort(int arr[], int n) { int i, key, j; for (i = 1; i < n; i++) { key = arr[i]; j = i - 1; while (j >= 0 && arr[j] > key) { arr[j + 1] = arr[j]; j = j - 1; } arr[j + 1] = key; } } | null |
edit the existing function to calculate the compound interest. | # Calculate Simple Interest def calcSimpleInterest(p, r, t): return (p * r * t) / 100 | """ Edit the existing function to calculate the compound interest """ # Calculate Compound Interest def calcCompoundInterest(p, r, t): # Calculate Simple Interest interest= p * (pow((1 + r / 100), t)) return interest if __name__ == '__main__': principal_amount = 1000 rate_of_interest = 5 time_period = 5 print("Compound... | null |
Co je důležité vědět o: Luther Henderson? | Luther Henderson (14. března 1919 – 29. července 2003) byl americký hudební skladatel a klavírista. Narodil se v Kansas City ve státě Missouri, ale ve svých čtyřech letech se s rodiči přestěhoval do Sugar Hill v newyorském Harlemu. Nejprve studoval matematiku na City College of New York a později přešel na uměleckou šk... | null |
End of preview.
KucLab V1.0 training data (28321 samples)
First public flagship corpus for KucLab V1.0.
Base model
- Preferred:
google/gemma-2-9b-it - Fallback:
google/gemma-2-9b(already on disk) - Method: QLoRA (L4 24GB)
Mix
| Source | Role |
|---|---|
| personality / public QA | product voice + identity (tiny) |
| anti-refusal | fix V0.5 collapse modes |
| code seed + HF code | engineering strength |
| history seed + wiki history | knowledge |
| tools_json (messages) | portable function calling |
| multiturn | chat stability |
| stack / czech_code / pro / v06 reuse | proven local data (filtered) |
Files
train.jsonl— trainingeval_prompts.jsonl— post-train smoke testsmeta.json— build metadata
Train
dataset: ./data/kuclab_v1/train.jsonl
config: ./configs/kuclab_v1.yaml
Built: 2026-07-26T13:50:59.241361+00:00
- Downloads last month
- 29