<commit_before><%@ page import="java.util.List,
                 org.gridlab.gridsphere.layout.PortletTab"%>
<%@ taglib uri="/portletUI" prefix="ui" %>
<%@ taglib uri="/portletAPI" prefix="portletAPI" %>

<portletAPI:init/>

<% String lang = (String)request.getAttribute("lang"); %>
<% List tabs = (List)request.getAttribute("tabs"); %>

<ui:messagebox beanId="msg"/>

<ui:form>

<h3><ui:text key="LAYOUT_THEME" style="nostyle"/></h3>
<ui:group>
<ui:text key="LAYOUT_SELECT_THEME"/>&nbsp;<ui:listbox beanId="themeLB"/> <ui:actionsubmit action="saveTheme" key="SAVE"/>
</ui:group>

<h3>Create new tab</h3>
<ui:group>
<ui:text key="LAYOUT_TAB_NAME"/>&nbsp;&nbsp;<ui:textfield beanId="userTabTF"/>
<p>

<ui:radiobutton beanId="colsRB" selected="true" value="1"/><ui:text key="LAYOUT_ONE_COL"/>
<ui:radiobutton beanId="colsRB" value="2"/><ui:text key="LAYOUT_TWO_COL"/>
<ui:radiobutton beanId="colsRB" value="3"/><ui:text key="LAYOUT_THREE_COL"/>

<p>
<ui:actionsubmit action="createNewTab" key="CREATE"/>
</ui:group>

<% if (tabs.size() > 0) { %>
<h3><ui:text key="LAYOUT_DISP_TABS" style="nostyle"/></h3>

<ui:table zebra="true">
    <ui:tablerow header="true">
    <ui:tablecell>
        <ui:text key="LAYOUT_SHOW_TAB"/>
    </ui:tablecell>
    <ui:tablecell><commit_msg>GPF-27 some bad radiobutton request handling needed fixing<commit_after><%@ page import="java.util.List,
                 org.gridlab.gridsphere.layout.PortletTab"%>
<%@ taglib uri="/portletUI" prefix="ui" %>
<%@ taglib uri="/portletAPI" prefix="portletAPI" %>

<portletAPI:init/>

<% String lang = (String)request.getAttribute("lang"); %>
<% List tabs = (List)request.getAttribute("tabs"); %>

<ui:messagebox beanId="msg"/>

<ui:form>

<h3><ui:text key="LAYOUT_THEME" style="nostyle"/></h3>
<ui:group>
<ui:text key="LAYOUT_SELECT_THEME"/>&nbsp;<ui:listbox beanId="themeLB"/> <ui:actionsubmit action="saveTheme" key="SAVE"/>
</ui:group>

<h3>Create new tab</h3>
<ui:group>
<ui:text key="LAYOUT_TAB_NAME"/>&nbsp;&nbsp;<ui:textfield beanId="userTabTF"/>
<p>

<ui:radiobutton name="colsRB" value="1"/><ui:text key="LAYOUT_ONE_COL"/>
<ui:radiobutton name="colsRB" value="2" selected="true"/><ui:text key="LAYOUT_TWO_COL"/>
<ui:radiobutton name="colsRB" value="3"/><ui:text key="LAYOUT_THREE_COL"/>

<p>
<ui:actionsubmit action="createNewTab" key="CREATE"/>
</ui:group>

<% if (tabs.size() > 0) { %>
<h3><ui:text key="LAYOUT_DISP_TABS" style="nostyle"/></h3>

<ui:table zebra="true">
    <ui:tablerow header="true">
    <ui:tablecell>
        <ui:text key="LAYOUT_SHOW_TAB"/>
    </ui:tablecell>
    <ui:tablecell>
{'fraction_non_alphanumeric': 0.2198526560682435, 'fraction_numerical': 0.008530438154323382, 'mean_word_length': 6.392550143266476, 'pattern_counts': {'":': 0, '<': 85, '<?xml version=': 0, '>': 87, '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': '1353076', 'n_tokens_mistral': 1044, 'n_tokens_neox': 1008, 'n_words': 150}