<commit_before>import {List} from 'immutable';
import {expect} from 'chai';

import {createPlayer} from '../src/core';

describe('createPlayer', () => {
        it('sets name properly', () => {
            const name = 'someName';
            const player = createPlayer(name);

            expect(player.name).to.equal(name);
        });

        it('sets a non-empty ID', () => {
            const player = createPlayer('someName');

            expect(player.id).to.not.be.empty;
        });

        it('initializes an empty hand', () => {
            const player = createPlayer('someName');

            expect(player.hand).to.equal(List.of());
        });
    }
);<commit_msg>Simplify assertion from to.not.be.empty to to.exist<commit_after>import {List} from 'immutable';
import {expect} from 'chai';

import {createPlayer} from '../src/core';

describe('createPlayer', () => {
        it('sets name properly', () => {
            const name = 'someName';
            const player = createPlayer(name);

            expect(player.name).to.equal(name);
        });

        it('sets a non-empty ID', () => {
            const player = createPlayer('someName');

            expect(player.id).to.exist;
        });

        it('initializes an empty hand', () => {
            const player = createPlayer('someName');

            expect(player.hand).to.equal(List.of());
        });
    }
);

{'fraction_non_alphanumeric': 0.17024320457796852, 'fraction_numerical': 0.0, 'mean_word_length': 2.1297539149888145, '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': '304225', 'n_tokens_mistral': 404, 'n_tokens_neox': 390, 'n_words': 83}