<commit_before>/*
 * Copyright 2022 <NAME>
 * 
 * Use of this source code is governed by MIT license that can be
 * found in the LICENSE.txt file.
 */

#ifndef COMMON_H
#define COMMON_H

// Common defs

#define PREFIX "libpregrind.so: "

#define EXPORT __attribute__((visibility("default")))

#define PAGE_SIZE (4 * 1024u)

#endif
<commit_msg>Manually declare sys_errlist for newer versions of Glibc.<commit_after>/*
 * Copyright 2022 <NAME>
 * 
 * Use of this source code is governed by MIT license that can be
 * found in the LICENSE.txt file.
 */

#ifndef COMMON_H
#define COMMON_H

// Common defs

#define PREFIX "libpregrind.so: "

#define EXPORT __attribute__((visibility("default")))

#define PAGE_SIZE (4 * 1024u)

// sys_errlist is not declared in newer Glibc's
extern const char *const sys_errlist[];

#endif

{'fraction_non_alphanumeric': 0.10256410256410256, 'fraction_numerical': 0.02197802197802198, 'mean_word_length': 4.222929936305732, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4349327', 'n_tokens_mistral': 291, 'n_tokens_neox': 271, 'n_words': 97}