<commit_before>package com.myking520.github;

import java.io.File;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;

public class SpringContext {
private static SpringContext factory = new SpringContext();
	
	private static String configLocation = "config" + File.separator + "app*.xml";
	
	private static ApplicationContext ctx = new FileSystemXmlApplicationContext(configLocation);
	
	public static SpringContext getInstance(){
		return factory;
	}
	
	public static <T>T getBean(String beanName){
		return (T)ctx.getBean(beanName);
	}
	
	public static void main(String[] args) {
		GameNioSocketAcceptor gameNioSocketAcceptor=SpringContext.getInstance().getBean("gameNioSocketAcceptor");
		gameNioSocketAcceptor.start();
	}
}<commit_msg>协议结构测试类<commit_after>package com.myking520.github;

import java.io.File;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;

public class SpringContext {
	private static SpringContext factory = new SpringContext();

	private static String configLocation = "config" + File.separator + "app*.xml";

	private static ApplicationContext ctx = new FileSystemXmlApplicationContext(configLocation);

	public static SpringContext getInstance() {
		return factory;
	}

	public static <T> T getBean(String beanName) {
		return (T) ctx.getBean(beanName);
	}

	public static void main(String[] args) {
		GameNioSocketAcceptor gameNioSocketAcceptor = SpringContext.getInstance().getBean("gameNioSocketAcceptor");
		gameNioSocketAcceptor.start();
	}
}
{'fraction_non_alphanumeric': 0.0927960927960928, 'fraction_numerical': 0.003663003663003663, 'mean_word_length': 6.552995391705069, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1115124', 'n_tokens_mistral': 475, 'n_tokens_neox': 449, 'n_words': 105}