<commit_before>
#include <globjects/base/baselogging.h>

#include <gloperate/viewer/ViewerContext.h>
#include <gloperate/viewer/GLContextUtils.h>
#include <gloperate/stages/demos/DemoStage.h>

#include <gloperate-glfw/viewer/Application.h>
#include <gloperate-glfw/viewer/RenderWindow.h>
#include <gloperate-glfw/viewer/GLContext.h>

#include <gloperate-ffmpeg/VideoTool.h>


using namespace gloperate;
using namespace gloperate_glfw;
using namespace gloperate_ffmpeg;


int main(int argc, char * argv[])
{
    // Create viewer context
    ViewerContext viewerContext;

    // Initialize GLFW
    Application::init();
    Application app(&viewerContext, argc, argv);

    // Create render stage
    DemoStage * renderStage = new DemoStage(&viewerContext);

    // Create window
    RenderWindow window(&viewerContext);
    window.setRenderStage(renderStage);<commit_msg>Fix segfault in videotool example.<commit_after>
#include <globjects/base/baselogging.h>

#include <gloperate/viewer/ViewerContext.h>
#include <gloperate/viewer/GLContextUtils.h>
#include <gloperate/stages/demos/DemoStage.h>

#include <gloperate-glfw/viewer/Application.h>
#include <gloperate-glfw/viewer/RenderWindow.h>
#include <gloperate-glfw/viewer/GLContext.h>

#include <gloperate-ffmpeg/VideoTool.h>


using namespace gloperate;
using namespace gloperate_glfw;
using namespace gloperate_ffmpeg;


int main(int argc, char * argv[])
{
    // Create viewer context
    ViewerContext viewerContext;

    // Initialize GLFW
    Application::init();
    Application app(&viewerContext, argc, argv);

    // Create render stage
    DemoStage * renderStage = new DemoStage(&viewerContext);

    viewerContext.scriptEnvironment()->setupScripting();

    // Create window
    RenderWindow window(&viewerContext);
    window.setRenderStage(renderStage);
{'fraction_non_alphanumeric': 0.11379879054425508, 'fraction_numerical': 0.0, 'mean_word_length': 4.833333333333333, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 20, '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': '5826279', 'n_tokens_mistral': 609, 'n_tokens_neox': 587, 'n_words': 114}