<commit_before>var name, position, bio, photo;
var photoRegex = /src=([a-z0-9\.\/]*)/;
//var sentenceRegex = /(\. t)|(^t)/g;
var nameSpaceRegex = /\w\S*/g;
//var nameRegex = /^[a-z]*/i;
var people = [];

function biography(name, position, bio, photo){
	var person = {position: position, bio: bio/*, anonBio: anonymize_bio(name, bio)*/};
	person.name = name.replace(nameSpaceRegex, function(txt){
		return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();
	});
	person.photo = "https://imo.im/" + photoRegex.exec(photo)[1];
	people.push(person);
}
/*
function anonymize_bio(name, bio){
	var firstName = nameRegex.exec(name)[0];
	bio = bio.replace(new RegExp(name, "gi"), firstName);
	bio = bio.replace(new RegExp(firstName, "gi"), "this person");
	return bio.replace(sentenceRegex, function(v){
		return v.toUpperCase();
	});
}
*/
function render_profile(i, opts, element, anonymized){
	if(anonymized === undefined)
		anonymized = true;

	var el = $(element);
	el.html("").addClass("selected").removeClass("disabled");

	if(opts.photo){
		var img = document.createElement("img");
		img.src = people[i].photo;
		el.append(img);
	}

	if(opts.name){
		var div = document.createElement("div");
		if(!opts.photo && !opts.bio)
			$(div).html(people[i].name.replace(" ", "<br>"));
		else
			$(div).text(people[i].name);
		el.append(div);
	}

	if(opts.position){
		var em = document.createElement("em");
		$(em).text(people[i].position);
		el.append(em);
	}

	if(opts.bio){
		var bio = document.createElement("blockquote");
		if(anonymized)
			$(bio).text(people[i].anonBio);
		else
			$(bio).text(people[i].bio);
		el.append(bio).addClass("bio");
	}else
		el.removeClass("bio");
	el.removeClass("hidden");
}

function hide_profile(element, disabled){
	$(element).html("").addClass("hidden").removeClass("selected");
	if(disabled === true)
		$(element).addClass("disabled");
	else if(disabled !== true)
		$(element).removeClass("disabled");
}

name="<NAME>";
position="founder";
bio="Ralph has a Bachelor's and Master's degree in computer science from MIT. He spends his free time playing ice hockey, soccer, and tennis.";
photo="<img src=graphics/people/ralph.jpg alt=\"<NAME>, imo CEO\" class=people_photo>";
biography (name, position, bio, photo);

name="<NAME>";
position="engineer";
bio="John is currently on leave from the Computer Science Ph.D. program at Stony Brook University so that he can work full-time at imo. He has bachelor's degree in Computer Science from the University of North Texas, where he first studied music for a year. Aside from hacking and programming competitions (and working at imo!), he enjoys traveling, eating, movies, poker, and dogs.";
photo="<img src=graphics/people/john.jpg alt=\"<NAME>, imo engineer\" class=people_photo>";
biography (name, position, bio, photo);

name="<NAME>";
position="engineer";
bio="Nikola recently graduated with a BS from Northwestern University in Computer Science, and has liked programming since middle school. He is from Sofia, Bulgaria, and likes to watch Formula 1, WRC, and other motor sports. Nikola also enjoys playing volleyball, soccer, some computer games, and card games. He also likes participating in programming and other science and robotics competitions.";
photo="<img src=graphics/people/nikola.jpg alt=\"<NAME>, imo engineer\" class=people_photo>";
biography (name, position, bio, photo);

name="<NAME>";
position="engineer";
bio="Georgios worked as a software engineer in Germany before joining the imo team. He enjoys spending his free time with his wife and two children. When he has some more spare time (when everybody else is sleeping), he likes solving puzzles or taking part in programming competitions.";
photo="<img src=graphics/people/georgios.jpg alt=\"<NAME>, imo engineer\" class=people_photo>";
biography (name, position, bio, photo);

name="<NAME>";
position="engineer";
bio="Johan studied Computer Science at Leiden University in The Netherlands. He likes going to the gym and running, and he is very passionate about puzzles and programming competitions.";
photo="<img src=graphics/people/johan.jpg alt=\"<NAME>, imo engineer\" class=people_photo>";
biography (name, position, bio, photo);

