<commit_before><div style="text-align:center">
  <?php echo form_open_multipart('file/do_upload'); ?>
    File: <input type="file" name="file" size="30" />
    <input type="submit" value="Upload" name="process" />
  </form>
  <br />
  <p>OR</p>
  <br />
  <?php echo form_open_multipart('file/do_paste'); ?>
    <textarea name="content" cols="80" rows="20"></textarea><br />
    <input type="submit" value="Paste" name="process" />
  </form>
</div>
<br /><br />
Uploads/pastes are deleted after 5 days.<br />
<br />
For shell uploading/pasting use:<br />
<pre>
curl -F "content=<-" <?php echo base_url(); ?> < file      (not binary safe)
cat file | curl -F "content=<-" <?php echo base_url(); ?>  (not binary safe)
curl -F "file=@/home/user/foo" <?php echo base_url(); ?>   (binary safe)
</pre>
<br />
If you want to you can use my script (needs python and curl) to upload files, paste text or delete your uploads:<br />
<a href="http://git.server-speed.net/bin/plain/fb">http://git.server-speed.net/bin/plain/fb</a><br />
<br />
If you experience any problems feel free to <a href="http://bluewind.at/?id=1">contact me</a>.<br />
<br />
<br />
<div class="small">
  This service is provided without warranty of any kind and may not be used to distribute copyrighted content.
</div><commit_msg>rework upload_form view<commit_after><div style="text-align:center">
  <?php echo form_open_multipart('file/do_upload'); ?>
    File: <input type="file" name="file" size="30" />
    <input type="submit" value="Upload" name="process" />
  </form>
  <br />
  <p>OR</p>
  <br />
  <?php echo form_open_multipart('file/do_paste'); ?>
    <textarea name="content" cols="80" rows="20"></textarea><br />
    <input type="submit" value="Paste" name="process" />
  </form>
</div>
<br /><br />
<p>Uploads/pastes are deleted after 5 days.</p>
<br />
<p>For shell uploading/pasting use:</p>
<pre>
curl -n -F "content=<-" <?php echo base_url(); ?> < file      (not binary safe)
cat file | curl -n -F "content=<-" <?php echo base_url(); ?>  (not binary safe)
curl -n -F "file=@/home/user/foo" <?php echo base_url(); ?>   (binary safe)
</pre>
<br />
<p>If you want to use authentication add the following to your ~/.netrc:
<pre>
machine paste.xinu.at password <PASSWORD>
</pre>
</p>
<br />
<p>If you want to you can use my script (needs python and curl) to upload files, paste text or delete your uploads:<br />
<a href="http://git.server-speed.net/bin/plain/fb">http://git.server-speed.net/bin/plain/fb</a></p>
<br />
<p>If you experience any problems feel free to <a href="http://bluewind.at/?id=1">contact me</a>.</p>
<br />
<br />
<div class="small">
  <p>This service is provided without warranty of any kind and may not be used to distribute copyrighted content.</p>
</div>
{'fraction_non_alphanumeric': 0.19688179840464104, 'fraction_numerical': 0.005801305293691081, 'mean_word_length': 3.962230215827338, 'pattern_counts': {'":': 0, '<': 99, '<?xml version=': 0, '>': 93, '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': '519812', 'n_tokens_mistral': 987, 'n_tokens_neox': 952, 'n_words': 294}