<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>
  <web>data</web>
  <name>WebHome</name>
  <language/>
  <defaultLanguage/>
  <translation>0</translation>
  <parent>Main.WebHome</parent>
  <creator>xwiki:XWiki.Admin</creator>
  <author>xwiki:XWiki.Admin</author>
  <customClass/>
  <contentAuthor>xwiki:XWiki.Admin</contentAuthor>
  <creationDate>1331574445000</creationDate>
  <date>1331942300000</date>
  <contentUpdateDate>1331942300000</contentUpdateDate>
  <version>1.1</version>
  <title>Phenotype database</title>
  <template/>
  <defaultTemplate/>
  <validationScript/>
  <comment/>
  <minorEdit>false</minorEdit>
  <syntaxId>xwiki/2.1</syntaxId>
  <hidden>false</hidden>
  <object>
    <class>
      <name>PhenoTips.DBConfigurationClass</name>
      <customClass/>
      <customMapping/>
      <defaultViewSheet/>
      <defaultEditSheet/>
      <defaultWeb/>
      <nameField/>
      <validationScript/>
      <activeFields>
        <cache>0</cache>
        <customDisplay>{{include document="PhenoTips.DBConfigurationClassDisplayer" /}}</customDisplay>
        <disabled>0</disabled>
        <displayType>input</displayType>
        <multiSelect>1</multiSelect>
        <name>activeFields</name>
        <number>8</number>
        <picker>0</picker>
        <prettyName>Active fields (displayed to report editors and viewers)</prettyName>
        <relationalStorage>1</relationalStorage>
        <separator> </separator>
        <separators> ,|</separators>
        <size>1</size>
        <sort>none</sort>
        <unmodifiable>0</unmodifiable>
        <validationMessage/>
        <validationRegExp/>
        <values/>
        <classType>com.xpn.xwiki.objects.classes.StaticListClass</classType>
      </activeFields>
      <activeSections>
        <cache>0</cache>
        <customDisplay>{{velocity output=false}}
#set ($orderedSectionIds = [])
#set ($sections = {})
#foreach ($property in $object.xWikiClass.properties)
  #if ($property.name.indexOf('section__') == 0)
    #set ($sectionId = $property.name.substring(9))
    #set ($discard = $orderedSectionIds.add($sectionId))
    #set ($discard = $sections.put($sectionId, $property.prettyName))
  #end
#end
#macro(__sections__displayItem $sectionId $checked)
&lt;li&gt;
    &lt;label for="${prefix}${name}_${sectionId}"&gt;
    &lt;input type="checkbox" name="${prefix}${name}" id="${prefix}${name}_${sectionId}" value="$sectionId"#if ($checked) checked="checked"#end/&gt;
    $sections.get($sectionId)
    &lt;/label&gt;
    &lt;span class="tool move" title="Drag and drop to change the order"&gt;move&lt;/span&gt;
  &lt;/li&gt;
#end
{{/velocity}}

{{velocity}}{{html wiki=false clean=false}}
$value
&lt;div class="$name"&gt;
&lt;ul class="custom-display-list" id="$prefix$name"&gt;
#foreach ($sectionId in $value)
  #if ($orderedSectionIds.contains($sectionId))
    #__sections__displayItem($sectionId true)
    #set($discard = $orderedSectionIds.remove($sectionId))
  #end
#end
#foreach ($sectionId in $orderedSectionIds)
  #__sections__displayItem($sectionId false)
#end
&lt;/ul&gt;
&lt;input type="hidden" name="$prefix$name" value=""/&gt;
&lt;/div&gt;
$xwiki.jsfx.use('js/scriptaculous/scriptaculous.js')##
$xwiki.ssx.use('PhenoTips.DBConfigurationClass')##
&lt;script type="text/javascript" defer="defer"&gt;
document.observe("xwiki:dom:loaded", function() {
  Sortable.create("$prefix$name", {tag : 'li', handle : 'move'});
});
&lt;/script&gt;
{{/html}}{{/velocity}}</customDisplay>
        <disabled>0</disabled>
        <displayType>input</displayType>
        <multiSelect>1</multiSelect>
        <name>activeSections</name>
        <number>7</number>
        <picker>0</picker>
        <prettyName>Active sections and their order of appearence</prettyName>
        <relationalStorage>0</relationalStorage>
        <separator> </separator>
        <separators> ,|</separators>
        <size>1</size>
        <sort>none</sort>
        <unmodifiable>0</unmodifiable>
        <validationMessage/>
        <validationRegExp/>
        <values/>
        <classType>com.xpn.xwiki.objects.classes.StaticListClass</classType>
      </activeSections>
      <dateOfBirthFormat>
        <customDisplay>{{velocity}}
#if ($xcontext.action == 'edit' || $xcontext.action == 'admin')
{{html wiki=false clean=false}}
&lt;select name="$prefix$name" id="$prefix$iname"&gt;
#foreach ($val in ['MM/dd/yyyy', 'MM/yyyy', 'MMMM yyyy'])
  &lt;option #if ($val == $value) selected="selected"#end value="$val"&gt;$val (e.g. $xwiki.formatDate($util.date, $val))&lt;/option&gt;
