Repository Analysis

cockpit-project/cockpit

Cockpit is a web-based graphical interface for servers.

3.5 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of cockpit-project/cockpit, a JavaScript project with 14,557 GitHub stars. SynthScan v2.0 examined 172,288 lines of code across 868 source files, recording 401 pattern matches distributed across 15 syntactic categories. The overall adjusted score of 3.5 places this repository in the Likely human-written 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).

3.5
Adjusted Score
3.5
Raw Score
100%
Time Factor
2026-07-13
Last Push
14.6K
Stars
JavaScript
Language
172.3K
Lines of Code
868
Files
401
Pattern Hits
2026-07-14
Scan Date
0.05
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 3HIGH 37MEDIUM 18LOW 343

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 401 distinct pattern matches across 15 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.

Cross-Language Confusion37 hits · 190 pts
SeverityFileLineSnippetContext
HIGHtest/pytest/test_packages.py73 (confdir / 'basic.override.json').write_text('{"description": null, "priority": 5, "does-not-exist": null}')CODE
HIGHtest/common/storagelib.py114 ls -la /sys/block/{os.path.basename(dev)}/holders/ >&2 || trueCODE
HIGHtest/common/storagelib.py115 fuser -v {dev} >&2 || trueCODE
HIGHtest/common/storagelib.py604 ! test -f /etc/kernel/cmdline || mv /etc/kernel/cmdline /etc/kernel/cmdline.stowedCODE
HIGHtest/common/storagelib.py607 ! test -f /etc/kernel/cmdline.stowed || mv /etc/kernel/cmdline.stowed /etc/kernel/cmdlineCODE
HIGHtest/common/storagelib.py610! test -f /etc/kernel/cmdline || cp /etc/kernel/cmdline /new-root/etc/kernel/cmdlineCODE
HIGHtest/common/storagelib.py54 dev = self.machine.execute('while true; do O=$(ls /sys/bus/pseudo/drivers/scsi_debug/adapter*/host*/target*/*:*/CODE
HIGHtest/common/storagelib.py55 '[ -n "$O" ] && break || sleep 0.1; done; echo "/dev/$O"').strip()CODE
HIGHtest/common/storagelib.py102 systemctl stop udisks2 || trueCODE
HIGHtest/common/storagelib.py234 result.push(lis[i].textContent);CODE
HIGHtest/common/storagelib.py700 ver = self.machine.execute("busctl --system get-property org.freedesktop.UDisks2 /org/freedesktop/UDisks2/ManageSTRING
HIGHtest/common/storagelib.py707 crypto_types = self.machine.execute("busctl --system get-property org.freedesktop.UDisks2 /org/freedesktop/UDiskSTRING
HIGHtest/common/testlib.py1941 " umount $d || true; dmsetup remove --force $d || true; "CODE
HIGHtest/common/testlib.py1944 " umount /dev/$dev || true; "CODE
HIGHtest/common/testlib.py1954 loginctl terminate-user $u 2>/dev/null || trueCODE
HIGHtest/common/testlib.py1955 loginctl kill-user $u 2>/dev/null || trueCODE
HIGHtest/common/testlib.py1956 pkill -9 -u $u || trueCODE
HIGHtest/common/testlib.py276 sizzle_js = sizzle_js.replace('context = context || document;', 'context = context || window.document;')CODE
HIGHtest/common/testlib.py1930 m.execute("systemctl try-restart sssd || true")CODE
HIGHtest/common/testlib.py2450 cmd = f"umount {path} || {{ fuser -uvk {path} {path}/* >&2 || true; sleep 1; umount {path}; }}"CODE
HIGHtest/common/testlib.py2550 self.machine.execute("test -f /home/admin/.ssh/id_rsa || ssh-keygen -f /home/admin/.ssh/id_rsa -t rsa -N ''")CODE
HIGHtest/common/netlib.py112 if 'default' in m.execute("virsh net-list --name || true"):CODE
HIGHtest/common/packagelib.py58 self.addCleanup(self.machine.execute, "systemctl stop packagekit; systemctl reset-failed packagekit || true")CODE
HIGHtest/common/packagelib.py80 self.machine.execute("test -d /var/lib/PackageKit/alpm && rm -r /var/lib/PackageKit/alpm || true")CODE
HIGHtest/common/packagelib.py80 self.machine.execute("test -d /var/lib/PackageKit/alpm && rm -r /var/lib/PackageKit/alpm || true")CODE
HIGHtest/common/packagelib.py84 fuser -k /var/lib/pacman/db.lck || true;CODE
HIGHtest/common/packagelib.py113 self.machine.execute("systemctl kill --signal=SIGKILL packagekit || true; rm -rf /var/cache/PackageKit")STRING
HIGHtest/common/packagelib.py114 self.machine.execute("systemctl reset-failed packagekit || true")STRING
HIGHtest/common/packagelib.py128 self.machine.execute("rm -r /etc/systemd/system/dnf-automatic* && systemctl daemon-reload || true")STRING
HIGHtest/common/packagelib.py132 self.addCleanup(self.machine.execute, "systemctl disable --now dnf5-automatic.timer 2>/dev/null || true")STRING
HIGHtest/common/packagelib.py134 "rm -r /etc/systemd/system/dnf5-automatic*.d && systemctl daemon-reload || true")STRING
HIGHtest/common/packagelib.py134 "rm -r /etc/systemd/system/dnf5-automatic*.d && systemctl daemon-reload || true")STRING
HIGHtest/common/packagelib.py224 self.addCleanup(m.execute, f"dpkg -P --force-depends --force-remove-reinstreq {name} 2>/dev/null || true")STRING
HIGHtest/common/packagelib.py311 self.addCleanup(self.machine.execute, f"rpm -e --nodeps {name} 2>/dev/null || true")STRING
HIGHtest/common/packagelib.py402 self.addCleanup(self.machine.execute, f"pacman -Rdd --noconfirm {name} 2>/dev/null || true")STRING
HIGHtest/common/packagelib.py475 self.addCleanup(self.machine.execute, "kill %i || true" % pid)STRING
HIGHtest/common/packagelib.py487 if 'testrepo' not in self.machine.execute('grep testrepo /etc/pacman.conf || true'):STRING
Hyper-Verbose Identifiers89 hits · 86 pts
SeverityFileLineSnippetContext
LOWtest/pytest/test_packages.py34def test_parse_accept_language(test_input: str, expected: 'tuple[str]') -> None:CODE
LOWtest/pytest/test_packages.py168def test_condition_hides_priority(pkgdir: Path) -> None:CODE
LOWtest/pytest/test_packages.py245def test_conditions_any_errors(pkgdir: Path) -> None:CODE
LOWtest/pytest/test_packages.py349def test_overlapping_minified(pkgdir: Path) -> None:CODE
LOWtest/pytest/test_http_channel.py125async def test_tls_request_no_validate(transport: MockTransport, tls_server: int) -> None:CODE
LOWtest/pytest/test_pcp.py253def unsupported_metric_archive(tmpdir_factory):CODE
LOWtest/pytest/test_pcp.py384async def test_pcp_instances_option(transport, instances_archive):CODE
LOWtest/pytest/test_pcp.py409async def test_pcp_omit_instances_option(transport, instances_archive):CODE
LOWtest/pytest/test_pcp.py483async def test_pcp_negative_timestamp(transport, timestamps_archive):CODE
LOWtest/pytest/test_pcp.py539async def test_pcp_instances_change(transport, instances_change_archive):CODE
LOWtest/pytest/test_pcp.py568async def test_pcp_scale_memory_unit(transport, mem_avail_archive):CODE
LOWtest/pytest/test_pcp.py654async def test_pcp_unsupported_metric(transport, unsupported_metric_archive):CODE
LOWtest/pytest/test_transport.py532 async def test_write_backlog_eof_and_close(self) -> None:CODE
LOWtest/pytest/test_browser.py107async def test_timeformat_timezones(CODE
LOWtest/pytest/test_peer.py84async def test_shutdown_before_init(monkeypatch, transport, rule):CODE
LOWtest/pytest/test_peer.py125async def test_await_broken_connect(bridge):CODE
LOWtest/pytest/test_peer.py137async def test_await_broken_after_connect(bridge):CODE
LOWtest/pytest/test_peer.py163async def test_await_cancellable_connect_init(bridge):CODE
LOWtest/pytest/test_peer.py173async def test_await_cancellable_connect_close(monkeypatch, bridge):CODE
LOWtest/pytest/test_samples.py108def test_temperature_descriptions():CODE
LOWtest/pytest/test_bridge.py175async def verify_root_bridge_not_running(bridge: Bridge, transport: MockTransport) -> None:CODE
LOWtest/pytest/test_bridge.py184async def verify_root_bridge_running(bridge: Bridge, transport: MockTransport) -> None:CODE
LOWtest/pytest/test_bridge.py265async def test_superuser_dbus_wrong_pw(bridge: Bridge, transport: MockTransport, monkeypatch) -> None:CODE
LOWtest/pytest/test_bridge.py1328async def test_fsinfo_nofollow_watch(transport: MockTransport) -> None:CODE
LOWtest/pytest/test_bridge.py1333async def test_fsinfo_nofollow_targets(transport: MockTransport) -> None:CODE
LOWtest/pytest/test_bridge.py1382async def test_fsinfo_onlydir_watch(transport: MockTransport, fsinfo_test_cases: 'dict[Path, JsonObject]') -> None:CODE
LOWtest/pytest/test_bridge.py1401async def test_fsinfo_watch_identity_changes(CODE
LOWtest/pytest/ws/test_authorize.py73def test_parse_subject_invalid(challenge: str) -> None:CODE
LOWtest/pytest/ws/test_authorize.py111def test_build_basic_roundtrip() -> None:CODE
LOWtest/pytest/ws/test_authorize.py127def test_build_basic_with_known_hosts() -> None:CODE
LOWtest/pytest/ws/test_authorize.py153def test_parse_negotiate_invalid(response: str) -> None:CODE
LOWtest/pytest/ws/test_authorize.py170def test_build_negotiate_roundtrip() -> None:CODE
LOWtest/pytest/ws/test_authorize.py183def test_parse_x_conversation(CODE
LOWtest/pytest/ws/test_authorize.py191def test_parse_x_conversation_invalid() -> None:CODE
LOWtest/pytest/ws/test_authorize.py196def test_build_x_conversation_with_prompt() -> None:CODE
LOWtest/pytest/ws/test_authorize.py202def test_build_x_conversation_no_prompt() -> None:CODE
LOWtest/pytest/ws/test_authorize.py208def test_build_x_conversation_generate() -> None:CODE
LOWtest/pytest/ws/test_authorize.py215def test_build_x_conversation_empty_invalid() -> None:CODE
LOWtest/pytest/ws/test_authorize.py220def test_build_x_conversation_roundtrip() -> None:CODE
LOWtest/verify/conftest.py31def pytest_collection_modifyitems(session: pytest.Session, items: List[pytest.Item]) -> None:CODE
LOWtest/common/test-functions.js348function currentFrameAbsolutePosition() {CODE
LOWtest/common/storagelib.py264 def dialog_wait_apply_enabled(self) -> None:CODE
LOWtest/common/storagelib.py267 def dialog_wait_apply_disabled(self) -> None:CODE
LOWtest/common/storagelib.py435 def assert_not_in_configuration(self, dev: str, tab: str, field: str, text: str) -> None:CODE
LOWtest/common/storagelib.py438 def child_configuration_field(self, dev: str, tab: str, field: str) -> str:CODE
LOWtest/common/storagelib.py452 def assert_in_child_configuration(self, dev: str, tab: str, field: str, text: str) -> None:CODE
LOWtest/common/storagelib.py455 def lvol_child_configuration_field(self, lvol: str, tab: str, field: str) -> str:CODE
LOWtest/common/storagelib.py468 def assert_in_lvol_child_configuration(self, lvol: str, tab: str, field: str, text: str) -> None:CODE
LOWtest/common/storagelib.py471 def setup_systemd_password_agent(self, password: str) -> None:CODE
LOWtest/common/storagelib.py124 def add_targetd_loopback_disk(self, index: str, size: int = 50) -> str:STRING
LOWtest/common/storagelib.py670 def check_dropdown_action_disabled(self, parent: str, title: str, expected_text: str) -> None:STRING
LOWtest/common/storagelib.py686 def wait_card_button_disabled(self, card_title: str, button_title: str) -> None:STRING
LOWtest/common/lcov.py448def prepare_for_code_coverage() -> None:CODE
LOWtest/common/testlib.py1303 def _set_emulated_media_theme(self, name: str) -> None:CODE
LOWtest/common/testlib.py777 def set_file_autocomplete_val(self, group_identifier: str, location: str) -> None:CODE
LOWtest/common/testlib.py1136 def check_superuser_indicator(self, expected: str) -> None:CODE
LOWtest/common/testlib.py1204 def get_raw_pf_progress_value(self, progress_bar_sel: str) -> int:CODE
LOWtest/common/testlib.py1216 def start_machine_troubleshoot(CODE
LOWtest/common/testlib.py1329 def _adjust_window_for_fixed_content_size(self) -> None:CODE
LOWtest/common/testlib.py1347 def assert_pixels_in_current_layout(CODE
29 more matches not shown…
Deep Nesting73 hits · 68 pts
SeverityFileLineSnippetContext
LOWtest/pytest/mockpeer.py11CODE
LOWtest/pytest/test_browser.py47CODE
LOWtest/pytest/test_bridge.py914CODE
LOWtest/pytest/test_bridge.py1356CODE
LOWtest/pytest/test_bridge.py1609CODE
LOWtest/common/js_coverage.py49CODE
LOWtest/common/js_coverage.py275CODE
LOWtest/common/storagelib.py195CODE
LOWtest/common/storagelib.py419CODE
LOWtest/common/storagelib.py438CODE
LOWtest/common/storagelib.py455CODE
LOWtest/common/lcov.py143CODE
LOWtest/common/lcov.py203CODE
LOWtest/common/lcov.py269CODE
LOWtest/common/lcov.py390CODE
LOWtest/common/lcov.py481CODE
LOWtest/common/lcov.py236CODE
LOWtest/common/testlib.py509CODE
LOWtest/common/testlib.py817CODE
LOWtest/common/testlib.py952CODE
LOWtest/common/testlib.py1506CODE
LOWtest/common/testlib.py2344CODE
LOWtest/common/webdriver_bidi.py226CODE
LOWtest/common/packagelib.py15CODE
LOWtest/common/pixelmatch/core.py12CODE
LOWtest/common/pixelmatch/utils.py10CODE
LOWpkg/storaged/btrfs/btrfs-tool.py148CODE
LOWpkg/storaged/btrfs/btrfs-tool.py217CODE
LOWpkg/storaged/crypto/luksmeta-monitor-hack.py24CODE
LOWpkg/storaged/crypto/luksmeta-monitor-hack.py53CODE
LOWpkg/storaged/nfs/nfs-mounts.py69CODE
LOWpkg/storaged/nfs/nfs-mounts.py167CODE
LOWpkg/storaged/nfs/nfs-mounts.py225CODE
LOWpkg/storaged/legacy-vdo/vdo-monitor.py49CODE
LOWpkg/lib/get-timesync-backend.py11CODE
LOWpkg/lib/get-timesync-backend.py49CODE
LOWpkg/apps/watch-appstream.py199CODE
LOWpkg/apps/watch-appstream.py365CODE
LOWpkg/apps/watch-appstream.py43CODE
LOWpkg/apps/watch-appstream.py314CODE
LOWpkg/apps/watch-appstream.py370CODE
LOWpkg/apps/watch-appstream.py53CODE
LOWsrc/cockpit/jsonutil.py169CODE
LOWsrc/cockpit/channel.py118CODE
LOWsrc/cockpit/bridge.py244CODE
LOWsrc/cockpit/packages.py488CODE
LOWsrc/cockpit/packages.py538CODE
LOWsrc/cockpit/packages.py572CODE
LOWsrc/cockpit/packages.py619CODE
LOWsrc/cockpit/internal_endpoints.py64CODE
LOWsrc/cockpit/polkit.py107CODE
LOWsrc/cockpit/samples.py130CODE
LOWsrc/cockpit/samples.py173CODE
LOWsrc/cockpit/samples.py335CODE
LOWsrc/cockpit/beiboot.py424CODE
LOWsrc/cockpit/misc/bootloader.py14CODE
LOWsrc/cockpit/misc/print.py174CODE
LOWsrc/cockpit/misc/print.py190CODE
LOWsrc/cockpit/channels/metrics.py115CODE
LOWsrc/cockpit/channels/pcp.py185CODE
13 more matches not shown…
Over-Commented Block68 hits · 66 pts
SeverityFileLineSnippetContext
LOWfiles.js181 from: path.resolve(nodedir, fontsdir, subdir, 'RedHat' + name + '.woff2'),COMMENT
LOWpackit.yaml81 owner: "@cockpit"COMMENT
LOWtest/common/test-functions.js401 const elts = window.ph_select(sel);COMMENT
LOWtest/common/storagelib.py541 # The kernel command line is changed to use the new rootCOMMENT
LOWtest/common/lcov.py301 for r in f['ranges']:COMMENT
LOWtest/common/lcov.py321 # with count 0 for "bar" (lines 2 and 3), since it is neverCOMMENT
LOWtest/common/lcov.py341 # 5 0 bar();COMMENT
LOWtest/common/testlib.py121# "test/browser-layouts.json".COMMENT
LOWtest/common/testlib.py1421 rect["type"] = "box"COMMENT
LOWtest/common/testlib.py1461 # be perfectly identical. They might differ in theCOMMENT
LOWtest/common/dialoglib.py1# Copyright (C) 2025 Red Hat, Inc.COMMENT
LOWtest/common/dialoglib.py21# You need to pass the CSS selector prefix of the <Modal> component toCOMMENT
LOWtest/common/dialoglib.py41#COMMENT
LOWtest/common/dialoglib.py61#COMMENT
LOWpkg/networkmanager/interfaces.js1081COMMENT
LOWpkg/storaged/pages.jsx421// another table column already.COMMENT
LOWpkg/storaged/utils.js381 let is_contained;COMMENT
LOWpkg/storaged/btrfs/btrfs-tool.py1#! /usr/bin/python3COMMENT
LOWpkg/storaged/crypto/clevis-luks-passphrase.sh1#! /bin/shCOMMENT
LOWpkg/storaged/mdraid/mdraid.jsx81 const members = client.mdraids_members[mdraid.path];COMMENT
LOWpkg/lib/cockpit-components-plot.jsx121 // Find the highest power of the base unit that is still belowCOMMENT
LOWpkg/lib/cockpit-components-plot.jsx141 // If the highest number of would be only, say, 81, then we would getCOMMENT
LOWpkg/lib/cockpit-components-plot.jsx161 //COMMENT
LOWpkg/lib/journal.js301 a.prio == b.prio &&COMMENT
LOWpkg/lib/get-timesync-backend.py1# SPDX-License-Identifier: LGPL-2.1-or-laterCOMMENT
LOWpkg/lib/patternfly/patternfly-6-overrides.scss321 border-block-start: var(--pf-t--global--border--width--100) solid var(--pf-t--global--border--color--default);COMMENT
LOWsrc/cockpit/peer.py81 try:COMMENT
LOWsrc/cockpit/beiboot.py141 return replyCOMMENT
LOWsrc/cockpit/channels/pcp.py1#COMMENT
LOWsrc/cockpit/channels/pcp.py21# * interval - the interval on which to deliver metricsCOMMENT
LOWsrc/cockpit/channels/pcp.py41# The instance domain denotes if the metric is has multiple instances, forCOMMENT
LOWsrc/cockpit/channels/dbus.py1#COMMENT
LOWsrc/cockpit/channels/dbus.py41# This channel payload type translates JSON encoded messages on aCOMMENT
LOWsrc/cockpit/channels/dbus.py61# - The client adds a "watch" for a path namespace. There is aCOMMENT
LOWsrc/cockpit/channels/dbus.py81# channel, and will keep that mutex locked until it is done withCOMMENT
LOWsrc/common/cockpitwebcertificate.c1/*COMMENT
LOWsrc/common/cockpitauthorize.c1/*COMMENT
LOWsrc/common/test-authorize.c1/*COMMENT
LOWsrc/common/cockpitconf.c1/*COMMENT
LOWsrc/tls/client-certificate.c21 * required information for authentication, but it's not sufficient:COMMENT
LOWsrc/tls/credentials.c1/*COMMENT
LOWsrc/tls/socket-activation-helper.c1/*COMMENT
LOWsrc/tls/test-server.c1/*COMMENT
LOWsrc/tls/test-server.c21#include <gnutls/x509.h>COMMENT
LOWsrc/tls/cockpit-certificate-ensure.c1/*COMMENT
LOWsrc/tls/cockpit-certificate-ensure.c21COMMENT
LOWsrc/tls/server.c1/*COMMENT
LOWsrc/tls/main.c1/*COMMENT
LOWsrc/tls/connection.c1/*COMMENT
LOWsrc/tls/connection.c21#include <string.h>COMMENT
LOWsrc/tls/socket-io.c1/*COMMENT
LOWsrc/pam-ssh-add/pam-ssh-add.c21#include <stdio.h>COMMENT
LOWsrc/pam-ssh-add/test-ssh-add.c1/*COMMENT
LOWsrc/ws/cockpitpipe.c21#include <sys/socket.h>COMMENT
LOWsrc/ws/cockpitauth.c1/*COMMENT
LOWsrc/ws/cockpitauth.c21#include "cockpitpipetransport.h"COMMENT
LOWsrc/ws/cockpithandlers.c1/*COMMENT
LOWsrc/ws/test-server.c1/*COMMENT
LOWsrc/ws/mock-auth-command.c1/*COMMENT
LOWsrc/ws/cockpitwebresponse.c1/*COMMENT
8 more matches not shown…
Modern Structural Boilerplate45 hits · 46 pts
SeverityFileLineSnippetContext
LOWtest/pytest/ws/authorize.py9logger = logging.getLogger(__name__)CODE
LOWtest/pytest/ws/mocksessionsocket.py21logger = logging.getLogger(__name__)CODE
LOWtest/common/testlib.py1299 def _set_window_size(self, width: int, height: int) -> None:CODE
LOWtest/common/testlib.py1303 def _set_emulated_media_theme(self, name: str) -> None:CODE
LOWtest/common/testlib.py1308 def _set_direction(self, direction: str) -> None:CODE
LOWtest/common/testlib.py1315 def set_layout(self, name: str) -> None:CODE
LOWtest/common/testlib.py381 def set_user_agent(self, ua: str) -> None:CODE
LOWtest/common/testlib.py465 def set_mock(self, mock: Mapping[str, str], base: str = "") -> None:CODE
LOWtest/common/testlib.py625 def set_val(self, selector: str, val: object) -> None:CODE
LOWtest/common/testlib.py653 def set_attr(self, selector: str, attr: str, val: object) -> None:CODE
LOWtest/common/testlib.py672 def set_checked(self, selector: str, val: bool) -> None:CODE
LOWtest/common/testlib.py777 def set_file_autocomplete_val(self, group_identifier: str, location: str) -> None:CODE
LOWtest/common/dialoglib.py114 def set_TextInput(self, path: str, val: str) -> None:CODE
LOWtest/common/dialoglib.py127 def set_Checkbox(self, path: str, val: bool) -> None:CODE
LOWtest/common/dialoglib.py138 def set_RadioSelect(self, path: str, val: str) -> None:CODE
LOWtest/common/dialoglib.py149 def set_DropdownSelect(self, path: str, val: str) -> None:CODE
LOWtest/common/pixelmatch/__init__.py15__all__ = [CODE
LOWsrc/cockpit/config.py13logger = logging.getLogger(__name__)CODE
LOWsrc/cockpit/superuser.py30logger = logging.getLogger(__name__)CODE
LOWsrc/cockpit/superuser.py261 def set_configs(self, configs: Sequence[BridgeConfig]) -> None:CODE
LOWsrc/cockpit/remote.py18logger = logging.getLogger(__name__)CODE
LOWsrc/cockpit/protocol.py13logger = logging.getLogger(__name__)CODE
LOWsrc/cockpit/channel.py18logger = logging.getLogger(__name__)CODE
LOWsrc/cockpit/bridge.py38logger = logging.getLogger(__name__)CODE
LOWsrc/cockpit/packages.py54logger = logging.getLogger(__name__)CODE
LOWsrc/cockpit/peer.py17logger = logging.getLogger(__name__)CODE
LOWsrc/cockpit/peer.py295 def set_configs(self, bridge_configs: Sequence[BridgeConfig]) -> None:CODE
LOWsrc/cockpit/internal_endpoints.py20logger = logging.getLogger(__name__)CODE
LOWsrc/cockpit/beipack.py16logger = logging.getLogger(__name__)CODE
LOWsrc/cockpit/transports.py36logger = logging.getLogger(__name__)CODE
LOWsrc/cockpit/transports.py159 def set_write_buffer_limits(self, high: 'int | None' = None, low: 'int | None' = None) -> None:CODE
LOWsrc/cockpit/transports.py263 def set_protocol(self, protocol: asyncio.BaseProtocol) -> None:CODE
LOWsrc/cockpit/transports.py388 def set_window_size(self, size: WindowSize) -> None:CODE
LOWsrc/cockpit/polkit.py25logger = logging.getLogger(__name__)CODE
LOWsrc/cockpit/router.py14logger = logging.getLogger(__name__)CODE
LOWsrc/cockpit/samples.py22logger = logging.getLogger(__name__)CODE
LOWsrc/cockpit/channels/trivial.py12logger = logging.getLogger(__name__)CODE
LOWsrc/cockpit/channels/metrics.py18logger = logging.getLogger(__name__)CODE
LOWsrc/cockpit/channels/pcp.py76logger = logging.getLogger(__name__)CODE
LOWsrc/cockpit/channels/dbus.py37logger = logging.getLogger(__name__)CODE
LOWsrc/cockpit/channels/filesystem.py41logger = logging.getLogger(__name__)CODE
LOWsrc/cockpit/channels/session.py12logger = logging.getLogger(__name__)CODE
LOWsrc/cockpit/channels/packages.py14logger = logging.getLogger(__name__)CODE
LOWsrc/cockpit/channels/stream.py16logger = logging.getLogger(__name__)CODE
LOWsrc/cockpit/channels/http_channel.py14logger = logging.getLogger(__name__)CODE
Excessive Try-Catch Wrapping27 hits · 34 pts
SeverityFileLineSnippetContext
MEDIUMtest/common/storagelib.py353def step() -> bool:CODE
LOWtest/common/storagelib.py399 except Exception:CODE
MEDIUMtest/common/testlib.py2791 print(f"Error: '{name}' does not match a test", file=sys.stderr)CODE
LOWtest/common/testlib.py2717 except Exception:CODE
LOWtest/common/testlib.py2934 except Exception:CODE
LOWpkg/sosreport/get_report_dir.py15 except Exception as e:CODE
LOWpkg/storaged/mount-users.py115 except Exception:CODE
LOWpkg/storaged/mount-users.py164except Exception as e:CODE
MEDIUMpkg/storaged/mount-users.py111def sendsig(pid, sig):CODE
LOWpkg/storaged/btrfs/btrfs-tool.py80 except Exception as err:CODE
LOWpkg/storaged/btrfs/btrfs-tool.py91 except Exception as err:CODE
LOWpkg/storaged/btrfs/btrfs-tool.py163 except Exception as err:CODE
LOWpkg/storaged/btrfs/btrfs-tool.py232 except Exception as err:CODE
LOWpkg/storaged/nfs/nfs-mounts.py244except Exception as e:CODE
LOWpkg/storaged/legacy-vdo/vdo-monitor.py81 except Exception as e:CODE
LOWpkg/storaged/legacy-vdo/vdo-monitor.py113 except Exception as e:CODE
MEDIUMpkg/storaged/legacy-vdo/vdo-monitor.py68def query():CODE
MEDIUMpkg/storaged/legacy-vdo/vdo-monitor.py109def sample():CODE
LOWpkg/apps/watch-appstream.py378 except Exception:CODE
MEDIUMpkg/apps/watch-appstream.py370def process_file(path, callback):CODE
LOWsrc/cockpit/peer.py75 except Exception as exc:CODE
LOWsrc/cockpit/channels/pcp.py527 except Exception as exc:CODE
LOWsrc/cockpit/channels/pcp.py536 except Exception as exc:CODE
LOWsrc/cockpit/channels/pcp.py545 except Exception as exc:CODE
LOWsrc/cockpit/channels/dbus.py327 except Exception as exc:CODE
LOWsrc/cockpit/channels/dbus.py345 except Exception:CODE
MEDIUMsrc/cockpit/channels/dbus.py125def get_interface(self, interface_name, bus=None, destination=None, object_path=CODE
Hallucination Indicators3 hits · 30 pts
SeverityFileLineSnippetContext
CRITICALpkg/kdump/config-client.js135 const parts = this.settings._internal.nfs.value.match(/^([^[][^:]+|\[[^\]]+\]):(.*)$/);CODE
CRITICALpkg/kdump/config-client.js185 (this.settings._internal.core_collector.value.trim().indexOf("makedumpfile") === 0)CODE
CRITICALpkg/kdump/config-client.js191 (this.settings._internal.core_collector.value.split(" ").indexOf("-c") != -1)CODE
Unused Imports25 hits · 25 pts
SeverityFileLineSnippetContext
LOWtest/pytest/test_bridge.py17CODE
LOWtest/common/pixelmatch/__init__.py1CODE
LOWtest/common/pixelmatch/__init__.py2CODE
LOWtest/common/pixelmatch/__init__.py2CODE
LOWtest/common/pixelmatch/__init__.py2CODE
LOWtest/common/pixelmatch/__init__.py2CODE
LOWtest/common/pixelmatch/__init__.py2CODE
LOWtest/common/pixelmatch/__init__.py2CODE
LOWtest/common/pixelmatch/__init__.py2CODE
LOWtest/common/pixelmatch/__init__.py2CODE
LOWtest/common/pixelmatch/__init__.py2CODE
LOWtest/common/pixelmatch/__init__.py2CODE
LOWsrc/cockpit/superuser.py26CODE
LOWsrc/cockpit/channel.py12CODE
LOWsrc/cockpit/channel.py12CODE
LOWsrc/cockpit/channel.py12CODE
LOWsrc/cockpit/channel.py12CODE
LOWsrc/cockpit/channel.py12CODE
LOWsrc/cockpit/channel.py12CODE
LOWsrc/cockpit/bridge.py30CODE
LOWsrc/cockpit/__init__.py2CODE
LOWsrc/cockpit/samples.py10CODE
LOWsrc/cockpit/beiboot.py17CODE
LOWsrc/cockpit/channels/filesystem.py20CODE
LOWsrc/cockpit/channels/filesystem.py27CODE
AI Slop Vocabulary9 hits · 22 pts
SeverityFileLineSnippetContext
MEDIUMbuild.js117 // Use createRequire to leverage Node's module resolution which searches system pathsCOMMENT
LOWtest/common/lcov.py348 # can't just add them all up. This doesn't work, however, whenCOMMENT
MEDIUMtest/common/pixelmatch/contrib/PIL.py4"""Functions to facilitate direct comparison of PIL.Image instances"""STRING
MEDIUMpkg/packagekit/updates.jsx1021 // be robust, try to continue with loading updates anywayCOMMENT
MEDIUMpkg/lib/patternfly/_fonts.scss5// This allows plugins to still utilize the Red Hat fonts when testing plugins on or before Cockpit v336COMMENT
MEDIUMpkg/lib/patternfly/patternfly-6-cockpit.scss10// This allows plugins to still utilize the Red Hat fonts when testing plugins on or before Cockpit v336COMMENT
MEDIUMpkg/lib/patternfly/patternfly-6-overrides.scss55 // We utilize custom footers in dialogsCOMMENT
MEDIUMsrc/cockpit/bridge.py281 # Launch the agent so that it goes down with us on EOF; PDEATHSIG would be more robust,COMMENT
LOWsrc/cockpit/channels/pcp.py219 # just return an empty error. If we report anything with aCOMMENT
Self-Referential Comments4 hits · 10 pts
SeverityFileLineSnippetContext
MEDIUMpkg/lib/serverTime.js290 const text = `# This file is automatically generated by Cockpit\n\n[Time]\n${config.enabled ? "" : "#"}NTP=${conCODE
MEDIUMpkg/lib/serverTime.js343 const text = "# This file is automatically generated by Cockpit\n\n" + config.servers.map(s => `server ${s}\n`).CODE
MEDIUMsrc/cockpit/_version.py2# This file is only in git. It gets replaced by `make dist`.COMMENT
MEDIUMsrc/cockpit/beiboot.py46 # Create the file in $XDG_CACHE_HOME, one of the few locations that a flatpak can write toCOMMENT
Structural Annotation Overuse5 hits · 8 pts
SeverityFileLineSnippetContext
LOWpkg/shell/session.ts38 // NOTE: This function will be called many many times for aCOMMENT
LOWpkg/storaged/block/resize.jsx377 // Step 1: Find the spaces that are already used for aCOMMENT
LOWpkg/storaged/block/resize.jsx391 // Step 2: Select missing one randomly.COMMENT
LOWpkg/storaged/block/resize.jsx474 // Step 1: Find PVs that are already used by a subvolumeCOMMENT
LOWpkg/storaged/block/resize.jsx485 // Step 2: Use the rest for the leftover subvolumesCOMMENT
AI Structural Patterns9 hits · 6 pts
SeverityFileLineSnippetContext
LOWtest/common/testlib.py509CODE
LOWtest/common/testlib.py1033CODE
LOWtest/common/testlib.py1347CODE
LOWtest/common/testlib.py1506CODE
LOWtest/common/testlib.py2030CODE
LOWtest/common/netlib.py200CODE
LOWtest/common/packagelib.py145CODE
LOWtest/common/pixelmatch/core.py12CODE
LOWtest/common/pixelmatch/contrib/PIL.py16CODE
Verbosity Indicators4 hits · 6 pts
SeverityFileLineSnippetContext
LOWpkg/storaged/block/resize.jsx377 // Step 1: Find the spaces that are already used for aCOMMENT
LOWpkg/storaged/block/resize.jsx391 // Step 2: Select missing one randomly.COMMENT
LOWpkg/storaged/block/resize.jsx474 // Step 1: Find PVs that are already used by a subvolumeCOMMENT
LOWpkg/storaged/block/resize.jsx485 // Step 2: Use the rest for the leftover subvolumesCOMMENT
Redundant / Tautological Comments2 hits · 3 pts
SeverityFileLineSnippetContext
LOWsrc/cockpit/channels/pcp.py214 # Verify if the given metrics exist in the archiveCOMMENT
LOWsrc/cockpit/channels/pcp.py618 # Set metric_descriptions to the current archiveCOMMENT
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippetContext
LOWtest/common/testlib.py1531 # If the page overflows make sure to not show a scrollbarCOMMENT