<commit_before>
#include <stdio.h>

#if defined _WIN32 || defined __CYGWIN__
#define API __declspec(dllexport)
#define snprintf sprintf_s
#else
#define API
#endif

#if defined __cplusplus
#define EXTERN extern "C"
#else
#include <stdarg.h>
#include <stdbool.h>
#define EXTERN extern
#endif

#define CIMGUI_API EXTERN API
#define CONST const

typedef int ImGuiWindowFlags;
typedef int ImGuiSetCond;
typedef int ImGuiColorEditMode;

CIMGUI_API ImGuiIO*         ig_GetIO();
CIMGUI_API ImGuiStyle*      ig_GetStyle();
CIMGUI_API void             ig_NewFrame();
CIMGUI_API void             ig_Render();
CIMGUI_API void             ig_Shutdown();
CIMGUI_API void             ig_ShowUserGuide();
CIMGUI_API void             ig_ShowStyleEditor(ImGuiStyle* ref);
CIMGUI_API void             ig_ShowTestWindow(bool* opened);
CIMGUI_API void             ig_ShowMetricsWindow(bool* opened);

// Window
CIMGUI_API bool             ig_Begin(CONST char* name, bool* p_opened, ImGuiWindowFlags flags);
CIMGUI_API bool             ig_Begin2(CONST char* name, bool* p_opened, CONST struct ImVec2 size_on_first_use, float bg_alpha, ImGuiWindowFlags flags);
CIMGUI_API void             ig_End();
CIMGUI_API bool             ig_BeginChild(CONST char* str_id, CONST struct ImVec2 size, bool border, ImGuiWindowFlags extra_flags);
CIMGUI_API bool             ig_BeginChildEx(ImGuiID id, CONST struct ImVec2 size, bool border, ImGuiWindowFlags extra_flags);
CIMGUI_API void             ig_EndChild();
CIMGUI_API void             ig_GetContentRegionMax(struct ImVec2* out);
CIMGUI_API void             ig_GetWindowContentRegionMin(struct ImVec2* out);
CIMGUI_API void             ig_GetWindowContentRegionMax(struct ImVec2* out);
CIMGUI_API ImDrawList*      ig_GetWindowDrawList();
CIMGUI_API ImFont*          ig_GetWindowFont();
CIMGUI_API float            ig_GetWindowFontSize(); 
CIMGUI_API void             ig_SetWindowFontScale(float scale);
CIMGUI_API void             ig_GetWindowPos(struct ImVec2* out);
CIMGUI_API void             ig_GetWindowSize(struct ImVec2* out);
CIMGUI_API float            ig_GetWindowWidth();
CIMGUI_API bool             ig_IsWindowCollapsed();

CIMGUI_API void             ig_SetNextWindowPos(CONST struct ImVec2 pos, ImGuiSetCond cond);
CIMGUI_API void             ig_SetNextWindowPosCenter(ImGuiSetCond cond = 0);
CIMGUI_API void             ig_SetNextWindowSize(CONST struct ImVec2 size, ImGuiSetCond cond);
CIMGUI_API void             ig_SetNextWindowCollapsed(bool collapsed, ImGuiSetCond cond);
CIMGUI_API void             ig_SetNextWindowFocus();
CIMGUI_API void             ig_SetWindowPos(CONST struct ImVec2 pos, ImGuiSetCond cond);
CIMGUI_API void             ig_SetWindowSize(CONST struct ImVec2 size, ImGuiSetCond cond);
CIMGUI_API void             ig_SetWindowCollapsed(bool collapsed, ImGuiSetCond cond);
CIMGUI_API void             ig_SetWindowFocus();
CIMGUI_API void             ig_SetWindowPosByName(CONST char* name, CONST struct ImVec2 pos, ImGuiSetCond cond);
CIMGUI_API void             ig_SetWindowSize2(CONST char* name, CONST struct ImVec2 size, ImGuiSetCond cond);
CIMGUI_API void             ig_SetWindowCollapsed2(CONST char* name, bool collapsed, ImGuiSetCond cond);
CIMGUI_API void             ig_SetWindowFocus2(CONST char* name);

CIMGUI_API float            ig_GetScrollPosY();
CIMGUI_API float            ig_GetScrollMaxY();
CIMGUI_API void             ig_SetScrollPosHere();
CIMGUI_API void             ig_SetKeyboardFocusHere(int offset);
CIMGUI_API void             ig_SetStateStorage(ImGuiStorage* tree);
CIMGUI_API ImGuiStorage*    ig_GetStateStorage();

