<commit_before><%= form_for @member, :html => {:class => 'form-horizontal', :multipart => true } do |f| %>
  <% if @member.errors.any? %>
    <% @member.errors.full_messages.each do |msg| %>
      <div class="alert alert-danger"><%= msg %></div>
    <% end %>
  <% end %>
    <div class="form-group">
      <%= f.label :name, :class => 'col-sm-2 control-label' %>
      <div class="col-sm-10"><%= f.text_field :name, :class => 'form-control' %></div>
    </div>

    <div class="form-group">
      <%= f.label :gender, :class => 'col-sm-2 control-label' %>
      <div class="col-sm-10">
      <%= f.select :gender, options_for_select(@genders.collect { |s| [s[0].humanize, s[0]] }, selected: @member.gender), {} , class: "form-control"%></div>
    </div>

    <div class="form-group">
      <%= f.label :profession_id, :class => 'col-sm-2 control-label' %>
      <div class="col-sm-10">
        <%= f.select :profession_id, Profession.all.collect {|p| [ p.name, p.id ] }, {}, class: "select2" , id: "selected_profession" %>
      </div>
    </div>

    
    <% if locale == "en" %> <commit_msg>modified other profeession triger according to locale<commit_after><%= form_for @member, :html => {:class => 'form-horizontal', :multipart => true } do |f| %>
  <% if @member.errors.any? %>
    <% @member.errors.full_messages.each do |msg| %>
      <div class="alert alert-danger"><%= msg %></div>
    <% end %>
  <% end %>
    <div class="form-group">
      <%= f.label :name, :class => 'col-sm-2 control-label' %>
      <div class="col-sm-10"><%= f.text_field :name, :class => 'form-control' %></div>
    </div>

    <div class="form-group">
      <%= f.label :gender, :class => 'col-sm-2 control-label' %>
      <div class="col-sm-10">
      <%= f.select :gender, options_for_select(@genders.collect { |s| [s[0].humanize, s[0]] }, selected: @member.gender), {} , class: "form-control"%></div>
    </div>

    <div class="form-group">
      <%= f.label :profession_id, :class => 'col-sm-2 control-label' %>
      <div class="col-sm-10">
        <%= f.select :profession_id, Profession.all.collect {|p| [ p.name, p.id ] }, {}, class: "select2" , id: "selected_profession" %>
      </div>
    </div>

    
    <% if I8n.locale == :en %> 
{'fraction_non_alphanumeric': 0.23307933662034963, 'fraction_numerical': 0.011205737337516808, 'mean_word_length': 2.9857142857142858, 'pattern_counts': {'":': 0, '<': 57, '<?xml version=': 0, '>': 71, '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': '103797', 'n_tokens_mistral': 864, 'n_tokens_neox': 803, 'n_words': 168}