<commit_before>var dragDrop = require('drag-drop/buffer');
var id3v2 = require('id3v2-parser');
var BufferList = require('bl');
var nonAscii = require('non-ascii');

dragDrop('body', function(files) {
  var parser = new id3v2();

  parser.on('data', function(tag) {
    console.log(tag);

    // album art
    //
    // make sure `Blob` is available and also ensure that the mime type is ascii
    // because for some reason some of my music's mime types aren't ascii
    if (tag.type === 'APIC' && typeof Blob !== 'undefined' &&
        !nonAscii.test(tag.value.mime)) {
      var blob = new Blob([tag.value.data], {type: tag.value.mime});
      var url = URL.createObjectURL(blob);
      var img = document.getElementById('albumart');
      img.src = url;

      // release the object URL on-load since it is no longer needed once the
      // image has been loaded.
      img.onload = function() {
        URL.revokeObjectURL(this.src);
      }
    }
  });

  var bl = new BufferList();

  bl.append(files[0]);
  bl.pipe(parser);
});<commit_msg>Add missing semicolon<commit_after>var dragDrop = require('drag-drop/buffer');
var id3v2 = require('id3v2-parser');
var BufferList = require('bl');
var nonAscii = require('non-ascii');

dragDrop('body', function(files) {
  var parser = new id3v2();

  parser.on('data', function(tag) {
    console.log(tag);

    // album art
    //
    // make sure `Blob` is available and also ensure that the mime type is ascii
    // because for some reason some of my music's mime types aren't ascii
    if (tag.type === 'APIC' && typeof Blob !== 'undefined' &&
        !nonAscii.test(tag.value.mime)) {
      var blob = new Blob([tag.value.data], {type: tag.value.mime});
      var url = URL.createObjectURL(blob);
      var img = document.getElementById('albumart');
      img.src = url;

      // release the object URL on-load since it is no longer needed once the
      // image has been loaded.
      img.onload = function() {
        URL.revokeObjectURL(this.src);
      };
    }
  });

  var bl = new BufferList();

  bl.append(files[0]);
  bl.pipe(parser);
});
{'fraction_non_alphanumeric': 0.1496437054631829, 'fraction_numerical': 0.00665083135391924, 'mean_word_length': 2.8784530386740332, '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': '3047046', 'n_tokens_mistral': 693, 'n_tokens_neox': 664, 'n_words': 194}