<commit_before>package org.imirsel.nema.flowservice;

import java.util.logging.Logger;

import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Main class for the NEMA Flow Service.
 * 
 * @author shirk
 */
public class FlowServiceApp {
	private static final Logger logger = 
		Logger.getLogger(FlowServiceApp.class.getName());
	
	/**
	 * Main method for executing the application.
	 * 
	 * @param args Arguments for the application.
	 */
	public static void main(String[] args) {
		try {
			ApplicationContext ctx = 
				new ClassPathXmlApplicationContext("org/imirsel/nema/flowservice/config/applicationContext.xml");
		} catch (BeansException e) {
			e.printStackTrace();
		}
	}

}<commit_msg>Added explicit RMI registry creation<commit_after>package org.imirsel.nema.flowservice;

import java.util.logging.Logger;

import org.springframework.beans.BeansException;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Main class for the NEMA Flow Service.
 * 
 * @author shirk
 */
public class FlowServiceApp {
	private static final Logger logger = 
		Logger.getLogger(FlowServiceApp.class.getName());
	
	/**
	 * Main method for executing the application.
	 * 
	 * @param args Arguments for the application.
	 */
	public static void main(String[] args) {
		try {
			try {
		            java.rmi.registry.LocateRegistry.createRegistry(1099);
			 	   System.out.println("RMI registry ready.");
		    } catch (Exception e) {
				   System.out.println("Exception starting RMI registry:");
				   e.printStackTrace();
		    } 
				   
			logger.info("Nema Flow Service starting up...");
			new ClassPathXmlApplicationContext("applicationContext.xml");
		} catch (BeansException e) {
			e.printStackTrace();
		}
	}

}
{'fraction_non_alphanumeric': 0.10666666666666667, 'fraction_numerical': 0.0021333333333333334, 'mean_word_length': 3.860103626943005, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '2891232', 'n_tokens_mistral': 585, 'n_tokens_neox': 516, 'n_words': 126}