<commit_before>define( [
	'jquery',
	'underscore'
], function ( $ /*, _*/ ) {
	'use strict';

	// Taken from http://www.briangrinstead.com/blog/console-log-helper-function
	// Full version of `log` that:
	//  * Prevents errors on console methods when no console present.
	//  * Exposes a global 'log' function that preserves line numbering and formatting.
	(function () {
		var method;
		var noop = function () { };
		var methods = [
			'assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error',
			'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log',
			'markTimeline', 'profile', 'profileEnd', 'table', 'time', 'timeEnd',
			'timeStamp', 'trace', 'warn'
		];
		var length = methods.length;
		var console = (window.console = window.console || {});

		while (length--) {
			method = methods[length];

			// Only stub undefined methods.
			if (!console[method]) {
				console[method] = noop;
			}
		}


		if (Function.prototype.bind) {
			window.log = Function.prototype.bind.call(console.log, console);
		}
		else {
			window.log = function() {
				Function.prototype.apply.call(console.log, console, arguments);
			};
		}
	})();

	return {

		/**
		 * Add a style to the document's header.
		 * @param cssContent (String)
		 */
		addStyleToHeader: function ( cssContent ) {
			$( "<style>" ).html( cssContent ).appendTo( "head" );
		}



	};

} );<commit_msg>Added method addStyleLinkToHeader to extensionUtils<commit_after>define( [
	'jquery',
	'underscore'
], function ( $, _ ) {
	'use strict';

	// Taken from http://www.briangrinstead.com/blog/console-log-helper-function
	// Full version of `log` that:
	//  * Prevents errors on console methods when no console present.
	//  * Exposes a global 'log' function that preserves line numbering and formatting.
	(function () {
		var method;
		var noop = function () { };
		var methods = [
			'assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error',
			'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log',
			'markTimeline', 'profile', 'profileEnd', 'table', 'time', 'timeEnd',
			'timeStamp', 'trace', 'warn'
		];
		var length = methods.length;
		var console = (window.console = window.console || {});

		while ( length-- ) {
			method = methods[length];

			// Only stub undefined methods.
			if ( !console[method] ) {
				console[method] = noop;
			}
		}

		if ( Function.prototype.bind ) {
			window.log = Function.prototype.bind.call( console.log, console );
		}
		else {
			window.log = function () {
				Function.prototype.apply.call( console.log, console, arguments );
			};
		}
	})();

	return {

		/**
		 * Add a style to the document's header.
		 * @param cssContent (String)
		 */
		addStyleToHeader: function ( cssContent ) {
			$( "<style>" ).html( cssContent ).appendTo( "head" );
		},

		/**
		 * Add as style link to the document's header
		 * @param linkUrl Url to the CSS file
		 * @param id If an id is passed, the function will check if this style link has already been added or not.
		 * If yes, it will not be added again.
		 */
		addStyleLinkToHeader: function ( linkUrl, id ) {
			if ( id && !_.isEmpty( id ) ) {
				if ( !$( '#id' ).length ) {
					var $styleLink = $( document.createElement( 'link' ) );
					$styleLink.attr( 'rel', 'stylesheet' );
					$styleLink.attr( 'type', 'text/css' );
					$styleLink.attr( 'href', linkUrl );
					if ( id && !_.isEmpty( id ) ) {
						$styleLink.attr( 'id', id );
					}
					$( 'head' ).append( $styleLink );
				}
			}
		}

	};

} );
{'fraction_non_alphanumeric': 0.1727298768261243, 'fraction_numerical': 0.0, 'mean_word_length': 3.051044083526682, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, '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': '4539101', 'n_tokens_mistral': 1317, 'n_tokens_neox': 1127, 'n_words': 310}