<commit_before>Template.profile.helpers({
	'profile': function() {
		return Meteor.users.findOne({'id':this._id});
	},
	'firstname': function() {
		var first = Meteor.user().realname.split(' ');
		return first[0];
	}
});

Template.profile.events({
	'click .edit-bio': function() {
		if (Session.get("gearclicked"))
		{
			var biography = $(".editable-bio").val();
			var origin = $("<p id='biography'></p>");
			origin.text(biography);
			$(".editable-bio").replaceWith(origin);
			$(".statusbio").remove();
			Session.set("gearclicked", false);
		}
		else
		{
			var editableText = $("<textarea style='width:600px;height:75px;' class='editable-bio' /> <p class='statusbio'></p>");
			var pHtml = $("#biography").text();
			editableText.val(pHtml);
			$("#biography").replaceWith(editableText);
			Session.set("gearclicked", "true");
		}<commit_msg>jquery fix<commit_after>Template.profile.helpers({
	'profile': function() {
		return Meteor.users.findOne({'id':this._id});
	},
	'firstname': function() {
		var first = Meteor.user().realname.split(' ');
		return first[0];
	}
});

Template.profile.events({
	'click .edit-bio': function() {
		if (Session.get("gearclicked"))
		{
			var biography = $(".editable-bio").val();
			var origin = $("#biography");
			origin.text(biography);
			$(".editable-bio").replaceWith(origin);
			$(".statusbio").remove();
			Session.set("gearclicked", false);
		}
		else
		{
			var editableText = $("<textarea style='width:600px;height:75px;' class='editable-bio' /> <p class='statusbio'></p>");
			var pHtml = $("#biography").text();
			editableText.val(pHtml);
			$("#biography").replaceWith(editableText);
			Session.set("gearclicked", "true");
		}
{'fraction_non_alphanumeric': 0.22756981580510993, 'fraction_numerical': 0.0071301247771836, 'mean_word_length': 4.651006711409396, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '3939237', 'n_tokens_mistral': 664, 'n_tokens_neox': 590, 'n_words': 90}