<commit_before>package com.imcode.imcms.test;

import com.imcode.imcms.config.WebConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Import;
import org.springframework.mock.web.MockServletContext;
import org.springframework.test.context.web.WebAppConfiguration;
import org.springframework.test.web.servlet.MockMvc;
import org.springframework.web.context.WebApplicationContext;

import javax.servlet.ServletContext;

import static org.springframework.test.web.servlet.setup.MockMvcBuilders.webAppContextSetup;

@WebAppConfiguration
@Import(WebConfig.class)
public class WebTestConfig {

    @Bean
    public ServletContext servletContext() {
        return new MockServletContext();
    }

    @Autowired
    @Bean
    public MockMvc mockMvc(WebApplicationContext wac) {
        return webAppContextSetup(wac).build();
    }

}<commit_msg>IMCMS-233 - Apply new UI to the admin panel and editors: - Updated WebTestConfig.<commit_after>package com.imcode.imcms.test;

import com.imcode.imcms.config.WebConfig;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.mock.web.MockServletContext;
import org.springframework.test.web.servlet.MockMvc;
import org.springframework.web.context.WebApplicationContext;

import javax.servlet.ServletContext;

import static org.springframework.test.web.servlet.setup.MockMvcBuilders.webAppContextSetup;

@Configuration
@Import(WebConfig.class)
public class WebTestConfig {

    @Bean
    public ServletContext servletContext() {
        return new MockServletContext();
    }

    @Bean
    public MockMvc mockMvc(WebApplicationContext wac) {
        return webAppContextSetup(wac).build();
    }

}
{'fraction_non_alphanumeric': 0.09153439153439154, 'fraction_numerical': 0.0015873015873015873, 'mean_word_length': 5.282392026578073, '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': '2009947', 'n_tokens_mistral': 524, 'n_tokens_neox': 522, 'n_words': 94}