<commit_before>'use strict';

eventsApp.directive('upvote', function() {
	return {
		restrict: 'E',
		replace: true,
		templateUrl: '/templates/directives/upvote.html',
		scope: {
			//here '&' means that we are excuting whatever that will be in scope of parent scope or say excuting function on scope on parent scope
			upvote: "&",
			downvote: "&",
			count: "="
		}
	}
})<commit_msg>a note for isolate scope<commit_after>'use strict';

eventsApp.directive('upvote', function() {
	return {
		restrict: 'E',
		replace: true,
		templateUrl: '/templates/directives/upvote.html',
		scope: {
			//here '&' means that we are excuting whatever that will be in scope of parent scope or say excuting function on scope on parent scope
			upvote: "&",
			downvote: "&",
			count: "="
		}
	}
})

/*
Note: In isolate scope we have to use '&' i.e as myAttr: '&' inorder to bind a local scope property to a function we want 
to execute in the parent scope
*/
{'fraction_non_alphanumeric': 0.12790697674418605, 'fraction_numerical': 0.0, 'mean_word_length': 3.665024630541872, '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': '1975562', 'n_tokens_mistral': 338, 'n_tokens_neox': 305, 'n_words': 111}