<commit_before><!-- Form to update the wiki space configuration
  -  Copyright (C) 2015, 2018 <NAME>
  -  Written by <NAME> (<EMAIL>)
  -
  -  Licensed under the Apache License, Version 2.0 (the "License");
  -  you may not use this file except in compliance with the License.
  -  You may obtain a copy of the License at
  -
  -      http://www.apache.org/licenses/LICENSE-2.0
  -
  -  Unless required by applicable law or agreed to in writing, software
  -  distributed under the License is distributed on an "AS IS" BASIS,
  -  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  -  See the License for the specific language governing permissions and
  -  limitations under the License.
  -->
<ui:composition xmlns:util="http://code.google.com/p/ada-asf/util"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:w="http://code.google.com/p/ada-asf/widget"
                xmlns:h="http://java.sun.com/jsf/html">

  <div class='ui-widget awa-form'>
    <h:form id='post'>
        <h:inputHidden id='wiki-space-id' value='#{adminWikiSpace.id}' required='false'/>
        <div class='grid_8'>
            <h:messages styleClass='awa-error'/>
            <w:inputText styleClass="awa-required"
                         id='title' size='50' required='true' value='#{adminWikiSpace.name}'
                         title='#{wikiMsg.wiki_admin_wiki_title_label}'/>
        <div class="grid_12">
            <div class="grid_6 alpha">
                <dl class="awa-required">
                    <dt><label for='page-is-public'>#{wikiMsg.wiki_admin_is_public_label}</label></dt>
                    <dd>
                        <h:selectOneRadio styleClass="awa-radio" id="page-is-public" value="#{adminWikiSpace.is_public}">
                            <f:selectItem id="page-public-yes" name="page-is-public" itemLabel="#{layoutMsg.layout_yes_label}" itemValue="TRUE" />
                            <f:selectItem id="page-public-no" name="page-is-public" itemLabel="#{layoutMsg.layout_no_label}" itemValue="FALSE" />
                        </h:selectOneRadio>
                    </dd>
                </dl>
            </div>
            <div class="grid_6 omega">
                <dl class="awa-required">
                    <dt>
                        <label for="wiki-format">#{wikiMsg.wiki_admin_format_label}</label>
                    </dt>
                    <dd>
                        <h:selectOneMenu id='wiki-format' size='10' value='#{adminWikiSpace.format}'
                                         styleClass="ui-state-default ui-corner-all">
                            <f:selectItems value="#{wikiFormatList}"/>
                        </h:selectOneMenu>
                    </dd>
                </dl>
            </div>
        </div>
        <div class="grid_12">
            <div class="grid_6 alpha">
                <dl class="awa-required#{util:hasMessage('left_side') ? ' awa-error' : ''}">
                    <dt>
                        <label for='text'>#{wikiMsg.wiki_page_left_side_label}</label>
                    </dt>
                    <dd>
                        <h:inputTextarea id='left_side' rows='20' required='false' value='#{adminWikiSpace.left_side}'/>
                    </dd>
                </dl>
            </div>
            <div class="grid_6 omega">
                <dl class="awa-required#{util:hasMessage('right_side') ? ' awa-error' : ''}">
                    <dt>
                        <label for='text'>#{wikiMsg.wiki_page_right_side_label}</label>
                    </dt>
                    <dd>
                         <h:inputTextarea id='right_side' rows='20' required='false' value='#{adminWikiSpace.right_side}'/>
                    </dd>
                </dl>
            </div>
        </div>
            <ul class='awa-buttons'>
                <li>
                    <h:commandButton id='save'
                                     value='#{empty adminWikiSpace.id ? wikiMsg.wiki_admin_create_button : wikiMsg.wiki_admin_update_button}'
                                     styleClass="ui-button ui-state-default ui-corner-all"
                                     action="#{adminWikiSpace.save}"/>
                </li>
            </ul>
        </div>
    </h:form>
      <util:script>
              // Create a MarkEdit editor on page load
              $(function(){
                 $('textarea').markedit({ 'preview': false,
                  'toolbar' : {
                    'backgroundMode': 'light',
                    'layout': 'bold italic underline strike | quote code | numberlist bulletlist heading line'
                  }
                 });
              });
      </util:script>
  </div>
</ui:composition>
<commit_msg>Better presentation of the wiki settings form<commit_after><!-- Form to update the wiki space configuration
  -  Copyright (C) 2015, 2018 <NAME>
  -  Written by <NAME> (<EMAIL>)
  -
  -  Licensed under the Apache License, Version 2.0 (the "License");
  -  you may not use this file except in compliance with the License.
  -  You may obtain a copy of the License at
  -
  -      http://www.apache.org/licenses/LICENSE-2.0
  -
  -  Unless required by applicable law or agreed to in writing, software
  -  distributed under the License is distributed on an "AS IS" BASIS,
  -  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  -  See the License for the specific language governing permissions and
  -  limitations under the License.
  -->
