<commit_before><?php if (isset($username) && $username) { ?>
<div class="well">
	<div class="row-fluid">
		<div class="span12 text-upload-form">
			<?php echo form_open_multipart('file/do_paste'); ?>
				<h2>Text paste</h2>
				<textarea name="content" class="text-upload span12"><?php
					if (isset($textarea_content)) {
						echo $textarea_content;
					}
				?></textarea><br>
				<button type="submit" class="btn btn-primary">Paste it!</button>
			</form>
		</div>
	</div>
	<div class="row-fluid">
		<div class="span6">
			<?php echo form_open_multipart('file/do_upload'); ?>
				<h2>File upload</h2>
				<input class="file-upload" type="file" name="file[]" multiple="multiple"><br>
				<button type="submit" id="upload_button" class="btn btn-primary">Upload it!</button>
			</form>
		</div>
		<div class="span6 alert alert-block alert-info">
			<h4 class="alert-heading">Notice!</h4>
			<p>
				Uploads/pastes are deleted after <?php echo $upload_max_age; ?> days
				<?php if($small_upload_size > 0) {
					echo "unless they are smaller than ".format_bytes($small_upload_size);
				} ?>. Maximum upload size is <?php echo format_bytes($max_upload_size); ?>.
				You can upload a maximum of <?php echo ini_get("max_file_uploads"); ?> files at once.
			</p>
		</div>
	</div>
</div>

<script type="text/javascript">
    /* <![CDATA[ */
	var max_upload_size = "<?php echo $max_upload_size; ?>";
    /* ]]> */
</script>

<?php } else { ?>
	<?php echo form_open('user/login'); ?>
		<input type="text" name="username" placeholder="Username" />
		<input type="password" name="password" placeholder="Password" />
		<input type="submit" class="btn btn-primary" value="Login" name="process" style="margin-bottom: 9px" />
		<?php if(auth_driver_function_implemented("can_reset_password")) { ?>
			<p style="display: inline"><?php echo anchor("user/reset_password", "Forgot your password?"); ?></p>
		<?php } ?>
	</form>
<?php } ?>
<div class="row">
	<div class="span6">
		<div class="page-header"><h1>Features</h1></div><commit_msg>Alternate message for a delete-timeout of 0 (never delete)<commit_after><?php if (isset($username) && $username) { ?>
<div class="well">
	<div class="row-fluid">
		<div class="span12 text-upload-form">
			<?php echo form_open_multipart('file/do_paste'); ?>
				<h2>Text paste</h2>
				<textarea name="content" class="text-upload span12"><?php
					if (isset($textarea_content)) {
						echo $textarea_content;
					}
				?></textarea><br>
				<button type="submit" class="btn btn-primary">Paste it!</button>
			</form>
		</div>
	</div>
	<div class="row-fluid">
		<div class="span6">
			<?php echo form_open_multipart('file/do_upload'); ?>
				<h2>File upload</h2>
				<input class="file-upload" type="file" name="file[]" multiple="multiple"><br>
				<button type="submit" id="upload_button" class="btn btn-primary">Upload it!</button>
			</form>
		</div>
		<div class="span6 alert alert-block alert-info">
			<h4 class="alert-heading">Notice!</h4>
			<p>
				Uploads/pastes are <?php if ($upload_max_age > 0) {
					echo "deleted after ".$upload_max_age." days";
					if ($small_upload_size > 0) {
						echo " unless they are smaller than ".format_bytes($small_upload_size);
					}
				} else {
					echo "stored forever";
				} ?>. Maximum upload size is <?php echo format_bytes($max_upload_size); ?>.
				You can upload a maximum of <?php echo ini_get("max_file_uploads"); ?> files at once.
			</p>
		</div>
	</div>
</div>

<script type="text/javascript">
    /* <![CDATA[ */
	var max_upload_size = "<?php echo $max_upload_size; ?>";
    /* ]]> */
</script>

<?php } else { ?>
	<?php echo form_open('user/login'); ?>
		<input type="text" name="username" placeholder="Username" />
		<input type="password" name="password" placeholder="Password" />
		<input type="submit" class="btn btn-primary" value="Login" name="process" style="margin-bottom: 9px" />
		<?php if(auth_driver_function_implemented("can_reset_password")) { ?>
			<p style="display: inline"><?php echo anchor("user/reset_password", "Forgot your password?"); ?></p>
		<?php } ?>
	</form>
<?php } ?>
<div class="row">
	<div class="span6">
		<div class="page-header"><h1>Features</h1></div>
{'fraction_non_alphanumeric': 0.19799139167862267, 'fraction_numerical': 0.00860832137733142, 'mean_word_length': 4.342273307790549, 'pattern_counts': {'":': 0, '<': 124, '<?xml version=': 0, '>': 127, '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': '2477294', 'n_tokens_mistral': 1631, 'n_tokens_neox': 1423, 'n_words': 322}