<commit_before><div class="row">
    <div class="span8">
      <h1>Create Workout Record</h1>
    </div>
</div>&nbsp;
<div class="row">
    <div class="span4">
        <%= form_for @workout_record, :html => { :class => 'form-vertical' }, :url => { :action => "update" } do |f| %>
        <fieldset class="control-group">
            <%= date_select :workout_record, :date_performed, :start_year => 1980, :end_year => Time.now.year, :order => [:month, :day, :year] %>
            <%= label_tag :note, 'Note' %>
            <%= f.text_area :note %>
            <%= label_tag :points, 'Points' %>
            <%= f.text_field :points %>
            <%= label_tag :time, 'Time' %>
              <%= select :time, :hours, (0..24).collect {|n| [n, n] }, :selected => @workout_record.time ? @workout_record.time[:hours] : 0 %> hours
              <%= select :time, :minutes, (0..59).collect {|n| [n, n] }, :selected => @workout_record.time ? @workout_record.time[:minutes] : 0 %> minutes
              <%= select :time, :seconds, (0..59).collect {|n| [n, n] }, :selected => @workout_record.time ? @workout_record.time[:seconds] : 0 %> seconds
            <%= label_tag :rounds, 'Rounds' %>
            <%= f.text_field :rounds %>
            <%= f.select :workout_id, @workouts.collect{|w| [w.name, w.id]} %>
            <%= f.submit "Edit Workout Record", :class => 'btn btn-primary' %>
        </fieldset>
        <% end %>
    </div>
</div><commit_msg>Changed text for Editing a workout record to make it distinct from the page for creating a new one.<commit_after><div class="row">
    <div class="span8">
    <% if @workout_record.date_performed %>
      <h1>Editing Workout Record from <%= @workout_record.date_performed %></h1>
    <% else %> 
      <h1>Editing Workout Record</h1>
    <% end %>
    </div>
</div>&nbsp;
<div class="row">
    <div class="span4">
        <%= form_for @workout_record, :html => { :class => 'form-vertical' }, :url => { :action => "update" } do |f| %>
        <fieldset class="control-group">
            <%= date_select :workout_record, :date_performed, :start_year => 1980, :end_year => Time.now.year, :order => [:month, :day, :year] %>
            <%= label_tag :note, 'Note' %>
            <%= f.text_area :note %>
            <%= label_tag :points, 'Points' %>
            <%= f.text_field :points %>
            <%= label_tag :time, 'Time' %>
              <%= select :time, :hours, (0..24).collect {|n| [n, n] }, :selected => @workout_record.time ? @workout_record.time[:hours] : 0 %> hours
              <%= select :time, :minutes, (0..59).collect {|n| [n, n] }, :selected => @workout_record.time ? @workout_record.time[:minutes] : 0 %> minutes
              <%= select :time, :seconds, (0..59).collect {|n| [n, n] }, :selected => @workout_record.time ? @workout_record.time[:seconds] : 0 %> seconds
            <%= label_tag :rounds, 'Rounds' %>
            <%= f.text_field :rounds %>
            <%= f.select :workout_id, @workouts.collect{|w| [w.name, w.id]} %>
            <%= f.submit "Save Changes to Record", :class => 'btn btn-primary' %>
        </fieldset>
        <% end %>
    </div>
</div>
{'fraction_non_alphanumeric': 0.2047118751989812, 'fraction_numerical': 0.013371537726838587, 'mean_word_length': 2.578587699316629, 'pattern_counts': {'":': 0, '<': 63, '<?xml version=': 0, '>': 85, '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': '2219402', 'n_tokens_mistral': 1156, 'n_tokens_neox': 1052, 'n_words': 240}