AI Slop Code Risk Monitor

giampaolo/psutil

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

Cross-platform lib for process and system monitoring in Python

24.7 Elevated pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for giampaolo/psutil, a Python project with 11,314 GitHub stars. SynthScan examined 70,287 lines of code across 296 source files, recording 937 pattern matches distributed across 15 syntactic categories. The legacy adjusted pattern signal is 24.7 (Elevated pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

24.7
Adjusted Signal
24.7
Raw Pattern Score
100%
Time Factor
2026-10-29
Last Push
11.3K
Stars
Python
Language
70.3K
Lines of Code
296
Files
937
Pattern Hits
2026-10-31
Scan Date
0.31
HC Hit Rate

Risk Review · Payload v1

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

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

Cognitive Ownership Risk 23.9/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 4.3/100 · LOW

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

Agent Over-Engineering Ratio 65.9/100 · HIGH

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

PR Review Velocity Impact 76.3/100 · CRITICAL

Which changes need focused human review? 937 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 0HIGH 91MEDIUM 317LOW 529

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 937 distinct pattern matches across 15 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

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

Decorative Section Separators316 hits · 857 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_contracts.py44# ===================================================================COMMENT
MEDIUMtests/test_contracts.py46# ===================================================================COMMENT
MEDIUMtests/test_contracts.py346# ===================================================================COMMENT
MEDIUMtests/test_contracts.py348# ===================================================================COMMENT
MEDIUMtests/test_heap.py62# =====================================================================COMMENT
MEDIUMtests/test_heap.py64# =====================================================================COMMENT
MEDIUMtests/test_heap.py164# =====================================================================COMMENT
MEDIUMtests/test_heap.py166# =====================================================================COMMENT
MEDIUMtests/test_unicode.py146# ===================================================================COMMENT
MEDIUMtests/test_unicode.py148# ===================================================================COMMENT
MEDIUMtests/test_unicode.py304# ===================================================================COMMENT
MEDIUMtests/test_unicode.py306# ===================================================================COMMENT
MEDIUM⚡tests/test_misc.py360# ===================================================================COMMENT
MEDIUM⚡tests/test_misc.py362# ===================================================================COMMENT
MEDIUMtests/test_misc.py51# ===================================================================COMMENT
MEDIUMtests/test_misc.py53# ===================================================================COMMENT
MEDIUMtests/test_misc.py222# ===================================================================COMMENT
MEDIUMtests/test_misc.py224# ===================================================================COMMENT
MEDIUMtests/test_misc.py292# ===================================================================COMMENT
MEDIUMtests/test_misc.py294# ===================================================================COMMENT
MEDIUM⚡tests/test_misc.py396# ===================================================================STRING
MEDIUM⚡tests/test_misc.py398# ===================================================================STRING
MEDIUM⚡tests/test_misc.py839# ===================================================================STRING
MEDIUM⚡tests/test_misc.py841# ===================================================================STRING
MEDIUMtests/test_misc.py580# ===================================================================STRING
MEDIUMtests/test_misc.py582# ===================================================================STRING
MEDIUM⚡tests/test_linux.py2489# =====================================================================COMMENT
MEDIUM⚡tests/test_linux.py2491# =====================================================================COMMENT
MEDIUMtests/test_linux.py84# =====================================================================COMMENT
MEDIUMtests/test_linux.py86# =====================================================================COMMENT
MEDIUMtests/test_linux.py267# =====================================================================COMMENT
MEDIUMtests/test_linux.py269# =====================================================================COMMENT
MEDIUM⚡tests/test_linux.py698# =====================================================================STRING
MEDIUM⚡tests/test_linux.py700# =====================================================================STRING
MEDIUM⚡tests/test_linux.py1688# =====================================================================STRING
MEDIUM⚡tests/test_linux.py1690# =====================================================================STRING
MEDIUMtests/test_linux.py581# =====================================================================STRING
MEDIUMtests/test_linux.py583# =====================================================================STRING
MEDIUMtests/test_linux.py1043# =====================================================================STRING
MEDIUMtests/test_linux.py1045# =====================================================================STRING
MEDIUMtests/test_linux.py1318# =====================================================================STRING
MEDIUMtests/test_linux.py1320# =====================================================================STRING
MEDIUMtests/test_linux.py1589# =====================================================================STRING
MEDIUMtests/test_linux.py1591# =====================================================================STRING
MEDIUMtests/test_linux.py1887# =====================================================================STRING
MEDIUMtests/test_linux.py1889# =====================================================================STRING
MEDIUMtests/test_linux.py1911# =====================================================================STRING
MEDIUMtests/test_linux.py1913# =====================================================================STRING
MEDIUM⚡tests/__init__.py359# ===================================================================COMMENT
MEDIUM⚡tests/__init__.py361# ===================================================================COMMENT
MEDIUMtests/__init__.py116# ===================================================================COMMENT
MEDIUMtests/__init__.py118# ===================================================================COMMENT
MEDIUMtests/__init__.py311# ===================================================================COMMENT
MEDIUMtests/__init__.py313# ===================================================================COMMENT
MEDIUMtests/__init__.py734# ===================================================================COMMENT
MEDIUMtests/__init__.py736# ===================================================================COMMENT
MEDIUMtests/__init__.py748# ===================================================================COMMENT
MEDIUMtests/__init__.py750# ===================================================================COMMENT
MEDIUMtests/__init__.py890# ===================================================================COMMENT
MEDIUMtests/__init__.py892# ===================================================================COMMENT
256 more matches not shown…
Empty Error Handlers58 hits · 290 pts
SeverityFileLineSnippetContext
HIGHtests/test_posix.py86except ValueError:CODE
HIGHtests/test_linux.py1156except RuntimeError:CODE
HIGHtests/test_linux.py1177except RuntimeError:CODE
HIGHtests/__init__.py927except FileNotFoundError:CODE
HIGHtests/__init__.py935except FileExistsError:CODE
HIGHtests/__init__.py628except ProcessLookupError:CODE
HIGHtests/__init__.py638except psutil.NoSuchProcess:CODE
HIGHtests/__init__.py612except psutil.NoSuchProcess:CODE
HIGHtests/test_process_all.py418except FileNotFoundError:CODE
HIGHtests/test_process.py499except psutil.AccessDenied: # windowsCODE
HIGHtests/test_process.py634except psutil.AccessDenied:CODE
HIGHtests/test_process.py662except psutil.AccessDenied:CODE
HIGHtests/test_process.py490except psutil.Error:CODE
HIGHtests/test_process.py790except psutil.AccessDenied:CODE
HIGHtests/test_process.py1349except psutil.NoSuchProcess:CODE
HIGHtests/test_process.py1439except psutil.AccessDenied:CODE
HIGHtests/test_process.py1743except psutil.TimeoutExpired:CODE
HIGHtests/test_process.py763except psutil.AccessDenied:CODE
HIGHtests/test_process.py1039except FileNotFoundError:CODE
HIGHtests/test_bsd.py99except RuntimeError:CODE
HIGHtests/test_osx.py203except RuntimeError:CODE
HIGHtests/test_memleaks.py258except psutil.NoSuchProcess:CODE
HIGHtests/test_memleaks.py480except TypeError:CODE
HIGHtests/test_memleaks.py500except NotImplementedError:CODE
HIGHtests/test_memleaks.py283except ProcessLookupError:CODE
HIGHdocs/conf.py226except locale.Error:CODE
HIGHscripts/top.py263except (KeyboardInterrupt, SystemExit):CODE
HIGHscripts/top.py97except psutil.NoSuchProcess:CODE
HIGHscripts/iotop.py172except (KeyboardInterrupt, SystemExit):CODE
HIGHscripts/pstree.py60except (psutil.NoSuchProcess, psutil.ZombieProcess):CODE
HIGHscripts/ps.py71except psutil.Error:CODE
HIGHscripts/procsmem.py68except psutil.NoSuchProcess:CODE
HIGHscripts/nettop.py153except (KeyboardInterrupt, SystemExit):CODE
HIGHscripts/procinfo.py201except psutil.Error:CODE
HIGHscripts/procinfo.py230except psutil.NoSuchProcess:CODE
HIGHscripts/procinfo.py289except psutil.AccessDenied:CODE
HIGHscripts/internal/download_wheels.py49except FileNotFoundError:CODE
HIGHpsutil/_common.py235except AttributeError:CODE
HIGHpsutil/_common.py589except AttributeError:CODE
HIGHpsutil/_common.py739except RuntimeWarning:CODE
HIGHpsutil/_common.py286except AttributeError:CODE
HIGHpsutil/__init__.py543except AccessDenied:CODE
HIGHpsutil/__init__.py548except ZombieProcess:CODE
HIGHpsutil/__init__.py1994except (TimeoutExpired, subprocess.TimeoutExpired):CODE
HIGHpsutil/__init__.py346except (NoSuchProcess, ZombieProcess):CODE
HIGHpsutil/__init__.py859except NoSuchProcess:CODE
HIGHpsutil/__init__.py943except (AccessDenied, ZombieProcess):CODE
HIGHpsutil/__init__.py617except AccessDenied:CODE
HIGHpsutil/__init__.py997except AccessDenied:CODE
HIGHpsutil/__init__.py1257except (NoSuchProcess, ZombieProcess):CODE
HIGHpsutil/__init__.py1285except (NoSuchProcess, ZombieProcess):CODE
HIGHpsutil/_psosx.py301except NoSuchProcess:CODE
HIGHpsutil/_psbsd.py324except NotImplementedError:CODE
HIGHpsutil/_pslinux.py1603except (FileNotFoundError, ProcessLookupError):CODE
HIGHpsutil/_pslinux.py580except KeyError:CODE
HIGHpsutil/_pslinux.py2006except (ProcessLookupError, FileNotFoundError):CODE
HIGHpsutil/_psposix.py354except FileNotFoundError:CODE
HIGHpsutil/_pssunos.py392except OSError:CODE
Hyper-Verbose Identifiers298 hits · 222 pts
SeverityFileLineSnippetContext
LOWsetup.py401def print_install_instructions():CODE
LOWtests/test_contracts.py163 def test_proc_ioprio_class_linux(self):CODE
LOWtests/test_contracts.py178 def test_proc_ioprio_value_windows(self):CODE
LOWtests/test_contracts.py191 def test_proc_priority_windows(self):CODE
LOWtests/test_contracts.py259 def test_sensors_temperatures(self):CODE
LOWtests/test_contracts.py438 def test_sensors_temperatures(self):CODE
LOWtests/test_connections.py53def this_proc_net_connections(kind):CODE
LOWtests/test_connections.py69 def compare_procsys_connections(self, pid, proc_cons, kind='all'):CODE
LOWtests/test_unicode.py251 def test_proc_net_connections(self):CODE
LOW⚡tests/test_misc.py110 def test_no_such_process__repr__(self):CODE
LOW⚡tests/test_misc.py120 def test_no_such_process__str__(self):CODE
LOW⚡tests/test_misc.py130 def test_zombie_process__repr__(self):CODE
LOW⚡tests/test_misc.py142 def test_zombie_process__str__(self):CODE
LOW⚡tests/test_misc.py152 def test_access_denied__repr__(self):CODE
LOW⚡tests/test_misc.py159 def test_access_denied__str__(self):CODE
LOW⚡tests/test_misc.py166 def test_timeout_expired__repr__(self):CODE
LOW⚡tests/test_misc.py367 def test_exceptions_survive_reimport(self):CODE
LOWtests/test_misc.py178 def test_timeout_expired__str__(self):CODE
LOWtests/test_misc.py185 def test_process_snapshot__repr__(self):CODE
LOWtests/test_misc.py271 def test_sanity_version_check(self):CODE
LOW⚡tests/test_misc.py402 def test_memoize_when_activated(self):STRING
LOW⚡tests/test_misc.py824 def test_disk_io_counters_nowrap(self):STRING
LOW⚡tests/test_misc.py831 def test_net_io_counters_nowrap(self):STRING
LOWtests/test_misc.py562 def test_broadcast_addr_single_host(self):STRING
LOWtests/test_misc.py603 def test_increase_but_no_wrap(self):STRING
LOWtests/test_misc.py653 def test_changing_keys_w_wrap(self):STRING
LOWtests/test_misc.py793 def test_cache_clear_public_apis(self):STRING
LOWtests/test_misc.py883 def test_instructions_are_silent_if_toolchain_is_ok(self):STRING
LOWtests/test_misc.py892 def test_instructions_without_compiler(self):STRING
LOWtests/test_misc.py904 def test_instructions_on_macos(self):STRING
LOWtests/test_misc.py912 def test_instructions_without_headers(self):STRING
LOWtests/test_misc.py927 def test_detection_without_compiler(self):STRING
LOWtests/test_posix.py198 def test_name_long_cmdline_ad_exc(self):CODE
LOWtests/test_posix.py211 def test_name_long_cmdline_nsp_exc(self):CODE
LOWtests/test_posix.py268 def test_terminal_pty_opened_later(self):CODE
LOWtests/test_posix.py314 def test_username_no_resolution(self):CODE
LOWtests/test_posix.py437 def test_page_faults_minor_increase(self):CODE
LOWtests/test_posix.py579 def test_pid_exists_let_raise(self):CODE
LOW⚡tests/test_linux.py2481 def test_cpu_affinity_eligible_cpus(self):CODE
LOWtests/test_linux.py656 def test_meminfo_against_sysinfo(self):CODE
LOWtests/test_linux.py672 def test_emulate_meminfo_has_no_metrics(self):CODE
LOWtests/test_linux.py680 def test_no_space_after_colon(self):CODE
LOWtests/test_linux.py2404 def test_status_file_cpus_allowed_list(self):CODE
LOW⚡tests/test_linux.py708 def test_against_sysdev_cpu_online(self):STRING
LOW⚡tests/test_linux.py1679 def test_pid_exists_no_proc_status(self):STRING
LOW⚡tests/test_linux.py1933 def test_cmdline_spaces_mocked(self):STRING
LOW⚡tests/test_linux.py1938 def test_cmdline_mixed_separators(self):STRING
LOW⚡tests/test_linux.py1942 def test_cmdline_environ_carriage_return(self):STRING
LOW⚡tests/test_linux.py1950 def test_readlink_path_deleted_mocked(self):STRING
LOWtests/test_linux.py457 def test_avail_old_comes_from_kernel(self):STRING
LOWtests/test_linux.py467 def test_avail_old_missing_fields(self):STRING
LOWtests/test_linux.py483 def test_avail_old_missing_zoneinfo(self):STRING
LOWtests/test_linux.py493 def test_virtual_memory_mocked(self):STRING
LOWtests/test_linux.py559 def test_virtual_memory_no_space_after_colon(self):STRING
LOWtests/test_linux.py719 def test_against_sysdev_cpu_num(self):STRING
LOWtests/test_linux.py829 def test_emulate_use_second_file(self):STRING
LOWtests/test_linux.py899 def test_emulate_shared_policy(self):STRING
LOWtests/test_linux.py916 def test_emulate_no_scaling_cur_freq_file(self):STRING
LOWtests/test_linux.py931 def test_emulate_offline_cpus(self):STRING
LOWtests/test_linux.py1360 def test_emulate_realpath_fail(self):STRING
238 more matches not shown…
Cross-File Repetition24 hits · 120 pts
SeverityFileLineSnippetContext
HIGHpsutil/_pswindows.py0swap memory as a (total, used, free, percent, sin, sout) tuple.STRING
HIGHpsutil/_psosx.py0swap memory as a (total, used, free, percent, sin, sout) tuple.STRING
HIGHpsutil/_psaix.py0swap memory as a (total, used, free, percent, sin, sout) tuple.STRING
HIGHpsutil/_pswindows.py0return system per-cpu times as a list of named tuples.STRING
HIGHpsutil/_psaix.py0return system per-cpu times as a list of named tuples.STRING
HIGHpsutil/_pssunos.py0return system per-cpu times as a list of named tuples.STRING
HIGHpsutil/_pswindows.py0return currently connected users as a list of named tuples.STRING
HIGHpsutil/_psosx.py0return currently connected users as a list of named tuples.STRING
HIGHpsutil/_psbsd.py0return currently connected users as a list of named tuples.STRING
HIGHpsutil/_psaix.py0return currently connected users as a list of named tuples.STRING
HIGHpsutil/_pslinux.py0return currently connected users as a list of named tuples.STRING
HIGHpsutil/_pssunos.py0return currently connected users as a list of named tuples.STRING
HIGHpsutil/_psosx.py0return the system boot time expressed in seconds since the epoch.STRING
HIGHpsutil/_psbsd.py0return the system boot time expressed in seconds since the epoch.STRING
HIGHpsutil/_psaix.py0return the system boot time expressed in seconds since the epoch.STRING
HIGHpsutil/_pssunos.py0return the system boot time expressed in seconds since the epoch.STRING
HIGHpsutil/_pslinux.py0return the system boot time expressed in seconds since the epoch.STRING
HIGHpsutil/_psosx.py0decorator which translates bare oserror exceptions into nosuchprocess and accessdenied.STRING
HIGHpsutil/_psbsd.py0decorator which translates bare oserror exceptions into nosuchprocess and accessdenied.STRING
HIGHpsutil/_pslinux.py0decorator which translates bare oserror exceptions into nosuchprocess and accessdenied.STRING
HIGHpsutil/_psbsd.py0returns a list of pids currently running on the system.STRING
HIGHpsutil/_psaix.py0returns a list of pids currently running on the system.STRING
HIGHpsutil/_pslinux.py0returns a list of pids currently running on the system.STRING
HIGHpsutil/_pssunos.py0returns a list of pids currently running on the system.STRING
Over-Commented Block85 hits · 77 pts
SeverityFileLineSnippetContext
LOWtests/test_posix.py241 psutil_pathname = psutil.Process(self.pid).exe()COMMENT
LOWtests/__init__.py1041COMMENT
LOWtests/__init__.py1241 # Its parent should 'see' it (edit: not true on BSD and MACOS).COMMENT
LOWtests/test_system.py601 # Check type, value >= 0, str().COMMENT
LOWdocs/conf.py241COMMENT
LOWdocs/conf.py281 "blog/author/",COMMENT
LOWdocs/conf.py301# references resolvable.COMMENT
LOWdocs/_static/js/search-shortcuts.js1// Copyright (c) 2009 Giampaolo Rodola. All rights reserved.COMMENT
LOWdocs/_static/js/theme-toggle.js1// Copyright (c) 2009 Giampaolo Rodola. All rights reserved.COMMENT
LOW.github/workflows/wheels.yml1# Generates wheels for all platforms, architectures and free-threaded builds,COMMENT
LOW.github/workflows/docs.yml1# Builds and tests the docs, then deploys them to GitHub Pages.COMMENT
LOW.github/workflows/tests.yml1# Runs CI tests against a source build on the following platforms:COMMENT
LOWpsutil/_psutil_aix.c1/*COMMENT
LOWpsutil/_psutil_aix.c21// versions)COMMENT
LOWpsutil/_pswindows.py521 d.update(self._query_status())COMMENT
LOWpsutil/_pswindows.py541 # - psutil is typically about "read only" monitoring stuff;COMMENT
LOWpsutil/_psutil_linux.c1/*COMMENT
LOWpsutil/_psutil_windows.c1/*COMMENT
LOWpsutil/__init__.py761 #COMMENT
LOWpsutil/__init__.py1361 # interval was too lowCOMMENT
LOWpsutil/__init__.py2141 # Linux: "iowait" is time during which the CPU does not do anythingCOMMENT
LOWpsutil/_pslinux.py321 slab = 0COMMENT
LOWpsutil/_pslinux.py1041 system as a dict of raw tuples.COMMENT
LOWpsutil/_pslinux.py1121 if not perdisk and not is_storage_device(name):COMMENT
LOWpsutil/_pslinux.py1561 """Check for the existence of a unix PID. Linux TIDs are notCOMMENT
LOWpsutil/_pslinux.py1781 if not data:COMMENT
LOWpsutil/_pslinux.py1981 # Note: using 3 regexes is faster than reading the fileCOMMENT
LOWpsutil/_psutil_sunos.c1/*COMMENT
LOWpsutil/_psposix.py61 return numCOMMENT
LOWpsutil/arch/posix/init.c21// allow the synonym _SC_PAGE_SIZE for _SC_PAGESIZE. WhetherCOMMENT
LOWpsutil/arch/posix/init.c101 PSUTIL_ADD_INT(mod, "RLIMIT_AS", RLIMIT_AS);COMMENT
LOWpsutil/arch/posix/init.c121#ifdef RLIMIT_NPROCCOMMENT
LOWpsutil/arch/posix/init.c141#endifCOMMENT
LOWpsutil/arch/posix/net.c1/*COMMENT
LOWpsutil/arch/posix/net.c21COMMENT
LOWpsutil/arch/posix/net.c321#ifdef IFF_UPCOMMENT
LOWpsutil/arch/posix/net.c381#ifdef IFF_MASTERCOMMENT
LOWpsutil/arch/posix/net.c541 case (IFM_1000_TX):COMMENT
LOWpsutil/arch/posix/net.c561#ifdef IFM_10G_TWINAXCOMMENT
LOWpsutil/arch/posix/init.h21COMMENT
LOWpsutil/arch/osx/cpu.c1/*COMMENT
LOWpsutil/arch/osx/cpu.c21#include <mach/mach_host.h>COMMENT
LOWpsutil/arch/osx/cpu.c161 if (found) {COMMENT
LOWpsutil/arch/osx/proc_utils.c1/*COMMENT
LOWpsutil/arch/osx/net.c1/*COMMENT
LOWpsutil/arch/osx/proc.c1/*COMMENT
LOWpsutil/arch/osx/proc.c21#include <libproc.h>COMMENT
LOWpsutil/arch/osx/disk.c1/*COMMENT
LOWpsutil/arch/sunos/net.c1/*COMMENT
LOWpsutil/arch/sunos/environ.c301// returned array. In case of error value of variable will not beCOMMENT
LOWpsutil/arch/netbsd/cpu.c1/*COMMENT
LOWpsutil/arch/netbsd/mem.c1/*COMMENT
LOWpsutil/arch/all/utils.c1/*COMMENT
LOWpsutil/arch/all/init.h1/*COMMENT
LOWpsutil/arch/all/init.h21COMMENT
LOWpsutil/arch/all/init.h61COMMENT
LOWpsutil/arch/all/init.h81 #define SIZEOF_PID_T PSUTIL_SIZEOF_PID_T // set as a macro in setup.pyCOMMENT
LOWpsutil/arch/all/init.h101 #define PyLong_FromPid PyLong_FromLongCOMMENT
LOWpsutil/arch/bsd/heap.c1/*COMMENT
LOWpsutil/arch/bsd/proc_utils.c1/*COMMENT
25 more matches not shown…
Deep Nesting99 hits · 72 pts
SeverityFileLineSnippetContext
LOW_bootstrap.py28CODE
LOWtests/test_connections.py277CODE
LOWtests/test_misc.py228CODE
LOWtests/test_posix.py544CODE
LOWtests/test_linux.py212CODE
LOWtests/test_linux.py240CODE
LOWtests/test_linux.py219CODE
LOWtests/test_linux.py1049CODE
LOWtests/test_linux.py1170CODE
LOWtests/test_linux.py2423CODE
LOWtests/__init__.py224CODE
LOWtests/__init__.py595CODE
LOWtests/__init__.py1657CODE
LOWtests/__init__.py1753CODE
LOWtests/__init__.py1768CODE
LOWtests/__init__.py1875CODE
LOWtests/__init__.py1960CODE
LOWtests/test_sudo.py35CODE
LOWtests/test_process_all.py60CODE
LOWtests/test_process_all.py228CODE
LOWtests/test_process_all.py263CODE
LOWtests/test_process_all.py397CODE
LOWtests/test_process_all.py432CODE
LOWtests/test_process_all.py462CODE
LOWtests/test_process_all.py548CODE
LOWtests/test_process_all.py549CODE
LOWtests/test_process_all.py564CODE
LOWtests/test_process.py99CODE
LOWtests/test_process.py745CODE
LOWtests/test_process.py1009CODE
LOWtests/test_process.py1183CODE
LOWtests/test_process.py1408CODE
LOWtests/test_system.py385CODE
LOWtests/test_system.py473CODE
LOWtests/test_system.py818CODE
LOWtests/test_system.py952CODE
LOWtests/test_windows.py329CODE
LOWtests/test_scripts.py92CODE
LOWtests/test_type_hints.py42CODE
LOWtests/test_type_hints.py50CODE
LOWdocs/test_docs.py785CODE
LOWscripts/iotop.py64CODE
LOWscripts/procsmem.py58CODE
LOWscripts/cpu_distribution.py60CODE
LOWscripts/procinfo.py139CODE
LOWscripts/internal/find_broken_links.py86CODE
LOWscripts/internal/find_broken_links.py107CODE
LOWscripts/internal/find_broken_links.py144CODE
LOWscripts/internal/find_broken_links.py175CODE
LOWscripts/internal/purge_installation.py31CODE
LOWscripts/internal/purge_installation.py40CODE
LOWscripts/internal/docs/find_adopters.py189CODE
LOWscripts/internal/docs/find_adopters.py269CODE
LOWscripts/internal/docs/find_adopters.py380CODE
LOWscripts/internal/docs/find_adopters.py472CODE
LOWscripts/internal/print/downloads.py340CODE
LOWscripts/internal/print/sysinfo.py49CODE
LOWscripts/internal/print/dist.py71CODE
LOW.github/workflows/changelog_bot.py506CODE
LOWpsutil/__init__.py1861CODE
39 more matches not shown…
Cross-Language Confusion9 hits · 55 pts
SeverityFileLineSnippetContext
HIGH.github/workflows/triage_labels.py52null, and let the component list say which kind of not-a-bug it is. ACODE
HIGH.github/workflows/triage_labels.py285type=null, platform=["aix"], component=["new-api"].CODE
HIGH.github/workflows/triage_labels.py302type=null, component=["performance"]. Slow, not wrong.CODE
HIGH⚡.github/workflows/triage_labels.py337type=null, component=["api-change", "compatibility"]. An existing APICODE
HIGH⚡.github/workflows/triage_labels.py341type=null, component=["dropped-support", "compatibility"]. InstallsCODE
HIGH⚡.github/workflows/triage_labels.py346type=null, component=["packaging", "ci", "compatibility"].CODE
HIGH⚡.github/workflows/triage_labels.py352type=null, component=["doc"]. Prose and nothing else, so doc is whatCODE
HIGHpsutil/_pslinux.py1449 ret = bcat(path, fallback=null)CODE
HIGHpsutil/_pslinux.py1450 if ret != null:CODE
Excessive Try-Catch Wrapping21 hits · 16 pts
SeverityFileLineSnippetContext
MEDIUMtests/__init__.py366def wrapper(*args, **kwargs):CODE
LOW⚡tests/__init__.py369 except Exception:CODE
LOWtests/__init__.py211except Exception: # noqa: BLE001CODE
LOWtests/__init__.py216except Exception: # noqa: BLE001CODE
LOWtests/__init__.py1637 except Exception:CODE
LOWtests/__init__.py1651 except Exception:CODE
LOWtests/__init__.py1693 except Exception:CODE
LOWtests/__init__.py520 except Exception:STRING
LOWtests/test_process_all.py139 except Exception as exc: # noqa: BLE001CODE
LOWtests/test_process_all.py196 except Exception as exc:CODE
LOWtests/test_process_all.py238 except Exception: # noqa: BLE001CODE
LOWscripts/internal/find_broken_links.py193 except Exception: # noqa: BLE001CODE
LOWpsutil/_common.py275 except Exception as err:CODE
LOWpsutil/_common.py282 except Exception as err:CODE
LOWpsutil/_common.py591 except Exception:CODE
LOWpsutil/_common.py663 except Exception: # noqa: BLE001CODE
LOWpsutil/__init__.py2105except Exception: # noqa: BLE001CODE
LOWpsutil/__init__.py2113except Exception: # noqa: BLE001CODE
LOWpsutil/__init__.py2652 except Exception as err: # noqa: BLE001CODE
LOW⚡psutil/_psosx.py251except Exception as err: # noqa: BLE001CODE
LOWpsutil/_psbsd.py344 except Exception as err: # noqa: BLE001CODE
Unused Imports10 hits · 8 pts
SeverityFileLineSnippetContext
LOWtests/conftest.py12CODE
LOWtests/conftest.py13CODE
LOWtests/test_type_hints.py7CODE
LOWdocs/conf.py318CODE
LOWscripts/internal/print/downloads.py181CODE
LOWpsutil/_pswindows.py7CODE
LOWpsutil/__init__.py21CODE
LOWpsutil/__init__.py57CODE
LOWpsutil/__init__.py61CODE
LOWpsutil/_ntuples.py5CODE
Modern Structural Boilerplate6 hits · 5 pts
SeverityFileLineSnippetContext
LOWtests/__init__.py66__all__ = [CODE
LOWdocs/_ext/label_role.py14logger = logging.getLogger(__name__)CODE
LOWdocs/_ext/availability.py17logger = logging.getLogger(__name__)CODE
LOWpsutil/_common.py38__all__ = [CODE
LOWpsutil/__init__.py236__all__ = [CODE
LOWpsutil/_psposix.py26__all__ = ['pid_exists', 'wait_pid', 'disk_usage', 'get_terminal']CODE
Verbosity Indicators3 hits · 4 pts
SeverityFileLineSnippetContext
LOWscripts/internal/docs/find_adopters.py731 # Step 1: enumerate all popular Python repos.COMMENT
LOWscripts/internal/docs/find_adopters.py750 # Step 2: fetch data needed for the requested filters.COMMENT
LOWscripts/internal/docs/find_adopters.py764 # Step 3: apply filters.COMMENT
Structural Annotation Overuse3 hits · 4 pts
SeverityFileLineSnippetContext
LOWscripts/internal/docs/find_adopters.py731 # Step 1: enumerate all popular Python repos.COMMENT
LOWscripts/internal/docs/find_adopters.py750 # Step 2: fetch data needed for the requested filters.COMMENT
LOWscripts/internal/docs/find_adopters.py764 # Step 3: apply filters.COMMENT
AI Structural Patterns3 hits · 2 pts
SeverityFileLineSnippetContext
LOWscripts/internal/download_wheels.py61CODE
LOWpsutil/_pswindows.py970CODE
LOWpsutil/_pswindows.py980CODE
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippetContext
LOWscripts/internal/install-sysdeps.sh43# Check if running as rootCOMMENT
AI Slop Vocabulary1 hit · 2 pts
SeverityFileLineSnippetContext
LOWpsutil/_pssunos.py685 # If that's the case we just return theCOMMENT