<commit_before>if (!window.console) window.console = {}
if (!window.console.log) window.console.log = function () {}
/* global SimpleMDE */
var $ = window.jQuery
$(document).ready(function () {
  console.log('running')
  if (window._events) {
    console.log(window._events)
    $('#events-calendar').fullCalendar({
      events: window._events
    })
  }
  $(window).on('scroll', function (event) {
    var scroll = $(window).scrollTop()
    console.log(scroll)
    if (scroll > 10) {
      $('body').addClass('scroll')
    } else {
      $('body').removeClass('scroll')
    }
  })
  var editor = new SimpleMDE({
    element: $('.simple-mde')[0],
    forceSync: true,
    indentWithTabs: false
  })
  console.log(editor)
})
function adminWarning (currentuser, boxname) { // eslint-disable-line
  var userbox = document.getElementsByName(boxname + '[superAdmin]')
  if (boxname === currentuser && !userbox[0].checked) {
    window.alert('Please be careful when changing your own Super Admin rights. You will need to contact another Super Admin to reinstate your privileges if you disable yours.')
  }
}


function validate(form) {

  valid = true

  if(!valid) {
    alert('Please correct the errors in the form!');
    return false;
  }
  else {
    var numToDelete = document.querySelectorAll('input[type="checkbox"]:checked#delete').length
    if(numToDelete === 0){
      return true
    }
    var warning = 'Are you sure you want to delete ' + numToDelete + ' post' + (numToDelete > 1 ? 's' : '') + '?'
    return confirm(warning);
  }
}<commit_msg>linting<commit_after>if (!window.console) window.console = {}
if (!window.console.log) window.console.log = function () {}
/* global SimpleMDE */
var $ = window.jQuery
$(document).ready(function () {
  console.log('running')
  if (window._events) {
    console.log(window._events)
    $('#events-calendar').fullCalendar({
      events: window._events
    })
  }
  $(window).on('scroll', function (event) {
    var scroll = $(window).scrollTop()
    console.log(scroll)
    if (scroll > 10) {
      $('body').addClass('scroll')
    } else {
      $('body').removeClass('scroll')
    }
  })
  var editor = new SimpleMDE({
    element: $('.simple-mde')[0],
    forceSync: true,
    indentWithTabs: false
  })
  console.log(editor)
})
function adminWarning (currentuser, boxname) { // eslint-disable-line
  var userbox = document.getElementsByName(boxname + '[superAdmin]')
  if (boxname === currentuser && !userbox[0].checked) {
    window.alert('Please be careful when changing your own Super Admin rights. You will need to contact another Super Admin to reinstate your privileges if you disable yours.')
  }
}

function validate (form) { // eslint-disable-line
  var valid = true
  if (!valid) {
    window.alert('Please correct the errors in the form!')
    return false
  } else {
    var numToDelete = document.querySelectorAll('input[type="checkbox"]:checked#delete').length
    if (numToDelete === 0) {
      return true
    }
    var warning = 'Are you sure you want to delete ' + numToDelete + ' post' + (numToDelete > 1 ? 's' : '') + '?'
    return window.confirm(warning)
  }
}
{'fraction_non_alphanumeric': 0.15514495062121694, 'fraction_numerical': 0.003822873526600828, 'mean_word_length': 3.466571834992888, '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': '7364277', 'n_tokens_mistral': 965, 'n_tokens_neox': 956, 'n_words': 245}