<commit_before>using System;
using System.Text.RegularExpressions;

public class REPL
{
    private const string Commands = @"help|end|mv|quit|print|capture|feed|resources|undo|gather";
    private static readonly Regex Command = new Regex(@"(" + Commands + @")");
    private static readonly Regex Move = new Regex(@"mv (\d+) (\d+),(\d+)");
    private static readonly Regex Capture = new Regex(@"capture (\d+)");
    private static readonly Regex Feed = new Regex(@"feed (\d+) (\d+)");
    private static readonly Regex Undo = new Regex(@"undo (\d+)");
    private static readonly Regex Gather = new Regex(@"gather (\d+)");
    private readonly Game game;
    private readonly Window window;

    public REPL(Game game, Window window)
    {
        this.game = game;
        this.window = window;
    }

    public void HelpCommand()
    {
        Console.WriteLine("Help => Prints this help message");
        Console.WriteLine("End => Ends the current player's turn, advancing to the next player");
        Console.WriteLine("mv ArmyId TargetX,TargetY => Moves the army ArmyId owned by the player to TargetX,TargetY iff the move is legal");
        Console.WriteLine("capture ArmyId Changes territory under armyId's control to the current player");
        Console.WriteLine("print => Prints the current state of the world to the terminal");
        Console.WriteLine("feed id => Feeds an army from the player's food stockpile to heal it");
        Console.WriteLine("undo id => Moves an army back to its original position for the turn");
        Console.WriteLine("gather id => Actively gathers resources under an army (consuming its turn)");
        Console.WriteLine("quit => exits the REPL and closes out the game");
    }
<commit_msg>typos in help string<commit_after>using System;
using System.Text.RegularExpressions;

public class REPL
{
    private const string Commands = @"help|end|mv|quit|print|capture|feed|resources|undo|gather";
    private static readonly Regex Command = new Regex(@"(" + Commands + @")");
    private static readonly Regex Move = new Regex(@"mv (\d+) (\d+),(\d+)");
    private static readonly Regex Capture = new Regex(@"capture (\d+)");
    private static readonly Regex Feed = new Regex(@"feed (\d+) (\d+)");
    private static readonly Regex Undo = new Regex(@"undo (\d+)");
    private static readonly Regex Gather = new Regex(@"gather (\d+)");
    private readonly Game game;
    private readonly Window window;

    public REPL(Game game, Window window)
    {
        this.game = game;
        this.window = window;
    }

    public void HelpCommand()
    {
        Console.WriteLine("help => Prints this help message");
        Console.WriteLine("end => Ends the current player's turn, advancing to the next player");
        Console.WriteLine("mv ArmyId TargetX,TargetY => Moves the army ArmyId owned by the player to TargetX,TargetY iff the move is legal");
        Console.WriteLine("capture ArmyId Changes territory under armyId's control to the current player");
        Console.WriteLine("print => Prints the current state of the world to the terminal");
        Console.WriteLine("feed id => Feeds an army from the player's food stockpile to heal it");
        Console.WriteLine("undo id => Moves an army back to its original position for the turn");
        Console.WriteLine("gather id => Actively gathers resources under an army (consuming its turn)");
        Console.WriteLine("quit => exits the REPL and closes out the game");
    }

{'fraction_non_alphanumeric': 0.1139421700543945, 'fraction_numerical': 0.0, 'mean_word_length': 3.5613577023498695, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 19, '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': '4746990', 'n_tokens_mistral': 941, 'n_tokens_neox': 900, 'n_words': 371}