<ui:composition xmlns:util="http://code.google.com/p/ada-asf/util"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:w="http://code.google.com/p/ada-asf/widget"
                xmlns:h="http://java.sun.com/jsf/html">

  <div class='awa-post ui-widget ui-widget-content awa-form ui-corner-all'>
      <h2>#{wikiMsg.wiki_admin_settings_title}</h2>
      <h:form id='post'>
          <h:inputHidden id='wiki-space-id' value='#{adminWikiSpace.id}' required='false'/>
          <div class='grid_8'>
              <h:messages styleClass='awa-error'/>
              <w:inputText styleClass="awa-required ui-corner-all"
                           id='title' size='50' required='true' value='#{adminWikiSpace.name}'
                           title='#{wikiMsg.wiki_admin_wiki_title_label}'/>
              <div class="grid_12">
                  <div class="grid_6 alpha">
                      <dl class="awa-required">
                          <dt><label for='page-is-public'>#{wikiMsg.wiki_admin_is_public_label}</label></dt>
                          <dd>
                              <h:selectOneRadio styleClass="awa-radio" id="page-is-public"
                                                value="#{adminWikiSpace.is_public}">
                                  <f:selectItem id="page-public-yes" name="page-is-public"
                                                itemLabel="#{layoutMsg.layout_yes_label}" itemValue="TRUE"/>
                                  <f:selectItem id="page-public-no" name="page-is-public"
                                                itemLabel="#{layoutMsg.layout_no_label}" itemValue="FALSE"/>
                              </h:selectOneRadio>
                          </dd>
                      </dl>
                  </div>
                  <div class="grid_6 omega">
                      <dl class="awa-required">
                          <dt>
                              <label for="wiki-format">#{wikiMsg.wiki_admin_format_label}</label>
                          </dt>
                          <dd>
                              <h:selectOneMenu id='wiki-format' size='10' value='#{adminWikiSpace.format}'
                                               styleClass="ui-state-default ui-corner-all">
                                  <f:selectItems value="#{wikiFormatList}"/>
                              </h:selectOneMenu>
                          </dd>
                      </dl>
                  </div>
              </div>
              <div class="grid_12">
                  <div class="grid_6 alpha">
                      <dl class="awa-required#{util:hasMessage('left_side') ? ' awa-error' : ''}">
                          <dt>
                              <label for='text'>#{wikiMsg.wiki_page_left_side_label}</label>
                          </dt>
                          <dd>
                              <h:inputTextarea id='left_side' rows='20' required='false'
                                               value='#{adminWikiSpace.left_side}'/>
                          </dd>
                      </dl>
                  </div>
                  <div class="grid_6 omega">
                      <dl class="awa-required#{util:hasMessage('right_side') ? ' awa-error' : ''}">
                          <dt>
                              <label for='text'>#{wikiMsg.wiki_page_right_side_label}</label>
                          </dt>
                          <dd>
                              <h:inputTextarea id='right_side' rows='20' required='false'
                                               value='#{adminWikiSpace.right_side}'/>
                          </dd>
                      </dl>
                  </div>
              </div>
              <ul class='awa-buttons'>
                  <li>
                      <h:commandButton id='save'
                                       value='#{empty adminWikiSpace.id ? wikiMsg.wiki_admin_create_button : wikiMsg.wiki_admin_update_button}'
                                       styleClass="ui-button ui-state-default ui-corner-all"
                                       action="#{adminWikiSpace.save}"/>
                  </li>
              </ul>
          </div>
      </h:form>
      <util:script>
          // Create a MarkEdit editor on page load
          $(function(){
            $('textarea').markedit({ 'preview': false,
                'toolbar' : {
                    'backgroundMode': 'light',
                    'layout': 'bold italic underline strike | quote code | numberlist bulletlist heading line'
                }
            });
          });
      </util:script>
  </div>
</ui:composition>

{'fraction_non_alphanumeric': 0.129694154084398, 'fraction_numerical': 0.005807200929152149, 'mean_word_length': 1.3452110758057194, 'pattern_counts': {'":': 0, '<': 155, '<?xml version=': 0, '>': 155, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 10}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 23, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '933689', 'n_tokens_mistral': 2822, 'n_tokens_neox': 2707, 'n_words': 529}