<commit_before>- attr_ids_method = "#{attribute_name.to_s.singularize}_ids"
- attr_ids = f.object.send(attr_ids_method)
- attr_name = "#{f.object_name}[#{attr_ids_method}][]"
- opts = reflection.options.slice(:conditions, :order)

h3= Tag.han(attribute_name)
= hidden_field_tag attr_name, nil
- reflection.klass.roots.all(opts).each do |root|
  .checkbox_tree_input
    label.checkbox
      = check_box_tag attr_name, root.id, attr_ids.include?(root.id)
      b= AbAdmin.display_name(root)
    - root.children.all(opts).each do |child|
      label.checkbox
        = check_box_tag attr_name, child.id, attr_ids.include?(child.id)
        = AbAdmin.display_name(child)
hr<commit_msg>fix checkbox_tree label<commit_after>- attr_ids_method = "#{attribute_name.to_s.singularize}_ids"
- attr_ids = f.object.send(attr_ids_method)
- attr_name = "#{f.object_name}[#{attr_ids_method}][]"
- opts = reflection.options.slice(:conditions, :order)

h3= f.object.class.han(attribute_name)
= hidden_field_tag attr_name, nil
- reflection.klass.roots.all(opts).each do |root|
  .checkbox_tree_input
    label.checkbox
      = check_box_tag attr_name, root.id, attr_ids.include?(root.id)
      b= AbAdmin.display_name(root)
    - root.children.all(opts).each do |child|
      label.checkbox
        = check_box_tag attr_name, child.id, attr_ids.include?(child.id)
        = AbAdmin.display_name(child)
hr
{'fraction_non_alphanumeric': 0.1371841155234657, 'fraction_numerical': 0.001444043321299639, 'mean_word_length': 4.435294117647059, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3829874', 'n_tokens_mistral': 496, 'n_tokens_neox': 496, 'n_words': 73}