<commit_before>(function(){
"use strict";
xtag.customEvents.press = {
    maxHold: 1500,
    attach: [
      //Touch events
      "touchstart",
      "touchmove",
      "touchleave",
      "touchcancel",
      "touchend",
      //Mouse events
      "mousedown",
      "mouseleave",
      "mouseup"
    ],
    condition: function (event) {
      //Creates data object
      var el = event.target,
          data;
      if (!el.xtag) el.xtag = {};
      if (!el.xtag.customEvents) el.xtag.customEvents = {};
      if (!el.xtag.customEvents.press) el.xtag.customEvents.press = {data: {activated: false}};
      if (el.xtag.customEvents.press.data.activated) return false;
      data = el.xtag.customEvents.press.data,
        type = event.type;
      //Start event
      if (type === "touchstart", "mousedown") {
        //Be a bit stupid to do this when not neccessary
        if (data.activated) return false;
         //Time is used to determine wheather or not the finget had been held too long
         data.starttime = Date.now();
         data.canceled = false;
        //Potentially used in the future
         data.starttype = type === "touchstart" ? "touch" : "mouse";
        //Cancels event if finger is moved or they stop touching/clicking the the button. Also cancels if touchcancel.
      } else if (type === "touchleave", "mouseleave", "touchmove", "touchcancel") {
        data.canceled = true;
      } else if (type === "touchend", "mouseup", && !data.canceled) {
        //Time between start of press to finish
        var time = Data.now(),
            difference = time - data.starttime;
        if (difference < 0) {
          console.warn("The system's internal clock is most likely damaged or incorrectly set!");
          difference = -difference;
        }
        //If they are holding the button too long, a longpress event would fire, not a press event.
        // 1.5s by default
        if (difference > xtag.customEvents.press.maxHold) return false;<commit_msg>Finally fix syntax error on lin 39<commit_after>(function(){
"use strict";
xtag.customEvents.press = {
    maxHold: 1500,
    attach: [
      //Touch events
      "touchstart",
      "touchmove",
      "touchleave",
      "touchcancel",
      "touchend",
      //Mouse events
      "mousedown",
      "mouseleave",
      "mouseup"
    ],
    condition: function (event) {
      //Creates data object
      var el = event.target,
          data;
      if (!el.xtag) el.xtag = {};
      if (!el.xtag.customEvents) el.xtag.customEvents = {};
      if (!el.xtag.customEvents.press) el.xtag.customEvents.press = {data: {activated: false}};
      if (el.xtag.customEvents.press.data.activated) return false;
      data = el.xtag.customEvents.press.data,
        type = event.type;
      //Start event
      if (type === "touchstart", "mousedown") {
        //Be a bit stupid to do this when not neccessary
        if (data.activated) return false;
         //Time is used to determine wheather or not the finget had been held too long
         data.starttime = Date.now();
         data.canceled = false;
        //Potentially used in the future
         data.starttype = type === "touchstart" ? "touch" : "mouse";
        //Cancels event if finger is moved or they stop touching/clicking the the button. Also cancels if touchcancel.
      } else if (type === "touchleave", "mouseleave", "touchmove", "touchcancel") {
        data.canceled = true;
      } else if (type === "touchend", "mouseup" && !data.canceled) {
        //Time between start of press to finish
        var time = Data.now(),
            difference = time - data.starttime;
        if (difference < 0) {
          console.warn("The system's internal clock is most likely damaged or incorrectly set!");
          difference = -difference;
        }
        //If they are holding the button too long, a longpress event would fire, not a press event.
        // 1.5s by default
        if (difference > xtag.customEvents.press.maxHold) return false;
{'fraction_non_alphanumeric': 0.12075, 'fraction_numerical': 0.004, 'mean_word_length': 2.250203086921202, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2789355', 'n_tokens_mistral': 1194, 'n_tokens_neox': 1155, 'n_words': 373}