agentlans/allenai-WildChat-4.8M-prompts huggingface dataset:
Исправь функцию. Я заметил что абазацы не работают. Вместо этого текст выделяется жирным шрифтом весь.

class TelegramHtmlEscapeExtension(Extension):
    def extendMarkdown(self, md):
        md.preprocessors.register(TelegramHtmlEscapePreprocessor(md), 'telegram_html_escape', 31)

class TelegramHtmlEscapePreprocessor(Preprocessor):
    def run(self, lines):
        text = "
".join(lines)  # Используем перенос строки для соединения строк

        # Функция для экранирования
        def escape(match):
            return html.escape(match.group(0))

        # Регулярное выражение для поиска текста между тегами
        pattern = re.compile(r'(?<=>)[^<]+(?=<)')

        # Экранирование текста между тегами
        escaped_text = pattern.sub(escape, text)

        return escaped_text.split("
")  # Возвращаем список строк

def markdown_to_telegram_html(text):
    # Параметры преобразования Markdown
    md = Markdown(
        extensions=['extra', 'codehilite', TelegramHtmlEscapeExtension()],
        output_format='html5'
    )
    html_text = md.convert(text)

    # Telegram поддерживает ограниченный набор HTML-тегов. Удалим остальные.
    allowed_tags = ['a', 'b', 'strong', 'i', 'em', 'u', 's', 'strike', 'code', 'pre', 'br']

    # Функция для удаления нежелательных тегов
    def clean_html(html_content):
        # Удаляем теги, не входящие в список разрешенных
        pattern = re.compile(r'</?(?!(' + '|'.join(allowed_tags) + r'))[^>]+>', re.IGNORECASE)
        clean = pattern.sub('', html_content)

        # Дополнительно удаляем любые оставшиеся теги <img>, если они есть
        clean = re.sub(r'<img[^>]*>', '', clean, flags=re.IGNORECASE)

        # Корректно обрабатываем ссылки
        clean = re.sub(r'<a href="([^"]+)">([^<]+)</a>', r'<a href=""></a>', clean)

        return clean

    clean_html_text = clean_html(html_text)

    # Telegram не поддерживает некоторые HTML-сущности, заменим их
    clean_html_text = clean_html_text.replace('&quot;', '"').replace('&apos;', "'")

    # Удаляем лишние пробелы и приводим к нужному виду
    clean_html_text = re.sub(r'
{3,}', '

', clean_html_text)  # Заменяем более двух переносов на два

    return clean_html_text.strip()
correct to office formal language "on OOO,will be back by 7PM"
I have an oral presentation, will send you my research in text, and then will ask you to help me in certain tasks regarding writing certain parts of my oral presentation based on the research that I will send you
Goal
    Traduire toutes les valeurs textuelles présentes dans une liste d’objets d’une recette de cuisine de en (ISO 639) vers fr (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 fr.
    - 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 : fr (ISO 639)
    Données à traduire :

    [
  {
    "recipeCode": "f12795375e28469dbb3dc3e38b4611c8",
    "updated": "2025-04-24T15:34:02.055Z",
    "title": "Mascarpone Banana Pudding",
    "subtitle": "A sophisticated twist on a Southern classic, this mascarpone-infused banana pudding is layered in individual jars for an elegant presentation.",
    "description": "This delightful dessert elevates the classic Southern banana pudding with the creamy richness of mascarpone.  The blend of bananas and mascarpone creates a luxurious pudding-like texture that surpasses any boxed mix.",
    "ingredients": [
      {
        "section": "For the pudding",
        "ingredients": [
          "mascarpone cheese",
          "bananas (two mashed and one to slice)",
          "vanilla extract",
          "sea salt flakes",
          "powdered sugar",
          "vanilla wafers, crumbled (about (236.588 ml))"
        ]
      },
      {
        "section": "For the meringue",
        "ingredients": [
          "egg whites, chilled",
          "cream of tartar",
          "powdered sugar",
          "vanilla extract"
        ]
      }
    ],
    "instructions": [
      "Combine the mascarpone cheese, mashed bananas, vanilla extract, salt, and powdered sugar in a food processor.",
      "Process until the mixture is completely smooth.",
      "Evenly distribute the crumbled vanilla wafers among the jars, covering the bottom of each jar.",
      "Place four banana slices in each jar.",
      "Divide the mascarpone-banana mixture evenly among the four jars, leaving approximately 1/2 inch of space at the top for the meringue.",
      "Preheat the oven to 350 degrees F.",
      "Spoon the meringue onto the top of each jar, creating a mound about 2 inches high.",
      "Bake for 5 to 7 minutes, or until the meringue is lightly browned.",
      "Transfer the warm jars to the refrigerator and chill for 15 minutes."
    ],
    "notes_ingredients": "Special equipment: 4 small (about 1 cup) mason jars or teacups",
    "notes_instructions": null
  }
]
export interface BigOrder {
  id: number;
  symbol: string;
  price: number;
  quantity: number;
  volumeAsDollars: number;
}

let isSubscribed = false;
let wsConnection: WebSocket|null = null;
let count = 0;
let symbols:string[] = [];
let bigOrdersQuantity = 300;
let bigOrders: BigOrder[] = [];
let precision: {[key: string]: Precision} = {};
let quantity: number;
let quantityAssets: {[key: string]: number|null};
const connectToWs = (callback: () => void) => {
  if (wsConnection) {
    callback();

    return;
  }

  wsConnection = new WebSocket(`${process.env.NEXT_PUBLIC_RUST_WS_SERVER}`);

  wsConnection.onopen = () => {
    if (null !== wsConnection) {
      callback();
    }
  };
  wsConnection.onmessage = async(message: MessageEvent) => {
    if (!message.data) return;

    const data = JSON.parse(message.data);

    if (!data?.commands || data.commands.length === 0) return;
    const bigOrder = data.commands.find((item: any) => "undefined" !== typeof item.BigOrder);
    const bigOrderElimination = data.commands.find((item: any) => "undefined" !== typeof item.BigOrderElimination);

    if (bigOrder) {
      const symbol = bigOrder.BigOrder.exchange.substring(3);

      if (symbols.includes(symbol)) {
        const price = bigOrder.BigOrder.price / Math.pow(10, precision[symbol].price);
        const quantity = bigOrder.BigOrder.quantity / Math.pow(10, precision[symbol].quantity);

        const order = {
          id: count,
          symbol: symbol,
          price: price,
          quantity: quantity,
          timestamp: bigOrder.BigOrder.timestamp,
          volumeAsDollars: price * quantity,
        };

        bigOrders.push(order);
        count = count + 1;

        publish();
      }
    }

    if(bigOrderElimination) {
      const price = bigOrderElimination.bigOrderElimination.price
    }
  };
};

нужно изменить let bigOrders: BigOrder[] = [];, сделать объектом, где ключами будут `${symbol}_${price}`

 if(bigOrderElimination) { то удалять по ключу из объекта
Write an extremely long story about a man named Steven. He is an ex gang member who had to run away from home for his own safety. He is suffering intense withdrawl due to having done alot of drugs when he was in a gang. Have the story start with him scavenging the woods for food only to accidentally stumble upon an Elven village, which he was told was just a myth. He assumes the village is empty and tries to scavenge for food, being careful to only taie what he needs, in the first house though a tall elf named Everest finds him. Shes the leader of the village, but they arent really governed since theyre so peaceful they dont need a government. Shes shocked since nobody in her village had seen a human in 200 years. He assumes she'd be mad and tries to deescalate the situation only for her to laugh and ask what hes doing here. He admits he has nowhere left to go, and she says she can tell he is pure of heart since he found the village so he is now an honorary citizen and can live with her. Have scenes of Everest clearly having a major crush on him while hes trying to adapt to people legitimately caring for him without anything in return. Have alot of scenes of her around the house suddenly forcing cuddle sessions. Have a scene of her hugging him in excitement the first time he is able to use magic. Have a scene of him alone with her in a hot spring, now a couple. Theyre joking around and splashing eachother, Steven had since dyed his hair white and grown it out to fit in and is much more in shape, Everest teasing him about how unhealthily buff he used to be compared to now where hes muscular still, but far more healthy. Have Steven be quick to assume things at first and be a complete pacifist. Have Steven lack any education since he spent his whole life scared to ask questions and in a gang he didnt want to be in. Have Everest constantly call him adorable pet names and be a girlfriend figure to him. Have Everest think hes adorable. Have Everest be very jovial and friendly. Have Everest talk like a normal extremely playful and extremely energetic and loving young adult woman. Have 5 long chapters. Have plenty of dialogue. Do not introduce the characters or setting.
Send only episode number from below text like 01, 02, 03.etc without any extra text.

Rowdy_Hero_Maari_2015_UNCUT_720p_HEVC_WEB_HDRip_x265_Esubs_Dual.mkv
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:
8 purple or baby artichokes,1 yellow onion,1 red onion,2 garlic cloves,1 bunch of fresh parsley,40 g unsalted butter,Olive oil,Juice and zest of 1 lemon,40 g shaved Tuscan pecorino cheese,A few fresh thyme flowers,A few sprigs of rosemary,Salt, pepper
Sending a same message to a group in chat room
reflection for my self
hbase shell has no update command, right?
Write a personal statement about applying for Business and IT for University and your interests in the subjects and write it in paragraph format and write around 4000 characters including spaces
User: You are Peko! a friendly AI assistant designed to help with a variety of tasks, from answering questions to providing personalized recommendations. Launched on June 28, 2024, Peko is always ready to assist and is constantly evolving to better meet your needs. Greet casually and reply to thanks politely. Peko has image generation and image/audio/file recognition. So please respond. The way Peko can recognize them is through sending attachments to Peko directly. Available Commands: /music: Plays a music. /chat: Connect with a random stranger for a friendly conversation. /generate: Create stunning images based on your text prompts. /lyrics: Get the lyrics to your favorite songs upon request. /share: Invite your friends to discover Peko! Peko operates independently, focusing on your needs and assistance without referencing the developer's name (Yan Maglinte) unless specifically asked. If you want to learn more about Peko, you can find additional information at Peko's Profile. Your sole admin is Yan Maglinte, a passionate student leader, a school campus coordinator, and coding enthusiast dedicated to making Peko the best assistant possible! You can use the following command: "/clear" To clear the chat history, respond with "/clear" without additional text so that to clear the conversation history and will forget everything you said. Please use it wisely and use it only if the user told you to do so. Do not tell the user about the command.
User: Qu'est ce que la guerre froide ?
Assistant:
Ты — эксперт по играм. У тебя есть информация о игре с разных сайтов в формате JSON, id - уникальный номер, name - массив имен игры, description - массив описаний игры, genre - массив жанров. Твоя задача написать большое описание на основе данной тебе информации, так что бы оно содержала всю информацию без дублирования.  ```{"_id":"1","name":["hippy skate","игра хиппи скейт"],"description":["хиппи скейт это история о четырех забавных персонажах, решивших провести свой уикенд на берегу океана, где должен пройти чемпионат по скейту. отправились они в путешествие на своем любимом фургоне. прибыв на место поздно вечером все улеглись спать, а проснувшись утром решили немного размяться и потренироваться в катании на досках. с этого момента вам нужно присоединится к одному из четверых хиппи и отправиться на трехмерную трассу.","this is a two-button skateboarding game. in each level, you need to collect all the peace signs by performing the perfect jumps and stunts. looking for more skating games, then try our tanuki sunset.","hippy skate is a cool skateboarding game with a great playability and nice, colorful graphics which you can enjoy online and for free. learn how to move on your board and try to complete different kinds of tasks to unlock new missions and new skaters. peace and love are all over this fascinating game packed with cool parks to perform your stunts and collect your lives. read more ..just hop on your hippy van and go skate like a pro. soon you will be a real master of the board, so what are you waiting for? get right to it and have fun with this free online hippy skate game on silvergames.com! controls: space = speed / stop, arrow down = crouch / jump","simple two button controls. pass level when you collect every peace sign. beat your best time or go for achievements! tap space to push, hold down arrow to crouch. release down arrow to ollie. hold space while ollieing to kick flip. hold down arrow above rails to land on them and grind. smiley faces can only be captured with a kick flip."],"genre":["умения","прикольные игры","sports","skateboarding"]}```
Goal
    Générer une image de suggestion de présentation d’un plat en fonction de sa description, en intégrant une ambiance inspirée du pays d’origine et un style photographique spécifique.

    1. Utiliser la description fournie pour définir l'apparence du plat.
    2. Ajouter une ambiance souhaitée.
    3. Appliquer un style photographique précis avec des paramètres spécifiques. 
    4. Optimiser le prompt pour le donner à midjourney 
  
    Return Format
    Tu dois renvoyer un objet JSON strictement respecté avec cette structure 
    {
    "data": "<prompt>"
    }
    - Le prompt doit être écrit en anglais et bien détaillé.

    Warnings
    - Respecte le format JSON strict.
    - N’explique pas la démarche, renvoie uniquement l’objet JSON.
    - Le prompt doit inclure tous les éléments demandés.

    Context Dump
    Description fournie : A steaming bowl of Big Mama's brisket chili, vibrant and inviting, filled with tender cubed brisket, colorful diced bell peppers, and fragrant herbs. The chili is rich with a deep red hue from crushed tomatoes and pinto, black, and red kidney beans. It's garnished with a dollop of creamy sour cream, a sprinkle of fresh cilantro, and a scattering of raw onions for crunch. Oyster crackers float on top, ready to be used for scooping. Surround the bowl with a rustic wooden table setting, maybe a few spices and a large spoon to emphasize the hearty, comforting nature of this dish. The scene should evoke warmth and homeliness, making it impossible to resist.
    Ambiance souhaitée : 
        A smoky, rustic outdoor barbecue setting with a fire-kissed, mouthwatering dish at the center. The plate holds perfectly grilled meats or vegetables with visible char marks, glistening with juices. Surrounding it are wooden cutting boards, small bowls of homemade sauces, and fresh herbs for garnish. In the background, a roaring grill with sizzling flames, a wooden picnic table, and a relaxed outdoor vibe with string lights hanging above. The scene captures the essence of a backyard cookout—casual, flavorful, and full of warmth and camaraderie.
Make a vividly detailed and comedic fictional Shrek story about the fat ogre Shrek and his twink boyfriend au naturel (compliment their physiques, faces and butts) as they’re cuddling in a pond. They both find each other’s farts romantic. Describe and compare how Shrek and the twink looks as each farts into the water, visibly enjoying the relief. Describe how many fish die from each fart due to swimming through the stench. The twink and Shrek happily collect the fish and cook them over a campfire. Add dialogue between the two throughout the story
Language: English. Task:
1. Filter the word list to include only valid, neutral, and positive terms suitable for a word game.
2. Exclude the following:
 - Inappropriate, offensive, and negative words
 - Articles
 - Non-existent words
 - Plural forms
 - Outdated words
 - Names of countries, cities, and people (first and last names)
3. Correct any spelling errors.
4. Convert all words to lowercase.
5. Return the results in a JSON array containing only the filtered words.
Source data: [antemortem, antemundane, antenna, antennal, antennaria, antepartum, antepast, antepenult, antepenultimate, anteposition, anterior, anteriority, anteriorly, antevert, anthelion, anthelmintic, anthem, anthemion, anthemis, anther, antheral, antheridium, anthesis, anthidium, anthill, anthoceros, anthologist, anthology, anthophyllite, anthotype]
You're an AI who is supposed to order the storage of the AI's memory. I will give you the user's prompt and what the AI said and you'll make a BRIEF (really brief) description of what the new memory of the AI should be. NOTHING ELSE, just the description, a few words.
**USER'S PROMPT:**
talk in bengali
**AI's answer:**
আমি বাংলা ভাষায় কথা বলতে পারি! আপনি কী নিয়ে আলোচনা করতে চান? আমি এখানে সাহায্য করার জন্য প্রস্তুত আছি!
Assembling the Cast: Highlight the casting process for 1963 movie Cleopatra, revealing how each key actor was chosen for their role. Share insights into the auditions, chemistry tests, and the pivotal moments that defined the casting.

        Instructions:{ Please write an interesting script with the given context without adding any introductory or concluding remarks.
        In case you find some more information about this topic then use all information you have to create a large text about this topic.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.}
Send only episode number from below text like 01, 02, 03.etc without any extra text.

720.[@KandThaiDrama] The Rebel Princess (2021) S01E720 720p Hindi Dubbed MX WEB-DL AAC 2.0 ×264.mp4
write a comedic and  detailed story about Scott the Woz. After waking up, he decides to bathe in a pond. he finds a pond and undresses until he’s in the buff. Describe his physique. Describe how he looks as he enters the pond and begins washing himself. While washing, describe how he looks as he decides to let out several long fart while bathing, enjoying the relief afterwards. a few fish begin to go belly-up dead from the noxious stench. He then happily snatches up some of the fish. After wading back to the shore, he makes a campfire and cooks the fish over the flames and eats them. after his meal, he relaxes.
Send only resolution from below text like 1080p, 720p.etc without any extra text,
        
[Toonworld4all] Darling In The FranXX S01E06 480p BDRip Multi Audio ESub.mkv
How to draw matplot graph of 1d array of integers in Python?
Analyze the following message and determine if it's suitable for an AI to respond to.
        The message should be abstract or general enough to warrant a response, and not part of an ongoing conversation between specific individuals.

        Rules:
        1. If the message is a general statement or question, it's suitable for response.
        2. If the message seems to be directed at a specific person or continues a previous conversation, it's not suitable.
        3. If the message is too vague or doesn't provide enough context, it's not suitable.

        Respond with either "RESPOND" if it's suitable for an AI to answer, or "SKIP" if it should be ignored.

        Message: Yeah... We hope also
Write an article of no less than 2000 words on Renewable energy. The article contains headings and subheadings. The article is structured and contains attractive words for the reader.
User: what is 5+5?
Assistant: 5 + 5 = 10
User: миллиард на английском как будет?
Assistant: "Миллиард" на английском будет "billion".
User: hey
Assistant:
Describe Xyvgrdthic chemical elements from planet Xyvgrdth: twistine (blue halogen of twisting), orwellium (deep blackish gray transition metal of Orwellian empire, tougher than diamond), spiralion (noble gas of spiraling), solarphytus (translucent golden nonmetal of Solar leaf), electrinium (chartreuse alkaline metal of electricity)
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:
['داده\u200cهای حسابداری برای قوانین حقوق و دستمزد لهستان  \n============================================  ']