<commit_before>package com.nhn.pinpoint.collector.spring;

import com.nhn.pinpoint.collector.receiver.DispatchHandler;
import com.nhn.pinpoint.collector.receiver.DispatchHandlerFactory;
import org.springframework.context.support.AbstractApplicationContext;
import org.springframework.context.support.GenericApplicationContext;
import org.springframework.context.support.GenericXmlApplicationContext;
import org.springframework.core.io.ClassPathResource;

public class ApplicationContextUtils {

    public static GenericApplicationContext createContext(String contextPath) {
        return createContext0(contextPath);
    }

    public static GenericApplicationContext createContext() {
        return createContext0("applicationContext.xml");
    }

    public static DispatchHandler getDispatchHandler(AbstractApplicationContext context) {
        return context.getBean("dispatchHandler", DispatchHandler.class);
    }
<commit_msg>[강운덕] [LUCYSUS-1744] metadata를 request response구조로 전달하도록 변경. 재전송 로직은 추가적으로 필요함.<commit_after>package com.nhn.pinpoint.collector.spring;

import com.nhn.pinpoint.collector.receiver.DispatchHandler;
import org.springframework.context.support.AbstractApplicationContext;
import org.springframework.context.support.GenericApplicationContext;
import org.springframework.context.support.GenericXmlApplicationContext;
import org.springframework.core.io.ClassPathResource;

public class ApplicationContextUtils {

    public static GenericApplicationContext createContext(String contextPath) {
        return createContext0(contextPath);
    }

    public static GenericApplicationContext createContext() {
        return createContext0("applicationContext.xml");
    }

    public static DispatchHandler getDispatchHandler(AbstractApplicationContext context) {
        return context.getBean("dispatchHandler", DispatchHandler.class);
    }

{'fraction_non_alphanumeric': 0.0754414125200642, 'fraction_numerical': 0.004280363830925628, 'mean_word_length': 5.951672862453532, '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': '4826313', 'n_tokens_mistral': 478, 'n_tokens_neox': 487, 'n_words': 84}