<commit_before>var test = require('tape');
var player = require('./player');

test('first test', function (t) {
    t.plan(4);

    var self = '11011011011111111111111111111111';
    var enemy = '00011111111111111111111111111000';

    var matrixEmpty = [
        0, 0, 0,
        0, 1, 0,
        0, 0, 0
    ];

    t.deepEqual([5, 5, 5, self], player(matrixEmpty));

    var matrixSelf = [
        self, self, self,
        self, 1,    self,
        self, self, self
    ];

    t.deepEqual([0, 0, 0, self], player(matrixSelf));

    var matrixEnemy = [
        0,  enemy,  0,
        0,  1,      0,
        0,  0,      0
    ];

    t.deepEqual([1, 1, 1, self], player(matrixEnemy));

    var matrixEnemyRest = [
        self,   self,   enemy,
        0,      1,      self,
        0,      0,      0
    ];

    t.deepEqual([3, 3, 3, self], player(matrixEnemyRest));
});<commit_msg>covers left enemy<commit_after>var test = require('tape');
var player = require('./player');

test('first test', function (t) {
    t.plan(5);

    var self = '11011011011111111111111111111111';
    var enemy = '00011111111111111111111111111000';

    var matrixEmpty = [
        0, 0, 0,
        0, 1, 0,
        0, 0, 0
    ];

    t.deepEqual([5, 5, 5, self], player(matrixEmpty));

    var matrixSelf = [
        self, self, self,
        self, 1,    self,
        self, self, self
    ];

    t.deepEqual([0, 0, 0, self], player(matrixSelf));

    var matrixEnemy = [
        0,  enemy,  0,
        0,  1,      0,
        0,  0,      0
    ];

    t.deepEqual([1, 1, 1, self], player(matrixEnemy));

    var matrixRestLeftFree = [
        self,   self,   enemy,
        0,      1,      self,
        0,      0,      0
    ];

    t.deepEqual([3, 3, 3, self], player(matrixRestLeftFree));

    var matrixRestLeftEnemy = [
        self,   self,   enemy,
        enemy,  1,      self,
        0,      0,      0
    ];

    t.deepEqual([3, 3, 3, self], player(matrixRestLeftEnemy));
});
{'fraction_non_alphanumeric': 0.14901165737455652, 'fraction_numerical': 0.10491637100861632, 'mean_word_length': 1.8, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 4, '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': '1801512', 'n_tokens_mistral': 831, 'n_tokens_neox': 680, 'n_words': 180}