<commit_before><%= form_for [@team,@server,@service], html: { class: 'form-horizontal' } do |f| %>
  <% if @service.errors.any? %>
    <% flash[:error] = @service.errors.full_messages.to_s %>
  <% end %>

  <div class="control-group">
    <%= f.label :name, class: 'control-label' %>
    <div class="controls">
      <%= f.text_field :name, class: 'text_field', autofocus: true %>
    </div>
  </div>

  <div class="control-group">
    <%= f.label :protocol, class: 'control-label' %>
    <div class="controls">
      <%= f.text_field :protocol, class: 'text_field' %>
    </div>
  </div>

  <div class="control-group">
    <%= f.label :version, class: 'control-label' %>
    <div class="controls">
      <%= select(:service, :version, [['ipv4', 'ipv4'],['ipv6','ipv6']]) %>
    </div>
  </div>

  <div class="control-group">
    <%= f.label :enabled, class: 'control-label' %>
    <div class="controls">
      <% unless @service.enabled == false %>
        <%= f.check_box :enabled, class: 'check_box', checked: true %>
      <% else %>
        <%= f.check_box :enabled, class: 'check_box' %>
      <% end %>
    </div>
  </div>

  <div class="control-group">
    <%= f.label :available_points, class: 'control-label' %>
    <div class="controls">
      <%= f.number_field :available_points, min: 0, step: 10, value: 250 %>
    </div>
  </div>

  <div class="control-group">
    <%= f.label :team_id, class: 'control-label' %>
    <div class="controls">
      <%= select(:service, :team_id, [[@team.alias, @team.id]] ) %>
    </div>
  </div>

  <div class="control-group">
    <%= f.label :server_id, class: 'control-label' %>
    <div class="controls">
      <%= select(:service, :server_id, [[@server.name, @server.id]]) %>
    </div>
  </div>

  <%= f.submit 'Login', class: 'invisible-submit' %>
<% end %><commit_msg>Fix dynamic value for available points<commit_after><%= form_for [@team,@server,@service], html: { class: 'form-horizontal' } do |f| %>
  <% if @service.errors.any? %>
    <% flash[:error] = @service.errors.full_messages.to_s %>
  <% end %>

  <div class="control-group">
    <%= f.label :name, class: 'control-label' %>
    <div class="controls">
      <%= f.text_field :name, class: 'text_field', autofocus: true %>
    </div>
  </div>

  <div class="control-group">
    <%= f.label :protocol, class: 'control-label' %>
    <div class="controls">
      <%= f.text_field :protocol, class: 'text_field' %>
    </div>
  </div>

  <div class="control-group">
    <%= f.label :version, class: 'control-label' %>
    <div class="controls">
      <%= select(:service, :version, [['ipv4', 'ipv4'],['ipv6','ipv6']]) %>
    </div>
  </div>

  <div class="control-group">
    <%= f.label :enabled, class: 'control-label' %>
    <div class="controls">
      <% unless @service.enabled == false %>
        <%= f.check_box :enabled, class: 'check_box', checked: true %>
      <% else %>
        <%= f.check_box :enabled, class: 'check_box' %>
      <% end %>
    </div>
  </div>

  <div class="control-group">
    <%= f.label :available_points, class: 'control-label' %>
    <div class="controls">
      <%= f.number_field :available_points, min: 0, step: 10, value: @service.available_points %>
    </div>
  </div>

  <div class="control-group">
    <%= f.label :team_id, class: 'control-label' %>
    <div class="controls">
      <%= select(:service, :team_id, [[@team.alias, @team.id]] ) %>
    </div>
  </div>

  <div class="control-group">
    <%= f.label :server_id, class: 'control-label' %>
    <div class="controls">
      <%= select(:service, :server_id, [[@server.name, @server.id]]) %>
    </div>
  </div>

  <%= f.submit 'Login', class: 'invisible-submit' %>
<% end %>
{'fraction_non_alphanumeric': 0.2248713085884584, 'fraction_numerical': 0.004605797886751558, 'mean_word_length': 3.1906923950056756, 'pattern_counts': {'":': 0, '<': 107, '<?xml version=': 0, '>': 107, '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': '7299116', 'n_tokens_mistral': 1415, 'n_tokens_neox': 1302, 'n_words': 271}