A simple and easy-to-use library to enjoy videogames programming
This report presents the forensic synthetic code analysis of raysan5/raylib, a C project with 33,841 GitHub stars. SynthScan v2.0 examined 395,510 lines of code across 468 source files, recording 1523 pattern matches distributed across 9 syntactic categories. The overall adjusted score of 3.4 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).
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.
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.
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.
The scanner identified 1523 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | CMakeLists.txt | 1 | cmake_minimum_required(VERSION 3.22) | COMMENT |
| LOW | tools/rlparser/rlparser.c | 61 | #include <stdlib.h> // Required for: malloc(), calloc(), realloc(), free(), atoi(), strtol() | COMMENT |
| LOW | tools/rlparser/rlparser.c | 1041 | free(funcLines); | COMMENT |
| LOW | tools/rexm/rexm.c | 61 | #else | COMMENT |
| LOW | tools/rexm/rexm.c | 261 | //-------------------------------------------------------------------------------------- | COMMENT |
| LOW | tools/rexm/rexm.c | 661 | LOG("INFO: [%s] Adding project to raylib solution (.sln)\n", | COMMENT |
| LOW | tools/rexm/rexm.c | 1481 | } break; | COMMENT |
| LOW | tools/rexm/rexm.c | 1521 | // STEP 1: Load example.c and replace required code to inject basic testing code: frames to run | COMMENT |
| LOW | tools/rexm/rexm.c | 1761 | } | COMMENT |
| LOW | projects/Zig/src/core_basic_window.c | 21 | COMMENT | |
| LOW | projects/CMake/core_basic_window.c | 21 | COMMENT | |
| LOW | …aylib_android.NativeActivity/android_native_app_glue.h | 121 | // возврате. Верните 1, если событие обработано, 0 — для любой диспетчеризации | COMMENT |
| LOW | …aylib_android.NativeActivity/android_native_app_glue.c | 21 | #include <stdlib.h> | COMMENT |
| LOW | projects/scripts/build-osx.sh | 1 | #!/bin/sh | COMMENT |
| LOW | projects/scripts/build-rpi.sh | 1 | #!/bin/sh | COMMENT |
| LOW | projects/scripts/build-linux.sh | 1 | #!/bin/sh | COMMENT |
| LOW | projects/VSCode/main.c | 21 | COMMENT | |
| LOW | examples/examples_list.txt | 1 | # | COMMENT |
| LOW | examples/core/core_undo_redo.c | 21 | #include <string.h> // Required for: memcpy(), strcmp() | COMMENT |
| LOW | examples/core/msf_gif.h | 161 | //These functions are equivalent to the ones above, but they write results to a file incrementally, | COMMENT |
| LOW | examples/core/msf_gif.h | 181 | COMMENT | |
| LOW | examples/core/msf_gif.h | 201 | #include <stdlib.h> //malloc, etc. | COMMENT |
| LOW | examples/core/core_3d_camera_fps.c | 21 | COMMENT | |
| LOW | examples/core/core_window_web.c | 21 | #if defined(PLATFORM_WEB) | COMMENT |
| LOW | examples/core/raygui.h | 341 | #define RAYGUI_H | COMMENT |
| LOW | examples/core/raygui.h | 361 | #endif | COMMENT |
| LOW | examples/core/raygui.h | 381 | // TODO: Define additionally required macros for missing inputs | COMMENT |
| LOW | examples/core/raygui.h | 401 | #define GUI_SCROLL_DELTA ((float)IsGamepadButtonDown(0, GAMEPAD_BUTTON_RIGHT_TRIGGER_2) - (float)IsGamepadBut | COMMENT |
| LOW | examples/core/raygui.h | 621 | //TEXT_DECORATION // Text decoration: 0-None, 1-Underline, 2-Line-through, 3-Overline | COMMENT |
| LOW | examples/core/raygui.h | 1101 | #include <math.h> // Required for: roundf() [GuiColorPicker()] | COMMENT |
| LOW | examples/core/raygui.h | 1121 | COMMENT | |
| LOW | examples/core/raygui.h | 1141 | //---------------------------------------------------------------------------------- | COMMENT |
| LOW | examples/core/raygui.h | 1421 | // if changed, previous saved styles could become incompatible | COMMENT |
| LOW | examples/core/raygui.h | 1461 | // but default gui style could always be recovered with GuiLoadStyleDefault() | COMMENT |
| LOW | examples/core/raygui.h | 4621 | // Get full icons data pointer | COMMENT |
| LOW | examples/core/raygui.h | 4641 | // Icons name id (32 bytes per name id) | COMMENT |
| LOW | examples/core/core_input_gamepad.c | 21 | COMMENT | |
| LOW | examples/others/rlgl_standalone.c | 61 | //#define RL_MAX_SHADER_LOCATIONS 32 // Maximum number of shader locations supported | COMMENT |
| LOW | examples/others/raylib_opengl_interop.c | 21 | * rlgl batched draw operations internally so we have to flush the current batch before | COMMENT |
| LOW | examples/others/raylib_opengl_interop.c | 41 | #include <OpenGL/gl3.h> // OpenGL 3 library for OSX | COMMENT |
| LOW | examples/others/resources/audio_data.h | 1 | COMMENT | |
| LOW | examples/others/external/include/glad.h | 21 | #define __glad_h_ | COMMENT |
| LOW | examples/others/external/include/glad.h | 61 | # define GLAPI __declspec(dllexport) extern | COMMENT |
| LOW | examples/others/external/include/glad.h | 81 | GLAPI int gladLoadGLLoader(GLADloadproc); | COMMENT |
| LOW | examples/others/external/include/glad.h | 101 | #endif /* __arch64__ */ | COMMENT |
| LOW | examples/others/external/include/glad.h | 161 | typedef void (APIENTRY *GLDEBUGPROCARB)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar | COMMENT |
| LOW | examples/others/external/include/glad.h | 181 | #define GL_LEQUAL 0x0203 | COMMENT |
| LOW | examples/others/external/include/glad.h | 201 | #define GL_BACK_RIGHT 0x0403 | COMMENT |
| LOW | examples/others/external/include/glad.h | 221 | #define GL_POLYGON_MODE 0x0B40 | COMMENT |
| LOW | examples/others/external/include/glad.h | 241 | #define GL_DITHER 0x0BD0 | COMMENT |
| LOW | examples/others/external/include/glad.h | 261 | #define GL_UNPACK_SKIP_PIXELS 0x0CF4 | COMMENT |
| LOW | examples/others/external/include/glad.h | 281 | #define GL_TEXTURE_WIDTH 0x1000 | COMMENT |
| LOW | examples/others/external/include/glad.h | 301 | #define GL_AND 0x1501 | COMMENT |
| LOW | examples/others/external/include/glad.h | 321 | #define GL_DEPTH_COMPONENT 0x1902 | COMMENT |
| LOW | examples/others/external/include/glad.h | 341 | #define GL_NEAREST_MIPMAP_NEAREST 0x2700 | COMMENT |
| LOW | examples/others/external/include/glad.h | 361 | #define GL_RGB5_A1 0x8057 | COMMENT |
| LOW | examples/others/external/include/glad.h | 381 | #define GL_UNSIGNED_BYTE_2_3_3_REV 0x8362 | COMMENT |
| LOW | examples/others/external/include/glad.h | 401 | #define GL_ALIASED_LINE_WIDTH_RANGE 0x846E | COMMENT |
| LOW | examples/others/external/include/glad.h | 421 | #define GL_TEXTURE19 0x84D3 | COMMENT |
| LOW | examples/others/external/include/glad.h | 441 | #define GL_SAMPLE_COVERAGE_VALUE 0x80AA | COMMENT |
| 1398 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | examples/core/raygui.h | 5866 | // NOTE: This function is only used by GuiColorPicker() | COMMENT |
| LOW | examples/core/raygui.h | 5921 | // NOTE: This function replaces atoi() [stdlib.h] | COMMENT |
| LOW | examples/core/raygui.h | 5939 | // NOTE: This function replaces atof() [stdlib.h] | COMMENT |
| LOW | examples/shapes/raygui.h | 5868 | // NOTE: This function is only used by GuiColorPicker() | COMMENT |
| LOW | examples/shapes/raygui.h | 5923 | // NOTE: This function replaces atoi() [stdlib.h] | COMMENT |
| LOW | examples/shapes/raygui.h | 5941 | // NOTE: This function replaces atof() [stdlib.h] | COMMENT |
| LOW | examples/models/models_waving_cubes.c | 94 | // NOTE: This function is quite costly to be done per cube and frame, | COMMENT |
| LOW | examples/models/raygui.h | 5868 | // NOTE: This function is only used by GuiColorPicker() | COMMENT |
| LOW | examples/models/raygui.h | 5923 | // NOTE: This function replaces atoi() [stdlib.h] | COMMENT |
| LOW | examples/models/raygui.h | 5941 | // NOTE: This function replaces atof() [stdlib.h] | COMMENT |
| LOW | examples/audio/raygui.h | 5866 | // NOTE: This function is only used by GuiColorPicker() | COMMENT |
| LOW | examples/audio/raygui.h | 5921 | // NOTE: This function replaces atoi() [stdlib.h] | COMMENT |
| LOW | examples/audio/raygui.h | 5939 | // NOTE: This function replaces atof() [stdlib.h] | COMMENT |
| LOW | examples/shaders/raygui.h | 5866 | // NOTE: This function is only used by GuiColorPicker() | COMMENT |
| LOW | examples/shaders/raygui.h | 5921 | // NOTE: This function replaces atoi() [stdlib.h] | COMMENT |
| LOW | examples/shaders/raygui.h | 5939 | // NOTE: This function replaces atof() [stdlib.h] | COMMENT |
| LOW | src/rmodels.c | 1204 | // NOTE: This function takes care of all model elements, for a detailed control | COMMENT |
| LOW | src/rlgl.h | 637 | // NOTE: This functions are used to completely abstract raylib code from OpenGL layer, | COMMENT |
| LOW | src/rtext.c | 1606 | // NOTE: This function replaces atoi() [stdlib.h] | COMMENT |
| LOW | src/rtext.c | 1627 | // NOTE: This function replaces atof() [stdlib.h] | COMMENT |
| LOW | src/rcore.c | 1835 | // NOTE: This function is expected to be called before window creation, | COMMENT |
| LOW | src/platforms/rcore_web.c | 993 | // NOTE: This function is only safe to use if the provided URL is safe | COMMENT |
| LOW | src/platforms/rcore_memory.c | 384 | // NOTE: This function is only safe to use if you control the URL given. | COMMENT |
| LOW | src/platforms/rcore_drm.c | 1535 | // NOTE: This function use and modify global module variables: | COMMENT |
| LOW | src/platforms/rcore_drm.c | 1567 | // NOTE: This function use and modify global module variables: | COMMENT |
| LOW | src/platforms/rcore_android.c | 1002 | // NOTE: This function use and modify global module variables: | COMMENT |
| LOW | src/external/rlsw.h | 5659 | // NOTE: This function should only render affine axis-aligned quads | COMMENT |
| LOW | src/external/glfw/src/init.c | 179 | // NOTE: This function destroys the provided string | COMMENT |
| LOW | src/external/glfw/src/glx_context.c | 433 | // NOTE: This function must not call any X11 functions, as it is called | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | src/external/glfw/CMakeLists.txt | 62 | #-------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/external/glfw/CMakeLists.txt | 64 | #-------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/external/glfw/CMakeLists.txt | 78 | #-------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/external/glfw/CMakeLists.txt | 81 | #-------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/external/glfw/CMakeLists.txt | 103 | #-------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/external/glfw/CMakeLists.txt | 105 | #-------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/external/glfw/CMakeLists.txt | 119 | #-------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/external/glfw/CMakeLists.txt | 121 | #-------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/external/glfw/CMakeLists.txt | 136 | #-------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/external/glfw/CMakeLists.txt | 139 | #-------------------------------------------------------------------- | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | examples/core/resources/text_file.txt | 1 | Starting of the Lorem ipsum dolor sit amet file | CODE |
| LOW⚡ | examples/core/resources/text_file.txt | 1 | Starting of the Lorem ipsum dolor sit amet file | CODE |
| LOW⚡ | examples/core/resources/text_file.txt | 2 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque at interdum ex, et iaculis quam. Mauris consectetu | CODE |
| LOW⚡ | examples/core/resources/text_file.txt | 2 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque at interdum ex, et iaculis quam. Mauris consectetu | CODE |
| LOW⚡ | examples/core/resources/text_file.txt | 7 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque at interdum ex, et iaculis quam. Mauris consectetu | CODE |
| LOW⚡ | examples/core/resources/text_file.txt | 7 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque at interdum ex, et iaculis quam. Mauris consectetu | CODE |
| LOW⚡ | examples/core/resources/text_file.txt | 13 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque at interdum ex, et iaculis quam. Mauris consectetu | CODE |
| LOW⚡ | examples/core/resources/text_file.txt | 13 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque at interdum ex, et iaculis quam. Mauris consectetu | CODE |
| LOW⚡ | examples/core/resources/text_file.txt | 18 | Ending of the Lorem ipsum dolor sit amet file | CODE |
| LOW⚡ | examples/core/resources/text_file.txt | 18 | Ending of the Lorem ipsum dolor sit amet file | CODE |
| LOW | examples/text/text_rectangle_bounds.c | 41 | a long text for testing.\n\nLorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod \ | CODE |
| LOW | examples/text/text_rectangle_bounds.c | 41 | a long text for testing.\n\nLorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod \ | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | examples/core/core_custom_frame_control.c | 82 | #ifdef PLATFORM_WEB // NOTE: On web platform for some reason the PollInputEvents only works after th | COMMENT |
| MEDIUM | src/shell.html | 252 | // To make your application robust, you may want to override this behavior before shipping! | COMMENT |
| MEDIUM | src/rlgl.h | 2340 | // Init state: Cubemap seamless | COMMENT |
| MEDIUM | src/external/stb_vorbis.c | 51 | // 1.10 - 2017-03-03 - more robust seeking; fix negative ilog(); clear error in open_memory | COMMENT |
| MEDIUM | src/external/rlsw.h | 3422 | // This test is robust for points with w > 0 or w < 0, correctly | COMMENT |
| MEDIUM | src/external/rlsw.h | 3534 | // This test is robust for points with w > 0 or w < 0 within the triangle, | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | src/external/rlsw.h | 1491 | // TODO: WARNING: Sample code generated by AI, needs testing and review | COMMENT |
| HIGH | src/external/rlsw.h | 1537 | // TODO: WARNING: Sample code generated by AI, needs testing and review | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | projects/scripts/build-osx.sh | 108 | # Create the raylib cache directory | COMMENT |
| MEDIUM | projects/scripts/build-rpi.sh | 108 | # Create the raylib cache directory | COMMENT |
| MEDIUM | projects/scripts/build-linux.sh | 108 | # Create the raylib cache directory | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/external/sdefl.h | 17 | ## Usage: | COMMENT |
| LOW | src/external/sinfl.h | 18 | ## Usage: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/external/dr_flac.h | 5956 | /* We found a FLAC frame. We need to check if it contains the sample we're looking for. */ | COMMENT |