<commit_before>namespace('Sy.FrameworkBundle.Config');

/**
 * Basic service needed throughout the framework
 *
 * @package Sy
 * @subpackage FrameworkBundle
 * @class
 */

Sy.FrameworkBundle.Config.Service = function () {};
Sy.FrameworkBundle.Config.Service.prototype = Object.create(Object.prototype, {
    define: {
        value: function (container) {
            var pass = new Sy.FrameworkBundle.CompilerPass.EventSubscriberPass();

            container.set({
                'sy::core::generator::uuid': {
                    constructor: 'Sy.Lib.Generator.UUID'
                },
                mediator: '@sy::core::mediator',
                'sy::core::mediator': {
                    constructor: 'Sy.Lib.Mediator',
                    calls: [
                        ['setGenerator', ['@sy::core::generator::uuid']],
                        ['setLogger', ['@sy::core::logger']]
                    ]
                },
                'sy::core::registry::factory': {
                    constructor: 'Sy.RegistryFactory'
                },
                registry: '@sy::core::registry',
                'sy::core::registry': {
                    constructor: 'Sy.Registry',
                    factory: ['sy::core::registry::factory', 'make'],
                    prototype: true
                },
                'sy::core::stateregistry::factory': {
                    constructor: 'Sy.StateRegistryFactory',
                    calls: [
                        ['setRegistryFactory', ['@sy::core::registry::factory']]
                    ]
                },
                stateregistry: '@sy::core::stateregistry',
                'sy::core::stateregistry': {
                    constructor: 'Sy.StateRegistry',
                    fatory: ['sy::core::stateregistry::factory', 'make'],
                    prototype: true
                },
                logger: '@sy::core::logger',
                'sy::core::logger': {
                    constructor: 'Sy.Lib.Logger.CoreLogger',
                    calls: [
                        ['setName', ['core']],
                        ['setHandler', ['@sy::core::logger::handler::info', '%logger.level.info%']],
                        ['setHandler', ['@sy::core::logger::handler::debug', '%logger.level.debug%']],
                        ['setHandler', ['@sy::core::logger::handler::error', '%logger.level.error%']],
                        ['setHandler', ['@sy::core::logger::handler::log', '%logger.level.log%']],
                    ]
                },
                'sy::core::logger::handler::info': {
                    constructor: 'Sy.Lib.Logger.Handler.Console',
                    calls: [
                        ['setLevel', ['%logger.level.info%']]
                    ],
                    private: true
                },
                'sy::core::logger::handler::debug': {
                    constructor: 'Sy.Lib.Logger.Handler.Console',
                    calls: [
                        ['setLevel', ['%logger.level.debug%']]
                    ],
                    private: true
                },
                'sy::core::logger::handler::error': {
                    constructor: 'Sy.Lib.Logger.Handler.Console',
                    calls: [
                        ['setLevel', ['%logger.level.error%']]
                    ],
                    private: true
                },
                'sy::core::logger::handler::log': {
                    constructor: 'Sy.Lib.Logger.Handler.Console',
                    calls: [
                        ['setLevel', ['%logger.level.log%']]
                    ],
                    private: true
                },
                'sy::core::propertyaccessor': {
                    constructor: 'Sy.PropertyAccessor',
                    prototype: true
                }
            });

            container.addPass(
                pass,
                pass.AFTER_REMOVING
            );
        }
    }
});<commit_msg>remove reference to old pass to register subscribers<commit_after>namespace('Sy.FrameworkBundle.Config');

/**
 * Basic service needed throughout the framework
 *
 * @package Sy
 * @subpackage FrameworkBundle
 * @class
 */

Sy.FrameworkBundle.Config.Service = function () {};
Sy.FrameworkBundle.Config.Service.prototype = Object.create(Object.prototype, {
    define: {
        value: function (container) {
            container.set({
                'sy::core::generator::uuid': {
                    constructor: 'Sy.Lib.Generator.UUID'
                },
                mediator: '@sy::core::mediator',
                'sy::core::mediator': {
                    constructor: 'Sy.Lib.Mediator',
                    calls: [
                        ['setGenerator', ['@sy::core::generator::uuid']],
                        ['setLogger', ['@sy::core::logger']]
                    ]
                },
                'sy::core::registry::factory': {
                    constructor: 'Sy.RegistryFactory'
                },
                registry: '@sy::core::registry',
                'sy::core::registry': {
                    constructor: 'Sy.Registry',
                    factory: ['sy::core::registry::factory', 'make'],
                    prototype: true
                },
                'sy::core::stateregistry::factory': {
                    constructor: 'Sy.StateRegistryFactory',
                    calls: [
                        ['setRegistryFactory', ['@sy::core::registry::factory']]
                    ]
                },
                stateregistry: '@sy::core::stateregistry',
                'sy::core::stateregistry': {
                    constructor: 'Sy.StateRegistry',
                    fatory: ['sy::core::stateregistry::factory', 'make'],
                    prototype: true
                },
                logger: '@sy::core::logger',
                'sy::core::logger': {
                    constructor: 'Sy.Lib.Logger.CoreLogger',
                    calls: [
                        ['setName', ['core']],
                        ['setHandler', ['@sy::core::logger::handler::info', '%logger.level.info%']],
                        ['setHandler', ['@sy::core::logger::handler::debug', '%logger.level.debug%']],
                        ['setHandler', ['@sy::core::logger::handler::error', '%logger.level.error%']],
                        ['setHandler', ['@sy::core::logger::handler::log', '%logger.level.log%']],
                    ]
                },
                'sy::core::logger::handler::info': {
                    constructor: 'Sy.Lib.Logger.Handler.Console',
                    calls: [
                        ['setLevel', ['%logger.level.info%']]
                    ],
                    private: true
                },
                'sy::core::logger::handler::debug': {
                    constructor: 'Sy.Lib.Logger.Handler.Console',
                    calls: [
                        ['setLevel', ['%logger.level.debug%']]
                    ],
                    private: true
                },
                'sy::core::logger::handler::error': {
                    constructor: 'Sy.Lib.Logger.Handler.Console',
                    calls: [
                        ['setLevel', ['%logger.level.error%']]
                    ],
                    private: true
                },
                'sy::core::logger::handler::log': {
                    constructor: 'Sy.Lib.Logger.Handler.Console',
                    calls: [
                        ['setLevel', ['%logger.level.log%']]
                    ],
                    private: true
                },
                'sy::core::propertyaccessor': {
                    constructor: 'Sy.PropertyAccessor',
                    prototype: true
                }
            });
        }
    }
});
{'fraction_non_alphanumeric': 0.15112868256599923, 'fraction_numerical': 0.0, 'mean_word_length': 1.2127539503386005, 'pattern_counts': {'":': 0, '<': 3, '<?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': '4025739', 'n_tokens_mistral': 1924, 'n_tokens_neox': 1768, 'n_words': 254}