<commit_before>parameters:
    services.search.class: HealthCareAbroad\SearchBundle\Services\SearchService
    services.search.strategy.class: HealthCareAbroad\SearchBundle\Services\SearchStrategy\SearchStrategy
    services.search.default_strategy.class: HealthCareAbroad\SearchBundle\Services\SearchStrategy\DefaultSearchStrategy
    services.search.elastic_strategy.class: HealthCareAbroad\SearchBundle\Services\SearchStrategy\ElasticSearchStrategy
    enableElasticSearch: true
    #4 days
    search.cache_expiration: 14400

services:
    services.search.listener:
        class: HealthCareAbroad\SearchBundle\Services\ProcessSearchListener
        tags:
            -
                name: kernel.event_listener
                event: kernel.controller
                priority: -10

    #services.search.provider.country:
    #    class: HealthCareAbroad\SearchBundle\ElasticSearch\Providers\CountryProvider
    #    tags: [foq_elastica.provider]
    #    index: destinations
    #    type: country
    #    arguments: [@foq_elastica.index.destinations.country]

    services.search.strategy:
        class: %services.search.strategy.class%
        abstract: true
        calls:
            - [setContainer, [@service_container]]

    #Enable either one of these strategies and edit the argument for the
    #services.search. Elastic strategy uses the elasticsearch search engine
    #while default strategy (slower) is implemented using good old mysql<commit_msg>changed cached search terms expiration to 20 minutes<commit_after>parameters:
    services.search.class: HealthCareAbroad\SearchBundle\Services\SearchService
    services.search.strategy.class: HealthCareAbroad\SearchBundle\Services\SearchStrategy\SearchStrategy
    services.search.default_strategy.class: HealthCareAbroad\SearchBundle\Services\SearchStrategy\DefaultSearchStrategy
    services.search.elastic_strategy.class: HealthCareAbroad\SearchBundle\Services\SearchStrategy\ElasticSearchStrategy
    enableElasticSearch: true
    #20 minutes
    search.cache_expiration: 1800

services:
    services.search.listener:
        class: HealthCareAbroad\SearchBundle\Services\ProcessSearchListener
        tags:
            -
                name: kernel.event_listener
                event: kernel.controller
                priority: -10

    #services.search.provider.country:
    #    class: HealthCareAbroad\SearchBundle\ElasticSearch\Providers\CountryProvider
    #    tags: [foq_elastica.provider]
    #    index: destinations
    #    type: country
    #    arguments: [@foq_elastica.index.destinations.country]

    services.search.strategy:
        class: %services.search.strategy.class%
        abstract: true
        calls:
            - [setContainer, [@service_container]]

    #Enable either one of these strategies and edit the argument for the
    #services.search. Elastic strategy uses the elasticsearch search engine
    #while default strategy (slower) is implemented using good old mysql
{'fraction_non_alphanumeric': 0.07171581769436998, 'fraction_numerical': 0.006032171581769437, 'mean_word_length': 3.3513119533527695, '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': '4823051', 'n_tokens_mistral': 799, 'n_tokens_neox': 750, 'n_words': 156}