<commit_before><?xml version="1.0" encoding="UTF-8"?>
<xwikidoc>
<web>XWiki</web>
<name>CalendarSheet</name>
<language></language>
<defaultLanguage>en</defaultLanguage>
<translation>0</translation>
<parent>Main.EventCalendar</parent>
<creator>XWiki.Admin</creator>
<author>XWiki.Admin</author>
<customClass></customClass>
<contentAuthor>XWiki.Admin</contentAuthor>
<creationDate>1165963145000</creationDate>
<date>1289747324000</date>
<contentUpdateDate>1289747324000</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.SheetClass</name>
<customClass></customClass>
<customMapping></customMapping>
<defaultViewSheet></defaultViewSheet>
<defaultEditSheet></defaultEditSheet>
<defaultWeb></defaultWeb>
<nameField></nameField>
<validationScript></validationScript>
<defaultEditMode>
<disabled>0</disabled>
<name>defaultEditMode</name>
<number>1</number>
<prettyName>Default Edit Mode</prettyName>
<size>15</size>
<unmodifiable>0</unmodifiable>
<classType>com.xpn.xwiki.objects.classes.StringClass</classType>
</defaultEditMode>
</class>
<name>XWiki.CalendarSheet</name>
<number>0</number>
<className>XWiki.SheetClass</className>
<guid>21d2ff0a-5248-4bb0-811a-26c61c145952</guid>
</object>
<content>{{velocity output="false"}}

#set ($calendarPlugin = $xwiki.calendar)
#set ($calendarParameters = $calendarPlugin.calendarParams)
#if ("$!{request.month}" != '')
  $calendarParameters.put('month', $request.get('month'))
#end
#if ("$!{request.year}" != '')
  $calendarParameters.put('year', $request.get('year'))
#end
#set ($categories = $util.arrayList)
#foreach ($category in $request.get('category').split(','))
  #if ($category.trim() != '')
    $categories.add($category.trim())
  #end
#end
$calendarParameters.put('categories', $categories)
{{/velocity}}

{{velocity}}
= $msg.get('eventCalendarTitle') =

{{html}}$calendarPlugin.getHTMLCalendar($calendarParameters, ''){{/html}}

== $msg.get('eventList') ==

#foreach ($event in $doc.getObjects('XWiki.CalendarEvent'))
(% class="vevent" %)
(((
=== (% class="summary" %)$event.title.replaceAll('\n', '')(% %)#if ($hasedit) ({{html clean="false"}}&lt;a href="$doc.getURL('edit', "editor=object&amp;amp;classname=XWiki.CalendarEvent&amp;amp;nb=$event.number")"&gt;$msg.get('edit')&lt;/a&gt;, &lt;a href="$doc.getURL('objectremove', "classname=XWiki.CalendarEvent&amp;amp;classid=${event.number}&amp;amp;xredirect=$doc.getURL('view')&amp;amp;form_token=$!{services.csrf.getToken()}")"&gt;$msg.get('delete')&lt;/a&gt;{{/html}})#end ===

(% class="eventinfo" %)
(((
#if ("$!{event.getProperty('category').value}" != '' &amp;&amp; $event.getProperty('category').value != 'Other')
Category: (% class="category" %)$event.category(% %)

#end
#if ("$!{event.startDate}" != '' &amp;&amp; "$!{event.endDate}" != '')
(% class="timeplace"%)
{{html clean="false"}}#if ($event.startDate == $event.endDate)&lt;abbr class="dtstart dtend" title="${xwiki.formatDate($event.getProperty('startDate').value, 'yyyy-MM-dd')}"&gt;${xwiki.formatDate($event.getProperty('startDate').value, 'EEEE, MMMM dd, yyyy')}&lt;/abbr&gt;#else${msg.get('dtFrom')} &lt;abbr class="dtstart" title="${xwiki.formatDate($event.getProperty('startDate').value, 'yyyy-MM-dd')}"&gt;${xwiki.formatDate($event.getProperty('startDate').value, 'EEEE, MMMM dd, yyyy')}&lt;/abbr&gt; ${msg.get('dtTo')} &lt;abbr class="dtend" title="${xwiki.formatDate($event.getProperty('endDate').value, 'yyyy-MM-dd')}"&gt;${xwiki.formatDate($event.getProperty('endDate').value, 'EEEE, MMMM dd, yyyy')}&lt;/abbr&gt;#end{{/html}}#if($event.location != ''), (% class="location" %)${event.location}(% %)#end#end

(% class="description" %)
(((
$event.description
)))
#if ("$!{event.url}" != '')

[[$msg.get('moreinfo')&gt;&gt;$event.url||class="url"]]#end
)))
)))
#end## foreach event

