generators stringclasses 1 value | prompt_id stringclasses 1 value | seed_prompts sequencelengths 5 10 ⌀ | messages listlengths 2 2 | category stringclasses 1 value |
|---|---|---|---|---|
gemini-1.0-ultra-latest | gemini-generated | [
"Generate a series of (instruction, response) pairs that are similar in context and structure to the example provided below. Each pair should consist of a concise instruction followed by an appropriate, detailed response. The instruction should pose a clear task or question, while the response should provide a comp... | [
{
"content": "Explain the difference between mutable and immutable data structures in Java.",
"role": "user"
},
{
"content": "Mutable data structures allow their contents to be altered after creation, such as ArrayLists and HashMaps. Operations like adding, removing, or modifying elements can change... | Coding |
gemini-1.0-ultra-latest | gemini-generated | [
"Generate a series of (instruction, response) pairs that are similar in context and structure to the example provided below. Each pair should consist of a concise instruction followed by an appropriate, detailed response. The instruction should pose a clear task or question, while the response should provide a comp... | [
{
"content": "Write a Python function to find the factorial of a given number.",
"role": "user"
},
{
"content": "Here is a Python function to calculate the factorial of a number:\n\ndef factorial(n):\n if n == 0:\n return 1\n else:\n return n * factorial(n - 1)",
"role": "assistant"
}
... | Coding |
gemini-1.0-ultra-latest | gemini-generated | [
"Generate a series of (instruction, response) pairs that are similar in context and structure to the example provided below. Each pair should consist of a concise instruction followed by an appropriate, detailed response. The instruction should pose a clear task or question, while the response should provide a comp... | [
{
"content": "Explain the concept of polymorphism in object-oriented programming.",
"role": "user"
},
{
"content": "Polymorphism refers to the ability of an object to assume different forms. In OOP, a subclass can redefine methods inherited from its parent class, allowing objects of different classe... | Coding |
gemini-1.0-ultra-latest | gemini-generated | [
"Generate a series of (instruction, response) pairs that are similar in context and structure to the example provided below. Each pair should consist of a concise instruction followed by an appropriate, detailed response. The instruction should pose a clear task or question, while the response should provide a comp... | [
{
"content": "Write a C function to implement a simple linked list.",
"role": "user"
},
{
"content": "Here is a C function to implement a simple linked list:\n\nstruct Node {\n int data;\n struct Node* next;\n};\n\n// Creates a new node\nstruct Node* createNode(int data) {\n struct Node* node = m... | Coding |
gemini-1.0-ultra-latest | gemini-generated | [
"Generate a series of (instruction, response) pairs that are similar in context and structure to the example provided below. Each pair should consist of a concise instruction followed by an appropriate, detailed response. The instruction should pose a clear task or question, while the response should provide a comp... | [
{
"content": "Explain the difference between procedural and functional programming paradigms.",
"role": "user"
},
{
"content": "Procedural programming focuses on a linear, step-by-step approach, where code is executed in a sequence of instructions. Data and functions are separate entities. Functiona... | Coding |
gemini-1.0-ultra-latest | gemini-generated | [
"Generate a series of (instruction, response) pairs that are similar in context and structure to the example provided below. Each pair should consist of a concise instruction followed by an appropriate, detailed response. The instruction should pose a clear task or question, while the response should provide a comp... | [
{
"content": "Create a Python function to calculate the area of a triangle.",
"role": "user"
},
{
"content": "Here is a Python function to calculate the area of a triangle using Heron's formula: \n\ndef area_triangle(base, height):\n \"\"\"Calculates the area of a triangle using Heron's formula.\... | Coding |
gemini-1.0-ultra-latest | gemini-generated | [
"Generate a series of (instruction, response) pairs that are similar in context and structure to the example provided below. Each pair should consist of a concise instruction followed by an appropriate, detailed response. The instruction should pose a clear task or question, while the response should provide a comp... | [
{
"content": "Write a C++ program to find the maximum element in an array.",
"role": "user"
},
{
"content": "Here is a C++ program to find the maximum element in an array: \n\nint main() {\n int arr[] = {10, 5, 8, 20, 3};\n int n = sizeof(arr) / sizeof(arr[0]);\n int max = arr[0];\n for (int i =... | Coding |
gemini-1.0-ultra-latest | gemini-generated | [
"Generate a series of (instruction, response) pairs that are similar in context and structure to the example provided below. Each pair should consist of a concise instruction followed by an appropriate, detailed response. The instruction should pose a clear task or question, while the response should provide a comp... | [
{
"content": "Explain how to implement a binary search algorithm in Java.",
"role": "user"
},
{
"content": "To implement a binary search algorithm in Java: \n\n1. Sort the array in ascending order. \n2. Initialize two pointers, left and right, to the beginning and end of the array. \n3. While left <... | Coding |
gemini-1.0-ultra-latest | gemini-generated | [
"Generate a series of (instruction, response) pairs that are similar in context and structure to the example provided below. Each pair should consist of a concise instruction followed by an appropriate, detailed response. The instruction should pose a clear task or question, while the response should provide a comp... | [
{
"content": "Write a SQL query to select all employees who earn more than the average salary.",
"role": "user"
},
{
"content": "SELECT *\nFROM employees\nWHERE salary > (SELECT AVG(salary) FROM employees)",
"role": "assistant"
}
] | Coding |
gemini-1.0-ultra-latest | gemini-generated | [
"Generate a series of (instruction, response) pairs that are similar in context and structure to the example provided below. Each pair should consist of a concise instruction followed by an appropriate, detailed response. The instruction should pose a clear task or question, while the response should provide a comp... | [
{
"content": "Create a regular expression to validate email addresses.",
"role": "user"
},
{
"content": "^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$",
"role": "assistant"
}
] | Coding |
gemini-1.0-ultra-latest | gemini-generated | [
"Generate a series of (instruction, response) pairs that are similar in context and structure to the example provided below. Each pair should consist of a concise instruction followed by an appropriate, detailed response. The instruction should pose a clear task or question, while the response should provide a comp... | [
{
"content": "Explain the difference between a GET and POST request in HTTP.",
"role": "user"
},
{
"content": "GET requests: \n- Retrieve data from a server. \n- Data is passed through the URL as query parameters. \n- Data is visible in the browser's address bar. \n- Can be cached and bookmarked. \n... | Coding |
gemini-1.0-ultra-latest | gemini-generated | [
"Generate a series of (instruction, response) pairs that are similar in context and structure to the example provided below. Each pair should consist of a concise instruction followed by an appropriate, detailed response. The instruction should pose a clear task or question, while the response should provide a comp... | [
{
"content": "Write a JavaScript code to create a simple countdown timer.",
"role": "user"
},
{
"content": "function startTimer(duration, display) {\n var timer = duration, minutes, seconds;\n setInterval(function () {\n minutes = parseInt(timer / 60, 10);\n seconds = parseInt(timer % 60, 10... | Coding |
gemini-1.0-ultra-latest | gemini-generated | [
"Generate a series of (instruction, response) pairs that are similar in context and structure to the example provided below. Each pair should consist of a concise instruction followed by an appropriate, detailed response. The instruction should pose a clear task or question, while the response should provide a comp... | [
{
"content": "Explain the difference between a compiler and an interpreter.",
"role": "user"
},
{
"content": "A compiler translates source code from a high-level programming language (e.g., Java) to a low-level language (e.g., assembly language) all at once. The resulting compiled code can then be e... | Coding |
gemini-1.0-ultra-latest | gemini-generated | [
"Generate a series of (instruction, response) pairs that are similar in context and structure to the example provided below. Each pair should consist of a concise instruction followed by an appropriate, detailed response. The instruction should pose a clear task or question, while the response should provide a comp... | [
{
"content": "Describe the process of garbage collection in Java.",
"role": "user"
},
{
"content": "Garbage collection in Java is an automatic memory management mechanism that reclaims memory occupied by objects that are no longer referenced in the program. It involves identifying these unreferenced... | Coding |
gemini-1.0-ultra-latest | gemini-generated | [
"Generate a series of (instruction, response) pairs that are similar in context and structure to the example provided below. Each pair should consist of a concise instruction followed by an appropriate, detailed response. The instruction should pose a clear task or question, while the response should provide a comp... | [
{
"content": "Write a Python function to find the factorial of a number.",
"role": "user"
},
{
"content": "```python\ndef factorial(n):\n if n == 0:\n return 1\n else:\n return n * factorial(n-1)\n```",
"role": "assistant"
}
] | Coding |
gemini-1.0-ultra-latest | gemini-generated | [
"Generate a series of (instruction, response) pairs that are similar in context and structure to the example provided below. Each pair should consist of a concise instruction followed by an appropriate, detailed response. The instruction should pose a clear task or question, while the response should provide a comp... | [
{
"content": "Explain the concept of polymorphism in object-oriented programming.",
"role": "user"
},
{
"content": "Polymorphism is a principle that allows a single method to behave differently depending on the type of object it is invoked on. It enables objects of different classes that share a com... | Coding |
gemini-1.0-ultra-latest | gemini-generated | [
"Generate a series of (instruction, response) pairs that are similar in context and structure to the example provided below. Each pair should consist of a concise instruction followed by an appropriate, detailed response. The instruction should pose a clear task or question, while the response should provide a comp... | [
{
"content": "Describe the SOLID principles in software design.",
"role": "user"
},
{
"content": "SOLID is an acronym for five principles that promote maintainable and extensible software designs: Single Responsibility Principle, Open-Closed Principle, Liskov Substitution Principle, Interface Segreg... | Coding |
End of preview. Expand
in Data Studio
- Downloads last month
- 5