<commit_before>//
// Created by cdeler on 10/20/17.
//

#ifndef CMOCKER_VECTOR_H
#define CMOCKER_VECTOR_H

#include <stdlib.h>

#define ENLARGE_FACTOR(_x) (10ULL + (_x) * 3 / 2)

typedef void (*VectorDeleter)(void *vectorItem);

typedef struct
    {
    #define VECTOR_EYECATCHER_SIZE (4U)
    #define VECTOR_EYECATCHER_VALUE ("EYE")
    char eyeCatcher[VECTOR_EYECATCHER_SIZE];
    size_t vectorSize;
    size_t elementsCount;
    void **items;

    VectorDeleter deleter;
    } Vector;

Vector *vector_open(void);
int vector_close(Vector **ppVector) __attribute__((nonnull (1)));
int vector_add(Vector *pVector, void *item) __attribute__((nonnull (1, 2)));
int vector_removeAt(Vector *pVector, size_t index) __attribute__((nonnull (1)));

void vector_set_deleter(Vector *pVector, VectorDeleter deleter) __attribute__((nonnull (1, 2)));
void vector_enlarge(Vector *pVector) __attribute__((nonnull (1)));

#endif //CMOCKER_VECTOR_H
<commit_msg>added forgotten pragma<commit_after>//
// Created by cdeler on 10/20/17.
//

#pragma once
#ifndef CMOCKER_VECTOR_H
#define CMOCKER_VECTOR_H

#include <stdlib.h>

#define ENLARGE_FACTOR(_x) (10ULL + (_x) * 3 / 2)

typedef void (*VectorDeleter)(void *vectorItem);

typedef struct
    {
    #define VECTOR_EYECATCHER_SIZE (4U)
    #define VECTOR_EYECATCHER_VALUE ("EYE")
    char eyeCatcher[VECTOR_EYECATCHER_SIZE];
    size_t vectorSize;
    size_t elementsCount;
    void **items;

    VectorDeleter deleter;
    } Vector;

Vector *vector_open(void);
int vector_close(Vector **ppVector) __attribute__((nonnull (1)));
int vector_add(Vector *pVector, void *item) __attribute__((nonnull (1, 2)));
int vector_removeAt(Vector *pVector, size_t index) __attribute__((nonnull (1)));

void vector_set_deleter(Vector *pVector, VectorDeleter deleter) __attribute__((nonnull (1, 2)));
void vector_enlarge(Vector *pVector) __attribute__((nonnull (1)));

#endif //CMOCKER_VECTOR_H

{'fraction_non_alphanumeric': 0.12513089005235603, 'fraction_numerical': 0.018848167539267015, 'mean_word_length': 5.56701030927835, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1229906', 'n_tokens_mistral': 734, 'n_tokens_neox': 707, 'n_words': 160}