<commit_before>package org.kumoricon.component;

import com.vaadin.server.FontAwesome;
import com.vaadin.spring.annotation.SpringComponent;
import com.vaadin.spring.annotation.UIScope;
import com.vaadin.ui.Accordion;
import com.vaadin.ui.Button;
import com.vaadin.ui.Layout;
import com.vaadin.ui.VerticalLayout;
import org.kumoricon.KumoRegUI;
import org.kumoricon.view.attendee.PreRegSearchView;
import org.kumoricon.view.attendee.SearchView;
import org.kumoricon.view.badge.BadgeView;
import org.kumoricon.view.report.AttendeeReportView;
import org.kumoricon.view.report.StaffReportView;
import org.kumoricon.view.role.RoleView;
import org.kumoricon.view.user.UserView;
import org.kumoricon.view.utility.LoadTestDataView;
import org.kumoricon.view.utility.TestBadgeView;

@SpringComponent
@UIScope
public class SiteMenu extends VerticalLayout {
    Accordion menu = new Accordion();

    public SiteMenu() {
        setSizeFull();
        setMargin(false);
        setSpacing(false);
        setSizeFull();

        addComponent(buttonFactory("Home", FontAwesome.HOME, ""));

        Layout reg = new VerticalLayout();
        reg.setCaption("Registration");
        reg.setIcon(FontAwesome.USERS);
        reg.addComponent(buttonFactory("At-Con Registration", FontAwesome.USER, "atcon"));
        reg.addComponent(buttonFactory("Pre-Reg Check In", FontAwesome.USER, PreRegSearchView.VIEW_NAME));
        reg.addComponent(buttonFactory("Attendee Search", FontAwesome.SEARCH, SearchView.VIEW_NAME));
        menu.addComponent(reg);

        Layout tab1 = new VerticalLayout();
        tab1.setIcon(FontAwesome.GEARS);
        tab1.setCaption("Administration");
        tab1.addComponent(buttonFactory("Users", FontAwesome.USER, UserView.VIEW_NAME));
        tab1.addComponent(buttonFactory("Roles", FontAwesome.GROUP, RoleView.VIEW_NAME));
        tab1.addComponent(buttonFactory("Badge Types", FontAwesome.BARCODE, BadgeView.VIEW_NAME));
        tab1.addComponent(buttonFactory("Computers", FontAwesome.DESKTOP, "computers"));
        tab1.addComponent(buttonFactory("Import Attendees", FontAwesome.UPLOAD, "importAttendees"));

        menu.addComponent(tab1);

        Layout tab2 = new VerticalLayout();
        tab2.setCaption("Reports");
        tab2.setIcon(FontAwesome.FILE_TEXT);
        tab2.addComponent(buttonFactory("Attendance", FontAwesome.FILE_TEXT_O, AttendeeReportView.VIEW_NAME));
        tab2.addComponent(buttonFactory("Staff", FontAwesome.USERS, StaffReportView.VIEW_NAME));
        menu.addComponent(tab2);

        Layout tab3 = new VerticalLayout();
        tab3.setCaption("Utilities");
        tab3.addComponent(buttonFactory("Print Test Badge", FontAwesome.PRINT, TestBadgeView.VIEW_NAME));
        tab3.addComponent(buttonFactory("Load Test Data", FontAwesome.DATABASE, LoadTestDataView.VIEW_NAME));

        menu.addComponent(tab3);

        addComponent(menu);
        setExpandRatio(menu, 1.0f);

    }

<commit_msg>Added order view, moved import attendees to Utilities<commit_after>package org.kumoricon.component;

import com.vaadin.server.FontAwesome;
import com.vaadin.spring.annotation.SpringComponent;
import com.vaadin.spring.annotation.UIScope;
import com.vaadin.ui.Accordion;
import com.vaadin.ui.Button;
import com.vaadin.ui.Layout;
import com.vaadin.ui.VerticalLayout;
import org.kumoricon.KumoRegUI;
import org.kumoricon.view.attendee.PreRegSearchView;
import org.kumoricon.view.attendee.SearchView;
import org.kumoricon.view.badge.BadgeView;
import org.kumoricon.view.importAttendee.ImportAttendeeView;
import org.kumoricon.view.order.OrderView;
import org.kumoricon.view.report.AttendeeReportView;
import org.kumoricon.view.report.StaffReportView;
import org.kumoricon.view.role.RoleView;
import org.kumoricon.view.user.UserView;
import org.kumoricon.view.utility.LoadTestDataView;
import org.kumoricon.view.utility.TestBadgeView;

@SpringComponent
@UIScope
public class SiteMenu extends VerticalLayout {
    Accordion menu = new Accordion();

    public SiteMenu() {
        setSizeFull();
        setMargin(false);
        setSpacing(false);
        setSizeFull();

        addComponent(buttonFactory("Home", FontAwesome.HOME, ""));

        Layout reg = new VerticalLayout();
        reg.setCaption("Registration");
        reg.setIcon(FontAwesome.USERS);
        reg.addComponent(buttonFactory("At-Con Registration", FontAwesome.USER, OrderView.VIEW_NAME));
        reg.addComponent(buttonFactory("Pre-Reg Check In", FontAwesome.USER, PreRegSearchView.VIEW_NAME));
        reg.addComponent(buttonFactory("Attendee Search", FontAwesome.SEARCH, SearchView.VIEW_NAME));
        menu.addComponent(reg);

        Layout tab1 = new VerticalLayout();
        tab1.setIcon(FontAwesome.GEARS);
        tab1.setCaption("Administration");
        tab1.addComponent(buttonFactory("Users", FontAwesome.USER, UserView.VIEW_NAME));
        tab1.addComponent(buttonFactory("Roles", FontAwesome.GROUP, RoleView.VIEW_NAME));
        tab1.addComponent(buttonFactory("Badge Types", FontAwesome.BARCODE, BadgeView.VIEW_NAME));
        tab1.addComponent(buttonFactory("Computers", FontAwesome.DESKTOP, "computers"));

        menu.addComponent(tab1);

        Layout tab2 = new VerticalLayout();
        tab2.setCaption("Reports");
        tab2.setIcon(FontAwesome.FILE_TEXT);
        tab2.addComponent(buttonFactory("Attendance", FontAwesome.FILE_TEXT_O, AttendeeReportView.VIEW_NAME));
        tab2.addComponent(buttonFactory("Staff", FontAwesome.USERS, StaffReportView.VIEW_NAME));
        menu.addComponent(tab2);

        Layout tab3 = new VerticalLayout();
        tab3.setCaption("Utilities");
        tab3.addComponent(buttonFactory("Print Test Badge", FontAwesome.PRINT, TestBadgeView.VIEW_NAME));
        tab3.addComponent(buttonFactory("Load Test Data", FontAwesome.DATABASE, LoadTestDataView.VIEW_NAME));
        tab1.addComponent(buttonFactory("Import Attendees", FontAwesome.UPLOAD, ImportAttendeeView.VIEW_NAME));

        menu.addComponent(tab3);

        addComponent(menu);
        setExpandRatio(menu, 1.0f);

    }


{'fraction_non_alphanumeric': 0.11591096455070074, 'fraction_numerical': 0.007254740313272877, 'mean_word_length': 4.396797153024911, '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': '2269483', 'n_tokens_mistral': 1969, 'n_tokens_neox': 1861, 'n_words': 273}