<commit_before>#include "wii.hh"

using namespace std;

//initialize static variables
const float Wii::SMOOTH_FACTOR_GYRO = 0.90;
const float Wii::SMOOTH_FACTOR_ACCEL = 0.20;

glm::vec3 Wii::movement = { 0, 0, 0 };
glm::vec3 Wii::acceleration = { 0, 0, 0 };
float Wii::yaw = 0;
float Wii::roll = 0;
float Wii::pitch = 0;
int Wii::LED_MAP[4] = { CWiimote::LED_1, CWiimote::LED_2, CWiimote::LED_3, CWiimote::LED_4 };
bool Wii::reloadWiimotes = false;
CWii Wii::wii;
CWiimote* Wii::wiimote = NULL;

double Wii::timeLast = 0;
double Wii::timePassed = 0;

Wii::Wii(GLFWwindow* window, ACGL::HardwareSupport::SimpleRiftController *simpleRiftController, World *world) :
        Input(window, simpleRiftController, world) {

    //Find the wiimote. Search for up to five seconds.
    message() << "Searching for wiimote... Turn it on!" << endl;
    int numFound = wii.LoadRegisteredWiimotes();<commit_msg>wii change<commit_after>#include "wii.hh"

using namespace std;

//initialize static variables
const float Wii::SMOOTH_FACTOR_GYRO = 0.90;
const float Wii::SMOOTH_FACTOR_ACCEL = 0.20;

glm::vec3 Wii::movement = { 0, 0, 0 };
glm::vec3 Wii::acceleration = { 0, 0, 0 };
float Wii::yaw = 0;
float Wii::roll = 0;
float Wii::pitch = 0;
int Wii::LED_MAP[4] = { CWiimote::LED_1, CWiimote::LED_2, CWiimote::LED_3, CWiimote::LED_4 };
bool Wii::reloadWiimotes = false;
CWii Wii::wii;
CWiimote* Wii::wiimote = NULL;

double Wii::timeLast = 0;
double Wii::timePassed = 0;

Wii::Wii(GLFWwindow* window, ACGL::HardwareSupport::SimpleRiftController *simpleRiftController, World *world) :
        Input(window, simpleRiftController, world) {

    //Find the wiimote. Search for up to five seconds.
    message() << "Searching for wiimote... Turn it on!" << endl;
    int numFound = wii.Find(5);//LoadRegisteredWiimotes();
{'fraction_non_alphanumeric': 0.14936146585230428, 'fraction_numerical': 0.027207107162687396, 'mean_word_length': 5.129251700680272, 'pattern_counts': {'":': 0, '<': 11, '<?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': '2922471', 'n_tokens_mistral': 762, 'n_tokens_neox': 673, 'n_words': 168}