<commit_before>#include "stdafx.h"
#include "Zimmer.h"
#include "chockNgt.h"
#include "Configuration.h"

Zimmer::Zimmer()
{
    ToBeginning();
}


Zimmer::~Zimmer()
{
}

void Zimmer::ToBeginning(void) {
    draw_kenchiro_ = false;
    kenchiro_id_ = 0;
    kenchiro_start_time_ = last_call_time_;
    has_light_ = false;
    has_white_fade_ = false;
    brightness_ = 0.0f;
    to_white_ = 0.0f;
    scene_ = MAERZ_11;
}

void Zimmer::StartScene(ZIMMER_SCENE scene) {
    PlaySound("textures/silence.wav", NULL, SND_ASYNC);
    scene_ = scene;
    EndKenchiro();
    switch(scene_) {
    case MAERZ_11:
        has_light_ = true;
        has_white_fade_ = false;
        brightness_ = 0.0f;
        to_white_ = 0.0f;
        break;
    default:
        has_light_ = true;
        has_white_fade_ = false;
        brightness_ = 1.0f;
        to_white_ = 1.0f;
        break;
    }
}

void Zimmer::EndScene(void) {
    PlaySound("textures/silence.wav", NULL, SND_ASYNC);
    has_light_ = true;
    has_white_fade_ = true;
    brightness_ = 1.0f;
    to_white_ = 0.0f;
}