name="<NAME>";
position="recruiting";
bio="Marissa is a native of San Francisco and obtained her BA in Psychology from SFSU. She has worked for Facebook and Skype, and also has experience in agency recruiting, where she staffed projects for Google. When she isn't busy helping job applicants, she enjoys learning new skills like mushroom foraging and fantasy football. The two things that can always make her smile are monkeys and ice cream.";
photo="<img src=graphics/people/marissa2.png alt=\"<NAME>, imo recruiting\" class=people_photo>";
biography (name, position, bio, photo);

name="<NAME>";
position="marketing";
bio="Lorraine received her Bachelor of Science in Journalism from Northwestern University's Medill School of Journalism, with a minor in French. She enjoys listening to EDM & top 40, watching shows on Netflix and spending time with friends.";
photo="<img src=graphics/people/lorraine.png alt=\"<NAME>, imo marketing\" class=people_photo>";
biography (name, position, bio, photo);

name="<NAME>";
position="recruiting";
bio="Michelle is originally from Los Angeles, and received her bachelors from UC Irvine. Prior to imo.im, she worked at Google and LivingSocial. She enjoys reading, baking, traveling, and karaoke.";
photo="<img src=graphics/people/michelle.png alt=\"<NAME>, imo recruiting\" class=people_photo>";
biography (name, position, bio, photo);

name="<NAME>";
position="user safety operations";
bio="Aneta grew up in Poland and Germany. She graduated from Mills College with a degree in Biopsychology. Before joining the imo team, she worked for Facebook. In her spare time, Aneta enjoys traveling, reading, science, watching movies, and spending time with her family.";
photo="<img src=graphics/people/aneta.jpg alt=\"<NAME>, imo user safety operations\" class=people_photo>";
biography (name, position, bio, photo);

name="<NAME>";
position="ux designer";
bio="Dave grew up in Hawaii, New Zealand, and finally settled in California. When he's not scouring dribbble for inspiration and awesome design, he's reading comics, hanging with friends, and going to midnight showings of the latest movies.";
photo="<img src=graphics/people/dave.jpg alt=\"<NAME>, imo ux designer\" class=people_photo>";
biography (name, position, bio, photo);

name="<NAME>";  
position="recruiting";
bio="Greg comes to imo from Zynga, where he spent a year and a half recruiting for a variety of technical roles. He received a BA in linguistics and communication from Tulane University (after some time at Brown University) and an MS at Pepperdine in intercultural communication. A former track and field athlete (and briefly a football kicker) at Tulane, Greg now spends his free time cycling, playing Boggle, guitar, drums, and keyboard, and listening to awful folk metal music.";
photo="<img src=graphics/people/greg.png alt=\"<NAME>, imo recruiter\" class=people_photo>";
biography (name, position, bio, photo);

name="<NAME>";
position="founder";
bio="<NAME> was Director of Googlettes and a Distinguished Engineer at Google. As Director of Googlettes, his team was responsible for the product management and strategy efforts surrounding many starting Google initiatives including Gmail, Google Talk, Google Video, Picasa, Orkut, Google Groups and Google Mobile.<br><br>As a Distinguished Engineer, Georges was the co-developer of the technology behind AdSense, the first engineering manager of the Google Search Appliance, and the co-author of the original product plan for the AdWords Online system. Georges has contributed to numerous patents covering Google's search engine and advertising networks.";
photo="<img src=graphics/people/georges.jpg alt=\"<NAME>, imo founder\" class=people_photo>";
biography (name, position, bio, photo);

name="<NAME>";
position="engineer";
bio="Erdal likes playing basketball, working at imo, and traveling. His favorite place is his hometown, Constanta. He also holds a Computer Science and Mathematics degree from Florida Tech.";
photo="<img src=graphics/people/erdal.jpg alt=\"<NAME>, imo engineer\" class=people_photo>";
biography (name, position, bio, photo);

name="<NAME>";
position="engineer";
bio="Xuan likes eating, sleeping, watching Naruto, updating the Internet, and helping friends.";
photo="<img src=graphics/people/xuan.jpg alt=\"<NAME>, imo engineer\" class=people_photo>";
biography (name, position, bio, photo);

name="<NAME>";
position="marketing";
bio="Brandi manages marketing and public relations activities for imo. She graduated from the University of California, Davis with a bachelors degree in International Relations. In her spare time she enjoys watching movies, reading tech blogs and playing with her pug.";
photo="<img src=graphics/people/brandi.png alt=\"<NAME>, imo marketing\" class=people_photo>";
biography (name, position, bio, photo);

