<commit_before>#include "trianglewindow.h"
#include <QtGui/QMatrix4x4>
#include <QtGui/QScreen>
#include <QtCore/qmath.h>
#include <iostream>

using namespace std;


const GLfloat vertices[] = {
    0.0f, 0.707f,
    -0.5f, -0.5f,
    0.5f, -0.5f
};

static const char *vertexShaderSource =
        "#version 130\n"
        "in vec4 posAttr;\n"
        "void main() {\n"
        "   gl_Position = posAttr;\n"
        "}\n";

static const char *fragmentShaderSource =
        "#version 130\n"
        "out vec4 outputColor;\n"
        "void main() {\n"
        "   outputColor = vec4(1.0f, 1.0f, 1.0f, 1.0f);\n"
        "}\n";

TriangleWindow::TriangleWindow()
    : m_program(0) {}

GLuint TriangleWindow::loadShader(GLenum type, const char *source)
{
    GLuint shader = glCreateShader(type);
    glShaderSource(shader, 1, &source, 0);
    glCompileShader(shader);
    return shader;<commit_msg>Triangle Colour has been changed to red colour<commit_after>#include "trianglewindow.h"
#include <QtGui/QMatrix4x4>
#include <QtGui/QScreen>
#include <QtCore/qmath.h>
#include <iostream>

using namespace std;


const GLfloat vertices[] = {
    0.0f, 0.707f,
    -0.5f, -0.5f,
    0.5f, -0.5f
};

static const char *vertexShaderSource =
        "#version 130\n"
        "in vec4 posAttr;\n"
        "void main() {\n"
        "   gl_Position = posAttr;\n"
        "}\n";

static const char *fragmentShaderSource =
        "#version 130\n"
        "out vec4 outputColor;\n"
        "void main() {\n"
        "   outputColor = vec4(1.0f, 0.0f, 0.0f, 1.0f);\n"
        "}\n";

TriangleWindow::TriangleWindow()
    : m_program(0) {}

GLuint TriangleWindow::loadShader(GLenum type, const char *source)
{
    GLuint shader = glCreateShader(type);
    glShaderSource(shader, 1, &source, 0);
    glCompileShader(shader);
    return shader;
{'fraction_non_alphanumeric': 0.14904109589041095, 'fraction_numerical': 0.03945205479452055, 'mean_word_length': 2.8041666666666667, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '899158', 'n_tokens_mistral': 706, 'n_tokens_neox': 672, 'n_words': 152}