<commit_before>-content_for :main do

  #main-index

    %h1
      = "Listing doctypes for"
      = current_group.name
    %small
      = link_to current_group.name, group_path(current_group)

    %p
      = link_to 'New doctype', new_doctype_path #(@group)

    %p
      %table{:class => "doctype_index"}
        %tr
          %th
            = "name"
          %th
            = "order"
          %th
            = "#"
          %th
            = "Hidden?"
          %th
            = "Has video?"
          %th
            = "Has link?"
          %th
            = "Custom_icon?"
          %th
            = "actions"
        - current_group.doctypes.each do |doctype|
          %tr
            %td
              = doctype.name.to_s
            %td.order
              -form_tag move_doctype_path(doctype) do
                = submit_tag("up", :name=>"move_to", :value => "up") 
                = submit_tag("down", :name=>"move_to", :value => "down")
            %td
              = "#{doctype.items.count.to_i}"
            %td
              = "#{doctype.hidden}"
            %td
              = "#{doctype.has_video}"
            %td
              = "#{doctype.has_link}"
            %td
              = "#{doctype.custom_icon}"
            %td
              = link_to 'List Items', list_doctype_path(doctype)
              = link_to 'Show', doctype_path(doctype)
              = link_to 'Edit', edit_doctype_path(doctype)
              = link_to 'Destroy', doctype_path(doctype), :confirm => 'Are you sure?', :method => :delete




<commit_msg>Minor bug in doctypes<commit_after>-content_for :main do

  #main-index

    %h1
      = "Listing doctypes for"
      = current_group.name
    %small
      = link_to current_group.name, group_path(current_group)

    %p
      = link_to 'New doctype', new_doctype_path #(@group)

    %p
      %table{:class => "doctype_index"}
        %tr
          %th
            = "name"
          %th
            = "order"
          %th
            = "#"
          %th
            = "Hidden?"
          %th
            = "Has video?"
          %th
            = "Has link?"
          %th
            = "Custom_icon?"
          %th
            = "actions"
        - current_group.doctypes.each do |doctype|
          %tr
            %td
              = doctype.name.to_s
            %td.order
              -form_tag move_doctype_path(doctype) do
                = submit_tag("up", :name=>"move_to", :value => "up") 
                = submit_tag("down", :name=>"move_to", :value => "down")
            %td
              = "#{doctype.items.count.to_i}"
            %td
              = "#{doctype.hidden}"
            %td
              = "#{doctype.has_video.to_s}"
            %td
              = "#{doctype.has_link.to_s}"
            %td
              = "#{doctype.custom_icon}"
            %td
              = link_to 'List Items', list_doctype_path(doctype)
              = link_to 'Show', doctype_path(doctype)
              = link_to 'Edit', edit_doctype_path(doctype)
              = link_to 'Destroy', doctype_path(doctype), :confirm => 'Are you sure?', :method => :delete





{'fraction_non_alphanumeric': 0.13076923076923078, 'fraction_numerical': 0.000641025641025641, 'mean_word_length': 1.291483113069016, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 17, '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': '4991680', 'n_tokens_mistral': 1035, 'n_tokens_neox': 971, 'n_words': 179}