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

namespace CSharpTutA
{
		class Program
		{

				static void Main(string[] args)
				{
					int num = 1;

					for (int i = 0; i < 10; i++)
					{
							System.Console.WriteLine(num);
							Thread.Sleep(1000);
							num++;
					}
					System.Console.WriteLine("Thread Ends");
					Console.ReadLine();
				}
		}
}<commit_msg>Thread[], lock, isAlive and priority<commit_after>using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.Threading;

namespace CSharpTutA
{
		class Program
		{

				static void Main(string[] args)
				{
					BankAcct acct = new BankAcct(10);
					Thread[] threads = new Thread[15];

					Thread.CurrentThread.Name = "main";

					for (int i = 0; i < 15; i++)
					{
							Thread t = new Thread(new ThreadStart(acct.IssueWithdraw));
							t.Name = i.ToString();
							threads[i] = t;
					}

					for (int i = 0; i < 15; i++)
					{
							System.Console.WriteLine("Thread {0} Alive : {1}", threads[i].Name, threads[i].IsAlive);

							threads[i].Start();

							System.Console.WriteLine("Thread {0} Alive : {1}", threads[i].Name, threads[i].IsAlive);
					}

					System.Console.WriteLine("Current Priority {0}", Thread.CurrentThread.Priority);

					System.Console.WriteLine("Thread {0} Ending", Thread.CurrentThread.Name);
					
					Console.ReadLine();
				}
		}
}

class BankAcct
{
	private Object acctLock = new object();
	double Balance {set; get;}		

	public BankAcct(double bal)
	{
			Balance = bal;
	}

	public double Withdraw(double amt)
	{
		if ((Balance - amt) < 0)
		{
				System.Console.WriteLine($"Sorrt ${Balance} in Account");
				return Balance;
		}
		lock(acctLock)
		{
			if (Balance >= amt)
			{
					System.Console.WriteLine("Removed {0} and {1} left in Account", amt, (Balance - amt));
					Balance -= amt;
			}
			return Balance;
		}	
	}
	public void IssueWithdraw()
	{
		Withdraw(1);
	}
}
{'fraction_non_alphanumeric': 0.14250493096646943, 'fraction_numerical': 0.013806706114398421, 'mean_word_length': 2.806754221388368, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 4, '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': '2032512', 'n_tokens_mistral': 895, 'n_tokens_neox': 683, 'n_words': 163}