<commit_before>#include <stdio.h>
#include <assert.h>
#include <limits.h>
#include <float.h>
#include <math.h>
#include <errno.h>
/*test github from browser*/
#include "coco.h"

#include "coco_utilities.c"
#include "coco_problem.c"
#include "coco_strdup.c"

static int bbob2009_logger_verbosity = 3; /* TODO: make this an option the user can modify */
static int bbob2009_raisedOptValWarning;
static int suite_bbob2009_get_function_id(const coco_problem_t *problem);
static int suite_bbob2009_get_instance_id(const coco_problem_t *problem);

static const size_t bbob2009_nbpts_nbevals = 20;
static const size_t bbob2009_nbpts_fval = 5;
static size_t bbob2009_current_dim = 0;
static long bbob2009_current_funId = 0;
static int bbob2009_infoFile_firstInstance = 0;
char bbob2009_infoFile_firstInstance_char[3];
/* a possible solution: have a list of dims that are already in the file, if the ones we're about to log
 * is != bbob2009_current_dim and the funId is currend_funId, create a new .info file with as suffix the
 * number of the first instance */<commit_msg>Update logger_bbob2009.c<commit_after>#include <stdio.h>
#include <assert.h>
#include <limits.h>
#include <float.h>
#include <math.h>
#include <errno.h>

#include "coco.h"

#include "coco_utilities.c"
#include "coco_problem.c"
#include "coco_strdup.c"

static int bbob2009_logger_verbosity = 3; /* TODO: make this an option the user can modify */
static int bbob2009_raisedOptValWarning;
static int suite_bbob2009_get_function_id(const coco_problem_t *problem);
static int suite_bbob2009_get_instance_id(const coco_problem_t *problem);

static const size_t bbob2009_nbpts_nbevals = 20;
static const size_t bbob2009_nbpts_fval = 5;
static size_t bbob2009_current_dim = 0;
static long bbob2009_current_funId = 0;
static int bbob2009_infoFile_firstInstance = 0;
char bbob2009_infoFile_firstInstance_char[3];
/* a possible solution: have a list of dims that are already in the file, if the ones we're about to log
 * is != bbob2009_current_dim and the funId is currend_funId, create a new .info file with as suffix the
 * number of the first instance */
{'fraction_non_alphanumeric': 0.08274231678486997, 'fraction_numerical': 0.05106382978723404, 'mean_word_length': 6.100671140939597, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '3854094', 'n_tokens_mistral': 842, 'n_tokens_neox': 723, 'n_words': 229}