<commit_before>var integrationTests = require('./integration-test');
var injection = require('../services/injection.js');
var assert = require('assert');

exports.crudTest = function (test) {
    integrationTests(test, 'crud-1', function () {
        var crud = injection.inject('Crud').crudForEntityType('Foo');
        return crud.createEntity({foo: "bar"}).then(function (id) {
            return injection.inject('Crud').crudForEntityType('Bar').readEntity(id).then(function (entity) {
                assert.equal(entity.bar, "Some bar");
                assert.equal(entity.foo, "Another Some bar");
            })
        })
    })
};<commit_msg>Trying to figure out why travis build stalled: crud test revert<commit_after>var integrationTests = require('./integration-test');
var injection = require('../services/injection.js');
var assert = require('assert');

exports.crudTest = function (test) {
    integrationTests(test, 'crud-1', function () {
        var crud = injection.inject('Crud').crudForEntityType('Foo');
        return crud.createEntity({foo: "bar"}).then(function (id) {
            return crud.readEntity(id).then(function (entity) {
                assert.equal(entity.bar, "Some bar");
                assert.equal(entity.foo, "Another Some bar");
            })
        })
    })
};
{'fraction_non_alphanumeric': 0.16094584286803967, 'fraction_numerical': 0.0015255530129672007, 'mean_word_length': 3.087227414330218, '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': '4913187', 'n_tokens_mistral': 379, 'n_tokens_neox': 362, 'n_words': 74}