text
stringlengths
185
73.3k
repo
stringlengths
7
100
path
stringlengths
4
146
language
stringclasses
7 values
hash
stringlengths
16
16
score
float64
7
8.5
stars
int64
0
237k
#!/usr/bin/env python3 """Sync ``skills/`` into ``src/circuit_weaver/_bundled_skills/``. The bundled copy is what ships inside the PyPI wheel and is what ``circuit-weaver install-skills`` uses on machines that don't have the git clone. Without this sync, PyPI users get a stale and incomplete skill library. Usage: ...
mattpainter701/kicad_automations
scripts/sync_bundled_skills.py
.py
29e553aaded97109
7.63
17
"""Shared utilities for parsing KiCad S-expression (.kicad_sch) files. Provides low-level helpers used by bom_manager.py, edit_properties.py, and sync_datasheet_urls.py. """ from __future__ import annotations import re from pathlib import Path def find_matching_paren(text: str, start: int) -> int: """Find the ...
mattpainter701/kicad_automations
skills/bom/scripts/kicad_sexp.py
.py
7e26a3468be23844
7.63
17
"""JLCPCB Partner API client. Authentication: JOP-HMAC-SHA256 signing with AppID/Accesskey/SecretKey. Credentials loaded from ~/.config/secrets.env: - JLCPCB_AppID (optional — defaults to Accesskey if not set) - JLCPCB_Accesskey - JLCPCB_SecretKey Usage: from jlcpcb_api import JLCPCBClient client = JLCP...
mattpainter701/kicad_automations
skills/jlcpcb/scripts/jlcpcb_api.py
.py
816a9b730fdc5736
7.63
17
""" S-expression parser for KiCad files. Parses KiCad's Lisp-like S-expression format into nested Python lists. Handles quoted strings, multi-line expressions, and large files efficiently. Usage: from sexp_parser import parse_file, find_all, find_first, get_property """ import sys from typing import Any def pa...
mattpainter701/kicad_automations
skills/kicad/scripts/sexp_parser.py
.py
ee0fa8883c194116
7.63
17
"""Sheet allocator — classifies components by function and assigns to sheets. Given a list of ComponentDefs, decides: 1. How many sheets are needed 2. What each sheet is called 3. Which components go on which sheet 4. What paper size each sheet needs """ import re from dataclasses import dataclass, field from .compo...
mattpainter701/kicad_automations
src/circuit_weaver/allocator.py
.py
ce98c2abee141af3
7.63
17
"""Precision/recall baseline comparison for electrical benchmark runs. This module intentionally has no dependency on the benchmark runner. The runner supplies one deterministic JSON-compatible result mapping, while this module compares only the configured per-rule and per-domain precision/recall metrics. Unsupported...
mattpainter701/kicad_automations
src/circuit_weaver/benchmark_baseline.py
.py
3231b18d36698ea4
7.63
17
"""Single-source capability and maturity declarations. This module deliberately records what public surfaces *can claim*, rather than what an individual invocation might happen to accomplish. In particular, a successful command does not imply ERC, DRC, or fabrication readiness unless that verification is explicitly r...
mattpainter701/kicad_automations
src/circuit_weaver/capabilities.py
.py
89553efbfbb8e834
7.63
17
"""Design confidence dashboard for circuit-weaver. Aggregates validation, simulation, thermal, signal integrity, DFM, cross-reference, and ERC/DRC results into a unified confidence report with actionable recommendations. """ from __future__ import annotations from dataclasses import dataclass, field from datetime im...
mattpainter701/kicad_automations
src/circuit_weaver/confidence_dashboard.py
.py
1ff80d72bcaad18a
7.63
17
# Copyright 2026 Roboflow, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
roboflow/vlm-exam
reference/sam3/src/vlm_exam_sam3/adapter.py
.py
56ce4e4a3df6b178
7.54
11
# Copyright 2026 Roboflow, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
roboflow/vlm-exam
reference/scripts/compare_reference_prompt_boost.py
.py
11d405b6baf475d4
7.54
11
# Copyright 2026 Roboflow, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
roboflow/vlm-exam
reference/scripts/render_prompt_probe_review.py
.py
fba1db2d0d5fc8c0
7.54
11
# Copyright 2026 Roboflow, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
roboflow/vlm-exam
reference/yoloe/src/vlm_exam_yoloe/adapter.py
.py
3ecfe4e9073875e0
7.54
11
# Copyright 2026 Roboflow, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
roboflow/vlm-exam
scripts/critique_cards.py
.py
9cd7361bed2d2948
7.54
11
# Copyright 2026 Roboflow, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
roboflow/vlm-exam
src/vlm_exam/config.py
.py
e1907e2a1a37b25b
7.54
11
# Copyright 2026 Roboflow, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
roboflow/vlm-exam
src/vlm_exam/judge.py
.py
413b9863315aa123
7.54
11
# Copyright 2026 Roboflow, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
roboflow/vlm-exam
src/vlm_exam/metrics.py
.py
011d6e9e0fe0d4cb
7.54
11
# Copyright 2026 Roboflow, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
roboflow/vlm-exam
src/vlm_exam/providers/__init__.py
.py
103a1c890bbd1c2d
7.54
11
# Copyright 2026 Roboflow, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
roboflow/vlm-exam
src/vlm_exam/providers/base.py
.py
fa737e14aa3789a6
7.54
11
# Copyright 2026 Roboflow, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
roboflow/vlm-exam
src/vlm_exam/providers/dashscope.py
.py
f91ff4e41427a574
7.54
11
# Copyright 2026 Roboflow, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
roboflow/vlm-exam
src/vlm_exam/providers/fallback.py
.py
2002a055e2d27c4f
7.54
11
# Copyright 2026 Roboflow, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
roboflow/vlm-exam
src/vlm_exam/providers/google.py
.py
2edb24c4859879eb
7.54
11
# Copyright 2026 Roboflow, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
roboflow/vlm-exam
src/vlm_exam/providers/image_upload.py
.py
2b50fd2511143b22
7.54
11
# Copyright 2026 Roboflow, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
roboflow/vlm-exam
src/vlm_exam/providers/openai.py
.py
6b2bb43c40f5d1a7
7.54
11
# Copyright 2026 Roboflow, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
roboflow/vlm-exam
src/vlm_exam/providers/openrouter.py
.py
39fd7dbf56ae134f
7.54
11
# Copyright 2026 Roboflow, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
roboflow/vlm-exam
src/vlm_exam/providers/xai.py
.py
ad701f4a516b6bd2
7.54
11
# Copyright 2026 Roboflow, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
roboflow/vlm-exam
src/vlm_exam/reference/base.py
.py
d690652c7dbd1462
7.54
11
# Copyright 2026 Roboflow, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
roboflow/vlm-exam
src/vlm_exam/reference/config.py
.py
53df16cd7fe9faac
7.54
11
# Copyright 2026 Roboflow, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
roboflow/vlm-exam
src/vlm_exam/reference/leaderboard.py
.py
bd3d49c73456bc15
7.54
11
# Copyright 2026 Roboflow, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
roboflow/vlm-exam
src/vlm_exam/reference/manifest.py
.py
a5abb29136a51436
7.54
11
# Copyright 2026 Roboflow, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
roboflow/vlm-exam
src/vlm_exam/reference/prompts.py
.py
022d576d3880d42f
7.54
11
# Copyright 2026 Roboflow, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
roboflow/vlm-exam
src/vlm_exam/reference/report.py
.py
d18c2a3e75676d35
7.54
11
# Copyright 2026 Roboflow, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
roboflow/vlm-exam
src/vlm_exam/reference/visualization.py
.py
59b43c97ef13055f
7.54
11
# Copyright 2026 Roboflow, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
roboflow/vlm-exam
src/vlm_exam/results.py
.py
c980e6eac9ae717f
7.54
11
# Copyright 2026 Roboflow, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
roboflow/vlm-exam
src/vlm_exam/runner.py
.py
4b4ce33e5f9d5a14
7.54
11
# Copyright 2026 Roboflow, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
roboflow/vlm-exam
src/vlm_exam/summary.py
.py
50359062ae3f6f7e
7.54
11
# Copyright 2026 Roboflow, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
roboflow/vlm-exam
src/vlm_exam/tasks/base.py
.py
7e8173ddba8e019a
7.54
11
# Copyright 2026 Roboflow, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
roboflow/vlm-exam
src/vlm_exam/tasks/qa.py
.py
42559d0d0b7e8f87
7.54
11
# setup_helper.py — вспомогательные операции установки для install.bat. # # Зачем отдельный файл, а не inline `python -c "..."` в .bat: # install.bat работает под `setlocal EnableDelayedExpansion`, где символ "!" # имеет специальное значение и вырезается из строки. Из-за этого встроенные # python-однострочники с "!=" п...
yuran2000/xkeen-windows-dashboard
setup_helper.py
.py
1c9c2bf2b6cca2ce
7.57
13
r"""sub_expiry_notifier.py — ежедневная проверка истечения подписок. Запускается Task Scheduler-задачей `SubExpiryCheck` ежедневно в 10:00 МСК. Читает /opt/etc/xray/subscription_meta.json с Кинетика по SSH, проверяет поле expires_at каждой подписки, шлёт в Telegram если подписка просрочена или истекает в ближайшие N д...
yuran2000/xkeen-windows-dashboard
sub_expiry_notifier.py
.py
61727deae69fc1b8
7.57
13
"""xkeen_toast_daemon.py — Windows-toast уведомления о падении xray. Зачем: dashboard.py работает как SYSTEM-сервис, toast из SYSTEM-сессии пользователь НЕ видит (это особенность Windows session isolation). Этот скрипт бежит как interactive user (текущий юзер Windows) через Task Scheduler. Что делает: 1. Раз в 60 сек...
yuran2000/xkeen-windows-dashboard
xkeen_toast_daemon.py
.py
9f7fc4496243370f
7.57
13
#!/usr/bin/env python3 """ Generate example code snippets from OpenAPI spec. This script parses the OpenAPI spec and generates example code for common operations based on request/response schemas. """ import re import sys from pathlib import Path from typing import Any import yaml def load_openapi_spec(spec_path: ...
zernio-dev/zernio-python
scripts/generate_examples.py
.py
7a9e8e33c6e73067
7.52
10
#!/usr/bin/env python3 """ Generate SDK Reference section for README.md from the OpenAPI spec. This script parses the OpenAPI spec and generates markdown tables documenting all available methods with descriptions from the spec. New tags added to the OpenAPI spec are auto-discovered and included in the README. Only sp...
zernio-dev/zernio-python
scripts/generate_readme_reference.py
.py
40b0f14efc862cf6
7.52
10
"""Shared request-body flattening for the SDK and MCP code generators.""" from __future__ import annotations from typing import Any def resolve_local_ref(ref: str, spec: dict[str, Any]) -> dict[str, Any]: node: Any = spec for part in ref.lstrip("#/").split("/"): if not isinstance(node, dict): ...
zernio-dev/zernio-python
scripts/openapi_body.py
.py
90af20c483ff494e
7.52
10
""" End-to-end smoke test for the Streamable HTTP transport. Boots the HTTP server in-process with auth verification stubbed out, then drives it with the official MCP Python client over Streamable HTTP. Covers: 1. /mcp routing reaches our auth wrapper (no 307, no signature mismatch) 2. Streamable HTTP protocol ha...
zernio-dev/zernio-python
scripts/smoketest_streamable_http.py
.py
946d28131a91f5e5
8.02
10
""" Unified content generator that can use any provider. """ from __future__ import annotations from typing import TYPE_CHECKING, Any from late.enums import CaptionTone, Platform from .protocols import ( AIProvider, GenerateRequest, GenerateResponse, StreamingAIProvider, ) if TYPE_CHECKING: fro...
zernio-dev/zernio-python
src/late/ai/content_generator.py
.py
da67d9c078fdf883
7.52
10
""" Protocols (interfaces) for AI provider abstraction. Inspired by Vercel AI SDK's provider pattern. """ from __future__ import annotations from abc import abstractmethod from dataclasses import dataclass, field from typing import TYPE_CHECKING, Any, Protocol, runtime_checkable if TYPE_CHECKING: from collection...
zernio-dev/zernio-python
src/late/ai/protocols.py
.py
e402382eb3bab505
7.52
10
""" OpenAI provider implementation. """ from __future__ import annotations import os from typing import TYPE_CHECKING, Any from late.enums import Platform from ..protocols import GenerateRequest, GenerateResponse if TYPE_CHECKING: from collections.abc import AsyncIterator class OpenAIProvider: """ Op...
zernio-dev/zernio-python
src/late/ai/providers/openai.py
.py
ea854fbff172ef04
7.52
10
"""Main Zernio API client. Provides the primary client class for interacting with the Zernio API. The ``Late`` alias is kept for backwards compatibility. """ from __future__ import annotations import os from ..resources import ( AccountGroupsResource, AccountSettingsResource, AccountsResource, AdAcc...
zernio-dev/zernio-python
src/late/client/late_client.py
.py
da46cfff6bd12d50
7.52
10
""" Rate limit handling for Late API. """ from __future__ import annotations import contextlib from dataclasses import dataclass from datetime import datetime from typing import TYPE_CHECKING if TYPE_CHECKING: from collections.abc import Mapping @dataclass class RateLimitInfo: """Rate limit information fro...
zernio-dev/zernio-python
src/late/client/rate_limiter.py
.py
41267b797400c2da
7.52
10
"""Authentication module for Zernio MCP HTTP server.""" import hashlib import logging import os import time from collections import OrderedDict from enum import Enum from urllib.parse import urlparse import httpx from fastmcp.server.auth import AccessToken, RemoteAuthProvider, TokenVerifier from starlette.authenticat...
zernio-dev/zernio-python
src/late/mcp/auth.py
.py
c78d794577460f95
7.52
10
"""Configuration management for Zernio MCP HTTP server.""" import os from dataclasses import dataclass from late.mcp.constants import ( DEFAULT_HOST, DEFAULT_PORT, ENV_HOST, ENV_PORT, ) @dataclass class ServerConfig: """Server configuration.""" host: str port: int debug: bool = Fals...
zernio-dev/zernio-python
src/late/mcp/config.py
.py
1e516d3507a55ce8
7.52
10
"""HTTP server for Zernio MCP — Streamable HTTP (+ legacy SSE) on FastMCP. Serves the FastMCP application (tool-search transform + OAuth resource-server auth) over Streamable HTTP at /mcp. Authentication, the RFC 9728 protected-resource metadata, and the 401 WWW-Authenticate challenge are all provided by FastMCP's Rem...
zernio-dev/zernio-python
src/late/mcp/http_server.py
.py
e8640446b89f94a7
7.52
10
"""Static MCP resources: orientation docs an agent can read before (or without) authenticating. Content is bundled, not fetched, so resources/read never depends on the Zernio API being reachable.""" from fastmcp import FastMCP from fastmcp.apps import AppConfig, ResourceCSP from mcp.types import ToolAnnotations _OVER...
zernio-dev/zernio-python
src/late/mcp/resources.py
.py
2182d79efb44c3a1
7.52
10
""" Pipeline for cross-posting content across multiple platforms. """ from __future__ import annotations from dataclasses import dataclass from datetime import datetime, timedelta from typing import TYPE_CHECKING, Any from late.enums import Platform if TYPE_CHECKING: from ..client.late_client import Late @dat...
zernio-dev/zernio-python
src/late/pipelines/cross_poster.py
.py
9b9c0a32d13c95ba
7.52
10
""" Pipeline for scheduling posts from CSV files. """ from __future__ import annotations import csv from dataclasses import dataclass from datetime import datetime from pathlib import Path from typing import TYPE_CHECKING, Any from late.enums import MediaType if TYPE_CHECKING: from collections.abc import Iterat...
zernio-dev/zernio-python
src/late/pipelines/csv_scheduler.py
.py
d4c6ff05c58fcff1
7.52
10
#!/usr/bin/env python # Copyright (c) 2024, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Un...
scitix/sieval
scripts/gen_paul_graham_essays.py
.py
8a15c7e6e6c79cef
7.54
11
"""AI-Generated Code - Claude Sonnet 4.6 (Anthropic)""" import argparse import json import os import sys from pathlib import Path ROOT = Path(__file__).resolve().parents[1] # Import sieval from THIS checkout, which is also where the index is written. # `python scripts/x.py` puts scripts/ on sys.path[0] but never the ...
scitix/sieval
scripts/sync_meta_index.py
.py
d382a13397b5a700
7.54
11
"""AI-Generated Code - GPT-5.3-Codex (OpenAI)""" import argparse import ast import re from pathlib import Path ROOT = Path(__file__).resolve().parents[1] TASKS_DIR = ROOT / "sieval" / "tasks" DATASETS_DIR = ROOT / "sieval" / "datasets" def _iter_module_paths(package_dir: Path) -> list[Path]: return sorted( ...
scitix/sieval
scripts/sync_package_stubs.py
.py
c0040f6329527d1e
7.54
11
"""Shape of a ``filter`` dataset operation, shared by its two surfaces. ``cli.validation`` shape-checks a config with no dataset in hand and collects every problem; ``cli.leaderboard.session`` applies the operation and raises on the first. Same questions, different reporting — which is why these return a message rathe...
scitix/sieval
sieval/cli/_filter_spec.py
.py
f14cf959091fb79b
8.04
11
""" Readiness probes for discovery CLI (`dataset show`, `task show`). Computes the three-axis `ready` state (data, dataset-deps, task-deps) and a structured `missing` list. Also owns the wire-format serialization helpers so `dataset/render.py` and `task/render.py` don't duplicate them. Pure logic — no I/O beyond what...
scitix/sieval
sieval/cli/_readiness.py
.py
fa1564de28ad8ed5
7.54
11
""" sieval dataset {list, show, download} commands. AI-Generated Code - Claude Sonnet 4.6 (Anthropic) """ from pathlib import Path from typing import Annotated import click import typer from loguru import logger from sieval.cli.dataset.render import ( render_dataset_list, render_dataset_show, ) from sieval....
scitix/sieval
sieval/cli/dataset/commands.py
.py
aadae34b98ce9d3c
7.54
11
""" Inference service lifecycle: handle I/O, deployment, and status. Manages the on-disk handle files, deployer interactions, and status probing for inference services. AI-Generated Code - Claude Opus 4.6 (Anthropic) """ import contextlib import json import os import tempfile from collections.abc import Callable fro...
scitix/sieval
sieval/cli/infer/lifecycle.py
.py
06db7ab877689c63
7.54
11
""" Recipe resolution logic for inference configuration. Resolves YAML infer configs into DeploymentPlans by matching recipes, introspecting checkpoints, and merging overrides. AI-Generated Code - Claude Opus 4.6 (Anthropic) """ import dataclasses from pathlib import Path from typing import NamedTuple import typer ...
scitix/sieval
sieval/cli/infer/recipe.py
.py
6fccbea498dabe48
7.54
11
"""Per-cell annotation helper for `sieval leaderboard report`. Pure computation: given an observed score, a reference (from a card), and a tolerance (also from the card), produce a :class:`CellAnnotation` with absolute diff and pass/fail status. AI-Generated Code - Claude Opus 4.7 (1M context) (Anthropic) """ import...
scitix/sieval
sieval/cli/leaderboard/annotation.py
.py
d271d7846137a964
7.54
11
""" Leaderboard YAML catalog — backs `sieval leaderboard list`. Malformed files surface in the list with ``error`` set rather than aborting the whole scan. AI-Generated Code - Claude Opus 4.7 (1M context) (Anthropic) """ from dataclasses import dataclass, field from pathlib import Path import yaml @dataclass(froz...
scitix/sieval
sieval/cli/leaderboard/catalog.py
.py
8bf654c0f393984f
7.54
11
""" Leaderboard CLI commands. AI-Generated Code - Claude Opus 4.6 (Anthropic) """ import shlex import sys from dataclasses import replace from pathlib import Path from typing import Annotated import anyio import typer from sieval.cli.output import CommandResult, OutputFormat, cli_command, render from .catalog impo...
scitix/sieval
sieval/cli/leaderboard/commands.py
.py
4fa209e5a70e5f7a
7.54
11
""" Leaderboard scan, model resolution, and matrix assembly. Provides utilities to discover evaluation runs from disk, resolve model names from inference output, and assemble a structured leaderboard matrix. AI-Generated Code - Claude Opus 4.6 (Anthropic) """ import json import re from dataclasses import dataclass f...
scitix/sieval
sieval/cli/leaderboard/scanner.py
.py
fe5bc84c05b60382
7.54
11
""" CLI application root — entry point and command registration. AI-Generated Code - Claude Opus 4.6 (Anthropic) """ from typing import Annotated import typer from sieval.cli.dataset import dataset_app from sieval.cli.infer import infer_app from sieval.cli.leaderboard import leaderboard_app from sieval.cli.leaderbo...
scitix/sieval
sieval/cli/main.py
.py
e0ebc3d8ac9b243a
7.54
11
""" CommandResult builders for sieval task list/show. AI-Generated Code - Claude Sonnet 4.6 (Anthropic) """ from pathlib import Path from sieval.cli._readiness import evaluate_task_readiness, readiness_to_wire from sieval.cli.output import CommandResult from sieval.core.datasets.meta import DatasetMeta from sieval.c...
scitix/sieval
sieval/cli/task/render.py
.py
fd03129cde93d5b5
7.54
11
"""Guards for handing model output to sympy. Both math graders in this package parse a model's answer with sympy, and sympy parsing *is* an execution path. The three guards here are the same in both, and have to stay the same: a new escape route closes in one place or the other grader is left open. That shared contrac...
scitix/sieval
sieval/community/_sympy_guards.py
.py
b8dc7433402aa072
7.54
11
# prompt template + equality-checker prompt: AA-LCR dataset card (Apache-2.0), # reproduced verbatim from the "Prompt Template" and "Scoring Approach" sections # at the pinned revision: # https://huggingface.co/datasets/ArtificialAnalysis/AA-LCR/blob/bdae010bbce259820c0e34c1d7cce210d966fb75/README.md """Artificial Anal...
scitix/sieval
sieval/community/aa_lcr.py
.py
7f1ee19f9700b12b
7.54
11
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. # adapted from https://github.com/ruixiangcui/AGIEval/blob/84ab72d94318290aad2e4ec820d535a95a1f7552/src/dataset_loader.py """AGIEval subset taxonomy + zero-shot prompt construction. Two things upstream keeps in ``src/dataset_loader.py`` and ever...
scitix/sieval
sieval/community/agieval/dataset_loader.py
.py
8bf55048f7ae7d5e
7.54
11
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. # adapted from https://github.com/ruixiangcui/AGIEval/blob/84ab72d94318290aad2e4ec820d535a95a1f7552/src/evaluation.py # leaderboard groupings from https://github.com/ruixiangcui/AGIEval/blob/84ab72d94318290aad2e4ec820d535a95a1f7552/post_process_a...
scitix/sieval
sieval/community/agieval/evaluation.py
.py
ff383cdf300125c3
7.54
11
# adapted from https://github.com/ruixiangcui/AGIEval/blob/84ab72d94318290aad2e4ec820d535a95a1f7552/src/math_equivalence.py # which AGIEval vendors from https://github.com/hendrycks/math/blob/357963a7f5501a6c1708cf3f3fb0cdf525642761/modeling/math_equivalence.py """Hendrycks-MATH string equivalence, as AGIEval vendors i...
scitix/sieval
sieval/community/agieval/math_equivalence.py
.py
3c8b5121a9f728d2
7.54
11
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. # adapted from https://github.com/ruixiangcui/AGIEval/blob/84ab72d94318290aad2e4ec820d535a95a1f7552/src/post_process.py """AGIEval answer extraction from the second-stage model reply. Three parsers, picked by subset family (upstream ``post_proce...
scitix/sieval
sieval/community/agieval/post_process.py
.py
bce5fbec919ff4a9
7.54
11
# query + grader prompts: verbatim from OpenAI simple-evals # https://github.com/openai/simple-evals/blob/652c89d0ca9df547706735883097e9537d40dc47/browsecomp_eval.py # (BrowseComp, Wei et al., arXiv:2504.12516). The grader prompt is adapted by # OpenAI from the Humanity's-Last-Exam autorater. """BrowseComp autorater as...
scitix/sieval
sieval/community/browsecomp.py
.py
0648a72490d6b579
7.54
11
"""ComplexConstraints rubric-grading assets: judge prompt, verdict parsing, metrics. ComplexConstraints (Mehta et al., 2026, arXiv:2606.09118) is a 75-prompt instruction-following benchmark. Each prompt ships 10-40 *atomic* rubric criteria (1,559 in total); criteria are graded by rubric -- human or LLM-as-a-judge -- n...
scitix/sieval
sieval/community/complex_constraints.py
.py
540cda3d9cada621
7.54
11
# Adapted from GSM-Plus (Li et al., ACL 2024), pinned commit: # https://github.com/qtli/GSM-Plus/blob/3474129ec12fcd3e8ac08cb037aca1928efca98c/scripts/utils/extract_ans.py # # SPDX-License-Identifier: CC-BY-SA-4.0 # # LICENSE: this file is CC-BY-SA-4.0, not the repository's Apache-2.0. Upstream's # CODE repo states no ...
scitix/sieval
sieval/community/gsm_plus.py
.py
d836ad6eec9478ab
7.54
11
# Sources (Humanity's Last Exam, Center for AI Safety), pinned to commit # 26dca2e253b405105b4c3d8c2f5af06f86f90c66: # - SYSTEM_PROMPT (verbatim) and the user-message assembly this task mirrors: # hle_eval/run_model_predictions.py (SYSTEM_PROMPT, format_message) # - JUDGE_PROMPT (verbatim), the ExtractedAnswer ...
scitix/sieval
sieval/community/hle.py
.py
4d2177a91b5ff732
7.54
11
# coding=utf-8 # Copyright 2025 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
scitix/sieval
sieval/community/ifbench/evaluation_lib.py
.py
66f2bd14eade7183
7.54
11
from __future__ import annotations from typing import TYPE_CHECKING, ClassVar import polars as pl from polars_stats.distributions._base import ( DiscreteDistribution, coerce_param, scalar_float, scalar_kwargs, ) if TYPE_CHECKING: from polars_stats._typing import IntoExprColumn class Bernoulli(...
FBruzzesi/polars-stats
polars_stats/distributions/_bernoulli.py
.py
7b17435de17939aa
7.57
13
from __future__ import annotations from typing import TYPE_CHECKING, ClassVar from polars_stats.distributions._base import ( ContinuousDistribution, coerce_param, scalar_float, scalar_kwargs, ) if TYPE_CHECKING: import polars as pl from polars_stats._typing import IntoExprColumn class Beta...
FBruzzesi/polars-stats
polars_stats/distributions/_beta.py
.py
e0cc35b481728698
7.57
13
from __future__ import annotations from typing import TYPE_CHECKING, ClassVar from polars_stats.distributions._base import ( DiscreteDistribution, coerce_n, coerce_param, scalar_float, scalar_int, scalar_kwargs, ) if TYPE_CHECKING: import polars as pl from polars_stats._typing import...
FBruzzesi/polars-stats
polars_stats/distributions/_binomial.py
.py
a77e87739ee0c0da
7.57
13
from __future__ import annotations import math from typing import TYPE_CHECKING, ClassVar import polars as pl from polars_stats.distributions._base import ( ContinuousDistribution, coerce_param, expm1, scalar_float, scalar_kwargs, ) if TYPE_CHECKING: from polars_stats._typing import IntoExpr...
FBruzzesi/polars-stats
polars_stats/distributions/_exponential.py
.py
0f02615c39af3064
7.57
13
from __future__ import annotations from typing import TYPE_CHECKING, ClassVar import polars as pl from polars_stats.distributions._base import ( DiscreteDistribution, coerce_param, expm1, log_abs_expm1, scalar_float, scalar_kwargs, ) if TYPE_CHECKING: from polars_stats._typing import Int...
FBruzzesi/polars-stats
polars_stats/distributions/_geometric.py
.py
eaa4f27c56f75b24
7.57
13
from __future__ import annotations import math from typing import TYPE_CHECKING, ClassVar from polars_stats.distributions._base import ( ContinuousDistribution, coerce_param, expm1, log_abs_expm1, scalar_float, scalar_kwargs, ) if TYPE_CHECKING: import polars as pl from polars_stats....
FBruzzesi/polars-stats
polars_stats/distributions/_lognormal.py
.py
fbb4a662fd3b391c
7.57
13
from __future__ import annotations import math from typing import TYPE_CHECKING, ClassVar from polars_stats.distributions._base import ( ContinuousDistribution, coerce_param, scalar_float, scalar_kwargs, ) if TYPE_CHECKING: import polars as pl from polars_stats._typing import IntoExprColumn ...
FBruzzesi/polars-stats
polars_stats/distributions/_normal.py
.py
991d5b751fb0be89
7.57
13
from __future__ import annotations import math from typing import TYPE_CHECKING, ClassVar import polars as pl from polars_stats.distributions._base import ( ContinuousDistribution, coerce_param, scalar_float, scalar_kwargs, ) if TYPE_CHECKING: from polars_stats._typing import IntoExprColumn _ME...
FBruzzesi/polars-stats
polars_stats/distributions/_uniform.py
.py
0d655739fb486a7d
7.57
13
"""Compatibility shims for ``polars`` across supported polars versions. Polars renamed the tolerance keyword arguments of `assert_series_equal` from ``rtol``/``atol`` to ``rel_tol``/``abs_tol`` in v1.32.3. This project supports ``polars>=1.15.0``, so the test suite has to run against both spellings. The wrapper expos...
FBruzzesi/polars-stats
tests/_polars_compat.py
.py
c5c6928274807ab0
8.07
13
from __future__ import annotations import math from dataclasses import dataclass from typing import TYPE_CHECKING, ClassVar import polars as pl import pytest from polars_stats.distributions._base import ContinuousDistribution, DiscreteDistribution if TYPE_CHECKING: from polars_stats.distributions._base import _...
FBruzzesi/polars-stats
tests/distributions/base_defaults_test.py
.py
99593c871c06dfbd
8.07
13
from __future__ import annotations import math import polars as pl import pytest from polars.testing import assert_series_equal from polars_stats import Bernoulli @pytest.mark.parametrize("p", [0.1, 0.3, 0.5, 0.7, 0.9]) def test_entropy_interior(p: float, unit_frame: pl.DataFrame) -> None: result = unit_frame....
FBruzzesi/polars-stats
tests/distributions/bernoulli/entropy_test.py
.py
1bebcffeb35ce7bd
7.07
13
from __future__ import annotations import math import polars as pl import pytest from polars.testing import assert_series_equal from polars_stats import Bernoulli @pytest.mark.parametrize("q", [0.1, 0.5, 0.9]) def test_isf_is_ppf_of_complement(unit_frame: pl.DataFrame, q: float) -> None: # isf(q) == ppf(1 - q)...
FBruzzesi/polars-stats
tests/distributions/bernoulli/isf_test.py
.py
367f27bbfab8f07c
7.07
13
from __future__ import annotations import polars as pl import pytest from polars.testing import assert_series_equal from polars_stats import Bernoulli @pytest.mark.parametrize(("p", "expected"), [(0.3, 0.0), (0.5, 0.0), (0.7, 1.0)]) def test_median(p: float, expected: float, unit_frame: pl.DataFrame) -> None: #...
FBruzzesi/polars-stats
tests/distributions/bernoulli/median_test.py
.py
e1bf1941edc69c51
7.07
13
from __future__ import annotations import math import polars as pl import pytest from polars.testing import assert_series_equal from polars_stats import Bernoulli @pytest.mark.parametrize( ("p", "quantile", "expected"), [ (0.3, 0.0, 0.0), (0.3, 0.5, 0.0), # 0.5 <= 1 - 0.3 = 0.7 (0....
FBruzzesi/polars-stats
tests/distributions/bernoulli/ppf_test.py
.py
44a1c613a67a97e0
7.07
13
from __future__ import annotations from typing import TYPE_CHECKING import numpy as np import polars as pl import pytest from polars.testing import assert_series_equal, assert_series_not_equal from polars_stats import Bernoulli if TYPE_CHECKING: from collections.abc import Callable _EXTREME_P = [0.0, 1.0, 0.0...
FBruzzesi/polars-stats
tests/distributions/bernoulli/sample_test.py
.py
c2621408116ddc67
7.07
13
from __future__ import annotations from typing import TYPE_CHECKING, cast import polars as pl import pytest from polars.testing import assert_series_equal from polars_stats import Bernoulli from tests._polars_compat import arr_explode if TYPE_CHECKING: from collections.abc import Callable @pytest.mark.paramet...
FBruzzesi/polars-stats
tests/distributions/bernoulli/samples_test.py
.py
8c148dae42ea93d8
7.07
13
from __future__ import annotations from typing import TYPE_CHECKING import polars as pl import pytest from polars_stats import Bernoulli if TYPE_CHECKING: from collections.abc import Callable # Every public method must report an out-of-range `p` as a ComputeError, not silently compute a # negative probability....
FBruzzesi/polars-stats
tests/distributions/bernoulli/validation_test.py
.py
eed468676a5ade33
7.07
13
"""Config flow for HASS.Agent""" from __future__ import annotations import json import logging from typing import Any import voluptuous as vol from aiohttp import ClientError, ClientTimeout from homeassistant import config_entries from homeassistant.components.notify import ATTR_TITLE_DEFAULT from homeassistant.conf...
v1k70rk4/HASS.Agent.NET10-Integration
custom_components/hass_agent/config_flow.py
.py
101aeeac0d70086b
7.42
6
"""Shared entity helpers for HASS.Agent.""" from __future__ import annotations from homeassistant.core import callback from homeassistant.helpers.dispatcher import async_dispatcher_connect from .const import DOMAIN def availability_signal(entry_id: str) -> str: """Dispatcher signal carrying the device online/o...
v1k70rk4/HASS.Agent.NET10-Integration
custom_components/hass_agent/entity.py
.py
6c9c216e20f56744
7.42
6
"""Event platform for HASS.Agent notification actions.""" from __future__ import annotations import json import logging from typing import Any, ClassVar from homeassistant.components.event import EventDeviceClass, EventEntity from homeassistant.components.mqtt.models import ReceiveMessage from homeassistant.componen...
v1k70rk4/HASS.Agent.NET10-Integration
custom_components/hass_agent/event.py
.py
40231e07efab232b
7.42
6