<commit_before>(function($){$.fn.githubVoice=function(user,repository,options){options=$.extend(true,{},$.fn.githubVoice.defaults,options||{});options.path=user+'/'+repository;this.setupExtras(options.setup||$.fn.githubVoice.base,options);this.each(function(){$(this).trigger('github-voice-initialize');});return this;};$.fn.githubVoice.base={initialize:[function(options){this.bind('github-voice-initialize',function(){$(this).trigger('github-voice-bindEventListeners');});}],bindEventListeners:[function(options){this.bind('github-voice-bindEventListeners',function(){var element=$(this)
element.click(function(){var cache=element.data('cache');if(options.overlay){element.trigger('github-voice-createOverlay');}
element.trigger('github-voice-createElement').trigger('github-voice-updatePosition');if(cache){element.trigger('github-voice-update',[cache]);}else{var url='http://github.com/api/v2/json/issues/list/';var path=options.path+'/open';$.getJSON(url+path+'?callback=?',function(data){element.trigger('github-voice-update',[data]);element.data('cache',data);});}
return false;});});}],createElement:[function(options){this.bind('github-voice-createElement',function(){$('body').append(options.html);$('#github-voice').find('p.description').html(options.text.description).end().find('li.loading').html(options.text.loading).end().find('p.call-to-action a').html(options.text.callToAction).attr('href','http://github.com/'+options.path+'/issues');});}],createOverlay:[function(options){this.bind('github-voice-createOverlay',function(){$('body').append('<div id="github-voice-overlay"></div>').find('#github-voice-overlay').css({width:$(window).width(),height:$(document).height(),opacity:0.75}).click(function(){$('#github-voice-overlay, #github-voice-wrapper').remove();});});}],update:[function(options){this.bind('github-voice-update',function(event,data){var sort=options.sort,list=$('#github-voice ol').empty(),count=0,valid;data.issues.sort($.isFunction(sort)?sort:function(a,b){return((a[sort]<b[sort])?1:((a[sort]>b[sort])?-1:0));});$.each(data.issues,function(index,issue){if(options.filter){valid=true;$.each(options.filter,function(key,value){if(!issue[key].match(value)){valid=false;return false;}});if(!valid){return;}}
list.append('<li>'+'<p class="votes">'+'<em>'+issue.votes+'</em> votes'+'</p>'+'<h3><a href="http://github.com/'+options.path+'/issues#issue/'+issue.number+'">'+issue.title+'</a></h3>'+'</li>');if(++count==options.limit){return false;}});$('#github-voice p.call-to-action a').append('<span> ('+data.issues.length+' ideas)</span>')
$(this).trigger('github-voice-updatePosition');});}],updatePosition:[function(options){this.bind('github-voice-updatePosition',function(){var
element=$('#github-voice-wrapper');element.css('margin-top',-1*(element.height()/2));});}]};$.fn.githubVoice.defaults={sort:'votes',limit:5,overlay:true,filter:null,text:{loading:"Loading...",description:"We've setup a feedback forum so you can tell us what's on your mind. Please go there and be heard!",callToAction:"&raquo; Go to our Feedback Forum"},html:'<div id="github-voice-wrapper"><h1>Feedback</h1><div id="github-voice"><p class="description"></p><ol><li class="loading"></li></ol><p class="call-to-action"><a href="#"></a></p></div></div>'};jQuery.fn.setupExtras=function(setup,options){for(property in setup){var self=this;if(setup[property]instanceof Array){for(var i=0;i<setup[property].length;i++){setup[property][i].call(self,options);}}else{setup[property].call(self,options);}}};})(jQuery);<commit_msg>Use Google Closure Compiler for minified version.<commit_after>(function(b){b.fn.githubVoice=function(a,d,c){c=b.extend(true,{},b.fn.githubVoice.defaults,c||{});c.path=a+"/"+d;this.setupExtras(c.setup||b.fn.githubVoice.base,c);this.each(function(){b(this).trigger("github-voice-initialize")});return this};b.fn.githubVoice.base={initialize:[function(){this.bind("github-voice-initialize",function(){b(this).trigger("github-voice-bindEventListeners")})}],bindEventListeners:[function(a){this.bind("github-voice-bindEventListeners",function(){var d=b(this);d.click(function(){var c=
d.data("cache");a.overlay&&d.trigger("github-voice-createOverlay");d.trigger("github-voice-createElement").trigger("github-voice-updatePosition");c?d.trigger("github-voice-update",[c]):b.getJSON("http://github.com/api/v2/json/issues/list/"+(a.path+"/open")+"?callback=?",function(e){d.trigger("github-voice-update",[e]);d.data("cache",e)});return false})})}],createElement:[function(a){this.bind("github-voice-createElement",function(){b("body").append(a.html);b("#github-voice").find("p.description").html(a.text.description).end().find("li.loading").html(a.text.loading).end().find("p.call-to-action a").html(a.text.callToAction).attr("href",
"http://github.com/"+a.path+"/issues")})}],createOverlay:[function(){this.bind("github-voice-createOverlay",function(){b("body").append('<div id="github-voice-overlay"></div>').find("#github-voice-overlay").css({width:b(window).width(),height:b(document).height(),opacity:0.75}).click(function(){b("#github-voice-overlay, #github-voice-wrapper").remove()})})}],update:[function(a){this.bind("github-voice-update",function(d,c){var e=a.sort,i=b("#github-voice ol").empty(),j=0,g;c.issues.sort(b.isFunction(e)?
e:function(h,f){return h[e]<f[e]?1:h[e]>f[e]?-1:0});b.each(c.issues,function(h,f){if(a.filter){g=true;b.each(a.filter,function(k,l){if(!f[k].match(l))return g=false});if(!g)return}i.append('<li><p class="votes"><em>'+f.votes+'</em> votes</p><h3><a href="http://github.com/'+a.path+"/issues#issue/"+f.number+'">'+f.title+"</a></h3></li>");if(++j==a.limit)return false});b("#github-voice p.call-to-action a").append("<span> ("+c.issues.length+" ideas)</span>");b(this).trigger("github-voice-updatePosition")})}],
updatePosition:[function(){this.bind("github-voice-updatePosition",function(){var a=b("#github-voice-wrapper");a.css("margin-top",-1*(a.height()/2))})}]};b.fn.githubVoice.defaults={sort:"votes",limit:5,overlay:true,filter:null,text:{loading:"Loading...",description:"We've setup a feedback forum so you can tell us what's on your mind. Please go there and be heard!",callToAction:"&raquo; Go to our Feedback Forum"},html:'    <div id="github-voice-wrapper">       <h1>Feedback</h1>       <div id="github-voice">         <p class="description"></p>         <ol>           <li class="loading"></li>         </ol>         <p class="call-to-action"><a href="#"></a></p>       </div>     </div>'};
jQuery.fn.setupExtras=function(a,d){for(property in a){var c=this;if(a[property]instanceof Array)for(var e=0;e<a[property].length;e++)a[property][e].call(c,d);else a[property].call(c,d)}}})(jQuery);
{'fraction_non_alphanumeric': 0.26423860911270985, 'fraction_numerical': 0.004796163069544364, 'mean_word_length': 10.32937181663837, 'pattern_counts': {'":': 0, '<': 67, '<?xml version=': 0, '>': 65, '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': '2981315', 'n_tokens_mistral': 2217, 'n_tokens_neox': 2198, 'n_words': 139}