Repository Analysis

OpenAtomFoundation/pikiwidb

Pikiwidb is a Redis-Compatible database developed by Qihoo's infrastructure team.

3.1 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of OpenAtomFoundation/pikiwidb, a C++ project with 6,121 GitHub stars. SynthScan v2.0 examined 161,112 lines of code across 1297 source files, recording 511 pattern matches distributed across 9 syntactic categories. The overall adjusted score of 3.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).

3.1
Adjusted Score
3.1
Raw Score
100%
Time Factor
2026-07-07
Last Push
6.1K
Stars
C++
Language
161.1K
Lines of Code
1.3K
Files
511
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 0HIGH 0MEDIUM 7LOW 504

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 511 distinct pattern matches across 9 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 Block451 hits · 419 pts
SeverityFileLineSnippetContext
LOWentrypoint.sh1#!/bin/bashCOMMENT
LOWformat_code.sh1#!/bin/bashCOMMENT
LOWtools/rdb_to_pika/install_rdb_tools.sh1#!/bin/bashCOMMENT
LOWtools/rdb_to_pika/README.md1# This file is show you how to use this toolCOMMENT
LOWtools/pika_migrate/format_code.sh1#!/bin/bashCOMMENT
LOWtools/pika_migrate/include/rsync_server.h1// Copyright (c) 2023-present, Qihoo, Inc. All rights reserved.COMMENT
LOWtools/pika_migrate/include/pika_transaction.h1// Copyright (c) 2015-present, Qihoo, Inc. All rights reserved.COMMENT
LOWtools/pika_migrate/include/pika_binlog.h1// Copyright (c) 2015-present, Qihoo, Inc. All rights reserved.COMMENT
LOWtools/pika_migrate/include/acl.h1// Copyright (c) 2015-present, Qihoo, Inc. All rights reserved.COMMENT
LOWtools/pika_migrate/include/pika_repl_server_conn.h1// Copyright (c) 2019-present, Qihoo, Inc. All rights reserved.COMMENT
LOWtools/pika_migrate/include/pika_hash.h1// Copyright (c) 2015-present, Qihoo, Inc. All rights reserved.COMMENT
LOWtools/pika_migrate/include/pika_client_processor.h1// Copyright (c) 2015-present, Qihoo, Inc. All rights reserved.COMMENT
LOWtools/pika_migrate/include/pika_db.h1// Copyright (c) 2018-present, Qihoo, Inc. All rights reserved.COMMENT
LOWtools/pika_migrate/include/pika_client_conn.h1// Copyright (c) 2015-present, Qihoo, Inc. All rights reserved.COMMENT
LOWtools/pika_migrate/include/pika_admin.h1// Copyright (c) 2015-present, Qihoo, Inc. All rights reserved.COMMENT
LOWtools/pika_migrate/include/pika_repl_client_conn.h1// Copyright (c) 2015-present, Qihoo, Inc. All rights reserved.COMMENT
LOWtools/pika_migrate/include/pika_repl_server.h1// Copyright (c) 2019-present, Qihoo, Inc. All rights reserved.COMMENT
LOWtools/pika_migrate/include/pika_server.h1// Copyright (c) 2015-present, Qihoo, Inc. All rights reserved.COMMENT
LOWtools/pika_migrate/include/pika_server.h21#include "src/cache/include/config.h"COMMENT
LOWtools/pika_migrate/include/pika_server.h41#include "include/pika_dispatch_thread.h"COMMENT
LOWtools/pika_migrate/include/pika_command.h1// Copyright (c) 2015-present, Qihoo, Inc. All rights reserved.COMMENT
LOWtools/pika_migrate/include/pika_binlog_reader.h1// Copyright (c) 2015-present, Qihoo, Inc. All rights reserved.COMMENT
LOWtools/pika_migrate/include/pika_repl_client_thread.h1// Copyright (c) 2015-present, Qihoo, Inc. All rights reserved.COMMENT
LOWtools/pika_migrate/include/pika_version.h1// Copyright (c) 2015-present, Qihoo, Inc. All rights reserved.COMMENT
LOWtools/pika_migrate/include/pika_conf.h1// Copyright (c) 2015-present, Qihoo, Inc. All rights reserved.COMMENT
LOWtools/pika_migrate/include/pika_consensus.h1// Copyright (c) 2015-present, Qihoo, Inc. All rights reserved.COMMENT
LOWtools/pika_migrate/include/pika_repl_client.h1// Copyright (c) 2015-present, Qihoo, Inc. All rights reserved.COMMENT
LOWtools/pika_migrate/include/pika_migrate_thread.h1#ifndef PIKA_MIGRATE_THREAD_H_COMMENT
LOWtools/pika_migrate/include/build_version.h1// Copyright (c) 2015-present, Qihoo, Inc. All rights reserved.COMMENT
LOWtools/pika_migrate/include/pika_define.h1// Copyright (c) 2015-present, Qihoo, Inc. All rights reserved.COMMENT
LOWtools/pika_migrate/include/pika_rm.h1// Copyright (c) 2015-present, Qihoo, Inc. All rights reserved.COMMENT
LOWtools/pika_migrate/include/pika_repl_bgworker.h1// Copyright (c) 2019-present, Qihoo, Inc. All rights reserved.COMMENT
LOWtools/pika_migrate/include/pika_cache_load_thread.h1// Copyright (c) 2023-present, Qihoo, Inc. All rights reserved.COMMENT
LOWtools/pika_migrate/include/pika_monitor_thread.h1// Copyright (c) 2015-present, Qihoo, Inc. All rights reserved.COMMENT
LOWtools/pika_migrate/include/pika_cmd_table_manager.h1// Copyright (c) 2018-present, Qihoo, Inc. All rights reserved.COMMENT
LOWtools/pika_migrate/include/redis_sender.h1#ifndef REDIS_SENDER_H_COMMENT
LOWtools/pika_migrate/include/pika_cache.h1// Copyright (c) 2023-present, Qihoo, Inc. All rights reserved.COMMENT
LOWtools/pika_migrate/include/rsync_client.h1// Copyright (c) 2023-present, Qihoo, Inc. All rights reserved.COMMENT
LOWtools/pika_migrate/src/net/include/client_thread.h1// Copyright (c) 2015-present, Qihoo, Inc. All rights reserved.COMMENT
LOWtools/pika_migrate/src/net/include/simple_http_conn.h1// Copyright (c) 2015-present, Qihoo, Inc. All rights reserved.COMMENT
LOWtools/pika_migrate/src/net/include/redis_conn.h1// Copyright (c) 2015-present, Qihoo, Inc. All rights reserved.COMMENT
LOWtools/pika_migrate/src/net/include/bg_thread.h1// Copyright (c) 2015-present, Qihoo, Inc. All rights reserved.COMMENT
LOWtools/pika_migrate/src/net/include/net_conn.h1// Copyright (c) 2015-present, Qihoo, Inc. All rights reserved.COMMENT
LOWtools/pika_migrate/src/net/include/http_conn.h1// Copyright (c) 2015-present, Qihoo, Inc. All rights reserved.COMMENT
LOWtools/pika_migrate/src/net/include/net_thread.h1// Copyright (c) 2015-present, Qihoo, Inc. All rights reserved.COMMENT
LOWtools/pika_migrate/src/net/include/backend_thread.h1// Copyright (c) 2015-present, Qihoo, Inc. All rights reserved.COMMENT
LOWtools/pika_migrate/src/net/include/pb_conn.h1// Copyright (c) 2015-present, Qihoo, Inc. All rights reserved.COMMENT
LOWtools/pika_migrate/src/net/include/pb_conn.h61 // a protobuf message that we know,COMMENT
LOWtools/pika_migrate/src/net/include/thread_pool.h1// Copyright (c) 2018-present, Qihoo, Inc. All rights reserved.COMMENT
LOWtools/pika_migrate/src/net/include/net_define.h1// Copyright (c) 2015-present, Qihoo, Inc. All rights reserved.COMMENT
LOWtools/pika_migrate/src/net/include/server_thread.h1// Copyright (c) 2015-present, Qihoo, Inc. All rights reserved.COMMENT
LOWtools/pika_migrate/src/net/include/build_version.h1// Copyright (c) 2015-present, Qihoo, Inc. All rights reserved.COMMENT
LOWtools/pika_migrate/src/net/include/net_interfaces.h1// Copyright (c) 2015-present, Qihoo, Inc. All rights reserved.COMMENT
LOWtools/pika_migrate/src/net/include/net_pubsub.h1// Copyright (c) 2015-present, Qihoo, Inc. All rights reserved.COMMENT
LOWtools/pika_migrate/src/net/include/redis_cli.h1// Copyright (c) 2015-present, Qihoo, Inc. All rights reserved.COMMENT
LOWtools/pika_migrate/src/net/src/holy_thread.h1// Copyright (c) 2015-present, Qihoo, Inc. All rights reserved.COMMENT
LOWtools/pika_migrate/src/net/src/worker_thread.h1// Copyright (c) 2015-present, Qihoo, Inc. All rights reserved.COMMENT
LOWtools/pika_migrate/src/net/src/net_util.h1// Copyright (c) 2015-present, Qihoo, Inc. All rights reserved.COMMENT
LOWtools/pika_migrate/src/net/src/net_thread_name.h1// Copyright (c) 2015-present, Qihoo, Inc. All rights reserved.COMMENT
LOWtools/pika_migrate/src/net/src/dispatch_thread.h1// Copyright (c) 2015-present, Qihoo, Inc. All rights reserved.COMMENT
391 more matches not shown…
Redundant / Tautological Comments16 hits · 24 pts
SeverityFileLineSnippetContext
LOWcodis/config/proxy.toml102# Set session to be sensitive to failures. Default is false, instead of closing socket, proxy will send an error responsCOMMENT
LOW…deploy/root/opt/codis/etc/10.4.10.201_19000/proxy.toml82# Set session to be sensitive to failures. Default is false, instead of closing socket, proxy will send an error responsCOMMENT
LOW…deploy/root/opt/codis/etc/10.2.16.201_19000/proxy.toml82# Set session to be sensitive to failures. Default is false, instead of closing socket, proxy will send an error responsCOMMENT
LOW…s/deploy/root/opt/codis/etc/127.0.0.1_19002/proxy.toml82# Set session to be sensitive to failures. Default is false, instead of closing socket, proxy will send an error responsCOMMENT
LOW…deploy/root/opt/codis/etc/10.2.16.200_19000/proxy.toml82# Set session to be sensitive to failures. Default is false, instead of closing socket, proxy will send an error responsCOMMENT
LOW…deploy/root/opt/codis/etc/10.4.10.200_19000/proxy.toml82# Set session to be sensitive to failures. Default is false, instead of closing socket, proxy will send an error responsCOMMENT
LOW…deploy/root/opt/codis/etc/10.2.16.202_19000/proxy.toml82# Set session to be sensitive to failures. Default is false, instead of closing socket, proxy will send an error responsCOMMENT
LOW…deploy/root/opt/codis/etc/10.4.10.201_19002/proxy.toml82# Set session to be sensitive to failures. Default is false, instead of closing socket, proxy will send an error responsCOMMENT
LOW…deploy/root/opt/codis/etc/10.2.16.201_19002/proxy.toml82# Set session to be sensitive to failures. Default is false, instead of closing socket, proxy will send an error responsCOMMENT
LOW…s/deploy/root/opt/codis/etc/127.0.0.1_19001/proxy.toml82# Set session to be sensitive to failures. Default is false, instead of closing socket, proxy will send an error responsCOMMENT
LOW…s/deploy/root/opt/codis/etc/127.0.0.1_19000/proxy.toml82# Set session to be sensitive to failures. Default is false, instead of closing socket, proxy will send an error responsCOMMENT
LOW…deploy/root/opt/codis/etc/10.2.16.202_19002/proxy.toml82# Set session to be sensitive to failures. Default is false, instead of closing socket, proxy will send an error responsCOMMENT
LOW…deploy/root/opt/codis/etc/10.2.16.200_19002/proxy.toml82# Set session to be sensitive to failures. Default is false, instead of closing socket, proxy will send an error responsCOMMENT
LOW…deploy/root/opt/codis/etc/10.4.10.200_19002/proxy.toml82# Set session to be sensitive to failures. Default is false, instead of closing socket, proxy will send an error responsCOMMENT
LOWcodis/ansible/roles/codis-proxy/templates/proxy.toml90# Set session to be sensitive to failures. Default is false, instead of closing socket, proxy will send an error responsCOMMENT
LOWcodis/pkg/proxy/config.go118# Set session to be sensitive to failures. Default is false, instead of closing socket, proxy will send an error responsCOMMENT
Unused Imports22 hits · 22 pts
SeverityFileLineSnippetContext
LOWrun_clang_tidy.py29CODE
LOWrun_clang_tidy.py30CODE
LOWtools/codis2pika/test/cases/auth.py3CODE
LOWtools/codis2pika/test/cases/example.py1CODE
LOWtools/codis2pika/test/cases/auth_acl.py3CODE
LOWtools/codis2pika/test/cases/cluster/sync.py1CODE
LOWtools/codis2pika/test/cases/types/types_rewrite.py4CODE
LOWtools/codis2pika/test/cases/types/types.py4CODE
LOWtools/codis2pika/test/utils/__init__.py1CODE
LOWtools/codis2pika/test/utils/__init__.py2CODE
LOWtools/codis2pika/test/utils/__init__.py3CODE
LOWtools/codis2pika/test/utils/__init__.py3CODE
LOWcodis/example/server.py3CODE
LOWcodis/example/proxy.py3CODE
LOWcodis/example/dashboard.py3CODE
LOWcodis/example/setup.py3CODE
LOWcodis/example/setup.py4CODE
LOWcodis/example/setup.py5CODE
LOWcodis/example/setup.py6CODE
LOWcodis/example/setup.py7CODE
LOWcodis/example/sentinel.py3CODE
LOWcodis/example/fe.py3CODE
Excessive Try-Catch Wrapping7 hits · 11 pts
SeverityFileLineSnippetContext
MEDIUMrun_clang_tidy.py61 print('Error: could not find compilation database.')CODE
MEDIUMrun_clang_tidy.py380 print('Error exporting fixes.\n', file=sys.stderr)CODE
MEDIUMrun_clang_tidy.py389 print('Error applying fixes.\n', file=sys.stderr)CODE
LOWtools/codis2pika/test/cases/auth_acl.py10 except Exception:CODE
LOWcodis/example/utils.py16 except Exception:CODE
LOWcodis/example/utils.py23 except Exception:CODE
MEDIUMcodis/example/utils.py20def is_running(self):CODE
Hyper-Verbose Identifiers9 hits · 9 pts
SeverityFileLineSnippetContext
LOWrun_clang_tidy.py56def find_compilation_database(path):CODE
LOWrun_clang_tidy.py129def check_clang_apply_replacements_binary(args):CODE
LOWtests/unit/Blpop_Brpop_test.py11def test_single_existing_list(db_):CODE
LOWtests/unit/Blpop_Brpop_test.py38def test_blpop_brpop_unblock_lrpush_rpoplpush(db_):CODE
LOWtests/unit/Blpop_Brpop_test.py219def test_concurrency_block_unblock(db_):CODE
LOWtests/unit/Blpop_Brpop_test.py358def test_multiple_existing_lists(db_):CODE
LOWtests/unit/Blpop_Brpop_test.py402def test_blpop_brpop_same_key_multiple_times(db_):CODE
LOWtests/unit/Blpop_Brpop_test.py495def test_blpop_brpop_variadic_lpush(db_):CODE
LOWtests/unit/Blpop_Brpop_test.py594def test_master_slave_replication(db_):CODE
Slop Phrases2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMentrypoint.sh20# value of variables, we use '=' by default, you can also use ':'.COMMENT
MEDIUMentrypoint.sh23# In addition, you can add services that you want wait for to the WAIT_FOR_SERVICECOMMENT
AI Slop Vocabulary2 hits · 3 pts
SeverityFileLineSnippetContext
LOWdocker/build_pika_exporter_docker.sh6# --proxy proxy, proxy has no value, if you want to use proxy, just add --proxy. if you are in China, you may need to uCOMMENT
LOWdocker/build_pika_docker.sh6# --proxy proxy, proxy has no value, if you want to use proxy, just add --proxy. if you are in China, you may need to uCOMMENT
Modern AI Meta-Vocabulary1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMdocs/ops/client.md31<body id="tinymce" class="mceContentBody aui-theme-default wiki-content fullsize no-tools-capable" onload="window.parentCODE
Deep Nesting1 hit · 1 pts
SeverityFileLineSnippetContext
LOWrun_clang_tidy.py199CODE