<commit_before>import { Component, ContentChildren, QueryList, AfterContentInit } from '@angular/core';
import { TabComponent } from './tab.component';

@Component({
    selector: 'tabs',
    template:
    `
    <ul class="nav nav-tabs" style="float: right; width:100%; margin-bottom:20px;">
      <li *ngFor="#tab of tabs" (click)="selectTab(tab)" [class.active]="tab.active">
        <a href="#">
            {{ tab.title }}
        </a>
      </li>
    </ul>
    <ng-content></ng-content>
   `
})
export class TabsComponent implements AfterContentInit {

    @ContentChildren(TabComponent) tabs: QueryList<TabComponent>;

    ngAfterContentInit() {
        // get all active tabs
        let activeTabs = this.tabs.filter((tab)=>tab.active);

        // if there is no active tab set, activate the first
        if(activeTabs.length === 0) {<commit_msg>fixed debrecated # in ngFor. Replaced # with let.<commit_after>import { Component, ContentChildren, QueryList, AfterContentInit } from '@angular/core';
import { TabComponent } from './tab.component';

@Component({
    selector: 'tabs',
    template:
    `
    <ul class="nav nav-tabs" style="float: right; width:100%; margin-bottom:20px;">
      <li *ngFor="let tab of tabs" (click)="selectTab(tab)" [class.active]="tab.active">
        <a href="#">
            {{ tab.title }}
        </a>
      </li>
    </ul>
    <ng-content></ng-content>
   `
})
export class TabsComponent implements AfterContentInit {

    @ContentChildren(TabComponent) tabs: QueryList<TabComponent>;

    ngAfterContentInit() {
        // get all active tabs
        let activeTabs = this.tabs.filter((tab)=>tab.active);

        // if there is no active tab set, activate the first
        if(activeTabs.length === 0) {
{'fraction_non_alphanumeric': 0.15248429468874927, 'fraction_numerical': 0.006853226727584237, 'mean_word_length': 3.018348623853211, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 23, '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': '3474426', 'n_tokens_mistral': 545, 'n_tokens_neox': 517, 'n_words': 133}