<commit_before>import { Component, OnChanges, OnInit } from '@angular/core';
import { HTTP_PROVIDERS } from '@angular/http';
import { ROUTER_DIRECTIVES } from '@angular/router';

// Haven't looked into why yet, however we're unable use barreled imports at this point.
import { MatchesService } from '../../services/matches';
import { MatchSummaryService } from '../../services/match-summary';
import { ReadmeService } from '../../services/readme';
import { StatsService } from '../../services/stats';
import { TeamsService } from '../../services/teams';
import { TimeService } from '../../services/time';
import { VenuesService } from '../../services/venues';

import { FooterComponent } from '../footer/footer';
import { LadderComponent } from '../ladder/ladder';
import { ListMatchesComponent } from '../list-matches/list-matches';
import { PageLadderComponent } from '../page-ladder/page-ladder';
import { PageReadmeComponent } from '../page-readme/page-readme';
import { PageRoundComponent } from '../page-round/page-round';

import { FormatNumber } from '../../pipes/format-number';
import { FormatPercentage } from '../../pipes/format-percentage';

declare const $;

@Component({
    selector: 'my-app',
    directives: [
        FooterComponent,
        ROUTER_DIRECTIVES,
    ],
    providers: [
        HTTP_PROVIDERS,
        // Services
        MatchesService,
        MatchSummaryService,
        ReadmeService,
        StatsService,
        TeamsService,
        TimeService,
        VenuesService,
        // Pipes
        FormatNumber,
        FormatPercentage,
    ],
    styles: [`
        #popup-rounds .ui.link.list {
            white-space: nowrap;
        }
        #popup-rounds .ui.three.column {
            width: 350px;
        }
        .ui.main.container {
            margin-top: 6em;
            margin-bottom: 4em;
            min-height: calc(100vh - 232px);
        }
    `],
    template: `
        <div id="header" class="ui fixed menu inverted">
            <div class="ui container">
                <a [routerLink]="['ladder']"  class="header item nohighlight">AFL 2016</a>

                <a [routerLink]="['ladder']" class="item">Ladder</a>

                <div id="popup-rounds-trigger" class="item dropdown">
                    Round
                    <i class="dropdown icon"></i>
                </div>

                <a [routerLink]="['readme']" class="item">Readme</a>

                <div class="right menu"><!-- --></div>
            </div>
        </div>

        <div id="popup-rounds" class="ui flowing popup top left transition hidden inverted">
            <div class="ui three column divided center aligned grid inverted">
                <div class="column">
                    <div class="ui link list inverted">
                        <div *ngFor="let item of rounds[0]" class="item">
                            <a [routerLink]="['round', item]" class="inverted">Round {{ item }}</a>
                        </div>
                    </div>
                </div>

                <div class="column">
                    <div class="ui link list inverted">
                        <div *ngFor="let item of rounds[1]" class="item">
                            <a [routerLink]="['round', item]" class="inverted">Round {{ item }}</a>
                        </div>
                    </div>
                </div>

                <div class="column">
                    <div class="ui link list inverted">
                        <div *ngFor="let item of rounds[2]" class="item">
                            <a [routerLink]="['round', item]">Round {{ item }}</a>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <div class="ui main container">
            <router-outlet></router-outlet>
        </div>

        <site-footer></site-footer>
    `,
})

//@RouteConfig([
//    {
//        path: '/round/:roundNumber',
//        name: 'Round',
//        component: PageRoundComponent,
//    },
//    {
//        path: '/ladder',
//        name: 'Ladder',
//        component: PageLadderComponent,
//        useAsDefault: true,
//    },
//    {
//        path: '/readme',
//        name: 'Readme',
//        component: PageReadmeComponent,
//    }
//])
export class AppComponent implements OnInit, OnChanges {
    rounds : [number[]];

