<commit_before><?php

namespace OpenOrchestra\GroupBundle\DependencyInjection\Compiler;

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

/**
 * Class EntityResolverCompilerPass
 */
class EntityResolverCompilerPass implements  CompilerPassInterface
{
    /**
     * @param ContainerBuilder $container
     */
    public function process(ContainerBuilder $container)
    {
        $resourcePath = '.';

        foreach ($container->getResources() as $resource) {
            $resourcePath = $resource->getResource();
            if (is_string($resourcePath)) {
                if (strpos($resourcePath, 'open-orchestra-cms-bundle')
                    && strpos($resourcePath, 'GroupBundle')
                    && strpos($resourcePath, 'config')
                    && strpos($resourcePath, 'yml') === false<commit_msg>supress deprecated<commit_after><?php

namespace OpenOrchestra\GroupBundle\DependencyInjection\Compiler;

use Symfony\Component\Config\Resource\FileResource;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\Yaml\Yaml;

/**
 * Class EntityResolverCompilerPass
 */
class EntityResolverCompilerPass implements  CompilerPassInterface
{
    /**
     * @param ContainerBuilder $container
     */
    public function process(ContainerBuilder $container)
    {
        $resourcePath = '.';

        foreach ($container->getResources() as $resource) {
            if (!$resource instanceof FileResource) {
                continue;
            }
            $resourcePath = (string) $resource;
            if (is_string($resourcePath)) {
                if (strpos($resourcePath, 'open-orchestra-cms-bundle')
                    && strpos($resourcePath, 'GroupBundle')
                    && strpos($resourcePath, 'config')
                    && strpos($resourcePath, 'yml') === false
{'fraction_non_alphanumeric': 0.11083621969322117, 'fraction_numerical': 0.0, 'mean_word_length': 3.003960396039604, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, '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': '5713029', 'n_tokens_mistral': 510, 'n_tokens_neox': 500, 'n_words': 90}