<commit_before><%--

    Licensed to Jasig under one or more contributor license
    agreements. See the NOTICE file distributed with this work
    for additional information regarding copyright ownership.
    Jasig licenses this file to you under the Apache License,
    Version 2.0 (the "License"); you may not use this file
    except in compliance with the License. You may obtain a
    copy of the License at:

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing,
    software distributed under the License is distributed on
    an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    KIND, either express or implied. See the License for the
    specific language governing permissions and limitations
    under the License.

--%>

<jsp:directive.include file="/WEB-INF/jsp/include.jsp"/>

<c:set var="n"><portlet:namespace/></c:set>

<c:if test="${ !usePortalJsLibs }">
    <script type="text/javascript" src="<rs:resourceURL value="/rs/jquery/1.5/jquery-1.5.min.js"/>"></script>
    <script type="text/javascript" src="<rs:resourceURL value="/rs/jqueryui/1.8/jquery-ui-1.8.min.js"/>"></script>
    <script type="text/javascript" src="<rs:resourceURL value="/rs/fluid/1.4-bea0041/js/fluid-all-1.4-bea0041.min.js"/>"></script>
</c:if>
<script type="text/javascript" src="<c:url value="/scripts/CalendarView.min.js"/>"></script>

<script type="text/javascript"><rs:compressJs>
    var ${n} = ${n} || {};
    <c:choose>
        <c:when test="${!usePortalJsLibs}">
            ${n}.jQuery = jQuery.noConflict(true);
            ${n}.fluid = fluid;
            fluid = null; 
            fluid_1_4 = null;
        </c:when>
        <c:otherwise>
            ${n}.jQuery = ${portalJsNamespace ? portalJsNamespace + '.' : ''}jQuery;
            ${n}.fluid = ${portalJsNamespace ? portalJsNamespace + '.' : ''}fluid;
        </c:otherwise>
    </c:choose>
    if (!cal.initialized) cal.init(${n}.jQuery, ${n}.fluid);
    ${n}.cal = cal;
    ${n}.jQuery(function() {
        var $ = ${n}.jQuery;
        var cal = ${n}.cal;

        // The 'days' variable is used in functions beyond the CalendarView
        var days = ${model.days};
        
        var options = {
            eventsUrl: '<portlet:resourceURL/>', 
            startDate: '<fmt:formatDate value="${model.startDate}" type="date" pattern="MM/dd/yyyy" timeZone="${ model.timezone }"/>', 
            days: days,
            messages: {
                allDay: '<spring:message code="event.allday"/>'
            },
            eventListView: {
                type: "cal.EventListView",
                options: {
                    showEndTime: false
                }
            }
        };
        var calView = cal.CalendarView("#${n}container", options);
        
        var date = new Date();
        date.setFullYear(<fmt:formatDate value="${model.startDate}" pattern="yyyy" timeZone="${model.timezone}"/>, Number(<fmt:formatDate value="${model.startDate}" pattern="M" timeZone="${model.timezone}"/>)-1, <fmt:formatDate value="${model.startDate}" pattern="d" timeZone="${model.timezone}"/>);
        $('#${n}inlineCalendar').datepicker(
            {
                inline: true,
                changeMonth: false,
                changeYear: false,
                defaultDate: date,
                onSelect: function(date) {
                    calView.updateEventList(date, days);
                } 
            }
        );

    });
</rs:compressJs></script>

