<commit_before>var Git = require('git-wrapper'),
  path = require('path');

var git = new Git ();
git.exec('ls-files', function (error, message) {
  console.log(message.split('\n'));
});<commit_msg>working on minify<commit_after>var Git = require('git-wrapper'),
  path = require('path');
  async = require('async'),
  minify = require('minify'),
  fs = require('fs');

var git = new Git ();

function minifyFile (fileName, cb) {
  minify.optimize(fileName, {
      callback: function(pData){
          cb();
          /*
          fs.writeFile(fileName, pData, function(pError){
            cb(pError);
              //Util.log(pError || 'minify: ' + 'file ' + lOut +' writed');
          });
*/
      }
  });
}

git.exec('ls-files', function (error, message) {
  async.each(message.split('\n'), minifyFile, function (error) {
    console.log(error);
  });
});
{'fraction_non_alphanumeric': 0.19628339140534262, 'fraction_numerical': 0.0, 'mean_word_length': 3.0469483568075115, 'pattern_counts': {'":': 0, '<': 3, '<?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': '3561985', 'n_tokens_mistral': 280, 'n_tokens_neox': 284, 'n_words': 57}