#if ($hasedit)
== $msg.get('eventNew') ==

#set ($cclass = $xwiki.getDocument('XWiki.CalendarEvent').getxWikiClass())
#set ($event = $cclass.newObject())
{{html wiki="true"}}
&lt;form action="$doc.getURL('objectadd')" method="post"&gt;
&lt;div&gt;
&lt;div class="hidden"&gt;
&lt;input type="hidden" name="form_token" value="$!{services.csrf.getToken()}" /&gt;
&lt;input type="hidden" name="classname" value="XWiki.CalendarEvent" /&gt;
&lt;input type="hidden" name="xredirect" value="${doc.getURL('view')}" /&gt;
&lt;/div&gt;
&lt;dl&gt;
#set ($pclass = $cclass.get('title'))
&lt;dt class="label"&gt;&lt;label&gt;$msg.get('eventTitle'):&lt;/label&gt;&lt;/dt&gt;
&lt;dd&gt;$doc.displayEdit($pclass, 'XWiki.CalendarEvent_', $event)&lt;/dd&gt;
#set ($pclass = $cclass.get('startDate'))
&lt;dt class="label"&gt;&lt;label&gt;$msg.get('eventStartdate'):&lt;/label&gt;&lt;/dt&gt;
&lt;dd&gt;$doc.displayEdit($pclass, 'XWiki.CalendarEvent_', $event)&lt;/dd&gt;
#set ($pclass = $cclass.get('endDate'))
&lt;dt class="label"&gt;&lt;label&gt;$msg.get('eventEnddate'):&lt;/label&gt;&lt;/dt&gt;
&lt;dd&gt;$doc.displayEdit($pclass, 'XWiki.CalendarEvent_', $event)&lt;/dd&gt;
#set ($pclass = $cclass.get('location'))
&lt;dt class="label"&gt;&lt;label&gt;$msg.get('eventLocation'):&lt;/label&gt;&lt;/dt&gt;
&lt;dd&gt;$doc.displayEdit($pclass, 'XWiki.CalendarEvent_', $event)&lt;/dd&gt;
#set ($pclass = $cclass.get('category'))
&lt;dt class="label"&gt;&lt;label&gt;$msg.get('eventCategory'):&lt;/label&gt;&lt;/dt&gt;
&lt;dd&gt;$doc.displayEdit($pclass, 'XWiki.CalendarEvent_', $event)&lt;/dd&gt;
#set ($pclass = $cclass.get('url'))
&lt;dt class="label"&gt;&lt;label&gt;$msg.get('eventURL'):&lt;/label&gt;&lt;/dt&gt;
&lt;dd&gt;$doc.displayEdit($pclass, 'XWiki.CalendarEvent_', $event)&lt;/dd&gt;
#set ($pclass = $cclass.get('description'))
&lt;dt class="label"&gt;&lt;label&gt;$msg.get('eventDescription'):&lt;/label&gt;&lt;/dt&gt;
&lt;dd&gt;$doc.displayEdit($pclass, 'XWiki.CalendarEvent_', $event)&lt;/dd&gt;
&lt;/dl&gt;
&lt;input type="submit" value="$msg.get('eventAdd')" /&gt;
&lt;/div&gt;
&lt;/form&gt;
{{/html}}
#end
{{/velocity}}</content></xwikidoc><commit_msg>XACALENDAR-17: Add Event button style is not consistent with the skin Fixed.<commit_after><?xml version="1.0" encoding="UTF-8"?>
<xwikidoc>
<web>XWiki</web>
<name>CalendarSheet</name>
<language></language>
<defaultLanguage>en</defaultLanguage>
<translation>0</translation>
<parent>Main.EventCalendar</parent>
<creator>XWiki.Admin</creator>
<author>XWiki.Admin</author>
<customClass></customClass>
<contentAuthor>XWiki.Admin</contentAuthor>
<creationDate>1165963145000</creationDate>
<date>1289747324000</date>
<contentUpdateDate>1289747324000</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.SheetClass</name>
<customClass></customClass>
<customMapping></customMapping>
<defaultViewSheet></defaultViewSheet>
<defaultEditSheet></defaultEditSheet>
<defaultWeb></defaultWeb>
<nameField></nameField>
<validationScript></validationScript>
<defaultEditMode>
<disabled>0</disabled>
<name>defaultEditMode</name>
<number>1</number>
<prettyName>Default Edit Mode</prettyName>
<size>15</size>
<unmodifiable>0</unmodifiable>
<classType>com.xpn.xwiki.objects.classes.StringClass</classType>
</defaultEditMode>
</class>
<name>XWiki.CalendarSheet</name>
<number>0</number>
<className>XWiki.SheetClass</className>
<guid>21d2ff0a-5248-4bb0-811a-26c61c145952</guid>
</object>
<content>{{velocity output="false"}}

