<commit_before>package com.itmill.toolkit.demo.sampler.features.blueprints;

import com.itmill.toolkit.ui.Alignment;
import com.itmill.toolkit.ui.Button;
import com.itmill.toolkit.ui.OrderedLayout;
import com.itmill.toolkit.ui.Button.ClickEvent;

public class ProminentPrimaryActionExample extends OrderedLayout implements
        Button.ClickListener {

    public ProminentPrimaryActionExample() {
        setSpacing(true);

        { // Cancel / Save
            OrderedLayout horiz = new OrderedLayout(ORIENTATION_HORIZONTAL);
            horiz.setSpacing(true);
            horiz.setMargin(true);
            addComponent(horiz);
            Button secondary = new Button("Cancel", this);
            secondary.setStyleName(Button.STYLE_LINK);
            horiz.addComponent(secondary);
            Button primary = new Button("Save", this);
            horiz.addComponent(primary);
        }

        { // Sign up / Sign in
            OrderedLayout horiz = new OrderedLayout(ORIENTATION_HORIZONTAL);
            horiz.setSpacing(true);
            horiz.setMargin(true);
            addComponent(horiz);
            Button primary = new Button("Sign up", this);
            primary.addStyleName("primary");
            horiz.addComponent(primary);
            Button secondary = new Button("or Sign in", this);
            secondary.setStyleName(Button.STYLE_LINK);
            horiz.addComponent(secondary);
            horiz.setComponentAlignment(secondary, Alignment.MIDDLE_LEFT);
        }

        { // Login / Forgot password?
            OrderedLayout vert = new OrderedLayout();
            vert.setSizeUndefined();
            vert.setSpacing(true);
            vert.setMargin(true);<commit_msg>Changed orderedlayouts to vert/horiz, added captions<commit_after>package com.itmill.toolkit.demo.sampler.features.blueprints;

import com.itmill.toolkit.ui.Alignment;
import com.itmill.toolkit.ui.Button;
import com.itmill.toolkit.ui.HorizontalLayout;
import com.itmill.toolkit.ui.VerticalLayout;
import com.itmill.toolkit.ui.Button.ClickEvent;

public class ProminentPrimaryActionExample extends VerticalLayout implements
        Button.ClickListener {

    public ProminentPrimaryActionExample() {
        setSpacing(true);

        { // Cancel / Save
            HorizontalLayout horiz = new HorizontalLayout();
            horiz.setCaption("Save/cancel example:");
            horiz.setSpacing(true);
            horiz.setMargin(true);
            addComponent(horiz);
            Button secondary = new Button("Cancel", this);
            secondary.setStyleName(Button.STYLE_LINK);
            horiz.addComponent(secondary);
            Button primary = new Button("Save", this);
            horiz.addComponent(primary);
        }

        { // Sign up / Sign in
            HorizontalLayout horiz = new HorizontalLayout();
            horiz.setCaption("Sign up example:");
            horiz.setSpacing(true);
            horiz.setMargin(true);
            addComponent(horiz);
            Button primary = new Button("Sign up", this);
            primary.addStyleName("primary");
            horiz.addComponent(primary);
            Button secondary = new Button("or Sign in", this);
            secondary.setStyleName(Button.STYLE_LINK);
            horiz.addComponent(secondary);
            horiz.setComponentAlignment(secondary, Alignment.MIDDLE_LEFT);
        }

        { // Login / Forgot password?
            VerticalLayout vert = new VerticalLayout();
            vert.setCaption("Login example:");
            vert.setSizeUndefined();
            vert.setSpacing(true);
            vert.setMargin(true);
{'fraction_non_alphanumeric': 0.0994216469292206, 'fraction_numerical': 0.0, 'mean_word_length': 2.388059701492537, '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': '7594522', 'n_tokens_mistral': 972, 'n_tokens_neox': 954, 'n_words': 177}