<commit_before>import { Component, ChangeDetectionStrategy } from '@angular/core';
import { Router } from '@angular/router';
import { IGroupBuyItem, GroupBuyService } from '../../core';

@Component({
  selector: 'home-group-buy',
  templateUrl: './group.html',
  styleUrls: ['./group.css'],
})
export class HomeGroupBuyComponent {

  items: IGroupBuyItem[];

  constructor(
    private router: Router,
    private groupBuyService: GroupBuyService) { }

  ngOnInit() {
    this.groupBuyService.getItems().filter(gb => !!gb).subscribe(gb => this.items = gb.active.slice(0, 3));
  }

  onGotoGroupBuy() { this.router.navigateByUrl('/groupbuy'); }

  onGotoProduct(item: IGroupBuyItem) {
    this.router.navigate(['./home/1', item.sku.ProductID]);
  }<commit_msg>fix groupbuy price from home<commit_after>import { Component, ChangeDetectionStrategy } from '@angular/core';
import { Router } from '@angular/router';
import { IGroupBuyItem, GroupBuyService } from '../../core';

@Component({
  selector: 'home-group-buy',
  templateUrl: './group.html',
  styleUrls: ['./group.css'],
})
export class HomeGroupBuyComponent {

  items: IGroupBuyItem[];

  constructor(
    private router: Router,
    private groupBuyService: GroupBuyService) { }

  ngOnInit() {
    this.groupBuyService.getItems().filter(gb => !!gb).subscribe(gb => this.items = gb.active.slice(0, 3));
  }

  onGotoGroupBuy() { this.router.navigateByUrl('/groupbuy'); }

  onGotoProduct(item: IGroupBuyItem) {
    this.router.navigate(['./home/1', item.sku.ProductID], { queryParams: { SkuID: item.SkuID } });
  }
{'fraction_non_alphanumeric': 0.1691036236490782, 'fraction_numerical': 0.003814367450731087, 'mean_word_length': 4.446366782006921, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '1774010', 'n_tokens_mistral': 541, 'n_tokens_neox': 510, 'n_words': 97}