<commit_before>App.Activity = Em.Object.extend({
	kind: null, // App.Kind
	icon: function() {
		switch (this.getPath('kind.kind')) {
			case 'campaign': return 'icon-flag';
			case 'call_list': return 'icon-th-list';
			case 'todo': return 'icon-ok';
			case 'deal': return 'icon-tag';
			case 'meeting': return 'icon-flag';
			default:
				Em.warn("Unknown Kind: %@1".fmt(this.get('kind')));
				return 'icon-question-sign';
		}
	}.property('kind'),
	formattedTitle: function() {
		var activity = this.get('data');
		switch (this.getPath('kind.kind')) {
			case 'campaign': return "Complete \"%@1\"Campaign".loc(activity.reference.campaign.name);
			case 'call_list':
				var length = activity.reference.call_list.users.length;
				return (length===1)?"Call 1 User".loc():"Call %@1 Users".loc(length);
			case 'todo': return "Complete the \"%@1\" todo".loc(activity.reference.todo.description);
			case 'deal': return "Close the \"%@1\" deal".loc(activity.reference.deal.name);
			case 'meeting': return "Attend meeting about %@1".loc(activity.reference.meeting.topic);
			default:<commit_msg>Better icon<commit_after>App.Activity = Em.Object.extend({
	kind: null, // App.Kind
	icon: function() {
		switch (this.getPath('kind.kind')) {
			case 'campaign': return 'icon-flag';
			case 'call_list': return 'icon-th-list';
			case 'todo': return 'icon-ok';
			case 'deal': return 'icon-tag';
			case 'meeting': return 'icon-eye-open';
			default:
				Em.warn("Unknown Kind: %@1".fmt(this.get('kind')));
				return 'icon-question-sign';
		}
	}.property('kind'),
	formattedTitle: function() {
		var activity = this.get('data');
		switch (this.getPath('kind.kind')) {
			case 'campaign': return "Complete \"%@1\"Campaign".loc(activity.reference.campaign.name);
			case 'call_list':
				var length = activity.reference.call_list.users.length;
				return (length===1)?"Call 1 User".loc():"Call %@1 Users".loc(length);
			case 'todo': return "Complete the \"%@1\" todo".loc(activity.reference.todo.description);
			case 'deal': return "Close the \"%@1\" deal".loc(activity.reference.deal.name);
			case 'meeting': return "Attend meeting about %@1".loc(activity.reference.meeting.topic);
			default:
{'fraction_non_alphanumeric': 0.19406392694063926, 'fraction_numerical': 0.0073059360730593605, 'mean_word_length': 4.330900243309002, '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': '3179536', 'n_tokens_mistral': 822, 'n_tokens_neox': 725, 'n_words': 162}