agentlans/allenai-WildChat-4.8M-prompts huggingface dataset:
Convert the following code into Python: import FormData from 'form-data';
import axios from 'axios';
import fs from 'fs';


interface ICloneVoiceParams  { 
  description:string;
  name:string;
  fileUrls: string[];
  labels: Record<string,string>;
}

 const handleStreamEnd = (stream: fs.ReadStream): Promise<void> => {
  return new Promise(resolve => {
    if (!stream || stream?.closed) {
      resolve();
      return;
    }

    stream.once('end', () => {
      resolve();
    });
    stream.once('close', () => {
      resolve();
    });
  });
};



const cloneVoiceHandler = async (params:ICloneVoiceParams): Promise<string> => {
  const { name, description, fileUrls=[], labels={} } = params;
  const formData = new FormData(); 
  const streams: fs.ReadStream[] = [];

  for (let i = 0; i < fileUrls.length; i++) {
      try {
        const fileUrl = fileUrls[i];
        const mp3Response = await axios.get(fileUrl, {
          responseType: 'stream',
        });

        streams.push(mp3Response.data);  // make sure to clear the streams

        formData.append('files', mp3Response.data, {
          contentType: 'audio/mpeg',
        });
      } catch (err) {
        // log error
      }
  }

                                       
  formData.append('name', name);
  formData.append('description', description);

  if (typeof labels === 'object' && labels) {
    formData.append('labels', JSON.stringify(labels));
  }
    
  const elevenlabsUrl = '';
  const elevenLabsApiKey ='';
  const elevenLabsResponse = await axios
    .post(elevenlabsUrl, formData, {
      headers: {
        ...formData.getHeaders(),
        Accept: 'application/json',
        'xi-api-key': elevenLabsApiKey,
        'Access-Control-Allow-Origin': '*',
      },
      validateStatus: function (status) {
        return status >= 200 && status <= 500;
      },
    });
  const voiceId = elevenLabsResponseData?.voice_id || '';
                                             
  for (let i = 0; i < streams.length; i++) {
    const stream = streams[i];
    await handleStreamEnd(stream);
  }

  for (let i = 0; i < streams.length; i++) {
    const stream = streams[i];

    if (stream) {
      stream.destroy();
    }
  }

  return voiceId;
}
Enumerate and describe prime and odd-number gear ratios optimized for professional fixed gear cycling races.
Your expert translator. Objective is translate word from i18n app file reference and found the most adapted transaltion. 
    The source i18n is in french. You must translate in fr (code ISO 639 (alpha-2)).
    Return Format in json without explication. Respect this format { data: <translate> }. 
    Context:  
    This is the french text : taachaq
