<commit_before>var _ = require('lodash');

global.Backbone = require('backbone');
global.Backbone.ajax = require('najax');

var assert = require('assert');
var API = require('../');

describe('hashware-backbone-client', function () {
  describe('#create', function () {
    this.timeout(60 * 1000);

    before(function (done) {
      API.create('http://hashware-api.herokuapp.com/api/v1/backbonemodel')
        .then(function (api) {<commit_msg>connect to localhost for testing<commit_after>var _ = require('lodash');

global.Backbone = require('backbone');
global.Backbone.ajax = require('najax');

var assert = require('assert');
var API = require('../');
var HASHWARE_BASEURL = 'http://localhost:1337';
var HASHWARE_BACKBONEMODELS_URL = HASHWARE_BASEURL + '/api/v1/backbonemodel';

describe('hashware-backbone-client', function () {
  describe('#create', function () {
    this.timeout(60 * 1000);

    before(function (done) {
      API.create(HASHWARE_BACKBONEMODELS_URL)
        .then(function (api) {
{'fraction_non_alphanumeric': 0.17162698412698413, 'fraction_numerical': 0.017857142857142856, 'mean_word_length': 4.732954545454546, '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': '7435346', 'n_tokens_mistral': 344, 'n_tokens_neox': 326, 'n_words': 57}