<commit_before>= form_for [@card, @record] do |f|

  // ERROR MESSAGES
  = render 'shared/errors', model: @record

  .form-group
    = f.label :date
    = f.date_select :date

  .form-group
    = f.label :hours
    %br
    = f.text_field :hours, :data => { 'slider-value': "#{@record.hours}" }
    /= f.number_field :hours, min: 1, max: 24, :value => @record.hours, class: 'form-control'

  .form-group
    = f.label :description
    = f.text_area :description, autofocus: true, rows: 10, style: 'resize: vertical;', class: 'form-control wysihtml5', placeholder: 'Enter record description here...'

  .form-group
    = f.submit ( f.object.new_record? ? 'Punch Record' : 'Save Changes'), class: 'btn btn-success'
    = link_to 'Cancel', punchcards_path, class: 'btn btn-default'

/ Bootstrap Slider CDN
= stylesheet_link_tag 'https://cdnjs.cloudflare.com/ajax/libs/bootstrap-slider/9.7.2/css/bootstrap-slider.min.css'
= javascript_include_tag 'https://cdnjs.cloudflare.com/ajax/libs/bootstrap-slider/9.7.2/bootstrap-slider.min.js'<commit_msg>Remove old number_field element<commit_after>= form_for [@card, @record] do |f|

  // ERROR MESSAGES
  = render 'shared/errors', model: @record

  .form-group
    = f.label :date
    = f.date_select :date

  .form-group
    = f.label :hours
    %br
    = f.text_field :hours, :data => { 'slider-value': "#{@record.hours}" }

  .form-group
    = f.label :description
    = f.text_area :description, autofocus: true, rows: 10, style: 'resize: vertical;', class: 'form-control wysihtml5', placeholder: 'Enter record description here...'

  .form-group
    = f.submit ( f.object.new_record? ? 'Punch Record' : 'Save Changes'), class: 'btn btn-success'
    = link_to 'Cancel', punchcards_path, class: 'btn btn-default'

/ Bootstrap Slider CDN
= stylesheet_link_tag 'https://cdnjs.cloudflare.com/ajax/libs/bootstrap-slider/9.7.2/css/bootstrap-slider.min.css'
= javascript_include_tag 'https://cdnjs.cloudflare.com/ajax/libs/bootstrap-slider/9.7.2/bootstrap-slider.min.js'
{'fraction_non_alphanumeric': 0.16201395812562314, 'fraction_numerical': 0.010468594217347957, 'mean_word_length': 3.711267605633803, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, 'https://': 4, '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': '1764057', 'n_tokens_mistral': 742, 'n_tokens_neox': 694, 'n_words': 150}