<commit_before>import { Component, OnInit, Input } from '@angular/core';
import { BlogMode } from '../../services/BlogAPI.service';

@Component({
  selector: 'blog-roll',
  templateUrl: './BlogRoll.component.html',
  styleUrls: ['./BlogRoll.component.css']
})
export class BlogRollComponent implements OnInit { 
  @Input('mode') mode: BlogMode;

  constructor() {}

  ngOnInit() {
  }
}<commit_msg>call endpoint to get blogroll<commit_after>import { Component, OnInit, Input } from '@angular/core';
import { BlogMode, BlogRoll, Post, BlogAPI } from '../../services/BlogAPI.service';

@Component({
  selector: 'blog-roll',
  templateUrl: './BlogRoll.component.html',
  styleUrls: ['./BlogRoll.component.css']
})
export class BlogRollComponent implements OnInit { 
  @Input('mode') mode: BlogMode;
  public posts = new Array<Post>();

  constructor(public blogAPI: BlogAPI) {}

  ngOnInit() {
    this.blogAPI.GetBlogRoll().subscribe(
      (r)=>{
        this.posts = r.Posts;
      },
      (err)=>{},
      ()=>{},
    );
  }
}
{'fraction_non_alphanumeric': 0.17607003891050585, 'fraction_numerical': 0.0, 'mean_word_length': 3.786046511627907, 'pattern_counts': {'":': 0, '<': 4, '<?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': '3219856', 'n_tokens_mistral': 335, 'n_tokens_neox': 322, 'n_words': 72}