<commit_before>L.DomUtil = L.extend(L.DomUtil, {
  initTranslation(obj) {
    this.translation = obj;
  },

  getMatrixString(m) {
    var is3d = L.Browser.webkit3d || L.Browser.gecko3d || L.Browser.ie3d;

    /*
     * Since matrix3d takes a 4*4 matrix, we add in an empty row and column,
     * which act as the identity on the z-axis.
     * See:
     *     http://franklinta.com/2014/09/08/computing-css-matrix3d-transforms/
     *     https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function#M.C3.B6bius'_homogeneous_coordinates_in_projective_geometry
     */
    var matrix = [
      m[0], m[3], 0, m[6],
      m[1], m[4], 0, m[7],
      0, 0, 1, 0,
      m[2], m[5], 0, m[8],
    ];

    var str = is3d ? 'matrix3d(' + matrix.join(',') + ')' : '';

    if (!is3d) {
      console
          .log('Your browser must support 3D CSS transforms' +
          'in order to use DistortableImageOverlay.');
    }

    return str;
  },

  toggleClass(el, className) {
    var c = className;
    return this.hasClass(el, c) ?
      this.removeClass(el, c) : this.addClass(el, c);
  },

  confirmDelete() {
    return window.confirm(this.translation.confirmImageDelete);
  },

  confirmDeletes(n) {
    if (n === 1) { return this.confirmDelete(); }

    var translation = this.translation.confirmImagesDeletes;
    var warningMsg = '';

    if (typeof translation === 'function') {
      warningMsg = translation(n);
    } else {
      warningMsg = translation;
    }

    return window.confirm(warningMsg);
  },
});<commit_msg>Hey guys! Switched the var to let and const as deemed necessary in my opinion. Thank you! (#1107)<commit_after>L.DomUtil = L.extend(L.DomUtil, {
  initTranslation(obj) {
    this.translation = obj;
  },

  getMatrixString(m) {
    const is3d = L.Browser.webkit3d || L.Browser.gecko3d || L.Browser.ie3d;

    /*
     * Since matrix3d takes a 4*4 matrix, we add in an empty row and column,
     * which act as the identity on the z-axis.
     * See:
     *     http://franklinta.com/2014/09/08/computing-css-matrix3d-transforms/
     *     https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function#M.C3.B6bius'_homogeneous_coordinates_in_projective_geometry
     */
    const matrix = [
      m[0], m[3], 0, m[6],
      m[1], m[4], 0, m[7],
      0, 0, 1, 0,
      m[2], m[5], 0, m[8],
    ];

    const str = is3d ? 'matrix3d(' + matrix.join(',') + ')' : '';

    if (!is3d) {
      console
          .log('Your browser must support 3D CSS transforms' +
          'in order to use DistortableImageOverlay.');
    }

    return str;
  },

  toggleClass(el, className) {
    const c = className;
    return this.hasClass(el, c) ?
      this.removeClass(el, c) : this.addClass(el, c);
  },

  confirmDelete() {
    return window.confirm(this.translation.confirmImageDelete);
  },

  confirmDeletes(n) {
    if (n === 1) { return this.confirmDelete(); }

    const translation = this.translation.confirmImagesDeletes;
    let warningMsg = '';

    if (typeof translation === 'function') {
      warningMsg = translation(n);
    } else {
      warningMsg = translation;
    }

    return window.confirm(warningMsg);
  },
});
{'fraction_non_alphanumeric': 0.14990512333965844, 'fraction_numerical': 0.025932953826691967, 'mean_word_length': 2.6066134549600912, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '1833486', 'n_tokens_mistral': 1144, 'n_tokens_neox': 1081, 'n_words': 243}