<commit_before><div class="row">
    <div class="span8">
      <h1>Create Profile</h1>
    </div>
</div>&nbsp;
<div class="row">
    <div class="span4">
        <% if flash[:notice] %>
            <div class="alert alert-info"><%= flash[:notice] %></div>
        <% end %>
        <% if flash[:error] %>
            <div class="alert alert-warning"><%= flash[:error] %></div>
            <% if flash[:errors] %>
            <ul>
                <% flash[:errors].each do |e| %>
                    <li><%= e %></li>
                <% end %>
            </ul>
            <% end %>
        <% end %>
        <%= form_for @profile, :html => { :class => 'form-vertical' }, :url => { :action => "create" } do |f| %>
        <fieldset class="control-group">
            <%= label_tag :first_name, 'First Name' %>
            <%= f.text_field :first_name, :value => (@user['first_name'] if @user) %>
            <%= label_tag :last_name, 'Last Name' %>
            <%= f.text_field :last_name, :value => (@user['last_name'] if @user) %>
            <%= label_tag :gender, 'Gender' %>
            <%= f.select :gender, options_for_select({ :male => 'Male', :female => 'Female' }, 
                                    (@user['gender'] if @user)), :include_blank => 'Select One' %>
            <%= label_tag :birthdate, 'Date of birth:' %>
            <%= date_select :profile, :birthdate, :start_year => 1920, :order => [:month, :day, :year] %>
            <%= label_tag :height, 'Height' %>
              <%= select :height, :feet, (0..10).collect {|n| [n, n] } %> feet
              <%= select :height, :inches, (0..11).collect {|n| [n, n] } %> inches
            <%= label_tag :weight, 'Weight'%><%= f.text_field :weight %>
            <%= label_tag :description, 'Bio'%><%= f.text_area  :description, :rows => '4', :placeholder => "I love Crossfit" %>
            <%= f.submit "Save changes", :class => 'btn btn-primary' %>
        </fieldset>
        <% end %>
    </div>
    <div class="span2"><%= @user ? image_tag(@user['picture']) : image_tag('profiles/user_missing.png') %></div>
</div><commit_msg>Fixed a small time problem in the birthday, where it goes 5 years over the current date.<commit_after><div class="row">
    <div class="span8">
      <h1>Create Profile</h1>
    </div>
</div>&nbsp;
<div class="row">
    <div class="span4">
        <% if flash[:notice] %>
            <div class="alert alert-info"><%= flash[:notice] %></div>
        <% end %>
        <% if flash[:error] %>
            <div class="alert alert-warning"><%= flash[:error] %></div>
            <% if flash[:errors] %>
            <ul>
                <% flash[:errors].each do |e| %>
                    <li><%= e %></li>
                <% end %>
            </ul>
            <% end %>
        <% end %>
        <%= form_for @profile, :html => { :class => 'form-vertical' }, :url => { :action => "create" } do |f| %>
        <fieldset class="control-group">
            <%= label_tag :first_name, 'First Name' %>
            <%= f.text_field :first_name, :value => (@user['first_name'] if @user) %>
            <%= label_tag :last_name, 'Last Name' %>
            <%= f.text_field :last_name, :value => (@user['last_name'] if @user) %>
            <%= label_tag :gender, 'Gender' %>
            <%= f.select :gender, options_for_select({ :male => 'Male', :female => 'Female' }, 
                                    (@user['gender'] if @user)), :include_blank => 'Select One' %>
            <%= label_tag :birthdate, 'Date of birth:' %>
            <%= date_select :profile, :birthdate, :start_year => 1920, :end_year => time.now.year :order => [:month, :day, :year] %>
            <%= label_tag :height, 'Height' %>
              <%= select :height, :feet, (0..10).collect {|n| [n, n] } %> feet
              <%= select :height, :inches, (0..11).collect {|n| [n, n] } %> inches
            <%= label_tag :weight, 'Weight'%><%= f.text_field :weight %>
            <%= label_tag :description, 'Bio'%><%= f.text_area  :description, :rows => '4', :placeholder => "I love Crossfit" %>
            <%= f.submit "Save changes", :class => 'btn btn-primary' %>
        </fieldset>
        <% end %>
    </div>
    <div class="span2"><%= @user ? image_tag(@user['picture']) : image_tag('profiles/user_missing.png') %></div>
</div>
{'fraction_non_alphanumeric': 0.21398698884758363, 'fraction_numerical': 0.00766728624535316, 'mean_word_length': 2.1218274111675126, 'pattern_counts': {'":': 0, '<': 107, '<?xml version=': 0, '>': 136, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '644051', 'n_tokens_mistral': 1496, 'n_tokens_neox': 1344, 'n_words': 323}