<commit_before>package kdrlivestream;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.red5.server.adapter.ApplicationAdapter;
import org.red5.server.adapter.IApplication;
import org.red5.server.api.IConnection;
import org.red5.server.api.scheduling.ISchedulingService;
import org.red5.server.api.scope.IScope;
import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;

public class KDRLiveStream extends ApplicationAdapter implements ApplicationContextAware {
	private static final Log log = LogFactory.getLog(KDRLiveStream.class);
	private ApplicationContext applicationContext;

	public static Config config = null;

	public KDRLiveStream() {
		try {
			config = new Config();
		} catch (ConfigFileErrorException e) {
			log.error("error opening config file: " + e.getMessage());
			e.printStackTrace();
		}
	}
	
	@Override
	public boolean appStart(IScope app) {
		ISchedulingService scheduler = null;

		log.info("kdrlivestream app started.");

		addListener((IApplication)applicationContext.getBean("authHandler"));
		registerStreamPublishSecurity(new AuthPubSec());
		registerStreamPlaybackSecurity(new AuthPlaySec());
<commit_msg>added version info to the app start message<commit_after>package kdrlivestream;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.red5.server.adapter.ApplicationAdapter;
import org.red5.server.adapter.IApplication;
import org.red5.server.api.IConnection;
import org.red5.server.api.scheduling.ISchedulingService;
import org.red5.server.api.scope.IScope;
import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;

public class KDRLiveStream extends ApplicationAdapter implements ApplicationContextAware {
	private static final Log log = LogFactory.getLog(KDRLiveStream.class);
	private ApplicationContext applicationContext;

	public static Config config = null;

	public KDRLiveStream() {
		try {
			config = new Config();
		} catch (ConfigFileErrorException e) {
			log.error("error opening config file: " + e.getMessage());
			e.printStackTrace();
		}
	}
	
	@Override
	public boolean appStart(IScope app) {
		ISchedulingService scheduler = null;

		log.info("kdrlivestream app v1.1 started.");

		addListener((IApplication)applicationContext.getBean("authHandler"));
		registerStreamPublishSecurity(new AuthPubSec());
		registerStreamPlaybackSecurity(new AuthPlaySec());

{'fraction_non_alphanumeric': 0.09591134887275506, 'fraction_numerical': 0.0045854031333588076, 'mean_word_length': 6.272222222222222, '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': '6191859', 'n_tokens_mistral': 764, 'n_tokens_neox': 727, 'n_words': 156}