<commit_before>/*
 * This configuration is used by the com.sun.jini.start utility to start
 * Elastic Grid ProvisionMonitor, Webster and a Jini Lookup Service
 */
import org.rioproject.boot.BootUtil
import org.rioproject.boot.ServiceDescriptorUtil
import org.rioproject.config.Component
import com.sun.jini.start.ServiceDescriptor;

@Component('com.sun.jini.start')
class StartAllConfig {
    ServiceDescriptor[] getServiceDescriptors() {
        String jiniHome = System.getProperty('JINI_HOME')
        String egHome = System.getProperty('EG_HOME')

        def websterRoots = [jiniHome+'/lib-dl', ';',
                            jiniHome+'/lib',    ';',
                            egHome+'/lib',      ';',
                            egHome+'/deploy']

        String policyFile = egHome+'/policy/policy.all'
        String monitorConfig = egHome+'/config/monitor.groovy'
        String reggieConfig = egHome+'/config/reggie.groovy'
        String restApiConfig = egHome+'/config/rest-api.groovy'

        def serviceDescriptors = [
            /* Webster, set to serve up 4 directories */
            ServiceDescriptorUtil.getWebster(policyFile, '9010', (String[])websterRoots),
            /* Jini Lookup Service */
            ServiceDescriptorUtil.getLookup(policyFile, reggieConfig),
            /* Elastic Grid Provision Monitor */
            ServiceDescriptorUtil.getMonitor(policyFile, monitorConfig)
        ]

        return (ServiceDescriptor[])serviceDescriptors
    }
}<commit_msg>EG-51<commit_after>/*
 * This configuration is used by the com.sun.jini.start utility to start
 * Elastic Grid ProvisionMonitor, Webster and a Jini Lookup Service
 */
import org.rioproject.boot.BootUtil
import org.rioproject.boot.ServiceDescriptorUtil
import org.rioproject.config.Component
import com.sun.jini.start.ServiceDescriptor;

@Component('com.sun.jini.start')
class StartAllConfig {
    ServiceDescriptor[] getServiceDescriptors() {
        String jiniHome = System.getProperty('JINI_HOME')
        String egHome = System.getProperty('EG_HOME')

        def websterRoots = [jiniHome+'/lib-dl', ';',
                            jiniHome+'/lib',    ';',
                            egHome+'/lib',      ';',
                            egHome+'/deploy']

        String policyFile = egHome+'/policy/policy.all'
        String monitorConfig = egHome+'/config/monitor.groovy'
        String reggieConfig = egHome+'/config/reggie.groovy'
        String restApiConfig = egHome+'/config/rest-api.groovy'

        def serviceDescriptors = [
            /* Webster, set to serve up 4 directories */
            ServiceDescriptorUtil.getWebster(policyFile, '9010', (String[])websterRoots),
            /* Jini Lookup Service */
            ServiceDescriptorUtil.getLookup(policyFile, reggieConfig),
            /* Elastic Grid Provision Monitor */
            ServiceDescriptorUtil.getMonitor(policyFile, monitorConfig),
            /* Elastic Grid REST API */
            ServiceDescriptorUtil.getRestApi(policyFile, restApiConfig)
        ]

        return (ServiceDescriptor[])serviceDescriptors
    }
}
{'fraction_non_alphanumeric': 0.10628019323671498, 'fraction_numerical': 0.003864734299516908, 'mean_word_length': 2.5660160734787603, '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': '2493768', 'n_tokens_mistral': 870, 'n_tokens_neox': 837, 'n_words': 170}