<commit_before><div id="chooser">
<% if current_user %>
  <p class="chooser_status">
    <% ad = current_user.accessible_departments -%>
    <% if ad.size==1 -%>
      <%= ad.first.name %>
    <% else -%>
      <% form_tag('', {:id => 'chooser_form', :class => 'onchange_submit', :method => "get"}) do %>
        <%= collection_select 'chooser', "dept_id", ad, :id, :name, @department!=current_department ? {:include_blank =>true} : {:selected => current_department.id} %>
        <%= submit_tag value = "Switch", :id => 'submit_deptchooser', :class => 'no_js' %>
      <% end -%>
    <% end -%>
  </p>
<% end %>
</div><commit_msg>removed some unnecessary code<commit_after><div id="chooser">
<% if current_user %>
  <% ad = current_user.accessible_departments -%>
  <% if ad.size==1 -%>
    <%= ad.first.name %>
  <% else -%>
    <% form_tag('', {:id => 'chooser_form', :class => 'onchange_submit', :method => "get"}) do %>
      <%= collection_select 'chooser', "dept_id", ad, :id, :name, @department!=current_department ? {:include_blank =>true} : {:selected => current_department.id} %>
      <%= submit_tag value = "Switch", :id => 'submit_deptchooser', :class => 'no_js' %>
    <% end -%>
  <% end -%>
<% end %>
</div>
{'fraction_non_alphanumeric': 0.22875816993464052, 'fraction_numerical': 0.0016339869281045752, 'mean_word_length': 3.748062015503876, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 45, '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': '122246', 'n_tokens_mistral': 485, 'n_tokens_neox': 431, 'n_words': 85}