<commit_before>package;

import kha.Framebuffer;
import kha2d.Scene;
import kha2d.Sprite;
import kha.Assets;
import util.Text;
import kha.input.Mouse;
import Data;
import kha2d.Animation;
import util.Button;

class Project {
	var activeLevel:Int = 0;
	var chatName:String = "main";
	var pointInConvArray:Int = 0;
	var pointInTextArray:Int = 0;
	var data = Data.the;
	var chats:Dynamic;
	var t:Text;
	var diagnosis:Text = new Text("test",0,360,40);
	var buttonsActive:Bool = false;
	var but = Button.buttons;
	public function new() {
		var background = new Sprite(Assets.images.background);
		background.x = 0;
		background.y = 0;
		Scene.the.addOther(background);
		t = new Text("",0,0,30);
		Mouse.get().notify(down, up, move, scroll);
		startLevel();
		util.ButtonManager.the;
	}

	public function down(mButton:Int, x:Int, y:Int)
	{
		chats = data.levels[activeLevel].chats;
		if(chats.exists(chatName) && !buttonsActive)
		{
			if(chats.get(chatName).length > pointInConvArray)<commit_msg>fixed runtime error in room<commit_after>package;

import kha.Framebuffer;
import kha2d.Scene;
import kha2d.Sprite;
import kha.Assets;
import util.Text;
import kha.input.Mouse;
import Data;
import kha2d.Animation;
import util.Button;

class Project {
	var activeLevel:Int = 0;
	var chatName:String = "main";
	var pointInConvArray:Int = 0;
	var pointInTextArray:Int = 0;
	var data = Data.the;
	var chats:Map<String,Dynamic>;
	var t:Text;
	var diagnosis:Text = new Text("test",0,360,40);
	var buttonsActive:Bool = false;
	var but = Button.buttons;
	public function new() {
		var background = new Sprite(Assets.images.background);
		background.x = 0;
		background.y = 0;
		Scene.the.addOther(background);
		t = new Text("",0,0,30);
		Mouse.get().notify(down, up, move, scroll);
		startLevel();
		util.ButtonManager.the;
	}

	public function down(mButton:Int, x:Int, y:Int)
	{
		chats = data.levels[activeLevel].chats;
		if(chats.exists(chatName) && !buttonsActive)
		{
			if(chats.get(chatName).length > pointInConvArray)
{'fraction_non_alphanumeric': 0.13681592039800994, 'fraction_numerical': 0.01791044776119403, 'mean_word_length': 4.862973760932944, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 6, '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': '5275876', 'n_tokens_mistral': 783, 'n_tokens_neox': 735, 'n_words': 167}