<commit_before><script>
  tinymce.init({
    selector: '.mceEditor',
    menubar: false,
    branding: false,
    plugins: "link autolink lists",
    menubar: "insert",
    toolbar: "undo redo | cut copy paste pastetext | styleselect | bold italic | link bullist numlist",
  });
</script>

<div class="workout-box col-xs-10 col-xs-offset-1" id="new-workout-type">
	<h1>Edit your Workout</h1>
	<%= simple_form_for (@workout_type) do |f| %>
		<%= f.input :type_name, label: 'What will you call this workout?' %>
		<br />
		<%= f.input :description, label: 'Add a brief description of this workout.', input_html: { class: 'mceEditor' } %>
	  <br />
	  <p>Who should be able to see this workout?</p>

		<%= f.label :public, "All Users", :value => true %>
    <%= f.radio_button :public, true, :checked => true %>
    <%= f.label :public, "Myself Only", :value => false %>
    <%= f.radio_button :public, false %>

	 	<h3>Now enter up to 10 exercises:</h3> 
	  <br />
		<table class="table table-bordered table-striped table-responsive">
		  <thead>
		    <tr>
		      <th><%= "Exercise Name" %></th>
		      <th><%= "Sets" %></th>
		      <th><%= "Reps" %></th>
		      <th><%= "Load (lb)" %></th>
		    </tr>
		  </thead>
		  <tbody>
		    <%= f.fields_for :exercise_types, @exercise_types do |builder| %>
		      <%= render 'exercise_fields_table', :f => builder %>
		    <% end %>
		  </tbody>
		</table>
		<%= link_to 'Cancel', workout_type_path(@workout_type), :class => 'btn btn-default' %>	
		<%= f.submit 'Update', :class=>"btn btn-primary" %>
	<% end %>
	<br />

	<div class="back-link col-xs-10 col-xs-offset-1">
		<%= link_to workout_types_path do %>
			<span class="glyphicon glyphicon-circle-arrow-left" aria-hidden="true"></span>
			Back to List of Routines &nbsp;
		<% end %>
	</div>
</div>
<commit_msg>Add url heading to edit page<commit_after><script>
  tinymce.init({
    selector: '.mceEditor',
    menubar: false,
    branding: false,
    plugins: "link autolink lists",
    menubar: "insert",
    toolbar: "undo redo | cut copy paste pastetext | styleselect | bold italic | link bullist numlist",
  });
</script>

<div class="workout-box col-xs-10 col-xs-offset-1" id="new-workout-type">
	<h1>Edit your Workout</h1>
	<%= simple_form_for (@workout_type) do |f| %>
		<%= f.input :type_name, label: 'What will you call this workout?' %>
		<br />
		<%= f.input :description, label: 'Add a brief description of this workout.', input_html: { class: 'mceEditor' } %>
	  <br />
	  <p>Who should be able to see this workout?</p>

		<%= f.label :public, "All Users", :value => true %>
    <%= f.radio_button :public, true, :checked => true %>
    <%= f.label :public, "Myself Only", :value => false %>
    <%= f.radio_button :public, false %>

	 	<h3>Now enter up to 10 exercises:</h3> 
	  <br />
		<table class="table table-bordered table-striped table-responsive">
		  <thead>
		    <tr>
		      <th><%= "Exercise Name" %></th>
		      <th><%= "Sets" %></th>
		      <th><%= "Reps" %></th>
		      <th><%= "Load (lb)" %></th>
		      <th><%= "Link to instructions on how to perform this exercise" %></th>
		    </tr>
		  </thead>
		  <tbody>
		    <%= f.fields_for :exercise_types, @exercise_types do |builder| %>
		      <%= render 'exercise_fields_table', :f => builder %>
		    <% end %>
		  </tbody>
		</table>
		<%= link_to 'Cancel', workout_type_path(@workout_type), :class => 'btn btn-default' %>	
		<%= f.submit 'Update', :class=>"btn btn-primary" %>
	<% end %>
	<br />

	<div class="back-link col-xs-10 col-xs-offset-1">
		<%= link_to workout_types_path do %>
			<span class="glyphicon glyphicon-circle-arrow-left" aria-hidden="true"></span>
			Back to List of Routines &nbsp;
		<% end %>
	</div>
</div>

{'fraction_non_alphanumeric': 0.18846254241712346, 'fraction_numerical': 0.006264682850430697, 'mean_word_length': 2.8053624627606752, 'pattern_counts': {'":': 0, '<': 112, '<?xml version=': 0, '>': 124, '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': '3613514', 'n_tokens_mistral': 1540, 'n_tokens_neox': 1331, 'n_words': 350}