forked from emeryberger/CSrankings
-
Notifications
You must be signed in to change notification settings - Fork 0
/
csrankings.min.js
50 lines (50 loc) · 23.7 KB
/
csrankings.min.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)};$jscomp.getGlobal=function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global&&null!=global?global:a};$jscomp.global=$jscomp.getGlobal(this);$jscomp.SYMBOL_PREFIX="jscomp_symbol_";
$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)};$jscomp.Symbol=function(){var a=0;return function(b){return $jscomp.SYMBOL_PREFIX+(b||"")+a++}}();
$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var a=$jscomp.global.Symbol.iterator;a||(a=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator"));"function"!=typeof Array.prototype[a]&&$jscomp.defineProperty(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return $jscomp.arrayIterator(this)}});$jscomp.initSymbolIterator=function(){}};$jscomp.arrayIterator=function(a){var b=0;return $jscomp.iteratorPrototype(function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}})};
$jscomp.iteratorPrototype=function(a){$jscomp.initSymbolIterator();a={next:a};a[$jscomp.global.Symbol.iterator]=function(){return this};return a};$jscomp.iteratorFromArray=function(a,b){$jscomp.initSymbolIterator();a instanceof String&&(a+="");var c=0,d={next:function(){if(c<a.length){var e=c++;return{value:b(e,a[e]),done:!1}}d.next=function(){return{done:!0,value:void 0}};return d.next()}};d[Symbol.iterator]=function(){return d};return d};
$jscomp.polyfill=function(a,b,c,d){if(b){c=$jscomp.global;a=a.split(".");for(d=0;d<a.length-1;d++){var e=a[d];e in c||(c[e]={});c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&$jscomp.defineProperty(c,a,{configurable:!0,writable:!0,value:b})}};$jscomp.polyfill("Array.prototype.keys",function(a){return a?a:function(){return $jscomp.iteratorFromArray(this,function(a){return a})}},"es6","es3");
$jscomp.makeIterator=function(a){$jscomp.initSymbolIterator();var b=a[Symbol.iterator];return b?b.call(a):$jscomp.arrayIterator(a)};$jscomp.owns=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
$jscomp.polyfill("WeakMap",function(a){function b(a){$jscomp.owns(a,d)||$jscomp.defineProperty(a,d,{value:{}})}function c(a){var c=Object[a];c&&(Object[a]=function(a){b(a);return c(a)})}if(function(){if(!a||!Object.seal)return!1;try{var b=Object.seal({}),c=Object.seal({}),d=new a([[b,2],[c,3]]);if(2!=d.get(b)||3!=d.get(c))return!1;d.delete(b);d.set(c,4);return!d.has(b)&&4==d.get(c)}catch(q){return!1}}())return a;var d="$jscomp_hidden_"+Math.random().toString().substring(2);c("freeze");c("preventExtensions");
c("seal");var e=0,g=function(a){this.id_=(e+=Math.random()+1).toString();if(a){$jscomp.initSymbol();$jscomp.initSymbolIterator();a=$jscomp.makeIterator(a);for(var b;!(b=a.next()).done;)b=b.value,this.set(b[0],b[1])}};g.prototype.set=function(a,c){b(a);if(!$jscomp.owns(a,d))throw Error("WeakMap key fail: "+a);a[d][this.id_]=c;return this};g.prototype.get=function(a){return $jscomp.owns(a,d)?a[d][this.id_]:void 0};g.prototype.has=function(a){return $jscomp.owns(a,d)&&$jscomp.owns(a[d],this.id_)};g.prototype.delete=
function(a){return $jscomp.owns(a,d)&&$jscomp.owns(a[d],this.id_)?delete a[d][this.id_]:!1};return g},"es6","es3");$jscomp.MapEntry=function(){};
$jscomp.polyfill("Map",function(a){if(!$jscomp.ASSUME_NO_NATIVE_MAP&&function(){if(!a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var b=Object.seal({x:4}),c=new a($jscomp.makeIterator([[b,"s"]]));if("s"!=c.get(b)||1!=c.size||c.get({x:4})||c.set({x:4},"t")!=c||2!=c.size)return!1;var d=c.entries(),e=d.next();if(e.done||e.value[0]!=b||"s"!=e.value[1])return!1;e=d.next();return e.done||4!=e.value[0].x||"t"!=e.value[1]||!d.next().done?!1:!0}catch(l){return!1}}())return a;$jscomp.initSymbol();
$jscomp.initSymbolIterator();var b=new WeakMap,c=function(a){this.data_={};this.head_=g();this.size=0;if(a){a=$jscomp.makeIterator(a);for(var b;!(b=a.next()).done;)b=b.value,this.set(b[0],b[1])}};c.prototype.set=function(a,b){var c=d(this,a);c.list||(c.list=this.data_[c.id]=[]);c.entry?c.entry.value=b:(c.entry={next:this.head_,previous:this.head_.previous,head:this.head_,key:a,value:b},c.list.push(c.entry),this.head_.previous.next=c.entry,this.head_.previous=c.entry,this.size++);return this};c.prototype.delete=
function(a){a=d(this,a);return a.entry&&a.list?(a.list.splice(a.index,1),a.list.length||delete this.data_[a.id],a.entry.previous.next=a.entry.next,a.entry.next.previous=a.entry.previous,a.entry.head=null,this.size--,!0):!1};c.prototype.clear=function(){this.data_={};this.head_=this.head_.previous=g();this.size=0};c.prototype.has=function(a){return!!d(this,a).entry};c.prototype.get=function(a){return(a=d(this,a).entry)&&a.value};c.prototype.entries=function(){return e(this,function(a){return[a.key,
a.value]})};c.prototype.keys=function(){return e(this,function(a){return a.key})};c.prototype.values=function(){return e(this,function(a){return a.value})};c.prototype.forEach=function(a,b){for(var c=this.entries(),d;!(d=c.next()).done;)d=d.value,a.call(b,d[1],d[0],this)};c.prototype[Symbol.iterator]=c.prototype.entries;var d=function(a,c){var d=c&&typeof c;"object"==d||"function"==d?b.has(c)?d=b.get(c):(d=""+ ++f,b.set(c,d)):d="p_"+c;var e=a.data_[d];if(e&&$jscomp.owns(a.data_,d))for(a=0;a<e.length;a++){var g=
e[a];if(c!==c&&g.key!==g.key||c===g.key)return{id:d,list:e,index:a,entry:g}}return{id:d,list:e,index:-1,entry:void 0}},e=function(a,b){var c=a.head_;return $jscomp.iteratorPrototype(function(){if(c){for(;c.head!=a.head_;)c=c.previous;for(;c.next!=c.head;)return c=c.next,{done:!1,value:b(c)};c=null}return{done:!0,value:void 0}})},g=function(){var a={};return a.previous=a.next=a.head=a},f=0;return c},"es6","es3");
$jscomp.polyfill("Set",function(a){if(!$jscomp.ASSUME_NO_NATIVE_SET&&function(){if(!a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var b=Object.seal({x:4}),d=new a($jscomp.makeIterator([b]));if(!d.has(b)||1!=d.size||d.add(b)!=d||1!=d.size||d.add({x:4})!=d||2!=d.size)return!1;var e=d.entries(),g=e.next();if(g.done||g.value[0]!=b||g.value[1]!=b)return!1;g=e.next();return g.done||g.value[0]==b||4!=g.value[0].x||g.value[1]!=g.value[0]?!1:e.next().done}catch(f){return!1}}())return a;
$jscomp.initSymbol();$jscomp.initSymbolIterator();var b=function(a){this.map_=new Map;if(a){a=$jscomp.makeIterator(a);for(var b;!(b=a.next()).done;)this.add(b.value)}this.size=this.map_.size};b.prototype.add=function(a){this.map_.set(a,a);this.size=this.map_.size;return this};b.prototype.delete=function(a){a=this.map_.delete(a);this.size=this.map_.size;return a};b.prototype.clear=function(){this.map_.clear();this.size=0};b.prototype.has=function(a){return this.map_.has(a)};b.prototype.entries=function(){return this.map_.entries()};
b.prototype.values=function(){return this.map_.values()};b.prototype.keys=b.prototype.values;b.prototype[Symbol.iterator]=b.prototype.values;b.prototype.forEach=function(a,b){var c=this;this.map_.forEach(function(d){return a.call(b,d,d,c)})};return b},"es6","es3");$jscomp.findInternal=function(a,b,c){a instanceof String&&(a=String(a));for(var d=a.length,e=0;e<d;e++){var g=a[e];if(b.call(c,g,e,a))return{i:e,v:g}}return{i:-1,v:void 0}};
$jscomp.polyfill("Array.prototype.find",function(a){return a?a:function(a,c){return $jscomp.findInternal(this,a,c).v}},"es6","es3");
var CSRankings=function(){function a(){a.geoCheck();for(var b=0;b<a.areaMap.length;b++){var c=a.areaMap[b],d=c.area;c=c.title;a.areas[b]=d;a.areaNames[b]=c;a.fields[b]=d;a.areaDict[d]=a.areaNames[b];a.areaPosition[d]=b}b=0;for(c=a.aiAreas;b<c.length;b++)d=c[b],a.aiFields.push(a.areaPosition[d]);b=0;for(c=a.systemsAreas;b<c.length;b++)d=c[b],a.systemsFields.push(a.areaPosition[d]);b=0;for(c=a.theoryAreas;b<c.length;b++)d=c[b],a.theoryFields.push(a.areaPosition[d]);b=0;for(c=a.interdisciplinaryAreas;b<
c.length;b++)d=c[b],a.otherFields.push(a.areaPosition[d]);d=function(){a.loadAliases(a.aliases,function(){a.loadHomepages(a.homepages,function(){a.loadAuthorInfo(function(){a.loadCountryInfo(a.countryInfo,a.rank)})})})};a.activateAll();a.showCoauthors?a.loadCoauthors(d):d();a.navigoRouter=new Navigo(null,!0);a.navigoRouter.on("/index",function(b,c){for(var d in a.areas)jQuery("input[name="+a.areas[d]+"]").prop("checked",!1);c.split("&").forEach(function(a){"none"!=a&&jQuery("input[name="+a+"]").prop("checked",
!0)})}).resolve()}a.translateNameToDBLP=function(a){a=a.replace(/'|\-|\./g,"=");a=a.replace(/\u00c1/g,"=Aacute=");a=a.replace(/\u00e1/g,"=aacute=");a=a.replace(/\u00e8/g,"=egrave=");a=a.replace(/\u00e9/g,"=eacute=");a=a.replace(/\u00ef/g,"=iuml=");a=a.replace(/\u00f3/g,"=oacute=");a=a.replace(/\u00e7/g,"=ccedil=");a=a.replace(/\u00e4/g,"=auml=");a=a.replace(/\u00f6/g,"=ouml=");a=a.replace(/\u00f8/g,"=oslash=");a=a.replace(/\u00d6/g,"=Ouml=");a=a.replace(/\u00fc/g,"=uuml=");a=a.split(" ");var b=a[a.length-
1];0<parseInt(b)&&(a.pop(),b=a[a.length-1]+"_"+b);a.pop();a=a.join(" ");a=a.replace(/\s/g,"_");a=a.replace(/\-/g,"=");return"http://dblp.uni-trier.de/pers/hd"+("/"+b[0].toLowerCase()+"/"+b+":"+a)};a.makePrologue=function(){return'<html><head><style type="text/css"> body { font-family: "Helvetica", "Arial"; } table td { vertical-align: top; }</style></head><body><div class="row"><div class="table" style="overflow:auto; height: 650px;"><table class="table-sm table-striped"id="ranking" valign="top">'};
a.compareNames=function(a,c){a=a.split(" ");c=c.split(" ");a=a[a.length-1];c=c[c.length-1];return a<c?-1:a>c?1:0};a.makeChart=function(b){console.assert(a.color.length>=a.areas.length,"Houston, we have a problem.");for(var c=[],d={},e=a.areas,g=unescape(b),f=0;f<e.length;f++){var h=e[f],k=a.authorAreas[g][h];k=Math.round(10*k)/10;0<k&&(h in d||(d[h]=0),d[h]+=k)}for(h in d)c.push({label:a.areaDict[h],value:Math.round(10*d[h])/10,color:a.color[a.areaPosition[h]]});new d3pie(b+"-chart",{header:{title:{text:g,
fontSize:24,font:"open sans"},subtitle:{text:"Publication Profile",color:"#999999",fontSize:14,font:"open sans"},titleSubtitlePadding:9},size:{canvasHeight:500,canvasWidth:500,pieInnerRadius:"38%",pieOuterRadius:"83%"},data:{content:c,smallSegmentGrouping:{enabled:!0,value:1}},labels:{outer:{pieDistance:32},inner:{format:"value",hideWhenLessThanPercentage:5},mainLabel:{fontSize:12},percentage:{color:"#ffffff",decimalPlaces:0},value:{color:"#ffffff",fontSize:10},lines:{enabled:!0},truncation:{enabled:!0}},
effects:{load:{effect:"none"},pullOutSegmentOnClick:{effect:"linear",speed:400,size:8}},misc:{gradient:{enabled:!0,percentage:100}}})};a.loadCoauthors=function(b){Papa.parse(a.coauthorFile,{download:!0,header:!0,complete:function(c){a.coauthors=c.data;setTimeout(b,0)}})};a.loadAliases=function(b,c){Papa.parse(a.aliasFile,{header:!0,download:!0,complete:function(a){var d=0;for(a=a.data;d<a.length;d++){var g=a[d];b[g.alias]=g.name}setTimeout(c,0)}})};a.loadArticles=function(a){jQuery.getJSON("articles.json",
function(b){setTimeout(a,0)})};a.loadCountryInfo=function(b,c){Papa.parse(a.countryinfoFile,{header:!0,download:!0,complete:function(a){var d=0;for(a=a.data;d<a.length;d++){var g=a[d];b[g.institution]=g.region}setTimeout(c,0)}})};a.loadAuthorInfo=function(b){var c=this;Papa.parse(a.authorinfoFile,{download:!0,header:!0,complete:function(d){c.authors=d.data;for(d=0;d<a.fields.length;d++)jQuery("input[name="+a.fields[d]+"]").click(function(){c.rank()});setTimeout(b,0)}})};a.loadHomepages=function(b,
c){Papa.parse(a.homepagesFile,{header:!0,download:!0,complete:function(a){var d=0;for(a=a.data;d<a.length;d++){var g=a[d];"undefined"!==typeof g.homepage&&(b[g.name.trim()]=g.homepage.trim())}setTimeout(c,0)}})};a.inRegion=function(b,c){switch(c){case "USA":if(b in a.countryInfo)return!1;break;case "europe":if(!(b in a.countryInfo)||"europe"!=a.countryInfo[b])return!1;break;case "canada":if(!(b in a.countryInfo)||"canada"!=a.countryInfo[b])return!1;break;case "northamerica":if(b in a.countryInfo&&
"canada"!=a.countryInfo[b])return!1;break;case "australasia":if(!(b in a.countryInfo)||"australasia"!=a.countryInfo[b])return!1;break;case "southamerica":if(!(b in a.countryInfo)||"southamerica"!=a.countryInfo[b])return!1;break;case "asia":if(!(b in a.countryInfo)||"asia"!=a.countryInfo[b])return!1}return!0};a.activateFields=function(b,c){for(var d=0;d<c.length;d++)jQuery("input[name="+a.fields[c[d]]+"]").prop("checked",b);a.rank();return!1};a.sortIndex=function(a){var b=Object.keys(a);b.sort(function(b,
c){return a[b]>a[c]?-1:a[c]>a[b]?1:b<c?-1:c<b?1:0});return b};a.computeCoauthors=function(a,c,d,e){var b={},f;for(f in a)if(a.hasOwnProperty(f)){var h=a[f],k=h.author,q=h.coauthor,m=h.year;0===e[h.area]||m<c||m>d||(k in b||(b[k]=new Set([])),b[k].add(q))}return b};a.countAuthorAreas=function(b,c,d,e){for(var g in b)if(b.hasOwnProperty(g)){var f=b[g],h=f.year;if(!(h<c||h>d)){h=f.area;var k=f.dept,q=parseFloat(f.count);f=f.name;f in a.aliases&&(f=a.aliases[f]);if(!(f in e)){e[f]={};for(var m in a.areaDict)a.areaDict.hasOwnProperty(m)&&
(e[f][m]=0)}if(!(k in e))for(m in e[k]={},a.areaDict)a.areaDict.hasOwnProperty(m)&&(e[k][m]=0);e[f][h]+=q;e[k][h]+=q}}};a.buildDepartments=function(b,c,d,e,g,f,h,k,q,m){var l={},p;for(p in b)if(b.hasOwnProperty(p)){var n=b[p],t=n.name,u=n.year,r=n.area;n=n.dept;t in a.aliases&&(t=a.aliases[t]);if("undefined"!==typeof n&&!(0===e[r]||u<c||u>d)&&a.inRegion(n,g)){r in a.parentMap&&(r=a.parentMap[r]);u=r+n;r=t+n;u in f||(f[u]=0);var w=parseInt(b[p].count),v=parseFloat(b[p].adjustedcount);f[u]+=v;t in l||
(l[t]=!0,q[r]=0,m[r]=0,n in h||(h[n]=0,k[n]=[]),k[n].push(t),h[n]+=1);q[r]+=w;m[r]+=v}}};a.computeStats=function(b,c,d,e,g,f){a.stats={};var h={},k;for(k in b)if(b.hasOwnProperty(k)){h[k]=g?1:0;for(var q=0,m=d;q<m.length;q++){var l=m[q];if(!(l in a.parentMap)){var p=l+k;p in c||(c[p]=0);0!=f[l]&&(h[k]=g?h[k]*(c[p]+1):h[k]+c[p])}}g&&(h[k]=Math.pow(h[k],1/e))}return h};a.updateWeights=function(b){for(var c=0,d=0;d<a.areas.length;d++){var e=a.areas[d];b[e]=jQuery("input[name="+a.fields[d]+"]").prop("checked")?
1:0;1===b[e]&&c++}return c};a.canonicalizeNames=function(b,c,d){for(var e in b)if(b.hasOwnProperty(e))for(var g=0;g<b[e].length;g++){var f=b[e][g];f in a.aliases&&(b[e][g]=a.aliases[f],a.aliases[f]+e in c?(c[a.aliases[f]+e]+=c[f+e],d[a.aliases[f]+e]+=d[f+e]):(c[a.aliases[f]+e]=c[f+e],d[a.aliases[f]+e]=d[f+e]))}};a.buildDropDown=function(b,c,d,e){var g={},f=function(f){if(!b.hasOwnProperty(f))return"continue";for(var h='<div class="row"><div class="table"><table class="table-striped" width="100%"><thead><th></th><td><small><em><abbr title="Click on an author\'s name to go to their home page.">Faculty</abbr></em></small></td><td align="right"><small><em> <abbr title="Total number of publications (click for DBLP entry).">Raw # Pubs</abbr></em></small></td><td align="right"><small><em> <abbr title="Count divided by number of co-authors">Adjusted #</abbr></em></small></td></thead><tbody>',
k={},l=0,p=b[f];l<p.length;l++){var n=p[l];k[n]=c[n+f]}l=Object.keys(k);l.sort(function(b,c){if(k[c]===k[b]){var e=Math.round(10*d[c+f])/10,g=Math.round(10*d[b+f])/10;return e===g?a.compareNames(b,c):e-g}return k[c]-k[b]});p=function(b){if(a.showCoauthors){var c="";b in e&&0!==e[b].size?c="Senior co-authors on these papers:\n":(e[b]=new Set([]),c="(no senior co-authors on these papers)");var g=[];e[b].forEach(function(a,b){g.push(a)});g.length>a.maxCoauthors?c="(more than "+a.maxCoauthors+" senior co-authors)":
(g.sort(a.compareNames),g.forEach(function(a,b){c+=a+"\n"}),c=c.slice(0,c.length-1))}var l=encodeURI(a.homepages[b]),m=a.translateNameToDBLP(b);h+='<tr><td> </td><td><small><a title="Click for author\'s home page." target="_blank" href="'+l+'" onclick="trackOutboundLink(\''+l+"', true); return false;\">"+b+"</a> <span onclick=\"CSRankings.toggleChart('"+escape(b)+'\')" class="hovertip" ><font color="blue">'+a.PieChart+'</font></span></small></td><td align="right"><small><a title="Click for author\'s DBLP entry." target="_blank" href="'+
m+'" onclick="trackOutboundLink(\''+m+"', true); return false;\">"+k[b]+'</a></small></td><td align="right"><small>'+(Math.round(10*d[b+f])/10).toFixed(1)+'</small></td></tr><tr><td colspan="4"><div style="display:none;" id="'+escape(b)+'-chart"></div></td></tr>'};for(n=0;n<l.length;n++)p(l[n]);h+="</tbody></table></div></div>";g[f]=h},h;for(h in b)f(h);return g};a.buildOutputString=function(b,c,d,e,g){var f=a.makePrologue(),h=parseInt(jQuery("#minToRank").find(":selected").val());f=(b?f+'<thead><tr><th align="left">Rank </th><th align="right">Institution </th><th align="right"><abbr title="Geometric mean count of papers published across all areas.">Average Count</abbr></th><th align="right"> <abbr title="Number of faculty who have published in these areas.">Faculty</abbr></th></th></tr></thead>':
f+'<thead><tr><th align="left">Rank </th><th align="right">Institution </th><th align="right">Adjusted Pub Count</th><th align="right"> Faculty</th></tr></thead>')+"<tbody>";if(0<c){b=1;c=0;for(var k=9999999.999,q=a.sortIndex(d),m=0;m<q.length;m++){var l=q[m],p=Math.round(10*d[l])/10;if(m>=h&&p!=k)break;if(0===p)break;k!=p&&(a.useDenseRankings?c+=1:(c+=b,b=0));k=escape(l);f+="\n<tr><td>"+c+"</td>";f+="<td><span onclick=\"CSRankings.toggleFaculty('"+
l+'\')" class="hovertip" id="'+l+'-widget"><font color="blue">'+a.RightTriangle+"</font></span> <span onclick=\"CSRankings.toggleFaculty('"+l+'\')" class="hovertip">'+l+"</span>";f+=' <font color="blue"><span onclick="CSRankings.toggleChart(\''+k+'\')" class="hovertip" id="'+k+'-widget">'+a.PieChart+"</span></font>";f+="</td>";f+='<td align="right">'+(Math.round(10*p)/10).toFixed(1)+"</td>";f+='<td align="right">'+e[l]+"<br />";f+="</td>";f+="</tr>\n";f+='<tr><td colspan="4"><div style="display:none;" style="width: 100%; height: 350px;" id="'+
k+'-chart"></div></td></tr>';f+='<tr><td colspan="4"><div style="display:none;" id="'+l+'-faculty">'+g[l]+"</div></td></tr>";b++;k=p}f+="</tbody></table><br />";a.allowRankingChange&&(f=a.useDenseRankings?f+'<em><a class="only_these_areas" onClick="deactivateDenseRankings(); return false;"><font color="blue"><b>Using dense rankings. Click to use competition rankings.</b></font></a><em>':f+'<em><a class="only_these_areas" onClick="activateDenseRankings(); return false;"><font color="blue"><b>Using competition rankings. Click to use dense rankings.</b></font></a></em>');
f+="</div></div>\n<br></body></html>"}else f="<h4>Please select at least one area.</h4>";return f};a.setAllCheckboxes=function(){a.activateAll()};a.rank=function(){var b={},c={},d={},e={},g={};a.areaDeptAdjustedCount={};var f=parseInt(jQuery("#startyear").find(":selected").text()),h=parseInt(jQuery("#endyear").find(":selected").text()),k=jQuery("#regions").find(":selected").val(),q=a.updateWeights(g),m={};a.showCoauthors&&(m=a.computeCoauthors(a.coauthors,f,h,g));a.authorAreas={};a.countAuthorAreas(a.authors,
f,h,a.authorAreas);a.buildDepartments(a.authors,f,h,g,k,a.areaDeptAdjustedCount,c,b,d,e);a.stats=a.computeStats(b,a.areaDeptAdjustedCount,a.areas,q,!0,g);a.canonicalizeNames(b,d,e);b=a.buildDropDown(b,d,e,m);var l=a.buildOutputString(!0,q,a.stats,c,b);setTimeout(function(){jQuery("#success").html(l);a.urlUpdate()},0);return!1};a.toggleChart=function(b){var c=document.getElementById(b+"-chart");"block"===c.style.display?(c.style.display="none",c.innerHTML=""):(c.style.display="block",a.makeChart(b))};
a.toggleConferences=function(b){var c=document.getElementById(b+"-conferences"),d=document.getElementById(b+"-widget");"block"===c.style.display?(c.style.display="none",d.innerHTML='<font color="blue">'+a.RightTriangle+"</font>"):(c.style.display="block",d.innerHTML='<font color="blue">'+a.DownTriangle+"</font>");b=document.getElementById(b+"-conferences-checkboxes");b.style.display="block"===b.style.display?"none":"block"};a.toggleFaculty=function(b){var c=document.getElementById(b+"-faculty");b=
document.getElementById(b+"-widget");"block"===c.style.display?(c.style.display="none",b.innerHTML='<font color="blue">'+a.RightTriangle+"</font>"):(c.style.display="block",b.innerHTML='<font color="blue">'+a.DownTriangle+"</font>")};a.activateAll=function(b){void 0===b&&(b=!0);for(var c=0;c<a.areas.length;c++)if(jQuery("input[name="+a.fields[c]+"]").prop("checked",b),a.fields[c]in a.childMap)for(var d=0,e=a.childMap[a.fields[c]];d<e.length;d++)jQuery("input[name="+e[d]+"]").prop("checked",b);a.rank();
return!1};a.activateNone=function(){return a.activateAll(!1)};a.activateSystems=function(b){void 0===b&&(b=!0);return a.activateFields(b,a.systemsFields)};a.activateAI=function(b){void 0===b&&(b=!0);return a.activateFields(b,a.aiFields)};a.activateTheory=function(b){void 0===b&&(b=!0);return a.activateFields(b,a.theoryFields)};a.activateOthers=function(b){void 0===b&&(b=!0);return a.activateFields(b,a.otherFields)};a.deactivateSystems=function(){return a.activateSystems(!1)};a.deactivateAI=function(){return a.activateAI(!1)};
a.deactivateTheory=function(){return a.activateTheory(!1)};a.deactivateOthers=function(){return a.activateOthers(!1)};a.urlUpdate=function(){for(var b="",c=0,d=0;d<a.fields.length;d++)jQuery("input[name="+a.fields[d]+"]").prop("checked")&&(b+=a.fields[d]+"&",c+=1);0<c&&(b=b.slice(0,-1));b=c==a.fields.length?"":0==c?"/index?none":"/index?"+b;a.navigoRouter.navigate(b)};a.geoCheck=function(){jQuery.getJSON("http://freegeoip.net/json/",function(a){switch(a.country_code){case "US":case "CN":case "IN":case "KR":case "JP":case "TW":case "SG":break;
default:jQuery("#regions").val("world")}})};return a}();CSRankings.coauthorFile="/faculty-coauthors.csv";CSRankings.authorinfoFile="/generated-author-info.csv";CSRankings.countryinfoFile="/country-info.csv";CSRankings.aliasFile="/dblp-aliases.csv";CSRankings.homepagesFile="/homepages.csv";CSRankings.allowRankingChange=!1;CSRankings.showCoauthors=!1;CSRankings.maxCoauthors=30;CSRankings.parentMap={aaai:"ai",ijcai:"ai",cvpr:"vision",eccv:"vision",iccv:"vision"};
CSRankings.childMap={ai:["aaai","ijcai"],vision:["cvpr","eccv","iccv"]};
CSRankings.areaMap=[{area:"ai",title:"AI"},{area:"vision",title:"Vision"},{area:"mlmining",title:"ML"},{area:"nlp",title:"NLP"},{area:"ir",title:"Web & IR"},{area:"arch",title:"Arch"},{area:"comm",title:"Networks"},{area:"sec",title:"Security"},{area:"mod",title:"DB"},{area:"hpc",title:"HPC"},{area:"mobile",title:"Mobile"},{area:"metrics",title:"Metrics"},{area:"ops",title:"OS"},{area:"plan",title:"PL"},{area:"soft",title:"SE"},{area:"act",title:"Theory"},{area:"crypt",title:"Crypto"},{area:"log",
title:"Logic"},{area:"graph",title:"Graphics"},{area:"chi",title:"HCI"},{area:"robotics",title:"Robotics"},{area:"bio",title:"Comp. Biology"},{area:"da",title:"EDA"},{area:"bed",title:"Embedded"},{area:"vis",title:"Visualization"},{area:"ecom",title:"ECom"}];CSRankings.aiAreas=["ai","vision","mlmining","nlp","ir"];CSRankings.systemsAreas="arch comm sec mod hpc mobile metrics ops plan soft da bed".split(" ");CSRankings.theoryAreas=["act","crypt","log"];CSRankings.interdisciplinaryAreas="graph chi robotics bio vis ecom".split(" ");
CSRankings.areas=[];CSRankings.areaNames=[];CSRankings.fields=[];CSRankings.aiFields=[];CSRankings.systemsFields=[];CSRankings.theoryFields=[];CSRankings.otherFields=[];CSRankings.areaDict={};CSRankings.areaPosition={};CSRankings.aliases={};CSRankings.countryInfo={};CSRankings.homepages={};CSRankings.useDenseRankings=!1;CSRankings.authors=[];CSRankings.coauthors=[];CSRankings.authorAreas={};CSRankings.stats={};CSRankings.areaDeptAdjustedCount={};CSRankings.color="#f30000 #0600f3 #00b109 #14e4b4 #0fe7fb #67f200 #ff7e00 #8fe4fa #ff5300 #640000 #3854d1 #d00ed8 #7890ff #01664d #04231b #e9f117 #f3228e #7ce8ca #ff5300 #ff5300 #7eff30 #9a8cf6 #79aff9 #bfbfbf #56b510 #00e2f6 #ff4141 #61ff41".split(" ");
CSRankings.RightTriangle="►";CSRankings.DownTriangle="▼";CSRankings.PieChart="◕";function init(){new CSRankings}window.onload=init;