AI Slop Code Risk Monitor

lionsoul2014/ip2region

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

Ip2region is an offline IP-to-Region localization library and IP data management framework with both IPv4 and IPv6 supports, 10-microsecond level query efficiency, xdb search client for many programming languages

2.4 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for lionsoul2014/ip2region, a Go project with 19,804 GitHub stars. SynthScan examined 33,324 lines of code across 271 source files, recording 81 pattern matches distributed across 5 syntactic categories. The legacy adjusted pattern signal is 2.4 (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.4
Adjusted Signal
2.4
Raw Pattern Score
100%
Time Factor
2026-10-28
Last Push
19.8K
Stars
Go
Language
33.3K
Lines of Code
271
Files
81
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 9.2/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 64 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 6.2/100 · LOW

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

PR Review Velocity Impact 11.4/100 · LOW

Which changes need focused human review? 81 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 0LOW 81

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 81 distinct pattern matches across 5 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 Block33 hits · 33 pts
SeverityFileLineSnippetContext
LOWbinding/python/ip2region/__init__.py1# Copyright 2022 The Ip2Region Authors. All rights reserved.COMMENT
LOWbinding/golang/xdb/util.go41}COMMENT
LOWbinding/rust/example/src/cmd.rs1use clap::{Parser, Subcommand, ValueEnum};COMMENT
LOWbinding/lua_c/xdb_searcher.c1// Copyright 2022 The Ip2Region Authors. All rights reserved.COMMENT
LOWbinding/nginx/src/ngx_http_ip2region_module.h1/*COMMENT
LOWbinding/cpp/src/base.h1#ifndef BASE_HCOMMENT
LOWbinding/csharp/IP2Region.Net/XDB/XdbVersion.cs1// Copyright 2025 The Ip2Region Authors. All rights reserved.COMMENT
LOWbinding/csharp/IP2Region.Net/XDB/XdbVersion.cs21 /// 获得/设置 缓存策略COMMENT
LOWbinding/csharp/IP2Region.Net/XDB/CachePolicy.cs1// Copyright 2025 The Ip2Region Authors. All rights reserved.COMMENT
LOW…P2Region.Net/Extensions/ServiceCollectionExtensions.cs1// Copyright 2025 The Ip2Region Authors. All rights reserved.COMMENT
LOWbinding/csharp/IP2Region.Net/Abstractions/ISearcher.cs1// Copyright 2025 The Ip2Region Authors. All rights reserved.COMMENT
LOWbinding/csharp/IP2Region.Net/Abstractions/ISearcher.cs21 /// <returns></returns>COMMENT
LOWbinding/c/xdb_api.h1// Copyright 2022 The Ip2Region Authors. All rights reserved.COMMENT
LOWbinding/c/xdb_api.h21# define XDB_PUBLIC(type) extern __declspec(dllexport) typeCOMMENT
LOWbinding/c/xdb_api.h41#define xdb_malloc( _bytes ) malloc( _bytes )COMMENT
LOWbinding/c/xdb_util.c1// Copyright 2022 The Ip2Region Authors. All rights reserved.COMMENT
LOWbinding/c/xdb_util.c501XDB_PUBLIC(long long) xdb_ftell(FILE *handle) {COMMENT
LOWmaker/python/xdb/maker.py1# Copyright 2022 The Ip2Region Authors. All rights reserved.COMMENT
LOWmaker/python/xdb/maker.py21# -- 4bytes: generate unix timestamp (version)COMMENT
LOWmaker/python/xdb/maker.py41# | first index block ptr | last index block ptr |COMMENT
LOWmaker/python/xdb/__init__.py1# Copyright 2022 The Ip2Region Authors. All rights reserved.COMMENT
LOWmaker/python/xdb/segment.py21 return "{}|{}|{}".format(COMMENT
LOWmaker/golang/xdb/maker.go1// Copyright 2022 The Ip2Region Authors. All rights reserved.COMMENT
LOWmaker/golang/xdb/maker.go21// -- 2bytes: ip version number (4/6 since IPv6 supporting)COMMENT
LOWmaker/golang/xdb/maker.go41// data entry structure:COMMENT
LOWmaker/golang/xdb/editor.go201 return e.PutSegment(seg, cb)COMMENT
LOWmaker/golang/xdb/segment.go141 // if eip < s.EndIP {COMMENT
LOW…va/src/main/java/org/lionsoul/ip2region/xdb/Maker.java1// Copyright 2022 The Ip2Region Authors. All rights reserved.COMMENT
LOW…va/src/main/java/org/lionsoul/ip2region/xdb/Maker.java21// -- 4bytes: index block end ptrCOMMENT
LOW…va/src/main/java/org/lionsoul/ip2region/xdb/Maker.java41//COMMENT
LOWmaker/csharp/IP2RegionMaker/XDB/Maker.cs1// Copyright 2022 The Ip2Region Authors. All rights reserved.COMMENT
LOWmaker/csharp/IP2RegionMaker/XDB/Maker.cs21// -- 4bytes: index block end ptrCOMMENT
LOWmaker/csharp/IP2RegionMaker/XDB/Maker.cs41//COMMENT
Hyper-Verbose Identifiers26 hits · 26 pts
SeverityFileLineSnippetContext
LOWbinding/python/ip2region/util.py235def load_vector_index_from_file(db_file: str) -> bytes:CODE
LOWscripts/ci/tests/test_workflows.py43def test_third_party_actions_are_pinned(path: Path) -> None:CODE
LOWscripts/ci/tests/test_workflows.py54def test_setup_handles_every_toolchain() -> None:CODE
LOWscripts/ci/tests/test_plan.py28def test_depends_on_triggers_component(repo: Path) -> None:CODE
LOWscripts/ci/tests/test_plan.py60def test_hosted_target_uses_host_runner(repo: Path) -> None:CODE
LOWscripts/ci/tests/test_plan.py91def test_no_base_commit_selects_everything(repo: Path, since: str) -> None:CODE
LOWscripts/ci/tests/test_plan.py95def test_changed_files_since_commit(repo: Path) -> None:CODE
LOWscripts/ci/tests/test_run.py17def test_runs_steps_of_requested_phases_in_order(tmp_path: Path) -> None:CODE
LOWscripts/ci/tests/test_run.py56def test_rejects_unsupported_target(tmp_path: Path, target: str) -> None:CODE
LOWscripts/ci/tests/test_run.py107def test_resolves_relative_executable(tmp_path: Path) -> None:CODE
LOWscripts/ci/tests/test_cangjie.py53def test_installs_and_reuses_sdk(CODE
LOWscripts/ci/tests/test_cangjie.py65def test_rejects_digest_mismatch(tmp_path: Path) -> None:CODE
LOWscripts/ci/tests/test_cangjie.py74def test_pins_every_official_build() -> None:CODE
LOWscripts/ci/tests/test_config.py10def test_repository_components_are_valid() -> None:CODE
LOWscripts/ci/tests/test_config.py17def test_loads_components_in_path_order(repo: Path) -> None:CODE
LOWscripts/ci/tests/test_config.py31def test_reports_every_missing_config(repo: Path, write: Writer) -> None:CODE
LOW⚡scripts/ci/tests/test_config.py44def test_rejects_config_in_skipped_directory(repo: Path, write: Writer) -> None:CODE
LOW⚡scripts/ci/tests/test_config.py51def test_rejects_unknown_keys(repo: Path, write: Writer) -> None:CODE
LOW⚡scripts/ci/tests/test_config.py58def test_rejects_step_platform_outside_component(CODE
LOWscripts/ci/tests/test_config.py140def test_rejects_bad_target_settings(STRING
LOWscripts/ci/tests/test_config.py165def test_rejects_working_directory_outside_component(STRING
LOWscripts/ci/tests/test_config.py185def test_rejects_missing_dependency(repo: Path, write: Writer) -> None:STRING
LOWscripts/ci/tests/test_xdb.py23def test_ignores_creation_time(tmp_path: Path, expected: Path) -> None:CODE
LOWscripts/ci/tests/test_xdb.py29def test_reports_first_difference(tmp_path: Path, expected: Path) -> None:CODE
LOWscripts/ci/tests/test_data.py15def test_sync_rebuilds_every_xdb_and_warns_about_stale_ones(CODE
LOWscripts/ci/src/ip2region_ci/config.py71 def _working_directory_inside_component(self) -> Self:CODE
Excessive Try-Catch Wrapping17 hits · 17 pts
SeverityFileLineSnippetContext
LOWbinding/python/README.md75except Exception as e:CODE
LOWbinding/python/README.md86except Exception as e:CODE
LOWbinding/python/README.md106except Exception as e:CODE
LOWbinding/python/README.md113except Exception as e:CODE
LOWbinding/python/README.md124except Exception as e:CODE
LOWbinding/python/README.md144except Exception as e:CODE
LOWbinding/python/README.md161except Exception as e:CODE
LOWbinding/python/README_zh.md66except Exception as e:CODE
LOWbinding/python/README_zh.md77except Exception as e:CODE
LOWbinding/python/README_zh.md96except Exception as e:CODE
LOWbinding/python/README_zh.md103except Exception as e:CODE
LOWbinding/python/README_zh.md114except Exception as e:CODE
LOWbinding/python/README_zh.md133except Exception as e:CODE
LOWbinding/python/README_zh.md150except Exception as e:CODE
LOWbinding/python/search_test.py53 except Exception as e:CODE
LOWbinding/python/search_test.py75 except Exception as e:CODE
LOWbinding/python/search_test.py81 except Exception as e:CODE
Deep Nesting4 hits · 4 pts
SeverityFileLineSnippetContext
LOWbinding/python/bench_test.py48CODE
LOWscripts/ci/src/ip2region_ci/config.py180CODE
LOWscripts/ci/src/ip2region_ci/cangjie.py61CODE
LOWmaker/python/main.py30CODE
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippetContext
LOWbinding/python/ip2region/util.py258# Verify if the current Searcher could be used to search the specified xdb file.COMMENT