<commit_before><!-- teams/_show -->
<% if @s_user.admin? %>
<% @team = team %>
<%= in_place_editor_field(:team, :name, :with => "form.serialize() + '&authenticity_token=#{form_authenticity_token}'") %>:
<% else %>
<%= team.name %>:
<% end %>

<% team.partition.assignments.each do |assignment| %>
  <%= assignment.name %>
<% end %>

<ul>
  <% team.memberships.each do |membership| %>
    <li>
    	<% user = membership.user %>
      <%= user.real_name %>
      &lt;<%= link_to "#{<EMAIL>",
                      "mailto:#{<EMAIL>" %>&gt;
      <% if @s_user.admin? %>
			<% if user.student_info %>
			<%= user.student_info.wants_credit ? 'Credit' : 'Listener' %>
			<% end %>
			<%= link_to 'Remove', membership, :method => :delete,
              :confirm => "Remove #{user.real_name} from #{team.name}" %>
			<% end %>
    </li>
  <% end %>
</ul>

<% form_for TeamMembership.new(:team => team) do |f| %>
  <%= f.hidden_field :team_id %>

  <%= text_field_tag :query, '', :id => "query_#{team.id}", :autocomplete => false, :style => 'width: 450px;' %> <%= f.submit "Add to #{team.name}" %>
  <div class="auto_complete" id="query_<%= team.id %>_auto_complete" style="width: 600px;"></div>
  <%= auto_complete_field "query_#{team.id}", :url => lookup_users_path, :method => :get, :frequency => 0.2 %>
<% end %>
<commit_msg>Bugfix for stupid retarded fucked-up in_place_editor_field.<commit_after><!-- teams/_show -->
<% if @s_user.admin? %>
<% old_team_value, @team = @team, team %>
<%= in_place_editor_field(:team, :name, :with => "form.serialize() + '&authenticity_token=#{form_authenticity_token}'") %>:
<% @team = old_team_value %>
<% else %>
<%= team.name %>:
<% end %>

<% team.partition.assignments.each do |assignment| %>
  <%= assignment.name %>
<% end %>

<ul>
  <% team.memberships.each do |membership| %>
    <li>
    	<% user = membership.user %>
      <%= user.real_name %>
      &lt;<%= link_to "#{<EMAIL>",
                      "mailto:#{<EMAIL>" %>&gt;
      <% if @s_user.admin? %>
			<% if user.student_info %>
			<%= user.student_info.wants_credit ? 'Credit' : 'Listener' %>
			<% end %>
			<%= link_to 'Remove', membership, :method => :delete,
              :confirm => "Remove #{user.real_name} from #{team.name}" %>
			<% end %>
    </li>
  <% end %>
</ul>

<% form_for TeamMembership.new(:team => team) do |f| %>
  <%= f.hidden_field :team_id %>

  <%= text_field_tag :query, '', :id => "query_#{team.id}", :autocomplete => false, :style => 'width: 450px;' %> <%= f.submit "Add to #{team.name}" %>
  <div class="auto_complete" id="query_<%= team.id %>_auto_complete" style="width: 600px;"></div>
  <%= auto_complete_field "query_#{team.id}", :url => lookup_users_path, :method => :get, :frequency => 0.2 %>
<% end %>

{'fraction_non_alphanumeric': 0.23467153284671532, 'fraction_numerical': 0.00583941605839416, 'mean_word_length': 3.6067226890756303, 'pattern_counts': {'":': 0, '<': 76, '<?xml version=': 0, '>': 96, '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': '5778183', 'n_tokens_mistral': 1135, 'n_tokens_neox': 978, 'n_words': 189}