<commit_before>.content
  .inner
    - if form_for != "edit"
      %div.group.form
        %label.label Name
        = text_field :id => "client_name", :name => "name", :class => "text_field", :value => params.has_key?(:name) ? h(params[:name]) : @client.name
        %span.description The name of the Client
    
    - if form_for == "edit"
      %div.group.form
        %label.label Private Key
        = check_box :name => "regen_private_key", :label => "Regenerate Private Key (Existing one will no longer work!)", :value => "1"
        %br
        
    %div.group.form
      %label.label Admin
      = text_field :id => "client_admin", :name => "admin", :class => "text_field", :value => @client.admin
      %span.description Whether or not the Client is an admin
      
    = form(:action => form_url, :method => :post, :id => form_id, :class => 'form') do
      %div.group
        .actions-bar
          .actions= submit submit_name, :id => submit_id, :class => 'button'
<commit_msg>chef-840: convert clients admin textbox to a checkbox<commit_after>.content
  .inner
    - if form_for != "edit"
      %div.group.form
        %label.label Name
        = text_field :id => "client_name", :name => "name", :class => "text_field", :value => params.has_key?(:name) ? h(params[:name]) : @client.name
        %span.description The name of the Client
    
    - if form_for == "edit"
      %div.group.form
        %label.label Private Key
        = check_box :name => "regen_private_key", :label => "Regenerate Private Key (Existing one will no longer work!)", :value => "1"
        %br
        
    %div.group.form
      %label.label Admin
      = check_box :id => "client_admin", :name => "admin", :value => "true", :label => "Whether or not the Client is an admin", :checked => @client.admin

    = form(:action => form_url, :method => :post, :id => form_id, :class => 'form') do
      %div.group
        .actions-bar
          .actions= submit submit_name, :id => submit_id, :class => 'button'

{'fraction_non_alphanumeric': 0.15615615615615616, 'fraction_numerical': 0.0025025025025025025, 'mean_word_length': 2.6279491833030852, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 38, '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': '4532792', 'n_tokens_mistral': 637, 'n_tokens_neox': 631, 'n_words': 181}