<commit_before>/// <reference path="typings/_custom.d.ts" />
import {Component, View, bootstrap, Inject} from 'angular2/angular2';
import {formDirectives, ControlGroup, Validators, formInjectables, FormBuilder} from 'angular2/forms';
import {} from "angular2/di";

@Component({
  selector: 'app'
})
@View({
  templateUrl: './app.html?v=<%= VERSION %>',
  directives: [formDirectives]
})
class App {

    form:any;

    constructor(@Inject(FormBuilder) fb: FormBuilder) {
        this.form = fb.group({
            "firstName":["", Validators.required],
            "lastName":["", Validators.required],
            "password":["", Validators.required],
            "birthDate":["", Validators.required],
            "weight":["", Validators.required]
        });
    }

    onSubmit() {
        console.log("form submitted");
    }
}


bootstrap(App, [formInjectables]);<commit_msg>ongoing<commit_after>/// <reference path="typings/_custom.d.ts" />
import {Component, View, bootstrap, Inject} from 'angular2/angular2';
import {formDirectives, ControlGroup, Validators, formInjectables, FormBuilder} from 'angular2/forms';
import {} from "angular2/di";

@Component({
  selector: 'app'
})
@View({
  templateUrl: './app.html?v=<%= VERSION %>',
  directives: [formDirectives]
})
class App {

    form:any;

    constructor(@Inject(FormBuilder) fb: FormBuilder) {
        this.form = fb.group({
            "firstName":["", Validators.required],
            "lastName":["", Validators.required],
            "password":["", Validators.required],
            "birthDate":["", Validators.required],
            "weight":["", Validators.required]
        });

        this.form.valueChanges.toRx().map((value) =>value).subscribe((value) => {
            console.log(value);
        });

    }

    onSubmit() {
        console.log("form submitted");
    }
}


bootstrap(App, [formInjectables]);
{'fraction_non_alphanumeric': 0.17815482502651114, 'fraction_numerical': 0.0042417815482502655, 'mean_word_length': 3.221476510067114, 'pattern_counts': {'":': 10, '<': 7, '<?xml version=': 0, '>': 9, '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': '2327262', 'n_tokens_mistral': 584, 'n_tokens_neox': 561, 'n_words': 108}