<commit_before><div class="container">
  <ol class="breadcrumb">
    <li > <%= link_to t(:users).humanize, users_path %> </li>
    <% if action_name == 'new' %>
      <li class="active"> <%= t(:add).humanize %></li>
    <% else %>
      <li class="active"> <%= t(:edit).humanize %></li>
    <% end %>
  </ol>
  <div class="row">
    <div class="col-lg-6 col-lg-offset-3">

      <div class="panel panel-default">
        <div class="panel-heading clearfix">
          <% if action_name == 'new' %>
            <h4><%= t(:add_user).humanize %></h4>
          <% else %>
            <h4><%= t(:edit_user).humanize %></h4>
          <% end %>
        </div>
        <div class="panel-body">

          <%= form_for @user, html: {class: "form-horizontal"} do |f| %>
            <% if @user.errors.any? %>
              <div id="error_explanation" class="alert alert-danger">
                <h2><%= pluralize(@user.errors.count, "error") %>:</h2>

                <ul>
                  <% @user.errors.full_messages.each do |message| %>
                    <li><%= message %></li>
                  <% end %>
                </ul>
              </div>
            <% end %>

            <div class="form-group">
              <%= f.label t(:email), class: "col-sm-3 control-label" %>
              <div class="col-sm-9">
                <%= f.text_field :email, class: "form-control", placeholder: t(:email).humanize %>
              </div>
            </div>

            <div class="form-group">
              <%= f.label t(:first_name), class: "col-sm-3 control-label" %>
              <div class="col-sm-9">
                <%= f.text_field :first_name, class: "form-control", placeholder: t(:first_name).humanize %>
              </div>
            </div>
            <div class="form-group">
              <%= f.label t(:second_name), class: "col-sm-3 control-label" %>
              <div class="col-sm-9">
                <%= f.text_field :second_name, class: "form-control", placeholder: t(:second_name).humanize %>
              </div>
            </div>

            <div class="form-group">
              <%= f.label t(:last_name), class: "col-sm-3 control-label" %>
              <div class="col-sm-9">
                <%= f.text_field :last_name, class: "form-control", placeholder: t(:last_name).humanize %>
              </div>
            </div>

            <div class="form-group">
              <%= f.label t(:rut), class: "col-sm-3 control-label" %>
              <div class="col-sm-9">
                <%= f.text_field :rut, class: "form-control", placeholder: t(:rut).humanize %>
              </div>
            </div>

            <div class="form-group">
              <%= f.label t(:birthdate), class: "col-sm-3 control-label" %>
              <div class="col-sm-9">
                <%= f.date_field :birthdate, class: "form-control", placeholder: t(:birthdate).humanize, include_blank: true %>
              </div>
            </div>

            <div class="form-group">
              <%= f.label t(:city), class: "col-sm-3 control-label" %>
              <div class="col-sm-9">
                <%= f.text_field :city, class: "form-control", placeholder: t(:city).humanize, include_blank: true %>
              </div>
            </div>

            <div class="form-group">
              <%= f.label t(:description), class: "col-sm-3 control-label" %>
              <div class="col-sm-9">
                <%= f.text_area :description, class: "form-control", placeholder: t(:description).humanize, include_blank: true %>
              </div>
            </div>

            <div class="form-group">
              <%= f.label t(:mobile_number), class: "col-sm-3 control-label" %>
              <div class="col-sm-9">
                <%= f.text_field :mobile_number, class: "form-control", placeholder: t(:mobile_number).humanize, include_blank: true %>
              </div>
            </div>

            <div class="form-group">
              <%= f.label t(:twitter_user), class: "col-sm-3 control-label" %>
              <div class="col-sm-9">
                <%= f.text_field :twitter_user, class: "form-control", placeholder: t(:twitter_user).humanize, include_blank: true %>
              </div>
            </div>

            <hr />

            <div class="form-group">
              <%= f.label t(:active_member_until), class: "col-sm-3 control-label" %>
              <div class="col-sm-9">
                <%= f.date_field :active_member_until, class: "form-control", include_blank: true %>
              </div>
            </div>

            <hr />

            <% if action_name != "new" %>
              <div class="form-group">
                <%= f.label t(:password), class: "col-sm-3 control-label" %>
                <div class="col-sm-9">
                  <%= f.password_field :password, class: "form-control", placeholder: t(:password).humanize %>
                </div>
              </div><commit_msg>can only modify active_member_until if current_user is an admin<commit_after><div class="container">
  <ol class="breadcrumb">
    <li > <%= link_to t(:users).humanize, users_path %> </li>
    <% if action_name == 'new' %>
      <li class="active"> <%= t(:add).humanize %></li>
    <% else %>
      <li class="active"> <%= t(:edit).humanize %></li>
    <% end %>
  </ol>
  <div class="row">
    <div class="col-lg-6 col-lg-offset-3">

      <div class="panel panel-default">
        <div class="panel-heading clearfix">
          <% if action_name == 'new' %>
            <h4><%= t(:add_user).humanize %></h4>
          <% else %>
            <h4><%= t(:edit_user).humanize %></h4>
          <% end %>
        </div>
        <div class="panel-body">

          <%= form_for @user, html: {class: "form-horizontal"} do |f| %>
            <% if @user.errors.any? %>
              <div id="error_explanation" class="alert alert-danger">
                <h2><%= pluralize(@user.errors.count, "error") %>:</h2>

                <ul>
                  <% @user.errors.full_messages.each do |message| %>
                    <li><%= message %></li>
                  <% end %>
                </ul>
              </div>
            <% end %>

            <div class="form-group">
              <%= f.label t(:email), class: "col-sm-3 control-label" %>
              <div class="col-sm-9">
                <%= f.text_field :email, class: "form-control", placeholder: t(:email).humanize %>
              </div>
            </div>

            <div class="form-group">
              <%= f.label t(:first_name), class: "col-sm-3 control-label" %>
              <div class="col-sm-9">
                <%= f.text_field :first_name, class: "form-control", placeholder: t(:first_name).humanize %>
              </div>
            </div>
            <div class="form-group">
              <%= f.label t(:second_name), class: "col-sm-3 control-label" %>
              <div class="col-sm-9">
                <%= f.text_field :second_name, class: "form-control", placeholder: t(:second_name).humanize %>
              </div>
            </div>

            <div class="form-group">
              <%= f.label t(:last_name), class: "col-sm-3 control-label" %>
              <div class="col-sm-9">
                <%= f.text_field :last_name, class: "form-control", placeholder: t(:last_name).humanize %>
              </div>
            </div>

            <div class="form-group">
              <%= f.label t(:rut), class: "col-sm-3 control-label" %>
              <div class="col-sm-9">
                <%= f.text_field :rut, class: "form-control", placeholder: t(:rut).humanize %>
              </div>
            </div>

            <div class="form-group">
              <%= f.label t(:birthdate), class: "col-sm-3 control-label" %>
              <div class="col-sm-9">
                <%= f.date_field :birthdate, class: "form-control", placeholder: t(:birthdate).humanize, include_blank: true %>
              </div>
            </div>

            <div class="form-group">
              <%= f.label t(:city), class: "col-sm-3 control-label" %>
              <div class="col-sm-9">
                <%= f.text_field :city, class: "form-control", placeholder: t(:city).humanize, include_blank: true %>
              </div>
            </div>

            <div class="form-group">
              <%= f.label t(:description), class: "col-sm-3 control-label" %>
              <div class="col-sm-9">
                <%= f.text_area :description, class: "form-control", placeholder: t(:description).humanize, include_blank: true %>
              </div>
            </div>

            <div class="form-group">
              <%= f.label t(:mobile_number), class: "col-sm-3 control-label" %>
              <div class="col-sm-9">
                <%= f.text_field :mobile_number, class: "form-control", placeholder: t(:mobile_number).humanize, include_blank: true %>
              </div>
            </div>

            <div class="form-group">
              <%= f.label t(:twitter_user), class: "col-sm-3 control-label" %>
              <div class="col-sm-9">
                <%= f.text_field :twitter_user, class: "form-control", placeholder: t(:twitter_user).humanize, include_blank: true %>
              </div>
            </div>

            <% if current_user.admin? %>
              <hr />

              <div class="form-group">
                <%= f.label t(:active_member_until), class: "col-sm-3 control-label" %>
                <div class="col-sm-9">
                  <%= f.date_field :active_member_until, class: "form-control", include_blank: true %>
                </div>
              </div>
            <% end %>

            <hr />

            <% if action_name != "new" %>
              <div class="form-group">
                <%= f.label t(:password), class: "col-sm-3 control-label" %>
                <div class="col-sm-9">
                  <%= f.password_field :password, class: "form-control", placeholder: t(:password).humanize %>
                </div>
              </div>
{'fraction_non_alphanumeric': 0.1814737261940373, 'fraction_numerical': 0.006381493668361751, 'mean_word_length': 1.6153846153846154, 'pattern_counts': {'":': 0, '<': 245, '<?xml version=': 0, '>': 245, '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': '7295026', 'n_tokens_mistral': 3233, 'n_tokens_neox': 2967, 'n_words': 600}