<commit_before>package cncta.ui;

class BaseBuilder extends cncta.inject.ui.CustomWindow
{
    private var url_widget:qx.ui.basic.Label;

    public override function new()
    {
        super("Base Builder");
        this.set({
            allowMaximize: false,
            allowMinimize: false,
            showMaximize: false,
            showMinimize: false,
            showStatusbar: false,
            movable: true,
            alwaysOnTop: true,
            showClose: true,
        });

        this.setLayout(new qx.ui.layout.VBox(10));

        this.url_widget = new qx.ui.basic.Label();
        this.url_widget.setDecorator("pane-comment");
        this.url_widget.set({
            selectable: true,
            rich: true,
        });

        this.add(url_widget, {
            top: 0,
            bottom: 0,
            left: 0,
            right: 0,
        });

        this.addListener("appear", this.on_appear);
    }

    private function set_bbid(?id:String)
    {
        var url = "http://cncbasebuilder.appspot.com/";

        if (id != null)
            url += "#" + id;

        var link = "<a href=\"#\" onClick=\"webfrontend.";
        link += "gui.Util.openLinkFromInnerHtml(this);\">";
        link += url;
        link += "</a>";

        this.url_widget.setValue(link);
    }

    private function structure2bb(building:Int)
    {
        var convertmap:IntHash<String> = new IntHash();
        convertmap.set(1,   "6");
        convertmap.set(2,   "8");
        convertmap.set(5,   "9");
        convertmap.set(10,  "7");
        convertmap.set(16,  "A");
        convertmap.set(24,  "B");
        convertmap.set(32,  "4");
        convertmap.set(34,  "D");
        convertmap.set(35,  "C");
        convertmap.set(36,  "E");
        convertmap.set(40,  "F");
        convertmap.set(42,  "G");
        convertmap.set(80,  "I");<commit_msg>Enhance style of BaseBuilder window.<commit_after>package cncta.ui;

class BaseBuilder extends cncta.inject.ui.CustomWindow
{
    private var url_widget:qx.ui.basic.Label;

    public override function new()
    {
        super("The Base Builder URL for the current base is:");

        this.set({
            allowMaximize: false,
            allowMinimize: false,
            showMaximize: false,
            showMinimize: false,
            showStatusbar: false,
            resizable: false,
            movable: true,
            alwaysOnTop: true,
            showClose: true,
        });

        this.setLayout(new qx.ui.layout.VBox(10));

        this.url_widget = new qx.ui.basic.Label();

        this.url_widget.set({
            padding: 10,
            selectable: true,
            rich: true,
        });

        this.add(this.url_widget);

        this.addListener("appear", this.on_appear);
    }

    private function set_bbid(?id:String)
    {
        var url = "http://cncbasebuilder.appspot.com/";

        if (id != null)
            url += "#" + id;

        var link = "<a href=\"#\" onClick=\"webfrontend.";
        link += "gui.Util.openLinkFromInnerHtml(this);\"";
        link += " style=\"color:#ffffff\">";
        link += url;
        link += "</a>";

        this.url_widget.setValue(link);
    }

    private function structure2bb(building:Int)
    {
        var convertmap:IntHash<String> = new IntHash();
        convertmap.set(1,   "6");
        convertmap.set(2,   "8");
        convertmap.set(5,   "9");
        convertmap.set(10,  "7");
        convertmap.set(16,  "A");
        convertmap.set(24,  "B");
        convertmap.set(32,  "4");
        convertmap.set(34,  "D");
        convertmap.set(35,  "C");
        convertmap.set(36,  "E");
        convertmap.set(40,  "F");
        convertmap.set(42,  "G");
        convertmap.set(80,  "I");
{'fraction_non_alphanumeric': 0.147458078253926, 'fraction_numerical': 0.01809954751131222, 'mean_word_length': 1.8002980625931446, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '1333078', 'n_tokens_mistral': 1251, 'n_tokens_neox': 1191, 'n_words': 227}