<commit_before>#include "measurement.h"
#include <phidget21.h>
#include <stdio.h>

static CPhidgetInterfaceKitHandle _ifKit;
static measurementConfig_t  _config;
static bool _currentReflectionState;
static const int HYSTERESIS = 100;

static void processReflectionSensor1102(int value){
    if (value < _config.reflectionMeterThreshold){
        /* we have reflection */
        if (_currentReflectionState == false){
            /* state change ! */
            _currentReflectionState = true;
            _config.onReflection();
        } else {
            if (_config.reflectionMeterThreshold + HYSTERESIS < value){
                _currentReflectionState = false;
            }
        }
        

    }
}


static int onSensorChanged(CPhidgetInterfaceKitHandle IFK, void *usrptr, int index, int value)

{
    if (index == _config.reflectionMeterPort){
        processReflectionSensor1102(value);
    }<commit_msg>Fix include<commit_after>#include "measurement.h"
#include <phidget21.h>
#include <stdio.h>
#include <string.h>

static CPhidgetInterfaceKitHandle _ifKit;
static measurementConfig_t  _config;
static bool _currentReflectionState;
static const int HYSTERESIS = 100;

static void processReflectionSensor1102(int value){
    if (value < _config.reflectionMeterThreshold){
        /* we have reflection */
        if (_currentReflectionState == false){
            /* state change ! */
            _currentReflectionState = true;
            _config.onReflection();
        } else {
            if (_config.reflectionMeterThreshold + HYSTERESIS < value){
                _currentReflectionState = false;
            }
        }
        

    }
}


static int onSensorChanged(CPhidgetInterfaceKitHandle IFK, void *usrptr, int index, int value)

{
    if (index == _config.reflectionMeterPort){
        processReflectionSensor1102(value);
    }
{'fraction_non_alphanumeric': 0.08728448275862069, 'fraction_numerical': 0.014008620689655173, 'mean_word_length': 2.860706860706861, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 8, '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': '5278718', 'n_tokens_mistral': 538, 'n_tokens_neox': 514, 'n_words': 121}