<commit_before>(function($) {
	Drupal.ggp_theme_menu = {};
	Drupal.ggp_theme_menu.animation = {show:{}, hide:{}, count:0};

	Drupal.behaviors.ggp_theme_menu = {
		attach: function (context, settings) {
			// Sanitize by removing "expanded" on menus already marked "collapsed".
			$('li.collapsed.expanded').removeClass('expanded');

			$('ul.menu li:not(.leaf) span').click(
					function() {
						$(this).toggleClass('collapse expand').next().next().slideToggle('fast');
						$(this).parent('li').toggleClass('collapsed expanded');
						Drupal.ggp_theme_menu.cookieSet();
					}
				); 
		}
	};

	/**
	 * Saves the dhtml_menu cookie.
	 */
	 Drupal.ggp_theme_menu.cookieSet = function() {
	   var collapsed = new Array();
	   var expanded = new Array();
	   $('li.collapsed').each(function() {
	     collapsed.push(this.id);
	   });
	   $('li.expanded').each(function() {
	     expanded.push(this.id);
	   });
	   document.cookie = 'Drupal.collapsed_menus=' + collapsed.join(',') + ';path=/';
	   document.cookie = 'Drupal.expanded_menus=' + expanded.join(',') + ';path=/';
	 }

	 Drupal.behaviors.backstretch = {
	 	attach: function (context, settings) {
	 		var pattern = /url\(|\)|"|'/g;
			var bgUrl = $('#incredible_bg').css('backgroundImage').replace(pattern,"");
	 		$.backstretch(settings.ggp_theme.background);
	 	}
	 };
})(jQuery);
<commit_msg>fixed IMCE button display bug<commit_after>(function($) {
	Drupal.ggp_theme_menu = {};
	Drupal.ggp_theme_menu.animation = {show:{}, hide:{}, count:0};

	Drupal.behaviors.ggp_theme_menu = {
		attach: function (context, settings) {
			// Sanitize by removing "expanded" on menus already marked "collapsed".
			$('li.collapsed.expanded').removeClass('expanded');

			$('ul.menu li:not(.leaf) span').click(
					function() {
						$(this).toggleClass('collapse expand').next().next().slideToggle('fast');
						$(this).parent('li').toggleClass('collapsed expanded');
						Drupal.ggp_theme_menu.cookieSet();
					}
				);
		}
	};

	/**
	 * Saves the dhtml_menu cookie.
	 */
	 Drupal.ggp_theme_menu.cookieSet = function() {
	   var collapsed = new Array();
	   var expanded = new Array();
	   $('li.collapsed').each(function() {
	     collapsed.push(this.id);
	   });
	   $('li.expanded').each(function() {
	     expanded.push(this.id);
	   });
	   document.cookie = 'Drupal.collapsed_menus=' + collapsed.join(',') + ';path=/';
	   document.cookie = 'Drupal.expanded_menus=' + expanded.join(',') + ';path=/';
	 }

	 Drupal.behaviors.backstretch = {
	 	attach: function (context, settings) {
	 		if (typeof settings.ggp_theme != 'undefined') {
	 			$.backstretch(settings.ggp_theme.background);
	 	  }
	 	}
	 };
})(jQuery);

{'fraction_non_alphanumeric': 0.1955140186915888, 'fraction_numerical': 0.0007476635514018691, 'mean_word_length': 3.621761658031088, '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': '3254827', 'n_tokens_mistral': 1030, 'n_tokens_neox': 898, 'n_words': 140}