// Parameters stacks (shared)
CIMGUI_API void             ig_PushFont(ImFont* font);
CIMGUI_API void             ig_PopFont();
CIMGUI_API void             ig_PushStyleColor(ImGuiCol idx, CONST struct ImVec4 col);
CIMGUI_API void             ig_PopStyleColor(int count);
CIMGUI_API void             ig_PushStyleVar(ImGuiStyleVar idx, float val);
CIMGUI_API void             ig_PushStyleVarVec(ImGuiStyleVar idx, CONST struct ImVec2 val);
CIMGUI_API void             ig_PopStyleVar(int count);

// Parameters stacks (current window)
CIMGUI_API void             ig_PushItemWidth(float item_width);
CIMGUI_API void             ig_PopItemWidth();
CIMGUI_API float            ig_CalcItemWidth();
CIMGUI_API void             ig_PushAllowKeyboardFocus(bool v);
CIMGUI_API void             ig_PopAllowKeyboardFocus();
CIMGUI_API void             ig_PushTextWrapPos(float wrap_pos_x);
CIMGUI_API void             ig_PopTextWrapPos();
CIMGUI_API void             ig_PushButtonRepeat(bool repeat);
CIMGUI_API void             ig_PopButtonRepeat();


// Tooltip
CIMGUI_API void             ig_SetTooltip(CONST char* fmt, ...);
CIMGUI_API void             ig_SetTooltipV(CONST char* fmt, va_list args);
CIMGUI_API void             ig_BeginTooltip();
CIMGUI_API void             ig_EndTooltip();

// Popup
CIMGUI_API void             ig_OpenPopup(CONST char* str_id);
CIMGUI_API bool             ig_BeginPopup(CONST char* str_id);
CIMGUI_API bool             ig_BeginPopupModal(CONST char* name, bool* p_opened = NULL, ImGuiWindowFlags extra_flags = 0);
CIMGUI_API bool             ig_BeginPopupContextItem(CONST char* str_id, int mouse_button = 1);
CIMGUI_API bool             ig_BeginPopupContextWindow(bool also_over_items = true, CONST char* str_id = NULL, int mouse_button = 1);
CIMGUI_API bool             ig_BeginPopupContextVoid(CONST char* str_id = NULL, int mouse_button = 1);
CIMGUI_API void             ig_EndPopup();
CIMGUI_API void             ig_CloseCurrentPopup();

// Layout
CIMGUI_API void             ig_BeginGroup();
CIMGUI_API void             ig_EndGroup();
CIMGUI_API void             ig_Separator();
CIMGUI_API void             ig_SameLine(int column_x, int spacing_w);
CIMGUI_API void             ig_Spacing();
CIMGUI_API void             ig_Dummy(CONST ImVec2* size);
CIMGUI_API void             ig_Indent();
CIMGUI_API void             ig_Unindent();
CIMGUI_API void             ig_Columns(int count, CONST char* id, bool border);
CIMGUI_API void             ig_NextColumn();
CIMGUI_API int              ig_GetColumnIndex();
CIMGUI_API float            ig_GetColumnOffset(int column_index);
CIMGUI_API void             ig_SetColumnOffset(int column_index, float offset_x);
CIMGUI_API float            ig_GetColumnWidth(int column_index);
CIMGUI_API int              ig_GetColumnsCount();
CIMGUI_API void             ig_GetCursorPos(struct ImVec2* pOut);
CIMGUI_API float            ig_GetCursorPosX();
CIMGUI_API float            ig_GetCursorPosY();
CIMGUI_API void             ig_SetCursorPos(CONST struct ImVec2 pos);
CIMGUI_API void             ig_SetCursorPosX(float x);
CIMGUI_API void             ig_SetCursorPosY(float y);
CIMGUI_API void             ig_GetCursorScreenPos(struct ImVec2* pOut);
CIMGUI_API void             ig_SetCursorScreenPos(CONST struct ImVec2 pos);
CIMGUI_API void             ig_AlignFirstTextHeightToWidgets();
CIMGUI_API float            ig_GetTextLineHeight();
CIMGUI_API float            ig_GetTextLineHeightWithSpacing();
CIMGUI_API float            ig_GetItemsLineHeightWithSpacing();<commit_msg>remove usage of default params<commit_after>
#include <stdio.h>

