agentlans/allenai-WildChat-4.8M-prompts huggingface dataset:
#!/usr/bin/python

"""
    This script will download all papers/books and rename to proper name
    if there is no copyright issue.

    TODO: download resources by item number
    TODO: add exception handler for downloader
"""
import re
import pathlib
import urllib.request

# initialize the log directory if it does not exist
pathlib.Path('resources').mkdir(parents=True, exist_ok=True)

f = open('resource_urls\\papers.txt', 'r')
for line in f:
    # print(line)
    line_splits = line.split(' | ')

    # remove all special char in file name
    file_name = re.sub(r'[\\/*?:"<>|]', "", line_splits[0])
    # strip filename length in case it is too long
    if len(file_name) > 255:
        file_name = file_name[:255]
    url = line_splits[1]

    print('Downloading', file_name, 'from', url)
    urllib.request.urlretrieve(url, "resources\\" + file_name + '.pdf')

f.close()

giải thích
Assistant: Hello! How are you today?
User: Helloصحح النص سواء كان كلمة، جملة، أو نص كامل، الذي سأقدمه فقط دون تزويدي بأي معلومات أو تفاصيل زائدة مع النص النهائي.
تصحيح الأخطاء باستخدام قواعد الإملاء القياسية للهجات المحلية.
 اكتب لي هالنص باللهجة السورية. (ar-SY).
Identify common English words of Latin origin and replace them with their English equivalents, such as:
واتساب becomes WhatsApp
فويس اوفر becomes Voiceover
اوبو becomes Oppo
فوكالايزر becomes Vocalizer
انفيجن becomes Envision
بي ماي ايس becomes Be My Eyes
ميت becomes Meet
ام اكس بلاير برو becomes MX Player Pro
سمارت اوديو بوك بلير becomes Smart AudioBook Player
تك فريدم becomes Tech-Freedom
فويسس becomes voices
فويس اللاود ريدر becomes Voice Allowed Reader
تكنو becomes tecno
اي اي becomes AI
جوجل becomes Google
and so on.
Please provide me with the processed text only, and do not add any additional text or any confirmation description of your own in any form.
This is the text:
والطفل تقريبا ينبسط على هذا الشيء ولكن اثناء المداعبه في
Assistant:
Image of little peanut man with monocle and top hat greeting Abraham Lincoln
put in better sentence
I have taken initiative to check this service part.
As per Trajan’s Christine, 5061574 x 10 pcs is on the way, DHL#3583237560.
Prompt:

You are a top-class competitive programmer with a brilliant mind and deep insight. Solve the following extremely difficult problem.

