<commit_before><h2>Export <%= @title %></h2>
<% form_tag({:controller => 'export_file', :action => 'export'}, {:method => 'post', :multipart => true, :name => 'export_form'}) do %>
    <table>
      <tr>
        <td valign='Top'>Delimiter:</td>
        <td>
          <%= radio_button_tag 'delim_type', 'comma', true %> Comma<br/>
          <%= radio_button_tag 'delim_type', 'space' %> Space<br/>
          <%= radio_button_tag 'delim_type', 'tab' %> Tab<br/>
          <%= radio_button_tag 'delim_type', 'other' %> Other <%= text_field_tag 'other_char' %>
          <br/>
        </td>
      </tr>
    </table>
    <% if @model == 'Assignment' %>
        <br/>
        <label for="Export Fields">Export : <br/></label><br/>
        <%= check_box 'options', 'team_score', {:checked => 'checked'}, "true", "false" %>
        <label for="Export Fields">Team Score</label><br/>
        <%= check_box 'options', 'submitted_score', {:checked => 'checked'}, "true", "false" %>
        <label for="Export Fields">Submitted Score</label><br/>
        <%= check_box 'options', 'author_feedback_score', {:checked => 'checked'}, "true", "false" %>
        <label for="Export Fields">Metareview Score</label><br/>
        <%= check_box 'options', 'metareview_score', {:checked => 'checked'}, "true", "false" %>
        <label for="Export Fields">Author Feedback Score</label><br/>
        <%= check_box 'options', 'teammate_review_score', {:checked => 'checked'}, "true", "false" %>
        <label for="Export Fields">Teammate Review Score</label><br/>
        <br/>
    <% end %>
    <% if @model == 'CourseParticipant' %>
        <br/>
        <label for="Export Fields">Export : <br/></label><br/>
        <%= check_box 'options', 'personal_details', {:checked => 'checked'}, "true", "false" %>
        <label for="Export Fields">Personal Details </label><br/>
        <%= check_box 'options', 'role', {:checked => 'checked'}, "true", "false" %>
        <label for="Export Fields">Role </label><br/>
        <%= check_box 'options', 'parent', {:checked => 'checked'}, "true", "false" %>
        <label for="Export Fields">Parent</label><br/>
        <%= check_box 'options', 'email_options', {:checked => 'checked'}, "true", "false" %>
        <label for="Export Fields">Email Options</label><br/>
        <%= check_box 'options', 'handle', {:checked => 'checked'}, "true", "false" %>
        <label for="Export Fields">Handle</label><br/>
        <br/>
    <% end %>
    <% if @model == 'User' %>
        <br/>
        <label for="Export Fields">Export : <br/></label><br/>
        <%= check_box 'options', 'personal_details', {:checked => 'checked'}, "true", "false" %>
        <label for="Export Fields">Personal Details</label><br/>
        <%= check_box 'options', 'role', {:checked => 'checked'}, "true", "false" %>
        <label for="Export Fields">Role</label><br/>
        <%= check_box 'options', 'parent', {:checked => 'checked'}, "true", "false" %>
        <label for="Export Fields">Parent</label><br/>
        <%= check_box 'options', 'email_options', {:checked => 'checked'}, "true", "false" %>
        <label for="Export Fields">Email Options</label><br/>
        <%= check_box 'options', 'handle', {:checked => 'checked'}, "true", "false" %>
        <label for="Export Fields">Handle</label><br/>
        <br/>
    <% end %>

    <% if @model == 'AssignmentTeam' %>
        <br/>
        <label for="Export Fields">Export : <br/></label><br/>
        <%= check_box 'options', 'team_name', {:checked => 'unchecked'}, "true", "false" %>
        <label for="Export Fields">Team Name Only</label><br/>
        <br/>
    <% end %>
    <% if @model == 'CourseTeam' %>
        <br/>
        <label for="Export Fields">Export : <br/></label><br/>
        <%= check_box 'options', 'team_name', {:checked => 'unchecked'}, "true", "false" %>
        <label for="Export Fields">Team Name Only</label><br/>
        <br/>
    <% end %>
    <br/>
    <%= hidden_field_tag('model', @model) %>
    <%= hidden_field_tag('id', @id) %>
    <input type='submit' value='Export' onclick='{export_form.submit();}'/>
    <br/><br/>
<% end %>

<a href="<%= session[:return_to] %>">Back</a><commit_msg>partials for various exports<commit_after><h2>Export <%= @title %></h2>
<% form_tag({:controller => 'export_file', :action => 'export'}, {:method => 'post', :multipart => true, :name => 'export_form'}) do %>
    <table>
      <tr>
        <td valign='Top'>Delimiter:</td>
        <td>
          <%= radio_button_tag 'delim_type', 'comma', true %> Comma<br/>
          <%= radio_button_tag 'delim_type', 'space' %> Space<br/>
          <%= radio_button_tag 'delim_type', 'tab' %> Tab<br/>
          <%= radio_button_tag 'delim_type', 'other' %> Other <%= text_field_tag 'other_char' %>
          <br/>
        </td>
      </tr>
    </table>
    <% if @model == 'Assignment' %>
        <%= render :partial => 'scores' %>
    <% end %>
    <% if @model == 'CourseParticipant' %>
        <%= render :partial => 'course_participants' %>
    <% end %>
    <% if @model == 'User' %>
        <%= render :partial => 'users' %>
    <% end %>
    <% if @model == 'AssignmentTeam' %>
        <%= render :partial => 'assignment_teams' %>
    <% end %>
    <% if @model == 'CourseTeam' %>
        <%= render :partial => 'course_teams' %>
    <% end %>
    <br/>
    <%= hidden_field_tag('model', @model) %>
    <%= hidden_field_tag('id', @id) %>
    <input type='submit' value='Export' onclick='{export_form.submit();}'/>
    <br/><br/>
<% end %>

<a href="<%= session[:return_to] %>">Back</a>
{'fraction_non_alphanumeric': 0.2314881380301941, 'fraction_numerical': 0.0007189072609633358, 'mean_word_length': 3.0064794816414686, 'pattern_counts': {'":': 0, '<': 188, '<?xml version=': 0, '>': 220, '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': '4608645', 'n_tokens_mistral': 1938, 'n_tokens_neox': 1748, 'n_words': 388}