Repository Analysis

apache/couchdb

Seamless multi-primary syncing database with an intuitive HTTP/JSON API, designed for reliability

5.1 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of apache/couchdb, a Erlang project with 6,933 GitHub stars. SynthScan v2.0 examined 69,750 lines of code across 259 source files, recording 290 pattern matches distributed across 12 syntactic categories. The overall adjusted score of 5.1 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.1
Adjusted Score
5.1
Raw Score
100%
Time Factor
2026-07-31
Last Push
6.9K
Stars
Erlang
Language
69.8K
Lines of Code
259
Files
290
Pattern Hits
2026-08-02
Scan Date
0.05
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

Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.

No multi-scan history yet — run the scanner again to build trend data.

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 1HIGH 12MEDIUM 1LOW 276

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 290 distinct pattern matches across 12 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 Block189 hits · 184 pts
SeverityFileLineSnippetContext
LOW.readthedocs.yaml1# Licensed under the Apache License, Version 2.0 (the "License"); you may notCOMMENT
LOWbuild-aux/print-committerlist.sh1#!/bin/shCOMMENT
LOWbuild-aux/logfile-uploader.py1#!/usr/bin/env python3COMMENT
LOWtest/bench/benchbulk.sh1#!/bin/sh -eCOMMENT
LOWtest/view_server/query_server_spec.rb1# Licensed under the Apache License, Version 2.0 (the "License"); you may notCOMMENT
LOWrel/haproxy.cfg1# Licensed under the Apache License, Version 2.0 (the "License"); you may notCOMMENT
LOW…che/couchdb/nouveau/lucene/NouveauQueryParserTest.java1//COMMENT
LOW…/couchdb/nouveau/lucene/LuceneAnalyzerFactoryTest.java1//COMMENT
LOW…org/apache/couchdb/nouveau/lucene/LuceneIndexTest.java1//COMMENT
LOW…/org/apache/couchdb/nouveau/core/IndexManagerTest.java1//COMMENT
LOW…che/couchdb/nouveau/health/AnalyzeHealthCheckTest.java1//COMMENT
LOW…pache/couchdb/nouveau/health/IndexHealthCheckTest.java1//COMMENT
LOW…rg/apache/couchdb/nouveau/api/IndexDefinitionTest.java1//COMMENT
LOW…/org/apache/couchdb/nouveau/api/SearchRequestTest.java1//COMMENT
LOW…e/couchdb/nouveau/NouveauApplicationConfiguration.java1//COMMENT
LOW…ava/org/apache/couchdb/nouveau/NouveauApplication.java1//COMMENT
LOW…/apache/couchdb/nouveau/tasks/CloseAllIndexesTask.java1//COMMENT
LOW…ava/org/apache/couchdb/nouveau/lucene/LuceneIndex.java1//COMMENT
LOW…g/apache/couchdb/nouveau/lucene/LuceneIndexSchema.java1//COMMENT
LOW…ache/couchdb/nouveau/lucene/LuceneAnalyzerFactory.java1//COMMENT
LOW…/apache/couchdb/nouveau/lucene/NouveauQueryParser.java1//COMMENT
LOW…he/couchdb/nouveau/lucene/ParallelSearcherFactory.java1//COMMENT
LOW…couchdb/nouveau/lucene/SimpleAsciiFoldingAnalyzer.java1//COMMENT
LOW…main/java/org/apache/couchdb/nouveau/core/IOUtils.java1//COMMENT
LOW…c/main/java/org/apache/couchdb/nouveau/core/Index.java1//COMMENT
LOW…ava/org/apache/couchdb/nouveau/core/IndexFunction.java1//COMMENT
LOW…a/org/apache/couchdb/nouveau/core/UserAgentFilter.java1//COMMENT
LOW…g/apache/couchdb/nouveau/core/StaleIndexException.java1//COMMENT
LOW…/java/org/apache/couchdb/nouveau/core/StripedLock.java1//COMMENT
LOW…e/couchdb/nouveau/core/UpdatesOutOfOrderException.java1//COMMENT
LOW…java/org/apache/couchdb/nouveau/core/IndexManager.java1//COMMENT
LOW…org/apache/couchdb/nouveau/core/ser/StringWrapper.java1//COMMENT
LOW…org/apache/couchdb/nouveau/core/ser/DoubleWrapper.java1//COMMENT
LOW…a/org/apache/couchdb/nouveau/core/ser/LongWrapper.java1//COMMENT
LOW…/apache/couchdb/nouveau/core/ser/PrimitiveWrapper.java1//COMMENT
LOW…a/org/apache/couchdb/nouveau/core/ser/NullWrapper.java1//COMMENT
LOW…va/org/apache/couchdb/nouveau/core/ser/IntWrapper.java1//COMMENT
LOW…/apache/couchdb/nouveau/core/ser/ByteArrayWrapper.java1//COMMENT
LOW…/org/apache/couchdb/nouveau/core/ser/FloatWrapper.java1//COMMENT
LOW…rg/apache/couchdb/nouveau/health/IndexHealthCheck.java1//COMMENT
LOW…/apache/couchdb/nouveau/health/AnalyzeHealthCheck.java1//COMMENT
LOW…/apache/couchdb/nouveau/resources/WelcomeResource.java1//COMMENT
LOW…rg/apache/couchdb/nouveau/resources/IndexResource.java1//COMMENT
LOW…/apache/couchdb/nouveau/resources/AnalyzeResource.java1//COMMENT
LOW…n/java/org/apache/couchdb/nouveau/api/DoubleRange.java1//COMMENT
LOW…va/org/apache/couchdb/nouveau/api/WelcomeResponse.java1//COMMENT
LOW…ava/org/apache/couchdb/nouveau/api/DocumentUpdate.java1//COMMENT
LOW…ava/org/apache/couchdb/nouveau/api/AnalyzeRequest.java1//COMMENT
LOW…n/java/org/apache/couchdb/nouveau/api/DoubleField.java1//COMMENT
LOW…ain/java/org/apache/couchdb/nouveau/api/TextField.java1//COMMENT
LOW…/org/apache/couchdb/nouveau/api/IndexInfoResponse.java1//COMMENT
LOW…ain/java/org/apache/couchdb/nouveau/api/SearchHit.java1//COMMENT
LOW…/apache/couchdb/nouveau/api/DocumentUpdateRequest.java1//COMMENT
LOW…java/org/apache/couchdb/nouveau/api/SearchResults.java1//COMMENT
LOW…rc/main/java/org/apache/couchdb/nouveau/api/Range.java1//COMMENT
LOW…va/org/apache/couchdb/nouveau/api/AnalyzeResponse.java1//COMMENT
LOW…n/java/org/apache/couchdb/nouveau/api/StringField.java1//COMMENT
LOW…n/java/org/apache/couchdb/nouveau/api/StoredField.java1//COMMENT
LOW…rc/main/java/org/apache/couchdb/nouveau/api/Field.java1//COMMENT
LOW…va/org/apache/couchdb/nouveau/api/DocumentRequest.java1//COMMENT
129 more matches not shown…
Cross-Language Confusion (JS/TS)11 hits · 55 pts
SeverityFileLineSnippetContext
HIGHshare/server/dreyfus.js58 print(JSON.stringify(buf));CODE
HIGHshare/server/util.js150 print(JSON.stringify(obj));CODE
HIGHshare/server/state.js20 print("true"); // indicates successCODE
HIGHshare/server/state.js33 print("true");CODE
HIGHshare/server/state.js37 print("true");CODE
HIGHshare/server/views.js50 print("[true," + reduce_line + "]");CODE
HIGHshare/server/views.js55 print("[true," + reduce_line + "]");CODE
HIGHshare/server/views.js137 print(JSON.stringify(buf));CODE
HIGHshare/server/dispatch-quickjs.js71 print("true");CODE
HIGHshare/server/nouveau.js104 print(JSON.stringify(buf));CODE
HIGHshare/server/loop.js80 print("true");CODE
Hyper-Verbose Identifiers43 hits · 53 pts
SeverityFileLineSnippetContext
LOWshare/server/60/esprima.js1(function webpackUniversalModuleDefinition(root, factory) {CODE
LOWshare/server/60/esprima.js1197 function AsyncArrowFunctionExpression(params, body, expression) {CODE
LOWsrc/mango/test/24-text-paginated-test.py44 def test_query_with_lot_of_results(self):CODE
LOWsrc/mango/test/24-text-paginated-test.py65 def test_no_duplicates_on_interleaved_updates(self):CODE
LOWsrc/mango/test/24-text-paginated-test.py75 def test_no_duplicates_on_interleaved_updates_heavy(self):CODE
LOWsrc/mango/test/24-text-paginated-test.py96 def test_no_duplicates_on_interleaved_updates_with_limit_skip(self):CODE
LOWsrc/mango/test/16-index-selectors-test.py88 def test_saves_partial_filter_selector_in_index(self):CODE
LOWsrc/mango/test/16-index-selectors-test.py94 def test_partial_filter_only_in_return_if_not_default(self):CODE
LOWsrc/mango/test/16-index-selectors-test.py99 def test_saves_selector_in_index_throws(self):CODE
LOWsrc/mango/test/16-index-selectors-test.py108 def test_uses_partial_index_for_query_selector(self):CODE
LOWsrc/mango/test/16-index-selectors-test.py158 def test_old_selector_with_no_selector_still_supported(self):CODE
LOWsrc/mango/test/16-index-selectors-test.py166 def test_old_selector_still_supported(self):CODE
LOWsrc/mango/test/16-index-selectors-test.py174 def test_uses_partial_index_with_non_indexable_selector(self):CODE
LOWsrc/mango/test/16-index-selectors-test.py121 def test_uses_partial_index_with_different_selector(self):CODE
LOWsrc/mango/test/16-index-selectors-test.py135 def test_doesnot_use_selector_when_not_specified(self):CODE
LOWsrc/mango/test/16-index-selectors-test.py146 def test_doesnot_use_selector_when_not_specified_with_index(self):CODE
LOWsrc/mango/test/16-index-selectors-test.py195 def test_saves_partialfilterselector_in_index(self):CODE
LOWsrc/mango/test/16-index-selectors-test.py204 def test_uses_partial_index_for_query_selector(self):CODE
LOWsrc/mango/test/16-index-selectors-test.py217 def test_uses_partial_index_with_different_selector(self):CODE
LOWsrc/mango/test/16-index-selectors-test.py231 def test_doesnot_use_selector_when_not_specified(self):CODE
LOWsrc/mango/test/16-index-selectors-test.py242 def test_doesnot_use_selector_when_not_specified_with_index(self):CODE
LOWsrc/mango/test/16-index-selectors-test.py256 def test_old_selector_still_supported(self):CODE
LOWsrc/mango/test/16-index-selectors-test.py264 def test_old_selector_still_supported_via_api(self):CODE
LOWsrc/mango/test/16-index-selectors-test.py275 def test_partial_filter_only_in_return_if_not_default(self):CODE
LOWsrc/mango/test/16-index-selectors-test.py280 def test_uses_partial_index_with_non_indexable_selector(self):CODE
LOWsrc/mango/test/17-multi-type-value-test.py33 def test_can_query_with_name_subfield(self):CODE
LOWsrc/mango/test/17-multi-type-value-test.py38 def test_can_query_with_name_range(self):CODE
LOWsrc/mango/test/17-multi-type-value-test.py45 def test_can_query_with_age_and_name_range(self):CODE
LOWsrc/mango/test/06-basic-text-test.py393 def test_exists_object_member(self):CODE
LOWsrc/mango/test/06-basic-text-test.py447 def test_elem_match_non_object(self):CODE
LOWsrc/mango/test/20-no-timeout-test.py29 def test_query_does_not_time_out(self):CODE
LOWsrc/mango/test/18-json-sort.py31 def test_works_for_basic_case(self):CODE
LOWsrc/mango/test/18-json-sort.py38 def test_works_for_all_fields_specified(self):CODE
LOWsrc/mango/test/18-json-sort.py44 def test_works_for_no_sort_fields_specified(self):CODE
LOWsrc/mango/test/18-json-sort.py50 def test_works_for_opp_dir_sort(self):CODE
LOWsrc/mango/test/18-json-sort.py57 def test_not_work_for_non_constant_field(self):CODE
LOWsrc/mango/test/18-json-sort.py108 def test_ignore_after_set_sort_value(self):CODE
LOWsrc/mango/test/18-json-sort.py114 def test_not_use_index_if_other_fields_in_sort(self):CODE
LOWsrc/mango/test/21-empty-selector-tests.py29 def test_empty_array_or_with_age(self):CODE
LOWsrc/mango/test/21-empty-selector-tests.py35 def test_empty_array_in_with_age(self):CODE
LOWsrc/mango/test/21-empty-selector-tests.py41 def test_empty_array_and_with_age(self):CODE
LOWsrc/mango/test/21-empty-selector-tests.py53 def test_empty_array_nested_all_with_age(self):CODE
LOWsrc/mango/test/21-empty-selector-tests.py61 def test_empty_arrays_complex(self):CODE
Fake / Example Data15 hits · 18 pts
SeverityFileLineSnippetContext
LOWtest/elixir/test/data/lorem.txt1Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus nunc sapien, porta id pellentesque at, elementum et fCODE
LOWtest/elixir/test/data/lorem.txt1Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus nunc sapien, porta id pellentesque at, elementum et fCODE
LOWtest/elixir/test/data/lorem.txt13Donec mi enim, laoreet pulvinar mollis eu, malesuada viverra nunc. In vitae metus vitae neque tempor dapibus. Maecenas tCODE
LOWtest/elixir/test/data/lorem.txt13Donec mi enim, laoreet pulvinar mollis eu, malesuada viverra nunc. In vitae metus vitae neque tempor dapibus. Maecenas tCODE
LOWtest/elixir/test/data/lorem.txt25In sed feugiat eros. Donec bibendum ullamcorper diam, eu faucibus mauris dictum sed. Duis tincidunt justo in neque accumCODE
LOWtest/elixir/test/data/lorem.txt25In sed feugiat eros. Donec bibendum ullamcorper diam, eu faucibus mauris dictum sed. Duis tincidunt justo in neque accumCODE
LOWtest/elixir/test/data/lorem.txt47Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum nisl metus, hendrerit ut laoreet sed, consectetur atCODE
LOWtest/elixir/test/data/lorem.txt47Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum nisl metus, hendrerit ut laoreet sed, consectetur atCODE
LOWtest/elixir/test/data/lorem.txt65Phasellus viverra iaculis placerat. Nulla consequat dolor sit amet erat dignissim posuere. Nulla lacinia augue vitae mi CODE
LOWtest/elixir/test/data/lorem.txt85Donec vitae pretium nibh. Maecenas bibendum bibendum diam in placerat. Ut accumsan, mi vitae vestibulum euismod, nunc juCODE
LOWtest/elixir/test/data/lorem.txt85Donec vitae pretium nibh. Maecenas bibendum bibendum diam in placerat. Ut accumsan, mi vitae vestibulum euismod, nunc juCODE
LOWtest/elixir/test/data/lorem.txt89Nulla commodo odio justo. Pellentesque non ornare diam. In consectetur sapien ac nunc sagittis malesuada. Morbi ullamcorCODE
LOWtest/elixir/test/data/lorem.txt89Nulla commodo odio justo. Pellentesque non ornare diam. In consectetur sapien ac nunc sagittis malesuada. Morbi ullamcorCODE
LOWtest/elixir/test/data/lorem.txt91In nec tempor risus. In faucibus nisi eget diam dignissim consequat. Donec pulvinar ante nec enim mattis rutrum. VestibuCODE
LOWtest/elixir/test/data/lorem.txt91In nec tempor risus. In faucibus nisi eget diam dignissim consequat. Donec pulvinar ante nec enim mattis rutrum. VestibuCODE
Excessive Try-Catch Wrapping9 hits · 11 pts
SeverityFileLineSnippetContext
LOWsrc/mango/test/16-index-selectors-test.py103 except Exception as e:CODE
LOWsrc/mango/test/18-json-sort.py63 except Exception as e:CODE
LOWsrc/mango/test/18-json-sort.py85 except Exception as e:CODE
LOWsrc/mango/test/18-json-sort.py104 except Exception as e:CODE
LOWsrc/mango/test/18-json-sort.py120 except Exception as e:CODE
LOWsrc/mango/test/08-text-limit-test.py80 except Exception as e:CODE
LOWsrc/mango/test/08-text-limit-test.py89 except Exception as e:CODE
LOWsrc/mango/test/09-text-sort-test.py46 except Exception as e:CODE
LOWsrc/mango/test/09-text-sort-test.py86 except Exception as e:CODE
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICAL…ava/org/apache/couchdb/nouveau/lucene/LuceneIndex.java335 luceneRanges[i] = new org.apache.lucene.facet.range.DoubleRange(CODE
Unused Imports9 hits · 9 pts
SeverityFileLineSnippetContext
LOWbuild-aux/show-test-results.py5CODE
LOWbuild-aux/show-test-results.py6CODE
LOWsrc/docs/src/conf.py18CODE
LOWsrc/mango/test/17-multi-type-value-test.py15CODE
LOWsrc/mango/test/06-basic-text-test.py18CODE
LOWsrc/mango/test/20-no-timeout-test.py14CODE
LOWsrc/mango/test/20-no-timeout-test.py15CODE
LOWsrc/mango/test/18-json-sort.py15CODE
LOWsrc/mango/test/13-users-db-find-test.py14CODE
Deep Nesting8 hits · 8 pts
SeverityFileLineSnippetContext
LOWbuild-aux/show-test-results.py189CODE
LOWbuild-aux/show-test-results.py211CODE
LOWbuild-aux/show-test-results.py233CODE
LOWbuild-aux/show-test-results.py252CODE
LOWbuild-aux/show-test-results.py352CODE
LOWsrc/docs/ext/linter.py52CODE
LOWsrc/docs/ext/linter.py64CODE
LOWsrc/docs/ext/linter.py201CODE
Synthetic Comment Markers1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHCONTRIBUTING.md313Thus, it is expressly forbidden to contribute material generated by AI, LLMs,CODE
AI Slop Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMbuild-aux/logfile-uploader.py46 # JS harnessCOMMENT
AI Structural Patterns2 hits · 2 pts
SeverityFileLineSnippetContext
LOWsrc/mango/test/mango.py215CODE
LOWsrc/mango/test/mango.py289CODE
Slop Phrases1 hit · 1 pts
SeverityFileLineSnippetContext
LOWrel/overlay/etc/local.ini97; 'username = password' lines. Don't forget to restart CouchDB afterCODE