<commit_before>import {inject, customElement, bindable} from 'aurelia-framework';
import $ from 'jquery';

@customElement('modal')
@inject(Element)
export class Modal {
  @bindable showing = false;
  constructor(element) {
    this.element = element;
  }
  attached(){
    $(this.modal).modal({show: false})
    .on('show.bs.modal', () => {	
      this.showing = true;
    })
    .on('hide.bs.modal', () => {	
      this.showing = false;<commit_msg>fix(modal): Fixed issue #18 by importing bootstrap instead of jquery as $ in modal.js<commit_after>import {inject, customElement, bindable} from 'aurelia-framework';
import $ from 'bootstrap';

@customElement('modal')
@inject(Element)
export class Modal {
  @bindable showing = false;
  constructor(element) {
    this.element = element;
  }
  attached(){
    $(this.modal).modal({show: false})
    .on('show.bs.modal', () => {	
      this.showing = true;
    })
    .on('hide.bs.modal', () => {	
      this.showing = false;
{'fraction_non_alphanumeric': 0.1685508735868448, 'fraction_numerical': 0.0020554984583761563, 'mean_word_length': 3.6161137440758293, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '6833916', 'n_tokens_mistral': 321, 'n_tokens_neox': 316, 'n_words': 69}