name="<NAME>";
position="ux designer";
bio="Max is an experienced web designer who is passionate about beautiful yet usable and friendly interfaces. He strives to create web sites with positive user experiences that will make people happy.";
photo="<img src=graphics/people/max.png alt=\"<NAME>, imo UX designer\" class=people_photo>";
biography (name, position, bio, photo);

name="<NAME>";
position="engineer";
bio="Hamza has a BS in Computer Science from Cairo University. Besides working at imo, Hamza enjoys reading, practicing/watching sports and doing programming competitions.";
photo="<img src=graphics/people/hamza.png alt=\"<NAME>, imo engineer\" class=people_photo>";
biography (name, position, bio, photo);

name="<NAME>";
position="engineer";
bio="Patrick is a UC Berkeley EECS alumnus who enjoys biking and hiking in parks around Palo Alto. When not hacking or with his brother Daniel, he cares for his two cats, Sister and Tibby, while enjoying music, sci-fi, RPGs, and combinations thereof.";
photo="<img src=graphics/people/patrick.jpg alt=\"<NAME>, imo engineer\" class=people_photo>";
biography (name, position, bio, photo);

name="<NAME>";
position="engineer";
bio="Nhat has a Master's degree in computer science from UTD and now is studying towards his PhD. He'd love to join programming contests and play soccer in his free time.";
photo="<img src=graphics/people/nhat.jpg alt=\"<NAME>, imo engineer\" class=people_photo>";
biography (name, position, bio, photo);

name="<NAME>";
position="engineer";
bio="Iskren has a bachelor's degree in CS from Sofia University in Bulgaria. He likes biking, skiing, and working on open source projects.";
photo="<img src=graphics/people/iskren.jpg alt=\"<NAME>, imo engineer\" class=people_photo>";
biography (name, position, bio, photo);

name="<NAME>";
position="office manager";
bio="Sarah likes to go to Shasta Lake in the Summer to hike, swim, and wakeboard. She likes to laugh, chat with friends or spend the day in Santa Cruz going to the beach or reading a good book in a coffee shop downtown.";
photo="<img src=graphics/people/sarah.jpg alt=\"<NAME>, imo office manager\" class=people_photo>";
biography (name, position, bio, photo);
<commit_msg>Removed former employees; tweaked memory management<commit_after>var name, position, bio, photo;
var photoRegex = /src=([a-z0-9\.\/]*)/;
//var sentenceRegex = /(\. t)|(^t)/g;
var nameSpaceRegex = /\w\S*/g;
//var nameRegex = /^[a-z]*/i;
var people = [];

function biography(name, position, bio, photo){
	var person = {position: position, bio: bio/*, anonBio: anonymize_bio(name, bio)*/};
	person.name = name.replace(nameSpaceRegex, function(txt){
		return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();
	});
	person.photo = "https://imo.im/" + photoRegex.exec(photo)[1];
	people.push(person);
}
/*
function anonymize_bio(name, bio){
	var firstName = nameRegex.exec(name)[0];
	bio = bio.replace(new RegExp(name, "gi"), firstName);
	bio = bio.replace(new RegExp(firstName, "gi"), "this person");
	return bio.replace(sentenceRegex, function(v){
		return v.toUpperCase();
	});
}
*/
function render_profile(i, opts, element, anonymized){
	if(anonymized === undefined)
		anonymized = true;

	var el = $(element);
	el.html("").addClass("selected").removeClass("disabled");

	if(opts.photo){
		var img = document.createElement("img");
		img.src = people[i].photo;
		el.append(img);
	}

	if(opts.name){
		var div = document.createElement("div");
		if(!opts.photo && !opts.bio)
			$(div).html(people[i].name.replace(" ", "<br>"));
		else
			$(div).text(people[i].name);
		el.append(div);
	}

	if(opts.position){
		var em = document.createElement("em");
		$(em).text(people[i].position);
		el.append(em);
	}

	if(opts.bio){
		var bio = document.createElement("blockquote");
		if(anonymized)
			$(bio).text(people[i].anonBio);
		else
			$(bio).text(people[i].bio);
		el.append(bio).addClass("bio");
	}else
		el.removeClass("bio");
	el.removeClass("hidden");
}

