<commit_before>import {Component, OnInit} from "@angular/core";
import {Input} from "@angular/core";
import {REACTIVE_FORM_DIRECTIVES, FormGroup} from "@angular/forms";
import {DynamicFormControlComponent, DynamicFormControlModel} from "@ng2-dynamic-forms/core";
import {Checkbox, Dropdown, InputText, InputTextarea, RadioButton, SelectItem, Spinner} from "primeng/primeng";

export const DYNAMIC_FORM_UI_PRIME_NG = "PRIME_NG";

@Component({

    directives: [REACTIVE_FORM_DIRECTIVES, Checkbox, Dropdown, InputText, InputTextarea, RadioButton, Spinner],
    moduleId: module.id,
    selector: "dynamic-form-primeng-control",
    templateUrl: "./dynamic-form-primeng.component.html"
})

export class DynamicFormPrimeNGComponent extends DynamicFormControlComponent implements OnInit{

    @Input() model: DynamicFormControlModel<any>;
    @Input() form: FormGroup;

    options: SelectItem[];
    type: string = DYNAMIC_FORM_UI_PRIME_NG;

    constructor() {
        super();
    }

    ngOnInit () {

        if (this.model["options"]) {
            this.options = [...this.model["options"]];
            console.log(this.options);
        }
    }
}
<commit_msg>cleaned up DynamicFormPrimeNGComponent<commit_after>import {Component} from "@angular/core";
import {Input} from "@angular/core";
import {REACTIVE_FORM_DIRECTIVES, FormGroup} from "@angular/forms";
import {DynamicFormControlComponent, DynamicFormControlModel} from "@ng2-dynamic-forms/core";
import {Checkbox, Dropdown, InputText, InputTextarea, RadioButton, Spinner} from "primeng/primeng";

export const DYNAMIC_FORM_UI_PRIME_NG = "PRIME_NG";

@Component({

    directives: [REACTIVE_FORM_DIRECTIVES, Checkbox, Dropdown, InputText, InputTextarea, RadioButton, Spinner],
    moduleId: module.id,
    selector: "dynamic-form-primeng-control",
    templateUrl: "./dynamic-form-primeng.component.html"
})

export class DynamicFormPrimeNGComponent extends DynamicFormControlComponent {

    @Input() model: DynamicFormControlModel<any>;
    @Input() form: FormGroup;

    type: string = DYNAMIC_FORM_UI_PRIME_NG;

    constructor() {
        super();
    }
}
{'fraction_non_alphanumeric': 0.11950873878129428, 'fraction_numerical': 0.000944733112895607, 'mean_word_length': 4.966197183098592, 'pattern_counts': {'":': 0, '<': 5, '<?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': '977116', 'n_tokens_mistral': 659, 'n_tokens_neox': 642, 'n_words': 138}