<commit_before>import { Component, OnInit, ViewChildren, QueryList } from '@angular/core';
import { Observable, pipe } from 'rxjs';
import { AuditLogEntry } from '../auditview-entry';
import { AuditviewService } from '../auditview.service';
import { SortEvent, SortableHeader } from '../sortable.directive';
import { ActivatedRoute, ParamMap } from '@angular/router';
import { AuditviewTableService } from '../auditview-table.service';
import { switchMap } from 'rxjs/operators';

@Component({
  selector: 'app-auditview-table',
  templateUrl: './auditview-table.component.html',
  styleUrls: ['./auditview-table.component.scss'],
  providers: [AuditviewService]
})
export class AuditviewTableComponent {
  auditlogEntries$: Observable<AuditLogEntry[]>;
  total$: Observable<number>;
  resourceId: number;

  @ViewChildren(SortableHeader) headers: QueryList<SortableHeader>;

  constructor(
    private service: AuditviewTableService,
    private auditviewservice: AuditviewService,
    private route: ActivatedRoute
  ) {
    // TODO: use a path param instead of a query param and clean it up...<commit_msg>make service public because ng build --prod fails due to aot compilation...<commit_after>import { Component, QueryList, ViewChildren } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { Observable } from 'rxjs';
import { AuditLogEntry } from '../auditview-entry';
import { AuditviewTableService } from '../auditview-table.service';
import { AuditviewService } from '../auditview.service';
import { SortableHeader, SortEvent } from '../sortable.directive';

@Component({
  selector: 'app-auditview-table',
  templateUrl: './auditview-table.component.html',
  styleUrls: ['./auditview-table.component.scss'],
  providers: [AuditviewService]
})
export class AuditviewTableComponent {
  auditlogEntries$: Observable<AuditLogEntry[]>;
  total$: Observable<number>;
  resourceId: number;
  @ViewChildren(SortableHeader) headers: QueryList<SortableHeader>;

  constructor(
    public service: AuditviewTableService,
    private auditviewservice: AuditviewService,
    private route: ActivatedRoute
  ) {
    // TODO: use a path param instead of a query param and clean it up...
{'fraction_non_alphanumeric': 0.12590579710144928, 'fraction_numerical': 0.0, 'mean_word_length': 5.068681318681318, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '7490230', 'n_tokens_mistral': 632, 'n_tokens_neox': 635, 'n_words': 169}