<commit_before>----------------------------
Basic Info
----------------------------
Time: <%= Time.zone.now %>
<% if @env && @params %>
Location: <%= raw @env['REQUEST_URI'] %>
Action: <%= @params[:action] %>
Controller: <%= @params[:controller] %>
Query: <%= raw @env['QUERY_STRING'] %>
Method: <%= @env['REQUEST_METHOD'] %>
SSL: <%= @env['SERVER_PORT'].to_i == 443 ? "true" : "false" %>
Agent: <%= raw @env['HTTP_USER_AGENT'] %>
User: <%= @user ? "#{@user.login} <#{<EMAIL>}>".html_safe : "None" %>
<% end %>

----------------------------
Backtrace
----------------------------
<%= raw @exception.class.to_s %>: <%= raw @exception.message %>
<%= raw @exception.backtrace.to_a.join("\n") %>

<% if @params %>
----------------------------
Params
----------------------------
<% @params.each do |key, val| -%>
<%= raw key %>: <%= raw val %>
<% end -%>
<% end %>

<% if @session %>
----------------------------
Session
----------------------------
<% @session.each do |key, val| -%>
<%= raw key %>: <%= val %>
<% end -%>
<% end %>
<commit_msg>Added system version to error email.<commit_after>----------------------------
Basic Info
----------------------------
Time: <%= Time.zone.now %>
<% if @env && @params %>
Location: <%= raw @env['REQUEST_URI'] %>
Action: <%= @params[:action] %>
Controller: <%= @params[:controller] %>
Query: <%= raw @env['QUERY_STRING'] %>
Method: <%= @env['REQUEST_METHOD'] %>
SSL: <%= @env['SERVER_PORT'].to_i == 443 ? "true" : "false" %>
Agent: <%= raw @env['HTTP_USER_AGENT'] %>
User: <%= @user ? "#{@user.login} <#{<EMAIL>}>".html_safe : "None" %>
Version: <%= configatron.system_version %>
<% end %>

----------------------------
Backtrace
----------------------------
<%= raw @exception.class.to_s %>: <%= raw @exception.message %>
<%= raw @exception.backtrace.to_a.join("\n") %>

<% if @params %>
----------------------------
Params
----------------------------
<% @params.each do |key, val| -%>
<%= raw key %>: <%= raw val %>
<% end -%>
<% end %>

<% if @session %>
----------------------------
Session
----------------------------
<% @session.each do |key, val| -%>
<%= raw key %>: <%= val %>
<% end -%>
<% end %>

{'fraction_non_alphanumeric': 0.4292364990689013, 'fraction_numerical': 0.002793296089385475, 'mean_word_length': 1.8128272251308901, 'pattern_counts': {'":': 0, '<': 60, '<?xml version=': 0, '>': 60, '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': '6328475', 'n_tokens_mistral': 767, 'n_tokens_neox': 643, 'n_words': 139}