<commit_before>package glimmer

import (
	"github.com/go-gl/gl/v3.3-core/gl"
	"github.com/go-gl/glfw/v3.1/glfw"
)

type Profile interface {
	InitialSize() (width int, height int)
	InitialTitle() string
	PreCreation()
	PostCreation(w *glfw.Window)
	EventFocus(w *glfw.Window, focused bool)
	EventResize(w *glfw.Window, width int, height int)
	EventMousePos(w *glfw.Window, x float64, y float64)
	EventMouseKey(w *glfw.Window, button glfw.MouseButton, action glfw.Action, mods glfw.ModifierKey)
	EventKey(w *glfw.Window, key glfw.Key, scancode int, action glfw.Action, mods glfw.ModifierKey)
	EventRune(w *glfw.Window, char rune)
	Draw(w *glfw.Window)<commit_msg>lock os thread in library<commit_after>package glimmer

import (
	"runtime"

	"github.com/go-gl/gl/v3.3-core/gl"
	"github.com/go-gl/glfw/v3.1/glfw"
)

func init() {
	runtime.LockOSThread()
}

type Profile interface {
	InitialSize() (width int, height int)
	InitialTitle() string
	PreCreation()
	PostCreation(w *glfw.Window)
	EventFocus(w *glfw.Window, focused bool)
	EventResize(w *glfw.Window, width int, height int)
	EventMousePos(w *glfw.Window, x float64, y float64)
	EventMouseKey(w *glfw.Window, button glfw.MouseButton, action glfw.Action, mods glfw.ModifierKey)
	EventKey(w *glfw.Window, key glfw.Key, scancode int, action glfw.Action, mods glfw.ModifierKey)
	EventRune(w *glfw.Window, char rune)
	Draw(w *glfw.Window)
{'fraction_non_alphanumeric': 0.12905551550108146, 'fraction_numerical': 0.011535688536409516, 'mean_word_length': 5.196428571428571, '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': '3647964', 'n_tokens_mistral': 542, 'n_tokens_neox': 540, 'n_words': 123}