<commit_before>//<a href='byond://?src=\ref[topic_ref];ad_click=1'>Advertisement</a>

/proc/get_random_popup_ad(var/topic_ref)
	var/datum/popup_ad/ad = null
	var/list/ad_options = list(/datum/popup_ad/ad1, /datum/popup_ad/ad2, /datum/popup_ad/ad3, /datum/popup_ad/ad4, /datum/popup_ad/ad5, /datum/popup_ad/ad6, /datum/popup_ad/ad7)
	ad = pick(ad_options)
	if(ad)
		ad = new ad()
		ad.generate_content(topic_ref)
		return ad

/datum/popup_ad
	var/size = "390x400"
	var/content = ""

/datum/popup_ad/proc/generate_content(var/topic_ref)
	return ""

/datum/popup_ad/ad1
	size = "400x350"

/datum/popup_ad/ad1/generate_content(var/topic_ref)
	content = {"
<head><title>NT Product Ads</title></head>
<a href='byond://?src=\ref[topic_ref];ad_click=1'>
<img src=ad1.png>
</a>
"}


/datum/popup_ad/ad2
	size = "400x430"

/datum/popup_ad/ad2/generate_content(var/topic_ref)
	content = {"
<head><title>Click-o-Tron</title></head>
<a href='byond://?src=\ref[topic_ref];ad_click=1'>
<img src=ad2.png>
</a>
"}

/datum/popup_ad/ad3
	size = "390x400"

/datum/popup_ad/ad3/generate_content(var/topic_ref)
	content = {"
<head><title>Click-o-Tron</title></head>
<a href='byond://?src=\ref[topic_ref];ad_click=1'>
<img src=ad3.png>
</a>
"}

/datum/popup_ad/ad4
	size = "390x400"

/datum/popup_ad/ad4/generate_content(var/topic_ref)
	content = {"
<head><title>Click-o-Tron</title></head>
<a href='byond://?src=\ref[topic_ref];ad_click=1'>
<img src=ad4.png>
</a>
"}

/datum/popup_ad/ad5
	size = "390x400"

/datum/popup_ad/ad5/generate_content(var/topic_ref)
	content = {"
<head><title>Click-o-Tron</title></head>
<a href='byond://?src=\ref[topic_ref];ad_click=1'>
<img src=ad5.png>
</a>
"}

/datum/popup_ad/ad6
	size = "390x400"

/datum/popup_ad/ad6/generate_content(var/topic_ref)
	content = {"
<head><title>Click-o-Tron</title></head>
<a href='byond://?src=\ref[topic_ref];ad_click=1'>
<img src=ad6.png>
</a>
"}

/datum/popup_ad/ad7
	size = "390x400"

/datum/popup_ad/ad7/generate_content(var/topic_ref)
	content = {"
<head><title>Click-o-Tron</title></head>
<a href='byond://?src=\ref[topic_ref];ad_click=1'>
<img src=ad7.png>
</a>
"}

/*
/datum/popup_ad/ad3
	size = "460x120"

/datum/popup_ad/ad3/generate_content(var/topic_ref)
	content = {"<commit_msg>Compressed ads<commit_after>//<a href='byond://?src=\ref[topic_ref];ad_click=1'>Advertisement</a>

/proc/get_random_popup_ad(var/topic_ref)
	var/datum/popup_ad/ad = null
	var/list/ad_options = list(/datum/popup_ad/simple_image/ad1, /datum/popup_ad/simple_image/ad2, /datum/popup_ad/simple_image/ad3, /datum/popup_ad/simple_image/ad4, /datum/popup_ad/simple_image/ad5, /datum/popup_ad/simple_image/ad6, /datum/popup_ad/simple_image/ad7)
	ad = pick(ad_options)
	if(ad)
		ad = new ad()
		ad.generate_content(topic_ref)
		return ad

/datum/popup_ad
	var/size = "390x400"
	var/content = ""

/datum/popup_ad/proc/generate_content(var/topic_ref)
	return ""

/datum/popup_ad/simple_image
	var/image_ref = ""

/datum/popup_ad/simple_image/generate_content(var/topic_ref)
		content = {"
<head><title>NT Product Ads</title></head>
<a href='byond://?src=\ref[topic_ref];ad_click=1'>
<img src=[image_ref]>
</a>
"}

/datum/popup_ad/simple_image/ad1
	size = "400x350"
	image_ref = "ad1.png"

/datum/popup_ad/simple_image/ad2
	size = "400x430"
	image_ref = "ad2.png"

/datum/popup_ad/simple_image/ad3
	size = "390x400"
	image_ref = "ad3.png"

/datum/popup_ad/simple_image/ad4
	size = "390x400"
	image_ref = "ad4.png"

/datum/popup_ad/simple_image/ad5
	size = "390x400"
	image_ref = "ad5.png"

/datum/popup_ad/simple_image/ad6
	size = "390x400"
	image_ref = "ad6.png"

/datum/popup_ad/simple_image/ad7
	size = "390x400"
	image_ref = "ad7.png"

/*
/datum/popup_ad/ad3
	size = "460x120"

/datum/popup_ad/ad3/generate_content(var/topic_ref)
	content = {"
{'fraction_non_alphanumeric': 0.19146115088835852, 'fraction_numerical': 0.045346062052505964, 'mean_word_length': 4.89375, 'pattern_counts': {'":': 0, '<': 63, '<?xml version=': 0, '>': 63, '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': '7219201', 'n_tokens_mistral': 1812, 'n_tokens_neox': 1724, 'n_words': 193}