<commit_before>"use strict";

var util = require("./utils");
var used = [];

exports.version = "0.2.4";

exports.use = function(fn) {
  /* istanbul ignore else */
  if (used.indexOf(fn) === -1) {
    fn(this, util);
    used.push(fn);
  }
  return this;
};

exports.use(require("./canvas"));<commit_msg>fix window exports<commit_after>"use strict";

var util = require("./utils");
var used = [];

var gretro = {};

gretro.version = "0.2.4";

gretro.use = function(fn) {
  /* istanbul ignore else */
  if (used.indexOf(fn) === -1) {
    fn(gretro, util);
    used.push(fn);
  }
  return gretro;
};

gretro.use(require("./canvas"));

/* istanbul ignore next */
if (typeof global.window !== "undefined") {
  global.window.gretro = gretro;
}

module.exports = gretro;
{'fraction_non_alphanumeric': 0.20576671035386632, 'fraction_numerical': 0.010484927916120577, 'mean_word_length': 3.441860465116279, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3655698', 'n_tokens_mistral': 290, 'n_tokens_neox': 289, 'n_words': 60}