<commit_before>import { COMMON_DIRECTIVES } from '../../directives';

// >> progress-setting-code 
import { Component, OnInit, ViewChild, ElementRef}  from "@angular/core";
import { Progress } from "ui/progress";

@Component({
    selector: "setting-progress",
    // >> (hide)
    directives: [COMMON_DIRECTIVES],
    // << (hide)
    templateUrl: "progress/setting-progress/setting-progress.component.html",
})

export class SettingProgressComponent implements OnInit {

    @ViewChild("myProgress") progress: ElementRef;

    ngOnInit() {
        let myProgress: Progress = this.progress.nativeElement;
        myProgress.maxValue = 120;
        myProgress.value = 10;
        
        setInterval(function() {
            myProgress.value += 3;
        }, 100);
    }<commit_msg>dynamic progress bar<commit_after>import { COMMON_DIRECTIVES } from '../../directives';

// >> progress-setting-code 
import { Component, OnInit, ViewChild, ElementRef}  from "@angular/core";
import { Progress } from "ui/progress";

@Component({
    selector: "setting-progress",
    // >> (hide)
    directives: [COMMON_DIRECTIVES],
    // << (hide)
    templateUrl: "progress/setting-progress/setting-progress.component.html",
})

export class SettingProgressComponent implements OnInit {

    @ViewChild("myProgress") progress: ElementRef;

    ngOnInit() {
        let myProgress: Progress = this.progress.nativeElement;
        myProgress.maxValue = 120;
        myProgress.value = 10;
        
        setInterval(function() {
            myProgress.value += 2;
        }, 100);
    }
{'fraction_non_alphanumeric': 0.13604577240940877, 'fraction_numerical': 0.01144310235219326, 'mean_word_length': 3.0255754475703327, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, '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': '6437714', 'n_tokens_mistral': 465, 'n_tokens_neox': 443, 'n_words': 94}