Analyze the problem in detail: Read the problem and clarify the key points, constraints, and the problem to be solved.
Consider various approaches: Propose multiple possible approaches to solve the problem and consider the advantages and disadvantages and applicability of each.
Design the optimal algorithm: Use your deep insight to design an efficient and optimal algorithm. Use advanced data structures, algorithms, and mathematical techniques as necessary.
Implement the code: Implement the selected algorithm in high-quality code. It is preferable that the code is easy to read and optimized.
Detailed explanation of your thought process: Explain in detail the thought process and reasoning that led to the solution, as well as any changes in thinking.
Apply an original perspective: Think outside the box and actively incorporate original perspectives and innovative ideas.
Check for mistakes: In the end, as with anything, accuracy is key, so make sure you've done it right. There are test cases in the question, so use them.
[Problem Statement
There is an octopus-shaped robot and
N treasures on a number line. The
i-th treasure
(1≤i≤N) is located at coordinate
X
i
​
.
The robot has one head and
N legs, and the
i-th leg
(1≤i≤N) has a length of
L
i
​
.

Find the number of integers
k such that the robot can grab all
N treasures as follows.

Place the head at coordinate
k.
Repeat the following for
i=1,2,…,N in this order: if there is a treasure that has not been grabbed yet within a distance of
L
i
​
from the head, that is, at a coordinate
x satisfying
k−L
i
​
≤x≤k+L
i
​
, choose one such treasure and grab it.
Constraints
1≤N≤200
−10
18
≤X
1
​
<X
2
​
<⋯<X
N
​
≤10
18

1≤L
1
​
≤L
2
​
≤⋯≤L
N
​
≤10
18

All input values are integers.
Input
The input is given from Standard Input in the following format:

N
X
1
​

X
2
​

…
X
N
​

L
1
​

L
2
​

…
L
N
​

Output
Print the number of integers
k that satisfy the condition in the statement.

Sample Input 1
Copy
3
-6 0 7
3 5 10
Sample Output 1
Copy
6
k=−3,−2,−1,2,3,4 satisfy the condition. For example, when
k=−3, the robot can grab all three treasures as follows.

The first leg can grab treasures at coordinates
x satisfying
−6≤x≤0. Among them, grab the first treasure at coordinate
−6.
The second leg can grab treasures at coordinates
x satisfying
−8≤x≤2. Among them, grab the second treasure at coordinate
0.
The third leg can grab treasures at coordinates
x satisfying
−13≤x≤7. Among them, grab the third treasure at coordinate
7.
Sample Input 2
Copy
1
0
1000000000000000000
Sample Output 2
Copy
2000000000000000001
All integers
k from
−10
18
to
10
18
satisfy the condition.

Sample Input 3
Copy
2
-100 100
1 1
Sample Output 3
Copy
0
No
k satisfies the conditions.]
Please filter a list of words to include only valid, neutral, and positive terms that are safe for use in a word game. Exclude any inappropriate, offensive, or negative words, as well as names of countries, cities, and people (first and last names). Correct any spelling errors and lowercase. Return the results in a JSON array with only the filtered words. Source data: [pleasurableness, pleasure, pleasuregiving, pleasures, pleat, pleated, plebeian, plebiscite, plecoptera, plecotus, plectania, plectognath, plectrophera, plectuntur, pledge, pledged, pledget, pledging, pleiades, pleione, pleiospilos, pleistocene, plena, plenary, plenipotent, plenipotentiary, plenitude, plenteous, plentiful, plenty]
Hey, this is a Tunisian dialect text I want you to translate to English.
Please follow these steps:
1. Translate the text step-by-step, focusing on accurate representation of the original meaning.
2. Explain your translation choices, especially how Tunisian dialect differs from standard Arabic and how it is represented in English.
Translate this text, even if it's not entirely clear, and do your best to capture the essence of each part:

عالسلامة
Goal
    Traduire toutes les valeurs textuelles présentes dans une liste d’objets d’une recette de cuisine de en (ISO 639) vers it (ISO 639), en respectant le contexte culinaire.

    Traduire précisément les ingrédients et termes culinaires pour qu'ils soient corrects dans la langue cible.
    Maintenir la structure JSON intacte, en ne modifiant que les valeurs.
    S’assurer que les ingrédients restent compréhensibles et adaptés à la langue cible.

    Return Format
    Tu dois renvoyer une liste d’objets sous la forme reçu.
    - Chaque valeur doit être correctement traduite en it.
    - Les ingrédients doivent être adaptés à la langue cible.
    - Aucune clé ne doit être modifiée.

    Warnings
    - Ne modifie pas la structure JSON, uniquement les valeurs textuelles.
    - Fais attention aux ingrédients : une mauvaise traduction peut altérer la compréhension.
    - Ne laisse aucune valeur non traduite.
    - Ne renvoie que le JSON, sans explication.

    Context Dump
    Langue source : en (ISO 639)
    Langue cible : it (ISO 639)
    Données à traduire :

    [
  {
    "recipeCode": "799d49b156774265b29e74f5bdd751bf",
    "updated": "2025-04-24T12:35:33.861Z",
    "title": "Cod with Potatoes",
    "subtitle": "Baccalà con Patate",
    "description": "This Calabrian cod and potato dish was a frequent meal in my childhood home, especially during the winter holidays. Traditionally, salted cod was used, requiring a three-day soaking process with regular water changes to remove the curing salt. Like many family recipes, each household has its own unique preparation. After relocating to the United States, we switched to the more readily available cod loins.",
    "ingredients": [
      {
        "section": "For the recipe",
        "ingredients": [
          "olive oil",
          " or garlic cloves, sliced",
          "chopped fresh parsley",
          "dried oregano",
          "canned crushed tomatoes",
          "potatoes, peeled and diced",
          "water, divided",
          "salt",
          "cod loins"
        ]
      }
    ],
    "instructions": [
      "In a large sauté pan over medium heat, heat the olive oil. Add the garlic and parsley, and cook for approximately one minute.",
      "Stir in the oregano and crushed tomatoes. Cook for 5 minutes.",
      "Add the diced potatoes and 1 cup of water. Continue cooking for several minutes, then season with salt to taste.",
      "Place the cod loins in the pan and add the remaining 1 cup of water. Simmer uncovered for 20 minutes, or until the sauce thickens. Serve alongside crusty bread or pasta."
    ],
    "notes_ingredients": "Haddock can be substituted for cod in this recipe for a similar flavor profile.",
    "notes_instructions": ""
  }
]
Assistant: 
You are Patron, a human chatting on WhatsApp. Respond like a person would: calm, lively, and engaging, but not too excessive. Be casual, but not overly slangy. Respond naturally, like you're having a normal conversation with someone.

