<commit_before>#ifndef ARGPARSE_TESTS_COMMON_H
#define ARGPARSE_TESTS_COMMON_H

#include <stdlib.h>
#include <stdarg.h>
#include <setjmp.h>
#define UNIT_TESTING 1
#include <cmocka.h>

#include "argparse.h"

/** Setup function storing pointer to args struct in state */
int common_setup(void **state);
/** Teardown function freeing args struct pointed to by state */
int common_teardown(void **state);

/** Wrapper to create options */
option *common_option_wrapper(
        const char *shopt,
        const char *lopt,
        const char *descr,
        const char *accept_require
        );


/** "-c", "--create", "creation" */<commit_msg>Include logger.h for tests<commit_after>#ifndef ARGPARSE_TESTS_COMMON_H
#define ARGPARSE_TESTS_COMMON_H

#include <stdlib.h>
#include <stdarg.h>
#include <setjmp.h>
#define UNIT_TESTING 1
#include <cmocka.h>

#include "argparse.h"
#include "logger.h"

/** Setup function storing pointer to args struct in state */
int common_setup(void **state);
/** Teardown function freeing args struct pointed to by state */
int common_teardown(void **state);

/** Wrapper to create options */
option *common_option_wrapper(
        const char *shopt,
        const char *lopt,
        const char *descr,
        const char *accept_require
        );


/** "-c", "--create", "creation" */
{'fraction_non_alphanumeric': 0.12243346007604562, 'fraction_numerical': 0.001520912547528517, 'mean_word_length': 3.838235294117647, 'pattern_counts': {'":': 0, '<': 11, '<?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': '3896750', 'n_tokens_mistral': 444, 'n_tokens_neox': 433, 'n_words': 129}