<commit_before>/obj/machinery/power/hugbox_engine
	name = "hugbox engine"
	desc = "Turn up the love now, listen up now, turn up the <span style='color:#FF1493;font-style:italic'>love</span>..."
	icon = 'yogstation/icons/obj/hugbox_engine.dmi'
	icon_state = "hug_me"
	density = TRUE
	anchored = FALSE
	use_power = NO_POWER_USE

	var/power_per_hug = 100000
	var/crunching = FALSE

/obj/machinery/power/hugbox_engine/Initialize()
	connect_to_network()
	return ..()

/obj/machinery/power/hugbox_engine/emag_act(mob/user)
	if(obj_flags & EMAGGED)
		return
	obj_flags |= EMAGGED
	to_chat(user, "<span class='warning'>You crank up the love harvesting regulator to hardware maximum.</span>")

/obj/machinery/power/hugbox_engine/crowbar_act(mob/living/user, obj/item/I)
	if(crunching)
		to_chat(user, "<span class='notice'>You forcefully yank the emergency release.</span>")
		crunching = FALSE
	return TRUE

/obj/machinery/power/hugbox_engine/wrench_act(mob/living/user, obj/item/I)
	if(!anchored && !isinspace())
		connect_to_network()
		to_chat(user, "<span class='notice'>You secure [src] to the floor.</span>")
		anchored = TRUE
		playsound(src.loc, 'sound/items/deconstruct.ogg', 50, 1)
	else if(anchored)
		if(crunching)<commit_msg>no connecting if it start unanchored<commit_after>/obj/machinery/power/hugbox_engine
	name = "hugbox engine"
	desc = "Turn up the love now, listen up now, turn up the <span style='color:#FF1493;font-style:italic'>love</span>..."
	icon = 'yogstation/icons/obj/hugbox_engine.dmi'
	icon_state = "hug_me"
	density = TRUE
	anchored = FALSE
	use_power = NO_POWER_USE

	var/power_per_hug = 100000
	var/crunching = FALSE

/obj/machinery/power/hugbox_engine/emag_act(mob/user)
	if(obj_flags & EMAGGED)
		return
	obj_flags |= EMAGGED
	to_chat(user, "<span class='warning'>You crank up the love harvesting regulator to hardware maximum.</span>")

/obj/machinery/power/hugbox_engine/crowbar_act(mob/living/user, obj/item/I)
	if(crunching)
		to_chat(user, "<span class='notice'>You forcefully yank the emergency release.</span>")
		crunching = FALSE
	return TRUE

/obj/machinery/power/hugbox_engine/wrench_act(mob/living/user, obj/item/I)
	if(!anchored && !isinspace())
		connect_to_network()
		to_chat(user, "<span class='notice'>You secure [src] to the floor.</span>")
		anchored = TRUE
		playsound(src.loc, 'sound/items/deconstruct.ogg', 50, 1)
	else if(anchored)
		if(crunching)
{'fraction_non_alphanumeric': 0.13714047519799916, 'fraction_numerical': 0.010837849103793247, 'mean_word_length': 5.153846153846154, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, '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': '6188272', 'n_tokens_mistral': 954, 'n_tokens_neox': 905, 'n_words': 181}