<commit_before>
/* Allow this code to be skipped by declaring NOFDZIP */
#ifndef NOFDZIP

/* Version: 2015.7.27 */

#ifndef FDZIPSTREAM_H
#define FDZIPSTREAM_H

#include <stdint.h>
#include <time.h>
#include <unistd.h>

#ifdef __cplusplus
extern "C" {
#endif

/* Set FDZIPSTREAM_REGISTEREXTENSIONS=1 to enable automatic support for enabled extensions in fdzipstream_extensions.h.
 *  Without this zs_registermethod() or zs_extensions_register(zs) can be used to register compression methods.
 */
#ifndef FDZIPSTREAM_REGISTEREXTENSIONS
#	define FDZIPSTREAM_REGISTEREXTENSIONS 1
#endif

#ifndef DEF_MEM_LEVEL
#  if MAX_MEM_LEVEL >= 8
#    define DEF_MEM_LEVEL 8
#  else
#    define DEF_MEM_LEVEL MAX_MEM_LEVEL
#  endif
#endif

/* ZIP record type signatures */
#define LOCALHEADERSIG      (0x04034b50)
#define DATADESCRIPTIONSIG  (0x08074b50)
#define CENTRALHEADERSIG    (0x02014b50)
#define ZIP64ENDRECORDSIG   (0x06064b50)
#define ZIP64ENDLOCATORSIG  (0x07064b50)
#define ENDHEADERSIG        (0x06054b50)

/* Compression methods */
#define ZS_STORE      0
#define ZS_DEFLATE    8

/* Maximum single size to write(), 1 MiB */
#define ZS_WRITE_SIZE 1048576

/* Multi-use stream buffer, 256 KiB */
#define ZS_BUFFER_SIZE 262/*144*/

/* Maximum length of file/entry name including NULL terminator */
#define ZENTRY_NAME_LENGTH 256

/* ZIP archive entry */
typedef struct zipentry_s
{
  uint16_t ZipVersion;        /* Version needed to extract, (Default: 2.0) */
  uint16_t GeneralFlag;       /* General purpose bit flag */
  uint16_t CompressionMethod; /* Compression methodId */
  uint16_t DOSDate;
  uint16_t DOSTime;
  uint32_t CRC32;
  uint64_t CompressedSize;
  uint64_t UncompressedSize;
  uint64_t LocalHeaderOffset;
  uint16_t NameLength;
  uint16_t ExtraDataSize;
  char Name[ZENTRY_NAME_LENGTH];
  struct zipmethodimpl_s* impl;
  struct zipentry_s *next;
} ZIPentry;<commit_msg>Increased buffer size back to 256k<commit_after>
/* Allow this code to be skipped by declaring NOFDZIP */
#ifndef NOFDZIP

/* Version: 2015.7.27 */

#ifndef FDZIPSTREAM_H
#define FDZIPSTREAM_H

#include <stdint.h>
#include <time.h>
#include <unistd.h>

#ifdef __cplusplus
extern "C" {
#endif

/* Set FDZIPSTREAM_REGISTEREXTENSIONS=1 to enable automatic support for enabled extensions in fdzipstream_extensions.h.
 *  Without this zs_registermethod() or zs_extensions_register(zs) can be used to register compression methods.
 */
#ifndef FDZIPSTREAM_REGISTEREXTENSIONS
#	define FDZIPSTREAM_REGISTEREXTENSIONS 1
#endif

#ifndef DEF_MEM_LEVEL
#  if MAX_MEM_LEVEL >= 8
#    define DEF_MEM_LEVEL 8
#  else
#    define DEF_MEM_LEVEL MAX_MEM_LEVEL
#  endif
#endif

/* ZIP record type signatures */
#define LOCALHEADERSIG      (0x04034b50)
#define DATADESCRIPTIONSIG  (0x08074b50)
#define CENTRALHEADERSIG    (0x02014b50)
#define ZIP64ENDRECORDSIG   (0x06064b50)
#define ZIP64ENDLOCATORSIG  (0x07064b50)
#define ENDHEADERSIG        (0x06054b50)

/* Compression methods */
#define ZS_STORE      0
#define ZS_DEFLATE    8

/* Maximum single size to write(), 1 MiB */
#define ZS_WRITE_SIZE 1048576

/* Multi-use stream buffer, 256 KiB */
#define ZS_BUFFER_SIZE 262144

/* Maximum length of file/entry name including NULL terminator */
#define ZENTRY_NAME_LENGTH 256

/* ZIP archive entry */
typedef struct zipentry_s
{
  uint16_t ZipVersion;        /* Version needed to extract, (Default: 2.0) */
  uint16_t GeneralFlag;       /* General purpose bit flag */
  uint16_t CompressionMethod; /* Compression methodId */
  uint16_t DOSDate;
  uint16_t DOSTime;
  uint32_t CRC32;
  uint64_t CompressedSize;
  uint64_t UncompressedSize;
  uint64_t LocalHeaderOffset;
  uint16_t NameLength;
  uint16_t ExtraDataSize;
  char Name[ZENTRY_NAME_LENGTH];
  struct zipmethodimpl_s* impl;
  struct zipentry_s *next;
} ZIPentry;
{'fraction_non_alphanumeric': 0.08035950303991542, 'fraction_numerical': 0.05947660586835844, 'mean_word_length': 4.484057971014493, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, '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': '860244', 'n_tokens_mistral': 1506, 'n_tokens_neox': 1342, 'n_words': 364}