<commit_before>import { Component, Element, Prop, PropDidChange } from '@stencil/core';

@Component({
  tag: 'bs-breadcrumb-item',
  styleUrl: 'bs-breadcrumb-item.scss'
})
export class BreadcrumbItem {
  @Element()
  element: HTMLElement;

  @Prop()
  active: boolean = false;

  @PropDidChange('active')
  didActiveChangeHandler(active: boolean) {
    if (active) {
      this.element.classList.add('active');
    } else {
      this.element.classList.remove('active');
    }
  }

  componentWillLoad() {
    this.element.classList.add('breadcrumb-item');

    this.didActiveChangeHandler(this.active);
  }

  render() {
    return (<slot />);
  }
}<commit_msg>component(bs-breadcrumb-item): Set/Remove the aria-current attribute<commit_after>import { Component, Element, Prop, PropDidChange } from '@stencil/core';

@Component({
  tag: 'bs-breadcrumb-item',
  styleUrl: 'bs-breadcrumb-item.scss'
})
export class BreadcrumbItem {
  @Element()
  element: HTMLElement;

  @Prop()
  active: boolean = false;

  @PropDidChange('active')
  didActiveChangeHandler(active: boolean) {
    if (active) {
      this.element.classList.add('active');
      this.element.setAttribute('aria-current', 'page');
    } else {
      this.element.classList.remove('active');
      this.element.removeAttribute('aria-current');
    }
  }

  componentWillLoad() {
    this.element.classList.add('breadcrumb-item');

    this.didActiveChangeHandler(this.active);
  }

  render() {
    return (<slot />);
  }
}
{'fraction_non_alphanumeric': 0.15591397849462366, 'fraction_numerical': 0.0, 'mean_word_length': 3.8344155844155843, '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': '140251', 'n_tokens_mistral': 494, 'n_tokens_neox': 487, 'n_words': 79}