<commit_before>import { Component, Input, OnInit } from '@angular/core';
import { AbstractControl } from '@angular/common';
import { ValidationMessageComponent } from './../validation-message/validation-message.component';
import { ValidationMessage } from '../../models/validation-message.model';

@Component({
    selector: 'validation-messages',
    template: `
    <div *ngIf="messages" *ngFor="#message of messages">
        <validation-message *ngIf="message" [message]="message[messageProperty]"></validation-message>
    </div>`
    ,
    directives: [ValidationMessageComponent]
})
export class ValidationMessagesComponent implements OnInit {
    @Input() public control: AbstractControl;
    @Input() public exemptKeys: string[];
    @Input() public messageProperty: string;

    public ngOnInit(): void {
        this.messageProperty = this.messageProperty || 'text';
    }<commit_msg>#4 Upgraded ngFor syntax to us let instead of #<commit_after>import { Component, Input, OnInit } from '@angular/core';
import { AbstractControl } from '@angular/common';
import { ValidationMessageComponent } from './../validation-message/validation-message.component';
import { ValidationMessage } from '../../models/validation-message.model';

@Component({
    selector: 'validation-messages',
    template: `
    <div *ngIf="messages" *ngFor="let message of messages">
        <validation-message *ngIf="message" [message]="message[messageProperty]"></validation-message>
    </div>`
    ,
    directives: [ValidationMessageComponent]
})
export class ValidationMessagesComponent implements OnInit {
    @Input() public control: AbstractControl;
    @Input() public exemptKeys: string[];
    @Input() public messageProperty: string;

    public ngOnInit(): void {
        this.messageProperty = this.messageProperty || 'text';
    }
{'fraction_non_alphanumeric': 0.1394204483324221, 'fraction_numerical': 0.0005467468562055768, 'mean_word_length': 4.528700906344411, 'pattern_counts': {'":': 0, '<': 11, '<?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': '6962723', 'n_tokens_mistral': 474, 'n_tokens_neox': 464, 'n_words': 122}