<commit_before>import * as Swiper from 'swiper/dist/js/swiper.js';

import { Directive,
  OnInit, DoCheck, OnDestroy, OnChanges,
  Input, Output, HostBinding, EventEmitter,
  NgZone, Renderer2, ElementRef, Optional, Inject,
  SimpleChanges, KeyValueDiffer, KeyValueDiffers } from '@angular/core';

import { SWIPER_CONFIG } from './swiper.interfaces';

import { SwiperEvents, SwiperConfig, SwiperConfigInterface } from './swiper.interfaces';

@Directive({
  selector: '[swiper]',
  exportAs: 'ngxSwiper'
})
export class SwiperDirective implements OnInit, DoCheck, OnDestroy, OnChanges {
  public instance: any;

  private configDiff: KeyValueDiffer<string, any>;

  private initialIndex: number;

  @Input()
  set index(index: number) {
    if (index != null) {
      this.setIndex(index);
    }
  }

  @Input() disabled: boolean = false;

  @Input('swiper') config: SwiperConfigInterface;

  @Output() indexChange = new EventEmitter<number>();

  @Output('init'                       ) S_INIT                           = new EventEmitter<any>();
  @Output('beforeDestroy'              ) S_BEFOREDESTROY                  = new EventEmitter<any>();
<commit_msg>Change the instance attribute to be private<commit_after>import * as Swiper from 'swiper/dist/js/swiper.js';

import { Directive,
  OnInit, DoCheck, OnDestroy, OnChanges,
  Input, Output, HostBinding, EventEmitter,
  NgZone, Renderer2, ElementRef, Optional, Inject,
  SimpleChanges, KeyValueDiffer, KeyValueDiffers } from '@angular/core';

import { SWIPER_CONFIG } from './swiper.interfaces';

import { SwiperEvents, SwiperConfig, SwiperConfigInterface } from './swiper.interfaces';

@Directive({
  selector: '[swiper]',
  exportAs: 'ngxSwiper'
})
export class SwiperDirective implements OnInit, DoCheck, OnDestroy, OnChanges {
  private instance: any;

  private configDiff: KeyValueDiffer<string, any>;

  private initialIndex: number;

  @Input()
  set index(index: number) {
    if (index != null) {
      this.setIndex(index);
    }
  }

  @Input() disabled: boolean = false;

  @Input('swiper') config: SwiperConfigInterface;

  @Output() indexChange = new EventEmitter<number>();

  @Output('init'                       ) S_INIT                           = new EventEmitter<any>();
  @Output('beforeDestroy'              ) S_BEFOREDESTROY                  = new EventEmitter<any>();

{'fraction_non_alphanumeric': 0.12005108556832694, 'fraction_numerical': 0.0008514261387824606, 'mean_word_length': 3.563106796116505, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7560277', 'n_tokens_mistral': 719, 'n_tokens_neox': 708, 'n_words': 176}