<commit_before>    <jsp:directive.include file="/WEB-INF/jsp/include.jsp"/>
    <fmt:setTimeZone value="${ model.timezone }"/>
    <fmt:formatDate var="today" value="${model.today}" pattern="EEEE MMMM d"/>
    <fmt:formatDate var="tomorrow" value="${model.tomorrow}" pattern="EEEE MMMM d"/>
    
    <link rel="stylesheet" href="<c:url value="/css/calendar.css"/>" type="text/css"></link>
    <script type="text/javascript" src="<c:url value="/scripts/ui.datepicker.js"/>"></script>
    <c:if test="${model.includeJQuery}">
        <script type="text/javascript" src="<c:url value="/scripts/jquery-1.2.3.min.js"/>"></script>
    </c:if>
    <script type="text/javascript">
	     $(document).ready(function(){
		    $('#<portlet:namespace/>inlineCalendar').datepicker(
		    	{ 
		    	    inline: true,
		    		changeMonth: false,
		    		changeYear: false,
				    onSelect: function(date) {
				        $.get(
				            '<c:url value="/listEvents"/>', 
				            { startDate: date }, 
				            function(xml){ $("#events").html(xml) }
				        );
				    } 
				}
			);
		}); 
    </script>

    <table width="100%">
        <tr>
        <td>
            <div id="<portlet:namespace/>inlineCalendar" class="jqueryui"></div>
        </td>
        <td>
        
		<div style="padding-bottom: 3px;">
			Calendars:
			<div style="padding-left: 7px; padding-right: 7px;">
				<c:forEach items="${ model.calendars }" var="calendar">
					<span class="color-${ model.colors[calendar.id] }">
						<c:choose>
							<c:when test="${ empty model.hiddenCalendars[calendar.id] }">
								<portlet:renderURL var="url"><portlet:param name="hideCalendar" value="${ calendar.id }"/></portlet:renderURL>
								<a href="${ url }">
									<img src="<c:url value="/images/select-active.gif"/>" style="vertical-align: middle; margin-left: 7px;"/>
								</a> 
							</c:when>
							<c:otherwise>
								<portlet:renderURL var="url"><portlet:param name="showCalendar" value="${ calendar.id }"/></portlet:renderURL>
								<a href="${ url }">
									<img src="<c:url value="/images/select-inactive.gif"/>" style="vertical-align: middle; margin-left: 7px;"/>
								</a>
							</c:otherwise>
						</c:choose>
						${ calendar.calendarDefinition.name }
	 				</span>
				</c:forEach>
			</div>
        </div>
		<div style="padding-bottom: 3px;">
        	Range:
			<div style="padding-left: 7px; padding-right: 7px;">
				<c:choose>
					<c:when test="${ model.days == 1 }">today</c:when>
					<c:otherwise>
			        	<a href="<portlet:renderURL><portlet:param name="timePeriod" value="1"/></portlet:renderURL>">today</a>
					</c:otherwise>
				</c:choose> |
				<c:choose>
					<c:when test="${ model.days == 2 }">2 days</c:when>
					<c:otherwise>
	        	<a href="<portlet:renderURL><portlet:param name="timePeriod" value="2"/></portlet:renderURL>">2 days</a>
					</c:otherwise>
				</c:choose> |
				<c:choose>
					<c:when test="${ model.days == 7 }">1 week</c:when>
					<c:otherwise>
	        	<a href="<portlet:renderURL><portlet:param name="timePeriod" value="7"/></portlet:renderURL>">1 week</a>
					</c:otherwise>
				</c:choose> |
				<c:choose>
					<c:when test="${ model.days == 14 }">2 weeks</c:when>
					<c:otherwise>
	        	<a href="<portlet:renderURL><portlet:param name="timePeriod" value="14"/></portlet:renderURL>">2 weeks</a>
					</c:otherwise>
				</c:choose>
			</div>
        </div>
        </td>
        </tr>
    </table>
    
    <div id="events">
        
	<c:if test="${ not empty model.errors }">
		<p class="portlet-msg-error">
			<c:forEach items="${ model.errors }" var="error">${ error }<br/></c:forEach>
		</p>
	</c:if>
	
	<c:if test="${ empty model.events }">
    	<p>No events.</p>
	</c:if>
	
	<div id="calEvents" style="padding-bottom: 10px;">
	    <table id="calendarEventsListTable" class="yaleEvents"
	        style="align-vertical: top; width: 100%">
	        <c:forEach items="${model.events}" var="event" varStatus="status">
	           <fmt:formatDate var="startDate" value="${event.startDate.date}"
	               pattern="EEEE MMMM d"/>
	           <fmt:formatDate var="endDate" value="${event.endDate.date}"<commit_msg>CAP-7 Adding "Loading . . . " placeholder while AJAX calendar loads.  Also corrected some javascript namespacing issues.<commit_after>    <jsp:directive.include file="/WEB-INF/jsp/include.jsp"/>
    <fmt:setTimeZone value="${ model.timezone }"/>
    <fmt:formatDate var="today" value="${model.today}" pattern="EEEE MMMM d"/>
    <fmt:formatDate var="tomorrow" value="${model.tomorrow}" pattern="EEEE MMMM d"/>
    
    <link rel="stylesheet" href="<c:url value="/css/calendar.css"/>" type="text/css"></link>
    <script type="text/javascript" src="<c:url value="/scripts/ui.datepicker.js"/>"></script>
    <c:if test="${model.includeJQuery}">
        <script type="text/javascript" src="<c:url value="/scripts/jquery-1.2.3.min.js"/>"></script>
    </c:if>
    <script type="text/javascript">
	     $(document).ready(function(){
		    $('#<portlet:namespace/>inlineCalendar').datepicker(
		    	{ 
		    	    inline: true,
		    		changeMonth: false,
		    		changeYear: false,
				    onSelect: function(date) {
				        $("#<portlet:namespace/>events").html("<br/><p>Loading . . . </p>");
				        $.get(
				            '<c:url value="/listEvents"/>', 
				            { startDate: date }, 
				            function(xml){ $("#<portlet:namespace/>events").html(xml) }
				        );
				    } 
				}
			);
		}); 
    </script>

    <table width="100%">
        <tr>
        <td>
            <div id="<portlet:namespace/>inlineCalendar" class="jqueryui"></div>
        </td>
        <td style="padding: 5px;">
        
		<div style="padding-bottom: 3px;">
			Calendars:
			<div style="padding-left: 7px; padding-right: 7px;">
				<c:forEach items="${ model.calendars }" var="calendar">
					<span class="color-${ model.colors[calendar.id] }">
						<c:choose>
							<c:when test="${ empty model.hiddenCalendars[calendar.id] }">
								<portlet:renderURL var="url"><portlet:param name="hideCalendar" value="${ calendar.id }"/></portlet:renderURL>
								<a href="${ url }">
									<img src="<c:url value="/images/select-active.gif"/>" style="vertical-align: middle; margin-left: 7px;"/>
								</a> 
							</c:when>
							<c:otherwise>
								<portlet:renderURL var="url"><portlet:param name="showCalendar" value="${ calendar.id }"/></portlet:renderURL>
								<a href="${ url }">
									<img src="<c:url value="/images/select-inactive.gif"/>" style="vertical-align: middle; margin-left: 7px;"/>
								</a>
							</c:otherwise>
						</c:choose>
						${ calendar.calendarDefinition.name }
	 				</span>
				</c:forEach>
			</div>
        </div>
		<div style="padding-bottom: 3px;">
        	Range:
			<div style="padding-left: 7px; padding-right: 7px;">
				<c:choose>
					<c:when test="${ model.days == 1 }">today</c:when>
					<c:otherwise>
			        	<a href="<portlet:renderURL><portlet:param name="timePeriod" value="1"/></portlet:renderURL>">today</a>
					</c:otherwise>
				</c:choose> |
				<c:choose>
					<c:when test="${ model.days == 2 }">2 days</c:when>
					<c:otherwise>
	        	<a href="<portlet:renderURL><portlet:param name="timePeriod" value="2"/></portlet:renderURL>">2 days</a>
					</c:otherwise>
				</c:choose> |
				<c:choose>
					<c:when test="${ model.days == 7 }">1 week</c:when>
					<c:otherwise>
	        	<a href="<portlet:renderURL><portlet:param name="timePeriod" value="7"/></portlet:renderURL>">1 week</a>
					</c:otherwise>
				</c:choose> |
				<c:choose>
					<c:when test="${ model.days == 14 }">2 weeks</c:when>
					<c:otherwise>
	        	<a href="<portlet:renderURL><portlet:param name="timePeriod" value="14"/></portlet:renderURL>">2 weeks</a>
					</c:otherwise>
				</c:choose>
			</div>
        </div>
        </td>
        </tr>
    </table>
    
    <div id="<portlet:namespace/>events">
        
	<c:if test="${ not empty model.errors }">
		<p class="portlet-msg-error">
			<c:forEach items="${ model.errors }" var="error">${ error }<br/></c:forEach>
		</p>
	</c:if>
	
	<c:if test="${ empty model.events }">
    	<p>No events.</p>
	</c:if>
	
	<div id="calEvents" style="padding-bottom: 10px;">
	    <table id="calendarEventsListTable" class="yaleEvents"
	        style="align-vertical: top; width: 100%">
	        <c:forEach items="${model.events}" var="event" varStatus="status">
	           <fmt:formatDate var="startDate" value="${event.startDate.date}"
	               pattern="EEEE MMMM d"/>
	           <fmt:formatDate var="endDate" value="${event.endDate.date}"
{'fraction_non_alphanumeric': 0.2091624248033318, 'fraction_numerical': 0.008329477093937991, 'mean_word_length': 2.7966622749231447, 'pattern_counts': {'":': 0, '<': 255, '<?xml version=': 0, '>': 253, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '6192470', 'n_tokens_mistral': 3526, 'n_tokens_neox': 2884, 'n_words': 510}