<commit_before>import { ProductResolver } from './guards/product-resolver';
import { WriteProductReviewComponent } from './components/product-detail-page/write-product-review/write-product-review.component';
import { ProductDetailPageComponent } from './components/product-detail-page/product-detail-page.component';
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';

const routes: Routes = [
  {
    path: ':id', component: ProductDetailPageComponent,
    resolve: {
      product: ProductResolver
    }
  },
  {
    path: ':id/:variantId', component: ProductDetailPageComponent,
    resolve: {
      product: ProductResolver
    }
  },
  {
    path: ':id/write_review',
    component: WriteProductReviewComponent,
    resolve: {
      product: ProductResolver
    }
  }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class ProductRoutingModule { }<commit_msg>write review route fix (#310)<commit_after>import { ProductResolver } from './guards/product-resolver';
import { WriteProductReviewComponent } from './components/product-detail-page/write-product-review/write-product-review.component';
import { ProductDetailPageComponent } from './components/product-detail-page/product-detail-page.component';
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';

const routes: Routes = [
  {
    path: ':id', component: ProductDetailPageComponent,
    resolve: {
      product: ProductResolver
    }
  },
  {
    path: ':id/write_review',
    component: WriteProductReviewComponent,
    resolve: {
      product: ProductResolver
    }
  },
  {
    path: ':id/:variantId', component: ProductDetailPageComponent,
    resolve: {
      product: ProductResolver
    }
  },
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class ProductRoutingModule { }
{'fraction_non_alphanumeric': 0.13036730470770821, 'fraction_numerical': 0.0015519917227108122, 'mean_word_length': 4.129973474801061, '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': '5702407', 'n_tokens_mistral': 556, 'n_tokens_neox': 549, 'n_words': 110}