dataset stringclasses 1 value | id stringlengths 15 19 | messages list |
|---|---|---|
self_instruct | self_instruct_0 | [
{
"role": "user",
"content": "Plase answer the following request: Write a letter to your boss asking for an increase in salary.\nAnswer:"
},
{
"role": "assistant",
"content": "Dear [Boss],\nI am writing to you today to request a raise in my salary. I have been working for the company for over tw... |
self_instruct | self_instruct_1 | [
{
"role": "user",
"content": "Task: Given two integers, find their average.\n\n2, 3\n\n"
},
{
"role": "assistant",
"content": "(2 + 3) / 2 = 2.5"
}
] |
self_instruct | self_instruct_2 | [
{
"role": "user",
"content": "Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.\n\n### Instruction:\nGiven two integers, find their average.\n\n### Input:\n-1, 0\n\n### Response:"
},
{
"role":... |
self_instruct | self_instruct_3 | [
{
"role": "user",
"content": "Write a response that appropriately completes the request.\n\n### Instruction:\nFind out what the most popular girl's name is in america.\n\n### Response:"
},
{
"role": "assistant",
"content": "Emma"
}
] |
self_instruct | self_instruct_4 | [
{
"role": "user",
"content": "Write a series of questions about your future plans.\nInput: Question: Where do you see yourself in 5 years?\nOutput:"
},
{
"role": "assistant",
"content": "In five years, I hope to have finished my PhD and be working on my first paper."
}
] |
self_instruct | self_instruct_5 | [
{
"role": "user",
"content": "Task: Write a series of questions about your future plans.\n\nQuestion: What are your plans for the next few years?\n\n"
},
{
"role": "assistant",
"content": "I plan to continue my education and get a PhD in Computer Science. After that, I would like to work as a re... |
self_instruct | self_instruct_6 | [
{
"role": "user",
"content": "What do you think will happen to you in 5 years?"
},
{
"role": "assistant",
"content": "\nI will be a successful software engineer."
}
] |
self_instruct | self_instruct_7 | [
{
"role": "user",
"content": "Plase answer the following request: Who was your favorite teacher and why?\nAnswer:"
},
{
"role": "assistant",
"content": "My favorite teacher was Mr. Smith, because he always encouraged me to do my best and never gave up on me when I struggled with a subject."
}
... |
self_instruct | self_instruct_8 | [
{
"role": "user",
"content": "How would you describe yourself?"
},
{
"role": "assistant",
"content": "\nI am a very hardworking and ambitious person. I always try to achieve my goals, even if it takes me a lot of time and effort. I am also very responsible and reliable."
}
] |
self_instruct | self_instruct_9 | [
{
"role": "user",
"content": "Write a response that appropriately completes the request.\n\n### Instruction:\nIs there anything you regret doing?\n\n### Response:"
},
{
"role": "assistant",
"content": "Yes, I regret not studying harder in school."
}
] |
self_instruct | self_instruct_10 | [
{
"role": "user",
"content": "Find out the least common multiple of the following set: 1,2,3,4,5,6. Output:"
},
{
"role": "assistant",
"content": "60"
}
] |
self_instruct | self_instruct_11 | [
{
"role": "user",
"content": "Plase answer the following request: Find out which country has the most rivers that flows into the ocean.\nAnswer:"
},
{
"role": "assistant",
"content": "The country with the most rivers that flow into the ocean is Russia."
}
] |
self_instruct | self_instruct_12 | [
{
"role": "user",
"content": "Write a sentence using all three pronouns i, you and he/she.\nResponse:"
},
{
"role": "assistant",
"content": "I love you."
}
] |
self_instruct | self_instruct_13 | [
{
"role": "user",
"content": "Write a response that appropriately completes the request.\n\n### Instruction:\nWrite a sentence using all three pronouns i, you and he/she.\n\n### Response:"
},
{
"role": "assistant",
"content": "He/she loves me."
}
] |
self_instruct | self_instruct_14 | [
{
"role": "user",
"content": "Instruction: Translate this english sentence into chinese: \"i have not seen any other students who is as hardworking as she.\"\nOutput:"
},
{
"role": "assistant",
"content": "我还没有见过其他学生像她那样努力。"
}
] |
self_instruct | self_instruct_15 | [
{
"role": "user",
"content": "Use the words given to form a sentence with an adjective-noun compound subject.\n\nWords: beautiful, girl, boy, man, woman, handsome, ugly\n\n"
},
{
"role": "assistant",
"content": "The beautiful girl is talking to the handsome boy."
}
] |
self_instruct | self_instruct_16 | [
{
"role": "user",
"content": "Task: Use the words given to form a sentence with an adjective-noun compound subject.\n\nWords: good, bad, nice, pretty, ugly, smart, stupid\n\n"
},
{
"role": "assistant",
"content": "The pretty girl is talking to the smart boy."
}
] |
self_instruct | self_instruct_17 | [
{
"role": "user",
"content": "Write a response that appropriately completes the request.\n\n### Instruction:\nFind out how many times can we subtract 5 from 15 without getting 0.\n\n### Response:"
},
{
"role": "assistant",
"content": "def countSubtract(n):\n count = 0\n for i in range(1, n... |
self_instruct | self_instruct_18 | [
{
"role": "user",
"content": "Tell me how would you respond to the following request.\nTranslate this word into chinese: \"mixed\"\n"
},
{
"role": "assistant",
"content": "mixed = 混合的, 不协调的, 各种各样的"
}
] |
self_instruct | self_instruct_19 | [
{
"role": "user",
"content": "What does the following piece of code do?\n\ndef f(x):\n return x + 2\n\n"
},
{
"role": "assistant",
"content": "This function adds 2 to the input and returns it."
}
] |
self_instruct | self_instruct_20 | [
{
"role": "user",
"content": "Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.\n\n### Instruction:\nWhat does the following piece of code do?\n\n### Input:\ndef g(x):\n return x * 3\n\n### Respons... |
self_instruct | self_instruct_21 | [
{
"role": "user",
"content": "Given a list of words, output their longest common substring. for example, given [\"cat\", \"hat\", \"sat\"], return [\"at\".]\nInput: [\"cat\", \"hat\", \"sat\"]\nOutput:"
},
{
"role": "assistant",
"content": "[\"at\"]"
}
] |
self_instruct | self_instruct_22 | [
{
"role": "user",
"content": "Task: Given a list of words, output their longest common substring. for example, given [\"cat\", \"hat\", \"sat\"], return [\"at\".]\nInput: [\"cat\", \"hat\", \"sat\", \"rat\", \"fat\", \"man\"]\nOutput:"
},
{
"role": "assistant",
"content": "[\"at\", \"ha\", \"ma\... |
self_instruct | self_instruct_23 | [
{
"role": "user",
"content": "Find the sum of all the multiples of 3 or 5 below 1000. Output:"
},
{
"role": "assistant",
"content": "def sum(n):\n sum = 0\n for i in range(1, n+1):\n if i % 3 == 0 or i % 5 == 0:\n sum += i\n return sum"
}
] |
self_instruct | self_instruct_24 | [
{
"role": "user",
"content": "Task: Sort a linked list in place.\n\n[2, 4, 6, 8, 10]\n\nAnswer:"
},
{
"role": "assistant",
"content": "[10, 8, 6, 4, 2]"
}
] |
self_instruct | self_instruct_25 | [
{
"role": "user",
"content": "You need to complete the following task:\n\nConvert roman numerals into arabic numerals.\n\nMMXIV\n\nAnswer:"
},
{
"role": "assistant",
"content": "2014"
}
] |
self_instruct | self_instruct_26 | [
{
"role": "user",
"content": "Convert roman numerals into arabic numerals.\n\nNow complete the following instance -\nInput: MCMLXXXVII\nOutput:"
},
{
"role": "assistant",
"content": "1987"
}
] |
self_instruct | self_instruct_27 | [
{
"role": "user",
"content": "A palindrome is a word, phrase, number, or other sequence of characters which reads the same backward as forward, such as madam, racecar, level, and kayak. identify the palindromes in the following sentence: \"able was i ere i saw elba.\""
},
{
"role": "assistant",
... |
self_instruct | self_instruct_28 | [
{
"role": "user",
"content": "Is there any way to make the following sentence grammatically correct?\nSentence: The book was written by an author who has never been read.\n"
},
{
"role": "assistant",
"content": "Yes, you can make the sentence grammatically correct by changing \"has\" to \"have\"... |
self_instruct | self_instruct_29 | [
{
"role": "user",
"content": "Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.\n\n### Instruction:\nIs there any way to make the following sentence grammatically correct?\n\n### Input:\nSentence: I h... |
self_instruct | self_instruct_30 | [
{
"role": "user",
"content": "Find out how many times you can subtract 1 from 100 without getting a negative number.\n\nAnswer:"
},
{
"role": "assistant",
"content": "def countSubtractOne(n):\n count = 0\n for i in range(1, n+1):\n if n - i == 1:\n \t count += 1\n return c... |
self_instruct | self_instruct_31 | [
{
"role": "user",
"content": "Write a response that appropriately completes the request.\n\n### Instruction:\nWhat is the probability of picking two people at random in this class who have the same birthday?\n\n### Response:"
},
{
"role": "assistant",
"content": "There are 365 students in the cl... |
self_instruct | self_instruct_32 | [
{
"role": "user",
"content": "What is the probability of picking two people at random in this class who have the same birthday?"
},
{
"role": "assistant",
"content": "\nIf we pick one person from the class, then the probability that they share a birthday with someone else is 364/365. If we pick ... |
self_instruct | self_instruct_33 | [
{
"role": "user",
"content": "What is the probability of picking two people at random in this class who have the same birthday?\n\n"
},
{
"role": "assistant",
"content": "The probability of picking two people at random in this class who have the same birthday is 1/365."
}
] |
self_instruct | self_instruct_34 | [
{
"role": "user",
"content": "Write a response that appropriately completes the request.\n\n### Instruction:\nIf you had $5000 and could invest it so as to get 4% interest compounded monthly, how much money would you have after 5 years? how about 10 years?\n\n### Response:"
},
{
"role": "assistant",... |
self_instruct | self_instruct_35 | [
{
"role": "user",
"content": "Given a sorted array, write a function to find the median element.\n[1, 2, 3, 4, 5]\n\n"
},
{
"role": "assistant",
"content": "3"
}
] |
self_instruct | self_instruct_36 | [
{
"role": "user",
"content": "Given a sorted array, write a function to find the median element.\n\nAdditional Context:\n[2, 1, 3, 4, 5]\n\nAnswer:"
},
{
"role": "assistant",
"content": "2"
}
] |
self_instruct | self_instruct_37 | [
{
"role": "user",
"content": "You need to complete the following task:\n\nFind out the name of a country's president.\n\n"
},
{
"role": "assistant",
"content": "import requests, bs4\nurl = 'https://www.whitehouse.gov/1600/presidents/'\nr = requests.get(url)\nhtml = r.text\ndoc = bs4.BeautifulSou... |
self_instruct | self_instruct_38 | [
{
"role": "user",
"content": "Write an algorithm to solve the following problem: given two lists, find if they are equal or not. if yes, print true else false.\nList1 = [1, 2, 3] and List2 = [1, 2, 3]\n\nResponse:"
},
{
"role": "assistant",
"content": "True"
}
] |
self_instruct | self_instruct_39 | [
{
"role": "user",
"content": "Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.\n\n### Instruction:\nWrite an algorithm to solve the following problem: given two lists, find if they are equal or not. ... |
self_instruct | self_instruct_40 | [
{
"role": "user",
"content": "Design a system for generating unique passwords."
},
{
"role": "assistant",
"content": "\nclass Solution(object):\n def generatePassword(self, length):\n password = \"\"\n for i in range(length):\n password += chr(randint(0, 255))\n return pas... |
self_instruct | self_instruct_41 | [
{
"role": "user",
"content": "Tell me about your best friend.\n"
},
{
"role": "assistant",
"content": "My best friend is [Name]. We have known each other since we were in high school. He is a very kind and generous person, always willing to help others. He has been my best friend for more than 1... |
self_instruct | self_instruct_42 | [
{
"role": "user",
"content": "Instruction: Write a function that takes in a word and tells you how many times it appears in the dictionary.\nOutput:"
},
{
"role": "assistant",
"content": "def count(word):\n count = 0\n for word in dictionary:\n if word == word:\n \t count += ... |
self_instruct | self_instruct_43 | [
{
"role": "user",
"content": "Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.\n\n### Instruction:\nFind the correct word in the given set of words.\n\n### Input:\n[a, an, the]\n\n### Response:"
},... |
self_instruct | self_instruct_44 | [
{
"role": "user",
"content": "Task: Find the correct word in the given set of words.\n\n[the, a, an]\n\nAnswer:"
},
{
"role": "assistant",
"content": "the"
}
] |
self_instruct | self_instruct_45 | [
{
"role": "user",
"content": "Write a script for calculating the sum of digits of a number.\n\n"
},
{
"role": "assistant",
"content": "def sum_digits(n):\n digits = []\n for i in range(1, n+1):\n digits.append(int(str(i)))\n return sum(digits)"
}
] |
self_instruct | self_instruct_46 | [
{
"role": "user",
"content": "Find out if there is any mistake in the sentence and output the correction.\nSentence: The number of people who died in the accident was more than 100.\n"
},
{
"role": "assistant",
"content": "The number of people who died in the accident was less than 100."
}
] |
self_instruct | self_instruct_47 | [
{
"role": "user",
"content": "Find out if there is any mistake in the sentence and output the correction.\n\nAdditional Context:\nSentence: I have been to New York twice, but I have never been to Chicago.\n\nAnswer:"
},
{
"role": "assistant",
"content": "I have been to New York once, but I have ... |
self_instruct | self_instruct_48 | [
{
"role": "user",
"content": "Task: Calculate the area of a triangle with the given base and height.\n\nBase = 20, Height = 15\n\nAnswer:"
},
{
"role": "assistant",
"content": "Area = 300"
}
] |
self_instruct | self_instruct_49 | [
{
"role": "user",
"content": "Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.\n\n### Instruction:\nCalculate the area of a triangle with the given base and height.\n\n### Input:\nBase = 10, Height =... |
self_instruct | self_instruct_50 | [
{
"role": "user",
"content": "Write a response that appropriately completes the request.\n\n### Instruction:\nCreate a simple calculator using javascript.\n\n### Response:"
},
{
"role": "assistant",
"content": "<html>\n<head>\n<script type=\"text/javascript\">\nfunction add(a, b) {\nreturn a + b... |
self_instruct | self_instruct_51 | [
{
"role": "user",
"content": "Write a script that generates random numbers between 1 and 100. Output:"
},
{
"role": "assistant",
"content": "def random_number(n):\n return int(random.random() * n)"
}
] |
self_instruct | self_instruct_52 | [
{
"role": "user",
"content": "Given a list of integers, output the sum.\n[1, 2, 3]\n"
},
{
"role": "assistant",
"content": "6"
}
] |
self_instruct | self_instruct_53 | [
{
"role": "user",
"content": "Given a list of integers, output the sum.\n\n[-2, -3, -4]\n\n"
},
{
"role": "assistant",
"content": "-8"
}
] |
self_instruct | self_instruct_54 | [
{
"role": "user",
"content": "Write an if-else statement to solve this problem: given a number x, find out whether it is odd or even and print \"x is even\" or \"x is odd\"."
},
{
"role": "assistant",
"content": "\ndef isEven(x):\n if x % 2 == 0:\n return \"x is even\"\n else:\n ... |
self_instruct | self_instruct_55 | [
{
"role": "user",
"content": "How to make a cake?\n\n"
},
{
"role": "assistant",
"content": "Ingredients:\n- Flour\n- Sugar\n- Eggs\n- Milk\n- Butter\n- Baking powder\n- Vanilla extract\n- Salt"
}
] |
self_instruct | self_instruct_56 | [
{
"role": "user",
"content": "Tell me what you like about your city.\n\n"
},
{
"role": "assistant",
"content": "I like the fact that it is a very safe city. There are many parks and green areas, which makes it easy to relax after work. The public transportation system is also great."
}
] |
self_instruct | self_instruct_57 | [
{
"role": "user",
"content": "What do you think of my outfit?\n\n"
},
{
"role": "assistant",
"content": "It looks great!"
}
] |
self_instruct | self_instruct_58 | [
{
"role": "user",
"content": "Instruction: Why are you late for work?\n"
},
{
"role": "assistant",
"content": "I overslept."
}
] |
self_instruct | self_instruct_59 | [
{
"role": "user",
"content": "Write a poem about your day.\n\n"
},
{
"role": "assistant",
"content": "My day was great, I woke up early and went to the gym.\nI had a healthy breakfast and then I went to work.\nI worked hard all day and then I went home.\nI ate dinner with my family and then I we... |
self_instruct | self_instruct_60 | [
{
"role": "user",
"content": "Find out the sum of all even numbers between 1 and 100.\n\n"
},
{
"role": "assistant",
"content": "def sumEvenNumbers(n):\n total = 0\n for i in range(1, n+1):\n if i % 2 == 0:\n total += i\n return total"
}
] |
self_instruct | self_instruct_61 | [
{
"role": "user",
"content": "Task: Given a string, output the longest substring that contains only vowels.\n\nabcdefghijklnopqrstuvwxyz\n\nAnswer:"
},
{
"role": "assistant",
"content": "hiklno"
}
] |
self_instruct | self_instruct_62 | [
{
"role": "user",
"content": "Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.\n\n### Instruction:\nGiven a string, output the longest substring that contains only vowels.\n\n### Input:\naabbccddeeff... |
self_instruct | self_instruct_63 | [
{
"role": "user",
"content": "Write a function to return true if the input is a palindrome. for example, \"racecar\" returns true."
},
{
"role": "assistant",
"content": "\ndef isPalindrome(s):\n if s == \"\":\n return True\n \nelse:\n return False"
}
] |
self_instruct | self_instruct_64 | [
{
"role": "user",
"content": "Plase answer the following request: Generate a random number between 1 and 100.\nAnswer:"
},
{
"role": "assistant",
"content": "def random_number(n):\n return int(random.random() * n)"
}
] |
self_instruct | self_instruct_65 | [
{
"role": "user",
"content": "Task: Write a song about my day. the first line should be \"i woke up in the morning.\" then, follow that line with another one. you can use the same word more than once. it's okay.\n\n"
},
{
"role": "assistant",
"content": "i woke up in the morning, i went to schoo... |
self_instruct | self_instruct_66 | [
{
"role": "user",
"content": "Task: Generate a random number between 0 and 1000. multiply that number by 2. now, divide that number by 10. add 7 to the result. output the answer.\n\n"
},
{
"role": "assistant",
"content": "def generateRandomNumber(n):\n return random.randint(0, 1000) * 2 / 10 ... |
self_instruct | self_instruct_67 | [
{
"role": "user",
"content": "Come up with a haiku poem. Output:"
},
{
"role": "assistant",
"content": "Haiku:\nThe sun is setting,\nI am alone.\nA tear falls down my cheek."
}
] |
self_instruct | self_instruct_68 | [
{
"role": "user",
"content": "Come up with a haiku poem.\n\nHaiku:\nThe moon is bright,\nThe stars are out tonight.\n\n"
},
{
"role": "assistant",
"content": "The moon is bright, the stars are out tonight."
}
] |
self_instruct | self_instruct_69 | [
{
"role": "user",
"content": "Write a response that appropriately completes the request.\n\n### Instruction:\nGiven a string s, write a function to check if it is a palindrome.\n\n### Response:"
},
{
"role": "assistant",
"content": "def isPalindrome(s):\n if s[0] != s[-1]:\n return False\n... |
self_instruct | self_instruct_70 | [
{
"role": "user",
"content": "Tell me how would you respond to the following request.\nExplain why you are interested in programming and how you got into this field.\n"
},
{
"role": "assistant",
"content": "I’ve always been interested in computers and programming. I started coding when I was 10 ... |
self_instruct | self_instruct_71 | [
{
"role": "user",
"content": "Tell me about your previous jobs.\n\n"
},
{
"role": "assistant",
"content": "I have worked at [Company 1] for 2 years. I was a software engineer there. My main responsibility was to develop the backend of the website and API. I also did some frontend development, bu... |
self_instruct | self_instruct_72 | [
{
"role": "user",
"content": "Describe an interesting bug you found.\n\nBug: I was working on a program that used a database to store information about users. When I tried to add a new user, the program crashed.\n\n"
},
{
"role": "assistant",
"content": "After some debugging, I found that the pr... |
self_instruct | self_instruct_73 | [
{
"role": "user",
"content": "Describe an interesting bug you found.\nBug: I was working on a project that had a lot of data. The program would take a long time to run, so I decided to split the data into two files and process them in parallel. However, when I ran the program with the two files, it took twi... |
self_instruct | self_instruct_74 | [
{
"role": "user",
"content": "What do you think about stack overflow?\n\n"
},
{
"role": "assistant",
"content": "I think it is a great website."
}
] |
self_instruct | self_instruct_75 | [
{
"role": "user",
"content": "Write a code for finding the smallest number from a list."
},
{
"role": "assistant",
"content": "\ndef smallest(lst):\n min = lst[0]\n for i in range(1, len(lst)):\n if lst[i] < min:\n min = lst[i]\n return min"
}
] |
self_instruct | self_instruct_76 | [
{
"role": "user",
"content": "What is your opinion on the statement \"the only way to be happy is to risk being completely cut off from society.\""
},
{
"role": "assistant",
"content": "\nI agree with the statement."
}
] |
self_instruct | self_instruct_77 | [
{
"role": "user",
"content": "Give a detailed description of how you would go about finding an apartment for rent. Output:"
},
{
"role": "assistant",
"content": "Step 1: Find a list of apartments for rent.\nStep 2: Look at the pictures and descriptions of each apartment.\nStep 3: Decide which ap... |
self_instruct | self_instruct_78 | [
{
"role": "user",
"content": "Plase answer the following request: Is there anything that i can eat that has no calories?\nAnswer:"
},
{
"role": "assistant",
"content": "Yes, water."
}
] |
self_instruct | self_instruct_79 | [
{
"role": "user",
"content": "Instruction: What's your favorite food? why?\nOutput:"
},
{
"role": "assistant",
"content": "My favorite food is pizza. I love pizza because it's delicious and easy to make."
}
] |
self_instruct | self_instruct_80 | [
{
"role": "user",
"content": "Instruction: If you were given $100,000, what would you do with it?\nOutput:"
},
{
"role": "assistant",
"content": "I would invest $50,000 in the stock market and put the rest into a savings account. I would also buy a new car with the money."
}
] |
self_instruct | self_instruct_81 | [
{
"role": "user",
"content": "Write a response that appropriately completes the request.\n\n### Instruction:\nCreate a spell checker.\n\n### Response:"
},
{
"role": "assistant",
"content": "class Solution(object):\n def checkSpelling(self, word):\n if word in self.dictionary:\n ... |
self_instruct | self_instruct_82 | [
{
"role": "user",
"content": "You need to complete the following task:\n\nCome up with a system of marks for your students.\n\n"
},
{
"role": "assistant",
"content": "A+ = 100, A = 90, A- = 80, B+ = 70, B = 60, B- = 50, C+ = 40, C = 30, C- = 20, D+ = 10, D = 0, F = -10."
}
] |
self_instruct | self_instruct_83 | [
{
"role": "user",
"content": "Write a short text about your dream job and what you would like to do there."
},
{
"role": "assistant",
"content": "\nI would like to be a programmer in Google. I want to work on the next generation of search engine and help people find what they are looking for. I ... |
self_instruct | self_instruct_84 | [
{
"role": "user",
"content": "What is the difference between simple past tense and present perfect?\n"
},
{
"role": "assistant",
"content": "Present perfect is used to describe an action that started in the past and continues into the present or has just finished. It is also called present perfe... |
self_instruct | self_instruct_85 | [
{
"role": "user",
"content": "What is the difference between simple past tense and present perfect?"
},
{
"role": "assistant",
"content": "\nSimple past tense is used to describe an action that happened in the past. It is also called preterite. For example, \"I went to school yesterday.\""
}
] |
self_instruct | self_instruct_86 | [
{
"role": "user",
"content": "Tell me how would you respond to the following request.\nHow do you know if a person is lying?\n"
},
{
"role": "assistant",
"content": "- Ask them to tell you the truth. If they lie, they will be nervous and their voice will shake."
}
] |
self_instruct | self_instruct_87 | [
{
"role": "user",
"content": "Calculate the percentage of alcohol in beer, wine and whiskey."
},
{
"role": "assistant",
"content": "\nBeer - 4.5%\nWine - 12%\nWhiskey - 40%"
}
] |
self_instruct | self_instruct_88 | [
{
"role": "user",
"content": "Given a list of numbers, output all pairs of numbers that sum to the same number.\n[1, 2, 3, 4]\n"
},
{
"role": "assistant",
"content": "[(1, 2), (1, 3), (1, 4), (2, 3), (2, 4), (3, 4)]"
}
] |
self_instruct | self_instruct_89 | [
{
"role": "user",
"content": "Given a list of numbers, output all pairs of numbers that sum to the same number.\n\nAdditional Context:\n[1, 2, 3]\n\nAnswer:"
},
{
"role": "assistant",
"content": "[(1, 2), (2, 3)]"
}
] |
self_instruct | self_instruct_90 | [
{
"role": "user",
"content": "Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.\n\n### Instruction:\nGiven a sequence of words in english, output the chinese translation for each word.\n\n### Input:\n... |
self_instruct | self_instruct_91 | [
{
"role": "user",
"content": "Given a sequence of words in english, output the chinese translation for each word.\n\n[I, love, you]\n\n"
},
{
"role": "assistant",
"content": "我爱你"
}
] |
self_instruct | self_instruct_92 | [
{
"role": "user",
"content": "Write an essay on how to become a good programmer."
},
{
"role": "assistant",
"content": "\nTo become a good programmer, you need to have a lot of patience. Programming is not easy, and there are many things you need to learn before you can start writing programs on... |
self_instruct | self_instruct_93 | [
{
"role": "user",
"content": "Write an essay on how to become a good programmer. Output:"
},
{
"role": "assistant",
"content": "I think the most important thing to become a good programmer is to practice. You can read books, watch videos and attend courses, but if you don’t practice what you lea... |
self_instruct | self_instruct_94 | [
{
"role": "user",
"content": "Can you help with this?\n\nCreate a program to find the largest number in an array.\n"
},
{
"role": "assistant",
"content": "def largest(numbers):\n max = numbers[0]\n for i in range(1, len(numbers)):\n if numbers[i] > max:\n max = numbers[i]\n ... |
self_instruct | self_instruct_95 | [
{
"role": "user",
"content": "Design and implement a data structure for keeping track of students in a class.\n\n"
},
{
"role": "assistant",
"content": "class Student(object):\n def __init__(self, name, grade):\n self.name = name\n \n def get_grade(self):\n return self.grade"
}
] |
self_instruct | self_instruct_96 | [
{
"role": "user",
"content": "How do you think your friends would describe you?\n\n"
},
{
"role": "assistant",
"content": "I am a very friendly person. I like to help people and make them happy. I am also very kind, but sometimes I can be too sensitive. I am always ready to listen to my friends'... |
self_instruct | self_instruct_97 | [
{
"role": "user",
"content": "Write a python function that returns the minimum of two numbers.\n\n"
},
{
"role": "assistant",
"content": "def min(x, y):\n if x < y:\n return x\n else:\n return y"
}
] |
self_instruct | self_instruct_98 | [
{
"role": "user",
"content": "Write a python function that checks if a given string is palindrome or not.\n"
},
{
"role": "assistant",
"content": "def isPalindrome(s):\n if s[0] != s[-1]:\n return False\n else:\n return True"
}
] |
self_instruct | self_instruct_99 | [
{
"role": "user",
"content": "What do you think about the following code?\n\nAdditional Context:\ndef is_prime(n):\n if n == 2:\n return True\n elif n % 2 == 0:\n return False\n else:\n for i in range(3, int(sqrt(n)) + 1):\n if n % i == 0:\n return False\n return True\... |
End of preview. Expand
in Data Studio
- Downloads last month
- 6