<commit_before>import {
  Component,
  ViewChild,
  Input,
  AfterViewInit,
} from '@angular/core';

import { Chart } from 'chart.js';

@Component({
  selector: 'section',
  templateUrl: 'slide.html'
})
export class SlideComponent implements AfterViewInit {
  @ViewChild('canvas') canvas;
  chart: any;

  labels = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';

  @Input() question: any;
  @Input() poll: any;
  @Input() settings: any;

  constructor() { }

  ngAfterViewInit() { }

  ngOnChanges(changes) {
    if (changes.question) {
      this.chartData();
    }
  }

  chartData() {
    const data = this.question.options.map(x => x.votes / this.poll.votes);
    const labels = this.getLabels();

    this.initChart(labels, data)
    this.plugin();
  }

  getLabels() {<commit_msg>feat(slide): remove unused implements<commit_after>import {
  Component,
  ViewChild,
  Input,
} from '@angular/core';

import { Chart } from 'chart.js';

@Component({
  selector: 'section',
  templateUrl: 'slide.html'
})
export class SlideComponent {
  @ViewChild('canvas') canvas;
  chart: any;

  labels = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';

  @Input() question: any;
  @Input() poll: any;
  @Input() settings: any;

  constructor() { }

  ngOnChanges(changes) {
    if (changes.question) {
      this.chartData();
    }
  }

  chartData() {
    const data = this.question.options.map(x => x.votes / this.poll.votes);
    const labels = this.getLabels();

    this.initChart(labels, data)
    this.plugin();
  }

  getLabels() {
{'fraction_non_alphanumeric': 0.15250836120401337, 'fraction_numerical': 0.0, 'mean_word_length': 3.5196374622356497, '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': '4713394', 'n_tokens_mistral': 529, 'n_tokens_neox': 511, 'n_words': 109}