AI Slop Code RIsk Monitor

ocornut/imgui

Dear ImGui: Bloat-free Graphical User interface for C++ with minimal dependencies

4.4 Low pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for ocornut/imgui, a C++ project with 76,574 GitHub stars. SynthScan examined 125,410 lines of code across 157 source files, recording 585 pattern matches distributed across 10 syntactic categories. The legacy adjusted pattern signal is 4.4 (Low pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

4.4
Adjusted Signal
4.4
Raw Pattern Score
100%
Time Factor
2026-10-07
Last Push
76.6K
Stars
C++
Language
125.4K
Lines of Code
157
Files
585
Pattern Hits
2026-10-12
Scan Date
0.01
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 19.6/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 577 finding(s).

Hallucinated Dependency & Supply Chain Risk 0.4/100 · LOW

Are imports declared and package/API names verified? 8 finding(s).

Agent Over-Engineering Ratio 0.1/100 · LOW

Are wrappers, guards, and repeated structures necessary? 2 finding(s).

PR Review Velocity Impact 21.2/100 · LOW

Which changes need focused human review? 585 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 0HIGH 1MEDIUM 4LOW 580

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 585 distinct pattern matches across 10 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. 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 configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Over-Commented Block563 hits · 514 pts
SeverityFileLineSnippetContext
LOWimgui.h1// dear imgui, v1.93.0 WIPCOMMENT
LOWimgui.h21// - Issues & support ........... https://github.com/ocornut/imgui/issuesCOMMENT
LOWimgui.h41// [SECTION] Forward declarations and basic typesCOMMENT
LOWimgui.h61#pragma onceCOMMENT
LOWimgui.h81COMMENT
LOWimgui.h101#define IM_STRINGIFY(_EXPR) IM_STRINGIFY_HELPER(_EXPR) // Preprocessor idiom to stringify e.g. COMMENT
LOWimgui.h121COMMENT
LOWimgui.h141// WarningsCOMMENT
LOWimgui.h321 IM_NODEBUGSTEP constexpr inline ImVec4(float _x, float _y, float _z, float _w) : x(_x), y(_y), z(_z), w(_w) { }COMMENT
LOWimgui.h341// - To use something other than a 64-bit value: add '#define ImTextureID MyTextureType*' in your imconfig.h file.COMMENT
LOWimgui.h361// This is what gets passed to functions such as `ImGui::Image()`, `ImDrawList::AddImage()`.COMMENT
LOWimgui.h441 // anything to the window. Always call a matching End() for each Begin() call, regardless of its return value!COMMENT
LOWimgui.h521 // - PushFont(font, font->LegacySize) // Change font and set size to size passed to AddFontXXX() functionCOMMENT
LOWimgui.h601 IMGUI_API float GetFrameHeightWithSpacing(); // ~ FontSize + style.FramePCOMMENT
LOWimgui.h781 // - Read comments near ImGuiMultiSelectIO for instructions/details and see 'Demo->Widgets->Selection State & Multi-COMMENT
LOWimgui.h841 // - SetItemTooltip() is a shortcut for the 'if (IsItemHovered(ImGuiHoveredFlags_ForTooltip)) { SetTooltip(...); }' COMMENT
LOWimgui.h861 // Popups: open/close functionsCOMMENT
LOWimgui.h881 // - After: The default = 0 means ImGuiPopupFlags_MouseButtonRight. Explicitly passing a literal 1 also means ImGCOMMENT
LOWimgui.h901 // - 3. Optionally call TableSetupScrollFreeze() to request scroll freezing of columns/rows.COMMENT
LOWimgui.h921 // Tables: Headers & Columns declarationCOMMENT
LOWimgui.h1081COMMENT
LOWimgui.h1101 // - Visualize registered routes in 'Metrics/Debugger->Inputs'.COMMENT
LOWimgui.h1261 //---------------------------------------------------------------------------------COMMENT
LOWimgui.h1681 ImGuiKey_GamepadRStickDown, // | | | [Analog]COMMENT
LOWimgui.h1841#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONSCOMMENT
LOWimgui.h2061// - Table defaults to ImGuiTableFlags_SizingStretchSame -> all Columns defaults to ImGuiTableColumnFlags_WidthStretcCOMMENT
LOWimgui.h2221COMMENT
LOWimgui.h2421 IMGUI_API void ScaleAllSizes(float scale_factor); // Scale all spacing/padding/thickness values. Do not scale fontCOMMENT
LOWimgui.h2521 // - Recovery after running an exception handler or any error processing which may skip code after an error has bCOMMENT
LOWimgui.h2541 bool ConfigDebugIsDebuggerPresent; // = false // Enable various tools calling IM_DEBUG_BREAK().COMMENT
LOWimgui.h2681 // Legacy: before 1.91.1, clipboard functions were stored in ImGuiIO instead of ImGuiPlatformIO.COMMENT
LOWimgui.h2921// scale using lists with tens of thousands of items without a problem)COMMENT
LOWimgui.h2961 // Seek cursor toward given item. This is automatically called while stepping.COMMENT
LOWimgui.h3021// - Any setting other than the default will need custom backend support. The only standard backend that supports anythiCOMMENT
LOWimgui.h3061};COMMENT
LOWimgui.h3081// - Identify submitted items with SetNextItemSelectionUserData(), most likely using an index into your current data-setCOMMENT
LOWimgui.h3161{COMMENT
LOWimgui.h3221// [SECTION] Drawing API (ImDrawCmd, ImDrawIdx, ImDrawVert, ImDrawChannel, ImDrawListSplitter, ImDrawFlags, ImDrawList, COMMENT
LOWimgui.h3341 ImDrawFlags_Closed = 1 << 9, // OK -- // PathStroke(), AddPolyline(): specify that shape shCOMMENT
LOWimgui.h3501 IMGUI_API void PathBezierQuadraticCurveTo(const ImVec2& p2, const ImVec2& p3, int num_segments = 0); COMMENT
LOWimgui.h3801// Load and rasterize multiple TTF/OTF fonts into a same texture. The font atlas will build a single texture holding:COMMENT
LOWimgui.h3881#endifCOMMENT
LOWimgui.h4241 // Some of the older obsolete names along with their replacement (commented out so they are not reported in IDE)COMMENT
LOWimgui.h4261 //IMGUI_API ImGuiKey GetKeyIndex(ImGuiKey key); { IM_ASSERT(key >=COMMENT
LOWimgui.h4281 //static inline bool DragFloat4(const char* label, float v[4], float v_speed, float v_min, float v_max, const char*COMMENT
LOWimgui.h4301 //static inline float GetItemsLineHeightWithSpacing() { return GetFrameHeightWithSpacing(); } COMMENT
LOWimgui.h4341 unsigned int GlyphID:31; // Input // [Internal] For custom font glyphs only (ID < 0x110000)COMMENT
LOWimgui.h4361// ImDrawCornerFlags_Bot = ImDrawFlags_RoundBottomLeft | ImDrawFlags_RoundBottomRight,COMMENT
LOWimgui.h4381#error IMGUI_DISABLE_METRICS_WINDOW was renamed to IMGUI_DISABLE_DEBUG_TOOLS, please use new name.COMMENT
LOWimgui.h4401#elseCOMMENT
LOWimstb_textedit.h1// [DEAR IMGUI]COMMENT
LOWimstb_textedit.h21// It is intended for use in games and other systems that need to buildCOMMENT
LOWimstb_textedit.h41// VERSION HISTORYCOMMENT
LOWimstb_textedit.h61// 0.1 (2010-07-08) initial versionCOMMENT
LOWimstb_textedit.h81//COMMENT
LOWimstb_textedit.h101// moderate sizes. The undo system does no memory allocations, soCOMMENT
LOWimstb_textedit.h121// in the displayed textedit. This is true for both plain text andCOMMENT
LOWimstb_textedit.h141// to the xpos of the i+1'th char for a line of charactersCOMMENT
LOWimstb_textedit.h161// STB_TEXTEDIT_K_PGUP keyboard input to move cursor up a pageCOMMENT
LOWimstb_textedit.h181// STB_TEXTEDIT_K_LINEEND2 secondary keyboard input to move cursor to end of lineCOMMENT
503 more matches not shown…
Fake / Example Data8 hits · 10 pts
SeverityFileLineSnippetContext
LOW⚡imgui_demo.cpp7837 ImGui::TextWrapped("Lorem ipsum dolor sit amet");CODE
LOW⚡imgui_demo.cpp7837 ImGui::TextWrapped("Lorem ipsum dolor sit amet");CODE
LOW⚡imgui_demo.cpp7839 ImGui::Text("Lorem ipsum dolor sit amet");CODE
LOW⚡imgui_demo.cpp7839 ImGui::Text("Lorem ipsum dolor sit amet");CODE
LOWimgui_demo.cpp9754 ImGui::TextWrapped("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor iCODE
LOWimgui_demo.cpp9754 ImGui::TextWrapped("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor iCODE
LOWimgui_demo.cpp10846 ImGui::TextWrapped("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt utCODE
LOWimgui_demo.cpp10846 ImGui::TextWrapped("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt utCODE
AI Response Leakage1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHexamples/example_glfw_wgpu/CMakeLists.txt190# In this example IMGUI_IMPL_WEBGPU_BACKEND_DAWN / IMGUI_IMPL_WEBGPU_BACKEND_WGPU internal define is set according to:COMMENT
AI Slop Vocabulary2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMimgui.cpp6888 // FIXME: Essentially we want to restrict manual resizing to WindowMinSize+Decoration, and allow api resizing to be COMMENT
MEDIUMimgui.cpp9290// FIXME-NEWATLAS-V2: perhaps we can now leverage ImFontAtlasUpdateDrawListsTextures() ?COMMENT
Structural Annotation Overuse3 hits · 4 pts
SeverityFileLineSnippetContext
LOWimgui.cpp3518 // Step 0: Let you process the first element (regardless of it being visible or not, so we can measure the element hCOMMENT
LOWimgui.cpp3535 // Step 1: Let the clipper infer height from first rangeCOMMENT
LOW.github/workflows/build.yml707 # WARNING: This will need updating if toolset/sdk change in project files!COMMENT
Slop Phrases2 hits · 4 pts
SeverityFileLineSnippetContext
MEDIUMimgui_widgets.cpp7505// Tip: pass a non-visible label (e.g. "##hello") then you can use the space to draw other text or image.COMMENT
LOWimgui.cpp1080 - 2017/08/25 (1.52) - io.MousePos needs to be set to ImVec2(-FLT_MAX,-FLT_MAX) when mouse is unavailable/missing. PreviCODE
Verbosity Indicators2 hits · 3 pts
SeverityFileLineSnippetContext
LOWimgui.cpp3518 // Step 0: Let you process the first element (regardless of it being visible or not, so we can measure the element hCOMMENT
LOWimgui.cpp3535 // Step 1: Let the clipper infer height from first rangeCOMMENT
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMmisc/debuggers/imgui_lldb.py1# This file implements synthetic children providers and summaries for various Dear ImGui types for LLDB.COMMENT
Hyper-Verbose Identifiers2 hits · 2 pts
SeverityFileLineSnippetContext
LOWbackends/imgui_impl_win32.cpp968// Borrowed from GLFW's function updateFramebufferTransparency() in src/win32_window.cCOMMENT
LOWdocs/CHANGELOG.txt7318- Misc: Added obsolete redirection function GetItemsLineHeightWithSpacing() (which redirects to GetFrameHeightWithSpacinCODE
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWmisc/fonts/binary_to_compressed_c.cpp20// Usage example:COMMENT