<commit_before><%@ page contentType="text/xml;charset=UTF-8" language="java" %>
<%@ taglib uri='struts-bean' prefix='bean' %>
<%@ taglib uri='struts-logic' prefix='logic' %>
<%@ taglib uri='struts-genurl' prefix='genurl' %>
<%
try {
%>

<bedework>
  <bean:define id="bwconfig" name="calForm" property="config" toScope="session" />

  <now><%-- The actual date right "now" - this may not be the same as currentdate --%>
    <date><bean:write name="calForm" property="today.dateDigits"/></date><%--
      Value: YYYYMMDD --%>
    <longdate><bean:write name="calForm" property="today.longDateString"/></longdate><%--
      Value (example): February 8, 2004 - long representation of the date --%>
    <shortdate><bean:write name="calForm" property="today.dateString"/></shortdate><%--
      Value (example): 2/8/04 - short representation of the date --%>
    <time><bean:write name="calForm" property="today.timeString"/></time><%--
      Value (example): 10:15 PM --%>
  </now>
  <bean:define id="ctView" name="calForm" property="curTimeView"/>
  <currentdate><%-- The current user-selected date --%>
    <date><bean:write name="ctView" property="curDay.dateDigits"/></date><%--
      Value: yyyymmdd - date value --%>
    <longdate><bean:write name="ctView"
                          property="curDay.fullDateString"/></longdate><%--
      Value (example): Wednesday, February 11, 2004 --%>
    <shortdate><bean:write name="ctView" property="curDay.dateString"/></shortdate><%--
      Value (example): 2/8/04 - short representation of the date --%>
    <monthname><bean:write name="ctView" property="curDay.monthName"/></monthname><%--
      Value (example): January - full month name --%>
  </currentdate>
  <firstday><%-- The first date appearing in the currently selected time period --%>
    <date><bean:write name="ctView" property="firstDay.dateDigits"/></date><%--
      Value: yyyymmdd - date value --%>
    <longdate><bean:write name="ctView"
                          property="firstDay.fullDateString"/></longdate><%--
      Value (example): Wednesday, February 11, 2004 --%>
    <shortdate><bean:write name="ctView" property="firstDay.dateString"/></shortdate><%--
      Value (example): 2/8/04 - short representation of the date --%>
    <monthname><bean:write name="ctView" property="firstDay.monthName"/></monthname><%--
      Value (example): January - full month name --%>
  </firstday>
  <lastday><%-- The last date appearing in the currently selected time period --%>
    <date><bean:write name="ctView" property="lastDay.dateDigits"/></date><%--
      Value: yyyymmdd - date value --%>
    <longdate><bean:write name="ctView"
                          property="lastDay.fullDateString"/></longdate><%--
      Value (example): Wednesday, February 11, 2004 --%>
    <shortdate><bean:write name="ctView" property="lastDay.dateString"/></shortdate><%--
      Value (example): 2/8/04 - short representation of the date --%>
    <monthname><bean:write name="ctView" property="lastDay.monthName"/></monthname><%--
      Value (example): January - full month name --%>
  </lastday>
  <previousdate><bean:write name="ctView" property="prevDate"/></previousdate><%--
    Value: YYYYMMDD - The previous "firstdate" in the selected time period  --%>
  <nextdate><bean:write name="ctView" property="nextDate"/></nextdate><%--
    Value: YYYYMMDD - The next "firstdate" in the selected time period --%>
  <periodname><bean:write name="ctView" property="periodName"/></periodname><%--
    Values: Day, Week, Month, Year - The current time period name.   --%>
  <multiday><bean:write name="ctView" property="multiDay"/></multiday><%--
    Values: true, false - Flag if we are viewing multiple days --%>
  <hour24><bean:write name="calForm" property="hour24" /></hour24><%--
    Values: true, false - Flag if we are using 24 hour time --%>

  <publicview><bean:write name="calForm" property="publicView" /></publicview><%--
    Values: true, false - Flag if we are in the guest (public) view  --%>
  <guest><bean:write name="calForm" property="guest" /></guest><%--
    Value: true, false - Flag if we are a guest --%>
  <logic:equal name="calForm" property="guest" value="false">
    <userid><bean:write name="calForm" property="currentUser" /></userid><%--
      Value: string - Userid of non-guest user --%>
  </logic:equal>

  <logic:iterate id="msg" name="calForm" property="msg.msgList">
    <message>
      <id><bean:write name="msg" property="msgId" /></id>
      <logic:iterate id="param" name="msg" property="params" >
        <param><bean:write name="param" /></param>
      </logic:iterate>
    </message>
  </logic:iterate>

  <logic:iterate id="errBean" name="calForm" property="err.msgList">
    <error>
      <id><bean:write name="errBean" property="msgId" /></id>
      <logic:iterate id="param" name="errBean" property="params" >
        <param><bean:write name="param" /></param>
      </logic:iterate>
    </error>
  </logic:iterate>

  <approot><bean:write name="calForm" property="presentationState.appRoot"/></approot><%--
        Value: URI - the location of web resources used by the code to find the
        XSLT files.  This element is defined prior to build in
        ../../../../clones/democal.properties
        as pubevents.app.root and personal.app.root. Note that references to
        html web resources such as images are set in the xsl stylesheets. --%>
  <urlprefix><bean:write name="calForm" property="urlPrefix"/></urlprefix><%--
        Value: URI - this is prefix of the calendar application.
        e.g. http://localhost:8080/cal
        Use this value to prefix calls to the application actions in your XSLT.
        e.g. <a href="{$urlPrefix}/eventView.do?eventId=8">View Event</a> --%>
  <urlpattern><genurl:rewrite action="DUMMYACTION.DO" /></urlpattern>

  <personaluri><bean:message key="org.bedework.personal.calendar.uri"/></personaluri>
  <publicuri><bean:message key="org.bedework.public.calendar.uri"/></publicuri>
  <adminuri><bean:message key="org.bedework.public.admin.uri"/></adminuri>
  <bean:define id="personalUri"><bean:message key="org.bedework.personal.calendar.uri"/></bean:define>
  <urlPrefixes>
    <%--urlPrefixes are used to generate appropriately encoded urls for
        calls into the application; these are required for use within portals
        and are generated in header.jsp. --%>

    <%-- render urls --%>
    <initialise><genurl:rewrite forward="initialise"/></initialise>
    <eventMore><genurl:rewrite forward="eventMore"/></eventMore>
    <initUpload><genurl:rewrite forward="initUpload"/></initUpload>

    <%-- action urls --%>
    <setup><genurl:rewrite action="setup.do?b=de"/></setup>
    <setSelection><genurl:rewrite action="setSelection.do?b=de"/></setSelection>
    <setViewPeriod><genurl:rewrite action="setViewPeriod.do?b=de"/></setViewPeriod>
    <eventView><genurl:rewrite action="eventView.do?b=de"/></eventView>
    <mailEvent><genurl:rewrite action="mailEvent.do?b=de"/></mailEvent>
    <showPage><genurl:rewrite action="showPage.do?b=de"/></showPage>

    <export><genurl:rewrite action="export.do?b=de"/></export>
    <stats><genurl:rewrite action="stats.do?b=de"/></stats>

    <fetchPublicCalendars><genurl:rewrite action="fetchPublicCalendars"/></fetchPublicCalendars>
    <fetchCalendars><genurl:rewrite action="fetchCalendars"/></fetchCalendars>

    <!-- The following URLs are used only in the personal client -->
    <logic:equal name="calForm" property="guest" value="false">
      <initEvent><genurl:rewrite action="initEvent.do?b=de"/></initEvent>
      <addEvent><genurl:rewrite action="addEvent.do?b=de"/></addEvent>
      <addEventUsingPage><genurl:rewrite action="addEventUsingPage.do?b=de"/></addEventUsingPage>
      <editEvent><genurl:rewrite action="editEvent.do?b=de"/></editEvent>
      <delEvent><genurl:rewrite action="delEvent.do?b=de"/></delEvent>
      <event>
        <setAccess><genurl:rewrite action="/event/setAccess.do?b=de"/></setAccess>
        <addEventRefComplete><genurl:rewrite action="/event/addEventRefComplete.do?b=de"/></addEventRefComplete>
        <selectCalForEvent><genurl:rewrite action="/event/selectCalForEvent.do?b=de"/></selectCalForEvent>
      </event>

      <freeBusy>
        <fetch><genurl:rewrite action="/freeBusy/getFreeBusy.do?b=de"/></fetch>
        <setAccess><genurl:rewrite action="/freeBusy/setAccess.do?b=de"/></setAccess>
      </freeBusy>

      <calendar>
        <fetch><genurl:rewrite action="/calendar/showUpdateList.rdo?b=de"/></fetch><!-- keep -->
        <fetchDescriptions><genurl:rewrite action="/calendar/showDescriptionList.rdo?b=de"/></fetchDescriptions><!-- keep -->
        <initAdd><genurl:rewrite action="/calendar/initAdd.do?b=de"/></initAdd><!-- keep -->
        <delete><genurl:rewrite action="/calendar/delete.do?b=de"/></delete>
        <fetchForDisplay><genurl:rewrite action="/calendar/fetchForDisplay.do?b=de"/></fetchForDisplay>
        <fetchForUpdate><genurl:rewrite action="/calendar/fetchForUpdate.do?b=de"/></fetchForUpdate><!-- keep -->
        <update><genurl:rewrite action="/calendar/update.do?b=de"/></update><!-- keep -->
        <setAccess><genurl:rewrite action="/calendar/setAccess.do?b=de"/></setAccess>
      </calendar>

      <subscriptions> <!-- only those listed are used here (no need to clean up) -->
        <fetch><genurl:rewrite action="subs/fetch.do?b=de"/></fetch>
        <fetchForUpdate><genurl:rewrite action="subs/fetchForUpdate.do?b=de"/></fetchForUpdate>
        <addSubByUri><genurl:rewrite action="subs/showAddByUriForm.rdo?b=de"/></addSubByUri>
        <subscribeByUri><genurl:rewrite action="subs/subscribeByUri.do?b=de"/></subscribeByUri>
        <initAdd><genurl:rewrite action="subs/initAdd.do?b=de"/></initAdd>
        <subscribe><genurl:rewrite action="subs/subscribe.do?b=de"/></subscribe>
      </subscriptions>

      <manageLocations><genurl:rewrite action="manageLocations.do?b=de"/></manageLocations>
      <addLocation><genurl:rewrite action="addLocation.do?b=de"/></addLocation>
      <editLocation><genurl:rewrite action="editLoc.do?b=de"/></editLocation>
      <delLocation><genurl:rewrite action="delLocation.do?b=de"/></delLocation>

      <prefs>
        <fetchForUpdate><genurl:rewrite action="/prefs/fetchForUpdate.do?b=de"/></fetchForUpdate>
        <update><genurl:rewrite action="/prefs/update.do?b=de"/></update>
      </prefs><commit_msg>fixup url prefixes with correctly rewritten urls<commit_after><%@ page contentType="text/xml;charset=UTF-8" language="java" %>
<%@ taglib uri='struts-bean' prefix='bean' %>
<%@ taglib uri='struts-logic' prefix='logic' %>
<%@ taglib uri='struts-genurl' prefix='genurl' %>
<%
try {
%>

<bedework>
  <bean:define id="bwconfig" name="calForm" property="config" toScope="session" />

  <now><%-- The actual date right "now" - this may not be the same as currentdate --%>
    <date><bean:write name="calForm" property="today.dateDigits"/></date><%--
      Value: YYYYMMDD --%>
    <longdate><bean:write name="calForm" property="today.longDateString"/></longdate><%--
      Value (example): February 8, 2004 - long representation of the date --%>
    <shortdate><bean:write name="calForm" property="today.dateString"/></shortdate><%--
      Value (example): 2/8/04 - short representation of the date --%>
    <time><bean:write name="calForm" property="today.timeString"/></time><%--
      Value (example): 10:15 PM --%>
  </now>
  <bean:define id="ctView" name="calForm" property="curTimeView"/>
  <currentdate><%-- The current user-selected date --%>
    <date><bean:write name="ctView" property="curDay.dateDigits"/></date><%--
      Value: yyyymmdd - date value --%>
    <longdate><bean:write name="ctView"
                          property="curDay.fullDateString"/></longdate><%--
      Value (example): Wednesday, February 11, 2004 --%>
    <shortdate><bean:write name="ctView" property="curDay.dateString"/></shortdate><%--
      Value (example): 2/8/04 - short representation of the date --%>
    <monthname><bean:write name="ctView" property="curDay.monthName"/></monthname><%--
      Value (example): January - full month name --%>
  </currentdate>
  <firstday><%-- The first date appearing in the currently selected time period --%>
    <date><bean:write name="ctView" property="firstDay.dateDigits"/></date><%--
      Value: yyyymmdd - date value --%>
    <longdate><bean:write name="ctView"
                          property="firstDay.fullDateString"/></longdate><%--
      Value (example): Wednesday, February 11, 2004 --%>
    <shortdate><bean:write name="ctView" property="firstDay.dateString"/></shortdate><%--
      Value (example): 2/8/04 - short representation of the date --%>
    <monthname><bean:write name="ctView" property="firstDay.monthName"/></monthname><%--
      Value (example): January - full month name --%>
  </firstday>
  <lastday><%-- The last date appearing in the currently selected time period --%>
    <date><bean:write name="ctView" property="lastDay.dateDigits"/></date><%--
      Value: yyyymmdd - date value --%>
    <longdate><bean:write name="ctView"
                          property="lastDay.fullDateString"/></longdate><%--
      Value (example): Wednesday, February 11, 2004 --%>
    <shortdate><bean:write name="ctView" property="lastDay.dateString"/></shortdate><%--
      Value (example): 2/8/04 - short representation of the date --%>
    <monthname><bean:write name="ctView" property="lastDay.monthName"/></monthname><%--
      Value (example): January - full month name --%>
  </lastday>
  <previousdate><bean:write name="ctView" property="prevDate"/></previousdate><%--
    Value: YYYYMMDD - The previous "firstdate" in the selected time period  --%>
  <nextdate><bean:write name="ctView" property="nextDate"/></nextdate><%--
    Value: YYYYMMDD - The next "firstdate" in the selected time period --%>
  <periodname><bean:write name="ctView" property="periodName"/></periodname><%--
    Values: Day, Week, Month, Year - The current time period name.   --%>
  <multiday><bean:write name="ctView" property="multiDay"/></multiday><%--
    Values: true, false - Flag if we are viewing multiple days --%>
  <hour24><bean:write name="calForm" property="hour24" /></hour24><%--
    Values: true, false - Flag if we are using 24 hour time --%>

  <publicview><bean:write name="calForm" property="publicView" /></publicview><%--
    Values: true, false - Flag if we are in the guest (public) view  --%>
  <guest><bean:write name="calForm" property="guest" /></guest><%--
    Value: true, false - Flag if we are a guest --%>
  <logic:equal name="calForm" property="guest" value="false">
    <userid><bean:write name="calForm" property="currentUser" /></userid><%--
      Value: string - Userid of non-guest user --%>
  </logic:equal>

  <logic:iterate id="msg" name="calForm" property="msg.msgList">
    <message>
      <id><bean:write name="msg" property="msgId" /></id>
      <logic:iterate id="param" name="msg" property="params" >
        <param><bean:write name="param" /></param>
      </logic:iterate>
    </message>
  </logic:iterate>

  <logic:iterate id="errBean" name="calForm" property="err.msgList">
    <error>
      <id><bean:write name="errBean" property="msgId" /></id>
      <logic:iterate id="param" name="errBean" property="params" >
        <param><bean:write name="param" /></param>
      </logic:iterate>
    </error>
  </logic:iterate>

  <approot><bean:write name="calForm" property="presentationState.appRoot"/></approot><%--
        Value: URI - the location of web resources used by the code to find the
        XSLT files.  This element is defined prior to build in
        ../../../../clones/democal.properties
        as pubevents.app.root and personal.app.root. Note that references to
        html web resources such as images are set in the xsl stylesheets. --%>
  <urlprefix><bean:write name="calForm" property="urlPrefix"/></urlprefix><%--
        Value: URI - this is prefix of the calendar application.
        e.g. http://localhost:8080/cal
        Use this value to prefix calls to the application actions in your XSLT.
        e.g. <a href="{$urlPrefix}/eventView.do?eventId=8">View Event</a> --%>
  <urlpattern><genurl:rewrite action="DUMMYACTION.DO" /></urlpattern>

  <personaluri><bean:message key="org.bedework.personal.calendar.uri"/></personaluri>
  <publicuri><bean:message key="org.bedework.public.calendar.uri"/></publicuri>
  <adminuri><bean:message key="org.bedework.public.admin.uri"/></adminuri>
  <bean:define id="personalUri"><bean:message key="org.bedework.personal.calendar.uri"/></bean:define>
  <urlPrefixes>
    <%--urlPrefixes are used to generate appropriately encoded urls for
        calls into the application; these are required for use within portals
        and are generated in header.jsp. --%>

    <%-- render urls --%>
    <initialise><genurl:rewrite forward="initialise"/></initialise>
    <eventMore><genurl:rewrite forward="eventMore"/></eventMore>
    <initUpload><genurl:rewrite forward="initUpload"/></initUpload>

    <%-- action urls --%>
    <setup><genurl:rewrite action="setup.do?b=de"/></setup>
    <setSelection><genurl:rewrite action="setSelection.do?b=de"/></setSelection>
    <setViewPeriod><genurl:rewrite action="setViewPeriod.do?b=de"/></setViewPeriod>
    <eventView><genurl:rewrite action="eventView.do?b=de"/></eventView>
    <mailEvent><genurl:rewrite action="mailEvent.do?b=de"/></mailEvent>
    <showPage><genurl:rewrite action="showPage.do?b=de"/></showPage>

    <export><genurl:rewrite action="export.do?b=de"/></export>
    <stats><genurl:rewrite action="stats.do?b=de"/></stats>

    <fetchPublicCalendars><genurl:rewrite action="fetchPublicCalendars"/></fetchPublicCalendars>
    <fetchCalendars><genurl:rewrite action="fetchCalendars"/></fetchCalendars>

    <!-- The following URLs are used only in the personal client -->
    <logic:equal name="calForm" property="guest" value="false">
      <initEvent><genurl:rewrite action="initEvent.do?b=de"/></initEvent>
      <addEvent><genurl:rewrite action="addEvent.do?b=de"/></addEvent>
      <addEventUsingPage><genurl:rewrite action="addEventUsingPage.do?b=de"/></addEventUsingPage>
      <editEvent><genurl:rewrite action="editEvent.do?b=de"/></editEvent>
      <delEvent><genurl:rewrite action="delEvent.do?b=de"/></delEvent>
      <event>
        <setAccess><genurl:rewrite action="event/setAccess.do?b=de"/></setAccess>
        <addEventRefComplete><genurl:rewrite action="event/addEventRefComplete.do?b=de"/></addEventRefComplete>
        <selectCalForEvent><genurl:rewrite action="event/selectCalForEvent.do?b=de"/></selectCalForEvent>
      </event>

      <freeBusy>
        <fetch><genurl:rewrite action="freeBusy/getFreeBusy.do?b=de"/></fetch>
        <setAccess><genurl:rewrite action="freeBusy/setAccess.do?b=de"/></setAccess>
      </freeBusy>

      <calendar>
        <fetch><genurl:rewrite action="calendar/showUpdateList.rdo?b=de"/></fetch><!-- keep -->
        <fetchDescriptions><genurl:rewrite action="calendar/showDescriptionList.rdo?b=de"/></fetchDescriptions><!-- keep -->
        <initAdd><genurl:rewrite action="calendar/initAdd.do?b=de"/></initAdd><!-- keep -->
        <delete><genurl:rewrite action="calendar/delete.do?b=de"/></delete>
        <fetchForDisplay><genurl:rewrite action="calendar/fetchForDisplay.do?b=de"/></fetchForDisplay>
        <fetchForUpdate><genurl:rewrite action="calendar/fetchForUpdate.do?b=de"/></fetchForUpdate><!-- keep -->
        <update><genurl:rewrite action="calendar/update.do?b=de"/></update><!-- keep -->
        <setAccess><genurl:rewrite action="calendar/setAccess.do?b=de"/></setAccess>
      </calendar>

      <subscriptions> <!-- only those listed are used here (no need to clean up) -->
        <fetch><genurl:rewrite action="subs/fetch.do?b=de"/></fetch>
        <fetchForUpdate><genurl:rewrite action="subs/fetchForUpdate.do?b=de"/></fetchForUpdate>
        <addSubByUri><genurl:rewrite action="subs/showAddByUriForm.rdo?b=de"/></addSubByUri>
        <subscribeByUri><genurl:rewrite action="subs/subscribeByUri.do?b=de"/></subscribeByUri>
        <initAdd><genurl:rewrite action="subs/initAdd.do?b=de"/></initAdd>
        <subscribe><genurl:rewrite action="subs/subscribe.do?b=de"/></subscribe>
      </subscriptions>

      <manageLocations><genurl:rewrite action="manageLocations.do?b=de"/></manageLocations>
      <addLocation><genurl:rewrite action="addLocation.do?b=de"/></addLocation>
      <editLocation><genurl:rewrite action="editLoc.do?b=de"/></editLocation>
      <delLocation><genurl:rewrite action="delLocation.do?b=de"/></delLocation>

      <prefs>
        <fetchForUpdate><genurl:rewrite action="prefs/fetchForUpdate.do?b=de"/></fetchForUpdate>
        <update><genurl:rewrite action="prefs/update.do?b=de"/></update>
      </prefs>
{'fraction_non_alphanumeric': 0.18386662823099836, 'fraction_numerical': 0.005477082732776016, 'mean_word_length': 4.027777777777778, 'pattern_counts': {'":': 0, '<': 639, '<?xml version=': 0, '>': 639, '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': '4214555', 'n_tokens_mistral': 6818, 'n_tokens_neox': 6522, 'n_words': 1223}