<commit_before>= bootstrap_form_for [:editor, @category], layout: :horizontal, label_col: 'col-sm-2', control_col: 'col-sm-10' do |f|
  = f.text_field :name
  = f.text_area :description, class: "markdown-editor", data: {upload_path: editor_images_url}
  = f.text_field :slug, help: "URLの一部に使うこのカテゴリを表すわかりやすい英単語を指定します"
  - help_text = "親カテゴリを指定します。指定しない場合はトップレベルのカテゴリになります"
  = f.collection_select :parent_id, current_site.categories.parental, :id, :name, {include_blank: true, help: help_text}, {class: "select2", "data-select2-allow-clear": true}

  = f.form_group do
    = f.submit<commit_msg>Display full_name to select parent category<commit_after>= bootstrap_form_for [:editor, @category], layout: :horizontal, label_col: 'col-sm-2', control_col: 'col-sm-10' do |f|
  = f.text_field :name
  = f.text_area :description, class: "markdown-editor", data: {upload_path: editor_images_url}
  = f.text_field :slug, help: "URLの一部に使うこのカテゴリを表すわかりやすい英単語を指定します"
  - help_text = "親カテゴリを指定します。指定しない場合はトップレベルのカテゴリになります"
  = f.collection_select :parent_id, current_site.categories.parental, :id, :full_name, {include_blank: true, help: help_text}, {class: "select2", "data-select2-allow-clear": true}

  = f.form_group do
    = f.submit
{'fraction_non_alphanumeric': 0.14204081632653062, 'fraction_numerical': 0.00816326530612245, 'mean_word_length': 6.045977011494253, 'pattern_counts': {'":': 2, '<': 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': '3859396', 'n_tokens_mistral': 538, 'n_tokens_neox': 527, 'n_words': 90}