<commit_before>extends page

block page-content
  .page-header
    h1
      = title
      |  
      small Taste it don't waste it!
  
  .panel.panel-default
    .panel-body
      form.form-inline.row(role='form', action='', method='post')
        .form-group.col-md-8
          label.sr-only(for='newfood') Food
          input#newfood.form-control(name='newfood', placeholder='The name of the new food', required) 
        .form-group.col-md-2
          label.sr-only(for='eatby') Eat by
          input#eatby.form-control(name='eatby', type='date', placeholder='Eat by date', required)
        .form-group.col-md-2
          button.btn.btn-primary(type=submit) add new food

  each items, category in food
    .panel.panel-default
      .panel-heading
        h2.panel-title= category
      table.table.table-condensed
        each item in items
          tr<commit_msg>Changed panel colours<commit_after>extends page

block page-content
  .page-header
    h1
      = title
      |  
      small Taste it don't waste it!
  
  .panel.panel-default
    .panel-body
      form.form-inline.row(role='form', action='', method='post')
        .form-group.col-md-8
          label.sr-only(for='newfood') Food
          input#newfood.form-control(name='newfood', placeholder='The name of the new food', required) 
        .form-group.col-md-2
          label.sr-only(for='eatby') Eat by
          input#eatby.form-control(name='eatby', type='date', placeholder='Eat by date', required)
        .form-group.col-md-2
          button.btn.btn-primary(type=submit) add new food

  each items, category in food
    - if (category == 'Past Its Best') panelClass = 'panel-danger'
    - else if (category == 'Today') panelClass = 'panel-warning'
    - else panelClass = 'panel-success'
    div(class='panel', class=panelClass)
      .panel-heading
        h2.panel-title= category
      table.table.table-condensed
        each item in items
          tr
{'fraction_non_alphanumeric': 0.12731958762886597, 'fraction_numerical': 0.005154639175257732, 'mean_word_length': 2.3407917383820998, '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': '4962167', 'n_tokens_mistral': 620, 'n_tokens_neox': 602, 'n_words': 136}