<commit_before>package priori.view.grid.cell;

import priori.view.text.PriText;

class PriGridCellRendererDefault extends PriGridCellRenderer {

    private var label:PriText;


    public function new() {
        super();
    }

    override public function update():Void {
        if (this.canPaint()) {
            this.label.text = this.value;
        }
    }

    override private function setup():Void {
        this.label = new PriText();
        this.label.autoSize = false;
        this.label.multiLine = false;
        this.label.text = this.value;
        this.label.height = null;

        this.addChild(this.label);
    }

    override private function paint():Void {
        var space:Float = 10;

        this.label.width = this.width - space*2;
        this.label.height = null;

        this.label.x = space;
        this.label.centerY = this.height/2;

    }
}<commit_msg>Faster default cell for PriDataGrid<commit_after>package priori.view.grid.cell;

import priori.view.text.PriText;

class PriGridCellRendererDefault extends PriGridCellRenderer {

    private var label:PriText;


    public function new() {
        super();
        this.clipping = true;
    }

    override public function update():Void {
        if (this.canPaint()) {
            this.label.text = this.value;
        }
    }

    override private function setup():Void {
        this.label = new PriText();
        this.label.text = this.value;

        this.addChild(this.label);
    }

    override private function paint():Void {
        var space:Float = 10;

        this.label.x = space;
        this.label.centerY = this.height/2;
    }
}
{'fraction_non_alphanumeric': 0.10989010989010989, 'fraction_numerical': 0.004273504273504274, 'mean_word_length': 2.188715953307393, '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': '130310', 'n_tokens_mistral': 497, 'n_tokens_neox': 475, 'n_words': 105}