<commit_before>%h2 Edit donator

.row
  .col-md-9
    = simple_form_for(@donator, url: url_for(controller: "donators", action: "update"), :html => { :class => 'form' }) do |f|
      = f.input :expires_at, :as => :string, :input_html => { :value => I18n.l(@donator.expires_at, :format => :datepicker), :data => { :"datepicker-format" => "dd-mm-yyyy hh:ii", :"datepicker-nodefault" => "false" } }, :label => "Expires at"

      .col-md-offset-2
        %button.btn.btn-default{:type => :submit}
          Update
<commit_msg>Fix exception on date localization when editing a donator with no expires_at<commit_after>%h2 Edit donator

.row
  .col-md-9
    = simple_form_for(@donator, url: url_for(controller: "donators", action: "update"), html: { class: 'form' }) do |f|
      = f.input :expires_at, as: :string, input_html: { value: @donator.expires_at && I18n.l(@donator.expires_at, format: :datepicker), data: { "datepicker-format": "dd-mm-yyyy hh:ii", "datepicker-nodefault": "false" } }, label: "Expires at"

      .col-md-offset-2
        %button.btn.btn-default{type: :submit}
          Update

{'fraction_non_alphanumeric': 0.18231540565177756, 'fraction_numerical': 0.009115770282588878, 'mean_word_length': 3.773913043478261, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 14, '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': '7299093', 'n_tokens_mistral': 407, 'n_tokens_neox': 394, 'n_words': 88}