<commit_before>package com.ticketmanor.jpa;

import javax.ejb.EJB;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

/** Load some fake data. Tried to make this a Singleton EJB
 * but WildFly didn't run its @PostConstruct method.
 * If you convert it back to a singleton, remember to unplug
 * it from web.xml!
 * @author <NAME>
 */
public class FakeDataLoaderListener implements ServletContextListener {

	@EJB FakeDataLoaderEjb ejb;
	
	@Override
	public void contextInitialized(ServletContextEvent ctx) {
		System.out.println("FakeEventLoader.contextInitialized()");
		ejb.loadFakeData();
	}

	@Override
	public void contextDestroyed(ServletContextEvent arg0) {
		// Empty
	}
}<commit_msg>Make LoaderListener with @WebListener<commit_after>package com.ticketmanor.jpa;

import javax.ejb.EJB;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.annotation.WebListener;

/** Load some fake data. Tried to make this a Singleton EJB
 * but WildFly didn't run its @PostConstruct method.
 * @author <NAME>
 */
@WebListener
public class FakeDataLoaderListener implements ServletContextListener {

	@EJB FakeDataLoaderEjb ejb;
	
	@Override
	public void contextInitialized(ServletContextEvent ctx) {
		System.out.println("FakeEventLoader: servlet context initialized()");
		ejb.loadFakeData();
	}

	@Override
	public void contextDestroyed(ServletContextEvent arg0) {
		// Empty
	}
}
{'fraction_non_alphanumeric': 0.0878148400272294, 'fraction_numerical': 0.0013614703880190605, 'mean_word_length': 5.419213973799127, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 1}, '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': '6818956', 'n_tokens_mistral': 461, 'n_tokens_neox': 431, 'n_words': 121}