AI Slop Code Risk Monitor

spack/spack

SlopCodeMonitor badge for spack/spack Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

A flexible package manager that supports multiple versions, configurations, platforms, and compilers.

22.3 Elevated pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for spack/spack, a Python project with 5,157 GitHub stars. SynthScan examined 267,057 lines of code across 1304 source files, recording 5186 pattern matches distributed across 22 syntactic categories. The legacy adjusted pattern signal is 22.3 (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.

22.3
Adjusted Signal
22.3
Raw Pattern Score
100%
Time Factor
2026-10-29
Last Push
5.2K
Stars
Python
Language
267.1K
Lines of Code
1.3K
Files
5.2K
Pattern Hits
2026-10-31
Scan Date
0.18
HC Hit Rate

Risk Review · Payload v1

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

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.

Cognitive Ownership Risk 51.2/100 · HIGH

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

Hallucinated Dependency & Supply Chain Risk 14.7/100 · LOW

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

Agent Over-Engineering Ratio 52.5/100 · HIGH

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

PR Review Velocity Impact 72.2/100 · HIGH

Which changes need focused human review? 5186 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 12HIGH 218MEDIUM 226LOW 4730

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 5186 distinct pattern matches across 22 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

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

Hyper-Verbose Identifiers3197 hits · 2652 pts
SeverityFileLineSnippetContext
LOW…st_repos/spack_repo/tutorial/packages/mpich/package.py77 def setup_dependent_build_environment(CODE
LOW…est_repos/spack_repo/tutorial/packages/hdf5/package.py370 def ensure_parallel_compiler_wrappers(self):CODE
LOW…ack_repo/builtin_mock/packages/cmake_client/package.py72 def setup_dependent_build_environment(CODE
LOW…epos/spack_repo/builtin_mock/packages/cmake/package.py52 def setup_dependent_build_environment(CODE
LOW…spack_repo/builtin_mock/packages/hash_test1/package.py32 def setup_dependent_build_environment(CODE
LOW…repo/builtin_mock/packages/compiler_wrapper/package.py145 def setup_dependent_build_environment(CODE
LOW…repo/builtin_mock/packages/compiler_wrapper/package.py244 def _spack_compiler_attribute(*, language: str) -> str:CODE
LOW…_mock/packages/autotools_config_replacement/package.py47 def create_the_package_sources(self):CODE
LOW…spack_repo/builtin_mock/packages/hash_test2/package.py28 def setup_dependent_build_environment(CODE
LOW…spack_repo/builtin_mock/packages/hash_test3/package.py27 def setup_dependent_build_environment(CODE
LOW…t_repos/spack_repo/builtin_mock/build_systems/cmake.py36 def flags_to_build_system_args(self, flags):CODE
LOW…pos/spack_repo/builtin_mock/build_systems/autotools.py30 def flags_to_build_system_args(self, flags):CODE
LOW.github/workflows/bin/format-rst.py159def _is_glossary_term_paragraph(node: nodes.Node) -> bool:CODE
LOWlib/spack/docs/conf.py238def add_package_api_version_line(app, what, name: str, obj, options, lines: List[str]):CODE
LOWlib/spack/spack/store.py270def _construct_upstream_dbs_from_install_roots(CODE
LOWlib/spack/spack/url_buildcache.py275 def get_relative_path_components(cls, component: BuildcacheComponent) -> List[str]:CODE
LOWlib/spack/spack/url_buildcache.py312 def get_buildcache_component_include_pattern(CODE
LOWlib/spack/spack/url_buildcache.py340 def current_component_to_media_type(cls, component: BuildcacheComponent) -> str:CODE
LOWlib/spack/spack/url_buildcache.py345 def oldest_component_to_media_type(cls, component: BuildcacheComponent) -> str:CODE
LOWlib/spack/spack/url_buildcache.py450 def verify_and_extract_manifest(cls, manifest_contents: str, verify: bool = False) -> dict:CODE
LOWlib/spack/spack/url_buildcache.py1027 def get_buildcache_component_include_pattern(CODE
LOWlib/spack/spack/url_buildcache.py1059 def verify_and_extract_manifest(cls, manifest_contents: str, verify: bool = False) -> dict:CODE
LOWlib/spack/spack/url_buildcache.py1139def _entries_from_cache_aws_cli(url: str, component_type: BuildcacheComponent):CODE
LOWlib/spack/spack/url_buildcache.py1201def _entries_from_cache_fallback(url: str, component_type: BuildcacheComponent):CODE
LOWlib/spack/spack/url_buildcache.py1317def compressed_json_from_dict(CODE
LOWlib/spack/spack/caches.py33def _create_global_misc_cache() -> spack.util.file_cache.FileCache:CODE
LOWlib/spack/spack/mixins.py52 def _filter_compiler_wrappers_impl(pkg_or_builder):CODE
LOWlib/spack/spack/verify_libraries.py181 def before_visit_symlinked_dir(self, root: str, rel_path: str, depth: int) -> bool:CODE
LOWlib/spack/spack/filesystem_view.py686 def _sanity_check_view_projection(self, specs):CODE
LOWlib/spack/spack/filesystem_view.py761 def _source_merge_visitor_to_merge_map(self, visitor: MultiPrefixMerger):CODE
LOWlib/spack/spack/filesystem_view.py773 def relative_metadata_dir_for_spec(self, spec):CODE
LOWlib/spack/spack/filesystem_view.py807 def get_relative_projection_for_spec(self, spec):CODE
LOWlib/spack/spack/filesystem_view.py894def is_folder_on_case_insensitive_filesystem(path: str) -> bool:CODE
LOWlib/spack/spack/config.py462 def _process_dict_keyname_overrides(data: YamlConfigDict) -> YamlConfigDict:CODE
LOWlib/spack/spack/config.py804 def active_include_section_scopes(self) -> List[ConfigScope]:CODE
LOWlib/spack/spack/config.py1652def config_paths_from_entry_points() -> List[Tuple[str, str]]:CODE
LOWlib/spack/spack/config.py2280def substitute_config_variables(path, config: Optional["Configuration"] = None):CODE
LOWlib/spack/spack/config.py2319def substitute_path_variables(path, config: Optional["Configuration"] = None):CODE
LOW⚡lib/spack/spack/audit.py570def _ensure_packages_are_pickeleable(pkgs, error_cls):CODE
LOW⚡lib/spack/spack/audit.py586def _ensure_packages_are_unparseable(pkgs, error_cls):CODE
LOW⚡lib/spack/spack/audit.py613def _ensure_all_versions_can_produce_a_fetcher(pkgs, error_cls):CODE
LOWlib/spack/spack/audit.py199def _search_duplicate_specs_in_externals(error_cls):CODE
LOWlib/spack/spack/audit.py240def _avoid_mismatched_variants(error_cls):CODE
LOWlib/spack/spack/audit.py304def _ensure_all_virtual_packages_have_default_providers(error_cls):CODE
LOWlib/spack/spack/audit.py320def _ensure_no_folders_without_package_py(error_cls):CODE
LOWlib/spack/spack/audit.py381def _check_build_test_callbacks(pkgs, error_cls):CODE
LOWlib/spack/spack/audit.py403def _directives_can_be_evaluated(pkgs, error_cls):CODE
LOWlib/spack/spack/audit.py479def _patch_fixes_are_deprecation_labels(pkgs, error_cls):CODE
LOWlib/spack/spack/audit.py522def _search_for_reserved_attributes_names_in_packages(pkgs, error_cls):CODE
LOWlib/spack/spack/audit.py554def _ensure_all_package_names_are_lowercase(pkgs, error_cls):CODE
LOWlib/spack/spack/audit.py666def _ensure_docstring_and_no_fixme(pkgs, error_cls):CODE
LOWlib/spack/spack/audit.py735def _ensure_env_methods_are_ported_to_builders(pkgs, error_cls):CODE
LOWlib/spack/spack/audit.py859def _ensure_when_is_not_combined_with_phase_callbacks(pkgs, error_cls):CODE
LOWlib/spack/spack/audit.py997def _variant_issues_in_directives(pkgs, error_cls):CODE
LOWlib/spack/spack/audit.py1089def _issues_in_depends_on_directive(pkgs, error_cls):CODE
LOWlib/spack/spack/audit.py1103 def check_virtual_with_variants(spec, msg):CODE
LOWlib/spack/spack/audit.py1179def _ensure_variant_defaults_are_parsable(pkgs, error_cls):CODE
LOWlib/spack/spack/audit.py1217def _ensure_variants_have_descriptions(pkgs, error_cls):CODE
LOWlib/spack/spack/audit.py1232def _version_constraints_are_satisfiable_by_some_version_in_repo(pkgs, error_cls):CODE
LOWlib/spack/spack/audit.py1283def _ensure_maintainers_are_not_placeholders(pkgs, error_cls):CODE
3137 more matches not shown…
Empty Error Handlers127 hits · 635 pts
SeverityFileLineSnippetContext
HIGH…untime_test/packages/intel_oneapi_compilers/package.py60except (RuntimeError, KeyError):CODE
HIGH…repos/spack_repo/builtin_mock/packages/llvm/package.py72except ProcessError:CODE
HIGH…pack_repo/builtin_mock/packages/gcc_runtime/package.py126except AttributeError:CODE
HIGH…epos/spack_repo/builtin_mock/build_systems/compiler.py99except spack.util.executable.ProcessError:CODE
HIGHlib/spack/spack/store.py181except FileNotFoundError:CODE
HIGHlib/spack/spack/enums.py81except KeyError:CODE
HIGHlib/spack/spack/config.py2222except ValueError:CODE
HIGHlib/spack/spack/audit.py1506except (AttributeError, ValueError):CODE
HIGHlib/spack/spack/build_environment.py1397except Exception:CODE
HIGHlib/spack/spack/build_environment.py1239except NameError:CODE
HIGHlib/spack/spack/tengine.py31except AttributeError:CODE
HIGHlib/spack/spack/package_base.py1058except spack.error.FetchError:CODE
HIGHlib/spack/spack/database.py987except FileNotFoundError:CODE
HIGHlib/spack/spack/database.py1195except BaseException:CODE
HIGHlib/spack/spack/buildcache_migrate.py112except (web_util.SpackWebError, OSError):CODE
HIGHlib/spack/spack/fetch_strategy.py783except OSError:CODE
HIGHlib/spack/spack/fetch_strategy.py1587except OSError:CODE
HIGHlib/spack/spack/binary_distribution.py850except (IndexError, ValueError):CODE
HIGHlib/spack/spack/binary_distribution.py2571except Exception:CODE
HIGHlib/spack/spack/spec.py1520except AttributeError:CODE
HIGHlib/spack/spack/install_test.py1106except spack.repo.UnknownPackageError:CODE
HIGHlib/spack/spack/old_installer.py1664except Exception:CODE
HIGHlib/spack/spack/old_installer.py2630except Exception:CODE
HIGHlib/spack/spack/repo.py934except spack.error.PatchLookupError:CODE
HIGHlib/spack/spack/repo.py1301except ValueError:CODE
HIGHlib/spack/spack/repo.py2378except Exception:CODE
HIGHlib/spack/spack/repo.py1912except spack.util.executable.ProcessError:CODE
HIGHlib/spack/spack/stage.py1039except FileNotFoundError:CODE
HIGHlib/spack/spack/stage.py747except OSError:CODE
HIGHlib/spack/spack/stage.py1032except (AlreadyExistsError, FileExistsError):CODE
HIGHlib/spack/spack/stage.py1044except FileNotFoundError:CODE
HIGHlib/spack/spack/relocate.py148except ValueError:CODE
HIGHlib/spack/spack/cray_manifest.py163except TypeError:CODE
HIGHlib/spack/spack/cmd/env.py523except (spack.config.ConfigFormatError, ev.SpackEnvironmentConfigError):CODE
HIGHlib/spack/spack/cmd/__init__.py177except spack.error.SpecSyntaxError:CODE
HIGHlib/spack/spack/cmd/__init__.py578except syaml.SpackYAMLError:CODE
HIGHlib/spack/spack/cmd/__init__.py756except (ValueError, OSError):CODE
HIGHlib/spack/spack/cmd/url.py221except UndetectableVersionError:CODE
HIGHlib/spack/spack/cmd/url.py233except UndetectableNameError:CODE
HIGHlib/spack/spack/cmd/blame.py229except spack.repo.UnknownNamespaceError:CODE
HIGHlib/spack/spack/cmd/uninstall.py207except ev.SpackEnvironmentError:CODE
HIGHlib/spack/spack/cmd/repo.py440except spack.repo.RepoError:CODE
HIGHlib/spack/spack/cmd/buildcache.py965except ValueError:CODE
HIGHlib/spack/spack/cmd/buildcache.py1063except ValueError:CODE
HIGHlib/spack/spack/cmd/external.py103except NoManifestFileError:CODE
HIGHlib/spack/spack/bootstrap/core.py620except OSError:CODE
HIGHlib/spack/spack/test/conftest.py747except ImportError:CODE
HIGHlib/spack/spack/test/stage.py541except spack.error.FetchError:CODE
HIGHlib/spack/spack/test/stage.py743except OSError:CODE
HIGHlib/spack/spack/test/cmd/env.py3805except Exception:CODE
HIGHlib/spack/spack/test/cmd/env.py4910except ev.SpackEnvironmentError:CODE
HIGHlib/spack/spack/test/util/lock_unix.py78except ImportError:CODE
HIGHlib/spack/spack/test/util/filesystem.py354except RuntimeError:CODE
HIGHlib/spack/spack/test/util/tty/log.py23except ImportError:CODE
HIGHlib/spack/spack/test/llnl/util/file_list.py319except IndexError:CODE
HIGHlib/spack/spack/util/lang.py794except KeyError:CODE
HIGHlib/spack/spack/util/git.py167except exe.ProcessError:CODE
HIGHlib/spack/spack/util/git.py178except exe.ProcessError:CODE
HIGHlib/spack/spack/util/web.py317except Exception:CODE
HIGHlib/spack/spack/util/argparsewriter.py201except BrokenPipeError:CODE
67 more matches not shown…
Unused Imports696 hits · 629 pts
SeverityFileLineSnippetContext
LOW…_runtime_test/packages/intel_oneapi_runtime/package.py4CODE
LOW…untime_test/packages/intel_oneapi_compilers/package.py8CODE
LOW…k_repo/compiler_runtime_test/packages/pkg_a/package.py6CODE
LOW…k_repo/compiler_runtime_test/packages/pkg_b/package.py6CODE
LOW…epos/spack_repo/builder_test/packages/gmake/package.py7CODE
LOW…ck_repo/builder_test/packages/custom_phases/package.py8CODE
LOW…epo/builder_test/packages/old_style_derived/package.py4CODE
LOW…/spack_repo/builder_test/packages/gnuconfig/package.py6CODE
LOW…/spack_repo/builder_test/packages/callbacks/package.py8CODE
LOW…ilder_test/packages/old_style_custom_phases/package.py8CODE
LOW…pack_repo/builder_test/packages/inheritance/package.py8CODE
LOW…o/builder_test/packages/old_style_autotools/package.py8CODE
LOW…po/builder_test/packages/builder_and_mixins/package.py8CODE
LOW…st_repos/spack_repo/tutorial/packages/mpich/package.py9CODE
LOW…est_repos/spack_repo/tutorial/packages/hdf5/package.py11CODE
LOW…/spack_repo/tutorial/packages/netlib_lapack/package.py7CODE
LOW…est_repos/spack_repo/tutorial/packages/elpa/package.py7CODE
LOW…epos/spack_repo/tutorial/packages/armadillo/package.py7CODE
LOW…test_repos/spack_repo/flags_test/packages/u/package.py6CODE
LOW…test_repos/spack_repo/flags_test/packages/t/package.py6CODE
LOW…test_repos/spack_repo/flags_test/packages/v/package.py6CODE
LOW…test_repos/spack_repo/flags_test/packages/x/package.py6CODE
LOW…test_repos/spack_repo/flags_test/packages/y/package.py6CODE
LOW…test_repos/spack_repo/flags_test/packages/w/package.py6CODE
LOW…duplicates_test/packages/unify_build_deps_b/package.py4CODE
LOW…s/spack_repo/duplicates_test/packages/gmake/package.py6CODE
LOW…duplicates_test/packages/unify_build_deps_c/package.py4CODE
LOW…/spack_repo/duplicates_test/packages/python/package.py6CODE
LOW…os/spack_repo/duplicates_test/packages/hdf5/package.py6CODE
LOW…_repo/duplicates_test/packages/pinned_gmake/package.py6CODE
LOW…spack_repo/duplicates_test/packages/cycle_a/package.py6CODE
LOW…k_repo/duplicates_test/packages/py_floating/package.py6CODE
LOW…repo/duplicates_test/packages/virtual_build/package.py6CODE
LOW…duplicates_test/packages/unify_build_deps_a/package.py4CODE
LOW…ck_repo/duplicates_test/packages/pkg_config/package.py6CODE
LOW…ck_repo/duplicates_test/packages/py_shapely/package.py6CODE
LOW…spack_repo/duplicates_test/packages/cycle_b/package.py6CODE
LOW…repo/duplicates_test/packages/py_setuptools/package.py6CODE
LOW…pack_repo/duplicates_test/packages/py_numpy/package.py6CODE
LOW…pack_repo/builtin_mock/packages/rpath_other/package.py7CODE
LOW…ck_repo/builtin_mock/packages/mixing_parent/package.py5CODE
LOW…iltin_mock/packages/depends_on_manyvariants/package.py7CODE
LOW…epo/builtin_mock/packages/git_url_top_level/package.py7CODE
LOW…s/spack_repo/builtin_mock/packages/cvs_test/package.py7CODE
LOW…n_mock/packages/url_only_override_with_gaps/package.py7CODE
LOW…repos/spack_repo/builtin_mock/packages/mesa/package.py4CODE
LOW…builtin_mock/packages/long_boost_dependency/package.py4CODE
LOW…k_repo/builtin_mock/packages/attributes_foo/package.py8CODE
LOW…_mock/packages/dep_with_variants_if_develop/package.py6CODE
LOW…ackages/autotools_conditional_variants_test/package.py8CODE
LOW…epos/spack_repo/builtin_mock/packages/hwloc/package.py7CODE
LOW…_repo/builtin_mock/packages/nosource_bundle/package.py8CODE
LOW…repos/spack_repo/builtin_mock/packages/ruff/package.py7CODE
LOW…ckages/conditional_constrained_dependencies/package.py6CODE
LOW…os/spack_repo/builtin_mock/packages/canfail/package.py6CODE
LOW…k/packages/test_dep_with_imposed_conditions/package.py7CODE
LOW…uiltin_mock/packages/module_manpath_prepend/package.py7CODE
LOW…tin_mock/packages/both_link_and_build_dep_a/package.py7CODE
LOW…po/builtin_mock/packages/multi_provider_mpi/package.py7CODE
LOW…ltin_mock/packages/conditional_build_system/package.py7CODE
636 more matches not shown…
Self-Referential Comments150 hits · 432 pts
SeverityFileLineSnippetContext
MEDIUM…in_mock/packages/variant_function_validator/package.py23 # Create a situation where, if the penalty for the variant defined by a functionCOMMENT
MEDIUM…repos/spack_repo/builtin_mock/packages/llvm/package.py91 # Create the minimal compiler that will fool `spack compiler find`COMMENT
MEDIUM…epos/spack_repo/builtin_mock/packages/symly/package.py43 # Create a symlinked directory.STRING
MEDIUM…_repos/spack_repo/builtin_mock/packages/gcc/package.py80 # Create the minimal compiler that will fool `spack compiler find`COMMENT
MEDIUM…uiltin_mock/packages/intel_oneapi_compilers/package.py39 # Create the minimal compiler that will fool `spack compiler find`COMMENT
MEDIUM.github/workflows/bin/canonicalize.py71 # Create a git repo in output_dir to track changesCOMMENT
MEDIUMlib/spack/docs/conf.py11# This file is execfile()d with the current directory set to its containing dir.COMMENT
MEDIUMlib/spack/spack/multimethod.py258 # Create a multimethod with this name if there is not one alreadyCOMMENT
MEDIUMlib/spack/spack/config.py4"""This module implements Spack's configuration file handling.STRING
MEDIUMlib/spack/spack/config.py282 """This class represents a configuration scope in a single YAML file."""STRING
MEDIUMlib/spack/spack/database.py1278 # Create a new install record with no deps initially.COMMENT
MEDIUMlib/spack/spack/binary_distribution.py1484 # Create an oci.image.layer aka tarball of the packageCOMMENT
MEDIUMlib/spack/spack/binary_distribution.py1561 # Create an oci.image.config fileCOMMENT
MEDIUMlib/spack/spack/binary_distribution.py1834 # Create the index.json fileCOMMENT
MEDIUMlib/spack/spack/binary_distribution.py1839 # Create an empty config.json fileCOMMENT
MEDIUMlib/spack/spack/binary_distribution.py2349 # Create the install prefixCOMMENT
MEDIUMlib/spack/spack/install_test.py932 # Create the test log file and report the error.COMMENT
MEDIUMlib/spack/spack/extensions.py104 # Create a searchable package for both the root folder of the extensionCOMMENT
MEDIUMlib/spack/spack/old_installer.py1175 # Create a child process to do the actual installation.COMMENT
MEDIUMlib/spack/spack/old_installer.py2482 """This class implements the part installation that happens in the child process."""STRING
MEDIUMlib/spack/spack/repo.py424 # Create a dictionary that will store the mapping between aCOMMENT
MEDIUMlib/spack/spack/stage.py1224 # Create a temporary file in the stage dir with lines of the formCOMMENT
MEDIUMlib/spack/spack/stage.py1229 # Create a temporary file by hashing its contents.COMMENT
MEDIUMlib/spack/spack/main.py212 # Create a list of subcommand actions. Argparse internals are nasty!COMMENT
MEDIUM⚡lib/spack/spack/main.py950 # Create a parser with a simple positional argument first. We'llCOMMENT
MEDIUMlib/spack/spack/tokenize.py4"""This module provides building blocks for tokenizing strings. Users can define tokens bySTRING
MEDIUMlib/spack/spack/variant.py607 # Create a new object to be returnedCOMMENT
MEDIUMlib/spack/spack/variant.py618 # Create a new object to be returnedCOMMENT
MEDIUMlib/spack/spack/cmd/create.py1101 # Create the package template objectSTRING
MEDIUMlib/spack/spack/cmd/create.py1109 # Create a directory for the new packageSTRING
MEDIUMlib/spack/spack/cmd/gpg.py146 # Create the new keyCOMMENT
MEDIUMlib/spack/spack/test/conftest.py306 # Create an environment and Gitlab CI config to mimic spack-packages, livingCOMMENT
MEDIUMlib/spack/spack/test/conftest.py1656 # Create the configure scriptCOMMENT
MEDIUMlib/spack/spack/test/conftest.py1896 # Create the main repositoryCOMMENT
MEDIUMlib/spack/spack/test/conftest.py2139 # Create a few header files:COMMENT
MEDIUMlib/spack/spack/test/config.py1496 # Creating an environment pushes a new scopeCOMMENT
MEDIUMlib/spack/spack/test/config.py1531 # Creating an environment pushes a new scopeCOMMENT
MEDIUMlib/spack/spack/test/env.py1449 # Create a second environment, reuse from the previous one and check pkg-a is the sameCOMMENT
MEDIUMlib/spack/spack/test/env.py1150 # Define a toolchain in spack.yamlSTRING
MEDIUM⚡lib/spack/spack/test/build_environment.py296 # Create a mock spec object with the minimum attributes needed for the testCOMMENT
MEDIUM⚡lib/spack/spack/test/build_environment.py306 # Create a simplified SetupContext-like class that only contains what we needCOMMENT
MEDIUMlib/spack/spack/test/database.py1069 # Create the lockfile and failures directory otherwiseCOMMENT
MEDIUMlib/spack/spack/test/database.py1360 # Create a new instance s.t. we don't have cached specs in memoryCOMMENT
MEDIUM⚡lib/spack/spack/test/binary_distribution.py313 # Create a temp mirror directory for buildcache usageCOMMENT
MEDIUM⚡lib/spack/spack/test/binary_distribution.py323 # Create a buildcache and update indexCOMMENT
MEDIUM⚡lib/spack/spack/test/binary_distribution.py1291 # Create a temp mirror directory for buildcache usageCOMMENT
MEDIUMlib/spack/spack/test/binary_distribution.py138 # Create a buildacheCOMMENT
MEDIUMlib/spack/spack/test/binary_distribution.py283 # Create a temp mirror directory for buildcache usageCOMMENT
MEDIUMlib/spack/spack/test/binary_distribution.py415 # Create a mirror, configure us to point at it, install a spec, andCOMMENT
MEDIUMlib/spack/spack/test/binary_distribution.py448 # Create a mirror, configure us to point at it, install a spec, andCOMMENT
MEDIUMlib/spack/spack/test/binary_distribution.py455 # Create an environment and install specs for the viewCOMMENT
MEDIUMlib/spack/spack/test/binary_distribution.py485 # Create a mirror, configure us to point at it, install a spec, andCOMMENT
MEDIUMlib/spack/spack/test/binary_distribution.py492 # Create an environment and install specs for the viewCOMMENT
MEDIUMlib/spack/spack/test/binary_distribution.py985 # Create a binary_distribution file in the .spack folderCOMMENT
MEDIUMlib/spack/spack/test/binary_distribution.py1028 # Create a tarball with a certain mtime of bin/appCOMMENT
MEDIUMlib/spack/spack/test/binary_distribution.py1118 # Create a tarball (using absolute path for prefix dir)COMMENT
MEDIUMlib/spack/spack/test/binary_distribution.py1172 # Create a broken tarball with just a file, no directories.COMMENT
MEDIUMlib/spack/spack/test/binary_distribution.py1613 # Create a temp mirror directory for buildcache usageCOMMENT
MEDIUMlib/spack/spack/test/binary_distribution.py607 # Create a buildcache with the installed spec.STRING
MEDIUMlib/spack/spack/test/traverse.py341 # Create a graph that both BFS and DFS would not traverse in topo order, given theSTRING
90 more matches not shown…
Deep Nesting338 hits · 278 pts
SeverityFileLineSnippetContext
LOW…st_repos/spack_repo/tutorial/packages/mpich/package.py116CODE
LOW…est_repos/spack_repo/tutorial/packages/hdf5/package.py213CODE
LOW…est_repos/spack_repo/tutorial/packages/hdf5/package.py396CODE
LOW…pack_repo/builtin_mock/packages/gcc_runtime/package.py163CODE
LOW…epos/spack_repo/builtin_mock/build_systems/compiler.py114CODE
LOW.github/workflows/bin/format-rst.py175CODE
LOW.github/workflows/bin/canonicalize.py37CODE
LOWlib/spack/spack/patch.py502CODE
LOWlib/spack/spack/patch.py546CODE
LOWlib/spack/spack/provider_index.py51CODE
LOWlib/spack/spack/provider_index.py107CODE
LOWlib/spack/spack/url_buildcache.py1139CODE
LOWlib/spack/spack/url_buildcache.py1201CODE
LOWlib/spack/spack/url_buildcache.py312CODE
LOWlib/spack/spack/url_buildcache.py450CODE
LOWlib/spack/spack/deptypes.py47CODE
LOWlib/spack/spack/deptypes.py101CODE
LOWlib/spack/spack/verify_libraries.py184CODE
LOWlib/spack/spack/filesystem_view.py553CODE
LOWlib/spack/spack/filesystem_view.py613CODE
LOWlib/spack/spack/config.py1853CODE
LOWlib/spack/spack/config.py1910CODE
LOWlib/spack/spack/config.py158CODE
LOWlib/spack/spack/config.py462CODE
LOWlib/spack/spack/config.py1512CODE
LOWlib/spack/spack/config.py2428CODE
LOWlib/spack/spack/audit.py240CODE
LOWlib/spack/spack/audit.py419CODE
LOWlib/spack/spack/audit.py479CODE
LOWlib/spack/spack/audit.py522CODE
LOWlib/spack/spack/audit.py666CODE
LOWlib/spack/spack/audit.py698CODE
LOWlib/spack/spack/audit.py859CODE
LOWlib/spack/spack/audit.py971CODE
LOWlib/spack/spack/audit.py997CODE
LOWlib/spack/spack/audit.py1089CODE
LOWlib/spack/spack/audit.py1217CODE
LOWlib/spack/spack/audit.py1232CODE
LOWlib/spack/spack/audit.py1458CODE
LOWlib/spack/spack/audit.py790CODE
LOWlib/spack/spack/directives_meta.py130CODE
LOWlib/spack/spack/directives_meta.py149CODE
LOWlib/spack/spack/build_environment.py906CODE
LOWlib/spack/spack/build_environment.py1141CODE
LOWlib/spack/spack/build_environment.py1499CODE
LOWlib/spack/spack/build_environment.py1057CODE
LOWlib/spack/spack/package_base.py158CODE
LOWlib/spack/spack/package_base.py1680CODE
LOWlib/spack/spack/package_base.py2146CODE
LOWlib/spack/spack/deprecation.py222CODE
LOWlib/spack/spack/database.py1176CODE
LOWlib/spack/spack/externals.py119CODE
LOWlib/spack/spack/externals.py271CODE
LOWlib/spack/spack/externals.py329CODE
LOWlib/spack/spack/repo_migrate.py18CODE
LOWlib/spack/spack/repo_migrate.py34CODE
LOWlib/spack/spack/repo_migrate.py249CODE
LOWlib/spack/spack/graph.py307CODE
LOWlib/spack/spack/directory_layout.py42CODE
LOWlib/spack/spack/directory_layout.py149CODE
278 more matches not shown…
Cross-File Repetition46 hits · 230 pts
SeverityFileLineSnippetContext
HIGH…ckages/conditional_constrained_dependencies/package.py0package that has a dependency with a variant which adds a transitive dependency forced to use non default values.STRING
HIGH…epo/builtin_mock/packages/dep_with_variants/package.py0package that has a dependency with a variant which adds a transitive dependency forced to use non default values.STRING
HIGH…pack_repo/builtin_mock/packages/ecp_viz_sdk/package.py0package that has a dependency with a variant which adds a transitive dependency forced to use non default values.STRING
HIGH…tin_mock/packages/both_link_and_build_dep_a/package.py0structure where c occurs as a build dep down the line and as a direct link dep. useful for testing situations where you STRING
HIGH…tin_mock/packages/both_link_and_build_dep_b/package.py0structure where c occurs as a build dep down the line and as a direct link dep. useful for testing situations where you STRING
HIGH…tin_mock/packages/both_link_and_build_dep_c/package.py0structure where c occurs as a build dep down the line and as a direct link dep. useful for testing situations where you STRING
HIGH…pack_repo/builtin_mock/packages/v1_provider/package.py0mimic the real netlib-lapack, that may be built on top of an optimized blas.STRING
HIGH…/builtin_mock/packages/conditional_provider/package.py0mimic the real netlib-lapack, that may be built on top of an optimized blas.STRING
HIGH…pack_repo/builtin_mock/packages/v1_consumer/package.py0mimic the real netlib-lapack, that may be built on top of an optimized blas.STRING
HIGH…uiltin_mock/packages/dep_diamond_patch_mid2/package.py0package that requires a patch on a dependency w / \ x y \ / z this is package xSTRING
HIGH…builtin_mock/packages/dep_diamond_patch_top/package.py0package that requires a patch on a dependency w / \ x y \ / z this is package xSTRING
HIGH…uiltin_mock/packages/dep_diamond_patch_mid1/package.py0package that requires a patch on a dependency w / \ x y \ / z this is package xSTRING
HIGH…o/builtin_mock/packages/multimethod_diamond/package.py0this package is designed for use with spack's multimethod test. it has a bunch of test cases for the @when decorator thaSTRING
HIGH…in_mock/packages/multimethod_diamond_parent/package.py0this package is designed for use with spack's multimethod test. it has a bunch of test cases for the @when decorator thaSTRING
HIGH…builtin_mock/packages/multimethod_inheritor/package.py0this package is designed for use with spack's multimethod test. it has a bunch of test cases for the @when decorator thaSTRING
HIGH…pack_repo/builtin_mock/packages/multimethod/package.py0this package is designed for use with spack's multimethod test. it has a bunch of test cases for the @when decorator thaSTRING
HIGH…uiltin_mock/packages/cumulative_vrange_root/package.py0test that creating cumulative version ranges of the form x.y:x works and allows for the selection of all the versions >=STRING
HIGH…ltin_mock/packages/cumulative_vrange_middle/package.py0test that creating cumulative version ranges of the form x.y:x works and allows for the selection of all the versions >=STRING
HIGH…ltin_mock/packages/cumulative_vrange_bottom/package.py0test that creating cumulative version ranges of the form x.y:x works and allows for the selection of all the versions >=STRING
HIGH…/packages/variant_on_dependency_condition_a/package.py0test that dependencies that are conditional on the state of other dependencies are added correctly, for instance: dependSTRING
HIGH…ckages/variant_on_dependency_condition_root/package.py0test that dependencies that are conditional on the state of other dependencies are added correctly, for instance: dependSTRING
HIGH…/packages/variant_on_dependency_condition_b/package.py0test that dependencies that are conditional on the state of other dependencies are added correctly, for instance: dependSTRING
HIGH…_repo/builtin_mock/packages/dt_diamond_left/package.py0this package has an indirect diamond dependency on dt-diamond-bottomSTRING
HIGH…spack_repo/builtin_mock/packages/dt_diamond/package.py0this package has an indirect diamond dependency on dt-diamond-bottomSTRING
HIGH…epo/builtin_mock/packages/dt_diamond_bottom/package.py0this package has an indirect diamond dependency on dt-diamond-bottomSTRING
HIGH…repo/builtin_mock/packages/dt_diamond_right/package.py0this package has an indirect diamond dependency on dt-diamond-bottomSTRING
HIGH…po/builtin_mock/packages/parent_foo_bar_fee/package.py0this package has a variant "foo", which is true by default, and depends on another package which has the same variant deSTRING
HIGH…k_repo/builtin_mock/packages/parent_foo_bar/package.py0this package has a variant "foo", which is true by default, and depends on another package which has the same variant deSTRING
HIGH…spack_repo/builtin_mock/packages/parent_foo/package.py0this package has a variant "foo", which is true by default, and depends on another package which has the same variant deSTRING
HIGH…k/packages/conditionally_extends_direct_dep/package.py0package that tests if the extends directive supports a spec.STRING
HIGH…ack_repo/builtin_mock/packages/extends_spec/package.py0package that tests if the extends directive supports a spec.STRING
HIGH…ckages/conditionally_extends_transitive_dep/package.py0package that tests if the extends directive supports a spec.STRING
HIGH…epos/spack_repo/builtin_mock/packages/patch/package.py0package that conditionally requires a patched version of a dependency.STRING
HIGH…po/builtin_mock/packages/patch_a_dependency/package.py0package that conditionally requires a patched version of a dependency.STRING
HIGH…ock/packages/conditionally_patch_dependency/package.py0package that conditionally requires a patched version of a dependency.STRING
HIGH…/spack_repo/builtin_mock/packages/diff_test/package.py0zlib replacement with optimizations for next generation systems.STRING
HIGH…spack/spack/test/data/conftest/diff-test/package-3.txt0zlib replacement with optimizations for next generation systems.STRING
HIGH…spack/spack/test/data/conftest/diff-test/package-2.txt0zlib replacement with optimizations for next generation systems.STRING
HIGH…spack/spack/test/data/conftest/diff-test/package-0.txt0zlib replacement with optimizations for next generation systems.STRING
HIGH…spack/spack/test/data/conftest/diff-test/package-1.txt0zlib replacement with optimizations for next generation systems.STRING
HIGHlib/spack/spack/test/url_fetch.py0ensure a fetch after downloading is effectively a no-op.STRING
HIGHlib/spack/spack/test/svn_fetch.py0ensure a fetch after downloading is effectively a no-op.STRING
HIGHlib/spack/spack/test/cvs_fetch.py0ensure a fetch after downloading is effectively a no-op.STRING
HIGHlib/spack/spack/test/git_fetch.py0tries to: 1. fetch the repo using a fetch strategy constructed with supplied args (they depend on type_of_test). 2. checSTRING
HIGHlib/spack/spack/test/svn_fetch.py0tries to: 1. fetch the repo using a fetch strategy constructed with supplied args (they depend on type_of_test). 2. checSTRING
HIGHlib/spack/spack/test/hg_fetch.py0tries to: 1. fetch the repo using a fetch strategy constructed with supplied args (they depend on type_of_test). 2. checSTRING
Decorative Section Separators56 hits · 182 pts
SeverityFileLineSnippetContext
MEDIUMetc/spack/defaults/linux/modules.yaml1# -------------------------------------------------------------------------COMMENT
MEDIUMetc/spack/defaults/linux/modules.yaml15# -------------------------------------------------------------------------COMMENT
MEDIUMetc/spack/defaults/darwin/packages.yaml1# -------------------------------------------------------------------------COMMENT
MEDIUMetc/spack/defaults/darwin/packages.yaml15# -------------------------------------------------------------------------COMMENT
MEDIUMetc/spack/defaults/darwin/modules.yaml1# -------------------------------------------------------------------------COMMENT
MEDIUMetc/spack/defaults/darwin/modules.yaml15# -------------------------------------------------------------------------COMMENT
MEDIUMetc/spack/defaults/windows/packages.yaml1# -------------------------------------------------------------------------COMMENT
MEDIUMetc/spack/defaults/windows/packages.yaml15# -------------------------------------------------------------------------COMMENT
MEDIUMetc/spack/defaults/base/concretizer.yaml1# -------------------------------------------------------------------------COMMENT
MEDIUMetc/spack/defaults/base/concretizer.yaml11# -------------------------------------------------------------------------COMMENT
MEDIUMetc/spack/defaults/base/config.yaml1# -------------------------------------------------------------------------COMMENT
MEDIUMetc/spack/defaults/base/config.yaml15# -------------------------------------------------------------------------COMMENT
MEDIUMetc/spack/defaults/base/packages.yaml1# -------------------------------------------------------------------------COMMENT
MEDIUMetc/spack/defaults/base/packages.yaml15# -------------------------------------------------------------------------COMMENT
MEDIUMetc/spack/defaults/base/repos.yaml1# -------------------------------------------------------------------------COMMENT
MEDIUMetc/spack/defaults/base/repos.yaml12# -------------------------------------------------------------------------COMMENT
MEDIUMetc/spack/defaults/base/modules.yaml1# -------------------------------------------------------------------------COMMENT
MEDIUMetc/spack/defaults/base/modules.yaml15# -------------------------------------------------------------------------COMMENT
MEDIUM…ack_repo/builtin_mock/packages/git_sparse_b/package.py15 # ----------------------------COMMENT
MEDIUM⚡…_repo/builtin_mock/packages/git_test_commit/package.py17 # ----------------------------COMMENT
MEDIUM⚡…_repo/builtin_mock/packages/git_test_commit/package.py20 # ----------------------------COMMENT
MEDIUM⚡…_repo/builtin_mock/packages/git_test_commit/package.py25 # ----------------------------COMMENT
MEDIUM…ack_repo/builtin_mock/packages/git_sparse_a/package.py15 # ----------------------------COMMENT
MEDIUM.github/workflows/triage.yml1#-----------------------------------------------------------------------COMMENT
MEDIUM.github/workflows/triage.yml7#-----------------------------------------------------------------------COMMENT
MEDIUM⚡lib/spack/spack/main.py941 # ------------------------------------------------------------------------COMMENT
MEDIUM⚡lib/spack/spack/main.py947 # ------------------------------------------------------------------------COMMENT
MEDIUMlib/spack/spack/main.py969 # ------------------------------------------------------------------------COMMENT
MEDIUMlib/spack/spack/main.py974 # ------------------------------------------------------------------------COMMENT
MEDIUMlib/spack/spack/main.py1016 # ------------------------------------------------------------------------COMMENT
MEDIUMlib/spack/spack/main.py1018 # ------------------------------------------------------------------------COMMENT
MEDIUMlib/spack/spack/cmd/create.py39# ----------------------------------------------------------------------------COMMENT
MEDIUMlib/spack/spack/cmd/create.py54# ----------------------------------------------------------------------------COMMENT
MEDIUMlib/spack/spack/test/spec_semantics.py1133 # ========================================================================COMMENT
MEDIUMlib/spack/spack/test/spec_semantics.py1135 # ========================================================================COMMENT
MEDIUMlib/spack/spack/test/data/config/modules.yaml1# -------------------------------------------------------------------------COMMENT
MEDIUMlib/spack/spack/test/data/config/modules.yaml15# -------------------------------------------------------------------------COMMENT
MEDIUMlib/spack/spack/util/url.py173# ==============================================================================COMMENT
MEDIUMlib/spack/spack/util/url.py175# ==============================================================================COMMENT
MEDIUMlib/spack/spack/util/ctest_log_parser.py2# -----------------------------------------------------------------------------COMMENT
MEDIUMlib/spack/spack/util/ctest_log_parser.py34# -----------------------------------------------------------------------------COMMENT
MEDIUMlib/spack/spack/util/ctest_log_parser.py41# -----------------------------------------------------------------------------COMMENT
MEDIUMlib/spack/spack/util/ctest_log_parser.py56# -----------------------------------------------------------------------------COMMENT
MEDIUMlib/spack/spack/util/path.py142# ---------------------COMMENT
MEDIUM⚡share/spack/qa/setup-env-test.sh20# -----------------------------------------------------------------------COMMENT
MEDIUM⚡share/spack/qa/setup-env-test.sh26# -----------------------------------------------------------------------COMMENT
MEDIUM⚡share/spack/qa/setup-env-test.sh31# -----------------------------------------------------------------------COMMENT
MEDIUM⚡share/spack/qa/setup-env-test.sh33# -----------------------------------------------------------------------COMMENT
MEDIUMshare/spack/qa/setup-env-test.sh85# -----------------------------------------------------------------------COMMENT
MEDIUMshare/spack/qa/setup-env-test.sh87# -----------------------------------------------------------------------COMMENT
MEDIUMshare/spack/qa/setup-env-test.sh245# -----------------------------------------------------------------------COMMENT
MEDIUMshare/spack/qa/setup-env-test.sh248# -----------------------------------------------------------------------COMMENT
MEDIUMshare/spack/qa/test-framework.sh9# ------------------------------------------------------------------------COMMENT
MEDIUMshare/spack/qa/test-framework.sh11# ------------------------------------------------------------------------COMMENT
MEDIUMshare/spack/qa/test-framework.sh31# ------------------------------------------------------------------------COMMENT
MEDIUMshare/spack/qa/test-framework.sh33# ------------------------------------------------------------------------COMMENT
Excessive Try-Catch Wrapping175 hits · 172 pts
SeverityFileLineSnippetContext
LOW…repos/spack_repo/builtin_mock/packages/llvm/package.py74 except Exception as e:CODE
MEDIUM…repos/spack_repo/builtin_mock/packages/llvm/package.py61def determine_version(cls, exe):CODE
LOW…pack_repo/builtin_mock/packages/gcc_runtime/package.py185 except Exception:CODE
LOW…epos/spack_repo/builtin_mock/build_systems/compiler.py101 except Exception as e:CODE
LOW.github/workflows/bin/format-rst.py202 except Exception as e:CODE
LOWlib/spack/spack/patch.py486 except Exception as e:CODE
LOW⚡lib/spack/spack/url_buildcache.py546 except Exception as e:CODE
LOW⚡lib/spack/spack/url_buildcache.py555 except Exception as e:CODE
LOW⚡lib/spack/spack/url_buildcache.py564 except Exception as e:CODE
LOWlib/spack/spack/url_buildcache.py957 except Exception as err:CODE
LOWlib/spack/spack/url_buildcache.py1352 except Exception as e:CODE
LOWlib/spack/spack/url_buildcache.py1390 except Exception:CODE
LOW⚡lib/spack/spack/audit.py578 except Exception as e:CODE
LOW⚡lib/spack/spack/audit.py596 except Exception as e:CODE
LOW⚡lib/spack/spack/audit.py604 except Exception as e:CODE
LOW⚡lib/spack/spack/audit.py623 except Exception as e:CODE
LOWlib/spack/spack/audit.py270 except Exception:CODE
LOWlib/spack/spack/audit.py411 except Exception as e:CODE
LOWlib/spack/spack/audit.py988 except Exception as e:CODE
LOWlib/spack/spack/audit.py1159 except Exception as e:CODE
LOWlib/spack/spack/audit.py1266 except Exception:CODE
LOWlib/spack/spack/buildcache_prune.py85 except Exception as e:CODE
LOWlib/spack/spack/buildcache_prune.py165 except Exception as e:CODE
LOWlib/spack/spack/buildcache_prune.py411 except Exception as e:CODE
LOWlib/spack/spack/build_environment.py1397 except Exception:CODE
LOWlib/spack/spack/package_base.py218 except Exception as e:CODE
LOWlib/spack/spack/package_base.py245 except Exception as e:CODE
LOWlib/spack/spack/package_base.py2180 except Exception as error:CODE
LOWlib/spack/spack/package_base.py2217 except Exception:CODE
LOWlib/spack/spack/database.py849 except Exception as e:CODE
LOWlib/spack/spack/database.py907 except Exception as e:CODE
LOWlib/spack/spack/database.py917 except Exception as e:CODE
LOWlib/spack/spack/buildcache_migrate.py215 except Exception:CODE
LOWlib/spack/spack/buildcache_migrate.py223 except Exception:CODE
LOWlib/spack/spack/buildcache_migrate.py249 except Exception:CODE
LOWlib/spack/spack/directory_layout.py37 except Exception:CODE
LOWlib/spack/spack/directory_layout.py161 except Exception as e:CODE
LOWlib/spack/spack/directory_layout.py353 except Exception:CODE
LOWlib/spack/spack/fetch_strategy.py461 except Exception as e:CODE
LOWlib/spack/spack/binary_distribution.py766 except Exception as e: # missing or unreadable: start from scratchCODE
LOWlib/spack/spack/binary_distribution.py861 except Exception as e:CODE
LOWlib/spack/spack/binary_distribution.py946 except Exception as e:CODE
LOWlib/spack/spack/binary_distribution.py982 except Exception as e:CODE
LOWlib/spack/spack/binary_distribution.py1002 except Exception as e:CODE
LOWlib/spack/spack/binary_distribution.py1474 except Exception:CODE
LOWlib/spack/spack/binary_distribution.py1962 except Exception:CODE
LOWlib/spack/spack/binary_distribution.py1971 except Exception:CODE
LOWlib/spack/spack/binary_distribution.py1991 except Exception:CODE
LOWlib/spack/spack/binary_distribution.py2003 except Exception:CODE
LOWlib/spack/spack/binary_distribution.py2022 except Exception as e:CODE
LOWlib/spack/spack/binary_distribution.py2361 except Exception:CODE
LOWlib/spack/spack/binary_distribution.py2371 except Exception as e:CODE
LOWlib/spack/spack/binary_distribution.py2571 except Exception:CODE
LOWlib/spack/spack/binary_distribution.py3089 except Exception as e:CODE
LOWlib/spack/spack/binary_distribution.py3095 except Exception as e:CODE
LOWlib/spack/spack/spec.py3073 except Exception as e:CODE
LOWlib/spack/spack/install_test.py1160 except Exception as e:CODE
LOWlib/spack/spack/old_installer.py550 except Exception as e:CODE
LOWlib/spack/spack/old_installer.py589 except Exception as e:CODE
LOWlib/spack/spack/old_installer.py1214 except Exception as outer_exception:CODE
115 more matches not shown…
Over-Commented Block144 hits · 132 pts
SeverityFileLineSnippetContext
LOWconftest.py1# Copyright Spack Project Developers. See COPYRIGHT file for details.COMMENT
LOW.codecov.yml21 annotations: falseCOMMENT
LOWetc/spack/defaults/linux/modules.yaml1# -------------------------------------------------------------------------COMMENT
LOWetc/spack/defaults/darwin/packages.yaml1# -------------------------------------------------------------------------COMMENT
LOWetc/spack/defaults/darwin/modules.yaml1# -------------------------------------------------------------------------COMMENT
LOWetc/spack/defaults/windows/packages.yaml1# -------------------------------------------------------------------------COMMENT
LOWetc/spack/defaults/base/concretizer.yaml1# -------------------------------------------------------------------------COMMENT
LOWetc/spack/defaults/base/concretizer.yaml21 # needed to reach a solution increases noticeably with the number of targetsCOMMENT
LOWetc/spack/defaults/base/concretizer.yaml81 # Option to specify whether to support splicing. Splicing allows forCOMMENT
LOWetc/spack/defaults/base/concretizer.yaml101 # of solver inputs, so we only need to run setup (not solve) if there is a cache hit.COMMENT
LOWetc/spack/defaults/base/config.yaml1# -------------------------------------------------------------------------COMMENT
LOWetc/spack/defaults/base/config.yaml21 projections:COMMENT
LOWetc/spack/defaults/base/config.yaml41 # Recommended options are given below.COMMENT
LOWetc/spack/defaults/base/config.yaml61 #COMMENT
LOWetc/spack/defaults/base/config.yaml101 # certificates. (e.g., curl will use use the -k option)COMMENT
LOWetc/spack/defaults/base/config.yaml141COMMENT
LOWetc/spack/defaults/base/config.yaml161 # The maximum number of concurrent package builds a single Spack processCOMMENT
LOWetc/spack/defaults/base/config.yaml181 # Additional paths with read and execute permissions.COMMENT
LOWetc/spack/defaults/base/config.yaml201 package_lock_timeout: nullCOMMENT
LOWetc/spack/defaults/base/packages.yaml1# -------------------------------------------------------------------------COMMENT
LOWetc/spack/defaults/base/repos.yaml1# -------------------------------------------------------------------------COMMENT
LOWetc/spack/defaults/base/modules.yaml1# -------------------------------------------------------------------------COMMENT
LOW…est_repos/spack_repo/tutorial/packages/hdf5/package.py121 conflicts("+java", when="~shared")COMMENT
LOW…est_repos/spack_repo/tutorial/packages/hdf5/package.py141 # discussed and patch is provided atCOMMENT
LOW…est_repos/spack_repo/tutorial/packages/hdf5/package.py261 # 1.12.0, the Autotools installation also produces a symbolicCOMMENT
LOW…est_repos/spack_repo/tutorial/packages/hdf5/package.py381 with working_dir(self.prefix.bin):COMMENT
LOW…est_repos/spack_repo/tutorial/packages/hdf5/package.py401 # packages. This was fixed in the develop versions at some point: theCOMMENT
LOW…/spack_repo/tutorial/packages/netlib_lapack/package.py61 depends_on("netlib-xblas+fortran+plain_blas", when="+xblas")COMMENT
LOW…est_repos/spack_repo/tutorial/packages/elpa/package.py41 libname = "libelpa_openmp" if "+openmp" in self.spec else "libelpa"COMMENT
LOW…epos/spack_repo/tutorial/packages/armadillo/package.py41 # the right dependency. To ask a dependency, e.g. `blas`, for theCOMMENT
LOW…repos/spack_repo/builtin_mock/packages/ruff/package.py21 # Used to tell whether or not the package has been modifiedCOMMENT
LOW…repos/spack_repo/builtin_mock/packages/ruff/package.py41 git = "ssh://example.com/this-is-a-really-long-url/that-goes-over-99-characters/that-ruff-will-not-ignore-by-defaultCOMMENT
LOW…pack_repo/builtin_mock/packages/compiler_wrapper/cc.sh1#!/bin/sh -fCOMMENT
LOW…pack_repo/builtin_mock/packages/compiler_wrapper/cc.sh21#COMMENT
LOW…pack_repo/builtin_mock/packages/compiler_wrapper/cc.sh41SPACK_DEBUG_LOG_IDCOMMENT
LOW…pack_repo/builtin_mock/packages/compiler_wrapper/cc.sh281COMMENT
LOW…pack_repo/builtin_mock/packages/compiler_wrapper/cc.sh381COMMENT
LOW…pack_repo/builtin_mock/packages/compiler_wrapper/cc.sh461 fiCOMMENT
LOW…epos/spack_repo/builtin_mock/build_systems/__init__.py1# Copyright Spack Project Developers. See COPYRIGHT file for details.COMMENT
LOWlib/spack/docs/conf.py1# Copyright Spack Project Developers. See COPYRIGHT file for details.COMMENT
LOWlib/spack/docs/conf.py401# unit titles (such as .. function::).COMMENT
LOWlib/spack/docs/conf.py441# pixels large.COMMENT
LOWlib/spack/docs/conf.py461COMMENT
LOWlib/spack/docs/conf.py481# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.COMMENT
LOWlib/spack/docs/conf.py521# the title page.COMMENT
LOWlib/spack/docs/spack.yaml1# Copyright Spack Project Developers. See COPYRIGHT file for details.COMMENT
LOWlib/spack/spack/package.py241COMMENT
LOWlib/spack/spack/package.py261#: Example::COMMENT
LOWlib/spack/spack/provider_index.py21 #: { full vpkg spec : set(packages providing spec) } }COMMENT
LOWlib/spack/spack/config.py321 def exists(self) -> bool:COMMENT
LOWlib/spack/spack/config.py341 # {COMMENT
LOWlib/spack/spack/config.py381 if not self.writable:COMMENT
LOWlib/spack/spack/config.py1301 except ValueError:COMMENT
LOWlib/spack/spack/directives_meta.py41 #: Maps dictionary name to its descriptor instanceCOMMENT
LOWlib/spack/spack/package_base.py161 raise spack.error.SpackError(f"{msg} [package '{name}' defines both]")COMMENT
LOWlib/spack/spack/package_base.py621 #: for it. Note: accepts both file names and directory names, for exampleCOMMENT
LOWlib/spack/spack/package_base.py641 #: directories, sanity checks will fail.COMMENT
LOWlib/spack/spack/package_base.py661 #: a comment. Defaults to ``#``.COMMENT
LOWlib/spack/spack/package_base.py1901 # Check if 'target' is a valid target.COMMENT
LOWlib/spack/spack/package_base.py2121 return self._flag_handlerCOMMENT
84 more matches not shown…
Docstring Block Structure26 hits · 130 pts
SeverityFileLineSnippetContext
HIGHlib/spack/spack/patch.py327Create a patch from json dictionary. Args: dictionary: dictionary representation of a patch repositSTRING
HIGHlib/spack/spack/config.py1266Instantiate a configuration scope for the configuration path. Args: path: raw include path STRING
HIGHlib/spack/spack/config.py1373Instantiate configuration scopes. Args: parent_scope: including scope Returns: configuratiSTRING
HIGHlib/spack/spack/config.py1420Instantiate a configuration scope for the included path. Args: parent_scope: including scope STRING
HIGHlib/spack/spack/config.py1513Clone the repository. Args: parent_scope: enclosing scope Returns: destination path if cloSTRING
HIGHlib/spack/spack/config.py1575Instantiate configuration scopes for the included paths. Args: parent_scope: including scope STRING
HIGHlib/spack/spack/fetch_strategy.py1491Construct an appropriate FetchStrategy from the given keyword arguments. Args: **kwargs: dictionary of keywSTRING
HIGHlib/spack/spack/spec.py1353Default handler when looking for the 'headers' attribute. Tries to search for ``*.h`` files recursively starting frSTRING
HIGHlib/spack/spack/spec.py1376Default handler when looking for the 'libs' attribute. Tries to search for ``lib{spec.name}`` recursively starting STRING
HIGHlib/spack/spack/spec.py3761Make a copy of this spec. Args: deps: Defaults to :data:`True`. If boolean, controls STRING
HIGHlib/spack/spack/install_test.py169Find the required file(s) under the root directory. Args: root: root directory for the search filenamSTRING
HIGHlib/spack/spack/install_test.py576Grab the names of all non-empty test functions. Args: pkg: package or package class of interest addSTRING
HIGHlib/spack/spack/install_test.py596Grab all non-empty test functions. Args: pkg: package or package class of interest add_virtuals: ``STRING
HIGHlib/spack/spack/url.py126Try to extract a version string from a filename or URL. Args: path (str): The filename or URL for the packaSTRING
HIGHlib/spack/spack/url.py296Try to extract a version string from a filename or URL. Args: path: The filename or URL for the package STRING
HIGHlib/spack/spack/url.py313Try to determine the name of a package from its filename or URL. Args: path: The filename or URL for the paSTRING
HIGHlib/spack/spack/url.py426Try to determine the name of a package from its filename or URL. Args: path (str): The filename or URL for STRING
HIGHlib/spack/spack/url.py443Try to determine the name of a package and extract its version from its filename or URL. Args: path: ThSTRING
HIGHlib/spack/spack/extensions.py29Returns the name of the extension in the path passed as argument. Args: path (str): path where the extensioSTRING
HIGHlib/spack/spack/repo.py917Look up patches by sha256, trying stale cache first to avoid stat calls. Args: sha256s: ordered lisSTRING
HIGHlib/spack/spack/repo.py2076Parse a repository descriptor from validated configuration. This does not instantiate Repo objects, but merely turnsSTRING
HIGHlib/spack/spack/util/lang.py463Yields a stable de-duplication of an hashable sequence by key Args: sequence: hashable sequence to be de-duSTRING
HIGHlib/spack/spack/util/lang.py758Loads a python module from the path of the corresponding file. If the module is already in ``sys.modules`` it will STRING
HIGHlib/spack/spack/util/executable.py488Finds an executable in the path like command-line which. If given multiple executables, returns the first one that STRING
HIGHlib/spack/spack/util/remote_file_cache.py63Determine the actual path and, if remote, stage its contents locally. Args: path: the resolved configuratioSTRING
HIGHlib/spack/spack/environment/environment.py3088Update a manifest file from an old format to the current one. Args: manifest (str): path to a manifest fileSTRING
Hallucination Indicators12 hits · 115 pts
SeverityFileLineSnippetContext
CRITICALlib/spack/spack/spec.py228 return spack.vendor.archspec.cpu.TARGETS.get(CODE
CRITICALlib/spack/spack/spec.py424 for t in spack.vendor.archspec.cpu.TARGETS.values()CODE
CRITICALlib/spack/spack/cmd/providers.py26 valid_virtuals = sorted(spack.repo.PATH.provider_index.providers.keys())CODE
CRITICALlib/spack/spack/platforms/_platform.py47 for name, microarchitecture in spack.vendor.archspec.cpu.TARGETS.items():CODE
CRITICALlib/spack/spack/test/conftest.py992 targets = spack.vendor.archspec.cpu.microarchitecture._known_microarchitectures()CODE
CRITICALlib/spack/spack/test/conftest.py2268 assert not any(f.fh.closed for f in spack.util.lock.FILE_TRACKER._descriptors.values())CODE
CRITICALlib/spack/spack/test/cmd/repo.py174 b"\t\treturn spack_repo.builtin.packages.foo.package.example(), foo, baz\r\n"STRING
CRITICALlib/spack/spack/solver/input_analysis.py147 for t in spack.vendor.archspec.cpu.TARGETS.values()CODE
CRITICALlib/spack/spack/solver/asp.py2187 target = spack.vendor.archspec.cpu.TARGETS.get(target_name)CODE
CRITICALlib/spack/spack/solver/asp.py2205 uarch = spack.vendor.archspec.cpu.TARGETS.get(platform.default)CODE
CRITICALlib/spack/spack/solver/asp.py2337 for test_target in spack.vendor.archspec.cpu.TARGETS.values():CODE
CRITICALlib/spack/spack/environment/environment.py1541 virtuals = spack.repo.PATH.provider_index.providers.keys()CODE
Cross-Language Confusion17 hits · 105 pts
SeverityFileLineSnippetContext
HIGHlib/spack/spack/binary_distribution.py1206 skipped, errors = self.push(specs, config=config)CODE
HIGH⚡lib/spack/spack/cmd/python.py142 console.push("import readline")CODE
HIGH⚡lib/spack/spack/cmd/python.py144 console.push("from rlcompleter import Completer")CODE
HIGH⚡lib/spack/spack/cmd/python.py145 console.push("readline.set_completer(Completer(locals()).complete)")CODE
HIGH⚡lib/spack/spack/cmd/python.py146 console.push('readline.parse_and_bind("tab: complete")')CODE
HIGH⚡lib/spack/spack/cmd/python.py165 console.push("import sys")CODE
HIGH⚡lib/spack/spack/cmd/python.py166 console.push("_wrapped_hook = sys.excepthook")CODE
HIGH⚡lib/spack/spack/cmd/python.py167 console.push("def _hook(exc_type, exc_value, exc_tb):")CODE
HIGH⚡lib/spack/spack/cmd/python.py168 console.push(" _wrapped_hook(exc_type, exc_value, exc_tb)")CODE
HIGH⚡lib/spack/spack/cmd/python.py169 console.push(" sys.exit(1)")CODE
HIGH⚡lib/spack/spack/cmd/python.py170 console.push("")CODE
HIGH⚡lib/spack/spack/cmd/python.py171 console.push("sys.excepthook = _hook")CODE
HIGHlib/spack/spack/cmd/buildcache.py584 skipped, upload_errors = uploader.push(specs=specs, config=spack.config.CONFIG)CODE
HIGHlib/spack/spack/util/git.py366 It is intended to be used with ``git clone --no-checkout`` or ``git init && git fetch``.STRING
HIGHlib/spack/spack/util/git.py398 This is our fallback method for capturing more git data than the ``init && fetch`` model.STRING
HIGHlib/spack/spack/ci/__init__.py790 1. ``git clone repo && cd repo``STRING
HIGHlib/spack/spack/environment/shell.py135 alias despacktivate > /dev/null 2>&1 && unalias despacktivate;CODE
Redundant / Tautological Comments53 hits · 79 pts
SeverityFileLineSnippetContext
LOW…repo/builtin_mock/packages/compiler_wrapper/package.py219 # Check if this compiler has implicit rpathsCOMMENT
LOW…pack_repo/builtin_mock/packages/compiler_wrapper/cc.sh116# Append ELEMENT to the list stored in the variable LISTNAME,COMMENT
LOW…pack_repo/builtin_mock/packages/compiler_wrapper/cc.sh263# Check if optional parameters are definedCOMMENT
LOWlib/spack/spack/verify_libraries.py162 # Check if directly opened libs are compatibleCOMMENT
LOWlib/spack/spack/build_environment.py1463 # Check if information from the read pipe has been received.COMMENT
LOWlib/spack/spack/package_base.py1887 # Check if we have a MakefileCOMMENT
LOWlib/spack/spack/package_base.py1901 # Check if 'target' is a valid target.COMMENT
LOWlib/spack/spack/package_base.py1960 # Check if we have a Ninja build scriptCOMMENT
LOWlib/spack/spack/package_base.py1969 # Check if 'target' is a valid targetCOMMENT
LOWlib/spack/spack/buildcache_migrate.py84 # Check if the spec file exists in the new location and exit early if soCOMMENT
LOWlib/spack/spack/fetch_strategy.py416 # Check if we somehow got an HTML file rather than the archive weCOMMENT
LOWlib/spack/spack/binary_distribution.py1187 # Verify if the mirror meets the requirements to pushCOMMENT
LOWlib/spack/spack/spec.py1667 # Check if we wanted just the first lineCOMMENT
LOWlib/spack/spack/directives.py996 # Check if the path is relativeCOMMENT
LOWlib/spack/spack/directives.py1002 # Check if the path falls within the main package stage areaCOMMENT
LOWlib/spack/spack/old_installer.py371 # Check if the package was already registered in the DB.COMMENT
LOWlib/spack/spack/old_installer.py1257 # Check if the task's child process has completedCOMMENT
LOWlib/spack/spack/old_installer.py2399 # Check if any tasks have completed and add to listCOMMENT
LOWlib/spack/spack/cmd/mirror.py277 # Check if any of the arguments are set to update this access_pair.COMMENT
LOWlib/spack/spack/cmd/checksum.py262 # Check if the section contains a versionCOMMENT
LOWlib/spack/spack/cmd/env.py370 # Check if runtime environment variables are requested, and if so, for what view.COMMENT
LOWlib/spack/spack/cmd/env.py831 # Check if environment views can be safely activatedCOMMENT
LOWlib/spack/spack/cmd/find.py420 # Display the resultCOMMENT
LOWlib/spack/spack/cmd/buildcache.py216 # Check if binaries need to be rebuilt on remote mirrorCOMMENT
LOWlib/spack/spack/cmd/buildcache.py997 # Check if the index already exists, if it does make sure there is a copy in theCOMMENT
LOWlib/spack/spack/cmd/buildcache.py1066 # Check if the index exists, and cache it locally for next operationsCOMMENT
LOWlib/spack/spack/cmd/commands.py641 # Check if option require argument.COMMENT
LOWlib/spack/spack/bootstrap/_common.py154 # Check if standard names are installed and if we have to createCOMMENT
LOWlib/spack/spack/bootstrap/_common.py163 # Check if this interpreter installed something and we have to createCOMMENT
LOWlib/spack/spack/test/spec_yaml.py459 # Check if anchors are usedCOMMENT
LOWlib/spack/spack/test/spec_yaml.py482 # Check if anchors are usedSTRING
LOWlib/spack/spack/test/environment_modifications.py373 # Check if we can set a variable to different values dependingCOMMENT
LOWlib/spack/spack/test/sandbox.py98 # Write file: has WRITE_FILE, no READ_DIR (dir flags stripped for non-dirs)COMMENT
LOWlib/spack/spack/test/cmd/compiler.py190 # Set PATH to have the new folder searched firstCOMMENT
LOWlib/spack/spack/test/cmd/list.py139 os.utime(str(update_file), (0, 0)) # Set mtime to 0CODE
LOWlib/spack/spack/test/cmd/repo.py1023 # Set redistribute_source to return FalseCOMMENT
LOW⚡lib/spack/spack/test/concretization/core.py538 # Check if mixing works when it's allowedCOMMENT
LOWlib/spack/spack/test/oci/mock_registry.py155 # Check if digest is present (single monolithic upload)COMMENT
LOWlib/spack/spack/util/module_cmd.py121 # Check if the module was actually loaded by comparing LOADEDMODULESCOMMENT
LOWlib/spack/spack/util/environment.py877 # Check if the file actually existsCOMMENT
LOWlib/spack/spack/ci/__init__.py821 # Check if we can find the tested commits in your local spack repoCOMMENT
LOWlib/spack/spack/ci/common.py683 # Check if this section should be skippedCOMMENT
LOWlib/spack/spack/solver/input_analysis.py155 # Check if we want only generic architectureCOMMENT
LOWlib/spack/spack/solver/input_analysis.py188 # Check if we need to process this condition at all. We can skip the unreachableCOMMENT
LOWlib/spack/spack/solver/clauses.py132 # Check if the target is a concrete targetCOMMENT
LOWlib/spack/spack/mirrors/mirror.py227 # Check if the mirror supports older layout versionsCOMMENT
LOWlib/spack/spack/container/__init__.py68 # Check if the install tree was explicitly set to a custom value and warnCOMMENT
LOWlib/spack/spack/hooks/absolutify_elf_sonames.py48 # Check if excludedCOMMENT
LOWlib/spack/spack/environment/environment.py263 # Check if we need to reinitialize spack.store.STORE and spack.repo.REPOCOMMENT
LOWlib/spack/spack/environment/environment.py3100 # Check if the environment needs updateCOMMENT
LOWlib/spack/spack/installer/core.py598 # Check if we can reschedule this as a source build after a build cache miss. If so,COMMENT
LOWshare/spack/spack-completion.bash285 # Return the resultCOMMENT
LOWshare/spack/bash/spack-completion.bash285 # Return the resultCOMMENT
Modern Structural Boilerplate69 hits · 69 pts
SeverityFileLineSnippetContext
LOW…repos/spack_repo/builtin_mock/build_systems/generic.py6__all__ = ["Package", "GenericBuilder"]CODE
LOW…repos/spack_repo/builtin_mock/build_systems/_checks.py20__all__ = ["execute_build_time_tests", "BuilderWithDefaults", "execute_install_time_tests"]CODE
LOWlib/spack/spack/package.py456__all__ = [CODE
LOWlib/spack/spack/patch.py502 def update_packages(self, pkgs_fullname: Set[str]) -> None:CODE
LOWlib/spack/spack/config.py1161 def update_all(self, section_name: str, change_fn: Callable[[str], bool]) -> None:CODE
LOWlib/spack/spack/__init__.py90__all__ = [CODE
LOWlib/spack/spack/binary_distribution.py341 def update_spec(self, spec: spack.spec.Spec, found_list: List[MirrorMetadata]) -> None:CODE
LOWlib/spack/spack/spec.py2567 def set_prefix(self, value: str) -> None:CODE
LOWlib/spack/spack/directives.py76__all__ = [CODE
LOWlib/spack/spack/old_installer.py979 def _setup_install_dir(self, pkg: "spack.package_base.PackageBase") -> None:CODE
LOWlib/spack/spack/old_installer.py2090 def _update_installed(self, task: Task) -> None:CODE
LOWlib/spack/spack/tag.py55 def update_packages(self, pkg_names: Set[str], repo: "spack.repo.Repo") -> None:CODE
LOWlib/spack/spack/cmd/commands.py856def update_completion(parser: ArgumentParser, args: Namespace) -> None:CODE
LOWlib/spack/spack/cmd/common/arguments.py22__all__ = ["add_common_arguments"]CODE
LOWlib/spack/spack/platforms/__init__.py15__all__ = [CODE
LOWlib/spack/spack/bootstrap/__init__.py18__all__ = [CODE
LOWlib/spack/spack/bootstrap/environment.py85 def update_installations(self) -> None:CODE
LOWlib/spack/spack/util/log_parse.py10__all__ = ["scan_log", "write_block", "write_log_context"]CODE
LOWlib/spack/spack/util/web.py246def set_curl_env_for_ssl_certs(curl: Executable) -> None:CODE
LOWlib/spack/spack/util/naming.py11__all__ = [CODE
LOWlib/spack/spack/util/filesystem.py70__all__ = [CODE
LOWlib/spack/spack/util/link_tree.py16__all__ = ["LinkTree"]CODE
LOWlib/spack/spack/util/link_tree.py197 def set_projection(self, projection: str) -> None:CODE
LOWlib/spack/spack/util/spack_json.py12__all__ = ["load", "dump", "dumps", "SpackJSONError"]CODE
LOWlib/spack/spack/util/file_permissions.py16def set_permissions_by_spec(path: str, spec) -> None:CODE
LOWlib/spack/spack/util/file_permissions.py55def _set_permissions(path: str, s: os.stat_result, perms: int, gid: int) -> None:CODE
LOWlib/spack/spack/util/executable.py21__all__ = ["Executable", "resolve_exe", "which", "which_string", "ProcessError"]CODE
LOWlib/spack/spack/util/lock.py23__all__ = [CODE
LOWlib/spack/spack/util/environment.py637 def set_path(self, name: str, elements: ListOfPaths, separator: str = os.pathsep) -> None:CODE
LOWlib/spack/spack/util/path.py21__all__ = []CODE
LOWlib/spack/spack/util/spack_yaml.py28__all__ = ["load", "dump", "SpackYAMLError"]CODE
LOWlib/spack/spack/util/win_acl.py698def _set_file_sddl_raw(path: str, sddl: str) -> None:CODE
LOWlib/spack/spack/util/win_acl.py1207def set_file_sddl(path: str, sddl: str) -> None:CODE
LOWlib/spack/spack/util/win_acl.py1220def set_exclusive_owner_control(path: str) -> None:CODE
LOWlib/spack/spack/util/tty/color.py260def set_color_when(when: Union[str, bool, None]) -> None:CODE
LOW⚡lib/spack/spack/util/tty/__init__.py43def set_debug(level: int = 0) -> None:CODE
LOW⚡lib/spack/spack/util/tty/__init__.py49def set_verbose(flag: bool) -> None:CODE
LOW⚡lib/spack/spack/util/tty/__init__.py54def set_timestamp(flag: bool) -> None:CODE
LOW⚡lib/spack/spack/util/tty/__init__.py59def set_msg_enabled(flag: bool) -> None:CODE
LOW⚡lib/spack/spack/util/tty/__init__.py64def set_warn_enabled(flag: bool) -> None:CODE
LOW⚡lib/spack/spack/util/tty/__init__.py69def set_error_enabled(flag: bool) -> None:CODE
LOWlib/spack/spack/util/tty/__init__.py128def set_stacktrace(flag: bool) -> None:CODE
LOWlib/spack/spack/operating_systems/__init__.py10__all__ = ["OperatingSystem", "LinuxDistro", "MacOs", "WindowsOs", "FreeBSDOs"]CODE
LOWlib/spack/spack/container/__init__.py18__all__ = ["validate", "recipe"]CODE
LOWlib/spack/spack/version/__init__.py41__all__ = [CODE
LOWlib/spack/spack/environment/__init__.py50__all__ = [CODE
LOW⚡lib/spack/spack/environment/environment.py585def set_included_envs_to_env_paths(include_concrete: List[str]) -> None:CODE
LOW⚡lib/spack/spack/environment/environment.py2618 def update_environment_repository(self) -> None:CODE
LOWlib/spack/spack/environment/environment.py770 def update_root(self, new_path: str) -> None:CODE
LOWlib/spack/spack/environment/environment.py1899 def update_default_view(self, path_or_bool: Union[str, bool]) -> None:CODE
LOWlib/spack/spack/environment/environment.py2596 def update_lockfile(self) -> None:CODE
LOWlib/spack/spack/environment/environment.py3523 def set_include_concrete(self, include_concrete: List[str]) -> None:CODE
LOWlib/spack/spack/environment/environment.py3626 def set_default_view(self, view: Union[bool, str, pathlib.Path, Dict[str, str]]) -> None:CODE
LOWlib/spack/spack/environment/environment.py224def set_active_environment(env: Optional["Environment"]) -> None:STRING
LOWlib/spack/spack/modules/__init__.py23__all__ = ["TclModulefileWriter", "LmodModulefileWriter", "disable_modules"]CODE
LOWlib/spack/spack/modules/common.py127def update_dictionary_extending_lists(target: dict, update: dict) -> None:CODE
LOWlib/spack/spack/modules/common.py1364 def update_module_defaults(self) -> None:CODE
LOWlib/spack/spack/modules/common.py1374 def update_module_hiddenness(self, remove: bool = False) -> None:CODE
LOWlib/spack/spack/installer/ui.py400 def _update_terminal_title(self, clear: bool = False) -> None:CODE
LOWlib/spack/spack/installer/__init__.py30__all__ = ["PackageInstaller"]CODE
9 more matches not shown…
AI Slop Vocabulary31 hits · 60 pts
SeverityFileLineSnippetContext
MEDIUM…/spack_repo/tutorial/packages/netlib_lapack/package.py11 """LAPACK version 3.X is a comprehensive FORTRAN library that doesSTRING
LOW…pack_repo/builtin_mock/packages/compiler_wrapper/cc.sh415# this script doesn't just call itselfCOMMENT
LOW…pack_repo/builtin_mock/packages/compiler_wrapper/cc.sh675 # if mode is not ld, we can just add to other argsCOMMENT
MEDIUMlib/spack/spack/patch.py65 # utilize that patch.COMMENT
LOWlib/spack/spack/url_buildcache.py477 # again, and just return the manifest we already read.COMMENT
MEDIUMlib/spack/spack/enums.py11 """Enum flag to facilitate querying status from the DB"""STRING
LOWlib/spack/spack/config.py2368 # Have a remote URL so simply return it with substitutionsCOMMENT
MEDIUMlib/spack/spack/directives_meta.py19#: Some directives leverage others and in that case are not automatically added.COMMENT
LOWlib/spack/spack/directives_meta.py79 # Historically, maintainers was not a directive. They were simply set as classCOMMENT
MEDIUMlib/spack/spack/build_environment.py578 # their real paths to make it more robust (e.g. /tmp vs /private/tmp on macOS).COMMENT
LOWlib/spack/spack/binary_distribution.py1859 # For now we just use the OCI image spec, so that we don't run into issues withCOMMENT
MEDIUMlib/spack/spack/spec.py5030 # If the spec is concrete, we leverage the dag hash and just use a 64-bit prefix of it.COMMENT
LOWlib/spack/spack/spec.py5030 # If the spec is concrete, we leverage the dag hash and just use a 64-bit prefix of it.COMMENT
MEDIUMlib/spack/spack/cmd/config.py635 # keep track of it and report a comprehensive error laterCOMMENT
MEDIUMlib/spack/spack/cmd/modules/__init__.py143 # Get a comprehensive list of specsCOMMENT
MEDIUMlib/spack/spack/test/conftest.py231 git("tag", "1.2") # test robust parsing to different syntax, no vCODE
MEDIUMlib/spack/spack/test/environment_modifications.py315 # TODO: figure out how to make a bit more robust.COMMENT
MEDIUMlib/spack/spack/test/cmd/env.py4045 # Essentially, the name (hash) we give something in Spack at concretization time isCOMMENT
MEDIUMlib/spack/spack/test/cmd/view.py30 # TODO: Skipping hardlink command testing on windows until robust checks can be added.COMMENT
LOWlib/spack/spack/test/util/lang.py320 # Default behavior is to just return the deprecated valueCOMMENT
MEDIUMlib/spack/spack/test/concretization/requirements.py627 # fact that "clang" is not the preferred compiler. That helps making more robust theSTRING
LOWlib/spack/spack/util/spack_yaml.py293#: itself, so we can't just pass an instanceCOMMENT
LOWlib/spack/spack/container/writers.py77 # If we have custom base images, just return them verbatim.COMMENT
LOWlib/spack/spack/environment/environment.py648 # just return empty if the env path does not exist. A read-onlyCOMMENT
MEDIUMshare/spack/setup-env.sh302 # the tricks above for finding the sourced file are pretty robust.COMMENT
LOWshare/spack/spack-completion.bash152 # if every completion is an alias for the same thing, just return that thing.COMMENT
LOWshare/spack/spack-completion.bash358 # no alias found -- just return $1COMMENT
LOWshare/spack/spack-completion.bash384 # all commands alias to first alias; just return thatCOMMENT
LOWshare/spack/bash/spack-completion.bash152 # if every completion is an alias for the same thing, just return that thing.COMMENT
LOWshare/spack/bash/spack-completion.bash358 # no alias found -- just return $1COMMENT
LOWshare/spack/bash/spack-completion.bash384 # all commands alias to first alias; just return thatCOMMENT
AI Structural Patterns36 hits · 31 pts
SeverityFileLineSnippetContext
LOWlib/spack/spack/store.py245CODE
LOWlib/spack/spack/build_environment.py193CODE
LOWlib/spack/spack/build_environment.py212CODE
LOWlib/spack/spack/build_environment.py231CODE
LOWlib/spack/spack/database.py1621CODE
LOWlib/spack/spack/database.py1680CODE
LOWlib/spack/spack/database.py1740CODE
LOWlib/spack/spack/graph.py476CODE
LOWlib/spack/spack/spec.py1555CODE
LOWlib/spack/spack/spec.py2446CODE
LOWlib/spack/spack/spec.py2473CODE
LOWlib/spack/spack/spec.py2499CODE
LOWlib/spack/spack/spec.py2526CODE
LOWlib/spack/spack/spec.py4591CODE
LOWlib/spack/spack/traverse.py447CODE
LOWlib/spack/spack/traverse.py491CODE
LOWlib/spack/spack/traverse.py560CODE
LOWlib/spack/spack/traverse.py604CODE
LOWlib/spack/spack/url.py515CODE
LOWlib/spack/spack/directives.py177CODE
LOWlib/spack/spack/old_installer.py1361CODE
LOWlib/spack/spack/installer_dispatch.py19CODE
LOWlib/spack/spack/cmd/install.py245CODE
LOWlib/spack/spack/bootstrap/status.py113CODE
LOWlib/spack/spack/test/cmd/mirror.py234CODE
LOWlib/spack/spack/test/installer/ui.py45CODE
LOWlib/spack/spack/util/executable.py144CODE
LOWlib/spack/spack/util/executable.py160CODE
LOWlib/spack/spack/util/executable.py176CODE
LOWlib/spack/spack/util/executable.py191CODE
LOWlib/spack/spack/ci/common.py319CODE
LOWlib/spack/spack/solver/asp.py3703CODE
LOWlib/spack/spack/solver/clauses.py139CODE
LOWlib/spack/spack/solver/clauses.py386CODE
LOWlib/spack/spack/installer/ui.py173CODE
LOWlib/spack/spack/installer/core.py173CODE
Synthetic Comment Markers1 hit · 11 pts
SeverityFileLineSnippetContext
HIGH⚡lib/spack/spack/test/stage.py230 # Create the optional files as requested and make sure expandedCOMMENT
AI Response Leakage1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHlib/spack/spack/test/cmd/env.py4705 # In this example we have `./bin/x` in 3 prefixes, two links, one regular file. We expect theCOMMENT
Slop Phrases3 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMlib/spack/spack/paths.py122# There are three environment variables you can use to isolate spack fromCOMMENT
LOWlib/spack/spack/repo.py1583 # dictionaries are used on the same physical repo, we make sure to restore the originalCOMMENT
LOWlib/spack/spack/test/old_installer.py1437 # Also make sure to not accept an incompatible installed argument value.COMMENT
Structural Annotation Overuse4 hits · 6 pts
SeverityFileLineSnippetContext
LOWlib/spack/spack/spec.py2038 # WARNING: This function is an implementation detail of theCOMMENT
LOWlib/spack/spack/cmd/installer/README.md8# Step 1: Install prerequisitesCOMMENT
LOWlib/spack/spack/cmd/installer/README.md15# Step 2: Make the installerCOMMENT
LOWlib/spack/spack/cmd/installer/README.md62# Step 3: Run the installerCOMMENT
Fake / Example Data3 hits · 3 pts
SeverityFileLineSnippetContext
LOW…builtin_mock/packages/needs_text_relocation/package.py27 f.write("Lorem Ipsum")CODE
LOWlib/spack/spack/test/util/tty/color.py21 "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt "CODE
LOWlib/spack/spack/test/util/tty/color.py21 "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt "CODE
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWshare/spack/qa/setup.sh48# Usage:COMMENT