<commit_before>import chai from 'chai'
import { color, isColor, isColorString } from 'color'

const should = chai.should()

export default () =>
  describe('color', () => {
    describe('color', () => {
      it('should default to black when no arguments are passed in', () => {
        color().rgb().should.eql([0, 0, 0, 1])
      })

      it('should create an object from a string', () => {
        color('rgb(77,255,88)').rgb().should.eql([77, 255, 88, 1])
      })

      it('should create an object from an array', () => {
        color(55, 37, 199).rgb().should.eql([55, 37, 199, 1])
      })

      it('should create an object from 3 arguments', () => {
        color(10, 20, 35).rgb().should.eql([10, 20, 35, 1])
      })

      it('should create an object from 4 arguments', () => {
        color(55, 72, 99, 0.6).rgb().should.eql([55, 72, 99, 0.6])
      })

      it('set the color based on a hex string', () => {
        color('#7BBE31').rgb().should.eql([123, 190, 49, 1])
      })

      it('set the color based on a shortened hex string', () => {
        color('#ABC').rgb().should.eql([170, 187, 204, 1 ])
      })

      it('set the color based on an rgb string', () => {
        color('rgb(199,1,37)').rgb().should.eql([199, 1, 37, 1])
      })

      it('set the color based on an rgba string', () => {
        color('rgba(199,1,37, 0.7)').rgb().should.eql([199, 1, 37, 0.7])
      })
<commit_msg>Fix formatting<commit_after>import chai from 'chai'
import { color, isColor, isColorString } from 'color'

const should = chai.should()

export default () =>
  describe('color', () => {
    describe('color', () => {
      it('should default to black when no arguments are passed in', () => {
        color().rgb().should.eql([0, 0, 0, 1])
      })

      it('should create an object from a string', () => {
        color('rgb(77,255,88)').rgb().should.eql([77, 255, 88, 1])
      })

      it('should create an object from an array', () => {
        color(55, 37, 199).rgb().should.eql([55, 37, 199, 1])
      })

      it('should create an object from 3 arguments', () => {
        color(10, 20, 35).rgb().should.eql([10, 20, 35, 1])
      })

      it('should create an object from 4 arguments', () => {
        color(55, 72, 99, 0.6).rgb().should.eql([55, 72, 99, 0.6])
      })

      it('set the color based on a hex string', () => {
        color('#7BBE31').rgb().should.eql([ 123, 190, 49, 1 ])
      })

      it('set the color based on a shortened hex string', () => {
        color('#ABC').rgb().should.eql([ 170, 187, 204, 1 ])
      })

      it('set the color based on an rgb string', () => {
        color('rgb(199,1,37)').rgb().should.eql([ 199, 1, 37, 1 ])
      })

      it('set the color based on an rgba string', () => {
        color('rgba(199,1,37, 0.7)').rgb().should.eql([ 199, 1, 37, 0.7 ])
      })

{'fraction_non_alphanumeric': 0.20971147079521463, 'fraction_numerical': 0.08163265306122448, 'mean_word_length': 2.4460606060606063, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 27, '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': '771745', 'n_tokens_mistral': 1162, 'n_tokens_neox': 952, 'n_words': 269}