<commit_before><div metal:use-macro="_LAYOUT">
<div metal:fill-slot="content">
  <h3>Submission</h3>


  <div>Student(s): ${submission.group.users_str}
    <span tal:condition="not submission_admin and
    request.user.can_join_group(submission.project)">(<a href="${request.route_path('project_group',
    project_id=submission.project.id)}">Join Group</a>)</span>
  </div>
  <div>Class: <a href="${request.route_path('class_item', class_name=submission.project.class_.name)}">${submission.project.class_.name}</a></div>
  <div tal:condition="submission_admin">Project: <a href="${request.route_path('project_item_summary', class_name=submission.project.class_.name, project_id=submission.project.id)}">${submission.project.name}</a></div>
  <div tal:condition="not submission_admin">
    Project: <a href="${request.route_path('project_item_detailed_user', class_name=submission.project.class_.name, project_id=submission.project.id, username=request.user.username)}">${submission.project.name}</a>
  </div>
  <div>Submitted: ${submission.created_at} <span tal:condition="submission.is_late">[late]</span></div>

  <h4>Submission Files</h4>
  <ul tal:condition="submission.files">
    <li tal:repeat="f sorted(submission.files)">
      <a href="${request.route_path('file_item', sha1sum=f.file.sha1, filename=f.filename)}">${f.filename}</a>
    </li>
  </ul>

  <p>You can see the results of this submission in ${delay}.</p>
</div>
</div>
<commit_msg>Quick fix to submission results delay page.<commit_after><metal:block use-macro="main_template">
  <div metal:fill-slot="content">
    <h1>Submission Results</h1>
    <div>Student(s): ${submission.group.users_str}
      <span tal:condition="not submission_admin and
                           request.user.can_join_group(submission.project)">(<a href="${request.route_path('project_group',
                                                                                      project_id=submission.project.id)}">Join Group</a>)</span>
    </div>
    <div>Class: <a href="${request.route_path('class_item', class_name=submission.project.class_.name)}">${submission.project.class_.name}</a></div>
    <div tal:condition="submission_admin">Project: <a href="${request.route_path('project_item_summary', class_name=submission.project.class_.name, project_id=submission.project.id)}">${submission.project.name}</a></div>
    <div tal:condition="not submission_admin">
      Project: <a href="${request.route_path('project_item_detailed_user', class_name=submission.project.class_.name, project_id=submission.project.id, username=request.user.username)}">${submission.project.name}</a>
    </div>
    <div>Submitted: ${submission.created_at} <span tal:condition="submission.is_late">[late]</span></div>

    <h4>Submission Files</h4>
    <ul tal:condition="submission.files">
      <li tal:repeat="f sorted(submission.files)">
        <a href="${request.route_path('file_item', sha1sum=f.file.sha1, filename=f.filename)}">${f.filename}</a>
      </li>
    </ul>

    <div class="alert">You can see the results of this submission in ${delay}.</div>
  </div>
</metal:block>

{'fraction_non_alphanumeric': 0.18050657261942932, 'fraction_numerical': 0.0038473869830073742, 'mean_word_length': 4.942857142857143, 'pattern_counts': {'":': 0, '<': 79, '<?xml version=': 0, '>': 79, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3299695', 'n_tokens_mistral': 1014, 'n_tokens_neox': 995, 'n_words': 138}