<commit_before><f:view>
   <sakai:view title="#{msgs['custom.chatroom']}">
     <script type="text/javascript">
	focus_path = ["controlPanel:message"];
    doubleDeep = true;
</script>
<script type="text/javascript" language="JavaScript" src="/library/js/headscripts.js"></script>
<sakai:script contextBase="/library" path="/js/jquery.js" />
<sakai:script contextBase="/sakai-chat-tool" path="/js/chatscript.js"/>
<script type="text/javascript">
	window.frameElement.className='wcwmenu';
</script>
<h:form id="topForm">
      <h:inputHidden id="chatidhidden" value="#{ChatTool.currentChatChannelId}" />


         <sakai:tool_bar rendered="#{ChatTool.canManageTool || ChatTool.siteChannelCount > 1 || ChatTool.maintainer}">
            <h:commandLink action="#{ChatTool.processActionListRooms}" rendered="#{ChatTool.canManageTool}">
               <h:outputText value="#{msgs.manage_tool}" />
            </h:commandLink>
            <h:commandLink action="#{ChatTool.processActionListRooms}" rendered="#{ChatTool.siteChannelCount > 1}">
               <h:outputText value="#{msgs.change_room}" />
            </h:commandLink>
            <h:commandLink rendered="#{ChatTool.maintainer}"
                action="#{ChatTool.processActionPermissions}">
                <h:outputText
                    value="#{msgs.permis}" />
            </h:commandLink>
         </sakai:tool_bar>
            	
         <sakai:view_title value="#{ChatTool.viewingChatRoomText}"/>
			<h:panelGrid styleClass="navPanel" columns="1" border="0" columnClasses="viewNav">
				<h:column> 
					<h:outputLabel for="viewOptions"	value="#{msgs.view}" />
					<h:selectOneMenu id="viewOptions" value="#{ChatTool.viewOptions}" 
							onchange="this.form.submit();">
						<f:selectItem itemValue="1" itemLabel="#{msgs.timeOnly}" />
						<f:selectItem itemValue="3" itemLabel="#{msgs.timeAndDate}" />
						<f:selectItem itemValue="2" itemLabel="#{msgs.dateOnly}" />
						<f:selectItem itemValue="0" itemLabel="#{msgs.neitherDateOrTime}" />
						<f:selectItem itemValue="4" itemLabel="#{msgs.uniqueid}" />
					</h:selectOneMenu> 
					<h:outputLabel for="messageOptions"	value="#{msgs['combox.viewfrom']}" />
					<h:selectOneMenu id="messageOptions"
							value="#{ChatTool.messageOptions}" 
							onchange="this.form.submit();">
					   	<f:selectItems value="#{ChatTool.messageOptionsList}" />
					</h:selectOneMenu>
					      				      
				</h:column> 
			</h:panelGrid> 
			<div id="chatListWrapper" class="chatListWrapper">
				<div  class="chatListHeadWrapper">
					<h:outputText value="#{msgs.lay_note}" rendered="#{ChatTool.canRenderAllMessages}" />
					<h:outputFormat value="#{msgs.lay_restricted_note_days}" rendered="#{ChatTool.canRenderDateMessages}" >
						<f:param value="#{ChatTool.currentChannel.chatChannel.timeParam}" />
					</h:outputFormat>
					<h:outputFormat value="#{msgs.lay_restricted_note_messages}" rendered="#{ChatTool.canRenderNumberMessages}" >
						<f:param value="#{ChatTool.currentChannel.chatChannel.numberParam}" />
					</h:outputFormat>
					<h:outputText value="#{msgs.lay_restricted_note_none}" rendered="#{ChatTool.canRenderNoMessages}" />
				</div>
				<sakai:messages />
				<div id="Monitor" class="chatListMonitor">
					<%@include file="roomMonitor.jspf" %>
				</div>
			</div>	
			<div id="chatPresenceWrapper">			
				<div class="chatListHeadWrapper">
					<h:outputText value="#{msgs.lay_user}" />
				</div>
				<iframe
					name="Presence"
					id="Presence"
					title="<h:outputText value="#{msgs.presence_panel}" />"
					width="100%"
					frameborder="0"
					marginwidth="0"
					marginheight="0"
					scrolling="no"
					align="right"
					class="wcwmenu"
					src="roomUsers?channel=<h:outputText value="#{ChatTool.currentChatChannelId}" />">
				</iframe>
			</div>
		</h:form>
		<f:subview id="controlPanel" rendered="#{ChatTool.canPost}">
		<div>
			    <h:outputLabel for="message" value="#{msgs['control.lab']}" style="clear:both;display:block;" />
                <div id="errorSubmit" class="alertMessage" style="display:none">
                    <h:outputText value="#{msgs['therewaspro']}" />
                </div>
				<h:inputTextarea id="message" value="#{ChatTool.newMessageText}" rows="3" cols="60" />
				<p class="act">
		          <h:commandButton type="button" id="submit"
		              value="#{msgs['control.post']}"
		              styleClass="active" />
		          <h:commandButton type="button" id="reset"
		              value="#{msgs['control.clear']}" />
		     	</p>
		     	</div>
			</f:subview>
			<p style="clear:both;display:block;"></p>
			
	<script type="text/javascript" language="JavaScript">
		setMainFrameHeight('<h:outputText value="#{ChatTool.framePlacementId}" />');
	</script>

