Repository Analysis

newton-physics/newton

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

26.4 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of newton-physics/newton, a Python project with 5,191 GitHub stars. SynthScan v2.0 examined 477,693 lines of code across 768 source files, recording 8845 pattern matches distributed across 21 syntactic categories. The overall adjusted score of 26.4 places this repository in the Moderate AI signal band.

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

26.4
Adjusted Score
26.4
Raw Score
100%
Time Factor
2026-07-14
Last Push
5.2K
Stars
Python
Language
477.7K
Lines of Code
768
Files
8.8K
Pattern Hits
2026-07-14
Scan Date
0.30
HC Hit Rate

What These Metrics Mean

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

Score History

Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.

No multi-scan history yet — run the scanner again to build trend data.

Severity Breakdown

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

CRITICAL 17HIGH 211MEDIUM 1752LOW 6865

Directory Score Breakdown

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

Pattern Findings

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

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Hyper-Verbose Identifiers4636 hits · 3784 pts
SeverityFileLineSnippetContext
LOWasv/benchmarks/setup/bench_model.py139 def peakmem_initialize_model_cpu(self, robot, world_count):CODE
LOWasv/benchmarks/simulation/bench_sensor_tiled_camera.py115def _disable_collision_handling(builder: newton.ModelBuilder) -> None:CODE
LOWasv/benchmarks/simulation/bench_cable.py17def _supports_cable_pile_size_args():CODE
LOWasv/benchmarks/simulation/bench_inverse_dynamics.py87 def time_eval_inverse_dynamics(self):CODE
LOWasv/benchmarks/simulation/bench_inverse_dynamics.py93 def time_eval_inverse_dynamics_force(self):CODE
LOWnewton/_src/sensors/sensor_frame_transform.py15def compute_shape_transforms_kernel(CODE
LOWnewton/_src/sensors/sensor_frame_transform.py47def compute_relative_transforms_kernel(CODE
LOWnewton/_src/sensors/sensor_contact.py44def compute_sensing_transforms_kernel(CODE
LOWnewton/_src/sensors/sensor_contact.py67def accumulate_contact_forces_kernel(CODE
LOWnewton/_src/sensors/sensor_contact.py159def normalize_contact_positions_kernel(CODE
LOWnewton/_src/sensors/sensor_contact.py171def expand_body_to_shape_kernel(CODE
LOWnewton/_src/sensors/sensor_contact.py240def _assign_counterpart_columns(CODE
LOWnewton/_src/sensors/sensor_imu.py15def compute_sensor_imu_kernel(CODE
LOWnewton/_src/sensors/warp_raytrace/render.py19def _srgb_packed_rgba_to_linear(packed: int) -> int:CODE
LOWnewton/_src/sensors/warp_raytrace/camera_utils.py66def _validate_camera_ray_output(CODE
LOWnewton/_src/sensors/warp_raytrace/camera_utils.py144def compute_camera_rays_usd_pinhole(CODE
LOWnewton/_src/sensors/warp_raytrace/camera_utils.py196def compute_camera_transforms_usd(CODE
LOWnewton/_src/sensors/warp_raytrace/camera_utils.py298def _solve_opencv_fisheye_theta(CODE
LOWnewton/_src/sensors/warp_raytrace/camera_utils.py389def _fisheye_direction_from_theta(x: wp.float32, y: wp.float32, radius: wp.float32, theta: wp.float32):CODE
LOWnewton/_src/sensors/warp_raytrace/camera_utils.py401def compute_camera_rays_pinhole(CODE
LOWnewton/_src/sensors/warp_raytrace/camera_utils.py420def compute_camera_rays_pinhole_from_aperture_kernel(CODE
LOWnewton/_src/sensors/warp_raytrace/camera_utils.py444def compute_camera_rays_fisheye_opencv_kernel(CODE
LOWnewton/_src/sensors/warp_raytrace/camera_utils.py482def compute_camera_rays_fisheye_ftheta_kernel(CODE
LOWnewton/_src/sensors/warp_raytrace/camera_utils.py521def compute_camera_rays_fisheye_kannala_brandt_kernel(CODE
LOWnewton/_src/sensors/warp_raytrace/raytrace.py38def _ray_intersect_mesh_smooth(CODE
LOWnewton/_src/sensors/warp_raytrace/raytrace.py105def create_closest_hit_function(config: RenderContext.Config, state: RenderContext.State) -> wp.Function:CODE
LOWnewton/_src/sensors/warp_raytrace/raytrace.py307 def closest_hit_triangle_mesh(CODE
LOWnewton/_src/sensors/warp_raytrace/raytrace.py400def create_closest_hit_depth_only_function(config: RenderContext.Config, state: RenderContext.State) -> wp.Function:CODE
LOWnewton/_src/sensors/warp_raytrace/raytrace.py404 def closest_hit_shape_depth_only(CODE
LOWnewton/_src/sensors/warp_raytrace/raytrace.py527 def closest_hit_particles_depth_only(CODE
LOWnewton/_src/sensors/warp_raytrace/raytrace.py562 def closest_hit_triangle_mesh_depth_only(CODE
LOWnewton/_src/sensors/warp_raytrace/raytrace.py652def create_first_hit_function(config: RenderContext.Config, state: RenderContext.State) -> wp.Function:CODE
LOWnewton/_src/sensors/warp_raytrace/lighting.py17def create_compute_lighting_function(config: RenderContext.Config, state: RenderContext.State) -> wp.Function:CODE
LOWnewton/_src/sensors/warp_raytrace/utils.py22def _resolve_fisheye_image_size(CODE
LOWnewton/_src/sensors/warp_raytrace/utils.py131def convert_ray_depth_to_forward_depth_kernel(CODE
LOWnewton/_src/sensors/warp_raytrace/utils.py153def unpack_normal_to_rgba_kernel(CODE
LOWnewton/_src/sensors/warp_raytrace/utils.py180def unpack_depth_to_rgba_kernel(CODE
LOWnewton/_src/sensors/warp_raytrace/utils.py216def unpack_shape_index_hash_to_rgba_kernel(CODE
LOWnewton/_src/sensors/warp_raytrace/utils.py236def colorize_shape_index_with_palette_kernel(CODE
LOWnewton/_src/sensors/warp_raytrace/utils.py263def _validate_rgba_out_buffer(CODE
LOWnewton/_src/sensors/warp_raytrace/utils.py285 def __warn_implicit_render_config_update(self, method_name: str, config_field: str, value: bool) -> None:CODE
LOWnewton/_src/sensors/warp_raytrace/utils.py294 def create_color_image_output(self, width: int, height: int, camera_count: int = 1) -> wp.array4d[wp.uint32]:CODE
LOWnewton/_src/sensors/warp_raytrace/utils.py311 def create_depth_image_output(self, width: int, height: int, camera_count: int = 1) -> wp.array4d[wp.float32]:CODE
LOWnewton/_src/sensors/warp_raytrace/utils.py328 def create_shape_index_image_output(self, width: int, height: int, camera_count: int = 1) -> wp.array4d[wp.uint32]:CODE
LOWnewton/_src/sensors/warp_raytrace/utils.py345 def create_normal_image_output(self, width: int, height: int, camera_count: int = 1) -> wp.array4d[wp.vec3f]:CODE
LOWnewton/_src/sensors/warp_raytrace/utils.py362 def create_albedo_image_output(self, width: int, height: int, camera_count: int = 1) -> wp.array4d[wp.uint32]:CODE
LOWnewton/_src/sensors/warp_raytrace/utils.py379 def create_hdr_color_image_output(self, width: int, height: int, camera_count: int = 1) -> wp.array4d[wp.vec3f]:CODE
LOWnewton/_src/sensors/warp_raytrace/utils.py396 def compute_camera_rays_pinhole(CODE
LOWnewton/_src/sensors/warp_raytrace/utils.py532 def compute_pinhole_camera_rays(CODE
LOWnewton/_src/sensors/warp_raytrace/utils.py610 def compute_camera_rays_usd_pinhole(CODE
LOWnewton/_src/sensors/warp_raytrace/utils.py658 def compute_camera_rays_fisheye_opencv(CODE
LOWnewton/_src/sensors/warp_raytrace/utils.py742 def compute_camera_rays_fisheye_ftheta(CODE
LOWnewton/_src/sensors/warp_raytrace/utils.py828 def compute_camera_rays_fisheye_kannala_brandt(CODE
LOWnewton/_src/sensors/warp_raytrace/utils.py912 def compute_camera_transforms_usd(CODE
LOWnewton/_src/sensors/warp_raytrace/utils.py961 def convert_ray_depth_to_forward_depth(CODE
LOWnewton/_src/sensors/warp_raytrace/utils.py1012 def flatten_color_image_to_rgba(CODE
LOWnewton/_src/sensors/warp_raytrace/utils.py1236 def flatten_normal_image_to_rgba(CODE
LOWnewton/_src/sensors/warp_raytrace/utils.py1281 def flatten_depth_image_to_rgba(CODE
LOWnewton/_src/sensors/warp_raytrace/utils.py1365 def assign_checkerboard_material(CODE
LOWnewton/_src/sensors/warp_raytrace/utils.py1417 def assign_checkerboard_material_to_all_shapes(self, resolution: int = 64, checker_size: int = 32):CODE
4576 more matches not shown…
Decorative Section Separators887 hits · 2901 pts
SeverityFileLineSnippetContext
MEDIUMnewton/usd.py10# ==================================================================================COMMENT
MEDIUMnewton/usd.py12# ==================================================================================COMMENT
MEDIUMnewton/usd.py54# ==================================================================================COMMENT
MEDIUMnewton/usd.py56# ==================================================================================COMMENT
MEDIUMnewton/__init__.py47# ==================================================================================COMMENT
MEDIUMnewton/__init__.py49# ==================================================================================COMMENT
MEDIUMnewton/__init__.py4# ==================================================================================COMMENT
MEDIUMnewton/__init__.py6# ==================================================================================COMMENT
MEDIUMnewton/__init__.py74# ==================================================================================COMMENT
MEDIUMnewton/__init__.py76# ==================================================================================COMMENT
MEDIUMnewton/__init__.py121# ==================================================================================COMMENT
MEDIUMnewton/__init__.py123# ==================================================================================COMMENT
MEDIUMnewton/utils.py4# ==================================================================================COMMENT
MEDIUMnewton/utils.py6# ==================================================================================COMMENT
MEDIUMnewton/utils.py14# ==================================================================================COMMENT
MEDIUMnewton/utils.py16# ==================================================================================COMMENT
MEDIUMnewton/utils.py35# ==================================================================================COMMENT
MEDIUMnewton/utils.py37# ==================================================================================COMMENT
MEDIUMnewton/utils.py46# ==================================================================================COMMENT
MEDIUMnewton/utils.py48# ==================================================================================COMMENT
MEDIUMnewton/utils.py79# ==================================================================================COMMENT
MEDIUMnewton/utils.py81# ==================================================================================COMMENT
MEDIUMnewton/utils.py88# ==================================================================================COMMENT
MEDIUMnewton/utils.py90# ==================================================================================COMMENT
MEDIUMnewton/utils.py97# ==================================================================================COMMENT
MEDIUMnewton/utils.py99# ==================================================================================COMMENT
MEDIUMnewton/utils.py109# ==================================================================================COMMENT
MEDIUMnewton/utils.py111# ==================================================================================COMMENT
MEDIUMnewton/utils.py119# ==================================================================================COMMENT
MEDIUMnewton/utils.py121# ==================================================================================COMMENT
MEDIUMnewton/utils.py62# ==================================================================================COMMENT
MEDIUMnewton/utils.py64# ==================================================================================COMMENT
MEDIUMnewton/_src/solvers/kamino/_src/solver_kamino_impl.py157 # ---------------------------------------------------------------------------COMMENT
MEDIUMnewton/_src/solvers/kamino/_src/solver_kamino_impl.py193 # ---------------------------------------------------------------------------COMMENT
MEDIUMnewton/_src/solvers/kamino/_src/linalg/conjugate.py202# ---------------COMMENT
MEDIUM…_src/solvers/kamino/_src/linalg/factorize/rcm_batch.py78# ---------------------------------------------------------------------------COMMENT
MEDIUM…_src/solvers/kamino/_src/linalg/factorize/rcm_batch.py80# ---------------------------------------------------------------------------COMMENT
MEDIUM…_src/solvers/kamino/_src/linalg/factorize/rcm_batch.py107# ---------------------------------------------------------------------------COMMENT
MEDIUM…_src/solvers/kamino/_src/linalg/factorize/rcm_batch.py109# ---------------------------------------------------------------------------COMMENT
MEDIUM…_src/solvers/kamino/_src/linalg/factorize/rcm_batch.py412# ---------------------------------------------------------------------------COMMENT
MEDIUM…_src/solvers/kamino/_src/linalg/factorize/rcm_batch.py414# ---------------------------------------------------------------------------COMMENT
MEDIUM…on/_src/solvers/kamino/_src/utils/benchmark/configs.py30 # ------------------------------------------------------------------------------COMMENT
MEDIUM…on/_src/solvers/kamino/_src/utils/benchmark/configs.py32 # ------------------------------------------------------------------------------COMMENT
MEDIUM…on/_src/solvers/kamino/_src/utils/benchmark/configs.py34 # ------------------------------------------------------------------------------COMMENT
MEDIUM…on/_src/solvers/kamino/_src/utils/benchmark/configs.py37 # ------------------------------------------------------------------------------COMMENT
MEDIUM…on/_src/solvers/kamino/_src/utils/benchmark/configs.py41 # ------------------------------------------------------------------------------COMMENT
MEDIUM…on/_src/solvers/kamino/_src/utils/benchmark/configs.py45 # ------------------------------------------------------------------------------COMMENT
MEDIUM…on/_src/solvers/kamino/_src/utils/benchmark/configs.py59 # ------------------------------------------------------------------------------COMMENT
MEDIUM…on/_src/solvers/kamino/_src/utils/benchmark/configs.py63 # ------------------------------------------------------------------------------COMMENT
MEDIUM…on/_src/solvers/kamino/_src/utils/benchmark/configs.py68 # ------------------------------------------------------------------------------COMMENT
MEDIUM…on/_src/solvers/kamino/_src/utils/benchmark/configs.py70 # ------------------------------------------------------------------------------COMMENT
MEDIUM…on/_src/solvers/kamino/_src/utils/benchmark/configs.py72 # ------------------------------------------------------------------------------COMMENT
MEDIUM…on/_src/solvers/kamino/_src/utils/benchmark/configs.py75 # ------------------------------------------------------------------------------COMMENT
MEDIUM…on/_src/solvers/kamino/_src/utils/benchmark/configs.py79 # ------------------------------------------------------------------------------COMMENT
MEDIUM…on/_src/solvers/kamino/_src/utils/benchmark/configs.py83 # ------------------------------------------------------------------------------COMMENT
MEDIUM…on/_src/solvers/kamino/_src/utils/benchmark/configs.py97 # ------------------------------------------------------------------------------COMMENT
MEDIUM…on/_src/solvers/kamino/_src/utils/benchmark/configs.py101 # ------------------------------------------------------------------------------COMMENT
MEDIUM…on/_src/solvers/kamino/_src/utils/benchmark/configs.py106 # ------------------------------------------------------------------------------COMMENT
MEDIUM…on/_src/solvers/kamino/_src/utils/benchmark/configs.py108 # ------------------------------------------------------------------------------COMMENT
MEDIUM…on/_src/solvers/kamino/_src/utils/benchmark/configs.py110 # ------------------------------------------------------------------------------COMMENT
827 more matches not shown…
Self-Referential Comments830 hits · 2517 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.py275 # Create a default instance of the config to access default values for the attributesCOMMENT
MEDIUMnewton/_src/solvers/kamino/solver_kamino.py271 # Create a base config with default values andCOMMENT
MEDIUMnewton/_src/solvers/kamino/solver_kamino.py617 # Create a Kamino model from the Newton modelCOMMENT
MEDIUMnewton/_src/solvers/kamino/solver_kamino.py620 # Create a collision detector if enabled in the config, otherwiseCOMMENT
MEDIUMnewton/_src/solvers/kamino/_src/solver_kamino_impl.py246 # Create the time-integrator instance based on the configCOMMENT
MEDIUMnewton/_src/solvers/kamino/_src/dynamics/dual.py26 # Create a model builder and add bodies, joints, geoms, etc.STRING
MEDIUMnewton/_src/solvers/kamino/_src/dynamics/dual.py30 # Create a model from the builder and construct additionalSTRING
MEDIUMnewton/_src/solvers/kamino/_src/dynamics/dual.py38 # Define a linear solver type to use as a back-end for theSTRING
MEDIUMnewton/_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.py1396 # Create a shallow copy of the constraint Jacobian, but with a separate array for non-zero block values.COMMENT
MEDIUMnewton/_src/solvers/kamino/_src/dynamics/delassus.py23 # Create a model builder and add bodies, joints, geoms, etc.STRING
MEDIUMnewton/_src/solvers/kamino/_src/dynamics/delassus.py27 # Create a model from the builder and construct additionalSTRING
MEDIUMnewton/_src/solvers/kamino/_src/dynamics/delassus.py35 # Define a linear solver type to use as a back-end for theSTRING
MEDIUMnewton/_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.py1163 # Create a model builder and add bodies, joints, geoms, etc.STRING
MEDIUMnewton/_src/solvers/kamino/_src/dynamics/delassus.py1167 # Create a model from the builder and construct additionalSTRING
MEDIUMnewton/_src/solvers/kamino/_src/dynamics/delassus.py1179 # 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.py455 # Define the Warp function to retrieve material pair propertiesCOMMENT
MEDIUMnewton/_src/solvers/kamino/_src/core/materials.py491 # Define the Warp function to retrieve material pair propertiesCOMMENT
MEDIUMnewton/_src/solvers/kamino/_src/core/model.py550 # Create a new model data info with the total constraintCOMMENT
MEDIUMnewton/_src/solvers/kamino/_src/core/model.py642 # Create a new state container with the initial state of the model entities on the specified deviceCOMMENT
MEDIUMnewton/_src/solvers/kamino/_src/core/model.py670 # Create a new control container on the specified deviceCOMMENT
MEDIUMnewton/_src/solvers/kamino/_src/core/model.py738 # Initialize SizeKamino object, to be completed by helper functionsCOMMENT
MEDIUMnewton/_src/solvers/kamino/_src/core/builder.py441 # Create a joint descriptor from the provided specificationsCOMMENT
MEDIUMnewton/_src/solvers/kamino/_src/core/builder.py611 # Create a copy of the descriptor without the shape (stored separately)COMMENT
MEDIUMnewton/_src/solvers/kamino/_src/core/builder.py107 # Create a default world if requestedCOMMENT
MEDIUMnewton/_src/solvers/kamino/_src/core/builder.py280 # Create a new world descriptorCOMMENT
MEDIUMnewton/_src/solvers/kamino/_src/core/builder.py333 # Create a rigid body descriptor from the provided specificationsCOMMENT
MEDIUMnewton/_src/solvers/kamino/_src/core/builder.py572 # Create a joint descriptor from the provided specificationsCOMMENT
MEDIUMnewton/_src/solvers/kamino/_src/core/builder.py1320 # Create the immutable model info arrays from the collected dataCOMMENT
MEDIUMnewton/_src/solvers/kamino/_src/core/builder.py1360 # Create the model time dataCOMMENT
MEDIUMnewton/_src/solvers/kamino/_src/core/builder.py1371 # Create the bodies modelCOMMENT
MEDIUMnewton/_src/solvers/kamino/_src/core/builder.py1386 # Create the joints modelCOMMENT
MEDIUMnewton/_src/solvers/kamino/_src/core/builder.py1426 # Create the collision geometries modelCOMMENT
MEDIUMnewton/_src/solvers/kamino/_src/core/builder.py1451 # Create the material pairs modelCOMMENT
MEDIUMnewton/_src/solvers/kamino/_src/core/builder.py1459 # Create the material pairs modelCOMMENT
MEDIUMnewton/_src/solvers/kamino/_src/core/state.py295 # Create a new StateKamino object, aliasing the relevant data from the input newton.StateCOMMENT
MEDIUMnewton/_src/solvers/kamino/_src/core/state.py347 # Create a new State object, aliasing the relevantCOMMENT
MEDIUMnewton/_src/solvers/kamino/_src/linalg/linear.py205 # Initialize base class membersCOMMENT
MEDIUMnewton/_src/solvers/kamino/_src/linalg/linear.py472 # Initialize base class membersCOMMENT
MEDIUMnewton/_src/solvers/kamino/_src/linalg/linear.py595 # Create the factorization and solve kernelsCOMMENT
MEDIUMnewton/_src/solvers/kamino/_src/linalg/linear.py600 # Initialize base class membersCOMMENT
MEDIUM…kamino/_src/linalg/factorize/llt_blocked_rcm_solver.py172 # Initialize base class membersCOMMENT
MEDIUM…rc/solvers/kamino/_src/linalg/factorize/llt_blocked.py52 # Define a Warp wrapper around a native C++ function to get the raw pointer of a warp arrayCOMMENT
MEDIUM…rc/solvers/kamino/_src/linalg/factorize/llt_blocked.py56 # Define a Warp function to get the raw pointer of a warp array with an offsetCOMMENT
MEDIUM…rc/solvers/kamino/_src/linalg/factorize/llt_blocked.py131 # Create a temporary warp array pointing to the i-th matrixCOMMENT
MEDIUM…rc/solvers/kamino/_src/linalg/factorize/llt_blocked.py257 # Create a temporary warp array pointing to the i-th matrixCOMMENT
MEDIUM…rc/solvers/kamino/_src/linalg/factorize/llt_blocked.py350 # Create a temporary warp array pointing to the i-th matrixCOMMENT
MEDIUMnewton/_src/solvers/kamino/_src/solvers/warmstart.py805 # Create a key sorter that can handle the maximum number of contactsCOMMENT
MEDIUMnewton/_src/solvers/kamino/_src/solvers/warmstart.py1006 # Create a key sorter that can handle the maximum number of contactsCOMMENT
MEDIUMnewton/_src/solvers/kamino/_src/solvers/metrics.py28 # Create a model builder and add bodies, joints, geoms, etc.STRING
MEDIUMnewton/_src/solvers/kamino/_src/solvers/metrics.py32 # Create a model from the builder and construct additionalSTRING
MEDIUMnewton/_src/solvers/kamino/_src/solvers/metrics.py45 # Create a forward-dynamics DualProblem to be solvedSTRING
MEDIUMnewton/_src/solvers/kamino/_src/solvers/metrics.py49 # Create a forward-dynamics PADMM solverSTRING
MEDIUMnewton/_src/solvers/kamino/_src/solvers/metrics.py56 # Create a SolutionMetrics containerSTRING
MEDIUMnewton/_src/solvers/kamino/_src/solvers/fk/solver.py193 # 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
770 more matches not shown…
Unused Imports734 hits · 662 pts
SeverityFileLineSnippetContext
LOWasv/benchmarks/benchmark_ik.py11CODE
LOWasv/benchmarks/benchmark_inverse_dynamics.py11CODE
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.py58CODE
LOWnewton/usd.py58CODE
LOWnewton/usd.py62CODE
LOWnewton/usd.py62CODE
LOWnewton/usd.py62CODE
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.py5CODE
LOWnewton/sensors.py10CODE
LOWnewton/sensors.py15CODE
LOWnewton/sensors.py20CODE
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
LOWnewton/ik.py6CODE
LOWnewton/__init__.py7CODE
LOWnewton/__init__.py7CODE
LOWnewton/__init__.py7CODE
LOWnewton/__init__.py12CODE
LOWnewton/__init__.py50CODE
LOWnewton/__init__.py50CODE
LOWnewton/__init__.py50CODE
LOWnewton/__init__.py50CODE
LOWnewton/__init__.py50CODE
LOWnewton/__init__.py50CODE
LOWnewton/__init__.py50CODE
674 more matches not shown…
Cross-File Repetition99 hits · 495 pts
SeverityFileLineSnippetContext
HIGHnewton/_src/solvers/kamino/_src/solver_kamino_impl.py0defines a type alias of the fk solver configurations container, including convergence criteria, maximum iterations, and STRING
HIGHnewton/_src/solvers/kamino/_src/solvers/padmm/solver.py0defines a type alias of the fk solver configurations container, including convergence criteria, maximum iterations, and STRING
HIGHnewton/_src/solvers/kamino/_src/solvers/fk/solver.py0defines a type alias of the fk solver configurations container, including convergence criteria, maximum iterations, and STRING
HIGHnewton/_src/solvers/kamino/_src/core/materials.py0index of the world to which the joint belongs. defaults to `-1`, indicating that the joint has not yet been added to a wSTRING
HIGHnewton/_src/solvers/kamino/_src/core/bodies.py0index of the world to which the joint belongs. defaults to `-1`, indicating that the joint has not yet been added to a wSTRING
HIGHnewton/_src/solvers/kamino/_src/core/geometry.py0index of the world to which the joint belongs. defaults to `-1`, indicating that the joint has not yet been added to a wSTRING
HIGHnewton/_src/solvers/kamino/_src/core/joints.py0index of the world to which the joint belongs. defaults to `-1`, indicating that the joint has not yet been added to a wSTRING
HIGHnewton/_src/solvers/kamino/_src/core/bodies.py0index of the geometry w.r.t. its world. defaults to `-1`, indicating that the geometry has not yet been added to a worldSTRING
HIGHnewton/_src/solvers/kamino/_src/core/joints.py0index of the geometry w.r.t. its world. defaults to `-1`, indicating that the geometry has not yet been added to a worldSTRING
HIGHnewton/_src/solvers/kamino/_src/core/geometry.py0index of the geometry w.r.t. its world. defaults to `-1`, indicating that the geometry has not yet been added to a worldSTRING
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
HIGH…vers/kamino/tests/test_linalg_factorize_llt_blocked.py0test the blocked llt solver on a single small problem.STRING
HIGH…ers/kamino/tests/test_linalg_solver_llt_blocked_rcm.py0test the blocked llt solver on a single small problem.STRING
HIGH…solvers/kamino/tests/test_linalg_solver_llt_blocked.py0test the blocked llt solver on a single small problem.STRING
HIGH…vers/kamino/tests/test_linalg_factorize_llt_blocked.py0test the blocked llt solver on multiple small problems.STRING
HIGH…ers/kamino/tests/test_linalg_solver_llt_blocked_rcm.py0test the blocked llt solver on multiple small problems.STRING
HIGH…solvers/kamino/tests/test_linalg_solver_llt_blocked.py0test the blocked llt solver on multiple small problems.STRING
HIGH…on/_src/solvers/kamino/tests/test_kinematics_limits.py0set the state of the bodies to a certain values in order to check computations of joint states.STRING
HIGH…on/_src/solvers/kamino/tests/test_kinematics_joints.py0set the state of the bodies to a certain values in order to check computations of joint states.STRING
HIGHnewton/_src/solvers/kamino/tests/utils/make.py0set the state of the bodies to a certain values in order to check computations of joint states.STRING
HIGH…solvers/kamino/examples/reset/example_reset_dr_legs.py0plot logged data and generate video from recorded frames. args: path: output directory path (uses video_folder if none) STRING
HIGH…kamino/examples/sim/example_sim_basics_boxes_hinged.py0plot logged data and generate video from recorded frames. args: path: output directory path (uses video_folder if none) STRING
HIGH…solvers/kamino/examples/sim/example_sim_dr_testmech.py0plot logged data and generate video from recorded frames. args: path: output directory path (uses video_folder if none) STRING
HIGH…src/solvers/kamino/examples/sim/example_sim_dr_legs.py0plot logged data and generate video from recorded frames. args: path: output directory path (uses video_folder if none) STRING
HIGH…ers/kamino/examples/sim/example_sim_test_all_joints.py0plot logged data and generate video from recorded frames. args: path: output directory path (uses video_folder if none) STRING
HIGH…o/examples/sim/example_sim_basics_all_heterogeneous.py0plot logged data and generate video from recorded frames. args: path: output directory path (uses video_folder if none) STRING
HIGH…ers/kamino/examples/sim/example_sim_basics_cartpole.py0plot logged data and generate video from recorded frames. args: path: output directory path (uses video_folder if none) STRING
HIGH…kamino/examples/sim/example_sim_basics_box_pendulum.py0plot logged data and generate video from recorded frames. args: path: output directory path (uses video_folder if none) STRING
HIGH…kamino/examples/sim/example_sim_basics_box_on_plane.py0plot logged data and generate video from recorded frames. args: path: output directory path (uses video_folder if none) STRING
HIGH…vers/kamino/examples/sim/example_sim_test_all_geoms.py0plot logged data and generate video from recorded frames. args: path: output directory path (uses video_folder if none) STRING
HIGH…amino/examples/sim/example_sim_basics_boxes_fourbar.py0plot logged data and generate video from recorded frames. args: path: output directory path (uses video_folder if none) STRING
HIGHnewton/_src/viewer/viewer_usd.py0log a batch of mesh instances for rendering. args: name: unique name for the instancer. mesh: name of the base mesh prevSTRING
HIGHnewton/_src/viewer/viewer_gl.py0log a batch of mesh instances for rendering. args: name: unique name for the instancer. mesh: name of the base mesh prevSTRING
HIGHnewton/_src/viewer/viewer_rtx.py0log a batch of mesh instances for rendering. args: name: unique name for the instancer. mesh: name of the base mesh prevSTRING
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.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/actuators/delay.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/actuators/controllers/base.py0resolve user-provided arguments with defaults. args: args: user-provided arguments. returns: complete arguments with defSTRING
HIGHnewton/tests/test_import_urdf.py0test that floating=true creates a free joint for the root body.STRING
HIGHnewton/tests/test_import_usd.py0test that floating=true creates a free joint for the root body.STRING
HIGHnewton/tests/test_import_mjcf.py0test that floating=true creates a free joint for the root body.STRING
HIGHnewton/tests/test_import_urdf.py0test that floating=false creates a fixed joint for the root body.STRING
HIGHnewton/tests/test_import_usd.py0test that floating=false creates a fixed joint for the root body.STRING
HIGHnewton/tests/test_import_mjcf.py0test that floating=false creates a fixed joint for the root body.STRING
HIGHnewton/tests/test_import_urdf.py0test that base_joint dict with linear and angular axes creates a d6 joint.STRING
HIGHnewton/tests/test_import_usd.py0test that base_joint dict with linear and angular axes creates a d6 joint.STRING
HIGHnewton/tests/test_import_mjcf.py0test that base_joint dict with linear and angular axes creates a d6 joint.STRING
HIGHnewton/tests/test_import_urdf.py0test that base_joint dict with jointtype.revolute creates a revolute joint with custom axis.STRING
HIGHnewton/tests/test_import_usd.py0test that base_joint dict with jointtype.revolute creates a revolute joint with custom axis.STRING
HIGHnewton/tests/test_import_mjcf.py0test that base_joint dict with jointtype.revolute creates a revolute joint with custom axis.STRING
39 more matches not shown…
Docstring Block Structure98 hits · 450 pts
SeverityFileLineSnippetContext
HIGHasv/benchmarks/simulation/bench_contacts.py25Import and return the ``Example`` class from candidate modules. Args: module_names: Ordered module names toSTRING
HIGHnewton/_src/sensors/sensor_imu.py122Initialize SensorIMU. Transparently requests the extended state attribute ``body_qdd`` from the model, which isSTRING
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/kamino/_src/core/materials.py678 Registers a new material with the manager. Args: material: The material descriptor to regiSTRING
HIGHnewton/_src/solvers/kamino/_src/core/materials.py783 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.py814 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.py113 Converts a `JointActuationType` to the corresponding `JointTargetMode`. Args: act_type: ThSTRING
HIGHnewton/_src/solvers/kamino/_src/core/joints.py142 Converts a `JointTargetMode` to the corresponding `JointActuationType`. Args: target_mode:STRING
HIGHnewton/_src/solvers/kamino/_src/core/joints.py654 Converts a `JointDoFType` to the corresponding `JointType`. Args: dof_type: The joint DoF STRING
HIGHnewton/_src/solvers/kamino/_src/core/joints.py693 Converts a `JointType` to the corresponding `JointDoFType`. Args: type: The Newton joint tSTRING
HIGHnewton/_src/solvers/kamino/_src/core/joints.py1552 Processes a specified limit value to ensure it is a list of floats. Notes: - If the input is NSTRING
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/padmm/math.py379 Computes the NCP primal residual as: `r_p := || lambda - proj_K(lambda) ||_inf`, where: - `lambda` is the vectoSTRING
HIGHnewton/_src/solvers/kamino/_src/solvers/padmm/math.py451 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/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/mujoco/solver_mujoco.py2522 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.py53Default path resolver - joins base_dir with file_path. Args: base_dir: Base directory for resolving relativSTRING
HIGHnewton/_src/utils/import_mjcf.py78Load MJCF source and recursively expand <include> elements. Args: source: File path or XML string pSTRING
HIGHnewton/_src/utils/selection.py423Find indices of elements in ``labels`` that match ``pattern``. See :ref:`label-matching` for the pattern syntax accSTRING
HIGHnewton/_src/utils/import_utils.py16 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.py103 Parse custom attributes from a dictionary. Args: dictlike: The dictionary (or XML element) to parse thSTRING
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.py886 Resolve a dtype string to a warp dtype, with backwards compatibility. Uses metadata from serialized_data when STRING
HIGHnewton/_src/viewer/viewer_gl.py1915 Check if a key is currently pressed. Args: key: Either a string representing a character/kSTRING
HIGHnewton/_src/usd/utils.py601 Get custom attribute values from a USD prim and a set of known custom attributes. Returns a dictionary mapping STRING
HIGHnewton/_src/usd/utils.py823 Expand primvar values using indices if provided. USD primvars can be stored in an indexed form where a compactSTRING
HIGHnewton/_src/usd/utils.py2699Load Gaussian splat data from a USD prim. Reads positions from attributes: `positions`, `orientations`, `scales`, `STRING
HIGHnewton/_src/geometry/broad_phase_common.py225Precompute an index map that groups shapes by world ID with shared shapes. This method creates an index mapping wheSTRING
HIGHnewton/_src/geometry/types.py783Build and attach an SDF for this mesh. Also simplifies the precomputed mesh edges used by the SDF-mesh STRING
HIGHnewton/_src/geometry/types.py1700Infer :class:`~newton.Model.AttributeFrequency` from array length. Args: arr: The attribute array. STRING
HIGHnewton/_src/geometry/types.py2592Load Gaussian splat data from a USD prim. Reads positions from attributes: `positions`, `orientations`, `scalesSTRING
HIGHnewton/_src/geometry/_sdf_cache.py244Persist 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.py695Compute 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.py390Create an SDF from a mesh in local mesh coordinates. The SDF is built entirely via the texture-based sparse conSTRING
HIGHnewton/_src/geometry/sdf_utils.py806Get the bounding box extents for a primitive shape. Args: shape_type: Type of the primitive shape (from GeoSTRING
HIGHnewton/_src/geometry/sdf_utils.py854Compute sparse and coarse SDF volumes for a shape. The SDF is computed in the mesh's unscaled local space. Scale isSTRING
HIGHnewton/_src/sim/enums.py180 Returns the number of degrees of freedom (DoF) in velocity and the number of coordinates in position foSTRING
HIGHnewton/_src/sim/enums.py212 Returns the number of velocity-level bilateral kinematic constraints for this joint type. Args: STRING
HIGHnewton/_src/sim/contacts.py120Validate names passed to request_contact_attributes(). Only extended contact attributes listed in :attr:`EXTENDSTRING
HIGHnewton/_src/sim/model.py1416Return whether a canonicalized shape pair is collision-filtered. This queries the canonical filter-pair array wSTRING
HIGHnewton/_src/sim/model.py1454Return a boolean mask of which shape pairs are collision-filtered. Bulk counterpart to :meth:`shape_collision_fSTRING
HIGHnewton/_src/sim/model.py2509 Get the frequency of an attribute. Args: name: Name of the attribute. Returns: STRING
HIGHnewton/_src/sim/model.py2528 Get the count for a custom frequency. Args: frequency: The custom frequency (e.g., ``"mujoSTRING
HIGHnewton/_src/sim/builder.py1703Append values to custom attributes with custom string frequencies. Each keyword argument specifies an attributeSTRING
HIGHnewton/_src/sim/builder.py2528 Adds an articulation to the model from a list of joint indices. The articulation is a set of joints thSTRING
HIGHnewton/_src/sim/builder.py3310Begin a new world context for adding entities. This method starts a new world scope where all subsequently addeSTRING
HIGHnewton/_src/sim/builder.py4100Adds a link (rigid body) to the model within an articulation. This method creates a link without automatically STRING
HIGHnewton/_src/sim/builder.py4186Adds a stand-alone free-floating rigid body to the model. This is a convenience method that creates a single-boSTRING
HIGHnewton/_src/sim/builder.py4256 Generic method to add any type of joint to this ModelBuilder. Args: joint_type: The type oSTRING
38 more matches not shown…
Deep Nesting518 hits · 384 pts
SeverityFileLineSnippetContext
LOWasv/benchmarks/benchmark_mujoco.py505CODE
LOWasv/benchmarks/setup/bench_sdf.py65CODE
LOWasv/benchmarks/simulation/bench_sensor_tiled_camera.py168CODE
LOWnewton/_src/sensors/sensor_contact.py67CODE
LOWnewton/_src/sensors/warp_raytrace/camera_utils.py108CODE
LOWnewton/_src/sensors/warp_raytrace/raytrace.py38CODE
LOWnewton/_src/sensors/warp_raytrace/raytrace.py105CODE
LOWnewton/_src/sensors/warp_raytrace/raytrace.py400CODE
LOWnewton/_src/sensors/warp_raytrace/raytrace.py652CODE
LOWnewton/_src/sensors/warp_raytrace/raytrace.py109CODE
LOWnewton/_src/sensors/warp_raytrace/raytrace.py271CODE
LOWnewton/_src/sensors/warp_raytrace/raytrace.py404CODE
LOWnewton/_src/sensors/warp_raytrace/raytrace.py527CODE
LOWnewton/_src/sensors/warp_raytrace/raytrace.py654CODE
LOWnewton/_src/sensors/warp_raytrace/raytrace.py745CODE
LOWnewton/_src/sensors/warp_raytrace/render_context.py426CODE
LOWnewton/_src/sensors/warp_raytrace/gaussians.py128CODE
LOWnewton/_src/sensors/warp_raytrace/gaussians.py130CODE
LOWnewton/_src/solvers/kamino/solver_kamino.py1015CODE
LOWnewton/_src/solvers/kamino/_src/solver_kamino_impl.py382CODE
LOWnewton/_src/solvers/kamino/_src/dynamics/dual.py1453CODE
LOWnewton/_src/solvers/kamino/_src/core/shapes.py618CODE
LOWnewton/_src/solvers/kamino/_src/core/conversions.py802CODE
LOWnewton/_src/solvers/kamino/_src/core/materials.py782CODE
LOWnewton/_src/solvers/kamino/_src/core/builder.py821CODE
LOWnewton/_src/solvers/kamino/_src/core/builder.py845CODE
LOWnewton/_src/solvers/kamino/_src/core/builder.py873CODE
LOWnewton/_src/solvers/kamino/_src/core/builder.py1590CODE
LOWnewton/_src/solvers/kamino/_src/core/joints.py435CODE
LOWnewton/_src/solvers/kamino/_src/core/joints.py459CODE
LOWnewton/_src/solvers/kamino/_src/core/joints.py483CODE
LOWnewton/_src/solvers/kamino/_src/core/joints.py507CODE
LOWnewton/_src/solvers/kamino/_src/core/joints.py531CODE
LOWnewton/_src/solvers/kamino/_src/core/joints.py555CODE
LOWnewton/_src/solvers/kamino/_src/core/joints.py579CODE
LOWnewton/_src/solvers/kamino/_src/core/joints.py603CODE
LOWnewton/_src/solvers/kamino/_src/core/joints.py626CODE
LOWnewton/_src/solvers/kamino/_src/core/joints.py685CODE
LOWnewton/_src/solvers/kamino/_src/core/joints.py800CODE
LOWnewton/_src/solvers/kamino/_src/core/joints.py868CODE
LOWnewton/_src/solvers/kamino/_src/core/joints.py899CODE
LOWnewton/_src/solvers/kamino/_src/core/joints.py930CODE
LOWnewton/_src/solvers/kamino/_src/core/joints.py961CODE
LOWnewton/_src/solvers/kamino/_src/core/joints.py1547CODE
LOWnewton/_src/solvers/kamino/_src/linalg/sparse_matrix.py640CODE
LOWnewton/_src/solvers/kamino/_src/linalg/sparse_matrix.py48CODE
LOWnewton/_src/solvers/kamino/_src/linalg/sparse_matrix.py573CODE
LOWnewton/_src/solvers/kamino/_src/linalg/sparse_matrix.py647CODE
LOWnewton/_src/solvers/kamino/_src/linalg/linear.py338CODE
LOWnewton/_src/solvers/kamino/_src/linalg/utils/rand.py135CODE
LOW…amino/_src/linalg/factorize/llt_blocked_semi_sparse.py32CODE
LOW…amino/_src/linalg/factorize/llt_blocked_semi_sparse.py134CODE
LOW…amino/_src/linalg/factorize/llt_blocked_semi_sparse.py174CODE
LOW…amino/_src/linalg/factorize/llt_blocked_semi_sparse.py307CODE
LOW…amino/_src/linalg/factorize/llt_blocked_semi_sparse.py176CODE
LOW…amino/_src/linalg/factorize/llt_blocked_semi_sparse.py309CODE
LOW…_src/solvers/kamino/_src/linalg/factorize/rcm_batch.py113CODE
LOW…_src/solvers/kamino/_src/linalg/factorize/rcm_batch.py322CODE
LOW…_src/solvers/kamino/_src/linalg/factorize/rcm_batch.py210CODE
LOW…_src/solvers/kamino/_src/linalg/factorize/rcm_batch.py328CODE
458 more matches not shown…
Redundant / Tautological Comments187 hits · 253 pts
SeverityFileLineSnippetContext
LOWnewton/_src/sensors/sensor_contact.py581 # Assign rows to sensing objectsCOMMENT
LOWnewton/_src/sensors/sensor_contact.py586 # Assign columns to counterparts: first global, then localCOMMENT
LOWnewton/_src/solvers/kamino/config.py208 # Check if optional arguments are specified and override with defaults if notCOMMENT
LOWnewton/_src/solvers/kamino/_src/solver_kamino_impl.py534 # Set base_q to provided valueCOMMENT
LOWnewton/_src/solvers/kamino/_src/solver_kamino_impl.py568 # Set base_u to provided valueCOMMENT
LOWnewton/_src/solvers/kamino/_src/dynamics/delassus.py396 # Check if block index is valid for this matrix.COMMENT
LOWnewton/_src/solvers/kamino/_src/dynamics/delassus.py455 # Check if block index is valid for this matrix.COMMENT
LOWnewton/_src/solvers/kamino/_src/dynamics/delassus.py698 # Check if block index is valid for this matrix.COMMENT
LOWnewton/_src/solvers/kamino/_src/core/world.py392 # Check if the body has already been added to a worldCOMMENT
LOWnewton/_src/solvers/kamino/_src/core/world.py418 # Check if the joint has already been added to a worldCOMMENT
LOWnewton/_src/solvers/kamino/_src/core/world.py424 # Check if the specified Base-Follower body indices are validCOMMENT
LOWnewton/_src/solvers/kamino/_src/core/world.py503 # Check if the geometry has already been added to a worldCOMMENT
LOWnewton/_src/solvers/kamino/_src/core/world.py522 # Check if the material has already been added to a worldCOMMENT
LOWnewton/_src/solvers/kamino/_src/core/conversions.py1263 # Check if material with these parameters already existsCOMMENT
LOWnewton/_src/solvers/kamino/_src/core/materials.py796 # Check if the key is an integerCOMMENT
LOWnewton/_src/solvers/kamino/_src/core/materials.py798 # Check if the key is within the range of materialsCOMMENT
LOWnewton/_src/solvers/kamino/_src/core/materials.py804 # Check if the key is a stringCOMMENT
LOWnewton/_src/solvers/kamino/_src/core/materials.py806 # Check if the key is a valid material nameCOMMENT
LOWnewton/_src/solvers/kamino/_src/core/materials.py693 # Check if the material already existsCOMMENT
LOWnewton/_src/solvers/kamino/_src/core/materials.py827 # Check if the name exists in the materials listCOMMENT
LOWnewton/_src/solvers/kamino/_src/core/materials.py883 # Check if the material pair properties existCOMMENT
LOWnewton/_src/solvers/kamino/_src/core/materials.py933 # Check if the material pair properties existCOMMENT
LOWnewton/_src/solvers/kamino/_src/core/materials.py983 # Check if the material pair properties existCOMMENT
LOWnewton/_src/solvers/kamino/_src/core/builder.py361 # Check if the descriptor is validCOMMENT
LOWnewton/_src/solvers/kamino/_src/core/builder.py365 # Check if body properties are validCOMMENT
LOWnewton/_src/solvers/kamino/_src/core/builder.py369 # Check if the world index is validCOMMENT
LOWnewton/_src/solvers/kamino/_src/core/builder.py433 # Check if the actuation type is validCOMMENT
LOWnewton/_src/solvers/kamino/_src/core/builder.py437 # Check if the DoF type is validCOMMENT
LOWnewton/_src/solvers/kamino/_src/core/builder.py606 # Check if the descriptor is validCOMMENT
LOWnewton/_src/solvers/kamino/_src/core/builder.py614 # Check if the world index is validCOMMENT
LOWnewton/_src/solvers/kamino/_src/core/builder.py483 # Check if the descriptor is validCOMMENT
LOWnewton/_src/solvers/kamino/_src/core/builder.py487 # Check if the world index is validCOMMENT
LOWnewton/_src/solvers/kamino/_src/core/builder.py643 # Check if the world index is validCOMMENT
LOWnewton/_src/solvers/kamino/_src/core/builder.py646 # Check if the material is validCOMMENT
LOWnewton/_src/solvers/kamino/_src/core/builder.py673 # Check if the other builder is of valid typeCOMMENT
LOWnewton/_src/solvers/kamino/_src/core/builder.py744 # Check if the world index is validCOMMENT
LOWnewton/_src/solvers/kamino/_src/core/builder.py747 # Check if the axis is validCOMMENT
LOWnewton/_src/solvers/kamino/_src/core/builder.py766 # Check if the world index is validCOMMENT
LOWnewton/_src/solvers/kamino/_src/core/builder.py769 # Check if the gravity descriptor is validCOMMENT
LOWnewton/_src/solvers/kamino/_src/core/builder.py781 # Check if the world index is validCOMMENT
LOWnewton/_src/solvers/kamino/_src/core/builder.py784 # Check if the material is validCOMMENT
LOWnewton/_src/solvers/kamino/_src/core/builder.py811 # Check if the world index is validCOMMENT
LOWnewton/_src/solvers/kamino/_src/core/builder.py831 # Check if the world index is validCOMMENT
LOWnewton/_src/solvers/kamino/_src/core/builder.py855 # Check if the world index is validCOMMENT
LOWnewton/_src/solvers/kamino/_src/core/joints.py1412 # Check if DoF type + actuation type are compatibleCOMMENT
LOWnewton/_src/solvers/kamino/_src/core/joints.py1418 # Check if DoF type + dynamic/implicit PD settings are compatibleCOMMENT
LOWnewton/_src/solvers/kamino/_src/core/math.py321 # Check if the norm of the imaginary part is infinitesimalCOMMENT
LOWnewton/_src/solvers/kamino/_src/core/math.py354 # Check if the norm of the imaginary part is infinitesimalCOMMENT
LOWnewton/_src/solvers/kamino/_src/core/math.py500 # Check if the norm of the imaginary part is infinitesimalCOMMENT
LOWnewton/_src/solvers/kamino/_src/linalg/sparse_matrix.py672 # Check if any element in this block is non-zeroCOMMENT
LOWnewton/_src/solvers/kamino/_src/linalg/blas.py201 # Check if block index is valid for this matrix.COMMENT
LOWnewton/_src/solvers/kamino/_src/linalg/blas.py267 # Check if block index is valid for this matrix.COMMENT
LOWnewton/_src/solvers/kamino/_src/linalg/blas.py336 # Check if block index is valid for this matrix.COMMENT
LOWnewton/_src/solvers/kamino/_src/linalg/blas.py400 # Check if block index is valid for this matrix.COMMENT
LOWnewton/_src/solvers/kamino/_src/linalg/blas.py541 # Check if block index is valid for this matrix.COMMENT
LOWnewton/_src/solvers/kamino/_src/linalg/blas.py609 # Check if block index is valid for this matrix.COMMENT
LOWnewton/_src/solvers/kamino/_src/linalg/blas.py680 # Check if block index is valid for this matrix.COMMENT
LOWnewton/_src/solvers/kamino/_src/linalg/blas.py746 # Check if block index is valid for this matrix.COMMENT
LOWnewton/_src/solvers/kamino/_src/linalg/blas.py874 # Check if block index is valid for this matrix.COMMENT
LOWnewton/_src/solvers/kamino/_src/linalg/blas.py926 # Check if block index is valid for this matrix.COMMENT
127 more matches not shown…
Hallucination Indicators17 hits · 230 pts
SeverityFileLineSnippetContext
CRITICAL…ton/_src/solvers/kamino/_src/utils/benchmark/runner.py263 total_steps=int(simulator.sim.solver.data.time.steps.numpy()[0]),CODE
CRITICALnewton/_src/solvers/kamino/_src/utils/sim/datalog.py164 self.log_num_contacts[self._frames] = self._sim.contacts.data.model_active_contacts.numpy()[0]CODE
CRITICALnewton/_src/solvers/kamino/_src/utils/sim/datalog.py167 self.log_padmm_iters[self._frames] = self._sim.solver.solver_fd.data.status.numpy()[0][1]CODE
CRITICALnewton/_src/solvers/kamino/_src/utils/sim/datalog.py168 self.log_padmm_r_p[self._frames] = self._sim.solver.solver_fd.data.status.numpy()[0][2]CODE
CRITICALnewton/_src/solvers/kamino/_src/utils/sim/datalog.py169 self.log_padmm_r_d[self._frames] = self._sim.solver.solver_fd.data.status.numpy()[0][3]CODE
CRITICALnewton/_src/solvers/kamino/_src/utils/sim/datalog.py170 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.py427 np.testing.assert_allclose(multi_sim.solver.data.joints.tau_j.numpy(), sample_ctrl_tau_j)CODE
CRITICAL…solvers/kamino/examples/reset/example_reset_dr_legs.py271 self.sim.data.control.tau_j.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.py10137 meaninertia = self.solver.mjw_model.stat.meaninertia.numpy()STRING
CRITICALnewton/examples/kamino/example_kamino_robot_dr_legs.py86 self.solver._solver_kamino._model.joints.a_j.fill_(0.011) # Joint armatureCODE
CRITICALnewton/examples/kamino/example_kamino_robot_dr_legs.py87 self.solver._solver_kamino._model.joints.b_j.fill_(0.044) # Joint viscous dampingCODE
CRITICALnewton/examples/kamino/example_kamino_robot_dr_legs.py88 self.solver._solver_kamino._model.joints.k_p_j.fill_(10.0) # Proportional gainCODE
CRITICALnewton/examples/kamino/example_kamino_robot_dr_legs.py89 self.solver._solver_kamino._model.joints.k_d_j.fill_(2.0) # Derivative gainCODE
Modern Structural Boilerplate211 hits · 201 pts
SeverityFileLineSnippetContext
LOWasv/benchmarks/benchmark_inverse_dynamics.py40def set_default_pose(model: newton.Model, state: newton.State) -> None:CODE
LOWasv/benchmarks/simulation/bench_sensor_tiled_camera.py100def _set_joint_positions(builder: newton.ModelBuilder, joint_positions: dict[str, float]) -> None:CODE
LOWnewton/usd.py33__all__ = [CODE
LOWnewton/viewer.py17__all__ = [CODE
LOWnewton/sensors.py24__all__ = [CODE
LOWnewton/ik.py19__all__ = [CODE
LOWnewton/__init__.py39__all__ = [CODE
LOWnewton/solvers.py50__all__ = [STRING
LOWnewton/actuators.py37__all__ = [CODE
LOWnewton/utils.py9__all__ = [CODE
LOWnewton/geometry.py35__all__ = [CODE
LOWnewton/math.py29__all__ = [CODE
LOWnewton/selection.py6__all__ = [CODE
LOWnewton/_src/sensors/warp_raytrace/__init__.py8__all__ = [CODE
LOWnewton/_src/core/__init__.py13__all__ = [CODE
LOWnewton/_src/core/types.py201__all__ = [CODE
LOWnewton/_src/solvers/solver.py203 def _set_module_options(self, options: dict[str, Any], module: Any) -> None:CODE
LOWnewton/_src/solvers/solver.py412 def update_contacts(self, contacts: Contacts, state: State | None = None) -> None:CODE
LOWnewton/_src/solvers/flags.py53__all__ = [CODE
LOWnewton/_src/solvers/__init__.py15__all__ = [CODE
LOWnewton/_src/solvers/kamino/config.py23__all__ = [CODE
LOWnewton/_src/solvers/kamino/solver_kamino.py46__all__ = ["SolverKamino"]CODE
LOWnewton/_src/solvers/kamino/solver_kamino.py908 def update_contacts(self, contacts: Contacts, state: State | None = None) -> None:CODE
LOWnewton/_src/solvers/kamino/__init__.py15__all__ = ["SolverKamino"]CODE
LOWnewton/_src/solvers/kamino/_src/__init__.py31__all__ = [CODE
LOWnewton/_src/solvers/kamino/_src/solver_kamino_impl.py70__all__ = [CODE
LOWnewton/_src/solvers/kamino/_src/solver_kamino_impl.py696 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.py23__all__ = [CODE
LOWnewton/_src/solvers/kamino/_src/core/time.py19__all__ = [CODE
LOWnewton/_src/solvers/kamino/_src/core/world.py21__all__ = ["WorldDescriptor"]CODE
LOWnewton/_src/solvers/kamino/_src/core/shapes.py22__all__ = [CODE
LOWnewton/_src/solvers/kamino/_src/core/conversions.py38__all__ = [CODE
LOWnewton/_src/solvers/kamino/_src/core/inertia.py15__all__ = [CODE
LOWnewton/_src/solvers/kamino/_src/core/materials.py41__all__ = [CODE
LOWnewton/_src/solvers/kamino/_src/core/bodies.py19__all__ = [CODE
LOWnewton/_src/solvers/kamino/_src/core/__init__.py18__all__ = ["ControlKamino", "DataKamino", "ModelBuilderKamino", "ModelKamino", "StateKamino"]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/builder.py40__all__ = [CODE
LOWnewton/_src/solvers/kamino/_src/core/gravity.py22__all__ = [CODE
LOWnewton/_src/solvers/kamino/_src/core/joints.py35__all__ = [CODE
LOWnewton/_src/solvers/kamino/_src/core/geometry.py28__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.py32__all__ = [CODE
LOWnewton/_src/solvers/kamino/_src/linalg/linear.py36__all__ = [CODE
LOWnewton/_src/solvers/kamino/_src/linalg/linear.py434 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__.py47__all__ = [CODE
LOWnewton/_src/solvers/kamino/_src/linalg/core.py27__all__ = [CODE
LOWnewton/_src/solvers/kamino/_src/linalg/types.py21__all__ = [CODE
LOWnewton/_src/solvers/kamino/_src/linalg/blas.py20__all__ = [CODE
LOWnewton/_src/solvers/kamino/_src/linalg/conjugate.py29__all__ = [CODE
LOWnewton/_src/solvers/kamino/_src/linalg/utils/matrix.py14__all__ = [CODE
LOWnewton/_src/solvers/kamino/_src/linalg/utils/range.py12__all__ = [CODE
LOW…wton/_src/solvers/kamino/_src/linalg/utils/__init__.py32__all__ = [CODE
LOWnewton/_src/solvers/kamino/_src/linalg/utils/rand.py14__all__ = [CODE
151 more matches not shown…
Excessive Try-Catch Wrapping179 hits · 189 pts
SeverityFileLineSnippetContext
LOW…solvers/kamino/_src/linalg/factorize/_tile_builtins.py24 except Exception:CODE
LOW…solvers/kamino/_src/linalg/factorize/_tile_builtins.py37 except Exception:CODE
LOW…solvers/kamino/_src/linalg/factorize/_tile_builtins.py50 except Exception:CODE
LOWnewton/_src/solvers/kamino/_src/solvers/fk/solver.py159 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…on/_src/solvers/kamino/_src/utils/benchmark/metrics.py90 except Exception as e:CODE
LOW…on/_src/solvers/kamino/_src/utils/benchmark/metrics.py1076 except Exception as e:CODE
LOW…on/_src/solvers/kamino/_src/utils/benchmark/metrics.py1169 except Exception as e:CODE
LOW…ton/_src/solvers/kamino/_src/utils/benchmark/render.py95 except Exception:CODE
LOW…ton/_src/solvers/kamino/_src/utils/benchmark/render.py266 except Exception:CODE
LOWnewton/_src/solvers/kamino/_src/utils/io/usd.py1771 except Exception as e:CODE
LOWnewton/_src/solvers/kamino/_src/utils/io/usd.py1776 except Exception as e:CODE
LOWnewton/_src/solvers/kamino/_src/utils/sim/viewer.py678 except Exception as e:CODE
LOWnewton/_src/solvers/kamino/examples/rl/simulation.py752 except Exception as e:CODE
LOWnewton/_src/solvers/kamino/examples/rl/joystick.py184 except Exception:CODE
LOWnewton/_src/solvers/kamino/examples/rl/joystick.py300 except Exception:CODE
LOW…c/solvers/kamino/examples/rl/test_multi_env_dr_legs.py84 except Exception as e:CODE
LOWnewton/_src/solvers/mujoco/solver_mujoco.py560 except Exception:CODE
LOWnewton/_src/solvers/mujoco/solver_mujoco.py8562 except Exception:CODE
LOWnewton/_src/utils/mesh.py1082 except Exception:CODE
LOWnewton/_src/utils/mesh.py1170 except Exception:CODE
LOWnewton/_src/utils/texture.py37 except Exception as exc:CODE
LOWnewton/_src/utils/texture.py68 except Exception as exc:CODE
LOWnewton/_src/utils/download_assets.py166 except Exception:CODE
LOWnewton/_src/utils/download_assets.py423 except Exception as e:CODE
LOWnewton/_src/utils/selection.py1652 except Exception:CODE
LOWnewton/_src/utils/selection.py1659 except Exception:CODE
LOWnewton/_src/utils/import_utils.py49 except Exception as e:CODE
LOWnewton/_src/utils/import_usd.py487 except Exception as e:CODE
LOWnewton/_src/utils/import_usd.py500 except Exception as e:CODE
LOWnewton/_src/utils/import_usd.py821 except Exception:CODE
LOWnewton/_src/utils/import_usd.py2441 except Exception:CODE
LOWnewton/_src/utils/import_usd.py4671 except Exception as e:CODE
LOWnewton/_src/utils/import_usd.py4681 except Exception as e:CODE
LOWnewton/_src/utils/import_usd.py5000 except Exception:CODE
LOWnewton/_src/utils/import_usd.py5016 except Exception:CODE
LOWnewton/_src/viewer/viewer_usd.py360 except Exception as exc:CODE
LOWnewton/_src/viewer/viewer.py2839 except Exception:CODE
LOWnewton/_src/viewer/viewer_rerun.py54 except Exception:CODE
LOWnewton/_src/viewer/viewer_rerun.py90 except Exception:CODE
LOWnewton/_src/viewer/viewer_rerun.py95 except Exception:CODE
LOWnewton/_src/viewer/viewer_rerun.py183 except Exception:CODE
LOWnewton/_src/viewer/viewer_rerun.py518 except Exception:CODE
LOWnewton/_src/viewer/viewer_rerun.py525 except Exception:CODE
MEDIUMnewton/_src/viewer/viewer_file.py1209 print(f"Error saving recording: {e}")CODE
MEDIUMnewton/_src/viewer/viewer_file.py265def _warp_key(x) -> int:CODE
LOWnewton/_src/viewer/viewer_file.py522 except Exception:CODE
LOWnewton/_src/viewer/viewer_file.py529 except Exception:CODE
LOWnewton/_src/viewer/viewer_file.py268 except Exception:CODE
LOWnewton/_src/viewer/viewer_file.py276 except Exception:CODE
LOWnewton/_src/viewer/viewer_file.py1013 except Exception as e:CODE
LOWnewton/_src/viewer/viewer_file.py1066 except Exception as e:CODE
LOWnewton/_src/viewer/viewer_file.py1207 except Exception as e:CODE
LOWnewton/_src/viewer/viewer_rtx.py720 except Exception as e:CODE
LOWnewton/_src/viewer/viewer_rtx.py737 except Exception as e:CODE
LOWnewton/_src/viewer/viewer_rtx.py826 except Exception as exc:CODE
LOWnewton/_src/viewer/viewer_rtx.py1368 except Exception as exc:CODE
LOWnewton/_src/viewer/viewer_rtx.py2199 except Exception:CODE
119 more matches not shown…
Over-Commented Block158 hits · 138 pts
SeverityFileLineSnippetContext
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/solvers/kamino/_src/solver_kamino_impl.py1041 # Update intermediate quantities of the bodies and jointsCOMMENT
LOWnewton/_src/solvers/kamino/_src/dynamics/dual.py621 cio_k = cio + cid_kCOMMENT
LOW…rc/solvers/kamino/_src/linalg/factorize/llt_blocked.py81# n_i: int,COMMENT
LOWnewton/_src/solvers/kamino/_src/solvers/padmm/types.py81COMMENT
LOWnewton/_src/solvers/kamino/_src/geometry/contacts.py1501 contacts_in.model_max_contacts_host,COMMENT
LOWnewton/_src/solvers/kamino/tests/test_core_model.py381 use_angular_drive_scaling=True,COMMENT
LOWnewton/_src/solvers/kamino/tests/utils/__init__.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
LOWnewton/_src/solvers/mujoco/solver_mujoco.py3541 # captured; the resulting buffers can have a tangled lifetime andCOMMENT
LOWnewton/_src/solvers/mujoco/solver_mujoco.py3921COMMENT
LOWnewton/_src/solvers/mujoco/solver_mujoco.py5961 else:COMMENT
LOWnewton/_src/solvers/mujoco/solver_mujoco.py6861 # (authored MuJoCo values). For ``SOLREF_MODE_FORCE_SPACE``COMMENT
LOWnewton/_src/solvers/mujoco/solver_mujoco.py6941 "geom_quat",COMMENT
LOWnewton/_src/solvers/mujoco/solver_mujoco.py7901 )COMMENT
LOWnewton/_src/solvers/mujoco/kernels.py661 )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 # F = Ds * inv(Dm).COMMENT
LOWnewton/_src/solvers/xpbd/kernels.py621 wp.atomic_add(delta, l, w3 * dlambda * grad3 * relaxation)COMMENT
LOWnewton/_src/solvers/xpbd/kernels.py641 # grad2 = wp.vec3(dCdx[0, 1], dCdx[1, 1], dCdx[2, 1])COMMENT
LOWnewton/_src/solvers/xpbd/kernels.py661 # # grad1 = wp.vec3(dCdx[0,0], dCdx[1,0], dCdx[2,0])COMMENT
LOWnewton/_src/solvers/xpbd/kernels.py741COMMENT
LOWnewton/_src/solvers/xpbd/kernels.py761 # if (tr < 3.0):COMMENT
LOWnewton/_src/solvers/featherstone/solver_featherstone.py841 )COMMENT
LOWnewton/_src/solvers/featherstone/kernels.py1541# m: int,COMMENT
LOWnewton/_src/solvers/coupled/admm_utils.py941COMMENT
LOWnewton/_src/utils/import_mjcf.py1641 # mixed signs are rejected by ``solref_to_stiffness_damping``COMMENT
LOWnewton/_src/utils/import_mjcf.py1761 joint_type = JointType.BALLCOMMENT
LOWnewton/_src/utils/import_usd_deformable_cloth.py181 # the Poisson ratio nu = tri_ka / (tri_ka + 2*tri_ke); the surface material authors noCOMMENT
LOWnewton/_src/utils/selection.py61COMMENT
LOWnewton/_src/utils/selection.py101 i, j, k, l = wp.tid()COMMENT
LOWnewton/_src/utils/import_usd.py2581 # Compute parent_xform to preserve imported pose when attaching to parent_bodyCOMMENT
LOWnewton/_src/utils/import_usd.py2921 orphan_joint_groups.extend([[joint_path] for joint_path in joint_group])COMMENT
LOWnewton/_src/utils/import_usd.py4701 values_dict = {}COMMENT
LOWnewton/_src/utils/import_usd.py4721 # joint_target_pos / joint_target_vel aliases under the DOF layout).COMMENT
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/geometry/contact_reduction_hydroelastic.py681COMMENT
LOWnewton/_src/geometry/sdf_contact.py21)COMMENT
LOWnewton/_src/geometry/sdf_contact.py1061 # outer iteration. Draining is essential: a singleCOMMENT
LOWnewton/_src/geometry/sdf_contact.py1281 # is a uniformly-called barrier that pairs cleanlyCOMMENT
LOWnewton/_src/geometry/sdf_hydroelastic.py1441COMMENT
LOWnewton/_src/geometry/narrow_phase.py1581 # Generic block dim for non-tile-stack kernels (primitive /COMMENT
LOWnewton/_src/geometry/sdf_texture.py41# * :func:`texture_sample_sdf` / :func:`texture_sample_sdf_grad` --COMMENT
LOWnewton/_src/geometry/inertia.py21# considered "near-zero" only when it is smaller than this fraction of theCOMMENT
LOWnewton/_src/geometry/contact_reduction.py61# "icosahedron" -> 20 bins (default, finer normal resolution)COMMENT
LOWnewton/_src/geometry/types.py1001 )COMMENT
LOWnewton/_src/geometry/_sdf_cache.py281 newton_version if newton_version is not None else _resolve_newton_version(),COMMENT
LOWnewton/_src/geometry/contact_reduction_global.py241 """COMMENT
LOWnewton/_src/geometry/contact_reduction_global.py601COMMENT
LOWnewton/_src/geometry/contact_sort.py41COMMENT
LOWnewton/_src/geometry/hashtable.py21COMMENT
LOWnewton/_src/sim/contacts.py321 self.rigid_contact_new_count = NoneCOMMENT
98 more matches not shown…
AI Structural Patterns136 hits · 98 pts
SeverityFileLineSnippetContext
LOWasv/benchmarks/benchmark_mujoco.py352CODE
LOWasv/benchmarks/benchmark_mujoco.py551CODE
LOWnewton/_src/sensors/sensor_tiled_camera.py170CODE
LOWnewton/_src/sensors/warp_raytrace/utils.py396CODE
LOWnewton/_src/sensors/warp_raytrace/utils.py532CODE
LOWnewton/_src/sensors/warp_raytrace/utils.py658CODE
LOWnewton/_src/sensors/warp_raytrace/utils.py742CODE
LOWnewton/_src/sensors/warp_raytrace/utils.py828CODE
LOWnewton/_src/sensors/warp_raytrace/render_context.py151CODE
LOWnewton/_src/solvers/kamino/_src/dynamics/dual.py1051CODE
LOWnewton/_src/solvers/kamino/_src/core/shapes.py433CODE
LOWnewton/_src/solvers/kamino/_src/core/builder.py383CODE
LOWnewton/_src/solvers/kamino/_src/core/builder.py509CODE
LOWnewton/_src/solvers/kamino/_src/linalg/linear.py271CODE
LOWnewton/_src/solvers/kamino/_src/linalg/linear.py571CODE
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.py95CODE
LOWnewton/_src/solvers/kamino/_src/solvers/fk/solver.py2077CODE
LOWnewton/_src/solvers/kamino/_src/utils/profiles.py379CODE
LOW…ton/_src/solvers/kamino/_src/utils/benchmark/runner.py28CODE
LOWnewton/_src/solvers/kamino/_src/utils/io/usd.py1718CODE
LOWnewton/_src/solvers/kamino/_src/utils/sim/runner.py20CODE
LOWnewton/_src/solvers/kamino/_src/utils/sim/viewer.py191CODE
LOW…on/_src/solvers/kamino/_src/utils/control/animation.py237CODE
LOW…ton/_src/solvers/kamino/_src/models/builders/basics.py849CODE
LOW…on/_src/solvers/kamino/_src/models/builders/testing.py144CODE
LOW…on/_src/solvers/kamino/_src/models/builders/testing.py237CODE
LOW…on/_src/solvers/kamino/_src/models/builders/testing.py347CODE
LOW…on/_src/solvers/kamino/_src/models/builders/testing.py438CODE
LOW…on/_src/solvers/kamino/_src/models/builders/testing.py548CODE
LOW…on/_src/solvers/kamino/_src/models/builders/testing.py641CODE
LOW…on/_src/solvers/kamino/_src/models/builders/testing.py1125CODE
LOW…on/_src/solvers/kamino/_src/models/builders/testing.py1218CODE
LOW…on/_src/solvers/kamino/_src/models/builders/testing.py1559CODE
LOWnewton/_src/solvers/kamino/tests/utils/rand.py24CODE
LOWnewton/_src/solvers/kamino/tests/utils/rand.py178CODE
LOW…solvers/kamino/examples/reset/example_reset_dr_legs.py81CODE
LOW…kamino/examples/sim/example_sim_basics_boxes_hinged.py85CODE
LOW…solvers/kamino/examples/sim/example_sim_dr_testmech.py25CODE
LOW…src/solvers/kamino/examples/sim/example_sim_dr_legs.py142CODE
LOW…ers/kamino/examples/sim/example_sim_test_all_joints.py31CODE
LOW…o/examples/sim/example_sim_basics_all_heterogeneous.py81CODE
LOW…ers/kamino/examples/sim/example_sim_basics_cartpole.py102CODE
LOW…kamino/examples/sim/example_sim_basics_box_pendulum.py28CODE
LOW…kamino/examples/sim/example_sim_basics_box_on_plane.py98CODE
LOW…amino/examples/sim/example_sim_basics_boxes_fourbar.py163CODE
LOWnewton/_src/solvers/kamino/examples/rl/simulation.py229CODE
LOWnewton/_src/solvers/style3d/cloth.py180CODE
LOWnewton/_src/solvers/style3d/cloth.py396CODE
LOWnewton/_src/solvers/implicit_mpm/solver_implicit_mpm.py989CODE
LOWnewton/_src/solvers/implicit_mpm/implicit_mpm_model.py428CODE
LOWnewton/_src/solvers/mujoco/solver_mujoco.py3264CODE
LOWnewton/_src/solvers/mujoco/solver_mujoco.py4724CODE
LOWnewton/_src/solvers/mujoco/equality.py253CODE
LOWnewton/_src/solvers/xpbd/solver_xpbd.py100CODE
LOWnewton/_src/solvers/vbd/solver_vbd.py203CODE
LOWnewton/_src/solvers/vbd/tri_mesh_collision.py236CODE
LOWnewton/_src/utils/import_mjcf.py162CODE
LOWnewton/_src/utils/mesh.py982CODE
76 more matches not shown…
Verbosity Indicators53 hits · 80 pts
SeverityFileLineSnippetContext
LOWnewton/_src/solvers/implicit_mpm/solve_rheology.py967 # Step 1: strain → batch mappingCOMMENT
LOWnewton/_src/solvers/implicit_mpm/solve_rheology.py998 # Step 3: compute Delassus diagonal with per-batch mass splittingCOMMENT
LOWnewton/_src/solvers/implicit_mpm/solve_rheology.py1073 # Step 2: per-row exclusive prefix scan (local offsets per batch; fully written)COMMENT
LOWnewton/_src/solvers/implicit_mpm/solve_rheology.py1080 # Step 3: compute per-batch base offsets (single-threaded kernel; fully written)COMMENT
LOWnewton/_src/solvers/implicit_mpm/solve_rheology.py1090 # Step 4: globalize local offsets → _batch_global_offsets[n_batches, n_vel+1]COMMENT
LOWnewton/_src/solvers/implicit_mpm/solve_rheology.py978 # Step 2: per-velocity-node per-batch sharing counts (accumulator: must be zero)COMMENT
LOWnewton/_src/solvers/implicit_mpm/solve_rheology.py1060 # Step 1: count entries per (batch, velocity-node) (accumulator: must be zero)COMMENT
LOWnewton/_src/solvers/implicit_mpm/solve_rheology.py1102 # Step 5: allocate flat arrays and fill all SCs in one passCOMMENT
LOWnewton/_src/geometry/sdf_contact.py879 # Step 2: inclusive scan to get total in last elementCOMMENT
LOWnewton/_src/geometry/sdf_contact.py881 # Step 3: compute per-pair block counts using adaptive thresholdCOMMENT
LOWnewton/_src/geometry/sdf_contact.py896 # Step 4: exclusive scan of block counts → block_offsetsCOMMENT
LOWnewton/_src/geometry/sdf_contact.py864 # Step 1: compute per-pair edge counts in parallelCOMMENT
LOWnewton/_src/geometry/narrow_phase.py1073 # Step 2: inclusive scan to get totalCOMMENT
LOWnewton/_src/geometry/narrow_phase.py1075 # Step 3: compute per-pair block counts using adaptive thresholdCOMMENT
LOWnewton/_src/geometry/narrow_phase.py1090 # Step 4: exclusive scan of block counts → block_offsetsCOMMENT
LOWnewton/_src/geometry/narrow_phase.py1060 # Step 1: compute per-pair vertex counts in parallelCOMMENT
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
LOWnewton/_src/geometry/utils.py301 # Step 1: Compute convex hullCOMMENT
LOWnewton/_src/geometry/utils.py305 # Step 2: Compute mesh inertiaCOMMENT
LOWnewton/_src/geometry/utils.py338 # Step 3: Warp kernel searchCOMMENT
LOWnewton/tests/test_remesh.py327 # Step 1: Extract point cloudCOMMENT
LOWnewton/tests/test_remesh.py334 # Step 2: Reconstruct meshCOMMENT
LOWnewton/tests/test_remesh.py348 # Step 3: Validate reconstructed mesh is close to original cubeCOMMENT
LOWnewton/tests/test_mujoco_solver.py1176 # Step 3: Create solver (it will read the updated values now)COMMENT
LOWnewton/tests/test_mujoco_solver.py1179 # Step 4: Verify jnt_solimp is properly expanded for multi-worldCOMMENT
LOWnewton/tests/test_mujoco_solver.py1183 # Step 5: Verify initial values were converted correctlyCOMMENT
LOWnewton/tests/test_mujoco_solver.py1243 # Step 7: Notify solver of changesCOMMENT
LOWnewton/tests/test_mujoco_solver.py1246 # Step 8: Verify updated values were converted correctlyCOMMENT
LOWnewton/tests/test_mujoco_solver.py1273 # Step 1: Create a template builder and register SolverMuJoCo custom attributesCOMMENT
LOWnewton/tests/test_mujoco_solver.py1327 # Step 2: Replicate to multiple worldsCOMMENT
LOWnewton/tests/test_mujoco_solver.py1333 # Step 3: Initialize solverCOMMENT
LOWnewton/tests/test_mujoco_solver.py1383 # Step 6: Notify solverCOMMENT
LOWnewton/tests/test_mujoco_solver.py1386 # Step 7: Verify updates - iterate over MuJoCo jointsCOMMENT
LOWnewton/tests/test_mujoco_solver.py912 # Step 1: Set initial values with different patterns for each attributeCOMMENT
LOWnewton/tests/test_mujoco_solver.py963 # Step 2: Create solver (this should apply values to MuJoCo)COMMENT
LOWnewton/tests/test_mujoco_solver.py992 # Step 4: Change all values with different patternsCOMMENT
LOWnewton/tests/test_mujoco_solver.py1035 # Step 5: Notify MuJoCo of changesCOMMENT
LOWnewton/tests/test_mujoco_solver.py1078 # Step 1: Create a template builder and register SolverMuJoCo custom attributesCOMMENT
LOWnewton/tests/test_mujoco_solver.py1136 # Step 2: Set initial solimplimit valuesCOMMENT
LOWnewton/tests/test_mujoco_solver.py1211 # Step 6: Update solimplimit values with different patternsCOMMENT
LOWnewton/tests/test_mujoco_solver.py1346 # Step 4: Verify initial values - iterate over MuJoCo jointsCOMMENT
LOWnewton/tests/test_mujoco_solver.py1362 # Step 5: Update limit_margin values at runtimeCOMMENT
LOWnewton/tests/test_collision_primitives.py1901 # Step 1: Initially separated by 0.1COMMENT
LOWnewton/tests/test_collision_primitives.py1907 # Step 2: Just touching (gap = 0)COMMENT
LOWnewton/tests/test_collision_primitives.py1913 # Step 3: Penetration of 0.1COMMENT
LOWnewton/tests/test_collision_primitives.py1920 # Step 4: Penetration of 0.2COMMENT
LOWnewton/tests/test_collision_primitives.py1927 # Step 5: Penetration of 0.3COMMENT
LOWnewton/tests/test_runtime_gravity.py33 # Step 1: Simulate with default gravityCOMMENT
LOWnewton/tests/test_runtime_gravity.py42 # Step 2: Change gravity to zero at runtimeCOMMENT
LOWnewton/tests/test_runtime_gravity.py89 # Step 1: Simulate with default gravityCOMMENT
LOWnewton/tests/test_runtime_gravity.py98 # Step 2: Change gravity to horizontalCOMMENT
LOWnewton/tests/test_runtime_gravity.py56 # Step 3: Change gravity to positive (upward)COMMENT
Structural Annotation Overuse53 hits · 79 pts
SeverityFileLineSnippetContext
LOWnewton/_src/solvers/implicit_mpm/solve_rheology.py967 # Step 1: strain → batch mappingCOMMENT
LOWnewton/_src/solvers/implicit_mpm/solve_rheology.py998 # Step 3: compute Delassus diagonal with per-batch mass splittingCOMMENT
LOWnewton/_src/solvers/implicit_mpm/solve_rheology.py1073 # Step 2: per-row exclusive prefix scan (local offsets per batch; fully written)COMMENT
LOWnewton/_src/solvers/implicit_mpm/solve_rheology.py1080 # Step 3: compute per-batch base offsets (single-threaded kernel; fully written)COMMENT
LOWnewton/_src/solvers/implicit_mpm/solve_rheology.py1090 # Step 4: globalize local offsets → _batch_global_offsets[n_batches, n_vel+1]COMMENT
LOWnewton/_src/solvers/implicit_mpm/solve_rheology.py978 # Step 2: per-velocity-node per-batch sharing counts (accumulator: must be zero)COMMENT
LOWnewton/_src/solvers/implicit_mpm/solve_rheology.py1060 # Step 1: count entries per (batch, velocity-node) (accumulator: must be zero)COMMENT
LOWnewton/_src/solvers/implicit_mpm/solve_rheology.py1102 # Step 5: allocate flat arrays and fill all SCs in one passCOMMENT
LOWnewton/_src/geometry/sdf_contact.py879 # Step 2: inclusive scan to get total in last elementCOMMENT
LOWnewton/_src/geometry/sdf_contact.py881 # Step 3: compute per-pair block counts using adaptive thresholdCOMMENT
LOWnewton/_src/geometry/sdf_contact.py896 # Step 4: exclusive scan of block counts → block_offsetsCOMMENT
LOWnewton/_src/geometry/sdf_contact.py864 # Step 1: compute per-pair edge counts in parallelCOMMENT
LOWnewton/_src/geometry/narrow_phase.py1073 # Step 2: inclusive scan to get totalCOMMENT
LOWnewton/_src/geometry/narrow_phase.py1075 # Step 3: compute per-pair block counts using adaptive thresholdCOMMENT
LOWnewton/_src/geometry/narrow_phase.py1090 # Step 4: exclusive scan of block counts → block_offsetsCOMMENT
LOWnewton/_src/geometry/narrow_phase.py1060 # Step 1: compute per-pair vertex counts in parallelCOMMENT
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
LOWnewton/_src/geometry/utils.py301 # Step 1: Compute convex hullCOMMENT
LOWnewton/_src/geometry/utils.py305 # Step 2: Compute mesh inertiaCOMMENT
LOWnewton/_src/geometry/utils.py338 # Step 3: Warp kernel searchCOMMENT
LOWnewton/tests/test_remesh.py327 # Step 1: Extract point cloudCOMMENT
LOWnewton/tests/test_remesh.py334 # Step 2: Reconstruct meshCOMMENT
LOWnewton/tests/test_remesh.py348 # Step 3: Validate reconstructed mesh is close to original cubeCOMMENT
LOWnewton/tests/test_mujoco_solver.py1176 # Step 3: Create solver (it will read the updated values now)COMMENT
LOWnewton/tests/test_mujoco_solver.py1179 # Step 4: Verify jnt_solimp is properly expanded for multi-worldCOMMENT
LOWnewton/tests/test_mujoco_solver.py1183 # Step 5: Verify initial values were converted correctlyCOMMENT
LOWnewton/tests/test_mujoco_solver.py1243 # Step 7: Notify solver of changesCOMMENT
LOWnewton/tests/test_mujoco_solver.py1246 # Step 8: Verify updated values were converted correctlyCOMMENT
LOWnewton/tests/test_mujoco_solver.py1273 # Step 1: Create a template builder and register SolverMuJoCo custom attributesCOMMENT
LOWnewton/tests/test_mujoco_solver.py1327 # Step 2: Replicate to multiple worldsCOMMENT
LOWnewton/tests/test_mujoco_solver.py1333 # Step 3: Initialize solverCOMMENT
LOWnewton/tests/test_mujoco_solver.py1383 # Step 6: Notify solverCOMMENT
LOWnewton/tests/test_mujoco_solver.py1386 # Step 7: Verify updates - iterate over MuJoCo jointsCOMMENT
LOWnewton/tests/test_mujoco_solver.py912 # Step 1: Set initial values with different patterns for each attributeCOMMENT
LOWnewton/tests/test_mujoco_solver.py963 # Step 2: Create solver (this should apply values to MuJoCo)COMMENT
LOWnewton/tests/test_mujoco_solver.py992 # Step 4: Change all values with different patternsCOMMENT
LOWnewton/tests/test_mujoco_solver.py1035 # Step 5: Notify MuJoCo of changesCOMMENT
LOWnewton/tests/test_mujoco_solver.py1078 # Step 1: Create a template builder and register SolverMuJoCo custom attributesCOMMENT
LOWnewton/tests/test_mujoco_solver.py1136 # Step 2: Set initial solimplimit valuesCOMMENT
LOWnewton/tests/test_mujoco_solver.py1211 # Step 6: Update solimplimit values with different patternsCOMMENT
LOWnewton/tests/test_mujoco_solver.py1346 # Step 4: Verify initial values - iterate over MuJoCo jointsCOMMENT
LOWnewton/tests/test_mujoco_solver.py1362 # Step 5: Update limit_margin values at runtimeCOMMENT
LOWnewton/tests/test_collision_primitives.py1901 # Step 1: Initially separated by 0.1COMMENT
LOWnewton/tests/test_collision_primitives.py1907 # Step 2: Just touching (gap = 0)COMMENT
LOWnewton/tests/test_collision_primitives.py1913 # Step 3: Penetration of 0.1COMMENT
LOWnewton/tests/test_collision_primitives.py1920 # Step 4: Penetration of 0.2COMMENT
LOWnewton/tests/test_collision_primitives.py1927 # Step 5: Penetration of 0.3COMMENT
LOWnewton/tests/test_runtime_gravity.py33 # Step 1: Simulate with default gravityCOMMENT
LOWnewton/tests/test_runtime_gravity.py42 # Step 2: Change gravity to zero at runtimeCOMMENT
LOWnewton/tests/test_runtime_gravity.py89 # Step 1: Simulate with default gravityCOMMENT
LOWnewton/tests/test_runtime_gravity.py98 # Step 2: Change gravity to horizontalCOMMENT
LOWnewton/tests/test_runtime_gravity.py56 # Step 3: Change gravity to positive (upward)COMMENT
Cross-Language Confusion14 hits · 71 pts
SeverityFileLineSnippetContext
HIGHnewton/_src/viewer/gl/shaders.py742 if (s.w <= 0.0 || e.w <= 0.0) return;CODE
HIGHnewton/_src/viewer/gl/shaders.py850 if (s.w <= 0.0 || e.w <= 0.0) return;CODE
HIGHnewton/_src/geometry/soft_contacts_sdf.py123 # conservative lower bound for the cull/search. wp.length() / wp.min(wp.abs()) keep a mirroredCOMMENT
HIGHnewton/_src/sim/builder.py774 """Transformer function that converts a USD attribute value to a valid Warp dtype. If undefined, the generic conSTRING
HIGHnewton/_src/sim/builder.py779 """Transformer function that converts a MJCF attribute value string to a valid Warp dtype. If undefined, the genSTRING
HIGHnewton/_src/sim/builder.py782 """Transformer function that converts a URDF attribute value string to a valid Warp dtype. If undefined, the genSTRING
HIGHnewton/tests/test_download_assets.py59 self.work.git.push("--set-upstream", "origin", "main")CODE
HIGHnewton/tests/test_download_assets.py440 self.work.git.push("--set-upstream", "origin", "main")CODE
HIGHnewton/tests/test_download_assets.py457 self.work.git.push("origin", "v1.0")CODE
HIGHnewton/tests/test_download_assets.py463 self.work.git.push("origin", "v2.0")CODE
HIGHnewton/tests/test_download_assets.py86 self.work.git.push("origin", "main")CODE
HIGHnewton/tests/test_download_assets.py178 self.work.git.push("origin", "v1.0")CODE
HIGHnewton/tests/test_sdf_compute.py1740 undefined, so this test only verifies that the override runs the paritySTRING
HIGHnewton/examples/__init__.py644 help="Viewer to use (gl, usd, rtx, rerun, null, or viser).",CODE
AI Slop Vocabulary25 hits · 63 pts
SeverityFileLineSnippetContext
MEDIUMnewton/_src/solvers/kamino/_src/solvers/warmstart.py563 # First sort the keys of cached limits to facilitate binary searchCOMMENT
MEDIUMnewton/_src/solvers/kamino/_src/solvers/warmstart.py610 # First sort the keys of cached contacts to facilitate binary searchCOMMENT
MEDIUMnewton/_src/solvers/kamino/_src/solvers/warmstart.py667 # First sort the keys of cached contacts to facilitate binary searchCOMMENT
MEDIUMnewton/_src/solvers/kamino/_src/solvers/warmstart.py727 # 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.py489 # TODO: Since the lever-arm is a relative position, can we just use B_r_Bj and F_r_Fj instead?COMMENT
LOWnewton/_src/solvers/kamino/_src/kinematics/jacobians.py578 # 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.py5075 # this robust for models assembled without the standard custom-attribute pipeline.COMMENT
MEDIUMnewton/_src/solvers/featherstone/solver_featherstone.py362 # allocate mass, Jacobian matrices, and other auxiliary variables pertaining to the modelCOMMENT
LOWnewton/_src/utils/import_mjcf.py596 # to pad against, so just return the parsed vector as-is.COMMENT
MEDIUMnewton/_src/utils/mesh.py1682 # Side vertices first (contiguous layout for robust indexing).COMMENT
MEDIUMnewton/_src/utils/import_urdf.py35# Optional dependency for robust URI resolutionCOMMENT
MEDIUMnewton/_src/viewer/viewer_usd.py900 # Convert the string to an Sdf.Path object for robust manipulationCOMMENT
LOWnewton/_src/viewer/viewer_rerun.py401 # so we just use the first instance's color for all instancesCOMMENT
MEDIUMnewton/_src/viewer/viewer_rtx.py165 # OVRTX 0.3+ ships with namespaced USD builds that should be safe to use in conjunction withCOMMENT
MEDIUMnewton/_src/geometry/simplex_solver.py383 # 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.py1191 # sphere center inside box (use robust epsilon for numerical stability across platforms)COMMENT
MEDIUMnewton/tests/test_recorder.py450 # This comprehensive list covers all dtypes used in Newton Model/State/Control/ContactsCOMMENT
MEDIUMnewton/tests/test_schema_resolver.py801 # Map joint keys to expected values for more robust testingCOMMENT
MEDIUMnewton/tests/test_import_usd.py971 # Find joints by their keys to make test robust to ordering changesSTRING
MEDIUMnewton/tests/test_joint_limits.py204 # Test robust comparisonsCOMMENT
MEDIUMnewton/examples/contacts/example_brick_stacking.py657 # 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 · 6 pts
SeverityFileLineSnippetContext
LOWnewton/_src/solvers/xpbd/kernels.py1132 # Eq. 2-3 (make sure to project into the frame of the body)COMMENT
LOWnewton/_src/solvers/xpbd/kernels.py2047 # Eq. 2-3 (make sure to project into the frame of the body)COMMENT
LOWnewton/_src/solvers/xpbd/kernels.py2087 # Eq. 2-3 (make sure to project into the frame of the body)COMMENT
LOWnewton/_src/solvers/xpbd/kernels.py2124 # Eq. 2-3 (make sure to project into the frame of the body)COMMENT
LOWnewton/_src/solvers/vbd/particle_vbd_kernels.py2263 # Don't forget to do the final truncation based on the maximum displacement allowance!STRING
Example Usage Blocks3 hits · 4 pts
SeverityFileLineSnippetContext
LOW…n/_src/solvers/kamino/examples/rl/example_rl_drlegs.py18# 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
TODO Padding1 hit · 2 pts
SeverityFileLineSnippetContext
LOWnewton/_src/solvers/kamino/_src/linalg/conjugate.py370 # TODO: consider using a spinlock for fusing kernelsCOMMENT
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippetContext
LOW…olvers/kamino/tests/test_solvers_forward_kinematics.py96 def test_function(model: ModelKamino):CODE