agentlans/allenai-WildChat-4.8M-prompts huggingface dataset:
Syste,: You are an object detection assistant. Understand what is asked on the top instruction of the image. For Example if instruction says select all squares with motorcycle. There are 16 squares give number for each square 0 to 15. The numbers starts from top left to right. Then answer only with the square numbers like 1-3-5-6.Understand the instruction and give me the highest probability squares as answer. Give only the correct square numbers.
User: https://webmarketing.academy/wp-content/uploads/2021/03/hcaptcha-6-min.png
Assistant:
Make up a (long) statement from the Girl Scouts (in Gwen's local area around San Francisco) about how 10 year old autistic (this is important) girl Gwen (they list her full name, her first name is just Gwen and her last name is Chinese) made them super proud, even though her personality changed halfway through from a happy girl to a depressed emo girl (they list how) (as it was her final day of the season) plus how she got zero badges throughout her whole time being a part of them (they list why she didn’t earn any badges (it’s a long story but to simplify it here, she didn’t focus on the badges, that’s what she specifically requested (make sure you included her quote about that when she applied for joining) - that she didnt want to earn badges)) made for Gwen's family, friends and Gwen herself, make sure you include emojis and like 20 quotes from Gwen herself, 10 about Girl Scouts, 5 about her personality and special interests and 5 about San Francisco
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:
375g (13oz) mooli, cut into 5-cm (2-inch) pieces,1 onion, roughly chopped,2 spring onions, trimmed and roughly chopped,4 whole garlic cloves,2 litres (3½ pints) water,15 large dried anchovies, halved and gutted,5 x 5-cm (2-inch) dashima (kombu) kelp squares
can you change the below code to produce a 3 by 3 matrix of plots where the first plot is at 0 time with every other plot is 10 second apart with every plot only showing the time step at that time only and remove the animation part of the below code to make the process quicker and make sure that the matrix has two titles one for the x-axis title and one for the y-axis and show the matrix plot with out saving any intermediant plots to disk 
% Define simulation parameters
dt = 0.01; % Time interval
T = 30; % Total simulation time
time = 0:dt:T; % Time vector

% Define initial conditions
N_cars = 10; % Number of cars
v0 = 120 / 3.6; % Desired speed in m/s
s0 = 2; % Minimum gap between cars in m
T = 1.5; % Safe time headway
a_max = 0.3; % Maximum acceleration in m/s^2
b_max = 2; % Comfortable braking deceleration in m/s^2
L = [4.5, 5, 4.5, 5, 4.5, 5, 4.5, 5, 4.5, 5]; % Car length vector
W = [2, 2.2, 2, 2.2, 2, 2.2, 2, 2.2, 2, 2.2]; % Car width vector
x = cumsum([0, 10*ones(1,N_cars-1)]); % Car positions
v = v0*ones(1,N_cars); % Car speeds
v_safe = v0*ones(1,N_cars); % Safe speeds
v_des = v0*ones(1,N_cars); % Desired speeds
v_alpha = v; % Actual speeds
v_max=240/3.6 ;
% Set colors for plotting
colors = hsv(N_cars);


% Define model parameters
tau_k = 0.5; % Safe time headway factor
eta = 0.5; % Maximum deceleration
% Run simulation
for i = 2:length(time)
% Calculate distance to lead car
dist = diff(x) - L(1:N_cars-1) - L(2:N_cars);

% Update speeds using Krauss model
for j = 1:N_cars
    % Calculate safe velocity based on distance and model equations
    if j == 1
        v_safe(j) = v(j) + (dist(j) - v(j)*T)/tau_k;
    else
        v_safe(j) = v(j) + (dist(j-1) - v(j)*T)/tau_k;
    end
    v_safe(j) = max(v_safe(j),0);
    
    % Calculate desired velocity based on safe velocity, maximum velocity, and maximum acceleration
    v_des(j) = min(min(v_max, v_alpha(j) + a_max*dt), v_safe(j));
    
    % Update velocity based on desired velocity and maximum deceleration
    if j ~= N_cars
        v(j+1) = max(0, min(v(j+1), v(j) + (v_des(j) - v(j))*dt*b_max/L(j)));
    end

% Update position based on actual velocity
x(j) = x(j) + v_alpha(j)*dt;
end

% Animate results
clf;
hold on;
for j = 1:N_cars
rectangle('Position',[x(j)-L(j)/2,(j-1)*2,L(j),2],'FaceColor',colors(j,:),'Curvature',j/N_cars);
end
xlim([0, max(x)+50]);
ylim([0, sum(W)]);
xlabel('Distance (m)');
ylabel('Lane width (m)');
title(sprintf('Time = %0.1f s', time(i)));
drawnow;
end
User: приве
Assistant: Привет!
User: import logging
import asyncio
import os
import sqlite3
from datetime import datetime, timedelta
from typing import Dict, List

from aiogram import Bot, Dispatcher, types
from aiogram.contrib.fsm_storage.memory import MemoryStorage
from aiogram.dispatcher import FSMContext
from aiogram.dispatcher.filters.state import State, StatesGroup

# Импортируем настройки из config.py
import config

# Импортируем клиенты API
from sparrow_api import SparrowAPI
from gpt4o_api import GPT4OAPI
from forgetapi import ForgetAPI
from image_api import ImageAPI

# Импортируем AudioProcessor из audio_processing.py
from audio_processing import AudioProcessor

# Импортируем функции из doc.py
from doc import process_file_content, send_long_message, build_context, SUPPORTED_EXTENSIONS

# Дополнительные импорты
import xlsxwriter

# Настройка логирования
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)


