<commit_before>#include <X11/Xlib.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/select.h>

#define MAX_DISPLAY 1024

void arg_error() {
	fprintf(stderr,"Options: [-display DISPLAY] [-delay N] [-maxtry N | -wait] [-v]\n");
	exit(2);
}

void print_display(char *display_name) {
	if (!display_name) printf("default ");
	printf("display");
	if (display_name) printf("=%s", display_name);
}

static int handler(Display *disp, XErrorEvent *error) {
	fprintf(stderr, "Got an error\n");<commit_msg>x-is-active: add const where usable<commit_after>#include <X11/Xlib.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/select.h>

#define MAX_DISPLAY 1024

void arg_error() {
	fprintf(stderr,"Options: [-display DISPLAY] [-delay N] [-maxtry N | -wait] [-v]\n");
	exit(2);
}

void print_display(const char *display_name) {
	if (!display_name) printf("default ");
	printf("display");
	if (display_name) printf("=%s", display_name);
}

static int handler(Display *disp, XErrorEvent *error) {
	fprintf(stderr, "Got an error\n");
{'fraction_non_alphanumeric': 0.1832129963898917, 'fraction_numerical': 0.01263537906137184, 'mean_word_length': 5.680722891566265, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '5597469', 'n_tokens_mistral': 426, 'n_tokens_neox': 414, 'n_words': 100}