<commit_before>import { BrowserModule } from '@angular/platform-browser';
import { NgModule, ApplicationRef } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { HttpModule } from '@angular/http';
import { Title } from '@angular/platform-browser';
import { AppComponent } from './app.component';
import { routing, appRoutingProviders } from './app.routes';
import { FaqComponent } from './faq/faq.component';
import { FeedbackComponent } from './feedback/feedback.component';
import { ProcessComponent } from './process/process.component';
import { QueryComponent } from './query/query.component';
import { ReportComponent } from './report/report.component';

@NgModule({
  imports: [
    BrowserModule,
    CommonModule,
    FormsModule,
    HttpModule,
    routing
  ],
  declarations: [
    AppComponent,
    FaqComponent,
    ProcessComponent,
    QueryComponent,
    ReportComponent
  ],
  providers: [
    appRoutingProviders,
    Title
  ],
  entryComponents: [AppComponent],
  bootstrap: [ AppComponent ]
})<commit_msg>route 改用 HashLocationStrategy 避免重新整理頁面會造成 404 的問題<commit_after>import { BrowserModule } from '@angular/platform-browser';
import { NgModule, ApplicationRef } from '@angular/core';
import { CommonModule, LocationStrategy, HashLocationStrategy } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { HttpModule } from '@angular/http';
import { Title } from '@angular/platform-browser';
import { AppComponent } from './app.component';
import { routing, appRoutingProviders } from './app.routes';
import { FaqComponent } from './faq/faq.component';
import { FeedbackComponent } from './feedback/feedback.component';
import { ProcessComponent } from './process/process.component';
import { QueryComponent } from './query/query.component';
import { ReportComponent } from './report/report.component';

@NgModule({
  imports: [
    BrowserModule,
    CommonModule,
    FormsModule,
    HttpModule,
    routing
  ],
  declarations: [
    AppComponent,
    FaqComponent,
    ProcessComponent,
    QueryComponent,
    ReportComponent
  ],
  providers: [
    appRoutingProviders,
    Title,
    { provide: LocationStrategy, useClass: HashLocationStrategy }
  ],
  entryComponents: [AppComponent],
  bootstrap: [ AppComponent ]
})
{'fraction_non_alphanumeric': 0.12548015364916773, 'fraction_numerical': 0.0012804097311139564, 'mean_word_length': 4.425925925925926, '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': '7620951', 'n_tokens_mistral': 662, 'n_tokens_neox': 659, 'n_words': 159}