Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/claw-bench/claw-bench
/ functions
Functions
7,113 in github.com/claw-bench/claw-bench
⨍
Functions
7,113
◇
Types & classes
369
↳
Endpoints
89
↓ 709 callers
Method
get
(self, user_id: int)
tasks/multimodal/mm-007-architecture-doc/environment/data/project/repository.py:17
↓ 527 callers
Method
get
Look up a cached result. Returns None on miss.
src/claw_bench/core/cache.py:72
↓ 277 callers
Method
append
Add an entry to the trace.
src/claw_bench/core/trace.py:27
↓ 52 callers
Method
execute
Execute all pipeline steps on the input data. Applies each transformation step in sequence. If any step raises an exception, the pipe
tasks/multimodal/mm-003-code-doc-extraction/environment/data/data_processor.py:90
↓ 42 callers
Function
showMsg
(m: string)
leaderboard/src/app/admin/page.tsx:222
↓ 40 callers
Method
add
Return the sum of *a* and *b*.
tasks/code-assistance/code-001-write-unittest/environment/data/calculator.py:7
↓ 33 callers
Function
headers
Load and return the headers.json contents.
tasks/email/eml-001-parse-email-headers/verifier/test_output.py:16
↓ 27 callers
Function
run_single_task
Execute a single task: prepare workspace -> send to agent -> verify. This runs locally (no Docker) for simplicity. The agent adapter handles
src/claw_bench/core/runner.py:118
↓ 25 callers
Function
Field
({ label, value, onChange, type = "text", half = false }: { label: string; value: string | number; onChange:
leaderboard/src/app/admin/page.tsx:119
↓ 24 callers
Function
_make_result
( task_id: str = "task-1", passed: bool = True, score: float = 1.0, )
tests/unit/test_statistics.py:18
↓ 23 callers
Function
cls
(score: number)
leaderboard/src/app/compare/CompareContent.tsx:150
↓ 21 callers
Function
_find_element
Find an element matching the given criteria.
tasks/web-browsing/web-010-html-diff-report/verifier/test_output.py:54
↓ 20 callers
Function
_result
(task_id: str, score: float, passed: bool = True)
tests/unit/test_leaderboard_export.py:17
↓ 19 callers
Function
package_results
Create summary.json and manifest.sha256 inside *results_dir*. Returns the path to the manifest file.
src/claw_bench/submission/packager.py:21
↓ 18 callers
Function
_load
(workspace)
tasks/memory/mem-015-timeline-reconstructor/verifier/test_output.py:13
↓ 18 callers
Function
check_item
(key, compliant, explanation=None)
tasks/regulatory-compliance/reg-004-hipaa-assessment/verifier/test_output.py:48
↓ 16 callers
Function
compute_benchmark_statistics
Compute aggregate statistics for a full benchmark run. Parameters ---------- all_results: All task results across all runs. t
src/claw_bench/core/statistics.py:113
↓ 16 callers
Function
load_all_tasks
Scan *tasks_root* for task directories and return matching tasks. The tasks directory is organized as:: tasks/<domain>/<task-id>/task.to
src/claw_bench/core/task_loader.py:126
↓ 15 callers
Function
_load
(workspace)
tasks/memory/mem-013-entity-relationship-tracker/verifier/test_output.py:13
↓ 15 callers
Method
_make_app
(self)
tests/unit/test_validate_cli.py:152
↓ 15 callers
Function
_parse_stdout
Best-effort parse of pytest text output when JSON is unavailable.
src/claw_bench/core/verifier.py:160
↓ 15 callers
Method
setup
(self, config: dict)
src/claw_bench/adapters/dryrun.py:32
↓ 15 callers
Method
setup
(self, config: dict)
tests/unit/test_registry.py:18
↓ 14 callers
Function
_load
(workspace)
tasks/memory/mem-014-preference-learning/verifier/test_output.py:13
↓ 14 callers
Function
_load
(workspace)
tasks/memory/mem-012-fact-extraction-and-update/verifier/test_output.py:13
↓ 14 callers
Function
compute_consistency
Compute consistency metrics from variant test results. Args: variant_results: Maps variant_id -> list of boolean pass/fail results.
src/claw_bench/core/consistency.py:23
↓ 14 callers
Function
useI18n
()
leaderboard/src/app/i18n.tsx:617
↓ 13 callers
Function
_make_result
(task_id: str, score: float, passed: bool = True)
tests/unit/test_scorer_extended.py:85
↓ 13 callers
Function
_make_task
Create a minimal task.toml in the given directory.
tests/unit/test_list_cli.py:6
↓ 13 callers
Method
append_message
Convenience helper that builds a ``TraceEntry`` with the current timestamp.
src/claw_bench/core/trace.py:31
↓ 13 callers
Method
start
Create and start the container. Returns the container id.
src/claw_bench/core/sandbox.py:41
↓ 12 callers
Function
_get_adapter_class
Import and return the adapter class by spec name.
tests/unit/test_httpx_adapters.py:102
↓ 12 callers
Function
_load_module
Load a module from the workspace by filename.
tasks/debugging/debug-004/verifier/test_output.py:16
↓ 12 callers
Function
_make_task
( task_id: str = "task-1", domain: str = "general", level: str = "L1", )
tests/unit/test_statistics.py:33
↓ 12 callers
Function
compute_difficulty_weighted_score
Compute a difficulty-weighted score where harder tasks count more. Parameters ---------- results: Task results from one or more r
src/claw_bench/core/scorer.py:324
↓ 12 callers
Function
compute_manifest
Compute SHA-256 hashes of all files in *results_dir*.
src/claw_bench/submission/packager.py:8
↓ 12 callers
Function
compute_scores
Compute dimension scores and a weighted composite. Parameters ---------- results: Task results from one or more runs. metrics
src/claw_bench/core/scorer.py:166
↓ 11 callers
Function
_get_employee
Helper to find an employee entry by name.
tasks/data-analysis/data-017-employee-attendance-report/verifier/test_output.py:23
↓ 11 callers
Function
_load_adapter_class
(module_path: str, class_name: str)
tests/unit/test_all_adapters.py:24
↓ 11 callers
Function
compute_cost
Return estimated cost in USD for the given token counts. Falls back to the utils.cost module, then to zero if model is unknown.
src/claw_bench/core/metrics.py:95
↓ 11 callers
Function
normalize_score
Linearly map *raw* from [min_val, max_val] to [0, 100]. Values outside the range are clamped.
src/claw_bench/core/scorer.py:155
↓ 11 callers
Function
validate_package
Verify that every file in *results_dir* matches the stored manifest.
src/claw_bench/submission/packager.py:48
↓ 10 callers
Function
_get_file
(plan, path)
tasks/system-admin/sys-013-log-rotation-planner/verifier/test_output.py:21
↓ 10 callers
Function
_looks_like_task_id
Heuristic: task IDs contain a dash followed by digits (e.g. file-001, cal-012).
src/claw_bench/cli/oracle.py:164
↓ 10 callers
Method
_make_app
(self)
tests/unit/test_doctor_cli.py:390
↓ 10 callers
Function
_make_terse
Strip examples, reduce to bullet points of requirements only.
src/claw_bench/core/robustness.py:39
↓ 10 callers
Function
_run_cli
(script, args, cwd=None)
tasks/multi-agent/mag-004-project-decomposition/verifier/test_output.py:92
↓ 10 callers
Function
_to_min
(t)
tasks/calendar/cal-014-weekly-schedule-optimization/verifier/test_output.py:34
↓ 10 callers
Method
add
(self, user: User)
tasks/multimodal/mm-007-architecture-doc/environment/data/project/repository.py:14
↓ 10 callers
Method
entries
Return a copy of the recorded entries.
src/claw_bench/core/trace.py:43
↓ 10 callers
Function
parse_date
(date_str)
tasks/planning/plan-002/verifier/test_output.py:27
↓ 10 callers
Method
put
Store a result in the cache.
src/claw_bench/core/cache.py:107
↓ 9 callers
Function
_load_summaries
Recursively find and load benchmark result JSON files. Discovers three kinds of files: - summary.json / leaderboard.json (legacy format with
src/claw_bench/cli/report.py:57
↓ 9 callers
Method
_make_valid_task
(self, tmp_path)
tests/unit/test_validate_cli.py:131
↓ 9 callers
Function
_task
(task_id: str, domain: str = "general", level: str = "L1")
tests/unit/test_leaderboard_export.py:28
↓ 9 callers
Method
acquire
Block until *tokens* are available. Returns False on timeout.
src/claw_bench/core/rate_limiter.py:36
↓ 9 callers
Function
compute_pareto_frontier
Identify non-dominated points on the cost-performance plane. Each entry in *results* must have ``"cost"`` (lower is better) and ``"score"`` (
src/claw_bench/core/scorer.py:131
↓ 9 callers
Function
compute_task_statistics
Compute statistics for a single task across multiple runs. Parameters ---------- task_id: The task identifier. results:
src/claw_bench/core/statistics.py:69
↓ 9 callers
Function
scoreClass
(score: number)
leaderboard/src/app/LeaderboardTable.tsx:75
↓ 9 callers
Function
updateField
(field: keyof FormData, value: string)
leaderboard/src/app/expert-submit/ExpertSubmitContent.tsx:304
↓ 9 callers
Function
validate_model_tier
Validate model-tier consistency. Checks that: 1. The tier is a valid canonical tier 2. The model appears in the specified tier in models.
src/claw_bench/core/config_validator.py:76
↓ 9 callers
Function
validate_run_config
Comprehensive pre-flight validation for a benchmark run. Checks weight profile, skills mode, model tier, and run count.
src/claw_bench/core/config_validator.py:155
↓ 8 callers
Function
_looks_like_task_id
Return True when *value* has the conventional task-id shape.
src/claw_bench/cli/run.py:31
↓ 8 callers
Method
_make_metrics
(self, tokens_in=5000, tokens_out=2000)
tests/unit/test_skillsbench_cli.py:271
↓ 8 callers
Function
_make_reordered
Reverse the order of numbered requirements while keeping everything else.
src/claw_bench/core/robustness.py:116
↓ 8 callers
Method
_make_result
(self, task_id, score, passed=True)
tests/unit/test_skillsbench_cli.py:259
↓ 8 callers
Method
_make_summary
(self, tmp_path, name, fw, model, overall, pass_rate=80)
tests/unit/test_analyze_cli.py:149
↓ 8 callers
Function
_parse_report
Parse the JSON report produced by pytest-json-report. Falls back to basic stdout analysis when the JSON file is unavailable.
src/claw_bench/core/verifier.py:125
↓ 8 callers
Function
_task
(task_id: str = "test-001", domain: str = "file-operations")
tests/unit/test_sandbox_runner.py:12
↓ 8 callers
Function
_to_minutes
(t)
tasks/calendar/cal-009-find-free-slots/verifier/test_output.py:23
↓ 8 callers
Function
compute_content_hash
Compute a deterministic hash of task content for cache keying.
src/claw_bench/core/cache.py:185
↓ 8 callers
Function
compute_skills_gain
Calculate skills gain metrics from the 3-condition comparison. Parameters ---------- pass_rate_vanilla: Pass rate with no skills
src/claw_bench/core/scorer.py:90
↓ 8 callers
Function
discover_adapters
Discover plugin adapters via the ``claw_bench.adapters`` entry points. Each entry point may reference either: * a :class:`ClawAdapter` subcl
src/claw_bench/adapters/registry.py:41
↓ 8 callers
Function
extract_section
Extract text under a ### heading.
scripts/generate_task_from_proposal.py:91
↓ 8 callers
Function
get_connection
Get a database connection.
tasks/security/sec-004-sql-injection-detection/environment/data/queries.py:6
↓ 8 callers
Method
send_message
(self, message, attachments=None)
tests/unit/test_registry.py:21
↓ 8 callers
Function
stack_class
Import Stack class from workspace/stack.py.
tasks/code-assistance/code-005-implement-stack/verifier/test_output.py:16
↓ 8 callers
Function
submit_pr
Fork *repo*, create a branch, commit results, and open a PR. Uses the ``gh`` CLI tool for GitHub operations. Returns the URL of the created p
src/claw_bench/submission/uploader.py:17
↓ 8 callers
Function
validate_weight_profile
Check that a weight profile exists and sums to 1.0.
src/claw_bench/core/config_validator.py:33
↓ 7 callers
Function
_find_component_issues
Find all issues for a given component.
tasks/security/sec-008-encryption-validation/verifier/test_output.py:25
↓ 7 callers
Function
_find_tasks_root
Locate the tasks directory, preferring an explicit path and CWD.
src/claw_bench/cli/run.py:67
↓ 7 callers
Function
_find_tasks_root
Locate the tasks/ directory relative to the project.
src/claw_bench/cli/oracle.py:171
↓ 7 callers
Function
_get_iface
(report, name)
tasks/system-admin/sys-015-network-config-validator/verifier/test_output.py:21
↓ 7 callers
Function
_load_module
(workspace, name)
tasks/multi-agent/mag-001-code-review-pipeline/verifier/test_output.py:14
↓ 7 callers
Function
_load_reply
(replies_dir, sender_local)
tasks/email/eml-017-out-of-office-responder/verifier/test_output.py:47
↓ 7 callers
Function
_log_submission
(ip: str, fingerprint: str, data: dict, status: str, reason: str = "")
src/claw_bench/server/submit_api.py:819
↓ 7 callers
Method
_make_app
(self)
tests/unit/test_report_cli.py:214
↓ 7 callers
Method
_make_app
(self)
tests/unit/test_doctor_cli.py:295
↓ 7 callers
Method
_make_result
(self, tmp_path, name, pass_rate)
tests/unit/test_analyze_cli.py:228
↓ 7 callers
Method
_run_in_sandbox
Execute the task inside a Docker container.
src/claw_bench/core/sandbox_runner.py:73
↓ 7 callers
Function
compute_cost
Compute the estimated cost in USD for a given model and token counts.
tests/unit/test_cost.py:18
↓ 7 callers
Function
compute_weighted_score
Compute a weighted score given task results and a weight profile. Each result dict must have keys: 'level' (str) and 'score' (float 0-1). Ret
tests/unit/test_scorer.py:20
↓ 7 callers
Method
finalise
Return a frozen ``Metrics`` snapshot.
src/claw_bench/core/metrics.py:55
↓ 7 callers
Function
generate_variants
Generate deterministic instruction variants for robustness testing. Creates variants by applying systematic transformations: - terse: Minimal
src/claw_bench/core/robustness.py:17
↓ 7 callers
Function
get_identity
Load an identity by *claw_id*, or ``None`` if not found.
src/claw_bench/core/moltbook_registry.py:108
↓ 7 callers
Method
get_user_status
(self, user_id: str)
src/claw_bench/core/resource_monitor.py:134
↓ 7 callers
Function
load_task
Read task.toml from *task_dir* and return a validated TaskConfig. Raises ``FileNotFoundError`` if task.toml is missing and ``pydantic.Validat
src/claw_bench/core/task_loader.py:96
↓ 7 callers
Method
register_user
(self, user_id: str, quota: Optional[UserQuota] = None)
src/claw_bench/core/resource_monitor.py:53
↓ 7 callers
Function
scoreClass
(score: number)
leaderboard/src/app/profiles/ProfilesContent.tsx:49
↓ 7 callers
Function
verify_task
Execute the pytest verifier for a task and return structured results. The verifier script is expected at ``<task_dir>/verifier/test_output.py``.
src/claw_bench/core/verifier.py:24
next →
1–100 of 7,113, ranked by callers