<commit_before>package com.equalinformation.shipping.poc.pi.views;

import com.vaadin.annotations.Theme;
import com.vaadin.annotations.VaadinServletConfiguration;
import com.vaadin.annotations.Widgetset;
import com.vaadin.server.VaadinRequest;
import com.vaadin.server.VaadinServlet;
import com.vaadin.ui.Button;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI;
import com.vaadin.ui.VerticalLayout;

import javax.servlet.annotation.WebServlet;

/**
 * Created by bpupadhyaya on 12/23/15.
 */

@Theme("mytheme")
@Widgetset("com.equalinformation.shipping.poc.pi.MyAppWidgetset")
public class ShippingUIMain extends UI {

    @WebServlet(urlPatterns = "/*", name = "ShippingUIMainServlet", asyncSupported = true)
    @VaadinServletConfiguration(ui = ShippingUIMain.class, productionMode = false)
    public static class ShippingUIMainServlet extends VaadinServlet {
    }

    @Override
    protected void init(VaadinRequest vaadinRequest) {
        final VerticalLayout layout = new VerticalLayout();
        layout.setMargin(true);
        setContent(layout);

        Button button = new Button("Click Me");
        button.addClickListener(new Button.ClickListener() {
            @Override
            public void buttonClick(Button.ClickEvent event) {
                layout.addComponent(new Label("Thank you for clicking"));
            }
        });
        layout.addComponent(button);

    }

}<commit_msg>Title added.<commit_after>package com.equalinformation.shipping.poc.pi.views;

import com.vaadin.annotations.Theme;
import com.vaadin.annotations.Title;
import com.vaadin.annotations.VaadinServletConfiguration;
import com.vaadin.annotations.Widgetset;
import com.vaadin.server.VaadinRequest;
import com.vaadin.server.VaadinServlet;
import com.vaadin.ui.Button;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI;
import com.vaadin.ui.VerticalLayout;

import javax.servlet.annotation.WebServlet;

/**
 * Created by bpupadhyaya on 12/23/15.
 */

@Theme("mytheme")
@Widgetset("com.equalinformation.shipping.poc.pi.MyAppWidgetset")
@Title("Shipping App")
public class ShippingUIMain extends UI {

    @WebServlet(urlPatterns = "/*", name = "ShippingUIMainServlet", asyncSupported = true)
    @VaadinServletConfiguration(ui = ShippingUIMain.class, productionMode = false)
    public static class ShippingUIMainServlet extends VaadinServlet {
    }

    @Override
    protected void init(VaadinRequest vaadinRequest) {
        final VerticalLayout layout = new VerticalLayout();
        layout.setMargin(true);
        setContent(layout);

        Button button = new Button("Click Me");
        button.addClickListener(new Button.ClickListener() {
            @Override
            public void buttonClick(Button.ClickEvent event) {
                layout.addComponent(new Label("Thank you for clicking"));
            }
        });
        layout.addComponent(button);

    }

}
{'fraction_non_alphanumeric': 0.10515392597717053, 'fraction_numerical': 0.0041508128675198895, 'mean_word_length': 3.7565789473684212, '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': '7592489', 'n_tokens_mistral': 890, 'n_tokens_neox': 817, 'n_words': 163}