<commit_before>package main

import (
    glfw "github.com/go-gl/glfw3"
    gl "github.com/go-gl/gl"
	glhelpers "github.com/mmchugh/glhelpers"
)

func main() {
    if !glfw.Init() {
        panic("Can't init glfw!")
    }
    defer glfw.Terminate()

    window, err := glfw.CreateWindow(400, 400, "go-gl 1", nil, nil)
    if err != nil {
        panic(err)
    }

	window.MakeContextCurrent()

    gl.Init()

	vertices := []float32 { 0.0, 0.5, 0.5, -0.5, -0.5, -0.5 }
	vertex_buffer := gl.GenBuffer()
	vertex_buffer.Bind(gl.ARRAY_BUFFER)
	gl.BufferData(gl.ARRAY_BUFFER, len(vertices) * 4, vertices, gl.STATIC_DRAW)

    var program gl.Program = glhelpers.CreateProgramFromPaths("2d.vshader", "white.fshader")
	program.Use()
	position := program.GetAttribLocation("position")
	position.EnableArray()
	position.AttribPointer(2, gl.FLOAT, false, 0, nil)

    for !window.ShouldClose() {
        gl.DrawArrays(gl.TRIANGLES, 0, 3)
        window.SwapBuffers()
        glfw.PollEvents()
    }
}<commit_msg>go fmt<commit_after>package main

import (
	gl "github.com/go-gl/gl"
	glfw "github.com/go-gl/glfw3"
	glhelpers "github.com/mmchugh/glhelpers"
)

func main() {
	if !glfw.Init() {
		panic("Can't init glfw!")
	}
	defer glfw.Terminate()

	window, err := glfw.CreateWindow(400, 400, "go-gl 1", nil, nil)
	if err != nil {
		panic(err)
	}

	window.MakeContextCurrent()

	gl.Init()

	vertices := []float32{0.0, 0.5, 0.5, -0.5, -0.5, -0.5}
	vertex_buffer := gl.GenBuffer()
	vertex_buffer.Bind(gl.ARRAY_BUFFER)
	gl.BufferData(gl.ARRAY_BUFFER, len(vertices)*4, vertices, gl.STATIC_DRAW)

	var program gl.Program = glhelpers.CreateProgramFromPaths("2d.vshader", "white.fshader")
	program.Use()
	position := program.GetAttribLocation("position")
	position.EnableArray()
	position.AttribPointer(2, gl.FLOAT, false, 0, nil)

	for !window.ShouldClose() {
		gl.DrawArrays(gl.TRIANGLES, 0, 3)
		window.SwapBuffers()
		glfw.PollEvents()
	}
}
{'fraction_non_alphanumeric': 0.16337148803329865, 'fraction_numerical': 0.029136316337148804, 'mean_word_length': 3.7017114914425426, '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': '1144581', 'n_tokens_mistral': 793, 'n_tokens_neox': 759, 'n_words': 137}