<commit_before>{% load bootstrap3 %}
<!DOCTYPE html>
<html lang="en">
<head>
	<title>Assignment Report #{{assignment.id}} - {{assignment.title}}</title>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>

	{# Load CSS and JavaScript #}
	{% bootstrap_css %}
	<link href="https://maxcdn.bootstrapcdn.com/bootswatch/3.3.7/paper/bootstrap.min.css" rel="stylesheet" integrity="sha384-awusxf8AUojygHf2+joICySzB780jVvQaVCAt1clU3QsyAitLGul28Qxb2r1e5g+" crossorigin="anonymous">
  	{% bootstrap_javascript %}

	<link rel="stylesheet"
      href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/github.min.css">
	<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js"></script>

	<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/bootstrap-table/1.11.1/bootstrap-table.min.css">
	<script src="//cdnjs.cloudflare.com/ajax/libs/bootstrap-table/1.11.1/bootstrap-table.min.js"></script>

	<style>
	.hljs {
		background: transparent;
	}
	@media print
	{
	    .no-print, .no-print *
	    {
	        display: none !important;
	    }
	}
	.center {
		text-align: center;
	}
	.right {
		text-align: right;
	}
	</style>
</head>
<body>

<div class="container">
<div class="row">
	<div class="col col-sm-12">
		{% if submissions %}
			<h2 class="center">Assignment Report #{{assignment.id}}</h2>
			<h3 class="center">{{assignment.title}} ({{assignment.course}})</h3>
			<hr class="no-print" />
			<div class="row no-print">
				<div class="col col-sm-12"></div>
				<div class="col col-sm-12 center">
                    <a href="{% url 'home' %}assignment_aggregate_report/{{ assignment.id }}" class="btn btn-sm btn-primary">View All Assignments</a>
					<a href="{% url 'home' %}moss_submit/{{ assignment.id }}" class="btn btn-sm btn-primary">Generate Moss Report</a>
					{% if assignment.moss_report != False %}
					<a href="{% url 'home' %}moss_view/{{ assignment.id }}" target="_blank" class="btn btn-sm btn-info">View Moss Report</a>
					{% endif %}
					<a href="#" class="btn btn-sm btn-default" onclick="window.print();">Print</a>
					<!--<a href="#" class="btn btn-sm btn-info" onclick="printPDF('report{{assignment.id}}.pdf');">Save as PDF</a>-->
				</div>

			</div>
			<hr class="no-print" />
			<table data-toggle="table">
				<thead>
					<tr>
						<th data-sortable="true">Name</th>
						<th data-sortable="true">Username</th>
						<th data-order="asc" data-sortable="true">Roll No</th>
						<th data-sortable="true" class="right">Passed</th>
						<th data-sortable="true" class="right">Failed</th>
						<th data-sortable="true" class="right">Score ({{assignment.total_points }} Points)</th>
						<th data-sortable="true" class="right">Submission Date</th>
						<th class="right no-print">Action</th>
					</tr>
				</thead>
				<tbody>
					{% for submission, student in submissions %}
					<tr>
						<td>{{ student.user.first_name }} {{ student.user.last_name }}</td>
						<td>{{ student.user.username }}</td>
						<td>{{ student.get_roll_number }}</td>
						<td class="right">{% firstof submission.passed "-" %}</td>
						<td class="right">{% firstof submission.failed "-" %}</td>
						<td class="right">{% firstof submission.get_score "-" %}</td>
						<td class="right">{% firstof submission.publish_date "-" %}</td>
						<td class="right no-print">
							{% if submission.id %}
								<a href="" data-toggle="modal" data-target="#codeModal" data-load-url="{% url 'home' %}download/?sid={{ submission.id }}&action=modifiable_file&raw=1" class="btn btn-info btn-sm">VIEW</a>
								<a target="_blank" href="/admin/AutoGrade/submission/{{ submission.id }}/change/" class="btn btn-primary btn-sm">EDIT</a>
							{% endif %}
						</td>
					</tr>
					{% endfor %}
				</tbody>
			</table>
		{% else %}<commit_msg>Assignment report minor UI changes<commit_after>{% load bootstrap3 %}
<!DOCTYPE html>
<html lang="en">
<head>
	<title>Assignment Report #{{assignment.id}} - {{assignment.title}}</title>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>

	{# Load CSS and JavaScript #}
	{% bootstrap_css %}
	<link href="https://maxcdn.bootstrapcdn.com/bootswatch/3.3.7/paper/bootstrap.min.css" rel="stylesheet" integrity="sha384-awusxf8AUojygHf2+joICySzB780jVvQaVCAt1clU3QsyAitLGul28Qxb2r1e5g+" crossorigin="anonymous">
  	{% bootstrap_javascript %}

	<link rel="stylesheet"
      href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/github.min.css">
	<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js"></script>

	<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/bootstrap-table/1.11.1/bootstrap-table.min.css">
	<script src="//cdnjs.cloudflare.com/ajax/libs/bootstrap-table/1.11.1/bootstrap-table.min.js"></script>

	<style>
	.hljs {
		background: transparent;
	}
	@media print
	{
	    .no-print, .no-print *
	    {
	        display: none !important;
	    }
	}
	.center {
		text-align: center;
	}
	.right {
		text-align: right;
	}
	</style>
</head>
<body>

<div class="container">
<div class="row">
	<div class="col col-sm-12">
		{% if submissions %}
			<h2 class="center">Assignment Report #{{assignment.id}}</h2>
			<h3 class="center">{{assignment.title}} ({{assignment.course}})</h3>
			<hr class="no-print" />
			<div class="row no-print">
				<div class="col col-sm-12"></div>
				<div class="col col-sm-12 center">
                    <a href="{% url 'home' %}assignment_aggregate_report/{{ assignment.id }}" class="btn btn-sm btn-primary">View All Assignments</a>
					<a href="{% url 'home' %}moss_submit/{{ assignment.id }}" class="btn btn-sm btn-primary">Generate Moss Report</a>
					{% if assignment.moss_report != False %}
					<a href="{% url 'home' %}moss_view/{{ assignment.id }}" target="_blank" class="btn btn-sm btn-info">View Moss Report</a>
					{% endif %}
					<a href="#" class="btn btn-sm btn-default" onclick="window.print();">Print</a>
					<!--<a href="#" class="btn btn-sm btn-info" onclick="printPDF('report{{assignment.id}}.pdf');">Save as PDF</a>-->
				</div>

			</div>
			<hr class="no-print" />
			<table data-toggle="table" class="table table-striped">
				<thead>
					<tr>
                        <th>No.</th>
						<th data-sortable="true">Name</th>
						<th data-sortable="true">Username</th>
						<th data-order="asc" data-sortable="true">Roll No</th>
						<th data-sortable="true" class="right">Passed</th>
						<th data-sortable="true" class="right">Failed</th>
						<th data-sortable="true" class="right">Score ({{assignment.total_points }} Points)</th>
						<th data-sortable="true" class="right">Submission Date</th>
						<th class="right no-print">Action</th>
					</tr>
				</thead>
				<tbody>
					{% for submission, student in submissions %}
					<tr>
                        <td>{{ forloop.counter }}</td>
						<td>{{ student.user.first_name }} {{ student.user.last_name }}</td>
						<td>{{ student.user.username }}</td>
						<td>{{ student.get_roll_number }}</td>
						<td class="right">{% firstof submission.passed "-" %}</td>
						<td class="right">{% firstof submission.failed "-" %}</td>
						<td class="right">{% firstof submission.get_score "-" %}</td>
						<td class="right">{% firstof submission.publish_date "-" %}</td>
						<td class="right no-print">
							{% if submission.id %}
								<a href="" data-toggle="modal" data-target="#codeModal" data-load-url="{% url 'home' %}download/?sid={{ submission.id }}&action=modifiable_file&raw=1" class="btn btn-info btn-sm">VIEW</a>
								<a target="_blank" href="/admin/AutoGrade/submission/{{ submission.id }}/change/" class="btn btn-primary btn-sm">EDIT</a>
							{% endif %}
						</td>
					</tr>
					{% endfor %}
				</tbody>
			</table>
		{% else %}
{'fraction_non_alphanumeric': 0.20824458087958903, 'fraction_numerical': 0.012780353339180555, 'mean_word_length': 3.514705882352941, 'pattern_counts': {'":': 0, '<': 191, '<?xml version=': 0, '>': 191, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6098340', 'n_tokens_mistral': 3380, 'n_tokens_neox': 2777, 'n_words': 504}