<commit_before><?php

namespace Rezzza\AliceExtension\Compiler;

use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;

class ResolveFixturesPathPass implements CompilerPassInterface
{
    public function process(ContainerBuilder $container)
    {
        $sfContainer = $container->get('behat.symfony2_extension.kernel')->getContainer();
        $fixturesPath = $container->getParameter('behat.alice.fixtures');
        $appPath = $sfContainer->getParameter('kernel.root_dir');

        $container->setParameter('behat.alice.fixtures', $appPath.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.$fixturesPath);
    }
}<commit_msg>If there is no fixture path defined, do not prefix it by app path.<commit_after><?php

namespace Rezzza\AliceExtension\Compiler;

use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;

class ResolveFixturesPathPass implements CompilerPassInterface
{
    public function process(ContainerBuilder $container)
    {
        $sfContainer = $container->get('behat.symfony2_extension.kernel')->getContainer();
        $fixturesPath = $container->getParameter('behat.alice.fixtures');
        $appPath = $sfContainer->getParameter('kernel.root_dir');

        $container->setParameter('behat.alice.fixtures', $fixturesPath ? $appPath.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.$fixturesPath : null);
    }
}
{'fraction_non_alphanumeric': 0.11626344086021505, 'fraction_numerical': 0.0013440860215053765, 'mean_word_length': 5.559471365638767, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, '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': '1563524', 'n_tokens_mistral': 416, 'n_tokens_neox': 414, 'n_words': 61}