FineEnvs/repo2rlenv-swe-gen
repo2rlenv-swe-gen: Harbor dataset on Hugging Face with 100 tasks. See what each task asks, how it is graded and what it runs in, then run an agent on it.
Tasks
- The sqlparse lexer incorrectly reclassifies keywords as identifiers when they appear before float literals written without a leading zero…
- The packaging.tags module currently lacks a way to get only pure-Python compatibility tags (i.e., py -none-any tags) without also…
- Three separate bugs need to be fixed:
- The numeric range class has a consistency bug when used with floating-point steps that lack exact binary representations (e.g., 0.1, 0.7…
- The chunked() function in more itertools does not validate its n argument before passing it to islice . When called with a negative…
- The relative time() and decimal relative time() functions in boltons/timeutils.py raise a TypeError when called with a timezone-aware…
- In boltons/setutils.py , the ComplementSet class has two methods with a misspelled method call that causes an AttributeError at runtime:
- The schedule library has a bug where long-running jobs skip scheduling periods. When a job is scheduled to run at a fixed time (e.g…
- The @cachedmethod decorator (and potentially other descriptors based on DescriptorBase ) raises DeprecationWarning when a class using it…
- The parse tag function in the packaging.tags module does not validate interpreter tag components, allowing malformed wheel filenames to be…
- The USTimeZone class in boltons (importable as from boltons.timeutils import Eastern ) does not correctly handle PEP 495 fold semantics…
- The value chain function in more itertools has a bug where a TypeError raised while consuming an iterable argument is incorrectly…
- The sqlparse.format() function with strip comments=True incorrectly strips SQL optimizer hints along with regular comments. SQL hints are…
- The windowed() function in more itertools currently does not validate its n parameter. When called with n=0 or a negative value (e.g…
- There is a bug in JSONLIterator when used with binary file streams and a rel seek parameter. When a binary file is opened in binary mode (…
- Window functions with OVER clauses are not parsed correctly in sqlparse. When a query contains expressions like ROW NUMBER() OVER…
- Add a prefer sdist predicate argument to the Pylock.select() method in the packaging library.
- The MATERIALIZED keyword is not recognized as a SQL keyword by sqlparse. In CREATE MATERIALIZED VIEW statements, the token MATERIALIZED is…
- The parse wheel filename() function in the packaging utilities does not properly reject wheel filenames that contain a newline character (…
- The Cache. setitem method in the cachetools library has a bug where it over-evicts cache entries when growing an existing key's value.
- The Metadata.from email() method in the packaging library has several issues with how it collects and reports validation errors when…
- The group tzcasts() function in sqlparse is too eagerly including closing parentheses when grouping timezone cast expressions. This causes…
- This PR fixes several bugs across multiple modules. Each bug is described below with expected vs. actual behavior.
- Fix get real name() in sqlparse so that it returns the component after the last dot in a fully-qualified identifier, not the component…
- The iter splitlines() function in the boltons.strutils module has a bug in its line-ending regex pattern. The pattern uses \x2028 and…
- The Requirement class in the packaging library has two related bugs:
- The numeric range class in more-itertools is advertised as being analogous to the built-in range , but its eq and hash methods do not…
- The peekable class in more-itertools does not support generic type subscript syntax at runtime. Attempting to use peekable str raises…
- The Lexer class in the sqlparse library needs to be refactored into a singleton with configurable syntax support. Currently, users cannot…
- The Requirement and Marker parsers silently accept strings with trailing newline characters (LF, CRLF, etc.) when they should raise…
- Add a new public function interpreter abi() to the packaging.tags module.
- The IntervalError exception messages raised when accessing day-of-week properties ( .monday , .tuesday , .wednesday , .thursday , .friday…
- The Pylock.select() method currently treats an explicitly empty environments sequence (i.e., environments= ) the same as an omitted/ None…
- The constrained batches function in the more itertools library does not validate the max count parameter when it is zero or negative…
- There is a bug in the schedule library's job scheduling logic when a timezone is applied to next run . When the code checks whether to…
- The sqlparse library does not recognize REGEXP BINARY as a comparison operator. When parsing a SQL expression like column REGEXP BINARY…
- The ecoutils.get profile() function in boltons currently performs all system lookups (hostname resolution, FQDN lookup, current working…
- There is a bug in the LowerBound and UpperBound classes in the ranges module where unbounded bounds (those with None as the version)…
- When parsing ALTER TABLE mytable ROW FORMAT=Dynamic , sqlparse incorrectly combines the table name and the ROW FORMAT option into a single…
- There is a bug in BarrelList. delitem (or equivalent slice deletion logic) when deleting a slice that spans multiple internal barrels…
- The unique everseen function in more itertools currently has a quadratic fallback for unhashable types: when it encounters an element that…
- The sqlparse.format() function with strip comments=True does not correctly handle SQL input that consists entirely of comments.
- The parse qsl function in boltons/urlutils.py accepts an encoding parameter but never passes it to unquote when decoding keys and values…
- Fix a bug in partition and chunks where the iterator-based code path ( cut iter ) produces incorrect results when step n .
- The schedule next run method in the schedule library has a bug when jobs are scheduled with a specific timezone via .at("HH:MM"…
- The next run() function and Scheduler.get next run() method currently return the next scheduled run time across ALL jobs, with no way to…
- The Pylock.select() method has a bug where passing tags= (an explicit empty sequence) is treated identically to omitting the tags argument…
- The Value.serialize() method in the packaging library always wraps string values in double quotes, which can change the semantics of…
- The ~= operator in Specifier. regex str has a bug where its pre, post, and dev groups are not scoped with (?a:...) (ASCII-only matching)…
- The Bits class in boltons/mathutils.py does not correctly handle empty (zero-length) bit sequences across its various constructors and…
- The sliced(seq, n) function in more itertools silently returns wrong results when n is negative, instead of raising an error. This is the…
- The reraise() function in the funcy.flow module currently only accepts an exception class as its into argument. It should also accept a…
- The tail() function in more-itertools has an inconsistent behavior when given a negative n value. When called with a negative size and an…
- The RFC822Message class in the packaging metadata module has a header injection vulnerability. When writing metadata headers, only \n…
- Add a subfactorial function to the more itertools library that computes the number of derangements of n elements (the subfactorial, also…
- Add a has path function to the funcy collections module that checks whether a nested path exists in a dictionary or list.
- When autocurry is used as a decorator, the metadata of the original function (such as doc , name , etc.) is lost. For example:
- The JSONLIterator class in the boltons.jsonutils module has a validation bug: when rel seek=1.0 is passed (which is documented as…
- The interleave evenly function in the more-itertools library crashes with an IndexError: list index out of range when called with an empty…
- In sqlparse's function grouping logic, there is a bug where the keyword as is compared case-sensitively while its sibling checks ( CREATE…
- The Bits class in boltons/mathutils.py has an off-by-one error in its init method when validating that a value fits within the requested…
- The three public tag generator functions cpython tags() , generic tags() , and compatible tags() in the packaging tags module have a bug…
- The Bits. getitem method in boltons/mathutils.py has a bug where negative integer indices always return False regardless of the actual bit…
- The wraps function in boltons.funcutils is broken when the wrapped function ( f ) declares a parameter as keyword-only that the donor…
- The BarrelList class in boltons/listutils.py has a bug in its getitem method when handling slices. Two related issues exist:
- The idle seconds() function raises a TypeError when called with no jobs scheduled. This happens because next run is None when no jobs…
- In boltons/namedutils.py , the validation loop inside both namedtuple and namedlist factory functions has a bug: when an empty string is…
- Cross-timezone scheduling is broken when daylight saving time (DST) transitions occur. Several bugs have been reported and need to be…
- The repr () method of schedule.Job raises an exception when job func is None . This happens when a Job object is in a partially-composed…
- When parsing a SQL expression like (a desc) , the content inside the parentheses should be grouped as a single Identifier token that…
- Add timezone support to the .at() method in the schedule library.
- The numeric range. reversed method does not handle empty ranges correctly. When calling list(reversed(numeric range(0))) , it raises an…
- The once per() and once per args() decorators in the funcy library raise a TypeError when called with unhashable arguments (lists, dicts…
- The args2sh and args2cmd functions in boltons/strutils.py both accept a sep parameter and document it as the separator between arguments…
- The Cache. init () method in the cachetools library does not validate the maxsize argument. Negative values are silently accepted, causing…
- The get parameters() method on SQL function tokens does not correctly handle typed literals (e.g., DATE '2023-11-14' , TIMESTAMP…
- The Cache. setitem () method in the cachetools library currently allows items with negative sizes to be inserted when a custom getsizeof…
- The pluralize() function in the strutils module incorrectly handles words ending in "x" . Currently, it appends a bare "s" to such words…
- There is a bug in split before , split after , and split when where passing an empty iterable with maxsplit=0 incorrectly yields instead…
- The DIV keyword in MySQL SQL syntax should be treated as an arithmetic operator (like , / , + , - ), but currently sqlparse treats it as…
- The IndexedSet.update() method claims to support one or more iterables as arguments, but the multiple-argument branch is broken. When…
- The rpartial function in funcy currently does not accept keyword arguments, which is an unnecessary constraint. Users who want to freeze…
- The pearson type property on the Stats class in boltons/statsutils.py raises RuntimeError('missed a spot') for ordinary data when the…
- This issue covers two behavioral changes introduced in version 11.0.0 of more itertools :
- The combination with replacement index function in more-itertools has a bug when the iterable or element contains None values. The…
- Dollar-quoted strings in PostgreSQL (e.g. $$text$$ or $tag$text$tag$ ) are not correctly detected when immediately preceded by an operator…
- The iter index function in more-itertools has an inconsistency between its two internal code paths when negative start or stop values are…
- The invalidate() method on functions decorated with @cache raises a KeyError when called for a key that is not present in the cache (e.g…
- The running min and running max functions in more-itertools are not stable, meaning they do not preserve the same tie-breaking behavior as…
- The serialize() function in more itertools needs to support generator methods ( send , throw , close ) so that it can be used as a drop-in…
- The Job. str method in the schedule library fails (raises an AttributeError ) when the job's function does not have a name attribute. This…
- Add set-relation helpers to SpecifierSet in the packaging library. Specifically, implement three new methods — is subset , is superset …
- The pairwise function was removed from more-itertools in version 11.0.0, but this was a breaking change that needs to be reverted. The…
- The log durations function in the debug module currently uses time.time for measuring elapsed time. This should be replaced with…
- The GUIDerator class in the boltons.iterutils module has an incorrect error message for invalid size arguments.
- The OrderedMultiDict.addlist method in boltons/dictutils.py traverses its argument twice, which causes one-shot iterables (generators…
- When calling memoize directly (i.e., memoize(func, key func=...) ) instead of using it as a decorator, the key func argument is silently…
- The schedule library is missing a get jobs(tag=None) function that allows users to retrieve job instances filtered by a tag. Currently…
- The Stats.get histogram counts() method crashes with a divide-by-zero error when the interquartile range of the dataset is zero. This…
- The IndexedSet.difference update() and intersection update() methods in boltons's setutils module have quadratic time complexity when…