<commit_before>var url = require('url')
  , XRegExp = require('xregexp');

var tokenSplitRegex = XRegExp('[\\p{Pc}\\p{Pd}\\pZ]+')
  , tokenTrimBase = '(?![/])\\pP+'
  , tokenTrimStart = XRegExp('^' + tokenTrimBase)
  , tokenTrimEnd = XRegExp(tokenTrimBase + '$');

var bot;
module.exports.init = function(b) {
  bot = b;<commit_msg>Oops, URLs can have hyphens and underscores in them<commit_after>var url = require('url')
  , XRegExp = require('xregexp');

var tokenSplitRegex = XRegExp('(?![-_])[\\p{Pc}\\p{Pd}\\pZ]+')
  , tokenTrimBase = '(?![/])\\pP+'
  , tokenTrimStart = XRegExp('^' + tokenTrimBase)
  , tokenTrimEnd = XRegExp(tokenTrimBase + '$');

var bot;
module.exports.init = function(b) {
  bot = b;
{'fraction_non_alphanumeric': 0.21690140845070421, 'fraction_numerical': 0.0, 'mean_word_length': 4.5546875, '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': '3693163', 'n_tokens_mistral': 290, 'n_tokens_neox': 276, 'n_words': 49}