<commit_before>!function(){angular.module("ngMinimalGrid",[]).directive("minimalGrid",["$parse","$filter",function(a,e){return{restrict:"E",scope:{columns:"<",rows:"<",fake:"<?",totalRows:"<?",paginationMax:"<?",paginationRange:"<?",changeOrderByCallback:"&?onChangeOrderBy",changePaginateCallback:"&?onChangePaginate",clickRowCallback:"&?onClickRow"},template:'<div ng-bind="statsParse()"></div><table class="dataTable table table-striped table-bordered table-hover no-footer">  <thead>    <tr>      <th ng-click="changeOrderBy(column)" ng-repeat="column in columns" class="{{ column.class }} {{ column.hide }}">{{ column.title }}</th>    </tr>  </thead>  <tbody>    <tr class="odd" ng-repeat="dataRow in data | limitTo : pages.max">      <td ng-click="clickRow(dataRow)" ng-repeat="column in columns" class="{{ columns[$index].hide }}" ng-bind="columnParse(columns[$index].key, dataRow, columns[$index])"></td>    </tr>  </tbody></table><div class="pull-right">  <ul class="pagination">    <li><a href="#" ng-click="changePaginate(pages.first)">Primeiro</a></li>    <li>      <a href="#" ng-click="changePaginate(pages.previous)">        << </a>    </li>    <li class="{{ ( n == pages.current ? \'active\' : \'\') }}"      ng-click="changePaginate(n)" ng-repeat="n in pages.total | limitTo : pages.range : pages.pagination"><a href="#">{{ n }}</a></li>    <li><a href="#" ng-click="changePaginate(pages.next)"> >> </a></li>    <li><a href="#" ng-click="changePaginate(pages.last)">Último</a></li>  </ul></div>        ',link:function(t){function n(a){t.pages.total=[]
for(var e=Math.ceil(a/t.pages.max),n=1;n<=e;n++)t.pages.total.push(n)}function l(){t.pages.current>t.pages.total.length&&(t.pages.current=1,t._lastPagePaginate=1),t.pages.first=1,t.pages.last=t.pages.total.length,t.pages.previous=t.pages.current-1>0?t.pages.current-1:1,t.pages.next=t.pages.current+1<=t.pages.total.length?t.pages.current+1:t.pages.total.length,t.pages.pagination=s()}function s(){var a=t.pages.current-1,e=t.pages.total.length-t.pages.range
return a>e&&(a=e),a<0&&(a=0),a}function r(a){t._data=a,t.data=Object.assign([],t._data)}t.$watchCollection("rows",function(a){r(a),t.fake||(n(t.data.length),l(),t._lastColumnOrderBy&&t.changeOrderBy(t._lastColumnOrderBy),t._lastPagePaginate&&t.changePaginate(t._lastPagePaginate))}),(t.fake||t.totalRows)&&t.$watch("totalRows",function(a){t._lastTotalPopulatePages=a,n(a),l()}),t.columnParse=function(t,n,l){var s=a(t),r=s(n)
return l.formatDate&&(r=e("date")(1e3*r,l.formatDate,"+0000")),l.onRender=l.onRender||function(a){return a},l.onRender(r)},t.statsParse=function(){var a="Showing %1 to %2 of %3 results",e=(t.pages.current-1)*t.pages.max>0?(t.pages.current-1)*t.pages.max+1:t._data.length>0?1:0
if(t.fake)if(void 0!=t._lastTotalPopulatePages)var n=(t.pages.current-1)*t.pages.max+t.pages.max<t._lastTotalPopulatePages?(t.pages.current-1)*t.pages.max+t.pages.max:t._lastTotalPopulatePages,l=t._lastTotalPopulatePages
else var n=0,l=0
else var n=(t.pages.current-1)*t.pages.max+t.pages.max<t._data.length?(t.pages.current-1)*t.pages.max+t.pages.max:t._data.length,l=t._data.length
return a.replace("%1",e).replace("%2",n).replace("%3",l)},t.changeOrderBy=function(a){if(t._lastColumnOrderBy!=a){var n=a.class
t.columns.map(function(a){a.class="sorting"}),a.class="sorting_asc"==n?"sorting_desc":"sorting_asc",t._lastColumnOrderBy=Object.assign({},a)}if(!t.fake){1!=t.pages.current&&(t.pages.current=1,r(t._data),l())
r(e("orderBy")(t.data,a.key,"sorting_desc"==a.class))}t.changeOrderByCallback&&t.changeOrderByCallback({orderBy:{orderdirection:a.class.replace("sorting_",""),orderby:a.key}})},t.changePaginate=function(a){if(t._lastPagePaginate=Number(a),t.pages.current=a,l(),!t.fake){r(t._data)
var e=t.pages.current-1>0?(t.pages.current-1)*t.pages.max:0
t.data=t.data.slice(e)}t.changePaginateCallback&&t.changePaginateCallback({pages:t.pages})},t.clickRow=function(a){t.clickRowCallback&&t.clickRowCallback({row:a})},t._data=[],t.data=[],t._lastColumnOrderBy=void 0,t._lastPagePaginate=void 0,t._lastTotalPopulatePages=void 0,t.fake=t.fake||!1,t.columns.map(function(a){a.class="sorting"}),t.pages={first:1,last:1,previous:1,next:1,current:1,total:[1],max:t.paginationMax||10,range:t.paginationRange||5,pagination:0}}}}])}()<commit_msg>updated minified<commit_after>!function(){angular.module("ngMinimalGrid",[]).provider("minimalGridConfig",function(){this.statsMessage="Showing %1 to %2 of %3 results",this.setStatsMessage=function(a){this.statsMessage=a},this.firstButtonLabel="First",this.setFirstLabel=function(a){this.firstButtonLabel=a},this.lastButtonLabel="Last",this.setLastLabel=function(a){this.lastButtonLabel=a},this.$get=function(){return this}}).directive("minimalGrid",["minimalGridConfig","$parse","$filter",function(a,e,t){return{restrict:"E",scope:{columns:"<",rows:"<",fake:"<?",totalRows:"<?",paginationMax:"<?",paginationRange:"<?",changeOrderByCallback:"&?onChangeOrderBy",changePaginateCallback:"&?onChangePaginate",clickRowCallback:"&?onClickRow"},template:'<div ng-bind="statsParse()"></div><table class="dataTable table table-striped table-bordered table-hover no-footer">  <thead>    <tr>      <th ng-click="changeOrderBy(column)" ng-repeat="column in columns" class="{{ column.class }} {{ column.hide }}">{{ column.title }}</th>    </tr>  </thead>  <tbody>    <tr class="odd" ng-repeat="dataRow in data | limitTo : pages.max">      <td ng-click="clickRow(dataRow)" ng-repeat="column in columns" class="{{ columns[$index].hide }}" ng-bind="columnParse(columns[$index].key, dataRow, columns[$index])"></td>    </tr>  </tbody></table><div class="pull-right">  <ul class="pagination">    <li><a href="#" ng-click="changePaginate(pages.first)">{{ firstButtonLabel }}</a></li>    <li>      <a href="#" ng-click="changePaginate(pages.previous)">        << </a>    </li>    <li class="{{ ( n == pages.current ? \'active\' : \'\') }}"      ng-click="changePaginate(n)" ng-repeat="n in pages.total | limitTo : pages.range : pages.pagination"><a href="#">{{ n }}</a></li>    <li><a href="#" ng-click="changePaginate(pages.next)"> >> </a></li>    <li><a href="#" ng-click="changePaginate(pages.last)">{{ lastButtonLabel }}</a></li>  </ul></div><div class="clearfix"></div>',link:function(n){function s(a){n.pages.total=[]
for(var e=Math.ceil(a/n.pages.max),t=1;t<=e;t++)n.pages.total.push(t)}function l(){n.pages.current>n.pages.total.length&&(n.pages.current=1,n._lastPagePaginate=1),n.pages.first=1,n.pages.last=n.pages.total.length,n.pages.previous=n.pages.current-1>0?n.pages.current-1:1,n.pages.next=n.pages.current+1<=n.pages.total.length?n.pages.current+1:n.pages.total.length,n.pages.pagination=i()}function i(){var a=n.pages.current-1,e=n.pages.total.length-n.pages.range
return a>e&&(a=e),a<0&&(a=0),a}function r(a){n._data=a,n.data=Object.assign([],n._data)}n.firstButtonLabel=a.firstButtonLabel,n.lastButtonLabel=a.lastButtonLabel,n.$watchCollection("rows",function(a){r(a),n.fake||(s(n.data.length),l(),n._lastColumnOrderBy&&n.changeOrderBy(n._lastColumnOrderBy),n._lastPagePaginate&&n.changePaginate(n._lastPagePaginate))}),(n.fake||n.totalRows)&&n.$watch("totalRows",function(a){n._lastTotalPopulatePages=a,s(a),l()}),n.columnParse=function(a,n,s){var l=e(a),i=l(n)
return s.formatDate&&(i=t("date")(1e3*i,s.formatDate,"+0000")),s.onRender=s.onRender||function(a){return a},s.onRender(i)},n.statsParse=function(){var e=a.statsMessage,t=(n.pages.current-1)*n.pages.max>0?(n.pages.current-1)*n.pages.max+1:n._data.length>0?1:0
if(n.fake)if(void 0!=n._lastTotalPopulatePages)var s=(n.pages.current-1)*n.pages.max+n.pages.max<n._lastTotalPopulatePages?(n.pages.current-1)*n.pages.max+n.pages.max:n._lastTotalPopulatePages,l=n._lastTotalPopulatePages
else var s=0,l=0
else var s=(n.pages.current-1)*n.pages.max+n.pages.max<n._data.length?(n.pages.current-1)*n.pages.max+n.pages.max:n._data.length,l=n._data.length
return e.replace("%1",t).replace("%2",s).replace("%3",l)},n.changeOrderBy=function(a){if(n._lastColumnOrderBy!=a){var e=a.class
n.columns.map(function(a){a.class="sorting"}),a.class="sorting_asc"==e?"sorting_desc":"sorting_asc",n._lastColumnOrderBy=Object.assign({},a)}if(!n.fake){1!=n.pages.current&&(n.pages.current=1,r(n._data),l())
r(t("orderBy")(n.data,a.key,"sorting_desc"==a.class))}n.changeOrderByCallback&&n.changeOrderByCallback({orderBy:{orderdirection:a.class.replace("sorting_",""),orderby:a.key}})},n.changePaginate=function(a){if(n._lastPagePaginate=Number(a),n.pages.current=a,l(),!n.fake){r(n._data)
var e=n.pages.current-1>0?(n.pages.current-1)*n.pages.max:0
n.data=n.data.slice(e)}n.changePaginateCallback&&n.changePaginateCallback({pages:n.pages})},n.clickRow=function(a){n.clickRowCallback&&n.clickRowCallback({row:a})},n._data=[],n.data=[],n._lastColumnOrderBy=void 0,n._lastPagePaginate=void 0,n._lastTotalPopulatePages=void 0,n.fake=n.fake||!1,n.columns.map(function(a){a.class="sorting"}),n.pages={first:1,last:1,previous:1,next:1,current:1,total:[1],max:n.paginationMax||10,range:n.paginationRange||5,pagination:0}}}}])}()
{'fraction_non_alphanumeric': 0.24410233691438699, 'fraction_numerical': 0.013068999889245763, 'mean_word_length': 8.741100323624595, 'pattern_counts': {'":': 2, '<': 111, '<?xml version=': 0, '>': 101, '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': '6114896', 'n_tokens_mistral': 3456, 'n_tokens_neox': 3451, 'n_words': 241}