<commit_before>import { Routes, RouterModule } from '@angular/router';
import { UserDataComponent, LoginComponent, RegisterComponent, HomeComponent, PageNotFoundComponent, AccountsManagementComponent } from './components/index';
import { AuthGuard } from './guards/index';

const appRoutes: Routes = [
    // intro site
    //{ path: '', component: HomeComponent, canActivate: [AuthGuard] },
    { path: '', redirectTo: '/home', pathMatch: 'full' },

    // login page (intro side + not logged in)
    { path: 'login', component: LoginComponent},

    // registration of new user
    { path: 'register', component: RegisterComponent },

    { path: 'home', component: HomeComponent, canActivate: [AuthGuard] },

    { path: 'data', component: UserDataComponent, canActivate: [AuthGuard]},

    { path: 'accounts', component: AccountsManagementComponent, canActivate: [AuthGuard]},

    // otherwise redirect to not found
    { path: '**', component: PageNotFoundComponent }
];

export const Routing = RouterModule.forRoot(appRoutes);<commit_msg>routing fix<commit_after>import { Routes, RouterModule } from '@angular/router';
import { UserDataComponent, LoginComponent, RegisterComponent, HomeComponent, PageNotFoundComponent, AccountsManagementComponent } from './components/index';
import { AuthGuard } from './guards/index';

const appRoutes: Routes = [
    // intro site
    { path: '', component: HomeComponent, canActivate: [AuthGuard] },
    //{ path: '', redirectTo: '/home', pathMatch: 'full' },

    // login page (intro side + not logged in)
    { path: 'login', component: LoginComponent},

    // registration of new user
    { path: 'register', component: RegisterComponent },

    { path: 'home', component: HomeComponent, canActivate: [AuthGuard] },

    { path: 'data', component: UserDataComponent, canActivate: [AuthGuard]},

    { path: 'accounts', component: AccountsManagementComponent, canActivate: [AuthGuard]},

    // otherwise redirect to not found
    { path: '**', component: PageNotFoundComponent }
];

export const Routing = RouterModule.forRoot(appRoutes);
{'fraction_non_alphanumeric': 0.13697318007662834, 'fraction_numerical': 0.0, 'mean_word_length': 4.555851063829787, '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': '1422680', 'n_tokens_mistral': 578, 'n_tokens_neox': 562, 'n_words': 164}