<commit_before><%@ Control language="c#" Codebehind="forum.ascx.cs" AutoEventWireup="false" Inherits="yaf.pages.forum" %>
<%@ Register TagPrefix="yaf" Namespace="yaf.controls" Assembly="yaf" %>
<%@ Register TagPrefix="yaf" TagName="ForumList" Src="../controls/ForumList.ascx" %>

<yaf:PageLinks runat="server" id="PageLinks"/>

<p id=Welcome runat=server>
	<table cellSpacing=0 cellPadding=0>
	<tr>
		<td>
			<asp:label id=TimeNow runat="server"/><br/>
			<asp:label id=TimeLastVisit runat="server"/><br/>
			<asp:hyperlink runat="server" id="UnreadMsgs" visible="false"/>
		</td>
	</tr>
	</table>
</p>

<asp:repeater id=CategoryList runat="server">
<HeaderTemplate>
	<table class="content" cellspacing="1" cellpadding="0" width="100%">
	<tr>
		<td class=header1 width=1%>&nbsp;</td>
		<td class=header1 align=left><%# GetText("FORUM") %></td>
		<td class=header1 align=center width=7%><%# GetText("topics") %></td>
		<td class=header1 align=center width=7%><%# GetText("posts") %></td>
		<td class=header1 align=center width=25%><%# GetText("lastpost") %></td>
	</tr>
</HeaderTemplate>
<ItemTemplate>
	<tr>
		<td class=header2 colspan=5><a href='<%# yaf.Forum.GetLink(yaf.Pages.forum,"c={0}",DataBinder.Eval(Container.DataItem, "CategoryID")) %>'><%# DataBinder.Eval(Container.DataItem, "Name") %></a></td>
	</tr>
	<yaf:forumlist runat="server" datasource='<%# ((System.Data.DataRowView)Container.DataItem).Row.GetChildRows("FK_Forum_Category") %>'/>
</ItemTemplate>
<FooterTemplate>
	</table>
</FooterTemplate>
</asp:repeater>

<br>

<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>
	<td width="65%" valign="top">
		<table class=content cellspacing=1 cellpadding=0 width=100%>
		<tr>
			<td class=header1 colspan=2><%= GetText("INFORMATION") %></td>
		</tr>
		<tr>
			<td class=header2 colspan=2><%= GetText("ACTIVE_USERS") %></td>
		</tr>
		<tr>
			<td class=post width=1%><img src='<%# GetThemeContents("ICONS","FORUM_USERS") %>'></td>
			<td class=post>
				<asp:label runat="server" id="activeinfo"/><br/>
				<asp:repeater runat="server" id="ActiveList">
					<ItemTemplate><a href='<%#yaf.Forum.GetLink(yaf.Pages.profile,"u={0}",DataBinder.Eval(Container.DataItem, "UserID"))%>'><%# Server.HtmlEncode(Convert.ToString(DataBinder.Eval(Container.DataItem, "Name"))) %></a></ItemTemplate>
					<SeparatorTemplate>, </SeparatorTemplate>
				</asp:repeater>
			</td>
		</tr>
		<tr>
				<td class=header2 colspan=2><%= GetText("STATS") %></td>
		</tr>
		<tr>
			<td class=post width=1%><img src='<%# GetThemeContents("ICONS","FORUM_STATS") %>'></td>
			<td class=post><asp:label id=Stats runat="server">Label</asp:label></td>
		</tr>
		</table>
	</td>
	<td width="10">&nbsp;</td>
	<td width="35%" valign="top" class="post" height="100%">		
		<table class="content" border="0" cellspacing="1" cellpadding="0" width="100%" height="100%">
		<tr>
			<td class="header1" colspan="2"><%= GetText("ACTIVE_DISCUSSIONS") %></td>
		</tr>
		<tr>
			<td class="header2" colspan="2"><%= GetText("LATEST_POSTS") %></td>
		</tr>
		<tr>
			<td class="post" valign="top">
				<asp:Repeater runat="server" id="LatestPosts">
					<ItemTemplate>&nbsp;<a href='<%#yaf.Forum.GetLink(yaf.Pages.posts,"m={0}#{0}",DataBinder.Eval(Container.DataItem, "LastMessageID"))%>'><%# Convert.ToString(DataBinder.Eval(Container.DataItem, "Topic")) %></a> <a href="<%#yaf.Forum.GetLink(yaf.Pages.posts,"m={0}#{0}",DataBinder.Eval(Container.DataItem, "LastMessageID"))%>"><img src="<%# GetThemeContents("ICONS","ICON_LATEST") %>" border="0"></a><br/></ItemTemplate>
				</asp:Repeater>
			</td>
		</tr>
		</table>
	</td>	
</tr>
</table>

<table cellspacing=1 cellpadding=1 width="100%">
	<tr>
		<td>
			<img align=absMiddle src='<% =GetThemeContents("ICONS","FORUM_NEW") %>'> <%# GetText("ICONLEGEND","New_Posts") %>
			<img align=absMiddle src='<% =GetThemeContents("ICONS","FORUM") %>'> <%# GetText("ICONLEGEND","No_New_Posts") %>
			<img align=absMiddle src='<% =GetThemeContents("ICONS","FORUM_LOCKED") %>'> <%# GetText("ICONLEGEND","Forum_Locked") %>
		</td>
		<td align="right"><asp:linkbutton runat="server" id="MarkAll"/></td>
	</tr>
</table>

<yaf:SmartScroller id="SmartScroller1" runat = "server" />
<commit_msg>Added profanity filter call to top 10 topics.<commit_after><%@ Control language="c#" Codebehind="forum.ascx.cs" AutoEventWireup="false" Inherits="yaf.pages.forum" %>
<%@ Register TagPrefix="yaf" Namespace="yaf.controls" Assembly="yaf" %>
<%@ Register TagPrefix="yaf" TagName="ForumList" Src="../controls/ForumList.ascx" %>

