Dear ImGui: Bloat-free Graphical User interface for C++ with minimal dependencies
This report presents the forensic synthetic code analysis of ocornut/imgui, a C++ project with 75,909 GitHub stars. SynthScan v2.0 examined 122,627 lines of code across 157 source files, recording 589 pattern matches distributed across 10 syntactic categories. The overall adjusted score of 4.5 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 589 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | imgui.h | 1 | // dear imgui, v1.93.0 WIP | COMMENT |
| LOW | imgui.h | 21 | // - Issues & support ........... https://github.com/ocornut/imgui/issues | COMMENT |
| LOW | imgui.h | 41 | // [SECTION] Forward declarations and basic types | COMMENT |
| LOW | imgui.h | 61 | #pragma once | COMMENT |
| LOW | imgui.h | 81 | COMMENT | |
| LOW | imgui.h | 101 | #define IM_STRINGIFY(_EXPR) IM_STRINGIFY_HELPER(_EXPR) // Preprocessor idiom to stringify e.g. | COMMENT |
| LOW | imgui.h | 121 | COMMENT | |
| LOW | imgui.h | 141 | #pragma clang diagnostic ignored "-Wunknown-pragmas" // warning: unknown warning group 'xxx' | COMMENT |
| LOW | imgui.h | 321 | //----------------------------------------------------------------------------- | COMMENT |
| LOW | imgui.h | 341 | #endif | COMMENT |
| LOW | imgui.h | 421 | IMGUI_API void StyleColorsDark(ImGuiStyle* dst = NULL); // new, recommended style (default) | COMMENT |
| LOW | imgui.h | 441 | // - Use child windows to begin into a self-contained independent scrolling/clipping regions within a host window. C | COMMENT |
| LOW | imgui.h | 501 | IMGUI_API float GetScrollMaxY(); // get maximum scrolling amo | COMMENT |
| LOW | imgui.h | 661 | // - The old Combo() api are helpers over BeginCombo()/EndCombo() which are kept available for convenience purpose. | COMMENT |
| LOW | imgui.h | 821 | // Tooltips | COMMENT |
| LOW | imgui.h | 841 | // - Their visibility state (~bool) is held internally instead of being held by the programmer as we are used to wi | COMMENT |
| LOW | imgui.h | 861 | IMGUI_API bool OpenPopup(const char* str_id, ImGuiPopupFlags popup_flags = 0); // call | COMMENT |
| LOW | imgui.h | 881 | // - IsPopupOpen() with ImGuiPopupFlags_AnyPopupId: return true if any popup is open at the current BeginPopup() le | COMMENT |
| LOW | imgui.h | 901 | // - TableNextRow() -> TableSetColumnIndex(0) -> Text("Hello 0") -> TableSetColumnIndex(1) -> Text("Hello 1") | COMMENT |
| LOW | imgui.h | 1061 | // Inputs Utilities: Raw Keyboard/Mouse/Gamepad Access | COMMENT |
| LOW | imgui.h | 1081 | // - The general idea is that several callers may register interest in a shortcut, and only one owner gets it. | COMMENT |
| LOW | imgui.h | 1201 | ImGuiWindowFlags_Modal = 1 << 27, // Don't use! For internal use by BeginPopupModal() | COMMENT |
| LOW | imgui.h | 1661 | ImGuiKey_GamepadRStickDown, // | | | [Analog] | COMMENT |
| LOW | imgui.h | 1821 | #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS | COMMENT |
| LOW | imgui.h | 2041 | // - Table defaults to ImGuiTableFlags_SizingStretchSame -> all Columns defaults to ImGuiTableColumnFlags_WidthStretc | COMMENT |
| LOW | imgui.h | 2201 | COMMENT | |
| LOW | imgui.h | 2401 | IMGUI_API void ScaleAllSizes(float scale_factor); // Scale all spacing/padding/thickness values. Do not scale font | COMMENT |
| LOW | imgui.h | 2501 | // - Error recovery is not perfect nor guaranteed! It is a feature to ease development. | COMMENT |
| LOW | imgui.h | 2521 | COMMENT | |
| LOW | imgui.h | 2641 | // Legacy: before 1.87, we required backend to fill io.KeyMap[] (imgui->native map) during initialization and io.Key | COMMENT |
| LOW | imgui.h | 2661 | #endif | COMMENT |
| LOW | imgui.h | 2741 | bool IsDataType(const char* type) const { return DataFrameCount != -1 && strcmp(type, DataType) == 0; } | COMMENT |
| LOW | imgui.h | 2821 | ImGuiStoragePair(ImGuiID _key, float _val) { key = _key; val_f = _val; } | COMMENT |
| LOW | imgui.h | 2881 | // (Dear ImGui already clip items based on their bounds but: it needs to first layout the item to do so, and generally | COMMENT |
| LOW | imgui.h | 2921 | IMGUI_API void IncludeItemsByIndex(int item_begin, int item_end); // item_end is exclusive e.g. use (42, 42+1) to | COMMENT |
| LOW | imgui.h | 2981 | // Helpers macros to generate 32-bit encoded colors | COMMENT |
| LOW | imgui.h | 3021 | inline void SetHSV(float h, float s, float v, float a = 1.0f){ ImGui::ColorConvertHSVtoRGB(h, s, v, Value.x, Valu | COMMENT |
| LOW | imgui.h | 3041 | // - It is used by our demos and provided as a convenience to quickly implement multi-selection. | COMMENT |
| LOW | imgui.h | 3121 | // Selection request item | COMMENT |
| LOW | imgui.h | 3181 | COMMENT | |
| LOW | imgui.h | 3201 | // you can poke into the draw list for that! Draw callback may be useful for example to: | COMMENT |
| LOW | imgui.h | 3321 | // Draw command list | COMMENT |
| LOW | imgui.h | 3421 | IMGUI_API void PathBezierCubicCurveTo(const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, int num_segments = 0); | COMMENT |
| LOW | imgui.h | 3721 | // - Backend then set ImTextureData's TexID and BackendUserData. | COMMENT |
| LOW | imgui.h | 3761 | // - The pitch is always = Width * BytesPerPixels (1 or 4) | COMMENT |
| LOW | imgui.h | 3801 | // - You can request arbitrary rectangles to be packed into the atlas, for your own purpose. | COMMENT |
| LOW | imgui.h | 4141 | IMGUI_API void Image(ImTextureRef tex_ref, const ImVec2& image_size, const ImVec2& uv0, const ImVec2& uv1, cons | COMMENT |
| LOW | imgui.h | 4161 | // OBSOLETED in 1.89.7 (from June 2023) | COMMENT |
| LOW | imgui.h | 4181 | //static inline void ListBoxFooter() { EndListBox(); } | COMMENT |
| LOW | imgui.h | 4201 | //static inline float GetContentRegionAvailWidth() { return GetContentRegionAvail().x; } | COMMENT |
| LOW | imgui.h | 4221 | //-- OBSOLETED in 1.50 and before | COMMENT |
| LOW | imgui.h | 4241 | unsigned int GlyphColored:1; // Input // [Internal] For custom font glyphs only: glyph is colored, removed tin | COMMENT |
| LOW | imgui.h | 4261 | // ImDrawCornerFlags_Left = ImDrawCornerFlags_TopLeft | ImDrawCornerFlags_BotLeft, | COMMENT |
| LOW | imgui.h | 4281 | #endif | COMMENT |
| LOW | imgui.h | 4301 | #include "imgui_user.h" | COMMENT |
| LOW | imstb_textedit.h | 1 | // [DEAR IMGUI] | COMMENT |
| LOW | imstb_textedit.h | 21 | // It is intended for use in games and other systems that need to build | COMMENT |
| LOW | imstb_textedit.h | 41 | // VERSION HISTORY | COMMENT |
| LOW | imstb_textedit.h | 61 | // 0.1 (2010-07-08) initial version | COMMENT |
| LOW | imstb_textedit.h | 81 | // | COMMENT |
| 507 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | imgui_demo.cpp | 7746 | ImGui::TextWrapped("Lorem ipsum dolor sit amet"); | CODE |
| LOW⚡ | imgui_demo.cpp | 7746 | ImGui::TextWrapped("Lorem ipsum dolor sit amet"); | CODE |
| LOW⚡ | imgui_demo.cpp | 7748 | ImGui::Text("Lorem ipsum dolor sit amet"); | CODE |
| LOW⚡ | imgui_demo.cpp | 7748 | ImGui::Text("Lorem ipsum dolor sit amet"); | CODE |
| LOW | imgui_demo.cpp | 9649 | ImGui::TextWrapped("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor i | CODE |
| LOW | imgui_demo.cpp | 9649 | ImGui::TextWrapped("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor i | CODE |
| LOW | imgui_demo.cpp | 10612 | ImGui::TextWrapped("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut | CODE |
| LOW | imgui_demo.cpp | 10612 | ImGui::TextWrapped("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | examples/example_glfw_wgpu/CMakeLists.txt | 190 | # In this example IMGUI_IMPL_WEBGPU_BACKEND_DAWN / IMGUI_IMPL_WEBGPU_BACKEND_WGPU internal define is set according to: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | imgui.cpp | 6808 | // FIXME: Essentially we want to restrict manual resizing to WindowMinSize+Decoration, and allow api resizing to be | COMMENT |
| MEDIUM | imgui.cpp | 9209 | // FIXME-NEWATLAS-V2: perhaps we can now leverage ImFontAtlasUpdateDrawListsTextures() ? | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | imgui.cpp | 3443 | // Step 0: Let you process the first element (regardless of it being visible or not, so we can measure the element h | COMMENT |
| LOW | imgui.cpp | 3460 | // Step 1: Let the clipper infer height from first range | COMMENT |
| LOW | .github/workflows/build.yml | 707 | # WARNING: This will need updating if toolset/sdk change in project files! | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | imgui_widgets.cpp | 7395 | // Tip: pass a non-visible label (e.g. "##hello") then you can use the space to draw other text or image. | COMMENT |
| LOW | imgui.cpp | 1037 | - 2017/08/25 (1.52) - io.MousePos needs to be set to ImVec2(-FLT_MAX,-FLT_MAX) when mouse is unavailable/missing. Previ | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | imgui.cpp | 3443 | // Step 0: Let you process the first element (regardless of it being visible or not, so we can measure the element h | COMMENT |
| LOW | imgui.cpp | 3460 | // Step 1: Let the clipper infer height from first range | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | misc/debuggers/imgui_lldb.py | 1 | # This file implements synthetic children providers and summaries for various Dear ImGui types for LLDB. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | backends/imgui_impl_win32.cpp | 968 | // Borrowed from GLFW's function updateFramebufferTransparency() in src/win32_window.c | COMMENT |
| LOW | docs/CHANGELOG.txt | 6951 | - Misc: Added obsolete redirection function GetItemsLineHeightWithSpacing() (which redirects to GetFrameHeightWithSpacin | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | misc/fonts/binary_to_compressed_c.cpp | 20 | // Usage example: | COMMENT |