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

<xwikidoc>
<web>AppWithinMinutes</web>
<name>ClassSheetGenerator</name>
<language></language>
<defaultLanguage></defaultLanguage>
<translation>0</translation>
<parent>AppWithinMinutes.WebHome</parent>
<creator>xwiki:XWiki.Admin</creator>
<author>xwiki:XWiki.Admin</author>
<customClass></customClass>
<contentAuthor>xwiki:XWiki.Admin</contentAuthor>
<creationDate>1319614909000</creationDate>
<date>1319622530000</date>
<contentUpdateDate>1319622530000</contentUpdateDate>
<version>1.1</version>
<title></title>
<template></template>
<defaultTemplate></defaultTemplate>
<validationScript></validationScript>
<comment></comment>
<minorEdit>false</minorEdit>
<syntaxId>xwiki/2.0</syntaxId>
<hidden>false</hidden>
<object>
<class>
<name>XWiki.StyleSheetExtension</name>
<customClass></customClass>
<customMapping></customMapping>
<defaultViewSheet></defaultViewSheet>
<defaultEditSheet></defaultEditSheet>
<defaultWeb></defaultWeb>
<nameField></nameField>
<validationScript></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>
<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=Always on this page|onDemand=On demand|always=Always on this wiki</values>
<classType>com.xpn.xwiki.objects.classes.StaticListClass</classType>
</use>
</class>
<name>AppWithinMinutes.ClassSheetGenerator</name>
<number>0</number>
<className>XWiki.StyleSheetExtension</className>
<guid>305c2591-8b61-40dc-8a0e-1ae39071e2fa</guid>
<property>
<cache>long</cache>
</property>
<property>
<code>.xform label input[type=checkbox], .xform label input[type=radio] {
  margin: 0 0.2em 0 0;
  vertical-align: text-bottom;
}</code>
</property>
<property>
<name>Sheet Style</name>
</property>
<property>
<parse>0</parse>
</property>
<property>
<use>onDemand</use>
</property>
</object>
<content>{{velocity filter="none"}}
#**
 * Generic property display.
 *#
#macro(displayProperty $property $indentation)
${indentation}; &lt;label for="${doc.fullName}_0_$property.name"&gt;${escapetool.d}doc.displayPrettyName('$property.name', false, false)&lt;/label&gt;${escapetool.h}${escapetool.h}
${indentation}  (% class="xHint" %)${escapetool.d}msg.get('$!property.hint')
${indentation}: ${escapetool.d}doc.display('$property.name')
#end
#**
 * Unfortunately the custom display mechanism for properties doesn't offer a clean way to overwrite the display only when
 * some conditions are met (e.g. a specific action) so we're putting the custom display code in the sheet.
 *#
#macro(displayBooleanProperty $property)
  ${escapetool.h}if(${escapetool.d}context.display == 'edit')
    ; &lt;label for="${doc.fullName}_0_$property.name"&gt;${escapetool.d}doc.display('$property.name')${escapetool.d}doc.displayPrettyName('$property.name', false, false)&lt;/label&gt;
    : (% class="xHint" %)${escapetool.d}msg.get('$!property.hint')
  ${escapetool.h}else
#displayProperty($property '    ')
  ${escapetool.h}end
#end
{{{##
{{velocity}}
{{html wiki="true"}}
${escapetool.d}xwiki.ssx.use('AppWithinMinutes.ClassSheetGenerator')
${escapetool.h}set(${escapetool.d}discard = ${escapetool.d}doc.use('$doc.fullName'))
${escapetool.h}${escapetool.h} We don't have access to the form element to set the CSS class for the vertical form layout standard.
(% class="xform half" %)
(((
#foreach($property in $doc.getxWikiClass().properties)
#set($displayFormType = $property.getProperty('displayFormType'))
#if($property.type.indexOf('Boolean') != -1 &amp;&amp; "$!displayFormType.value" == 'checkbox')
#displayBooleanProperty($property)
#else
#displayProperty($property '  ')
#end
#end
)))
{{/html}}
{{/velocity}}##
}}}
{{/velocity}}</content></xwikidoc><commit_msg>XWIKI-7466: AppWithinMinutes Sheet generator makes sheet flow only 50% of the page * Removed the 'half' class name from the form element.<commit_after><?xml version="1.0" encoding="UTF-8"?>

