<commit_before>const HTMLLinkElement=function(tag){const proxy={},link=document.querySelector("link#"+tag+"[rel\x3dimport], link[href*\x3d"+tag+"][rel\x3dimport]"),register=(event,handler)=>HTMLImports&&!!!HTMLImports.useNative?HTMLImports.whenReady((_)=>handler({target:link})):link.addEventListener(event,handler);Object.defineProperties(proxy,{"addEventListener":{writable:false,value:function(event,handler){!!!link?handler({target:proxy}):register(event,handler)}}});return proxy};
class TokenList{constructor(node){const tokenize=(node)=>(node.text=node.textContent)&&node.textContent.match(/{(\w+|#)}/g).map((symbol)=>symbol.match(/(\w+|#)/g)[0]).map(insert(node)),insert=(token)=>(symbol)=>(this[symbol]=this[symbol]||[])&&this[symbol].push(token);this.sift(node).map(tokenize)}sift(node){const nodes=[],visit=(node)=>node.nodeType===Node.TEXT_NODE?TEXT_NODE(node)&&NodeFilter.FILTER_ACCEPT:ELEMENT_NODE(node.attributes)&&NodeFilter.FILTER_REJECT,TEXT_NODE=(node)=>/{(\w+|#)}/.test(node.textContent),
ELEMENT_NODE=(attributes)=>Array.from(attributes).filter((attr)=>/{(\w+|#)}/g.test(attr.value)).map((attribute)=>nodes.push(attribute)),walker=document.createNodeIterator(node,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT,visit);while(node=walker.nextNode())nodes.push(node);return nodes}bind(context){const replace=(symbol)=>this[symbol].map((token)=>token.textContent=token.text)&&this[symbol].map(replacement(symbol)),replacement=(symbol)=>(item)=>item.textContent=item.textContent.replace("{"+symbol+
"}",context[symbol]);Object.keys(this).filter((key)=>context[key]!==undefined).map(replace)}}
const HTMLTemplateElement=Template=function(name){return Object.assign(document.querySelector("template[name\x3d"+name+"]"),{bind});function bind(context){contexts=[].concat(...[context]);let clone,template=this.cloneNode(false);template.innerHTML=contexts.map((context)=>context).map((context,index)=>{context=typeof context==="object"?context:{self:context};context["#"]=index;clone=this.cloneNode(true);void(new TokenList(clone.content)).bind(context);return clone.innerHTML}).join("");void(this.dependents||
[]).map((dependent)=>dependent.remove());this.dependents=Array.from(template.content.childNodes);this.after(template.content);return this}};const EventTarget=(Element)=>class extends Element{connectedCallback(){(new HTMLLinkElement(this.tagName.toLowerCase())).addEventListener("load",this.onimport.bind(this))}on(event,handler){this.addEventListener(event,handler)}};const ParentNode=(Element)=>class extends Element{selectAll(selector){return this.querySelectorAll(selector)}select(selector){return this.selectAll(selector)[0]}};
const GlobalEventHandlers=(Element)=>class extends Element{onimport(event,root=event.target.import){root&&this.clone(root.querySelector("template"));Element.onconnect&&Element.onconnect.call(this);this.render()}register(onevents=(attr)=>/^on/.test(attr.name||attr)){const mirror=(handler)=>this[handler]===null&&(this[handler]=Element[handler].bind(this)),nodes=":not(script):not(template):not(style):not(link)",children=Array.from(this.querySelectorAll(nodes)),registered=(node)=>Array.from(node.attributes).filter(onevents),
reflect=(node)=>Array.from(node.attributes).filter(onevents).map(reflection(node)),reflection=(node)=>(event)=>node[event]=handle(node[event]),handle=(handler,[_,event]=/{\s*(\w+)\s*}/.exec(handler)||[])=>event&&Element[event]&&Element[event].bind(this)||handler||null;Object.getOwnPropertyNames(Element).filter(onevents).map(mirror);void[this].concat(children).filter(registered).map(reflect)}};<commit_msg>:muscle: bump distribution for ./snuggsi.min.js<commit_after>const HTMLLinkElement=function(tag){const proxy={},link=document.querySelector("link#"+tag+"[rel\x3dimport], link[href*\x3d"+tag+"][rel\x3dimport]"),register=(event,handler)=>HTMLImports&&!!!HTMLImports.useNative?HTMLImports.whenReady((_)=>handler({target:link})):link.addEventListener(event,handler);Object.defineProperties(proxy,{"addEventListener":{writable:false,value:function(event,handler){!!!link?handler({target:proxy}):register(event,handler)}}});return proxy};
class TokenList{constructor(node){const tokenize=(node)=>(node.text=node.textContent)&&node.textContent.match(/{(\w+|#)}/g).map((symbol)=>symbol.match(/(\w+|#)/g)[0]).map(insert(node)),insert=(token)=>(symbol)=>(this[symbol]=this[symbol]||[])&&this[symbol].push(token);this.sift(node).map(tokenize)}sift(node){const nodes=[],visit=(node)=>node.nodeType===Node.TEXT_NODE?TEXT_NODE(node)&&NodeFilter.FILTER_ACCEPT:ELEMENT_NODE(node.attributes)&&NodeFilter.FILTER_REJECT,TEXT_NODE=(node)=>/{(\w+|#)}/.test(node.textContent),
ELEMENT_NODE=(attributes)=>Array.from(attributes).filter((attr)=>/{(\w+|#)}/g.test(attr.value)).map((attribute)=>nodes.push(attribute)),walker=document.createNodeIterator(node,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT,visit);while(node=walker.nextNode())nodes.push(node);return nodes}bind(context){const replace=(symbol)=>this[symbol].map((token)=>token.textContent=token.text)&&this[symbol].map(replacement(symbol)),replacement=(symbol)=>(item)=>item.textContent=item.textContent.replace("{"+symbol+
"}",context[symbol]);Object.keys(this).filter((key)=>context[key]!==undefined).map(replace)}}
const HTMLTemplateElement=Template=function(name){return Object.assign(document.querySelector("template[name\x3d"+name+"]"),{bind});function bind(context){contexts=[].concat(...[context]);let clone,template=this.cloneNode(false);template.innerHTML=contexts.map((context)=>context).map((context,index)=>{context=typeof context==="object"?context:{self:context};context["#"]=index;clone=this.cloneNode(true);void(new TokenList(clone.content)).bind(context);return clone.innerHTML}).join("");void(this.dependents||
[]).map((dependent)=>dependent.remove());this.dependents=Array.from(template.content.childNodes);this.after(template.content);return this}};const EventTarget=(Element)=>class extends Element{connectedCallback(){(new HTMLLinkElement(this.tagName.toLowerCase())).addEventListener("load",this.onimport.bind(this))}on(event,handler){this.addEventListener(event,handler)}};const ParentNode=(Element)=>class extends Element{selectAll(selector){return this.querySelectorAll(selector)}select(selector){return this.selectAll(selector)[0]}};
const GlobalEventHandlers=(Element)=>class extends Element{onimport(event,root=event.target.import){root&&this.clone(root.querySelector("template"));Element.onconnect&&Element.onconnect.call(this);this.render()}register(onevents=(attr)=>/^on/.test(attr)){const mirror=(handler)=>onevents(handler)&&this[handler]===null&&(this[handler]=Element[handler].bind(this)),nodes="*",children=Array.from(this.querySelectorAll(nodes)),reflect=(node)=>Array.from(node.attributes).map((attr)=>attr.name).filter(onevents).map(reflection(node)),
reflection=(node)=>(event)=>node[event]=/{\s*(\w+)\s*}/.exec(node[event])&&Element[event]&&Element[event].bind(this)||node[event]||null;Object.getOwnPropertyNames(Element).map(mirror);void[this].concat(children).map(reflect)}};
{'fraction_non_alphanumeric': 0.22354779150688822, 'fraction_numerical': 0.0017043033659991478, 'mean_word_length': 20.274924471299094, 'pattern_counts': {'":': 3, '<': 3, '<?xml version=': 0, '>': 60, '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': '3340738', 'n_tokens_mistral': 2148, 'n_tokens_neox': 2142, 'n_words': 79}