<commit_before>/*******************************************************************************
FILE : test_unemap_hardware.c

LAST MODIFIED : 21 August 2003

DESCRIPTION :
For testing the unemap hardware software (client, server, standalone).
==============================================================================*/
#include <stddef.h>
#include <stdlib.h>
#include <stdio.h>
#include <ctype.h>
#include "general/debug.h"
#include "unemap/unemap_hardware.h"

/* fileno is not ANSI */
extern int fileno(FILE *);

/*
Module variables
----------------
*/
int number_of_scrolling_callbacks=0;

#if defined (UNIX)
struct Event_dispatcher *event_dispatcher;
#endif /* defined (UNIX) */

float *calibrating_channel_gains=(float *)NULL,
	*calibrating_channel_offsets=(float *)NULL;
int calibrating=0,*calibrating_channel_numbers=(int *)NULL,
	calibrating_number_of_channels;

/*
Module functions
----------------
*/
static void scrolling_callback(int number_of_channels,int *channel_numbers,
	int number_of_values_per_channel,short *values,void *user_data)
{
	int i,j;<commit_msg>No longer forcing ANSI so don't put the declaration here.<commit_after>/*******************************************************************************
FILE : test_unemap_hardware.c

LAST MODIFIED : 21 August 2003

DESCRIPTION :
For testing the unemap hardware software (client, server, standalone).
==============================================================================*/
#include <stddef.h>
#include <stdlib.h>
#include <stdio.h>
#include <ctype.h>
#include "general/debug.h"
#include "unemap/unemap_hardware.h"

/*
Module variables
----------------
*/
int number_of_scrolling_callbacks=0;

#if defined (UNIX)
struct Event_dispatcher *event_dispatcher;
#endif /* defined (UNIX) */

float *calibrating_channel_gains=(float *)NULL,
	*calibrating_channel_offsets=(float *)NULL;
int calibrating=0,*calibrating_channel_numbers=(int *)NULL,
	calibrating_number_of_channels;

/*
Module functions
----------------
*/
static void scrolling_callback(int number_of_channels,int *channel_numbers,
	int number_of_values_per_channel,short *values,void *user_data)
{
	int i,j;
{'fraction_non_alphanumeric': 0.2696420269642027, 'fraction_numerical': 0.007438400743840074, 'mean_word_length': 6.221476510067114, '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': '817024', 'n_tokens_mistral': 673, 'n_tokens_neox': 626, 'n_words': 145}