<commit_before>// Load in the module
var git = require( '../' );
// Open a repository for reading
git.repo( '../.git', function( err, repo ) {
  // Success is always 0, failure is always an error string
  if( err ) { throw err; }
  // Use the master branch
  repo.branch( 'master', function( err, branch ) {
    if( err ) { throw err; }
    // Iterate over the revision history
    branch.history.each( function( i, commit ) {
      // Print out `git log` emulation
      console.log( 'commit ' + commit.sha );
      console.log( commit.author.name + ' <' + commit.author.email + '>' );
      console.log( commit.time );
      console.log( commit.message );
    });
  });
});<commit_msg>Updated convenience-repo.js<commit_after>// Load in the module
var git = require( '../' );
// Open a repository for reading
git.repo( '../.git', function( err, repo ) {
  // Success is always 0, failure is always an error string
  if( err ) { throw err; }
  // Use the master branch
  repo.branch( 'master', function( err, branch ) {
    if( err ) { throw err; }
    // Iterate over the revision history
    branch.history().on( 'commit', function( err, commit ) {
      // Print out `git log` emulation
      console.log( 'commit ' + commit.sha );
      console.log( commit.author.name + ' <' + commit.author.email + '>' );
      console.log( commit.time );
      console.log( commit.message );
    });
  });
});
{'fraction_non_alphanumeric': 0.16214285714285714, 'fraction_numerical': 0.0014285714285714286, 'mean_word_length': 2.5831202046035804, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '7559590', 'n_tokens_mistral': 423, 'n_tokens_neox': 420, 'n_words': 140}