<commit_before>#ifndef UC_MEMORY_MANAGER_P_H
#define UC_MEMORY_MANAGER_P_H

#define UC_MEMORY_MANAGER_INIT(TYPE, COUNT) \
    typedef struct uc_memory_manager_instance { \
        TYPE s; \
        char in_use; \
    } uc_memory_manager_instance; \
\
    static uc_memory_manager_instance uc_memory_manager_instances[COUNT]; \
\
    static TYPE *uc_memory_manager_create(void) { \
        int i; \
        uc_memory_manager_instance *inst; \
        for (i = 0; i < COUNT; i++) { \
            inst = &uc_memory_manager_instances[i]; \
            if (!inst->in_use) { \
                inst->in_use = 1; \
                return &inst->s; \
            } \
        } \
        return NULL; \
    } \
\
    static void uc_memory_manager_destroy(TYPE *p) { \
        int i; \
        uc_memory_manager_instance *inst; \
        for (i = 0; i < COUNT; i++) { \
            inst = &uc_memory_manager_instances[i]; \
            if (p == (&inst->s)) { \
                inst->in_use = 0; \
            } \
        } \
    } \

#endif<commit_msg>Cleaned up the memory manager macro.<commit_after>#ifndef UC_MEMORY_MANAGER_P_H
#define UC_MEMORY_MANAGER_P_H

#define UC_MEMORY_MANAGER_INIT(TYPE, COUNT) \
    typedef struct uc_memory_manager_instance { \
        TYPE inst; \
        char used; \
    } uc_memory_manager_instance; \
\
    static uc_memory_manager_instance uc_memory_manager_instances[COUNT] = { 0 }; \
\
    static TYPE *uc_memory_manager_create(void) { \
        int i; \
        uc_memory_manager_instance *inst; \
        for (i = 0; i < COUNT; i++) { \
            inst = &uc_memory_manager_instances[i]; \
            if (inst->used == 0) { \
                inst->used = 1; \
                return &inst->inst; \
            } \
        } \
        return NULL; \
    } \
\
    static void uc_memory_manager_destroy(TYPE *p) { \
        int i; \
        uc_memory_manager_instance *inst; \
        for (i = 0; i < COUNT; i++) { \
            inst = &uc_memory_manager_instances[i]; \
            if (p == (&inst->inst)) { \
                inst->used = 0; \
            } \
        } \
    } \

#endif
{'fraction_non_alphanumeric': 0.12134088762983947, 'fraction_numerical': 0.004721435316336166, 'mean_word_length': 1.6721311475409837, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 13, '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': '2216283', 'n_tokens_mistral': 753, 'n_tokens_neox': 710, 'n_words': 132}