@@ -23,11 +23,11 @@ var total_ops = new metrics.Histogram.createUniformHistogram();
2323
2424console . log ( 'Comparing before,' , file1 , '(' , before_lines . length , 'lines)' , 'to after,' , file2 , '(' , after_lines . length , 'lines)' ) ;
2525
26- function is_whitespace ( s ) {
26+ function is_whitespace ( s ) {
2727 return ! ! s . trim ( ) ;
2828}
2929
30- function pad ( input , len , chr , right ) {
30+ function pad ( input , len , chr , right ) {
3131 var str = input . toString ( ) ;
3232 chr = chr || ' ' ;
3333
@@ -44,20 +44,20 @@ function pad(input, len, chr, right) {
4444}
4545
4646// green if greater than 0, red otherwise
47- function humanize_diff ( num , unit , toFixed ) {
47+ function humanize_diff ( num , unit , toFixed ) {
4848 unit = unit || '' ;
4949 if ( num > 0 ) {
5050 return ' +' + pad ( num . toFixed ( toFixed || 0 ) + unit , 7 ) ;
5151 }
5252 return ' -' + pad ( Math . abs ( num ) . toFixed ( toFixed || 0 ) + unit , 7 ) ;
5353}
5454
55- function command_name ( words ) {
55+ function command_name ( words ) {
5656 var line = words . join ( ' ' ) ;
5757 return line . substr ( 0 , line . indexOf ( ',' ) ) ;
5858}
5959
60- before_lines . forEach ( function ( b , i ) {
60+ before_lines . forEach ( function ( b , i ) {
6161 var a = after_lines [ i ] ;
6262 if ( ! a || ! b || ! b . trim ( ) || ! a . trim ( ) ) {
6363 // console.log('#ignored#', '>'+a+'<', '>'+b+'<');
@@ -66,10 +66,10 @@ before_lines.forEach(function(b, i) {
6666 var b_words = b . split ( ' ' ) . filter ( is_whitespace ) ;
6767 var a_words = a . split ( ' ' ) . filter ( is_whitespace ) ;
6868
69- var ops = [ b_words , a_words ] . map ( function ( words ) {
69+ var ops = [ b_words , a_words ] . map ( function ( words ) {
7070 // console.log(words);
7171 return words . slice ( - 2 , - 1 ) | 0 ;
72- } ) . filter ( function ( num ) {
72+ } ) . filter ( function ( num ) {
7373 var isNaN = ! num && num !== 0 ;
7474 return ! isNaN ;
7575 } ) ;
0 commit comments