Essacheez/r2e-code-instruct-qwen3.5
r2e-code-instruct-qwen3.5: Harbor dataset on Hugging Face with 59 tasks. Generated by Repo2RLEnv — turning real GitHub repositories into verifiable RL environments.
Tasks
- Implement a class TrailingSpaceValidator that wraps yamllint.linter.run to detect trailing whitespace violations in
- Implement process integers in task module.py that accepts a sequence of integers ( Sequence int ) and returns their
- Create a configuration validator that uses typeguard 's type checking capabilities. The function must validate a confi
- Create a ValidationErrorAccumulator class that wraps voluptuous.Schema functionality and provides a method to collec
- Implement a ConfigValidator class that wraps voluptuous.Schema to validate application configuration dictionaries. T
- Implement a Python function remove inline comments that accepts a SQL string and returns a cleaned version where all s
- Implement a SafeReloader class that inherits from gunicorn.reloader.Reloader . This class must enforce stricter file
- Build a URL parameter analyzer that processes HTTP request parameters extracted from a Bottle WSGI environment. The solv
- Implement a function sanitize headers(md, prefix) that removes HTTP headers from a bottle.MultiDict that start with
- Implement a function named analyze encoding in task module.py that uses chardet.detect() to analyze a byte sequenc
- Build a byte sequence analyzer module that uses chardet to detect character encodings in byte sequences. Your functi
- Implement a serialization utility in task module that handles functions with closures referencing variables defined in
- You must create a secure redirection utility using the starlette library. Specifically, implement a class named Secur
- Implement a class SelectorValidator that wraps soupsieve.select() for CSS selector validation and element matching.
- Build a CSS selector matcher utility that uses soupsieve 's CSS selector matching capabilities to find elements in a Be
- Implement a custom GraphQL scalar named SecureToken using the graphene library. You must subclass graphene.Scalar
- Implement a custom Hex scalar type for the graphene GraphQL library. This scalar should serialize raw bytes to a hex
- Implement a function load package meta in task module.py . You must explicitly use the tomli library to parse a TOM
- You need to create a toml loader class that parses TOML configuration strings and converts all date and datetime objec
- Implement a function analyze text encoding in task module that uses charset normalizer to detect the character enc
- You are building a PDF metadata and table extraction utility. Implement a function called extract pdf metadata and tabl
- Implement a function extract first table in task module.py that uses pdfplumber to extract data from the first tab
- Design a custom pypika expression named SafeDivide that generates SQL preventing division-by-zero errors. Subclass
- Implement a function analyze feed that parses a feed string using the feedparser library. You must use feedparser.p
- Implement a function detect loose lists that uses the mistune library to parse Markdown text and analyze its AST str
- Implement a class ContactGlomHandler that transforms raw contact data using the glom library. You must use glom
- Implement a function called deep assign that uses glom to deep-assign a value to a nested dictionary path, automatic
- Create a CustomAPISpec class that extends apispec.APISpec to provide an OpenAPI specification object with convenient
- Create a UserAddressSchema class that validates and transforms address data using marshmallow 's Schema and field cla
- Create a task module.py that defines a UserNormalizer class using marshmallow to validate and transform user data.
- Implement a MidiTrafficAnalyzer class that analyzes MIDI message statistics from mido.Message objects. The analyzer
- Implement a class MidiAnalyzer that processes a mido.MidiFile object to analyze Note On events. The solver must use
- Implement a class SafeHTMLProcessor that extends bleach.sanitizer.Cleaner . In your subclass constructor, pass tags=
- Write a Python module that sanitizes user-supplied HTML using the bleach library. The module must use bleach.clean()
- Implement a utility class named OAuthUrlGenerator that leverages oauthlib to construct OAuth 2.0 implicit grant auth
- Build a custom OAuth 2.0 token validation client that extends oauthlib 's Client class. Your OAuth2TokenValidator c
- Create a custom Jinja2 filter called html checked filter that detects whether a value represents HTML content. Your fi
- Create a custom Jinja2 Extension named Jinja2TestValidator that validates values during template rendering. The extens
- Implement a function named prepare ssh client inside task module.py that configures an SSH connection using the par
- Implement a function pdf word counter that extracts text from a PDF file using pdfminer.high level.extract text() an
- Create a pdftext analyzer module that extracts and analyzes text from PDF files using pdfminer . Implement a function
- Implement a custom DER encoder for ASN.1 Set types that reverses the sort order of components compared to pyasn1 's d
- Implement a custom ASN.1 time validation class named CertTimeValidator that extends pyasn1.type.useful.GeneralizedTim
- Implement a function generate patient record(name: str) that constructs a DICOM dataset. It must instantiate a pydico
- Implement a class CodeAnalyzer with a method count docstrings(source) . This utility must analyze Python code using t
- Implement a function count class inferred attrs(code) that leverages astroid to analyze Python source strings. You m
- Implement a utility function analyze call sites that examines call site inference from a parsed code snippet using as
- Implement a LogLineParser class that parses log lines in the format LEVEL:MESSAGE using pyparsing primitives. LEVE
- Implement a class H11ErrorReporter within task module that inspects exceptions from the h11 library. It must defin
- Implement a function filter json errors that validates data against a JSON schema using the jsonschema library. The
- Build SchemaErrorAggregator in task module.py that wraps jsonschema 's validator to collect and aggregate validatio
- Implement a TrioSignalManager class that wraps trio's memory channel API for bidirectional async communication. The cl
- Create a TimeTaskScheduler that uses trio's MockClock to manage time-based task execution. The scheduler must:
- Implement create slide with title in task module.py using pptx to add a slide with a title textbox to a presentati
- Design a DeepValidator class that leverages the deepdiff library to compare complex Python objects. You must impleme
- Implement a SQL validation function that detects ambiguous use of DISTINCT combined with GROUP BY in SQL statements
- Implement a class GpxAnalyzer with a method calculate distance(gpx string: str) - float . You MUST use gpxpy.parse
- Implement a SQL validation module using sqlglot to parse and validate SQL statements. You must define a custom excepti
- Write a Python function wrap source columns using sqlglot to wrap a table in a subquery that selects specific column