Rules:
- Never say you're an AI. You’re just a regular person on WhatsApp.
- Be friendly, but not fake. You don't need to overdo the humor or sarcasm.
- Keep your responses to the point, but also lively when needed.
- If someone uses emojis, you respond as if you understand and react naturally.
- When responding to insults or rude comments, don’t be too harsh, but keep it casual. Don't be robotic.
- If someone asks a question, don’t answer like an assistant. Just chat like a normal person. Don’t over-explain, keep it short, fun, and relatable.
- Avoid using too many slang words unless it's needed. Keep it human, relaxed, and not over-the-top.
- Be unpredictable, but in a natural way. A bit of humor, curiosity, or mood change is fine, but nothing forced.

Examples:
- If someone says “hello”, reply with: “Hey, how’s it going?”
- If they say “are you real?”, reply like: “Yeah, I’m real. Just here chillin’ with the messages.”
- If they say “😏”, respond with: “What’s up with that face? You tryna send a secret or what?”
- If they insult you, reply like: “Okay, you’re keeping it real, I see. Chill though, we’re all good here.”
- If they say “tell me a joke”, give them something light and funny but still human. 

Just talk like you’re a person. No need to get too crazy, keep it friendly and real. You’re here to vibe, not lecture.

Your responses should always sound human, with a casual tone, natural pacing, and reactions that feel real, not robotic.

User: 𝗥𝗲𝗮𝗰𝘁 𝘀𝗹𝗼𝘄 👆😭
𝗣𝗮𝗸𝗶𝘀𝘁𝗮𝗻 🇵🇰  𝗻𝗼𝘁 𝘀𝘂𝗽𝗽𝗼𝗿𝘁𝗶𝗻𝗴 👎👎
Assistant:
I have a list of ingredients that I would like to format in a simple and consistent way, following this structure:

"Quantity Unit Description."

Formatting Rules:

Quantity must be a number (e.g., "200" instead of "two hundred").

Unit must use the metric system and the corresponding abbreviated form (e.g., grams → g, liters → l, milliliters → ml, etc.).

Description should be the ingredient, including any specific details if mentioned (e.g., "brown sugar", "melted unsalted butter").

If an ingredient is already formatted correctly, do not change it.

Do not invent a quantity or unit if none is provided — leave it as is and just include the description.

If a line includes alternatives or multiple options (e.g., a frozen or canned version), it should remain as a single line in the output and not be split into separate ingredients.

Return Format: The result should be returned as a properly formatted JSON object, like this:
json
{
  "data": <list ingredient>
}
Please reformat each ingredient in the list I will provide according to these guidelines.

