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 74,606 GitHub stars. SynthScan v2.0 examined 120,110 lines of code across 150 source files, recording 575 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 575 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.92.9 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 void OpenPopupOnItemClick(const char* str_id = NULL, ImGuiPopupFlags popup_flags = 0); // helpe | COMMENT |
| LOW | imgui.h | 881 | IMGUI_API bool IsPopupOpen(const char* str_id, ImGuiPopupFlags flags = 0); // retur | COMMENT |
| LOW | imgui.h | 901 | // - TableNextColumn() -> Text("Hello 0") -> TableNextColumn() -> Text("Hello 1") | COMMENT |
| LOW | imgui.h | 1061 | // - the ImGuiKey enum contains all possible keyboard, mouse and gamepad inputs (e.g. ImGuiKey_A, ImGuiKey_MouseLeft | COMMENT |
| LOW | imgui.h | 1081 | // Child1 -> call Shortcut(Ctrl+S) // When Child1 is focused, Child1 gets the shortcut (Child1 overrides P | COMMENT |
| LOW | imgui.h | 1201 | COMMENT | |
| LOW | imgui.h | 1661 | // but may be accessed via standard key API such as IsKeyPressed(), IsKeyReleased(), querying duration etc. | COMMENT |
| LOW | imgui.h | 2021 | // - Default to ImGuiTableFlags_SizingStretchSame if ScrollX is off. | COMMENT |
| LOW | imgui.h | 2181 | // Debug Logging into ShowDebugLogWindow(), tty and more. | COMMENT |
| LOW | imgui.h | 2201 | #define IM_PLACEMENT_NEW(_PTR) new(ImNewWrapper(), _PTR) | COMMENT |
| LOW | imgui.h | 2381 | IMGUI_API void ScaleAllSizes(float scale_factor); // Scale all spacing/padding/thickness values. Do not scale font | COMMENT |
| LOW | imgui.h | 2481 | // You not are not supposed to rely on it in the course of a normal application run. | COMMENT |
| LOW | imgui.h | 2501 | // Tools to detect code submitting items with conflicting/duplicate IDs | COMMENT |
| LOW | imgui.h | 2621 | // This is still temporarily supported as a legacy feature. However the new preferred scheme is for backend to call | COMMENT |
| LOW | imgui.h | 2641 | COMMENT | |
| LOW | imgui.h | 2721 | bool IsPreview() const { return Preview; } | COMMENT |
| LOW | imgui.h | 2801 | ImGuiStoragePair(ImGuiID _key, void* _val) { key = _key; val_p = _val; } | COMMENT |
| LOW | imgui.h | 2861 | // fetching/submitting your own data incurs additional cost. Coarse clipping using ImGuiListClipper allows you to easil | COMMENT |
| LOW | imgui.h | 2901 | COMMENT | |
| LOW | imgui.h | 2961 | // - User can declare their own format by #defining the 5 _SHIFT/_MASK macros in their imconfig file. | COMMENT |
| LOW | imgui.h | 3001 | static ImColor HSV(float h, float s, float v, float a = 1.0f) { float r, g, b; ImGui::ColorConvertHSVtoRGB(h, s, v | COMMENT |
| LOW | imgui.h | 3021 | // Usage: | COMMENT |
| LOW | imgui.h | 3101 | struct ImGuiSelectionRequest | COMMENT |
| LOW | imgui.h | 3161 | //----------------------------------------------------------------------------- | COMMENT |
| LOW | imgui.h | 3181 | // A) Change your GPU render state, | COMMENT |
| LOW | imgui.h | 3401 | IMGUI_API void PathRect(const ImVec2& rect_min, const ImVec2& rect_max, float rounding = 0.0f, ImDrawFlags flags = | COMMENT |
| LOW | imgui.h | 3681 | ImFontAtlasFlags_NoPowerOfTwoHeight = 1 << 0, // Don't round the height to next power of two | COMMENT |
| LOW | imgui.h | 3721 | // Clearing the atlas/fonts has little use nowadays, unless you want to batch remove all fonts. | COMMENT |
| LOW | imgui.h | 3761 | IMGUI_API const ImWchar* GetGlyphRangesChineseFull(); // Default + Half-Width + Japanese Hiragana/Kata | COMMENT |
| LOW | imgui.h | 3781 | // - Read docs/FONTS.md for more details about using colorful icons. | COMMENT |
| LOW | imgui.h | 4061 | // Written by some backends during ImGui_ImplXXXX_RenderDrawData() call to point backend_specific ImGui_ImplXXXX_Ren | COMMENT |
| LOW | imgui.h | 4121 | IMGUI_API ImVec2 GetWindowContentRegionMin(); // Content boundaries min for the window | COMMENT |
| LOW | imgui.h | 4141 | //static inline void CaptureKeyboardFromApp(bool want_capture_keyboard = true) { SetNextFrameWant | COMMENT |
| LOW | imgui.h | 4161 | //static inline bool DragFloat(const char* label, float* v, float v_speed, float v_min, float v_max, const char* fo | COMMENT |
| LOW | imgui.h | 4181 | //static inline bool IsRootWindowFocused() { return IsWindowFocused(ImGuiFocusedFlags_RootWindow); | COMMENT |
| LOW | imgui.h | 4221 | //-- OBSOLETED in 1.82 (from Mars 2021): flags for AddRect(), AddRectFilled(), AddImageRounded(), PathRect() | COMMENT |
| LOW | imgui.h | 4241 | //typedef ImGuiKeyChord ImGuiKeyModFlags; // == int | COMMENT |
| LOW | imgui.h | 4261 | #endif | 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 |
| LOW | imstb_textedit.h | 101 | // moderate sizes. The undo system does no memory allocations, so | COMMENT |
| 493 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | imgui_demo.cpp | 7670 | ImGui::TextWrapped("Lorem ipsum dolor sit amet"); | CODE |
| LOW⚡ | imgui_demo.cpp | 7670 | ImGui::TextWrapped("Lorem ipsum dolor sit amet"); | CODE |
| LOW⚡ | imgui_demo.cpp | 7672 | ImGui::Text("Lorem ipsum dolor sit amet"); | CODE |
| LOW⚡ | imgui_demo.cpp | 7672 | ImGui::Text("Lorem ipsum dolor sit amet"); | CODE |
| LOW | imgui_demo.cpp | 9572 | ImGui::TextWrapped("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor i | CODE |
| LOW | imgui_demo.cpp | 9572 | ImGui::TextWrapped("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor i | CODE |
| LOW | imgui_demo.cpp | 10533 | ImGui::TextWrapped("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut | CODE |
| LOW | imgui_demo.cpp | 10533 | 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 | 6779 | // FIXME: Essentially we want to restrict manual resizing to WindowMinSize+Decoration, and allow api resizing to be | COMMENT |
| MEDIUM | imgui.cpp | 9156 | // FIXME-NEWATLAS-V2: perhaps we can now leverage ImFontAtlasUpdateDrawListsTextures() ? | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | imgui.cpp | 3424 | // 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 | 3441 | // Step 1: Let the clipper infer height from first range | COMMENT |
| LOW | .github/workflows/build.yml | 703 | # WARNING: This will need updating if toolset/sdk change in project files! | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | imgui_widgets.cpp | 7349 | // 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 | 1025 | - 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 | 3424 | // 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 | 3441 | // 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 | 6824 | - 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 |