<commit_before>using Machine.Specifications;
using SnakeBattleNet.Core;
using SnakeBattleNet.Core.Contract;

namespace SnakeBattleNet.Test.Core.FieldComparerTests
{
    [Subject(typeof(FieldComparer))]
    class When_call_DecidedDirections_with_predifined_chip_antother_tail : ComparerTestContext
    {
        Establish context = () =>
        {
            fighter = CreateDummyFighter(10, 9).AttachChips(FullGreyWithOneEnemyTail());
            var field = CreateFieldForFighters(new[] { fighter });
            comparer = CreateFieldComparer(field);
        };

        Because of = () =>
            result = comparer.DecidedDirections(fighter, new[] { Direction.East, Direction.West, Direction.North, Direction.South, });

        It should_return_move_on_that_row = () =>
            result.ShouldContainOnly(new[] { Direction.North });

        private static Direction[] result;
        private static Fighter fighter;
        private static FieldComparer comparer;
    }
}<commit_msg>Tests no comments<commit_after>using Machine.Specifications;
using SnakeBattleNet.Core;
using SnakeBattleNet.Core.Contract;

namespace SnakeBattleNet.Test.Core.FieldComparerTests
{
    [Subject(typeof(FieldComparer))]
    class When_call_DecidedDirections_with_predifined_chip_antother_tail : ComparerTestContext
    {
        Establish context = () =>
        {
            fighter = CreateDummyFighter(10, 8).Run(Direction.North).AttachChips(FullGreyWithOneEnemyTail());
            var enemy1 = CreateDummyFighter(10, 10);
            var enemy2 = CreateDummyFighter(11, 9).Run(Direction.North);
            enemies = new[] { enemy1, enemy2 };

            var field = CreateFieldForFighters(new[] { fighter, enemy1, enemy2 });
            comparer = CreateFieldComparer(field);
        };

        Because of = () =>
            result = comparer.DecidedDirections(fighter, comparer.PossibleDirections(fighter, enemies));

        It should_return_move_on_that_row = () =>
            result.ShouldContainOnly(Direction.North, Direction.South);

        private static Direction[] result;
        private static Fighter fighter;
        private static FieldComparer comparer;
        private static Fighter[] enemies;
    }
}
{'fraction_non_alphanumeric': 0.09536662168241115, 'fraction_numerical': 0.008547008547008548, 'mean_word_length': 3.1962264150943396, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '2659998', 'n_tokens_mistral': 654, 'n_tokens_neox': 625, 'n_words': 113}