<commit_before><!DOCTYPE html>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Add a Receipt</title>
<link rel="shortcut icon" href="img/favicon.png" type="image/x-icon" />

<link
  rel="stylesheet"
  href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css"
  integrity="<KEY>"
  crossorigin="anonymous"
/>

<link rel="stylesheet" href="css/style.css" />
<link rel="stylesheet" href="css/upload.css" />

<script src="js/upload.js"></script>

<body onload="loadPage()">
  <button id="cancel-button" class="ml-2 btn btn-info" type="button" onclick="cancelUpload()">Cancel</button>
  <h1>Upload a Receipt</h1>
  <br />

  <form id="upload-form" action="#" onsubmit="uploadReceipt(event)">
    <label for="label">Enter tags for the receipt:</label>
    <input
      id="categories-input"
      class="form-control"
      type="text"
      name="label"
      placeholder="Category 1, Category 2, Category 3"
      required
    />

    <label for="store">Enter the store name:</label>
    <input id="store-input" class="form-control" type="text" name="store" placeholder="Store" required />

    <label for="date-input">Enter the transaction date:</label>
    <input id="date-input" class="form-control" type="date" name="date" />

    <label id="receipt-image-label" for="receipt-image-input">Upload a receipt image:</label>
    <div class="custom-file">
      <input
        id="receipt-image-input"
        class="custom-file-input"
        type="file"
        name="receipt-image"
        accept="image/jpeg"
        onchange="displayFileName()"
      />
      <label id="receipt-filename-label" class="custom-file-label" for="receipt-image-input">Choose file</label>
    </div>
    <small class="form-text text-muted">Only JPEG images under 5 MB are accepted.</small><commit_msg>Remove date input from upload page.<commit_after><!DOCTYPE html>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Add a Receipt</title>
<link rel="shortcut icon" href="img/favicon.png" type="image/x-icon" />

<link
  rel="stylesheet"
  href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css"
  integrity="<KEY>"
  crossorigin="anonymous"
/>

<link rel="stylesheet" href="css/style.css" />
<link rel="stylesheet" href="css/upload.css" />

<script src="js/upload.js"></script>

<body onload="loadPage()">
  <button id="cancel-button" class="ml-2 btn btn-info" type="button" onclick="cancelUpload()">Cancel</button>
  <h1>Upload a Receipt</h1>
  <br />

  <form id="upload-form" action="#" onsubmit="uploadReceipt(event)">
    <label for="label">Enter tags for the receipt:</label>
    <input
      id="categories-input"
      class="form-control"
      type="text"
      name="label"
      placeholder="Category 1, Category 2, Category 3"
      required
    />

    <label for="store">Enter the store name:</label>
    <input id="store-input" class="form-control" type="text" name="store" placeholder="Store" required />

    <label id="receipt-image-label" for="receipt-image-input">Upload a receipt image:</label>
    <div class="custom-file">
      <input
        id="receipt-image-input"
        class="custom-file-input"
        type="file"
        name="receipt-image"
        accept="image/jpeg"
        onchange="displayFileName()"
      />
      <label id="receipt-filename-label" class="custom-file-label" for="receipt-image-input">Choose file</label>
    </div>
    <small class="form-text text-muted">Only JPEG images under 5 MB are accepted.</small>
{'fraction_non_alphanumeric': 0.17863105175292154, 'fraction_numerical': 0.00667779632721202, 'mean_word_length': 3.91120218579235, 'pattern_counts': {'":': 0, '<': 74, '<?xml version=': 0, '>': 74, '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': '5367099', 'n_tokens_mistral': 1200, 'n_tokens_neox': 1142, 'n_words': 228}