<commit_before>import {Component, Template} from 'angular2/angular2';
import {If} from 'angular2/angular2';

@Component({
    selector: 'hello'  //TODO: default to camel-cased class name if not provided?
})
@Template({
    inline: `<span *if="name">Hello, {{name}}!</span>`,
    directives: [If]
})
export class Hello {
    name: string;
    constructor() {
        this.name = 'World'; //TODO: how to declare a field with its default value (so I don't need a constructor)?
        setTimeout(() => {
          this.name = '<NAME>'
        }, 2000);
    }
}<commit_msg>feat: illustrate def value assigment to fields with a type<commit_after>import {Component, Template} from 'angular2/angular2';
import {If} from 'angular2/angular2';

@Component({
    selector: 'hello'  //TODO: default to camel-cased class name if not provided?
})
@Template({
    inline: `<span *if="name">Hello, {{name}}!</span>`,
    directives: [If]
})
export class Hello {
    name: string = 'World';
    constructor() {
        setTimeout(() => {
          this.name = '<NAME>'
        }, 2000);
    }
}
{'fraction_non_alphanumeric': 0.16341689879294335, 'fraction_numerical': 0.014856081708449397, 'mean_word_length': 3.2440944881889764, 'pattern_counts': {'":': 0, '<': 9, '<?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': '7167630', 'n_tokens_mistral': 345, 'n_tokens_neox': 333, 'n_words': 104}