<commit_before>/** @file */
#ifndef __SMALLWM_COMMON__
#define __SMALLWM_COMMON__

#include <X11/Xlib.h>
#include <X11/keysym.h>
#include <X11/Xutil.h>
#include <X11/extensions/Xrandr.h>

#include <cstring>
#include <tuple>

/// A size of some kind.
typedef unsigned int Dimension;
/// The extend of some window or other surface.
typedef std::tuple<Dimension,Dimension> Dimension2D;

// Some convienence wrappers for accessing width-height pairs
#define DIM2D_WIDTH(dim2d) (std::get<0>((dim2d)))
#define DIM2D_HEIGHT(dim2d) (std::get<1>((dim2d)))
// More convienence wrappers for accessing x-y pairs
#define DIM2D_X(dim2d) (std::get<0>((dim2d)))
#define DIM2D_Y(dim2d) (std::get<1>((dim2d)))

/// The desktop number.
typedef unsigned long long Desktop;
/// The z-layer of a window.
typedef unsigned char Layer;

/// The maximum layer of any non-dialog window.
const Layer MAX_LAYER = 9,
      /// The lowest layer for any window.
      MIN_LAYER = 1,
      /// The layer of dialogs, which are on top of everything else.
      DIALOG_LAYER = 10,
      /// The default layer assigned to all windows.
      DEF_LAYER = 5;
    
/// A value indicating that the current desktop value should be used.
const Desktop THIS_DESKTOP = -1;

#endif<commit_msg>Added some constants related to mouse buttons.<commit_after>/** @file */
#ifndef __SMALLWM_COMMON__
#define __SMALLWM_COMMON__

#include <X11/Xlib.h>
#include <X11/keysym.h>
#include <X11/Xutil.h>
#include <X11/extensions/Xrandr.h>

#include <cstdlib>
#include <cstring>
#include <iostream>
#include <tuple>
#include <unistd.h>

/// A size of some kind.
typedef unsigned int Dimension;
/// The extend of some window or other surface.
typedef std::tuple<Dimension,Dimension> Dimension2D;

// Some convienence wrappers for accessing width-height pairs
#define DIM2D_WIDTH(dim2d) (std::get<0>((dim2d)))
#define DIM2D_HEIGHT(dim2d) (std::get<1>((dim2d)))
// More convienence wrappers for accessing x-y pairs
#define DIM2D_X(dim2d) (std::get<0>((dim2d)))
#define DIM2D_Y(dim2d) (std::get<1>((dim2d)))

/// The desktop number.
typedef unsigned long long Desktop;
/// The z-layer of a window.
typedef unsigned char Layer;

/// The maximum layer of any non-dialog window.
const Layer MAX_LAYER = 9,
      /// The lowest layer for any window.
      MIN_LAYER = 1,
      /// The layer of dialogs, which are on top of everything else.
      DIALOG_LAYER = 10,
      /// The default layer assigned to all windows.
      DEF_LAYER = 5;
    
/// A value indicating that the current desktop value should be used.
const Desktop THIS_DESKTOP = -1;

/// The button to click to launch a terminal
const int LAUNCH_BUTTON = 1,
      /// The button to click to move a client
      MOVE_BUTTON = 1,
      /// The button to click to resize a client
      RESIZE_BUTTON = 3,
      /// The key to hold to activate window manager functions
      BUTTON_MASK = Mod4Mask;

#endif
{'fraction_non_alphanumeric': 0.11843922651933701, 'fraction_numerical': 0.022790055248618785, 'mean_word_length': 3.591125198098257, 'pattern_counts': {'":': 0, '<': 28, '<?xml version=': 0, '>': 28, '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': '6761118', 'n_tokens_mistral': 1024, 'n_tokens_neox': 978, 'n_words': 330}