<commit_before>/* See LICENSE for copyright and license details
 * srandrd - simple randr daemon
 */
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include <signal.h>
#include <unistd.h>
#include <sys/wait.h>
#include <fcntl.h>
#include <X11/Xlib.h>
#include <X11/extensions/Xrandr.h>

static void 
xerror(const char *format, ...) {
  va_list args;
  va_start(args, format);
  vfprintf(stderr, format, args);
  va_end(args);
  exit(EXIT_FAILURE);
}
static int 
error_handler() {
  exit(EXIT_FAILURE);
}
static void 
catch_child(int sig) {
  (void)sig;
  while (waitpid(-1, NULL, WNOHANG) > 0);
}
static void 
help(void) {
  fprintf(stderr, "Usage: "NAME" [option] command\n\n"
      "Options:\n"
      "   -h  Print this help and exit\n" 
      "   -n  Don't fork to background\n" 
      "   -V  Print version information and exit\n");
  exit(EXIT_SUCCESS);
}
static void 
version(void) {
  fprintf(stderr, "    This is : "NAME"\n"
                  "    Version : "VERSION"\n"
                  "  Builddate : "__DATE__" "__TIME__"\n"
                  "  Copyright : "COPYRIGHT"\n"
                  "    License : "LICENSE"\n");<commit_msg>Set parameter of error_handler to void<commit_after>/* See LICENSE for copyright and license details
 * srandrd - simple randr daemon
 */
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include <signal.h>
#include <unistd.h>
#include <sys/wait.h>
#include <fcntl.h>
#include <X11/Xlib.h>
#include <X11/extensions/Xrandr.h>

static void 
xerror(const char *format, ...) {
  va_list args;
  va_start(args, format);
  vfprintf(stderr, format, args);
  va_end(args);
  exit(EXIT_FAILURE);
}
static int 
error_handler(void) {
  exit(EXIT_FAILURE);
}
static void 
catch_child(int sig) {
  (void)sig;
  while (waitpid(-1, NULL, WNOHANG) > 0);
}
static void 
help(void) {
  fprintf(stderr, "Usage: "NAME" [option] command\n\n"
      "Options:\n"
      "   -h  Print this help and exit\n" 
      "   -n  Don't fork to background\n" 
      "   -V  Print version information and exit\n");
  exit(EXIT_SUCCESS);
}
static void 
version(void) {
  fprintf(stderr, "    This is : "NAME"\n"
                  "    Version : "VERSION"\n"
                  "  Builddate : "__DATE__" "__TIME__"\n"
                  "  Copyright : "COPYRIGHT"\n"
                  "    License : "LICENSE"\n");
{'fraction_non_alphanumeric': 0.1478000854335754, 'fraction_numerical': 0.0051260145237078175, 'mean_word_length': 2.753205128205128, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 23, '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': '4766401', 'n_tokens_mistral': 862, 'n_tokens_neox': 851, 'n_words': 206}