<commit_before><div class="forum-controls">
	<div class="hidden-sm-down">
		@if (auth()->check())
			<p><a href="{{ route('discussions.create') }}" class="btn btn-primary btn-lg btn-block">Start a Discussion</a></p>
		@endif

		<h6>Choose a Filter</h6>

		<div class="list-group">
			<a href="{{ route('home') }}" class="list-group-item">@icon('list') All Discussions</a>
			
			@if (auth()->check())
				<a href="#" class="list-group-item disabled">@icon('new') Unread Discussions</a>
				<a href="{{ route('home') }}?by={{ $_user->username }}" class="list-group-item">@icon('user') My Discussions</a>
				<a href="#" class="list-group-item disabled">@icon('heart') My Favorites</a>
			@endif

			<a href="{{ route('home') }}?trending=1" class="list-group-item">@icon('flash') Popular This Week</a>
			<a href="{{ route('home') }}?popular=1" class="list-group-item">@icon('rocket') Popular All Time</a>
			<a href="{{ route('home') }}?answered=1" class="list-group-item">@icon('check') Answered Questions</a>
		</div>

		<h6>Or Pick a Topic</h6>

		<div class="list-group">
			<a href="{{ route('home') }}" class="list-group-item justify-content-between">
				All
				<span class="badge badge-pill" style="background-color:#333">&nbsp;</span>
			</a>

			@foreach ($topics as $topic)
				<a href="{{ route('topics.discussions', [$topic]) }}" class="list-group-item justify-content-between">
					{{ $topic->name }}
					<span class="badge badge-pill" style="background-color:{{ $topic->color }}">&nbsp;</span>
				</a>

				@if ($topic->children->count() > 0)
					@foreach ($topic->children as $child)
						<a href="{{ route('topics.discussions', [$child]) }}" class="list-group-item justify-content-between">
							<div>
								{{ $child->name }}
								<br><em class="text-muted">{{ $child->parent->name }}</em>
							</div>
							<span class="badge badge-pill" style="background-color:{{ $child->color }}">&nbsp;</span>
						</a>
					@endforeach
				@endif
			@endforeach
		</div>
	</div>

	<div class="hidden-md-up">
		@if (auth()->check())
			<div class="row">
				<div class="col">
					<p><a href="{{ route('discussions.create') }}" class="btn btn-primary btn-lg btn-block">
						<span class="hidden-sm-up">@icon('plus')</span>
						<span class="hidden-xs-down">Start Discussion</span>
					</a></p>
				</div>
				<div class="col">
					<p><a href="#" data-toggle="modal" data-target="#discussionFiltersMobile" class="btn btn-outline-secondary btn-lg btn-block">
						<span class="hidden-sm-up">@icon('funnel')</span>
						<span class="hidden-xs-down">Filter</span>
					</a></p>
				</div>
			</div>
		@endif
	</div>
</div>

<div class="modal fade" id="discussionFiltersMobile">
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="modal-header">
				<h4 class="modal-title">Filter Discussions</h4>
				<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
			</div>
			<div class="modal-body forum-controls">
				<h6>Choose a Filter</h6>

				<div class="list-group">
					<a href="{{ route('home') }}" class="list-group-item">@icon('list') All Discussions</a>
					<commit_msg>Some minor updates to forum controls<commit_after><div class="forum-controls">
	<div class="hidden-sm-down">
		@if (auth()->check())
			<p><a href="{{ route('discussions.create') }}" class="btn btn-primary btn-lg btn-block">Start a Discussion</a></p>
		@endif

		<h6>Choose a Filter</h6>

		<div class="list-group">
			<a href="{{ route('home') }}" class="list-group-item">@icon('list') All Discussions</a>
			
			@if (auth()->check())
				<a href="#" class="list-group-item disabled">@icon('new') Unread Discussions</a>
				<a href="{{ route('home') }}?by={{ $_user->username }}" class="list-group-item">@icon('user') My Discussions</a>
				<a href="#" class="list-group-item disabled">@icon('heart') My Favorites</a>
				<a href="#" class="list-group-item disabled">@icon('star') Following</a>
			@endif

			<a href="{{ route('home') }}?trending=1" class="list-group-item">@icon('flash') Popular This Week</a>
			<a href="{{ route('home') }}?popular=1" class="list-group-item">@icon('rocket') Popular All Time</a>
			<a href="{{ route('home') }}?answered=1" class="list-group-item">@icon('check') Answered</a>
		</div>

		<h6>Or Pick a Topic</h6>

		<div class="list-group">
			<a href="{{ route('home') }}" class="list-group-item justify-content-between">
				All
				<span class="badge badge-pill" style="background-color:#333">&nbsp;</span>
			</a>

			@foreach ($topics as $topic)
				<a href="{{ route('topics.discussions', [$topic]) }}" class="list-group-item justify-content-between">
					{{ $topic->name }}
					<span class="badge badge-pill" style="background-color:{{ $topic->color }}">&nbsp;</span>
				</a>

				@if ($topic->children->count() > 0)
					@foreach ($topic->children as $child)
						<a href="{{ route('topics.discussions', [$child]) }}" class="list-group-item justify-content-between">
							<div>
								{{ $child->name }}
								<br><em class="text-muted">{{ $child->parent->name }}</em>
							</div>
							<span class="badge badge-pill" style="background-color:{{ $child->color }}">&nbsp;</span>
						</a>
					@endforeach
				@endif
			@endforeach
		</div>
	</div>

	<div class="hidden-md-up">
		@if (auth()->check())
			<div class="row">
				<div class="col">
					<p><a href="{{ route('discussions.create') }}" class="btn btn-primary btn-lg btn-block">
						<span class="hidden-sm-up">@icon('new-message')</span>
						<span class="hidden-xs-down">Start Discussion</span>
					</a></p>
				</div>
				<div class="col">
					<p><a href="#" data-toggle="modal" data-target="#discussionFiltersMobile" class="btn btn-outline-secondary btn-lg btn-block">
						<span class="hidden-sm-up">@icon('funnel')</span>
						<span class="hidden-xs-down">Filter</span>
					</a></p>
				</div>
			</div>
		@endif
	</div>
</div>

<div class="modal fade" id="discussionFiltersMobile">
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="modal-header">
				<h4 class="modal-title">Filter Discussions</h4>
				<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
			</div>
			<div class="modal-body forum-controls">
				<h6>Choose a Filter</h6>

				<div class="list-group">
					<a href="{{ route('home') }}" class="list-group-item">@icon('list') All Discussions</a>
					
{'fraction_non_alphanumeric': 0.23552894211576847, 'fraction_numerical': 0.004606172270842929, 'mean_word_length': 4.010769230769231, 'pattern_counts': {'":': 0, '<': 185, '<?xml version=': 0, '>': 213, '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': '1555942', 'n_tokens_mistral': 2693, 'n_tokens_neox': 2228, 'n_words': 443}