<commit_before><?php

namespace Oro\Bundle\InstallerBundle\Process\Step;

use Sylius\Bundle\FlowBundle\Process\Context\ProcessContextInterface;

use Symfony\Component\HttpFoundation\JsonResponse;

use Oro\Bundle\InstallerBundle\InstallerEvents;
use Oro\Bundle\InstallerBundle\CommandExecutor;
use Oro\Bundle\InstallerBundle\ScriptExecutor;

class InstallationStep extends AbstractStep
{
    public function displayAction(ProcessContextInterface $context)
    {
        set_time_limit(900);

        $action = $this->getRequest()->query->get('action');
        switch ($action) {
            case 'fixtures':
                return $this->handleAjaxAction('oro:migration:data:load', array('--fixtures-type' => 'demo'));
            case 'navigation':
                return $this->handleAjaxAction('oro:navigation:init');
            case 'js-routing':
                return $this->handleAjaxAction('fos:js-routing:dump');
            case 'localization':
                return $this->handleAjaxAction('oro:localization:dump');
            case 'assets':
                return $this->handleAjaxAction(
                    'oro:assets:install',
                    array('target' => './', '--exclude' => ['OroInstallerBundle'])
                );
            case 'assetic':
                return $this->handleAjaxAction('assetic:dump');<commit_msg>CRM-4052: installation selenium tests - disable DataAudit listeners in web installer<commit_after><?php

namespace Oro\Bundle\InstallerBundle\Process\Step;

use Sylius\Bundle\FlowBundle\Process\Context\ProcessContextInterface;

use Symfony\Component\HttpFoundation\JsonResponse;

use Oro\Bundle\InstallerBundle\InstallerEvents;
use Oro\Bundle\InstallerBundle\CommandExecutor;
use Oro\Bundle\InstallerBundle\ScriptExecutor;

class InstallationStep extends AbstractStep
{
    public function displayAction(ProcessContextInterface $context)
    {
        set_time_limit(900);

        $action = $this->getRequest()->query->get('action');
        switch ($action) {
            case 'fixtures':
                return $this->handleAjaxAction(
                    'oro:migration:data:load',
                    array(
                        '--fixtures-type' => 'demo',
                        '--disabled-listeners' => array(
                            'oro_dataaudit.listener.entity_listener',
                            'oro_dataaudit.listener.deprecated_audit_data_listener'
                        )
                    )
                );
            case 'navigation':
                return $this->handleAjaxAction('oro:navigation:init');
            case 'js-routing':
                return $this->handleAjaxAction('fos:js-routing:dump');
            case 'localization':
                return $this->handleAjaxAction('oro:localization:dump');
            case 'assets':
                return $this->handleAjaxAction(
                    'oro:assets:install',
                    array('target' => './', '--exclude' => ['OroInstallerBundle'])
                );
            case 'assetic':
                return $this->handleAjaxAction('assetic:dump');
{'fraction_non_alphanumeric': 0.1187800963081862, 'fraction_numerical': 0.0032102728731942215, 'mean_word_length': 2.232365145228216, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 28, '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': '3227432', 'n_tokens_mistral': 826, 'n_tokens_neox': 794, 'n_words': 126}