<commit_before>import { Component, OnInit } from '@angular/core';
import { Router }            from '@angular/router';

import { Note } from './notes';
import { MainService } from './main.service';

@Component({
  selector: 'overview-notes',
  templateUrl: './overview.component.html',
  styleUrls: ['./overview.component.css']
})
export class OverviewComponent implements OnInit {
  title: string = "Overview of your notes";
  notes: Note[];

  constructor(
    private mainService: MainService,
    private router: Router) { }

  ngOnInit(): void {
    console.log("Overview ngOnInit")
    this.mainService.getNotes()
      .then(notes => this.notes = notes);
  }

  gotoEdit(note): void {
    this.router.navigate(['/edit', note.id])
  }

  newNote(): void {
    this.router.navigate(['/edit', 0])
  }
}
<commit_msg>ch: new note is id -1<commit_after>import { Component, OnInit } from '@angular/core';
import { Router }            from '@angular/router';

import { Note } from './notes';
import { MainService } from './main.service';

@Component({
  selector: 'overview-notes',
  templateUrl: './overview.component.html',
  styleUrls: ['./overview.component.css']
})
export class OverviewComponent implements OnInit {
  title: string = "Overview of your notes";
  notes: Note[];

  constructor(
    private mainService: MainService,
    private router: Router) { }

  ngOnInit(): void {
    console.log("Overview ngOnInit")
    this.mainService.getNotes()
      .then(notes => this.notes = notes);
  }

  gotoEdit(note): void {
    this.router.navigate(['/edit', note.id])
  }

  newNote(): void {
    this.router.navigate(['/edit', -1])
  }
}

{'fraction_non_alphanumeric': 0.16089860352155433, 'fraction_numerical': 0.0018214936247723133, 'mean_word_length': 3.454054054054054, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '1757572', 'n_tokens_mistral': 528, 'n_tokens_neox': 508, 'n_words': 125}