<commit_before>import name.stokito.SmartConfigLocaleResolver

class LocaleConfigurationGrailsPlugin {
    String groupId = 'name.stokito'
    String version = '0.3'
    String grailsVersion = '2.0 > *'
    String title = 'Grails Locale Configuration Plugin'
    def description = '''\
Smart locale resolver to enhance the handling of the Grails localization (i18n).
The plugin allows you to specify supported languages and a default language, e.g. if the requested language is not supported.
'''
    String documentation = 'http://grails.org/plugin/locale-configuration'
    String license = 'APACHE'
    List developers = [
            [name: '<NAME>', email: '<EMAIL>'],
            [name: '<NAME>', email: '<EMAIL>']
    ]
    def issueManagement = [system: 'GitHub', url: 'https://github.com/stokito/grails-locale-configuration-plugin/issues']
    def scm = [url: 'https://github.com/stokito/grails-locale-configuration-plugin']

    List loadAfter = ['i18n']

    def doWithSpring = {
        localeResolver(SmartConfigLocaleResolver) {
            supportedLocales = application.config.name.stokito.smartLocaleResolver.supportedLocales ?: []
            defaultLocale = application.config.name.stokito.smartLocaleResolver.defaultLocale ?: null
        }
    }
}<commit_msg>0.4 release<commit_after>import name.stokito.SmartConfigLocaleResolver

class LocaleConfigurationGrailsPlugin {
    String groupId = 'name.stokito'
    String version = '0.4'
    String grailsVersion = '2.0 > *'
    String title = 'Grails Locale Configuration Plugin'
    def description = '''\
Smart locale resolver to enhance the handling of the Grails localization (i18n).
The plugin allows you to specify supported languages and a default language, e.g. if the requested language is not supported.
This plugin is intended to enhance the language support in Grails by detecting your users’ locale and selecting the most appropriate language for them.
You can specify a list of supported languages and choose which language to use if a client’s preferred language is not available.
'''
    String documentation = 'http://grails.org/plugin/locale-configuration'
    String license = 'APACHE'
    List developers = [
            [name: '<NAME>', email: '<EMAIL>'],
            [name: '<NAME>', email: '<EMAIL>']
    ]
    def issueManagement = [system: 'GitHub', url: 'https://github.com/stokito/grails-locale-configuration-plugin/issues']
    def scm = [url: 'https://github.com/stokito/grails-locale-configuration-plugin']

    List loadAfter = ['i18n']

    def doWithSpring = {
        localeResolver(SmartConfigLocaleResolver) {
            supportedLocales = application.config.name.stokito.smartLocaleResolver.supportedLocales ?: []
            defaultLocale = application.config.name.stokito.smartLocaleResolver.defaultLocale ?: null
        }
    }
}
{'fraction_non_alphanumeric': 0.10535588442565187, 'fraction_numerical': 0.006342494714587738, 'mean_word_length': 3.5864297253634896, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, 'https://': 4, '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': '234432', 'n_tokens_mistral': 791, 'n_tokens_neox': 770, 'n_words': 227}