<commit_before>- if object && object.respond_to?("model_type_list") && current_visitor.has_role?("admin", "manager")
  = field_set_tag 'Model Types' do
    .aligned
      = hidden_field_tag :update_model_types, "true"
      %ul.menu_h
        - Admin::Tag.find_all_by_scope("model_types").each do |admin_tag|
          %li
            - label_str = "model_types_#{admin_tag.tag.underscore}"
            = label_tag label_str, admin_tag.tag
            = check_box_tag "model_types[]", admin_tag.tag, object.model_type_list.include?(admin_tag.tag), :id => label_str
<commit_msg>Allow only one model_type to be selected for an interactive.[#91009254]<commit_after>- if object && object.respond_to?("model_type_list") && current_visitor.has_role?("admin", "manager")
  = field_set_tag 'Model Types' do
    .aligned
      = hidden_field_tag :update_model_types, "true"
      %ul.menu_h
        - Admin::Tag.find_all_by_scope("model_types").each do |admin_tag|
          %li
            - label_str = "model_types_#{admin_tag.tag.underscore}"
            = label_tag label_str, admin_tag.tag
            = radio_button_tag "model_types[]", admin_tag.tag, object.model_type_list.include?(admin_tag.tag), :id => label_str

{'fraction_non_alphanumeric': 0.12839506172839507, 'fraction_numerical': 0.006584362139917695, 'mean_word_length': 3.554307116104869, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '1449787', 'n_tokens_mistral': 412, 'n_tokens_neox': 407, 'n_words': 69}