<commit_before>import { Component } from '@angular/core';
import { parentComponent } from './common.component';

export class versionItem {
    version: string;
    versionHTMLClassLinkRelease: string;
    releaseLink: string;
    docLink: string;
    versionHTMLClassLinkDoc: string;
    constructor(version: string, releaseLink: string, versionHTMLClassLinkRelease: string, docLink: string, versionHTMLClassLinkDoc: string) {
        this.version = version;
        this.releaseLink = releaseLink;
        this.versionHTMLClassLinkRelease = versionHTMLClassLinkRelease;

        this.docLink = docLink;
        this.versionHTMLClassLinkDoc = versionHTMLClassLinkDoc;
    }
}

export class majorVersionItem {
    version: string;
    versionItems: versionItem[];
    constructor(version: string, versionItems: versionItem[]) {
        this.version = version;
        this.versionItems = versionItems;
    }
}

@Component({
    selector: 'versions',
    templateUrl: 'versions.component.html',
    styleUrls: ['common.component.css']
})
export class versions_tip_Component extends parentComponent {
    majorVersionItems: majorVersionItem[];
    constructor() {
        super();
        this.majorVersionItems = [
            new majorVersionItem('v2', [
                new versionItem(
                    'v2.3.7',
                    'https://github.com/coreos/etcd/releases/tag/v2.3.7',
                    'versions-link-main',
                    'https://github.com/coreos/etcd/tree/master/Documentation/v2',
                    'versions-link-other'
                ),
            ]),
            new majorVersionItem('v3', [
                new versionItem(
                    'tip (master branch)',
                    'https://github.com/coreos/etcd',
                    'versions-link-main',
                    '/doc/tip',
                    'versions-link-other'
                ),
                new versionItem(
                    'v3.1.0',
                    'https://github.com/coreos/etcd/releases/tag/v3.1.0',
                    'versions-link-main-emphasize',
                    '/doc/v31',
                    'versions-link-other'
                ),
                new versionItem(<commit_msg>frontend: update v2.3.7 doc<commit_after>import { Component } from '@angular/core';
import { parentComponent } from './common.component';

export class versionItem {
    version: string;
    versionHTMLClassLinkRelease: string;
    releaseLink: string;
    docLink: string;
    versionHTMLClassLinkDoc: string;
    constructor(version: string, releaseLink: string, versionHTMLClassLinkRelease: string, docLink: string, versionHTMLClassLinkDoc: string) {
        this.version = version;
        this.releaseLink = releaseLink;
        this.versionHTMLClassLinkRelease = versionHTMLClassLinkRelease;

        this.docLink = docLink;
        this.versionHTMLClassLinkDoc = versionHTMLClassLinkDoc;
    }
}

export class majorVersionItem {
    version: string;
    versionItems: versionItem[];
    constructor(version: string, versionItems: versionItem[]) {
        this.version = version;
        this.versionItems = versionItems;
    }
}

@Component({
    selector: 'versions',
    templateUrl: 'versions.component.html',
    styleUrls: ['common.component.css']
})
export class versions_tip_Component extends parentComponent {
    majorVersionItems: majorVersionItem[];
    constructor() {
        super();
        this.majorVersionItems = [
            new majorVersionItem('v2', [
                new versionItem(
                    'v2.3.7',
                    'https://github.com/coreos/etcd/releases/tag/v2.3.7',
                    'versions-link-main',
                    'https://github.com/coreos/etcd/tree/release-2.3/Documentation',
                    'versions-link-other'
                ),
            ]),
            new majorVersionItem('v3', [
                new versionItem(
                    'tip (master branch)',
                    'https://github.com/coreos/etcd',
                    'versions-link-main',
                    '/doc/tip',
                    'versions-link-other'
                ),
                new versionItem(
                    'v3.1.0',
                    'https://github.com/coreos/etcd/releases/tag/v3.1.0',
                    'versions-link-main-emphasize',
                    '/doc/v31',
                    'versions-link-other'
                ),
                new versionItem(
{'fraction_non_alphanumeric': 0.10966875559534467, 'fraction_numerical': 0.008504923903312443, 'mean_word_length': 1.816005040957782, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, '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': '240647', 'n_tokens_mistral': 1204, 'n_tokens_neox': 1160, 'n_words': 206}