<commit_before>import classNames from 'classnames';
import React from 'react';
import PropTypes from 'prop-types';
import elementType from 'prop-types-extra/lib/elementType';

import SafeAnchor from './SafeAnchor';
import { createBootstrapComponent } from './ThemeProvider';

class BreadcrumbItem extends React.Component {
  static propTypes = {
    /**
     * @default 'breadcrumb-item'
     */
    bsPrefix: PropTypes.string,
    /**
     * Adds a visual "active" state to a Breadcrumb
     * Item and disables the link.
     */
    active: PropTypes.bool,
    /**
     * `href` attribute for the inner `a` element
     */
    href: PropTypes.string,
    /**
     * `title` attribute for the inner `a` element
     */
    title: PropTypes.node,
    /**
     * `target` attribute for the inner `a` element
     */
    target: PropTypes.string,

    componentClass: elementType
  };

  static defaultProps = {
    active: false,
    componentClass: 'li'
  };

  render() {
    const {
      bsPrefix,
      active,
      className,
      componentClass: Component,
      ...props
    } = this.props;

    const { href, title, target, ...elementProps } = props;
    const linkProps = { href, title, target };

    return (
      <Component
        className={classNames(bsPrefix, className, { active })}
        aria-current={active ? 'page' : undefined}
        {...elementProps}
      ><commit_msg>quick fix-up on BreadcrumbItem (#3090)<commit_after>import classNames from 'classnames';
import React from 'react';
import PropTypes from 'prop-types';
import elementType from 'prop-types-extra/lib/elementType';

import SafeAnchor from './SafeAnchor';
import { createBootstrapComponent } from './ThemeProvider';

class BreadcrumbItem extends React.Component {
  static propTypes = {
    /**
     * @default 'breadcrumb-item'
     */
    bsPrefix: PropTypes.string,
    /**
     * Adds a visual "active" state to a Breadcrumb
     * Item and disables the link.
     */
    active: PropTypes.bool,
    /**
     * `href` attribute for the inner `a` element
     */
    href: PropTypes.string,
    /**
     * `title` attribute for the inner `a` element
     */
    title: PropTypes.node,
    /**
     * `target` attribute for the inner `a` element
     */
    target: PropTypes.string,

    componentClass: elementType
  };

  static defaultProps = {
    active: false,
    componentClass: 'li'
  };

  render() {
    const {
      bsPrefix,
      active,
      className,
      componentClass: Component,
      ...props
    } = this.props;

    const { href, title, target, ...elementProps } = props;
    const linkProps = { href, title, target };

    return (
      <Component
        className={classNames(bsPrefix, className, { active })}
        aria-current={active ? 'page' : undefined}
      >
{'fraction_non_alphanumeric': 0.12120128709331426, 'fraction_numerical': 0.0014301036825169824, 'mean_word_length': 2.5150753768844223, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4515089', 'n_tokens_mistral': 818, 'n_tokens_neox': 805, 'n_words': 229}