<commit_before>// Global service object
var apiKeyService = {};

(function () {
  var LIVE_KEYS = {
    apiExplore: '<KEY>',
    widgets: '5QGCEXAsJowiCI4n1uAwMlCGAcSNAEmG'
  };

  var STAGING_KEYS = {
    apiExplore: '<KEY>',
    widgets: '<KEY>'
  };

  var LOCAL_KEYS = {
    apiExplore: '<KEY>',
    widgets: '<KEY>'
  };

  var stagingPattern = /(ticketmaster-api-staging.github.io)+/ig;
  var livePattern = /(developer.ticketmaster.com)+/ig;
  var host = window.location.host;
  var tmApiKeys = LOCAL_KEYS;

  if(livePattern.test(host)){
    tmApiKeys = LIVE_KEYS;
  }else if(stagingPattern.test(host)){
    tmApiKeys = STAGING_KEYS;
  }

  apiKeyService.getApiKeys = function () {
    return tmApiKeys;
  };<commit_msg>Temporary hotfix for unable testing on staging<commit_after>// Global service object
var apiKeyService = {};

(function () {
  var LIVE_KEYS = {
    apiExplore: '<KEY>',
    widgets: '5QGCEXAsJowiCI4n1uAwMlCGAcSNAEmG'
  };

  var STAGING_KEYS = {
    apiExplore: '<KEY>',
    widgets: '<KEY>'
  };

  var LOCAL_KEYS = {
    apiExplore: '<KEY>9GcjHfhygRBRU3RvrL',
    widgets: 'OmayHcE8b9GK5nHijxVG3gC5mrv5NLZV'
  };

  var stagingPattern = /(ticketmaster-api-staging.github.io)+/ig;
  var livePattern = /(developer.ticketmaster.com)+/ig;
  var host = window.location.host;
  var tmApiKeys = LOCAL_KEYS;

  if(livePattern.test(host)){
    tmApiKeys = LIVE_KEYS;
  }else if(stagingPattern.test(host)){
    // FIXME: Temporary solution for unlock testing on staging instance. Revert before release !!!
    // tmApiKeys = STAGING_KEYS;
    tmApiKeys = LIVE_KEYS;
  }

  apiKeyService.getApiKeys = function () {
    return tmApiKeys;
  };
{'fraction_non_alphanumeric': 0.13562386980108498, 'fraction_numerical': 0.008438818565400843, 'mean_word_length': 3.636871508379888, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 12, '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': '2540883', 'n_tokens_mistral': 667, 'n_tokens_neox': 647, 'n_words': 116}