# Классы состояний для FSM
class Form(StatesGroup):
    ImageGenerationPrompt = State()
    ImageGenerationSize = State()
    # Состояния для Админ-Панели
    AdminPanel = State()
    SelectTariffForEdit = State()
    EditTariffNameOrDescription = State()
    EditTariffTokens = State()
    BroadcastMessageState = State()
    BroadcastSelectTariff = State()
    EditTariffName = State()
    EditTariffDescription = State()
    EditTariffTokenAmount = State()
    # Новые состояния для управления чатами
    ManageChats = State()
    AddChat = State()
    DeleteChat = State()
    # Состояния для генерации отчёта
    GenerateReport = State()


class EnhancedBot:
    MAX_MESSAGE_LENGTH = 4000  # Максимальная длина сообщения

    # Доступные модели и их API
    ALL_AVAILABLE_MODELS = [
        ("GPT-4o", "gpt-4o-2024-08-06", "gpt4o"),
        ("o1-preview", "o1-preview", "sparrow"),
        ("o1-mini", "o1-mini", "forget"),
        ("GPT 4 Turbo", "gpt-4-turbo", "sparrow"),
        ("GPT 3.5 turbo", "gpt-3.5-turbo", "sparrow"),
        # Добавьте другие модели по необходимости
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: "don't cover the judge by its book" bisaya
Assistant:
Describe a real-life scenario where you can apply the importance of Ionic and covalent bonding. Explain in 5 to 10 sentences what type of bonding is being demonstrated in that scenario.
I have a local version of nixpkgs repository. How to build a single package from there?
You are part of a team of bots that creates images . You work with an assistant bot that will draw anything
you say in square brackets . For example , outputting "a beautiful morning in the woods with the sun peaking
through the trees " will trigger your partner bot to output an image of a forest morning , as described .
You will be prompted by people looking to create detailed , amazing images . The way to accomplish this
is to take their short prompts and make them extremely detailed and descriptive .
There are a few rules to follow :
- You will only ever output a single image description per user request .
- Sometimes the user will request that you modify previous captions . In this case , you should refer to your
previous conversations with the user and make the modifications requested .
- When modifications are requested , you should not simply make the description longer . You should refactor
the entire description to integrate the suggestions .
- Other times the user will not want modifications , but instead want a new image . In this case , you should
ignore your previous conversation with the user .
- Image descriptions must be between 15 -80 words . Extra words will be ignored .
{" role ": " user ", " content ": " Create an imaginative image descriptive caption or modify an earlier
\
caption for the user input : "a man holding a sword \""} ,
{" role ": " assistant ", " content ": "a pale figure with long white hair stands in the center of a dark \
forest , holding a sword high above his head .
the blade glows with a blue light , casting a soft glow on the trees and bushes surrounding him ."} ,
{" role ": " user ", " content ": " Create an imaginative image descriptive caption or modify an earlier caption \
for the user input : " make the light red "},
{" role ": " assistant ", " content ": "a pale figure with long white hair stands in the center of a dark forest , \
holding a sword high above his head .
the blade glows with a red light , casting a warm glow on the trees and bushes surrounding him ."} ,
{" role ": " user ", " content ": " Create an imaginative image descriptive caption or modify an earlier caption for the \
user input : " draw a frog playing dominoes "},
{" role ": " assistant ", " content ": "a frog sits on a worn table playing a game of dominoes with an elderly raccoon .
the table is covered in a green cloth , and the frog is wearing a jacket and a pair of jeans . The scene is set in a forest ,
with a large tree in the background ."}




Create an imaginative image descriptive caption or modify an earlier caption for the user input : "a long opaque silicone baby bottle with veins and a slight angled neck, has a large nipple sucker at the top of the bottle that has the tip pushed in, causing it to form a large domed helmet shape, the nipple sucker has a slightly darker and redder beige coloring compared to the rest of the bottle"
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": "75100e26fd454c82994a618ba35f6db8",
    "updated": "2025-04-25T23:05:45.381Z",
    "title": "Chicken Corn Chowder",
    "subtitle": "A comforting soup perfect for a chilly autumn day. Serve with bread for a complete meal.",
    "description": "This chicken corn chowder is a delicious and budget-friendly option for a cool day.  I used leftover chicken from bone-in breasts I'd cooked earlier, making this soup particularly economical. However, using store-bought low-sodium broth works equally well and still yields a flavorful result.",
    "ingredients": [
      {
        "section": "For the recipe",
        "ingredients": [
          "potatoes, peeled and diced",
          "(260 g) carrots, sliced",
          "onion, chopped",
          "(940 ml) low sodium chicken broth",
          "(340 g) frozen corn",
          "(220 g) chicken, cooked and diced",
          "(235 ml) skim milk",
          "garlic powder",
          "black pepper",
          "(64 g) instant mashed potatoes"
        ]
      }
    ],
    "instructions": [
      "Combine the potatoes, carrots, and onion in the chicken broth and cook until tender.",
      "Add the frozen corn and diced chicken.",
      "Continue cooking for another 5 minutes.",
      "Incorporate the skim milk, garlic powder, black pepper, and instant mashed potatoes.",
      "Stir thoroughly until the instant mashed potatoes are fully dissolved.",
      "Heat through until warmed and serve."
    ],
    "notes_ingredients": "Store-bought low sodium broth can be substituted for homemade.",
    "notes_instructions": ""
  }
]
Write an episode of Hetalia about England taking out his brand new Reliant Robin. He rolls his car 3 times.
how to url encode string on c#
write a short passage of any topic
User: saran nickname game dari berawal zal
User: saran nickname game dari berawal zal
Assistant:
Preservation in the period 1945-1953 of the management systems that existed in the 1930s in the USSR
Generate a description with keywords and SEOs for Coffee Shop Ambiance | Social Media Stock Photo | Floral Cafe Interior | Professional Image for Posts. Include social medias on which this stock photographic can be applied to for social media at the end. Include details on dimensions: 1080x1080 and has 3 image variations. Include buyer has full rights to resale and commercial usage. Don't include HTML or '<br/>' for formatting only newline '
'
import requests

API_KEY = '<TRUFFLEHOG_REDACTED_BSCSCAN>'
TOKEN_CONTRACT = '0x0d4890ecEc59cd55D640d36f7acc6F7F512Fdb6e'

def get_transaction_list(api_key, contract_address, start_block=28269140, end_block=29812249, page=1, offset=150):
    url = f'https://api.bscscan.com/api?module=account&action=tokentx&contractaddress={contract_address}&startblock={start_block}&endblock={end_block}&page={page}&offset={offset}&apikey={api_key}'
    response = requests.get(url)
    if response.status_code == 200:
        result = response.json()
        return result['result']
    else:
        return None


def get_all_transaction_hashes(api_key, contract_address):
    all_hashes = []
    page = 1
    while True:
        transactions = get_transaction_list(api_key, contract_address, page=page)
        if transactions:
            hashes = [tx['hash'] for tx in transactions]
            all_hashes.extend(hashes)
            if len(transactions) < 100:
                break
            page += 1
        else:
            print('Error getting transactions')
            break

    return all_hashes

all_transaction_hashes = get_all_transaction_hashes(API_KEY, TOKEN_CONTRACT)

for txn_hash in all_transaction_hashes:
    print(txn_hash)

Modify the code above so that in addition to the data in the hash column, it also displays the following data:
Data in the Method column
Data in the Age column
Data in the From column
Data in column To
Rewrite:
A critical security issue has been disclosed in the Exim mail transfer agent that could enable threat actors to deliver malicious attachments to target users' inboxes.

The vulnerability, tracked as CVE-2024-39929, has a CVSS score of 9.1 out of 10.0. It has been addressed in version 4.98.

"Exim through 4.97.1 misparses a multiline RFC 2231 header filename, and thus remote attackers can bypass a $mime_filename extension-blocking protection mechanism, and potentially deliver executable attachments to the mailboxes of end users,"
ImportError: cannot import name 'model_urls' from 'torchvision.models.vgg'
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: report a problem, such as faulty behavior of the application. describe problems with the app which should be corrected, such as a crash, an erroneous behavior, or a performance issue.
feature request: ask for a missing feature, functionality or content, as well as reviews that ask for the improvement of an existing feature.
other: users express general appreciation with the application. It focuses on general judgment. They are simple text reflections of the numeric star rating. Ratings are less informative as they only include praise, dispraise, a distractive critique, or a dissuasion. Reviews where users describe workarounds, use cases and scenarios involving the app
examples:

review: really disappointed with your customer services team. Ive asked three times now for a letter to be sent to me to confirm that a fraudulent account has been closed down but still nothing. Ask to speak to managers but theyre always in a meeting. #fraud #CustomerExperience
intention: bug report
review: I don't need a dm. Why don't your stores carry what I need for my phone?
intention: feature request
review: hey Im completely fed up with my current CPP just wondering how much is a solo line go for with unlimited data text and calling?
intention: other
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: report a problem, such as faulty behavior of the application. describe problems with the app which should be corrected, such as a crash, an erroneous behavior, or a performance issue.
feature request: ask for a missing feature, functionality or content, as well as reviews that ask for the improvement of an existing feature.
other: users express general appreciation with the application. It focuses on general judgment. They are simple text reflections of the numeric star rating. Ratings are less informative as they only include praise, dispraise, a distractive critique, or a dissuasion. Reviews where users describe workarounds, use cases and scenarios involving the app
examples:

review: really disappointed with your customer services team. Ive asked three times now for a letter to be sent to me to confirm that a fraudulent account has been closed down but still nothing. Ask to speak to managers but theyre always in a meeting. #fraud #CustomerExperience
intention: bug report
review: I don't need a dm. Why don't your stores carry what I need for my phone?
intention: feature request
review: hey Im completely fed up with my current CPP just wondering how much is a solo line go for with unlimited data text and calling?
intention: other
Does the author's intention in this app review relate to a bug report or feature request or other?
review: I scheduled a repair appointment in an online chat earlier for tomorrow from 4pm top 8pm.  It is now listed as Friday between 830am and 930am.  This DOES NOT work for me and is not what I agreed to.'
intention: '
Assistant:
Goal
    Traduire toutes les valeurs textuelles présentes dans une liste d’objets d’une recette de cuisine de en (ISO 639) vers ar (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 ar.
    - 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 : ar (ISO 639)
    Données à traduire :

    [
  {
    "recipeCode": "8b8e12fcf6064e168d953c41913a8f73",
    "updated": "2025-05-11T06:28:57.207Z",
    "title": "Pineapple Chutney",
    "subtitle": "A delightful sweet, spicy, and savory chutney that pairs wonderfully with a variety of savory dishes and snacks.",
    "description": "A delightful sweet, spicy, and savory chutney that pairs wonderfully with a variety of savory dishes and snacks.",
    "ingredients": [
      {
        "section": "For the recipe",
        "ingredients": [
          "pineapple, peeled, cored and chopped into chunks",
          "garlic paste",
          "ginger paste",
          "chilli paste",
          "sugar",
          "ground cardamom",
          "cloves",
          "nigella seeds",
          "white vinegar",
          "big pinch of ground turmeric",
          "oil",
          "mustard seeds",
          "dried red chillies",
          "curry leaves",
          "salt"
        ]
      }
    ],
    "instructions": [
      "Place the pineapple chunks into a food processor and blend until smooth.",
      "Pour the purée into a medium saucepan. Add the garlic paste, ginger paste, chilli paste, sugar, ground cardamom, cloves, nigella seeds, vinegar, turmeric, and salt to taste.",
      "Bring the mixture to a boil, then reduce the heat and simmer for 30-40 minutes until it thickens and reduces.",
      "Remove from heat and transfer the chutney to a bowl.",
      "In a small frying pan, heat the oil over medium heat. Add the mustard seeds, dried chillies, and curry leaves, and sauté for 30-40 seconds until fragrant.",
      "Pour this tempering over the chutney. Allow to cool before storing in the refrigerator for up to 7-10 days."
    ],
    "notes_ingredients": "",
    "notes_instructions": ""
  }
]