<commit_before>﻿using System;
using System.Text;
using SpaceTradingGame.Engine;
using OpenTK.Graphics;

namespace SpaceTradingGame.Game.Factories
{
    public static class FactionFactory
    {
        //Auto increments to set unique faction colors
        private static int _colorPointer = 0;

        public static Faction GenerateRandomFaction()
        {
            StringBuilder name = new StringBuilder();
            name.Append(Names[RNG.Next(0, Names.Length)]);

            if (RNG.Next(0, 100) < 50)
            {
                name.Append(" and ");
                name.Append(Names[RNG.Next(0, Names.Length)]);
            }
            else
            {
                name.Append(" ");
                name.Append(Titles[RNG.Next(0, Titles.Length)]);
            }

            return new Faction(name.ToString()) { Capital = RNG.Next(75000, 400000), RegionColor = FactionColors[_colorPointer++] };
        }

        private static string[] Names = {
            "Barry", "Whitmore", "Fisher", "Comey", "Anderson", "Sun", "Kim", "Marchessa",
            "Hixus", "Warden", "Nantucket", "Knipplemeir", "Winchester", "Harden", "Blant",
            "Newport", "Koch", "Comcast", "New Harrier", "New Terran", "Baltic", "Horizon"
        };
        private static string[] Titles = {
            "Industries", "Inc.", "Shipping", "and Sons", "Company", "Trading", "Exports"
        };
        private static Color4[] FactionColors = {
            Color4.Red,
            Color4.Green,
            Color4.Blue, 
            Color4.Yellow,
            Color4.Orange,
            Color4.Purple,
            Color4.Cyan, 
            Color4.Brown,
            Color4.PeachPuff,
            Color4.ForestGreen,
        };
    }
}<commit_msg>Single most important commit for this entire project.<commit_after>﻿using System;
using System.Text;
using SpaceTradingGame.Engine;
using OpenTK.Graphics;

namespace SpaceTradingGame.Game.Factories
{
    public static class FactionFactory
    {
        //Auto increments to set unique faction colors
        private static int _colorPointer = 0;

        public static Faction GenerateRandomFaction()
        {
            StringBuilder name = new StringBuilder();
            name.Append(Names[RNG.Next(0, Names.Length)]);

            if (RNG.Next(0, 100) < 50)
            {
                name.Append(" and ");
                name.Append(Names[RNG.Next(0, Names.Length)]);
            }
            else
            {
                name.Append(" ");
                name.Append(Titles[RNG.Next(0, Titles.Length)]);
            }

            return new Faction(name.ToString()) { Capital = RNG.Next(75000, 400000), RegionColor = FactionColors[_colorPointer++] };
        }

        private static string[] Names = {
            "Barry", "Whitmore", "Fisher", "Comey", "Anderson", "Sun", "Kim", "Marchessa",
            "Hixus", "Warden", "Nantucket", "Knipplemeir", "Winchester", "Harden", "Blant",
            "Newport", "Koch", "Comcast", "New Harrier", "New Terran", "Baltic", "Horizon"
        };
        private static string[] Titles = {
            "Industries", "Inc", "Shipping", "and Sons", "Company", "Trading", "Exports"
        };
        private static Color4[] FactionColors = {
            Color4.Red,
            Color4.Green,
            Color4.Blue, 
            Color4.Yellow,
            Color4.Orange,
            Color4.Purple,
            Color4.Cyan, 
            Color4.Brown,
            Color4.PeachPuff,
            Color4.ForestGreen,
        };
    }
}
{'fraction_non_alphanumeric': 0.12870448772226925, 'fraction_numerical': 0.018063787750493932, 'mean_word_length': 1.8580645161290323, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '7551326', 'n_tokens_mistral': 1086, 'n_tokens_neox': 1018, 'n_words': 227}