<commit_before>/*
  eslint
  no-unused-vars: 0
  no-undef: 0
*/

function callApi(endpoint, authenticated=false, data={}) {
  let BASE_URL = 'http://localhost:3000';
  let token = localStorage.getItem('id_token') || {};
  if(__NODE_ENV__ === 'production'){
    BASE_URL = 'https://poststream.herokuapp.com';
  }

  let config = {};
  const {method, body, headers} = data;
<commit_msg>changed baseURL to fight the CORs issues on mobile<commit_after>/*
  eslint
  no-unused-vars: 0
  no-undef: 0
*/

function callApi(endpoint, authenticated=false, data={}) {
  let BASE_URL = 'http://localhost:3000';
  let token = localStorage.getItem('id_token') || {};
  if(__NODE_ENV__ === 'production'){
    BASE_URL = 'http://poststream.herokuapp.com';
  }

  let config = {};
  const {method, body, headers} = data;

{'fraction_non_alphanumeric': 0.1691542288557214, 'fraction_numerical': 0.014925373134328358, 'mean_word_length': 4.062893081761007, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '1163700', 'n_tokens_mistral': 294, 'n_tokens_neox': 280, 'n_words': 62}