<commit_before>imports:
    - { resource: parameters.yml }
    - { resource: security.yml }

framework:
    esi:
        enabled: true
    translator:      { fallback: %locale% }
    secret:          %secret%
    router:
        resource: "%kernel.root_dir%/config/routing.yml"
        strict_requirements: %kernel.debug%
    form:            true
    csrf_protection: true
    validation:      { enable_annotations: true }
    templating:      { engines: ['twig'] } #assets_version: SomeVersionScheme
    default_locale:  %locale%
    trusted_proxies: ~
    trust_proxy_headers: false # Whether or not the Request object should trust proxy headers (X_FORWARDED_FOR/HTTP_CLIENT_IP)
    session:
        name: CULTURE_SESSID
#        domain:      %domain%

# Twig Configuration
twig:
    debug:            %kernel.debug%
    strict_variables: %kernel.debug%
    globals:
        progorod_api_key: %progorod_api_key%
    form:
        resources:
             - 'ArmdMediaHelperBundle:Form:fields.html.twig'

# Assetic Configuration
assetic:
    debug:          %kernel.debug%
    use_controller: false
    #bundles:        [ "FOSCommentBundle", "ArmdCommunicationPlatformBundle" ]
    #bundles: [ "FOSCommentBundle", "ArmdCommentBundle" ]
    #java: /usr/bin/java
    filters:
        cssrewrite: ~
        #closure:
        #    jar: %kernel.root_dir%/Resources/java/compiler.jar
        #yui_css:
        #    jar: %kernel.root_dir%/Resources/java/yuicompressor-2.4.7.jar

# Doctrine Configuration
doctrine:
    dbal:
        driver:   %database_driver%
        host:     %database_host%
        port:     %database_port%
        dbname:   %database_name%
        user:     %database_user%
        password: %<PASSWORD>%
        charset:  UTF8
        types:
            json: Sonata\Doctrine\Types\JsonType

    orm:
        auto_generate_proxy_classes: %kernel.debug%
        entity_managers:
            default:
                auto_mapping: true
                dql:
                    numeric_functions:
                        toint: Armd\DoctrineBundle\DQL\PgSql\PgSqlToInt

# Swiftmailer Configuration
swiftmailer:
    transport: %mailer_transport%
    host:      %mailer_host%
    username:  %mailer_user%
    password:  %<PASSWORD>%
    #spool:     { type: memory }
    
stof_doctrine_extensions:
    orm:
        default:
            sluggable: true
            tree: true
            timestampable: true

sonata_admin:
    security:
        handler: sonata.admin.security.handler.noop
    title:      Sonata Project
    title_logo: /bundles/sonataadmin/logo_title.png
    dashboard:
        blocks:
            # display a dashboard block
            - { position: left, type: sonata.admin.block.admin_list }
    templates:
        layout:  :Backend:base.html.twig

sonata_block:
    default_contexts: [cms]
    blocks:
        sonata.admin.block.admin_list:
            contexts:   [admin]

sonata_user:
    security_acl: true
    class:
        user:   Armd\UserBundle\Entity\User
        group:  Armd\UserBundle\Entity\Group
    impersonating_route:    armd_news_list_index
    profile:
        form:
            type: armd_user_profile

    
