<commit_before><commit_msg>fix json files<commit_after>import { getUnrelated, getRelatedToOther } from '../producers'

describe('producers', function () {

  describe('getUnrelated(producers)', function () {
    it('should return an array of unrelated producers', () => {
      const relatedProducer = {_id: 'relatedProducer', associatedTo: '1'}
      const unrelatedProducer = {_id: 'unrelatedProducer'}
      const producers = [relatedProducer, unrelatedProducer]

      expect(getUnrelated(producers)).to.eql([unrelatedProducer])
    })

    describe('getRelatedToOther(producers, organizationId)', () => {
      it('should return an array of producers related to others organizations', () => {
        const relatedToOtherProducer = {_id: 'relatedProducer', associatedTo: 42}
        const relatedProducer = {_id: 'relatedProducer', associatedTo: 1}
        const unrelatedProducer = {_id: 'unrelatedProducer'}
        const producers = [relatedProducer, unrelatedProducer]

        expect(getRelatedToOther(producers, 1)).to.eql([relatedToOtherProducer])
      })
    })
  })
})
{'fraction_non_alphanumeric': 0.1265004616805171, 'fraction_numerical': 0.0046168051708217915, 'mean_word_length': 4.366336633663367, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '5511325', 'n_tokens_mistral': 320, 'n_tokens_neox': 296, 'n_words': 67}