function hide_profile(element, disabled){
	$(element).html("").addClass("hidden").removeClass("selected");
	if(disabled === true)
		$(element).addClass("disabled");
	else if(disabled !== true)
		$(element).removeClass("disabled");
}

name="<NAME>";
position="founder";
bio="Ralph has a Bachelor's and Master's degree in computer science from MIT. He spends his free time playing ice hockey, soccer, and tennis.";
photo="<img src=graphics/people/ralph.jpg alt=\"<NAME>, imo CEO\" class=people_photo>";
biography (name, position, bio, photo);

name="<NAME>";
position="engineer";
bio="Nikola recently graduated with a BS from Northwestern University in Computer Science, and has liked programming since middle school. He is from Sofia, Bulgaria, and likes to watch Formula 1, WRC, and other motor sports. Nikola also enjoys playing volleyball, soccer, some computer games, and card games. He also likes participating in programming and other science and robotics competitions.";
photo="<img src=graphics/people/nikola.jpg alt=\"<NAME>, imo engineer\" class=people_photo>";
biography (name, position, bio, photo);

name="<NAME>";
position="engineer";
bio="Georgios worked as a software engineer in Germany before joining the imo team. He enjoys spending his free time with his wife and two children. When he has some more spare time (when everybody else is sleeping), he likes solving puzzles or taking part in programming competitions.";
photo="<img src=graphics/people/georgios.jpg alt=\"<NAME>, imo engineer\" class=people_photo>";
biography (name, position, bio, photo);

name="<NAME>";
position="engineer";
bio="Johan studied Computer Science at Leiden University in The Netherlands. He likes going to the gym and running, and he is very passionate about puzzles and programming competitions.";
photo="<img src=graphics/people/johan.jpg alt=\"<NAME>, imo engineer\" class=people_photo>";
biography (name, position, bio, photo);

name="<NAME>";
position="recruiting";
bio="Marissa is a native of San Francisco and obtained her BA in Psychology from SFSU. She has worked for Facebook and Skype, and also has experience in agency recruiting, where she staffed projects for Google. When she isn't busy helping job applicants, she enjoys learning new skills like mushroom foraging and fantasy football. The two things that can always make her smile are monkeys and ice cream.";
photo="<img src=graphics/people/marissa2.png alt=\"<NAME>, imo recruiting\" class=people_photo>";
biography (name, position, bio, photo);

name="<NAME>";
position="recruiting";
bio="Michelle is originally from Los Angeles, and received her bachelors from UC Irvine. Prior to imo.im, she worked at Google and LivingSocial. She enjoys reading, baking, traveling, and karaoke.";
photo="<img src=graphics/people/michelle.png alt=\"<NAME>, imo recruiting\" class=people_photo>";
biography (name, position, bio, photo);

name="<NAME>";
position="user safety operations";
bio="Aneta grew up in Poland and Germany. She graduated from Mills College with a degree in Biopsychology. Before joining the imo team, she worked for Facebook. In her spare time, Aneta enjoys traveling, reading, science, watching movies, and spending time with her family.";
photo="<img src=graphics/people/aneta.jpg alt=\"<NAME>, imo user safety operations\" class=people_photo>";
biography (name, position, bio, photo);

name="<NAME>";
position="ux designer";
bio="Dave grew up in Hawaii, New Zealand, and finally settled in California. When he's not scouring dribbble for inspiration and awesome design, he's reading comics, hanging with friends, and going to midnight showings of the latest movies.";
photo="<img src=graphics/people/dave.jpg alt=\"<NAME>, imo ux designer\" class=people_photo>";
biography (name, position, bio, photo);

name="<NAME>";  
position="recruiting";
bio="Greg comes to imo from Zynga, where he spent a year and a half recruiting for a variety of technical roles. He received a BA in linguistics and communication from Tulane University (after some time at Brown University) and an MS at Pepperdine in intercultural communication. A former track and field athlete (and briefly a football kicker) at Tulane, Greg now spends his free time cycling, playing Boggle, guitar, drums, and keyboard, and listening to awful folk metal music.";
photo="<img src=graphics/people/greg.png alt=\"<NAME>, imo recruiter\" class=people_photo>";
biography (name, position, bio, photo);

