<commit_before>package com.danidemi.jlubricant.embeddable.jetty;

import java.util.EnumSet;

import javax.servlet.DispatcherType;
import javax.servlet.ServletContext;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

import org.springframework.web.filter.DelegatingFilterProxy;

public class SpringSecurityFeature implements ServletContextListener, Feature {
	
	public SpringSecurityFeature() {
		super();
	}
	
	@Override
	public void install(EmbeddableJetty embeddableJetty) {
		embeddableJetty.getHandler().addEventListener(this);
	}

	public void contextInitialized(ServletContextEvent sce) {
		ServletContext servletContext = sce.getServletContext();<commit_msg>Adding spring security<commit_after>package com.danidemi.jlubricant.embeddable.jetty;

import java.util.EnumSet;

import javax.servlet.DispatcherType;
import javax.servlet.ServletContext;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

import org.springframework.web.filter.DelegatingFilterProxy;

/** Add the SpringSecurity filter to the web app. */
public class SpringSecurityFeature implements ServletContextListener, Feature {
	
	public SpringSecurityFeature() {
		super();
	}
	
	@Override
	public void install(EmbeddableJetty embeddableJetty) {
		embeddableJetty.getHandler().addEventListener(this);
	}

	public void contextInitialized(ServletContextEvent sce) {
		ServletContext servletContext = sce.getServletContext();
{'fraction_non_alphanumeric': 0.08163265306122448, 'fraction_numerical': 0.0, 'mean_word_length': 6.994565217391305, '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': '2410986', 'n_tokens_mistral': 429, 'n_tokens_neox': 401, 'n_words': 81}