<commit_before>#include "THGeneral.h"
#include "THDiskFile.h"
#include "THFilePrivate.h"

#ifdef _WIN64
#include <stdint.h>
#endif

typedef struct THDiskFile__
{
    THFile file;

    FILE *handle;
    char *name;
    int isNativeEncoding;
    int longSize;

} THDiskFile;

static int THDiskFile_isOpened(THFile *self)
{
  THDiskFile *dfself = (THDiskFile*)self;
  return (dfself->handle != NULL);
}

const char *THDiskFile_name(THFile *self)
{<commit_msg>Fix compile error on freebsd<commit_after>#include "THGeneral.h"
#include "THDiskFile.h"
#include "THFilePrivate.h"

#include <stdint.h>

typedef struct THDiskFile__
{
    THFile file;

    FILE *handle;
    char *name;
    int isNativeEncoding;
    int longSize;

} THDiskFile;

static int THDiskFile_isOpened(THFile *self)
{
  THDiskFile *dfself = (THDiskFile*)self;
  return (dfself->handle != NULL);
}

const char *THDiskFile_name(THFile *self)
{
{'fraction_non_alphanumeric': 0.11699779249448124, 'fraction_numerical': 0.002207505518763797, 'mean_word_length': 4.598765432098766, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2928231', 'n_tokens_mistral': 343, 'n_tokens_neox': 334, 'n_words': 79}