#end
&lt;/select&gt;
{{/html}}
#else
$!value
#end
{{/velocity}}</customDisplay>
        <disabled>0</disabled>
        <name>dateOfBirthFormat</name><commit_msg>[misc] Synchronize default homepage to match the current configuration class<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>
  <web>data</web>
  <name>WebHome</name>
  <language/>
  <defaultLanguage/>
  <translation>0</translation>
  <parent>Main.WebHome</parent>
  <creator>xwiki:XWiki.Admin</creator>
  <author>xwiki:XWiki.Admin</author>
  <customClass/>
  <contentAuthor>xwiki:XWiki.Admin</contentAuthor>
  <creationDate>1331574445000</creationDate>
  <date>1331942300000</date>
  <contentUpdateDate>1331942300000</contentUpdateDate>
  <version>1.1</version>
  <title>Phenotype database</title>
  <template/>
  <defaultTemplate/>
  <validationScript/>
  <comment/>
  <minorEdit>false</minorEdit>
  <syntaxId>xwiki/2.1</syntaxId>
  <hidden>false</hidden>
  <object>
    <class>
      <name>PhenoTips.DBConfigurationClass</name>
      <customClass/>
      <customMapping/>
      <defaultViewSheet/>
      <defaultEditSheet/>
      <defaultWeb/>
      <nameField/>
      <validationScript/>
      <activeFields>
        <cache>0</cache>
        <customDisplay>{{include document="PhenoTips.DBConfigurationClassDisplayer" /}}</customDisplay>
        <disabled>0</disabled>
        <displayType>input</displayType>
        <multiSelect>1</multiSelect>
        <name>activeFields</name>
        <number>8</number>
        <picker>0</picker>
        <prettyName>Active fields (displayed to report editors and viewers)</prettyName>
        <relationalStorage>1</relationalStorage>
        <separator> </separator>
        <separators> ,|</separators>
        <size>1</size>
        <sort>none</sort>
        <unmodifiable>0</unmodifiable>
        <validationMessage/>
        <validationRegExp/>
        <values/>
        <classType>com.xpn.xwiki.objects.classes.StaticListClass</classType>
      </activeFields>
      <activeSections>
        <cache>0</cache>
        <customDisplay>{{velocity output=false}}
#set ($orderedSectionIds = [])
#set ($sections = {})
#foreach ($property in $object.xWikiClass.properties)
  #if ($property.name.indexOf('section__') == 0)
    #set ($sectionId = $property.name.substring(9))
    #set ($discard = $orderedSectionIds.add($sectionId))
    #set ($discard = $sections.put($sectionId, $property.prettyName))
  #end
#end
#macro(__sections__displayItem $sectionId $checked)
&lt;li&gt;
    &lt;label for="${prefix}${name}_${sectionId}"&gt;
    &lt;input type="checkbox" name="${prefix}${name}" id="${prefix}${name}_${sectionId}" value="$sectionId"#if ($checked) checked="checked"#end/&gt;
    $sections.get($sectionId)
    &lt;/label&gt;
    &lt;span class="tool move" title="Drag and drop to change the order"&gt;move&lt;/span&gt;
  &lt;/li&gt;
#end
{{/velocity}}

{{velocity}}{{html wiki=false clean=false}}
$value
&lt;div class="$name"&gt;
&lt;ul class="custom-display-list" id="$prefix$name"&gt;
#foreach ($sectionId in $value)
  #if ($orderedSectionIds.contains($sectionId))
    #__sections__displayItem($sectionId true)
    #set($discard = $orderedSectionIds.remove($sectionId))
  #end
#end
#foreach ($sectionId in $orderedSectionIds)
  #__sections__displayItem($sectionId false)
#end
&lt;/ul&gt;
&lt;input type="hidden" name="$prefix$name" value=""/&gt;
&lt;/div&gt;
$xwiki.jsfx.use('js/scriptaculous/scriptaculous.js')##
$xwiki.ssx.use('PhenoTips.DBConfigurationClass')##
&lt;script type="text/javascript" defer="defer"&gt;
document.observe("xwiki:dom:loaded", function() {
  Sortable.create("$prefix$name", {tag : 'li', handle : 'move'});
});
&lt;/script&gt;
{{/html}}{{/velocity}}</customDisplay>
        <disabled>0</disabled>
        <displayType>input</displayType>
        <multiSelect>1</multiSelect>
        <name>activeSections</name>
        <number>7</number>
        <picker>0</picker>
        <prettyName>Active sections and their order of appearence</prettyName>
        <relationalStorage>0</relationalStorage>
        <separator> </separator>
        <separators> ,|</separators>
        <size>1</size>
        <sort>none</sort>
        <unmodifiable>0</unmodifiable>
        <validationMessage/>
        <validationRegExp/>
        <values/>
        <classType>com.xpn.xwiki.objects.classes.StaticListClass</classType>
      </activeSections>
      <dateOfBirthFormat>
        <customDisplay>{{velocity}}
#if ($xcontext.action == 'edit' || $xcontext.action == 'admin')
{{html wiki=false clean=false}}
&lt;select name="$prefix$name" id="$prefix$iname"&gt;
#foreach ($val in ['MM/dd/yyyy', 'dd/MM/yyyy', 'MM/yyyy', 'MMMM yyyy'])
  &lt;option #if ($val == $value) selected="selected"#end value="$val"&gt;$val (e.g. $xwiki.formatDate($util.date, $val) for today)&lt;/option&gt;
#end
&lt;/select&gt;
{{/html}}
#else
$!value
#end
{{/velocity}}</customDisplay>
        <disabled>0</disabled>
        <name>dateOfBirthFormat</name>
{'fraction_non_alphanumeric': 0.16089613034623218, 'fraction_numerical': 0.013990967856194102, 'mean_word_length': 4.10347943967465, 'pattern_counts': {'":': 0, '<': 267, '<?xml version=': 2, '>': 267, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, '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': '4885078', 'n_tokens_mistral': 3719, 'n_tokens_neox': 3576, 'n_words': 753}