<commit_before>'use strict';

var linkTag = -1, compileTag = -1;

angular.module('tngDirectiveLifecycle', [])
.directive('tngLifecycle', function() {
	console.log('[tng-lifecycle]: construction');

	return {
		controller: function($scope) {
			console.log('[tng-lifecycle]: controller');
		},
		compile: function(tElement) {
			console.log('[tng-lifecycle]: compile');

			tElement.addClass('pretty');
			tElement.append('compile tag: ' + ++compileTag + '<br>');

			var preElement;

			return {
				pre: function(scope, iElement) {
					preElement = iElement;

					console.log('[tng-lifecycle]: pre-link');

					iElement.append('pre-link tag: ' + ++linkTag + '<br>');
					iElement.append('tElement === iElement? => ' + (tElement === iElement) + '<br>');
				},
				post: function(scope, iElement) {
					console.log('[tng-lifecycle]: post-link');

					iElement.append('post-link tag: ' + ++linkTag + '<br>');
					iElement.append('tElement === iElement? => ' + (tElement === iElement) + '<br>');
					iElement.append('preElement === postElement? => ' + (preElement === iElement));
				}
			};
		}
	};
});<commit_msg>Minor changes.<commit_after>'use strict';

var linkTag = -1, compileTag = -1;

angular.module('tngDirectiveLifecycle', [])
.directive('tngLifecycle', function() {
	console.log('[tng-lifecycle]: construction');

	return {
		controller: function($scope) {
			console.log('[tng-lifecycle]: controller');
		},
		compile: function(tElement) {
			console.log('[tng-lifecycle]: compile');

			tElement.addClass('pretty');
			tElement.append('compile: ' + ++compileTag + '<br>');

			var preElement;

			return {
				pre: function(scope, iElement) {
					preElement = iElement;

					console.log('[tng-lifecycle]: pre-link');

					iElement.append('pre-link: ' + ++linkTag + '<br>');
					iElement.append('tElement === iElement? => ' + (tElement === iElement) + '<br>');
				},
				post: function(scope, iElement) {
					console.log('[tng-lifecycle]: post-link');

					iElement.append('post-link: ' + ++linkTag + '<br>');
					iElement.append('tElement === iElement? => ' + (tElement === iElement) + '<br>');
					iElement.append('preElement === postElement? => ' + (preElement === iElement));
				}
			};
		}
	};
});
{'fraction_non_alphanumeric': 0.21021963245181532, 'fraction_numerical': 0.0017929179740026895, 'mean_word_length': 3.8947368421052633, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 19, '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': '792706', 'n_tokens_mistral': 880, 'n_tokens_neox': 739, 'n_words': 124}