<commit_before><%- if @link.errors.any? -%>
	<div class="form-errors">
		<h2><%= pluralize(@link.errors.count, 'error') %> prevented this link from being saved:</h2>

		<ul>
			<%- @link.errors.full_messages.each do |msg| -%>
				<li><%= msg %>.</li>
			<%- end -%>
		</ul>
	</div>
<%- end -%>

<%= form_for @link, html: { class: 'link-form' } do |f| %>
	<ul>
		<li>
			<%= f.label :url, 'URL' %>
			<%= f.url_field :url, required: true %>
		</li>
		<li>
			<%= f.label :title %>
			<%= f.text_field :title, required: true %>
		</li>
		<li>
			<%= f.label :body %>
			<%= f.text_area :body %>
		</li>
		<li>
			<%= f.label :tag_list, raw(%Q{Tags <span class="hint">(Comma-separated, please.)</span>}) %>
			<%= f.text_field :tag_list, value: @link.tag_list.to_s %>
		</li>
		<li>
			<%= f.label :is_draft, class: 'for-checkbox' do %>
				<%= f.check_box :is_draft, { checked: !@link.published_at? } %>
				Save as draft
			<% end %>
		</li>
		<li>
			<button type="submit">Submit</button>
		</li>
	</ul>
<% end %><commit_msg>Add placeholder to link URL field.<commit_after><%- if @link.errors.any? -%>
	<div class="form-errors">
		<h2><%= pluralize(@link.errors.count, 'error') %> prevented this link from being saved:</h2>

		<ul>
			<%- @link.errors.full_messages.each do |msg| -%>
				<li><%= msg %>.</li>
			<%- end -%>
		</ul>
	</div>
<%- end -%>

<%= form_for @link, html: { class: 'link-form' } do |f| %>
	<ul>
		<li>
			<%= f.label :url, 'URL' %>
			<%= f.url_field :url, placeholder: 'http://…', required: true %>
		</li>
		<li>
			<%= f.label :title %>
			<%= f.text_field :title, required: true %>
		</li>
		<li>
			<%= f.label :body %>
			<%= f.text_area :body %>
		</li>
		<li>
			<%= f.label :tag_list, raw(%Q{Tags <span class="hint">(Comma-separated, please.)</span>}) %>
			<%= f.text_field :tag_list, value: @link.tag_list.to_s %>
		</li>
		<li>
			<%= f.label :is_draft, class: 'for-checkbox' do %>
				<%= f.check_box :is_draft, { checked: !@link.published_at? } %>
				Save as draft
			<% end %>
		</li>
		<li>
			<button type="submit">Submit</button>
		</li>
	</ul>
<% end %>
{'fraction_non_alphanumeric': 0.25429389312977096, 'fraction_numerical': 0.0019083969465648854, 'mean_word_length': 2.9491525423728815, 'pattern_counts': {'":': 0, '<': 93, '<?xml version=': 0, '>': 93, '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': '515734', 'n_tokens_mistral': 1050, 'n_tokens_neox': 878, 'n_words': 185}