<commit_before><table border="0" cellspacing="0" cellpadding="2" id="add-channel">
<tr>
  <td valign="top">
<% form_remote_tag :url => { :action => 'create_ajax' } ,
       :loading => "Element.show('loading');",
       :complete => "Element.hide('loading');",
       :html => { :id => 'channel-add-form' } do
%>

  <fieldset>
    <legend><%= _'New Room'%></legend>
    <label for="channel_name"><%=_ 'Name' %></label><%= text_field 'channel', 'name', { :size => 17, :maxlength => 200 } %><br />
    <label for="channel_project_id"><%=_ 'Project'%></label>
<select name="channel[project_id]" id="channel_project_id">
<% if current_user.admin > 0 %> <option value="" class="select_default" selected><%= _("[Any Project]") %></option> <% end %>
<% @clients = Customer.find(:all, :conditions => ["company_id = ?", current_user.company_id], :order => "name") %>
<% @clients.each do |c| %>
  <% @client_projects = current_user.projects.find(:all, :conditions => ["customer_id = #{c.id} AND completed_at IS NULL"], :order => "name" ) %>
  <% if @client_projects.size > 0 %>
    <optgroup class="select_heading" label="<%= h(c.name) %>">
    <% @client_projects.each do |p| %>
      <option value="<%=p.id%>" class="select_item"><%= p.name %></option>
    <% end %>
    </optgroup>
  <% end %>
<% end %>
</select><br/>

    <label for="channel_description"><%=_ 'Description' %></label><%= text_area 'channel', 'description', { :cols => 17, :rows => 4 } %><br />
    <label>&nbsp;</label>
<%= submit_tag _("Create"), :class => "nolabel" %><div style="float:left;margin-top:0.3em;"> <span class="optional"><%= _'or' %></span> <a href="#" onclick="$('channel-add-container').hide();false;"><%= _'Cancel'%></a></div>
      <br/>
      <br/>
  </fieldset>
<% end %>
  </td><commit_msg>return false on chat channel add<commit_after><table border="0" cellspacing="0" cellpadding="2" id="add-channel">
<tr>
  <td valign="top">
<% form_remote_tag :url => { :action => 'create_ajax' } ,
       :loading => "Element.show('loading');",
       :complete => "Element.hide('loading');",
       :html => { :id => 'channel-add-form' } do
%>

  <fieldset>
    <legend><%= _'New Room'%></legend>
    <label for="channel_name"><%=_ 'Name' %></label><%= text_field 'channel', 'name', { :size => 17, :maxlength => 200 } %><br />
    <label for="channel_project_id"><%=_ 'Project'%></label>
<select name="channel[project_id]" id="channel_project_id">
<% if current_user.admin > 0 %> <option value="" class="select_default" selected><%= _("[Any Project]") %></option> <% end %>
<% @clients = Customer.find(:all, :conditions => ["company_id = ?", current_user.company_id], :order => "name") %>
<% @clients.each do |c| %>
  <% @client_projects = current_user.projects.find(:all, :conditions => ["customer_id = #{c.id} AND completed_at IS NULL"], :order => "name" ) %>
  <% if @client_projects.size > 0 %>
    <optgroup class="select_heading" label="<%= h(c.name) %>">
    <% @client_projects.each do |p| %>
      <option value="<%=p.id%>" class="select_item"><%= p.name %></option>
    <% end %>
    </optgroup>
  <% end %>
<% end %>
</select><br/>

    <label for="channel_description"><%=_ 'Description' %></label><%= text_area 'channel', 'description', { :cols => 17, :rows => 4 } %><br />
    <label>&nbsp;</label>
<%= submit_tag _("Create"), :class => "nolabel" %><div style="float:left;margin-top:0.3em;"> <span class="optional"><%= _'or' %></span> <a href="#" onclick="$('channel-add-container').hide();return false;"><%= _'Cancel'%></a></div>
      <br/>
      <br/>
  </fieldset>
<% end %>
  </td>
{'fraction_non_alphanumeric': 0.25853385562395076, 'fraction_numerical': 0.008393956351426972, 'mean_word_length': 4.577223088923557, 'pattern_counts': {'":': 0, '<': 123, '<?xml version=': 0, '>': 157, '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': '3291256', 'n_tokens_mistral': 1328, 'n_tokens_neox': 1223, 'n_words': 257}