<commit_before>using System;
using System.Runtime.CompilerServices;

namespace HarmonyLibTests.Assets
{
	[Serializable]
	public class OriginalException : Exception
	{
		public OriginalException() { }
		public OriginalException(string message) : base(message) { }
		public OriginalException(string message, Exception innerException) : base(message, innerException) { }
		protected OriginalException(System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext)
		{
			throw new NotImplementedException();
		}
	}

	[Serializable]
	public class ReplacedException : Exception
	{
		public ReplacedException() { }
		public ReplacedException(string message) : base(message) { }
		public ReplacedException(string message, Exception innerException) : base(message, innerException) { }
		protected ReplacedException(System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext)
		{
			throw new NotImplementedException();
		}
	}

	public class NoThrowingVoidMethod
	{
		[MethodImpl(MethodImplOptions.NoInlining)]
		public void Method()
		{
			Console.WriteLine("Method");
		}
	}

	public class ThrowingVoidMethod
	{
		[MethodImpl(MethodImplOptions.NoInlining)]
		public void Method()
		{
			throw new OriginalException();
		}
	}

	public class NoThrowingStringReturningMethod
	{
		[MethodImpl(MethodImplOptions.NoInlining)]
		public string Method()
		{
			Console.WriteLine("Method");
			return "OriginalResult";
		}
	}

	public class ThrowingStringReturningMethod
	{
		[MethodImpl(MethodImplOptions.NoInlining)]
		public string Method()
		{
			if (this != null) // make compiler happy
				throw new OriginalException();
			return "OriginalResult";
		}
	}

	//

	public class EmptyFinalizer
	{
		public static bool finalized = false;

		public static void Finalizer()<commit_msg>Reverted back to not using conditional throw<commit_after>using System;
using System.Runtime.CompilerServices;

namespace HarmonyLibTests.Assets
{
	[Serializable]
	public class OriginalException : Exception
	{
		public OriginalException() { }
		public OriginalException(string message) : base(message) { }
		public OriginalException(string message, Exception innerException) : base(message, innerException) { }
		protected OriginalException(System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext)
		{
			throw new NotImplementedException();
		}
	}

	[Serializable]
	public class ReplacedException : Exception
	{
		public ReplacedException() { }
		public ReplacedException(string message) : base(message) { }
		public ReplacedException(string message, Exception innerException) : base(message, innerException) { }
		protected ReplacedException(System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext)
		{
			throw new NotImplementedException();
		}
	}

	public class NoThrowingVoidMethod
	{
		[MethodImpl(MethodImplOptions.NoInlining)]
		public void Method()
		{
			Console.WriteLine("Method");
		}
	}

	public class ThrowingVoidMethod
	{
		[MethodImpl(MethodImplOptions.NoInlining)]
		public void Method()
		{
			throw new OriginalException();
		}
	}

	public class NoThrowingStringReturningMethod
	{
		[MethodImpl(MethodImplOptions.NoInlining)]
		public string Method()
		{
			Console.WriteLine("Method");
			return "OriginalResult";
		}
	}

	public class ThrowingStringReturningMethod
	{
		[MethodImpl(MethodImplOptions.NoInlining)]
		public string Method()
		{
			throw new OriginalException();
#pragma warning disable CS0162
			return "OriginalResult";
#pragma warning restore CS0162
		}
	}

	//

	public class EmptyFinalizer
	{
		public static bool finalized = false;

		public static void Finalizer()
{'fraction_non_alphanumeric': 0.08605495075168482, 'fraction_numerical': 0.002073613271124935, 'mean_word_length': 5.254457050243112, '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': '525814', 'n_tokens_mistral': 1177, 'n_tokens_neox': 1056, 'n_words': 239}