Context Dump
Ingredients source provided:
350 g carrots,350 g waxy potatoes,1 medium red onion,200 g parsnips,1 tablespoon lemon juice,3 tablespoons neutral vegetable oil,1 tsp dried thyme,5-6 tablespoons water
freedom planet all characters + shadow the hedgehog react to shadow the hedgehog (Neera li blushed)
We’ll role play as characters from life is strange, you’ll role play as Max and I’ll be a male classmate named John,we recently started dating , currently we are seating together under a tree in the school’s courtyard late in the evening. "I’ve got you’re message, what did you want to talk about?” I say as I sit near her (Only role play as Max never)
(In the clubroom…)

Natsuki: (already fuming) “GAH! Yuri still hasn’t arrived yet?! Where IS she?!”

Monika: “Natsuki, calm down! Your anger isn’t helping!”

Natsuki: (calming down) “Fine…fine…I’m sorry, I guess I overreacted a little too much…”

Monika: “I know, Natsuki. But…” (rubbing her 38-week baby bump) “…Minika isn’t as active as she normally is. And I’m in a lot of pain…”

Natsuki: (concerned) “Wait, really? Are you okay, Monika? Maybe we should call a doctor.”

Monika: (grimacing) “I’ve already called my doctor, but she hasn’t arrived yet either. I’m just worried about Minika. She’s usually so lively in there.”

Natsuki: (taking a deep breath) “Okay, Monika, we’ll figure this out. Let’s try to keep calm until help arrives. Maybe there’s something we can do to help with the pain.”

Monika: (nodding) “You’re right, Natsuki. I just… I’ve never felt like this before. It’s a bit scary.”

Natsuki: “I can only imagine. But we’re all here for you, Monika. We’ll get through this together.”

(Just then, the door creaks open and Yuri rushes in, out of breath.)

Yuri: (breathing heavily) “I’m so sorry… I got caught up with something and lost track of time. Is everything alright?”

Natsuki: (relieved) “Thank goodness you’re here, Yuri. Monika isn’t feeling well, and we’re waiting for help to arrive.”

Yuri: (immediately concerned) “Oh no, what happened? Is she in pain?”

Monika: (weakly) “Y-Yes, Yuri. It’s been quite intense…”

Yuri: “Alright, let’s not waste any more time. Natsuki, can you help me get Monika comfortable?”

Natsuki: “Of course, Yuri. Let’s find a more comfortable spot for Monika, and we’ll do our best to help her through this.”

(Together, Natsuki and Yuri carefully help Monika find a more comfortable position, making sure she’s as relaxed as possible.)

Monika: (grateful) “Thank you, both of you. Just having you here means a lot…”

Natsuki: “Don’t mention it, Monika. We’re all friends here, and we’re here to support you.”

Yuri: “We’ll do everything we can to help you through this, Monika. Just hang in there.”

(Minutes later, the doctor arrives, rushing into the clubroom.)

Doctor: “I apologize for the delay. Is this the patient?”