name="<NAME>";
position="founder";
bio="<NAME> was Director of Googlettes and a Distinguished Engineer at Google. As Director of Googlettes, his team was responsible for the product management and strategy efforts surrounding many starting Google initiatives including Gmail, Google Talk, Google Video, Picasa, Orkut, Google Groups and Google Mobile.<br><br>As a Distinguished Engineer, Georges was the co-developer of the technology behind AdSense, the first engineering manager of the Google Search Appliance, and the co-author of the original product plan for the AdWords Online system. Georges has contributed to numerous patents covering Google's search engine and advertising networks.";
photo="<img src=graphics/people/georges.jpg alt=\"<NAME>, imo founder\" class=people_photo>";
biography (name, position, bio, photo);

name="<NAME>";
position="engineer";
bio="Erdal likes playing basketball, working at imo, and traveling. His favorite place is his hometown, Constanta. He also holds a Computer Science and Mathematics degree from Florida Tech.";
photo="<img src=graphics/people/erdal.jpg alt=\"<NAME>, imo engineer\" class=people_photo>";
biography (name, position, bio, photo);

name="<NAME>";
position="engineer";
bio="Xuan likes eating, sleeping, watching Naruto, updating the Internet, and helping friends.";
photo="<img src=graphics/people/xuan.jpg alt=\"Xuan Luo, imo engineer\" class=people_photo>";
biography (name, position, bio, photo);

name="<NAME>";
position="marketing";
bio="Brandi manages marketing and public relations activities for imo. She graduated from the University of California, Davis with a bachelors degree in International Relations. In her spare time she enjoys watching movies, reading tech blogs and playing with her pug.";
photo="<img src=graphics/people/brandi.png alt=\"<NAME>, imo marketing\" class=people_photo>";
biography (name, position, bio, photo);

name="<NAME>";
position="ux designer";
bio="Max is an experienced web designer who is passionate about beautiful yet usable and friendly interfaces. He strives to create web sites with positive user experiences that will make people happy.";
photo="<img src=graphics/people/max.png alt=\"<NAME>, imo UX designer\" class=people_photo>";
biography (name, position, bio, photo);

name="<NAME>";
position="engineer";
bio="Hamza has a BS in Computer Science from Cairo University. Besides working at imo, Hamza enjoys reading, practicing/watching sports and doing programming competitions.";
photo="<img src=graphics/people/hamza.png alt=\"<NAME>, imo engineer\" class=people_photo>";
biography (name, position, bio, photo);

name="<NAME>";
position="engineer";
bio="Patrick is a UC Berkeley EECS alumnus who enjoys biking and hiking in parks around Palo Alto. When not hacking or with his brother Daniel, he cares for his two cats, Sister and Tibby, while enjoying music, sci-fi, RPGs, and combinations thereof.";
photo="<img src=graphics/people/patrick.jpg alt=\"<NAME>, imo engineer\" class=people_photo>";
biography (name, position, bio, photo);

name="<NAME>";
position="engineer";
bio="Nhat has a Master's degree in computer science from UTD and now is studying towards his PhD. He'd love to join programming contests and play soccer in his free time.";
photo="<img src=graphics/people/nhat.jpg alt=\"<NAME>, imo engineer\" class=people_photo>";
biography (name, position, bio, photo);

name="<NAME>";
position="engineer";
bio="Iskren has a bachelor's degree in CS from Sofia University in Bulgaria. He likes biking, skiing, and working on open source projects.";
photo="<img src=graphics/people/iskren.jpg alt=\"<NAME>, imo engineer\" class=people_photo>";
biography (name, position, bio, photo);

name="<NAME>";
position="office manager";
bio="Sarah likes to go to Shasta Lake in the Summer to hike, swim, and wakeboard. She likes to laugh, chat with friends or spend the day in Santa Cruz going to the beach or reading a good book in a coffee shop downtown.";
photo="<img src=graphics/people/sarah.jpg alt=\"<NAME>, imo office manager\" class=people_photo>";
biography (name, position, bio, photo);

// Clean up some variables we won't be using again
delete name;
delete position;
delete bio;
delete photo;
delete photoRegex;
delete nameSpaceRegex;
delete biography;

{'fraction_non_alphanumeric': 0.12570244127130353, 'fraction_numerical': 0.0008291110087517273, 'mean_word_length': 5.69472710453284, 'pattern_counts': {'":': 0, '<': 130, '<?xml version=': 0, '>': 130, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7672402', 'n_tokens_mistral': 6223, 'n_tokens_neox': 5946, 'n_words': 2465}