<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.1">
  <web>CKEditor</web>
  <name>ContentSheet</name>
  <language/>
  <defaultLanguage/>
  <translation>0</translation>
  <creator>xwiki:XWiki.Admin</creator>
  <creationDate>1423563371000</creationDate>
  <parent>CKEditor.WebHome</parent>
  <author>xwiki:XWiki.Admin</author>
  <contentAuthor>xwiki:XWiki.Admin</contentAuthor>
  <date>1423836987000</date>
  <contentUpdateDate>1423836987000</contentUpdateDate>
  <version>1.1</version>
  <title/>
  <comment/>
  <minorEdit>false</minorEdit>
  <syntaxId>xwiki/2.1</syntaxId>
  <hidden>true</hidden>
  <content>{{velocity}}
#if ($doc.fullName == 'CKEditor.ContentSheet')
  This is the sheet used to obtain the content that is passed to the [[CKEditor&gt;&gt;http://ckeditor.com/]].
#else
  {{html clean="false"}}
  ## We don't have a HTML5 parser yet so we use XHTML 1.0 header.
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml" lang="$xcontext.locale" xml:lang="$xcontext.locale"&gt;
    &lt;head&gt;
      &lt;meta http-equiv="Content-Type" content="text/html; charset=$xwiki.encoding" /&gt;
      ## Hook for inserting Link extensions. This will be replaced with the pulled link references.
      &lt;!-- com.xpn.xwiki.plugin.skinx.LinkExtensionPlugin --&gt;
      ## Fix some issues caused by the fact that we put the content directly under the BODY element.
      #set ($discard = $xwiki.ssx.use('CKEditor.ContentSheet'))
      ## Include the stylesheets that affect the content in view mode.
      #template("stylesheets.vm")
      #if ($xwiki.getDocument('CKEditor.Config').getValue('loadJavaScriptSkinExtensions') == 1)
        #template("javascript.vm")
      #end
    &lt;/head&gt;
    #if (!$source)
      #set ($source = $tdoc)
    #end
    #set ($serializedSpaceReference = $services.model.serialize($source.documentReference.parent, 'local'))
    &lt;body id="body" class="skin-flamingo viewbody main wiki-$xcontext.database
        space-$escapetool.xml($serializedSpaceReference.replaceAll(' ', '_'))"&gt;##
      #if ($source.html)
        #set ($html = $services.wysiwyg.parseAndRender($source.html, $source.syntax.toIdString()))
      #else
        #set ($html = $services.wysiwyg.toAnnotatedXHTML($source.content, $source.syntax.toIdString()))
      #end
      ## Escape {{ in the rendered content to be sure that the HTML macro is not closed unintentionally.
      ## The result must be unescaped before being passed to the CKEditor as input.
      ## CKEDITOR-134: Unclosed {{html}} results in addition of closing tag even when macro isn't actually evaluated
      #set ($output = $html.replace('{{', '&amp;amp;#123;&amp;amp;#123;'))
      #if ("$!output" != '')
        $output##
      #else
        ## Prevent Firefox from inserting bogus whitespace when the text area is empty.
        ## CKEDITOR-185: Whitespace is generated in Firefox when creating a page without typing the content
        &lt;p&gt;&lt;/p&gt;##
      #end
    &lt;/body&gt;
  &lt;/html&gt;
  {{/html}}
#end
{{/velocity}}</content>
  <object>
    <name>CKEditor.ContentSheet</name>
    <number>0</number>
    <className>XWiki.StyleSheetExtension</className>
    <guid>1e6c31f6-95c8-4c03-b996-df842b78f0cb</guid>
    <class>
      <name>XWiki.StyleSheetExtension</name>
      <customClass/>
      <customMapping/>
      <defaultViewSheet/>
      <defaultEditSheet/>
      <defaultWeb/>
      <nameField/>
      <validationScript/>
      <cache>
        <cache>0</cache>
        <disabled>0</disabled>
        <displayType>select</displayType>
        <multiSelect>0</multiSelect>
        <name>cache</name>
        <number>5</number>
        <prettyName>Caching policy</prettyName>
        <relationalStorage>0</relationalStorage>
        <separator> </separator>
        <separators> ,|</separators>
        <size>1</size>
        <unmodifiable>0</unmodifiable>
        <values>long|short|default|forbid</values>
        <classType>com.xpn.xwiki.objects.classes.StaticListClass</classType>
      </cache>
      <code>
        <disabled>0</disabled>
        <name>code</name>
        <number>2</number>
        <prettyName>Code</prettyName>
        <rows>20</rows>
        <size>50</size>
        <unmodifiable>0</unmodifiable>
        <classType>com.xpn.xwiki.objects.classes.TextAreaClass</classType>
      </code>
      <contentType>
        <cache>0</cache>
        <disabled>0</disabled>
        <displayType>select</displayType>
        <multiSelect>0</multiSelect>
        <name>contentType</name>
        <number>6</number>
        <prettyName>Content Type</prettyName>
        <relationalStorage>0</relationalStorage>
        <separator> </separator>
        <separators> ,|</separators>
        <size>1</size>
        <unmodifiable>0</unmodifiable>
        <values>CSS|LESS</values>
        <classType>com.xpn.xwiki.objects.classes.StaticListClass</classType>
      </contentType>
      <name>
        <disabled>0</disabled>
        <name>name</name>
        <number>1</number>
        <prettyName>Name</prettyName>
        <size>30</size>
        <unmodifiable>0</unmodifiable>
        <classType>com.xpn.xwiki.objects.classes.StringClass</classType>
      </name>
      <parse>
        <disabled>0</disabled>
        <displayFormType>select</displayFormType>
        <displayType>yesno</displayType>
        <name>parse</name>
        <number>4</number>
        <prettyName>Parse content</prettyName>
        <unmodifiable>0</unmodifiable>
        <classType>com.xpn.xwiki.objects.classes.BooleanClass</classType>
      </parse>
      <use>
        <cache>0</cache>
        <disabled>0</disabled>
        <displayType>select</displayType>
        <multiSelect>0</multiSelect>
        <name>use</name>
        <number>3</number>
        <prettyName>Use this extension</prettyName>
        <relationalStorage>0</relationalStorage>
        <separator> </separator>
        <separators> ,|</separators>
        <size>1</size>
        <unmodifiable>0</unmodifiable>
        <values>currentPage|onDemand|always</values>
        <classType>com.xpn.xwiki.objects.classes.StaticListClass</classType>
      </use>
    </class>
    <property>
      <cache>long</cache>
    </property>
    <property>
      <code>#body[contenteditable="true"] {
  /* We use margin instead of padding because of https://github.com/ckeditor/ckeditor-dev/issues/2655 (Nested editable
    can't be focused under certain circumstances) */
  margin: 1em;<commit_msg>CKEDITOR-283: Cannot add content after a DIV located at the end of the document<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.1">
  <web>CKEditor</web>
  <name>ContentSheet</name>
  <language/>
  <defaultLanguage/>
  <translation>0</translation>
  <creator>xwiki:XWiki.Admin</creator>
  <creationDate>1423563371000</creationDate>
  <parent>CKEditor.WebHome</parent>
  <author>xwiki:XWiki.Admin</author>
  <contentAuthor>xwiki:XWiki.Admin</contentAuthor>
  <date>1423836987000</date>
  <contentUpdateDate>1423836987000</contentUpdateDate>
  <version>1.1</version>
  <title/>
  <comment/>
  <minorEdit>false</minorEdit>
  <syntaxId>xwiki/2.1</syntaxId>
  <hidden>true</hidden>
  <content>{{velocity}}
#if ($doc.fullName == 'CKEditor.ContentSheet')
  This is the sheet used to obtain the content that is passed to the [[CKEditor&gt;&gt;http://ckeditor.com/]].
#else
  {{html clean="false"}}
  ## We don't have a HTML5 parser yet so we use XHTML 1.0 header.
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml" lang="$xcontext.locale" xml:lang="$xcontext.locale"&gt;
    &lt;head&gt;
      &lt;meta http-equiv="Content-Type" content="text/html; charset=$xwiki.encoding" /&gt;
      ## Hook for inserting Link extensions. This will be replaced with the pulled link references.
      &lt;!-- com.xpn.xwiki.plugin.skinx.LinkExtensionPlugin --&gt;
      ## Fix some issues caused by the fact that we put the content directly under the BODY element.
      #set ($discard = $xwiki.ssx.use('CKEditor.ContentSheet'))
      ## Include the stylesheets that affect the content in view mode.
      #template("stylesheets.vm")
      #if ($xwiki.getDocument('CKEditor.Config').getValue('loadJavaScriptSkinExtensions') == 1)
        #template("javascript.vm")
      #end
    &lt;/head&gt;
    #if (!$source)
      #set ($source = $tdoc)
    #end
    #set ($serializedSpaceReference = $services.model.serialize($source.documentReference.parent, 'local'))
    &lt;body id="body" class="skin-flamingo viewbody main wiki-$xcontext.database
        space-$escapetool.xml($serializedSpaceReference.replaceAll(' ', '_'))"&gt;##
      #if ($source.html)
        #set ($html = $services.wysiwyg.parseAndRender($source.html, $source.syntax.toIdString()))
      #else
        #set ($html = $services.wysiwyg.toAnnotatedXHTML($source.content, $source.syntax.toIdString()))
      #end
      ## Escape {{ in the rendered content to be sure that the HTML macro is not closed unintentionally.
      ## The result must be unescaped before being passed to the CKEditor as input.
      ## CKEDITOR-134: Unclosed {{html}} results in addition of closing tag even when macro isn't actually evaluated
      #set ($output = $html.replace('{{', '&amp;amp;#123;&amp;amp;#123;'))
      #if ("$!output" != '')
        $output##
      #else
        ## Prevent Firefox from inserting bogus whitespace when the text area is empty.
        ## CKEDITOR-185: Whitespace is generated in Firefox when creating a page without typing the content
        &lt;p&gt;&lt;/p&gt;##
      #end
    &lt;/body&gt;
  &lt;/html&gt;
  {{/html}}
#end
{{/velocity}}</content>
  <object>
    <name>CKEditor.ContentSheet</name>
    <number>0</number>
    <className>XWiki.StyleSheetExtension</className>
    <guid>1e6c31f6-95c8-4c03-b996-df842b78f0cb</guid>
    <class>
      <name>XWiki.StyleSheetExtension</name>
      <customClass/>
      <customMapping/>
      <defaultViewSheet/>
      <defaultEditSheet/>
      <defaultWeb/>
      <nameField/>
      <validationScript/>
      <cache>
        <cache>0</cache>
        <disabled>0</disabled>
        <displayType>select</displayType>
        <multiSelect>0</multiSelect>
        <name>cache</name>
        <number>5</number>
        <prettyName>Caching policy</prettyName>
        <relationalStorage>0</relationalStorage>
        <separator> </separator>
        <separators> ,|</separators>
        <size>1</size>
        <unmodifiable>0</unmodifiable>
        <values>long|short|default|forbid</values>
        <classType>com.xpn.xwiki.objects.classes.StaticListClass</classType>
      </cache>
      <code>
        <disabled>0</disabled>
        <name>code</name>
        <number>2</number>
        <prettyName>Code</prettyName>
        <rows>20</rows>
        <size>50</size>
        <unmodifiable>0</unmodifiable>
        <classType>com.xpn.xwiki.objects.classes.TextAreaClass</classType>
      </code>
      <contentType>
        <cache>0</cache>
        <disabled>0</disabled>
        <displayType>select</displayType>
        <multiSelect>0</multiSelect>
        <name>contentType</name>
        <number>6</number>
        <prettyName>Content Type</prettyName>
        <relationalStorage>0</relationalStorage>
        <separator> </separator>
        <separators> ,|</separators>
        <size>1</size>
        <unmodifiable>0</unmodifiable>
        <values>CSS|LESS</values>
        <classType>com.xpn.xwiki.objects.classes.StaticListClass</classType>
      </contentType>
      <name>
        <disabled>0</disabled>
        <name>name</name>
        <number>1</number>
        <prettyName>Name</prettyName>
        <size>30</size>
        <unmodifiable>0</unmodifiable>
        <classType>com.xpn.xwiki.objects.classes.StringClass</classType>
      </name>
      <parse>
        <disabled>0</disabled>
        <displayFormType>select</displayFormType>
        <displayType>yesno</displayType>
        <name>parse</name>
        <number>4</number>
        <prettyName>Parse content</prettyName>
        <unmodifiable>0</unmodifiable>
        <classType>com.xpn.xwiki.objects.classes.BooleanClass</classType>
      </parse>
      <use>
        <cache>0</cache>
        <disabled>0</disabled>
        <displayType>select</displayType>
        <multiSelect>0</multiSelect>
        <name>use</name>
        <number>3</number>
        <prettyName>Use this extension</prettyName>
        <relationalStorage>0</relationalStorage>
        <separator> </separator>
        <separators> ,|</separators>
        <size>1</size>
        <unmodifiable>0</unmodifiable>
        <values>currentPage|onDemand|always</values>
        <classType>com.xpn.xwiki.objects.classes.StaticListClass</classType>
      </use>
    </class>
    <property>
      <cache>long</cache>
    </property>
    <property>
      <code>#body[contenteditable="true"] {
  /* We use margin instead of padding because of https://github.com/ckeditor/ckeditor-dev/issues/2655 (Nested editable
    can't be focused under certain circumstances) */
  /* We need more space at the bottom in order to be sure that the magic line is visible all the time (see CKEDITOR-283:
    Cannot add content after a DIV located at the end of the document) */
  margin: 1em 1em 30px;
{'fraction_non_alphanumeric': 0.1392904073587385, 'fraction_numerical': 0.020433639947437583, 'mean_word_length': 3.147411444141689, 'pattern_counts': {'":': 0, '<': 413, '<?xml version=': 2, '>': 413, 'https://': 2, 'lorem ipsum': 0, 'www.': 6, 'xml': 8}, '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': '3099855', 'n_tokens_mistral': 4964, 'n_tokens_neox': 4706, 'n_words': 1066}