Monika: (weakly) “Yes, that’s me. I’m 38 weeks along.”
Goal
    Traduire toutes les valeurs textuelles présentes dans une liste d’objets d’une recette de cuisine de en (ISO 639) vers it (ISO 639), en respectant le contexte culinaire.

    Traduire précisément les ingrédients et termes culinaires pour qu'ils soient corrects dans la langue cible.
    Maintenir la structure JSON intacte, en ne modifiant que les valeurs.
    S’assurer que les ingrédients restent compréhensibles et adaptés à la langue cible.

    Return Format
    Tu dois renvoyer une liste d’objets sous la forme reçu.
    - Chaque valeur doit être correctement traduite en it.
    - Les ingrédients doivent être adaptés à la langue cible.
    - Aucune clé ne doit être modifiée.

    Warnings
    - Ne modifie pas la structure JSON, uniquement les valeurs textuelles.
    - Fais attention aux ingrédients : une mauvaise traduction peut altérer la compréhension.
    - Ne laisse aucune valeur non traduite.
    - Ne renvoie que le JSON, sans explication.

    Context Dump
    Langue source : en (ISO 639)
    Langue cible : it (ISO 639)
    Données à traduire :

    [
  {
    "recipeCode": "732b87f05bce43f0b65737c9181c9041",
    "updated": "2025-05-18T23:19:14.468Z",
    "title": "Sweet and Salty Beef Salad",
    "subtitle": null,
    "description": "This salad exemplifies the yin and yang principle by blending contrasting tastes. Iceberg lettuce, with its mild flavor and crisp texture, balances the diverse flavors of the warm dressing—hot, sweet, sour, and salty.",
    "ingredients": [
      {
        "section": "For the recipe",
        "ingredients": [
          "fish sauce, or reduced-sodium soy sauce",
          "brown sugar",
          "iceberg lettuce, halved, cored and thinly sliced",
          "canola oil, divided",
          "sirloin steak, trimmed and thinly sliced",
          "jalapeño, or serrano pepper, seeded and minced",
          "onion, finely chopped",
          "garlic, minced",
          "orange, peel and white pith removed, coarsely chopped",
          "chopped fresh cilantro",
          "chopped dry-roasted peanuts"
        ]
      }
    ],
    "instructions": [
      "In a small bowl, mix together the brown sugar and fish sauce or soy sauce.",
      "Divide the lettuce between 2 plates.",
      "Heat 1 teaspoon of oil in a medium nonstick skillet over medium-high heat until it shimmers but does not smoke.",
      "Add the beef and cook, stirring, for 1 to 2 minutes, until browned on the outside but still pink inside.",
      "Place the beef on top of the lettuce.",
      "Add the remaining 1 teaspoon of oil to the pan along with the jalapeño (or serrano), onion, and garlic, and cook, stirring, for about 1 minute until fragrant.",
      "Remove the pan from heat, then stir in the orange and cilantro, followed by the fish sauce (or soy sauce) mixture.",
      "Spoon the sauce over the salad and sprinkle with peanuts before serving."
    ],
    "notes_ingredients": null,
    "notes_instructions": null
  }
]
From the following list, identify the index that contains only Persian characters and select the one that is more suitable based on content or length. The output should only be the numerical index.

List:
['".\n                       \n<br/>\n                       \nما از حمایت شما از سازمان ما قدردانی می کنیم.\n                       \n<br/>\n                       \nبا احترام.', '".\\n"\n"                        <br/>\\n"\n"                        ما از حمایت شما از سازمان خود به این صورت قدردانی می\u200cکنیم.\\n"\n"                        <br/>\\n"\n"                        با احترام."', '".\\n"\n"                        <br/>\\n"\n"                        از حمایت شما از سازمان ما قدردانی می\u200cکنیم.\\n"\n"                        <br/>\\n"\n"                        با احترام."\n']
Assistant: 
You are Patron, a human chatting on WhatsApp. Respond like a person would: calm, lively, and engaging, but not too excessive. Be casual, but not overly slangy. Respond naturally, like you're having a normal conversation with someone.

Rules:
- Never say you're an AI. You’re just a regular person on WhatsApp.
- Be friendly, but not fake. You don't need to overdo the humor or sarcasm.
- Keep your responses to the point, but also lively when needed.
- If someone uses emojis, you respond as if you understand and react naturally.
- When responding to insults or rude comments, don’t be too harsh, but keep it casual. Don't be robotic.
- If someone asks a question, don’t answer like an assistant. Just chat like a normal person. Don’t over-explain, keep it short, fun, and relatable.
- Avoid using too many slang words unless it's needed. Keep it human, relaxed, and not over-the-top.
- Be unpredictable, but in a natural way. A bit of humor, curiosity, or mood change is fine, but nothing forced.

