Repository Analysis

crownengine/crown

A complete and cross-platform game engine designed for flexibility, performance and fast iteration.

3.0 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of crownengine/crown, a C++ project with 2,415 GitHub stars. SynthScan v2.0 examined 1,294,117 lines of code across 2484 source files, recording 4444 pattern matches distributed across 12 syntactic categories. The overall adjusted score of 3.0 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.0
Adjusted Score
3.0
Raw Score
100%
Time Factor
2026-07-14
Last Push
2.4K
Stars
C++
Language
1.3M
Lines of Code
2.5K
Files
4.4K
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

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 0HIGH 1MEDIUM 25LOW 4418

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 4444 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 Block4364 hits · 3762 pts
SeverityFileLineSnippetContext
LOWtools/launcher/launcher.cpp1/*COMMENT
LOW…ols/level_editor/resources/theme/Adwaita/_drawing.scss121COMMENT
LOW…ols/level_editor/resources/theme/Adwaita/_drawing.scss161 -gtk-icon-shadow: 0 1px $_shadow;COMMENT
LOW…ols/level_editor/resources/theme/Adwaita/_drawing.scss481 @else { background: $c $gradient; }COMMENT
LOWtools/widgets/gtk/config.h1// To make gtkcolorpicker* compile.COMMENT
LOWdocs/conf.py1#!/usr/bin/env python3COMMENT
LOWdocs/conf.py61# The version info for the project you're documenting, acts as replacement forCOMMENT
LOWdocs/conf.py121COMMENT
LOWdocs/_extensions/sphinx_sitemap/__init__.py1# Copyright (c) 2013 Michael Dowling <mtdowling@gmail.com>COMMENT
LOW3rdparty/md5/md5.c101#define T2 0xe8c7b756COMMENT
LOW3rdparty/md5/md5.c121#define T22 0x02441453COMMENT
LOW3rdparty/md5/md5.c141#define T42 0xeaa127faCOMMENT
LOW3rdparty/bgfx/tools/shaderc/shaderc_hlsl.cpp1/*COMMENT
LOW3rdparty/bgfx/tools/shaderc/shaderc.cpp61 // c - computeCOMMENT
LOW3rdparty/bgfx/tools/shaderc/shaderc.cpp81 // metal<MSL version>-<SPIR-V version>COMMENT
LOW3rdparty/bgfx/tools/shaderc/shaderc.h21#include <bx/endian.h>COMMENT
LOW3rdparty/bgfx/include/bgfx/defines.h61 * helper macros.COMMENT
LOW3rdparty/bgfx/include/bgfx/defines.h81 * Use BGFX_STATE_BLEND_EQUATION(_equation) or BGFX_STATE_BLEND_EQUATION_SEPARATE(_equationRGB, _equationA)COMMENT
LOW3rdparty/bgfx/include/bgfx/defines.h121#define BGFX_STATE_POINT_SIZE_SHIFT 52 //!< Point size bit shiftCOMMENT
LOW3rdparty/bgfx/include/bgfx/defines.h181#define BGFX_STENCIL_TEST_LEQUAL UINT32_C(0x00020000) //!< Enable stencil test, less or equal.COMMENT
LOW3rdparty/bgfx/include/bgfx/defines.h201COMMENT
LOW3rdparty/bgfx/include/bgfx/defines.h221#define BGFX_STENCIL_OP_PASS_Z_SHIFT 28 //!< Stencil operation depth pass bit shiftCOMMENT
LOW3rdparty/bgfx/include/bgfx/defines.h261#define BGFX_DISCARD_NONE UINT8_C(0x00) //!< Preserve everything.COMMENT
LOW3rdparty/bgfx/include/bgfx/defines.h281#define BGFX_BUFFER_COMPUTE_FORMAT_8X2 UINT16_C(0x0002) //!< 2 x 8-bit valuesCOMMENT
LOW3rdparty/bgfx/include/bgfx/defines.h301#define BGFX_BUFFER_COMPUTE_READ UINT16_C(0x0100) //!< Buffer will be read by shader.COMMENT
LOW3rdparty/bgfx/include/bgfx/defines.h321#define BGFX_TEXTURE_RT_MSAA_X4 UINT64_C(0x0000003000000000) //!< Render target MSAAx4 mode.COMMENT
LOW3rdparty/bgfx/include/bgfx/defines.h341COMMENT
LOW3rdparty/bgfx/include/bgfx/defines.h361COMMENT
LOW3rdparty/bgfx/include/bgfx/defines.h381#define BGFX_SAMPLER_COMPARE_NEVER UINT32_C(0x00070000) //!< Compare when sampling depth texture: never.COMMENT
LOW3rdparty/bgfx/include/bgfx/defines.h441#define BGFX_RESET_NONE UINT32_C(0x00000000) //!< No reset flags.COMMENT
LOW3rdparty/bgfx/include/bgfx/defines.h461COMMENT
LOW3rdparty/bgfx/include/bgfx/defines.h481#define BGFX_CAPS_RENDERER_MULTITHREADED UINT64_C(0x0000000000010000) //!< Renderer is on separate thread.COMMENT
LOW3rdparty/bgfx/include/bgfx/defines.h501 )COMMENT
LOW3rdparty/bgfx/include/bgfx/defines.h521COMMENT
LOW3rdparty/bgfx/include/bgfx/defines.h541COMMENT
LOW3rdparty/bgfx/include/bgfx/bgfx.h141 /// Notation:COMMENT
LOW3rdparty/bgfx/include/bgfx/bgfx.h481 ///COMMENT
LOW3rdparty/bgfx/include/bgfx/bgfx.h501 /// @remarksCOMMENT
LOW3rdparty/bgfx/include/bgfx/bgfx.h521 /// @remarksCOMMENT
LOW3rdparty/bgfx/include/bgfx/bgfx.h541 /// Not thread safe and it can be called from any thread.COMMENT
LOW3rdparty/bgfx/include/bgfx/bgfx.h561 ///COMMENT
LOW3rdparty/bgfx/include/bgfx/bgfx.h581 /// found.COMMENT
LOW3rdparty/bgfx/include/bgfx/bgfx.h601COMMENT
LOW3rdparty/bgfx/include/bgfx/bgfx.h721 /// a default rendering backend will be selected appropriate to the platform.COMMENT
LOW3rdparty/bgfx/include/bgfx/bgfx.h861 uint32_t minResourceCbSize; //!< Minimum resource command buffer size.COMMENT
LOW3rdparty/bgfx/include/bgfx/bgfx.h881 /// - `BGFX_CAPS_FORMAT_TEXTURE_IMAGE_READ` - Texture format can be used as imageCOMMENT
LOW3rdparty/bgfx/include/bgfx/bgfx.h961 uint16_t num; //!< Number of elements in array.COMMENT
LOW3rdparty/bgfx/include/bgfx/bgfx.h1101 {COMMENT
LOW3rdparty/bgfx/include/bgfx/bgfx.h1121 /// - `BGFX_STATE_WRITE_*` - Enable R, G, B, A or Z write.COMMENT
LOW3rdparty/bgfx/include/bgfx/bgfx.h1161 /// @param[in] _bstencil Back stencil state. If back is set to `BGFX_STENCIL_NONE`COMMENT
LOW3rdparty/bgfx/include/bgfx/bgfx.h1181 ///COMMENT
LOW3rdparty/bgfx/include/bgfx/bgfx.h1201 /// @param[in] _mtx Pointer to first matrix in array.COMMENT
LOW3rdparty/bgfx/include/bgfx/bgfx.h1241 /// @param[in] _handle Uniform.COMMENT
LOW3rdparty/bgfx/include/bgfx/bgfx.h1261COMMENT
LOW3rdparty/bgfx/include/bgfx/bgfx.h1281 ///COMMENT
LOW3rdparty/bgfx/include/bgfx/bgfx.h1301 ///COMMENT
LOW3rdparty/bgfx/include/bgfx/bgfx.h1321 ///COMMENT
LOW3rdparty/bgfx/include/bgfx/bgfx.h1361 );COMMENT
LOW3rdparty/bgfx/include/bgfx/bgfx.h1381COMMENT
LOW3rdparty/bgfx/include/bgfx/bgfx.h1401 /// used, vertex layout used for creation of vertex buffer will be used.COMMENT
4304 more matches not shown…
AI Slop Vocabulary21 hits · 61 pts
SeverityFileLineSnippetContext
MEDIUM3rdparty/bgfx/3rdparty/spirv-cross/spirv_glsl.cpp346 // Sanity check the iteration count to be robust against a certain class of bugs whereCOMMENT
MEDIUM3rdparty/bgfx/3rdparty/spirv-cross/spirv_glsl.cpp11903 // Essentially, we can only remove one set of swizzles, since that's what we have control over ...COMMENT
MEDIUM3rdparty/bgfx/3rdparty/spirv-cross/spirv_glsl.cpp12162 // We can look at result type which is more robust.COMMENT
MEDIUM3rdparty/bgfx/3rdparty/spirv-cross/spirv_cross.cpp3965 // Essentially a map of block -> { variables accessed in the basic block }COMMENT
MEDIUM3rdparty/bgfx/3rdparty/spirv-cross/spirv_hlsl.cpp1776 // Sort input and output variables based on, from more robust to less robust:COMMENT
MEDIUM…3rdparty/spirv-tools/include/spirv-tools/optimizer.hpp765// Creates a graphics robust access pass.COMMENT
MEDIUM…dparty/bgfx/3rdparty/spirv-tools/source/diagnostic.cpp92 case SPV_REQUESTED_TERMINATION: // Essentially success.CODE
MEDIUM…party/bgfx/3rdparty/spirv-tools/source/opt/ir_loader.h33// libspirv.h so that we can leverage the syntax checks implemented behind it.COMMENT
MEDIUM…dparty/bgfx/3rdparty/spirv-tools/source/opt/ccp_pass.h62 // CCP lattice. Essentially, if all the operands in |phi| have the sameCOMMENT
MEDIUM3rdparty/bgfx/3rdparty/glslang/SPIRV/GlslangToSpv.cpp5988 // TODO: It would be more robust to do a full recursive verification of the types satisfying SPIR-V rules.COMMENT
MEDIUM…rty/glslang/glslang/MachineIndependent/ParseHelper.cpp9557// for the parameter to the constructor (passed to this function). Essentially, it convertsCOMMENT
MEDIUM…bgfx/3rdparty/glslang/glslang/HLSL/hlslParseHelper.cpp8537// for the parameter to the constructor (passed to this function). Essentially, it convertsCOMMENT
MEDIUM…rty/glsl-optimizer/src/glsl/ir_print_metal_visitor.cpp977 // take precision from it. This isn't fully robust now, but oh well.COMMENT
MEDIUM3rdparty/bimg/3rdparty/tinyexr/tinyexr.h1554 // TODO(syoyo): Add more robust out-of-bounds check in `rleUncompress`.COMMENT
MEDIUM3rdparty/stb/stb_vorbis.c51// 1.10 - 2017-03-03 - more robust seeking; fix negative ilog(); clear error in open_memoryCOMMENT
MEDIUM…ullet3/src/BulletSoftBody/btDeformableCorotatedForce.h102 PolarDecomposition(F, R, S); // this QR is not robust, consider using implicit shift svdCODE
MEDIUM…rc/BulletCollision/NarrowPhaseCollision/btConvexCast.h34//will need to digg deeper to make the algorithm more robustCOMMENT
MEDIUM…BulletCollision/CollisionDispatch/btBoxBoxDetector.cpp97 // @@@ this needs to be made more robustCOMMENT
MEDIUM…cs/ConstraintSolver/btGeneric6DofSpring2Constraint.cpp871 // so it is much simpler (and more robust) just to simply use inf (with the proper sign)COMMENT
MEDIUM3rdparty/bullet3/src/LinearMath/btMatrix3x3.h682 ///extractRotation is from "A robust method to extract the rotational part of deformations"COMMENT
MEDIUM3rdparty/ufbx/ufbx.h5016 // Using this and robust linear interpolation will handle stepped tangents correctlyCOMMENT
Structural Annotation Overuse14 hits · 25 pts
SeverityFileLineSnippetContext
LOW…3rdparty/spirv-tools/source/opt/loop_unswitch_pass.cpp155 // Step 1: Create the if merge block for structured modules.COMMENT
LOW…3rdparty/spirv-tools/source/opt/loop_unswitch_pass.cpp235 // Step 2: Build a new preheader for |loop_|, use the old oneCOMMENT
LOW…3rdparty/spirv-tools/source/opt/loop_unswitch_pass.cpp361 // Step 3: Duplicate |loop_|.COMMENT
LOW…3rdparty/spirv-tools/source/opt/loop_unswitch_pass.cpp373 // Step 4: Specialize the loop. //COMMENT
LOW…3rdparty/spirv-tools/source/opt/loop_unswitch_pass.cpp380 // Step 5: Connect convergent edges to the landing pads. //COMMENT
LOW…y/bgfx/3rdparty/spirv-tools/source/val/validate_id.cpp48/// NOTE: This function does NOT check module scoped functions which areCOMMENT
LOW…fx/3rdparty/spirv-tools/source/val/validate_layout.cpp427// NOTE: This function does not handle CFG related validationCOMMENT
LOW3rdparty/bgfx/3rdparty/glslang/SPIRV/SpvBuilder.cpp4020 // Step 2: Construct a matrix from that array.COMMENT
LOW3rdparty/bgfx/3rdparty/glslang/SPIRV/GlslangToSpv.cpp5959// NOTE: This function can handle any store request; if it's not special itCOMMENT
LOW…bgfx/3rdparty/glslang/glslang/HLSL/hlslParseHelper.cpp7749 // Step 1: If there's an exact match, use it.COMMENT
LOW…bgfx/3rdparty/glslang/glslang/HLSL/hlslParseHelper.cpp7752 // Step 3: Re-select after type promotion is applied, to find proper candidate.COMMENT
LOW…bgfx/3rdparty/glslang/glslang/HLSL/hlslParseHelper.cpp7754 // Step 1: If there's an exact match, use it.COMMENT
LOW…bgfx/3rdparty/glslang/glslang/HLSL/hlslParseHelper.cpp7810 // Step 3: Re-select after type promotion, to find proper candidateCOMMENT
LOW3rdparty/ufbx/ufbx.h5574// NOTE: This function flips the normals if the determinant is negative.COMMENT
Verbosity Indicators10 hits · 19 pts
SeverityFileLineSnippetContext
LOW…3rdparty/spirv-tools/source/opt/loop_unswitch_pass.cpp155 // Step 1: Create the if merge block for structured modules.COMMENT
LOW…3rdparty/spirv-tools/source/opt/loop_unswitch_pass.cpp235 // Step 2: Build a new preheader for |loop_|, use the old oneCOMMENT
LOW…3rdparty/spirv-tools/source/opt/loop_unswitch_pass.cpp361 // Step 3: Duplicate |loop_|.COMMENT
LOW…3rdparty/spirv-tools/source/opt/loop_unswitch_pass.cpp373 // Step 4: Specialize the loop. //COMMENT
LOW…3rdparty/spirv-tools/source/opt/loop_unswitch_pass.cpp380 // Step 5: Connect convergent edges to the landing pads. //COMMENT
LOW3rdparty/bgfx/3rdparty/glslang/SPIRV/SpvBuilder.cpp4020 // Step 2: Construct a matrix from that array.COMMENT
LOW…bgfx/3rdparty/glslang/glslang/HLSL/hlslParseHelper.cpp7749 // Step 1: If there's an exact match, use it.COMMENT
LOW…bgfx/3rdparty/glslang/glslang/HLSL/hlslParseHelper.cpp7752 // Step 3: Re-select after type promotion is applied, to find proper candidate.COMMENT
LOW…bgfx/3rdparty/glslang/glslang/HLSL/hlslParseHelper.cpp7754 // Step 1: If there's an exact match, use it.COMMENT
LOW…bgfx/3rdparty/glslang/glslang/HLSL/hlslParseHelper.cpp7810 // Step 3: Re-select after type promotion, to find proper candidateCOMMENT
Unused Imports13 hits · 13 pts
SeverityFileLineSnippetContext
LOWexporters/blender/blender-2-83.py19CODE
LOWexporters/blender/blender-2-83.py20CODE
LOWexporters/blender/blender-2-83.py21CODE
LOWexporters/blender/blender-2-83.py277CODE
LOWexporters/blender/blender-2-83.py277CODE
LOWexporters/blender/blender-2-83.py278CODE
LOWexporters/blender/blender-2-83.py278CODE
LOWexporters/blender/blender-2-83.py313CODE
LOWdocs/_extensions/sphinxext/opengraph/_social_cards.py3CODE
LOWdocs/_extensions/sphinxext/opengraph/_meta_parser.py1CODE
LOWdocs/_extensions/sphinxext/opengraph/__init__.py1CODE
LOW…_extensions/sphinxext/opengraph/_description_parser.py1CODE
LOWdocs/_extensions/sphinxext/opengraph/_title_parser.py1CODE
Self-Referential Comments4 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUMdocs/conf.py7# This file is execfile()d with the current directory set to itsCOMMENT
MEDIUMdocs/_extensions/sphinxext/opengraph/_social_cards.py74 # Define the file path we'll use for this imageCOMMENT
MEDIUMdocs/_extensions/sphinxext/opengraph/_social_cards.py133 # Create the figure objects and return them so that we re-use them later.COMMENT
MEDIUM3rdparty/bx/3rdparty/ini/ini.h95#### Creating a new ini fileCOMMENT
TODO Padding6 hits · 8 pts
SeverityFileLineSnippetContext
LOW…rdparty/spirv-tools/source/val/validate_annotation.cpp331 // TODO: Add validations for all decorations.COMMENT
LOW…rdparty/spirv-tools/source/val/validate_annotation.cpp368 // TODO: Add validations for these decorations.COMMENT
LOW…rdparty/spirv-tools/source/val/validate_extensions.cpp3801 // TODO: Add validation rules for remaining cases as well.COMMENT
LOW…ty/glslang/glslang/MachineIndependent/linkValidate.cpp233 // TODO: implement support for geometry passthroughCOMMENT
LOW…bgfx/3rdparty/glslang/glslang/HLSL/hlslParseHelper.cpp188 // TODO: implement.COMMENT
LOW3rdparty/bgfx/src/renderer_mtl.h1593 uint32_t m_frameNum; // TODO: implement (currently stays 0)CODE
AI Response Leakage1 hit · 8 pts
SeverityFileLineSnippetContext
HIGH…y/bgfx/3rdparty/spirv-tools/source/util/small_vector.h40// TODO: I have implemented the public member functions from |std::vector| thatCOMMENT
Deep Nesting5 hits · 5 pts
SeverityFileLineSnippetContext
LOWexporters/blender/blender-2-83.py32CODE
LOWexporters/blender/blender-2-83.py49CODE
LOWexporters/blender/blender-2-83.py86CODE
LOWdocs/_extensions/sphinx_sitemap/__init__.py82CODE
LOWdocs/_extensions/sphinxext/opengraph/__init__.py83CODE
Hyper-Verbose Identifiers3 hits · 3 pts
SeverityFileLineSnippetContext
LOWdocs/_extensions/sphinxext/opengraph/_social_cards.py171def create_social_card_objects(CODE
LOWdocs/_extensions/sphinxext/opengraph/_social_cards.py315def _set_page_title_line_width() -> int:CODE
LOWdocs/_extensions/sphinxext/opengraph/_social_cards.py319def _set_description_line_width() -> int:CODE
Slop Phrases2 hits · 2 pts
SeverityFileLineSnippetContext
LOW3rdparty/bimg/3rdparty/lodepng/lodepng.cpp70lodepng source code. Don't forget to remove "static" if you copypaste themCODE
LOW…ulletDynamics/ConstraintSolver/btConeTwistConstraint.h319 // note: don't forget to enableMotor()COMMENT
AI Structural Patterns1 hit · 1 pts
SeverityFileLineSnippetContext
LOWdocs/_extensions/sphinxext/opengraph/_social_cards.py171CODE