<commit_before>#include <stdlib.h>
#include <string.h>
#include <math.h>

#include "accel.h"
#include "moving_avg_ticker.h"

typedef struct {
    bool is_recording;
    bool is_recorded;

    int recording_size;
    int **normalized_recording;

    moving_avg_values **moving_avg_values;
    int *affinities;
} accel_gesture;

typedef struct internalAccelState {
    int window_size;
    int num_gestures_saved;

    accel_gesture **gestures;
} internal_accel_state;

#define PRECONDITION_NOT_NULL(foo) \
    if (foo == NULL) { return ACCEL_PARAM_ERROR; }

#define PRECONDITION_VALID_STATE(state) \<commit_msg>Trying to get travis to compile my stuff. Here we go again.<commit_after>#include <stdlib.h>
#include <string.h>
#include <math.h>

#include "accel.h"
#include "moving_avg_ticker.h"

#ifndef INT16_MAX
#define INT16_MAX 0x7fff
#endif

typedef struct {
    bool is_recording;
    bool is_recorded;

    int recording_size;
    int **normalized_recording;

    moving_avg_values **moving_avg_values;
    int *affinities;
} accel_gesture;

typedef struct internalAccelState {
    int window_size;
    int num_gestures_saved;

    accel_gesture **gestures;
} internal_accel_state;

#define PRECONDITION_NOT_NULL(foo) \
    if (foo == NULL) { return ACCEL_PARAM_ERROR; }

#define PRECONDITION_VALID_STATE(state) \
{'fraction_non_alphanumeric': 0.09491268033409264, 'fraction_numerical': 0.004555808656036446, 'mean_word_length': 4.608510638297872, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '2164529', 'n_tokens_mistral': 498, 'n_tokens_neox': 461, 'n_words': 105}