respinosamena/Thirty-30M-Instruct
Text Generation • 30.1M • Updated
text stringlengths 131 80k | source stringclasses 14
values | score float32 2.03 10 | tokens int32 51 33.4k |
|---|---|---|---|
Course Unit: Sports Safety and Injury Prevention - Focusing on Baseball
Lesson Objectives:
By the end of this lesson, you will be able to:
* Understand the importance of sports safety and injury prevention in baseball.
* Identify common injuries in baseball and their causes.
* Learn ways to prevent these injuries whi... | cosmopedia_v2 | 6.2771 | 741 |
### Problem
You are tasked with implementing a binary search tree (BST) in Python. Your BST should support the following operations:
- **Insertion**: Add a new value to the BST.
- **Deletion**: Remove a value from the BST.
- **In-order Traversal**: Return a list of values in the BST in in-order sequence.
Implement a c... | opencode_instruct | 7.4563 | 1,141 |
### Problem
You are given a list of strings. Your task is to implement a function that processes these strings and returns a dictionary. Each key in the dictionary should be a unique word from the list of strings, and the corresponding value should be the number of times that word appears in the list. Words should be t... | opencode_instruct | 10 | 379 |
Chapter 7: Online Safety and Being a Good Digital Citizen
In today's world, it's more important than ever to learn about how to stay safe online and be a responsible member of our digital communities. Just like in real life, there are certain guidelines we follow to ensure everyone has a positive experience when inter... | cosmopedia_v2 | 9.1215 | 706 |
Once upon a time in a small town named Wonderville, there lived a curious little girl named Lily. She loved to explore and ask questions about everything around her. One day, she found a strange box in her attic labeled "Curiosities & Wonders." Excitedly, she opened it up and discovered various odd gadgets and instrume... | cosmopedia_v2 | 5.7892 | 511 |
### Problem
You are tasked with implementing a `Book` class to manage book details in a library system. The class should have the following attributes: `title`, `author`, `isbn`, `pages`, `publisher`, `publication_year`, `language`, `category`, `price`, `rating`, and `available`. Implement the following methods:
- `__... | opencode_instruct | 9.5331 | 1,251 |
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required -
{
"name": "calculate_discount",
"description": "Calculate the discounted price",
"parameters": {
"type": "object",
"properties": {
"original_price": {
"type": "numbe... | glaive_func | 8 | 402 |
In the pulsating heart of New York City, where ambition surged through its veins and dreams were woven into the very fabric of its existence, a young woman named Maya found herself standing before the daunting abyss of uncertainty. Her reflection stared back at her from the other side of the screen; porcelain skin marr... | cosmopedia_v2 | 6.9707 | 872 |
### Problem
You are tasked with implementing a `Book` class in Python. The class should have the following attributes and methods:
- **Attributes:**
- `title`: A string representing the title of the book.
- `author`: A string representing the author of the book.
- `pages`: An integer representing the number of p... | opencode_instruct | 9.7466 | 356 |
Meet John Donne, one of England's greatest poets and preachers! But did you know that he also had a fascinating life full of adventure, love, and religious conflict? Let's explore his story together!
Once upon a time, in the bustling city of London, a baby named John Donne was born into a well-known Catholic family. E... | cosmopedia_v2 | 7.538 | 599 |
Modernisme Català, also known simply as Modernism, was a cultural movement that took place primarily in Catalonia, a region in northeastern Spain, during the late 19th and early 20th centuries. This movement encompassed various forms of art, including poetry, and had a profound impact on the development of modernist li... | cosmopedia_v2 | 8.6137 | 761 |
9
Q:
# Find the compound interest on Rs. 2680 at 8% per annum for 2 years ?
A) Rs. 664.21 B) Rs. 548.68 C) Rs. 445.95 D) Rs. 692.57
Explanation:
We know Compound Interest = C.I. = P1+r100t - 1
Here P = 2680, r = 8 and t = 2
C.I. = 26801 + 81002-1= 268027252-12= 26802725+12725-1= 2680 5225×225
= (2680 x 52 x 2)/... | finemath_4plus_hi | 6.8824 | 1,590 |
Chapter 6: Power Plants and Geographic Information Systems - A Tale of Transforming Energy and Data
Imagine you're sitting in your classroom on a chilly winter day. You look around and notice everyone wearing sweaters and huddling under blankets. Suddenly, the lights go out! Oh no, how will you stay warm? Thankfully, ... | cosmopedia_v2 | 7.3735 | 594 |
### Problem
You are given a string `s`. Your task is to determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. A string is a palindrome if it reads the same backward as forward. Ignore all non-alphanumeric characters and treat uppercase and lowercase letters as the same.
**Input:... | opencode_instruct | 8.7 | 327 |
You are here:
# Differential Equations/Expert Profile
## Dr. Nyayapati Swami
Singapore
Available
##### Expertise
I can help you in solving first and second order differential equations. Questions must be at the Undergraduate level. Do not expect me to do all your homework.. If you have a homework question with no c... | finemath_4plus_hi | 10 | 702 |
Wise Water Use
In this Section:
- Sustaining Our Water Supply
- Sustaining Our Infrastructure
- The Municipal Challenge
- Individual Action – Conserving Water in the Home, Community and at Work
- The Bottom Line
The importance of protecting our water resource cannot be overstated. In economic terms, the measurable cont... | fineweb_edu_local_long4k | 6.7308 | 6,057 |
### Problem
You are given a string `s` consisting of ASCII and/or Unicode characters. Your task is to implement a function `convert_to_base64(s)` that returns the base64-encoded representation of the string `s`. The function should handle both ASCII and Unicode characters.
**Input:**
- A single string `s` (1 ≤ |s| ≤ 1... | opencode_instruct | 8.7 | 312 |
3.3 Optimization of Control Systems
Welcome back, my eager haptician friends! In our last two units, we delved into the world of synthesizing and analyzing control systems for haptic devices, as well as designing and implementing them with finesse. Now it's time to take things one step further by optimizing those bad ... | cosmopedia_v2 | 8.1475 | 1,171 |
### Problem
You are tasked with implementing a recursive function `fibonacci` that computes the nth Fibonacci number. The Fibonacci sequence is defined as follows:
- The sequence begins with 0 and 1.
- Each subsequent number is the sum of the two preceding numbers.
Your function should return the nth Fibonacci number.... | opencode_instruct | 8.7 | 265 |
### Problem
You are tasked with implementing a `Book` class to manage book information. The class should have the following attributes and methods:
- **Attributes:**
- `title`: A string representing the title of the book.
- `author`: A string representing the author of the book.
- `year`: An integer representing... | opencode_instruct | 9.3752 | 862 |
Chapter Title: Understanding Chronic Pain Syndrome: When Pain Lasts Longer than Expected
Have you ever scraped your knee while playing outside or had a headache after staying up too late studying? You probably felt better after a day or two, right? But what if the pain didn't go away even after several weeks or months... | cosmopedia_v2 | 9.073 | 750 |
Welcome to our journey through time to explore the fascinating history of Jamaica! Today, we will focus on an important period known as the Maroon Wars and learn about the brave women who played significant roles during this time.
Firstly, let's set the scene by understanding that life in Jamaica during the late 17th ... | cosmopedia_v2 | 5.8787 | 587 |
### Problem
You are given two sorted lists of integers, `list1` and `list2`. Your task is to write a function `merge_sorted_lists` that merges these two lists into a single sorted list. The function should have a time complexity of O(n + m), where n and m are the lengths of `list1` and `list2`, respectively.
**Input:*... | opencode_instruct | 8.3352 | 484 |
Chapter Title: Understanding Powerful Companies and Their Impact on Our World
In our world today, there are some very big and powerful companies that have a lot of influence over many aspects of our lives. These companies can sometimes seem like they're too big to fail, meaning that even if something goes wrong, they ... | cosmopedia_v2 | 8.6246 | 572 |
### Problem
You are given an integer `n` greater than 1. Your task is to write a function `find_smallest_prime_factor(n)` that returns the smallest prime factor of `n`. If `n` is a prime number, the function should return `n` itself.
**Input:**
- An integer `n` (2 ≤ n ≤ 10^9)
**Output:**
- An integer representing the... | opencode_instruct | 8.5854 | 293 |
Lecture 7 – Uniform Continuity
# Lecture 7 – Uniform Continuity
Now let us see some more applications of the
intermediate value property. It starts with the
following problem. The question is as follows . Does there exist a continuous function f from
R to R which has the following property, such that
if x is a ration... | finemath_4plus_hi | 4.2675 | 8,034 |
Once upon a time, in the small town of Bakersville located at the foot of Mount Mitchell - the highest peak in North Carolina, lived two best friends: Emily, a curious and adventurous 12-year-old, and Sam, her cautious but supportive 13-year-old friend. They shared a love for exploring nature and learning about local h... | cosmopedia_v2 | 7.7489 | 635 |
Title: Cross-Browser Compatibility: Making Websites Look Great Everywhere!
Have you ever noticed that some websites look different when viewed using different web browsers? Sometimes, images might appear out of place, links may not work correctly, or even entire sections could be missing! This issue arises due to some... | cosmopedia_v2 | 8.9772 | 545 |
In the heart of Hollywood, two friends named Max and Olivia worked together at a small but ambitious film studio called Indie Vision Pictures. They were passionate about creating meaningful movies that touched people's hearts while providing them an escape from reality. With dreams bigger than their pockets, they knew ... | cosmopedia_v2 | 6.7709 | 658 |
### Problem
You are given a list of integers representing the stock prices on consecutive days. Your task is to determine the maximum profit that can be achieved by buying and selling the stock exactly once. You must buy before you sell. If no profit can be made, return 0.
**Input:**
- A list of integers `prices` wher... | opencode_instruct | 8.7 | 385 |
Congratulations on taking your first steps on this fascinating planet called Earth! As you navigate through this unfamiliar terrain, we're excited to help you learn new skills that will make your journey smoother and more fulfilling.
In this comprehensive guide, we'll walk you through the process of setting achievable... | cosmopedia_v2 | 8.6599 | 1,004 |
Chapter 10: Bullying Prevention in Schools - A Persuasive Approach through Essay Writing
I. Introduction
Bullying has become a pervasive issue in schools worldwide, affecting millions of children each year. The consequences can be devastating, leading to emotional distress, low self-esteem, absenteeism, and even suic... | cosmopedia_v2 | 9.6017 | 1,109 |
### Problem
You are tasked with implementing a function to validate email addresses for a web application. Your function should determine if a given email address is valid based on the following criteria:
- The email address must contain exactly one "@" symbol.
- The local part (before the "@") must be between 1 and 6... | opencode_instruct | 8.7 | 570 |
### Problem
You are given a string `s`. Your task is to write a recursive function `reverse_string(s)` that returns a new string with the characters of `s` in reverse order. The function should handle strings of any length, including empty strings.
**Input:**
- A single string `s` (0 ≤ |s| ≤ 1000).
**Output:**
- A st... | opencode_instruct | 8.7 | 268 |
I. Background and objectives
II. The institutional setting
III. Definition of integrated regional development planning
IV. The message of this book
V. The intended audience
VI. The organization of the book
VII. Criteria for selecting the case studies
VIII. Some disclaimers
The theorists of regional development planning... | fineweb_edu_local_long4k | 6.2639 | 4,918 |
# 10 Covariance and Correlation
One of the most common tasks in statistics and data analysis that we have to deal with is answering the ever-present question: Given two variables $$X$$ and $$Y$$, what is the relationship between them? The answer to this question largely depends on two major factors.
One factor is the... | finemath_4plus_hi | 5.2819 | 2,535 |
Welcome to our newest chapter all about patterns in nature! Have you ever looked at a leaf or a seashell and noticed how they have repeating shapes? That's what we call patterns! Today, we will explore different kinds of patterns found in various objects around us. We will also learn how scientists study these patterns... | cosmopedia_v2 | 8.8012 | 569 |
### Problem
You are given a string `s`. Your task is to determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. A string is a palindrome if it reads the same backward as forward.
**Input:**
- A single line containing the string `s` (1 ≤ |s| ≤ 10^5).
**Output:**
- Print `True` if ... | opencode_instruct | 8.7 | 235 |
Course Unit: Protecting Our Planet and Ourselves - Environmental Epidemiology 101
Have you ever wondered how our surroundings can affect our health? Well, that's what environmental epidemiologists study! They look at all sorts of things around us like pollutants, buildings, and even the neighborhood we live in to see ... | cosmopedia_v2 | 7.7611 | 573 |
Curated, quality-filtered, Bloom-deduplicated ~20.0B-token pre-training dataset built for Thirty (TurboSynthesis-30M).
train/ (170 Zstd Parquet shards, ~`17.01B` tokens): 50% Elite Educational Web (score_edu >= 5.5), 22% Synthetic Textbooks (cosmopedia-v2, non-reddit), 15% Step-by-Step Math (finemath-4plus + infiwebmath-4plus), 11% Execution/AST-Verified Python (OpenCodeInstruct + codeparrot-clean), 2% Strict Schema/Syntax-Validated JSON (json.loads verified).cooldown/ (30 Zstd Parquet shards, ~`3.00B` tokens): 35% Long >=4k-token elite documents, 22% top Textbooks, 23% top Math (finemath-4plus), 17% top Python (test_score >= 0.99), 3% Validated JSON.val/: Leakage-free held-out val_edu, val_math, val_code, val_long8k, and val_json.tokenizer/: Custom tok_32k.json BPE tokenizer (4.53 B/tok).