<commit_before>#include "utils.hpp"

#include <signal.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <stdarg.h>
#include "arch/arch.hpp"

void generic_crash_handler(int signum) {
    fprintf(stderr, "Signum: %d\n", signum);
    fail("Internal crash detected.");
}

void ignore_crash_handler(int signum) {}

void install_generic_crash_handler() {
    struct sigaction action;
    bzero(&action, sizeof(action));
    action.sa_handler = generic_crash_handler;<commit_msg>Changed message when we get a signal.<commit_after>#include "utils.hpp"

#include <signal.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <stdarg.h>
#include "arch/arch.hpp"

void generic_crash_handler(int signum) {
    if (signum == SIGSEGV) fail("Segmentation fault.");
    else fail("Unexpected signal: %d\n", signum);
}

void ignore_crash_handler(int signum) {}

void install_generic_crash_handler() {
    struct sigaction action;
    bzero(&action, sizeof(action));
    action.sa_handler = generic_crash_handler;
{'fraction_non_alphanumeric': 0.1391304347826087, 'fraction_numerical': 0.0, 'mean_word_length': 5.395061728395062, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '4572896', 'n_tokens_mistral': 363, 'n_tokens_neox': 359, 'n_words': 80}