#if defined _WIN32 || defined __CYGWIN__
#define API __declspec(dllexport)
#define snprintf sprintf_s
#else
#define API
#endif

#if defined __cplusplus
#define EXTERN extern "C"
#else
#include <stdarg.h>
#include <stdbool.h>
#define EXTERN extern
#endif

#define CIMGUI_API EXTERN API
#define CONST const

typedef int ImGuiWindowFlags;
typedef int ImGuiSetCond;
typedef int ImGuiColorEditMode;

CIMGUI_API ImGuiIO*         ig_GetIO();
CIMGUI_API ImGuiStyle*      ig_GetStyle();
CIMGUI_API void             ig_NewFrame();
CIMGUI_API void             ig_Render();
CIMGUI_API void             ig_Shutdown();
CIMGUI_API void             ig_ShowUserGuide();
CIMGUI_API void             ig_ShowStyleEditor(ImGuiStyle* ref);
CIMGUI_API void             ig_ShowTestWindow(bool* opened);
CIMGUI_API void             ig_ShowMetricsWindow(bool* opened);

// Window
CIMGUI_API bool             ig_Begin(CONST char* name, bool* p_opened, ImGuiWindowFlags flags);
CIMGUI_API bool             ig_Begin2(CONST char* name, bool* p_opened, CONST struct ImVec2 size_on_first_use, float bg_alpha, ImGuiWindowFlags flags);
CIMGUI_API void             ig_End();
CIMGUI_API bool             ig_BeginChild(CONST char* str_id, CONST struct ImVec2 size, bool border, ImGuiWindowFlags extra_flags);
CIMGUI_API bool             ig_BeginChildEx(ImGuiID id, CONST struct ImVec2 size, bool border, ImGuiWindowFlags extra_flags);
CIMGUI_API void             ig_EndChild();
CIMGUI_API void             ig_GetContentRegionMax(struct ImVec2* out);
CIMGUI_API void             ig_GetWindowContentRegionMin(struct ImVec2* out);
CIMGUI_API void             ig_GetWindowContentRegionMax(struct ImVec2* out);
CIMGUI_API ImDrawList*      ig_GetWindowDrawList();
CIMGUI_API ImFont*          ig_GetWindowFont();
CIMGUI_API float            ig_GetWindowFontSize(); 
CIMGUI_API void             ig_SetWindowFontScale(float scale);
CIMGUI_API void             ig_GetWindowPos(struct ImVec2* out);
CIMGUI_API void             ig_GetWindowSize(struct ImVec2* out);
CIMGUI_API float            ig_GetWindowWidth();
CIMGUI_API bool             ig_IsWindowCollapsed();

CIMGUI_API void             ig_SetNextWindowPos(CONST struct ImVec2 pos, ImGuiSetCond cond);
CIMGUI_API void             ig_SetNextWindowPosCenter(ImGuiSetCond cond);
CIMGUI_API void             ig_SetNextWindowSize(CONST struct ImVec2 size, ImGuiSetCond cond);
CIMGUI_API void             ig_SetNextWindowCollapsed(bool collapsed, ImGuiSetCond cond);
CIMGUI_API void             ig_SetNextWindowFocus();
CIMGUI_API void             ig_SetWindowPos(CONST struct ImVec2 pos, ImGuiSetCond cond);
CIMGUI_API void             ig_SetWindowSize(CONST struct ImVec2 size, ImGuiSetCond cond);
CIMGUI_API void             ig_SetWindowCollapsed(bool collapsed, ImGuiSetCond cond);
CIMGUI_API void             ig_SetWindowFocus();
CIMGUI_API void             ig_SetWindowPosByName(CONST char* name, CONST struct ImVec2 pos, ImGuiSetCond cond);
CIMGUI_API void             ig_SetWindowSize2(CONST char* name, CONST struct ImVec2 size, ImGuiSetCond cond);
CIMGUI_API void             ig_SetWindowCollapsed2(CONST char* name, bool collapsed, ImGuiSetCond cond);
CIMGUI_API void             ig_SetWindowFocus2(CONST char* name);

CIMGUI_API float            ig_GetScrollPosY();
CIMGUI_API float            ig_GetScrollMaxY();
CIMGUI_API void             ig_SetScrollPosHere();
CIMGUI_API void             ig_SetKeyboardFocusHere(int offset);
CIMGUI_API void             ig_SetStateStorage(ImGuiStorage* tree);
CIMGUI_API ImGuiStorage*    ig_GetStateStorage();

