<commit_before>package coop.ekologia.presentation.request;

import java.util.Arrays;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

import javax.enterprise.context.RequestScoped;
import javax.inject.Inject;
import javax.servlet.http.HttpServletRequest;

import org.jboss.resteasy.spi.HttpRequest;

@RequestScoped
public class GlobalRequestScope {
	List<String> ALLOWED_LANGUAGES = Arrays.asList("fr", "en");

	@Inject
	HttpServletRequest request;

	private String language;
	
	private String internalUrl;

	public GlobalRequestScope() {
	}
	

	/**
	 * Returns the language from the request url.
	 * 
	 * @return The language
	 */
	public String getLanguage() {
		if (language == null) {
			language = extractLanguageFromURL();
			request.setAttribute("language", language);
		}
		return language;
	}
	<commit_msg>correction dépendance jboss bloquant le build<commit_after>package coop.ekologia.presentation.request;

import java.util.Arrays;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

import javax.enterprise.context.RequestScoped;
import javax.inject.Inject;
import javax.servlet.http.HttpServletRequest;

@RequestScoped
public class GlobalRequestScope {
	List<String> ALLOWED_LANGUAGES = Arrays.asList("fr", "en");

	@Inject
	HttpServletRequest request;

	private String language;
	
	private String internalUrl;

	public GlobalRequestScope() {
	}
	

	/**
	 * Returns the language from the request url.
	 * 
	 * @return The language
	 */
	public String getLanguage() {
		if (language == null) {
			language = extractLanguageFromURL();
			request.setAttribute("language", language);
		}
		return language;
	}
	
{'fraction_non_alphanumeric': 0.10436320754716981, 'fraction_numerical': 0.0, 'mean_word_length': 4.752542372881356, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5219413', 'n_tokens_mistral': 540, 'n_tokens_neox': 506, 'n_words': 121}