<commit_before>package org.nohope.app.spring;

import org.junit.Test;
import org.nohope.app.spring.module.IModule;

import java.io.File;
import java.util.Properties;
import java.util.concurrent.atomic.AtomicReference;

import static org.junit.Assert.*;
import static org.junit.Assert.assertEquals;

/**
 * @author <a href="mailto:<EMAIL>"><NAME></a>
 * @since 7/27/12 5:29 PM
 */
public class SpringAsyncModularAppTest {

    @Test
    public void appIsAnonymousClass() throws Exception {
        final AppWithContainer app = new AppWithContainer(null, "", "/") {
        };
        assertEquals("springAsyncModularAppTest", app.getAppName());
        assertEquals("/", app.getAppMetaInfNamespace());
        assertEquals("/", app.getModuleMetaInfNamespace());
    }

    @Test
    public void appDefaultContextOverriding() throws Exception {
        final AppWithContainer app = new AppWithContainer("appo", "appContextOverriding");
        probe(app);

        assertNotNull(app.getContext());<commit_msg>import imptimization<commit_after>package org.nohope.app.spring;

import org.junit.Test;
import org.nohope.app.spring.module.IModule;

import java.io.File;
import java.util.Properties;
import java.util.concurrent.atomic.AtomicReference;

import static org.junit.Assert.*;

/**
 * @author <a href="mailto:<EMAIL>"><NAME></a>
 * @since 7/27/12 5:29 PM
 */
public class SpringAsyncModularAppTest {

    @Test
    public void appIsAnonymousClass() throws Exception {
        final AppWithContainer app = new AppWithContainer(null, "", "/") {
        };
        assertEquals("springAsyncModularAppTest", app.getAppName());
        assertEquals("/", app.getAppMetaInfNamespace());
        assertEquals("/", app.getModuleMetaInfNamespace());
    }

    @Test
    public void appDefaultContextOverriding() throws Exception {
        final AppWithContainer app = new AppWithContainer("appo", "appContextOverriding");
        probe(app);

        assertNotNull(app.getContext());
{'fraction_non_alphanumeric': 0.1305668016194332, 'fraction_numerical': 0.008097165991902834, 'mean_word_length': 3.9425, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '5400002', 'n_tokens_mistral': 582, 'n_tokens_neox': 566, 'n_words': 115}