<commit_before>- if current_user.is_staff?
  %div.span2= render 'layouts/admin_subnav'

%div.span8
  - if current_user.is_staff?
    %h3= "#{@user.try(:name)}'s #{current_course.multiplier_term} Choices"
  - else
    %h3= "My #{current_course.multiplier_term} Choices"
  %table.table.table-bordered
    %tr
      %th Assignment Type
      %th Value
      %th
      - @assignment_types.each do |at|
        - if at.student_choice? 
          - @user.weights_for_assignment_type_id(at).tap do |weight|
            %tr
              %td= at.try(:name)
              %td= "#{weight.try(:value)} #{current_course.multiplier_term}"
              - if weight
                %td= link_to 'Edit', edit_user_user_assignment_type_weight_path(@user, weight, :assignment_type_id => at.id), :class => 'btn btn-mini'
              - else
                %td= link_to 'Set', new_user_user_assignment_type_weight_path(@user, :assignment_type_id => at.id)
        
  = link_to "Back to My Dashboard", dashboard_path, {:class => 'btn btn-primary'}<commit_msg>Updated user assignment type index<commit_after>- if current_user.is_staff?
  %div.span2= render 'layouts/admin_subnav'

%div.span8
  - if current_user.is_staff?
    %h3= "#{@user.try(:name)}'s #{current_course.multiplier_term} Choices"
  - else
    %h3= "My #{current_course.multiplier_term} Choices"
  %table.table.table-bordered
    %tr
      %th Assignment Type
      %th Value
      %th
      - @assignment_types.each do |at|
        - if at.student_choice? 
          - @user.weights_for_assignment_type_id(at).tap do |weight|
            %tr
              %td= at.try(:name)
              %td= "#{(weight.try(:value)) || ("No ") } #{current_course.multiplier_term}"
              - if weight
                %td= link_to 'Edit', edit_user_user_assignment_type_weight_path(@user, weight, :assignment_type_id => at.id), :class => 'btn btn-mini'
              - else
                %td= link_to 'Set', new_user_user_assignment_type_weight_path(@user, :assignment_type_id => at.id)
        
  = link_to "Back to My Dashboard", dashboard_path, {:class => 'btn btn-primary'}
{'fraction_non_alphanumeric': 0.1341521020311762, 'fraction_numerical': 0.003778932451582428, 'mean_word_length': 2.6707105719237436, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '2763984', 'n_tokens_mistral': 734, 'n_tokens_neox': 723, 'n_words': 140}