<commit_before><% provide(:title, "Security Vulnerabilities Reported") %>

<h1>Security Vulnerabilities Reported</h1>

<p>Working in cyber security, I have an interest in web security. Here is a list of security vulnerabilities I have reported.</p>

<% @vulnerabilities.each do |vulnerability| %>
	<h3>
		<span class="label label-<%= vulnerability.fixed_label %>"><%= vulnerability.fixed_label_text %></span>
		<%= link_to vulnerability, vulnerability %>
	</h3>
	<%= vulnerability.summary.html_safe %>
<% end %>

<p><%= link_to 'New', new_security_vulnerability_path, class: "btn btn-primary" if current_user and current_user.admin %></p><commit_msg>add stats to vulnerabilities<commit_after><% provide(:title, "Security Vulnerabilities Reported") %>

<h1>Security Vulnerabilities Reported</h1>

<p>Working in cyber security, I have an interest in web security. Here is a list of security vulnerabilities I have reported.</p>

<section class="row">

	<article class="col-md-10 col-sm-9">
		<% @vulnerabilities.each do |vulnerability| %>
			<h3>
				<span class="label label-<%= vulnerability.fixed_label %>"><%= vulnerability.fixed_label_text %></span>
				<%= link_to vulnerability, vulnerability %>
			</h3>
			<%= vulnerability.summary.html_safe %>
		<% end %>
	</article>

	<article class="col-md-2 col-sm-3">
		<div class="well text-center">
			<p>Reported</p>
			<p style="font-size:300%"><%= icon("bullhorn") %> <%= number_with_delimiter SecurityVulnerability.count %></p>
		</div>
		<div class="well text-center">
			<p>Fixed</p>
			<p style="font-size:300%"><%= icon("thumbs-up") %> <%= number_with_delimiter SecurityVulnerability.where(fixed: true).count %></p>
		</div>
	</article>
</section>

<p><%= link_to 'New', new_security_vulnerability_path, class: "btn btn-primary" if current_user and current_user.admin %></p>
{'fraction_non_alphanumeric': 0.16885245901639345, 'fraction_numerical': 0.010382513661202186, 'mean_word_length': 5.292096219931271, 'pattern_counts': {'":': 0, '<': 61, '<?xml version=': 0, '>': 61, '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': '6264699', 'n_tokens_mistral': 686, 'n_tokens_neox': 596, 'n_words': 150}