<commit_before>import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { Http, HttpModule, RequestOptions, XHRBackend } from '@angular/http';
import { MaterialModule } from '@angular/material';

import { AppComponent } from './app.component';
import { AmsHttp, UserService } from './service';

import 'hammerjs';
import { AppRouterModule } from './app.router';
import { AdminComponent, ErrorComponent } from './component';

@NgModule({
  declarations: [
    AppComponent, AdminComponent, ErrorComponent
  ],
  imports: [
    BrowserModule,
    FormsModule,
    HttpModule,
    MaterialModule.forRoot(),

    AppRouterModule
  ],
  providers: [
    {
      provide: Http,
      useFactory: (backend: XHRBackend, options: RequestOptions) => {
        return new AmsHttp(backend, options);
      },
      deps: [XHRBackend, RequestOptions]
    },
    UserService
  ],
  bootstrap: [AppComponent]
})
export class AppModule {
}<commit_msg>Fixed error of static analysis while compile app.<commit_after>import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { Http, HttpModule, RequestOptions, XHRBackend } from '@angular/http';
import { MaterialModule } from '@angular/material';

import { AppComponent } from './app.component';
import { AmsHttp, UserService } from './service';

import 'hammerjs';
import { AppRouterModule } from './app.router';
import { AdminComponent, ErrorComponent } from './component';

export function httpFactory(backend: XHRBackend, options: RequestOptions) {
  return new AmsHttp(backend, options);
}


@NgModule({
  declarations: [
    AppComponent, AdminComponent, ErrorComponent
  ],
  imports: [
    BrowserModule,
    FormsModule,
    HttpModule,
    MaterialModule.forRoot(),

    AppRouterModule
  ],
  providers: [
    {
      provide: Http,
      useFactory: httpFactory,
      deps: [XHRBackend, RequestOptions]
    },
    UserService
  ],
  bootstrap: [AppComponent]
})
export class AppModule {
}
{'fraction_non_alphanumeric': 0.12370649106302917, 'fraction_numerical': 0.0, 'mean_word_length': 4.076372315035799, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '2243836', 'n_tokens_mistral': 608, 'n_tokens_neox': 603, 'n_words': 160}