<commit_before>//
// Copyright (c) 2017 DrSmugleaf
//

"use strict"
const expect = require("chai").expect

describe("Color", function() {
  describe("add", function() {
    const color = "#" + ("000000" + Math.random().toString(16).slice(2, 8).toUpperCase()).slice(-6)
    it("should return a discord reply with the color that has been set", function() {
      return global.channel.sendMessage(`!!color ${color}`).then((initialMsg) => {
        const command = global.client.dispatcher.parseMessage(initialMsg)
        command.run()
<commit_msg>Added removing name color before and after !color unit test<commit_after>//
// Copyright (c) 2017 DrSmugleaf
//

"use strict"
const expect = require("chai").expect

describe("Color", function() {

  before(function() {
    return global.channel.sendMessage("!!color").then((initialMsg) => {
      const command = global.client.dispatcher.parseMessage(initialMsg)
      command.run()
    })
  })

  after(function() {
    return global.channel.sendMessage("!!color").then((initialMsg) => {
      const command = global.client.dispatcher.parseMessage(initialMsg)
      command.run()
    })
  })

  describe("add", function() {
    const color = "#" + ("000000" + Math.random().toString(16).slice(2, 8).toUpperCase()).slice(-6)

    it("should return a discord reply with the color that has been set", function() {
      return global.channel.sendMessage(`!!color ${color}`).then((initialMsg) => {
        const command = global.client.dispatcher.parseMessage(initialMsg)
        command.run()

{'fraction_non_alphanumeric': 0.1646063760572544, 'fraction_numerical': 0.01951854261548471, 'mean_word_length': 3.8980891719745223, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '4304163', 'n_tokens_mistral': 471, 'n_tokens_neox': 442, 'n_words': 101}