<commit_before>package com.inepex.ineForm.client.general;

import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.event.shared.HandlerRegistration;
import com.google.gwt.resources.client.CssResource;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HasEnabled;
import com.google.gwt.user.client.ui.HasHTML;
import com.google.gwt.user.client.ui.HasText;
import com.google.gwt.user.client.ui.IsWidget;
import com.google.gwt.user.client.ui.Widget;

public class IneButton extends Composite implements IsWidget, HasEnabled, HasText, HasHTML {

    public static enum IneButtonType {

        /**
         * to jump to the next or previous page <br>
         * <b>blue</b>
         */
        PAGING,

        /**
         * to abort a started action <br>
         * <b>dark gray</b>
         */
        CANCEL,

        /**
         * to modify the properties of action (what is useless without saving) <br>
         * <b>transparent</b>
         */
        CONTROL,

        /**
         * to commit an action that effects data changes or changes in the sate
         * of user or view <br>
         * <b>green</b>
         */
        ACTION,

        /**
         * other buttons <br>
         * <b>light gray</b>
         */
        DEFAULT;
    }

    private static IFButtonUiBinder uiBinder = GWT.create(IFButtonUiBinder.class);

    interface IFButtonUiBinder extends UiBinder<Widget, IneButton> {}

    interface ButtonStyles extends CssResource {
        String pagingColors();

        String cancelColors();

        String controlColors();

        String defaultColors();

        String actionColors();

        String disabled();

        String normalSize();

        String oneCharSize();
    }

    @UiField
    Button button;

    @UiField
    ButtonStyles style;

    public IneButton(String text) {
        this(IneButtonType.DEFAULT, text);
    }

    public IneButton(IneButtonType type, String text) {
        this(type);
        button.setText(text);<commit_msg>substituted IneTrackButton with IneButton, UI not tested yet<commit_after>package com.inepex.ineForm.client.general;

import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.event.shared.HandlerRegistration;
import com.google.gwt.resources.client.CssResource;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HasEnabled;
import com.google.gwt.user.client.ui.HasHTML;
import com.google.gwt.user.client.ui.HasText;
import com.google.gwt.user.client.ui.IsWidget;
import com.google.gwt.user.client.ui.Widget;

public class IneButton extends Composite implements IsWidget, HasEnabled, HasText, HasHTML {

    public static enum IneButtonType {

        /**
         * to jump to the next or previous page <br>
         * <b>blue</b>
         */
        PAGING,

        /**
         * to abort a started action <br>
         * <b>dark gray</b>
         */
        CANCEL,

        /**
         * to modify the properties of action (what is useless without saving) <br>
         * <b>transparent</b>
         */
        CONTROL,

        /**
         * to commit an action that effects data changes or changes in the sate
         * of user or view <br>
         * <b>green</b>
         */
        ACTION,

        /**
         * other buttons <br>
         * <b>light gray</b>
         */
        DEFAULT;
    }

    private static IFButtonUiBinder uiBinder = GWT.create(IFButtonUiBinder.class);

    interface IFButtonUiBinder extends UiBinder<Widget, IneButton> {}

    interface ButtonStyles extends CssResource {
        String pagingColors();

        String cancelColors();

        String controlColors();

        String defaultColors();

        String actionColors();

        String disabled();

        String normalSize();

        String oneCharSize();
    }

    @UiField
    Button button;

    @UiField
    ButtonStyles style;

    public IneButton() {
        this(IneButtonType.DEFAULT);
    }

    public IneButton(String text) {
        this(IneButtonType.DEFAULT, text);
    }

    public IneButton(IneButtonType type, String text) {
        this(type);
        button.setText(text);
{'fraction_non_alphanumeric': 0.1069859402460457, 'fraction_numerical': 0.0, 'mean_word_length': 2.3601476014760148, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 35, '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': '419527', 'n_tokens_mistral': 1405, 'n_tokens_neox': 1369, 'n_words': 309}