<commit_before>walk(document.body);

function walk(node) 
{
	// I stole this function from here:
	// http://is.gd/mwZp7E
	
	var child, next;

	switch ( node.nodeType )  
	{
		case 1:  // Element
		case 9:  // Document
		case 11: // Document fragment
			child = node.firstChild;
			while ( child ) 
			{
				next = child.nextSibling;
				walk(child);
				child = next;
			}
			break;

		case 3: // Text node
			handleText(node);
			break;
	}
}

function handleText(textNode) 
{
	var v = textNode.nodeValue;

	// Millennial
	v = v.replace(/\bMillennial\b/g, "Snake Person");
	v = v.replace(/\bmillennial\b/g, "snake person");
	v = v.replace(/\bMillennials\b/g, "Snake People");
	v = v.replace(/\bmillennials\b/g, "snake people");
	v = v.replace(/\bMillennials'\b/g, "Snake People's");
	v = v.replace(/\bmillennials'\b/g, "snake people's");
	v = v.replace(/\bMillienials\b/g, "Snake People"); 		// Common misspelling
	v = v.replace(/\bmillienials\b/g, "snake people"); 	 	// Common misspelling

	// The Great Recession 
	v = v.replace(/\bGreat Recession\b/g, "Time of Shedding and Cold Rocks");
	v = v.replace(/\bgreat recession\b/g, "time of shedding and cold rocks");

	// The Great Depression
	v = v.replace(/\bGreat Depression\b/g, "Clutch Plague");
	v = v.replace(/\bgreat depression\b/g, "clutch plague");

	// Occupy Wall Street
	v = v.replace(/\bOccupy Wall Street\b/g, "Great Ape-Snake War");
	v = v.replace(/\boccupy wall street\b/g, "great ape-snake war");
	v = v.replace(/\bOccupy Movement\b/g, "Great Ape-Snake War");
	v = v.replace(/\boccupy movement\b/g, "great ape-snake war");
	v = v.replace(/\bOWS Movement\b/g, "Great Ape-Snake War");
	v = v.replace(/\bOWS movement\b/g, "great ape-snake war");
	v = v.replace(/\bows movement\b/g, "great ape-snake war");
	v = v.replace(/\b ows \b/g, "ga-sw");
	v = v.replace(/\b OWS \b/g, "GA-SW");

	// Helicopter Parents
	v = v.replace(/\bHelicopter Parents\b/g, "<NAME>");
	v = v.replace(/\bhelicopter parents\b/g, "Thoth-Amon");
	v = v.replace(/\bHelicopter Parents'\b/g, "<NAME>");
	v = v.replace(/\bhelicopter parents'\b/g, "Thoth-Amon's");

	// Trophy Kids
	v = v.replace(/\bTrophy Kids\b/g, "Quetzalcoatl's Chosen");
	v = v.replace(/\btrophy kids\b/g, "Quetzalcoatl's chosen");<commit_msg>Add spaces to OWS replacementssssss<commit_after>walk(document.body);

function walk(node) 
{
	// I stole this function from here:
	// http://is.gd/mwZp7E
	
	var child, next;

	switch ( node.nodeType )  
	{
		case 1:  // Element
		case 9:  // Document
		case 11: // Document fragment
			child = node.firstChild;
			while ( child ) 
			{
				next = child.nextSibling;
				walk(child);
				child = next;
			}
			break;

		case 3: // Text node
			handleText(node);
			break;
	}
}

function handleText(textNode) 
{
	var v = textNode.nodeValue;

	// Millennial
	v = v.replace(/\bMillennial\b/g, "Snake Person");
	v = v.replace(/\bmillennial\b/g, "snake person");
	v = v.replace(/\bMillennials\b/g, "Snake People");
	v = v.replace(/\bmillennials\b/g, "snake people");
	v = v.replace(/\bMillennials'\b/g, "Snake People's");
	v = v.replace(/\bmillennials'\b/g, "snake people's");
	v = v.replace(/\bMillienials\b/g, "Snake People"); 		// Common misspelling
	v = v.replace(/\bmillienials\b/g, "snake people"); 	 	// Common misspelling

	// The Great Recession 
	v = v.replace(/\bGreat Recession\b/g, "Time of Shedding and Cold Rocks");
	v = v.replace(/\bgreat recession\b/g, "time of shedding and cold rocks");

	// The Great Depression
	v = v.replace(/\bGreat Depression\b/g, "Clutch Plague");
	v = v.replace(/\bgreat depression\b/g, "clutch plague");

	// Occupy Wall Street
	v = v.replace(/\bOccupy Wall Street\b/g, "Great Ape-Snake War");
	v = v.replace(/\boccupy wall street\b/g, "great ape-snake war");
	v = v.replace(/\bOccupy Movement\b/g, "Great Ape-Snake War");
	v = v.replace(/\boccupy movement\b/g, "great ape-snake war");
	v = v.replace(/\bOWS Movement\b/g, "Great Ape-Snake War");
	v = v.replace(/\bOWS movement\b/g, "great ape-snake war");
	v = v.replace(/\bows movement\b/g, "great ape-snake war");
	v = v.replace(/\b ows \b/g, " ga-sw ");
	v = v.replace(/\b OWS \b/g, " GA-SW ");

	// Helicopter Parents
	v = v.replace(/\bHelicopter Parents\b/g, "<NAME>");
	v = v.replace(/\bhelicopter parents\b/g, "Thoth-Amon");
	v = v.replace(/\bHelicopter Parents'\b/g, "<NAME>");
	v = v.replace(/\bhelicopter parents'\b/g, "Thoth-Amon's");

	// Trophy Kids
	v = v.replace(/\bTrophy Kids\b/g, "Quetzalcoatl's Chosen");
	v = v.replace(/\btrophy kids\b/g, "Quetzalcoatl's chosen");
{'fraction_non_alphanumeric': 0.1902654867256637, 'fraction_numerical': 0.002654867256637168, 'mean_word_length': 3.091402714932127, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '83796', 'n_tokens_mistral': 1973, 'n_tokens_neox': 1826, 'n_words': 411}