<commit_before>
import { NgModule }     from '@angular/core';
import { RouterModule } from '@angular/router';
// import { CanActivateDashboard } from '../services/can-activate-dashboard.service';
// import { SettingsComponent } from './settings/settings.component';
import { LoginComponent } from './login/login.component';
import { RegisterComponent } from './register/register.component';
// import { NotFoundComponent } from './not.found.component';
// import {DashboardComponent} from "./dashboard/dashboard.component";

import { CanActivateDashboard } from './services/can-activate-dashboard.service';
import { CanActivateLogin } from './services/can-activate-login.route.guard';
// import { CanLeaveLogin } from './services/can-leave-login.route.guard';


@NgModule({
  imports: [
    RouterModule.forRoot(
      [
        {
          path: '',
          redirectTo: 'dashboard',
          // component: DashboardComponent,
          canActivate: ['CanActivateDashboard'],
          pathMatch: 'full'
        },
        {
          path: 'login',
          component: LoginComponent,
          canActivate: ['CanActivateLogin'],
          // canDeactivate: ['CanLeaveLogin'],
        },
        {
          path: 'register',
          component: RegisterComponent
        },
        // {
        //   path: '**',
        //   component: NotFoundComponent,
        //   pathMatch: 'full'
        // }
      ]
    )
  ],
  exports: [
    RouterModule
  ],
  providers: [
    {
      provide: 'CanActivateDashboard', useClass: CanActivateDashboard
    },
    {
      provide: 'CanActivateLogin', useClass: CanActivateLogin
    },
    // {<commit_msg>use hash urls for now to fix prod bundling error<commit_after>
import { NgModule }     from '@angular/core';
import { RouterModule } from '@angular/router';
// import { CanActivateDashboard } from '../services/can-activate-dashboard.service';
// import { SettingsComponent } from './settings/settings.component';
import { LoginComponent } from './login/login.component';
import { RegisterComponent } from './register/register.component';
// import { NotFoundComponent } from './not.found.component';
// import {DashboardComponent} from "./dashboard/dashboard.component";

import { CanActivateDashboard } from './services/can-activate-dashboard.service';
import { CanActivateLogin } from './services/can-activate-login.route.guard';
// import { CanLeaveLogin } from './services/can-leave-login.route.guard';


@NgModule({
  imports: [
    RouterModule.forRoot(
      [
        {
          path: '',
          redirectTo: 'dashboard',
          // component: DashboardComponent,
          canActivate: ['CanActivateDashboard'],
          pathMatch: 'full'
        },
        {
          path: 'login',
          component: LoginComponent,
          canActivate: ['CanActivateLogin'],
          // canDeactivate: ['CanLeaveLogin'],
        },
        {
          path: 'register',
          component: RegisterComponent
        },
        // {
        //   path: '**',
        //   component: NotFoundComponent,
        //   pathMatch: 'full'
        // }
      ],
      {
        useHash: true
      }
    )
  ],
  exports: [
    RouterModule
  ],
  providers: [
    {
      provide: 'CanActivateDashboard', useClass: CanActivateDashboard
    },
    {
      provide: 'CanActivateLogin', useClass: CanActivateLogin
    },
    // {
{'fraction_non_alphanumeric': 0.13964497041420118, 'fraction_numerical': 0.0, 'mean_word_length': 2.3147058823529414, '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': '6474659', 'n_tokens_mistral': 924, 'n_tokens_neox': 943, 'n_words': 181}