<commit_before>/*!
 * jQuery Hide Show
 *
 * @description: Inserts an accessible buttons/links to hide and show sections of content
 * @source: https://github.com/nomensa/jquery.hide-show.git
 * @version: '1.0.0'
 *
 * @author: Nomensa
 * @license: licenced under MIT - http://opensource.org/licenses/mit-license.php
*/
!function(a,b,c,d){"use strict";function e(b,d){function e(){if(k.triggerElement=f(),k.element.addClass(k.options.containerClass).attr("id","content-"+h),null!==k.options.insertTriggerLocation&&k.element.attr("tabindex","-1"),"hidden"===k.options.state?(k.element.addClass(k.options.containerCollapsedClass).attr("aria-hidden","true").hide(),k.triggerElement.attr("aria-expanded","false")):(k.element.addClass(k.options.containerExpandedClass).attr("aria-hidden","false").show(),k.triggerElement.attr("aria-expanded","true")),null===k.options.insertTriggerLocation)k.element.before(k.triggerElement);else switch(k.options.insertMethod){case"after":a(k.options.insertTriggerLocation).after(k.triggerElement);break;case"append":a(k.options.insertTriggerLocation).append(k.triggerElement);break;case"prepend":a(k.options.insertTriggerLocation).prepend(k.triggerElement);break;default:a(k.options.insertTriggerLocation).before(k.triggerElement)}h++,k.options.callbackCreate()}function f(){var b,d="content-";return null===k.options.triggerElementTarget?(b=a(c.createElement("button")),b.attr({"aria-controls":d+h,"class":k.options.buttonClass}),"hidden"===k.options.state?a(b).html(k.options.showText):a(b).html(k.options.hideText),a(b).click(i(k))):(b=a(k.options.triggerElementTarget),b.attr({"aria-controls":d+h,"class":k.options.buttonClass,role:"button",tabindex:"0"}),a(b).click(i(k)).keydown(j(k))),"hidden"===k.options.state?a(b).addClass(k.options.buttonCollapsedClass):a(b).addClass(k.options.buttonExpandedClass),b}function i(){return k.handleClick=function(b){b.preventDefault(),k.toggle(),k.options.closeOnClick===!0&&"false"===k.element.attr("aria-hidden")&&a(c).mouseup(function(a){var b=k.element,c=a.target;b.is(c)||0!==b.has(c).length||k.triggerElement.is(c)||k.close()})},k.handleClick}function j(){return k.handleKeyDown=function(a){(13===a.keyCode||32===a.keyCode)&&k.toggle()},k.handleKeyDown}var k=this;k.element=a(b),k.options=a.extend({},g,d),e()}var f,g,h=0;f="hideShow",g={buttonClass:"js-hide-show_btn",buttonCollapsedClass:"js-hide-show_btn--collapsed",buttonExpandedClass:"js-hide-show_btn--expanded",callbackCreate:function(){},callbackDestroy:function(){},containerClass:"js-hide-show_content",containerCollapsedClass:"js-hide-show_content--collapsed",containerExpandedClass:"js-hide-show_content--expanded",closeOnClick:!1,hideText:"Hide Content",insertMethod:"before",insertTriggerLocation:null,showText:"Show Content",speed:"slow",state:"shown",triggerElementTarget:null},e.prototype.toggle=function(){"true"===this.element.attr("aria-hidden")?this.open():this.close()},e.prototype.open=function(){var a=this;a.element.addClass(this.options.containerExpandedClass).attr("aria-hidden","false").removeClass(this.options.containerCollapsedClass).slideDown(this.options.speed,function(){null!==a.options.insertTriggerLocation&&a.element.focus()}),a.triggerElement.addClass(this.options.buttonExpandedClass).attr("aria-expanded","true").removeClass(this.options.buttonCollapsedClass),null===a.options.triggerElementTarget&&a.triggerElement.html(this.options.hideText)},e.prototype.close=function(){var a=this;a.element.addClass(this.options.containerCollapsedClass).attr("aria-hidden","true").removeClass(this.options.containerExpandedClass).slideUp(this.options.speed),a.triggerElement.addClass(this.options.buttonCollapsedClass).attr("aria-expanded","false").removeClass(this.options.buttonExpandedClass),null===a.options.triggerElementTarget&&a.triggerElement.html(this.options.showText)},e.prototype.rebuild=function(){return new e(this.element,this.options)},e.prototype.destroy=function(){var b=this.element.attr("id");this.element.removeAttr("aria-hidden id style").removeClass(this.options.containerClass).removeClass(this.options.containerCollapsedClass).removeClass(this.options.containerExpandedClass),null===this.options.triggerElementTarget?(this.triggerElement.remove(),a('[aria-controls="'+b+'"]').remove()):this.triggerElement.off().removeAttr("aria-controls aria-expanded role tabindex").removeClass(this.options.buttonClass).removeClass(this.options.buttonCollapsedClass).removeClass(this.options.buttonExpandedClass),this.options.callbackDestroy()},a.fn[f]=function(b){return this.each(function(){a.data(this,"plugin_"+f)||a.data(this,"plugin_"+f,new e(this,b))})}}(jQuery,window,document);<commit_msg>updated version number in minified file<commit_after>/*!
 * jQuery Hide Show
 *
 * @description: Inserts an accessible buttons/links to hide and show sections of content
 * @source: https://github.com/nomensa/jquery.hide-show.git
 * @version: '1.0.1'
 *
 * @author: Nomensa
 * @license: licenced under MIT - http://opensource.org/licenses/mit-license.php
*/
!function(a,b,c,d){"use strict";function e(b,d){function e(){if(k.triggerElement=f(),k.element.addClass(k.options.containerClass).attr("id","content-"+h),null!==k.options.insertTriggerLocation&&k.element.attr("tabindex","-1"),"hidden"===k.options.state?(k.element.addClass(k.options.containerCollapsedClass).attr("aria-hidden","true").hide(),k.triggerElement.attr("aria-expanded","false")):(k.element.addClass(k.options.containerExpandedClass).attr("aria-hidden","false").show(),k.triggerElement.attr("aria-expanded","true")),null===k.options.insertTriggerLocation)k.element.before(k.triggerElement);else switch(k.options.insertMethod){case"after":a(k.options.insertTriggerLocation).after(k.triggerElement);break;case"append":a(k.options.insertTriggerLocation).append(k.triggerElement);break;case"prepend":a(k.options.insertTriggerLocation).prepend(k.triggerElement);break;default:a(k.options.insertTriggerLocation).before(k.triggerElement)}h++,k.options.callbackCreate()}function f(){var b,d="content-";return null===k.options.triggerElementTarget?(b=a(c.createElement("button")),b.attr({"aria-controls":d+h,"class":k.options.buttonClass}),"hidden"===k.options.state?a(b).html(k.options.showText):a(b).html(k.options.hideText),a(b).click(i(k))):(b=a(k.options.triggerElementTarget),b.attr({"aria-controls":d+h,"class":k.options.buttonClass,role:"button",tabindex:"0"}),a(b).click(i(k)).keydown(j(k))),"hidden"===k.options.state?a(b).addClass(k.options.buttonCollapsedClass):a(b).addClass(k.options.buttonExpandedClass),b}function i(){return k.handleClick=function(b){b.preventDefault(),k.toggle(),k.options.closeOnClick===!0&&"false"===k.element.attr("aria-hidden")&&a(c).mouseup(function(a){var b=k.element,c=a.target;b.is(c)||0!==b.has(c).length||k.triggerElement.is(c)||k.close()})},k.handleClick}function j(){return k.handleKeyDown=function(a){(13===a.keyCode||32===a.keyCode)&&k.toggle()},k.handleKeyDown}var k=this;k.element=a(b),k.options=a.extend({},g,d),e()}var f,g,h=0;f="hideShow",g={buttonClass:"js-hide-show_btn",buttonCollapsedClass:"js-hide-show_btn--collapsed",buttonExpandedClass:"js-hide-show_btn--expanded",callbackCreate:function(){},callbackDestroy:function(){},containerClass:"js-hide-show_content",containerCollapsedClass:"js-hide-show_content--collapsed",containerExpandedClass:"js-hide-show_content--expanded",closeOnClick:!1,hideText:"Hide Content",insertMethod:"before",insertTriggerLocation:null,showText:"Show Content",speed:"slow",state:"shown",triggerElementTarget:null},e.prototype.toggle=function(){"true"===this.element.attr("aria-hidden")?this.open():this.close()},e.prototype.open=function(){var a=this;a.element.addClass(this.options.containerExpandedClass).attr("aria-hidden","false").removeClass(this.options.containerCollapsedClass).slideDown(this.options.speed,function(){null!==a.options.insertTriggerLocation&&a.element.focus()}),a.triggerElement.addClass(this.options.buttonExpandedClass).attr("aria-expanded","true").removeClass(this.options.buttonCollapsedClass),null===a.options.triggerElementTarget&&a.triggerElement.html(this.options.hideText)},e.prototype.close=function(){var a=this;a.element.addClass(this.options.containerCollapsedClass).attr("aria-hidden","true").removeClass(this.options.containerExpandedClass).slideUp(this.options.speed),a.triggerElement.addClass(this.options.buttonCollapsedClass).attr("aria-expanded","false").removeClass(this.options.buttonExpandedClass),null===a.options.triggerElementTarget&&a.triggerElement.html(this.options.showText)},e.prototype.rebuild=function(){return new e(this.element,this.options)},e.prototype.destroy=function(){var b=this.element.attr("id");this.element.removeAttr("aria-hidden id style").removeClass(this.options.containerClass).removeClass(this.options.containerCollapsedClass).removeClass(this.options.containerExpandedClass),null===this.options.triggerElementTarget?(this.triggerElement.remove(),a('[aria-controls="'+b+'"]').remove()):this.triggerElement.off().removeAttr("aria-controls aria-expanded role tabindex").removeClass(this.options.buttonClass).removeClass(this.options.buttonCollapsedClass).removeClass(this.options.buttonExpandedClass),this.options.callbackDestroy()},a.fn[f]=function(b){return this.each(function(){a.data(this,"plugin_"+f)||a.data(this,"plugin_"+f,new e(this,b))})}}(jQuery,window,document);
{'fraction_non_alphanumeric': 0.20534188034188033, 'fraction_numerical': 0.002777777777777778, 'mean_word_length': 12.372857142857143, 'pattern_counts': {'":': 14, '<': 3, '<?xml version=': 0, '>': 3, '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': '3705296', 'n_tokens_mistral': 2949, 'n_tokens_neox': 2962, 'n_words': 116}