<commit_before><?php
/**
 * @package     Mautic
 * @copyright   2014 Mautic, NP. All rights reserved.
 * @author      Mautic
 * @link        http://mautic.com
 * @license     GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
 */

$view->extend('MauticCoreBundle:Default:content.html.php');
$view['slots']->set('mauticContent', 'campaign');

$header = ($entity->getId()) ?
    $view['translator']->trans('mautic.campaign.menu.edit',
        array('%name%' => $view['translator']->trans($entity->getName()))) :
    $view['translator']->trans('mautic.campaign.menu.new');
$view['slots']->set("headerTitle", $header);
?>

<?php echo $view['form']->start($form); ?>
<!-- start: box layout -->
<div class="box-layout">
    <!-- container -->
    <div class="col-md-9 bg-auto height-auto bdr-r">
        <div class="pa-md">
            <?php
            echo $view['form']->row($form['name']);
            echo $view['form']->row($form['description']);
            ?>
        </div>
    </div>
    <div class="col-md-3 bg-white height-auto">
        <div class="pr-lg pl-lg pt-md pb-md">
            <?php
            echo $view['form']->row($form['category_lookup']);
            echo $view['form']->row($form['category']);
            echo $view['form']->row($form['isPublished']);
            echo $view['form']->row($form['publishUp']);
            echo $view['form']->row($form['publishDown']);
            ?>
        </div>
    </div>
</div>

<?php echo $view['form']->end($form); ?>

<?php echo $view->render('MauticCampaignBundle:Campaign:builder.html.php', array('components' => $components)); ?><commit_msg>Fixed undefined $components variable error on Campaign edit form<commit_after><?php
/**
 * @package     Mautic
 * @copyright   2014 Mautic, NP. All rights reserved.
 * @author      Mautic
 * @link        http://mautic.com
 * @license     GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
 */

$view->extend('MauticCoreBundle:Default:content.html.php');
$view['slots']->set('mauticContent', 'campaign');

$header = ($entity->getId()) ?
    $view['translator']->trans('mautic.campaign.menu.edit',
        array('%name%' => $view['translator']->trans($entity->getName()))) :
    $view['translator']->trans('mautic.campaign.menu.new');
$view['slots']->set("headerTitle", $header);
?>

<?php echo $view['form']->start($form); ?>
<!-- start: box layout -->
<div class="box-layout">
    <!-- container -->
    <div class="col-md-9 bg-auto height-auto bdr-r">
        <div class="pa-md">
            <?php
            echo $view['form']->row($form['name']);
            echo $view['form']->row($form['description']);
            ?>
        </div>
    </div>
    <div class="col-md-3 bg-white height-auto">
        <div class="pr-lg pl-lg pt-md pb-md">
            <?php
            echo $view['form']->row($form['category_lookup']);
            echo $view['form']->row($form['category']);
            echo $view['form']->row($form['isPublished']);
            echo $view['form']->row($form['publishUp']);
            echo $view['form']->row($form['publishDown']);
            ?>
        </div>
    </div>
</div>

<?php echo $view['form']->end($form); ?>

<?php echo isset($components) ? $view->render('MauticCampaignBundle:Campaign:builder.html.php', array('components' => $components)) : ''; ?>
{'fraction_non_alphanumeric': 0.23340406183692028, 'fraction_numerical': 0.005456198848135798, 'mean_word_length': 2.9711191335740073, 'pattern_counts': {'":': 0, '<': 39, '<?xml version=': 0, '>': 79, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '2010109', 'n_tokens_mistral': 1081, 'n_tokens_neox': 1071, 'n_words': 173}