AI Slop Code RIsk Monitor

newton-physics/newton

An open-source, GPU-accelerated physics simulation engine built upon NVIDIA Warp, specifically targeting roboticists and simulation researchers.

25.2 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for newton-physics/newton, a Python project with 5,747 GitHub stars. SynthScan examined 651,637 lines of code across 1142 source files, recording 12732 pattern matches distributed across 22 syntactic categories. The legacy adjusted pattern signal is 25.2 (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.

25.2
Adjusted Signal
25.2
Raw Pattern Score
100%
Time Factor
2026-10-09
Last Push
5.7K
Stars
Python
Language
651.6K
Lines of Code
1.1K
Files
12.7K
Pattern Hits
2026-10-12
Scan Date
0.37
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 54.3/100 · HIGH

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

Hallucinated Dependency & Supply Chain Risk 11.4/100 · LOW

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

Agent Over-Engineering Ratio 57.2/100 · HIGH

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

PR Review Velocity Impact 75.6/100 · CRITICAL

Which changes need focused human review? 12732 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 64HIGH 358MEDIUM 1650LOW 10660

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 12732 distinct pattern matches across 22 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 Identifiers7904 hits · 6289 pts
SeverityFileLineSnippetContext
LOWasv/tests/test_benchmark_simulation.py121 def test_asv_runner_resolves_benchmark_support_modules(self):CODE
LOWasv/tests/test_benchmark_simulation.py144 def test_benchmark_imports_preserve_warp_config(self):CODE
LOWasv/tests/test_benchmark_simulation.py151 def test_benchmark_modules_defer_workload_imports(self):CODE
LOWasv/tests/test_benchmark_simulation.py166 def test_convex_benchmark_covers_types_and_scales(self):CODE
LOWasv/tests/test_benchmark_simulation.py187 def test_nightly_collision_benchmarks_cover_distinct_pipeline_paths(self):CODE
LOWasv/tests/test_benchmark_simulation.py207 def test_deformable_collision_benchmark_is_in_pr_gate(self):CODE
LOWasv/tests/test_benchmark_simulation.py233 def test_mujoco_step_falls_back_when_cuda_graph_is_unavailable(self):CODE
LOWasv/tests/test_benchmark_simulation.py256 def test_mujoco_contact_observables_only_update_on_last_substep(self):CODE
LOWasv/tests/test_benchmark_simulation.py281 def test_mujoco_benchmark_supports_sensorless_steps(self):CODE
LOWasv/tests/test_benchmark_simulation.py302 def test_mujoco_kpi_requires_cuda_graph(self):CODE
LOWasv/tests/test_benchmark_simulation.py311 def test_mujoco_metrics_include_solver_iterations(self):CODE
LOWasv/tests/test_benchmark_simulation.py344 def test_initialize_kpis_discard_a_matching_warmup_sample(self):CODE
LOWasv/tests/test_benchmark_simulation.py382 def test_initialize_kpis_share_one_cache(self):CODE
LOWasv/tests/test_benchmark_simulation.py392 def test_metric_setup_caches_skip_without_cuda(self):CODE
LOWasv/tests/test_benchmark_simulation.py412 def test_kpi_dr_legs_setup_cache_timeout_exceeds_default(self):CODE
LOWasv/tests/test_benchmark_simulation.py417 def test_fast_dr_legs_solver_does_not_import_torch(self):CODE
LOWasv/tests/test_benchmark_simulation.py467 def test_aws_benchmark_comparison_gates_only_runtime_metrics(self):CODE
LOWasv/tests/test_benchmark_simulation.py531 def test_pr_gate_caps_repeats_without_dropping_cases(self):CODE
LOWasv/tests/test_benchmark_simulation.py546 def test_fast_allegro_uses_representative_pr_workload(self):CODE
LOWasv/tests/test_benchmark_simulation.py560 def test_pr_asv_config_only_omits_torch(self):CODE
LOWasv/tests/test_benchmark_simulation.py582 def test_pr_camera_warmup_matches_selected_outputs(self):CODE
LOWasv/tests/test_benchmark_simulation.py641 def test_anymal_short_horizon_validation(self):CODE
LOWasv/tests/test_benchmark_metrics.py24 def test_compute_simulation_metrics(self):CODE
LOWasv/tests/test_benchmark_metrics.py42 def test_collect_simulation_metrics(self):CODE
LOWasv/tests/test_benchmark_metrics.py101 def test_collect_simulation_metrics_with_synchronization(self):CODE
LOWasv/tests/test_benchmark_metrics.py155 def test_collect_simulation_metrics_rejects_increased_free_memory(self):CODE
LOWasv/tests/test_benchmark_metrics.py186 def test_collect_startup_metrics(self):CODE
LOWasv/tests/test_benchmark_metrics.py220 def test_collect_startup_metrics_rejects_missing_phases(self):CODE
LOWasv/tests/test_benchmark_metrics.py241 def test_collect_startup_metrics_rejects_nonpositive_samples(self):CODE
LOWasv/tests/test_benchmark_metrics.py247 def test_validate_simulation_state(self):CODE
LOWasv/benchmarks/benchmark_metric_tracks.py18 def track_simulation_steps_per_second(self, metrics, world_count):CODE
LOWasv/benchmarks/benchmark_metric_tracks.py36 def track_steady_state_gpu_memory(self, metrics, world_count):CODE
LOWasv/benchmarks/benchmark_metric_tracks.py58 def track_mean_world_step_time(self, metrics):CODE
LOWasv/benchmarks/benchmark_metric_tracks.py64 def track_simulation_steps_per_second(self, metrics):CODE
LOWasv/benchmarks/benchmark_metric_tracks.py82 def track_steady_state_gpu_memory(self, metrics):CODE
LOWasv/benchmarks/benchmark_metrics.py41def compute_simulation_metrics(CODE
LOWasv/benchmarks/benchmark_metrics.py79def validate_simulation_state(CODE
LOWasv/benchmarks/benchmark_metrics.py113def collect_simulation_metrics(CODE
LOWasv/benchmarks/setup/bench_model.py88 def track_mean_replication_time(self, metrics, robot, world_count):CODE
LOWasv/benchmarks/setup/bench_model.py165 def _initialize_model_and_sensor(self, builder):CODE
LOWasv/benchmarks/setup/bench_model.py220 def peakmem_initialize_model_cpu(self, robot, world_count):CODE
LOWasv/benchmarks/simulation/bench_teleop_mujoco.py94 def coefficient_of_variation_pct(self, name: str) -> float:CODE
LOW⚡asv/benchmarks/simulation/bench_teleop_mujoco.py556 def track_sustainable_physics_step_hz(self, mode: str) -> float:CODE
LOW⚡asv/benchmarks/simulation/bench_teleop_mujoco.py563 def track_mean_target_error_m(self, mode: str) -> float:CODE
LOW⚡asv/benchmarks/simulation/bench_teleop_mujoco.py569 def track_mean_target_rotation_error_rad(self, mode: str) -> float:CODE
LOW⚡asv/benchmarks/simulation/bench_teleop_mujoco.py575 def track_hand_object_contact_frame_pct(self, mode: str) -> float:CODE
LOW⚡asv/benchmarks/simulation/bench_teleop_mujoco.py582 def track_object_displacement_m(self, mode: str) -> float:CODE
LOWasv/benchmarks/simulation/bench_sensor_tiled_camera.py116def _disable_collision_handling(builder: newton.ModelBuilder) -> None:CODE
LOWasv/benchmarks/simulation/bench_contacts.py175def _build_single_world_scene(pair_count: int) -> newton.Model:CODE
LOWasv/benchmarks/simulation/bench_cable.py17def _supports_cable_pile_size_args():CODE
LOWasv/benchmarks/simulation/bench_reset.py276 def time_reset_and_first_step(self, world_count, reset_count):CODE
LOWasv/benchmarks/simulation/bench_sensor_camera.py115def _disable_collision_handling(builder: newton.ModelBuilder) -> None:CODE
LOWasv/benchmarks/simulation/bench_mujoco.py84 def _validate_metrics_workload(self, workload, world_count, solver_niter_samples):CODE
LOW⚡asv/benchmarks/simulation/bench_kamino.py238 def time_notify_actuator_properties(self):CODE
LOW⚡asv/benchmarks/simulation/bench_kamino.py246 def time_notify_body_inertial_properties(self):CODE
LOW⚡asv/benchmarks/simulation/bench_kamino.py250 def time_notify_body_properties(self):CODE
LOW⚡asv/benchmarks/simulation/bench_kamino.py254 def time_notify_joint_dof_properties(self):CODE
LOW⚡asv/benchmarks/simulation/bench_kamino.py258 def time_notify_joint_properties(self):CODE
LOW⚡asv/benchmarks/simulation/bench_kamino.py262 def time_notify_model_properties(self):CODE
LOW⚡asv/benchmarks/simulation/bench_kamino.py266 def time_notify_shape_properties(self):CODE
7844 more matches not shown…
Decorative Section Separators941 hits · 3127 pts
SeverityFileLineSnippetContext
MEDIUMnewton/usd.py10# ==================================================================================COMMENT
MEDIUMnewton/usd.py12# ==================================================================================COMMENT
MEDIUMnewton/usd.py56# ==================================================================================COMMENT
MEDIUMnewton/usd.py58# ==================================================================================COMMENT
MEDIUM⚡newton/__init__.py47# ==================================================================================COMMENT
MEDIUM⚡newton/__init__.py49# ==================================================================================COMMENT
MEDIUMnewton/__init__.py4# ==================================================================================COMMENT
MEDIUMnewton/__init__.py6# ==================================================================================COMMENT
MEDIUMnewton/__init__.py74# ==================================================================================COMMENT
MEDIUMnewton/__init__.py76# ==================================================================================COMMENT
MEDIUMnewton/__init__.py123# ==================================================================================COMMENT
MEDIUMnewton/__init__.py125# ==================================================================================COMMENT
MEDIUM⚡newton/utils.py7# ==================================================================================COMMENT
MEDIUM⚡newton/utils.py9# ==================================================================================COMMENT
MEDIUM⚡newton/utils.py17# ==================================================================================COMMENT
MEDIUM⚡newton/utils.py19# ==================================================================================COMMENT
MEDIUM⚡newton/utils.py44# ==================================================================================COMMENT
MEDIUM⚡newton/utils.py46# ==================================================================================COMMENT
MEDIUM⚡newton/utils.py55# ==================================================================================COMMENT
MEDIUM⚡newton/utils.py57# ==================================================================================COMMENT
MEDIUM⚡newton/utils.py135# ==================================================================================COMMENT
MEDIUM⚡newton/utils.py137# ==================================================================================COMMENT
MEDIUM⚡newton/utils.py144# ==================================================================================COMMENT
MEDIUM⚡newton/utils.py146# ==================================================================================COMMENT
MEDIUM⚡newton/utils.py153# ==================================================================================COMMENT
MEDIUM⚡newton/utils.py155# ==================================================================================COMMENT
MEDIUM⚡newton/utils.py165# ==================================================================================COMMENT
MEDIUM⚡newton/utils.py167# ==================================================================================COMMENT
MEDIUM⚡newton/utils.py175# ==================================================================================COMMENT
MEDIUM⚡newton/utils.py177# ==================================================================================COMMENT
MEDIUMnewton/utils.py71# ==================================================================================COMMENT
MEDIUMnewton/utils.py73# ==================================================================================COMMENT
MEDIUMnewton/_src/sensors/warp_raytrace/__init__.py4# =============================================================================COMMENT
MEDIUMnewton/_src/sensors/warp_raytrace/__init__.py15# =============================================================================COMMENT
MEDIUMnewton/_src/solvers/kamino/_src/solver_kamino_impl.py167 # ---------------------------------------------------------------------------COMMENT
MEDIUMnewton/_src/solvers/kamino/_src/solver_kamino_impl.py217 # ---------------------------------------------------------------------------COMMENT
MEDIUM…ton/_src/solvers/kamino/_src/linalg/conjugate_fused.py74# ---------------------------------------------------------------------------COMMENT
MEDIUM…ton/_src/solvers/kamino/_src/linalg/conjugate_fused.py76# ---------------------------------------------------------------------------COMMENT
MEDIUM…ton/_src/solvers/kamino/_src/linalg/conjugate_fused.py311# ---------------------------------------------------------------------------COMMENT
MEDIUM…ton/_src/solvers/kamino/_src/linalg/conjugate_fused.py313# ---------------------------------------------------------------------------COMMENT
MEDIUMnewton/_src/solvers/kamino/_src/linalg/conjugate.py202# ---------------COMMENT
MEDIUM⚡…_src/solvers/kamino/_src/linalg/factorize/rcm_batch.py85# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…_src/solvers/kamino/_src/linalg/factorize/rcm_batch.py87# ---------------------------------------------------------------------------COMMENT
MEDIUM…_src/solvers/kamino/_src/linalg/factorize/rcm_batch.py112# ---------------------------------------------------------------------------COMMENT
MEDIUM…_src/solvers/kamino/_src/linalg/factorize/rcm_batch.py114# ---------------------------------------------------------------------------COMMENT
MEDIUM…_src/solvers/kamino/_src/linalg/factorize/rcm_batch.py474# ---------------------------------------------------------------------------COMMENT
MEDIUM…_src/solvers/kamino/_src/linalg/factorize/rcm_batch.py476# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡newton/_src/solvers/kamino/_src/geometry/aggregation.py626 # ------------------------------------------------------------------COMMENT
MEDIUM⚡newton/_src/solvers/kamino/_src/geometry/aggregation.py628 # ------------------------------------------------------------------COMMENT
MEDIUM⚡newton/_src/solvers/kamino/examples/rl/simulation.py543 # ------------------------------------------------------------------COMMENT
MEDIUM⚡newton/_src/solvers/kamino/examples/rl/simulation.py545 # ------------------------------------------------------------------COMMENT
MEDIUM⚡newton/_src/solvers/kamino/examples/rl/simulation.py1003 # ------------------------------------------------------------------COMMENT
MEDIUM⚡newton/_src/solvers/kamino/examples/rl/simulation.py1005 # ------------------------------------------------------------------COMMENT
MEDIUMnewton/_src/solvers/kamino/examples/rl/simulation.py383 # ------------------------------------------------------------------COMMENT
MEDIUMnewton/_src/solvers/kamino/examples/rl/simulation.py385 # ------------------------------------------------------------------COMMENT
MEDIUMnewton/_src/solvers/kamino/examples/rl/simulation.py442 # ------------------------------------------------------------------COMMENT
MEDIUMnewton/_src/solvers/kamino/examples/rl/simulation.py444 # ------------------------------------------------------------------COMMENT
MEDIUMnewton/_src/solvers/kamino/examples/rl/simulation.py609 # ------------------------------------------------------------------COMMENT
MEDIUMnewton/_src/solvers/kamino/examples/rl/simulation.py611 # ------------------------------------------------------------------COMMENT
MEDIUMnewton/_src/solvers/kamino/examples/rl/simulation.py631 # ------------------------------------------------------------------COMMENT
881 more matches not shown…
Self-Referential Comments671 hits · 2031 pts
SeverityFileLineSnippetContext
MEDIUMasv/benchmarks/benchmark_ik.py7# This module provides shared logic for IK benchmarks on theCOMMENT
MEDIUMasv/benchmarks/benchmark_inverse_dynamics.py7# This module provides shared logic for inverse-dynamics benchmarks onCOMMENT
MEDIUMnewton/_src/solvers/kamino/config.py276 # Create a default instance of the config to access default values for the attributesCOMMENT
MEDIUMnewton/_src/solvers/kamino/solver_kamino.py377 # Create a base config with default values andCOMMENT
MEDIUMnewton/_src/solvers/kamino/solver_kamino.py775 # Create a Kamino model from the Newton modelCOMMENT
MEDIUMnewton/_src/solvers/kamino/solver_kamino.py803 # Create a collision detector if enabled in the config, otherwiseCOMMENT
MEDIUM⚡newton/_src/solvers/kamino/_src/dynamics/dual.py26 # Create a model builder and add bodies, joints, geoms, etc.STRING
MEDIUM⚡newton/_src/solvers/kamino/_src/dynamics/dual.py30 # Create a model from the builder and construct additionalSTRING
MEDIUM⚡newton/_src/solvers/kamino/_src/dynamics/dual.py38 # Define a linear solver type to use as a back-end for theSTRING
MEDIUM⚡newton/_src/solvers/kamino/_src/dynamics/dual.py48 # Create a dual forward dynamics problem and build it using the current modelSTRING
MEDIUMnewton/_src/solvers/kamino/_src/dynamics/delassus.py1504 # Create a shallow copy of the constraint Jacobian, but with a separate array for non-zero block values.COMMENT
MEDIUM⚡newton/_src/solvers/kamino/_src/dynamics/delassus.py23 # Create a model builder and add bodies, joints, geoms, etc.STRING
MEDIUM⚡newton/_src/solvers/kamino/_src/dynamics/delassus.py27 # Create a model from the builder and construct additionalSTRING
MEDIUM⚡newton/_src/solvers/kamino/_src/dynamics/delassus.py35 # Define a linear solver type to use as a back-end for theSTRING
MEDIUM⚡newton/_src/solvers/kamino/_src/dynamics/delassus.py45 # Create a Delassus operator and build it using the current model dataSTRING
MEDIUMnewton/_src/solvers/kamino/_src/dynamics/delassus.py1260 # Create a model builder and add bodies, joints, geoms, etc.STRING
MEDIUMnewton/_src/solvers/kamino/_src/dynamics/delassus.py1264 # Create a model from the builder and construct additionalSTRING
MEDIUMnewton/_src/solvers/kamino/_src/dynamics/delassus.py1276 # Create a Delassus operator from the model data and JacobiansSTRING
MEDIUMnewton/_src/solvers/kamino/_src/core/shapes.py473 # Create the underlying mesh data containerCOMMENT
MEDIUMnewton/_src/solvers/kamino/_src/core/materials.py429 # Define the Warp function to retrieve material pair propertiesCOMMENT
MEDIUMnewton/_src/solvers/kamino/_src/core/materials.py465 # Define the Warp function to retrieve material pair propertiesCOMMENT
MEDIUMnewton/_src/solvers/kamino/_src/core/model.py617 # Create a new model data info with the total constraintCOMMENT
MEDIUMnewton/_src/solvers/kamino/_src/core/model.py717 # Create a new state container with the initial state of the model entities on the specified deviceCOMMENT
MEDIUMnewton/_src/solvers/kamino/_src/core/model.py756 # Create a new control container on the specified deviceCOMMENT
MEDIUMnewton/_src/solvers/kamino/_src/core/model.py833 # Initialize SizeKamino object, to be completed by helper functionsCOMMENT
MEDIUMnewton/_src/solvers/kamino/_src/core/state.py349 # Create a new StateKamino object, aliasing the relevant data from the input newton.StateCOMMENT
MEDIUMnewton/_src/solvers/kamino/_src/core/state.py404 # Create a new State object, aliasing the relevantCOMMENT
MEDIUMnewton/_src/solvers/kamino/_src/linalg/linear.py208 # Initialize base class membersCOMMENT
MEDIUMnewton/_src/solvers/kamino/_src/linalg/linear.py482 # Initialize base class membersCOMMENT
MEDIUMnewton/_src/solvers/kamino/_src/linalg/linear.py632 # Create the factorization and solve kernelsCOMMENT
MEDIUMnewton/_src/solvers/kamino/_src/linalg/linear.py637 # Initialize base class membersCOMMENT
MEDIUM…kamino/_src/linalg/factorize/llt_blocked_rcm_solver.py255 # Initialize base class membersCOMMENT
MEDIUM…rc/solvers/kamino/_src/linalg/factorize/llt_blocked.py104 # Create a temporary warp array pointing to the i-th matrixCOMMENT
MEDIUM…rc/solvers/kamino/_src/linalg/factorize/llt_blocked.py225 # Create a temporary warp array pointing to the i-th matrixCOMMENT
MEDIUMnewton/_src/solvers/kamino/_src/solvers/warmstart.py958 # Create a key sorter that can handle the maximum number of contactsCOMMENT
MEDIUMnewton/_src/solvers/kamino/_src/solvers/warmstart.py1180 # Create a key sorter that can handle the maximum number of contactsCOMMENT
MEDIUM⚡newton/_src/solvers/kamino/_src/solvers/metrics.py46 # Create a forward-dynamics DualProblem to be solvedSTRING
MEDIUM⚡newton/_src/solvers/kamino/_src/solvers/metrics.py50 # Create a forward-dynamics PADMM solverSTRING
MEDIUM⚡newton/_src/solvers/kamino/_src/solvers/metrics.py57 # Create a SolutionMetrics containerSTRING
MEDIUMnewton/_src/solvers/kamino/_src/solvers/metrics.py29 # Create a model builder and add bodies, joints, shapes, etc.STRING
MEDIUMnewton/_src/solvers/kamino/_src/solvers/metrics.py33 # Create a model from the builder and construct additionalSTRING
MEDIUMnewton/_src/solvers/kamino/_src/solvers/fk/solver.py266 # Create a copy of the model's joints with added joints as needed:COMMENT
MEDIUM…ton/_src/solvers/kamino/_src/solvers/padmm/__init__.py43 # Create a model builder and add bodies, joints, geoms, etc.STRING
MEDIUM…ton/_src/solvers/kamino/_src/solvers/padmm/__init__.py47 # Create a model from the builder and construct additionalSTRING
MEDIUM…ton/_src/solvers/kamino/_src/solvers/padmm/__init__.py59 # Create a forward-dynamics DualProblem to be solvedSTRING
MEDIUM…ton/_src/solvers/kamino/_src/solvers/padmm/__init__.py63 # Create a forward-dynamics PADMM solverSTRING
MEDIUMnewton/_src/solvers/kamino/_src/utils/logger.py79 # Create a stream handler with the custom logger format.COMMENT
MEDIUMnewton/_src/solvers/kamino/_src/utils/profiles.py436 # Create the figure and axisCOMMENT
MEDIUMnewton/_src/solvers/kamino/_src/utils/sim/datalog.py224 # Create an array for time loggingCOMMENT
MEDIUMnewton/_src/solvers/kamino/_src/utils/sim/datalog.py332 # Create an array for time loggingCOMMENT
MEDIUMnewton/_src/solvers/kamino/_src/utils/sim/datalog.py404 # Create an array for time loggingCOMMENT
MEDIUM⚡newton/_src/solvers/kamino/_src/utils/sim/simulator.py90 # Create a model builder and define the modelSTRING
MEDIUM⚡newton/_src/solvers/kamino/_src/utils/sim/simulator.py93 # Define the model components (e.g., bodies, joints, collision geometries etc.)STRING
MEDIUM⚡newton/_src/solvers/kamino/_src/utils/sim/simulator.py101 # Create the simulator from the modelSTRING
MEDIUMnewton/_src/solvers/kamino/_src/utils/sim/simulator.py211 # Define a physics solver for time-steppingCOMMENT
MEDIUM…on/_src/solvers/kamino/_src/utils/control/animation.py367 # Create the up-sampling interpolation functionCOMMENT
MEDIUM…on/_src/solvers/kamino/_src/utils/control/animation.py542 # Create the rate and loop arraysCOMMENT
MEDIUM⚡newton/_src/solvers/kamino/_src/kinematics/limits.py282 # Define a vector type for the joint coordinatesCOMMENT
MEDIUMnewton/_src/solvers/kamino/_src/kinematics/joints.py516 # Define a vector type for the joint coordinatesCOMMENT
MEDIUMnewton/_src/solvers/kamino/_src/kinematics/joints.py519 # Define the coordinate bound for correctionCOMMENT
611 more matches not shown…
Unused Imports873 hits · 784 pts
SeverityFileLineSnippetContext
LOWasv/run_pr_benchmarks.py6CODE
LOWasv/benchmarks/benchmark_ik.py11CODE
LOWasv/benchmarks/benchmark_inverse_dynamics.py11CODE
LOWasv/benchmarks/simulation/bench_teleop_mujoco.py12CODE
LOWasv/benchmarks/simulation/bench_ik.py4CODE
LOWasv/benchmarks/simulation/bench_inverse_dynamics.py4CODE
LOWnewton/usd.py13CODE
LOWnewton/usd.py13CODE
LOWnewton/usd.py13CODE
LOWnewton/usd.py13CODE
LOWnewton/usd.py13CODE
LOWnewton/usd.py13CODE
LOWnewton/usd.py13CODE
LOWnewton/usd.py13CODE
LOWnewton/usd.py13CODE
LOWnewton/usd.py13CODE
LOWnewton/usd.py13CODE
LOWnewton/usd.py13CODE
LOWnewton/usd.py13CODE
LOWnewton/usd.py13CODE
LOWnewton/usd.py13CODE
LOWnewton/usd.py13CODE
LOWnewton/usd.py13CODE
LOWnewton/usd.py13CODE
LOWnewton/usd.py60CODE
LOWnewton/usd.py60CODE
LOWnewton/usd.py64CODE
LOWnewton/usd.py64CODE
LOWnewton/usd.py64CODE
LOWnewton/viewer.py5CODE
LOWnewton/viewer.py5CODE
LOWnewton/viewer.py5CODE
LOWnewton/viewer.py5CODE
LOWnewton/viewer.py5CODE
LOWnewton/viewer.py5CODE
LOWnewton/viewer.py5CODE
LOWnewton/viewer.py5CODE
LOWnewton/viewer.py5CODE
LOWnewton/sensors.py4CODE
LOWnewton/sensors.py9CODE
LOWnewton/sensors.py14CODE
LOWnewton/sensors.py19CODE
LOWnewton/sensors.py24CODE
LOWnewton/controllers.py13CODE
LOWnewton/controllers.py13CODE
LOWnewton/controllers.py13CODE
LOWnewton/controllers.py13CODE
LOWnewton/controllers.py13CODE
LOWnewton/controllers.py13CODE
LOWnewton/controllers.py13CODE
LOWnewton/controllers.py13CODE
LOWnewton/ik.py6CODE
LOWnewton/ik.py6CODE
LOWnewton/ik.py6CODE
LOWnewton/ik.py6CODE
LOWnewton/ik.py6CODE
LOWnewton/ik.py6CODE
LOWnewton/ik.py6CODE
LOWnewton/ik.py6CODE
LOWnewton/ik.py6CODE
813 more matches not shown…
Hallucination Indicators64 hits · 710 pts
SeverityFileLineSnippetContext
CRITICALnewton/_src/solvers/kamino/_src/solvers/fk/solver.py897 self.data.problem.sparse_jacobian.dims.assign(jacobian_dims)CODE
CRITICAL⚡newton/_src/solvers/kamino/_src/utils/sim/datalog.py159 self.log_num_contacts[self._frames] = self._sim.contacts.data.model_active_contacts.numpy()[0]CODE
CRITICAL⚡newton/_src/solvers/kamino/_src/utils/sim/datalog.py162 self.log_padmm_iters[self._frames] = self._sim.solver.solver_fd.data.status.numpy()[0][1]CODE
CRITICAL⚡newton/_src/solvers/kamino/_src/utils/sim/datalog.py163 self.log_padmm_r_p[self._frames] = self._sim.solver.solver_fd.data.status.numpy()[0][2]CODE
CRITICAL⚡newton/_src/solvers/kamino/_src/utils/sim/datalog.py164 self.log_padmm_r_d[self._frames] = self._sim.solver.solver_fd.data.status.numpy()[0][3]CODE
CRITICAL⚡newton/_src/solvers/kamino/_src/utils/sim/datalog.py165 self.log_padmm_r_c[self._frames] = self._sim.solver.solver_fd.data.status.numpy()[0][4]CODE
CRITICAL…/_src/solvers/kamino/tests/test_utils_sim_simulator.py446 np.testing.assert_allclose(multi_sim.solver.data.joints.tau_j.numpy(), sample_ctrl_tau_j)CODE
CRITICAL⚡newton/_src/solvers/kamino/examples/rl/simulation.py540 self._w_e_i = self.sim.solver.data.bodies.w_e_i.view(wp.float32).reshape((nw, nb, 6))CODE
CRITICAL⚡newton/_src/solvers/kamino/examples/rl/simulation.py541 self._mass = self.sim.model.bodies.m_i.reshape((nw, nb))CODE
CRITICAL⚡newton/_src/solvers/kamino/examples/rl/simulation.py554 joint_num_coords = self.sim.model.joints.num_coords.numpy()[:max_joints].tolist()CODE
CRITICAL⚡newton/_src/solvers/kamino/examples/rl/simulation.py555 joint_num_dofs = self.sim.model.joints.num_dofs.numpy()[:max_joints].tolist()CODE
CRITICAL⚡newton/_src/solvers/kamino/examples/rl/simulation.py556 joint_act_type = self.sim.model.joints.act_type.numpy()[:max_joints].tolist()CODE
CRITICAL⚡newton/_src/solvers/kamino/examples/rl/simulation.py557 joint_q_j_min = self.sim.model.joints.q_j_min.numpy()CODE
CRITICAL⚡newton/_src/solvers/kamino/examples/rl/simulation.py558 joint_q_j_max = self.sim.model.joints.q_j_max.numpy()CODE
CRITICAL…n/_src/solvers/kamino/examples/rl/example_rl_drlegs.py461 self.sim_wrapper.sim.control.q_j_ref.zero_()CODE
CRITICAL…n/_src/solvers/kamino/examples/rl/example_rl_drlegs.py462 self.sim_wrapper.sim.control.dq_j_ref.zero_()CODE
CRITICAL⚡…/_src/solvers/kamino/examples/rl/example_rl_bipedal.py229 self.sim_wrapper.sim.model.joints.k_p_j.fill_(15.0)CODE
CRITICAL⚡…/_src/solvers/kamino/examples/rl/example_rl_bipedal.py230 self.sim_wrapper.sim.model.joints.k_d_j.fill_(0.6)CODE
CRITICAL⚡…/_src/solvers/kamino/examples/rl/example_rl_bipedal.py231 self.sim_wrapper.sim.model.joints.a_j.fill_(0.004)CODE
CRITICAL⚡…/_src/solvers/kamino/examples/rl/example_rl_bipedal.py232 self.sim_wrapper.sim.model.joints.b_j.fill_(0.0)CODE
CRITICALnewton/tests/test_mujoco_solver.py10832 meaninertia = self.solver.mjw_model.stat.meaninertia.numpy()STRING
CRITICAL…sts/kamino/test_kamino_solver_kamino_joint_friction.py372 solver._solver_kamino.data.joints.lambda_f_j.numpy(), torque, atol=1.0e-3, rtol=0.0CODE
CRITICAL…sts/kamino/test_kamino_solver_kamino_joint_friction.py393 solver._solver_kamino.data.joints.lambda_f_j.numpy(), -1.0e-5, atol=1.0e-8, rtol=0.0CODE
CRITICAL…sts/kamino/test_kamino_solver_kamino_joint_friction.py505 cold_residual = float(cold_solver._solver_kamino.metrics.data.r_vi_natmap.numpy()[0])CODE
CRITICAL…sts/kamino/test_kamino_solver_kamino_joint_friction.py506 warm_residual = float(warm_solver._solver_kamino.metrics.data.r_vi_natmap.numpy()[0])CODE
CRITICAL⚡newton/tests/kamino/test_kamino_solvers_dvi_apgd.py222 impulses = solver.owner.data.solution.lambdas.numpy().astype(np.float64)CODE
CRITICAL⚡newton/tests/kamino/test_kamino_solvers_dvi_apgd.py505 solver.owner.data.solution.lambdas.numpy(), [-0.4, 0.0, 0.8], atol=1e-6, rtol=0.0CODE
CRITICAL⚡newton/tests/kamino/test_kamino_solvers_dvi_apgd.py512 solver.owner.data.solution.lambdas.assign(np.array([-0.5, 0.0, 1.0], dtype=np.float32))CODE
CRITICAL⚡newton/tests/kamino/test_kamino_solvers_dvi_apgd.py516 solver.owner.data.solution.lambdas.numpy(), [-0.5, 0.0, 1.0], atol=1e-6, rtol=0.0CODE
CRITICAL⚡newton/tests/kamino/test_kamino_solvers_dvi_apgd.py753 solver.owner.data.solution.lambdas.assign(stale)CODE
CRITICAL⚡newton/tests/kamino/test_kamino_solvers_dvi_apgd.py755 result = solver.owner.data.solution.lambdas.numpy()CODE
CRITICAL⚡newton/tests/kamino/test_kamino_solvers_dvi_apgd.py759 np.testing.assert_allclose(solver.owner.data.solution.lambdas.numpy(), [-0.5, 0.0, 1.0] * 2, atol=2e-5)CODE
CRITICAL⚡newton/tests/kamino/test_kamino_solvers_dvi_apgd.py907 solver.owner.data.solution.lambdas.zero_()CODE
CRITICAL⚡newton/tests/kamino/test_kamino_solvers_dvi_apgd.py911 np.testing.assert_allclose(solver.owner.data.solution.lambdas.numpy(), expected, atol=2e-5)CODE
CRITICALnewton/tests/kamino/test_kamino_solvers_dvi_apgd.py184 impulses = solver.owner.data.solution.lambdas.numpy()CODE
CRITICALnewton/tests/kamino/test_kamino_solvers_dvi_apgd.py206 solver.owner.data.solution.lambdas.zero_()CODE
CRITICALnewton/tests/kamino/test_kamino_solvers_dvi_apgd.py252 solver.owner.data.solution.lambdas.zero_()CODE
CRITICALnewton/tests/kamino/test_kamino_solvers_dvi_apgd.py257 impulses = solver.owner.data.solution.lambdas.numpy()CODE
CRITICALnewton/tests/kamino/test_kamino_solvers_dvi_apgd.py299 impulses = solver.owner.data.solution.lambdas.numpy().reshape(-1, 2).astype(np.float64)CODE
CRITICALnewton/tests/kamino/test_kamino_solvers_dvi_apgd.py334 impulses = solver.owner.data.solution.lambdas.numpy().reshape(-1, 3).astype(np.float64)CODE
CRITICALnewton/tests/kamino/test_kamino_solvers_dvi_apgd.py359 solver.owner.data.solution.lambdas.zero_()CODE
CRITICALnewton/tests/kamino/test_kamino_solvers_dvi_apgd.py379 np.testing.assert_allclose(solver.owner.data.solution.lambdas.numpy(), [1.0, 0.0], atol=1e-6)CODE
CRITICALnewton/tests/kamino/test_kamino_solvers_dvi_apgd.py424 solver.owner.data.solution.lambdas.numpy()[:12], np.ravel(expected), atol=2e-5CODE
CRITICALnewton/tests/kamino/test_kamino_solvers_dvi_apgd.py446 solver.owner.data.solution.lambdas.numpy(),CODE
CRITICALnewton/tests/kamino/test_kamino_solvers_dvi_apgd.py470 np.testing.assert_allclose(solver.owner.data.solution.lambdas.numpy(), expected, atol=2e-5)CODE
CRITICALnewton/tests/kamino/test_kamino_solvers_dvi_apgd.py485 np.testing.assert_array_equal(solver.owner.data.solution.lambdas.numpy(), [0.0, 0.0, 0.0])CODE
CRITICALnewton/tests/kamino/test_kamino_solvers_dvi_apgd.py541 solver.owner.data.solution.lambdas.zero_()CODE
CRITICALnewton/tests/kamino/test_kamino_solvers_dvi_apgd.py554 np.testing.assert_array_equal(solver.owner.data.solution.lambdas.numpy(), [0.0, 0.0, 0.0])CODE
CRITICALnewton/tests/kamino/test_kamino_solvers_dvi_apgd.py577 solver.owner.data.solution.lambdas.zero_()CODE
CRITICALnewton/tests/kamino/test_kamino_solvers_dvi_apgd.py614 solver.owner.data.solution.lambdas.numpy(), [-0.25, 0.0, 0.5], atol=1e-5, rtol=0.0CODE
CRITICALnewton/tests/kamino/test_kamino_solvers_dvi_apgd.py685 solver.owner.data.solution.lambdas.zero_()CODE
CRITICALnewton/tests/kamino/test_kamino_solvers_dvi_apgd.py696 impulses = solver.owner.data.solution.lambdas.numpy()CODE
CRITICALnewton/tests/kamino/test_kamino_solvers_dvi_apgd.py727 np.testing.assert_array_equal(solver.owner.data.solution.lambdas.numpy(), impulses)CODE
CRITICALnewton/tests/kamino/test_kamino_solvers_dvi_apgd.py972 info = solver._solver_kamino.solver_fd.data.status.numpy()[0]CODE
CRITICALnewton/tests/kamino/test_kamino_solvers_dvi_apgd.py1027 info = example.solver._solver_kamino.solver_fd.data.status.numpy()[0]CODE
CRITICAL…/tests/kamino/test_kamino_solver_joint_effort_limit.py145 actual_efforts = solver._solver_kamino.data.joints.lambda_tau_j.numpy()CODE
CRITICAL…/tests/kamino/test_kamino_solver_joint_effort_limit.py147 body_efforts = solver._solver_kamino.data.bodies.w_a_i.numpy()CODE
CRITICAL…/tests/kamino/test_kamino_solver_joint_effort_limit.py214 cold_residual = float(cold_solver._solver_kamino.metrics.data.r_vi_natmap.numpy()[0])CODE
CRITICAL…/tests/kamino/test_kamino_solver_joint_effort_limit.py215 warm_residual = float(warm_solver._solver_kamino.metrics.data.r_vi_natmap.numpy()[0])CODE
CRITICALnewton/tests/kamino/test_kamino_solvers_dvi.py1080 contact_lambdas = solver_kamino.solver_fd.data.solution.lambdas.numpy()[CODE
4 more matches not shown…
Cross-File Repetition123 hits · 615 pts
SeverityFileLineSnippetContext
HIGHnewton/_src/solvers/kamino/_src/linalg/sparse_matrix.py0kamino: linear algebra: core types and utilities for multi-linear systems this module provides data structures and utiliSTRING
HIGH…ton/_src/solvers/kamino/_src/linalg/sparse_operator.py0kamino: linear algebra: core types and utilities for multi-linear systems this module provides data structures and utiliSTRING
HIGHnewton/_src/solvers/kamino/_src/linalg/core.py0kamino: linear algebra: core types and utilities for multi-linear systems this module provides data structures and utiliSTRING
HIGH…ton/_src/solvers/kamino/_src/integrators/integrator.py0solves the time integration sub-problem using a semi-implicit euler scheme to integrate the current state of the system STRING
HIGHnewton/_src/solvers/kamino/_src/integrators/moreau.py0solves the time integration sub-problem using a semi-implicit euler scheme to integrate the current state of the system STRING
HIGHnewton/_src/solvers/kamino/_src/integrators/euler.py0solves the time integration sub-problem using a semi-implicit euler scheme to integrate the current state of the system STRING
HIGHnewton/_src/viewer/viewer_rtx.py0get the current vsync state. returns: true if vsync is enabled, false otherwise.STRING
HIGHnewton/_src/viewer/viewer_gl.py0get the current vsync state. returns: true if vsync is enabled, false otherwise.STRING
HIGHnewton/_src/viewer/gl/opengl.py0get the current vsync state. returns: true if vsync is enabled, false otherwise.STRING
HIGHnewton/_src/viewer/viewer_rtx.py0log a scalar value as a live time-series plot. each unique *name* creates a separate line plot displayed in an auto-geneSTRING
HIGHnewton/_src/viewer/plot_logger.py0log a scalar value as a live time-series plot. each unique *name* creates a separate line plot displayed in an auto-geneSTRING
HIGHnewton/_src/viewer/viewer_gl.py0log a scalar value as a live time-series plot. each unique *name* creates a separate line plot displayed in an auto-geneSTRING
HIGHnewton/_src/viewer/viewer_rtx.py0remove the splash set by :meth:`show_loading_splash`.STRING
HIGHnewton/_src/viewer/viewer_gl.py0remove the splash set by :meth:`show_loading_splash`.STRING
HIGHnewton/_src/viewer/viewer_gui.py0remove the splash set by :meth:`show_loading_splash`.STRING
HIGHnewton/_src/viewer/viewer_rtx.py0register a callback invoked when the user clicks the native reset button. args: callback: called with no arguments on reSTRING
HIGHnewton/_src/viewer/viewer_gl.py0register a callback invoked when the user clicks the native reset button. args: callback: called with no arguments on reSTRING
HIGHnewton/_src/viewer/viewer_viser.py0register a callback invoked when the user clicks the native reset button. args: callback: called with no arguments on reSTRING
HIGHnewton/_src/actuators/delay.py0resolve user-provided arguments with defaults. args: args: user-provided arguments. returns: complete arguments with defSTRING
HIGHnewton/_src/actuators/drives/base.py0resolve user-provided arguments with defaults. args: args: user-provided arguments. returns: complete arguments with defSTRING
HIGHnewton/_src/actuators/clamping/base.py0resolve user-provided arguments with defaults. args: args: user-provided arguments. returns: complete arguments with defSTRING
HIGHnewton/_src/controllers/tool_selection.py0body index of each controlled robot's tool site, shape [controlled_robot_count].STRING
HIGH…n/_src/controllers/impl/differential_ik/model_based.py0body index of each controlled robot's tool site, shape [controlled_robot_count].STRING
HIGH…_src/controllers/impl/operational_space/model_based.py0body index of each controlled robot's tool site, shape [controlled_robot_count].STRING
HIGH…n/_src/controllers/impl/differential_ik/model_based.py0current joint positions [m or rad], shape [model.joint_coord_count].STRING
HIGH…n/_src/controllers/impl/joint_impedance/model_based.py0current joint positions [m or rad], shape [model.joint_coord_count].STRING
HIGH…_src/controllers/impl/operational_space/model_based.py0current joint positions [m or rad], shape [model.joint_coord_count].STRING
HIGH…n/_src/controllers/impl/differential_ik/model_based.py0current joint velocities [m/s or rad/s], shape [model.joint_dof_count].STRING
HIGH…n/_src/controllers/impl/joint_impedance/model_based.py0current joint velocities [m/s or rad/s], shape [model.joint_dof_count].STRING
HIGH…_src/controllers/impl/operational_space/model_based.py0current joint velocities [m/s or rad/s], shape [model.joint_dof_count].STRING
HIGH…n/_src/controllers/impl/differential_ik/model_based.py0return, for each (controlled robot, padded slot), the dof's index within that robot. ``joint_selection.qd_start`` is in STRING
HIGH…n/_src/controllers/impl/joint_impedance/model_based.py0return, for each (controlled robot, padded slot), the dof's index within that robot. ``joint_selection.qd_start`` is in STRING
HIGH…_src/controllers/impl/operational_space/model_based.py0return, for each (controlled robot, padded slot), the dof's index within that robot. ``joint_selection.qd_start`` is in STRING
HIGH…n/_src/controllers/impl/differential_ik/model_based.py0number of articulations in ``model``, controlled or not.STRING
HIGH…n/_src/controllers/impl/joint_impedance/model_based.py0number of articulations in ``model``, controlled or not.STRING
HIGH…_src/controllers/impl/operational_space/model_based.py0number of articulations in ``model``, controlled or not.STRING
HIGH…n/_src/controllers/impl/differential_ik/model_based.py0largest controlled-dof count over the controlled robots.STRING
HIGH…n/_src/controllers/impl/joint_impedance/model_based.py0largest controlled-dof count over the controlled robots.STRING
HIGH…_src/controllers/impl/operational_space/model_based.py0largest controlled-dof count over the controlled robots.STRING
HIGH…n/_src/controllers/impl/differential_ik/model_based.py0total controlled-dof count across all robots, the length of every compact port.STRING
HIGH…on/_src/controllers/impl/differential_ik/model_free.py0total controlled-dof count across all robots, the length of every compact port.STRING
HIGH…n/_src/controllers/impl/joint_impedance/model_based.py0total controlled-dof count across all robots, the length of every compact port.STRING
HIGH…on/_src/controllers/impl/joint_impedance/model_free.py0total controlled-dof count across all robots, the length of every compact port.STRING
HIGH…_src/controllers/impl/operational_space/model_based.py0total controlled-dof count across all robots, the length of every compact port.STRING
HIGH…n/_src/controllers/impl/differential_ik/model_based.py0return a pre-allocated :class:`inputs` with zero-initialised arrays.STRING
HIGH…on/_src/controllers/impl/differential_ik/model_free.py0return a pre-allocated :class:`inputs` with zero-initialised arrays.STRING
HIGH…on/_src/controllers/impl/joint_impedance/model_free.py0return a pre-allocated :class:`inputs` with zero-initialised arrays.STRING
HIGH…_src/controllers/impl/operational_space/model_based.py0return a pre-allocated :class:`inputs` with zero-initialised arrays.STRING
HIGH…/_src/controllers/impl/operational_space/model_free.py0return a pre-allocated :class:`inputs` with zero-initialised arrays.STRING
HIGH…on/_src/controllers/impl/differential_ik/model_free.py0number of robots, i.e. the length of ``controlled_dofs_per_robot``.STRING
HIGH…on/_src/controllers/impl/joint_impedance/model_free.py0number of robots, i.e. the length of ``controlled_dofs_per_robot``.STRING
HIGH…/_src/controllers/impl/operational_space/model_free.py0number of robots, i.e. the length of ``controlled_dofs_per_robot``.STRING
HIGH…n/_src/controllers/impl/joint_impedance/model_based.py0joint torque command [n or n·m], compact, shape [total_controlled_dofs].STRING
HIGH…on/_src/controllers/impl/joint_impedance/model_free.py0joint torque command [n or n·m], compact, shape [total_controlled_dofs].STRING
HIGH…/_src/controllers/impl/operational_space/model_free.py0joint torque command [n or n·m], compact, shape [total_controlled_dofs].STRING
HIGH…_src/controllers/impl/operational_space/model_based.py0joint torque command [n or n·m], compact, shape [total_controlled_dofs].STRING
HIGH…n/_src/controllers/impl/joint_impedance/model_based.py0return a pre-allocated :class:`outputs` with a compact torque array.STRING
HIGH…on/_src/controllers/impl/joint_impedance/model_free.py0return a pre-allocated :class:`outputs` with a compact torque array.STRING
HIGH…_src/controllers/impl/operational_space/model_based.py0return a pre-allocated :class:`outputs` with a compact torque array.STRING
HIGH…/_src/controllers/impl/operational_space/model_free.py0return a pre-allocated :class:`outputs` with a compact torque array.STRING
63 more matches not shown…
Deep Nesting819 hits · 601 pts
SeverityFileLineSnippetContext
LOWasv/tests/test_benchmark_metrics.py220CODE
LOWasv/benchmarks/benchmark_mujoco.py571CODE
LOWasv/benchmarks/setup/bench_sdf.py70CODE
LOWasv/benchmarks/simulation/bench_teleop_mujoco.py314CODE
LOWasv/benchmarks/simulation/bench_sensor_tiled_camera.py169CODE
LOWasv/benchmarks/simulation/bench_contacts.py113CODE
LOWasv/benchmarks/simulation/bench_sensor_camera.py168CODE
LOWnewton/_src/sensors/sensor_contact.py46CODE
LOWnewton/_src/sensors/warp_raytrace/camera_utils.py108CODE
LOWnewton/_src/sensors/warp_raytrace/camera_utils.py484CODE
LOWnewton/_src/sensors/warp_raytrace/raytrace.py79CODE
LOWnewton/_src/sensors/warp_raytrace/raytrace.py348CODE
LOWnewton/_src/sensors/warp_raytrace/raytrace.py585CODE
LOWnewton/_src/sensors/warp_raytrace/raytrace.py83CODE
LOWnewton/_src/sensors/warp_raytrace/raytrace.py201CODE
LOWnewton/_src/sensors/warp_raytrace/raytrace.py352CODE
LOWnewton/_src/sensors/warp_raytrace/raytrace.py442CODE
LOWnewton/_src/sensors/warp_raytrace/raytrace.py587CODE
LOWnewton/_src/sensors/warp_raytrace/raytrace.py643CODE
LOWnewton/_src/sensors/warp_raytrace/render_context.py485CODE
LOWnewton/_src/sensors/warp_raytrace/gaussians.py126CODE
LOWnewton/_src/sensors/warp_raytrace/gaussians.py128CODE
LOWnewton/_src/sensors/sensor_camera_render/render.py82CODE
LOWnewton/_src/sensors/sensor_camera_render/render.py210CODE
LOWnewton/_src/sensors/sensor_camera_render/render.py459CODE
LOW…wton/_src/sensors/sensor_camera_render/camera_utils.py395CODE
LOWnewton/_src/sensors/sensor_camera_render/raytrace.py80CODE
LOWnewton/_src/sensors/sensor_camera_render/raytrace.py353CODE
LOWnewton/_src/sensors/sensor_camera_render/raytrace.py592CODE
LOWnewton/_src/sensors/sensor_camera_render/raytrace.py84CODE
LOWnewton/_src/sensors/sensor_camera_render/raytrace.py202CODE
LOWnewton/_src/sensors/sensor_camera_render/raytrace.py243CODE
LOWnewton/_src/sensors/sensor_camera_render/raytrace.py357CODE
LOWnewton/_src/sensors/sensor_camera_render/raytrace.py447CODE
LOWnewton/_src/sensors/sensor_camera_render/raytrace.py594CODE
LOWnewton/_src/sensors/sensor_camera_render/raytrace.py650CODE
LOW…on/_src/sensors/sensor_camera_render/render_context.py533CODE
LOWnewton/_src/sensors/sensor_camera_render/gaussians.py126CODE
LOWnewton/_src/sensors/sensor_camera_render/gaussians.py128CODE
LOWnewton/_src/solvers/kamino/solver_kamino.py1041CODE
LOWnewton/_src/solvers/kamino/solver_kamino.py1422CODE
LOWnewton/_src/solvers/kamino/solver_kamino.py1488CODE
LOWnewton/_src/solvers/kamino/solver_kamino.py418CODE
LOWnewton/_src/solvers/kamino/_src/solver_kamino_impl.py435CODE
LOWnewton/_src/solvers/kamino/_src/dynamics/dual.py1637CODE
LOWnewton/_src/solvers/kamino/_src/dynamics/wrenches.py612CODE
LOWnewton/_src/solvers/kamino/_src/core/shapes.py644CODE
LOWnewton/_src/solvers/kamino/_src/core/conversions.py1639CODE
LOWnewton/_src/solvers/kamino/_src/core/materials.py756CODE
LOWnewton/_src/solvers/kamino/_src/core/model.py777CODE
LOWnewton/_src/solvers/kamino/_src/core/joints.py659CODE
LOWnewton/_src/solvers/kamino/_src/core/joints.py685CODE
LOWnewton/_src/solvers/kamino/_src/core/joints.py711CODE
LOWnewton/_src/solvers/kamino/_src/core/joints.py737CODE
LOWnewton/_src/solvers/kamino/_src/core/joints.py763CODE
LOWnewton/_src/solvers/kamino/_src/core/joints.py789CODE
LOWnewton/_src/solvers/kamino/_src/core/joints.py815CODE
LOWnewton/_src/solvers/kamino/_src/core/joints.py841CODE
LOWnewton/_src/solvers/kamino/_src/core/joints.py866CODE
LOWnewton/_src/solvers/kamino/_src/core/joints.py929CODE
759 more matches not shown…
Docstring Block Structure119 hits · 550 pts
SeverityFileLineSnippetContext
HIGHasv/benchmarks/simulation/bench_contacts.py60Import and return the ``Example`` class from candidate modules. Args: module_names: Ordered module names toSTRING
HIGHnewton/_src/sensors/sensor_camera.py437Compute camera-space rays for one OpenCV pinhole camera. Inverts OpenCV's rational radial, tangential, and thinSTRING
HIGHnewton/_src/sensors/sensor_imu.py138Initialize SensorIMU. The legacy ``State.body_qdd`` allocation path remains the default during the deprSTRING
HIGHnewton/_src/sensors/warp_raytrace/utils.py703Compute camera-space ray directions for OpenCV pinhole cameras. Inverts OpenCV's rational radial, tangential, aSTRING
HIGHnewton/_src/core/types.py93 Convert a string representation of an axis ("x", "y", or "z") to the corresponding Axis enum member. ASTRING
HIGHnewton/_src/core/types.py116 Convert a value of various types to an Axis enum member. Args: value: The value to convertSTRING
HIGHnewton/_src/solvers/solver.py423Allocate reusable arrays for requested solver observables. A container is owned by the solver that allocates itSTRING
HIGHnewton/_src/solvers/observables.py78Declare an optional observable array on a dataclass container. Args: flag: Plain enum member identiSTRING
HIGHnewton/_src/solvers/observables.py178Return a reusable subset sharing this container's allocated arrays. The result has the same concrete type, solvSTRING
HIGHnewton/_src/solvers/kamino/_src/core/materials.py652 Registers a new material with the manager. Args: material: The material descriptor to regiSTRING
HIGHnewton/_src/solvers/kamino/_src/core/materials.py757 Retrieves a material descriptor by its index or name. Args: key: The name or index of the STRING
HIGHnewton/_src/solvers/kamino/_src/core/materials.py788 Retrieves the index of a material by its name or index. Args: key: The name or index of thSTRING
HIGHnewton/_src/solvers/kamino/_src/core/types.py119 Check if a given UID string is valid. Args: uid: The UID string to validate. RetuSTRING
HIGHnewton/_src/solvers/kamino/_src/core/types.py180Convert ``data`` to a Warp ``int32`` array, asserting all values fit in ``int32``. Use this helper in place of ``wpSTRING
HIGHnewton/_src/solvers/kamino/_src/core/joints.py114 Converts a `JointActuationType` to the corresponding `JointTargetMode`. Args: act_type: ThSTRING
HIGHnewton/_src/solvers/kamino/_src/core/joints.py143 Converts a `JointTargetMode` to the corresponding `JointActuationType`. Args: target_mode:STRING
HIGHnewton/_src/solvers/kamino/_src/core/joints.py896 Converts a `JointDoFType` to the corresponding `JointType`. Args: dof_type: The joint DoF STRING
HIGHnewton/_src/solvers/kamino/_src/core/joints.py938 Converts a `JointType` to the corresponding `JointDoFType`. Args: type: The Newton joint tSTRING
HIGHnewton/_src/solvers/kamino/_src/linalg/utils/rand.py43 Creates an array of eigen-values based on a specified distribution. Notes: - Default max/min/eps valueSTRING
HIGHnewton/_src/solvers/kamino/_src/solvers/fk/solver.py2127 Evaluates and returns the target relative transforms (an intermediary quantity needed for the kinematicSTRING
HIGHnewton/_src/solvers/kamino/_src/solvers/fk/solver.py2169 Evaluates and returns the kinematic constraints vector given the body poses and the position control trSTRING
HIGHnewton/_src/solvers/kamino/_src/solvers/fk/solver.py2203 Evaluates and returns the kinematic constraints Jacobian (w.r.t. body poses) given the body poses and tSTRING
HIGHnewton/_src/solvers/kamino/_src/solvers/fk/solver.py2515 Non-graph-capturable convenience wrapper around :meth:`run_fk_solve` adding verbosity and optional inteSTRING
HIGHnewton/_src/solvers/kamino/_src/solvers/padmm/math.py413 Computes the NCP primal residual as: `r_p := || lambda - proj_C(lambda) ||_inf`, where: - `lambda` is the vectoSTRING
HIGHnewton/_src/solvers/kamino/_src/solvers/padmm/math.py505 Computes the NCP dual residual as: `r_d := || v_aug - proj_K^*(v_aug) ||_inf`, where: - `v_aug` is the vector oSTRING
HIGHnewton/_src/solvers/kamino/_src/solvers/padmm/math.py686 Computes the natural-map residual as: `r_natmap = || lambda - proj_C(lambda - (v + s)) ||_inf`, where `C` is thSTRING
HIGHnewton/_src/solvers/kamino/_src/utils/profiles.py67 Compute performance profiles for a set of num_solvers solvers across a set of np problems. Given performance mSTRING
HIGHnewton/_src/solvers/kamino/_src/geometry/keying.py39 Returns an all-ones mask for the requested number of bits. Examples: num_bits=20 -> 0x00000000000FFFFFSTRING
HIGHnewton/_src/solvers/style3d/cloth.py25Expand anisotropic bending values to a per-edge list. Args: edge_aniso_ke: Optional anisotropic stiffness. STRING
HIGHnewton/_src/solvers/implicit_mpm/solver_implicit_mpm.py956Create a solver configuration from ``NewtonMPMSceneAPI``. Only authored USD values override :class:`Config`STRING
HIGH…src/solvers/implicit_mpm/particle_surface_colliders.py84Extrapolate a particle SDF into colliders and extract its surface. Args: surface: Particle surface containiSTRING
HIGHnewton/_src/solvers/mujoco/solver_mujoco.py3266 Validate that all tendon attributes have consistent lengths. Args: model: The Newton modelSTRING
HIGHnewton/_src/solvers/mujoco/equality.py268Append a row to the ``mujoco:equality_constraint`` custom-attribute frequency on ``builder``. Args: builderSTRING
HIGHnewton/_src/utils/import_mjcf.py101Default path resolver - joins base_dir with file_path. Args: base_dir: Base directory for resolving relativSTRING
HIGHnewton/_src/utils/import_mjcf.py126Load MJCF source and recursively expand <include> elements. Args: source: File path or XML string pSTRING
HIGHnewton/_src/utils/selection.py438Find indices of elements in ``labels`` that match ``pattern``. See :ref:`label-matching` for the pattern syntax accSTRING
HIGHnewton/_src/utils/import_utils.py33 Parse a Warp value from a string. This is useful for parsing values from XML files. For example, "1.0 2.0 3.0" STRING
HIGHnewton/_src/utils/import_utils.py120 Parse custom attributes from a dictionary. Args: dictlike: The dictionary (or XML element) to parse thSTRING
HIGHnewton/_src/viewer/viewer.py1091Retrieve the last rendered frame as RGB image data. Call after :meth:`end_frame`. Supported by :class:`ViewerGLSTRING
HIGHnewton/_src/viewer/viewer_file.py222 Determine serialization format based on file extension. Args: file_path: Path to the file ReturnsSTRING
HIGHnewton/_src/viewer/viewer_file.py897 Resolve a dtype string to a warp dtype, with backwards compatibility. Uses metadata from serialized_data when STRING
HIGHnewton/_src/viewer/viewer_rtx.py2791Retrieve the last rendered frame as RGB image data. Like :meth:`ViewerGL.get_frame`, this returns a Warp array STRING
HIGHnewton/_src/viewer/viewer_gl.py2096 Retrieve the last rendered frame. This method uses OpenGL Pixel Buffer Objects (PBO). CUDA viewers useSTRING
HIGHnewton/_src/viewer/viewer_gl.py2303 Check if a key is currently pressed. Args: key: Either a string representing a character/kSTRING
HIGHnewton/_src/usd/utils.py611 Get custom attribute values from a USD prim and a set of known custom attributes. Returns a dictionary mapping STRING
HIGHnewton/_src/usd/utils.py828 Expand primvar values using indices if provided. USD primvars can be stored in an indexed form where a compactSTRING
HIGHnewton/_src/usd/utils.py3569Load Gaussian splat data from a USD prim. Reads positions from attributes: `positions`, `orientations`, `scales`, `STRING
HIGHnewton/_src/usd/_asset_download.py64Download a USD file from a URL and resolves all references to other USD files to be downloaded to the given target foldeSTRING
HIGHnewton/_src/geometry/broad_phase_common.py286Precompute an index map that groups shapes by world ID with shared shapes. This method creates an index mapping wheSTRING
HIGHnewton/_src/geometry/types.py871Build and attach an SDF for this mesh. Also simplifies the precomputed mesh edges used by the SDF-mesh STRING
HIGHnewton/_src/geometry/types.py1924Infer :class:`~newton.Model.AttributeFrequency` from array length. Args: arr: The attribute array. STRING
HIGHnewton/_src/geometry/types.py2895Load Gaussian splat data from a USD prim. Reads positions from attributes: `positions`, `orientations`, `scalesSTRING
HIGHnewton/_src/geometry/_sdf_cache.py372Persist a cooked SDF dict to the cache. Args: cache_dir: Destination directory. Created if missing. STRING
HIGHnewton/_src/geometry/terrain_generator.py599Convert a 2D heightfield array to a watertight triangle mesh. Creates a closed mesh with top surface (from heightfiSTRING
HIGHnewton/_src/geometry/remesh.py392Compute a bounding sphere for a set of vertices. Uses Ritter's algorithm for a reasonable approximation. Args:STRING
HIGHnewton/_src/geometry/remesh.py425Create camera directions from subdivided icosahedron face centers. An icosahedron has 20 faces. Each face is subdivSTRING
HIGHnewton/_src/geometry/remesh.py619Compute orthonormal camera basis vectors from a view direction. Args: direction: Unit direction vector the STRING
HIGHnewton/_src/geometry/remesh.py988Extract point cloud from a triangle mesh. Performs multi-view orthographic raycasting with online voxel-based aSTRING
HIGHnewton/_src/geometry/utils.py697Compute the convex hull of a set of 3D points and return the vertices and faces of the convex hull mesh. Uses ``sciSTRING
HIGHnewton/_src/geometry/sdf_utils.py382Create an SDF from a mesh in local mesh coordinates. The SDF is built entirely via the texture-based sparse conSTRING
59 more matches not shown…
Empty Error Handlers99 hits · 480 pts
SeverityFileLineSnippetContext
HIGHnewton/_src/solvers/kamino/_src/utils/logger.py28except Exception:CODE
HIGH…_src/solvers/kamino/_src/utils/sim/viewer_recording.py172except OSError:CODE
HIGH…_src/solvers/kamino/_src/utils/sim/viewer_recording.py415except OSError:CODE
HIGH…n/_src/solvers/kamino/examples/rl/example_rl_drlegs.py555except KeyboardInterrupt:CODE
HIGHnewton/_src/solvers/kamino/examples/rl/joystick.py330except Exception:CODE
HIGHnewton/_src/solvers/kamino/examples/rl/utils.py276except RuntimeError:CODE
HIGH…/_src/solvers/kamino/examples/rl/example_rl_bipedal.py423except KeyboardInterrupt:CODE
HIGHnewton/_src/solvers/mujoco/solver_mujoco.py714except Exception:CODE
HIGHnewton/_src/solvers/mujoco/solver_mujoco.py2002except ValueError:CODE
HIGHnewton/_src/solvers/mujoco/solver_mujoco.py2258except ValueError:CODE
HIGHnewton/_src/solvers/mujoco/solver_mujoco.py2264except ValueError:CODE
HIGHnewton/_src/solvers/mujoco/solver_mujoco.py10291except Exception:CODE
HIGHnewton/_src/solvers/mujoco/solver_mujoco.py3770except ValueError:CODE
HIGHnewton/_src/solvers/mujoco/solver_mujoco.py3775except ValueError:CODE
HIGHnewton/_src/utils/mesh.py1086except Exception:CODE
HIGHnewton/_src/utils/topology.py137except ValueError:CODE
HIGHnewton/_src/utils/download_assets.py139except OSError:CODE
HIGHnewton/_src/utils/download_assets.py270except OSError:CODE
HIGHnewton/_src/utils/download_assets.py470except OSError:CODE
HIGHnewton/_src/utils/download_assets.py268except OSError:CODE
HIGHnewton/_src/utils/download_assets.py366except OSError:CODE
HIGHnewton/_src/utils/download_assets.py379except OSError:CODE
HIGHnewton/_src/utils/download_assets.py137except OSError:CODE
HIGHnewton/_src/utils/download_assets.py337except OSError:CODE
HIGHnewton/_src/utils/download_assets.py343except OSError:CODE
HIGHnewton/_src/utils/selection.py1825except Exception:CODE
HIGHnewton/_src/utils/selection.py1832except Exception:CODE
HIGHnewton/_src/viewer/viewer_usd.py208except OSError:CODE
HIGHnewton/_src/viewer/viewer.py3512except Exception:CODE
HIGHnewton/_src/viewer/viewer_rerun.py603except Exception:CODE
HIGHnewton/_src/viewer/viewer_rerun.py596except Exception:CODE
HIGHnewton/_src/viewer/viewer_file.py518except Exception:CODE
HIGHnewton/_src/viewer/viewer_file.py525except Exception:CODE
HIGHnewton/_src/viewer/viewer_file.py710except (AttributeError, TypeError):CODE
HIGHnewton/_src/viewer/viewer_file.py678except (AttributeError, TypeError):CODE
HIGHnewton/_src/viewer/viewer_rtx.py1421except (TypeError, IndexError, KeyError):CODE
HIGHnewton/_src/viewer/viewer_rtx.py565except Exception:CODE
HIGHnewton/_src/viewer/viewer_rtx.py576except Exception:CODE
HIGHnewton/_src/viewer/viewer_rtx.py3250except OSError:CODE
HIGHnewton/_src/viewer/viewer_rtx.py939except OSError:CODE
HIGHnewton/_src/viewer/viewer_rtx.py3242except Exception:CODE
HIGHnewton/_src/viewer/plot_logger.py44except AttributeError:CODE
HIGHnewton/_src/viewer/viewer_viser.py1215except Exception:CODE
HIGHnewton/_src/viewer/viewer_viser.py1481except Exception:CODE
HIGHnewton/_src/viewer/viewer_viser.py2581except Exception:CODE
HIGHnewton/_src/viewer/viewer_viser.py556except Exception:CODE
HIGHnewton/_src/viewer/viewer_viser.py578except Exception:CODE
HIGHnewton/_src/viewer/viewer_viser.py584except Exception:CODE
HIGHnewton/_src/viewer/viewer_viser.py647except Exception:CODE
HIGHnewton/_src/viewer/viewer_viser.py886except Exception:CODE
HIGHnewton/_src/viewer/viewer_viser.py892except Exception:CODE
HIGHnewton/_src/viewer/viewer_viser.py960except Exception:CODE
HIGHnewton/_src/viewer/viewer_viser.py977except Exception:CODE
HIGHnewton/_src/viewer/viewer_viser.py1026except Exception:CODE
HIGHnewton/_src/viewer/viewer_viser.py1054except Exception:CODE
HIGHnewton/_src/viewer/viewer_viser.py1268except Exception:CODE
HIGHnewton/_src/viewer/viewer_viser.py1916except Exception:CODE
HIGHnewton/_src/viewer/viewer_viser.py1922except Exception:CODE
HIGHnewton/_src/viewer/viewer_viser.py1996except Exception:CODE
HIGHnewton/_src/viewer/viewer_viser.py116except Exception:CODE
39 more matches not shown…
Modern Structural Boilerplate263 hits · 247 pts
SeverityFileLineSnippetContext
LOWasv/benchmarks/benchmark_inverse_dynamics.py40def set_default_pose(model: newton.Model, state: newton.State) -> None:CODE
LOWasv/benchmarks/simulation/bench_teleop_mujoco.py272 def _setup_ik(self) -> None:CODE
LOWasv/benchmarks/simulation/bench_teleop_mujoco.py314 def _update_command(self) -> None:CODE
LOWasv/benchmarks/simulation/bench_sensor_tiled_camera.py101def _set_joint_positions(builder: newton.ModelBuilder, joint_positions: dict[str, float]) -> None:CODE
LOWasv/benchmarks/simulation/bench_sensor_camera.py100def _set_joint_positions(builder: newton.ModelBuilder, joint_positions: dict[str, float]) -> None:CODE
LOWnewton/usd.py34__all__ = [CODE
LOWnewton/viewer.py17__all__ = [CODE
LOWnewton/sensors.py28__all__ = [CODE
LOWnewton/controllers.py24__all__ = [CODE
LOWnewton/ik.py19__all__ = [CODE
LOW⚡newton/__init__.py39__all__ = [CODE
LOWnewton/solvers.py27__all__ = [*_solvers.__all__, "experimental"] # noqa: PLE0604CODE
LOWnewton/actuators.py42__all__ = [CODE
LOW⚡newton/utils.py12__all__ = [CODE
LOWnewton/geometry.py29__all__ = [CODE
LOWnewton/math.py29__all__ = [CODE
LOWnewton/selection.py6__all__ = [CODE
LOWnewton/_src/sensors/warp_raytrace/__init__.py30__all__ = [CODE
LOWnewton/_src/sensors/sensor_camera_render/__init__.py18__all__ = [CODE
LOW…on/_src/sensors/sensor_camera_render/render_context.py497 def _set_triangle_points(self, triangle_points: wp.array[wp.vec3f]) -> None:CODE
LOW…on/_src/sensors/sensor_camera_render/render_context.py502 def _set_triangle_indices(self, triangle_indices: wp.array[wp.int32]) -> None:CODE
LOWnewton/_src/core/__init__.py13__all__ = [CODE
LOWnewton/_src/core/types.py201__all__ = [CODE
LOWnewton/_src/solvers/solver.py549 def _set_module_options(self, options: dict[str, Any], module: Any) -> None:CODE
LOWnewton/_src/solvers/solver.py792 def update_contacts(self, contacts: Contacts, state: State | None = None) -> None:CODE
LOWnewton/_src/solvers/__init__.py20__all__ = [CODE
LOWnewton/_src/solvers/kamino/config.py23__all__ = [CODE
LOWnewton/_src/solvers/kamino/solver_kamino.py59__all__ = ["SolverKamino"]CODE
LOWnewton/_src/solvers/kamino/solver_kamino.py1271 def update_contacts(self, contacts: Contacts, state: State | None = None) -> None:CODE
LOWnewton/_src/solvers/kamino/solver_kamino.py1676 def _update_actuation_types(self) -> None:CODE
LOWnewton/_src/solvers/kamino/solver_kamino.py1712 def _update_materials(self) -> None:CODE
LOWnewton/_src/solvers/kamino/__init__.py15__all__ = ["SolverKamino"]CODE
LOWnewton/_src/solvers/kamino/_src/__init__.py42__all__ = [CODE
LOWnewton/_src/solvers/kamino/_src/solver_kamino_impl.py72__all__ = [CODE
LOWnewton/_src/solvers/kamino/_src/solver_kamino_impl.py784 def update_contacts(self, contacts: Contacts, state: State | None = None) -> None:CODE
LOWnewton/_src/solvers/kamino/_src/dynamics/__init__.py14__all__ = [CODE
LOWnewton/_src/solvers/kamino/_src/dynamics/dual.py78__all__ = [CODE
LOWnewton/_src/solvers/kamino/_src/dynamics/delassus.py89__all__ = [CODE
LOWnewton/_src/solvers/kamino/_src/dynamics/wrenches.py24__all__ = [CODE
LOWnewton/_src/solvers/kamino/_src/core/time.py19__all__ = [CODE
LOWnewton/_src/solvers/kamino/_src/core/shapes.py22__all__ = [CODE
LOWnewton/_src/solvers/kamino/_src/core/conversions.py49__all__ = [CODE
LOWnewton/_src/solvers/kamino/_src/core/materials.py41__all__ = [CODE
LOWnewton/_src/solvers/kamino/_src/core/bodies.py18__all__ = [CODE
LOWnewton/_src/solvers/kamino/_src/core/__init__.py18__all__ = [CODE
LOWnewton/_src/solvers/kamino/_src/core/size.py16__all__ = [CODE
LOWnewton/_src/solvers/kamino/_src/core/model.py41__all__ = [CODE
LOWnewton/_src/solvers/kamino/_src/core/gravity.py15__all__ = ["GRAVITY_DEFAULT", "GravityModel"]CODE
LOWnewton/_src/solvers/kamino/_src/core/joints.py31__all__ = [CODE
LOWnewton/_src/solvers/kamino/_src/core/geometry.py22__all__ = [CODE
LOWnewton/_src/solvers/kamino/_src/core/data.py27__all__ = [CODE
LOWnewton/_src/solvers/kamino/_src/core/state.py20__all__ = [CODE
LOWnewton/_src/solvers/kamino/_src/linalg/sparse_matrix.py31__all__ = [CODE
LOWnewton/_src/solvers/kamino/_src/linalg/linear.py38__all__ = [CODE
LOWnewton/_src/solvers/kamino/_src/linalg/linear.py444 def _update_sparse_bsm(self) -> None:CODE
LOW…ton/_src/solvers/kamino/_src/linalg/sparse_operator.py29__all__ = [CODE
LOWnewton/_src/solvers/kamino/_src/linalg/__init__.py53__all__ = [CODE
LOWnewton/_src/solvers/kamino/_src/linalg/core.py27__all__ = [CODE
LOWnewton/_src/solvers/kamino/_src/linalg/types.py21__all__ = [CODE
LOW…ton/_src/solvers/kamino/_src/linalg/conjugate_fused.py31__all__ = [CODE
203 more matches not shown…
Redundant / Tautological Comments146 hits · 198 pts
SeverityFileLineSnippetContext
LOWnewton/_src/sensors/sensor_contact.py517 # Assign rows to sensing objectsCOMMENT
LOWnewton/_src/sensors/sensor_contact.py522 # Assign columns to counterparts: first global, then localCOMMENT
LOWnewton/_src/solvers/kamino/config.py211 # Check if optional arguments are specified and override with defaults if notCOMMENT
LOWnewton/_src/solvers/kamino/_src/solver_kamino_impl.py606 # Set base_q to provided valueCOMMENT
LOWnewton/_src/solvers/kamino/_src/solver_kamino_impl.py640 # Set base_u to provided valueCOMMENT
LOWnewton/_src/solvers/kamino/_src/dynamics/delassus.py420 # Check if block index is valid for this matrix.COMMENT
LOWnewton/_src/solvers/kamino/_src/dynamics/delassus.py479 # Check if block index is valid for this matrix.COMMENT
LOWnewton/_src/solvers/kamino/_src/dynamics/delassus.py774 # Check if block index is valid for this matrix.COMMENT
LOWnewton/_src/solvers/kamino/_src/core/conversions.py2203 # Check if material with these parameters already existsCOMMENT
LOW⚡newton/_src/solvers/kamino/_src/core/materials.py770 # Check if the key is an integerCOMMENT
LOW⚡newton/_src/solvers/kamino/_src/core/materials.py772 # Check if the key is within the range of materialsCOMMENT
LOW⚡newton/_src/solvers/kamino/_src/core/materials.py778 # Check if the key is a stringCOMMENT
LOW⚡newton/_src/solvers/kamino/_src/core/materials.py780 # Check if the key is a valid material nameCOMMENT
LOWnewton/_src/solvers/kamino/_src/core/materials.py667 # Check if the material already existsCOMMENT
LOWnewton/_src/solvers/kamino/_src/core/materials.py801 # Check if the name exists in the materials listCOMMENT
LOWnewton/_src/solvers/kamino/_src/core/materials.py857 # Check if the material pair properties existCOMMENT
LOWnewton/_src/solvers/kamino/_src/core/materials.py907 # Check if the material pair properties existCOMMENT
LOWnewton/_src/solvers/kamino/_src/core/materials.py957 # Check if the material pair properties existCOMMENT
LOWnewton/_src/solvers/kamino/_src/core/math.py160 # Check if the norm of the imaginary part is infinitesimalCOMMENT
LOWnewton/_src/solvers/kamino/_src/core/math.py220 # Check if the norm of the imaginary part is infinitesimalCOMMENT
LOWnewton/_src/solvers/kamino/_src/linalg/sparse_matrix.py628 # Check if any element in this block is non-zeroCOMMENT
LOWnewton/_src/solvers/kamino/_src/linalg/blas.py218 # Check if block index is valid for this matrix.COMMENT
LOWnewton/_src/solvers/kamino/_src/linalg/blas.py279 # Check if block index is valid for this matrix.COMMENT
LOWnewton/_src/solvers/kamino/_src/linalg/blas.py343 # Check if block index is valid for this matrix.COMMENT
LOWnewton/_src/solvers/kamino/_src/linalg/blas.py402 # Check if block index is valid for this matrix.COMMENT
LOWnewton/_src/solvers/kamino/_src/linalg/blas.py538 # Check if block index is valid for this matrix.COMMENT
LOWnewton/_src/solvers/kamino/_src/linalg/blas.py601 # Check if block index is valid for this matrix.COMMENT
LOWnewton/_src/solvers/kamino/_src/linalg/blas.py667 # Check if block index is valid for this matrix.COMMENT
LOWnewton/_src/solvers/kamino/_src/linalg/blas.py728 # Check if block index is valid for this matrix.COMMENT
LOWnewton/_src/solvers/kamino/_src/linalg/blas.py851 # Check if block index is valid for this matrix.COMMENT
LOWnewton/_src/solvers/kamino/_src/linalg/blas.py903 # Check if block index is valid for this matrix.COMMENT
LOWnewton/_src/solvers/kamino/_src/linalg/utils/matrix.py167 # Check if the matrix is valid type and dimensionsCOMMENT
LOWnewton/_src/solvers/kamino/_src/linalg/utils/matrix.py312 # Check if the matrix is valid type and dimensionsCOMMENT
LOW…amino/_src/linalg/factorize/llt_blocked_semi_sparse.py220 # Check if this diagonal tile is nonzeroCOMMENT
LOWnewton/_src/solvers/kamino/_src/solvers/warmstart.py942 # Check if the limits container has allocations and skip cache allocations if notCOMMENT
LOWnewton/_src/solvers/kamino/_src/solvers/warmstart.py1155 # Check if the contacts container has allocations and skip cache allocations if notCOMMENT
LOWnewton/_src/solvers/kamino/_src/solvers/padmm/solver.py248 # Check if any world uses adaptive penalty updates (requiring per-step regularization updates)COMMENT
LOW…wton/_src/solvers/kamino/_src/solvers/padmm/kernels.py385 # Set regularization to 0.0 if the solver has already convergedCOMMENT
LOW…wton/_src/solvers/kamino/_src/solvers/padmm/kernels.py653 # Check if the thread should handle a boundCOMMENT
LOW…wton/_src/solvers/kamino/_src/solvers/padmm/kernels.py668 # Check if the thread should handle a limitCOMMENT
LOW…wton/_src/solvers/kamino/_src/solvers/padmm/kernels.py677 # Check if the thread should handle a contactCOMMENT
LOW…wton/_src/solvers/kamino/_src/solvers/padmm/kernels.py1149 # Check if the thread should handle a bounded-multiplier constraint.COMMENT
LOW…wton/_src/solvers/kamino/_src/solvers/padmm/kernels.py1164 # Check if the thread should handle a limitCOMMENT
LOW…wton/_src/solvers/kamino/_src/solvers/padmm/kernels.py1173 # Check if the thread should handle a contactCOMMENT
LOWnewton/_src/solvers/kamino/_src/utils/sparse.py47 # Check if the input is a 2D NumPy arrayCOMMENT
LOWnewton/_src/solvers/kamino/_src/utils/sim/datalog.py59 # Check if the simulation and controller instances are validCOMMENT
LOWnewton/_src/solvers/kamino/_src/utils/sim/datalog.py219 # Check if there are any logged framesCOMMENT
LOWnewton/_src/solvers/kamino/_src/utils/sim/datalog.py322 # Check if there are any logged framesCOMMENT
LOWnewton/_src/solvers/kamino/_src/utils/sim/datalog.py394 # Check if there are any logged framesCOMMENT
LOWnewton/_src/solvers/kamino/_src/utils/control/pid.py397 # Check if there are any actuated DoFsCOMMENT
LOW…on/_src/solvers/kamino/_src/utils/control/animation.py167 # Check if we need to advance the animation frameCOMMENT
LOW…on/_src/solvers/kamino/_src/utils/control/animation.py477 # Check if there are any actuated DoFsCOMMENT
LOW…on/_src/solvers/kamino/_src/utils/control/animation.py610 # Check if a single value or list is provided and set the loop flags accordinglyCOMMENT
LOWnewton/_src/solvers/kamino/_src/utils/control/rand.py363 # Check if the interval argument is specified, and validate it accordinglyCOMMENT
LOWnewton/_src/solvers/kamino/_src/utils/control/rand.py382 # Check if the scale argument is specified, and validate it accordinglyCOMMENT
LOWnewton/_src/solvers/kamino/_src/utils/control/rand.py398 # Check if the seed argument is specified, and set it accordinglyCOMMENT
LOWnewton/_src/solvers/kamino/_src/kinematics/resets.py367 # Set lambdas to zeroCOMMENT
LOWnewton/_src/solvers/kamino/_src/geometry/aggregation.py311 # Check if this contact matches the target pair (in either order)COMMENT
LOWnewton/_src/solvers/kamino/_src/geometry/unified.py356 # Check if this is an infinite plane or mesh - use bounding sphere fallbackCOMMENT
LOWnewton/_src/solvers/kamino/_src/geometry/unified.py589 # Check if contacts is allocated on the same deviceCOMMENT
86 more matches not shown…
Excessive Try-Catch Wrapping192 hits · 184 pts
SeverityFileLineSnippetContext
LOW⚡…solvers/kamino/_src/linalg/factorize/_tile_builtins.py24 except Exception:CODE
LOW⚡…solvers/kamino/_src/linalg/factorize/_tile_builtins.py39 except Exception:CODE
LOWnewton/_src/solvers/kamino/_src/solvers/fk/solver.py181 except Exception as e:CODE
LOWnewton/_src/solvers/kamino/_src/utils/logger.py28 except Exception:CODE
LOWnewton/_src/solvers/kamino/_src/utils/sparse.py43 except Exception as exc: # pragma: no cover - optional dependencyCODE
LOWnewton/_src/solvers/kamino/_src/utils/profiles.py417 except Exception as exc: # pragma: no cover - optional dependencyCODE
LOW…_src/solvers/kamino/_src/utils/sim/viewer_recording.py421 except Exception as e:CODE
LOWnewton/_src/solvers/kamino/examples/rl/simulation.py819 except Exception as e:CODE
LOWnewton/_src/solvers/kamino/examples/rl/joystick.py197 except Exception:CODE
LOWnewton/_src/solvers/kamino/examples/rl/joystick.py330 except Exception:CODE
LOW…c/solvers/kamino/examples/rl/test_multi_env_dr_legs.py74 except Exception as e:CODE
LOWnewton/_src/solvers/mujoco/solver_mujoco.py714 except Exception:CODE
LOWnewton/_src/solvers/mujoco/solver_mujoco.py10291 except Exception:CODE
LOWnewton/_src/utils/mesh.py1086 except Exception:CODE
LOWnewton/_src/utils/mesh.py1174 except Exception:CODE
LOW⚡newton/_src/utils/texture.py73 except Exception as exc:CODE
LOW⚡newton/_src/utils/texture.py86 except Exception as exc:CODE
LOWnewton/_src/utils/texture.py125 except Exception as exc:CODE
LOWnewton/_src/utils/download_assets.py198 except Exception:CODE
LOWnewton/_src/utils/download_assets.py464 except Exception as e:CODE
LOW⚡newton/_src/utils/selection.py1825 except Exception:CODE
LOW⚡newton/_src/utils/selection.py1832 except Exception:CODE
LOWnewton/_src/utils/selection.py1801 except Exception as error:CODE
LOWnewton/_src/utils/import_utils.py66 except Exception as e:CODE
LOWnewton/_src/utils/import_usd.py516 except Exception as e:CODE
LOWnewton/_src/utils/import_usd.py523 except Exception as e:CODE
LOWnewton/_src/utils/import_usd.py2861 except Exception as e:CODE
LOWnewton/_src/utils/import_usd.py2871 except Exception as e:CODE
LOWnewton/_src/utils/import_usd.py3039 except Exception:CODE
LOWnewton/_src/viewer/viewer_usd.py435 except Exception as exc:CODE
LOWnewton/_src/viewer/viewer.py3512 except Exception:CODE
LOWnewton/_src/viewer/viewer_rerun.py75 except Exception:CODE
LOWnewton/_src/viewer/viewer_rerun.py80 except Exception:CODE
LOWnewton/_src/viewer/viewer_rerun.py182 except Exception:CODE
LOWnewton/_src/viewer/viewer_rerun.py596 except Exception:CODE
LOWnewton/_src/viewer/viewer_rerun.py603 except Exception:CODE
MEDIUMnewton/_src/viewer/viewer_file.py1222 print(f"Error saving recording: {e}")CODE
MEDIUMnewton/_src/viewer/viewer_file.py265def _warp_key(x) -> int:CODE
LOW⚡newton/_src/viewer/viewer_file.py518 except Exception:CODE
LOW⚡newton/_src/viewer/viewer_file.py525 except Exception:CODE
LOWnewton/_src/viewer/viewer_file.py268 except Exception:CODE
LOWnewton/_src/viewer/viewer_file.py1024 except Exception as e:CODE
LOWnewton/_src/viewer/viewer_file.py1079 except Exception as e:CODE
LOWnewton/_src/viewer/viewer_file.py1220 except Exception as e:CODE
LOWnewton/_src/viewer/viewer_rtx.py565 except Exception:CODE
LOWnewton/_src/viewer/viewer_rtx.py576 except Exception:CODE
LOWnewton/_src/viewer/viewer_rtx.py931 except Exception as e:CODE
LOWnewton/_src/viewer/viewer_rtx.py951 except Exception as e:CODE
LOWnewton/_src/viewer/viewer_rtx.py1377 except Exception as exc:CODE
LOWnewton/_src/viewer/viewer_rtx.py1776 except Exception as exc:CODE
LOWnewton/_src/viewer/viewer_rtx.py3242 except Exception:CODE
LOWnewton/_src/viewer/image_logger.py663 except Exception:CODE
LOWnewton/_src/viewer/image_logger.py772 except Exception as exc:CODE
LOWnewton/_src/viewer/viewer_viser.py116 except Exception:CODE
LOWnewton/_src/viewer/viewer_viser.py131 except Exception:CODE
LOWnewton/_src/viewer/viewer_viser.py556 except Exception:CODE
LOWnewton/_src/viewer/viewer_viser.py578 except Exception:CODE
LOWnewton/_src/viewer/viewer_viser.py584 except Exception:CODE
LOWnewton/_src/viewer/viewer_viser.py647 except Exception:CODE
LOWnewton/_src/viewer/viewer_viser.py886 except Exception:CODE
132 more matches not shown…
Over-Commented Block208 hits · 181 pts
SeverityFileLineSnippetContext
LOWasv/tests/__init__.py1# SPDX-FileCopyrightText: Copyright (c) 2026 The Newton DevelopersCOMMENT
LOWasv/benchmarks/benchmark_inverse_dynamics.py1# SPDX-FileCopyrightText: Copyright (c) 2026 The Newton DevelopersCOMMENT
LOWnewton/_src/sensors/__init__.py1# SPDX-FileCopyrightText: Copyright (c) 2025 The Newton DevelopersCOMMENT
LOWnewton/_src/sensors/warp_raytrace/__init__.py1# SPDX-FileCopyrightText: Copyright (c) 2025 The Newton DevelopersCOMMENT
LOWnewton/_src/solvers/kamino/_src/dynamics/dual.py781COMMENT
LOWnewton/_src/solvers/kamino/_src/dynamics/delassus.py1341COMMENT
LOW…rc/solvers/kamino/_src/linalg/factorize/llt_blocked.py41###COMMENT
LOW…rc/solvers/kamino/_src/linalg/factorize/llt_blocked.py61# num_tile_elements = block_size * block_sizeCOMMENT
LOWnewton/_src/solvers/kamino/_src/solvers/padmm/types.py81COMMENT
LOW…solvers/kamino/examples/reset/example_reset_dr_legs.py1# SPDX-FileCopyrightText: Copyright (c) 2025 The Newton DevelopersCOMMENT
LOWnewton/_src/solvers/kamino/examples/rl/simulation.py1# SPDX-FileCopyrightText: Copyright (c) 2025 The Newton DevelopersCOMMENT
LOW…n/_src/solvers/kamino/examples/rl/example_rl_drlegs.py1# SPDX-FileCopyrightText: Copyright (c) 2025 The Newton DevelopersCOMMENT
LOW…/_src/solvers/kamino/examples/rl/example_rl_bipedal.py1# SPDX-FileCopyrightText: Copyright (c) 2025 The Newton DevelopersCOMMENT
LOW…n/_src/solvers/implicit_mpm/rheology_solver_kernels.py461 # (1.0 - gamma * alpha) |(D + alpha I)^{-1} b_t| = yield_stressCOMMENT
LOWnewton/_src/solvers/mujoco/solver_mujoco.py4401 # during conversion) may call _invalidate_contact_fast_path.COMMENT
LOWnewton/_src/solvers/mujoco/solver_mujoco.py7381 dof_ref_value = float(joint_ref[ai]) if joint_ref is not None else 0.0COMMENT
LOWnewton/_src/solvers/mujoco/solver_mujoco.py8441 self._allocate_notify_model_changed_scratch()COMMENT
LOWnewton/_src/solvers/mujoco/solver_mujoco.py8461 # — subsequent edits to those Newton gains would no longerCOMMENT
LOWnewton/_src/solvers/mujoco/kernels.py681 contact_worldid_out=contact_worldid_out,COMMENT
LOWnewton/_src/solvers/semi_implicit/kernels_particle.py321 f2 = wp.vec3(H[0, 1], H[1, 1], H[2, 1])COMMENT
LOWnewton/_src/solvers/semi_implicit/kernels_particle.py341 # grad1 = vec3(dCdx[0,0], dCdx[1,0], dCdx[2,0])COMMENT
LOWnewton/_src/solvers/semi_implicit/kernels_particle.py361 # grad2 = vec3(dCdx[0,1], dCdx[1,1], dCdx[2,1])COMMENT
LOWnewton/_src/solvers/semi_implicit/kernels_particle.py381COMMENT
LOWnewton/_src/solvers/xpbd/kernels.py501 # ModelBuilder stores rest_matrix as inv(Dm), whereCOMMENT
LOWnewton/_src/solvers/xpbd/kernels.py621 dlambda = -1.0 * (C + gamma * grad_dot_v) / ((1.0 + gamma) * w + alpha)COMMENT
LOWnewton/_src/solvers/xpbd/kernels.py641 # C = r_s*r_s - 3.0COMMENT
LOWnewton/_src/solvers/xpbd/kernels.py661 # J = wp.determinant(F)COMMENT
LOWnewton/_src/solvers/xpbd/kernels.py761 # C_NeoCOMMENT
LOWnewton/_src/solvers/xpbd/kernels.py1521COMMENT
LOWnewton/_src/solvers/featherstone/kernels.py1661# n: int,COMMENT
LOWnewton/_src/solvers/coupled/admm_utils.py721COMMENT
LOWnewton/_src/solvers/coupled/admm_utils.py961 world_pt_a = wp.transform_point(xform_a, point_a_local[i])COMMENT
LOWnewton/_src/solvers/vbd/rigid_vbd_kernels.py7481# =====================================================================================COMMENT
LOWnewton/_src/utils/selection.py61COMMENT
LOWnewton/_src/utils/selection.py101):COMMENT
LOWnewton/_src/utils/import_usd.py2901COMMENT
LOWnewton/_src/viewer/viewer_rtx.py1# SPDX-FileCopyrightText: Copyright (c) 2026 The Newton DevelopersCOMMENT
LOWnewton/_src/viewer/viewer_gui.py1# SPDX-FileCopyrightText: Copyright (c) 2026 The Newton DevelopersCOMMENT
LOWnewton/_src/viewer/gl/gui.py61 self.impl._attach_callbacks(self.window)COMMENT
LOWnewton/_src/usd/_colliders.py441 thickness=inertia_margin,COMMENT
LOWnewton/_src/usd/_joints.py221 d6_initial_velocities = {}COMMENT
LOWnewton/_src/usd/_articulations.py201 # We have an articulation without joints, i.e. only free rigid bodiesCOMMENT
LOWnewton/_src/usd/_articulations.py361 else:COMMENT
LOWnewton/_src/usd/_mass_properties.py101 from pxr import GfCOMMENT
LOWnewton/_src/geometry/contact_reduction_hydroelastic.py81# associative, so in deterministic mode every per-bin aggregate is accumulatedCOMMENT
LOWnewton/_src/geometry/contact_reduction_hydroelastic.py1201 # Compute shared stiffness so the K reduced contacts reproduceCOMMENT
LOWnewton/_src/geometry/sdf_contact.py21 export_and_reduce_predictive_contact,COMMENT
LOWnewton/_src/geometry/sdf_contact.py41# Search-radius slack over the narrow-band culling threshold for midpoint SDFCOMMENT
LOWnewton/_src/geometry/sdf_contact.py1261COMMENT
LOWnewton/_src/geometry/sdf_contact.py1521COMMENT
LOWnewton/_src/geometry/narrow_phase.py2541 # Dense mesh queries benefit from wider cooperative result batches;COMMENT
LOWnewton/_src/geometry/narrow_phase.py2841 self.num_tile_blocks = num_blocksCOMMENT
LOWnewton/_src/geometry/sdf_texture.py81 raise ValueError("shape_scale components must be finite")COMMENT
LOWnewton/_src/geometry/sdf_texture.py101# ``"hardware"`` path. One ``wp.texture_sample`` for the value, sixCOMMENT
LOWnewton/_src/geometry/inertia.py21COMMENT
LOWnewton/_src/geometry/contact_reduction.py61# "icosahedron" -> 20 bins (default, finer normal resolution)COMMENT
LOWnewton/_src/geometry/_sdf_cache.py421 # each other's in-flight ``*.tmp.npz``. ``os.replace`` is atomic onCOMMENT
LOWnewton/_src/geometry/contact_reduction_global.py361# ``make_contact_value`` and ``unpack_contact_id`` select the variantCOMMENT
LOWnewton/_src/geometry/contact_reduction_global.py721 contact_pressure: wp.array[wp.float32]COMMENT
LOWnewton/_src/geometry/contact_sort.py21# Sentinel key for unused contact slots. ``radix_sort_pairs`` treatsCOMMENT
148 more matches not shown…
AI Structural Patterns162 hits · 114 pts
SeverityFileLineSnippetContext
LOWasv/benchmarks/benchmark_mujoco.py373CODE
LOWasv/benchmarks/benchmark_mujoco.py627CODE
LOWnewton/_src/sensors/sensor_camera.py266CODE
LOWnewton/_src/sensors/sensor_camera.py411CODE
LOWnewton/_src/sensors/sensor_camera.py530CODE
LOWnewton/_src/sensors/sensor_camera.py615CODE
LOWnewton/_src/sensors/sensor_camera.py698CODE
LOWnewton/_src/sensors/sensor_camera.py871CODE
LOWnewton/_src/sensors/sensor_tiled_camera.py186CODE
LOWnewton/_src/sensors/warp_raytrace/utils.py415CODE
LOWnewton/_src/sensors/warp_raytrace/utils.py551CODE
LOWnewton/_src/sensors/warp_raytrace/utils.py677CODE
LOWnewton/_src/sensors/warp_raytrace/utils.py795CODE
LOWnewton/_src/sensors/warp_raytrace/utils.py879CODE
LOWnewton/_src/sensors/warp_raytrace/utils.py965CODE
LOWnewton/_src/sensors/warp_raytrace/render_context.py175CODE
LOW…on/_src/sensors/sensor_camera_render/render_context.py238CODE
LOWnewton/_src/solvers/kamino/_src/dynamics/dual.py1205CODE
LOWnewton/_src/solvers/kamino/_src/core/shapes.py433CODE
LOWnewton/_src/solvers/kamino/_src/linalg/linear.py274CODE
LOWnewton/_src/solvers/kamino/_src/linalg/linear.py581CODE
LOWnewton/_src/solvers/kamino/_src/linalg/conjugate.py548CODE
LOWnewton/_src/solvers/kamino/_src/linalg/utils/rand.py27CODE
LOW…kamino/_src/linalg/factorize/llt_blocked_rcm_solver.py150CODE
LOWnewton/_src/solvers/kamino/_src/solvers/fk/solver.py2502CODE
LOWnewton/_src/solvers/kamino/_src/solvers/dvi/solver.py89CODE
LOWnewton/_src/solvers/kamino/_src/solvers/dvi/solver.py180CODE
LOWnewton/_src/solvers/kamino/_src/utils/profiles.py379CODE
LOW…on/_src/solvers/kamino/_src/utils/control/animation.py237CODE
LOWnewton/_src/solvers/kamino/examples/rl/simulation.py244CODE
LOWnewton/_src/solvers/style3d/cloth.py180CODE
LOWnewton/_src/solvers/style3d/cloth.py396CODE
LOWnewton/_src/solvers/implicit_mpm/solver_implicit_mpm.py1532CODE
LOW…rc/solvers/implicit_mpm/implicit_mpm_solver_kernels.py1009CODE
LOW…rc/solvers/implicit_mpm/implicit_mpm_solver_kernels.py1085CODE
LOWnewton/_src/solvers/implicit_mpm/implicit_mpm_model.py433CODE
LOWnewton/_src/solvers/mujoco/solver_mujoco.py4047CODE
LOWnewton/_src/solvers/mujoco/solver_mujoco.py6003CODE
LOWnewton/_src/solvers/mujoco/equality.py253CODE
LOW…ton/_src/solvers/semi_implicit/solver_semi_implicit.py77CODE
LOWnewton/_src/solvers/xpbd/solver_xpbd.py129CODE
LOWnewton/_src/solvers/vbd/solver_vbd.py350CODE
LOWnewton/_src/utils/import_mjcf.py227CODE
LOWnewton/_src/utils/mesh.py986CODE
LOWnewton/_src/utils/import_urdf.py64CODE
LOWnewton/_src/utils/selection.py777CODE
LOWnewton/_src/utils/import_usd.py149CODE
LOWnewton/_src/viewer/viewer_usd.py291CODE
LOWnewton/_src/viewer/viewer.py1880CODE
LOWnewton/_src/viewer/viewer_rerun.py111CODE
LOWnewton/_src/viewer/viewer_rerun.py246CODE
LOWnewton/_src/viewer/viewer_file.py1336CODE
LOWnewton/_src/viewer/viewer_rtx.py197CODE
LOWnewton/_src/viewer/viewer_rtx.py1875CODE
LOWnewton/_src/viewer/viewer_viser.py1807CODE
LOWnewton/_src/viewer/viewer_null.py60CODE
LOWnewton/_src/viewer/viewer_gl.py242CODE
LOWnewton/_src/viewer/viewer_gl.py917CODE
LOWnewton/_src/viewer/gl/shaders.py680CODE
LOWnewton/_src/usd/utils.py1325CODE
102 more matches not shown…
Cross-Language Confusion17 hits · 83 pts
SeverityFileLineSnippetContext
HIGHnewton/_src/viewer/kernels.py446 When ``contact_force`` is provided (non-null), the disk is colored by anSTRING
HIGHnewton/_src/viewer/kernels.py454 When ``contact_force`` is null, every active contact uses ``color_open``.STRING
HIGHnewton/_src/viewer/gl/shaders.py212 if (abs(gl_FragCoord.w) < 1.0e-8 || abs(denominator) < 1.0e-8)CODE
HIGHnewton/_src/viewer/gl/shaders.py919 if (s.w <= 0.0 || e.w <= 0.0) return;CODE
HIGHnewton/_src/viewer/gl/shaders.py1027 if (s.w <= 0.0 || e.w <= 0.0) return;CODE
HIGHnewton/_src/geometry/soft_contacts_sdf.py125 # conservative lower bound for the cull/search. wp.length() / wp.min(wp.abs()) keep a mirroredCOMMENT
HIGH⚡newton/_src/sim/builder.py1259 """Transformer function that converts a USD attribute value to a valid Warp dtype. If undefined, the generic conSTRING
HIGH⚡newton/_src/sim/builder.py1264 """Transformer function that converts a MJCF attribute value string to a valid Warp dtype. If undefined, the genSTRING
HIGH⚡newton/_src/sim/builder.py1267 """Transformer function that converts a URDF attribute value string to a valid Warp dtype. If undefined, the genSTRING
HIGH⚡newton/tests/test_download_assets.py59 self.work.git.push("--set-upstream", "origin", "main")CODE
HIGH⚡newton/tests/test_download_assets.py178 self.work.git.push("origin", "v1.0")CODE
HIGH⚡newton/tests/test_download_assets.py551 self.work.git.push("--set-upstream", "origin", "main")CODE
HIGH⚡newton/tests/test_download_assets.py568 self.work.git.push("origin", "v1.0")CODE
HIGH⚡newton/tests/test_download_assets.py574 self.work.git.push("origin", "v2.0")CODE
HIGHnewton/tests/test_download_assets.py86 self.work.git.push("origin", "main")CODE
HIGHnewton/tests/test_sdf_compute.py1870 undefined, so this test only verifies that the override runs the paritySTRING
HIGHnewton/examples/__init__.py661 help="Viewer to use (gl, usd, rtx, rerun, null, or viser).",CODE
Verbosity Indicators47 hits · 77 pts
SeverityFileLineSnippetContext
LOW⚡newton/_src/solvers/implicit_mpm/solve_rheology.py1104 # Step 1: strain → batch mappingCOMMENT
LOW⚡newton/_src/solvers/implicit_mpm/solve_rheology.py1135 # Step 3: compute Delassus diagonal with per-batch mass splittingCOMMENT
LOW⚡newton/_src/solvers/implicit_mpm/solve_rheology.py1211 # Step 2: per-row exclusive prefix scan (local offsets per batch; fully written)COMMENT
LOW⚡newton/_src/solvers/implicit_mpm/solve_rheology.py1218 # Step 3: compute per-batch base offsets (single-threaded kernel; fully written)COMMENT
LOW⚡newton/_src/solvers/implicit_mpm/solve_rheology.py1228 # Step 4: globalize local offsets → _batch_global_offsets[n_batches, n_vel+1]COMMENT
LOWnewton/_src/solvers/implicit_mpm/solve_rheology.py1115 # Step 2: per-velocity-node per-batch sharing counts (accumulator: must be zero)COMMENT
LOWnewton/_src/solvers/implicit_mpm/solve_rheology.py1198 # Step 1: count entries per (batch, velocity-node) (accumulator: must be zero)COMMENT
LOWnewton/_src/solvers/implicit_mpm/solve_rheology.py1240 # Step 5: allocate flat arrays and fill all SCs in one passCOMMENT
LOW⚡newton/_src/geometry/sdf_contact.py1064 # Step 3: exclusive scan of block counts → block_offsetsCOMMENT
LOWnewton/_src/geometry/sdf_contact.py1031 # Step 1: compute per-pair edge counts in parallelCOMMENT
LOWnewton/_src/geometry/sdf_contact.py1048 # Step 2: compute per-pair block counts using the scalar total.COMMENT
LOW⚡newton/_src/geometry/narrow_phase.py1949 # Step 3: exclusive scan of block counts → block_offsetsCOMMENT
LOWnewton/_src/geometry/narrow_phase.py1918 # Step 1: compute per-pair vertex counts in parallelCOMMENT
LOWnewton/_src/geometry/narrow_phase.py1933 # Step 2: compute per-pair block counts using the scalar total.COMMENT
LOWnewton/_src/geometry/remesh.py44 # Step 1: Extract point cloud with reliable normalsSTRING
LOWnewton/_src/geometry/remesh.py55 # Step 2: Reconstruct clean mesh using Poisson reconstructionSTRING
LOW⚡newton/_src/geometry/utils.py303 # Step 1: Compute convex hullCOMMENT
LOW⚡newton/_src/geometry/utils.py307 # Step 2: Compute mesh inertiaCOMMENT
LOWnewton/_src/geometry/utils.py340 # Step 3: Warp kernel searchCOMMENT
LOW⚡newton/tests/test_remesh.py327 # Step 1: Extract point cloudCOMMENT
LOW⚡newton/tests/test_remesh.py334 # Step 2: Reconstruct meshCOMMENT
LOWnewton/tests/test_remesh.py348 # Step 3: Validate reconstructed mesh is close to original cubeCOMMENT
LOW⚡newton/tests/test_mujoco_solver.py1738 # Step 3: Create solver (it will read the updated values now)COMMENT
LOW⚡newton/tests/test_mujoco_solver.py1741 # Step 4: Verify jnt_solimp is properly expanded for multi-worldCOMMENT
LOW⚡newton/tests/test_mujoco_solver.py1745 # Step 5: Verify initial values were converted correctlyCOMMENT
LOW⚡newton/tests/test_mujoco_solver.py1805 # Step 7: Notify solver of changesCOMMENT
LOW⚡newton/tests/test_mujoco_solver.py1808 # Step 8: Verify updated values were converted correctlyCOMMENT
LOW⚡newton/tests/test_mujoco_solver.py1835 # Step 1: Create a template builder and register SolverMuJoCo custom attributesCOMMENT
LOW⚡newton/tests/test_mujoco_solver.py1889 # Step 2: Replicate to multiple worldsCOMMENT
LOW⚡newton/tests/test_mujoco_solver.py1895 # Step 3: Initialize solverCOMMENT
LOW⚡newton/tests/test_mujoco_solver.py1945 # Step 6: Notify solverCOMMENT
LOW⚡newton/tests/test_mujoco_solver.py1948 # Step 7: Verify updates - iterate over MuJoCo jointsCOMMENT
LOWnewton/tests/test_mujoco_solver.py1640 # Step 1: Create a template builder and register SolverMuJoCo custom attributesCOMMENT
LOWnewton/tests/test_mujoco_solver.py1698 # Step 2: Set initial solimplimit valuesCOMMENT
LOWnewton/tests/test_mujoco_solver.py1773 # Step 6: Update solimplimit values with different patternsCOMMENT
LOWnewton/tests/test_mujoco_solver.py1908 # Step 4: Verify initial values - iterate over MuJoCo jointsCOMMENT
LOWnewton/tests/test_mujoco_solver.py1924 # Step 5: Update limit_margin values at runtimeCOMMENT
LOW⚡newton/tests/test_collision_primitives.py1901 # Step 1: Initially separated by 0.1COMMENT
LOW⚡newton/tests/test_collision_primitives.py1907 # Step 2: Just touching (gap = 0)COMMENT
LOW⚡newton/tests/test_collision_primitives.py1913 # Step 3: Penetration of 0.1COMMENT
LOW⚡newton/tests/test_collision_primitives.py1920 # Step 4: Penetration of 0.2COMMENT
LOW⚡newton/tests/test_collision_primitives.py1927 # Step 5: Penetration of 0.3COMMENT
LOW⚡newton/tests/test_runtime_gravity.py76 # Step 1: Simulate with default gravityCOMMENT
LOW⚡newton/tests/test_runtime_gravity.py85 # Step 2: Change gravity to zero at runtimeCOMMENT
LOW⚡newton/tests/test_runtime_gravity.py132 # Step 1: Simulate with default gravityCOMMENT
LOW⚡newton/tests/test_runtime_gravity.py141 # Step 2: Change gravity to horizontalCOMMENT
LOWnewton/tests/test_runtime_gravity.py99 # Step 3: Change gravity to positive (upward)COMMENT
Structural Annotation Overuse47 hits · 75 pts
SeverityFileLineSnippetContext
LOW⚡newton/_src/solvers/implicit_mpm/solve_rheology.py1104 # Step 1: strain → batch mappingCOMMENT
LOW⚡newton/_src/solvers/implicit_mpm/solve_rheology.py1135 # Step 3: compute Delassus diagonal with per-batch mass splittingCOMMENT
LOW⚡newton/_src/solvers/implicit_mpm/solve_rheology.py1211 # Step 2: per-row exclusive prefix scan (local offsets per batch; fully written)COMMENT
LOW⚡newton/_src/solvers/implicit_mpm/solve_rheology.py1218 # Step 3: compute per-batch base offsets (single-threaded kernel; fully written)COMMENT
LOW⚡newton/_src/solvers/implicit_mpm/solve_rheology.py1228 # Step 4: globalize local offsets → _batch_global_offsets[n_batches, n_vel+1]COMMENT
LOWnewton/_src/solvers/implicit_mpm/solve_rheology.py1115 # Step 2: per-velocity-node per-batch sharing counts (accumulator: must be zero)COMMENT
LOWnewton/_src/solvers/implicit_mpm/solve_rheology.py1198 # Step 1: count entries per (batch, velocity-node) (accumulator: must be zero)COMMENT
LOWnewton/_src/solvers/implicit_mpm/solve_rheology.py1240 # Step 5: allocate flat arrays and fill all SCs in one passCOMMENT
LOW⚡newton/_src/geometry/sdf_contact.py1064 # Step 3: exclusive scan of block counts → block_offsetsCOMMENT
LOWnewton/_src/geometry/sdf_contact.py1031 # Step 1: compute per-pair edge counts in parallelCOMMENT
LOWnewton/_src/geometry/sdf_contact.py1048 # Step 2: compute per-pair block counts using the scalar total.COMMENT
LOW⚡newton/_src/geometry/narrow_phase.py1949 # Step 3: exclusive scan of block counts → block_offsetsCOMMENT
LOWnewton/_src/geometry/narrow_phase.py1918 # Step 1: compute per-pair vertex counts in parallelCOMMENT
LOWnewton/_src/geometry/narrow_phase.py1933 # Step 2: compute per-pair block counts using the scalar total.COMMENT
LOWnewton/_src/geometry/remesh.py44 # Step 1: Extract point cloud with reliable normalsSTRING
LOWnewton/_src/geometry/remesh.py55 # Step 2: Reconstruct clean mesh using Poisson reconstructionSTRING
LOW⚡newton/_src/geometry/utils.py303 # Step 1: Compute convex hullCOMMENT
LOW⚡newton/_src/geometry/utils.py307 # Step 2: Compute mesh inertiaCOMMENT
LOWnewton/_src/geometry/utils.py340 # Step 3: Warp kernel searchCOMMENT
LOW⚡newton/tests/test_remesh.py327 # Step 1: Extract point cloudCOMMENT
LOW⚡newton/tests/test_remesh.py334 # Step 2: Reconstruct meshCOMMENT
LOWnewton/tests/test_remesh.py348 # Step 3: Validate reconstructed mesh is close to original cubeCOMMENT
LOW⚡newton/tests/test_mujoco_solver.py1738 # Step 3: Create solver (it will read the updated values now)COMMENT
LOW⚡newton/tests/test_mujoco_solver.py1741 # Step 4: Verify jnt_solimp is properly expanded for multi-worldCOMMENT
LOW⚡newton/tests/test_mujoco_solver.py1745 # Step 5: Verify initial values were converted correctlyCOMMENT
LOW⚡newton/tests/test_mujoco_solver.py1805 # Step 7: Notify solver of changesCOMMENT
LOW⚡newton/tests/test_mujoco_solver.py1808 # Step 8: Verify updated values were converted correctlyCOMMENT
LOW⚡newton/tests/test_mujoco_solver.py1835 # Step 1: Create a template builder and register SolverMuJoCo custom attributesCOMMENT
LOW⚡newton/tests/test_mujoco_solver.py1889 # Step 2: Replicate to multiple worldsCOMMENT
LOW⚡newton/tests/test_mujoco_solver.py1895 # Step 3: Initialize solverCOMMENT
LOW⚡newton/tests/test_mujoco_solver.py1945 # Step 6: Notify solverCOMMENT
LOW⚡newton/tests/test_mujoco_solver.py1948 # Step 7: Verify updates - iterate over MuJoCo jointsCOMMENT
LOWnewton/tests/test_mujoco_solver.py1640 # Step 1: Create a template builder and register SolverMuJoCo custom attributesCOMMENT
LOWnewton/tests/test_mujoco_solver.py1698 # Step 2: Set initial solimplimit valuesCOMMENT
LOWnewton/tests/test_mujoco_solver.py1773 # Step 6: Update solimplimit values with different patternsCOMMENT
LOWnewton/tests/test_mujoco_solver.py1908 # Step 4: Verify initial values - iterate over MuJoCo jointsCOMMENT
LOWnewton/tests/test_mujoco_solver.py1924 # Step 5: Update limit_margin values at runtimeCOMMENT
LOW⚡newton/tests/test_collision_primitives.py1901 # Step 1: Initially separated by 0.1COMMENT
LOW⚡newton/tests/test_collision_primitives.py1907 # Step 2: Just touching (gap = 0)COMMENT
LOW⚡newton/tests/test_collision_primitives.py1913 # Step 3: Penetration of 0.1COMMENT
LOW⚡newton/tests/test_collision_primitives.py1920 # Step 4: Penetration of 0.2COMMENT
LOW⚡newton/tests/test_collision_primitives.py1927 # Step 5: Penetration of 0.3COMMENT
LOW⚡newton/tests/test_runtime_gravity.py76 # Step 1: Simulate with default gravityCOMMENT
LOW⚡newton/tests/test_runtime_gravity.py85 # Step 2: Change gravity to zero at runtimeCOMMENT
LOW⚡newton/tests/test_runtime_gravity.py132 # Step 1: Simulate with default gravityCOMMENT
LOW⚡newton/tests/test_runtime_gravity.py141 # Step 2: Change gravity to horizontalCOMMENT
LOWnewton/tests/test_runtime_gravity.py99 # Step 3: Change gravity to positive (upward)COMMENT
AI Slop Vocabulary26 hits · 67 pts
SeverityFileLineSnippetContext
MEDIUMnewton/_src/solvers/kamino/_src/solvers/warmstart.py644 # First sort the keys of cached limits to facilitate binary searchCOMMENT
MEDIUMnewton/_src/solvers/kamino/_src/solvers/warmstart.py699 # First sort the keys of cached contacts to facilitate binary searchCOMMENT
MEDIUMnewton/_src/solvers/kamino/_src/solvers/warmstart.py773 # First sort the keys of cached contacts to facilitate binary searchCOMMENT
MEDIUMnewton/_src/solvers/kamino/_src/solvers/warmstart.py840 # First sort the keys of cached contacts to facilitate binary searchCOMMENT
MEDIUM…on/_src/solvers/kamino/_src/utils/control/animation.py393 # TODO: Try this instead (it might be more robust):COMMENT
LOWnewton/_src/solvers/kamino/_src/kinematics/jacobians.py103 # TODO: Since the lever-arm is a relative position, can we just use B_r_Bj and F_r_Fj instead?COMMENT
MEDIUM…ton/_src/solvers/implicit_mpm/rasterized_collisions.py35"""Small angle threshold to use more robust and faster path for angular velocity calculations"""STRING
MEDIUMnewton/_src/solvers/mujoco/solver_mujoco.py6394 # this robust for models assembled without the standard custom-attribute pipeline.COMMENT
MEDIUMnewton/_src/solvers/featherstone/solver_featherstone.py372 # allocate mass, Jacobian matrices, and other auxiliary variables pertaining to the modelCOMMENT
LOWnewton/_src/utils/import_mjcf.py863 # to pad against, so just return the parsed vector as-is.COMMENT
MEDIUMnewton/_src/utils/mesh.py1732 # Side vertices first (contiguous layout for robust indexing).COMMENT
MEDIUMnewton/_src/utils/import_urdf.py37# Optional dependency for robust URI resolutionCOMMENT
MEDIUMnewton/_src/viewer/viewer_usd.py1140 # Convert the string to an Sdf.Path object for robust manipulationCOMMENT
MEDIUMnewton/_src/viewer/viewer_rtx.py270 # OVRTX 0.3+ ships with namespaced USD builds that should be safe to use in conjunction withCOMMENT
MEDIUMnewton/_src/geometry/flags.py52 """Angle-weighted closest-face pseudo-normal; robust for open surfaces."""STRING
MEDIUMnewton/_src/geometry/simplex_solver.py442 # Track last search direction for robust normal fallbackCOMMENT
LOWnewton/_src/geometry/remesh.py504 # No subdivision needed - just return face centersCOMMENT
MEDIUMnewton/_src/geometry/collision_primitive.py1206 # sphere center inside box (use robust epsilon for numerical stability across platforms)COMMENT
MEDIUMnewton/_src/controllers/impl/differential_ik/_common.py713 # Golub & Van Loan's robust symmetric Jacobi rotation,COMMENT
MEDIUMnewton/_src/controllers/impl/differential_ik/_common.py449 """Maciejewski-Klein singularity-robust damping, ``λ²(sigma_min)``.STRING
MEDIUMnewton/tests/test_recorder.py484 # This comprehensive list covers all dtypes used in Newton Model/State/Control/ContactsCOMMENT
MEDIUMnewton/tests/test_schema_resolver.py891 # Map joint keys to expected values for more robust testingCOMMENT
MEDIUMnewton/tests/test_joint_limits.py204 # Test robust comparisonsCOMMENT
MEDIUMnewton/tests/test_import_usd_articulation.py1062 # Find joints by their keys to make test robust to ordering changesCOMMENT
MEDIUMnewton/examples/contacts/example_brick_stacking.py656 # approximate the brick geometry to make brick-brick contacts more robust,COMMENT
MEDIUMnewton/examples/cloth/example_cloth_h1.py10# Demonstrates how to leverage interpolated robot kinematics within theCOMMENT
Slop Phrases5 hits · 8 pts
SeverityFileLineSnippetContext
LOWnewton/_src/solvers/xpbd/kernels.py1176 # Eq. 2-3 (make sure to project into the frame of the body)COMMENT
LOWnewton/_src/solvers/xpbd/kernels.py2363 # Eq. 2-3 (make sure to project into the frame of the body)COMMENT
LOWnewton/_src/solvers/xpbd/kernels.py2403 # Eq. 2-3 (make sure to project into the frame of the body)COMMENT
LOWnewton/_src/solvers/xpbd/kernels.py2440 # Eq. 2-3 (make sure to project into the frame of the body)COMMENT
LOWnewton/_src/solvers/vbd/particle_vbd_kernels.py2190 # Don't forget to do the final truncation based on the maximum displacement allowance!COMMENT
Example Usage Blocks3 hits · 4 pts
SeverityFileLineSnippetContext
LOW…n/_src/solvers/kamino/examples/rl/example_rl_drlegs.py11# Usage:COMMENT
LOW…/_src/solvers/kamino/examples/rl/example_rl_bipedal.py12# Usage:COMMENT
LOW…c/solvers/kamino/examples/rl/test_multi_env_dr_legs.py7# Usage:COMMENT
Overly Generic Function Names2 hits · 2 pts
SeverityFileLineSnippetContext
LOW…tests/kamino/test_kamino_solvers_forward_kinematics.py340 def test_function(model: ModelKamino):CODE
LOW…tests/kamino/test_kamino_solvers_forward_kinematics.py380 def test_function(model: ModelKamino):CODE
TODO Padding1 hit · 2 pts
SeverityFileLineSnippetContext
LOWnewton/_src/solvers/kamino/_src/linalg/conjugate.py370 # TODO: consider using a spinlock for fusing kernelsCOMMENT