<commit_before>import chai from 'chai'
var assert = chai.assert

import * as individual from '../lib/metis/individual.js'

describe('Individual object', () => {
    it('Basic creation', () => {
        let ind = new individual.Individual()
        assert.isDefined(ind.id)
        assert.equal(ind.alive, true)
    })
    it('generate_basic_individual', () => {
        let ind = new individual.generate_basic_individual()
        assert.isDefined(ind.id)
    })
    it('assign_random_sex', () => {
        let ind = new individual.generate_basic_individual()
        individual.assign_random_sex(ind)
        assert.isDefined(ind.is_female)
    })
})<commit_msg>test species and cycle born<commit_after>import chai from 'chai'
var assert = chai.assert

import * as individual from '../lib/metis/individual.js'
import * as utils from './utils.js'

describe('Individual object', () => {
    it('Basic creation', () => {
        let ind = new individual.Individual()
        assert.isDefined(ind.id)
        assert.equal(ind.alive, true)
    })
    it('generate_basic_individual', () => {
        let ind = new individual.generate_basic_individual(utils.empty_species, 5)
        assert.equal(ind.cycle_born, 5)
        assert.isDefined(ind.id)
    })
    it('assign_random_sex', () => {
        let ind = new individual.generate_basic_individual()
        individual.assign_random_sex(ind)
        assert.isDefined(ind.is_female)
    })
})
{'fraction_non_alphanumeric': 0.13699582753824757, 'fraction_numerical': 0.0013908205841446453, 'mean_word_length': 3.0195530726256985, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '71489', 'n_tokens_mistral': 467, 'n_tokens_neox': 436, 'n_words': 84}