<commit_before><% if @experiments.any? %>
    <p class="intro">The list below contains all the registered experiments along with the number of test participants,
      completed and conversion rate currently in the system.</p>

    <% @experiments.each do |experiment| %>
        <% if experiment.goals.empty? %>
            <% if (experiment.name =~ /HP Order -/).present? || experiment.alternatives.first.events_hash.keys.length > 0 %>
                <%= erb :_experiment_hp_order, :locals => {:goal => nil, :experiment => experiment} %>
            <% else %>
                <%= erb :_experiment, :locals => {:goal => nil, :experiment => experiment} %>
            <% end %>
        <% else %>
            <%= erb :_experiment_with_goal_header, :locals => {:experiment => experiment} %>
            <% experiment.goals.each do |g| %>
                <%= erb :_experiment, :locals => {:goal => g, :experiment => experiment} %>
            <% end %>
        <% end %>
    <% end %>
<% else %>
    <p class="intro">No experiments have started yet, you need to define them in your code and introduce them to your
      users.</p>
    <p class="intro">Check out the <a href='https://github.com/playedonline/Funtestic#readme'>Readme</a> for more help getting
      started.</p>
<% end %><commit_msg>*Fixed dashboard crash<commit_after><% if @experiments.any? %>
    <p class="intro">The list below contains all the registered experiments along with the number of test participants,
      completed and conversion rate currently in the system.</p>

    <% @experiments.each do |experiment| %>
        <% if experiment.goals.blank? %>
            <% if (experiment.name =~ /HP Order -/).present? || experiment.alternatives.first.events_hash.keys.length > 0 %>
                <%= erb :_experiment_hp_order, :locals => {:goal => nil, :experiment => experiment} %>
            <% else %>
                <%= erb :_experiment, :locals => {:goal => nil, :experiment => experiment} %>
            <% end %>
        <% else %>
            <%= erb :_experiment_with_goal_header, :locals => {:experiment => experiment} %>
            <% experiment.goals.each do |g| %>
                <%= erb :_experiment, :locals => {:goal => g, :experiment => experiment} %>
            <% end %>
        <% end %>
    <% end %>
<% else %>
    <p class="intro">No experiments have started yet, you need to define them in your code and introduce them to your
      users.</p>
    <p class="intro">Check out the <a href='https://github.com/playedonline/Funtestic#readme'>Readme</a> for more help getting
      started.</p>
<% end %>
{'fraction_non_alphanumeric': 0.1562380038387716, 'fraction_numerical': 0.0007677543186180423, 'mean_word_length': 2.5649794801641588, 'pattern_counts': {'":': 0, '<': 53, '<?xml version=': 0, '>': 77, 'https://': 2, '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': '7472900', 'n_tokens_mistral': 826, 'n_tokens_neox': 725, 'n_words': 216}