<commit_before>package com.infoDiscover.adminCenter.logic.common;

import com.infoDiscover.adminCenter.logic.component.infoDiscoverSpaceManagement.InfoDiscoverSpaceOperationUtil;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

/**
 * Created by wangychu on 4/27/17.
 */
public class ApplicationResourceInitializer implements ServletContextListener {
    @Override
    public void contextInitialized(ServletContextEvent servletContextEvent) {
        InfoDiscoverSpaceOperationUtil.refreshItemAliasNameCache();
    }

    @Override
    public void contextDestroyed(ServletContextEvent servletContextEvent) {
        InfoDiscoverSpaceOperationUtil.clearItemAliasNameCache();
    }
}<commit_msg>fix application startup database init defect<commit_after>package com.infoDiscover.adminCenter.logic.common;

import com.infoDiscover.adminCenter.logic.component.infoDiscoverSpaceManagement.InfoDiscoverSpaceOperationUtil;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

/**
 * Created by wangychu on 4/27/17.
 */
public class ApplicationResourceInitializer implements ServletContextListener {
    @Override
    public void contextInitialized(ServletContextEvent servletContextEvent) {
        InfoDiscoverSpaceOperationUtil.initMetaConfigDiscoverSpace();
        InfoDiscoverSpaceOperationUtil.refreshItemAliasNameCache();
    }

    @Override
    public void contextDestroyed(ServletContextEvent servletContextEvent) {
        InfoDiscoverSpaceOperationUtil.clearItemAliasNameCache();
    }
}
{'fraction_non_alphanumeric': 0.06636885768985322, 'fraction_numerical': 0.006381620931716656, 'mean_word_length': 5.938053097345133, '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': '682965', 'n_tokens_mistral': 402, 'n_tokens_neox': 390, 'n_words': 66}