    constructor(
        //private _router : Router,
        private _statsService: StatsService,
        private _timeService: TimeService
    ) {}<commit_msg>Commented code be gone!<commit_after>import { Component, OnChanges, OnInit } from '@angular/core';
import { HTTP_PROVIDERS } from '@angular/http';
import { ROUTER_DIRECTIVES } from '@angular/router';

// Haven't looked into why yet, however we're unable use barreled imports at this point.
import { MatchesService } from '../../services/matches';
import { MatchSummaryService } from '../../services/match-summary';
import { ReadmeService } from '../../services/readme';
import { StatsService } from '../../services/stats';
import { TeamsService } from '../../services/teams';
import { TimeService } from '../../services/time';
import { VenuesService } from '../../services/venues';

import { FooterComponent } from '../footer/footer';
import { LadderComponent } from '../ladder/ladder';
import { ListMatchesComponent } from '../list-matches/list-matches';
import { PageLadderComponent } from '../page-ladder/page-ladder';
import { PageReadmeComponent } from '../page-readme/page-readme';
import { PageRoundComponent } from '../page-round/page-round';

import { FormatNumber } from '../../pipes/format-number';
import { FormatPercentage } from '../../pipes/format-percentage';

declare const $;

@Component({
    selector: 'my-app',
    directives: [
        FooterComponent,
        ROUTER_DIRECTIVES,
    ],
    providers: [
        HTTP_PROVIDERS,
        // Services
        MatchesService,
        MatchSummaryService,
        ReadmeService,
        StatsService,
        TeamsService,
        TimeService,
        VenuesService,
        // Pipes
        FormatNumber,
        FormatPercentage,
    ],
    styles: [`
        #popup-rounds .ui.link.list {
            white-space: nowrap;
        }
        #popup-rounds .ui.three.column {
            width: 350px;
        }
        .ui.main.container {
            margin-top: 6em;
            margin-bottom: 4em;
            min-height: calc(100vh - 232px);
        }
    `],
    template: `
        <div id="header" class="ui fixed menu inverted">
            <div class="ui container">
                <a [routerLink]="['ladder']"  class="header item nohighlight">AFL 2016</a>

                <a [routerLink]="['ladder']" class="item">Ladder</a>

                <div id="popup-rounds-trigger" class="item dropdown">
                    Round
                    <i class="dropdown icon"></i>
                </div>

                <a [routerLink]="['readme']" class="item">Readme</a>

                <div class="right menu"><!-- --></div>
            </div>
        </div>

        <div id="popup-rounds" class="ui flowing popup top left transition hidden inverted">
            <div class="ui three column divided center aligned grid inverted">
                <div class="column">
                    <div class="ui link list inverted">
                        <div *ngFor="let item of rounds[0]" class="item">
                            <a [routerLink]="['round', item]" class="inverted">Round {{ item }}</a>
                        </div>
                    </div>
                </div>

                <div class="column">
                    <div class="ui link list inverted">
                        <div *ngFor="let item of rounds[1]" class="item">
                            <a [routerLink]="['round', item]" class="inverted">Round {{ item }}</a>
                        </div>
                    </div>
                </div>

                <div class="column">
                    <div class="ui link list inverted">
                        <div *ngFor="let item of rounds[2]" class="item">
                            <a [routerLink]="['round', item]">Round {{ item }}</a>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <div class="ui main container">
            <router-outlet></router-outlet>
        </div>

        <site-footer></site-footer>
    `,
})

export class AppComponent implements OnInit, OnChanges {
    rounds : [number[]];

    constructor(
        private _statsService: StatsService,
        private _timeService: TimeService
    ) {}
{'fraction_non_alphanumeric': 0.14992486417755171, 'fraction_numerical': 0.004161368627904289, 'mean_word_length': 1.7276166456494326, 'pattern_counts': {'":': 0, '<': 105, '<?xml version=': 0, '>': 105, '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': '1757569', 'n_tokens_mistral': 2438, 'n_tokens_neox': 2298, 'n_words': 569}