Repository Analysis

spantaleev/matrix-docker-ansible-deploy

🐳 Matrix (An open network for secure, decentralized communication) server setup using Ansible and Docker

7.0 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of spantaleev/matrix-docker-ansible-deploy, a Jinja project with 6,428 GitHub stars. SynthScan v2.0 examined 64,833 lines of code across 632 source files, recording 401 pattern matches distributed across 10 syntactic categories. The overall adjusted score of 7.0 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).

7.0
Adjusted Score
7.0
Raw Score
100%
Time Factor
2026-07-14
Last Push
6.4K
Stars
Jinja
Language
64.8K
Lines of Code
632
Files
401
Pattern Hits
2026-07-14
Scan Date
0.01
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 5MEDIUM 14LOW 382

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 401 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.

Over-Commented Block370 hits · 352 pts
SeverityFileLineSnippetContext
LOWconf.py1# SPDX-FileCopyrightText: 2024 Slavi Pantaleev <slavi@devture.com>COMMENT
LOWbin/add-inventory-host.sh1#!/usr/bin/env bashCOMMENT
LOWbin/ansible-all-hosts.sh1#!/usr/bin/env bashCOMMENT
LOWroles/custom/matrix-client-element/defaults/main.yml1# SPDX-FileCopyrightText: 2020 - 2022 Aaron RaimistCOMMENT
LOWroles/custom/matrix-client-element/defaults/main.yml41matrix_client_element_container_src_dockerfile_path: "{{ matrix_client_element_container_src_files_path }}/apps/web/DockCOMMENT
LOWroles/custom/matrix-client-element/defaults/main.yml101# matrix_client_element_container_labels_additional_labels: |COMMENT
LOWroles/custom/matrix-client-element/defaults/main.yml141# Controls whether to send a "Permissions-Policy interest-cohort=();" header along with all responsesCOMMENT
LOWroles/custom/matrix-client-element/defaults/main.yml281COMMENT
LOWroles/custom/matrix-client-element/defaults/main.yml301# Note that for a custom theme to work well, all Element Web instances that you use must have the same theme installed.COMMENT
LOWroles/custom/matrix-client-element/defaults/main.yml321#COMMENT
LOWroles/custom/matrix-client-element/defaults/main.yml341COMMENT
LOWroles/custom/matrix-client-element/defaults/main.yml361# If you need something more special, you can take full control byCOMMENT
LOWroles/custom/matrix-client-element/defaults/main.yml381# "attribution": "",COMMENT
LOWroles/custom/matrix-client-element/defaults/main.yml401COMMENT
LOWroles/custom/matrix-client-element/defaults/main.yml421# ELEMENT_WEB_PORT=8080COMMENT
LOWroles/custom/matrix-bot-baibot/defaults/main.yml61# Authentication settings (`user.*` configuration keys).COMMENT
LOWroles/custom/matrix-bot-baibot/defaults/main.yml81# Controls the `user.device_id` configuration setting.COMMENT
LOWroles/custom/matrix-bot-baibot/defaults/main.yml101# - Set this variable to something like `/data/avatar.png` (the in-container path)COMMENT
LOWroles/custom/matrix-bot-baibot/defaults/main.yml121# - Restart the botCOMMENT
LOWroles/custom/matrix-bot-baibot/defaults/main.yml141# Example:COMMENT
LOWroles/custom/matrix-bot-baibot/defaults/main.yml161# Changing this subsequently requires that you also throw away all data (see `matrix_bot_baibot_data_path`)COMMENT
LOWroles/custom/matrix-bot-baibot/defaults/main.yml281matrix_bot_baibot_config_agents_static_definitions_groq_config_extension: "{{ matrix_bot_baibot_config_agents_static_defCOMMENT
LOWroles/custom/matrix-bot-baibot/defaults/main.yml341 # This configuration extends the default starting configuration (`matrix_bot_baibot_config_agents_static_definitions_mCOMMENT
LOWroles/custom/matrix-bot-baibot/defaults/main.yml361# See: https://huggingface.co/docs/transformers/en/tasks/promptingCOMMENT
LOWroles/custom/matrix-bot-baibot/defaults/main.yml461matrix_bot_baibot_config_agents_static_definitions_venice_config: "{{ matrix_bot_baibot_config_agents_static_definitionsCOMMENT
LOWroles/custom/matrix-bot-baibot/defaults/main.yml501# omitted from the request and Venice applies its own server-side default. Set a value to override.COMMENT
LOWroles/custom/matrix-bot-baibot/defaults/main.yml601# Image editing shares this image_generation config block; only the model differs.COMMENT
LOWroles/custom/matrix-bot-baibot/defaults/main.yml621#COMMENT
LOWroles/custom/matrix-bot-baibot/defaults/main.yml641# It only affects the first run of the bot. Configuration is later managed at runtime.COMMENT
LOWroles/custom/matrix-bot-baibot/defaults/main.yml661#COMMENT
LOWroles/custom/matrix-bot-baibot/defaults/main.yml681# Affects the logging level of the bot itself.COMMENT
LOWroles/custom/matrix-bot-baibot/defaults/main.yml701 #COMMENT
LOWroles/custom/matrix-bot-baibot/defaults/main.yml721# matrix_bot_baibot_restart_necessary controls whether the serviceCOMMENT
LOWroles/custom/matrix-conduit/defaults/main.yml41# Controls how long to sleep for after starting the matrix-synapse container.COMMENT
LOWroles/custom/matrix-conduit/defaults/main.yml161# This value is automatically computed during installation based on whetherCOMMENT
LOWroles/custom/matrix-bot-buscarron/defaults/main.yml201# will be restarted (when true) or merely started (when false) by theCOMMENT
LOWroles/custom/matrix-media-repo/defaults/main.yml1# SPDX-FileCopyrightText: 2023 - 2024 Michael HollisterCOMMENT
LOWroles/custom/matrix-media-repo/defaults/main.yml61# Controls whether the matrix-media-repo container exposes its HTTP port (tcp/8000 in the container).COMMENT
LOWroles/custom/matrix-media-repo/defaults/main.yml221 | combine ({'X-Forwarded-Host': matrix_domain} if matrix_domain else {})COMMENT
LOWroles/custom/matrix-media-repo/defaults/main.yml241# *****************************************************************************COMMENT
LOWroles/custom/matrix-media-repo/defaults/main.yml261matrix_media_repo_json_logs: falseCOMMENT
LOWroles/custom/matrix-media-repo/defaults/main.yml281# media repo will back off. This defaults to 20 if not given. Note that 404 errors fromCOMMENT
LOWroles/custom/matrix-media-repo/defaults/main.yml341# be proxied through this process. They will also be called on the homeserver, and the responseCOMMENT
LOWroles/custom/matrix-media-repo/defaults/main.yml361COMMENT
LOWroles/custom/matrix-media-repo/defaults/main.yml381# # A note about regexes: it is best to suffix *all* namespaces with the homeserverCOMMENT
LOWroles/custom/matrix-media-repo/defaults/main.yml401# Shared secret auth is useful for applications building on top of the media repository, suchCOMMENT
LOWroles/custom/matrix-media-repo/defaults/main.yml421# previous behavior of this role.COMMENT
LOWroles/custom/matrix-media-repo/defaults/main.yml441COMMENT
LOWroles/custom/matrix-media-repo/defaults/main.yml461#COMMENT
LOWroles/custom/matrix-media-repo/defaults/main.yml481COMMENT
LOWroles/custom/matrix-media-repo/defaults/main.yml501# when `publicBaseUrl` is unset. Defaults to false (cached media will be served by MMRCOMMENT
LOWroles/custom/matrix-media-repo/defaults/main.yml521# of any file upload limits and will require a similar amount of memory when performing an export.COMMENT
LOWroles/custom/matrix-media-repo/defaults/main.yml541# This is purely for informational reasons and does not actually limit any functionality.COMMENT
LOWroles/custom/matrix-media-repo/defaults/main.yml561# Whether quotas are enabled/enforced. Note that even when disabled the media repo willCOMMENT
LOWroles/custom/matrix-media-repo/defaults/main.yml581 # will prevent upload. Note that a user can still have uploads contributing to maxPending,COMMENT
LOWroles/custom/matrix-media-repo/defaults/main.yml601# has passed, the media is able to be re-requested.COMMENT
LOWroles/custom/matrix-media-repo/defaults/main.yml641COMMENT
LOWroles/custom/matrix-media-repo/defaults/main.yml681matrix_media_repo_url_previews_default_language: "en-US,en"COMMENT
LOWroles/custom/matrix-media-repo/defaults/main.yml781COMMENT
LOWroles/custom/matrix-media-repo/defaults/main.yml801# The number of bytes to "drain" from the bucket every minute.COMMENT
310 more matches not shown…
Magic Placeholder Names4 hits · 30 pts
SeverityFileLineSnippetContext
HIGHdocs/configuring-playbook-user-verification-service.md70It is possible to set an API Auth Token to restrict access to the UVS. If this is enabled, anyone making a request to UVCODE
HIGHdocs/configuring-playbook-user-verification-service.md72By default, the token (`YOUR_TOKEN_HERE`) will be derived from `matrix_homeserver_generic_secret_key` in `group_vars/matCODE
HIGHdocs/configuring-playbook-user-verification-service.md74To set your own token, add the following configuration to your `vars.yml` file. Make sure to replace `YOUR_TOKEN_HERE` wCODE
HIGHdocs/configuring-playbook-user-verification-service.md77matrix_user_verification_service_uvs_auth_token: "YOUR_TOKEN_HERE"CODE
Decorative Section Separators6 hits · 24 pts
SeverityFileLineSnippetContext
MEDIUMroles/custom/matrix-client-commet/defaults/main.yml51# ---------------------------------------------------------------------------COMMENT
MEDIUMroles/custom/matrix-client-commet/defaults/main.yml53# ---------------------------------------------------------------------------COMMENT
MEDIUMroles/custom/matrix-client-commet/defaults/main.yml87# ---------------------------------------------------------------------------COMMENT
MEDIUMroles/custom/matrix-client-commet/defaults/main.yml89# ---------------------------------------------------------------------------COMMENT
MEDIUMroles/custom/matrix-client-commet/defaults/main.yml95# ---------------------------------------------------------------------------COMMENT
MEDIUMroles/custom/matrix-client-commet/defaults/main.yml97# ---------------------------------------------------------------------------COMMENT
Redundant / Tautological Comments8 hits · 12 pts
SeverityFileLineSnippetContext
LOWroles/custom/matrix-media-repo/defaults/main.yml406# Set this to true to enable shared secret auth.COMMENT
LOWroles/custom/matrix-media-repo/defaults/main.yml542# Set this to -1 to indicate that there is no limit. Zero will force the use of maxBytes.COMMENT
LOWroles/custom/matrix-media-repo/defaults/main.yml776# Set this to false if rate limiting is handled at a higher level or you don't want it enabled.COMMENT
LOWroles/custom/matrix-bot-draupnir/defaults/main.yml149# Set this to the Pantalaimon URL if you're using that.COMMENT
LOWroles/custom/matrix-bot-mjolnir/defaults/main.yml74# Set this to the pantalaimon URL if you're using that.COMMENT
LOW…es/custom/matrix-bridge-heisenbridge/defaults/main.yml28# Set this to your Matrix ID if you want to enforce the owner, otherwise first _local_ user becomes oneCOMMENT
LOW…tom/matrix-user-verification-service/defaults/main.yml13# Set this to the display name for ansible used in Output e.g. fail_msgCOMMENT
LOWroles/custom/matrix-synapse/defaults/main.yml1425# Set this to false if you still want to disable to API for some reason. Note that doing so breaks Element X compatibiliCOMMENT
Slop Phrases5 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUMroles/custom/matrix-bridge-sms/defaults/main.yml92 # (optional) if you use a self signed certificate, you can add the public key hereCOMMENT
LOWroles/custom/matrix-synapse/vars/main.yml157# don't forget to actually configure it where appropriate (see worker.yaml.j2`, the nginx proxy configuration, etc).COMMENT
LOWroles/custom/matrix-synapse/vars/main.yml157# don't forget to actually configure it where appropriate (see worker.yaml.j2`, the nginx proxy configuration, etc).COMMENT
MEDIUMroles/custom/matrix-synapse/defaults/main.yml735# By default, all of the server's memory is taken into account, but you can adjust this.COMMENT
MEDIUMexamples/reverse-proxies/haproxy/haproxy.cfg44 # HAproxy wants the full chain and the private key in one file. For Letsencrypt manually generated certs (e.g., wildCOMMENT
Self-Referential Comments3 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUMbin/rebuild-mautrix-meta-instagram.sh40# Create the README.md file with the license headerCOMMENT
MEDIUMroles/custom/matrix-synapse/vars/main.yml197# The following section contains content that had previously been generated by a script (`workers-doc-to-yaml.awk`) procCOMMENT
MEDIUMcollections/requirements.yml2# This file is not used by the playbook's standard CLI installation flow.COMMENT
AI Response Leakage1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHdocs/configuring-playbook-bot-baibot.md410# In this example, there's no need to define any of these below.COMMENT
Modern AI Meta-Vocabulary2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMroles/custom/matrix-base/defaults/main.yml276# They are meant for orchestration concerns like container networking and systemd ordering,COMMENT
MEDIUMroles/custom/matrix-base/defaults/main.yml285# It is meant for orchestration concerns like container networking, systemd ordering, and database creation,COMMENT
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWroles/custom/matrix-synapse/defaults/main.yml51# Example usage:COMMENT
Excessive Try-Catch Wrapping1 hit · 1 pts
SeverityFileLineSnippetContext
LOW…/tasks/validate_config_sqlite_legacy_migration_bug.yml54 except Exception:CODE