<commit_before>:php
	use Bkwld\Decoy\Breadcrumbs;
	use Bkwld\Decoy\Input\Search;

-# Push over for horizontal forms
.form-actions

	-# Save
	.btn-group
		-if (app('decoy.auth')->can('update', $controller))
			%button.btn.btn-success.save(name="_save" value="save" type="submit")
				%span.glyphicon.glyphicon-file.glyphicon
				Save
		-if (app('decoy.auth')->can('update', $controller) && app('decoy.auth')->can('create', $controller))
			%button.btn.btn-success.js-tooltip.save-new(name="_save" value="new" type="submit" title="Go to create form after saving") &amp; New
		-if (app('decoy.auth')->can('update', $controller))
			%button.btn.btn-success.js-tooltip.save-back(name="_save" value="back" type="submit" title="Return to listing after saving") &amp; Back

	-# Additional buttons
	-if (isset($actions)) echo $actions
		
	-# Delete
	-if (!empty($item) && app('decoy.auth')->can('destroy', $controller))
		%a.btn.btn-danger.delete(href=DecoyURL::relative('destroy', $item->id))
			%span.glyphicon.glyphicon-trash.glyphicon
			Delete
	
	-# Cancel
	%a.btn.btn-default.back(href=Breadcrumbs::smartBack()) Cancel

	.pull-right
		.btn-group
			-if (isset($item) && app('decoy.auth')->can('read', 'changes'))
				-$url = DecoyURL::action('changes').'?'.Search::query([ 'model' => get_class($item), 'key' => $item->getKey()])
				%a.btn.btn-default.js-tooltip(title="<b>Changes</b> history" href=$url)
					%span.glyphicon.glyphicon-list-alt
			-if (isset($item) && ($uri = $item->getUriAttribute()))
				%a.btn.btn-default.js-tooltip(title="Public view" href=$uri target="_blank")
					%span.glyphicon.glyphicon-bookmark

// CLose the form
!=Former::close()

-# Close first column, show sidebar, and then close the row
-if(isset($sidebar) && !$sidebar->isEmpty())
	!='</div><div class="col-md-5 related">'
	!=$sidebar->render()
	!='</div></div>'
<commit_msg>Add button that calls the duplicate route<commit_after>:php
	use Bkwld\Decoy\Breadcrumbs;
	use Bkwld\Decoy\Input\Search;

-# Push over for horizontal forms
.form-actions

	-# Save
	.btn-group
		-if (app('decoy.auth')->can('update', $controller))
			%button.btn.btn-success.save(name="_save" value="save" type="submit")
				%span.glyphicon.glyphicon-file.glyphicon
				Save
		-if (app('decoy.auth')->can('update', $controller) && app('decoy.auth')->can('create', $controller))
			%button.btn.btn-success.js-tooltip.save-new(name="_save" value="new" type="submit" title="Go to create form after saving") &amp; New
		-if (app('decoy.auth')->can('update', $controller))
			%button.btn.btn-success.js-tooltip.save-back(name="_save" value="back" type="submit" title="Return to listing after saving") &amp; Back

	-# Additional buttons
	-if (isset($actions)) echo $actions
		
	-# Delete
	-if (!empty($item) && app('decoy.auth')->can('destroy', $controller))
		%a.btn.btn-danger.delete(href=DecoyURL::relative('destroy', $item->id))
			%span.glyphicon.glyphicon-trash.glyphicon
			Delete
	
	-# Cancel
	%a.btn.btn-default.back(href=Breadcrumbs::smartBack()) Cancel

	.pull-right
		.btn-group
			-if (isset($item) && app('decoy.auth')->can('create', $controller))
				%a.btn.btn-default.js-tooltip(title="Duplicate" href=DecoyURL::relative('duplicate', $item->id))
					%span.glyphicon.glyphicon-duplicate
			-if (isset($item) && app('decoy.auth')->can('read', 'changes'))
				-$url = DecoyURL::action('changes').'?'.Search::query([ 'model' => get_class($item), 'key' => $item->getKey()])
				%a.btn.btn-default.js-tooltip(title="<b>Changes</b> history" href=$url)
					%span.glyphicon.glyphicon-list-alt
			-if (isset($item) && ($uri = $item->getUriAttribute()))
				%a.btn.btn-default.js-tooltip(title="Public view" href=$uri target="_blank")
					%span.glyphicon.glyphicon-bookmark

// CLose the form
!=Former::close()

-# Close first column, show sidebar, and then close the row
-if(isset($sidebar) && !$sidebar->isEmpty())
	!='</div><div class="col-md-5 related">'
	!=$sidebar->render()
	!='</div></div>'

{'fraction_non_alphanumeric': 0.21444809295276585, 'fraction_numerical': 0.0005051780752715333, 'mean_word_length': 4.7894736842105265, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 43, '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': '7044255', 'n_tokens_mistral': 1519, 'n_tokens_neox': 1387, 'n_words': 242}