<commit_before><article n:class="panel, $colorClass">
{formContainer $control->getForm()}

	<div class="panel-heading">

		<div class="btn-toolbar pull-right">

			<div class="btn-group">
				<a type="button" class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">{_form-architect.designer.settings|noescape}</a>
				<ul class="dropdown-menu dropdown-menu-right">
					<li n:class="!$control->hasUpwardMove() ? disabled"><a n:attr="href => $control->hasUpwardMove() ? $control->link('moveUp!')" class="ajax">{_form-architect.settings.move-up|noescape}</a></li>
					<li n:class="!$control->hasDownwardMove() ? disabled"><a n:attr="href => $control->hasDownwardMove() ? $control->link('moveDown!')" class="ajax">{_form-architect.settings.move-down|noescape}</a></li>
					<li role="separator" class="divider"></li>
					<li><a n:href="clone!" class="ajax">{_form-architect.settings.clone|noescape}</a></li>
					<li n:class="!$control->isMergeAllowed() ? disabled"><a n:attr="href => $control->isMergeAllowed() ? $control->link('merge!')" class="ajax">{_form-architect.settings.merge|noescape}</a></li>
					<li n:class="!$control->isDeleteAllowed() ? disabled"><a n:attr="href => $control->isDeleteAllowed() ? $control->link('remove!')" class="ajax">{_form-architect.settings.delete|noescape}</a></li>
				</ul>
			</div>

		</div>

		<div class="panel-title">{_form-architect.designer.section|noescape}</div>

	</div>

	<section class="panel-body" n:inner-foreach="$control->getInputs() as $input">

		{control $input}

		<hr n:if="!$iterator->isLast()">

	</section>

	<div class="panel-footer">

		<nav class="btn-toolbar">
			<a n:href="addQuestion!" class="btn btn-default ajax">{_form-architect.section.question|noescape}</a>
			<a n:href="addConfirm!" class="btn btn-default ajax">{_form-architect.section.confirm|noescape}</a>
			<a n:href="addCaptcha!" class="btn btn-default ajax">{_form-architect.section.captcha|noescape}</a>
			<a n:href="addDescription!" class="btn btn-default ajax">{_form-architect.section.description|noescape}</a>
		</nav>

	</div>

{/formContainer}<commit_msg>Duplicated section control buttons to the top of the section<commit_after><article n:class="panel, $colorClass">
{formContainer $control->getForm()}

	<div class="panel-heading">

		<div class="btn-toolbar pull-right">

			<div class="btn-group">
				<a type="button" class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">{_form-architect.designer.settings|noescape}</a>
				<ul class="dropdown-menu dropdown-menu-right">
					<li n:class="!$control->hasUpwardMove() ? disabled"><a n:attr="href => $control->hasUpwardMove() ? $control->link('moveUp!')" class="ajax">{_form-architect.settings.move-up|noescape}</a></li>
					<li n:class="!$control->hasDownwardMove() ? disabled"><a n:attr="href => $control->hasDownwardMove() ? $control->link('moveDown!')" class="ajax">{_form-architect.settings.move-down|noescape}</a></li>
					<li role="separator" class="divider"></li>
					<li><a n:href="clone!" class="ajax">{_form-architect.settings.clone|noescape}</a></li>
					<li n:class="!$control->isMergeAllowed() ? disabled"><a n:attr="href => $control->isMergeAllowed() ? $control->link('merge!')" class="ajax">{_form-architect.settings.merge|noescape}</a></li>
					<li n:class="!$control->isDeleteAllowed() ? disabled"><a n:attr="href => $control->isDeleteAllowed() ? $control->link('remove!')" class="ajax">{_form-architect.settings.delete|noescape}</a></li>
				</ul>
			</div>

		</div>

		<div class="panel-title">{_form-architect.designer.section|noescape}</div>

	</div>

	<div class="panel-footer">

		<nav class="btn-toolbar">
			<a n:href="addQuestion!" class="btn btn-default ajax">{_form-architect.section.question|noescape}</a>
			<a n:href="addConfirm!" class="btn btn-default ajax">{_form-architect.section.confirm|noescape}</a>
			<a n:href="addCaptcha!" class="btn btn-default ajax">{_form-architect.section.captcha|noescape}</a>
			<a n:href="addDescription!" class="btn btn-default ajax">{_form-architect.section.description|noescape}</a>
		</nav>

	</div>

	<section class="panel-body" n:inner-foreach="$control->getInputs() as $input">

		{control $input}

		<hr n:if="!$iterator->isLast()">

	</section>

	<div class="panel-footer">

		<nav class="btn-toolbar">
			<a n:href="addQuestion!" class="btn btn-default ajax">{_form-architect.section.question|noescape}</a>
			<a n:href="addConfirm!" class="btn btn-default ajax">{_form-architect.section.confirm|noescape}</a>
			<a n:href="addCaptcha!" class="btn btn-default ajax">{_form-architect.section.captcha|noescape}</a>
			<a n:href="addDescription!" class="btn btn-default ajax">{_form-architect.section.description|noescape}</a>
		</nav>

	</div>

{/formContainer}
{'fraction_non_alphanumeric': 0.2167731300226664, 'fraction_numerical': 0.0, 'mean_word_length': 6.065502183406114, 'pattern_counts': {'":': 0, '<': 115, '<?xml version=': 0, '>': 153, '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': '6798602', 'n_tokens_mistral': 1813, 'n_tokens_neox': 1661, 'n_words': 236}