id stringlengths 21 64 | repository stringlengths 8 51 | repository_url stringlengths 27 70 | base_commit stringlengths 40 40 | upstream_commit stringlengths 40 40 | request stringlengths 40 22k | size stringclasses 3
values | changed_lines int64 10 389 | language stringclasses 1
value | source_files listlengths 1 6 | licence stringclasses 4
values | licence_file stringlengths 35 78 | licence_source_file stringclasses 4
values | licence_sha256 stringlengths 64 64 | other_licences listlengths 0 6 | spec stringlengths 6.05k 25.9k | spec_path stringlengths 35 78 | spec_rewritten bool 2
classes | spec_tests_file stringlengths 16 50 | spec_tests_pass_with_upstream_change bool 2
classes | upstream_test_files listlengths 1 10 | hidden_tests listlengths 1 10 | changed_tests listlengths 1 40 | unchanged_tests listlengths 0 376 | has_trained_patch bool 2
classes | trained_patch stringlengths 2.14k 26.4k ⌀ | trained_patch_path stringlengths 41 84 ⌀ | trained_patch_model stringclasses 1
value | trained_result dict | snapshot dict |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Kludex__starlette__1766228b4e | Kludex/starlette | https://github.com/Kludex/starlette | a579222b161e5407cd311c32648ed7c845bda4a4 | 1766228b4eb5462efd552f3364656e1e0a5b0180 | Match host names case-insensitively in `Host` routing and `TrustedHostMiddleware` (#3542) | medium | 10 | python | [
"starlette/middleware/trustedhost.py",
"starlette/routing.py"
] | BSD-3-Clause | tasks/Kludex__starlette__1766228b4e/LICENSE | LICENSE.md | dcb95677a02240243187e964f941847d19b17821cf99e5afae684fab328c19bf | [] | # Build spec: case-insensitive host matching in `Host` routing and `TrustedHostMiddleware`
## Context
`starlette/routing.py` defines `compile_path()`, which builds the regex used by both path routes and host routes. For host strings it strips the port and returns a regex compiled with no flags, so matching is case-se... | tasks/Kludex__starlette__1766228b4e/spec.md | true | tests/test_routing.py | true | [
"tests/middleware/test_trusted_host.py",
"tests/test_routing.py"
] | [
{
"path": "tasks/Kludex__starlette__1766228b4e/hidden/tests/middleware/test_trusted_host.py",
"repo_path": "tests/middleware/test_trusted_host.py",
"bytes": 3551,
"sha256": "8086904f4094cc3a38d91fa8b7f55f965446f1d1cd85911954eb07cbb0bea8dc",
"content": "from __future__ import annotations\n\nimpor... | [
"tests/middleware/test_trusted_host.py::test_trusted_host_middleware_is_case_insensitive",
"tests/test_routing.py::test_host_routing_is_case_insensitive"
] | [
"tests/middleware/test_trusted_host.py::test_trusted_host_middleware",
"tests/middleware/test_trusted_host.py::test_trusted_host_middleware_ipv6",
"tests/middleware/test_trusted_host.py::test_default_allowed_hosts",
"tests/middleware/test_trusted_host.py::test_www_redirect",
"tests/test_routing.py::test_rou... | true | --- a/starlette/middleware/trustedhost.py
+++ b/starlette/middleware/trustedhost.py
@@ -25,7 +25,7 @@
if pattern.startswith("*") and pattern != "*":
assert pattern.startswith("*."), ENFORCE_DOMAIN_WILDCARD
self.app = app
- self.allowed_hosts = list(allowed_hosts)
+ s... | tasks/Kludex__starlette__1766228b4e/trained.patch | Qwen3.6-35B-A3B, the base model before any training (UD-IQ3_XXS GGUF quant) | {
"seed": 1,
"passed_spec_tests": true,
"spec_tests": 9,
"passed_upstream_tests": false,
"tool_calls": 23,
"wall_seconds": 195.3,
"timed_out": false,
"turn_limit": 30,
"time_limit_seconds": 480,
"generated_files_dropped": 0
} | {
"path": "tasks/Kludex__starlette__1766228b4e/repo.tar.gz",
"files": 151,
"bytes": 4050552,
"compressed_bytes": 2733066,
"sha256": "4616d445f0d6d400c7033c795d7a46fe1addf2402ea7138ef6156387888dcfeb",
"omitted": []
} |
Kludex__starlette__6beaa2e39d | Kludex/starlette | https://github.com/Kludex/starlette | ee93d2960b52c4e7c4a7abd40eb50773f7fad01e | 6beaa2e39d3381e1d7ddb89d4cc7cbb8c7ac0961 | Preserve response trailers through GZipMiddleware (#3565) | small | 10 | python | [
"starlette/middleware/gzip.py"
] | BSD-3-Clause | tasks/Kludex__starlette__6beaa2e39d/LICENSE | LICENSE.md | dcb95677a02240243187e964f941847d19b17821cf99e5afae684fab328c19bf | [] | # Build spec: Preserve response trailers through GZipMiddleware
## Context
`starlette/middleware/gzip.py` implements `GZipMiddleware`, which wraps an ASGI app in either `GZipResponder` (when the client sends `Accept-Encoding: gzip`) or `IdentityResponder`, and rewrites outgoing `http.response.start` / `http.response.... | tasks/Kludex__starlette__6beaa2e39d/spec.md | false | tests/middleware/test_gzip.py | true | [
"tests/middleware/test_gzip.py"
] | [
{
"path": "tasks/Kludex__starlette__6beaa2e39d/hidden/tests/middleware/test_gzip.py",
"repo_path": "tests/middleware/test_gzip.py",
"bytes": 19463,
"sha256": "9baa8000fe629359e4e6213079f7155e139841f1fd63427aa6d0f719e28eca3f",
"content": "from __future__ import annotations\n\nimport hashlib\nimpo... | [
"tests/middleware/test_gzip.py::test_gzip_cleared_exclude_content_types",
"tests/middleware/test_gzip.py::test_gzip_trailers",
"tests/middleware/test_gzip.py::test_gzip_excluded_content_type_trailers"
] | [
"tests/middleware/test_gzip.py::test_gzip_responses",
"tests/middleware/test_gzip.py::test_gzip_not_in_accept_encoding",
"tests/middleware/test_gzip.py::test_gzip_ignored_for_small_responses",
"tests/middleware/test_gzip.py::test_gzip_streaming_response",
"tests/middleware/test_gzip.py::test_gzip_compressio... | false | null | null | null | null | {
"path": "tasks/Kludex__starlette__6beaa2e39d/repo.tar.gz",
"files": 150,
"bytes": 4020466,
"compressed_bytes": 2726996,
"sha256": "5babb31c381b2b835d1da781351fb0589a363f7ccfdd4d65c00a74241fde5970",
"omitted": []
} |
anthropics__anthropic-sdk-python__55d54fb2b3 | anthropics/anthropic-sdk-python | https://github.com/anthropics/anthropic-sdk-python | 1394cfcdc65cf14a5fba2c9e768760b4a893da46 | 55d54fb2b3e7d7308e136d987892fdf0a4278827 | fix(client): allow API errors to be unpickled and copied
Stainless-Generated-From: 1d39a96381717940589ec65f32437229e486b3e9 | small | 12 | python | [
"src/anthropic/_exceptions.py"
] | Apache-2.0 | tasks/anthropics__anthropic-sdk-python__55d54fb2b3/LICENSE | LICENSE | 7fc343be7ec189b803c1872267cbaf0381b12ffdb22d972b8ea7b21b262ba563 | [
{
"path": "LICENSE-MIT",
"licence": "Apache-2.0 AND MIT"
},
{
"path": "src/anthropic/_vendor/httpx_aiohttp/LICENSE",
"licence": "BSD-3-Clause"
}
] | ## Context
`src/anthropic/_exceptions.py` defines the SDK's exception hierarchy. Every error the client raises derives from `AnthropicError`:
```python
class AnthropicError(Exception):
pass
```
The API error classes take required constructor arguments, so the default exception pickling, which calls `cls(*self.ar... | tasks/anthropics__anthropic-sdk-python__55d54fb2b3/spec.md | false | tests/test_exceptions.py | true | [
"tests/test_exceptions.py"
] | [
{
"path": "tasks/anthropics__anthropic-sdk-python__55d54fb2b3/hidden/tests/test_exceptions.py",
"repo_path": "tests/test_exceptions.py",
"bytes": 3613,
"sha256": "514322314952637d3a56c731d8e45af2fe4c2895b59780899d77cda7fd594b01",
"content": "from __future__ import annotations\n\nimport copy\nimp... | [
"tests/test_exceptions.py::test_duplicate_has_the_class_and_message_of_the_error",
"tests/test_exceptions.py::test_duplicate_of_a_raised_status_error_keeps_its_attributes",
"tests/test_exceptions.py::test_pickled_status_error_loads_as_its_own_class",
"tests/test_exceptions.py::test_error_raised_in_a_process_p... | [] | true | --- a/src/anthropic/_exceptions.py
+++ b/src/anthropic/_exceptions.py
@@ -39,8 +39,19 @@
]
+def _reconstruct_error(
+ cls: type[AnthropicError], args: tuple[object, ...], state: dict[str, Any]
+) -> AnthropicError:
+ """Rebuild an exception of `cls` without calling its `__init__`."""
+ error = cls.__new__... | tasks/anthropics__anthropic-sdk-python__55d54fb2b3/trained.patch | Qwen3.6-35B-A3B, the base model before any training (UD-IQ3_XXS GGUF quant) | {
"seed": 3,
"passed_spec_tests": true,
"spec_tests": 7,
"passed_upstream_tests": true,
"tool_calls": 16,
"wall_seconds": 356.3,
"timed_out": false,
"turn_limit": 30,
"time_limit_seconds": 480,
"generated_files_dropped": 0
} | {
"path": "tasks/anthropics__anthropic-sdk-python__55d54fb2b3/repo.tar.gz",
"files": 3203,
"bytes": 14354347,
"compressed_bytes": 2376672,
"sha256": "260adea078a7775f681dd0b32a0e418c3436928117f27692974dbf1a074842ae",
"omitted": []
} |
anthropics__anthropic-sdk-python__b0a7c23285 | anthropics/anthropic-sdk-python | https://github.com/anthropics/anthropic-sdk-python | 34faa4f12b8813da58925696648ccdfd403a7048 | b0a7c23285972077462d889ed8f75ec424b117c2 | fix(parse): keep const in structured output schemas, and drop type beside const and enum (#976) | small | 26 | python | [
"src/anthropic/lib/_parse/_transform.py"
] | Apache-2.0 | tasks/anthropics__anthropic-sdk-python__b0a7c23285/LICENSE | LICENSE | 7fc343be7ec189b803c1872267cbaf0381b12ffdb22d972b8ea7b21b262ba563 | [
{
"path": "LICENSE-MIT",
"licence": "Apache-2.0 AND MIT"
},
{
"path": "src/anthropic/_vendor/httpx_aiohttp/LICENSE",
"licence": "BSD-3-Clause"
}
] | # Build spec: keep `const` in structured output schemas, drop `type` beside `const` and `enum`
## Context
`src/anthropic/lib/_parse/_transform.py` turns a pydantic model or a dict JSON schema into the strict schema the Messages API expects. The change touches only `transform_schema` in that file; it is called from `t... | tasks/anthropics__anthropic-sdk-python__b0a7c23285/spec.md | true | tests/lib/parse/test_transform.py | true | [
"tests/lib/_parse/test_transform.py"
] | [
{
"path": "tasks/anthropics__anthropic-sdk-python__b0a7c23285/hidden/tests/lib/_parse/test_transform.py",
"repo_path": "tests/lib/_parse/test_transform.py",
"bytes": 7760,
"sha256": "2209e92a574cfce25dc93d328877006821aa10a38ac049c911ec4e3ffcd37c92",
"content": "from copy import deepcopy\nfrom ty... | [
"tests/lib/_parse/test_transform.py::test_ref_schema_with_defs",
"tests/lib/_parse/test_transform.py::test_enum_schema",
"tests/lib/_parse/test_transform.py::test_keeps_const_and_enum_and_drops_type",
"tests/lib/_parse/test_transform.py::test_moves_unsupported_const_and_enum_into_description",
"tests/lib/_p... | [
"tests/lib/_parse/test_transform.py::test_ref_schema",
"tests/lib/_parse/test_transform.py::test_anyof_schema",
"tests/lib/_parse/test_transform.py::test_allof",
"tests/lib/_parse/test_transform.py::test_object_schema",
"tests/lib/_parse/test_transform.py::test_array_schema",
"tests/lib/_parse/test_transf... | true | --- a/src/anthropic/lib/_parse/_transform.py
+++ b/src/anthropic/lib/_parse/_transform.py
@@ -144,6 +144,9 @@
any_of = json_schema.pop("anyOf", None)
one_of = json_schema.pop("oneOf", None)
all_of = json_schema.pop("allOf", None)
+ enum = json_schema.pop("enum", None)
+ has_const = "const" in json_... | tasks/anthropics__anthropic-sdk-python__b0a7c23285/trained.patch | Qwen3.6-35B-A3B, the base model before any training (UD-IQ3_XXS GGUF quant) | {
"seed": 2,
"passed_spec_tests": true,
"spec_tests": 11,
"passed_upstream_tests": false,
"tool_calls": 16,
"wall_seconds": 221.3,
"timed_out": false,
"turn_limit": 30,
"time_limit_seconds": 480,
"generated_files_dropped": 0
} | {
"path": "tasks/anthropics__anthropic-sdk-python__b0a7c23285/repo.tar.gz",
"files": 3210,
"bytes": 14360976,
"compressed_bytes": 2378564,
"sha256": "c925bf0e9a840ca66b6ffd604ca7dcf020079720e22acab418d6816b134cf5e6",
"omitted": []
} |
ekalinin__nodeenv__b68eb29e6f | ekalinin/nodeenv | https://github.com/ekalinin/nodeenv | 05e06b83e743cb772a8ec864775d7d175a812656 | b68eb29e6f01b05c7920bd690047d8ca038c4701 | fix(nodeenv): do not put the venv bin on PATH twice with -p (#448)
The python venv's own activate and activate.fish put bin/ on PATH, and
the part nodeenv -p appends to them added it a second time. That part
now adds only node_modules/.bin.
A file nodeenv wrote itself (a conda env has none) keeps the entry, so
a reru... | small | 29 | python | [
"nodeenv.py"
] | BSD-2-Clause | tasks/ekalinin__nodeenv__b68eb29e6f/LICENSE | LICENSE | 606faf42d48b54d539dae99db6fecd48544535587e27275b319a3f36113cb6fa | [] | ## Context
`nodeenv.py` is the whole package: it creates node.js environments and writes activation scripts. `install_activate(env_dir, args)` writes `bin/activate`, `bin/activate.fish` and `bin/shim` (posix) or `Scripts/*` (Windows) from the templates `ACTIVATE_SH`, `ACTIVATE_FISH`, `SHIM`, `ACTIVATE_BAT`, `DEACTIVAT... | tasks/ekalinin__nodeenv__b68eb29e6f/spec.md | true | tests/test_activate_path_dedup.py | false | [
"tests/test_activate_shells.py",
"tests/test_install_activate.py"
] | [
{
"path": "tasks/ekalinin__nodeenv__b68eb29e6f/hidden/tests/test_activate_shells.py",
"repo_path": "tests/test_activate_shells.py",
"bytes": 15025,
"sha256": "ca3486c55b511580c6a2a5424252973cd119b95221f878d424a5646f73d69310",
"content": "\"\"\"\nBehavioural tests for the generated activation scr... | [
"tests/test_activate_shells.py::test_python_virtualenv_puts_bin_on_path_once",
"tests/test_install_activate.py::test_python_virtualenv",
"tests/test_install_activate.py::test_python_virtualenv_puts_bin_on_path_once",
"tests/test_install_activate.py::test_python_virtualenv_rerun_leaves_activate_alone",
"test... | [
"tests/test_activate_shells.py::test_syntax",
"tests/test_activate_shells.py::test_activate_sets_env",
"tests/test_activate_shells.py::test_deactivate_restores_env",
"tests/test_activate_shells.py::test_activate_deactivate_twice",
"tests/test_activate_shells.py::test_isolate_npm_roundtrip",
"tests/test_ac... | false | null | null | null | null | {
"path": "tasks/ekalinin__nodeenv__b68eb29e6f/repo.tar.gz",
"files": 37,
"bytes": 496208,
"compressed_bytes": 87779,
"sha256": "465086a074a67a2ccc791a7c46476b5d4bca9a9a187b275063b22964b7a7ab4c",
"omitted": []
} |
eliben__pycparser__6a4459247a | eliben/pycparser | https://github.com/eliben/pycparser | 7217a09643f32ebda208b03968b9039248db5f5b | 6a4459247a2f35ea55b44028250d1bed6d2dfac4 | Fix parser for declarator-less members
Closes #633 | small | 13 | python | [
"pycparser/c_parser.py"
] | BSD-3-Clause | tasks/eliben__pycparser__6a4459247a/LICENSE | LICENSE | 0a9e78156ae8b96caf1b4f11ac2df424b83de29736f9e757630548a6272fdf90 | [] | # Build spec: fix parsing of declarator-less members
## Context
`pycparser/c_parser.py` is the recursive-descent C parser. The change touches only
`CParser._build_declarations`, which turns a specifier dict (`_DeclSpec`) plus a list of
`_DeclInfo` dicts into `c_ast.Decl` / `c_ast.Typedef` nodes.
The relevant code in... | tasks/eliben__pycparser__6a4459247a/spec.md | true | tests/test_declarator_less_members.py | false | [
"tests/test_c_parser.py"
] | [
{
"path": "tasks/eliben__pycparser__6a4459247a/hidden/tests/test_c_parser.py",
"repo_path": "tests/test_c_parser.py",
"bytes": 249747,
"sha256": "1757cceced960ec4eb849ec6a71136e8e3522320daddb0451fbe38c3430501a9",
"content": null
}
] | [
"tests/test_c_parser.py::TestCParser_fundamentals::test_struct_member_without_declarator"
] | [
"tests/test_c_parser.py::TestCParser_fundamentals::test_FileAST",
"tests/test_c_parser.py::TestCParser_fundamentals::test_empty_toplevel_decl",
"tests/test_c_parser.py::TestCParser_fundamentals::test_initial_semi",
"tests/test_c_parser.py::TestCParser_fundamentals::test_line_directive_update_in_errors",
"te... | false | null | null | null | null | {
"path": "tasks/eliben__pycparser__6a4459247a/repo.tar.gz",
"files": 211,
"bytes": 1388942,
"compressed_bytes": 282436,
"sha256": "ee7c016cd03c3f24af36a476d18520aa366bb44aa7ff9e58699ca9a2dfdb4ae2",
"omitted": []
} |
eliben__pycparser__712ba101f2 | eliben/pycparser | https://github.com/eliben/pycparser | e174787fe31f9f342747c79f22d5f742306dce61 | 712ba101f2c860090d8719352fed9b4bf9b536a3 | Fix generation for atomic members w/o declarators | small | 24 | python | [
"pycparser/c_generator.py"
] | BSD-3-Clause | tasks/eliben__pycparser__712ba101f2/LICENSE | LICENSE | 0a9e78156ae8b96caf1b4f11ac2df424b83de29736f9e757630548a6272fdf90 | [] | ## Context
`pycparser/c_generator.py` holds `CGenerator`, the AST-to-C visitor. `pycparser/c_parser.py` holds the parser; `pycparser/ast_transforms.py` (imported by the parser as `fix_atomic_specifiers`) normalises `_Atomic(type)` specifiers after parsing. The bug is in how the generator emits a struct or union member... | tasks/eliben__pycparser__712ba101f2/spec.md | true | tests/test_c_generator_atomic_members.py | true | [
"tests/test_c_generator.py"
] | [
{
"path": "tasks/eliben__pycparser__712ba101f2/hidden/tests/test_c_generator.py",
"repo_path": "tests/test_c_generator.py",
"bytes": 63085,
"sha256": "602f048424d5780c44245ab9706a3d2cb7c36acd6e4e6fe0a38eedf288928efc",
"content": "import os\nimport sys\nimport unittest\n\n# Run from the root dir\... | [
"tests/test_c_generator.py::TestCtoC::test_atomic_members_without_declarators"
] | [
"tests/test_c_generator.py::TestFunctionDeclGeneration::test_partial_funcdecl_generation",
"tests/test_c_generator.py::TestCtoC::test_trivial_decls",
"tests/test_c_generator.py::TestCtoC::test_multi_declarator_type_definition_is_emitted_once",
"tests/test_c_generator.py::TestCtoC::test_switch_shared_type_defi... | true | --- a/pycparser/c_generator.py
+++ b/pycparser/c_generator.py
@@ -699,6 +699,29 @@
s += " ".join(n.storage) + " "
if n.align:
s += " ".join(self.visit(align) for align in n.align) + " "
+ # Handle unnamed struct/union members that are atomic types.
+ if n.name is None:
+... | tasks/eliben__pycparser__712ba101f2/trained.patch | Qwen3.6-35B-A3B, the base model before any training (UD-IQ3_XXS GGUF quant) | {
"seed": 2,
"passed_spec_tests": true,
"spec_tests": 8,
"passed_upstream_tests": false,
"tool_calls": 8,
"wall_seconds": 86.6,
"timed_out": false,
"turn_limit": 30,
"time_limit_seconds": 480,
"generated_files_dropped": 0
} | {
"path": "tasks/eliben__pycparser__712ba101f2/repo.tar.gz",
"files": 211,
"bytes": 1392215,
"compressed_bytes": 283335,
"sha256": "c1b9f62401994a7350c59e3ce7c0c8f0ca0e70b183baa1305707dc0c3eae5e04",
"omitted": []
} |
eliben__pycparser__878c289076 | eliben/pycparser | https://github.com/eliben/pycparser | 840fe55e46df0d8ba956057a286526b107a694ec | 878c289076330178393ea49726d7cd0aba00dbac | Support va_arg properly
It has a type argument: preserve that via explicitly supporting
__builtin_va_arg as a keyword.
Fixes #533 | medium | 17 | python | [
"pycparser/c_lexer.py",
"pycparser/c_parser.py"
] | BSD-3-Clause | tasks/eliben__pycparser__878c289076/LICENSE | LICENSE | 0a9e78156ae8b96caf1b4f11ac2df424b83de29736f9e757630548a6272fdf90 | [] | ## Context
This repository is pycparser: a pure-Python C parser. The change makes `__builtin_va_arg(ap, type)` parseable, preserving its type argument, by recognising `__builtin_va_arg` as a keyword in the lexer and handling it in the parser's primary-expression path (issue #533).
Files involved:
- `pycparser/c_lexe... | tasks/eliben__pycparser__878c289076/spec.md | false | tests/test_c_parser.py | true | [
"tests/test_c_generator.py",
"tests/test_c_parser.py",
"tests/test_general.py"
] | [
{
"path": "tasks/eliben__pycparser__878c289076/hidden/tests/test_c_generator.py",
"repo_path": "tests/test_c_generator.py",
"bytes": 64408,
"sha256": "76f9c8ac5462d6b4e1913959ee5cf74400497c323635335b588d5fcdbd607f5c",
"content": null
},
{
"path": "tasks/eliben__pycparser__878c289076/hidd... | [
"tests/test_c_generator.py::TestCtoC::test_builtin_va_arg",
"tests/test_c_parser.py::TestCParser_fundamentals::test_builtin_va_arg",
"tests/test_c_parser.py::TestCParser_fundamentals::test_function_call_rejects_type_argument",
"tests/test_general.py::TestParsing::test_va_arg_preserves_type"
] | [
"tests/test_c_generator.py::TestFunctionDeclGeneration::test_partial_funcdecl_generation",
"tests/test_c_generator.py::TestCtoC::test_trivial_decls",
"tests/test_c_generator.py::TestCtoC::test_multi_declarator_type_definition_is_emitted_once",
"tests/test_c_generator.py::TestCtoC::test_switch_shared_type_defi... | true | --- a/pycparser/c_lexer.py
+++ b/pycparser/c_lexer.py
@@ -517,6 +517,7 @@
"VOLATILE",
"WHILE",
"__INT128",
+ "__BUILTIN_VA_ARG",
"_BOOL",
"_COMPLEX",
"_GENERIC",
--- a/pycparser/c_parser.py
+++ b/pycparser/c_parser.py
@@ -1157,6 +1157,27 @@
self._expect("RPAREN")
retur... | tasks/eliben__pycparser__878c289076/trained.patch | Qwen3.6-35B-A3B, the base model before any training (UD-IQ3_XXS GGUF quant) | {
"seed": 1,
"passed_spec_tests": true,
"spec_tests": 8,
"passed_upstream_tests": true,
"tool_calls": 31,
"wall_seconds": 225.9,
"timed_out": false,
"turn_limit": 30,
"time_limit_seconds": 480,
"generated_files_dropped": 0
} | {
"path": "tasks/eliben__pycparser__878c289076/repo.tar.gz",
"files": 212,
"bytes": 1578223,
"compressed_bytes": 324015,
"sha256": "facfd8a0b84c800aa1b43ae192de92bf4857166b4d4b5ef9383105be375a3568",
"omitted": []
} |
eliben__pycparser__8fd2299bef | eliben/pycparser | https://github.com/eliben/pycparser | aa32af5fb29f0a1df7266be1203afc6c283c1c3a | 8fd2299bef4c23f47430e0f48773f231ccc44b69 | Add ArrayDesignator AST node to distinguish array indices in designators
Fixes #466 | medium | 29 | python | [
"pycparser/c_ast.py",
"pycparser/c_generator.py",
"pycparser/c_parser.py"
] | BSD-3-Clause | tasks/eliben__pycparser__8fd2299bef/LICENSE | LICENSE | 0a9e78156ae8b96caf1b4f11ac2df424b83de29736f9e757630548a6272fdf90 | [] | ## Context
`pycparser/c_ast.py` defines the AST node classes. `NamedInitializer` holds a designator as a list in its `name` attribute:
```python
class NamedInitializer(Node):
__slots__ = ("name", "expr", "coord", "__weakref__")
def __init__(self, name, expr, coord=None):
self.name = name
self... | tasks/eliben__pycparser__8fd2299bef/spec.md | true | tests/test_array_designator.py | false | [
"tests/test_c_generator.py",
"tests/test_c_parser.py"
] | [
{
"path": "tasks/eliben__pycparser__8fd2299bef/hidden/tests/test_c_generator.py",
"repo_path": "tests/test_c_generator.py",
"bytes": 64044,
"sha256": "4428d284289d29905bd87ea2e0975e23edc0e40b12f88d2e9b22566f12f02dff",
"content": null
},
{
"path": "tasks/eliben__pycparser__8fd2299bef/hidd... | [
"tests/test_c_generator.py::TestCtoC::test_field_and_array_designators",
"tests/test_c_parser.py::TestCParser_fundamentals::test_compound_literals",
"tests/test_c_parser.py::TestCParser_fundamentals::test_decl_named_inits",
"tests/test_c_parser.py::TestCParser_fundamentals::test_field_and_array_designators"
] | [
"tests/test_c_generator.py::TestFunctionDeclGeneration::test_partial_funcdecl_generation",
"tests/test_c_generator.py::TestCtoC::test_trivial_decls",
"tests/test_c_generator.py::TestCtoC::test_multi_declarator_type_definition_is_emitted_once",
"tests/test_c_generator.py::TestCtoC::test_switch_shared_type_defi... | false | null | null | null | null | {
"path": "tasks/eliben__pycparser__8fd2299bef/repo.tar.gz",
"files": 211,
"bytes": 1394409,
"compressed_bytes": 283707,
"sha256": "5e1133312cddc8e13c855c23bbff9d44b6d14155a14c41ef9037736e745e1206",
"omitted": []
} |
fsspec__filesystem_spec__4242655adc | fsspec/filesystem_spec | https://github.com/fsspec/filesystem_spec | 5fc8bfb335474b6caca20beb82cd73341abb52dc | 4242655adcd080e6b27f48613ec9ca1d3e22cf71 | Close owned files when context entry or cleanup fails (#2392) | medium | 64 | python | [
"fsspec/core.py"
] | BSD-3-Clause | tasks/fsspec__filesystem_spec__4242655adc/LICENSE | LICENSE | 2dc35496ce53a7307915c008a844aad53e772b49b34cdd00445067691407ec94 | [] | # Build spec: close owned files when context entry or cleanup fails
## Context
`fsspec/core.py` defines the context-manager file objects returned by `fsspec.open` and `fsspec.open_files`. The change makes `OpenFile` and `OpenFiles` close every file they opened when entering or leaving the context fails part-way, inst... | tasks/fsspec__filesystem_spec__4242655adc/spec.md | true | fsspec/tests/test_core.py | true | [
"fsspec/tests/test_core.py"
] | [
{
"path": "tasks/fsspec__filesystem_spec__4242655adc/hidden/fsspec/tests/test_core.py",
"repo_path": "fsspec/tests/test_core.py",
"bytes": 20571,
"sha256": "23e5f815ae75028dd0d03f7f3a31f762efaf0f056ba88833ea366780b3f2a755",
"content": "import os\nimport pickle\nimport tempfile\nimport zipfile\nf... | [
"fsspec/tests/test_core.py::test_openfile_failed_text_wrapper_closes_file",
"fsspec/tests/test_core.py::test_openfiles_failed_entry_closes_previous_files",
"fsspec/tests/test_core.py::test_openfile_flush_failure_still_closes_file",
"fsspec/tests/test_core.py::test_openfiles_close_failure_still_closes_other_fi... | [
"fsspec/tests/test_core.py::test_expand_paths",
"fsspec/tests/test_core.py::test_expand_paths_if_needed_in_read_mode",
"fsspec/tests/test_core.py::test_expand_paths_if_needed_in_write_mode",
"fsspec/tests/test_core.py::test_expand_error",
"fsspec/tests/test_core.py::test_expand_fs_token_paths",
"fsspec/te... | true | --- a/fsspec/core.py
+++ b/fsspec/core.py
@@ -112,17 +112,21 @@
self.fobjects = [f]
- if self.compression is not None:
- compress = compr[self.compression]
- f = compress(f, mode=mode[0])
- self.fobjects.append(f)
+ try:
+ if self.compression is not... | tasks/fsspec__filesystem_spec__4242655adc/trained.patch | Qwen3.6-35B-A3B, the base model before any training (UD-IQ3_XXS GGUF quant) | {
"seed": 2,
"passed_spec_tests": true,
"spec_tests": 4,
"passed_upstream_tests": false,
"tool_calls": 14,
"wall_seconds": 181.5,
"timed_out": false,
"turn_limit": 30,
"time_limit_seconds": 480,
"generated_files_dropped": 0
} | {
"path": "tasks/fsspec__filesystem_spec__4242655adc/repo.tar.gz",
"files": 166,
"bytes": 9377778,
"compressed_bytes": 572057,
"sha256": "3b5701a402b75fa57c1abd4b62ccb99dd2e19032c91b2b9f4a8c8551def9ba80",
"omitted": []
} |
jmcnamara__XlsxWriter__5167156db1 | jmcnamara/XlsxWriter | https://github.com/jmcnamara/XlsxWriter | d4f51258a66652c5efc3794b8d4d3d9fbc73fdf6 | 5167156db1ccfe9ffcf528efb3ba06b625be3fcb | utility: use UTF-16 lengths for Excel string limit checks
Excel's string length limits are in UTF-16 units, so characters
above U+FFFF, such as emojis, count as 2. This fix changed the
string length check for all locations where it is used against an
Excel limit.
Also fixed a check to allow emojis and other character... | medium | 89 | python | [
"xlsxwriter/url.py",
"xlsxwriter/utility.py",
"xlsxwriter/workbook.py",
"xlsxwriter/worksheet.py"
] | BSD-2-Clause | tasks/jmcnamara__XlsxWriter__5167156db1/LICENSE | LICENSE.txt | 79cd3a88b65ecd9996f4bbfb7f3adf0a75df366aa1d3bbb7fe150b9e43d5b4c7 | [] | # Build spec: use UTF-16 lengths for Excel string limit checks
## Context
Excel measures its string length limits in UTF-16 code units, so a character above U+FFFF (for example an emoji) counts as 2. Today every limit check in this codebase uses Python `len()`, which counts such characters as 1, so strings that Excel... | tasks/jmcnamara__XlsxWriter__5167156db1/spec.md | true | xlsxwriter/test/test_utf16_limits.py | false | [
"xlsxwriter/test/workbook/test_check_sheetname.py",
"xlsxwriter/test/workbook/test_write_defined_names.py",
"xlsxwriter/test/worksheet/test_range_return_values.py"
] | [
{
"path": "tasks/jmcnamara__XlsxWriter__5167156db1/hidden/xlsxwriter/test/workbook/test_check_sheetname.py",
"repo_path": "xlsxwriter/test/workbook/test_check_sheetname.py",
"bytes": 2729,
"sha256": "8bdd63d6055c76cde54ac2bd8d735d644aa84bf7e5ca81a000d5e3f7f2c61367",
"content": "#################... | [
"xlsxwriter/test/workbook/test_check_sheetname.py::TestCheckSheetname::test_check_sheetname",
"xlsxwriter/test/workbook/test_check_sheetname.py::TestCheckSheetname::test_check_sheetname_with_long_name",
"xlsxwriter/test/workbook/test_write_defined_names.py::TestWriteDefinedNames::test_define_name_emojis",
"xl... | [
"xlsxwriter/test/workbook/test_check_sheetname.py::TestCheckSheetname::test_check_sheetname_with_invalid_name",
"xlsxwriter/test/workbook/test_check_sheetname.py::TestCheckSheetname::test_check_sheetname_with_duplicate_name",
"xlsxwriter/test/workbook/test_write_defined_names.py::TestWriteDefinedNames::test_wri... | false | null | null | null | null | {
"path": "tasks/jmcnamara__XlsxWriter__5167156db1/repo.tar.gz",
"files": 3028,
"bytes": 37578704,
"compressed_bytes": 25094017,
"sha256": "a0d2532e23516081d0f232ce3dfc73326f6b47fb7d0ae630359e4d457049f96c",
"omitted": []
} |
jmcnamara__XlsxWriter__d4f51258a6 | jmcnamara/XlsxWriter | https://github.com/jmcnamara/XlsxWriter | 17429497b8630ccc1b161aa663a53d4f367e6286 | d4f51258a66652c5efc3794b8d4d3d9fbc73fdf6 | worksheet: handle future functions in conditional format and validation formulas
Fixed an issue where "future" functions such as ISFORMULA()
weren't escaped in conditional_format() and data_validation()
formulas.
Fixes #1171. Closes #1200. | small | 15 | python | [
"xlsxwriter/worksheet.py"
] | BSD-2-Clause | tasks/jmcnamara__XlsxWriter__d4f51258a6/LICENSE | LICENSE.txt | 79cd3a88b65ecd9996f4bbfb7f3adf0a75df366aa1d3bbb7fe150b9e43d5b4c7 | [] | # Build spec: escape future functions in conditional format and data validation formulas
## Context
`xlsxwriter/worksheet.py` implements the `Worksheet` class. Cell formulas written with `write_formula()` are normalised by `_prepare_formula()`, which prefixes "future" Excel functions (functions newer than the file fo... | tasks/jmcnamara__XlsxWriter__d4f51258a6/spec.md | false | xlsxwriter/test/test_future_functions_cf_dv.py | true | [
"xlsxwriter/test/worksheet/test_cond_format15.py",
"xlsxwriter/test/worksheet/test_write_data_validations02.py"
] | [
{
"path": "tasks/jmcnamara__XlsxWriter__d4f51258a6/hidden/xlsxwriter/test/worksheet/test_cond_format15.py",
"repo_path": "xlsxwriter/test/worksheet/test_cond_format15.py",
"bytes": 6692,
"sha256": "1d8ef1192fe744707110d4e25b5adcbc3fad4f065ac8804988ec4864e4a927b6",
"content": "###################... | [
"xlsxwriter/test/worksheet/test_cond_format15.py::TestAssembleWorksheet::test_assemble_xml_file_future_functions",
"xlsxwriter/test/worksheet/test_write_data_validations02.py::TestWriteDataValidations::test_write_data_validations_49"
] | [
"xlsxwriter/test/worksheet/test_cond_format15.py::TestAssembleWorksheet::test_assemble_xml_file",
"xlsxwriter/test/worksheet/test_write_data_validations02.py::TestWriteDataValidations::test_write_data_validations_1",
"xlsxwriter/test/worksheet/test_write_data_validations02.py::TestWriteDataValidations::test_wri... | true | --- /dev/null
+++ b/xlsxwriter/test/test_future_functions_cf_dv.py
@@ -0,0 +1,75 @@
+"""Tests for future function escaping in conditional format and
+data validation formulas."""
+
+import io
+import zipfile
+
+import xlsxwriter
+
+
+def _sheet_xml(workbook_options, user):
+ """Build a workbook in memory, run user(w... | tasks/jmcnamara__XlsxWriter__d4f51258a6/trained.patch | Qwen3.6-35B-A3B, the base model before any training (UD-IQ3_XXS GGUF quant) | {
"seed": 3,
"passed_spec_tests": true,
"spec_tests": 6,
"passed_upstream_tests": true,
"tool_calls": 26,
"wall_seconds": 356.5,
"timed_out": false,
"turn_limit": 30,
"time_limit_seconds": 480,
"generated_files_dropped": 0
} | {
"path": "tasks/jmcnamara__XlsxWriter__d4f51258a6/repo.tar.gz",
"files": 3028,
"bytes": 37575119,
"compressed_bytes": 25093967,
"sha256": "ea9f89c2b16ff8265dbeadee63b216459f3d0ba14fa1ec9549d5379d1abc0b78",
"omitted": []
} |
joblib__joblib__23af2e9430 | joblib/joblib | https://github.com/joblib/joblib | dcc2f17ae131a680f129d8883c5421695109e56f | 23af2e94300c7939e36127ec73f06b9f5f0fdb87 | FIX make MemorizedResult repr reconstructible (#1896) | small | 13 | python | [
"joblib/memory.py"
] | BSD-3-Clause | tasks/joblib__joblib__23af2e9430/LICENSE | LICENSE.txt | 42612911c1872c5e4b43f6ae0e8ee59467cd350332241cf72ce90640264fae6a | [] | ## Context
`joblib/memory.py` implements joblib's disk caching. `MemorizedResult` is the small, picklable reference to a cached value returned by `MemorizedFunc.call_and_shelve()`. Its docstring already promises that the repr is reconstructible:
```
func: function or str
function whose output is cached. T... | tasks/joblib__joblib__23af2e9430/spec.md | true | joblib/test/test_memory.py | false | [
"joblib/test/test_memory.py"
] | [
{
"path": "tasks/joblib__joblib__23af2e9430/hidden/joblib/test/test_memory.py",
"repo_path": "joblib/test/test_memory.py",
"bytes": 55434,
"sha256": "8870b070fab2bcf4e36a0e3d2b5ffff8ae53dc17ff0f93973cc98b75e81e07b8",
"content": "\"\"\"\nTest the memory module.\n\"\"\"\n\n# Author: Gael Varoquaux... | [
"joblib/test/test_memory.py::test_memory_objects_repr",
"joblib/test/test_memory.py::test_memorized_result_repr_roundtrip"
] | [
"joblib/test/test_memory.py::test_memory_integration",
"joblib/test/test_memory.py::test_parallel_call_cached_function_defined_in_jupyter",
"joblib/test/test_memory.py::test_cached_jupyter_function_persists_across_sessions",
"joblib/test/test_memory.py::test_no_memory",
"joblib/test/test_memory.py::test_mem... | true | --- a/joblib/memory.py
+++ b/joblib/memory.py
@@ -259,8 +259,11 @@
self.store_backend.clear_item(self._call_id)
def __repr__(self):
- return '{}(location="{}", func="{}", args_id="{}")'.format(
- self.__class__.__name__, self.store_backend.location, *self._call_id
+ return "{}(l... | tasks/joblib__joblib__23af2e9430/trained.patch | Qwen3.6-35B-A3B, the base model before any training (UD-IQ3_XXS GGUF quant) | {
"seed": 1,
"passed_spec_tests": true,
"spec_tests": 2,
"passed_upstream_tests": true,
"tool_calls": 19,
"wall_seconds": 168,
"timed_out": false,
"turn_limit": 30,
"time_limit_seconds": 480,
"generated_files_dropped": 0
} | {
"path": "tasks/joblib__joblib__23af2e9430/repo.tar.gz",
"files": 142,
"bytes": 1490781,
"compressed_bytes": 354513,
"sha256": "26f869397b575f6b68c89ff7eb7ee33d2e85db31315d4277dc86891c3e2a463b",
"omitted": []
} |
joblib__joblib__8822e6fa2a | joblib/joblib | https://github.com/joblib/joblib | 02170e34adb139126c0b82b1427ceea12c68621a | 8822e6fa2ae122d113e258c7920de239982b738f | FIX respect Memory.cache backend arguments (#1857) | small | 19 | python | [
"joblib/memory.py"
] | BSD-3-Clause | tasks/joblib__joblib__8822e6fa2a/LICENSE | LICENSE.txt | 42612911c1872c5e4b43f6ae0e8ee59467cd350332241cf72ce90640264fae6a | [] | ## Context
`joblib/memory.py` implements joblib's function cache. `Memory` owns one store backend built in `Memory.__init__`; `Memory.cache` wraps a function in a `MemorizedFunc` (or `AsyncMemorizedFunc`) that reads and writes through that backend.
`Memory.__init__` configures the single shared backend with the Memor... | tasks/joblib__joblib__8822e6fa2a/spec.md | true | joblib/test/test_memory.py | true | [
"joblib/test/test_memory.py"
] | [
{
"path": "tasks/joblib__joblib__8822e6fa2a/hidden/joblib/test/test_memory.py",
"repo_path": "joblib/test/test_memory.py",
"bytes": 54487,
"sha256": "6bb84c7131b444d1aac9213b1eab5a133832c5b77e6485984c129e4c426ea23e",
"content": "\"\"\"\nTest the memory module.\n\"\"\"\n\n# Author: Gael Varoquaux... | [
"joblib/test/test_memory.py::test_memory_mmap_mode"
] | [
"joblib/test/test_memory.py::test_memory_integration",
"joblib/test/test_memory.py::test_parallel_call_cached_function_defined_in_jupyter",
"joblib/test/test_memory.py::test_cached_jupyter_function_persists_across_sessions",
"joblib/test/test_memory.py::test_no_memory",
"joblib/test/test_memory.py::test_mem... | true | --- a/joblib/memory.py
+++ b/joblib/memory.py
@@ -1122,12 +1122,24 @@
verbose = self._verbose
if mmap_mode is False:
mmap_mode = self.mmap_mode
+ store_backend = self.store_backend
+ if mmap_mode != self.mmap_mode:
+ store_backend = _store_backend_factory(
+ ... | tasks/joblib__joblib__8822e6fa2a/trained.patch | Qwen3.6-35B-A3B, the base model before any training (UD-IQ3_XXS GGUF quant) | {
"seed": 2,
"passed_spec_tests": true,
"spec_tests": 3,
"passed_upstream_tests": true,
"tool_calls": 11,
"wall_seconds": 114.1,
"timed_out": false,
"turn_limit": 30,
"time_limit_seconds": 480,
"generated_files_dropped": 0
} | {
"path": "tasks/joblib__joblib__8822e6fa2a/repo.tar.gz",
"files": 204,
"bytes": 1491426,
"compressed_bytes": 367110,
"sha256": "e67ea4ba108015439f05b1f932e6711879e29c398d5b0ab1004f08068d6d7dce",
"omitted": []
} |
joblib__joblib__e5ca2bc541 | joblib/joblib | https://github.com/joblib/joblib | d154eafa2143b341465502e7fef0a0534f37408f | e5ca2bc541ca5d09802760f83f30f8f92482d01b | FIX Remove Temporary on Failed Dump (#1922) | small | 54 | python | [
"joblib/_store_backends.py"
] | BSD-3-Clause | tasks/joblib__joblib__e5ca2bc541/LICENSE | LICENSE.txt | 42612911c1872c5e4b43f6ae0e8ee59467cd350332241cf72ce90640264fae6a | [] | ## Context
`joblib/_store_backends.py` implements the cache store used by `joblib.Memory`. Items are written in two steps: data goes to a uniquely named temporary file, which is then atomically moved into place.
The module-level helper builds the temporary name and writes:
```python
def concurrency_safe_write(object... | tasks/joblib__joblib__e5ca2bc541/spec.md | true | joblib/test/test_store_backends.py | false | [
"joblib/test/test_memory.py",
"joblib/test/test_store_backends.py"
] | [
{
"path": "tasks/joblib__joblib__e5ca2bc541/hidden/joblib/test/test_memory.py",
"repo_path": "joblib/test/test_memory.py",
"bytes": 62008,
"sha256": "eca0da4267a9a7ea5262b3538cf9d152ef83c94d025dbbfaf9b0d837c23ee1fd",
"content": "\"\"\"\nTest the memory module.\n\"\"\"\n\n# Author: Gael Varoquaux... | [
"joblib/test/test_store_backends.py::test_concurrency_safe_write",
"joblib/test/test_store_backends.py::test_warning_on_dump_failure",
"joblib/test/test_store_backends.py::test_warning_on_pickling_error"
] | [
"joblib/test/test_memory.py::test_memory_integration",
"joblib/test/test_memory.py::test_parallel_call_cached_function_defined_in_jupyter",
"joblib/test/test_memory.py::test_cached_jupyter_function_persists_across_sessions",
"joblib/test/test_memory.py::test_no_memory",
"joblib/test/test_memory.py::test_mem... | false | null | null | null | null | {
"path": "tasks/joblib__joblib__e5ca2bc541/repo.tar.gz",
"files": 142,
"bytes": 1502026,
"compressed_bytes": 356996,
"sha256": "e9a3392a8b860b9b4cb0aa1dfd096f7a3965192eed153fdefcb7279d997371a3",
"omitted": []
} |
jpadilla__pyjwt__2798504fa2 | jpadilla/pyjwt | https://github.com/jpadilla/pyjwt | 8b4e233a22206b34ec1186e912e75c0b2396ac07 | 2798504fa2663364573cf2d1043d8d7fef389499 | fix: reject DER public keys as HMAC secrets | small | 27 | python | [
"jwt/algorithms.py"
] | MIT | tasks/jpadilla__pyjwt__2798504fa2/LICENSE | LICENSE | 797a7a20231d4c433e9f1911db1731d06b5828b98f499819a034f7c0f56f5ce5 | [] | # Build spec: reject DER public keys as HMAC secrets
## Context
`jwt/algorithms.py` implements PyJWT's signing algorithms. `HMACAlgorithm.prepare_key()` converts an HMAC secret to bytes and rejects inputs that look like asymmetric key material. Today it rejects PEM and SSH keys and JWK JSON, but a raw DER-encoded pub... | tasks/jpadilla__pyjwt__2798504fa2/spec.md | true | tests/test_algorithms.py | true | [
"tests/test_algorithms.py"
] | [
{
"path": "tasks/jpadilla__pyjwt__2798504fa2/hidden/tests/test_algorithms.py",
"repo_path": "tests/test_algorithms.py",
"bytes": 69259,
"sha256": "4a26d34757bead0c74b6b91a729f55dba048bb321978e0286ce2e637245cf75b",
"content": null
}
] | [
"tests/test_algorithms.py::TestAlgorithms::test_hmac_prepare_key_rejects_der_public_key",
"tests/test_algorithms.py::TestAlgorithms::test_hmac_prepare_key_rejects_der_certificate",
"tests/test_algorithms.py::TestAlgorithms::test_hmac_prepare_key_accepts_non_key_binary_secret"
] | [
"tests/test_algorithms.py::TestAlgorithms::test_check_crypto_key_type_should_fail_when_not_using_crypto",
"tests/test_algorithms.py::TestAlgorithms::test_none_algorithm_should_throw_exception_if_key_is_not_none",
"tests/test_algorithms.py::TestAlgorithms::test_none_algorithm_should_throw_exception_on_to_jwk",
... | true | --- a/jwt/algorithms.py
+++ b/jwt/algorithms.py
@@ -309,6 +309,36 @@
raise NotImplementedError()
+def _is_der_format(key_bytes: bytes) -> bool:
+ """Return True if key_bytes plausibly starts with a DER SEQUENCE whose
+ declared content length exactly matches the remaining bytes."""
+ if len(key_by... | tasks/jpadilla__pyjwt__2798504fa2/trained.patch | Qwen3.6-35B-A3B, the base model before any training (UD-IQ3_XXS GGUF quant) | {
"seed": 3,
"passed_spec_tests": true,
"spec_tests": 6,
"passed_upstream_tests": true,
"tool_calls": 13,
"wall_seconds": 119.4,
"timed_out": false,
"turn_limit": 30,
"time_limit_seconds": 480,
"generated_files_dropped": 0
} | {
"path": "tasks/jpadilla__pyjwt__2798504fa2/repo.tar.gz",
"files": 92,
"bytes": 440762,
"compressed_bytes": 109318,
"sha256": "3c60d580589d52eb61831cfe349846751ec3d1eb2a55b3a662784cbc31df236a",
"omitted": []
} |
jpadilla__pyjwt__3cd9ceec33 | jpadilla/pyjwt | https://github.com/jpadilla/pyjwt | 30b7ca1afc9013ab9396c890ea98726a7a8311c7 | 3cd9ceec33ced359decbad75b413ad668ae6332c | fix: reject inconsistent OKP private keys | small | 14 | python | [
"jwt/algorithms.py"
] | MIT | tasks/jpadilla__pyjwt__3cd9ceec33/LICENSE | LICENSE | 797a7a20231d4c433e9f1911db1731d06b5828b98f499819a034f7c0f56f5ce5 | [] | ## Context
`jwt/algorithms.py` implements PyJWT's signing algorithms. `OKPAlgorithm` handles EdDSA (Ed25519 and Ed448) keys. Its `from_jwk` deserialises an OKP JWK into a cryptography key object.
The relevant code, verbatim from `jwt/algorithms.py`:
```python
if "x" not in obj:
raise Inva... | tasks/jpadilla__pyjwt__3cd9ceec33/spec.md | false | tests/test_algorithms.py | true | [
"tests/test_algorithms.py"
] | [
{
"path": "tasks/jpadilla__pyjwt__3cd9ceec33/hidden/tests/test_algorithms.py",
"repo_path": "tests/test_algorithms.py",
"bytes": 72884,
"sha256": "e6810d65a994841a894fae2b887b35c74d68338526ce2962bc3dbb63bd20295e",
"content": null
}
] | [
"tests/test_algorithms.py::TestOKPAlgorithms::test_okp_jwk_should_reject_inconsistent_private_key",
"tests/test_algorithms.py::TestOKPAlgorithms::test_okp_jwk_should_reject_private_key_with_invalid_public_length"
] | [
"tests/test_algorithms.py::TestAlgorithms::test_check_crypto_key_type_should_fail_when_not_using_crypto",
"tests/test_algorithms.py::TestAlgorithms::test_none_algorithm_should_throw_exception_if_key_is_not_none",
"tests/test_algorithms.py::TestAlgorithms::test_none_algorithm_should_throw_exception_on_to_jwk",
... | true | --- a/jwt/algorithms.py
+++ b/jwt/algorithms.py
@@ -1105,7 +1105,17 @@
return Ed448PublicKey.from_public_bytes(x)
d = base64url_decode(obj.get("d"))
if curve == "Ed25519":
- return Ed25519PrivateKey.from_private_bytes(d)
- return E... | tasks/jpadilla__pyjwt__3cd9ceec33/trained.patch | Qwen3.6-35B-A3B, the base model before any training (UD-IQ3_XXS GGUF quant) | {
"seed": 3,
"passed_spec_tests": true,
"spec_tests": 3,
"passed_upstream_tests": true,
"tool_calls": 18,
"wall_seconds": 157.8,
"timed_out": false,
"turn_limit": 30,
"time_limit_seconds": 480,
"generated_files_dropped": 0
} | {
"path": "tasks/jpadilla__pyjwt__3cd9ceec33/repo.tar.gz",
"files": 92,
"bytes": 466229,
"compressed_bytes": 115694,
"sha256": "42b02885c0cf89c92770ffa11d9c5278d27b0252c13370010d52a46d70d773ec",
"omitted": []
} |
jpadilla__pyjwt__7bf3252673 | jpadilla/pyjwt | https://github.com/jpadilla/pyjwt | 1d41a6478e1562e68ff667fcd703356acf085f68 | 7bf32526738fe837387bdedd4849a4a525c33a79 | Accept canonical Base64URL padding in JWT segments (#1216)
* Accept trailing Base64URL padding when decoding JWS segments
The canonical encode/decode round-trip rejected AWS ALB tokens that
include standard '=' padding. Keep rejecting non-alphabet junk such
as '!!!!', but allow trailing padding so those tokens verify... | small | 21 | python | [
"jwt/api_jws.py"
] | MIT | tasks/jpadilla__pyjwt__7bf3252673/LICENSE | LICENSE | 797a7a20231d4c433e9f1911db1731d06b5828b98f499819a034f7c0f56f5ce5 | [] | ## Context
`jwt/api_jws.py` defines `PyJWS`, the JWS implementation behind the module-level `jwt.encode` / `jwt.decode` / `jwt.get_unverified_header` functions bound at the bottom of the file (`decode = _jws_global_obj.decode`, `get_unverified_header = _jws_global_obj.get_unverified_header`). All three segment decodes... | tasks/jpadilla__pyjwt__7bf3252673/spec.md | true | tests/test_api_jws.py | false | [
"tests/test_api_jws.py",
"tests/test_api_jwt.py"
] | [
{
"path": "tasks/jpadilla__pyjwt__7bf3252673/hidden/tests/test_api_jws.py",
"repo_path": "tests/test_api_jws.py",
"bytes": 48045,
"sha256": "e9ac7fc9ffe880368126b85fe18166a3c19f959507c84370404f4dfb304d91bc",
"content": "import json\nfrom decimal import Decimal\n\nimport pytest\n\nfrom jwt.algori... | [
"tests/test_api_jws.py::TestJWS::test_decode_accepts_padded_crypto_segment",
"tests/test_api_jws.py::TestJWS::test_decode_rejects_embedded_padding_in_crypto_segment",
"tests/test_api_jws.py::TestJWS::test_decode_accepts_canonical_base64url_padding",
"tests/test_api_jws.py::TestJWS::test_decode_rejects_invalid... | [
"tests/test_api_jws.py::TestJWS::test_register_algo_does_not_allow_duplicate_registration",
"tests/test_api_jws.py::TestJWS::test_register_algo_rejects_non_algorithm_obj",
"tests/test_api_jws.py::TestJWS::test_unregister_algo_removes_algorithm",
"tests/test_api_jws.py::TestJWS::test_unregister_algo_throws_err... | true | --- a/jwt/api_jws.py
+++ b/jwt/api_jws.py
@@ -325,17 +325,19 @@
@staticmethod
def _decode_base64url_segment(segment: bytes, name: str) -> bytes:
- if len(segment) % 4 == 1 or any(
- character not in _BASE64URL_ALPHABET for character in segment
+ stripped = segment.rstrip(b"=")
+
+ ... | tasks/jpadilla__pyjwt__7bf3252673/trained.patch | Qwen3.6-35B-A3B, the base model before any training (UD-IQ3_XXS GGUF quant) | {
"seed": 1,
"passed_spec_tests": true,
"spec_tests": 5,
"passed_upstream_tests": true,
"tool_calls": 13,
"wall_seconds": 201,
"timed_out": false,
"turn_limit": 30,
"time_limit_seconds": 480,
"generated_files_dropped": 0
} | {
"path": "tasks/jpadilla__pyjwt__7bf3252673/repo.tar.gz",
"files": 92,
"bytes": 483582,
"compressed_bytes": 119673,
"sha256": "0ac66ee89ba79b3e8f6c0c2455b007257ef5463c54abc83bc40769e4e3c0cc70",
"omitted": []
} |
jpadilla__pyjwt__801cd12852 | jpadilla/pyjwt | https://github.com/jpadilla/pyjwt | af8181ca0bec5e6b372fbba9afbe23702b787ceb | 801cd128528c62d9b23fcd161d1a2e1c17982f95 | fix: reject public JWK container HMAC keys | small | 51 | python | [
"jwt/algorithms.py"
] | MIT | tasks/jpadilla__pyjwt__801cd12852/LICENSE | LICENSE | 797a7a20231d4c433e9f1911db1731d06b5828b98f499819a034f7c0f56f5ce5 | [] | ## Context
`jwt/algorithms.py` implements the signing and verification algorithms. `HMACAlgorithm.prepare_key(key)` validates and normalises an HMAC secret before use; it is the only place the change touches. `tests/test_algorithms.py` holds the algorithm tests (pytest-style functions).
The current method, quoted fro... | tasks/jpadilla__pyjwt__801cd12852/spec.md | true | tests/test_algorithms.py | true | [
"tests/test_algorithms.py"
] | [
{
"path": "tasks/jpadilla__pyjwt__801cd12852/hidden/tests/test_algorithms.py",
"repo_path": "tests/test_algorithms.py",
"bytes": 71796,
"sha256": "7e15ed52154584ddbd4d2fa8f9adf929efa3314df09b629000ec2b3f0f8f3eb3",
"content": null
}
] | [
"tests/test_algorithms.py::TestAlgorithms::test_hmac_prepare_key_rejects_public_jwk_containers",
"tests/test_algorithms.py::TestAlgorithms::test_hmac_prepare_key_rejects_deep_public_jwk_array",
"tests/test_algorithms.py::TestAlgorithms::test_hmac_prepare_key_rejects_deep_public_jwk_array_with_escaped_kty",
"t... | [
"tests/test_algorithms.py::TestAlgorithms::test_check_crypto_key_type_should_fail_when_not_using_crypto",
"tests/test_algorithms.py::TestAlgorithms::test_none_algorithm_should_throw_exception_if_key_is_not_none",
"tests/test_algorithms.py::TestAlgorithms::test_none_algorithm_should_throw_exception_on_to_jwk",
... | true | --- a/jwt/algorithms.py
+++ b/jwt/algorithms.py
@@ -391,6 +391,13 @@
"PyJWK / HMACAlgorithm.from_jwk first."
)
+ if isinstance(jwk_obj, dict) and "keys" in jwk_obj:
+ raise InvalidKeyError(
+ "The specified key looks like a JWK Set and should not be "
+ ... | tasks/jpadilla__pyjwt__801cd12852/trained.patch | Qwen3.6-35B-A3B, the base model before any training (UD-IQ3_XXS GGUF quant) | {
"seed": 3,
"passed_spec_tests": true,
"spec_tests": 6,
"passed_upstream_tests": false,
"tool_calls": 12,
"wall_seconds": 114.9,
"timed_out": false,
"turn_limit": 30,
"time_limit_seconds": 480,
"generated_files_dropped": 0
} | {
"path": "tasks/jpadilla__pyjwt__801cd12852/repo.tar.gz",
"files": 92,
"bytes": 450500,
"compressed_bytes": 110908,
"sha256": "3192d14b6372d7ed25cb083a4d61f7c0d35625c0410c6f0c704358ec31dc614f",
"omitted": []
} |
jpadilla__pyjwt__8b4e233a22 | jpadilla/pyjwt | https://github.com/jpadilla/pyjwt | 1f8180a211256dfe5cf32294b6753f554a5a4258 | 8b4e233a22206b34ec1186e912e75c0b2396ac07 | fix: reject loader-accepted PEM variants | small | 20 | python | [
"jwt/utils.py"
] | MIT | tasks/jpadilla__pyjwt__8b4e233a22/LICENSE | LICENSE | 797a7a20231d4c433e9f1911db1731d06b5828b98f499819a034f7c0f56f5ce5 | [] | ## Context
`jwt/utils.py` holds encoding helpers and two key-shape detectors. `is_pem_format(key: bytes) -> bool` decides whether a byte string looks like a PEM block. Its only caller-relevant use is in `HMACAlgorithm.prepare_key` in `jwt/algorithms.py`, which refuses asymmetric key material as an HMAC secret:
```pyt... | tasks/jpadilla__pyjwt__8b4e233a22/spec.md | true | tests/test_utils.py | true | [
"tests/test_algorithms.py"
] | [
{
"path": "tasks/jpadilla__pyjwt__8b4e233a22/hidden/tests/test_algorithms.py",
"repo_path": "tests/test_algorithms.py",
"bytes": 67825,
"sha256": "6b0bf2c027cb923dfcf3cf4619077570bdccdb299decfc50e590bea4bef6b6a0",
"content": null
}
] | [
"tests/test_algorithms.py::TestAlgorithms::test_hmac_should_reject_loader_accepted_pem_mutations",
"tests/test_algorithms.py::TestAlgorithms::test_hmac_should_accept_incomplete_pem_marker",
"tests/test_algorithms.py::TestAlgorithms::test_hmac_should_reject_a_later_pem_block",
"tests/test_algorithms.py::TestAl... | [
"tests/test_algorithms.py::TestAlgorithms::test_check_crypto_key_type_should_fail_when_not_using_crypto",
"tests/test_algorithms.py::TestAlgorithms::test_none_algorithm_should_throw_exception_if_key_is_not_none",
"tests/test_algorithms.py::TestAlgorithms::test_none_algorithm_should_throw_exception_on_to_jwk",
... | true | --- a/jwt/utils.py
+++ b/jwt/utils.py
@@ -116,9 +116,9 @@
_PEM_RE = re.compile(
b"----[- ]BEGIN ("
+ b"|".join(_PEMS)
- + b""")[- ]----\r?
+ + b""")[- ]----[ \t]*\r?
.+?\r?
-----[- ]END \\1[- ]----\r?\n?""",
+----[- ]END \\1[- ]----[ \t]*\r?\n?""",
re.DOTALL,
)
--- a/tests/test_utils.py
+++ b/... | tasks/jpadilla__pyjwt__8b4e233a22/trained.patch | Qwen3.6-35B-A3B, the base model before any training (UD-IQ3_XXS GGUF quant) | {
"seed": 1,
"passed_spec_tests": true,
"spec_tests": 9,
"passed_upstream_tests": false,
"tool_calls": 12,
"wall_seconds": 102.1,
"timed_out": false,
"turn_limit": 30,
"time_limit_seconds": 480,
"generated_files_dropped": 0
} | {
"path": "tasks/jpadilla__pyjwt__8b4e233a22/repo.tar.gz",
"files": 92,
"bytes": 438778,
"compressed_bytes": 108703,
"sha256": "d318c041fb71eb0bc9d936a1ba2c02b7d5edacf4e253e99c06483c95d1ee49a5",
"omitted": []
} |
kjd__idna__5e6e75291d | kjd/idna | https://github.com/kjd/idna | 6ac8a0ab21dffed6b651c0428e675b5e7bbbd1e4 | 5e6e75291d71a2fdae04f4c1aba9fc679871cda9 | Carry the offending codepoint and its position as attributes on IDNAError | medium | 135 | python | [
"idna/core.py"
] | BSD-3-Clause | tasks/kjd__idna__5e6e75291d/LICENSE | LICENSE.md | 1a9a4f0e3d479a27240ddd59a9137a66ab4a0f9dfdc8ca6188cc0bfd85187f04 | [] | ## Context
`idna/core.py` implements IDNA 2008 and UTS #46 validation. Every failure is reported by raising an exception derived from `IDNAError`, defined as:
```python
class IDNAError(UnicodeError):
"""Base exception for all IDNA-encoding related problems"""
```
with subclasses `IDNABidiError`, `InvalidCodepoin... | tasks/kjd__idna__5e6e75291d/spec.md | false | tests/test_idna.py | true | [
"tests/test_idna_errors.py"
] | [
{
"path": "tasks/kjd__idna__5e6e75291d/hidden/tests/test_idna_errors.py",
"repo_path": "tests/test_idna_errors.py",
"bytes": 4856,
"sha256": "09592cd26a4cb6ec3e39353df4777e28ffc5e46690dafe32cb57b08bb5e05089",
"content": "\"\"\"Tests for the machine-readable attributes carried by IDNAError.\"\"\"... | [
"tests/test_idna_errors.py::ErrorAttributeTests::test_attributes_are_populated",
"tests/test_idna_errors.py::ErrorAttributeTests::test_unknown_codepoint_adjacent_to_joiner",
"tests/test_idna_errors.py::ErrorAttributeTests::test_attributes_default_to_none",
"tests/test_idna_errors.py::ErrorAttributeTests::test... | [] | true | --- a/idna/core.py
+++ b/idna/core.py
@@ -43,7 +43,17 @@
class IDNAError(UnicodeError):
"""Base exception for all IDNA-encoding related problems"""
+ def __init__(
+ self,
+ *args: object,
+ codepoint: int | None = None,
+ position: int | None = None,
+ ) -> None:
+ supe... | tasks/kjd__idna__5e6e75291d/trained.patch | Qwen3.6-35B-A3B, the base model before any training (UD-IQ3_XXS GGUF quant) | {
"seed": 2,
"passed_spec_tests": true,
"spec_tests": 11,
"passed_upstream_tests": false,
"tool_calls": 26,
"wall_seconds": 226.2,
"timed_out": false,
"turn_limit": 30,
"time_limit_seconds": 480,
"generated_files_dropped": 0
} | {
"path": "tasks/kjd__idna__5e6e75291d/repo.tar.gz",
"files": 39,
"bytes": 1952755,
"compressed_bytes": 224876,
"sha256": "71ff7b1042217abd26903c40498b993a7363d557094d70da7b60e0e16a286c35",
"omitted": []
} |
prometheus__client_python__fa7efa1873 | prometheus/client_python | https://github.com/prometheus/client_python | 5a47ba6e4a125e321154810a162ca1c1d0d3ed59 | fa7efa18734f4459ed7d990c77da56cf830237fc | Coerce label values to strings in MetricFamily add_metric (#1221)
* Coerce label values to strings in MetricFamily add_metric
The custom collector MetricFamily classes stored label values verbatim,
so non-string values such as ints crashed exposition with
AttributeError: 'int' object has no attribute 'replace'. Coerc... | medium | 65 | python | [
"prometheus_client/metrics_core.py"
] | Apache-2.0 | tasks/prometheus__client_python__fa7efa1873/LICENSE | LICENSE | c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4 | [
{
"path": "docs/themes/hugo-geekdoc/LICENSE",
"licence": "MIT"
}
] | ## Context
`prometheus_client/metrics_core.py` defines the `Metric` class and the `MetricFamily` classes used by custom collectors. Each family's `add_metric` stores label values verbatim, for example in `UnknownMetricFamily.add_metric`:
```python
self.samples.append(Sample(self.name, dict(zip(self._labelnames, label... | tasks/prometheus__client_python__fa7efa1873/spec.md | true | tests/test_metric_family_label_coercion.py | true | [
"tests/test_core.py"
] | [
{
"path": "tasks/prometheus__client_python__fa7efa1873/hidden/tests/test_core.py",
"repo_path": "tests/test_core.py",
"bytes": 57292,
"sha256": "d44fb6a011cb904f3186e4c96c191aec4f1d50e7ed5cec503c6513282daab713",
"content": "from concurrent.futures import ThreadPoolExecutor\nimport os\nfrom threa... | [
"tests/test_core.py::TestMetricFamilies::test_labels_coerced_to_string"
] | [
"tests/test_core.py::TestCounter::test_increment",
"tests/test_core.py::TestCounter::test_reset",
"tests/test_core.py::TestCounter::test_repr",
"tests/test_core.py::TestCounter::test_clear_without_labels_is_noop",
"tests/test_core.py::TestCounter::test_negative_increment_raises",
"tests/test_core.py::Test... | true | --- a/prometheus_client/metrics_core.py
+++ b/prometheus_client/metrics_core.py
@@ -1,4 +1,4 @@
-from typing import Dict, List, Optional, Sequence, Tuple, Union
+from typing import Any, Dict, List, Mapping, Optional, Sequence, Tuple, Union
from .samples import Exemplar, NativeHistogram, Sample, Timestamp
from .vali... | tasks/prometheus__client_python__fa7efa1873/trained.patch | Qwen3.6-35B-A3B, the base model before any training (UD-IQ3_XXS GGUF quant) | {
"seed": 2,
"passed_spec_tests": true,
"spec_tests": 12,
"passed_upstream_tests": true,
"tool_calls": 9,
"wall_seconds": 145.6,
"timed_out": false,
"turn_limit": 30,
"time_limit_seconds": 480,
"generated_files_dropped": 0
} | {
"path": "tasks/prometheus__client_python__fa7efa1873/repo.tar.gz",
"files": 387,
"bytes": 7994741,
"compressed_bytes": 4676335,
"sha256": "92bb9490ce96182941b98eb0444911f3252f84d2b69cebe5b036d99508e76ff9",
"omitted": []
} |
pydantic__pydantic__a813d406d1 | pydantic/pydantic | https://github.com/pydantic/pydantic | a1752092ad4dc6123814e22cd58786f9e7ec6cda | a813d406d144cff8ef9848e791769216666e7a0a | Fix JSON Schema for `arguments` schema (#13953) | small | 35 | python | [
"pydantic/json_schema.py"
] | MIT | tasks/pydantic__pydantic__a813d406d1/LICENSE | LICENSE | a9e186f3ca16b5eef84318e7a701721351a00cb7b8ae3a4394b67b49e3529ef3 | [
{
"path": "pydantic-core/LICENSE",
"licence": "MIT"
},
{
"path": "tests/benchmarks/corpus/anthropic/LICENSE",
"licence": "Apache-2.0"
},
{
"path": "tests/benchmarks/corpus/anthropic/LICENSE-MIT",
"licence": "Apache-2.0 AND MIT"
},
{
"path": "tests/benchmarks/corpus/google-gen... | ## Context
`pydantic/json_schema.py` defines `GenerateJsonSchema`, the class that turns pydantic-core core schemas into JSON schemas. The change touches the three methods that handle function-signature core schemas: `GenerateJsonSchema.arguments_schema` (core schema type `'arguments'`), `GenerateJsonSchema.kw_argument... | tasks/pydantic__pydantic__a813d406d1/spec.md | true | tests/test_json_schema_arguments.py | false | [
"tests/test_json_schema.py"
] | [
{
"path": "tasks/pydantic__pydantic__a813d406d1/hidden/tests/test_json_schema.py",
"repo_path": "tests/test_json_schema.py",
"bytes": 255216,
"sha256": "23ef0c1372ff8aae4f555ae26398c765daed03a0f0309fcb59c83bcf6201e5ba",
"content": null
}
] | [
"tests/test_json_schema.py::test_with_json_schema_doesnt_share_schema",
"tests/test_json_schema.py::test_json_schema_arguments_var_kwargs_unpacked_typed_dict",
"tests/test_json_schema.py::test_json_schema_arguments_var_kwargs_unpacked_typed_dict_extra_items",
"tests/test_json_schema.py::test_json_schema_argum... | [
"tests/test_json_schema.py::test_by_alias",
"tests/test_json_schema.py::test_validate_by_alias_false_uses_the_field_name",
"tests/test_json_schema.py::test_validate_by_alias_false_is_scoped_to_its_own_model",
"tests/test_json_schema.py::test_explicit_by_alias_overrides_validate_by_alias",
"tests/test_json_s... | false | null | null | null | null | {
"path": "tasks/pydantic__pydantic__a813d406d1/repo.tar.gz",
"files": 3577,
"bytes": 15479591,
"compressed_bytes": 4413233,
"sha256": "509e35e1073dcdf653b6cdc11c4c3df1e4483f8480255db22ddc30d430d05648",
"omitted": []
} |
pydantic__pydantic__dabcc6461d | pydantic/pydantic | https://github.com/pydantic/pydantic | c9b92900dc74802a04cc20519b753a7d8f3d2844 | dabcc6461dafa4337c52faf3e9941431ea41ce4a | Fix `Decimal` JSON Schema patterns accepting bare `0` when no whole digits are allowed (#14244) | small | 23 | python | [
"pydantic/json_schema.py"
] | MIT | tasks/pydantic__pydantic__dabcc6461d/LICENSE | LICENSE | a9e186f3ca16b5eef84318e7a701721351a00cb7b8ae3a4394b67b49e3529ef3 | [
{
"path": "pydantic-core/LICENSE",
"licence": "MIT"
},
{
"path": "tests/benchmarks/corpus/anthropic/LICENSE",
"licence": "Apache-2.0"
},
{
"path": "tests/benchmarks/corpus/anthropic/LICENSE-MIT",
"licence": "Apache-2.0 AND MIT"
},
{
"path": "tests/benchmarks/corpus/google-gen... | ## Context
`pydantic/json_schema.py` generates JSON schemas from core schemas. `GenerateJsonSchema.decimal_schema()` builds the schema for `Decimal` and, when `GenerateJsonSchema.get_decimal_pattern()` returns a pattern, attaches it to the string sub-schema:
```python
def decimal_schema(self, schema: core_schema.... | tasks/pydantic__pydantic__dabcc6461d/spec.md | false | tests/test_decimal_json_schema_pattern.py | true | [
"tests/test_json_schema.py"
] | [
{
"path": "tasks/pydantic__pydantic__dabcc6461d/hidden/tests/test_json_schema.py",
"repo_path": "tests/test_json_schema.py",
"bytes": 257396,
"sha256": "54998fb97ad83e0704954b53ab595b66057a70b0047c73b77631673ecf7468da",
"content": null
}
] | [
"tests/test_json_schema.py::test_decimal_pattern_no_whole_digits_allowed",
"tests/test_json_schema.py::test_decimal_pattern_reject_invalid_no_whole_digits_allowed"
] | [
"tests/test_json_schema.py::test_by_alias",
"tests/test_json_schema.py::test_validate_by_alias_false_uses_the_field_name",
"tests/test_json_schema.py::test_validate_by_alias_false_is_scoped_to_its_own_model",
"tests/test_json_schema.py::test_explicit_by_alias_overrides_validate_by_alias",
"tests/test_json_s... | true | --- a/pydantic/json_schema.py
+++ b/pydantic/json_schema.py
@@ -2905,7 +2905,10 @@
opt_int_part = f'0*{_repeat("[0-9]", 0, whole)}'
opt_frac_part = rf'\.{_repeat("[0-9]", 0, places)}0*'
frac_part = rf'\.{_repeat("[0-9]", 1, places)}0*' if places else r'\.0+'
- alts += [f'{int_part}(?:{... | tasks/pydantic__pydantic__dabcc6461d/trained.patch | Qwen3.6-35B-A3B, the base model before any training (UD-IQ3_XXS GGUF quant) | {
"seed": 1,
"passed_spec_tests": true,
"spec_tests": 13,
"passed_upstream_tests": false,
"tool_calls": 14,
"wall_seconds": 283,
"timed_out": false,
"turn_limit": 30,
"time_limit_seconds": 480,
"generated_files_dropped": 0
} | {
"path": "tasks/pydantic__pydantic__dabcc6461d/repo.tar.gz",
"files": 3577,
"bytes": 15493915,
"compressed_bytes": 4415804,
"sha256": "3561952045aa909d8de3f4aedb35eec87fe43cb2e8473a1fbd8a37146147d831",
"omitted": []
} |
pydantic__pydantic__e2be23619b | pydantic/pydantic | https://github.com/pydantic/pydantic | 77fad186682d0c22cad713e34ca9b8b830362ed0 | e2be23619bccf605e97d89097477da69e9808886 | Construct builtin scalar union schemas directly (#14138) | small | 20 | python | [
"pydantic/_internal/_generate_schema.py"
] | MIT | tasks/pydantic__pydantic__e2be23619b/LICENSE | LICENSE | a9e186f3ca16b5eef84318e7a701721351a00cb7b8ae3a4394b67b49e3529ef3 | [
{
"path": "pydantic-core/LICENSE",
"licence": "MIT"
},
{
"path": "tests/benchmarks/corpus/anthropic/LICENSE",
"licence": "Apache-2.0"
},
{
"path": "tests/benchmarks/corpus/anthropic/LICENSE-MIT",
"licence": "Apache-2.0 AND MIT"
},
{
"path": "tests/benchmarks/corpus/google-gen... | ## Context
`pydantic/_internal/_generate_schema.py` converts Python types to pydantic-core schemas. `GenerateSchema.generate_schema()` dispatches simple builtin types through the class-level `_handlers` table, and everything else through `_generate_schema_inner()`.
The change touches `GenerateSchema._generate_schema_... | tasks/pydantic__pydantic__e2be23619b/spec.md | true | tests/test_scalar_union_schemas.py | false | [
"tests/types/unions/test_direct_schema.py"
] | [
{
"path": "tasks/pydantic__pydantic__e2be23619b/hidden/tests/types/unions/test_direct_schema.py",
"repo_path": "tests/types/unions/test_direct_schema.py",
"bytes": 7100,
"sha256": "ed5c5fda1ef2c9eae1f930b2b97742d4705b0470db23919701826e82f3bd6d4e",
"content": "\"\"\"Direct construction preserves ... | [
"tests/types/unions/test_direct_schema.py::test_direct_schema_matches_general_union",
"tests/types/unions/test_direct_schema.py::test_union_spellings",
"tests/types/unions/test_direct_schema.py::test_independent_mutable_schemas",
"tests/types/unions/test_direct_schema.py::test_member_order_affects_validation"... | [] | false | null | null | null | null | {
"path": "tasks/pydantic__pydantic__e2be23619b/repo.tar.gz",
"files": 3575,
"bytes": 15479710,
"compressed_bytes": 4414651,
"sha256": "32c6755e30d0ff9309838771b8722a4cd2667eff7e34c8ec3cc98284cdb2b0e2",
"omitted": []
} |
pypa__wheel__0ca6f24ed0 | pypa/wheel | https://github.com/pypa/wheel | 4a63cafb301141d44a2fcae487f17bf255a50bdb | 0ca6f24ed0f7045cf72b792653c237341dfbd15d | feat: add --local-version option to wheel pack (#694)
Closes #570. | medium | 61 | python | [
"src/wheel/_commands/__init__.py",
"src/wheel/_commands/pack.py"
] | MIT | tasks/pypa__wheel__0ca6f24ed0/LICENSE | LICENSE.txt | 30c23618679108f3e8ea1d2a658c7ca417bdfc891c98ef1a89fa4ff0c9828654 | [] | ## Context
The `wheel pack` command repacks an unpacked wheel directory into a `.whl` file. The change adds a `--local-version` option so the repacked wheel can carry a PEP 440 local version segment (for example `1.0+local`), per issue #570.
- `src/wheel/_commands/pack.py`: defines `pack()`, which finds the `.dist-in... | tasks/pypa__wheel__0ca6f24ed0/spec.md | true | tests/commands/test_pack_local_version.py | false | [
"tests/commands/test_pack.py"
] | [
{
"path": "tasks/pypa__wheel__0ca6f24ed0/hidden/tests/commands/test_pack.py",
"repo_path": "tests/commands/test_pack.py",
"bytes": 7413,
"sha256": "aa57cbce0ebb404814195d7e99a314dcc432ce0ca822498586fb39e2cf0807e3",
"content": "from __future__ import annotations\n\nimport email.policy\nimport os\... | [
"tests/commands/test_pack.py::test_pack_local_version",
"tests/commands/test_pack.py::test_pack_local_version_rejects_hyphen",
"tests/commands/test_pack.py::test_pack_local_version_rejects_invalid"
] | [
"tests/commands/test_pack.py::test_pack"
] | true | --- a/src/wheel/_commands/__init__.py
+++ b/src/wheel/_commands/__init__.py
@@ -21,7 +21,7 @@
def pack_f(args: argparse.Namespace) -> None:
from .pack import pack
- pack(args.directory, args.dest_dir, args.build_number)
+ pack(args.directory, args.dest_dir, args.build_number, args.local_version)
def ... | tasks/pypa__wheel__0ca6f24ed0/trained.patch | Qwen3.6-35B-A3B, the base model before any training (UD-IQ3_XXS GGUF quant) | {
"seed": 2,
"passed_spec_tests": true,
"spec_tests": 9,
"passed_upstream_tests": false,
"tool_calls": 11,
"wall_seconds": 120,
"timed_out": false,
"turn_limit": 30,
"time_limit_seconds": 480,
"generated_files_dropped": 0
} | {
"path": "tasks/pypa__wheel__0ca6f24ed0/repo.tar.gz",
"files": 53,
"bytes": 208889,
"compressed_bytes": 62939,
"sha256": "2f4f73593d221c3374693ae133530c1f1c689b6af54f5ecf4dcb3f8f1d159493",
"omitted": []
} |
pypa__wheel__0ce509e02d | pypa/wheel | https://github.com/pypa/wheel | 39039c0f3446c1ed5ec52621e98bc2bad8178a06 | 0ce509e02dc3cd1b7b0bdf868482de062b3c21c3 | Added the wheel info subcommand (#669)
Features:
- Shows package name, version, and build information
- Displays wheel format version and generator
- Lists supported Python versions, ABI, and platform tags
- Shows package metadata (summary, author, license, classifiers)
- Displays dependencies and file count/size info... | medium | 140 | python | [
"src/wheel/_commands/__init__.py",
"src/wheel/_commands/info.py"
] | MIT | tasks/pypa__wheel__0ce509e02d/LICENSE | LICENSE.txt | 30c23618679108f3e8ea1d2a658c7ca417bdfc891c98ef1a89fa4ff0c9828654 | [] | ## Context
The `wheel` command-line tool lives in `src/wheel/_commands/__init__.py`. It defines one `*_f` function per subcommand, each lazily importing its implementation module, and `parser()` registers each subcommand. The pattern to follow:
```python
def unpack_f(args: argparse.Namespace) -> None:
from .unpac... | tasks/pypa__wheel__0ce509e02d/spec.md | true | tests/commands/test_info.py | false | [
"tests/commands/test_info.py"
] | [
{
"path": "tasks/pypa__wheel__0ce509e02d/hidden/tests/commands/test_info.py",
"repo_path": "tests/commands/test_info.py",
"bytes": 6434,
"sha256": "ef4734758bcd834531b2faf2524be6a4b09246e3359ca70e5506de693ae45665",
"content": "from __future__ import annotations\n\nimport base64\nimport hashlib\n... | [
"tests/commands/test_info.py::test_info_basic",
"tests/commands/test_info.py::test_info_generator",
"tests/commands/test_info.py::test_info_multiple_generators",
"tests/commands/test_info.py::test_info_no_generator",
"tests/commands/test_info.py::test_info_verbose",
"tests/commands/test_info.py::test_info... | [] | true | --- a/src/wheel/_commands/__init__.py
+++ b/src/wheel/_commands/__init__.py
@@ -49,6 +49,12 @@
print(name)
+def info_f(args: argparse.Namespace) -> None:
+ from .info import info
+
+ info(args.wheel, args.verbose)
+
+
def version_f(args: argparse.Namespace) -> None:
from .. import __version__
... | tasks/pypa__wheel__0ce509e02d/trained.patch | Qwen3.6-35B-A3B, the base model before any training (UD-IQ3_XXS GGUF quant) | {
"seed": 3,
"passed_spec_tests": true,
"spec_tests": 9,
"passed_upstream_tests": false,
"tool_calls": 13,
"wall_seconds": 137.9,
"timed_out": false,
"turn_limit": 30,
"time_limit_seconds": 480,
"generated_files_dropped": 0
} | {
"path": "tasks/pypa__wheel__0ce509e02d/repo.tar.gz",
"files": 51,
"bytes": 193381,
"compressed_bytes": 59562,
"sha256": "4013321910818d4fc7b6884f14da98550ff4087329fed4dc50d96da0407bad5b",
"omitted": []
} |
pytest-dev__iniconfig__6d0af4529e | pytest-dev/iniconfig | https://github.com/pytest-dev/iniconfig | e2d89f5283cbeb4b4ca55fe88b1c353c343b4972 | 6d0af4529e4375e49dc871aa3d5ce17fe1791afe | Add strip_section_whitespace parameter to address issue #4
Add opt-in Unicode whitespace stripping for section names (issue #4)
Changes:
- Add strip_section_whitespace parameter to IniConfig.parse()
- Default: False (preserves backward compatibility)
- When True: strips Unicode whitespace from section names
- Doc... | medium | 51 | python | [
"src/iniconfig/__init__.py",
"src/iniconfig/_parse.py"
] | MIT | tasks/pytest-dev__iniconfig__6d0af4529e/LICENSE | LICENSE | 3409fa91f7ace557894632676656e32264fe5ef7581535725dc9a23774551bd4 | [] | ## Context
`iniconfig` parses INI files. `IniConfig.parse()` in `src/iniconfig/__init__.py` is the public classmethod that reads data and delegates to `_parse.parse_ini_data`; `IniConfig.__init__` also calls it but pins the old behaviour (`strip_inline_comments=False`). The parsing pipeline lives in `src/iniconfig/_pa... | tasks/pytest-dev__iniconfig__6d0af4529e/spec.md | false | testing/test_iniconfig.py | true | [
"testing/test_iniconfig.py"
] | [
{
"path": "tasks/pytest-dev__iniconfig__6d0af4529e/hidden/testing/test_iniconfig.py",
"repo_path": "testing/test_iniconfig.py",
"bytes": 11942,
"sha256": "1c782d21edcce3def9b22701fcece4bb43ec64b620d459084a0e9a153e312c54",
"content": "from pathlib import Path\nfrom textwrap import dedent\n\nimpor... | [
"testing/test_iniconfig.py::test_unicode_whitespace_stripped",
"testing/test_iniconfig.py::test_unicode_whitespace_in_section_names_with_opt_in",
"testing/test_iniconfig.py::test_unicode_whitespace_in_key_names"
] | [
"testing/test_iniconfig.py::test_tokenize",
"testing/test_iniconfig.py::test_parse_empty",
"testing/test_iniconfig.py::test_ParseError",
"testing/test_iniconfig.py::test_continuation_needs_perceeding_token",
"testing/test_iniconfig.py::test_continuation_cant_be_after_section",
"testing/test_iniconfig.py::... | true | --- /dev/null
+++ b/CHANGELOG.md
@@ -0,0 +1,5 @@
+# Changelog
+
+## 2.0.1
+
+- `IniConfig.parse` gains `strip_section_whitespace` keyword argument (default `False`, opt-in stripping of Unicode whitespace from section names). Values and key names already strip Unicode whitespace via Python 3 `str.strip()`, a benefit ini... | tasks/pytest-dev__iniconfig__6d0af4529e/trained.patch | Qwen3.6-35B-A3B, the base model before any training (UD-IQ3_XXS GGUF quant) | {
"seed": 3,
"passed_spec_tests": true,
"spec_tests": 7,
"passed_upstream_tests": true,
"tool_calls": 15,
"wall_seconds": 156.7,
"timed_out": false,
"turn_limit": 30,
"time_limit_seconds": 480,
"generated_files_dropped": 0
} | {
"path": "tasks/pytest-dev__iniconfig__6d0af4529e/repo.tar.gz",
"files": 16,
"bytes": 53685,
"compressed_bytes": 17084,
"sha256": "73e3899f773f67da0aef70804fa993596c0bb5a384a58eabdb1b3cde96eaf7e0",
"omitted": []
} |
python-hyper__h2__0d72e3429a | python-hyper/h2 | https://github.com/python-hyper/h2 | 9268b7235f345e6a335733d56d298594e8069aa3 | 0d72e3429a57840cf08898b14df1de9363ffb9f6 | utilities/tests: align CONNECT validation with RFC 9113 s8.3 & RFC 8441 s4; add tests; changelog | small | 32 | python | [
"src/h2/utilities.py"
] | MIT | tasks/python-hyper__h2__0d72e3429a/LICENSE | LICENSE | 7a65a5af0cbabf1c16251c7c6b2b7cb46d16a7222e79975b9b61fcd66a2e3f28 | [] | ## Context
`src/h2/utilities.py` holds the header validation and normalisation pipeline. The change touches only `_check_pseudo_header_field_acceptability`, which is called at the end of `_reject_pseudo_header_fields` and enforces which pseudo-headers a request or response may carry.
Relevant existing definitions in ... | tasks/python-hyper__h2__0d72e3429a/spec.md | false | tests/test_invalid_headers.py | true | [
"tests/test_connect_pseudo_headers.py",
"tests/test_connect_roundtrip_and_edges.py"
] | [
{
"path": "tasks/python-hyper__h2__0d72e3429a/hidden/tests/test_connect_pseudo_headers.py",
"repo_path": "tests/test_connect_pseudo_headers.py",
"bytes": 2964,
"sha256": "76f7c7d7c4c3f07c128bab986857d93e51ab2ee3d1cb3dd4d47917c3a2310f43",
"content": "\"\"\"unit tests for ordinary vs extended CONN... | [
"tests/test_connect_pseudo_headers.py::test_ordinary_connect_allows_no_scheme_no_path_and_send_headers_ok",
"tests/test_connect_pseudo_headers.py::test_ordinary_connect_rejects_path_or_scheme",
"tests/test_connect_pseudo_headers.py::test_extended_connect_requires_regular_tuple_and_send_headers_ok",
"tests/tes... | [] | true | --- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -1,6 +1,15 @@
Release History
===============
+Unreleased
+----------
+
+**Bugfixes**
+
+- CONNECT requests no longer require ``:scheme`` and ``:path`` pseudo-headers
+ and now reject them, per RFC 9113 §8.3; extended CONNECT requests carrying
+ ``:protocol`` continue to... | tasks/python-hyper__h2__0d72e3429a/trained.patch | Qwen3.6-35B-A3B, the base model before any training (UD-IQ3_XXS GGUF quant) | {
"seed": 2,
"passed_spec_tests": true,
"spec_tests": 7,
"passed_upstream_tests": true,
"tool_calls": 12,
"wall_seconds": 152.3,
"timed_out": false,
"turn_limit": 30,
"time_limit_seconds": 480,
"generated_files_dropped": 12
} | {
"path": "tasks/python-hyper__h2__0d72e3429a/repo.tar.gz",
"files": 107,
"bytes": 3370816,
"compressed_bytes": 2143977,
"sha256": "fd66a19a218d54f4f5d713572ee0288aae7791bbcd1b49c83c27876991773a09",
"omitted": []
} |
rr-__docstring_parser__24c4ade446 | rr-/docstring_parser | https://github.com/rr-/docstring_parser | 5f7dedd89e5f092f4ae1c829efa81139c207327e | 24c4ade4466325101ec637c2670115a7bff4d50f | google: read named return heads
A Returns or Yields item written as "x (int): text" gave no type and
no name, and kept the whole line as its description. Its head now
gives the return's name and type, as BEHAVIOR.md describes, and
composes back the same. | small | 10 | python | [
"docstring_parser/google.py"
] | MIT | tasks/rr-__docstring_parser__24c4ade446/LICENSE | LICENSE.md | dfe514a337ae8417abd31a8af707bbd6172b03e5430bb083e145899ea97a3eea | [] | ## Context
`docstring_parser/google.py` parses Google-style docstrings. A `Returns:` or `Yields:` item such as `x (int): text` reaches `Parser._meta_of`, which decides whether the section holds one block of prose or several items:
```python
if (
section.type == SectionType.SINGULAR_OR_MULTIPLE
... | tasks/rr-__docstring_parser__24c4ade446/spec.md | true | docstring_parser/tests/test_google_returns.py | false | [
"docstring_parser/tests/test_google.py"
] | [
{
"path": "tasks/rr-__docstring_parser__24c4ade446/hidden/docstring_parser/tests/test_google.py",
"repo_path": "docstring_parser/tests/test_google.py",
"bytes": 13809,
"sha256": "d7e494d1215f55ec9c1fd3f59b3c67f51f652f6ab9959d566b7c717ea9447271",
"content": "\"\"\"Tests for Google-style docstring... | [
"docstring_parser/tests/test_google.py::test_named_return_head"
] | [
"docstring_parser/tests/test_google.py::test_google_parser_unknown_section",
"docstring_parser/tests/test_google.py::test_google_parser_multi_line_parameter_type",
"docstring_parser/tests/test_google.py::test_google_parser_custom_sections",
"docstring_parser/tests/test_google.py::test_google_parser_custom_sec... | false | null | null | null | null | {
"path": "tasks/rr-__docstring_parser__24c4ade446/repo.tar.gz",
"files": 1606,
"bytes": 3492414,
"compressed_bytes": 544570,
"sha256": "7cc8eea44e3ebea9917895e2b39edf9ec96280765d69022cc006bae19ec2d13a",
"omitted": []
} |
rr-__docstring_parser__5f7dedd89e | rr-/docstring_parser | https://github.com/rr-/docstring_parser | b81ef97cbcd941b90c3f5f79781dd87ed4e50898 | 5f7dedd89e5f092f4ae1c829efa81139c207327e | docstring_parser: normalise whitespace in types
A type kept the spaces, tabs and newlines it was written with, so a
type wrapped over two lines held a newline. Each run of whitespace in
a type is now one space, in every style, except in a part that quotes
text. raw_type_name still holds the type as written. | small | 11 | python | [
"docstring_parser/_text.py"
] | MIT | tasks/rr-__docstring_parser__5f7dedd89e/LICENSE | LICENSE.md | dfe514a337ae8417abd31a8af707bbd6172b03e5430bb083e145899ea97a3eea | [] | ## Context
`docstring_parser/_text.py` holds the text rules every docstring style shares. `type_spec(type_name)` splits the marks of an optional param, and its default, off a param's type; `param_spec(type_name, description)` calls it and adds a default found in the description. Every style builds its params through `... | tasks/rr-__docstring_parser__5f7dedd89e/spec.md | false | docstring_parser/tests/test_defaults.py | true | [
"docstring_parser/tests/test_parsers.py"
] | [
{
"path": "tasks/rr-__docstring_parser__5f7dedd89e/hidden/docstring_parser/tests/test_parsers.py",
"repo_path": "docstring_parser/tests/test_parsers.py",
"bytes": 7984,
"sha256": "6b2e5b390189247eb20cf090bec8751005a850953ba73e256e6feb53f2280d4a",
"content": "\"\"\"Tests for parser objects, which... | [
"docstring_parser/tests/test_parsers.py::test_type_whitespace_is_normalised",
"docstring_parser/tests/test_parsers.py::test_quoted_type_keeps_its_whitespace"
] | [
"docstring_parser/tests/test_parsers.py::test_parser_parses_as_parse",
"docstring_parser/tests/test_parsers.py::test_auto_parser_parses_as_parse",
"docstring_parser/tests/test_parsers.py::test_auto_parser_with_sections",
"docstring_parser/tests/test_parsers.py::test_parse_reuses_parsers_for_sections",
"docs... | true | --- a/docstring_parser/_text.py
+++ b/docstring_parser/_text.py
@@ -169,6 +169,30 @@
_OPTIONAL_SUFFIX = re.compile(r"\s*\(optional\)$", flags=re.I)
+def _normalise_spaces(text: str) -> str:
+ """Replace each run of whitespace outside quotes with one space."""
+ final: T.List[str] = []
+ quote = ""
+ st... | tasks/rr-__docstring_parser__5f7dedd89e/trained.patch | Qwen3.6-35B-A3B, the base model before any training (UD-IQ3_XXS GGUF quant) | {
"seed": 2,
"passed_spec_tests": true,
"spec_tests": 8,
"passed_upstream_tests": true,
"tool_calls": 29,
"wall_seconds": 433.4,
"timed_out": false,
"turn_limit": 30,
"time_limit_seconds": 480,
"generated_files_dropped": 0
} | {
"path": "tasks/rr-__docstring_parser__5f7dedd89e/repo.tar.gz",
"files": 1606,
"bytes": 3490895,
"compressed_bytes": 544260,
"sha256": "64c8db4d21e3c672d5e13bc8e8ec032cfd801a8404a05fb6f22994ea288b9edf",
"omitted": []
} |
rr-__docstring_parser__a8e2a3ba5a | rr-/docstring_parser | https://github.com/rr-/docstring_parser | b9bad5027b22ebd52ec82278b8d6f43e1f4ddaaa | a8e2a3ba5a4cdd906830735cb41a6a22c9346bf4 | common: look up params, attrs and raises by name
Add Docstring.params_by_name, attrs_by_name and raises_by_type next to
the lists they mirror. Each is a read-only Mapping built from meta on
every access, so it can't go stale, and a name given twice maps to its
first item, as returns takes the first return. Raises with... | small | 46 | python | [
"docstring_parser/common.py"
] | MIT | tasks/rr-__docstring_parser__a8e2a3ba5a/LICENSE | LICENSE.md | dfe514a337ae8417abd31a8af707bbd6172b03e5430bb083e145899ea97a3eea | [] | ## Context
`docstring_parser/common.py` holds the shared models. `Docstring` stores every parsed item in `self.meta` (a `T.List[DocstringMeta]`) and exposes filtered views as properties. The three the change mirrors:
```python
@property
def params(self) -> T.List[DocstringParam]:
"""Return a list of i... | tasks/rr-__docstring_parser__a8e2a3ba5a/spec.md | false | docstring_parser/tests/test_lookups.py | true | [
"docstring_parser/tests/test_kinds.py"
] | [
{
"path": "tasks/rr-__docstring_parser__a8e2a3ba5a/hidden/docstring_parser/tests/test_kinds.py",
"repo_path": "docstring_parser/tests/test_kinds.py",
"bytes": 7995,
"sha256": "2e717756d7ae4535f7a172adc72fb0c7a5055b5ac1966f318323c3099e2908f4",
"content": "\"\"\"Tests for what kind of item each me... | [
"docstring_parser/tests/test_kinds.py::test_params_and_attrs_by_name",
"docstring_parser/tests/test_kinds.py::test_repeated_name_maps_to_first",
"docstring_parser/tests/test_kinds.py::test_raises_by_type",
"docstring_parser/tests/test_kinds.py::test_lookups_are_read_only_and_fresh"
] | [
"docstring_parser/tests/test_kinds.py::test_kind_matches_class",
"docstring_parser/tests/test_kinds.py::test_kind_must_fit_class",
"docstring_parser/tests/test_kinds.py::test_sub_kinds",
"docstring_parser/tests/test_kinds.py::test_params_leave_out_attributes",
"docstring_parser/tests/test_kinds.py::test_ret... | true | --- a/docstring_parser/common.py
+++ b/docstring_parser/common.py
@@ -1,6 +1,7 @@
"""Common methods for parsing."""
import enum
+import types
import typing as T
# Kept here for code that imported them from this module.
@@ -379,6 +380,22 @@
return None
+def _by_key(
+ items: T.Iterable[T.Any], key: T... | tasks/rr-__docstring_parser__a8e2a3ba5a/trained.patch | Qwen3.6-35B-A3B, the base model before any training (UD-IQ3_XXS GGUF quant) | {
"seed": 2,
"passed_spec_tests": true,
"spec_tests": 9,
"passed_upstream_tests": true,
"tool_calls": 10,
"wall_seconds": 115.1,
"timed_out": false,
"turn_limit": 30,
"time_limit_seconds": 480,
"generated_files_dropped": 0
} | {
"path": "tasks/rr-__docstring_parser__a8e2a3ba5a/repo.tar.gz",
"files": 1606,
"bytes": 3502091,
"compressed_bytes": 546814,
"sha256": "a283e55f049eaf22d78ce99fce47eb6e18a3c57746dc178ba4efd39846582a34",
"omitted": []
} |
rr-__docstring_parser__b81ef97cbc | rr-/docstring_parser | https://github.com/rr-/docstring_parser | 1e9089d17861dbc620e42383119639e75c1e3684 | b81ef97cbcd941b90c3f5f79781dd87ed4e50898 | rest+epydoc: fix keyword fields and blank lines
ReST read :key: as a keyword and did not know :kwarg: or :kwparam:.
As in Sphinx, :key: is now a param and the other two are keywords. An
empty :rtype: or :ytype: is ignored instead of giving the type "".
Epydoc dropped the blank lines in a field's description, so its
p... | medium | 15 | python | [
"docstring_parser/epydoc.py",
"docstring_parser/rest.py"
] | MIT | tasks/rr-__docstring_parser__b81ef97cbc/LICENSE | LICENSE.md | dfe514a337ae8417abd31a8af707bbd6172b03e5430bb083e145899ea97a3eea | [] | # Build spec: ReST keyword fields, empty type fields; Epydoc blank lines
## Context
`docstring_parser/rest.py` is the ReST parser and `docstring_parser/epydoc.py` the Epydoc parser. Both expose `Parser.try_parse` plus module-level `parse`/`try_parse`, and both are driven by a field table built from their `default_sec... | tasks/rr-__docstring_parser__b81ef97cbc/spec.md | false | docstring_parser/tests/test_parsers.py | true | [
"docstring_parser/tests/test_parsers.py"
] | [
{
"path": "tasks/rr-__docstring_parser__b81ef97cbc/hidden/docstring_parser/tests/test_parsers.py",
"repo_path": "docstring_parser/tests/test_parsers.py",
"bytes": 7086,
"sha256": "166511b49f09fade33b5ebe326b50d8a5f1410f8b5de2e0cbe41b4d635443edd",
"content": "\"\"\"Tests for parser objects, which... | [
"docstring_parser/tests/test_parsers.py::test_rest_param_and_keyword_fields",
"docstring_parser/tests/test_parsers.py::test_rest_empty_return_type_is_ignored",
"docstring_parser/tests/test_parsers.py::test_epydoc_keeps_blank_lines_in_a_field"
] | [
"docstring_parser/tests/test_parsers.py::test_parser_parses_as_parse",
"docstring_parser/tests/test_parsers.py::test_auto_parser_parses_as_parse",
"docstring_parser/tests/test_parsers.py::test_auto_parser_with_sections",
"docstring_parser/tests/test_parsers.py::test_parse_reuses_parsers_for_sections",
"docs... | false | null | null | null | null | {
"path": "tasks/rr-__docstring_parser__b81ef97cbc/repo.tar.gz",
"files": 1606,
"bytes": 3489453,
"compressed_bytes": 543911,
"sha256": "f3ddd7cb3773cba0c987bd5a2c0cc2b7e73d570d5898dd0950688054c6a290cd",
"omitted": []
} |
rr-__docstring_parser__b9bad5027b | rr-/docstring_parser | https://github.com/rr-/docstring_parser | ed166fb61d35e67f427c0058f50af69178cee262 | b9bad5027b22ebd52ec82278b8d6f43e1f4ddaaa | docstring_parser: compose blank lines empty
Google, Numpydoc and Epydoc compose joined an item's description lines
with the indent, so a blank line inside it came out as spaces alone.
Indent only the lines that have text, through one shared helper. ReST
already wrote them empty.
A new invariant checks that no case in... | medium | 34 | python | [
"docstring_parser/_compose.py",
"docstring_parser/epydoc.py",
"docstring_parser/google.py",
"docstring_parser/numpydoc.py"
] | MIT | tasks/rr-__docstring_parser__b9bad5027b/LICENSE | LICENSE.md | dfe514a337ae8417abd31a8af707bbd6172b03e5430bb083e145899ea97a3eea | [] | ## Context
The library parses and composes docstrings in four styles. Composition lives in `compose()` in `docstring_parser/epydoc.py`, `docstring_parser/google.py` and `docstring_parser/numpydoc.py`, with shared helpers in `docstring_parser/_compose.py`, whose existing helpers include `start_on_new_line`, `descriptio... | tasks/rr-__docstring_parser__b9bad5027b/spec.md | true | docstring_parser/tests/test_invariants.py | false | [
"docstring_parser/tests/test_google.py",
"docstring_parser/tests/test_invariants.py"
] | [
{
"path": "tasks/rr-__docstring_parser__b9bad5027b/hidden/docstring_parser/tests/test_google.py",
"repo_path": "docstring_parser/tests/test_google.py",
"bytes": 14275,
"sha256": "7417f083ac25b804a1d5d2a9abb51daa5a1bbe07cec6388ac9b9716cbb94e704",
"content": "\"\"\"Tests for Google-style docstring... | [
"docstring_parser/tests/test_google.py::test_compose_keeps_blank_lines_in_descriptions",
"docstring_parser/tests/test_invariants.py::test_compose_writes_no_blank_line_with_indent"
] | [
"docstring_parser/tests/test_google.py::test_google_parser_unknown_section",
"docstring_parser/tests/test_google.py::test_google_parser_multi_line_parameter_type",
"docstring_parser/tests/test_google.py::test_google_parser_custom_sections",
"docstring_parser/tests/test_google.py::test_google_parser_custom_sec... | false | null | null | null | null | {
"path": "tasks/rr-__docstring_parser__b9bad5027b/repo.tar.gz",
"files": 1606,
"bytes": 3500889,
"compressed_bytes": 546342,
"sha256": "b431dde8fc4443c2f2bc9c7726b52e4259913a3b9d409820ab58f251f49edc86",
"omitted": []
} |
rr-__docstring_parser__f0a23c05e2 | rr-/docstring_parser | https://github.com/rr-/docstring_parser | b8b80440bb685ae858dd19bec93820e49ebed86a | f0a23c05e21221449811f490fa9561b462360a57 | numpydoc: report short title underlines
A section title's underline could be any length. It now needs at least
three dashes or equals signs, or the parser's min_underline. With
exact_underline, it must be as long as the title. A declared title
whose underline breaks the rule is still read as its section, with a
bad-un... | medium | 55 | python | [
"docstring_parser/common.py",
"docstring_parser/numpydoc.py"
] | MIT | tasks/rr-__docstring_parser__f0a23c05e2/LICENSE | LICENSE.md | dfe514a337ae8417abd31a8af707bbd6172b03e5430bb083e145899ea97a3eea | [] | # Build spec: numpydoc short title underlines
## Context
`docstring_parser/numpydoc.py` parses Numpydoc docstrings. A section title such as `Returns` is a line underlined by dashes or equals signs; `Section._title_tail` builds the pattern that recognises the underline, and `Parser._setup` compiles one title regex fro... | tasks/rr-__docstring_parser__f0a23c05e2/spec.md | true | docstring_parser/tests/test_numpydoc.py | true | [
"docstring_parser/tests/test_numpydoc.py"
] | [
{
"path": "tasks/rr-__docstring_parser__f0a23c05e2/hidden/docstring_parser/tests/test_numpydoc.py",
"repo_path": "docstring_parser/tests/test_numpydoc.py",
"bytes": 16061,
"sha256": "cd988085d9c2e2879f518efbf4f7c10684fba753112911e8f7733626bba553c7",
"content": "\"\"\"Tests for numpydoc-style doc... | [
"docstring_parser/tests/test_numpydoc.py::test_underline_of_three_or_more_is_kept",
"docstring_parser/tests/test_numpydoc.py::test_short_underline_is_a_problem",
"docstring_parser/tests/test_numpydoc.py::test_custom_min_underline",
"docstring_parser/tests/test_numpydoc.py::test_exact_underline"
] | [
"docstring_parser/tests/test_numpydoc.py::test_param_key_regex",
"docstring_parser/tests/test_numpydoc.py::test_param_optional_regex",
"docstring_parser/tests/test_numpydoc.py::test_param_default_regex",
"docstring_parser/tests/test_numpydoc.py::test_param_default_regex_in_desc",
"docstring_parser/tests/tes... | false | null | null | null | null | {
"path": "tasks/rr-__docstring_parser__f0a23c05e2/repo.tar.gz",
"files": 1606,
"bytes": 3480887,
"compressed_bytes": 541864,
"sha256": "7b1c3aeb7a207c4388a7ea41683dfc0519f328e7a5df0121d5514ffe281cf38f",
"omitted": []
} |
sqlalchemy__sqlalchemy__e9c73ace7c | sqlalchemy/sqlalchemy | https://github.com/sqlalchemy/sqlalchemy | b8d422a89e003176ddc493fac09038f33f6a0a9a | e9c73ace7c1ecfbbc326a8ce7301362221f1046f | omit unrelated options from top level selectin polymorphic loads
Fixed issue where a subclass configured with Mapper.polymorphic_load
set to "selectin" would cause a statement to raise ArgumentError when
the statement selected from an aliased() or with_polymorphic()
construct against the base class, or included anothe... | small | 26 | python | [
"lib/sqlalchemy/orm/loading.py"
] | MIT | tasks/sqlalchemy__sqlalchemy__e9c73ace7c/LICENSE | LICENSE | e862bb5b904fb5513c3e14288d7a25a12eb0ecc7847a0a965d310e9a955e7cb9 | [] | ## Context
`lib/sqlalchemy/orm/loading.py` converts result rows into ORM instances. `_instance_processor()` arranges "selectin" polymorphic loads: for a mapper whose subclass has `polymorphic_load="selectin"`, it calls `_load_subclass_via_in()`, which returns a `do_load` closure registered as a post-load callable. The... | tasks/sqlalchemy__sqlalchemy__e9c73ace7c/spec.md | false | test/orm/inheritance/test_selectin_poly_options.py | false | [
"test/orm/inheritance/test_poly_loading.py"
] | [
{
"path": "tasks/sqlalchemy__sqlalchemy__e9c73ace7c/hidden/test/orm/inheritance/test_poly_loading.py",
"repo_path": "test/orm/inheritance/test_poly_loading.py",
"bytes": 73185,
"sha256": "0e77226d8b6f1caac232d96f059a73c20d05675f8f14ea6a48464569c7b239f2",
"content": null
}
] | [
"test/orm/inheritance/test_poly_loading.py::OptionsAgainstOtherRootEntityTest::test_options_against_aliased_root",
"test/orm/inheritance/test_poly_loading.py::OptionsAgainstOtherRootEntityTest::test_options_against_other_entity"
] | [
"test/orm/inheritance/test_poly_loading.py::LoadBaseAndSubWEagerRelOpt::test_load",
"test/orm/inheritance/test_poly_loading.py::LoadBaseAndSubWEagerRelMapped::test_load",
"test/orm/inheritance/test_poly_loading.py::ChunkingTest::test_chunking",
"test/orm/inheritance/test_poly_loading.py::FixtureLoadTest::test... | false | null | null | null | null | {
"path": "tasks/sqlalchemy__sqlalchemy__e9c73ace7c/repo.tar.gz",
"files": 922,
"bytes": 27282985,
"compressed_bytes": 5514204,
"sha256": "257702add815c103b1757c7b9ff1e25d1bf7330377ccec747c54c515e83e9bdf",
"omitted": []
} |
sysid__sse-starlette__391f79410d | sysid/sse-starlette | https://github.com/sysid/sse-starlette | abc22170bd810a35694881ae6451c520742fdd8a | 391f79410d4b8e5aa7ad76378faf0a0d6c614fd9 | refactor(sse): re-sync EventSourceResponse with Starlette StreamingResponse
Close drift against starlette.responses.StreamingResponse without
regressing SSE-specific functionality
- Wrap the task group in collapse_excgroups() so user middleware sees the
bare exception instead of an anyio v4 ExceptionGroup. Vendored... | medium | 142 | python | [
"sse_starlette/_utils.py",
"sse_starlette/event.py",
"sse_starlette/sse.py"
] | BSD-3-Clause | tasks/sysid__sse-starlette__391f79410d/LICENSE | LICENSE | 80af6bfccbebd2c14d4aab96695cab9950e177190cc80f5ef819e99996883e8e | [] | # Build spec: re-sync `EventSourceResponse` with Starlette `StreamingResponse`
## Context
`sse_starlette/sse.py` implements `EventSourceResponse`, an SSE-specific subclass of `starlette.responses.Response`. Its `__call__` runs an `anyio` task group with `_stream_response`, `_ping`, `_listen_for_exit_signal_with_grace... | tasks/sysid__sse-starlette__391f79410d/spec.md | true | tests/test_sse.py | false | [
"tests/anyio_compat.py",
"tests/test_event.py",
"tests/test_issue167.py",
"tests/test_sse.py",
"tests/test_streaming_parity.py"
] | [
{
"path": "tasks/sysid__sse-starlette__391f79410d/hidden/tests/anyio_compat.py",
"repo_path": "tests/anyio_compat.py",
"bytes": 86,
"sha256": "13fe543216056df92644403929078ad1a889751a2cfc3bb689eb23fa7e1a62a3",
"content": "from sse_starlette._utils import collapse_excgroups\n\n__all__ = [\"collap... | [
"tests/test_event.py::test_ensure_bytes_whenMemoryview_thenReturnsBytes",
"tests/test_issue167.py::TestIssue167ShutdownEvent::test_shutdownEvent_whenShutdownDetected_thenEventIsSet",
"tests/test_issue167.py::TestIssue167ShutdownEvent::test_shutdownGracePeriod_whenGeneratorExitsInTime_thenCleanShutdown",
"test... | [
"tests/test_event.py::test_server_sent_event",
"tests/test_event.py::test_json_server_sent_event",
"tests/test_event.py::test_ensure_bytes",
"tests/test_event.py::test_multiline_data",
"tests/test_event.py::test_custom_sep",
"tests/test_event.py::test_retry_is_int",
"tests/test_issue167.py::TestIssue167... | false | null | null | null | null | {
"path": "tasks/sysid__sse-starlette__391f79410d/repo.tar.gz",
"files": 45,
"bytes": 1077334,
"compressed_bytes": 666986,
"sha256": "8892921505c34d628b5bae71771e9d0e2a815a6c5bdbd323aed19f2ae82fc30c",
"omitted": []
} |
sysid__sse-starlette__f880f50a38 | sysid/sse-starlette | https://github.com/sysid/sse-starlette | d01e84ba659d5a5de0346d1ed861d50731c503e5 | f880f50a382313ba5406a922a3c8be44f2b539b4 | feat: expose shutdown event for cooperative generator shutdown (#167)
Add shutdown_event and shutdown_grace_period parameters to EventSourceResponse,
allowing content generators to detect server shutdown and exit gracefully instead
of being force-cancelled via CancelledError.
When shutdown_event is provided, the libr... | small | 59 | python | [
"sse_starlette/sse.py"
] | BSD-3-Clause | tasks/sysid__sse-starlette__f880f50a38/LICENSE | LICENSE | 80af6bfccbebd2c14d4aab96695cab9950e177190cc80f5ef819e99996883e8e | [] | # Build spec: expose shutdown event for cooperative generator shutdown (#167)
## Context
`sse_starlette/sse.py` defines `EventSourceResponse`, the streaming ASGI response. On server shutdown (SIGTERM/SIGINT, surfaced through `AppStatus.should_exit` and the `_shutdown_watcher` polling loop), the response's `__call__` ... | tasks/sysid__sse-starlette__f880f50a38/spec.md | true | tests/test_sse.py | false | [
"tests/test_issue167.py"
] | [
{
"path": "tasks/sysid__sse-starlette__f880f50a38/hidden/tests/test_issue167.py",
"repo_path": "tests/test_issue167.py",
"bytes": 9970,
"sha256": "4dc1018e7c4fdd1f977b7f756c6023ae2451b8e3c0ea388effe2766fa32b8f83",
"content": "\"\"\"\nRegression tests for Issue #167: Expose shutdown event to cont... | [
"tests/test_issue167.py::TestIssue167ShutdownEvent::test_shutdownEvent_whenShutdownDetected_thenEventIsSet",
"tests/test_issue167.py::TestIssue167ShutdownEvent::test_shutdownGracePeriod_whenGeneratorExitsInTime_thenCleanShutdown",
"tests/test_issue167.py::TestIssue167ShutdownEvent::test_shutdownGracePeriod_when... | [] | true | --- a/sse_starlette/sse.py
+++ b/sse_starlette/sse.py
@@ -210,6 +210,8 @@
client_close_handler_callable: Optional[
Callable[[Message], Awaitable[None]]
] = None,
+ shutdown_event: Optional[anyio.Event] = None,
+ shutdown_grace_period: float = 0.0,
) -> None:
# ... | tasks/sysid__sse-starlette__f880f50a38/trained.patch | Qwen3.6-35B-A3B, the base model before any training (UD-IQ3_XXS GGUF quant) | {
"seed": 2,
"passed_spec_tests": true,
"spec_tests": 4,
"passed_upstream_tests": true,
"tool_calls": 15,
"wall_seconds": 174.9,
"timed_out": false,
"turn_limit": 30,
"time_limit_seconds": 480,
"generated_files_dropped": 0
} | {
"path": "tasks/sysid__sse-starlette__f880f50a38/repo.tar.gz",
"files": 67,
"bytes": 1363020,
"compressed_bytes": 746861,
"sha256": "af309e0b790996b532f8cb8aec5b19f6e169d6152b77d10ff7983ca7c63c2b7a",
"omitted": []
} |
tox-dev__python-discovery__9db16f6cb8 | tox-dev/python-discovery | https://github.com/tox-dev/python-discovery | a2ff35d5458757fa006cb10f28eb8b20b6b5a2f3 | 9db16f6cb86c342a86453652be762cfb5d9aa7d6 | 🐛 fix(probe): preserve supplied environment (#225) | small | 11 | python | [
"src/python_discovery/_py_info.py"
] | MIT | tasks/tox-dev__python-discovery__9db16f6cb8/LICENSE | LICENSE | 90e25e1faf2a4aaea8d95ee8e7f5738b052a1acc0c9c58068101f931a86bd588 | [] | ## Context
`src/python_discovery/_py_info.py` defines `PythonInfo`, which collects interpreter metadata by interrogating executables in a subprocess and resolves venv/virtualenv layers back to the underlying system interpreter.
The request is to preserve a caller-supplied environment through the whole probe. Today th... | tasks/tox-dev__python-discovery__9db16f6cb8/spec.md | false | tests/test_env_preservation.py | true | [
"tests/test_py_info_extra.py"
] | [
{
"path": "tasks/tox-dev__python-discovery__9db16f6cb8/hidden/tests/test_py_info_extra.py",
"repo_path": "tests/test_py_info_extra.py",
"bytes": 22285,
"sha256": "7c03c5df1cc82db3c6e8ad49d6c4b4c177c603cb8d0360ffd2360925e5b8fd59",
"content": "from __future__ import annotations\n\nimport copy\nimp... | [
"tests/test_py_info_extra.py::test_from_exe_uses_supplied_environment_for_base_probe",
"tests/test_py_info_extra.py::test_resolve_to_system_uses_supplied_environment_for_prefix_probe"
] | [
"tests/test_py_info_extra.py::test_py_info_pypy_version",
"tests/test_py_info_extra.py::test_py_info_canonicalizes_graalvm",
"tests/test_py_info_extra.py::test_has_venv_attribute",
"tests/test_py_info_extra.py::test_from_exe_resolves_executable_only_symlink",
"tests/test_py_info_extra.py::test_version_str",... | true | --- a/src/python_discovery/_py_info.py
+++ b/src/python_discovery/_py_info.py
@@ -421,7 +421,7 @@
if isinstance(proposed, PythonInfo) and resolve_to_host:
try:
- proposed = proposed.resolve_to_system(cache, proposed)
+ proposed = proposed.resolve_to_system(cache, pr... | tasks/tox-dev__python-discovery__9db16f6cb8/trained.patch | Qwen3.6-35B-A3B, the base model before any training (UD-IQ3_XXS GGUF quant) | {
"seed": 1,
"passed_spec_tests": true,
"spec_tests": 3,
"passed_upstream_tests": true,
"tool_calls": 16,
"wall_seconds": 160.1,
"timed_out": false,
"turn_limit": 30,
"time_limit_seconds": 480,
"generated_files_dropped": 0
} | {
"path": "tasks/tox-dev__python-discovery__9db16f6cb8/repo.tar.gz",
"files": 86,
"bytes": 551619,
"compressed_bytes": 134700,
"sha256": "ba6f9beaabee4b26d9d602f7fd16818f6efeae82f5ec608af0b22ca266dab62b",
"omitted": []
} |
websocket-client__websocket-client__148bfbefd5 | websocket-client/websocket-client | https://github.com/websocket-client/websocket-client | 4f46495a700472000df29eedfeefd5f97360292b | 148bfbefd5d4499ff3259ee8eb65bfbe0ce43efd | Fix 65120f3, 7a4d086. Treat empty ca_certs/ca_cert_path as unset so WEBSOCKET_CLIENT_CA_BUNDLE still applies | small | 12 | python | [
"websocket/_http.py"
] | Apache-2.0 | tasks/websocket-client__websocket-client__148bfbefd5/LICENSE | LICENSE | 14214b7bbb6952ada76afea206b6c393f2563d4e7678be0232e1a1d216716679 | [] | ## Context
`websocket/_http.py` builds the TLS connection. Two functions matter here.
`_ssl_socket(sock, user_sslopt, hostname)` merges the user's sslopt with defaults and applies the `WEBSOCKET_CLIENT_CA_BUNDLE` environment variable before wrapping the socket. The relevant block today:
```python
cert_path = os.... | tasks/websocket-client__websocket-client__148bfbefd5/spec.md | false | websocket/tests/test_ssl_ca_bundle_env.py | true | [
"websocket/tests/test_ssl_edge_cases.py"
] | [
{
"path": "tasks/websocket-client__websocket-client__148bfbefd5/hidden/websocket/tests/test_ssl_edge_cases.py",
"repo_path": "websocket/tests/test_ssl_edge_cases.py",
"bytes": 29511,
"sha256": "62e3e11342e388ac05d1d51dd8a7bf9340af677ea7a63bab2e120afe2975f1ea",
"content": "# -*- coding: utf-8 -*-... | [
"websocket/tests/test_ssl_edge_cases.py::SSLEdgeCasesTest::test_empty_ca_setting_is_not_a_pin"
] | [
"websocket/tests/test_ssl_edge_cases.py::SSLEdgeCasesTest::test_ssl_handshake_failure",
"websocket/tests/test_ssl_edge_cases.py::SSLEdgeCasesTest::test_ssl_certificate_verification_failures",
"websocket/tests/test_ssl_edge_cases.py::SSLEdgeCasesTest::test_check_hostname_with_cert_none_raises_websocket_exception... | true | --- a/websocket/_http.py
+++ b/websocket/_http.py
@@ -286,8 +286,8 @@
context.keylog_filename = keylog_file
if sslopt.get("cert_reqs", ssl.CERT_NONE) != ssl.CERT_NONE:
- cafile = sslopt.get("ca_certs", None)
- capath = sslopt.get("ca_cert_path", None)
+ cafile = ... | tasks/websocket-client__websocket-client__148bfbefd5/trained.patch | Qwen3.6-35B-A3B, the base model before any training (UD-IQ3_XXS GGUF quant) | {
"seed": 3,
"passed_spec_tests": true,
"spec_tests": 5,
"passed_upstream_tests": true,
"tool_calls": 10,
"wall_seconds": 98.6,
"timed_out": false,
"turn_limit": 30,
"time_limit_seconds": 480,
"generated_files_dropped": 0
} | {
"path": "tasks/websocket-client__websocket-client__148bfbefd5/repo.tar.gz",
"files": 82,
"bytes": 961581,
"compressed_bytes": 138082,
"sha256": "024a12e947349f8a6273cf0d7a09b4309221f20befea39cf433298a409be018c",
"omitted": []
} |
websocket-client__websocket-client__3f6838d55b | websocket-client/websocket-client | https://github.com/websocket-client/websocket-client | 148bfbefd5d4499ff3259ee8eb65bfbe0ce43efd | 3f6838d55b323e2aac1da149e498fe9037d6dfa1 | Show only scheme://host:port in logs so URL credentials and tokens are excluded | small | 17 | python | [
"websocket/_core.py"
] | Apache-2.0 | tasks/websocket-client__websocket-client__3f6838d55b/LICENSE | LICENSE | 14214b7bbb6952ada76afea206b6c393f2563d4e7678be0232e1a1d216716679 | [] | ## Context
`websocket/_core.py` holds the low-level `WebSocket` class. `WebSocket.connect(self, url, **options)` performs the TCP connect and the handshake, then follows redirects in a loop. Inside that loop it builds two exception messages that embed the full URL, including any userinfo or query string:
```python
ra... | tasks/websocket-client__websocket-client__3f6838d55b/spec.md | true | websocket/tests/test_url_redaction.py | false | [
"websocket/tests/test_websocket.py"
] | [
{
"path": "tasks/websocket-client__websocket-client__3f6838d55b/hidden/websocket/tests/test_websocket.py",
"repo_path": "websocket/tests/test_websocket.py",
"bytes": 48525,
"sha256": "78fdb782cd675b6efe03098383b532e8dc58e8273f2bdb058199667a6b1d4a29",
"content": "# -*- coding: utf-8 -*-\n#\nimpor... | [
"websocket/tests/test_websocket.py::WebSocketCoreUnitTests::test_downgrade_refusal_message_hides_credentials"
] | [
"websocket/tests/test_websocket.py::WebSocketTest::test_default_timeout",
"websocket/tests/test_websocket.py::WebSocketTest::test_default_timeout_rejects_bool_and_nonfinite",
"websocket/tests/test_websocket.py::WebSocketTest::test_ws_key",
"websocket/tests/test_websocket.py::WebSocketTest::test_nonce",
"web... | false | null | null | null | null | {
"path": "tasks/websocket-client__websocket-client__3f6838d55b/repo.tar.gz",
"files": 82,
"bytes": 963416,
"compressed_bytes": 138359,
"sha256": "c77e34dae3ba2fd2548bc6bb2273d97d9b6576b45b66a8aaac71373fb3de94f1",
"omitted": []
} |
websocket-client__websocket-client__65120f3e11 | websocket-client/websocket-client | https://github.com/websocket-client/websocket-client | 743bb1b537846c7a03be8f4d3ed6a75c51e7d93d | 65120f3e110fc3c21b9fd3f32d7d88163da1de14 | Don't let WEBSOCKET_CLIENT_CA_BUNDLE widen an explicit CA pin, reject paths that don't exist | small | 28 | python | [
"websocket/_http.py"
] | Apache-2.0 | tasks/websocket-client__websocket-client__65120f3e11/LICENSE | LICENSE | 14214b7bbb6952ada76afea206b6c393f2563d4e7678be0232e1a1d216716679 | [] | ## Context
`websocket/_http.py` builds the TLS layer for `wss://` connections. `_ssl_socket(sock, user_sslopt, hostname)` merges the caller's sslopt with defaults, applies the `WEBSOCKET_CLIENT_CA_BUNDLE` environment variable, and delegates to `_wrap_sni_socket`. The env-var block today:
```python
def _ssl_socket(soc... | tasks/websocket-client__websocket-client__65120f3e11/spec.md | true | websocket/tests/test_http.py | true | [
"websocket/tests/test_ssl_edge_cases.py"
] | [
{
"path": "tasks/websocket-client__websocket-client__65120f3e11/hidden/websocket/tests/test_ssl_edge_cases.py",
"repo_path": "websocket/tests/test_ssl_edge_cases.py",
"bytes": 27955,
"sha256": "10458f1522cc2f1a8545200c04a4402ea41b3bc188891e6c3d568295d11e0d1c",
"content": "# -*- coding: utf-8 -*-... | [
"websocket/tests/test_ssl_edge_cases.py::SSLEdgeCasesTest::test_ssl_ca_bundle_environment_edge_cases",
"websocket/tests/test_ssl_edge_cases.py::SSLEdgeCasesTest::test_ca_bundle_env_does_not_widen_explicit_ca"
] | [
"websocket/tests/test_ssl_edge_cases.py::SSLEdgeCasesTest::test_ssl_handshake_failure",
"websocket/tests/test_ssl_edge_cases.py::SSLEdgeCasesTest::test_ssl_certificate_verification_failures",
"websocket/tests/test_ssl_edge_cases.py::SSLEdgeCasesTest::test_check_hostname_with_cert_none_raises_websocket_exception... | true | --- a/websocket/_http.py
+++ b/websocket/_http.py
@@ -374,18 +374,23 @@
sslopt.update(user_sslopt)
cert_path = os.environ.get("WEBSOCKET_CLIENT_CA_BUNDLE")
- if (
- cert_path
- and os.path.isfile(cert_path)
- and user_sslopt.get("ca_certs", None) is None
- ):
- sslopt["ca_c... | tasks/websocket-client__websocket-client__65120f3e11/trained.patch | Qwen3.6-35B-A3B, the base model before any training (UD-IQ3_XXS GGUF quant) | {
"seed": 2,
"passed_spec_tests": true,
"spec_tests": 7,
"passed_upstream_tests": false,
"tool_calls": 12,
"wall_seconds": 125.1,
"timed_out": false,
"turn_limit": 30,
"time_limit_seconds": 480,
"generated_files_dropped": 0
} | {
"path": "tasks/websocket-client__websocket-client__65120f3e11/repo.tar.gz",
"files": 82,
"bytes": 951101,
"compressed_bytes": 135113,
"sha256": "b497e1a536c2c9cc1bbcdcc2e906f71d33a61c902e16b91ea51a90d4bb895e54",
"omitted": []
} |
websocket-client__websocket-client__e7ce5fa483 | websocket-client/websocket-client | https://github.com/websocket-client/websocket-client | 65120f3e110fc3c21b9fd3f32d7d88163da1de14 | e7ce5fa483e18f1ea8f457c397b880095a961934 | Raise WebSocketTimeoutException when the retried recv/send would still block | small | 21 | python | [
"websocket/_socket.py"
] | Apache-2.0 | tasks/websocket-client__websocket-client__e7ce5fa483/LICENSE | LICENSE | 14214b7bbb6952ada76afea206b6c393f2563d4e7678be0232e1a1d216716679 | [] | ## Context
`websocket/_socket.py` holds the low-level socket helpers used by the rest of the library. `recv(sock, bufsize)` and `send(sock, data)` each make a first attempt, and on a would-block condition (`SSLWantReadError`/`SSLWantWriteError` or `errno.EAGAIN`/`errno.EWOULDBLOCK`) they wait on a selector and then re... | tasks/websocket-client__websocket-client__e7ce5fa483/spec.md | true | websocket/tests/test_socket_retry_timeout.py | false | [
"websocket/tests/test_socket.py"
] | [
{
"path": "tasks/websocket-client__websocket-client__e7ce5fa483/hidden/websocket/tests/test_socket.py",
"repo_path": "websocket/tests/test_socket.py",
"bytes": 19069,
"sha256": "1e7469b1386d0d55d830f8ff2f6c94f835715176478ad08d25b6d7817112bd4c",
"content": "# -*- coding: utf-8 -*-\nimport errno\n... | [
"websocket/tests/test_socket.py::SocketTest::test_ready_retry_that_would_block_raises_timeout"
] | [
"websocket/tests/test_socket.py::SocketTest::test_default_socket_option",
"websocket/tests/test_socket.py::SocketTest::test_recv_normal",
"websocket/tests/test_socket.py::SocketTest::test_recv_timeout_error",
"websocket/tests/test_socket.py::SocketTest::test_recv_socket_timeout",
"websocket/tests/test_socke... | true | --- a/websocket/_socket.py
+++ b/websocket/_socket.py
@@ -118,6 +118,9 @@
except SSLWantReadError:
# Don't return None implicitly - fall through to retry logic
pass
+ except BlockingIOError:
+ # Don't return None implicitly - fall through to retry logic
+ ... | tasks/websocket-client__websocket-client__e7ce5fa483/trained.patch | Qwen3.6-35B-A3B, the base model before any training (UD-IQ3_XXS GGUF quant) | {
"seed": 1,
"passed_spec_tests": true,
"spec_tests": 5,
"passed_upstream_tests": false,
"tool_calls": 25,
"wall_seconds": 387.8,
"timed_out": false,
"turn_limit": 30,
"time_limit_seconds": 480,
"generated_files_dropped": 0
} | {
"path": "tasks/websocket-client__websocket-client__e7ce5fa483/repo.tar.gz",
"files": 82,
"bytes": 953257,
"compressed_bytes": 135780,
"sha256": "328ee7565d2cbfa55189643e136fbcb3d1af62dac2e1b11bce59512ed8f69122",
"omitted": []
} |
AzureAD__microsoft-authentication-library-for-python__711d8a6887 | AzureAD/microsoft-authentication-library-for-python | https://github.com/AzureAD/microsoft-authentication-library-for-python | 43ed3a8404e182682a050c476ee112d7010d3d01 | 711d8a6887ad0e7b10ee0a417b130d8ec5c11bc5 | Allow Azure Arc managed identity requests to forward user-assigned identity selectors (#944)
* Initial plan
* Allow Azure Arc managed identity selectors
* Bump version to 1.38.0rc2
Copilot-Session: 593fce2a-8559-422e-92e2-46fb29c251a4
* Fix pipeline container
* Fix pipeline host
* Fix pipeline artifact manageme... | medium | 52 | python | [
"msal/managed_identity.py",
"msal/sku.py"
] | MIT | tasks/AzureAD__microsoft-authentication-library-for-python__711d8a6887/LICENSE | LICENSE | b9e1c9b3b348a58186dd4fc69c994cf26c0ded0d91ebe4bd201e6f7d05ead8ec | [] | ## Context
`msal/managed_identity.py` implements managed identity token acquisition for several Azure sources. `msal/sku.py` holds the package version:
```python
__version__ = "1.37.0"
SKU = "MSAL.Python"
```
The Arc path is reached from `_obtain_token(...)`, which dispatches on environment variables. Today the Arc ... | tasks/AzureAD__microsoft-authentication-library-for-python__711d8a6887/spec.md | false | tests/test_mi.py | true | [
"tests/test_mi.py"
] | [
{
"path": "tasks/AzureAD__microsoft-authentication-library-for-python__711d8a6887/hidden/tests/test_mi.py",
"repo_path": "tests/test_mi.py",
"bytes": 26900,
"sha256": "dc9bcbcafcecc61b740c9bda8457c29e5c950e6abe79d7d746485ed6a2758026",
"content": "import hashlib\nimport json\nimport os\nimport sy... | [
"tests/test_mi.py::ArcTestCase::test_arc_user_assigned_client_id_should_be_forwarded",
"tests/test_mi.py::ArcTestCase::test_arc_user_assigned_resource_id_should_be_forwarded_as_msi_res_id",
"tests/test_mi.py::ArcTestCase::test_arc_user_assigned_object_id_should_be_forwarded",
"tests/test_mi.py::ArcTestCase::t... | [
"tests/test_mi.py::ManagedIdentityTestCase::test_helper_class_should_be_interchangable_with_dict_which_could_be_loaded_from_file_or_env_var",
"tests/test_mi.py::ThrottledHttpClientTestCase::test_throttled_http_client_should_not_alter_original_http_client",
"tests/test_mi.py::ThrottledHttpClientTestCase::test_th... | true | --- a/msal/managed_identity.py
+++ b/msal/managed_identity.py
@@ -452,13 +452,7 @@
)
arc_endpoint = _get_arc_endpoint()
if arc_endpoint:
- if ManagedIdentity.is_user_assigned(managed_identity):
- raise ManagedIdentityError( # Note: Azure Identity for Python raised exception too
- ... | tasks/AzureAD__microsoft-authentication-library-for-python__711d8a6887/trained.patch | Qwen3.6-35B-A3B, the base model before any training (UD-IQ3_XXS GGUF quant) | {
"seed": 1,
"passed_spec_tests": true,
"spec_tests": 8,
"passed_upstream_tests": true,
"tool_calls": 16,
"wall_seconds": 211.3,
"timed_out": false,
"turn_limit": 30,
"time_limit_seconds": 480,
"generated_files_dropped": 0
} | {
"path": "tasks/AzureAD__microsoft-authentication-library-for-python__711d8a6887/repo.tar.gz",
"files": 114,
"bytes": 1323599,
"compressed_bytes": 320676,
"sha256": "7c9c33b276347d3a71b819acc84bb2a1e846f99ceefa475b168df4e6badc0494",
"omitted": []
} |
Kozea__tinycss2__46824bb421 | Kozea/tinycss2 | https://github.com/Kozea/tinycss2 | e4c814e9487f3db40ac4642624429d3b104baf13 | 46824bb4215fdb7009c99661ecbe9bb6f78a77f2 | Add An+B serialization alongside parse_nth | small | 30 | python | [
"tinycss2/nth.py"
] | BSD-3-Clause | tasks/Kozea__tinycss2__46824bb421/LICENSE | LICENSE | 6b94acee20ec9f2709333134f3ba70322535fb420af0ce8c1455d9cbe297f1d5 | [] | # Build spec: Add An+B serialization alongside `parse_nth`
## Context
`tinycss2/nth.py` parses the CSS `<An+B>` microsyntax (used by `:nth-child()` and related pseudo-classes) into an `(a, b)` tuple of integers. Its public entry point is:
```python
def parse_nth(input):
```
with the documented contract (from `tinyc... | tasks/Kozea__tinycss2__46824bb421/spec.md | true | tests/test_tinycss2.py | false | [
"tests/test_nth_serialization.py"
] | [
{
"path": "tasks/Kozea__tinycss2__46824bb421/hidden/tests/test_nth_serialization.py",
"repo_path": "tests/test_nth_serialization.py",
"bytes": 1122,
"sha256": "3466254233211105176155d2ad66a35b0cf4e46818b48b100d26ad31640f44b0",
"content": "import pytest\n\nfrom tinycss2 import nth\n\n\n@pytest.ma... | [
"tests/test_nth_serialization.py::test_serialize_nth",
"tests/test_nth_serialization.py::test_serialize_parsed_nth",
"tests/test_nth_serialization.py::test_serialize_nth_round_trip"
] | [] | false | null | null | null | null | {
"path": "tasks/Kozea__tinycss2__46824bb421/repo.tar.gz",
"files": 30,
"bytes": 154408,
"compressed_bytes": 34797,
"sha256": "1dc20c68b8e0c97b555d1cb6012e845be05965c6c6fe1cceb6e1d1c59651c4b4",
"omitted": []
} |
PrefectHQ__fastmcp__9c6dda3b84 | PrefectHQ/fastmcp | https://github.com/PrefectHQ/fastmcp | 96d5ab0bf3f8e4b2fea8f98a6d308ccbbfad13c9 | 9c6dda3b848fa41cb863597253ba8c323afd4481 | Keep completion from suggesting values for hidden references (#6450) | medium | 83 | python | [
"fastmcp_slim/fastmcp/server/middleware/authorization.py",
"fastmcp_slim/fastmcp/server/mixins/mcp_operations.py"
] | Apache-2.0 | tasks/PrefectHQ__fastmcp__9c6dda3b84/LICENSE | LICENSE | 43070e2d4e532684de521b885f385d0841030efa2b1a20bafb76133a5e1379c1 | [] | ## Context
Two files implement server-side completion and authorisation.
- `fastmcp_slim/fastmcp/server/mixins/mcp_operations.py` registers the low-level MCP handlers. `_on_complete` handles `completion/complete`: it looks up `self._completion_handler` and, if present, calls it with `params.ref`, `params.argument`, `... | tasks/PrefectHQ__fastmcp__9c6dda3b84/spec.md | true | tests/server/test_completion_hidden_references.py | false | [
"tests/server/test_completions.py"
] | [
{
"path": "tasks/PrefectHQ__fastmcp__9c6dda3b84/hidden/tests/server/test_completions.py",
"repo_path": "tests/server/test_completions.py",
"bytes": 16168,
"sha256": "653bba42372bfdd26e9b025d24892ef032cd4b24eff77ca879d0d3450ce72c20",
"content": "\"\"\"Server-side argument completion (`completion/... | [
"tests/server/test_completions.py::test_disabled_references_complete_like_unknown_ones",
"tests/server/test_completions.py::test_auth_middleware_denied_references_complete_like_unknown_ones",
"tests/server/test_completions.py::test_query_only_template_completes_by_its_own_identifier",
"tests/server/test_compl... | [
"tests/server/test_completions.py::test_prompt_argument_completion_returns_candidates",
"tests/server/test_completions.py::test_resource_template_completion_returns_candidates",
"tests/server/test_completions.py::test_capability_declared_when_handler_registered",
"tests/server/test_completions.py::test_capabi... | false | null | null | null | null | {
"path": "tasks/PrefectHQ__fastmcp__9c6dda3b84/repo.tar.gz",
"files": 2004,
"bytes": 63953101,
"compressed_bytes": 43268698,
"sha256": "2f3321a016f759a377b323f7e1e68914e06d001158eb2a2ba054d23cb868a4ad",
"omitted": []
} |
agronholm__typeguard__2fde42278a | agronholm/typeguard | https://github.com/agronholm/typeguard | 3b3c1f8d80848e264c981a929ed7cf896b9d6cd2 | 2fde42278a0a041a2c3651e6d1be4b7deaf61cc5 | Implemented support for extra_items in TypedDict
Closes #538. | small | 34 | python | [
"src/typeguard/_checkers.py"
] | MIT | tasks/agronholm__typeguard__2fde42278a/LICENSE | LICENSE | 6163f7987dfb38d6bc320ce2b70b2f02b862bc41126516d552ef1cd43247e758 | [] | ## Context
`src/typeguard/_checkers.py` holds all run-time type checkers. The change touches only `check_typed_dict`, which validates values against `TypedDict` types. It is registered for any `is_typeddict(origin_type)` in `builtin_checker_lookup`:
```python
elif is_typeddict(origin_type):
return check_t... | tasks/agronholm__typeguard__2fde42278a/spec.md | false | tests/test_typeddict_extra_items.py | true | [
"tests/test_checkers.py"
] | [
{
"path": "tasks/agronholm__typeguard__2fde42278a/hidden/tests/test_checkers.py",
"repo_path": "tests/test_checkers.py",
"bytes": 51828,
"sha256": "f4bc092cf2f62e7bf9e586e9c4d4e58073f368acebb6981b9f0d510c9810150e",
"content": "import collections.abc\nimport sys\nimport types\nfrom contextlib imp... | [
"tests/test_checkers.py::TestTypedDict::test_extra_items_positive",
"tests/test_checkers.py::TestTypedDict::test_extra_items_bad_type"
] | [
"tests/test_checkers.py::TestAnyStr::test_valid",
"tests/test_checkers.py::TestAnyStr::test_bad_type",
"tests/test_checkers.py::TestBytesLike::test_valid",
"tests/test_checkers.py::TestBytesLike::test_fail",
"tests/test_checkers.py::TestFloat::test_valid",
"tests/test_checkers.py::TestFloat::test_bad_type... | true | --- a/src/typeguard/_checkers.py
+++ b/src/typeguard/_checkers.py
@@ -48,6 +48,7 @@
if sys.version_info >= (3, 11):
from typing import (
+ Never,
NotRequired,
Required,
TypeAlias,
@@ -59,6 +60,7 @@
else:
from typing_extensions import Any as SubclassableAny
from typin... | tasks/agronholm__typeguard__2fde42278a/trained.patch | Qwen3.6-35B-A3B, the base model before any training (UD-IQ3_XXS GGUF quant) | {
"seed": 1,
"passed_spec_tests": true,
"spec_tests": 4,
"passed_upstream_tests": true,
"tool_calls": 18,
"wall_seconds": 204.5,
"timed_out": false,
"turn_limit": 30,
"time_limit_seconds": 480,
"generated_files_dropped": 0
} | {
"path": "tasks/agronholm__typeguard__2fde42278a/repo.tar.gz",
"files": 53,
"bytes": 359816,
"compressed_bytes": 72116,
"sha256": "903e5d94a7cfafd16407139795a28007208820ba39a152e8931f5ca639a681a5",
"omitted": []
} |
agronholm__typeguard__574dda4bd2 | agronholm/typeguard | https://github.com/agronholm/typeguard | b05b7dabf2cc81131639bfb65df955aea638330b | 574dda4bd25e004871a63ef399171c7c7d5d5e7f | Restored check_argument_types() and check_return_value()
Closes #437. | medium | 122 | python | [
"src/typeguard/__init__.py",
"src/typeguard/_functions.py",
"src/typeguard/_transformer.py",
"src/typeguard/_utils.py"
] | MIT | tasks/agronholm__typeguard__574dda4bd2/LICENSE | LICENSE | 6163f7987dfb38d6bc320ce2b70b2f02b862bc41126516d552ef1cd43247e758 | [] | ## Context
Typeguard 4.x removed the public, argument-less forms of `check_argument_types()` and `check_return_type()` that let a function check its own arguments and return value without instrumentation. Issue #437 asks for them back. The change request title names the restored pair as `check_argument_types()` and `c... | tasks/agronholm__typeguard__574dda4bd2/spec.md | true | tests/test_transformer.py | false | [
"tests/test_functions.py",
"tests/test_transformer.py",
"tests/test_typechecked.py"
] | [
{
"path": "tasks/agronholm__typeguard__574dda4bd2/hidden/tests/test_functions.py",
"repo_path": "tests/test_functions.py",
"bytes": 2226,
"sha256": "3b2d3f016bf742afbdb1975603abe39b0b435e684b0a486bfa573c7cf5892043",
"content": "from typing import Any\n\nimport pytest\nfrom pytest import raises\n... | [
"tests/test_functions.py::TestCheckArgumentTypes::test_success",
"tests/test_functions.py::TestCheckArgumentTypes::test_failure",
"tests/test_functions.py::TestCheckReturnType::test_success",
"tests/test_functions.py::TestCheckReturnType::test_failure",
"tests/test_transformer.py::test_arguments_only",
"t... | [
"tests/test_transformer.py::TestGenerator::test_no_return_type_check",
"tests/test_transformer.py::TestGenerator::test_no_send_type_check",
"tests/test_transformer.py::TestAsyncGenerator::test_full",
"tests/test_transformer.py::TestAsyncGenerator::test_no_yield_type_check",
"tests/test_transformer.py::TestA... | false | null | null | null | null | {
"path": "tasks/agronholm__typeguard__574dda4bd2/repo.tar.gz",
"files": 54,
"bytes": 365743,
"compressed_bytes": 73083,
"sha256": "8160979da9090c8f106e9eab45a658d1741bbaec7726e9490e4c5b7fced66e54",
"omitted": []
} |
agronholm__typeguard__dd7fa67076 | agronholm/typeguard | https://github.com/agronholm/typeguard | a42dc4dbace5d1d75ac37ac29356c3b75637f337 | dd7fa67076c4dd7faaac5f7610ea743435ace858 | Fixed Literal check depending on argument order for bools (#566)
check_literal used final_args.index(value), which returns the first== equal element. Since bool is a subclass of int, True matched the int 1 in Literal[1, True]; the subsequent type check then failed and the genuinely matching True was never examined. As... | small | 10 | python | [
"src/typeguard/_checkers.py"
] | MIT | tasks/agronholm__typeguard__dd7fa67076/LICENSE | LICENSE | 6163f7987dfb38d6bc320ce2b70b2f02b862bc41126516d552ef1cd43247e758 | [] | ## Context
`src/typeguard/_checkers.py` holds all run-time type checkers. `check_literal` is registered for `typing.Literal` and `typing_extensions.Literal` in the `origin_type_checkers` dict and is reached through `check_type_internal`, which `check_type` in `src/typeguard/_functions.py` wraps as the public entry poi... | tasks/agronholm__typeguard__dd7fa67076/spec.md | true | tests/test_checkers.py | true | [
"tests/test_checkers.py"
] | [
{
"path": "tasks/agronholm__typeguard__dd7fa67076/hidden/tests/test_checkers.py",
"repo_path": "tests/test_checkers.py",
"bytes": 53575,
"sha256": "5b845e80aa765209e50f7e7d72a9665f5216bd8746e11c5366f8fdcd0e060a57",
"content": "import collections.abc\nimport sys\nimport types\nfrom contextlib imp... | [
"tests/test_checkers.py::TestLiteral::test_literal_bool_after_equal_int"
] | [
"tests/test_checkers.py::TestAnyStr::test_valid",
"tests/test_checkers.py::TestAnyStr::test_bad_type",
"tests/test_checkers.py::TestBytesLike::test_valid",
"tests/test_checkers.py::TestBytesLike::test_fail",
"tests/test_checkers.py::TestFloat::test_valid",
"tests/test_checkers.py::TestFloat::test_bad_type... | true | --- a/src/typeguard/_checkers.py
+++ b/src/typeguard/_checkers.py
@@ -605,13 +605,14 @@
return tuple(retval)
final_args = tuple(get_literal_args(args))
- try:
- index = final_args.index(value)
- except ValueError:
- pass
- else:
- if type(final_args[index]) is type(value):
... | tasks/agronholm__typeguard__dd7fa67076/trained.patch | Qwen3.6-35B-A3B, the base model before any training (UD-IQ3_XXS GGUF quant) | {
"seed": 3,
"passed_spec_tests": true,
"spec_tests": 11,
"passed_upstream_tests": true,
"tool_calls": 11,
"wall_seconds": 147.1,
"timed_out": false,
"turn_limit": 30,
"time_limit_seconds": 480,
"generated_files_dropped": 0
} | {
"path": "tasks/agronholm__typeguard__dd7fa67076/repo.tar.gz",
"files": 55,
"bytes": 379679,
"compressed_bytes": 75907,
"sha256": "ad91ebca73e1bd984c1a59e0f411f403c6c870b2479ffbe4a386e11972d772bb",
"omitted": []
} |
borntyping__python-colorlog__6d05e06018 | borntyping/python-colorlog | https://github.com/borntyping/python-colorlog | 512e948bba369d46521a74f1d78250f0a651b545 | 6d05e0601850a294e78b9da951d3d2bbe55220e8 | Fix LevelFormatter raising KeyError on levels missing from fmt | small | 14 | python | [
"colorlog/formatter.py"
] | MIT | tasks/borntyping__python-colorlog__6d05e06018/LICENSE | LICENSE | b1d9082bc483623fd59fc7279b457f0e40d942a76426cde257239e04dfe4125a | [] | ## Context
`colorlog/formatter.py` defines `LevelFormatter`, a formatter that holds one `ColoredFormatter` per log level. The change makes it tolerate records whose level name is absent from the `fmt` mapping.
The class today:
```python
class LevelFormatter:
"""An extension of ColoredFormatter that uses per-leve... | tasks/borntyping__python-colorlog__6d05e06018/spec.md | true | colorlog/tests/test_colorlog.py | true | [
"colorlog/tests/test_colorlog.py"
] | [
{
"path": "tasks/borntyping__python-colorlog__6d05e06018/hidden/colorlog/tests/test_colorlog.py",
"repo_path": "colorlog/tests/test_colorlog.py",
"bytes": 4923,
"sha256": "5d7501ae2cb94e6521761b0bca91b21ff10bf428780775a9dbc739dcc622be5e",
"content": "\"\"\"Test the colorlog.colorlog module.\"\"\... | [
"colorlog/tests/test_colorlog.py::TestLevelFormatter::test_unlisted_level_uses_default",
"colorlog/tests/test_colorlog.py::TestLevelFormatter::test_explicit_default_key"
] | [
"colorlog/tests/test_colorlog.py::test_colored_formatter",
"colorlog/tests/test_colorlog.py::test_custom_colors",
"colorlog/tests/test_colorlog.py::test_reset",
"colorlog/tests/test_colorlog.py::test_no_reset",
"colorlog/tests/test_colorlog.py::test_secondary_colors",
"colorlog/tests/test_colorlog.py::tes... | true | --- a/colorlog/formatter.py
+++ b/colorlog/formatter.py
@@ -229,9 +229,10 @@
self.formatters = {
level: ColoredFormatter(fmt=f, **kwargs) for level, f in fmt.items()
}
+ self.default_formatter = ColoredFormatter(**kwargs)
def format(self, record: logging.LogRecord) -> str:
-... | tasks/borntyping__python-colorlog__6d05e06018/trained.patch | Qwen3.6-35B-A3B, the base model before any training (UD-IQ3_XXS GGUF quant) | {
"seed": 1,
"passed_spec_tests": true,
"spec_tests": 1,
"passed_upstream_tests": true,
"tool_calls": 9,
"wall_seconds": 70.4,
"timed_out": false,
"turn_limit": 30,
"time_limit_seconds": 480,
"generated_files_dropped": 0
} | {
"path": "tasks/borntyping__python-colorlog__6d05e06018/repo.tar.gz",
"files": 29,
"bytes": 57673,
"compressed_bytes": 26029,
"sha256": "30c3c854aa72e8879b9b53e9076a8c8997ad751f5907b769960729571db60352",
"omitted": []
} |
executablebooks__mdit-py-plugins__10d27f874c | executablebooks/mdit-py-plugins | https://github.com/executablebooks/mdit-py-plugins | bfaba74a6bf830de0c8ddcc49728f2ddcc5ba0ec | 10d27f874ccb28cc4cc19984710e4e0d3c9da81e | 🐛 FIX: dollarmath: don't let a same-line $$…$$ with trailing text swallow later lines (#149)
A `$$...$$` block closed on the same line but followed by non-label text
was not recognised as closed, so the rule scanned on and swallowed every
following line up to the next `$$` (#147). The ambiguous case is now
rejected, ... | small | 22 | python | [
"mdit_py_plugins/dollarmath/index.py"
] | MIT | tasks/executablebooks__mdit-py-plugins__10d27f874c/LICENSE | LICENSE | 4a2260d6e2cd0f5a151a1e86dbfe7d3ed552b1e2beabf9941c1ba5c49cbce484 | [
{
"path": "mdit_py_plugins/admon/LICENSE",
"licence": "MIT"
},
{
"path": "mdit_py_plugins/container/LICENSE",
"licence": "MIT"
},
{
"path": "mdit_py_plugins/deflist/LICENSE",
"licence": "MIT"
},
{
"path": "mdit_py_plugins/footnote/LICENSE",
"licence": "MIT"
},
{
"... | ## Context
`mdit_py_plugins/dollarmath/index.py` implements the dollarmath plugin. The block rule `math_block_dollar` generates `_math_block_dollar`, a `StateBlock` rule registered before `fence`. The inline rule `math_inline_dollar` (same file) handles `$...$` and, when `double_inline=True`, `$$...$$` inside paragrap... | tasks/executablebooks__mdit-py-plugins__10d27f874c/spec.md | false | tests/test_dollarmath.py | true | [
"tests/test_dollarmath.py"
] | [
{
"path": "tasks/executablebooks__mdit-py-plugins__10d27f874c/hidden/tests/test_dollarmath.py",
"repo_path": "tests/test_dollarmath.py",
"bytes": 3228,
"sha256": "fcbdc43c474eeb6444f6a3c30e9d065a6e63f645a0c0def368fa13903fdf1c80",
"content": "from pathlib import Path\nfrom textwrap import dedent\... | [
"tests/test_dollarmath.py::test_block_func_ambiguous_trailing_content"
] | [
"tests/test_dollarmath.py::test_inline_func",
"tests/test_dollarmath.py::test_block_func",
"tests/test_dollarmath.py::test_plugin_parse",
"tests/test_dollarmath.py::test_custom_renderer",
"tests/test_dollarmath.py::test_dollarmath_fixtures"
] | true | --- a/mdit_py_plugins/dollarmath/index.py
+++ b/mdit_py_plugins/dollarmath/index.py
@@ -348,6 +348,9 @@
haveEndMarker = True
label = eqnoMatch.group(1)[::-1]
end = end - eqnoMatch.end()
+ # after the if/elif chain, check for ambiguous case
+ ... | tasks/executablebooks__mdit-py-plugins__10d27f874c/trained.patch | Qwen3.6-35B-A3B, the base model before any training (UD-IQ3_XXS GGUF quant) | {
"seed": 1,
"passed_spec_tests": true,
"spec_tests": 6,
"passed_upstream_tests": true,
"tool_calls": 13,
"wall_seconds": 166.9,
"timed_out": false,
"turn_limit": 30,
"time_limit_seconds": 480,
"generated_files_dropped": 0
} | {
"path": "tasks/executablebooks__mdit-py-plugins__10d27f874c/repo.tar.gz",
"files": 135,
"bytes": 383654,
"compressed_bytes": 88517,
"sha256": "f97e3bb4c9a2dcbec2ea815173d0684145b0921ef28b6ce36484e07936488327",
"omitted": []
} |
executablebooks__mdit-py-plugins__7997835c8d | executablebooks/mdit-py-plugins | https://github.com/executablebooks/mdit-py-plugins | 3e689b066ba4abadf145fff880e94f5f26cccf2e | 7997835c8d831522b6b105d9e14128a4b0da16f6 | 🐛 FIX: section_ref no longer raises on very long digit runs (#168)
A `§` followed by more than 4300 digits made `int()` raise ValueError
(Python's integer string conversion limit), aborting the whole render.
A level longer than nine digits now makes the rule decline, so the text
renders literally and no shorter pref... | small | 27 | python | [
"mdit_py_plugins/section_ref/index.py"
] | MIT | tasks/executablebooks__mdit-py-plugins__7997835c8d/LICENSE | LICENSE | 4a2260d6e2cd0f5a151a1e86dbfe7d3ed552b1e2beabf9941c1ba5c49cbce484 | [
{
"path": "mdit_py_plugins/admon/LICENSE",
"licence": "MIT"
},
{
"path": "mdit_py_plugins/container/LICENSE",
"licence": "MIT"
},
{
"path": "mdit_py_plugins/deflist/LICENSE",
"licence": "MIT"
},
{
"path": "mdit_py_plugins/footnote/LICENSE",
"licence": "MIT"
},
{
"... | ## Context
`mdit_py_plugins/section_ref/index.py` implements the `section_ref` plugin: `section_ref_plugin(md)` registers the inline rule, `_section_ref_rule` matches `§`-prefixed section numbers, and `render_section_ref` renders the token as a span.
The matching pattern and the rule are:
```python
# ASCII digits on... | tasks/executablebooks__mdit-py-plugins__7997835c8d/spec.md | false | tests/test_section_ref.py | true | [
"tests/test_section_ref.py"
] | [
{
"path": "tasks/executablebooks__mdit-py-plugins__7997835c8d/hidden/tests/test_section_ref.py",
"repo_path": "tests/test_section_ref.py",
"bytes": 5955,
"sha256": "1c9764e611198745fb3a4f06ed1c21efb3c8b6a325cde72c1b85dcdfa484f835",
"content": "from pathlib import Path\nimport time\nfrom types im... | [
"tests/test_section_ref.py::test_huge_digit_run_renders_as_text",
"tests/test_section_ref.py::test_numbers_at_bound",
"tests/test_section_ref.py::test_level_past_bound_declines",
"tests/test_section_ref.py::test_long_digit_runs_stay_fast"
] | [
"tests/test_section_ref.py::test_token",
"tests/test_section_ref.py::test_runtime_error",
"tests/test_section_ref.py::test_all"
] | true | --- a/mdit_py_plugins/section_ref/index.py
+++ b/mdit_py_plugins/section_ref/index.py
@@ -29,7 +29,12 @@
# ASCII digits only (``[0-9]``, never ``\d`` which also matches unicode digits).
_SECTION_REF_PATTERN = re.compile(r"§([0-9]+(?:\.[0-9]+)*)")
+# A level longer than nine digits is declined so ``int()`` never hit... | tasks/executablebooks__mdit-py-plugins__7997835c8d/trained.patch | Qwen3.6-35B-A3B, the base model before any training (UD-IQ3_XXS GGUF quant) | {
"seed": 3,
"passed_spec_tests": true,
"spec_tests": 4,
"passed_upstream_tests": true,
"tool_calls": 11,
"wall_seconds": 110.4,
"timed_out": false,
"turn_limit": 30,
"time_limit_seconds": 480,
"generated_files_dropped": 0
} | {
"path": "tasks/executablebooks__mdit-py-plugins__7997835c8d/repo.tar.gz",
"files": 137,
"bytes": 428230,
"compressed_bytes": 100935,
"sha256": "0cf7c0a45ad44f8c2870e639dc6ebda86098716f0c2b308a8887175256874f1d",
"omitted": []
} |
executablebooks__mdit-py-plugins__c1835a6387 | executablebooks/mdit-py-plugins | https://github.com/executablebooks/mdit-py-plugins | f1174539f4b7054ff3fa6f3693366be1e6e2f76e | c1835a6387461769af65e2162891f2c68eecd266 | 🐛 FIX: anchors: keep explicit heading ids, do not strip slug titles (#159)
The anchors plugin no longer overwrites a heading's explicit id
(e.g. `{#custom}` from `attrs_block_plugin`): the id is kept, its permalink uses it,
and generated slugs avoid every explicit heading id, at any level and in any order.
Duplicate ... | small | 21 | python | [
"mdit_py_plugins/anchors/index.py"
] | MIT | tasks/executablebooks__mdit-py-plugins__c1835a6387/LICENSE | LICENSE | 4a2260d6e2cd0f5a151a1e86dbfe7d3ed552b1e2beabf9941c1ba5c49cbce484 | [
{
"path": "mdit_py_plugins/admon/LICENSE",
"licence": "MIT"
},
{
"path": "mdit_py_plugins/container/LICENSE",
"licence": "MIT"
},
{
"path": "mdit_py_plugins/deflist/LICENSE",
"licence": "MIT"
},
{
"path": "mdit_py_plugins/footnote/LICENSE",
"licence": "MIT"
},
{
"... | ## Context
`mdit_py_plugins/anchors/index.py` implements the anchors plugin. `anchors_plugin` registers a core rule via `md.core.ruler.push("anchor", ...)`. `_make_anchors_func` builds that rule; its inner `_anchor_func` walks `state.tokens`, and for each `heading_open` token whose level is in `selected_levels` it com... | tasks/executablebooks__mdit-py-plugins__c1835a6387/spec.md | true | tests/test_anchors.py | false | [
"tests/test_anchors.py"
] | [
{
"path": "tasks/executablebooks__mdit-py-plugins__c1835a6387/hidden/tests/test_anchors.py",
"repo_path": "tests/test_anchors.py",
"bytes": 5011,
"sha256": "59810a80b4ae89c42d29981ed1be87224d487db62ecfa460470fcfa574e379c0",
"content": "from pathlib import Path\n\nfrom markdown_it import Markdown... | [
"tests/test_anchors.py::test_preserve_explicit_heading_ids",
"tests/test_anchors.py::test_explicit_heading_id_does_not_call_slug_function",
"tests/test_anchors.py::test_explicit_heading_id_edge_cases",
"tests/test_anchors.py::test_explicit_heading_id_plugin_order",
"tests/test_anchors.py::test_slug_keeps_ed... | [
"tests/test_anchors.py::test_fixtures"
] | false | null | null | null | null | {
"path": "tasks/executablebooks__mdit-py-plugins__c1835a6387/repo.tar.gz",
"files": 135,
"bytes": 390409,
"compressed_bytes": 90213,
"sha256": "b4501d2b80df5855ca7a30d29de73a026207d1ccef56731e899d8ab8a24dc190",
"omitted": []
} |
executablebooks__mdit-py-plugins__cbac88c574 | executablebooks/mdit-py-plugins | https://github.com/executablebooks/mdit-py-plugins | 35fb741a340d957965b2e6b5a601750c4a9b402f | cbac88c57483ee40bf895ce969ab3c245d4bcc91 | 🐛 FIX: Parse front matter closed by the YAML `...` marker (#158)
The `...` document-end marker was tested against the previous line. A block
whose last line was `...` was dropped, so the front matter leaked into the
document as text, and otherwise `...` was left in the token content.
It is now checked on the current... | small | 13 | python | [
"mdit_py_plugins/front_matter/index.py"
] | MIT | tasks/executablebooks__mdit-py-plugins__cbac88c574/LICENSE | LICENSE | 4a2260d6e2cd0f5a151a1e86dbfe7d3ed552b1e2beabf9941c1ba5c49cbce484 | [
{
"path": "mdit_py_plugins/admon/LICENSE",
"licence": "MIT"
},
{
"path": "mdit_py_plugins/container/LICENSE",
"licence": "MIT"
},
{
"path": "mdit_py_plugins/deflist/LICENSE",
"licence": "MIT"
},
{
"path": "mdit_py_plugins/footnote/LICENSE",
"licence": "MIT"
},
{
"... | ## Context
`mdit_py_plugins/front_matter/index.py` implements the `front_matter` plugin: `front_matter_plugin(md)` registers `_front_matter_rule` before the `table` block rule, and the rule, when the document starts with a `---` marker of at least three dashes, scans forward for a closing `---` line and pushes a hidde... | tasks/executablebooks__mdit-py-plugins__cbac88c574/spec.md | true | tests/test_front_matter.py | false | [
"tests/test_front_matter.py"
] | [
{
"path": "tasks/executablebooks__mdit-py-plugins__cbac88c574/hidden/tests/test_front_matter.py",
"repo_path": "tests/test_front_matter.py",
"bytes": 2331,
"sha256": "b9d416281a85648956754c751b9cb18d2572fddd6490c586037060ad49225850",
"content": "from pathlib import Path\n\nfrom markdown_it impor... | [
"tests/test_front_matter.py::test_token_content_excludes_the_closer",
"tests/test_front_matter.py::test_dots_closer_on_the_last_line"
] | [
"tests/test_front_matter.py::test_all",
"tests/test_front_matter.py::test_token",
"tests/test_front_matter.py::test_short_source"
] | false | null | null | null | null | {
"path": "tasks/executablebooks__mdit-py-plugins__cbac88c574/repo.tar.gz",
"files": 135,
"bytes": 387220,
"compressed_bytes": 89364,
"sha256": "7cf71e6ad841aad31ef6bb8e38f04e4a9d9a079424fa582ac6430f3528a62b9a",
"omitted": []
} |
fastapi__fastapi-cli__5e72ded279 | fastapi/fastapi-cli | https://github.com/fastapi/fastapi-cli | 30edf85d67a9533203bec1731f6113f9a12f22b6 | 5e72ded2795a6abe96506486216a67f5c94d57d0 | ✨ Add --reload-dir option to dev command (#267) | small | 13 | python | [
"src/fastapi_cli/cli.py"
] | MIT | tasks/fastapi__fastapi-cli__5e72ded279/LICENSE | LICENSE | 16a0f907855b5c99de7e9ad0b1e13453c9652fa171a230be8bc9ae672ed89925 | [] | ## Context
`src/fastapi_cli/cli.py` defines the `fastapi` Typer application. The `dev` command collects CLI options and forwards them to the private `_run(...)`, which resolves the app import data and finally calls `uvicorn.run(...)`.
The relevant existing code:
```python
def _run(
path: Union[Path, None] = None... | tasks/fastapi__fastapi-cli__5e72ded279/spec.md | false | tests/test_cli.py | false | [
"tests/test_cli.py"
] | [
{
"path": "tasks/fastapi__fastapi-cli__5e72ded279/hidden/tests/test_cli.py",
"repo_path": "tests/test_cli.py",
"bytes": 20683,
"sha256": "d479fa256b8c8737c7fc23cb841c48096e68ac42a1f5e42d9b206db4d084017c",
"content": "import subprocess\nimport sys\nfrom pathlib import Path\nfrom unittest.mock imp... | [
"tests/test_cli.py::test_dev",
"tests/test_cli.py::test_dev_package",
"tests/test_cli.py::test_dev_args",
"tests/test_cli.py::test_dev_env_vars",
"tests/test_cli.py::test_dev_env_vars_and_args",
"tests/test_cli.py::test_run",
"tests/test_cli.py::test_run_trust_proxy",
"tests/test_cli.py::test_run_args... | [
"tests/test_cli.py::test_dev_no_args_auto_discovery",
"tests/test_cli.py::test_entrypoint_mutually_exclusive_with_path",
"tests/test_cli.py::test_entrypoint_mutually_exclusive_with_app",
"tests/test_cli.py::test_run_error",
"tests/test_cli.py::test_run_help",
"tests/test_cli.py::test_callback_help",
"te... | true | --- a/src/fastapi_cli/cli.py
+++ b/src/fastapi_cli/cli.py
@@ -104,6 +104,7 @@
host: str = "127.0.0.1",
port: int = 8000,
reload: bool = True,
+ reload_dirs: Union[list[Path], None] = None,
workers: Union[int, None] = None,
root_path: str = "",
command: str,
@@ -219,6 +220,7 @@
... | tasks/fastapi__fastapi-cli__5e72ded279/trained.patch | Qwen3.6-35B-A3B, the base model before any training (UD-IQ3_XXS GGUF quant) | {
"seed": 3,
"passed_spec_tests": true,
"spec_tests": 5,
"passed_upstream_tests": true,
"tool_calls": 29,
"wall_seconds": 367.9,
"timed_out": false,
"turn_limit": 30,
"time_limit_seconds": 480,
"generated_files_dropped": 3
} | {
"path": "tasks/fastapi__fastapi-cli__5e72ded279/repo.tar.gz",
"files": 96,
"bytes": 126517,
"compressed_bytes": 28046,
"sha256": "32ce50ba976502c72498f56951b3c5409ce40a2019c0d95adebb77aad26f514a",
"omitted": []
} |
fastapilabs__fastapi-cloud-cli__09ecc6d14b | fastapilabs/fastapi-cloud-cli | https://github.com/fastapilabs/fastapi-cloud-cli | b0375e557a9bae11a27d49161827204e09fa637d | 09ecc6d14b8dcdfe7e4ece6d62bcf97e26a1d375 | ✨ Add build skipped deployment statuses and handle unknown statuses (#371) | small | 13 | python | [
"src/fastapi_cloud_cli/api/_models.py"
] | MIT | tasks/fastapilabs__fastapi-cloud-cli__09ecc6d14b/LICENSE | LICENSE | 16a0f907855b5c99de7e9ad0b1e13453c9652fa171a230be8bc9ae672ed89925 | [] | ## Context
`src/fastapi_cloud_cli/api/_models.py` defines the pydantic models and enums for the FastAPI Cloud API. The change touches `DeploymentStatus` and its classmethod:
```python
class DeploymentStatus(str, Enum):
waiting_upload = "waiting_upload"
...
deploying_skipped = "deploying_skipped"
...
... | tasks/fastapilabs__fastapi-cloud-cli__09ecc6d14b/spec.md | false | tests/test_deployment_status.py | false | [
"tests/test_api_client.py",
"tests/test_deploy_utils.py"
] | [
{
"path": "tasks/fastapilabs__fastapi-cloud-cli__09ecc6d14b/hidden/tests/test_api_client.py",
"repo_path": "tests/test_api_client.py",
"bytes": 14716,
"sha256": "418a92c586de9f87b3c35c065839741350bdd73617f0c46fc0fceffa64c26632",
"content": "from datetime import timedelta\nfrom unittest.mock impo... | [
"tests/test_api_client.py::test_poll_deployment_status_keeps_polling_on_unknown_status",
"tests/test_deploy_utils.py::test_deployment_model_accepts_unknown_status"
] | [
"tests/test_api_client.py::test_api_client_reports_high_confidence_agent",
"tests/test_api_client.py::test_api_client_omits_unattributed_agent",
"tests/test_api_client.py::test_stream_build_logs_successful",
"tests/test_api_client.py::test_get_http_error_code_returns_network_error",
"tests/test_api_client.p... | true | --- a/src/fastapi_cloud_cli/api/_models.py
+++ b/src/fastapi_cloud_cli/api/_models.py
@@ -107,6 +107,7 @@
building_image = "building_image"
building_image_failed = "building_image_failed"
building_image_failed_timeout = "building_image_failed_timeout"
+ build_skipped = "build_skipped"
deploying =... | tasks/fastapilabs__fastapi-cloud-cli__09ecc6d14b/trained.patch | Qwen3.6-35B-A3B, the base model before any training (UD-IQ3_XXS GGUF quant) | {
"seed": 3,
"passed_spec_tests": true,
"spec_tests": 5,
"passed_upstream_tests": false,
"tool_calls": 11,
"wall_seconds": 79.7,
"timed_out": false,
"turn_limit": 30,
"time_limit_seconds": 480,
"generated_files_dropped": 0
} | {
"path": "tasks/fastapilabs__fastapi-cloud-cli__09ecc6d14b/repo.tar.gz",
"files": 170,
"bytes": 1359453,
"compressed_bytes": 289076,
"sha256": "0642ec5de74e50790e6282571c368fe0b187fdcb3e49b1a82313562721f780b0",
"omitted": []
} |
jsonpath-ng__jsonpath-ng__1e8153850c | jsonpath-ng/jsonpath-ng | https://github.com/jsonpath-ng/jsonpath-ng | 05d7aee97d7503f37d0e23d4623dec6162102607 | 1e8153850c4f16260a52b45250731ea919d0e637 | Support a query on the right-hand side of a filter comparison
Closes #79 | large | 214 | python | [
"src/jsonpath_ng/_ply_tables/ext_parser_table.py",
"src/jsonpath_ng/ext/filter.py",
"src/jsonpath_ng/ext/parser.py"
] | Apache-2.0 | tasks/jsonpath-ng__jsonpath-ng__1e8153850c/LICENSE | LICENSE | cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30 | [] | ## Context
The extended parser (`src/jsonpath_ng/ext/parser.py`) builds filter expressions whose right-hand side is always a literal. The grammar rule is `ExtendedJsonPathParser.p_expression`:
```python
def p_expression(self, p: _ExtProduction) -> None:
"""expression : jsonpath
| jsonpath FILTER_O... | tasks/jsonpath-ng__jsonpath-ng__1e8153850c/spec.md | false | tests/jsonpath/test_filter_query_rhs.py | false | [
"tests/jsonpath/test_filter_query_operands.py"
] | [
{
"path": "tasks/jsonpath-ng__jsonpath-ng__1e8153850c/hidden/tests/jsonpath/test_filter_query_operands.py",
"repo_path": "tests/jsonpath/test_filter_query_operands.py",
"bytes": 19115,
"sha256": "9d15f7160e402f73517deef92c5486f63eba0f60104e31be1c8a6123b2a5641f",
"content": "\"\"\"\nVerify that a... | [
"tests/jsonpath/test_filter_query_operands.py::test_current_node_compared_to_current_node",
"tests/jsonpath/test_filter_query_operands.py::test_current_node_compared_to_root_query",
"tests/jsonpath/test_filter_query_operands.py::test_sibling_members_compared",
"tests/jsonpath/test_filter_query_operands.py::te... | [] | true | --- a/src/jsonpath_ng/_ply_tables/ext_parser_table.py
+++ b/src/jsonpath_ng/_ply_tables/ext_parser_table.py
@@ -6,9 +6,9 @@
_lr_method = 'LALR'
-_lr_signature = "jsonpathleft+-left*/left,leftDOUBLEDOTleft.left|left&leftWHEREleftWHERENOTnonassocIDBOOL DOUBLEDOT FILTER_OP FLOAT ID NAMED_OPERATOR NULL NUMBER SORT_DIR... | tasks/jsonpath-ng__jsonpath-ng__1e8153850c/trained.patch | Qwen3.6-35B-A3B, the base model before any training (UD-IQ3_XXS GGUF quant) | {
"seed": 2,
"passed_spec_tests": true,
"spec_tests": 5,
"passed_upstream_tests": false,
"tool_calls": 14,
"wall_seconds": 129.7,
"timed_out": false,
"turn_limit": 50,
"time_limit_seconds": 900,
"generated_files_dropped": 22
} | {
"path": "tasks/jsonpath-ng__jsonpath-ng__1e8153850c/repo.tar.gz",
"files": 87,
"bytes": 605525,
"compressed_bytes": 138630,
"sha256": "ee403d4520ecfd6fee4649a7355f089d6b83bdcf5ce10a1d608a07a180b3e456",
"omitted": []
} |
jsonpath-ng__jsonpath-ng__3e978e402c | jsonpath-ng/jsonpath-ng | https://github.com/jsonpath-ng/jsonpath-ng | 8cb8e7e77aebf548fd1ab2eb95cd070a6ac61af3 | 3e978e402c7e2b0369c25348aabb6cd7bc3508f8 | Fix `!=` filter comparisons with literals | small | 19 | python | [
"src/jsonpath_ng/ext/filter.py"
] | Apache-2.0 | tasks/jsonpath-ng__jsonpath-ng__3e978e402c/LICENSE | LICENSE | cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30 | [] | # Build spec: Fix `!=` filter comparisons with literals
## Context
`src/jsonpath_ng/ext/filter.py` implements the extended filter syntax (`[?expr]`). `Expression` holds a comparison (`target`, `op`, `value`) and its `find()` evaluates it; `Filter.find()` applies a list of `Expression`s to each candidate of a dict or ... | tasks/jsonpath-ng__jsonpath-ng__3e978e402c/spec.md | false | tests/jsonpath/test_filter_neq_literals.py | false | [
"tests/jsonpath/test_filter_missing_member.py"
] | [
{
"path": "tasks/jsonpath-ng__jsonpath-ng__3e978e402c/hidden/tests/jsonpath/test_filter_missing_member.py",
"repo_path": "tests/jsonpath/test_filter_missing_member.py",
"bytes": 4386,
"sha256": "11cabddaf07d3004590125f455ea02882a5b0f86d4faefb02f0c57d479153245",
"content": "\"\"\"\nVerify filter ... | [
"tests/jsonpath/test_filter_missing_member.py::test_ne_literal_includes_missing_member",
"tests/jsonpath/test_filter_missing_member.py::test_other_comparisons_exclude_missing_member",
"tests/jsonpath/test_filter_missing_member.py::test_ne_literal_on_a_present_member_is_unchanged",
"tests/jsonpath/test_filter_... | [] | false | null | null | null | null | {
"path": "tasks/jsonpath-ng__jsonpath-ng__3e978e402c/repo.tar.gz",
"files": 86,
"bytes": 639490,
"compressed_bytes": 144827,
"sha256": "3ad4bcfad5cee050fe90dead4b9638fa4b9f513776aab9ab708e019dfaa861f5",
"omitted": []
} |
jsonpath-ng__jsonpath-ng__4210abc233 | jsonpath-ng/jsonpath-ng | https://github.com/jsonpath-ng/jsonpath-ng | 3aab00f4840a851e6260a353faeefcfbf0474cf7 | 4210abc23371a07fbc1dcc974f7a520d00e960c1 | Fix `Slice.filter` runtimes and removing incorrect elements | small | 29 | python | [
"src/jsonpath_ng/jsonpath.py"
] | Apache-2.0 | tasks/jsonpath-ng__jsonpath-ng__4210abc233/LICENSE | LICENSE | cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30 | [] | ## Context
`src/jsonpath_ng/jsonpath.py` defines the JSONPath AST. `Slice` models array slices and the `[*]` wildcard; `Index` models integer indices; `Fields` models object members. `FilterFunction` and `Container` are module-level type aliases:
```python
Container: typing.TypeAlias = dict[typing.Any, typing.Any] | ... | tasks/jsonpath-ng__jsonpath-ng__4210abc233/spec.md | false | tests/jsonpath/test_slice.py | true | [
"tests/jsonpath/test_slice.py",
"tests/jsonpath/test_slice_filter_time_scaling.py"
] | [
{
"path": "tasks/jsonpath-ng__jsonpath-ng__4210abc233/hidden/tests/jsonpath/test_slice.py",
"repo_path": "tests/jsonpath/test_slice.py",
"bytes": 6586,
"sha256": "b4e60d7ec998f01bd78facea6321772f06f949802e85be7619a3d7ddde65b8f9",
"content": "import pytest\n\nimport jsonpath_ng\nimport jsonpath_n... | [
"tests/jsonpath/test_slice.py::test_filter_removes_every_selected_element",
"tests/jsonpath/test_slice.py::test_filter_removes_only_the_elements_that_match_the_function",
"tests/jsonpath/test_slice.py::test_filter_function_sees_each_original_element_once_in_selection_order",
"tests/jsonpath/test_slice.py::tes... | [
"tests/jsonpath/test_slice.py::test_slice",
"tests/jsonpath/test_slice.py::test_find_selects_nothing_from_scalars",
"tests/jsonpath/test_slice.py::test_find_wildcard_selects_object_member_values",
"tests/jsonpath/test_slice.py::test_find_slice_with_parameters_selects_nothing_from_objects",
"tests/jsonpath/t... | true | --- a/src/jsonpath_ng/jsonpath.py
+++ b/src/jsonpath_ng/jsonpath.py
@@ -1008,15 +1008,29 @@
return data
def filter(self, fn: FilterFunction, data: Container) -> Container:
- while True:
- length = len(data)
- for datum in self.find(data):
- data = typing.cast(... | tasks/jsonpath-ng__jsonpath-ng__4210abc233/trained.patch | Qwen3.6-35B-A3B, the base model before any training (UD-IQ3_XXS GGUF quant) | {
"seed": 3,
"passed_spec_tests": true,
"spec_tests": 11,
"passed_upstream_tests": true,
"tool_calls": 12,
"wall_seconds": 187.1,
"timed_out": false,
"turn_limit": 30,
"time_limit_seconds": 480,
"generated_files_dropped": 22
} | {
"path": "tasks/jsonpath-ng__jsonpath-ng__4210abc233/repo.tar.gz",
"files": 94,
"bytes": 693170,
"compressed_bytes": 157340,
"sha256": "a39a62dd56904122bc1a74ad9bb195f629f5b4a837f747bf21f8cccfb1292d22",
"omitted": []
} |
jsonpath-ng__jsonpath-ng__50660b4916 | jsonpath-ng/jsonpath-ng | https://github.com/jsonpath-ng/jsonpath-ng | 652e0e7470036697bd01610171ecc44aa468c3b4 | 50660b49161094ea1e35b4882beb9f953088950b | Fix `Filter.update()` ignoring objects' member values | small | 43 | python | [
"src/jsonpath_ng/ext/filter.py"
] | Apache-2.0 | tasks/jsonpath-ng__jsonpath-ng__50660b4916/LICENSE | LICENSE | cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30 | [] | ## Context
`src/jsonpath_ng/ext/filter.py` defines `Filter`, the RFC 9535 filter node `[?...]`. Its `update()` delegates to `_update_with_root`, which today only handles lists:
```python
def _update_with_root(self, data, val, root):
if type(data) is list:
if self._references_root():
... | tasks/jsonpath-ng__jsonpath-ng__50660b4916/spec.md | false | tests/jsonpath/test_filter_update.py | true | [
"tests/jsonpath/test_filter.py"
] | [
{
"path": "tasks/jsonpath-ng__jsonpath-ng__50660b4916/hidden/tests/jsonpath/test_filter.py",
"repo_path": "tests/jsonpath/test_filter.py",
"bytes": 12346,
"sha256": "15360e8d53408e287c0376570012e0ee3fa90e5a933dd2b306dd2f06c3040eeb",
"content": "import copy\n\nimport pytest\n\nimport jsonpath_ng.... | [
"tests/jsonpath/test_filter.py::test_update_replaces_selected_values",
"tests/jsonpath/test_filter.py::test_update_callable_receives_value_container_and_key",
"tests/jsonpath/test_filter.py::test_update_callable_may_add_members_to_an_object"
] | [
"tests/jsonpath/test_filter.py::test_filter_returns_lists",
"tests/jsonpath/test_filter.py::test_filter_root_reference_is_document_root",
"tests/jsonpath/test_filter.py::test_update_root_reference_is_document_root",
"tests/jsonpath/test_filter.py::test_update_with_callable_root_reference_is_document_root",
... | false | null | null | null | null | {
"path": "tasks/jsonpath-ng__jsonpath-ng__50660b4916/repo.tar.gz",
"files": 109,
"bytes": 747239,
"compressed_bytes": 169088,
"sha256": "3891791a16b2bd3eb67be00e32203ac1027dba9d2536a3403793a98f0a2869b9",
"omitted": []
} |
jsonpath-ng__jsonpath-ng__5fdc999983 | jsonpath-ng/jsonpath-ng | https://github.com/jsonpath-ng/jsonpath-ng | d5bec01c311d736636a1b8c8e95e09b86e578108 | 5fdc99998395085acf8c290aa1371be1836c0b5d | Fix `Index.filter()` taking quadratic time | small | 19 | python | [
"src/jsonpath_ng/jsonpath.py"
] | Apache-2.0 | tasks/jsonpath-ng__jsonpath-ng__5fdc999983/LICENSE | LICENSE | cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30 | [] | ## Context
`src/jsonpath_ng/jsonpath.py` defines the JSONPath AST. `Index` selects array elements by integer index; its `filter()` removes the elements at those indices for which a predicate is true. The current implementation, verbatim from `src/jsonpath_ng/jsonpath.py`:
```python
def filter(self, fn: FilterFunc... | tasks/jsonpath-ng__jsonpath-ng__5fdc999983/spec.md | true | tests/jsonpath/test_index.py | false | [
"tests/jsonpath/test_index.py",
"tests/jsonpath/test_index_filter_time_scaling.py"
] | [
{
"path": "tasks/jsonpath-ng__jsonpath-ng__5fdc999983/hidden/tests/jsonpath/test_index.py",
"repo_path": "tests/jsonpath/test_index.py",
"bytes": 5929,
"sha256": "164479863b19abd5197431975e9c24f7d190df77d6a52200a0542872d60e01a3",
"content": "import copy\n\nimport pytest\n\nimport jsonpath_ng\nim... | [
"tests/jsonpath/test_index.py::test_filter_removes_the_first_half_of_a_long_array",
"tests/jsonpath/test_index_filter_time_scaling.py::test_index_filter_time_is_linear_to_data_size"
] | [
"tests/jsonpath/test_index.py::test_str",
"tests/jsonpath/test_index.py::test_str_roundtrip",
"tests/jsonpath/test_index.py::test_update_ignores_out_of_range_indices",
"tests/jsonpath/test_index.py::test_update_ignores_non_arrays",
"tests/jsonpath/test_index.py::test_update_mixed_indices_preserves_valid_sel... | false | null | null | null | null | {
"path": "tasks/jsonpath-ng__jsonpath-ng__5fdc999983/repo.tar.gz",
"files": 107,
"bytes": 745170,
"compressed_bytes": 168451,
"sha256": "1e9db99f8cbed12400f1b6046f407ddabfc98d54d28d4b5242907ecca02843d1",
"omitted": []
} |
jsonpath-ng__jsonpath-ng__87c7979222 | jsonpath-ng/jsonpath-ng | https://github.com/jsonpath-ng/jsonpath-ng | 6fcce3d33e4dbd4e19101527bc954bdaae6d2fec | 87c7979222fa93648c55a590efa8695c6dfbb35c | Fix crashes and other issues with filtering by array index | small | 19 | python | [
"src/jsonpath_ng/jsonpath.py"
] | Apache-2.0 | tasks/jsonpath-ng__jsonpath-ng__87c7979222/LICENSE | LICENSE | cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30 | [] | ## Context
`src/jsonpath_ng/jsonpath.py` defines the JSONPath AST. `Index` matches integer array indices; `Slice` is the wildcard/slice selector and delegates per-element filtering back to `Index` via `datum.path.filter(...)`.
The change touches `Index.filter` in `src/jsonpath_ng/jsonpath.py`, currently:
```python
... | tasks/jsonpath-ng__jsonpath-ng__87c7979222/spec.md | false | tests/jsonpath/test_index.py | true | [
"tests/jsonpath/test_index.py"
] | [
{
"path": "tasks/jsonpath-ng__jsonpath-ng__87c7979222/hidden/tests/jsonpath/test_index.py",
"repo_path": "tests/jsonpath/test_index.py",
"bytes": 5691,
"sha256": "aeea157b012f9c4f3d35ba49d65cb4c68e67f36cbdc4f79d51a8d0bdd40bffb9",
"content": "import copy\n\nimport pytest\n\nimport jsonpath_ng\nim... | [
"tests/jsonpath/test_index.py::test_filter_ignores_out_of_range_indices",
"tests/jsonpath/test_index.py::test_filter_ignores_non_arrays",
"tests/jsonpath/test_index.py::test_filter_removes_every_selected_element",
"tests/jsonpath/test_index.py::test_filter_function_sees_original_elements",
"tests/jsonpath/t... | [
"tests/jsonpath/test_index.py::test_str",
"tests/jsonpath/test_index.py::test_str_roundtrip",
"tests/jsonpath/test_index.py::test_update_ignores_out_of_range_indices",
"tests/jsonpath/test_index.py::test_update_ignores_non_arrays",
"tests/jsonpath/test_index.py::test_update_mixed_indices_preserves_valid_sel... | true | --- a/src/jsonpath_ng/jsonpath.py
+++ b/src/jsonpath_ng/jsonpath.py
@@ -912,9 +912,13 @@
return data
def filter(self, fn: FilterFunction, data: Container) -> Container:
- for index in self.indices:
+ if not isinstance(data, list):
+ return data
+ for index in sorted(self.... | tasks/jsonpath-ng__jsonpath-ng__87c7979222/trained.patch | Qwen3.6-35B-A3B, the base model before any training (UD-IQ3_XXS GGUF quant) | {
"seed": 1,
"passed_spec_tests": true,
"spec_tests": 9,
"passed_upstream_tests": true,
"tool_calls": 8,
"wall_seconds": 77.5,
"timed_out": false,
"turn_limit": 30,
"time_limit_seconds": 480,
"generated_files_dropped": 0
} | {
"path": "tasks/jsonpath-ng__jsonpath-ng__87c7979222/repo.tar.gz",
"files": 90,
"bytes": 634308,
"compressed_bytes": 144020,
"sha256": "64c68b71a2f01fea2eb985224fa9f3b3f80bdf61d62f57f2fd36ab1ae5322e5d",
"omitted": []
} |
jsonpath-ng__jsonpath-ng__a1bd6c25bc | jsonpath-ng/jsonpath-ng | https://github.com/jsonpath-ng/jsonpath-ng | 623471632d81814cd53ce87cb9b09977cd41367f | a1bd6c25bc94233de37081376a5a884de4414b84 | Resolve `$` to the root node inside a filter
Fixes #66 | medium | 151 | python | [
"src/jsonpath_ng/ext/filter.py",
"src/jsonpath_ng/jsonpath.py"
] | Apache-2.0 | tasks/jsonpath-ng__jsonpath-ng__a1bd6c25bc/LICENSE | LICENSE | cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30 | [] | ## Context
The package parses JSONPath expressions into an AST of `JSONPath` nodes in `src/jsonpath_ng/jsonpath.py`; the filter extension `[?(...)]` lives in `src/jsonpath_ng/ext/filter.py` as class `Filter`, whose expressions are `Expression` nodes.
Today, inside a filter, `$` does not resolve to the root of the dat... | tasks/jsonpath-ng__jsonpath-ng__a1bd6c25bc/spec.md | true | tests/jsonpath/test_filter.py | false | [
"tests/jsonpath/test_filter.py"
] | [
{
"path": "tasks/jsonpath-ng__jsonpath-ng__a1bd6c25bc/hidden/tests/jsonpath/test_filter.py",
"repo_path": "tests/jsonpath/test_filter.py",
"bytes": 9216,
"sha256": "5c133057e8d56f50d832b9dbede03bc524adf973ba2260e060ab1049c8b67ec1",
"content": "import copy\n\nimport pytest\n\nimport jsonpath_ng.e... | [
"tests/jsonpath/test_filter.py::test_filter_root_reference_is_document_root",
"tests/jsonpath/test_filter.py::test_update_root_reference_is_document_root",
"tests/jsonpath/test_filter.py::test_update_with_callable_root_reference_is_document_root",
"tests/jsonpath/test_filter.py::test_filter_method_root_refere... | [
"tests/jsonpath/test_filter.py::test_filter_returns_lists"
] | false | null | null | null | null | {
"path": "tasks/jsonpath-ng__jsonpath-ng__a1bd6c25bc/repo.tar.gz",
"files": 86,
"bytes": 593512,
"compressed_bytes": 136253,
"sha256": "78f05e80489de0c7bb3bc2757493be3ed7f80dc3a80bf1afa7af81e6244af730",
"omitted": []
} |
jupyter__jupyter_client__ee43cd3fee | jupyter/jupyter_client | https://github.com/jupyter/jupyter_client | 0bce36fb216d228d755f6c1ca3473cfb4e0f29a6 | ee43cd3fee9c6e1a485a88509ebee2836f694c26 | Faster message serialization (#1064)
* Add orjson_packer and orjson_unpacker to speed up serialization of session messages.
* Refactor orjson packer to use functools.partial.
* Add msgpack support for message serialization in Session
* Refactor packer/unpacker change handling for improved readability
* Fix test_se... | medium | 127 | python | [
"jupyter_client/session.py"
] | BSD-3-Clause | tasks/jupyter__jupyter_client__ee43cd3fee/LICENSE | LICENSE | 5ca74e4d2eeb9330b0d129c25f874d3544a13413bc62ae8d367819100d095072 | [] | ## Context
`jupyter_client/session.py` builds, signs, serialises and deserialises Jupyter messages. `Session` is a traitlets `Configurable` whose `pack`/`unpack` callables turn message parts into bytes and back. The request adds an `orjson`-based packer/unpacker pair, with a fallback to the existing JSON functions whe... | tasks/jupyter__jupyter_client__ee43cd3fee/spec.md | true | tests/test_session.py | true | [
"tests/test_session.py"
] | [
{
"path": "tasks/jupyter__jupyter_client__ee43cd3fee/hidden/tests/test_session.py",
"repo_path": "tests/test_session.py",
"bytes": 21325,
"sha256": "708d462c90a176f9c7154924697c2e667abf9a9154c97174f4d0ccc190513111",
"content": "\"\"\"test building messages with Session\"\"\"\n\n# Copyright (c) J... | [
"tests/test_session.py::TestSession::test_serialize",
"tests/test_session.py::TestSession::test_args",
"tests/test_session.py::test_serialize_objects",
"tests/test_session.py::test_cannot_serialize",
"tests/test_session.py::test_pack_unpack"
] | [
"tests/test_session.py::TestSession::test_msg",
"tests/test_session.py::TestSession::test_default_secure",
"tests/test_session.py::TestSession::test_send_sync",
"tests/test_session.py::TestSession::test_send",
"tests/test_session.py::TestSession::test_tracking_sync",
"tests/test_session.py::TestSession::t... | true | --- a/jupyter_client/session.py
+++ b/jupyter_client/session.py
@@ -13,6 +13,7 @@
# Distributed under the terms of the Modified BSD License.
from __future__ import annotations
+import functools
import hashlib
import hmac
import json
@@ -125,6 +126,28 @@
return json.loads(s)
+try:
+ import orjson
+exc... | tasks/jupyter__jupyter_client__ee43cd3fee/trained.patch | Qwen3.6-35B-A3B, the base model before any training (UD-IQ3_XXS GGUF quant) | {
"seed": 2,
"passed_spec_tests": true,
"spec_tests": 5,
"passed_upstream_tests": false,
"tool_calls": 21,
"wall_seconds": 172.8,
"timed_out": false,
"turn_limit": 30,
"time_limit_seconds": 480,
"generated_files_dropped": 0
} | {
"path": "tasks/jupyter__jupyter_client__ee43cd3fee/repo.tar.gz",
"files": 100,
"bytes": 1202027,
"compressed_bytes": 345531,
"sha256": "c0c255231c04f719748e37facf7ca1486faf7211ca42e977f808576ec2a4883c",
"omitted": []
} |
jupyter__jupyter_core__c9ced604f1 | jupyter/jupyter_core | https://github.com/jupyter/jupyter_core | 00c7841451db0e53390bc579746bd49f26a64e09 | c9ced604f1da6f533ec588a5aa57d0c31fdf3357 | Add /opt/homebrew to SYSTEM paths on Apple Silicon Homebrew
On Apple Silicon Homebrew Python, sys.prefix resolves into the
keg-only Cellar path (/opt/homebrew/opt/python@X.Y/Frameworks/...)
rather than /opt/homebrew. Pip-installed share-data files land at
/opt/homebrew/share/jupyter, but the default SYSTEM_JUPYTER_PAT... | small | 10 | python | [
"jupyter_core/paths.py"
] | BSD-3-Clause | tasks/jupyter__jupyter_core__c9ced604f1/LICENSE | LICENSE | 448f1835f5fa08dd075088e46f76f73eb9ac9c2aef0a6c8816be06d30ef592c7 | [] | # Build spec: add /opt/homebrew to SYSTEM paths on Apple Silicon Homebrew
## Context
`jupyter_core/paths.py` computes the system-wide search paths at import time. Two module-level lists are the ones the request changes. In the legacy (non-platformdirs) branch for non-Windows:
```python
# jupyter_core/paths.py
el... | tasks/jupyter__jupyter_core__c9ced604f1/spec.md | false | tests/test_paths.py | true | [
"tests/test_paths.py"
] | [
{
"path": "tasks/jupyter__jupyter_core__c9ced604f1/hidden/tests/test_paths.py",
"repo_path": "tests/test_paths.py",
"bytes": 21966,
"sha256": "f5d125b022a985d6d72bf9eb77a955d056c70b4315567ccba9c05f30ffa154d2",
"content": "\"\"\"Tests for paths\"\"\"\n\n# Copyright (c) Jupyter Development Team.\n... | [
"tests/test_paths.py::test_apple_silicon_homebrew_system_paths"
] | [
"tests/test_paths.py::test_envset",
"tests/test_paths.py::test_config_dir",
"tests/test_paths.py::test_config_dir_darwin",
"tests/test_paths.py::test_config_dir_windows",
"tests/test_paths.py::test_config_dir_linux",
"tests/test_paths.py::test_config_env_legacy",
"tests/test_paths.py::test_config_env",
... | true | --- a/jupyter_core/paths.py
+++ b/jupyter_core/paths.py
@@ -239,6 +239,8 @@
"/usr/local/share/jupyter",
"/usr/share/jupyter",
]
+ if sys.prefix.startswith("/opt/homebrew"):
+ SYSTEM_JUPYTER_PATH.insert(0, "/opt/homebrew/share/jupyter")
ENV_JUPYTER_PATH: list[str] ... | tasks/jupyter__jupyter_core__c9ced604f1/trained.patch | Qwen3.6-35B-A3B, the base model before any training (UD-IQ3_XXS GGUF quant) | {
"seed": 2,
"passed_spec_tests": true,
"spec_tests": 5,
"passed_upstream_tests": true,
"tool_calls": 14,
"wall_seconds": 117.8,
"timed_out": false,
"turn_limit": 30,
"time_limit_seconds": 480,
"generated_files_dropped": 0
} | {
"path": "tasks/jupyter__jupyter_core__c9ced604f1/repo.tar.gz",
"files": 64,
"bytes": 416179,
"compressed_bytes": 90010,
"sha256": "b55f11f4951be88d4a20b8d9067899ab99a28e8d70b4192a55e93b11d4a56759",
"omitted": []
} |
laurent-laporte-pro__deprecated__55e187cbfb | laurent-laporte-pro/deprecated | https://github.com/laurent-laporte-pro/deprecated | e9785839baa75ffae36e33dae0682aa97d95e7e6 | 55e187cbfbce056f9c9b3db06826df1b4c69b784 | fix: make deprecated functions and methods picklable (multiprocessing spawn) (#108)
wrapt proxies refuse to be pickled, so a deprecated function could not be
sent to a child process with the multiprocessing "spawn" start method (the
default one on Windows and macOS), e.g. as a Process target or with
Pool.map(): pickli... | medium | 80 | python | [
"src/deprecated/classic.py"
] | MIT | tasks/laurent-laporte-pro__deprecated__55e187cbfb/LICENSE | LICENSE.md | a210fe0b9e9f2c0123e873f5347e9091f51cfd12863aebbe8da71f24cf804fd2 | [] | # Build spec: make deprecated functions and methods picklable
## Context
`src/deprecated/classic.py` implements the classic `@deprecated` decorator. `ClassicAdapter.__call__` decorates classes by patching `__new__`, and routines by wrapping them with a wrapt proxy. The routine branch, which this change rewrites, is:
... | tasks/laurent-laporte-pro__deprecated__55e187cbfb/spec.md | true | tests/test_deprecated.py | false | [
"tests/test_pickle.py"
] | [
{
"path": "tasks/laurent-laporte-pro__deprecated__55e187cbfb/hidden/tests/test_pickle.py",
"repo_path": "tests/test_pickle.py",
"bytes": 4681,
"sha256": "3b347937780dc081bea47772453d70417b0c6b0a7dc11e183970b5fbdf72e5dc",
"content": "\"\"\"\nPickling of deprecated routines, and use with :mod:`mul... | [
"tests/test_pickle.py::test_pickle_deprecated_function",
"tests/test_pickle.py::test_pickle_function_with_deprecated_params",
"tests/test_pickle.py::test_pickle_deprecated_class_level_method",
"tests/test_pickle.py::test_pickle_deprecated_unbound_method",
"tests/test_pickle.py::test_pickle_deprecated_bound_... | [] | false | null | null | null | null | {
"path": "tasks/laurent-laporte-pro__deprecated__55e187cbfb/repo.tar.gz",
"files": 82,
"bytes": 804524,
"compressed_bytes": 403838,
"sha256": "3167ac8d53fc0c227b13bd4822878a72c304354c2944e80f907d34e931f6472c",
"omitted": []
} |
laurent-laporte-pro__deprecated__9647b7c84f | laurent-laporte-pro/deprecated | https://github.com/laurent-laporte-pro/deprecated | ebe43e56f3214ff2c1ef34f8720ae5ccc2776d32 | 9647b7c84fdf0ad5deb6342693392fb8a0b1a7bc | feat: add the "Google" docstring decorators (deprecated.google) (#105)
The new `deprecated.google` module provides `@deprecated`, `@versionadded`
and `@versionchanged` decorators which insert a `Deprecated:`,
`Version added:` or `Version changed:` section in Google style docstrings.
Each section item has the format `v... | large | 347 | python | [
"src/deprecated/google.py"
] | MIT | tasks/laurent-laporte-pro__deprecated__9647b7c84f/LICENSE | LICENSE.md | a210fe0b9e9f2c0123e873f5347e9091f51cfd12863aebbe8da71f24cf804fd2 | [] | ## Context
The library provides deprecation decorators in three modules: `src/deprecated/classic.py` (the `@deprecated` decorator and the `ClassicAdapter` base class), `src/deprecated/sphinx.py` (decorators that append Sphinx `.. versionadded::` directives to docstrings) and `src/deprecated/params.py` (parameter depre... | tasks/laurent-laporte-pro__deprecated__9647b7c84f/spec.md | false | tests/test_google.py | true | [
"tests/test_google.py"
] | [
{
"path": "tasks/laurent-laporte-pro__deprecated__9647b7c84f/hidden/tests/test_google.py",
"repo_path": "tests/test_google.py",
"bytes": 7843,
"sha256": "e2bc6ad04d49b69fd3b0e91ae38a836a68337aa9e32d07e46643e7612b863264",
"content": "import sys\nimport textwrap\nimport warnings\n\nimport pytest\n... | [
"tests/test_google.py::test_has_google_docstring",
"tests/test_google.py::test_cls_has_google_docstring",
"tests/test_google.py::test_google_adapter",
"tests/test_google.py::test_stacked_decorators",
"tests/test_google.py::test_add_item_to_existing_section",
"tests/test_google.py::test_method_and_classmet... | [] | true | --- /dev/null
+++ b/src/deprecated/google.py
@@ -0,0 +1,269 @@
+"""
+Google style docstring integration
+==================================
+
+We usually need to document the life-cycle of functions and classes:
+when they are created, modified or deprecated.
+
+Google style docstrings use structured sections to docume... | tasks/laurent-laporte-pro__deprecated__9647b7c84f/trained.patch | Qwen3.6-35B-A3B, the base model before any training (UD-IQ3_XXS GGUF quant) | {
"seed": 2,
"passed_spec_tests": true,
"spec_tests": 9,
"passed_upstream_tests": false,
"tool_calls": 14,
"wall_seconds": 252,
"timed_out": false,
"turn_limit": 50,
"time_limit_seconds": 900,
"generated_files_dropped": 0
} | {
"path": "tasks/laurent-laporte-pro__deprecated__9647b7c84f/repo.tar.gz",
"files": 77,
"bytes": 3379793,
"compressed_bytes": 3005607,
"sha256": "d52132333bd0b53072f35c544b9ea480e75351e1830fbd12019621efc06c6ea8",
"omitted": []
} |
laurent-laporte-pro__deprecated__cb41b8bae0 | laurent-laporte-pro/deprecated | https://github.com/laurent-laporte-pro/deprecated | d8cbb6a40dc04a29dc31d037819c3fb3f6e511e4 | cb41b8bae0a893dc8682b5103d3f29dc56022706 | fix: make nested class deprecation warnings refer to the user code
When a deprecated class inherited from a deprecated class, the warning
of the parent class referred to classic.py. The warnings are now emitted
with 'skip_file_prefixes' (Python 3.12+), skipping the frames of this
library and of wrapt: this also replac... | medium | 66 | python | [
"deprecated/classic.py"
] | MIT | tasks/laurent-laporte-pro__deprecated__cb41b8bae0/LICENSE | LICENSE.rst | 1e83edd15be419b5d5bde372e325e527ff4f9915f548e7c75314b41f6699e83c | [] | # Build spec: emit deprecation warnings with `skip_file_prefixes` so nested class warnings refer to user code
## Context
`deprecated/classic.py` implements the classic `@deprecated` decorator. `ClassicAdapter.__call__` patches `__new__` for classes and uses a `wrapt.decorator` wrapper for routines; both branches comp... | tasks/laurent-laporte-pro__deprecated__cb41b8bae0/spec.md | false | tests/test_deprecated_class.py | true | [
"tests/test_deprecated.py",
"tests/test_deprecated_class.py",
"tests/test_sphinx_class.py"
] | [
{
"path": "tasks/laurent-laporte-pro__deprecated__cb41b8bae0/hidden/tests/test_deprecated.py",
"repo_path": "tests/test_deprecated.py",
"bytes": 10187,
"sha256": "6b7b5a9e7dbfe2e6f78e638061412df4e6a10945e72028afc5c2773d95832901",
"content": "import inspect\nimport sys\nimport warnings\nfrom typi... | [
"tests/test_deprecated.py::test_nested_deprecated_classes_refer_to_the_caller",
"tests/test_deprecated.py::test_extra_stacklevel_with_nested_deprecated_classes",
"tests/test_deprecated_class.py::test_simple_class_deprecation_with_args",
"tests/test_sphinx_class.py::test_isinstance_deprecated"
] | [
"tests/test_deprecated.py::test_classic_deprecated_function__warns",
"tests/test_deprecated.py::test_classic_deprecated_class__warns",
"tests/test_deprecated.py::test_classic_deprecated_method__warns",
"tests/test_deprecated.py::test_classic_deprecated_static_method__warns",
"tests/test_deprecated.py::test_... | false | null | null | null | null | {
"path": "tasks/laurent-laporte-pro__deprecated__cb41b8bae0/repo.tar.gz",
"files": 76,
"bytes": 3269446,
"compressed_bytes": 2971120,
"sha256": "cc6f77cedc1cd417303dbe91329bf372b0ed58c5e95b8a8a37c0c4f1dd884db8",
"omitted": []
} |
laurent-laporte-pro__deprecated__cd10da638d | laurent-laporte-pro/deprecated | https://github.com/laurent-laporte-pro/deprecated | 1505880664d762362907ce4c665f071b688ffcaf | cd10da638dce98547d9e7c251fbd70bb9377dd04 | fix: preserve constructor signatures of deprecated classes (#115)
Assisted-by: OpenAI Codex | small | 18 | python | [
"src/deprecated/classic.py"
] | MIT | tasks/laurent-laporte-pro__deprecated__cd10da638d/LICENSE | LICENSE.md | a210fe0b9e9f2c0123e873f5347e9091f51cfd12863aebbe8da71f24cf804fd2 | [] | # Build spec: preserve constructor signatures of deprecated classes
## Context
`src/deprecated/classic.py` implements the classic `@deprecated` decorator. When the decorated object is a class, `ClassicAdapter.__call__` patches the class's `__new__` with a warning-emitting wrapper. The relevant code, quoted verbatim f... | tasks/laurent-laporte-pro__deprecated__cd10da638d/spec.md | false | tests/test_deprecated_class_signature.py | true | [
"tests/test_deprecated_class.py"
] | [
{
"path": "tasks/laurent-laporte-pro__deprecated__cd10da638d/hidden/tests/test_deprecated_class.py",
"repo_path": "tests/test_deprecated_class.py",
"bytes": 7495,
"sha256": "f194692272e5abbe9d9ae775b3c11c6aeb3ee47d7ff54c76e1c1aed3b1368a53",
"content": "import inspect\nimport io\nimport warnings\... | [
"tests/test_deprecated_class.py::test_deprecated_class_preserves_signature",
"tests/test_deprecated_class.py::test_deprecated_class_preserves_empty_and_builtin_signatures",
"tests/test_deprecated_class.py::test_deprecated_class_preserves_constructor_parameter_named_cls",
"tests/test_deprecated_class.py::test_... | [
"tests/test_deprecated_class.py::test_simple_class_deprecation",
"tests/test_deprecated_class.py::test_class_deprecation_using_wrapper",
"tests/test_deprecated_class.py::test_class_deprecation_using_a_simple_decorator",
"tests/test_deprecated_class.py::test_class_deprecation_using_deprecated_decorator",
"te... | true | --- a/src/deprecated/classic.py
+++ b/src/deprecated/classic.py
@@ -287,9 +287,13 @@
.. versionchanged:: 3.0.0
A deprecated function or method can be pickled (by reference, like a regular
function), so it can be used with :mod:`multiprocessing`.
+
+ .. versionchanged:: 3.0.1
+ ... | tasks/laurent-laporte-pro__deprecated__cd10da638d/trained.patch | Qwen3.6-35B-A3B, the base model before any training (UD-IQ3_XXS GGUF quant) | {
"seed": 1,
"passed_spec_tests": true,
"spec_tests": 5,
"passed_upstream_tests": false,
"tool_calls": 12,
"wall_seconds": 354.2,
"timed_out": false,
"turn_limit": 30,
"time_limit_seconds": 480,
"generated_files_dropped": 0
} | {
"path": "tasks/laurent-laporte-pro__deprecated__cd10da638d/repo.tar.gz",
"files": 84,
"bytes": 611944,
"compressed_bytes": 165598,
"sha256": "1aeb7b19c6aed1ab5a35b6efc27fcdb3b36fd3504919d6e9625b0af7d9b0d52d",
"omitted": []
} |
lepture__mistune__1209f3421e | lepture/mistune | https://github.com/lepture/mistune | b5dd9949baf3729a709ef8ae591eab86e72a9e46 | 1209f3421e5057bb2525c7059c1a38ddf205ef2e | fix: apply escape flag to a user-supplied HTML renderer
create_markdown() only passed the escape flag to the renderer it built
itself, so passing escape=False together with a custom HTMLRenderer
subclass silently left HTML escaped.
escape now defaults to None, meaning 'keep the renderer's own setting',
and an explici... | small | 10 | python | [
"src/mistune/__init__.py"
] | BSD-3-Clause | tasks/lepture__mistune__1209f3421e/LICENSE | LICENSE | 539013fd8e19f744f8bf0e27a532bbff54cd689ecef7a800f56ae5dc824be870 | [] | ## Context
`src/mistune/__init__.py` exposes the public factory `create_markdown` and the convenience function `markdown`. The relevant code today:
```python
RendererRef = Union[Literal["html", "ast"], BaseRenderer]
def create_markdown(
escape: bool = True,
hard_wrap: bool = False,
renderer: Optional[Re... | tasks/lepture__mistune__1209f3421e/spec.md | false | tests/test_escape_flag.py | false | [
"tests/test_misc.py"
] | [
{
"path": "tasks/lepture__mistune__1209f3421e/hidden/tests/test_misc.py",
"repo_path": "tests/test_misc.py",
"bytes": 15144,
"sha256": "81d5646259800a8412f1ab00e13418fc61c770500939bee3d4afa760e2f9e1cf",
"content": "from unittest import TestCase\n\nimport mistune\n\n\nclass TestMiscCases(TestCase... | [
"tests/test_misc.py::TestMiscCases::test_escape_applies_to_custom_renderer"
] | [
"tests/test_misc.py::TestMiscCases::test_none",
"tests/test_misc.py::TestMiscCases::test_before_parse_hooks",
"tests/test_misc.py::TestMiscCases::test_hard_wrap",
"tests/test_misc.py::TestMiscCases::test_speedup_plugin_is_compat_noop",
"tests/test_misc.py::TestMiscCases::test_block_plain_paragraph_fast_path... | false | null | null | null | null | {
"path": "tasks/lepture__mistune__1209f3421e/repo.tar.gz",
"files": 142,
"bytes": 744364,
"compressed_bytes": 175325,
"sha256": "65ee350866f8ea9e0d1be628046557670e853e96fbbb5cf751bc234924434085",
"omitted": []
} |
lepture__mistune__14ececa88f | lepture/mistune | https://github.com/lepture/mistune | 719107f8fbc01c07af5eb51822c6888122d56afc | 14ececa88fc61a7f9ab06413c82f18e3cfea1533 | Keep multi-line setext headings intact in MarkdownRenderer
A setext heading can span several lines, but the renderer always emitted
an ATX heading (# ...). Since an ATX heading is a single line, every line
after the first fell out of the heading and turned into a paragraph on a
re-parse. Emit levels 1 and 2 in setext ... | small | 11 | python | [
"src/mistune/renderers/markdown.py"
] | BSD-3-Clause | tasks/lepture__mistune__14ececa88f/LICENSE | LICENSE | 539013fd8e19f744f8bf0e27a532bbff54cd689ecef7a800f56ae5dc824be870 | [] | ## Context
`src/mistune/renderers/markdown.py` defines `MarkdownRenderer`, a renderer that re-formats Markdown text. The change touches only its `heading` method, which today always emits an ATX heading:
```python
def heading(self, token: Dict[str, Any], state: BlockState) -> str:
level = cast(int, token[... | tasks/lepture__mistune__14ececa88f/spec.md | false | tests/test_renderers.py | false | [
"tests/test_renderers.py"
] | [
{
"path": "tasks/lepture__mistune__14ececa88f/hidden/tests/test_renderers.py",
"repo_path": "tests/test_renderers.py",
"bytes": 6929,
"sha256": "183ad72d350830306cf1443943941040cb9062bc8d603ab369b3d307438948b1",
"content": "from unittest import TestCase\n\nfrom mistune import BlockState, HTMLRen... | [
"tests/test_renderers.py::TestMarkdownRendererRoundTrip::test_multiline_setext_heading"
] | [
"tests/test_renderers.py::TestMarkdownRendererRoundTrip::test_escaped_block_markers",
"tests/test_renderers.py::TestMarkdownRendererRoundTrip::test_escaped_marker_on_continuation_line",
"tests/test_renderers.py::TestMarkdownRendererRoundTrip::test_escaped_marker_inside_list_item",
"tests/test_renderers.py::Te... | false | null | null | null | null | {
"path": "tasks/lepture__mistune__14ececa88f/repo.tar.gz",
"files": 137,
"bytes": 558029,
"compressed_bytes": 116612,
"sha256": "8b616a8fd2d4064cc41581a04dd15d60680f4ac499c98d7f8ecc658139ef61e0",
"omitted": []
} |
lepture__mistune__1cc26a3e14 | lepture/mistune | https://github.com/lepture/mistune | 4a382986bf6ea948d2bed9ac433d493019f3299e | 1cc26a3e14b2da5e910bd2ba3f55eae8bc0dfb9a | fix: make inline rule start hints explicit | medium | 93 | python | [
"src/mistune/inline_parser.py"
] | BSD-3-Clause | tasks/lepture__mistune__1cc26a3e14/LICENSE | LICENSE | 539013fd8e19f744f8bf0e27a532bbff54cd689ecef7a800f56ae5dc824be870 | [] | ## Context
`src/mistune/inline_parser.py` defines `InlineParser`, the inline tokeniser. It has a "fast path": while scanning, it skips ahead to the next character that can start any active rule, instead of running the full combined regex over every position. The set of such characters is derived from per-rule "start h... | tasks/lepture__mistune__1cc26a3e14/spec.md | false | tests/test_inline_start_chars.py | true | [
"tests/test_misc.py"
] | [
{
"path": "tasks/lepture__mistune__1cc26a3e14/hidden/tests/test_misc.py",
"repo_path": "tests/test_misc.py",
"bytes": 19797,
"sha256": "527586f8ffe19575bf83d93c9b91b5460804970c70e789f47c18b185c8d7959d",
"content": "from time import perf_counter\nfrom unittest import TestCase\n\nimport mistune\n\... | [
"tests/test_misc.py::TestMiscCases::test_inline_plugin_refreshes_fast_trigger_cache",
"tests/test_misc.py::TestMiscCases::test_inline_plugin_alternation_without_start_hints",
"tests/test_misc.py::TestMiscCases::test_inline_plugin_alternation_with_start_hints",
"tests/test_misc.py::TestMiscCases::test_inline_p... | [
"tests/test_misc.py::TestMiscCases::test_none",
"tests/test_misc.py::TestMiscCases::test_before_parse_hooks",
"tests/test_misc.py::TestMiscCases::test_escape_applies_to_custom_renderer",
"tests/test_misc.py::TestMiscCases::test_hard_wrap",
"tests/test_misc.py::TestMiscCases::test_speedup_plugin_is_compat_no... | true | --- a/src/mistune/inline_parser.py
+++ b/src/mistune/inline_parser.py
@@ -9,7 +9,6 @@
from .helpers import HTML_ATTRIBUTES, HTML_TAGNAME, PUNCTUATION, unescape_char
from .util import escape_url
-_REGEX_META_CHARS = set(r"()[]{}?*+|.^$")
DEFAULT_MAX_EMPHASIS_DEPTH = 20
DEFAULT_MAX_IMAGE_DEPTH = 20
@@ -28,7 +27,3... | tasks/lepture__mistune__1cc26a3e14/trained.patch | Qwen3.6-35B-A3B, the base model before any training (UD-IQ3_XXS GGUF quant) | {
"seed": 2,
"passed_spec_tests": true,
"spec_tests": 3,
"passed_upstream_tests": true,
"tool_calls": 12,
"wall_seconds": 176,
"timed_out": false,
"turn_limit": 30,
"time_limit_seconds": 480,
"generated_files_dropped": 0
} | {
"path": "tasks/lepture__mistune__1cc26a3e14/repo.tar.gz",
"files": 143,
"bytes": 763525,
"compressed_bytes": 179204,
"sha256": "516cd6977d9c72b537a8b1a60795100d364e0106d44f5e350cd2d07d071f8a35",
"omitted": []
} |
lepture__mistune__278640ef9b | lepture/mistune | https://github.com/lepture/mistune | a1b50bc12e066e5707ff797f821829bfcdab03b5 | 278640ef9b183f5b6ec7c414148d1f43e23e4901 | fix: preserve leading blank lines in MarkdownRenderer
Blank-line tokens at the start of the document were rendered as empty
strings, so parse-then-markdown of a source that began with newlines
dropped them. Record the leading newline count on the first blank_line
token and emit it when reformatting. | medium | 15 | python | [
"src/mistune/block_parser.py",
"src/mistune/renderers/markdown.py"
] | BSD-3-Clause | tasks/lepture__mistune__278640ef9b/LICENSE | LICENSE | 539013fd8e19f744f8bf0e27a532bbff54cd689ecef7a800f56ae5dc824be870 | [] | ## Context
The change makes `MarkdownRenderer` (the Markdown-to-Markdown reformatter) preserve blank lines at the very start of the source document. Today they are dropped.
`src/mistune/block_parser.py` defines `BlockParser`. Its blank-line rule and parse method are:
```python
BLANK_LINE = re.compile(r"(^[ \t\v\... | tasks/lepture__mistune__278640ef9b/spec.md | false | tests/test_renderers.py | false | [
"tests/test_renderers.py"
] | [
{
"path": "tasks/lepture__mistune__278640ef9b/hidden/tests/test_renderers.py",
"repo_path": "tests/test_renderers.py",
"bytes": 7255,
"sha256": "3cb6cfb8d4c6a4d77ccb183ace5328761080e39c1383fd27bc7467819a82d182",
"content": "from unittest import TestCase\n\nfrom mistune import BlockState, HTMLRen... | [
"tests/test_renderers.py::TestMarkdownRendererRoundTrip::test_leading_blank_lines_preserved"
] | [
"tests/test_renderers.py::TestMarkdownRendererRoundTrip::test_escaped_block_markers",
"tests/test_renderers.py::TestMarkdownRendererRoundTrip::test_escaped_marker_on_continuation_line",
"tests/test_renderers.py::TestMarkdownRendererRoundTrip::test_escaped_marker_inside_list_item",
"tests/test_renderers.py::Te... | false | null | null | null | null | {
"path": "tasks/lepture__mistune__278640ef9b/repo.tar.gz",
"files": 142,
"bytes": 750001,
"compressed_bytes": 176131,
"sha256": "12e716506e83154b7e8f888468a1bcfa480c72acd91ba08420ee3e4ca3883726",
"omitted": []
} |
lepture__mistune__4a382986bf | lepture/mistune | https://github.com/lepture/mistune | d1970cc9c1e439c9bdca89e6d94ee21fc7e6f22d | 4a382986bf6ea948d2bed9ac433d493019f3299e | fix: share collision-safe toc identifiers | medium | 47 | python | [
"src/mistune/directives/toc.py",
"src/mistune/toc.py"
] | BSD-3-Clause | tasks/lepture__mistune__4a382986bf/LICENSE | LICENSE | 539013fd8e19f744f8bf0e27a532bbff54cd689ecef7a800f56ae5dc824be870 | [] | ## Context
Mistune has two table-of-contents paths. `src/mistune/toc.py` provides `add_toc_hook`, a standalone hook that assigns heading ids and stores toc items in `state.env`. `src/mistune/directives/toc.py` provides the `TableOfContents` directive plugin (`.. toc::`), whose `toc_hook` assigns heading ids only when ... | tasks/lepture__mistune__4a382986bf/spec.md | false | tests/test_security_toc.py | true | [
"tests/test_security_toc.py"
] | [
{
"path": "tasks/lepture__mistune__4a382986bf/hidden/tests/test_security_toc.py",
"repo_path": "tests/test_security_toc.py",
"bytes": 3288,
"sha256": "0b387ca55f3616680720b805dfd73d016d7fbcf1ce9391f19543b7ec85fd36ea",
"content": "from unittest import TestCase\n\nfrom mistune import create_markdo... | [
"tests/test_security_toc.py::TestTocSecurity::test_directive_toc_avoids_sequential_html_id_collisions",
"tests/test_security_toc.py::TestTocSecurity::test_toc_hooks_preserve_existing_heading_id",
"tests/test_security_toc.py::TestTocSecurity::test_two_toc_sections_share_heading_ids",
"tests/test_security_toc.p... | [
"tests/test_security_toc.py::TestTocSecurity::test_custom_heading_id_is_escaped",
"tests/test_security_toc.py::TestTocSecurity::test_toc_href_is_escaped",
"tests/test_security_toc.py::TestTocSecurity::test_default_toc_id_avoids_existing_html_id_collision"
] | true | --- a/src/mistune/directives/toc.py
+++ b/src/mistune/directives/toc.py
@@ -15,7 +15,7 @@
from typing import TYPE_CHECKING, Any, Dict, Match
-from ..toc import normalize_toc_item, render_toc_ul
+from ..toc import _assign_heading_id, _find_html_ids, normalize_toc_item, render_toc_ul
from ._base import BaseDirectiv... | tasks/lepture__mistune__4a382986bf/trained.patch | Qwen3.6-35B-A3B, the base model before any training (UD-IQ3_XXS GGUF quant) | {
"seed": 2,
"passed_spec_tests": true,
"spec_tests": 6,
"passed_upstream_tests": false,
"tool_calls": 18,
"wall_seconds": 234.3,
"timed_out": false,
"turn_limit": 30,
"time_limit_seconds": 480,
"generated_files_dropped": 0
} | {
"path": "tasks/lepture__mistune__4a382986bf/repo.tar.gz",
"files": 143,
"bytes": 760964,
"compressed_bytes": 178789,
"sha256": "75b914f38004e366b77f7595858ea2cddbef0520b5b781c82f524827345781d9",
"omitted": []
} |
lepture__mistune__592a70d8c1 | lepture/mistune | https://github.com/lepture/mistune | 95923f1fec6ca4bc5bcc7bb8a14fc2221c491556 | 592a70d8c1ffde102bd3151c38cfc26e24735947 | Render strikethrough, mark and insert in MarkdownRenderer | small | 10 | python | [
"src/mistune/renderers/markdown.py"
] | BSD-3-Clause | tasks/lepture__mistune__592a70d8c1/LICENSE | LICENSE | 539013fd8e19f744f8bf0e27a532bbff54cd689ecef7a800f56ae5dc824be870 | [] | ## Context
`src/mistune/renderers/markdown.py` defines `MarkdownRenderer`, a renderer that re-emits Markdown instead of HTML. It renders each token type through a method named after the token (`BaseRenderer.render_token` in `src/mistune/core.py` does `func = self._get_method(token["type"])` and raises `AttributeError(... | tasks/lepture__mistune__592a70d8c1/spec.md | false | tests/test_markdown_renderer_formatting.py | true | [
"tests/test_renderers.py"
] | [
{
"path": "tasks/lepture__mistune__592a70d8c1/hidden/tests/test_renderers.py",
"repo_path": "tests/test_renderers.py",
"bytes": 10192,
"sha256": "b98531589d964c68c896d94823e20f1398d017228510c4240f91d7cd048c326b",
"content": "from unittest import TestCase\n\nfrom mistune import BlockState, HTMLRe... | [
"tests/test_renderers.py::TestMarkdownRendererPlugins::test_formatting_plugins_markdown"
] | [
"tests/test_renderers.py::TestMarkdownRendererRoundTrip::test_escaped_block_markers",
"tests/test_renderers.py::TestMarkdownRendererRoundTrip::test_escaped_marker_on_continuation_line",
"tests/test_renderers.py::TestMarkdownRendererRoundTrip::test_escaped_marker_inside_list_item",
"tests/test_renderers.py::Te... | true | --- a/src/mistune/renderers/markdown.py
+++ b/src/mistune/renderers/markdown.py
@@ -64,6 +64,15 @@
def strong(self, token: Dict[str, Any], state: BlockState) -> str:
return "**" + self.render_children(token, state) + "**"
+ def strikethrough(self, token: Dict[str, Any], state: BlockState) -> str:
+ ... | tasks/lepture__mistune__592a70d8c1/trained.patch | Qwen3.6-35B-A3B, the base model before any training (UD-IQ3_XXS GGUF quant) | {
"seed": 3,
"passed_spec_tests": true,
"spec_tests": 5,
"passed_upstream_tests": true,
"tool_calls": 10,
"wall_seconds": 93.2,
"timed_out": false,
"turn_limit": 30,
"time_limit_seconds": 480,
"generated_files_dropped": 0
} | {
"path": "tasks/lepture__mistune__592a70d8c1/repo.tar.gz",
"files": 143,
"bytes": 754873,
"compressed_bytes": 177461,
"sha256": "536c9cf69b19e941e9088cab9e1c399ac7977940a82008ab70d67bcfdcbb7e40",
"omitted": []
} |
lepture__mistune__c3e832ce59 | lepture/mistune | https://github.com/lepture/mistune | a1b50bc12e066e5707ff797f821829bfcdab03b5 | c3e832ce591408f085282ff8ee338c3f44b0af82 | Preserve meaningful edge spaces in Markdown code spans
Implemented and validated with Codex. | small | 11 | python | [
"src/mistune/renderers/markdown.py"
] | BSD-3-Clause | tasks/lepture__mistune__c3e832ce59/LICENSE | LICENSE | 539013fd8e19f744f8bf0e27a532bbff54cd689ecef7a800f56ae5dc824be870 | [] | ## Context
`src/mistune/renderers/markdown.py` defines `MarkdownRenderer`, a renderer that re-emits Markdown. The change touches only its `codespan` method, quoted verbatim:
```python
def codespan(self, token: Dict[str, Any], state: BlockState) -> str:
code = cast(str, token["raw"])
# The delimite... | tasks/lepture__mistune__c3e832ce59/spec.md | false | tests/test_markdown_codespan.py | false | [
"tests/test_renderers.py"
] | [
{
"path": "tasks/lepture__mistune__c3e832ce59/hidden/tests/test_renderers.py",
"repo_path": "tests/test_renderers.py",
"bytes": 7252,
"sha256": "8554bb8912b6e3bef59e7fcbd5429b60a02ee6492cacf04d96579c9deed9468f",
"content": "from unittest import TestCase\n\nfrom mistune import BlockState, HTMLRen... | [
"tests/test_renderers.py::TestMarkdownRendererRoundTrip::test_codespan_edge_spaces"
] | [
"tests/test_renderers.py::TestMarkdownRendererRoundTrip::test_escaped_block_markers",
"tests/test_renderers.py::TestMarkdownRendererRoundTrip::test_escaped_marker_on_continuation_line",
"tests/test_renderers.py::TestMarkdownRendererRoundTrip::test_escaped_marker_inside_list_item",
"tests/test_renderers.py::Te... | false | null | null | null | null | {
"path": "tasks/lepture__mistune__c3e832ce59/repo.tar.gz",
"files": 142,
"bytes": 750001,
"compressed_bytes": 176131,
"sha256": "12e716506e83154b7e8f888468a1bcfa480c72acd91ba08420ee3e4ca3883726",
"omitted": []
} |
mongodb__mongo-python-driver__d5934e6175 | mongodb/mongo-python-driver | https://github.com/mongodb/mongo-python-driver | 5c584cf040d1003efbd2a150e7c7c2b92db96719 | d5934e6175f979929eb390ff3eda401a27eae811 | PYTHON-5418 Support subinterpreters and InterpreterPoolExecutor (#3061) | medium | 47 | python | [
"pymongo/asynchronous/monitor.py",
"pymongo/periodic_executor.py",
"pymongo/synchronous/monitor.py"
] | Apache-2.0 | tasks/mongodb__mongo-python-driver__d5934e6175/LICENSE | LICENSE | c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4 | [] | ## Context
`pymongo/periodic_executor.py` defines `AsyncPeriodicExecutor` (background asyncio task) and `PeriodicExecutor` (background daemon thread). The change concerns only `PeriodicExecutor.open()`, which starts the thread and already contains a partial shutdown mitigation, from `pymongo/periodic_executor.py`:
``... | tasks/mongodb__mongo-python-driver__d5934e6175/spec.md | true | test/test_periodic_executor.py | false | [
"test/asynchronous/test_periodic_executor.py",
"test/asynchronous/test_subinterpreters.py",
"test/test_periodic_executor.py",
"test/test_subinterpreters.py"
] | [
{
"path": "tasks/mongodb__mongo-python-driver__d5934e6175/hidden/test/asynchronous/test_periodic_executor.py",
"repo_path": "test/asynchronous/test_periodic_executor.py",
"bytes": 9222,
"sha256": "c76a1902694aef57fc2988991d83da2809b780792d3d9d9bc4fda2b3071f6390",
"content": "# Copyright 2026-pre... | [
"test/asynchronous/test_periodic_executor.py::TestAsyncPeriodicExecutor::test_open_non_daemon_thread",
"test/asynchronous/test_periodic_executor.py::TestAsyncPeriodicExecutor::test_subinterpreter_shutdown",
"test/asynchronous/test_subinterpreters.py::TestSubinterpreters::test_subinterpreters",
"test/asynchron... | [
"test/asynchronous/test_periodic_executor.py::TestAsyncPeriodicExecutor::test_join_without_open_is_safe",
"test/asynchronous/test_periodic_executor.py::TestAsyncPeriodicExecutor::test_target_returning_false_stops_executor",
"test/asynchronous/test_periodic_executor.py::TestAsyncPeriodicExecutor::test_skip_sleep... | true | --- a/pymongo/asynchronous/monitor.py
+++ b/pymongo/asynchronous/monitor.py
@@ -491,4 +491,7 @@
if _IS_SYNC:
- atexit.register(_shutdown_resources)
+ try:
+ atexit.register(_shutdown_resources)
+ except RuntimeError:
+ pass
--- a/pymongo/periodic_executor.py
+++ b/pymongo/periodic_executor.p... | tasks/mongodb__mongo-python-driver__d5934e6175/trained.patch | Qwen3.6-35B-A3B, the base model before any training (UD-IQ3_XXS GGUF quant) | {
"seed": 2,
"passed_spec_tests": true,
"spec_tests": 2,
"passed_upstream_tests": false,
"tool_calls": 18,
"wall_seconds": 201.1,
"timed_out": false,
"turn_limit": 30,
"time_limit_seconds": 480,
"generated_files_dropped": 1
} | {
"path": "tasks/mongodb__mongo-python-driver__d5934e6175/repo.tar.gz",
"files": 2107,
"bytes": 19785979,
"compressed_bytes": 2755302,
"sha256": "f633cc2cfa69a37b877246c1611866391dfdcdac64a0b1f3a4b6a954688e7ee8",
"omitted": []
} |
narwhals-dev__narwhals__2090b20ea4 | narwhals-dev/narwhals | https://github.com/narwhals-dev/narwhals | d2c172877565303a0d8b8dfcafbe47a132dfa8ad | 2090b20ea43b26a2888b07a2d1ae9acc4047cbe8 | fix: ignore modules that are still being imported (#4068)
* fix: ignore modules that are still being imported
A module is added to `sys.modules` before its body has run, so a
dependency check running in another thread could see a half-initialised
pandas and fail with `AttributeError`. Look modules up through
`_get_mo... | medium | 62 | python | [
"src/narwhals/_native.py",
"src/narwhals/dependencies.py",
"src/narwhals/plugins.py"
] | MIT | tasks/narwhals-dev__narwhals__2090b20ea4/LICENSE | LICENSE.md | 811445f30147b8f0c9d444c9025fd528f9532c54b7b83f6e2368473dc91cfdf0 | [] | ## Context
`src/narwhals/dependencies.py` is the module-free dependency detection layer: its `get_*` functions look modules up in `sys.modules` so that no import is triggered. Its header comment states the current assumption:
```python
# pandas / Polars / etc. : if a user passes a dataframe from one of these
# librar... | tasks/narwhals-dev__narwhals__2090b20ea4/spec.md | false | tests/dependencies/get_imported_module_test.py | true | [
"tests/dependencies/module_being_imported_test.py"
] | [
{
"path": "tasks/narwhals-dev__narwhals__2090b20ea4/hidden/tests/dependencies/module_being_imported_test.py",
"repo_path": "tests/dependencies/module_being_imported_test.py",
"bytes": 1675,
"sha256": "e11fa92089cbaabc8a7c99644c54e84e1dd60592111ac1102396ae39642216a7",
"content": "from __future__ ... | [
"tests/dependencies/module_being_imported_test.py::test_get_imported_module_during_real_import",
"tests/dependencies/module_being_imported_test.py::test_detection_skips_module_being_imported"
] | [] | false | null | null | null | null | {
"path": "tasks/narwhals-dev__narwhals__2090b20ea4/repo.tar.gz",
"files": 638,
"bytes": 6915310,
"compressed_bytes": 1727979,
"sha256": "1c998197d72eda3e750d30236755fbac01c0cf7efe54ff726d6a344f4eb9117f",
"omitted": []
} |
p1c2u__pathable__cc1fce44ed | p1c2u/pathable | https://github.com/p1c2u/pathable | 5bf5f2df962d7e545116f030a2c9c5e9f12f7c9d | cc1fce44edca0fd30398baf666ec466e5fbee896 | PathAccessor keys and len preserve missing-segment diagnostics | small | 12 | python | [
"pathable/accessors.py"
] | Apache-2.0 | tasks/p1c2u__pathable__cc1fce44ed/LICENSE | LICENSE | c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4 | [] | ## Context
`pathable/accessors.py` defines the accessor layer. `NodeAccessor` is the abstract base; `PathAccessor(NodeAccessor[Path, str, bytes])` backs `FilesystemPath`. The relevant current code:
```python
# pathable/accessors.py
class NodeAccessor(Generic[N, K, V]):
...
def keys(self, parts: Sequence[K]) -... | tasks/p1c2u__pathable__cc1fce44ed/spec.md | true | tests/unit/test_accessor_diagnostics.py | true | [
"tests/unit/test_paths.py"
] | [
{
"path": "tasks/p1c2u__pathable__cc1fce44ed/hidden/tests/unit/test_paths.py",
"repo_path": "tests/unit/test_paths.py",
"bytes": 37949,
"sha256": "6b48d5d91820eef278329d513013b191e960834ebf892c19676f2ea86504f737",
"content": "from collections.abc import Hashable\nfrom collections.abc import Mapp... | [
"tests/unit/test_paths.py::TestFilesystemPathKeysAndLenDiagnostics::test_keys_missing_intermediate_reports_first_missing",
"tests/unit/test_paths.py::TestFilesystemPathKeysAndLenDiagnostics::test_len_missing_intermediate_reports_first_missing",
"tests/unit/test_paths.py::TestFilesystemPathFloorDivDiagnostics::t... | [
"tests/unit/test_paths.py::TestBasePathParseArgs::test_empty",
"tests/unit/test_paths.py::TestBasePathParseArgs::test_string",
"tests/unit/test_paths.py::TestBasePathParseArgs::test_string_many",
"tests/unit/test_paths.py::TestBasePathParseArgs::test_int",
"tests/unit/test_paths.py::TestBasePathParseArgs::t... | true | --- a/pathable/accessors.py
+++ b/pathable/accessors.py
@@ -45,6 +45,12 @@
raise NotImplementedError
def keys(self, parts: Sequence[K]) -> Sequence[K]:
+ """Return the child keys at `parts`.
+
+ This returns the child keys at the node identified by `parts` and
+ raises ``KeyError`` ... | tasks/p1c2u__pathable__cc1fce44ed/trained.patch | Qwen3.6-35B-A3B, the base model before any training (UD-IQ3_XXS GGUF quant) | {
"seed": 3,
"passed_spec_tests": true,
"spec_tests": 3,
"passed_upstream_tests": true,
"tool_calls": 12,
"wall_seconds": 138.1,
"timed_out": false,
"turn_limit": 30,
"time_limit_seconds": 480,
"generated_files_dropped": 0
} | {
"path": "tasks/p1c2u__pathable__cc1fce44ed/repo.tar.gz",
"files": 31,
"bytes": 178357,
"compressed_bytes": 45474,
"sha256": "3cf8648015a868635a453889e87d224586e287815b8b3fb95835e997f8c10239",
"omitted": []
} |
pdfminer__pdfminer.six__b14d19be02 | pdfminer/pdfminer.six | https://github.com/pdfminer/pdfminer.six | 9e1243c4ad000bf9bbe60e81fc8dde2fccc0ed3b | b14d19be024b263ef7d1ef0eba8bf18a40d6eeaf | Fix: reproducibility when generating cmap .json.gz (#1242) | medium | 20 | python | [
"tools/conv_cmap.py",
"tools/convert_cmaps_to_json.py"
] | MIT | tasks/pdfminer__pdfminer.six__b14d19be02/LICENSE | LICENSE | f01e5d699a33766b5caf4a5099f2856aba4f3f75ea1df05dc0572b34b4bea8f2 | [
{
"path": "docs/licenses/LICENSE.pyHanko",
"licence": "MIT"
}
] | ## Context
`tools/conv_cmap.py` builds CMap data from Adobe `cid2code.txt` files and writes it as gzipped JSON. `tools/convert_cmaps_to_json.py` converts legacy pickled CMap files to the same gzipped JSON format. The consumer is `CMapDB._load_data` in `pdfminer/cmapdb.py`, which reads the `.json.gz` files with `gzip.o... | tasks/pdfminer__pdfminer.six__b14d19be02/spec.md | false | tests/test_tools_conv_cmap.py | false | [
"tests/test_tools_conv_cmap_reproducibility.py"
] | [
{
"path": "tasks/pdfminer__pdfminer.six__b14d19be02/hidden/tests/test_tools_conv_cmap_reproducibility.py",
"repo_path": "tests/test_tools_conv_cmap_reproducibility.py",
"bytes": 6419,
"sha256": "f0de9fa491424f4f05b75e98993fae82338471ea3727f2cca16299b6ae0bbf35",
"content": "\"\"\"Tests for reprod... | [
"tests/test_tools_conv_cmap_reproducibility.py::TestConvCmapReproducibility::test_conv_cmap_gzip_mtime_is_zero",
"tests/test_tools_conv_cmap_reproducibility.py::TestConvCmapReproducibility::test_conv_cmap_produces_identical_files",
"tests/test_tools_conv_cmap_reproducibility.py::TestConvCmapReproducibility::tes... | [] | true | --- /dev/null
+++ b/tests/test_tools_conv_cmap.py
@@ -0,0 +1,61 @@
+import gzip
+import json
+import pickle
+
+from tools.conv_cmap import main as conv_cmap_main
+from tools.convert_cmaps_to_json import convert_pickle_to_json
+
+
+def test_conv_cmap_output_is_reproducible(tmp_path):
+ # Fails today: gzip.open in too... | tasks/pdfminer__pdfminer.six__b14d19be02/trained.patch | Qwen3.6-35B-A3B, the base model before any training (UD-IQ3_XXS GGUF quant) | {
"seed": 1,
"passed_spec_tests": true,
"spec_tests": 3,
"passed_upstream_tests": true,
"tool_calls": 36,
"wall_seconds": 347.8,
"timed_out": false,
"turn_limit": 30,
"time_limit_seconds": 480,
"generated_files_dropped": 0
} | {
"path": "tasks/pdfminer__pdfminer.six__b14d19be02/repo.tar.gz",
"files": 323,
"bytes": 22114234,
"compressed_bytes": 13062829,
"sha256": "3385160f5110986fa4b96589dae5d270696b65b2fc2d9d51050429a9c738592b",
"omitted": []
} |
plotly__plotly.py__6ac6becdc9 | plotly/plotly.py | https://github.com/plotly/plotly.py | a679fa179bda05de93bb7fceb0ffb154f94c3417 | 6ac6becdc91f539ecc07a8686752aa3fec5f8da3 | Fix validate_colors_dict, convert_dict_colors_to_same_type and convert_colorscale_to_rgb modifying their input | small | 10 | python | [
"_plotly_utils/colors/__init__.py"
] | MIT | tasks/plotly__plotly.py__6ac6becdc9/LICENSE | LICENSE.txt | ba712274f8336a5f0828c8e2bf639ab8a632c623800a35f96c8b0a67b5f2ab40 | [] | ## Context
`_plotly_utils/colors/__init__.py` is the implementation module behind the public `plotly.colors` namespace (`plotly/colors/__init__.py` re-exports it with `from _plotly_utils.colors import *`).
Three functions in it mutate the object the caller passed in:
- `validate_colors_dict(colors, colortype="tuple"... | tasks/plotly__plotly.py__6ac6becdc9/spec.md | true | tests/test_colors_no_input_mutation.py | true | [
"tests/test_core/test_colors/test_colors.py"
] | [
{
"path": "tasks/plotly__plotly.py__6ac6becdc9/hidden/tests/test_core/test_colors/test_colors.py",
"repo_path": "tests/test_core/test_colors/test_colors.py",
"bytes": 8681,
"sha256": "a3f56f8775f2854e569d848233bea1bd2f612ab042fa3a154ee8c5535db0a79a",
"content": "from unittest import TestCase\n\n... | [
"tests/test_core/test_colors/test_colors.py::TestColors::test_color_conversions_do_not_modify_input"
] | [
"tests/test_core/test_colors/test_colors.py::TestColors::test_validate_colors",
"tests/test_core/test_colors/test_colors.py::TestColors::test_convert_colors_to_same_type",
"tests/test_core/test_colors/test_colors.py::TestColors::test_convert_dict_colors_to_same_type",
"tests/test_core/test_colors/test_colors.... | true | --- a/_plotly_utils/colors/__init__.py
+++ b/_plotly_utils/colors/__init__.py
@@ -382,6 +382,7 @@
"""
Validates dictionary of color(s)
"""
+ colors = dict(colors)
# validate each color element in the dictionary
for key in colors:
if "rgb" in colors[key]:
@@ -503,6 +504,7 @@
:... | tasks/plotly__plotly.py__6ac6becdc9/trained.patch | Qwen3.6-35B-A3B, the base model before any training (UD-IQ3_XXS GGUF quant) | {
"seed": 1,
"passed_spec_tests": true,
"spec_tests": 6,
"passed_upstream_tests": true,
"tool_calls": 16,
"wall_seconds": 124.7,
"timed_out": false,
"turn_limit": 30,
"time_limit_seconds": 480,
"generated_files_dropped": 0
} | {
"path": "tasks/plotly__plotly.py__6ac6becdc9/repo.tar.gz",
"files": 1991,
"bytes": 50409091,
"compressed_bytes": 10129011,
"sha256": "2739351e9dbe393ee87ecb84165575a53a7f49682ff08acaf21a15221881e9ad",
"omitted": []
} |
pypa__installer__a0d3b804eb | pypa/installer | https://github.com/pypa/installer | 2d140de7fc5c11d47d3afa56d1291398fb871053 | a0d3b804eb22db5ab1ceae3dae3d6d5cca595daf | do not install __pycache__ files from wheels (#307) | small | 15 | python | [
"src/installer/_core.py"
] | MIT | tasks/pypa__installer__a0d3b804eb/LICENSE | LICENSE | 37b8b9f2569892fa54406383d431169dbb2115980d78b7efba6eeae5664c484f | [] | ## Context
`src/installer/_core.py` contains the core installation logic. Its `install()` function iterates over every file the wheel source provides and writes each one to the destination:
```python
# Write all the files from the wheel.
for record_elements, stream, is_executable in source.get_contents():
... | tasks/pypa__installer__a0d3b804eb/spec.md | false | tests/test_core.py | false | [
"tests/test_core.py"
] | [
{
"path": "tasks/pypa__installer__a0d3b804eb/hidden/tests/test_core.py",
"repo_path": "tests/test_core.py",
"bytes": 35875,
"sha256": "44dd3783f2d819f239dd224f9ea183bdd48624db2ad39e714ce1c944e0994e50",
"content": "import hashlib\nimport textwrap\nfrom io import BytesIO\nfrom unittest import mock... | [
"tests/test_core.py::TestInstall::test_skips_pycache_and_warns"
] | [
"tests/test_core.py::TestInstall::test_calls_destination_correctly",
"tests/test_core.py::TestInstall::test_no_entrypoints_is_ok",
"tests/test_core.py::TestInstall::test_handles_platlib",
"tests/test_core.py::TestInstall::test_accepts_newer_minor_wheel_versions",
"tests/test_core.py::TestInstall::test_rejec... | false | null | null | null | null | {
"path": "tasks/pypa__installer__a0d3b804eb/repo.tar.gz",
"files": 56,
"bytes": 1079616,
"compressed_bytes": 481173,
"sha256": "459257d5073713ee6ba04852ee206d3545bcea19887b61bdf101d50a856b8501",
"omitted": []
} |
pypa__installer__b5f03f151f | pypa/installer | https://github.com/pypa/installer | 147fd0081eb0572574e7479dca6be2974359e3e1 | b5f03f151f0edbf43dd5793e2d6f1c94f7d3d408 | Fix long path issue on Windows (#321)
Path.is_relative_to does not work if one of both paths has a long path prefix and the other has not. A long path prefix may be added when calling Path.resolve(). | medium | 31 | python | [
"src/installer/destinations.py",
"src/installer/utils.py"
] | MIT | tasks/pypa__installer__b5f03f151f/LICENSE | LICENSE | 37b8b9f2569892fa54406383d431169dbb2115980d78b7efba6eeae5664c484f | [] | # Build spec: fix long path prefix handling in `is_relative_to` checks
## Context
`src/installer/destinations.py` contains `SchemeDictionaryDestination`, which writes wheel contents to the filesystem. Its path-safety check lives in `_path_with_destdir`:
```python
def _path_with_destdir(self, scheme: Scheme, path... | tasks/pypa__installer__b5f03f151f/spec.md | true | tests/test_utils.py | false | [
"tests/test_utils.py"
] | [
{
"path": "tasks/pypa__installer__b5f03f151f/hidden/tests/test_utils.py",
"repo_path": "tests/test_utils.py",
"bytes": 10111,
"sha256": "02e696bbd0a61fb9a804bb0665a34bdaabc2eb5772d9acfe37fcea69cc6e0d83",
"content": "\"\"\"Tests for installer.utils\"\"\"\n\nimport base64\nimport hashlib\nimport s... | [
"tests/test_utils.py::TestIsRelativeTo::test_is_relative_to",
"tests/test_utils.py::TestIsRelativeTo::test_is_relative_to_non_win32",
"tests/test_utils.py::TestIsRelativeTo::test_is_relative_to_win32"
] | [
"tests/test_utils.py::TestParseMetadata::test_basics",
"tests/test_utils.py::TestCanonicalizeDistributionName::test_valid_cases",
"tests/test_utils.py::TestParseWheelFilename::test_valid_cases",
"tests/test_utils.py::TestParseWheelFilename::test_invalid_cases",
"tests/test_utils.py::TestCopyFileObjWithHashi... | true | --- a/src/installer/destinations.py
+++ b/src/installer/destinations.py
@@ -19,6 +19,7 @@
construct_record_file,
copyfileobj_with_hashing,
fix_shebang,
+ is_relative_to,
make_file_executable,
)
@@ -139,7 +140,7 @@
target_dir = Path(self.scheme_dict[scheme]).resolve()
file = (... | tasks/pypa__installer__b5f03f151f/trained.patch | Qwen3.6-35B-A3B, the base model before any training (UD-IQ3_XXS GGUF quant) | {
"seed": 3,
"passed_spec_tests": true,
"spec_tests": 5,
"passed_upstream_tests": true,
"tool_calls": 17,
"wall_seconds": 150.6,
"timed_out": false,
"turn_limit": 30,
"time_limit_seconds": 480,
"generated_files_dropped": 0
} | {
"path": "tasks/pypa__installer__b5f03f151f/repo.tar.gz",
"files": 57,
"bytes": 1087019,
"compressed_bytes": 482971,
"sha256": "60adbe57aae1b002fcd1bf127b3f34603381b1fcbf86263aefbcaa0729d0131b",
"omitted": []
} |
python-semver__python-semver__1d515915d5 | python-semver/python-semver | https://github.com/python-semver/python-semver | 887d057e66b7fdfe0adf5a206ac810766b5af938 | 1d515915d50b31f23fd1fb0f572ef608453e80e3 | Compare long numeric prerelease identifiers without integer conversion (#488)
Problem: Large numeric prereleases (~5,000 digits) parsed successfully
but triggered a ValueError during comparison due to Python's
integer-conversion limits.
Solution: Numeric prereleases are now compared using normalized
digit counts and ... | small | 26 | python | [
"src/semver/version.py"
] | BSD-3-Clause | tasks/python-semver__python-semver__1d515915d5/LICENSE | LICENSE.txt | cc10179de9ced8655d7765bd3a8ac46438a61e663de7cf1c48d502d2baf9f3d5 | [] | ## Context
`src/semver/version.py` defines the `Version` class. Prerelease precedence is decided by the classmethod `Version._nat_cmp`, called from `Version.compare`:
```python
rc1, rc2 = self.prerelease, other.prerelease
rccmp = self._nat_cmp(rc1, rc2)
```
The current implementation converts every a... | tasks/python-semver__python-semver__1d515915d5/spec.md | false | tests/test_issue488.py | true | [
"tests/test_compare.py"
] | [
{
"path": "tasks/python-semver__python-semver__1d515915d5/hidden/tests/test_compare.py",
"repo_path": "tests/test_compare.py",
"bytes": 11260,
"sha256": "a869ef7f827487c1c477457603fb68cff765d269d1b02c2457d59b7cc69ac11b",
"content": "import pytest\n\nimport semver\nfrom semver import Version, com... | [
"tests/test_compare.py::test_should_compare_long_numeric_prerelease",
"tests/test_compare.py::test_should_order_long_numeric_prereleases",
"tests/test_compare.py::test_should_ignore_build_and_preserve_release_order_with_long_prerelease",
"tests/test_compare.py::test_should_preserve_constructor_prerelease_comp... | [
"tests/test_compare.py::test_should_get_less",
"tests/test_compare.py::test_should_get_greater",
"tests/test_compare.py::test_should_raise_value_error_for_invalid_value",
"tests/test_compare.py::test_should_follow_specification_comparison",
"tests/test_compare.py::test_should_compare_rc_builds",
"tests/te... | true | --- /dev/null
+++ b/changelog.d/488.bugfix.rst
@@ -0,0 +1,3 @@
+Comparing long numeric prerelease identifiers no longer raises
+``ValueError`` because identifiers are compared as text with normalized
+leading zeros (issue :gh:`488`).
--- a/src/semver/version.py
+++ b/src/semver/version.py
@@ -186,17 +186,26 @@
@cl... | tasks/python-semver__python-semver__1d515915d5/trained.patch | Qwen3.6-35B-A3B, the base model before any training (UD-IQ3_XXS GGUF quant) | {
"seed": 3,
"passed_spec_tests": true,
"spec_tests": 6,
"passed_upstream_tests": false,
"tool_calls": 13,
"wall_seconds": 130.9,
"timed_out": false,
"turn_limit": 30,
"time_limit_seconds": 480,
"generated_files_dropped": 1
} | {
"path": "tasks/python-semver__python-semver__1d515915d5/repo.tar.gz",
"files": 117,
"bytes": 643148,
"compressed_bytes": 292473,
"sha256": "c95570aeb29998b87177fdab76a33d36d0390025f9eb7438d7e3c32457ece88f",
"omitted": []
} |
python-semver__python-semver__37ae009c7c | python-semver/python-semver | https://github.com/python-semver/python-semver | 1d515915d50b31f23fd1fb0f572ef608453e80e3 | 37ae009c7cacab8f1a87157ca2b484b8e18a0a78 | fix: validate and match prerelease token prefixes (#489)
* fix: validate and match prerelease token prefixes
* docs: add prerelease token fix changelog | small | 16 | python | [
"src/semver/version.py"
] | BSD-3-Clause | tasks/python-semver__python-semver__37ae009c7c/LICENSE | LICENSE.txt | cc10179de9ced8655d7765bd3a8ac46438a61e663de7cf1c48d502d2baf9f3d5 | [] | ## Context
`src/semver/version.py` defines the `Version` class. The change touches only `Version.next_version`, which computes the next version for a given part, taking prereleases into account. Its current prerelease branch is:
```python
def next_version(self, part: str, prerelease_token: str = "rc") -> "Version... | tasks/python-semver__python-semver__37ae009c7c/spec.md | false | tests/test_issue489.py | true | [
"tests/test_bump.py"
] | [
{
"path": "tasks/python-semver__python-semver__37ae009c7c/hidden/tests/test_bump.py",
"repo_path": "tests/test_bump.py",
"bytes": 6783,
"sha256": "109c7988daec6c158c2b3ac973d8c525e70a15f950592c1e7f62973e0e681c94",
"content": "import pytest\n\nfrom semver import (\n Version,\n bump_build,\n... | [
"tests/test_bump.py::test_next_version_matches_literal_prerelease_token_family",
"tests/test_bump.py::test_next_version_rejects_invalid_prerelease_token",
"tests/test_bump.py::test_next_version_preserves_empty_token_semantics",
"tests/test_bump.py::test_next_version_ignores_token_for_main_parts"
] | [
"tests/test_bump.py::test_should_bump_major",
"tests/test_bump.py::test_should_bump_minor",
"tests/test_bump.py::test_should_bump_patch",
"tests/test_bump.py::test_should_versioninfo_bump_major_and_minor",
"tests/test_bump.py::test_should_versioninfo_bump_minor_and_patch",
"tests/test_bump.py::test_should... | true | --- a/src/semver/version.py
+++ b/src/semver/version.py
@@ -541,9 +541,13 @@
if part in cls.NAMES[:3]:
return getattr(version, "bump_" + part)()
else:
+ if prerelease_token:
+ cls._validate_identifiers(
+ prerelease_token, cls._PRERELEASE_IDENT... | tasks/python-semver__python-semver__37ae009c7c/trained.patch | Qwen3.6-35B-A3B, the base model before any training (UD-IQ3_XXS GGUF quant) | {
"seed": 3,
"passed_spec_tests": true,
"spec_tests": 4,
"passed_upstream_tests": false,
"tool_calls": 10,
"wall_seconds": 104.9,
"timed_out": false,
"turn_limit": 30,
"time_limit_seconds": 480,
"generated_files_dropped": 1
} | {
"path": "tasks/python-semver__python-semver__37ae009c7c/repo.tar.gz",
"files": 118,
"bytes": 646100,
"compressed_bytes": 293347,
"sha256": "8009c13e4851f712b1bdfa8c5b02bb8ce3b2eacacf241d7c7462512295b69008",
"omitted": []
} |
python-semver__python-semver__9ef41316db | python-semver/python-semver | https://github.com/python-semver/python-semver | bcd151fa63df3053b9f30e698e9ae1020187be1a | 9ef41316dbe85f7d0fae6e396c45a1bbf69ebb29 | Preserve version order when legacy prerelease counters roll over (#500)
Advance the patch version when incrementing an old-style prerelease counter
would otherwise produce a lower version, while preserving the token and
incremented counter. Keep the existing patch for increments that already
move forward.
Add regress... | small | 13 | python | [
"src/semver/version.py"
] | BSD-3-Clause | tasks/python-semver__python-semver__9ef41316db/LICENSE | LICENSE.txt | cc10179de9ced8655d7765bd3a8ac46438a61e663de7cf1c48d502d2baf9f3d5 | [] | ## Context
`src/semver/version.py` defines the `Version` class. `Version.next_version(part, prerelease_token='rc')` computes the next version while preserving natural order. Its old-style prerelease branch (added for issue #484) increments a counter glued to the token, such as `rc3` to `rc4`:
```python
... | tasks/python-semver__python-semver__9ef41316db/spec.md | false | tests/test_issue484.py | false | [
"tests/test_issue484.py",
"tests/test_next_version_legacy_order.py"
] | [
{
"path": "tasks/python-semver__python-semver__9ef41316db/hidden/tests/test_issue484.py",
"repo_path": "tests/test_issue484.py",
"bytes": 2052,
"sha256": "333299ce992629d2263f924720e493d92fbff967168e11fc03b9e2faf99480ab",
"content": "\"\"\"Regression test for issue #484: next_version with old-st... | [
"tests/test_issue484.py::test_issue_484_rc9_to_rc10",
"tests/test_next_version_legacy_order.py::test_next_legacy_counter_preserves_order",
"tests/test_next_version_legacy_order.py::test_repeated_legacy_bumps_preserve_order_and_subclass"
] | [
"tests/test_issue484.py::test_token_switch_preserves_version_order",
"tests/test_issue484.py::test_issue_484_rc3_to_rc4",
"tests/test_issue484.py::test_issue_484_dot_style_unchanged",
"tests/test_issue484.py::test_issue_484_different_token",
"tests/test_issue484.py::test_issue_484_custom_token",
"tests/te... | false | null | null | null | null | {
"path": "tasks/python-semver__python-semver__9ef41316db/repo.tar.gz",
"files": 121,
"bytes": 650780,
"compressed_bytes": 294499,
"sha256": "de149c501233031bff7b07ad480c627b793c8eaed07065b719520874804613db",
"omitted": []
} |
python-semver__python-semver__bcd151fa63 | python-semver/python-semver | https://github.com/python-semver/python-semver | 94debf9d3e714ccb08ca7c0199b5bce96cfd7687 | bcd151fa63df3053b9f30e698e9ae1020187be1a | Preserve version order when switching prerelease tokens (#498)
Fixes #497
When calling `Version.parse().next_version("prerelease", token)`, transitioning
to a prerelease token that sorts earlier (e.g., from `rc` to `alpha`)
previously returned a version older than the input, violating ordering
guarantees.
Fix thi... | small | 13 | python | [
"src/semver/version.py"
] | BSD-3-Clause | tasks/python-semver__python-semver__bcd151fa63/LICENSE | LICENSE.txt | cc10179de9ced8655d7765bd3a8ac46438a61e663de7cf1c48d502d2baf9f3d5 | [] | ## Context
`src/semver/version.py` defines the `Version` class. `Version.next_version(part, prerelease_token)` computes the next version preserving natural order. The relevant branch, when the version already has a prerelease and the caller requests a different token, is:
```python
if not (
... | tasks/python-semver__python-semver__bcd151fa63/spec.md | false | tests/test_bump.py | true | [
"tests/test_bump.py",
"tests/test_issue484.py"
] | [
{
"path": "tasks/python-semver__python-semver__bcd151fa63/hidden/tests/test_bump.py",
"repo_path": "tests/test_bump.py",
"bytes": 6812,
"sha256": "dec6ec7362931bd82a478967c5674ebada3eef83fe2c609a917391d401b70ac0",
"content": "import pytest\n\nfrom semver import (\n Version,\n bump_build,\n... | [
"tests/test_bump.py::test_next_version_matches_literal_prerelease_token_family",
"tests/test_issue484.py::test_token_switch_preserves_version_order"
] | [
"tests/test_bump.py::test_should_bump_major",
"tests/test_bump.py::test_should_bump_minor",
"tests/test_bump.py::test_should_bump_patch",
"tests/test_bump.py::test_should_versioninfo_bump_major_and_minor",
"tests/test_bump.py::test_should_versioninfo_bump_minor_and_patch",
"tests/test_bump.py::test_should... | true | --- a/src/semver/version.py
+++ b/src/semver/version.py
@@ -562,6 +562,13 @@
version.prerelease == prerelease_token
or version.prerelease.startswith(prerelease_token + ".")
):
+ # Check if the new token sorts earlier than the existing prerele... | tasks/python-semver__python-semver__bcd151fa63/trained.patch | Qwen3.6-35B-A3B, the base model before any training (UD-IQ3_XXS GGUF quant) | {
"seed": 3,
"passed_spec_tests": true,
"spec_tests": 4,
"passed_upstream_tests": true,
"tool_calls": 13,
"wall_seconds": 109.5,
"timed_out": false,
"turn_limit": 30,
"time_limit_seconds": 480,
"generated_files_dropped": 1
} | {
"path": "tasks/python-semver__python-semver__bcd151fa63/repo.tar.gz",
"files": 120,
"bytes": 648748,
"compressed_bytes": 293971,
"sha256": "b6d7187f5b056baf34b34570fc55fcae41a6301dbe8c7744e8eed9e793a1ffa3",
"omitted": []
} |
python-semver__python-semver__f53d13d138 | python-semver/python-semver | https://github.com/python-semver/python-semver | 642d1bc8949d38cca7922df478d0f2c06513f99d | f53d13d13814a180a464763d6363bacb8a9f6c7f | validate tokens in bump methods (#483)
Previously, the bump_prerelease and bump_build methods did not validate the token argument.
This could lead to the creation of invalid SemVer strings if a non-compliant token was passed.
This change introduces validation for the token argument in both methods, raising a
ValueEr... | small | 54 | python | [
"src/semver/version.py"
] | BSD-3-Clause | tasks/python-semver__python-semver__f53d13d138/LICENSE | LICENSE.txt | cc10179de9ced8655d7765bd3a8ac46438a61e663de7cf1c48d502d2baf9f3d5 | [] | ## Context
`src/semver/version.py` defines the `Version` class. Its bump methods construct new prerelease and build strings from a caller-supplied `token` argument without checking that the token is a valid SemVer identifier.
Today `Version.bump_prerelease` in `src/semver/version.py` builds the prerelease directly fr... | tasks/python-semver__python-semver__f53d13d138/spec.md | false | tests/test_bump_token_validation.py | false | [
"tests/test_bump_token_validation.py"
] | [
{
"path": "tasks/python-semver__python-semver__f53d13d138/hidden/tests/test_bump_token_validation.py",
"repo_path": "tests/test_bump_token_validation.py",
"bytes": 2918,
"sha256": "647bdb8eaff1aa9fc52126a305743dab346d9c6017f1514d11bb7b2ffd732451",
"content": "\"\"\"Regression tests: invalid bump... | [
"tests/test_bump_token_validation.py::test_bump_build_rejects_invalid_token",
"tests/test_bump_token_validation.py::test_bump_prerelease_rejects_invalid_token",
"tests/test_bump_token_validation.py::test_bump_prerelease_rejects_numeric_leading_zero_segment",
"tests/test_bump_token_validation.py::test_bump_bui... | [] | true | --- a/src/semver/version.py
+++ b/src/semver/version.py
@@ -95,6 +95,10 @@
_LAST_NUMBER: ClassVar[Pattern[str]] = re.compile(r"(?:[^\d]*(\d+)[^\d]*)+")
#: Regex for number in a prerelease
_LAST_PRERELEASE: ClassVar[Pattern[str]] = re.compile(r"^(.*\.)?(\d+)$")
+ #: Prerelease identifier pattern
+ _... | tasks/python-semver__python-semver__f53d13d138/trained.patch | Qwen3.6-35B-A3B, the base model before any training (UD-IQ3_XXS GGUF quant) | {
"seed": 1,
"passed_spec_tests": true,
"spec_tests": 18,
"passed_upstream_tests": true,
"tool_calls": 20,
"wall_seconds": 246,
"timed_out": false,
"turn_limit": 30,
"time_limit_seconds": 480,
"generated_files_dropped": 1
} | {
"path": "tasks/python-semver__python-semver__f53d13d138/repo.tar.gz",
"files": 112,
"bytes": 635998,
"compressed_bytes": 290674,
"sha256": "eafcbf35eed6d7a9840310473590172cf89e70008a4f2576a487833039a377de",
"omitted": []
} |
simplejson__simplejson__1ae4376804 | simplejson/simplejson | https://github.com/simplejson/simplejson | 83181c299c543d94d3cc486686a689985b1fe1de | 1ae4376804cbd09e683eebedf714984360effbca | Fix encoder crashes when user code mutates containers, and C/Python mismatches (#395)
* Fix encoder crashes when user code resizes containers, and C/Python mismatches
C encoder:
- The exact list/tuple fast path cached the list's length, so a
default() or for_json() that shrank the list read freed slots and
crashe... | small | 26 | python | [
"simplejson/encoder.py"
] | MIT | tasks/simplejson__simplejson__1ae4376804/LICENSE | LICENSE.txt | fcaa1e313a99304322e2e0836ea4ee7d839ce9a480438f3922a853edfdde129f | [] | ## Context
`simplejson/encoder.py` implements the pure-Python encoder. `JSONEncoder.iterencode()` builds a closure with `_make_iterencode(...)` when the C extension is unavailable:
```python
if c_make_encoder is not None:
_iterencode = c_make_encoder(
```
The module global `c_make_encoder` is rea... | tasks/simplejson__simplejson__1ae4376804/spec.md | false | simplejson/tests/test_method_dispatch.py | true | [
"simplejson/tests/test_dump.py",
"simplejson/tests/test_errors.py",
"simplejson/tests/test_for_json.py",
"simplejson/tests/test_speedups.py"
] | [
{
"path": "tasks/simplejson__simplejson__1ae4376804/hidden/simplejson/tests/test_dump.py",
"repo_path": "simplejson/tests/test_dump.py",
"bytes": 21944,
"sha256": "836a0a2af017919eb679e2dc85e29edaf14126e1cf1f03452689d86884686891",
"content": "import sys\nfrom unittest import TestCase\nfrom simpl... | [
"simplejson/tests/test_dump.py::TestDictEncodingPaths::test_dict_resized_during_encoding",
"simplejson/tests/test_dump.py::TestDictEncodingPaths::test_dict_keys_replaced_during_encoding",
"simplejson/tests/test_dump.py::TestDictEncodingPaths::test_dict_subclass_items_returning_iterator",
"simplejson/tests/tes... | [
"simplejson/tests/test_dump.py::TestDump::test_dump",
"simplejson/tests/test_dump.py::TestDump::test_constants",
"simplejson/tests/test_dump.py::TestDump::test_stringify_key",
"simplejson/tests/test_dump.py::TestDump::test_dumps",
"simplejson/tests/test_dump.py::TestDump::test_encode_truefalse",
"simplejs... | false | null | null | null | null | {
"path": "tasks/simplejson__simplejson__1ae4376804/repo.tar.gz",
"files": 63,
"bytes": 541136,
"compressed_bytes": 130622,
"sha256": "8dbc102b2629c116ed53918d254706bade751166790c1d348716f028e0ec785d",
"omitted": []
} |
simplejson__simplejson__342cf5d027 | simplejson/simplejson | https://github.com/simplejson/simplejson | 1ae4376804cbd09e683eebedf714984360effbca | 342cf5d027e194b6686a375104df3435ed7e3099 | Detect circular references through fresh iterable iterators (#391)
* Detect cycles through re-iterable objects in both encoders
* Use bounded self references for disabled circular-check tests
* Mark iterables once, before __iter__, and release markers on error
Follow-up to the iterable_as_array cycle detection:
- ... | large | 375 | python | [
"simplejson/__init__.py",
"simplejson/encoder.py"
] | MIT | tasks/simplejson__simplejson__342cf5d027/LICENSE | LICENSE.txt | fcaa1e313a99304322e2e0836ea4ee7d839ce9a480438f3922a853edfdde129f | [] | # Build spec: detect circular references through re-iterable iterables in the pure-Python encoder
## Context
`simplejson/encoder.py` implements the pure-Python JSON encoder. `JSONEncoder.iterencode` builds a `markers` dict (one per call, keyed by `id(obj)`) when `check_circular` is true and passes it to `_make_iteren... | tasks/simplejson__simplejson__342cf5d027/spec.md | false | simplejson/tests/test_check_circular.py | true | [
"simplejson/tests/test_check_circular.py",
"simplejson/tests/test_iterable.py"
] | [
{
"path": "tasks/simplejson__simplejson__342cf5d027/hidden/simplejson/tests/test_check_circular.py",
"repo_path": "simplejson/tests/test_check_circular.py",
"bytes": 6125,
"sha256": "c9dd230776cf2fd8bacfc7959c5eb6aaa9414c703148041e97aeb59f1556f44e",
"content": "import decimal\nfrom unittest impo... | [
"simplejson/tests/test_check_circular.py::TestCheckCircular::test_default_callback_clears_markers",
"simplejson/tests/test_check_circular.py::TestCheckCircular::test_markers_released_after_error",
"simplejson/tests/test_check_circular.py::TestCheckCircular::test_markers_cleared_during_encoding",
"simplejson/t... | [
"simplejson/tests/test_check_circular.py::TestCheckCircular::test_circular_dict",
"simplejson/tests/test_check_circular.py::TestCheckCircular::test_circular_list",
"simplejson/tests/test_check_circular.py::TestCheckCircular::test_circular_composite",
"simplejson/tests/test_check_circular.py::TestCheckCircular... | true | --- a/simplejson/encoder.py
+++ b/simplejson/encoder.py
@@ -544,89 +544,92 @@
if markers is not None:
del markers[markerid]
- def _iterencode_list(lst, _current_indent_level):
- if not lst:
+ def _iterencode_list(lst, _current_indent_level, _marker_obj=None):
+ marker... | tasks/simplejson__simplejson__342cf5d027/trained.patch | Qwen3.6-35B-A3B, the base model before any training (UD-IQ3_XXS GGUF quant) | {
"seed": 3,
"passed_spec_tests": true,
"spec_tests": 1,
"passed_upstream_tests": false,
"tool_calls": 24,
"wall_seconds": 716.5,
"timed_out": false,
"turn_limit": 50,
"time_limit_seconds": 900,
"generated_files_dropped": 0
} | {
"path": "tasks/simplejson__simplejson__342cf5d027/repo.tar.gz",
"files": 63,
"bytes": 554345,
"compressed_bytes": 133823,
"sha256": "2cdd6d997cd683a068c7d1d677d8711a645ddba25abfb1098944d4d3e42d5d58",
"omitted": []
} |
simplejson__simplejson__825100a7fc | simplejson/simplejson | https://github.com/simplejson/simplejson | 0dbb9d875127a9009f01a4036fa950b0a5f4f589 | 825100a7fc498dafae31d10bef3e3cfaba1fdc5b | Release version 4.0.0: free-threading, CPython json parity, Python 2.7 fixes (#371)
* Prepare 4.0.0 release: changelog, version bump, metadata updates
Add comprehensive CHANGES.txt entry for 4.0.0 covering all work since
3.20.2: free-threading support, C extension memory safety fixes,
encoding fast paths, Python 3.14... | large | 268 | python | [
"simplejson/__init__.py",
"simplejson/compat.py",
"simplejson/decoder.py",
"simplejson/encoder.py",
"simplejson/scanner.py",
"simplejson/tool.py"
] | MIT | tasks/simplejson__simplejson__825100a7fc/LICENSE | LICENSE.txt | fcaa1e313a99304322e2e0836ea4ee7d839ce9a480438f3922a853edfdde129f | [] | ## Context
This spec covers the Python-level part of the simplejson 4.0.0 release: the version bump, the `array_hook` decoder parameter, trailing-comma detection, non-ASCII digit rejection in the pure-Python scanner, frozendict encoding, `exc.add_note()` context on serialization errors, wiring the C fast path for `enc... | tasks/simplejson__simplejson__825100a7fc/spec.md | true | simplejson/tests/test_fail.py | true | [
"simplejson/tests/__init__.py",
"simplejson/tests/_helpers.py",
"simplejson/tests/test_decode.py",
"simplejson/tests/test_dump.py",
"simplejson/tests/test_errors.py",
"simplejson/tests/test_free_threading.py",
"simplejson/tests/test_namedtuple.py",
"simplejson/tests/test_speedups.py",
"simplejson/te... | [
{
"path": "tasks/simplejson__simplejson__825100a7fc/hidden/simplejson/tests/__init__.py",
"repo_path": "simplejson/tests/__init__.py",
"bytes": 2917,
"sha256": "116cb5b58e989d9ed5e41e4da76401e4dfab1f76b750fdd0988f70e138c0c543",
"content": "from __future__ import absolute_import\nimport unittest\... | [
"simplejson/tests/test_decode.py::TestDecode::test_array_hook",
"simplejson/tests/test_decode.py::TestDecode::test_array_hook_empty",
"simplejson/tests/test_decode.py::TestDecode::test_array_hook_nested_in_object",
"simplejson/tests/test_decode.py::TestDecode::test_array_hook_with_object_hook",
"simplejson/... | [
"simplejson/tests/test_decode.py::TestDecode::test_decimal",
"simplejson/tests/test_decode.py::TestDecode::test_float",
"simplejson/tests/test_decode.py::TestDecode::test_decoder_optimizations",
"simplejson/tests/test_decode.py::TestDecode::test_empty_objects",
"simplejson/tests/test_decode.py::TestDecode::... | false | null | null | null | null | {
"path": "tasks/simplejson__simplejson__825100a7fc/repo.tar.gz",
"files": 59,
"bytes": 441197,
"compressed_bytes": 104213,
"sha256": "2291681099660343d4fb0ad2f734e620ebeef3b933f5335375e98713450f2549",
"omitted": []
} |
simplejson__simplejson__9950b7e5f4 | simplejson/simplejson | https://github.com/simplejson/simplejson | d7bf57889fafe4a116abbc6fac7674100f9c41b1 | 9950b7e5f4443fff8defb51e80e41ab40d0a36b9 | Honor explicit item sort callbacks independently of truth value (#396) | medium | 12 | python | [
"simplejson/__init__.py",
"simplejson/encoder.py"
] | MIT | tasks/simplejson__simplejson__9950b7e5f4/LICENSE | LICENSE.txt | fcaa1e313a99304322e2e0836ea4ee7d839ce9a480438f3922a853edfdde129f | [] | ## Context
`simplejson` encodes dictionary items either in insertion order or sorted by the `item_sort_key` callback. The callback is currently tested by truth value in several places, so a callable that is also falsy (an instance with `__call__` and `__bool__` returning `False`) is silently ignored. Issue #396 asks t... | tasks/simplejson__simplejson__9950b7e5f4/spec.md | true | simplejson/tests/test_item_sort_key_falsy.py | true | [
"simplejson/tests/test_item_sort_key.py"
] | [
{
"path": "tasks/simplejson__simplejson__9950b7e5f4/hidden/simplejson/tests/test_item_sort_key.py",
"repo_path": "simplejson/tests/test_item_sort_key.py",
"bytes": 3006,
"sha256": "c7c10d355ee452afb29d3ffbc3a84840c5833eb8dc06ca068902aae8562686d8",
"content": "from unittest import TestCase\n\nimp... | [
"simplejson/tests/test_item_sort_key.py::TestExplicitItemSortKey::test_callable_presence_does_not_depend_on_truth_value",
"simplejson/tests/test_item_sort_key.py::TestExplicitItemSortKey::test_false_valued_noncallable_is_rejected",
"simplejson/tests/test_item_sort_key.py::TestExplicitItemSortKey::test_false_val... | [
"simplejson/tests/test_item_sort_key.py::TestItemSortKey::test_simple_first",
"simplejson/tests/test_item_sort_key.py::TestItemSortKey::test_case",
"simplejson/tests/test_item_sort_key.py::TestItemSortKey::test_item_sort_key_value"
] | true | --- a/simplejson/__init__.py
+++ b/simplejson/__init__.py
@@ -246,7 +246,7 @@
encoding == 'utf-8' and default is None and use_decimal
and namedtuple_as_object and tuple_as_array and not iterable_as_array
and not bigint_as_string and not sort_keys
- and not item_sort_key and not for_jso... | tasks/simplejson__simplejson__9950b7e5f4/trained.patch | Qwen3.6-35B-A3B, the base model before any training (UD-IQ3_XXS GGUF quant) | {
"seed": 1,
"passed_spec_tests": true,
"spec_tests": 6,
"passed_upstream_tests": true,
"tool_calls": 21,
"wall_seconds": 269.8,
"timed_out": false,
"turn_limit": 30,
"time_limit_seconds": 480,
"generated_files_dropped": 0
} | {
"path": "tasks/simplejson__simplejson__9950b7e5f4/repo.tar.gz",
"files": 63,
"bytes": 574049,
"compressed_bytes": 137921,
"sha256": "81ad6ba32fc9d31ba8f64090c58d8d56e413d19ba8399763be4814b9517b8e16",
"omitted": []
} |
simplejson__simplejson__b0fe1ef4cb | simplejson/simplejson | https://github.com/simplejson/simplejson | fa8feea8837e9859b207ae1883051b97510ca3e6 | b0fe1ef4cb7db57f14dfb8416a468bfb77bbd3ec | Handle non-finite Decimals like floats in the encoder (fixes #149) (#381)
* Handle non-finite Decimals like floats in the encoder
Non-finite Decimal values (NaN, sNaN, Infinity) bypassed the
allow_nan / ignore_nan handling that floats go through, so
ignore_nan=True emitted a literal NaN instead of null and
allow_nan=... | small | 37 | python | [
"simplejson/encoder.py"
] | MIT | tasks/simplejson__simplejson__b0fe1ef4cb/LICENSE | LICENSE.txt | fcaa1e313a99304322e2e0836ea4ee7d839ce9a480438f3922a853edfdde129f | [] | ## Context
`simplejson/encoder.py` implements the JSON encoder. `JSONEncoder.iterencode()` builds a `floatstr` closure that implements all non-finite float handling (`NaN`/`Infinity`/`-Infinity`, `ignore_nan`, `allow_nan`) and passes it to `_make_iterencode` as `_floatstr`:
```python
def floatstr(o, allow_nan... | tasks/simplejson__simplejson__b0fe1ef4cb/spec.md | false | simplejson/tests/test_decimal.py | true | [
"simplejson/tests/test_decimal.py"
] | [
{
"path": "tasks/simplejson__simplejson__b0fe1ef4cb/hidden/simplejson/tests/test_decimal.py",
"repo_path": "simplejson/tests/test_decimal.py",
"bytes": 5661,
"sha256": "4d8c3d2e8256fb3815eb0def66bfc038d6f639a08bfd8067246ed3f068678285",
"content": "import decimal\nfrom decimal import Decimal\nfro... | [
"simplejson/tests/test_decimal.py::TestDecimal::test_decimal_nan_allow",
"simplejson/tests/test_decimal.py::TestDecimal::test_decimal_nan_ignore",
"simplejson/tests/test_decimal.py::TestDecimal::test_decimal_nan_deny",
"simplejson/tests/test_decimal.py::TestDecimal::test_decimal_nan_as_value",
"simplejson/t... | [
"simplejson/tests/test_decimal.py::TestDecimal::test_decimal_encode",
"simplejson/tests/test_decimal.py::TestDecimal::test_decimal_decode",
"simplejson/tests/test_decimal.py::TestDecimal::test_stringify_key",
"simplejson/tests/test_decimal.py::TestDecimal::test_decimal_roundtrip",
"simplejson/tests/test_dec... | true | --- a/simplejson/encoder.py
+++ b/simplejson/encoder.py
@@ -494,6 +494,18 @@
return str(value)
return '"' + str(value) + '"'
+ def _encode_decimal(value):
+ s = str(value)
+ t = s[1:] if s[0] == '-' else s
+ if t[:1].isdigit():
+ return s
+ # Non-finite:... | tasks/simplejson__simplejson__b0fe1ef4cb/trained.patch | Qwen3.6-35B-A3B, the base model before any training (UD-IQ3_XXS GGUF quant) | {
"seed": 1,
"passed_spec_tests": true,
"spec_tests": 1,
"passed_upstream_tests": true,
"tool_calls": 20,
"wall_seconds": 163.9,
"timed_out": false,
"turn_limit": 30,
"time_limit_seconds": 480,
"generated_files_dropped": 0
} | {
"path": "tasks/simplejson__simplejson__b0fe1ef4cb/repo.tar.gz",
"files": 62,
"bytes": 518094,
"compressed_bytes": 125453,
"sha256": "23989e49e1cc331730b7ba8fd739cad9987dd98282803d810ba0d2014f41b4ca",
"omitted": []
} |
simplejson__simplejson__d7bf57889f | simplejson/simplejson | https://github.com/simplejson/simplejson | 342cf5d027e194b6686a375104df3435ed7e3099 | d7bf57889fafe4a116abbc6fac7674100f9c41b1 | Preserve explicitly supplied false-valued numeric parser callbacks (#394)
* Preserve explicitly supplied false-valued numeric parsers
* Update simplejson/decoder.py
--------- | medium | 14 | python | [
"simplejson/decoder.py",
"simplejson/scanner.py"
] | MIT | tasks/simplejson__simplejson__d7bf57889f/LICENSE | LICENSE.txt | fcaa1e313a99304322e2e0836ea4ee7d839ce9a480438f3922a853edfdde129f | [] | ## Context
`simplejson/decoder.py` implements `JSONDecoder`, whose `__init__` stores the user-supplied numeric parser callbacks using `or`, which replaces any false-valued callable with the default. The relevant lines in `JSONDecoder.__init__` (`simplejson/decoder.py`):
```python
self.parse_float = parse_floa... | tasks/simplejson__simplejson__d7bf57889f/spec.md | false | simplejson/tests/test_falsey_parsers.py | true | [
"simplejson/tests/test_decode.py"
] | [
{
"path": "tasks/simplejson__simplejson__d7bf57889f/hidden/simplejson/tests/test_decode.py",
"repo_path": "simplejson/tests/test_decode.py",
"bytes": 11106,
"sha256": "036fa82b36c10ccb3acef07aa0cc2cc4c5cdac5a3ea4a5f59fb9b87927760265",
"content": "from __future__ import absolute_import\nimport de... | [
"simplejson/tests/test_decode.py::TestDecode::test_parse_int_false_callable",
"simplejson/tests/test_decode.py::TestDecode::test_parse_float_false_callable",
"simplejson/tests/test_decode.py::TestDecode::test_parse_constant_false_callable",
"simplejson/tests/test_decode.py::TestDecode::test_parse_constant_fal... | [
"simplejson/tests/test_decode.py::TestDecode::test_decimal",
"simplejson/tests/test_decode.py::TestDecode::test_float",
"simplejson/tests/test_decode.py::TestDecode::test_decoder_optimizations",
"simplejson/tests/test_decode.py::TestDecode::test_empty_objects",
"simplejson/tests/test_decode.py::TestDecode::... | true | --- a/simplejson/decoder.py
+++ b/simplejson/decoder.py
@@ -377,9 +377,9 @@
self.encoding = encoding
self.object_hook = object_hook
self.object_pairs_hook = object_pairs_hook
- self.parse_float = parse_float or float
- self.parse_int = parse_int or bounded_int
- self.pars... | tasks/simplejson__simplejson__d7bf57889f/trained.patch | Qwen3.6-35B-A3B, the base model before any training (UD-IQ3_XXS GGUF quant) | {
"seed": 1,
"passed_spec_tests": true,
"spec_tests": 7,
"passed_upstream_tests": true,
"tool_calls": 12,
"wall_seconds": 87.5,
"timed_out": false,
"turn_limit": 30,
"time_limit_seconds": 480,
"generated_files_dropped": 0
} | {
"path": "tasks/simplejson__simplejson__d7bf57889f/repo.tar.gz",
"files": 63,
"bytes": 571369,
"compressed_bytes": 137416,
"sha256": "90ca5788a589ed083f757e3b19f476cc4986ba15ea9fca99ca0fc15f7c1522b1",
"omitted": []
} |
snowflakedb__drivers__254ba8e308 | snowflakedb/drivers | https://github.com/snowflakedb/drivers | e19eb8ea08bfea70a9918fcc292385ec4b329a75 | 254ba8e308494102f797a57cee30fd96f25bf12c | Build and test Python 3.14t wheels (3.14t support, 3/3)
## Summary
- Builds `cp314t` wheels for Linux x86_64, Linux aarch64, macOS x86_64,
macOS arm64, and Windows x64. Windows ARM64 stays excluded because
`cryptography` has no `cp314t` wheel there.
- Teaches the manylinux build to use `/opt/python/cp314-cp314t`, and
... | medium | 26 | python | [
"ci/test_matrix/mappings/python.py",
"ci/test_matrix/models/python.py"
] | Apache-2.0 | tasks/snowflakedb__drivers__254ba8e308/LICENSE | LICENSE | cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30 | [
{
"path": "python/src/snowflake/connector/_internal/nanoarrow_cpp/ArrowIterator/LICENSE.txt",
"licence": "Apache-2.0"
}
] | ## Context
The repository generates CI test matrices from declarative models. `ci/test_matrix/mappings/python.py` holds `PYTHON_PLATFORM`, a dict from `(OS, Arch)` to build metadata, and `SDIST_PY`:
```python
PYTHON_PLATFORM: dict[tuple[str, str], dict] = {
("ubuntu", "x64"): {"cibw_key": "linux_x86", "wheel_a... | tasks/snowflakedb__drivers__254ba8e308/spec.md | false | ci/test_matrix/test_generate_matrix.py | false | [
"ci/test_matrix/test_generate_matrix.py"
] | [
{
"path": "tasks/snowflakedb__drivers__254ba8e308/hidden/ci/test_matrix/test_generate_matrix.py",
"repo_path": "ci/test_matrix/test_generate_matrix.py",
"bytes": 96692,
"sha256": "f99ff102ae33de77f6a15446c82d97bce2164622ab935c16125ac74796e88732",
"content": null
}
] | [
"ci/test_matrix/test_generate_matrix.py::PythonMatrixTests::test_freethreading_pr_cell_installs_from_wheel",
"ci/test_matrix/test_generate_matrix.py::PythonMatrixTests::test_macos_x64_present",
"ci/test_matrix/test_generate_matrix.py::BuildTargetsTests::test_nightly_targets_match_legacy_hardcoded_json"
] | [
"ci/test_matrix/test_generate_matrix.py::PairwiseTests::test_pairwise_covers_all_pairs",
"ci/test_matrix/test_generate_matrix.py::PairwiseTests::test_pairwise_minimal",
"ci/test_matrix/test_generate_matrix.py::LoadModelTests::test_load_basic",
"ci/test_matrix/test_generate_matrix.py::LoadModelTests::test_load... | false | null | null | null | null | {
"path": "tasks/snowflakedb__drivers__254ba8e308/repo.tar.gz",
"files": 2959,
"bytes": 54556691,
"compressed_bytes": 6403054,
"sha256": "5aa93348cbf82e3fd2cf08616c201088b8358642ecca3ddb6cacd82ed389ce21",
"omitted": [
{
"path": "tests/fixtures/test.crl",
"bytes": 8749836,
"reason": "bi... |
theskumar__python-dotenv__f5485a61ee | theskumar/python-dotenv | https://github.com/theskumar/python-dotenv | 49515afee2d50c33cad9419b3800b3a0dc93fc59 | f5485a61eefa5e686d6d5bdc7aa9ad6b104b1e92 | fix: parse empty unquoted value with inline comment as empty string
An unquoted empty value followed by an inline comment (e.g. `KEY= # comment`)
was parsed as the comment text because the equal-sign regex consumed the
whitespace after `=`, leaving no whitespace for the comment-stripping rule to
match. When the value ... | small | 11 | python | [
"src/dotenv/parser.py"
] | BSD-3-Clause | tasks/theskumar__python-dotenv__f5485a61ee/LICENSE | LICENSE | 80619b7049f08c81683ad0e01f08f257a840652dd71ee83146d36658c7d2c2b9 | [
{
"path": "docs/license.md",
"licence": "BSD-3-Clause"
}
] | ## Context
`src/dotenv/parser.py` parses `.env` streams into `Binding` named tuples. The pieces the change touches, quoted verbatim:
```python
_equal_sign = make_regex(r"(=[^\S\r\n]*)")
```
```python
_comment = make_regex(r"(?:[^\S\r\n]*#[^\r\n]*)?")
```
```python
def parse_unquoted_value(reader: Reader) -> str:
... | tasks/theskumar__python-dotenv__f5485a61ee/spec.md | true | tests/test_parser.py | true | [
"tests/test_main.py",
"tests/test_parser.py"
] | [
{
"path": "tasks/theskumar__python-dotenv__f5485a61ee/hidden/tests/test_main.py",
"repo_path": "tests/test_main.py",
"bytes": 21282,
"sha256": "cfc352b5137721d0346fc840479b97cb5378f1616d7b016b63cc125d00f25a2d",
"content": "import io\nimport logging\nimport os\nimport stat\nimport subprocess\nimp... | [
"tests/test_main.py::test_dotenv_values_empty_value_with_inline_comment"
] | [
"tests/test_main.py::test_set_key_no_file",
"tests/test_main.py::test_set_key",
"tests/test_main.py::test_set_key_round_trips",
"tests/test_main.py::test_set_key_encoding",
"tests/test_main.py::test_set_key_preserves_file_mode",
"tests/test_main.py::test_rewrite_closes_file_handle_on_lstat_failure",
"te... | true | --- a/src/dotenv/parser.py
+++ b/src/dotenv/parser.py
@@ -156,8 +156,11 @@
key = parse_key(reader)
reader.read_regex(_whitespace)
if reader.peek(1) == "=":
- reader.read_regex(_equal_sign)
- value: Optional[str] = parse_value(reader)
+ (equal,) = reader.read_r... | tasks/theskumar__python-dotenv__f5485a61ee/trained.patch | Qwen3.6-35B-A3B, the base model before any training (UD-IQ3_XXS GGUF quant) | {
"seed": 2,
"passed_spec_tests": true,
"spec_tests": 1,
"passed_upstream_tests": true,
"tool_calls": 9,
"wall_seconds": 96,
"timed_out": false,
"turn_limit": 30,
"time_limit_seconds": 480,
"generated_files_dropped": 0
} | {
"path": "tasks/theskumar__python-dotenv__f5485a61ee/repo.tar.gz",
"files": 43,
"bytes": 141026,
"compressed_bytes": 35056,
"sha256": "e88c421a435df945807d45c23bab754d089474930aefdb2f9810a6f0cb5dc451",
"omitted": []
} |
tlsfuzzer__python-ecdsa__8c5704e9e0 | tlsfuzzer/python-ecdsa | https://github.com/tlsfuzzer/python-ecdsa | 6e6dbf112d7ea1b278a25b483d5ad7f2d1525855 | 8c5704e9e02c3d0adad960dc9db15744a59f2e1f | use simple double and add algorithm in Point
So, X9.62 looks to be trying to protect against side-channels
from double and add by doing a "addition-subtraction method"
in section D.3.2. For some reason, that doesn't work for all
parameters (see issue #373). Given that we don't have
a need for side-channel resistance, ... | small | 35 | python | [
"src/ecdsa/ellipticcurve.py"
] | MIT | tasks/tlsfuzzer__python-ecdsa__8c5704e9e0/LICENSE | LICENSE | 3eca9845773d2e5b8cc9d8c119d345f00a4806e4bd660d4a3d6cdf9c0e9d8bb2 | [] | ## Context
`src/ecdsa/ellipticcurve.py` implements elliptic curve points. Three point classes exist: `Point` (affine, short Weierstrass), `PointJacobi` (Jacobian, short Weierstrass) and `PointEdwards` (twisted Edwards). `PointJacobi.__mul__` and `PointEdwards.__mul__` already use correct double-and-add style loops (NA... | tasks/tlsfuzzer__python-ecdsa__8c5704e9e0/spec.md | false | src/ecdsa/test_point_mul.py | false | [
"src/ecdsa/test_ellipticcurve.py"
] | [
{
"path": "tasks/tlsfuzzer__python-ecdsa__8c5704e9e0/hidden/src/ecdsa/test_ellipticcurve.py",
"repo_path": "src/ecdsa/test_ellipticcurve.py",
"bytes": 9536,
"sha256": "45da8e3a3df058c523548f0a2d75ac6ec9cb4873b70f593afaed4811b62808df",
"content": "import pytest\n\ntry:\n import unittest2 as un... | [
"src/ecdsa/test_ellipticcurve.py::test_add_and_mult_equivalence_2"
] | [
"src/ecdsa/test_ellipticcurve.py::test_p192_mult_tests",
"src/ecdsa/test_ellipticcurve.py::test_add_and_mult_equivalence",
"src/ecdsa/test_ellipticcurve.py::TestCurve::test_equality_curves",
"src/ecdsa/test_ellipticcurve.py::TestCurve::test_inequality_curves",
"src/ecdsa/test_ellipticcurve.py::TestCurve::te... | true | --- a/src/ecdsa/curves.py
+++ b/src/ecdsa/curves.py
@@ -259,6 +259,21 @@
return i
return tmp_curve
+ def contains_point(self, x, y):
+ return self.curve.contains_point(x, y)
+
+ def cofactor(self):
+ return self.curve.cofactor()
+
+ def p(self):
+ return self.cu... | tasks/tlsfuzzer__python-ecdsa__8c5704e9e0/trained.patch | Qwen3.6-35B-A3B, the base model before any training (UD-IQ3_XXS GGUF quant) | {
"seed": 3,
"passed_spec_tests": true,
"spec_tests": 9,
"passed_upstream_tests": false,
"tool_calls": 37,
"wall_seconds": 301.9,
"timed_out": false,
"turn_limit": 30,
"time_limit_seconds": 480,
"generated_files_dropped": 18
} | {
"path": "tasks/tlsfuzzer__python-ecdsa__8c5704e9e0/repo.tar.gz",
"files": 81,
"bytes": 793831,
"compressed_bytes": 192271,
"sha256": "48bc9a9b0c36d201e3f71a76915e411ccfb804eb8ab21d4c898acd9384e1b506",
"omitted": []
} |
tornadoweb__tornado__467b36674f | tornadoweb/tornado | https://github.com/tornadoweb/tornado | b39d80f4cd5cb51469fe38da76b6023e0183fd99 | 467b36674fe6ee5031efaa3afa8974cc0a219f54 | httputil: Reject multipart Content-Type with multiple boundary params
Previously the first boundary parameter won. An intermediary that picks
the last one (or treats differently-cased names differently) would see a
different multipart body than Tornado, so reject the ambiguity instead.
Claude-Session: https://claude.... | small | 19 | python | [
"tornado/httputil.py"
] | Apache-2.0 | tasks/tornadoweb__tornado__467b36674f/LICENSE | LICENSE | cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30 | [] | # Build spec: reject multipart Content-Type with multiple boundary parameters
## Context
`tornado/httputil.py` holds the shared HTTP utilities, including `parse_body_arguments`, which parses `application/x-www-form-urlencoded` and `multipart/form-data` request bodies and fills the `arguments` and `files` dictionaries... | tasks/tornadoweb__tornado__467b36674f/spec.md | false | tornado/test/httputil_test.py | true | [
"tornado/test/httputil_test.py"
] | [
{
"path": "tasks/tornadoweb__tornado__467b36674f/hidden/tornado/test/httputil_test.py",
"repo_path": "tornado/test/httputil_test.py",
"bytes": 35226,
"sha256": "2557a9f362a018b6f59b8251002b63a937c5e3f29ba2fdb29677082b3f901cd5",
"content": "import copy\nimport datetime\nimport logging\nimport pic... | [
"tornado/test/httputil_test.py::MultipartFormDataTest::test_multiple_boundaries"
] | [
"tornado/test/httputil_test.py::TestUrlConcat::test_url_concat_no_query_params",
"tornado/test/httputil_test.py::TestUrlConcat::test_url_concat_encode_args",
"tornado/test/httputil_test.py::TestUrlConcat::test_url_concat_trailing_q",
"tornado/test/httputil_test.py::TestUrlConcat::test_url_concat_q_with_no_tra... | true | --- a/tornado/httputil.py
+++ b/tornado/httputil.py
@@ -1079,13 +1079,17 @@
if fields[0].strip().lower() != "multipart/form-data":
# This catches "Content-Type: multipart/form-dataxyz"
raise HTTPInputError("Invalid content type")
+ boundaries: list[bytes] = []
... | tasks/tornadoweb__tornado__467b36674f/trained.patch | Qwen3.6-35B-A3B, the base model before any training (UD-IQ3_XXS GGUF quant) | {
"seed": 1,
"passed_spec_tests": true,
"spec_tests": 5,
"passed_upstream_tests": false,
"tool_calls": 16,
"wall_seconds": 129.8,
"timed_out": false,
"turn_limit": 30,
"time_limit_seconds": 480,
"generated_files_dropped": 0
} | {
"path": "tasks/tornadoweb__tornado__467b36674f/repo.tar.gz",
"files": 335,
"bytes": 2559239,
"compressed_bytes": 667154,
"sha256": "5731681d09e83bd9e164ada05d23f8b20cc24b7b76a01fa147e07ac8d50d0a59",
"omitted": []
} |
tusharsadhwani__pytokens__28cc33cb67 | tusharsadhwani/pytokens | https://github.com/tusharsadhwani/pytokens | 881fdef21721ccb3a3dc69e0cf6ff0f8996e039a | 28cc33cb67c2cf7454694b0f7cbafd9a51d337c0 | Don't emit dedents after an escaped new line (#19)
* Don't emit dedents after an escaped new line
* Add test
--------- | small | 12 | python | [
"src/pytokens/__init__.py"
] | MIT | tasks/tusharsadhwani__pytokens__28cc33cb67/LICENSE | LICENSE | 94bf7ae4ea6833b0853a7cc1f1f28dd8579b34a31c9c162aeb8825dec23ed5dc | [] | ## Context
`src/pytokens/__init__.py` is the whole tokenizer: `TokenIterator` walks the source character by character and `tokenize(source)` exposes it as an iterator of `Token` objects. `tests/pytokens_test.py` holds the pytest tests, which call `tokenize` and compare `Token` lists or token types, importing `from pyt... | tasks/tusharsadhwani__pytokens__28cc33cb67/spec.md | false | tests/pytokens_test.py | false | [
"tests/pytokens_test.py"
] | [
{
"path": "tasks/tusharsadhwani__pytokens__28cc33cb67/hidden/tests/pytokens_test.py",
"repo_path": "tests/pytokens_test.py",
"bytes": 13508,
"sha256": "a7e20a23b226bf3e118e11ab5b42c595f85ef93a024e4b86f064fe31d203cff8",
"content": "from pytokens import tokenize, Token, TokenType as T\n\n\ndef tes... | [
"tests/pytokens_test.py::test_dedent_after_escaped_nl"
] | [
"tests/pytokens_test.py::test_tokenize",
"tests/pytokens_test.py::test_weird_op_case",
"tests/pytokens_test.py::test_nested_f_tstrings"
] | false | null | null | null | null | {
"path": "tasks/tusharsadhwani__pytokens__28cc33cb67/repo.tar.gz",
"files": 18,
"bytes": 96565,
"compressed_bytes": 21345,
"sha256": "acefd48e28ece4bc8fb9834830761b12a39248d1a17c3b72a6619b20a1a03c56",
"omitted": []
} |
tusharsadhwani__pytokens__7fe68dbfe5 | tusharsadhwani/pytokens | https://github.com/tusharsadhwani/pytokens | 7dd6c2ce6b8475815c7b8a78567c11fb14b79510 | 7fe68dbfe58472865dafa94f761cbc5f690c6d48 | fix nested t string and f string edge case | small | 12 | python | [
"src/pytokens/__init__.py"
] | MIT | tasks/tusharsadhwani__pytokens__7fe68dbfe5/LICENSE | LICENSE | 94bf7ae4ea6833b0853a7cc1f1f28dd8579b34a31c9c162aeb8825dec23ed5dc | [] | ## Context
`src/pytokens/__init__.py` is the whole tokenizer. The change concerns how t-strings (PEP 750 template strings) nested inside f-strings, and f-strings nested inside t-strings, keep their token types.
`FStringState` tracks the tokenizer's position inside f/t-strings. Its constructor today holds a single, un... | tasks/tusharsadhwani__pytokens__7fe68dbfe5/spec.md | false | tests/pytokens_test.py | true | [
"tests/pytokens_test.py"
] | [
{
"path": "tasks/tusharsadhwani__pytokens__7fe68dbfe5/hidden/tests/pytokens_test.py",
"repo_path": "tests/pytokens_test.py",
"bytes": 5845,
"sha256": "2679c6955f52a14a29e5b3f04efa204bd0019185557d0bb210a28688d6253612",
"content": "from pytokens import tokenize, Token, TokenType as T\n\n\ndef test... | [
"tests/pytokens_test.py::test_nested_f_tstrings"
] | [
"tests/pytokens_test.py::test_tokenize",
"tests/pytokens_test.py::test_weird_op_case"
] | true | --- a/src/pytokens/__init__.py
+++ b/src/pytokens/__init__.py
@@ -134,9 +134,13 @@
def __init__(self) -> None:
self.state = FStringState.not_fstring
- self.is_template = False
+ self.is_template_stack: list[bool] = []
self.stack: list[FStringState.State] = []
+ @property
+ ... | tasks/tusharsadhwani__pytokens__7fe68dbfe5/trained.patch | Qwen3.6-35B-A3B, the base model before any training (UD-IQ3_XXS GGUF quant) | {
"seed": 1,
"passed_spec_tests": true,
"spec_tests": 3,
"passed_upstream_tests": true,
"tool_calls": 12,
"wall_seconds": 132.7,
"timed_out": false,
"turn_limit": 30,
"time_limit_seconds": 480,
"generated_files_dropped": 1
} | {
"path": "tasks/tusharsadhwani__pytokens__7fe68dbfe5/repo.tar.gz",
"files": 16,
"bytes": 54966,
"compressed_bytes": 11934,
"sha256": "8a86e509ed2a1b3b9aa61dd388fe1dc2b9ca46b105f2c53811c3c8631dee08e1",
"omitted": []
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.