<commit_before>function ShapeTheme(onComplete, global) {
    PIXI_UI.skin.Theme.call(this, global);
    this.textStyle = {
        "fill": "#fff",
        "font": "20px Arial"
    };
    this.onComplete = onComplete;
    this.setSkins();
}

ShapeTheme.prototype = Object.create( PIXI_UI.skin.Theme.prototype );
ShapeTheme.prototype.constructor = ShapeTheme;

ShapeTheme.prototype.getDummyButton = function(color, borderColor) {
    return function() {
        var rect = new PIXI_UI.shape.Rect(color, 0.8);
        rect.radius = 5;
        rect.border = 2;
        rect.borderColor = borderColor;
        return rect;
    }
};

ShapeTheme.prototype.setSkins = function() {
    var b = PIXI_UI.controls.Button;
    //var tb = PIXI_UI.controls.ToggleButton;
    this.setSkin(b.SKIN_NAME, b.UP,
        this.getDummyButton(0x6073c8, 0x0000ff));
    this.setSkin(b.SKIN_NAME, b.DOWN,
        this.getDummyButton(0xEA8686, 0xff0000));
    this.setSkin(b.SKIN_NAME, b.HOVER,
        this.getDummyButton(0x60c865, 0x00ff00));

    // TODO: emit
    if (this._onComplete) {
        this._onComplete();<commit_msg>Bugfix: typo fix (shape -> shapes)<commit_after>function ShapeTheme(onComplete, global) {
    PIXI_UI.skin.Theme.call(this, global);
    this.textStyle = {
        "fill": "#fff",
        "font": "20px Arial"
    };
    this.onComplete = onComplete;
    this.setSkins();
}

ShapeTheme.prototype = Object.create( PIXI_UI.skin.Theme.prototype );
ShapeTheme.prototype.constructor = ShapeTheme;

ShapeTheme.prototype.getDummyButton = function(color, borderColor) {
    return function() {
        var rect = new PIXI_UI.shapes.Rect(color, 0.8);
        rect.radius = 5;
        rect.border = 2;
        rect.borderColor = borderColor;
        return rect;
    }
};

ShapeTheme.prototype.setSkins = function() {
    var b = PIXI_UI.controls.Button;
    //var tb = PIXI_UI.controls.ToggleButton;
    this.setSkin(b.SKIN_NAME, b.UP,
        this.getDummyButton(0x6073c8, 0x0000ff));
    this.setSkin(b.SKIN_NAME, b.DOWN,
        this.getDummyButton(0xEA8686, 0xff0000));
    this.setSkin(b.SKIN_NAME, b.HOVER,
        this.getDummyButton(0x60c865, 0x00ff00));

    // TODO: emit
    if (this._onComplete) {
        this._onComplete();
{'fraction_non_alphanumeric': 0.13306451612903225, 'fraction_numerical': 0.034050179211469536, 'mean_word_length': 2.9662522202486676, 'pattern_counts': {'":': 4, '<': 3, '<?xml version=': 0, '>': 4, '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': '4699297', 'n_tokens_mistral': 847, 'n_tokens_neox': 794, 'n_words': 127}