<commit_before>extends layout

block content
  h1 #{title}
  br

  form(action="/completetask", method="post")
    table.table.table-striped.table-bordered
      tr
        td Name
        td Category
        td Date
        td Complete
      if (typeof tasks === "undefined")
        tr
          td
      else
        each task in tasks
          tr
            td #{task.name}
            td #{task.category}
            - var date  = new Date(task.date);
            - var day   = date.getDate();
            - var month = date.getMonth() + 1;
            - var year  = date.getFullYear();
            td #{month + "/" + day + "/" + year}
            td
              input(type="checkbox", name="#{task.id}", value="#{!task.completed}", checked=task.completed)
    button.btn(type="submit") Update tasks
  hr
  form.well(action="/addtask", method="post")
    label Item Name:
    input(name="name", type="textbox")
    label Item Category:
    input(name="category", type="textbox")
    br
    button.btn(type="submit") Add item<commit_msg>Use Bootstrap forms and primary button style<commit_after> extends layout
 block content
    h1 #{title}
    br
 
    form(action="/completetask", method="post")
      table.table.table-striped.table-bordered
        tr
          td Name
          td Category
          td Date
          td Complete
        if (typeof tasks === "undefined")
          tr
            td
        else
          each task in tasks
            tr
              td #{task.name}
              td #{task.category}
              - var date  = new Date(task.date);
              - var day   = date.getDate();
              - var month = date.getMonth() + 1;
              - var year  = date.getFullYear();
              td #{month + "/" + day + "/" + year}
              td
                input(type="checkbox", name="#{task.id}", value="#{!task.completed}", checked=task.completed)
      button.btn.btn-primary(type="submit") Update tasks
    hr
    form.well(action="/addtask", method="post")
      .form-group
        label(for="name") Item Name:
        input.form-control(name="name", type="textbox")
      .form-group
        label(for="category") Item Category:
        input.form-control(name="category", type="textbox")
{'fraction_non_alphanumeric': 0.13250333481547355, 'fraction_numerical': 0.0017785682525566918, 'mean_word_length': 1.7641277641277642, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2184996', 'n_tokens_mistral': 639, 'n_tokens_neox': 625, 'n_words': 160}