<commit_before>#include <GL/glew.h>
#include "OpenGLRenderer.hpp"


OpenGLRenderer::OpenGLRenderer(Window & window) {
    // Setup glfw window.
    window.setWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
    window.setWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);
    window.setWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
    window.setWindowHint(GLFW_RESIZABLE, GL_FALSE);
    std::string windowTitle = "OpenGL";
    window.createWindow(windowTitle);

    // Setup GLEW
    glewExperimental = true;
    if(glewInit() != GLEW_OK){

    }

    // Setup viewport
    int width, height;
    width = window.width;
    height = window.height;

    glfwGetFramebufferSize(window.window, &width, &height);

    glViewport(0, 0, width, height);
}

OpenGLRenderer::~OpenGLRenderer() {<commit_msg>Removed unecessary assignment in OpenGL class.<commit_after>#include <GL/glew.h>
#include "OpenGLRenderer.hpp"


OpenGLRenderer::OpenGLRenderer(Window & window) {
    // Setup glfw window.
    window.setWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
    window.setWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);
    window.setWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
    window.setWindowHint(GLFW_RESIZABLE, GL_FALSE);
    std::string windowTitle = "OpenGL";
    window.createWindow(windowTitle);

    // Setup GLEW
    glewExperimental = true;
    if(glewInit() != GLEW_OK){

    }

    // Setup viewport
    int width, height;

    glfwGetFramebufferSize(window.window, &width, &height);

    glViewport(0, 0, width, height);
}

OpenGLRenderer::~OpenGLRenderer() {
{'fraction_non_alphanumeric': 0.11648631444939529, 'fraction_numerical': 0.005092297899427116, 'mean_word_length': 4.402061855670103, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4985651', 'n_tokens_mistral': 554, 'n_tokens_neox': 537, 'n_words': 89}