#set ($calendarPlugin = $xwiki.calendar)
#set ($calendarParameters = $calendarPlugin.calendarParams)
#if ("$!{request.month}" != '')
  $calendarParameters.put('month', $request.get('month'))
#end
#if ("$!{request.year}" != '')
  $calendarParameters.put('year', $request.get('year'))
#end
#set ($categories = $util.arrayList)
#foreach ($category in $request.get('category').split(','))
  #if ($category.trim() != '')
    $categories.add($category.trim())
  #end
#end
$calendarParameters.put('categories', $categories)
{{/velocity}}

{{velocity}}
= $msg.get('eventCalendarTitle') =

{{html}}$calendarPlugin.getHTMLCalendar($calendarParameters, ''){{/html}}

== $msg.get('eventList') ==

#foreach ($event in $doc.getObjects('XWiki.CalendarEvent'))
(% class="vevent" %)
(((
=== (% class="summary" %)$event.title.replaceAll('\n', '')(% %)#if ($hasedit) ({{html clean="false"}}&lt;a href="$doc.getURL('edit', "editor=object&amp;amp;classname=XWiki.CalendarEvent&amp;amp;nb=$event.number")"&gt;$msg.get('edit')&lt;/a&gt;, &lt;a href="$doc.getURL('objectremove', "classname=XWiki.CalendarEvent&amp;amp;classid=${event.number}&amp;amp;xredirect=$doc.getURL('view')&amp;amp;form_token=$!{services.csrf.getToken()}")"&gt;$msg.get('delete')&lt;/a&gt;{{/html}})#end ===

(% class="eventinfo" %)
(((
#if ("$!{event.getProperty('category').value}" != '' &amp;&amp; $event.getProperty('category').value != 'Other')
Category: (% class="category" %)$event.category(% %)

#end
#if ("$!{event.startDate}" != '' &amp;&amp; "$!{event.endDate}" != '')
(% class="timeplace"%)
{{html clean="false"}}#if ($event.startDate == $event.endDate)&lt;abbr class="dtstart dtend" title="${xwiki.formatDate($event.getProperty('startDate').value, 'yyyy-MM-dd')}"&gt;${xwiki.formatDate($event.getProperty('startDate').value, 'EEEE, MMMM dd, yyyy')}&lt;/abbr&gt;#else${msg.get('dtFrom')} &lt;abbr class="dtstart" title="${xwiki.formatDate($event.getProperty('startDate').value, 'yyyy-MM-dd')}"&gt;${xwiki.formatDate($event.getProperty('startDate').value, 'EEEE, MMMM dd, yyyy')}&lt;/abbr&gt; ${msg.get('dtTo')} &lt;abbr class="dtend" title="${xwiki.formatDate($event.getProperty('endDate').value, 'yyyy-MM-dd')}"&gt;${xwiki.formatDate($event.getProperty('endDate').value, 'EEEE, MMMM dd, yyyy')}&lt;/abbr&gt;#end{{/html}}#if($event.location != ''), (% class="location" %)${event.location}(% %)#end#end

(% class="description" %)
(((
$event.description
)))
#if ("$!{event.url}" != '')

[[$msg.get('moreinfo')&gt;&gt;$event.url||class="url"]]#end
)))
)))
#end## foreach event

