Repository Analysis

XuehaiPan/nvitop

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

23.2 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of XuehaiPan/nvitop, a Python project with 7,083 GitHub stars. SynthScan v2.0 examined 31,058 lines of code across 110 source files, recording 488 pattern matches distributed across 13 syntactic categories. The overall adjusted score of 23.2 places this repository in the Moderate AI signal band.

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

23.2
Adjusted Score
23.2
Raw Score
100%
Time Factor
2026-07-27
Last Push
7.1K
Stars
Python
Language
31.1K
Lines of Code
110
Files
488
Pattern Hits
2026-08-02
Scan Date
0.15
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

Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.

No multi-scan history yet — run the scanner again to build trend data.

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 16MEDIUM 103LOW 369

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 488 distinct pattern matches across 13 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 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 · 42 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
LOWnvitop/tui/library/process.py90 def gpu_memory_percent_string(self) -> str: # in percentageCODE
LOWnvitop/tui/library/process.py93 def gpu_sm_utilization_string(self) -> str: # in percentageCODE
LOWnvitop/tui/library/process.py96 def gpu_memory_utilization_string(self) -> str: # in percentageCODE
LOWnvitop/tui/library/process.py99 def gpu_encoder_utilization_string(self) -> str: # in percentageCODE
LOWnvitop/tui/library/process.py102 def gpu_decoder_utilization_string(self) -> str: # in percentageCODE
LOWnvitop/api/device.py3192def _get_global_physical_device() -> PhysicalDevice:CODE
LOWnvitop/api/device.py3198def _parse_cuda_visible_devices(CODE
LOWnvitop/api/device.py3205def _parse_cuda_visible_devices(CODE
LOWnvitop/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.py732 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.py1031 def __determine_get_temperature_version_suffix() -> str:CODE
LOWnvitop/api/libnvml.py1105 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