<commit_before>import { RouterConfig } from '@angular/router';
import { Home } from './home';
import { Login } from './login';
import { ProfileComponent, ProfileFormComponent } from './profile';
import { AppointmentComponent } from './appointment';
import { HelpComponent } from './help';
import { AdminComponent } from './admin';
import { AdminIndexComponent } from './admin';
import { UpdateComponent } from './update';
import { CommitmentAdminComponent } from './admin/commitment/commitment-admin.component';
import { CommitmentFormComponent } from './admin/commitment/commitment-form.component';
import { AppointmentAdminComponent } from './admin/appointment/appointment-admin.component';
import { AppointmentFormComponent } from './admin/appointment/appointment-form.component';
import { UserAdminFormComponent } from './admin/user/user-admin-form.component';
import { UserAdminComponent } from './admin/user/user-admin.component';
import { TestimonialComponent } from './testimonial/testimonial.component';
import { AuthGuard } from './auth-guard';
import { LoginGuard } from './login-guard';
import { AdminGuard } from './admin-guard';

export const routes: RouterConfig = [
  { path: '', component: Home, canActivate: [AuthGuard] },
  { path: 'profile', component: ProfileFormComponent, canActivate: [AuthGuard] },
  { path: 'profile/:id', component: ProfileComponent, canActivate: [AuthGuard] },
  { path: 'help', component: HelpComponent, canActivate: [AuthGuard] },
  { path: 'updated', component: UpdateComponent },
  { path: 'login', component: Login, canActivate: [LoginGuard] },
  {
    path: 'admin',
    component: AdminComponent,
    canActivate: [AdminGuard],
    children: [
      { path: '', component: AdminIndexComponent },
      { path: 'commitments', component: CommitmentAdminComponent },
      { path: 'commitments/new', component: CommitmentFormComponent },
      { path: 'commitments/:id', component: CommitmentFormComponent },
      { path: 'appointments', component: AppointmentAdminComponent },
      { path: 'appointments/new', component: AppointmentFormComponent },
      { path: 'appointments/:id', component: AppointmentFormComponent },
      { path: 'users', component: UserAdminComponent },
      { path: 'users/new', component: UserAdminFormComponent },
      { path: 'users/:id', component: UserAdminFormComponent },<commit_msg>fix: add route to app index<commit_after>import { RouterConfig } from '@angular/router';
import { Home } from './home';
import { Login } from './login';
import { ProfileComponent, ProfileFormComponent } from './profile';
import { AppointmentComponent } from './appointment';
import { HelpComponent } from './help';
import { AdminComponent } from './admin';
import { AdminIndexComponent } from './admin';
import { UpdateComponent } from './update';
import { CommitmentAdminComponent } from './admin/commitment/commitment-admin.component';
import { CommitmentFormComponent } from './admin/commitment/commitment-form.component';
import { AppointmentAdminComponent } from './admin/appointment/appointment-admin.component';
import { AppointmentFormComponent } from './admin/appointment/appointment-form.component';
import { UserAdminFormComponent } from './admin/user/user-admin-form.component';
import { UserAdminComponent } from './admin/user/user-admin.component';
import { TestimonialComponent } from './testimonial/testimonial.component';
import { AuthGuard } from './auth-guard';
import { LoginGuard } from './login-guard';
import { AdminGuard } from './admin-guard';

export const routes: RouterConfig = [
  { path: '', component: Home, canActivate: [AuthGuard] },
  { path: 'profile', component: ProfileFormComponent, canActivate: [AuthGuard] },
  { path: 'profile/:id', component: ProfileComponent, canActivate: [AuthGuard] },
  { path: 'help', component: HelpComponent, canActivate: [AuthGuard] },
  { path: 'updated', component: UpdateComponent },
  { path: 'login', component: Login, canActivate: [LoginGuard] },
  {
    path: 'admin',
    component: AdminComponent,
    canActivate: [AdminGuard],
    children: [
      { path: '', component: AdminIndexComponent },
      { path: 'commitments', component: CommitmentAdminComponent },
      { path: 'commitments/new', component: CommitmentFormComponent },
      { path: 'commitments/:id', component: CommitmentFormComponent },
      { path: 'appointments', component: AppointmentAdminComponent },
      { path: 'appointments/new', component: AppointmentFormComponent },
      { path: 'appointments/:id', component: AppointmentFormComponent },
      { path: 'appointments/remove/:id', component: AppointmentFormComponent },
      { path: 'users', component: UserAdminComponent },
      { path: 'users/new', component: UserAdminFormComponent },
      { path: 'users/:id', component: UserAdminFormComponent },
{'fraction_non_alphanumeric': 0.14409937888198757, 'fraction_numerical': 0.0, 'mean_word_length': 4.8914634146341465, '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': '1033215', 'n_tokens_mistral': 1278, 'n_tokens_neox': 1286, 'n_words': 329}