AI Slop Code RIsk Monitor

OpenPipe/ART

Agent Reinforcement Trainer: train multi-step agents for real-world tasks using GRPO. Give your agents on-the-job training. Reinforcement learning for Qwen3.6, GPT-OSS, Llama, and more!

18.7 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for OpenPipe/ART, a Python project with 10,793 GitHub stars. SynthScan examined 369,757 lines of code across 914 source files, recording 6638 pattern matches distributed across 23 syntactic categories. The legacy adjusted pattern signal is 18.7 (Elevated pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

18.7
Adjusted Signal
18.7
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
10.8K
Stars
Python
Language
369.8K
Lines of Code
914
Files
6.6K
Pattern Hits
2026-10-12
Scan Date
0.13
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 48.7/100 · MEDIUM

Can maintainers explain intent, assumptions, and trade-offs? 5302 finding(s).

Hallucinated Dependency & Supply Chain Risk 10.7/100 · LOW

Are imports declared and package/API names verified? 809 finding(s).

Agent Over-Engineering Ratio 52.4/100 · HIGH

Are wrappers, guards, and repeated structures necessary? 5240 finding(s).

PR Review Velocity Impact 63.9/100 · HIGH

Which changes need focused human review? 6638 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 1HIGH 119MEDIUM 145LOW 6373

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 6638 distinct pattern matches across 23 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Hyper-Verbose Identifiers4664 hits · 4298 pts
SeverityFileLineSnippetContext
LOWvllm_runtime/tests/test_dedicated_server.py57def test_fast_metrics_listener_auth_keepalive_and_scalar_payload() -> None:CODE
LOWvllm_runtime/tests/test_dedicated_server.py79def test_fast_metrics_listener_reads_updated_shared_snapshot() -> None:CODE
LOWvllm_runtime/tests/test_dedicated_server.py100def test_fast_metrics_listener_reports_unpublished_snapshot() -> None:CODE
LOWvllm_runtime/tests/test_dedicated_server.py114def test_fast_metrics_listener_stops_and_restarts_on_same_port() -> None:CODE
LOWvllm_runtime/tests/test_dedicated_server.py130def test_fast_metrics_url_uses_controller_routable_host(monkeypatch) -> None:CODE
LOWvllm_runtime/tests/test_dedicated_server.py145def test_runtime_sleep_route_returns_engine_validation_error(monkeypatch) -> None:CODE
LOWvllm_runtime/tests/test_dedicated_server.py164async def test_completed_lora_update_replays_without_another_mutation(CODE
LOWvllm_runtime/tests/test_dedicated_server.py204async def test_active_lora_operation_rejects_changed_contents_and_joins_retry() -> None:CODE
LOWvllm_runtime/tests/test_dedicated_server.py220def test_lora_preparation_precedes_admission_and_atomic_commit(monkeypatch) -> None:CODE
LOWvllm_runtime/tests/test_dedicated_server.py251 async def _check_load_lora_adapter_request(self, _request):CODE
LOWvllm_runtime/tests/test_dedicated_server.py333async def test_different_slots_prepare_concurrently_and_commit_serially(CODE
LOWvllm_runtime/tests/test_dedicated_server.py356 async def _check_load_lora_adapter_request(self, _request):CODE
LOWvllm_runtime/tests/test_binary_routes.py13 def test_exact_expert_count_and_dtype_roundtrip(self) -> None:CODE
LOWvllm_runtime/tests/test_binary_routes.py47 def test_capture_registers_vllm_authoritative_route_layout(self) -> None:CODE
LOWvllm_runtime/tests/test_binary_routes.py78 def test_resolves_only_registered_padding_layers(self) -> None:CODE
LOWvllm_runtime/tests/test_binary_routes.py101 def test_rejects_missing_capture_on_routed_layer(self) -> None:CODE
LOWvllm_runtime/tests/test_prompt_policy_spans.py24def test_prefill_only_execution_retains_prompt_provenance() -> None:CODE
LOWvllm_runtime/tests/test_prompt_policy_spans.py55def test_multichunk_prefill_preserves_exact_update_boundary() -> None:CODE
LOWvllm_runtime/tests/test_prompt_policy_spans.py76def test_decode_update_creates_exact_completion_boundary() -> None:CODE
LOWvllm_runtime/tests/test_prompt_policy_spans.py102def test_prefix_cache_and_preemption_do_not_replay_stale_prompt_spans() -> None:CODE
LOWvllm_runtime/tests/test_prompt_policy_spans.py117def test_nonstreaming_choices_keep_independent_prompt_and_completion_spans() -> None:CODE
LOWvllm_runtime/tests/test_prompt_policy_spans.py136def test_streaming_choices_emit_independent_spans() -> None:CODE
LOWvllm_runtime/tests/test_prompt_policy_spans.py182def test_same_slot_update_uses_generation_cas() -> None:CODE
LOWvllm_runtime/tests/test_prompt_policy_spans.py203def test_different_slots_prepare_concurrently() -> None:CODE
LOWvllm_runtime/tests/test_prompt_policy_spans.py241def test_worker_commit_requires_completed_preparation() -> None:CODE
LOWvllm_runtime/tests/test_prompt_policy_spans.py267def test_two_slot_commits_do_not_mix_scheduler_state() -> None:CODE
LOWvllm_runtime/tests/test_prompt_policy_spans.py320def test_partial_worker_commit_poisons_scheduler() -> None:CODE
LOWvllm_runtime/src/art_vllm_runtime/moe_lora_patches.py59def patch_small_batch_moe_lora_intermediate_dtype() -> None:CODE
LOW⚡vllm_runtime/src/art_vllm_runtime/policy_spans.py1370 def art_abort_prepared_lora_policy(CODE
LOW⚡vllm_runtime/src/art_vllm_runtime/policy_spans.py1379 def art_commit_prepared_lora_policy(CODE
LOW⚡vllm_runtime/src/art_vllm_runtime/policy_spans.py1388 def art_declare_loaded_lora_policy(CODE
LOWvllm_runtime/src/art_vllm_runtime/policy_spans.py139def _patch_policy_cache_hashing() -> None:CODE
LOWvllm_runtime/src/art_vllm_runtime/policy_spans.py146 def generate_block_hash_extra_keys(CODE
LOWvllm_runtime/src/art_vllm_runtime/policy_spans.py361async def declare_initial_lora_policy(CODE
LOWvllm_runtime/src/art_vllm_runtime/policy_spans.py401def _patch_model_runner_output_type() -> None:CODE
LOWvllm_runtime/src/art_vllm_runtime/policy_spans.py492def _policy_history_from_cache_salt(cache_salt: str | None) -> str | None:CODE
LOWvllm_runtime/src/art_vllm_runtime/policy_spans.py573def _apply_lora_alias_policy_cache_salt(CODE
LOWvllm_runtime/src/art_vllm_runtime/policy_spans.py600def _patch_engine_core_output_type() -> None:CODE
LOWvllm_runtime/src/art_vllm_runtime/policy_spans.py688def _patch_worker_policy_span_capture() -> None:CODE
LOWvllm_runtime/src/art_vllm_runtime/policy_spans.py787def _patch_scheduler_policy_span_transport() -> None:CODE
LOWvllm_runtime/src/art_vllm_runtime/policy_spans.py855def _patch_output_processor_policy_span_accumulation() -> None:CODE
LOWvllm_runtime/src/art_vllm_runtime/policy_spans.py958def _patch_openai_response_policy_spans() -> None:CODE
LOWvllm_runtime/src/art_vllm_runtime/policy_spans.py965 async def chat_completion_full_generator(CODE
LOWvllm_runtime/src/art_vllm_runtime/policy_spans.py1021 async def chat_completion_stream_generator(CODE
LOWvllm_runtime/src/art_vllm_runtime/policy_spans.py1100def _attach_policy_spans_to_stream_frame(CODE
LOWvllm_runtime/src/art_vllm_runtime/policy_spans.py1130def _patch_lora_alias_resolution() -> None:CODE
LOWvllm_runtime/src/art_vllm_runtime/policy_spans.py1194def _patch_engine_request_admission() -> None:CODE
LOWvllm_runtime/src/art_vllm_runtime/policy_spans.py1274async def _cleanup_failed_admission(CODE
LOWvllm_runtime/src/art_vllm_runtime/policy_spans.py1318def _patch_load_inplace_storage() -> None:CODE
LOWvllm_runtime/src/art_vllm_runtime/policy_spans.py1346def _patch_policy_lora_update_rpc() -> None:CODE
LOWvllm_runtime/src/art_vllm_runtime/policy_spans.py1445 def art_abort_prepared_lora_policy(CODE
LOWvllm_runtime/src/art_vllm_runtime/policy_spans.py1462 def art_commit_prepared_lora_policy_update(CODE
LOWvllm_runtime/src/art_vllm_runtime/policy_spans.py1473 def art_declare_loaded_lora_policy(CODE
LOWvllm_runtime/src/art_vllm_runtime/policy_spans.py1626def _validate_worker_preparation(CODE
LOWvllm_runtime/src/art_vllm_runtime/policy_spans.py1640def _commit_prepared_policy_lora_update(CODE
LOWvllm_runtime/src/art_vllm_runtime/policy_spans.py1676def _transition_scheduler_policy_history(CODE
LOWvllm_runtime/src/art_vllm_runtime/policy_spans.py1766def _validate_continued_policy_update(CODE
LOWvllm_runtime/src/art_vllm_runtime/policy_spans.py1783def _rebase_preempted_request_policy_history(request: Any) -> None:CODE
LOWvllm_runtime/src/art_vllm_runtime/policy_spans.py1816def _scheduler_hash_block_size(scheduler: Any) -> int:CODE
LOWvllm_runtime/src/art_vllm_runtime/policy_spans.py1823def _policy_lora_request_from_payload(CODE
4604 more matches not shown…
Unused Imports790 hits · 712 pts
SeverityFileLineSnippetContext
LOWvllm_runtime/tests/test_binary_routes.py1CODE
LOWvllm_runtime/src/art_vllm_runtime/policy_spans.py7CODE
LOWvllm_runtime/src/art_vllm_runtime/metrics.py3CODE
LOWvllm_runtime/src/art_vllm_runtime/binary_routes.py1CODE
LOWvllm_runtime/src/art_vllm_runtime/__init__.py1CODE
LOWvllm_runtime/src/art_vllm_runtime/__init__.py1CODE
LOWvllm_runtime/src/art_vllm_runtime/fast_metrics.py3CODE
LOWvllm_runtime/src/art_vllm_runtime/history.py6CODE
LOWvllm_runtime/src/art_vllm_runtime/_shared/vllm.py3CODE
LOW…m_runtime/src/art_vllm_runtime/_shared/token_prefix.py3CODE
LOW…lm_runtime/src/art_vllm_runtime/_shared/append_only.py7CODE
LOWtests/unit/test_trainer_rank_cost_fit.py3CODE
LOWtests/unit/test_context_parallel_plan_evaluation.py12CODE
LOWtests/unit/test_exchange_training_model_selection.py1CODE
LOWtests/unit/test_strip_logprobs.py3CODE
LOWtests/unit/test_strip_logprobs.py5CODE
LOWtests/unit/test_strip_logprobs.py7CODE
LOWtests/unit/test_trainer_rank_converted_memory.py3CODE
LOWtests/unit/test_trainer_rank_weird_shapes.py1CODE
LOWtests/unit/test_trainer_rank_weird_shapes.py33CODE
LOWtests/unit/test_moe_routing_real_path.py1CODE
LOWtests/unit/test_trainer_rank_check.py1CODE
LOWtests/unit/test_unsloth_asyncio_isolation.py1CODE
LOWtests/unit/test_checkpoint_selective_read.py1CODE
LOWtests/unit/test_prefix_tree_grad_parity.py1CODE
LOWtests/unit/test_trainer_rank_admission_inputs.py9CODE
LOWtests/unit/test_distributed_inference_metrics.py1CODE
LOWtests/unit/test_trainer_rank_topology.py11CODE
LOWtests/unit/test_trainer_rank_topology.py26CODE
LOWtests/unit/test_multi_checkpoint_inference.py14CODE
LOWtests/unit/test_multi_checkpoint_inference.py15CODE
LOWtests/unit/test_multi_checkpoint_inference.py19CODE
LOWtests/unit/test_checkpoint_asymmetric_cleanup.py3CODE
LOWtests/unit/test_tau_bench_client.py1CODE
LOWtests/unit/test_planner_cost_features.py8CODE
LOWtests/unit/test_planner_cost_profile.py9CODE
LOWtests/unit/test_dsv4_vllm_runtime_patches.py1CODE
LOWtests/unit/test_planner_cost_certificate.py15CODE
LOWtests/unit/trainer_rank_test_support.py19CODE
LOWtests/unit/test_trainer_rank_calibration_harness.py10CODE
LOWtests/unit/test_checkpoint_block_gloo.py3CODE
LOWtests/unit/test_planner_rerank.py11CODE
LOWtests/unit/test_planner_cost_manifest_recipes.py12CODE
LOWtests/unit/test_prefix_tree_attention_builder.py1CODE
LOWtests/unit/test_moe_routing_replay.py1CODE
LOWtests/unit/test_checkpoint_snapshot_spill.py1CODE
LOWtests/unit/test_checkpoint_snapshot_spill.py5CODE
LOWtests/unit/test_trainer_rank_validation.py1CODE
LOWtests/unit/test_trainer_rank_validation.py70CODE
LOWtests/unit/test_trainer_rank_planner_reports.py1CODE
LOWtests/unit/test_trainer_rank_split.py32CODE
LOWtests/unit/test_trainer_rank_split.py68CODE
LOWtests/unit/test_trainer_rank_split.py69CODE
LOWtests/unit/test_trainer_rank_planning_status.py3CODE
LOWtests/unit/test_trajectory_copy.py13CODE
LOWtests/unit/test_prefix_tree_packing.py1CODE
LOWtests/unit/test_trajectory_parquet.py14CODE
LOWtests/unit/test_trajectory_parquet.py17CODE
LOWtests/unit/test_trajectory_parquet.py24CODE
LOWtests/unit/test_trajectory_parquet.py46CODE
730 more matches not shown…
Empty Error Handlers89 hits · 445 pts
SeverityFileLineSnippetContext
HIGHvllm_runtime/src/art_vllm_runtime/dedicated_server.py684except BaseException:CODE
HIGHvllm_runtime/src/art_vllm_runtime/fast_metrics.py356except BlockingIOError:CODE
HIGHtests/unit/trainer_rank_test_support.py162except BaseException:CODE
HIGHtests/unit/test_token_prefix.py226except ValueError:CODE
HIGHtests/unit/test_token_prefix.py139except ValueError:CODE
HIGHtests/unit/test_token_prefix.py219except ValueError:CODE
HIGHtests/unit/test_trainer_rank_gpu_ci.py634except ProcessLookupError:CODE
HIGHtests/unit/test_trainer_rank_gpu_ci.py638except ChildProcessError:CODE
HIGHtests/unit/trajectories/test_tokenize_golden.py250except ImportError:CODE
HIGHtests/unit/trajectories/test_literal_thinking_off.py540except ValueError:CODE
HIGHtests/unit/trajectories/test_capture.py247except ConnectionResetError:CODE
HIGHtests/integration/test_multi_checkpoint_training.py202except Exception:CODE
HIGHtests/integration/test_push_and_fork.py112except Exception:CODE
HIGHtests/integration/test_push_and_fork.py194except Exception:CODE
HIGHtests/integration/test_push_and_fork.py257except Exception:CODE
HIGH…ts/integration/megatron/gdn_shared_prefix/artifacts.py109except Exception:CODE
HIGH…egration/megatron/model_support/workflow_forkserver.py59except ProcessLookupError:CODE
HIGH…egration/megatron/model_support/workflow_forkserver.py82except OSError:CODE
HIGH…egration/megatron/model_support/workflow_forkserver.py455except Exception:CODE
HIGHtests/integration/megatron/model_support/workflow.py524except ProcessLookupError:CODE
HIGHtests/integration/megatron/model_support/workflow.py537except ProcessLookupError:CODE
HIGHscripts/ci/trainer-rank-gpu.py297except ProcessLookupError:CODE
HIGHscripts/ci/trainer-rank-gpu.py587except (OSError, ValueError, KeyError):CODE
HIGHscripts/ci/trainer-rank-gpu.py456except Exception:CODE
HIGHdev/yes-no-maybe-metrics.py22except ImportError:CODE
HIGHdev/yes_no_maybe_trainability.py17except ImportError:CODE
HIGHsrc/art/vllm_runtime.py264except httpx.HTTPError:CODE
HIGHsrc/art/vllm_runtime.py997except httpx.HTTPError:CODE
HIGHsrc/art/__init__.py51except ImportError:CODE
HIGHsrc/art/__init__.py49except Exception:CODE
HIGHsrc/art/langgraph/llm_wrapper.py94except Exception:CODE
HIGHsrc/art/tinker/server.py248except (asyncio.CancelledError, Exception):CODE
HIGHsrc/art/distributed/vllm_replica.py522except asyncio.CancelledError:CODE
HIGHsrc/art/distributed/monarch_bootstrap.py895except FileNotFoundError:CODE
HIGHsrc/art/distributed/monarch_bootstrap.py1086except OSError:CODE
HIGHsrc/art/distributed/monarch_bootstrap.py490except FileNotFoundError:CODE
HIGHsrc/art/distributed/monarch_bootstrap.py1264except OSError:CODE
HIGHsrc/art/distributed/artifact_preflight.py158except FileNotFoundError:CODE
HIGHsrc/art/distributed/data_plane.py606except (asyncio.IncompleteReadError, ConnectionError):CODE
HIGHsrc/art/distributed/data_plane.py619except Exception:CODE
HIGHsrc/art/serverless/backend.py1060except Exception:CODE
HIGHsrc/art/serverless/backend.py46except ValueError:CODE
HIGHsrc/art/tau_bench/client.py579except BaseException:CODE
HIGHsrc/art/tau_bench/client.py269except ValueError:CODE
HIGHsrc/art/utils/lifecycle.py53except asyncio.CancelledError:CODE
HIGHsrc/art/utils/lifecycle.py98except ProcessLookupError:CODE
HIGHsrc/art/utils/lifecycle.py133except ChildProcessError:CODE
HIGHsrc/art/utils/lifecycle.py268except ValueError:CODE
HIGHsrc/art/utils/managed_process.py52except ProcessLookupError:CODE
HIGHsrc/art/utils/benchmarking/load_trajectories.py193except (json.JSONDecodeError, TypeError):CODE
HIGHsrc/art/utils/benchmarking/load_trajectories.py201except (json.JSONDecodeError, TypeError):CODE
HIGHsrc/art/utils/benchmarking/load_trajectories.py209except (json.JSONDecodeError, TypeError):CODE
HIGHsrc/art/utils/benchmarking/load_trajectories.py217except (json.JSONDecodeError, TypeError):CODE
HIGHsrc/art/utils/benchmarking/load_trajectories.py273except (json.JSONDecodeError, TypeError):CODE
HIGHsrc/art/local/backend.py1196except ImportError:CODE
HIGHsrc/art/local/backend.py757except asyncio.CancelledError:CODE
HIGHsrc/art/pipeline_trainer/trainer.py543except (ValueError, RuntimeError):CODE
HIGHsrc/art/pipeline_trainer/trainer.py537except (NotImplementedError, RuntimeError):CODE
HIGHsrc/art/trainer_rank/_impl.py1329except (AssertionError, AttributeError, ImportError, RuntimeError):CODE
HIGHsrc/art/trainer_rank/_impl.py3825except Exception:CODE
29 more matches not shown…
Deep Nesting491 hits · 398 pts
SeverityFileLineSnippetContext
LOWvllm_runtime/src/art_vllm_runtime/policy_spans.py688CODE
LOWvllm_runtime/src/art_vllm_runtime/policy_spans.py787CODE
LOWvllm_runtime/src/art_vllm_runtime/policy_spans.py958CODE
LOWvllm_runtime/src/art_vllm_runtime/policy_spans.py1676CODE
LOWvllm_runtime/src/art_vllm_runtime/fast_metrics.py336CODE
LOWvllm_runtime/src/art_vllm_runtime/_shared/vllm.py149CODE
LOWvllm_runtime/src/art_vllm_runtime/_shared/vllm.py276CODE
LOWvllm_runtime/src/art_vllm_runtime/_shared/vllm.py280CODE
LOWvllm_runtime/src/art_vllm_runtime/_shared/vllm.py423CODE
LOW…_runtime/src/art_vllm_runtime/_shared/chat_template.py47CODE
LOW…_runtime/src/art_vllm_runtime/_shared/chat_template.py710CODE
LOW…_runtime/src/art_vllm_runtime/_shared/chat_template.py392CODE
LOW…m_runtime/src/art_vllm_runtime/_shared/token_prefix.py124CODE
LOW…m_runtime/src/art_vllm_runtime/_shared/token_prefix.py1009CODE
LOW…lm_runtime/src/art_vllm_runtime/_shared/append_only.py122CODE
LOW…lm_runtime/src/art_vllm_runtime/_shared/append_only.py280CODE
LOW…lm_runtime/src/art_vllm_runtime/_shared/append_only.py328CODE
LOWtests/integration.py82CODE
LOWtests/integration.py176CODE
LOWtests/integration.py231CODE
LOWtests/unit/test_context_parallel_plan_evaluation.py70CODE
LOWtests/unit/test_trainer_rank_converted_memory.py151CODE
LOWtests/unit/test_trainer_rank_backward_work.py374CODE
LOWtests/unit/test_trainer_rank_backward_work.py483CODE
LOWtests/unit/test_trainer_rank_backward_work.py542CODE
LOWtests/unit/test_trainer_rank_backward_work.py679CODE
LOWtests/unit/test_checkpoint_selective_read.py75CODE
LOWtests/unit/test_frontend_logging.py958CODE
LOWtests/unit/test_tinker_server_lifecycle.py121CODE
LOW…sts/unit/test_checkpoint_snapshot_spill_distributed.py21CODE
LOW…sts/unit/test_checkpoint_snapshot_spill_distributed.py136CODE
LOWtests/unit/test_checkpoint_asymmetric_cleanup.py115CODE
LOWtests/unit/test_trainer_rank_checkpoint_memory.py598CODE
LOWtests/unit/test_gpu_image_cleanup.py37CODE
LOWtests/unit/test_gpu_image_cleanup.py53CODE
LOWtests/unit/test_trainer_rank_tp_floor.py1400CODE
LOWtests/unit/test_trainer_rank_tp_floor.py1595CODE
LOWtests/unit/test_trainer_rank_tp_floor.py1656CODE
LOWtests/unit/test_trainer_rank_head_memory.py276CODE
LOWtests/unit/test_trainer_rank_head_memory.py369CODE
LOWtests/unit/trainer_rank_test_support.py129CODE
LOWtests/unit/test_checkpoint_block_gloo.py97CODE
LOWtests/unit/test_prefix_tree_attention_builder.py564CODE
LOWtests/unit/test_trainer_rank_validation.py813CODE
LOWtests/unit/test_trainer_rank_validation.py3459CODE
LOWtests/unit/test_trainer_rank_validation.py3890CODE
LOWtests/unit/test_trainer_rank_planner_reports.py166CODE
LOWtests/unit/test_trainer_rank_planning_status.py77CODE
LOWtests/unit/test_transport_observation.py112CODE
LOWtests/unit/test_transport_observation.py113CODE
LOWtests/unit/test_prefix_tree.py265CODE
LOWtests/unit/test_prefix_tree.py367CODE
LOWtests/unit/test_prefix_tree.py388CODE
LOWtests/unit/test_prefix_tree.py441CODE
LOWtests/unit/test_planner_replay_owner_budget.py32CODE
LOWtests/unit/test_trainer_rank_custom_tensors.py177CODE
LOWtests/unit/test_trainer_rank_cache_recovery.py650CODE
LOWtests/unit/test_trainer_rank_head_recompute.py225CODE
LOWtests/unit/test_trainer_rank_head_recompute.py259CODE
LOWtests/unit/test_moe_compile_cache.py41CODE
431 more matches not shown…
Decorative Section Separators92 hits · 324 pts
SeverityFileLineSnippetContext
MEDIUMskypilot-config.yaml358# ----------------------------------------------------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/unit/test_multi_checkpoint_inference.py22# =============================================================================COMMENT
MEDIUM⚡tests/unit/test_multi_checkpoint_inference.py24# =============================================================================COMMENT
MEDIUM⚡tests/unit/test_multi_checkpoint_inference.py130# =============================================================================COMMENT
MEDIUM⚡tests/unit/test_multi_checkpoint_inference.py132# =============================================================================COMMENT
MEDIUM⚡tests/unit/test_multi_checkpoint_inference.py198# =============================================================================COMMENT
MEDIUM⚡tests/unit/test_multi_checkpoint_inference.py200# =============================================================================COMMENT
MEDIUM⚡tests/unit/test_multi_checkpoint_inference.py254# =============================================================================COMMENT
MEDIUM⚡tests/unit/test_multi_checkpoint_inference.py256# =============================================================================COMMENT
MEDIUM⚡tests/unit/test_multi_checkpoint_inference.py296# =============================================================================COMMENT
MEDIUM⚡tests/unit/test_multi_checkpoint_inference.py298# =============================================================================COMMENT
MEDIUM⚡tests/unit/test_multi_checkpoint_inference.py403# =============================================================================COMMENT
MEDIUM⚡tests/unit/test_multi_checkpoint_inference.py405# =============================================================================COMMENT
MEDIUMscripts/deploy-model.py15# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/deploy-model.py17# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/deploy-model.py45# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/deploy-model.py47# ---------------------------------------------------------------------------COMMENT
MEDIUMdev/trainer_rank_landing_acceptance.py117# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡dev/sft/sft-warmup.py62 # ========================================================================COMMENT
MEDIUM⚡dev/sft/sft-warmup.py64 # ========================================================================COMMENT
MEDIUM⚡dev/sft/sft-warmup.py72 # ========================================================================COMMENT
MEDIUM⚡dev/sft/sft-warmup.py74 # ========================================================================COMMENT
MEDIUM⚡dev/sft/sft-warmup.py89 # ========================================================================COMMENT
MEDIUM⚡dev/sft/sft-warmup.py91 # ========================================================================COMMENT
MEDIUM⚡dev/sft/sft-warmup.py99 # ========================================================================COMMENT
MEDIUM⚡dev/sft/sft-warmup.py101 # ========================================================================COMMENT
MEDIUMdev/sft/sft-warmup.py116 # ========================================================================COMMENT
MEDIUMdev/sft/sft-warmup.py118 # ========================================================================COMMENT
MEDIUMsrc/art/types.py83# ---------------------------------------------------------------------------COMMENT
MEDIUMsrc/art/types.py85# ---------------------------------------------------------------------------COMMENT
MEDIUMsrc/art/model.py769 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/art/model.py771 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/art/model.py1486# ---------------------------------------------------------------------------COMMENT
MEDIUMsrc/art/model.py1488# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡src/art/serverless/backend.py726 # ------------------------------------------------------------------COMMENT
MEDIUM⚡src/art/serverless/backend.py728 # ------------------------------------------------------------------COMMENT
MEDIUM⚡src/art/utils/trajectory_migration.py26# ============================================================================COMMENT
MEDIUM⚡src/art/utils/trajectory_migration.py28# ============================================================================COMMENT
MEDIUM⚡src/art/utils/trajectory_migration.py171# ============================================================================COMMENT
MEDIUM⚡src/art/utils/trajectory_migration.py173# ============================================================================COMMENT
MEDIUM…benchmarking/charts/percentage_comparison_bar_chart.py81 # ------------------------------------------------------------------COMMENT
MEDIUM…benchmarking/charts/percentage_comparison_bar_chart.py83 # ------------------------------------------------------------------COMMENT
MEDIUM…benchmarking/charts/percentage_comparison_bar_chart.py108 # ------------------------------------------------------------------COMMENT
MEDIUM…benchmarking/charts/percentage_comparison_bar_chart.py110 # ------------------------------------------------------------------COMMENT
MEDIUM⚡…benchmarking/charts/percentage_comparison_bar_chart.py133 # ------------------------------------------------------------------COMMENT
MEDIUM⚡…benchmarking/charts/percentage_comparison_bar_chart.py135 # ------------------------------------------------------------------COMMENT
MEDIUM⚡…benchmarking/charts/percentage_comparison_bar_chart.py140 # ------------------------------------------------------------------COMMENT
MEDIUM⚡…benchmarking/charts/percentage_comparison_bar_chart.py142 # ------------------------------------------------------------------COMMENT
MEDIUM…benchmarking/charts/percentage_comparison_bar_chart.py204 # ------------------------------------------------------------------COMMENT
MEDIUM…benchmarking/charts/percentage_comparison_bar_chart.py206 # ------------------------------------------------------------------COMMENT
MEDIUM⚡…benchmarking/charts/percentage_comparison_bar_chart.py226 # ------------------------------------------------------------------COMMENT
MEDIUM⚡…benchmarking/charts/percentage_comparison_bar_chart.py228 # ------------------------------------------------------------------COMMENT
MEDIUM…benchmarking/charts/percentage_comparison_bar_chart.py243 # ------------------------------------------------------------------COMMENT
MEDIUM…benchmarking/charts/percentage_comparison_bar_chart.py245 # ------------------------------------------------------------------COMMENT
MEDIUM…t/utils/benchmarking/charts/training_progress_chart.py74 # ------------------------------------------------------------------COMMENT
MEDIUM…t/utils/benchmarking/charts/training_progress_chart.py76 # ------------------------------------------------------------------COMMENT
MEDIUM…t/utils/benchmarking/charts/training_progress_chart.py134 # ------------------------------------------------------------------COMMENT
MEDIUM…t/utils/benchmarking/charts/training_progress_chart.py136 # ------------------------------------------------------------------COMMENT
MEDIUM…t/utils/benchmarking/charts/training_progress_chart.py163 # ------------------------------------------------------------------COMMENT
MEDIUM…t/utils/benchmarking/charts/training_progress_chart.py167 # ------------------------------------------------------------------COMMENT
32 more matches not shown…
Excessive Try-Catch Wrapping241 hits · 254 pts
SeverityFileLineSnippetContext
LOW…m_runtime/src/art_vllm_runtime/_shared/token_prefix.py1023 except Exception:CODE
MEDIUMtests/integration.py280 print(f"Error parsing indexes '{indexes_str}': {e}")CODE
MEDIUMtests/integration.py316 print("Error: No valid notebook indexes specified")STRING
LOW⚡tests/unit/trajectories/conftest.py173 except Exception as error: # noqa: BLE001 - reported below as a harness bugCODE
LOWtests/unit/trajectories/_tokenize_golden.py101 except Exception as error: # noqa: BLE001 - never let the harness break a testCODE
LOW⚡tests/unit/trajectories/test_compact_serialization.py353 except Exception as error:CODE
LOWtests/integration/test_multi_checkpoint_training.py202 except Exception:CODE
LOWtests/integration/test_push_and_fork.py112 except Exception:CODE
LOWtests/integration/test_push_and_fork.py194 except Exception:CODE
LOWtests/integration/test_push_and_fork.py257 except Exception:CODE
LOWtests/integration/megatron/routing_replay/trace.py342 except Exception:CODE
LOW…ts/integration/megatron/gdn_shared_prefix/artifacts.py109 except Exception:CODE
LOW…sts/integration/megatron/lora/test_lora_disk_codecs.py95 except Exception as exc:CODE
LOW…rain_inf_mismatch/test_live_real_path_output_parity.py127 except Exception as error:CODE
LOW…s/integration/megatron/train_inf_mismatch/real_path.py1320 except Exception:CODE
LOW…_inf_mismatch/vllm_forward_trace_site/sitecustomize.py289 except Exception as exc:CODE
LOW…_inf_mismatch/vllm_forward_trace_site/sitecustomize.py363 except Exception as exc:CODE
LOW…ts/integration/megatron/model_support/forward_trace.py122 except Exception:CODE
LOW…ts/integration/megatron/model_support/forward_trace.py142 except Exception:CODE
LOW…egration/megatron/model_support/workflow_forkserver.py412 except Exception as exc:CODE
LOW…egration/megatron/model_support/workflow_forkserver.py455 except Exception:CODE
LOW…egration/megatron/model_support/workflow_forkserver.py479 except Exception as exc:CODE
LOW…egration/megatron/model_support/workflow_forkserver.py490 except Exception as cleanup_error:CODE
LOW…ration/megatron/model_support/workflow_stage_worker.py270 except Exception as exc:CODE
LOW…ration/megatron/model_support/workflow_stage_worker.py314 except Exception as exc:CODE
LOW…tegration/megatron/model_support/workflow_scheduler.py1316 except Exception as exc:CODE
LOW⚡…s/integration/megatron/model_support/oracle_harness.py1007 except Exception:CODE
LOW⚡…s/integration/megatron/model_support/oracle_harness.py1015 except Exception:CODE
LOW…s/integration/megatron/model_support/oracle_harness.py935 except Exception:CODE
LOW…s/integration/megatron/model_support/oracle_harness.py1566 except Exception:CODE
LOW…ntegration/megatron/model_support/fp32_grouped_gemm.py19 except Exception:CODE
LOWtests/integration/megatron/model_support/workflow.py1096 except Exception as exc:CODE
LOWtests/integration/megatron/model_support/workflow.py1133 except Exception as exc:CODE
LOWtests/integration/megatron/model_support/workflow.py1162 except Exception as exc:CODE
LOWtests/integration/megatron/model_support/workflow.py1174 except Exception as exc:CODE
LOW.agents/skills/train-sft/SKILL.md55 except Exception as e:CODE
LOWexamples/2048/utils.py150 except Exception:CODE
LOWexamples/2048/rollout.py67 except Exception as e:CODE
LOWexamples/mcp-rl/test_scenario_generation.py145 except Exception as e:CODE
LOWexamples/mcp-rl/test_scenario_generation.py177 except Exception as e:CODE
LOWexamples/mcp-rl/test_scenario_generation.py234 except Exception as e:CODE
LOWexamples/mcp-rl/test_scenario_generation.py253 except Exception as e:CODE
LOWexamples/mcp-rl/test_scenario_generation.py269 except Exception as e:CODE
LOWexamples/mcp-rl/test_scenario_generation.py313 except Exception as e:CODE
LOWexamples/mcp-rl/mcp_rl/checks.py104 except Exception as e:CODE
MEDIUMexamples/mcp-rl/mcp_rl/checks.py105 print(f"Error during LLM evaluation: {e}")CODE
LOWexamples/mcp-rl/mcp_rl/rollout.py182 except Exception as e:CODE
MEDIUMexamples/mcp-rl/mcp_rl/rollout.py183 print(f"Error checking success: {e}")CODE
LOWexamples/mcp-rl/mcp_rl/rollout.py219 except Exception as e:CODE
LOWexamples/mcp-rl/mcp_rl/rollout.py234 except Exception as e:CODE
LOWexamples/mcp-rl/mcp_rl/rollout.py238 except Exception as e:CODE
LOWexamples/mcp-rl/mcp_rl/train.py213 except Exception as e:CODE
LOWexamples/mcp-rl/mcp_rl/scenario_generator.py68 except Exception:CODE
MEDIUMexamples/mcp-rl/mcp_rl/scenario_generator.py221 print(f"Error: Server params file not found: {args.server_params_path}")CODE
LOWexamples/mcp-rl/mcp_rl/scenario_generator.py251 except Exception as e:CODE
MEDIUMexamples/mcp-rl/mcp_rl/scenario_generator.py252 print(f"Error generating scenarios: {e}")CODE
LOW…amples/mcp-rl/servers/python/mcp_balldontlie/server.py273 except Exception as e:CODE
LOWexamples/mcp-rl/servers/python/mcp_googlemaps/server.py441 except Exception as e:CODE
LOW…mples/mcp-rl/servers/python/mcp_alphavantage/server.py314 except Exception as e:CODE
LOWexamples/tic_tac_toe_self_play/game_utils.py49 except Exception:CODE
181 more matches not shown…
Modern Structural Boilerplate98 hits · 101 pts
SeverityFileLineSnippetContext
LOWvllm_runtime/src/art_vllm_runtime/policy_spans.py592def _set_pydantic_extra(model: Any, key: str, value: Any) -> None:CODE
LOWvllm_runtime/src/art_vllm_runtime/metrics.py187 def set_writer(self, writer: FastMetricsSharedWriter | None) -> None:CODE
LOW⚡vllm_runtime/src/art_vllm_runtime/metrics.py260def set_fast_metrics_writer(writer: FastMetricsSharedWriter | None) -> None:CODE
LOWvllm_runtime/src/art_vllm_runtime/__init__.py6__all__ = [CODE
LOW…m_runtime/src/art_vllm_runtime/_shared/token_prefix.py24logger = logging.getLogger(__name__)CODE
LOWtests/unit/test_moe_routing_replay.py170 def set_target_indices(self, topk_indices: torch.Tensor) -> None:CODE
LOWtests/unit/test_moe_routing_replay.py174 def set_router_replay_action(self, action: Any) -> None:CODE
LOWtests/integration/megatron/routing_replay/bundle.py5__all__ = ["build_bundle_from_forward_trace_dir"]CODE
LOW…tegration/megatron/train_inf_mismatch/output_parity.py776def _set_seed(seed: int) -> None:CODE
LOWtests/integration/megatron/trainability/__init__.py17__all__ = [CODE
LOW…ts/integration/megatron/model_support/oracle_worker.py205def _set_deterministic_seed(seed: int) -> None:CODE
LOW…s/integration/megatron/model_support/gdn_trace_uids.py28 def set_module_token_uids(self, module: Any, token_uids: Tensor | None) -> None:CODE
LOW⚡…s/integration/megatron/model_support/gdn_trace_uids.py89 def set_out_proj_lora_token_uids(self, gdn: Any, hidden_states: Tensor) -> None:CODE
LOW⚡…s/integration/megatron/model_support/gdn_trace_uids.py98 def set_out_norm_token_uids(self, gdn: Any, token_uids: Tensor) -> None:CODE
LOW…s/integration/megatron/model_support/oracle_harness.py603 def update_router_ids(self, reference_ids, candidate_ids) -> None: # type: ignore[no-untyped-def]CODE
LOWtests/integration/megatron/model_support/hf_parity.py479__all__ = [CODE
LOWexamples/mcp-rl/mcp_rl/__init__.py6__all__ = ["rollout", "McpScenario", "McpServer", "AlphaMcpServer"]CODE
LOWdev/trainer_rank_landing_acceptance.py2283def _set_planner_variant(variant: str) -> None:CODE
LOWsrc/art/metrics.py776 def _update_throughput_metrics(self, result: dict[str, float]) -> None:CODE
LOWsrc/art/gather.py243 def update_pbar(self, n: int) -> None:CODE
LOWsrc/art/__init__.py100__all__ = [CODE
LOWsrc/art/model.py1547 def set_cost_calculator(self, calculator: CostCalculator | None) -> None:CODE
LOWsrc/art/langgraph/__init__.py3__all__ = ["wrap_rollout", "init_chat_model"]CODE
LOWsrc/art/distributed/host_admission.py450def _update_digest(digest: hashlib._Hash, value: bytes) -> None:CODE
LOWsrc/art/distributed/art_runtime.py78logger = logging.getLogger(__name__)CODE
LOWsrc/art/distributed/rollout.py201 def set_target(self, target_workers: int) -> None: ...CODE
LOWsrc/art/distributed/rollout.py203 def set_workers(self, worker_ids: tuple[int, ...]) -> None: ...CODE
LOWsrc/art/distributed/rollout.py247 def set_target(self, target_workers: int) -> None:CODE
LOWsrc/art/distributed/rollout.py251 def set_workers(self, worker_ids: tuple[int, ...]) -> None:CODE
LOWsrc/art/distributed/rollout.py416 def set_maxsize(self, maxsize: int) -> None:CODE
LOWsrc/art/distributed/rollout.py986 def set_target(self, target_workers: int) -> None:CODE
LOWsrc/art/distributed/rollout.py997 def set_workers(self, worker_ids: tuple[int, ...]) -> None:CODE
LOWsrc/art/tinker_native/__init__.py3__all__ = ["TinkerNativeBackend"]CODE
LOWsrc/art/serverless/__init__.py3__all__ = ["ServerlessBackend"]CODE
LOWsrc/art/tau_bench/client.py30logger = logging.getLogger(__name__)CODE
LOWsrc/art/tau_bench/__init__.py15__all__ = [CODE
LOWsrc/art/rewards/__init__.py3__all__ = ["ruler", "ruler_score_group"]CODE
LOWsrc/art/pipeline_tuner/__init__.py27__all__ = [CODE
LOWsrc/art/pipeline_tuner/worker_controller.py15 def set_target(self, target_workers: int) -> None:CODE
LOWsrc/art/utils/__init__.py10__all__ = [CODE
LOWsrc/art/utils/deploy_model.py36__all__ = [CODE
LOWsrc/art/utils/managed_process.py26def set_parent_death_signal(parent_pid: int, sig: signal.Signals) -> None:CODE
LOWsrc/art/utils/strip_logprobs.py6logger = logging.getLogger(__name__)CODE
LOWsrc/art/utils/deployment/__init__.py23__all__ = [CODE
LOWsrc/art/utils/benchmarking/charts/__init__.py4__all__ = ["percentage_comparison_bar_chart", "training_progress_chart"]CODE
LOWsrc/art/mcp/__init__.py12__all__ = [CODE
LOWsrc/art/local/backend.py30logger = logging.getLogger(__name__)CODE
LOWsrc/art/local/__init__.py3__all__ = ["LocalBackend"]CODE
LOWsrc/art/pipeline_trainer/__init__.py16__all__ = [CODE
LOWsrc/art/pipeline_trainer/checkpoint_retention.py65__all__ = [CODE
LOWsrc/art/pipeline_trainer/status.py89 def set_step(self, step: int) -> None:CODE
LOWsrc/art/trainer_rank/_prefix_tree_planner.py835__all__ = [CODE
LOWsrc/art/trainer_rank/_impl.py143logger = logging.getLogger(__name__)CODE
LOWsrc/art/trainer_rank/_impl.py5022 def _set_hybridep_rows(rows: int) -> None:CODE
LOWsrc/art/trainer_rank/_impl.py6423__all__ = [CODE
LOWsrc/art/trainer_rank/_slots.py643def _set_default_slot(self: TrainerRank, ref: "LoRASlotRef") -> None:CODE
LOWsrc/art/trainer_rank/__init__.py418__all__ = [CODE
LOWsrc/art/trainer_rank/_planner_cost.py917__all__ = [CODE
LOWsrc/art/trainer_rank/_prefix_tree_performance_search.py611__all__ = [CODE
LOWsrc/art/trainer_rank/_planner_misses.py87def set_report_sink(sink: Callable[[Path], None] | None) -> None:CODE
38 more matches not shown…
Cross-Language Confusion14 hits · 92 pts
SeverityFileLineSnippetContext
HIGHtests/test_backend_train_api.py6 cd /workspace/ART && source .venv/bin/activateSTRING
HIGH⚡tests/unit/test_trainer_rank_manual_reuse.py279 calls.push(['runs', args.event]);CODE
HIGH⚡tests/unit/test_trainer_rank_manual_reuse.py284 calls.push(['jobs', args.run_id, args.attempt_number]);CODE
HIGH⚡tests/unit/test_trainer_rank_manual_reuse.py289 calls.push(['download', args.artifact_id]);CODE
HIGH⚡tests/unit/test_auto_trajectory.py119mock_stream_response = b"""data: {"id":"chatcmpl-aa0d1e3261414f53acafc2f8e53bf9d6","object":"chat.completion.chunk","creCODE
HIGH⚡tests/unit/test_auto_trajectory.py121data: {"id":"chatcmpl-aa0d1e3261414f53acafc2f8e53bf9d6","object":"chat.completion.chunk","created":1755831263,"model":"tCODE
HIGH⚡tests/unit/test_auto_trajectory.py123data: {"id":"chatcmpl-aa0d1e3261414f53acafc2f8e53bf9d6","object":"chat.completion.chunk","created":1755831263,"model":"tCODE
HIGH⚡tests/unit/test_auto_trajectory.py125data: {"id":"chatcmpl-aa0d1e3261414f53acafc2f8e53bf9d6","object":"chat.completion.chunk","created":1755831263,"model":"tCODE
HIGH⚡tests/unit/test_auto_trajectory.py127data: {"id":"chatcmpl-aa0d1e3261414f53acafc2f8e53bf9d6","object":"chat.completion.chunk","created":1755831263,"model":"tCODE
HIGH⚡tests/unit/test_auto_trajectory.py129data: {"id":"chatcmpl-aa0d1e3261414f53acafc2f8e53bf9d6","object":"chat.completion.chunk","created":1755831263,"model":"tCODE
HIGH⚡tests/unit/test_auto_trajectory.py131data: {"id":"chatcmpl-aa0d1e3261414f53acafc2f8e53bf9d6","object":"chat.completion.chunk","created":1755831263,"model":"tCODE
HIGH⚡scripts/bump_version.py77 f"1. Commit the change: git add pyproject.toml uv.lock && git commit -m 'Bump version to {new}'"CODE
HIGHsrc/art/preprocessing/dynamo_tokens.py51 """Decode unavailable (null) and impossible (\"-inf\") prompt scores."""STRING
HIGHsrc/art/preprocessing/dynamo_tokens.py71 "compact_prompt_logprobs requires finite numbers, null, or '-inf'"CODE
Docstring Block Structure8 hits · 40 pts
SeverityFileLineSnippetContext
HIGHexamples/mcp-rl/mcp_rl/mcp_server.py140Apply a tool with given arguments. Args: tool_name: Name of the tool to call arguments:STRING
HIGHexamples/mcp-rl/mcp_rl/mcp_server.py244Execute a tool via the API server. Args: tool_name: Name of the tool to call arguments:STRING
HIGHexamples/just-the-facts/just_the_facts/utils.py10 Scrape article text from a news URL (Fox News, MSNBC, etc.) Args: url: The URL of the news article to STRING
HIGHsrc/art/openai.py41Consume a chat completion stream and build a complete ChatCompletion object. This function processes a stream of ChSTRING
HIGHsrc/art/utils/model_config.py28Detect instruction and response parts from a tokenizer's chat template. Args: tokenizer: A tokenizer with aSTRING
HIGHsrc/art/utils/model_config.py80Get instruction and response parts for a model. Checks for explicit model configuration first, then falls back to STRING
HIGHsrc/art/utils/sft.py53 Count the number of non-empty rows in a JSONL file. Args: file_path: Path to JSONL file Returns: STRING
HIGHsrc/art/utils/sft.py282 Stream trajectories from a JSONL file for one or more epochs. Uses buffer-based shuffling to randomize order wSTRING
Self-Referential Comments14 hits · 39 pts
SeverityFileLineSnippetContext
MEDIUMskypilot-config.yaml235# \# Create a private VPC image and paste its ID in the following format:COMMENT
MEDIUMskypilot-config.yaml317# \# Create a S3 bucket named sky-dataset, uploads the contents ofCOMMENT
MEDIUMtests/unit/test_frontend_logging.py280 # Create a mock trainable model with step > 0COMMENT
MEDIUMtests/unit/test_trajectory_copy.py158 # Create a memo dict with a circular referenceCOMMENT
MEDIUMtests/unit/test_trajectory_parquet.py990 # Create a JSONL file with enough content to benefit from compressionCOMMENT
MEDIUMexamples/mcp-rl/mcp_rl/scenario_generator.py113 # Define the JSON schema for the responseCOMMENT
MEDIUMsrc/art/test/test_step_skipping.py39 # Create a temporary directory for the testCOMMENT
MEDIUMsrc/art/test/test_step_skipping.py45 # Create a test modelCOMMENT
MEDIUMsrc/art/distributed/monarch_actor.py15# This module is imported only by explicit distributed runtime construction.COMMENT
MEDIUMsrc/art/tinker_native/backend.py1153 # Create a sampler client from the new weightsCOMMENT
MEDIUMsrc/art/serverless/backend.py792 # Create a temporary directory that won't be cleaned up automaticallyCOMMENT
MEDIUMsrc/art/rewards/ruler.py383 # Create a new trajectory with the same data but fresh objectsSTRING
MEDIUMsrc/art/utils/litellm.py83 # Create the OpenAI Choice objectCOMMENT
MEDIUMsrc/art/utils/old_benchmarking/generate_line_graphs.py55 plt.figure() # Create a new figure for each metricCODE
AI Structural Patterns49 hits · 38 pts
SeverityFileLineSnippetContext
LOWtests/unit/trajectories/test_tokenize.py3157CODE
LOW…s/integration/megatron/model_support/oracle_harness.py2408CODE
LOW…s/integration/megatron/model_support/oracle_harness.py1273CODE
LOWdev/trainer_rank_check.py68CODE
LOWdev/megatron_review_perf.py39CODE
LOWsrc/art/_backend_training.py37CODE
LOWsrc/art/model.py534CODE
LOWsrc/art/model.py582CODE
LOWsrc/art/model.py1506CODE
LOWsrc/art/distributed/packing.py281CODE
LOWsrc/art/tinker_native/backend.py335CODE
LOWsrc/art/serverless/backend.py227CODE
LOWsrc/art/tau_bench/client.py317CODE
LOWsrc/art/tau_bench/rollout.py32CODE
LOWsrc/art/tau_bench/rollout.py50CODE
LOWsrc/art/tau_bench/rollout.py70CODE
LOWsrc/art/utils/sft.py145CODE
LOWsrc/art/utils/sft.py342CODE
LOWsrc/art/utils/strip_logprobs.py32CODE
LOWsrc/art/local/backend.py1283CODE
LOWsrc/art/local/backend.py2132CODE
LOWsrc/art/pipeline_trainer/trainer.py191CODE
LOWsrc/art/trainer_rank/_memory.py1668CODE
LOWsrc/art/trajectories/_serialization.py392CODE
LOWsrc/art/trajectories/_serialization.py443CODE
LOWsrc/art/trajectories/__init__.py1692CODE
LOWsrc/art/trajectories/__init__.py1722CODE
LOWsrc/art/trajectories/__init__.py1751CODE
LOWsrc/art/trajectories/__init__.py897CODE
LOWsrc/art/trajectories/__init__.py924CODE
LOWsrc/art/trajectories/__init__.py1118CODE
LOWsrc/art/trajectories/__init__.py1145CODE
LOWsrc/art/megatron/prefix_tree_state.py61CODE
LOWsrc/art/megatron/train.py409CODE
LOWsrc/art/megatron/train.py2626CODE
LOWsrc/art/megatron/_hybrid_ep/deep_ep/hybrid_ep_buffer.py56CODE
LOWsrc/art/megatron/_hybrid_ep/deep_ep/hybrid_ep_buffer.py220CODE
LOWsrc/art/megatron/_hybrid_ep/deep_ep/hybrid_ep_buffer.py367CODE
LOWsrc/art/megatron/runtime/bridge_runtime.py588CODE
LOWsrc/art/megatron/runtime/te_cutlass_grouped_gemm.py32CODE
LOWsrc/art/megatron/dsv4/deepseek_v4.py467CODE
LOWsrc/art/megatron/dsv4/layer.py273CODE
LOWsrc/art/megatron/gdn/operator.py390CODE
LOWsrc/art/megatron/flex_attn/attention.py262CODE
LOWsrc/art/megatron/flex_attn/flash_dlse_patch.py220CODE
LOWsrc/art/megatron/context_parallel/core_attention.py137CODE
LOWsrc/art/megatron/context_parallel/runtime.py2311CODE
LOWsrc/art/megatron/model_support/handlers/gemma4.py1067CODE
LOWsrc/art/megatron/model_support/handlers/gemma4.py1167CODE
Over-Commented Block37 hits · 36 pts
SeverityFileLineSnippetContext
LOWskypilot-config.yaml1# Title: Task YAML — SkyPilot documentationCOMMENT
LOWskypilot-config.yaml21# \# which \`sky\` is called.COMMENT
LOWskypilot-config.yaml41# \# if this is specified.COMMENT
LOWskypilot-config.yaml61# \# Format: {<name\>:<count\>, ...}COMMENT
LOWskypilot-config.yaml81# \# E.g., 32+ means first try to find an instance type with \>\= 32 GiB. IfCOMMENT
LOWskypilot-config.yaml101# \# If \`EAGER\_NEXT\_REGION\` is specified, the job will go to the next regionCOMMENT
LOWskypilot-config.yaml121# \# low: 1000 IOPS; read 90 MB/s; write 90 MB/sCOMMENT
LOWskypilot-config.yaml141# \# be removed until the cluster is terminated.COMMENT
LOWskypilot-config.yaml161# #COMMENT
LOWskypilot-config.yaml181# \# Docker supportCOMMENT
LOWskypilot-config.yaml201# \# custom images in multiple regions):COMMENT
LOWskypilot-config.yaml221# \# image\_id: skypilot:gpu-ubuntu-2004COMMENT
LOWskypilot-config.yaml241# \# To use a more limited but easier to manage tool:COMMENT
LOWskypilot-config.yaml261# \# outside of \`any\_of\`, \`ordered\` will be used as the default values forCOMMENT
LOWskypilot-config.yaml281# \# \`sky launch/exec --env ENV=val\` (if ENV is present).COMMENT
LOWskypilot-config.yaml301# envs:COMMENT
LOWskypilot-config.yaml321# #COMMENT
LOWskypilot-config.yaml341# #COMMENT
LOWskypilot-config.yaml361COMMENT
LOW…tegration/megatron/train_inf_mismatch/output_parity.py21# These gates are intentionally bf16-scale, not fp32 oracle-scale. A 2026-05-18COMMENT
LOWrequirements/backend.vcs.txt1# Pinned backend dependencies that must come from VCS (not allowed in PyPI metadata).COMMENT
LOWdev/trainer_rank_landing_acceptance_cp1.sky.yaml1# Landing acceptance: CP1 no-regression cells (1x H200, Kubernetes).COMMENT
LOWdev/trainer_rank_landing_acceptance_tp2.sky.yaml1# TP support gate: DP1 x TP2 x CP1 public dp_rank_forward cell (2x H200, Kubernetes).COMMENT
LOWdev/trainer_rank_landing_acceptance_gdn_cp4.sky.yaml1# Landing acceptance: GRPO GDN CP4 depth>1 win cell (4x H200, Kubernetes).COMMENT
LOWdev/trainer_rank_landing_acceptance.py81# Gate thresholds (sealed measurement -> conservative landing gate).COMMENT
LOWdev/trainer_rank_landing_acceptance.py961 dist.destroy_process_group()COMMENT
LOWdev/trainer_rank_landing_acceptance.py2101CALIBRATION_CORPUS_BY_CELL = {"cal-ellavox": "qwen35", "cal-ellavox-qwen3": "qwen3"}COMMENT
LOWdev/trainer_rank_landing_acceptance_dp2_tp2.sky.yaml1# TP support gate: DP2 x TP2 public forward_micro_batches cell (4x H200, Kubernetes).COMMENT
LOWdev/trainer_rank_cost_calibration_cp4.sky.yaml1# Cost-model calibration: CP4 cells (4x H200, Kubernetes).COMMENT
LOWdev/trainer_rank_cost_calibration_lattice.sky.yaml1# Cost-model calibration on a 4x H200 node over an explicit lattice ofCOMMENT
LOWsrc/art/tinker/server.py621 base_model = sampler_response.base_modelCOMMENT
LOW…benchmarking/charts/percentage_comparison_bar_chart.py241 ax.spines["right"].set_visible(False)COMMENT
LOWsrc/art/trainer_rank/_planner_cost.py121# Interpretable cost terms: integer functions of (features, facts) inCOMMENT
LOWsrc/art/trainer_rank/_planner_cost.py781# #854). Admitted at TP1 x CP1/2/4 and TP2 x CP1 (the ten terms rank this GDNCOMMENT
LOWsrc/art/megatron/_hybrid_ep/deep_ep/hybrid_ep_buffer.py381 num_permuted_tokens: int = None,COMMENT
LOW…tron/_hybrid_ep/csrc/hybrid_ep/buffer/nixl_connector.h1// SPDX-License-Identifier: MITCOMMENT
LOWsrc/art/megatron/context_parallel/types.py101 # Compute the rest of the layer does per token a rank owns (projections,COMMENT
AI Slop Vocabulary8 hits · 24 pts
SeverityFileLineSnippetContext
MEDIUMtests/unit/test_trainer_rank_tp_floor.py48# of earlier tensors freed during it depress its harness peak) and productionCOMMENT
MEDIUM⚡tests/unit/trajectories/conftest.py173 except Exception as error: # noqa: BLE001 - reported below as a harness bugCODE
MEDIUM⚡tests/unit/trajectories/conftest.py174 # An undigestable output is a harness bug. Never store a truncatedCOMMENT
MEDIUMtests/unit/trajectories/_tokenize_golden.py101 except Exception as error: # noqa: BLE001 - never let the harness break a testCODE
MEDIUMexamples/hn_title_generator/train.py138 # Be robust to variations like "True.", " False", etc.COMMENT
MEDIUMdev/trainer_rank_landing_acceptance.py1984# --- Cost-model calibration harness ------------------------------------------COMMENT
MEDIUMdev/trainer_rank_cost_calibration_lattice.sky.yaml35 # Extra harness arguments, e.g. "--planner-ab" for the paired CP planner A/B.COMMENT
MEDIUMsrc/art/trainer_rank/_planner_cost.py739# multi-second stalls; medians are robust to them.COMMENT
Magic Placeholder Names4 hits · 20 pts
SeverityFileLineSnippetContext
HIGHexamples/mcp-rl/servers/python/mcp_googlemaps/README.md39python server.py --api-key YOUR_API_KEYCODE
HIGHexamples/mcp-rl/servers/python/mcp_googlemaps/README.md44export GOOGLE_MAPS_API_KEY=your_api_keyCODE
HIGH…mples/mcp-rl/servers/python/mcp_alphavantage/README.md25python server.py --api-key YOUR_API_KEYCODE
HIGH…mples/mcp-rl/servers/python/mcp_alphavantage/README.md30export ALPHAVANTAGE_API_KEY=your_api_keyCODE
Structural Annotation Overuse9 hits · 16 pts
SeverityFileLineSnippetContext
LOW⚡.agents/skills/train-sft/SKILL.md14## Step 1: Determine Training ScenarioCOMMENT
LOW⚡.agents/skills/train-sft/SKILL.md22## Step 2: Determine BackendCOMMENT
LOW⚡.agents/skills/train-sft/SKILL.md28## Step 3: Select and Validate Dataset (JSONL scenario)COMMENT
LOW.agents/skills/train-sft/SKILL.md68## Step 4: Gather Base ParametersCOMMENT
LOW.agents/skills/train-sft/SKILL.md84## Step 5: Gather HyperparametersCOMMENT
LOW.agents/skills/train-sft/SKILL.md111## Step 6: Generate the Training ScriptCOMMENT
LOW.agents/skills/train-sft/SKILL.md287## Step 7: Write and Offer to RunSTRING
LOW⚡src/art/local/backend.py2088 # Step 1: Ensure checkpoint exists at original_checkpoint_dirCOMMENT
LOWsrc/art/local/backend.py2112 # Step 2: Handle local_path if providedCOMMENT
Cross-File Repetition3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHsrc/art/token_prefix.py0compatibility imports for art's lightweight inference helpers.STRING
HIGHsrc/art/utils/chat_template.py0compatibility imports for art's lightweight inference helpers.STRING
HIGHsrc/art/utils/append_only.py0compatibility imports for art's lightweight inference helpers.STRING
Redundant / Tautological Comments10 hits · 15 pts
SeverityFileLineSnippetContext
LOWexamples/hn_title_generator/reference_grpo_trainer.py289 if scores: # Check if scores list is not emptyCODE
LOWexamples/hn_title_generator/reference_grpo_trainer.py310 if v_list: # Check if list for metric is not emptyCODE
LOWscripts/publish.sh8# Check if PYPI_ART_TOKEN is setCOMMENT
LOWdev/trainer_rank_recompute_memory.sky.yaml2# Set ART_CALIBRATION_SOURCE_SHA to the commit synced in workdir.COMMENT
LOWsrc/art/utils/s3_checkpoint_utils.py166 # Check if it's a 4-digit checkpoint directory (old format)COMMENT
LOWsrc/art/utils/s3_checkpoint_utils.py192 # Check if already exists in new locationCOMMENT
LOWsrc/art/utils/s3.py133 # Check if bucket existsCOMMENT
LOW⚡src/art/local/backend.py2083 # Check if checkpoint exists in the original training locationCOMMENT
LOWsrc/art/megatron/dsv4/encoding.py347 # Check if previous message has a task - if so, this is a task output (no thinking)COMMENT
LOWsrc/mp_actors/move.py253 # Check if it's a method or propertyCOMMENT
Example Usage Blocks8 hits · 12 pts
SeverityFileLineSnippetContext
LOWskypilot-config.yaml156# \# Example usage:COMMENT
LOWdev/trainer_rank_landing_acceptance_cp1.sky.yaml8# Usage:COMMENT
LOWdev/trainer_rank_landing_acceptance_tp2.sky.yaml10# Usage:COMMENT
LOWdev/trainer_rank_landing_acceptance_gdn_cp4.sky.yaml9# Usage:COMMENT
LOWdev/trainer_rank_landing_acceptance_dp2_tp2.sky.yaml11# Usage:COMMENT
LOWdev/trainer_rank_cost_calibration_cp4.sky.yaml12# Usage:COMMENT
LOWdev/trainer_rank_cost_calibration_lattice.sky.yaml12# Usage:COMMENT
LOWdev/trainer_rank_cost_calibration_2gpu.sky.yaml8# Usage:COMMENT
Synthetic Comment Markers1 hit · 11 pts
SeverityFileLineSnippetContext
HIGH⚡…benchmarking/charts/percentage_comparison_bar_chart.py231 # Remove y-axis label, ticks, and spine as requestedCOMMENT
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICALtests/unit/test_trainer_rank_shared_memory.py178 x.shared_experts.linear_fc2.row_parallel_lora.linear_proj.float()CODE
Dead Code4 hits · 8 pts
SeverityFileLineSnippetContext
MEDIUMtests/unit/test_inference_history.py964CODE
MEDIUMtests/unit/test_frontend_logging.py1160CODE
MEDIUMsrc/art/tinker/service.py217CODE
MEDIUMsrc/art/tinker_native/backend.py504CODE
Verbosity Indicators2 hits · 4 pts
SeverityFileLineSnippetContext
LOW⚡src/art/local/backend.py2088 # Step 1: Ensure checkpoint exists at original_checkpoint_dirCOMMENT
LOWsrc/art/local/backend.py2112 # Step 2: Handle local_path if providedCOMMENT
Modern AI Meta-Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMtests/unit/test_literal_reasoning_content.py709 # Explicit opt-out still removes the previous turn's reasoning scaffold;COMMENT