<commit_before>(function() {
var spookieCount,
	totalSpookies,
	items = {},
	itemsCost = {
		jackOLantern : 20,
		skellingtons : 50,
		spookySpiders : 100,
		ectoplasm : 500,
		hauntedHouse : 100000
	},
	multiplier = 1,
	sps = 0,
	twoSpooky = false,
	timer = 0,
	ghosties = [],
	ghostiesId=0,
	time=0,
	prettyTime="00:00",
	dayornight = "day",
	settingsOpen = false,
	achievesOpen = false,
	upgradesOpen = false,
	achieved = [],
	boughtUpgrades = [],
	messages = [],
	messageTimer =0,
	messageOpacity = 0;


	//id: new ach(id,name,desc,total,persec,perclick,jol,skelly,spider,ecto,haunt),
var achievements =
{
	0: new ach(0, "A Little 2 Spooky", "Earn at least 2 Total Spookies",2,0,0,0,0,0,0,0),

	1: new ach(1, "13 lumens","Own at least 1 Jack O'Lantern",0,0,0,1,0,0,0,0),

	2: new ach(2,"Auto Spook","Gain at least 10 Spookies per second",0,10,0,0,0,0,0,0),

	3: new ach(3,"Slightly 2 Spooky","Own at least 2 of every item",0,0,0,2,2,2,2,2),

	4: new ach(4,"\"I've been slimed\"","Own at least 1 litre of ectoplasm",0,0,0,0,0,0,1,0),

	5: new ach(5,"Spooky Scary Skeletons","Own at least 1 Skellington",0,0,0,0,1,0,0,0),

	6: new ach(6,"4 Many Legs 6 Me","Own at least 1 Spooky Spider",0,0,0,0,0,1,0,0),

	7: new ach(7,"Creeky Floorboards","Own at least 1 Haunted House",0,0,0,0,0,0,0,1),

	8: new ach(8,"Nearly 2 Spooky","Have at least 2000 Total Spookies",2000,0,0,0,0,0,0,0),

	9: new ach(9,"2 Spooky 4 Me","Have at least 2,000,000 Total Spookies",2000000,0,0,0,0,0,0,0),

	10: new ach(10,"Efficient Spookage","Gain at least 10 Spookies per click",0,0,10,0,0,0,0,0),

	11: new ach(11,"Haunted","Have at least 50 ghosts on the screen at once",Infinity,Infinity,Infinity,Infinity,Infinity,Infinity,Infinity,Infinity)
};

	//id : new upgrade (id,"name","desc",cost,spsMulti,spcMulti,spsItems, spcItems) 
var upgrades = 
{
	0:new upgrade(0,"Lightbulb","<b>+1</b> Spookies per second and <b>+0.5</b> Spookies per click for every Jack O'Lantern you own",100,1,1,{jackOLantern:1},{jackOLantern:0.5}),

	1 : new upgrade (1,"Psychomagnotheric Slime","<b>+10</b> Spookies per second and <b>+5</b> Spookies per click for every litre of Ectoplasm you own",20000,1,1,{ectoplasm:10}, {ectoplasm:5}),

	2 : new upgrade (2,"World Wide Web","<b>+4</b> Spookies per second and <b>+2</b> Spookies per click for every Spooky Spider you own",3000,1,1,{spookySpiders:4}, {spookySpiders:2}),

	3 : new upgrade (3,"Mansions","<b>+100</b> Spookies per second and <b>+20</b> Spookies per click for every Haunted House you own",1000000,1,1,{hauntedHouse:100}, {hauntedHouse:20}),

	4 : new upgrade (4,"Spooky Sounds","<img src='http://i3.kym-cdn.com/photos/images/newsfeed/000/407/216/693.gif'>",1000000,3,3,{}, {}) 

}

achievements[11].check = function() 
{

	if (achieved.indexOf(this.id) != -1)
	{
		this.got=true;
	}
	else if (ghosties.length >= 50)
	{
		this.get();
	};
};
	
function devSpookies()
{
	spookieCount += 10000000000000;
};

function prettyNumbers(n)
{<commit_msg>achievement<commit_after>(function() {
var spookieCount,
	totalSpookies,
	items = {},
	itemsCost = {
		jackOLantern : 20,
		skellingtons : 50,
		spookySpiders : 100,
		ectoplasm : 500,
		hauntedHouse : 100000
	},
	multiplier = 1,
	sps = 0,
	twoSpooky = false,
	timer = 0,
	ghosties = [],
	ghostiesId=0,
	time=0,
	prettyTime="00:00",
	dayornight = "day",
	settingsOpen = false,
	achievesOpen = false,
	upgradesOpen = false,
	achieved = [],
	boughtUpgrades = [],
	messages = [],
	messageTimer =0,
	messageOpacity = 0;


	//id: new ach(id,name,desc,total,persec,perclick,jol,skelly,spider,ecto,haunt),
var achievements =
{
	0: new ach(0, "A Little 2 Spooky", "Earn at least 2 Total Spookies",2,0,0,0,0,0,0,0),

	1: new ach(1, "13 lumens","Own at least 1 Jack O'Lantern",0,0,0,1,0,0,0,0),

	2: new ach(2,"Auto Spook","Gain at least 10 Spookies per second",0,10,0,0,0,0,0,0),

	3: new ach(3,"Slightly 2 Spooky","Own at least 2 of every item",0,0,0,2,2,2,2,2),

	4: new ach(4,"\"I've been slimed\"","Own at least 1 litre of ectoplasm",0,0,0,0,0,0,1,0),

	5: new ach(5,"Spooky Scary Skeletons","Own at least 1 Skellington",0,0,0,0,1,0,0,0),

	6: new ach(6,"4 Many Legs 6 Me","Own at least 1 Spooky Spider",0,0,0,0,0,1,0,0),

	7: new ach(7,"Creeky Floorboards","Own at least 1 Haunted House",0,0,0,0,0,0,0,1),

	8: new ach(8,"Nearly 2 Spooky","Have at least 2000 Total Spookies",2000,0,0,0,0,0,0,0),

	9: new ach(9,"2 Spooky 4 Me","Have at least 2,000,000 Total Spookies",2000000,0,0,0,0,0,0,0),

	10: new ach(10,"Efficient Spookage","Gain at least 10 Spookies per click",0,0,10,0,0,0,0,0),

	11: new ach(11,"Haunted","Have at least 50 ghosts on the screen at once",Infinity,Infinity,Infinity,Infinity,Infinity,Infinity,Infinity,Infinity),

	12: new ach(12,"Upgrader","Own at least 1 upgrade",Infinity,Infinity,Infinity,Infinity,Infinity,Infinity,Infinity,Infinity),
};

	//id : new upgrade (id,"name","desc",cost,spsMulti,spcMulti,spsItems, spcItems) 
var upgrades = 
{
	0:new upgrade(0,"Lightbulb","<b>+1</b> Spookies per second and <b>+0.5</b> Spookies per click for every Jack O'Lantern you own",100,1,1,{jackOLantern:1},{jackOLantern:0.5}),

	1 : new upgrade (1,"Psychomagnotheric Slime","<b>+10</b> Spookies per second and <b>+5</b> Spookies per click for every litre of Ectoplasm you own",20000,1,1,{ectoplasm:10}, {ectoplasm:5}),

	2 : new upgrade (2,"World Wide Web","<b>+4</b> Spookies per second and <b>+2</b> Spookies per click for every Spooky Spider you own",3000,1,1,{spookySpiders:4}, {spookySpiders:2}),

	3 : new upgrade (3,"Mansions","<b>+100</b> Spookies per second and <b>+20</b> Spookies per click for every Haunted House you own",1000000,1,1,{hauntedHouse:100}, {hauntedHouse:20}),

	4 : new upgrade (4,"Spooky Sounds","<img src='http://i3.kym-cdn.com/photos/images/newsfeed/000/407/216/693.gif'>",1000000,3,3,{}, {}) 

}

achievements[11].check = function() 
{

	if (achieved.indexOf(this.id) != -1)
	{
		this.got=true;
	}
	else if (ghosties.length >= 50)
	{
		this.get();
	};
};
achievements[12].check = function() 
{

	if (achieved.indexOf(this.id) != -1)
	{
		this.got=true;
	}
	else if (boughtUpgrades.length >= 1)
	{
		this.get();
	};
};
	
function devSpookies()
{
	spookieCount += 10000000000000;
};

function prettyNumbers(n)
{
{'fraction_non_alphanumeric': 0.1867654161970697, 'fraction_numerical': 0.09515375945902431, 'mean_word_length': 5.410732714138287, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 40, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, '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': '2933345', 'n_tokens_mistral': 3000, 'n_tokens_neox': 2650, 'n_words': 584}