<commit_before><?php
namespace Neos\Flow\Tests\Functional\Mvc\Fixtures\Controller;

/*
 * This file is part of the Neos.Flow package.
 *
 * (c) Contributors of the Neos Project - www.neos.io
 *
 * This package is Open Source Software. For the full copyright and license
 * information, please view the LICENSE file which was distributed with this
 * source code.
 */

use Neos\Flow\Annotations as Flow;
use Neos\Flow\Mvc\Controller\ActionController;

/**
 * An action controller test fixture
 *
 * @Flow\Scope("singleton")
 */
class ActionControllerTestBController extends ActionController
{
    public function initializeAction()
    {
        /* @var $propertyMappingConfiguration \Neos\Flow\Property\PropertyMappingConfiguration */
        $propertyMappingConfiguration = $this->arguments['argument']->getPropertyMappingConfiguration();
        $propertyMappingConfiguration->allowAllProperties();
        $propertyMappingConfiguration->forProperty('collection')->allowAllProperties();
        $propertyMappingConfiguration->forProperty('collection.*')->allowAllProperties();
        $propertyMappingConfiguration->forProperty('related')->allowAllProperties();
    }

    /**
     * @param TestObjectArgument $argument
     * @Flow\IgnoreValidation(argumentName="$argument")
     * @return string
     */
    public function showObjectArgumentAction(TestObjectArgument $argument)
    {
        return $argument->getEmailAddress();
    }

    /**
     * @param TestObjectArgument $argument
     * @return string
     */
    public function requiredObjectAction(TestObjectArgument $argument)
    {
        return $argument->getEmailAddress();
    }

    /**
     * @param TestObjectArgument $argument
     * @return string
     */
    public function optionalObjectAction(TestObjectArgument $argument = null)
    {
        if ($argument === null) {
            return 'null';
        }
        return $argument->getEmailAddress();
    }

    /**
     * @param TestObjectArgument|null $argument
     * @return string
     */
    public function optionalAnnotatedObjectAction(TestObjectArgument $argument = null)
    {
        if ($argument === null) {
            return 'null';
        }
        return $argument->getEmailAddress();
    }

    /**
     * @param TestObjectArgument $argument
     * @Flow\ValidationGroups({"notValidatedGroup"})
     * @return string
     */
    public function notValidatedGroupObjectAction(TestObjectArgument $argument)
    {
        return $argument->getEmailAddress();
    }

    /**
     * @param TestObjectArgument $argument
     * @Flow\ValidationGroups({"validatedGroup"})
     * @return string
     */
    public function validatedGroupObjectAction(TestObjectArgument $argument)
    {
        return $argument->getEmailAddress();
    }

    /**
     * @param TestObjectArgument $argument
     * @Flow\ValidationGroups({"notValidatedGroup"})
     * @return string
     */
    public function notValidatedGroupCollectionAction(TestObjectArgument $argument)
    {
        return $argument->getChildren()->get(0)->getEmailAddress();
    }

    /**
     * @param TestObjectArgument $argument
     * @Flow\ValidationGroups({"validatedGroup"})
     * @return string
     */
    public function validatedGroupCollectionAction(TestObjectArgument $argument)
    {
        return $argument->getChildren()->get(0)->getEmailAddress();
    }

    /**
     * @param string $argument
     * @return string
     */
    public function requiredStringAction($argument)
    {
        return var_export($argument, true);
    }<commit_msg>BUGFIX: Wrong collection property name merged in<commit_after><?php
namespace Neos\Flow\Tests\Functional\Mvc\Fixtures\Controller;

/*
 * This file is part of the Neos.Flow package.
 *
 * (c) Contributors of the Neos Project - www.neos.io
 *
 * This package is Open Source Software. For the full copyright and license
 * information, please view the LICENSE file which was distributed with this
 * source code.
 */

use Neos\Flow\Annotations as Flow;
use Neos\Flow\Mvc\Controller\ActionController;

/**
 * An action controller test fixture
 *
 * @Flow\Scope("singleton")
 */
class ActionControllerTestBController extends ActionController
{
    public function initializeAction()
    {
        /* @var $propertyMappingConfiguration \Neos\Flow\Property\PropertyMappingConfiguration */
        $propertyMappingConfiguration = $this->arguments['argument']->getPropertyMappingConfiguration();
        $propertyMappingConfiguration->allowAllProperties();
        $propertyMappingConfiguration->forProperty('collection')->allowAllProperties();
        $propertyMappingConfiguration->forProperty('collection.*')->allowAllProperties();
        $propertyMappingConfiguration->forProperty('related')->allowAllProperties();
    }

    /**
     * @param TestObjectArgument $argument
     * @Flow\IgnoreValidation(argumentName="$argument")
     * @return string
     */
    public function showObjectArgumentAction(TestObjectArgument $argument)
    {
        return $argument->getEmailAddress();
    }

    /**
     * @param TestObjectArgument $argument
     * @return string
     */
    public function requiredObjectAction(TestObjectArgument $argument)
    {
        return $argument->getEmailAddress();
    }

    /**
     * @param TestObjectArgument $argument
     * @return string
     */
    public function optionalObjectAction(TestObjectArgument $argument = null)
    {
        if ($argument === null) {
            return 'null';
        }
        return $argument->getEmailAddress();
    }

    /**
     * @param TestObjectArgument|null $argument
     * @return string
     */
    public function optionalAnnotatedObjectAction(TestObjectArgument $argument = null)
    {
        if ($argument === null) {
            return 'null';
        }
        return $argument->getEmailAddress();
    }

    /**
     * @param TestObjectArgument $argument
     * @Flow\ValidationGroups({"notValidatedGroup"})
     * @return string
     */
    public function notValidatedGroupObjectAction(TestObjectArgument $argument)
    {
        return $argument->getEmailAddress();
    }

    /**
     * @param TestObjectArgument $argument
     * @Flow\ValidationGroups({"validatedGroup"})
     * @return string
     */
    public function validatedGroupObjectAction(TestObjectArgument $argument)
    {
        return $argument->getEmailAddress();
    }

    /**
     * @param TestObjectArgument $argument
     * @Flow\ValidationGroups({"notValidatedGroup"})
     * @return string
     */
    public function notValidatedGroupCollectionAction(TestObjectArgument $argument)
    {
        return $argument->getCollection()->get(0)->getEmailAddress();
    }

    /**
     * @param TestObjectArgument $argument
     * @Flow\ValidationGroups({"validatedGroup"})
     * @return string
     */
    public function validatedGroupCollectionAction(TestObjectArgument $argument)
    {
        return $argument->getCollection()->get(0)->getEmailAddress();
    }

    /**
     * @param string $argument
     * @return string
     */
    public function requiredStringAction($argument)
    {
        return var_export($argument, true);
    }
{'fraction_non_alphanumeric': 0.11247729495598714, 'fraction_numerical': 0.0005588933910856504, 'mean_word_length': 3.1208981001727114, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 45, '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': '4158132', 'n_tokens_mistral': 1806, 'n_tokens_neox': 1782, 'n_words': 380}