<!--  We can't use the sakai:courier tag because it works from the tool placement id...  and this is now specific to presence in the room  -->
<script type="text/javascript" language="JavaScript">
updateTime = 10000;
updateUrl = "<h:outputText value="#{ChatTool.courierString}" />";
scheduleUpdate();
</script>
   </sakai:view>
</f:view><commit_msg>SAK-17775 Attempted to fix issues with chat warning messages<commit_after><f:view>
   <sakai:view title="#{msgs['custom.chatroom']}">
     <script type="text/javascript">
	focus_path = ["controlPanel:message"];
    doubleDeep = true;
</script>
<script type="text/javascript" language="JavaScript" src="/library/js/headscripts.js"></script>
<sakai:script contextBase="/library" path="/js/jquery.js" />
<sakai:script contextBase="/sakai-chat-tool" path="/js/chatscript.js"/>
<script type="text/javascript">
	window.frameElement.className='wcwmenu';
</script>
<h:form id="topForm">
      <h:inputHidden id="chatidhidden" value="#{ChatTool.currentChatChannelId}" />


         <sakai:tool_bar rendered="#{ChatTool.canManageTool || ChatTool.siteChannelCount > 1 || ChatTool.maintainer}">
            <h:commandLink action="#{ChatTool.processActionListRooms}" rendered="#{ChatTool.canManageTool}">
               <h:outputText value="#{msgs.manage_tool}" />
            </h:commandLink>
            <h:commandLink action="#{ChatTool.processActionListRooms}" rendered="#{ChatTool.siteChannelCount > 1}">
               <h:outputText value="#{msgs.change_room}" />
            </h:commandLink>
            <h:commandLink rendered="#{ChatTool.maintainer}"
                action="#{ChatTool.processActionPermissions}">
                <h:outputText
                    value="#{msgs.permis}" />
            </h:commandLink>
         </sakai:tool_bar>
            	
         <sakai:view_title value="#{ChatTool.viewingChatRoomText}"/>
			<h:panelGrid styleClass="navPanel" columns="1" border="0" columnClasses="viewNav">
				<h:column> 
					<h:outputLabel for="viewOptions"	value="#{msgs.view}" />
					<h:selectOneMenu id="viewOptions" value="#{ChatTool.viewOptions}" 
							onchange="this.form.submit();">
						<f:selectItem itemValue="1" itemLabel="#{msgs.timeOnly}" />
						<f:selectItem itemValue="3" itemLabel="#{msgs.timeAndDate}" />
						<f:selectItem itemValue="2" itemLabel="#{msgs.dateOnly}" />
						<f:selectItem itemValue="0" itemLabel="#{msgs.neitherDateOrTime}" />
						<f:selectItem itemValue="4" itemLabel="#{msgs.uniqueid}" />
					</h:selectOneMenu> 
					<h:outputLabel for="messageOptions"	value="#{msgs['combox.viewfrom']}" />
					<h:selectOneMenu id="messageOptions"
							value="#{ChatTool.messageOptions}" 
							onchange="this.form.submit();">
					   	<f:selectItems value="#{ChatTool.messageOptionsList}" />
					</h:selectOneMenu>
					      				      
				</h:column> 
			</h:panelGrid> 
			<div id="chatListWrapper" class="chatListWrapper">
				<div  class="chatListHeadWrapper">
					<h:outputText value="#{msgs.lay_note}" rendered="#{ChatTool.canRenderAllMessages}" />
					<h:outputFormat value="#{msgs.lay_restricted_note_days}" rendered="#{ChatTool.canRenderDateMessages}" >
						<f:param value="#{ChatTool.currentChannel.chatChannel.timeParam}" />
					</h:outputFormat>
					<h:outputFormat value="#{msgs.lay_restricted_note_messages}" rendered="#{ChatTool.canRenderNumberMessages}" >
						<f:param value="#{ChatTool.currentChannel.chatChannel.numberParam}" />
					</h:outputFormat>
					<h:outputText value="#{msgs.lay_restricted_note_none}" rendered="#{ChatTool.canRenderNoMessages}" />
				</div>
				<sakai:messages />
				<div id="Monitor" class="chatListMonitor">
					<%@include file="roomMonitor.jspf" %>
				</div>
			</div>	
			<div id="chatPresenceWrapper">			
				<div class="chatListHeadWrapper">
					<h:outputText value="#{msgs.lay_user}" />
				</div>
				<iframe
					name="Presence"
					id="Presence"
					title="<h:outputText value="#{msgs.presence_panel}" />"
					width="100%"
					frameborder="0"
					marginwidth="0"
					marginheight="0"
					scrolling="no"
					align="right"
					class="wcwmenu"
					src="roomUsers?channel=<h:outputText value="#{ChatTool.currentChatChannelId}" />">
				</iframe>
			</div>
		</h:form>
		<f:subview id="controlPanel" rendered="#{ChatTool.canPost}">
		<div>
            <h:panelGroup>
			    <h:outputLabel for="message" value="#{msgs['control.lab']}" style="clear:both;display:block;" />
                <div id="errorSubmit" class="alertMessage" style="display:none">
                    <h:outputText value="#{msgs['therewaspro']}" />
                </div>
				<h:inputTextarea id="message" value="#{ChatTool.newMessageText}" rows="3" cols="60" />
				<p class="act">
		          <h:commandButton type="button" id="submit"
		              value="#{msgs['control.post']}"
		              styleClass="active" />
		          <h:commandButton type="button" id="reset"
		              value="#{msgs['control.clear']}" />
		     	</p>
            </h:panelGroup>
	    </div>
		</f:subview>
	<p style="clear:both;display:block;"></p>
			
	<script type="text/javascript" language="JavaScript">
		setMainFrameHeight('<h:outputText value="#{ChatTool.framePlacementId}" />');
	</script>

<!--  We can't use the sakai:courier tag because it works from the tool placement id...  and this is now specific to presence in the room  -->
<script type="text/javascript" language="JavaScript">
updateTime = 10000;
updateUrl = "<h:outputText value="#{ChatTool.courierString}" />";
scheduleUpdate();
</script>
   </sakai:view>
</f:view>
{'fraction_non_alphanumeric': 0.17907561400116032, 'fraction_numerical': 0.004931347901759814, 'mean_word_length': 3.623603039785427, 'pattern_counts': {'":': 0, '<': 185, '<?xml version=': 0, '>': 189, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '6334453', 'n_tokens_mistral': 3830, 'n_tokens_neox': 3267, 'n_words': 471}