<commit_before>// external import
import {Howl, Howler} from "howler";
import {clamp} from "./../math/math.js";
import loader from "./../loader/loader.js";

/**
 * @namespace audio
 */

/**
 * audio channel list
 * @ignore
 */
var audioTracks = {};

/**
 * current active track
 * @ignore
 */
var current_track_id = null;

/**
 * error retry counter
 * @ignore
 */
var retry_counter = 0;

/**
 * list of active audio formats
 * @ignore
 */
var audioExts = [];

/**
 * event listener callback on load error
 * @ignore
 */
var soundLoadError = function (sound_name, onerror_cb) {
    // check the retry counter
    if (retry_counter++ > 3) {
        // something went wrong
        var errmsg = "melonJS: failed loading " + sound_name;
        if (stopOnAudioError === false) {
            // disable audio
            disable();
            // call error callback if defined<commit_msg>change var to let (es6) in audio.js<commit_after>// external import
import {Howl, Howler} from "howler";
import {clamp} from "./../math/math.js";
import loader from "./../loader/loader.js";

/**
 * @namespace audio
 */

/**
 * audio channel list
 * @ignore
 */
let audioTracks = {};

/**
 * current active track
 * @ignore
 */
let current_track_id = null;

/**
 * error retry counter
 * @ignore
 */
let retry_counter = 0;

/**
 * list of active audio formats
 * @ignore
 */
let audioExts = [];

/**
 * event listener callback on load error
 * @ignore
 */
let soundLoadError = function (sound_name, onerror_cb) {
    // check the retry counter
    if (retry_counter++ > 3) {
        // something went wrong
        var errmsg = "melonJS: failed loading " + sound_name;
        if (stopOnAudioError === false) {
            // disable audio
            disable();
            // call error callback if defined
{'fraction_non_alphanumeric': 0.14229910714285715, 'fraction_numerical': 0.0027901785714285715, 'mean_word_length': 2.4883268482490273, 'pattern_counts': {'":': 0, '<': 3, '<?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': '3992991', 'n_tokens_mistral': 536, 'n_tokens_neox': 533, 'n_words': 175}