<commit_before>#include <fcntl.h>
#include <stdarg.h>

#include "syscall.h"
#include "syscalls.h"

size_t _write(int fd, const void *buf, size_t len) {
    return syscall3(SYS(write), fd, buf, len);
}
size_t _read(int fd, const void *buf, size_t len) {
    return syscall3(SYS(read), fd, buf, len);
}
void *_mmap(void *addr, size_t len, int prot, int flags, int fd, off_t off) {
    int num = SYS(mmap);
#ifdef SYS_mmap2
    num = SYS(mmap2);
#endif
    return (void *)syscall6(num, addr, len, prot, flags, fd, off);<commit_msg>fix mmap/mmap2 disparity<commit_after>#include <fcntl.h>
#include <stdarg.h>

#include "syscall.h"
#include "syscalls.h"

size_t _write(int fd, const void *buf, size_t len) {
    return syscall3(SYS(write), fd, buf, len);
}
size_t _read(int fd, const void *buf, size_t len) {
    return syscall3(SYS(read), fd, buf, len);
}
void *_mmap(void *addr, size_t len, int prot, int flags, int fd, off_t off) {
#ifdef SYS_mmap2
    int num = SYS(mmap2);
#else
    int num = SYS(mmap);
#endif
    return (void *)syscall6(num, addr, len, prot, flags, fd, off);
{'fraction_non_alphanumeric': 0.1522748375116063, 'fraction_numerical': 0.01021355617455896, 'mean_word_length': 4.444444444444445, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '6046551', 'n_tokens_mistral': 453, 'n_tokens_neox': 431, 'n_words': 131}