sonata_media:
    default_context: news
    db_driver: doctrine_orm # or doctrine_mongodb
    contexts:
        default:  # the default context is mandatory
            download:
                strategy: sonata.media.security.public_strategy
                mode: http
            providers:
                - sonata.media.provider.dailymotion
                - sonata.media.provider.youtube
                - sonata.media.provider.image
                - sonata.media.provider.file
                - sonata.media.provider.culturetv

            formats:
                adminPreview: { width: 314, height: 187, quality: 90}

        stuff:
            download:
                strategy: sonata.media.security.public_strategy
                mode: http
            providers:
                - sonata.media.provider.file
                - sonata.media.provider.culturetv
                - sonata.media.provider.youtube
            formats:
                original: { }

        news:
            download:
                strategy: sonata.media.security.public_strategy
                mode: http
            providers:
                - sonata.media.provider.image
                - sonata.media.provider.culturetv
                - sonata.media.provider.youtube

            formats:
                adminPreview: { width: 314 , height: 187, quality: 90}
                billboard: { width: 761, height: 507 }
                eventsBillboard: { width: 358, height: 319 }
                latest: { width: 85, height: 65 }
                list: { width: 160, height: 107 }
                big: { width: 920 }
                thumbnail: { width: 85, height: 85 }
                searchAllResult: { width: 160, height: 107 }

        chronicle:
            download:
                strategy: sonata.media.security.public_strategy
                mode: http
            providers:
                - sonata.media.provider.image
            formats:
                adminPreview: { width: 314, height: 187, quality: 90}
                list: { width: 592 }

        atlas:
            download:
                strategy: sonata.media.security.public_strategy
                mode: http
            providers:
                - sonata.media.provider.image
            formats:
                image3d: { width: 405 }
                big: { width: 920 }
                thumbnail: { width: 85, height: 85 }
                imagesOfRussia: { width: 242, height: 187 }
                imagesOfRussiaSmall: { width: 85, height: 61 }
                imagesOfRussiaUnderMap: { width: 127, height: 107 }
                searchAllResult: { width: 160, height: 107 }
                sideBanner: { width: 308 }
                atlasW613: { width: 613 }
                atlasW63H56: { width: 63, height: 56 }

        atlas_icon:
            download:
                strategy: sonata.media.security.public_strategy
                mode: http
            providers:
                - sonata.media.provider.image
            formats:
                default: {width: 27, height: 45}


        lecture:
            download:
                strategy: sonata.media.security.public_strategy
                mode: http
            providers:
                - sonata.media.provider.file
                - sonata.media.provider.image
                - sonata.media.provider.culturetv
                - sonata.media.provider.youtube
            formats:
                xbig: { width: 670, height: 378 }
                big: { width: 335, height: 189 }
                tile: {width: 295, height: 228 }
                medium: { width: 111 }
                small: { width: 85 }
                searchAllResult: { width: 160, height: 107 }
                lectureW160H120: { width: 160, height: 120 }
                lectureH228: { height: 228 }

        museum:
            download:
                strategy: sonata.media.security.public_strategy
                mode: http        
            providers:
                - sonata.media.provider.image
            formats:
                billboard: { width: 213 }
                searchAllResult: { width: 160, height: 107 }
                banner: { width: 922 }
                realSmall: { width: 285 }

        gallery:
            download:
                strategy: sonata.media.security.public_strategy
                mode: http
            providers:
                - sonata.media.provider.image
                - sonata.media.provider.file
            formats:
                big: { width: 920 }
                thumbnail: { width: 85, height: 85 }
                archive: {width: 98}

        paper_archive:
            download:

                strategy: sonata.media.security.public_strategy
                mode: http
            providers:
                - sonata.media.provider.image
                - sonata.media.provider.file
            formats:
                big: { width: 200 }
                small: { width: 97 }
        
        online_broadcast:
            download:
                strategy: sonata.media.security.public_strategy
                mode: http
            providers:
                - sonata.media.provider.image
            formats:
                default: { width: 278 }
                broadcastW600: { width: 600 }
                
        exhibit:
            download:
                strategy: sonata.media.security.public_strategy
                mode: http
            providers:
                - sonata.media.provider.image
            formats:
                default: { width: 600 }
                smallThumbnail: { width: 40 }
                smallZoom: { width: 127 }
                small: { width: 200 }
                
        lesson:
            download:
                strategy: sonata.media.security.public_strategy
                mode: http        
            providers:
                - sonata.media.provider.image
            formats:
                searchAllResult: { width: 160, height: 107 }
                big: { width: 370 }
                small: { width: 125, height: 138 }        

        theater:
            download:
                strategy: sonata.media.security.public_strategy
                mode: http
            providers:
                - sonata.media.provider.image
            formats:
                item: { width: 600 }
                thumbnail: { width: 306, height: 179 }
                
        perfomance:
            download:
                strategy: sonata.media.security.public_strategy
                mode: http
            providers:
                - sonata.media.provider.file
                - sonata.media.provider.image
                - sonata.media.provider.culturetv
                - sonata.media.provider.youtube
            formats:
                xbig: { width: 670, height: 378 }
                big: { width: 335, height: 189 }
                tile: {width: 295, height: 228 }
                medium: { width: 111 }
                small: { width: 85 }
                searchAllResult: { width: 160, height: 107 }
                perfomanceW160H120: { width: 160, height: 120 }
                perfomanceH228: { height: 228 }
    cdn:
        server:
            path: %sonata_media_cdn%

    filesystem:
        local:
            directory:  %sonata_media_filesystem_path%
            create:     true

#    class:
#        media: "Armd\\Bundle\\MediaBundle\\Entity\\Media"
#        gallery: "Armd\\Bundle\\MediaBundle\\Entity\\Gallery"
#        gallery_has_media: "Armd\\Bundle\\MediaBundle\\Entity\\GalleryHasMedia"

    providers:
        file:
            resizer:    false<commit_msg>exhibit-58743 - 3<commit_after>imports:
    - { resource: parameters.yml }
    - { resource: security.yml }

