<commit_before>function mobilify(url, origin) {
  if (url) {
    return url.replace(/https?:\/\/(?:np\.)?(?:www\.)?reddit.com/g, origin || '');
  }

  return url;
}

export default mobilify;<commit_msg>mobilify updates for the 2X branch<commit_after>function mobilify(url, origin) {
  if (url) {
    return url.replace(/https?:\/\/(?:np\.)?(?:www\.)?reddit\.com\//g, `${origin || ''}/`);
  }

  return url;
}

export default mobilify;
{'fraction_non_alphanumeric': 0.23271889400921658, 'fraction_numerical': 0.002304147465437788, 'mean_word_length': 3.627659574468085, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '7617492', 'n_tokens_mistral': 162, 'n_tokens_neox': 160, 'n_words': 30}