<commit_before>-- Have to make this a normal person with ability to do everything but delete, truncate, drop, empty etc
local dbname = "mta"
local host = "ucdmta.com"
local usr = "root"
local passwd = "<PASSWORD>"

db = Connection("mysql", "dbname="..dbname..";host="..host..";port=3306", usr, passwd)
forum = Connection("mysql", "dbname=forum;host="..host..";port=3306", usr, passwd)

function returnConnection()
	if (not db) then
		outputDebugString("Connection to the MySQL database [via ucdmta.com:3306] failed! Trying noki.zorque.xyz:3306...")
		db = Connection("mysql", "dbname=mta;host=noki.zorque.xyz;port=3306", "root", "Network.114")
		if (not db) then
			outputDebugString("Connection to the MySQL database [via noki.zorque.xyz:3306] failed! Trying 192.168.0.2:3306...")
			db = Connection("mysql", "dbname=mta;host=192.168.0.2;port=3306", "root", "Network.114")
			if (not db) then
				outputDebugString("Connection to the MySQL database [via 192.168.0.2:3306] failed!")
			else
				outputDebugString("Connection to the MySQL database [via 192.168.0.2:3306] successful!")
			end
			return
		else
			outputDebugString("Connection to the MySQL database [via noki.zorque.xyz:3306] successful!")
		end	
		return
	end
	outputDebugString("Connection to the MySQL database [via ucdmta.com:3306] successful!")
end
addEventHandler("onResourceStart", resourceRoot, returnConnection)

function getConnection()
	if (db) then
		return db
	end
	return false
end

function getForumDatabase()
	return forum
end<commit_msg>This is the last fucking time<commit_after>-- Have to make this a normal person with ability to do everything but delete, truncate, drop, empty etc
local dbname = "mta"
local host = "localhost"
local usr = "root"
local passwd = "<PASSWORD>"

db = Connection("mysql", "dbname="..dbname..";host="..host..";port=3306", usr, passwd)
forum = Connection("mysql", "dbname=forum;host="..host..";port=3306", usr, passwd)

function returnConnection()
	if (not db) then
		outputDebugString("Connection to the MySQL database [via localhost:3306] failed! Trying ucdmta.com:3306...")
		db = Connection("mysql", "dbname=mta;host=ucdmta.com;port=3306", "root", "Network.114")
		if (not db) then
			outputDebugString("Connection to the MySQL database [via ucdmta.com:3306] failed! Trying noki.zorque.xyz:3306...")
			db = Connection("mysql", "dbname=mta;host=noki.zorque.xyz;port=3306", "root", "Network.114")
			if (not db) then
				outputDebugString("Connection to the MySQL database [via noki.zorque.xyz:3306] failed! Trying 192.168.0.2:3306...")
				db = Connection("mysql", "dbname=mta;host=192.168.0.2;port=3306", "root", "Network.114")
				if (not db) then
					outputDebugString("Connection to the MySQL database [via 192.168.0.2:3306] failed!")
				else
					outputDebugString("Connection to the MySQL database [via 192.168.0.2:3306] successful!")
				end
				return
			else
				outputDebugString("Connection to the MySQL database [via noki.zorque.xyz:3306] successful!")
			end	
			return
		end
		outputDebugString("Connection to the MySQL database [via ucdmta.com:3306] successful!")
		return
	else
		outputDebugString("Connection to the MySQL database [via localhost:3306] successful!")
	end
end
addEventHandler("onResourceStart", resourceRoot, returnConnection)

function getConnection()
	if (db) then
		return db
	end
	return false
end

function getForumDatabase()
	return forum
end
{'fraction_non_alphanumeric': 0.13570797762731823, 'fraction_numerical': 0.05622608183691492, 'mean_word_length': 4.930191972076789, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 8, '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': '4844836', 'n_tokens_mistral': 1329, 'n_tokens_neox': 1112, 'n_words': 322}