Repository Analysis

cupy/cupy

NumPy & SciPy for GPU

20.0 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of cupy/cupy, a Python project with 12,284 GitHub stars. SynthScan v2.0 examined 257,032 lines of code across 928 source files, recording 4620 pattern matches distributed across 20 syntactic categories. The overall adjusted score of 20.0 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).

20.0
Adjusted Score
20.0
Raw Score
100%
Time Factor
2026-08-28
Last Push
12.3K
Stars
Python
Language
257.0K
Lines of Code
928
Files
4.6K
Pattern Hits
2026-08-29
Scan Date
0.19
HC Hit Rate

What These Metrics Mean

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

Score History

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

Severity Breakdown

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

CRITICAL 0HIGH 180MEDIUM 162LOW 4278

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 4620 distinct pattern matches across 20 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.

Unused Imports2141 hits · 1658 pts
SeverityFileLineSnippetContext
LOWsetup.py2CODE
LOW.pfnci/generate.py2CODE
LOW.pfnci/trim_cupy_kernel_cache.py13CODE
LOW.pfnci/flexci_notify.py4CODE
LOWinstall/cupy_builder/_compiler.py1CODE
LOWinstall/cupy_builder/cupy_setup_build.py2CODE
LOWinstall/cupy_builder/_command.py1CODE
LOWinstall/cupy_builder/install_build.py2CODE
LOWinstall/cupy_builder/_features.py1CODE
LOWinstall/cupy_builder/__init__.py1CODE
LOWinstall/cupy_builder/__init__.py4CODE
LOWinstall/cupy_builder/__init__.py5CODE
LOWinstall/cupy_builder/__init__.py6CODE
LOWinstall/cupy_builder/__init__.py8CODE
LOWinstall/cupy_builder/__init__.py10CODE
LOWinstall/cupy_builder/__init__.py11CODE
LOWinstall/cupy_builder/__init__.py12CODE
LOWinstall/cupy_builder/_context.py1CODE
LOWinstall/cupy_builder/_environment.py1CODE
LOWinstall/cupy_builder/_preflight.py1CODE
LOWinstall/cupy_builder/install_utils.py1CODE
LOWcupy_backends/cuda/libs/__init__.py1CODE
LOWci/tools/fetch_ctk_redistrib.py4CODE
LOWci/tools/wheel_configs.py9CODE
LOWci/tools/prepare_wheel_build.py26CODE
LOWtests/conftest.py1CODE
LOWtests/conftest.py24CODE
LOWtests/example_tests/test_finance.py1CODE
LOWtests/example_tests/example_test.py1CODE
LOWtests/example_tests/test_custom_struct.py1CODE
LOWtests/example_tests/test_gmm.py1CODE
LOWtests/example_tests/test_gemm.py1CODE
LOWtests/example_tests/test_kmeans.py1CODE
LOWtests/cupy_tests/_gcp_kernel_cache_backend.py16CODE
LOWtests/cupy_tests/test_typing.py1CODE
LOWtests/cupy_tests/test_cublas.py1CODE
LOWtests/cupy_tests/test_type_routines.py1CODE
LOWtests/cupy_tests/test_init.py1CODE
LOWtests/cupy_tests/test_ndim.py1CODE
LOWtests/cupy_tests/test_numpy_interop.py1CODE
LOWtests/cupy_tests/manipulation_tests/test_rearrange.py1CODE
LOWtests/cupy_tests/manipulation_tests/test_basic.py1CODE
LOWtests/cupy_tests/manipulation_tests/test_split.py1CODE
LOWtests/cupy_tests/manipulation_tests/test_kind.py1CODE
LOWtests/cupy_tests/manipulation_tests/test_transpose.py1CODE
LOWtests/cupy_tests/manipulation_tests/test_shape.py1CODE
LOWtests/cupy_tests/manipulation_tests/test_tiling.py1CODE
LOWtests/cupy_tests/manipulation_tests/test_join.py1CODE
LOWtests/cupy_tests/manipulation_tests/test_add_remove.py1CODE
LOWtests/cupy_tests/manipulation_tests/test_dims.py1CODE
LOWtests/cupy_tests/fft_tests/test_callback.py1CODE
LOWtests/cupy_tests/fft_tests/test_fft.py1CODE
LOWtests/cupy_tests/fft_tests/test_cache.py1CODE
LOWtests/cupy_tests/polynomial_tests/test_polynomial.py1CODE
LOWtests/cupy_tests/polynomial_tests/test_polyutils.py1CODE
LOWtests/cupy_tests/linalg_tests/test_eigenvalue.py1CODE
LOWtests/cupy_tests/linalg_tests/test_solve.py1CODE
LOWtests/cupy_tests/linalg_tests/test_norms.py1CODE
LOWtests/cupy_tests/linalg_tests/test_product.py1CODE
LOWtests/cupy_tests/linalg_tests/test_decomposition.py1CODE
2081 more matches not shown…
Hyper-Verbose Identifiers1621 hits · 1654 pts
SeverityFileLineSnippetContext
LOW.pfnci/generate.py622def expand_inherited_matrixes(matrixes: list[Matrix]) -> None:CODE
LOWinstall/cupy_builder/cupy_setup_build.py80def canonicalize_hip_libraries(hip_version, libraries):CODE
LOWinstall/cupy_builder/_command.py21def filter_files_by_extension(CODE
LOWinstall/cupy_builder/install_build.py255def get_compiler_base_options(compiler_path: list[str]) -> list[str]:CODE
LOWinstall/cupy_builder/install_build.py265def _get_compiler_base_options(compiler_path):CODE
LOWinstall/cupy_builder/install_build.py355def check_compute_capabilities(compiler, settings):STRING
LOWci/tools/fetch_ctk_redistrib.py98def get_component_relative_path(metadata: dict[str, Any], *, host_platform: str, component: str) -> str:CODE
LOWtests/conftest.py119 def pytest_collection_modifyitems(session, config, items):CODE
LOWtests/example_tests/test_finance.py49 def test_monte_carlo_multigpu(self):CODE
LOWtests/cupy_tests/test_cublas.py27 def _make_well_conditioned_matrices(self, shape):CODE
LOWtests/cupy_tests/test_cublas.py589 def _check_dgmm_incx_minus_one_hip_skip_condition(self):CODE
LOWtests/cupy_tests/test_type_routines.py12def _generate_type_routines_input(xp, dtype, obj_type):CODE
LOWtests/cupy_tests/test_type_routines.py53 def test_common_type_single_argument(self, xp, dtype):CODE
LOWtests/cupy_tests/test_type_routines.py62 def test_common_type_two_arguments(self, xp, dtype1, dtype2):CODE
LOWtests/cupy_tests/test_init.py60def test_testing_import_does_not_require_pytest():STRING
LOWtests/cupy_tests/test_init.py121 def test_get_default_memory_pool(self):STRING
LOWtests/cupy_tests/test_init.py125 def test_get_default_pinned_memory_pool(self):STRING
LOWtests/cupy_tests/test_init.py138 def test_show_config_with_handles(self):STRING
LOWtests/cupy_tests/test_init.py155 def test_bitwise_not_is_invert(self):STRING
LOWtests/cupy_tests/manipulation_tests/test_rearrange.py51 def test_roll_invalid_shift_castable(self):CODE
LOWtests/cupy_tests/manipulation_tests/test_rearrange.py64 def test_roll_invalid_axis_type(self):CODE
LOWtests/cupy_tests/manipulation_tests/test_rearrange.py86 def test_roll_invalid_cupy_shift(self):CODE
LOWtests/cupy_tests/manipulation_tests/test_rearrange.py111 def test_fliplr_insufficient_ndim(self, dtype):CODE
LOWtests/cupy_tests/manipulation_tests/test_rearrange.py133 def test_flipud_insufficient_ndim(self, dtype):CODE
LOWtests/cupy_tests/manipulation_tests/test_rearrange.py162 def test_flip_with_negative_axis(self, xp, dtype):CODE
LOWtests/cupy_tests/manipulation_tests/test_rearrange.py168 def test_flip_with_axis_tuple(self, xp, dtype):CODE
LOWtests/cupy_tests/manipulation_tests/test_rearrange.py203 def test_flip_insufficient_ndim(self, dtype):CODE
LOWtests/cupy_tests/manipulation_tests/test_rearrange.py217 def test_flip_invalid_negative_axis(self, dtype):CODE
LOWtests/cupy_tests/manipulation_tests/test_basic.py27 def test_copyto_different_contiguity(self, xp, dtype):CODE
LOWtests/cupy_tests/manipulation_tests/test_basic.py72 def test_copyto_squeeze_different_contiguity(self, xp, dtype):CODE
LOWtests/cupy_tests/manipulation_tests/test_basic.py80 def test_copyto_squeeze_broadcast(self, xp, dtype):CODE
LOWtests/cupy_tests/manipulation_tests/test_basic.py97 def test_copyto_where_squeeze_broadcast(self, xp, dtype):CODE
LOWtests/cupy_tests/manipulation_tests/test_basic.py114 def _check_copyto_where_multigpu_raises(self, dtype, ngpus):CODE
LOWtests/cupy_tests/manipulation_tests/test_basic.py149 def test_copyto_where_multigpu_raises(self, dtype):CODE
LOWtests/cupy_tests/manipulation_tests/test_basic.py179 def test_copyto_multigpu_noncontinguous(self, dtype):CODE
LOWtests/cupy_tests/manipulation_tests/test_split.py21 def test_array_split_empty_array(self, xp):CODE
LOWtests/cupy_tests/manipulation_tests/test_split.py26 def test_array_split_empty_sections(self, xp):CODE
LOWtests/cupy_tests/manipulation_tests/test_split.py41 def test_array_split_unordered_sections(self, xp):CODE
LOWtests/cupy_tests/manipulation_tests/test_split.py46 def test_array_split_non_divisible(self, xp):CODE
LOWtests/cupy_tests/manipulation_tests/test_split.py91 def test_split_unordered_sections(self, xp):CODE
LOWtests/cupy_tests/manipulation_tests/test_kind.py23 def test_asarray_chkfinite_non_finite_vals(self, dtype, order):CODE
LOWtests/cupy_tests/manipulation_tests/test_kind.py107 def test_require_incorrect_requirments(self, dtype):CODE
LOWtests/cupy_tests/manipulation_tests/test_kind.py113 def test_require_incorrect_dtype(self, dtype):CODE
LOWtests/cupy_tests/manipulation_tests/test_kind.py119 def test_require_empty_requirements(self, dtype):CODE
LOWtests/cupy_tests/manipulation_tests/test_transpose.py171 def test_external_transpose_all(self, xp):CODE
LOWtests/cupy_tests/manipulation_tests/test_transpose.py200 def test_matrix_transpose_equals_swapaxes(self, xp, shape):CODE
LOWtests/cupy_tests/manipulation_tests/test_shape.py56 def test_nocopy_reshape_with_order(self, xp, dtype, order):CODE
LOWtests/cupy_tests/manipulation_tests/test_shape.py74 def test_copy_arg_str_reshape_raises(self):CODE
LOWtests/cupy_tests/manipulation_tests/test_shape.py82 def test_copy_arg_false_reshape_raises(self):CODE
LOWtests/cupy_tests/manipulation_tests/test_shape.py97 def test_reshape_with_unknown_dimension(self, xp, order):CODE
LOWtests/cupy_tests/manipulation_tests/test_shape.py101 def test_reshape_with_multiple_unknown_dimensions(self):CODE
LOWtests/cupy_tests/manipulation_tests/test_shape.py109 def test_reshape_with_changed_arraysize(self):CODE
LOWtests/cupy_tests/manipulation_tests/test_shape.py116 def test_reshape_invalid_order(self):CODE
LOWtests/cupy_tests/manipulation_tests/test_shape.py122 def test_reshape_zerosize_invalid(self):CODE
LOWtests/cupy_tests/manipulation_tests/test_shape.py129 def test_reshape_zerosize_invalid_unknown(self):CODE
LOWtests/cupy_tests/manipulation_tests/test_shape.py216 def test_ravel_non_contiguous(self, xp, order):CODE
LOWtests/cupy_tests/manipulation_tests/test_tiling.py194 def test_numpy_scalar_accepted(self):CODE
LOWtests/cupy_tests/manipulation_tests/test_tiling.py199 def test_numpy_ndarray_rejected(self):CODE
LOWtests/cupy_tests/manipulation_tests/test_tiling.py215 def test_float_dtype_matches_numpy(self):CODE
LOWtests/cupy_tests/manipulation_tests/test_join.py111 def test_concatenate_f_contiguous(self, xp, dtype):CODE
1561 more matches not shown…
Cross-Language Confusion141 hits · 779 pts
SeverityFileLineSnippetContext
HIGH.pfnci/generate.py93 ' ( apt-get -qqy update || true ) && \\',CODE
HIGH.pfnci/generate.py265 'RUN mkdir /home/cupy-user && chmod 777 /home/cupy-user',CODE
HIGHtests/cupy_tests/cuda_tests/test_texture.py120 if (x < width && y < height)CODE
HIGHtests/cupy_tests/cuda_tests/test_texture.py136 if (x < width && y < height && z < depth)CODE
HIGHtests/cupy_tests/cuda_tests/test_texture.py156 if (x < width && y < height && z < depth) {CODE
HIGHtests/cupy_tests/cuda_tests/test_texture.py345 if (w < width && h < height)STRING
HIGHtests/cupy_tests/cuda_tests/test_texture.py360 if (w < width && h < height && d < depth)STRING
HIGHtests/cupy_tests/cuda_tests/test_memory.py510 self.pool.free_all_blocks(stream=stream_module.Stream.null)CODE
HIGHtests/cupy_tests/cuda_tests/test_stream.py63 def check_del(self, null, ptds):CODE
HIGHtests/cupy_tests/cuda_tests/test_stream.py64 stream = cuda.Stream(null=null, ptds=ptds).use()CODE
HIGHtests/cupy_tests/cuda_tests/test_stream.py88 self.check_del(null=null, ptds=ptds)CODE
HIGHtests/cupy_tests/core_tests/test_mdspan.py59 if (threadIdx.x == 0 && blockIdx.x == 0) {CODE
HIGHcupy/_logic/truth.py13 'z = (i == 0 || X[i] != X[i-1]) && (i == len - 1 || X[i] != X[i+1])',CODE
HIGHcupy/_binary/packing.py12 int bit = k < a_size && a[k] != 0;STRING
HIGHcupy/_binary/packing.py21 int bit = k < a_size && a[k] != 0;STRING
HIGHcupy/_statistics/meanvar.py24 undefined, but it will probably be fully or partially sorted.STRING
HIGHcupy/_statistics/meanvar.py53 undefined, but it will probably be fully or partially sorted.STRING
HIGHcupy/_core/_fusion_op.py309 if (tid < block_stride && i < out_ind.size()) {CODE
HIGHcupy/_sorting/search.py268 if (!assume_increasing && n_bins >= 2) {CODE
HIGHcupy/_sorting/search.py279 while (pos > 0 && _isnan<T>(bins[pos-1])) {CODE
HIGHcupy/_sorting/search.py283 while (pos < n_bins && _isnan<T>(bins[pos])) {CODE
HIGHcupy/_sorting/search.py293 greater = inc && x >= bins[n_bins-1];CODE
HIGHcupy/_padding/pad.py669 # (padded area is undefined)COMMENT
HIGHcupy/_math/misc.py236if (in0 < 0 || in0 > 0) {CODE
HIGHcupy/random/_kernels.py850 while (r2 >= 1.0 || r2 == 0.0);CODE
HIGHcupyx/signal/_radartools/_radartools.py262 if (i>0 && j>0){CODE
HIGHcupyx/signal/_radartools/_radartools.py265 } else if (i == 0 && j > 0){CODE
HIGHcupyx/signal/_radartools/_radartools.py267 } else if (i > 0 && j == 0){CODE
HIGHcupyx/signal/_radartools/_radartools.py269 } else if (i == 0 && j == 0){CODE
HIGHcupyx/signal/_filtering/_filtering.py334 if ( btx < n_chans && ty < n_taps ) {CODE
HIGHcupyx/signal/_filtering/_filtering.py356 if ( btx < n_chans && ty < n_taps ) {CODE
HIGHcupyx/signal/_filtering/_filtering.py366 if ( btx < n_chans && ty <= bid ) {CODE
HIGHcupyx/signal/_filtering/_filtering.py449 if ( btx < n_chans && ty < n_taps ) {CODE
HIGHcupyx/signal/_filtering/_filtering.py471 if ( btx < n_chans && ty < n_taps ) {CODE
HIGHcupyx/signal/_filtering/_filtering.py481 if ( btx < n_chans && ty <= bid ) {CODE
HIGHcupyx/signal/_filtering/_filtering.py563 if ( btx < n_chans && ty < n_taps ) {CODE
HIGHcupyx/signal/_filtering/_filtering.py585 if ( btx < n_chans && ty < n_taps ) {CODE
HIGHcupyx/signal/_filtering/_filtering.py595 if ( btx < n_chans && ty <= bid ) {CODE
HIGHcupyx/scipy/ndimage/_measurements.py160 if (pos < 0 || pos >= shape[dm]) {STRING
HIGHcupyx/scipy/ndimage/_filters.py1225 while (j >= 0 && value < array[j]) {{CODE
HIGHcupyx/scipy/special/_expn.py230 } else if (n < 0 || x < 0) {CODE
HIGHcupyx/scipy/special/_stats_distributions.py122 if (p < 0.0 || p > 1.0 || fk < 0 || n < fk) {STRING
HIGHcupyx/scipy/special/_stats_distributions.py164 if (p < 0.0 || p > 1.0 || n < fk) {STRING
HIGHcupyx/scipy/special/_stats_distributions.py213 if (y < 0.0 || y > 1.0 || fk < 0.0 || n <= fk) {STRING
HIGHcupyx/scipy/special/_stats_distributions.py615 if (w > y || y < 0.001) {STRING
HIGHcupyx/scipy/special/_stats_distributions.py843 if (((p < 0.0) || (p > 1.0)) || k < 0 || n == 0)STRING
HIGHcupyx/scipy/special/_zetac.py286 else if (x < 0.0 && x > -0.01)CODE
HIGHcupyx/scipy/special/_gammainc.py653 if (x < 0 || a < 0) {CODE
HIGHcupyx/scipy/special/_gammainc.py708 if (x < 0 || a < 0) {CODE
HIGHcupyx/scipy/special/_ellip.py137 if (m < 0.0 || m > 1.0 || isnan(m)) {CODE
HIGHcupyx/scipy/special/_beta.py212 if (b == (int)b && 1 - a - b > 0) {CODE
HIGHcupyx/scipy/special/_beta.py259 if (fabs(y) > MAXGAM || fabs(a) > MAXGAM || fabs(b) > MAXGAM) {CODE
HIGHcupyx/scipy/special/_beta.py306 if (b == (int)b && 1 - a - b > 0) {CODE
HIGHcupyx/scipy/special/_beta.py357 if (fabs(y) > MAXGAM || fabs(a) > MAXGAM || fabs(b) > MAXGAM) {CODE
HIGHcupyx/scipy/special/_beta.py482 if (aa < 0.0 || bb < 0.0 || xx < 0 || xx > 1) {CODE
HIGHcupyx/scipy/special/_beta.py485 if ((aa == 0 && bb == 0) || (isinf(aa) && isinf(bb))) {CODE
HIGHcupyx/scipy/special/_beta.py488 if (aa == 0 || isinf(bb)) {CODE
HIGHcupyx/scipy/special/_beta.py491 if (bb == 0 || isinf(aa)) {CODE
HIGHcupyx/scipy/special/_beta.py503 if ((bb * xx) <= 1.0 && xx <= 0.95) {CODE
HIGHcupyx/scipy/special/_beta.py524 if (flag == 1 && (b * x) <= 1.0 && x <= 0.95) {CODE
81 more matches not shown…
Deep Nesting202 hits · 194 pts
SeverityFileLineSnippetContext
LOW.pfnci/generate.py515CODE
LOW.pfnci/generate.py550CODE
LOW.pfnci/generate.py650CODE
LOW.pfnci/generate.py324CODE
LOWinstall/cupy_builder/_compiler.py18CODE
LOWinstall/cupy_builder/cupy_setup_build.py94CODE
LOWinstall/cupy_builder/cupy_setup_build.py298CODE
LOWinstall/cupy_builder/install_build.py487CODE
LOWci/tools/prepare_wheel_build.py96CODE
LOWtests/conftest.py119CODE
LOWtests/cupy_tests/manipulation_tests/test_basic.py114CODE
LOWtests/cupy_tests/fft_tests/test_callback.py359CODE
LOWtests/cupy_tests/fft_tests/test_callback.py788CODE
LOWtests/cupy_tests/fft_tests/test_fft.py24CODE
LOWtests/cupy_tests/fft_tests/test_fft.py38CODE
LOWtests/cupy_tests/fft_tests/test_fft.py40CODE
LOWtests/cupy_tests/linalg_tests/test_einsum.py33CODE
LOWtests/cupy_tests/misc_tests/test_memory_ranges.py68CODE
LOWtests/cupy_tests/cuda_tests/test_nccl.py96CODE
LOWtests/cupy_tests/cuda_tests/test_memory.py51CODE
LOWtests/cupy_tests/core_tests/test_multithreading.py19CODE
LOWtests/cupy_tests/core_tests/test_multithreading.py114CODE
LOWtests/cupy_tests/core_tests/test_multithreading.py142CODE
LOWtests/cupy_tests/core_tests/test_mdspan.py25CODE
LOWtests/cupy_tests/core_tests/test_include.py35CODE
LOWtests/cupy_tests/core_tests/test_dlpack.py17CODE
LOWtests/cupy_tests/core_tests/test_dlpack.py271CODE
LOW…sts/cupy_tests/core_tests/fusion_tests/fusion_utils.py14CODE
LOW…sts/cupy_tests/core_tests/fusion_tests/fusion_utils.py46CODE
LOWtests/typing_tests/test_typing.py48CODE
LOWtests/cupyx_tests/distributed_tests/test_array_nccl.py658CODE
LOWtests/cupyx_tests/jit_tests/test_raw.py795CODE
LOW…sts/cupyx_tests/scipy_tests/sparse_tests/test_index.py428CODE
LOWtests/cupyx_tests/scipy_tests/sparse_tests/test_csr.py1939CODE
LOWtests/cupyx_tests/scipy_tests/sparse_tests/test_csr.py1960CODE
LOW…x_tests/scipy_tests/ndimage_tests/test_measurements.py322CODE
LOW…/cupyx_tests/scipy_tests/ndimage_tests/test_filters.py108CODE
LOW…/cupyx_tests/scipy_tests/ndimage_tests/test_filters.py252CODE
LOW…x_tests/scipy_tests/signal_tests/test_filter_design.py230CODE
LOW…sts/scipy_tests/signal_tests/test_iir_filter_design.py203CODE
LOW…yx_tests/scipy_tests/interpolate_tests/test_bspline.py452CODE
LOW…upyx_tests/scipy_tests/interpolate_tests/test_ppoly.py603CODE
LOWcupy/_environment.py142CODE
LOWcupy/_environment.py268CODE
LOWcupy/cublas.py29CODE
LOWcupy/cublas.py135CODE
LOWcupy/cublas.py168CODE
LOWcupy/cublas.py201CODE
LOWcupy/cublas.py315CODE
LOWcupy/cublas.py348CODE
LOWcupy/cublas.py432CODE
LOWcupy/cublas.py691CODE
LOWcupy/cublas.py784CODE
LOWcupy/cublas.py872CODE
LOWcupy/cublas.py932CODE
LOWcupy/_statistics/histogram.py121CODE
LOWcupy/_statistics/histogram.py180CODE
LOWcupy/_statistics/histogram.py292CODE
LOWcupy/_statistics/histogram.py520CODE
LOWcupy/_statistics/order.py190CODE
142 more matches not shown…
Decorative Section Separators99 hits · 184 pts
SeverityFileLineSnippetContext
MEDIUMtests/cupy_tests/cuda_tests/test_pinned_memory.py28# -----------------------------------------------------------------------------COMMENT
MEDIUMtests/cupy_tests/cuda_tests/test_pinned_memory.py68# -----------------------------------------------------------------------------COMMENT
MEDIUMtests/cupy_tests/cuda_tests/test_memory.py287# -----------------------------------------------------------------------------COMMENT
MEDIUM…cupyx_tests/scipy_tests/sparse_tests/test_construct.py484# ---------------------------------------------------------------------------COMMENT
MEDIUM…cupyx_tests/scipy_tests/sparse_tests/test_construct.py486# ---------------------------------------------------------------------------COMMENT
MEDIUM…/scipy_tests/sparse_tests/test_sparse_int64_indices.py2727# ===================================================================COMMENT
MEDIUM…/scipy_tests/sparse_tests/test_sparse_int64_indices.py2732# ===================================================================COMMENT
MEDIUM…/scipy_tests/sparse_tests/test_sparse_int64_indices.py2908# ===================================================================COMMENT
MEDIUM…/scipy_tests/sparse_tests/test_sparse_int64_indices.py2910# ===================================================================COMMENT
MEDIUM…_tests/scipy_tests/signal_tests/test_savitzky_golay.py39# --------------------------------------------------------------------COMMENT
MEDIUM…_tests/scipy_tests/signal_tests/test_savitzky_golay.py41# --------------------------------------------------------------------COMMENT
MEDIUM…_tests/scipy_tests/signal_tests/test_savitzky_golay.py165# --------------------------------------------------------------------COMMENT
MEDIUM…_tests/scipy_tests/signal_tests/test_savitzky_golay.py167# --------------------------------------------------------------------COMMENT
MEDIUM…_tests/scipy_tests/signal_tests/test_savitzky_golay.py204# --------------------------------------------------------------------COMMENT
MEDIUM…_tests/scipy_tests/signal_tests/test_savitzky_golay.py206# --------------------------------------------------------------------COMMENT
MEDIUMcupy/__init__.py79# =============================================================================STRING
MEDIUMcupy/__init__.py84# =============================================================================STRING
MEDIUMcupy/__init__.py86# -----------------------------------------------------------------------------STRING
MEDIUMcupy/__init__.py88# -----------------------------------------------------------------------------STRING
MEDIUMcupy/__init__.py102# -----------------------------------------------------------------------------STRING
MEDIUMcupy/__init__.py104# -----------------------------------------------------------------------------STRING
MEDIUMcupy/__init__.py107# -----------------------------------------------------------------------------STRING
MEDIUMcupy/__init__.py109# -----------------------------------------------------------------------------STRING
MEDIUMcupy/__init__.py167# -----------------------------------------------------------------------------STRING
MEDIUMcupy/__init__.py169# -----------------------------------------------------------------------------STRING
MEDIUMcupy/__init__.py177# -----------------------------------------------------------------------------STRING
MEDIUMcupy/__init__.py179# -----------------------------------------------------------------------------STRING
MEDIUMcupy/__init__.py181# =============================================================================STRING
MEDIUMcupy/__init__.py186# =============================================================================STRING
MEDIUMcupy/__init__.py188# -----------------------------------------------------------------------------STRING
MEDIUMcupy/__init__.py190# -----------------------------------------------------------------------------STRING
MEDIUMcupy/__init__.py230# -----------------------------------------------------------------------------STRING
MEDIUMcupy/__init__.py232# -----------------------------------------------------------------------------STRING
MEDIUMcupy/__init__.py239# -----------------------------------------------------------------------------STRING
MEDIUMcupy/__init__.py241# -----------------------------------------------------------------------------STRING
MEDIUMcupy/__init__.py403# -----------------------------------------------------------------------------STRING
MEDIUMcupy/__init__.py405# -----------------------------------------------------------------------------STRING
MEDIUMcupy/__init__.py408# -----------------------------------------------------------------------------STRING
MEDIUMcupy/__init__.py410# -----------------------------------------------------------------------------STRING
MEDIUMcupy/__init__.py413# -----------------------------------------------------------------------------STRING
MEDIUMcupy/__init__.py415# -----------------------------------------------------------------------------STRING
MEDIUMcupy/__init__.py551# -----------------------------------------------------------------------------STRING
MEDIUMcupy/__init__.py553# -----------------------------------------------------------------------------STRING
MEDIUMcupy/__init__.py563# -----------------------------------------------------------------------------STRING
MEDIUMcupy/__init__.py565# -----------------------------------------------------------------------------STRING
MEDIUMcupy/__init__.py695# -----------------------------------------------------------------------------STRING
MEDIUMcupy/__init__.py697# -----------------------------------------------------------------------------STRING
MEDIUMcupy/__init__.py707# -----------------------------------------------------------------------------STRING
MEDIUMcupy/__init__.py709# -----------------------------------------------------------------------------STRING
MEDIUMcupy/__init__.py713# -----------------------------------------------------------------------------STRING
MEDIUMcupy/__init__.py715# -----------------------------------------------------------------------------STRING
MEDIUMcupy/__init__.py769# -----------------------------------------------------------------------------STRING
MEDIUMcupy/__init__.py771# -----------------------------------------------------------------------------STRING
MEDIUMcupy/__init__.py781# -----------------------------------------------------------------------------STRING
MEDIUMcupy/__init__.py783# -----------------------------------------------------------------------------STRING
MEDIUMcupy/__init__.py60# =============================================================================STRING
MEDIUMcupy/__init__.py62# =============================================================================STRING
MEDIUMcupy/__init__.py121# -----------------------------------------------------------------------------STRING
MEDIUMcupy/__init__.py123# -----------------------------------------------------------------------------STRING
MEDIUMcupy/__init__.py135# -----------------------------------------------------------------------------STRING
39 more matches not shown…
Cross-File Repetition26 hits · 130 pts
SeverityFileLineSnippetContext
HIGHcupyx/signal/_radartools/_radartools.py0upfirdn implementation. functions defined here were ported directly from cusignal under terms of the mit license, under STRING
HIGHcupyx/signal/_convolution/_convolve.py0upfirdn implementation. functions defined here were ported directly from cusignal under terms of the mit license, under STRING
HIGHcupyx/scipy/signal/_resample.py0upfirdn implementation. functions defined here were ported directly from cusignal under terms of the mit license, under STRING
HIGHcupyx/scipy/signal/_wavelets.py0upfirdn implementation. functions defined here were ported directly from cusignal under terms of the mit license, under STRING
HIGHcupyx/scipy/signal/_waveforms.py0upfirdn implementation. functions defined here were ported directly from cusignal under terms of the mit license, under STRING
HIGHcupyx/scipy/signal/_spectral_impl.py0upfirdn implementation. functions defined here were ported directly from cusignal under terms of the mit license, under STRING
HIGHcupyx/scipy/signal/_bsplines.py0upfirdn implementation. functions defined here were ported directly from cusignal under terms of the mit license, under STRING
HIGHcupyx/scipy/signal/_spectral.py0upfirdn implementation. functions defined here were ported directly from cusignal under terms of the mit license, under STRING
HIGHcupyx/scipy/signal/_peak_finding.py0upfirdn implementation. functions defined here were ported directly from cusignal under terms of the mit license, under STRING
HIGHcupyx/scipy/signal/_upfirdn.py0upfirdn implementation. functions defined here were ported directly from cusignal under terms of the mit license, under STRING
HIGHcupyx/scipy/special/_gammasgn.py0the source code here is an adaptation with minimal changes from the following files in scipy's bundled cephes library: hSTRING
HIGHcupyx/scipy/special/_zetac.py0the source code here is an adaptation with minimal changes from the following files in scipy's bundled cephes library: hSTRING
HIGHcupyx/scipy/special/_poch.py0the source code here is an adaptation with minimal changes from the following files in scipy's bundled cephes library: hSTRING
HIGHcupyx/scipy/sparse/_base.py0returns the k-th diagonal of the matrix. args: k (int, optional): which diagonal to get, corresponding to elements a[i, STRING
HIGHcupyx/scipy/sparse/_coo.py0returns the k-th diagonal of the matrix. args: k (int, optional): which diagonal to get, corresponding to elements a[i, STRING
HIGHcupyx/scipy/sparse/_dia.py0returns the k-th diagonal of the matrix. args: k (int, optional): which diagonal to get, corresponding to elements a[i, STRING
HIGHcupyx/scipy/sparse/_csr.py0returns a copy of the array on host memory. args: stream (cupy.cuda.stream): cuda stream object. if it is given, the copSTRING
HIGHcupyx/scipy/sparse/_coo.py0returns a copy of the array on host memory. args: stream (cupy.cuda.stream): cuda stream object. if it is given, the copSTRING
HIGHcupyx/scipy/sparse/_dia.py0returns a copy of the array on host memory. args: stream (cupy.cuda.stream): cuda stream object. if it is given, the copSTRING
HIGHcupyx/scipy/sparse/_csr.py0converts the matrix to coordinate format. args: copy (bool): if ``false``, it shares data arrays as much as possible. reSTRING
HIGHcupyx/scipy/sparse/_coo.py0converts the matrix to coordinate format. args: copy (bool): if ``false``, it shares data arrays as much as possible. reSTRING
HIGHcupyx/scipy/sparse/_csc.py0converts the matrix to coordinate format. args: copy (bool): if ``false``, it shares data arrays as much as possible. reSTRING
HIGHcupyx/scipy/sparse/_csr.py0converts the matrix to compressed sparse row format. args: copy (bool): if ``false``, it shares data arrays as much as pSTRING
HIGHcupyx/scipy/sparse/_coo.py0converts the matrix to compressed sparse row format. args: copy (bool): if ``false``, it shares data arrays as much as pSTRING
HIGHcupyx/scipy/sparse/_dia.py0converts the matrix to compressed sparse row format. args: copy (bool): if ``false``, it shares data arrays as much as pSTRING
HIGHcupyx/scipy/sparse/_csc.py0converts the matrix to compressed sparse row format. args: copy (bool): if ``false``, it shares data arrays as much as pSTRING
Self-Referential Comments39 hits · 112 pts
SeverityFileLineSnippetContext
MEDIUMinstall/cupy_builder/_features.py67 # Define a feature from dict.COMMENT
MEDIUMtests/cupy_tests/statistics_tests/test_order.py68 # Create an allocator that guarantees array allocated inCOMMENT
MEDIUMtests/cupy_tests/lib_tests/test_strided_tricks.py77 # Create a 0-D array (scalar) for testingCOMMENT
MEDIUMtests/cupy_tests/cuda_tests/test_cufft.py103# This class contains a few simple tests for the new XtPlanNd wrapper. A full-COMMENT
MEDIUMtests/cupy_tests/cuda_tests/test_stream.py349 # Create a real CUDA stream to get a valid pointerCOMMENT
MEDIUMtests/cupy_tests/cuda_tests/test_stream.py353 # Create a CuPy stream from the mock streamCOMMENT
MEDIUM…ts/cupyx_tests/scipy_tests/sparse_tests/test_linalg.py1172 # Define the generalized eigenvalue problem Av = cBvCOMMENT
MEDIUM…ts/cupyx_tests/scipy_tests/sparse_tests/test_linalg.py1370 # Define the generalized eigenvalue problem Av = cBvCOMMENT
MEDIUM…s/cupyx_tests/scipy_tests/signal_tests/test_dltisys.py24 # Create an input matrix with inputs down the columns (3 cols) and itsCOMMENT
MEDIUM…s/cupyx_tests/scipy_tests/signal_tests/test_dltisys.py46 # Create an input matrix with inputs down the columns (3 cols) and itsCOMMENT
MEDIUM…s/cupyx_tests/scipy_tests/signal_tests/test_dltisys.py64 # Create an input matrix with inputs down the columns (3 cols) and itsCOMMENT
MEDIUM…x_tests/scipy_tests/signal_tests/test_filter_design.py836 # Create a gammatone filter centered at 1000 Hz.COMMENT
MEDIUM…sts/scipy_tests/signal_tests/test_iir_filter_design.py1090 # Create a notching or peaking comb filter at 1000 HzCOMMENT
MEDIUM…sts/scipy_tests/signal_tests/test_iir_filter_design.py1105 # Create a notching or peaking comb filterCOMMENT
MEDIUM…sts/scipy_tests/signal_tests/test_iir_filter_design.py1131 # Create a notching comb filterCOMMENT
MEDIUM…/cupyx_tests/scipy_tests/signal_tests/test_spectral.py49 # Define the array of frequencies for which to compute the periodogramCOMMENT
MEDIUM…/cupyx_tests/scipy_tests/signal_tests/test_spectral.py79 # Define the array of frequencies for which to compute the periodogramCOMMENT
MEDIUM…/cupyx_tests/scipy_tests/signal_tests/test_spectral.py114 # Define the array of frequencies for which to compute the periodogramCOMMENT
MEDIUM…/cupyx_tests/scipy_tests/signal_tests/test_spectral.py145 # Define the array of frequencies for which to compute the periodogramCOMMENT
MEDIUMcupy/linalg/_norms.py186 # This function is implemented as a direct adaption of the numpyCOMMENT
MEDIUMcupy/linalg/_product.py188 # Create the output arraySTRING
MEDIUMcupy/_padding/pad.py609 # Create a new zero padded arrayCOMMENT
MEDIUMdocs/source/conf.py6# This file is execfile()d with the current directory set to itsCOMMENT
MEDIUMcupyx/distributed/_nccl_comm.py760 # Create a sparse matrix from the received arraysCOMMENT
MEDIUMcupyx/distributed/array/_array.py224 # This method is called from cupy.ufunc and cupy.ElementwiseKernelCOMMENT
MEDIUMcupyx/distributed/array/_array.py230 # This method is called from _SimpleReductionKernel and elementaryCOMMENT
MEDIUMcupyx/scipy/interpolate/_rbfinterp.py12# Define the kernel functions.COMMENT
MEDIUMcupyx/scipy/sparse/_compressed.py1635 # Create the vector to hold outputCOMMENT
MEDIUMcupyx/scipy/sparse/_index.py284# Create a filter mask based on the lowest value of orderSTRING
MEDIUMcupyx/scipy/sparse/_coo.py522 # Define the array of data consisting of the entries to be added.COMMENT
MEDIUMcupyx/scipy/spatial/delaunay_2d/_tri.py101 # Create the initial triangulationCOMMENT
MEDIUMcupyx/scipy/signal/_ltisys.py1605 # Create a reasonable time interval.STRING
MEDIUMcupyx/scipy/signal/_ltisys.py2264 # This method is useful only because we need to be able to callSTRING
MEDIUMcupyx/scipy/signal/_signaltools.py1149 # The following code computes the result shown in the formulaSTRING
MEDIUMcupyx/scipy/signal/_signaltools_core.py201 # This function is 10x faster in Cython (but only 1.7us in Python). Can beCOMMENT
MEDIUMcupyx/scipy/signal/_fir_filter_design.py586 # Create the window to apply to the filter coefficients.COMMENT
MEDIUMexamples/cg/cg.py54 # Create the large symmetric matrix 'A'.COMMENT
MEDIUMexamples/cufft/callback/jit_r2c_c2r_string.py64# Define a structure used to pass in the window sizeSTRING
MEDIUMexamples/finance/black_scholes.py14# The following code shows that CuPy enables us to write algorithms for GPUsCOMMENT
AI Structural Patterns107 hits · 102 pts
SeverityFileLineSnippetContext
LOWtests/cupy_tests/fft_tests/test_fft.py799CODE
LOWtests/cupy_tests/fft_tests/test_fft.py1167CODE
LOWtests/cupy_tests/linalg_tests/test_norms.py254CODE
LOWtests/cupy_tests/sorting_tests/test_sort.py176CODE
LOWtests/cupy_tests/sorting_tests/test_sort.py184CODE
LOWtests/cupy_tests/sorting_tests/test_sort.py192CODE
LOWtests/cupy_tests/sorting_tests/test_sort.py200CODE
LOWtests/cupy_tests/statistics_tests/test_correlation.py60CODE
LOWtests/cupy_tests/statistics_tests/test_correlation.py74CODE
LOWtests/cupy_tests/statistics_tests/test_histogram.py431CODE
LOWtests/cupy_tests/functional_tests/test_vectorize.py380CODE
LOWtests/cupy_tests/core_tests/test_nep50_examples.py55CODE
LOW…ts/cupyx_tests/scipy_tests/sparse_tests/test_linalg.py1057CODE
LOW…pyx_tests/scipy_tests/signal_tests/test_signaltools.py439CODE
LOW…pyx_tests/scipy_tests/signal_tests/test_signaltools.py475CODE
LOW…pyx_tests/scipy_tests/signal_tests/test_signaltools.py515CODE
LOW…pyx_tests/scipy_tests/signal_tests/test_signaltools.py568CODE
LOW…pyx_tests/scipy_tests/signal_tests/test_signaltools.py915CODE
LOW…pyx_tests/scipy_tests/signal_tests/test_signaltools.py959CODE
LOW…pyx_tests/scipy_tests/signal_tests/test_signaltools.py987CODE
LOW…pyx_tests/scipy_tests/signal_tests/test_signaltools.py1012CODE
LOW…sts/scipy_tests/signal_tests/test_iir_filter_design.py168CODE
LOW…sts/scipy_tests/signal_tests/test_iir_filter_design.py174CODE
LOW…yx_tests/scipy_tests/signal_tests/test_peak_finding.py51CODE
LOW…yx_tests/scipy_tests/signal_tests/test_peak_finding.py64CODE
LOW…yx_tests/scipy_tests/signal_tests/test_peak_finding.py77CODE
LOW…yx_tests/scipy_tests/signal_tests/test_peak_finding.py87CODE
LOW…yx_tests/scipy_tests/signal_tests/test_peak_finding.py152CODE
LOW…yx_tests/scipy_tests/signal_tests/test_peak_finding.py162CODE
LOW…yx_tests/scipy_tests/signal_tests/test_peak_finding.py233CODE
LOW…cupyx_tests/scipy_tests/signal_tests/test_iir_utils.py44CODE
LOW…cupyx_tests/scipy_tests/signal_tests/test_iir_utils.py77CODE
LOW…cupyx_tests/scipy_tests/signal_tests/test_iir_utils.py113CODE
LOW…cupyx_tests/scipy_tests/signal_tests/test_iir_utils.py154CODE
LOW…cupyx_tests/scipy_tests/signal_tests/test_iir_utils.py189CODE
LOW…cupyx_tests/scipy_tests/signal_tests/test_iir_utils.py235CODE
LOW…s/cupyx_tests/scipy_tests/signal_tests/test_upfirdn.py59CODE
LOW…s/cupyx_tests/scipy_tests/spatial_tests/test_kdtree.py341CODE
LOW…cupyx_tests/scipy_tests/spatial_tests/test_distance.py105CODE
LOW…cupyx_tests/scipy_tests/spatial_tests/test_distance.py112CODE
LOW…cupyx_tests/scipy_tests/spatial_tests/test_distance.py138CODE
LOW…cupyx_tests/scipy_tests/spatial_tests/test_distance.py163CODE
LOW…cupyx_tests/scipy_tests/spatial_tests/test_distance.py170CODE
LOW…cupyx_tests/scipy_tests/spatial_tests/test_distance.py177CODE
LOW…cupyx_tests/scipy_tests/spatial_tests/test_distance.py184CODE
LOW…cupyx_tests/scipy_tests/spatial_tests/test_distance.py205CODE
LOW…cupyx_tests/scipy_tests/spatial_tests/test_distance.py212CODE
LOW…cupyx_tests/scipy_tests/spatial_tests/test_distance.py219CODE
LOW…cupyx_tests/scipy_tests/spatial_tests/test_distance.py235CODE
LOW…_tests/scipy_tests/interpolate_tests/test_ndbspline.py220CODE
LOW…_tests/scipy_tests/interpolate_tests/test_ndbspline.py301CODE
LOW…_tests/scipy_tests/interpolate_tests/test_ndbspline.py319CODE
LOW…_tests/scipy_tests/interpolate_tests/test_ndbspline.py334CODE
LOW…_tests/scipy_tests/interpolate_tests/test_ndbspline.py350CODE
LOWcupy/linalg/_norms.py16CODE
LOWcupy/linalg/_product.py17CODE
LOWcupy/_core/_gufuncs.py611CODE
LOWcupy/cuda/compiler.py346CODE
LOWcupy/cuda/compiler.py406CODE
LOWcupy/cuda/compiler.py624CODE
47 more matches not shown…
Over-Commented Block98 hits · 97 pts
SeverityFileLineSnippetContext
LOWpyproject.toml101 # SciPy 1.17 announces an upcoming dtype change inCOMMENT
LOW.pfnci/linux/tests/actions/fetch-wheel.sh1#!/bin/bashCOMMENT
LOWinstall/cupy_builder/_compiler.py41 #COMMENT
LOWinstall/cupy_builder/_compiler.py61 # See the documentation of each CUDA version for the list of supportedCOMMENT
LOWcupy_backends/cupy_cutensor.h1#ifndef INCLUDE_GUARD_CUPY_CUTENSOR_HCOMMENT
LOWcupy_backends/cupy_rand.h1#ifndef INCLUDE_GUARD_CUPY_CURAND_HCOMMENT
LOWcupy_backends/cupy_complex.h1#ifndef INCLUDE_GUARD_CUPY_COMPLEX_HCOMMENT
LOWcupy_backends/cupy_blas.h1#ifndef INCLUDE_GUARD_CUPY_CUBLAS_HCOMMENT
LOWcupy_backends/cupy_cusparselt.h1#ifndef INCLUDE_GUARD_CUPY_CUSPARSELT_HCOMMENT
LOWcupy_backends/cupy_backend_runtime.h1#ifndef INCLUDE_GUARD_CUPY_CUDA_RUNTIME_HCOMMENT
LOWcupy_backends/cupy_sparse.h1#ifndef INCLUDE_GUARD_CUPY_CUSPARSE_HCOMMENT
LOWcupy_backends/cupy_nccl.h1#ifndef INCLUDE_GUARD_CUPY_NCCL_HCOMMENT
LOWcupy_backends/cupy_profiler.h1#ifndef INCLUDE_GUARD_CUPY_PROFILER_HCOMMENT
LOWcupy_backends/cupy_backend.h1#ifndef INCLUDE_GUARD_CUPY_CUDA_HCOMMENT
LOWcupy_backends/cuda/cupy_cuda.h1#ifndef INCLUDE_GUARD_CUDA_CUPY_CUDA_HCOMMENT
LOWcupy_backends/cuda/cupy_cusolver.h1#ifndef INCLUDE_GUARD_CUDA_CUPY_CUSOLVER_HCOMMENT
LOWcupy_backends/cuda/cupy_cuda_profiler_api.h1#ifndef INCLUDE_GUARD_CUDA_CUPY_PROFILER_HCOMMENT
LOWcupy_backends/cuda/cupy_nccl.h1#ifndef INCLUDE_GUARD_CUDA_CUPY_NCCL_HCOMMENT
LOWcupy_backends/hip/cupy_hipblas.h1#ifndef INCLUDE_GUARD_HIP_CUPY_HIPBLAS_HCOMMENT
LOWcupy_backends/hip/cupy_hip_common.h1#ifndef INCLUDE_GUARD_HIP_CUPY_COMMON_HCOMMENT
LOWci/tools/ci-guard.sh1#!/bin/bashCOMMENT
LOW…upy_tests/core_tests/fusion_tests/test_optimization.py21 return retCOMMENT
LOW…yx_tests/signal_tests/acoustics_tests/test_cepstrum.py1# Copyright (c) 2019-2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOW…sts/scipy_tests/signal_tests/test_fir_filter_design.py301 def test_bad_args(self):COMMENT
LOW…sts/scipy_tests/signal_tests/test_iir_filter_design.py301 def test_ba_output(self, xp, scp,):COMMENT
LOW…sts/scipy_tests/signal_tests/test_iir_filter_design.py401 # 1.782966433781250e+14, 0, # Matlab: 7.216787944356781e+02,COMMENT
LOW…sts/scipy_tests/signal_tests/test_iir_filter_design.py501# 1.000000000000000e+00, 0, # Matlab: 1.743506051190569e-13,COMMENT
LOW…s/cupyx_tests/scipy_tests/signal_tests/test_upfirdn.py1#COMMENT
LOW…s/cupyx_tests/scipy_tests/signal_tests/test_upfirdn.py21#COMMENT
LOW…yx_tests/scipy_tests/interpolate_tests/test_polyint.py781 # array([[ 30, 30],COMMENT
LOWcupy/__init__.py161COMMENT
LOWcupy/__init__.py401from numpy import typename # NOQACOMMENT
LOWcupy/_logic/__init__.py1# Functions from the following NumPy documentCOMMENT
LOWcupy/_binary/__init__.py1# Functions from the following NumPy documentCOMMENT
LOWcupy/_statistics/__init__.py1# Functions from the following NumPy documentCOMMENT
LOWcupy/_core/include/cupy/cuComplex_bridge.h1/* COMMENT
LOWcupy/_core/include/cupy/cuComplex_bridge.h21COMMENT
LOWcupy/_core/include/cupy/complex/complex_inl.h161#include <cupy/complex/csinhf.h>COMMENT
LOWcupy/cuda/compiler.py541COMMENT
LOWcupy/cuda/cupy_cub.h1#ifndef INCLUDE_GUARD_CUPY_CUDA_CUB_HCOMMENT
LOWcupy/cuda/cupy_thrust.h1#ifndef INCLUDE_GUARD_CUPY_CUDA_THRUST_HCOMMENT
LOWcupy/_sorting/__init__.py1# Functions from the following NumPy documentCOMMENT
LOWcupy/_padding/__init__.py1# Functions from the following NumPy documentCOMMENT
LOWcupy/_manipulation/__init__.py1# Functions from the following NumPy documentCOMMENT
LOWcupy/_math/__init__.py1# Functions from the following NumPy documentCOMMENT
LOWcupy/_io/__init__.py1# Functions from the following NumPy documentCOMMENT
LOWcupy/_indexing/__init__.py1# Functions from the following NumPy documentCOMMENT
LOWcupy/_creation/__init__.py1# Functions from the following NumPy documentCOMMENT
LOWdocs/source/conf.py1# -*- coding: utf-8 -*-COMMENT
LOWdocs/source/conf.py41# Generate comparison table.COMMENT
LOWdocs/source/conf.py101COMMENT
LOWdocs/source/conf.py121#default_role = NoneCOMMENT
LOWdocs/source/conf.py141#keep_warnings = FalseCOMMENT
LOWdocs/source/conf.py201# "<project> v<release> documentation".COMMENT
LOWdocs/source/conf.py221# Add any extra paths that contain custom files (such as robots.txt orCOMMENT
LOWdocs/source/conf.py241# If false, no module index is generated.COMMENT
LOWdocs/source/conf.py261# base URL from which the finished HTML is served.COMMENT
LOWdocs/source/conf.py281# Output file base name for HTML help builder.COMMENT
LOWdocs/source/conf.py301# (source start file, target name, title,COMMENT
LOWcupyx/cusparse.py101 indptr: Compressed major-axis offsets.COMMENT
38 more matches not shown…
Excessive Try-Catch Wrapping66 hits · 64 pts
SeverityFileLineSnippetContext
LOWinstall/cupy_builder/_compiler.py256 except Exception:CODE
LOWinstall/cupy_builder/cupy_setup_build.py73 except Exception as e:CODE
LOWinstall/cupy_builder/install_build.py329 except Exception as e:STRING
LOWinstall/cupy_builder/install_build.py382 except Exception as e:STRING
LOWinstall/cupy_builder/install_build.py407 except Exception as e:STRING
LOWinstall/cupy_builder/install_build.py457 except Exception as e:STRING
LOWinstall/cupy_builder/install_build.py516 except Exception as e:CODE
LOWinstall/cupy_builder/install_build.py548 except Exception as e:CODE
LOWinstall/cupy_builder/install_build.py590 except Exception as e:CODE
LOWinstall/cupy_builder/install_build.py634 except Exception as e:STRING
LOWinstall/cupy_builder/install_build.py673 except Exception as e:STRING
LOWinstall/cupy_builder/install_build.py785 except Exception as e:STRING
LOWinstall/cupy_builder/install_build.py814 except Exception as e:STRING
LOWinstall/cupy_builder/install_build.py822 except Exception as e:STRING
LOWinstall/cupy_builder/_features.py474 except Exception as e:STRING
MEDIUMinstall/cupy_builder/_preflight.py11 print('Error: macOS is no longer supported', file=sys.stderr)CODE
LOWtests/cupy_tests/_gcp_kernel_cache_backend.py109 except Exception as e:CODE
LOWtests/cupy_tests/_gcp_kernel_cache_backend.py149 except Exception as e:CODE
LOWtests/cupy_tests/_gcp_kernel_cache_backend.py173 except Exception as e:CODE
LOWtests/cupy_tests/_gcp_kernel_cache_backend.py217 except Exception as e:CODE
LOWtests/cupy_tests/_gcp_kernel_cache_backend.py257 except Exception as e:CODE
LOWtests/cupy_tests/test_init.py53except Exception as e:CODE
LOWtests/cupy_tests/fft_tests/test_fft.py55 except Exception:CODE
LOWtests/cupy_tests/fft_tests/test_fft.py92 except Exception:CODE
LOWtests/cupy_tests/cuda_tests/test_profile.py27 except Exception:CODE
LOWtests/cupy_tests/cuda_tests/test_stream.py217 except Exception as e:CODE
LOWtests/cupy_tests/cuda_tests/test_stream.py233 except Exception as e:CODE
LOW…sts/cupy_tests/core_tests/fusion_tests/fusion_utils.py76 except Exception as e:CODE
MEDIUM…sts/cupy_tests/core_tests/fusion_tests/fusion_utils.py72def call(func, args, kwargs):CODE
LOWtests/typing_tests/test_run.py21 except Exception:CODE
LOWtests/cupyx_tests/profiler_tests/test_profile.py29 except Exception:CODE
LOWtests/cupyx_tests/profiler_tests/test_time_range.py40 except Exception:CODE
LOWtests/cupyx_tests/profiler_tests/test_time_range.py77 except Exception:CODE
MEDIUMcupy/__init__.py957def issubclass_(arg1, arg2):CODE
LOWcupy/__init__.py993 except Exception:STRING
LOWcupy/__init__.py1071 except Exception:STRING
LOWcupy/_environment.py464 except Exception as e:CODE
LOWcupy/_environment.py480 except Exception as e:CODE
LOWcupy/_environment.py721 except Exception as e:CODE
LOWcupy/_environment.py756 except Exception as e:CODE
LOWcupy/_logic/comparison.py155 except Exception:CODE
LOWcupy/linalg/_norms.py76 except Exception:CODE
MEDIUMcupy/cuda/compiler.py136def _get_cl_exe_dir() -> str | None:CODE
LOWcupy/cuda/compiler.py142 except Exception:CODE
LOWcupy/cuda/compiler.py150 except Exception as e:CODE
LOWcupy/cuda/compiler.py168 except Exception as e:CODE
LOWcupy/cuda/compiler.py316 except Exception as e: # C++ could throw all kinds of errorsCODE
LOWcupy/cuda/__init__.py108 except Exception:STRING
LOWcupy/testing/_loops.py863 except Exception:CODE
LOWcupy/testing/_loops.py1111 except Exception:CODE
LOWcupy/testing/_loops.py1213 except Exception:CODE
LOWcupy/testing/_loops.py1263 except Exception:CODE
LOWcupyx/cusparse.py2121 except Exception:CODE
LOWcupyx/cusparse.py2129 except Exception:CODE
LOWcupyx/_runtime.py232 except Exception:CODE
LOWcupyx/_runtime.py239 except Exception:CODE
LOWcupyx/distributed/_store.py36 except Exception as e:CODE
MEDIUMcupyx/distributed/_store.py32def run(self):CODE
LOWcupyx/distributed/_store_actions.py43 except Exception as e:CODE
LOWcupyx/jit/_compile.py74 except Exception as e:CODE
6 more matches not shown…
Docstring Block Structure12 hits · 60 pts
SeverityFileLineSnippetContext
HIGHcupy/linalg/_eigenvalue.py275 Return the eigenvalues and eigenvectors of a matrix. Returns two objects, a 1-D array containing the eigenvaluSTRING
HIGHcupy/linalg/_eigenvalue.py359 Compute the eigenvalues of a matrix. Main difference from eig: the eigenvectors are not computed. Args: STRING
HIGHcupy/_manipulation/add_remove.py198Find the unique elements of an array. Returns the sorted unique elements of an array. There are three optional STRING
HIGHcupyx/linalg/_solve.py35 Solves the linear system Ax = b using the Cholesky factorization of A. Batched input arrays are also supported.STRING
HIGHcupyx/scipy/ndimage/_measurements.py462Calculates the sum of the values of an n-D image array, optionally at specified sub-regions. Args: iSTRING
HIGHcupyx/scipy/linalg/_special_matrices.py331Discrete Fourier transform matrix. Create the matrix that computes the discrete Fourier transform of a sequenceSTRING
HIGHcupyx/scipy/linalg/_special_matrices.py400Returns a Fiedler companion matrix Given a polynomial coefficient array ``a``, this function forms a pentadiagoSTRING
HIGHcupyx/scipy/sparse/_sputils.py39Safely cast sparse array indices to ``idx_dtype``. Check the shape of *A* to determine if it is safe to cast its inSTRING
HIGHcupyx/scipy/sparse/_construct.py218Stacks sparse arrays/matrices horizontally (column wise). Args: blocks (sequence of cupyx.scipy.sparse): spSTRING
HIGHcupyx/scipy/sparse/_construct.py252Stacks sparse arrays/matrices vertically (row wise). Args: blocks (sequence of cupyx.scipy.sparse): sparse STRING
HIGHcupyx/scipy/sparse/_construct.py287Builds a sparse array/matrix from sparse sub-blocks Args: blocks (array_like): Grid of sparse oSTRING
HIGHcupyx/scipy/sparse/_construct.py546Construct a sparse matrix from diagonals. Args: diagonals (sequence of array_like): Sequence ofSTRING
AI Slop Vocabulary18 hits · 32 pts
SeverityFileLineSnippetContext
LOWtests/cupy_tests/math_tests/test_sumprod.py614 # smaller array instead, just return if array is too large.COMMENT
LOWtests/cupy_tests/core_tests/test_raw.py1221# cache directory it just set up.STRING
LOW…ests/scipy_tests/linalg_tests/test_special_matrices.py21 # Otherwise just pass the arg backCOMMENT
LOW…ests/scipy_tests/linalg_tests/test_special_matrices.py100 # Otherwise just pass the arg backCOMMENT
MEDIUM…s/scipy_tests/ndimage_tests/test_distance_transform.py96 # Fine sampling of shapes to make sure kernels are robust to all shapesCOMMENT
MEDIUM…s/scipy_tests/ndimage_tests/test_distance_transform.py161 """ensure default block_params is robust to anisotropic shape."""STRING
MEDIUM…s/scipy_tests/ndimage_tests/test_distance_transform.py171 """ensure default block_params is robust to anisotropic shape."""STRING
MEDIUM…s/scipy_tests/ndimage_tests/test_distance_transform.py181 """ensure default block_params is robust to anisotropic shape."""STRING
LOWcupy/_core/_gufuncs.py415 # optimized CUDA libraries so we just call themCOMMENT
LOWcupy/cuda/compiler.py683 # jitify is requested internally, just set the flagCOMMENT
MEDIUMcupy/testing/_random.py55# In some tests (which utilize condition.repeat or condition.retry),COMMENT
LOWcupyx/scipy/ndimage/_util.py120 # The indices actually use byte positions and we can't just useCOMMENT
LOWcupyx/scipy/interpolate/_rbfinterp.py774 # If this number is below 1e6 we just use 1e6COMMENT
LOWcupyx/scipy/interpolate/_polyint.py752 # For slinear or zero order spline, we just pass nans through.COMMENT
MEDIUMcupyx/scipy/spatial/delaunay_2d/_schewchuk.py34/* from the Web page http://www.cs.cmu.edu/~quake/robust.html . */COMMENT
LOWcupyx/scipy/signal/_ltisys.py1518 # Zero input: just use matrix exponentialSTRING
MEDIUMexamples/interoperability/mpi4py_multiple_devices.py26# is written. For more robust usage, you may need to consult the user manualCOMMENT
MEDIUM.github/workflows/ci-trigger.yml15# Least privilege: read-only by default; the two jobs below elevateCOMMENT
Redundant / Tautological Comments23 hits · 31 pts
SeverityFileLineSnippetContext
LOWtests/cupy_tests/linalg_tests/test_eigenvalue.py61 # Check if v @ vt is an identity matrixCOMMENT
LOWtests/cupy_tests/linalg_tests/test_eigenvalue.py375 # Check if the input matrix is not brokenCOMMENT
LOWtests/cupy_tests/linalg_tests/test_eigenvalue.py387 # Check if the input matrix is not brokenCOMMENT
LOWtests/cupy_tests/linalg_tests/test_eigenvalue.py476 # Check if the input matrix is not brokenCOMMENT
LOWtests/cupy_tests/linalg_tests/test_eigenvalue.py497 # Check if the input matrix is not brokenCOMMENT
LOWtests/cupy_tests/linalg_tests/test_decomposition.py203 # Check if the input matrix is not brokenCOMMENT
LOWtests/cupy_tests/linalg_tests/test_decomposition.py254 # Check if the input matrix is not brokenCOMMENT
LOWtests/cupy_tests/math_tests/test_sumprod.py683 testing.assert_array_equal(a, b) # Check if input array is overwrittenCODE
LOWtests/cupy_tests/math_tests/test_sumprod.py802 testing.assert_array_equal(a, b) # Check if input array is overwrittenCODE
LOWtests/cupy_tests/cuda_tests/test_compiler_cache.py82 # Write file with wrong hashCOMMENT
LOWtests/cupy_tests/creation_tests/test_from_data.py775 # Check if cupy.ndarray does not alterCOMMENT
LOWtests/cupy_tests/core_tests/test_mdspan.py297 # Check if strides are actually negativeCOMMENT
LOWtests/typing_tests/test_typing.py44 # Check if "mypy.ini" existsCOMMENT
LOWcupy/_core/_gufuncs.py417 # Check if the function supports out, order and other argsCOMMENT
LOWcupy/testing/_loops.py160 # Check if the error was not raised from test code.COMMENT
LOWcupyx/lapack.py400 # Check if batched should be usedCOMMENT
LOWcupyx/scipy/interpolate/_polyint.py730 # Check if we can delegate to numpy.interp (2x-10x faster).COMMENT
LOWcupyx/scipy/sparse/_construct.py368 # Check if any input block has int64 indices before conversionCOMMENT
LOWcupyx/scipy/spatial/delaunay_2d/_tri.py87 # Check if the three points are not coplanarCOMMENT
LOWcupyx/scipy/signal/_resample.py314 # Check if we can use faster real FFTCOMMENT
LOWcupyx/scipy/signal/_spectral_impl.py352 # Check if we can broadcast the outer axes togetherSTRING
LOWcupyx/scipy/signal/_spectral_impl.py379 # Check if x and y are the same length, zero-pad if necessarySTRING
LOWcupyx/scipy/signal/_fir_filter_design.py561 # Check if freq is strictly increasing after tweakCOMMENT
Dead Code9 hits · 18 pts
SeverityFileLineSnippetContext
MEDIUMtests/cupy_tests/testing_tests/test_loops.py422CODE
MEDIUMtests/cupy_tests/testing_tests/test_loops.py428CODE
MEDIUMtests/cupy_tests/testing_tests/test_loops.py433CODE
MEDIUMtests/cupy_tests/testing_tests/test_loops.py438CODE
MEDIUMtests/cupy_tests/testing_tests/test_loops.py443CODE
MEDIUMtests/cupy_tests/testing_tests/test_loops.py448CODE
MEDIUMtests/cupyx_tests/scipy_tests/sparse_tests/test_csr.py1281CODE
MEDIUM…ts/cupyx_tests/scipy_tests/signal_tests/test_ltisys.py573CODE
MEDIUM…ts/cupyx_tests/scipy_tests/signal_tests/test_ltisys.py574CODE
Modern Structural Boilerplate10 hits · 11 pts
SeverityFileLineSnippetContext
LOWcupy/linalg/__init__.py55__all__ = [CODE
LOWcupy/cuda/compiler.py45def _set_kernel_cache_backend(backend: _KernelCacheBackend) -> None:CODE
LOWcupy/fft/__init__.py21__all__ = ["fft", "fft2", "fftfreq", "fftn", "fftshift", "hfft",CODE
LOWcupyx/distributed/array/_chunk.py198 def set_identity_on_overwritten_entries(self, identity) -> None:CODE
LOWcupyx/jit/cg.py13__all__ = ['this_grid', 'this_thread_block',CODE
LOWcupyx/scipy/interpolate/_rgi.py3__all__ = ['RegularGridInterpolator', 'interpn']CODE
LOWcupyx/scipy/fft/_realtransforms.py46__all__ = ['dct', 'dctn', 'dst', 'dstn', 'idct', 'idctn', 'idst', 'idstn']CODE
LOWcupyx/scipy/fft/_fftlog.py25__all__ = ['fht', 'ifht']CODE
LOWcupyx/scipy/signal/_czt.py39__all__ = ['czt', 'zoom_fft', 'CZT', 'ZoomFFT', 'czt_points']CODE
LOWcupyx/scipy/signal/_fir_filter_design.py16__all__ = ["firls", "minimum_phase"]CODE
AI Response Leakage1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHcupyx/scipy/sparse/linalg/_solve.py989 # In this version we look at the diagonals of R in theCOMMENT
Verbosity Indicators3 hits · 6 pts
SeverityFileLineSnippetContext
LOWtests/cupy_tests/io_tests/test_base_n.py19 # We need to check if it cause a warning, and maybe it causes anCOMMENT
LOWcupyx/scipy/ndimage/_pba_3d.py305 # Step 1: decode the (z, y, x) coordinateCOMMENT
LOWcupyx/scipy/ndimage/_pba_3d.py308 # Step 2: compute the Euclidean distance based on this (z, y, x).COMMENT
Structural Annotation Overuse2 hits · 4 pts
SeverityFileLineSnippetContext
LOWcupyx/scipy/ndimage/_pba_3d.py305 # Step 1: decode the (z, y, x) coordinateCOMMENT
LOWcupyx/scipy/ndimage/_pba_3d.py308 # Step 2: compute the Euclidean distance based on this (z, y, x).COMMENT
TODO Padding1 hit · 2 pts
SeverityFileLineSnippetContext
LOW…cupyx_tests/scipy_tests/special_tests/test_gammainc.py94 # TODO: implement FuncData?COMMENT
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippetContext
LOWcupyx/scipy/ndimage/_pba_2d.py464 # make sure to crop any padding that was added here!COMMENT