source
stringclasses
6 values
conversations
listlengths
2
2
magicoder
[ { "from": "human", "value": "You are tasked with implementing a class that calculates the distance between two points in 3D space. You are given a code snippet representing a Vector3 class with a public member variable `target` initialized to the zero vector. Your task is to create a method within the Vecto...
evolcodegolf
[ { "from": "human", "value": "Consider a function \\$f\\$ designed to process a string by systematically eliminating all instances of adjacent identical characters. For instance, applying the function to the input \\$f(a\\color{red}{bb}ba\\color{red}{cc})\\$ results in the output \\$aba\\$. It is essential t...
glaive
[ { "from": "human", "value": "You are tasked with implementing a function in an OptiX program that calculates the attributes of a triangle, including the shading normal, geometric normal, and texture coordinates. The function is named `triangle_attributes` and takes no input parameters. The vertex data is st...
codefeedback
[ { "from": "human", "value": "Generate a correct assembly language code to execute the following:\nAdd two numbers and store the result in memory address 2000. However, the program must only use bitwise operations (AND, OR, XOR, SHIFT, etc.) to perform the addition and store the result. Additionally, the pro...
sharegpt
[ { "from": "human", "value": "I have a Kubernetes cluster with a master node and two other nodes. Each node is running on a VirtualBox Ubuntu VM and has a unique IP address. I deployed an nginx server with two replicas, one on each node. I exposed the service as a NodePort to access it from outside the clust...
magicoder
[ { "from": "human", "value": "You are tasked with implementing a convolutional neural network (CNN) for image classification using PyTorch. The network architecture consists of three convolutional layers followed by ReLU activation functions. Your goal is to complete the implementation of the forward pass th...
magicoder
[ { "from": "human", "value": "You are tasked with implementing a class that manages the layout of a view in a mobile application. The class contains two methods: `updatePreferredHeight()` and `updateAfterLayout()`. The `updatePreferredHeight()` method is called to recalculate the preferred height of the view...
codefeedback
[ { "from": "human", "value": "Write a Python program to find the sum of Fibonacci numbers till the number n, where n is a prime number and also a multiple of 3, taken as user input." }, { "from": "gpt", "value": "<think>\nOkay, I need to write a Python program that finds the sum of Fibonacci numb...
glaive
[ { "from": "human", "value": "You are tasked with creating a program that handles payment methods for a telecommunications company. The program should include the following functionality:\n1. Display the name and code of the payment method in English, Russian, and Ukrainian languages.\n2. Display the logo an...
codefeedback
[ { "from": "human", "value": "You are tasked with creating a script to automate the process of generating and publishing code coverage reports for multiple modules in a Java project. The script should iterate through a list of module names, check for the existence of a specific code coverage report file for ...
codefeedback
[ { "from": "human", "value": "Develop a software that can dynamically generate responsive holographic projections that can adapt to various environmental conditions, light intensities, and viewing angles. The software should also manage different color spectrums, depth perceptions, and holographic resolution...
sharegpt
[ { "from": "human", "value": "I have experience working with local-only SQL and server-only SQL accessed over PHP in iOS. Now I need to develop an app that will have both a local database and a remote database. I want to update the iOS app from certain tables in the server's database. Is there a simple or co...
evolcodegolf
[ { "from": "human", "value": "In GolfScript, there exists an automatic coercion mechanism that operates according to a specified ‘priority’ hierarchy, which is as follows:\n\ninteger → array → string → block\n\n(listed from lowest to highest priority). For instance, the expression \"1\"7+ results in the stri...
evolcodegolf
[ { "from": "human", "value": "In the realm of mathematical definitions, we explore the concept of quadratic residues. An integer \\$r\\$ qualifies as a quadratic residue modulo \\$n\\$ if there exists an integer \\$x\\$ satisfying the congruence condition:\n$$x^2\\equiv r \\pmod n$$\nTo compute the set of qu...
codefeedback
[ { "from": "human", "value": "Write an algorithm that finds the longest palindromic substring of a given input string. Additionally, the algorithm should have a time complexity of O(n) and should not use any extra space other than a constant amount of additional memory. The input string will have a length of...
magicoder
[ { "from": "human", "value": "You are tasked with implementing a class that performs data validation and throws an exception if the data does not meet certain criteria. Your task is to complete the implementation of the `validateData` method in the given class.\n\nYou are provided with a class `DataValidator...
dolphin
[ { "from": "human", "value": "port this code from Erlang to Dart:\n```erlang\nwell_spaced_string(S, Distance) ->\n First = dict:new(),\n well_spaced_string_helper(S, Distance, First, 0).\n\nwell_spaced_string_helper([], _, _, _) ->\n true;\nwell_spaced_string_helper([C | T], Distance, First, Index) ...
glaive
[ { "from": "human", "value": "How can I create an SQL query that retrieves every column from a table named 'books' where the title includes the word 'Ember' and the publication date is within the last 5 years? Additionally, I want the results to be sorted based on the average rating in descending order and l...
evolcodegolf
[ { "from": "human", "value": "Given an integer value N, systematically determine and output its sign through a series of logical evaluations:\n\n1. If N is greater than zero, output 1.\n2. If N is less than zero, output -1.\n3. If N equals zero, output 0.\n\nEnsure that N resides within the valid integer ran...
sharegpt
[ { "from": "human", "value": "Can you provide a program that implements a simple store where users can add items to their cart, add discounts, and checkout?" }, { "from": "gpt", "value": "<think>\nOkay, let's see. The user wants a program for a simple store where users can add items to their cart...
codefeedback
[ { "from": "human", "value": "Given a string like this:\n\n> a,\"string, with\",various,\"values, and some\",quoted\n\nWhat is a good algorithm to split this based on commas while ignoring the commas inside the quoted sections?\n\nThe output should be an array:\n\n> [ \"a\", \"string, with\", \"various\", \"...
codefeedback
[ { "from": "human", "value": "Generate a correct SQL query to return all customers' names, their total orders, and the average order amount for each customer. Also, sort the result in descending order based on the total orders." }, { "from": "gpt", "value": "<think>\nOkay, I need to generate an S...
codefeedback
[ { "from": "human", "value": "Craft a Java code segment that obtains two textual inputs. It should not only display the shared alphabetic characters between both strings, but also count the frequencies of shared characters. The code may need to ignore case when counting shared characters.\n\nInput String A: ...
magicoder
[ { "from": "human", "value": "You are tasked with implementing a k-means clustering algorithm to group a set of data points into k clusters. The algorithm involves iteratively assigning points to the nearest centroid and updating the centroids based on the mean of the assigned points. Your task is to complet...
codefeedback
[ { "from": "human", "value": "You are presented with a parallelogram whose two bordering sides measure 8 cm and 15 cm each. The degree of separation between these sides is exactly 60 degrees. Using this information, can you deduce the overall spatial extent or, in other words, calculate the area of this geom...
glaive
[ { "from": "human", "value": "You are tasked with implementing a set of guard tests in Erlang. The goal is to create a comprehensive set of tests for various guard clauses to ensure they work correctly.\n\nYour task is to create test cases for the following guard tests:\n1. Test that a bad arithmetic operati...
codefeedback
[ { "from": "human", "value": "Compose a CSS code fragment to append an aesthetic shadow enhancement to every button element residing in the webpage's Document Object Model. Enhance the shadow effect to change variably depending on the location of the mouse cursor relative to the button. Furthermore, ensure t...
codefeedback
[ { "from": "human", "value": "Write an HTML page to display a table of products at a retail store, where the table should be sortable by any of the attributes. Additionally, include a search bar that allows the user to search for products by name or description, and dynamically update the table to display th...
sharegpt
[ { "from": "human", "value": "Is there a way to design a PHP code that can generate a random 10-character string?" }, { "from": "gpt", "value": "<think>\nOkay, so I need to figure out how to create a PHP code that generates a random 10-character string. Let me start by thinking about the requirem...
sharegpt
[ { "from": "human", "value": "A kite string is 50 meters long and makes an angle with the ground that varies between 45 and 85 degrees inclusive. Develop a Python function to calculate the height of the kite from the ground level at each possible angle, rounded to 2 decimal places. The function should output...
sharegpt
[ { "from": "human", "value": "How can I write a Python function that checks whether a dictionary is empty or not, and throws an appropriate exception if the argument passed is not a dictionary? Additionally, how can I ensure that all keys in the dictionary are strings and raise a specific exception if they a...
evolcodegolf
[ { "from": "human", "value": "The challenge at hand entails the intricate task of deciphering the initial character embedded within a UTF-8 byte sequence. You are required to process an input that comprises either a byte array or a byte string representing said UTF-8 byte sequence. \n\nUpon validating the se...
magicoder
[ { "from": "human", "value": "You are tasked with implementing a class metadata registration system for a programming framework. The given code snippet is a part of this system and demonstrates the registration of a class and its attributes.\n\nYour task is to create a class metadata registration system that...
evolcodegolf
[ { "from": "human", "value": "This inquiry distinguishes itself from a similar question by focusing on the specific requirement of identifying the nth number that can be uniquely expressed as the sum of two distinct cubes in two different configurations, as opposed to the aforementioned question which seeks ...
evolcodegolf
[ { "from": "human", "value": "In light of the forthcoming Homecoming dance at my school, which is scheduled for next week, I find myself wishing to extend an invitation to a particular individual. However, my aim is to deviate from conventional methods of asking her and instead, I plan to send a program that...
codefeedback
[ { "from": "human", "value": "Improve the given coding problem by including the task of identifying suitable swap candidates to fix the sequence:\n\nWrite the missing code for the following function:\n\ndef find_swap_pairs(sequence):\n \"\"\"Create a function that returns a dictionary containing the highe...
dolphin
[ { "from": "human", "value": "convert this code to c++:\n```lua\nfunction find_triplet_equal_sum(nums)\n n = #nums\n prefix_sum = {}\n for i = 1, n+1 do\n prefix_sum[i] = 0\n end\n\n for i = 1, n do\n prefix_sum[i + 1] = prefix_sum[i] + nums[i]\n end\n\n for i = 1, n - 2 do...
dolphin
[ { "from": "human", "value": "Please focus on the functionality of this problem and provide code in Elixir:\nThere is a robot on an `m x n` grid. The robot is initially located at the **top-left corner** (i.e., `grid[0][0]`). The robot tries to move to the **bottom-right corner** (i.e., `grid[m - 1][n - 1]`)...
dolphin
[ { "from": "human", "value": "port this code to Rust:\n```scheme\n(define (min-camera-cover root)\n (let ((ans (list 0)))\n (+ (if (< (dfs root ans) 1) 1 0) (car ans))))\n \n(define (dfs node ans)\n (if (not node)\n 2\n (let ((left (dfs (left node) ans))\n (right (dfs (right node...
dolphin
[ { "from": "human", "value": "convert this code from python to R:\n```python\ndef length_longest_path(input: str) -> int:\n dir_length_stack = []\n max_file_length = 0\n lines = input.split('\\n')\n\n for line in lines:\n level = line.count('\\t')\n line = line.lstrip('\\t')\n\n ...
codefeedback
[ { "from": "human", "value": "Devise a class in the Python programming language that embodies the characteristics and attributes inherent to a human individual." }, { "from": "gpt", "value": "<think>\nOkay, I need to create a Python class that represents a human individual. Let me think about the...
evolcodegolf
[ { "from": "human", "value": "Consider this spiral\n###########\n#\n# #######\n# # #\n# # ### #\n# # # # #\n# # # # #\n# # # #\n# ##### #\n# #\n#########\n\nStarting in the centre:\n\nThe first line (upwards) has 3 characters.\nThe second line has the same number of characters (3).\nNext, we add ...
evolcodegolf
[ { "from": "human", "value": "A heterogram is defined as a lexical item in which each character from the English alphabet appears solely once, whereas a palindrome is a phrase that retains its sequence identically in reverse. The task at hand is to compose a segment of code that receives a single-word input ...
evolcodegolf
[ { "from": "human", "value": "Eliminate every instance of consecutive newline characters, meaning that each occurrence of two newline characters appearing adjacently should be removed, while single newline characters should remain unaffected. \nExample: \necho -ne 'a\\n\\nb\\nc\\n\\n\\n\\nd\\n\\n\\n' | you...
magicoder
[ { "from": "human", "value": "You are tasked with creating a script to automate the deployment of microservices using Maven. Your script should process configuration parameters and then execute Maven commands for each microservice.\n\nThe script should accept the following configuration parameters:\n- `--con...
sharegpt
[ { "from": "human", "value": "Develop a Python function that calculates the maximum possible area of a triangle inscribed within a semicircle of a specified radius. This function should also ascertain the coordinates of the triangle's vertices. The semicircle's center is at the origin (0,0) and the radius is...
glaive
[ { "from": "human", "value": "What is the difference in efficiency between i++ and ++i in various programming languages?\n\nI have primarily used Java and C/C++, but I am interested in understanding the performance implications across different programming languages. \n\nDuring my college days, a professor m...
dolphin
[ { "from": "human", "value": "port this code to PHP:\n```java\npublic int smallestFairNumber(int n) {\n while (true) {\n int k = n;\n int even = 0, odd = 0;\n while (k > 0) {\n k % 2 == 0 ? even++ : odd++;\n k /= 10;\n }\n if (even == odd) return n;...
evolcodegolf
[ { "from": "human", "value": "Design a program \\$p\\$ that generates a string \\$s\\$ identical in length to \\$p\\$, while ensuring that \\$s \\neq p\\$. Consider the implications of removing the \\$n\\$th byte from your program to produce a new program \\$q\\$; in such cases, \\$q\\$ should either output ...
sharegpt
[ { "from": "human", "value": "How can I create a function that removes all occurrences of a specific word from a given sentence in Python?" }, { "from": "gpt", "value": "<think>\nOkay, so I need to create a Python function that removes all instances of a specific word from a given sentence. Let m...
dolphin
[ { "from": "human", "value": "translate this code to Objective-C:\n```javascript\nfunction maxProfit(prices) {\n let minPrice = Number.MAX_VALUE;\n let maxProfit = 0;\n for (const price of prices) {\n minPrice = Math.min(minPrice, price);\n maxProfit = Math.max(maxProfit, price - minPr...
magicoder
[ { "from": "human", "value": "You are tasked with creating a program that can analyze the frequency of words in a given text. Your program should take a string of text as input and output a list of unique words along with their frequencies in descending order.\n\nFor example, given the input:\n```\n\"The qui...
glaive
[ { "from": "human", "value": "You are tasked with creating a RESTful API endpoint for retrieving SQL execution data in a Spark application. The endpoint should allow users to fetch a list of SQL executions with optional details such as plan description, as well as individual SQL execution details. Additional...
glaive
[ { "from": "human", "value": "I'm trying to get the content of a mounted file using the Go Docker API. The file \"secret.txt\" contains a line \"TOKEN=MY_TOKEN\". Here is the code I have so far:\n\n```go\ncli, err := client.NewEnvClient()\nif err != nil {\n panic(err)\n}\ndefer cli.Close()\n\nctx := conte...
evolcodegolf
[ { "from": "human", "value": "Envision the process of programming a microwave oven, drawing inspiration from the concept of generating a lazy microwave input. The notion of lazy value for a non-negative integer N refers to the smallest integer that is closest to N, where all of its digits are identical. Your...
evolcodegolf
[ { "from": "human", "value": "Consider a number as a de Polignac number if and only if it satisfies two specific criteria: it must be an odd integer, and it should not be expressible in the form of p + 2n, where p is a prime integer and n is a non-negative integer. \n\nYour objective is to develop a piece of...
sharegpt
[ { "from": "human", "value": "How can I construct a program that can identify outliers in a numerical series?" }, { "from": "gpt", "value": "<think>\nOkay, so I need to figure out how to write a program that identifies outliers in a numerical series. Let me start by recalling what an outlier is. ...
magicoder
[ { "from": "human", "value": "You are tasked with creating a script to automate the setup of a computational environment for running experiments on a distributed computing platform. The script needs to set up the necessary resources, such as memory, GPUs, CPUs, and workspace information, before executing a s...
sharegpt
[ { "from": "human", "value": "How can I set up a foreign key to an abstract base class with Django? I've factored out common attributes from two classes into an abstract base class, but I have another model that needs to reference either one of those classes. Unfortunately, it's not possible to reference an ...
sharegpt
[ { "from": "human", "value": "What is the SQL query to calculate the total salary earned in the month of December from a table named \"Payments\"?" }, { "from": "gpt", "value": "<think>\nOkay, let's see. The user is asking for an SQL query to calculate the total salary earned in December from a t...
glaive
[ { "from": "human", "value": "You are tasked with creating a game room with specific settings and instances using GameMaker Studio 2. The room should have a width of 256 and a height of 240, with non-persistent settings. The room should also have multiple instances of different objects placed at specific coo...
magicoder
[ { "from": "human", "value": "You are tasked with creating a Python function that parses a given URL and extracts specific components from it. The function should take a URL as input and return a dictionary containing the parsed components. The components to be extracted include the scheme, netloc, path, par...
codefeedback
[ { "from": "human", "value": "Please create a new function `printShape2` that takes the following parameters:\n- `num`: an integer representing the number of times the shape should be printed.\n- `shape`: a string representing the shape to be printed.\n- `color`: a string representing the color of the shape ...
evolcodegolf
[ { "from": "human", "value": "Identify and assess the validity of a string composed of numbers interspersed with five distinct \"special characters\": % & # $ !. For example, consider the string: \"5 ! 60%2$5.3\" (which is valid). Your task is to apply a series of established rules to evaluate the integri...
evolcodegolf
[ { "from": "human", "value": "Construct an innovative program that generates a total of 99 unique scripts (written in the same programming language) each designed to produce the output string \"I love you.\" You will have the discretion to determine the method of separating these individual programs in the f...
sharegpt
[ { "from": "human", "value": "I am a beginner in Java Programming and on Eclipse. I have recently downloaded a java project on the internet, and when I try to execute it, it works at the beginning, but when I try to add an item in the database, the following error is displayed in the console:\n```\njava.lang...
glaive
[ { "from": "human", "value": "Can someone explain the limitations and preferred usage of Unicorn and Puma concurrency methods? How do they utilize CPU cores, threads, and clock speed? How can I determine the optimal CPU characteristics for dedicated servers? Also, how do I determine the ideal number of worke...
glaive
[ { "from": "human", "value": "You are tasked with creating a function that closes over a local constant and returns a struct with a method that accesses this constant. The function should return the value of the local constant when the method is called.\n\nWrite a function called `fnThatClosesOverLocalConst`...
evolcodegolf
[ { "from": "human", "value": "When provided with a positive integer n, generate the N-dimensional identity tensor, which is the N^N array characterized by 1 at indices where all components are identical and 0 at all other positions. N^N signifies a structure that extends N-by-N-by-N... dimensions. \n\n1 -> [...
dolphin
[ { "from": "human", "value": "port this code from C# to Lua:\n```csharp\npublic class TreeNode {\n public int val;\n public TreeNode left;\n public TreeNode right;\n public TreeNode(int val=0, TreeNode left=null, TreeNode right=null) {\n this.val = val;\n this.left = left;\n ...
codefeedback
[ { "from": "human", "value": "Based on the dataset available at http://archive.ics.uci.edu/ml/machine-learning-databases/wine-quality/winequality-red.csv, your task is to define a Python function that takes the CSV file as an input, preprocesses the data and plots a 3D scatter plot to visualize the relations...
codefeedback
[ { "from": "human", "value": "Create a program that will find the greatest common divisor (GCD) of n number of integers. The program should reject non-positive integers and should be optimized to handle large numbers efficiently." }, { "from": "gpt", "value": "<think>\nOkay, I need to create a pr...
dolphin
[ { "from": "human", "value": "Please explain the reasoning behind the following solution and provide code in Perl:\nYou need to construct a binary tree from a string consisting of parenthesis and integers.\n\nThe whole input represents a binary tree. It contains an integer followed by zero, one or two pairs ...
magicoder
[ { "from": "human", "value": "You are working on a computer vision project and need to implement a Region Proposal Network (RPN) for object detection. The RPN is a neural network component that generates region proposals for potential objects in an image. You are tasked with implementing the initialization a...
magicoder
[ { "from": "human", "value": "You are tasked with implementing a Python class that extends a base class and overrides a method. Your task is to complete the implementation of the `FITSExtension` class, which is a subclass of `FE` (FitsExtension). The class `FITSExtension` needs to use the `__new__` method in...
magicoder
[ { "from": "human", "value": "You are given a Python function `calculate_discount` that takes in two parameters: `price` (an integer representing the original price of an item) and `discount_rate` (a float representing the percentage discount to be applied). The function is intended to calculate the discount...
dolphin
[ { "from": "human", "value": "port this code to Julia:\n```perl\nsub wiggle_sort {\n my ($nums) = @_;\n for (my $i = 1; $i < scalar @$nums; $i++) {\n if (($i % 2 == 0 && $nums->[$i] > $nums->[$i-1]) ||\n ($i % 2 == 1 && $nums->[$i] < $nums->[$i-1])) {\n ($nums->[$i], $nums-...
codefeedback
[ { "from": "human", "value": "You are tasked with implementing a file tracking system that keeps track of files being added and removed. The system should maintain two sets of files: `todo` for files to be processed and `done` for files that have been processed. The system should also calculate a unique hash...
codefeedback
[ { "from": "human", "value": "Why can't I create a `class` in `VB.NET` that `inherits` `System.IO.Directory`? According to Lutz Roeder, it is declared as `NotInheritable`!\n\nI want to create a `utility class` that adds functionality to the `Directory class`. For instance, I want to add a `Directory.Move`...
codefeedback
[ { "from": "human", "value": "Could you adapt this piece of code to Rust for me?\nscript\nconst enhancedTotalMatch = (lst1, lst2) => {\n let count1 = lst1.reduce((accum, curr) => accum + curr.length, 0);\n let count2 = lst2.reduce((accum, curr) => accum + curr.length, 0);\n \n let arr1 = count1 <= count2...
sharegpt
[ { "from": "human", "value": "Can you help me generate an artificial neural network that can give an output of 0 for negative inputs and 1 for non-negative inputs?" }, { "from": "gpt", "value": "<think>\nOkay, the user wants a neural network that outputs 0 for negative inputs and 1 for non-negati...
glaive
[ { "from": "human", "value": "I have a website built on Ruby on Rails 3.2.11 and Ruby 1.9.3. Recently, I've been encountering the following error in my logs:\n\n(JSON::ParserError) \"{N}: unexpected token at 'alihack&lt;%eval request(\\\"alihack.com\\\")%&gt;\"\n\nThese errors all seem to involve the code \"...
glaive
[ { "from": "human", "value": "You have been tasked with designing a software system following the SOLID principles. The system will have multiple abstraction layers, including a Common layer, View layer, Business layer, and Data layer. Each layer will have specific responsibilities and will be designed to be...
evolcodegolf
[ { "from": "human", "value": "Today marks the celebration of Purim, during which one delightful tradition involves distributing triangular-shaped pastries filled with sweet ingredients known as hamantaschen (singular: hamantasch). Another celebrated custom is indulging in alcoholic beverages to excess. \nI m...
evolcodegolf
[ { "from": "human", "value": "Introduction \nI've always liked the idea of extracting the maximum potential from a compact chip, such as the 6502. Naturally, I'll need to commence with manageable steps. Achieving a filled display on 6502asm.com should be straightforward enough.\n\nChallenge \nFill the enti...
evolcodegolf
[ { "from": "human", "value": "The challenge presents a straightforward task, requiring you to process an input time formatted as a string in any of the following variants: hh, hh:mm, or hh:mm:ss, adhering to the constraints where 0 ≤ hh ≤ 23, 0 ≤ mm ≤ 59, and 0 ≤ ss ≤ 59. Additionally, you must account for s...
evolcodegolf
[ { "from": "human", "value": "Task \nConsider two positive integers \\$m,n\\$, and visualize a chessboard configured as \\$m \\times n\\$. A chess queen is positioned at the upper-left corner. Determine the total number of distinct paths the queen can take to arrive at the lower-right corner, utilizing move...
magicoder
[ { "from": "human", "value": "You are working on a machine learning project and need to preprocess the data before feeding it into a TensorFlow model. You have split your dataset into training and testing sets using the `train_test_split` function from the `sklearn.model_selection` module. Now, you need to c...
codefeedback
[ { "from": "human", "value": "&lt;p&gt;A cargo ship is used to transport five containers in the order: ABCDE. However, sometimes when the ship arrives to collect the containers they are not in the correct order. &lt;br /&gt;\nTo rearrange the containers they are all moved on to a large rotating platform. Aft...
dolphin
[ { "from": "human", "value": "Please explain the following problem in detail and provide code in python:\nYou have a `RecentCounter` class which counts the number of recent requests within a certain time frame.\n\nImplement the `RecentCounter` class:\n\n* `RecentCounter()` Initializes the counter with zero...
sharegpt
[ { "from": "human", "value": "Create a neural network in Python which can classify a given set of food posters as either Italian or Mexican.\nTrain Data:\nItalian:\n- Pizza poster\n- Lasagna poster\n- Spaghetti poster\nMexican:\n- Burrito poster\n- Enchilada poster\n- Taco poster" }, { "from": "gpt",...
magicoder
[ { "from": "human", "value": "You are working on a testing framework for an API client in Swift. The code snippet provided contains test functions for different scenarios of the `missionType` endpoint. Each test function calls the `test_missionType_endpoint` method with specific parameters to test different ...
codefeedback
[ { "from": "human", "value": "You are a security analyst investigating a potential security breach in a company's system. You have intercepted a suspicious HTTP request made by an unknown entity to a server. The intercepted request is as follows:\n\n```\ncurl http://admin:xxxx@illusion.pwn2win.party:1337/\n`...
evolcodegolf
[ { "from": "human", "value": "There exist certain programs that possess the unique capability of generating their own source code as output while refraining from engaging in any additional operations. Furthermore, they do not interact with any external output mechanisms. Such programs are classified as quine...
evolcodegolf
[ { "from": "human", "value": "Rocket Bots \nThe year is 3024. People have become too scarce a resource to risk in war, so combat has shifted to the robots. Your task is to construct a bot like no other, whose rockets will rain destruction down on your foes while also devising a strategy to minimize self-dam...
glaive
[ { "from": "human", "value": "You are tasked with implementing the Stage D (\"decode\") module of the \"Flute_V3\" CPU. This module is responsible for decoding instructions and generating the appropriate output based on the input data. Your task is to create the BSV module `mkCPU_StageD` which includes the i...
glaive
[ { "from": "human", "value": "You are tasked with creating a program that takes in vertex data and applies transformations to it using a model-to-camera matrix and a camera-to-clip matrix. The program should also output the model space position, vertex normal, and diffuse color of the input vertices.\n\nYour...
evolcodegolf
[ { "from": "human", "value": "As part of the Code Golf Advent Calendar 2022 competition, refer to the associated meta discussion for comprehensive insights.\n\nSanta employs a unique method for organizing his collection of gifts. He persistently engages in \"uninterleaving\" the stack of gifts into progressi...
codefeedback
[ { "from": "human", "value": "Develop a web application that displays \"Greetings, Universe!\" on the screen in a custom font and animates the text for a duration of 3 seconds upon hovering over it. Implement this functionality in multiple languages in separate tabs within the application." }, { "fro...
sharegpt
[ { "from": "human", "value": "Hey, I have three tables: tbldealermobiles, tblhistory, and tblAllDealers. The tbldealermobiles table contains mobile numbers and a unique id, the tblhistory table contains purchase dates and other details, and the tblAllDealers table contains customer types and other details. \...