<commit_before>import { FiltersAppEffects } from './effects/filters.app.effects';
import { IFiltersState, FiltersReducer } from '@ansyn/menu-items/filters';
import { LayersReducer } from '@ansyn/menu-items/layers-manager/reducers/layers.reducer';
import { LayersAppEffects } from './effects/layers.app.effects';
import { OverlayReducer } from '@ansyn/overlays';
import { CasesReducer } from '@ansyn/menu-items/cases/reducers/cases.reducer';
import { compose } from '@ngrx/core/compose';
import { combineReducers, StoreModule } from '@ngrx/store';
import { MenuReducer } from '@ansyn/menu/reducers/menu.reducer';
import { NgModule } from '@angular/core';
import { EffectsModule } from '@ngrx/effects';
import { MapAppEffects } from './effects/map.app.effects';
import { CasesAppEffects } from './effects/cases.app.effects';
import { MapReducer } from '@ansyn/map-facade/reducers/map.reducer';
import { MenuAppEffects } from './effects/menu.app.effects';
import { StatusBarReducer } from '@ansyn/status-bar/reducers/status-bar.reducer';
import { StatusBarAppEffects } from './effects/status-bar.app.effects';
import { IOverlayState } from '@ansyn/overlays/reducers/overlays.reducer';
import { ICasesState } from '@ansyn/menu-items/cases/reducers/cases.reducer';
import { IMenuState } from '@ansyn/menu/reducers/menu.reducer';
import { ILayerState } from '@ansyn/menu-items/layers-manager/reducers/layers.reducer';
import { IStatusBarState } from '@ansyn/status-bar/reducers/status-bar.reducer';
import { IMapState } from '@ansyn/map-facade/reducers/map.reducer';
import { IToolsState,ToolsReducer } from '@ansyn/menu-items/tools';
import { StoreDevtoolsModule } from '@ngrx/store-devtools';
import { RouterAppEffects } from './effects/router.app.effects';
import { routerReducer, RouterState, RouterStoreModule } from '@ngrx/router-store';
import { RouterStoreHelperService } from './services/router-store-helper.service';
import { configuration } from './../../configuration/configuration';
import { OverlaysAppEffects } from './effects/overlays.app.effects';

export interface IAppState {
    overlays: IOverlayState;
    cases: ICasesState;
    menu: IMenuState;
    layers: ILayerState;
    status_bar: IStatusBarState;
    map: IMapState;
    tools: IToolsState;
    router: RouterState;
    filters: IFiltersState;
}


const reducers = {
    overlays: OverlayReducer,
    cases: CasesReducer,
    menu: MenuReducer,
    map: MapReducer,
    layers: LayersReducer,
    status_bar: StatusBarReducer,
    tools: ToolsReducer,
	router: routerReducer,
    filters: FiltersReducer
};

const appReducer = compose(combineReducers)(reducers);

export function reducer(state: any, action: any) {
    // if(configuration.General.logActions ){
    	console.log(action.type);
	// }
    return appReducer(state, action);
}

@NgModule({
    imports: [
        StoreModule.provideStore(reducer),
		StoreDevtoolsModule.instrumentOnlyWithExtension({
			maxAge: 5
		}),<commit_msg>re-comment log actions<commit_after>import { FiltersAppEffects } from './effects/filters.app.effects';
import { IFiltersState, FiltersReducer } from '@ansyn/menu-items/filters';
import { LayersReducer } from '@ansyn/menu-items/layers-manager/reducers/layers.reducer';
import { LayersAppEffects } from './effects/layers.app.effects';
import { OverlayReducer } from '@ansyn/overlays';
import { CasesReducer } from '@ansyn/menu-items/cases/reducers/cases.reducer';
import { compose } from '@ngrx/core/compose';
import { combineReducers, StoreModule } from '@ngrx/store';
import { MenuReducer } from '@ansyn/menu/reducers/menu.reducer';
import { NgModule } from '@angular/core';
import { EffectsModule } from '@ngrx/effects';
import { MapAppEffects } from './effects/map.app.effects';
import { CasesAppEffects } from './effects/cases.app.effects';
import { MapReducer } from '@ansyn/map-facade/reducers/map.reducer';
import { MenuAppEffects } from './effects/menu.app.effects';
import { StatusBarReducer } from '@ansyn/status-bar/reducers/status-bar.reducer';
import { StatusBarAppEffects } from './effects/status-bar.app.effects';
import { IOverlayState } from '@ansyn/overlays/reducers/overlays.reducer';
import { ICasesState } from '@ansyn/menu-items/cases/reducers/cases.reducer';
import { IMenuState } from '@ansyn/menu/reducers/menu.reducer';
import { ILayerState } from '@ansyn/menu-items/layers-manager/reducers/layers.reducer';
import { IStatusBarState } from '@ansyn/status-bar/reducers/status-bar.reducer';
import { IMapState } from '@ansyn/map-facade/reducers/map.reducer';
import { IToolsState,ToolsReducer } from '@ansyn/menu-items/tools';
import { StoreDevtoolsModule } from '@ngrx/store-devtools';
import { RouterAppEffects } from './effects/router.app.effects';
import { routerReducer, RouterState, RouterStoreModule } from '@ngrx/router-store';
import { RouterStoreHelperService } from './services/router-store-helper.service';
import { configuration } from './../../configuration/configuration';
import { OverlaysAppEffects } from './effects/overlays.app.effects';

export interface IAppState {
    overlays: IOverlayState;
    cases: ICasesState;
    menu: IMenuState;
    layers: ILayerState;
    status_bar: IStatusBarState;
    map: IMapState;
    tools: IToolsState;
    router: RouterState;
    filters: IFiltersState;
}


const reducers = {
    overlays: OverlayReducer,
    cases: CasesReducer,
    menu: MenuReducer,
    map: MapReducer,
    layers: LayersReducer,
    status_bar: StatusBarReducer,
    tools: ToolsReducer,
	router: routerReducer,
    filters: FiltersReducer
};

const appReducer = compose(combineReducers)(reducers);

export function reducer(state: any, action: any) {
    if(configuration.General.logActions ){
    	console.log(action.type);
	}
    return appReducer(state, action);
}

@NgModule({
    imports: [
        StoreModule.provideStore(reducer),
		StoreDevtoolsModule.instrumentOnlyWithExtension({
			maxAge: 5
		}),
{'fraction_non_alphanumeric': 0.13395113732097724, 'fraction_numerical': 0.00033698399326032014, 'mean_word_length': 4.854043392504931, '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': '5314898', 'n_tokens_mistral': 1977, 'n_tokens_neox': 1874, 'n_words': 372}