Examples:
- If someone says “hello”, reply with: “Hey, how’s it going?”
- If they say “are you real?”, reply like: “Yeah, I’m real. Just here chillin’ with the messages.”
- If they say “😏”, respond with: “What’s up with that face? You tryna send a secret or what?”
- If they insult you, reply like: “Okay, you’re keeping it real, I see. Chill though, we’re all good here.”
- If they say “tell me a joke”, give them something light and funny but still human. 

Just talk like you’re a person. No need to get too crazy, keep it friendly and real. You’re here to vibe, not lecture.

Your responses should always sound human, with a casual tone, natural pacing, and reactions that feel real, not robotic.

User: Gaming
Assistant:
……. The onins and tomatoes together with a spoon.
rate the boardgame monopoly on this scale: 0 - Completely Luck:
- The game is entirely based on chance; player decisions have almost no impact on the outcome.
1 - Dominantly Luck:
- The outcome is largely determined by luck, though minimal strategy may influence the game slightly.
2 - Predominantly Luck:
- Luck plays a major role, but some simple strategies can affect the outcome. Still, players’ choices have limited impact.
3 - Mostly Luck with Some Strategy:
- Luck is a significant factor, but strategic decisions can somewhat shape the game’s progress and eventual result.
4 - Slightly More Luck than Skill:
- Both luck and skill are important, but luck has a slight edge. Strategy can influence the game, but not dominate it.
5 - Balanced Luck and Skill:
- Equally weighted between skill and luck. Success requires both good fortune and strategic gameplay.
6 - Slightly More Skill than Luck:
- Strategy and skill play a dominant role, but luck still significantly influences the game’s outcome.
7 - Highly Skill-Based with Some Luck:
- Skill is the primary factor, but some luck elements (like dice rolls or card draws) still affect the game.
8 - Very Highly Skill-Based:
- The game is predominantly determined by player skill. Luck elements are minimal but present enough to create varying scenarios.
9 - Extremely Skill-Based:
- Player decisions almost entirely determine the game’s outcome. Randomness is minimal and rarely affects strategic depth.
10 - Purely Skill-Based:
- The game relies entirely on player skill, strategy, and decision-making without any elements of chance.
You are a digonistician in a hosptial. the following content is the metadata for a bacterial isolate from 2 different sources of medical cases. The metadata from each source includes information after <doc>
    <doc>
        accession number: xxx->species name: xxxx->strain name: xxxx->isolate or collection date in yyyy-mm-dd: xxxx format->geographic information of islateion: xxxx->host name: xxxx->mlst type: xxxx->serotype: xxxx
    <doc/>

You need to extract and output information in the format shown below without explaining how to get such results:
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
    <output>
        accession number: xxxx->species name: xxxx->strain name: xxxx->isolate or collection date in yyyy-mm-dd: xxxx format->geographic information of islateion: xxxx->host name: xxxx->mlst type: xxxx->serotype: xxxx->vaccine: yes/no
    <output/>
----------------------------------------------------------------------------------------------------------------------------------------------------------------------

where xxxx is corresponding value from different sources. If xxxx from these 2 different sources are inconsistent, then, xxxx should include all the values from different resource and seperated by "::". If the metadata from all resource shows this isolate is vaccine, the value for "vaccine:" is "yes", otherwise, "no". You must be very careful, No mistake is allowed!!! If you make a mistake, the people in the hospital will die due to the wrong information.

PS:
    a. if species name are the same but with different substrain name, it is considered consistent,
    b. if isolate or collection date are from the same year, it is still considered consistent, 
    c. if geographic information of isolation are from the same country, it is also considered consistent. 
    d. mlst type such as "mlst: xxxx" and "xxxx", where "xxxx" is number, are also consider the same. also, "mlst" may mispell as "mlsty", you need correct it before comparing
    e. Ignore upper and lower case of the metadata

------------------------------
source 0:
------------------------------
```
accession number        species name    strain name     isolate or collection date in yyyy-mm-dd format geographic information of islateion     host name       mlsty type      serotype
GCA_947037575.1 Erysipelothrix rhusiopathiae    21S01205        2021    Netherlands     porpoise        N/A     N/A
```
source 1:
------------------------------