<commit_before><% unless battle_result.error %>
  <script type="text/javascript">
    replay = <%= raw battle_result.replay %>;
    <% submissions = battle_result.submissions %>
    playerIcons = <%= raw submissions.map { |s| submission_icon_url(s) } %>;
    playerNames = <%= raw submissions.map { |s| s.filename_without_extension } %>;
  </script>

  <canvas id="gameCanvas" width="800" height="450"></canvas>
  <script src="frameworks/cocos2d-html5/CCBoot.js"></script>
  <script src="main.js"></script>
<% end %>

<div>
  <% battle_result.submissions.each.with_index do |submission, index| %>
    <p>
    AI <%= index %>: <%= submission.ai_file.filename %> (<%= submission.user.name %>)
    </p>
  <% end %>
</div>

<%= render :partial => 'battle_results/detail', :locals => { :battle_result => battle_result } %><commit_msg>Update replayer view.<commit_after><% unless battle_result.error %>
  <canvas id="gameCanvas" width="800" height="450"></canvas>
  <script src="frameworks/cocos2d-html5/CCBoot.js"></script>
  <script src="main.js"></script>
<% end %>

<div>
  <% battle_result.submissions.each.with_index do |submission, index| %>
    <p>
    AI <%= index %>: <%= submission.ai_file.filename %> (<%= submission.user.name %>)
    </p>
  <% end %>
</div>

<%= render :partial => 'battle_results/detail', :locals => { :battle_result => battle_result } %>

{'fraction_non_alphanumeric': 0.20307917888563048, 'fraction_numerical': 0.011730205278592375, 'mean_word_length': 4.395256916996048, 'pattern_counts': {'":': 0, '<': 45, '<?xml version=': 0, '>': 51, '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': '4849409', 'n_tokens_mistral': 511, 'n_tokens_neox': 454, 'n_words': 82}