<commit_before>﻿import * as React from 'react';
import * as PropTypes from 'prop-types';
import { classes } from '../Globals';

interface NavItemProps extends React.HTMLAttributes<any> {
    tag?: React.ReactType;
    active?: boolean;
    className?: string;
}

export class NavItem extends React.Component<NavItemProps> {

    static defaultProps = {
        tag: 'li'
    };

    render() {
        const {
            className,
            active,
            tag,
            ...attributes
        } = this.props;

        const clss = classes(
            className,
            'nav-item',
            active && 'active'
        );

        const Tag = tag!;

        return (
            <Tag {...attributes} className={clss} />
        );
    }
}

export interface NavLinkProps {
    tag?: React.ReactType;
    innerRef?: (a: React.ReactElement<any> | null) => void;
    disabled?: boolean;
    active?: boolean;
    className?: string;
    onClick?: (e: React.MouseEvent<any>) => void;
    href?: string;
}


export class NavLink extends React.Component<NavLinkProps> {
    static defaultProps = {
        tag: 'a',<commit_msg>added style to NavItem<commit_after>import * as React from 'react';
import * as PropTypes from 'prop-types';
import { classes } from '../Globals';

interface NavItemProps extends React.HTMLAttributes<any> {
    tag?: React.ReactType;
    active?: boolean;
    className?: string;
}

export class NavItem extends React.Component<NavItemProps> {

    static defaultProps = {
        tag: 'li'
    };

    render() {
        const {
            className,
            active,
            tag,
            ...attributes
        } = this.props;

        const clss = classes(
            className,
            'nav-item',
            active && 'active'
        );

        const Tag = tag!;

        return (
            <Tag {...attributes} className={clss} />
        );
    }
}

export interface NavLinkProps {
    tag?: React.ReactType;
    innerRef?: (a: React.ReactElement<any> | null) => void;
    disabled?: boolean;
    active?: boolean;
    className?: string;
    onClick?: (e: React.MouseEvent<any>) => void;
    href?: string;
    style?: CSSProperties;
}


export class NavLink extends React.Component<NavLinkProps> {
    static defaultProps = {
        tag: 'a',
{'fraction_non_alphanumeric': 0.12548680225010816, 'fraction_numerical': 0.0, 'mean_word_length': 2.058201058201058, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 19, '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': '2390600', 'n_tokens_mistral': 657, 'n_tokens_neox': 654, 'n_words': 174}