<commit_before>package org.safehaus.kiskis.mgmt.server.ui.modules.wizzard;


import com.vaadin.terminal.Sizeable;
import com.vaadin.ui.VerticalLayout;
import com.vaadin.ui.Window;


public class CassandraWizard extends Window {

    VerticalLayout verticalLayout;
    int step = 1;

    public CassandraWizard() {
        setModal(true);
        setCaption("Cassandra Wizard");

        verticalLayout = new VerticalLayout();
        verticalLayout.setSpacing(true);
        verticalLayout.setHeight(650, Sizeable.UNITS_PIXELS);
        verticalLayout.setWidth(900, Sizeable.UNITS_PIXELS);

        putForm();

        setContent(verticalLayout);
    }

    public void showNext() {
        step++;
        putForm();
    }

    public void showBack() {
        step--;
        putForm();
    }

    private void putForm() {
        verticalLayout.removeAllComponents();
        System.out.println(step);
        switch (step) {
            case 1: {
                Step1 step1 = new Step1(this);
                verticalLayout.addComponent(step1);
                break;
            }
            case 2: {
                Step2 step2 = new Step2(this);
                verticalLayout.addComponent(step2);
                break;
            }
            case 3: {
                Step3 step3 = new Step3(this);
                verticalLayout.addComponent(step3);
                break;
            }
            case 4: {<commit_msg>code refactoring<commit_after>package org.safehaus.kiskis.mgmt.server.ui.modules.wizzard;


import com.vaadin.terminal.Sizeable;
import com.vaadin.ui.VerticalLayout;
import com.vaadin.ui.Window;


public class CassandraWizard extends Window {

    VerticalLayout verticalLayout;
    int step = 1;

    public CassandraWizard() {
        setModal(true);
        setCaption("Cassandra Wizard");

        verticalLayout = new VerticalLayout();
        verticalLayout.setSpacing(true);
        verticalLayout.setHeight(650, Sizeable.UNITS_PIXELS);
        verticalLayout.setWidth(900, Sizeable.UNITS_PIXELS);

        putForm();

        setContent(verticalLayout);
    }

    public void showNext() {
        step++;
        putForm();
    }

    public void showBack() {
        step--;
        putForm();
    }

    private void putForm() {
        verticalLayout.removeAllComponents();
        switch (step) {
            case 1: {
                Step1 step1 = new Step1(this);
                verticalLayout.addComponent(step1);
                break;
            }
            case 2: {
                Step2 step2 = new Step2(this);
                verticalLayout.addComponent(step2);
                break;
            }
            case 3: {
                Step3 step3 = new Step3(this);
                verticalLayout.addComponent(step3);
                break;
            }
            case 4: {
{'fraction_non_alphanumeric': 0.09538894755367829, 'fraction_numerical': 0.016191481872580078, 'mean_word_length': 1.7512100677637947, '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': '4116191', 'n_tokens_mistral': 840, 'n_tokens_neox': 765, 'n_words': 152}