<commit_before>/*!
 * Javascript plugin that will tell how far 
 * a thing has been vertically scrolld.
 * 
 * Author: <NAME>
 * Git: https://github.com/hallojoe/scrolld
 * License: MIT
 */

(function (root, factory) {
  var pluginName = 'Scrolld';

  if (typeof define === 'function' && define.amd) {
      define([], factory(pluginName));
  } else if (typeof exports === 'object') {
      module.exports = factory(pluginName);
  } else {
      root[pluginName] = factory(pluginName);
  }
}(this, function (pluginName) {
  'use strict';
 
  /**
   * Scrolld Object
   * @constructor
   */
  function Scrolld(element) {
      this.element = !!element ? element : document;
      console.log('Scrolld inititalized', this.element);
  }

  // compute element scroll factor
  var getFactor = function(element) {
    var result = 100;
    if(element.nodeType === 9) { // is #document <commit_msg>Remove console.log in constructor<commit_after>/*!
 * Javascript plugin that will tell how far 
 * a thing has been vertically scrolld.
 * 
 * Author: <NAME>
 * Git: https://github.com/hallojoe/scrolld
 * License: MIT
 */

(function (root, factory) {
  var pluginName = 'Scrolld';

  if (typeof define === 'function' && define.amd) {
      define([], factory(pluginName));
  } else if (typeof exports === 'object') {
      module.exports = factory(pluginName);
  } else {
      root[pluginName] = factory(pluginName);
  }
}(this, function (pluginName) {
  'use strict';
 
  /**
   * Scrolld Object
   * @constructor
   */
  function Scrolld(element) {
      this.element = !!element ? element : document;
  }

  // compute element scroll factor
  var getFactor = function(element) {
    var result = 100;
    if(element.nodeType === 9) { // is #document 
{'fraction_non_alphanumeric': 0.14613180515759314, 'fraction_numerical': 0.004584527220630372, 'mean_word_length': 3.137440758293839, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6109240', 'n_tokens_mistral': 560, 'n_tokens_neox': 533, 'n_words': 148}