<div id="${n}container" class="portlet ptl-calendar view-mobile">
	<div data-role="content" class="portlet-content">

	    <!-- Mini-Calendar (jQuery UI) -->
	    <div id="${n}inlineCalendar" class="upcal-inline-calendar upcal-hide-on-event"></div>
	    
	    <!-- Calendar Events List -->
	    <div class="upcal-loading-message portlet-msg-info portlet-msg info">
            <p><spring:message code="eventlist.loading"/></p>
        </div>
	    <div class="upcal-events">
	        <div class="upcal-events upcal-event-list upcal-hide-on-event" style="display:none">
	            <div class="portlet-msg-error upcal-errors">
	                <div class="upcal-error"></div>
	            </div>
                <div class="portlet-msg-info upcal-noevents" style="display:none">
                    <p>No events</p>
                </div>
	            <div class="day">
	                <h2 class="dayName">Today</h2>
	                    <div class="upcal-event">
	                        <!--div class="upcal-event-cal">
	                            <span></span>
	                        </div-->
	                        <div class="upcal-event-time">All Day</div>
	                        <a class="upcal-event-link" href="javascript:;">
		                        <h3 class="upcal-event-title">
		                            Event Summary
		                        </h3>
	                        </a>
	                    </div>
	            </div>
	        </div>
	        
	        <div class="upcal-event-details upcal-hide-on-calendar">
	
	            <div class="upcal-event-detail">
	                <!-- Event title -->
	                <h2 class="upcal-event-detail-summary">Event Summary</h2>
	          
	                <!-- Calendar event is from -->
	                <div class="upcal-event-detail-cal">
	                    <span> <!-- Calendar name to go here. --> </span>
	                </div>
	          
	                <!-- Event time -->
	                <div class="event-detail-date">
	                    <h3><spring:message code="event.date"/>:</h3>
	                    <p>
	                        <span class="upcal-event-detail-day">Today</span>
	                        <span class="upcal-event-detail-starttime">2:00 PM - 3:00 PM</span>
	                    </p>
	                </div>
	
	                <div class="upcal-event-detail-loc-div">
	                    <h3><spring:message code="event.location"/>:</h3>
	                    <p class="upcal-event-detail-loc"></p>
	                </div>          
	          
	                <div class="upcal-event-detail-desc-div">
	                    <h3><spring:message code="event.description"/>:</h3>
	                    <p>Event description</p>
	                </div class="upcal-event-detail-desc">
	
	                <div class="upcal-event-detail-link-div">
	                    <h3><spring:message code="event.link"/>:</h3>
	                    <p>
	                        <a class="upcal-event-detail-link" href="http://www.event.com" target="_blank">http://www.event.com</a>
	                    </p>
	                </div>
	            </div>
	            
	        </div>
	    </div>

        <div class="utilities upcal-view-links upcal-hide-on-calendar" style="display:none">
            <a id="${n}returnToCalendarLink" class="upcal-view-return" href="javascript:;" 
                    title="<spring:message code="return.to.calendar.link.title"/>" data-role="button">
                <spring:message code="return.to.calendar.link.text"/>
            </a>
        </div>

        <c:if test="${ !model.disablePreferences }">
            <div class="utilities upcal-view-links upcal-show-on-calendar">
                <portlet:renderURL var="preferencesUrl" portletMode="edit"><portlet:param name="action" value="editPreferences"/></portlet:renderURL>
                <a data-role="button" href="${ preferencesUrl }" title="<spring:message code="preferences.link.title"/>">
                    Preferences
                </a>
            </div>
        </c:if>
        
  
    </div>
</div><commit_msg>CAP-88 Properly displaying event description and location.<commit_after><%--

    Licensed to Jasig under one or more contributor license
    agreements. See the NOTICE file distributed with this work
    for additional information regarding copyright ownership.
    Jasig licenses this file to you under the Apache License,
    Version 2.0 (the "License"); you may not use this file
    except in compliance with the License. You may obtain a
    copy of the License at:

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing,
    software distributed under the License is distributed on
    an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    KIND, either express or implied. See the License for the
    specific language governing permissions and limitations
    under the License.

--%>

<jsp:directive.include file="/WEB-INF/jsp/include.jsp"/>

<c:set var="n"><portlet:namespace/></c:set>

<c:if test="${ !usePortalJsLibs }">
    <script type="text/javascript" src="<rs:resourceURL value="/rs/jquery/1.5/jquery-1.5.min.js"/>"></script>
    <script type="text/javascript" src="<rs:resourceURL value="/rs/jqueryui/1.8/jquery-ui-1.8.min.js"/>"></script>
    <script type="text/javascript" src="<rs:resourceURL value="/rs/fluid/1.4-bea0041/js/fluid-all-1.4-bea0041.min.js"/>"></script>
</c:if>
<script type="text/javascript" src="<c:url value="/scripts/CalendarView.min.js"/>"></script>

<script type="text/javascript"><rs:compressJs>
    var ${n} = ${n} || {};
    <c:choose>
        <c:when test="${!usePortalJsLibs}">
            ${n}.jQuery = jQuery.noConflict(true);
            ${n}.fluid = fluid;
            fluid = null; 
            fluid_1_4 = null;
        </c:when>
        <c:otherwise>
            ${n}.jQuery = ${portalJsNamespace ? portalJsNamespace + '.' : ''}jQuery;
            ${n}.fluid = ${portalJsNamespace ? portalJsNamespace + '.' : ''}fluid;
        </c:otherwise>
    </c:choose>
    if (!cal.initialized) cal.init(${n}.jQuery, ${n}.fluid);
    ${n}.cal = cal;
    ${n}.jQuery(function() {
        var $ = ${n}.jQuery;
        var cal = ${n}.cal;

        // The 'days' variable is used in functions beyond the CalendarView
        var days = ${model.days};
        
        var options = {
            eventsUrl: '<portlet:resourceURL/>', 
            startDate: '<fmt:formatDate value="${model.startDate}" type="date" pattern="MM/dd/yyyy" timeZone="${ model.timezone }"/>', 
            days: days,
            messages: {
                allDay: '<spring:message code="event.allday"/>'
            },
            eventListView: {
                type: "cal.EventListView",
                options: {
                    showEndTime: false
                }
            }
        };
        var calView = cal.CalendarView("#${n}container", options);
        
        var date = new Date();
        date.setFullYear(<fmt:formatDate value="${model.startDate}" pattern="yyyy" timeZone="${model.timezone}"/>, Number(<fmt:formatDate value="${model.startDate}" pattern="M" timeZone="${model.timezone}"/>)-1, <fmt:formatDate value="${model.startDate}" pattern="d" timeZone="${model.timezone}"/>);
        $('#${n}inlineCalendar').datepicker(
            {
                inline: true,
                changeMonth: false,
                changeYear: false,
                defaultDate: date,
                onSelect: function(date) {
                    calView.updateEventList(date, days);
                } 
            }
        );

    });
