<commit_before>import { Component, ViewChild, ElementRef, EventEmitter, Output, Input } from '@angular/core';
import { HomeController } from '../../providers/home-controller'
import { RoundProgressConfig } from 'angular-svg-round-progressbar';
import { TasksProgress } from '../../models/task'


@Component({
  selector: 'task-progress',
  templateUrl: 'task-progress.html'
})
export class TaskProgressComponent {

  @Input() progress: TasksProgress
  @Output() completed: EventEmitter<Boolean> = new EventEmitter()

  text: string;
  max: number = 1
  current: number = 0
  radius: number = 120
  duration: number = 800
  complete: boolean = false

  @ViewChild('progressActive')
  elActive: ElementRef
  @ViewChild('progressComplete')
  elComplete: ElementRef
  @ViewChild('checkmark')
  elCheckmark: ElementRef
  @ViewChild('counter')
  elCounter: ElementRef

  constructor(private progConfig: RoundProgressConfig,
              private controller: HomeController) {
    progConfig.setDefaults({
      'color':'#7fcdbb',
      'background': 'rgba(255,255,204,0.12)',
      'stroke': 22,
      'animation': 'easeInOutQuart',
      'duration': this.duration
    })
    this.controller.getTaskProgress().then((progress) => {
      this.progress = progress
      this.updateProgress()<commit_msg>angular-svg-round-progressbar sizing problem fixed: relative sizing with set parent size, removed radius<commit_after>import { Component, ViewChild, ElementRef, EventEmitter, Output, Input } from '@angular/core';
import { HomeController } from '../../providers/home-controller'
import { RoundProgressConfig } from 'angular-svg-round-progressbar';
import { TasksProgress } from '../../models/task'


@Component({
  selector: 'task-progress',
  templateUrl: 'task-progress.html'
})
export class TaskProgressComponent {

  @Input() progress: TasksProgress
  @Output() completed: EventEmitter<Boolean> = new EventEmitter()

  text: string;
  max: number = 1
  current: number = 0
  duration: number = 800
  complete: boolean = false

  @ViewChild('progressActive')
  elActive: ElementRef
  @ViewChild('progressComplete')
  elComplete: ElementRef
  @ViewChild('checkmark')
  elCheckmark: ElementRef
  @ViewChild('counter')
  elCounter: ElementRef

  constructor(private progConfig: RoundProgressConfig,
              private controller: HomeController) {
    progConfig.setDefaults({
      'color':'#7fcdbb',
      'background': 'rgba(255,255,204,0.12)',
      'stroke': 22,
      'animation': 'easeInOutQuart',
      'duration': this.duration
    })
    this.controller.getTaskProgress().then((progress) => {
      this.progress = progress
      this.updateProgress()
{'fraction_non_alphanumeric': 0.12979683972911965, 'fraction_numerical': 0.01617757712565839, 'mean_word_length': 4.265346534653466, 'pattern_counts': {'":': 0, '<': 5, '<?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': '1451279', 'n_tokens_mistral': 793, 'n_tokens_neox': 755, 'n_words': 179}