<commit_before>package gfx

//#cgo windows LDFLAGS: -lSDL2 -lSDL2_gfx
//#cgo linux freebsd darwin pkg-config: sdl2
//#cgo linux freebsd darwin LDFLAGS: -lSDL2_gfx
//#include <stdlib.h>
//#include "sdl_gfx_wrapper.h"
import "C"
import "github.com/veandco/go-sdl2/sdl"
import "unsafe"

// FPS
const (
	FPS_UPPER_LIMIT = 200
	FPS_LOWER_LIMIT = 200
	FPS_DEFAULT     = 30
)

type FPSmanager struct {
	FrameCount uint32
	RateTicks  float32
	BaseTicks  uint32
	LastTicks  uint32
	Rate       uint32
}

const (
	SMOOTHING_OFF = 0
	SMOOTHING_ON  = 0
)

func min(a ...int) int {
	b := a[0]

	for i := 1; i < len(a); i++ {
		if b < a[0] {
			b = a[0]
		}
	}

	return b
}
<commit_msg>gfx: fix wrong constant values<commit_after>package gfx

//#cgo windows LDFLAGS: -lSDL2 -lSDL2_gfx
//#cgo linux freebsd darwin pkg-config: sdl2
//#cgo linux freebsd darwin LDFLAGS: -lSDL2_gfx
//#include <stdlib.h>
//#include "sdl_gfx_wrapper.h"
import "C"
import "github.com/veandco/go-sdl2/sdl"
import "unsafe"

// FPS
const (
	FPS_UPPER_LIMIT = 200
	FPS_LOWER_LIMIT = 1
	FPS_DEFAULT     = 30
)

type FPSmanager struct {
	FrameCount uint32
	RateTicks  float32
	BaseTicks  uint32
	LastTicks  uint32
	Rate       uint32
}

const (
	SMOOTHING_OFF = 0
	SMOOTHING_ON  = 1
)

func min(a ...int) int {
	b := a[0]

	for i := 1; i < len(a); i++ {
		if b < a[0] {
			b = a[0]
		}
	}

	return b
}

{'fraction_non_alphanumeric': 0.1260132645541636, 'fraction_numerical': 0.04126750184229919, 'mean_word_length': 3.053731343283582, 'pattern_counts': {'":': 0, '<': 9, '<?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': '5856923', 'n_tokens_mistral': 676, 'n_tokens_neox': 612, 'n_words': 152}