AI Slop Code RIsk Monitor

giampaolo/psutil

Cross-platform lib for process and system monitoring in Python

24.8 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for giampaolo/psutil, a Python project with 11,288 GitHub stars. SynthScan examined 70,300 lines of code across 296 source files, recording 933 pattern matches distributed across 15 syntactic categories. The legacy adjusted pattern signal is 24.8 (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.8
Adjusted Signal
24.8
Raw Pattern Score
100%
Time Factor
2026-10-08
Last Push
11.3K
Stars
Python
Language
70.3K
Lines of Code
296
Files
933
Pattern Hits
2026-10-12
Scan Date
0.33
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 24.7/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 506 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 66.0/100 · HIGH

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

PR Review Velocity Impact 76.1/100 · CRITICAL

Which changes need focused human review? 933 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 99MEDIUM 293LOW 541

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 933 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 Separators292 hits · 811 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_contracts.py45# ===================================================================COMMENT
MEDIUMtests/test_contracts.py47# ===================================================================COMMENT
MEDIUMtests/test_contracts.py347# ===================================================================COMMENT
MEDIUMtests/test_contracts.py349# ===================================================================COMMENT
MEDIUMtests/test_heap.py62# =====================================================================COMMENT
MEDIUMtests/test_heap.py64# =====================================================================COMMENT
MEDIUMtests/test_heap.py164# =====================================================================COMMENT
MEDIUMtests/test_heap.py166# =====================================================================COMMENT
MEDIUMtests/test_unicode.py145# ===================================================================COMMENT
MEDIUMtests/test_unicode.py147# ===================================================================COMMENT
MEDIUMtests/test_unicode.py303# ===================================================================COMMENT
MEDIUMtests/test_unicode.py305# ===================================================================COMMENT
MEDIUM⚡tests/test_misc.py191# ===================================================================COMMENT
MEDIUM⚡tests/test_misc.py193# ===================================================================COMMENT
MEDIUM⚡tests/test_misc.py339# ===================================================================COMMENT
MEDIUM⚡tests/test_misc.py341# ===================================================================COMMENT
MEDIUMtests/test_misc.py50# ===================================================================COMMENT
MEDIUMtests/test_misc.py52# ===================================================================COMMENT
MEDIUM⚡tests/test_misc.py375# ===================================================================STRING
MEDIUM⚡tests/test_misc.py377# ===================================================================STRING
MEDIUMtests/test_misc.py559# ===================================================================STRING
MEDIUMtests/test_misc.py561# ===================================================================STRING
MEDIUMtests/test_misc.py793# ===================================================================STRING
MEDIUMtests/test_misc.py795# ===================================================================STRING
MEDIUM⚡tests/test_linux.py2722# =====================================================================COMMENT
MEDIUM⚡tests/test_linux.py2724# =====================================================================COMMENT
MEDIUMtests/test_linux.py79# =====================================================================COMMENT
MEDIUMtests/test_linux.py81# =====================================================================COMMENT
MEDIUMtests/test_linux.py243# =====================================================================COMMENT
MEDIUMtests/test_linux.py245# =====================================================================COMMENT
MEDIUM⚡tests/test_linux.py709# =====================================================================STRING
MEDIUM⚡tests/test_linux.py711# =====================================================================STRING
MEDIUM⚡tests/test_linux.py1890# =====================================================================STRING
MEDIUM⚡tests/test_linux.py1892# =====================================================================STRING
MEDIUMtests/test_linux.py592# =====================================================================STRING
MEDIUMtests/test_linux.py594# =====================================================================STRING
MEDIUMtests/test_linux.py1156# =====================================================================STRING
MEDIUMtests/test_linux.py1158# =====================================================================STRING
MEDIUMtests/test_linux.py1416# =====================================================================STRING
MEDIUMtests/test_linux.py1418# =====================================================================STRING
MEDIUMtests/test_linux.py1708# =====================================================================STRING
MEDIUMtests/test_linux.py1710# =====================================================================STRING
MEDIUMtests/test_linux.py2147# =====================================================================STRING
MEDIUMtests/test_linux.py2149# =====================================================================STRING
MEDIUM⚡tests/__init__.py362# ===================================================================COMMENT
MEDIUM⚡tests/__init__.py364# ===================================================================COMMENT
MEDIUMtests/__init__.py112# ===================================================================COMMENT
MEDIUMtests/__init__.py114# ===================================================================COMMENT
MEDIUMtests/__init__.py314# ===================================================================COMMENT
MEDIUMtests/__init__.py316# ===================================================================COMMENT
MEDIUMtests/__init__.py752# ===================================================================COMMENT
MEDIUMtests/__init__.py754# ===================================================================COMMENT
MEDIUMtests/__init__.py894# ===================================================================COMMENT
MEDIUMtests/__init__.py896# ===================================================================COMMENT
MEDIUMtests/__init__.py1611# ===================================================================COMMENT
MEDIUMtests/__init__.py1613# ===================================================================COMMENT
MEDIUMtests/__init__.py1842# =====================================================================COMMENT
MEDIUMtests/__init__.py1844# =====================================================================COMMENT
MEDIUMtests/__init__.py1998# ===================================================================COMMENT
MEDIUMtests/__init__.py2000# ===================================================================COMMENT
232 more matches not shown…
Empty Error Handlers66 hits · 330 pts
SeverityFileLineSnippetContext
HIGHtests/test_misc.py264except psutil.Error:CODE
HIGHtests/test_misc.py278except psutil.AccessDenied:CODE
HIGHtests/test_posix.py85except ValueError:CODE
HIGHtests/test_linux.py1269except RuntimeError:CODE
HIGHtests/test_linux.py1290except RuntimeError:CODE
HIGHtests/test_linux.py1376except OSError:CODE
HIGHtests/__init__.py929except FileNotFoundError:CODE
HIGHtests/__init__.py937except FileExistsError:CODE
HIGHtests/__init__.py599except ProcessLookupError:CODE
HIGHtests/__init__.py610except psutil.NoSuchProcess:CODE
HIGHtests/__init__.py583except psutil.NoSuchProcess:CODE
HIGHtests/__init__.py911except FileNotFoundError:CODE
HIGHtests/test_process_all.py428except FileNotFoundError:CODE
HIGHtests/test_process.py268except psutil.AccessDenied:CODE
HIGHtests/test_process.py296except psutil.AccessDenied:CODE
HIGHtests/test_process.py1179except psutil.AccessDenied: # windowsCODE
HIGHtests/test_process.py782except psutil.AccessDenied:CODE
HIGHtests/test_process.py841except psutil.AccessDenied:CODE
HIGHtests/test_process.py1170except psutil.Error:CODE
HIGHtests/test_process.py1347except psutil.NoSuchProcess:CODE
HIGHtests/test_process.py1437except psutil.AccessDenied:CODE
HIGHtests/test_process.py1787except psutil.TimeoutExpired:CODE
HIGHtests/test_process.py608except FileNotFoundError:CODE
HIGHtests/test_process.py681except AssertionError:CODE
HIGHtests/test_process.py804except psutil.AccessDenied:CODE
HIGHtests/test_bsd.py109except RuntimeError:CODE
HIGHtests/test_osx.py217except RuntimeError:CODE
HIGHtests/test_memleaks.py258except psutil.NoSuchProcess:CODE
HIGHtests/test_memleaks.py481except TypeError:CODE
HIGHtests/test_memleaks.py501except NotImplementedError:CODE
HIGHtests/test_memleaks.py283except ProcessLookupError:CODE
HIGHtests/test_scripts.py216except SystemExit:CODE
HIGHdocs/conf.py226except locale.Error:CODE
HIGHscripts/top.py262except (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__.py449except AccessDenied:CODE
HIGHpsutil/__init__.py454except ZombieProcess:CODE
HIGHpsutil/__init__.py1933except (TimeoutExpired, subprocess.TimeoutExpired):CODE
HIGHpsutil/__init__.py345except (NoSuchProcess, ZombieProcess):CODE
HIGHpsutil/__init__.py386except KeyError:CODE
HIGHpsutil/__init__.py760except NoSuchProcess:CODE
HIGHpsutil/__init__.py844except (AccessDenied, ZombieProcess):CODE
HIGHpsutil/__init__.py529except AccessDenied:CODE
HIGHpsutil/__init__.py899except AccessDenied:CODE
HIGHpsutil/__init__.py1181except (NoSuchProcess, ZombieProcess):CODE
HIGHpsutil/__init__.py1209except (NoSuchProcess, ZombieProcess):CODE
HIGHpsutil/_psosx.py301except NoSuchProcess:CODE
6 more matches not shown…
Hyper-Verbose Identifiers300 hits · 233 pts
SeverityFileLineSnippetContext
LOWsetup.py354def print_install_instructions():CODE
LOWtests/test_contracts.py164 def test_proc_ioprio_class_linux(self):CODE
LOWtests/test_contracts.py179 def test_proc_ioprio_value_windows(self):CODE
LOWtests/test_contracts.py192 def test_proc_priority_windows(self):CODE
LOWtests/test_contracts.py260 def test_sensors_temperatures(self):CODE
LOWtests/test_contracts.py450 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_connections.py566 def test_net_connection_constants(self):STRING
LOWtests/test_unicode.py250 def test_proc_net_connections(self):CODE
LOW⚡tests/test_misc.py115 def test_no_such_process__repr__(self):CODE
LOW⚡tests/test_misc.py125 def test_no_such_process__str__(self):CODE
LOW⚡tests/test_misc.py135 def test_zombie_process__repr__(self):CODE
LOW⚡tests/test_misc.py147 def test_zombie_process__str__(self):CODE
LOW⚡tests/test_misc.py157 def test_access_denied__repr__(self):CODE
LOW⚡tests/test_misc.py164 def test_access_denied__str__(self):CODE
LOW⚡tests/test_misc.py171 def test_timeout_expired__repr__(self):CODE
LOW⚡tests/test_misc.py183 def test_timeout_expired__str__(self):CODE
LOW⚡tests/test_misc.py346 def test_exceptions_survive_reimport(self):CODE
LOWtests/test_misc.py240 def test_process_as_dict_no_new_names(self):CODE
LOWtests/test_misc.py324 def test_sanity_version_check(self):CODE
LOW⚡tests/test_misc.py381 def test_memoize_when_activated(self):STRING
LOWtests/test_misc.py541 def test_broadcast_addr_single_host(self):STRING
LOWtests/test_misc.py582 def test_increase_but_no_wrap(self):STRING
LOWtests/test_misc.py632 def test_changing_keys_w_wrap(self):STRING
LOWtests/test_misc.py772 def test_cache_clear_public_apis(self):STRING
LOWtests/test_misc.py837 def test_instructions_are_silent_if_toolchain_is_ok(self):STRING
LOWtests/test_misc.py846 def test_instructions_without_compiler(self):STRING
LOWtests/test_misc.py858 def test_instructions_on_macos(self):STRING
LOWtests/test_misc.py866 def test_instructions_without_headers(self):STRING
LOWtests/test_misc.py881 def test_detection_without_compiler(self):STRING
LOWtests/test_posix.py194 def test_username_no_resolution(self):CODE
LOWtests/test_posix.py250 def test_name_long_cmdline_ad_exc(self):CODE
LOWtests/test_posix.py263 def test_name_long_cmdline_nsp_exc(self):CODE
LOWtests/test_posix.py390 def test_page_faults_minor_increase(self):CODE
LOWtests/test_posix.py533 def test_pid_exists_let_raise(self):CODE
LOWtests/test_posix.py573 def test_terminal_pty_opened_later(self):CODE
LOW⚡tests/test_linux.py2714 def test_cpu_affinity_eligible_cpus(self):CODE
LOWtests/test_linux.py667 def test_meminfo_against_sysinfo(self):CODE
LOWtests/test_linux.py683 def test_emulate_meminfo_has_no_metrics(self):CODE
LOWtests/test_linux.py691 def test_no_space_after_colon(self):CODE
LOWtests/test_linux.py2530 def test_status_file_cpus_allowed_list(self):CODE
LOWtests/test_linux.py2536 def test_net_connections_enametoolong(self):CODE
LOWtests/test_linux.py2549 def test_create_time_monotonic(self):CODE
LOWtests/test_linux.py2565 def test_memory_extras_locked(self):CODE
LOWtests/test_linux.py2583 def test_memory_footprint_shared_self_mappings(self):CODE
LOWtests/test_linux.py2602 def test_parse_smaps_rollup_mocked(self):CODE
LOWtests/test_linux.py2626 def test_rlimit_infinity_normalized(self):CODE
LOW⚡tests/test_linux.py719 def test_against_sysdev_cpu_online(self):STRING
LOW⚡tests/test_linux.py1881 def test_pid_exists_no_proc_status(self):STRING
LOWtests/test_linux.py422 def test_avail_old_comes_from_kernel(self):STRING
LOWtests/test_linux.py450 def test_avail_old_missing_fields(self):STRING
LOWtests/test_linux.py475 def test_avail_old_missing_zoneinfo(self):STRING
LOWtests/test_linux.py504 def test_virtual_memory_mocked(self):STRING
LOWtests/test_linux.py570 def test_virtual_memory_no_space_after_colon(self):STRING
LOWtests/test_linux.py730 def test_against_sysdev_cpu_num(self):STRING
LOWtests/test_linux.py836 def test_emulate_use_second_file(self):STRING
LOWtests/test_linux.py972 def test_emulate_shared_policy(self):STRING
LOWtests/test_linux.py1016 def test_emulate_no_scaling_cur_freq_file(self):STRING
LOWtests/test_linux.py1038 def test_emulate_offline_cpus(self):STRING
240 more matches not shown…
Cross-File Repetition24 hits · 120 pts
SeverityFileLineSnippetContext
HIGHpsutil/_pswindows.py0swap system memory as a (total, used, free, sin, sout) tuple.STRING
HIGHpsutil/_psosx.py0swap system memory as a (total, used, free, sin, sout) tuple.STRING
HIGHpsutil/_psaix.py0swap system memory as a (total, used, free, 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
Deep Nesting111 hits · 76 pts
SeverityFileLineSnippetContext
LOW_bootstrap.py28CODE
LOWtests/test_connections.py293CODE
LOWtests/test_misc.py197CODE
LOWtests/test_posix.py498CODE
LOWtests/test_linux.py877CODE
LOWtests/test_linux.py909CODE
LOWtests/test_linux.py972CODE
LOWtests/test_linux.py1038CODE
LOWtests/test_linux.py1162CODE
LOWtests/test_linux.py1283CODE
LOWtests/test_linux.py2060CODE
LOWtests/test_linux.py2087CODE
LOWtests/test_linux.py2213CODE
LOWtests/test_linux.py2653CODE
LOWtests/test_linux.py878CODE
LOWtests/test_linux.py910CODE
LOWtests/test_linux.py975CODE
LOWtests/test_linux.py1057CODE
LOWtests/test_linux.py2061CODE
LOWtests/test_linux.py2088CODE
LOWtests/test_linux.py2214CODE
LOWtests/__init__.py228CODE
LOWtests/__init__.py566CODE
LOWtests/__init__.py1656CODE
LOWtests/__init__.py1752CODE
LOWtests/__init__.py1767CODE
LOWtests/__init__.py1874CODE
LOWtests/__init__.py1959CODE
LOWtests/test_sudo.py35CODE
LOWtests/test_process_all.py59CODE
LOWtests/test_process_all.py227CODE
LOWtests/test_process_all.py262CODE
LOWtests/test_process_all.py407CODE
LOWtests/test_process_all.py442CODE
LOWtests/test_process_all.py472CODE
LOWtests/test_process_all.py563CODE
LOWtests/test_process_all.py564CODE
LOWtests/test_process_all.py579CODE
LOWtests/test_process.py578CODE
LOWtests/test_process.py778CODE
LOWtests/test_process.py962CODE
LOWtests/test_process.py1299CODE
LOWtests/test_process.py1406CODE
LOWtests/test_system.py389CODE
LOWtests/test_system.py459CODE
LOWtests/test_system.py822CODE
LOWtests/test_system.py966CODE
LOWtests/test_windows.py350CODE
LOWtests/test_scripts.py92CODE
LOWtests/test_type_hints.py42CODE
LOWtests/test_type_hints.py50CODE
LOWdocs/test_docs.py763CODE
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
51 more matches not shown…
Over-Commented Block84 hits · 76 pts
SeverityFileLineSnippetContext
LOWtests/__init__.py1041 return pathCOMMENT
LOWtests/__init__.py1241 proc.kill()COMMENT
LOWtests/test_system.py561 sum(times)COMMENT
LOWtests/test_system.py601 assert isinstance(cp_time, float)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__.py661 # context twice:COMMENT
LOWpsutil/__init__.py1281 # This is the utilization split evenly between all CPUs.COMMENT
LOWpsutil/__init__.py2081 # (waits for IO to complete). On Linux IO wait is *not* accountedCOMMENT
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 else:COMMENT
LOWpsutil/_pslinux.py1881 if monotonic:COMMENT
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.c361#endifCOMMENT
LOWpsutil/arch/posix/net.c421#endifCOMMENT
LOWpsutil/arch/posix/net.c541#endifCOMMENT
LOWpsutil/arch/posix/net.c561 case (IFM_10G_TWINAX):COMMENT
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
LOWpsutil/arch/bsd/proc.c1/*COMMENT
24 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.py1444 ret = bcat(path, fallback=null)CODE
HIGHpsutil/_pslinux.py1445 if ret != null:CODE
Excessive Try-Catch Wrapping21 hits · 16 pts
SeverityFileLineSnippetContext
MEDIUMtests/__init__.py369def wrapper(*args, **kwargs):CODE
LOW⚡tests/__init__.py372 except Exception:CODE
LOWtests/__init__.py215except Exception: # noqa: BLE001CODE
LOWtests/__init__.py220except Exception: # noqa: BLE001CODE
LOWtests/__init__.py1636 except Exception:CODE
LOWtests/__init__.py1650 except Exception:CODE
LOWtests/__init__.py1692 except Exception:CODE
LOWtests/__init__.py527 except Exception:STRING
LOWtests/test_process_all.py138 except Exception as exc: # noqa: BLE001CODE
LOWtests/test_process_all.py195 except Exception as exc:CODE
LOWtests/test_process_all.py237 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__.py2044except Exception: # noqa: BLE001CODE
LOWpsutil/__init__.py2052except Exception: # noqa: BLE001CODE
LOWpsutil/__init__.py2590 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__.py56CODE
LOWpsutil/__init__.py60CODE
LOWpsutil/_ntuples.py5CODE
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
Modern Structural Boilerplate5 hits · 4 pts
SeverityFileLineSnippetContext
LOWtests/__init__.py66__all__ = [CODE
LOWdocs/_ext/availability.py17logger = logging.getLogger(__name__)CODE
LOWpsutil/_common.py38__all__ = [CODE
LOWpsutil/__init__.py235__all__ = [CODE
LOWpsutil/_psposix.py26__all__ = ['pid_exists', 'wait_pid', 'disk_usage', 'get_terminal']CODE
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