framework:
    esi:
        enabled: true
    translator:      { fallback: %locale% }
    secret:          %secret%
    router:
        resource: "%kernel.root_dir%/config/routing.yml"
        strict_requirements: %kernel.debug%
    form:            true
    csrf_protection: true
    validation:      { enable_annotations: true }
    templating:      { engines: ['twig'] } #assets_version: SomeVersionScheme
    default_locale:  %locale%
    trusted_proxies: ~
    trust_proxy_headers: false # Whether or not the Request object should trust proxy headers (X_FORWARDED_FOR/HTTP_CLIENT_IP)
    session:
        name: CULTURE_SESSID
#        domain:      %domain%

# Twig Configuration
twig:
    debug:            %kernel.debug%
    strict_variables: %kernel.debug%
    globals:
        progorod_api_key: %progorod_api_key%
    form:
        resources:
             - 'ArmdMediaHelperBundle:Form:fields.html.twig'

# Assetic Configuration
assetic:
    debug:          %kernel.debug%
    use_controller: false
    #bundles:        [ "FOSCommentBundle", "ArmdCommunicationPlatformBundle" ]
    #bundles: [ "FOSCommentBundle", "ArmdCommentBundle" ]
    #java: /usr/bin/java
    filters:
        cssrewrite: ~
        #closure:
        #    jar: %kernel.root_dir%/Resources/java/compiler.jar
        #yui_css:
        #    jar: %kernel.root_dir%/Resources/java/yuicompressor-2.4.7.jar

# Doctrine Configuration
doctrine:
    dbal:
        driver:   %database_driver%
        host:     %database_host%
        port:     %database_port%
        dbname:   %database_name%
        user:     %database_user%
        password: %<PASSWORD>%
        charset:  UTF8
        types:
            json: Sonata\Doctrine\Types\JsonType

    orm:
        auto_generate_proxy_classes: %kernel.debug%
        entity_managers:
            default:
                auto_mapping: true
                dql:
                    numeric_functions:
                        toint: Armd\DoctrineBundle\DQL\PgSql\PgSqlToInt

# Swiftmailer Configuration
swiftmailer:
    transport: %mailer_transport%
    host:      %mailer_host%
    username:  %mailer_user%
    password:  %<PASSWORD>%
    #spool:     { type: memory }
    
stof_doctrine_extensions:
    orm:
        default:
            sluggable: true
            tree: true
            timestampable: true

sonata_admin:
    security:
        handler: sonata.admin.security.handler.noop
    title:      Sonata Project
    title_logo: /bundles/sonataadmin/logo_title.png
    dashboard:
        blocks:
            # display a dashboard block
            - { position: left, type: sonata.admin.block.admin_list }
    templates:
        layout:  :Backend:base.html.twig

sonata_block:
    default_contexts: [cms]
    blocks:
        sonata.admin.block.admin_list:
            contexts:   [admin]

sonata_user:
    security_acl: true
    class:
        user:   Armd\UserBundle\Entity\User
        group:  Armd\UserBundle\Entity\Group
    impersonating_route:    armd_news_list_index
    profile:
        form:
            type: armd_user_profile

    
