<commit_before><script>
$(document).ready(function(){
  $('#user_institution_id').change(function() {
    if(this.value == "") {
      $('#institution_name').show();
      $('#name_of_other_institution').show();
    }else{
      $('#institution_name').hide();
      $('#name_of_other_institution').hide();
    }
  });
});
</script>
<tr><td><label for="user_institutions"><b><%=t ".inst_name"%>: </b></label></td><td>
    <%= collection_select('user',:institution_id, Institution.all.order(:name), :id, :name, {include_blank: 'Other', selected: 1}, :class => "form-control width-250") %></td></tr>
    <tr><td><label id="name_of_other_institution" style="display: none">Name of other institution: </label></td><td>
    <%= text_field 'institution', 'name', style: 'display: none', class: "form-control width-250" %></td></tr>
<commit_msg>fix #2361 (#2423)<commit_after><script>
$(document).ready(function(){
  $('#user_institution_id').change(function() {
    if(this.value == "") {
      $('#institution_name').show();
      $('#name_of_other_institution').show();
    }else{
      $('#institution_name').hide();
      $('#name_of_other_institution').hide();
    }
  });
});
</script>
<tr><td><label for="user_institutions"><b><%=t ".inst_name"%>: </b></label></td><td>
    <%= collection_select(:user, :institution_id, Institution.all.order(:name), :id, :name, {include_blank: 'Other'}, :class => "form-control width-250") %></td></tr>
    <tr><td><label id="name_of_other_institution" style="display: none">Name of other institution: </label></td><td>
    <%= text_field 'institution', 'name', style: 'display: none', class: "form-control width-250" %></td></tr>

{'fraction_non_alphanumeric': 0.24924924924924924, 'fraction_numerical': 0.012612612612612612, 'mean_word_length': 5.358778625954199, 'pattern_counts': {'":': 0, '<': 49, '<?xml version=': 0, '>': 51, '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': '1673408', 'n_tokens_mistral': 578, 'n_tokens_neox': 566, 'n_words': 89}