<commit_before>/*!
 * Tracking JS
 *
 * This is a self-executing script that initialises the Google Analytics
 * tracking code without having to include any inline scripts.
 *
 * Copyright 2014 <NAME>
 * Released under the MIT license
 * http://jquery.org/license
 */
( function( window, document, undefined ) {
	var metas = document.getElementsByTagName( "meta" ) || [];

	function meta( key ) {
		for ( var i = 0; i < metas.length; i++ ) { 
			if ( metas[i].getAttribute( "name" ) === key ) { 
				return metas[i].getAttribute( "content" );
			}
		}
		return "";
	}

	function metaslike( key ) {
		var metalre = new RegExp( "^" + key + ".*" ); 
		var returns = []; 
		for ( var i = 0; i < metas.length; i++ ) { 
			if ( metas[i].getAttribute( "name" ).match( metalre ) ) { 
				returns.push( metas[i] );
			}
		} 
		return returns;
	}

	function gaProtocol() {
		var proto = "https:";
		if ( window.location.protocol === "http:") {
			proto = "http:";
		}
		return proto;
	}

	var analyticsUrl = "//www.google-analytics.com/analytics.js",
		analyticsDebugUrl = "//www.google-analytics.com/analytics_debug.js",
		trackingId = meta( "ga-trackingid" ) || null,
		requires = meta( "ga-requires" ).split( "," ) || [],
		debug = meta( "ga-debug" ) || false,
		trace = meta( "ga-trace" ) || false,
		campaignFields = [ "campaignName", "campaignSource", "campaignMedium", "campaignContent", "campaignKeyword" ],
		dimensions = metaslike( "ga-dimension" ),
		userId = meta( "ga-userid" );

	if ( trackingId !== null && trackingId.length > 0 ) {
		if ( debug && debug === "true" ) {
			analyticsUrl = analyticsDebugUrl;
		}

		if ( trace && trace === "true" ) {
			window.ga_debug = { trace: true };
		}

		analyticsUrl = gaProtocol() + analyticsUrl;

		(function(i,s,o,g,r,a,m){i["GoogleAnalyticsObject"]=r;i[r]=i[r]||function(){
		(i[r].q=i[r].q||[]).push(arguments);},i[r].l=1*new Date();a=s.createElement(o),
		m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m);
		})(window,document,"script",analyticsUrl,"ga");

		if ( typeof(ga) !== "function" ) {
			console.log("Tracking-JS failed. Google Analytics Object not loaded.");
			return;
		}

		ga( "create", trackingId, "auto" );
		
		if ( requires.indexOf( "displayfeatures" ) > -1 ) {
			ga( "require", "displayfeatures" );
		}

		if ( requires.indexOf( "linkid" ) > -1 ) {
			ga( "require", "linkid", "linkid.js" );
		}

		for ( var i = 0; i < campaignFields.length; i++ ) {
			if ( meta( campaignFields[i] ) ) {
				ga( "set", campaignFields[i], meta( campaignFields[i] ) );
			}
		}

		for ( var j = 0; j < dimensions.length; j++ ) {
			if ( meta( dimensions[i] ) ) {
				ga( "set", dimensions[i], meta( dimensions[i] ) );
			}
		}
<commit_msg>Fix issue with linkid URL<commit_after>/*!
 * Tracking JS
 *
 * This is a self-executing script that initialises the Google Analytics
 * tracking code without having to include any inline scripts.
 *
 * Copyright 2014 <NAME>
 * Released under the MIT license
 * http://jquery.org/license
 */
( function( window, document, undefined ) {
	var metas = document.getElementsByTagName( "meta" ) || [];

	function meta( key ) {
		for ( var i = 0; i < metas.length; i++ ) { 
			if ( metas[i].getAttribute( "name" ) === key ) { 
				return metas[i].getAttribute( "content" );
			}
		}
		return "";
	}

	function metaslike( key ) {
		var metalre = new RegExp( "^" + key + ".*" ); 
		var returns = []; 
		for ( var i = 0; i < metas.length; i++ ) { 
			if ( metas[i].getAttribute( "name" ).match( metalre ) ) { 
				returns.push( metas[i] );
			}
		} 
		return returns;
	}

	function gaProtocol() {
		var proto = "https:";
		if ( window.location.protocol === "http:") {
			proto = "http:";
		}
		return proto;
	}

	var analyticsUrl = "//www.google-analytics.com/analytics.js",
		analyticsDebugUrl = "//www.google-analytics.com/analytics_debug.js",
		linkidUrl = "//www.google-analytics.com/plugins/ua/linkid.js",
		trackingId = meta( "ga-trackingid" ) || null,
		requires = meta( "ga-requires" ).split( "," ) || [],
		debug = meta( "ga-debug" ) || false,
		trace = meta( "ga-trace" ) || false,
		campaignFields = [ "campaignName", "campaignSource", "campaignMedium", "campaignContent", "campaignKeyword" ],
		dimensions = metaslike( "ga-dimension" ),
		userId = meta( "ga-userid" );

	if ( trackingId !== null && trackingId.length > 0 ) {
		if ( debug && debug === "true" ) {
			analyticsUrl = analyticsDebugUrl;
		}

		if ( trace && trace === "true" ) {
			window.ga_debug = { trace: true };
		}

		analyticsUrl = gaProtocol() + analyticsUrl;

		(function(i,s,o,g,r,a,m){i["GoogleAnalyticsObject"]=r;i[r]=i[r]||function(){
		(i[r].q=i[r].q||[]).push(arguments);},i[r].l=1*new Date();a=s.createElement(o),
		m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m);
		})(window,document,"script",analyticsUrl,"ga");

		if ( typeof(ga) !== "function" ) {
			console.log("Tracking-JS failed. Google Analytics Object not loaded.");
			return;
		}

		ga( "create", trackingId, "auto" );
		
		if ( requires.indexOf( "displayfeatures" ) > -1 ) {
			ga( "require", "displayfeatures" );
		}

		if ( requires.indexOf( "linkid" ) > -1 ) {
			linkidUrl = gaProtocol() + linkidUrl;
			ga( "require", "linkid",  linkidUrl );
		}

		for ( var i = 0; i < campaignFields.length; i++ ) {
			if ( meta( campaignFields[i] ) ) {
				ga( "set", campaignFields[i], meta( campaignFields[i] ) );
			}
		}

		for ( var j = 0; j < dimensions.length; j++ ) {
			if ( meta( dimensions[i] ) ) {
				ga( "set", dimensions[i], meta( dimensions[i] ) );
			}
		}

{'fraction_non_alphanumeric': 0.1935309973045822, 'fraction_numerical': 0.005031446540880503, 'mean_word_length': 3.420969023034154, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 5, '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': '3167662', 'n_tokens_mistral': 2229, 'n_tokens_neox': 1983, 'n_words': 437}