id
int64
0
5k
task_category
stringclasses
1 value
messages
listlengths
3
3
4,973
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 error handling system in Rust. The system should consist of a `Error` struct that can hold a s...
1,183
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 operates on a graph represented as a collection of nodes and their corresponding values. The code ...
1,136
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 type and a trait for converting from a specific data format. In this problem, you will cr...
2,470
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 buffer management system for a data structure. The buffer has an initialized region and a filled regio...
1,113
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 parses a simplified version of Wiktionary entries. The simplified Wiktionary entry is repres...
478
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 a distributed storage system using Rust. The system consists of nodes that can c...
1,694
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 string representing a binary number. Your task is to implement a function `add_binary` that takes two binary strings as i...
504
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 system for a web development framework. The framework requires the ability to de...
4,325
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 hash map in Rust. Your custom hash map should support the following operations: inserting a key...