<commit_before>
<table width="100%" id="user_form_markup">
  <tr>
    <td valign="top" id="firstcol">
      <p>
        <%= form.label :login %>
        <%= form.text_field :login %>
      </p>
      <p>
        <%= form.label :email_address, ('Email Address (must be a .edu address)' if @user.new_record?) %>
        <%= form.text_field :email_address %>
      </p>
      <p>
        <%= form.label :attribution, "Name" %>
        <%= form.text_field :attribution %>
      </p>
      <p>
        <%= form.label :title %>
        <%= form.text_field :title %>
      </p>
<!--
      <p>
        <%= form.label :url %>
        <%= form.text_field :url %>
      </p>
-->
      <p>
        <%= form.label :affiliation %>
        <%= form.text_field :affiliation %>
      </p>
<!--
      <p>
        <%= form.label :description %>
        <%= form.text_area :description, :rows => 5, :class => "no_tinymce" %>
      </p>
-->
    </td>
    <td valign="top" id="secondcol">
      <p>Default display settings:</p>
      <% if !@user.new_record? -%>
        <p>
          <%= form.label :default_show_comments, "Show Comments" %>
          <%= form.select :default_show_comments, [['Yes', true], ['No', false]] %>
        </p>
        <p>
          <%= form.label :default_show_paragraph_numbers, "Show Paragraph Numbers" %>
          <%= form.select :default_show_paragraph_numbers, [['Yes', true], ['No', false]] %>
        </p>
        <p>
          <%= form.label :default_font_size %>
          <%= form.select :default_font_size, [['small (10px)', '10'], ['medium (13px)', '13'], ['large (16px)', '16'], ['extra-large (19px)', '19']], :selected => @user.default_font_size.to_s %>
        </p>
        <p>
          <%= form.label :default_font %>
          <%= form.select :default_font, [['Futura', 'futura'], ['Leitura', 'leitura'], ['Garamond', 'garamond'], ['Goudy', 'goudy'], ['Verdana', 'verdana'], ['Proxima Nova', 'proxima'], ['Dagny Web', 'dagny']], :selected => @user.default_font.to_s %>
        </p>
        <% if @user.canvas_id.present? -%>
        <p>
          Connected to Canvas <%= link_to '(remove)', disconnect_canvas_user_path(@user), :class => "user-disconnect" %>
        </p>
        <% end %>
        <% if @user.has_dropbox_token? -%>
        <p>
          Connected to Dropbox <%= link_to '(remove)', disconnect_dropbox_user_path(@user), :class => "user-disconnect" %>
        </p>
        <% end -%>
        <p>
          <%= form.check_box :tab_open_new_items %>
          Open new collages, media, texts, playlists, etc. in a new tab?
        </p>
      <% end %>
      <p>
        <%= form.label :tz_name, "Timezone" %>
        <%= form.time_zone_select :tz_name, ActiveSupport::TimeZone.us_zones, { :include_blank => true } %>
      </p>
      <p>
        <%= form.label :password, form.object.new_record? ? nil : "Change password" %>
        <%= form.password_field :password %>
      </p>
      <p>
        <%= form.label :password_confirmation %>
        <%= form.password_field :password_confirmation %>
      </p>
      <% if form.object.new_record? -%>
      <ul>
      <%= render :partial => 'shared/captcha', :locals => { :single_resource => @user } %>
      </ul>
      <% end -%>
    </td>
    <% if !@user.new_record? -%>
    <td valign="top" id="thirdcol">
      <p>Default print display settings:</p>
      <p>
        <%= form.label :print_export_format %>
        <%= form.select :print_export_format, [['Word DOC', 'doc'], ['Adobe PDF', 'pdf']] %>
      </p>
      <p>
        <%= form.label :print_titles %>
        <%= form.select :print_titles, [['Yes', true], ['No', false]] %>
      </p>
      <p>
        <%= form.label :toc_levels, "TOC Levels" %>
        <%= form.select :toc_levels, [['None', ''], ['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5']] %>
      </p>
      <p>
        <%= form.label :print_paragraph_numbers %>
        <%= form.select :print_paragraph_numbers, [['Yes', true], ['No', false]] %>
      </p>
      <p>
        <%= form.label :print_annotations, "Print Comments" %>
        <%= form.select :print_annotations, [['Yes', true], ['No', false]] %>
      </p>
      <p>
        <%= form.label :print_links, "Print Links" %>
        <%= form.select :print_links, [['Yes', true], ['No', false]] %>
      </p>
      <p>
        <%= form.label :print_highlights %>
        <%= form.select :print_highlights, [['Original', 'original'], ['None', 'none'], ['All', 'all']] %>
      </p>
      <p>
        <%= form.label :hidden_text_display, "Hidden Text" %>
        <%= form.select :hidden_text_display, [['Hide', false], ['Show', true]] %>
      </p>
      <p>
        <%= form.label :print_font_face %>
        <%= form.select :print_font_face, [['futura', 'futura'], ['leitura', 'leitura'], ['garamond', 'garamond'], ['goudy', 'goudy'], ['verdana', 'verdana'], ['proxima', 'proxima'], ['dagny', 'dagny']], :selected => @user.print_font_face %>
      </p>
      <p>
        <%= form.label :print_font_size %>
        <%= form.select :print_font_size, [['small', 'small'], ['medium', 'medium'], ['large', 'large'], ['xlarge', 'xlarge']], :selected => @user.print_font_size %>
      </p>
    </td>
    <% end -%>
  </tr>
  <% if form.object.new_record? -%>
  <tr>
    <td colspan="3" align="center" style="padding:10px 0px;">
      <%= form.check_box :terms %>
      I certify that I have read and agree to the <a href="/p/terms" target="_blank">Terms of Service</a>.
    </td>
  </tr>
  <% end -%>
