<commit_before>form(action="/event" method="post")
  input(type="hidden" name="_method" value="put")
  label(for="start") Start Date/Time
  input(type="text" name="start" value="20140801")
  label(for="start") End Date/Time
  input(type="text" name="end" value="20140803")
  label(for="start") Summary
  input(type="text" name="summary")
  button(type="submit" value="save") save
<commit_msg>i18n and restructure new event view template.<commit_after>form.pure-form.pure-form-stacked action="/event" method="post"
  input type="hidden" name="_method" value="put"
  fieldset
    legend = t 'new_event'

    - if !start_date.nil?
      label for="start_day" = t 'start_date'
      input type="text" readonly=true name="start_day" value="#{start_date}" 
    - else
      label for="start_day" = t 'start_date'
      input type="text" name="start_day" value="" placeholder="YYYYMMDD")
  
    label for="start_time" = t 'when'
    input type="text" name="start_time" value="" placeholder="HH:MM"

    label for="start" = t 'summary'
    input type="text" name="summary" placeholder="summary"

    label for="location" = t 'location'
    input type="text" name="location" placeholder="place"

    label for="description" = t 'description'
    textarea name="description" rows=3 width=40

    label for="duration" = t 'duration'
    select name="duration"
      option value="15m"   = t '15m'
      option value="30m"   = t '30m'
      option value="60m"   = t '60m'
      option value="90m"   = t '90m'
      option value="120m"  = t '120m'
      option value="whole" = t 'whole_day'
      option value="1d"    = t '1d'
      option value="2d"    = t '2d'
      option value="5d"    = t '5d'
      option value="1w"    = t '1w'
    button.pure-button type="submit" value="save" = t 'save'

{'fraction_non_alphanumeric': 0.16208637128435222, 'fraction_numerical': 0.02860347728547392, 'mean_word_length': 3.7828418230563003, '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': '6180779', 'n_tokens_mistral': 630, 'n_tokens_neox': 593, 'n_words': 146}