<commit_before>"use strict";

let EventManager = require("colibre/src/events").EventManager;
let http = require("http");
let https = require("https");
let urllib = require("url");

class Download {
  static parseUrl(url) {
    if (url.indexOf("://") == -1) {
      url = "http://" + url;<commit_msg>Use Node.js native EventEmitter to make library 'portable'<commit_after>"use strict";

let EventManager = require("events");
let http = require("http");
let https = require("https");
let urllib = require("url");

class Download {
  static parseUrl(url) {
    if (url.indexOf("://") == -1) {
      url = "http://" + url;
{'fraction_non_alphanumeric': 0.19093851132686085, 'fraction_numerical': 0.003236245954692557, 'mean_word_length': 4.245762711864407, 'pattern_counts': {'":': 2, '<': 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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6734475', 'n_tokens_mistral': 197, 'n_tokens_neox': 196, 'n_words': 54}