Cross-platform lib for process and system monitoring in Python
This report presents the forensic synthetic code analysis of giampaolo/psutil, a Python project with 11,256 GitHub stars. SynthScan v2.0 examined 65,787 lines of code across 274 source files, recording 815 pattern matches distributed across 14 syntactic categories. The overall adjusted score of 21.2 places this repository in the Moderate AI signal band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.
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.
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.
The scanner identified 815 distinct pattern matches across 14 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | pyproject.toml | 293 | # ============================================================================= | COMMENT |
| MEDIUM | tests/test_contracts.py | 45 | # =================================================================== | COMMENT |
| MEDIUM | tests/test_contracts.py | 47 | # =================================================================== | COMMENT |
| MEDIUM | tests/test_contracts.py | 343 | # =================================================================== | COMMENT |
| MEDIUM | tests/test_contracts.py | 345 | # =================================================================== | COMMENT |
| MEDIUM | tests/test_heap.py | 62 | # ===================================================================== | COMMENT |
| MEDIUM | tests/test_heap.py | 64 | # ===================================================================== | COMMENT |
| MEDIUM | tests/test_heap.py | 164 | # ===================================================================== | COMMENT |
| MEDIUM | tests/test_heap.py | 166 | # ===================================================================== | COMMENT |
| MEDIUM | tests/test_unicode.py | 125 | # =================================================================== | COMMENT |
| MEDIUM | tests/test_unicode.py | 127 | # =================================================================== | COMMENT |
| MEDIUM | tests/test_unicode.py | 290 | # =================================================================== | COMMENT |
| MEDIUM | tests/test_unicode.py | 292 | # =================================================================== | COMMENT |
| MEDIUM⚡ | tests/test_misc.py | 187 | # =================================================================== | COMMENT |
| MEDIUM⚡ | tests/test_misc.py | 189 | # =================================================================== | COMMENT |
| MEDIUM⚡ | tests/test_misc.py | 335 | # =================================================================== | COMMENT |
| MEDIUM⚡ | tests/test_misc.py | 337 | # =================================================================== | COMMENT |
| MEDIUM | tests/test_misc.py | 46 | # =================================================================== | COMMENT |
| MEDIUM | tests/test_misc.py | 48 | # =================================================================== | COMMENT |
| MEDIUM⚡ | tests/test_misc.py | 371 | # =================================================================== | STRING |
| MEDIUM⚡ | tests/test_misc.py | 373 | # =================================================================== | STRING |
| MEDIUM | tests/test_misc.py | 526 | # =================================================================== | STRING |
| MEDIUM | tests/test_misc.py | 528 | # =================================================================== | STRING |
| MEDIUM | tests/test_misc.py | 760 | # =================================================================== | STRING |
| MEDIUM | tests/test_misc.py | 762 | # =================================================================== | STRING |
| MEDIUM⚡ | tests/test_linux.py | 2536 | # ===================================================================== | COMMENT |
| MEDIUM⚡ | tests/test_linux.py | 2538 | # ===================================================================== | COMMENT |
| MEDIUM | tests/test_linux.py | 74 | # ===================================================================== | COMMENT |
| MEDIUM | tests/test_linux.py | 76 | # ===================================================================== | COMMENT |
| MEDIUM | tests/test_linux.py | 235 | # ===================================================================== | COMMENT |
| MEDIUM | tests/test_linux.py | 237 | # ===================================================================== | COMMENT |
| MEDIUM⚡ | tests/test_linux.py | 700 | # ===================================================================== | STRING |
| MEDIUM⚡ | tests/test_linux.py | 702 | # ===================================================================== | STRING |
| MEDIUM⚡ | tests/test_linux.py | 1798 | # ===================================================================== | STRING |
| MEDIUM⚡ | tests/test_linux.py | 1800 | # ===================================================================== | STRING |
| MEDIUM⚡ | tests/test_linux.py | 2053 | # ===================================================================== | STRING |
| MEDIUM⚡ | tests/test_linux.py | 2055 | # ===================================================================== | STRING |
| MEDIUM | tests/test_linux.py | 583 | # ===================================================================== | STRING |
| MEDIUM | tests/test_linux.py | 585 | # ===================================================================== | STRING |
| MEDIUM | tests/test_linux.py | 1063 | # ===================================================================== | STRING |
| MEDIUM | tests/test_linux.py | 1065 | # ===================================================================== | STRING |
| MEDIUM | tests/test_linux.py | 1321 | # ===================================================================== | STRING |
| MEDIUM | tests/test_linux.py | 1323 | # ===================================================================== | STRING |
| MEDIUM | tests/test_linux.py | 1616 | # ===================================================================== | STRING |
| MEDIUM | tests/test_linux.py | 1618 | # ===================================================================== | STRING |
| MEDIUM⚡ | tests/__init__.py | 345 | # =================================================================== | COMMENT |
| MEDIUM⚡ | tests/__init__.py | 347 | # =================================================================== | COMMENT |
| MEDIUM | tests/__init__.py | 110 | # =================================================================== | COMMENT |
| MEDIUM | tests/__init__.py | 112 | # =================================================================== | COMMENT |
| MEDIUM | tests/__init__.py | 297 | # =================================================================== | COMMENT |
| MEDIUM | tests/__init__.py | 299 | # =================================================================== | COMMENT |
| MEDIUM | tests/__init__.py | 716 | # =================================================================== | COMMENT |
| MEDIUM | tests/__init__.py | 718 | # =================================================================== | COMMENT |
| MEDIUM | tests/__init__.py | 842 | # =================================================================== | COMMENT |
| MEDIUM | tests/__init__.py | 844 | # =================================================================== | COMMENT |
| MEDIUM | tests/__init__.py | 1498 | # =================================================================== | COMMENT |
| MEDIUM | tests/__init__.py | 1500 | # =================================================================== | COMMENT |
| MEDIUM | tests/__init__.py | 1729 | # ===================================================================== | COMMENT |
| MEDIUM | tests/__init__.py | 1731 | # ===================================================================== | COMMENT |
| MEDIUM | tests/__init__.py | 1885 | # =================================================================== | COMMENT |
| 231 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | setup.py | 360 | def print_install_instructions(): | CODE |
| LOW | tests/test_contracts.py | 164 | def test_proc_ioprio_class_linux(self): | CODE |
| LOW | tests/test_contracts.py | 179 | def test_proc_ioprio_value_windows(self): | CODE |
| LOW | tests/test_contracts.py | 192 | def test_proc_priority_windows(self): | CODE |
| LOW | tests/test_contracts.py | 260 | def test_sensors_temperatures(self): | CODE |
| LOW | tests/test_contracts.py | 446 | def test_sensors_temperatures(self): | CODE |
| LOW | tests/test_connections.py | 53 | def this_proc_net_connections(kind): | CODE |
| LOW | tests/test_connections.py | 69 | def compare_procsys_connections(self, pid, proc_cons, kind='all'): | CODE |
| LOW | tests/test_connections.py | 566 | def test_net_connection_constants(self): | STRING |
| LOW | tests/test_unicode.py | 230 | def test_proc_net_connections(self): | CODE |
| LOW⚡ | tests/test_misc.py | 111 | def test_no_such_process__repr__(self): | CODE |
| LOW⚡ | tests/test_misc.py | 121 | def test_no_such_process__str__(self): | CODE |
| LOW⚡ | tests/test_misc.py | 131 | def test_zombie_process__repr__(self): | CODE |
| LOW⚡ | tests/test_misc.py | 143 | def test_zombie_process__str__(self): | CODE |
| LOW⚡ | tests/test_misc.py | 153 | def test_access_denied__repr__(self): | CODE |
| LOW⚡ | tests/test_misc.py | 160 | def test_access_denied__str__(self): | CODE |
| LOW⚡ | tests/test_misc.py | 167 | def test_timeout_expired__repr__(self): | CODE |
| LOW⚡ | tests/test_misc.py | 179 | def test_timeout_expired__str__(self): | CODE |
| LOW⚡ | tests/test_misc.py | 342 | def test_exceptions_survive_reimport(self): | CODE |
| LOW | tests/test_misc.py | 236 | def test_process_as_dict_no_new_names(self): | CODE |
| LOW | tests/test_misc.py | 320 | def test_sanity_version_check(self): | CODE |
| LOW⚡ | tests/test_misc.py | 377 | def test_memoize_when_activated(self): | STRING |
| LOW | tests/test_misc.py | 549 | def test_increase_but_no_wrap(self): | STRING |
| LOW | tests/test_misc.py | 599 | def test_changing_keys_w_wrap(self): | STRING |
| LOW | tests/test_misc.py | 739 | def test_cache_clear_public_apis(self): | STRING |
| LOW | tests/test_misc.py | 804 | def test_instructions_are_silent_if_toolchain_is_ok(self): | STRING |
| LOW | tests/test_misc.py | 813 | def test_instructions_without_compiler(self): | STRING |
| LOW | tests/test_misc.py | 825 | def test_instructions_on_macos(self): | STRING |
| LOW | tests/test_misc.py | 833 | def test_instructions_without_headers(self): | STRING |
| LOW | tests/test_misc.py | 848 | def test_detection_without_compiler(self): | STRING |
| LOW | tests/test_posix.py | 187 | def test_username_no_resolution(self): | CODE |
| LOW | tests/test_posix.py | 243 | def test_name_long_cmdline_ad_exc(self): | CODE |
| LOW | tests/test_posix.py | 256 | def test_name_long_cmdline_nsp_exc(self): | CODE |
| LOW | tests/test_posix.py | 358 | def test_page_faults_minor_increase(self): | CODE |
| LOW | tests/test_posix.py | 488 | def test_pid_exists_let_raise(self): | CODE |
| LOW⚡ | tests/test_changelog_bot.py | 68 | def test_appends_to_end_of_section(self): | STRING |
| LOW⚡ | tests/test_changelog_bot.py | 75 | def test_does_not_glue_to_next_header(self): | STRING |
| LOW⚡ | tests/test_changelog_bot.py | 84 | def test_inserts_into_correct_section(self): | STRING |
| LOW⚡ | tests/test_changelog_bot.py | 94 | def test_inserts_in_sorted_position(self): | STRING |
| LOW⚡ | tests/test_changelog_bot.py | 102 | def test_inserts_into_last_run_of_grouped_section(self): | STRING |
| LOW⚡ | tests/test_changelog_bot.py | 211 | def test_passes_for_sorted_run(self): | STRING |
| LOW⚡ | tests/test_changelog_bot.py | 214 | def test_raises_when_placed_after_higher_number(self): | STRING |
| LOW⚡ | tests/test_changelog_bot.py | 219 | def test_stops_at_group_boundary(self): | STRING |
| LOW⚡ | tests/test_changelog_bot.py | 243 | def test_replaces_single_line_entry(self): | STRING |
| LOW⚡ | tests/test_changelog_bot.py | 253 | def test_replaces_multiline_entry_span(self): | STRING |
| LOW⚡ | tests/test_changelog_bot.py | 261 | def test_raises_when_entry_absent(self): | STRING |
| LOW⚡ | tests/test_changelog_bot.py | 265 | def test_does_not_match_released_block_entry(self): | STRING |
| LOW | tests/test_changelog_bot.py | 55 | def test_returns_only_top_block(self): | STRING |
| LOW | tests/test_changelog_bot.py | 130 | def test_multiline_entry_kept_together(self): | STRING |
| LOW | tests/test_changelog_bot.py | 138 | def test_creates_missing_section_after_enhancements(self): | STRING |
| LOW | tests/test_changelog_bot.py | 154 | def test_created_section_has_blank_line_before_first_entry(self): | STRING |
| LOW | tests/test_changelog_bot.py | 171 | def test_created_enhancements_has_blank_line_before_entry(self): | STRING |
| LOW | tests/test_changelog_bot.py | 186 | def test_creates_missing_enhancements_before_bug_fixes(self): | STRING |
| LOW | tests/test_changelog_bot.py | 307 | def test_adds_new_contributor_sorted(self): | STRING |
| LOW | tests/test_changelog_bot.py | 321 | def test_appends_gh_to_existing_contributor(self): | STRING |
| LOW | tests/test_changelog_bot.py | 331 | def test_sorts_before_legacy_named_link(self): | STRING |
| LOW | tests/test_changelog_bot.py | 357 | def test_repeat_legacy_contributor_appends_not_duplicates(self): | STRING |
| LOW | tests/test_changelog_bot.py | 369 | def test_giampaolo_is_skipped(self): | STRING |
| LOW | tests/test_changelog_bot.py | 376 | def test_duplicate_gh_is_skipped(self): | STRING |
| LOW | tests/test_changelog_bot.py | 402 | def test_append_to_wrapped_entry_hits_last_line(self): | STRING |
| 203 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | psutil/_pswindows.py | 0 | swap system memory as a (total, used, free, sin, sout) tuple. | STRING |
| HIGH | psutil/_psosx.py | 0 | swap system memory as a (total, used, free, sin, sout) tuple. | STRING |
| HIGH | psutil/_psaix.py | 0 | swap system memory as a (total, used, free, sin, sout) tuple. | STRING |
| HIGH | psutil/_pswindows.py | 0 | return system per-cpu times as a list of named tuples. | STRING |
| HIGH | psutil/_psaix.py | 0 | return system per-cpu times as a list of named tuples. | STRING |
| HIGH | psutil/_pssunos.py | 0 | return system per-cpu times as a list of named tuples. | STRING |
| HIGH | psutil/_pswindows.py | 0 | return currently connected users as a list of named tuples. | STRING |
| HIGH | psutil/_psosx.py | 0 | return currently connected users as a list of named tuples. | STRING |
| HIGH | psutil/_psbsd.py | 0 | return currently connected users as a list of named tuples. | STRING |
| HIGH | psutil/_psaix.py | 0 | return currently connected users as a list of named tuples. | STRING |
| HIGH | psutil/_pslinux.py | 0 | return currently connected users as a list of named tuples. | STRING |
| HIGH | psutil/_pssunos.py | 0 | return currently connected users as a list of named tuples. | STRING |
| HIGH | psutil/_psosx.py | 0 | return the system boot time expressed in seconds since the epoch. | STRING |
| HIGH | psutil/_psbsd.py | 0 | return the system boot time expressed in seconds since the epoch. | STRING |
| HIGH | psutil/_psaix.py | 0 | return the system boot time expressed in seconds since the epoch. | STRING |
| HIGH | psutil/_pssunos.py | 0 | return the system boot time expressed in seconds since the epoch. | STRING |
| HIGH | psutil/_pslinux.py | 0 | return the system boot time expressed in seconds since the epoch. | STRING |
| HIGH | psutil/_psosx.py | 0 | decorator which translates bare oserror exceptions into nosuchprocess and accessdenied. | STRING |
| HIGH | psutil/_psbsd.py | 0 | decorator which translates bare oserror exceptions into nosuchprocess and accessdenied. | STRING |
| HIGH | psutil/_pslinux.py | 0 | decorator which translates bare oserror exceptions into nosuchprocess and accessdenied. | STRING |
| HIGH | psutil/_psbsd.py | 0 | returns a list of pids currently running on the system. | STRING |
| HIGH | psutil/_psaix.py | 0 | returns a list of pids currently running on the system. | STRING |
| HIGH | psutil/_pslinux.py | 0 | returns a list of pids currently running on the system. | STRING |
| HIGH | psutil/_pssunos.py | 0 | returns a list of pids currently running on the system. | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/__init__.py | 941 | not really due to the time variant. | COMMENT |
| LOW | tests/test_system.py | 561 | assert isinstance(cp_time, float) | COMMENT |
| LOW | tests/test_system.py | 601 | total += cp_time | COMMENT |
| LOW | tests/test_windows.py | 401 | # # _UPTIME constant is not public but it is used internally | COMMENT |
| LOW | docs/conf.py | 261 | "blog/category/*", | COMMENT |
| LOW | docs/conf.py | 281 | # references resolvable. | COMMENT |
| LOW | docs/_static/js/search-shortcuts.js | 1 | // Copyright (c) 2009 Giampaolo Rodola. All rights reserved. | COMMENT |
| LOW | docs/_static/js/theme-toggle.js | 1 | // Copyright (c) 2009 Giampaolo Rodola. All rights reserved. | COMMENT |
| LOW | .github/workflows/docs.yml | 1 | # Builds and tests the docs, then deploys them to GitHub Pages. | COMMENT |
| LOW | psutil/_psutil_aix.c | 1 | /* | COMMENT |
| LOW | psutil/_psutil_aix.c | 21 | // versions) | COMMENT |
| LOW | psutil/_psutil_aix.c | 41 | #include <mntent.h> | COMMENT |
| LOW | psutil/_pswindows.py | 521 | d['display_name'] = self.display_name() | COMMENT |
| LOW | psutil/_pswindows.py | 541 | # check whether it's running | COMMENT |
| LOW | psutil/_psutil_linux.c | 1 | /* | COMMENT |
| LOW | psutil/_psutil_windows.c | 1 | /* | COMMENT |
| LOW | psutil/__init__.py | 641 | # I expect that the code below will be a pretty common | COMMENT |
| LOW | psutil/__init__.py | 1261 | delta_time = st2 - st1 | COMMENT |
| LOW | psutil/_pslinux.py | 61 | HAS_CPU_AFFINITY = hasattr(_psutil, "proc_cpu_affinity_get") | COMMENT |
| LOW | psutil/_pslinux.py | 321 | # - starting from 4.4.0 we match free's "available" column. | COMMENT |
| LOW | psutil/_pslinux.py | 1001 | # On Linux 2.6+ each line *usually* has 14 fields, and the disk | COMMENT |
| LOW | psutil/_pslinux.py | 1821 | if monotonic: | COMMENT |
| LOW | psutil/_pslinux.py | 1901 | COMMENT | |
| LOW | psutil/_psutil_sunos.c | 1 | /* | COMMENT |
| LOW | psutil/_psposix.py | 61 | return num | COMMENT |
| LOW | psutil/arch/posix/init.c | 21 | // allow the synonym _SC_PAGE_SIZE for _SC_PAGESIZE. Whether | COMMENT |
| LOW | psutil/arch/posix/init.c | 101 | PSUTIL_ADD_INT(mod, "RLIMIT_AS", RLIMIT_AS); | COMMENT |
| LOW | psutil/arch/posix/init.c | 121 | #ifdef RLIMIT_NPROC | COMMENT |
| LOW | psutil/arch/posix/init.c | 141 | #endif | COMMENT |
| LOW | psutil/arch/posix/net.c | 1 | /* | COMMENT |
| LOW | psutil/arch/posix/net.c | 21 | COMMENT | |
| LOW | psutil/arch/posix/net.c | 361 | #endif | COMMENT |
| LOW | psutil/arch/posix/net.c | 421 | #endif | COMMENT |
| LOW | psutil/arch/posix/net.c | 541 | #endif | COMMENT |
| LOW | psutil/arch/posix/net.c | 561 | case (IFM_10G_TWINAX): | COMMENT |
| LOW | psutil/arch/posix/init.h | 21 | COMMENT | |
| LOW | psutil/arch/osx/cpu.c | 1 | /* | COMMENT |
| LOW | psutil/arch/osx/cpu.c | 21 | #include <mach/mach_host.h> | COMMENT |
| LOW | psutil/arch/osx/cpu.c | 181 | // values well below it. | COMMENT |
| LOW | psutil/arch/osx/proc_utils.c | 1 | /* | COMMENT |
| LOW | psutil/arch/osx/proc_utils.c | 161 | // https://github.com/giampaolo/psutil/issues/2885 | COMMENT |
| LOW | psutil/arch/osx/net.c | 1 | /* | COMMENT |
| LOW | psutil/arch/osx/proc.c | 1 | /* | COMMENT |
| LOW | psutil/arch/osx/proc.c | 21 | #include <sys/resource.h> | COMMENT |
| LOW | psutil/arch/osx/disk.c | 1 | /* | COMMENT |
| LOW | psutil/arch/sunos/net.c | 1 | /* | COMMENT |
| LOW | psutil/arch/sunos/environ.c | 301 | // returned array. In case of error value of variable will not be | COMMENT |
| LOW | psutil/arch/netbsd/cpu.c | 1 | /* | COMMENT |
| LOW | psutil/arch/netbsd/mem.c | 1 | /* | COMMENT |
| LOW | psutil/arch/all/utils.c | 1 | /* | COMMENT |
| LOW | psutil/arch/all/init.h | 1 | /* | COMMENT |
| LOW | psutil/arch/all/init.h | 21 | COMMENT | |
| LOW | psutil/arch/all/init.h | 61 | COMMENT | |
| LOW | psutil/arch/all/init.h | 81 | #define SIZEOF_PID_T PSUTIL_SIZEOF_PID_T // set as a macro in setup.py | COMMENT |
| LOW | psutil/arch/all/init.h | 101 | #define PyLong_FromPid PyLong_FromLong | COMMENT |
| LOW | psutil/arch/bsd/heap.c | 1 | /* | COMMENT |
| LOW | psutil/arch/bsd/proc_utils.c | 1 | /* | COMMENT |
| LOW | psutil/arch/bsd/proc.c | 1 | /* | COMMENT |
| LOW | psutil/arch/bsd/proc.c | 81 | // Calculate memory. | COMMENT |
| LOW | psutil/arch/bsd/proc.c | 141 | // https://svnweb.freebsd.org/base/head/usr.bin/top/machine.c? | COMMENT |
| 23 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | _bootstrap.py | 28 | CODE | |
| LOW | tests/test_connections.py | 293 | CODE | |
| LOW | tests/test_misc.py | 193 | CODE | |
| LOW | tests/test_posix.py | 453 | CODE | |
| LOW | tests/test_linux.py | 851 | CODE | |
| LOW | tests/test_linux.py | 883 | CODE | |
| LOW | tests/test_linux.py | 956 | CODE | |
| LOW | tests/test_linux.py | 1069 | CODE | |
| LOW | tests/test_linux.py | 1187 | CODE | |
| LOW | tests/test_linux.py | 1966 | CODE | |
| LOW | tests/test_linux.py | 1993 | CODE | |
| LOW | tests/test_linux.py | 2104 | CODE | |
| LOW | tests/test_linux.py | 2471 | CODE | |
| LOW | tests/test_linux.py | 852 | CODE | |
| LOW | tests/test_linux.py | 884 | CODE | |
| LOW | tests/test_linux.py | 975 | CODE | |
| LOW | tests/test_linux.py | 1967 | CODE | |
| LOW | tests/test_linux.py | 1994 | CODE | |
| LOW | tests/test_linux.py | 2105 | CODE | |
| LOW | tests/__init__.py | 224 | CODE | |
| LOW | tests/__init__.py | 539 | CODE | |
| LOW | tests/__init__.py | 1543 | CODE | |
| LOW | tests/__init__.py | 1639 | CODE | |
| LOW | tests/__init__.py | 1654 | CODE | |
| LOW | tests/__init__.py | 1761 | CODE | |
| LOW | tests/__init__.py | 1846 | CODE | |
| LOW | tests/test_sudo.py | 35 | CODE | |
| LOW | tests/test_process_all.py | 58 | CODE | |
| LOW | tests/test_process_all.py | 221 | CODE | |
| LOW | tests/test_process_all.py | 256 | CODE | |
| LOW | tests/test_process_all.py | 401 | CODE | |
| LOW | tests/test_process_all.py | 436 | CODE | |
| LOW | tests/test_process_all.py | 466 | CODE | |
| LOW | tests/test_process_all.py | 557 | CODE | |
| LOW | tests/test_process_all.py | 558 | CODE | |
| LOW | tests/test_process_all.py | 573 | CODE | |
| LOW | tests/test_process.py | 548 | CODE | |
| LOW | tests/test_process.py | 748 | CODE | |
| LOW | tests/test_process.py | 932 | CODE | |
| LOW | tests/test_process.py | 1269 | CODE | |
| LOW | tests/test_process.py | 1376 | CODE | |
| LOW | tests/test_system.py | 388 | CODE | |
| LOW | tests/test_system.py | 458 | CODE | |
| LOW | tests/test_system.py | 820 | CODE | |
| LOW | tests/test_system.py | 964 | CODE | |
| LOW | tests/test_windows.py | 332 | CODE | |
| LOW | tests/test_scripts.py | 92 | CODE | |
| LOW | tests/test_type_hints.py | 42 | CODE | |
| LOW | tests/test_type_hints.py | 50 | CODE | |
| LOW | docs/test_docs.py | 728 | CODE | |
| LOW | scripts/iotop.py | 64 | CODE | |
| LOW | scripts/procsmem.py | 58 | CODE | |
| LOW | scripts/cpu_distribution.py | 60 | CODE | |
| LOW | scripts/procinfo.py | 139 | CODE | |
| LOW | scripts/internal/print_sysinfo.py | 49 | CODE | |
| LOW | scripts/internal/find_broken_links.py | 102 | CODE | |
| LOW | scripts/internal/find_broken_links.py | 123 | CODE | |
| LOW | scripts/internal/find_broken_links.py | 160 | CODE | |
| LOW | scripts/internal/find_broken_links.py | 191 | CODE | |
| LOW | scripts/internal/print_dist.py | 64 | CODE | |
| 46 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/__init__.py | 225 | def attempt(exe): | CODE |
| LOW⚡ | tests/__init__.py | 355 | except Exception: | CODE |
| LOW | tests/__init__.py | 211 | except Exception: # noqa: BLE001 | CODE |
| LOW | tests/__init__.py | 216 | except Exception: # noqa: BLE001 | CODE |
| LOW | tests/__init__.py | 1523 | except Exception: | CODE |
| LOW | tests/__init__.py | 1537 | except Exception: | CODE |
| LOW | tests/__init__.py | 1579 | except Exception: | CODE |
| LOW | tests/__init__.py | 509 | except Exception: | STRING |
| LOW | tests/test_process_all.py | 121 | except Exception as exc: # noqa: BLE001 | CODE |
| LOW | tests/test_process_all.py | 189 | except Exception as exc: | CODE |
| LOW | tests/test_process_all.py | 231 | except Exception: # noqa: BLE001 | CODE |
| LOW | scripts/internal/find_broken_links.py | 209 | except Exception: # noqa: BLE001 | CODE |
| LOW | psutil/_common.py | 262 | except Exception as err: | CODE |
| LOW | psutil/_common.py | 269 | except Exception as err: | CODE |
| LOW | psutil/_common.py | 616 | except Exception: | CODE |
| LOW | psutil/_common.py | 688 | except Exception: # noqa: BLE001 | CODE |
| LOW | psutil/__init__.py | 2030 | except Exception: # noqa: BLE001 | CODE |
| LOW | psutil/__init__.py | 2038 | except Exception: # noqa: BLE001 | CODE |
| LOW | psutil/__init__.py | 2573 | except Exception as err: # noqa: BLE001 | CODE |
| LOW⚡ | psutil/_psosx.py | 249 | except Exception as err: # noqa: BLE001 | CODE |
| LOW | psutil/_psbsd.py | 342 | except Exception as err: # noqa: BLE001 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | psutil/_pslinux.py | 1378 | ret = bcat(path, fallback=null) | CODE |
| HIGH | psutil/_pslinux.py | 1379 | if ret != null: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/conftest.py | 7 | CODE | |
| LOW | tests/conftest.py | 8 | CODE | |
| LOW | tests/test_type_hints.py | 7 | CODE | |
| LOW | docs/conf.py | 298 | CODE | |
| LOW | scripts/internal/print_downloads.py | 178 | CODE | |
| LOW | psutil/_pswindows.py | 7 | CODE | |
| LOW | psutil/__init__.py | 21 | CODE | |
| LOW | psutil/__init__.py | 56 | CODE | |
| LOW | psutil/_ntuples.py | 5 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/internal/find_adopters.py | 731 | # Step 1: enumerate all popular Python repos. | COMMENT |
| LOW | scripts/internal/find_adopters.py | 750 | # Step 2: fetch data needed for the requested filters. | COMMENT |
| LOW | scripts/internal/find_adopters.py | 764 | # Step 3: apply filters. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/internal/find_adopters.py | 731 | # Step 1: enumerate all popular Python repos. | COMMENT |
| LOW | scripts/internal/find_adopters.py | 750 | # Step 2: fetch data needed for the requested filters. | COMMENT |
| LOW | scripts/internal/find_adopters.py | 764 | # Step 3: apply filters. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/__init__.py | 66 | __all__ = [ | CODE |
| LOW | docs/_ext/availability.py | 17 | logger = logging.getLogger(__name__) | CODE |
| LOW | psutil/_common.py | 38 | __all__ = [ | CODE |
| LOW | psutil/__init__.py | 232 | __all__ = [ | CODE |
| LOW | psutil/_psposix.py | 26 | __all__ = ['pid_exists', 'wait_pid', 'disk_usage', 'get_terminal_map'] | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/internal/download_wheels.py | 60 | CODE | |
| LOW | psutil/_pswindows.py | 968 | CODE | |
| LOW | psutil/_pswindows.py | 978 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/internal/install-sysdeps.sh | 43 | # Check if running as root | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | psutil/_pssunos.py | 687 | # If that's the case we just return the | COMMENT |