<commit_before>= simple_form_for(@category,
  :html => {:class => 'form-vertical library_category_form' },
  :wrapper => :vertical_form,
  :wrapper_mappings => {:check_boxes => :vertical_radio_and_checkboxes, :radio_buttons => :vertical_radio_and_checkboxes, :file => :vertical_file_input, :boolean => :vertical_boolean}) do |f|

  - if current_user.has_role? :manager
    = f.input :public, :collection => [['No', false],['Yes', true]], :include_blank => false
  - if current_user.organizations.count > 1
    = f.association :organization, :collection => current_user.organizations, :label_method => 'coded_name', :required => true
  = f.input :name, :required => true, :input_html => {:maxlength => 64}
  = f.input :description, :required => true, :input_html => {:maxlength => 254}
  = f.input :active, :collection => [['No', false],['Yes', true]], :include_blank => false

  = f.button :submit, :class => "btn btn-primary"

:javascript
  $( '.library_category_public').change(function() {
    if(library_category_public.value == 'true') {<commit_msg>[fixes##126307407] hide org on document ready if public category<commit_after>= simple_form_for(@category,
  :html => {:class => 'form-vertical library_category_form' },
  :wrapper => :vertical_form,
  :wrapper_mappings => {:check_boxes => :vertical_radio_and_checkboxes, :radio_buttons => :vertical_radio_and_checkboxes, :file => :vertical_file_input, :boolean => :vertical_boolean}) do |f|

  - if current_user.has_role? :manager
    = f.input :public, :collection => [['No', false],['Yes', true]], :include_blank => false
  - if current_user.organizations.count > 1
    = f.association :organization, :collection => current_user.organizations, :label_method => 'coded_name', :required => true
  = f.input :name, :required => true, :input_html => {:maxlength => 64}
  = f.input :description, :required => true, :input_html => {:maxlength => 254}
  = f.input :active, :collection => [['No', false],['Yes', true]], :include_blank => false

  = f.button :submit, :class => "btn btn-primary"

:javascript

  if(library_category_public.value == 'true') {
    library_category_organization_id.value = '';
    $('.library_category_organization').hide();
  } else {
    $('.library_category_organization').show();
  }

  $( '.library_category_public').change(function() {
    if(library_category_public.value == 'true') {
{'fraction_non_alphanumeric': 0.17475728155339806, 'fraction_numerical': 0.008864499788940482, 'mean_word_length': 5.475409836065574, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 49, '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': '1778977', 'n_tokens_mistral': 772, 'n_tokens_neox': 731, 'n_words': 158}