int Zimmer::Draw(float time) {
    char error_string[MAX_ERROR_LENGTH + 1];
    GLuint tex_id;
    const char *texture_name;

    float kFrameSkipTimes[6] = {6.0f, 7.0f, 5.5f, 14.0f, 7.0f, 6.5f};
    float kFrameOpenTimes[6] = {1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f};
    float kFrameCloseTimes[6] = {152.5f, 100.5f, 305.0f, 85.0f, 73.0f, 313.0f};
    const char *kKenchiroVideos[6] = {
        "S1_wachauf02_hell.wmv",
        "S20_Kitchomu_hell.wmv",
        "S23_Picasso03_hell.wmv",
        "S27_schwimmen03_hell.wmv",
        "S28_wasma02_hell.wmv",
        "S29_Kobe02_hell.wmv"
    };
    const char *kRoomTextures[] = {
        "zuhause_room_maerz_11.png",  // MAERZ_11 = 0,
        "zuhause_room_april_09.png",  // ARPIL_09,
        "zuhause_room_april_16.png",  // APRIL_16,
        "zuhause_room_april_16.png",  // APRIL_17,
        "zuhause_room_april_21.png",  // APRIL_21,
        "zuhause_room_mai_10.png",  // MAI_10,
        "zuhause_room_juni_01.png",  // JUNI_01,
        "zuhause_room_juni_04.png",  // JUNI_04,
        "zuhause_room_juni_05.png",  // JUNI_05,
        "zuhause_room_juni_12.png",  // JUNI_12,
        "zuhause_room_juli_29.png",  // JULI_29,
        "zuhause_room_august_15.png",  // AUGUST_15,
        "zuhause_room_maerz_11.png",  // MARZ_11_END,
        "zuhause_room_mai_10.png",  // UNKNOWN
        "proberaum_room.png",  // PROBERAUM
    };
    const char *kRoomNoClockTextures[] = {
        "zuhause_room_maerz_11_noclock.png",  // MAERZ_11 = 0,
        "zuhause_room_maerz_11_noclock.png",  // ARPIL_09,
        "zuhause_room_maerz_11_noclock.png",  // APRIL_16,
        "zuhause_room_maerz_11_noclock.png",  // APRIL_17,
        "zuhause_room_maerz_11_noclock.png",  // APRIL_21,
        "zuhause_room_mai_10_noclock.png",  // MAI_10,
        "zuhause_room_mai_10_noclock.png",  // JUNI_01,
        "zuhause_room_mai_10_noclock.png",  // JUNI_04,
        "zuhause_room_mai_10_noclock.png",  // JUNI_05,
        "zuhause_room_mai_10_noclock.png",  // JUNI_12,
        "zuhause_room_juli_29_noclock.png",  // JULI_29,
        "zuhause_room_august_15_noclock.png",  // AUGUST_15,
        "zuhause_room_maerz_11_noclock.png",  // MARZ_11_END,
        "zuhause_room_mai_10_noclock.png",  // UNKNOWN
        "proberaum_room_noclock.png",  // PROBERAUM
    };
    const char *kRoomDrawingsTextures[] = {
        "zuhause_drawings_maerz_night.png",  // MAERZ_11 = 0,
        "zuhause_drawings_april_night.png",  // ARPIL_09,
        "zuhause_drawings_april.png",  // APRIL_16,
        "zuhause_drawings_april_night.png",  // APRIL_17,
        "zuhause_drawings_april.png",  // APRIL_21,
        "zuhause_drawings_mai_night.png",  // MAI_10,
        "zuhause_drawings_juni.png",  // JUNI_01,
        "zuhause_drawings_juni.png",  // JUNI_04,
        "zuhause_drawings_juni.png",  // JUNI_05,
        "zuhause_drawings_juni_night.png",  // JUNI_12,
        "zuhause_drawings_juli_night.png",  // JULI_29,
        "zuhause_drawings_august_night.png",  // AUGUST_15,
        "zuhause_drawings_maerz_night.png",  // MARZ_11_END,
        "zuhause_drawings_mai.png",  // UNKNOWN
        "zuhause_drawings_mai.png",  // PROBERAUM
    };
    const char *kRoomLightings[] = {
        "zuhause_lighting_night.png",  // MAERZ_11 = 0,
        "zuhause_lighting_night.png",  // ARPIL_09,
        "zuhause_lighting_day.png",  // APRIL_16,
        "zuhause_lighting_night.png",  // APRIL_17,
        "zuhause_lighting_day.png",  // APRIL_21,
        "zuhause_lighting_night.png",  // MAI_10,
        "zuhause_lighting_day.png",  // JUNI_01,
        "zuhause_lighting_day.png",  // JUNI_04,
        "zuhause_lighting_day.png",  // JUNI_05,
        "zuhause_lighting_day.png",  // JUNI_12,
        "zuhause_lighting_night.png",  // JULI_29,
        "zuhause_lighting_night.png",  // AUGUST_15,
        "zuhause_lighting_night.png",  // MARZ_11_END,
        "zuhause_lighting_night.png",  // UNKNOWN
        "proberaum_lighting.png",  // PROBERAUM
    };
    const char *kRoomClocks[] = {
        "zuhause_clock_maerz_11.png",  // MAERZ_11 = 0,
        "zuhause_clock_maerz_11.png",  // ARPIL_09,
        "zuhause_clock_maerz_11.png",  // APRIL_16,
        "zuhause_clock_maerz_11.png",  // APRIL_17,
        "zuhause_clock_maerz_11.png",  // APRIL_21,
        "zuhause_clock_mai_10.png",  // MAI_10,
        "zuhause_clock_mai_10.png",  // JUNI_01,
        "zuhause_clock_mai_10.png",  // JUNI_04,
        "zuhause_clock_mai_10.png",  // JUNI_05,
        "zuhause_clock_mai_10.png",  // JUNI_12,
        "zuhause_clock_juli_29.png",  // JULI_29,
        "zuhause_clock_august_15.png",  // AUGUST_15,
        "zuhause_clock_maerz_11.png",  // MARZ_11_END,
        "zuhause_clock_mai_10.png",  // UNKNOWN
        "zuhause_clock_maerz_11.png",  // PROBERAUM
    };
<commit_msg>Zimmer September 2011<commit_after>#include "stdafx.h"
#include "Zimmer.h"
#include "chockNgt.h"
#include "Configuration.h"

Zimmer::Zimmer()
{
    ToBeginning();
}


Zimmer::~Zimmer()
{
}

void Zimmer::ToBeginning(void) {
    draw_kenchiro_ = false;
    kenchiro_id_ = 0;
    kenchiro_start_time_ = last_call_time_;
    has_light_ = false;
    has_white_fade_ = false;
    brightness_ = 0.0f;
    to_white_ = 0.0f;
    scene_ = MAERZ_11;
}

void Zimmer::StartScene(ZIMMER_SCENE scene) {
    PlaySound("textures/silence.wav", NULL, SND_ASYNC);
    scene_ = scene;
    EndKenchiro();
    switch(scene_) {
    case MAERZ_11:
        has_light_ = true;
        has_white_fade_ = false;
        brightness_ = 0.0f;
        to_white_ = 0.0f;
        break;
    default:
        has_light_ = true;
        has_white_fade_ = false;
        brightness_ = 1.0f;
        to_white_ = 1.0f;
        break;
    }
}

void Zimmer::EndScene(void) {
    PlaySound("textures/silence.wav", NULL, SND_ASYNC);
    has_light_ = true;
    has_white_fade_ = true;
    brightness_ = 1.0f;
    to_white_ = 0.0f;
}

int Zimmer::Draw(float time) {
    char error_string[MAX_ERROR_LENGTH + 1];
    GLuint tex_id;
    const char *texture_name;

    float kFrameSkipTimes[6] = {6.0f, 7.0f, 5.5f, 14.0f, 7.0f, 6.5f};
    float kFrameOpenTimes[6] = {1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f};
    float kFrameCloseTimes[6] = {152.5f, 100.5f, 305.0f, 85.0f, 73.0f, 313.0f};
    const char *kKenchiroVideos[6] = {
        "S1_wachauf02_hell.wmv",
        "S20_Kitchomu_hell.wmv",
        "S23_Picasso03_hell.wmv",
        "S27_schwimmen03_hell.wmv",
        "S28_wasma02_hell.wmv",
        "S29_Kobe02_hell.wmv"
    };
    const char *kRoomTextures[] = {
        "zuhause_room_maerz_11.png",  // MAERZ_11 = 0,
        "zuhause_room_april_09.png",  // ARPIL_09,
        "zuhause_room_april_16.png",  // APRIL_16,
        "zuhause_room_april_16.png",  // APRIL_17,
        "zuhause_room_april_21.png",  // APRIL_21,
        "zuhause_room_mai_10.png",  // MAI_10,
        "zuhause_room_juni_01.png",  // JUNI_01,
        "zuhause_room_juni_04.png",  // JUNI_04,
        "zuhause_room_juni_05.png",  // JUNI_05,
        "zuhause_room_juni_12.png",  // JUNI_12,
        "zuhause_room_juli_29.png",  // JULI_29,
        "zuhause_room_august_15.png",  // AUGUST_15,
        "zuhause_room_maerz_11.png",  // MARZ_11_END,
        "zuhause_room_september_14.png",  // UNKNOWN
        "proberaum_room.png",  // PROBERAUM
    };
    const char *kRoomNoClockTextures[] = {
        "zuhause_room_maerz_11_noclock.png",  // MAERZ_11 = 0,
        "zuhause_room_maerz_11_noclock.png",  // ARPIL_09,
        "zuhause_room_maerz_11_noclock.png",  // APRIL_16,
        "zuhause_room_maerz_11_noclock.png",  // APRIL_17,
        "zuhause_room_maerz_11_noclock.png",  // APRIL_21,
        "zuhause_room_mai_10_noclock.png",  // MAI_10,
        "zuhause_room_mai_10_noclock.png",  // JUNI_01,
        "zuhause_room_mai_10_noclock.png",  // JUNI_04,
        "zuhause_room_mai_10_noclock.png",  // JUNI_05,
        "zuhause_room_mai_10_noclock.png",  // JUNI_12,
        "zuhause_room_juli_29_noclock.png",  // JULI_29,
        "zuhause_room_august_15_noclock.png",  // AUGUST_15,
        "zuhause_room_maerz_11_noclock.png",  // MARZ_11_END,
        "zuhause_room_september_14_noclock.png",  // UNKNOWN
        "proberaum_room_noclock.png",  // PROBERAUM
    };
    const char *kRoomDrawingsTextures[] = {
        "zuhause_drawings_maerz_night.png",  // MAERZ_11 = 0,
        "zuhause_drawings_april_night.png",  // ARPIL_09,
        "zuhause_drawings_april.png",  // APRIL_16,
        "zuhause_drawings_april_night.png",  // APRIL_17,
        "zuhause_drawings_april.png",  // APRIL_21,
        "zuhause_drawings_mai_night.png",  // MAI_10,
        "zuhause_drawings_juni.png",  // JUNI_01,
        "zuhause_drawings_juni.png",  // JUNI_04,
        "zuhause_drawings_juni.png",  // JUNI_05,
        "zuhause_drawings_juni_night.png",  // JUNI_12,
        "zuhause_drawings_juli_night.png",  // JULI_29,
        "zuhause_drawings_august_night.png",  // AUGUST_15,
        "zuhause_drawings_maerz_night.png",  // MARZ_11_END,
        "zuhause_drawings_september_night.png",  // UNKNOWN
        "zuhause_drawings_mai.png",  // PROBERAUM
    };
    const char *kRoomLightings[] = {
        "zuhause_lighting_night.png",  // MAERZ_11 = 0,
        "zuhause_lighting_night.png",  // ARPIL_09,
        "zuhause_lighting_day.png",  // APRIL_16,
        "zuhause_lighting_night.png",  // APRIL_17,
        "zuhause_lighting_day.png",  // APRIL_21,
        "zuhause_lighting_night.png",  // MAI_10,
        "zuhause_lighting_day.png",  // JUNI_01,
        "zuhause_lighting_day.png",  // JUNI_04,
        "zuhause_lighting_day.png",  // JUNI_05,
        "zuhause_lighting_day.png",  // JUNI_12,
        "zuhause_lighting_night.png",  // JULI_29,
        "zuhause_lighting_night.png",  // AUGUST_15,
        "zuhause_lighting_night.png",  // MARZ_11_END,
        "zuhause_lighting_night.png",  // UNKNOWN
        "proberaum_lighting.png",  // PROBERAUM
    };
    const char *kRoomClocks[] = {
        "zuhause_clock_maerz_11.png",  // MAERZ_11 = 0,
        "zuhause_clock_maerz_11.png",  // ARPIL_09,
        "zuhause_clock_maerz_11.png",  // APRIL_16,
        "zuhause_clock_maerz_11.png",  // APRIL_17,
        "zuhause_clock_maerz_11.png",  // APRIL_21,
        "zuhause_clock_mai_10.png",  // MAI_10,
        "zuhause_clock_mai_10.png",  // JUNI_01,
        "zuhause_clock_mai_10.png",  // JUNI_04,
        "zuhause_clock_mai_10.png",  // JUNI_05,
        "zuhause_clock_mai_10.png",  // JUNI_12,
        "zuhause_clock_juli_29.png",  // JULI_29,
        "zuhause_clock_august_15.png",  // AUGUST_15,
        "zuhause_clock_maerz_11.png",  // MARZ_11_END,
        "zuhause_clock_september_14.png",  // UNKNOWN
        "zuhause_clock_maerz_11.png",  // PROBERAUM
    };

{'fraction_non_alphanumeric': 0.1326756251063106, 'fraction_numerical': 0.053920734818846745, 'mean_word_length': 2.549351041352249, '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': '6603043', 'n_tokens_mistral': 5584, 'n_tokens_neox': 5229, 'n_words': 576}