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

import { DetailsComponent } from './details/details.component';
import { SearchComponent } from './search/search.component';
import { SellComponent } from './sell/sell.component';

const routes: Routes = [
  {
    path: 'sell/:uid', component: SellComponent,
  },
  {
    path: 'search/:term', component: SearchComponent
  },
  {
    path: 'details/:uid', component: DetailsComponent
  }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class BookRoutingModule { }

// /home
// /book/register
// /details/uid
// /book/search/searchstring
// /book/sell/uid
// /user/settings
// /user/offers
<commit_msg>fix(book): add new route without parameter to search<commit_after>import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router'

import { DetailsComponent } from './details/details.component';
import { SearchComponent } from './search/search.component';
import { SellComponent } from './sell/sell.component';

const routes: Routes = [
  {
    path: 'sell/:uid', component: SellComponent,
  },
  {
    path: 'search', component: SearchComponent
  },
  {
    path: 'search/:term', component: SearchComponent
  },
  {
    path: 'details/:uid', component: DetailsComponent
  }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class BookRoutingModule { }

// /home
// /book/register
// /details/uid
// /book/search/searchstring
// /book/sell/uid
// /user/settings
// /user/offers

{'fraction_non_alphanumeric': 0.1612106238418777, 'fraction_numerical': 0.0, 'mean_word_length': 3.764705882352941, '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': '4134219', 'n_tokens_mistral': 508, 'n_tokens_neox': 509, 'n_words': 113}