instruction
stringlengths
2
259
⌀
input
stringlengths
0
442
⌀
output
stringlengths
1
1.9k
⌀
text
stringlengths
273
2.08k
⌀
Summarize key facts about „Lilia Vu“ clearly and accurately.
**Lilia Vu** Lilia Kha-Tu Du Vu (born October 14, 1997) is an American professional golfer. In 2021, she won three titles on the Symetra Tour. Vu won her first major at the 2023 Chevron Championship. In August 2023, Vu took her second major at the 2023 Women's British Open. Early life, college and amateur career Vu ma...
null
Compute the maximum sum of m consecutive values in a given array.
arr = [2, 6, 1, 3, 7, 4, 9] m = 3
def max_m_consecutive_sum(arr, m): max_sum = 0 for i in range(len(arr) - m + 1): curr_sum = 0 for j in range(i, i + m): curr_sum += arr[j] if curr_sum > max_sum: max_sum = curr_sum return max_sum
null
Co je proměnná? (stručně)
Proměnná je pojmenované místo pro hodnotu v paměti, např.
null
null
null
null
Římskokatolická farnost Ostrava-Poruba Římskokatolická farnost Ostrava-Poruba je farnost římskokatolické církve v děkanátu Ostrava ostravsko-opavské diecéze. Je pravděpodobné, že kostel stával v Porubě již při lokaci ve 13. století, ale zpráva o údajném náhrobním kameni Adama z Kornic, dokládajícího existenci kostela ...
Napiš funkci is_palindrome(s) v Pythonu.
```python def is_palindrome(s: str) -> bool: cleaned = "".join(ch.lower() for ch in s if ch.isalnum()) return cleaned == cleaned[::-1] ```
null
Process the curl request and output a JSON from it.
curl --location --request GET 'https://api.example.com/user/12'
var request = new XMLHttpRequest(); request.open('GET', 'https://api.example.com/user/12', true); request.onload = function () { // begin accessing JSON data here var data = JSON.parse(this.response); if (request.status >= 200 && request.status < 400) { console.log(data); } else { console.log('error'); } } request.send...
null
null
null
null
Coma blister A coma blister, or coma bullae, is a skin lesion or blister that typically arises due to pressure in an individual with impaired consciousness. They vary in size, ranging from 4 to 5 centimeters in diameter, and may appear hemorrhagic or blood filled. Coma blisters are usually found in the extremities and...
Create a new PostgreSQL table named 'employees' with appropriate columns for employee information.
CREATE TABLE employees ( id SERIAL PRIMARY KEY, first_name VARCHAR(50) NOT NULL, last_name VARCHAR(50) NOT NULL, job_title VARCHAR(100) NOT NULL, age INTEGER NOT NULL, salary DECIMAL NOT NULL );
null
Vymysli odpověď v japonštině. Buď upřímný.
Japonštinu neumím. Můžu odpovědět česky nebo anglicky.
null
Summarize key facts about „Harold Pearson (footballer, born 1901)“ clearly and accurately.
**Harold Pearson (footballer, born 1901)** Herbert "Harold" Pearson (7 January 1901 – 1972) was an English professional footballer who played at centre forward for Southampton and Coventry City in the 1920s. Football career Pearson was born in Brierley Hill where he played for Brierley Hill Alliance in the Birmingham ...
null
Provide a Java program for searching for a certain element in an array.
[1, 2, 3, 4, 5], element=4
public class SearchInArray { static int search(int arr[], int n, int x) { for (int i = 0; i < n; i++) { if (arr[i] == x) return i; } return -1; } public static void main(String args[]) { int arr[] = { 1, 2, 3, 4, 5 }; int x = 4; int n = arr.length; System.out.println("Element found at position: " + search(arr, n, x)); ...
null
Summarize key facts about „2013 Kurume Best Amenity Cup – Singles“ clearly and accurately.
**2013 Kurume Best Amenity Cup – Singles** Zheng Saisai was the defending champion, but she lost to An-Sophie Mestach in the quarterfinals. Ons Jabeur won the title, defeating Mestach in the final, 6–0, 6–2. Seeds Main draw Finals Top half Bottom half References Main draw Kurume Best Amenity Cup - Singles Kurume Best ...
null
Summarize key facts about „Columbine High School“ clearly and accurately.
**Columbine High School** Columbine High School (CHS) is a public high school in Columbine, Colorado, United States, in the Denver metropolitan area. It is part of the Jefferson County Public Schools district. In 1999, it became the scene of an infamous mass shooting, where 12 students and one teacher were murdered by...
null
Co je HTTP?
HTTP je protokol, kterým si prohlížeč a server posílají webové stránky a API data. Metody: GET (čtení), POST (odeslání), PUT/PATCH (úprava), DELETE (smazání).
null
null
null
null
Pavillon des Arts Pavillon des Arts (Pavilon umění) byla galerie umění v Paříži. Nacházela se v 1. obvodu v ulici Rue Rambuteau. Historie Pavilon byl založen v roce 1983 a uzavřen roku 2006. Výstavy Galerie se zaměřovala na umění ve všech jeho formách, různých kultur a různých období: fotografie, malířství, sochařství...
Spočítej: 27 + 3 = ?
27 + 3 = 30
null
Ukaž čistý kód: vrátí True pokud je sudé. Pojmenuj funkci `is_even`.
```python def is_even(n: int) -> bool: return n % 2 == 0 ```
null
Summarize key facts about „Maryborough State High School“ clearly and accurately.
**Maryborough State High School** Maryborough State High School (commonly abbreviated as 'MSHS') is an Independent Public School located in Maryborough, Queensland, Australia. The school is run by the Queensland State Government, and is split on either side of Kent Street. The school colours are blue and brown. In 202...
null
Can you explain what is imperative programming?
Imperative programming is a programming paradigm that describes computation in terms of statements that change a program’s state. Imperative programming focuses on describing how a program operates. It describes lists of instructions that the computer should execute, describing the steps from start to finish. Contrast ...
null
Stručně shrň článek o tématu „Vůz WLABmz826 ČD“ a uveď hlavní fakta.
**Vůz WLABmz826 ČD** {{DISPLAYTITLE:Vůz WLABmz826 ČD}} Vozy WLABmz826, číslované v intervalu 61 54 72-91, při testech značené WLABmee826, jsou řadou osobních lůžkových vozů z vozového parku Českých drah určené pro vlaky kategorie EuroNight. Všech dvanáct vozů (001–012) bylo vyrobeno v letech 2006–2007 vagónkou Siemens...
null
Stručně shrň článek o tématu „Elektrický obvod“ a uveď hlavní fakta.
**Elektrický obvod** Elektrický obvod je vodivé spojení elektrických prvků, a to jak vodivých, např. odporů, kondenzátorů či cívek, tak polovodivých, např. diod či tranzistorů, přerušitelné pomocí spínačů. Tyto prvky vytváří (polo)vodivou cestu pro přenos elektrické energie a splňují funkce, které jsou od obvodu požad...
null
Summarize key facts about „Table tennis at the 2005 Mediterranean Games“ clearly and accurately.
**Table tennis at the 2005 Mediterranean Games** The Table Tennis Competition at the 2005 Mediterranean Games was held in the Máximo Cuervo Sports Hall in Almería, Spain. Men's competition Men's singles Men's doubles Women's competition Women's singles Women's doubles Medal table References Results Table Tennis 2005 M...
null
Summarize key facts about „Fidelis Care“ clearly and accurately.
**Fidelis Care** Fidelis Care is a New York-based health insurance company formed in 1993. As of 2018, Fidelis Care served more than 1.7 million New York residents. It is a subsidiary of Centene Corp and has offices throughout New York State. History Fidelis Care was formed in 1993 as the NYC Catholic Health Plan Inc....
null
null
null
null
Jane Wymanová Jane Wymanová, rodným jménem Sarah Jane Mayfieldová (5. ledna 1917, Saint Joseph – 10. září 2007, Rancho Mirage), byla americká herečka, zpěvačka a tanečnice. Život Mládí Narodila se 5. ledna 1917 ve městě St. Joseph ve státě Missouri jako dcera Manninga Jeffriese Mayfielda a Gladys Hope Mayfieldové (rod...
Replace all the ``None`` in the following code to create a valid python statement.
def find_min(numbers): min = None for number in numbers: if min is None: min = number elif number < min: min = number
def find_min(numbers): min = float('inf') # use a high value for number in numbers: if number < min: min = number return min
null
Stručně shrň článek o tématu „Ferritin“ a uveď hlavní fakta.
**Ferritin** Ferritin je globulární vnitrobuněčný protein, který se vyskytuje téměř u všech živých organismů, včetně bakterií, řas, vyšších rostlin a živočichů. Slouží jako hlavní zásobní forma železa u eukaryot i prokaryot, jelikož železo je pro buňky samo o sobě toxické. Navíc ferritin zřejmě usnadňuje i transport ž...
null
Create a Java program to find the sum of the following array [1,2,3,4,5].
public class Sum { public static void main(String[] args) { int[] arr = {1, 2, 3, 4, 5}; int sum = 0; // Compute sum of array elements for (int i = 0; i < arr.length; i++) { sum += arr[i]; } // Print sum System.out.println("Sum of given array elements is: " + sum); } }
null
Kdy jsi byl natrénován / dotrénován?
Moje poslední dotrénování (fine-tune) proběhlo 23. července 2026 (2026-07-23). Základní znalosti mám z předchozího předtrénování base modelu.
null
Summarize key facts about „Klokočná“ clearly and accurately.
**Klokočná** Klokočná is a municipality and village in Prague-East District in the Central Bohemian Region of the Czech Republic. It has about 300 inhabitants. References External links Villages in Prague-East District
null
Programmatically calculate the sum of the first 10 natural numbers (1,2,3...10).
total = 0 for i in range(1,11): total += i print(total)
null
null
null
null
Walk East on Beacon Walk East on Beacon is a 1952 American film noir drama film directed by Alfred L. Werker and starring George Murphy, Finlay Currie, and Virginia Gilmore. It was released by Columbia Pictures. The screenplay was inspired by a May 1951 Reader's Digest article by J. Edgar Hoover entitled "The Crime of...
Stručně shrň článek o tématu „Luník IX“ a uveď hlavní fakta.
**Luník IX** Luník IX je městská část Košic, součást okresu Košice II na Slovensku. Nachází se západně od centra a je obklopen městskými částmi Pereš, Myslava, Barca, Juh a Západ. Má rozlohu kolem jednoho kilometru čtverečního. Sídliště bylo od začátku koncipováno jako romské ghetto. I v současnosti má největší hustot...
null
null
null
null
Šťastni spolu Šťastni spolu (kantonsky 春光乍泄, Chun gwong cha sit, angl. Happy Together) je čínsko-hongkongský hraný film z roku 1997, který režíroval Wong Kar-wai podle vlastního scénáře. Středobodem filmu je turbulentní vztah dvou čínských imigrantů v Argentině. Snímek měl světovou premiéru na Mezinárodním filmovém fe...
Write a code to compare two lists and find the common elements.
list1 = [3, 6, 9, 12] list2 = [2, 4, 5, 6, 8, 9]
def find_common(list1, list2): # initial list to store common elements result = [] # iterate through the list for num in list1: # check if the number is in list2 if num in list2: # append the element result.append(num) return result print(find_common(list1, list2))
null
Create a React component that renders the current date.
import React from 'react'; class DateComponent extends React.Component { render() { const date = new Date(); return ( <div> {date.toString()} </div> ); } }
null
Write an algorithm in Python to determine if a number is even or odd.
def is_even(num): if num % 2 == 0: return True else: return False
null
Modify the following python code to calculate the average of a list of numbers.
def list_average(numbers): '''This function will calculate the average of a list of numbers.'''
def list_average(numbers): '''This function will calculate the average of a list of numbers.''' return sum(numbers) / len(numbers)
null
Stručně shrň článek o tématu „Světová výstava 1900“ a uveď hlavní fakta.
**Světová výstava 1900** Světová výstava (fr. Exposition universelle) v roce 1900 byla světová výstava v Paříži, která slavila úspěchy uplynulého století a přispěla k urychlení vývoje ve století následujícím. Styl, který byl všeobecně na výstavě přítomen, byla secese. Průběh Výstava trvala od 15. dubna do 12. listopad...
null
Read the following JavaScript code and add an appropriate input field for the function.
function reverse_string(string){ let reversed = ''; for(let i = string.length - 1; i >= 0; i--){ reversed += string[i]; } return reversed; } let input = "hello world"; console.log(reverse_string(input)); // dlrow olleh
null
Oprav češtinu: potrebuju pomoct s pythonem
Potřebuju pomoct s Pythonem.
null
Construct a query to find the 2nd highest salary from an employee table.
SELECT MAX(salary) FROM (SELECT DISTINCT(salary) FROM employee ORDER BY salary DESC LIMIT 2)
null
Edit the following function so that it counts the even numbers in the given array.
arr = [1, 2, 3, 4]
def countEvens(arr): count = 0 for num in arr: if num % 2 == 0: count += 1 return count
null
Stručně shrň článek o tématu „Newton“ a uveď hlavní fakta.
**Newton** Newton [ňútn] je jednotka síly v soustavě SI se značkou N. Jedná se o odvozenou jednotku založenou na základních jednotkách kilogram (kg), metr (m) a sekunda (s). Rozměr v základních jednotkách soustavy SI je kg·m·s−2. Jednotka je pojmenována po významném fyzikovi Isaacu Newtonovi. Definice a další veličiny...
null
Stručně shrň článek o tématu „The Platters“ a uveď hlavní fakta.
**The Platters** The Platters je komerčně úspěšná americká kapela rock and rollové éry. Míchali písně z Tin Pan Alley éry s tehdejší hudbou a tak docílili svého nového žánru. Původní kapela se skládá z Alexe Hodgeho, Cornella Gunthera, Davida Lynche, Joe Jeffersona, Gaynele Hodgeho a Herba Reeda. V roce 1990 byla kape...
null
Kolik je 20 × 2?
20 × 2 = 40
null
Python FastAPI hello endpoint.
```python from fastapi import FastAPI app = FastAPI() @app.get("/") def root(): return {"ok": True, "msg": "hello"} ```
null
Translate to English: Jak nainstaluju balíčky?
How do I install packages?
null
null
null
null
Pyšná princezna Pyšná princezna je česká filmová pohádka z roku 1952 režiséra Bořivoje Zemana. Děj Pyšné princezně Krasomile (Alena Vránová) není za manžela dost dobrý hodný a spravedlivý král sousední země Miroslav (Vladimír Ráž). Ten se proto v přestrojení za zahradníka vydá udělit princezně výchovnou lekci. Nejdřív...
Write a code in Java that will get all the elements from an array that are greater than the given number.
public static List<Integer> getElementsGreaterThan(int[] array, int number) { List<Integer> result = new ArrayList<>(); for (int element : array) { if (element > number) { result.add(element); } } return result; }
null
Fetch JSON v moderním JS.
```javascript const res = await fetch("/api/items"); if (!res.ok) throw new Error(`HTTP ${res.status}`); const data = await res.json(); ```
null
Compare the two strings, and return 0 if they are the same, 1 if a is greater than b, or -1 if b is greater than a.
Strings: a = "hello world" b = "goodbye world"
int result = a.compareTo(b); //Result: 1 (because "hello world" is greater than "goodbye world")
null
Create a program that checks for duplicates in a list and removes them.
def remove_duplicates(lst): res = [] for ele in lst: if ele not in res: res.append(ele) return res
null
Edit the following JS code to include a check to avoid creating duplicate requests.
sendRequest(url) { // Code to send request } makeRequest(url) { sendRequest(url); }
sendRequest(url) { // Code to send request } requests = []; // Array to keep track of requests makeRequest(url) { if (!requests.includes(url)) { // Check if request doesn't already exist sendRequest(url); requests.push(url); // Add request to list } }
null
Přelož do češtiny: How do I install packages?
Jak nainstaluju balíčky?
null
Generate a random string using C#.
String length: 8
var randomString = ""; var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; for (var i = 0; i < 8; i++) randomString += possible.charAt(Math.floor(Math.random() * possible.length)); console.log(randomString);
null
Stručně shrň článek o tématu „Národní asociace držitelů zbraní“ a uveď hlavní fakta.
**Národní asociace držitelů zbraní** Národní asociace držitelů zbraní (anglicky National Rifle Association of America, NRA) je americká nezisková organizace pro ochranu občanských práv, která má za cíl podporu civilního držení střelných zbraní na základě Druhého dodatku Ústavy Spojených států amerických. Organizace by...
null
Stručně shrň článek o tématu „Criminal“ a uveď hlavní fakta.
**Criminal** „Criminal“ je píseň americké zpěvačky Britney Spears. Jedná se o její čtvrtý a zároveň poslední singl z jejího sedmého studiového alba Femme Fatale. K písni byl vytvořen i videoklip, kde si zahrál její tehdejší přítel Jason Trawick. V klipu se zamiluje do kriminálníka (Jasona) a pomáhá mu vykrádat obchody...
null
Stručně shrň článek o tématu „Bavoři“ a uveď hlavní fakta.
**Bavoři** Bavoři, či Bavorové, někdy též Bajuvarové (německy Bajuwaren nebo či Baiuwaren, latinsky Baiuvarii) byli germánský kmen. Usadili se v současném Bavorsku, které po nich nese jméno, dále v Rakousku a v Jižním Tyrolsku počátkem 5. století našeho letopočtu a jsou považováni za předky současných Bavorů a Rakušan...
null
Summarize key facts about „Harsco Infrastructure Deutschland GmbH“ clearly and accurately.
**Harsco Infrastructure Deutschland GmbH** The Harsco Infrastructure Deutschland GmbH (formerly Hünnebeck GmbH), with its headquarters located in Ratingen, Germany, is a subsidiary of the Harsco Corporation. The company develops, rents and sells formwork and scaffolding products for the main construction trade and civ...
null
Write a SQL query to get the average salary from the 'employee' table where the job type is 'manager'.
SELECT AVG(salary) FROM employee WHERE job_type="manager";
null
Co je JSON?
JSON je textový formát pro data: objekty `{}`, pole `[]`, řetězce, čísla, true/false/null. Používá se v API a konfiguracích.
null
Spočítej: 12 + 9 = ?
12 + 9 = 21
null
Generate Python code to retrieve a list of tuples in the given string.
String: "[('test1',1), ('test2',2)]"
list_items = [item.replace("'", "").replace("(", "").replace(")", "").split(",") for item in s[1:-1].split("), (")] list_of_tuples = [(item[0], int(item[1])) for item in list_items]
null