<commit_before>/*************************************************************************\
 *
 * Package:        MyLib
 * File:           util.c
 * Environment:    ANSI C
 *
 * Copyright (c) 2002 <NAME>, DIRO, Université de Montréal.
 * e-mail: <EMAIL>
 * All rights reserved.
 *
 * This software is provided under the Apache 2 License.
 *
 * In scientific publications which used this software, a reference to it
 * would be appreciated.
 *
\*************************************************************************/

#include "util.h"

#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>


#define MAXCAR 256                      /* Max length of a line of data */
<commit_msg>Enable Large-file support (LFS), to read files larger than 2^31 bytes on 32-bit platforms<commit_after>/*************************************************************************\
 *
 * Package:        MyLib
 * File:           util.c
 * Environment:    ANSI C
 *
 * Copyright (c) 2002 <NAME>, DIRO, Université de Montréal.
 * e-mail: <EMAIL>
 * All rights reserved.
 *
 * This software is provided under the Apache 2 License.
 *
 * In scientific publications which used this software, a reference to it
 * would be appreciated.
 *
\*************************************************************************/

#define _FILE_OFFSET_BITS 64

#include "util.h"

#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>


#define MAXCAR 256                      /* Max length of a line of data */

{'fraction_non_alphanumeric': 0.28298153034300794, 'fraction_numerical': 0.015171503957783642, 'mean_word_length': 3.5419161676646707, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4839581', 'n_tokens_mistral': 432, 'n_tokens_neox': 385, 'n_words': 144}