<commit_before>import { NgModule, LOCALE_ID } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { HttpClientModule } from '@angular/common/http';
import { ScrollingModule } from '@angular/cdk/scrolling';

import {
  VCLIconModule, VCLNavigationModule, VCLButtonModule,
  VCLLayerModule, VCLFontAwesomeModule, VCLMaterialDesignModule, VCLIcogramModule,
  VCLBusyIndicatorModule,
  VCL_NATIVE_DATE_ADAPTER_PARSER,
  NativeDateAdapterParserEN,
  NativeDateAdapterParserDE
} from '@ng-vcl/ng-vcl';

import { AppComponent } from './components/app/app.component';
import { HomeComponent } from './components/home/home.component';

import { AppRoutingModule } from './app-routing.module';

@NgModule({
  imports: [
    FormsModule,
    BrowserModule,
    BrowserAnimationsModule,
    HttpClientModule,
    AppRoutingModule,
    VCLButtonModule,
    VCLIconModule,
    VCLIcogramModule,
    VCLFontAwesomeModule,
    VCLMaterialDesignModule,
    VCLNavigationModule,
    VCLBusyIndicatorModule,
    VCLLayerModule,
    ScrollingModule
  ],
  declarations: [
    AppComponent,
    HomeComponent,
  ],
  entryComponents: [],
  bootstrap: [
    AppComponent
  ],
  providers: [
    {
      provide: LOCALE_ID,
      useValue: navigator.language
    },
    {
      provide: VCL_NATIVE_DATE_ADAPTER_PARSER,
      useClass: NativeDateAdapterParserEN,
      multi: true
    },
    {
      provide: VCL_NATIVE_DATE_ADAPTER_PARSER,
      useClass: NativeDateAdapterParserDE,
      multi: true
    }
  ]
})<commit_msg>chore(demo): use browser locale in demo<commit_after>import { NgModule, LOCALE_ID } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { HttpClientModule } from '@angular/common/http';
import { ScrollingModule } from '@angular/cdk/scrolling';

import {
  VCLIconModule, VCLNavigationModule, VCLButtonModule,
  VCLLayerModule, VCLFontAwesomeModule, VCLMaterialDesignModule, VCLIcogramModule,
  VCLBusyIndicatorModule,
  VCL_NATIVE_DATE_ADAPTER_PARSER,
  NativeDateAdapterParserEN,
  NativeDateAdapterParserDE,
  NativeDateAdapterParserENGB
} from '@ng-vcl/ng-vcl';

import { AppComponent } from './components/app/app.component';
import { HomeComponent } from './components/home/home.component';

import { AppRoutingModule } from './app-routing.module';

export function localeProviderFactory() {
  return navigator.language || 'en-us';
}

@NgModule({
  imports: [
    FormsModule,
    BrowserModule,
    BrowserAnimationsModule,
    HttpClientModule,
    AppRoutingModule,
    VCLButtonModule,
    VCLIconModule,
    VCLIcogramModule,
    VCLFontAwesomeModule,
    VCLMaterialDesignModule,
    VCLNavigationModule,
    VCLBusyIndicatorModule,
    VCLLayerModule,
    ScrollingModule
  ],
  declarations: [
    AppComponent,
    HomeComponent,
  ],
  entryComponents: [],
  bootstrap: [
    AppComponent
  ],
  providers: [
    {
      provide: LOCALE_ID,
      useFactory: localeProviderFactory
    },
    {
      provide: VCL_NATIVE_DATE_ADAPTER_PARSER,
      useClass: NativeDateAdapterParserEN,
      multi: true
    },
    {
      provide: VCL_NATIVE_DATE_ADAPTER_PARSER,
      useClass: NativeDateAdapterParserENGB,
      multi: true
    },
    {
      provide: VCL_NATIVE_DATE_ADAPTER_PARSER,
      useClass: NativeDateAdapterParserDE,
      multi: true
    }
  ]
})
{'fraction_non_alphanumeric': 0.09505280711506392, 'fraction_numerical': 0.0, 'mean_word_length': 4.054775280898877, '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': '2321107', 'n_tokens_mistral': 1142, 'n_tokens_neox': 1135, 'n_words': 198}