<commit_before>#ifndef UIK_WINDOW
#define UIK_WINDOW

#include <string>


namespace UIK {
	/**
	 * Window rendering.
	 */
	class Window {
		public:
			/**
			 * Create or recreate the window.
			 *
			 * If the window was already created, it closes it first.
			 *
			 * @param title  Window title.
			 * @param width  Window width.
			 * @param height Window height.
			 * @param style  Window style.
			 */
			static void Create(
				const    std::string& title,
				unsigned         int  width,
				unsigned         int  height,
				unsigned         int  style
			);
			
			/**
			 * Close the window and destroy.
			 *
			 * All other functions work normally, you do not need test IsOpen()
			 * all the time, and will have no effect on the windows closed.
			 */
			static void Close();
			
			/**
			 * Change the title of the window.
			 *
			 * @param title New window title.
			 */
			static void Title(
				const std::string& title
			);
			
			/**
			 * It says if the window is open or not.
			 *
			 * This function returns whether or not the window exists.
			 * Note that a hidden window is open therefore this function would
			 * return true.
			 *
			 * @return boolean
			 */
			static bool IsOpen();
			
			/**
			 * Internal event processing function.
			 */
			static void PeekEvent(); 
			
			/**
			 * Show or hide the window.
			 *
			 * The window is shown by default.
			 *
			 * @param visible Show or hide.
			 */
			static void Visible(bool visible);
			
			/**
			 * Display on screen what has been rendered.
			 *
			 * This function is typically called after all OpenGL rendering has
			 * been done for the current frame, in order to show it on screen.
			 */
			static void Display();
	};
}

#endif
<commit_msg>Update window.h<commit_after>#ifndef UIK_WINDOW
#define UIK_WINDOW

#include <string>


namespace UIK {
	/**
	 * @class Window
	 * @ingroup Window
	 *
	 * Window rendering.
	 */
	class Window {
		public:
			/** Window height */
			static unsigned int Height;

			/** Window width */
			static unsigned int Width;


			/**
			 * Create or recreate window.
			 *
			 * If the window was already created, it closes it first.
			 *
			 * @param title  Window title.
			 * @param width  Window width.
			 * @param height Window height.
			 * @param style  Window style.
			 */
			static void Create(
				const    std::string& title,
				unsigned         int  width,
				unsigned         int  height,
				unsigned         int  style
			);

			/**
			 * Destroy current window.
			 *
			 * All other functions work normally, you do not need test IsCreated()
			 * all the time, and will have no effect on the windows closed.
			 */
			static void Destroy();

			/**
			 * Change the window title.
			 *
			 * @param title New title.
			 */
			static void SetTitle(const std::string& title);

			/**
			 * Show or hide the window.
			 *
			 * The window is shown by default.
			 *
			 * @param visible Show or hide.
			 */
			static void Visible(bool visible);

			/**
			 * Switch to fullscreen.
			 *
			 * @param enable Enable or disable fullscreen.
			 */
			static void Fullscreen(bool enable);

			/**
			 * Checks if the window was created.
			 *
			 * This function returns whether or not the window exists.
			 * Note that a hidden window is still there, so this function should return true.
			 *
			 * @return boolean
			 */
			static bool IsCreated();

			/**
			 * Internal event processing function.
			 */
			static void PeekEvent();

			/**
			 * Display on screen what has been rendered.
			 *
			 * This function is typically called after all OpenGL rendering has
			 * been done for the current frame, in order to show it on screen.
			 */
			static void Display();
	};
}

#endif

{'fraction_non_alphanumeric': 0.08937650521808937, 'fraction_numerical': 0.0, 'mean_word_length': 2.0267206477732795, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5250843', 'n_tokens_mistral': 1363, 'n_tokens_neox': 974, 'n_words': 429}