<commit_before>#include "motion_leap.h"
#include "motion_code.h"
#include "error_code.h"

MotionLeap::MotionLeap(){
    left_handedness = false;
    i_box = controller.frame().interactionBox();
    hand = controller.frame().hands().rightmost();
}

int getControllerType(){
    return LEAP_MOTION;
}

double MotionLeap::getNormalizedX(){
    return i_box.normalizePoint(hand.stabilizedPalmPosition()).x;
}

double MotionLeap::getNormalizedY(){
    return i_box.normalizePoint(hand.stabilizedPalmPosition()).y;
}

double MotionLeap::getNormalizedZ(){
    return i_box.normalizePoint(hand.stabilizedPalmPosition()).z;
}

int MotionLeap::getGestureSwipe()
{
    Leap::Gesture gesture = controller.frame().gestures()[0];
    if(gesture.type() == Leap::Gesture::TYPE_SWIPE) {
        return 1;
    }else{
        return 0;
    }<commit_msg>fix typo in function implementation<commit_after>#include "motion_leap.h"
#include "motion_code.h"
#include "error_code.h"

MotionLeap::MotionLeap(){
    left_handedness = false;
    i_box = controller.frame().interactionBox();
    hand = controller.frame().hands().rightmost();
}

int MotionLeap::getControllerType(){
    return LEAP_MOTION;
}

double MotionLeap::getNormalizedX(){
    return i_box.normalizePoint(hand.stabilizedPalmPosition()).x;
}

double MotionLeap::getNormalizedY(){
    return i_box.normalizePoint(hand.stabilizedPalmPosition()).y;
}

double MotionLeap::getNormalizedZ(){
    return i_box.normalizePoint(hand.stabilizedPalmPosition()).z;
}

int MotionLeap::getGestureSwipe()
{
    Leap::Gesture gesture = controller.frame().gestures()[0];
    if(gesture.type() == Leap::Gesture::TYPE_SWIPE) {
        return 1;
    }else{
        return 0;
    }
{'fraction_non_alphanumeric': 0.14571092831962398, 'fraction_numerical': 0.0035252643948296123, 'mean_word_length': 5.017667844522968, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4284501', 'n_tokens_mistral': 613, 'n_tokens_neox': 580, 'n_words': 86}