<commit_before>import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import {
    LayoutPageComponent, MainPageComponent, FindBookPageComponent,
    NotFoundPageComponent, BookDetailsPageComponent, BookCollectionPageComponent,
} from './containers';

const routes: Routes = [
    {
        path: '',
        component: MainPageComponent,
        children: [
            {
                path: '',
                component: LayoutPageComponent,
                children: [
                    {
                        path: 'books',
                        children: [
                            {
                                path: 'find',
                                children: [
                                    {
                                        path: '',
                                        component: FindBookPageComponent
                                    },
                                    {
                                        path: ':id',
                                        component: BookDetailsPageComponent
                                    }
                                ]
                            },
                            {
                                path: 'collection',
                                children: [
                                    {
                                        path: '',
                                        component: BookCollectionPageComponent
                                    },
                                    {
                                        path: ':id',
                                        component: BookDetailsPageComponent
                                    }
                                ]
                            },
                            {
                                path: '',
                                redirectTo: 'collection',
                                pathMatch: 'full'
                            },
                        ]
                    },
                    {
                        path: '',
                        redirectTo: 'books',
                        pathMatch: 'full'
                    },
                    {
                        path: '404',
                        component: NotFoundPageComponent
                    },
                    {
                        path: '**',
                        redirectTo: '404',
                        pathMatch: 'full'
                    }
                ]
            }
        ]
    }
];

@NgModule({
    imports: [RouterModule.forRoot(routes, {
        useHash: true
    })],
    exports: [RouterModule]
})
export class AppRoutingModule { }

export const routedComponents = [
    LayoutPageComponent, MainPageComponent, FindBookPageComponent,
    NotFoundPageComponent, BookDetailsPageComponent, BookCollectionPageComponent,
];<commit_msg>refactored(app routing): removed main page component<commit_after>import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import {
    LayoutPageComponent, FindBookPageComponent,
    NotFoundPageComponent, BookDetailsPageComponent, BookCollectionPageComponent,
} from './containers';

const routes: Routes = [
    {
        path: '',
        component: LayoutPageComponent,
        children: [
            {
                path: 'books',
                children: [
                    {
                        path: 'find',
                        children: [
                            {
                                path: '',
                                component: FindBookPageComponent
                            },
                            {
                                path: ':id',
                                component: BookDetailsPageComponent
                            }
                        ]
                    },
                    {
                        path: 'collection',
                        children: [
                            {
                                path: '',
                                component: BookCollectionPageComponent
                            },
                            {
                                path: ':id',
                                component: BookDetailsPageComponent
                            }
                        ]
                    },
                    {
                        path: '',
                        redirectTo: 'collection',
                        pathMatch: 'full'
                    },
                ]
            },
            {
                path: '',
                redirectTo: 'books',
                pathMatch: 'full'
            },
            {
                path: '404',
                component: NotFoundPageComponent
            },
            {
                path: '**',
                redirectTo: '404',
                pathMatch: 'full'
            }
        ]
    }
];

@NgModule({
    imports: [RouterModule.forRoot(routes, {
        useHash: true
    })],
    exports: [RouterModule]
})
export class AppRoutingModule { }

export const routedComponents = [
    LayoutPageComponent, FindBookPageComponent,
    NotFoundPageComponent, BookDetailsPageComponent, BookCollectionPageComponent,
];
{'fraction_non_alphanumeric': 0.07385192127460169, 'fraction_numerical': 0.0022492970946579195, 'mean_word_length': 0.70752, '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': 16, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7032859', 'n_tokens_mistral': 1056, 'n_tokens_neox': 968, 'n_words': 179}