<commit_before>#include <stdio.h>
#include <stdlib.h>
#include <err.h>
#include <xcb/xcb.h>

#include "arg.h"

char *argv0;
static xcb_connection_t *conn;
static xcb_screen_t *scrn;

static void usage(void);
static void xcbinit(void);
static void cleanup(void);
static int mapped(xcb_window_t);
static int ignored(xcb_window_t);
static int shouldlist(xcb_window_t, int);

enum {
	LIST_HIDDEN = 1 << 0,
	LIST_IGNORE = 1 << 1
};

static void
usage(void)
{
	fprintf(stderr, "usage: %s [-har] [wid...]\n", argv0);
	exit(1);
}

static void
xcbinit(void)
{
	conn = xcb_connect(NULL, NULL);
	if (xcb_connection_has_error(conn))
		errx(1, "unable connect to the X server");

	scrn = xcb_setup_roots_iterator(xcb_get_setup(conn)).data;
<commit_msg>lsw: updated usage function<commit_after>#include <stdio.h>
#include <stdlib.h>
#include <err.h>
#include <xcb/xcb.h>

#include "arg.h"

char *argv0;
static xcb_connection_t *conn;
static xcb_screen_t *scrn;

static void usage(void);
static void xcbinit(void);
static void cleanup(void);
static int mapped(xcb_window_t);
static int ignored(xcb_window_t);
static int shouldlist(xcb_window_t, int);

enum {
	LIST_HIDDEN = 1 << 0,
	LIST_IGNORE = 1 << 1
};

static void
usage(void)
{
	fprintf(stderr, "usage: %s [-hiar] [wid...]\n", argv0);
	exit(1);
}

static void
xcbinit(void)
{
	conn = xcb_connect(NULL, NULL);
	if (xcb_connection_has_error(conn))
		errx(1, "unable connect to the X server");

	scrn = xcb_setup_roots_iterator(xcb_get_setup(conn)).data;

{'fraction_non_alphanumeric': 0.14668452779638314, 'fraction_numerical': 0.010716677829872739, 'mean_word_length': 5.669642857142857, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 11, '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': '147229', 'n_tokens_mistral': 625, 'n_tokens_neox': 604, 'n_words': 145}