<commit_before><?php

namespace Oro\Bundle\ApiBundle\Processor\DeleteList;

use Oro\Component\ChainProcessor\ContextInterface;
use Oro\Component\ChainProcessor\ProcessorInterface;

/**
 * Unset the "X-Include-Delete-Count" response header
 *  in case if it was requested by "X-Include: deleteCount" request header and an error occurred in deletion process.
 */
class UnsetDeleteCountHeader implements ProcessorInterface
{
    /**
     * {@inheritdoc}
     */
    public function process(ContextInterface $context)
    {
        /** @var DeleteListContext $context */<commit_msg>BAP-9985: Add processor that will set total deleted items count into response header -- comment fix<commit_after><?php

namespace Oro\Bundle\ApiBundle\Processor\DeleteList;

use Oro\Component\ChainProcessor\ContextInterface;
use Oro\Component\ChainProcessor\ProcessorInterface;

/**
 * Unset the "X-Include-Delete-Count" response header
 *  in case if it was requested by "X-Include: deleteCount" request header but an error occurred in deletion process.
 */
class UnsetDeleteCountHeader implements ProcessorInterface
{
    /**
     * {@inheritdoc}
     */
    public function process(ContextInterface $context)
    {
        /** @var DeleteListContext $context */
{'fraction_non_alphanumeric': 0.09339774557165861, 'fraction_numerical': 0.00322061191626409, 'mean_word_length': 4.200836820083682, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '1220801', 'n_tokens_mistral': 329, 'n_tokens_neox': 326, 'n_words': 98}