<commit_before>#ifndef __TZUTE_CONTAINER_H
#define __TZUTE_CONTAINER_H

#include <stdbool.h>
#include <stddef.h>

typedef struct {
	void *data;
	size_t ele_size;
	size_t len;
	size_t size;
	void (*dealloc)(void *data);
} array_t;

#define ARRAY_GET(array, type, idx) (type*)((char*)(array)->data + sizeof(type) * (idx))

int array_init(array_t *array, size_t ele_size, void (*dealloc)(void *data));<commit_msg>Present single byte by int8_t, not char.<commit_after>#ifndef __TZUTE_CONTAINER_H
#define __TZUTE_CONTAINER_H

#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>

typedef struct {
	void *data;
	size_t ele_size;
	size_t len;
	size_t size;
	void (*dealloc)(void *data);
} array_t;

#define ARRAY_GET(array, type, idx) (type*)((int8_t*)(array)->data + sizeof(type) * (idx))

int array_init(array_t *array, size_t ele_size, void (*dealloc)(void *data));
{'fraction_non_alphanumeric': 0.1518987341772152, 'fraction_numerical': 0.0023014959723820483, 'mean_word_length': 6.565217391304348, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 10, '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': '604817', 'n_tokens_mistral': 365, 'n_tokens_neox': 354, 'n_words': 81}