<commit_before><%
traffic = traffic[0]
stat = traffic.domain_log_stats[0]
%>
<div class="session_traffic">

<br/>

<h2><%= 'Total Hits'.t %></h2>
<div class="stat"><%= number_with_delimiter(stat.hits || 0) %></div>
<br/>
<br/>
<br/>

<h2><%= 'Visitors'.t %></h2>
<div class="stat"><%= number_with_delimiter(stat.visits || 0) %></div>
<br/>
<br/>
<br/>

<h2><%= 'Conversions'.t %></h2>
<div class="stat"><%= number_with_delimiter(stat.conversions || 0) %></div>
<br/>
<br/>
<br/>

<h2><%= 'Revenue'.t %></h2>
<div class="stat"><%= number_to_currency(stat.total_value || 0) %></div>

</div><commit_msg>conversions are the total leads, subscribers and conversions<commit_after><%
traffic = traffic[0]
stat = traffic.domain_log_stats[0]
conversions = stat.conversions.to_i + stat.leads.to_i + stat.subscribers.to_i
%>
<div class="session_traffic">

<br/>

<h2><%= 'Total Hits'.t %></h2>
<div class="stat"><%= number_with_delimiter(stat.hits || 0) %></div>
<br/>
<br/>
<br/>

<h2><%= 'Visitors'.t %></h2>
<div class="stat"><%= number_with_delimiter(stat.visits || 0) %></div>
<br/>
<br/>
<br/>

<h2><%= 'Conversions'.t %></h2>
<div class="stat"><%= number_with_delimiter(conversions) %></div>
<br/>
<br/>
<br/>

<h2><%= 'Revenue'.t %></h2>
<div class="stat"><%= number_to_currency(stat.total_value || 0) %></div>

</div>
{'fraction_non_alphanumeric': 0.27300380228136883, 'fraction_numerical': 0.02053231939163498, 'mean_word_length': 5.58, 'pattern_counts': {'":': 0, '<': 77, '<?xml version=': 0, '>': 77, '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': '4930704', 'n_tokens_mistral': 588, 'n_tokens_neox': 559, 'n_words': 111}