<commit_before><div class="container">
  <script>
    home = { progressImage: '<%= image_tag "processing-file.gif" %>',
             rubricUpoadUrl:  '<%= Rails.configuration.x.rubric_upload_url %>',
              linkgen_id: '<%= @keyset.linkgen_id %>'
            };
  </script>
  <form action="/lti_links" method="post">
    <div class="row">
      <div class="span2">
        <h1>LTI Link Generator</h1>

        <fieldset class="form-group">
         <input name="authenticity_token" value="rPGJeVoyZYioIwb0ZpwwORTMjcG6WIqoDGkq1UQFUgSQCWq0s3QCO8MaLxrDeZaFe+/CQayVJ9iYiMujBS3+Pw==" type="hidden">
         <label for="tool">Choose the tool you would like to generate a link for</label>
         <select class="form-control" id="tool">
          <option value="0">========== None Selected ===========</option>
          <option value="1" title="Provide a Blackboard link to evaluate student contributions to group work, a simple alternative to SPARC.">Group Work Peer Evaluation</option>
          <option value="2" title="Deliver problems and solutions securely to students via a Blackboard link">Secure Question/Answer Delivery</option>
        </select>
      </fieldset></div>

      <input type='hidden' id='keyset_id' name='keyset_id' value=<%= @keyset.id %>/>

    </div>
    <div class=row id=tool-header style='display:none'>
      <h2></h2>
      <em style='color: purple'>Note for devs: below content are settings for the peer assessment tool, on production these settings will vary based on tool selection</em>
    </div>
    <div class=row id=settings-row style='display:none'>
     <div class="col-md-6" id="settings" style="">
      <h3>Peer Review Settings</h3>
      <label for="show_grade_column1">Show grades column to students? Yes:<input type="radio" name="show_grade_column" id="show_grade_column1" value="yes" checked="checked"></label>
      <label for="show_grade_column2">No:<input type="radio" name="show_grade_column" id="show_grade_column2" value="no"></label>

      <label for="show_comments1">Show comments to students? Yes: <input type="radio" name="show_comments" id="show_comments1" value="yes" checked="checked"> </label>
      <label for="show_comments2">No: <input type="radio" name="show_comments" value="no" id="show_comments2"></label>

      <label for="allow_self1">Allow students to self-assess? Yes: <input type="radio" name="allow_self" id="allow_self1" value="yes" checked="checked"> </label>
      <label for="allow_self2">No: <input type="radio" name="allow_self" value="no" id="allow_self2"></label>
      <p> <em>This option sets the first user in the list to the logged in student, all other students are greyed out until the student has
        self assessed</em></p><p><br>

        <label for="include_self1">Include self in the mean score calculation from the group? Yes:
         <input type="radio" name="include_self" id="include_self1" value="yes" checked="checked"/></label>
         <label for="include_self2">No: <input type="radio" name="include_self" value="no" id="include_self2"/></label>

         <br><div id="rubric_wrapper">
         <label for="userfile">Rubric ZIP file  <div id='rubricProgress'></div></label>
         <input id="rubric_file" type="file" name="userfile" value="userfile"><label for="show_scores"> show rubric cell scores.</label>
         <input id="upload_rubric" type="button" value="Upload and Attach Rubric" name="upload_rubric" class="form-control btn-success"></input>

         <!-- AJAX call here -->

       </div>
       <br><label for="total_score" style="font-weight: 400"><strong>OR</strong> set a total maximum score for assessment</label><commit_msg>removed upload button, AJAX is now onChange<commit_after><div class="container">
  <script>
    home = { progressImage: '<%= image_tag "processing-file.gif" %>',
             rubricUpoadUrl:  '<%= Rails.configuration.x.rubric_upload_url %>',
              linkgen_id: '<%= @keyset.linkgen_id %>'
            };
  </script>
  <form action="/lti_links" method="post">
    <div class="row">
      <div class="span2">
        <h1>LTI Link Generator</h1>

        <fieldset class="form-group">
         <input name="authenticity_token" value="rPGJeVoyZYioIwb0ZpwwORTMjcG6WIqoDGkq1UQFUgSQCWq0s3QCO8MaLxrDeZaFe+/CQayVJ9iYiMujBS3+Pw==" type="hidden">
         <label for="tool">Choose the tool you would like to generate a link for</label>
         <select class="form-control" id="tool">
          <option value="0">========== None Selected ===========</option>
          <option value="1" title="Provide a Blackboard link to evaluate student contributions to group work, a simple alternative to SPARC.">Group Work Peer Evaluation</option>
          <option value="2" title="Deliver problems and solutions securely to students via a Blackboard link">Secure Question/Answer Delivery</option>
        </select>
      </fieldset></div>

      <input type='hidden' id='keyset_id' name='keyset_id' value=<%= @keyset.id %>/>

    </div>
    <div class=row id=tool-header style='display:none'>
      <h2></h2>
      <em style='color: purple'>Note for devs: below content are settings for the peer assessment tool, on production these settings will vary based on tool selection</em>
    </div>
    <div class=row id=settings-row style='display:none'>
     <div class="col-md-6" id="settings" style="">
      <h3>Peer Review Settings</h3>
      <label for="show_grade_column1">Show grades column to students? Yes:<input type="radio" name="show_grade_column" id="show_grade_column1" value="yes" checked="checked"></label>
      <label for="show_grade_column2">No:<input type="radio" name="show_grade_column" id="show_grade_column2" value="no"></label>

      <label for="show_comments1">Show comments to students? Yes: <input type="radio" name="show_comments" id="show_comments1" value="yes" checked="checked"> </label>
      <label for="show_comments2">No: <input type="radio" name="show_comments" value="no" id="show_comments2"></label>

      <label for="allow_self1">Allow students to self-assess? Yes: <input type="radio" name="allow_self" id="allow_self1" value="yes" checked="checked"> </label>
      <label for="allow_self2">No: <input type="radio" name="allow_self" value="no" id="allow_self2"></label>
      <p> <em>This option sets the first user in the list to the logged in student, all other students are greyed out until the student has
        self assessed</em></p><p><br>

        <label for="include_self1">Include self in the mean score calculation from the group? Yes:
         <input type="radio" name="include_self" id="include_self1" value="yes" checked="checked"/></label>
         <label for="include_self2">No: <input type="radio" name="include_self" value="no" id="include_self2"/></label>

         <br><div id="rubric_wrapper">
         <label for="userfile">Rubric ZIP file  <div id='rubricProgress'></div></label>
         <input id="rubric_file" type="file" name="userfile" value="userfile"><label for="show_scores"> show rubric cell scores.</label>

         <!-- AJAX call here -->

       </div>
       <br><label for="total_score" style="font-weight: 400"><strong>OR</strong> set a total maximum score for assessment</label>
{'fraction_non_alphanumeric': 0.15590726086352907, 'fraction_numerical': 0.010551159239205887, 'mean_word_length': 4.239272727272727, 'pattern_counts': {'":': 0, '<': 173, '<?xml version=': 0, '>': 173, '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': '2241496', 'n_tokens_mistral': 2275, 'n_tokens_neox': 2199, 'n_words': 569}