<commit_before>﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FreecraftCore.Serializer;
using JetBrains.Annotations;

namespace Booma.Proxy
{
	/// <summary>
	/// Marks the 0x60 command server payload with the associated operation code.
	/// Should be marked on <see cref="BlockNetworkCommandEventServerPayload"/>.
	/// </summary>
	[AttributeUsage(AttributeTargets.Class, AllowMultiple = true, Inherited = false)]
	public sealed class SubCommand60ServerAttribute : WireDataContractBaseLinkAttribute
	{
		/// <inheritdoc />
		public SubCommand60ServerAttribute(SubCommand60OperationCode opCode)
			: base((int)opCode, typeof(BlockNetworkCommandEventClientPayload))
		{
			if(!Enum.IsDefined(typeof(SubCommand60OperationCode), opCode)) throw new InvalidEnumArgumentException(nameof(opCode), (int)opCode, typeof(SubCommand60OperationCode));
		}
	}
}<commit_msg>Fix fault with subcommand server attribute<commit_after>﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FreecraftCore.Serializer;
using JetBrains.Annotations;

namespace Booma.Proxy
{
	/// <summary>
	/// Marks the 0x60 command server payload with the associated operation code.
	/// Should be marked on <see cref="BlockNetworkCommandEventServerPayload"/>.
	/// </summary>
	[AttributeUsage(AttributeTargets.Class, AllowMultiple = true, Inherited = false)]
	public sealed class SubCommand60ServerAttribute : WireDataContractBaseLinkAttribute
	{
		/// <inheritdoc />
		public SubCommand60ServerAttribute(SubCommand60OperationCode opCode)
			: base((int)opCode, typeof(BlockNetworkCommandEventServerPayload))
		{
			if(!Enum.IsDefined(typeof(SubCommand60OperationCode), opCode)) throw new InvalidEnumArgumentException(nameof(opCode), (int)opCode, typeof(SubCommand60OperationCode));
		}
	}
}
{'fraction_non_alphanumeric': 0.10138248847926268, 'fraction_numerical': 0.013312852022529442, 'mean_word_length': 6.345864661654136, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '2279652', 'n_tokens_mistral': 569, 'n_tokens_neox': 539, 'n_words': 125}