<commit_before>/* Licensed under the MIT license:
 * http://www.opensource.org/licenses/mit-license.php
 * Copyright (c) 2010 Mr.doob, rhyolight, bebraw
 */
function shaded() {
    this.init();
}
shaded.prototype = {
    init: function () {
        this.points = [];
    },
    destroy: function () {},
    stroke: function (canvas, cursor, color, opacity) {
        this.points.push(cursor.current);

        for (e = 0; e < this.points.length; e++) {
            sub = this.points[e].sub(cursor.current);
            g = sub.toDist();

            if (g < 1000) {
                alpha = ((1 - (g / 1000)) * opacity);
                canvas.stroke(cursor.current, this.points[e], color, alpha);
            }
        }
    }
};<commit_msg>Tidied up shaded brush a bit.<commit_after>/* Licensed under the MIT license:
 * http://www.opensource.org/licenses/mit-license.php
 * Copyright (c) 2010 Mr.doob, rhyolight, bebraw
 */
function shaded() {
    this.init();
}
shaded.prototype = {
    init: function () {
        this.points = [];
    },
    destroy: function () {},
    stroke: function (canvas, cursor, color, opacity) {
        this.points.push(cursor.current);

        for (var e = 0; e < this.points.length; e++) {
            g = this.points[e].sub(cursor.current).toDist();

            if (g < 1000) {
                alpha = ((1 - (g / 1000)) * opacity);
                canvas.stroke(cursor.current, this.points[e], color, alpha);
            }
        }
    }
};
{'fraction_non_alphanumeric': 0.162947937795808, 'fraction_numerical': 0.018931710615280595, 'mean_word_length': 2.0142566191446027, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '3361829', 'n_tokens_mistral': 490, 'n_tokens_neox': 452, 'n_words': 106}