<commit_before><%- if @cf.valid? %>
  <%- 
    bd = @cf.birthdate 
    conf = ItalianRails.config.codice_fiscale
  %>
  (function($){
    <%- if not conf.birthdate_selector.blank? %>
      $('<%=conf.birthdate_selector%>').val('<%=conf.birthdate_localize ? I18n.l(bd) : bd.to_s %>');
    <%- end %>
    <%- if not conf.birthdate_day_selector.blank? %>
      $('<%=conf.birthdate_day_selector%>').val('<%=bd.day%>');
    <%- end %>
    <%- if not conf.birthdate_month_selector.blank? %>
      $('<%=conf.birthdate_month_selector%>').val('<%=bd.month%>');
    <%- end %>
    <%- if not conf.birthdate_year_selector.blank? %>
      $('<%=conf.birthdate_year_selector%>').val('<%=bd.year%>');
    <%- end %>
    <%- if @birthplaces && @birthplaces.count > 0 %>
      $('<%=conf.birthplace_selector%>').autocomplete({
        autoFocus: true,
        minLength: 0,
        source: <%=raw @birthplaces.to_json%>
      });
    <%- end %>
  })( jQuery );
<%- end %><commit_msg>First birthplace automatically inserted<commit_after><%- if @cf.valid? %>
  <%- 
    bd = @cf.birthdate 
    conf = ItalianRails.config.codice_fiscale
  %>
  (function($){
    <%- if not conf.birthdate_selector.blank? %>
      $('<%=conf.birthdate_selector%>').val('<%=conf.birthdate_localize ? I18n.l(bd) : bd.to_s %>');
    <%- end %>
    <%- if not conf.birthdate_day_selector.blank? %>
      $('<%=conf.birthdate_day_selector%>').val('<%=bd.day%>');
    <%- end %>
    <%- if not conf.birthdate_month_selector.blank? %>
      $('<%=conf.birthdate_month_selector%>').val('<%=bd.month%>');
    <%- end %>
    <%- if not conf.birthdate_year_selector.blank? %>
      $('<%=conf.birthdate_year_selector%>').val('<%=bd.year%>');
    <%- end %>
    <%- if @birthplaces && @birthplaces.count > 0 %>
      $('<%=conf.birthplace_selector%>').autocomplete({
        autoFocus: true,
        minLength: 0,
        source: <%=raw @birthplaces.to_json%>
      });
      if($('<%=conf.birthplace_selector%>').val() == ''){
        $('<%=conf.birthplace_selector%>').val('<%=@birthplaces[0]%>');
      }
    <%- end %>
  })( jQuery );
<%- end %>
{'fraction_non_alphanumeric': 0.24310180780209326, 'fraction_numerical': 0.004281636536631779, 'mean_word_length': 3.0994152046783627, 'pattern_counts': {'":': 0, '<': 52, '<?xml version=': 0, '>': 54, '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': '5930092', 'n_tokens_mistral': 880, 'n_tokens_neox': 749, 'n_words': 95}