<commit_before>
/client/verb/admin_ticket(ticket_title as text)
	set category = "Admin"
	set name = "Adminhelp"

	if(prefs.muted & MUTE_ADMINHELP)
		src << "<font color='red'>Error: Admin-PM: You are unable to use admin PM-s (muted).</font>"
		return

	if(!ticket_title)
		usr << "<span class='ticket-status'>You did not supply a message for your ticket. Ignoring your request.</span>"
		return

	ticket_title = replacetext(ticket_title, "'", "\'")
	ticket_title = sanitize(copytext(ticket_title,1,MAX_MESSAGE_LEN))

	var/datum/admin_ticket/found_ticket = null
	for(var/datum/admin_ticket/T in tickets_list)
		if(compare_ckey(T.owner_ckey, src) && !T.resolved)
			found_ticket = T

	if(!found_ticket)
		var/datum/admin_ticket/T = new /datum/admin_ticket(src, ticket_title)

		if(!total_admins_active())
			send_discord_message("admin", "A new ticket has been created with no active admins online, There are now a total of [total_unresolved_tickets()] unresolved tickets.")

		if(!T.error)
			tickets_list.Add(T)<commit_msg>Changes the thing.<commit_after>
/client/verb/admin_ticket(ticket_title as text)
	set category = "Admin"
	set name = "Adminhelp"

	if(prefs.muted & MUTE_ADMINHELP)
		src << "<font color='red'>Error: Admin-PM: You are unable to use admin PM-s (muted).</font>"
		return

	if(!ticket_title)
		usr << "<span class='ticket-status'>You did not supply a message for your ticket. Ignoring your request.</span>"
		return

	ticket_title = replacetext(ticket_title, "'", "\'")
	ticket_title = sanitize(copytext(ticket_title,1,MAX_MESSAGE_LEN))

	var/datum/admin_ticket/found_ticket = null
	for(var/datum/admin_ticket/T in tickets_list)
		if(compare_ckey(T.owner_ckey, src) && !T.resolved)
			found_ticket = T

	if(!found_ticket)
		var/datum/admin_ticket/T = new /datum/admin_ticket(src, ticket_title)
		
		send_discord_message("admin", "New ticket created by [usr]: [ticket_title]")
		if(!total_admins_active())
			send_discord_message("admin", "@here A new ticket has been created with no active admins online, There are now a total of [total_unresolved_tickets()] unresolved tickets.")

		if(!T.error)
			tickets_list.Add(T)
{'fraction_non_alphanumeric': 0.12909260991580918, 'fraction_numerical': 0.0009354536950420954, 'mean_word_length': 5.146551724137931, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 11, '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': '363982', 'n_tokens_mistral': 815, 'n_tokens_neox': 733, 'n_words': 177}