<commit_before>(function (window) {
    'use strict';

    function AudioManager(soundDescriptors) {
        this.sounds = {};
        this.soundDescriptors = soundDescriptors || {};
        this.mute = false;

        try {
            window.AudioContext = window.AudioContext || window.webkitAudioContext;
            this.audioContext = new window.AudioContext();
        } catch (e) {
            window.alert('API Audio non supportée.');
        }
    }

    AudioManager.prototype.loadSounds = function (soundDescriptors) {

        var promises = soundDescriptors.map(function (soundDescriptor) {
            var sound = this.sounds[soundDescriptor.title];

            if (!sound) {
                this.sounds[soundDescriptor.title] = {
                    title: soundDescriptor.title,
                    url: soundDescriptor.url,
                    initialGain: soundDescriptor.initialGain || 1
                };<commit_msg>feat(audio): constructeur permettant de mettre mute directement<commit_after>(function (window) {
    'use strict';

    function AudioManager(soundDescriptors, mute) {
        this.sounds = {};
        this.soundDescriptors = soundDescriptors || {};
        this.mute = mute;

        try {
            window.AudioContext = window.AudioContext || window.webkitAudioContext;
            this.audioContext = new window.AudioContext();
        } catch (e) {
            window.alert('API Audio non supportée.');
        }
    }

    AudioManager.prototype.loadSounds = function (soundDescriptors) {

        var promises = soundDescriptors.map(function (soundDescriptor) {
            var sound = this.sounds[soundDescriptor.title];

            if (!sound) {
                this.sounds[soundDescriptor.title] = {
                    title: soundDescriptor.title,
                    url: soundDescriptor.url,
                    initialGain: soundDescriptor.initialGain || 1
                };
{'fraction_non_alphanumeric': 0.10036213140196586, 'fraction_numerical': 0.0010346611484738748, 'mean_word_length': 2.0031055900621118, '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': '5898916', 'n_tokens_mistral': 498, 'n_tokens_neox': 480, 'n_words': 95}