<commit_before>function filter(v, min, max) {
    v = Math.min(v, max);
    v = Math.max(v, min);
    return v;
}

class MagicPoint {
    constructor(current, max) {
        this.max = max;
        this.min = 0;
        this.current = filter(curremt, 0, this.max);
    };

    change(next) {
        this.current = filter(next, 0, this.max);
        return this;
    }
}

module.exports = MagicPoint;<commit_msg>Fix typo of magic point model<commit_after>function filter(v, min, max) {
    v = Math.min(v, max);
    v = Math.max(v, min);
    return v;
}

class MagicPoint {
    constructor(current, max) {
        this.max = max;
        this.min = 0;
        this.current = filter(current, 0, this.max);
    };

    change(next) {
        this.current = filter(next, 0, this.max);
        return this;
    }
}

module.exports = MagicPoint;
{'fraction_non_alphanumeric': 0.14285714285714285, 'fraction_numerical': 0.007142857142857143, 'mean_word_length': 2.2346153846153847, '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': '1527267', 'n_tokens_mistral': 299, 'n_tokens_neox': 289, 'n_words': 70}