AI Slop Code RIsk Monitor

XuehaiPan/nvitop

An interactive NVIDIA-GPU process viewer and beyond, the one-stop solution for GPU process management.

31.4 High pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for XuehaiPan/nvitop, a Python project with 7,206 GitHub stars. SynthScan examined 31,061 lines of code across 110 source files, recording 539 pattern matches distributed across 14 syntactic categories. The legacy adjusted pattern signal is 31.4 (High 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.

31.4
Adjusted Signal
31.4
Raw Pattern Score
100%
Time Factor
2026-09-29
Last Push
7.2K
Stars
Python
Language
31.1K
Lines of Code
110
Files
539
Pattern Hits
2026-10-12
Scan Date
0.61
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 46.6/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 23.7/100 · LOW

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

Agent Over-Engineering Ratio 52.6/100 · HIGH

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

PR Review Velocity Impact 82.4/100 · CRITICAL

Which changes need focused human review? 539 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 67MEDIUM 103LOW 369

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 539 distinct pattern matches across 14 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.

Empty Error Handlers51 hits · 255 pts
SeverityFileLineSnippetContext
HIGHnvitop/version.py61except (OSError, RuntimeError, subprocess.SubprocessError):CODE
HIGHnvitop/cli.py257except ValueError:CODE
HIGHnvitop/cli.py271except ValueError:CODE
HIGHnvitop/tui/tui.py233except BreakLoop:CODE
HIGHnvitop/tui/library/displayable.py271except ValueError:CODE
HIGHnvitop/tui/library/displayable.py284except AttributeError:CODE
HIGHnvitop/tui/library/libcurses.py165except curses.error:CODE
HIGHnvitop/tui/library/libcurses.py171except AttributeError:CODE
HIGHnvitop/tui/library/libcurses.py217except curses.error:CODE
HIGHnvitop/tui/library/libcurses.py230except curses.error:CODE
HIGHnvitop/tui/library/libcurses.py243except curses.error:CODE
HIGHnvitop/tui/library/libcurses.py266except curses.error:CODE
HIGHnvitop/tui/library/libcurses.py122except curses.error:CODE
HIGHnvitop/tui/library/selection.py174except SystemError:CODE
HIGHnvitop/tui/library/selection.py205except (AttributeError, TypeError):CODE
HIGHnvitop/tui/library/selection.py216except (AttributeError, TypeError):CODE
HIGHnvitop/tui/library/selection.py152except host.PsutilError: # noqa: PERF203CODE
HIGHnvitop/tui/library/keybinding.py344except KeyError:CODE
HIGHnvitop/tui/library/keybinding.py348except IndexError:CODE
HIGHnvitop/tui/screens/metrics.py137except RuntimeError:CODE
HIGHnvitop/tui/screens/metrics.py262except RuntimeError:CODE
HIGHnvitop/tui/screens/metrics.py363except RuntimeError:CODE
HIGHnvitop/tui/screens/treeview.py289except RuntimeError:CODE
HIGHnvitop/tui/screens/treeview.py188except AttributeError:CODE
HIGHnvitop/tui/screens/environ.py111except AttributeError:CODE
HIGHnvitop/api/termcolor.py110except ImportError:CODE
HIGHnvitop/api/device.py3254except subprocess.SubprocessError:CODE
HIGHnvitop/api/device.py2356except KeyError: # noqa: PERF203CODE
HIGHnvitop/api/device.py2654except libnvml.NVMLError_GpuIsLost:CODE
HIGHnvitop/api/host.py127except ImportError:CODE
HIGHnvitop/api/host.py120except (NoSuchProcess, ZombieProcess): # noqa: PERF203CODE
HIGHnvitop/api/collector.py482except RuntimeError:CODE
HIGHnvitop/api/collector.py274except KeyboardInterrupt:CODE
HIGHnvitop/api/libcudart.py469except OSError:CODE
HIGHnvitop/api/libcudart.py517except OSError:CODE
HIGHnvitop/api/utils.py788except AttributeError:CODE
HIGHnvitop/api/utils.py768except AttributeError:CODE
HIGHnvitop/api/process.py206except KeyError:CODE
HIGHnvitop/api/process.py216except host.PsutilError:CODE
HIGHnvitop/api/process.py480except KeyError:CODE
HIGHnvitop/api/process.py126except (KeyError, AttributeError):CODE
HIGHnvitop/api/process.py131except KeyError:CODE
HIGHnvitop/api/libcuda.py430except OSError:CODE
HIGHnvitop/api/libnvml.py242except (ValueError, TypeError):CODE
HIGHnvitop/api/libnvml.py333except NVMLError:CODE
HIGHnvitop/api/libnvml.py470except IndexError:CODE
HIGHnvitop/api/libnvml.py1229except NVMLError:CODE
HIGHnvitop-exporter/nvitop_exporter/version.py61except (OSError, RuntimeError, subprocess.SubprocessError):CODE
HIGHnvitop-exporter/nvitop_exporter/exporter.py683except KeyError: # noqa: PERF203CODE
HIGHexamples/monitor-web/monitor_web.py327except (BrokenPipeError, ConnectionResetError):CODE
HIGHexamples/ml-framework-callbacks/tensorboard.py35except ImportError:CODE
Self-Referential Comments66 hits · 198 pts
SeverityFileLineSnippetContext
MEDIUMinstall-nvidia-driver.sh17# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
MEDIUMnvitop/version.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
MEDIUMnvitop/__init__.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
MEDIUMnvitop/cli.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
MEDIUMnvitop/select.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
MEDIUMnvitop/__main__.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
MEDIUMnvitop/tui/__init__.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
MEDIUMnvitop/tui/tui.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
MEDIUMnvitop/tui/library/messagebox.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
MEDIUMnvitop/tui/library/messagebox.py2# This file is originally part of ranger, the console file manager. https://github.com/ranger/rangerCOMMENT
MEDIUMnvitop/tui/library/displayable.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
MEDIUMnvitop/tui/library/displayable.py2# This file is originally part of ranger, the console file manager. https://github.com/ranger/rangerCOMMENT
MEDIUMnvitop/tui/library/device.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
MEDIUMnvitop/tui/library/host.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
MEDIUMnvitop/tui/library/libcurses.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
MEDIUMnvitop/tui/library/__init__.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
MEDIUMnvitop/tui/library/widestring.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
MEDIUMnvitop/tui/library/widestring.py2# This file is originally part of ranger, the console file manager. https://github.com/ranger/rangerCOMMENT
MEDIUMnvitop/tui/library/utils.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
MEDIUMnvitop/tui/library/mouse.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
MEDIUMnvitop/tui/library/mouse.py2# This file is originally part of ranger, the console file manager. https://github.com/ranger/rangerCOMMENT
MEDIUMnvitop/tui/library/process.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
MEDIUMnvitop/tui/library/selection.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
MEDIUMnvitop/tui/library/keybinding.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
MEDIUMnvitop/tui/library/keybinding.py2# This file is originally part of ranger, the console file manager. https://github.com/ranger/rangerCOMMENT
MEDIUMnvitop/tui/library/history.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
MEDIUMnvitop/tui/screens/metrics.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
MEDIUMnvitop/tui/screens/treeview.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
MEDIUMnvitop/tui/screens/__init__.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
MEDIUMnvitop/tui/screens/help.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
MEDIUMnvitop/tui/screens/base.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
MEDIUMnvitop/tui/screens/environ.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
MEDIUMnvitop/tui/screens/main/__init__.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
MEDIUMnvitop/tui/screens/main/panels/device.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
MEDIUMnvitop/tui/screens/main/panels/host.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
MEDIUMnvitop/tui/screens/main/panels/__init__.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
MEDIUMnvitop/tui/screens/main/panels/process.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
MEDIUMnvitop/tui/screens/main/panels/base.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
MEDIUMnvitop/api/termcolor.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
MEDIUMnvitop/api/device.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
MEDIUMnvitop/api/host.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
MEDIUMnvitop/api/collector.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
MEDIUMnvitop/api/libcudart.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
MEDIUMnvitop/api/__init__.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
MEDIUMnvitop/api/caching.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
MEDIUMnvitop/api/utils.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
MEDIUMnvitop/api/process.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
MEDIUMnvitop/api/libcuda.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
MEDIUMnvitop/api/libnvml.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
MEDIUMnvitop-exporter/nvitop_exporter/version.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
MEDIUMnvitop-exporter/nvitop_exporter/exporter.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
MEDIUMnvitop-exporter/nvitop_exporter/__init__.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
MEDIUMnvitop-exporter/nvitop_exporter/cli.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
MEDIUMnvitop-exporter/nvitop_exporter/utils.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
MEDIUMnvitop-exporter/nvitop_exporter/__main__.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
MEDIUMexamples/collector-tensorboard/collector_tensorboard.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
MEDIUMexamples/monitor-web/monitor_web.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
MEDIUMexamples/take-snapshots/take_snapshots_demo.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
MEDIUMexamples/select-devices-api/select_devices_api.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
MEDIUMexamples/collector-csv/collector_csv.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
6 more matches not shown…
Unused Imports190 hits · 160 pts
SeverityFileLineSnippetContext
LOWsetup.py14CODE
LOWnvitop/__init__.py22CODE
LOWnvitop/__init__.py35CODE
LOWnvitop/__init__.py36CODE
LOWnvitop/select.py57CODE
LOWnvitop/tui/__init__.py6CODE
LOWnvitop/tui/__init__.py6CODE
LOWnvitop/tui/__init__.py6CODE
LOWnvitop/tui/__init__.py6CODE
LOWnvitop/tui/__init__.py6CODE
LOWnvitop/tui/__init__.py6CODE
LOWnvitop/tui/__init__.py6CODE
LOWnvitop/tui/__init__.py15CODE
LOWnvitop/tui/tui.py6CODE
LOWnvitop/tui/library/messagebox.py7CODE
LOWnvitop/tui/library/displayable.py7CODE
LOWnvitop/tui/library/device.py6CODE
LOWnvitop/tui/library/host.py6CODE
LOWnvitop/tui/library/host.py12CODE
LOWnvitop/tui/library/host.py12CODE
LOWnvitop/tui/library/libcurses.py6CODE
LOWnvitop/tui/library/__init__.py6CODE
LOWnvitop/tui/library/__init__.py7CODE
LOWnvitop/tui/library/__init__.py7CODE
LOWnvitop/tui/library/__init__.py8CODE
LOWnvitop/tui/library/__init__.py8CODE
LOWnvitop/tui/library/__init__.py9CODE
LOWnvitop/tui/library/__init__.py9CODE
LOWnvitop/tui/library/__init__.py10CODE
LOWnvitop/tui/library/__init__.py10CODE
LOWnvitop/tui/library/__init__.py10CODE
LOWnvitop/tui/library/__init__.py10CODE
LOWnvitop/tui/library/__init__.py10CODE
LOWnvitop/tui/library/__init__.py10CODE
LOWnvitop/tui/library/__init__.py10CODE
LOWnvitop/tui/library/__init__.py10CODE
LOWnvitop/tui/library/__init__.py20CODE
LOWnvitop/tui/library/__init__.py20CODE
LOWnvitop/tui/library/__init__.py21CODE
LOWnvitop/tui/library/__init__.py21CODE
LOWnvitop/tui/library/__init__.py21CODE
LOWnvitop/tui/library/__init__.py21CODE
LOWnvitop/tui/library/__init__.py27CODE
LOWnvitop/tui/library/__init__.py28CODE
LOWnvitop/tui/library/__init__.py28CODE
LOWnvitop/tui/library/__init__.py29CODE
LOWnvitop/tui/library/__init__.py30CODE
LOWnvitop/tui/library/__init__.py30CODE
LOWnvitop/tui/library/__init__.py30CODE
LOWnvitop/tui/library/__init__.py30CODE
LOWnvitop/tui/library/__init__.py30CODE
LOWnvitop/tui/library/__init__.py30CODE
LOWnvitop/tui/library/__init__.py30CODE
LOWnvitop/tui/library/__init__.py30CODE
LOWnvitop/tui/library/__init__.py30CODE
LOWnvitop/tui/library/__init__.py30CODE
LOWnvitop/tui/library/__init__.py30CODE
LOWnvitop/tui/library/__init__.py30CODE
LOWnvitop/tui/library/__init__.py30CODE
LOWnvitop/tui/library/__init__.py30CODE
130 more matches not shown…
Decorative Section Separators36 hits · 108 pts
SeverityFileLineSnippetContext
MEDIUMinstall-nvidia-driver.sh2# ==============================================================================COMMENT
MEDIUMinstall-nvidia-driver.sh16# ==============================================================================COMMENT
MEDIUMinstall-nvidia-driver.sh32# ==============================================================================COMMENT
MEDIUMnvitop/version.py16# ==============================================================================COMMENT
MEDIUMnvitop/__init__.py16# ==============================================================================COMMENT
MEDIUMnvitop/select.py16# ==============================================================================COMMENT
MEDIUMnvitop/api/termcolor.py16# ==============================================================================COMMENT
MEDIUMnvitop/api/termcolor.py19# ==============================================================================COMMENT
MEDIUMnvitop/api/termcolor.py41# ==============================================================================COMMENT
MEDIUMnvitop/api/device.py16# ==============================================================================COMMENT
MEDIUMnvitop/api/host.py16# ==============================================================================COMMENT
MEDIUMnvitop/api/collector.py16# ==============================================================================COMMENT
MEDIUMnvitop/api/libcudart.py16# ==============================================================================COMMENT
MEDIUMnvitop/api/__init__.py16# ==============================================================================COMMENT
MEDIUMnvitop/api/caching.py16# ==============================================================================COMMENT
MEDIUMnvitop/api/utils.py16# ==============================================================================COMMENT
MEDIUMnvitop/api/process.py16# ==============================================================================COMMENT
MEDIUMnvitop/api/libcuda.py16# ==============================================================================COMMENT
MEDIUMnvitop/api/libnvml.py16# ==============================================================================COMMENT
MEDIUMnvitop-exporter/nvitop_exporter/version.py16# ==============================================================================COMMENT
MEDIUMnvitop-exporter/nvitop_exporter/exporter.py16# ==============================================================================COMMENT
MEDIUMnvitop-exporter/nvitop_exporter/__init__.py16# ==============================================================================COMMENT
MEDIUMnvitop-exporter/nvitop_exporter/cli.py16# ==============================================================================COMMENT
MEDIUMnvitop-exporter/nvitop_exporter/utils.py16# ==============================================================================COMMENT
MEDIUMnvitop-exporter/nvitop_exporter/__main__.py16# ==============================================================================COMMENT
MEDIUMexamples/collector-tensorboard/collector_tensorboard.py16# ==============================================================================COMMENT
MEDIUMexamples/monitor-web/monitor_web.py16# ==============================================================================COMMENT
MEDIUMexamples/take-snapshots/take_snapshots_demo.py16# ==============================================================================COMMENT
MEDIUMexamples/select-devices-api/select_devices_api.py16# ==============================================================================COMMENT
MEDIUMexamples/collector-csv/collector_csv.py16# ==============================================================================COMMENT
MEDIUMexamples/ml-framework-callbacks/keras.py16# ==============================================================================COMMENT
MEDIUMexamples/ml-framework-callbacks/lightning.py16# ==============================================================================COMMENT
MEDIUMexamples/ml-framework-callbacks/tensorboard.py16# ==============================================================================COMMENT
MEDIUMexamples/monitor-colored/monitor_colored.py16# ==============================================================================COMMENT
MEDIUMexamples/monitor-minimal/monitor_minimal.py16# ==============================================================================COMMENT
MEDIUMexamples/collector-background/collector_background.py16# ==============================================================================COMMENT
Docstring Block Structure15 hits · 75 pts
SeverityFileLineSnippetContext
HIGHnvitop/select.py148Select a subset of devices satisfying the specified criteria. Note: The *min count* constraint may not be sSTRING
HIGHnvitop/api/device.py438Return a list of devices of the given indices. Args: indices (Iterable[Union[int, Tuple[int, int]]]STRING
HIGHnvitop/api/device.py501Return a list of CUDA devices of the given CUDA indices. The CUDA ordinal will be enumerate from the ``CUDA_VISSTRING
HIGHnvitop/api/device.py2574Return a list of MIG devices of the given indices. Args: indices (Iterable[Tuple[int, int]]): STRING
HIGHnvitop/api/device.py2851Return a list of CUDA devices of the given CUDA indices. The CUDA ordinal will be enumerate from the ``CUDA_VISSTRING
HIGHnvitop/api/device.py3018Parse the given ``CUDA_VISIBLE_DEVICES`` value into a list of NVML device indices. This function is aliased by :metSTRING
HIGHnvitop/api/device.py3076Parse the given ``CUDA_VISIBLE_DEVICES`` value and convert it into a comma-separated string of UUIDs. This functionSTRING
HIGHnvitop/api/device.py3346Parse the given ``CUDA_VISIBLE_DEVICES`` environment variable in a separate process and return a list of device UUIDs. STRING
HIGHnvitop/api/collector.py65Retrieve status of demanded devices and GPU processes. Args: devices (Optional[Union[Device, Iterable[DevicSTRING
HIGHnvitop/api/collector.py206Start a background daemon thread that collect and call the callback function periodically. See also :func:`ResourceSTRING
HIGHnvitop/api/collector.py621Start a background daemon thread that collect and call the callback function periodically. See also :func:`collSTRING
HIGHnvitop/api/libcudart.py673Get a handle to a compute device. Args: pciBusId (str): String in one of the following forms: `STRING
HIGHnvitop/api/libcuda.py586Get a handle to a compute device. Args: pciBusId (str): String in one of the following forms: `STRING
HIGHexamples/ml-framework-callbacks/keras.py79Automatically log GPU stats during training stage. :class:`GpuStatsLogger` is a callback and in order to use it you STRING
HIGHexamples/ml-framework-callbacks/lightning.py85Automatically log GPU stats during training stage. :class:`GpuStatsLogger` is a callback and in order to use it you STRING
Modern Structural Boilerplate53 hits · 53 pts
SeverityFileLineSnippetContext
LOWnvitop/__init__.py39__all__ = [*api.__all__, 'select_devices']CODE
LOWnvitop/select.py75__all__ = ['select_devices']CODE
LOWnvitop/tui/__init__.py18__all__ = [CODE
LOWnvitop/tui/tui.py38__all__ = ['TUI', 'MonitorMode']CODE
LOWnvitop/tui/library/messagebox.py31__all__ = ['SIGNAL_HINT_BLANK', 'SIGNAL_HINT_KEY_SPANS', 'SIGNAL_HINT_TEXT', 'MessageBox']CODE
LOWnvitop/tui/library/displayable.py20__all__ = ['Displayable', 'DisplayableContainer']CODE
LOWnvitop/tui/library/device.py17__all__ = ['Device', 'MigDevice']CODE
LOWnvitop/tui/library/host.py15__all__ = [CODE
LOWnvitop/tui/library/libcurses.py24__all__ = ['CursesShortcuts', 'libcurses', 'setlocale_utf8']CODE
LOWnvitop/tui/library/libcurses.py312 def update_lines_cols() -> None:CODE
LOWnvitop/tui/library/libcurses.py324 def set_base_attr(attr: str | int = 0) -> None:CODE
LOWnvitop/tui/library/__init__.py54__all__ = [CODE
LOWnvitop/tui/library/widestring.py17__all__ = ['WideString', 'wcslen']CODE
LOWnvitop/tui/library/utils.py30__all__ = [CODE
LOWnvitop/tui/library/mouse.py17__all__ = ['MouseEvent']CODE
LOWnvitop/tui/library/process.py21__all__ = ['GpuProcess', 'HostProcess']CODE
LOWnvitop/tui/library/selection.py26__all__ = ['Selection']CODE
LOWnvitop/tui/library/keybinding.py22__all__ = [CODE
LOWnvitop/tui/library/history.py27__all__ = ['BufferedHistoryGraph', 'HistoryGraph']CODE
LOWnvitop/tui/screens/metrics.py41__all__ = ['ProcessMetricsScreen']CODE
LOWnvitop/tui/screens/metrics.py288 def set_snapshot_interval(cls, interval: float) -> None:CODE
LOWnvitop/tui/screens/treeview.py44__all__ = ['TreeViewScreen']CODE
LOWnvitop/tui/screens/treeview.py163 def set_prefix(self, prefix: str = '') -> None:CODE
LOWnvitop/tui/screens/treeview.py316 def set_snapshot_interval(cls, interval: float) -> None:CODE
LOWnvitop/tui/screens/__init__.py14__all__ = [CODE
LOWnvitop/tui/screens/help.py21__all__ = ['HelpScreen']CODE
LOWnvitop/tui/screens/base.py17__all__ = ['BaseScreen', 'BaseSelectableScreen']CODE
LOWnvitop/tui/screens/environ.py23__all__ = ['EnvironScreen']CODE
LOWnvitop/tui/screens/main/__init__.py32__all__ = ['BreakLoop', 'MainScreen']CODE
LOWnvitop/tui/screens/main/panels/device.py33__all__ = ['DevicePanel']CODE
LOWnvitop/tui/screens/main/panels/device.py171 def set_snapshot_interval(cls, interval: float) -> None:CODE
LOWnvitop/tui/screens/main/panels/host.py35__all__ = ['HostPanel']CODE
LOWnvitop/tui/screens/main/panels/host.py191 def set_snapshot_interval(cls, interval: float) -> None:CODE
LOWnvitop/tui/screens/main/panels/__init__.py12__all__ = [CODE
LOWnvitop/tui/screens/main/panels/process.py49__all__ = ['OrderName', 'ProcessPanel']CODE
LOWnvitop/tui/screens/main/panels/process.py348 def set_snapshot_interval(cls, interval: float) -> None:CODE
LOWnvitop/tui/screens/main/panels/base.py18__all__ = ['BasePanel', 'BaseSelectablePanel']CODE
LOWnvitop/api/termcolor.py104__all__ = ['colored', 'cprint']CODE
LOWnvitop/api/device.py138__all__ = [CODE
LOWnvitop/api/host.py48__all__ = [CODE
LOWnvitop/api/collector.py41__all__ = ['ResourceMetricCollector', 'collect_in_background', 'take_snapshots']CODE
LOWnvitop/api/__init__.py68__all__ = [ # noqa: RUF022CODE
LOWnvitop/api/caching.py42__all__ = ['ttl_cache']CODE
LOWnvitop/api/utils.py41__all__ = [ # noqa: RUF022CODE
LOWnvitop/api/utils.py68def set_color(value: bool) -> None:CODE
LOWnvitop/api/process.py52__all__ = ['GpuProcess', 'HostProcess', 'command_join']CODE
LOWnvitop/api/process.py635 def set_gpu_memory(self, value: int | NaType) -> None:CODE
LOWnvitop/api/libnvml.py53__all__ = [ # will be updated in belowCODE
LOWnvitop-exporter/nvitop_exporter/exporter.py486 def update_host(self) -> None:CODE
LOWnvitop-exporter/nvitop_exporter/exporter.py542 def update_device(self, device: Device) -> None: # pylint: disable=too-many-localsCODE
LOWnvitop-exporter/nvitop_exporter/__init__.py24__all__ = ['PrometheusExporter', 'get_ip_address']CODE
LOWnvitop-exporter/nvitop_exporter/utils.py22__all__ = ['get_ip_address']CODE
LOWexamples/monitor-web/monitor_web.py68__all__ = ['main']CODE
Hyper-Verbose Identifiers45 hits · 40 pts
SeverityFileLineSnippetContext
LOWnvitop/tui/library/messagebox.py336 def register_signal_keybindings(cls, screen: BaseSelectableScreen, keymap_name: str) -> None:CODE
LOWnvitop/tui/library/messagebox.py356 def confirm_sending_signal_to_processes(CODE
LOWnvitop/tui/library/device.py143 def memory_utilization_string(self) -> str: # in percentageCODE
LOWnvitop/tui/library/device.py159 def bandwidth_loading_intensity(self) -> LoadingIntensity:CODE
LOW⚡nvitop/tui/library/process.py90 def gpu_memory_percent_string(self) -> str: # in percentageCODE
LOW⚡nvitop/tui/library/process.py93 def gpu_sm_utilization_string(self) -> str: # in percentageCODE
LOW⚡nvitop/tui/library/process.py96 def gpu_memory_utilization_string(self) -> str: # in percentageCODE
LOW⚡nvitop/tui/library/process.py99 def gpu_encoder_utilization_string(self) -> str: # in percentageCODE
LOW⚡nvitop/tui/library/process.py102 def gpu_decoder_utilization_string(self) -> str: # in percentageCODE
LOW⚡nvitop/api/device.py3192def _get_global_physical_device() -> PhysicalDevice:CODE
LOW⚡nvitop/api/device.py3198def _parse_cuda_visible_devices(CODE
LOW⚡nvitop/api/device.py3205def _parse_cuda_visible_devices(CODE
LOW⚡nvitop/api/device.py3212def _parse_cuda_visible_devices( # pylint: disable=too-many-branches,too-many-statementsCODE
LOWnvitop/api/device.py475 def from_cuda_visible_devices() -> list[CudaDevice]:CODE
LOWnvitop/api/device.py547 def parse_cuda_visible_devices(CODE
LOWnvitop/api/device.py574 def normalize_cuda_visible_devices(cuda_visible_devices: str | None = _VALUE_OMITTED) -> str:CODE
LOWnvitop/api/device.py1650 def query_nvlink_throughput_counters() -> tuple[tuple[int | NaType, int]]:CODE
LOWnvitop/api/device.py1784 def nvlink_mean_tx_throughput(self, interval: float | None = None) -> int | NaType: # in KiB/sCODE
LOWnvitop/api/device.py1804 def nvlink_total_tx_throughput(self, interval: float | None = None) -> int | NaType: # in KiB/sCODE
LOWnvitop/api/device.py1844 def nvlink_mean_rx_throughput(self, interval: float | None = None) -> int | NaType: # in KiB/sCODE
LOWnvitop/api/device.py1864 def nvlink_total_rx_throughput(self, interval: float | None = None) -> int | NaType: # in KiB/sCODE
LOWnvitop/api/device.py1884 def nvlink_tx_throughput_human(CODE
LOWnvitop/api/device.py1910 def nvlink_mean_tx_throughput_human(CODE
LOWnvitop/api/device.py1936 def nvlink_total_tx_throughput_human(CODE
LOWnvitop/api/device.py1962 def nvlink_rx_throughput_human(CODE
LOWnvitop/api/device.py1988 def nvlink_mean_rx_throughput_human(CODE
LOWnvitop/api/device.py2014 def nvlink_total_rx_throughput_human(CODE
LOWnvitop/api/device.py2161 def total_volatile_uncorrected_ecc_errors(self) -> int | NaType:CODE
LOWnvitop/api/device.py3015def parse_cuda_visible_devices(CODE
LOWnvitop/api/device.py3075def normalize_cuda_visible_devices(cuda_visible_devices: str | None = _VALUE_OMITTED) -> str:CODE
LOWnvitop/api/device.py3149def _get_all_physical_device_attrs() -> OrderedDict[str, _PhysicalDeviceAttrs]:CODE
LOWnvitop/api/device.py3174def _does_any_device_support_mig_mode(uuids: Iterable[str] | None = None) -> bool:CODE
LOWnvitop/api/device.py3342def _parse_cuda_visible_devices_to_uuids(STRING
LOWnvitop/api/device.py3392def _cuda_visible_devices_parser(STRING
LOWnvitop/api/libcudart.py339def _extract_cuda_errors_as_classes() -> None:CODE
LOWnvitop/api/libcuda.py291def _extract_cuda_errors_as_classes() -> None:CODE
LOWnvitop/api/libnvml.py741 def __determine_get_running_processes_version_suffix() -> str:CODE
LOWnvitop/api/libnvml.py778 def __nvml_device_get_running_processes(CODE
LOWnvitop/api/libnvml.py943 def __determine_get_memory_info_version_suffix() -> str:CODE
LOWnvitop/api/libnvml.py1032 def __determine_get_temperature_version_suffix() -> str:CODE
LOWnvitop/api/libnvml.py1106 def __determine_get_driver_model_version_suffix() -> str:CODE
LOWexamples/monitor-web/monitor_web.py294class MonitorRequestHandler(http.server.BaseHTTPRequestHandler):CODE
LOWexamples/monitor-web/monitor_web.py497def _average_history_time_buckets(samples: list[Sample], *, bucket_seconds: float) -> list[Sample]:CODE
LOWexamples/ml-framework-callbacks/keras.py34def get_devices_by_logical_ids(device_ids: list[int], unique: bool = True) -> list[CudaDevice]:CODE
LOWexamples/ml-framework-callbacks/lightning.py36def get_devices_by_logical_ids(device_ids: list[int], unique: bool = True) -> list[CudaDevice]:CODE
Over-Commented Block38 hits · 37 pts
SeverityFileLineSnippetContext
LOWpyproject.toml161 # too long docstring due to long example blocksCOMMENT
LOWinstall-nvidia-driver.sh1#!/bin/bashCOMMENT
LOWinstall-nvidia-driver.sh21# Licensed under the Apache License, Version 2.0 (the "License");COMMENT
LOWnvitop/version.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
LOWnvitop/__init__.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
LOWnvitop/select.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
LOWnvitop/api/termcolor.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
LOWnvitop/api/termcolor.py21#COMMENT
LOWnvitop/api/device.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
LOWnvitop/api/device.py2441 ... device.memory_percent() # return cached valueCOMMENT
LOWnvitop/api/host.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
LOWnvitop/api/collector.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
LOWnvitop/api/libcudart.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
LOWnvitop/api/__init__.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
LOWnvitop/api/caching.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
LOWnvitop/api/utils.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
LOWnvitop/api/process.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
LOWnvitop/api/libcuda.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
LOWnvitop/api/libnvml.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
LOWdocs/source/conf.py1# Configuration file for the Sphinx documentation builder.COMMENT
LOWdocs/source/conf.py81# The theme to use for HTML and HTML Help pages. See the documentation forCOMMENT
LOWnvitop-exporter/nvitop_exporter/version.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
LOWnvitop-exporter/nvitop_exporter/exporter.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
LOWnvitop-exporter/nvitop_exporter/__init__.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
LOWnvitop-exporter/nvitop_exporter/cli.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
LOWnvitop-exporter/nvitop_exporter/utils.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
LOWnvitop-exporter/nvitop_exporter/__main__.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
LOWexamples/collector-tensorboard/collector_tensorboard.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
LOWexamples/monitor-web/monitor_web.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
LOWexamples/take-snapshots/take_snapshots_demo.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
LOWexamples/select-devices-api/select_devices_api.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
LOWexamples/collector-csv/collector_csv.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
LOWexamples/ml-framework-callbacks/keras.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
LOWexamples/ml-framework-callbacks/lightning.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
LOWexamples/ml-framework-callbacks/tensorboard.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
LOWexamples/monitor-colored/monitor_colored.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
LOWexamples/monitor-minimal/monitor_minimal.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
LOWexamples/collector-background/collector_background.py1# This file is part of nvitop, the interactive NVIDIA-GPU process viewer.COMMENT
Deep Nesting34 hits · 33 pts
SeverityFileLineSnippetContext
LOWnvitop/cli.py285CODE
LOWnvitop/select.py133CODE
LOWnvitop/tui/tui.py274CODE
LOWnvitop/tui/library/keybinding.py150CODE
LOWnvitop/tui/library/keybinding.py168CODE
LOWnvitop/tui/library/keybinding.py388CODE
LOWnvitop/tui/library/history.py148CODE
LOWnvitop/tui/screens/metrics.py45CODE
LOWnvitop/tui/screens/metrics.py369CODE
LOWnvitop/tui/screens/treeview.py85CODE
LOWnvitop/tui/screens/treeview.py373CODE
LOWnvitop/tui/screens/treeview.py400CODE
LOWnvitop/tui/screens/main/panels/device.py320CODE
LOWnvitop/tui/screens/main/panels/device.py540CODE
LOWnvitop/tui/screens/main/panels/host.py278CODE
LOWnvitop/tui/screens/main/panels/process.py416CODE
LOWnvitop/tui/screens/main/panels/process.py451CODE
LOWnvitop/tui/screens/main/panels/process.py673CODE
LOWnvitop/api/device.py3212CODE
LOWnvitop/api/device.py2528CODE
LOWnvitop/api/collector.py60CODE
LOWnvitop/api/collector.py196CODE
LOWnvitop/api/collector.py264CODE
LOWnvitop/api/collector.py682CODE
LOWnvitop/api/libcudart.py438CODE
LOWnvitop/api/process.py387CODE
LOWnvitop/api/process.py421CODE
LOWnvitop/api/libcuda.py388CODE
LOWnvitop/api/libnvml.py476CODE
LOWnvitop/api/libnvml.py601CODE
LOWnvitop-exporter/nvitop_exporter/exporter.py542CODE
LOWexamples/collector-tensorboard/collector_tensorboard.py52CODE
LOWexamples/ml-framework-callbacks/keras.py46CODE
LOWexamples/ml-framework-callbacks/lightning.py48CODE
Cross-Language Confusion1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHexamples/monitor-web/monitor_web.py521 # it treats null, so dropping them saves bytes on 24-h downsampled payloads.COMMENT
AI Structural Patterns5 hits · 5 pts
SeverityFileLineSnippetContext
LOWnvitop/select.py79CODE
LOWnvitop/select.py97CODE
LOWnvitop/select.py115CODE
LOWnvitop/select.py133CODE
LOWnvitop/tui/library/history.py328CODE
Excessive Try-Catch Wrapping3 hits · 2 pts
SeverityFileLineSnippetContext
LOWnvitop/tui/library/host.py44 except Exception: # noqa: BLE001 # pylint: disable=broad-exception-caughtCODE
LOWnvitop/api/device.py3417 except Exception as ex: # pylint: disable=broad-exceptSTRING
LOWexamples/monitor-web/monitor_web.py824 except Exception as ex: # noqa: BLE001 # pylint: disable=broad-exceptCODE
AI Slop Vocabulary1 hit · 1 pts
SeverityFileLineSnippetContext
MEDIUMnvitop/tui/library/libcurses.py188 """This class defines shortcuts to facilitate operations with curses.STRING
Redundant / Tautological Comments1 hit · 0 pts
SeverityFileLineSnippetContext
LOWnvitop/api/device.py3322 # Check if any GPU that enables MIG modeSTRING