AI Slop Code Risk Monitor

google/libphonenumber

SlopCodeMonitor badge for google/libphonenumber Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

Google's common Java, C++ and JavaScript library for parsing, formatting, and validating international phone numbers.

2.0 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for google/libphonenumber, a C++ project with 18,331 GitHub stars. SynthScan examined 312,496 lines of code across 852 source files, recording 604 pattern matches distributed across 7 syntactic categories. The legacy adjusted pattern signal is 2.0 (Low pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

2.0
Adjusted Signal
2.0
Raw Pattern Score
100%
Time Factor
2026-10-26
Last Push
18.3K
Stars
C++
Language
312.5K
Lines of Code
852
Files
604
Pattern Hits
2026-10-31
Scan Date
0.00
HC Hit Rate

Risk Review · Payload v1

Use each vector to guide manual verification of the underlying findings.

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.

Cognitive Ownership Risk 8.8/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 590 finding(s).

Hallucinated Dependency & Supply Chain Risk 0.0/100 · LOW

Are imports declared and package/API names verified? 0 finding(s).

Agent Over-Engineering Ratio 1.6/100 · LOW

Are wrappers, guards, and repeated structures necessary? 93 finding(s).

PR Review Velocity Impact 9.7/100 · LOW

Which changes need focused human review? 604 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 0HIGH 0MEDIUM 17LOW 587

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 604 distinct pattern matches across 7 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. 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 configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Over-Commented Block501 hits · 494 pts
SeverityFileLineSnippetContext
LOWtools/script/continuous-integration.sh1#! /bin/shCOMMENT
LOWtools/cpp/CMakeLists.txt1# Copyright (C) 2012 The Libphonenumber AuthorsCOMMENT
LOWtools/cpp/src/cpp-build/generate_geocoding_data.h1// Copyright (C) 2012 The Libphonenumber AuthorsCOMMENT
LOWtools/cpp/src/base/basictypes.h1// Copyright (c) 2010 The Chromium Authors. All rights reserved.COMMENT
LOWtools/cpp/src/base/basictypes.h61#endifCOMMENT
LOWtools/cpp/src/base/basictypes.h81#elseCOMMENT
LOWtools/cpp/src/base/basictypes.h101#endifCOMMENT
LOWtools/cpp/src/base/basictypes.h121 DISALLOW_COPY_AND_ASSIGN(TypeName)COMMENT
LOWtools/cpp/src/base/basictypes.h141// That gcc wants both of these prototypes seems mysterious. VC, forCOMMENT
LOWtools/cpp/src/base/basictypes.h161//COMMENT
LOWtools/cpp/src/base/basictypes.h181// !(sizeof(a) & sizeof(*(a))) to size_t in order to ensure the finalCOMMENT
LOWtools/cpp/src/base/basictypes.h201// Such explicit implicit_casts are necessary in surprisingly manyCOMMENT
LOWtools/cpp/src/base/basictypes.h221//COMMENT
LOWtools/cpp/src/base/basictypes.h241struct CompileAssert {COMMENT
LOWtools/cpp/src/base/basictypes.h261// elements (and thus is invalid) when the expression is false.COMMENT
LOWtools/cpp/src/base/basictypes.h281// to work around a bug in gcc 3.4.4 and 4.0.1. If we had writtenCOMMENT
LOWtools/cpp/src/base/basictypes.h301// Used to explicitly mark the return value of a function as unused. If you areCOMMENT
LOWtools/cpp/src/base/basictypes.h321// does nothing to the storage, AND there are no virtual methods, then aCOMMENT
LOWresources/test/geocoding/de/1.txt1# Copyright (C) 2011 The Libphonenumber AuthorsCOMMENT
LOWresources/test/geocoding/en/54.txt1# Copyright (C) 2013 The Libphonenumber AuthorsCOMMENT
LOWresources/test/carrier/sv/44.txt1# Copyright (C) 2013 The Libphonenumber AuthorsCOMMENT
LOWresources/test/carrier/en/44.txt1# Copyright (C) 2013 The Libphonenumber AuthorsCOMMENT
LOWresources/test/carrier/en/1.txt1# Copyright (C) 2013 The Libphonenumber AuthorsCOMMENT
LOWresources/test/carrier/en/244.txt1# Copyright (C) 2013 The Libphonenumber AuthorsCOMMENT
LOWresources/timezones/map_data.txt1# Copyright (C) 2012 The Libphonenumber AuthorsCOMMENT
LOWresources/geocoding/pl/48.txt1# Copyright (C) 2011 The Libphonenumber AuthorsCOMMENT
LOWresources/geocoding/vi/84.txt1# Copyright (C) 2011 The Libphonenumber AuthorsCOMMENT
LOWresources/geocoding/sq/383.txt1# Copyright (C) 2017 The Libphonenumber AuthorsCOMMENT
LOWresources/geocoding/sv/358.txt1# Copyright (C) 2011 The Libphonenumber AuthorsCOMMENT
LOWresources/geocoding/sv/46.txt1# Copyright (C) 2011 The Libphonenumber AuthorsCOMMENT
LOWresources/geocoding/hy/374.txt1# Copyright (C) 2013 The Libphonenumber AuthorsCOMMENT
LOWresources/geocoding/be/375.txt1# Copyright (C) 2013 The Libphonenumber AuthorsCOMMENT
LOWresources/geocoding/kk/7.txt1# Copyright (C) 2026 The Libphonenumber AuthorsCOMMENT
LOWresources/geocoding/ja/81.txt1# Copyright (C) 2011 The Libphonenumber AuthorsCOMMENT
LOWresources/geocoding/el/30.txt1# Copyright (C) 2011 The Libphonenumber AuthorsCOMMENT
LOWresources/geocoding/it/39.txt1# Copyright (C) 2011 The Libphonenumber AuthorsCOMMENT
LOWresources/geocoding/it/41.txt1# Copyright (C) 2011 The Libphonenumber AuthorsCOMMENT
LOWresources/geocoding/ru/375.txt1# Copyright (C) 2013 The Libphonenumber AuthorsCOMMENT
LOWresources/geocoding/ru/374.txt1# Copyright (C) 2013 The Libphonenumber AuthorsCOMMENT
LOWresources/geocoding/ru/373.txt1# Copyright (C) 2011 The Libphonenumber AuthorsCOMMENT
LOWresources/geocoding/ru/7.txt1# Copyright (C) 2012 The Libphonenumber AuthorsCOMMENT
LOWresources/geocoding/zh_Hant/886.txt1# Copyright (C) 2011 The Libphonenumber AuthorsCOMMENT
LOWresources/geocoding/ro/373.txt1# Copyright (C) 2011 The Libphonenumber AuthorsCOMMENT
LOWresources/geocoding/ro/40.txt1# Copyright (C) 2012 The Libphonenumber AuthorsCOMMENT
LOWresources/geocoding/pt/258.txt1# Copyright (C) 2011 The Libphonenumber AuthorsCOMMENT
LOWresources/geocoding/pt/238.txt1# Copyright (C) 2011 The Libphonenumber AuthorsCOMMENT
LOWresources/geocoding/pt/239.txt1# Copyright (C) 2011 The Libphonenumber AuthorsCOMMENT
LOWresources/geocoding/pt/55.txt1# Copyright (C) 2011 The Libphonenumber AuthorsCOMMENT
LOWresources/geocoding/pt/351.txt1# Copyright (C) 2011 The Libphonenumber AuthorsCOMMENT
LOWresources/geocoding/pt/245.txt1# Copyright (C) 2011 The Libphonenumber AuthorsCOMMENT
LOWresources/geocoding/pt/244.txt1# Copyright (C) 2011 The Libphonenumber AuthorsCOMMENT
LOWresources/geocoding/zh/886.txt1# Copyright (C) 2011 The Libphonenumber AuthorsCOMMENT
LOWresources/geocoding/uk/380.txt1# Copyright (C) 2018 The Libphonenumber AuthorsCOMMENT
LOWresources/geocoding/sr/383.txt1# Copyright (C) 2017 The Libphonenumber AuthorsCOMMENT
LOWresources/geocoding/sr/381.txt1# Copyright (C) 2011 The Libphonenumber AuthorsCOMMENT
LOWresources/geocoding/sr/387.txt1# Copyright (C) 2017 The Libphonenumber AuthorsCOMMENT
LOWresources/geocoding/bs/387.txt1# Copyright (C) 2017 The Libphonenumber AuthorsCOMMENT
LOWresources/geocoding/ar/966.txt1# Copyright (C) 2013 The Libphonenumber AuthorsCOMMENT
LOWresources/geocoding/hr/387.txt1# Copyright (C) 2017 The Libphonenumber AuthorsCOMMENT
LOWresources/geocoding/hu/36.txt1# Copyright (C) 2011 The Libphonenumber AuthorsCOMMENT
441 more matches not shown…
Hyper-Verbose Identifiers79 hits · 58 pts
SeverityFileLineSnippetContext
LOWjavascript/i18n/phonenumbers/phonenumberutil_test.js269function testGetInstanceLoadUSMetadata() {CODE
LOWjavascript/i18n/phonenumbers/phonenumberutil_test.js293function testGetInstanceLoadDEMetadata() {CODE
LOWjavascript/i18n/phonenumbers/phonenumberutil_test.js315function testGetInstanceLoadARMetadata() {CODE
LOWjavascript/i18n/phonenumbers/phonenumberutil_test.js334function testGetInstanceLoadInternationalTollFreeMetadata() {CODE
LOWjavascript/i18n/phonenumbers/phonenumberutil_test.js363function testGetLengthOfGeographicalAreaCode() {CODE
LOWjavascript/i18n/phonenumbers/phonenumberutil_test.js398function testGetLengthOfNationalDestinationCode() {CODE
LOWjavascript/i18n/phonenumbers/phonenumberutil_test.js440function testGetCountryMobileToken() {CODE
LOWjavascript/i18n/phonenumbers/phonenumberutil_test.js460function testGetSupportedGlobalNetworkCallingCodes() {CODE
LOWjavascript/i18n/phonenumbers/phonenumberutil_test.js472function testGetSupportedCallingCodes() {CODE
LOWjavascript/i18n/phonenumbers/phonenumberutil_test.js488function testGetSupportedTypesForRegion() {CODE
LOWjavascript/i18n/phonenumbers/phonenumberutil_test.js509function testGetSupportedTypesForNonGeoEntity() {CODE
LOWjavascript/i18n/phonenumbers/phonenumberutil_test.js523function testGetNationalSignificantNumber() {CODE
LOWjavascript/i18n/phonenumbers/phonenumberutil_test.js580function testGetExampleNumberForNonGeoEntity() {CODE
LOWjavascript/i18n/phonenumbers/phonenumberutil_test.js587function testConvertAlphaCharactersInNumber() {CODE
LOWjavascript/i18n/phonenumbers/phonenumberutil_test.js598function testNormaliseRemovePunctuation() {CODE
LOWjavascript/i18n/phonenumbers/phonenumberutil_test.js608function testNormaliseReplaceAlphaCharacters() {CODE
LOWjavascript/i18n/phonenumbers/phonenumberutil_test.js634function testNormaliseStripAlphaCharacters() {CODE
LOWjavascript/i18n/phonenumbers/phonenumberutil_test.js644function testNormaliseStripNonDiallableCharacters() {CODE
LOWjavascript/i18n/phonenumbers/phonenumberutil_test.js679function testFormatAUShortCodeNumber() {CODE
LOWjavascript/i18n/phonenumbers/phonenumberutil_test.js823function testFormatOutOfCountryCallingNumber() {CODE
LOWjavascript/i18n/phonenumbers/phonenumberutil_test.js891function testFormatOutOfCountryWithInvalidRegion() {CODE
LOWjavascript/i18n/phonenumbers/phonenumberutil_test.js904function testFormatOutOfCountryWithPreferredIntlPrefix() {CODE
LOWjavascript/i18n/phonenumbers/phonenumberutil_test.js919function testFormatOutOfCountryKeepingAlphaChars() {CODE
LOWjavascript/i18n/phonenumbers/phonenumberutil_test.js1042function testFormatWithCarrierCode() {CODE
LOWjavascript/i18n/phonenumbers/phonenumberutil_test.js1072function testFormatWithPreferredCarrierCode() {CODE
LOWjavascript/i18n/phonenumbers/phonenumberutil_test.js1119function testFormatNumberForMobileDialing() {CODE
LOWjavascript/i18n/phonenumbers/phonenumberutil_test.js1375function testFormatNumberWithExtension() {CODE
LOWjavascript/i18n/phonenumbers/phonenumberutil_test.js1395function testFormatInOriginalFormat() {CODE
LOWjavascript/i18n/phonenumbers/phonenumberutil_test.js1823function testGetRegionCodeForCountryCode() {CODE
LOWjavascript/i18n/phonenumbers/phonenumberutil_test.js1831function testGetRegionCodeForNumber() {CODE
LOWjavascript/i18n/phonenumbers/phonenumberutil_test.js1843function testGetRegionCodesForCountryCode() {CODE
LOWjavascript/i18n/phonenumbers/phonenumberutil_test.js1858function testGetCountryCodeForRegion() {CODE
LOWjavascript/i18n/phonenumbers/phonenumberutil_test.js1868function testGetNationalDiallingPrefixForRegion() {CODE
LOWjavascript/i18n/phonenumbers/phonenumberutil_test.js2018function testIsPossibleNumberWithReason() {CODE
LOWjavascript/i18n/phonenumbers/phonenumberutil_test.js2343function testTruncateTooLongNumber() {CODE
LOWjavascript/i18n/phonenumbers/phonenumberutil_test.js2426function testIsViablePhoneNumberNonAscii() {CODE
LOWjavascript/i18n/phonenumbers/phonenumberutil_test.js2438function testExtractPossibleNumber() {CODE
LOWjavascript/i18n/phonenumbers/phonenumberutil_test.js2462function testMaybeStripNationalPrefix() {CODE
LOWjavascript/i18n/phonenumbers/phonenumberutil_test.js2530function testMaybeStripInternationalPrefix() {CODE
LOWjavascript/i18n/phonenumbers/phonenumberutil_test.js2611function testMaybeExtractCountryCode() {CODE
LOWjavascript/i18n/phonenumbers/phonenumberutil_test.js2873function testParseNumberWithAlphaCharacters() {CODE
LOWjavascript/i18n/phonenumbers/phonenumberutil_test.js2937function testParseWithInternationalPrefixes() {CODE
LOWjavascript/i18n/phonenumbers/phonenumberutil_test.js2997function testParseNationalNumberArgentina() {CODE
LOWjavascript/i18n/phonenumbers/phonenumberutil_test.js3083function testFailedParseOnInvalidNumbers() {CODE
LOWjavascript/i18n/phonenumbers/phonenumberutil_test.js3361function testParseNumbersWithPlusWithNoRegion() {CODE
LOWjavascript/i18n/phonenumbers/phonenumberutil_test.js3399function testParseNumberTooShortIfNationalPrefixStripped() {CODE
LOWjavascript/i18n/phonenumbers/phonenumberutil_test.js3567function testParseHandlesLongExtensionsWithExplicitLabels() {CODE
LOWjavascript/i18n/phonenumbers/phonenumberutil_test.js3625function testParseHandlesLongExtensionsWithAutoDiallingLabels() {CODE
LOWjavascript/i18n/phonenumbers/phonenumberutil_test.js3656function testParseHandlesShortExtensionsWithAmbiguousChar() {CODE
LOWjavascript/i18n/phonenumbers/phonenumberutil_test.js3686function testParseHandlesShortExtensionsWhenNotSureOfLabel() {CODE
LOWjavascript/i18n/phonenumbers/phonenumberutil_test.js3764function testParseItalianLeadingZeros() {CODE
LOWjavascript/i18n/phonenumbers/phonenumberutil_test.js3801function testParseWithPhoneContext() {CODE
LOWjavascript/i18n/phonenumbers/phonenumberutil_test.js3855function assertThrowsForInvalidPhoneContext(numberToParse) {CODE
LOWjavascript/i18n/phonenumbers/phonenumberutil_test.js3863function testCountryWithNoNumberDesc() {CODE
LOWjavascript/i18n/phonenumbers/phonenumberutil_test.js3884function testUnknownCountryCallingCode() {CODE
LOWjavascript/i18n/phonenumbers/phonenumberutil_test.js3963function testIsNumberMatchShortMatchIfDiffNumLeadingZeros() {CODE
LOWjavascript/i18n/phonenumbers/phonenumberutil_test.js3993function testIsNumberMatchAcceptsProtoDefaultsAsMatch() {CODE
LOWjavascript/i18n/phonenumbers/phonenumberutil_test.js4015function testIsNumberMatchMatchesDiffLeadingZerosIfItalianLeadingZeroFalse() {CODE
LOWjavascript/i18n/phonenumbers/phonenumberutil_test.js4041function testIsNumberMatchIgnoresSomeFields() {CODE
LOWjavascript/i18n/phonenumbers/phonenumberutil_test.js4064function testIsNumberMatchNonMatches() {CODE
19 more matches not shown…
Decorative Section Separators14 hits · 42 pts
SeverityFileLineSnippetContext
MEDIUMcpp/CMakeLists.txt426#----------------------------------------------------------------COMMENT
MEDIUMcpp/CMakeLists.txt428#----------------------------------------------------------------COMMENT
MEDIUMcpp/CMakeLists.txt453#----------------------------------------------------------------COMMENT
MEDIUMcpp/CMakeLists.txt455#----------------------------------------------------------------COMMENT
MEDIUMcpp/CMakeLists.txt510#----------------------------------------------------------------COMMENT
MEDIUMcpp/CMakeLists.txt512#----------------------------------------------------------------COMMENT
MEDIUMcpp/CMakeLists.txt600#----------------------------------------------------------------COMMENT
MEDIUMcpp/CMakeLists.txt602#----------------------------------------------------------------COMMENT
MEDIUMcpp/CMakeLists.txt627#----------------------------------------------------------------COMMENT
MEDIUMcpp/CMakeLists.txt629#----------------------------------------------------------------COMMENT
MEDIUMcpp/CMakeLists.txt696#----------------------------------------------------------------COMMENT
MEDIUMcpp/CMakeLists.txt698#----------------------------------------------------------------COMMENT
MEDIUMcpp/CMakeLists.txt715#----------------------------------------------------------------COMMENT
MEDIUMcpp/CMakeLists.txt717#----------------------------------------------------------------COMMENT
AI Slop Vocabulary3 hits · 10 pts
SeverityFileLineSnippetContext
MEDIUMjavascript/i18n/phonenumbers/phonenumber.pb.js544// Export getDescriptor static function robust to minification.COMMENT
MEDIUM…8n/phonenumbers/metadata/regex/RegexGeneratorTest.java56 // Essentially create a "thin" wedge of specific non-determinism with the shorter (5-digit)COMMENT
MEDIUM⚡…oogle/i18n/phonenumbers/metadata/table/RangeTable.java717 // to avoid creating conflicting assignments for different values. Essentially we're trying toCOMMENT
Verbosity Indicators3 hits · 5 pts
SeverityFileLineSnippetContext
LOW…oogle/i18n/phonenumbers/metadata/table/RangeTable.java701 // Step 1: Determine overlapping ranges from the index table, retaining minimum prefix length.COMMENT
LOW⚡…oogle/i18n/phonenumbers/metadata/table/RangeTable.java713 // Step 2: Determine the "prefix disjoint" ranges in a new table and simplify it.COMMENT
LOW…oogle/i18n/phonenumbers/metadata/table/RangeTable.java780 // Step 3: Copy remaining overlapping ranges from the original table back into the result.COMMENT
Structural Annotation Overuse3 hits · 5 pts
SeverityFileLineSnippetContext
LOW…oogle/i18n/phonenumbers/metadata/table/RangeTable.java701 // Step 1: Determine overlapping ranges from the index table, retaining minimum prefix length.COMMENT
LOW⚡…oogle/i18n/phonenumbers/metadata/table/RangeTable.java713 // Step 2: Determine the "prefix disjoint" ranges in a new table and simplify it.COMMENT
LOW…oogle/i18n/phonenumbers/metadata/table/RangeTable.java780 // Step 3: Copy remaining overlapping ranges from the original table back into the result.COMMENT
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippetContext
LOW…oogle/i18n/phonenumbers/metadata/regex/EdgeWriter.java113 // If the last thing we saw in this sequence was an "any" edge, don't forget to emit it.COMMENT