<commit_before><div class="title form-title">
  <h3>Edit <%= resource_name.to_s.humanize %></h3>
</div>

<%= simple_form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put, :class => 'form-horizontal' }) do |f| %>
  <%= f.error_notification %>

  <div class="inputs">
    <%= f.input :full_name, :required => true, :autofocus => true %>
    <%= f.input :email, :required => true %>
		<%= f.input :password, :hint => "leave it blank if you don't want to change it", :required => false %>
		
    	<%= f.input :password_confirmation, :required => false %>
		<% if f.object.encrypted_password.present? %>
    	<%= f.input :current_password, :hint => "we need your current password to confirm your changes" %>
		<% end %>

		<% if f.object.provider == 'linkedin' %>
				<%= image_tag('linkedin.png')%> <%= link_to "Unlink from your LinkedIn", unlink_path %>
		<% else %>
				<%= image_tag('linkedin.png')%> <%= link_to "Associate a Linkedin account", user_omniauth_authorize_path(:linkedin), :id => 'signup_link' %>
		<% end %>
  </div>

  <div class="form-actions">
    <%= f.button :submit, "Update", :class => 'btn-primary' %>
  </div>
<% end %>

<div class="bottom-links">
<!--   <h4>Cancel my account</h4> -->

  <p>Unhappy? <%= link_to "Cancel my account", registration_path(resource_name), :confirm => "Are you sure?", :method => :delete %>.</p>

  <%= link_to "Back", :back %>
</div><commit_msg>updated confirm to new format to remove deprecation warnings<commit_after><div class="title form-title">
  <h3>Edit <%= resource_name.to_s.humanize %></h3>
</div>

<%= simple_form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put, :class => 'form-horizontal' }) do |f| %>
  <%= f.error_notification %>

  <div class="inputs">
    <%= f.input :full_name, :required => true, :autofocus => true %>
    <%= f.input :email, :required => true %>
		<%= f.input :password, :hint => "leave it blank if you don't want to change it", :required => false %>
		
    	<%= f.input :password_confirmation, :required => false %>
		<% if f.object.encrypted_password.present? %>
    	<%= f.input :current_password, :hint => "we need your current password to confirm your changes" %>
		<% end %>

		<% if f.object.provider == 'linkedin' %>
				<%= image_tag('linkedin.png')%> <%= link_to "Unlink from your LinkedIn", unlink_path %>
		<% else %>
				<%= image_tag('linkedin.png')%> <%= link_to "Associate a Linkedin account", user_omniauth_authorize_path(:linkedin), :id => 'signup_link' %>
		<% end %>
  </div>

  <div class="form-actions">
    <%= f.button :submit, "Update", :class => 'btn-primary' %>
  </div>
<% end %>

<div class="bottom-links">
<!--   <h4>Cancel my account</h4> -->

  <p>Unhappy? <%= link_to "Cancel my account", registration_path(resource_name), :data => {:confirm => "Are you sure?"}, :method => :delete %>.</p>

  <%= link_to "Back", :back %>
</div>
{'fraction_non_alphanumeric': 0.20830519918973667, 'fraction_numerical': 0.0027008777852802163, 'mean_word_length': 4.189141856392294, 'pattern_counts': {'":': 0, '<': 75, '<?xml version=': 0, '>': 108, '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': '7548080', 'n_tokens_mistral': 1128, 'n_tokens_neox': 992, 'n_words': 246}