Repository Analysis

pyinstaller/pyinstaller

Freeze (package) Python programs into stand-alone executables

56.9 Strong AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of pyinstaller/pyinstaller, a Python project with 13,035 GitHub stars. SynthScan v2.0 examined 114,076 lines of code across 1239 source files, recording 3416 pattern matches distributed across 19 syntactic categories. The overall adjusted score of 56.9 places this repository in the Strong AI signal band.

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

56.9
Adjusted Score
56.9
Raw Score
100%
Time Factor
2026-07-12
Last Push
13.0K
Stars
Python
Language
114.1K
Lines of Code
1.2K
Files
3.4K
Pattern Hits
2026-07-14
Scan Date
0.01
HC Hit Rate

What These Metrics Mean

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

Score History

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

Severity Breakdown

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

CRITICAL 0HIGH 7MEDIUM 1512LOW 1897

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 3416 distinct pattern matches across 19 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.

Decorative Section Separators1442 hits · 4410 pts
SeverityFileLineSnippetContext
MEDIUMCOPYING.txt96#-----------------------------------------------------------------------------COMMENT
MEDIUMCOPYING.txt105#-----------------------------------------------------------------------------COMMENT
MEDIUMCOPYING.txt110#-----------------------------------------------------------------------------COMMENT
MEDIUMCOPYING.txt119#-----------------------------------------------------------------------------COMMENT
MEDIUMhatch_build.py1#-----------------------------------------------------------------------------COMMENT
MEDIUMhatch_build.py10#-----------------------------------------------------------------------------COMMENT
MEDIUMbootloader/build.sh2#-----------------------------------------------------------------------------COMMENT
MEDIUMbootloader/build.sh11# -----------------------------------------------------------------------------COMMENT
MEDIUMbootloader/update-waf.sh1# -----------------------------------------------------------------------------COMMENT
MEDIUMbootloader/update-waf.sh10# -----------------------------------------------------------------------------COMMENT
MEDIUMbootloader/tools/strip.py1#-----------------------------------------------------------------------------COMMENT
MEDIUMbootloader/tools/strip.py10#-----------------------------------------------------------------------------COMMENT
MEDIUMPyInstaller/_recursion_too_deep_message.py1#-----------------------------------------------------------------------------COMMENT
MEDIUMPyInstaller/_recursion_too_deep_message.py10#-----------------------------------------------------------------------------COMMENT
MEDIUMPyInstaller/config.py1#-----------------------------------------------------------------------------COMMENT
MEDIUMPyInstaller/config.py10#-----------------------------------------------------------------------------COMMENT
MEDIUMPyInstaller/compat.py1# ----------------------------------------------------------------------------COMMENT
MEDIUMPyInstaller/compat.py10# ----------------------------------------------------------------------------COMMENT
MEDIUMPyInstaller/configure.py1#-----------------------------------------------------------------------------COMMENT
MEDIUMPyInstaller/configure.py10#-----------------------------------------------------------------------------COMMENT
MEDIUMPyInstaller/log.py1#-----------------------------------------------------------------------------COMMENT
MEDIUMPyInstaller/log.py10#-----------------------------------------------------------------------------COMMENT
MEDIUMPyInstaller/__init__.py1#-----------------------------------------------------------------------------COMMENT
MEDIUMPyInstaller/__init__.py10#-----------------------------------------------------------------------------COMMENT
MEDIUMPyInstaller/exceptions.py1#-----------------------------------------------------------------------------COMMENT
MEDIUMPyInstaller/exceptions.py10#-----------------------------------------------------------------------------COMMENT
MEDIUMPyInstaller/_shared_with_waf.py1#-----------------------------------------------------------------------------COMMENT
MEDIUMPyInstaller/_shared_with_waf.py10#-----------------------------------------------------------------------------COMMENT
MEDIUMPyInstaller/__main__.py1#-----------------------------------------------------------------------------COMMENT
MEDIUMPyInstaller/__main__.py10#-----------------------------------------------------------------------------COMMENT
MEDIUMPyInstaller/fake-modules/pyi_splash.py1# -----------------------------------------------------------------------------COMMENT
MEDIUMPyInstaller/fake-modules/pyi_splash.py10# -----------------------------------------------------------------------------COMMENT
MEDIUMPyInstaller/fake-modules/_pyi_rth_utils/tempfile.py1# -----------------------------------------------------------------------------COMMENT
MEDIUMPyInstaller/fake-modules/_pyi_rth_utils/tempfile.py10# -----------------------------------------------------------------------------COMMENT
MEDIUMPyInstaller/fake-modules/_pyi_rth_utils/_win32.py1# -----------------------------------------------------------------------------COMMENT
MEDIUMPyInstaller/fake-modules/_pyi_rth_utils/_win32.py10# -----------------------------------------------------------------------------COMMENT
MEDIUMPyInstaller/fake-modules/_pyi_rth_utils/qt.py1# -----------------------------------------------------------------------------COMMENT
MEDIUMPyInstaller/fake-modules/_pyi_rth_utils/qt.py10# -----------------------------------------------------------------------------COMMENT
MEDIUMPyInstaller/fake-modules/_pyi_rth_utils/__init__.py1# -----------------------------------------------------------------------------COMMENT
MEDIUMPyInstaller/fake-modules/_pyi_rth_utils/__init__.py10# -----------------------------------------------------------------------------COMMENT
MEDIUMPyInstaller/archive/readers.py1#-----------------------------------------------------------------------------COMMENT
MEDIUMPyInstaller/archive/readers.py10#-----------------------------------------------------------------------------COMMENT
MEDIUMPyInstaller/archive/pyz_crypto.py1#-----------------------------------------------------------------------------COMMENT
MEDIUMPyInstaller/archive/pyz_crypto.py10#-----------------------------------------------------------------------------COMMENT
MEDIUMPyInstaller/archive/writers.py1#-----------------------------------------------------------------------------COMMENT
MEDIUMPyInstaller/archive/writers.py10#-----------------------------------------------------------------------------COMMENT
MEDIUMPyInstaller/utils/misc.py1#-----------------------------------------------------------------------------COMMENT
MEDIUMPyInstaller/utils/misc.py10#-----------------------------------------------------------------------------COMMENT
MEDIUMPyInstaller/utils/conftest.py1#-----------------------------------------------------------------------------COMMENT
MEDIUMPyInstaller/utils/conftest.py10#-----------------------------------------------------------------------------COMMENT
MEDIUMPyInstaller/utils/run_tests.py1# -----------------------------------------------------------------------------COMMENT
MEDIUMPyInstaller/utils/run_tests.py10# -----------------------------------------------------------------------------COMMENT
MEDIUMPyInstaller/utils/tests.py1#-----------------------------------------------------------------------------COMMENT
MEDIUMPyInstaller/utils/tests.py10#-----------------------------------------------------------------------------COMMENT
MEDIUMPyInstaller/utils/osx.py1#-----------------------------------------------------------------------------COMMENT
MEDIUMPyInstaller/utils/osx.py10#-----------------------------------------------------------------------------COMMENT
MEDIUMPyInstaller/utils/hooks/django.py1# ----------------------------------------------------------------------------COMMENT
MEDIUMPyInstaller/utils/hooks/django.py10# ----------------------------------------------------------------------------COMMENT
MEDIUMPyInstaller/utils/hooks/setuptools.py1# ----------------------------------------------------------------------------COMMENT
MEDIUMPyInstaller/utils/hooks/setuptools.py10#-----------------------------------------------------------------------------COMMENT
1382 more matches not shown…
Over-Commented Block808 hits · 788 pts
SeverityFileLineSnippetContext
LOWCOPYING.txt101#COMMENT
LOWhatch_build.py1#-----------------------------------------------------------------------------COMMENT
LOWbootloader/uncrustify.cfg1# Uncrustify 0.62COMMENT
LOWbootloader/uncrustify.cfg61COMMENT
LOWbootloader/uncrustify.cfg901# The span for aligning struct initializer values (0=don't align)COMMENT
LOWbootloader/uncrustify.cfg1661# The filename that contains text to insert before a function implementation if the function isn't preceded with a C/C++COMMENT
LOWbootloader/uncrustify.cfg1721# You can create custom macro-based indentation using macro-open,COMMENT
LOWbootloader/uncrustify.cfg1741# define def_token output_tokenCOMMENT
LOWbootloader/build.sh1#!/usr/bin/env bashCOMMENT
LOWbootloader/update-waf.sh1# -----------------------------------------------------------------------------COMMENT
LOWbootloader/tools/strip.py1#-----------------------------------------------------------------------------COMMENT
LOWbootloader/tests/test_multipkg.c1// -----------------------------------------------------------------------------COMMENT
LOWbootloader/tests/test_path.c1// -----------------------------------------------------------------------------COMMENT
LOWbootloader/zlib/zutil.h21COMMENT
LOWbootloader/zlib/zutil.h41extern const char inflate9_copyright[];COMMENT
LOWbootloader/zlib/zutil.h81# define DEF_MEM_LEVEL 8COMMENT
LOWbootloader/zlib/zutil.h101# define OS_CODE 0x00COMMENT
LOWbootloader/zlib/zutil.h121#if defined(VAXC) || defined(VMS)COMMENT
LOWbootloader/zlib/zutil.h141#ifdef OS2COMMENT
LOWbootloader/zlib/zutil.h161# define OS_CODE 16COMMENT
LOWbootloader/zlib/zutil.h181 ZEXTERN uLong ZEXPORT crc32_combine64(uLong, uLong, z_off64_t);COMMENT
LOWbootloader/zlib/zutil.h201 /* Use our own functions for small and medium model with MSC <= 5.0.COMMENT
LOWbootloader/zlib/zutil.h221 void ZLIB_INTERNAL zmemcpy(void FAR *, const void FAR *, z_size_t);COMMENT
LOWbootloader/zlib/crc32.c21 */COMMENT
LOWbootloader/zlib/crc32.c81#ifdef Z_TESTWCOMMENT
LOWbootloader/zlib/crc32.c681 z_word_t word5;COMMENT
LOWbootloader/zlib/crc32.c741#if N > 5COMMENT
LOWbootloader/zlib/crc32.c801 z_word_t crc4, word4;COMMENT
LOWbootloader/zlib/crc32.c861#if N > 4COMMENT
LOWbootloader/zlib/zutil.c61#endifCOMMENT
LOWbootloader/zlib/zutil.c81#endifCOMMENT
LOWbootloader/zlib/zutil.c101# endifCOMMENT
LOWbootloader/zlib/gzguts.h1/* gzguts.h -- zlib internal header definitions for gz* operationsCOMMENT
LOWbootloader/zlib/gzguts.h21# ifndef WIN32_LEAN_AND_MEANCOMMENT
LOWbootloader/zlib/gzguts.h41# define _POSIX_C_SOURCE 200112LCOMMENT
LOWbootloader/zlib/gzguts.h61COMMENT
LOWbootloader/zlib/gzguts.h81# if !defined(NO_vsnprintf) && \COMMENT
LOWbootloader/zlib/gzguts.h121#ifndef STDCCOMMENT
LOWbootloader/zlib/zlib.h181#define Z_OK 0COMMENT
LOWbootloader/zlib/zlib.h201#define Z_HUFFMAN_ONLY 2COMMENT
LOWbootloader/zlib/zlib.h1981 ZEXTERN z_off64_t ZEXPORT gzoffset64(gzFile);COMMENT
LOWbootloader/zlib/inftrees.c1/* inftrees.c -- generate Huffman trees for efficient decodingCOMMENT
LOWbootloader/zlib/zconf.h21# define _dist_code z__dist_codeCOMMENT
LOWbootloader/zlib/zconf.h41# define crc32 z_crc32COMMENT
LOWbootloader/zlib/zconf.h61# define deflateReset z_deflateResetCOMMENT
LOWbootloader/zlib/zconf.h81# define gzerror z_gzerrorCOMMENT
LOWbootloader/zlib/zconf.h101# define gzseek64 z_gzseek64COMMENT
LOWbootloader/zlib/zconf.h121# define inflateInit2_ z_inflateInit2_COMMENT
LOWbootloader/zlib/zconf.h141# define uncompress2_z z_uncompress2_zCOMMENT
LOWbootloader/zlib/zconf.h161# define gz_headerp z_gz_headerpCOMMENT
LOWbootloader/zlib/zconf.h181#endifCOMMENT
LOWbootloader/zlib/zconf.h201/*COMMENT
LOWbootloader/zlib/zconf.h221#endifCOMMENT
LOWbootloader/zlib/zconf.h241# define const /* note: need a more gentle solution here */COMMENT
LOWbootloader/zlib/zconf.h261# if defined(NO_SIZE_T)COMMENT
LOWbootloader/zlib/zconf.h321 /* MSC small or medium model */COMMENT
LOWbootloader/zlib/zconf.h341 /* If building or using zlib as a DLL, define ZLIB_DLL.COMMENT
LOWbootloader/zlib/zconf.h361# ifndef WIN32_LEAN_AND_MEANCOMMENT
LOWbootloader/zlib/zconf.h381# elseCOMMENT
LOWbootloader/zlib/zconf.h421 typedef void FAR *voidpf;COMMENT
748 more matches not shown…
Unused Imports326 hits · 318 pts
SeverityFileLineSnippetContext
LOWbootloader/waflib/fixpy2.py5CODE
LOWbootloader/waflib/Scripting.py5CODE
LOWbootloader/waflib/Utils.py5CODE
LOWbootloader/waflib/Utils.py26CODE
LOWbootloader/waflib/Tools/gfortran.py7CODE
LOWbootloader/waflib/Tools/gfortran.py7CODE
LOWbootloader/waflib/Tools/ifort.py7CODE
LOWbootloader/waflib/Tools/ifort.py7CODE
LOWbootloader/waflib/Tools/xlc.py5CODE
LOWbootloader/waflib/Tools/xlc.py5CODE
LOWbootloader/waflib/Tools/intltool.py5CODE
LOWbootloader/waflib/Tools/intltool.py8CODE
LOWbootloader/waflib/Tools/gas.py5CODE
LOWbootloader/waflib/Tools/gas.py6CODE
LOWbootloader/waflib/Tools/glib2.py6CODE
LOWbootloader/waflib/Tools/fc.py6CODE
LOWbootloader/waflib/Tools/dmd.py6CODE
LOWbootloader/waflib/Tools/dmd.py6CODE
LOWbootloader/waflib/Tools/irixcc.py6CODE
LOWbootloader/waflib/Tools/irixcc.py6CODE
LOWbootloader/waflib/Tools/qt5.py5CODE
LOWbootloader/waflib/Tools/qt5.py15CODE
LOWbootloader/waflib/Tools/d.py7CODE
LOWbootloader/waflib/Tools/g95.py7CODE
LOWbootloader/waflib/Tools/g95.py7CODE
LOWbootloader/waflib/Tools/xlcxx.py5CODE
LOWbootloader/waflib/Tools/xlcxx.py5CODE
LOWbootloader/waflib/Tools/clangxx.py5CODE
LOWbootloader/waflib/Tools/clangxx.py5CODE
LOWbootloader/waflib/Tools/clangxx.py5CODE
LOWbootloader/waflib/Tools/icpc.py5CODE
LOWbootloader/waflib/Tools/icpc.py6CODE
LOWbootloader/waflib/Tools/icpc.py6CODE
LOWbootloader/waflib/Tools/icpc.py6CODE
LOWbootloader/waflib/Tools/icc.py5CODE
LOWbootloader/waflib/Tools/icc.py6CODE
LOWbootloader/waflib/Tools/icc.py6CODE
LOWbootloader/waflib/Tools/icc.py6CODE
LOWbootloader/waflib/Tools/vala.py6CODE
LOWbootloader/waflib/Tools/nasm.py6CODE
LOWbootloader/waflib/Tools/suncc.py6CODE
LOWbootloader/waflib/Tools/suncc.py6CODE
LOWbootloader/waflib/Tools/ldc2.py5CODE
LOWbootloader/waflib/Tools/ldc2.py5CODE
LOWbootloader/waflib/Tools/gdc.py5CODE
LOWbootloader/waflib/Tools/gdc.py5CODE
LOWbootloader/waflib/Tools/suncxx.py6CODE
LOWbootloader/waflib/Tools/suncxx.py6CODE
LOWbootloader/waflib/Tools/compiler_cxx.py6CODE
LOWbootloader/waflib/Tools/compiler_fc.py7CODE
LOWbootloader/waflib/Tools/c_config.py5CODE
LOWbootloader/waflib/Tools/gcc.py5CODE
LOWbootloader/waflib/Tools/gcc.py5CODE
LOWbootloader/waflib/Tools/ccroot.py8CODE
LOWbootloader/waflib/Tools/ccroot.py8CODE
LOWbootloader/waflib/Tools/ccroot.py8CODE
LOWbootloader/waflib/Tools/ccroot.py8CODE
LOWbootloader/waflib/Tools/ccroot.py8CODE
LOWbootloader/waflib/Tools/gxx.py5CODE
LOWbootloader/waflib/Tools/gxx.py5CODE
266 more matches not shown…
Hyper-Verbose Identifiers339 hits · 300 pts
SeverityFileLineSnippetContext
LOWbootloader/waflib/Task.py512 def compute_sig_implicit_deps(self):STRING
LOWbootloader/waflib/Task.py603def set_precedence_constraints(tasks):STRING
LOWbootloader/waflib/ConfigSet.py101 def _get_list_value_for_modification(self, key):CODE
LOWbootloader/waflib/Tools/gfortran.py42def gfortran_modifier_platform(conf):CODE
LOWbootloader/waflib/Tools/glib2.py327def find_glib_compile_schemas(conf):CODE
LOWbootloader/waflib/Tools/glib2.py344def find_glib_compile_resources(conf):CODE
LOWbootloader/waflib/Tools/fc_config.py144def check_fortran_verbose_flag(self, *k, **kw):CODE
LOWbootloader/waflib/Tools/fc_config.py296def link_main_routines_tg_method(self):STRING
LOWbootloader/waflib/Tools/ccroot.py167def apply_skip_stlib_link_deps(self):CODE
LOWbootloader/waflib/Tools/msvc.py153def gather_wince_supported_platforms():STRING
LOWbootloader/waflib/Tools/msvc.py200def gather_msvc_detected_versions():STRING
LOWbootloader/waflib/Tools/msvc.py484def gather_intel_composer_versions(conf, versions):STRING
LOWbootloader/waflib/Tools/c_osx.py30def set_macosx_deployment_target(self):STRING
LOWbootloader/waflib/Tools/errcheck.py73def check_invalid_constraints(self):CODE
LOWPyInstaller/configure.py53def _get_pyinstaller_cache_dir():CODE
LOWPyInstaller/fake-modules/_pyi_rth_utils/qt.py20def ensure_single_qt_bindings_package(qt_bindings):CODE
LOWPyInstaller/fake-modules/_pyi_rth_utils/__init__.py19def prepend_path_to_environment_variable(path, variable_name):CODE
LOWPyInstaller/utils/misc.py60def get_path_to_toplevel_modules(filename):CODE
LOWPyInstaller/utils/conftest.py75def pytest_runtest_makereport(item, call):CODE
LOWPyInstaller/utils/osx.py353def convert_binary_to_thin_arch(filename, thin_arch, output_filename=None):CODE
LOWPyInstaller/utils/osx.py402def remove_signature_from_binary(filename):CODE
LOWPyInstaller/utils/osx.py437def set_dylib_dependency_paths(filename, target_rpath):CODE
LOWPyInstaller/utils/osx.py471def _set_dylib_dependency_paths(filename, target_rpath):CODE
LOWPyInstaller/utils/osx.py609def collect_files_from_framework_bundles(collected_files):CODE
LOWPyInstaller/utils/hooks/django.py17def django_dottedstring_imports(django_root_dir):CODE
LOWPyInstaller/utils/hooks/setuptools.py20def _retrieve_setuptools_info():CODE
LOWPyInstaller/utils/hooks/setuptools.py273def pre_safe_import_module_for_top_level_namespace_packages(api):CODE
LOWPyInstaller/utils/hooks/__init__.py294def get_module_file_attribute(package: str):CODE
LOWPyInstaller/utils/hooks/__init__.py331 def _get_module_file_attribute(package):CODE
LOWPyInstaller/utils/hooks/__init__.py888def collect_system_data_files(path: str, destdir: str | os.PathLike | None = None, include_py_files: bool = False):STRING
LOWPyInstaller/utils/hooks/__init__.py1272def collect_delvewheel_libs_directory(package_name, libdir_name=None, datas=None, binaries=None):STRING
LOWPyInstaller/utils/hooks/gi.py259def get_glib_system_data_dirs():CODE
LOWPyInstaller/utils/hooks/gi.py326def collect_glib_translations(prog, lang_list=None):CODE
LOWPyInstaller/utils/hooks/gi.py348def compile_glib_schema_files(datas_toc, workdir, collect_source_files=False):CODE
LOWPyInstaller/utils/hooks/tcl_tk.py278 def _collect_files_from_directory(root, prefix=None, excludes=None):CODE
LOWPyInstaller/utils/hooks/tcl_tk.py307 def _find_tcl_tk_shared_libraries(tkinter_ext_file):CODE
LOWPyInstaller/utils/hooks/tcl_tk.py334 def _check_macos_system_framework(tcl_shared_lib):CODE
LOWPyInstaller/utils/hooks/tcl_tk.py345 def _warn_if_using_activetcl_or_teapot(tcl_root):CODE
LOWPyInstaller/utils/hooks/qt/__init__.py1337def ensure_single_qt_bindings_package(qt_bindings):CODE
LOWPyInstaller/utils/hooks/qt/__init__.py310 def _normalize_shared_library_name(self, filename):CODE
LOWPyInstaller/utils/hooks/qt/__init__.py550 def _validate_plugin_dependencies(self, plugin_file):CODE
LOWPyInstaller/utils/hooks/qt/__init__.py664 def _check_if_openssl_enabled(package):CODE
LOWPyInstaller/utils/hooks/qt/__init__.py713 def _collect_qtnetwork_openssl_windows(self, openssl_version):CODE
LOWPyInstaller/utils/hooks/qt/__init__.py794 def _collect_qtnetwork_openssl_macos(self, openssl_version):CODE
LOWPyInstaller/utils/hooks/qt/__init__.py872 def _collect_qtnetwork_openssl_linux(self, openssl_version):CODE
LOWPyInstaller/utils/hooks/qt/__init__.py1056 def collect_qtwebengine_files(self):CODE
LOWPyInstaller/utils/hooks/qt/__init__.py1358def exclude_extraneous_qt_bindings(hook_name, qt_bindings_order=None):CODE
LOWPyInstaller/utils/hooks/qt/_modules_info.py429def process_namespace_strings(namespaces):CODE
LOWPyInstaller/utils/hooks/qt/_modules_info.py437def _process_namespace_string(namespace):CODE
LOWPyInstaller/utils/win32/versioninfo.py19def pefile_check_control_flow_guard(filename):CODE
LOWPyInstaller/utils/win32/versioninfo.py54def read_version_info_from_executable(exe_filename):CODE
LOWPyInstaller/utils/win32/versioninfo.py559def load_version_info_from_text_file(filename):CODE
LOWPyInstaller/utils/win32/versioninfo.py583def write_version_info_to_executable(exe_filename, info):CODE
LOWPyInstaller/utils/win32/winmanifest.py120def _ensure_common_controls_dependency(manifest_dom, root_element):STRING
LOWPyInstaller/utils/win32/winmanifest.py157def create_application_manifest(manifest_xml=None, uac_admin=False, uac_uiaccess=False):STRING
LOWPyInstaller/utils/win32/winmanifest.py197def write_manifest_to_executable(filename, manifest_xml):CODE
LOWPyInstaller/utils/win32/winmanifest.py213def read_manifest_from_executable(filename):CODE
LOWPyInstaller/utils/win32/winresource.py155def copy_resources_from_pe_file(filename, src_filename, types=None, names=None, languages=None):CODE
LOWPyInstaller/utils/cliutils/archive_viewer.py87 def _non_interactive_processing(self):CODE
LOWPyInstaller/loader/pyimod02_importers.py745def _patch_zipimporter_get_source():CODE
279 more matches not shown…
Deep Nesting182 hits · 166 pts
SeverityFileLineSnippetContext
LOWbootloader/waflib/Build.py126CODE
LOWbootloader/waflib/Build.py259CODE
LOWbootloader/waflib/Build.py392CODE
LOWbootloader/waflib/Build.py560CODE
LOWbootloader/waflib/Build.py642CODE
LOWbootloader/waflib/Build.py764CODE
LOWbootloader/waflib/Build.py827CODE
LOWbootloader/waflib/Build.py431CODE
LOWbootloader/waflib/Options.py53CODE
LOWbootloader/waflib/Options.py194CODE
LOWbootloader/waflib/Task.py603CODE
LOWbootloader/waflib/Task.py644CODE
LOWbootloader/waflib/Task.py729CODE
LOWbootloader/waflib/Task.py69CODE
LOWbootloader/waflib/Task.py159CODE
LOWbootloader/waflib/Task.py276CODE
LOWbootloader/waflib/Task.py449CODE
LOWbootloader/waflib/Task.py480CODE
LOWbootloader/waflib/Runner.py139CODE
LOWbootloader/waflib/Runner.py187CODE
LOWbootloader/waflib/Runner.py212CODE
LOWbootloader/waflib/Runner.py294CODE
LOWbootloader/waflib/Runner.py314CODE
LOWbootloader/waflib/Runner.py351CODE
LOWbootloader/waflib/Runner.py399CODE
LOWbootloader/waflib/Runner.py404CODE
LOWbootloader/waflib/fixpy2.py17CODE
LOWbootloader/waflib/ansiterm.py193CODE
LOWbootloader/waflib/ansiterm.py241CODE
LOWbootloader/waflib/Configure.py266CODE
LOWbootloader/waflib/Configure.py317CODE
LOWbootloader/waflib/Configure.py157CODE
LOWbootloader/waflib/Scripting.py14CODE
LOWbootloader/waflib/Scripting.py202CODE
LOWbootloader/waflib/Scripting.py222CODE
LOWbootloader/waflib/Scripting.py414CODE
LOWbootloader/waflib/Scripting.py415CODE
LOWbootloader/waflib/TaskGen.py178CODE
LOWbootloader/waflib/TaskGen.py308CODE
LOWbootloader/waflib/TaskGen.py512CODE
LOWbootloader/waflib/TaskGen.py78CODE
LOWbootloader/waflib/TaskGen.py200CODE
LOWbootloader/waflib/Context.py399CODE
LOWbootloader/waflib/Context.py118CODE
LOWbootloader/waflib/Context.py352CODE
LOWbootloader/waflib/Utils.py530CODE
LOWbootloader/waflib/Utils.py654CODE
LOWbootloader/waflib/Logs.py192CODE
LOWbootloader/waflib/Logs.py124CODE
LOWbootloader/waflib/Logs.py149CODE
LOWbootloader/waflib/Node.py42CODE
LOWbootloader/waflib/Node.py66CODE
LOWbootloader/waflib/Node.py354CODE
LOWbootloader/waflib/Tools/ifort.py99CODE
LOWbootloader/waflib/Tools/ifort.py174CODE
LOWbootloader/waflib/Tools/ifort.py318CODE
LOWbootloader/waflib/Tools/javaw.py101CODE
LOWbootloader/waflib/Tools/intltool.py69CODE
LOWbootloader/waflib/Tools/waf_unit_test.py61CODE
LOWbootloader/waflib/Tools/tex.py12CODE
122 more matches not shown…
Excessive Try-Catch Wrapping137 hits · 142 pts
SeverityFileLineSnippetContext
LOWbootloader/waflib/Build.py147 except Exception as e:CODE
LOWbootloader/waflib/Task.py199 except Exception:STRING
LOWbootloader/waflib/Task.py211 except Exception:STRING
MEDIUMbootloader/waflib/Task.py192def process(self):CODE
LOWbootloader/waflib/Runner.py98 except Exception:CODE
LOWbootloader/waflib/Runner.py297 except Exception:CODE
MEDIUMbootloader/waflib/Runner.py76def run(self):CODE
MEDIUMbootloader/waflib/Runner.py294def task_status(self, tsk):CODE
LOWbootloader/waflib/ansiterm.py307 except Exception as e:CODE
LOWbootloader/waflib/Configure.py175 except Exception as e:CODE
LOWbootloader/waflib/Scripting.py112 except Exception as e:CODE
LOWbootloader/waflib/Scripting.py140 except Exception as e:CODE
LOWbootloader/waflib/processor.py46 except Exception as e:CODE
LOWbootloader/waflib/Context.py201 except Exception as e:CODE
LOWbootloader/waflib/Context.py248 except Exception as e:CODE
MEDIUMbootloader/waflib/Context.py71def __init__(self, **kw):CODE
LOWbootloader/waflib/Logs.py152 except Exception:STRING
LOWbootloader/waflib/Logs.py258 except Exception:STRING
MEDIUMbootloader/waflib/Logs.py108def emit(self, record):CODE
MEDIUMbootloader/waflib/Logs.py253def free_logger(logger):CODE
LOWbootloader/waflib/Node.py58 except Exception as e:CODE
LOWbootloader/waflib/Tools/ifort.py219 except Exception as e:CODE
MEDIUMbootloader/waflib/Tools/ifort.py174def get_ifort_version_win32(conf, compiler, version, target, vcvars):CODE
LOWbootloader/waflib/Tools/javaw.py225 except Exception:STRING
LOWbootloader/waflib/Tools/javaw.py373 except Exception:STRING
LOWbootloader/waflib/Tools/c_preproc.py647 except Exception:CODE
LOWbootloader/waflib/Tools/c_preproc.py722 except Exception as e:CODE
MEDIUMbootloader/waflib/Tools/c_preproc.py563def cached_find_resource(self, node, filename):CODE
LOWbootloader/waflib/Tools/c_config.py844 except Exception:STRING
LOWbootloader/waflib/Tools/fc_config.py241 except Exception:CODE
LOWbootloader/waflib/Tools/fc_config.py270 except Exception:CODE
LOWbootloader/waflib/Tools/msvc.py143 except Exception as e:STRING
LOWPyInstaller/compat.py256 except Exception:CODE
LOWPyInstaller/compat.py265 except Exception:CODE
MEDIUMPyInstaller/compat.py354 print("Error running '%s':" % " ".join(cmdargs), file=sys.stderr)CODE
LOWPyInstaller/configure.py39 except Exception:CODE
LOWPyInstaller/__main__.py188 except Exception:CODE
LOWPyInstaller/__main__.py299 except Exception:CODE
LOWPyInstaller/fake-modules/_pyi_rth_utils/_win32.py242 except Exception:CODE
LOWPyInstaller/utils/misc.py93 except Exception:CODE
MEDIUMPyInstaller/utils/misc.py88def mtime(fnm):CODE
MEDIUMPyInstaller/utils/run_tests.py49 print("Error: no tests discovered.", file=sys.stderr)CODE
LOWPyInstaller/utils/hooks/setuptools.py236 except Exception as e:CODE
MEDIUMPyInstaller/utils/hooks/__init__.py242def _can_import_module(module_name):CODE
LOWPyInstaller/utils/hooks/__init__.py246 except Exception:CODE
LOWPyInstaller/utils/hooks/__init__.py290 except Exception as e:CODE
LOWPyInstaller/utils/hooks/__init__.py353 except Exception as e:CODE
LOWPyInstaller/utils/hooks/__init__.py488 except Exception:CODE
LOWPyInstaller/utils/hooks/__init__.py519 except Exception:CODE
LOWPyInstaller/utils/hooks/__init__.py666 except Exception as ex:CODE
LOWPyInstaller/utils/hooks/__init__.py997 except Exception:STRING
LOWPyInstaller/utils/hooks/__init__.py1160 except Exception:STRING
LOWPyInstaller/utils/hooks/gi.py114 except Exception as e:CODE
LOWPyInstaller/utils/hooks/gi.py438 except Exception:CODE
LOWPyInstaller/utils/hooks/tcl_tk.py136 except Exception as e:CODE
LOWPyInstaller/utils/hooks/tcl_tk.py179 except Exception:CODE
LOWPyInstaller/utils/hooks/qt/__init__.py238 except Exception as e:CODE
LOWPyInstaller/utils/hooks/qt/__init__.py967 except Exception:CODE
LOWPyInstaller/utils/win32/versioninfo.py39 except Exception:CODE
LOWPyInstaller/utils/win32/versioninfo.py573 except Exception as e:CODE
77 more matches not shown…
Self-Referential Comments47 hits · 138 pts
SeverityFileLineSnippetContext
MEDIUMPyInstaller/compat.py141# The following code creates compat.is_venv and is.virtualenv that are True when running a virtual environment, and alsoCOMMENT
MEDIUMPyInstaller/fake-modules/pyi_splash.py12# This module is not a "fake module" in the classical sense, but a real module that can be imported. It acts as an RPCCOMMENT
MEDIUMPyInstaller/utils/hooks/__init__.py650# This function is called in an isolated sub-process via `isolated.Python.call`.COMMENT
MEDIUMPyInstaller/utils/hooks/qt/__init__.py76# This class contains information about python module (extension), its corresponding Qt module (shared library), andCOMMENT
MEDIUMPyInstaller/utils/hooks/qt/__init__.py294 # Create a QtModuleInfo entryCOMMENT
MEDIUMPyInstaller/loader/pyimod02_importers.py342 # The following methods are part of legacy PEP302 finder interface. They have been deprecated since python 3.4,COMMENT
MEDIUMPyInstaller/loader/pyimod02_importers.py459 # The following method is part of legacy PEP302 loader interface. It has been deprecated since python 3.4, andCOMMENT
MEDIUMPyInstaller/hooks/rthooks/pyi_rth_gdkpixbuf.py26 # Create a temporary file with the cache and cleverly replace the prefix we injected with the actual path.COMMENT
MEDIUMPyInstaller/lib/modulegraph/modulegraph.py1152 # Create the referred node.COMMENT
MEDIUMPyInstaller/lib/modulegraph/__main__.py55 # Create the module finder and turn its crankCOMMENT
MEDIUMPyInstaller/isolated/_parent.py365 # Define a function to be ran in isolation.COMMENT
MEDIUMPyInstaller/isolated/_child.py55 # Define the global namespace available to the function.COMMENT
MEDIUMPyInstaller/depend/bindepend.py264 # Create the symbolic linkCOMMENT
MEDIUMPyInstaller/building/api.py156 # Create the archiveCOMMENT
MEDIUMPyInstaller/building/api.py536 # Create the CArchive PKG in WORKPATH. When instancing PKG(), set name so that guts check can test whether theCOMMENT
MEDIUMPyInstaller/building/datastruct.py42# This class is deprecated and has been replaced by plain lists with explicit normalization (de-duplication) viaCOMMENT
MEDIUMPyInstaller/building/splash_templates.py18 # This function is called if a new client connects toCOMMENT
MEDIUMPyInstaller/building/splash_templates.py32 # This function is called if a command was sent throughCOMMENT
MEDIUMPyInstaller/building/splash_templates.py78 # This function is rigged to be called if the a variableCOMMENT
MEDIUMPyInstaller/building/splash_templates.py130# Create a text on the canvas, which tracks the localCOMMENT
MEDIUMPyInstaller/building/osx.py456 # Create a SYMLINK entry, but only for this level. In case of nested directories with dots in names, theCOMMENT
MEDIUMPyInstaller/building/osx.py601 # Create a minimal Mac bundle structure.COMMENT
MEDIUMtests/unit/test_hookutils.py183 # Create an egg from the test package. For debug, show the output of the egg build.COMMENT
MEDIUMtests/unit/test_modulegraph_more.py141 (pkg / 'x' / 'y').mkdir(parents=True) # Create the whole package directory treeCODE
MEDIUMtests/unit/test_isolation.py207 # Creating an isolated.Python() does nothing.COMMENT
MEDIUMtests/unit/test_miscutils.py133 # Create a version info structure...COMMENT
MEDIUMtests/unit/test_miscutils.py162 # Create a local copyCOMMENT
MEDIUMtests/unit/test_building_utils.py24 (tmp_path / 'existing.txt').touch() # Create a file with different name, for sanity check.CODE
MEDIUMtests/unit/test_building_utils.py71 # Create the fileCOMMENT
MEDIUMtests/unit/test_building_utils.py104 # Create the fileCOMMENT
MEDIUMtests/unit/test_winmanifest.py499 # Create a local copySTRING
MEDIUMtests/unit/test_winmanifest.py556 # Create a local copySTRING
MEDIUMtests/functional/test_linux_appimage.py47 # Create the AppImageCOMMENT
MEDIUMtests/functional/test_symlinks.py504 # Create a symbolic link at the directory levelCOMMENT
MEDIUMtests/functional/test_django.py24 # Create the exe, run django command 'check' to do basic sanity checking of the executable.COMMENT
MEDIUMtests/functional/test_macos_bundle_structure.py110 # Create a text fileSTRING
MEDIUM…sts/functional/test_binary_vs_data_reclassification.py23 # Create a text fileCOMMENT
MEDIUMtests/functional/test_regression.py45 # Create a hookCOMMENT
MEDIUMtests/functional/scripts/pyi_app_with_plugin.py31# Create the dynamic plugin in the same directory as the executable.STRING
MEDIUMtests/functional/scripts/pyi_multiprocessing_queue.py31 # Create a queue, and run a subprocess that fills it with dataCOMMENT
MEDIUM…i_excluded_subpackage/modules/mypackage/mandatory/a.py1# This module contains an "unused" function (not called from anywhere in the package itself) that adds reference to theCOMMENT
MEDIUM…test_egg/pyi_egg_unzipped.egg/unzipped_egg/__init__.py12# This file is part of the package for testing eggs in `PyInstaller`.COMMENT
MEDIUM…dules/pyi_mixed_collection_mode/modules/mypackage/a.py1# This module is collected into PYZ archive.COMMENT
MEDIUM…dules/pyi_mixed_collection_mode/modules/mypackage/b.py1# This module is collected as source .py file only.COMMENT
MEDIUMtests/functional/data/sphinx/conf.py4# This file is execfile()d with the current directory set to itsCOMMENT
MEDIUMdoc/conf.py4# This file is execfile()d with the current directory set to itsCOMMENT
MEDIUMdoc/conf.py275# Define the canonical URL if you are using a custom domain on Read the DocsCOMMENT
Redundant / Tautological Comments44 hits · 73 pts
SeverityFileLineSnippetContext
LOWPyInstaller/compat.py124# Check if python >= 3.13 was built with Py_GIL_DISABLED / free-threading (PEP703).COMMENT
LOWPyInstaller/configure.py31 # Check if we can call `upx -V`.COMMENT
LOWPyInstaller/utils/osx.py452 # Check if we are dealing with a fat binary; the `install-name-tool` seems to be unable to remove an rpath that isCOMMENT
LOWPyInstaller/utils/hooks/setuptools.py56 # Check if `setuptools._vendor` exists. Some linux distributions opt to de-vendor `setuptools` and remove theCOMMENT
LOWPyInstaller/utils/hooks/setuptools.py283 # Check if the package/module is a vendored copy. This also returns False is setuptools is unavailable, becauseCOMMENT
LOWPyInstaller/utils/hooks/setuptools.py324 # Check if the package/module is a vendored copy. This also returns False is setuptools is unavailable, becauseCOMMENT
LOWPyInstaller/utils/hooks/conda.py358 # Check if this file/folder's parent is in ``sys.path`` i.e. it's directly importable. This intentionally excludesCOMMENT
LOWPyInstaller/utils/hooks/__init__.py636 # Add modules to the list of all submodulesCOMMENT
LOWPyInstaller/utils/hooks/tcl_tk.py56 # Check if Tcl/Tk is built with multi-threaded support (built with --enable-threads), as indicated by the presenceCOMMENT
LOWPyInstaller/utils/hooks/tcl_tk.py341 # Check if the path corresponds to the system framework, i.e., [/System]/Library/Frameworks/Tcl.framework/TclCOMMENT
LOWPyInstaller/utils/hooks/qt/__init__.py661 # Check if QtNetwork supports SSL and has OpenSSL backend available (Qt >= 6.1).COMMENT
LOWPyInstaller/utils/hooks/qt/__init__.py1413 # Check if bindings are availableCOMMENT
LOWPyInstaller/utils/win32/versioninfo.py596 # Check if the overlay is still presentCOMMENT
LOWPyInstaller/utils/win32/winutils.py190 # Open fileCOMMENT
LOWPyInstaller/utils/win32/winresource.py54 # Open fileCOMMENT
LOWPyInstaller/utils/win32/winresource.py107 # Close fileCOMMENT
LOWPyInstaller/hooks/hook-numpy.py55# Check if we are using Anaconda-packaged numpyCOMMENT
LOWPyInstaller/hooks/rthooks/pyi_rth__tkinter.py17 # Set path to Tcl and Tk library directories, if they exist.COMMENT
LOWPyInstaller/hooks/rthooks/pyi_rth_inspect.py67 # Check if given filename matches the basename of __main__'s __file__.COMMENT
LOWPyInstaller/isolated/_parent.py214 # Check if we are already running in PyInstaller's isolated subprocess, to prevent further nesting.COMMENT
LOWPyInstaller/isolated/_parent.py238 # Open file handles to talk to the child. This should fully transfer ownership of the underlying fileCOMMENT
LOWPyInstaller/depend/analysis.py419 # Check if the referrer is (was!) subject to the same rule. Because if it was and wasCOMMENT
LOWPyInstaller/depend/imphook.py430 # Check if module has hook() function.COMMENT
LOWPyInstaller/depend/bindepend.py1115 # Check if the file can be opened using `pefile`.COMMENT
LOWPyInstaller/building/api.py876 # Set checksum to appease antiviral software. Also set build timestamp to current time to increase entropyCOMMENT
LOWPyInstaller/building/api.py108 # Check if code cache association exists for the given TOC listCOMMENT
LOWPyInstaller/building/api.py942 # Check if src_filename points to a PE file or an arbitrary (data) file.COMMENT
LOWPyInstaller/building/api.py1060 # Check if exception is eligible for retry; if not, also check its immediate cause (in case theCOMMENT
LOWPyInstaller/building/api.py1309 # Add entry to list of kept TOC entriesCOMMENT
LOWPyInstaller/building/datastruct.py446 # Check if referenced destination file is valid (i.e., we are collecting a file under referenced name).COMMENT
LOWPyInstaller/building/utils.py678 # Check if optional cache contains module entryCOMMENT
LOWPyInstaller/building/utils.py742 # Check if .pyc file is stored in a .zip archive, as is the case for stdlib modules in embeddableCOMMENT
LOWPyInstaller/building/utils.py814 # Check if we need to divert - based on the destination base name and destination parent directory.COMMENT
LOWPyInstaller/building/splash.py134 # Check if the Tcl/Tk version is supported.COMMENT
LOWPyInstaller/building/splash.py251 # Check if all requirements were found.COMMENT
LOWPyInstaller/building/splash.py330 # Check if the tkinter installation changed. This is theoretically possible if someone uses two different pythonCOMMENT
LOWPyInstaller/building/splash.py339 # Check if the image has been modified.COMMENT
LOWPyInstaller/building/splash.py349 # Check if PIL/pillow is available.COMMENT
LOWtests/functional/test_misc.py159 # Check if OS supports creation of symbolic linksSTRING
LOWtests/functional/test_qt.py700 # Check if particular module is importable. This guards against errors if a module is unavailable in particularSTRING
LOWtests/functional/scripts/pyi_optimization.py20# Check if __debug__ is setCOMMENT
LOWtests/functional/scripts/pyi_optimization.py23# Check if assert worksCOMMENT
LOW…ctional/modules/pyi_optimization/mypackage/__init__.py17# Check if __debug__ is setCOMMENT
LOW…ctional/modules/pyi_optimization/mypackage/__init__.py20# Check if assert worksCOMMENT
Modern Structural Boilerplate29 hits · 32 pts
SeverityFileLineSnippetContext
LOWPyInstaller/configure.py21logger = logging.getLogger(__name__)CODE
LOWPyInstaller/log.py15__all__ = ['getLogger', 'INFO', 'WARN', 'DEBUG', 'TRACE', 'ERROR', 'FATAL', 'DEPRECATION']CODE
LOWPyInstaller/__main__.py36logger = logging.getLogger(__name__)CODE
LOWPyInstaller/fake-modules/pyi_splash.py41__all__ = ["CLOSE_CONNECTION", "FLUSH_CHARACTER", "is_alive", "close", "update_text"]CODE
LOWPyInstaller/utils/misc.py27logger = logging.getLogger(__name__)CODE
LOWPyInstaller/utils/osx.py43logger = logging.getLogger(__name__)CODE
LOWPyInstaller/utils/hooks/setuptools.py14logger = logging.getLogger(__name__)CODE
LOWPyInstaller/utils/hooks/__init__.py30logger = logging.getLogger(__name__)CODE
LOWPyInstaller/utils/hooks/gi.py25logger = logging.getLogger(__name__)CODE
LOWPyInstaller/utils/hooks/tcl_tk.py23logger = logging.getLogger(__name__)CODE
LOWPyInstaller/utils/hooks/qt/__init__.py24logger = logging.getLogger(__name__)CODE
LOWPyInstaller/utils/win32/icon.py29logger = logging.getLogger(__name__)CODE
LOWPyInstaller/utils/win32/winresource.py18logger = logging.getLogger(__name__)CODE
LOWPyInstaller/hooks/hook-django.py21logger = logging.getLogger(__name__)CODE
LOWPyInstaller/hooks/hook-gi.repository.Gio.py19logger = logging.getLogger(__name__)CODE
LOWPyInstaller/hooks/hook-gi.repository.Gst.py22logger = logging.getLogger(__name__)CODE
LOWPyInstaller/hooks/pre_find_module_path/hook-tkinter.py15logger = logging.getLogger(__name__)CODE
LOWPyInstaller/isolated/_parent.py23logger = logging.getLogger(__name__)CODE
LOWPyInstaller/depend/analysis.py58logger = logging.getLogger(__name__)CODE
LOWPyInstaller/depend/imphook.py27logger = logging.getLogger(__name__)CODE
LOWPyInstaller/depend/bindepend.py33logger = logging.getLogger(__name__)CODE
LOWPyInstaller/depend/utils.py27logger = logging.getLogger(__name__)CODE
LOWPyInstaller/depend/dylib.py23logger = logging.getLogger(__name__)CODE
LOWPyInstaller/building/makespec.py25logger = logging.getLogger(__name__)CODE
LOWPyInstaller/building/api.py39logger = logging.getLogger(__name__)CODE
LOWPyInstaller/building/datastruct.py20logger = logging.getLogger(__name__)CODE
LOWPyInstaller/building/utils.py39logger = logging.getLogger(__name__)CODE
LOWPyInstaller/building/build_main.py51logger = logging.getLogger(__name__)CODE
LOWPyInstaller/building/splash.py25logger = logging.getLogger(__name__)CODE
AI Slop Vocabulary11 hits · 24 pts
SeverityFileLineSnippetContext
MEDIUMPyInstaller/__main__.py243 # 3. User has used *run as administrator* to elevate: TokenElevationTypeFullCOMMENT
LOWPyInstaller/fake-modules/_pyi_rth_utils/_win32.py226 # but as they are at the beginning of the buffer, just pass the buffer instead...COMMENT
MEDIUMPyInstaller/utils/hooks/__init__.py1325 # Collect all dynamic libs - collect them as binaries in order to facilitate proper binary dependency analysisSTRING
LOWPyInstaller/utils/hooks/gi.py383 # If there are no schema files available, simply return the input datas TOC.COMMENT
LOWPyInstaller/utils/hooks/qt/__init__.py878 # expected to be provided by the system. So we can just use standard library path resolution with library namesCOMMENT
LOWPyInstaller/utils/win32/icon.py226 # We could continue with no icon (i.e., just return), but it seems best to terminate the build with a message.COMMENT
MEDIUMPyInstaller/hooks/rthooks/pyi_rth_inspect.py77 # facilitate matching via __file__ attribute and use of loader's `get_source`, as per the earlier commentCOMMENT
MEDIUMPyInstaller/lib/modulegraph/modulegraph.py142#leverage a named tuple -- but this should do just as well.COMMENT
MEDIUMPyInstaller/lib/modulegraph/modulegraph.py2468 #handle opcodes pertaining to global attributes (e.g.,COMMENT
MEDIUMPyInstaller/depend/imphookapi.py408 # (e.g., "hook-PIL.SpiderImagePlugin.py"). We only require this for the aforementioned hook, so contemplateCOMMENT
LOWtests/functional/scripts/pyi_c_extension.py29# Filename extensions can include several dots (e.g., '.cpython-33m.so'), so we cannot simply use os.path.splitext(),COMMENT
Cross-Language Confusion4 hits · 20 pts
SeverityFileLineSnippetContext
HIGHbootloader/waflib/Tools/javaw.py28 lib = null;CODE
HIGHbootloader/waflib/Tools/c_preproc.py670 state.append(undefined)CODE
HIGHPyInstaller/depend/imphook.py439 # If this attribute is undefined, expose a sane default instead.COMMENT
HIGHtests/functional/test_splash.py136 # is_alive() should return falseSTRING
Docstring Block Structure3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHPyInstaller/utils/hooks/__init__.py1167 Collect modules and metadata for all exporters of a given entry point. Args: name: The namSTRING
HIGHPyInstaller/utils/hooks/__init__.py1273 Collect data files and binaries from the .libs directory of a delvewheel-enabled python wheel. Such wheels ship STRING
HIGHPyInstaller/isolated/_parent.py346 Call a function with arguments in a separate child Python. Retrieve its return value. Args: function: STRING
Verbosity Indicators9 hits · 15 pts
SeverityFileLineSnippetContext
LOWPyInstaller/utils/hooks/qt/__init__.py168 # The PyQt wheels come in both non-commercial and commercial variants. So we need to check if a particularCOMMENT
LOWPyInstaller/building/api.py874 # Step 3: post-processingCOMMENT
LOWPyInstaller/building/api.py776 # Step 1: copy the bootloader file, and perform any operations that need to be done prior to appending the PKG.COMMENT
LOWPyInstaller/building/api.py805 # Step 2: append the PKG, if necessaryCOMMENT
LOWPyInstaller/building/osx.py464 # Step 4: process the entries for collected files, and decide whether they should be placed intoCOMMENT
LOWPyInstaller/building/osx.py328 # Step 1: inspect the directory layout and classify the directories according to their contents.COMMENT
LOWPyInstaller/building/osx.py396 # Step 2: process the obtained directory structure and create symlink entries for directories that need to beCOMMENT
LOWPyInstaller/building/osx.py427 # Step 3: first part of the work-around for directories that are located in `Contents/Frameworks` but contain aCOMMENT
LOWPyInstaller/building/osx.py549 # Step 5: sanitize all destination paths in the new TOC, to ensure that paths that are rooted inCOMMENT
Structural Annotation Overuse8 hits · 14 pts
SeverityFileLineSnippetContext
LOWPyInstaller/building/api.py874 # Step 3: post-processingCOMMENT
LOWPyInstaller/building/api.py776 # Step 1: copy the bootloader file, and perform any operations that need to be done prior to appending the PKG.COMMENT
LOWPyInstaller/building/api.py805 # Step 2: append the PKG, if necessaryCOMMENT
LOWPyInstaller/building/osx.py464 # Step 4: process the entries for collected files, and decide whether they should be placed intoCOMMENT
LOWPyInstaller/building/osx.py328 # Step 1: inspect the directory layout and classify the directories according to their contents.COMMENT
LOWPyInstaller/building/osx.py396 # Step 2: process the obtained directory structure and create symlink entries for directories that need to beCOMMENT
LOWPyInstaller/building/osx.py427 # Step 3: first part of the work-around for directories that are located in `Contents/Frameworks` but contain aCOMMENT
LOWPyInstaller/building/osx.py549 # Step 5: sanitize all destination paths in the new TOC, to ensure that paths that are rooted inCOMMENT
AI Structural Patterns13 hits · 12 pts
SeverityFileLineSnippetContext
LOWbootloader/waflib/Task.py845CODE
LOWbootloader/waflib/TaskGen.py178CODE
LOWbootloader/waflib/Tools/glib2.py77CODE
LOWbootloader/waflib/Tools/python.py112CODE
LOWbootloader/waflib/Tools/python.py129CODE
LOWPyInstaller/utils/win32/versioninfo.py202CODE
LOWPyInstaller/utils/win32/winmanifest.py194CODE
LOWPyInstaller/lib/modulegraph/modulegraph.py791CODE
LOWPyInstaller/lib/modulegraph/find_modules.py61CODE
LOWPyInstaller/depend/bindepend.py351CODE
LOWPyInstaller/building/makespec.py671CODE
LOWPyInstaller/building/api.py188CODE
LOWPyInstaller/building/build_main.py400CODE
Overly Generic Function Names7 hits · 9 pts
SeverityFileLineSnippetContext
LOWtests/functional/test_inspect.py117 EXPECTED_START = "def test_function():"CODE
LOW…multipackage-scripts/multipackage_test_pkg/__init__.py41def test_function():CODE
LOWtests/functional/scripts/pyi_multiprocessing_process.py17def test_function():CODE
LOWtests/functional/scripts/pyi_optimization.py33def test_function():CODE
LOW…ts/functional/scripts/pyi_multiprocessing_semaphore.py16def test_function(semaphore):CODE
LOW…ional/modules/pyi_inspect_getsource/mypackage/mod_b.py4def test_function():CODE
LOW…ctional/modules/pyi_optimization/mypackage/__init__.py30def test_function():CODE
Fake / Example Data4 hits · 6 pts
SeverityFileLineSnippetContext
LOWPyInstaller/utils/hooks/setuptools.py186 # Similarly, ensure that `Lorem ipsum.txt` from vendored jaraco.text is collectedCOMMENT
LOWPyInstaller/utils/hooks/setuptools.py187 vendored_data += collect_data_files('setuptools._vendor.jaraco.text', includes=['**/Lorem ipsum.txt'])CODE
LOWPyInstaller/hooks/hook-pkg_resources.py42 # In setuptools 60.7.0, the vendored jaraco.text package included "Lorem Ipsum.txt" data file, which also has to beCOMMENT
LOWPyInstaller/hooks/hook-pkg_resources.py50 # In setuptools 60.7.1, the "Lorem Ipsum.txt" data file was dropped from the vendored jaraco.text package, so we canCOMMENT
Slop Phrases2 hits · 4 pts
SeverityFileLineSnippetContext
LOWPyInstaller/hooks/rthooks/pyi_rth_pkgres.py158 # Use os.listdir() to avoid having to convert Path objects to strings... Also make sure to de-duplicateCOMMENT
MEDIUMtests/functional/test_signals.py116 # slowing down the test; as mentioned earlier, we expect signals to be delivered within 1 second for most of theCOMMENT
Modern AI Meta-Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMtests/functional/test_libraries.py341 # Twisted is an event-driven networking engine.COMMENT