Repository Analysis

kubevirt/kubevirt

Kubernetes Virtualization API and runtime in order to define and manage virtual machines.

2.6 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of kubevirt/kubevirt, a Go project with 6,946 GitHub stars. SynthScan v2.0 examined 647,178 lines of code across 2782 source files, recording 579 pattern matches distributed across 15 syntactic categories. The overall adjusted score of 2.6 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).

2.6
Adjusted Score
2.6
Raw Score
100%
Time Factor
2026-07-14
Last Push
6.9K
Stars
Go
Language
647.2K
Lines of Code
2.8K
Files
579
Pattern Hits
2026-07-14
Scan Date
0.03
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 74HIGH 0MEDIUM 132LOW 373

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 579 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.

Hallucination Indicators74 hits · 890 pts
SeverityFileLineSnippetContext
CRITICALtests/canary_upgrade_test.go94 g.Expect(ds.Spec.UpdateStrategy.RollingUpdate.MaxUnavailable.IntValue()).To(Equal(1))CODE
CRITICALtests/vm_test.go363 vmiMemory := vmi.Spec.Domain.Resources.Requests.Memory()CODE
CRITICALtests/vm_test.go364 vmMemory := vm.Spec.Template.Spec.Domain.Resources.Requests.Memory()CODE
CRITICALtests/vm_test.go374 vmiMemory = vmi.Spec.Domain.Resources.Requests.Memory()CODE
CRITICALtests/vm_test.go375 vmMemory = updatedVM.Spec.Template.Spec.Domain.Resources.Requests.Memory()CODE
CRITICALtests/hotplug/memory.go194 Expect(vm.Spec.Template.Spec.Domain.Memory.Guest.Value()).To(Equal(newGuestMemory.Value()))CODE
CRITICALtests/hotplug/memory.go232 Expect(vmi.Spec.Domain.Resources.Requests.Memory().Value()).To(Equal(newGuestMemory.Value()))CODE
CRITICALtests/hotplug/instancetype.go170 Expect(vmi.Spec.Domain.Memory.Guest.Value()).To(Equal(maxGuest.Value()))CODE
CRITICALtests/hotplug/instancetype.go227 newMemory := vm.Spec.Template.Spec.Domain.Resources.Requests.Memory().DeepCopy()CODE
CRITICALtests/hotplug/instancetype.go232 patch.WithTest(memoryPath, vm.Spec.Template.Spec.Domain.Resources.Requests.Memory().String()),CODE
CRITICALtests/compute/cpu.go93 Expect(vmi.Spec.Domain.Resources.Requests.Memory().String()).To(Equal("128Mi"))CODE
CRITICALtests/instancetype/reference_policy.go91 Expect(vm.Spec.Template.Spec.Domain.Memory.Guest.Value()).To(Equal(instancetype.Spec.Memory.Guest.Value()))CODE
CRITICALtests/migration/namespace.go553 targetVMI.Spec.Domain.Firmware = sourceVM.Spec.Template.Spec.Domain.Firmware.DeepCopy()CODE
CRITICALtests/operator/operator.go353 return ds.Status.DesiredNumberScheduled == ds.Status.NumberReady && ds.Spec.UpdateStrategy.RollingUpdate.MaxUnavaiCODE
CRITICALpkg/virt-launcher/virtwrap/manager.go441 log.Log.V(2).Infof("hotplugging guest memory to %v", vmi.Spec.Domain.Memory.Guest.Value())CODE
CRITICALpkg/virt-launcher/virtwrap/converter/compute/memory.go35 (vmi.Spec.Domain.Memory.Guest != nil && vmi.Spec.Domain.Memory.Guest.Equal(*vmi.Spec.Domain.Memory.MaxGuest)) {CODE
CRITICALpkg/virt-handler/migration-target.go1185 requiredMemory.Add(*vmi.Spec.Domain.Resources.Requests.Memory())CODE
CRITICALpkg/virt-handler/migration-target.go1189 return fmt.Errorf("amount of requested guest memory (%s) exceeds the launcher memory request (%s)", vmi.Spec.Domain.MeCODE
CRITICALpkg/virt-handler/migration-source.go166 migrationEndUnix := vmi.Status.MigrationState.EndTimestamp.Time.UTC().Unix()CODE
CRITICALpkg/virt-handler/vm.go1690 startTime = dom.Spec.Metadata.KubeVirt.GracePeriod.DeletionTimestamp.UTC().Unix()CODE
CRITICAL…webhooks/mutating-webhook/mutators/vmi-mutator_test.go574 Expect(vmiSpec.Domain.Resources.Requests.Cpu()).To(Equal(vmi.Spec.Domain.Resources.Requests.Cpu()))CODE
CRITICAL…webhooks/mutating-webhook/mutators/vmi-mutator_test.go575 Expect(vmiSpec.Domain.Resources.Requests.Memory()).To(Equal(vmi.Spec.Domain.Resources.Requests.Memory()))CODE
CRITICALpkg/virt-api/rest/expand_test.go232 Expect(responseVm.Spec.Template.Spec.Domain.Memory.Guest.Value()).To(Equal(clusterInstancetype.Spec.Memory.Guest.ValuCODE
CRITICALpkg/virt-api/rest/expand_test.go374 Expect(responseVm.Spec.Template.Spec.Domain.Memory.Guest.Value()).To(Equal(namespacedInstancetype.Spec.Memory.Guest.VCODE
CRITICALpkg/defaults/defaults.go125 maxGuest = resource.NewQuantity(vmi.Spec.Domain.Memory.Guest.Value()*int64(clusterConfig.GetMaxHotplugRatio()), resourCODE
CRITICALpkg/virt-controller/watch/vm/vm.go586 if !vm.Spec.Template.Spec.Domain.Resources.Requests.Cpu().IsZero() {CODE
CRITICALpkg/virt-controller/watch/vm/vm.go587 newCpuReq := vmi.Spec.Domain.Resources.Requests.Cpu().DeepCopy()CODE
CRITICALpkg/virt-controller/watch/vm/vm.go591 patch.WithTest("/spec/domain/resources/requests/cpu", vmi.Spec.Domain.Resources.Requests.Cpu().String()),CODE
CRITICALpkg/virt-controller/watch/vm/vm.go597 if !vm.Spec.Template.Spec.Domain.Resources.Limits.Cpu().IsZero() {CODE
CRITICALpkg/virt-controller/watch/vm/vm.go598 newCpuLimit := vmi.Spec.Domain.Resources.Limits.Cpu().DeepCopy()CODE
CRITICALpkg/virt-controller/watch/vm/vm.go602 patch.WithTest("/spec/domain/resources/limits/cpu", vmi.Spec.Domain.Resources.Limits.Cpu().String()),CODE
CRITICALpkg/virt-controller/watch/vm/vm.go3499 vmCopyWithInstancetype.Spec.Template.Spec.Domain.Memory.Guest.Cmp(*vmi.Status.Memory.GuestAtBoot) == -1 {CODE
CRITICALpkg/virt-controller/watch/vm/vm.go3508 vmCopyWithInstancetype.Spec.Template.Spec.Domain.Memory.Guest.Cmp(*vmi.Spec.Domain.Memory.MaxGuest) == 1 {CODE
CRITICALpkg/virt-controller/watch/vm/vm.go3513 memoryDelta := resource.NewQuantity(vmCopyWithInstancetype.Spec.Template.Spec.Domain.Memory.Guest.Value()-vmi.Status.MeCODE
CRITICALpkg/virt-controller/watch/vm/vm.go3516 patch.WithTest("/spec/domain/memory/guest", vmi.Spec.Domain.Memory.Guest.String()),CODE
CRITICALpkg/virt-controller/watch/vm/vm.go3517 patch.WithReplace("/spec/domain/memory/guest", vmCopyWithInstancetype.Spec.Template.Spec.Domain.Memory.Guest.String())CODE
CRITICALpkg/virt-controller/watch/vm/vm.go3520 logMsg := fmt.Sprintf("hotplugging memory to %s", vmCopyWithInstancetype.Spec.Template.Spec.Domain.Memory.Guest.String(CODE
CRITICALpkg/virt-controller/watch/vm/vm.go3522 if !vmi.Spec.Domain.Resources.Requests.Memory().IsZero() {CODE
CRITICALpkg/virt-controller/watch/vm/vm.go3523 newMemoryReq := vmi.Spec.Domain.Resources.Requests.Memory().DeepCopy()CODE
CRITICALpkg/virt-controller/watch/vm/vm.go3531 memoryDelta = resource.NewQuantity(vmCopyWithInstancetype.Spec.Template.Spec.Domain.Memory.Guest.Value()-newMemoryReqCODE
CRITICALpkg/virt-controller/watch/vm/vm.go3535 patch.WithTest("/spec/domain/resources/requests/memory", vmi.Spec.Domain.Resources.Requests.Memory().String()),CODE
CRITICALpkg/virt-controller/watch/vm/vm.go3541 if !vmCopyWithInstancetype.Spec.Template.Spec.Domain.Resources.Limits.Memory().IsZero() {CODE
CRITICALpkg/virt-controller/watch/vm/vm.go3542 newMemoryLimit := vmi.Spec.Domain.Resources.Limits.Memory().DeepCopy()CODE
CRITICALpkg/virt-controller/watch/vm/vm.go3546 patch.WithTest("/spec/domain/resources/limits/memory", vmi.Spec.Domain.Resources.Limits.Memory().String()),CODE
CRITICALpkg/virt-controller/watch/vm/vm.go1565 retryAfter := vm.Status.StartFailure.RetryAfterTimestamp.Time.UTC().Unix()CODE
CRITICALpkg/virt-controller/watch/vm/vm.go3470 if vmCopyWithInstancetype.Spec.Template.Spec.Domain.Memory.Guest.Equal(*vmi.Spec.Domain.Memory.Guest) {CODE
CRITICALpkg/virt-controller/watch/vm/vm_test.go5422 expectedCpuReq := vmi.Spec.Domain.Resources.Requests.Cpu().DeepCopy()CODE
CRITICALpkg/virt-controller/watch/vm/vm_test.go5425 Expect(updatedVMI.Spec.Domain.Resources.Requests.Cpu().String()).To(Equal(expectedCpuReq.String()))CODE
CRITICALpkg/virt-controller/watch/vm/vm_test.go5429 expectedCpuLim := vmi.Spec.Domain.Resources.Limits.Cpu().DeepCopy()CODE
CRITICALpkg/virt-controller/watch/vm/vm_test.go5432 Expect(updatedVMI.Spec.Domain.Resources.Limits.Cpu().String()).To(Equal(expectedCpuLim.String()))CODE
CRITICALpkg/virt-controller/watch/vm/vm_test.go5497 expectedCpuReq := originalVMI.Spec.Domain.Resources.Requests.Cpu().DeepCopy()CODE
CRITICALpkg/virt-controller/watch/vm/vm_test.go5499 Expect(vmi.Spec.Domain.Resources.Requests.Cpu().String()).To(Equal(expectedCpuReq.String()))CODE
CRITICALpkg/virt-controller/watch/vm/vm_test.go5501 expectedCpuLim := originalVMI.Spec.Domain.Resources.Limits.Cpu().DeepCopy()CODE
CRITICALpkg/virt-controller/watch/vm/vm_test.go5503 Expect(vmi.Spec.Domain.Resources.Limits.Cpu().String()).To(Equal(expectedCpuLim.String()))CODE
CRITICALpkg/virt-controller/watch/vm/vm_test.go5602 Expect(vmi.Spec.Domain.Memory.Guest.Cmp(*vm.Spec.Template.Spec.Domain.Memory.Guest)).To(Equal(0), "The VMI Guest shCODE
CRITICALpkg/virt-controller/watch/vm/vm_test.go5606 Expect(vmi.Spec.Domain.Resources.Requests.Memory().Value()).To(Equal(expectedMemReq))CODE
CRITICALpkg/virt-controller/watch/vmi/lifecycle.go1162 return vmi.Spec.Domain.Memory.Guest.Value() != vmi.Status.Memory.GuestRequested.Value()CODE
CRITICALpkg/virt-controller/services/template_test.go2297 Expect(vmi.Spec.Domain.Resources.Requests.Memory().String()).To(Equal("64M"))CODE
CRITICALpkg/virt-controller/services/template_test.go2697 guestRequestMemDiff := vmi.Spec.Domain.Resources.Requests.Memory()CODE
CRITICALpkg/virt-controller/services/template_test.go3084 expectedMemory.Add(*vmi.Spec.Domain.Resources.Requests.Memory())CODE
14 more matches not shown…
Self-Referential Comments128 hits · 444 pts
SeverityFileLineSnippetContext
MEDIUMimages/disks-images-provider/entrypoint.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMimages/disks-images-provider/entrypoint.sh51# Create a 4Gi blank disk imageCOMMENT
MEDIUMtests/entrypoint.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/cluster-build.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/olm.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/dump.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/go-build-functests.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/integration-test.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/cluster-clean.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/functests.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/bazel-build-functests.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/virtctl.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/build-copy-artifacts.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/realtime-perftests.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/lint-test-cleanup-label.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/push-container-manifest.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/cluster-up.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/build-manifests.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/golangci-lint.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/whatchanged.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/bazel-build-images.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/cluster-sync.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/multi-arch.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/bootstrap.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/bazel-fmt.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/bazel-push-images.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/perftests.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/gofumpt.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/cluster-deploy.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/cluster-deploy.sh67# Create the installation namespace if it does not exist alreadyCOMMENT
MEDIUMhack/license-header-check.sh2# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/license-header-check.sh51# Define the required license lines based on hack/boilerplate (order does not matter)COMMENT
MEDIUMhack/perfscale-kube-burner-test.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/manifests.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/build-go.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/lint-newcirros-deprecation.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/sync-kubevirtci-stable-provider.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/bazel-build.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/perfscale-tests.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/config-kubevirtci.sh2# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/virt-template/push-images.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/prom-rule-ci/verify-rules.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/prom-metric-linter/metrics_collector.sh4# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/prom-metric-linter/metric_name_linter.sh4# This file is part of the KubeVirt projectCOMMENT
MEDIUMkubevirtci/cluster-up/cli.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMkubevirtci/cluster-up/kubectl.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMkubevirtci/cluster-up/check.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMkubevirtci/cluster-up/kubeconfig.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUM…ster-up/cluster/vfio-gpu/install_dra_example_driver.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUM…tci/cluster-up/cluster/vfio-gpu/setup-fake-pci-host.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUM…tci/cluster-up/cluster/vfio-gpu/setup-host-vfio-pci.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMkubevirtci/cluster-up/cluster/kind/check-cluster-up.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMkubevirtci/cluster-up/cluster/kind/bump-kind.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMkubevirtci/cluster-up/cluster/kind-ovn/provider.sh2# This file is part of the KubeVirt projectCOMMENT
MEDIUMkubevirtci/cluster-up/cluster/kind-ovn/install-ovn.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMkubevirtci/hack/bump-cdi.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMkubevirtci/hack/bump-centos-version.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMkubevirtci/hack/bump-whereabouts.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMkubevirtci/hack/bump-net-resources-injector.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMkubevirtci/hack/bump-cnao.sh3# This file is part of the KubeVirt projectCOMMENT
68 more matches not shown…
Over-Commented Block320 hits · 281 pts
SeverityFileLineSnippetContext
LOWcmd/container-disk-v2alpha/main.c1#include <errno.h>COMMENT
LOWtools/analyzers/banncheck/config/config.go1// Copyright 2020 Google LLCCOMMENT
LOWtools/analyzers/banncheck/banncheck/banned_api.go1// Copyright 2020 Google LLCCOMMENT
LOW…rt.io/client-go/externalsnapshotter/scheme/register.go41//COMMENT
LOW…virt.io/client-go/externalsnapshotter/fake/register.go41//COMMENT
LOW…o/networkattachmentdefinitionclient/scheme/register.go41//COMMENT
LOW…-go/networkattachmentdefinitionclient/fake/register.go41//COMMENT
LOWstaging/src/kubevirt.io/client-go/kubecli/kubecli.go241// 1. CommandLineLocation - this parsed from the command line, so it must be late bound. If you specify this,COMMENT
LOWstaging/src/kubevirt.io/client-go/kubecli/kubecli.go261// 3. Determine the cluster info and auth info to use. At this point, we may or may not have a context. TheyCOMMENT
LOWstaging/src/kubevirt.io/client-go/kubecli/kubecli.go281//COMMENT
LOW…irt.io/client-go/prometheusoperator/scheme/register.go41//COMMENT
LOW…evirt.io/client-go/prometheusoperator/fake/register.go41//COMMENT
LOW…client-go/containerizeddataimporter/scheme/register.go41// AddToScheme adds all types of this clientset into the given scheme. This allows compositionCOMMENT
LOW…o/client-go/containerizeddataimporter/fake/register.go41// AddToScheme adds all types of this clientset into the given scheme. This allows compositionCOMMENT
LOW…/src/kubevirt.io/client-go/kubevirt/scheme/register.go61}COMMENT
LOW…virt/typed/core/v1/virtualmachineinstance_expansion.go241 Do(ctx).COMMENT
LOW…ng/src/kubevirt.io/client-go/kubevirt/fake/register.go61}COMMENT
LOWstaging/src/kubevirt.io/api/snapshot/v1beta1/types.go401 // VolumeRestoreOverrides gives the option to change properties of each restored volumeCOMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go81// VirtualMachineInstanceSpec is a description of a VirtualMachineInstance.COMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go101 // +optionalCOMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go121 // The possible options are:COMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go141 // +optionalCOMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go161 // Set DNS policy for the pod.COMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go181 // ResourceClaims define which ResourceClaims must be allocatedCOMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go201 // +listType=mapCOMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go261 TSCFrequency *int64 `json:"tscFrequency,omitempty"`COMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go281 Interfaces []VirtualMachineInstanceNetworkInterface `json:"interfaces,omitempty"`COMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go301 // +optionalCOMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go321 FSFreezeStatus string `json:"fsFreezeStatus,omitempty"`COMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go341COMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go381type PersistentVolumeClaimInfo struct {COMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go441type KernelInfo struct {COMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go1021 Failed bool `json:"failed,omitempty"`COMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go1101const (COMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go1161 // Similar to kubevirt.io/domain. Used on Pod.COMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go1181 WorkloadUpdateMigrationAnnotation string = "kubevirt.io/workloadUpdateMigration"COMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go1381 // DeprecatedVirtualMachineNameLabel is the name of the Virtual MachineCOMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go1401 // vm has the pod networking bind with a bridgeCOMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go1421 // VirtualMachinePodMemoryRequestsLabel indicates VMI pod Memory resource requestsCOMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go1441COMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go1461 QGSSocketPathAnnotation = "kubevirt.io/qgs-socket-path"COMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go1481 // ---COMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go1501 // # allow talking to the kube-dns pods in kubevirtCOMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go1781COMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go2001 UpdateVolumesStrategyMigration UpdateVolumesStrategy = "Migration"COMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go2061 // VirtualMachineStatusRunning indicates that the virtual machine is running.COMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go2081 // VirtualMachineStatusErrImagePull indicates that an error has occurred while pulling an image forCOMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go2121 PrintableStatus VirtualMachinePrintableStatus `json:"printableStatus,omitempty"`COMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go2141COMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go2161 // This is needed to correctly process the next strategy (for now only the RerunOnFailure)COMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go2241 // EndTimestamp is the timestamp when the backup endedCOMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go2381 // IOThreads - User mode based threads with a shared lock that perform I/O tasks. Can impact performance but offersCOMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go2401 // for an intentional or transient reason such as a user pause, snapshot,COMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go2421 // Number of seconds after the VirtualMachineInstance has started before liveness probes are initiated.COMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go2501const (COMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go2521 //COMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go2541 // +optionalCOMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go2581 // Specifies if kubevirt can be deleted if workloads are still present.COMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go2761 // The value zero indicates, restart immediately. If this value is nil, the default grace period for deletion of the coCOMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go2781COMMENT
260 more matches not shown…
Fake / Example Data14 hits · 18 pts
SeverityFileLineSnippetContext
LOWtools/csv-generator/csv-generator.go44 namespace := flag.String("namespace", "placeholder", "Namespace to use.")CODE
LOWtools/manifest-templator/manifest-templator.go92 csvNamespace := flag.String("csv-namespace", "placeholder", "")CODE
LOW…lidating-webhook/admitters/vmi-create-admitter_test.go467 map[string]string{v1.IgnitionAnnotation: "fake-data"},CODE
LOW…lidating-webhook/admitters/vmi-create-admitter_test.go490 map[string]string{v1.IgnitionAnnotation: "fake-data"},CODE
LOWpkg/virtctl/ssh/ssh_test.go78 fakeName = "fake-name"CODE
LOWpkg/virtctl/ssh/ssh_test.go86 Entry("with SSH username", ssh.SSHOptions{SSHUsername: "testuser"}, "testuser@fake-kind.fake-name.fake-ns"),CODE
LOWpkg/virtctl/ssh/ssh_test.go87 Entry("without SSH username", ssh.SSHOptions{}, "fake-kind.fake-name.fake-ns"),CODE
LOWpkg/virtctl/ssh/ssh_test.go93 expected := fmt.Sprintf("port-forward --stdio=true fake-kind/fake-name/fake-ns %d", sshPort)CODE
LOWpkg/virtctl/scp/scp_test.go66 Name: "fake-name",CODE
LOWpkg/virtctl/scp/scp_test.go74 Expect(scpTarget[0]).To(Equal("testuser@fake-kind.fake-name.fake-ns:/remote/fakepath"))CODE
LOWpkg/virtctl/scp/scp_test.go80 Expect(scpTarget[0]).To(Equal("fake-kind.fake-name.fake-ns:/remote/fakepath"))CODE
LOWpkg/virtctl/scp/scp_test.go105 Expect(scpTarget[0]).To(Equal("fake-kind.fake-name.fake-ns:/remote/fakepath"))CODE
LOWpkg/virtctl/scp/scp_test.go113 Expect(scpTarget[1]).To(Equal("fake-kind.fake-name.fake-ns:/remote/fakepath"))CODE
LOWpkg/virtctl/create/clone/clone_test.go60 flags := addFlag(nil, virtctlclone.SourceNameFlag, "fake-name")CODE
Structural Annotation Overuse8 hits · 14 pts
SeverityFileLineSnippetContext
LOWtests/console/console.go82// NOTE: This functions heritage limitations from `ExpectBatchWithValidatedSend` refer to it to check them.COMMENT
LOWtests/console/console.go91// NOTE: This functions inherits limitations from `ExpectBatchWithValidatedSend`, refer to it for more information.COMMENT
LOWdocs/debugging.md94### Step 1 - recompile go code, build and publish container imageCOMMENT
LOWdocs/debugging.md103### Step 2 - modify workload manifest to consume debug container image and execute delveCOMMENT
LOWdocs/debugging.md184### Step 3 - port-forward a local port to the target pod designated debug portCOMMENT
LOWdocs/debugging.md187### Step 4 - connect to localhost:2345 with your debuggerCOMMENT
LOWpkg/storage/snapshot/restore.go750 // Step 1: Remove backend label from the original backend PVCCOMMENT
LOWpkg/storage/snapshot/restore.go756 // Step 2: Update the restore PVC with backend labelsCOMMENT
Redundant / Tautological Comments9 hits · 14 pts
SeverityFileLineSnippetContext
LOWhack/version.sh54 # Check if the tree is dirty. default to dirtyCOMMENT
LOWhack/gen-client-python/deploy.sh34# Check if there are changes to commit, ignoring api_client.py & configuration.pyCOMMENT
LOWhack/prom-metric-linter/metric_name_linter.sh57# Check if the linter found any errors with the metrics names, if yes print and failCOMMENT
LOW…luster-up/cluster/k8s-1.35/sriov-node/configure_vfs.sh10 # Check if a VF is bound to a different driverCOMMENT
LOW…luster-up/cluster/k8s-1.35/sriov-node/configure_vfs.sh15 # Check if VF already configured with supported driverCOMMENT
LOW…luster-up/cluster/k8s-1.36/sriov-node/configure_vfs.sh10 # Check if a VF is bound to a different driverCOMMENT
LOW…luster-up/cluster/k8s-1.36/sriov-node/configure_vfs.sh15 # Check if VF already configured with supported driverCOMMENT
LOW…ster-up/cluster/kind-sriov/sriov-node/configure_vfs.sh10 # Check if a VF is bound to a different driverCOMMENT
LOW…ster-up/cluster/kind-sriov/sriov-node/configure_vfs.sh15 # Check if VF already configured with supported driverCOMMENT
Example Usage Blocks5 hits · 8 pts
SeverityFileLineSnippetContext
LOWhack/oci-import.sh10# Usage:COMMENT
LOW…/observability/examples/kubevirt-vm-labels-config.yaml1# Usage:COMMENT
LOW…ci/cluster-up/cluster/kind/configure-registry-proxy.sh14# Usage example:COMMENT
LOWautomation/repeated_test.sh226# How to use:COMMENT
LOWautomation/test.sh516# How to use:COMMENT
Hyper-Verbose Identifiers7 hits · 7 pts
SeverityFileLineSnippetContext
LOWautomation/label-approved-veps.py66def extract_enhancements_references(pr_body):CODE
LOWautomation/label-approved-veps.py131def _is_item_field_tracked_status(field_value_node):CODE
LOWautomation/label-approved-veps.py144def _check_item_fields_for_tracked_status(field_value_nodes):CODE
LOWautomation/label-approved-veps.py148def _extract_issue_if_tracked(item_node):CODE
LOWautomation/label-approved-veps.py183def _extract_page_data_from_gql_result(result, project_number_for_logging):CODE
LOWautomation/label-approved-veps.py209def get_tracked_enhancement_issues_from_project(project_number):CODE
LOWpkg/network/dhcp/server/server_test.go103 Context("function convertSearchDomainsToBytes(searchDomainStrings []string) ([]byte, error)", func() {CODE
AI Slop Vocabulary2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMstaging/src/kubevirt.io/api/core/v1/types.go652// migration state is not nil. Essentially this happens after the migration resource is created.COMMENT
MEDIUMpkg/virt-config/featuregate/active.go89 // These backups leverage libvirt's native backup capabilities, providing a storage-agnostic solution.COMMENT
Verbosity Indicators2 hits · 4 pts
SeverityFileLineSnippetContext
LOWpkg/storage/snapshot/restore.go750 // Step 1: Remove backend label from the original backend PVCCOMMENT
LOWpkg/storage/snapshot/restore.go756 // Step 2: Update the restore PVC with backend labelsCOMMENT
Unused Imports4 hits · 4 pts
SeverityFileLineSnippetContext
LOW…client-python/hard-coded-modules/v1_interface_slirp.py15CODE
LOW…client-python/hard-coded-modules/v1_interface_slirp.py16CODE
LOW…lient-python/hard-coded-modules/v1_interface_bridge.py15CODE
LOW…lient-python/hard-coded-modules/v1_interface_bridge.py16CODE
TODO Padding2 hits · 3 pts
SeverityFileLineSnippetContext
LOWstaging/src/kubevirt.io/client-go/log/log.go394 //TODO: implement proper behavior for unsupported GA commandsCOMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go2411 // TODO: implement a realistic TCP lifecycle hookCOMMENT
Decorative Section Separators1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMhack/version.sh20# -----------------------------------------------------------------------------COMMENT
AI Structural Patterns2 hits · 2 pts
SeverityFileLineSnippetContext
LOW…client-python/hard-coded-modules/v1_interface_slirp.py40CODE
LOW…lient-python/hard-coded-modules/v1_interface_bridge.py40CODE
Excessive Try-Catch Wrapping1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMautomation/label-approved-veps.py249 print(f"Error parsing project URL '{TARGET_PROJECT_URL}':\n{e}")CODE