sonata_media:
    default_context: news
    db_driver: doctrine_orm # or doctrine_mongodb
    contexts:
        default:  # the default context is mandatory
            download:
                strategy: sonata.media.security.public_strategy
                mode: http
            providers:
                - sonata.media.provider.dailymotion
                - sonata.media.provider.youtube
                - sonata.media.provider.image
                - sonata.media.provider.file
                - sonata.media.provider.culturetv

            formats:
                adminPreview: { width: 314, height: 187, quality: 90}

        stuff:
            download:
                strategy: sonata.media.security.public_strategy
                mode: http
            providers:
                - sonata.media.provider.file
                - sonata.media.provider.culturetv
                - sonata.media.provider.youtube
            formats:
                original: { }

        news:
            download:
                strategy: sonata.media.security.public_strategy
                mode: http
            providers:
                - sonata.media.provider.image
                - sonata.media.provider.culturetv
                - sonata.media.provider.youtube

            formats:
                adminPreview: { width: 314 , height: 187, quality: 90}
                billboard: { width: 761, height: 507 }
                eventsBillboard: { width: 358, height: 319 }
                latest: { width: 85, height: 65 }
                list: { width: 160, height: 107 }
                big: { width: 920 }
                thumbnail: { width: 85, height: 85 }
                searchAllResult: { width: 160, height: 107 }

        chronicle:
            download:
                strategy: sonata.media.security.public_strategy
                mode: http
            providers:
                - sonata.media.provider.image
            formats:
                adminPreview: { width: 314, height: 187, quality: 90}
                list: { width: 592 }

        atlas:
            download:
                strategy: sonata.media.security.public_strategy
                mode: http
            providers:
                - sonata.media.provider.image
            formats:
                image3d: { width: 405 }
                big: { width: 920 }
                thumbnail: { width: 85, height: 85 }
                imagesOfRussia: { width: 242, height: 187 }
                imagesOfRussiaSmall: { width: 85, height: 61 }
                imagesOfRussiaUnderMap: { width: 127, height: 107 }
                searchAllResult: { width: 160, height: 107 }
                sideBanner: { width: 308 }
                atlasW613: { width: 613 }
                atlasW63H56: { width: 63, height: 56 }

        atlas_icon:
            download:
                strategy: sonata.media.security.public_strategy
                mode: http
            providers:
                - sonata.media.provider.image
            formats:
                default: {width: 27, height: 45}


        lecture:
            download:
                strategy: sonata.media.security.public_strategy
                mode: http
            providers:
                - sonata.media.provider.file
                - sonata.media.provider.image
                - sonata.media.provider.culturetv
                - sonata.media.provider.youtube
            formats:
                xbig: { width: 670, height: 378 }
                big: { width: 335, height: 189 }
                tile: {width: 295, height: 228 }
                medium: { width: 111 }
                small: { width: 85 }
                searchAllResult: { width: 160, height: 107 }
                lectureW160H120: { width: 160, height: 120 }
                lectureH228: { height: 228 }

        museum:
            download:
                strategy: sonata.media.security.public_strategy
                mode: http        
            providers:
                - sonata.media.provider.image
            formats:
                billboard: { width: 213 }
                searchAllResult: { width: 160, height: 107 }
                banner: { width: 922 }
                realSmall: { width: 285 }

        gallery:
            download:
                strategy: sonata.media.security.public_strategy
                mode: http
            providers:
                - sonata.media.provider.image
                - sonata.media.provider.file
            formats:
                big: { width: 920 }
                thumbnail: { width: 85, height: 85 }
                archive: {width: 98}

        paper_archive:
            download:

                strategy: sonata.media.security.public_strategy
                mode: http
            providers:
                - sonata.media.provider.image
                - sonata.media.provider.file
            formats:
                big: { width: 200 }
                small: { width: 97 }
        
        online_broadcast:
            download:
                strategy: sonata.media.security.public_strategy
                mode: http
            providers:
                - sonata.media.provider.image
            formats:
                default: { width: 278 }
                broadcastW600: { width: 600 }
                
        exhibit:
            download:
                strategy: sonata.media.security.public_strategy
                mode: http
            providers:
                - sonata.media.provider.image
            formats:
                default: { width: 600 }
                smallThumbnail: { width: 40 }
                smallZoom: { width: 127 }
                small: { width: 200 }
                
        lesson:
            download:
                strategy: sonata.media.security.public_strategy
                mode: http        
            providers:
                - sonata.media.provider.image
            formats:
                searchAllResult: { width: 160, height: 107 }
                big: { width: 370 }
                small: { width: 125, height: 138 }        

        theater:
            download:
                strategy: sonata.media.security.public_strategy
                mode: http
            providers:
                - sonata.media.provider.image
            formats:
                item: { width: 600 }
                thumbnail: { width: 306, height: 179 }
                
        perfomance:
            download:
                strategy: sonata.media.security.public_strategy
                mode: http
            providers:
                - sonata.media.provider.file
                - sonata.media.provider.image
                - sonata.media.provider.culturetv
                - sonata.media.provider.youtube
            formats:
                xbig: { width: 670, height: 378 }
                big: { width: 335, height: 189 }
                tile: {width: 295, height: 228 }
                medium: { width: 111 }
                small: { width: 85 }
                searchAllResult: { width: 160, height: 107 }
                perfomanceW160H120: { width: 160, height: 120 }
                perfomanceH228: { height: 228 }
                
        person:
            download:
                strategy: sonata.media.security.public_strategy
                mode: http
            providers:
                - sonata.media.provider.image
            formats:
                big: { width: 600 }              
                small: { width: 200 }
                
    cdn:
        server:
            path: %sonata_media_cdn%

    filesystem:
        local:
            directory:  %sonata_media_filesystem_path%
            create:     true

#    class:
#        media: "Armd\\Bundle\\MediaBundle\\Entity\\Media"
#        gallery: "Armd\\Bundle\\MediaBundle\\Entity\\Gallery"
#        gallery_has_media: "Armd\\Bundle\\MediaBundle\\Entity\\GalleryHasMedia"

    providers:
        file:
            resizer:    false
{'fraction_non_alphanumeric': 0.08310211507846259, 'fraction_numerical': 0.02665453718444394, 'mean_word_length': 1.3364505844845909, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 31, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1639641', 'n_tokens_mistral': 6563, 'n_tokens_neox': 5801, 'n_words': 1243}