<commit_before>(function() {
  var module = angular.module('loom_media_service', ['ngSanitize']);
  var service_ = null;
  var mediaHandlers_ = null;
  var q_ = null;
  var noembedProviders_ = null;


  //ALERT: ANGULARJS WHITELIST IS BULL****. The regex objects you provide get altered in various ways by angular upon
  //creation of the whitelist. 1st it adds start and end anchor tokens to the regex, and then it ignores and flags you
  //may have set for regex. This means all regex must be valid without use of case insensitivity flag (which sucks).
  module.config(function($sceDelegateProvider) {
    $sceDelegateProvider.resourceUrlWhitelist([
      // Allow same origin resource loads.
      'self',<commit_msg>Adding sites to allowed whitelist.<commit_after>(function() {
  var module = angular.module('loom_media_service', ['ngSanitize']);
  var service_ = null;
  var mediaHandlers_ = null;
  var q_ = null;
  var noembedProviders_ = null;


  //ALERT: ANGULARJS WHITELIST IS BULL****. The regex objects you provide get altered in various ways by angular upon
  //creation of the whitelist. 1st it adds start and end anchor tokens to the regex, and then it ignores and flags you
  //may have set for regex. This means all regex must be valid without use of case insensitivity flag (which sucks).
  module.config(function($sceDelegateProvider) {
    $sceDelegateProvider.resourceUrlWhitelist([
      // Allow same origin resource loads.
      'self',
      new RegExp(/https?:\/\/.*\.flickr\.com\/photos\/.*/),
      new RegExp(/https?:\/\/flic\.kr\/p\/.*/),
      new RegExp(/https?:\/\/instagram\.com\/p\/.*/),
      new RegExp(/https?:\/\/instagr\.am\/p\/.*/),
      new RegExp(/https?:\/\/vine\.co\/v\/.*/),
      new RegExp(/https?:\/\/(?:www\.)?vimeo\.com\/.+/),
      new RegExp(/https?:\/\/((?:www\.)|(?:pic\.)?)twitter\.com\/.*/),
{'fraction_non_alphanumeric': 0.1508108108108108, 'fraction_numerical': 0.001081081081081081, 'mean_word_length': 3.1502242152466366, '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': '4130253', 'n_tokens_mistral': 592, 'n_tokens_neox': 563, 'n_words': 187}