<commit_before>({
  name: 'event-abort',
  description: 'Event "abort"',
  assert: function(finish) {
    var audio = this.audio = new Audio();

    audio.addEventListener('abort', function() {
      finish(true);
    }, false);

    audio.addEventListener('loadedmetadata', function() {
      audio.play();
      setTimeout(function(){
        audio.src = '';
        audio.load();
      },3000);
    });

    audio.setAttribute('preload', 'metadata');
    audio.setAttribute('src', AWPY.sound.long.stream_url(true));
    audio.volume = 0;
  }
})<commit_msg>event-abort revision<commit_after>({
  name: 'event-abort',
  description: 'Event "abort"',
  assert: function(finish) {
    var audio = this.audio = new Audio();

    audio.addEventListener('abort', function() {
      finish(true);
    }, false);

    audio.addEventListener('loadstart', function() {
      audio.setAttribute('src', '');
      audio.load(); // Should trigger abort now

      setTimeout(function() {
        finish(false); // Didn't trigger abort
      }, 1000);
    });

    audio.setAttribute('src', AWPY.sound.short.stream_url());
    audio.load();
  }
})
{'fraction_non_alphanumeric': 0.17709251101321585, 'fraction_numerical': 0.007929515418502203, 'mean_word_length': 3.057142857142857, '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': '3367388', 'n_tokens_mistral': 344, 'n_tokens_neox': 340, 'n_words': 65}