<commit_before>/*!
 * Query String Handler
 * https://github.com/TheC2Group/query-string-handler
 * @version 1.2.1
 * @license MIT (c) The C2 Group (c2experience.com)
 */
var queryStringHandler=function(){"use strict";var hasHistoryApi=typeof history.pushState!=="undefined";var _query;var _listeners=[];var extend=function(target,obj){var args;if(target===null||typeof target!=="object"){target={}}if(obj===null||typeof obj!=="object"){return target}Object.keys(obj).forEach(function(key){var val=obj[key];if(typeof val==="undefined"||val===null){val=""}else if(typeof val==="object"){val=JSON.stringify(val)}else if(typeof val!=="string"){val=String(val)}target[key]=val});if(arguments.length>2){args=Array.prototype.slice.call(arguments,2);args.unshift(target);return extend.apply(this,args)}return target};var update=function(){var qs={};location.search.substring(1).split("&").forEach(function(section){var pair=section.split("=");if(pair.length>1){qs[pair[0]]=decodeURIComponent(pair[1])}});return qs};var toString=function(encoded,params){var query=params?extend({},_query,params):_query;var keys=Object.keys(query);if(keys.length===0)return"";var result=keys.map(function(key){return query[key]?key+"="+encodeURIComponent(query[key]):""}).filter(function(i){return i}).join(encoded?"&amp;":"&");return"?"+result};var emit=function(type){_listeners.forEach(function(cb){cb(type)})};var onpopstate=function(){var loaded=false;if(document.readyState==="complete"){loaded=true}else{window.addEventListener("load",function(){setTimeout(function(){loaded=true},0)})}return function(){if(!loaded)return;_query=update();emit("pop")}}();if(hasHistoryApi){window.addEventListener("popstate",onpopstate)}_query=update();return{update:function(){_query=update()},getValue:function(name){if(typeof _query[name]!=="string")return"";return _query[name]},toString:toString,push:function(changes,title){if(typeof changes!=="object")return;var state=extend(_query,changes);if(hasHistoryApi){history.pushState(state,title||null,toString())}emit("push")},replace:function(changes,title){if(typeof changes!=="object")return;var state=extend(_query,changes);if(hasHistoryApi){history.replaceState(state,title||null,toString())}emit("replace")},addListener:function(callback){if(typeof callback!=="function")return;_listeners.push(callback)},clone:function(obj){if(typeof obj!=="object")return extend({},_query);return extend({},_query,obj)},clear:function(method,title){method=method||"push";_query={};if(!hasHistoryApi||["replace","push"].indexOf(method)===-1)return;this[method]({},title)}}}();if(typeof module!=="undefined"&&"exports"in module){module.exports=queryStringHandler}<commit_msg>minify<commit_after>/*!
 * Query String Handler
 * https://github.com/TheC2Group/query-string-handler
 * @version 2.0.0
 * @license MIT (c) The C2 Group (c2experience.com)
 */
var queryStringHandler=function(){"use strict";var hasHistoryApi=typeof history.pushState!=="undefined";var _query;var _listeners=[];var extend=function(target,obj){var args;if(target===null||typeof target!=="object"){target={}}if(obj===null||typeof obj!=="object"){return target}Object.keys(obj).forEach(function(key){var val=obj[key];if(typeof val==="undefined"||val===null){val=""}else if(typeof val==="object"){val=JSON.stringify(val)}else if(typeof val!=="string"){val=String(val)}target[key]=val});if(arguments.length>2){args=Array.prototype.slice.call(arguments,2);args.unshift(target);return extend.apply(this,args)}return target};var update=function(){var qs={};location.search.substring(1).split("&").forEach(function(section){var pair=section.split("=");if(pair.length>1){qs[pair[0]]=decodeURIComponent(pair[1])}});return qs};var getPathname=function(){if(window.location.pathname){return window.location.pathname}var href=window.location.href;var qIndex=href.indexOf("?");return qIndex===-1?href:href.substring(0,qIndex)};var toString=function(encoded,params){var query=params?extend({},_query,params):_query;var keys=Object.keys(query);if(keys.length===0)return getPathname();var result=keys.map(function(key){return query[key]?key+"="+encodeURIComponent(query[key]):""}).filter(function(i){return i}).join(encoded?"&amp;":"&");return result?"?"+result:getPathname()};var emit=function(type){_listeners.forEach(function(cb){cb(type)})};var onpopstate=function(){var loaded=false;if(document.readyState==="complete"){loaded=true}else{window.addEventListener("load",function(){setTimeout(function(){loaded=true},0)})}return function(){if(!loaded)return;_query=update();emit("pop")}}();if(hasHistoryApi){window.addEventListener("popstate",onpopstate)}_query=update();return{update:function(){_query=update()},getValue:function(name){if(typeof _query[name]!=="string")return"";return _query[name]},toString:toString,push:function(changes,title){if(typeof changes!=="object")return;var state=extend(_query,changes);if(hasHistoryApi){history.pushState(state,title||null,toString())}emit("push")},replace:function(changes,title){if(typeof changes!=="object")return;var state=extend(_query,changes);if(hasHistoryApi){history.replaceState(state,title||null,toString())}emit("replace")},addListener:function(callback){if(typeof callback!=="function")return;_listeners.push(callback)},clone:function(obj){if(typeof obj!=="object")return extend({},_query);return extend({},_query,obj)},clear:function(method,title){method=method||"push";_query={};if(!hasHistoryApi||["replace","push"].indexOf(method)===-1)return;this[method]({},title)}}}();if(typeof module!=="undefined"&&"exports"in module){module.exports=queryStringHandler}
{'fraction_non_alphanumeric': 0.22063037249283668, 'fraction_numerical': 0.0057306590257879654, 'mean_word_length': 22.17427385892116, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '7566738', 'n_tokens_mistral': 1728, 'n_tokens_neox': 1709, 'n_words': 126}