<commit_before>(function(){function C(a){try{return document.head.querySelector(a)}catch(b){return null}}function w(a,b){a="__pwacompat_"+a;void 0!==b&&(x[a]=b);return x[a]}function G(){var a=(y=C('link[rel="manifest"]'))?y.href:"";if(!a)throw'can\'t find <link rel="manifest" href=".." />\'';var b=R([a,location]),d=w("manifest");if(d)try{var g=JSON.parse(d);H(g,b)}catch(r){console.warn("PWACompat error",r)}else{var n=new XMLHttpRequest;n.open("GET",a);n.withCredentials="use-credentials"===y.getAttribute("crossorigin");
n.onload=function(){try{var r=JSON.parse(n.responseText);w("manifest",n.responseText);H(r,b)}catch(t){console.warn("PWACompat error",t)}};n.send(null)}}function R(a){for(var b={},d=0;d<a.length;b={c:b.c},++d){b.c=a[d];try{return new URL("",b.c),function(g){return function(n){return(new URL(n||"",g.c)).toString()}}(b)}catch(g){}}return function(g){return g||""}}function D(a,b,d){if(!C(a+d)){a=document.createElement(a);for(var g in b)a.setAttribute(g,b[g]);document.head.appendChild(a);return a}}function k(a,
b){b&&(!0===b&&(b="yes"),D("meta",{name:a,content:b},'[name="'+a+'"]'))}function u(a){a=a.sizes.split(/\s+/g).map(function(b){return"any"===b?Infinity:parseInt(b,10)||0});return Math.max.apply(null,a)}function H(a,b){function d(f,c,h,m){var e=window.devicePixelRatio,l=E({width:f*e,height:c*e});l.scale(e,e);l.fillStyle=z;l.fillRect(0,0,f,c);l.translate(f/2,(c-20)/2);m&&(c=m.width/e,e=m.height/e,128<e&&(c/=e/128,e=128),48<=c&&48<=e&&(l.drawImage(m,c/-2,e/-2,c,e),l.translate(0,e/2+20)));l.fillStyle=
S?"white":"black";l.font="24px HelveticaNeue-CondensedBold";l.font=getComputedStyle(y).getPropertyValue("--pwacompat-splash-font");e=a.name||a.short_name||document.title;c=l.measureText(e);m=c.f||24;l.translate(0,m);if(c.width<.8*f)l.fillText(e,c.width/-2,0);else for(e=e.split(/\s+/g),c=1;c<=e.length;++c){var I=e.slice(0,c).join(" "),J=l.measureText(I).width;if(c===e.length||J>.6*f)l.fillText(I,J/-2,0),l.translate(0,1.2*m),e.splice(0,c),c=0}return function(){var K=l.canvas.toDataURL();g(h,K);return K}}
function g(f,c){var h=document.createElement("link");h.setAttribute("rel","apple-touch-startup-image");h.setAttribute("media","(orientation: "+f+")");h.setAttribute("href",c);document.head.appendChild(h)}function n(f,c){var h=window.screen,m=d(h.availWidth,h.availHeight,"portrait",f),e=d(h.availHeight,h.availWidth,"landscape",f);setTimeout(function(){v.p=m();setTimeout(function(){v.l=e();c()},10)},10)}function r(f){function c(){--h||f()}var h=A.length+1;c();A.forEach(function(m){var e=new Image;e.crossOrigin=
"anonymous";e.onerror=c;e.onload=function(){e.onload=null;m.href=L(e,z,!0);v.i[e.src]=m.href;c()};e.src=m.href})}function t(){w("iOS",JSON.stringify(v))}function M(){var f=A.shift();if(f){var c=new Image;c.crossOrigin="anonymous";c.onerror=function(){return void M()};c.onload=function(){c.onload=null;n(c,function(){var h=a.background_color&&L(c,z);h?(f.href=h,v.i[c.src]=h,r(t)):t()})};c.src=f.href}else n(null,t)}var q=a.icons||[],p=q.filter(function(f){return(f.h||"").includes("maskable")});q.sort(function(f,
c){return u(c)-u(f)});p.sort(function(f,c){return u(c)-u(f)});var A=(0<p.length?p:q).map(function(f){var c={rel:"icon",href:b(f.src),sizes:f.sizes},h='[sizes="'+f.sizes+'"]';D("link",c,'[rel="icon"]'+h);if(B&&!(120>u(f)))return c.rel="apple-touch-icon",D("link",c,'[rel="apple-touch-icon"]'+h)}).filter(Boolean);p=C('meta[name="viewport"]');var T=!!(p&&p.content||"").match(/\bviewport-fit\s*=\s*cover\b/),N=a.display;p=-1!==U.indexOf(N);k("mobile-web-app-capable",p);V(a.theme_color||"black",T);W&&(k("application-name",
a.short_name),k("msapplication-tooltip",a.description),k("msapplication-starturl",b(a.start_url||".")),k("msapplication-navbutton-color",a.theme_color),(q=q[0])&&k("msapplication-TileImage",b(q.src)),k("msapplication-TileColor",a.background_color));k("theme-color",a.theme_color);if(B){var z=a.background_color||"#f8f9fa",S=O(z);(q=X(a.related_applications))&&k("apple-itunes-app","app-id="+q);k("apple-mobile-web-app-capable",p);k("apple-mobile-web-app-title",a.short_name||a.name);if(p=w("iOS"))try{var F=
JSON.parse(p);g("portrait",F.p);g("landscape",F.l);A.forEach(function(f){var c=F.i[f.href];c&&(f.href=c)});return}catch(f){}var v={i:{}};M()}else q={por:"portrait",lan:"landscape"}[String(a.orientation||"").substr(0,3)]||"",k("x5-orientation",q),k("screen-orientation",q),"fullscreen"===N?(k("x5-fullscreen","true"),k("full-screen","yes")):p&&(k("x5-page-mode","app"),k("browsermode","application"))}function X(a){var b;(a||[]).filter(function(d){return"itunes"===d.platform}).forEach(function(d){d.id?
b=d.id:(d=d.url.match(/id(\d+)/))&&(b=d[1])});return b}function V(a,b){if(B||Y){var d=O(a);if(B)k("apple-mobile-web-app-status-bar-style",b?"black-translucent":d?"black":"default");else{a:{try{var g=Windows.UI.ViewManagement.ApplicationView.getForCurrentView().titleBar;break a}catch(n){}g=void 0}if(b=g)d=d?255:0,b.foregroundColor={r:d,g:d,b:d,a:255},a=P(a),b.backgroundColor={r:a[0],g:a[1],b:a[2],a:a[3]}}}}function P(a){var b=E();b.fillStyle=a;b.fillRect(0,0,1,1);return b.getImageData(0,0,1,1).data||
[]}function O(a){a=P(a).map(function(b){b/=255;return.03928>b?b/12.92:Math.pow((b+.055)/1.055,2.4)});return 3<Math.abs(1.05/(.2126*a[0]+.7152*a[1]+.0722*a[2]+.05))}function L(a,b,d){d=void 0===d?!1:d;var g=E(a);g.drawImage(a,0,0);if(d||255!==g.getImageData(0,0,1,1).data[3])return g.globalCompositeOperation="destination-over",g.fillStyle=b,g.fillRect(0,0,a.width,a.height),g.canvas.toDataURL()}function E(a){a=void 0===a?{width:1,height:1}:a;var b=a.height,d=document.createElement("canvas");d.width=
a.width;d.height=b;return d.getContext("2d")}if("onload"in XMLHttpRequest.prototype&&!navigator.j){var U=["standalone","fullscreen","minimal-ui"],Q=navigator.userAgent||"",B=navigator.vendor&&-1!==navigator.vendor.indexOf("Apple")&&(-1!==Q.indexOf("Mobile/")||"standalone"in navigator)||!1,W=!!Q.match(/(MSIE |Edge\/|Trident\/)/),Y="undefined"!==typeof Windows,y;try{var x=sessionStorage}catch(a){}x=x||{};"complete"===document.readyState?G():window.addEventListener("load",G)}})();<commit_msg>compile<commit_after>var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.createTemplateTagFirstArg=function(l){return l.raw=l};$jscomp.createTemplateTagFirstArgWithRaw=function(l,p){l.raw=p;return l};function unused(){"Please don't use this file directly: include pwacompat.min.js instead!"}
(function(){function l(a){try{return document.head.querySelector(a)}catch(b){return null}}function p(a,b){a="__pwacompat_"+a;void 0!==b&&(n[a]=b);return n[a]}function q(){var a=(w=l('link[rel="manifest"]'))?w.href:"";if(!a)throw'can\'t find <link rel="manifest" href=".." />\'';var b=J([a,location]),e=p("manifest");if(e)try{var m=JSON.parse(e);x(m,b)}catch(C){console.warn("PWACompat error",C)}else{var c=new XMLHttpRequest;c.open("GET",a);c.withCredentials="use-credentials"===w.getAttribute("crossorigin");
c.onload=function(){try{var a=JSON.parse(c.responseText);p("manifest",c.responseText);x(a,b)}catch(r){console.warn("PWACompat error",r)}};c.send(null)}}function J(a){for(var b={},e=0;e<a.length;b={$jscomp$loop$prop$opt$7:b.$jscomp$loop$prop$opt$7},++e){b.$jscomp$loop$prop$opt$7=a[e];try{return new URL("",b.$jscomp$loop$prop$opt$7),function(a){return function(b){return(new URL(b||"",a.$jscomp$loop$prop$opt$7)).toString()}}(b)}catch(m){}}return function(a){return a||""}}function D(a,b,e){if(!l(a+e)){a=
document.createElement(a);for(var c in b)a.setAttribute(c,b[c]);document.head.appendChild(a);return a}}function c(a,b){b&&(!0===b&&(b="yes"),D("meta",{name:a,content:b},'[name="'+a+'"]'))}function t(a){a=a.sizes.split(/\s+/g).map(function(a){return"any"===a?Infinity:parseInt(a,10)||0});return Math.max.apply(null,a)}function x(a,b){function e(b,d,e,c){var f=window.devicePixelRatio,g=E({width:b*f,height:d*f});g.scale(f,f);g.fillStyle=y;g.fillRect(0,0,b,d);g.translate(b/2,(d-20)/2);c&&(d=c.width/f,f=
c.height/f,128<f&&(d/=f/128,f=128),48<=d&&48<=f&&(g.drawImage(c,d/-2,f/-2,d,f),g.translate(0,f/2+20)));g.fillStyle=B?"white":"black";g.font="24px HelveticaNeue-CondensedBold";c=getComputedStyle(w);g.font=c.getPropertyValue("--pwacompat-splash-font");f=a.name||a.short_name||document.title;d=g.measureText(f);c=d.actualBoundingBoxAscent||24;g.translate(0,c);if(d.width<.8*b)g.fillText(f,d.width/-2,0);else for(f=f.split(/\s+/g),d=1;d<=f.length;++d){var G=f.slice(0,d).join(" "),h=g.measureText(G).width;
if(d===f.length||h>.6*b)g.fillText(G,h/-2,0),g.translate(0,1.2*c),f.splice(0,d),d=0}return function(){var a=g.canvas.toDataURL();m(e,a);return a}}function m(a,b){var d=document.createElement("link");d.setAttribute("rel","apple-touch-startup-image");d.setAttribute("media","(orientation: "+a+")");d.setAttribute("href",b);document.head.appendChild(d)}function n(a,b){var d=window.screen,c=e(d.width,d.height,"portrait",a),g=e(d.height,d.width,"landscape",a);setTimeout(function(){u.p=c();setTimeout(function(){u.l=
g();b()},10)},10)}function C(a){var b=z.length+1,c=function(){--b||a()};c();z.forEach(function(a){var b=new Image;b.crossOrigin="anonymous";b.onerror=c;b.onload=function(){b.onload=null;a.href=H(b,y,!0);u.i[b.src]=a.href;c()};b.src=a.href})}function r(){p("iOS",JSON.stringify(u))}function q(){var b=z.shift();if(b){var d=new Image;d.crossOrigin="anonymous";d.onerror=function(){return void q()};d.onload=function(){d.onload=null;n(d,function(){var c=a.background_color&&H(d,y);c?(b.href=c,u.i[d.src]=
c,C(r)):r()})};d.src=b.href}else n(null,r)}var k=a.icons||[],h=k.filter(function(a){return(a.purpose||"").includes("maskable")});k.sort(function(a,b){return t(b)-t(a)});h.sort(function(a,b){return t(b)-t(a)});var z=(0<h.length?h:k).map(function(a){var c={rel:"icon",href:b(a.src),sizes:a.sizes},e='[sizes="'+a.sizes+'"]';D("link",c,'[rel="icon"]'+e);if(A&&!(120>t(a)))return c.rel="apple-touch-icon",D("link",c,'[rel="apple-touch-icon"]'+e)}).filter(Boolean);h=l('meta[name="viewport"]');var x=!!(h&&h.content||
"").match(/\bviewport-fit\s*=\s*cover\b/),v=a.display;h=-1!==K.indexOf(v);c("mobile-web-app-capable",h);L(a.theme_color||"black",x);M&&(c("application-name",a.short_name),c("msapplication-tooltip",a.description),c("msapplication-starturl",b(a.start_url||".")),c("msapplication-navbutton-color",a.theme_color),(k=k[0])&&c("msapplication-TileImage",b(k.src)),c("msapplication-TileColor",a.background_color));c("theme-color",a.theme_color);if(A){var y=a.background_color||"#f8f9fa",B=I(y);(k=N(a.related_applications))&&
c("apple-itunes-app","app-id="+k);c("apple-mobile-web-app-capable",h);c("apple-mobile-web-app-title",a.short_name||a.name);if(h=p("iOS"))try{var F=JSON.parse(h);m("portrait",F.p);m("landscape",F.l);z.forEach(function(a){var b=F.i[a.href];b&&(a.href=b)});return}catch(g){}var u={i:{}};q()}else k={por:"portrait",lan:"landscape"}[String(a.orientation||"").substr(0,3)]||"",c("x5-orientation",k),c("screen-orientation",k),"fullscreen"===v?(c("x5-fullscreen","true"),c("full-screen","yes")):h&&(c("x5-page-mode",
"app"),c("browsermode","application"))}function N(a){var b;(a||[]).filter(function(a){return"itunes"===a.platform}).forEach(function(a){a.id?b=a.id:(a=a.url.match(/id(\d+)/))&&(b=a[1])});return b}function L(a,b){if(A||O){var e=I(a);if(A)c("apple-mobile-web-app-status-bar-style",b?"black-translucent":e?"black":"default");else{a:{try{var m=Windows.UI.ViewManagement.ApplicationView.getForCurrentView().titleBar;break a}catch(P){}m=void 0}if(b=m)e=e?255:0,b.foregroundColor={r:e,g:e,b:e,a:255},a=v(a),b.backgroundColor=
{r:a[0],g:a[1],b:a[2],a:a[3]}}}}function v(a){var b=E();b.fillStyle=a;b.fillRect(0,0,1,1);return b.getImageData(0,0,1,1).data||[]}function I(a){a=v(a).map(function(a){a/=255;return.03928>a?a/12.92:Math.pow((a+.055)/1.055,2.4)});return 3<Math.abs(1.05/(.2126*a[0]+.7152*a[1]+.0722*a[2]+.05))}function H(a,b,c){c=void 0===c?!1:c;var e=E(a);e.drawImage(a,0,0);if(c||255!==e.getImageData(0,0,1,1).data[3])return e.globalCompositeOperation="destination-over",e.fillStyle=b,e.fillRect(0,0,a.width,a.height),
e.canvas.toDataURL()}function E(a){var b=void 0===a?{width:1,height:1}:a;a=b.width;b=b.height;var c=document.createElement("canvas");c.width=a;c.height=b;return c.getContext("2d")}if("onload"in XMLHttpRequest.prototype&&!navigator.standalone){var K=["standalone","fullscreen","minimal-ui"],B=navigator.userAgent||"",A=navigator.vendor&&-1!==navigator.vendor.indexOf("Apple")&&(-1!==B.indexOf("Mobile/")||"standalone"in navigator)||!1,M=!!B.match(/(MSIE |Edge\/|Trident\/)/),O="undefined"!==typeof Windows,
w;try{var n=sessionStorage}catch(a){}n=n||{};"complete"===document.readyState?q():window.addEventListener("load",q)}})();
{'fraction_non_alphanumeric': 0.3028910891089109, 'fraction_numerical': 0.024475247524752476, 'mean_word_length': 13.68139534883721, 'pattern_counts': {'":': 6, '<': 21, '<?xml version=': 0, '>': 11, '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': '572562', 'n_tokens_mistral': 5600, 'n_tokens_neox': 5501, 'n_words': 245}