<xwikidoc>
<web>AppWithinMinutes</web>
<name>ClassSheetGenerator</name>
<language></language>
<defaultLanguage></defaultLanguage>
<translation>0</translation>
<parent>AppWithinMinutes.WebHome</parent>
<creator>xwiki:XWiki.Admin</creator>
<author>xwiki:XWiki.Admin</author>
<customClass></customClass>
<contentAuthor>xwiki:XWiki.Admin</contentAuthor>
<creationDate>1319614909000</creationDate>
<date>1319622530000</date>
<contentUpdateDate>1319622530000</contentUpdateDate>
<version>1.1</version>
<title></title>
<template></template>
<defaultTemplate></defaultTemplate>
<validationScript></validationScript>
<comment></comment>
<minorEdit>false</minorEdit>
<syntaxId>xwiki/2.0</syntaxId>
<hidden>false</hidden>
<object>
<class>
<name>XWiki.StyleSheetExtension</name>
<customClass></customClass>
<customMapping></customMapping>
<defaultViewSheet></defaultViewSheet>
<defaultEditSheet></defaultEditSheet>
<defaultWeb></defaultWeb>
<nameField></nameField>
<validationScript></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>
<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=Always on this page|onDemand=On demand|always=Always on this wiki</values>
<classType>com.xpn.xwiki.objects.classes.StaticListClass</classType>
</use>
</class>
<name>AppWithinMinutes.ClassSheetGenerator</name>
<number>0</number>
<className>XWiki.StyleSheetExtension</className>
<guid>305c2591-8b61-40dc-8a0e-1ae39071e2fa</guid>
<property>
<cache>long</cache>
</property>
<property>
<code>.xform label input[type=checkbox], .xform label input[type=radio] {
  margin: 0 0.2em 0 0;
  vertical-align: text-bottom;
}</code>
</property>
<property>
<name>Sheet Style</name>
</property>
<property>
<parse>0</parse>
</property>
<property>
<use>onDemand</use>
</property>
</object>
<content>{{velocity filter="none"}}
#**
 * Generic property display.
 *#
#macro(displayProperty $property $indentation)
${indentation}; &lt;label for="${doc.fullName}_0_$property.name"&gt;${escapetool.d}doc.displayPrettyName('$property.name', false, false)&lt;/label&gt;${escapetool.h}${escapetool.h}
${indentation}  (% class="xHint" %)${escapetool.d}msg.get('$!property.hint')
${indentation}: ${escapetool.d}doc.display('$property.name')
#end
#**
 * Unfortunately the custom display mechanism for properties doesn't offer a clean way to overwrite the display only when
 * some conditions are met (e.g. a specific action) so we're putting the custom display code in the sheet.
 *#
#macro(displayBooleanProperty $property)
  ${escapetool.h}if(${escapetool.d}context.display == 'edit')
    ; &lt;label for="${doc.fullName}_0_$property.name"&gt;${escapetool.d}doc.display('$property.name')${escapetool.d}doc.displayPrettyName('$property.name', false, false)&lt;/label&gt;
    : (% class="xHint" %)${escapetool.d}msg.get('$!property.hint')
  ${escapetool.h}else
#displayProperty($property '    ')
  ${escapetool.h}end
#end
{{{##
{{velocity}}
{{html wiki="true"}}
${escapetool.d}xwiki.ssx.use('AppWithinMinutes.ClassSheetGenerator')
${escapetool.h}set(${escapetool.d}discard = ${escapetool.d}doc.use('$doc.fullName'))
${escapetool.h}${escapetool.h} We don't have access to the form element to set the CSS class for the vertical form layout standard.
(% class="xform" %)
(((
#foreach($property in $doc.getxWikiClass().properties)
#set($displayFormType = $property.getProperty('displayFormType'))
#if($property.type.indexOf('Boolean') != -1 &amp;&amp; "$!displayFormType.value" == 'checkbox')
#displayBooleanProperty($property)
#else
#displayProperty($property '  ')
#end
#end
)))
{{/html}}
{{/velocity}}##
}}}
{{/velocity}}</content></xwikidoc>
{'fraction_non_alphanumeric': 0.18794086385157988, 'fraction_numerical': 0.02125809256933037, 'mean_word_length': 8.663865546218487, 'pattern_counts': {'":': 0, '<': 421, '<?xml version=': 2, '>': 421, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '3639753', 'n_tokens_mistral': 3800, 'n_tokens_neox': 3589, 'n_words': 542}