<commit_before><!DOCTYPE HTML>
<html>
<head>
	{{>title}}
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<link href="/css/bootstrap.min.css" rel="stylesheet">
	<link href="/css/bootstrap-theme.min.css" rel="stylesheet">
	<link href="/css/menubar/component.css" rel="stylesheet">
  <link href="/css/introHCI.css" rel="stylesheet">
  <link href="/css/pasteats-editcreate.css" rel="stylesheet">
  <script src="https://code.jquery.com/jquery.js"></script>
  <script src="/js/pasteats-editcreate2.js"></script>
  
</head>

<div class="navbar navbar-default navbar-fixed-top" role="navigation">
    <div class="navbar-headerw">
      <button id="menuButton" type="button" class="navbar-toggle pull-left">
        <span class="glyphicon glyphicon-chevron-left"></span>
      </button>
      <span class="navbar-brand">Create Entry</span>
  </div>
</div>

<script type="text/javascript">
  $(document).ready(function(){
    $('#upload').click(function(e){
      e.preventDefault();
      var title = $('#titleText').val();
      var summary = $('#summary').val();
      var image = 'http://lorempixel.com/400/400/food/8';
      var caption = $('#caption').val();
      $.post('/pasteats-editcreate/add', {title: title, summary: summary, image:image, caption:caption}, callback);
    });

    function callback(err){
      $(location).attr('href', '/pasteats');
    }
  });
</script>

<body>
	<div class = "container">
  <div class="container">
        <div id="overlay" class="web_dialog_overlay"></div>
        <div id="dialog" class="web_dialog">
            Discard draft?
            <table style="width: 100%;" cellspacing="0">
              <tr>
                <td id ="btnNo"><commit_msg>working on making image uploads work<commit_after><!DOCTYPE HTML>
<html>
<head>
	{{>title}}
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<link href="/css/bootstrap.min.css" rel="stylesheet">
	<link href="/css/bootstrap-theme.min.css" rel="stylesheet">
	<link href="/css/menubar/component.css" rel="stylesheet">
  <link href="/css/introHCI.css" rel="stylesheet">
  <link href="/css/pasteats-editcreate.css" rel="stylesheet">
  <script src="https://code.jquery.com/jquery.js"></script>
  <script src="/js/pasteats-editcreate2.js"></script>
  
</head>

<div class="navbar navbar-default navbar-fixed-top" role="navigation">
    <div class="navbar-headerw">
      <button id="menuButton" type="button" class="navbar-toggle pull-left">
        <span class="glyphicon glyphicon-chevron-left"></span>
      </button>
      <span class="navbar-brand">Create Entry</span>
  </div>
</div>

<script type="text/javascript">
  $(document).ready(function(){
    $('#upload').click(function(e){
      e.preventDefault();
      var title = $('#titleText').val();
      var summary = $('#summary').val();
      var image = 'http://lorempixel.com/400/400/food/8';
      var caption = $('#caption').val();
      var photo = $('#file').val();

      $.post('/pasteats-editcreate/add', {title: title, summary: summary, image:image, caption:caption}, callback);
    });

    function callback(err){
      $(location).attr('href', '/pasteats');
    }
  });
</script>

<body>
	<div class = "container">
  <div class="container">
        <div id="overlay" class="web_dialog_overlay"></div>
        <div id="dialog" class="web_dialog">
            Discard draft?
            <table style="width: 100%;" cellspacing="0">
              <tr>
                <td id ="btnNo">
{'fraction_non_alphanumeric': 0.20345217883418223, 'fraction_numerical': 0.008488964346349746, 'mean_word_length': 3.6391076115485563, 'pattern_counts': {'":': 0, '<': 75, '<?xml version=': 0, '>': 77, 'https://': 2, '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': '2999255', 'n_tokens_mistral': 1171, 'n_tokens_neox': 1119, 'n_words': 215}