<commit_before>/*jshint node: true */
'use strict';

var api = {
  url: 'http://localhost:3000',

  ajax: function (config, cb) {
    $.ajax(config).done(function(data, textStatus, jqxhr) {
      cb(null, data);
    }).fail(function(jqxhr, status, error) {
      cb({jqxhr: jqxhr, status: status, error: error});
    });
  },<commit_msg>deployed back-end<commit_after>/*jshint node: true */
'use strict';

var api = {
//  url: 'http://localhost:3000', // development
  url: 'https://enigmatic-thicket-1314.herokuapp.com/', // deployment

  ajax: function (config, cb) {
    $.ajax(config).done(function(data, textStatus, jqxhr) {
      cb(null, data);
    }).fail(function(jqxhr, status, error) {
      cb({jqxhr: jqxhr, status: status, error: error});
    });
  },
{'fraction_non_alphanumeric': 0.19477124183006536, 'fraction_numerical': 0.01568627450980392, 'mean_word_length': 3.5058823529411764, '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': '5337782', 'n_tokens_mistral': 294, 'n_tokens_neox': 277, 'n_words': 59}