<commit_before>﻿/*
    _                _      _  ____   _                           _____
   / \    _ __  ___ | |__  (_)/ ___| | |_  ___   __ _  _ __ ___  |  ___|__ _  _ __  _ __ ___
  / _ \  | '__|/ __|| '_ \ | |\___ \ | __|/ _ \ / _` || '_ ` _ \ | |_  / _` || '__|| '_ ` _ \
 / ___ \ | |  | (__ | | | || | ___) || |_|  __/| (_| || | | | | ||  _|| (_| || |   | | | | | |
/_/   \_\|_|   \___||_| |_||_||____/  \__|\___| \__,_||_| |_| |_||_|   \__,_||_|   |_| |_| |_|

 Copyright 2015-2016 Łukasz "JustArchi" Domeradzki
 Contact: <EMAIL>

 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at

 http://www.apache.org/licenses/LICENSE-2.0
					
 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.

*/

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using System.Drawing.Design;
using System.IO;
using Newtonsoft.Json;

namespace ConfigGenerator {
	[SuppressMessage("ReSharper", "AutoPropertyCanBeMadeGetOnly.Global")]
	[SuppressMessage("ReSharper", "CollectionNeverQueried.Global")]
	[SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
	[SuppressMessage("ReSharper", "UnusedMember.Global")]
	internal sealed class BotConfig : ASFConfig {
		[Category("\tAdvanced")]
		[JsonProperty(Required = Required.DisallowNull)]
		public byte AcceptConfirmationsPeriod { get; set; } = 0;

		[JsonProperty(Required = Required.DisallowNull)]
		public bool AcceptGifts { get; set; } = false;

		[Category("\tPerformance")]
		[JsonProperty(Required = Required.DisallowNull)]
		public bool CardDropsRestricted { get; set; } = true;

		[JsonProperty]
		public string CustomGamePlayedWhileFarming { get; set; } = null;

		[JsonProperty]
		public string CustomGamePlayedWhileIdle { get; set; } = null;

		[JsonProperty(Required = Required.DisallowNull)]
		public bool DismissInventoryNotifications { get; set; } = true;

		[JsonProperty(Required = Required.DisallowNull)]
		public bool DistributeKeys { get; set; } = false;

		[Category("\t\tCore")]
		[JsonProperty(Required = Required.DisallowNull)]
		public bool Enabled { get; set; } = false;

		[JsonProperty(Required = Required.DisallowNull)]
		public EFarmingOrder FarmingOrder { get; set; } = EFarmingOrder.Unordered;

		[JsonProperty(Required = Required.DisallowNull)]
		public bool FarmOffline { get; set; } = false;

		[JsonProperty(Required = Required.DisallowNull)]
		public bool ForwardKeysToOtherBots { get; set; } = false;

		[JsonProperty(Required = Required.DisallowNull)]
		public List<uint> GamesPlayedWhileIdle { get; set; } = new List<uint>();

		[Category("\tAdvanced")]
		[JsonProperty(Required = Required.DisallowNull)]
		public bool HandleOfflineMessages { get; set; } = false;

		[Category("\tAdvanced")]
		[JsonProperty(Required = Required.DisallowNull)]
		public bool IsBotAccount { get; set; } = false;

		[Category("\tAccess")]
		[JsonProperty(Required = Required.DisallowNull)]
		public ECryptoMethod PasswordFormat { get; set; } = ECryptoMethod.PlainText;

		[Category("\tAdvanced")]
		[JsonProperty(Required = Required.DisallowNull)]
		public bool Paused { get; set; } = false;

		[JsonProperty(Required = Required.DisallowNull)]
		public bool SendOnFarmingFinished { get; set; } = false;

		[JsonProperty(Required = Required.DisallowNull)]
		public byte SendTradePeriod { get; set; } = 0;

		[JsonProperty(Required = Required.DisallowNull)]
		public bool ShutdownOnFarmingFinished { get; set; } = false;

		[Category("\tAccess")]
		[JsonProperty]
		public string SteamApiKey { get; set; } = null;

		[Category("\t\tCore")]
		[JsonProperty]
		public string SteamLogin { get; set; } = null;

		[Category("\tAccess")]
		[JsonProperty(Required = Required.DisallowNull)]
		public ulong SteamMasterClanID { get; set; } = 0;

		[Category("\tAccess")]
		[JsonProperty(Required = Required.DisallowNull)]
		public ulong SteamMasterID { get; set; } = 0;

		[Category("\tAccess")]
		[JsonProperty]
		public string SteamParentalPIN { get; set; } = "0";

		[Category("\t\tCore")]
		[JsonProperty]
		[PasswordPropertyText(true)]
		public string SteamPassword { get; set; } = null;

		[Category("\tAccess")]
		[JsonProperty]
		public string SteamTradeToken { get; set; } = null;

		[Category("\tAdvanced")]
		[Editor(typeof(FlagEnumUiEditor), typeof(UITypeEditor))]
		[JsonProperty(Required = Required.DisallowNull)]
		public ETradingPreferences TradingPreferences { get; set; } = ETradingPreferences.AcceptDonations;

        [Category("\t\tCore")]
        [JsonProperty]
        internal List<ulong> SteamTrustedIds { get; set; } = new List<ulong>();

        [SuppressMessage("ReSharper", "UnusedMember.Local")]
		private BotConfig() { }

		private BotConfig(string filePath) : base(filePath) {
			if (string.IsNullOrEmpty(filePath)) {
				throw new ArgumentNullException(nameof(filePath));
			}

			Save();
		}
<commit_msg>Fixed missing variable for config app.<commit_after>﻿/*
    _                _      _  ____   _                           _____
   / \    _ __  ___ | |__  (_)/ ___| | |_  ___   __ _  _ __ ___  |  ___|__ _  _ __  _ __ ___
  / _ \  | '__|/ __|| '_ \ | |\___ \ | __|/ _ \ / _` || '_ ` _ \ | |_  / _` || '__|| '_ ` _ \
 / ___ \ | |  | (__ | | | || | ___) || |_|  __/| (_| || | | | | ||  _|| (_| || |   | | | | | |
/_/   \_\|_|   \___||_| |_||_||____/  \__|\___| \__,_||_| |_| |_||_|   \__,_||_|   |_| |_| |_|

 Copyright 2015-2016 Łukasz "JustArchi" Domeradzki
 Contact: <EMAIL>

 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at

 http://www.apache.org/licenses/LICENSE-2.0
					
 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.

*/

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using System.Drawing.Design;
using System.IO;
using Newtonsoft.Json;

namespace ConfigGenerator {
	[SuppressMessage("ReSharper", "AutoPropertyCanBeMadeGetOnly.Global")]
	[SuppressMessage("ReSharper", "CollectionNeverQueried.Global")]
	[SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
	[SuppressMessage("ReSharper", "UnusedMember.Global")]
	internal sealed class BotConfig : ASFConfig {
		[Category("\tAdvanced")]
		[JsonProperty(Required = Required.DisallowNull)]
		public byte AcceptConfirmationsPeriod { get; set; } = 0;

		[JsonProperty(Required = Required.DisallowNull)]
		public bool AcceptGifts { get; set; } = false;

		[Category("\tPerformance")]
		[JsonProperty(Required = Required.DisallowNull)]
		public bool CardDropsRestricted { get; set; } = true;

		[JsonProperty]
		public string CustomGamePlayedWhileFarming { get; set; } = null;

		[JsonProperty]
		public string CustomGamePlayedWhileIdle { get; set; } = null;

		[JsonProperty(Required = Required.DisallowNull)]
		public bool DismissInventoryNotifications { get; set; } = true;

		[JsonProperty(Required = Required.DisallowNull)]
		public bool DistributeKeys { get; set; } = false;

		[Category("\t\tCore")]
		[JsonProperty(Required = Required.DisallowNull)]
		public bool Enabled { get; set; } = false;

		[JsonProperty(Required = Required.DisallowNull)]
		public EFarmingOrder FarmingOrder { get; set; } = EFarmingOrder.Unordered;

		[JsonProperty(Required = Required.DisallowNull)]
		public bool FarmOffline { get; set; } = false;

		[JsonProperty(Required = Required.DisallowNull)]
		public bool ForwardKeysToOtherBots { get; set; } = false;

		[JsonProperty(Required = Required.DisallowNull)]
		public List<uint> GamesPlayedWhileIdle { get; set; } = new List<uint>();

		[Category("\tAdvanced")]
		[JsonProperty(Required = Required.DisallowNull)]
		public bool HandleOfflineMessages { get; set; } = false;

		[Category("\tAdvanced")]
		[JsonProperty(Required = Required.DisallowNull)]
		public bool IsBotAccount { get; set; } = false;

		[Category("\tAccess")]
		[JsonProperty(Required = Required.DisallowNull)]
		public ECryptoMethod PasswordFormat { get; set; } = ECryptoMethod.PlainText;

		[Category("\tAdvanced")]
		[JsonProperty(Required = Required.DisallowNull)]
		public bool Paused { get; set; } = false;

		[JsonProperty(Required = Required.DisallowNull)]
		public bool SendOnFarmingFinished { get; set; } = false;

		[JsonProperty(Required = Required.DisallowNull)]
		public byte SendTradePeriod { get; set; } = 0;

		[JsonProperty(Required = Required.DisallowNull)]
		public bool ShutdownOnFarmingFinished { get; set; } = false;

		[Category("\tAccess")]
		[JsonProperty]
		public string SteamApiKey { get; set; } = null;

		[Category("\t\tCore")]
		[JsonProperty]
		public string SteamLogin { get; set; } = null;

		[Category("\tAccess")]
		[JsonProperty(Required = Required.DisallowNull)]
		public ulong SteamMasterClanID { get; set; } = 0;

		[Category("\tAccess")]
		[JsonProperty(Required = Required.DisallowNull)]
		public ulong SteamMasterID { get; set; } = 0;

        [Category("\tAccess")]
        [JsonProperty]
        public string SteamParentalPIN { get; set; } = "0";

        [Category("\tAccess")]
		[JsonProperty]
		public List<ulong> SteamTrustedIDS { get; set; } = new List<ulong>();

        [Category("\t\tCore")]
		[JsonProperty]
		[PasswordPropertyText(true)]
		public string SteamPassword { get; set; } = null;

		[Category("\tAccess")]
		[JsonProperty]
		public string SteamTradeToken { get; set; } = null;

		[Category("\tAdvanced")]
		[Editor(typeof(FlagEnumUiEditor), typeof(UITypeEditor))]
		[JsonProperty(Required = Required.DisallowNull)]
		public ETradingPreferences TradingPreferences { get; set; } = ETradingPreferences.AcceptDonations;

        [Category("\t\tCore")]
        [JsonProperty]
        internal List<ulong> SteamTrustedIds { get; set; } = new List<ulong>();

        [SuppressMessage("ReSharper", "UnusedMember.Local")]
		private BotConfig() { }

		private BotConfig(string filePath) : base(filePath) {
			if (string.IsNullOrEmpty(filePath)) {
				throw new ArgumentNullException(nameof(filePath));
			}

			Save();
		}

{'fraction_non_alphanumeric': 0.13685993975903615, 'fraction_numerical': 0.003200301204819277, 'mean_word_length': 4.0236406619385345, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2984513', 'n_tokens_mistral': 3560, 'n_tokens_neox': 3268, 'n_words': 746}