<commit_before>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SaltyBet_Desktop
{
	class MatchTracker
	{
		private string lastPlayer1;
		public string LastPlayer1 { get; }

		private string lastPlayer2;
		public string LastPlayer2 { get; }

		private int lastPotPlayer1;
		public int LastPotPlayer1 { get; }

		private int lastPotPlayer2;
		public int LastPotPlayer2 { get; }

		private string player1;
		public string Player1 { get; }
		
		private string player2;
		public string Player2 { get; }

		public MatchTracker()
		{
			lastPlayer1 = "";
			lastPlayer2 = "";
			lastPotPlayer1 = 0;
			lastPotPlayer2 = 0;

			player1 = "";
			player2 = "";
		}

		public bool IsNewMatch(string player1, string player2)
		{
			// Skip team matches
			if (player1.Contains("Team"))
				return false;

			// Set last cycle's players to last players. 
			this.lastPlayer1 = this.player1;
			this.lastPlayer2 = this.player2;

			// Get (potentially) new players
			this.player1 = player1;
			this.player2 = player2;

			// If there was no last player, this is probably the first match, return false. 
			if (lastPlayer1 == "")
				return false;

			// If there is a new player name, it's probably a new match
			if (lastPlayer1 != player1)
			{
				return true;
			}
			return false;
		}
	}
}
<commit_msg>Added a comment<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SaltyBet_Desktop
{
	class MatchTracker
	{
		private string lastPlayer1;
		public string LastPlayer1 { get; }

		private string lastPlayer2;
		public string LastPlayer2 { get; }

		private int lastPotPlayer1;
		public int LastPotPlayer1 { get; }

		private int lastPotPlayer2;
		public int LastPotPlayer2 { get; }

		private string player1;
		public string Player1 { get; }
		
		private string player2;
		public string Player2 { get; }

		public MatchTracker()
		{
			lastPlayer1 = "";
			lastPlayer2 = "";
			lastPotPlayer1 = 0;
			lastPotPlayer2 = 0;

			player1 = "";
			player2 = "";
		}

		public bool IsNewMatch(string player1, string player2)
		{
			// Skip team matches
			if (player1.Contains("Team"))
				return false;

			// Set last cycle's players to last players. 
			this.lastPlayer1 = this.player1;
			this.lastPlayer2 = this.player2;

			// Get (potentially) new players
			this.player1 = player1;
			this.player2 = player2;

			// If there was no last player, this is probably the first match, return false. 
			if (lastPlayer1 == "")
				return false;

			// If there is a new player name, it's probably a new match
			if (lastPlayer1 != player1)
			{
				return true;
			}

			// If all else fails, return false
			return false;
		}
	}
}

{'fraction_non_alphanumeric': 0.09293146752780768, 'fraction_numerical': 0.024398995335486187, 'mean_word_length': 3.064139941690962, 'pattern_counts': {'":': 0, '<': 3, '<?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': '341131', 'n_tokens_mistral': 1056, 'n_tokens_neox': 868, 'n_words': 278}