<commit_before>{% extends 'base.html' %}
{% block head %}
	<title>StackSmash - File Upload</title>	
	{# Use the docs.css file. it only has one css class so.. #}
	<link type="text/css" href="/static/docs.css" rel="stylesheet">
{% endblock %}

{% block body %}
	<div class="document">
		<!-- List of uploaded documents -->
		{% if documents %}
			<ul>
			{% for document in documents %}
				<li><a href="{{ document.docfile.url }}">{{ document.docfile.name }}</a></li>
			{% endfor %}
			</ul>
		{% else %}
			<p>No documents.</p>
		{% endif %}

		<!-- Upload form. Note enctype attribute! -->
		<form action="{% url "list" %}" method="post" enctype="multipart/form-data">
			{% csrf_token %}
			<p>{{ form.non_field_errors }}</p>
			<p>{{ form.docfile.label_tag }} {{ form.docfile.help_text }}</p>
			<p>
				{{ form.docfile.errors }}
				{{ form.docfile }}
			</p>
			<p><input type="submit" value="Upload" /></p>
		</form>
	</div>
{% endblock %}<commit_msg>make it significantly easier to copy urls from the upload list<commit_after>{% extends 'base.html' %}
{% block head %}
	<title>StackSmash - File Upload</title>	
	{# Use the docs.css file. it only has one css class so.. #}
	<link type="text/css" href="/static/docs.css" rel="stylesheet">
{% endblock %}

{% block body %}
	<div class="document">
		<!-- List of uploaded documents -->
		{% if documents %}
			<ul>
			{% for document in documents %}
				<li><a href="{{ document.docfile.url }}">/media/{{ document.docfile.name }}</a></li>
			{% endfor %}
			</ul>
		{% else %}
			<p>No documents.</p>
		{% endif %}

		<!-- Upload form. Note enctype attribute! -->
		<form action="{% url "list" %}" method="post" enctype="multipart/form-data">
			{% csrf_token %}
			<p>{{ form.non_field_errors }}</p>
			<p>{{ form.docfile.label_tag }} {{ form.docfile.help_text }}</p>
			<p>
				{{ form.docfile.errors }}
				{{ form.docfile }}
			</p>
			<p><input type="submit" value="Upload" /></p>
		</form>
	</div>
{% endblock %}
{'fraction_non_alphanumeric': 0.22210953346855983, 'fraction_numerical': 0.0, 'mean_word_length': 3.20682302771855, 'pattern_counts': {'":': 0, '<': 55, '<?xml version=': 0, '>': 55, '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': '1068321', 'n_tokens_mistral': 827, 'n_tokens_neox': 690, 'n_words': 171}