<commit_before>import { HttpClientModule } from '@angular/common/http'
import { NgModule } from '@angular/core'
import { HttpModule } from '@angular/http'
import { BrowserModule } from '@angular/platform-browser'
import { BrowserAnimationsModule } from '@angular/platform-browser/animations'
import { EffectsModule } from '@ngrx/effects'
import { StoreModule } from '@ngrx/store'
import { StoreDevtoolsModule } from '@ngrx/store-devtools'

import { environment } from '../environments/environment'
import { AppComponent } from './app.component'
import { AppRoutingModule } from './app.routing'
import { NotFoundPageComponent } from './pages/not-found/not-found.component'
import { ConfigService } from './shared/services/config.service'
import { ErrorService } from './shared/services/error.service'
import { ComplianceEffects } from './shared/store/compliance/compliance.effects'
import { ComplianceService } from './shared/store/compliance/compliance.service'
import { SensorsTooltipEffects } from './shared/store/sensors-tooltip/sensors-tooltip.effects'
import { SensorsEffects } from './shared/store/sensors/sensors.effects'
import { SensorsService } from './shared/store/sensors/sensors.service'
import { SourceEffects } from './shared/store/source/source.effects'
import { SourceService } from './shared/store/source/source.service'
import { StudyEffects } from './shared/store/study/study.effects'
import { StudyService } from './shared/store/study/study.service'
import { SubjectEffects } from './shared/store/subject/subject.effects'
import { SubjectService } from './shared/store/subject/subject.service'
import { metaReducers, reducers } from './shared/store'

@NgModule({
  declarations: [AppComponent, NotFoundPageComponent],
  imports: [
    BrowserModule,
    HttpModule,
    HttpClientModule,
    BrowserAnimationsModule,

    // ngrx/store
    StoreModule.forRoot(reducers, { metaReducers }),

    // Redux Devtools
    // https://github.com/zalmoxisus/redux-devtools-extension
    !environment.PROD ? StoreDevtoolsModule.instrument() : [],

    // Setup ngrx/effects
    EffectsModule.forRoot([
      StudyEffects,
      SubjectEffects,
      SourceEffects,
      SensorsEffects,
      SensorsTooltipEffects,
      ComplianceEffects
    ]),

    // Routing
    AppRoutingModule
  ],
  providers: [
    ConfigService,
    ErrorService,
    StudyService,
    SubjectService,
    SourceService,
    SensorsService,
    ComplianceService
  ],
  bootstrap: [AppComponent]
})
export class AppModule {}<commit_msg>add WebWorkerService<commit_after>import { HttpClientModule } from '@angular/common/http'
import { NgModule } from '@angular/core'
import { HttpModule } from '@angular/http'
import { BrowserModule } from '@angular/platform-browser'
import { BrowserAnimationsModule } from '@angular/platform-browser/animations'
import { EffectsModule } from '@ngrx/effects'
import { StoreModule } from '@ngrx/store'
import { StoreDevtoolsModule } from '@ngrx/store-devtools'

import { environment } from '../environments/environment'
import { AppComponent } from './app.component'
import { AppRoutingModule } from './app.routing'
import { NotFoundPageComponent } from './pages/not-found/not-found.component'
import { ConfigService } from './shared/services/config.service'
import { ErrorService } from './shared/services/error.service'
import { ComplianceEffects } from './shared/store/compliance/compliance.effects'
import { ComplianceService } from './shared/store/compliance/compliance.service'
import { SensorsTooltipEffects } from './shared/store/sensors-tooltip/sensors-tooltip.effects'
import { SensorsEffects } from './shared/store/sensors/sensors.effects'
import { SensorsService } from './shared/store/sensors/sensors.service'
import { SourceEffects } from './shared/store/source/source.effects'
import { SourceService } from './shared/store/source/source.service'
import { StudyEffects } from './shared/store/study/study.effects'
import { StudyService } from './shared/store/study/study.service'
import { SubjectEffects } from './shared/store/subject/subject.effects'
import { SubjectService } from './shared/store/subject/subject.service'
import { metaReducers, reducers } from './shared/store'
import { WebWorkerService } from 'angular2-web-worker'

@NgModule({
  declarations: [AppComponent, NotFoundPageComponent],
  imports: [
    BrowserModule,
    HttpModule,
    HttpClientModule,
    BrowserAnimationsModule,

    // ngrx/store
    StoreModule.forRoot(reducers, { metaReducers }),

    // Redux Devtools
    // https://github.com/zalmoxisus/redux-devtools-extension
    !environment.PROD ? StoreDevtoolsModule.instrument() : [],

    // Setup ngrx/effects
    EffectsModule.forRoot([
      StudyEffects,
      SubjectEffects,
      SourceEffects,
      SensorsEffects,
      SensorsTooltipEffects,
      ComplianceEffects
    ]),

    // Routing
    AppRoutingModule
  ],
  providers: [
    WebWorkerService,
    ConfigService,
    ErrorService,
    StudyService,
    SubjectService,
    SourceService,
    SensorsService,
    ComplianceService
  ],
  bootstrap: [AppComponent]
})
export class AppModule {}
{'fraction_non_alphanumeric': 0.121347876899104, 'fraction_numerical': 0.00019477989871445267, 'mean_word_length': 4.202634245187436, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '1740035', 'n_tokens_mistral': 1488, 'n_tokens_neox': 1423, 'n_words': 298}