messages listlengths 2 2 | instruction stringlengths 14 288 | input stringlengths 0 635 | output stringlengths 1 3.91k |
|---|---|---|---|
[
{
"role": "user",
"content": "How would you modify the following Java code to print the first 5 numbers of the Fibonacci sequence?\n\npublic class FibonacciPrinter {\n public static void printNumbers() {\n System.out.println(\"...\");\n }\n}"
},
{
"role": "assistant",
"content": "pu... | How would you modify the following Java code to print the first 5 numbers of the Fibonacci sequence? | public class FibonacciPrinter {
public static void printNumbers() {
System.out.println("...");
}
} | public class FibonacciPrinter {
public static void printNumbers() {
int n1=0, n2=1, n3, i, count=5;
System.out.print(n1+" "+n2);
for(i=2;i<count;++i)
{
n3=n1+n2;
System.out.print(" "+n3);
n1=n2;
n2=n3;
} ... |
[
{
"role": "user",
"content": "Develop an algorithm that checks for balanced parentheses in a given string."
},
{
"role": "assistant",
"content": "def is_balanced(input_string):\n stack = []\n for char in input_string:\n if char == '(':\n stack.append(char)\n elif c... | Develop an algorithm that checks for balanced parentheses in a given string. | def is_balanced(input_string):
stack = []
for char in input_string:
if char == '(':
stack.append(char)
elif char == ')':
if len(stack) == 0:
return False
else:
stack.pop()
return len(stack) == 0 | |
[
{
"role": "user",
"content": "How can you convert a given object to a JSON string in JavaScript?"
},
{
"role": "assistant",
"content": "We can use the JSON.stringify() method to convert a given object to a JSON string in JavaScript. The syntax for this method is as follows:\n\nvar jsonString = J... | How can you convert a given object to a JSON string in JavaScript? | We can use the JSON.stringify() method to convert a given object to a JSON string in JavaScript. The syntax for this method is as follows:
var jsonString = JSON.stringify(object); | |
[
{
"role": "user",
"content": "Write a query to select a distinct list of data from an SQL table."
},
{
"role": "assistant",
"content": "SELECT DISTINCT * FROM <table_name>;"
}
] | Write a query to select a distinct list of data from an SQL table. | SELECT DISTINCT * FROM <table_name>; | |
[
{
"role": "user",
"content": "Return the index of the first occurrence of an element in the given array.\n\narr = [2, 3, 3, 1, 5, 2]"
},
{
"role": "assistant",
"content": "def first_occurrence(arr, element):\n for i in range(len(arr)):\n if arr[i] == element:\n return i\n ... | Return the index of the first occurrence of an element in the given array. | arr = [2, 3, 3, 1, 5, 2] | def first_occurrence(arr, element):
for i in range(len(arr)):
if arr[i] == element:
return i
return -1 |
[
{
"role": "user",
"content": "Create a class in Java which stores the details of a book (title, author, ISBN)."
},
{
"role": "assistant",
"content": "class Book {\n String title;\n String author;\n String isbn;\n \n public Book(String title, String author, String isbn) {\n ... | Create a class in Java which stores the details of a book (title, author, ISBN). | class Book {
String title;
String author;
String isbn;
public Book(String title, String author, String isbn) {
this.title = title;
this.author = author;
this.isbn = isbn;
}
} | |
[
{
"role": "user",
"content": "Develop a program to apply a given operation (addition or subtraction) on two numbers.\n\noperation: 'addition', a: 4, b:20"
},
{
"role": "assistant",
"content": "def operate(operation, a, b):\n if operation == 'addition':\n return a + b\n elif operatio... | Develop a program to apply a given operation (addition or subtraction) on two numbers. | operation: 'addition', a: 4, b:20 | def operate(operation, a, b):
if operation == 'addition':
return a + b
elif operation == 'subtraction':
return a - b
else:
return 'Invalid operation.'
print(operate('addition', 4, 20)) # prints 24 |
[
{
"role": "user",
"content": "Use linear regression to predict the price of a car based on its make and model.\n\nmake = ['Mazda', 'Volkswagen', 'Chevrolet']\n model = ['3', 'PASSAT', 'Malibu']"
},
{
"role": "assistant",
"content": "import pandas as pd\nfrom sklearn.linear_model import LinearReg... | Use linear regression to predict the price of a car based on its make and model. | make = ['Mazda', 'Volkswagen', 'Chevrolet']
model = ['3', 'PASSAT', 'Malibu'] | import pandas as pd
from sklearn.linear_model import LinearRegression
# load data
data = pd.read_csv('cars.csv')
# create feature matrix
X = data[['make', 'model']]
# set target variable
y = data['price']
# one-hot encode categorical make and model data
X = pd.get_dummies(X, columns=['make', 'model'])
# create and... |
[
{
"role": "user",
"content": "Create a table in SQL to store the names and email addresses of users."
},
{
"role": "assistant",
"content": "CREATE TABLE users ( \n name VARCHAR(255) NOT NULL,\n email VARCHAR(255) NOT NULL \n);"
}
] | Create a table in SQL to store the names and email addresses of users. | CREATE TABLE users (
name VARCHAR(255) NOT NULL,
email VARCHAR(255) NOT NULL
); | |
[
{
"role": "user",
"content": "Using the bubble sort algorithm, sort the following array.\n\n[3, 5, 2, 1, 4]"
},
{
"role": "assistant",
"content": "def bubbleSort(arr): \n n = len(arr)\n \n # Traverse through all array elements \n for i in range(n): \n \n # Last i elements are a... | Using the bubble sort algorithm, sort the following array. | [3, 5, 2, 1, 4] | def bubbleSort(arr):
n = len(arr)
# Traverse through all array elements
for i in range(n):
# Last i elements are already in place
for j in range(0, n-i-1):
# traverse the array from 0 to n-i-1
# Swap if the element found is greater
# than t... |
[
{
"role": "user",
"content": "Write a SQL query that returns all customers from the USA."
},
{
"role": "assistant",
"content": "SELECT * FROM customers WHERE country = 'USA';"
}
] | Write a SQL query that returns all customers from the USA. | SELECT * FROM customers WHERE country = 'USA'; | |
[
{
"role": "user",
"content": "Write pseudocode to sort a given list of integers using bubble sort."
},
{
"role": "assistant",
"content": "# Set a swap flag to true\nswap = true \n# While the flag is true\nwhile swap \n # Set the swap flag to false\n swap = false\n # Iterate through the list\n... | Write pseudocode to sort a given list of integers using bubble sort. | # Set a swap flag to true
swap = true
# While the flag is true
while swap
# Set the swap flag to false
swap = false
# Iterate through the list
for i in range(len(list) - 1):
# Swap adjacent element if they are out of order
if list[i] > list[i + 1]:
temp = list[i]
list[i] = list[i + 1]
... | |
[
{
"role": "user",
"content": "Generate the fibonacci sequence for the first 10 numbers using PHP."
},
{
"role": "assistant",
"content": "$fib = array(0, 1);\n\nfor ($i = 2; $i < 10; $i++) {\n $fib[$i] = $fib[$i-1] + $fib[$i-2];\n} \n\nprint_r($fib); // [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]"... | Generate the fibonacci sequence for the first 10 numbers using PHP. | $fib = array(0, 1);
for ($i = 2; $i < 10; $i++) {
$fib[$i] = $fib[$i-1] + $fib[$i-2];
}
print_r($fib); // [0, 1, 1, 2, 3, 5, 8, 13, 21, 34] | |
[
{
"role": "user",
"content": "Write a SQL query to list the names and ages of all students aged 18 or under."
},
{
"role": "assistant",
"content": "SELECT name, age\nFROM students\nWHERE age <= 18"
}
] | Write a SQL query to list the names and ages of all students aged 18 or under. | SELECT name, age
FROM students
WHERE age <= 18 | |
[
{
"role": "user",
"content": "Construct a class in Java that has two methods called 'sayHello' and 'sayGoodbye'."
},
{
"role": "assistant",
"content": "class HelloGoodbye {\n public static void sayHello() {\n System.out.println(\"Hello!\");\n }\n public static void sayGoodbye() {... | Construct a class in Java that has two methods called 'sayHello' and 'sayGoodbye'. | class HelloGoodbye {
public static void sayHello() {
System.out.println("Hello!");
}
public static void sayGoodbye() {
System.out.println("Goodbye!");
}
} | |
[
{
"role": "user",
"content": "Calculate the number of seconds in a day."
},
{
"role": "assistant",
"content": "seconds_in_day = 24 * 60 * 60"
}
] | Calculate the number of seconds in a day. | seconds_in_day = 24 * 60 * 60 | |
[
{
"role": "user",
"content": "Create a Python program to check if all items in a list are unique.\n\nlist_items = [1,2,3,2,3]"
},
{
"role": "assistant",
"content": "def is_unique(list_items):\n s = set(list_items)\n if len(list_items) == len(s):\n return True\n else:\n return False\n\np... | Create a Python program to check if all items in a list are unique. | list_items = [1,2,3,2,3] | def is_unique(list_items):
s = set(list_items)
if len(list_items) == len(s):
return True
else:
return False
print(is_unique(list_items))
# The output will be False |
[
{
"role": "user",
"content": "Provide a context-free grammar to generate strings that contain only a’s and b’s and which have the same number of a’s as b’s."
},
{
"role": "assistant",
"content": "S -> bAa\nA -> AaA | aAa | bAb | abB | ε"
}
] | Provide a context-free grammar to generate strings that contain only a’s and b’s and which have the same number of a’s as b’s. | S -> bAa
A -> AaA | aAa | bAb | abB | ε | |
[
{
"role": "user",
"content": "Create a CSS3 animation to move an element from left to right."
},
{
"role": "assistant",
"content": "@keyframes move-element {\n 0% { left: 0; }\n 100% { left: 100%; }\n}"
}
] | Create a CSS3 animation to move an element from left to right. | @keyframes move-element {
0% { left: 0; }
100% { left: 100%; }
} | |
[
{
"role": "user",
"content": "Create a CSS class for an element with the size of 100px X 100px and a background color of yellow."
},
{
"role": "assistant",
"content": ".myElement {\n width: 100px;\n height: 100px;\n background-color: yellow;\n}"
}
] | Create a CSS class for an element with the size of 100px X 100px and a background color of yellow. | .myElement {
width: 100px;
height: 100px;
background-color: yellow;
} | |
[
{
"role": "user",
"content": "Create a function to find the longest common prefix of two strings.\n\nstr1 = \"hello\", str2 = \"helmet\""
},
{
"role": "assistant",
"content": "def longest_common_prefix(str1, str2):\n lcp = \"\"\n i = 0\n while i < len(str1) and i < len(str2) and str1[i]... | Create a function to find the longest common prefix of two strings. | str1 = "hello", str2 = "helmet" | def longest_common_prefix(str1, str2):
lcp = ""
i = 0
while i < len(str1) and i < len(str2) and str1[i] == str2[i]:
lcp += str1[i]
i += 1
return lcp |
[
{
"role": "user",
"content": "Calculate the edit distance between the two strings.\n\nstr1 = \"SUPER\"\nstr2 = \"SPHERE\""
},
{
"role": "assistant",
"content": "edit_distance = 2"
}
] | Calculate the edit distance between the two strings. | str1 = "SUPER"
str2 = "SPHERE" | edit_distance = 2 |
[
{
"role": "user",
"content": "Write an SQL query to group the results of a SELECT statement according to the value of a specific column.\n\nSELECT name, age FROM employees;"
},
{
"role": "assistant",
"content": "SELECT name, age\nFROM employees\nGROUP BY age;"
}
] | Write an SQL query to group the results of a SELECT statement according to the value of a specific column. | SELECT name, age FROM employees; | SELECT name, age
FROM employees
GROUP BY age; |
[
{
"role": "user",
"content": "Execute a SQL query to find the 2 most populous countries in the world."
},
{
"role": "assistant",
"content": "SELECT TOP 2 name, population \nFROM WorldWide \nORDER BY population DESC;"
}
] | Execute a SQL query to find the 2 most populous countries in the world. | SELECT TOP 2 name, population
FROM WorldWide
ORDER BY population DESC; | |
[
{
"role": "user",
"content": "Create a Migration Script in Node.js for creating a table for customers.\n\ncustomer_id, first_name, last_name, email"
},
{
"role": "assistant",
"content": "const { Client } = require('pg'); \nconst client = new Client({\n connectionString: process.env.DATABASE_URL... | Create a Migration Script in Node.js for creating a table for customers. | customer_id, first_name, last_name, email | const { Client } = require('pg');
const client = new Client({
connectionString: process.env.DATABASE_URL
});
async function createCustomerTable() {
await client.connect();
const query = `
CREATE TABLE customers (
customer_id SERIAL PRIMARY KEY,
first_name VARCHAR(255) NOT NULL,
last_name ... |
[
{
"role": "user",
"content": "Given an array of integers, write a JavaScript function to remove all duplicate elements."
},
{
"role": "assistant",
"content": "function removeDuplicates(arr) {\n const uniqueElements = [...new Set(arr)];\n return uniqueElements;\n}"
}
] | Given an array of integers, write a JavaScript function to remove all duplicate elements. | function removeDuplicates(arr) {
const uniqueElements = [...new Set(arr)];
return uniqueElements;
} | |
[
{
"role": "user",
"content": "Write a JavaScript function to check if all elements of an array of numbers are distinct.\n\n[1,2,3,4,5]"
},
{
"role": "assistant",
"content": "function areDistinct(arr){\n for(let i=0; i<arr.length-1; i++){\n for(let j=i+1; j<arr.length; j++){\n ... | Write a JavaScript function to check if all elements of an array of numbers are distinct. | [1,2,3,4,5] | function areDistinct(arr){
for(let i=0; i<arr.length-1; i++){
for(let j=i+1; j<arr.length; j++){
if(arr[i]===arr[j])
return false;
}
}
return true;
} |
[
{
"role": "user",
"content": "Add a function to the following JavaScript code to search a value in a given array\n\nconst arr = [12, 5, 8, 130, 44];"
},
{
"role": "assistant",
"content": "const arr = [12, 5, 8, 130, 44];\n\nfunction searchValue(arr, value) {\n for (let i = 0; i < arr.length; ... | Add a function to the following JavaScript code to search a value in a given array | const arr = [12, 5, 8, 130, 44]; | const arr = [12, 5, 8, 130, 44];
function searchValue(arr, value) {
for (let i = 0; i < arr.length; i++) {
if (arr[i] === value) {
return (i);
}
}
return -1;
} |
[
{
"role": "user",
"content": "Write a Bash command to list all the subdirectories of a given directory.\n\nPath: /home/test"
},
{
"role": "assistant",
"content": "ls /home/test/*/"
}
] | Write a Bash command to list all the subdirectories of a given directory. | Path: /home/test | ls /home/test/*/ |
[
{
"role": "user",
"content": "Sum up the digits in the given integer.\n\n12345"
},
{
"role": "assistant",
"content": "15"
}
] | Sum up the digits in the given integer. | 12345 | 15 |
[
{
"role": "user",
"content": "Create a Java application to calculate the mean stock price of a company in the last 5 days.\n\n[10.25, 11.94, 12.56, 11.13, 11.44]"
},
{
"role": "assistant",
"content": "public class StockPrice {\n public static void main(String[] args) {\n double[] stock_price... | Create a Java application to calculate the mean stock price of a company in the last 5 days. | [10.25, 11.94, 12.56, 11.13, 11.44] | public class StockPrice {
public static void main(String[] args) {
double[] stock_prices = {10.25, 11.94, 12.56, 11.13, 11.44};
double stock_price_sum = 0;
for(double stock_price : stock_price) {
stock_price_sum += stock_price;
}
double stock_price_mean = stock_price_sum / stock_prices.len... |
[
{
"role": "user",
"content": "Write a function to identify all palindromes in the given string."
},
{
"role": "assistant",
"content": "def find_palindromes(string):\n result = []\n for i in range(len(string)):\n for j in range(i+2,len(string)+1):\n if string[i:j] == strin... | Write a function to identify all palindromes in the given string. | def find_palindromes(string):
result = []
for i in range(len(string)):
for j in range(i+2,len(string)+1):
if string[i:j] == string[j-1:i-1:-1]:
result.append(string[i:j])
return result | |
[
{
"role": "user",
"content": "Suggest a way to filter out comments containing profane language in a text corpus."
},
{
"role": "assistant",
"content": "One way to filter out comments containing profane language in a text corpus is to use a rule-based algorithm with a list of profane words and ph... | Suggest a way to filter out comments containing profane language in a text corpus. | One way to filter out comments containing profane language in a text corpus is to use a rule-based algorithm with a list of profane words and phrases. This algorithm can be configured to identify words or phrases in a given corpus that match the list of profane words and phrases, and flag them as inappropriate. A secon... | |
[
{
"role": "user",
"content": "Create a valid JavaScript array of objects containing the three elements \"name\", \"age\" and \"gender\".\n\n[{ name: 'John', age: 25, gender: 'male'},{ name: 'Lane', age: 28, gender: 'female'},{ name: 'Mike', age: 33, gender: 'male'}]"
},
{
"role": "assistant",
"c... | Create a valid JavaScript array of objects containing the three elements "name", "age" and "gender". | [{ name: 'John', age: 25, gender: 'male'},{ name: 'Lane', age: 28, gender: 'female'},{ name: 'Mike', age: 33, gender: 'male'}] | let arr = [
{ name: 'John', age: 25, gender: 'male'},
{ name: 'Lane', age: 28, gender: 'female'},
{ name: 'Mike', age: 33, gender: 'male'}
]; |
[
{
"role": "user",
"content": "Create a class in Python called Cat with constructor that takes three arguments i.e. name, color and age. The class should have three methods called meow, purr and display_info."
},
{
"role": "assistant",
"content": "class Cat:\n def __init__(self, name, color, a... | Create a class in Python called Cat with constructor that takes three arguments i.e. name, color and age. The class should have three methods called meow, purr and display_info. | class Cat:
def __init__(self, name, color, age):
self.name = name
self.color = color
self.age = age
def meow(self):
print('%s the %s cat meows!' % (self.name, self.color))
def purr(self):
print('%s the %s cat purrs contentedly.' % (self.name, self.color))
... | |
[
{
"role": "user",
"content": "What is the MySQL command to drop a database named 'test'"
},
{
"role": "assistant",
"content": "The MySQL command to drop a database named 'test' is `DROP DATABASE test;`."
}
] | What is the MySQL command to drop a database named 'test' | The MySQL command to drop a database named 'test' is `DROP DATABASE test;`. | |
[
{
"role": "user",
"content": "Construct a MySQL query to select all customers from the database whose last name starts with 'S'."
},
{
"role": "assistant",
"content": "SELECT * FROM customers WHERE last_name LIKE 'S%';"
}
] | Construct a MySQL query to select all customers from the database whose last name starts with 'S'. | SELECT * FROM customers WHERE last_name LIKE 'S%'; | |
[
{
"role": "user",
"content": "Given an input string, write a function that will remove all non-alphanumeric characters.\n\nHello World!"
},
{
"role": "assistant",
"content": "def remove_non_alphanumeric_chars(input):\n output = \"\"\n for char in input:\n if char.isalnum():\n ... | Given an input string, write a function that will remove all non-alphanumeric characters. | Hello World! | def remove_non_alphanumeric_chars(input):
output = ""
for char in input:
if char.isalnum():
output += char
return output |
[
{
"role": "user",
"content": "Calculate the area of a square with side length 4."
},
{
"role": "assistant",
"content": "Area = 4 x 4 = 16"
}
] | Calculate the area of a square with side length 4. | Area = 4 x 4 = 16 | |
[
{
"role": "user",
"content": "Formulate a loop in Python that prints 7 to 18."
},
{
"role": "assistant",
"content": "for i in range(7, 19):\n print(i)"
}
] | Formulate a loop in Python that prints 7 to 18. | for i in range(7, 19):
print(i) | |
[
{
"role": "user",
"content": "Write a SQL query to find the first ten customers by their joining date."
},
{
"role": "assistant",
"content": "SELECT * \nFROM customers\nORDER BY joining_date ASC\nLIMIT 10;"
}
] | Write a SQL query to find the first ten customers by their joining date. | SELECT *
FROM customers
ORDER BY joining_date ASC
LIMIT 10; | |
[
{
"role": "user",
"content": "What is the purpose of a library in software development?"
},
{
"role": "assistant",
"content": "The purpose of a library in software development is to provide a collection of related functions and data structures that can be used by a program. Libraries are used to... | What is the purpose of a library in software development? | The purpose of a library in software development is to provide a collection of related functions and data structures that can be used by a program. Libraries are used to simplify or abstract away the details of how a particular operation is implemented or offer prepackaged functionality. Libraries offer code reuse, fas... | |
[
{
"role": "user",
"content": "From the given data set, calculate the mean and print it out.\n\n[1, 2, 3, 4, 5]"
},
{
"role": "assistant",
"content": "data_set = [1, 2, 3, 4, 5]\nmean = sum(data_set) / len(data_set)\nprint(\"The mean is {}\".format(mean))"
}
] | From the given data set, calculate the mean and print it out. | [1, 2, 3, 4, 5] | data_set = [1, 2, 3, 4, 5]
mean = sum(data_set) / len(data_set)
print("The mean is {}".format(mean)) |
[
{
"role": "user",
"content": "Given a number n, write a function that finds the sum of the first n odd numbers."
},
{
"role": "assistant",
"content": "def odd_sum(n):\n return sum(list(range(1, 2*n, 2)))"
}
] | Given a number n, write a function that finds the sum of the first n odd numbers. | def odd_sum(n):
return sum(list(range(1, 2*n, 2))) | |
[
{
"role": "user",
"content": "Explain the purpose of the new operator in JavaScript."
},
{
"role": "assistant",
"content": "The new operator in JavaScript is used to create an instance of an object. It allocates memory for the object and calls the object's constructor to initialize the object. I... | Explain the purpose of the new operator in JavaScript. | The new operator in JavaScript is used to create an instance of an object. It allocates memory for the object and calls the object's constructor to initialize the object. It also sets the object's [[Prototype]] property to the constructor function's prototype object. | |
[
{
"role": "user",
"content": "Modify the JavaScript code given below to return the sum of all numbers from 0 to 10 (inclusive).\n\nfunction sum_(start, end) {\n // TODO\n return 0;\n}"
},
{
"role": "assistant",
"content": "function sum_(start, end) {\n let sum = 0;\n\n // iterate ove... | Modify the JavaScript code given below to return the sum of all numbers from 0 to 10 (inclusive). | function sum_(start, end) {
// TODO
return 0;
} | function sum_(start, end) {
let sum = 0;
// iterate over the range and add the elements
// to the 'sum' variable
for (let i = start; i <= end; i++) {
sum += i;
}
return sum;
} |
[
{
"role": "user",
"content": "What is the corresponding HTML tag for this sentence?\n\nI am bold"
},
{
"role": "assistant",
"content": "<b>I am bold</b>"
}
] | What is the corresponding HTML tag for this sentence? | I am bold | <b>I am bold</b> |
[
{
"role": "user",
"content": "Create a function to generate random English sentences.\n\n<noinputn>"
},
{
"role": "assistant",
"content": "import random\nimport nltk\n\ndef generate_sentences(num_sentences):\n sentences = []\n for _ in range(num_sentences):\n sentence = []\n ... | Create a function to generate random English sentences. | <noinputn> | import random
import nltk
def generate_sentences(num_sentences):
sentences = []
for _ in range(num_sentences):
sentence = []
while True:
word = random.choice(nltk.corpus.words.words())
sentence.append(word)
if word[-1] == '.':
break
se... |
[
{
"role": "user",
"content": "Generate a python class for calculating prime numbers up to n.\n\nn = 10"
},
{
"role": "assistant",
"content": "class PrimeCalculator:\n def __init__(self, n):\n self.n = n\n \n def get_primes(self):\n primes = []\n for number in range(... | Generate a python class for calculating prime numbers up to n. | n = 10 | class PrimeCalculator:
def __init__(self, n):
self.n = n
def get_primes(self):
primes = []
for number in range(2, self.n+1):
is_prime = True
for divisor in range(2, number):
if number % divisor == 0:
is_prime = False
... |
[
{
"role": "user",
"content": "Write an HTML page which displays the current time and date."
},
{
"role": "assistant",
"content": "<html>\n <body>\n <p>Today is <span id=\"date\"> </span> and the time is <span id=\"time\"> </span>.</p>\n\n <script>\n let d = new Date();\n\n let date = d.toD... | Write an HTML page which displays the current time and date. | <html>
<body>
<p>Today is <span id="date"> </span> and the time is <span id="time"> </span>.</p>
<script>
let d = new Date();
let date = d.toDateString();
document.getElementById("date").innerHTML = date;
let time = d.toLocaleTimeString();
document.getElementById("time").innerHTML = time;
</scr... | |
[
{
"role": "user",
"content": "Create an array of strings containing the names of the seven days of the week."
},
{
"role": "assistant",
"content": "let daysOfWeek = [\"Monday\", \"Tuesday\", \"Wednesday\", \n \"Thursday\", \"Friday\", \"Saturday\", \n \"Sunday\"... | Create an array of strings containing the names of the seven days of the week. | let daysOfWeek = ["Monday", "Tuesday", "Wednesday",
"Thursday", "Friday", "Saturday",
"Sunday"]; | |
[
{
"role": "user",
"content": "Sort the given array using insertion sort\n\n[5, 1, 4, 2, 8]"
},
{
"role": "assistant",
"content": "def insertion_sort(arr):\n \"\"\"\n Sort given array using insertion sort\n \"\"\"\n # Traverse through the array \n for i in range(1, len(arr)): \n ... | Sort the given array using insertion sort | [5, 1, 4, 2, 8] | def insertion_sort(arr):
"""
Sort given array using insertion sort
"""
# Traverse through the array
for i in range(1, len(arr)):
key = arr[i]
# Move elements of arr[0..i-1], that are
# greater than key, to one position ahead
# of their current position
... |
[
{
"role": "user",
"content": "What should I add in this function to generate a random number?\n\ndef generate_random():\n # Your code here"
},
{
"role": "assistant",
"content": "import random\ndef generate_random():\n return random.randint(0,100)"
}
] | What should I add in this function to generate a random number? | def generate_random():
# Your code here | import random
def generate_random():
return random.randint(0,100) |
[
{
"role": "user",
"content": "Construct a simple MySQL query"
},
{
"role": "assistant",
"content": "SELECT * FROM table_name;"
}
] | Construct a simple MySQL query | SELECT * FROM table_name; | |
[
{
"role": "user",
"content": "Answer the following question about the data structure Stack.\n\nWhat is the order of accessing elements from the Stack?"
},
{
"role": "assistant",
"content": "The order of accessing elements from the Stack is Last In First Out (LIFO)."
}
] | Answer the following question about the data structure Stack. | What is the order of accessing elements from the Stack? | The order of accessing elements from the Stack is Last In First Out (LIFO). |
[
{
"role": "user",
"content": "Create a function to print a multiline message in Python\n\nmessage = \"This is a multiline \nmessage.\""
},
{
"role": "assistant",
"content": "def print_multiline_message(message):\n print(message)"
}
] | Create a function to print a multiline message in Python | message = "This is a multiline
message." | def print_multiline_message(message):
print(message) |
[
{
"role": "user",
"content": "Generate an HTML form element to input a password."
},
{
"role": "assistant",
"content": "<input type=\"password\" name=\"password\" />"
}
] | Generate an HTML form element to input a password. | <input type="password" name="password" /> | |
[
{
"role": "user",
"content": "Automate calculations in Excel by writing a VBA program to calculate the sum of two columns."
},
{
"role": "assistant",
"content": "Sub columns_sum()\n Dim cell As Range\n Dim first_sum As Integer, second_sum As Integer\n \n For Each cell In Range(\"A1:A5\")\n ... | Automate calculations in Excel by writing a VBA program to calculate the sum of two columns. | Sub columns_sum()
Dim cell As Range
Dim first_sum As Integer, second_sum As Integer
For Each cell In Range("A1:A5")
first_sum = first_sum + cell.Value
Next cell
For Each cell In Range("B1:B5")
second_sum = second_sum + cell.Value
Next cell
Range("D3").Value = first_sum + second_sum
End Sub | |
[
{
"role": "user",
"content": "Generate a JavaScript object that contains two key-value pairs."
},
{
"role": "assistant",
"content": "let object = {\n key1: \"value1\",\n key2: \"value2\" \n}"
}
] | Generate a JavaScript object that contains two key-value pairs. | let object = {
key1: "value1",
key2: "value2"
} | |
[
{
"role": "user",
"content": "Create code that will print the elements of a list in reverse order.\n\nmy_list = [1,2,3,4]"
},
{
"role": "assistant",
"content": "my_list = [1,2,3,4]\nfor i in range(len(my_list)-1,-1,-1):\n print(my_list[i])"
}
] | Create code that will print the elements of a list in reverse order. | my_list = [1,2,3,4] | my_list = [1,2,3,4]
for i in range(len(my_list)-1,-1,-1):
print(my_list[i]) |
[
{
"role": "user",
"content": "Write HTML code for a text input field with the placeholder \"Enter name\"."
},
{
"role": "assistant",
"content": "<input type=\"text\" placeholder=\"Enter name\">"
}
] | Write HTML code for a text input field with the placeholder "Enter name". | <input type="text" placeholder="Enter name"> | |
[
{
"role": "user",
"content": "Create an initialization script for a database."
},
{
"role": "assistant",
"content": "#!/usr/bin/env python\n\nimport sqlite3\n\ndb_name = 'example.db'\n\n# connect to the database\n\ndb_connection = sqlite3.connect(db_name)\n\n# create tables\n\ndb_connection.exec... | Create an initialization script for a database. | #!/usr/bin/env python
import sqlite3
db_name = 'example.db'
# connect to the database
db_connection = sqlite3.connect(db_name)
# create tables
db_connection.execute('''
CREATE TABLE IF NOT EXISTS users (
id INTEGER PRIMARY KEY,
name TEXT NOT NULL,
password TEXT NOT NULL)
''')
db_conne... | |
[
{
"role": "user",
"content": "Design a function to remove duplicates from an array"
},
{
"role": "assistant",
"content": "def remove_duplicates(arr):\n # Stores the unique elements\n unique = []\n\n # Iterate through the array\n for elem in arr:\n # If the element is not alrea... | Design a function to remove duplicates from an array | def remove_duplicates(arr):
# Stores the unique elements
unique = []
# Iterate through the array
for elem in arr:
# If the element is not already in the unique list
if elem not in unique:
# Add it to the unique list
unique.append(elem)
# Return the array wit... | |
[
{
"role": "user",
"content": "Write a code to generate a random 7 digit phone number."
},
{
"role": "assistant",
"content": "\"\"\"\nWrite a code to generate a random 7 digit phone number.\n\"\"\"\n\nimport random\n\ndef generate_random_phone_number():\n # create a list of digits\n lst = [... | Write a code to generate a random 7 digit phone number. | """
Write a code to generate a random 7 digit phone number.
"""
import random
def generate_random_phone_number():
# create a list of digits
lst = [str(i) for i in range(10)]
# randomly select one digit
random.shuffle(lst)
# generate a 7-digit phone number
phone_number = ''.join(lst[:... | |
[
{
"role": "user",
"content": "Generate a number in range between 1 to 10 randomly."
},
{
"role": "assistant",
"content": "import random\n\ndef random_num():\n return random.randint(1, 10)\n\nif __name__ == '__main__':\n print(random_num())"
}
] | Generate a number in range between 1 to 10 randomly. | import random
def random_num():
return random.randint(1, 10)
if __name__ == '__main__':
print(random_num()) | |
[
{
"role": "user",
"content": "Create a function to check whether a given value is in an array.\n\narr = [1,2,3,4]\nx = 2"
},
{
"role": "assistant",
"content": "def is_value_in_arr(arr, x):\n if x in arr:\n return True\n else:\n return False"
}
] | Create a function to check whether a given value is in an array. | arr = [1,2,3,4]
x = 2 | def is_value_in_arr(arr, x):
if x in arr:
return True
else:
return False |
[
{
"role": "user",
"content": "Generate a valid HTML form for a login page.\n\nUsername:\nPassword:"
},
{
"role": "assistant",
"content": "<form action=\"login.php\" method=\"post\">\n <label for=\"username\">Username:</label><br>\n <input type=\"text\" name=\"username\" id=\"username\"><br... | Generate a valid HTML form for a login page. | Username:
Password: | <form action="login.php" method="post">
<label for="username">Username:</label><br>
<input type="text" name="username" id="username"><br>
<label for="password">Password:</label><br>
<input type="password" name="password" id="password"><br>
<input type="submit" value="Submit">
</form> |
[
{
"role": "user",
"content": "Describe the purpose of the ``await`` operator in an asynchronous JavaScript function."
},
{
"role": "assistant",
"content": "The purpose of the \"await\" operator in an asynchronous JavaScript function is to pause the execution of the function until a Promise is re... | Describe the purpose of the ``await`` operator in an asynchronous JavaScript function. | The purpose of the "await" operator in an asynchronous JavaScript function is to pause the execution of the function until a Promise is resolved and to return the resolved value from the Promise. | |
[
{
"role": "user",
"content": "Reverse a linked list."
},
{
"role": "assistant",
"content": "def reverseList(node): \n prev = None\n while (node != None): \n next = node.next\n node.next = prev \n prev = node \n node = next\n return prev"
}
] | Reverse a linked list. | def reverseList(node):
prev = None
while (node != None):
next = node.next
node.next = prev
prev = node
node = next
return prev | |
[
{
"role": "user",
"content": "Create a for loop in JavaScript to iterate through the given array and print out their sum.\n\n[20, 32, 45, 16]"
},
{
"role": "assistant",
"content": "let result = 0;\nlet numList = [20, 32, 45, 16];\n\nfor (let i = 0; i < numList.length; i++){\n result += numLis... | Create a for loop in JavaScript to iterate through the given array and print out their sum. | [20, 32, 45, 16] | let result = 0;
let numList = [20, 32, 45, 16];
for (let i = 0; i < numList.length; i++){
result += numList[i];
}
console.log(result); |
[
{
"role": "user",
"content": "Write an HTML page that displays a Javascript alert when a button is clicked."
},
{
"role": "assistant",
"content": "<html>\n <head>\n <!-- Include the script -->\n <script src=\"alert.js\"></script>\n </head>\n <body>\n <button id=\"btnAlert\" onclick=\... | Write an HTML page that displays a Javascript alert when a button is clicked. | <html>
<head>
<!-- Include the script -->
<script src="alert.js"></script>
</head>
<body>
<button id="btnAlert" onclick="alertFunction()">Alert</button>
</body>
</html>
// alert.js
function alertFunction() {
alert("This is an alert!");
} | |
[
{
"role": "user",
"content": "Construct an appropriate list of even numbers between 0 and 10."
},
{
"role": "assistant",
"content": "[0, 2, 4, 6, 8, 10]"
}
] | Construct an appropriate list of even numbers between 0 and 10. | [0, 2, 4, 6, 8, 10] | |
[
{
"role": "user",
"content": "Combine a loop and a conditional statement to output the following\n\n[2, 3, 4, 5]"
},
{
"role": "assistant",
"content": "arr = [2, 3, 4, 5] \n\nfor i in arr: \n if i % 2 == 0: \n print(i) \n\n# Output: \n2\n4"
}
] | Combine a loop and a conditional statement to output the following | [2, 3, 4, 5] | arr = [2, 3, 4, 5]
for i in arr:
if i % 2 == 0:
print(i)
# Output:
2
4 |
[
{
"role": "user",
"content": "Create a class in C++ for a circle which includes radius as a member variable."
},
{
"role": "assistant",
"content": "#include <iostream>\n\nclass Circle {\n private:\n double radius;\n\n public:\n Circle(double r) {\n radius = r;\n ... | Create a class in C++ for a circle which includes radius as a member variable. | #include <iostream>
class Circle {
private:
double radius;
public:
Circle(double r) {
radius = r;
}
double getRadius() {
return radius;
}
}; | |
[
{
"role": "user",
"content": "Analyze a given text and generate a dictionary of frequency of each word in the text.\n\ntext = \"This is a sample text to analyze the frequency of the words\""
},
{
"role": "assistant",
"content": "def analyze_text(text):\n text = text.lower().split()\n freqD... | Analyze a given text and generate a dictionary of frequency of each word in the text. | text = "This is a sample text to analyze the frequency of the words" | def analyze_text(text):
text = text.lower().split()
freqDict = {}
for word in text:
if word in freqDict:
freqDict[word] += 1
else:
freqDict[word] = 1
return freqDict
if __name__ == '__main__':
text = "This is a sample text to analyze the frequency of the word... |
[
{
"role": "user",
"content": "Given an integer n, write a Python program to print a pattern.\n\nn = 5"
},
{
"role": "assistant",
"content": "for i in range(1, n+1): \n for j in range(1,i+1): \n print(\"* \", end=\"\") \n print(\"\\r\")"
}
] | Given an integer n, write a Python program to print a pattern. | n = 5 | for i in range(1, n+1):
for j in range(1,i+1):
print("* ", end="")
print("\r") |
[
{
"role": "user",
"content": "Write a query to extract data from a table called \"inventory\" which contains the columns: id, item, quantity"
},
{
"role": "assistant",
"content": "SELECT id, item, quantity\nFROM inventory"
}
] | Write a query to extract data from a table called "inventory" which contains the columns: id, item, quantity | SELECT id, item, quantity
FROM inventory | |
[
{
"role": "user",
"content": "Implement a function in C++ that takes two strings as parameters and returns the longest common substring between the two.\n\nstr1 = \"stackoverflow\"\nstr2 = \"overburning\""
},
{
"role": "assistant",
"content": "#include <iostream>\n#include <string>\n\nusing name... | Implement a function in C++ that takes two strings as parameters and returns the longest common substring between the two. | str1 = "stackoverflow"
str2 = "overburning" | #include <iostream>
#include <string>
using namespace std;
//function to find common substring
string longestCommonSubstring(string str1, string str2)
{
int m = str1.length();
int n = str2.length();
int table[m + 1][n + 1];
//fill the lookup table
int res_len = 0;
string res;
for(int i=0... |
[
{
"role": "user",
"content": "Create a while loop in Python to increment a counter by 1 until it reaches 10.\n\ncounter = 0"
},
{
"role": "assistant",
"content": "while counter < 10:\n counter += 1"
}
] | Create a while loop in Python to increment a counter by 1 until it reaches 10. | counter = 0 | while counter < 10:
counter += 1 |
[
{
"role": "user",
"content": "Apply the filter method in JavaScript to return only those elements of a given array that are not null.\n\nconst array = [1, null, 2, undefined, 3, NaN];"
},
{
"role": "assistant",
"content": "const filteredArray = array.filter(el => el != null);"
}
] | Apply the filter method in JavaScript to return only those elements of a given array that are not null. | const array = [1, null, 2, undefined, 3, NaN]; | const filteredArray = array.filter(el => el != null); |
[
{
"role": "user",
"content": "Write a user authentication code in Python"
},
{
"role": "assistant",
"content": "def authentication(username,password): \n if username == \"username\" and password == \"password\": \n print (\"Login successful\") \n else: \n print (\"Incorrect u... | Write a user authentication code in Python | def authentication(username,password):
if username == "username" and password == "password":
print ("Login successful")
else:
print ("Incorrect username or password")
username = input("Enter your username: ")
password = input("Enter your password: ")
authentication(username, password) | |
[
{
"role": "user",
"content": "Develop a new class in Python to represent a Rectangle object with getArea() and getPerimeter() methods."
},
{
"role": "assistant",
"content": "class Rectangle: \n def __init__(self, length, width): \n self.length = length \n self.width = width \n\n... | Develop a new class in Python to represent a Rectangle object with getArea() and getPerimeter() methods. | class Rectangle:
def __init__(self, length, width):
self.length = length
self.width = width
def getArea(self):
return self.length * self.width
def getPerimeter(self):
return 2 * (self.length + self.width) | |
[
{
"role": "user",
"content": "Create a nested For loop in Python with the outer loop counting from 0 to 3 and the inner loop counting from 5 to 10."
},
{
"role": "assistant",
"content": "for i in range(0,4):\n for j in range(5,11):\n print(\"outer loop at: \"+str(i)+\" inner loop at: \"+str... | Create a nested For loop in Python with the outer loop counting from 0 to 3 and the inner loop counting from 5 to 10. | for i in range(0,4):
for j in range(5,11):
print("outer loop at: "+str(i)+" inner loop at: "+str(j)) | |
[
{
"role": "user",
"content": "Create a React component for a dropdown menu.\n\nThe menu should list the following options: Home, About, Contact."
},
{
"role": "assistant",
"content": "import React, { Component } from 'react';\n\nclass DropdownMenu extends Component {\n state = {\n displayMen... | Create a React component for a dropdown menu. | The menu should list the following options: Home, About, Contact. | import React, { Component } from 'react';
class DropdownMenu extends Component {
state = {
displayMenu: false,
};
showDropdownMenu = (event) => {
event.preventDefault();
this.setState({ displayMenu: true }, () => {
document.addEventListener('click', this.hideDropdownMenu);
});
}
hideD... |
[
{
"role": "user",
"content": "Create a dictionary in which keys are characters and values are the occurences of that character in a given string.\n\nstring = \"apple\""
},
{
"role": "assistant",
"content": "def get_char_count(string):\n char_count = {}\n for char in string:\n if cha... | Create a dictionary in which keys are characters and values are the occurences of that character in a given string. | string = "apple" | def get_char_count(string):
char_count = {}
for char in string:
if char not in char_count:
char_count[char] = 1
else:
char_count[char] += 1
return char_count |
[
{
"role": "user",
"content": "Parse the following HTML using the BeautifulSoup library in Python.\n\nhtml = '<h1>This is a heading</h1><p>This is a paragraph.</p>'"
},
{
"role": "assistant",
"content": "from bs4 import BeautifulSoup\n\nsoup = BeautifulSoup(html, 'html.parser')\n\nheading = soup.... | Parse the following HTML using the BeautifulSoup library in Python. | html = '<h1>This is a heading</h1><p>This is a paragraph.</p>' | from bs4 import BeautifulSoup
soup = BeautifulSoup(html, 'html.parser')
heading = soup.h1.string
paragraph = soup.p.string
print("Heading:", heading)
print("Paragraph:", paragraph)
# Output:
Heading: This is a heading
Paragraph: This is a paragraph. |
[
{
"role": "user",
"content": "Create a MySQL trigger to perform a data validation check when a new row is created."
},
{
"role": "assistant",
"content": "CREATE TRIGGER my_data_validation_check\n BEFORE INSERT ON my_table\n FOR EACH ROW\nBEGIN\n IF EXISTS \n THEN \n IF NEW.my_column NOT B... | Create a MySQL trigger to perform a data validation check when a new row is created. | CREATE TRIGGER my_data_validation_check
BEFORE INSERT ON my_table
FOR EACH ROW
BEGIN
IF EXISTS
THEN
IF NEW.my_column NOT BETWEEN 0 AND 100
THEN
SIGNAL SQLSTATE '45001'
SET MESSAGE_TEXT = 'Data validation failed.';
END IF;
END IF;
END | |
[
{
"role": "user",
"content": "Perform data validation on two strings s1 and s2 according to the given conditions on the length and special characters.\n\ns1 = \"Hello@world\"\ns2 = \"Test\""
},
{
"role": "assistant",
"content": "def validate_strings(s1, s2):\n if len(s1) > 10 and '@' not in s... | Perform data validation on two strings s1 and s2 according to the given conditions on the length and special characters. | s1 = "Hello@world"
s2 = "Test" | def validate_strings(s1, s2):
if len(s1) > 10 and '@' not in s1:
return False
if len(s2) < 5 and '@' in s2:
return False
return True |
[
{
"role": "user",
"content": "Create a function in Java for computing the factorial of a positive integer number."
},
{
"role": "assistant",
"content": "public static long factorial(int n) {\n if (n == 0) {\n return 1;\n }\n long result = 1;\n for (int i = 1; i <= n; i++) {\n ... | Create a function in Java for computing the factorial of a positive integer number. | public static long factorial(int n) {
if (n == 0) {
return 1;
}
long result = 1;
for (int i = 1; i <= n; i++) {
result *= i;
}
return result;
} | |
[
{
"role": "user",
"content": "How can you replace a character in a string in Ruby?"
},
{
"role": "assistant",
"content": "In Ruby you can use the gsub method to replace a character in a string. For example, to replace the character 'z' with 'x' in a string str:\n\nstr.gsub('z', 'x')"
}
] | How can you replace a character in a string in Ruby? | In Ruby you can use the gsub method to replace a character in a string. For example, to replace the character 'z' with 'x' in a string str:
str.gsub('z', 'x') | |
[
{
"role": "user",
"content": "Write a HTML code snippet to create a table with three columns."
},
{
"role": "assistant",
"content": "<table>\n <tr>\n <th>column 1</th>\n <th>column 2</th>\n <th>column 3</th>\n </tr>\n</table>"
}
] | Write a HTML code snippet to create a table with three columns. | <table>
<tr>
<th>column 1</th>
<th>column 2</th>
<th>column 3</th>
</tr>
</table> | |
[
{
"role": "user",
"content": "Convert the following code to an equivalent program in Java.\n\ndef printing_number(number):\n print(number)"
},
{
"role": "assistant",
"content": "public void printing_number(int number) {\n System.out.println(number);\n}"
}
] | Convert the following code to an equivalent program in Java. | def printing_number(number):
print(number) | public void printing_number(int number) {
System.out.println(number);
} |
[
{
"role": "user",
"content": "code a Python script that converts temperatures in celsius to fahrenheit."
},
{
"role": "assistant",
"content": "def celsius_to_fahrenheit(celsius):\n return (celsius * 9/5) + 32"
}
] | code a Python script that converts temperatures in celsius to fahrenheit. | def celsius_to_fahrenheit(celsius):
return (celsius * 9/5) + 32 | |
[
{
"role": "user",
"content": "Create a program in Java that validates an input string for containing only numbers."
},
{
"role": "assistant",
"content": "public class NumberValidation {\n\n public boolean isNumeric(String str) {\n try {\n Double.parseDouble(str);\n ... | Create a program in Java that validates an input string for containing only numbers. | public class NumberValidation {
public boolean isNumeric(String str) {
try {
Double.parseDouble(str);
return true;
} catch(NumberFormatException e){
return false;
}
}
} | |
[
{
"role": "user",
"content": "Print the output of the following loop.\n\nfor i in range(6):\n print(i)"
},
{
"role": "assistant",
"content": "# print the output of the loop\nfor i in range(6):\n print(i)\n \n# output of the loop\n0\n1\n2\n3\n4\n5"
}
] | Print the output of the following loop. | for i in range(6):
print(i) | # print the output of the loop
for i in range(6):
print(i)
# output of the loop
0
1
2
3
4
5 |
[
{
"role": "user",
"content": "Implement a function to convert USD dollars to Euro.\n\namount = 100"
},
{
"role": "assistant",
"content": "def convert_usd_to_euro(amount):\n \"\"\"This function takes a given amount of USD and returns the equivalent amount in Euro \"\"\"\n euro_amount = amou... | Implement a function to convert USD dollars to Euro. | amount = 100 | def convert_usd_to_euro(amount):
"""This function takes a given amount of USD and returns the equivalent amount in Euro """
euro_amount = amount * 0.82
return euro_amount
# Example Usage
usd_amount = 100
euro_amount = convert_usd_to_euro(usd_amount)
# euro_amount should be 82.0 |
[
{
"role": "user",
"content": "Implement quick sort to sort the given array of integers.\n\n[9, 5, 8, 1, 3, 6, 7]"
},
{
"role": "assistant",
"content": "def partition(nums, low, high):\n i = low-1\n # set pivot as last element in array\n pivot = nums[high]\n \n for j in range(low, ... | Implement quick sort to sort the given array of integers. | [9, 5, 8, 1, 3, 6, 7] | def partition(nums, low, high):
i = low-1
# set pivot as last element in array
pivot = nums[high]
for j in range(low, high):
# if element is smaller than pivot, increment i and swap elements
if nums[j] < pivot:
i += 1
nums[i], nums[j] = nums[j], nums[i]
... |
[
{
"role": "user",
"content": "Create a Windows batch command to check if a folder named \"Temp\" exists or not.\n\nFolder Name: Temp"
},
{
"role": "assistant",
"content": "IF EXIST \"Temp\" (\n\nECHO Folder exists\n\n) ELSE (\n\nECHO Folder does not exist\n\n)"
}
] | Create a Windows batch command to check if a folder named "Temp" exists or not. | Folder Name: Temp | IF EXIST "Temp" (
ECHO Folder exists
) ELSE (
ECHO Folder does not exist
) |
[
{
"role": "user",
"content": "Write a C# code to convert a given number to words.\n\n563"
},
{
"role": "assistant",
"content": "public static string NumberToWords(int number)\n{\n if (number == 0)\n return \"Zero\";\n\n int[] num = new int[4];\n int first = 0;\n int u, h, t;\n... | Write a C# code to convert a given number to words. | 563 | public static string NumberToWords(int number)
{
if (number == 0)
return "Zero";
int[] num = new int[4];
int first = 0;
int u, h, t;
System.Text.StringBuilder sb = new System.Text.StringBuilder();
if (number < 0)
{
sb.Append("Minus ");
number = -number;
}
s... |
[
{
"role": "user",
"content": "Generate an HTML form with a text input box."
},
{
"role": "assistant",
"content": "<form> \n <input type=\"text\" name=\"name\" /> \n</form>"
}
] | Generate an HTML form with a text input box. | <form>
<input type="text" name="name" />
</form> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.