Repository Analysis

t8y2/dbx

20MB, lightweight, cross-platform database client. Supports MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, ClickHouse, SQL Server and more.20MB,轻量级跨平台数据库客户端、数据库管理工具。支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、DuckDB、ClickHouse、SQL Server 等。

4.1 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of t8y2/dbx, a Rust project with 9,993 GitHub stars. SynthScan v2.0 examined 504,191 lines of code across 1674 source files, recording 2039 pattern matches distributed across 10 syntactic categories. The overall adjusted score of 4.1 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).

4.1
Adjusted Score
4.1
Raw Score
100%
Time Factor
2026-07-14
Last Push
10.0K
Stars
Rust
Language
504.2K
Lines of Code
1.7K
Files
2.0K
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 4MEDIUM 27LOW 2006

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 2039 distinct pattern matches across 10 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.

Hyper-Verbose Identifiers1959 hits · 1872 pts
SeverityFileLineSnippetContext
LOWagents/scripts/validate_agents_test.py13 def test_versions_must_match_included_agent_modules(self):CODE
LOWagents/scripts/validate_agents_test.py35 def test_versions_support_driver_modules_variable(self):CODE
LOWagents/scripts/validate_agents_test.py51 def test_source_scan_rejects_old_execute_query_patterns(self):CODE
LOWagents/scripts/validate_agents_test.py79 def test_jdbc_architecture_requires_shared_base_for_new_agents(self):CODE
LOWagents/scripts/validate_agents_test.py130 def test_versions_include_native_only_modules(self):CODE
LOWagents/scripts/validate_agents_test.py147 def test_authoring_template_must_use_shared_foundation(self):CODE
LOWagents/scripts/validate_agents_test.py176 def test_manifest_validation_requires_registry_fields(self):CODE
LOWagents/scripts/validate_agents_test.py215 def test_manifest_validation_requires_main_class_source(self):CODE
LOWagents/scripts/validate_agents_test.py253 def test_manifest_validation_supports_drivers_directory(self):CODE
LOWagents/scripts/validate_agents_test.py282 def test_kotlin_residue_scan_rejects_kt_and_kts_files_outside_build_dirs(self):CODE
LOWagents/scripts/validate_agents_test.py386 def test_agent_jar_validation_requires_main_class_entry(self):CODE
LOWagents/scripts/validate_agents_test.py409 def test_agent_jar_validation_supports_drivers_directory(self):CODE
LOWagents/scripts/validate_agents.py110def validate_no_kotlin_residue(root: Path) -> list[str]:CODE
LOWagents/scripts/validate_agents.py164def validate_jdbc_architecture(root: Path, modules: set[str]) -> list[str]:CODE
LOWagents/scripts/validate_agents.py186def validate_authoring_template(root: Path) -> list[str]:CODE
LOWagents/scripts/validate_agents.py211def validate_release_runtime_keys(root: Path) -> list[str]:CODE
LOWdocs/components/DocsSidebarFooter.tsx46export function DocsSidebarLanguageButton() {CODE
LOWdocs/lib/releaseMetadataRequest.ts13export function releaseMetadataRequestInit(init: RequestInit = {}): RequestInit {CODE
LOWdocs/lib/landingLatest.ts36export function buildLandingLatestUpdates(lang: "en" | "cn", release: ChangelogRelease | undefined, appVersion: string, CODE
LOWdocs/lib/latestRelease.ts36export async function fetchGitHubLatestReleaseInfo(): Promise<LatestReleaseInfo | null> {CODE
LOWdocs/lib/agentRegistry.ts143export async function fetchAgentDownloadCatalog(): Promise<AgentDownloadCatalog | null> {CODE
LOWdocs/lib/agentRegistry.ts158export function buildAgentDownloadCatalog(assets: GitHubReleaseAsset[]): AgentDownloadCatalog {CODE
LOWdocs/lib/agentRegistry.ts168export function buildJdbcPluginDownloadEntry(): JdbcPluginDownloadEntry {CODE
LOWdocs/lib/agentRegistry.ts239export function buildOfflineBundleEntries(assets: GitHubReleaseAsset[]): OfflineBundleEntry[] {CODE
LOWpackages/node-core/src/redis-command.ts131export function evaluateRedisCommandSafety(commandText: string, options: SqlSafetyOptions = {}): RedisCommandSafetyDecisCODE
LOWpackages/node-core/src/sql-risk.ts26export function splitSqlStatementsForSafety(sql: string): string[] {CODE
LOWpackages/node-core/src/sql-risk.ts195function mysqlExecutableCommentPrefixLength(sql: string, index: number): number {CODE
LOWpackages/node-core/src/sql-risk.ts202function skipExecutableCommentVersion(sql: string, index: number): number {CODE
LOWpackages/node-core/src/production-safety.ts75export function normalizeProductionDatabase(value: string | undefined | null): string {CODE
LOWpackages/node-core/src/production-safety.ts150function collectQualifiedTargetDatabases(statement: string, dbType: string, quotedIdentifiers: Map<string, string>, currCODE
LOWpackages/node-core/src/production-safety.ts156function collectQualifiedTargetDatabaseGroups(statement: string, dbType: string, quotedIdentifiers: Map<string, string>,CODE
LOWpackages/node-core/src/production-safety.ts166function databaseFromQualifiedName(qualifiedName: string | undefined, dbType: string, quotedIdentifiers: Map<string, strCODE
LOWpackages/node-core/src/production-safety.ts182function qualifiedFirstPartIsDatabase(dbType: string, partCount: number): boolean {CODE
LOWpackages/node-core/src/production-safety.ts189function databaseTargetKindMeansDatabase(kind: string | undefined, dbType: string): boolean {CODE
LOWpackages/node-core/src/production-safety.ts196function isAmbiguousProductionTargetStatement(statement: string, assessment: ReturnType<typeof classifySqlRisk>, hasResoCODE
LOWpackages/node-core/src/production-safety.ts270function mysqlExecutableCommentPrefixLength(sql: string, index: number): number {CODE
LOWpackages/node-core/src/production-safety.ts277function skipExecutableCommentVersion(sql: string, index: number): number {CODE
LOWpackages/node-core/src/sql-safety.ts45function evaluateSingleSqlStatementSafety(sql: string, options: SqlSafetyOptions = {}): SqlSafetyDecision {CODE
LOWpackages/node-core/src/connections.ts120function transportLayerSecretSegment(index: number, layer: TransportLayerConfig): string {CODE
LOWpackages/node-core/src/connections.ts124function transportLayerSshPasswordKey(index: number, layer: TransportLayerConfig): string {CODE
LOWpackages/node-core/src/connections.ts128function transportLayerSshKeyPassphraseKey(index: number, layer: TransportLayerConfig): string {CODE
LOWpackages/node-core/src/connections.ts132function transportLayerProxyPasswordKey(index: number, layer: TransportLayerConfig): string {CODE
LOWpackages/node-core/src/connections.ts191function hydrateTransportLayerSecrets(db: Database.Database, config: ConnectionConfig, connectionId: string) {CODE
LOWpackages/node-core/src/database.ts231function normalizePostgresUrlParams(value: string, forceTls: boolean): string {CODE
LOWpackages/node-core/src/database.ts438function mysqlUrlParamsTlsDisabled(params: string): boolean {CODE
LOWpackages/node-core/src/database.ts464function normalizeBareMysqlUrlParams(value: string): string {CODE
LOWpackages/node-core/src/database.ts678export function collectionListToTableInfos(collections: CollectionListEntry[]): TableInfo[] {CODE
LOWpackages/node-core/src/database.ts968async function executeRedisCommandDirect(config: ConnectionConfig, db: number, commandText: string, options?: RedisCommaCODE
LOWpackages/node-core/src/database.ts1234export function mongoCollectionStatsToQueryResult(metric: MongoCollectionStatsMetric, stats: Record<string, unknown>): QCODE
LOWpackages/node-core/src/database.ts1251export function mongoDocumentsToQueryResult(documents: unknown[], _total: number): QueryResult {CODE
LOWpackages/node-core/src/database.ts1377export function parseMongoCountDocumentsCommand(input: string): MongoCountDocumentsCommand | null {CODE
LOWpackages/node-core/src/database.ts1382function parseCollectionCountCommand(source: string, method: "countDocuments" | "count"): MongoCountDocumentsCommand | nCODE
LOWpackages/node-core/src/database.ts1408export function parseMongoAggregateCommand(input: string): MongoAggregateCommand | null {CODE
LOWpackages/node-core/src/database.ts1419export function parseMongoGetIndexesCommand(input: string): MongoGetIndexesCommand | null {CODE
LOWpackages/node-core/src/database.ts1428export function parseMongoCollectionStatsCommand(input: string): MongoCollectionStatsCommand | null {CODE
LOWpackages/node-core/src/database.ts1567export function evaluateMongoAggregateSafety(command: MongoAggregateCommand, options: { allowWrites?: boolean; allowDangCODE
LOWpackages/node-core/src/database.ts1585function parseCollectionMethodTarget(source: string, method: string): { collection: string; methodCallIndex: number } | CODE
LOWpackages/node-core/src/database.ts1609function hasSingleEmptyChainedCall(chain: string, method: string): boolean {CODE
LOWpackages/node-core/src/database.ts1618function findChainedMethodCallIndex(source: string, method: string): number {CODE
LOWpackages/node-core/src/database.ts1630function readChainedIntegerArgument(chain: string, method: string, fallback: number): number | null {CODE
1899 more matches not shown…
Decorative Section Separators27 hits · 81 pts
SeverityFileLineSnippetContext
MEDIUMcrates/dbx-core/src/agent_service.rs1214// ──────────── Offline import ────────────COMMENT
MEDIUMcrates/dbx-core/src/agent_service.rs1425// ──────────── Tests ────────────COMMENT
MEDIUMcrates/dbx-core/src/db/turso_driver.rs133// ─── Public API ───────────────────────────────────────────────────────────────COMMENT
MEDIUMcrates/dbx-core/src/db/turso_driver.rs422// ─── Internal helpers ─────────────────────────────────────────────────────────COMMENT
MEDIUM…on/src/test/java/com/dbx/agent/EwkbWktDecoderTest.java23 // ──────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…on/src/test/java/com/dbx/agent/EwkbWktDecoderTest.java26 // ──────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…common/src/main/java/com/dbx/agent/EwkbWktDecoder.java207 // ── EWKB parser ────────────────────────────────────────────────────────COMMENT
MEDIUM…common/src/main/java/com/dbx/agent/EwkbWktDecoder.java408 // ── WKT formatting ─────────────────────────────────────────────────────COMMENT
MEDIUM…common/src/main/java/com/dbx/agent/EwkbWktDecoder.java529 // ── helper structs ─────────────────────────────────────────────────────COMMENT
MEDIUM.cargo/config.toml14# ===================================================================================COMMENT
MEDIUM…ps/desktop/src/components/config/DriverStoreDialog.vue49// ──────────── Driver store path ────────────COMMENT
MEDIUM…ps/desktop/src/components/config/DriverStoreDialog.vue159// ──────────── Agent drivers ────────────COMMENT
MEDIUM…ps/desktop/src/components/config/DriverStoreDialog.vue608// ──────────── JDBC drivers ────────────COMMENT
MEDIUM…ps/desktop/src/components/config/DriverStoreDialog.vue1021// ──────────── Lifecycle ────────────COMMENT
MEDIUMapps/desktop/src/components/layout/AppToolbar.vue111// ──────────── Right-side overflow detection ────────────COMMENT
MEDIUMapps/desktop/src/components/layout/AppToolbar.vue338// ──────────── Resize observer ────────────COMMENT
MEDIUMapps/desktop/src/components/layout/AppToolbar.vue357// ──────────── Left-side "More" items ────────────COMMENT
MEDIUMapps/desktop/src/components/grid/LayerPreviewDialog.vue25// ── Resize / maximise ──────────────────────────────────────────────────────COMMENT
MEDIUMapps/desktop/src/components/grid/LayerPreviewDialog.vue87// ── Leaflet ───────────────────────────────────────────────────────────────COMMENT
MEDIUMapps/desktop/src/components/grid/LayerPreviewDialog.vue150// ── Label property ─────────────────────────────────────────────────────────COMMENT
MEDIUMapps/desktop/src/components/grid/LayerPreviewDialog.vue222// ── Map ────────────────────────────────────────────────────────────────────COMMENT
MEDIUMapps/desktop/src/lib/dataGrid/geometryPreview.ts321// ── GeoJSON conversion helpers ─────────────────────────────────────────────COMMENT
MEDIUMapps/desktop/src/lib/diagram/explainPlan.ts385// ── DM (达梦) tabular explain parser ──────────────────────────────────COMMENT
MEDIUMapps/desktop/src/lib/diagram/explainPlan.ts521// ── PostgreSQL JSON explain parser ────────────────────────────────────COMMENT
MEDIUMapps/desktop/src/lib/diagram/explainPlan.ts567// ── MySQL JSON explain parser ─────────────────────────────────────────COMMENT
MEDIUMapps/desktop/src/lib/diagram/explainPlan.ts634// ── QuestDB explain parser ─────────────────────────────────────────COMMENT
MEDIUMapps/desktop/src/lib/diagram/explainPlan.ts654// ── Helpers ───────────────────────────────────────────────────────────COMMENT
Over-Commented Block31 hits · 31 pts
SeverityFileLineSnippetContext
LOWcrates/dbx-core/src/query_result_sql.rs1081COMMENT
LOWcrates/dbx-core/src/query_execution_sql.rs161COMMENT
LOWcrates/dbx-core/src/types.rs21COMMENT
LOWcrates/dbx-core/src/ai.rs141#[derive(Debug, Clone, Serialize, Deserialize)]COMMENT
LOWcrates/dbx-core/src/ai.rs241 pub latency_ms: Option<u64>,COMMENT
LOWcrates/dbx-core/src/models/connection.rs81 pub gbase_server: String,COMMENT
LOWcrates/dbx-core/src/models/connection.rs221 #[serde(default)]COMMENT
LOWcrates/dbx-core/src/models/connection.rs241 /// Empty string means an older saved connection predating this field —COMMENT
LOWcrates/dbx-core/src/db/turso_driver.rs61struct TursoPipelineResponse {COMMENT
LOWcrates/dbx-core/src/db/sqlite.rs1401COMMENT
LOWcrates/dbx-core/src/db/file_validator.rs1use std::path::Path;COMMENT
LOWcrates/dbx-core/src/db/mysql.rs841 queries.push(format!("SET NAMES {charset}"));COMMENT
LOWcrates/dbx-core/src/db/mysql.rs2241 )COMMENT
LOWcrates/dbx-core/src/mq/types.rs221 #[serde(default)]COMMENT
LOWcrates/dbx-core/src/mq/types.rs441COMMENT
LOWcrates/dbx-core/src/mq/types.rs561 Packages,COMMENT
LOWcrates/dbx-core/src/mq/types.rs601 pub text: Option<String>,COMMENT
LOWcrates/dbx-core/src/mq/types.rs621 pub payload_base64: String,COMMENT
LOWcrates/dbx-core/src/mq/config.rs1//! Parses the message queue admin configuration out of a `ConnectionConfig`.COMMENT
LOWcrates/dbx-core/src/mq/mod.rs1//! Message queue admin console support.COMMENT
LOWcrates/dbx-core/src/mq/adapters/pulsar_version.rs1//! Pulsar version detection and the version "profile" that isolates allCOMMENT
LOWcrates/dbx-core/src/sql_dialect/types.rs21pub struct TableDataSelectSqlOptions {COMMENT
LOWdocs/next-env.d.ts1/// <reference types="next" />COMMENT
LOW.cargo/config.toml1# === Optional build speed-ups (add to your ~/.zshrc or ~/.bashrc; do NOT commit) ===COMMENT
LOW.github/workflows/notify.yml41COMMENT
LOW.github/workflows/notify.yml101 f.write(f"msg<<{delim}\n{msg}\n{delim}\n")COMMENT
LOW.github/workflows/notify.yml121 # api_key = os.environ.get("DEEPSEEK_API_KEY", "")COMMENT
LOW.github/workflows/notify.yml141 # "https://api.deepseek.com/v1/chat/completions",COMMENT
LOWsrc-tauri/src/lib.rs181 // Detect the proprietary NVIDIA driver by checking for its kernel deviceCOMMENT
LOWsrc-tauri/src/commands/fs_open.rs1use std::path::{Path, PathBuf};COMMENT
LOWapps/desktop/src/lib/sql/sqlVariables.ts1// Client-side SQL variable expansion.COMMENT
Hallucination Indicators2 hits · 20 pts
SeverityFileLineSnippetContext
CRITICALcrates/dbx-core/src/db/agent_driver.rs1969 stderr_tail.push_line("\tat com.dbx.agent.hive.HiveAgent.connect(HiveAgent.kt:21)".to_string());CODE
CRITICAL…s/etcd/src/main/java/com/dbx/agent/etcd/EtcdAgent.java350 CharsetDecoder decoder = java.nio.charset.StandardCharsets.UTF_8.newDecoder()CODE
Cross-File Repetition3 hits · 15 pts
SeverityFileLineSnippetContext
HIGH…drivers/h2/src/main/java/com/dbx/agent/h2/H2Agent.java0select trigger_name, event_manipulation, action_timing from information_schema.triggers where trigger_schema = ? and eveSTRING
HIGH…undb/src/main/java/com/dbx/agent/sundb/SundbAgent.java0select trigger_name, event_manipulation, action_timing from information_schema.triggers where trigger_schema = ? and eveSTRING
HIGH…rc/main/java/com/dbx/agent/goldendb/GoldendbAgent.java0select trigger_name, event_manipulation, action_timing from information_schema.triggers where trigger_schema = ? and eveSTRING
Verbosity Indicators4 hits · 8 pts
SeverityFileLineSnippetContext
LOWapps/desktop/src/components/sidebar/TreeItem.vue3912 // Step 2: Register task in export tracker (background)COMMENT
LOWapps/desktop/src/components/sidebar/TreeItem.vue3916 // Step 3: Get query columns for neo4jCOMMENT
LOWapps/desktop/src/components/sidebar/TreeItem.vue3919 // Step 4: Start streaming export (background, non-blocking)COMMENT
LOWapps/desktop/src/components/sidebar/TreeItem.vue3900 // Step 1: Open save dialog FIRSTCOMMENT
Structural Annotation Overuse4 hits · 8 pts
SeverityFileLineSnippetContext
LOWapps/desktop/src/components/sidebar/TreeItem.vue3912 // Step 2: Register task in export tracker (background)COMMENT
LOWapps/desktop/src/components/sidebar/TreeItem.vue3916 // Step 3: Get query columns for neo4jCOMMENT
LOWapps/desktop/src/components/sidebar/TreeItem.vue3919 // Step 4: Start streaming export (background, non-blocking)COMMENT
LOWapps/desktop/src/components/sidebar/TreeItem.vue3900 // Step 1: Open save dialog FIRSTCOMMENT
Magic Placeholder Names1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHdocs/mq-quick-start.md128 "value": "your-api-key"CODE
Fake / Example Data5 hits · 5 pts
SeverityFileLineSnippetContext
LOWapps/desktop/src/components/ui/PasswordInput.vue31 <Input v-model="model" :type="visible ? 'text' : 'password'" :placeholder="placeholder" :disabled="disabled" :class=CODE
LOW…/desktop/src/components/generate/params/TextParams.vue12 "Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt ut labore et dolore magna aliCODE
LOW…/desktop/src/components/generate/params/TextParams.vue12 "Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt ut labore et dolore magna aliCODE
LOWapps/desktop/src/lib/dataGrid/dataGenerate.ts1683 "Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt ut labore et dolore magnaCODE
LOWapps/desktop/src/lib/dataGrid/dataGenerate.ts1683 "Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt ut labore et dolore magnaCODE
Deep Nesting3 hits · 3 pts
SeverityFileLineSnippetContext
LOWagents/scripts/validate_agents.py97CODE
LOWagents/scripts/validate_agents.py164CODE
LOWagents/scripts/validate_agent_jars.py24CODE