<commit_before>package ca.corefacility.bioinformatics.irida.config;

import java.util.HashMap;
import java.util.Map;

import org.springframework.beans.factory.config.CustomScopeConfigurer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.support.SimpleThreadScope;
import org.springframework.web.context.request.SessionScope;

@Configuration
public class IridaWebTestScopeConfig {
	@Bean
	public CustomScopeConfigurer customScopeConfigurer() {
		CustomScopeConfigurer customScopeConfigurer = new CustomScopeConfigurer();
		SimpleThreadScope session = new SimpleThreadScope();
		Map<String, Object> scopes = new HashMap<>();
		scopes.put("session", session);
		customScopeConfigurer.setScopes(scopes);<commit_msg>comments<commit_after>package ca.corefacility.bioinformatics.irida.config;

import java.util.HashMap;
import java.util.Map;

import org.springframework.beans.factory.config.CustomScopeConfigurer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.support.SimpleThreadScope;

/**
 * Configuration file for allowing session scoped beans in test. Include this
 * file in @ContextConfiguration(classes) on integration tests.
 * 
 * @author <NAME> <<EMAIL>>
 *
 */
@Configuration
public class IridaWebTestScopeConfig {
	@Bean
	public CustomScopeConfigurer customScopeConfigurer() {
		CustomScopeConfigurer customScopeConfigurer = new CustomScopeConfigurer();
		SimpleThreadScope session = new SimpleThreadScope();
		Map<String, Object> scopes = new HashMap<>();
		scopes.put("session", session);
		customScopeConfigurer.setScopes(scopes);
{'fraction_non_alphanumeric': 0.09534750143595634, 'fraction_numerical': 0.0, 'mean_word_length': 7.140186915887851, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, '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': '7063667', 'n_tokens_mistral': 470, 'n_tokens_neox': 455, 'n_words': 97}