<commit_before>/***
 * Contains core SlickGrid classes.
 * @module Core
 * @namespace Slick
 */

(function ($) {
  // register namespace
  $.extend(true, window, {
    "Slick": {
      "Event": Event,
      "EventData": EventData,
      "EventHandler": EventHandler,
      "Range": Range,
      "NonDataRow": NonDataItem,
      "Group": Group,
      "GroupTotals": GroupTotals,
      "EditorLock": EditorLock,
  
      /***
       * A global singleton editor lock.
       * @class GlobalEditorLock
       * @static
       * @constructor
       */
      "GlobalEditorLock": new EditorLock(),
      "TreeColumns": TreeColumns,

      "keyCode": {
        SPACE: 8,
        BACKSPACE: 8,
        DELETE: 46,
        DOWN: 40,
        END: 35,
        ENTER: 13,
        ESCAPE: 27,
        HOME: 36,
        INSERT: 45,
        LEFT: 37,
        PAGE_DOWN: 34,
        PAGE_UP: 33,
        RIGHT: 39,
        TAB: 9,
        UP: 38,
        A: 65
      },
      "preClickClassName" : "slick-edit-preclick",
      
      "GridAutosizeColsMode": {
        None: 'NOA',
        LegacyOff: 'LOF',
        LegacyForceFit: 'LFF',
        IgnoreViewport: 'IGV',
        FitColsToViewport: 'FCV',
        FitViewportToCols: 'FVC'
      },
      
      "ColAutosizeMode": {
          Locked: 'LCK',
          Guide: 'GUI',
          Content: 'CON',
          ContentIntelligent: 'CTI'
      },
      
      "RowSelectionMode": {
          FirstRow: 'FS1',
          FirstNRows: 'FSN',
          AllRows: 'ALL',
          LastRow: 'LS1'
      },
      
      "ValueFilterMode": {
          None: 'NONE',
          DeDuplicate: 'DEDP',
          GetGreatestAndSub: 'GR8T',
          GetLongestTextAndSub: 'LNSB',
          GetLongestText: 'LNSC'
      },
      
      "WidthEvalMode": {
          CanvasTextSize: 'CANV',
          HTML: 'HTML'
      }      
    }
  });


  if (Object.freeze) { 
    Object.freeze(Slick.ColAutosizeMode); 
    Object.freeze(Slick.AutoWidthStrategy); 
  }
    
  /***
   * An event object for passing data to event handlers and letting them control propagation.
   * <p>This is pretty much identical to how W3C and jQuery implement events.</p>
   * @class EventData
   * @constructor
   */
  function EventData() {
    var isPropagationStopped = false;
    var isImmediatePropagationStopped = false;

    /***
     * Stops event from propagating up the DOM tree.
     * @method stopPropagation
     */
    this.stopPropagation = function () {
      isPropagationStopped = true;
    };<commit_msg>remove freeze commands in slick core (they are not used elsewhere in the codebase anyway), closes #435 indirectly (issue was caused by nonexistent property name)<commit_after>/***
 * Contains core SlickGrid classes.
 * @module Core
 * @namespace Slick
 */

(function ($) {
  // register namespace
  $.extend(true, window, {
    "Slick": {
      "Event": Event,
      "EventData": EventData,
      "EventHandler": EventHandler,
      "Range": Range,
      "NonDataRow": NonDataItem,
      "Group": Group,
      "GroupTotals": GroupTotals,
      "EditorLock": EditorLock,
  
      /***
       * A global singleton editor lock.
       * @class GlobalEditorLock
       * @static
       * @constructor
       */
      "GlobalEditorLock": new EditorLock(),
      "TreeColumns": TreeColumns,

      "keyCode": {
        SPACE: 8,
        BACKSPACE: 8,
        DELETE: 46,
        DOWN: 40,
        END: 35,
        ENTER: 13,
        ESCAPE: 27,
        HOME: 36,
        INSERT: 45,
        LEFT: 37,
        PAGE_DOWN: 34,
        PAGE_UP: 33,
        RIGHT: 39,
        TAB: 9,
        UP: 38,
        A: 65
      },
      "preClickClassName" : "slick-edit-preclick",
      
      "GridAutosizeColsMode": {
        None: 'NOA',
        LegacyOff: 'LOF',
        LegacyForceFit: 'LFF',
        IgnoreViewport: 'IGV',
        FitColsToViewport: 'FCV',
        FitViewportToCols: 'FVC'
      },
      
      "ColAutosizeMode": {
          Locked: 'LCK',
          Guide: 'GUI',
          Content: 'CON',
          ContentIntelligent: 'CTI'
      },
      
      "RowSelectionMode": {
          FirstRow: 'FS1',
          FirstNRows: 'FSN',
          AllRows: 'ALL',
          LastRow: 'LS1'
      },
      
      "ValueFilterMode": {
          None: 'NONE',
          DeDuplicate: 'DEDP',
          GetGreatestAndSub: 'GR8T',
          GetLongestTextAndSub: 'LNSB',
          GetLongestText: 'LNSC'
      },
      
      "WidthEvalMode": {
          CanvasTextSize: 'CANV',
          HTML: 'HTML'
      }      
    }
  });
    
  /***
   * An event object for passing data to event handlers and letting them control propagation.
   * <p>This is pretty much identical to how W3C and jQuery implement events.</p>
   * @class EventData
   * @constructor
   */
  function EventData() {
    var isPropagationStopped = false;
    var isImmediatePropagationStopped = false;

    /***
     * Stops event from propagating up the DOM tree.
     * @method stopPropagation
     */
    this.stopPropagation = function () {
      isPropagationStopped = true;
    };
{'fraction_non_alphanumeric': 0.1188216686437327, 'fraction_numerical': 0.013641755634638196, 'mean_word_length': 1.7904026475455046, 'pattern_counts': {'":': 34, '<': 7, '<?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': '7505896', 'n_tokens_mistral': 1688, 'n_tokens_neox': 1581, 'n_words': 384}