<commit_before>export function baseUrl() {
  return (window.location.hostname === 'localhost') ?
    'http://' + location.hostname + ':3000' :   // testing
    'http://' + location.host;                  // deployed
}
<commit_msg>fix(constants): accommodate https in service requests<commit_after>export function baseUrl() {
  let location = window.location;
  return (location.hostname === 'localhost') ?
    `${location.protocol}//${location.hostname}:3000` :   // testing
    `${location.protocol}//${location.host}`;             // deployed
}

{'fraction_non_alphanumeric': 0.17184643510054845, 'fraction_numerical': 0.014625228519195612, 'mean_word_length': 3.183206106870229, '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': '1407968', 'n_tokens_mistral': 154, 'n_tokens_neox': 153, 'n_words': 31}