<yaf:PageLinks runat="server" id="PageLinks"/>

<p id=Welcome runat=server>
	<table cellSpacing=0 cellPadding=0>
	<tr>
		<td>
			<asp:label id=TimeNow runat="server"/><br/>
			<asp:label id=TimeLastVisit runat="server"/><br/>
			<asp:hyperlink runat="server" id="UnreadMsgs" visible="false"/>
		</td>
	</tr>
	</table>
</p>

<asp:repeater id=CategoryList runat="server">
<HeaderTemplate>
	<table class="content" cellspacing="1" cellpadding="0" width="100%">
	<tr>
		<td class=header1 width=1%>&nbsp;</td>
		<td class=header1 align=left><%# GetText("FORUM") %></td>
		<td class=header1 align=center width=7%><%# GetText("topics") %></td>
		<td class=header1 align=center width=7%><%# GetText("posts") %></td>
		<td class=header1 align=center width=25%><%# GetText("lastpost") %></td>
	</tr>
</HeaderTemplate>
<ItemTemplate>
	<tr>
		<td class=header2 colspan=5><a href='<%# yaf.Forum.GetLink(yaf.Pages.forum,"c={0}",DataBinder.Eval(Container.DataItem, "CategoryID")) %>'><%# DataBinder.Eval(Container.DataItem, "Name") %></a></td>
	</tr>
	<yaf:forumlist runat="server" datasource='<%# ((System.Data.DataRowView)Container.DataItem).Row.GetChildRows("FK_Forum_Category") %>'/>
</ItemTemplate>
<FooterTemplate>
	</table>
</FooterTemplate>
</asp:repeater>

<br>

<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>
	<td width="65%" valign="top">
		<table class=content cellspacing=1 cellpadding=0 width=100%>
		<tr>
			<td class=header1 colspan=2><%= GetText("INFORMATION") %></td>
		</tr>
		<tr>
			<td class=header2 colspan=2><%= GetText("ACTIVE_USERS") %></td>
		</tr>
		<tr>
			<td class=post width=1%><img src='<%# GetThemeContents("ICONS","FORUM_USERS") %>'></td>
			<td class=post>
				<asp:label runat="server" id="activeinfo"/><br/>
				<asp:repeater runat="server" id="ActiveList">
					<ItemTemplate><a href='<%#yaf.Forum.GetLink(yaf.Pages.profile,"u={0}",DataBinder.Eval(Container.DataItem, "UserID"))%>'><%# Server.HtmlEncode(Convert.ToString(DataBinder.Eval(Container.DataItem, "Name"))) %></a></ItemTemplate>
					<SeparatorTemplate>, </SeparatorTemplate>
				</asp:repeater>
			</td>
		</tr>
		<tr>
				<td class=header2 colspan=2><%= GetText("STATS") %></td>
		</tr>
		<tr>
			<td class=post width=1%><img src='<%# GetThemeContents("ICONS","FORUM_STATS") %>'></td>
			<td class=post><asp:label id=Stats runat="server">Label</asp:label></td>
		</tr>
		</table>
	</td>
	<td width="10">&nbsp;</td>
	<td width="35%" valign="top" class="post" height="100%">		
		<table class="content" border="0" cellspacing="1" cellpadding="0" width="100%" height="100%">
		<tr>
			<td class="header1" colspan="2"><%= GetText("ACTIVE_DISCUSSIONS") %></td>
		</tr>
		<tr>
			<td class="header2" colspan="2"><%= GetText("LATEST_POSTS") %></td>
		</tr>
		<tr>
			<td class="post" valign="top">
				<asp:Repeater runat="server" id="LatestPosts">
					<ItemTemplate>&nbsp;<a href='<%#yaf.Forum.GetLink(yaf.Pages.posts,"m={0}#{0}",DataBinder.Eval(Container.DataItem, "LastMessageID"))%>'><%# yaf.Utils.BadWordReplace(Convert.ToString(DataBinder.Eval(Container.DataItem, "Topic"))) %></a> <a href="<%#yaf.Forum.GetLink(yaf.Pages.posts,"m={0}#{0}",DataBinder.Eval(Container.DataItem, "LastMessageID"))%>"><img src="<%# GetThemeContents("ICONS","ICON_LATEST") %>" border="0"></a><br/></ItemTemplate>
				</asp:Repeater>
			</td>
		</tr>
		</table>
	</td>	
</tr>
</table>

<table cellspacing=1 cellpadding=1 width="100%">
	<tr>
		<td>
			<img align=absMiddle src='<% =GetThemeContents("ICONS","FORUM_NEW") %>'> <%# GetText("ICONLEGEND","New_Posts") %>
			<img align=absMiddle src='<% =GetThemeContents("ICONS","FORUM") %>'> <%# GetText("ICONLEGEND","No_New_Posts") %>
			<img align=absMiddle src='<% =GetThemeContents("ICONS","FORUM_LOCKED") %>'> <%# GetText("ICONLEGEND","Forum_Locked") %>
		</td>
		<td align="right"><asp:linkbutton runat="server" id="MarkAll"/></td>
	</tr>
</table>

<yaf:SmartScroller id="SmartScroller1" runat = "server" />

{'fraction_non_alphanumeric': 0.23943828180316262, 'fraction_numerical': 0.01746518763275903, 'mean_word_length': 6.299741602067184, 'pattern_counts': {'":': 0, '<': 323, '<?xml version=': 0, '>': 323, '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': '5251727', 'n_tokens_mistral': 3640, 'n_tokens_neox': 3280, 'n_words': 527}