<commit_before>-form_for(resource, :builder => YogoFormBuilder) do |f|
  = f.text_field(:name, :label => "Name:" )
  = f.text_field(:description, :label => "Description:")
  - SystemRole.available_permissions_by_source.each do |name, perms|
    .rbox
      %h3= name
      - perms.each do |p|
        = label_tag("system_role_actions_#{p}", p.to_s.humanize)
        = check_box_tag("system_role[actions][]", p.to_s, resource.actions.include?(p), :id => "system_role_actions_#{p}")
        %br/
  = f.submit('Save', :class => 'button-link')<commit_msg>Fixed up the system role page to be like the others.<commit_after>-form_for(resource, :builder => YogoFormBuilder) do |f|
  = f.text_field(:name, :label => "Name:" )
  = f.text_field(:description, :label => "Description:", :size => 80)
  %table
    %thead
      %th Name
      %th Create
      %th Retrieve
      %th Update
      %th Destroy
    %tbody
      - SystemRole.available_permissions_by_source.each do |name, perms|
        %tr
          %td.h3= name.demodulize.titleize
          - [3, 1, 0, 2].each do |idx|
            - p = perms[idx]
            %td
              - attribute_name = p.split(/\/|\$/).join('_')
              = check_box_tag("system_role[actions][]", p.to_s, resource.actions.include?(p), 
                              :id => "system_role_action_#{attribute_name}" )
  = f.submit('Save', :class => 'icon icon-save')

{'fraction_non_alphanumeric': 0.1659513590844063, 'fraction_numerical': 0.005722460658082976, 'mean_word_length': 2.681578947368421, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 14, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2477284', 'n_tokens_mistral': 489, 'n_tokens_neox': 483, 'n_words': 94}