<commit_before><% content_for :script, javascript_include_tag("excanvas") %>
<% content_for :script, javascript_include_tag("visualize.jQuery") %>
<% content_for :script do %>
<script>
  var root = "<%=j url_for(:only_path => false) %>";
  var question = <%=(params[:question] ? %("#{j params[:question]}") : null).html_safe %>;
</script>
<% end %>
<% content_for :script, javascript_include_tag("correlate") %>

<%
  links = %(<div class="button-group">)
  links << (link_to "Return to #{@course.title}", @course, :class => "button")
  links << %(</div>)
  links = links.html_safe
%>

<div>
  <h2>Correlate <%=@course.title %> (<%=@course.semester.title %>)</h2>
  <%=links%>
  <br style="clear:both"/>

  <label for="correlate_by">Select question to correlate by:</label><br/>
  <select id="correlate_by">
    <option value="">Please select</option>
    <%=<commit_msg>add .js so it maybe works on apache production<commit_after><% content_for :script, javascript_include_tag("excanvas.js") %>
<% content_for :script, javascript_include_tag("visualize.jQuery.js") %>
<% content_for :script do %>
<script>
  var root = "<%=j url_for(:only_path => false) %>";
  var question = <%=(params[:question] ? %("#{j params[:question]}") : null).html_safe %>;
</script>
<% end %>
<% content_for :script, javascript_include_tag("correlate.js") %>

<%
  links = %(<div class="button-group">)
  links << (link_to "Return to #{@course.title}", @course, :class => "button")
  links << %(</div>)
  links = links.html_safe
%>

<div>
  <h2>Correlate <%=@course.title %> (<%=@course.semester.title %>)</h2>
  <%=links%>
  <br style="clear:both"/>

  <label for="correlate_by">Select question to correlate by:</label><br/>
  <select id="correlate_by">
    <option value="">Please select</option>
    <%=
{'fraction_non_alphanumeric': 0.22085201793721973, 'fraction_numerical': 0.002242152466367713, 'mean_word_length': 5.397849462365591, 'pattern_counts': {'":': 0, '<': 63, '<?xml version=': 0, '>': 57, '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': '6426454', 'n_tokens_mistral': 677, 'n_tokens_neox': 613, 'n_words': 130}