Repository Analysis

grpc/grpc-java

The Java gRPC implementation. HTTP/2 based RPC

10.8 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of grpc/grpc-java, a Java project with 12,047 GitHub stars. SynthScan v2.0 examined 415,597 lines of code across 1777 source files, recording 518 pattern matches distributed across 7 syntactic categories. The overall adjusted score of 10.8 places this repository in the Low 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).

10.8
Adjusted Score
10.8
Raw Score
100%
Time Factor
2026-07-09
Last Push
12.0K
Stars
Java
Language
415.6K
Lines of Code
1.8K
Files
518
Pattern Hits
2026-07-14
Scan Date
0.26
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 456HIGH 0MEDIUM 2LOW 60

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 518 distinct pattern matches across 7 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 Indicators456 hits · 4435 pts
SeverityFileLineSnippetContext
CRITICAL…grpc/gcp/observability/interceptors/LogHelperTest.java187 io.grpc.observabilitylog.v1.Payload.newBuilder()CODE
CRITICAL…grpc/gcp/observability/interceptors/LogHelperTest.java193 io.grpc.observabilitylog.v1.Payload.newBuilder()CODE
CRITICAL…grpc/gcp/observability/interceptors/LogHelperTest.java199 io.grpc.observabilitylog.v1.Payload.newBuilder().putMetadata("a", DATA_A).build());CODE
CRITICAL…grpc/gcp/observability/interceptors/LogHelperTest.java203 io.grpc.observabilitylog.v1.Payload.newBuilder().putMetadata("a", DATA_A).build());CODE
CRITICAL…grpc/gcp/observability/interceptors/LogHelperTest.java206 io.grpc.observabilitylog.v1.Payload.newBuilder()CODE
CRITICAL…grpc/gcp/observability/interceptors/LogHelperTest.java212 io.grpc.observabilitylog.v1.Payload.newBuilder()CODE
CRITICAL…grpc/gcp/observability/interceptors/LogHelperTest.java219 io.grpc.observabilitylog.v1.Payload.newBuilder()CODE
CRITICAL…/io/grpc/gcp/observability/logging/GcpLogSinkTest.java84 .setPayload(io.grpc.observabilitylog.v1.Payload.newBuilder().setTimeout(TIMEOUT))CODE
CRITICAL…grpc/opentelemetry/OpenTelemetryTracingModuleTest.java244 io.opentelemetry.api.common.Attributes.builder()CODE
CRITICAL…grpc/opentelemetry/OpenTelemetryTracingModuleTest.java254 io.opentelemetry.api.common.Attributes.builder()CODE
CRITICAL…grpc/opentelemetry/OpenTelemetryTracingModuleTest.java264 io.opentelemetry.api.common.Attributes.builder()CODE
CRITICAL…grpc/opentelemetry/OpenTelemetryTracingModuleTest.java326 io.opentelemetry.api.common.Attributes.builder()CODE
CRITICAL…grpc/opentelemetry/OpenTelemetryTracingModuleTest.java336 io.opentelemetry.api.common.Attributes.builder()CODE
CRITICAL…grpc/opentelemetry/OpenTelemetryTracingModuleTest.java355 io.opentelemetry.api.common.Attributes.builder()CODE
CRITICAL…grpc/opentelemetry/OpenTelemetryTracingModuleTest.java365 io.opentelemetry.api.common.Attributes.builder()CODE
CRITICAL…grpc/opentelemetry/OpenTelemetryTracingModuleTest.java375 io.opentelemetry.api.common.Attributes.builder()CODE
CRITICAL…grpc/opentelemetry/OpenTelemetryTracingModuleTest.java531 io.opentelemetry.api.common.Attributes.builder()CODE
CRITICAL…grpc/opentelemetry/OpenTelemetryTracingModuleTest.java542 io.opentelemetry.api.common.Attributes.builder()CODE
CRITICAL…grpc/opentelemetry/OpenTelemetryTracingModuleTest.java552 io.opentelemetry.api.common.Attributes.builder()CODE
CRITICAL…grpc/opentelemetry/OpenTelemetryTracingModuleTest.java562 io.opentelemetry.api.common.Attributes.builder()CODE
CRITICAL…io/grpc/opentelemetry/OpenTelemetryMetricSinkTest.java85 com.google.common.truth.Truth.assertThat(sink.getMeasuresSize()).isEqualTo(3);CODE
CRITICAL…io/grpc/opentelemetry/OpenTelemetryMetricSinkTest.java87 com.google.common.truth.Truth.assertThat(sink.getMeasures().get(0).getMeasure())CODE
CRITICAL…io/grpc/opentelemetry/OpenTelemetryMetricSinkTest.java90 com.google.common.truth.Truth.assertThat(sink.getMeasures().get(1).getMeasure())CODE
CRITICAL…io/grpc/opentelemetry/OpenTelemetryMetricSinkTest.java93 com.google.common.truth.Truth.assertThat(sink.getMeasures().get(2).getMeasure())CODE
CRITICAL…io/grpc/opentelemetry/OpenTelemetryMetricSinkTest.java123 com.google.common.truth.Truth.assertThat(sink.getMeasuresSize()).isEqualTo(3);CODE
CRITICAL…io/grpc/opentelemetry/OpenTelemetryMetricSinkTest.java125 com.google.common.truth.Truth.assertThat(sink.getMeasures().get(0)).isNull();CODE
CRITICAL…io/grpc/opentelemetry/OpenTelemetryMetricSinkTest.java127 com.google.common.truth.Truth.assertThat(sink.getMeasures().get(1)).isNull();CODE
CRITICAL…io/grpc/opentelemetry/OpenTelemetryMetricSinkTest.java129 com.google.common.truth.Truth.assertThat(sink.getMeasures().get(2)).isNull();CODE
CRITICAL…io/grpc/opentelemetry/OpenTelemetryMetricSinkTest.java441 = io.opentelemetry.api.common.Attributes.of(CODE
CRITICAL…grpc/opentelemetry/OpenTelemetryMetricsModuleTest.java290 io.opentelemetry.api.common.Attributes attributes = io.opentelemetry.api.common.Attributes.of(CODE
CRITICAL…grpc/opentelemetry/OpenTelemetryMetricsModuleTest.java334 = io.opentelemetry.api.common.Attributes.of(CODE
CRITICAL…grpc/opentelemetry/OpenTelemetryMetricsModuleTest.java466 = io.opentelemetry.api.common.Attributes.of(CODE
CRITICAL…grpc/opentelemetry/OpenTelemetryMetricsModuleTest.java526 io.opentelemetry.api.common.Attributes attributes = io.opentelemetry.api.common.Attributes.of(CODE
CRITICAL…grpc/opentelemetry/OpenTelemetryMetricsModuleTest.java557 = io.opentelemetry.api.common.Attributes.of(CODE
CRITICAL…grpc/opentelemetry/OpenTelemetryMetricsModuleTest.java641 = io.opentelemetry.api.common.Attributes.of(CODE
CRITICAL…grpc/opentelemetry/OpenTelemetryMetricsModuleTest.java840 = io.opentelemetry.api.common.Attributes.of(CODE
CRITICAL…grpc/opentelemetry/OpenTelemetryMetricsModuleTest.java1009 = io.opentelemetry.api.common.Attributes.of(CODE
CRITICAL…grpc/opentelemetry/OpenTelemetryMetricsModuleTest.java1101 = io.opentelemetry.api.common.Attributes.of(CODE
CRITICAL…grpc/opentelemetry/OpenTelemetryMetricsModuleTest.java1154 = io.opentelemetry.api.common.Attributes.of(CODE
CRITICAL…grpc/opentelemetry/OpenTelemetryMetricsModuleTest.java1159 = io.opentelemetry.api.common.Attributes.of(CODE
CRITICAL…grpc/opentelemetry/OpenTelemetryMetricsModuleTest.java1269 io.opentelemetry.api.common.Attributes attributes = io.opentelemetry.api.common.Attributes.of(CODE
CRITICAL…grpc/opentelemetry/OpenTelemetryMetricsModuleTest.java1274 = io.opentelemetry.api.common.Attributes.of(CODE
CRITICAL…grpc/opentelemetry/OpenTelemetryMetricsModuleTest.java1335 io.opentelemetry.api.common.Attributes attributes = io.opentelemetry.api.common.Attributes.of(CODE
CRITICAL…grpc/opentelemetry/OpenTelemetryMetricsModuleTest.java1340 = io.opentelemetry.api.common.Attributes.of(CODE
CRITICAL…grpc/opentelemetry/OpenTelemetryMetricsModuleTest.java1405 io.opentelemetry.api.common.Attributes attributes = io.opentelemetry.api.common.Attributes.of(CODE
CRITICAL…grpc/opentelemetry/OpenTelemetryMetricsModuleTest.java1410 = io.opentelemetry.api.common.Attributes.of(CODE
CRITICAL…grpc/opentelemetry/OpenTelemetryMetricsModuleTest.java1471 io.opentelemetry.api.common.Attributes attributes = io.opentelemetry.api.common.Attributes.of(CODE
CRITICAL…grpc/opentelemetry/OpenTelemetryMetricsModuleTest.java1476 = io.opentelemetry.api.common.Attributes.of(CODE
CRITICAL…grpc/opentelemetry/OpenTelemetryMetricsModuleTest.java1625 io.opentelemetry.api.common.Attributes attributes = io.opentelemetry.api.common.Attributes.of(CODE
CRITICAL…grpc/opentelemetry/OpenTelemetryMetricsModuleTest.java1659 = io.opentelemetry.api.common.Attributes.of(CODE
CRITICAL…grpc/opentelemetry/OpenTelemetryMetricsModuleTest.java1752 io.opentelemetry.api.common.Attributes.of(CODE
CRITICAL…grpc/opentelemetry/OpenTelemetryMetricsModuleTest.java1788 io.opentelemetry.api.common.Attributes.of(CODE
CRITICAL…grpc/opentelemetry/OpenTelemetryMetricsModuleTest.java1822 io.opentelemetry.api.common.Attributes.of(METHOD_KEY, "other");CODE
CRITICAL…grpc/opentelemetry/OpenTelemetryMetricsModuleTest.java1842 io.opentelemetry.api.common.Attributes.of(CODE
CRITICAL…grpc/opentelemetry/OpenTelemetryMetricsModuleTest.java1884 io.opentelemetry.api.common.Attributes attributes = io.opentelemetry.api.common.Attributes.of(CODE
CRITICAL…grpc/opentelemetry/OpenTelemetryMetricsModuleTest.java1928 io.opentelemetry.api.common.Attributes attributes = io.opentelemetry.api.common.Attributes.of(CODE
CRITICAL…grpc/opentelemetry/OpenTelemetryMetricsModuleTest.java1972 io.opentelemetry.api.common.Attributes attributes = io.opentelemetry.api.common.Attributes.of(CODE
CRITICAL…/io/grpc/opentelemetry/OpenTelemetryMetricsModule.java282 AttributesBuilder builder = io.opentelemetry.api.common.Attributes.builder()CODE
CRITICAL…/io/grpc/opentelemetry/OpenTelemetryMetricsModule.java361 AttributesBuilder builder = io.opentelemetry.api.common.Attributes.builder()CODE
CRITICAL…/io/grpc/opentelemetry/OpenTelemetryMetricsModule.java392 AttributesBuilder builder = io.opentelemetry.api.common.Attributes.builder()CODE
396 more matches not shown…
Over-Commented Block53 hits · 53 pts
SeverityFileLineSnippetContext
LOW…src/main/java/io/grpc/internal/ManagedChannelImpl.java261 // 1b delayedTransport.shutdown()COMMENT
LOW…rc/main/java/io/grpc/internal/SerializingExecutor.java101 try {COMMENT
LOW…n/java/io/grpc/internal/PickFirstLeafLoadBalancer.java301 helper.refreshNameResolution();COMMENT
LOW…/src/main/java/io/grpc/internal/ProxyDetectorImpl.java41import javax.annotation.Nullable;COMMENT
LOW…/src/main/java/io/grpc/internal/ProxyDetectorImpl.java61 // UNBREAK THE CONFIG FILE.COMMENT
LOW…/src/main/java/io/grpc/internal/ProxyDetectorImpl.java81 // coredump_dir /var/spool/squidCOMMENT
LOW…/src/main/java/io/grpc/internal/ProxyDetectorImpl.java101 //COMMENT
LOWistio-interop-testing/third_party/istio/import.sh1#!/bin/bashCOMMENT
LOW…/java/io/grpc/binder/internal/BinderTransportTest.java121COMMENT
LOW…/io/grpc/opentelemetry/OpenTelemetryTracingModule.java441 //COMMENT
LOW…est/java/io/grpc/netty/NettyAdaptiveCumulatorTest.java301 private ByteBuf in;COMMENT
LOW…ty/src/main/java/io/grpc/netty/NettyClientHandler.java961 // since the main time servers should use abrupt GOAWAYs if there is a protocol error, and ifCOMMENT
LOW…rc/main/java/io/grpc/netty/NettyAdaptiveCumulator.java161COMMENT
LOW…rc/jmh/java/io/grpc/netty/InboundHeadersBenchmark.java141 private static void clientHandler(Blackhole bh, Http2Headers headers) {COMMENT
LOW…rc/jmh/java/io/grpc/netty/InboundHeadersBenchmark.java161 // long c = 10L;COMMENT
LOWgradle/libs.versions.toml1[versions]COMMENT
LOWgradle/libs.versions.toml81javax-servlet-api = "javax.servlet:javax.servlet-api:4.0.1"COMMENT
LOW…o/grpc/examples/preserialized/PreSerializedServer.java101 responseObserver.onCompleted();COMMENT
LOW…xamples/manualflowcontrol/ManualFlowControlServer.java41 (ServerCallStreamObserver<HelloReply>) responseObserver;COMMENT
LOW…xamples/manualflowcontrol/ManualFlowControlClient.java61 //COMMENT
LOW…n/java/io/grpc/examples/keepalive/KeepAliveClient.java61COMMENT
LOW…n/java/io/grpc/examples/keepalive/KeepAliveServer.java41COMMENT
LOWbuildscripts/sonatype-upload.sh1#!/bin/bashCOMMENT
LOWbuildscripts/sonatype-upload.sh61COMMENT
LOWbuildscripts/sonatype-upload.sh121# -H "Authorization: Bearer ${USERPASS}" \COMMENT
LOWbuildscripts/sign-local-repo.sh1#!/bin/bashCOMMENT
LOWbuildscripts/observability-test/build_docker.sh1#!/bin/bashCOMMENT
LOWbuildscripts/observability-test/run.sh1#!/bin/bashCOMMENT
LOWbuildscripts/kokoro/psm-interop-build-java.sh1#!/usr/bin/env bashCOMMENT
LOWbuildscripts/kokoro/psm-interop-build-java.sh41 set +xCOMMENT
LOWbuildscripts/kokoro/unix.sh1#!/bin/bashCOMMENT
LOW…rc/context/java/io/grpc/ThreadLocalContextStorage.java41 @OverrideCOMMENT
LOW…n/java/io/grpc/okhttp/internal/OkHostnameVerifier.java181 // Invalid domain nameCOMMENT
LOW…ttp/main/java/io/grpc/okhttp/internal/CipherSuite.java101 TLS_DHE_DSS_WITH_AES_128_CBC_SHA256("TLS_DHE_DSS_WITH_AES_128_CBC_SHA256", 0x0040, 5246, 7, 21),COMMENT
LOW…ttp/main/java/io/grpc/okhttp/internal/CipherSuite.java121 // TLS_PSK_WITH_RC4_128_SHA("TLS_PSK_WITH_RC4_128_SHA", 0x008a, 4279, MAX_VALUE, MAX_VALUE),COMMENT
LOW…ttp/main/java/io/grpc/okhttp/internal/CipherSuite.java141 TLS_DHE_RSA_WITH_AES_128_GCM_SHA256("TLS_DHE_RSA_WITH_AES_128_GCM_SHA256", 0x009e, 5288, 8, 21),COMMENT
LOW…ttp/main/java/io/grpc/okhttp/internal/CipherSuite.java161 // TLS_DHE_PSK_WITH_AES_128_CBC_SHA256("TLS_DHE_PSK_WITH_AES_128_CBC_SHA256", 0x00b2, 5487, MAX_VALUE, MAX_VALUE),COMMENT
LOW…ttp/main/java/io/grpc/okhttp/internal/CipherSuite.java241 // TLS_RSA_WITH_ARIA_128_CBC_SHA256("TLS_RSA_WITH_ARIA_128_CBC_SHA256", 0xc03c, 6209, MAX_VALUE, MAX_VALUE),COMMENT
LOW…ttp/main/java/io/grpc/okhttp/internal/CipherSuite.java261 // TLS_RSA_WITH_ARIA_128_GCM_SHA256("TLS_RSA_WITH_ARIA_128_GCM_SHA256", 0xc050, 6209, MAX_VALUE, MAX_VALUE),COMMENT
LOW…ttp/main/java/io/grpc/okhttp/internal/CipherSuite.java281 // TLS_PSK_WITH_ARIA_128_CBC_SHA256("TLS_PSK_WITH_ARIA_128_CBC_SHA256", 0xc064, 6209, MAX_VALUE, MAX_VALUE),COMMENT
LOW…ttp/main/java/io/grpc/okhttp/internal/CipherSuite.java301 // TLS_ECDH_RSA_WITH_CAMELLIA_128_CBC_SHA256("TLS_ECDH_RSA_WITH_CAMELLIA_128_CBC_SHA256", 0xc078, 6367, MAX_VALUE, MAXCOMMENT
LOW…ttp/main/java/io/grpc/okhttp/internal/CipherSuite.java321 // TLS_ECDH_RSA_WITH_CAMELLIA_128_GCM_SHA256("TLS_ECDH_RSA_WITH_CAMELLIA_128_GCM_SHA256", 0xc08c, 6367, MAX_VALUE, MAXCOMMENT
LOW…ttp/main/java/io/grpc/okhttp/internal/CipherSuite.java341 // TLS_RSA_WITH_AES_128_CCM_8("TLS_RSA_WITH_AES_128_CCM_8", 0xc0a0, 6655, MAX_VALUE, MAX_VALUE),COMMENT
LOWxds/third_party/protoc-gen-validate/import.sh1#!/bin/bashCOMMENT
LOWxds/third_party/envoy/import.sh1#!/bin/bashCOMMENT
LOWxds/third_party/googleapis/import.sh1#!/bin/bashCOMMENT
LOWxds/third_party/cel-spec/import.sh1#!/bin/bashCOMMENT
LOWxds/third_party/xds/import.sh1#!/bin/bashCOMMENT
LOW…n/java/io/grpc/xds/WeightedRoundRobinLoadBalancer.java641COMMENT
LOW…c/main/java/io/grpc/xds/client/ControlPlaneClient.java161COMMENT
LOWcompiler/src/java_plugin/cpp/java_generator.cpp21// multiplied many times and could easily bloat binaries if added to withoutCOMMENT
LOWcompiler/src/java_plugin/cpp/java_generator.cpp41#include "java_generator.h"COMMENT
LOWcompiler/src/java_plugin/cpp/java_generator.cpp61#endifCOMMENT
Self-Referential Comments2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMbuildscripts/kokoro/psm-interop-build-java.sh17# This file defines psm::lang::build_docker_images, which is directly calledCOMMENT
MEDIUMbuildscripts/kokoro/unix.sh3# This file is used for both Linux and MacOS builds.COMMENT
Fake / Example Data4 hits · 4 pts
SeverityFileLineSnippetContext
LOW…/java/io/grpc/internal/DelayedClientTransportTest.java113 private final CallOptions callOptions = CallOptions.DEFAULT.withAuthority("dummy_value");CODE
LOW…src/test/java/io/grpc/internal/ClientCallImplTest.java381 final CallOptions callOptions = baseCallOptions.withAuthority("dummy_value");CODE
LOW…t/java/io/grpc/xds/WeightedTargetLoadBalancerTest.java188 Attributes.Key<Object> fakeKey = Attributes.Key.create("fake_key");CODE
LOW…rc/test/java/io/grpc/xds/ExtAuthzConfigParserTest.java57 Any.pack(AccessTokenCredentials.newBuilder().setToken("fake-token").build());CODE
TODO Padding1 hit · 2 pts
SeverityFileLineSnippetContext
LOW…p/main/java/io/grpc/okhttp/internal/proxy/HttpUrl.java333 // TODO: implement all label limits.COMMENT
Slop Phrases1 hit · 1 pts
SeverityFileLineSnippetContext
LOWxds/src/main/java/io/grpc/xds/CdsLoadBalancer2.java217 @CheckReturnValue // don't forget to return up the stack after the fail callCODE
Hyper-Verbose Identifiers1 hit · 1 pts
SeverityFileLineSnippetContext
LOWxds/src/main/java/io/grpc/xds/client/XdsClientImpl.java1011 private class ResponseHandler implements XdsResponseHandler {CODE