Repository Analysis

areal-project/AReaL

The RL Bridge for LLM-based Agent Applications. Made Simple & Flexible.

30.6 Strong AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of areal-project/AReaL, a Python project with 5,539 GitHub stars. SynthScan v2.0 examined 272,775 lines of code across 1109 source files, recording 5392 pattern matches distributed across 22 syntactic categories. The overall adjusted score of 30.6 places this repository in the Strong AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

30.6
Adjusted Score
30.6
Raw Score
100%
Time Factor
2026-07-14
Last Push
5.5K
Stars
Python
Language
272.8K
Lines of Code
1.1K
Files
5.4K
Pattern Hits
2026-07-14
Scan Date
0.08
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 0HIGH 87MEDIUM 1042LOW 4263

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 5392 distinct pattern matches across 22 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Decorative Section Separators952 hits · 3304 pts
SeverityFileLineSnippetContext
MEDIUMpyproject.toml219# =============================================================================COMMENT
MEDIUMpyproject.toml221# =============================================================================COMMENT
MEDIUMpyproject.toml283# =============================================================================COMMENT
MEDIUMpyproject.toml285# =============================================================================COMMENT
MEDIUMpyproject.toml306# =============================================================================COMMENT
MEDIUMpyproject.toml308# =============================================================================COMMENT
MEDIUMpyproject.vllm.toml230# =============================================================================COMMENT
MEDIUMpyproject.vllm.toml232# =============================================================================COMMENT
MEDIUMpyproject.vllm.toml314# =============================================================================COMMENT
MEDIUMpyproject.vllm.toml316# =============================================================================COMMENT
MEDIUMpyproject.vllm.toml337# =============================================================================COMMENT
MEDIUMpyproject.vllm.toml339# =============================================================================COMMENT
MEDIUMtests/test_per_layer_optim_step.py22# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_per_layer_optim_step.py24# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_per_layer_optim_step.py119# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_per_layer_optim_step.py121# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_per_layer_optim_step.py253# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_per_layer_optim_step.py255# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_seqpack.py461# =============================================================================COMMENT
MEDIUMtests/test_seqpack.py463# =============================================================================COMMENT
MEDIUMtests/test_seqpack.py979# =============================================================================COMMENT
MEDIUMtests/test_seqpack.py981# =============================================================================COMMENT
MEDIUMtests/test_seqpack.py27# =============================================================================COMMENT
MEDIUMtests/test_seqpack.py29# =============================================================================COMMENT
MEDIUMtests/test_slurm_scheduler.py30# ============================================================================COMMENT
MEDIUMtests/test_slurm_scheduler.py32# ============================================================================COMMENT
MEDIUMtests/test_slurm_scheduler.py81# ============================================================================COMMENT
MEDIUMtests/test_slurm_scheduler.py83# ============================================================================COMMENT
MEDIUMtests/test_slurm_scheduler.py219# ============================================================================COMMENT
MEDIUMtests/test_slurm_scheduler.py221# ============================================================================COMMENT
MEDIUMtests/test_slurm_scheduler.py242# ============================================================================COMMENT
MEDIUMtests/test_slurm_scheduler.py244# ============================================================================COMMENT
MEDIUMtests/test_slurm_scheduler.py301# ============================================================================COMMENT
MEDIUMtests/test_slurm_scheduler.py303# ============================================================================COMMENT
MEDIUMtests/test_slurm_scheduler.py354# ============================================================================COMMENT
MEDIUMtests/test_slurm_scheduler.py356# ============================================================================COMMENT
MEDIUMtests/test_slurm_scheduler.py154# ============================================================================COMMENT
MEDIUMtests/test_slurm_scheduler.py156# ============================================================================COMMENT
MEDIUMtests/test_kk_allocate.py223# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_kk_allocate.py225# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_kk_allocate.py461# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_kk_allocate.py463# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_kk_allocate.py550# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_kk_allocate.py552# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_kk_allocate.py34# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_kk_allocate.py36# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_kk_allocate.py62# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_kk_allocate.py64# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_kk_allocate.py114# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_kk_allocate.py116# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_kk_allocate.py158# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_kk_allocate.py160# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_kk_allocate.py373# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_kk_allocate.py375# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_kk_allocate.py426# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_kk_allocate.py428# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_local_scheduler.py39# ============================================================================COMMENT
MEDIUMtests/test_local_scheduler.py41# ============================================================================COMMENT
MEDIUMtests/test_inference_engines.py149# ============================================================================COMMENT
MEDIUMtests/test_inference_engines.py151# ============================================================================COMMENT
892 more matches not shown…
Hyper-Verbose Identifiers2284 hits · 2173 pts
SeverityFileLineSnippetContext
LOW.opencode/skills/add-reward/SKILL.md122def test_reward_correct_answer():CODE
LOW.opencode/skills/add-archon-model/SKILL.md369def test_state_dict_roundtrip():CODE
LOW.opencode/skills/add-unit-tests/SKILL.md52def test_function_under_condition_returns_expected():CODE
LOW.opencode/skills/add-unit-tests/SKILL.md104def test_slow_but_required_in_ci():CODE
LOW.opencode/skills/add-unit-tests/SKILL.md115def test_distributed_function(monkeypatch):CODE
LOWtests/test_train_controller.py157def create_mock_distributed_batch(size=4, seq_len=10):CODE
LOWtests/test_train_controller.py245 def test_destroy_handles_errors(self, train_controller, ft_spec):CODE
LOWtests/test_train_controller.py264 def test_destroy_requests_reverse_order(self, train_controller, ft_spec):CODE
LOWtests/test_train_controller.py284 def test_merge_tensors_reorders_results(self):CODE
LOWtests/test_train_controller.py295 def test_merge_tensors_with_tensor_results(self):CODE
LOWtests/test_train_controller.py422 def test_custom_function_call_with_distributed_batch(CODE
LOWtests/test_train_controller.py446 def test_custom_function_call_with_regular_args(self, train_controller, ft_spec):CODE
LOWtests/test_train_controller.py467 def test_custom_function_call_filters_dp_heads(self, train_controller, ft_spec):CODE
LOWtests/test_train_controller.py482 def test_create_process_group_is_dummy(self, train_controller, parallel_strategy):CODE
LOWtests/test_train_controller.py506 def test_connect_engine_sets_rollout(self, train_controller, ft_spec):CODE
LOWtests/test_train_controller.py520 def test_connect_engine_warns_on_change(self, train_controller, ft_spec):CODE
LOWtests/test_train_controller.py536 def test_connect_engine_same_rollout_no_warning(self, train_controller, ft_spec):CODE
LOWtests/test_train_controller.py551 def test_check_rollout_engine_connected_raises_when_not_connected(CODE
LOWtests/test_train_controller.py563 def test_check_rollout_engine_connected_passes_when_connected(CODE
LOWtests/test_train_controller.py579 def test_prepare_batch_delegates_to_rollout(self, train_controller, ft_spec):CODE
LOWtests/test_train_controller.py607 def test_rollout_batch_delegates_to_rollout(self, train_controller, ft_spec):CODE
LOWtests/test_train_controller.py638 def test_update_weights_raises_when_not_connected(self, train_controller, ft_spec):CODE
LOWtests/test_train_controller.py681 def test_prepare_dispatch_splits_distributed_batch(self, train_controller, ft_spec):CODE
LOWtests/test_train_controller.py695 def test_prepare_dispatch_partitions_without_duplication(CODE
LOWtests/test_train_controller.py722 def test_prepare_dispatch_replicates_non_batch_args(CODE
LOWtests/test_train_controller.py739 def test_prepare_dispatch_handles_kwargs(self, train_controller, ft_spec):CODE
LOWtests/test_trackio_backend.py15 def test_default_mode_is_disabled(self):CODE
LOWtests/test_trackio_backend.py20 def test_default_optional_fields_are_none(self):CODE
LOWtests/test_trackio_backend.py40 def test_invalid_mode_raises_error(self):CODE
LOWtests/test_trackio_backend.py47 def test_all_valid_modes_accepted(self):CODE
LOWtests/test_trackio_backend.py57 def test_trackio_field_exists(self):CODE
LOWtests/test_trackio_backend.py62 def test_trackio_field_default_is_disabled(self):CODE
LOWtests/test_trackio_backend.py108 def test_trackio_init_called_when_enabled(CODE
LOWtests/test_trackio_backend.py125 def test_trackio_not_init_when_disabled(CODE
LOWtests/test_trackio_backend.py142 def test_trackio_log_called_on_commit(CODE
LOWtests/test_trackio_backend.py162 def test_trackio_finish_called_on_close(CODE
LOWtests/test_trackio_backend.py181 def test_trackio_not_logged_when_disabled(CODE
LOWtests/test_network_ipv6_utils.py31def test_dual_stack_environment_executes_correct_branch(ip_stack):CODE
LOWtests/test_network_ipv6_utils.py79def test_format_host_for_url_idempotent():CODE
LOWtests/test_network_ipv6_utils.py85def test_get_loopback_ip_returns_bindable_address():CODE
LOWtests/test_network_ipv6_utils.py91def test_find_free_ports_ignores_out_of_range_excludes():CODE
LOWtests/test_tree_training.py222def test_tree_training_forward(engine_type, tree_attn_backend):CODE
LOWtests/test_tree_training.py308def test_tree_training_forward_backward(engine_type, tree_attn_backend):CODE
LOWtests/test_train_engine.py41 def gradient_checkpointing_enable(self, **kwargs):CODE
LOWtests/test_train_engine.py204def test_hf_save_load_weights(tmp_path_factory, engine, mock_input):CODE
LOWtests/test_train_engine.py229def test_dcp_save_load_weights(tmp_path_factory, engine, mock_input):CODE
LOWtests/test_train_engine.py261def test_train_engine_config_accepts_builtin_and_kernel_attn_impls(attn_impl):CODE
LOWtests/test_train_engine.py281def test_train_engine_config_rejects_invalid_kernel_attn_impl(attn_impl):CODE
LOWtests/test_train_engine.py296def test_create_llm_actor_or_critic_forwards_attn_impl(CODE
LOWtests/test_train_engine.py343def test_create_device_model_applies_use_kernels(monkeypatch, memory_efficient_load):CODE
LOWtests/test_train_engine.py392def test_fsdp_engine_config_construction():CODE
LOWtests/test_train_engine.py423def test_fsdp_engine_alloc_mode_construction():CODE
LOWtests/test_reward_norm_variable_group.py41def test_variable_group_sizes_normalize_each_group_independently():CODE
LOWtests/test_reward_norm_variable_group.py67def test_group_sizes_none_matches_fixed_group_size():CODE
LOWtests/test_reward_norm_variable_group.py78def test_variable_group_with_zero_variance_group_is_finite():CODE
LOWtests/test_reward_norm_variable_group.py111def test_leave_one_out_singleton_group_outputs_zero():CODE
LOWtests/test_reward_norm_variable_group.py130def test_group_sizes_sum_mismatch_raises():CODE
LOWtests/test_reward_norm_variable_group.py138def test_group_sizes_non_positive_raises():CODE
LOWtests/test_reward_norm_variable_group.py165def test_batched_call_pass_meta_provides_traj_group_sizes():CODE
LOWtests/test_warmup_process_groups.py24def test_noop_when_dist_uninitialized(mock_all_reduce):CODE
2224 more matches not shown…
Unused Imports687 hits · 654 pts
SeverityFileLineSnippetContext
LOWtests/test_warmup_process_groups.py8CODE
LOWtests/test_perf_trace_converter.py1CODE
LOWtests/test_megatron_async_save.py16CODE
LOWtests/utils.py7CODE
LOWtests/utils.py7CODE
LOWtests/test_reassemble_cp_logprobs.py15CODE
LOWtests/test_examples.py688CODE
LOWtests/test_examples.py768CODE
LOWtests/experimental/archon/test_hf_parity_qwen2.py1CODE
LOWtests/experimental/archon/test_moe_common.py25CODE
LOWtests/experimental/archon/conftest.py107CODE
LOWtests/experimental/archon/conftest.py115CODE
LOWtests/experimental/archon/test_hf_parity_qwen3.py1CODE
LOWtests/experimental/archon/test_hf_parity_qwen3_moe.py1CODE
LOWtests/experimental/archon/test_hf_parity_qwen3_5_moe.py1CODE
LOWtests/experimental/archon/test_async_checkpoint.py11CODE
LOWtests/experimental/archon/utils.py22CODE
LOWtests/experimental/archon/utils.py22CODE
LOWtests/experimental/archon/utils.py22CODE
LOWtests/experimental/archon/test_qwen3_5.py14CODE
LOWtests/experimental/archon/test_moe_hf_parity.py23CODE
LOWtests/experimental/archon/test_hf_parity_qwen3_5.py1CODE
LOW…experimental/archon/torchrun/run_pp_gradient_verify.py12CODE
LOWtests/experimental/archon/torchrun/run_pp_tests.py21CODE
LOW…s/experimental/archon/torchrun/run_checkpoint_tests.py24CODE
LOWtests/experimental/archon/fp8/test_fp8_scale_layout.py8CODE
LOWtests/experimental/archon/fp8/test_conversion.py11CODE
LOWtests/experimental/archon/fp8/test_moe_dispatch.py23CODE
LOWtests/experimental/archon/fp8/test_fp8_linear.py20CODE
LOW…sts/experimental/archon/fp8/torchrun/run_checkpoint.py2CODE
LOW…xperimental/archon/fp8/torchrun/run_sharded_dequant.py16CODE
LOWtests/experimental/openai/test_proxy_gateway.py3CODE
LOWtests/experimental/openai/test_proxy_integration.py1CODE
LOWtests/experimental/openai/test_proxy_rollout_server.py3CODE
LOWtests/experimental/openai/test_online_agent.py3CODE
LOW…experimental/openai/test_streaming_chat_completions.py10CODE
LOWtests/infra/test_launcher_utils.py1CODE
LOWtests/infra/sandbox/test_runner.py5CODE
LOWtests/infra/sandbox/test_client_manager.py3CODE
LOWtests/infra/data_service/test_epoch_crossing.py15CODE
LOWtests/infra/data_service/test_guard.py1CODE
LOWtests/infra/data_service/test_gateway.py1CODE
LOWtests/infra/data_service/test_auth.py1CODE
LOWtests/infra/data_service/test_router.py1CODE
LOWtests/infra/data_service/test_worker.py1CODE
LOWtests/infra/data_service/test_performance.py1CODE
LOWtests/infra/data_service/test_trainer_compat.py1CODE
LOWtests/infra/data_service/test_data_service_e2e.py1CODE
LOWtests/infra/data_service/test_controller.py1CODE
LOWtests/v2/weight_update/test_wu_controller.py2CODE
LOWtests/v2/weight_update/conftest.py10CODE
LOWtests/v2/weight_update/test_sglang_integration.py10CODE
LOWtests/v2/weight_update/test_kv_store.py2CODE
LOWtests/v2/weight_update/test_pair_registry.py2CODE
LOWtests/v2/weight_update/test_disk_integration.py2CODE
LOWtests/v2/training_service/fake_train_engine.py3CODE
LOWtests/v2/training_service/test_worker_unit.py3CODE
LOWtests/v2/training_service/test_controller_unit.py1CODE
LOWtests/v2/training_service/test_gateway_unit.py3CODE
LOWtests/v2/training_service/test_data_proxy_unit.py3CODE
627 more matches not shown…
Excessive Try-Catch Wrapping461 hits · 496 pts
SeverityFileLineSnippetContext
LOW.opencode/skills/add-reward/SKILL.md61 except Exception:CODE
LOWtests/test_rtensor.py57 except Exception:CODE
LOWtests/test_slurm_scheduler.py60 except Exception as e:CODE
LOWtests/test_local_scheduler.py2109 except Exception:CODE
LOWtests/test_offload.py93 except Exception as e:CODE
LOWtests/test_cuda_deterministic.py307 except Exception as e:CODE
LOWtests/test_cuda_deterministic.py338 except Exception:CODE
LOWtests/test_sglang_pp_distributed.py296 except Exception:CODE
LOWtests/test_adv_norm_config.py1073 except Exception as e:CODE
LOWtests/experimental/archon/conftest.py32except Exception:CODE
LOWtests/experimental/archon/conftest.py118except Exception:CODE
LOWtests/experimental/archon/conftest.py174 except Exception:CODE
LOWtests/experimental/archon/test_weight_sync.py162 except Exception:CODE
LOWtests/experimental/archon/test_weight_sync.py220 except Exception:CODE
LOWtests/experimental/archon/test_weight_sync.py282 except Exception:CODE
LOWtests/experimental/archon/test_weight_sync.py378 except Exception:CODE
LOWtests/experimental/archon/test_grpo.py447 except Exception as e:CODE
LOW…/experimental/archon/torchrun/run_qwen3_parallelize.py551 except Exception as e:CODE
LOW…experimental/archon/torchrun/run_pp_gradient_verify.py578 except Exception as e:CODE
LOW…s/experimental/archon/torchrun/run_archon_engine_pp.py167 except Exception as e:CODE
LOW…s/experimental/archon/torchrun/run_archon_engine_pp.py197 except Exception as e:CODE
LOW…s/experimental/archon/torchrun/run_archon_engine_pp.py231 except Exception as e:CODE
LOW…s/experimental/archon/torchrun/run_archon_engine_pp.py286 except Exception as e:CODE
LOWtests/experimental/archon/torchrun/run_parallel_dims.py222 except Exception as e:CODE
LOWtests/experimental/archon/torchrun/run_parallel_dims.py396 except Exception as e:CODE
LOWtests/experimental/archon/torchrun/run_ep_tests.py818 except Exception as e:CODE
LOWtests/experimental/archon/torchrun/run_pp_tests.py901 except Exception as e:CODE
LOW…s/experimental/archon/torchrun/run_checkpoint_tests.py149 except Exception as e:CODE
LOW…s/experimental/archon/torchrun/run_checkpoint_tests.py294 except Exception as e:CODE
LOW…s/experimental/archon/torchrun/run_checkpoint_tests.py461 except Exception as e:CODE
LOW…s/experimental/archon/torchrun/run_checkpoint_tests.py585 except Exception as e:CODE
LOW…s/experimental/archon/torchrun/run_checkpoint_tests.py778 except Exception as e:CODE
LOW…s/experimental/archon/torchrun/run_checkpoint_tests.py1008 except Exception as e:CODE
LOW…s/experimental/archon/torchrun/run_checkpoint_tests.py1197 except Exception as e:CODE
LOW…s/experimental/archon/torchrun/run_checkpoint_tests.py1359 except Exception as e:CODE
LOW…s/experimental/archon/torchrun/run_checkpoint_tests.py1467 except Exception as e:CODE
LOW…ts/experimental/archon/torchrun/run_pp_combinations.py558 except Exception as e:CODE
LOW…ts/experimental/archon/torchrun/run_pp_combinations.py629 except Exception as e:CODE
LOW…sts/experimental/archon/fp8/torchrun/run_checkpoint.py140 except Exception as e:CODE
LOW…sts/experimental/archon/fp8/torchrun/run_checkpoint.py191 except Exception as e:CODE
LOW…xperimental/archon/fp8/torchrun/run_sharded_dequant.py244 except Exception as e:CODE
LOWtests/infra/data_service/test_data_service_e2e.py35 except Exception as exc:CODE
LOWtests/torchrun/run_sglang_pp_weight_sync.py275 except Exception as e:CODE
LOWtests/torchrun/run_sglang_pp_weight_sync.py443 except Exception as e:CODE
LOWtests/torchrun/run_fsdp_memory_efficient_lora.py116 except Exception as e:CODE
LOWtests/torchrun/run_lock.py72 except Exception:CODE
LOWtests/v2/weight_update/test_kv_store.py99 except Exception as exc:CODE
LOW…/v2/weight_update/torchrun/run_nccl_weight_transfer.py65 except Exception as e:CODE
LOW…/v2/weight_update/torchrun/run_nccl_weight_transfer.py110 except Exception as e:CODE
LOW…/v2/weight_update/torchrun/run_nccl_weight_transfer.py233 except Exception as e:CODE
LOW…/v2/weight_update/torchrun/run_nccl_weight_transfer.py283 except Exception as e:CODE
LOW…sts/v2/training_service/test_controller_integration.py173 except Exception as exc:CODE
LOWtests/v2/inference_service/integration_utils.py62 except Exception as e:CODE
MEDIUMtests/fp8/model_hooks.py306def hook(module, input, output):CODE
MEDIUMtests/fp8/model_hooks.py325def input_hook(module, input):CODE
MEDIUMtests/fp8/model_hooks.py344def backward_hook(module, grad_input, grad_output):CODE
MEDIUMtests/fp8/model_hooks.py510def backward_hook(module, grad_input, grad_output):CODE
LOWtests/fp8/model_hooks.py317 except Exception as e:CODE
LOWtests/fp8/model_hooks.py336 except Exception as e:CODE
LOWtests/fp8/model_hooks.py352 except Exception as e:CODE
401 more matches not shown…
Structural Annotation Overuse241 hits · 412 pts
SeverityFileLineSnippetContext
LOW.opencode/skills/add-reward/SKILL.md20### Step 1: Create Reward FileCOMMENT
LOW.opencode/skills/add-reward/SKILL.md80### Step 2: Register in __init__.pyCOMMENT
LOW.opencode/skills/add-reward/SKILL.md99### Step 3: Handle Blocking OperationsCOMMENT
LOW.opencode/skills/add-reward/SKILL.md114### Step 4: Add TestsCOMMENT
LOW.opencode/skills/add-dataset/SKILL.md20### Step 1: Create Dataset FileCOMMENT
LOW.opencode/skills/add-dataset/SKILL.md107### Step 2: Register in __init__.pyCOMMENT
LOW.opencode/skills/add-dataset/SKILL.md129### Step 3: Add Config (Optional)COMMENT
LOW.opencode/skills/add-dataset/SKILL.md140### Step 4: Add TestsCOMMENT
LOW.opencode/skills/add-archon-model/SKILL.md29### Step 1: Analyze the Target Model ArchitectureCOMMENT
LOW.opencode/skills/add-archon-model/SKILL.md66### Step 2: Select the Reference ModelCOMMENT
LOW.opencode/skills/add-archon-model/SKILL.md90### Step 3: Implement `args.py`COMMENT
LOW.opencode/skills/add-archon-model/SKILL.md131### Step 4: Implement `model.py`COMMENT
LOW.opencode/skills/add-archon-model/SKILL.md178### Step 5: Implement `rope.py`COMMENT
LOW.opencode/skills/add-archon-model/SKILL.md200### Step 6: Implement `state_dict_adapter.py`COMMENT
LOW.opencode/skills/add-archon-model/SKILL.md243### Step 7: Implement `parallelize.py`COMMENT
LOW.opencode/skills/add-archon-model/SKILL.md282### Step 8: Create `spec.py` and RegisterCOMMENT
LOW.opencode/skills/add-archon-model/SKILL.md315### Step 9: Register in `__init__.py`COMMENT
LOW.opencode/skills/add-archon-model/SKILL.md325### Step 10: Verify and TestCOMMENT
LOW.opencode/skills/add-workflow/SKILL.md28### Step 1: Create Workflow FileCOMMENT
LOW.opencode/skills/add-workflow/SKILL.md105### Step 2: Register in __init__.pyCOMMENT
LOW.opencode/skills/add-workflow/SKILL.md118### Step 3: Update Entry ScriptCOMMENT
LOW.opencode/skills/add-workflow/SKILL.md129### Step 4: Add TestsCOMMENT
LOW.opencode/skills/add-unit-tests/SKILL.md21### Step 1: Understand Test TypesCOMMENT
LOW.opencode/skills/add-unit-tests/SKILL.md33### Step 2: Create Test File StructureCOMMENT
LOW.opencode/skills/add-unit-tests/SKILL.md47### Step 3: Write Test FunctionsCOMMENT
LOW.opencode/skills/add-unit-tests/SKILL.md65### Step 4: Add Pytest Markers and CI StrategyCOMMENT
LOW.opencode/skills/add-unit-tests/SKILL.md108### Step 5: Mock Distributed EnvironmentCOMMENT
LOW.opencode/skills/add-unit-tests/SKILL.md122### Step 6: Handle GPU DependenciesCOMMENT
LOWtests/experimental/openai/test_proxy_gateway.py358 # Step 2: populate queue again for the post-refresh session.COMMENT
LOWtests/experimental/openai/test_proxy_gateway.py368 # Step 3: refresh — same api_key triggers auto-end + new session.COMMENT
LOWtests/experimental/openai/test_proxy_gateway.py339 # Step 1: populate ready queue and start initial session.COMMENT
LOWtests/fp8/test_fp8_tensor.py409 # Step 1: View to 4DCOMMENT
LOWtests/fp8/test_fp8_tensor.py423 # Step 2: Split into Q, K, V along dim=1COMMENT
LOWtests/fp8/test_fp8_tensor.py451 # Step 3: Reshape to 2DCOMMENT
LOWtests/fp8/model_hooks.py123 # Step 1: Prepare micro-batchesCOMMENT
LOWtests/fp8/model_hooks.py126 # Step 2: Define loss functionsCOMMENT
LOWtests/fp8/model_hooks.py153 # Step 3: Compute total loss weightCOMMENT
LOWtests/fp8/model_hooks.py158 # Step 4: Forward-backward using Megatron's pipeline functionCOMMENT
LOWtests/fp8/model_hooks.py193 # Step 5: Collect gradients before optimizer.step()COMMENT
LOW.agents/skills/translate-doc-zh/SKILL.md16### Step 1: Validate the source pathCOMMENT
LOW.agents/skills/translate-doc-zh/SKILL.md23### Step 2: Resolve the target pathCOMMENT
LOW.agents/skills/translate-doc-zh/SKILL.md28### Step 3: Choose translation modeCOMMENT
LOW.agents/skills/upgrade-deps/SKILL.md172### Step 0: Parse Input and Record BaselineCOMMENT
LOW.agents/skills/upgrade-deps/SKILL.md239### Step 1: Update Pyproject FilesCOMMENT
LOW.agents/skills/upgrade-deps/SKILL.md253### Step 2: Lock Dependencies (Variant-Aware)COMMENT
LOW.agents/skills/upgrade-deps/SKILL.md280### Step 3: Resolve Dependency ConflictsCOMMENT
LOW.agents/skills/upgrade-deps/SKILL.md312### Step 4: Update Dockerfile (If Required)COMMENT
LOW.agents/skills/upgrade-deps/SKILL.md354### Step 5: Identify Updated Focused PackagesCOMMENT
LOW.agents/skills/upgrade-deps/SKILL.md383### Step 6: API Compatibility AuditCOMMENT
LOW.agents/skills/upgrade-deps/SKILL.md466### Step 7: Run Pre-CommitCOMMENT
LOW.agents/skills/upgrade-deps/SKILL.md472### Step 8: Generate Upgrade SummaryCOMMENT
LOW.agents/skills/upgrade-deps/SKILL.md523### Step 9: Create PR and Trigger CI (Optional)COMMENT
LOW.agents/skills/add-reward/SKILL.md20### Step 1: Create Reward FileCOMMENT
LOW.agents/skills/add-reward/SKILL.md80### Step 2: Register in __init__.pyCOMMENT
LOW.agents/skills/add-reward/SKILL.md99### Step 3: Handle Blocking OperationsCOMMENT
LOW.agents/skills/add-reward/SKILL.md114### Step 4: Add TestsCOMMENT
LOW.agents/skills/add-dataset/SKILL.md20### Step 1: Create Dataset FileCOMMENT
LOW.agents/skills/add-dataset/SKILL.md107### Step 2: Register in __init__.pyCOMMENT
LOW.agents/skills/add-dataset/SKILL.md129### Step 3: Add Config (Optional)COMMENT
LOW.agents/skills/add-dataset/SKILL.md140### Step 4: Add TestsCOMMENT
181 more matches not shown…
Cross-File Repetition60 hits · 300 pts
SeverityFileLineSnippetContext
HIGH.opencode/skills/add-reward/SKILL.md0compute reward for a single completion. args: prompt: prompt string completions: completion string (model output) promptSTRING
HIGH.agents/skills/add-reward/SKILL.md0compute reward for a single completion. args: prompt: prompt string completions: completion string (model output) promptSTRING
HIGH.claude/skills/add-reward/SKILL.md0compute reward for a single completion. args: prompt: prompt string completions: completion string (model output) promptSTRING
HIGH.opencode/skills/add-reward/SKILL.md0extract the answer from a completion string. implement your extraction logic here.STRING
HIGH.agents/skills/add-reward/SKILL.md0extract the answer from a completion string. implement your extraction logic here.STRING
HIGH.claude/skills/add-reward/SKILL.md0extract the answer from a completion string. implement your extraction logic here.STRING
HIGH.opencode/skills/add-dataset/SKILL.md0load dataset for sft training. args: path: path to dataset (huggingface hub or local path) split: dataset split (train/vSTRING
HIGH.agents/skills/add-dataset/SKILL.md0load dataset for sft training. args: path: path to dataset (huggingface hub or local path) split: dataset split (train/vSTRING
HIGH.claude/skills/add-dataset/SKILL.md0load dataset for sft training. args: path: path to dataset (huggingface hub or local path) split: dataset split (train/vSTRING
HIGH.opencode/skills/add-dataset/SKILL.md0load dataset for rl training. args: path: path to dataset split: dataset split tokenizer: tokenizer for length filteringSTRING
HIGH.agents/skills/add-dataset/SKILL.md0load dataset for rl training. args: path: path to dataset split: dataset split tokenizer: tokenizer for length filteringSTRING
HIGH.claude/skills/add-dataset/SKILL.md0load dataset for rl training. args: path: path to dataset split: dataset split tokenizer: tokenizer for length filteringSTRING
HIGH.opencode/skills/add-workflow/SKILL.md0run a single episode. must be async and non-blocking.STRING
HIGH.agents/skills/add-workflow/SKILL.md0run a single episode. must be async and non-blocking.STRING
HIGH.claude/skills/add-workflow/SKILL.md0run a single episode. must be async and non-blocking.STRING
HIGH.opencode/skills/add-unit-tests/SKILL.md0test that function returns expected value under condition.STRING
HIGH.agents/skills/add-unit-tests/SKILL.md0test that function returns expected value under condition.STRING
HIGH.claude/skills/add-unit-tests/SKILL.md0test that function returns expected value under condition.STRING
HIGHtests/test_train_engine.py0create mock padded input data (same format for huggingface) for testing. returns a dict with input_ids, attention_mask, STRING
HIGHtests/test_megatron_engine.py0create mock padded input data (same format for huggingface) for testing. returns a dict with input_ids, attention_mask, STRING
HIGHtests/torchrun/run_megatron_engine_distributed.py0create mock padded input data (same format for huggingface) for testing. returns a dict with input_ids, attention_mask, STRING
HIGHtests/torchrun/run_fsdp_ulysses_forward.py0create mock padded input data (same format for huggingface) for testing. returns a dict with input_ids, attention_mask, STRING
HIGHtests/torchrun/run_fsdp_ulysses_train_batch.py0create mock padded input data (same format for huggingface) for testing. returns a dict with input_ids, attention_mask, STRING
HIGH…sts/v2/inference_service/test_data_proxy_standalone.py0mock arealopenai client that returns a valid chatcompletion.STRING
HIGHtests/v2/inference_service/test_data_proxy_version.py0mock arealopenai client that returns a valid chatcompletion.STRING
HIGHtests/v2/inference_service/test_data_proxy_pause.py0mock arealopenai client that returns a valid chatcompletion.STRING
HIGHareal/experimental/engine/archon_engine.py0drain this worker's client-side rtensor fetch buffer. called via rpc by ``traincontroller.clear_batches`` at step end soSTRING
HIGHareal/engine/fsdp_engine.py0drain this worker's client-side rtensor fetch buffer. called via rpc by ``traincontroller.clear_batches`` at step end soSTRING
HIGHareal/engine/megatron_engine.py0drain this worker's client-side rtensor fetch buffer. called via rpc by ``traincontroller.clear_batches`` at step end soSTRING
HIGHareal/engine/sglang_remote.py0drain this worker's client-side rtensor fetch buffer. called via rpc by ``traincontroller.clear_batches`` at step end soSTRING
HIGHareal/engine/vllm_remote.py0drain this worker's client-side rtensor fetch buffer. called via rpc by ``traincontroller.clear_batches`` at step end soSTRING
HIGHareal/experimental/engine/archon_engine.py0expose local fetch-buffer stats for post-step drain verification.STRING
HIGHareal/engine/fsdp_engine.py0expose local fetch-buffer stats for post-step drain verification.STRING
HIGHareal/engine/megatron_engine.py0expose local fetch-buffer stats for post-step drain verification.STRING
HIGHareal/engine/sglang_remote.py0expose local fetch-buffer stats for post-step drain verification.STRING
HIGHareal/engine/vllm_remote.py0expose local fetch-buffer stats for post-step drain verification.STRING
HIGHareal/experimental/engine/archon_engine.py0temporarily onload parameters for offload-unsafe operations. reentrant: nested calls increment depth; only the outermostSTRING
HIGHareal/engine/fsdp_engine.py0temporarily onload parameters for offload-unsafe operations. reentrant: nested calls increment depth; only the outermostSTRING
HIGHareal/engine/megatron_engine.py0temporarily onload parameters for offload-unsafe operations. reentrant: nested calls increment depth; only the outermostSTRING
HIGHareal/experimental/openai/client.py0set reward for a specific completion/response by its id.STRING
HIGHareal/experimental/openai/cache.py0set reward for a specific completion/response by its id.STRING
HIGHareal/experimental/openai/proxy/client_session.py0set reward for a specific completion/response by its id.STRING
HIGHareal/experimental/openai/client.py0set reward for the most recent completion/response.STRING
HIGHareal/experimental/openai/cache.py0set reward for the most recent completion/response.STRING
HIGHareal/experimental/openai/proxy/client_session.py0set reward for the most recent completion/response.STRING
HIGHareal/infra/scheduler/slurm.py0fork new worker processes from existing workers. creates new worker processes by forking from existing workers of the taSTRING
HIGHareal/infra/scheduler/local.py0fork new worker processes from existing workers. creates new worker processes by forking from existing workers of the taSTRING
HIGHareal/api/scheduler_api.py0fork new worker processes from existing workers. creates new worker processes by forking from existing workers of the taSTRING
HIGHareal/infra/controller/train_controller.py0validate that rollout engine has been connected via connect_engine().STRING
HIGHareal/engine/fsdp_engine.py0validate that rollout engine has been connected via connect_engine().STRING
HIGHareal/engine/megatron_engine.py0validate that rollout engine has been connected via connect_engine().STRING
HIGHareal/infra/data_service/controller/controller.py0ensure _workers_ready is signaled even if _bg_initialize fails.STRING
HIGHareal/v2/training_service/controller/controller.py0ensure _workers_ready is signaled even if _bg_initialize fails.STRING
HIGHareal/v2/inference_service/controller/controller.py0ensure _workers_ready is signaled even if _bg_initialize fails.STRING
HIGHareal/v2/training_service/gateway/auth.py0extract api token from authorization header. raises httpexception(401) if missing or malformed.STRING
HIGHareal/v2/inference_service/data_proxy/app.py0extract api token from authorization header. raises httpexception(401) if missing or malformed.STRING
HIGHareal/v2/inference_service/gateway/auth.py0extract api token from authorization header. raises httpexception(401) if missing or malformed.STRING
HIGHareal/workflow/langchain/math_agent.py0run the agent on a math problem. args: data: input data containing "messages" and "answer" **extra_kwargs: contains baseSTRING
HIGHareal/workflow/anthropic/math_agent.py0run the agent on a math problem. args: data: input data containing "messages" and "answer" **extra_kwargs: contains baseSTRING
HIGHareal/workflow/anthropic/claude_math_agent.py0run the agent on a math problem. args: data: input data containing "messages" and "answer" **extra_kwargs: contains baseSTRING
Deep Nesting236 hits · 211 pts
SeverityFileLineSnippetContext
LOWtests/test_train_controller.py76CODE
LOWtests/test_tree_training.py108CODE
LOWtests/test_tree_training.py134CODE
LOWtests/test_allocation_mode.py203CODE
LOWtests/test_rollout_controller.py76CODE
LOWtests/test_rollout_controller.py489CODE
LOWtests/test_local_scheduler.py2031CODE
LOWtests/test_local_scheduler.py2243CODE
LOWtests/test_local_scheduler.py2364CODE
LOWtests/test_local_scheduler.py2491CODE
LOWtests/test_packed_vs_padded_consistency.py132CODE
LOWtests/test_packed_vs_padded_consistency.py230CODE
LOWtests/test_sglang_pp_distributed.py77CODE
LOWtests/test_examples.py26CODE
LOWtests/test_examples.py886CODE
LOWtests/test_examples.py903CODE
LOWtests/experimental/archon/test_weight_sync.py263CODE
LOWtests/experimental/archon/test_weight_sync.py440CODE
LOWtests/experimental/archon/test_forward.py300CODE
LOW…experimental/archon/torchrun/run_pp_gradient_verify.py308CODE
LOWtests/experimental/archon/torchrun/run_pp_tests.py251CODE
LOWtests/experimental/archon/torchrun/run_pp_tests.py277CODE
LOWtests/experimental/archon/torchrun/run_pp_tests.py321CODE
LOWtests/experimental/archon/torchrun/run_pp_tests.py569CODE
LOWtests/experimental/archon/torchrun/run_tp_forward.py110CODE
LOWtests/experimental/archon/torchrun/dist_utils.py155CODE
LOW…s/experimental/archon/torchrun/run_checkpoint_tests.py620CODE
LOW…s/experimental/archon/torchrun/run_checkpoint_tests.py810CODE
LOW…s/experimental/archon/torchrun/run_checkpoint_tests.py1040CODE
LOW…s/experimental/archon/torchrun/run_checkpoint_tests.py1233CODE
LOW…s/experimental/archon/torchrun/run_checkpoint_tests.py1405CODE
LOW…ts/experimental/archon/torchrun/run_pp_combinations.py465CODE
LOWtests/torchrun/run_fsdp_optimizer_dtype.py71CODE
LOWtests/torchrun/run_sglang_pp_weight_sync.py287CODE
LOWtests/torchrun/run_perf_tracer.py12CODE
LOWtests/torchrun/run_megatron_engine_distributed.py643CODE
LOWtests/torchrun/run_megatron_engine_vlm_distributed.py307CODE
LOW…/v2/weight_update/torchrun/run_nccl_weight_transfer.py123CODE
LOWtests/fp8/test_fp8_rmsnorm.py174CODE
LOWtests/fp8/test_fp8_rmsnorm.py281CODE
LOWtests/fp8/model_hooks.py101CODE
LOWtests/fp8/model_hooks.py214CODE
LOWtests/fp8/model_hooks.py264CODE
LOWtests/fp8/engine_utils.py35CODE
LOWdocs/generate_cli_docs.py38CODE
LOWdocs/generate_cli_docs.py143CODE
LOWdocs/generate_cli_docs.py186CODE
LOWexamples/tir/tools/python_tool.py120CODE
LOW…mples/experimental/inference_service/online_rollout.py12CODE
LOW…perimental/inference_service/human_in_the_loop_demo.py201CODE
LOWexamples/experimental/inference_service/tau2_rollout.py156CODE
LOWexamples/agent_service/run_agent_service.py42CODE
LOWexamples/agent_service/agent.py101CODE
LOWexamples/tau2/agent.py95CODE
LOWexamples/scaffolding/search_agent_controller.py126CODE
LOWexamples/scaffolding/core/task_collection.py222CODE
LOWexamples/scaffolding/core/task_collection.py353CODE
LOWexamples/scaffolding/tests/test_controllers.py152CODE
LOWexamples/scaffolding/tests/test_self_contained.py35CODE
LOWexamples/terminal_bench/agent/chat_agent_trace.py190CODE
176 more matches not shown…
Verbosity Indicators99 hits · 183 pts
SeverityFileLineSnippetContext
LOWtests/experimental/openai/test_proxy_gateway.py358 # Step 2: populate queue again for the post-refresh session.COMMENT
LOWtests/experimental/openai/test_proxy_gateway.py368 # Step 3: refresh — same api_key triggers auto-end + new session.COMMENT
LOWtests/experimental/openai/test_proxy_gateway.py339 # Step 1: populate ready queue and start initial session.COMMENT
LOWtests/fp8/test_fp8_tensor.py409 # Step 1: View to 4DCOMMENT
LOWtests/fp8/test_fp8_tensor.py423 # Step 2: Split into Q, K, V along dim=1COMMENT
LOWtests/fp8/test_fp8_tensor.py451 # Step 3: Reshape to 2DCOMMENT
LOWtests/fp8/model_hooks.py123 # Step 1: Prepare micro-batchesCOMMENT
LOWtests/fp8/model_hooks.py126 # Step 2: Define loss functionsCOMMENT
LOWtests/fp8/model_hooks.py153 # Step 3: Compute total loss weightCOMMENT
LOWtests/fp8/model_hooks.py158 # Step 4: Forward-backward using Megatron's pipeline functionCOMMENT
LOWtests/fp8/model_hooks.py193 # Step 5: Collect gradients before optimizer.step()COMMENT
LOWexamples/countdown/countdown.py452 # Step 1: 1+2=3COMMENT
LOWexamples/countdown/countdown.py453 # Step 2: 3*3=9COMMENT
LOWexamples/countdown/countdown.py454 # Step 3: 9*3=27COMMENT
LOWexamples/countdown/countdown.py455 # Step 4: 27+3=30COMMENT
LOWexamples/countdown/countdown.py459 # Step 1: 24/2 = 12COMMENT
LOWexamples/countdown/countdown.py460 # Step 2: 12 + 2 = 14COMMENT
LOWexamples/scaffolding/controllers.py500 # Step 1: Run generation (yields task lists for worker execution)COMMENT
LOWexamples/scaffolding/controllers.py503 # Step 2: Create reward tasks and compute rewards locallyCOMMENT
LOW…eal/experimental/models/archon/moe_weight_converter.py249 # Step 1: Store metadata for from_hf reconstructionCOMMENT
LOW…eal/experimental/models/archon/moe_weight_converter.py255 # Step 2: Calculate local expert indices from placementsCOMMENT
LOW…eal/experimental/models/archon/moe_weight_converter.py267 # Step 3: Store indices for from_hf reconstructionCOMMENT
LOW…eal/experimental/models/archon/moe_weight_converter.py270 # Step 4: Create new placements for individual expert weights (2D)COMMENT
LOW…eal/experimental/models/archon/moe_weight_converter.py290 # Step 5: Extract local tensor and split into individual expertsCOMMENT
LOWareal/experimental/models/archon/expert_parallel.py129 # Step 1: Exchange token counts via all-to-allCOMMENT
LOWareal/experimental/models/archon/expert_parallel.py162 # Step 2: All-to-all to dispatch tokensCOMMENT
LOWareal/experimental/models/archon/expert_parallel.py170 # Step 3: Permute for grouped_mm alignmentCOMMENT
LOWareal/experimental/models/archon/expert_parallel.py203 # Step 1: Unpermute to pre-permutation orderCOMMENT
LOWareal/experimental/models/archon/expert_parallel.py206 # Step 2: All-to-all to combine (reverse direction)COMMENT
LOWareal/utils/save_load.py24 # Step 1: Identify if the input is a Hugging Face repo ID or local pathCOMMENT
LOWareal/utils/save_load.py39 # Step 2: Download the repo if it's a Hugging Face repo IDCOMMENT
LOWareal/utils/save_load.py47 # Step 3: Load all .safetensors and .bin filesCOMMENT
LOWareal/utils/data.py1452 # Step 1: Compute meanCOMMENT
LOWareal/utils/data.py1496 # Step 2: Compute stdCOMMENT
LOWareal/utils/functional/vocab_parallel.py134 # Step 1: Numerical stability - subtract maxCOMMENT
LOWareal/utils/functional/vocab_parallel.py141 # Step 2: Compute exp in-place and sum across all ranksCOMMENT
LOWareal/utils/functional/vocab_parallel.py146 # Step 3: Get the logit value at labels positionCOMMENT
LOWareal/utils/functional/vocab_parallel.py160 # Step 4: Compute log probabilityCOMMENT
LOWareal/utils/functional/vocab_parallel.py164 # Step 5: Compute softmax in-place for backward (reuse exp_logits memory)COMMENT
LOWareal/utils/functional/vocab_parallel.py264 # Step 1: Numerical stability - subtract max (shared)COMMENT
LOWareal/utils/functional/vocab_parallel.py271 # Step 2: Compute exp and sum_exp (shared)COMMENT
LOWareal/utils/functional/vocab_parallel.py277 # Step 3: Compute softmax in-place (shared)COMMENT
LOWareal/utils/functional/vocab_parallel.py281 # Step 4: For logprobs - get labels logitCOMMENT
LOWareal/utils/functional/vocab_parallel.py295 # Step 5: For entropy - compute sum(softmax * logits)COMMENT
LOWareal/utils/functional/vocab_parallel.py302 # Step 6: Compute final resultsCOMMENT
LOWareal/utils/functional/vocab_parallel.py344 # Step 1: Compute entropy gradient contributionCOMMENT
LOWareal/utils/functional/vocab_parallel.py360 # Step 2: Add logprobs gradient contributionCOMMENT
LOWareal/utils/functional/functional.py212 # Step 0: Validate input shapes.COMMENT
LOWareal/utils/functional/functional.py229 # Step 1: Compute log ratio = log(π_proximal / π_behave)COMMENT
LOWareal/utils/functional/functional.py235 # Step 2: Compute metric value (reuse existing KLEstimator sign conventions)COMMENT
LOWareal/utils/functional/functional.py262 # Step 3: Compute behave_imp_weight (needed for both modes)COMMENT
LOWareal/utils/functional/functional.py267 # Step 4: Aggregate and filterCOMMENT
LOWareal/utils/functional/functional.py413 # Step 5: Update loss_mask or keep it based on action modeCOMMENT
LOWareal/models/transformers/vision_sp_shard.py291 # Step 1: Get image assignment based on patch countsCOMMENT
LOWareal/models/transformers/vision_sp_shard.py310 # Step 2: Extract local inputs (use CPU grid_thw to avoid GPU→CPU syncsCOMMENT
LOWareal/models/transformers/vision_sp_shard.py317 # Step 3: Process local imagesCOMMENT
LOWareal/models/transformers/vision_sp_shard.py342 # Step 4: Unpack deepstack if present (Qwen3-VL returns (embeddings, list[Tensor]))COMMENT
LOWareal/models/transformers/vision_sp_shard.py347 # Step 5: All-gather (contiguous assignment, no reordering needed)COMMENT
LOWareal/models/transformers/vision_sp_shard.py363 # Step 6: All-gather deepstack embeddings (all ranks must participate)COMMENT
LOWareal/v2/training_service/controller/controller.py169 # Step 0: Create world_size guards via scheduler (one per GPU rank)COMMENT
39 more matches not shown…
Modern Structural Boilerplate152 hits · 152 pts
SeverityFileLineSnippetContext
LOWtests/test_staleness_manager.py24 def set_version(self, version: int) -> None:CODE
LOWtests/utils.py12__all__ = ["get_dataset_path", "get_model_path"]CODE
LOWtests/experimental/archon/utils.py34__all__ = [CODE
LOWtests/infra/data_service/test_trainer_compat.py16 def set_epoch(self, epoch: int) -> None:CODE
LOWtests/torchrun/run_sglang_pp_weight_sync.py45logger = logging.getLogger(__name__)CODE
LOWtests/v2/inference_service/test_data_proxy_pause.py142async def _set_paused(pause_state: PauseState, value: bool) -> None:CODE
LOWexamples/tir/tools/__init__.py18__all__ = [CODE
LOW…perimental/inference_service/human_in_the_loop_demo.py105def _set_reward(gateway_addr: str, api_key: str, reward: float) -> None:CODE
LOWexamples/scaffolding/__init__.py35__all__ = [CODE
LOWexamples/scaffolding/_compat.py36__all__ = [CODE
LOWexamples/scaffolding/core/controller.py16logger = logging.getLogger(__name__)CODE
LOWexamples/scaffolding/core/__init__.py36__all__ = [CODE
LOWexamples/terminal_bench/agent/__init__.py5__all__ = [CODE
LOWexamples/terminal_bench/workflow/__init__.py4__all__ = ["CamelRLVRWorkflow", "build_docker_image"]CODE
LOWareal/__init__.py32__all__ = [CODE
LOWareal/experimental/models/archon/model_spec.py131__all__ = [CODE
LOW…eal/experimental/models/archon/moe_weight_converter.py446__all__ = ["MoEConversionState", "MoEWeightConverter"]CODE
LOWareal/experimental/models/archon/ulysses.py18__all__ = [CODE
LOW…al/experimental/models/archon/activation_checkpoint.py310__all__ = [CODE
LOWareal/experimental/models/archon/__init__.py34__all__ = [CODE
LOWareal/experimental/models/archon/utils.py161__all__ = [CODE
LOWareal/experimental/models/archon/parallel_dims.py21__all__ = [CODE
LOWareal/experimental/models/archon/expert_parallel.py508__all__ = [CODE
LOWareal/experimental/models/archon/pipeline_parallel.py40__all__ = [CODE
LOWareal/experimental/models/archon/base.py168__all__ = [CODE
LOWareal/experimental/models/archon/attention/__init__.py7__all__ = [CODE
LOWareal/experimental/models/archon/attention/varlen.py13__all__ = ["varlen_attn", "VarlenAttentionWrapper"]CODE
LOWareal/experimental/models/archon/attention/varlen.py162def _setup_context(ctx: Any, inputs: tuple[Any, ...], output: Any) -> None:CODE
LOWareal/experimental/models/archon/attention/sdpa.py15__all__ = ["SDPAWrapper", "create_block_causal_mask_2d"]CODE
LOWareal/experimental/models/archon/qwen2/__init__.py12__all__ = [CODE
LOWareal/experimental/models/archon/qwen2/spec.py25__all__ = ["QWEN2_SPEC"]CODE
LOW…/experimental/models/archon/qwen2/infra/parallelize.py361__all__ = [CODE
LOWareal/experimental/models/archon/qwen2/model/model.py379__all__ = [CODE
LOWareal/experimental/models/archon/qwen2/model/rope.py155__all__ = [CODE
LOWareal/experimental/models/archon/qwen2/model/args.py70__all__ = ["Qwen2ModelArgs"]CODE
LOWareal/experimental/models/archon/qwen3/__init__.py12__all__ = [CODE
LOWareal/experimental/models/archon/qwen3/spec.py25__all__ = ["QWEN3_SPEC"]CODE
LOW…/experimental/models/archon/qwen3/infra/parallelize.py436def _setup_fsdp_prefetch(model: nn.Module) -> None:CODE
LOW…/experimental/models/archon/qwen3/infra/parallelize.py751__all__ = [CODE
LOWareal/experimental/models/archon/qwen3/model/model.py493__all__ = [CODE
LOWareal/experimental/models/archon/qwen3/model/rope.py12__all__ = [CODE
LOWareal/experimental/models/archon/qwen3/model/args.py111__all__ = ["Qwen3ModelArgs"]CODE
LOWareal/experimental/models/archon/qwen3_5/__init__.py12__all__ = [CODE
LOWareal/experimental/models/archon/qwen3_5/spec.py29__all__ = ["QWEN3_5_SPEC"]CODE
LOW…xperimental/models/archon/qwen3_5/infra/parallelize.py298__all__ = [CODE
LOWareal/experimental/models/archon/qwen3_5/model/model.py671__all__ = [CODE
LOWareal/experimental/models/archon/qwen3_5/model/rope.py149__all__ = [CODE
LOWareal/experimental/models/archon/qwen3_5/model/args.py182__all__ = ["Qwen3_5ModelArgs"]CODE
LOWareal/experimental/models/archon/moe/token_reorderer.py73__all__ = ["TokenReorderer"]CODE
LOWareal/experimental/models/archon/moe/__init__.py17__all__ = [CODE
LOWareal/experimental/models/archon/moe/grouped_experts.py288__all__ = ["GroupedExperts"]CODE
LOWareal/experimental/models/archon/moe/utils.py290__all__ = [CODE
LOWareal/experimental/models/archon/moe/kernels.py9__all__ = ["generate_permute_indices", "fill_indices_wrapper"]CODE
LOWareal/experimental/models/archon/moe/args.py109__all__ = ["MoEArgs"]CODE
LOWareal/experimental/models/archon/moe/router.py308__all__ = ["TokenChoiceTopKRouter"]CODE
LOWareal/experimental/models/archon/moe/moe.py261__all__ = ["MoE", "FeedForward"]CODE
LOWareal/experimental/engine/archon_weight_sync.py31logger = logging.getLogger(__name__)CODE
LOWareal/experimental/openai/client.py1371 def set_reward(self, id: str, reward: float) -> None:CODE
LOWareal/experimental/openai/client.py1377 def set_last_reward(self, reward: float) -> None:CODE
LOWareal/experimental/openai/cache.py85 def set_reward(self, interaction_id: str, reward: float) -> None:CODE
92 more matches not shown…
Redundant / Tautological Comments66 hits · 98 pts
SeverityFileLineSnippetContext
LOWtests/test_tree_training.py258 # Check if results match with detailed error reportingCOMMENT
LOWtests/test_tree_training.py456 # Check if gradients are close:COMMENT
LOWtests/test_slurm_scheduler.py23# Check if 'srun' exists in the system PATHCOMMENT
LOWtests/test_fsdp_grad.py17# Check if CUDA is availableCOMMENT
LOWtests/test_local_scheduler.py2093 # Check if process diedCOMMENT
LOWtests/test_examples.py90 # Check if process has terminatedCOMMENT
LOWtests/experimental/archon/test_checkpoint_e2e.py391 # Check if weight tying is enabledCOMMENT
LOWtests/experimental/archon/test_qwen3_5.py891 # Set wq to output zeros for the gate half.COMMENT
LOWtests/experimental/openai/test_client_with_tool.py281 # Check if tool call was made (might depend on model capability)COMMENT
LOWtests/experimental/openai/test_client.py367 # Set rewards to leaf nodes only, which should be c_a1, c_a2, c_b1COMMENT
LOWtests/experimental/openai/test_client.py571 # Set rewards to leaf nodes only, which should be c_a1COMMENT
LOWtests/fp8/test_fp8_rmsnorm.py296 # Check if it's a combined file or individual fileCOMMENT
LOWtests/fp8/engine_utils.py69 # Check if this is a CUDA kernel eventCOMMENT
LOWtests/fp8/engine_utils.py81 # Check if this is a gemm-related kernelCOMMENT
LOWtests/fp8/engine_utils.py128 # Check if this is a gemm-related operation (may be at higher level)COMMENT
LOWtests/fp8/engine_utils.py130 # Check if we already have this in gemm_eventsCOMMENT
LOWtests/fp8/test_fp8_conversion.py81 # Check if tensor can be quantized (needs to satisfy block size requirements)COMMENT
LOW.claude/hooks/check-expert-update.sh5# Check if jq is availableCOMMENT
LOWdocs/generate_cli_docs.py147 # Check if it's a Union type (includes both Union[Type, None] and Type | None syntax)COMMENT
LOWdocs/generate_cli_docs.py150 # Check if it's a union with None (optional type)COMMENT
LOWexamples/tir/tir_workflow.py203 # Check if tool start marker is detectedCOMMENT
LOWexamples/countdown/reward_score.py31 # Check if all numbers in equation are availableCOMMENT
LOWexamples/terminal_bench/agent/chat_agent_trace.py94 # Check if we've reached max parse errorsSTRING
LOWexamples/terminal_bench/agent/chat_agent_trace.py217 # Check if this call is from a RegisteredAgentToolkit to prevent toolCOMMENT
LOWexamples/terminal_bench/agent/chat_agent_trace.py348 # Check if we've reached max parse errorsCOMMENT
LOW.github/workflows/build-docker-image.yml279 # Check if instance is runningCOMMENT
LOW.github/workflows/tag-release-image.yml217 # Check if instance is runningCOMMENT
LOWareal/experimental/models/archon/qwen3/model/args.py62 # Check if MoE is enabledCOMMENT
LOW…mental/models/archon/qwen3/model/state_dict_adapter.py465 # Check if all experts collectedCOMMENT
LOWareal/experimental/models/archon/qwen3_5/model/args.py118 # Check if MoE is enabledCOMMENT
LOWareal/experimental/openai/cache.py126 # Assign rewards to interactions in cache based on their creation orderCOMMENT
LOWareal/infra/async_task_runner.py522 # Check if thread is still aliveCOMMENT
LOWareal/infra/remote_inf_engine.py106 # Check if results are InteractionWithTokenLogpReward dictsCOMMENT
LOWareal/infra/remote_inf_engine.py653 # Check if it's a RolloutWorkflow classCOMMENT
LOWareal/infra/remote_inf_engine.py664 # Check if it's a RolloutWorkflow instanceCOMMENT
LOWareal/infra/workflow_executor.py164 # Check if all values are InteractionWithTokenLogpRewardCOMMENT
LOWareal/infra/scheduler/slurm.py1361 # Check if still running, force kill if neededCOMMENT
LOWareal/infra/scheduler/slurm.py1620 # Check if retryableCOMMENT
LOWareal/infra/scheduler/slurm.py1006 # Check if fork mode is enabledSTRING
LOWareal/infra/scheduler/local.py701 # Check if fork mode is enabledCOMMENT
LOWareal/infra/scheduler/local.py1680 # Check if worker died (forked workers have process=None)COMMENT
LOWareal/infra/scheduler/local.py1730 # Check if process has exited (forked workers have process=None)COMMENT
LOWareal/infra/scheduler/local.py1768 # Check if worker died (forked workers have process=None)COMMENT
LOWareal/infra/scheduler/ray.py479 # Check if fork mode is enabledCOMMENT
LOWareal/infra/scheduler/ray.py526 # Check if this is a colocated roleCOMMENT
LOWareal/infra/scheduler/ray.py572 # Check if this is a forked role (has its own workers)COMMENT
LOWareal/infra/utils/concurrent.py71 # Check if we're already in an async contextCOMMENT
LOWareal/infra/utils/proc.py65 # Check if stdbuf is available (not present on macOS by default)COMMENT
LOWareal/tools/profile_fsdp.py383 # Print results - sorted by CUDA timeCOMMENT
LOWareal/tools/profile_archon.py341 # Print results - sorted by CUDA timeCOMMENT
LOWareal/utils/fs.py80 # Check if path is on network filesystemCOMMENT
LOWareal/utils/name_resolve.py515 # Check if key exists when replace=FalseCOMMENT
LOWareal/utils/name_resolve.py762 # Check if this is a delete eventCOMMENT
LOWareal/utils/name_resolve.py819 # Check if key matches prefix (exact match or starts with prefix/)COMMENT
LOWareal/utils/name_resolve.py968 # Check if key exists when replace=FalseCOMMENT
LOWareal/utils/name_resolve.py1022 # Check if key existsCOMMENT
LOWareal/models/mcore/hf_load.py489 # Check if any HF weight is FP8 (has _scale_inv suffix)COMMENT
LOWareal/models/transformers/qwen3_vl.py109 # Check if hidden_states is a DTensor (TP is enabled)COMMENT
LOWareal/api/cli_args.py311 # Check if equal to the default valueCOMMENT
LOWareal/api/alloc_mode.py789 # Check if name is providedCOMMENT
6 more matches not shown…
Docstring Block Structure19 hits · 95 pts
SeverityFileLineSnippetContext
HIGHareal/experimental/models/archon/fp8_checkpoint.py234Dequantize all FP8 weights in *hf_state_dict* to *target_dtype*. Detects FP8 weights by their ``float8_e4m3fn`` dtySTRING
HIGH…eal/experimental/models/archon/moe_weight_converter.py71Calculate start/end indices for [StridedShard(dim=i), Shard(dim=i)] placement. GPU Layout (strided_shard_rank, STRING
HIGHareal/experimental/models/archon/qwen3/model/model.py42Determine if a layer should use MoE instead of dense FFN. Args: layer_id: The layer index (0-based). STRING
HIGHareal/experimental/openai/client.py86Validate that ``value`` is a list of dictionaries or BaseModel objects. Args: name: Name of the argument beSTRING
HIGHareal/experimental/openai/client.py276Convert a Responses API input item into Chat Completions message dicts. Handles ``output_text``, ``input_text``, ``STRING
HIGHareal/infra/platforms/platform.py69Fallback attribute accessor for device-specific Torch modules. This method is called when the requested attributSTRING
HIGHareal/utils/seqpack.py168Return the allocation function for the given algorithm name. Args: algorithm: One of ``"ffd"`` or ``"kk"``.STRING
HIGHareal/utils/seqpack.py453Partition *values* into groups using the Karmarkar-Karp differencing method. This is a **drop-in replacement** for STRING
HIGHareal/utils/seqpack.py541 Splits `nums` into K groups such that the maximum difference between group sums is minimized. Returns indices STRING
HIGHareal/utils/name_resolve.py642Get the value for a key. Args: name: Key to retrieve Returns: The value as a sSTRING
HIGHareal/utils/name_resolve.py658Get a value with lock already acquired. Args: name: Key to retrieve Returns: TSTRING
HIGHareal/utils/name_resolve.py1055Get the value for a key. Args: name: Key to retrieve Returns: The value as a sSTRING
HIGHareal/utils/network.py13 Find the local IP address for outbound route to `probe_host:probe_port`. Args: probe_host: Remote addrSTRING
HIGHareal/utils/network.py119 Find multiple free ports within a specified range. Args: count: Number of free ports to find pSTRING
HIGHareal/api/alloc_mode.py1137Convert parsed result to _AllocationMode object. Args: result: Parsed result (list of ModelAllocatiSTRING
HIGHareal/engine/megatron_utils/fp8/config.py9Extract block size from quantization configuration. Args: quantization_config: Quantization configuration dSTRING
HIGHareal/engine/megatron_utils/fp8/tensor_helper.py313Convert Transformer Engine Float8BlockwiseQTensor to FP8BlockwiseTensorHelper. Args: tensor: TransfSTRING
HIGHareal/engine/fsdp_utils/optimizer.py20 Convert string to corresponding torch dtype, only supports bfloat16 and float32. Args: dtype_str: DataSTRING
HIGHareal/trainer/ppo/actor.py735 Resolve the proximal policy log-probabilities based on the method. This function determines the final proximalSTRING
Self-Referential Comments26 hits · 74 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_train_engine.py128 # Create the engine using from_pretrained method, without TrainEngineConfigCOMMENT
MEDIUMtests/test_rollout_controller.py29 # Create a mutable SchedulingSpec that can be modified by the controllerCOMMENT
MEDIUMtests/experimental/archon/test_state_dict_adapter.py63 # Create a minimal HF state dictCOMMENT
MEDIUMtests/experimental/archon/test_weight_sync.py189 # Create a fake tensor with correct shape on CPUCOMMENT
MEDIUMtests/experimental/openai/test_proxy_integration.py234 # Create a sessionCOMMENT
MEDIUMtests/fp8/test_fp8_rmsnorm.py231 # Create a dummy loss (sum of output)COMMENT
MEDIUMexamples/countdown/reward_score.py44 # Define a regex pattern that only allows numbers, operators, parentheses, and whitespaceCOMMENT
MEDIUMexamples/scaffolding/worker.py201 # Create a workerSTRING
MEDIUMexamples/scaffolding/worker.py239 # Create an async OpenAI client pointing to the SGLang serverCOMMENT
MEDIUMexamples/terminal_bench/agent/chat_agent_trace.py131 # Create an error tool calling recordSTRING
MEDIUMexamples/terminal_bench/agent/chat_agent_trace.py144 # Create the error recordSTRING
MEDIUMareal/infra/remote_inf_engine.py794 # Create a shallow copy of the input requestCOMMENT
MEDIUMareal/infra/rpc/guard/engine_blueprint.py48# Define the constraintCOMMENT
MEDIUMareal/tools/plot_session_trace.py1020 # Create a separate figure for each rankCOMMENT
MEDIUMareal/tools/plot_session_trace.py1030 # Create a figure for this rankCOMMENT
MEDIUMareal/tools/validate_docker_installation.py202 # Create an FP8 recipeCOMMENT
MEDIUMareal/tools/validate_docker_installation.py223 # Create a simple model and optimizerCOMMENT
MEDIUMareal/utils/recover.py390 # This method is called by check_if_recover to check if the experiment shouldCOMMENT
MEDIUMareal/models/tree_attn/tree.py375 # Create an empty dummy trieCOMMENT
MEDIUMareal/models/tree_attn/tree.py761 # Create a minimal valid block mask for empty treesCOMMENT
MEDIUMareal/v2/inference_service/sglang/scheduler.py220 # Create a scheduler and run the event loopCOMMENT
MEDIUMareal/workflow/openai_agent/math_agent.py67 # Create the main orchestrator agent with handoffsCOMMENT
MEDIUMareal/api/reward_api.py47 """This function is a placeholder for the reward function that will be used in the RLVR pipeline.STRING
MEDIUMareal/engine/megatron_utils/fp8/__init__.py5# This module provides FP8 quantization and dequantization utilities forCOMMENT
MEDIUMareal/engine/megatron_utils/fp8/tensor_helper.py32 # Create a tensor subclass that wraps rowwise_dataCOMMENT
MEDIUMareal/trainer/rl_trainer.py1029 # Create a working copy of configCOMMENT
Modern AI Meta-Vocabulary16 hits · 52 pts
SeverityFileLineSnippetContext
MEDIUMexamples/scaffolding/search_agent_controller.py152 # the SGLang context window.COMMENT
MEDIUMexamples/scaffolding/README.md63# Step 4: Create ScaffoldingLlm (orchestrates controllers with workers)COMMENT
MEDIUMexamples/scaffolding/core/worker.py2# Vendored from tensorrt_llm.scaffolding.workerCOMMENT
MEDIUMexamples/scaffolding/core/task.py2# Vendored from tensorrt_llm.scaffolding.taskCOMMENT
MEDIUMexamples/scaffolding/core/math_utils.py2# Vendored from tensorrt_llm.scaffolding.math_utilsCOMMENT
MEDIUMexamples/scaffolding/core/controller.py2# Vendored from tensorrt_llm.scaffolding.controllerCOMMENT
MEDIUMexamples/scaffolding/core/__init__.py2# Vendored from TensorRT-LLM scaffolding framework.COMMENT
MEDIUMexamples/scaffolding/core/__init__.py3# Core scaffolding primitives adapted for standalone use in AReaL.COMMENT
MEDIUMexamples/scaffolding/core/scaffolding_llm.py2# Vendored from tensorrt_llm.scaffolding.scaffolding_llmCOMMENT
MEDIUMexamples/scaffolding/core/result.py2# Vendored from tensorrt_llm.scaffolding.resultCOMMENT
MEDIUMexamples/scaffolding/core/task_collection.py2# Vendored from tensorrt_llm.scaffolding.task_collectionCOMMENT
MEDIUMareal/experimental/openai/client.py355 # prompt + generation past the backend model's context window.COMMENT
MEDIUMareal/utils/logging.py34# - white: Controllers, RPC, Inference wrappers (orchestration)COMMENT
MEDIUMareal/utils/logging.py123 # Inference service - white (orchestration)COMMENT
MEDIUMareal/v2/cli/inference/client.py15# the scaffold names directly.COMMENT
MEDIUMareal/v2/inference_service/vllm/bridge.py36 # Compute effective max_new_tokens (cap by remaining context window)COMMENT
Cross-Language Confusion6 hits · 46 pts
SeverityFileLineSnippetContext
HIGHtests/test_adv_norm_config.py599 # With single element, unbiased std should return zero (undefined)COMMENT
HIGHareal/infra/utils/slurm.py50 if kill -0 "$pid" 2>/dev/null; thenCODE
HIGHareal/infra/utils/slurm.py52 kill "$pid" 2>/dev/null || trueCODE
HIGHareal/infra/utils/slurm.py59 if kill -0 "$pid" 2>/dev/null; thenCODE
HIGHareal/infra/utils/slurm.py60 kill -9 "$pid" 2>/dev/null || trueCODE
HIGHareal/infra/utils/slurm.py112 if ! kill -0 "$pid" 2>/dev/null; thenCODE
AI Structural Patterns35 hits · 33 pts
SeverityFileLineSnippetContext
LOWtests/test_rollout_controller.py798CODE
LOWtests/experimental/archon/torchrun/dist_utils.py21CODE
LOWtests/experimental/archon/torchrun/dist_utils.py131CODE
LOWtests/experimental/openai/test_cache.py27CODE
LOWtests/v2/inference_service/test_inf_bridge.py63CODE
LOW.agents/skills/review-pr/sync_review_pr_refs.py48CODE
LOWexamples/tir/tir_workflow.py273CODE
LOWexamples/tir/tools/daytona_python_tool.py74CODE
LOWexamples/terminal_bench/agent/camel_terminal_agent.py39CODE
LOWexamples/terminal_bench/workflow/camel_rlvr_workflow.py25CODE
LOWareal/experimental/camel/openai_model.py194CODE
LOWareal/experimental/models/archon/expert_parallel.py214CODE
LOW…/experimental/models/archon/qwen3/infra/parallelize.py302CODE
LOWareal/experimental/models/archon/moe/utils.py248CODE
LOWareal/experimental/models/archon/moe/utils.py285CODE
LOWareal/experimental/openai/client.py547CODE
LOWareal/experimental/openai/client.py570CODE
LOWareal/experimental/openai/client.py592CODE
LOWareal/experimental/openai/client.py1031CODE
LOWareal/infra/remote_inf_engine.py946CODE
LOWareal/infra/scheduler/slurm.py73CODE
LOWareal/infra/scheduler/local.py100CODE
LOWareal/infra/sandbox/runner.py103CODE
LOWareal/models/mcore/lightning_attention.py151CODE
LOWareal/models/mcore/lightning_attention.py174CODE
LOWareal/models/mcore/lightning_attention.py342CODE
LOWareal/models/transformers/vision_sp_shard.py196CODE
LOWareal/v2/weight_update/nccl_group.py18CODE
LOWareal/v2/weight_update/controller/controller.py106CODE
LOWareal/engine/core/distributed.py79CODE
LOWareal/engine/megatron_utils/checkpointer.py228CODE
LOWareal/engine/megatron_utils/packed_context_parallel.py425CODE
LOWareal/engine/vllm_ext/areal_vllm_server.py359CODE
LOWareal/engine/fsdp_utils/optimizer.py45CODE
LOWareal/trainer/ppo/actor.py420CODE
Over-Commented Block27 hits · 23 pts
SeverityFileLineSnippetContext
LOWpyproject.vllm.toml1# vLLM variant of the AReaL project configuration.COMMENT
LOWtests/test_megatron_engine_distributed.py261 _run_test_with_torchrun(COMMENT
LOWtests/test_adv_norm_config.py1161COMMENT
LOWtests/experimental/archon/torchrun/run_cp_forward.py301 # Run with `torchrun --nproc_per_node=N` to test with multiple GPUsCOMMENT
LOWtests/torchrun/run_megatron_engine_distributed.py41 "qwen3_5": "megatron-bridge",COMMENT
LOWexamples/environ_ref.yaml21 NCCL_SET_THREAD_NAME: "1"COMMENT
LOWexamples/countdown/countdown.py441 type=str,COMMENT
LOWexamples/search_agent/tongyi_deepresearch/prompt.py1# SYSTEM_PROMPT = """You are a deep research assistant. Your core function is to conduct thorough, multi-source investigCOMMENT
LOWexamples/search_agent/tongyi_deepresearch/prompt.py21# import numpy as npCOMMENT
LOWareal/infra/platforms/platform.py41 # use "CPU" as a fallback for platforms not registered in PyTorchCOMMENT
LOWareal/infra/rpc/rtensor.py301COMMENT
LOWareal/infra/rpc/guard/engine_blueprint.py581 # contain shard ids from DP-head results. Remotizing on non-DP-headCOMMENT
LOWareal/utils/logging.py21)COMMENT
LOWareal/utils/functional/vocab_parallel.py341 # Strategy: First compute entropy gradient (needs original softmax values),COMMENT
LOWareal/v2/inference_service/data_proxy/app.py801 # =========================================================================COMMENT
LOWareal/api/cli_args.py1841 # to vLLM, achieving enable_*=False behavior.COMMENT
LOWareal/engine/fsdp_engine.py521 # directly destroy all groups. Otherwise, process groupCOMMENT
LOWareal/engine/megatron_engine.py421COMMENT
LOWareal/engine/megatron_engine.py1001 # Step 1: Prepare micro-batchesCOMMENT
LOWareal/engine/megatron_engine.py1741 if gen_pp_size > 1:COMMENT
LOWareal/engine/sglang_remote.py281 pp_rank = int(group_name.rsplit("_", 1)[-1])COMMENT
LOWareal/engine/megatron_utils/checkpointer.py1# SPDX-License-Identifier: Apache-2.0COMMENT
LOWareal/engine/megatron_utils/checkpointer.py301 torch.distributed.barrier()COMMENT
LOWareal/engine/megatron_utils/checkpointer.py461 async_save=self.async_save,COMMENT
LOWareal/engine/megatron_utils/packed_context_parallel.py301 packed_seq_params = NoneCOMMENT
LOWareal/engine/megatron_utils/megatron.py141 return paramCOMMENT
LOWareal/engine/megatron_utils/fp8/__init__.py1# SPDX-License-Identifier: Apache-2.0COMMENT
AI Slop Vocabulary7 hits · 15 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_math_verify_reward.py498 """Advanced LaTeX formula tests for robust mathematical notation."""STRING
MEDIUMtests/experimental/archon/torchrun/run_cp_forward.py259 # Use cosine similarity for comparison (more robust to numerical errors)COMMENT
MEDIUMexamples/search_agent/tongyi_deepresearch/prompt.py1# SYSTEM_PROMPT = """You are a deep research assistant. Your core function is to conduct thorough, multi-source investigCOMMENT
MEDIUMexamples/search_agent/tongyi_deepresearch/prompt.py1# SYSTEM_PROMPT = """You are a deep research assistant. Your core function is to conduct thorough, multi-source investigCOMMENT
MEDIUMexamples/search_agent/tongyi_deepresearch/prompt.py38SYSTEM_PROMPT = """You are a deep research assistant. Your core function is to conduct thorough, multi-source investigatCODE
LOWareal/tools/perf_trace_converter.py493 # Replace .jsonl extension with .json, or just add .jsonCOMMENT
MEDIUMareal/utils/seqpack.py387 """Compute comprehensive packing quality metrics for a given partition.STRING
Magic Placeholder Names2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHdocs/zh/best_practices/debugging.md72asyncio.run(MyAgent().run(data, base_url="https://api.openai.com/v1", api_key="YOUR_API_KEY"))CODE
HIGHdocs/en/best_practices/debugging.md79asyncio.run(MyAgent().run(data, base_url="https://api.openai.com/v1", api_key="YOUR_API_KEY"))CODE
Fake / Example Data10 hits · 6 pts
SeverityFileLineSnippetContext
LOWtests/v2/inference_service/test_inf_bridge.py573 "image_url": {"url": "placeholder"},CODE
LOWtests/v2/inference_service/test_image_input.py101 assert vllm_content[1]["image_url"]["url"] == "placeholder"CODE
LOWtests/v2/inference_service/test_image_input.py369 "image_url": {"url": "placeholder"},CODE
LOWtests/v2/inference_service/test_image_input.py405 {"type": "image_url", "image_url": {"url": "placeholder"}},CODE
LOWtests/v2/inference_service/test_image_input.py406 {"type": "image_url", "image_url": {"url": "placeholder"}},CODE
LOWtests/v2/inference_service/test_image_input.py443 {"type": "image_url", "image_url": {"url": "placeholder"}},CODE
LOWtests/v2/inference_service/test_image_input.py444 {"type": "image_url", "image_url": {"url": "placeholder"}},CODE
LOWtests/v2/inference_service/test_image_input.py476 {"type": "image_url", "image_url": {"url": "placeholder"}},CODE
LOWtests/v2/inference_service/test_data_proxy_chat.py396 headers={"Authorization": "Bearer fake-key"},CODE
LOWareal/experimental/openai/client.py227 "image_url": {"url": "placeholder"},CODE
Overly Generic Function Names4 hits · 4 pts
SeverityFileLineSnippetContext
LOWexamples/scaffolding/core/worker.py21 async def run_task(self, task: Task) -> TaskStatus:CODE
LOWareal/v2/agent_service/gateway/bridge.py34 async def handle_request(self, request: Request) -> Any: ...CODE
LOWareal/v2/agent_service/gateway/bridge.py48 async def handle_request(self, request: Request) -> Any:CODE
LOWareal/v2/agent_service/gateway/bridge.py335 async def handle_request(self, request: Request) -> Any:CODE
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWscripts/uv_sync.sh4# Usage:COMMENT
TODO Padding1 hit · 1 pts
SeverityFileLineSnippetContext
LOWareal/models/mcore/registry.py320 share_embeddings_and_output_weights=False, # TODO: implement share output weightsCODE