<commit_before>'use strict';

angular
	.module(
		'npMenu',
		[ ]
	);

/** @ngInject */
function npMenuDirective(
	$log, $compile/*, $stateParams, $state, $timeout*/
)
{
	$log.debug('\nnpMenuDirective::Init\n');
	var Directive = function()
	{
		this.restrict = 'EA';
		this.scope = { 'menuitem': '=' };
		this.template =
			'<a ng-href="{{menuitem.link}}" id="menu{{menuitem.id}}" ng-class="(menuitem.current===true) ? \'selected\' : \'\'">{{ menuitem.text }}</a>'+
			'<ul>' + 
				'<li ng-repeat="child in menuitem.children">' + 
					'<span np-menu menuitem="child"></span>' +
				'</li>' +
			'</ul>';
		this.compile = function (tElement, tAttrs, transclude)
		{<commit_msg>npMenu - added window targeting<commit_after>'use strict';

angular
	.module(
		'npMenu',
		[ ]
	);

/** @ngInject */
function npMenuDirective(
	$log, $compile/*, $stateParams, $state, $timeout*/
)
{
	$log.debug('\nnpMenuDirective::Init\n');
	var Directive = function()
	{
		this.restrict = 'EA';
		this.scope = { 'menuitem': '=' };
		this.template =
			'<a ng-href="{{menuitem.link}}" target="{{menuitem.target}}" id="menu{{menuitem.id}}" ng-class="(menuitem.current===true) ? \'selected\' : \'\'">{{ menuitem.text }}</a>'+
			'<ul>' + 
				'<li ng-repeat="child in menuitem.children">' + 
					'<span np-menu menuitem="child"></span>' +
				'</li>' +
			'</ul>';
		this.compile = function (tElement, tAttrs, transclude)
		{
{'fraction_non_alphanumeric': 0.24305060584461868, 'fraction_numerical': 0.0, 'mean_word_length': 3.808219178082192, 'pattern_counts': {'":': 0, '<': 19, '<?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': '6186338', 'n_tokens_mistral': 583, 'n_tokens_neox': 550, 'n_words': 92}