conversations listlengths 2 2 |
|---|
[
{
"from": "human",
"value": "Your task is to implement a function that processes a GraphQL API request, retrieves XML data, and converts this XML data to JSON format while preserving the XML attributes. The XML data will be provided as a string, and the function should return the corresponding JSON object. ... |
[
{
"from": "human",
"value": "Design an interface-based system for managing transactions in a distributed online marketplace, ensuring unique transaction IDs and efficient database sharding. The detailed requirements are as follows: Implement a Python class-based interface for handling transactions in a dist... |
[
{
"from": "human",
"value": "Implement a function that extracts, processes, and ranks job applicants based on the key skills and experiences from their resumes, displaying the results in a FormLayout. The detailed requirements are as follows: Develop a Python function that processes the submitted resumes to... |
[
{
"from": "human",
"value": "Implement a check-in system that logs employee check-ins to a file and selects a random employee who has checked in for a special task. The detailed requirements are as follows: Create a Python function `check_in_employee(employee_id, log_file_path)` that logs the check-in time ... |
[
{
"from": "human",
"value": "Develop a function to reduce the dimensionality of a batch of images using Incremental PCA after applying an image transformation. The detailed requirements are as follows: Implement a Python function that performs Incremental PCA on a batch of images. The function should take a... |
[
{
"from": "human",
"value": "Create a class-based library management system in Python that uses type annotations checked by mypy to ensure type safety. The detailed requirements are as follows: Implement a Python class `Library` that manages a collection of books. Each book should be represented as an insta... |
[
{
"from": "human",
"value": "Implement a function in Python to optimize delivery routes by categorizing delivery points and computing the shortest paths using Dijkstra's algorithm. The detailed requirements are as follows: Develop a Python function that takes in a graph representation of the logistics netwo... |
[
{
"from": "human",
"value": "Develop a function that validates user-input dates and transmits the validated data to a server using an HTTP POST request. The detailed requirements are as follows: Create a Python function that takes user input for a reservation date, validates the date format to ensure it is ... |
[
{
"from": "human",
"value": "Process and format log entries from binary log files and map them to their respective server identifiers. The detailed requirements are as follows: Implement a Python function that reads a list of log files in binary mode, extracts timestamped log entries, formats these timestam... |
[
{
"from": "human",
"value": "Build a web application that reads coding problems from JSON files, cleans the data, and incorporates smooth page transitions between different problems. The detailed requirements are as follows: Develop a Python script that reads coding problem data from JSON files, cleans the ... |
[
{
"from": "human",
"value": "Create a function that recognizes and processes voice commands for a smart home system, executing the corresponding actions and providing console feedback. The detailed requirements are as follows: Develop a function in Python that uses speech-to-text to recognize voice commands... |
[
{
"from": "human",
"value": "Develop a function that deduplicates customer records using fuzzy matching, supports batch processing for efficiency, includes an undo feature via a keyboard shortcut, and logs performance metrics. The detailed requirements are as follows: Implement a Python function `deduplicat... |
[
{
"from": "human",
"value": "Develop a function to process and store user feedback and compute its ASCII sum for further processing. The detailed requirements are as follows: Create a Python function that receives a feedback string as input. The function should first validate the input to ensure it is a non... |
[
{
"from": "human",
"value": "Build a Python service that processes real-time stock market data, maintains an LRU cache of the latest stock prices, and publishes updates to RabbitMQ. The detailed requirements are as follows: You need to develop a Python service for a financial trading platform that processes... |
[
{
"from": "human",
"value": "Develop a search functionality for a library application that uses an RNN with Dropout to suggest book titles based on user input, and logs click events for analytics. The detailed requirements are as follows: Implement a function in Python that initializes and configures an RNN... |
[
{
"from": "human",
"value": "Implement a Python function to convert delivery timestamps and calculate the shortest delivery route using Dijkstra's algorithm. The detailed requirements are as follows: You are tasked with developing a Python function that processes a list of delivery points, each associated w... |
[
{
"from": "human",
"value": "Write a Python function to process a file of book rental transactions, validate the data using regular expressions, and compute the rental duration for each transaction. The detailed requirements are as follows: Create a Python function that reads a data file containing book ren... |
[
{
"from": "human",
"value": "Develop a function to parse JSON data from IoT sensors, compute the median temperature, and log the results to a file while handling any malformed JSON data. The detailed requirements are as follows: Implement a function in Python that takes a list of JSON strings, each represen... |
[
{
"from": "human",
"value": "### Problem Description:\nYou are given a list of integers `nums` and an integer `target`. Your task is to implement a function that finds all unique pairs of numbers in `nums` that add up to `target`. Each pair should be sorted in ascending order and the list of pairs should be... |
[
{
"from": "human",
"value": "You are tasked with implementing a function that finds the intersection of two sets of floating-point numbers and returns the product of the intersection elements. The function should be part of a class that inherits from an abstract base class. The abstract base class should de... |
[
{
"from": "human",
"value": "Create a Python function to calculate the number of weeks between two dates, validate the input dates, and fetch relevant travel information from an API based on the trip duration. The detailed requirements are as follows: Write a Python function that takes two dates as input an... |
[
{
"from": "human",
"value": "Implement a secure login system using OAuth and display personalized book recommendations, and ensure the functionalities are thoroughly tested. The detailed requirements are as follows: Create a Python function that integrates OAuth authentication allowing users to log in with ... |
[
{
"from": "human",
"value": "Develop a function in Python that processes voice commands to manage workout data, including adding new entries and querying progress, while displaying the results in a tabular format. The detailed requirements are as follows: Create a Python function that processes voice comman... |
[
{
"from": "human",
"value": "Create a function to validate user search input, filter and display product search results in a filterable grid, and maintain a sorted product list with real-time updates. The detailed requirements are as follows: Develop a Python function that takes a list of product names and ... |
[
{
"from": "human",
"value": "Implement a function in Python that filters sales figures below a given threshold and calculates the median of the remaining figures. The detailed requirements are as follows: Given a dataset containing the monthly sales figures of employees, write a Python function that filters... |
[
{
"from": "human",
"value": "Write a Python function to analyze delivery data from a CSV file and generate a summary report with the count of deliveries, successful deliveries, and average delivery time per region. The detailed requirements are as follows: Create a Python function that reads a CSV file cont... |
[
{
"from": "human",
"value": "Develop a function that sanitizes user input, generates secure random digits, and uses strategic cognition to make a chess move. The detailed requirements are as follows: Implement a Python function `secure_chess_move(board_state, user_input)` that performs the following tasks: ... |
[
{
"from": "human",
"value": "Develop a function to analyze user comments on videos by computing sentiment scores and their standard errors. The detailed requirements are as follows: Create a Python function that processes user comments for a given set of videos. The function should take as input a dictionar... |
[
{
"from": "human",
"value": "Develop a Python function that reads an encrypted file, decrypts it using AES with inverse shiftRows, validates the decrypted data, and writes the validated data to a new file, ensuring proper file handling throughout. The detailed requirements are as follows: Create a function ... |
[
{
"from": "human",
"value": "Write a Python function to convert transaction timestamps from various time zones to UTC and store the transactions in a PostgreSQL database. The detailed requirements are as follows: You are tasked with writing a Python function that processes a list of transaction records, con... |
[
{
"from": "human",
"value": "### Problem Description:\nYou are given a list of integers representing a sequence of operations. Each element in the list is either an integer (representing a value to be pushed onto a stack) or a string \"pop\" (representing the operation to pop the top value from the stack). ... |
[
{
"from": "human",
"value": "Implement a financial application in Python that retrieves and caches stock price data, then calculates the sample median of the stock prices for a specified period. The detailed requirements are as follows: Develop a Python program for a financial application that retrieves sto... |
[
{
"from": "human",
"value": "Create a Python function to generate a CSR file and perform a competitive analysis of SSL certificate expiry dates from a list of competitor URLs. The detailed requirements are as follows: Develop a Python function that automates the generation of a certificate signing request (... |
[
{
"from": "human",
"value": "Implement a function to process and validate financial transactions from JSON data, ensuring synchronization and proper handling of insolvency conditions. The detailed requirements are as follows: Develop a Python function that processes a list of transaction records in JSON for... |
[
{
"from": "human",
"value": "Develop a Python function that generates a synthetic dataset of user-item interactions using random sampling, ensuring the dataset is suitable for use with a genetic algorithm for optimizing recommendations. The detailed requirements are as follows: Your task is to implement a P... |
[
{
"from": "human",
"value": "Create a function to predict future temperature trends from historical data using pspline, log the prediction time in a specific timezone, and save the results to a MemoryStream. The detailed requirements are as follows: Develop a function that takes historical weather data (tem... |
[
{
"from": "human",
"value": "Implement a function that reshapes an image into a tensor and encrypts it using Shor's algorithm. The detailed requirements are as follows: You are tasked with implementing a function in Python that takes an image file as input, reshapes the image into a tensor of a specified sh... |
[
{
"from": "human",
"value": "Develop a Python API endpoint that validates health metrics data types, checks their values, and calculates the sample variance for these metrics over a specified period. The detailed requirements are as follows: Create a Python API endpoint that processes GET requests to retrie... |
[
{
"from": "human",
"value": "Develop a function to manage and prioritize customer service requests using a queue data structure, based on urgency and arrival time. The detailed requirements are as follows: Create a Python function named `manage_customer_support_queue` that processes customer service request... |
[
{
"from": "human",
"value": "Create a function to generate an optimal itinerary for visiting tourist attractions using the requests library, time zone conversion, and the BFS algorithm. The detailed requirements are as follows: Develop a function that fetches the opening and closing times of tourist attract... |
[
{
"from": "human",
"value": "**Problem Statement:**\n\nYou are given a square matrix `A` of size `n x n` containing integer values. Your task is to implement a function that performs a series of transformations on this matrix and then returns the final matrix. The transformations include rotating the matrix... |
[
{
"from": "human",
"value": "Create a function to handle student course registration with password validation and duplicate course checks. The detailed requirements are as follows: Implement a Python function `register_student` that takes a student's ID, a list of courses the student wishes to register for,... |
[
{
"from": "human",
"value": "Implement a function to authenticate a user with Firebase Auth and calculate the average daily exercise duration based on their logged exercise data. The detailed requirements are as follows: Create a Python function that first authenticates a user using Firebase Auth. Once auth... |
[
{
"from": "human",
"value": "Create a Python function that reactively calculates and outputs the potential profit margins for tracked stocks based on real-time price updates. The detailed requirements are as follows: Implement a reactive function in Python that monitors real-time stock price updates for a l... |
[
{
"from": "human",
"value": "Optimize delivery routes using Dijkstra's algorithm and calculate the median delivery time for each route. The detailed requirements are as follows: As a software developer, your task is to create a Python program that:\n1. Uses Dijkstra's algorithm to find the shortest path bet... |
[
{
"from": "human",
"value": "Create a Python function that reads an XML file, determines the relative primality of number pairs, and updates the XML file with the results. The detailed requirements are as follows: Implement a function that reads an XML file containing multiple pairs of integers, determines ... |
[
{
"from": "human",
"value": "Create a Python application to classify patient health status using Non-linear SVM based on data received via HTTP and display the results in a formatted report with a health metrics chart. The detailed requirements are as follows: Develop a Python application that receives pati... |
[
{
"from": "human",
"value": "Write a Python function to compress a VCF file using gzip and securely upload it to a remote server using SSL/TLS. The detailed requirements are as follows: Develop a Python function that compresses a given VCF file using gzip compression and then securely uploads the compressed... |
[
{
"from": "human",
"value": "Develop a Python function to perform a case-insensitive, trimmed search for book titles within a list, using a linear search algorithm. The detailed requirements are as follows: Implement a Python function named `search_books` that takes two arguments: a list of book titles and ... |
[
{
"from": "human",
"value": "Implement a function that processes sales records from AWS S3 to calculate total sales and update the inventory quantities accordingly. The detailed requirements are as follows: Write a Python function that deserializes JSON data from an AWS S3 bucket containing sales records. E... |
[
{
"from": "human",
"value": "Create a Django application that handles user-submitted product reviews and displays aggregated reviews on product pages by integrating MongoDB for data storage. The detailed requirements are as follows: Develop a Django application that allows users to submit product reviews th... |
[
{
"from": "human",
"value": "Create a function to visualize sales data for multiple products using Plotly, incorporating error handling for any missing or malformed data entries. The detailed requirements are as follows: Implement a Python function that takes a dictionary of sales data and generates a line ... |
[
{
"from": "human",
"value": "Develop a web application in Python for managing user profiles and handling CSV workout data uploads with missing values. The detailed requirements are as follows: Create a Python-based web application that allows fitness club members to manage their profiles and upload their wo... |
[
{
"from": "human",
"value": "Develop a Python function to securely transfer and verify product data using encoding, FTP, and checksum verification. The detailed requirements are as follows: Create a Python function that takes product data as input, encodes the data using a specified encoding method, uploads... |
[
{
"from": "human",
"value": "Create a Python function to consolidate, validate, and export datasets, ensuring referential integrity and performing necessary post-processing. The detailed requirements are as follows: You are tasked with creating a Python function that takes in multiple datasets, performs a r... |
[
{
"from": "human",
"value": "Implement a Python function that interacts with UnityEngine.EventSystems to manage and export resource bundles within a game environment. The detailed requirements are as follows: Develop a Python function that interacts with Unity's EventSystem to manage resource bundles. The f... |
[
{
"from": "human",
"value": "Build a Python application to enhance user interaction and optimize promotional offers for an e-commerce platform using specified features. The detailed requirements are as follows: Develop a Python application for an e-commerce website that achieves the following: \n1. Implemen... |
[
{
"from": "human",
"value": "Create a function to fetch and process customer feedback from social media, ensuring the tweets are relevant, phone numbers are validated, and the data is transformed into a JSON format for analysis. The detailed requirements are as follows: Write a Python function that fetches ... |
[
{
"from": "human",
"value": "Write a Python function to generate secure random passwords, handling interruptions and ensuring the inclusion of various character types. The detailed requirements are as follows: Develop a function in Python that generates secure random passwords. The function should take an i... |
[
{
"from": "human",
"value": "Create a Flask web application that displays a sorted list of products with their discounted prices using shell sort. The detailed requirements are as follows: Implement a Flask application that renders a webpage displaying a list of products with their original and discounted p... |
[
{
"from": "human",
"value": "Build an adjacency list from a list of user connections and display the direct and second-degree friends for a given user. The detailed requirements are as follows: Create a function in Python that takes a list of user connections as input and builds an adjacency list to represe... |
[
{
"from": "human",
"value": "Write a Python function that parses a nested YAML file containing financial metrics and normalizes the metrics using min-max scaling. The detailed requirements are as follows: Implement a function in Python that takes the path to a YAML file as input, parses the file to extract ... |
[
{
"from": "human",
"value": "Write a Python function to convert and record meeting schedules across different time zones in a CSV file. The detailed requirements are as follows: Develop a Python function that takes a list of meeting schedules (each schedule includes the meeting's original time, time zone, a... |
[
{
"from": "human",
"value": "Develop a Python function to concurrently retrieve and parse XML tracking data from multiple RESTful APIs, merging the results into a unified format. The detailed requirements are as follows: Create a Python function that retrieves XML data from multiple RESTful APIs, parses the... |
[
{
"from": "human",
"value": "Develop a Python function that reads a JSON file, sorts the data within it using an optimized bubble sort, and then encrypts the sorted data before saving it to a new file. The detailed requirements are as follows: You are tasked with developing a Python function that automates ... |
[
{
"from": "human",
"value": "Develop a Python script to read and validate a large CSV file using parallel processing to optimize performance. The detailed requirements are as follows: You are tasked with developing a Python script that reads a large CSV file containing customer data using the `pandas` libra... |
[
{
"from": "human",
"value": "Retrieve, filter, and upload shipment data to Azure Blob Storage efficiently using multi-threaded operations. The detailed requirements are as follows: Implement a Python function that retrieves shipment data from a RESTful API using GET requests, filters the data based on a spe... |
[
{
"from": "human",
"value": "Analyze and process a log file to extract the top 5 most viewed products and delete old log entries. The detailed requirements are as follows: Implement a Python function that reads a log file containing user activities, processes the data to extract the top 5 most viewed produc... |
[
{
"from": "human",
"value": "Write a function to identify and return the most frequently occurring patient ID from a given string of concatenated patient records. The detailed requirements are as follows: Implement a Python function that takes a single string as input, representing concatenated patient reco... |
[
{
"from": "human",
"value": "Develop a Python application to receive real-time sensor data, convert it into appropriate formats, and use linear regression for predictive analytics on the data. The detailed requirements are as follows: Develop a Python application that receives real-time sensor data from wea... |
[
{
"from": "human",
"value": "Implement a Python function that validates and reverses a given URL string, returning the reversed string or an error message if the URL is invalid. The detailed requirements are as follows: Develop a Python function that takes a URL as input, validates whether the URL is in a p... |
[
{
"from": "human",
"value": "Create a function to categorize survey ratings into 'low', 'medium', and 'high' satisfaction levels based on dynamic thresholds. The detailed requirements are as follows: Write a Python function that takes a list of survey responses (ratings) and two threshold values as input. T... |
[
{
"from": "human",
"value": "Develop a Python function that validates user input, manages route information for hiking trails, and ensures offline support for route navigation. The detailed requirements are as follows: Create a function in Python that manages the route information for a hiking trail applica... |
[
{
"from": "human",
"value": "Create a Python application that processes and classifies fitness data in real-time, updates the UI with animations, and publishes the results to a database and remote server. The detailed requirements are as follows: Develop a Python application for a fitness tracking system th... |
[
{
"from": "human",
"value": "Write a function to process comments and update user reputation scores based on comment approval status. The detailed requirements are as follows: Implement a Python function called `process_comment` that takes a user object and a comment object as inputs. The comment object inc... |
[
{
"from": "human",
"value": "Develop a function that retrieves customer purchase history, generates product recommendations using a decision tree algorithm, and publishes the recommendations to an AWS SQS queue. The detailed requirements are as follows: Implement a Python function that retrieves customer pu... |
[
{
"from": "human",
"value": "Write a Python function that reads a large dataset from a file, performs floating-point addition on the dataset, and deletes any temporary files created during the process to manage RAM usage efficiently. The detailed requirements are as follows: Implement a Python function that... |
[
{
"from": "human",
"value": "You are required to implement a function that processes a list of email addresses and validates their format using regular expressions. The function should also handle potential errors gracefully by raising exceptions when invalid inputs are encountered.\n\n### Problem Statement... |
[
{
"from": "human",
"value": "Create a Python function that converts a list of transactions in various currencies to USD and computes the sum of prime divisors for each transaction amount in its original currency. The detailed requirements are as follows: You are tasked with creating a function in Python tha... |
[
{
"from": "human",
"value": "Create a function to sort a list of stock prices and analyze its time complexity, handling errors for invalid inputs. The detailed requirements are as follows: Design a function named `analyze_portfolio` in Python that takes a list of stock prices as input. The function should s... |
[
{
"from": "human",
"value": "Develop a Python function to read, validate, and compress JSON data from a file. The detailed requirements are as follows: Write a Python function that reads a JSON file, validates its structure, and then compresses the valid data using gzip compression. The function should take... |
[
{
"from": "human",
"value": "Develop a function to analyze and report the mean squared error and standard deviation of daily expenses over a selected period. The detailed requirements are as follows: Implement a function in Python that takes a list of daily expenses and their corresponding dates (selected u... |
[
{
"from": "human",
"value": "Secure customer data using encryption algorithms while optimizing for CPU performance and analyze the statistical distribution of the encrypted data to identify potential vulnerabilities. The detailed requirements are as follows: Develop a Python function that encrypts customer ... |
[
{
"from": "human",
"value": "Implement a Python function that reads a series of floating-point numbers from user input, calculates their sum, and provides error messages for invalid inputs or overflow errors. The detailed requirements are as follows: Create a Python function called `calculate_profit_loss` t... |
[
{
"from": "human",
"value": "Create a function to generate a frequency report of borrowed books, maintaining the order of first appearance for books with the same frequency. The detailed requirements are as follows: Write a function in Python that takes a list of book IDs representing the borrowing history ... |
[
{
"from": "human",
"value": "Develop a function in Python that counts characters in a string and updates dynamically for real-time performance. The detailed requirements are as follows: Implement a Python function that takes a string of text as input and returns a dictionary where the keys are characters an... |
[
{
"from": "human",
"value": "Create a Python program that stores real-time patient data in an in-memory database and uses a binary logistic regression model to predict and alert high-risk health events. The detailed requirements are as follows: Develop a Python program that integrates an in-memory database ... |
[
{
"from": "human",
"value": "Develop an event-driven function in Python that periodically checks the health of web services and alerts the team if any service is down. The detailed requirements are as follows: Create a Python function that monitors the health of a list of web services. This function should ... |
[
{
"from": "human",
"value": "Validate and process a JSON resume input to ensure it contains all required fields and convert it into a structured format for analysis. The detailed requirements are as follows: Write a Python function that takes a JSON string representing a user's resume as input. The function... |
[
{
"from": "human",
"value": "Develop a function to preprocess image data by transposing it along the secondary diagonal, extracting features, and merging them with metadata. The detailed requirements are as follows: Write a Python function that takes as input a list of image matrices and a dictionary of met... |
[
{
"from": "human",
"value": "Write a Python function that reads a CSV file, skips a specified number of rows, extracts a matrix, and performs matrix-vector multiplication with a provided vector. The detailed requirements are as follows: Create a Python function that reads a CSV file, skipping the first N ro... |
[
{
"from": "human",
"value": "Implement a function to securely encrypt a document, hash it for integrity, and encode it for safe web transmission, while managing the secret keys securely. The detailed requirements are as follows: Develop a Python function that takes a document as input, encrypts it using a p... |
[
{
"from": "human",
"value": "Create a Python function that generates and visualizes random polynomial equations to model and predict stock price trends. The detailed requirements are as follows: Design a function in Python that generates a set of random polynomial equations to model stock price trends. The ... |
[
{
"from": "human",
"value": "Develop a function that validates user input types and recommends an investment strategy based on the validated inputs. The detailed requirements are as follows: Implement a function `recommend_investment_strategy(user_data)` that takes a dictionary `user_data` as input. The dic... |
[
{
"from": "human",
"value": "Sort the given list of courses and their prerequisites using Depth-First Search based topological sort and transform the sorted course data into a specific dictionary format. The detailed requirements are as follows: Implement a function in Python that takes a list of courses an... |
[
{
"from": "human",
"value": "Implement a function to compare two CSS selectors in an HTML string and return elements that match one selector but not the other. The detailed requirements are as follows: Create a Python function that takes three inputs: two CSS selectors and a string containing HTML content. ... |
[
{
"from": "human",
"value": "Implement a function that parses, validates, and stores customer feedback in a database and provides a search feature to identify the most common complaints. The detailed requirements are as follows: Write a Python function that takes a list of raw customer feedback entries from... |
[
{
"from": "human",
"value": "Develop a function to filter out spam reviews and categorize the remaining customer reviews as positive, negative, or neutral. The detailed requirements are as follows: Implement a Python function that takes a list of customer reviews as input, applies conditional filtering to r... |
[
{
"from": "human",
"value": "Develop an efficient Python function to iteratively reverse the order of words in a given sentence. The detailed requirements are as follows: Create a Python function that takes a string representing a sentence as input, reverses the order of words iteratively, and returns the n... |
[
{
"from": "human",
"value": "Implement a function to solve the N-Queens Problem for a given N and write all solutions to a binary file. The detailed requirements are as follows: Create a Python function that solves the N-Queens Problem using backtracking for a given value of N. The function should generate ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.