<commit_before>/*
 * jar.c
 * Handle JAR input files.
 *
 * Copyright (c) 1998
 *      Transvirtual Technologies, Inc.  All rights reserved.
 *
 * See the file "license.terms" for information on usage and redistribution
 * of this file.
 */

#include "config.h"
#include "debug.h"
#include "config-std.h"
#include "config-io.h"
#include "config-mem.h"
#include "gtypes.h"
#include "jsyscall.h"
#include "inflate.h"
#include "jar.h"
#include "gc.h"
#include "stats.h"
#include "files.h"

#undef HAVE_MMAP

static inline int
jar_read(jarFile* file, char *buf, off_t len)
{
#ifdef HAVE_MMAP
    if (file->data != (char*)-1) {
        if (file->offset + len > file->size)
	    len = file->size - file->offset;<commit_msg>Remove extraneous #undef HAVE_MMAP that snuck in previous commit somehow.<commit_after>/*
 * jar.c
 * Handle JAR input files.
 *
 * Copyright (c) 1998
 *      Transvirtual Technologies, Inc.  All rights reserved.
 *
 * See the file "license.terms" for information on usage and redistribution
 * of this file.
 */

#include "config.h"
#include "debug.h"
#include "config-std.h"
#include "config-io.h"
#include "config-mem.h"
#include "gtypes.h"
#include "jsyscall.h"
#include "inflate.h"
#include "jar.h"
#include "gc.h"
#include "stats.h"
#include "files.h"

static inline int
jar_read(jarFile* file, char *buf, off_t len)
{
#ifdef HAVE_MMAP
    if (file->data != (char*)-1) {
        if (file->offset + len > file->size)
	    len = file->size - file->offset;
{'fraction_non_alphanumeric': 0.1524390243902439, 'fraction_numerical': 0.006775067750677507, 'mean_word_length': 3.6446540880503147, 'pattern_counts': {'":': 0, '<': 3, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2714556', 'n_tokens_mistral': 546, 'n_tokens_neox': 524, 'n_words': 156}