<commit_before>package com.watchitlater.spring;

import org.antlr.stringtemplate.StringTemplateErrorListener;
import org.apache.commons.lang.StringUtils;
import org.springframework.context.ResourceLoaderAware;
import org.springframework.core.Ordered;
import org.springframework.core.io.ResourceLoader;
import org.springframework.web.context.ServletContextAware;
import org.springframework.web.servlet.ViewResolver;
import org.springframework.web.servlet.view.UrlBasedViewResolver;

import javax.servlet.ServletContext;
import java.util.Collections;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public class StringTemplateViewResolver implements ViewResolver, ResourceLoaderAware, ServletContextAware, Ordered {

    // WebStringTemplateGroup

    protected Map<String, WebStringTemplateGroup> groupCache = new ConcurrentHashMap<String, WebStringTemplateGroup>();
    protected boolean useGroupCache = false;

    protected StringTemplateErrorListener templateErrorListener;
    protected Integer refreshIntervalInSeconds;
    protected String sourceFileCharEncoding;

    protected ResourceLoader resourceLoader;
    protected String templateRoot = "";
    protected String sharedRoot;

    // WebStringTemplate<commit_msg>grouping properties together by their effect<commit_after>package com.watchitlater.spring;

import org.antlr.stringtemplate.StringTemplateErrorListener;
import org.apache.commons.lang.StringUtils;
import org.springframework.context.ResourceLoaderAware;
import org.springframework.core.Ordered;
import org.springframework.core.io.ResourceLoader;
import org.springframework.web.context.ServletContextAware;
import org.springframework.web.servlet.ViewResolver;
import org.springframework.web.servlet.view.UrlBasedViewResolver;

import javax.servlet.ServletContext;
import java.util.Collections;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public class StringTemplateViewResolver implements ViewResolver, ResourceLoaderAware, ServletContextAware, Ordered {

    // WebStringTemplateGroup

    protected Map<String, WebStringTemplateGroup> groupCache = new ConcurrentHashMap<String, WebStringTemplateGroup>();
    protected Integer refreshIntervalInSeconds;
    protected boolean useGroupCache = false;

    protected StringTemplateErrorListener templateErrorListener;

    protected ResourceLoader resourceLoader;
    protected String sourceFileCharEncoding;
    protected String templateRoot = "";
    protected String sharedRoot;

    // WebStringTemplate
{'fraction_non_alphanumeric': 0.07014868471216165, 'fraction_numerical': 0.0, 'mean_word_length': 6.497142857142857, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '830274', 'n_tokens_mistral': 639, 'n_tokens_neox': 630, 'n_words': 142}