Repository Analysis

apache/pouchdb

:kangaroo: - PouchDB is a pocket-sized database.

5.9 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of apache/pouchdb, a JavaScript project with 17,587 GitHub stars. SynthScan v2.0 examined 120,150 lines of code across 396 source files, recording 106 pattern matches distributed across 7 syntactic categories. The overall adjusted score of 5.9 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).

5.9
Adjusted Score
5.9
Raw Score
100%
Time Factor
2026-07-10
Last Push
17.6K
Stars
JavaScript
Language
120.2K
Lines of Code
396
Files
106
Pattern Hits
2026-07-14
Scan Date
0.16
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 64HIGH 1MEDIUM 4LOW 37

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 106 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 Indicators64 hits · 650 pts
SeverityFileLineSnippetContext
CRITICALtests/integration/test.get.js216 doc._revisions.ids.length.should.equal(3, 'correct revisions length');CODE
CRITICALtests/integration/test.get.js240 doc._revisions.ids.length.should.equal(4, 'correct revisions length');CODE
CRITICALtests/integration/test.get.js616 doc._revisions.ids.length.should.equal(2, 'got two revs');CODE
CRITICALtests/integration/test.replication.js1237 res.rows.should.have.length.above(0, 'first');CODE
CRITICALtests/integration/test.replication.js1242 res.rows.should.have.length.above(0, 'second');CODE
CRITICALtests/integration/test.attachments.js3308 doc._attachments.one.revpos.should.equal(1);CODE
CRITICALtests/integration/test.attachments.js3312 doc._attachments.two.revpos.should.equal(2);CODE
CRITICALtests/integration/test.attachments.js3313 doc._attachments.one.revpos.should.equal(1);CODE
CRITICALtests/integration/test.attachments.js3316 doc._attachments.one.revpos.should.equal(3);CODE
CRITICALtests/integration/test.attachments.js3317 doc._attachments.two.revpos.should.equal(2);CODE
CRITICALtests/integration/test.attachments.js3341 doc._attachments.one.revpos.should.equal(1);CODE
CRITICALtests/integration/test.attachments.js3349 doc._attachments.two.revpos.should.equal(2);CODE
CRITICALtests/integration/test.attachments.js3350 doc._attachments.one.revpos.should.equal(1);CODE
CRITICALtests/integration/test.attachments.js3355 doc._attachments.one.revpos.should.equal(3);CODE
CRITICALtests/integration/test.attachments.js3356 doc._attachments.two.revpos.should.equal(2);CODE
CRITICALtests/integration/test.attachments.js267 att.data.should.not.be.a('string');CODE
CRITICALtests/integration/test.attachments.js302 att.data.should.not.be.a('string');CODE
CRITICALtests/integration/test.attachments.js339 att.data.should.not.be.a('string');CODE
CRITICALtests/integration/test.attachments.js381 att.data.should.not.be.a('string');CODE
CRITICALtests/integration/test.attachments.js450 att.data.should.not.be.a('string');CODE
CRITICALtests/integration/test.attachments.js527 att.data.should.not.be.a('string');CODE
CRITICALtests/integration/test.attachments.js623 att.data.should.not.be.a('string');CODE
CRITICALtests/integration/test.attachments.js668 att.data.should.not.be.a('string');CODE
CRITICALtests/integration/test.attachments.js746 att.data.should.not.be.a('string');CODE
CRITICALtests/integration/test.attachments.js839 att.data.should.not.be.a('string');CODE
CRITICALtests/integration/test.attachments.js936 att.data.should.not.be.a('string');CODE
CRITICALtests/integration/test.attachments.js996 att.data.should.not.be.a('string');CODE
CRITICALtests/integration/test.attachments.js1109 att.data.should.not.be.a('string');CODE
CRITICALtests/integration/test.attachments.js1170 att.data.should.not.be.a('string');CODE
CRITICALtests/integration/test.attachments.js1289 att.data.should.not.be.a('string');CODE
CRITICALtests/integration/test.attachments.js2575 doc._attachments.mytext.data.should.equal('TXl0ZXh0');CODE
CRITICALtests/integration/test.attachments.js2738 res._attachments.should.not.include.keys('mytext1');CODE
CRITICALtests/integration/test.attachments.js3372 doc._attachments.one.revpos.should.equal(1);CODE
CRITICALtests/integration/test.revs_diff.js37 results.somestuff.missing.should.have.length(1);CODE
CRITICALtests/integration/test.revs_diff.js64 results.somestuff.missing.should.have.length(1);CODE
CRITICALtests/integration/test.revs_diff.js77 results.foo.missing.should.deep.equal(revs, 'listed all revs');CODE
CRITICALtests/integration/test.revs_diff.js154 results.constructor.missing.should.have.length(1);CODE
CRITICALtests/integration/test.viewadapter.js90 viewRequest.result.objectStoreNames.length.should.equal(0);CODE
CRITICALtests/integration/test.viewadapter.js100 docRequest.result.objectStoreNames.length.should.equal(7);CODE
CRITICALtests/integration/test.viewadapter.js139 viewRequest.result.objectStoreNames.length.should.equal(7);CODE
CRITICALtests/integration/test.viewadapter.js148 docRequest.result.objectStoreNames.length.should.equal(7);CODE
CRITICALtests/integration/test.sync.js41 result.pull.errors.should.have.length(0);CODE
CRITICALtests/integration/test.sync.js201 result.pull.errors.should.have.length(0);CODE
CRITICALtests/integration/test.sync.js221 result.pull.errors.should.have.length(0);CODE
CRITICALtests/integration/test.sync.js241 result.pull.errors.should.have.length(0);CODE
CRITICALtests/integration/test.sync.js265 result.pull.errors.should.have.length(0);CODE
CRITICALtests/integration/test.sync.js285 result.pull.errors.should.have.length(0);CODE
CRITICALtests/integration/test.sync.js578 result.pull.errors.should.have.length(0);CODE
CRITICALtests/integration/test.changes.js187 results.results.length.should.be.at.least(2);CODE
CRITICALtests/integration/test.changes.js1411 ch.doc._conflicts.length.should.equal(1);CODE
CRITICALtests/integration/test.all_docs.js288 result.doc._conflicts.should.be.instanceof(Array);CODE
CRITICALtests/integration/test.all_docs.js289 result.doc._conflicts.should.have.length(2);CODE
CRITICALtests/integration/test.all_docs.js303 row.doc._conflicts.should.be.instanceof(Array);CODE
CRITICALtests/integration/test.all_docs.js304 row.doc._conflicts.should.have.length(2);CODE
CRITICALtests/integration/test.bulk_docs.js1035 doc._revisions.ids.length.should.equal(expected);CODE
CRITICALtests/integration/test.bulk_docs.js1072 doc._revisions.ids.length.should.equal(LIMIT);CODE
CRITICALtests/integration/test.basics.js1116 fullDocs[0].ok._revisions.ids.should.have.length(num);CODE
CRITICALtests/find/test-suite-1/test.array.js43 explainResp.index.name.should.deep.equal('_all_docs');CODE
CRITICALtests/find/test-suite-1/test.array.js59 explainResp.index.name.should.deep.equal('name-index');CODE
CRITICALtests/mapreduce/test.persisted.js312 res.rows.length.should.be.within(0, 2);CODE
4 more matches not shown…
Over-Commented Block24 hits · 24 pts
SeverityFileLineSnippetContext
LOWbin/test-webpack.sh1#!/usr/bin/env -S bash -eCOMMENT
LOWtests/integration/leveldown.migration.js101 it('should work', function () {COMMENT
LOWtests/integration/leveldown.migration.js121 //var docsB = [{COMMENT
LOWtests/integration/test.issue2674.js41// 5. On client B I synchronized its local db with remote db (in the same wayCOMMENT
LOWtests/integration/test.compaction.js521 // We're testing some functionality specific to the implementationCOMMENT
LOWtests/integration/deps/pouchdb-3.2.0-postfixed.js1// PouchDBVersion320 3.2.0COMMENT
LOWtests/integration/deps/pouchdb-7.3.1-postfixed.js1// PouchDBVersion731 7.3.1COMMENT
LOWtests/integration/deps/pouchdb-2.0.0-postfixed.js4921},{"./adapters/http":2,"./adapters/idb":3,"./adapters/leveldb":20,"./adapters/websql":4,"./deps/ajax":6,"./deps/errors":COMMENT
LOWtests/integration/deps/pouchdb-2.0.0-postfixed.js6241//COMMENT
LOWtests/integration/deps/pouchdb-2.2.0-postfixed.js4741// for a better overview of what this is doing, read:COMMENT
LOWtests/integration/deps/pouchdb-2.2.0-postfixed.js6521 } else {COMMENT
LOWtests/integration/deps/pouchdb-8.0.1-postfixed.js1// PouchDBVersion801 8.0.1COMMENT
LOWtests/integration/deps/pouchdb-3.0.6-postfixed.js5701},{"./adapters/http":2,"./adapters/idb":3,"./adapters/leveldb":26,"./adapters/websql":5,"./deps/ajax":8,"./deps/errors":COMMENT
LOWtests/integration/deps/pouchdb-3.0.6-postfixed.js7601 return fun.call(this, args);COMMENT
LOWtests/fuzzy/test.fuzzy.js1'use strict';COMMENT
LOWtests/find/test-suite-1/test.skip.js261COMMENT
LOWtests/find/test-suite-1/test.skip.js281// // should have one document less because skip: 1COMMENT
LOWdocs/static/js/pouchdb.min.js1// PouchDB 9.0.0COMMENT
LOWdocs/src/less/bootstrap/forms.less101// input[type="datetime"]COMMENT
LOWdocs/src/less/bootstrap/forms.less321COMMENT
LOWdocs/src/less/bootstrap/responsive-utilities.less1//COMMENT
LOWdocs/src/less/bootstrap/normalize.less321COMMENT
LOWdocs/src/less/bootstrap/mixins.less1//COMMENT
LOWdocs/src/less/bootstrap/mixins.less881 .form-control-feedback {COMMENT
Hyper-Verbose Identifiers12 hits · 14 pts
SeverityFileLineSnippetContext
LOWbin/build-pouchdb.js126function buildPluginsForBrowserify() {CODE
LOWtests/misc/sync-gateway-config-server.js7function createSyncGatewayConfigServer() {CODE
LOWtests/integration/test.replication.js575 function ensureCheckpointIsMissing(db, replicationId) {CODE
LOWtests/integration/browser.migration.js18 function usingDefaultPreferredAdapters() {CODE
LOWtests/integration/worker.js23function postAttachmentThenAllDocs(name) {CODE
LOWtests/integration/test.viewadapter.js42 function getDbNamesFromLevelDBFolder(name) {CODE
LOWtests/integration/deps/pouchdb-2.0.0-postfixed.js2635 function countUndeletedNonlocalDocs(e) {CODE
LOWtests/find/test-issues/test.issue7810.js44 function assertWithAndWithoutLengthOf(results, docLen) {CODE
LOWtests/memleak/test.memleak.js73 function SomewhatDummyPouchAdapter(opts,callback) {CODE
LOWtests/memleak/test.memleak.js76 api._close = function SomewhatDummyPouchAdapterClose(callback) {CODE
LOWtests/memleak/test.memleak.js83 api._info = function SomewhatDummyPouchAdapterInfo(callback) {CODE
LOWtests/memleak/test.memleak.js98 SomewhatDummyPouchAdapter.valid = function SomwehatDummyPouchAdapterValid() { return true; };CODE
Self-Referential Comments3 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUMbin/release.sh18# Create a temporary build directoryCOMMENT
MEDIUMdocs/src/less/bootstrap/variables.less257//## Define the breakpoints at which your layout will change, adapting to different screen sizes.COMMENT
MEDIUMdocs/src/less/bootstrap/variables.less306//## Define the maximum width of `.container` for different screen sizes.COMMENT
Synthetic Comment Markers1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHCONTRIBUTING.md177Thus, it is expressly forbidden to contribute material generated by AI, LLMs,CODE
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMdocs/_includes/api/replication.html82As with [changes()](#changes), you can also omit `live`, in which case you can use `replicate()` in the callback/promiseCODE
Overly Generic Function Names1 hit · 0 pts
SeverityFileLineSnippetContext
LOWtests/integration/test.attachments.js3255 function getData(cb) {CODE