<commit_before>function TableEditor(){}TableEditor.prototype={tableIdentifier:null,rowIdentifier:null,columnIdentifier:null,selected:null,init:function(d,a,b){this.tableIdentifier=d;this.rowIdentifier=a;this.columnIdentifier=b;var c=$(d);if(c){that=this;c.each(function(){that.initializeTable(this)})}},initializeTable:function(b){var a=this;$(b).selectable({filter:this.rowIdentifier,selected:function(c,d){a.attachColumnHandlers(d.selected)},unselected:function(c,d){a.deAttachColumnHandlers(d.selected)}})},deAttachColumnHandlers:function(b){var a=this;$(this.columnIdentifier,b).each(function(){var c=$(":input",$(this));if(c){$(c).unbind(".tableEditor")}})},attachColumnHandlers:function(d){var c=this;var b=0;var a=new RegExp("ui-autocomplete-input");$(this.columnIdentifier,d).each(function(){var e=$(":input",$(this));var h=$(e);var g=h.attr("type");if(e&&g){switch(g){case"text":var f=b;if(a.test(h.attr("class"))){h.bind("autocompleteclose.tableEditor",function(){c.updateSingleInputElements(e,f,"input")})}else{h.bind("keyup.tableEditor",function(){c.updateSingleInputElements(e,f,"input")})}break;case"select-one":var f=b;h.bind("change.tableEditor",function(){c.updateSingleInputElements(e,f,"select")});break;case"checkbox":var f=b;h.bind("click.tableEditor",function(){c.updateSingleInputElements(e,f,"input")});break;case"hidden":break;case null:break;default:alert("unsupported element of type "+g+", please file a bug report containing this message and a screenshot for table-editor.js");break}}b++})},updateSingleInputElements:function(f,d,b){var g=this;var h=$(f);var i=h.parent();var a=i.parent();var k=a.parent();var j=this.getValue(h);$(".ui-selected",k).each(function(){$(g.columnIdentifier+":eq("+d+") "+b,$(this)).each(function(){var c=$(this);if(c.attr("type")!="hidden"){var e=g.getValue(c);if(e!=j){g.setValue(c,j)}}})})},getValue:function(a){var b=$(a);switch(b.attr("type")){case"checkbox":return b.attr("checked");break;default:return b.val();break}},setValue:function(a,c){var b=$(a);switch(b.attr("type")){case"checkbox":return b.attr("checked",c);break;default:return b.val(c);break}}};<commit_msg>Automated continuous integration commit of minified JS/CSS<commit_after>function TableEditor(){}TableEditor.prototype={tableIdentifier:null,rowIdentifier:null,columnIdentifier:null,selected:null,init:function(d,a,b){this.tableIdentifier=d;this.rowIdentifier=a;this.columnIdentifier=b;var c=$(d);if(c){that=this;c.each(function(){that.initializeTable(this)})}},initializeTable:function(b){var a=this;$(b).selectable({filter:this.rowIdentifier,selected:function(c,d){a.attachColumnHandlers(d.selected)},unselected:function(c,d){a.deAttachColumnHandlers(d.selected)}})},deAttachColumnHandlers:function(b){var a=this;$(this.columnIdentifier,b).each(function(){var c=$(":input",$(this));if(c){$(c).unbind(".tableEditor")}})},attachColumnHandlers:function(d){var c=this;var b=0;var a=new RegExp("ui-autocomplete-input");$(this.columnIdentifier,d).each(function(){var e=$(":input",$(this));var h=$(e);var g=h.attr("type");if(e&&g){switch(g){case"text":var f=b;if(a.test(h.attr("class"))){h.bind("autocompleteclose.tableEditor",function(){c.updateSingleInputElements(e,f,"input")})}else{h.bind("keyup.tableEditor",function(){c.updateSingleInputElements(e,f,"input")})}break;case"select-one":var f=b;h.bind("change.tableEditor",function(){c.updateSingleInputElements(e,f,"select");c.handleExtraEvents(h)});break;case"checkbox":var f=b;h.bind("click.tableEditor",function(){c.updateSingleInputElements(e,f,"input")});break;case"hidden":break;case null:break;default:alert("unsupported element of type "+g+", please file a bug report containing this message and a screenshot for table-editor.js");break}}b++})},updateSingleInputElements:function(f,d,b){var g=this;var h=$(f);var i=h.parent();var a=i.parent();var k=a.parent();var j=this.getValue(h);$(".ui-selected",k).each(function(){$(g.columnIdentifier+":eq("+d+") "+b,$(this)).each(function(){var c=$(this);if(c.attr("type")!="hidden"){var e=g.getValue(c);if(e!=j){g.setValue(c,j)}}})})},getValue:function(a){var b=$(a);switch(b.attr("type")){case"checkbox":return b.attr("checked");break;default:return b.val();break}},setValue:function(a,c){var b=$(a);switch(b.attr("type")){case"checkbox":return b.attr("checked",c);break;default:return b.val(c);break}},handleExtraEvents:function(element){var events=["change"];for(var i=0;i<events.length;i++){var call=element.attr("tableEditor"+events[i].substr(0,1).toUpperCase()+events[i].substr(1).toLowerCase()+"Event");if(call){eval(call)}}}};
{'fraction_non_alphanumeric': 0.23953539338154722, 'fraction_numerical': 0.0013149243918474688, 'mean_word_length': 19.194690265486727, 'pattern_counts': {'":': 18, '<': 4, '<?xml version=': 0, '>': 3, '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': '3806063', 'n_tokens_mistral': 1539, 'n_tokens_neox': 1532, 'n_words': 106}