<commit_before>'use strict'

class Piano {

  constructor(options) {
    if (document.querySelectorAll('#piano').length) {
      console.warn('piano is already initialized')
      return false
    }
    this.defaults = {
      triggerEvents: ['click'],
      slideContent: false,
      slideContainer: 'body',
      onBeforeHidden: function () { },
      onHidden: function () { },
      layouts: options.layouts || [],
      autohide: true
    }

    this.settings = Object.assign(this.defaults, options)
    this.container = Object.assign(document.createElement('div'), { id: 'piano', className: 'piano-container animated' })
    this.detectInputs()
    document.body.appendChild(this.container)
    // Make sure to hide keyboard when clicking outside
    if (this.settings.autohide) {
      addMultipleListeners(['click', 'touchdown'], document, function (event) {
        if (event.target.dataset.piano !== '' && !this.container.contains(event.target)) {<commit_msg>Update Piano.js<commit_after>'use strict'

class Piano {

  constructor(options) {
    if (document.querySelectorAll('#piano').length) {
      console.warn('piano is already initialized')
      return false
    }
    this.defaults = {
      triggerEvents: ['click'],
      slideContent: false,
      slideContainer: 'body',
      onBeforeHidden: function () { },
      onHidden: function () { },
      layouts: options.layouts || [],
      autohide: true
    }

    this.settings = Object.assign(this.defaults, options)
    this.container = Object.assign(document.createElement('div'), { id: 'piano', className: 'piano-container animated' })
    this.detectInputs()
    document.body.appendChild(this.container)
    // Make sure to hide keyboard when clicking outside
    if (this.settings.autohide) {
      addMultipleListeners(['click', 'touchdown'], document, function (event) {
        var dataset = event.target.dataset || {};
        if (dataset.piano !== '' && !this.container.contains(event.target)) {
{'fraction_non_alphanumeric': 0.14098029307731177, 'fraction_numerical': 0.0, 'mean_word_length': 3.295010845986985, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '290610', 'n_tokens_mistral': 549, 'n_tokens_neox': 550, 'n_words': 120}