<commit_before>﻿using System.Collections.Generic;
using System.Linq;
using Tgstation.Server.Host.Components.Events;

namespace Tgstation.Server.Host.Components.Interop.Topic
{
	/// <summary>
	/// Data structure for <see cref="TopicCommandType.EventNotification"/> requests.
	/// </summary>
	sealed class EventNotification
	{
		/// <summary>
		/// The <see cref="EventType"/> triggered.
		/// </summary>
		public EventType Type { get; }

		/// <summary>
		/// The set of parameters.
		/// </summary>
		public IReadOnlyCollection<object> Parameters { get; }

		/// <summary>
		/// Initializes a new instance of the <see cref="EventNotification"/> <see langword="class"/>.
		/// </summary>
		/// <param name="eventType">The value of <see cref="Type"/>.</param>
		/// <param name="parameters">The <see cref="IEnumerable{T}"/> that forms the value of <see cref="Parameters"/>.</param>
		public EventNotification(EventType eventType, IEnumerable<object> parameters = null)
		{
			Type = eventType;
			Parameters = parameters?.ToList();
		}
	}
}
<commit_msg>Fix EventNotification 0 not getting serialized<commit_after>using System.Collections.Generic;
using System.Linq;
using Tgstation.Server.Host.Components.Events;

namespace Tgstation.Server.Host.Components.Interop.Topic
{
	/// <summary>
	/// Data structure for <see cref="TopicCommandType.EventNotification"/> requests.
	/// </summary>
	sealed class EventNotification
	{
		/// <summary>
		/// The <see cref="EventType"/> triggered.
		/// </summary>
		/// <remarks>Nullable to prevent ignoring when serializing.</remarks>
		public EventType? Type { get; }

		/// <summary>
		/// The set of parameters.
		/// </summary>
		public IReadOnlyCollection<object> Parameters { get; }

		/// <summary>
		/// Initializes a new instance of the <see cref="EventNotification"/> <see langword="class"/>.
		/// </summary>
		/// <param name="eventType">The value of <see cref="Type"/>.</param>
		/// <param name="parameters">The <see cref="IEnumerable{T}"/> that forms the value of <see cref="Parameters"/>.</param>
		public EventNotification(EventType eventType, IEnumerable<object> parameters = null)
		{
			Type = eventType;
			Parameters = parameters?.ToList();
		}
	}
}

{'fraction_non_alphanumeric': 0.16357045763479836, 'fraction_numerical': 0.00045310376076121433, 'mean_word_length': 3.6582278481012658, 'pattern_counts': {'":': 0, '<': 47, '<?xml version=': 0, '>': 47, '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': '1090263', 'n_tokens_mistral': 681, 'n_tokens_neox': 636, 'n_words': 167}