<commit_before>const ytutil = require('./youtubeHandler.js');

class AudioPlayer {
    constructor (client, guildId) {
        this._client = client;
        this._guildId = guildId;
        this.queue = [];
        this.current = null;
        this.msgChannel = null;
        this.skips = new Set();
        this.repeat = 0;

        this.bassBoost = null;
    }

    /*
     * Sets repeat mode
     * 0 - off
     * 1 - single
     * 2 - all
     */
    setRepeat (mode) {
        let val = Number(mode) || 0;
        val = Math.max(Math.min(val, 2), 0);

        this.repeat = val;
    }

    getRepeatReadable () {
        if (this.repeat === 2) {
            return 'all';
        } else if (this.repeat === 1) {
            return 'single';
        } else if (this.repeat === 0) {
            return 'none';
        } else {
            return 'unknown';
        }
    }

    voteSkip (userId) {
        this.skips.add(userId);
        return this.skips.size;
    }

    setAnnounce (channelId) {
        this.msgChannel = channelId;
    }

    add (track) {
        this.queue.push(track);
    }

    setBassBoost(gain) {
        if (gain === null || gain === 0) {
            this.bassBoost = null;
        } else {
            this.bassBoost = ['-af', `equalizer=f=40:width_type=h:width=30:g=${gain}`];
        }
    }

    async play () {<commit_msg>cutoff band at 90Hz<commit_after>const ytutil = require('./youtubeHandler.js');

class AudioPlayer {
    constructor (client, guildId) {
        this._client = client;
        this._guildId = guildId;
        this.queue = [];
        this.current = null;
        this.msgChannel = null;
        this.skips = new Set();
        this.repeat = 0;

        this.bassBoost = null;
    }

    /*
     * Sets repeat mode
     * 0 - off
     * 1 - single
     * 2 - all
     */
    setRepeat (mode) {
        let val = Number(mode) || 0;
        val = Math.max(Math.min(val, 2), 0);

        this.repeat = val;
    }

    getRepeatReadable () {
        if (this.repeat === 2) {
            return 'all';
        } else if (this.repeat === 1) {
            return 'single';
        } else if (this.repeat === 0) {
            return 'none';
        } else {
            return 'unknown';
        }
    }

    voteSkip (userId) {
        this.skips.add(userId);
        return this.skips.size;
    }

    setAnnounce (channelId) {
        this.msgChannel = channelId;
    }

    add (track) {
        this.queue.push(track);
    }

    setBassBoost(gain) {
        if (gain === null || gain === 0) {
            this.bassBoost = null;
        } else {
            this.bassBoost = ['-af', `equalizer=f=40:width_type=h:width=50:g=${gain}`];
        }
    }

    async play () {
{'fraction_non_alphanumeric': 0.1438004402054292, 'fraction_numerical': 0.01173881144534116, 'mean_word_length': 1.5156826568265682, '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': '1636696', 'n_tokens_mistral': 926, 'n_tokens_neox': 881, 'n_words': 187}