AI Slop Code RIsk Monitor

jax-ml/jax

Composable transformations of Python+NumPy programs: differentiate, vectorize, JIT to GPU/TPU, and more

19.2 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for jax-ml/jax, a Python project with 36,404 GitHub stars. SynthScan examined 727,629 lines of code across 1444 source files, recording 13922 pattern matches distributed across 27 syntactic categories. The legacy adjusted pattern signal is 19.2 (Elevated pattern signal); it is not an authorship estimate.

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

19.2
Adjusted Signal
19.2
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
36.4K
Stars
Python
Language
727.6K
Lines of Code
1.4K
Files
13.9K
Pattern Hits
2026-10-12
Scan Date
0.49
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 49.2/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 17.5/100 · LOW

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

Agent Over-Engineering Ratio 36.3/100 · MEDIUM

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

PR Review Velocity Impact 71.4/100 · HIGH

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

What These Metrics Mean

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

Pattern-Signal History

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

Severity Breakdown

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

CRITICAL 5HIGH 706MEDIUM 362LOW 12849

Directory Score Breakdown

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

Pattern Findings

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

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

Hyper-Verbose Identifiers6707 hits · 5072 pts
SeverityFileLineSnippetContext
LOWci/parse_wheel_metadata.py34def _extract_wheel_package_name(wheel_name: str) -> str | None:CODE
LOWci/parse_wheel_metadata.py52def parse_expected_wheel_versions(wheel_dir: Path) -> dict[str, str]:CODE
LOW⚡tests/random_test.py573 def test_key_construction_with_dtype(self, dtype_spec):CODE
LOW⚡tests/random_test.py577 def test_key_construction_with_both_impl_and_dtype(self):CODE
LOW⚡tests/random_test.py587 def test_wrap_key_data_with_dtype(self, dtype_spec):CODE
LOW⚡tests/random_test.py595 def test_wrap_key_data_with_both_impl_and_dtype(self):CODE
LOW⚡tests/random_test.py1219 def test_key_make_like_other_key_via_dtype(self, prng_name):CODE
LOW⚡tests/random_test.py1227 def test_key_wrap_like_other_key_via_dtype(self, prng_name):CODE
LOW⚡tests/random_test.py1235 def test_key_impl_from_string_error(self):CODE
LOW⚡tests/random_test.py1239 def test_key_impl_from_object_error(self):CODE
LOW⚡tests/random_test.py1246 def test_key_impl_builtin_is_string_name(self, name):CODE
LOWtests/random_test.py199 def test_config_prngs_registered(self):CODE
LOWtests/random_test.py412 def test_threefry_gpu_kernel_lowering(self):CODE
LOWtests/random_test.py449 def test_threefry_split_fold_in_symmetry(self, make_key):CODE
LOWtests/random_test.py462 def test_threefry_split_vmapped_fold_in_symmetry(self, make_key):CODE
LOWtests/random_test.py476 def test_loggamma_nan_corner_case(self):CODE
LOWtests/random_test.py549 def test_default_prng_selection(self, make_key, name, impl):CODE
LOWtests/random_test.py561 def test_key_construction_with_explicit_impl_name(self, make_key, name, impl):CODE
LOWtests/random_test.py613 def test_legacy_prng_key_flag(self):CODE
LOWtests/random_test.py641 def test_seed_no_implicit_transfers(self, make_key):CODE
LOWtests/random_test.py717 def test_construction_upgrade_flag(self):CODE
LOWtests/random_test.py763 def test_key_dtype_attributes(self):CODE
LOWtests/random_test.py818 def test_cpp_dispatch_aot_normal(self):CODE
LOWtests/random_test.py831 def test_cpp_dispatch_aot_split(self):CODE
LOWtests/random_test.py909 def test_eval_shape_keys_in_out(self):CODE
LOWtests/random_test.py967 def test_dynamic_update_slice(self):CODE
LOWtests/random_test.py1057 def test_device_put_replicated(self):CODE
LOWtests/random_test.py1063 def test_make_array_from_callback(self):CODE
LOWtests/random_test.py1075 def test_make_array_from_single_device_arrays(self):CODE
LOWtests/random_test.py1085 def test_key_array_custom_jvp(self):CODE
LOWtests/random_test.py1115 def test_key_array_indexing_nd(self):CODE
LOWtests/random_test.py1140 def test_array_impl_attributes(self):CODE
LOWtests/random_test.py1198 def test_key_make_like_other_key(self, prng_name):CODE
LOWtests/random_test.py1208 def test_key_wrap_like_other_key(self, prng_name):CODE
LOWtests/random_test.py1266 def test_keyarray_custom_vjp_symbolic_zeros(self):CODE
LOWtests/random_test.py1281 def test_keyarray_array_conversion_fails(self):CODE
LOWtests/random_test.py1305def _double_threefry_random_bits(key, bit_width, shape):CODE
LOWtests/random_test.py1569 def test_full_like_with_key_fillvalue(self):CODE
LOWtests/random_test.py1590 def test_full_with_key_fillvalue(self):CODE
LOWtests/overlap_test.py160 def test_unrolled_fsdp_pipeline_grad_explicit_mode_program_order(self, mesh):CODE
LOWtests/overlap_test.py211 def test_unrolled_fsdp_pipeline_grad_program_order_shmap(self, mesh):CODE
LOWtests/overlap_test.py268 def test_unrolled_fsdp_pipeline_grad_program_order_async_decomp(CODE
LOWtests/overlap_test.py353 def test_simple_program_order(self, mesh):CODE
LOWtests/overlap_test.py375 def test_avoid_excess_precision(self):CODE
LOWtests/overlap_test.py391 def test_program_order_exclude_args(self, mesh):CODE
LOWtests/overlap_test.py423 def test_program_order_exclude_argnames_none(self):CODE
LOWtests/overlap_test.py445 def test_program_order_true_false_true_nest(self, mesh):CODE
LOWtests/overlap_test.py485 def test_program_order_per_input_barrier(self, mesh):CODE
LOWtests/overlap_test.py517 def test_program_order_per_input_barrier_jit(self, mesh):CODE
LOWtests/overlap_test.py605 def test_program_order_true_false_true_nest_strict_in_out(self, mesh):CODE
LOWtests/overlap_test.py678 def test_program_order_opt_barrier_dce(self):CODE
LOWtests/overlap_test.py699 def test_program_order_unused_output_dce(self):CODE
LOWtests/overlap_test.py724 def test_program_order_hiprim(self):CODE
LOWtests/overlap_test.py755 def test_program_order_grad_enforce_false_in_true(self):CODE
LOWtests/overlap_test.py774 def test_program_order_dce_preserves_subfunction_deduplication(self):CODE
LOWtests/overlap_test.py804 def test_simple_fsdp_async_overlap_program_order(self, mesh):CODE
LOWtests/overlap_test.py833 def test_async_psum_program_order(self, mesh):CODE
LOWtests/overlap_test.py864 def test_async_psum_scatter_opt_barrier(self, mesh):CODE
LOWtests/overlap_test.py879 def psum_scatter_async_barrier(x, a):CODE
LOWtests/overlap_test.py897 def test_async_all_to_all_opt_barrier(self, mesh):CODE
6647 more matches not shown…
Unused Imports3645 hits · 2572 pts
SeverityFileLineSnippetContext
LOWtests/random_test.py15CODE
LOWtests/xla_transform_test.py17CODE
LOWtests/cloud_tpu_cluster_test.py15CODE
LOWtests/batching_test.py15CODE
LOWtests/debug_info_test.py15CODE
LOWtests/mutable_array_test.py15CODE
LOWtests/lax_numpy_test.py15CODE
LOWtests/shard_map_test.py15CODE
LOWtests/export_harnesses_multi_platform_test.py22CODE
LOWtests/shape_poly_test.py15CODE
LOWtests/lax_vmap_test.py15CODE
LOWtests/lax_numpy_indexing_test.py15CODE
LOWtests/typing_test.py21CODE
LOWtests/array_api_test.py20CODE
LOWtests/state_test.py15CODE
LOWtests/export_test.py14CODE
LOWtests/export_test.py38CODE
LOWtests/export_test.py45CODE
LOWtests/export_test.py51CODE
LOWtests/pmap_test.py15CODE
LOWtests/colocated_python_test.py36CODE
LOWtests/lru_cache_test.py15CODE
LOWtests/compilation_cache_test.py15CODE
LOWtests/hijax_test.py15CODE
LOWtests/export_serialization_back_compat_test.py53CODE
LOWtests/api_test.py15CODE
LOWtests/roofline_test.py14CODE
LOWtests/lax_test.py14CODE
LOWtests/mosaic/gpu_torch_test.py29CODE
LOWtests/mosaic/flash_attention_test.py24CODE
LOWtests/mosaic/gpu_test.py54CODE
LOWtests/multiprocess/colocated_python_test.py24CODE
LOWtests/pallas/tpu_all_gather_test.py16CODE
LOWtests/pallas/tpu_splash_attention_mask_test.py15CODE
LOWtests/pallas/tpu_pallas_pipeline_test.py16CODE
LOWtests/pallas/tpu_pallas_random_test.py28CODE
LOWtests/pallas/indexing_test.py15CODE
LOWtests/pallas/tpu_splash_attention_kernel_test.py15CODE
LOWtests/pallas/pallas_test.py14CODE
LOWdocs/parallel.py63CODE
LOWdocs/autodidax.py2153CODE
LOWjaxlib/xla_client.py17CODE
LOWjaxlib/init.py15CODE
LOWjaxlib/mosaic/gpu/wheel/__init__.py17CODE
LOWjaxlib/mosaic/python/tpu.py20CODE
LOWjaxlib/mosaic/python/tpu.py22CODE
LOWjaxlib/mosaic/python/tpu.py24CODE
LOWjaxlib/mosaic/python/mosaic_gpu.py23CODE
LOWjaxlib/mosaic/python/mosaic_gpu.py25CODE
LOWjaxlib/mosaic/python/mosaic_gpu.py26CODE
LOWjaxlib/tools/build_utils.py17CODE
LOWjaxlib/triton/dialect.py19CODE
LOWjaxlib/triton/dialect.py23CODE
LOWjaxlib/triton/dialect.py23CODE
LOWjaxlib/triton/dialect.py30CODE
LOWjaxlib/triton/dialect.py31CODE
LOWjaxlib/thunky/python/thunky.py19CODE
LOWjaxlib/thunky/python/thunky.py20CODE
LOWjaxlib/thunky/python/thunky.py21CODE
LOWbenchmarks/pallas/mgpu_planar_snake_bench.py23CODE
3585 more matches not shown…
Docstring Block Structure572 hits · 2328 pts
SeverityFileLineSnippetContext
HIGHjax/experimental/multihost_utils.py549A context manager for atomically running code on the set of live devices. THIS API IS UNDER ACTIVE DEVELOPMENT AND ISSTRING
HIGHjax/experimental/mosaic/gpu/profiler.py138Measures the GPU runtime of a function using CUPTI. ``measure`` is a higher-order function that wraps a function ``f`STRING
HIGH…ops/tpu/splash_attention/splash_attention_mask_info.py84Downcast numpy array. If possible, downcast the data-type of the input array to the smallest numpy type (among np.iSTRING
HIGH…ops/tpu/splash_attention/splash_attention_mask_info.py326Similar to `_process_mask` but the mask must be a dynamic array. Since the mask is dynamic, we can't know the exact nSTRING
HIGH…ops/tpu/splash_attention/splash_attention_mask_info.py528Transform a dense mask into a sparse representation. The number of head and Q sequence shards are needed to create a STRING
HIGH…llas/ops/tpu/splash_attention/splash_attention_mask.py97Makes a chunked causal attention mask. Args: shape: The desired shape of the mask (q_seq_len, kv_seq_len). chSTRING
HIGHjax/experimental/sparse/linalg.py43Compute the top-k standard eigenvalues using the LOBPCG routine. LOBPCG [1] stands for Locally Optimal Block PrecondiSTRING
HIGHjax/experimental/sparse/bcoo.py2437Experimental batched COO matrix implemented in JAX Args: (data, indices) : data and indices in batched COO formatSTRING
HIGHjax/_src/callback.py275Calls a pure Python callback. Works under :func:`jit`/:func:`~vmap`/etc. For more explanation, see `External CallbackSTRING
HIGHjax/_src/tree.py26Call all() over the leaves of a tree. Args: tree: the pytree to evaluate is_leaf : an optionally specified fuSTRING
HIGHjax/_src/tree.py55Flattens a pytree. The flattening order (i.e. the order of elements in the output list) is deterministic, corresponSTRING
HIGHjax/_src/tree.py91Gets the leaves of a pytree. Args: tree: the pytree for which to get the leaves is_leaf : an optionally speciSTRING
HIGHjax/_src/tree.py120Maps a multi-input function over pytree args to produce a new pytree. Args: f: function that takes ``1 + len(restSTRING
HIGHjax/_src/tree.py163Call reduce() over the leaves of a tree. Args: function: the reduction function tree: the pytree to reduce ovSTRING
HIGHjax/_src/tree.py203Perform a reduction over a pytree with an associative binary operation. This function exploits the fact that the operSTRING
HIGHjax/_src/tree.py245Gets the treedef for a pytree. Args: tree: the pytree for which to get the leaves is_leaf : an optionally speSTRING
HIGHjax/_src/tree.py273Transform a tree having tree structure (outer, inner) into one having structure (inner, outer). Args: outer_treedSTRING
HIGHjax/_src/tree.py303Reconstructs a pytree from the treedef and the leaves. The inverse of :func:`tree_flatten`. Args: treedef: theSTRING
HIGHjax/_src/tree.py335Flattens a pytree like ``tree_flatten``, but also returns each leaf's key path. Args: tree: a pytree to flatten. STRING
HIGHjax/_src/tree.py366Gets the leaves of a pytree like ``tree_leaves`` and returns each leaf's key path. Args: tree: a pytree. If it coSTRING
HIGHjax/_src/tree.py395Maps a multi-input function over pytree key path and args to produce a new pytree. This is a more powerful alternativSTRING
HIGHjax/_src/tree.py433Broadcasts a tree prefix into the full structure of a given tree. Args: prefix_tree: a pytree that is a tree STRING
HIGHjax/_src/xla_bridge.py317Creates a CPU client with the requested collectives implementation. The implementation of CPU collectives used by theSTRING
HIGHjax/_src/config.py352Set up thread-local state and return a contextmanager for managing it. This function is a convenience wrapper. It defSTRING
HIGHjax/_src/core.py3025Invalidate a given reference and return its final value. For more information about mutable array references, refer tSTRING
HIGHjax/_src/dtypes.py881Returns the type to which a binary operation should cast its arguments. JAX implementation of :func:`numpy.promote_tySTRING
HIGHjax/_src/dtypes.py1133Check if a dtype/value is safe to cast to another dtype/value Args: input_dtype_or_value: a dtype or value (to beSTRING
HIGHjax/_src/api.py220Sets up ``fun`` for just-in-time compilation with XLA. Args: fun: Function to be jitted. ``fun`` should be a pureSTRING
HIGHjax/_src/api.py2432Transfer array shards to specified devices and form Array(s). Args: shards: A sequence of arrays, scalars, or (neSTRING
HIGHjax/_src/api.py2512Transfer array(s) to each specified device and form Array(s). Args: x: an array, scalar, or (nested) standard PytSTRING
HIGHjax/_src/api.py2581Transfer ``x`` to host. If ``x`` is a pytree, then the individual buffers are copied in parallel. Args: x: An STRING
HIGHjax/_src/api.py2726A context manager that adds a user specified name to the JAX name stack. When staging out computations for just-in-tiSTRING
HIGHjax/_src/distributed.py277Initializes the JAX distributed system. Calling :func:`~jax.distributed.initialize` prepares JAX for execution on mSTRING
HIGHjax/_src/sharding_impls.py654Computes the global shape given the per process if possible. The returned shape will have the size of the global tensSTRING
HIGHjax/_src/tree_util.py127Makes a tuple treedef from an iterable of child treedefs. Args: treedefs: iterable of PyTree structures ReturnSTRING
HIGHjax/_src/tree_util.py153Return a list of treedefs for immediate children Args: treedef: a single PyTreeDef Returns: a list of PyTrSTRING
HIGHjax/_src/tree_util.py178Return True if the treedef represents a leaf. Args: treedef: tree to check Returns: True if treedef is a lSTRING
HIGHjax/_src/tree_util.py206Tests whether all elements in the given iterable are all leaves. This function is useful in advanced cases, for exampSTRING
HIGHjax/_src/tree_util.py354Extends the set of types that are considered internal nodes in pytrees. This function is a thin wrapper around ``regiSTRING
HIGHjax/_src/tree_util.py714Flatten the given pytree node by one level. Args: tree: A valid pytree node, either built-in or registered via STRING
HIGHjax/_src/tree_util.py860Helper to pretty-print a tuple of keys. Args: keys: A tuple of ``KeyEntry`` or any class that can be converted toSTRING
HIGHjax/_src/tree_util.py994Extends the set of types that are considered internal nodes in pytrees. This function is similar to ``register_pytreeSTRING
HIGHjax/_src/tree_util.py1048Extends the set of types that are considered internal nodes in pytrees. This differs from ``register_pytree_with_keysSTRING
HIGHjax/_src/tree_util.py1246Registers `cls` as a pytree with no leaves. Instances are treated as static by :func:`jax.jit`, :func:`jax.pmap`, etcSTRING
HIGHjax/_src/custom_partitioning_sharding_rule.py215Parses the LHS or RHS of an Einsum notation like string. Converts each operand or result in the Einsum notation like STRING
HIGHjax/_src/array.py760Returns a ``jax.Array`` via data fetched from ``data_callback``. ``data_callback`` is used to fetch the data for eachSTRING
HIGHjax/_src/array.py895Creates distributed tensor using the data available in process. This function is a common special case of `make_arraySTRING
HIGHjax/_src/array.py1095Returns a ``jax.Array`` from a sequence of ``jax.Array``\s each on a single device. Every device in input ``shardiSTRING
HIGHjax/_src/profiler.py98Registers a subprocess's profiler server to be profiled alongside the current process. When the current process colleSTRING
HIGHjax/_src/mesh_utils.py822Creates a performant device mesh for jax.sharding.Mesh. Args: mesh_shape: shape of logical mesh, ordered by increSTRING
HIGHjax/_src/mesh_utils.py908Creates a device mesh for hybrid (e.g., ICI and DCN) parallelism. Args: mesh_shape: shape of the logical mesh forSTRING
HIGHjax/_src/pmap.py475Infer axis size from the first mapped argument. shard_map already does a check on all arguments, so just look at firsSTRING
HIGHjax/_src/pmap.py526Extract dynamic args and argnums after handling static args. Args: wrapped_f: The wrapped function. static_brSTRING
HIGHjax/_src/pmap.py564Compute flat in_axes tuple from in_axes prefix and args structure. Args: in_axes: The original in_axes specificatSTRING
HIGHjax/_src/pmap.py671Compute effective mesh devices based on context. Args: devices: The mesh devices tuple. backend: The backend STRING
HIGHjax/_src/custom_derivatives.py158Define a custom JVP rule for the function represented by this instance. Args: jvp: a Python callable represenSTRING
HIGHjax/_src/custom_derivatives.py207Convenience wrapper for defining JVPs for each argument separately. This convenience wrapper cannot be used togetheSTRING
HIGHjax/_src/custom_derivatives.py592Define a custom VJP rule for the function represented by this instance. Args: fwd: a Python callable represenSTRING
HIGHjax/_src/interpreters/mlir.py256Translate a Python ``val`` to an IR constant. See https://docs.jax.dev/en/latest/internals/constants.html. Args: STRING
HIGHjax/_src/interpreters/mlir.py288Translate a Python ``val`` to a sequence of IR constants. See https://docs.jax.dev/en/latest/internals/constants.htmlSTRING
512 more matches not shown…
Over-Commented Block1538 hits · 1448 pts
SeverityFileLineSnippetContext
LOWconftest.py1# Copyright 2021 The JAX Authors.COMMENT
LOWconftest.py41# The pytest_collection hook can be used to overwrite the collection logic, butCOMMENT
LOWsetup.py1# Copyright 2018 The JAX Authors.COMMENT
LOWbuild_wheel.py1# Copyright 2025 The JAX Authors.COMMENT
LOWci/run_pytest_tpu.sh1#!/bin/bashCOMMENT
LOWci/run_pytest_rocm.sh1#!/bin/bashCOMMENT
LOWci/run_pytest_rocm.sh21#COMMENT
LOWci/run_bazel_test_cuda_non_rbe.sh1#!/bin/bashCOMMENT
LOWci/run_pytest_oneapi.sh1#!/bin/bashCOMMENT
LOWci/run_bazel_cuda_targeted_tests.sh1#!/bin/bashCOMMENT
LOWci/run_bazel_cuda_targeted_tests.sh21# JAXCI_BAZEL_TARGETS: newline-separated Bazel targets.COMMENT
LOWci/run_bazel_test_rocm_rbe.sh1#!/bin/bashCOMMENT
LOWci/build_artifacts.sh1#!/bin/bashCOMMENT
LOWci/build_rocm_artifacts.sh1#!/bin/bashCOMMENT
LOWci/run_bazel_test_cpu_rbe.sh1#!/bin/bashCOMMENT
LOWci/upload_rocm_logs.sh1#!/bin/bashCOMMENT
LOWci/run_bazel_test_cuda_rbe.sh1#!/bin/bashCOMMENT
LOWci/run_pytest_cuda.sh1#!/bin/bashCOMMENT
LOWci/build_oneapi_artifacts.sh1#!/bin/bashCOMMENT
LOWci/parse_wheel_metadata.py1# Copyright 2026 The JAX Authors.COMMENT
LOWci/run_bazel_test_tpu.sh1#!/bin/bashCOMMENT
LOWci/run_bazel_test_tpu.sh261 //jaxlib/tools:check_tpu_wheel_sources_test \COMMENT
LOWci/run_pytest_cpu.sh1#!/bin/bashCOMMENT
LOWci/run_pytest_rocm_multi.sh1#!/bin/bashCOMMENT
LOWci/run_bazel_test_oneapi.sh1#!/bin/bashCOMMENT
LOWci/run_bazel_test_oneapi.sh21# -e: abort script if one command failsCOMMENT
LOWci/utilities/install_wheels_locally.sh1#!/bin/bashCOMMENT
LOWci/utilities/rocm_test_env.sh1#!/bin/bashCOMMENT
LOWci/utilities/report_resultstore_link.py1# Copyright 2026 The JAX Authors.COMMENT
LOWci/utilities/run_docker_container.sh1#!/bin/bashCOMMENT
LOWci/utilities/run_docker_container.sh21# Note: While GitHub action workflows use the same Docker images, they do notCOMMENT
LOWci/utilities/convert_msys_paths_to_win_paths.py1# Copyright 2024 The JAX Authors.COMMENT
LOWci/utilities/set_artifact_tag_flags.sh1#!/bin/bashCOMMENT
LOWci/utilities/collect_bazel_test_xmls.sh1#!/bin/bashCOMMENT
LOWci/utilities/collect_bazel_test_xmls.sh21# bazel-testlogs/tests/cpu_tests/test.xml). Pytest, by contrast, writes aCOMMENT
LOWci/utilities/setup_build_environment.sh1#!/bin/bashCOMMENT
LOWci/utilities/run_auditwheel.sh1#!/bin/bashCOMMENT
LOWci/utilities/generate_invocation_id.py1# Copyright 2026 The JAX Authors.COMMENT
LOWci/utilities/setup_portserver.sh1#!/bin/bashCOMMENT
LOWci/utilities/prepare_rocm_tests.sh1#!/bin/bashCOMMENT
LOWci/postprocess/process_test_results.sh1#!/bin/bashCOMMENT
LOWci/postprocess/xml2json.py1# Copyright 2026 The JAX Authors.COMMENT
LOWtests/random_test.py1# Copyright 2018 The JAX Authors.COMMENT
LOWtests/random_test.py641 def test_seed_no_implicit_transfers(self, make_key):COMMENT
LOWtests/overlap_test.py1# Copyright 2026 The JAX Authors.COMMENT
LOWtests/extend_test.py1# Copyright 2023 The JAX Authors.COMMENT
LOWtests/svd_test.py1# Copyright 2022 The JAX Authors.COMMENT
LOWtests/scipy_spatial_test.py1# Copyright 2023 The JAX Authors.COMMENT
LOWtests/scheduling_groups_test.py1# Copyright 2025 The JAX Authors.COMMENT
LOWtests/jax_to_ir_test.py1# Copyright 2019 The JAX Authors.COMMENT
LOWtests/ragged_collective_test.py1# Copyright 2025 The JAX Authors.COMMENT
LOWtests/pytorch_interoperability_test.py1# Copyright 2020 The JAX Authors.COMMENT
LOWtests/fft_test.py1# Copyright 2019 The JAX Authors.COMMENT
LOWtests/export_back_compat_test.py1# Copyright 2023 The JAX Authors.COMMENT
LOWtests/export_back_compat_test.py1041 # stablehlo.dynamic_rbg_bit_generator is used temporarily for aCOMMENT
LOWtests/mesh_utils_test.py1# Copyright 2021 The JAX Authors. All Rights Reserved.COMMENT
LOWtests/lax_vmap_op_test.py1# Copyright 2020 The JAX Authors.COMMENT
LOWtests/debug_nans_test.py1# Copyright 2019 The JAX Authors.COMMENT
LOWtests/lobpcg_test.py1# Copyright 2022 The JAX Authors.COMMENT
LOWtests/heap_profiler_test.py1# Copyright 2021 The JAX Authors.COMMENT
1478 more matches not shown…
Decorative Section Separators180 hits · 564 pts
SeverityFileLineSnippetContext
MEDIUMci/run_pytest_tpu.sh15# ==============================================================================COMMENT
MEDIUMci/run_pytest_rocm.sh15# ==============================================================================COMMENT
MEDIUMci/run_pytest_rocm.sh31# ==============================================================================COMMENT
MEDIUMci/run_pytest_rocm.sh33# ==============================================================================COMMENT
MEDIUMci/run_bazel_test_cuda_non_rbe.sh15# ==============================================================================COMMENT
MEDIUMci/run_pytest_oneapi.sh15# ==============================================================================COMMENT
MEDIUMci/run_pytest_oneapi.sh70# ==============================================================================COMMENT
MEDIUMci/run_pytest_oneapi.sh72# ==============================================================================COMMENT
MEDIUMci/run_pytest_oneapi.sh84# ==============================================================================COMMENT
MEDIUMci/run_pytest_oneapi.sh87# ==============================================================================COMMENT
MEDIUMci/run_pytest_oneapi.sh146# ==============================================================================COMMENT
MEDIUMci/run_pytest_oneapi.sh148# ==============================================================================COMMENT
MEDIUMci/run_bazel_cuda_targeted_tests.sh15# ==============================================================================COMMENT
MEDIUMci/run_bazel_test_rocm_rbe.sh15# ==============================================================================COMMENT
MEDIUMci/build_artifacts.sh15# ==============================================================================COMMENT
MEDIUMci/build_rocm_artifacts.sh15# ==============================================================================COMMENT
MEDIUMci/run_bazel_test_cpu_rbe.sh15# ==============================================================================COMMENT
MEDIUMci/upload_rocm_logs.sh15# ==============================================================================COMMENT
MEDIUMci/run_bazel_test_cuda_rbe.sh15# ==============================================================================COMMENT
MEDIUMci/run_pytest_cuda.sh15# ==============================================================================COMMENT
MEDIUM⚡ci/run_pytest_cuda.sh45# ==============================================================================COMMENT
MEDIUM⚡ci/run_pytest_cuda.sh47# ==============================================================================COMMENT
MEDIUM⚡ci/run_pytest_cuda.sh54# ==============================================================================COMMENT
MEDIUM⚡ci/run_pytest_cuda.sh57# ==============================================================================COMMENT
MEDIUMci/run_pytest_cuda.sh107# ==============================================================================COMMENT
MEDIUMci/run_pytest_cuda.sh109# ==============================================================================COMMENT
MEDIUMci/build_oneapi_artifacts.sh15# ==============================================================================COMMENT
MEDIUMci/run_bazel_test_tpu.sh15# ==============================================================================COMMENT
MEDIUMci/run_pytest_cpu.sh15# ==============================================================================COMMENT
MEDIUMci/run_pytest_rocm_multi.sh15# ==============================================================================COMMENT
MEDIUMci/run_bazel_test_oneapi.sh15# ==============================================================================COMMENT
MEDIUM⚡ci/run_bazel_test_oneapi.sh38# ==============================================================================COMMENT
MEDIUM⚡ci/run_bazel_test_oneapi.sh40# ==============================================================================COMMENT
MEDIUM⚡ci/run_bazel_test_oneapi.sh50# ==============================================================================COMMENT
MEDIUM⚡ci/run_bazel_test_oneapi.sh52# ==============================================================================COMMENT
MEDIUMci/utilities/install_wheels_locally.sh15# ==============================================================================COMMENT
MEDIUM⚡ci/utilities/rocm_test_env.sh15# ==============================================================================COMMENT
MEDIUM⚡ci/utilities/rocm_test_env.sh22# ==============================================================================COMMENT
MEDIUM⚡ci/utilities/rocm_test_env.sh24# ==============================================================================COMMENT
MEDIUM⚡ci/utilities/rocm_test_env.sh31# ==============================================================================COMMENT
MEDIUM⚡ci/utilities/rocm_test_env.sh33# ==============================================================================COMMENT
MEDIUMci/utilities/report_resultstore_link.py14# ==============================================================================COMMENT
MEDIUM⚡ci/utilities/run_docker_container.sh15# ==============================================================================COMMENT
MEDIUMci/utilities/convert_msys_paths_to_win_paths.py14# ==============================================================================COMMENT
MEDIUMci/utilities/set_artifact_tag_flags.sh15# ==============================================================================COMMENT
MEDIUMci/utilities/collect_bazel_test_xmls.sh15# ==============================================================================COMMENT
MEDIUMci/utilities/setup_build_environment.sh15# ==============================================================================COMMENT
MEDIUMci/utilities/run_auditwheel.sh15# ==============================================================================COMMENT
MEDIUMci/utilities/generate_invocation_id.py14# ==============================================================================COMMENT
MEDIUMci/utilities/setup_portserver.sh15# ==============================================================================COMMENT
MEDIUMci/utilities/prepare_rocm_tests.sh15# ==============================================================================COMMENT
MEDIUMci/postprocess/process_test_results.sh15# ==============================================================================COMMENT
MEDIUMtests/mesh_utils_test.py14# ==============================================================================COMMENT
MEDIUM⚡tests/hijax_test.py3095 # ------------STRING
MEDIUM⚡tests/hijax_test.py3097 # ------------STRING
MEDIUM⚡tests/hijax_test.py3132 #------------STRING
MEDIUM⚡tests/hijax_test.py3134 #------------STRING
MEDIUMtests/mosaic/gpu_constraints_test.py14# ==============================================================================COMMENT
MEDIUMtests/mosaic/gpu_torch_distributed_test.py14# ==============================================================================COMMENT
MEDIUMtests/mosaic/gpu_dialect_test.py14# ==============================================================================COMMENT
120 more matches not shown…
Deep Nesting510 hits · 394 pts
SeverityFileLineSnippetContext
LOWconftest.py55CODE
LOWci/postprocess/xml2json.py70CODE
LOWtests/random_test.py694CODE
LOWtests/export_back_compat_test.py557CODE
LOWtests/lax_control_flow_test.py2379CODE
LOWtests/xla_transform_test.py366CODE
LOWtests/errors_test.py46CODE
LOWtests/ffi_test.py45CODE
LOWtests/ffi_test.py161CODE
LOWtests/lax_numpy_einsum_test.py295CODE
LOWtests/debug_info_test.py119CODE
LOWtests/api_util_test.py31CODE
LOWtests/dtypes_test.py492CODE
LOWtests/fused_attention_stablehlo_test.py126CODE
LOWtests/fused_attention_stablehlo_test.py851CODE
LOWtests/lax_numpy_test.py2716CODE
LOWtests/lax_numpy_test.py7275CODE
LOWtests/lax_numpy_reducers_test.py237CODE
LOWtests/linalg_test.py723CODE
LOWtests/linalg_test.py1973CODE
LOWtests/linalg_test.py2075CODE
LOWtests/linalg_test.py1976CODE
LOWtests/linalg_test.py2083CODE
LOWtests/profiler_test.py54CODE
LOWtests/profiler_test.py132CODE
LOWtests/lax_numpy_indexing_test.py1556CODE
LOWtests/pgle_test.py135CODE
LOWtests/pgle_test.py221CODE
LOWtests/pgle_test.py367CODE
LOWtests/fused_attention_stablehlo_multigpu_test.py128CODE
LOWtests/sparse_bcoo_bcsr_test.py57CODE
LOWtests/sparse_bcoo_bcsr_test.py101CODE
LOWtests/device_test.py24CODE
LOWtests/device_test.py46CODE
LOWtests/compilation_cache_test.py577CODE
LOWtests/array_test.py799CODE
LOWtests/hijax_test.py2084CODE
LOWtests/hijax_test.py2557CODE
LOWtests/transfer_guard_test.py189CODE
LOWtests/transfer_guard_test.py200CODE
LOWtests/api_test.py5456CODE
LOWtests/api_test.py5949CODE
LOWtests/api_test.py5957CODE
LOWtests/documentation_coverage_test.py142CODE
LOWtests/sparse_test.py990CODE
LOWtests/lax_test.py118CODE
LOWtests/lax_test.py1698CODE
LOWtests/lax_test.py4811CODE
LOWtests/mosaic/gpu_test.py683CODE
LOWtests/mosaic/gpu_test.py1171CODE
LOWtests/mosaic/gpu_test.py6544CODE
LOWtests/mosaic/gpu_test.py7421CODE
LOWtests/mosaic/gpu_test.py8671CODE
LOWtests/multiprocess/thread_guard_test.py42CODE
LOWtests/multiprocess/pgle_test.py44CODE
LOWtests/numerics/numerics_test_util.py114CODE
LOWtests/numerics/numerics_test_util.py679CODE
LOWtests/numerics/numerics_test_util.py984CODE
LOWtests/numerics/numerics_test_util.py1138CODE
LOWtests/numerics/numerics_test_util.py1310CODE
450 more matches not shown…
Empty Error Handlers72 hits · 342 pts
SeverityFileLineSnippetContext
HIGHtests/debug_nans_test.py277except FloatingPointError:CODE
HIGHtests/errors_test.py440except ValueError:CODE
HIGHtests/lax_numpy_test.py7244except TypeError:CODE
HIGHtests/core_test.py169except (TypeError, ValueError):CODE
HIGHtests/python_callback_test.py943except:CODE
HIGHtests/python_callback_test.py596except RuntimeError:CODE
HIGHtests/linalg_test.py77except np.linalg.LinAlgError:CODE
HIGHtests/profiler_session_test.py40except RuntimeError:CODE
HIGH…as/gpu_pallas_interpret_tcgen05_race_detection_test.py68except:CODE
HIGHtests/pallas/tpu_pallas_interpret_test.py133except:CODE
HIGH…sts/pallas/gpu_pallas_interpret_race_detection_test.py61except:CODE
HIGH…ts/pallas/gpu_pallas_interpret_cluster_barrier_test.py53except:CODE
HIGHtests/pallas/tpu_pallas_interpret_distributed_test.py73except:CODE
HIGHtests/pallas/gpu_pallas_interpret_test.py60except:CODE
HIGHtests/pallas/ops_test.py108except (FileNotFoundError, subprocess.TimeoutExpired, OSError):CODE
HIGHjax/experimental/mosaic/gpu/fragmented_array.py4451except TxMatrixIneligible:CODE
HIGHjax/experimental/mosaic/gpu/fragmented_array.py4553except TxMatrixIneligible:CODE
HIGHjax/experimental/mosaic/gpu/core.py100except ImportError:CODE
HIGHjax/experimental/mosaic/gpu/core.py1242except FileExistsError:CODE
HIGHjax/experimental/mosaic/gpu/layout_inference.py2570except Exception:CODE
HIGHjax/experimental/jax2tf/jax2tf.py709except TypeError:CODE
HIGHjax/experimental/colocated_python/func.py670except KeyError:CODE
HIGHjax/experimental/colocated_python/func.py704except AttributeError:CODE
HIGHjax/tools/evaluate_sampler_bias.py74except ValueError:CODE
HIGHjax/tools/evaluate_sampler_bias.py78except ValueError:CODE
HIGHjax/_src/lru_cache.py27except ImportError:CODE
HIGHjax/_src/config.py2176except KeyError:CODE
HIGHjax/_src/util.py515except Exception:CODE
HIGHjax/_src/core.py2139except TypeError:CODE
HIGHjax/_src/core.py1702except IndexError:CODE
HIGHjax/_src/core.py3645except: passCODE
HIGHjax/_src/tpu_info.py641except (ValueError, RuntimeError):CODE
HIGHjax/_src/dtypes.py44except:CODE
HIGHjax/_src/test_util.py647except RuntimeError:CODE
HIGHjax/_src/api.py2868except Exception:CODE
HIGHjax/_src/pretty_printer.py57except NameError:CODE
HIGHjax/_src/ad_checkpoint.py653except:CODE
HIGHjax/_src/profiler.py202except RuntimeError:CODE
HIGHjax/_src/api_util.py430except ValueError:CODE
HIGHjax/_src/api_util.py745except (ValueError, TypeError):CODE
HIGHjax/_src/api_util.py460except ValueError: pass # That's not the issue.CODE
HIGHjax/_src/api_util.py402except ValueError:CODE
HIGHjax/_src/interpreters/pxla.py440except AttributeError: pass # TODO(mattjj): remove float0CODE
HIGHjax/_src/lax/lax.py9703except core.InconclusiveDimensionOperation:CODE
HIGHjax/_src/lax/lax.py10413except KeyError:CODE
HIGHjax/_src/lax/lax.py1835except OverflowError:CODE
HIGHjax/_src/lax/slicing.py819except TypeError: # func is not weak referenceableCODE
HIGHjax/_src/lax/linalg.py2497except core.InconclusiveDimensionOperation:CODE
HIGHjax/_src/lax/utils.py286except TypeError:CODE
HIGHjax/_src/lax/utils.py290except AttributeError:CODE
HIGHjax/_src/lax/control_flow/loops.py1700except core.ConcretizationTypeError:CODE
HIGHjax/_src/numpy/lax_numpy.py1996except AttributeError:CODE
HIGHjax/_src/numpy/lax_numpy.py7737except TypeError:CODE
HIGHjax/_src/numpy/lax_numpy.py213except (TypeError, AssertionError): # Unsupported dtypeCODE
HIGHjax/_src/numpy/ufuncs.py2731except TypeError:CODE
HIGHjax/_src/numpy/indexing.py1161except (TypeError, ValueError, IndexError):CODE
HIGHjax/_src/numpy/indexing.py1172except (TypeError, ValueError, IndexError):CODE
HIGHjax/_src/pallas/pallas_call.py866except ImportError:CODE
HIGHjax/_src/pallas/pallas_call.py879except ImportError:CODE
HIGHjax/_src/pallas/mosaic/lowering.py1897except UncacheablePrimitiveError:CODE
12 more matches not shown…
Self-Referential Comments73 hits · 202 pts
SeverityFileLineSnippetContext
MEDIUMci/utilities/run_docker_container.sh50 # Create a temporary file to pass any user defined JAXCI_ / JAX_ / JAXLIB_COMMENT
MEDIUMci/utilities/setup_build_environment.sh105# Create the output directory if it doesn't exist.COMMENT
MEDIUMtests/ragged_collective_test.py769 # Define a mesh with PP + EPCOMMENT
MEDIUMtests/lax_scipy_test.py549 # This function is not defined for negative values, this makes sure they are nanCOMMENT
MEDIUMtests/custom_api_test.py2235 # Create the custom functionCOMMENT
MEDIUM⚡tests/garbage_collection_guard_test.py54 # Create a reference cycle of two jax.Arrays.COMMENT
MEDIUM⚡tests/garbage_collection_guard_test.py67 # Create a reference cycle of two jax.Arrays.COMMENT
MEDIUMtests/layout_test.py365 # Create a custom layout instead of using `arr.layout` to test the API.COMMENT
MEDIUMtests/layout_test.py388 # Create a custom layout instead of using `arr.layout` to test the API.COMMENT
MEDIUMtests/layout_test.py669 # Create a custom layout instead of using `arr.layout` to test the API.COMMENT
MEDIUMtests/layout_test.py701 # Create a custom layout instead of using `arr.layout` to test the API.COMMENT
MEDIUMtests/export_test.py2513 # Create a custom layout instead of using `arr.layout` to test the API.COMMENT
MEDIUMtests/sparse_bcoo_bcsr_test.py1153 # Create a matrix with duplicate indicesCOMMENT
MEDIUMtests/aot_test.py346 # Create a compile-only topology, but DON'T switch to CPU so the realCOMMENT
MEDIUMtests/array_test.py686 # Create a few arraysCOMMENT
MEDIUMtests/hijax_test.py71# Define a typeCOMMENT
MEDIUM⚡tests/api_test.py2095 # Creating an array from per-device JAX arrays calls internalCOMMENT
MEDIUMtests/mosaic/gpu_layout_inference_test.py1678 # Create a var to use in the constraint system.COMMENT
MEDIUMtests/multiprocess/array_test.py613 # Create an array that is non-addressable in processes besides `pid`.COMMENT
MEDIUMtests/multiprocess/array_test.py635 # Create a PRNG key array that is non-addressable in processes besidesCOMMENT
MEDIUMtests/multiprocess/array_test.py669 # Create a sharding that is non-addressable in processes besides `pid`.COMMENT
MEDIUMtests/multiprocess/array_test.py696 # Create a sharding that is non-addressable in processes besides `pid`.COMMENT
MEDIUMtests/multiprocess/array_test.py723 # Create a single device sharding for a device local to process `pid`.COMMENT
MEDIUMtests/pallas/tpu_pallas_interpret_distributed_test.py85 # Create an input array that shards the last dimension acrossCOMMENT
MEDIUMtests/pallas/tpu_pallas_interpret_distributed_test.py162 # Create an input array that shards the first dimension acrossCOMMENT
MEDIUMtests/pallas/mosaic_gpu_test.py9106 # Create an index-invariant output.COMMENT
MEDIUMtests/pallas/pallas_test.py2546 # Create a validity mask for OOB values.COMMENT
MEDIUM⚡docs/sphinxext/jax_list_config_options.py38 # Create a field list itemCOMMENT
MEDIUM⚡docs/sphinxext/jax_list_config_options.py41 # Create the field name (label)COMMENT
MEDIUM⚡docs/sphinxext/jax_list_config_options.py46 # Create the field body (content)COMMENT
MEDIUM⚡docs/sphinxext/jax_list_config_options.py81 # Create a section for this optionCOMMENT
MEDIUM⚡docs/sphinxext/jax_list_config_options.py86 # Create a title with the option name (important for TOC)COMMENT
MEDIUM⚡docs/sphinxext/jax_list_config_options.py92 # Create a field list for side-by-side displayCOMMENT
MEDIUMjaxlib/tools/build_wheel.py226 # This file is required by PEP-561. It marks jaxlib as package containingCOMMENT
MEDIUM.github/workflows/bazel_cuda_b200_mosaic_presubmit.yml87 # Create an array with the file patterns andCOMMENT
MEDIUMjax/version.py15# This file is included as part of both jax and jaxlib. It is alsoCOMMENT
MEDIUM…ops/tpu/splash_attention/splash_attention_mask_info.py587 # Create a collection of the unique head masks in the input multi-head mask.COMMENT
MEDIUM…llas/ops/tpu/splash_attention/splash_attention_mask.py374 # Define the mask function for chunk attentionCOMMENT
MEDIUMjax/experimental/pallas/ops/tpu/megablox/gmm.py180 # Create the group ids for each grid index based on the tile counts for eachCOMMENT
MEDIUMjax/experimental/pallas/ops/tpu/megablox/gmm.py230 # Create the m-dimension tile ids for each grid index based on the visitCOMMENT
MEDIUMjax/experimental/pallas/ops/tpu/megablox/gmm.py383 # Create the metadata we need for computation.COMMENT
MEDIUMjax/experimental/pallas/ops/tpu/megablox/gmm.py632 # Create the metadata we need for computation.COMMENT
MEDIUMjax/experimental/jax2tf/call_tf.py220 # Define the fwd and bwd custom_vjp functionsCOMMENT
MEDIUMjax/experimental/jax2tf/tests/jax2tf_test.py349 x = tf.Variable(4.0, dtype=tf.float32) # Create a Tensorflow variable initialized to 4.0CODE
MEDIUMjax/experimental/jax2tf/examples/mnist_lib.py225 # Create the model and save itCOMMENT
MEDIUMjax/_src/test_util.py2033 # The following function methods operate on mpmath number instances.COMMENT
MEDIUMjax/_src/custom_batching.py182# Define a class, instead of making a function closing over `rule`, soCOMMENT
MEDIUMjax/_src/ad_checkpoint.py400# This function is similar to api_util.argnums_partial, except the errorCOMMENT
MEDIUMjax/_src/ad_checkpoint.py912 >>> # Define a function where we explicitly name an intermediate valueSTRING
MEDIUMjax/_src/ffi.py710 # This method is kept to support the behavior that was previously exposedCOMMENT
MEDIUMjax/_src/interpreters/partial_eval.py2307 # This function is conceptually the same thing as just calling eval_jaxpr,COMMENT
MEDIUMjax/_src/interpreters/mlir.py1465 # Create a keepalives list that will be mutated during the lowering.COMMENT
MEDIUMjax/_src/lax/utils.py15# This module contains utility functions split out of jax._src.lax.lax toCOMMENT
MEDIUMjax/_src/lax/control_flow/loops.py1432 # Create the staged eqn.COMMENT
MEDIUMjax/_src/pallas/mosaic/lowering.py4493 # Create a scalar constant.COMMENT
MEDIUMjax/_src/pallas/mosaic/lowering.py4496 # Create a vector constant.COMMENT
MEDIUMjax/_src/pallas/mosaic_gpu/lowering.py614 # The below code emission relies on the assumption that the first scratchCOMMENT
MEDIUMjax/_src/pallas/mosaic_gpu/interpret/shared_memory.py1113 # This class is a bit messy and needs to use some hard-to-reason about stateCOMMENT
MEDIUMjax/_src/lib/__init__.py15# This module is largely a wrapper around `jaxlib` that performs versionCOMMENT
MEDIUMjax/_src/export/serialization_generated.py109 """This method is deprecated. Please switch to GetRootAs."""STRING
13 more matches not shown…
Cross-File Repetition32 hits · 160 pts
SeverityFileLineSnippetContext
HIGHdocs/401/cute-dsl.md0per-thread kernel: each thread computes relu of one element.STRING
HIGHdocs/401/cute_dsl_jax/cute_dsl_jax_kernels.py0per-thread kernel: each thread computes relu of one element.STRING
HIGHdocs/notebooks/cute_dsl_jax.md0per-thread kernel: each thread computes relu of one element.STRING
HIGHdocs/401/cute-dsl.md0per-thread: out[i] = max(0, x[i] + bias[i % width]).STRING
HIGHdocs/401/cute_dsl_jax/cute_dsl_jax_kernels.py0per-thread: out[i] = max(0, x[i] + bias[i % width]).STRING
HIGHdocs/notebooks/cute_dsl_jax.md0per-thread: out[i] = max(0, x[i] + bias[i % width]).STRING
HIGHdocs/401/cute-dsl.md0tiled gemm: each thread accumulates output elements.STRING
HIGHdocs/401/cute_dsl_jax/cute_dsl_jax_kernels.py0tiled gemm: each thread accumulates output elements.STRING
HIGHdocs/notebooks/cute_dsl_jax.md0tiled gemm: each thread accumulates output elements.STRING
HIGHdocs/401/cute-dsl.md0per-thread kernel: 2-d element-wise add using flat indexing.STRING
HIGHdocs/401/cute_dsl_jax/cute_dsl_jax_kernels.py0per-thread kernel: 2-d element-wise add using flat indexing.STRING
HIGHdocs/notebooks/cute_dsl_jax.md0per-thread kernel: 2-d element-wise add using flat indexing.STRING
HIGHjaxlib/setup.py0this class makes 'bdist_wheel' include an abi tag on the wheel.STRING
HIGHjax_plugins/cuda/plugin_setup.py0this class makes 'bdist_wheel' include an abi tag on the wheel.STRING
HIGHjax_plugins/rocm/plugin_setup.py0this class makes 'bdist_wheel' include an abi tag on the wheel.STRING
HIGHjax_plugins/oneapi/plugin_setup.py0this class makes 'bdist_wheel' include an abi tag on the wheel.STRING
HIGHjaxlib/tools/build_gpu_plugin_wheel.py0[metadata] license_files = license.txt [bdist_wheel] plat_name={tag}STRING
HIGHjaxlib/tools/build_mosaic_wheel.py0[metadata] license_files = license.txt [bdist_wheel] plat_name={tag}STRING
HIGHjaxlib/tools/build_wheel.py0[metadata] license_files = license.txt [bdist_wheel] plat_name={tag}STRING
HIGHjaxlib/tools/build_gpu_kernels_wheel.py0[metadata] license_files = license.txt [bdist_wheel] plat_name={tag}STRING
HIGH…mental/jax2tf/tests/flax_models/transformer_nlp_seq.py0global hyperparameters used to minimize obnoxious kwarg plumbing.STRING
HIGH…erimental/jax2tf/tests/flax_models/transformer_lm1b.py0global hyperparameters used to minimize obnoxious kwarg plumbing.STRING
HIGH…perimental/jax2tf/tests/flax_models/transformer_wmt.py0global hyperparameters used to minimize obnoxious kwarg plumbing.STRING
HIGH…mental/jax2tf/tests/flax_models/transformer_nlp_seq.py0applies addpositionembs module. by default this layer uses a fixed sinusoidal embedding table. if a learned position embSTRING
HIGH…erimental/jax2tf/tests/flax_models/transformer_lm1b.py0applies addpositionembs module. by default this layer uses a fixed sinusoidal embedding table. if a learned position embSTRING
HIGH…perimental/jax2tf/tests/flax_models/transformer_wmt.py0applies addpositionembs module. by default this layer uses a fixed sinusoidal embedding table. if a learned position embSTRING
HIGH…mental/jax2tf/tests/flax_models/transformer_nlp_seq.py0transformer mlp / feed-forward block. args: config: transformerconfig dataclass containing hyperparameters. out_dim: optSTRING
HIGH…perimental/jax2tf/tests/flax_models/transformer_wmt.py0transformer mlp / feed-forward block. args: config: transformerconfig dataclass containing hyperparameters. out_dim: optSTRING
HIGH…erimental/jax2tf/tests/flax_models/transformer_lm1b.py0transformer mlp / feed-forward block. args: config: transformerconfig dataclass containing hyperparameters. out_dim: optSTRING
HIGHjax/_src/pallas/mosaic/interpret/shared_memory.py0synchronizes the vector clocks for the cores on the given device.STRING
HIGH…/_src/pallas/mosaic/interpret/interpret_pallas_call.py0synchronizes the vector clocks for the cores on the given device.STRING
HIGHjax/_src/pallas/mosaic_gpu/interpret/shared_memory.py0synchronizes the vector clocks for the cores on the given device.STRING
AI Structural Patterns176 hits · 141 pts
SeverityFileLineSnippetContext
LOWtests/overlap_test.py143CODE
LOWtests/overlap_test.py201CODE
LOWtests/overlap_test.py250CODE
LOWtests/overlap_test.py336CODE
LOWtests/lax_control_flow_test.py2877CODE
LOWtests/lax_control_flow_test.py2882CODE
LOWtests/xla_transform_test.py277CODE
LOWtests/scaled_matmul_stablehlo_test.py429CODE
LOWtests/mutable_array_test.py526CODE
LOWtests/custom_api_test.py3599CODE
LOWtests/custom_api_test.py1218CODE
LOWtests/custom_api_test.py3202CODE
LOWtests/custom_api_test.py5121CODE
LOWtests/dtypes_test.py795CODE
LOWtests/fused_attention_stablehlo_test.py77CODE
LOWtests/fused_attention_stablehlo_test.py89CODE
LOWtests/fused_attention_stablehlo_test.py126CODE
LOWtests/fused_attention_stablehlo_test.py225CODE
LOWtests/shard_map_test.py509CODE
LOWtests/shard_map_test.py544CODE
LOWtests/shard_map_test.py583CODE
LOWtests/shard_map_test.py624CODE
LOWtests/shard_map_test.py1112CODE
LOWtests/lax_numpy_reducers_test.py352CODE
LOWtests/lax_numpy_reducers_test.py589CODE
LOWtests/shape_poly_test.py1327CODE
LOWtests/nn_test.py64CODE
LOWtests/linalg_test.py991CODE
LOWtests/state_test.py1688CODE
LOWtests/image_test.py74CODE
LOWtests/image_test.py103CODE
LOWtests/memories_test.py1320CODE
LOWtests/export_test.py779CODE
LOWtests/export_test.py782CODE
LOWtests/pmap_test.py1544CODE
LOWtests/pjit_test.py6299CODE
LOWtests/pjit_test.py7947CODE
LOWtests/pjit_test.py8618CODE
LOWtests/pjit_test.py8841CODE
LOWtests/pjit_test.py9041CODE
LOWtests/pjit_test.py9147CODE
LOWtests/colocated_python_test.py583CODE
LOWtests/scipy_ndimage_test.py56CODE
LOWtests/fused_attention_stablehlo_multigpu_test.py79CODE
LOWtests/fused_attention_stablehlo_multigpu_test.py91CODE
LOWtests/fused_attention_stablehlo_multigpu_test.py128CODE
LOWtests/fused_attention_stablehlo_multigpu_test.py227CODE
LOWtests/checkify_test.py1329CODE
LOWtests/numerics/numerics_test_util.py1138CODE
LOWtests/numerics/numerics_test_util.py1450CODE
LOWtests/pallas/tpu_sparsecore_pallas_test.py3838CODE
LOWtests/pallas/tpu_pallas_test.py6849CODE
LOWtests/pallas/tpu_pallas_test.py6891CODE
LOWtests/pallas/gpu_paged_attention_test.py84CODE
LOWtests/pallas/tpu_pallas_async_test.py86CODE
LOWtests/pallas/tpu_pallas_async_test.py139CODE
LOWtests/pallas/tpu_pallas_async_test.py195CODE
LOWtests/pallas/tpu_pallas_async_test.py635CODE
LOWtests/pallas/tpu_pallas_async_test.py757CODE
LOWtests/pallas/tpu_pallas_pipeline_test.py858CODE
116 more matches not shown…
Cross-Language Confusion25 hits · 138 pts
SeverityFileLineSnippetContext
HIGH⚡tests/stack_test.py34 stack = stack.push(jnp.int32(7))CODE
HIGH⚡tests/stack_test.py36 stack = stack.push(jnp.int32(8))CODE
HIGH⚡tests/stack_test.py41 stack = stack.push(jnp.int32(9))CODE
HIGH⚡tests/export_test.py1140 stack.push(self.assertRaisesRegex(Exception, re.escape(expect_error)))CODE
HIGHtests/export_test.py957 stack.push(self.assertRaisesRegex(Exception, expect_error))CODE
HIGHtests/export_test.py1063 stack.push(self.assertRaisesRegex(ValueError, expect_error_outer_exp))CODE
HIGHtests/export_test.py1077 stack.push(self.assertRaisesRegex(Exception, expect_error_run))CODE
HIGHtests/api_test.py2679 # is undefined, even though the transpose is well-defined.COMMENT
HIGHjax/experimental/jax2tf/tests/shape_poly_test.py440 stack.push(self.assertRaisesRegex(Exception, re.escape(expect_error)))CODE
HIGHjax/experimental/colocated_python/func.py363 func_backend.SINGLETON_RESULT_STORE.push(uid, result_leaves)CODE
HIGHjax/_src/jaxpr_util.py648 while ((match = anchorRegex.exec(line)) !== null) {{CODE
HIGHjax/_src/jaxpr_util.py693 const isCurrent = currentMatchIdx !== -1 && lineAbsoluteIdx === matchingLines[currentMatchIdx];CODE
HIGHjax/_src/jaxpr_util.py726 let selectedElement = null;CODE
HIGHjax/_src/jaxpr_util.py734 if (lineIdx !== undefined) {{CODE
HIGH⚡jax/_src/jaxpr_util.py759 while (currentIdx !== null && currentIdx !== undefined) {{CODE
HIGH⚡jax/_src/jaxpr_util.py759 while (currentIdx !== null && currentIdx !== undefined) {{CODE
HIGH⚡jax/_src/jaxpr_util.py764 renderedFrames.push({{file: file, func: func, line: frame.line, col: frame.col}});CODE
HIGHjax/_src/jaxpr_util.py825 matchingLines.push(idx);CODE
HIGHjax/_src/jaxpr_util.py829 matchingLines.push(idx);CODE
HIGHjax/_src/jaxpr_util.py958 if (offsetRight > 100 && offsetRight < document.body.clientWidth - 100) {{CODE
HIGHjax/_src/lax/lax.py9858 b <= a, then the result is undefined, and different implementations maySTRING
HIGHjax/_src/numpy/linalg.py532 discontinuous at det=0 so standard autodiff is undefined; we use sign_dot=0STRING
HIGHjax/_src/tpu/linalg/eigh.py326 agenda = agenda.push(_Subproblem(offset=jnp.array(0, np.int32), size=n))CODE
HIGHjax/_src/tpu/linalg/eigh.py417 agenda.push(_Subproblem(offset, rank)),CODE
HIGHjax/_src/tpu/linalg/eigh.py436 agenda.push(_Subproblem(offset + rank, (b - rank))),CODE
Excessive Try-Catch Wrapping110 hits · 122 pts
SeverityFileLineSnippetContext
MEDIUMci/utilities/convert_msys_paths_to_win_paths.py40 print("Error: cygpath not found. Make sure it's in your PATH.")CODE
MEDIUMci/utilities/convert_msys_paths_to_win_paths.py43 print(f"Error converting path: {e}")CODE
LOWci/postprocess/xml2json.py87 except Exception as e:CODE
LOWtests/array_interoperability_test.py181 except Exception as e:CODE
LOWtests/debug_info_test.py111 except Exception as e:CODE
LOWtests/shape_poly_test.py2089 except Exception:CODE
LOWtests/profiler_test.py63 except Exception as e:CODE
LOWtests/transfer_guard_test.py116 except Exception as e:CODE
LOWtests/transfer_guard_test.py135 except Exception as e:CODE
LOW⚡tests/transfer_guard_test.py251 except Exception as e:CODE
LOW⚡tests/transfer_guard_test.py259 except Exception as e:CODE
MEDIUMtests/transfer_guard_test.py246def config_writer():CODE
MEDIUMtests/transfer_guard_test.py254def reader():CODE
LOWtests/api_test.py5537 except Exception as e:CODE
LOWtests/pallas/tpu_ops_test.py2048 except Exception:CODE
LOWtests/pallas/gpu_pallas_distributed_test.py877 except Exception:CODE
LOWtests/pallas/gpu_pallas_distributed_test.py931 except Exception:CODE
LOWtests/pallas/gpu_pallas_distributed_test.py1660 except Exception:CODE
LOWtests/pallas/ops_test.py777 except Exception as e:CODE
LOWtests/pallas/ops_test.py905 except Exception as e:CODE
LOWtests/pallas/ops_test.py2959 except Exception as e:CODE
LOWtests/thunky/collective_matmul_test.py493 except Exception as e:CODE
LOWdocs/array_refs.py84except Exception as e:CODE
LOW⚡docs/array_refs.py225except Exception as e:CODE
LOW⚡docs/array_refs.py234except Exception as e:CODE
LOW⚡docs/array_refs.py243except Exception as e:CODE
LOW⚡docs/array_refs.py252except Exception as e:CODE
LOWdocs/array_refs.py292except Exception as e:CODE
LOWdocs/array_refs.py416except Exception as e:CODE
LOWdocs/conf.py114 except Exception as e:CODE
LOWdocs/parallel.md427except Exception as e:CODE
LOWdocs/parallel.md466except Exception as e:CODE
LOWdocs/array_refs.md89except Exception as e:CODE
LOW⚡docs/array_refs.md225except Exception as e:CODE
LOW⚡docs/array_refs.md234except Exception as e:CODE
LOW⚡docs/array_refs.md243except Exception as e:CODE
LOW⚡docs/array_refs.md252except Exception as e:CODE
LOWdocs/array_refs.md291except Exception as e:CODE
LOWdocs/array_refs.md408except Exception as e:CODE
LOWdocs/parallel.py381except Exception as e:CODE
LOWdocs/parallel.py419except Exception as e:CODE
LOWdocs/301/refs.md144except Exception as e:CODE
LOWdocs/sphinxext/source_include.py72 except Exception as e:CODE
MEDIUMdocs/sphinxext/source_include.py40def get_tagged_block(filepath, tag, lines_spec=None):CODE
LOW…atic/fault_tolerance/data_parallelism_with_recovery.py171 except Exception as e:CODE
LOWdocs/_static/fault_tolerance/live_devices.py56 except Exception as e:CODE
LOWdocs/_static/fault_tolerance/data_parallelism.py118 except Exception as e:CODE
MEDIUMdocs/pallas/tpu/sparse.md148print("Error |result - lax.dynamic_slice| =", diff)CODE
LOWdocs/201/shard-map.md439except Exception as e:CODE
LOWdocs/201/shard-map.md513except Exception as e:CODE
LOWdocs/201/sharding.md411except Exception as e:CODE
LOWdocs/201/sharding.md453except Exception as e:CODE
LOWbenchmarks/pallas/mgpu_planar_snake_bench.py75 except Exception as e:CODE
LOWjax/__init__.py28except Exception as exc:CODE
LOWjax/experimental/multihost_utils.py679 except Exception as e:CODE
LOW⚡jax/experimental/mosaic/gpu/layout_inference.py2570 except Exception:CODE
LOWjax/experimental/array_serialization/serialization.py238 except Exception as e:CODE
MEDIUMjax/experimental/array_serialization/serialization.py197def _thread_func(self):CODE
LOWjax/experimental/jax2tf/call_tf.py295 except Exception as e:CODE
LOWjax/experimental/jax2tf/call_tf.py592 except Exception as e:CODE
50 more matches not shown…
AI Slop Vocabulary47 hits · 114 pts
SeverityFileLineSnippetContext
MEDIUM⚡ci/utilities/run_docker_container.sh22# run this script as they leverage built-in containerization features to runCOMMENT
MEDIUMtests/export_back_compat_test.py264 # Compute the inputs to simplify the harnessCOMMENT
MEDIUMtests/lax_numpy_operators_test.py295 # probably add a custom test harness for unwrap that tests the periodCOMMENT
LOWtests/custom_api_test.py383 # useful either: instead of using nondiff_argnums here, a user can just passCOMMENT
MEDIUMtests/lax_numpy_test.py3562 # permissive canonicalization logic in the test harness.COMMENT
MEDIUMtests/export_harnesses_multi_platform_test.py60 # If you want to run this test for only one harness, add parameterCOMMENT
MEDIUMtests/shape_poly_test.py3724 # Pick the dtype with the most harnesses in this group. Some harnessCOMMENT
MEDIUMtests/shape_poly_test.py3796 # If you want to run this test for only one harness that includes "foo"COMMENT
MEDIUMtests/shape_poly_test.py3853 # Update this here rather than in harness object because vmap_random_gamma is derivedCOMMENT
LOWtests/shape_poly_test.py1910 # It is not sufficient to just use the shape of an input; it is still unusedCOMMENT
MEDIUMtests/linalg_test.py948 # This expresses identity function, which makes us robust to, e.g., theCOMMENT
MEDIUMtests/lax_autodiff_test.py163 # TODO(mattjj): make some-equal checks more robust, enable second-orderCOMMENT
MEDIUMtests/sparsify_test.py341 # Note: more comprehensive tests in sparse_test.py:test_bcoo_squeezeCOMMENT
MEDIUMtests/sparsify_test.py354 # Note: more comprehensive tests in sparse_test.py:test_bcoo_revCOMMENT
MEDIUMtests/sparsify_test.py419 # Note: more comprehensive tests in sparse_test.py:test_bcoo_conv_general_dilatedCOMMENT
LOWtests/api_test.py457 # We can't just use `lambda x: x` because JAX simplifies this away to anCOMMENT
LOWtests/mosaic/gpu_layout_inference_test.py99 # TMEM reference, so we can just return a trivial mapping.COMMENT
LOWdocs/array_refs.py117# `jax.ref.swap`, but usually you'd just use NumPy-style array indexing syntax:COMMENT
LOWdocs/hijax_custom_derivatives.py1080# that a primitive with a `jvp` rule can just set `lin, linearized =COMMENT
LOWdocs/autodidax.py1475# call `bind`, in the primitive wrapper we can just use `make_jaxpr` to formCOMMENT
MEDIUM…ops/tpu/splash_attention/splash_attention_mask_info.py892 # maintain the SPMD paradigm.COMMENT
MEDIUM…erimental/jax2tf/tests/jax_primitives_coverage_test.py50 # If you want to run this test for only one harness, add parameterCOMMENT
MEDIUM…erimental/jax2tf/tests/jax_primitives_coverage_test.py90 # f"{[u.description for u in jax_unimpl]} in harness: {harness.fullname}"))COMMENT
MEDIUMjax/experimental/jax2tf/tests/shape_poly_test.py223 # Makes and tests a harness. See PolyHarness documentation.COMMENT
LOWjax/experimental/jax2tf/tests/shape_poly_test.py587 # It is not sufficient to just use the shape of an input; it is still unusedCOMMENT
MEDIUMjax/experimental/jax2tf/tests/model_harness.py77 """Partially apply harness in order to create variables lazily.STRING
MEDIUMjax/experimental/jax2tf/tests/tf_test_util.py221 # Run JAX. Should not fail, we assume that the harness has been filteredCOMMENT
MEDIUMjax/experimental/jax2tf/tests/primitives_test.py91 # If you want to run this test for only one harness, add parameterCOMMENT
LOWjax/_src/compiler.py541# simply return the non-PGLE profiled module from the persistent cache if itCOMMENT
LOWjax/_src/pjit.py1014 # checks and just return the pjit_in_shardings directly. `shard_args` willCOMMENT
LOWjax/_src/checkify.py359 # Default non-HOP case: just call primitive and don't update error.COMMENT
LOWjax/_src/interpreters/batching.py632 # if there's only agreeing batch dims and scalars, just call the primitiveCOMMENT
LOWjax/_src/lax/ann.py384# 1. ApproxTopK is internally a variadic reduce, so we can simply callCOMMENT
MEDIUMjax/_src/lax/control_flow/loops.py2178# lowering. Fundamentally, we'd like to rewrite a while loop that looks likeCOMMENT
MEDIUMjax/_src/numpy/linalg.py1494 # TODO: add custom jvp rule for more robust lstsq differentiationCOMMENT
LOWjax/_src/pallas/pallas_call.py668 # dimensions. For now, we just use 0.COMMENT
LOWjax/_src/pallas/mosaic/lowering.py1786 # `jax.empty_ref`), but lowering expects them to exist---so we just returnCOMMENT
MEDIUM…/_src/pallas/mosaic/interpret/interpret_pallas_call.py1710 # TODO(nrink): It would be more robust if the buffer id, i.e. `src`,COMMENT
LOW…/_src/pallas/mosaic/interpret/interpret_pallas_call.py684 # callback to `get`. Should we just pass the shape to `get`?COMMENT
MEDIUMjax/_src/internal_test_util/test_harnesses.py148 # Descriptive name of the harness, used as a testcase_name. Unique in a group.COMMENT
MEDIUMjax/_src/internal_test_util/test_harnesses.py157 # partially implemented in JAX for this harness.COMMENT
MEDIUMjax/_src/internal_test_util/test_harnesses.py386 # Change the testcase name to include the harness name.COMMENT
MEDIUMjax/_src/internal_test_util/test_harnesses.py2005# This first harness runs the tests for all dtypes using default values forCOMMENT
MEDIUMjax/_src/internal_test_util/test_harnesses.py2591# This first harness runs the tests for all dtypes using default values forCOMMENT
MEDIUMjax/_src/internal_test_util/test_harnesses.py2896# This first harness runs the tests for all dtypes and precisions usingCOMMENT
MEDIUMjax/_src/internal_test_util/test_harnesses.py3097 # This first harness runs the tests for all dtypes and precisions usingCOMMENT
MEDIUMjax/_src/internal_test_util/test_harnesses.py351 self.enabled = enabled # Does it apply to the current harness?CODE
Dead Code55 hits · 104 pts
SeverityFileLineSnippetContext
MEDIUMtests/custom_api_test.py391CODE
MEDIUMtests/custom_api_test.py393CODE
MEDIUMtests/custom_api_test.py396CODE
MEDIUMtests/custom_api_test.py399CODE
MEDIUMtests/custom_api_test.py402CODE
MEDIUMtests/custom_api_test.py403CODE
MEDIUMtests/custom_api_test.py404CODE
MEDIUMtests/custom_api_test.py1949CODE
MEDIUMtests/custom_api_test.py1961CODE
MEDIUMtests/custom_api_test.py1964CODE
MEDIUMtests/custom_api_test.py1965CODE
MEDIUMtests/custom_api_test.py1966CODE
MEDIUMtests/custom_api_test.py1968CODE
MEDIUMtests/custom_api_test.py1969CODE
MEDIUMtests/custom_api_test.py1970CODE
MEDIUMtests/lax_numpy_reducers_test.py984CODE
MEDIUMtests/lax_numpy_reducers_test.py985CODE
MEDIUMtests/lax_numpy_reducers_test.py986CODE
MEDIUMtests/lax_numpy_reducers_test.py996CODE
MEDIUMtests/lax_numpy_reducers_test.py997CODE
MEDIUMtests/lax_numpy_reducers_test.py998CODE
MEDIUMtests/pmap_test.py2184CODE
MEDIUMtests/pmap_test.py2186CODE
MEDIUMtests/pmap_test.py2192CODE
MEDIUMtests/pmap_test.py2202CODE
MEDIUMtests/pmap_test.py2206CODE
MEDIUMtests/pmap_test.py2221CODE
MEDIUMtests/pmap_test.py2227CODE
MEDIUMtests/pmap_test.py2228CODE
MEDIUMtests/pmap_test.py2229CODE
MEDIUMtests/pmap_test.py2230CODE
MEDIUMtests/pmap_test.py2241CODE
MEDIUMtests/pmap_test.py2247CODE
MEDIUMtests/pmap_test.py2248CODE
MEDIUMtests/pmap_test.py2249CODE
MEDIUMtests/pmap_test.py2250CODE
MEDIUMtests/pmap_test.py2256CODE
MEDIUMtests/pmap_test.py2262CODE
MEDIUMtests/pmap_test.py2412CODE
MEDIUMtests/pmap_test.py2414CODE
MEDIUMtests/pmap_test.py2417CODE
MEDIUMtests/pmap_test.py2418CODE
MEDIUMtests/pmap_test.py2420CODE
MEDIUMtests/pmap_test.py2421CODE
MEDIUMtests/pmap_test.py2422CODE
MEDIUMtests/pmap_test.py2423CODE
MEDIUMtests/pmap_test.py2435CODE
MEDIUMtests/lax_test.py1860CODE
MEDIUMtests/lax_test.py1892CODE
MEDIUMtests/mosaic/gpu_test.py971CODE
MEDIUMtests/mosaic/gpu_test.py973CODE
MEDIUMtests/mosaic/gpu_test.py974CODE
MEDIUMtests/mosaic/gpu_test.py975CODE
MEDIUMtests/mosaic/gpu_test.py982CODE
MEDIUMjax/_src/pallas/core.py1626CODE
Modern Structural Boilerplate63 hits · 63 pts
SeverityFileLineSnippetContext
LOWdocs/sphinxext/jax_list_config_options.py22logger = logging.getLogger(__name__)CODE
LOWjaxlib/xla_client.py61logger = logging.getLogger(__name__)CODE
LOWjax/export.py14__all__ = ["DisabledSafetyCheck", "Exported", "export", "deserialize",CODE
LOWjax/debug.py14__all__ = ["callback", "print", "log", "DebugEffect", "OrderedDebugEffect",CODE
LOWjax/ref.py15__all__ = [CODE
LOWjax/interpreters/xla.py15__all__ = ["apply_primitive", "canonicalize_dtype_handlers", "Backend"]CODE
LOWjax/experimental/mosaic/gpu/utils.py44logger = logging.getLogger(__name__)CODE
LOWjax/experimental/mosaic/gpu/layout_inference.py48logger = logging.getLogger(__name__)CODE
LOWjax/experimental/roofline/roofline.py41logger = logging.getLogger(__name__)CODE
LOW…perimental/array_serialization/pytree_serialization.py44logger = logging.getLogger(__name__)CODE
LOW…perimental/array_serialization/pytree_serialization.py61__all__ = ["save", "load", "load_pytreedef",CODE
LOW…x/experimental/array_serialization/tensorstore_impl.py53logger = logging.getLogger(__name__)CODE
LOW…ntal/array_serialization/pytree_serialization_utils.py32logger = logging.getLogger(__name__)CODE
LOW…ntal/array_serialization/pytree_serialization_utils.py44__all__ = ["serialize_pytreedef", "deserialize_pytreedef",CODE
LOWjax/experimental/array_serialization/serialization.py74logger = logging.getLogger(__name__)CODE
LOWjax/experimental/jax2tf/jax2tf.py66logger = logging.getLogger(__name__)CODE
LOWjax/experimental/jax2tf/call_tf.py55logger = logging.getLogger(__name__)CODE
LOWjax/experimental/colocated_python/obj.py50 def update_devices(self, uid: int, device_set: set[jax.Device]) -> None:CODE
LOWjax/_src/callback.py47logger = logging.getLogger(__name__)CODE
LOWjax/_src/lru_cache.py33logger = logging.getLogger(__name__)CODE
LOWjax/_src/xla_bridge.py48logger = logging.getLogger(__name__)CODE
LOWjax/_src/test_loader.py41logger = logging.getLogger(__name__)CODE
LOWjax/_src/config.py37logger = logging.getLogger(__name__)CODE
LOWjax/_src/logging_config.py62def update_logging_level_global(logging_level: str | None) -> None:CODE
LOWjax/_src/compiler.py98logger = logging.getLogger(__name__)CODE
LOWjax/_src/cache_key.py34logger = logging.getLogger(__name__)CODE
LOWjax/_src/util.py37logger = logging.getLogger(__name__)CODE
LOWjax/_src/cloud_tpu_init.py23logger = logging.getLogger(__name__)CODE
LOWjax/_src/dispatch.py75logger = logging.getLogger(__name__)CODE
LOWjax/_src/debugging.py56logger = logging.getLogger(__name__)CODE
LOWjax/_src/test_util.py75logger = logging.getLogger(__name__)CODE
LOWjax/_src/compilation_cache.py51logger = logging.getLogger(__name__)CODE
LOWjax/_src/compilation_cache.py193def set_cache_dir(path) -> None:CODE
LOWjax/_src/error_check.py129def set_error_if(pred: Array, /, msg: str) -> None:CODE
LOWjax/_src/distributed.py28logger = logging.getLogger(__name__)CODE
LOWjax/_src/public_test_util.py30__all__ = ['check_grads', 'check_jvp', 'check_vjp']CODE
LOWjax/_src/ad_checkpoint.py61logger = logging.getLogger(__name__)CODE
LOWjax/_src/jaxpr_util.py44logger = logging.getLogger(__name__)CODE
LOWjax/_src/hardware_utils.py99logger = logging.getLogger(__name__)CODE
LOWjax/_src/profiler.py48logger = logging.getLogger(__name__)CODE
LOWjax/_src/profiler.py137def set_metadata(key: str, value: str) -> None:CODE
LOWjax/_src/path.py20__all__ = ["Path"]CODE
LOWjax/_src/path.py22logger = logging.getLogger(__name__)CODE
LOWjax/_src/interpreters/pxla.py73logger = logging.getLogger(__name__)CODE
LOWjax/_src/interpreters/partial_eval.py65logger = logging.getLogger(__name__)CODE
LOWjax/_src/lax/fft.py34__all__ = [CODE
LOWjax/_src/clusters/k8s_cluster.py30logger = logging.getLogger(__name__)CODE
LOWjax/_src/clusters/cloud_tpu_cluster.py25logger = logging.getLogger(__name__)CODE
LOWjax/_src/clusters/cluster.py22logger = logging.getLogger(__name__)CODE
LOWjax/_src/state/primitives.py1275 if not isinstance(aval, AbstractLinVal): raise TypeError(aval)CODE
LOWjax/_src/state/types.py641 def _setitem(self, tracer, idx, value) -> None:CODE
LOWjax/_src/numpy/array_constructors.py36logger = logging.getLogger(__name__)CODE
LOWjax/_src/numpy/index_tricks.py37__all__ = ["c_", "index_exp", "mgrid", "ogrid", "r_", "s_"]CODE
LOWjax/_src/numpy/array_methods.py22__all__ = ['register_jax_array_methods']CODE
LOWjax/_src/pallas/mosaic/interpret/shared_memory.py34logger = logging.getLogger(__name__)CODE
LOW…x/_src/pallas/mosaic/interpret/race_detection_state.py25logger = logging.getLogger(__name__)CODE
LOWjax/_src/pallas/triton/lowering.py1366def _set_attr(v: ir.Value, name: str, attr: ir.Attribute) -> None:CODE
LOWjax/_src/pallas/mosaic_gpu/interpret/shared_memory.py38logger = logging.getLogger(__name__)CODE
LOW…rc/pallas/mosaic_gpu/interpret/race_detection_state.py24logger = logging.getLogger(__name__)CODE
LOWjax/_src/export/_export.py61logger = logging.getLogger(__name__)CODE
3 more matches not shown…
Hallucination Indicators5 hits · 60 pts
SeverityFileLineSnippetContext
CRITICALtests/mosaic/profiler_cupti_test.py183 jax._src.lib.mosaic_gpu._mosaic_gpu_ext._cupti_init()CODE
CRITICALtests/filecheck/jax_mlir_ext.filecheck.py114 return jax._src.lib._jax.Traceback.get_traceback()CODE
CRITICAL⚡tests/thunky/thunky_test.py675 asm_text = jax._src.lib.mlir.ir.StringAttr(CODE
CRITICAL⚡tests/thunky/thunky_test.py678 binary = jax._src.lib.mlir.ir.StringAttr(CODE
CRITICALjax/_src/pallas/mosaic_gpu/lowering.py4109 for k, v in ctx.launch_ctx.module.operation.attributes.items():CODE
Redundant / Tautological Comments27 hits · 40 pts
SeverityFileLineSnippetContext
LOWtests/array_interoperability_test.py210 # Check if the source device is preservedCOMMENT
LOWtests/nn_test.py120 # Check if float8_e8m0fnu is availableCOMMENT
LOWtests/nn_test.py337 # Check if cudnn backend is called (only on CUDA).COMMENT
LOWtests/pgle_test.py277 # Check if FDO profile file of the biggest module is not emptyCOMMENT
LOWtests/pgle_test.py285 # Check if FDO profile file in dump directory is not emptyCOMMENT
LOWtests/multiprocess/array_test.py297 # Check if we can specify that local input actually contains full-spanCOMMENT
LOW…allas/tpu_fusible_matmul_with_stateful_fusions_test.py144 # Check if either input fusion reads from a Ref that is also written by theCOMMENT
LOWtests/pallas/tpu_pallas_call_print_test.py170 # Check if the numbers in the output match the values generated by `arange`.COMMENT
LOW.github/workflows/upload_metadata.yml68 # Check if zip file is empty before unzippingCOMMENT
LOW.github/workflows/verify-squash.yml32 # Check if the skip label is presentCOMMENT
LOW.github/workflows/verify-squash.yml55 # Check if squashedCOMMENT
LOW.github/workflows/build_artifacts.yml175 # Set shell to cmd to avoid path errors when using gcloud commands on WindowsCOMMENT
LOWjax/experimental/mosaic/gpu/fragmented_array.py5894 # Check if input maps exactly to the end (prevents trailing dims).COMMENT
LOWjax/_src/test_util.py1269 # Check if strict hermeticity is already satisfiedCOMMENT
LOWjax/_src/checkify.py915 # Check if the first cond application will error.COMMENT
LOWjax/_src/pretty_printer.py48 # Check if we're in IPython or ColabCOMMENT
LOWjax/_src/lax/control_flow/loops.py2354 # Check if the same Ref is written to in both cond and body.COMMENT
LOWjax/_src/state/primitives.py810 # Check if start is static (which it can be)COMMENT
LOWjax/_src/state/primitives.py823 # Check if we are indexing with a scalar or not. If we are indexingCOMMENT
LOWjax/_src/numpy/setops.py177 # Set mask to zero at locations corresponding to unique() padding.COMMENT
LOWjax/_src/numpy/array_constructors.py239 # Check if object supports any of the data exchange protocolsCOMMENT
LOWjax/_src/pallas/mpmd.py578 # Check if any batched argument reaches an unbatchable op.COMMENT
LOWjax/_src/pallas/core.py1261 elif grid and isinstance(grid[0], tuple): # Check if we have a named gridCODE
LOWjax/_src/pallas/einshape.py243 # Check if all RHS dims are knownCOMMENT
LOWjax/_src/scipy/signal.py669 # Check if we can broadcast the outer axes togetherCOMMENT
LOWjax/_src/scipy/signal.py718 # Check if x and y are the same length, zero-pad if necessaryCOMMENT
LOWjax/_src/cudnn/fused_attention_stablehlo.py1429 # Check if all required keys are presentCOMMENT
Fake / Example Data21 hits · 30 pts
SeverityFileLineSnippetContext
LOW⚡tests/export_back_compat_test.py96 dummy_data = self.load_testdata(bctu.dummy_data_dict)CODE
LOW⚡tests/export_back_compat_test.py98 dummy_data, platform=self.default_jax_backend())CODE
LOW⚡tests/export_back_compat_test.py103 dummy_data = self.load_testdata(bctu.dummy_data_dict)CODE
LOW⚡tests/export_back_compat_test.py105 dummy_data,CODE
LOW⚡tests/export_back_compat_test.py113 dummy_data = self.load_testdata(bctu.dummy_data_dict)CODE
LOW⚡tests/export_back_compat_test.py115 dummy_data,CODE
LOW⚡tests/shard_map_test.py648 dummy_data = jax.lax.precv(CODE
LOW⚡tests/shard_map_test.py656 dummy_data,CODE
LOW⚡tests/shard_map_test.py660 return dummy_dataCODE
LOW⚡docs/gpu_performance_tips.md400 dummy_data = jnp.zeros(CODE
LOW⚡docs/gpu_performance_tips.md403 dummy_data = jax.device_put(CODE
LOW⚡docs/gpu_performance_tips.md404 dummy_data,CODE
LOW⚡docs/gpu_performance_tips.md411 carry = weights, input_buffer, output_buffer, dummy_data, dummy_dataCODE
LOW⚡docs/gpu_performance_tips.md590 weights, input_buffer, dummy_data, meshCODE
LOW⚡docs/gpu_performance_tips.md599 jax.ShapeDtypeStruct.like(dummy_data),CODE
LOW⚡docs/gpu_performance_tips.md609 dummy_data,CODE
LOW⚡docs/gpu_performance_tips.md610 dummy_data,CODE
LOWdocs/gpu_performance_tips.md677 dummy_data = jax.device_put(CODE
LOWdocs/gpu_performance_tips.md692 )(weights, input_buffer, dummy_data)CODE
LOW…perimental/array_serialization/pytree_serialization.py237 dummy_key_path = os.path.join(kvstore_path, "dummy_key")CODE
LOW…src/internal_test_util/export_back_compat_test_util.py128# The dummy_data is used for getting started for adding a new test and forCOMMENT
Slop Phrases13 hits · 26 pts
SeverityFileLineSnippetContext
MEDIUMdocs/array_refs.py612# wouldn't be for `vmap` or `shard_map`, as discussed above). Once all theCOMMENT
MEDIUMdocs/parallel.py398# want the compiler to choose them automatically, you can use the `@auto_axes`COMMENT
MEDIUMdocs/ffi.py163# // this handler in a header, you can use the `XLA_FFI_DECLARE_HANDLER_SYMBOL`COMMENT
MEDIUMdocs/ffi.py211# If you're familiar with the legacy "custom call" API, it's worth noting that you can also use {func}`~jax.ffi.registerCOMMENT
MEDIUMdocs/ffi.py211# If you're familiar with the legacy "custom call" API, it's worth noting that you can also use {func}`~jax.ffi.registerCOMMENT
MEDIUMjax/experimental/jax2tf/examples/saved_model_lib.py102 # names, you can use `tree.map_structure_with_path` from the `dm-tree` packageCOMMENT
LOWjax/_src/core.py2940 # but we make sure to reset it to Device because the Ref owns the memory spaceCOMMENT
MEDIUMjax/_src/ad_checkpoint.py274 Here is a simple example:STRING
MEDIUMjax/_src/errors.py201 indices, such as with :code:`.at[...].set(...)`. Here is a simple example::STRING
MEDIUMjax/_src/errors.py666 Here is a simple example of code that would lead to such an error::STRING
MEDIUMjax/_src/lax/windowed_reductions.py154 Here is a simple example of a windowed product over pairs in a 1-dimensional array:STRING
MEDIUMjax/_src/lax/slicing.py371 For example, here is how you can extract values at particular indices usingSTRING
LOWjax/_src/pallas/core.py812 # If you hit this, make sure you take transforms into account and use eitherCOMMENT
Structural Annotation Overuse22 hits · 21 pts
SeverityFileLineSnippetContext
LOWtests/thunky/collective_matmul_test.py91 # Step 0: compute local GEMM 0 (A_d @ B_d) on compute stream 0 concurrentlyCOMMENT
LOWtests/thunky/collective_matmul_test.py237 # Step 0: compute local GEMM 0 on compute stream 0COMMENT
LOWdocs/distributed_data_loading.md232# Step 1: setup the Dataset for pure data parallelism (do once)COMMENT
LOWdocs/distributed_data_loading.md241# Step 2: create a jax.Array of per-replica batches from the per-process batchCOMMENT
LOWdocs/distributed_data_loading.md327# Step 1: Set up the Dataset with a different data shard per-process (do once)COMMENT
LOWdocs/distributed_data_loading.md337# Step 2: Create a jax.Array of per-replica batches from the per-process batchCOMMENT
LOWdocs/thunky.md413 # Step 1: Launch custom Pallas Mosaic GPU TMA kernel into intermediate_refSTRING
LOWdocs/thunky.md415 # Step 2: Post-process intermediate_ref in declarative modeSTRING
LOWdocs/thunky.md547### Step 1: Unidirectional Ring Collective MatmulSTRING
LOWdocs/thunky.md607 # Step 0: compute local GEMM 0 (A_d @ B_d) on compute stream 0 concurrentlySTRING
LOWdocs/thunky.md649### Step 2: Bidirectional Ring with Grouped Collectives & Fused GEMMsSTRING
LOWdocs/thunky.md760 # Step 0: compute local GEMM 0 on compute stream 0STRING
LOWdocs/501/data-loading.md217# Step 1: set up the Dataset for pure data parallelism (do once)COMMENT
LOWdocs/501/data-loading.md226# Step 2: create a jax.Array of per-replica batches from the per-process batchCOMMENT
LOWdocs/501/data-loading.md312# Step 1: Set up the Dataset with a different data shard per process (do once)COMMENT
LOWdocs/501/data-loading.md322# Step 2: Create a jax.Array of per-replica batches from the per-process batchCOMMENT
LOW⚡jax/_src/numpy/ufuncs.py4151 # Step 1: Exact range reduction x = n + r with n in Z and r in [-0.5, 0.5].STRING
LOW⚡jax/_src/numpy/ufuncs.py4158 # Step 2: Taylor coefficients c_k = (-1)^k * pi^(2k) / (2k+1)! (low to high)STRING
LOW⚡jax/_src/numpy/ufuncs.py4194 # Step 3: Evaluate Q(t) via lax.polynomial:STRING
LOW⚡jax/_src/numpy/ufuncs.py4202 # Step 4: Divide by (-1)^n * x (using 1 when n == 0 to avoid 0/0 in autodiff).STRING
LOWjax/_src/numpy/linalg.py774 # Step 1: Pivot column 0 so row 0 gets the largest magnitude element.COMMENT
LOWjax/_src/numpy/linalg.py792 # Step 2: Pivot column 1 across rows 1 and 2, then eliminate row 2.COMMENT
Synthetic Comment Markers3 hits · 20 pts
SeverityFileLineSnippetContext
HIGHdocs/contributing.md26## Can I contribute AI generated code?COMMENT
HIGHdocs/contributing.md35You are responsible for any code you contribute to JAX, regardless of whether it was written manually or generated by AICODE
HIGHjaxlib/py_executable.h286 // Python objects to keep alive as requested by user.COMMENT
AI Response Leakage2 hits · 15 pts
SeverityFileLineSnippetContext
HIGHdocs/ffi.py135# // In this example, we treat all leading dimensions as batch dimensions, so thisCOMMENT
HIGHdocs/ffi.py178# In this implementation, we treat all leading dimensions of the buffer as batch dimensions, and perform RMS normalizatiCOMMENT
Overly Generic Function Names10 hits · 10 pts
SeverityFileLineSnippetContext
LOW⚡tests/core_test.py587 def my_function():CODE
LOWtests/util_test.py80 def my_function():CODE
LOWtests/aot_test.py131 def my_function(x):CODE
LOWtests/aot_test.py152 def my_function(x):CODE
LOWtests/source_info_test.py279 def my_function(x):CODE
LOW⚡tests/api_test.py96 def my_function():CODE
LOW⚡tests/api_test.py110 def my_function():CODE
LOWtests/api_test.py1634 def my_function(x, flag):CODE
LOWjax/typing.py47 def my_function(x: ArrayLike) -> Array:STRING
LOWjax/experimental/jax2tf/tests/jax2tf_test.py306 def test_function(self):CODE
Verbosity Indicators9 hits · 8 pts
SeverityFileLineSnippetContext
LOWtests/thunky/collective_matmul_test.py91 # Step 0: compute local GEMM 0 (A_d @ B_d) on compute stream 0 concurrentlyCOMMENT
LOWtests/thunky/collective_matmul_test.py237 # Step 0: compute local GEMM 0 on compute stream 0COMMENT
LOWjaxlib/python_ref_manager.h85 // The purpose of this function is to amortize lock acquisition costs overCOMMENT
LOW⚡jax/_src/numpy/ufuncs.py4151 # Step 1: Exact range reduction x = n + r with n in Z and r in [-0.5, 0.5].STRING
LOW⚡jax/_src/numpy/ufuncs.py4158 # Step 2: Taylor coefficients c_k = (-1)^k * pi^(2k) / (2k+1)! (low to high)STRING
LOW⚡jax/_src/numpy/ufuncs.py4194 # Step 3: Evaluate Q(t) via lax.polynomial:STRING
LOW⚡jax/_src/numpy/ufuncs.py4202 # Step 4: Divide by (-1)^n * x (using 1 when n == 0 to avoid 0/0 in autodiff).STRING
LOWjax/_src/numpy/linalg.py774 # Step 1: Pivot column 0 so row 0 gets the largest magnitude element.COMMENT
LOWjax/_src/numpy/linalg.py792 # Step 2: Pivot column 1 across rows 1 and 2, then eliminate row 2.COMMENT
Example Usage Blocks2 hits · 4 pts
SeverityFileLineSnippetContext
LOW⚡ci/utilities/run_docker_container.sh24# Usage:COMMENT
LOWjax/_src/deprecations.py22# Example usage:COMMENT
Modern AI Meta-Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUM.github/workflows/wheel_tests_continuous.yml5# It orchestrates the following:COMMENT
TODO Padding2 hits · 3 pts
SeverityFileLineSnippetContext
LOWjax/_src/lax/slicing.py822 # TODO: implement this via its own primitive so we can define appropriate autodiff rules.COMMENT
LOWjax/_src/lax/linalg.py2371 # TODO: implement full matrices case, documented here: https://people.maths.ox.ac.uk/gilesm/files/NA-08-01.pdfCOMMENT