#if ($hasedit)
== $msg.get('eventNew') ==

#set ($cclass = $xwiki.getDocument('XWiki.CalendarEvent').getxWikiClass())
#set ($event = $cclass.newObject())
{{html wiki="true"}}
&lt;form action="$doc.getURL('objectadd')" method="post"&gt;
&lt;div&gt;
&lt;div class="hidden"&gt;
&lt;input type="hidden" name="form_token" value="$!{services.csrf.getToken()}" /&gt;
&lt;input type="hidden" name="classname" value="XWiki.CalendarEvent" /&gt;
&lt;input type="hidden" name="xredirect" value="${doc.getURL('view')}" /&gt;
&lt;/div&gt;
&lt;dl&gt;
#set ($pclass = $cclass.get('title'))
&lt;dt class="label"&gt;&lt;label&gt;$msg.get('eventTitle'):&lt;/label&gt;&lt;/dt&gt;
&lt;dd&gt;$doc.displayEdit($pclass, 'XWiki.CalendarEvent_', $event)&lt;/dd&gt;
#set ($pclass = $cclass.get('startDate'))
&lt;dt class="label"&gt;&lt;label&gt;$msg.get('eventStartdate'):&lt;/label&gt;&lt;/dt&gt;
&lt;dd&gt;$doc.displayEdit($pclass, 'XWiki.CalendarEvent_', $event)&lt;/dd&gt;
#set ($pclass = $cclass.get('endDate'))
&lt;dt class="label"&gt;&lt;label&gt;$msg.get('eventEnddate'):&lt;/label&gt;&lt;/dt&gt;
&lt;dd&gt;$doc.displayEdit($pclass, 'XWiki.CalendarEvent_', $event)&lt;/dd&gt;
#set ($pclass = $cclass.get('location'))
&lt;dt class="label"&gt;&lt;label&gt;$msg.get('eventLocation'):&lt;/label&gt;&lt;/dt&gt;
&lt;dd&gt;$doc.displayEdit($pclass, 'XWiki.CalendarEvent_', $event)&lt;/dd&gt;
#set ($pclass = $cclass.get('category'))
&lt;dt class="label"&gt;&lt;label&gt;$msg.get('eventCategory'):&lt;/label&gt;&lt;/dt&gt;
&lt;dd&gt;$doc.displayEdit($pclass, 'XWiki.CalendarEvent_', $event)&lt;/dd&gt;
#set ($pclass = $cclass.get('url'))
&lt;dt class="label"&gt;&lt;label&gt;$msg.get('eventURL'):&lt;/label&gt;&lt;/dt&gt;
&lt;dd&gt;$doc.displayEdit($pclass, 'XWiki.CalendarEvent_', $event)&lt;/dd&gt;
#set ($pclass = $cclass.get('description'))
&lt;dt class="label"&gt;&lt;label&gt;$msg.get('eventDescription'):&lt;/label&gt;&lt;/dt&gt;
&lt;dd&gt;$doc.displayEdit($pclass, 'XWiki.CalendarEvent_', $event)&lt;/dd&gt;
&lt;/dl&gt;
&lt;span class="buttonwrapper"&gt;&lt;input type="submit" class="button" value="$msg.get('eventAdd')" /&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;/form&gt;
{{/html}}
#end
{{/velocity}}</content></xwikidoc>
{'fraction_non_alphanumeric': 0.25509628555313835, 'fraction_numerical': 0.012408347433728144, 'mean_word_length': 9.8972783143108, 'pattern_counts': {'":': 0, '<': 189, '<?xml version=': 2, '>': 189, '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': '1222403', 'n_tokens_mistral': 4817, 'n_tokens_neox': 4722, 'n_words': 536}