<commit_before><div 
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:c="http://java.sun.com/jsp/jstl/core"
    xmlns:jsf="http://xmlns.jcp.org/jsf"
    xmlns:p="http://primefaces.org/ui">
    <!-- Theme and Widgets Popup -->
    <p:dialog id="themeAndWidgetsDlg" header="Theme + Widgets" widgetVar="themeAndWidgetsForm" modal="true" styleClass="largePopUp">
        <p:tabView binding="#{themeWidgetFragment.tabView}"  rendered="#{themeWidgetFragment.editDv!=null}" id="themeWidgetsTabView" widgetVar="content">
            <p:tab  id="themeTab" title="Theme">
                <!-- Dataverse Theme Panel -->
                <div class="row form-horizontal">
                    <div class="form-group">
                        <label class="col-sm-3 control-label" for="logoFormat" style="white-space:nowrap;">
                            <a href="#" data-toggle="tooltip" data-placement="auto right" class="tooltiplabel right" data-original-title="Tooltip description.">
                                Logo Image
                            </a>
                        </label>
                        <div class="col-sm-8">
                            <p:panelGrid rendered="#{not empty themeWidgetFragment.editDv.logo}" columns="3" styleClass="noBorders" columnClasses="text-center,uploadNewLogo,messageCell">
                                <p:column>
                                    <p>
                                        <img jsf:rendered="#{themeWidgetFragment.uploadExists()}" class="logoPreview" src="/logos/temp/#{themeWidgetFragment.tempDirName}/#{themeWidgetFragment.editDv.logo}" alt="#{dv.name} Dataverse"/>
                                        <img jsf:rendered="#{not themeWidgetFragment.uploadExists()}" class="logoPreview" src="/logos/#{themeWidgetFragment.editDv.id}/#{themeWidgetFragment.editDv.logo}" alt="#{dv.name} Dataverse"/>
                                    </p>
                                    <p:commandButton update=":dataverseForm:themeWidgetsTabView" value="Remove" action="#{themeWidgetFragment.removeLogo()}"/>
                                </p:column>
                                <p:fileUpload id="changelogo" allowTypes="/(\.|\/)(jpg|jpeg|tff|png|gif)$/" update=":dataverseForm:themeWidgetsTabView" dragDropSupport="true" auto="true" multiple="false"
                                              fileUploadListener="#{themeWidgetFragment.handleImageFileUpload}" label="Upload New File"/>
                                <p:message for="changelogo"/>
                            </p:panelGrid>

                            <p:panelGrid rendered="#{ empty themeWidgetFragment.editDv.logo}" columns="2" styleClass="noBorders">
                                <p:fileUpload id="uploadlogo" update=":dataverseForm:themeWidgetsTabView" dragDropSupport="true" auto="true" multiple="false"
                                              fileUploadListener="#{themeWidgetFragment.handleImageFileUpload}" label="Upload Image File"/>
                                <p:message for="uploadlogo"/>
                            </p:panelGrid>
                        </div>
                    </div>
                </div>
                
                <ui:fragment rendered="#{not empty themeWidgetFragment.editDv.logo}">
                    <div class="row form-horizontal">
                        <div class="form-group">
                            <label class="col-sm-3 control-label" for="logoFormat" style="white-space:nowrap;">
                                <a href="#" data-toggle="tooltip" data-placement="auto right" class="tooltiplabel right" data-original-title="Tooltip description.">
                                    Logo Format
                                </a>
                            </label>
                            <div class="col-sm-8">
                                <p:panelGrid columns="2" styleClass="noBorders">
                                    <p:selectOneRadio id="logoFormat" value="#{themeWidgetFragment.editDv.logoFormat}">
                                        <f:selectItem itemLabel="Square" itemValue="SQUARE"/>
                                        <f:selectItem itemLabel="Rectangle" itemValue="RECTANGLE"/>
                                    </p:selectOneRadio>
                                    <p:message for="logoFormat"/>
                                </p:panelGrid>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label" for="logoAlignment" style="white-space:nowrap;">
                                <a href="#" data-toggle="tooltip" data-placement="auto right" class="tooltiplabel right" data-original-title="Tooltip description.">
                                    Logo Alignment
                                </a>
                            </label>
                            <div class="col-sm-8">
                                <p:panelGrid columns="2" styleClass="noBorders">
                                    <p:selectOneMenu id="logoAlignment" styleClass="form-control" value="#{themeWidgetFragment.editDv.logoAlignment}">
                                        <f:selectItem id="left" itemLabel="Left" itemValue="LEFT" />
                                        <f:selectItem id="center" itemLabel="Center" itemValue="CENTER" />
                                        <f:selectItem id="right" itemLabel="Right" itemValue="RIGHT" />
                                    </p:selectOneMenu>
                                    <p:message for="logoAlignment"/>
                                </p:panelGrid>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label" for="logoBackgroundColor" style="white-space:nowrap;">
                                <a href="#" data-toggle="tooltip" data-placement="auto right" class="tooltiplabel right" data-original-title="Tooltip description.">
                                    Logo Background Color
                                </a>
                            </label>
                            <div class="col-sm-8">
                                <p:panelGrid columns="2" styleClass="noBorders">
                                    <p:colorPicker id="logoBackgroundColor" value="#{themeWidgetFragment.editDv.logoBackgroundColor}"/>
                                    <p:message for="logoBackgroundColor"/>
                                </p:panelGrid>
                            </div>
                        </div>
                    </div>
                </ui:fragment>
                
                <div class="row form-horizontal">
                    <div class="form-group">
                        <label class="col-sm-3 control-label" for="backgroundColor" style="white-space:nowrap;">
                            <a href="#" data-toggle="tooltip" data-placement="auto right" class="tooltiplabel right" data-original-title="Tooltip description.">
                                Background Color
                            </a>
                        </label>
                        <div class="col-sm-8">
                            <p:panelGrid columns="2" styleClass="noBorders">
                                <p:colorPicker id="backgroundColor" value="#{themeWidgetFragment.editDv.backgroundColor}"/>
                                <p:message for="backgroundColor"/>
                            </p:panelGrid>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label" for="linkColor" style="white-space:nowrap;">
                            <a href="#" data-toggle="tooltip" data-placement="auto right" class="tooltiplabel right" data-original-title="Tooltip description.">
                                Link Color
                            </a>
                        </label>
                        <div class="col-sm-8">
                            <p:panelGrid columns="2" styleClass="noBorders">
                                <p:colorPicker id="linkColor" value="#{themeWidgetFragment.editDv.linkColor}"/>
                                <p:message for="linkColor"/>
                            </p:panelGrid>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label" for="textColor" style="white-space:nowrap;">
                            <a href="#" data-toggle="tooltip" data-placement="auto right" class="tooltiplabel right" data-original-title="Tooltip description.">
                                Text Color
                            </a>
                        </label>
                        <div class="col-sm-8">
                            <p:panelGrid columns="2" styleClass="noBorders">
                                <p:colorPicker id="textColor" value="#{themeWidgetFragment.editDv.textColor}"/>
                                <p:message for="textColor"/>
                            </p:panelGrid>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label" for="tagline" style="white-space:nowrap;">
                            <a href="#" data-toggle="tooltip" data-placement="auto right" class="tooltiplabel right" data-original-title="Tooltip description.">
                                Tagline
                            </a>
                        </label>
                        <div class="col-sm-8">
                            <p:panelGrid columns="2" styleClass="noBorders">
                                <p:inputText styleClass="form-control" id="tagline" value="#{themeWidgetFragment.editDv.tagline}"/>
                                <p:message for="tagline"/>
                            </p:panelGrid>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label" for="linkUrl" style="white-space:nowrap;">
                            <a href="#" data-toggle="tooltip" data-placement="auto right" class="tooltiplabel right" data-original-title="Tooltip description.">
                                Link URL
                            </a>
                        </label>
                        <div class="col-sm-8">
                            <p:panelGrid columns="2" styleClass="noBorders">
                                <p:inputText validatorMessage="Invalid URL." validator="#{themeWidgetFragment.validateUrl}" styleClass="form-control" id="linkUrl" value="#{themeWidgetFragment.editDv.linkUrl}"/>
                                <p:message for="linkUrl"/>
                            </p:panelGrid>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label" for="linkText" style="white-space:nowrap;">
                            <a href="#" data-toggle="tooltip" data-placement="auto right" class="tooltiplabel right" data-original-title="Tooltip description.">
                                Link Text
                            </a>
                        </label>
                        <div class="col-sm-8">
                            <p:panelGrid columns="2" styleClass="noBorders">
                                <p:inputText styleClass="form-control" id="linkText" value="#{themeWidgetFragment.editDv.linkText}"/>
                                <p:message for="linkText"/>
                            </p:panelGrid>
                        </div>
                    </div>
                </div>
                <p:commandButton update=":dataverseForm:themeWidgetsTabView" oncomplete="saveThemeHandleComplete(xhr, status, args);" class="btn btn-success" value="Save Changes" action="#{themeWidgetFragment.save()}"/>
                <button id="widgetsDone" type="button" class="btn btn-default" onclick="themeAndWidgetsForm.hide()" value="Cancel">Cancel</button>
            </p:tab>
            <p:tab id="widgetsTab" title="Widgets"><commit_msg>change class to styleClass<commit_after><div 
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:c="http://java.sun.com/jsp/jstl/core"
    xmlns:jsf="http://xmlns.jcp.org/jsf"
    xmlns:p="http://primefaces.org/ui">
    <!-- Theme and Widgets Popup -->
    <p:dialog id="themeAndWidgetsDlg" header="Theme + Widgets" widgetVar="themeAndWidgetsForm" modal="true" styleClass="largePopUp">
        <p:tabView binding="#{themeWidgetFragment.tabView}"  rendered="#{themeWidgetFragment.editDv!=null}" id="themeWidgetsTabView" widgetVar="content">
            <p:tab  id="themeTab" title="Theme">
                <!-- Dataverse Theme Panel -->
                <div class="row form-horizontal">
                    <div class="form-group">
                        <label class="col-sm-3 control-label" for="logoFormat" style="white-space:nowrap;">
                            <a href="#" data-toggle="tooltip" data-placement="auto right" class="tooltiplabel right" data-original-title="Tooltip description.">
                                Logo Image
                            </a>
                        </label>
                        <div class="col-sm-8">
                            <p:panelGrid rendered="#{not empty themeWidgetFragment.editDv.logo}" columns="3" styleClass="noBorders" columnClasses="text-center,uploadNewLogo,messageCell">
                                <p:column>
                                    <p>
                                        <img jsf:rendered="#{themeWidgetFragment.uploadExists()}" class="logoPreview" src="/logos/temp/#{themeWidgetFragment.tempDirName}/#{themeWidgetFragment.editDv.logo}" alt="#{dv.name} Dataverse"/>
                                        <img jsf:rendered="#{not themeWidgetFragment.uploadExists()}" class="logoPreview" src="/logos/#{themeWidgetFragment.editDv.id}/#{themeWidgetFragment.editDv.logo}" alt="#{dv.name} Dataverse"/>
                                    </p>
                                    <p:commandButton update=":dataverseForm:themeWidgetsTabView" value="Remove" action="#{themeWidgetFragment.removeLogo()}"/>
                                </p:column>
                                <p:fileUpload id="changelogo" allowTypes="/(\.|\/)(jpg|jpeg|tff|png|gif)$/" update=":dataverseForm:themeWidgetsTabView" dragDropSupport="true" auto="true" multiple="false"
                                              fileUploadListener="#{themeWidgetFragment.handleImageFileUpload}" label="Upload New File"/>
                                <p:message for="changelogo"/>
                            </p:panelGrid>

                            <p:panelGrid rendered="#{ empty themeWidgetFragment.editDv.logo}" columns="2" styleClass="noBorders">
                                <p:fileUpload id="uploadlogo" update=":dataverseForm:themeWidgetsTabView" dragDropSupport="true" auto="true" multiple="false"
                                              fileUploadListener="#{themeWidgetFragment.handleImageFileUpload}" label="Upload Image File"/>
                                <p:message for="uploadlogo"/>
                            </p:panelGrid>
                        </div>
                    </div>
                </div>
                
                <ui:fragment rendered="#{not empty themeWidgetFragment.editDv.logo}">
                    <div class="row form-horizontal">
                        <div class="form-group">
                            <label class="col-sm-3 control-label" for="logoFormat" style="white-space:nowrap;">
                                <a href="#" data-toggle="tooltip" data-placement="auto right" class="tooltiplabel right" data-original-title="Tooltip description.">
                                    Logo Format
                                </a>
                            </label>
                            <div class="col-sm-8">
                                <p:panelGrid columns="2" styleClass="noBorders">
                                    <p:selectOneRadio id="logoFormat" value="#{themeWidgetFragment.editDv.logoFormat}">
                                        <f:selectItem itemLabel="Square" itemValue="SQUARE"/>
                                        <f:selectItem itemLabel="Rectangle" itemValue="RECTANGLE"/>
                                    </p:selectOneRadio>
                                    <p:message for="logoFormat"/>
                                </p:panelGrid>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label" for="logoAlignment" style="white-space:nowrap;">
                                <a href="#" data-toggle="tooltip" data-placement="auto right" class="tooltiplabel right" data-original-title="Tooltip description.">
                                    Logo Alignment
                                </a>
                            </label>
                            <div class="col-sm-8">
                                <p:panelGrid columns="2" styleClass="noBorders">
                                    <p:selectOneMenu id="logoAlignment" styleClass="form-control" value="#{themeWidgetFragment.editDv.logoAlignment}">
                                        <f:selectItem id="left" itemLabel="Left" itemValue="LEFT" />
                                        <f:selectItem id="center" itemLabel="Center" itemValue="CENTER" />
                                        <f:selectItem id="right" itemLabel="Right" itemValue="RIGHT" />
                                    </p:selectOneMenu>
                                    <p:message for="logoAlignment"/>
                                </p:panelGrid>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label" for="logoBackgroundColor" style="white-space:nowrap;">
                                <a href="#" data-toggle="tooltip" data-placement="auto right" class="tooltiplabel right" data-original-title="Tooltip description.">
                                    Logo Background Color
                                </a>
                            </label>
                            <div class="col-sm-8">
                                <p:panelGrid columns="2" styleClass="noBorders">
                                    <p:colorPicker id="logoBackgroundColor" value="#{themeWidgetFragment.editDv.logoBackgroundColor}"/>
                                    <p:message for="logoBackgroundColor"/>
                                </p:panelGrid>
                            </div>
                        </div>
                    </div>
                </ui:fragment>
                
                <div class="row form-horizontal">
                    <div class="form-group">
                        <label class="col-sm-3 control-label" for="backgroundColor" style="white-space:nowrap;">
                            <a href="#" data-toggle="tooltip" data-placement="auto right" class="tooltiplabel right" data-original-title="Tooltip description.">
                                Background Color
                            </a>
                        </label>
                        <div class="col-sm-8">
                            <p:panelGrid columns="2" styleClass="noBorders">
                                <p:colorPicker id="backgroundColor" value="#{themeWidgetFragment.editDv.backgroundColor}"/>
                                <p:message for="backgroundColor"/>
                            </p:panelGrid>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label" for="linkColor" style="white-space:nowrap;">
                            <a href="#" data-toggle="tooltip" data-placement="auto right" class="tooltiplabel right" data-original-title="Tooltip description.">
                                Link Color
                            </a>
                        </label>
                        <div class="col-sm-8">
                            <p:panelGrid columns="2" styleClass="noBorders">
                                <p:colorPicker id="linkColor" value="#{themeWidgetFragment.editDv.linkColor}"/>
                                <p:message for="linkColor"/>
                            </p:panelGrid>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label" for="textColor" style="white-space:nowrap;">
                            <a href="#" data-toggle="tooltip" data-placement="auto right" class="tooltiplabel right" data-original-title="Tooltip description.">
                                Text Color
                            </a>
                        </label>
                        <div class="col-sm-8">
                            <p:panelGrid columns="2" styleClass="noBorders">
                                <p:colorPicker id="textColor" value="#{themeWidgetFragment.editDv.textColor}"/>
                                <p:message for="textColor"/>
                            </p:panelGrid>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label" for="tagline" style="white-space:nowrap;">
                            <a href="#" data-toggle="tooltip" data-placement="auto right" class="tooltiplabel right" data-original-title="Tooltip description.">
                                Tagline
                            </a>
                        </label>
                        <div class="col-sm-8">
                            <p:panelGrid columns="2" styleClass="noBorders">
                                <p:inputText styleClass="form-control" id="tagline" value="#{themeWidgetFragment.editDv.tagline}"/>
                                <p:message for="tagline"/>
                            </p:panelGrid>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label" for="linkUrl" style="white-space:nowrap;">
                            <a href="#" data-toggle="tooltip" data-placement="auto right" class="tooltiplabel right" data-original-title="Tooltip description.">
                                Link URL
                            </a>
                        </label>
                        <div class="col-sm-8">
                            <p:panelGrid columns="2" styleClass="noBorders">
                                <p:inputText validatorMessage="Invalid URL." validator="#{themeWidgetFragment.validateUrl}" styleClass="form-control" id="linkUrl" value="#{themeWidgetFragment.editDv.linkUrl}"/>
                                <p:message for="linkUrl"/>
                            </p:panelGrid>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label" for="linkText" style="white-space:nowrap;">
                            <a href="#" data-toggle="tooltip" data-placement="auto right" class="tooltiplabel right" data-original-title="Tooltip description.">
                                Link Text
                            </a>
                        </label>
                        <div class="col-sm-8">
                            <p:panelGrid columns="2" styleClass="noBorders">
                                <p:inputText styleClass="form-control" id="linkText" value="#{themeWidgetFragment.editDv.linkText}"/>
                                <p:message for="linkText"/>
                            </p:panelGrid>
                        </div>
                    </div>
                </div>
                <p:commandButton update=":dataverseForm:themeWidgetsTabView" oncomplete="saveThemeHandleComplete(xhr, status, args);" styleClass="btn btn-success" value="Save Changes" action="#{themeWidgetFragment.save()}"/>
                <button id="widgetsDone" type="button" class="btn btn-default" onclick="themeAndWidgetsForm.hide()" value="Cancel">Cancel</button>
            </p:tab>
            <p:tab id="widgetsTab" title="Widgets">
{'fraction_non_alphanumeric': 0.12527119325030134, 'fraction_numerical': 0.002490960224989956, 'mean_word_length': 1.2903018034596982, 'pattern_counts': {'":': 8, '<': 317, '<?xml version=': 0, '>': 317, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 14}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 66, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '925284', 'n_tokens_mistral': 5991, 'n_tokens_neox': 5768, 'n_words': 954}