<commit_before><div id="sidebar" class="navbar-inner span3">
	<ul class="nav nav-pills nav-stacked">
		<li class="nav-header" style="font-size:1.25em;margin-left:-10px;">Messages</li>
  		<li class="<%= get_nav_link_class('messages', MessagesController::SESSION_FILTER_TYPE_VAR, MessagesController::MESSAGE_TYPE_NEW) %>">
  			<%= link_to "New Messages (#{current_user.messages.where('opened_at IS NULL').count})", user_messages_path(current_user, :filter => MessagesController::MESSAGE_TYPE_NEW) %>
  		</li>
  		<li class="<%= get_nav_link_class('messages', MessagesController::SESSION_FILTER_TYPE_VAR, MessagesController::MESSAGE_TYPE_OLD) %>">
  			<%= link_to "Inbox", user_messages_path(current_user, :filter => MessagesController::MESSAGE_TYPE_OLD) %>
  		</li>
  		<li class="<%= get_nav_link_class('messages', MessagesController::SESSION_FILTER_TYPE_VAR, MessagesController::MESSAGE_TYPE_SENT) %>">
  			<%= link_to "Sent", user_messages_path(current_user, :filter => MessagesController::MESSAGE_TYPE_SENT) %>
  		</li>
	</ul>
</div>
<commit_msg>Fix incorrect number of new messages when user sends a message [fixes #67582450]<commit_after><div id="sidebar" class="navbar-inner span3">
	<ul class="nav nav-pills nav-stacked">
		<li class="nav-header" style="font-size:1.25em;margin-left:-10px;">Messages</li>
  		<li class="<%= get_nav_link_class('messages', MessagesController::SESSION_FILTER_TYPE_VAR, MessagesController::MESSAGE_TYPE_NEW) %>">
  			<%= link_to "New Messages (#{current_user.messages.where('to_user_id = ? AND opened_at IS NULL', current_user.id).count})", user_messages_path(current_user, :filter => MessagesController::MESSAGE_TYPE_NEW) %>
  		</li>
  		<li class="<%= get_nav_link_class('messages', MessagesController::SESSION_FILTER_TYPE_VAR, MessagesController::MESSAGE_TYPE_OLD) %>">
  			<%= link_to "Inbox", user_messages_path(current_user, :filter => MessagesController::MESSAGE_TYPE_OLD) %>
  		</li>
  		<li class="<%= get_nav_link_class('messages', MessagesController::SESSION_FILTER_TYPE_VAR, MessagesController::MESSAGE_TYPE_SENT) %>">
  			<%= link_to "Sent", user_messages_path(current_user, :filter => MessagesController::MESSAGE_TYPE_SENT) %>
  		</li>
	</ul>
</div>

{'fraction_non_alphanumeric': 0.16041572525982828, 'fraction_numerical': 0.00903750564844103, 'mean_word_length': 7.418250950570342, 'pattern_counts': {'":': 0, '<': 39, '<?xml version=': 0, '>': 45, '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': '2746947', 'n_tokens_mistral': 804, 'n_tokens_neox': 758, 'n_words': 115}