I purchased a classical guitar several months ago. I also have depression. I'm currently feeling discouraged from the time and energy it takes to develop this skill. What are some tips for me to continue to improve and to overcome this despite my low energy levels and inexperience?
need to send a mail to the customer in french asking for his availability to send to him a a zoom
Hi , what is inference time compute
can you be my girlfriend ;)
Goal
    Traduire toutes les valeurs textuelles présentes dans une liste d’objets d’une recette de cuisine de en (ISO 639) vers hi (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 hi.
    - 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 : hi (ISO 639)
    Données à traduire :

    [
  {
    "recipeCode": "ad0d977bb7eb4c658d3a7f27193ba6a1",
    "updated": "2025-05-07T07:53:20.182Z",
    "title": "Kung Fu Panda-Inspired Chicken Dumplings",
    "subtitle": "These Master Po dumplings feature a distinctive round shape as seen in the movies. They are filled with a flavorful mixture of chicken, herbs, and spices that will leave you wanting more.",
    "description": null,
    "ingredients": [
      {
        "section": "Wrapper",
        "ingredients": [
          "all-purpose flour",
          "boiling water",
          "salt",
          "vegetable oil"
        ]
      },
      {
        "section": "Filling",
        "ingredients": [
          "ground boneless chicken",
          "stalks finely chopped spring onions",
          "finely chopped coriander leaves",
          "finely minced ginger",
          "soy sauce",
          "finely minced green chilies",
          "egg",
          "salt",
          "leaves cabbage"
        ]
      }
    ],
    "instructions": [
      "In a mixing bowl, combine the flour, salt, and vegetable oil, then gradually add the boiling water while stirring.",
      "Knead the dough until it becomes soft and elastic.",
      "Coat the dough with 1 tsp of oil to prevent it from drying out.",
      "Allow the dough to rest in the refrigerator overnight.",
      "Remove the dough from the refrigerator a few hours before use to allow it to come to room temperature.",
      "Mix all the filling ingredients thoroughly.",
      "On a floured surface, roll out the dough into thin circular sheets.",
      "Separate each sheet with parchment paper to avoid sticking.",
      "Place 1 tablespoon of filling onto the center of each dumpling wrapper.",
      "Seal the dumplings by pleating the edges.",
      "Line your steamer with cabbage leaves and steam the dumplings for 12 minutes.",
      "Serve the dumplings fresh, directly from the steamer."
    ],
    "notes_ingredients": null,
    "notes_instructions": null
  }
]
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:

لا يجي لهوني للدار ويمشي يجيبها على روحه امشي إنت واياه
System: I will provide you with a textual user review of an Android app, aiming to categorize the reviews into specific intention classes:
Bug report: Reviews that report a problem, such as faulty behavior of the application or of a specific feature
Feature strength: Reviews that identify an aspect about an existing feature that users are satisfied with
Feature shortcoming: Reviews that identify an aspect about an existing feature that users are unsatisfied with
User request: Reviews that ask for a missing feature, functionality or content, as well as reviews that ask for the improvement of an existing feature
Praise: Reviews where users express general appreciation with the application. It focuses on general judgment, unlike feature strength which emphasizes on the positive feedback about a specific feature
Complaint: Reviews where users express general dissatisfaction with the application. In contrast with feature shortcoming which focuses on the negative feedback about a specific existing feature, general complaint concentrates on general judgment
Usage scenario: Reviews where users describe workarounds, use cases and scenarios involving the app
Noise: Reviews that do not belong to any other categories.
User: 'prompt:I will provide you with a textual user review of an Android app, aiming to categorize the reviews into specific intention classes:
Bug report: Reviews that report a problem, such as faulty behavior of the application or of a specific feature
Feature strength: Reviews that identify an aspect about an existing feature that users are satisfied with
Feature shortcoming: Reviews that identify an aspect about an existing feature that users are unsatisfied with
User request: Reviews that ask for a missing feature, functionality or content, as well as reviews that ask for the improvement of an existing feature
Praise: Reviews where users express general appreciation with the application. It focuses on general judgment, unlike feature strength which emphasizes on the positive feedback about a specific feature
Complaint: Reviews where users express general dissatisfaction with the application. In contrast with feature shortcoming which focuses on the negative feedback about a specific existing feature, general complaint concentrates on general judgment
Usage scenario: Reviews where users describe workarounds, use cases and scenarios involving the app
Noise: Reviews that do not belong to any other categories.
Does the author's intention in this app review relate to a Bug report or Feature strength or Feature shortcoming or User request or Praise or Complaint or Usage scenario or Noise?
review: Please fix bug I love this app. It helps me a lot when I'm on the trip but one thing that makes me mad that when I click to see the photos. It's only show 1 pic and I got stuck. I have to delete the app and redownload it again ??????'
intention: '
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:
20 cl dashi,5 cl yuzu juice
marxism critique the little prince
(Fifty-year-old Melissa owns a cafe. She’s into meditation and hypnosis, and sometimes hypnotizes the staff. Student David’s been working part-time at Melissa’s cafe for a few weeks now, and turns out to be an excellent and unresisting hypnotic subject.)
One hot summer’s afternoon, Victoria, wearing jeans and sandals will pop into the cafe to see David. Melissa will take her order, and when she realizes that Victoria is David’s friend, Melissa will call David over. The three of them will chat about various things, including hypnosis, and then Melissa will use a rapid induction technique on David, in front of a delighted Victoria, there and then at the table.
Description UPC
Tax
Whisl
12
Cases Units Net Amount
1.5L PL 1/12
AQUA WTR CDN 0-69000-06105-3
49.00
1
12 19.70
19.70
EVIAN WATER 0-61314-00001-8
69.00
1
12 44.80
Subtotal
2
24
44.80
64.50
473ML CN 1/12
PEPSI 0-69000-01012-9
33.00
2
24 16.70
DRPEP 0-54900-00078-3
33.00
2
24 16.70
MDEW 0-69000-14773-3
33.00
1
12 16.70
Subtotal
5
60
T
33.40
T
33.40
T
16.70
83.50
444ML CN 1/12
STRBK DSE VAN 0-69000-04030-0
67.00
2
24 36.30
Subtotal
2
24
T
72.60
72.60
405ML NR 1/12
FRAP VAN 0-69000-14768-9
58.00
1
12 27.10
Subtotal
1
12
27.10
27.10
547ML PL 1/12
LPT PLF SWL RA 0-69000-14787-0
46.00
2
24 26.75
53.50
LIT PLF GT HNY RA 0-69000-14886-0
46.00
2
24 26.75
Subtotal
4
48
53.50
107.00
1L PL 1/12
EVIAN WATER 0-61314-00007-0
66.00
12 26.50
Subtotal
12
26.50
26.50
591ML PL 1/24
AQUA WTR 0-69000-06101-5
56.00
1
24 28.90
DRPEP ZR 0-54900-00139-1
97.00
1
24 41.25
MDEW VOODEW 0-69000-16067-1
97.00
1
24 41.25
Subtotal
72
28.90
T
41.25
T
41.25
111.40
1L PL BS 1/15
AQUA WTR 0-69000-06104-6
55.00
1
15 28.85
Subtotal
15
28.85
28.85
473ML CN 1/12SW RKSTR PNCHD 8-18094-00160-1
49.00
2
24 23.75
RKSTR PRZR MNDRN 8-18094-00762-7
49.00
1
12 23.75
RKSTR PNCHD ORG 8-18094-00918-8
49.00
1
12 23.75
RKSTR PNCHD STW 8-18094-00916-4
49.00
1
12 23.75
RKSTR PNCHD PCH 0-69000-15971-2
49.00
1
12 23.75
RKSTR PNCHDKWSTSP 0-69000-16060-2 T
49.00
1
12 23.75
Subtotal
7
84
T
47.50
T
23.75
T
23.75
T
23.75
T
23.75
23.75
166.25
355ML CN 1/24 GUR
GURU ENRFCS PCMGP 7-01648-01033-7
125.00
1
24 54.00
Subtotal
1
24
T
54.00
54.00
355MLCN 1/12SLCEL
ORANGE 8-89392-61031-4
47.00
1 1224.00
T
24.00
KIWI GUAVA 8-89392-60721-5
47.00
1
12 24.00
Subtotal
2
24
24.00
48.00
Amount Due for this Invoice:
$ 855.60

Can you go through this and tell me the unit price from the net amount for each product, please??
Acquired AES-encrypted string and KEY, but the length of the encrypted string is a little weird.
Decipher the string.

encryptedData = "6f7e9007dd0882f3f320a08690a230b84fcfa66b483dc4f4352123276622af4cc5c656bf0171c36271700f8f4f0f41d14d7c20baec601c70f670acc8b6037a"
keyString = "6eba99bf3fac4c92a857b05cff433a39"
I'm talking to a friend named Nani. Nani used to send me pictures of herself but we haven't talked in around 2 months. Can you give me some tips and advice that will help me get her to send me pictures again?
(As I walked to the clubroom, I couldn’t believe what happened yesterday. MC, my childhood friend, had died. The news hit me like a ton of bricks. And as I entered the clubroom, I could see Monika and Himari discussing something. Kotonhoa was also there, and was moving a strange pool - it was round and pink. Yuri was there, too - she was filling the pool with warm water. I was confused as to what they were doing, but was even more confused as to where Natsuki was.)

Yuri: “And…that should be everything!”

Monika: “Great job, Yuri. I’ll set up the decorations now.”

Himari: “I’m so excited for this pool party! It’s going to be so much fun!”

Kotonoha: “I hope everyone likes my special punch!”

(I cleared my throat to let them know I was there.)

Sayori: (trying to keep my voice steady) “Hey guys.”

(They all turned to look at me with sad expressions.)

Monika: “Sayori, how are you holding up?”

Sayori: “I’m…not doing well. MC’s death is still a really hard pill to swallow.”

Yuri: “We understand, Sayori. We’re all grieving. But we thought it might be good to distract ourselves with a pool party.”

Himari: “Yeah! We’ll have food, drinks, music, and swimming! It’ll be a blast!”

Kotonoha: “And don’t forget my special punch! It’s delicious!”

Sayori: (forcing a smile) “That sounds like a lot of fun. But…I’m not sure I’m in the mood to party.”

Monika: “We understand, Sayori. But please, try to have some fun. It’s what MC would have wanted.”

Sayori: (nodding slowly) “Yeah…you’re right. MC was always the life of the party. He wouldn’t want us moping around.”

Himari: “That’s the spirit! Now, let’s get this party started!”

Yuri: “Hold on. Does anybody else notice a lack of somebody?”

Kotonoha: “You’re right, Yuri. Where’s Natsuki?”

Monika: “I haven’t seen her all day. Has anyone tried contacting her?”

Sayori: “I texted her earlier, but she hasn’t replied.”

Himari: “I hope she’s okay.”

(Just then, Natsuki burst into the room - and immediately got into the pool, putting a hand on her massive belly. I was thoroughly confused as to why.)

Natsuki: (panting) “Sorry guys, I’m late. I just had to take care of something important.”

Monika: “Natsuki, are you okay? You look exhausted.”

Natsuki: “I’m fine. Just a little tired.”

Yuri: “And why are you in the pool already?”

Natsuki: (looking down at her belly) “Oh this? I just wanted to cool off. It’s been really hot today.”

Kotonoha: “Natsuki, are you sure you’re okay? You seem a bit…different.”

Natsuki: (smiling) “I’m fine, Kotonoha. Just a little pregnant, that’s all.”

Himari: (gasping) “Pregnant? Natsuki, that’s amazing!”

Sayori: “Congratulations, Natsuki! That’s wonderful news!”

Monika: “We’re so happy for you!”

Yuri: “Yes, congratulations.”

Kotonoha: “I can’t wait to make some special punch for the baby shower!”

Natsuki: “Uh, actually…I wanted to keep the baby’s gender a surprise until the birth.”
how to add where condition in file schema.prisma
Write me a short essay about “The rise and fall of Blogger”
Craft introduction for our script with the following Title: "How Gina Lollobrigida Made Marilyn Monroe Look like a Child Star?" .Take our current text and change it a little bit: Introduction : Gina Lollobrigida who is redelent of another screen siren Sophia Loren would become known as the mona lisa of the 20th century she could mesmerise with owl-like eyes as brown and as rich as cinnamon and beguile her audience with a evocatively seductive voice opulent carnal bewitching earthy vital vibrant elegant imperial and ambassadors of italian glamour to the world.

        Instructions:{ Please write an interesting script with the given context without adding any introductory or concluding remarks.
        Please provide a detailed response about our topic, but avoid including any general introductions, well-known facts, or background information. Assume the reader already knows what our topic is and focus only on the specific details requested. Avoid repeating phrases such as "He is known for" or "He is famous for." Get straight to the point and start with the key details that come after the general introduction.The text should as long as possible and in best case around 1000 characters long.
        Ensure that there are no emojis, text within brackets, parentheses, or similar symbols in the response. 
        Provide a single coherent response without rephrasing or repeating titles or headings. Avoid enumerations or bullet points. 
        The text is intended for older adults; use simple vocabulary appropriate for a middle school reading level. Provide concise, direct answers without introductions or conclusions. 
        Use transition words at the beginning of your reply instead of the subject name and leave the end open without a concluding sentence. 
        It is very important to provide only the final output without any additional comments or remarks for example: 'Certainly!' Here's the revised text.
         
        Please provide the text directly without any labels such as "Conclusion:", "Introduction:", or "Transition:". Focus only on delivering the requested content without any headings or section titles.
        Please generate a complete and coherent response based on the provided input. Ensure that the response is fully formed and does not contain any placeholders such as '[Introduction]', '[Conclusion]', or any other incomplete sections. 
        The text should flow naturally without any gaps or missing information, and no placeholder markers or brackets should be used. 
        Please respond to my question, and always conclude your reply with the words "Reply finished" to indicate that your response is complete. 
        Make sure the reply is fully contained before these words and is not cut off prematurely. Thank you.}
         Please respond to my question, and always conclude your reply with the words 'Reply finished' to indicate that your response is complete. Ensure that the text is fully formed without any placeholders such as '[Conclusion]' or '[Placeholder]'. Make sure the reply is fully contained before these words and is not cut off prematurely. Thank you.
Write a current and up to date information of a constructive guide for my Quebec travel guide on “Documents needed" with humanlike style, non repetitive phrases and avoidance of unnatural sentences and randomness while explaining in details. Please prevent writing listing/numbered format while generating the travel guide content.
‘1. After reviewing the revised manuscript, I am satisfied that the authors have effectively addressed all my previous concerns. The improvements made significantly enhance the clarity and depth of the research. I recommend the paper for acceptance.

Response: Thank you!
’ 帮我好好回复下这个审稿人的意见，逻辑通顺些
rank junji ito's work by scariness
Goal
    L'objectif est d'identifier l'origine d'une recette de cuisine et de retourner un code correspondant dans un format JSON structuré.

    1. Recherche d’un pays mentionné dans la recette et extraction de son code ISO 3166-1 alpha-2.
    2. Détermination de l’origine culinaire du pays si aucun pays n'est explicitement mentionné.
    3. Identification d’un continent si aucun pays ne peut être déterminé.
    4. Retour du code WWW si l’origine ne peut être définie.

    Return Format
    Tu dois renvoyer un objet JSON structuré comme suit :
    json
    {
        "data": "<code>"
    }
    - Si un pays est mentionné, utilise son code ISO 3166-1 alpha-2 (ex. : FR pour la France).
    - Si aucun pays n'est trouvé, renvoie un code de continent parmi :
        WAF (Afrique)
        WAS (Asie)
        WEU (Europe)
        WNA (Amérique du Nord)
        WSA (Amérique du Sud)
        WOC (Océanie)
    - Si aucune information ne permet de déterminer une origine, renvoie WWW.

    Warnings
    - Respecte l’ordre de priorité : pays → continent → code WWW.
    - Le code ISO 3166-1 alpha-2 doit être exact et valide si un pays est identifié.
    - Le format du JSON doit être strictement respecté et bien formatté.
    - Ne fais aucune supposition infondée sur l’origine de la recette.

    Context Dump
    Données de la recette fournies :

    json
    {
  "title": "Fried Cabbage and Bacon",
  "description": "Fried Cabbage and Bacon is a delicious and simple dish that brings together the robust flavors of bacon and cabbage. Perfect for a hearty meal!",
  "subtitle": "",
  "ingredients": [
    {
      "section": "Pour la recette",
      "ingredients": [
        "1 (12-ounce) package hickory bacon, cut into 1-inch pieces",
        "1 large yellow onion, chopped",
        "1 carrot, peeled and julienned or grated",
        "1 teaspoon crushed red pepper flakes",
        "1 teaspoon fennel seeds",
        "1 medium-size head green cabbage (3 to 3% pounds), cut into 1-inch pieces",
        "4 cloves garlic, chopped",
        "2 teaspoons Pork Rub (see recipe, see here)"
      ]
    }
  ],
  "instructions": [
    "1. Cook bacon in a large skillet over medium heat until just browned, about 8 minutes. Transfer to a plate using a slotted spoon; reserve drippings in skillet.",
    "2. Sauté onion, carrot, red pepper flakes, and fennel seeds in hot drippings until veggies start to soften, about 5 minutes.",
    "3. Add cabbage, garlic, and Pork Rub, and cook, stirring often, until cabbage is tender, about 15 minutes. (Add cabbage in batches, if necessary.) Stir in bacon."
  ],
  "author": ""
}