<commit_before>import axios from 'axios';

class WldApi {
  constructor() {
    if(!WldApi.instance) {
      // this.baseURL = 'http://wld-backend.herokuapp.com';
      this.baseURL = 'http://localhost:3001';
      this.token = localStorage.getItem('token');

      WldApi.instance = this;
    }

    return WldApi.instance;
  }

  setToken(token) {
    localStorage.setItem('token', token);
    this.token = token;<commit_msg>Switch api service to prod<commit_after>import axios from 'axios';

class WldApi {
  constructor() {
    if(!WldApi.instance) {
      this.baseURL = 'http://wld-backend.herokuapp.com';
      //this.baseURL = 'http://localhost:3001';
      this.token = localStorage.getItem('token');

      WldApi.instance = this;
    }

    return WldApi.instance;
  }

  setToken(token) {
    localStorage.setItem('token', token);
    this.token = token;
{'fraction_non_alphanumeric': 0.15011547344110854, 'fraction_numerical': 0.009237875288683603, 'mean_word_length': 3.013888888888889, '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': '1322468', 'n_tokens_mistral': 299, 'n_tokens_neox': 289, 'n_words': 49}