<commit_before>/* This file is part of the YAZ toolkit.
 * Copyright (C) 1995-2008 Index Data
 * See the file LICENSE for details.
 */

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <sys/time.h>

#include <yaz/xmalloc.h>
#include <yaz/options.h>
#include <yaz/zoom.h>


/* naming events */
static char* zoom_events[10];

/* re-sorting event numbers to progress numbers */
static int zoom_progress[10];

/* commando line parameters */
static struct parameters_t { 
    char host[1024];
    char query[1024];
    int progress[4096];
    int concurrent;
    int repeat;
    int timeout;
    char proxy[1024];
    int piggypack;
    int gnuplot;
} parameters;

struct  event_line_t 
{<commit_msg>Use ZOOM_EVENT_MAX for size of ZOOM event array<commit_after>/* This file is part of the YAZ toolkit.
 * Copyright (C) 1995-2008 Index Data
 * See the file LICENSE for details.
 */

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <sys/time.h>

#include <yaz/xmalloc.h>
#include <yaz/options.h>
#include <yaz/zoom.h>


/* naming events */
static char* zoom_events[ZOOM_EVENT_MAX+1];

/* re-sorting event numbers to progress numbers */
static int zoom_progress[ZOOM_EVENT_MAX+1];

/* commando line parameters */
static struct parameters_t { 
    char host[1024];
    char query[1024];
    int progress[4096];
    int concurrent;
    int repeat;
    int timeout;
    char proxy[1024];
    int piggypack;
    int gnuplot;
} parameters;

struct  event_line_t 
{
{'fraction_non_alphanumeric': 0.12041884816753927, 'fraction_numerical': 0.03534031413612566, 'mean_word_length': 3.6333333333333333, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, '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': '6473362', 'n_tokens_mistral': 582, 'n_tokens_neox': 525, 'n_words': 161}