<commit_before>var sh = require('execSync');

module.exports = {

  configuration : function(){
    var branch = sh.run("git rev-parse --abbrev-ref HEAD");
    if (branch === 'HEAD') {
      branch = 'master';
    }
    var head = sh.run("git rev-parse HEAD");
    retval = {
      commitId : head,
      branch : branch
    };
    return retval;
  }

};
<commit_msg>fix sh.run to sh.exec to get proper output<commit_after>var sh = require('execSync');

module.exports = {

  configuration : function(){
    var branch = sh.exec("git rev-parse --abbrev-ref HEAD").stdout.trim();
    if (branch === 'HEAD') {
      branch = 'master';
    }
    var head = sh.exec("git rev-parse HEAD").stdout.trim();
    retval = {
      commitId : head,
      branch : branch
    };
    return retval;
  }

};

{'fraction_non_alphanumeric': 0.1614123581336696, 'fraction_numerical': 0.0, 'mean_word_length': 2.482456140350877, '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': '4478160', 'n_tokens_mistral': 260, 'n_tokens_neox': 253, 'n_words': 65}