id int64 0 5k | task_category stringclasses 1
value | messages listlengths 3 3 |
|---|---|---|
2,161 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with implementing a simple process management system in Rust. The system involves a `ProcessManager` struct that contains ... |
1,484 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with implementing a function that processes a list of results and returns the count of successful outcomes. Each result is... |
1,435 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are given a code snippet that calculates the sum of a Gaussian function over a 2D grid. The code uses a nested loop to iterate over t... |
4,080 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with creating a function that takes a list of JSON objects and converts them into a single string in a specific format. Th... |
257 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with creating a Rust library that interfaces with C code. Your task is to implement a function in Rust that takes a floati... |
13 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with implementing a Rust struct called `SrvDomain` that represents a service domain for a specific protocol and transport.... |
2,763 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with implementing a function to parse and process a given JSON string into a specific data structure. The data structure i... |
1,409 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with implementing a function to parse and validate a BGP (Border Gateway Protocol) message containing information about an... |
3,814 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with implementing a function that checks constraints on a given input. The input is an instance of a custom type `Any`, wh... |
1,374 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with implementing a simple text-based game using the Rust programming language. The game involves a player navigating thro... |
1,883 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with implementing a custom enum and associated functionality in Rust to represent the state of a virtual machine (VM). The... |
2,759 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are given a Rust code snippet that defines a struct using the `derive` attribute. Your task is to complete the implementation of the ... |
1,542 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with implementing a simple type system for a programming language. The type system should support defining and storing the... |
3,941 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with implementing a custom range type in Rust that represents a range of transaction generation numbers (TxgT). The range ... |
3,387 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with creating a Rust function that processes HTTP headers and JSON-RPC data. Your function should take in a JSON-RPC reque... |
762 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with implementing a function that processes page table entries in a virtual memory system. The function is responsible for... |
3,298 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with implementing a smart contract function for a decentralized naming service. The smart contract allows users to registe... |
4,806 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with implementing a custom range function in Rust that generates a range of numbers with a specified start, end, and offse... |
4,891 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with implementing a function to calculate the curvature of a curve at two distinct points. The curvature of a curve at a p... |
638 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with implementing a function that manipulates a tree data structure. The tree is represented using a custom library, and t... |
4,962 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with implementing a function to calculate the sum of all even Fibonacci numbers up to a given limit. The Fibonacci sequenc... |
618 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with implementing a performance benchmark for a Bose-Einstein distribution calculation. The Bose-Einstein distribution is ... |
2,232 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with implementing a simple shell program in Rust that supports executing commands, piping output between commands, and han... |
1,434 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with implementing a simple enum-to-string conversion function in Rust. The given code snippet is a part of a larger progra... |
761 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with implementing the conversion from a custom `Value` type to a `Type` type in Rust. The `Value` type is an alias for `Se... |
2,079 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with implementing a custom attribute macro in Rust to fix a hidden lifetime bug in the given code snippet. The code snippe... |
4,686 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with implementing a simple object key management system in Rust. An `ObjectKey` struct is provided, which represents a key... |
461 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with implementing a macro in Rust that checks if a given type is a variant of a specific enum or enum-like type. The macro... |
1,638 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with creating a Rust module that provides analysis and manipulation of a Federated Byzantine Agreement System (FBAS). The ... |
3,285 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with creating a Rust program that utilizes the `chrono` and `derive_into_owned` crates to manipulate and display date and ... |
180 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with implementing a formatter result struct for a code formatting tool. The struct should have the following properties:\n... |
4,301 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with implementing a function to validate the correctness of HTTP incoming authentication tokens for user accounts. The fun... |
67 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with creating a Rust function that processes a given `Option` containing a `WampKwArgs` type and returns a result. The `Wa... |
3,132 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are working on a project that involves testing a Rust library for rendering Markdown content. The library provides two functions: `re... |
4,638 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with implementing a simple messaging system using Rust. The system consists of a server, a client, and various message typ... |
1,875 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are given a Rust code snippet that attempts to parse a string into a floating-point number and then performs an addition operation on... |
3,593 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are working on a Rust project that involves manipulating data structures using lenses. Lenses are a functional programming concept th... |
587 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with implementing a custom error handling mechanism in Rust for a specific use case. Your goal is to create a custom error... |
1,724 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with implementing a function to convert the values of the FP MMX registers from a source structure to a destination struct... |
3,364 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with creating a simplified version of a concurrent networking application. Your goal is to implement a function that conne... |
2,180 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with implementing a simple memory management system for a virtual network computing (VNC) application. The system should a... |
2,952 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with implementing a custom error handling mechanism for a network management system. The system interacts with various net... |
1,067 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with implementing a simple module system for a graphics library in Rust. The provided code snippet is a part of the module... |
4,511 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with implementing a message delivery confirmation system for a satellite communication protocol. The protocol involves sen... |
463 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with implementing a function to parse HTML data and extract information from a specific table. The function should take a ... |
4,332 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with implementing a function to create a configuration file and load its contents. The function should generate a unique c... |
724 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with implementing a function to process a given input string and extract specific substrings based on a set of rules. The ... |
2,035 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with implementing a simple factory pattern in Rust. The goal is to create a generic `AutoExecutableFactory` type that can ... |
4,868 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with creating a macro in Rust that generates a trait implementation for a slot fragment. A slot fragment is a part of a la... |
4,896 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with creating a custom validation message for a web form's textarea element. The `HtmlTextareaElement` struct represents a... |
3,772 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with implementing a configuration management system for a software application. The `Config` class provides methods to man... |
1,858 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with implementing a function to parse and display information about a software repository and its issues. The repository i... |
2,083 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with implementing a smart pointer type, `ComPtr`, in Rust for managing COM interface pointers. The `ComPtr` type is used t... |
1,888 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with implementing a metrics calculation system for a version control software. The given code snippet is part of a method ... |
548 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are given a simplified version of a Rust program that aims to solve a puzzle. The program takes a sequence of moves as input and then... |
4,529 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with implementing a simple entity-component system (ECS) in Rust. An ECS is a design pattern used in game development and ... |
4,656 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with implementing a simple graph data structure in Rust. The graph will consist of nodes and edges, and each node will hav... |
396 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with implementing a binary search tree (BST) in Rust. A binary search tree is a data structure that allows for efficient s... |
4,611 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with implementing a data structure to manage task state information in an operating system. The given code snippet represe... |
1,921 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with creating a program that processes input files in various formats and converts them to JSON. The program should accept... |
4,888 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with implementing a simple remote control system for a robotic device that can move through a series of tunnels. The remot... |
2,741 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with implementing a simple transaction tracking system. The system should allow users to create transactions, add or subtr... |
2,379 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with implementing a function to convert a given integer into its Roman numeral representation. Roman numerals are represen... |
2,398 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with implementing a data structure to manage a Merkle Mountain Range (MMR) in Rust. The MMR is a data structure used for e... |
1,675 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with simulating a simplified version of a multi-threaded client-server system. The provided code snippet is part of the cl... |
832 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with implementing a custom data structure to store and manage tags associated with various items. The `Tags` struct should... |
1,289 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with implementing a module for managing movie data within a movie database system. The module should provide functionality... |
4,698 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with implementing a simple HTTP server in Rust. Your goal is to create an HTTP request-response handler module and a utili... |
2,461 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with implementing a simplified version of an asynchronous storage system in Rust. The system will support initialization, ... |
2,520 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with implementing a custom shell command execution system using the `conch_runtime` library in Rust. The `conch_runtime` l... |
3,836 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with implementing a memory management system for a virtual memory architecture. The system is responsible for managing mem... |
1,556 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with creating a program that parses and extracts information from HTML code containing badge images and their associated U... |
4,726 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with implementing a simple expression evaluation system in Rust. The system should be able to evaluate arithmetic expressi... |
921 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with implementing a simple serialization library in Rust. The library should provide a function `to_value` that takes a va... |
752 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with implementing a Rust function that processes a given texture view using the wgpu library. The function takes a closure... |
4,678 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are working on a geographic information system (GIS) software and need to implement a function for creating a copy of a dataset and p... |
105 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with implementing a timestamp module in Rust that provides functionality for managing fixed points in time used with cache... |
1,686 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with implementing a concurrent data structure for managing network topology information in a distributed system. The syste... |
4,915 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with creating a Rust module that includes two sub-modules: `find` and `generator`. The `find` module should contain functi... |
420 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with implementing a memory allocator for a video processing library. The library provides a type `PerceptionVideoFrameAllo... |
1,198 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with creating a program that simulates a simple game of rock-paper-scissors. The program should allow a user to input thei... |
3,664 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with implementing a simple logging system for a cryptocurrency trading platform. The platform uses a Rust-based backend, a... |
1,474 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with implementing a simple entity component system for a game. An entity component system (ECS) is a design pattern used i... |
3,590 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with implementing a function to process events from an Amazon Simple Queue Service (SQS) using Rust. The provided code sni... |
1,063 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with implementing a generic function for generating a hashed key used to fetch a value corresponding to a specific key in ... |
4,530 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with creating a multi-threaded server application in Rust that handles incoming TCP connections and manages user sessions.... |
1,414 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with creating a function that converts data from a Firebird database row into a format compatible with the Diesel ORM libr... |
2,679 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with implementing a Rust macro that generates a regular expression pattern to match a given input string. The macro should... |
3,577 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with creating a simple command-line application that processes user input and performs specific actions based on the input... |
3,463 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with designing a modular music player application in Rust. The application will consist of several modules, each responsib... |
1,559 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with implementing a simple text editor in Rust. The editor supports two types of operations: activation and editing. When ... |
1,604 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are given a 2D vector representing a grid of integers. Each cell in the grid contains a non-negative integer value. The task is to fi... |
610 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with implementing a simplified in-memory key-value store and participation repository in Rust. The provided code snippet i... |
2,819 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with implementing a simplified message passing system in Rust. The system consists of a `Sender` and a `Receiver` that com... |
1,827 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with implementing a bit manipulation function in Rust. Your goal is to create a method that sets a specific bit in a given... |
2,144 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with implementing a simple enumeration and associated function in Rust. The enumeration represents different types of amph... |
120 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with implementing a function that processes a string input and returns a modified version of the input based on specific r... |
4,705 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with implementing a program to factorize a given number into its prime factors. Prime factorization is the process of find... |
1,687 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with designing a safe and efficient implementation for a Context struct in Rust. The Context struct is responsible for man... |
4,875 | oss_instruct | [
{
"role": "system",
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
},
{
"role": "user",
"content": "You are tasked with implementing a generic trait for comparing and searching within a data structure. The trait, `ComparableAbstractSourc... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.