<commit_before><hr>
user::position_management#edit


<h2>Manage the positions on your profile:</h2>



<hr></br>
<%= form_for current_user, url: user_position_management_path do |f| %>
  <% @positions.each do |position| %>
    <%= f.fields_for :positions_users, PositionsUser.new do |pu_fields| %>
      <%= pu_fields.check_box :position_id, {id: "position_#{position.id}"}, position.id, nil %>
      <%= pu_fields.label :name, position.name, for: "position_#{position.id}" %>
      <%= pu_fields.text_field :skill_level %><br>
    <% end %>
  <% end %>
  <%= f.submit %>
<% end %>
<commit_msg>pass current position_feature specs for position management<commit_after><hr>
user::position_management#edit


<h2>Manage the positions on your profile:</h2>



<hr></br>
<%= form_for current_user, url: user_position_management_path do |f| %>
  <% @positions.each do |position| %>
    <%= f.fields_for :positions_users, PositionsUser.new do |pu_fields| %>
      <%= pu_fields.check_box :position_id, {checked: current_user.has_positions?(position), id: "position_#{position.id}"}, position.id, nil %>
      <%= pu_fields.label :name, position.name, for: "position_#{position.id}" %>
      <%= pu_fields.text_field :skill_level, value: current_user.has_positions?(position) ? current_user.skill_level(position) : '' %><br>
    <% end %>
  <% end %>
  <%= f.submit "Manage Position(s)" %>
<% end %>

{'fraction_non_alphanumeric': 0.17613227893601727, 'fraction_numerical': 0.002875629043853343, 'mean_word_length': 4.8, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 35, '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': '1454157', 'n_tokens_mistral': 519, 'n_tokens_neox': 476, 'n_words': 95}