<commit_before>package kr.jm.springboot;

import java.util.Arrays;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
// same as @Configuration @EnableAutoConfiguration @ComponentScan
@EnableScheduling
public class JMSpringBootApplication {

	private static final String LOGGING_PATH = "logging.path";
	private static final String LOGGING_LEVEL = "logging.level";

	static {
		if (!System.getProperties().containsKey(LOGGING_PATH))
			System.setProperty(LOGGING_PATH, "log");
		if (!System.getProperties().containsKey(LOGGING_LEVEL))
			System.setProperty(LOGGING_LEVEL, "INFO");
	}

	public static void main(String[] args) {

		ApplicationContext ctx = SpringApplication.run(
				JMSpringBootApplication.class, args);

		System.out.println("Let's inspect the beans provided by Spring Boot:");

		String[] beanNames = ctx.getBeanDefinitionNames();
		Arrays.sort(beanNames);
		for (String beanName : beanNames)
			System.out.println(beanName);

		// service start
		JMServiceSpringBootInterface jmServiceSpringBoot = ctx.getBean(
				"jmService", JMServiceSpringBootInterface.class);
		jmServiceSpringBoot.start();<commit_msg>refactoring<commit_after>package kr.jm.springboot;

import java.util.Arrays;

import kr.jm.utils.helper.JMResources;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
// same as @Configuration @EnableAutoConfiguration @ComponentScan
@EnableScheduling
public class JMSpringBootApplication {

	static {
		JMResources.setSystemPropertyIfIsNull("logging.path", "log");
		JMResources.setSystemPropertyIfIsNull("logging.level", "INFO");
	}

	public static void main(String[] args) {

		ApplicationContext ctx = SpringApplication.run(
				JMSpringBootApplication.class, args);

		System.out.println("Let's inspect the beans provided by Spring Boot:");

		String[] beanNames = ctx.getBeanDefinitionNames();
		Arrays.sort(beanNames);
		for (String beanName : beanNames)
			System.out.println(beanName);

		// service start
		JMServiceSpringBootInterface jmServiceSpringBoot = ctx.getBean(
				"jmService", JMServiceSpringBootInterface.class);
		jmServiceSpringBoot.start();
{'fraction_non_alphanumeric': 0.09920058139534883, 'fraction_numerical': 0.0, 'mean_word_length': 6.501362397820164, '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': '4151679', 'n_tokens_mistral': 814, 'n_tokens_neox': 752, 'n_words': 149}