instance_id
stringlengths
34
84
repo
stringlengths
10
25
base_commit
stringlengths
40
40
setup_patch
stringclasses
1 value
problem_statement
stringlengths
688
2.9k
patch
stringlengths
2.14k
57.2k
test_patch
stringlengths
0
32.4k
patch_files
listlengths
2
9
grader
listlengths
7
26
grader_files
listlengths
2
150
dockerfile
stringlengths
3.42k
28k
language
stringclasses
7 values
repo_license
stringclasses
7 values
hud_task
stringlengths
19
62
difficulty
stringclasses
3 values
agent_runs
int64
5
10
agent_rewards
listlengths
5
10
agent_mean_reward
float64
0.17
0.47
agent_solve_rate
float64
0
0.4
agent_models
listlengths
1
1
gold_reward
float64
1
1
base_reward
float64
0
0
⌀
oauth2-proxy__oauth2-proxy-proxy_cookie_accounting
oauth2-proxy/oauth2-proxy
33c2eb92dea78204f7a18bc2dfdbccc220f39257
You are working in a coding repository located at /workspace/repo. Please make your changes directly in /workspace/repo, not in a copy or a separate worktree. Environment: this container has about 2 vCPUs and a hard memory limit, and a fully parallel build or test run can exhaust it. Build and test package by package, ...
diff --git a/pkg/cookies/cookies.go b/pkg/cookies/cookies.go index be5ee451..5427b20d 100644 --- a/pkg/cookies/cookies.go +++ b/pkg/cookies/cookies.go @@ -60,14 +60,30 @@ func MakeCookieFromOptions(req *http.Request, opts *CookieOptions) *http.Cookie // by checking the X-Fowarded-Host and host header of an an http req...
[ "pkg/cookies/cookies.go", "pkg/cookies/csrf.go", "pkg/sessions/cookie/session_store.go" ]
[ { "criterion": "C7_trim_counts_repeated_names", "weight": 20 }, { "criterion": "C8_shrink_retires_every_carried_chunk", "weight": 18 }, { "criterion": "C11_repeats_expiry_addressed_like_the_write", "weight": 13 }, { "criterion": "C9_clear_retires_every_carried_chunk", "we...
[ { "path": "grader/harness/board.json", "encoding": "utf-8", "content": "{\n \"version\": \"board-v8\",\n \"blocker_cap\": \"0.6000\",\n \"gates\": [\n \"G1_repo_suite_green\",\n \"G2_repo_test_files_untouched\"\n ],\n \"_gates_note\": \"board v8, laws G-5 and G-5': the two gates are ANDed int...
# proxy_cookie_accounting on the coding-template. # # Substrate: oauth2-proxy/oauth2-proxy at the pinned base SHA (history vaulted # at task setup by coding/repo.py), Go 1.26 toolchain, hud serve. The module is # the repository root. Everything answer-key-shaped lives under /hud (root, mode # 700): the vault, the hidde...
Go
MIT
proxy_cookie_accounting
very hard
5
[ 0.25, 0.17, 0.1, 0.14, 0.17 ]
0.166
0
[ "claude-fable-5-1" ]
1
0
bashrc2__epicyon-epicyon_deleted_post_announce_cache_contract-1c066303
bashrc2/epicyon
76ab74c0a3e3a085393ebfb3d08edfc6397ecd83
You are working in a coding repository located at /workspace/repo. Please make your changes directly in /workspace/repo, not in a copy or a separate worktree. Environment: this container has about 2 vCPUs and a hard memory limit, so a fully parallel run of anything can exhaust it; keep test runs in one process. The Pyt...
diff --git a/src/formats.py b/src/formats.py index d35e47b..1e607c8 100644 --- a/src/formats.py +++ b/src/formats.py @@ -142,3 +142,13 @@ def media_file_mime_type(filename: str) -> str: if not extensions.get(file_ext): return 'image/png' return extensions[file_ext] + + +def media_path_from_url(url_pa...
[ "src/formats.py", "src/tests.py", "src/utils.py" ]
[ { "criterion": "media_file_of_a_deleted_post_is_removed", "weight": 5.5 }, { "criterion": "hashtag_index_forgets_a_deleted_post", "weight": 5.5 }, { "criterion": "a_deleted_blog_post_leaves_no_rendition", "weight": 5.5 }, { "criterion": "deleted_post_is_delisted_from_the_medi...
[ { "path": "grader/harness/spec_cells.py", "encoding": "utf-8", "content": "#!/usr/bin/env python3\n\"\"\"Held-out oracle for the epicyon post-deletion task.\n\nLives under /hud (root, mode 700) and is never in the workspace. Every scenario\nis built with the REPOSITORY'S OWN producers — create_person, c...
# epicyon: deleting a post clears every record of it, and only of it. # # Substrate: bashrc2/epicyon at the pinned commit, CPython, hud serve. # Everything answer-key-shaped lives under /hud (root, mode 700): the vault, the # hidden grader and its held-out program, the pristine base checkout, gold.diff # and the calibr...
Python
AGPL-3.0
epicyon_deleted_post_announce_cache_contract-1c066303
hard
5
[ 0.305, 0.305, 0.465, 0.305, 0.305 ]
0.337
0
[ "claude-fable-5-1" ]
1
0
apache__geode-geode_oql_index_null_semantics_contract-1c066303
apache/geode
857d7f3e76a520aac8eae2b464b98be2febdd9d3
You are working in a coding repository located at /workspace/repo. Please make your changes directly in /workspace/repo, not in a copy or a separate worktree. Environment: this container has about 2 vCPUs and a hard memory limit. JDK 17 is installed, and the repository's Gradle wrapper and all of its dependencies are a...
diff --git a/geode-core/src/main/java/org/apache/geode/cache/query/internal/CompiledComparison.java b/geode-core/src/main/java/org/apache/geode/cache/query/internal/CompiledComparison.java index 02773d2c14..70340b1dea 100644 --- a/geode-core/src/main/java/org/apache/geode/cache/query/internal/CompiledComparison.java ++...
diff --git a/geode-core/src/integrationTest/java/org/apache/geode/cache/query/internal/index/IndexedQueryNullValuesIntegrationTest.java b/geode-core/src/integrationTest/java/org/apache/geode/cache/query/internal/index/IndexedQueryNullValuesIntegrationTest.java new file mode 100644 index 0000000000..47299b5c6f --- /dev/...
[ "geode-core/src/integrationTest/java/org/apache/geode/cache/query/internal/index/IndexedQueryNullValuesIntegrationTest.java", "geode-core/src/main/java/org/apache/geode/cache/query/internal/CompiledComparison.java", "geode-core/src/main/java/org/apache/geode/cache/query/internal/CompiledIn.java", "geode-core/...
[ { "criterion": "range_comparison_with_null_literal", "weight": 5 }, { "criterion": "range_comparison_with_null_parameter", "weight": 5 }, { "criterion": "negated_like_without_wildcards", "weight": 25 }, { "criterion": "all_keys_map_index_equality_with_null_parameter", "we...
[ { "path": "grader/board_smoke.py", "encoding": "utf-8", "content": "#!/usr/bin/env python3\n\"\"\"The board's arithmetic and the grader's toolchain, asserted while the image is built.\n\nThe platform's builder has about two vCPUs and roughly half an hour for the whole build, so the build\nasserts only w...
# Apache Geode OQL: a query returns the same rows with and without an index (null values, missing map # keys, null collection elements), on the coding-template. # # Substrate: https://github.com/apache/geode at the pinned commit (history vaulted at task setup by # coding/repo.py), CPython, hud serve. Everything answer-...
Java
Apache-2.0
geode_oql_index_null_semantics_contract-1c066303
hard
5
[ 0.3, 0.32, 0.3, 0.27, 0.5 ]
0.338
0
[ "claude-fable-5-1" ]
1
0
sequelize__sequelize-sequelize-bulkcreate-ignore-duplicates
sequelize/sequelize
53359f95b47cc0ae075f4855bc8d4c97c2ee7e20
Please make your changes directly in /workspace/repo, not in a copy or a separate worktree. Bulk insert with the ignore-duplicates option returns instances that do not reflect what the statement did. Required behaviour: each returned instance reflects only what happened to its own record, whichever records of the bat...
diff --git a/packages/core/src/model.js b/packages/core/src/model.js index cb25a684a..da84d6840 100644 --- a/packages/core/src/model.js +++ b/packages/core/src/model.js @@ -2327,6 +2327,10 @@ ${associationOwner._getAssociationDebugList()}`); const modelDefinition = model.modelDefinition; + // Instances ...
diff --git a/packages/core/test/integration/model/bulk-create/ignore-duplicates.test.ts b/packages/core/test/integration/model/bulk-create/ignore-duplicates.test.ts new file mode 100644 index 000000000..69e8c1ab8 --- /dev/null +++ b/packages/core/test/integration/model/bulk-create/ignore-duplicates.test.ts @@ -0,0 +1,2...
[ "packages/core/src/model.js", "packages/core/test/integration/model/bulk-create/ignore-duplicates.test.ts" ]
[ { "criterion": "aligned_inserted", "weight": 18.75 }, { "criterion": "skipped_honest", "weight": 12.5 }, { "criterion": "expression_columns", "weight": 6.25 }, { "criterion": "skipped_timestamps", "weight": 6.25 }, { "criterion": "returning_restricted", "weigh...
[ { "path": "grader/maintainer_review.judge.json", "encoding": "utf-8", "content": "{\n \"question\": \"Review this diff against sequelize's contribution standards. The ticket asks for Model.bulkCreate with ignoreDuplicates, on dialects that return the inserted rows, to hand back instances that agree wit...
# bulkcreate_ignore_duplicates on the coding-template (rubric flavor). # # Substrate: sequelize (monorepo, v7 alpha) at the pinned base SHA, Node 22, # SQLite only, hud serve. Everything answer-key-shaped lives under /hud # (root, mode 700): the vault, the hidden graders, the pristine test tree and # built lib, the gra...
TypeScript
MIT
sequelize-bulkcreate-ignore-duplicates
hard
10
[ 0.35, 0.425, 0.425, 0.125, 0.425, 0.375, 0.375, 0.4, 0.375, 0.125 ]
0.34
0
[ "claude-fable-5" ]
1
0
alibaba__druid-druid_lenient_script
alibaba/druid
fa8dc9912637a2f729eef9f55356621fec18d40e
A bad statement loses a whole SQL script at the first error. Add a lenient whole script read: - `SQLUtils.parseStatementsLenient(String sql, DbType dbType)` returns the statements in order. What the strict call reads comes back as today; the rest comes back as `SQLUnparsedStatement`, a new public statement class: `ge...
diff --git a/core/src/main/java/com/alibaba/druid/sql/SQLUtils.java b/core/src/main/java/com/alibaba/druid/sql/SQLUtils.java index 2ad08d6..1ebbe21 100644 --- a/core/src/main/java/com/alibaba/druid/sql/SQLUtils.java +++ b/core/src/main/java/com/alibaba/druid/sql/SQLUtils.java @@ -677,6 +677,14 @@ public class SQLUtils ...
diff --git a/core/src/test/java/com/alibaba/druid/bvt/sql/LenientScriptReadTest.java b/core/src/test/java/com/alibaba/druid/bvt/sql/LenientScriptReadTest.java new file mode 100644 index 0000000..9bdc701 --- /dev/null +++ b/core/src/test/java/com/alibaba/druid/bvt/sql/LenientScriptReadTest.java @@ -0,0 +1,227 @@ +packag...
[ "core/src/main/java/com/alibaba/druid/sql/SQLUtils.java", "core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLUnparsedStatement.java", "core/src/main/java/com/alibaba/druid/sql/parser/LenientScriptParser.java", "core/src/test/java/com/alibaba/druid/bvt/sql/LenientScriptReadTest.java" ]
[ { "criterion": "clean_equals_strict", "weight": 4.17 }, { "criterion": "simple_bad", "weight": 4.17 }, { "criterion": "block_extent", "weight": 17.61 }, { "criterion": "keyword_context", "weight": 13.43 }, { "criterion": "lexer_tail", "weight": 9.27 }, { ...
[ { "path": "grader/fixtures/block_extent/block_extent.mysql.clean.sql", "encoding": "utf-8", "content": "SELECT a FROM t_1 WHERE name BETWEEN 48 AND 58;\n-- note; with semicolon 2\nSELECT c FROM t_3 WHERE c = 'END';\n -- note; with semicolon 4\nUPDATE t_5 SET b = 'begin;end' WHERE case_no = 542;\n\n\n\n...
FROM maven:3.9.9-eclipse-temurin-17 RUN apt-get update && apt-get install -y --no-install-recommends git bubblewrap ca-certificates python3 python3-pip python3-venv \ && rm -rf /var/lib/apt/lists/* # The pinned upstream commit. Cloning here rather than shipping a fork keeps the starting state auditable. ARG DRUID...
Java
Apache-2.0
druid_lenient_script
hard
8
[ 0.416, 0.85, 0.668, 0.285, 0.14, 0.14, 0.14, 0.14 ]
0.347
0
[ "claude-opus-5" ]
1
0
python-rope__rope-rope_rename_all_reexport_owners_contract-1c066303
python-rope/rope
e1f2cc229697c277e598542f1f5ec42a82930c63
You are working in a coding repository located at /workspace/repo. Please make your changes directly in /workspace/repo, not in a copy or a separate worktree. Environment: this container has about 2 vCPUs and a hard memory limit. The repository is pure Python and runs out of the tree: `python -m pytest ropetest -q` fro...
diff --git a/rope/refactor/move.py b/rope/refactor/move.py index f13aca6d..63691a08 100644 --- a/rope/refactor/move.py +++ b/rope/refactor/move.py @@ -7,10 +7,12 @@ based on inputs. from __future__ import annotations +import re import typing from typing import List, Optional, Union from rope.base import ( + ...
[ "rope/refactor/move.py", "rope/refactor/occurrences.py", "rope/refactor/rename.py", "ropetest/refactor/contractstest.py" ]
[ { "criterion": "export_list_follows_the_rename", "weight": 8 }, { "criterion": "type_constructor_names_follow_the_rename", "weight": 8 }, { "criterion": "declared_attribute_names_follow_the_rename", "weight": 8 }, { "criterion": "string_annotations_follow_and_data_stays", ...
[ { "path": "grader/harness/__init__.py", "encoding": "utf-8", "content": "\"\"\"The hidden checks: rope's own public API, run on fixtures, read as text.\n\nNothing here imports the candidate's tests or compares one run of the library\nwith another. Every expectation is a piece of text written down by han...
# rope: a rename has to carry the name's owners with it — on the coding-template. # # Substrate: https://github.com/python-rope/rope.git at the pinned commit (history # vaulted at task setup by coding/repo.py), CPython, hud serve. Everything # answer-key-shaped lives under /hud (root, mode 700): the vault, the hidden #...
Python
LGPL-3.0
rope_rename_all_reexport_owners_contract-1c066303
hard
5
[ 0.79, 0.19, 0.41, 0.27, 0.11 ]
0.354
0
[ "claude-fable-5-1" ]
1
0
igniterealtime__Openfire-openfire_userdeleting_last_owner_contract-0163de9c
igniterealtime/Openfire
c1b8d31a49f17a273aea2ccd89321d34c72fad3b
You are working in a coding repository located at /workspace/repo. Please make your changes directly in /workspace/repo, not in a copy or a separate worktree. Environment: this container has about 2 vCPUs and a hard memory limit, and a fully parallel build or test run can exhaust it. Build and test one module at a time...
diff --git a/xmppserver/src/main/java/org/jivesoftware/openfire/muc/MUCRoom.java b/xmppserver/src/main/java/org/jivesoftware/openfire/muc/MUCRoom.java index b569890..043dc8d 100644 --- a/xmppserver/src/main/java/org/jivesoftware/openfire/muc/MUCRoom.java +++ b/xmppserver/src/main/java/org/jivesoftware/openfire/muc/MUCR...
diff --git a/xmppserver/src/test/java/org/jivesoftware/openfire/muc/UserDeletionOwnershipTest.java b/xmppserver/src/test/java/org/jivesoftware/openfire/muc/UserDeletionOwnershipTest.java new file mode 100644 index 0000000..e9c3a49 --- /dev/null +++ b/xmppserver/src/test/java/org/jivesoftware/openfire/muc/UserDeletionOw...
[ "xmppserver/src/main/java/org/jivesoftware/openfire/muc/MUCRoom.java", "xmppserver/src/main/java/org/jivesoftware/openfire/muc/MultiUserChatManager.java", "xmppserver/src/main/java/org/jivesoftware/openfire/muc/spi/MUCPersistenceManager.java", "xmppserver/src/test/java/org/jivesoftware/openfire/muc/UserDeleti...
[ { "criterion": "db_path_persistent_room_keeps_an_owner", "weight": 3 }, { "criterion": "db_path_promotion_when_the_admin_already_has_a_row", "weight": 3 }, { "criterion": "in_memory_room_with_no_admin_accounts_is_taken_over_by_a_member", "weight": 9 }, { "criterion": "db_path...
[ { "path": "grader/board_smoke.py", "encoding": "utf-8", "content": "#!/usr/bin/env python3\n\"\"\"The board's arithmetic, asserted while the image is built.\n\nThe platform's builder has about two vCPUs and roughly half an hour, and the full control ladder\nis seven checkouts of a nine-hundred-file Java...
# Openfire MUC ownership on user deletion, on the coding-template. # # Substrate: https://github.com/igniterealtime/Openfire.git at the pinned commit (history vaulted # at task setup by coding/repo.py), CPython, hud serve. Everything answer-key-shaped lives under # /hud (root, mode 700): the vault, the hidden grader, t...
Java
Apache-2.0
openfire_userdeleting_last_owner_contract-0163de9c
hard
5
[ 0.29, 0.65, 0.26, 0.29, 0.29 ]
0.356
0
[ "claude-fable-5-1" ]
1
0
Zettlr__Zettlr-zettlr_clickable_keywords
Zettlr/Zettlr
a143cc1c7518def522ab2bb7d31f0794e9262da3
Please make your changes directly in /workspace/repo, not in a copy or a separate worktree. Hi, I label notes two ways. Some labels I write in the text with a hash, like #project. Others I list in the block at the top of the file. By a label I mean whatever Zettlr already lists as a tag for the note, the ones it show...
diff --git a/source/common/modules/markdown-editor/plugins/click-listeners.ts b/source/common/modules/markdown-editor/plugins/click-listeners.ts index 641baade6..f7cdb2de1 100644 --- a/source/common/modules/markdown-editor/plugins/click-listeners.ts +++ b/source/common/modules/markdown-editor/plugins/click-listeners.ts...
diff --git a/test/frontmatter-keyword-click.spec.ts b/test/frontmatter-keyword-click.spec.ts new file mode 100644 index 000000000..737fc9948 --- /dev/null +++ b/test/frontmatter-keyword-click.spec.ts @@ -0,0 +1,59 @@ +/** + * @ignore + * BEGIN HEADER + * + * Contains: Frontmatter keyword click tests + * CVM-Role...
[ "source/common/modules/markdown-editor/plugins/click-listeners.ts", "source/common/modules/markdown-editor/util/frontmatter-keyword-at.ts", "test/frontmatter-keyword-click.spec.ts" ]
[ { "criterion": "field_names", "weight": 12 }, { "criterion": "click_lands", "weight": 10 }, { "criterion": "click_gaps", "weight": 10 }, { "criterion": "quoting_and_spaces", "weight": 12 }, { "criterion": "wrapped_values", "weight": 12 }, { "criterion"...
[ { "path": "grader/failing_cases.py", "encoding": "utf-8", "content": "#!/usr/bin/env python3\n\"\"\"Print the cases a hidden suite failed, from mocha's json report.\n\nUsage: failing_cases.py <report.json>\n\nThe suites run with --reporter json, so the console log is empty and tailing it\ntold a reader ...
# zettlr_clickable_keywords on the coding-template (rubric flavor). # # Substrate: Zettlr/Zettlr at the pinned base SHA (history vaulted at task setup # by coding/repo.py), Node 22, Yarn 4 through corepack, hud serve. Everything # answer-key-shaped lives under /hud (root, mode 700): the vault, the hidden # grader, gold...
TypeScript
GPL-3.0
zettlr_clickable_keywords
hard
5
[ 0.52, 0.31, 0.22, 0.21, 0.56 ]
0.364
0
[ "claude-opus-5" ]
1
0
buchgr__bazel-remote-bazel_remote_disk_eviction_accounting_contract-afe5ea56
buchgr/bazel-remote
a69b6b5ed933234d93b489ffd216bee5bb74aa06
You are working in a coding repository located at /workspace/repo. Please make your changes directly in /workspace/repo, not in a copy or a separate worktree. Environment: this container has about 2 vCPUs and a hard memory limit, and a fully parallel build or test run can exhaust it. Build and test package by package, ...
diff --git a/cache/disk/disk.go b/cache/disk/disk.go index 4db928c..cb54739 100644 --- a/cache/disk/disk.go +++ b/cache/disk/disk.go @@ -429,7 +429,11 @@ func (c *diskCache) commit(key string, legacy bool, tempfile string, reservedSiz random: random, } - if !c.lru.Add(key, newItem) { + if reservedSize > 0 { ...
diff --git a/cache/disk/accounting_test.go b/cache/disk/accounting_test.go new file mode 100644 index 0000000..e2b40cd --- /dev/null +++ b/cache/disk/accounting_test.go @@ -0,0 +1,229 @@ +package disk + +import ( + "bytes" + "context" + "crypto/sha256" + "encoding/hex" + "io" + "math/rand" + "os" + "testing" + "time" +...
[ "cache/disk/accounting_test.go", "cache/disk/disk.go", "cache/disk/load.go", "cache/disk/lru.go" ]
[ { "criterion": "admitted_blob_survives_restart_with_the_same_limits", "weight": 27 }, { "criterion": "admitted_blob_is_kept_despite_stored_form_overhead", "weight": 27 }, { "criterion": "admitted_blob_is_kept_despite_block_rounding_under_concurrent_reservation", "weight": 9 }, { ...
[ { "path": "grader/harness/spec/cells_test.go", "encoding": "utf-8", "content": "// Cells of the hidden grader for the bazel-remote disk cache accounting task.\n//\n// Each TestCell_<name> is exactly one criterion of the board. It is copied into\n// the candidate's module as a package of its own right be...
# bazel-remote: disk cache byte accounting, on the coding-template. # # Substrate: https://github.com/buchgr/bazel-remote at the pinned base SHA (history # vaulted at task setup by coding/repo.py), a Go toolchain, hud serve. The # module under work is the repository root. Everything answer-key-shaped lives # under /hud...
Go
Apache-2.0
bazel_remote_disk_eviction_accounting_contract-afe5ea56
hard
5
[ 0.46, 0.37, 0.37, 0.28, 0.37 ]
0.37
0
[ "claude-fable-5-1" ]
1
0
terser__terser-retained_top_level_names_keep_their_values
terser/terser
317f449862b8d48756818cdcaf67c22c31ec852c
Please make your changes directly in /workspace/repo, not in a copy or a separate worktree. # Retained top-level names A top-level binding kept alive with `top_retain` must, after minification, behave as it does unminified: the same printed output, and the same value read back from the name afterwards. - A retained ...
diff --git a/lib/compress/tighten-body.js b/lib/compress/tighten-body.js --- a/lib/compress/tighten-body.js +++ b/lib/compress/tighten-body.js @@ -648,6 +648,12 @@ } } } + } + + function is_top_retained(sym) { + if (!compressor.top_retain) retu...
[ "lib/compress/inline.js", "lib/compress/tighten-body.js" ]
[ { "criterion": "called_at_its_single_use_site", "weight": 19 }, { "criterion": "read_through_a_second_binding", "weight": 18 }, { "criterion": "passed_into_a_callback_slot", "weight": 18 }, { "criterion": "retained_object_and_class_values", "weight": 13 }, { "crit...
[ { "path": "grader/.gitignore", "encoding": "utf-8", "content": ".calib/\n__pycache__/\n*.pyc\n" }, { "path": "grader/data/corpus.json", "encoding": "utf-8", "content": "{\n \"options\": {\n \"compress\": {\n \"toplevel\": true,\n \"top_retain\": [\n \"keepMe\"\n ]\n },\n \"ma...
# retained_top_level_names_keep_their_values on the coding-template. # # Substrate: terser/terser at the pinned base SHA (history vaulted at task # setup by coding/repo.py), node v22 pinned, hud serve. Everything # answer-key-shaped lives under /hud (root, mode 700): the vault, the hidden # grader with its corpus and ...
JavaScript
NOASSERTION
retained_top_level_names_keep_their_values
hard
5
[ 0.32, 0.32, 0.6, 0.32, 0.32 ]
0.376
0
[ "claude-fable-5-1" ]
1
0
ory__kratos-kratos_cleanup_stale_flows_courier_contract
ory/kratos
b86338da04a040247a07f46100a86dcfb3875909
You are working in a coding repository located at /workspace/repo. Please make your changes directly in /workspace/repo, not in a copy or a separate worktree. Environment: this container has about 2 vCPUs and a hard memory limit, and a fully parallel build or test run can exhaust it. Build and test package by package, ...
diff --git a/courier/courier_dispatcher.go b/courier/courier_dispatcher.go index 288d1f30..8e3da6f6 100644 --- a/courier/courier_dispatcher.go +++ b/courier/courier_dispatcher.go @@ -113,6 +113,13 @@ func (c *courier) DispatchQueue(ctx context.Context) (err error) { span.SetAttributes(attribute.Int("messages_count", ...
diff --git a/courier/courier_dispatcher_claims_test.go b/courier/courier_dispatcher_claims_test.go new file mode 100644 index 00000000..68735f49 --- /dev/null +++ b/courier/courier_dispatcher_claims_test.go @@ -0,0 +1,193 @@ +// Copyright © 2026 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + +package courier_test +...
[ "courier/courier_dispatcher.go", "courier/courier_dispatcher_claims_test.go", "persistence/sql/persister.go", "persistence/sql/persister_courier.go", "persistence/sql/persister_courier_cleanup_test.go" ]
[ { "criterion": "stranded_message_is_delivered_once", "weight": 6.08 }, { "criterion": "stranded_message_is_retried_then_abandoned", "weight": 6.08 }, { "criterion": "concurrent_poll_never_double_delivers", "weight": 18.17 }, { "criterion": "claimed_mail_is_not_sent_by_another...
[ { "path": "grader/harness/board.json", "encoding": "utf-8", "content": "{\n \"_note\": \"Доска пакета: ИСТОЧНИК таблицы GRADERS в tasks.py. Клетки переименовываются под задачу; законы (Σ=1.0000, ≥6 клеток, блокер ≤0.30, масса ≤0.75, гейт последним и ≥0.01) проверяет orch/gates/ast_board.py.\",\n \"block...
# kratos: courier claims and courier history cleanup, on the coding-template. # # Substrate: https://github.com/ory/kratos at the pinned base SHA (history # vaulted at task setup by coding/repo.py), a Go toolchain, hud serve. The # module under work is the repository root. Everything answer-key-shaped lives # under /hu...
Go
Apache-2.0
kratos_cleanup_stale_flows_courier_contract
hard
5
[ 0.273, 0.273, 0.273, 0.818, 0.273 ]
0.382
0
[ "claude-fable-5-1" ]
1
0
dotnet__Open-XML-SDK-open_xml_sdk_deletepart_refs_contract-1c066303
dotnet/Open-XML-SDK
431ab05cf160248cc3885a4a766026d4f8243792
You are working in a coding repository located at /workspace/repo. Please make your changes directly in /workspace/repo, not in a copy or a separate worktree. Environment: this container has about 2 vCPUs and a hard memory limit, and a fully parallel build of every target framework can exhaust it. Building and testing ...
diff --git a/src/DocumentFormat.OpenXml.Framework/Features/StrictNamespaceExtensions.cs b/src/DocumentFormat.OpenXml.Framework/Features/StrictNamespaceExtensions.cs index 69e37bc..ff549f5 100644 --- a/src/DocumentFormat.OpenXml.Framework/Features/StrictNamespaceExtensions.cs +++ b/src/DocumentFormat.OpenXml.Framework/F...
diff --git a/test/DocumentFormat.OpenXml.Packaging.Tests/PartIdentityAndRelationshipIdTests.cs b/test/DocumentFormat.OpenXml.Packaging.Tests/PartIdentityAndRelationshipIdTests.cs new file mode 100644 index 0000000..067c045 --- /dev/null +++ b/test/DocumentFormat.OpenXml.Packaging.Tests/PartIdentityAndRelationshipIdTest...
[ "src/DocumentFormat.OpenXml.Framework/Features/StrictNamespaceExtensions.cs", "src/DocumentFormat.OpenXml.Framework/Packaging/ExtendedPart.cs", "src/DocumentFormat.OpenXml.Framework/Packaging/OpenXmlPartContainer.cs", "src/DocumentFormat.OpenXml.Framework/Packaging/PackageFeatureCollection.cs", "test/Docume...
[ { "criterion": "removing_a_shared_part_from_one_owner_keeps_it_for_the_others", "weight": 10 }, { "criterion": "changing_a_part_id_to_a_taken_id_is_refused", "weight": 9 }, { "criterion": "adding_a_part_under_a_taken_id_is_refused", "weight": 9 }, { "criterion": "relating_a_p...
[ { "path": "grader/harness/run_grading.sh", "encoding": "utf-8", "content": "#!/usr/bin/env bash\n# Hidden grading for the Open XML SDK part-identity / relationship-id task — ONE FUNCTION PER CRITERION.\n#\n# Usage: run_grading.sh <criterion> [budget_seconds]\n#\n# WHAT IS MEASURED, AND WHERE IT COMES FR...
# Open XML SDK: part identity and relationship ids, on the coding-template. # # Substrate: https://github.com/dotnet/Open-XML-SDK at the pinned base SHA (history vaulted at task setup by # coding/repo.py), the .NET 10 SDK with the .NET 8 runtime beside it (the test projects target net8.0;net10.0), # hud serve. Everythi...
C#
MIT
open_xml_sdk_deletepart_refs_contract-1c066303
hard
5
[ 0.48, 0.39, 0.39, 0.39, 0.3 ]
0.39
0
[ "claude-fable-5-1" ]
1
0
dgraph-io__badger-journal_recovery_after_unclean_stop
dgraph-io/badger
2a001d466f6b71a917319a1db41f99860e16e269
Please make your changes directly in /workspace/repo, not in a copy or a separate worktree. Environment: this container has about 2 vCPUs and a hard memory limit, and a fully parallel build or test run (especially under `-race`) can exhaust it. Build and test package by package, e.g. `go test -p 1 ./...`. # What the j...
diff --git a/db.go b/db.go index 9572203..cf8e0f4 100644 --- a/db.go +++ b/db.go @@ -341,6 +341,14 @@ func Open(opt Options) (*DB, error) { db.closers.updateSize = z.NewCloser(1) go db.updateSize(db.closers.updateSize) + // The value log files must be known before the memtables are replayed: + // an entry in the ...
diff --git a/journal_recovery_test.go b/journal_recovery_test.go new file mode 100644 index 0000000..0ad986f --- /dev/null +++ b/journal_recovery_test.go @@ -0,0 +1,634 @@ +/* + * SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com> + * SPDX-License-Identifier: Apache-2.0 + */ + +package badger + +import ( + ...
[ "db.go", "journal_recovery_test.go", "memtable.go", "txn.go", "value.go" ]
[ { "criterion": "torn_value_log_tail_keeps_transactions_whole", "weight": 25 }, { "criterion": "mixed_version_transaction_whole_after_tear", "weight": 19 }, { "criterion": "history_comes_back_as_a_prefix", "weight": 16 }, { "criterion": "writes_after_recovery_win", "weight...
[ { "path": "grader/driver/build_driver.sh", "encoding": "utf-8", "content": "#!/usr/bin/env bash\n# Build the driver against a badger tree.\n# build_driver.sh <badger-tree> <out-binary> [<build-dir>]\n# The module is built OUTSIDE the tree it points at, so nothing the driver needs\n# ever appears insid...
# journal_recovery_after_unclean_stop on the coding-template. # # Substrate: dgraph-io/badger at the pinned base SHA (history vaulted at task # setup by coding/repo.py), Go 1.24 toolchain, hud serve. Everything answer-key- # shaped lives under /hud (root, mode 700): the vault, the hidden grader, the # oracle it builds ...
Go
Apache-2.0
journal_recovery_after_unclean_stop
medium
5
[ 0.6, 0.1, 0.1, 0.6, 0.6 ]
0.4
0
[ "claude-fable-5-1" ]
1
0
pomerium__pomerium-pomerium_route_order_contract
pomerium/pomerium
fb62b0104774ca50c497275164b4bbdba915ba61
You are working in a coding repository located at /workspace/repo. Please make your changes directly in /workspace/repo, not in a copy or a separate worktree. Environment: this container has about 2 vCPUs and a hard memory limit, and a fully parallel build or test run can exhaust it. Build and test package by package, ...
diff --git a/config/envoyconfig/route_configurations.go b/config/envoyconfig/route_configurations.go index 2aa0752..c43de28 100644 --- a/config/envoyconfig/route_configurations.go +++ b/config/envoyconfig/route_configurations.go @@ -85,12 +85,18 @@ func (b *Builder) buildMainRouteConfiguration( return nil, err } ...
diff --git a/config/envoyconfig/route_order_test.go b/config/envoyconfig/route_order_test.go new file mode 100644 index 0000000..85148c2 --- /dev/null +++ b/config/envoyconfig/route_order_test.go @@ -0,0 +1,56 @@ +package envoyconfig + +import ( + "testing" + + envoy_config_route_v3 "github.com/envoyproxy/go-control-pl...
[ "config/envoyconfig/route_configurations.go", "config/envoyconfig/route_order_test.go", "config/envoyconfig/routes.go", "config/from.go", "config/identity.go", "config/options.go", "config/route_order_test.go" ]
[ { "criterion": "explicit_port_route_serves_only_that_port", "weight": 28 }, { "criterion": "regex_priority_settles_routes_that_name_the_port_in_any_case", "weight": 10 }, { "criterion": "wildcard_route_serves_host_with_own_routes_in_any_case", "weight": 15.25 }, { "criterion"...
[ { "path": "grader/harness/cells/cells_test.go", "encoding": "utf-8", "content": "// Package zzgradercells is the hidden specification of the route-order task.\n//\n// It is copied into the candidate's module at grading time, run once, and\n// removed. Every cell writes exactly one line `CELL=<name> PASS...
# pomerium route order, on the coding-template. # # Substrate: https://github.com/pomerium/pomerium at the pinned base SHA (history # vaulted at task setup by coding/repo.py), a Go toolchain, the Envoy binary the # repository embeds, hud serve. Everything answer-key-shaped lives under /hud # (root, mode 700): the vault...
Go
Apache-2.0
pomerium_route_order_contract
medium
5
[ 0.39, 1, 0.39, 0.11, 0.11 ]
0.4
0.2
[ "claude-fable-5-1" ]
1
0
BabylonJS__Babylon.js-babylonjs_scene_remove_owner_refs_contract-382616f8
BabylonJS/Babylon.js
5c0c12d93845c42f792030c537c4579e00190d47
You are working in a coding repository located at /workspace/repo. Please make your changes directly in /workspace/repo, not in a copy or a separate worktree. Environment: this container has about 2 vCPUs and a hard memory limit, and a fully parallel test run can exhaust it. The repository is a monorepo of npm workspac...
diff --git a/packages/dev/core/src/Materials/Textures/Procedurals/proceduralTextureSceneComponent.ts b/packages/dev/core/src/Materials/Textures/Procedurals/proceduralTextureSceneComponent.ts index 9eaacae..657ec7b 100644 --- a/packages/dev/core/src/Materials/Textures/Procedurals/proceduralTextureSceneComponent.ts +++ b...
diff --git a/packages/dev/core/test/unit/Scene/babylon.scene.removeFromScene.test.ts b/packages/dev/core/test/unit/Scene/babylon.scene.removeFromScene.test.ts new file mode 100644 index 0000000..c8f214f --- /dev/null +++ b/packages/dev/core/test/unit/Scene/babylon.scene.removeFromScene.test.ts @@ -0,0 +1,455 @@ +import...
[ "packages/dev/core/src/Materials/Textures/Procedurals/proceduralTextureSceneComponent.ts", "packages/dev/core/src/scene.pure.ts", "packages/dev/core/test/unit/Scene/babylon.scene.removeFromScene.test.ts" ]
[ { "criterion": "removed_mesh_leaves_the_shadow_map", "weight": 3 }, { "criterion": "unloaded_container_leaves_every_pass", "weight": 3 }, { "criterion": "unloaded_camera_render_target_stops_refreshing", "weight": 3 }, { "criterion": "removed_procedural_texture_stops_regenerat...
[ { "path": "grader/harness/cells.test.ts", "encoding": "utf-8", "content": "// Hidden cells for the \"taking things out of the scene\" task. One `it` per\n// criterion; each writes exactly one line `CELL=<name> PASS|FAIL <observation>`\n// to $BJS_CELL_REPORT. Everything is driven through the public API ...
# Babylon.js — taking things out of the scene leaves them in its passes, on the coding-template. # # Substrate: https://github.com/BabylonJS/Babylon.js at the pinned commit (history # vaulted at task setup by coding/repo.py), Node 22 + npm workspaces, CPython, # hud serve. Everything answer-key-shaped lives under /hud ...
TypeScript
Apache-2.0
babylonjs_scene_remove_owner_refs_contract-382616f8
medium
5
[ 0.58, 0.3, 0.39, 0.33, 0.42 ]
0.404
0
[ "claude-fable-5-1" ]
1
null
alibaba__hooks-ahooks_request_cache_races
alibaba/hooks
39a07ee8385cc61d080913bef4655e29a8765f0c
Please make your changes directly in /workspace/repo, not in a copy or a separate worktree. A paged list can show the wrong page and lose previously loaded pages when pages are changed while data is still loading. For example: * Open page 1, then quickly open page 2. Page 1 can be missing from the saved data even tho...
diff --git a/packages/hooks/src/useRequest/src/Fetch.ts b/packages/hooks/src/useRequest/src/Fetch.ts index 2039b2c9..3b44e1ff 100644 --- a/packages/hooks/src/useRequest/src/Fetch.ts +++ b/packages/hooks/src/useRequest/src/Fetch.ts @@ -82,6 +82,7 @@ export default class Fetch<TData, TParams extends any[]> { const...
diff --git a/packages/hooks/src/useRequest/__tests__/useCachePlugin.spec.tsx b/packages/hooks/src/useRequest/__tests__/useCachePlugin.spec.tsx index 2ab551c7..3f8f5814 100644 --- a/packages/hooks/src/useRequest/__tests__/useCachePlugin.spec.tsx +++ b/packages/hooks/src/useRequest/__tests__/useCachePlugin.spec.tsx @@ -1...
[ "packages/hooks/src/useRequest/__tests__/useCachePlugin.spec.tsx", "packages/hooks/src/useRequest/src/Fetch.ts", "packages/hooks/src/useRequest/src/plugins/useCachePlugin.ts", "packages/hooks/src/useRequest/src/types.ts", "packages/hooks/src/useRequest/src/utils/cache.ts", "packages/hooks/src/useRequest/s...
[ { "criterion": "skipped_page_lands_last_saved", "weight": 8 }, { "criterion": "answers_out_of_order", "weight": 8 }, { "criterion": "late_page_kept_for_reader", "weight": 8 }, { "criterion": "skipped_page_saved", "weight": 3 }, { "criterion": "late_shown_page_save...
[ { "path": "grader/maintainer_review.judge.json", "encoding": "utf-8", "content": "{\n \"question\": \"Answer each question with yes or no, based only on the code this diff adds or changes in the ahooks repository. Answer yes when the diff contains what the question describes, whatever it is named or wh...
# ahooks_request_cache_races on the coding-template (rubric flavor). # # Substrate: alibaba/hooks at the pinned base SHA (history vaulted at task # setup by coding/repo.py), Node 22, pnpm 10.12.4 via corepack, hud serve. # Everything answer-key-shaped lives under /hud (root, mode 700): the vault, # the hidden grader, g...
TypeScript
MIT
ahooks_request_cache_races
medium
5
[ 0.389, 0.453, 0.368, 0.389, 0.442 ]
0.408
0
[ "claude-opus-5" ]
1
0
go-mysql-org__go-mysql-go_mysql_mariadb_compressed_columns
go-mysql-org/go-mysql
8c39e2d302695a4f17769fc009797cd1476056d9
You are working in a coding repository located at /workspace/repo. Please make your changes directly in /workspace/repo, not in a copy or a separate worktree. This sandbox is offline: no package registry, no module proxy, no upstream sources — solve within the repository. The Go module cache already holds every depende...
diff --git a/mysql/const.go b/mysql/const.go index a602ab3..619626e 100644 --- a/mysql/const.go +++ b/mysql/const.go @@ -199,6 +199,16 @@ const ( MYSQL_TYPE_GEOMETRY ) +// MariaDB-only column types, emitted in row-based binlog events for columns +// that use storage-engine-independent column compression (MariaDB 1...
diff --git a/mysql/util_test.go b/mysql/util_test.go index 4ae9b01..756e06d 100644 --- a/mysql/util_test.go +++ b/mysql/util_test.go @@ -1,6 +1,9 @@ package mysql import ( + "bytes" + "compress/flate" + "compress/zlib" "testing" "time" @@ -132,3 +135,84 @@ func TestToBinaryDateTime(t *testing.T) { }) } ...
[ "mysql/const.go", "mysql/util.go", "mysql/util_test.go", "replication/row_event.go", "replication/row_event_compressed_columns_test.go", "replication/testdata/mariadb-10.11-compressed-columns.binlog", "replication/testdata/mariadb-11.8-compressed-columns-log-bin-compress.binlog", "replication/testdata...
[ { "criterion": "absent_and_verbatim_rungs", "weight": 11 }, { "criterion": "length_width_ladder", "weight": 14 }, { "criterion": "wrapper_form_ladder", "weight": 14 }, { "criterion": "column_family_ladder", "weight": 12 }, { "criterion": "metadata_mode_ladder", ...
[ { "path": "grader/README.md", "encoding": "utf-8", "content": "# Grader — `go_mysql_mariadb_compressed_columns`\n\nExecution- and byte-identity-only grading for the go-mysql MariaDB\ncompressed-columns task. No LLM judge anywhere: every verdict is a process exit\ncode or a comparison against bytes a rea...
# go_mysql_mariadb_compressed_columns on the coding-template. # # Substrate: go-mysql-org/go-mysql at the pinned base SHA (history vaulted at # task setup by coding/repo.py), Go toolchain, hud serve. Everything answer-key- # shaped lives under /hud (root, mode 700): the vault, the hidden grader, the # frozen corpus, th...
Go
MIT
go_mysql_mariadb_compressed_columns
medium
5
[ 1, 1, 0, 0, 0.044 ]
0.409
0.4
[ "claude-fable-5-1" ]
1
0
sfackler__rust-postgres-shared_handle_abandoned_operations
sfackler/rust-postgres
1084ca8f5b5302e161892f2fa40abf71b4060c10
You are working in a coding repository located at /workspace/repo. Please make your changes directly in /workspace/repo, not in a copy or a separate worktree. Environment: this container has about 2 vCPUs and a hard memory limit, and a fully parallel build can exhaust it; cargo is already configured to use two jobs. Bu...
diff --git a/tokio-postgres/src/bind.rs b/tokio-postgres/src/bind.rs index 06cd14d2..ac1a4f90 100644 --- a/tokio-postgres/src/bind.rs +++ b/tokio-postgres/src/bind.rs @@ -10,6 +10,34 @@ use std::sync::atomic::{AtomicUsize, Ordering}; static NEXT_ID: AtomicUsize = AtomicUsize::new(0); +/// Closes the named portal o...
[ "tokio-postgres/src/bind.rs", "tokio-postgres/src/client.rs", "tokio-postgres/src/prepare.rs", "tokio-postgres/src/transaction.rs" ]
[ { "criterion": "abandoned_rollback_point_not_left_set", "weight": 13.42 }, { "criterion": "rule_existing_teardown_kept", "weight": 25 }, { "criterion": "same_with_the_outer_transaction_intact", "weight": 6.7 }, { "criterion": "same_one_level_down", "weight": 5.96 }, {...
[ { "path": "grader/harness/board.json", "encoding": "utf-8", "content": "{\n \"version\": \"board-v4\",\n \"blocker_cap\": \"0.6000\",\n \"cells\": [\n { \"name\": \"abandoned_rollback_point_not_left_set\", \"kind\": \"blocker\", \"weight\": \"0.1342\" },\n { \"name\": \"rule_exis...
# shared_handle_abandoned_operations on the coding-template. # # Substrate: sfackler/rust-postgres at the pinned base SHA (history vaulted at # task setup by coding/repo.py), the Rust toolchain the workspace declares, a # PostgreSQL 18 server set up the way the repository's own docker-compose file # sets one up, and hu...
Rust
Apache-2.0
shared_handle_abandoned_operations
medium
5
[ 0.417, 0.417, 0.417, 0.417, 0.417 ]
0.417
0
[ "claude-fable-5-1" ]
1
0
celery__celery-celery_retry_expires_countdown_contract
celery/celery
9b1895ff355d5cf99377dbd70841b511efb4885b
You are working in a coding repository located at /workspace/repo. Please make your changes directly in /workspace/repo, not in a copy or a separate worktree. Environment: this container has about 2 vCPUs and a hard memory limit, and a fully parallel test run can exhaust it. Run tests in one process, e.g. `python -m py...
diff --git a/celery/app/task.py b/celery/app/task.py index ada306e..619d0fb 100644 --- a/celery/app/task.py +++ b/celery/app/task.py @@ -1,6 +1,8 @@ """Task implementation: request context and the task base class.""" +import numbers import sys import types +from datetime import datetime, timedelta from billiard.e...
diff --git a/t/unit/tasks/test_retry_expiry_deadline.py b/t/unit/tasks/test_retry_expiry_deadline.py new file mode 100644 index 0000000..8a0c8b3 --- /dev/null +++ b/t/unit/tasks/test_retry_expiry_deadline.py @@ -0,0 +1,104 @@ +"""The expiry given by the original call is a fixed deadline for its retries.""" +from dateti...
[ "celery/app/task.py", "celery/worker/strategy.py", "t/unit/tasks/test_retry_expiry_deadline.py", "t/unit/worker/test_strategy_expiry_deadline.py" ]
[ { "criterion": "retry_past_deadline_is_not_sent", "weight": 9 }, { "criterion": "retry_cannot_move_or_clear_deadline", "weight": 7 }, { "criterion": "eager_run_honours_deadline", "weight": 7 }, { "criterion": "retry_due_by_countdown_past_deadline_is_not_sent", "weight": 7...
[ { "path": "grader/cells/spec_cells.py", "encoding": "utf-8", "content": "#!/usr/bin/env python3\n\"\"\"Held-out specification: the expiry of a task call is a fixed deadline.\n\n spec_cells.py all [--repeat N] every cell, each in a fresh interpreter, N times\n spec_cells.py cell <name> ...
# celery: an expiry is a fixed deadline for retries, deliveries and eager runs. # # Substrate: celery/celery at the pinned commit, CPython 3.12, hud serve. # Everything answer-key-shaped lives under /hud (root, mode 700): the vault, the # hidden grader and its held-out program, the pristine base checkout, gold.diff # a...
Python
NOASSERTION
celery_retry_expires_countdown_contract
medium
5
[ 0.24, 0.24, 0.24, 0.74, 0.67 ]
0.426
0
[ "claude-fable-5-1" ]
1
0
colinhacks__zod-zod-json-schema-target-legality
colinhacks/zod
0cd3af5e9f50ad11bbcd4407a46a21b8848ba574
Work directly in /workspace/repo. It is a pnpm workspace whose dependencies are already installed, and the library runs from TypeScript source, so there is no build step. The test runner is vitest and it runs offline through the `zod-vitest` command on PATH: `zod-vitest run --project zod <path> --typecheck.enabled=fals...
diff --git a/packages/zod/src/v4/core/json-schema-processors.ts b/packages/zod/src/v4/core/json-schema-processors.ts index 69ec446..fb90718 100644 --- a/packages/zod/src/v4/core/json-schema-processors.ts +++ b/packages/zod/src/v4/core/json-schema-processors.ts @@ -277,14 +277,17 @@ export const dateProcessor: Processor...
[ "packages/zod/src/v4/core/json-schema-processors.ts", "packages/zod/src/v4/core/to-json-schema.ts" ]
[ { "criterion": "g1_catch_value_degrades", "weight": 4 }, { "criterion": "g6_unencodable_default_degrades", "weight": 4 }, { "criterion": "g5_default_value_conforms", "weight": 11 }, { "criterion": "g2_empty_positional_list", "weight": 9 }, { "criterion": "g2_empty...
[ { "path": "grader/nocheck_scan.cjs", "encoding": "utf-8", "content": "// Report every package source file whose type check THIS COMPILER has been told to switch off.\n//\n// node nocheck_scan.cjs <typescript-entry> <root> <dir> [dir ...]\n//\n// Exit 0 clean, 1 at least one file carries a `@ts-nocheck...
# HUD image for the zod JSON Schema conversion target-legality task. # # Layer order matters: the expensive repository layers (fetch, shim, dependency install) come first # so that grader/prompt edits rebuild in seconds. FROM node:24-bookworm@sha256:64af3819f9275802414d7cdc38c27e9d82bd564dec4d4da87d008255d36c63b4 ARG ...
TypeScript
MIT
zod-json-schema-target-legality
medium
5
[ 0.48, 0.39, 0.39, 0.48, 0.39 ]
0.426
0
[ "gpt-6-astra" ]
1
0
pallets__click-click-help-defaults
pallets/click
06b2a678741131fd577ce170e23e5ca0aeba0309
Please make your changes directly in /workspace/repo, not in a copy or a separate worktree. The [default: ...] text that an option's help shows is wrong for a multi-valued default. A single default is rendered by rules that make it readable and typeable: an Enum member is shown by its name, an empty string is shown as...
diff --git a/CHANGES.md b/CHANGES.md index 8853860..4976b6c 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -11,6 +11,10 @@ Unreleased Unreleased +- The `[default: ...]` shown in help for an option with `multiple=True` + renders each value the way a single value is rendered: `Enum` members by + name, empty strings a...
diff --git a/tests/test_help_defaults_multiple.py b/tests/test_help_defaults_multiple.py new file mode 100644 index 0000000..cb6eb77 --- /dev/null +++ b/tests/test_help_defaults_multiple.py @@ -0,0 +1,69 @@ +import enum + +import click +from click.testing import CliRunner + + +class Color(enum.Enum): + Red = "r" + ...
[ "CHANGES.md", "src/click/_utils.py", "src/click/core.py", "src/click/termui.py", "tests/test_help_defaults_multiple.py" ]
[ { "criterion": "multi_enum", "weight": 18.75 }, { "criterion": "multi_empty_string", "weight": 12.5 }, { "criterion": "nested_values", "weight": 6.25 }, { "criterion": "prompt_rendering", "weight": 12.5 }, { "criterion": "untouched_paths", "weight": 12.5 }, ...
[ { "path": "grader/maintainer_review.judge.json", "encoding": "utf-8", "content": "{\n \"question\": \"Review this diff against Click's contribution standards. The ticket asks that the [default: ...] help text of an option with a multi-valued default render each value the way a single value is rendered ...
# help_defaults on the coding-template (rubric flavor). # # Substrate: click at the pinned base SHA (history vaulted at task # setup by coding/repo.py), Python 3.12, pure Python, hud serve. Everything # answer-key-shaped lives under /hud (root, mode 700): the vault, the hidden # graders, pristine copies of src/ and tes...
Python
BSD-3-Clause
click-help-defaults
medium
5
[ 0.45, 0.45, 0.35, 0.45, 0.45 ]
0.43
0
[ "claude-opus-5" ]
1
0
tsileo__microblog.pub-microblogpub_deleted_object_resurrect_lookup_contract-382616f8
tsileo/microblog.pub
9c8693ea555d6363c8e56798df640489fa6b4f44
You are working in a coding repository located at /workspace/repo. Please make your changes directly in /workspace/repo, not in a copy or a separate worktree. Environment: this container has about 2 vCPUs and a hard memory limit, so a fully parallel run of anything can exhaust it; keep test runs in one process. The app...
diff --git a/app/admin.py b/app/admin.py index 226b193..7205322 100644 --- a/app/admin.py +++ b/app/admin.py @@ -140,9 +140,19 @@ async def get_lookup( status_code=302, ) - actors_metadata = await get_actors_metadata( - db_session, [ap_ob...
diff --git a/tests/test_deleted_objects.py b/tests/test_deleted_objects.py new file mode 100644 index 0000000..eeb7b38 --- /dev/null +++ b/tests/test_deleted_objects.py @@ -0,0 +1,414 @@ +from uuid import uuid4 + +import httpx +import pytest +import respx +from fastapi.testclient import TestClient +from sqlalchemy impo...
[ "app/admin.py", "app/boxes.py", "tests/test_deleted_objects.py" ]
[ { "criterion": "r1_bookmark_does_not_bring_back_a_deleted_post", "weight": 4.1 }, { "criterion": "r2_boost_arriving_after_delete_does_not_bring_it_back", "weight": 3 }, { "criterion": "r3_boosts_already_on_stream_leave_with_the_post", "weight": 3 }, { "criterion": "r4_strange...
[ { "path": "grader/harness/cells.py", "encoding": "utf-8", "content": "#!/usr/bin/env python3\n\"\"\"Run the held-out checks (cells_test.py) against one candidate tree.\n\n cells.py --tree <candidate> --base <pristine checkout> --work <scratch dir> \\\n [--repeat 2] [--timeout 420]\n\nWhat...
# microblog.pub — a post its author deleted must stay deleted — on the coding-template. # # Substrate: https://github.com/tsileo/microblog.pub at the pinned commit (history # vaulted at task setup by coding/repo.py), CPython 3.11, hud serve. Everything # answer-key-shaped lives under /hud (root, mode 700): the vault, t...
Python
AGPL-3.0
microblogpub_deleted_object_resurrect_lookup_contract-382616f8
medium
5
[ 0.323, 0.413, 0.413, 0.323, 0.683 ]
0.431
0
[ "claude-fable-5-1" ]
1
0
jelmer__xandikos-xandikos_itip_recurrence_id_override_contract-c6aa163a
jelmer/xandikos
9be669bd234367177f03ed88110ec28df2183631
You are working in a coding repository located at /workspace/repo. Please make your changes directly in /workspace/repo, not in a copy or a separate worktree. Environment: this container has about 2 vCPUs and a hard memory limit, and a fully parallel build or test run can exhaust it. Build and test one Gradle module at...
diff --git a/xandikos/icalendar.py b/xandikos/icalendar.py index 3bc8aea..d3c8e03 100644 --- a/xandikos/icalendar.py +++ b/xandikos/icalendar.py @@ -2183,7 +2183,17 @@ def _expand_rrule_component( start: datetime | None = None, end: datetime | None = None, existing: dict[str | date | datetime, Component]...
diff --git a/tests/test_itip_per_instance.py b/tests/test_itip_per_instance.py new file mode 100644 index 0000000..f562977 --- /dev/null +++ b/tests/test_itip_per_instance.py @@ -0,0 +1,769 @@ +# Xandikos +# Copyright (C) 2016-2017 Jelmer Vernooij <jelmer@jelmer.uk>, et al. +# +# This program is free software; you can r...
[ "tests/test_itip_per_instance.py", "xandikos/icalendar.py", "xandikos/itip.py", "xandikos/web.py" ]
[ { "criterion": "one_occurrence_is_not_the_whole_series", "weight": 4.5 }, { "criterion": "cancel_names_one_occurrence_of_the_series", "weight": 4.5 }, { "criterion": "reply_answers_for_one_occurrence", "weight": 4.5 }, { "criterion": "the_same_instant_written_differently", ...
[ { "path": "grader/cells/spec_cells.py", "encoding": "utf-8", "content": "\"\"\"Held-out program: one cell per criterion for the xandikos per-instance iTIP task.\n\nNever in the workspace. Imports the candidate's own xandikos out of REPO_DIR and\ndrives it through its public surface: principals created t...
# xandikos: a scheduling message that names one occurrence of a series. # # Substrate: jelmer/xandikos at the pinned commit, CPython 3.12, hud serve. # Everything answer-key-shaped lives under /hud (root, mode 700): the vault, the # hidden grader and its held-out program, the pristine base checkout, gold.diff # and the...
Python
GPL-3.0
xandikos_itip_recurrence_id_override_contract-c6aa163a
medium
5
[ 0.325, 0.325, 0.325, 0.325, 1 ]
0.46
0.2
[ "claude-fable-5-1" ]
1
0
Automattic__mongoose-mongoose_syncindexes_contract-97c2a76f
Automattic/mongoose
396a2a674173b12d570a9dca0e919197a212bc1d
You are working in a coding repository located at /workspace/repo. Please make your changes directly in /workspace/repo, not in a copy or a separate worktree. The toolchain and every dependency are already installed (the package cache is warm), so nothing needs to be downloaded to build or run the tests. Use the tools...
diff --git a/lib/helpers/indexes/applySchemaCollation.js b/lib/helpers/indexes/applySchemaCollation.js index 464210e..f58d0ea 100644 --- a/lib/helpers/indexes/applySchemaCollation.js +++ b/lib/helpers/indexes/applySchemaCollation.js @@ -3,11 +3,17 @@ const isTextIndex = require('./isTextIndex'); module.exports = fu...
diff --git a/test/model.syncIndexes.options.test.js b/test/model.syncIndexes.options.test.js new file mode 100644 index 0000000..0b24e8d --- /dev/null +++ b/test/model.syncIndexes.options.test.js @@ -0,0 +1,187 @@ +'use strict'; + +const start = require('./common'); + +const assert = require('assert'); + +const mongoos...
[ "lib/helpers/indexes/applySchemaCollation.js", "lib/helpers/indexes/getRelatedIndexes.js", "lib/helpers/indexes/isIndexEqual.js", "lib/model.js", "test/model.syncIndexes.options.test.js" ]
[ { "criterion": "text_index_on_collated_schema_syncs", "weight": 6.5 }, { "criterion": "geo2d_index_on_collated_schema_syncs", "weight": 6.5 }, { "criterion": "text_index_added_to_collated_collection_syncs", "weight": 6.5 }, { "criterion": "text_index_weights_on_collated_schem...
[ { "path": "grader/harness/contract_cells.cjs", "encoding": "utf-8", "content": "'use strict';\n/*\n * The hidden contract cells.\n *\n * Copied into the candidate's checkout at grading time (never present in the\n * workspace), run by run_grading.sh, printing one `CELL=<name> PASS|FAIL` line\n * per cel...
# mongoose: index synchronization contract, on the coding-template. # # Substrate: https://github.com/Automattic/mongoose at the pinned commit # (history vaulted at task setup by coding/repo.py), Node 22, a pinned mongod, # hud serve. Everything answer-key-shaped lives under /hud (root, mode 700): the # vault, the hidd...
JavaScript
MIT
mongoose_syncindexes_contract-97c2a76f
medium
5
[ 0.37, 0.48, 0.48, 0.545, 0.48 ]
0.471
0
[ "claude-fable-5-1" ]
1
0