Repository Analysis

conda/conda

A system-level, binary package and environment manager running on all major operating systems and platforms.

4.3 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of conda/conda, a Python project with 7,498 GitHub stars. SynthScan v2.0 examined 608,122 lines of code across 1170 source files, recording 2434 pattern matches distributed across 21 syntactic categories. The overall adjusted score of 4.3 places this repository in the Likely human-written 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).

4.3
Adjusted Score
4.3
Raw Score
100%
Time Factor
2026-08-28
Last Push
7.5K
Stars
Python
Language
608.1K
Lines of Code
1.2K
Files
2.4K
Pattern Hits
2026-08-29
Scan Date
0.04
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 2HIGH 45MEDIUM 77LOW 2310

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

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

Hyper-Verbose Identifiers1498 hits · 1390 pts
SeverityFileLineSnippetContext
LOWconda/misc.py90def _match_specs_from_explicit(specs: Iterable[str]) -> Iterable[MatchSpec]:CODE
LOWconda/misc.py139def install_explicit_packages(CODE
LOWconda/misc.py183def _get_package_record_from_specs(specs: list[str]) -> Iterable[PackageCacheRecord]:CODE
LOWconda/misc.py206def get_package_records_from_explicit(lines: list[str]) -> Iterable[PackageCacheRecord]:CODE
LOWconda/resolve.py110def exactness_and_number_of_deps(resolve_obj, ms):CODE
LOWconda/resolve.py437 def breadth_first_search_for_dep_graph(CODE
LOWconda/resolve.py1092 def generate_spec_constraints(self, C, specs):CODE
LOWconda/resolve.py1259 def environment_is_consistent(self, installed):CODE
LOWconda/exception_handler.py99 def handle_application_exception(CODE
LOWconda/exception_handler.py114 def handle_unexpected_exception(CODE
LOWconda/exception_handler.py122 def handle_reportable_application_exception(CODE
LOWconda/exception_handler.py172 def print_unexpected_error_report(self, error_report: dict[str, str]) -> None:CODE
LOWconda/exception_handler.py224 def print_expected_error_report(self, error_report: dict[str, str]) -> None:CODE
LOWconda/reporters.py68def get_progress_bar_context_manager() -> AbstractContextManager:CODE
LOWconda/exceptions.py1606def format_env_spec_available_plugins(CODE
LOWconda/activate.py821 def _get_environment_env_vars(self, prefix):CODE
LOWconda/activate.py888def backslash_to_forwardslash(CODE
LOWconda/history.py153 def _parse_old_format_specs_string(specs_string):CODE
LOWconda/core/link.py335 def _cleanup_transaction_artifacts(self):CODE
LOWconda/core/link.py747 def _verify_transaction_level(prefix_setups):CODE
LOWconda/core/link.py1141 def _execute_post_link_actions(axngroup):CODE
LOWconda/core/link.py1276 def _make_entry_point_actions(CODE
LOWconda/core/link.py1314 def _make_legacy_action_groups(self):CODE
LOWconda/core/link.py1344 def print_transaction_summary(self):CODE
LOWconda/core/package_cache_data.py259 def all_caches_writable_first(cls, pkgs_dirs=None):CODE
LOWconda/core/package_cache_data.py266 def get_all_extracted_entries(cls):CODE
LOWconda/core/package_cache_data.py320 def tarball_file_in_this_cache(self, tarball_path, md5sum=None):CODE
LOWconda/core/package_cache_data.py369 def _scan_for_dist_no_channel(self, dist_str):CODE
LOWconda/core/package_cache_data.py527 def _dedupe_pkgs_dir_contents(pkgs_dir_contents):CODE
LOWconda/core/package_cache_data.py1075 def progress_update_cache_action(pct_completed):CODE
LOWconda/core/path_actions.py360 def create_python_entry_point_windows_exe_action(CODE
LOWconda/core/index.py289 def _supplement_index_dict_with_prefix(self) -> None:CODE
LOWconda/core/index.py317 def _supplement_index_dict_with_cache(self) -> None:CODE
LOWconda/core/index.py358 def _retrieve_all_from_channels(self, key: PackageRecord) -> list[PackageRecord]:CODE
LOWconda/core/initialize.py1311def install_condabin_conda_bat(target_path, conda_prefix):CODE
LOWconda/core/initialize.py1319def install_library_bin_conda_bat(target_path, conda_prefix):CODE
LOWconda/core/initialize.py1329def install_condabin_conda_activate_bat(target_path, conda_prefix):CODE
LOWconda/core/initialize.py1339def install_condabin_rename_tmp_bat(target_path, conda_prefix):CODE
LOWconda/core/initialize.py1347def install_condabin_conda_auto_activate_bat(target_path, conda_prefix):CODE
LOWconda/core/initialize.py1357def install_condabin_hook_bat(target_path, conda_prefix):CODE
LOWconda/core/initialize.py1425def _config_fish_content_to_add_condabin_to_path(conda_prefix):CODE
LOWconda/core/initialize.py1567def _config_xonsh_content_to_add_condabin_to_path(conda_prefix):STRING
LOWconda/core/initialize.py1724def _bashrc_content_to_add_condabin_to_path(conda_prefix, shell):STRING
LOWconda/core/initialize.py2032def add_condabin_to_path_registry(target_path, conda_prefix, reverse=False):STRING
LOWconda/core/initialize.py2108def _powershell_profile_content(conda_prefix):STRING
LOWconda/core/initialize.py2125def _powershell_profile_content_to_add_condabin_to_path(conda_prefix):STRING
LOWconda/core/portability.py332def replace_pyzzer_entry_point_shebang(CODE
LOWconda/core/portability.py427def generate_shebang_for_entry_point(CODE
LOWconda/core/prefix_data.py661 def _get_environment_state_file(self) -> dict[str, dict[str, str]]:CODE
LOWconda/core/prefix_data.py670 def _write_environment_state_file(self, state: dict[str, dict[str, str]]) -> None:CODE
LOWconda/core/prefix_data.py674 def _ensure_no_reserved_env_vars(self, env_vars_names: Iterable[str]) -> None:CODE
LOWconda/core/prefix_data.py711 def unset_environment_env_vars(self, env_vars: list[str]) -> dict[str, str] | None:CODE
LOWconda/core/prefix_data.py760def get_conda_anchor_files_and_records(CODE
LOWconda/core/prefix_data.py807def delete_prefix_from_linked_data(path: str | os.PathLike | Path) -> bool:CODE
LOWconda/core/solve.py137 def _validate_exclude_newer_support(self) -> None:CODE
LOWconda/core/solve.py157 def _validate_exclude_newer_link_precs(CODE
LOWconda/core/solve.py571 def determine_constricting_specs(self, spec, solution_precs):STRING
LOWconda/core/solve.py612 def get_request_package_in_solution(self, solution_precs, specs_map):STRING
LOWconda/core/solve.py780 def _find_inconsistent_packages(self, ssc):STRING
LOWconda/core/solve.py1493def diff_for_unlink_link_precs(CODE
1438 more matches not shown…
Unused Imports400 hits · 385 pts
SeverityFileLineSnippetContext
LOWconda/exports.py5CODE
LOWconda/exports.py17CODE
LOWconda/exports.py23CODE
LOWconda/exports.py23CODE
LOWconda/exports.py23CODE
LOWconda/exports.py24CODE
LOWconda/exports.py25CODE
LOWconda/exports.py25CODE
LOWconda/exports.py29CODE
LOWconda/exports.py30CODE
LOWconda/exports.py31CODE
LOWconda/exports.py35CODE
LOWconda/exports.py38CODE
LOWconda/exports.py49CODE
LOWconda/exports.py51CODE
LOWconda/exports.py52CODE
LOWconda/exports.py53CODE
LOWconda/exports.py54CODE
LOWconda/exports.py55CODE
LOWconda/exports.py55CODE
LOWconda/exports.py56CODE
LOWconda/exports.py56CODE
LOWconda/exports.py57CODE
LOWconda/exports.py59CODE
LOWconda/exports.py59CODE
LOWconda/exports.py60CODE
LOWconda/exports.py60CODE
LOWconda/exports.py61CODE
LOWconda/exports.py61CODE
LOWconda/exports.py67CODE
LOWconda/exports.py67CODE
LOWconda/misc.py5CODE
LOWconda/resolve.py8CODE
LOWconda/__init__.py5CODE
LOWconda/deprecations.py5CODE
LOWconda/exception_handler.py5CODE
LOWconda/utils.py5CODE
LOWconda/reporters.py7CODE
LOWconda/exceptions.py5CODE
LOWconda/exceptions.py28CODE
LOWconda/exceptions.py32CODE
LOWconda/exceptions.py32CODE
LOWconda/activate.py12CODE
LOWconda/history.py5CODE
LOWconda/_preview/env_setup/cli/main_create.py10CODE
LOWconda/_preview/env_setup/cli/main_install.py10CODE
LOWconda/core/link.py5CODE
LOWconda/core/package_cache_data.py5CODE
LOWconda/core/path_actions.py5CODE
LOWconda/core/index.py5CODE
LOWconda/core/portability.py5CODE
LOWconda/core/exclude_newer.py5CODE
LOWconda/core/prefix_data.py5CODE
LOWconda/core/solve.py5CODE
LOWconda/core/envs_manager.py5CODE
LOWconda/core/subdir_data.py5CODE
LOWconda/plugins/config.py11CODE
LOWconda/plugins/previews.py5CODE
LOWconda/plugins/__init__.py28CODE
LOWconda/plugins/__init__.py30CODE
340 more matches not shown…
Deep Nesting191 hits · 179 pts
SeverityFileLineSnippetContext
LOWconda/misc.py225CODE
LOWconda/misc.py285CODE
LOWconda/resolve.py345CODE
LOWconda/resolve.py478CODE
LOWconda/resolve.py501CODE
LOWconda/resolve.py680CODE
LOWconda/resolve.py1118CODE
LOWconda/resolve.py1153CODE
LOWconda/resolve.py1308CODE
LOWconda/resolve.py1448CODE
LOWconda/resolve.py720CODE
LOWconda/deprecations.py404CODE
LOWconda/utils.py176CODE
LOWconda/exceptions.py1706CODE
LOWconda/exceptions.py969CODE
LOWconda/exceptions.py1003CODE
LOWconda/activate.py126CODE
LOWconda/activate.py692CODE
LOWconda/activate.py746CODE
LOWconda/history.py125CODE
LOWconda/history.py173CODE
LOWconda/history.py309CODE
LOWconda/history.py348CODE
LOWconda/core/link.py1585CODE
LOWconda/core/link.py1735CODE
LOWconda/core/link.py652CODE
LOWconda/core/link.py747CODE
LOWconda/core/link.py922CODE
LOWconda/core/link.py1519CODE
LOWconda/core/package_cache_data.py126CODE
LOWconda/core/package_cache_data.py218CODE
LOWconda/core/package_cache_data.py389CODE
LOWconda/core/package_cache_data.py808CODE
LOWconda/core/path_actions.py420CODE
LOWconda/core/index.py487CODE
LOWconda/core/index.py494CODE
LOWconda/core/initialize.py155CODE
LOWconda/core/initialize.py538CODE
LOWconda/core/initialize.py1009CODE
LOWconda/core/initialize.py1875CODE
LOWconda/core/portability.py190CODE
LOWconda/core/portability.py332CODE
LOWconda/core/prefix_data.py760CODE
LOWconda/core/prefix_data.py379CODE
LOWconda/core/prefix_data.py435CODE
LOWconda/core/prefix_data.py711CODE
LOWconda/core/solve.py322CODE
LOWconda/core/solve.py383CODE
LOWconda/core/solve.py571CODE
LOWconda/core/solve.py825CODE
LOWconda/core/solve.py866CODE
LOWconda/core/solve.py1105CODE
LOWconda/core/solve.py1235CODE
LOWconda/core/subdir_data.py53CODE
LOWconda/core/subdir_data.py213CODE
LOWconda/core/subdir_data.py594CODE
LOWconda/core/subdir_data.py720CODE
LOWconda/plugins/config.py82CODE
LOWconda/plugins/types.py221CODE
LOWconda/plugins/manager.py806CODE
131 more matches not shown…
Cross-Language Confusion28 hits · 138 pts
SeverityFileLineSnippetContext
HIGHconda/activate.py1064 unset_var_tmpl = "set -e %s || true"CODE
HIGHconda/core/initialize.py1702 __conda_setup="$('%(conda_exe)s' 'shell.%(shell)s' 'hook' 2> /dev/null)"CODE
HIGHconda/cli/condarc.py561 CondaKeyError: If the key is unknown, undefined, or the item is not present.STRING
HIGHconda/common/constants.py9# to null, or the key didn't exist at all. There could be a bit of potential confusion here,COMMENT
HIGHconda/auxlib/__init__.py88# to null, or the key didn't exist at all. There could be a bit of potential confusion here,COMMENT
HIGHconda/auxlib/entity.py217 >>> # latest_charge can be null, but it can't be deleted. The default value is a callable.STRING
HIGHconda/auxlib/entity.py223 '{"latest_charge": null, "expiration": "1982-02-17T00:00:00"}'STRING
HIGHconda/auxlib/entity.py225 >>> # expiration is assigned by default, can't be made null, but can be deleted.STRING
HIGHconda/auxlib/entity.py233 '{"latest_charge": null}'STRING
HIGHconda/base/context.py2058 'local' channel in the list. If the list is empty or left undefined, noSTRING
HIGHconda/base/context.py2067 the 'local' channel in the list. If the list is empty or left undefined, noSTRING
HIGHconda/base/context.py2259 context_stack.push(search_path, argparse_args)STRING
HIGHtests/test_activate.py1724 f"set -e CONDA_PREFIX || true;\n"CODE
HIGHtests/test_activate.py1725 f"set -e CONDA_DEFAULT_ENV || true;\n"CODE
HIGHtests/test_activate.py1726 f"set -e CONDA_PROMPT_MODIFIER || true;\n"CODE
HIGHtests/core/test_initialize.py948 __conda_setup="$('{prefix}/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"CODE
HIGHtests/core/test_initialize.py979 __conda_setup="$('{prefix}/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"CODE
HIGHtests/core/test_initialize.py1056 __conda_setup="$('{prefix}/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"CODE
HIGHtests/core/test_initialize.py470 "set -e _CE_M || true;",STRING
HIGHtests/core/test_initialize.py471 "set -e _CE_CONDA || true;",STRING
HIGHtests/core/test_initialize.py480 "set -e _CE_M || true;",STRING
HIGHtests/core/test_initialize.py481 "set -e _CE_CONDA || true;",STRING
HIGHtests/plugins/test_environment_export.py512 # Should have a name field (even if None/null)COMMENT
HIGHtests/shell/test_posix.py198 sh.sendline(f'conda {install} --blah || echo "exitcode=$?"')CODE
HIGHtests/shell/test_posix.py201 sh.sendline('conda list --blah || echo "exitcode=$?"')CODE
HIGHtests/models/test_match_spec.py1899 assert MatchSpec("package[extras=[yes, no, 0, 1, True, False, null, None]]").get(CODE
HIGHtests/models/test_match_spec.py1955 assert MatchSpec("package[flags=[yes, no, 0, 1, True, False, null, None]]").get(CODE
HIGHtests/base/test_context.py957 stack.push((), None)CODE
Self-Referential Comments40 hits · 125 pts
SeverityFileLineSnippetContext
MEDIUMconda/__init__.py221 # This function is in the base __init__.py so that it can be monkey-patched by other codeCOMMENT
MEDIUMconda/plugins/prefix_data_loaders/pypi/pkg_format.py1105 """This class is used to evaluate marker expressions."""STRING
MEDIUMconda/_private/extract.py10# This module is imported in each spawned extraction worker. Keep imports hereCOMMENT
MEDIUMconda/gateways/shards/__init__.py13# Define a minimal high-level API for shardsCOMMENT
MEDIUMtests/test_exceptions.py527 # Create a mock Response objectCOMMENT
MEDIUMtests/test_exceptions.py536 # Create the response with a detail fieldCOMMENT
MEDIUMtests/shards/test_coverage.py720 # Create a file:// URI to test the connection functionCOMMENT
MEDIUMtests/shards/test_coverage.py344 # Create a file that's not a valid databaseCOMMENT
MEDIUMtests/shards/test_coverage.py978 # Create a corrupted database fileCOMMENT
MEDIUMtests/shards/test_shards.py955 # Create a copy with mutable structure for testingCOMMENT
MEDIUMtests/shards/test_shards_subset.py944 # Create a custom queue that adds delaysCOMMENT
MEDIUMtests/shards/test_shards_subset.py1179 # Create a chaotic queue class that adds random delaysCOMMENT
MEDIUMtests/shards/test_shardfetch.py43 # Create a ShardFetch with Shards instanceCOMMENT
MEDIUMtests/shards/test_shardfetch.py60 # Create a Shards instanceCOMMENT
MEDIUMtests/shards/test_shardfetch.py70 # Create a mock futureCOMMENT
MEDIUMtests/shards/test_shardfetch.py93 # Create a temporary cacheCOMMENT
MEDIUMtests/shards/test_shardfetch.py96 # Create a ShardLike instance (not Shards)COMMENT
MEDIUMtests/shards/test_shardfetch.py123 # Create a temporary cacheCOMMENT
MEDIUMtests/shards/test_shardfetch.py126 # Create a ShardLike instance (not Shards)COMMENT
MEDIUMtests/shards/test_shardfetch.py154 # Create a Shards instanceCOMMENT
MEDIUMtests/core/test_prefix_data.py752 # Create a mock PrefixGraph that returns both conda and Python packagesCOMMENT
MEDIUMtests/core/test_prefix_data.py756 # Create a mock PrefixData instanceCOMMENT
MEDIUMtests/core/test_prefix_data.py920 # Create a mock PrefixGraph that returns our test recordsCOMMENT
MEDIUMtests/core/test_package_cache_data.py229 # Create a package record that simulates repodata v3 formatCOMMENT
MEDIUMtests/core/test_package_cache_data.py314 # Create a package record that simulates traditional repodata formatCOMMENT
MEDIUMtests/core/test_initialize.py1179# Define a namedtuple for test case parameters; helps with readabilitySTRING
MEDIUMtests/plugins/test_environment_export.py409 # Create a plugin with wildcard patternCOMMENT
MEDIUMtests/plugins/test_env_specs.py444 # Create a test file with appropriate contentCOMMENT
MEDIUMtests/plugins/test_env_specs.py466 # Create a file with non-standard name but valid requirements.txt contentCOMMENT
MEDIUMtests/plugins/test_env_specs.py515 # Create a file that doesn't match any pluginCOMMENT
MEDIUMtests/shell/test_cmd_exe.py171 # Create a failing activation script in the environmentCOMMENT
MEDIUMtests/cli/test_main_export.py853 # Create an environment with conda packages and pip dependenciesCOMMENT
MEDIUMtests/cli/test_main_config.py642 # Create a temporary user condarcCOMMENT
MEDIUMtests/cli/test_main_config.py660 # Create a temporary system condarcCOMMENT
MEDIUMtests/cli/test_main_config.py676 # Create a temporary environment with .condarcCOMMENT
MEDIUMtests/common/pkg_formats/test_python.py44 ('folder', 'fname', 'content'), # Create a file in folder with contentSTRING
MEDIUMtests/common/pkg_formats/test_python.py45 ('', 'fname', 'content'), # Create a file with contentSTRING
MEDIUMtests/common/pkg_formats/test_python.py46 ('folder', '', ''), # Create a folderSTRING
MEDIUM…-win-amd64.egg/EGG-INFO/scripts/pywin32_postinstall.py83 # Create a function with the same signature as create_shortcut providedCOMMENT
MEDIUM…-win-amd64.egg/EGG-INFO/scripts/pywin32_postinstall.py423 # Create the win32com\gen_py directory.COMMENT
Excessive Try-Catch Wrapping101 hits · 112 pts
SeverityFileLineSnippetContext
LOWconda/resolve.py85 except Exception as e:CODE
LOWconda/resolve.py96 except Exception as e:CODE
LOWconda/__init__.py144 except Exception:CODE
LOWconda/exception_handler.py149 except Exception as info_e:CODE
LOWconda/exception_handler.py201 except Exception as e:CODE
LOWconda/exception_handler.py249 except Exception as e:CODE
LOWconda/exception_handler.py272 except Exception as e:CODE
LOWconda/exception_handler.py332 except Exception as e:CODE
LOWconda/exception_handler.py387 except Exception as e: # pragma: no coverCODE
LOWconda/exception_handler.py396 except Exception as e:CODE
MEDIUMconda/exception_handler.py269def _isatty(self) -> bool:CODE
LOWconda/utils.py82 except Exception:CODE
LOWconda/core/link.py1127 except Exception as e: # this won't be a multi errorCODE
LOWconda/core/link.py1153 except Exception as e: # this won't be a multi errorCODE
LOWconda/core/link.py1195 except Exception as e:CODE
LOWconda/core/link.py1616 except Exception as e:CODE
LOWconda/core/package_cache_data.py957 except Exception as e:CODE
LOWconda/core/package_cache_data.py1001 except Exception as e:CODE
LOWconda/core/package_cache_data.py1125 except Exception as e:CODE
MEDIUMconda/core/initialize.py312def make_install_plan(conda_prefix):CODE
LOWconda/core/initialize.py691 except Exception:CODE
LOWconda/core/initialize.py926 except Exception:CODE
LOWconda/core/initialize.py1942 except Exception:STRING
LOWconda/core/exclude_newer.py175 except Exception:CODE
LOWconda/core/subdir_data.py461 except Exception:CODE
LOWconda/core/subdir_data.py539 except Exception:CODE
LOWconda/plugins/manager.py334 except Exception as err:CODE
LOWconda/plugins/manager.py374 except Exception as err:CODE
LOWconda/plugins/manager.py1013 except Exception as e:CODE
LOWconda/plugins/manager.py1063 except Exception as e:CODE
LOWconda/plugins/manager.py1096 except Exception:CODE
LOWconda/plugins/virtual_packages/cuda.py180 except Exception:CODE
LOWconda/plugins/subcommands/doctor/__init__.py94 except Exception as err:CODE
LOWconda/plugins/subcommands/doctor/__init__.py121 except Exception as err:CODE
LOW…gins/subcommands/doctor/health_checks/altered_files.py38 except Exception as exc:CODE
LOW…nda/plugins/subcommands/doctor/health_checks/pinned.py31 except Exception:CODE
LOW…nda/plugins/subcommands/doctor/health_checks/pinned.py52 except Exception as err:CODE
LOW…nda/plugins/subcommands/doctor/health_checks/pinned.py112 except Exception:CODE
LOWconda/plugins/prefix_data_loaders/pypi/pkg_format.py1220 except Exception as e:CODE
LOWconda/models/channel.py384 except Exception as e:CODE
LOWconda/cli/main_config.py690 except Exception: # pragma: no coverCODE
LOWconda/cli/main_info.py244 except Exception as err:CODE
LOWconda/cli/common.py255 except Exception as exc:STRING
LOWconda/_private/extract.py36 except Exception as error:CODE
LOWconda/_private/extract.py42 except Exception:CODE
LOWconda/notices/core.py142 except Exception:CODE
LOWconda/testing/gateways/fixtures.py117 except Exception as e:CODE
LOWconda/common/_os/windows.py121 except Exception as e:CODE
LOWconda/common/_os/windows.py131 except Exception as e: # pragma: no coverCODE
LOWconda/common/_os/windows.py142 except Exception as e:CODE
LOWconda/common/_os/windows.py181 except Exception as e:CODE
LOWconda/common/path/windows.py110 except Exception as err:CODE
LOWconda/gateways/logging.py94 except Exception:STRING
LOWconda/gateways/logging.py122 except Exception:CODE
LOWconda/gateways/repodata/__init__.py206 except Exception:CODE
LOWconda/gateways/disk/update.py129 except Exception as exc:CODE
LOWconda/gateways/disk/create.py200 except Exception:STRING
LOWconda/gateways/disk/permissions.py32 except Exception as e:CODE
MEDIUMconda/gateways/disk/permissions.py20def make_writable(path):CODE
LOWconda/auxlib/logz.py160 except Exception as e:CODE
41 more matches not shown…
Docstring Block Structure17 hits · 85 pts
SeverityFileLineSnippetContext
HIGHconda/core/portability.py260 Replaces occurrences of a search string with a replacement string in a given byte string. Args: data: STRING
HIGHconda/core/portability.py289 Replaces occurrences of the search string with the replacement string in a matched group. Args: STRING
HIGHconda/plugins/manager.py937 Get a mapping from plugin names (including aliases) to plugin. Args: plugins: Plugins thatSTRING
HIGHconda/plugins/manager.py981Get an environment specifier plugin by name Args: source: full path to the environment spec file/soSTRING
HIGHconda/plugins/manager.py1197 Detect an environment exporter based on filename matching against default_filenames. Uses fnmatch pattSTRING
HIGHconda/plugins/manager.py1241 Get an environment exporter based on the format name. Args: format_name: Format name to fiSTRING
HIGHconda/plugins/manager.py1369 Get the package extractor plugin for a given package path. Searches through registered package extractSTRING
HIGHconda/models/channel.py252Generate URLs for this channel across specified platforms. Args: with_credentials: If True, includeSTRING
HIGHconda/models/match_spec.py781 Sanitize version strings for MatchSpec parsing. Handles edge cases and translates version patterns for proper STRING
HIGHconda/cli/condarc.py153 Validate that provided parameters exist in the configuration context. Compares the provided parameters with thSTRING
HIGHconda/testing/fixtures.py257Test conda CLI. Mimic what is done in `conda.cli.main.main`. `conda ...` == `conda_cli(...)` Args: STRING
HIGHconda/testing/fixtures.py339Test pip CLI in a specific conda environment. `pip ...` in environment == `pip_cli(..., prefix=env_path)` STRING
HIGHconda/testing/fixtures.py819 Function-scoped HTTP test server for serving local files. This fixture starts an HTTP server on a random port STRING
HIGHconda/common/path/__init__.py181 Split path into (base, extension) for known extensions. Package extensions are determined dynamically from regSTRING
HIGHconda/auxlib/collection.py29Give the first value that satisfies the key test. Args: seq (iterable): key (callable): test for eaSTRING
HIGHconda/auxlib/type_coercion.py136Convert a number, string, or sequence type into a pure boolean. Args: value (number, string, sequence): preSTRING
HIGHconda/base/context.py2376Get the prefix to operate in. The prefix may not yet exist. Args: ctx: the context of conda args: STRING
Over-Commented Block55 hits · 52 pts
SeverityFileLineSnippetContext
LOWconda/activate.py81 # 2. Execute/source activate.d/deactivate.d scriptsCOMMENT
LOWconda/core/package_cache_data.py721COMMENT
LOWconda/core/portability.py341 Args:COMMENT
LOWconda/core/portability.py461 executable_in_prefix = FalseCOMMENT
LOWconda/core/solve.py681COMMENT
LOWconda/core/solve.py861 pkg_name not in explicit_pool or target_prec in explicit_pool[pkg_name]COMMENT
LOWconda/plugins/prefix_data_loaders/pypi/pkg_format.py501 # ('Description-Content-Type', 'description_content_type'),COMMENT
LOWconda/models/match_spec.py1421 # Raise on incompatible patternCOMMENT
LOWconda/models/match_spec.py1621 if self._re_match:COMMENT
LOWconda/models/prefix_graph.py361# builder.append(' label="%s";' % title)COMMENT
LOWconda/models/prefix_graph.py381# for child in node.optional_children:COMMENT
LOWconda/cli/find_commands.py81 except (FileNotFoundError, NotADirectoryError, PermissionError, OSError):COMMENT
LOWconda/cli/install.py181 # 2. there are more repodatas to try ANDCOMMENT
LOWconda/testing/__init__.py1# Copyright (C) 2012 Anaconda, IncCOMMENT
LOWconda/testing/notices/__init__.py1# Copyright (C) 2012 Anaconda, IncCOMMENT
LOWconda/testing/gateways/__init__.py1# Copyright (C) 2012 Anaconda, IncCOMMENT
LOWconda/common/path/_cygpath.py41 # 1. root filesystem forms:COMMENT
LOWconda/gateways/connection/adapters/__init__.py1# Copyright (C) 2012 Anaconda, IncCOMMENT
LOWconda/gateways/disk/update.py161 with open(path, "a"):COMMENT
LOWconda/auxlib/decorators.py201 if obj is None:COMMENT
LOWconda/base/constants.py421# erlang: https://hex.pm/packagesCOMMENT
LOWconda/base/context.py1221 def python_implementation_name_version(self) -> tuple[str, str]:COMMENT
LOWconda/base/context.py1801 # """COMMENT
LOWtests/_preview/__init__.py1# Copyright (C) 2012 Anaconda, IncCOMMENT
LOWtests/_preview/env_setup/__init__.py1# Copyright (C) 2012 Anaconda, IncCOMMENT
LOWtests/_preview/env_setup/cli/__init__.py1# Copyright (C) 2012 Anaconda, IncCOMMENT
LOWtests/core/test_solve.py1561 assert pkg.version == "0.24"COMMENT
LOWtests/core/test_solve.py3301# self.prefix = '/a/test/c/prefix'COMMENT
LOWtests/core/test_solve.py3321# else:COMMENT
LOWtests/core/test_solve.py3341# 'channel-1::python-2.7.13-0',COMMENT
LOWtests/core/__init__.py1# Copyright (C) 2012 Anaconda, IncCOMMENT
LOWtests/core/test_package_cache_data.py541 repodata_record = json.load(fh)COMMENT
LOWtests/plugins/__init__.py1# Copyright (C) 2012 Anaconda, IncCOMMENT
LOWtests/plugins/reporter_backends/__init__.py1# Copyright (C) 2012 Anaconda, IncCOMMENT
LOW…ts/plugins/data/test-plugin/test_plugin/importerror.py1# Copyright (C) 2012 Anaconda, IncCOMMENT
LOWtests/plugins/data/test-plugin/test_plugin/blocked.py1# Copyright (C) 2012 Anaconda, IncCOMMENT
LOWtests/plugins/data/test-plugin/test_plugin/__init__.py1# Copyright (C) 2012 Anaconda, IncCOMMENT
LOWtests/models/test_prefix_graph.py801def test_deep_cyclical_dependency(tmpdir):COMMENT
LOWtests/models/test_match_spec.py1221 # "build_number": '<3',COMMENT
LOWtests/models/__init__.py1# Copyright (C) 2012 Anaconda, IncCOMMENT
LOWtests/cli/__init__.py1# Copyright (C) 2012 Anaconda, IncCOMMENT
LOWtests/_private/__init__.py1# Copyright (C) 2012 Anaconda, IncCOMMENT
LOWtests/notices/__init__.py1# Copyright (C) 2012 Anaconda, IncCOMMENT
LOWtests/common/test_logic.py1# Copyright (C) 2012 Anaconda, IncCOMMENT
LOWtests/common/_os/__init__.py1# Copyright (C) 2012 Anaconda, IncCOMMENT
LOWtests/common/path/__init__.py1# Copyright (C) 2012 Anaconda, IncCOMMENT
LOWtests/common/path/test_windows.py241 pytest.param(COMMENT
LOWtests/gateways/__init__.py1# Copyright (C) 2012 Anaconda, IncCOMMENT
LOWtests/gateways/disk/__init__.py1# Copyright (C) 2012 Anaconda, IncCOMMENT
LOWtests/data/__init__.py1# Copyright (C) 2012 Anaconda, IncCOMMENT
LOWtests/data/build-index5-json.py121 r3json = read_data_source("main_noarch")COMMENT
LOWtests/data/build-index5-json.py141 # "md5": "bdc6db1adbe7268e3ecbae13ec02066a",COMMENT
LOWtests/data/recipes/generate_packages.sh1#!/usr/bin/env bashCOMMENT
LOWtests/base/__init__.py1# Copyright (C) 2012 Anaconda, IncCOMMENT
LOW.github/template-files/config.yml21 dst: .github/workflows/build.ymlCOMMENT
Decorative Section Separators13 hits · 36 pts
SeverityFileLineSnippetContext
MEDIUMconda/plugins/prefix_data_loaders/pypi/pkg_format.py468# -----------------------------------------------------------------------------COMMENT
MEDIUMconda/plugins/prefix_data_loaders/pypi/pkg_format.py493 # -----------------------------------------------------------------------------COMMENT
MEDIUMconda/plugins/prefix_data_loaders/pypi/pkg_format.py829# -----------------------------------------------------------------------------COMMENT
MEDIUMconda/plugins/prefix_data_loaders/pypi/pkg_format.py990# ------------------------------------------------------------------------------------------------COMMENT
MEDIUMconda/plugins/prefix_data_loaders/pypi/pkg_format.py1084# ------------------------------------------------------------------------------------------------COMMENT
MEDIUMconda/plugins/prefix_data_loaders/pypi/pkg_format.py74# -----------------------------------------------------------------------------STRING
MEDIUMtests/common/pkg_formats/test_python.py38# -----------------------------------------------------------------------------COMMENT
MEDIUMtests/common/pkg_formats/test_python.py72# -----------------------------------------------------------------------------COMMENT
MEDIUMtests/common/pkg_formats/test_python.py332# -----------------------------------------------------------------------------COMMENT
MEDIUMtests/common/pkg_formats/test_python.py438# -----------------------------------------------------------------------------COMMENT
MEDIUMtests/common/pkg_formats/test_python.py679# -----------------------------------------------------------------------------STRING
MEDIUMdocs/source/conf.py198# -----------------------------------------------------------------------------COMMENT
MEDIUMdocs/source/conf.py200# -----------------------------------------------------------------------------COMMENT
AI Slop Vocabulary13 hits · 25 pts
SeverityFileLineSnippetContext
MEDIUMpyproject.toml174 # elevate all deprecation warnings to errorsCOMMENT
MEDIUMconda/resolve.py171 # more, because more modern packages utilize constraints in more saneCOMMENT
MEDIUMconda/models/environment.py491 # Create environment config with comprehensive context settingsCOMMENT
LOWconda/notices/types.py97 # If we get an invalid value, rather than fail, we simply use a reasonable defaultCOMMENT
LOWconda/testing/__init__.py34 # But why not just use _replace_prefix_in_path? => because movingCOMMENT
LOWconda/testing/__init__.py47 # just return the same value every time, even if you update PATH.COMMENT
LOWconda/testing/fixtures.py544 # no arguments, just create an empty environmentCOMMENT
LOWconda/common/_logic.py170 # NOTE: The iterative solving isn't actually used here, we just callCOMMENT
LOWconda/gateways/connection/session.py166 # we just return the default session object.COMMENT
MEDIUMconda/gateways/disk/create.py39# using our rm_rf function is more robust than the shutil equivalentCOMMENT
MEDIUMconda/auxlib/decorators.py7# TODO: spend time filling out functionality and make these more robustCOMMENT
MEDIUMtests/shards/test_coverage.py998 """Final comprehensive tests for misc module"""STRING
MEDIUMtests/models/test_match_spec.py1715 """Test conda_env_form() with comprehensive real-world examples."""STRING
Hallucination Indicators2 hits · 25 pts
SeverityFileLineSnippetContext
CRITICALCHANGELOG.md608* Mark `conda.base.constants.CONDA_PACKAGE_EXTENSIONS` as pending deprecation, to be removed in 27.3. Use `conda.base.coCOMMENT
CRITICALconda/base/constants.py199 addendum="Use `conda.base.context.context.plugin_manager.get_package_extractors()` instead.",CODE
Modern Structural Boilerplate24 hits · 24 pts
SeverityFileLineSnippetContext
LOWconda/reporters.py25logger = logging.getLogger(__name__)CODE
LOWconda/core/prefix_data.py724 def set_creation_time(self) -> None:CODE
LOWconda/core/prefix_data.py736 def set_nonadmin(self) -> None:CODE
LOWconda/plugins/__init__.py32__all__ = ["hookimpl"]CODE
LOWconda/plugins/types.py473 def update_to(self, fraction) -> None: ...CODE
LOWconda/plugins/hookspec.py544 def update_to(self, fraction) -> None:STRING
LOWconda/plugins/reporter_backends/console.py48 def update_to(self, fraction) -> None:CODE
LOWconda/plugins/reporter_backends/console.py92 def update_to(self, fraction) -> None:CODE
LOWconda/plugins/reporter_backends/json.py45 def update_to(self, fraction) -> None:CODE
LOW…a/plugins/subcommands/doctor/health_checks/__init__.py32__all__ = ["plugins"]CODE
LOWconda/cli/main_config.py405def set_keys(*args: tuple[str, Any], path: str | os.PathLike[str] | Path) -> None:CODE
LOWconda/cli/main_config.py785def _set_key(key: str, item: Any, config: dict) -> None:CODE
LOWconda/cli/condarc.py504 def set_key(self, key: str, item: Any) -> None:CODE
LOWconda/_private/zstd.py24__all__ = [CODE
LOWconda/_private/shards/__init__.py12__all__ = [CODE
LOWconda/notices/fetch.py21logger = logging.getLogger(__name__)CODE
LOWconda/notices/cache.py38logger = logging.getLogger(__name__)CODE
LOWconda/notices/core.py26logger = logging.getLogger(__name__)CODE
LOWconda/common/io.py615 def _set_entry_name(self, f: Callable[..., Any]) -> None:CODE
LOWconda/common/path/__init__.py53__all__ = [CODE
LOWconda/gateways/shards/__init__.py22__all__ = ["RepodataSubset", "build_repodata_subset", "BuildRepodataSubset"]CODE
LOWconda/auxlib/__init__.py36__all__ = [CODE
LOWconda/auxlib/entity.py270__all__ = [CODE
LOWconda/auxlib/type_coercion.py21__all__ = ["boolify", "typify", "maybecall", "numberify"]CODE
AI Structural Patterns16 hits · 16 pts
SeverityFileLineSnippetContext
LOWconda/resolve.py241CODE
LOWconda/__init__.py196CODE
LOWconda/core/index.py77CODE
LOWconda/core/index.py448CODE
LOWconda/plugins/prefix_data_loaders/pypi/pkg_format.py1202CODE
LOWconda/models/dist.py94CODE
LOWconda/cli/main_list.py183CODE
LOWconda/cli/main_list.py311CODE
LOWconda/common/url.py149CODE
LOWconda/common/path/python.py56CODE
LOWconda/gateways/connection/adapters/ftp.py241CODE
LOWconda/auxlib/entity.py382CODE
LOWconda/auxlib/entity.py560CODE
LOWconda/auxlib/entity.py590CODE
LOWconda/auxlib/entity.py640CODE
LOWconda/auxlib/entity.py674CODE
Fake / Example Data14 hits · 15 pts
SeverityFileLineSnippetContext
LOWconda/exceptions.py1489 "placeholder": placeholder,CODE
LOWconda/gateways/disk/read.py219 ParseResult = namedtuple("ParseResult", ("placeholder", "filemode", "filepath"))CODE
LOWtests/test_exceptions.py922 assert json_obj["placeholder"] == placeholderCODE
LOWtests/core/test_prefix_data.py499 url="https://conda.anaconda.org/t/some-fake-token/fake/noarch/a-1.0-0.tar.bz2",CODE
LOWtests/core/test_prefix_data.py508 assert "/t/some-fake-token/" in json_contentCODE
LOWtests/core/test_initialize.py1466 dummy_value = 0STRING
LOWtests/core/test_initialize.py1469 return dummy_value, "REG_DWORD"STRING
LOWtests/core/test_initialize.py1472 nonlocal dummy_valueSTRING
LOWtests/core/test_initialize.py1473 dummy_value = valueSTRING
LOWtests/cli/test_cli_install.py46 assert "Lorem ipsum dolor sit amet" in stdoutCODE
LOWtests/cli/test_cli_install.py46 assert "Lorem ipsum dolor sit amet" in stdoutCODE
LOWtests/cli/test_main_list.py177 token = "t/some-fake-token/"CODE
LOW…recipes/pre_link_messages_package/message-from-pkg.txt1Lorem ipsum dolor sit amet, consectetur adipiscing elit,CODE
LOW…recipes/pre_link_messages_package/message-from-pkg.txt1Lorem ipsum dolor sit amet, consectetur adipiscing elit,CODE
Redundant / Tautological Comments10 hits · 14 pts
SeverityFileLineSnippetContext
LOWconda/resolve.py1281 # Check if satisfiableCOMMENT
LOWconda/resolve.py1501 # Check if satisfiableCOMMENT
LOWconda/core/solve.py487 # Check if specs are satisfied by current environment. If they are, exit early.STRING
LOWconda/plugins/manager.py1217 # Check if basename matches any of the default filename patternsCOMMENT
LOWconda/models/match_spec.py1436 # Check if we have suffix+suffix or prefix+prefixSTRING
LOWconda/gateways/connection/download.py106 # Check if adapter supports optimized direct-to-file downloadsCOMMENT
LOWtests/shards/http_server.py46 # Check if file exists and is a file (not a directory)COMMENT
LOWtests/shell/test_cmd_exe.py153 # Set TEMP to invalid pathCOMMENT
LOWtests/shell/test_cmd_exe.py252 # Check if activation succeeded by checking CONDA_PREFIXCOMMENT
LOWtests/testing/test_http_test_server.py28 # Check if content contains expected YAML fieldsCOMMENT
Structural Annotation Overuse6 hits · 8 pts
SeverityFileLineSnippetContext
LOWconda/models/records.py504 # WARNING: This is right now only used in link.py _change_report_str(). It is notCOMMENT
LOWconda/common/_logic.py575 # NOTE: The following ITE call is _the_ hotspot of the Python-sideCOMMENT
LOWconda/common/io.py257 # NOTE: This function is not thread-safe. Using within multi-threading may cause spuriousSTRING
LOW…cs/source/dev-guide/writing-tests/windows-applocker.md21### Step 1: Enable the [Application Identity Service][Application Identity Service]COMMENT
LOW…cs/source/dev-guide/writing-tests/windows-applocker.md34### Step 2: Configure AppLocker EnforcementCOMMENT
LOW…cs/source/dev-guide/writing-tests/windows-applocker.md42### Step 3: Create AppLocker RulesCOMMENT
Slop Phrases2 hits · 4 pts
SeverityFileLineSnippetContext
MEDIUMconda/plugins/hookspec.py803 # you can use the shared utility:STRING
MEDIUMtests/core/test_solve.py2650 # NOTE: So far, NOT actually testing the FREEZE_DEPS flag. I'm unable to contrive aCOMMENT
Dead Code1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMtests/plugins/test_error_hints.py54CODE
TODO Padding1 hit · 2 pts
SeverityFileLineSnippetContext
LOWconda/base/constants.py321 # STRICT_OR_FLEXIBLE = 'strict_or_flexible' # TODO: consider implementing if neededCOMMENT
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippetContext
LOWtests/test_deprecations.py70def test_function(CODE
Example Usage Blocks1 hit · 0 pts
SeverityFileLineSnippetContext
LOWconda/_private/shards/subset.py32## Example usageSTRING