<commit_before>﻿using System;
using System.Collections.Generic;
using System.Linq;

namespace Ships_Common {
    
    public class Ship {

		public static class Parts {
			public static char[,] PART_EXPLODED = {{'\\', '#', '/'}, {'@', '#', '@'}, {'/', '@', '\\'}};
		}
		
        public static Ship SHIP_SMALL = new Ship(default(Vector2), new[] { new Vector2(0, 0) });
        public static Ship SHIP_NORMAL = new Ship(default(Vector2), new[] { new Vector2(0, 0), new Vector2(0, -1) });
        public static Ship SHIP_BIG = new Ship(default(Vector2), new[] { new Vector2(0, 1), new Vector2(0, 0), new Vector2(0, -1) });
        public static Ship SHIP_PLANE = new Ship(default(Vector2), new[] { new Vector2(0, 1), new Vector2(0, 0), new Vector2(0, -1), new Vector2(1, 0) });
        
        public Vector2[] shape { get; private set; }

	    public bool[] hits { get; private set; }

	    public Vector2 position;

        protected Ship(Vector2 position, Vector2[] shape) {
            this.position = position;
            this.shape = shape;
	        hits = new bool[this.shape.Length];
        }

        public bool isHit(Vector2 pos) {
	        bool hit = checkShape(pos);<commit_msg>Change default ships<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;

namespace Ships_Common {
    
    public class Ship {

		public static class Parts {
			public static char[,] PART_EXPLODED = {{'\\', '#', '/'}, {'@', '#', '@'}, {'/', '@', '\\'}};
		}

	    public static Dictionary<string, Ship> defaultShips = new Dictionary<string, Ship> {
		    {"SHIP_SMALL", new Ship(default(Vector2), new[] {new Vector2()})},
		    {"SHIP_NORMAL", new Ship(default(Vector2), new[] {new Vector2(), new Vector2(0, -1)})},
		    {"SHIP_BIG", new Ship(default(Vector2), new[] {new Vector2(0, 1), new Vector2(), new Vector2(0, -1)})},
		    {"SHIP_HUGE", new Ship(default(Vector2), new[] {new Vector2(0, 1), new Vector2(), new Vector2(0, -1), new Vector2(0, -2)})}
	    };
        
        public Vector2[] shape { get; private set; }

	    public bool[] hits { get; private set; }

	    public Vector2 position;

        protected Ship(Vector2 position, Vector2[] shape) {
            this.position = position;
            this.shape = shape;
	        hits = new bool[this.shape.Length];
        }

        public bool isHit(Vector2 pos) {
	        bool hit = checkShape(pos);
{'fraction_non_alphanumeric': 0.16485355648535566, 'fraction_numerical': 0.029288702928870293, 'mean_word_length': 2.900489396411093, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '72031', 'n_tokens_mistral': 801, 'n_tokens_neox': 752, 'n_words': 215}