Dataset Viewer
Auto-converted to Parquet Duplicate
text
stringlengths
128
11.2k
<|im_start|>user Create a program in Kotlin that prompts a user to enter three numbers and outputs whether they form a Pythagorean triplet.<|im_end|> <|im_start|>assistant ```kotlin fun main() { print("Enter three numbers (separated by space): ") val input = readLine()!!.trim().split(" ") val a = input...
<|im_start|>user Can you summarize the setting and atmosphere at Sue Ann Staff Estate Winery Weddings? Answer according to: Surrounded by lush vineyards and perched atop the Niagara Escarpment, this outstanding winery setting is simply breathtaking. Home to picturesque sunsets, the winery is exclusive to one event per ...
<|im_start|>user Explain the term "backtracking" and provide an efficient implementation of a backtracking algorithm in any programming language that finds all possible solutions for a given Sudoku puzzle of size N x N, where N is a positive integer. The algorithm should consider the constraints that each row, column, ...
<|im_start|>user How can I locate a specific archived announcement on the JCM site?: In 2016, when the Department of Telecommunication and Film and the Department of Journalism were merged, their old announcements were archived on this new JCM site. Unfortunately, some of the original URLs for those posts had to be cha...
<|im_start|>user Design a function to get the user input for a list of numbers and print the maximum among them, without using any built-in functions or libraries to find the maximum value. Additional requirements: 1. The function should handle both positive and negative numbers. 2. The function should handle floating...
<|im_start|>user Develop a comprehensive social media campaign plan targeting young professionals to promote the launch of a new line of luxury watches. The campaign should feature engaging visuals and striking copy that communicates the watches' key features, quality, and unique design. The content should be optimized...
<|im_start|>user Generate response to the question/instruction based on a piece of given material Question/Instruction: Can you summarize what CHAARG is and how it started? Given material: Elisabeth Tavierne attended The Ohio State University (OSU) on a swimming scholarship after competing in the sport for more than ...
<|im_start|>user Write a script for a 5-minute instructional video on how to use software specifically designed for graphic designing for beginners with a focus on tools such as the brush tool, layer effects, and color schemes. The style of the video should be visual and concise with step-by-step instructions on using ...
<|im_start|>user Generate a PHP array containing 1000 random prime numbers in the range 0 to 10,000, where each prime number must be greater than the previous prime number in the array.<|im_end|> <|im_start|>assistant Here is a PHP code snippet that generates an array containing 1000 random prime numbers in the range 0...
<|im_start|>user Generate valid HTML tags for a three-column table, ensuring that the table is responsive and mobile-friendly. Additionally, include JavaScript code that dynamically adds a new row to the table when a button is clicked. Provide a piece of erroneous JavaScript code that throws an error when the button is...
<|im_start|>user Can you provide more information about the flexible program that Joy Kasper enrolled in at California Lutheran University? Answer according to: Thinking about the next step in your career? Get ready to step out of the classroom and into the leading role of your life. Article by California Lutheran Univ...
<|im_start|>user Reorder a given array such that all even elements are placed before odd elements and all negative elements are placed before positive elements, while maintaining the relative order of even elements, odd elements, negative elements, and positive elements. The modified array should have the following pro...
<|im_start|>user Sum up all the prime numbers in the array, excluding the number 3, using JavaScript. The array should have a minimum length of 15 and a maximum length of 25.<|im_end|> <|im_start|>assistant Here's one possible solution in JavaScript: ```javascript function sumPrimes(arr) { // Function to check if a ...
<|im_start|>user Write a mystery thriller story in third-person POV about a seasoned (and perhaps slightly jaded) detective who is tasked with investigating the disappearance of a wealthy and influential businesswoman in a busy city. Set the story in modern day and include a diverse cast of characters who could be susp...
<|im_start|>user Given a string that contains both lowercase and uppercase letters, numbers, and special characters, find the ASCII code for the character X. The solution should have a time complexity of O(n), where n is the length of the string, and should not use any built-in functions or libraries for ASCII code con...
<|im_start|>user Please implement the Gnome sort algorithm with the following additional steps: 1. Before starting the sorting process, check if the array is already sorted. If it is, return the sorted array immediately without performing any further steps. The array will be considered sorted if it is in ascending ord...
<|im_start|>user Write a Python function to filter a given list of strings by the specified character, but only include strings that contain the character at both the beginning and the end of the string. The function should return the filtered list in reverse order. The filtered strings should also be converted to uppe...
<|im_start|>user Write a code to parse a JSON string into Python objects and calculate the sum of all the integers in the JSON string, taking into consideration that the JSON string may contain nested arrays and objects. Additionally, you need to ignore any integers that are divisible by 5 in the sum calculation.<|im_e...
<|im_start|>user Write a 4-page opinion essay on the importance of universal healthcare from an economic standpoint, arguing why this model benefits society at large. Use at least three reputable sources to support your thesis and incorporate counterarguments to make your argument stronger. Additionally, use persuasive...
<|im_start|>user Write a SQL query to find the highest salary of a female employee who has been working at the company for at least 5 years and is not in a managerial position in the salary table. Additionally, the query should exclude employees who have received any performance warnings in the past year. Provide a pie...
<|im_start|>user DALY COLLEGE swimming team won seven medals including a gold in the all-India inter-public school swimming championship. The school finished fifth in the competition. Mukul Singh won a gold and two silver medals in 50-metre backstroke, 100-m butterfly and 50-m butterfly. Suraj Pamecha won silver in 800...
<|im_start|>user Who are the Bruins alumni attending the Boston Harbor Sunset Cruise event, and what activities can fans expect during the cruise? Answer according to: The Boston Bruins Foundation and Bay State Cruise Lines have partnered to host the "Boston Harbor Sunset Cruise" on Wednesday, July 22, to help raise mo...
<|im_start|>user Given the text: Botanical lilac-to-lavender florals bloom against an ivory background, interspersed by linear graphic triangles that are blown up and inserted via a box pleat to the rear skirt, making the dropped waist a flattering focal point. Cut-out shoulders, skirt slit and wrapped deep v-neckline ...
<|im_start|>user Coming Soon! This cute avant guard Deluxe Artiste Mini Duck is a brand new member of the popular current collectable BUD family. He is also available in standard size. When will the standard size version of the Deluxe Artiste Mini Duck be available for purchase, and will it also feature the same avant-...
<|im_start|>user Create a SQL query to select all properties with a price between 500 and 1000, that are located in cities starting with the letter 'A' and have at least 3 bedrooms. Additionally, the query should order the results by the number of bathrooms in descending order, and only include properties that have a s...
<|im_start|>user Instead of using butter in holiday side dishes, what healthier options can be used instead?: It’s important to be aware of what we’re putting into our bodies, especially when there is a medical condition present. Holiday events can be tempting because they almost always involve food that’s high in suga...
<|im_start|>user Create a Recursive Function to find the nth term of the Fibonacci sequence, where n is a positive integer inputted by the user. The user should be able to input any positive integer value for n. Additionally, implement error handling to ensure that the user can only input positive integers and display ...
<|im_start|>user Create an array with 20 numbers randomly selected from a range of 0-99, ensuring that each number appears exactly twice. Additionally, the array should be sorted in ascending order.<|im_end|> <|im_start|>assistant Here is a possible solution in Python: ```python import random # Create a list of 20 un...
<|im_start|>user » Sites and Blogs Review: Web World Times – wwtimes.com: Married to the Mob: Investigative Journalist Craig Unger on What Trump Owes the Russian Mafia | Democracy Now! But Sen. Chuck Grassley’s insinuations don’t add up. » Trump’s Russiagate Attorney Is Himself Entangled in Russian Corruption – The Nat...
<|im_start|>user Write a Long Short-Term Memory (LSTM) network in TensorFlow for sentiment analysis on a large dataset of movie reviews. The model should achieve an accuracy of at least 95% on a test set of 50,000 reviews, with a maximum training time of 20 minutes. Additionally, the model should use a custom loss func...
<|im_start|>user Create a function to sort an array of objects by the property 'name' in descending order. Additionally, modify the array so that the 'name' property becomes uppercase for each object after sorting. The input array will contain at most 1 million objects. Each object will have a 'name' property that is...
<|im_start|>user Read the passage below and answer the question or follow the instruction: Are there any updates on the investigation into the shooting, and has anyone else been arrested? Passage: Ottawa police have arrested two men in relation to a shooting that occurred in Overbrook on Thursday afternoon. Police say...
<|im_start|>user Generate an HTML page with a heading and a paragraph. The heading must have a font size of 24px and the paragraph must have a font size of 16px. Additionally, the heading must be centered both horizontally and vertically on the page. The paragraph must have a line height of 1.5 and a letter-spacing of ...
<|im_start|>user Russian officials have expressed their sharp criticism towards the U.S. Plans for the so-called "Prompt Global Strike" initiative. Are they justified? What does this "Prompt Global Strike" represent, how can it interfere with the Russian plans and how can it be opposed? The U.S. Military adopted the co...
<|im_start|>user Write a story about a person who wakes up in a world where technology has advanced beyond recognition.<|im_end|> <|im_start|>assistant When Thomas opened his eyes, he expected to see his familiar bedroom. Instead, he was surrounded by a strange and futuristic landscape that he didn't recognize at all. ...
<|im_start|>user Conduct a thorough analysis of a company's supply chain management system, including all processes, procedures, and practices currently in place. Based on your findings, develop a comprehensive report outlining any weaknesses or inefficiencies within the supply chain and provide specific recommendation...
<|im_start|>user Create a function that sorts a given set of strings in dictionary order, while ignoring leading whitespace and considering capitalization. Additionally, the function should handle cases where the strings contain special characters or numbers. The function should also handle cases where the strings may ...
<|im_start|>user What are the most effective ways to prevent the spread of cholera in overcrowded or unsanitary living conditions?<|im_end|> <|im_start|>assistant 1. Improve sanitation: Cholera is spread through contaminated water and food. Providing clean and safe drinking water, proper disposal of human waste, and pr...
<|im_start|>user Create a function in JavaScript to replace all occurrences of the word "hello" in a given string with the word "goodbye", while also replacing any spaces in the string with underscores, converting all letters to uppercase, and ensuring that the resulting string has at least 10 characters and contains a...
<|im_start|>user Write a 500-word descriptive essay that depicts the sensation of sandpaper under your fingertips, incorporating sensory details and metaphors to add depth to your description. Try to capture the experience in a way that allows the reader to feel the gritty sensation and the layered roughness, providing...
<|im_start|>user Write a Java code to create an arraylist of integers, sort it in ascending order using only loops and without using any built-in sorting functions or libraries, and ensure that the final sorted arraylist contains only unique elements.<|im_end|> <|im_start|>assistant Here's a Java code that creates an A...
<|im_start|>user Write a Python function to format a specified string to limit the number of characters to 6. The function should also replace any vowels in the string with the corresponding number (e.g. 'a' becomes '1', 'e' becomes '2', 'i' becomes '3', 'o' becomes '4', 'u' becomes '5'). Additionally, the function sho...
<|im_start|>user Please describe in detail what features you enjoy about your favorite type of phone app. What specifically does it do and why do you find it valuable? In what ways does this app enhance your daily routine and/or productivity? Additionally, if you have any opinions on the design or user interface of the...
<|im_start|>user Write a biography on a contemporary artist who uses technology in their work.<|im_end|> <|im_start|>assistant Trevor Paglen is a contemporary artist who has gained international recognition for his use of technology in his artwork. Born in Maryland in 1974, Paglen's interest in technology and its effec...
<|im_start|>user Write a Python script to find the top three most frequent numbers in a given list of integers. The script should also display an error message if the list is empty. Example Input: [2, 10, 18, 24, 36, 95, 18, 36, 24, 10, 2] Example Output: Top three most frequent numbers: - 2 (2 times) - 10 (2 times) ...
<|im_start|>user Here is a piece of text: After seeing his side let two games slip from their grasp in the past two weeks, Chiefs coach Ian Foster hopes last night's win might just be a turning point. The Super 14 table would look very different from a Chiefs point of view had they managed to see off the Crusaders and ...
<|im_start|>user Please provide me with a detailed guide on how to play the game of cricket.<|im_end|> <|im_start|>assistant Sure, here is a step-by-step guide on how to play the game of cricket: Step 1: Understanding the Basics Cricket is a bat-and-ball game played between two teams of eleven players each. The aim of...
<|im_start|>user Create a JavaScript function that takes an array of objects and returns an array of objects with unique values by a specified key. The function should also exclude any objects where the value of a secondary key is less than a specified threshold. Additionally, the function should handle cases where the...
<|im_start|>user Given the text: Creating an instant list of the important plot points within the account custom research papers is of making sure essau strike all the high-points an excellent method. Every account requires a middle, a start, and a finish. It helps to limit things as much as possible. Centered on the n...
<|im_start|>user Create a function to calculate the Pythagorean theorem given three sides of a triangle. The function should check if the given sides form a valid triangle by ensuring that the sum of any two sides is always greater than the third side, and if not, it should raise an exception. Additionally, the functio...
<|im_start|>user Write a MongoDB query to find the top 5 roles with the highest number of users assigned, where each role must have both Permission 2 and Permission 3. The result should include the role name, the number of users assigned to each role, and the total number of users assigned to all roles. To increase th...
<|im_start|>user Given the text: I was born in Canada to British parents and grew up back-and-forth across the Atlantic, leading to a thoroughly modern condition of feeling most at home in the departure lounge of airport terminals, my worldly belongings condensed into a single suitcase. There was a time when I knew my ...
<|im_start|>user Write a Python program to find all prime numbers up to a given number, n. The program should return a list of the prime numbers. You are required to use the Sieve of Eratosthenes algorithm to solve this problem. The Sieve of Eratosthenes algorithm works as follows: 1. Create a list of boolean values,...
<|im_start|>user Create a function in Python that takes three parameters and calculates the Employee Bonus depending on the hours worked, hourly rate, and employee's performance rating. The function should also check if the hours worked is within the valid range of 0 to 40 and if the hourly_rate is a positive number. I...
<|im_start|>user Explain the purpose and usage of an abstract class in the implementation of a concurrent linked list data structure. Provide a detailed explanation of the steps involved in creating and utilizing an abstract class in this context. Additionally, discuss how you would handle concurrency issues and ensure...
<|im_start|>user Implement a stack data structure in a programming language of your choice. The stack should be able to handle elements of any data type, not just integers. Provide an example code snippet demonstrating the push and pop operations, along with an explanation of how these operations are typically used in ...
<|im_start|>user Write a traditional haiku, consisting of three lines with 5, 7, and 5 syllables respectively, that captures a moment of tranquility or peacefulness in a natural setting, incorporating elements such as scenery, weather, sounds, and emotions. Your haiku should convey a strong sense of imagery and evoke a...
<|im_start|>user Write an encryption function using Caesar Cipher that can handle both uppercase and lowercase letters. Additionally, the function should also be able to handle punctuation and spaces without altering them. The function should also support multiple encryption keys, where each key can be either a positiv...
<|im_start|>user Create a Date object containing the current date and time in the local time zone, add 2 hours and 30 minutes to it, and then convert it to a string in the format "YYYY-MM-DDTHH:MM:SSZ". Additionally, handle any potential errors that may occur during the conversion process.<|im_end|> <|im_start|>assista...
<|im_start|>user Write a function in a programming language of your choice that takes in a string representing a CSS rule and a list of dictionaries representing HTML elements. The function should return a new list of dictionaries with the CSS rule applied to the appropriate elements. The CSS rule should set the text...
<|im_start|>user Write a dialogue between a person and their boss about their career goals, with a focus on discussing specific steps the person can take to achieve those goals and how the boss can support them in their efforts. The dialogue should be professional in tone, but also allow for open and honest communicati...
<|im_start|>user Write a SQL query to find customers who have made at least 10 purchases in the last 6 months, are from the states of California or New York, and order the list by their average purchase amount in descending order. Additionally, include the customer's total purchase amount and the number of purchases ma...
<|im_start|>user Create a step-by-step written guide with photos and clear instructions on how to make delicious apple and gouda quesadillas, including a list of required ingredients and optional variations for added flavor. Ensure that the guide is beginner-friendly, easy to follow, and includes tips and tricks for ac...
<|im_start|>user Create an algorithm to detect plagiarized code in a given codebase, taking into consideration not only identical code segments but also similar code segments with minor modifications such as variable name changes, rearranged lines of code, and obfuscated code. Obfuscated code refers to code that has be...
<|im_start|>user Write a romance story about two people who fall in love on a train<|im_end|> <|im_start|>assistant As the train gently rolled out of the station, Kaitlin found herself lost in the beautiful scenery passing by her window. She was on her way home from visiting family, and was looking forward to some time...
<|im_start|>user What was the impact of the invention of the cotton gin on slavery in the United States?<|im_end|> <|im_start|>assistant The invention of the cotton gin increased the demand for cotton and therefore increased the demand for labor in the cotton fields. Slavery became more profitable and widespread as a r...
<|im_start|>user Write a code to form a triangle pattern with a specified character, where the number of rows and additional options are determined by user input. Additional Instructions: 1. Prompt the user to enter the number of rows for the triangle. 2. Validate the user input to ensure it is a positive integer. 3....
<|im_start|>user Compute the median of an array of integers in Python. The array may contain duplicate values. The input array will always have an odd number of elements. You may assume that the input array will always be non-empty. [1, 3, 2, 4, 5, 2, 1, 3, 4, 5] #Erroneous Code# Here is a piece of code that attempts...
<|im_start|>user Use this data to predict the weather for the next week. Current temperature: 34 degrees Celsius Humidity: 66% Precipitation chance: 30% Wind speed: 10 km/h Cloud cover: 50% Write a program that takes the above weather data as input and outputs a weather forecast for the next week. The program should ...
<|im_start|>user Create a function that takes a list of words and returns a list of capitalized words. Each capitalized word should have the first letter in uppercase and all other letters in lowercase. The function should also remove any duplicates from the list. The input list can contain up to 1000 words and each wo...
<|im_start|>user Create a SQL query to get the top 10 salaries from a given table, but exclude any employees who have been with the company for less than 1 year. Additionally, the query should only consider employees who have a job title of "Manager" or "Director" and have a salary above $100,000. Additionally, the que...
<|im_start|>user The work of surveyor, astronomer, and mathematician Seth Pease contributed to the orderly settlement of Western lands and, in particular, to the Connecticut Western Reserve in Ohio. Beginning in 1789, the year of President George Washington’s inauguration, and lasting several decades into the 19th cent...
<|im_start|>user How far do Arctic terns migrate each year, and what challenges do they face along their migratory route?<|im_end|> <|im_start|>assistant Arctic terns migrate an impressive distance of approximately 44,000 miles (70,900 km) each year. They breed in the Arctic during the summer and then fly to the Antarc...
<|im_start|>user Write a 1000 word story in a third person limited point of view about a person who gains the power of sand manipulation and explores the effects of this power on their life and relationships with others. Include at least three scenes that showcase the protagonist's ability to control and manipulate san...
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
6