<commit_before>import org.codehaus.groovy.grails.commons.ClassPropertyFetcher
import org.codehaus.groovy.grails.plugins.hibernate.search.SearchMappingConfigurableLocalSessionFactoryBean
import org.codehaus.groovy.grails.plugins.hibernate.search.SearchPersistentMethod
import org.hibernate.search.annotations.Indexed
import org.springframework.core.annotation.AnnotationUtils

class HibernateSearchGrailsPlugin {
    def version = "0.4"
    def grailsVersion = "2.0 > *"
    def loadAfter = ['hibernate']
    def title = "Hibernate Search Plugin"
    def author = "<NAME>, <NAME>"
    def authorEmail = "<EMAIL>, <EMAIL>"
    def description = 'Integrates Hibernate Search features to Grails'
    def documentation = "http://grails.org/plugin/hibernate-search"
    def license = 'APACHE'
    def organization = [name: 'NovaCodex', url: 'http://www.novacodex.net/']
    def developers = [
            [name: '<NAME>', email: '<EMAIL>'],
            [name: '<NAME>', email: '<EMAIL>']]
    def issueManagement = [system: 'github', url: 'https://github.com/mathpere/grails-hibernate-search-plugin/issues']
    def scm = [url: 'https://github.com/mathpere/grails-hibernate-search-plugin']

    def doWithSpring = {
        sessionFactory(SearchMappingConfigurableLocalSessionFactoryBean) { bean ->
            // see org.codehaus.groovy.grails.plugins.orm.hibernate.HibernatePluginSupport:
            bean.parent = 'abstractSessionFactoryBeanConfig'
        }
    }

    def doWithDynamicMethods = { ctx ->

        def sessionFactory = ctx.getBean("sessionFactory")<commit_msg>prepare release 0.41<commit_after>import org.codehaus.groovy.grails.commons.ClassPropertyFetcher
import org.codehaus.groovy.grails.plugins.hibernate.search.SearchMappingConfigurableLocalSessionFactoryBean
import org.codehaus.groovy.grails.plugins.hibernate.search.SearchPersistentMethod
import org.hibernate.search.annotations.Indexed
import org.springframework.core.annotation.AnnotationUtils

class HibernateSearchGrailsPlugin {
    def version = "0.41"
    def grailsVersion = "2.0 > *"
    def loadAfter = ['hibernate']
    def title = "Hibernate Search Plugin"
    def author = "<NAME>, <NAME>"
    def authorEmail = "<EMAIL>, <EMAIL>"
    def description = 'Integrates Hibernate Search features to Grails'
    def documentation = "http://grails.org/plugin/hibernate-search"
    def license = 'APACHE'
    def organization = [name: 'NovaCodex', url: 'http://www.novacodex.net/']
    def developers = [
            [name: '<NAME>', email: '<EMAIL>'],
            [name: '<NAME>', email: '<EMAIL>']]
    def issueManagement = [system: 'github', url: 'https://github.com/mathpere/grails-hibernate-search-plugin/issues']
    def scm = [url: 'https://github.com/mathpere/grails-hibernate-search-plugin']

    def doWithSpring = {
        sessionFactory(SearchMappingConfigurableLocalSessionFactoryBean) { bean ->
            // see org.codehaus.groovy.grails.plugins.orm.hibernate.HibernatePluginSupport:
            bean.parent = 'abstractSessionFactoryBeanConfig'
        }
    }

    def doWithDynamicMethods = { ctx ->

        def sessionFactory = ctx.getBean("sessionFactory")
{'fraction_non_alphanumeric': 0.12389100126742712, 'fraction_numerical': 0.0038022813688212928, 'mean_word_length': 3.8125, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 25, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, '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': '1765548', 'n_tokens_mistral': 962, 'n_tokens_neox': 904, 'n_words': 177}