<commit_before>import { Component } from '@angular/core';
import { NzModalRef } from 'ng-zorro-antd';
import { ListsFacade } from '../+state/lists.facade';
import { List } from '../model/list';

@Component({
  selector: 'app-list-completion-popup',
  templateUrl: './list-completion-popup.component.html',
  styleUrls: ['./list-completion-popup.component.less']
})
export class ListCompletionPopupComponent {

  list: List;

  constructor(private ref: NzModalRef, private listsFacade: ListsFacade) {
  }

  close(): void {
    this.ref.close();
  }

  deleteList(): void {
    this.listsFacade.deleteList(this.list.$key);
    this.close();
  }

  resetList(): void {
    this.list.reset();
    this.listsFacade.updateList(this.list);
    this.close();
  }
}
<commit_msg>fix: deleting a list from completion dialog now navigates back to the lists page<commit_after>import { Component } from '@angular/core';
import { NzModalRef } from 'ng-zorro-antd';
import { ListsFacade } from '../+state/lists.facade';
import { List } from '../model/list';
import { Router } from '@angular/router';

@Component({
  selector: 'app-list-completion-popup',
  templateUrl: './list-completion-popup.component.html',
  styleUrls: ['./list-completion-popup.component.less']
})
export class ListCompletionPopupComponent {

  list: List;

  constructor(private ref: NzModalRef, private listsFacade: ListsFacade, private router: Router) {
  }

  close(): void {
    this.ref.close();
  }

  deleteList(): void {
    this.listsFacade.deleteList(this.list.$key);
    this.router.navigate(['/lists']);
    this.close();
  }

  resetList(): void {
    this.list.reset();
    this.listsFacade.updateList(this.list);
    this.close();
  }
}

{'fraction_non_alphanumeric': 0.16130917592051433, 'fraction_numerical': 0.0, 'mean_word_length': 3.8914285714285715, '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': '6207152', 'n_tokens_mistral': 567, 'n_tokens_neox': 551, 'n_words': 113}