<commit_before>package main

import (
	"github.com/ajhager/eng"
	"github.com/ajhager/eng/scene"
)

var (
	stage  *scene.Stage
	region *eng.Region
)

type Game struct {
	*eng.Game
}

func (g *Game) Open() {
	stage = scene.NewStage(1280, 800, true)
	stage.Camera().Position.X += stage.GutterWidth()
	stage.Camera().Position.Y -= stage.GutterHeight()

	region = eng.NewRegion(eng.BlankTexture(), 0, 0, 1, 1)
}

func (g *Game) Update(dt float32) {
	stage.Update()
}

func (g *Game) Draw() {
	batch := stage.Batch()
	batch.Begin()
	batch.Draw(region, 0, 0, 0, 0, 1280, 800, 0, eng.DarkerSea)
	batch.Draw(region, 640, 400, .5, .5, 960, 640, 0, eng.DarkSea)
	batch.End()
}

func main() {
	eng.Run("stage", 960, 640, false, new(Game))
}<commit_msg>Updated stage demo with stage changes<commit_after>package main

import (
	"github.com/ajhager/eng"
	"github.com/ajhager/eng/scene"
)

var (
	stage      *scene.Stage
	region     *eng.Region
	boxX, boxY float32
)

type Game struct {
	*eng.Game
}

func (g *Game) Open() {
	stage = scene.NewStage(1280, 800, true)
	stage.Camera().Position.X += stage.GutterWidth()
	stage.Camera().Position.Y += stage.GutterHeight()

	region = eng.NewRegion(eng.BlankTexture(), 0, 0, 1, 1)
}

func (g *Game) Update(dt float32) {
	stage.Update()
}

func (g *Game) Draw() {
	batch := stage.Batch()
	batch.Begin()
	batch.Draw(region, 0, 0, 0, 0, 1280, 800, 0, eng.DarkerSea)
	batch.Draw(region, boxX, boxY, .5, .5, 960, 640, 0, eng.DarkSea)
	batch.End()
}

func (g *Game) MouseMove(x, y int) {
	boxX, boxY = stage.ScreenToStage(float32(x), float32(y))
}

func main() {
	eng.Run("stage", 960, 640, false, new(Game))
}
{'fraction_non_alphanumeric': 0.18198529411764705, 'fraction_numerical': 0.056372549019607844, 'mean_word_length': 3.99388379204893, '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': '711257', 'n_tokens_mistral': 750, 'n_tokens_neox': 669, 'n_words': 160}