// Parameters stacks (shared)
CIMGUI_API void             ig_PushFont(ImFont* font);
CIMGUI_API void             ig_PopFont();
CIMGUI_API void             ig_PushStyleColor(ImGuiCol idx, CONST struct ImVec4 col);
CIMGUI_API void             ig_PopStyleColor(int count);
CIMGUI_API void             ig_PushStyleVar(ImGuiStyleVar idx, float val);
CIMGUI_API void             ig_PushStyleVarVec(ImGuiStyleVar idx, CONST struct ImVec2 val);
CIMGUI_API void             ig_PopStyleVar(int count);

// Parameters stacks (current window)
CIMGUI_API void             ig_PushItemWidth(float item_width);
CIMGUI_API void             ig_PopItemWidth();
CIMGUI_API float            ig_CalcItemWidth();
CIMGUI_API void             ig_PushAllowKeyboardFocus(bool v);
CIMGUI_API void             ig_PopAllowKeyboardFocus();
CIMGUI_API void             ig_PushTextWrapPos(float wrap_pos_x);
CIMGUI_API void             ig_PopTextWrapPos();
CIMGUI_API void             ig_PushButtonRepeat(bool repeat);
CIMGUI_API void             ig_PopButtonRepeat();


// Tooltip
CIMGUI_API void             ig_SetTooltip(CONST char* fmt, ...);
CIMGUI_API void             ig_SetTooltipV(CONST char* fmt, va_list args);
CIMGUI_API void             ig_BeginTooltip();
CIMGUI_API void             ig_EndTooltip();

// Popup
CIMGUI_API void             ig_OpenPopup(CONST char* str_id);
CIMGUI_API bool             ig_BeginPopup(CONST char* str_id);
CIMGUI_API bool             ig_BeginPopupModal(CONST char* name, bool* p_opened, ImGuiWindowFlags extra_flags);
CIMGUI_API bool             ig_BeginPopupContextItem(CONST char* str_id, int mouse_button);
CIMGUI_API bool             ig_BeginPopupContextWindow(bool also_over_items, CONST char* str_id, int mouse_button);
CIMGUI_API bool             ig_BeginPopupContextVoid(CONST char* str_id, int mouse_button);
CIMGUI_API void             ig_EndPopup();
CIMGUI_API void             ig_CloseCurrentPopup();

// Layout
CIMGUI_API void             ig_BeginGroup();
CIMGUI_API void             ig_EndGroup();
CIMGUI_API void             ig_Separator();
CIMGUI_API void             ig_SameLine(int column_x, int spacing_w);
CIMGUI_API void             ig_Spacing();
CIMGUI_API void             ig_Dummy(CONST ImVec2* size);
CIMGUI_API void             ig_Indent();
CIMGUI_API void             ig_Unindent();
CIMGUI_API void             ig_Columns(int count, CONST char* id, bool border);
CIMGUI_API void             ig_NextColumn();
CIMGUI_API int              ig_GetColumnIndex();
CIMGUI_API float            ig_GetColumnOffset(int column_index);
CIMGUI_API void             ig_SetColumnOffset(int column_index, float offset_x);
CIMGUI_API float            ig_GetColumnWidth(int column_index);
CIMGUI_API int              ig_GetColumnsCount();
CIMGUI_API void             ig_GetCursorPos(struct ImVec2* pOut);
CIMGUI_API float            ig_GetCursorPosX();
CIMGUI_API float            ig_GetCursorPosY();
CIMGUI_API void             ig_SetCursorPos(CONST struct ImVec2 pos);
CIMGUI_API void             ig_SetCursorPosX(float x);
CIMGUI_API void             ig_SetCursorPosY(float y);
CIMGUI_API void             ig_GetCursorScreenPos(struct ImVec2* pOut);
CIMGUI_API void             ig_SetCursorScreenPos(CONST struct ImVec2 pos);
CIMGUI_API void             ig_AlignFirstTextHeightToWidgets();
CIMGUI_API float            ig_GetTextLineHeight();
CIMGUI_API float            ig_GetTextLineHeightWithSpacing();
CIMGUI_API float            ig_GetItemsLineHeightWithSpacing();
{'fraction_non_alphanumeric': 0.061181582451468215, 'fraction_numerical': 0.00413483776017941, 'mean_word_length': 3.066685665431747, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4284036', 'n_tokens_mistral': 4362, 'n_tokens_neox': 4402, 'n_words': 1098}