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

namespace kerbalgit.GameObjects {
	public class Vessel {
		public enum FlighState {
			Orbiting,
			Prelaunch,
			Landed,
			Splashed,
			Sub_Orbital,
			Flying,
			Escaping
		}

		public readonly Node Node;
		public readonly List<Part> parts;
		public readonly Orbit Orbit;

		public Vessel(Node node) {
			if (node.Name != "vessel") {
				throw new InvalidOperationException("Node is not a vessel.");
			}

			this.Node = node;
			this.parts = new List<Part>();
			this.Orbit = new Orbit(node.Get("orbit") as Node);
		}

		public string Id {
			get {
				return Node.GetValue("pid");
			}
		}

		public string Name {
			get {
				return Node.GetValue("name");
			}
		}

		public override int GetHashCode() {
			return Id.GetHashCode();
		}

		public override bool Equals(object obj) {
			return obj is Vessel && (obj as Vessel).Id == Id;
		}

		public string StatusReport {
			get {
				var result = string.Empty;
				result += "Name: " + Name + "\n";
				result += "Flightstate: " + FlightStateValue.ToString() + "\n";
				result += "Orbit: " + Orbit.GetName() + "\n";

				return result;
			}
		}
<commit_msg>Capitalize first letter of vessel name<commit_after>﻿using kerbalgit.Tree;
using System;
using System.Collections.Generic;
using System.Linq;

namespace kerbalgit.GameObjects {
	public class Vessel {
		public enum FlighState {
			Orbiting,
			Prelaunch,
			Landed,
			Splashed,
			Sub_Orbital,
			Flying,
			Escaping
		}

		public readonly Node Node;
		public readonly List<Part> parts;
		public readonly Orbit Orbit;

		public Vessel(Node node) {
			if (node.Name != "vessel") {
				throw new InvalidOperationException("Node is not a vessel.");
			}

			this.Node = node;
			this.parts = new List<Part>();
			this.Orbit = new Orbit(node.Get("orbit") as Node);
		}

		public string Id {
			get {
				return Node.GetValue("pid");
			}
		}

		public string Name {
			get {
				return Node.GetValue("name").Substring(0, 1).ToUpper() + Node.GetValue("name").Substring(1);
			}
		}

		public override int GetHashCode() {
			return Id.GetHashCode();
		}

		public override bool Equals(object obj) {
			return obj is Vessel && (obj as Vessel).Id == Id;
		}

		public string StatusReport {
			get {
				var result = string.Empty;
				result += "Name: " + Name + "\n";
				result += "Flightstate: " + FlightStateValue.ToString() + "\n";
				result += "Orbit: " + Orbit.GetName() + "\n";

				return result;
			}
		}

{'fraction_non_alphanumeric': 0.12826603325415678, 'fraction_numerical': 0.0011876484560570072, 'mean_word_length': 2.9795275590551182, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '2545555', 'n_tokens_mistral': 1034, 'n_tokens_neox': 838, 'n_words': 227}