<commit_before>namespace StockSharp.Messages
{
	using System;
	using System.ComponentModel.DataAnnotations;
	using System.Runtime.Serialization;
	using System.Xml.Serialization;

	using StockSharp.Localization;

	/// <summary>
	/// User request message (uses as a subscribe/unsubscribe in outgoing case, confirmation event in incoming case).
	/// </summary>
	[DataContract]
	[Serializable]
	public class UserRequestMessage : Message, ITransactionIdMessage, IOriginalTransactionIdMessage, IErrorMessage
	{
		/// <summary>
		/// Login.
		/// </summary>
		[DataMember]
		[Display(
			ResourceType = typeof(LocalizedStrings),
			Name = LocalizedStrings.LoginKey,
			Description = LocalizedStrings.LoginKey + LocalizedStrings.Dot,
			GroupName = LocalizedStrings.GeneralKey,
			Order = 0)]
		public string Login { get; set; }

		/// <summary>
		/// The message is subscription.
		/// </summary>
		[DataMember]
		public bool IsSubscribe { get; set; }

		/// <inheritdoc />
		[DataMember]
		public long TransactionId { get; set; }

		/// <inheritdoc />
		[DataMember]
		public long OriginalTransactionId { get; set; }

		/// <inheritdoc />
		[DataMember]
		[XmlIgnore]
		public Exception Error { get; set; }

		/// <summary>
		/// Initializes a new instance of the <see cref="UserRequestMessage"/>.
		/// </summary>
		public UserRequestMessage()
			: base(MessageTypes.UserRequest)
		{
		}

		/// <summary>
		/// Create a copy of <see cref="UserRequestMessage"/>.
		/// </summary>
		/// <returns>Copy.</returns>
		public override Message Clone()
		{
			return CopyTo(new UserRequestMessage());
		}

		/// <summary>
		/// Copy the message into the <paramref name="destination" />.
		/// </summary>
		/// <param name="destination">The object, to which copied information.</param>
		/// <returns>The object, to which copied information.</returns>
		protected UserRequestMessage CopyTo(UserRequestMessage destination)
		{
			base.CopyTo(destination);

			destination.Login = Login;
			destination.IsSubscribe = IsSubscribe;
			destination.TransactionId = TransactionId;
			destination.OriginalTransactionId = OriginalTransactionId;
			destination.Error = Error;

			return destination;
		}

		/// <inheritdoc />
		public override string ToString()
		{
			return base.ToString() + $",Login={Login},IsSubscribe={IsSubscribe},TrId={TransactionId},Origin={OriginalTransactionId}";
		}
	}
}<commit_msg>UserRequestMessage inherited from BaseSubscriptionMessage.<commit_after>namespace StockSharp.Messages
{
	using System;
	using System.ComponentModel.DataAnnotations;
	using System.Runtime.Serialization;

	using StockSharp.Localization;

	/// <summary>
	/// User request message (uses as a subscribe/unsubscribe in outgoing case, confirmation event in incoming case).
	/// </summary>
	[DataContract]
	[Serializable]
	public class UserRequestMessage : BaseSubscriptionMessage
	{
		/// <summary>
		/// Login.
		/// </summary>
		[DataMember]
		[Display(
			ResourceType = typeof(LocalizedStrings),
			Name = LocalizedStrings.LoginKey,
			Description = LocalizedStrings.LoginKey + LocalizedStrings.Dot,
			GroupName = LocalizedStrings.GeneralKey,
			Order = 0)]
		public string Login { get; set; }

		/// <summary>
		/// Identifier.
		/// </summary>
		[DataMember]
		public long? Id { get; set; }

		/// <inheritdoc />
		public override DataType DataType => DataType.Users;

		/// <summary>
		/// Initializes a new instance of the <see cref="UserRequestMessage"/>.
		/// </summary>
		public UserRequestMessage()
			: base(MessageTypes.UserRequest)
		{
		}

		/// <summary>
		/// Create a copy of <see cref="UserRequestMessage"/>.
		/// </summary>
		/// <returns>Copy.</returns>
		public override Message Clone()
		{
			return CopyTo(new UserRequestMessage());
		}

		/// <summary>
		/// Copy the message into the <paramref name="destination" />.
		/// </summary>
		/// <param name="destination">The object, to which copied information.</param>
		/// <returns>The object, to which copied information.</returns>
		protected UserRequestMessage CopyTo(UserRequestMessage destination)
		{
			base.CopyTo(destination);

			destination.Login = Login;
			destination.Id = Id;

			return destination;
		}

		/// <inheritdoc />
		public override string ToString()
		{
			return base.ToString() + $",User={Login}/{Id}";
		}
	}
}
{'fraction_non_alphanumeric': 0.1359087735629509, 'fraction_numerical': 0.00046544100535257155, 'mean_word_length': 3.4864300626304803, 'pattern_counts': {'":': 0, '<': 51, '<?xml version=': 0, '>': 52, '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': '641685', 'n_tokens_mistral': 1392, 'n_tokens_neox': 1222, 'n_words': 311}