<commit_before>module.directive('portrait', [
	'pageService', function (page) {
		return {
			restrict: 'E',
			templateUrl: 'portrait.html',
			replace: true,
			link: {
				pre: function ($scope, $element, $attrs) {
					$scope.portraitExtra = page.$parse($attrs.extra)($scope);
				},
				post: function ($scope, $element, $attrs) {
					$element.find('.portrait').addClass($attrs.class);
					$element.attr('class', '');
				}
			}
		};
	}
]);
<commit_msg>portrait image disappearance bug fixed<commit_after>module.directive('portrait', [
	'pageService', function (page) {
		return {
			restrict: 'E',
			templateUrl: 'portrait.html',
			link: {
				pre: function ($scope, $element, $attrs) {
					$scope.portraitExtra = page.$parse($attrs.extra)($scope);
				},
				post: function ($scope, $element, $attrs) {
					$element.find('.portrait').addClass($attrs.class);
					$element.attr('class', '');
				}
			}
		};
	}
]);

{'fraction_non_alphanumeric': 0.19848975188781015, 'fraction_numerical': 0.0, 'mean_word_length': 3.549019607843137, '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': '920047', 'n_tokens_mistral': 385, 'n_tokens_neox': 313, 'n_words': 54}