<commit_before><?xml version="1.0" encoding="UTF-8"?>

<!--
 * See the NOTICE file distributed with this work for additional
 * information regarding copyright ownership.
 *
 * This is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation; either version 2.1 of
 * the License, or (at your option) any later version.
 *
 * This software is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this software; if not, write to the Free
 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-->

<xwikidoc version="1.2" reference="XWiki.TemplateProviderSheet" locale="">
  <web>XWiki</web>
  <name>TemplateProviderSheet</name>
  <language/>
  <defaultLanguage/>
  <translation>0</translation>
  <creator>xwiki:XWiki.Admin</creator>
  <creationDate>1377515110000</creationDate>
  <parent>XWiki.TemplateProviderClass</parent>
  <author>xwiki:XWiki.Admin</author>
  <contentAuthor>xwiki:XWiki.Admin</contentAuthor>
  <date>1378402239000</date>
  <contentUpdateDate>1378401463000</contentUpdateDate>
  <version>1.1</version>
  <title/>
  <comment/>
  <minorEdit>false</minorEdit>
  <syntaxId>xwiki/2.1</syntaxId>
  <hidden>true</hidden>
  <content>{{include reference="XWiki.TemplateProviderMacros" /}}

{{velocity output="false"}}
#macro (initializeTemplateProvider)
  #if ($doc.name.endsWith('Provider'))
    #set ($discard = $doc.set('template', $stringtool.removeEnd($doc.fullName, 'Provider').trim()))
    #set ($templateName = $stringtool.removeEnd($doc.name, 'Provider').trim())
    #set ($templateName = $stringtool.join($stringtool.splitByCharacterTypeCamelCase($templateName), ' '))
    #set ($discard = $doc.set('name', $templateName))
  #end
#end
{{/velocity}}

{{velocity}}
{{html clean="false"}}
#set ($discard = $xwiki.ssx.use('XWiki.TemplateProviderMacros'))
#set ($discard = $xwiki.jsx.use('XWiki.TemplateProviderMacros'))
#set ($discard = $doc.use('XWiki.TemplateProviderClass'))
#if ($doc.isNew())
  #initializeTemplateProvider
#end
&lt;div class="xform row templateProviderSheet"&gt;
  ##
  ## Left side
  ##
  &lt;div class="col-xs-12 col-md-6"&gt;
    &lt;dl&gt;
      ##
      ## Template Provider Title
      ##
      #if ($isEditing)
        &lt;dt&gt;
          &lt;label for="title"&gt;
            $escapetool.xml($services.localization.render('xe.templateprovider.name'))
          &lt;/label&gt;
        &lt;/dt&gt;
        &lt;dd&gt;
          &lt;input type="text" value="$!escapetool.xml($doc.title)" name="title" id="title" /&gt;
        &lt;/dd&gt;<commit_msg>[misc] Normalize the whitespace in the suggested template name (when creating a new template provider).<commit_after><?xml version="1.0" encoding="UTF-8"?>

<!--
 * See the NOTICE file distributed with this work for additional
 * information regarding copyright ownership.
 *
 * This is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation; either version 2.1 of
 * the License, or (at your option) any later version.
 *
 * This software is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this software; if not, write to the Free
 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-->

<xwikidoc version="1.2" reference="XWiki.TemplateProviderSheet" locale="">
  <web>XWiki</web>
  <name>TemplateProviderSheet</name>
  <language/>
  <defaultLanguage/>
  <translation>0</translation>
  <creator>xwiki:XWiki.Admin</creator>
  <creationDate>1377515110000</creationDate>
  <parent>XWiki.TemplateProviderClass</parent>
  <author>xwiki:XWiki.Admin</author>
  <contentAuthor>xwiki:XWiki.Admin</contentAuthor>
  <date>1378402239000</date>
  <contentUpdateDate>1378401463000</contentUpdateDate>
  <version>1.1</version>
  <title/>
  <comment/>
  <minorEdit>false</minorEdit>
  <syntaxId>xwiki/2.1</syntaxId>
  <hidden>true</hidden>
  <content>{{include reference="XWiki.TemplateProviderMacros" /}}

{{velocity output="false"}}
#macro (initializeTemplateProvider)
  #if ($doc.name.endsWith('Provider'))
    #set ($discard = $doc.set('template', $stringtool.removeEnd($doc.fullName, 'Provider').trim()))
    #set ($templateName = $stringtool.removeEnd($doc.name, 'Provider').trim())
    #set ($templateName = $stringtool.join($stringtool.splitByCharacterTypeCamelCase($templateName), ' '))
    #set ($templateName = $templateName.replaceAll('\s+', ' '))
    #set ($discard = $doc.set('name', $templateName))
  #end
#end
{{/velocity}}

{{velocity}}
{{html clean="false"}}
#set ($discard = $xwiki.ssx.use('XWiki.TemplateProviderMacros'))
#set ($discard = $xwiki.jsx.use('XWiki.TemplateProviderMacros'))
#set ($discard = $doc.use('XWiki.TemplateProviderClass'))
#if ($doc.isNew())
  #initializeTemplateProvider
#end
&lt;div class="xform row templateProviderSheet"&gt;
  ##
  ## Left side
  ##
  &lt;div class="col-xs-12 col-md-6"&gt;
    &lt;dl&gt;
      ##
      ## Template Provider Title
      ##
      #if ($isEditing)
        &lt;dt&gt;
          &lt;label for="title"&gt;
            $escapetool.xml($services.localization.render('xe.templateprovider.name'))
          &lt;/label&gt;
        &lt;/dt&gt;
        &lt;dd&gt;
          &lt;input type="text" value="$!escapetool.xml($doc.title)" name="title" id="title" /&gt;
        &lt;/dd&gt;
{'fraction_non_alphanumeric': 0.1509589947089947, 'fraction_numerical': 0.021494708994708994, 'mean_word_length': 4.4397482014388485, 'pattern_counts': {'":': 0, '<': 75, '<?xml version=': 2, '>': 75, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 6}, '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': '6547452', 'n_tokens_mistral': 2009, 'n_tokens_neox': 1908, 'n_words': 480}