<commit_before>var vows = require('vows'),
    assert = require('assert'),
    nock = require('nock'),
    morale = require('../index.js');

require('./assert.js');

vows.describe("Configuration Tests").addBatch({
  "with no key": {
    topic: undefined,
    "with no subdomain": {
      topic: undefined,
      "configuring morale": assert.configurationShouldFail(morale),
    },
    "with a valid subdomain": {
      topic: "sub-domain",
      "configuring morale": assert.configurationShouldFail(morale),
    },
  },
  "with a null key": {
    topic: null,
    "with a valid subdomain": {
      topic: "sub-domain",
      "configuring morale": assert.configurationShouldFail(morale),
    },
  },
  "with an object key": {<commit_msg>Configuration Test does not use Nock<commit_after>var vows = require('vows'),
    assert = require('assert'),
    morale = require('../index.js');

require('./assert.js');

vows.describe("Configuration Tests").addBatch({
  "with no key": {
    topic: undefined,
    "with no subdomain": {
      topic: undefined,
      "configuring morale": assert.configurationShouldFail(morale),
    },
    "with a valid subdomain": {
      topic: "sub-domain",
      "configuring morale": assert.configurationShouldFail(morale),
    },
  },
  "with a null key": {
    topic: null,
    "with a valid subdomain": {
      topic: "sub-domain",
      "configuring morale": assert.configurationShouldFail(morale),
    },
  },
  "with an object key": {
{'fraction_non_alphanumeric': 0.15678254942058623, 'fraction_numerical': 0.0, 'mean_word_length': 3.255072463768116, 'pattern_counts': {'":': 18, '<': 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': '1975009', 'n_tokens_mistral': 449, 'n_tokens_neox': 440, 'n_words': 109}