<commit_before>﻿import {Component} from 'angular2/core';
import {Observable} from 'rxjs/Rx';
import {DateFormatPipe} from 'angular2-moment/DateFormatPipe';


@Component({
    selector: 'my-app',
    pipes: [DateFormatPipe],
    template: `
<div class="col-md-6 datetime-date">
    <div class="col-md-12">
        {{ time | amDateFormat:'dddd' }}
    </div>
    <div class="col-md-12">
        {{ time | amDateFormat:'DD. MMMM YYYY' }}
    </div>
</div>
<div class="col-md-4 datetime-time">
    {{ time | amDateFormat:'HH:mm' }}&nbsp;Uhr
</div>
`
})
export class AppComponent {
    constructor() {
        this.time = new Date();
        Observable
            .interval(1000)
            .subscribe(() => {
                this.time = new Date();
            });
    }

    time: Date;
}<commit_msg>define component structure<commit_after>﻿import {Component} from 'angular2/core';
import {Observable} from 'rxjs/Rx';
import {DateFormatPipe} from 'angular2-moment/DateFormatPipe';

// todo
// - app component
//   - dashboard [/]
//     - date
//     - time
//     - button groups
//     - buttons
//     - playbar
//     - ...
//   - admin [/admin]
//     - header
//     - navigation
//     - rooms, scripts, scriptgroups, gateways, devices

@Component({
    selector: 'my-app',
    pipes: [DateFormatPipe],
    template: `
<div class="col-md-6 datetime-date">
    <div class="col-md-12">
        {{ time | amDateFormat:'dddd' }}
    </div>
    <div class="col-md-12">
        {{ time | amDateFormat:'DD. MMMM YYYY' }}
    </div>
</div>
<div class="col-md-4 datetime-time">
    {{ time | amDateFormat:'HH:mm' }}&nbsp;Uhr
</div>
`
})
export class AppComponent {
    constructor() {
        this.time = new Date();
        Observable
            .interval(1000)
            .subscribe(() => {
                this.time = new Date();
            });
    }

    time: Date;
}
{'fraction_non_alphanumeric': 0.1778846153846154, 'fraction_numerical': 0.01282051282051282, 'mean_word_length': 2.1638513513513513, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 21, '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': '812258', 'n_tokens_mistral': 638, 'n_tokens_neox': 622, 'n_words': 133}