<commit_before>import { ModuleWithProviders } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';

import { AuthGuard } from './guards/auth.guard';
import { LoginComponent } from './login.component';
import { HomeComponent } from './+home/home.component';
import { VnComponent } from './vn.component';
import { VnFillComponent } from './vn-fill.component';
import { VnAssessmentComponent } from './vn-assessment.component';
import { VnCharacterComponent } from './+vn-character/vn-character.component';
import { SearchComponent } from './+search/search.component';

const appRoutes: Routes = [
	// { path: '', component: HomeComponent, terminal: true },
	{
		path: '',
		redirectTo: '/login',
		pathMatch: 'full',
	},
	{
		path: 'home',
		// loadChildren: '+home/home.module#HomeModule',
		component: HomeComponent,
		// canActivate: [AuthGuard],
	},
	{
		path: 'login',
		component: LoginComponent,
	},
	{
		path: 'vn',
		component: VnComponent,
		canActivate: [AuthGuard],
	},
	{
		path: 'vn/new',
		component: VnFillComponent,
		canActivate: [AuthGuard],
	},
	{
		path: 'vn/:id/assessment',
		component: VnAssessmentComponent,
		canActivate: [AuthGuard],
	},
	{
		path: 'vn/:id/edit',
		component: VnFillComponent,
		canActivate: [AuthGuard],
	},
	{
		path: 'vn/:id/character',
		component: VnCharacterComponent,
		canActivate: [AuthGuard]
	},
	{
		path: 'search/:query',
		component: SearchComponent,
		canActivate: [AuthGuard]
	},
	{
		path: 'search/:query/:page',
		component: SearchComponent,
		canActivate: [AuthGuard]
	},
	{
		path: '**',
		redirectTo: '/login',
	},
];

export const routing: ModuleWithProviders = RouterModule.forRoot(appRoutes);<commit_msg>Change redirection target for unlisted path<commit_after>import { ModuleWithProviders } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';

import { AuthGuard } from './guards/auth.guard';
import { LoginComponent } from './login.component';
import { HomeComponent } from './+home/home.component';
import { VnComponent } from './vn.component';
import { VnFillComponent } from './vn-fill.component';
import { VnAssessmentComponent } from './vn-assessment.component';
import { VnCharacterComponent } from './+vn-character/vn-character.component';
import { SearchComponent } from './+search/search.component';

const appRoutes: Routes = [
	// { path: '', component: HomeComponent, terminal: true },
	{
		path: '',
		redirectTo: '/login',
		pathMatch: 'full',
	},
	{
		path: 'home',
		// loadChildren: '+home/home.module#HomeModule',
		component: HomeComponent,
		// canActivate: [AuthGuard],
	},
	{
		path: 'login',
		component: LoginComponent,
	},
	{
		path: 'vn',
		component: VnComponent,
		canActivate: [AuthGuard],
	},
	{
		path: 'vn/new',
		component: VnFillComponent,
		canActivate: [AuthGuard],
	},
	{
		path: 'vn/:id/assessment',
		component: VnAssessmentComponent,
		canActivate: [AuthGuard],
	},
	{
		path: 'vn/:id/edit',
		component: VnFillComponent,
		canActivate: [AuthGuard],
	},
	{
		path: 'vn/:id/character',
		component: VnCharacterComponent,
		canActivate: [AuthGuard]
	},
	{
		path: 'search/:query',
		component: SearchComponent,
		canActivate: [AuthGuard]
	},
	{
		path: 'search/:query/:page',
		component: SearchComponent,
		canActivate: [AuthGuard]
	},
	{
		path: '**',
		redirectTo: '/vn',
	},
];

export const routing: ModuleWithProviders = RouterModule.forRoot(appRoutes);
{'fraction_non_alphanumeric': 0.1663250366032211, 'fraction_numerical': 0.0, 'mean_word_length': 4.38801261829653, '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': '4500044', 'n_tokens_mistral': 1237, 'n_tokens_neox': 1157, 'n_words': 236}