<commit_before>CharacterController = RouteController.extend({
	
	onBeforeAction: function () {
		console.log('Thing are going well');
	},

	onAfterAction: function () {
		console.log('Everything worked');
	},

	waitOn: function () {
		return Meteor.subscribe('character', this.params._id);
	},

	data: function () {
		return Characters.findOne({_id: this.params._id});
	}

});<commit_msg>Meta tags/opengraph tags added to the character pages<commit_after>CharacterController = RouteController.extend({
	
	// onBeforeAction: function () {
	// 	console.log('Thing are going well');
	// },

	onAfterAction: function () {
		if (this.ready()) {
			var character = this.data();

			SEO.set({
				title: character.fullName() + " | phanime",
				meta: {
					'description' : character.biography
				},
				og: {
					'title' : character.fullName() + " | phanime" ,
					'description' : character.biography,
					'type' : 'profile',
					'image' : character.coverImageUrl(),
				}
			});
		}
	},

	waitOn: function () {
		return Meteor.subscribe('character', this.params._id);
	},

	data: function () {
		return Characters.findOne({_id: this.params._id});
	}

});
{'fraction_non_alphanumeric': 0.1681109185441941, 'fraction_numerical': 0.0, 'mean_word_length': 3.547244094488189, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4708098', 'n_tokens_mistral': 432, 'n_tokens_neox': 371, 'n_words': 71}