<commit_before>// I don't know why these are here
// https://stackoverflow.com/questions/9811429/html5-audio-tag-on-safari-has-a-delay
const AudioContext = window.AudioContext || window.webkitAudioContext;
const audioCtx = new AudioContext();

function MultiAudio(src, instances = 5) {
  const output = [];
  const Audio = window.Audio || function Audio() {};

  for (let i = 0; i < instances; i += 1) {
    output.push(new Audio(src));
  }

  let current = 0;

  this.play = function play() {
    const audio = output[(current += 1) % instances];
    audio.currentTime = 0;
    audio.play();
  };
}

export default MultiAudio;<commit_msg>remove what I don't understand<commit_after>function MultiAudio(src, instances = 5) {
  const output = [];
  const Audio = window.Audio || function Audio() {};

  for (let i = 0; i < instances; i += 1) {
    output.push(new Audio(src));
  }

  let current = 0;

  this.play = function play() {
    const audio = output[(current += 1) % instances];
    audio.currentTime = 0;
    audio.play();
  };
}

export default MultiAudio;
{'fraction_non_alphanumeric': 0.14821763602251406, 'fraction_numerical': 0.01876172607879925, 'mean_word_length': 3.4458333333333333, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '7451989', 'n_tokens_mistral': 357, 'n_tokens_neox': 330, 'n_words': 96}