Repository Analysis

prometheus/prometheus

The Prometheus monitoring system and time series database.

2.4 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of prometheus/prometheus, a Go project with 65,194 GitHub stars. SynthScan v2.0 examined 484,212 lines of code across 1503 source files, recording 1124 pattern matches distributed across 12 syntactic categories. The overall adjusted score of 2.4 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.4
Adjusted Score
2.4
Raw Score
100%
Time Factor
2026-07-14
Last Push
65.2K
Stars
Go
Language
484.2K
Lines of Code
1.5K
Files
1.1K
Pattern Hits
2026-07-14
Scan Date
0.00
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 2HIGH 0MEDIUM 11LOW 1111

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 1124 distinct pattern matches across 12 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.

Over-Commented Block1059 hits · 1052 pts
SeverityFileLineSnippetContext
LOWcmd/prometheus/reload_test.go1// Copyright The Prometheus AuthorsCOMMENT
LOWcmd/prometheus/main_upgrade_test.go1// Copyright The Prometheus AuthorsCOMMENT
LOWcmd/prometheus/scrape_failure_log_test.go1// Copyright The Prometheus AuthorsCOMMENT
LOWcmd/prometheus/upload_test.go1// Copyright The Prometheus AuthorsCOMMENT
LOWcmd/prometheus/query_log_test.go1// Copyright The Prometheus AuthorsCOMMENT
LOWcmd/prometheus/features_test.go1// Copyright The Prometheus AuthorsCOMMENT
LOWcmd/prometheus/main_unix_test.go1// Copyright The Prometheus AuthorsCOMMENT
LOWcmd/prometheus/main.go1// Copyright The Prometheus AuthorsCOMMENT
LOWcmd/prometheus/main_test.go1// Copyright The Prometheus AuthorsCOMMENT
LOWcmd/promtool/rules_test.go1// Copyright The Prometheus AuthorsCOMMENT
LOWcmd/promtool/query.go1// Copyright The Prometheus AuthorsCOMMENT
LOWcmd/promtool/backfill_test.go1// Copyright The Prometheus AuthorsCOMMENT
LOWcmd/promtool/unittest.go1// Copyright The Prometheus AuthorsCOMMENT
LOWcmd/promtool/metrics.go1// Copyright The Prometheus AuthorsCOMMENT
LOWcmd/promtool/analyze_test.go1// Copyright The Prometheus AuthorsCOMMENT
LOWcmd/promtool/metrics_test.go1// Copyright The Prometheus AuthorsCOMMENT
LOWcmd/promtool/rules.go1// Copyright The Prometheus AuthorsCOMMENT
LOWcmd/promtool/unittest_test.go1// Copyright The Prometheus AuthorsCOMMENT
LOWcmd/promtool/sd_test.go1// Copyright The Prometheus AuthorsCOMMENT
LOWcmd/promtool/tsdb_test.go1// Copyright The Prometheus AuthorsCOMMENT
LOWcmd/promtool/archive.go1// Copyright The Prometheus AuthorsCOMMENT
LOWcmd/promtool/debug.go1// Copyright The Prometheus AuthorsCOMMENT
LOWcmd/promtool/backfill.go1// Copyright The Prometheus AuthorsCOMMENT
LOWcmd/promtool/tsdb_posix_test.go1// Copyright The Prometheus AuthorsCOMMENT
LOWcmd/promtool/analyze.go1// Copyright The Prometheus AuthorsCOMMENT
LOWcmd/promtool/tsdb.go1// Copyright The Prometheus AuthorsCOMMENT
LOWcmd/promtool/sd.go1// Copyright The Prometheus AuthorsCOMMENT
LOWcmd/promtool/main.go1// Copyright The Prometheus AuthorsCOMMENT
LOWcmd/promtool/main_test.go1// Copyright The Prometheus AuthorsCOMMENT
LOWtracing/tracing_test.go1// Copyright The Prometheus AuthorsCOMMENT
LOWtracing/tracing.go1// Copyright The Prometheus AuthorsCOMMENT
LOWdocumentation/examples/prometheus-marathon.yml21 # in their app definitions. Example using a port mapping (container or bridge networking):COMMENT
LOWdocumentation/examples/prometheus-kubernetes.yml1# A scrape configuration for running Prometheus on a Kubernetes cluster.COMMENT
LOWdocumentation/examples/prometheus-kubernetes.yml61 action: keepCOMMENT
LOWdocumentation/examples/prometheus-kubernetes.yml101 # retrieve those metrics.COMMENT
LOWdocumentation/examples/prometheus-kubernetes.yml121COMMENT
LOWdocumentation/examples/prometheus-kubernetes.yml161 # regex: trueCOMMENT
LOWdocumentation/examples/prometheus-kubernetes.yml261COMMENT
LOWdocumentation/examples/prometheus-kubernetes.yml281 # - source_labels: [__meta_kubernetes_pod_annotation_example_io_metric_path]COMMENT
LOWdocumentation/examples/prometheus-dockerswarm.yml21 - source_labels: [__meta_dockerswarm_node_address]COMMENT
LOWdocumentation/examples/prometheus-eureka.yml21 # eureka:COMMENT
LOWdocumentation/examples/prometheus-eureka.yml41 # Example relabel to customize metric path based on applicationCOMMENT
LOWdocumentation/examples/prometheus-eureka.yml61 #COMMENT
LOWdocumentation/examples/prometheus-nomad.yml1# An example scrape configuration for running Prometheus withCOMMENT
LOW…cumentation/examples/custom-sd/adapter/adapter_test.go1// Copyright The Prometheus AuthorsCOMMENT
LOWdocumentation/examples/custom-sd/adapter/adapter.go1// Copyright The Prometheus AuthorsCOMMENT
LOWdocumentation/examples/custom-sd/adapter-usage/main.go1// Copyright The Prometheus AuthorsCOMMENT
LOW…xamples/remote_storage/example_write_adapter/server.go1// Copyright The Prometheus AuthorsCOMMENT
LOW…examples/remote_storage/remote_storage_adapter/main.go1// Copyright The Prometheus AuthorsCOMMENT
LOW…mote_storage/remote_storage_adapter/influxdb/client.go1// Copyright The Prometheus AuthorsCOMMENT
LOW…storage/remote_storage_adapter/influxdb/client_test.go1// Copyright The Prometheus AuthorsCOMMENT
LOW…orage/remote_storage_adapter/opentsdb/tagvalue_test.go1// Copyright The Prometheus AuthorsCOMMENT
LOW…mote_storage/remote_storage_adapter/opentsdb/client.go1// Copyright The Prometheus AuthorsCOMMENT
LOW…te_storage/remote_storage_adapter/opentsdb/tagvalue.go1// Copyright The Prometheus AuthorsCOMMENT
LOW…te_storage/remote_storage_adapter/opentsdb/tagvalue.go21)COMMENT
LOW…te_storage/remote_storage_adapter/opentsdb/tagvalue.go41// - If ':' is encountered, it is replaced by '_.'.COMMENT
LOW…storage/remote_storage_adapter/opentsdb/client_test.go1// Copyright The Prometheus AuthorsCOMMENT
LOW…mote_storage/remote_storage_adapter/graphite/escape.go1// Copyright The Prometheus AuthorsCOMMENT
LOW…mote_storage/remote_storage_adapter/graphite/escape.go41// in filenames, so we also need to use only valid filename characters.COMMENT
LOW…mote_storage/remote_storage_adapter/graphite/escape.go61// way in Graphite.COMMENT
999 more matches not shown…
Structural Annotation Overuse15 hits · 26 pts
SeverityFileLineSnippetContext
LOWcmd/prometheus/scrape_failure_log_test.go56 // Step 1: Set up an initial Prometheus configuration that globallyCOMMENT
LOWcmd/prometheus/scrape_failure_log_test.go99 // Step 2: Update the Prometheus configuration to remove the scrape failureCOMMENT
LOWcmd/prometheus/scrape_failure_log_test.go133 // Step 3: Re-add the scrape failure log file setting, but this time underCOMMENT
LOWtsdb/head_append_v2_test.go4887 // Step 1: Establish a series with histogram dataCOMMENT
LOWtsdb/head_append_v2_test.go4893 // Step 2: Add a float staleness markerCOMMENT
LOWtsdb/head_test.go7974 // Step 1: Establish a series with histogram dataCOMMENT
LOWtsdb/head_test.go7980 // Step 2: Add a float staleness markerCOMMENT
LOWtsdb/head_test.go8928 // Step 1: Create a batch of series and make them stale.COMMENT
LOWtsdb/head_test.go8940 // Step 2: Truncate stale series. This removes them from the Head andCOMMENT
LOWtsdb/head_test.go8952 // Step 3: Add new series AFTER the truncation. In the WAL, these seriesCOMMENT
LOWtsdb/head_test.go8965 // Step 4: Close and re-open the Head to trigger WAL replay.COMMENT
LOWtsdb/chunks/head_chunks.go837// NOTE: This method needs to be called at least once after creating ChunkDiskMapperCOMMENT
LOWconfig/config.go395// NOTE: This method should not be used outside of this package. Use Load or LoadFile instead.COMMENT
LOWdocs/configuration/configuration.md263 # WARNING: The "NoTranslation" setting has significant known risks and limitations (see https://prometheus.io/docs/pCOMMENT
LOWpromql/parser/lex.go792// NOTE: This function as well as the helper function digitVal() and associatedCOMMENT
Hallucination Indicators2 hits · 20 pts
SeverityFileLineSnippetContext
CRITICALtsdb/ooo_head_read.go517 ir.ch.head.metrics.seriesNotFound.Inc()CODE
CRITICALtsdb/ooo_head_read.go530 getOOOSeriesChunks(s, ir.ch.head.opts.UseXOR2FloatEncoding(), ir.ch.head.opts.EnableHistogramSTEncoding.Load(), ir.ch.mCODE
Verbosity Indicators11 hits · 20 pts
SeverityFileLineSnippetContext
LOWcmd/prometheus/scrape_failure_log_test.go56 // Step 1: Set up an initial Prometheus configuration that globallyCOMMENT
LOWcmd/prometheus/scrape_failure_log_test.go99 // Step 2: Update the Prometheus configuration to remove the scrape failureCOMMENT
LOWcmd/prometheus/scrape_failure_log_test.go133 // Step 3: Re-add the scrape failure log file setting, but this time underCOMMENT
LOWtsdb/head_append_v2_test.go4887 // Step 1: Establish a series with histogram dataCOMMENT
LOWtsdb/head_append_v2_test.go4893 // Step 2: Add a float staleness markerCOMMENT
LOWtsdb/head_test.go7974 // Step 1: Establish a series with histogram dataCOMMENT
LOWtsdb/head_test.go7980 // Step 2: Add a float staleness markerCOMMENT
LOWtsdb/head_test.go8928 // Step 1: Create a batch of series and make them stale.COMMENT
LOWtsdb/head_test.go8940 // Step 2: Truncate stale series. This removes them from the Head andCOMMENT
LOWtsdb/head_test.go8952 // Step 3: Add new series AFTER the truncation. In the WAL, these seriesCOMMENT
LOWtsdb/head_test.go8965 // Step 4: Close and re-open the Head to trigger WAL replay.COMMENT
AI Slop Vocabulary5 hits · 15 pts
SeverityFileLineSnippetContext
MEDIUMprompb/io/prometheus/client/decoder.go33 // We leverage the fact those two don't collide.COMMENT
MEDIUMtsdb/fileutil/direct_io_force.go14// This allows seamless testing of the Direct I/O writer across all tsdb tests.COMMENT
MEDIUMweb/api/v1/search_test.go1099 // No line should decode as a success trailer. This is robust to aCOMMENT
MEDIUMscrape/st_synthesis.go47// to leverage native DetectReset and Sub methods.COMMENT
MEDIUMpromql/functions.go580 // extrapolationThreshold below. Essentially, we are assuming a more orCOMMENT
Self-Referential Comments4 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUMdocumentation/examples/prometheus-dockerswarm.yml10 # Create a job for Docker daemons.COMMENT
MEDIUMdocumentation/examples/prometheus-dockerswarm.yml25 # Create a job for Docker Swarm containers.COMMENT
MEDIUMdocumentation/examples/prometheus-docker.yml9 # Create a job for Docker daemon.COMMENT
MEDIUMdocumentation/examples/prometheus-docker.yml18 # Create a job for Docker Swarm containers.COMMENT
Fake / Example Data12 hits · 12 pts
SeverityFileLineSnippetContext
LOWutil/annotations/annotations_test.go47 warnings, infos := annos.AsStrings("lorem ipsum dolor sit amet", 0, 0)CODE
LOWutil/annotations/annotations_test.go47 warnings, infos := annos.AsStrings("lorem ipsum dolor sit amet", 0, 0)CODE
LOWweb/ui/react-app/src/pages/graph/GraphControls.test.tsx95 expect(timeInput.prop('placeholder')).toEqual('End time');CODE
LOWweb/ui/react-app/src/pages/graph/GraphControls.test.tsx119 expect(input.prop('placeholder')).toEqual('Res. (s)');CODE
LOWweb/ui/react-app/src/pages/graph/Panel.test.tsx76 expect(timeInput.prop('placeholder')).toEqual('Evaluation time');CODE
LOWweb/ui/react-app/src/pages/graph/TimeInput.test.tsx58 expect(input.prop('placeholder')).toEqual(timeInputProps.placeholder);CODE
LOWweb/ui/mantine-ui/src/promql/ast.ts12 placeholder = "placeholder",CODE
LOWdiscovery/oci/oci_test.go199 "CreatedBy": "user@example.com",CODE
LOWdiscovery/oci/oci_test.go212 require.Equal(t, model.LabelValue("user@example.com"), labels[ociLabelDefinedTagPrefix+"Oracle_Tags_CreatedBy"])CODE
LOWdiscovery/consul/consul_test.go272 Token: "fake-token",CODE
LOWdiscovery/consul/consul_test.go367 config.Token = "fake-token"CODE
LOWdiscovery/consul/consul_test.go588 Token: "fake-token",CODE
Slop Phrases5 hits · 10 pts
SeverityFileLineSnippetContext
LOWcmd/prometheus/main.go1240 // Don't forget to release the reloadReady channel so that waiting blocks can exit normally.COMMENT
MEDIUMdocumentation/examples/prometheus-eureka.yml19 # If you are using SpringBoot, you can add metadata using eureka.instance.metadataMap like this:COMMENT
LOW.github/ISSUE_TEMPLATE/bug_report.yml52 description: Insert relevant configuration here. Don't forget to remove secrets.CODE
LOW.github/ISSUE_TEMPLATE/bug_report.yml68 description: Insert relevant configuration here. Don't forget to remove secrets.CODE
MEDIUMmodel/textparse/benchmark_test.go42// For local iteration, feel free to adjust cases/comment out code etc.COMMENT
Hyper-Verbose Identifiers8 hits · 8 pts
SeverityFileLineSnippetContext
LOWweb/ui/react-app/src/pages/graph/HistogramHelpers.ts5export function calculateDefaultExpBucketWidth(CODE
LOW…/ui/mantine-ui/src/pages/AlertmanagerDiscoveryPage.tsx12export default function AlertmanagerDiscoveryPage() {CODE
LOWweb/ui/mantine-ui/src/pages/query/HistogramHelpers.ts3export function calculateDefaultExpBucketWidth(CODE
LOWweb/ui/module/codemirror-promql/src/complete/hybrid.ts151function getMetricNameInVectorSelector(tree: SyntaxNode, state: EditorState): string {CODE
LOWweb/ui/module/codemirror-promql/src/complete/hybrid.ts188function isAfterClosedFunctionCallBody(state: EditorState, node: SyntaxNode, pos: number): boolean {CODE
LOWweb/ui/module/codemirror-promql/src/complete/hybrid.ts215export function computeEndCompletePosition(state: EditorState, node: SyntaxNode, pos: number): number {CODE
LOWweb/ui/module/codemirror-promql/src/complete/hybrid.ts259function computeStartCompleteLabelPositionInLabelMatcherOrInGroupingLabel(node: SyntaxNode, pos: number): number {CODE
LOWweb/ui/module/codemirror-promql/src/complete/hybrid.ts277export function computeStartCompletePosition(state: EditorState, node: SyntaxNode, pos: number): number {CODE
TODO Padding1 hit · 2 pts
SeverityFileLineSnippetContext
LOWweb/api/v1/openapi_test.go184// TODO: Add test to verify all routes from api.go Register() are covered in OpenAPI spec.COMMENT
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWweb/api/testhelpers/request.go30// Example usage:COMMENT
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippetContext
LOWscripts/sync_repo_files.sh348 # Check if a PR is already opened for the branch from the prombot fork.COMMENT