</rs:compressJs></script>

<div id="${n}container" class="portlet ptl-calendar view-mobile">
	<div data-role="content" class="portlet-content">

	    <!-- Mini-Calendar (jQuery UI) -->
	    <div id="${n}inlineCalendar" class="upcal-inline-calendar upcal-hide-on-event"></div>
	    
	    <!-- Calendar Events List -->
	    <div class="upcal-loading-message portlet-msg-info portlet-msg info">
            <p><spring:message code="eventlist.loading"/></p>
        </div>
	    <div class="upcal-events">
	        <div class="upcal-events upcal-event-list upcal-hide-on-event" style="display:none">
	            <div class="portlet-msg-error upcal-errors">
	                <div class="upcal-error"></div>
	            </div>
                <div class="portlet-msg-info upcal-noevents" style="display:none">
                    <p>No events</p>
                </div>
	            <div class="day">
	                <h2 class="dayName">Today</h2>
	                    <div class="upcal-event">
	                        <!--div class="upcal-event-cal">
	                            <span></span>
	                        </div-->
	                        <div class="upcal-event-time">All Day</div>
	                        <a class="upcal-event-link" href="javascript:;">
		                        <h3 class="upcal-event-title">
		                            Event Summary
		                        </h3>
	                        </a>
	                    </div>
	            </div>
	        </div>
	        
	        <div class="upcal-event-details upcal-hide-on-calendar">
	
	            <div class="upcal-event-detail">
	                <!-- Event title -->
	                <h2 class="upcal-event-detail-summary">Event Summary</h2>
	          
	                <!-- Calendar event is from -->
	                <div class="upcal-event-detail-cal">
	                    <span> <!-- Calendar name to go here. --> </span>
	                </div>
	          
	                <!-- Event time -->
	                <div class="event-detail-date">
	                    <h3><spring:message code="event.date"/>:</h3>
	                    <p>
	                        <span class="upcal-event-detail-day">Today</span>
	                        <span class="upcal-event-detail-starttime">2:00 PM - 3:00 PM</span>
	                    </p>
	                </div>
	
	                <div class="upcal-event-detail-loc-div">
	                    <h3><spring:message code="event.location"/>:</h3>
	                    <p class="upcal-event-detail-loc"></p>
	                </div>          
	          
	                <div class="upcal-event-detail-desc-div">
	                    <h3><spring:message code="event.description"/>:</h3>
	                    <p class="upcal-event-detail-desc">Event description</p>
	                </div>
	
	                <div class="upcal-event-detail-link-div">
	                    <h3><spring:message code="event.link"/>:</h3>
	                    <p>
	                        <a class="upcal-event-detail-link" href="http://www.event.com" target="_blank">http://www.event.com</a>
	                    </p>
	                </div>
	            </div>
	            
	        </div>
	    </div>

        <div class="utilities upcal-view-links upcal-hide-on-calendar" style="display:none">
            <a id="${n}returnToCalendarLink" class="upcal-view-return" href="javascript:;" 
                    title="<spring:message code="return.to.calendar.link.title"/>" data-role="button">
                <spring:message code="return.to.calendar.link.text"/>
            </a>
        </div>

        <c:if test="${ !model.disablePreferences }">
            <div class="utilities upcal-view-links upcal-hide-on-event">
                <portlet:renderURL var="preferencesUrl" portletMode="edit"><portlet:param name="action" value="editPreferences"/></portlet:renderURL>
                <a data-role="button" href="${ preferencesUrl }" title="<spring:message code="preferences.link.title"/>">
                    Preferences
                </a>
            </div>
        </c:if>
        
  
    </div>
</div>
{'fraction_non_alphanumeric': 0.1568473422361875, 'fraction_numerical': 0.006284367635506678, 'mean_word_length': 1.73047363717605, 'pattern_counts': {'":': 0, '<': 283, '<?xml version=': 0, '>': 283, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, 'xml': 0}, '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': '4223959', 'n_tokens_mistral': 4540, 'n_tokens_neox': 4195, 'n_words': 849}