messages listlengths 3 3 |
|---|
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Implement an advanced asynchronous rate limiter in Python using asyncio. Create a class AsyncTokenBucket that enforces throttl... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Given a 2D NumPy array representing daily sensor readings with shape (days, sensors), write a function that normalizes each se... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Write a function `earliest_arrival(n, flights, start, target, start_time)` that uses a priority queue to compute the earliest ... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Write a function using NumPy that takes a 2D float array representing daily returns of multiple assets (rows = days, columns =... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Implement a Python module for validating and processing payment requests using a custom exception hierarchy. Create a base exc... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Create a Python program that simulates a batch processing pipeline for log files. The program should take a list of log record... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Write a Python program that analyzes a block of text and reports basic NLP statistics. Given a multiline string, normalize it ... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Write a Python function `extract_log_entries(text: str) -> list[dict]` that uses regular expressions to parse application log ... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Write a Python function that parses a protocol buffer message from binary data using a provided message class, converts it int... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Create a Python class named Product that demonstrates both property and descriptor patterns. Implement a custom descriptor Pos... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Implement an LRUCache class in Python with a fixed capacity. The class should support get(key) and put(key, value) operations ... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Write a Python program that starts a simple TCP server on localhost at port 5000. The server should wait for one client connec... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Implement an event bus that combines Observer and Publish/Subscribe patterns. Create an EventBus class that lets subscribers r... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Design an object-oriented Python program to manage a small library. Create a Book class with title, author, and borrowed statu... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Write a Python program that demonstrates decorators and closures by creating a decorator factory called repeat_message(times).... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Create a simple command pattern program for a text editor. Implement a TextDocument class that stores text, a Command base cla... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Write a Python program that reads a UTF-8 text log file named \"app.log\", extracts lines in the format \"YYYY-MM-DD HH:MM:SS ... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Write a function `count_friend_groups(n, friendships)` that uses a disjoint set (union-find) data structure to count how many ... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Write a Python function `verify_manifest(base_dir, manifest)` that validates file integrity for a deployment package. `manifes... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Write a Python script that performs an advanced data migration from a legacy SQLite database to a new SQLite database. The leg... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Create a Python script that uses SQLite to manage a small book database. The script should create a database file named books.... |
[
{
"role": "system",
"content": "You are an expert Python programming assistant. You write clear, correct, well-documented code that follows the user's instructions."
},
{
"role": "user",
"content": "Can you create a function in Python that uses Pandas to analyze CI/CD pipeline execution logs for... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Write a Python function called throttle_requests(request_times, limit, window_seconds) that simulates a simple rate limiter. T... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Write a Python program that simulates a batch processing pipeline for CSV files in a directory. The program should scan an inp... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Write a Python function `min_path_sum(grid)` that takes a non-empty 2D list of non-negative integers and returns the minimum p... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Write a Python program that performs an ETL pipeline on a list of JSON-like order records. Each record may contain nested cust... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Write a Python program that asks the user to enter two numbers and then choose a math operation: addition, subtraction, multip... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Write a Python program that uses sqlite3 to create an in-memory SQLite database with two tables: customers(id INTEGER PRIMARY ... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Implement a minimal advanced HTTP router in Python that mimics web framework routing patterns. Create a Router class that can ... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Write a Python program that uses a simple genetic algorithm to maximize the function f(x) = x^2 for integers x in the range 0 ... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Implement a traffic light state machine in Python. Create a TrafficLight class that starts in the 'RED' state and supports the... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Write a Python program that manages a task queue using a min-heap. The program should read an integer n, then process n comman... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Write a Python program that processes a list of student exam records using list comprehensions and common list operations. Eac... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Write a Python function `find_corrupted_blocks(blocks)` that receives a list of tuples `(block_id, data, expected_sha256)`, wh... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Write an async Python program that simulates downloading data from three different websites. Create an async function fetch_da... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Write a Python function called allow_request(user_id) that implements a simple fixed-window rate limiter. Each user is allowed... |
[
{
"role": "system",
"content": "You are an expert Python programming assistant. You write clear, correct, well-documented code that follows the user's instructions."
},
{
"role": "user",
"content": "Can you create a function in Python for a Flask-based Electronic Health Records (EHR) system that... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Write a Python function called merge_k_sorted_lists(lists) that takes a list of sorted integer lists and returns one fully sor... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Write a Python program that simulates a simple batch processing pipeline for customer orders. Given a list of order dictionari... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Implement a BloomFilter class in Python for fast probabilistic membership checks. The class should support initialization with... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Write a Python script that uses requests and BeautifulSoup to fetch the Hacker News front page at https://news.ycombinator.com... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Create a Python module that models a small event scheduling system using dataclasses and type hints. Define an immutable Event... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Create a Python class called Trie that supports basic prefix tree operations for lowercase English words. Implement the method... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Implement an advanced middleware-based processing pipeline for request dictionaries. Create a Pipeline class that allows regis... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Create an asynchronous log processor that consumes messages from an asyncio.Queue, where one producer coroutine adds 20 fake l... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Implement an advanced finite state machine in Python for parsing a simple network protocol stream. Write a class StreamParser ... |
[
{
"role": "system",
"content": "You are an expert Python programming assistant. You write clear, correct, well-documented code that follows the user's instructions."
},
{
"role": "user",
"content": "Create a class that manages Electronic Health Record (EHR) patient visit data for a healthcare cl... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Given a pandas DataFrame named df with columns 'order_id', 'customer', 'region', 'order_date', and 'sales', write code to clea... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Write a Python script that migrates customer records from an old data format to a new one. The old data is a list of dictionar... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Write a Python program that computes the sum of prime numbers in a large integer range using multiprocessing for CPU-bound wor... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Write a Python program that monitors a log file in near real time and reports basic health metrics. Implement a function that ... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Write a Python program that implements both a Stack and a Queue using Python lists. The Stack should support push, pop, and di... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Implement a small event system for a chat application using observer and pub/sub patterns. Create an EventBus class that lets ... |
[
{
"role": "system",
"content": "You are an expert Python programming assistant. You write clear, correct, well-documented code that follows the user's instructions."
},
{
"role": "user",
"content": "Write a function that takes a list of stock prices for a single trading day and returns a diction... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Write a Python program that uses itertools recipes to analyze website page visits. Given a list of page names in the order the... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Create a Python program that demonstrates generators and iterators by defining a custom iterator class called NumberRange that... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Write a Python function that parses a custom binary packet format from a bytes object. Each packet contains: 2 bytes magic hea... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Write a Python program that demonstrates memoization by computing Fibonacci numbers efficiently. Create a function `fibonacci(... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Write an asynchronous Python program that simulates fetching data from three web services. Create an async function fetch_data... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Implement a function `top_k_frequent_sorted(nums, k)` that returns the `k` most frequent integers from a list. Use a two-phase... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Given a pandas DataFrame `orders` with columns `order_id`, `customer`, `category`, `amount`, and `order_date`, write code to: ... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Write a Python program that analyzes a list of website visit records using the collections module. Each record is a tuple of (... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Create a Python script that uses sqlite3 to manage a small inventory database. The script should create an in-memory SQLite da... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Implement a class BrowserHistory that simulates browser navigation using two stacks. The class should support: visit(url) to o... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Write a Python program that demonstrates decorators and closures by creating a function called make_logger(prefix). This funct... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Create a simple event-driven program that simulates a door sensor system. Define an EventDispatcher class that lets functions ... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Implement a function `latest_step_with_group_size(arr, m)` that processes land activations in a 1-indexed binary string of len... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Write a Python program that reads a UTF-8 text log file named \"app.log\" and writes a summary report to \"report.txt\". Each ... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Write a Python function `analyze_orders(orders)` that processes a list of order records for a small online shop. Each order is... |
[
{
"role": "system",
"content": "You are an expert Python programming assistant. You write clear, correct, well-documented code that follows the user's instructions."
},
{
"role": "user",
"content": "Create a class that ingests patient symptom, lab result, and vital sign data from CSV files using... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Implement a small schema-based data validator for configuration dictionaries. Write a function validate(data, schema) that val... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Write a Python program that merges multiple large sorted text files containing one integer per line into a single output file ... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Create a small Python webhook handler using Flask. Add a POST endpoint at /webhook that accepts JSON data. If the JSON contain... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Create a Python program that uses dataclasses and type hints to model a small bookstore inventory. Define a Book dataclass wit... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Create a Python program that defines a Pydantic model for validating incoming user registration data. Each registration record... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Create a Python CLI tool using argparse that accepts one or more text file paths and prints the top N most frequent words acro... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Write a Python program that processes a list of student exam records using list comprehensions and list operations. Each recor... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Create a Python program that uses pydantic to validate incoming event payloads for a ticket booking system. Each payload must ... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Write a Python program that analyzes a list of customer order records using list comprehensions and basic list operations. Eac... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Write a Python program that asks the user to enter a date and time in the format YYYY-MM-DD HH:MM. The program should calculat... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Create a Python program that uses Pydantic to validate incoming user registration data. Define a schema with the fields userna... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Implement a BinarySearchTree class that supports advanced BST operations. The class must provide: insert(key) to add unique in... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Implement an advanced context manager class named `TransactionLogger` that manages a temporary log file for a transactional op... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Create a pandas DataFrame from a dictionary of student test scores with the columns 'name', 'math', and 'science'. Add a new c... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Write a Python program that finds the shortest path in an unweighted graph using Breadth-First Search (BFS). The graph is give... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Write a Python function `throttle_requests(events, limit, window_seconds)` that simulates a sliding-window rate limiter. The i... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Implement a thread-safe in-memory rate limiter for an API gateway using the token bucket algorithm. Create a class TokenBucket... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Write a Python program that analyzes a portfolio of asset returns using advanced statistics. Given a list of equal-length retu... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Write a function summarize_sensor_stream(events, batch_size) that processes an iterable of sensor event dictionaries using ite... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Create a Pydantic-based configuration schema for a data pipeline job. Define nested models for a job config with fields: job_n... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Implement a thread-safe in-memory LRU cache with per-entry TTL (time-to-live). Create a class `TTLCache` with methods `get(key... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Write a Python function `find_duplicate_files(root_dir)` that recursively scans a directory and returns a list of groups of du... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Write a Python program that monitors a log file in real time and counts how many lines contain the log levels INFO, WARNING, a... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Create a simple event-driven program using tkinter. Build a window with a label that shows a counter starting at 0 and a butto... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Write a function for a singly linked list that removes all duplicate values from an unsorted list while keeping only the first... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Write a Python program that performs a one-sample t-test to determine whether the average weight of 10 packaged snack bags dif... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Write a Python script that recursively scans a given root directory and finds all duplicate files based on file content. The s... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Create a pandas DataFrame from a dictionary of student exam scores with the columns 'name', 'math', and 'science'. Add a new c... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Implement a Python function that uses a Monte Carlo simulation with antithetic variates to estimate the price of a European ca... |
[
{
"role": "system",
"content": "You are a helpful assistant that writes clean, well-structured Python code to solve the user's request."
},
{
"role": "user",
"content": "Write a Python function decorator called retry(max_attempts) that uses a closure to remember the configured number of attempts... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.