<commit_before>"use strict";

import howler from "howler"

export default  (function () {
    const Howl = howler.Howl

    const sound = new Howl({
        src: ['/assets/sound/alarm-trimmed.ogg']
    });

    let id1 = null;

    const start = () => {
        stop()
        id1 = sound.play()
        sound.fade(1, 0, 2000, id1)
    }

    const stop = () => {
        if (id1) sound.stop()
    }

    return {
        start,
        stop
    }
}())
<commit_msg>* reduce alarm file size<commit_after>"use strict";

import howler from "howler"

export default  (function () {
    const Howl = howler.Howl

    const sound = new Howl({
        src: ['/assets/sound/alarm-trimmed.ogg']
    });

    let id1 = null;

    const start = () => {
        stop()
        id1 = sound.play()
        sound.fade(1, 0, 3000, id1)
    }

    const stop = () => {
        if (id1) sound.stop()
    }

    return {
        start,
        stop
    }
}())

{'fraction_non_alphanumeric': 0.14984059511158343, 'fraction_numerical': 0.021253985122210415, 'mean_word_length': 1.7146974063400577, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '6464048', 'n_tokens_mistral': 343, 'n_tokens_neox': 320, 'n_words': 80}