</table><commit_msg>put label around terms checkbox<commit_after>
<table width="100%" id="user_form_markup">
  <tr>
    <td valign="top" id="firstcol">
      <p>
        <%= form.label :login %>
        <%= form.text_field :login %>
      </p>
      <p>
        <%= form.label :email_address, ('Email Address (must be a .edu address)' if @user.new_record?) %>
        <%= form.text_field :email_address %>
      </p>
      <p>
        <%= form.label :attribution, "Name" %>
        <%= form.text_field :attribution %>
      </p>
      <p>
        <%= form.label :title %>
        <%= form.text_field :title %>
      </p>
<!--
      <p>
        <%= form.label :url %>
        <%= form.text_field :url %>
      </p>
-->
      <p>
        <%= form.label :affiliation %>
        <%= form.text_field :affiliation %>
      </p>
<!--
      <p>
        <%= form.label :description %>
        <%= form.text_area :description, :rows => 5, :class => "no_tinymce" %>
      </p>
-->
    </td>
    <td valign="top" id="secondcol">
      <p>Default display settings:</p>
      <% if !@user.new_record? -%>
        <p>
          <%= form.label :default_show_comments, "Show Comments" %>
          <%= form.select :default_show_comments, [['Yes', true], ['No', false]] %>
        </p>
        <p>
          <%= form.label :default_show_paragraph_numbers, "Show Paragraph Numbers" %>
          <%= form.select :default_show_paragraph_numbers, [['Yes', true], ['No', false]] %>
        </p>
        <p>
          <%= form.label :default_font_size %>
          <%= form.select :default_font_size, [['small (10px)', '10'], ['medium (13px)', '13'], ['large (16px)', '16'], ['extra-large (19px)', '19']], :selected => @user.default_font_size.to_s %>
        </p>
        <p>
          <%= form.label :default_font %>
          <%= form.select :default_font, [['Futura', 'futura'], ['Leitura', 'leitura'], ['Garamond', 'garamond'], ['Goudy', 'goudy'], ['Verdana', 'verdana'], ['Proxima Nova', 'proxima'], ['Dagny Web', 'dagny']], :selected => @user.default_font.to_s %>
        </p>
        <% if @user.canvas_id.present? -%>
        <p>
          Connected to Canvas <%= link_to '(remove)', disconnect_canvas_user_path(@user), :class => "user-disconnect" %>
        </p>
        <% end %>
        <% if @user.has_dropbox_token? -%>
        <p>
          Connected to Dropbox <%= link_to '(remove)', disconnect_dropbox_user_path(@user), :class => "user-disconnect" %>
        </p>
        <% end -%>
        <p>
          <%= form.check_box :tab_open_new_items %>
          Open new collages, media, texts, playlists, etc. in a new tab?
        </p>
      <% end %>
      <p>
        <%= form.label :tz_name, "Timezone" %>
        <%= form.time_zone_select :tz_name, ActiveSupport::TimeZone.us_zones, { :include_blank => true } %>
      </p>
      <p>
        <%= form.label :password, form.object.new_record? ? nil : "Change password" %>
        <%= form.password_field :password %>
      </p>
      <p>
        <%= form.label :password_confirmation %>
        <%= form.password_field :password_confirmation %>
      </p>
      <% if form.object.new_record? -%>
      <ul>
      <%= render :partial => 'shared/captcha', :locals => { :single_resource => @user } %>
      </ul>
      <% end -%>
    </td>
    <% if !@user.new_record? -%>
    <td valign="top" id="thirdcol">
      <p>Default print display settings:</p>
      <p>
        <%= form.label :print_export_format %>
        <%= form.select :print_export_format, [['Word DOC', 'doc'], ['Adobe PDF', 'pdf']] %>
      </p>
      <p>
        <%= form.label :print_titles %>
        <%= form.select :print_titles, [['Yes', true], ['No', false]] %>
      </p>
      <p>
        <%= form.label :toc_levels, "TOC Levels" %>
        <%= form.select :toc_levels, [['None', ''], ['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5']] %>
      </p>
      <p>
        <%= form.label :print_paragraph_numbers %>
        <%= form.select :print_paragraph_numbers, [['Yes', true], ['No', false]] %>
      </p>
      <p>
        <%= form.label :print_annotations, "Print Comments" %>
        <%= form.select :print_annotations, [['Yes', true], ['No', false]] %>
      </p>
      <p>
        <%= form.label :print_links, "Print Links" %>
        <%= form.select :print_links, [['Yes', true], ['No', false]] %>
      </p>
      <p>
        <%= form.label :print_highlights %>
        <%= form.select :print_highlights, [['Original', 'original'], ['None', 'none'], ['All', 'all']] %>
      </p>
      <p>
        <%= form.label :hidden_text_display, "Hidden Text" %>
        <%= form.select :hidden_text_display, [['Hide', false], ['Show', true]] %>
      </p>
      <p>
        <%= form.label :print_font_face %>
        <%= form.select :print_font_face, [['futura', 'futura'], ['leitura', 'leitura'], ['garamond', 'garamond'], ['goudy', 'goudy'], ['verdana', 'verdana'], ['proxima', 'proxima'], ['dagny', 'dagny']], :selected => @user.print_font_face %>
      </p>
      <p>
        <%= form.label :print_font_size %>
        <%= form.select :print_font_size, [['small', 'small'], ['medium', 'medium'], ['large', 'large'], ['xlarge', 'xlarge']], :selected => @user.print_font_size %>
      </p>
    </td>
    <% end -%>
  </tr>
  <% if form.object.new_record? -%>
  <tr>
    <td colspan="3" align="center" style="padding:10px 0px;">
      <label>
        <%= form.check_box :terms %>
        I certify that I have read and agree to the <a href="/p/terms" target="_blank">Terms of Service</a>.
      </label>
    </td>
  </tr>
  <% end -%>
</table>
{'fraction_non_alphanumeric': 0.2220914440923495, 'fraction_numerical': 0.00615663196016297, 'mean_word_length': 2.3676829268292683, 'pattern_counts': {'":': 0, '<': 291, '<?xml version=': 0, '>': 315, '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': '7287309', 'n_tokens_mistral': 4153, 'n_tokens_neox': 3827, 'n_words': 805}