content
stringlengths
5
1.04M
avg_line_length
float64
1.75
12.9k
max_line_length
int64
2
244k
alphanum_fraction
float64
0
0.98
licenses
list
repository_name
stringlengths
7
92
path
stringlengths
3
249
size
int64
5
1.04M
lang
stringclasses
2 values
using EmptyFiles; using Xunit; public class IndexWriter { static List<KeyValuePair<string, EmptyFile>> files = null!; [ModuleInitializer] public static void Init() { files = AllFiles.Files.OrderBy(x => x.Key).ToList(); } [Fact] public void CreateIndex() { InnerCreateIndex(); } static void InnerCreateIndex([CallerFilePath] string filePath = "") { var rootDirectory = Path.GetFullPath(Path.Combine(Path.GetDirectoryName(filePath)!, @"..\..\")); var indexPath = Path.Combine(rootDirectory, "index"); Directory.CreateDirectory(indexPath); foreach (var toDelete in Directory.EnumerateFiles(indexPath)) { File.Delete(toDelete); } foreach (var (key, value) in files) { File.Copy(value.Path, Path.Combine(indexPath, $"empty.{key}")); } } }
26.657143
105
0.584137
[ "MIT" ]
VerifyTests/EmptyFiles
src/EmptyFiles.Tests/IndexWriter.cs
935
C#
using ArchiSteamFarm.Steam; using ArchiSteamFarm.Localization; using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading; using System.Threading.Tasks; using SteamKit2; using Newtonsoft.Json; using JetBrains.Annotations; using AngleSharp.Dom; namespace BoosterCreator { internal sealed class BoosterHandler : IDisposable { private readonly Bot Bot; private readonly ConcurrentDictionary<uint, DateTime?> GameIDs = new(); private readonly Timer BoosterTimer; internal static ConcurrentDictionary<string, BoosterHandler?> BoosterHandlers = new(); internal const int DelayBetweenBots = 5; //5 minutes between bots internal static int GetBotIndex(Bot bot) { //this can be pretty slow and memory-consuming on lage bot farm. Luckily, I don't care about cases with >10 bots List<string> botnames = BoosterHandlers.Keys.ToList<string>(); botnames.Sort(); int index = botnames.IndexOf(bot.BotName); return 1 + (index >= 0 ? index : botnames.Count); } internal BoosterHandler(Bot bot, IReadOnlyCollection<uint> gameIDs) { Bot = bot ?? throw new ArgumentNullException(nameof(bot)); foreach (uint gameID in gameIDs) { if (GameIDs.TryAdd(gameID, DateTime.Now.AddMinutes(GetBotIndex(bot) * DelayBetweenBots))) { bot.ArchiLogger.LogGenericInfo(Commands.FormatBotResponse(bot, "Auto-attempt to make booster from " + gameID.ToString() + " is planned at " + GameIDs[gameID]!.Value.ToShortDateString() + " " + GameIDs[gameID]!.Value.ToShortTimeString())); } else { bot.ArchiLogger.LogGenericError("Unable to schedule next auto-attempt"); } } BoosterTimer = new Timer( async e => await AutoBooster().ConfigureAwait(false), null, TimeSpan.FromMinutes(GetBotIndex(bot) * DelayBetweenBots), TimeSpan.FromMinutes(GetBotIndex(bot) * DelayBetweenBots) ); } public void Dispose() => BoosterTimer.Dispose(); private async Task AutoBooster() { if (!Bot.IsConnectedAndLoggedOn) { return; } await CreateBooster(Bot, GameIDs).ConfigureAwait(false); } internal static async Task<string?> CreateBooster(Bot bot, ConcurrentDictionary<uint, DateTime?> gameIDs) { if (!gameIDs.Any()) { bot.ArchiLogger.LogNullError(nameof(gameIDs)); return null; } IDocument? boosterPage = await WebRequest.GetBoosterPage(bot).ConfigureAwait(false); if (boosterPage == null) { bot.ArchiLogger.LogNullError(nameof(boosterPage)); return Commands.FormatBotResponse(bot, string.Format(Strings.ErrorFailingRequest, nameof(boosterPage))); ; } MatchCollection gooAmounts = Regex.Matches(boosterPage.Source.Text, "(?<=parseFloat\\( \")[0-9]+"); Match info = Regex.Match(boosterPage.Source.Text, "\\[\\{\"[\\s\\S]*\"}]"); if (!info.Success || (gooAmounts.Count != 3)) { bot.ArchiLogger.LogGenericError(string.Format(Strings.ErrorParsingObject, boosterPage)); return Commands.FormatBotResponse(bot, string.Format(Strings.ErrorParsingObject, boosterPage)); } uint gooAmount = uint.Parse(gooAmounts[0].Value); uint tradableGooAmount = uint.Parse(gooAmounts[1].Value); uint unTradableGooAmount = uint.Parse(gooAmounts[2].Value); IEnumerable<Steam.BoosterInfo>? enumerableBoosters = JsonConvert.DeserializeObject<IEnumerable<Steam.BoosterInfo>>(info.Value); if (enumerableBoosters == null) { bot.ArchiLogger.LogNullError(nameof(enumerableBoosters)); return Commands.FormatBotResponse(bot, string.Format(Strings.ErrorParsingObject, nameof(enumerableBoosters))); } Dictionary<uint, Steam.BoosterInfo> boosterInfos = enumerableBoosters.ToDictionary(boosterInfo => boosterInfo.AppID); StringBuilder response = new(); foreach (KeyValuePair<uint, DateTime?> gameID in gameIDs) { if (!gameID.Value.HasValue || DateTime.Compare(gameID.Value.Value, DateTime.Now) <= 0) { await Task.Delay(500).ConfigureAwait(false); if (!boosterInfos.ContainsKey(gameID.Key)) { response.AppendLine(Commands.FormatBotResponse(bot, "Not eligible to create boosters from " + gameID.Key.ToString())); bot.ArchiLogger.LogGenericInfo(Commands.FormatBotResponse(bot, "Not eligible to create boosters from " + gameID.Key.ToString())); //If we are not eligible - wait 8 hours, just in case game will be added to account later if (gameID.Value.HasValue) { //if source is timer, not command gameIDs[gameID.Key] = DateTime.Now.AddHours(8); bot.ArchiLogger.LogGenericInfo(Commands.FormatBotResponse(bot, "Next attempt to make booster from " + gameID.Key.ToString() + " is planned at " + gameIDs[gameID.Key]!.Value.ToShortDateString() + " " + gameIDs[gameID.Key]!.Value.ToShortTimeString())); } continue; } Steam.BoosterInfo bi = boosterInfos[gameID.Key]; if (gooAmount < bi.Price) { response.AppendLine(Commands.FormatBotResponse(bot, "Not enough gems to create booster from " + gameID.Key.ToString())); //If we have not enough gems - wait 8 hours, just in case gems will be added to account later bot.ArchiLogger.LogGenericInfo(Commands.FormatBotResponse(bot, "Not enough gems to create booster from " + gameID.Key.ToString())); if (gameID.Value.HasValue) { //if source is timer, not command gameIDs[gameID.Key] = DateTime.Now.AddHours(8); bot.ArchiLogger.LogGenericInfo(Commands.FormatBotResponse(bot, "Next attempt to make booster from " + gameID.Key.ToString() + " is planned at " + gameIDs[gameID.Key]!.Value.ToShortDateString() + " " + gameIDs[gameID.Key]!.Value.ToShortTimeString())); } continue; } if (bi.Unavailable) { //God, I hate this shit. But for now I have no idea how to predict/enforce correct format. string timeFormat; if (!string.IsNullOrWhiteSpace(bi.AvailableAtTime) && char.IsDigit(bi.AvailableAtTime.Trim()[0])) { timeFormat = "d MMM @ h:mmtt"; } else { timeFormat = "MMM d @ h:mmtt"; } response.AppendLine(Commands.FormatBotResponse(bot, "Crafting booster from " + gameID.Key.ToString() + " will be available at time: " + bi.AvailableAtTime)); bot.ArchiLogger.LogGenericInfo(Commands.FormatBotResponse(bot, "Crafting booster from " + gameID.Key.ToString() + " is not available now")); //Wait until specified time if (DateTime.TryParseExact(bi.AvailableAtTime, timeFormat, new CultureInfo("en-US"), DateTimeStyles.None, out DateTime availableAtTime)) { } else { bot.ArchiLogger.LogGenericInfo("Unable to parse time \"" + bi.AvailableAtTime + "\", please report this."); availableAtTime = DateTime.Now.AddHours(8); //fallback to 8 hours in case of error } if (gameID.Value.HasValue) { //if source is timer, not command gameIDs[gameID.Key] = availableAtTime;//convertedTime; bot.ArchiLogger.LogGenericInfo(Commands.FormatBotResponse(bot, "Next attempt to make booster from " + gameID.Key.ToString() + " is planned at " + gameIDs[gameID.Key]!.Value.ToShortDateString() + " " + gameIDs[gameID.Key]!.Value.ToShortTimeString())); } continue; } uint nTp; if (unTradableGooAmount > 0) { nTp = tradableGooAmount > bi.Price ? (uint)1 : 3; } else { nTp = 2; } Steam.BoostersResponse? result = await WebRequest.CreateBooster(bot, bi.AppID, bi.Series, nTp).ConfigureAwait(false); if (result?.Result?.Result != EResult.OK) { response.AppendLine(Commands.FormatBotResponse(bot, "Failed to create booster from " + gameID.Key.ToString())); bot.ArchiLogger.LogGenericInfo(Commands.FormatBotResponse(bot, "Failed to create booster from " + gameID.Key.ToString())); //Some unhandled error - wait 8 hours before retry if (gameID.Value.HasValue) { //if source is timer, not command gameIDs[gameID.Key] = DateTime.Now.AddHours(8); bot.ArchiLogger.LogGenericInfo(Commands.FormatBotResponse(bot, "Next attempt to make booster from " + gameID.Key.ToString() + " is planned at " + gameIDs[gameID.Key]!.Value.ToShortDateString() + " " + gameIDs[gameID.Key]!.Value.ToShortTimeString())); } continue; } gooAmount = result.GooAmount; tradableGooAmount = result.TradableGooAmount; unTradableGooAmount = result.UntradableGooAmount; response.AppendLine(Commands.FormatBotResponse(bot, "Successfuly created booster from " + gameID.Key.ToString())); bot.ArchiLogger.LogGenericInfo(Commands.FormatBotResponse(bot, "Successfuly created booster from " + gameID.Key.ToString())); //Buster was made - next is only available in 24 hours if (gameID.Value.HasValue) { //if source is timer, not command gameIDs[gameID.Key] = DateTime.Now.AddHours(24); bot.ArchiLogger.LogGenericInfo(Commands.FormatBotResponse(bot, "Next attempt to make booster from " + gameID.Key.ToString() + " is planned at " + gameIDs[gameID.Key]!.Value.ToShortDateString() + " " + gameIDs[gameID.Key]!.Value.ToShortTimeString())); } } } //Get nearest time when we should try for new booster; DateTime? nextTry = gameIDs.Values.Min<DateTime?>(); if (nextTry.HasValue) { //if it was not from command if (BoosterHandler.BoosterHandlers[bot.BotName] != null) { BoosterHandler.BoosterHandlers[bot.BotName]!.BoosterTimer.Change(nextTry.Value - DateTime.Now + TimeSpan.FromMinutes(GetBotIndex(bot) * DelayBetweenBots), nextTry.Value - DateTime.Now + TimeSpan.FromMinutes(GetBotIndex(bot) * DelayBetweenBots)); } } return response.Length > 0 ? response.ToString() : null; } } }
50.602094
257
0.712675
[ "Apache-2.0" ]
Abrynos/BoosterCreator
BoosterCreator/BoosterHandler.cs
9,665
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file 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. */ /* * Do not modify this file. This file is generated from the route53resolver-2018-04-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Route53Resolver.Model { /// <summary> /// Container for the parameters to the AssociateFirewallRuleGroup operation. /// Associates a <a>FirewallRuleGroup</a> with a VPC, to provide DNS filtering for the /// VPC. /// </summary> public partial class AssociateFirewallRuleGroupRequest : AmazonRoute53ResolverRequest { private string _creatorRequestId; private string _firewallRuleGroupId; private MutationProtectionStatus _mutationProtection; private string _name; private int? _priority; private List<Tag> _tags = new List<Tag>(); private string _vpcId; /// <summary> /// Gets and sets the property CreatorRequestId. /// <para> /// A unique string that identifies the request and that allows failed requests to be /// retried without the risk of executing the operation twice. <code>CreatorRequestId</code> /// can be any unique string, for example, a date/time stamp. /// </para> /// </summary> [AWSProperty(Min=1, Max=255)] public string CreatorRequestId { get { return this._creatorRequestId; } set { this._creatorRequestId = value; } } // Check to see if CreatorRequestId property is set internal bool IsSetCreatorRequestId() { return this._creatorRequestId != null; } /// <summary> /// Gets and sets the property FirewallRuleGroupId. /// <para> /// The unique identifier of the firewall rule group. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=64)] public string FirewallRuleGroupId { get { return this._firewallRuleGroupId; } set { this._firewallRuleGroupId = value; } } // Check to see if FirewallRuleGroupId property is set internal bool IsSetFirewallRuleGroupId() { return this._firewallRuleGroupId != null; } /// <summary> /// Gets and sets the property MutationProtection. /// <para> /// If enabled, this setting disallows modification or removal of the association, to /// help prevent against accidentally altering DNS firewall protections. When you create /// the association, the default setting is <code>DISABLED</code>. /// </para> /// </summary> public MutationProtectionStatus MutationProtection { get { return this._mutationProtection; } set { this._mutationProtection = value; } } // Check to see if MutationProtection property is set internal bool IsSetMutationProtection() { return this._mutationProtection != null; } /// <summary> /// Gets and sets the property Name. /// <para> /// A name that lets you identify the association, to manage and use it. /// </para> /// </summary> [AWSProperty(Required=true, Max=64)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// <summary> /// Gets and sets the property Priority. /// <para> /// The setting that determines the processing order of the rule group among the rule /// groups that you associate with the specified VPC. DNS Firewall filters VPC traffic /// starting from rule group with the lowest numeric priority setting. /// </para> /// /// <para> /// You must specify a unique priority for each rule group that you associate with a single /// VPC. To make it easier to insert rule groups later, leave space between the numbers, /// for example, use 100, 200, and so on. You can change the priority setting for a rule /// group association after you create it. /// </para> /// </summary> [AWSProperty(Required=true)] public int Priority { get { return this._priority.GetValueOrDefault(); } set { this._priority = value; } } // Check to see if Priority property is set internal bool IsSetPriority() { return this._priority.HasValue; } /// <summary> /// Gets and sets the property Tags. /// <para> /// A list of the tag keys and values that you want to associate with the rule group association. /// /// </para> /// </summary> [AWSProperty(Max=200)] public List<Tag> Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } /// <summary> /// Gets and sets the property VpcId. /// <para> /// The unique identifier of the VPC that you want to associate with the rule group. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=64)] public string VpcId { get { return this._vpcId; } set { this._vpcId = value; } } // Check to see if VpcId property is set internal bool IsSetVpcId() { return this._vpcId != null; } } }
33.896373
113
0.591868
[ "Apache-2.0" ]
KenHundley/aws-sdk-net
sdk/src/Services/Route53Resolver/Generated/Model/AssociateFirewallRuleGroupRequest.cs
6,542
C#
using System; using System.Collections.Generic; using System.Text; using System.Linq; namespace AdventOfCode.Solutions.Year2018 { class FuelCell { public int x {get;set;} public int y {get;set;} public int gridSerialNumber {get;set;} public int powerLevel {get;set;} public FuelCell(int x, int y, int gridSerialNumber) { this.x = x; this.y = y; this.gridSerialNumber = gridSerialNumber; // Part 2 didn't chage anything we can pre-calculate this this.powerLevel = _powerLevel; } private int _powerLevel { get { // rackId = X coordinate plus 10 int rackId = x + 10; // Begin with a power level of the rack ID times the Y coordinate int powerLevel = rackId * y; // Increase by the gridSerialNumber powerLevel += gridSerialNumber; // Set the power level to itself multiplied by the rack ID. powerLevel *= rackId; // Get the hundreds digit powerLevel = (int) (powerLevel / 100) % 10; // Subtract 5 powerLevel -= 5; return powerLevel; } } } class Day11 : ASolution { // Using a dictionary means finding groups of x,y is much faster Dictionary<(int x, int y), FuelCell> fuelCells = new Dictionary<(int x, int y), FuelCell>(); Dictionary<(int x, int y), int> sum = new Dictionary<(int x, int y), int>(); int gridSerialNumber = 0; public Day11() : base(11, 2018, "") { // Load 'em up! gridSerialNumber = Int32.Parse(Input.Trim()); // Debug: // Serial 42 => 21,61: 30 // Serial 18 => 33,45: 29 for(int x=1; x<=300; x++) for(int y=1; y<=300; y++) fuelCells.Add((x, y), new FuelCell(x, y, gridSerialNumber)); } protected override string SolvePartOne() { // Search all 3x3 areas for the highest power level we have int highest = Int32.MinValue; int hx = Int32.MinValue; int hy = Int32.MinValue; bool draw = false; // Searching 3x3 areas for(int y=1; y<=298; y++) { for(int x=1; x<=298; x++){ int tempPowerLevel = fuelCells[(x , y )].powerLevel + fuelCells[(x+1, y )].powerLevel + fuelCells[(x+2, y )].powerLevel + fuelCells[(x , y+1)].powerLevel + fuelCells[(x+1, y+1)].powerLevel + fuelCells[(x+2, y+1)].powerLevel + fuelCells[(x , y+2)].powerLevel + fuelCells[(x+1, y+2)].powerLevel + fuelCells[(x+2, y+2)].powerLevel; if (tempPowerLevel > highest) { highest = tempPowerLevel; hx = x; hy = y; } if (draw) Console.Write(tempPowerLevel.ToString(" 00; -00")); } if (draw) Console.WriteLine(); } return $"[Serial: {gridSerialNumber}] {hx},{hy}: {highest}"; } protected override string SolvePartTwo() { // Search all possible squares for the highest power level we have // Summed area table modeled after: https://old.reddit.com/r/adventofcode/comments/a53r6i/2018_day_11_solutions/ebjogd7/ int highest = Int32.MinValue; int hx = Int32.MinValue; int hy = Int32.MinValue; int hsize = 0; int size = 300; // Set zeros to remove some inline if statements later for(int y=0; y<=300; y++) sum[(0, y)] = 0; for(int x=0; x<=300; x++) sum[(x, 0)] = 0; // Create the summed area table for(int y=1; y<=300; y++) { for(int x=1; x<=300; x++) { sum[(x, y)] = fuelCells[(x, y)].powerLevel + sum[(x-1, y)] + sum[(x, y-1)] - sum[(x-1, y-1)]; } } // Now we can search using only a partial loop setup for(size=1; size<=300; size++) { for(int y=size; y<=300; y++) { for(int x=size; x<=300; x++) { int tempPowerLevel = sum[(x, y)] - sum[(x, y-size)] - sum[(x-size, y)] + sum[(x-size, y-size)]; if (tempPowerLevel > highest) { hx = x - size + 1; hy = y - size + 1; highest = tempPowerLevel; hsize = size; } } } } return $"[Serial: {gridSerialNumber}] {hx},{hy},{hsize}: {highest}"; } } }
33.25625
132
0.4377
[ "MIT" ]
nerddtvg/aoc
AdventOfCode/Solutions/Year2018/Day11/Solution.cs
5,321
C#
using Newtonsoft.Json; namespace PddOpenSdk.Models.Request.Goods { public partial class GetGoodsSpecIdRequestModel : PddRequestModel { /// <summary> /// 拼多多标准规格ID,可以通过pdd.goods.spec.get接口获取 /// </summary> [JsonProperty("parent_spec_id")] public long ParentSpecId { get; set; } /// <summary> /// 商家编辑的规格值,如颜色规格下设置白色属性 /// </summary> [JsonProperty("spec_name")] public string SpecName { get; set; } } }
24.75
69
0.59798
[ "Apache-2.0" ]
CJ1210/open-pdd-net-sdk
PddOpenSdk/PddOpenSdk/Models/Request/Goods/GetGoodsSpecIdRequestModel.cs
569
C#
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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.Windows.Media.Imaging; using ThinkGeo.MapSuite.Drawing; using ThinkGeo.MapSuite.Styles; using ThinkGeo.MapSuite.WpfDesktop.Extension; namespace ThinkGeo.MapSuite.GisEditor.Plugins { [Serializable] public class IconTextStylePlugin : StylePlugin { public IconTextStylePlugin() : base() { Name = GisEditor.LanguageManager.GetStringResource("IconTextStyleName"); Description = GisEditor.LanguageManager.GetStringResource("IconTextStylePluginDescription"); SmallIcon = new BitmapImage(new Uri("/GisEditorPluginCore;component/Images/styles_text.png", UriKind.RelativeOrAbsolute)); LargeIcon = new BitmapImage(new Uri("/GisEditorPluginCore;component/Images/styles_text.png", UriKind.RelativeOrAbsolute)); IsDefault = true; RequireColumnNames = true; Index = StylePluginOrder.AdvancedStyle; StyleCategories = StyleCategories.Label; } protected override Style GetDefaultStyleCore() { var textStyle = new IconTextStyle() { Font = new GeoFont("Arial", 9), TextSolidBrush = new GeoSolidBrush(GeoColor.SimpleColors.Black), XOffsetInPixel = 0, YOffsetInPixel = 0, RotationAngle = 0, OverlappingRule = LabelOverlappingRule.NoOverlapping, ForceHorizontalLabelForLine = false, GridSize = 100, SplineType = SplineType.Default, DuplicateRule = LabelDuplicateRule.UnlimitedDuplicateLabels, SuppressPartialLabels = false, LabelAllLineParts = false, LabelAllPolygonParts = true, TextLineSegmentRatio = 1.5, IconImageScale = 1, MaskMargin = 3, PolygonLabelingLocationMode = PolygonLabelingLocationMode.BoundingBoxCenter }; textStyle.HaloPen.Width = 3; return textStyle; } //protected override StyleEditResult EditStyleCore(Style style, StyleArguments arguments) //{ // return StylePluginHelper.CustomizeStyle<IconTextStyle>(style, arguments); //} protected override StyleLayerListItem GetStyleLayerListItemCore(Style style) { return new IconTextStyleItem(style); } } }
39.52439
134
0.663376
[ "Apache-2.0" ]
ThinkGeo/GIS-Editor
MapSuiteGisEditor/GisEditorPluginCore/StylePlugins/Text/IconTextStylePlugin.cs
3,241
C#
using GraphQL.Types; using Hilfswerk.Models; namespace Hilfswerk.GraphApi { public class CreateHelferInputType : InputObjectGraphType<HelferCreateModel> { public CreateHelferInputType() { Name = "CreateHelferInput"; Field(p => p.Anmerkung); Field<KontaktInputType>("kontakt", resolve: context => context.Source.Kontakt); Field<ListGraphType<TaetigkeitEnumType>>("taetigkeiten", resolve: context => context.Source.Taetigkeiten); Field(p => p.hatAuto); Field(p => p.istRisikogruppe); Field(p => p.istZivildiener); Field(p => p.istFreiwilliger); Field(p => p.istAusgelastet); Field(p => p.istDSGVOKonform); } } }
33.391304
118
0.608073
[ "MIT" ]
moejoe/hilfswerk
src/GraphApi/Types/CreateHelferInputType.cs
770
C#
using GoodToCode.Framework.Validation; using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Linq; namespace GoodToCode.Framework.Test { [TestClass()] public class CoreValidatorTests { [TestMethod()] public void Core_Validator_Validate() { var validator = new EntityValidator<CustomerInfo>(new CustomerInfo()); var failedRules = validator.Validate(); Assert.IsTrue(failedRules.Any()); } } }
27.055556
82
0.661191
[ "Apache-2.0" ]
goodtocode/Framework
Src/Framework.Test.Core/Validation/ValidatorTests.cs
489
C#
using System; using System.CodeDom; using NUnit.Framework; using Umbraco.CodeGen.Configuration; using Umbraco.CodeGen.Definitions; using Umbraco.CodeGen.Generators.Bcl; namespace Umbraco.CodeGen.Tests.Generators.Bcl { public class EntityDescriptionGeneratorTests : TypeCodeGeneratorTestBase { protected EntityDescription EntityDescription; private DocumentType documentType; [SetUp] public void SetUp() { Configuration = CodeGeneratorConfiguration.Create().MediaTypes; Candidate = Type = new CodeTypeDeclaration(); Generator = new EntityDescriptionGenerator(Configuration); documentType = new DocumentType { Info = { Alias = "anEntity" } }; EntityDescription = documentType.Info; } [Test] public void Generate_Alias_PascalCasesName() { Generate(); Assert.AreEqual(EntityDescription.Alias.PascalCase(), Candidate.Name); } [Test] [ExpectedException(typeof(Exception), ExpectedMessage = "Cannot generate entity with alias null or empty")] [TestCase(null)] [TestCase("")] [TestCase(" ")] public void Generate_Alias_NullOrEmpty_Throws(string alias) { EntityDescription.Alias=alias; Generate(); } [Test] public void Generate_Name_NotEqualToAlias_AddsDisplayNameAttribute() { EntityDescription.Name = "A fancy name"; Generate(); Assert.AreEqual("A fancy name", FindAttributeValue("DisplayName")); } [Test] [TestCase("An Entity")] [TestCase("AnEntity")] [TestCase("anEntity")] public void Generate_Name_LowerCaseOrSplitEqualsAlias_OmitsDisplayName(string name) { EntityDescription.Name = name; Generate(); Assert.IsNull(FindAttribute("DisplayName")); } [Test] public void Generate_Description_WhenNonEmpty_AddsDescriptionAttribute() { const string expectedDescription = "A fancy description"; EntityDescription.Description = expectedDescription; Generate(); Assert.AreEqual(expectedDescription, FindAttributeValue("Description")); } [Test] [TestCase(null)] [TestCase("")] [TestCase(" ")] public void Generate_Description_WhenMissingOrWhiteSpace_OmitsDescription(string description) { EntityDescription.Description = description; Generate(); Assert.IsNull(FindAttribute("Description")); } protected virtual void Generate() { Generator.Generate(Candidate, EntityDescription); } } }
31.977273
115
0.621891
[ "MIT" ]
lars-erik/Umbraco.CodeGen
Umbraco.CodeGen.Tests/Generators/Bcl/EntityDescriptionGeneratorTests.cs
2,816
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //------------------------------------------------------------------------------ namespace Sarre_Red_Herring_Limited.Properties { using System; /// <summary> /// A strongly-typed resource class, for looking up localized strings, etc. /// </summary> // This class was auto-generated by the StronglyTypedResourceBuilder // class via a tool like ResGen or Visual Studio. // To add or remove a member, edit your .ResX file then rerun ResGen // with the /str option, or rebuild your VS project. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] internal class Resources { private static global::System.Resources.ResourceManager resourceMan; private static global::System.Globalization.CultureInfo resourceCulture; [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] internal Resources() { } /// <summary> /// Returns the cached ResourceManager instance used by this class. /// </summary> [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] internal static global::System.Resources.ResourceManager ResourceManager { get { if (object.ReferenceEquals(resourceMan, null)) { global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Sarre_Red_Herring_Limited.Properties.Resources", typeof(Resources).Assembly); resourceMan = temp; } return resourceMan; } } /// <summary> /// Overrides the current thread's CurrentUICulture property for all /// resource lookups using this strongly typed resource class. /// </summary> [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] internal static global::System.Globalization.CultureInfo Culture { get { return resourceCulture; } set { resourceCulture = value; } } } }
43.96875
191
0.617271
[ "MIT" ]
GentianGashi/Store-Fishermen-Info-WinForms
Sarre Red Herring Limited/Properties/Resources.Designer.cs
2,816
C#
using System; using System.Collections.Generic; using Android.Runtime; using Java.Interop; namespace FrostWire.Libtorrent.Swig { // Metadata.xml XPath class reference: path="/api/package[@name='com.frostwire.jlibtorrent.swig']/class[@name='peer_unsnubbed_alert']" [global::Android.Runtime.Register ("com/frostwire/jlibtorrent/swig/peer_unsnubbed_alert", DoNotGenerateAcw=true)] public partial class Peer_unsnubbed_alert : global::FrostWire.Libtorrent.Swig.Peer_alert { // Metadata.xml XPath field reference: path="/api/package[@name='com.frostwire.jlibtorrent.swig']/class[@name='peer_unsnubbed_alert']/field[@name='alert_type']" [Register ("alert_type")] public static int AlertType { get { const string __id = "alert_type.I"; var __v = _members.StaticFields.GetInt32Value (__id); return __v; } } // Metadata.xml XPath field reference: path="/api/package[@name='com.frostwire.jlibtorrent.swig']/class[@name='peer_unsnubbed_alert']/field[@name='priority']" [Register ("priority")] public static int Priority { get { const string __id = "priority.I"; var __v = _members.StaticFields.GetInt32Value (__id); return __v; } } // Metadata.xml XPath field reference: path="/api/package[@name='com.frostwire.jlibtorrent.swig']/class[@name='peer_unsnubbed_alert']/field[@name='static_category']" [Register ("static_category")] public static global::FrostWire.Libtorrent.Swig.Alert_category_t StaticCategory { get { const string __id = "static_category.Lcom/frostwire/jlibtorrent/swig/alert_category_t;"; var __v = _members.StaticFields.GetObjectValue (__id); return global::Java.Lang.Object.GetObject<global::FrostWire.Libtorrent.Swig.Alert_category_t> (__v.Handle, JniHandleOwnership.TransferLocalRef); } } internal new static readonly JniPeerMembers _members = new XAPeerMembers ("com/frostwire/jlibtorrent/swig/peer_unsnubbed_alert", typeof (Peer_unsnubbed_alert)); internal static new IntPtr class_ref { get { return _members.JniPeerType.PeerReference.Handle; } } public override global::Java.Interop.JniPeerMembers JniPeerMembers { get { return _members; } } protected override IntPtr ThresholdClass { get { return _members.JniPeerType.PeerReference.Handle; } } protected override global::System.Type ThresholdType { get { return _members.ManagedPeerType; } } protected Peer_unsnubbed_alert (IntPtr javaReference, JniHandleOwnership transfer) : base (javaReference, transfer) {} // Metadata.xml XPath constructor reference: path="/api/package[@name='com.frostwire.jlibtorrent.swig']/class[@name='peer_unsnubbed_alert']/constructor[@name='peer_unsnubbed_alert' and count(parameter)=2 and parameter[1][@type='long'] and parameter[2][@type='boolean']]" [Register (".ctor", "(JZ)V", "")] protected unsafe Peer_unsnubbed_alert (long cPtr, bool cMemoryOwn) : base (IntPtr.Zero, JniHandleOwnership.DoNotTransfer) { const string __id = "(JZ)V"; if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero) return; try { JniArgumentValue* __args = stackalloc JniArgumentValue [2]; __args [0] = new JniArgumentValue (cPtr); __args [1] = new JniArgumentValue (cMemoryOwn); var __r = _members.InstanceMethods.StartCreateInstance (__id, ((object) this).GetType (), __args); SetHandle (__r.Handle, JniHandleOwnership.TransferLocalRef); _members.InstanceMethods.FinishCreateInstance (__id, this, __args); } finally { } } // Metadata.xml XPath method reference: path="/api/package[@name='com.frostwire.jlibtorrent.swig']/class[@name='peer_unsnubbed_alert']/method[@name='getCPtr' and count(parameter)=1 and parameter[1][@type='com.frostwire.jlibtorrent.swig.peer_unsnubbed_alert']]" [Register ("getCPtr", "(Lcom/frostwire/jlibtorrent/swig/peer_unsnubbed_alert;)J", "")] protected static unsafe long GetCPtr (global::FrostWire.Libtorrent.Swig.Peer_unsnubbed_alert obj) { const string __id = "getCPtr.(Lcom/frostwire/jlibtorrent/swig/peer_unsnubbed_alert;)J"; try { JniArgumentValue* __args = stackalloc JniArgumentValue [1]; __args [0] = new JniArgumentValue ((obj == null) ? IntPtr.Zero : ((global::Java.Lang.Object) obj).Handle); var __rm = _members.StaticMethods.InvokeInt64Method (__id, __args); return __rm; } finally { } } } }
41.150943
272
0.734755
[ "Apache-2.0" ]
PascalBenstrong/TorrentStream
obj/Debug/generated/src/FrostWire.Libtorrent.Swig.Peer_unsnubbed_alert.cs
4,362
C#
using UnityEngine; using UnityEditor; using System.Collections; public class AlphaNumericSort : BaseHierarchySort { public override int Compare(GameObject lhs, GameObject rhs) { if (lhs == rhs) return 0; if (lhs == null) return -1; if (rhs == null) return 1; return EditorUtility.NaturalCompare(lhs.name, rhs.name); } }
23.714286
60
0.728916
[ "MIT" ]
CannibalK9/fireperson
Assets/SpritesAndBones/Scripts/Editor/AlphaNumericSort.cs
334
C#
using System; using System.Globalization; using ForgedSoftware.Measurement.Number; using NUnit.Framework; namespace ForgedSoftware.MeasurementTests { [TestFixture] public class TestVector { #region General [Test] public void TestVectorCreateWithArray() { var v1 = new Vector3(new[] {2.3, 4.5, 2.1}); Assert.AreEqual(2.3, v1.X); Assert.AreEqual(4.5, v1.Y); Assert.AreEqual(2.1, v1.Z); } [Test] [ExpectedException(typeof (ArgumentException))] public void TestVectorCreateWithArrayNotEnoughValues() { var v1 = new Vector3(new[] {2.1}); } #endregion #region Vector Specific Functions [Test] public void TestVectorMagnitude() { Assert.AreEqual(0, Vector3.Origin.Magnitude); Assert.AreEqual(1, Vector3.XAxis.Magnitude); Assert.AreEqual(3.7417, new Vector3(1, 2, 3).Magnitude, 0.0001); } [Test] public void TestVectorSumComponents() { Assert.AreEqual(32.5, new Vector3(-5, 36, 1.5).SumComponents); } [Test] public void TestVectorDotProduct() { var v1 = new Vector3(1, 2, 3); var v2 = new Vector3(3, 2, 1); Assert.AreEqual(0, Vector3.XAxis.DotProduct(Vector3.YAxis)); Assert.AreEqual(3, Vector3.ZAxis.DotProduct(v1)); Assert.AreEqual(0, v2.DotProduct(Vector3.Origin)); Assert.AreEqual(10, v1.DotProduct(v2)); } [Test] public void TestVectorCrossProduct() { var v1 = new Vector3(2, 3, 4); var v2 = new Vector3(3, 1, 1); Assert.AreEqual(Vector3.ZAxis, Vector3.XAxis.CrossProduct(Vector3.YAxis)); Assert.AreEqual(new Vector3(-1, 10, -7), v1.CrossProduct(v2)); Assert.AreEqual(new Vector3(1, -10, 7), v2.CrossProduct(v1)); } [Test] public void TestVectorAngle() { Assert.AreEqual(Math.PI/2, Vector3.XAxis.Angle(Vector3.YAxis)); Assert.AreEqual(0, Vector3.ZAxis.Angle(Vector3.ZAxis)); } [Test] public void TestVectorUnitVectors() { Assert.IsFalse(Vector3.Origin.IsUnitVector()); Assert.IsTrue(Vector3.XAxis.IsUnitVector()); Assert.IsTrue(Vector3.YAxis.IsUnitVector()); Assert.IsTrue(Vector3.ZAxis.IsUnitVector()); Assert.IsFalse(new Vector3(0, 1, 1).IsUnitVector()); Assert.IsTrue(new Vector3(Math.Sqrt(0.5), 0, Math.Sqrt(0.5)).IsUnitVector()); } [Test] public void TestVectorNormalize() { Assert.IsTrue(Vector3.XAxis.Normalize.IsUnitVector()); Assert.IsTrue(new Vector3(1, 45345, -23.656).Normalize.IsUnitVector()); Assert.IsTrue(new Vector3(1454534.234234, 453452.123, -2233.656123).Normalize.IsUnitVector()); } [Test] [ExpectedException(typeof(DivideByZeroException))] public void TestVectorNormalizeDivideByZero() { var v1 = Vector3.Origin.Normalize; } [Test] public void TestVectorDistance() { Assert.AreEqual(Math.Sqrt(2), Vector3.XAxis.Distance(Vector3.YAxis)); Assert.AreEqual(1, Vector3.XAxis.Distance(Vector3.Origin)); } [Test] public void TestVectorIsPerpendicular() { Assert.IsTrue(Vector3.XAxis.IsPerpendicular(Vector3.YAxis)); Assert.IsTrue(Vector3.Origin.IsPerpendicular(new Vector3(233, 23, 2))); Assert.IsFalse(Vector3.XAxis.IsPerpendicular(new Vector3(2, 3, 4))); } #endregion #region Math [Test] public void TestVectorAdd() { Assert.AreEqual(Vector3.XAxis, Vector3.Origin.Add(Vector3.XAxis)); Assert.AreEqual(new Vector3(2, 3.5, 29.1), new Vector3(2, 4.5, 7).Add(new Vector3(0, -1, 22.1))); } [Test] public void TestVectorSubtract() { Assert.AreEqual(new Vector3(-1, 0, 1), Vector3.ZAxis.Subtract(Vector3.XAxis)); Assert.AreEqual(new Vector3(2, 1, -4.5), new Vector3(5, 2, 3.5).Subtract(new Vector3(3, 1, 8))); } [Test] public void TestVectorMultiply() { var v1 = new Vector3(5, 1, 2); var v2 = new Vector3(1, 7, -1); Assert.AreEqual(Vector3.YAxis, Vector3.ZAxis.Multiply(Vector3.XAxis)); Assert.AreEqual(new Vector3(-15, 7, 34), v1.Multiply(v2)); Assert.AreEqual(new Vector3(15, -7, -34), v2.Multiply(v1)); } [Test] [ExpectedException(typeof (InvalidOperationException))] public void TestVectorDivide() { var v1 = new Vector3(1, 1, 1).Divide(new Vector3(2, 3, 4)); } [Test] [ExpectedException(typeof (InvalidOperationException))] public void TestVectorAddScalar() { var v1 = new Vector3(1, 1, 1).Add(2); } [Test] [ExpectedException(typeof (InvalidOperationException))] public void TestVectorSubtractScalar() { var v1 = new Vector3(1, 1, 1).Subtract(2); } [Test] public void TestVectorMultiplyScalar() { var v1 = new Vector3(5, 1, 2); var v2 = new Vector3(1, 7, -1); Assert.AreEqual(new Vector3(0, 0, 13), Vector3.ZAxis.Multiply(13)); Assert.AreEqual(new Vector3(15, 3, 6), v1.Multiply(3)); Assert.AreEqual(new Vector3(-2, -14, 2), v2.Multiply(-2)); } [Test] public void TestVectorDivideScalar() { var v1 = new Vector3(2, 82, 6); var v2 = new Vector3(25, 7.5, -2.5); Assert.AreEqual(new Vector3(0, 0, -2), Vector3.ZAxis.Divide(-0.5)); Assert.AreEqual(new Vector3(1, 41, 3), v1.Divide(2)); Assert.AreEqual(new Vector3(-5, -1.5, 0.5), v2.Divide(-5)); } [Test] public void TestVectorNegate() { Assert.AreEqual(new Vector3(0, -1, 0), Vector3.YAxis.Negate()); Assert.AreEqual(new Vector3(343, -23.56, -8), new Vector3(-343, 23.56, 8).Negate()); } #endregion #region Math Functions [Test] public void TestVectorPow() { Assert.AreEqual(Vector3.Origin, Vector3.Origin.Pow(3)); Assert.AreEqual(Vector3.XAxis, Vector3.XAxis.Pow(5)); Assert.AreEqual(new Vector3(16, 144, 9), new Vector3(4, 12, 3).Pow(2)); } [Test] public void TestVectorSqrt() { Assert.AreEqual(Vector3.Origin, Vector3.Origin.Sqrt()); Assert.AreEqual(Vector3.XAxis, Vector3.XAxis.Sqrt()); Assert.AreEqual(new Vector3(4, 1, 2), new Vector3(16, 1, 4).Sqrt()); } [Test] public void TestVectorMaxMin() { var v1 = new Vector3(1, 2, 3); var v2 = new Vector3(2, 3, 4); Assert.AreEqual(Vector3.XAxis, Vector3.XAxis.Max(Vector3.YAxis)); Assert.AreEqual(Vector3.ZAxis, Vector3.ZAxis.Max(Vector3.Origin)); Assert.AreEqual(Vector3.XAxis, Vector3.XAxis.Min(Vector3.YAxis)); Assert.AreEqual(Vector3.Origin, Vector3.ZAxis.Min(Vector3.Origin)); Assert.AreEqual(v2, v1.Max(v2)); Assert.AreEqual(v1, v1.Min(v2)); } #endregion #region Equals, Compare, Equality [Test] public void TestVectorEquals() { var v1 = new Vector3(1, 2, 3); var v2 = new Vector3(1, 3, 2); var v3 = new Vector3(1, 2, 3); Assert.AreEqual(v1, v3); Assert.AreNotEqual(v1, v2); } [Test] public void TestVectorEqualsStandardVectors() { Assert.AreEqual(Vector3.XAxis, Vector3.XAxis); Assert.AreNotEqual(Vector3.Origin, Vector3.XAxis); Assert.AreNotEqual(Vector3.XAxis, Vector3.YAxis); Assert.AreNotEqual(Vector3.YAxis, Vector3.ZAxis); } [Test] public void TestVectorCompare() { var v1 = new Vector3(7, 8, 10); var v2 = new Vector3(4.2, 7.777, 6.54); Assert.AreEqual(-1, Vector3.Origin.CompareTo(Vector3.XAxis)); Assert.AreEqual(0, Vector3.YAxis.CompareTo(Vector3.ZAxis)); Assert.AreEqual(1, Vector3.XAxis.CompareTo(Vector3.Origin)); Assert.AreEqual(1, v1.CompareTo(v2)); } [Test] [ExpectedException(typeof (ArgumentException))] public void TestVectorCompareWithWrongType() { var a = new Vector3(8, 7, 6).CompareTo("8.76"); } [Test] public void TestVectorLessThanGreaterThan() { Assert.IsTrue(Vector3.XAxis > Vector3.Origin); Assert.IsFalse(Vector3.XAxis > Vector3.YAxis); Assert.IsTrue(Vector3.YAxis >= Vector3.ZAxis); Assert.IsTrue(new Vector3(2, 3, 4) < new Vector3(3, 3, 4)); Assert.IsTrue(Vector3.XAxis <= Vector3.ZAxis); } [Test] public void TestVectorCopy() { var v1 = new Vector3(23, 122, -2323.2); Assert.AreEqual(v1, v1.Clone()); } #endregion #region ToString [Test] public void TestVectorToString() { Assert.AreEqual("(9, 3, 4)", new Vector3(9, 3, 4).ToString()); Assert.AreEqual("(0, 0, -2)", new Vector3(0, 0, -2).ToString()); Assert.AreEqual("(3.42, 8.9543, 7)", new Vector3(3.42, 8.9543, 7).ToString()); } [Test] public void TestVectorCustomToString() { var v1 = new Vector3(8324.32, 2342.34, -23.5456534); Assert.AreEqual("8324.32", v1.ToString("X", CultureInfo.InvariantCulture)); Assert.AreEqual("2342", v1.ToString("YF0", null)); Assert.AreEqual("-2.355E+001", v1.ToString("ZE3", null)); Assert.AreEqual("(x=8324, y=2342, z=-24)", v1.ToString("LF0", null)); Assert.AreEqual("[8.3E+003, 2.3E+003, -2.4E+001]", v1.ToString("AE1", null)); Assert.AreEqual("(8324, 2342, -24)", v1.ToString("GF0", null)); } #endregion } }
30.637993
100
0.679106
[ "MIT" ]
forgedsoftware/measurementcs
MeasurementTests/TestVector.cs
8,550
C#
using System.Drawing; using AForge.Imaging.Filters; namespace FacialRecog { public static class Filters { public static Bitmap ToGray(this Bitmap input) { Grayscale gray = new Grayscale(0.2125, 0.7154, 0.0721); return new Bitmap(gray.Apply(input)); } public static Bitmap SquareIt(this Bitmap input, int sz) { ResizeBilinear square = new ResizeBilinear(sz, sz); return new Bitmap(square.Apply(input)); } } }
31.125
67
0.628514
[ "MIT" ]
DimitryRakhlei/CST
FaceDetection/FacialRecog/Filters.cs
500
C#
// ------------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See LICENSE in the repo root for license information. // ------------------------------------------------------------------------------------------------- using Microsoft.Health.Fhir.Core.Features.Search; using Microsoft.Health.Fhir.Core.Features.Search.SearchValues; using Microsoft.Health.Fhir.SqlServer.Features.Schema.Model; namespace Microsoft.Health.Fhir.SqlServer.Features.Storage.TvpRowGeneration { internal class BulkTokenSearchParameterV1RowGenerator : BulkSearchParameterRowGenerator<TokenSearchValue, BulkTokenSearchParamTableTypeV1Row> { private short _resourceIdSearchParamId; public BulkTokenSearchParameterV1RowGenerator(SqlServerFhirModel model, SearchParameterToSearchValueTypeMap searchParameterTypeMap) : base(model, searchParameterTypeMap) { } internal override bool TryGenerateRow(int offset, short searchParamId, TokenSearchValue searchValue, out BulkTokenSearchParamTableTypeV1Row row) { // For composite generator contains BulkTokenSearchParameterV1RowGenerator, it is possible to call TryGenerateRow before GenerateRow on this Generator. EnsureInitialized(); // don't store if the code is empty or if this is the Resource _id parameter. The id is already maintained on the Resource table. if (string.IsNullOrWhiteSpace(searchValue.Code) || searchParamId == _resourceIdSearchParamId) { row = default; return false; } row = new BulkTokenSearchParamTableTypeV1Row( offset, searchParamId, searchValue.System == null ? null : Model.GetSystemId(searchValue.System), searchValue.Code); return true; } protected override void Initialize() => _resourceIdSearchParamId = Model.GetSearchParamId(SearchParameterNames.IdUri); } }
46.76087
163
0.640167
[ "MIT" ]
BearerPipelineTest/fhir-server
src/Microsoft.Health.Fhir.SqlServer/Features/Storage/TvpRowGeneration/BulkTokenSearchParameterV1RowGenerator.cs
2,153
C#
/* * Copyright 2013 ThirdMotion, Inc. * * 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; namespace strange.examples.multiplecontexts.events.social { public enum SocialEvent { FULFILL_CURRENT_USER_REQUEST, FULFILL_FRIENDS_REQUEST, REWARD_TEXT } }
30.925926
77
0.705389
[ "Apache-2.0" ]
lorenchorley/StrangeIoC-Updated
Assets/Examples/Scripts/IoC/Multiple Contexts/events/social/controller/SocialEvent.cs
835
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //------------------------------------------------------------------------------ using System; using System.Reflection; [assembly: System.Reflection.AssemblyCompanyAttribute("Akka.NET Team")] [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] [assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © 2013-2020 Akka.NET Team")] [assembly: System.Reflection.AssemblyFileVersionAttribute("1.4.4.0")] [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.4.4")] [assembly: System.Reflection.AssemblyProductAttribute("Samples.Cluster.Simple")] [assembly: System.Reflection.AssemblyTitleAttribute("Samples.Cluster.Simple")] [assembly: System.Reflection.AssemblyVersionAttribute("1.4.4.0")] // Generated by the MSBuild WriteCodeFragment class.
44.12
95
0.664551
[ "Apache-2.0" ]
ingted/akkaTest
src/examples/Cluster/Samples.Cluster.Simple/obj/Debug/net461/Samples.Cluster.Simple.AssemblyInfo.cs
1,104
C#
#region license /* The MIT License (MIT) * Copyright (c) 2016 Skoth * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #endregion using System; using System.Collections.Generic; using System.Linq; using System.Text; using UnityEngine; using System.Collections; namespace KSPCommEngr { // Forms node array and builds adjacency list for each node // Inspired by Unity 5 2D: Pathfinding lynda.com course by Jesse Freeman public class Graph { public int rows = 0; public int columns = 0; public Node[] nodes; public int[,] grid; public int Distance(Node x, Node y) { int xRow = x.Id / rows + 1; int yRow = y.Id / rows + 1; int xCol = x.Id % rows + 1; int yCol = y.Id % rows + 1; return Math.Abs(yRow - xRow) + Math.Abs(yCol - xCol); } // Grid that forms tile map public Graph() { grid = Grid.Instance; SetupNeighbors(); } private void SetupNeighbors() { rows = grid.GetLength(0); columns = grid.GetLength(1); // Since each node is going to store a reference to its own neighbors, // the node data can be kept as a flattened array nodes = new Node[grid.Length]; // Setup initial empty nodes for (int i = 0; i < nodes.Length; ++i) { var node = new Node(); node.Id = i; nodes[i] = node; } // Build adjacency list for each node of grid for (int r = 0; r < rows; ++r) { for (int c = 0; c < columns; ++c) { Node node = nodes[columns * r + c]; // 1 represents unusable node for path, 0 is an available tile // If the current node in the grid is an obstacle, check if corner // If not, a crossing formed by parallel neighbors can be created if (grid[r, c] == 1) { if (r > 0 && r < rows - 1 && c > 0 && c < columns - 1) { if (grid[r - 1, c] == 1 && grid[r + 1, c] == 1 && grid[r, c - 1] == 0 && grid[r, c + 1] == 0) { node.adjacencyList.Add(nodes[columns * r + c + 1]); node.adjacencyList.Add(nodes[columns * r + c - 1]); } else if (grid[r - 1, c] == 0 && grid[r + 1, c] == 0 && grid[r, c - 1] == 1 && grid[r, c + 1] == 1) { node.adjacencyList.Add(nodes[columns * (r - 1) + c]); node.adjacencyList.Add(nodes[columns * (r + 1) + c]); } } else // Boundary locations { // Left or right columns if ((c == 0 || c == columns - 1) && (r > 0 && r < rows - 1) && (grid[r - 1, c] == 0 && grid[r + 1, c] == 0)) { node.adjacencyList.Add(nodes[columns * (r - 1) + c]); node.adjacencyList.Add(nodes[columns * (r + 1) + c]); } // Top or bottom rows else if ((r == 0 || r == rows - 1) && (c > 0 && c < columns - 1) && (grid[r, c - 1] == 0 && grid[r, c + 1] == 0)) { node.adjacencyList.Add(nodes[columns * r + c + 1]); node.adjacencyList.Add(nodes[columns * r + c - 1]); } } continue; } // Up if (r > 0) { node.adjacencyList.Add(nodes[columns * (r - 1) + c]); } // Right if (c < columns - 1) { node.adjacencyList.Add(nodes[columns * r + c + 1]); } // Down if (r < rows - 1) { node.adjacencyList.Add(nodes[columns * (r + 1) + c]); } // Left if (c > 0) { node.adjacencyList.Add(nodes[columns * r + c - 1]); } } } } private Graph Update() { return this; } } }
38.3625
96
0.422613
[ "MIT" ]
Skoth/KSP-Comm-Sys
KSPCommEngr/Graph.cs
6,140
C#
using ElectronNET.API; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Mvc; using SilveR.Helpers; using SilveR.Models; using SilveR.StatsModels; using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Threading.Tasks; namespace SilveR.Controllers { public class ValuesController : Controller { private readonly ISilveRRepository repository; public ValuesController(ISilveRRepository repository) { this.repository = repository; } [HttpGet] public async Task<JsonResult> GetLevels(string treatment, int datasetID, bool includeNull) { if (treatment == null) return Json(new List<string>()); Dataset dataset = await repository.GetDatasetByID(datasetID); DataTable datatable = dataset.DatasetToDataTable(); if (datatable.GetVariableNames().Contains(treatment)) { List<string> levelsList = datatable.GetLevels(treatment).ToList(); if (includeNull) { levelsList.Insert(0, String.Empty); //add empty item } return Json(levelsList); } else { return Json(new List<string>()); } } [HttpGet] public JsonResult GetSMPAInteractions(List<string> selectedTreatments) { if (selectedTreatments != null) { List<string> interactions = SingleMeasuresParametricAnalysisModel.DetermineInteractions(selectedTreatments); return Json(interactions); } else { return Json(new List<string>()); } } [HttpGet] public JsonResult GetSMPASelectedEffectsList(List<string> selectedTreatments) { if (selectedTreatments != null) { List<string> selectedEffectsList = SingleMeasuresParametricAnalysisModel.DetermineSelectedEffectsList(selectedTreatments); return Json(selectedEffectsList); } else { return Json(new List<string>()); } } [HttpGet] public JsonResult GetRMPAInteractions(List<string> selectedTreatments) { if (selectedTreatments != null) { List<string> interactions = RepeatedMeasuresParametricAnalysisModel.DetermineInteractions(selectedTreatments); return Json(interactions); } else { return Json(new List<string>()); } } [HttpGet] public JsonResult GetRMPASelectedEffectsList(List<string> selectedTreatments, string repeatedFactor) { if (selectedTreatments != null && repeatedFactor != null) { List<string> selectedEffectsList = RepeatedMeasuresParametricAnalysisModel.DetermineSelectedEffectsList(selectedTreatments, repeatedFactor); return Json(selectedEffectsList); } else { return Json(new List<string>()); } } [HttpGet] public JsonResult GetIncompleteFactorialInteractions(List<string> selectedTreatments) { if (selectedTreatments != null) { List<string> interactions = IncompleteFactorialParametricAnalysisModel.DetermineInteractions(selectedTreatments); return Json(interactions); } else { return Json(new List<string>()); } } [HttpGet] public JsonResult GetIncompleteFactorialSelectedEffectsList(List<string> selectedTreatments) { if (selectedTreatments != null) { List<string> selectedEffectsList = IncompleteFactorialParametricAnalysisModel.DetermineSelectedEffectsList(selectedTreatments); return Json(selectedEffectsList); } else { return Json(new List<string>()); } } [HttpPost] public void OpenUrl(string url) { //if (url.StartsWith("http")) //{ Electron.Shell.OpenExternalAsync(url); //} //else //{ // Electron.Shell.OpenItemAsync(Path.Combine(wwwRoot, url)); //} } } }
30.549669
156
0.559939
[ "MIT" ]
robalexclark/SilveR
SilveR/Controllers/ValuesController.cs
4,615
C#
using Catalog.API.Entities; using Catalog.API.Repositories; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Threading.Tasks; namespace Catalog.API.Controllers { [Route("api/v1/[controller]")] [ApiController] public class CatalogController : ControllerBase { private readonly IProductRepository _repository; private readonly ILogger<CatalogController> _logger; public CatalogController(IProductRepository repository, ILogger<CatalogController> logger) { _repository = repository; _logger = logger; } [HttpGet] [ProducesResponseType(typeof(IEnumerable<Product>),(int)HttpStatusCode.OK)] public async Task<ActionResult< IEnumerable<Product>>> GetProducts() { var products = await _repository.GetProducts(); return Ok( products); } [HttpGet("{id:length(24)}",Name ="GetProduct")] [ProducesResponseType((int)HttpStatusCode.NotFound)] [ProducesResponseType(typeof(IEnumerable<Product>), (int)HttpStatusCode.OK)] public async Task<ActionResult<IEnumerable<Product>>> GetProductById(string id) { var product = await _repository.GetProduct(id); if (product == null) { _logger.LogError($"Product with id: {id}, not found."); return NotFound(); } return Ok(product); } [Route("[action]/{category}", Name = "GetProductByCategory")] [HttpGet] [ProducesResponseType(typeof(IEnumerable<Product>), (int)HttpStatusCode.OK)] public async Task<ActionResult<IEnumerable<Product>>> GetProductByCategory(string category) { var products = await _repository.GetProductByCategory(category); return Ok(products); } [HttpPost] [ProducesResponseType (typeof(Product),(int)HttpStatusCode.OK)] public async Task<ActionResult<Product>> CreateProduct([FromBody] Product product) { await _repository.CreateProduct(product); return CreatedAtRoute("GetProduct", new { id = product.Id }, product); } [HttpPut] [ProducesResponseType(typeof(Product), (int)HttpStatusCode.OK)] public async Task<IActionResult> UpdateProduct([FromBody] Product product) { return Ok(await _repository.UpdateProduct(product)); } [HttpDelete("{id:length(24)}", Name = "DeleteProduct")] [ProducesResponseType(typeof(Product), (int)HttpStatusCode.OK)] public async Task<IActionResult> DeleteProductById(string id) { return Ok(await _repository.DeleteProduct(id)); } } }
35.329268
99
0.645495
[ "MIT" ]
mdsn85/AspnetMicroservies
src/Catalog/Catalog.API/Controllers/CatalogController.cs
2,899
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; namespace NMSLocationSwap { static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Form1()); } } }
22.347826
65
0.614786
[ "MIT" ]
Kevin0M16/NMSLocationSwap
NMSLocationSwap/Program.cs
516
C#
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using MyGitHubProject.Models; namespace MyGitHubProject.Services { // This class holds sample data used by some generated pages to show how they can be used. // TODO WTS: Delete this file once your app is using real data. public static class SampleDataService { private static IEnumerable<SampleOrder> AllOrders() { // The following is order summary data var data = new ObservableCollection<SampleOrder> { new SampleOrder { OrderId = 70, OrderDate = new DateTime(2017, 05, 24), Company = "Company F", ShipTo = "Francisco Pérez-Olaeta", OrderTotal = 2490.00, Status = "Closed", Symbol = (char)57643 // Symbol.Globe }, new SampleOrder { OrderId = 71, OrderDate = new DateTime(2017, 05, 24), Company = "Company CC", ShipTo = "Soo Jung Lee", OrderTotal = 1760.00, Status = "Closed", Symbol = (char)57737 // Symbol.Audio }, new SampleOrder { OrderId = 72, OrderDate = new DateTime(2017, 06, 03), Company = "Company Z", ShipTo = "Run Liu", OrderTotal = 2310.00, Status = "Closed", Symbol = (char)57699 // Symbol.Calendar }, new SampleOrder { OrderId = 73, OrderDate = new DateTime(2017, 06, 05), Company = "Company Y", ShipTo = "John Rodman", OrderTotal = 665.00, Status = "Closed", Symbol = (char)57620 // Symbol.Camera }, new SampleOrder { OrderId = 74, OrderDate = new DateTime(2017, 06, 07), Company = "Company H", ShipTo = "Elizabeth Andersen", OrderTotal = 560.00, Status = "Shipped", Symbol = (char)57633 // Symbol.Clock }, new SampleOrder { OrderId = 75, OrderDate = new DateTime(2017, 06, 07), Company = "Company F", ShipTo = "Francisco Pérez-Olaeta", OrderTotal = 810.00, Status = "Shipped", Symbol = (char)57661 // Symbol.Contact }, new SampleOrder { OrderId = 76, OrderDate = new DateTime(2017, 06, 11), Company = "Company I", ShipTo = "Sven Mortensen", OrderTotal = 196.50, Status = "Shipped", Symbol = (char)57619 // Symbol.Favorite }, new SampleOrder { OrderId = 77, OrderDate = new DateTime(2017, 06, 14), Company = "Company BB", ShipTo = "Amritansh Raghav", OrderTotal = 270.00, Status = "New", Symbol = (char)57615 // Symbol.Home }, new SampleOrder { OrderId = 78, OrderDate = new DateTime(2017, 06, 14), Company = "Company A", ShipTo = "Anna Bedecs", OrderTotal = 736.00, Status = "New", Symbol = (char)57625 // Symbol.Mail }, new SampleOrder { OrderId = 79, OrderDate = new DateTime(2017, 06, 18), Company = "Company K", ShipTo = "Peter Krschne", OrderTotal = 800.00, Status = "New", Symbol = (char)57806 // Symbol.OutlineStar }, }; return data; } // TODO WTS: Remove this once your image gallery page is displaying real data public static ObservableCollection<SampleImage> GetGallerySampleData() { var data = new ObservableCollection<SampleImage>(); for (int i = 1; i <= 10; i++) { data.Add(new SampleImage() { ID = $"{i}", Source = $"ms-appx:///Assets/SampleData/SamplePhoto{i}.png", Name = $"Image sample {i}" }); } return data; } } }
36.368794
94
0.404056
[ "Apache-2.0" ]
mvegaca/MyGitHubProject
code/MyGitHubProject/Services/SampleDataService.cs
5,132
C#
namespace Observer { public class ConcreteSubject : Subject { public string SubjectState { get; set; } } }
14.125
42
0.707965
[ "MIT" ]
Platiplus/dotnet_design_patterns
behavioral/Observer/Observer/ConcreteSubject.cs
115
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.IO; using System.IO.Pipes; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis { /// <summary> /// This type provides information about the runtime which is hosting application. It must be included in a concrete /// target framework to be used. /// </summary> internal static class RuntimeHostInfo { internal static bool IsCoreClrRuntime => !IsDesktopRuntime; internal static string ToolExtension => IsCoreClrRuntime ? "dll" : "exe"; private static string NativeToolSuffix => PlatformInformation.IsWindows ? ".exe" : ""; /// <summary> /// This gets information about invoking a tool on the current runtime. This will attempt to /// execute a tool as an EXE when on desktop and using dotnet when on CoreClr. /// </summary> internal static (string processFilePath, string commandLineArguments, string toolFilePath) GetProcessInfo( string toolFilePathWithoutExtension, string commandLineArguments ) { Debug.Assert( !toolFilePathWithoutExtension.EndsWith(".dll") && !toolFilePathWithoutExtension.EndsWith(".exe") ); var nativeToolFilePath = $"{toolFilePathWithoutExtension}{NativeToolSuffix}"; if (IsCoreClrRuntime && File.Exists(nativeToolFilePath)) { return (nativeToolFilePath, commandLineArguments, nativeToolFilePath); } var toolFilePath = $"{toolFilePathWithoutExtension}.{ToolExtension}"; if (IsDotNetHost(out string? pathToDotNet)) { commandLineArguments = $@"exec ""{toolFilePath}"" {commandLineArguments}"; return (pathToDotNet!, commandLineArguments, toolFilePath); } else { return (toolFilePath, commandLineArguments, toolFilePath); } } #if NET472 internal static bool IsDesktopRuntime => true; internal static bool IsDotNetHost([NotNullWhen(true)] out string? pathToDotNet) { pathToDotNet = null; return false; } internal static NamedPipeClientStream CreateNamedPipeClient( string serverName, string pipeName, PipeDirection direction, PipeOptions options ) => new NamedPipeClientStream(serverName, pipeName, direction, options); #elif NETCOREAPP internal static bool IsDesktopRuntime => false; private const string DotNetHostPathEnvironmentName = "DOTNET_HOST_PATH"; private static bool IsDotNetHost(out string? pathToDotNet) { pathToDotNet = GetDotNetPathOrDefault(); return true; } /// <summary> /// Get the path to the dotnet executable. This will throw in the case it is not properly setup /// by the environment. /// </summary> private static string GetDotNetPath() { var pathToDotNet = Environment.GetEnvironmentVariable(DotNetHostPathEnvironmentName); if (string.IsNullOrEmpty(pathToDotNet)) { throw new InvalidOperationException($"{DotNetHostPathEnvironmentName} is not set"); } return pathToDotNet; } /// <summary> /// Get the path to the dotnet executable. In the case the host did not provide this information /// in the environment this will return simply "dotnet". /// </summary> private static string GetDotNetPathOrDefault() { var pathToDotNet = Environment.GetEnvironmentVariable(DotNetHostPathEnvironmentName); return pathToDotNet ?? "dotnet"; } #else #error Unsupported configuration #endif } }
37.880734
121
0.636716
[ "MIT" ]
belav/roslyn
src/Compilers/Shared/RuntimeHostInfo.cs
4,131
C#
using System; using System.Text; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.IdentityModel.Tokens; using Abp.AspNetCore; using Abp.AspNetCore.Configuration; using Abp.AspNetCore.SignalR; using Abp.Modules; using Abp.Reflection.Extensions; using Abp.Zero.Configuration; using Project1.Authentication.JwtBearer; using Project1.Configuration; using Project1.EntityFrameworkCore; using Microsoft.AspNetCore.Mvc.ApplicationParts; namespace Project1 { [DependsOn( typeof(Project1ApplicationModule), typeof(Project1EntityFrameworkModule), typeof(AbpAspNetCoreModule) ,typeof(AbpAspNetCoreSignalRModule) )] public class Project1WebCoreModule : AbpModule { private readonly IWebHostEnvironment _env; private readonly IConfigurationRoot _appConfiguration; public Project1WebCoreModule(IWebHostEnvironment env) { _env = env; _appConfiguration = env.GetAppConfiguration(); } public override void PreInitialize() { Configuration.DefaultNameOrConnectionString = _appConfiguration.GetConnectionString( Project1Consts.ConnectionStringName ); // Use database for language management Configuration.Modules.Zero().LanguageManagement.EnableDbLocalization(); Configuration.Modules.AbpAspNetCore() .CreateControllersForAppServices( typeof(Project1ApplicationModule).GetAssembly() ); ConfigureTokenAuth(); } private void ConfigureTokenAuth() { IocManager.Register<TokenAuthConfiguration>(); var tokenAuthConfig = IocManager.Resolve<TokenAuthConfiguration>(); tokenAuthConfig.SecurityKey = new SymmetricSecurityKey(Encoding.ASCII.GetBytes(_appConfiguration["Authentication:JwtBearer:SecurityKey"])); tokenAuthConfig.Issuer = _appConfiguration["Authentication:JwtBearer:Issuer"]; tokenAuthConfig.Audience = _appConfiguration["Authentication:JwtBearer:Audience"]; tokenAuthConfig.SigningCredentials = new SigningCredentials(tokenAuthConfig.SecurityKey, SecurityAlgorithms.HmacSha256); tokenAuthConfig.Expiration = TimeSpan.FromDays(1); } public override void Initialize() { IocManager.RegisterAssemblyByConvention(typeof(Project1WebCoreModule).GetAssembly()); } public override void PostInitialize() { IocManager.Resolve<ApplicationPartManager>() .AddApplicationPartsIfNotAddedBefore(typeof(Project1WebCoreModule).Assembly); } } }
35.701299
151
0.698436
[ "MIT" ]
buiphuocnhat/DemoBoilerPlate
aspnet-core/src/Project1.Web.Core/Project1WebCoreModule.cs
2,751
C#
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using Picasso2.BLL.BIZ; using Picasso2.DTO; using System.Collections.Generic; using Picasso2.BLL.Kernel; namespace UnitTestGenerator { [TestClass] public class UTComponent { [TestMethod] public void TestTileComponentList() { var componentList = BLL.BLComponent.getComponentList(1, "Middle"); Assert.AreEqual(componentList[0].InheritedTypeId, 3); } [TestMethod] public void TestGetComponentGenericType() { ComponentDTO componentDTO = BLL.BLComponent.getComponentInfo(2); Assert.AreEqual(componentDTO.InheritedType.GenericType.Title, "input"); } [TestMethod] public void TestGetComponentTokenList() { ComponentDTO componentDTO = BLL.BLComponent.getComponentInfo(2); var placeHolderList = Parser.getPlaceHolderList(componentDTO.InheritedType.GenericType.TokenizeString,Constant.pattern); Assert.AreEqual(placeHolderList.Count, 10); } [TestMethod] public void TestgetTokenList() { BLL.BLComponent.getComponentTotalTokenList(40017,1,1); } [TestMethod] public void TestsaveAndDeleteComponent() { decimal contentId = 1; string tileName = "col2"; decimal inheritedTypeId = 1; var componentList1 = BLL.BLComponent.getComponentList(contentId, tileName); InheritedTypeDTO inheritedTypeDTO = BLL.BLInheritedType.getInheritedTypeInfo("INPUT"); ComponentDTO componentDTO = BLL.BLComponent.saveComponent(contentId,inheritedTypeId,tileName,"",""); var componentList2 = BLL.BLComponent.getComponentList(contentId, tileName); Assert.AreEqual(componentList1.Count+1, componentList2.Count); BLL.BLComponent.deleteComponent(componentDTO); var componentList3 = BLL.BLComponent.getComponentList(contentId, tileName); Assert.AreEqual(componentList1.Count, componentList3.Count); } [TestMethod] public void TestsaveAndDeleteComponentTokenList() { int componentId = 40007; ComponentDTO componentDTO = BLL.BLComponent.getComponentInfo(componentId); List<ComponentTokenDTO> componentTokenList = new List<ComponentTokenDTO>(); ComponentTokenDTO componentTokenDTO = new ComponentTokenDTO(); componentTokenDTO.TokenName = "test"; componentTokenDTO.TokenValue = "test"; componentTokenDTO.ComponentId = componentDTO.ComponentId; componentTokenList.Add(componentTokenDTO); BLL.BLComponent.saveComponentTokenList(componentDTO.ComponentId, componentTokenList); componentTokenList = BLL.BLComponent.getComponentTokenList(componentDTO.ComponentId); Assert.AreEqual(componentTokenList.Count, 1); BLL.BLComponent.deleteComponentToken(componentId); componentTokenList = BLL.BLComponent.getComponentTokenList(componentDTO.ComponentId); Assert.AreEqual(componentTokenList.Count, 0); } [TestMethod] public void TestsaveAndDeleteInheritedComponent() { //int componentId = 40007; //string componentName = "newComponent"; //decimal projectId = 1; //ComponentDTO componentDTO = BLL.BLComponent.getComponentInfo(componentId); //List<ComponentTokenDTO> componentTokenList1 = BLL.BLComponent.getComponentTokenList(componentId); //componentDTO.ComponentTokenList = componentTokenList1; //InheritedTypeDTO inheritedTypeDTO = BLL.BLInheritedType.saveInheritedType(componentDTO, componentName, projectId); //Assert.AreEqual(inheritedTypeDTO.Title, componentName); //List<InheritedTokenDTO> InheritedTokenList1 = BLL.BLInheritedToken.getInheritedTokenList(inheritedTypeDTO.InheritedTypeId); //Assert.AreEqual(InheritedTokenList1.Count, 0); //int id = BLL.BLInheritedType.deleteInheritedType(inheritedTypeDTO.InheritedTypeId); //List<InheritedTokenDTO> InheritedTokenList2 = BLL.BLInheritedToken.getInheritedTokenList(inheritedTypeDTO.InheritedTypeId); //Assert.AreEqual(InheritedTokenList2.Count, 0); } } }
37.563025
137
0.676957
[ "Apache-2.0" ]
hasanzadegan/Picasso3
UnitTestProject1/UnitTest/UTComponent.cs
4,472
C#
// http://careercup.com/question?id=5717301963784192 // // Write code that could parse an expression like a bash // brace expansion. // // For example // // (a,b,cy)n,m // // should output { "an", "bn", "cyn", "m" } // // ((a,b)o(m,n)p,b) == { "aomp", "aonp", "bomp", "bonp", "b" } // using System; using System.Collections.Generic; using System.Linq; static class Program { static List<String> Parse(this String s) { int start = 0; return s.Parse(ref start); } static List<String> Parse(this String s, ref int start) { var result = new List<String>(); var elements = new List<String>(); elements.Add(String.Empty); while (start < s.Length) { char symbol = s[start]; start++; switch (symbol) { case '(': { var newElements = new List<String>(); var insideElements = s.Parse(ref start); foreach (var insideElement in insideElements) { newElements.AddRange(elements.Select(x => x + insideElement)); } elements.Clear(); elements.AddRange(newElements); } break; case ')': { // Evacuate and return result.AddRange(elements); return result; } case ',': { // Evacuate the current elements into the result result.AddRange(elements); elements.Clear(); elements.Add(String.Empty); } break; default: { // Add to current elements. Like (x, y, z)a will add a to all of the symbols // inside the parentheses elements = elements.ConvertAll(x => x + symbol); } break; } } result.AddRange(elements); return result; } static void Main() { new [] { Tuple.Create( "(a,b,cy)n,m", new [] { "an", "bn", "cyn", "m" }), Tuple.Create( "((a,b)o(m,n)p,b)", new [] { "aomp", "bomp", "aonp", "bonp", "b" }) }. ToList(). ForEach(x => { var result = x.Item1.Parse(); if (!result.SequenceEqual(x.Item2)) { throw new Exception(String.Format( "Idiot you are. [{0}] vs [{1}]", String.Join(", ", result), String.Join(", ", x.Item2) )); } }); Console.WriteLine("All appears to be well"); } }
31.108911
106
0.387015
[ "MIT" ]
Gerula/interviews
CareerCup/Google/bash_expression.cs
3,142
C#
using Nfantom.JsonRpc.Client; using Nfantom.RPC.Infrastructure; namespace Nfantom.RPC.Shh { /// <Summary> /// shh_version /// Returns the current whisper protocol version. /// Parameters /// none /// Returns /// String - The current whisper protocol version /// Example /// Request /// curl -X POST --data '{"jsonrpc":"2.0","method":"shh_version","params":[],"id":67}' /// Result /// { /// "id":67, /// "jsonrpc": "2.0", /// "result": "2" /// } /// </Summary> public class ShhVersion : GenericRpcRequestResponseHandlerNoParam<string>, IShhVersion { public ShhVersion(IClient client) : base(client, ApiMethods.shh_version.ToString()) { } } }
27.758621
94
0.537888
[ "MIT" ]
PeaStew/Nfantom
Nfantom.RPC/Shh/ShhVersion.cs
805
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable using System; using System.Collections; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Threading; using System.Threading.Tasks; using Azure; using Azure.Core; using Azure.Core.Pipeline; using Azure.ResourceManager; using Azure.ResourceManager.Resources; namespace Azure.ResourceManager.Network { /// <summary> /// A class representing a collection of <see cref="IPGroupResource" /> and their operations. /// Each <see cref="IPGroupResource" /> in the collection will belong to the same instance of <see cref="ResourceGroupResource" />. /// To get an <see cref="IPGroupCollection" /> instance call the GetIPGroups method from an instance of <see cref="ResourceGroupResource" />. /// </summary> public partial class IPGroupCollection : ArmCollection, IEnumerable<IPGroupResource>, IAsyncEnumerable<IPGroupResource> { private readonly ClientDiagnostics _ipGroupIpGroupsClientDiagnostics; private readonly IpGroupsRestOperations _ipGroupIpGroupsRestClient; /// <summary> Initializes a new instance of the <see cref="IPGroupCollection"/> class for mocking. </summary> protected IPGroupCollection() { } /// <summary> Initializes a new instance of the <see cref="IPGroupCollection"/> class. </summary> /// <param name="client"> The client parameters to use in these operations. </param> /// <param name="id"> The identifier of the parent resource that is the target of operations. </param> internal IPGroupCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { _ipGroupIpGroupsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Network", IPGroupResource.ResourceType.Namespace, Diagnostics); TryGetApiVersion(IPGroupResource.ResourceType, out string ipGroupIpGroupsApiVersion); _ipGroupIpGroupsRestClient = new IpGroupsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, ipGroupIpGroupsApiVersion); #if DEBUG ValidateResourceId(Id); #endif } internal static void ValidateResourceId(ResourceIdentifier id) { if (id.ResourceType != ResourceGroupResource.ResourceType) throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceGroupResource.ResourceType), nameof(id)); } /// <summary> /// Creates or updates an ipGroups in a specified resource group. /// Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ipGroups/{ipGroupsName} /// Operation Id: IpGroups_CreateOrUpdate /// </summary> /// <param name="waitUntil"> <see cref="WaitUntil.Completed"/> if the method should wait to return until the long-running operation has completed on the service; <see cref="WaitUntil.Started"/> if it should return after starting the operation. For more information on long-running operations, please see <see href="https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/LongRunningOperations.md"> Azure.Core Long-Running Operation samples</see>. </param> /// <param name="ipGroupsName"> The name of the ipGroups. </param> /// <param name="data"> Parameters supplied to the create or update IpGroups operation. </param> /// <param name="cancellationToken"> The cancellation token to use. </param> /// <exception cref="ArgumentException"> <paramref name="ipGroupsName"/> is an empty string, and was expected to be non-empty. </exception> /// <exception cref="ArgumentNullException"> <paramref name="ipGroupsName"/> or <paramref name="data"/> is null. </exception> public virtual async Task<ArmOperation<IPGroupResource>> CreateOrUpdateAsync(WaitUntil waitUntil, string ipGroupsName, IPGroupData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(ipGroupsName, nameof(ipGroupsName)); Argument.AssertNotNull(data, nameof(data)); using var scope = _ipGroupIpGroupsClientDiagnostics.CreateScope("IPGroupCollection.CreateOrUpdate"); scope.Start(); try { var response = await _ipGroupIpGroupsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, ipGroupsName, data, cancellationToken).ConfigureAwait(false); var operation = new NetworkArmOperation<IPGroupResource>(new IPGroupOperationSource(Client), _ipGroupIpGroupsClientDiagnostics, Pipeline, _ipGroupIpGroupsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, ipGroupsName, data).Request, response, OperationFinalStateVia.AzureAsyncOperation); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; } catch (Exception e) { scope.Failed(e); throw; } } /// <summary> /// Creates or updates an ipGroups in a specified resource group. /// Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ipGroups/{ipGroupsName} /// Operation Id: IpGroups_CreateOrUpdate /// </summary> /// <param name="waitUntil"> <see cref="WaitUntil.Completed"/> if the method should wait to return until the long-running operation has completed on the service; <see cref="WaitUntil.Started"/> if it should return after starting the operation. For more information on long-running operations, please see <see href="https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/LongRunningOperations.md"> Azure.Core Long-Running Operation samples</see>. </param> /// <param name="ipGroupsName"> The name of the ipGroups. </param> /// <param name="data"> Parameters supplied to the create or update IpGroups operation. </param> /// <param name="cancellationToken"> The cancellation token to use. </param> /// <exception cref="ArgumentException"> <paramref name="ipGroupsName"/> is an empty string, and was expected to be non-empty. </exception> /// <exception cref="ArgumentNullException"> <paramref name="ipGroupsName"/> or <paramref name="data"/> is null. </exception> public virtual ArmOperation<IPGroupResource> CreateOrUpdate(WaitUntil waitUntil, string ipGroupsName, IPGroupData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(ipGroupsName, nameof(ipGroupsName)); Argument.AssertNotNull(data, nameof(data)); using var scope = _ipGroupIpGroupsClientDiagnostics.CreateScope("IPGroupCollection.CreateOrUpdate"); scope.Start(); try { var response = _ipGroupIpGroupsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, ipGroupsName, data, cancellationToken); var operation = new NetworkArmOperation<IPGroupResource>(new IPGroupOperationSource(Client), _ipGroupIpGroupsClientDiagnostics, Pipeline, _ipGroupIpGroupsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, ipGroupsName, data).Request, response, OperationFinalStateVia.AzureAsyncOperation); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; } catch (Exception e) { scope.Failed(e); throw; } } /// <summary> /// Gets the specified ipGroups. /// Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ipGroups/{ipGroupsName} /// Operation Id: IpGroups_Get /// </summary> /// <param name="ipGroupsName"> The name of the ipGroups. </param> /// <param name="expand"> Expands resourceIds (of Firewalls/Network Security Groups etc.) back referenced by the IpGroups resource. </param> /// <param name="cancellationToken"> The cancellation token to use. </param> /// <exception cref="ArgumentException"> <paramref name="ipGroupsName"/> is an empty string, and was expected to be non-empty. </exception> /// <exception cref="ArgumentNullException"> <paramref name="ipGroupsName"/> is null. </exception> public virtual async Task<Response<IPGroupResource>> GetAsync(string ipGroupsName, string expand = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(ipGroupsName, nameof(ipGroupsName)); using var scope = _ipGroupIpGroupsClientDiagnostics.CreateScope("IPGroupCollection.Get"); scope.Start(); try { var response = await _ipGroupIpGroupsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, ipGroupsName, expand, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); return Response.FromValue(new IPGroupResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { scope.Failed(e); throw; } } /// <summary> /// Gets the specified ipGroups. /// Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ipGroups/{ipGroupsName} /// Operation Id: IpGroups_Get /// </summary> /// <param name="ipGroupsName"> The name of the ipGroups. </param> /// <param name="expand"> Expands resourceIds (of Firewalls/Network Security Groups etc.) back referenced by the IpGroups resource. </param> /// <param name="cancellationToken"> The cancellation token to use. </param> /// <exception cref="ArgumentException"> <paramref name="ipGroupsName"/> is an empty string, and was expected to be non-empty. </exception> /// <exception cref="ArgumentNullException"> <paramref name="ipGroupsName"/> is null. </exception> public virtual Response<IPGroupResource> Get(string ipGroupsName, string expand = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(ipGroupsName, nameof(ipGroupsName)); using var scope = _ipGroupIpGroupsClientDiagnostics.CreateScope("IPGroupCollection.Get"); scope.Start(); try { var response = _ipGroupIpGroupsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, ipGroupsName, expand, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); return Response.FromValue(new IPGroupResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { scope.Failed(e); throw; } } /// <summary> /// Gets all IpGroups in a resource group. /// Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ipGroups /// Operation Id: IpGroups_ListByResourceGroup /// </summary> /// <param name="cancellationToken"> The cancellation token to use. </param> /// <returns> An async collection of <see cref="IPGroupResource" /> that may take multiple service requests to iterate over. </returns> public virtual AsyncPageable<IPGroupResource> GetAllAsync(CancellationToken cancellationToken = default) { async Task<Page<IPGroupResource>> FirstPageFunc(int? pageSizeHint) { using var scope = _ipGroupIpGroupsClientDiagnostics.CreateScope("IPGroupCollection.GetAll"); scope.Start(); try { var response = await _ipGroupIpGroupsRestClient.ListByResourceGroupAsync(Id.SubscriptionId, Id.ResourceGroupName, cancellationToken: cancellationToken).ConfigureAwait(false); return Page.FromValues(response.Value.Value.Select(value => new IPGroupResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { scope.Failed(e); throw; } } async Task<Page<IPGroupResource>> NextPageFunc(string nextLink, int? pageSizeHint) { using var scope = _ipGroupIpGroupsClientDiagnostics.CreateScope("IPGroupCollection.GetAll"); scope.Start(); try { var response = await _ipGroupIpGroupsRestClient.ListByResourceGroupNextPageAsync(nextLink, Id.SubscriptionId, Id.ResourceGroupName, cancellationToken: cancellationToken).ConfigureAwait(false); return Page.FromValues(response.Value.Value.Select(value => new IPGroupResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { scope.Failed(e); throw; } } return PageableHelpers.CreateAsyncEnumerable(FirstPageFunc, NextPageFunc); } /// <summary> /// Gets all IpGroups in a resource group. /// Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ipGroups /// Operation Id: IpGroups_ListByResourceGroup /// </summary> /// <param name="cancellationToken"> The cancellation token to use. </param> /// <returns> A collection of <see cref="IPGroupResource" /> that may take multiple service requests to iterate over. </returns> public virtual Pageable<IPGroupResource> GetAll(CancellationToken cancellationToken = default) { Page<IPGroupResource> FirstPageFunc(int? pageSizeHint) { using var scope = _ipGroupIpGroupsClientDiagnostics.CreateScope("IPGroupCollection.GetAll"); scope.Start(); try { var response = _ipGroupIpGroupsRestClient.ListByResourceGroup(Id.SubscriptionId, Id.ResourceGroupName, cancellationToken: cancellationToken); return Page.FromValues(response.Value.Value.Select(value => new IPGroupResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { scope.Failed(e); throw; } } Page<IPGroupResource> NextPageFunc(string nextLink, int? pageSizeHint) { using var scope = _ipGroupIpGroupsClientDiagnostics.CreateScope("IPGroupCollection.GetAll"); scope.Start(); try { var response = _ipGroupIpGroupsRestClient.ListByResourceGroupNextPage(nextLink, Id.SubscriptionId, Id.ResourceGroupName, cancellationToken: cancellationToken); return Page.FromValues(response.Value.Value.Select(value => new IPGroupResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { scope.Failed(e); throw; } } return PageableHelpers.CreateEnumerable(FirstPageFunc, NextPageFunc); } /// <summary> /// Checks to see if the resource exists in azure. /// Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ipGroups/{ipGroupsName} /// Operation Id: IpGroups_Get /// </summary> /// <param name="ipGroupsName"> The name of the ipGroups. </param> /// <param name="expand"> Expands resourceIds (of Firewalls/Network Security Groups etc.) back referenced by the IpGroups resource. </param> /// <param name="cancellationToken"> The cancellation token to use. </param> /// <exception cref="ArgumentException"> <paramref name="ipGroupsName"/> is an empty string, and was expected to be non-empty. </exception> /// <exception cref="ArgumentNullException"> <paramref name="ipGroupsName"/> is null. </exception> public virtual async Task<Response<bool>> ExistsAsync(string ipGroupsName, string expand = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(ipGroupsName, nameof(ipGroupsName)); using var scope = _ipGroupIpGroupsClientDiagnostics.CreateScope("IPGroupCollection.Exists"); scope.Start(); try { var response = await _ipGroupIpGroupsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, ipGroupsName, expand, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { scope.Failed(e); throw; } } /// <summary> /// Checks to see if the resource exists in azure. /// Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ipGroups/{ipGroupsName} /// Operation Id: IpGroups_Get /// </summary> /// <param name="ipGroupsName"> The name of the ipGroups. </param> /// <param name="expand"> Expands resourceIds (of Firewalls/Network Security Groups etc.) back referenced by the IpGroups resource. </param> /// <param name="cancellationToken"> The cancellation token to use. </param> /// <exception cref="ArgumentException"> <paramref name="ipGroupsName"/> is an empty string, and was expected to be non-empty. </exception> /// <exception cref="ArgumentNullException"> <paramref name="ipGroupsName"/> is null. </exception> public virtual Response<bool> Exists(string ipGroupsName, string expand = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(ipGroupsName, nameof(ipGroupsName)); using var scope = _ipGroupIpGroupsClientDiagnostics.CreateScope("IPGroupCollection.Exists"); scope.Start(); try { var response = _ipGroupIpGroupsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, ipGroupsName, expand, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { scope.Failed(e); throw; } } IEnumerator<IPGroupResource> IEnumerable<IPGroupResource>.GetEnumerator() { return GetAll().GetEnumerator(); } IEnumerator IEnumerable.GetEnumerator() { return GetAll().GetEnumerator(); } IAsyncEnumerator<IPGroupResource> IAsyncEnumerable<IPGroupResource>.GetAsyncEnumerator(CancellationToken cancellationToken) { return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); } } }
58.896755
488
0.660072
[ "MIT" ]
ChenTanyi/azure-sdk-for-net
sdk/network/Azure.ResourceManager.Network/src/Generated/IPGroupCollection.cs
19,966
C#
using System; using System.Collections.Generic; namespace UIKit.Extensions { internal static class ArrayExt { internal static TResult[] Map<TValue, TResult>(this TValue[] array, Func<TValue, TResult> mapper) { if (array == null) return null; TResult[] newArray = new TResult[array.Length]; for (int index = 0; index < array.Length; index++) newArray[index] = mapper.Invoke(array[index]); return newArray; } internal static List<TValue> AsList<TValue>(this IEnumerable<TValue> array) => new List<TValue>(array); } }
32.894737
111
0.616
[ "MIT" ]
Projeto-Indigenas/uikit-unity
Assets/Runtime/Extensions/Array.cs
625
C#
// Prexonite // // Copyright (c) 2014, Christian Klauser // All rights reserved. // // Redistribution and use in source and binary forms, with or without modification, // are permitted provided that the following conditions are met: // // Redistributions of source code must retain the above copyright notice, // this list of conditions and the following disclaimer. // Redistributions in binary form must reproduce the above copyright notice, // this list of conditions and the following disclaimer in the // documentation and/or other materials provided with the distribution. // The names of the contributors may be used to endorse or // promote products derived from this software without specific prior written permission. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. // IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, // INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES // (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING // IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using Prexonite.Compiler.Cil; using Prexonite.Types; namespace Prexonite.Commands.List; public class Skip : CoroutineCommand, ICilCompilerAware { #region Singleton private Skip() { } public static Skip Instance { get; } = new(); #endregion protected override IEnumerable<PValue> CoroutineRun(ContextCarrier sctxCarrier, PValue[] args) { return CoroutineRunStatically(sctxCarrier, args); } [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Coroutine")] protected static IEnumerable<PValue> CoroutineRunStatically(ContextCarrier sctxCarrier, PValue[] args) { if (sctxCarrier == null) throw new ArgumentNullException(nameof(sctxCarrier)); if (args == null) throw new ArgumentNullException(nameof(args)); var sctx = sctxCarrier.StackContext; var i = 0; if (args.Length < 1) throw new PrexoniteException("Skip requires at least one argument."); var index = (int) args[0].ConvertTo(sctx, PType.Int, true).Value; for (var j = 1; j < args.Length; j++) { var arg = args[j]; var set = Map._ToEnumerable(sctx, arg); if (set == null) throw new PrexoniteException(arg + " is neither a list nor a coroutine."); foreach (var value in set) { if (i++ >= index) yield return value; } } } public static PValue RunStatically(StackContext sctx, PValue[] args) { var carrier = new ContextCarrier(); var corctx = new CoroutineContext(sctx, CoroutineRunStatically(carrier, args)); carrier.StackContext = corctx; return sctx.CreateNativePValue(new Coroutine(corctx)); } /// <summary> /// A flag indicating whether the command acts like a pure function. /// </summary> /// <remarks> /// Pure commands can be applied at compile time. /// </remarks> [Obsolete] public override bool IsPure => false; #region ICilCompilerAware Members /// <summary> /// Asses qualification and preferences for a certain instruction. /// </summary> /// <param name = "ins">The instruction that is about to be compiled.</param> /// <returns>A set of <see cref = "CompilationFlags" />.</returns> CompilationFlags ICilCompilerAware.CheckQualification(Instruction ins) { return CompilationFlags.PrefersRunStatically; } /// <summary> /// Provides a custom compiler routine for emitting CIL byte code for a specific instruction. /// </summary> /// <param name = "state">The compiler state.</param> /// <param name = "ins">The instruction to compile.</param> void ICilCompilerAware.ImplementInCil(CompilerState state, Instruction ins) { throw new NotSupportedException(); } #endregion }
38.612903
102
0.652882
[ "BSD-3-Clause" ]
chklauser/prx
Prexonite/Commands/List/Skip.cs
4,788
C#
using NBitcoin; using System; namespace WalletWasabi.Exceptions { public class InsufficientBalanceException : Exception { public InsufficientBalanceException(Money minimum, Money actual) : base($"Needed: {minimum.ToString(false, true)} BTC, got only: {actual.ToString(false, true)} BTC.") { } } }
23.692308
168
0.746753
[ "MIT" ]
Nurdur/WalletWasabi
WalletWasabi/Exceptions/InsufficientBalanceException.cs
310
C#
using System; using System.Collections.Generic; using System.Threading.Tasks; using Orchard.DisplayManagement.Handlers; using Orchard.DisplayManagement.Shapes; using Orchard.Environment.Cache; namespace Orchard.DisplayManagement.Views { public class ShapeResult : IDisplayResult { private string _defaultLocation; private IDictionary<string,string> _otherLocations; public string _differentiator; private string _prefix; private string _cacheId; private readonly string _shapeType; private readonly Func<IBuildShapeContext, dynamic> _shapeBuilder; private readonly Func<dynamic, Task> _processing; private Action<CacheContext> _cache; private string _groupId; public ShapeResult(string shapeType, Func<IBuildShapeContext, dynamic> shapeBuilder) :this(shapeType, shapeBuilder, null) { } public ShapeResult(string shapeType, Func<IBuildShapeContext, dynamic> shapeBuilder, Func<dynamic, Task> processing) { // The shape type is necessary before the shape is created as it will drive the placement // resolution which itself can prevent the shape from being created. _shapeType = shapeType; _shapeBuilder = shapeBuilder; _processing = processing; } public void Apply(BuildDisplayContext context) { ApplyImplementation(context, context.DisplayType); } public void Apply(BuildEditorContext context) { ApplyImplementation(context, "Edit"); } private void ApplyImplementation(BuildShapeContext context, string displayType) { if (String.IsNullOrEmpty(_differentiator)) { _differentiator = _prefix; } // Look into specific implementations of placements (like placement.info files) var placement = context.FindPlacement((IShape) context.Shape, _differentiator, displayType); // If no placement is found, use the default location if (placement == null) { // Look for mapped display type locations if (_otherLocations != null) { _otherLocations.TryGetValue(displayType, out _defaultLocation); } placement = new Descriptors.PlacementInfo() { Location = _defaultLocation }; } // If there are no placement or it's explicitely noop then stop rendering execution if (String.IsNullOrEmpty(placement.Location) || placement.Location == "-") { return; } // Parse group placement. _groupId = placement.GetGroup(); // If the shape's group doesn't match the currently rendered one, return if (!String.Equals(context.GroupId ?? "", _groupId ?? "", StringComparison.OrdinalIgnoreCase)) { return; } var newShape = _shapeBuilder(context); // Ignore it if the driver returned a null shape. if (newShape == null) { return; } ShapeMetadata newShapeMetadata = newShape.Metadata; newShapeMetadata.Prefix = _prefix; newShapeMetadata.DisplayType = displayType; newShapeMetadata.PlacementSource = placement.Source; newShapeMetadata.Tab = placement.GetTab(); // The _processing callback is used to delay execution of costly initialization // that can be prevented by caching if(_processing != null) { newShapeMetadata.OnProcessing(_processing); } // Apply cache settings if(!String.IsNullOrEmpty(_cacheId) && _cache != null) { _cache(newShapeMetadata.Cache(_cacheId)); } // If a specific shape is provided, remove all previous alternates and wrappers. if (!String.IsNullOrEmpty(placement.ShapeType)) { newShapeMetadata.Type = placement.ShapeType; newShapeMetadata.Alternates.Clear(); newShapeMetadata.Wrappers.Clear(); } if (placement.Alternates != null) { foreach (var alternate in placement.Alternates) { newShapeMetadata.Alternates.Add(alternate); } } if (placement.Wrappers != null) { foreach (var wrapper in placement.Wrappers) { newShapeMetadata.Wrappers.Add(wrapper); } } dynamic parentShape = context.Shape; if(placement.IsLayoutZone()) { parentShape = context.Layout; } var position = placement.GetPosition(); var zones = placement.GetZones(); foreach(var zone in zones) { if(parentShape == null) { break; } var zoneProperty = parentShape.Zones; if (zoneProperty != null) { // parentShape is a ZoneHolding parentShape = zoneProperty[zone]; } else { // try to access it as a member parentShape = parentShape[zone]; } } if (String.IsNullOrEmpty(position)) { parentShape.Add(newShape); } else { parentShape.Add(newShape, position); } } /// <summary> /// Sets the prefix of the form elements rendered in the shape. /// </summary> /// <remarks> /// The goal is to isolate each shape when edited together. /// </remarks> public ShapeResult Prefix(string prefix) { _prefix = prefix; return this; } /// <summary> /// Sets the default location of the shape when no specific placement applies. /// </summary> public ShapeResult Location(string location) { _defaultLocation = location; return this; } /// <summary> /// Sets the location to use for a matching display type. /// </summary> public ShapeResult Location(string displayType, string location) { if(_otherLocations == null) { _otherLocations = new Dictionary<string, string>(2); } _otherLocations[displayType] = location; return this; } /// <summary> /// Sets a discriminator that is used to find the location of the shape when two shapes of the same type are displayed. /// </summary> public ShapeResult Differentiator(string differentiator) { _differentiator = differentiator; return this; } /// <summary> /// Sets the group identifier the shape will be rendered in. /// </summary> /// <param name="groupId"></param> /// <returns></returns> public ShapeResult OnGroup(string groupId) { _groupId = groupId; return this; } /// <summary> /// Sets the caching properties of the shape to render. /// </summary> public ShapeResult Cache(string cacheId, Action<CacheContext> cache = null) { _cacheId = cacheId; _cache = cache; return this; } } }
32.44856
127
0.544578
[ "BSD-3-Clause" ]
TrustMan/TOSoB
src/Orchard.DisplayManagement/Views/ShapeResult.cs
7,887
C#
using Microsoft.Extensions.DependencyInjection; using System; using System.Collections.Generic; using System.Text; using Xamarin.Essentials.Implementation; using Xamarin.Essentials.Interfaces; using YogaMaster.ViewModels; namespace YogaMaster.Shared.Services { public static class ContainerExtension { public static IServiceProvider ConfigureServices(Action<ServiceCollection> configure = null) { var services = new ServiceCollection(); services.AddTransient<HomePageViewModel>(); services.AddTransient<SettingsViewModel>(); services.AddTransient<TimerViewModel>(); services.AddTransient<TimerExectuesViewModel>(); services.AddSingleton<INavigationService, NavigationService>(); services.AddSingleton<IConnectivity, ConnectivityImplementation>(); services.AddSingleton<IPreferences, PreferencesImplementation>(); services.AddSingleton<IShare, ShareImplementation>(); services.AddSingleton<IBrowser, BrowserImplementation>(); services.AddSingleton<IAnalytics, AppCenterAnalyticsImplementation>(); services.AddSingleton<IMessagingService, MessagingService>(); services.AddSingleton<IThemeService, ThemeService>(); configure?.Invoke(services); var serviceProvider = services.BuildServiceProvider(); serviceProvider.CreateScope(); return serviceProvider; } } }
38.538462
100
0.706587
[ "MIT" ]
rravimr/Xamarin
YogaMaster/YogaMaster/YogaMaster/Shared/Services/ContainerExtension.cs
1,505
C#
//////////////////////////////////////////////////////////////////////////////// //NUnit tests for "EF Core Provider for LCPI OLE DB" // IBProvider and Contributors. 02.05.2021. using System; using System.Data; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using Microsoft.EntityFrameworkCore; using NUnit.Framework; using xdb=lcpi.data.oledb; namespace EFCore_LcpiOleDb_Tests.General.Work.DBMS.Firebird.V03_0_0.D1.Query.Operators.SET_001.GreaterThanOrEqual.Complete.NullableInt64.NullableDecimal{ //////////////////////////////////////////////////////////////////////////////// using T_DATA1 =System.Nullable<System.Int64>; using T_DATA2 =System.Nullable<System.Decimal>; //////////////////////////////////////////////////////////////////////////////// //class TestSet_504__param__04__NN public static class TestSet_504__param__04__NN { private const string c_NameOf__TABLE ="DUAL"; private sealed class MyContext:TestBaseDbContext { [Table(c_NameOf__TABLE)] public sealed class TEST_RECORD { [Key] [Column("ID")] public System.Int32? TEST_ID { get; set; } };//class TEST_RECORD //---------------------------------------------------------------------- public DbSet<TEST_RECORD> testTable { get; set; } //---------------------------------------------------------------------- public MyContext(xdb.OleDbTransaction tr) :base(tr) { }//MyContext };//class MyContext //----------------------------------------------------------------------- [Test] public static void Test_001() { using(var cn=LocalCnHelper.CreateCn()) { cn.Open(); using(var tr=cn.BeginTransaction()) { //insert new record in external transaction using(var db=new MyContext(tr)) { T_DATA1 vv1=null; T_DATA2 vv2=null; var recs=db.testTable.Where(r => vv1 /*OP{*/ >= /*}OP*/ vv2); foreach(var r in recs) { TestServices.ThrowSelectedRow(); }//foreach r db.CheckTextOfLastExecutedCommand (new TestSqlTemplate() .T("SELECT ").N("d","ID").EOL() .T("FROM ").N(c_NameOf__TABLE).T(" AS ").N("d").EOL() .T("WHERE NULL")); }//using db tr.Commit(); }//using tr }//using cn }//Test_001 //----------------------------------------------------------------------- [Test] public static void Test_002() { using(var cn=LocalCnHelper.CreateCn()) { cn.Open(); using(var tr=cn.BeginTransaction()) { //insert new record in external transaction using(var db=new MyContext(tr)) { T_DATA1 vv1=null; T_DATA2 vv2=null; var recs=db.testTable.Where(r => !(vv1 /*OP{*/ >= /*}OP*/ vv2)); foreach(var r in recs) { TestServices.ThrowSelectedRow(); }//foreach r db.CheckTextOfLastExecutedCommand (new TestSqlTemplate() .T("SELECT ").N("d","ID").EOL() .T("FROM ").N(c_NameOf__TABLE).T(" AS ").N("d").EOL() .T("WHERE NULL")); }//using db tr.Commit(); }//using tr }//using cn }//Test_002 };//class TestSet_504__param__04__NN //////////////////////////////////////////////////////////////////////////////// }//namespace EFCore_LcpiOleDb_Tests.General.Work.DBMS.Firebird.V03_0_0.D1.Query.Operators.SET_001.GreaterThanOrEqual.Complete.NullableInt64.NullableDecimal
28.266667
155
0.540389
[ "MIT" ]
ibprovider/Lcpi.EFCore.LcpiOleDb
Tests/General/Source/Work/DBMS/Firebird/V03_0_0/D1/Query/Operators/SET_001/GreaterThanOrEqual/Complete/NullableInt64/NullableDecimal/TestSet_504__param__04__NN.cs
3,394
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. // // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Fixtures.AcceptanceTestsRequiredOptional { using Models; using System.Collections; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; /// <summary> /// Extension methods for ExplicitModel. /// </summary> public static partial class ExplicitModelExtensions { /// <summary> /// Test explicitly required integer. Please put null and the client library /// should throw before the request is sent. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='bodyParameter'> /// </param> public static Error PostRequiredIntegerParameter(this IExplicitModel operations, int bodyParameter) { return Task.Factory.StartNew(s => ((IExplicitModel)s).PostRequiredIntegerParameterAsync(bodyParameter), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); } /// <summary> /// Test explicitly required integer. Please put null and the client library /// should throw before the request is sent. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='bodyParameter'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task<Error> PostRequiredIntegerParameterAsync(this IExplicitModel operations, int bodyParameter, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.PostRequiredIntegerParameterWithHttpMessagesAsync(bodyParameter, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// <summary> /// Test explicitly optional integer. Please put null. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='bodyParameter'> /// </param> public static void PostOptionalIntegerParameter(this IExplicitModel operations, int? bodyParameter = default(int?)) { Task.Factory.StartNew(s => ((IExplicitModel)s).PostOptionalIntegerParameterAsync(bodyParameter), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); } /// <summary> /// Test explicitly optional integer. Please put null. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='bodyParameter'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task PostOptionalIntegerParameterAsync(this IExplicitModel operations, int? bodyParameter = default(int?), CancellationToken cancellationToken = default(CancellationToken)) { await operations.PostOptionalIntegerParameterWithHttpMessagesAsync(bodyParameter, null, cancellationToken).ConfigureAwait(false); } /// <summary> /// Test explicitly required integer. Please put a valid int-wrapper with /// 'value' = null and the client library should throw before the request is /// sent. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='value'> /// </param> public static Error PostRequiredIntegerProperty(this IExplicitModel operations, int value) { return Task.Factory.StartNew(s => ((IExplicitModel)s).PostRequiredIntegerPropertyAsync(value), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); } /// <summary> /// Test explicitly required integer. Please put a valid int-wrapper with /// 'value' = null and the client library should throw before the request is /// sent. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='value'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task<Error> PostRequiredIntegerPropertyAsync(this IExplicitModel operations, int value, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.PostRequiredIntegerPropertyWithHttpMessagesAsync(value, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// <summary> /// Test explicitly optional integer. Please put a valid int-wrapper with /// 'value' = null. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='value'> /// </param> public static void PostOptionalIntegerProperty(this IExplicitModel operations, int? value = default(int?)) { Task.Factory.StartNew(s => ((IExplicitModel)s).PostOptionalIntegerPropertyAsync(value), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); } /// <summary> /// Test explicitly optional integer. Please put a valid int-wrapper with /// 'value' = null. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='value'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task PostOptionalIntegerPropertyAsync(this IExplicitModel operations, int? value = default(int?), CancellationToken cancellationToken = default(CancellationToken)) { await operations.PostOptionalIntegerPropertyWithHttpMessagesAsync(value, null, cancellationToken).ConfigureAwait(false); } /// <summary> /// Test explicitly required integer. Please put a header 'headerParameter' /// =&gt; null and the client library should throw before the request is sent. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='headerParameter'> /// </param> public static Error PostRequiredIntegerHeader(this IExplicitModel operations, int headerParameter) { return Task.Factory.StartNew(s => ((IExplicitModel)s).PostRequiredIntegerHeaderAsync(headerParameter), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); } /// <summary> /// Test explicitly required integer. Please put a header 'headerParameter' /// =&gt; null and the client library should throw before the request is sent. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='headerParameter'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task<Error> PostRequiredIntegerHeaderAsync(this IExplicitModel operations, int headerParameter, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.PostRequiredIntegerHeaderWithHttpMessagesAsync(headerParameter, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// <summary> /// Test explicitly optional integer. Please put a header 'headerParameter' /// =&gt; null. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='headerParameter'> /// </param> public static void PostOptionalIntegerHeader(this IExplicitModel operations, int? headerParameter = default(int?)) { Task.Factory.StartNew(s => ((IExplicitModel)s).PostOptionalIntegerHeaderAsync(headerParameter), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); } /// <summary> /// Test explicitly optional integer. Please put a header 'headerParameter' /// =&gt; null. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='headerParameter'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task PostOptionalIntegerHeaderAsync(this IExplicitModel operations, int? headerParameter = default(int?), CancellationToken cancellationToken = default(CancellationToken)) { await operations.PostOptionalIntegerHeaderWithHttpMessagesAsync(headerParameter, null, cancellationToken).ConfigureAwait(false); } /// <summary> /// Test explicitly required string. Please put null and the client library /// should throw before the request is sent. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='bodyParameter'> /// </param> public static Error PostRequiredStringParameter(this IExplicitModel operations, string bodyParameter) { return Task.Factory.StartNew(s => ((IExplicitModel)s).PostRequiredStringParameterAsync(bodyParameter), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); } /// <summary> /// Test explicitly required string. Please put null and the client library /// should throw before the request is sent. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='bodyParameter'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task<Error> PostRequiredStringParameterAsync(this IExplicitModel operations, string bodyParameter, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.PostRequiredStringParameterWithHttpMessagesAsync(bodyParameter, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// <summary> /// Test explicitly optional string. Please put null. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='bodyParameter'> /// </param> public static void PostOptionalStringParameter(this IExplicitModel operations, string bodyParameter = default(string)) { Task.Factory.StartNew(s => ((IExplicitModel)s).PostOptionalStringParameterAsync(bodyParameter), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); } /// <summary> /// Test explicitly optional string. Please put null. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='bodyParameter'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task PostOptionalStringParameterAsync(this IExplicitModel operations, string bodyParameter = default(string), CancellationToken cancellationToken = default(CancellationToken)) { await operations.PostOptionalStringParameterWithHttpMessagesAsync(bodyParameter, null, cancellationToken).ConfigureAwait(false); } /// <summary> /// Test explicitly required string. Please put a valid string-wrapper with /// 'value' = null and the client library should throw before the request is /// sent. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='value'> /// </param> public static Error PostRequiredStringProperty(this IExplicitModel operations, string value) { return Task.Factory.StartNew(s => ((IExplicitModel)s).PostRequiredStringPropertyAsync(value), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); } /// <summary> /// Test explicitly required string. Please put a valid string-wrapper with /// 'value' = null and the client library should throw before the request is /// sent. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='value'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task<Error> PostRequiredStringPropertyAsync(this IExplicitModel operations, string value, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.PostRequiredStringPropertyWithHttpMessagesAsync(value, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// <summary> /// Test explicitly optional integer. Please put a valid string-wrapper with /// 'value' = null. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='value'> /// </param> public static void PostOptionalStringProperty(this IExplicitModel operations, string value = default(string)) { Task.Factory.StartNew(s => ((IExplicitModel)s).PostOptionalStringPropertyAsync(value), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); } /// <summary> /// Test explicitly optional integer. Please put a valid string-wrapper with /// 'value' = null. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='value'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task PostOptionalStringPropertyAsync(this IExplicitModel operations, string value = default(string), CancellationToken cancellationToken = default(CancellationToken)) { await operations.PostOptionalStringPropertyWithHttpMessagesAsync(value, null, cancellationToken).ConfigureAwait(false); } /// <summary> /// Test explicitly required string. Please put a header 'headerParameter' /// =&gt; null and the client library should throw before the request is sent. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='headerParameter'> /// </param> public static Error PostRequiredStringHeader(this IExplicitModel operations, string headerParameter) { return Task.Factory.StartNew(s => ((IExplicitModel)s).PostRequiredStringHeaderAsync(headerParameter), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); } /// <summary> /// Test explicitly required string. Please put a header 'headerParameter' /// =&gt; null and the client library should throw before the request is sent. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='headerParameter'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task<Error> PostRequiredStringHeaderAsync(this IExplicitModel operations, string headerParameter, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.PostRequiredStringHeaderWithHttpMessagesAsync(headerParameter, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// <summary> /// Test explicitly optional string. Please put a header 'headerParameter' /// =&gt; null. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='bodyParameter'> /// </param> public static void PostOptionalStringHeader(this IExplicitModel operations, string bodyParameter = default(string)) { Task.Factory.StartNew(s => ((IExplicitModel)s).PostOptionalStringHeaderAsync(bodyParameter), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); } /// <summary> /// Test explicitly optional string. Please put a header 'headerParameter' /// =&gt; null. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='bodyParameter'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task PostOptionalStringHeaderAsync(this IExplicitModel operations, string bodyParameter = default(string), CancellationToken cancellationToken = default(CancellationToken)) { await operations.PostOptionalStringHeaderWithHttpMessagesAsync(bodyParameter, null, cancellationToken).ConfigureAwait(false); } /// <summary> /// Test explicitly required complex object. Please put null and the client /// library should throw before the request is sent. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='bodyParameter'> /// </param> public static Error PostRequiredClassParameter(this IExplicitModel operations, Product bodyParameter) { return Task.Factory.StartNew(s => ((IExplicitModel)s).PostRequiredClassParameterAsync(bodyParameter), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); } /// <summary> /// Test explicitly required complex object. Please put null and the client /// library should throw before the request is sent. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='bodyParameter'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task<Error> PostRequiredClassParameterAsync(this IExplicitModel operations, Product bodyParameter, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.PostRequiredClassParameterWithHttpMessagesAsync(bodyParameter, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// <summary> /// Test explicitly optional complex object. Please put null. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='bodyParameter'> /// </param> public static void PostOptionalClassParameter(this IExplicitModel operations, Product bodyParameter = default(Product)) { Task.Factory.StartNew(s => ((IExplicitModel)s).PostOptionalClassParameterAsync(bodyParameter), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); } /// <summary> /// Test explicitly optional complex object. Please put null. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='bodyParameter'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task PostOptionalClassParameterAsync(this IExplicitModel operations, Product bodyParameter = default(Product), CancellationToken cancellationToken = default(CancellationToken)) { await operations.PostOptionalClassParameterWithHttpMessagesAsync(bodyParameter, null, cancellationToken).ConfigureAwait(false); } /// <summary> /// Test explicitly required complex object. Please put a valid class-wrapper /// with 'value' = null and the client library should throw before the request /// is sent. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='value'> /// </param> public static Error PostRequiredClassProperty(this IExplicitModel operations, Product value) { return Task.Factory.StartNew(s => ((IExplicitModel)s).PostRequiredClassPropertyAsync(value), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); } /// <summary> /// Test explicitly required complex object. Please put a valid class-wrapper /// with 'value' = null and the client library should throw before the request /// is sent. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='value'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task<Error> PostRequiredClassPropertyAsync(this IExplicitModel operations, Product value, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.PostRequiredClassPropertyWithHttpMessagesAsync(value, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// <summary> /// Test explicitly optional complex object. Please put a valid class-wrapper /// with 'value' = null. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='value'> /// </param> public static void PostOptionalClassProperty(this IExplicitModel operations, Product value = default(Product)) { Task.Factory.StartNew(s => ((IExplicitModel)s).PostOptionalClassPropertyAsync(value), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); } /// <summary> /// Test explicitly optional complex object. Please put a valid class-wrapper /// with 'value' = null. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='value'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task PostOptionalClassPropertyAsync(this IExplicitModel operations, Product value = default(Product), CancellationToken cancellationToken = default(CancellationToken)) { await operations.PostOptionalClassPropertyWithHttpMessagesAsync(value, null, cancellationToken).ConfigureAwait(false); } /// <summary> /// Test explicitly required array. Please put null and the client library /// should throw before the request is sent. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='bodyParameter'> /// </param> public static Error PostRequiredArrayParameter(this IExplicitModel operations, IList<string> bodyParameter) { return Task.Factory.StartNew(s => ((IExplicitModel)s).PostRequiredArrayParameterAsync(bodyParameter), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); } /// <summary> /// Test explicitly required array. Please put null and the client library /// should throw before the request is sent. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='bodyParameter'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task<Error> PostRequiredArrayParameterAsync(this IExplicitModel operations, IList<string> bodyParameter, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.PostRequiredArrayParameterWithHttpMessagesAsync(bodyParameter, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// <summary> /// Test explicitly optional array. Please put null. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='bodyParameter'> /// </param> public static void PostOptionalArrayParameter(this IExplicitModel operations, IList<string> bodyParameter = default(IList<string>)) { Task.Factory.StartNew(s => ((IExplicitModel)s).PostOptionalArrayParameterAsync(bodyParameter), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); } /// <summary> /// Test explicitly optional array. Please put null. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='bodyParameter'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task PostOptionalArrayParameterAsync(this IExplicitModel operations, IList<string> bodyParameter = default(IList<string>), CancellationToken cancellationToken = default(CancellationToken)) { await operations.PostOptionalArrayParameterWithHttpMessagesAsync(bodyParameter, null, cancellationToken).ConfigureAwait(false); } /// <summary> /// Test explicitly required array. Please put a valid array-wrapper with /// 'value' = null and the client library should throw before the request is /// sent. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='value'> /// </param> public static Error PostRequiredArrayProperty(this IExplicitModel operations, IList<string> value) { return Task.Factory.StartNew(s => ((IExplicitModel)s).PostRequiredArrayPropertyAsync(value), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); } /// <summary> /// Test explicitly required array. Please put a valid array-wrapper with /// 'value' = null and the client library should throw before the request is /// sent. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='value'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task<Error> PostRequiredArrayPropertyAsync(this IExplicitModel operations, IList<string> value, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.PostRequiredArrayPropertyWithHttpMessagesAsync(value, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// <summary> /// Test explicitly optional array. Please put a valid array-wrapper with /// 'value' = null. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='value'> /// </param> public static void PostOptionalArrayProperty(this IExplicitModel operations, IList<string> value = default(IList<string>)) { Task.Factory.StartNew(s => ((IExplicitModel)s).PostOptionalArrayPropertyAsync(value), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); } /// <summary> /// Test explicitly optional array. Please put a valid array-wrapper with /// 'value' = null. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='value'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task PostOptionalArrayPropertyAsync(this IExplicitModel operations, IList<string> value = default(IList<string>), CancellationToken cancellationToken = default(CancellationToken)) { await operations.PostOptionalArrayPropertyWithHttpMessagesAsync(value, null, cancellationToken).ConfigureAwait(false); } /// <summary> /// Test explicitly required array. Please put a header 'headerParameter' =&gt; /// null and the client library should throw before the request is sent. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='headerParameter'> /// </param> public static Error PostRequiredArrayHeader(this IExplicitModel operations, IList<string> headerParameter) { return Task.Factory.StartNew(s => ((IExplicitModel)s).PostRequiredArrayHeaderAsync(headerParameter), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); } /// <summary> /// Test explicitly required array. Please put a header 'headerParameter' =&gt; /// null and the client library should throw before the request is sent. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='headerParameter'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task<Error> PostRequiredArrayHeaderAsync(this IExplicitModel operations, IList<string> headerParameter, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.PostRequiredArrayHeaderWithHttpMessagesAsync(headerParameter, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// <summary> /// Test explicitly optional integer. Please put a header 'headerParameter' /// =&gt; null. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='headerParameter'> /// </param> public static void PostOptionalArrayHeader(this IExplicitModel operations, IList<string> headerParameter = default(IList<string>)) { Task.Factory.StartNew(s => ((IExplicitModel)s).PostOptionalArrayHeaderAsync(headerParameter), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); } /// <summary> /// Test explicitly optional integer. Please put a header 'headerParameter' /// =&gt; null. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='headerParameter'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task PostOptionalArrayHeaderAsync(this IExplicitModel operations, IList<string> headerParameter = default(IList<string>), CancellationToken cancellationToken = default(CancellationToken)) { await operations.PostOptionalArrayHeaderWithHttpMessagesAsync(headerParameter, null, cancellationToken).ConfigureAwait(false); } } }
51.266216
239
0.587079
[ "MIT" ]
yugangw-msft/AutoRest
src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/ExplicitModelExtensions.cs
37,937
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Identity; namespace MyLaboratory.WebSite.Models.ViewModels.AccountBook { public class ExpenditureInputViewModel { [Required(ErrorMessage = "Please enter Id")] [Display(Name = "Id")] public int Id { get; set; } [Required(ErrorMessage = "Please enter MainClass")] [Display(Name = "MainClass")] public string MainClass { get; set; } [Required(ErrorMessage = "Please enter SubClass")] [Display(Name = "SubClass")] public string SubClass { get; set; } [Required(ErrorMessage = "Please enter Contents")] [Display(Name = "Contents")] public string Contents { get; set; } [Required(ErrorMessage = "Please enter Amount")] [Display(Name = "Amount")] public long Amount { get; set; } [Required(ErrorMessage = "Please enter PaymentMethod")] [Display(Name = "PaymentMethod")] public string PaymentMethod { get; set; } [Display(Name = "Note")] public string Note { get; set; } [Required(ErrorMessage = "Please enter MyDepositAsset")] [Display(Name = "MyDepositAsset")] public string MyDepositAsset { get; set; } } }
38.378378
64
0.648592
[ "MIT" ]
IkhyeonJo/IntranetWebSite-ASPNET5MVC
MyLaboratory.WebSite/Models/ViewModels/AccountBook/ExpenditureInputViewModel.cs
1,422
C#
/* Copyright (c) 2021 ExT (V.Sigalkin) */ namespace extTerrain2D { public enum HandleType { FreeSmooth, Broken } public enum ColliderType { None, Polygon } }
9.777778
42
0.659091
[ "MIT" ]
Iam1337/extTerrain2D
Assets/extTerrain2D/Scripts/Enums.cs
178
C#
namespace Compiler.Parsing.Syntax.Statements { internal class BreakStatement : Statement { public override SyntaxKind Kind => SyntaxKind.BreakStatement; public BreakStatement(SourceFilePart filePart) : base(filePart) { } } }
21.846154
69
0.640845
[ "Apache-2.0" ]
danielcirket/language
src/Compiler/Parsing/Syntax/Statements/BreakStatement.cs
286
C#
using OpenXMLXLSXImporter.CellData; using OpenXMLXLSXImporter.Indexers; using OpenXMLXLSXImporter.Processing; using OpenXMLXLSXImporter.Utils; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace OpenXMLXLSXImporter.Builders { public class FullColumnRange : ISpreadSheetInstruction { private uint _row; private string _startingColumn; private LastColumn _lastColumn; private ISpreadSheetInstructionManager _manger; public FullColumnRange(uint row,string startingColumn = "A") { _row = row; _startingColumn = startingColumn; } public void AttachSpreadSheetInstructionManager(ISpreadSheetInstructionManager spreadSheetInstructionManager) { _manger = spreadSheetInstructionManager; } void ISpreadSheetInstruction.EnqueCell(IDataStoreLocked indexer) { _lastColumn = indexer.GetLastColumn(_row); } async IAsyncEnumerable<ICellData> ISpreadSheetInstruction.GetResults() { ICellIndex lastCell = await _lastColumn.GetIndex(); if(lastCell != null) { uint startingColumn = ExcelColumnHelper.GetColumnStringAsIndex(_startingColumn); uint lastColumn = ExcelColumnHelper.GetColumnStringAsIndex(lastCell.CellColumnIndex); ISpreadSheetInstruction cr = new ColumnRange(lastCell.CellRowIndex, startingColumn, lastColumn); await _manger.ProcessInstruction(cr); IAsyncEnumerable<ICellData> result = cr.GetResults(); IAsyncEnumerator<ICellData> resultEnumerator = result.GetAsyncEnumerator(); while (await resultEnumerator.MoveNextAsync()) { yield return resultEnumerator.Current; } } } } }
35.821429
118
0.65005
[ "MIT" ]
Joshua-Bomba/OpenXMLXLSXImporter
OpenXMLXLXSImporter/Builders/QueryTypes/FullColumnRange.cs
2,008
C#
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using System.Threading.Tasks; namespace MassiveDynamicProxyGenerator { #if !(NETSTANDARD1_6 || NETSTANDARD1_4 || NETSTANDARD2_0) /// <summary> /// Extensions for adapt .Net Core API to full framework. /// </summary> internal static class FullFrameworkExtensions { /// <summary> /// Gets same type. /// </summary> /// <param name="type">The type.</param> /// <returns>The same type.</returns> #if !NET40 [MethodImpl(MethodImplOptions.AggressiveInlining)] #endif public static Type GetTypeInfo(this Type type) { return type; } } #endif }
23.424242
61
0.641656
[ "MIT" ]
harrison314/MassiveDynamicProxyGenerator
src/Src/MassiveDynamicProxyGenerator/FullFrameworkExtensions.cs
775
C#
using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Dynamic; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; using Microsoft.VisualStudio.TestTools.UnitTesting; using Z.Dapper.Plus; namespace Z.Test { public partial class AlsoAction_AlsoBulkUpdate_ManyMixedSelector { [TestMethod] public void Z_Test_0071() { Helper.CleanDatabase(); var single1 = new SingleMany {ColumnInt = 1}; var single2 = new SingleMany {ColumnInt = 8}; var single3 = new SingleMany {ColumnInt = 64}; var many1 = new List<SingleMany> {new SingleMany {ColumnInt = 512}, new SingleMany {ColumnInt = 1024}, new SingleMany {ColumnInt = 2048}}; var many2 = new List<SingleMany> {new SingleMany {ColumnInt = 4096}, new SingleMany {ColumnInt = 8192}, new SingleMany {ColumnInt = 16384}}; var many3 = new List<SingleMany> {new SingleMany {ColumnInt = 32768}, new SingleMany {ColumnInt = 65536}, new SingleMany {ColumnInt = 131072}}; Helper.LinkSingleMany(single1, single2, single3, many1, many2, many3); Helper.InsertFromMetas("BulkInsertAll;UpdateValueAll".Split(';').ToList(), single1, single2, single3, many1, many2, many3); Helper.UpdateFromMetas("BulkInsertAll;UpdateValueAll".Split(';').ToList(), single1, single2, single3, many1, many2, many3); // GET count before int columnInt_before = 0; int columnUpdateInt_before = 0; int columnInt_Key_before = 0; int columnUpdateInt_Key_before = 0; using (var connection = Helper.GetConnection()) { connection.Open(); using (var command = connection.CreateCommand()) { command.CommandText = "SELECT ISNULL((SELECT SUM(ColumnInt) FROM SingleMany), 0)"; columnInt_before = Convert.ToInt32(command.ExecuteScalar()); command.CommandText = "SELECT ISNULL((SELECT SUM(ColumnUpdateInt) FROM SingleMany), 0)"; columnUpdateInt_before = Convert.ToInt32(command.ExecuteScalar()); command.CommandText = "SELECT ISNULL((SELECT SUM(ColumnInt) FROM SingleMany_Key), 0)"; columnInt_Key_before = Convert.ToInt32(command.ExecuteScalar()); command.CommandText = "SELECT ISNULL((SELECT SUM(ColumnUpdateInt) FROM SingleMany_Key), 0)"; columnUpdateInt_Key_before = Convert.ToInt32(command.ExecuteScalar()); } } using (var cn = Helper.GetConnection()) { cn.Open(); // PreTest // Action cn.BulkUpdate("key", many1).AlsoBulkUpdate("key", x => x.Many2, x => x.Single2); } // GET count int columnInt = 0; int columnUpdateInt = 0; int columnInt_Key = 0; int columnUpdateInt_Key = 0; using (var connection = Helper.GetConnection()) { connection.Open(); using (var command = connection.CreateCommand()) { command.CommandText = "SELECT ISNULL((SELECT SUM(ColumnInt) FROM SingleMany), 0)"; columnInt = Convert.ToInt32(command.ExecuteScalar()); command.CommandText = "SELECT ISNULL((SELECT SUM(ColumnUpdateInt) FROM SingleMany), 0)"; columnUpdateInt = Convert.ToInt32(command.ExecuteScalar()); command.CommandText = "SELECT ISNULL((SELECT SUM(ColumnInt) FROM SingleMany_Key), 0)"; columnInt_Key = Convert.ToInt32(command.ExecuteScalar()); command.CommandText = "SELECT ISNULL((SELECT SUM(ColumnUpdateInt) FROM SingleMany_Key), 0)"; columnUpdateInt_Key = Convert.ToInt32(command.ExecuteScalar()); } } // Test Assert.AreEqual(columnInt_before, columnInt); Assert.AreEqual(columnUpdateInt_before, columnUpdateInt); Assert.AreEqual(columnInt_Key_before, columnInt_Key); Assert.AreEqual(many1.Sum(x => x.ColumnInt) + many1.Sum(x => x.Many2.Sum(y => y.ColumnInt)) + many1.Sum(x => x.Single2.ColumnInt), columnUpdateInt_Key); } } }
42.951456
157
0.609403
[ "MIT" ]
VagrantKm/Dapper-Plus
src/test/Z.Test/AlsoAction/AlsoBulkUpdate_ManyMixedSelector/0071.cs
4,424
C#
// <auto-generated> // Auto-generated by StoneAPI, do not modify. // </auto-generated> namespace Dropbox.Api.Sharing { using sys = System; using col = System.Collections.Generic; using re = System.Text.RegularExpressions; using enc = Dropbox.Api.Stone; /// <summary> /// <para>Arguments for <see /// cref="Dropbox.Api.Sharing.Routes.SharingUserRoutes.ListReceivedFilesAsync" />.</para> /// </summary> public class ListFilesArg { #pragma warning disable 108 /// <summary> /// <para>The encoder instance.</para> /// </summary> internal static enc.StructEncoder<ListFilesArg> Encoder = new ListFilesArgEncoder(); /// <summary> /// <para>The decoder instance.</para> /// </summary> internal static enc.StructDecoder<ListFilesArg> Decoder = new ListFilesArgDecoder(); /// <summary> /// <para>Initializes a new instance of the <see cref="ListFilesArg" /> class.</para> /// </summary> /// <param name="limit">Number of files to return max per query. Defaults to 100 if no /// limit is specified.</param> /// <param name="actions">A list of `FileAction`s corresponding to `FilePermission`s /// that should appear in the response's <see /// cref="Dropbox.Api.Sharing.SharedFileMetadata.Permissions" /> field describing the /// actions the authenticated user can perform on the file.</param> public ListFilesArg(uint limit = 100, col.IEnumerable<FileAction> actions = null) { if (limit < 1U) { throw new sys.ArgumentOutOfRangeException("limit", "Value should be greater or equal than 1"); } if (limit > 300U) { throw new sys.ArgumentOutOfRangeException("limit", "Value should be less of equal than 300"); } var actionsList = enc.Util.ToList(actions); this.Limit = limit; this.Actions = actionsList; } /// <summary> /// <para>Initializes a new instance of the <see cref="ListFilesArg" /> class.</para> /// </summary> /// <remarks>This is to construct an instance of the object when /// deserializing.</remarks> [sys.ComponentModel.EditorBrowsable(sys.ComponentModel.EditorBrowsableState.Never)] public ListFilesArg() { this.Limit = 100; } /// <summary> /// <para>Number of files to return max per query. Defaults to 100 if no limit is /// specified.</para> /// </summary> public uint Limit { get; protected set; } /// <summary> /// <para>A list of `FileAction`s corresponding to `FilePermission`s that should appear /// in the response's <see cref="Dropbox.Api.Sharing.SharedFileMetadata.Permissions" /// /> field describing the actions the authenticated user can perform on the /// file.</para> /// </summary> public col.IList<FileAction> Actions { get; protected set; } #region Encoder class /// <summary> /// <para>Encoder for <see cref="ListFilesArg" />.</para> /// </summary> private class ListFilesArgEncoder : enc.StructEncoder<ListFilesArg> { /// <summary> /// <para>Encode fields of given value.</para> /// </summary> /// <param name="value">The value.</param> /// <param name="writer">The writer.</param> public override void EncodeFields(ListFilesArg value, enc.IJsonWriter writer) { WriteProperty("limit", value.Limit, writer, enc.UInt32Encoder.Instance); if (value.Actions.Count > 0) { WriteListProperty("actions", value.Actions, writer, global::Dropbox.Api.Sharing.FileAction.Encoder); } } } #endregion #region Decoder class /// <summary> /// <para>Decoder for <see cref="ListFilesArg" />.</para> /// </summary> private class ListFilesArgDecoder : enc.StructDecoder<ListFilesArg> { /// <summary> /// <para>Create a new instance of type <see cref="ListFilesArg" />.</para> /// </summary> /// <returns>The struct instance.</returns> protected override ListFilesArg Create() { return new ListFilesArg(); } /// <summary> /// <para>Set given field.</para> /// </summary> /// <param name="value">The field value.</param> /// <param name="fieldName">The field name.</param> /// <param name="reader">The json reader.</param> protected override void SetField(ListFilesArg value, string fieldName, enc.IJsonReader reader) { switch (fieldName) { case "limit": value.Limit = enc.UInt32Decoder.Instance.Decode(reader); break; case "actions": value.Actions = ReadList<FileAction>(reader, global::Dropbox.Api.Sharing.FileAction.Decoder); break; default: reader.Skip(); break; } } } #endregion } }
36.92
120
0.546407
[ "MIT" ]
AlirezaMaddah/dropbox-sdk-dotnet
dropbox-sdk-dotnet/Dropbox.Api/Generated/Sharing/ListFilesArg.cs
5,538
C#
/****************************************************************************** * Compilation: javac GraphGenerator.java * Execution: java GraphGenerator V E * Dependencies: Graph.java * * A graph generator. * * For many more graph generators, see * http://networkx.github.io/documentation/latest/reference/generators.html * ******************************************************************************/ using System; namespace edu.princeton.cs.algs4 { /** * The {@code GraphGenerator} class provides static methods for creating * various graphs, including Erdos-Renyi random graphs, random bipartite * graphs, random k-regular graphs, and random rooted trees. * <p> * For additional documentation, see <a href="https://algs4.cs.princeton.edu/41graph">Section 4.1</a> of * <i>Algorithms, 4th Edition</i> by Robert Sedgewick and Kevin Wayne. * * @author Robert Sedgewick * @author Kevin Wayne */ public class GraphGenerator { private static final class Edge implements Comparable<Edge> { private int v; private int w; private Edge(int v, int w) { if (v < w) { this.v = v; this.w = w; } else { this.v = w; this.w = v; } } public int compareTo(Edge that) { if (this.v < that.v) return -1; if (this.v > that.v) return +1; if (this.w < that.w) return -1; if (this.w > that.w) return +1; return 0; } } // this class cannot be instantiated private GraphGenerator() { } /** * Returns a random simple graph containing {@code V} vertices and {@code E} edges. * @param V the number of vertices * @param E the number of vertices * @return a random simple graph on {@code V} vertices, containing a total * of {@code E} edges * @throws IllegalArgumentException if no such simple graph exists */ public static Graph simple(int V, int E) { if (E > (long) V*(V-1)/2) throw new IllegalArgumentException("Too many edges"); if (E < 0) throw new IllegalArgumentException("Too few edges"); Graph G = new Graph(V); SET<Edge> set = new SET<Edge>(); while (G.E() < E) { int v = StdRandom.uniform(V); int w = StdRandom.uniform(V); Edge e = new Edge(v, w); if ((v != w) && !set.contains(e)) { set.add(e); G.addEdge(v, w); } } return G; } /** * Returns a random simple graph on {@code V} vertices, with an * edge between any two vertices with probability {@code p}. This is sometimes * referred to as the Erdos-Renyi random graph model. * @param V the number of vertices * @param p the probability of choosing an edge * @return a random simple graph on {@code V} vertices, with an edge between * any two vertices with probability {@code p} * @throws IllegalArgumentException if probability is not between 0 and 1 */ public static Graph simple(int V, double p) { if (p < 0.0 || p > 1.0) throw new IllegalArgumentException("Probability must be between 0 and 1"); Graph G = new Graph(V); for (int v = 0; v < V; v++) for (int w = v+1; w < V; w++) if (StdRandom.bernoulli(p)) G.addEdge(v, w); return G; } /** * Returns the complete graph on {@code V} vertices. * @param V the number of vertices * @return the complete graph on {@code V} vertices */ public static Graph complete(int V) { return simple(V, 1.0); } /** * Returns a complete bipartite graph on {@code V1} and {@code V2} vertices. * @param V1 the number of vertices in one partition * @param V2 the number of vertices in the other partition * @return a complete bipartite graph on {@code V1} and {@code V2} vertices * @throws IllegalArgumentException if probability is not between 0 and 1 */ public static Graph completeBipartite(int V1, int V2) { return bipartite(V1, V2, V1*V2); } /** * Returns a random simple bipartite graph on {@code V1} and {@code V2} vertices * with {@code E} edges. * @param V1 the number of vertices in one partition * @param V2 the number of vertices in the other partition * @param E the number of edges * @return a random simple bipartite graph on {@code V1} and {@code V2} vertices, * containing a total of {@code E} edges * @throws IllegalArgumentException if no such simple bipartite graph exists */ public static Graph bipartite(int V1, int V2, int E) { if (E > (long) V1*V2) throw new IllegalArgumentException("Too many edges"); if (E < 0) throw new IllegalArgumentException("Too few edges"); Graph G = new Graph(V1 + V2); int[] vertices = new int[V1 + V2]; for (int i = 0; i < V1 + V2; i++) vertices[i] = i; StdRandom.shuffle(vertices); SET<Edge> set = new SET<Edge>(); while (G.E() < E) { int i = StdRandom.uniform(V1); int j = V1 + StdRandom.uniform(V2); Edge e = new Edge(vertices[i], vertices[j]); if (!set.contains(e)) { set.add(e); G.addEdge(vertices[i], vertices[j]); } } return G; } /** * Returns a random simple bipartite graph on {@code V1} and {@code V2} vertices, * containing each possible edge with probability {@code p}. * @param V1 the number of vertices in one partition * @param V2 the number of vertices in the other partition * @param p the probability that the graph contains an edge with one endpoint in either side * @return a random simple bipartite graph on {@code V1} and {@code V2} vertices, * containing each possible edge with probability {@code p} * @throws IllegalArgumentException if probability is not between 0 and 1 */ public static Graph bipartite(int V1, int V2, double p) { if (p < 0.0 || p > 1.0) throw new IllegalArgumentException("Probability must be between 0 and 1"); int[] vertices = new int[V1 + V2]; for (int i = 0; i < V1 + V2; i++) vertices[i] = i; StdRandom.shuffle(vertices); Graph G = new Graph(V1 + V2); for (int i = 0; i < V1; i++) for (int j = 0; j < V2; j++) if (StdRandom.bernoulli(p)) G.addEdge(vertices[i], vertices[V1+j]); return G; } /** * Returns a path graph on {@code V} vertices. * @param V the number of vertices in the path * @return a path graph on {@code V} vertices */ public static Graph path(int V) { Graph G = new Graph(V); int[] vertices = new int[V]; for (int i = 0; i < V; i++) vertices[i] = i; StdRandom.shuffle(vertices); for (int i = 0; i < V-1; i++) { G.addEdge(vertices[i], vertices[i+1]); } return G; } /** * Returns a complete binary tree graph on {@code V} vertices. * @param V the number of vertices in the binary tree * @return a complete binary tree graph on {@code V} vertices */ public static Graph binaryTree(int V) { Graph G = new Graph(V); int[] vertices = new int[V]; for (int i = 0; i < V; i++) vertices[i] = i; StdRandom.shuffle(vertices); for (int i = 1; i < V; i++) { G.addEdge(vertices[i], vertices[(i-1)/2]); } return G; } /** * Returns a cycle graph on {@code V} vertices. * @param V the number of vertices in the cycle * @return a cycle graph on {@code V} vertices */ public static Graph cycle(int V) { Graph G = new Graph(V); int[] vertices = new int[V]; for (int i = 0; i < V; i++) vertices[i] = i; StdRandom.shuffle(vertices); for (int i = 0; i < V-1; i++) { G.addEdge(vertices[i], vertices[i+1]); } G.addEdge(vertices[V-1], vertices[0]); return G; } /** * Returns an Eulerian cycle graph on {@code V} vertices. * * @param V the number of vertices in the cycle * @param E the number of edges in the cycle * @return a graph that is an Eulerian cycle on {@code V} vertices * and {@code E} edges * @throws IllegalArgumentException if either {@code V <= 0} or {@code E <= 0} */ public static Graph eulerianCycle(int V, int E) { if (E <= 0) throw new IllegalArgumentException("An Eulerian cycle must have at least one edge"); if (V <= 0) throw new IllegalArgumentException("An Eulerian cycle must have at least one vertex"); Graph G = new Graph(V); int[] vertices = new int[E]; for (int i = 0; i < E; i++) vertices[i] = StdRandom.uniform(V); for (int i = 0; i < E-1; i++) { G.addEdge(vertices[i], vertices[i+1]); } G.addEdge(vertices[E-1], vertices[0]); return G; } /** * Returns an Eulerian path graph on {@code V} vertices. * * @param V the number of vertices in the path * @param E the number of edges in the path * @return a graph that is an Eulerian path on {@code V} vertices * and {@code E} edges * @throws IllegalArgumentException if either {@code V <= 0} or {@code E < 0} */ public static Graph eulerianPath(int V, int E) { if (E < 0) throw new IllegalArgumentException("negative number of edges"); if (V <= 0) throw new IllegalArgumentException("An Eulerian path must have at least one vertex"); Graph G = new Graph(V); int[] vertices = new int[E+1]; for (int i = 0; i < E+1; i++) vertices[i] = StdRandom.uniform(V); for (int i = 0; i < E; i++) { G.addEdge(vertices[i], vertices[i+1]); } return G; } /** * Returns a wheel graph on {@code V} vertices. * @param V the number of vertices in the wheel * @return a wheel graph on {@code V} vertices: a single vertex connected to * every vertex in a cycle on {@code V-1} vertices */ public static Graph wheel(int V) { if (V <= 1) throw new IllegalArgumentException("Number of vertices must be at least 2"); Graph G = new Graph(V); int[] vertices = new int[V]; for (int i = 0; i < V; i++) vertices[i] = i; StdRandom.shuffle(vertices); // simple cycle on V-1 vertices for (int i = 1; i < V-1; i++) { G.addEdge(vertices[i], vertices[i+1]); } G.addEdge(vertices[V-1], vertices[1]); // connect vertices[0] to every vertex on cycle for (int i = 1; i < V; i++) { G.addEdge(vertices[0], vertices[i]); } return G; } /** * Returns a star graph on {@code V} vertices. * @param V the number of vertices in the star * @return a star graph on {@code V} vertices: a single vertex connected to * every other vertex */ public static Graph star(int V) { if (V <= 0) throw new IllegalArgumentException("Number of vertices must be at least 1"); Graph G = new Graph(V); int[] vertices = new int[V]; for (int i = 0; i < V; i++) vertices[i] = i; StdRandom.shuffle(vertices); // connect vertices[0] to every other vertex for (int i = 1; i < V; i++) { G.addEdge(vertices[0], vertices[i]); } return G; } /** * Returns a uniformly random {@code k}-regular graph on {@code V} vertices * (not necessarily simple). The graph is simple with probability only about e^(-k^2/4), * which is tiny when k = 14. * * @param V the number of vertices in the graph * @param k degree of each vertex * @return a uniformly random {@code k}-regular graph on {@code V} vertices. */ public static Graph regular(int V, int k) { if (V*k % 2 != 0) throw new IllegalArgumentException("Number of vertices * k must be even"); Graph G = new Graph(V); // create k copies of each vertex int[] vertices = new int[V*k]; for (int v = 0; v < V; v++) { for (int j = 0; j < k; j++) { vertices[v + V*j] = v; } } // pick a random perfect matching StdRandom.shuffle(vertices); for (int i = 0; i < V*k/2; i++) { G.addEdge(vertices[2*i], vertices[2*i + 1]); } return G; } // http://www.proofwiki.org/wiki/Labeled_Tree_from_Prüfer_Sequence // http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.36.6484&rep=rep1&type=pdf /** * Returns a uniformly random tree on {@code V} vertices. * This algorithm uses a Prufer sequence and takes time proportional to <em>V log V</em>. * @param V the number of vertices in the tree * @return a uniformly random tree on {@code V} vertices */ public static Graph tree(int V) { Graph G = new Graph(V); // special case if (V == 1) return G; // Cayley's theorem: there are V^(V-2) labeled trees on V vertices // Prufer sequence: sequence of V-2 values between 0 and V-1 // Prufer's proof of Cayley's theorem: Prufer sequences are in 1-1 // with labeled trees on V vertices int[] prufer = new int[V-2]; for (int i = 0; i < V-2; i++) prufer[i] = StdRandom.uniform(V); // degree of vertex v = 1 + number of times it appers in Prufer sequence int[] degree = new int[V]; for (int v = 0; v < V; v++) degree[v] = 1; for (int i = 0; i < V-2; i++) degree[prufer[i]]++; // pq contains all vertices of degree 1 MinPQ<Integer> pq = new MinPQ<Integer>(); for (int v = 0; v < V; v++) if (degree[v] == 1) pq.insert(v); // repeatedly delMin() degree 1 vertex that has the minimum index for (int i = 0; i < V-2; i++) { int v = pq.delMin(); G.addEdge(v, prufer[i]); degree[v]--; degree[prufer[i]]--; if (degree[prufer[i]] == 1) pq.insert(prufer[i]); } G.addEdge(pq.delMin(), pq.delMin()); return G; } /** * Unit tests the {@code GraphGenerator} library. * * @param args the command-line arguments */ public static void main(String[] args) { int V = Integer.parseInt(args[0]); int E = Integer.parseInt(args[1]); int V1 = V/2; int V2 = V - V1; StdOut.println("complete graph"); StdOut.println(complete(V)); StdOut.println(); StdOut.println("simple"); StdOut.println(simple(V, E)); StdOut.println(); StdOut.println("Erdos-Renyi"); double p = (double) E / (V*(V-1)/2.0); StdOut.println(simple(V, p)); StdOut.println(); StdOut.println("complete bipartite"); StdOut.println(completeBipartite(V1, V2)); StdOut.println(); StdOut.println("bipartite"); StdOut.println(bipartite(V1, V2, E)); StdOut.println(); StdOut.println("Erdos Renyi bipartite"); double q = (double) E / (V1*V2); StdOut.println(bipartite(V1, V2, q)); StdOut.println(); StdOut.println("path"); StdOut.println(path(V)); StdOut.println(); StdOut.println("cycle"); StdOut.println(cycle(V)); StdOut.println(); StdOut.println("binary tree"); StdOut.println(binaryTree(V)); StdOut.println(); StdOut.println("tree"); StdOut.println(tree(V)); StdOut.println(); StdOut.println("4-regular"); StdOut.println(regular(V, 4)); StdOut.println(); StdOut.println("star"); StdOut.println(star(V)); StdOut.println(); StdOut.println("wheel"); StdOut.println(wheel(V)); StdOut.println(); } } /****************************************************************************** * Copyright 2002-2018, Robert Sedgewick and Kevin Wayne. * * This file is part of algs4.jar, which accompanies the textbook * * Algorithms, 4th edition by Robert Sedgewick and Kevin Wayne, * Addison-Wesley Professional, 2011, ISBN 0-321-57351-X. * http://algs4.cs.princeton.edu * * * algs4.jar is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * algs4.jar is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with algs4.jar. If not, see http://www.gnu.org/licenses. ******************************************************************************/
35.323944
105
0.551094
[ "MIT" ]
franklzt/DataStruct
algs/GraphGenerator.cs
17,557
C#
using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.IO; namespace NuGet { public interface IPackage : IPackageMetadata, IServerPackageMetadata { bool IsAbsoluteLatestVersion { get; } bool IsLatestVersion { get; } bool Listed { get; } DateTimeOffset? Published { get; } IEnumerable<IPackageAssemblyReference> AssemblyReferences { get; } [SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate", Justification = "This might be expensive")] IEnumerable<IPackageFile> GetFiles(); [SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate", Justification = "This might be expensive")] Stream GetStream(); } }
29.923077
128
0.709512
[ "Apache-2.0" ]
monoman/NugetCracker
Nuget/src/Core/Packages/IPackage.cs
778
C#
//------------------------------------------------------------------------------ // <auto-generated> // Gerado pela classe WriteCodeFragment do MSBuild. // </auto-generated> //------------------------------------------------------------------------------ using System; using System.Reflection; [assembly: System.Reflection.AssemblyCompanyAttribute("pizztsuka")] [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] [assembly: System.Reflection.AssemblyProductAttribute("pizztsuka")] [assembly: System.Reflection.AssemblyTitleAttribute("pizztsuka")] [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
46.176471
80
0.636943
[ "MIT" ]
fabioferro54815/Aulas-C-
OO/Pizztsuka/obj/Debug/netcoreapp2.1/pizztsuka.AssemblyInfo.cs
785
C#
using BizHawk.Common; using BizHawk.Common.NumberExtensions; // http://wiki.nesdev.com/w/index.php/INES_Mapper_231 namespace BizHawk.Emulation.Cores.Nintendo.NES { internal sealed class Mapper231 : NesBoardBase { public int prg_reg; public int prg_bank_mask_16k; public override bool Configure(EDetectionOrigin origin) { switch (Cart.BoardType) { case "MAPPER231": break; default: return false; } prg_bank_mask_16k = Cart.PrgSize / 16 - 1; return true; } public override void SyncState(Serializer ser) { ser.Sync(nameof(prg_reg), ref prg_reg); base.SyncState(ser); } public override void WritePrg(int addr, byte value) { if (addr.Bit(7)) { SetMirrorType(EMirrorType.Horizontal); } else { SetMirrorType(EMirrorType.Vertical); } int prg_reg_P = (addr >> 1) & 0xF; int prg_reg_L = (addr >> 5) & 1; prg_reg = (prg_reg_P<<1) | prg_reg_L; prg_reg &= prg_bank_mask_16k; } public override byte ReadPrg(int addr) { int bank = prg_reg; return Rom[(bank << 14) + addr - 0x4000]; } } }
20.553571
58
0.632493
[ "MIT" ]
CartoonFan/BizHawk
src/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/Boards/Mapper231.cs
1,153
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace FoodDrinkStands { public static class MiscExtensions { public static IEnumerable<T> TakeLast<T>(this IEnumerable<T> source, int N) { return source.Skip(Math.Max(0, source.Count() - N)); } } }
21.647059
83
0.665761
[ "Apache-2.0" ]
nikolaynikolaevn/Mysteryland
FoodDrinkStands/MiscExtensions.cs
370
C#
using System; using System.Collections.Generic; using System.Text; namespace EmailSendService { public class EmailConfiguration { public string From { get; set; } public string SmtpServer { get; set; } public int Port { get; set; } public string UserName { get; set; } public string Password { get; set; } } }
19.315789
46
0.626703
[ "MIT" ]
ismi2u/AtoVen-Microservices
src/MicroServices/EmailSender/EmailConfiguration.cs
369
C#
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Reflection; using System.Reflection.Emit; using System.Threading.Tasks; using Microsoft.AspNetCore.Hosting; using Microsoft.Azure.WebJobs.Description; using Microsoft.Azure.WebJobs.Script.Binding; using Microsoft.Azure.WebJobs.Script.Extensibility; using Microsoft.Azure.WebJobs.Script.Workers; using Microsoft.Extensions.Logging; namespace Microsoft.Azure.WebJobs.Script.Description { internal abstract class WorkerFunctionDescriptorProvider : FunctionDescriptorProvider { private readonly ILoggerFactory _loggerFactory; private IFunctionInvocationDispatcher _dispatcher; private IApplicationLifetime _applicationLifetime; public WorkerFunctionDescriptorProvider(ScriptHost host, ScriptJobHostOptions config, ICollection<IScriptBindingProvider> bindingProviders, IFunctionInvocationDispatcher dispatcher, ILoggerFactory loggerFactory, IApplicationLifetime applicationLifetime) : base(host, config, bindingProviders) { _dispatcher = dispatcher; _loggerFactory = loggerFactory; _applicationLifetime = applicationLifetime; } public override async Task<(bool, FunctionDescriptor)> TryCreate(FunctionMetadata functionMetadata) { if (functionMetadata == null) { throw new ArgumentNullException(nameof(functionMetadata)); } return await base.TryCreate(functionMetadata); } protected override IFunctionInvoker CreateFunctionInvoker(string scriptFilePath, BindingMetadata triggerMetadata, FunctionMetadata functionMetadata, Collection<FunctionBinding> inputBindings, Collection<FunctionBinding> outputBindings) { return new WorkerFunctionInvoker(Host, triggerMetadata, functionMetadata, _loggerFactory, inputBindings, outputBindings, _dispatcher, _applicationLifetime); } protected override async Task<Collection<ParameterDescriptor>> GetFunctionParametersAsync(IFunctionInvoker functionInvoker, FunctionMetadata functionMetadata, BindingMetadata triggerMetadata, Collection<CustomAttributeBuilder> methodAttributes, Collection<FunctionBinding> inputBindings, Collection<FunctionBinding> outputBindings) { var parameters = await base.GetFunctionParametersAsync(functionInvoker, functionMetadata, triggerMetadata, methodAttributes, inputBindings, outputBindings); var bindings = inputBindings.Union(outputBindings); try { var triggerHandlesReturnValueBinding = bindings.SingleOrDefault(b => b.Metadata.IsTrigger && (b as ExtensionBinding)?.Attributes.SingleOrDefault(a => (a.GetType().GetCustomAttribute(typeof(BindingAttribute)) as BindingAttribute)?.TriggerHandlesReturnValue == true) != null); if (triggerHandlesReturnValueBinding != null) { var byRefType = typeof(object).MakeByRefType(); ParameterDescriptor returnDescriptor = new ParameterDescriptor(ScriptConstants.SystemReturnParameterName, byRefType); returnDescriptor.Attributes |= ParameterAttributes.Out; Collection<CustomAttributeBuilder> customAttributes = triggerHandlesReturnValueBinding.GetCustomAttributes(byRefType); if (customAttributes != null) { foreach (var customAttribute in customAttributes) { returnDescriptor.CustomAttributes.Add(customAttribute); } } parameters.Add(returnDescriptor); } } catch (InvalidOperationException ex) { throw new InvalidOperationException("Multiple bindings cannot be designated as HandlesReturnValue.", ex); } return parameters; } } }
47.021739
243
0.688627
[ "Apache-2.0", "MIT" ]
AnatoliB/azure-functions-host
src/WebJobs.Script/Description/Workers/WorkerFunctionDescriptorProvider.cs
4,328
C#
namespace Merchello.Core.Persistence.Repositories { using System; using System.Collections; using System.Collections.Generic; using Merchello.Core.Models; using Umbraco.Core.Persistence.Repositories; /// <summary> /// Marker interface for the address repository /// </summary> internal interface ICustomerAddressRepository : IRepositoryQueryable<Guid, ICustomerAddress> { /// <summary> /// Gets a collection of addresses by customer key. /// </summary> /// <param name="customerKey"> /// The customer key. /// </param> /// <returns> /// The <see cref="IEnumerable"/>. /// </returns> IEnumerable<ICustomerAddress> GetByCustomerKey(Guid customerKey); } }
27.892857
96
0.627401
[ "MIT" ]
cfallesen/Merchello
src/Merchello.Core/Persistence/Repositories/Interfaces/ICustomerAddressRepository.cs
783
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; namespace double_v_partners { public class Program { public static void Main(string[] args) { CreateHostBuilder(args).Build().Run(); } public static IHostBuilder CreateHostBuilder(string[] args) => Host.CreateDefaultBuilder(args) .ConfigureWebHostDefaults(webBuilder => { webBuilder.UseStartup<Startup>(); }); } }
25.888889
70
0.648069
[ "MIT" ]
crisboleda/api_double_v_partners
Program.cs
699
C#
using System.Diagnostics.Metrics; using OpenTelemetry.Metrics; namespace Backend.Infrastructure.Metrics; public static class RealtimeMapMetrics { private static readonly Meter RealtimeMapMeter = new("RealtimeMap"); public static MeterProviderBuilder AddRealtimeMapInstrumentation(this MeterProviderBuilder builder) => builder .AddMeter("RealtimeMap") .AddView("app_mqtt_message_duration", new ExplicitBucketHistogramConfiguration { Boundaries = Proto.OpenTelemetry.OpenTelemetryMetricsExtensions.RequestLikeHistogramBoundaries }); public static readonly Histogram<double> MqttMessageDuration = RealtimeMapMeter.CreateHistogram<double>( "app_mqtt_message_duration", description: "Duration of MQTT message processing"); public static readonly Histogram<double> MqttMessageLeadTime = RealtimeMapMeter.CreateHistogram<double>( "app_mqtt_message_lead_time", description: "Lead time of the messages received from MQTT"); public static readonly AdjustableGauge SignalRConnections = new( RealtimeMapMeter, "app_signalr_connections", description: "Number of SignalR connections"); }
41.066667
110
0.741883
[ "Apache-2.0" ]
AsynkronIT/realtimemap
Backend/Infrastructure/Metrics/RealtimeMapMetrics.cs
1,234
C#
using Buildings; using Game; using Libraries.FActions; using Libraries.FActions.General; using MapElements; using Players; using Tools; using Units; namespace Classes.Actions { public class ActionSleep : BasePerformAction { public ActionSleep() : base("sleep"){} protected override void Perform(ActionEvent evt, Player player, MapElementInfo info, NVector pos, ActionHolder holder) { //info.data.ap = 0; if (evt == ActionEvent.Direct) { info.SetRepeatAction(new ActionWaiting(holder, info.data.action, pos)); OnMapUI.Get().UpdatePanel(info.Pos()); } } protected override void Perform(ActionEvent evt, Player player, ActionHolder holder) { throw new System.NotImplementedException(); } public override ActionHolder Create(string setting) { ActionHolder conf = base.Create(setting); conf.trigger = ActionEvent.Direct; return conf; } } }
27.075
105
0.603878
[ "MIT" ]
TrutzX/9Nations
Assets/Scripts/Classes/Actions/ActionSleep.cs
1,083
C#
using System; using Dockerx.Commands.Image; using Microsoft.Extensions.CommandLineUtils; namespace Dockerx { public class Program { public static void Main(string[] args) { var app = new CommandLineApplication(throwOnUnexpectedArg: true); try { app.Name = "dockerx"; app.Description = "Docker Extension Commands"; app.HelpOption("-? | -h | --help"); app.Command("image", new ImageCommands().Register); app.OnExecute(() => { app.ShowHelp("dockerx"); return 0; }); app.Execute(args); } catch (Exception e) { Console.WriteLine(e.Message); while (e.InnerException != null) { Console.WriteLine(e.InnerException.Message); e = e.InnerException; } app.ShowHelp(); } } } }
25.522727
78
0.431879
[ "MIT" ]
parameshg/dockerx
Program.cs
1,125
C#
// UpgradeAvailablePromptData using Disney.Kelowna.Common.DataModel; using System; [Serializable] public class UpgradeAvailablePromptData : BaseData { public bool HasSeenUpgradeAvailablePrompt; protected override void notifyWillBeDestroyed() { } }
18.142857
50
0.818898
[ "MIT" ]
smdx24/CPI-Source-Code
ClubPenguin/UpgradeAvailablePromptData.cs
254
C#
using Microsoft.AspNetCore.Authentication.JwtBearer; using Microsoft.IdentityModel.Tokens; using System.IdentityModel.Tokens.Jwt; using System.Linq; using System.Security.Claims; namespace ProjectManageServer.Common.Filter { public class CustomerTokenValidate : ISecurityTokenValidator { public bool CanValidateToken => true; public int MaximumTokenSizeInBytes { get; set; } public bool CanReadToken(string securityToken) { return true; } public ClaimsPrincipal ValidateToken(string securityToken, TokenValidationParameters validationParameters, out SecurityToken validatedToken) { ClaimsPrincipal principal; try { validatedToken = null; var token = new JwtSecurityToken(securityToken); //获取到Token的一切信息 var payload = token.Payload; var _AutoID = (from t in payload where t.Key == "AutoID" select t.Value).FirstOrDefault(); var _RoleCode = (from t in payload where t.Key == "RoleCode" select t.Value).FirstOrDefault(); var _Usercode = (from t in payload where t.Key == "UserCode" select t.Value).FirstOrDefault(); var _Passwords = (from t in payload where t.Key == "Passwords" select t.Value).FirstOrDefault(); var _UserNick = (from t in payload where t.Key == "UserNick" select t.Value).FirstOrDefault(); var issuer = token.Issuer; var key = token.SecurityKey; var audience = token.Audiences; var identity = new ClaimsIdentity(JwtBearerDefaults.AuthenticationScheme); identity.AddClaim(new Claim("AutoID", _AutoID.ToString())); identity.AddClaim(new Claim("RoleCode", _RoleCode.ToString())); identity.AddClaim(new Claim("UserCode", _Usercode.ToString())); identity.AddClaim(new Claim("Passwords", _Passwords.ToString())); identity.AddClaim(new Claim("UserNick", _UserNick.ToString())); principal = new ClaimsPrincipal(identity); } catch { validatedToken = null; principal = null; } return principal; } } }
32.040541
148
0.598482
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
goalsyang/ProjectManageServer
ProjectManageServer.Common/Filter/CustomerTokenValidate.cs
2,389
C#
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // This code is distributed under the GNU LGPL (for details please see \doc\license.txt) using System; using ICSharpCode.NRefactory; using ICSharpCode.PythonBinding; using NUnit.Framework; namespace PythonBinding.Tests.Converter { /// <summary> /// Tests the C# to Python converter does not add an /// assignment for a variable declaration that has no /// initial value assigned. /// </summary> [TestFixture] public class FieldDeclarationWithNoInitializerTestFixture { string csharp = "class Foo\r\n" + "{\r\n" + "\tprivate int i;\r\n" + "\tpublic Foo()\r\n" + "\t{\r\n" + "\t\tint j = 0;\r\n" + "\t}\r\n" + "}"; [Test] public void ConvertedPythonCode() { NRefactoryToPythonConverter converter = new NRefactoryToPythonConverter(SupportedLanguage.CSharp); string python = converter.Convert(csharp); string expectedPython = "class Foo(object):\r\n" + "\tdef __init__(self):\r\n" + "\t\tj = 0"; Assert.AreEqual(expectedPython, python); } } }
27.97561
103
0.665214
[ "MIT" ]
Plankankul/SharpDevelop-w-Framework
src/AddIns/BackendBindings/Python/PythonBinding/Test/Converter/FieldDeclarationWithNoInitializerTestFixture.cs
1,149
C#
using System; using System.Collections.Generic; using Orchard.Data; using Orchard.Localization; using Orchard.Logging; using Orchard.Recipes.Models; using Orchard.Recipes.Services; using Orchard.Workflows.Models; namespace Orchard.Workflows.ImportExport { public class WorkflowsRecipeHandler : IRecipeHandler { private readonly IRepository<WorkflowDefinitionRecord> _workflowDefinitionRepository; public WorkflowsRecipeHandler(IRepository<WorkflowDefinitionRecord> workflowDefinitionRepository) { _workflowDefinitionRepository = workflowDefinitionRepository; Logger = NullLogger.Instance; T = NullLocalizer.Instance; } public Localizer T { get; set; } public ILogger Logger { get; set; } public void ExecuteRecipeStep(RecipeContext recipeContext) { if (!String.Equals(recipeContext.RecipeStep.Name, "Workflows", StringComparison.OrdinalIgnoreCase)) { return; } foreach (var workflowDefinitionElement in recipeContext.RecipeStep.Step.Elements()) { var workflowDefinition = new WorkflowDefinitionRecord { Name = ProbeWorkflowDefinitionName(workflowDefinitionElement.Attribute("Name").Value), Enabled = Boolean.Parse(workflowDefinitionElement.Attribute("Enabled").Value) }; _workflowDefinitionRepository.Create(workflowDefinition); var activitiesElement = workflowDefinitionElement.Element("Activities"); var transitionsElement = workflowDefinitionElement.Element("Transitions"); var activitiesDictionary = new Dictionary<int, ActivityRecord>(); foreach (var activityElement in activitiesElement.Elements()) { var localId = Int32.Parse(activityElement.Attribute("Id").Value); var activity = new ActivityRecord { Name = activityElement.Attribute("Name").Value, Start = Boolean.Parse(activityElement.Attribute("Start").Value), X = Int32.Parse(activityElement.Attribute("X").Value), Y = Int32.Parse(activityElement.Attribute("Y").Value), State = activityElement.Element("State").Value }; activitiesDictionary.Add(localId, activity); workflowDefinition.ActivityRecords.Add(activity); } foreach (var transitionElement in transitionsElement.Elements()) { var sourceActivityId = Int32.Parse(transitionElement.Attribute("SourceActivityId").Value); var sourceEndpoint = transitionElement.Attribute("SourceEndpoint").Value; var destinationActivityId = Int32.Parse(transitionElement.Attribute("DestinationActivityId").Value); var destinationEndpoint = transitionElement.Attribute("DestinationEndpoint").Value; workflowDefinition.TransitionRecords.Add(new TransitionRecord { SourceActivityRecord = activitiesDictionary[sourceActivityId], SourceEndpoint = sourceEndpoint, DestinationActivityRecord = activitiesDictionary[destinationActivityId], DestinationEndpoint = destinationEndpoint }); } } recipeContext.Executed = true; } private string ProbeWorkflowDefinitionName(string name) { var count = 0; var newName = name; WorkflowDefinitionRecord workflowDefinition; do { var localName = newName; workflowDefinition = _workflowDefinitionRepository.Get(x => x.Name == localName); if (workflowDefinition != null) { newName = string.Format("{0}-{1}", name, ++count); } } while (workflowDefinition != null); return newName; } } }
45.351648
120
0.618125
[ "BSD-3-Clause" ]
ArsenShnurkov/OrchardCMS-1.7.3-for-mono
src/Orchard.Web/Modules/Orchard.Workflows/ImportExport/WorkflowsRecipeHandler.cs
4,129
C#
// Copyright (c) "Neo4j" // Neo4j Sweden AB [http://neo4j.com] // // This file is part of Neo4j. // // 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.Threading.Tasks; using FluentAssertions; using Neo4j.Driver.IntegrationTests.Internals; using Xunit; using Xunit.Abstractions; namespace Neo4j.Driver.IntegrationTests.Direct { public class ErrorIT : DirectDriverTestBase { private IDriver Driver => Server.Driver; public ErrorIT(ITestOutputHelper output, StandAloneIntegrationTestFixture fixture) : base(output, fixture) { } [RequireServerFact] public async Task ErrorToRunSessionInTransaction() { var session = Driver.AsyncSession(); try { var tx = await session.BeginTransactionAsync(); try { var ex = await Record.ExceptionAsync(() => session.RunAsync("RETURN 1")); ex.Should().BeOfType<ClientException>().Which .Message.Should().StartWith("Please close the currently open transaction object"); } finally { await tx.RollbackAsync(); } } finally { await session.CloseAsync(); } } [RequireServerFact] public async Task ErrorToRunTransactionInTransaction() { var session = Driver.AsyncSession(); try { var tx = await session.BeginTransactionAsync(); try { var ex = await Record.ExceptionAsync(() => session.BeginTransactionAsync()); ex.Should().BeOfType<ClientException>().Which .Message.Should().StartWith("Please close the currently open transaction object"); } finally { await tx.RollbackAsync(); } } finally { await session.CloseAsync(); } } [RequireServerFact] public async Task ErrorToRunInvalidCypher() { var session = Driver.AsyncSession(); try { var result = await session.RunAsync("Invalid Cypher"); var ex = await Record.ExceptionAsync(() => result.ConsumeAsync()); ex.Should().BeOfType<ClientException>().Which .Message.Should().StartWith("Invalid input"); } finally { await session.CloseAsync(); } } [RequireServerFact] public async Task ShouldFailToConnectIncorrectPort() { var uri = Neo4jDefaultInstallation.BoltUri.Replace(Neo4jDefaultInstallation.BoltPort, "1234"); using (var driver = GraphDatabase.Driver(uri)) { var session = driver.AsyncSession(); try { var ex = await Record.ExceptionAsync(() => session.RunAsync("RETURN 1")); ex.Should().BeOfType<ServiceUnavailableException>(); } finally { await session.CloseAsync(); } } } [RequireServerFact] public void ShouldReportWrongScheme() { var ex = Record.Exception(() => GraphDatabase.Driver("http://localhost")); ex.Should().BeOfType<NotSupportedException>().Which .Message.Should().Be("Unsupported URI scheme: http"); } } }
32.06015
114
0.539869
[ "Apache-2.0" ]
bigmontz/neo4j-dotnet-driver
Neo4j.Driver/Neo4j.Driver.Tests.Integration/Direct/ErrorIT.cs
4,266
C#
namespace AutoMapper.Mappers { using System.Reflection; public class AssignableMapper : IObjectMapper { public object Map(ResolutionContext context) { if (context.SourceValue == null && !context.Mapper.ShouldMapSourceValueAsNull(context)) { return context.Mapper.CreateObject(context); } return context.SourceValue; } public bool IsMatch(TypePair context) { return context.DestinationType.IsAssignableFrom(context.SourceType); } } }
27.090909
100
0.588926
[ "MIT" ]
tlycken/AutoMapper
src/AutoMapper/Mappers/AssignableMapper.cs
596
C#
/***************************************************************************** Copyright 2018 The TensorFlow.NET Authors. All Rights Reserved. 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.Collections.Generic; using System.Linq; namespace Tensorflow.Keras.Engine { /// <summary> /// Specifies the ndim, dtype and shape of every input to a layer. /// </summary> public class InputSpec { public int? ndim; public int? min_ndim; Dictionary<int, int> axes; TensorShape shape; public int[] AllAxisDim; public InputSpec(TF_DataType dtype = TF_DataType.DtInvalid, int? ndim = null, int? min_ndim = null, Dictionary<int, int> axes = null, TensorShape shape = null) { this.ndim = ndim; if (axes == null) axes = new Dictionary<int, int>(); this.axes = axes; this.min_ndim = min_ndim; this.shape = shape; if (ndim == null && shape != null) this.ndim = shape.ndim; if (axes != null) AllAxisDim = axes.Select(x => x.Value).ToArray(); } public override string ToString() => $"min_ndim={min_ndim}, , axes={axes.Count}"; } }
34.017857
79
0.55643
[ "Apache-2.0" ]
Aangbaeck/TensorFlow.NET
src/TensorFlowNET.Core/Keras/Engine/InputSpec.cs
1,907
C#
// Copyright 2022 Google LLC // // 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 // // https://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. // Generated code. DO NOT EDIT! namespace Google.Cloud.Memcache.V1Beta2.Snippets { // [START memcache_v1beta2_generated_CloudMemcache_UpdateParameters_async_flattened_resourceNames] using Google.Cloud.Memcache.V1Beta2; using Google.LongRunning; using Google.Protobuf.WellKnownTypes; using System.Threading.Tasks; public sealed partial class GeneratedCloudMemcacheClientSnippets { /// <summary>Snippet for UpdateParametersAsync</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public async Task UpdateParametersResourceNamesAsync() { // Create client CloudMemcacheClient cloudMemcacheClient = await CloudMemcacheClient.CreateAsync(); // Initialize request argument(s) InstanceName name = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]"); FieldMask updateMask = new FieldMask(); MemcacheParameters parameters = new MemcacheParameters(); // Make the request Operation<Instance, OperationMetadata> response = await cloudMemcacheClient.UpdateParametersAsync(name, updateMask, parameters); // Poll until the returned long-running operation is complete Operation<Instance, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync(); // Retrieve the operation result Instance result = completedResponse.Result; // Or get the name of the operation string operationName = response.Name; // This name can be stored, then the long-running operation retrieved later by name Operation<Instance, OperationMetadata> retrievedResponse = await cloudMemcacheClient.PollOnceUpdateParametersAsync(operationName); // Check if the retrieved long-running operation has completed if (retrievedResponse.IsCompleted) { // If it has completed, then access the result Instance retrievedResult = retrievedResponse.Result; } } } // [END memcache_v1beta2_generated_CloudMemcache_UpdateParameters_async_flattened_resourceNames] }
47.580645
142
0.703729
[ "Apache-2.0" ]
AlexandrTrf/google-cloud-dotnet
apis/Google.Cloud.Memcache.V1Beta2/Google.Cloud.Memcache.V1Beta2.GeneratedSnippets/CloudMemcacheClient.UpdateParametersResourceNamesAsyncSnippet.g.cs
2,950
C#
using System; using System.Reflection; using System.Resources; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("Discouragement")] [assembly: AssemblyDescription("For when your code makes you feel slightly too good")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("IOIIO Inc. kek")] [assembly: AssemblyProduct("Discourage")] [assembly: AssemblyCopyright("IOIIIO")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] [assembly: ComVisible(false)] [assembly: CLSCompliant(false)] [assembly: NeutralResourcesLanguage("en-US")] // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Revision and Build Numbers // by using the '*' as shown below: [assembly: AssemblyVersion("2.0.0.0")] [assembly: AssemblyFileVersion("2.0.0.0")]
35.65625
86
0.745837
[ "MIT" ]
IOIIIO/Discourage
EncouragePackage/Properties/AssemblyInfo.cs
1,143
C#
/*--------------------------------------------------------------------------------------------- * Copyright (c) Dolittle. All rights reserved. * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ using System; using System.Collections.Generic; using Google.Protobuf.Collections; using Machine.Specifications; namespace Dolittle.Runtime.Events.Relativity.Protobuf.Conversion.for_TenantOffsetExtensions { public class when_converting_tenant_offsets_to_and_from_protobuf { static IEnumerable<Dolittle.Runtime.Events.Relativity.TenantOffset> original; static RepeatedField<TenantOffset> protobuf; static IEnumerable<Dolittle.Runtime.Events.Relativity.TenantOffset> result; Establish context = () => original = new[] { new Dolittle.Runtime.Events.Relativity.TenantOffset(Guid.NewGuid(),42), new Dolittle.Runtime.Events.Relativity.TenantOffset(Guid.NewGuid(),43) }; Because of = () => { protobuf = original.ToProtobuf(); result = protobuf.ToTenantOffsets(); }; It should_be_equal_to_the_original = () => result.ShouldEqual(original); } }
42.16129
96
0.604438
[ "MIT" ]
pavsaund/Runtime
Specifications/Events/Relativity/Protobuf/Conversion/for_TenantOffsetExtensions/when_converting_tenant_offsets_to_and_from_protobuf.cs
1,307
C#
/* Yet Another Forum.NET * Copyright (C) 2003-2005 Bjørnar Henden * Copyright (C) 2006-2013 Jaben Cargman * Copyright (C) 2014-2018 Ingo Herbote * http://www.yetanotherforum.net/ * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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.Configuration; using System.Data; namespace YAF.Types.Objects { /// <summary> /// The settings property column. /// </summary> public class SettingsPropertyColumn { #region Constants and Fields /// <summary> /// The data type. /// </summary> public SqlDbType DataType; /// <summary> /// The settings. /// </summary> public SettingsProperty Settings; /// <summary> /// The size. /// </summary> public int Size; #endregion #region Constructors and Destructors /// <summary> /// Initializes a new instance of the <see cref="SettingsPropertyColumn"/> class. /// </summary> public SettingsPropertyColumn() { // empty for default constructor... } /// <summary> /// Initializes a new instance of the <see cref="SettingsPropertyColumn"/> class. /// </summary> /// <param name="settings"> /// The settings. /// </param> /// <param name="dataType"> /// The data type. /// </param> /// <param name="size"> /// The size. /// </param> public SettingsPropertyColumn(SettingsProperty settings, SqlDbType dataType, int size) { this.DataType = dataType; this.Settings = settings; this.Size = size; } #endregion } }
27.952941
91
0.635943
[ "Apache-2.0" ]
ammogcoder/YAFNET
yafsrc/YAF.Types/Objects/SettingsProfilePropertyColumn.cs
2,293
C#
// <copyright file="UpdateApi.FirmwareManifest.cs" company="Arm"> // Copyright (c) Arm. All rights reserved. // </copyright> namespace MbedCloudSDK.Update.Api { using System; using System.IO; using System.Threading.Tasks; using Mbed.Cloud.Common; using MbedCloudSDK.Common; using MbedCloudSDK.Exceptions; using MbedCloudSDK.Update.Model.FirmwareManifest; using static MbedCloudSDK.Common.Utils; using QueryOptions = Common.QueryOptions; /// <summary> /// Update Api /// </summary> public partial class UpdateApi { /// <summary> /// List Firmware Images. /// </summary> /// <param name="options"><see cref="QueryOptions"/></param> /// <returns>Paginated Response of <see cref="FirmwareManifest"/></returns> /// <exception cref="CloudApiException">CloudApiException</exception> /// <example> /// <code> /// try /// { /// var options = new QueryOptions /// { /// Limit = 5, /// }; /// var manifests = updateApi.ListFirmwareManifests(Options); /// foreach (var item in manifests) /// { /// Console.WriteLine(item); /// } /// return manifests; /// } /// catch (CloudApiException) /// { /// throw; /// } /// </code> /// </example> public PaginatedResponse<QueryOptions, FirmwareManifest> ListFirmwareManifests(QueryOptions options = null) { if (options == null) { options = new QueryOptions(); } try { return new PaginatedResponse<QueryOptions, FirmwareManifest>(ListFirmwareManifestsFunc, options); } catch (CloudApiException) { throw; } } private async Task<ResponsePage<FirmwareManifest>> ListFirmwareManifestsFunc(QueryOptions options = null) { if (options == null) { options = new QueryOptions(); } try { var resp = await Api.FirmwareManifestListAsync(limit: options.Limit, order: options.Order, after: options.After, filter: options.Filter?.FilterString, include: options.Include); var responsePage = new ResponsePage<FirmwareManifest>(resp.After, resp.HasMore, resp.TotalCount); responsePage.MapData<update_service.Model.FirmwareManifest>(resp.Data, FirmwareManifest.Map); return responsePage; } catch (update_service.Client.ApiException e) { throw new CloudApiException(e.ErrorCode, e.Message, e.ErrorContent); } } /// <summary> /// Get manifest with provided manifest_id. /// </summary> /// <param name="manifestId">Id</param> /// <returns><see cref="FirmwareManifest"/></returns> /// <exception cref="CloudApiException">CloudApiException</exception> /// <example> /// <code> /// try /// { /// var manifest = updateApI.GetFirmwareManifest("015baf5f4f04000000000001001003d5"); /// return manifest; /// } /// catch (CloudApiException) /// { /// throw; /// } /// </code> /// </example> public FirmwareManifest GetFirmwareManifest(string manifestId) { try { return FirmwareManifest.Map(Api.FirmwareManifestRetrieve(manifestId)); } catch (update_service.Client.ApiException ex) { return HandleNotFound<FirmwareManifest, update_service.Client.ApiException>(ex); } } /// <summary> /// Add Firmware Manifest. /// </summary> /// <param name="manifest"> /// Entity with all the properties required to create a new firmware manifest. /// <see cref="FirmwareManifest.DataFile"/> and <see cref="FirmwareManifest.Name"/> /// are mandatory. /// </param> /// <returns>The newly create firmware manifest.</returns> /// <exception cref="CloudApiException"> /// If the operation cannot be completed because of a server-side error (caused, for example, /// by an invalid parameter value). /// </exception> /// <exception cref="IOException"> /// If an I/O error occured when reading <c>FirmwareManifestInfo.DataFilePath</c> /// or <c>FirmwareManifestInfo.KeyTableFilePath</c>. /// </exception> /// <exception cref="UnauthorizedAccessException"> /// If current user has not the permission to read file specified in /// <c>FirmwareManifestInfo.DataFilePath</c> or <c>FirmwareManifestInfo.KeyTableFilePath</c>. /// </exception> /// <exception cref="ArgumentNullException"> /// If <paramref name="manifest"/> is <see langword="null"/>. /// </exception> /// <exception cref="ArgumentException"> /// If <see cref="FirmwareManifest.DataFile"/> is a <see langword="null"/> or blank string. /// <br/>-Or-<br/> /// If <see cref="FirmwareManifest.Name"/> is a <see langword="null"/> or blank string. /// </exception> /// <example> /// <code> /// try /// { /// return updateApi.AddFirmwareManifest(new FirmwareManifest /// { /// DataFilePath = "path to the file", /// Name = "description of the manifest" /// }); /// } /// catch (CloudApiException) /// { /// throw; /// } /// </code> /// </example> public FirmwareManifest AddFirmwareManifest(FirmwareManifest manifest) { if (manifest == null) { throw new ArgumentNullException(nameof(manifest)); } if (string.IsNullOrWhiteSpace(manifest.DataFile)) { throw new ArgumentException($"{nameof(FirmwareManifest)}.{nameof(FirmwareManifest.DataFile)} cannot be empty"); } if (string.IsNullOrWhiteSpace(manifest.Name)) { throw new ArgumentException($"{nameof(FirmwareManifest)}.{nameof(FirmwareManifest.Name)} cannot be empty"); } using (var dataFileStream = File.OpenRead(manifest.DataFile)) { var keyTableFileStream = OpenKeyTableStream(); try { var response = Api.FirmwareManifestCreate(dataFileStream, manifest.Name, manifest.Description, keyTableFileStream); return FirmwareManifest.Map(response); } catch (update_service.Client.ApiException e) { throw new CloudApiException(e.ErrorCode, e.Message, e.ErrorContent); } finally { keyTableFileStream?.Close(); } } FileStream OpenKeyTableStream() => string.IsNullOrWhiteSpace(manifest.KeyTableFile) ? null : File.OpenRead(manifest.KeyTableFile); } /// <summary> /// Add Firmware Manifest. /// </summary> /// <param name="dataFile">Path to the manifest file</param> /// <param name="name">Name of the firmware manifest.</param> /// <param name="description">Description for the firmware manifest.</param> /// <returns>Firmware Manifest</returns> /// <exception cref="CloudApiException">CloudApiException</exception> /// <example> /// <code> /// try /// { /// var manifest = updateApi.AddFirmwareManifest("FirmwareManifest file path", "name of manifest"); /// return manifest; /// } /// catch (CloudApiException) /// { /// throw; /// } /// </code> /// </example> public FirmwareManifest AddFirmwareManifest(string dataFile, string name, string description = null) { return AddFirmwareManifest(new FirmwareManifest { DataFile = dataFile, Name = name, Description = description }); } /// <summary> /// Delete firmware manifest. /// </summary> /// <param name="manifestId">Id</param> /// <exception cref="CloudApiException">CloudApiException</exception> /// <example> /// <code> /// try /// { /// updateApI.DeleteFirmwareManifest("015baf5f4f04000000000001001003d5"); /// } /// catch (CloudApiException) /// { /// throw; /// } /// </code> /// </example> public void DeleteFirmwareManifest(string manifestId) { try { Api.FirmwareManifestDestroy(manifestId); } catch (update_service.Client.ApiException e) { HandleNotFound<FirmwareManifest, update_service.Client.ApiException>(e); } } } }
36.095785
193
0.534126
[ "Apache-2.0" ]
ARMmbed/mbed-cloud-sdk-dotnet
src/Legacy/Update/Api/UpdateApi.FirmwareManifest.cs
9,423
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using FlatRedBall.Glue.Events; using FlatRedBall.IO; using FlatRedBall.Glue.CodeGeneration; using FlatRedBall.Glue.Controls; using FlatRedBall.Glue.Plugins; using FlatRedBall.Glue.Plugins.ExportedImplementations; using System.Windows.Forms; using FlatRedBall.Glue.SaveClasses; using FlatRedBall.Glue.Parsing; using FlatRedBall.Utilities; namespace FlatRedBall.Glue.SetVariable { public class EventResponseSaveSetVariableLogic { public void ReactToChange(string changedMember, object oldValue, EventResponseSave ers, IElement container) { if (changedMember == nameof(EventResponseSave.EventName)) { ReactToEventRename(oldValue, ers, container); } } private static void ReactToEventRename(object oldValue, EventResponseSave ers, IElement container) { string oldName = oldValue as string; string newName = ers.EventName; // The code // inside this // event handler // are saved in the // Element.Event.cs file // so that it can be edited // in Visual Studio. If the // EventResponseSave changes then // it will use a new method. We need // to take out the old method and move // the contents to the new method. // We'll "cheat" by setting the name to the old // one and getting the contents, then switching it // back to the new: string fullFileName = ers.GetSharedCodeFullFileName(); if (!System.IO.File.Exists(fullFileName)) { PluginManager.ReceiveError("Could not find the file " + fullFileName); } else if (DetermineIfCodeFileIsValid(fullFileName) == false) { PluginManager.ReceiveError("Invalid code file " + fullFileName); } else { ers.EventName = oldName; string contents = RemoveWhiteSpaceForCodeWindow(ers.GetEventContents()); ers.EventName = newName; // Now save the contents into the new method: if (string.IsNullOrEmpty(contents) || HasMatchingBrackets(contents)) { EventCodeGenerator.InjectTextForEventAndSaveCustomFile( container, ers, contents); PluginManager.ReceiveOutput("Saved " + ers); GlueCommands.Self.GenerateCodeCommands.GenerateCurrentElementCode(); DialogResult result = MessageBox.Show("Would you like to delete the old method On" + oldName + "?", "Delete old function?", MessageBoxButtons.YesNo); if (result == DialogResult.Yes) { int startIndex; int endIndex; contents = FileManager.FromFileText(fullFileName); EventCodeGenerator.GetStartAndEndIndexForMethod(contents, "On" + oldName, out startIndex, out endIndex); contents = contents.Remove(startIndex, endIndex - startIndex); FileManager.SaveText(contents, fullFileName); } } else { PluginManager.ReceiveError("Mismatch of } and { in event " + ers); } } } private static bool HasMatchingBrackets(string text) { string contentsWithoutComments = ParsedClass.RemoveComments(text); int numberOfOpening = contentsWithoutComments.CountOf('{'); int numberOfClosing = contentsWithoutComments.CountOf('}'); return numberOfOpening == numberOfClosing; } private static string RemoveWhiteSpaceForCodeWindow(string textToAssign) { if (!string.IsNullOrEmpty(textToAssign)) { textToAssign = textToAssign.Replace("\r\r", "\r"); textToAssign = textToAssign.Replace("\n\t\t", "\n"); textToAssign = textToAssign.Replace("\r\n\t", "\r\n"); textToAssign = textToAssign.Replace("\r\n\t\t", "\r\n"); textToAssign = textToAssign.Replace("\r\n ", "\r\n"); textToAssign = textToAssign.Replace("\n ", "\n"); if (textToAssign.StartsWith(" ")) { textToAssign = textToAssign.Substring(12); } } return textToAssign; } /// <summary> /// Determines if a code file is valid based off of the number of opening and closing /// brackets it has. This method counts { and }, but doesn't include comments or contsts like /// "{0}". /// </summary> /// <param name="fileName">The file name to open - this should be the .cs file for C# files.</param> /// <returns>Whether the file is valid.</returns> private static bool DetermineIfCodeFileIsValid(string fileName) { string contents = FileManager.FromFileText(fileName); contents = ParsedClass.RemoveComments(contents); int numberOfOpenBrackets = ParsedClass.NumberOfValid('{', contents); int numberOfClosedBrackets = ParsedClass.NumberOfValid('}', contents); return numberOfOpenBrackets == numberOfClosedBrackets; } } }
38.979452
169
0.571253
[ "MIT" ]
derKosi/FlatRedBall
FRBDK/Glue/Glue/SetVariable/EventResponseSaveSetVariableLogic.cs
5,693
C#
using System; namespace Esprima { public enum CommentType { Block, Line } public class Comment { public CommentType Type; public string? Value; public bool MultiLine; public int[] Slice = Array.Empty<int>(); public int Start; public int End; public Loc? Loc; } }
15.782609
48
0.5427
[ "BSD-3-Clause" ]
tony-jang/esprima-dotnet
src/Esprima/Comment.cs
365
C#
 // ListMonsterRecordNameMenu.cs // Copyright (c) 2014+ by Michael Penner. All rights reserved. using Eamon.Framework; using Eamon.Framework.Helpers; using Eamon.Game.Attributes; using EamonDD.Framework.Menus.ActionMenus; using static EamonDD.Game.Plugin.PluginContext; namespace EamonDD.Game.Menus.ActionMenus { [ClassMappings] public class ListMonsterRecordNameMenu : ListRecordNameMenu<IMonster, IMonsterHelper>, IListMonsterRecordNameMenu { public ListMonsterRecordNameMenu() { Title = "LIST MONSTER RECORD NAMES"; RecordTable = Globals.Database.MonsterTable; RecordTypeName = "Monster"; } } }
24.074074
115
0.750769
[ "MIT" ]
TheRealEamonCS/Eamon-CS
System/EamonDD/Game/Menus/ActionMenus/MonsterMenus/ListMonsterRecordNameMenu.cs
652
C#
 using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using Random = UnityEngine.Random; public class CharacterSpawner : MonoBehaviour { //a static list to recycle agents //(in AgentBehavior script)when agent reach dest, add to list, disable //reset pos, set active, remove from list //randomize Type at spawn public static List<GameObject> CharacterPool = new List<GameObject>(); private float _screenHeight; private float _screenWidth; private Vector2 _spawnLocation; private int maxNum = 5; private int charNum; private int spawnInterval = 8; private Camera _myCam; private bool invoked = false; //private InputField intervalInput; // Start is called before the first frame update private void Start() { _myCam = Camera.main; //intervalInput = GameObject.Find("IntervalInput").GetComponent<InputField>(); _screenHeight = _myCam.orthographicSize * 2; _screenWidth = _screenHeight/2 * _myCam.aspect; _spawnLocation.y = -_screenHeight; Invoke("SpawnNewCharacters", 1); //Invoke("SpawnNewCharacters",1); } // Update is called once per frame private void LateUpdate() { if(!invoked) if (CharacterPool.Count == 0) return; for (int i = 0; i < CharacterPool.Count; i++) { Destroy(CharacterPool[i]); CharacterPool.Remove(CharacterPool[i]); } // _spawnLocation.x = Random.Range(-_screenWidth, _screenWidth); // CharacterPool[0].transform.position = _spawnLocation; // CharacterPool[0].SetActive(true); // CharacterPool.Remove(CharacterPool[0]); } private void SpawnNewCharacters() { if(GameManager.gameState == 0) for (int i = 0; i < maxNum; i++) { var spawnedObj = Instantiate(Resources.Load<GameObject>("Prefabs/Red")); spawnedObj.transform.position = Vector3.up * -_screenHeight/2 + Vector3.right * Random.Range(-_screenWidth, _screenWidth); } maxNum += 5; AgentBehavior.InitSpeed += 0.1f; print(AgentBehavior.InitSpeed); Invoke("SpawnNewCharacters", spawnInterval); } // public void SetIntervalTime() // { // spawnInterval = int.Parse(intervalInput.text); // intervalInput.gameObject.SetActive(false); // } }
28.136364
134
0.625202
[ "Unlicense" ]
rachel2386/CodeLab1Final
CodeLab1Final/Assets/Scripts/CharacterSpawner.cs
2,478
C#
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text.RegularExpressions; namespace Plethora.SearchBar.Definitions.WellKnown { public class DateRangeDataTypeDefinition : DataTypeDefinition { private static readonly Dictionary<string, TryParseCultureFunction> alternatePairs = new Dictionary<string, TryParseCultureFunction>(); static DateRangeDataTypeDefinition() { RegisterPatternParserPair(@"this week", ThisWeekParseFunction); RegisterPatternParserPair(@"last week", LastWeekParseFunction); RegisterPatternParserPair(@"next week", NextWeekParseFunction); RegisterPatternParserPair(@"this month", ThisMonthParseFunction); RegisterPatternParserPair(@"last month", LastMonthParseFunction); RegisterPatternParserPair(@"next month", NextMonthParseFunction); } public DateRangeDataTypeDefinition() : this(CultureInfo.CurrentCulture) { } public DateRangeDataTypeDefinition(CultureInfo cultureInfo) : base("date", ConstructRegexPattern(cultureInfo), GetParseDate(cultureInfo)) { } private static string ConstructRegexPattern(CultureInfo cultureInfo) { IEnumerable<string> alternatePatterns = alternatePairs.Keys; string datePattern = string.Join("|", alternatePatterns); return datePattern; } public static void RegisterPatternParserPair(string pattern, TryParseCultureFunction tryParseFunction) { alternatePairs.Add(pattern, tryParseFunction); } private static TryParseFunction GetParseDate(CultureInfo cultureInfo) { return delegate(string text, out object value) { bool result; if (alternatePairs.TryGetValue(text, out TryParseCultureFunction tryParseFunction)) { result = tryParseFunction(text, cultureInfo, out value); return result; } foreach (var pair in alternatePairs) { string pattern = pair.Key; tryParseFunction = pair.Value; bool isMatch = Regex.IsMatch(text, pattern, RegexBuilder.Options); if (isMatch) { result = tryParseFunction(text, cultureInfo, out value); return result; } } value = null; return false; }; } #region Parse Functions public static TryParseCultureFunction ThisWeekParseFunction { get { return delegate (string text, CultureInfo cultureInfo, out object value) { value = ThisWeek(cultureInfo); return true; }; } } public static TryParseCultureFunction LastWeekParseFunction { get { return delegate (string text, CultureInfo cultureInfo, out object value) { DateTimeRange thisWeek = ThisWeek(cultureInfo); DateTimeRange lastWeek = new DateTimeRange(thisWeek.Min.AddDays(-7), thisWeek.Max.AddDays(-7)); value = lastWeek; return true; }; } } public static TryParseCultureFunction NextWeekParseFunction { get { return delegate (string text, CultureInfo cultureInfo, out object value) { DateTimeRange thisWeek = ThisWeek(cultureInfo); DateTimeRange lastWeek = new DateTimeRange(thisWeek.Min.AddDays(7), thisWeek.Max.AddDays(7)); value = lastWeek; return true; }; } } public static TryParseCultureFunction ThisMonthParseFunction { get { return delegate (string text, CultureInfo cultureInfo, out object value) { DateTime today = DateTime.Today; int year = today.Year; int month = today.Month; value = new DateTimeRange( new DateTime(year, month, 1), new DateTime(year, month, DateTime.DaysInMonth(year, month))); return true; }; } } public static TryParseCultureFunction LastMonthParseFunction { get { return delegate (string text, CultureInfo cultureInfo, out object value) { DateTime today = DateTime.Today; int year = today.Year; int month = today.Month; month -= 1; if (month == 0) { month = 12; year -= 1; } value = new DateTimeRange( new DateTime(year, month, 1), new DateTime(year, month, DateTime.DaysInMonth(year, month))); return true; }; } } public static TryParseCultureFunction NextMonthParseFunction { get { return delegate (string text, CultureInfo cultureInfo, out object value) { DateTime today = DateTime.Today; int year = today.Year; int month = today.Month; month += 1; if (month == 13) { month = 1; year += 1; } value = new DateTimeRange( new DateTime(year, month, 1), new DateTime(year, month, DateTime.DaysInMonth(year, month))); return true; }; } } #endregion private static DateTimeRange ThisWeek(CultureInfo cultureInfo) { DateTime today = DateTime.Today; DayOfWeek firstDayOfWeek = cultureInfo.DateTimeFormat.FirstDayOfWeek; DayOfWeek lastDayOfWeek = (firstDayOfWeek == DayOfWeek.Sunday) ? DayOfWeek.Saturday : firstDayOfWeek - 1; DayOfWeek dayOfWeek = today.DayOfWeek; int daysToFirstDayOfWeek = dayOfWeek - firstDayOfWeek; int daysToLastDayOfWeek = lastDayOfWeek - dayOfWeek; if (daysToFirstDayOfWeek < 0) daysToFirstDayOfWeek += 7; if (daysToLastDayOfWeek < 0) daysToLastDayOfWeek += 7; DateTime firstDateOfWeek = today.AddDays(-(daysToFirstDayOfWeek)); DateTime lastDateOfWeek = today.AddDays(daysToLastDayOfWeek); DateTimeRange range = new DateTimeRange(firstDateOfWeek, lastDateOfWeek); return range; } } }
32.883929
115
0.52145
[ "MIT", "BSD-3-Clause" ]
mikebarker/Plethora.NET
src/Plethora.SearchBar/Definitions/WellKnown/DateRangeDataTypeDefinition.cs
7,368
C#
namespace MoyskleyTech.ImageProcessing.Image { /// <summary> /// How an image should be rotated /// </summary> public enum RotateFlipType { /// <summary> /// No flip /// </summary> FlipNone = 0, /// <summary> /// XFlip /// </summary> FlipX = 0x40, /// <summary> /// YFlip /// </summary> FlipY = 0x80, /// <summary> /// Both flip(180 rotation) /// </summary> FlipXY = 0xC0, /* 00000000 = FLIPNONE 01000000 = FLIPX 10000000 = FLIPY 11000000 = FLIPXY*/ /// <summary> /// No rotation /// </summary> RotateNone=0, /// <summary> /// Rotate 90 degree /// </summary> Rotate90=1, /// <summary> /// Rotate 180 degree /// </summary> Rotate180 = 2, /// <summary> /// Rotate 270 degree /// </summary> Rotate270 = 3, /* 00000000 = RotateNone 00000001 = Rotate90 00000010 = Rotate180 00000011 = Rotate270*/ #pragma warning disable CS1591 Rotate180FlipNone= 0x02, Rotate180FlipX= 0x42, Rotate180FlipXY= 0xC2, Rotate180FlipY= 0x82, Rotate270FlipNone= 0x03, Rotate270FlipX= 0x43, Rotate270FlipXY= 0xC3, Rotate270FlipY= 0x83, Rotate90FlipNone= 0x01, Rotate90FlipX= 0x41, Rotate90FlipXY= 0xC1, Rotate90FlipY= 0x81, RotateNoneFlipNone= 0x00, RotateNoneFlipX= 0x40, RotateNoneFlipXY= 0xC0, RotateNoneFlipY= 0x80, #pragma warning restore CS1591 } }
23.736111
45
0.504389
[ "MIT" ]
moyskleytech/ImageProcessin
MoyskleyTech.ImageProcessing/Image/RotateFlipType.cs
1,711
C#
/* * Copyright 2010-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file 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.IO; using System.Text; using System.Xml.Serialization; using Amazon.SimpleWorkflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.SimpleWorkflow.Model.Internal.MarshallTransformations { /// <summary> /// Register Domain Request Marshaller /// </summary> internal class RegisterDomainRequestMarshaller : IMarshaller<IRequest, RegisterDomainRequest> { public IRequest Marshall(RegisterDomainRequest registerDomainRequest) { IRequest request = new DefaultRequest(registerDomainRequest, "AmazonSimpleWorkflow"); string target = "SimpleWorkflowService.RegisterDomain"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.0"; string uriResourcePath = ""; if (uriResourcePath.Contains("?")) { string queryString = uriResourcePath.Substring(uriResourcePath.IndexOf("?") + 1); uriResourcePath = uriResourcePath.Substring(0, uriResourcePath.IndexOf("?")); foreach (string s in queryString.Split('&', ';')) { string[] nameValuePair = s.Split('='); if (nameValuePair.Length == 2 && nameValuePair[1].Length > 0) { request.Parameters.Add(nameValuePair[0], nameValuePair[1]); } else { request.Parameters.Add(nameValuePair[0], null); } } } request.ResourcePath = uriResourcePath; using (StringWriter stringWriter = new StringWriter()) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); if (registerDomainRequest != null && registerDomainRequest.IsSetName()) { writer.WritePropertyName("name"); writer.Write(registerDomainRequest.Name); } if (registerDomainRequest != null && registerDomainRequest.IsSetDescription()) { writer.WritePropertyName("description"); writer.Write(registerDomainRequest.Description); } if (registerDomainRequest != null && registerDomainRequest.IsSetWorkflowExecutionRetentionPeriodInDays()) { writer.WritePropertyName("workflowExecutionRetentionPeriodInDays"); writer.Write(registerDomainRequest.WorkflowExecutionRetentionPeriodInDays); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } } }
37.398058
122
0.583074
[ "Apache-2.0" ]
jdluzen/aws-sdk-net-android
AWSSDK/Amazon.SimpleWorkflow/Model/Internal/MarshallTransformations/RegisterDomainRequestMarshaller.cs
3,852
C#
using System; using System.Threading.Tasks; using Newtonsoft.Json; namespace TdLib { /// <summary> /// Autogenerated TDLib APIs /// </summary> public static partial class TdApi { /// <summary> /// Ends screen sharing in a joined group call /// </summary> public class EndGroupCallScreenSharing : Function<Ok> { /// <summary> /// Data type for serialization /// </summary> [JsonProperty("@type")] public override string DataType { get; set; } = "endGroupCallScreenSharing"; /// <summary> /// Extra data attached to the function /// </summary> [JsonProperty("@extra")] public override string Extra { get; set; } /// <summary> /// Group call identifier /// </summary> [JsonConverter(typeof(Converter))] [JsonProperty("group_call_id")] public int GroupCallId { get; set; } } /// <summary> /// Ends screen sharing in a joined group call /// </summary> public static Task<Ok> EndGroupCallScreenSharingAsync( this Client client, int groupCallId = default) { return client.ExecuteAsync(new EndGroupCallScreenSharing { GroupCallId = groupCallId }); } } }
29.081633
88
0.529123
[ "MIT" ]
0x25CBFC4F/tdsharp
TDLib.Api/Functions/EndGroupCallScreenSharing.cs
1,425
C#
using AntDesign.Pro.Layout; using AntDesignBlazorDemo.Services; using System; using System.Net.Http; using System.Threading.Tasks; using Microsoft.AspNetCore.Components.WebAssembly.Hosting; using Microsoft.Extensions.DependencyInjection; namespace AntDesignBlazorDemo { public class Program { public static async Task Main(string[] args) { var builder = WebAssemblyHostBuilder.CreateDefault(args); builder.RootComponents.Add<App>("#app"); builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) }); builder.Services.AddAntDesign(); builder.Services.Configure<ProSettings>(builder.Configuration.GetSection("ProSettings")); builder.Services.AddScoped<IChartService, ChartService>(); builder.Services.AddScoped<IProjectService, ProjectService>(); builder.Services.AddScoped<IUserService, UserService>(); builder.Services.AddScoped<IAccountService, AccountService>(); builder.Services.AddScoped<IProfileService, ProfileService>(); await builder.Build().RunAsync(); } } }
39.666667
124
0.702521
[ "MIT" ]
yanxiaodi/MyCodeSamples
DotNetConf2020Demo/AntDesignBlazorDemo/Program.cs
1,190
C#
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using ClearHl7.Helpers; using ClearHl7.Serialization; using ClearHl7.V250.Types; namespace ClearHl7.V250.Segments { /// <summary> /// HL7 Version 2 Segment ERQ - Equipment Detail. /// </summary> public class ErqSegment : ISegment { /// <inheritdoc/> public string Id { get; } = "ERQ"; /// <inheritdoc/> public int Ordinal { get; set; } /// <summary> /// ERQ.1 - Query Tag. /// </summary> public string QueryTag { get; set; } /// <summary> /// ERQ.2 - Event Identifier. /// </summary> public CodedElement EventIdentifier { get; set; } /// <summary> /// ERQ.3 - Input Parameter List. /// </summary> public IEnumerable<QueryInputParameterList> InputParameterList { get; set; } /// <inheritdoc/> public void FromDelimitedString(string delimitedString) { FromDelimitedString(delimitedString, null); } /// <inheritdoc/> public void FromDelimitedString(string delimitedString, Separators separators) { Separators seps = separators ?? new Separators().UsingConfigurationValues(); string[] segments = delimitedString == null ? Array.Empty<string>() : delimitedString.Split(seps.FieldSeparator, StringSplitOptions.None); if (segments.Length > 0) { if (string.Compare(Id, segments[0], true, CultureInfo.CurrentCulture) != 0) { throw new ArgumentException($"{ nameof(delimitedString) } does not begin with the proper segment Id: '{ Id }{ seps.FieldSeparator }'.", nameof(delimitedString)); } } QueryTag = segments.Length > 1 && segments[1].Length > 0 ? segments[1] : null; EventIdentifier = segments.Length > 2 && segments[2].Length > 0 ? TypeSerializer.Deserialize<CodedElement>(segments[2], false, seps) : null; InputParameterList = segments.Length > 3 && segments[3].Length > 0 ? segments[3].Split(seps.FieldRepeatSeparator, StringSplitOptions.None).Select(x => TypeSerializer.Deserialize<QueryInputParameterList>(x, false, seps)) : null; } /// <inheritdoc/> public string ToDelimitedString() { CultureInfo culture = CultureInfo.CurrentCulture; return string.Format( culture, StringHelper.StringFormatSequence(0, 4, Configuration.FieldSeparator), Id, QueryTag, EventIdentifier?.ToDelimitedString(), InputParameterList != null ? string.Join(Configuration.FieldRepeatSeparator, InputParameterList.Select(x => x.ToDelimitedString())) : null ).TrimEnd(Configuration.FieldSeparator.ToCharArray()); } } }
38.775
239
0.575435
[ "MIT" ]
kamlesh-microsoft/clear-hl7-net
src/ClearHl7/V250/Segments/ErqSegment.cs
3,104
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Crawler.Model.DataModel; using Crawler.SystemConfig; using System.IO; using Newtonsoft.Json; namespace Crawler.Model.dao.Json { class NotifyConfigModel : AbsGetNotifyConfigData { /// <summary> /// 取得使用者設定通知資料 /// </summary> /// <returns></returns> public override List<Member> GetMemberNotifyConfig() { List<Member> memberData = new List<Member>(); var fileList = Directory.GetFiles(SystemInfo.notifyConfig); foreach (var file in fileList) { var member = new Member(); var memberSetupFileName = Path.GetFileNameWithoutExtension(file); string memberJson = ReadFile.ReadJsonFile(Path.GetFileName(file), SystemInfo.member); try { member = JsonConvert.DeserializeObject<Member>(memberJson); } catch (Exception) { throw; } member.Account = Path.GetFileNameWithoutExtension(file); string json = ReadFile.ReadJsonFile(file, SystemInfo.notifyConfig); try { member.NotifyConfig = JsonConvert.DeserializeObject<List<NotifyConfig>>(json); memberData.Add(member); } catch (Exception ex) { continue; //throw; } } return memberData; } } }
30.571429
101
0.52278
[ "Apache-2.0" ]
garycheng45/Fund
Crawler/Model/dao/Json/NotifyConfigModel.cs
1,736
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // 有关程序集的一般信息由以下 // 控制。更改这些特性值可修改 // 与程序集关联的信息。 [assembly: AssemblyTitle("WindowsFormsApp2")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("WindowsFormsApp2")] [assembly: AssemblyCopyright("Copyright © 2018")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // 将 ComVisible 设置为 false 会使此程序集中的类型 //对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型 //请将此类型的 ComVisible 特性设置为 true。 [assembly: ComVisible(false)] // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID [assembly: Guid("d9e90b24-71ff-452f-a177-447a9d3db3e9")] // 程序集的版本信息由下列四个值组成: // // 主版本 // 次版本 // 生成号 // 修订号 // // 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号 // 方法是按如下所示使用“*”: : // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")]
25.756757
56
0.717733
[ "Apache-2.0" ]
l70077007/DataTableTextAlignment1
Properties/AssemblyInfo.cs
1,294
C#
/* * Copyright 2010-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file 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. */ /* * Do not modify this file. This file is generated from the rekognition-2016-06-27.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Rekognition.Model { /// <summary> /// Details and tracking information for a single time a person is tracked in a video. /// Amazon Rekognition operations that track persons return an array of <code>PersonDetection</code> /// objects with elements for each time a person is tracked in a video. For more information, /// see . /// </summary> public partial class PersonDetection { private PersonDetail _person; private long? _timestamp; /// <summary> /// Gets and sets the property Person. /// <para> /// Details about a person tracked in a video. /// </para> /// </summary> public PersonDetail Person { get { return this._person; } set { this._person = value; } } // Check to see if Person property is set internal bool IsSetPerson() { return this._person != null; } /// <summary> /// Gets and sets the property Timestamp. /// <para> /// The time, in milliseconds from the start of the video, that the person was tracked. /// </para> /// </summary> public long Timestamp { get { return this._timestamp.GetValueOrDefault(); } set { this._timestamp = value; } } // Check to see if Timestamp property is set internal bool IsSetTimestamp() { return this._timestamp.HasValue; } } }
30.897436
109
0.627386
[ "Apache-2.0" ]
HaiNguyenMediaStep/aws-sdk-net
sdk/src/Services/Rekognition/Generated/Model/PersonDetection.cs
2,410
C#
/* Copyright 2014-2015, Mark Taling 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.Collections.Generic; using System.Threading.Tasks; using System.Web.Http; using Augurk.Api.Managers; namespace Augurk.Api.Controllers { public class BranchController : ApiController { private readonly ProductManager _productManager = new ProductManager(); [Route("api/branches")] [HttpGet] public async Task<IEnumerable<string>> GetAsync() { // NOTE: Using the ProductManager for backwards compatability return await _productManager.GetProductsAsync(); } } }
31.444444
79
0.727032
[ "Apache-2.0" ]
bheerschop/Augurk
src/Augurk.Api/Controllers/V1/BranchController.cs
1,134
C#
/* * Copyright (c) Contributors, http://opensimulator.org/ * See CONTRIBUTORS.TXT for a full list of copyright holders. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * Neither the name of the OpenSimulator Project nor the * names of its contributors may be used to endorse or promote products * derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ using System; using OpenMetaverse; namespace OpenSim.Framework { [Serializable] public class sLLVector3 { public float x = 0; public float y = 0; public float z = 0; public sLLVector3() { } public sLLVector3(Vector3 v) { x = v.X; y = v.Y; z = v.Z; } } }
39.196078
80
0.69985
[ "BSD-3-Clause" ]
Ideia-Boa/diva-distribution
OpenSim/Framework/sLLVector3.cs
1,999
C#
namespace Core.Messages { public class QuitGameMessage { } }
10.428571
32
0.643836
[ "MIT" ]
deccer/GameArchitecture
Core/Messages/QuitGameMessage.cs
73
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //------------------------------------------------------------------------------ namespace Geta.Optimizely.ContentTypeIcons { /// <summary> /// Font Awesome. Version 5.9.0. /// </summary> public enum FontAwesome5Solid { /// <summary> /// Ad (ad) /// <para>Terms: advertisement, media, newspaper, promotion, publicity</para> /// <para>Added in 5.10.2, updated in 5.3.0.</para> /// </summary> Ad = 0xf641, /// <summary> /// Address Book (address-book) /// <para>Styles: solid, regular</para> /// <para>Terms: contact, directory, index, little black book, rolodex</para> /// <para>Added in 4.7.0, updated in 5.0.0 and 5.0.3.</para> /// </summary> AddressBook = 0xf2b9, /// <summary> /// Address Card (address-card) /// <para>Styles: solid, regular</para> /// <para>Terms: about, contact, id, identification, postcard, profile</para> /// <para>Added in 4.7.0, updated in 5.0.0 and 5.0.3.</para> /// </summary> AddressCard = 0xf2bb, /// <summary> /// Adjust (adjust) /// <para>Terms: contrast, dark, light, saturation</para> /// <para>Added in 1.0.0, updated in 5.0.0, 5.10.2 and 5.11.0.</para> /// </summary> Adjust = 0xf042, /// <summary> /// Air Freshener (air-freshener) /// <para>Terms: car, deodorize, fresh, pine, scent</para> /// <para>Added in 5.15.3, updated in 5.2.0.</para> /// </summary> AirFreshener = 0xf5d0, /// <summary> /// Align-Center (align-center) /// <para>Terms: format, middle, paragraph, text</para> /// <para>Added in 1.0.0, updated in 5.0.0 and 5.9.0.</para> /// </summary> AlignCenter = 0xf037, /// <summary> /// Align-Justify (align-justify) /// <para>Terms: format, paragraph, text</para> /// <para>Added in 1.0.0, updated in 5.0.0 and 5.9.0.</para> /// </summary> AlignJustify = 0xf039, /// <summary> /// Align-Left (align-left) /// <para>Terms: format, paragraph, text</para> /// <para>Added in 1.0.0, updated in 5.0.0 and 5.9.0.</para> /// </summary> AlignLeft = 0xf036, /// <summary> /// Align-Right (align-right) /// <para>Terms: format, paragraph, text</para> /// <para>Added in 1.0.0, updated in 5.0.0 and 5.9.0.</para> /// </summary> AlignRight = 0xf038, /// <summary> /// Allergies (allergies) /// <para>Terms: allergy, freckles, hand, hives, pox, skin, spots</para> /// <para>Added in 5.0.7.</para> /// </summary> Allergies = 0xf461, /// <summary> /// Ambulance (ambulance) /// <para>Terms: covid-19, emergency, emt, er, help, hospital, support, vehicle</para> /// <para>Added in 3.0.0, updated in 5.0.0 and 5.0.7.</para> /// </summary> Ambulance = 0xf0f9, /// <summary> /// American Sign Language Interpreting (american-sign-language-interpreting) /// <para>Terms: asl, deaf, finger, hand, interpret, speak</para> /// <para>Added in 4.6.0, updated in 5.0.0.</para> /// </summary> AmericanSignLanguageInterpreting = 0xf2a3, /// <summary> /// Anchor (anchor) /// <para>Terms: berth, boat, dock, embed, link, maritime, moor, secure</para> /// <para>Added in 3.1.0, updated in 5.0.0 and 5.11.0.</para> /// </summary> Anchor = 0xf13d, /// <summary> /// Angle Double Down (angle-double-down) /// <para>Terms: arrows, caret, download, expand</para> /// <para>Added in 3.0.0, updated in 5.0.0.</para> /// </summary> AngleDoubleDown = 0xf103, /// <summary> /// Angle Double Left (angle-double-left) /// <para>Terms: arrows, back, caret, laquo, previous, quote</para> /// <para>Added in 3.0.0, updated in 5.0.0.</para> /// </summary> AngleDoubleLeft = 0xf100, /// <summary> /// Angle Double Right (angle-double-right) /// <para>Terms: arrows, caret, forward, more, next, quote, raquo</para> /// <para>Added in 3.0.0, updated in 5.0.0.</para> /// </summary> AngleDoubleRight = 0xf101, /// <summary> /// Angle Double Up (angle-double-up) /// <para>Terms: arrows, caret, collapse, upload</para> /// <para>Added in 3.0.0, updated in 5.0.0.</para> /// </summary> AngleDoubleUp = 0xf102, /// <summary> /// Angle-Down (angle-down) /// <para>Terms: arrow, caret, download, expand</para> /// <para>Added in 3.0.0, updated in 5.0.0.</para> /// </summary> AngleDown = 0xf107, /// <summary> /// Angle-Left (angle-left) /// <para>Terms: arrow, back, caret, less, previous</para> /// <para>Added in 3.0.0, updated in 5.0.0 and 5.11.0.</para> /// </summary> AngleLeft = 0xf104, /// <summary> /// Angle-Right (angle-right) /// <para>Terms: arrow, care, forward, more, next</para> /// <para>Added in 3.0.0, updated in 5.0.0 and 5.11.0.</para> /// </summary> AngleRight = 0xf105, /// <summary> /// Angle-Up (angle-up) /// <para>Terms: arrow, caret, collapse, upload</para> /// <para>Added in 3.0.0, updated in 5.0.0.</para> /// </summary> AngleUp = 0xf106, /// <summary> /// Angry Face (angry) /// <para>Styles: solid, regular</para> /// <para>Terms: disapprove, emoticon, face, mad, upset</para> /// <para>Added in 5.1.0, updated in 5.11.0 and 5.11.1.</para> /// </summary> Angry = 0xf556, /// <summary> /// Ankh (ankh) /// <para>Terms: amulet, copper, coptic christianity, copts, crux ansata, egypt, venus</para> /// <para>Added in 5.3.0.</para> /// </summary> Ankh = 0xf644, /// <summary> /// Fruit Apple (apple-alt) /// <para>Terms: fall, fruit, fuji, macintosh, orchard, seasonal, vegan</para> /// <para>Added in 5.2.0.</para> /// </summary> AppleAlt = 0xf5d1, /// <summary> /// Archive (archive) /// <para>Terms: box, package, save, storage</para> /// <para>Added in 3.2.0, updated in 5.0.0 and 5.0.9.</para> /// </summary> Archive = 0xf187, /// <summary> /// Archway (archway) /// <para>Terms: arc, monument, road, street, tunnel</para> /// <para>Added in 5.1.0.</para> /// </summary> Archway = 0xf557, /// <summary> /// Alternate Arrow Circle Down (arrow-alt-circle-down) /// <para>Styles: solid, regular</para> /// <para>Terms: arrow-circle-o-down, download</para> /// <para>Added in 5.0.0.</para> /// </summary> ArrowAltCircleDown = 0xf358, /// <summary> /// Alternate Arrow Circle Left (arrow-alt-circle-left) /// <para>Styles: solid, regular</para> /// <para>Terms: arrow-circle-o-left, back, previous</para> /// <para>Added in 5.0.0.</para> /// </summary> ArrowAltCircleLeft = 0xf359, /// <summary> /// Alternate Arrow Circle Right (arrow-alt-circle-right) /// <para>Styles: solid, regular</para> /// <para>Terms: arrow-circle-o-right, forward, next</para> /// <para>Added in 5.0.0.</para> /// </summary> ArrowAltCircleRight = 0xf35a, /// <summary> /// Alternate Arrow Circle Up (arrow-alt-circle-up) /// <para>Styles: solid, regular</para> /// <para>Terms: arrow-circle-o-up</para> /// <para>Added in 5.0.0.</para> /// </summary> ArrowAltCircleUp = 0xf35b, /// <summary> /// Arrow Circle Down (arrow-circle-down) /// <para>Terms: download</para> /// <para>Added in 2.0.0, updated in 5.0.0.</para> /// </summary> ArrowCircleDown = 0xf0ab, /// <summary> /// Arrow Circle Left (arrow-circle-left) /// <para>Terms: back, previous</para> /// <para>Added in 2.0.0, updated in 5.0.0.</para> /// </summary> ArrowCircleLeft = 0xf0a8, /// <summary> /// Arrow Circle Right (arrow-circle-right) /// <para>Terms: forward, next</para> /// <para>Added in 2.0.0, updated in 5.0.0.</para> /// </summary> ArrowCircleRight = 0xf0a9, /// <summary> /// Arrow Circle Up (arrow-circle-up) /// <para>Terms: upload</para> /// <para>Added in 2.0.0, updated in 5.0.0.</para> /// </summary> ArrowCircleUp = 0xf0aa, /// <summary> /// Arrow-Down (arrow-down) /// <para>Terms: download</para> /// <para>Added in 1.0.0, updated in 5.0.0.</para> /// </summary> ArrowDown = 0xf063, /// <summary> /// Arrow-Left (arrow-left) /// <para>Terms: back, previous</para> /// <para>Added in 1.0.0, updated in 5.0.0.</para> /// </summary> ArrowLeft = 0xf060, /// <summary> /// Arrow-Right (arrow-right) /// <para>Terms: forward, next</para> /// <para>Added in 1.0.0, updated in 5.0.0.</para> /// </summary> ArrowRight = 0xf061, /// <summary> /// Arrow-Up (arrow-up) /// <para>Terms: forward, upload</para> /// <para>Added in 1.0.0, updated in 5.0.0.</para> /// </summary> ArrowUp = 0xf062, /// <summary> /// Alternate Arrows (arrows-alt) /// <para>Terms: arrow, arrows, bigger, enlarge, expand, fullscreen, move, position, reorder, resize</para> /// <para>Added in 2.0.0, updated in 5.0.0.</para> /// </summary> ArrowsAlt = 0xf0b2, /// <summary> /// Alternate Arrows Horizontal (arrows-alt-h) /// <para>Terms: arrows-h, expand, horizontal, landscape, resize, wide</para> /// <para>Added in 5.0.0.</para> /// </summary> ArrowsAltH = 0xf337, /// <summary> /// Alternate Arrows Vertical (arrows-alt-v) /// <para>Terms: arrows-v, expand, portrait, resize, tall, vertical</para> /// <para>Added in 5.0.0, updated in 5.11.0.</para> /// </summary> ArrowsAltV = 0xf338, /// <summary> /// Assistive Listening Systems (assistive-listening-systems) /// <para>Terms: amplify, audio, deaf, ear, headset, hearing, sound</para> /// <para>Added in 4.6.0, updated in 5.0.0.</para> /// </summary> AssistiveListeningSystems = 0xf2a2, /// <summary> /// Asterisk (asterisk) /// <para>Terms: annotation, details, reference, star</para> /// <para>Added in 1.0.0, updated in 5.0.0.</para> /// </summary> Asterisk = 0xf069, /// <summary> /// At (at) /// <para>Terms: address, author, e-mail, email, handle</para> /// <para>Added in 4.2.0, updated in 5.0.0.</para> /// </summary> At = 0xf1fa, /// <summary> /// Atlas (atlas) /// <para>Terms: book, directions, geography, globe, map, travel, wayfinding</para> /// <para>Added in 5.1.0.</para> /// </summary> Atlas = 0xf558, /// <summary> /// Atom (atom) /// <para>Terms: atheism, chemistry, electron, ion, isotope, neutron, nuclear, proton, science</para> /// <para>Added in 5.12.0, updated in 5.2.0.</para> /// </summary> Atom = 0xf5d2, /// <summary> /// Audio Description (audio-description) /// <para>Terms: blind, narration, video, visual</para> /// <para>Added in 4.6.0, updated in 5.0.0 and 5.10.2.</para> /// </summary> AudioDescription = 0xf29e, /// <summary> /// Award (award) /// <para>Terms: honor, praise, prize, recognition, ribbon, trophy</para> /// <para>Added in 5.1.0, updated in 5.10.2 and 5.2.0.</para> /// </summary> Award = 0xf559, /// <summary> /// Baby (baby) /// <para>Terms: child, diaper, doll, human, infant, kid, offspring, person, sprout</para> /// <para>Added in 5.10.1, updated in 5.6.0.</para> /// </summary> Baby = 0xf77c, /// <summary> /// Baby Carriage (baby-carriage) /// <para>Terms: buggy, carrier, infant, push, stroller, transportation, walk, wheels</para> /// <para>Added in 5.6.0.</para> /// </summary> BabyCarriage = 0xf77d, /// <summary> /// Backspace (backspace) /// <para>Terms: command, delete, erase, keyboard, undo</para> /// <para>Added in 5.1.0.</para> /// </summary> Backspace = 0xf55a, /// <summary> /// Backward (backward) /// <para>Terms: previous, rewind</para> /// <para>Added in 1.0.0, updated in 5.0.0.</para> /// </summary> Backward = 0xf04a, /// <summary> /// Bacon (bacon) /// <para>Terms: blt, breakfast, ham, lard, meat, pancetta, pork, rasher</para> /// <para>Added in 5.7.0.</para> /// </summary> Bacon = 0xf7e5, /// <summary> /// Bacteria (bacteria) /// <para>Terms: antibiotic, antibody, covid-19, health, organism, sick</para> /// <para>Added in 5.13.0, updated in 5.13.1 and 5.14.0.</para> /// </summary> Bacteria = 0xe059, /// <summary> /// Bacterium (bacterium) /// <para>Terms: antibiotic, antibody, covid-19, health, organism, sick</para> /// <para>Added in 5.13.0, updated in 5.13.1 and 5.14.0.</para> /// </summary> Bacterium = 0xe05a, /// <summary> /// Bahá&apos;í (bahai) /// <para>Terms: bahai, bahá&apos;í, star</para> /// <para>Added in 5.12.0, updated in 5.3.0.</para> /// </summary> Bahai = 0xf666, /// <summary> /// Balance Scale (balance-scale) /// <para>Terms: balanced, justice, legal, measure, weight</para> /// <para>Added in 4.4.0, updated in 5.0.0 and 5.0.13.</para> /// </summary> BalanceScale = 0xf24e, /// <summary> /// Balance Scale (Left-Weighted) (balance-scale-left) /// <para>Terms: justice, legal, measure, unbalanced, weight</para> /// <para>Added in 5.0.13, updated in 5.12.0 and 5.9.0.</para> /// </summary> BalanceScaleLeft = 0xf515, /// <summary> /// Balance Scale (Right-Weighted) (balance-scale-right) /// <para>Terms: justice, legal, measure, unbalanced, weight</para> /// <para>Added in 5.0.13, updated in 5.12.0 and 5.9.0.</para> /// </summary> BalanceScaleRight = 0xf516, /// <summary> /// Ban (ban) /// <para>Terms: abort, ban, block, cancel, delete, hide, prohibit, remove, stop, trash</para> /// <para>Added in 1.0.0, updated in 5.0.0.</para> /// </summary> Ban = 0xf05e, /// <summary> /// Band-Aid (band-aid) /// <para>Terms: bandage, boo boo, first aid, ouch</para> /// <para>Added in 5.0.7, updated in 5.10.2.</para> /// </summary> BandAid = 0xf462, /// <summary> /// Barcode (barcode) /// <para>Terms: info, laser, price, scan, upc</para> /// <para>Added in 1.0.0, updated in 5.0.0.</para> /// </summary> Barcode = 0xf02a, /// <summary> /// Bars (bars) /// <para>Terms: checklist, drag, hamburger, list, menu, nav, navigation, ol, reorder, settings, todo, ul</para> /// <para>Added in 2.0.0, updated in 5.0.0.</para> /// </summary> Bars = 0xf0c9, /// <summary> /// Baseball Ball (baseball-ball) /// <para>Terms: foul, hardball, league, leather, mlb, softball, sport</para> /// <para>Added in 5.0.5, updated in 5.11.0 and 5.11.1.</para> /// </summary> BaseballBall = 0xf433, /// <summary> /// Basketball Ball (basketball-ball) /// <para>Terms: dribble, dunk, hoop, nba</para> /// <para>Added in 5.0.5, updated in 5.11.0 and 5.11.1.</para> /// </summary> BasketballBall = 0xf434, /// <summary> /// Bath (bath) /// <para>Terms: clean, shower, tub, wash</para> /// <para>Added in 4.7.0, updated in 5.0.0 and 5.12.0.</para> /// </summary> Bath = 0xf2cd, /// <summary> /// Battery Empty (battery-empty) /// <para>Terms: charge, dead, power, status</para> /// <para>Added in 4.4.0, updated in 5.0.0.</para> /// </summary> BatteryEmpty = 0xf244, /// <summary> /// Battery Full (battery-full) /// <para>Terms: charge, power, status</para> /// <para>Added in 4.4.0, updated in 5.0.0.</para> /// </summary> BatteryFull = 0xf240, /// <summary> /// Battery 1/2 Full (battery-half) /// <para>Terms: charge, power, status</para> /// <para>Added in 4.4.0, updated in 5.0.0.</para> /// </summary> BatteryHalf = 0xf242, /// <summary> /// Battery 1/4 Full (battery-quarter) /// <para>Terms: charge, low, power, status</para> /// <para>Added in 4.4.0, updated in 5.0.0.</para> /// </summary> BatteryQuarter = 0xf243, /// <summary> /// Battery 3/4 Full (battery-three-quarters) /// <para>Terms: charge, power, status</para> /// <para>Added in 4.4.0, updated in 5.0.0.</para> /// </summary> BatteryThreeQuarters = 0xf241, /// <summary> /// Bed (bed) /// <para>Terms: lodging, mattress, rest, sleep, travel</para> /// <para>Added in 4.3.0, updated in 5.0.0 and 5.1.0.</para> /// </summary> Bed = 0xf236, /// <summary> /// Beer (beer) /// <para>Terms: alcohol, ale, bar, beverage, brewery, drink, lager, liquor, mug, stein</para> /// <para>Added in 3.0.0, updated in 5.0.0.</para> /// </summary> Beer = 0xf0fc, /// <summary> /// Bell (bell) /// <para>Styles: solid, regular</para> /// <para>Terms: alarm, alert, chime, notification, reminder</para> /// <para>Added in 2.0.0, updated in 5.0.0, 5.11.0 and 5.2.0.</para> /// </summary> Bell = 0xf0f3, /// <summary> /// Bell Slash (bell-slash) /// <para>Styles: solid, regular</para> /// <para>Terms: alert, cancel, disabled, notification, off, reminder</para> /// <para>Added in 4.2.0, updated in 5.0.0 and 5.2.0.</para> /// </summary> BellSlash = 0xf1f6, /// <summary> /// Bezier Curve (bezier-curve) /// <para>Terms: curves, illustrator, lines, path, vector</para> /// <para>Added in 5.1.0.</para> /// </summary> BezierCurve = 0xf55b, /// <summary> /// Bible (bible) /// <para>Terms: book, catholicism, christianity, god, holy</para> /// <para>Added in 5.3.0.</para> /// </summary> Bible = 0xf647, /// <summary> /// Bicycle (bicycle) /// <para>Terms: bike, gears, pedal, transportation, vehicle</para> /// <para>Added in 4.2.0, updated in 5.0.0.</para> /// </summary> Bicycle = 0xf206, /// <summary> /// Biking (biking) /// <para>Terms: bicycle, bike, cycle, cycling, ride, wheel</para> /// <para>Added in 5.9.0.</para> /// </summary> Biking = 0xf84a, /// <summary> /// Binoculars (binoculars) /// <para>Terms: glasses, magnify, scenic, spyglass, view</para> /// <para>Added in 4.2.0, updated in 5.0.0 and 5.2.0.</para> /// </summary> Binoculars = 0xf1e5, /// <summary> /// Biohazard (biohazard) /// <para>Terms: covid-19, danger, dangerous, hazmat, medical, radioactive, toxic, waste, zombie</para> /// <para>Added in 5.6.0, updated in 5.7.0.</para> /// </summary> Biohazard = 0xf780, /// <summary> /// Birthday Cake (birthday-cake) /// <para>Terms: anniversary, bakery, candles, celebration, dessert, frosting, holiday, party, pastry</para> /// <para>Added in 4.2.0, updated in 5.0.0.</para> /// </summary> BirthdayCake = 0xf1fd, /// <summary> /// Blender (blender) /// <para>Terms: cocktail, milkshake, mixer, puree, smoothie</para> /// <para>Added in 5.0.13.</para> /// </summary> Blender = 0xf517, /// <summary> /// Blender Phone (blender-phone) /// <para>Terms: appliance, cocktail, communication, fantasy, milkshake, mixer, puree, silly, smoothie</para> /// <para>Added in 5.4.0.</para> /// </summary> BlenderPhone = 0xf6b6, /// <summary> /// Blind (blind) /// <para>Terms: cane, disability, person, sight</para> /// <para>Added in 4.6.0, updated in 5.0.0 and 5.11.0.</para> /// </summary> Blind = 0xf29d, /// <summary> /// Blog (blog) /// <para>Terms: journal, log, online, personal, post, web 2.0, wordpress, writing</para> /// <para>Added in 5.6.0.</para> /// </summary> Blog = 0xf781, /// <summary> /// Bold (bold) /// <para>Terms: emphasis, format, text</para> /// <para>Added in 1.0.0, updated in 5.0.0, 5.10.2 and 5.9.0.</para> /// </summary> Bold = 0xf032, /// <summary> /// Lightning Bolt (bolt) /// <para>Terms: electricity, lightning, weather, zap</para> /// <para>Added in 2.0.0, updated in 5.0.0 and 5.5.0.</para> /// </summary> Bolt = 0xf0e7, /// <summary> /// Bomb (bomb) /// <para>Terms: error, explode, fuse, grenade, warning</para> /// <para>Added in 4.1.0, updated in 5.0.0.</para> /// </summary> Bomb = 0xf1e2, /// <summary> /// Bone (bone) /// <para>Terms: calcium, dog, skeletal, skeleton, tibia</para> /// <para>Added in 5.2.0.</para> /// </summary> Bone = 0xf5d7, /// <summary> /// Bong (bong) /// <para>Terms: aparatus, cannabis, marijuana, pipe, smoke, smoking</para> /// <para>Added in 5.1.0.</para> /// </summary> Bong = 0xf55c, /// <summary> /// Book (book) /// <para>Terms: diary, documentation, journal, library, read</para> /// <para>Added in 1.0.0, updated in 5.0.0.</para> /// </summary> Book = 0xf02d, /// <summary> /// Book Of The Dead (book-dead) /// <para>Terms: Dungeons &amp; Dragons, crossbones, d&amp;d, dark arts, death, dnd, documentation, evil, fantasy, halloween, holiday, necronomicon, read, skull, spell</para> /// <para>Added in 5.4.0.</para> /// </summary> BookDead = 0xf6b7, /// <summary> /// Medical Book (book-medical) /// <para>Terms: diary, documentation, health, history, journal, library, read, record</para> /// <para>Added in 5.7.0.</para> /// </summary> BookMedical = 0xf7e6, /// <summary> /// Book Open (book-open) /// <para>Terms: flyer, library, notebook, open book, pamphlet, reading</para> /// <para>Added in 5.0.13, updated in 5.1.0 and 5.2.0.</para> /// </summary> BookOpen = 0xf518, /// <summary> /// Book Reader (book-reader) /// <para>Terms: flyer, library, notebook, open book, pamphlet, reading</para> /// <para>Added in 5.2.0.</para> /// </summary> BookReader = 0xf5da, /// <summary> /// Bookmark (bookmark) /// <para>Styles: solid, regular</para> /// <para>Terms: favorite, marker, read, remember, save</para> /// <para>Added in 1.0.0, updated in 5.0.0 and 5.10.2.</para> /// </summary> Bookmark = 0xf02e, /// <summary> /// Border All (border-all) /// <para>Terms: cell, grid, outline, stroke, table</para> /// <para>Added in 5.9.0.</para> /// </summary> BorderAll = 0xf84c, /// <summary> /// Border None (border-none) /// <para>Terms: cell, grid, outline, stroke, table</para> /// <para>Added in 5.9.0.</para> /// </summary> BorderNone = 0xf850, /// <summary> /// Border Style (border-style) /// <para>Added in 5.9.0.</para> /// </summary> BorderStyle = 0xf853, /// <summary> /// Bowling Ball (bowling-ball) /// <para>Terms: alley, candlepin, gutter, lane, strike, tenpin</para> /// <para>Added in 5.0.5, updated in 5.11.0 and 5.11.1.</para> /// </summary> BowlingBall = 0xf436, /// <summary> /// Box (box) /// <para>Terms: archive, container, package, storage</para> /// <para>Added in 5.0.7.</para> /// </summary> Box = 0xf466, /// <summary> /// Box Open (box-open) /// <para>Terms: archive, container, package, storage, unpack</para> /// <para>Added in 5.0.9, updated in 5.7.0.</para> /// </summary> BoxOpen = 0xf49e, /// <summary> /// Tissue Box (box-tissue) /// <para>Terms: cough, covid-19, kleenex, mucus, nose, sneeze, snot</para> /// <para>Added in 5.13.0, updated in 5.14.0.</para> /// </summary> BoxTissue = 0xe05b, /// <summary> /// Boxes (boxes) /// <para>Terms: archives, inventory, storage, warehouse</para> /// <para>Added in 5.0.7.</para> /// </summary> Boxes = 0xf468, /// <summary> /// Braille (braille) /// <para>Terms: alphabet, blind, dots, raised, vision</para> /// <para>Added in 4.6.0, updated in 5.0.0.</para> /// </summary> Braille = 0xf2a1, /// <summary> /// Brain (brain) /// <para>Terms: cerebellum, gray matter, intellect, medulla oblongata, mind, noodle, wit</para> /// <para>Added in 5.11.0, updated in 5.2.0 and 5.9.0.</para> /// </summary> Brain = 0xf5dc, /// <summary> /// Bread Slice (bread-slice) /// <para>Terms: bake, bakery, baking, dough, flour, gluten, grain, sandwich, sourdough, toast, wheat, yeast</para> /// <para>Added in 5.7.0.</para> /// </summary> BreadSlice = 0xf7ec, /// <summary> /// Briefcase (briefcase) /// <para>Terms: bag, business, luggage, office, work</para> /// <para>Added in 2.0.0, updated in 5.0.0 and 5.3.0.</para> /// </summary> Briefcase = 0xf0b1, /// <summary> /// Medical Briefcase (briefcase-medical) /// <para>Terms: doctor, emt, first aid, health</para> /// <para>Added in 5.0.7.</para> /// </summary> BriefcaseMedical = 0xf469, /// <summary> /// Broadcast Tower (broadcast-tower) /// <para>Terms: airwaves, antenna, radio, reception, waves</para> /// <para>Added in 5.0.13.</para> /// </summary> BroadcastTower = 0xf519, /// <summary> /// Broom (broom) /// <para>Terms: clean, firebolt, fly, halloween, nimbus 2000, quidditch, sweep, witch</para> /// <para>Added in 5.0.13.</para> /// </summary> Broom = 0xf51a, /// <summary> /// Brush (brush) /// <para>Terms: art, bristles, color, handle, paint</para> /// <para>Added in 5.1.0.</para> /// </summary> Brush = 0xf55d, /// <summary> /// Bug (bug) /// <para>Terms: beetle, error, insect, report</para> /// <para>Added in 3.2.0, updated in 5.0.0.</para> /// </summary> Bug = 0xf188, /// <summary> /// Building (building) /// <para>Styles: solid, regular</para> /// <para>Terms: apartment, business, city, company, office, work</para> /// <para>Added in 4.1.0, updated in 5.0.0.</para> /// </summary> Building = 0xf1ad, /// <summary> /// Bullhorn (bullhorn) /// <para>Terms: announcement, broadcast, louder, megaphone, share</para> /// <para>Added in 2.0.0, updated in 5.0.0 and 5.3.0.</para> /// </summary> Bullhorn = 0xf0a1, /// <summary> /// Bullseye (bullseye) /// <para>Terms: archery, goal, objective, target</para> /// <para>Added in 3.1.0, updated in 5.0.0, 5.10.1 and 5.3.0.</para> /// </summary> Bullseye = 0xf140, /// <summary> /// Burn (burn) /// <para>Terms: caliente, energy, fire, flame, gas, heat, hot</para> /// <para>Added in 5.0.7.</para> /// </summary> Burn = 0xf46a, /// <summary> /// Bus (bus) /// <para>Terms: public transportation, transportation, travel, vehicle</para> /// <para>Added in 4.2.0, updated in 5.0.0 and 5.1.0.</para> /// </summary> Bus = 0xf207, /// <summary> /// Bus Alt (bus-alt) /// <para>Terms: mta, public transportation, transportation, travel, vehicle</para> /// <para>Added in 5.1.0.</para> /// </summary> BusAlt = 0xf55e, /// <summary> /// Business Time (business-time) /// <para>Terms: alarm, briefcase, business socks, clock, flight of the conchords, reminder, wednesday</para> /// <para>Added in 5.3.0.</para> /// </summary> BusinessTime = 0xf64a, /// <summary> /// Calculator (calculator) /// <para>Terms: abacus, addition, arithmetic, counting, math, multiplication, subtraction</para> /// <para>Added in 4.2.0, updated in 5.0.0, 5.11.0 and 5.3.0.</para> /// </summary> Calculator = 0xf1ec, /// <summary> /// Calendar (calendar) /// <para>Styles: solid, regular</para> /// <para>Terms: calendar-o, date, event, schedule, time, when</para> /// <para>Added in 3.1.0, updated in 5.0.0 and 5.10.2.</para> /// </summary> Calendar = 0xf133, /// <summary> /// Alternate Calendar (calendar-alt) /// <para>Styles: solid, regular</para> /// <para>Terms: calendar, date, event, schedule, time, when</para> /// <para>Added in 1.0.0, updated in 5.0.0, 5.10.2, 5.6.0 and 5.7.0.</para> /// </summary> CalendarAlt = 0xf073, /// <summary> /// Calendar Check (calendar-check) /// <para>Styles: solid, regular</para> /// <para>Terms: accept, agree, appointment, confirm, correct, date, done, event, ok, schedule, select, success, tick, time, todo, when</para> /// <para>Added in 4.4.0, updated in 5.0.0 and 5.10.2.</para> /// </summary> CalendarCheck = 0xf274, /// <summary> /// Calendar With Day Focus (calendar-day) /// <para>Terms: date, detail, event, focus, schedule, single day, time, today, when</para> /// <para>Added in 5.10.2, updated in 5.6.0.</para> /// </summary> CalendarDay = 0xf783, /// <summary> /// Calendar Minus (calendar-minus) /// <para>Styles: solid, regular</para> /// <para>Terms: calendar, date, delete, event, negative, remove, schedule, time, when</para> /// <para>Added in 4.4.0, updated in 5.0.0 and 5.10.2.</para> /// </summary> CalendarMinus = 0xf272, /// <summary> /// Calendar Plus (calendar-plus) /// <para>Styles: solid, regular</para> /// <para>Terms: add, calendar, create, date, event, new, positive, schedule, time, when</para> /// <para>Added in 4.4.0, updated in 5.0.0 and 5.10.2.</para> /// </summary> CalendarPlus = 0xf271, /// <summary> /// Calendar Times (calendar-times) /// <para>Styles: solid, regular</para> /// <para>Terms: archive, calendar, date, delete, event, remove, schedule, time, when, x</para> /// <para>Added in 4.4.0, updated in 5.0.0 and 5.10.2.</para> /// </summary> CalendarTimes = 0xf273, /// <summary> /// Calendar With Week Focus (calendar-week) /// <para>Terms: date, detail, event, focus, schedule, single week, time, today, when</para> /// <para>Added in 5.10.2, updated in 5.6.0.</para> /// </summary> CalendarWeek = 0xf784, /// <summary> /// Camera (camera) /// <para>Terms: image, lens, photo, picture, record, shutter, video</para> /// <para>Added in 1.0.0, updated in 5.0.0.</para> /// </summary> Camera = 0xf030, /// <summary> /// Retro Camera (camera-retro) /// <para>Terms: image, lens, photo, picture, record, shutter, video</para> /// <para>Added in 1.0.0, updated in 5.0.0 and 5.10.1.</para> /// </summary> CameraRetro = 0xf083, /// <summary> /// Campground (campground) /// <para>Terms: camping, fall, outdoors, teepee, tent, tipi</para> /// <para>Added in 5.4.0.</para> /// </summary> Campground = 0xf6bb, /// <summary> /// Candy Cane (candy-cane) /// <para>Terms: candy, christmas, holiday, mint, peppermint, striped, xmas</para> /// <para>Added in 5.10.1, updated in 5.6.0.</para> /// </summary> CandyCane = 0xf786, /// <summary> /// Cannabis (cannabis) /// <para>Terms: bud, chronic, drugs, endica, endo, ganja, marijuana, mary jane, pot, reefer, sativa, spliff, weed, whacky-tabacky</para> /// <para>Added in 5.1.0.</para> /// </summary> Cannabis = 0xf55f, /// <summary> /// Capsules (capsules) /// <para>Terms: drugs, medicine, pills, prescription</para> /// <para>Added in 5.0.7.</para> /// </summary> Capsules = 0xf46b, /// <summary> /// Car (car) /// <para>Terms: auto, automobile, sedan, transportation, travel, vehicle</para> /// <para>Added in 4.1.0, updated in 5.0.0 and 5.2.0.</para> /// </summary> Car = 0xf1b9, /// <summary> /// Alternate Car (car-alt) /// <para>Terms: auto, automobile, sedan, transportation, travel, vehicle</para> /// <para>Added in 5.11.0, updated in 5.11.1 and 5.2.0.</para> /// </summary> CarAlt = 0xf5de, /// <summary> /// Car Battery (car-battery) /// <para>Terms: auto, electric, mechanic, power</para> /// <para>Added in 5.2.0.</para> /// </summary> CarBattery = 0xf5df, /// <summary> /// Car Crash (car-crash) /// <para>Terms: accident, auto, automobile, insurance, sedan, transportation, vehicle, wreck</para> /// <para>Added in 5.2.0.</para> /// </summary> CarCrash = 0xf5e1, /// <summary> /// Car Side (car-side) /// <para>Terms: auto, automobile, sedan, transportation, travel, vehicle</para> /// <para>Added in 5.2.0.</para> /// </summary> CarSide = 0xf5e4, /// <summary> /// Caravan (caravan) /// <para>Terms: camper, motor home, rv, trailer, travel</para> /// <para>Added in 5.12.0.</para> /// </summary> Caravan = 0xf8ff, /// <summary> /// Caret Down (caret-down) /// <para>Terms: arrow, dropdown, expand, menu, more, triangle</para> /// <para>Added in 2.0.0, updated in 5.0.0.</para> /// </summary> CaretDown = 0xf0d7, /// <summary> /// Caret Left (caret-left) /// <para>Terms: arrow, back, previous, triangle</para> /// <para>Added in 2.0.0, updated in 5.0.0.</para> /// </summary> CaretLeft = 0xf0d9, /// <summary> /// Caret Right (caret-right) /// <para>Terms: arrow, forward, next, triangle</para> /// <para>Added in 2.0.0, updated in 5.0.0.</para> /// </summary> CaretRight = 0xf0da, /// <summary> /// Caret Square Down (caret-square-down) /// <para>Styles: solid, regular</para> /// <para>Terms: arrow, caret-square-o-down, dropdown, expand, menu, more, triangle</para> /// <para>Added in 3.2.0, updated in 5.0.0.</para> /// </summary> CaretSquareDown = 0xf150, /// <summary> /// Caret Square Left (caret-square-left) /// <para>Styles: solid, regular</para> /// <para>Terms: arrow, back, caret-square-o-left, previous, triangle</para> /// <para>Added in 4.0.0, updated in 5.0.0.</para> /// </summary> CaretSquareLeft = 0xf191, /// <summary> /// Caret Square Right (caret-square-right) /// <para>Styles: solid, regular</para> /// <para>Terms: arrow, caret-square-o-right, forward, next, triangle</para> /// <para>Added in 3.2.0, updated in 5.0.0.</para> /// </summary> CaretSquareRight = 0xf152, /// <summary> /// Caret Square Up (caret-square-up) /// <para>Styles: solid, regular</para> /// <para>Terms: arrow, caret-square-o-up, collapse, triangle, upload</para> /// <para>Added in 3.2.0, updated in 5.0.0.</para> /// </summary> CaretSquareUp = 0xf151, /// <summary> /// Caret Up (caret-up) /// <para>Terms: arrow, collapse, triangle</para> /// <para>Added in 2.0.0, updated in 5.0.0.</para> /// </summary> CaretUp = 0xf0d8, /// <summary> /// Carrot (carrot) /// <para>Terms: bugs bunny, orange, vegan, vegetable</para> /// <para>Added in 5.10.1, updated in 5.6.0.</para> /// </summary> Carrot = 0xf787, /// <summary> /// Shopping Cart Arrow Down (cart-arrow-down) /// <para>Terms: download, save, shopping</para> /// <para>Added in 4.3.0, updated in 5.0.0.</para> /// </summary> CartArrowDown = 0xf218, /// <summary> /// Add To Shopping Cart (cart-plus) /// <para>Terms: add, create, new, positive, shopping</para> /// <para>Added in 4.3.0, updated in 5.0.0.</para> /// </summary> CartPlus = 0xf217, /// <summary> /// Cash Register (cash-register) /// <para>Terms: buy, cha-ching, change, checkout, commerce, leaerboard, machine, pay, payment, purchase, store</para> /// <para>Added in 5.6.0.</para> /// </summary> CashRegister = 0xf788, /// <summary> /// Cat (cat) /// <para>Terms: feline, halloween, holiday, kitten, kitty, meow, pet</para> /// <para>Added in 5.10.1, updated in 5.4.0.</para> /// </summary> Cat = 0xf6be, /// <summary> /// Certificate (certificate) /// <para>Terms: badge, star, verified</para> /// <para>Added in 2.0.0, updated in 5.0.0, 5.10.1 and 5.10.2.</para> /// </summary> Certificate = 0xf0a3, /// <summary> /// Chair (chair) /// <para>Terms: furniture, seat, sit</para> /// <para>Added in 5.11.0, updated in 5.4.0.</para> /// </summary> Chair = 0xf6c0, /// <summary> /// Chalkboard (chalkboard) /// <para>Terms: blackboard, learning, school, teaching, whiteboard, writing</para> /// <para>Added in 5.0.13.</para> /// </summary> Chalkboard = 0xf51b, /// <summary> /// Chalkboard Teacher (chalkboard-teacher) /// <para>Terms: blackboard, instructor, learning, professor, school, whiteboard, writing</para> /// <para>Added in 5.0.13.</para> /// </summary> ChalkboardTeacher = 0xf51c, /// <summary> /// Charging Station (charging-station) /// <para>Terms: electric, ev, tesla, vehicle</para> /// <para>Added in 5.10.1, updated in 5.2.0.</para> /// </summary> ChargingStation = 0xf5e7, /// <summary> /// Area Chart (chart-area) /// <para>Terms: analytics, area, chart, graph</para> /// <para>Added in 4.2.0, updated in 5.0.0.</para> /// </summary> ChartArea = 0xf1fe, /// <summary> /// Bar Chart (chart-bar) /// <para>Styles: solid, regular</para> /// <para>Terms: analytics, bar, chart, graph</para> /// <para>Added in 1.0.0, updated in 5.0.0 and 5.3.0.</para> /// </summary> ChartBar = 0xf080, /// <summary> /// Line Chart (chart-line) /// <para>Terms: activity, analytics, chart, dashboard, gain, graph, increase, line</para> /// <para>Added in 4.2.0, updated in 5.0.0 and 5.3.0.</para> /// </summary> ChartLine = 0xf201, /// <summary> /// Pie Chart (chart-pie) /// <para>Terms: analytics, chart, diagram, graph, pie</para> /// <para>Added in 4.2.0, updated in 5.0.0 and 5.3.0.</para> /// </summary> ChartPie = 0xf200, /// <summary> /// Check (check) /// <para>Terms: accept, agree, checkmark, confirm, correct, done, notice, notification, notify, ok, select, success, tick, todo, yes</para> /// <para>Added in 1.0.0, updated in 5.0.0.</para> /// </summary> Check = 0xf00c, /// <summary> /// Check Circle (check-circle) /// <para>Styles: solid, regular</para> /// <para>Terms: accept, agree, confirm, correct, done, ok, select, success, tick, todo, yes</para> /// <para>Added in 1.0.0, updated in 5.0.0.</para> /// </summary> CheckCircle = 0xf058, /// <summary> /// Double Check (check-double) /// <para>Terms: accept, agree, checkmark, confirm, correct, done, notice, notification, notify, ok, select, success, tick, todo</para> /// <para>Added in 5.1.0, updated in 5.8.2.</para> /// </summary> CheckDouble = 0xf560, /// <summary> /// Check Square (check-square) /// <para>Styles: solid, regular</para> /// <para>Terms: accept, agree, checkmark, confirm, correct, done, ok, select, success, tick, todo, yes</para> /// <para>Added in 3.1.0, updated in 5.0.0.</para> /// </summary> CheckSquare = 0xf14a, /// <summary> /// Cheese (cheese) /// <para>Terms: cheddar, curd, gouda, melt, parmesan, sandwich, swiss, wedge</para> /// <para>Added in 5.7.0.</para> /// </summary> Cheese = 0xf7ef, /// <summary> /// Chess (chess) /// <para>Terms: board, castle, checkmate, game, king, rook, strategy, tournament</para> /// <para>Added in 5.0.5, updated in 5.9.0.</para> /// </summary> Chess = 0xf439, /// <summary> /// Chess Bishop (chess-bishop) /// <para>Terms: board, checkmate, game, strategy</para> /// <para>Added in 5.0.5, updated in 5.9.0.</para> /// </summary> ChessBishop = 0xf43a, /// <summary> /// Chess Board (chess-board) /// <para>Terms: board, checkmate, game, strategy</para> /// <para>Added in 5.0.5, updated in 5.7.0 and 5.9.0.</para> /// </summary> ChessBoard = 0xf43c, /// <summary> /// Chess King (chess-king) /// <para>Terms: board, checkmate, game, strategy</para> /// <para>Added in 5.0.5, updated in 5.9.0.</para> /// </summary> ChessKing = 0xf43f, /// <summary> /// Chess Knight (chess-knight) /// <para>Terms: board, checkmate, game, horse, strategy</para> /// <para>Added in 5.0.5, updated in 5.9.0.</para> /// </summary> ChessKnight = 0xf441, /// <summary> /// Chess Pawn (chess-pawn) /// <para>Terms: board, checkmate, game, strategy</para> /// <para>Added in 5.0.5, updated in 5.9.0.</para> /// </summary> ChessPawn = 0xf443, /// <summary> /// Chess Queen (chess-queen) /// <para>Terms: board, checkmate, game, strategy</para> /// <para>Added in 5.0.5, updated in 5.9.0.</para> /// </summary> ChessQueen = 0xf445, /// <summary> /// Chess Rook (chess-rook) /// <para>Terms: board, castle, checkmate, game, strategy</para> /// <para>Added in 5.0.5, updated in 5.9.0.</para> /// </summary> ChessRook = 0xf447, /// <summary> /// Chevron Circle Down (chevron-circle-down) /// <para>Terms: arrow, download, dropdown, menu, more</para> /// <para>Added in 3.1.0, updated in 5.0.0.</para> /// </summary> ChevronCircleDown = 0xf13a, /// <summary> /// Chevron Circle Left (chevron-circle-left) /// <para>Terms: arrow, back, previous</para> /// <para>Added in 3.1.0, updated in 5.0.0.</para> /// </summary> ChevronCircleLeft = 0xf137, /// <summary> /// Chevron Circle Right (chevron-circle-right) /// <para>Terms: arrow, forward, next</para> /// <para>Added in 3.1.0, updated in 5.0.0.</para> /// </summary> ChevronCircleRight = 0xf138, /// <summary> /// Chevron Circle Up (chevron-circle-up) /// <para>Terms: arrow, collapse, upload</para> /// <para>Added in 3.1.0, updated in 5.0.0.</para> /// </summary> ChevronCircleUp = 0xf139, /// <summary> /// Chevron-Down (chevron-down) /// <para>Terms: arrow, download, expand</para> /// <para>Added in 1.0.0, updated in 5.0.0.</para> /// </summary> ChevronDown = 0xf078, /// <summary> /// Chevron-Left (chevron-left) /// <para>Terms: arrow, back, bracket, previous</para> /// <para>Added in 1.0.0, updated in 5.0.0.</para> /// </summary> ChevronLeft = 0xf053, /// <summary> /// Chevron-Right (chevron-right) /// <para>Terms: arrow, bracket, forward, next</para> /// <para>Added in 1.0.0, updated in 5.0.0.</para> /// </summary> ChevronRight = 0xf054, /// <summary> /// Chevron-Up (chevron-up) /// <para>Terms: arrow, collapse, upload</para> /// <para>Added in 1.0.0, updated in 5.0.0.</para> /// </summary> ChevronUp = 0xf077, /// <summary> /// Child (child) /// <para>Terms: boy, girl, kid, toddler, young</para> /// <para>Added in 4.1.0, updated in 5.0.0.</para> /// </summary> Child = 0xf1ae, /// <summary> /// Church (church) /// <para>Terms: building, cathedral, chapel, community, religion</para> /// <para>Added in 5.0.13.</para> /// </summary> Church = 0xf51d, /// <summary> /// Circle (circle) /// <para>Styles: solid, regular</para> /// <para>Terms: circle-thin, diameter, dot, ellipse, notification, round</para> /// <para>Added in 3.0.0, updated in 5.0.0, 5.10.1 and 5.10.2.</para> /// </summary> Circle = 0xf111, /// <summary> /// Circle Notched (circle-notch) /// <para>Terms: circle-o-notch, diameter, dot, ellipse, round, spinner</para> /// <para>Added in 4.1.0, updated in 5.0.0 and 5.10.2.</para> /// </summary> CircleNotch = 0xf1ce, /// <summary> /// City (city) /// <para>Terms: buildings, busy, skyscrapers, urban, windows</para> /// <para>Added in 5.3.0.</para> /// </summary> City = 0xf64f, /// <summary> /// Medical Clinic (clinic-medical) /// <para>Terms: covid-19, doctor, general practitioner, hospital, infirmary, medicine, office, outpatient</para> /// <para>Added in 5.7.0.</para> /// </summary> ClinicMedical = 0xf7f2, /// <summary> /// Clipboard (clipboard) /// <para>Styles: solid, regular</para> /// <para>Terms: copy, notes, paste, record</para> /// <para>Added in 5.0.0.</para> /// </summary> Clipboard = 0xf328, /// <summary> /// Clipboard With Check (clipboard-check) /// <para>Terms: accept, agree, confirm, done, ok, select, success, tick, todo, yes</para> /// <para>Added in 5.0.7.</para> /// </summary> ClipboardCheck = 0xf46c, /// <summary> /// Clipboard List (clipboard-list) /// <para>Terms: checklist, completed, done, finished, intinerary, ol, schedule, tick, todo, ul</para> /// <para>Added in 5.0.7.</para> /// </summary> ClipboardList = 0xf46d, /// <summary> /// Clock (clock) /// <para>Styles: solid, regular</para> /// <para>Terms: date, late, schedule, time, timer, timestamp, watch</para> /// <para>Added in 1.0.0, updated in 5.0.0 and 5.12.1.</para> /// </summary> Clock = 0xf017, /// <summary> /// Clone (clone) /// <para>Styles: solid, regular</para> /// <para>Terms: arrange, copy, duplicate, paste</para> /// <para>Added in 4.4.0, updated in 5.0.0 and 5.11.0.</para> /// </summary> Clone = 0xf24d, /// <summary> /// Closed Captioning (closed-captioning) /// <para>Styles: solid, regular</para> /// <para>Terms: cc, deaf, hearing, subtitle, subtitling, text, video</para> /// <para>Added in 4.2.0, updated in 5.0.0 and 5.10.1.</para> /// </summary> ClosedCaptioning = 0xf20a, /// <summary> /// Cloud (cloud) /// <para>Terms: atmosphere, fog, overcast, save, upload, weather</para> /// <para>Added in 2.0.0, updated in 5.0.0 and 5.0.11.</para> /// </summary> Cloud = 0xf0c2, /// <summary> /// Alternate Cloud Download (cloud-download-alt) /// <para>Terms: download, export, save</para> /// <para>Added in 5.0.0, updated in 5.0.11.</para> /// </summary> CloudDownloadAlt = 0xf381, /// <summary> /// Cloud With (A Chance Of) Meatball (cloud-meatball) /// <para>Terms: FLDSMDFR, food, spaghetti, storm</para> /// <para>Added in 5.5.0.</para> /// </summary> CloudMeatball = 0xf73b, /// <summary> /// Cloud With Moon (cloud-moon) /// <para>Terms: crescent, evening, lunar, night, partly cloudy, sky</para> /// <para>Added in 5.4.0, updated in 5.5.0.</para> /// </summary> CloudMoon = 0xf6c3, /// <summary> /// Cloud With Moon And Rain (cloud-moon-rain) /// <para>Terms: crescent, evening, lunar, night, partly cloudy, precipitation, rain, sky, storm</para> /// <para>Added in 5.5.0.</para> /// </summary> CloudMoonRain = 0xf73c, /// <summary> /// Cloud With Rain (cloud-rain) /// <para>Terms: precipitation, rain, sky, storm</para> /// <para>Added in 5.5.0.</para> /// </summary> CloudRain = 0xf73d, /// <summary> /// Cloud With Heavy Showers (cloud-showers-heavy) /// <para>Terms: precipitation, rain, sky, storm</para> /// <para>Added in 5.5.0.</para> /// </summary> CloudShowersHeavy = 0xf740, /// <summary> /// Cloud With Sun (cloud-sun) /// <para>Terms: clear, day, daytime, fall, outdoors, overcast, partly cloudy</para> /// <para>Added in 5.4.0, updated in 5.5.0.</para> /// </summary> CloudSun = 0xf6c4, /// <summary> /// Cloud With Sun And Rain (cloud-sun-rain) /// <para>Terms: day, overcast, precipitation, storm, summer, sunshower</para> /// <para>Added in 5.5.0.</para> /// </summary> CloudSunRain = 0xf743, /// <summary> /// Alternate Cloud Upload (cloud-upload-alt) /// <para>Terms: cloud-upload, import, save, upload</para> /// <para>Added in 5.0.0, updated in 5.0.11.</para> /// </summary> CloudUploadAlt = 0xf382, /// <summary> /// Cocktail (cocktail) /// <para>Terms: alcohol, beverage, drink, gin, glass, margarita, martini, vodka</para> /// <para>Added in 5.1.0, updated in 5.10.1.</para> /// </summary> Cocktail = 0xf561, /// <summary> /// Code (code) /// <para>Terms: brackets, code, development, html</para> /// <para>Added in 3.1.0, updated in 5.0.0.</para> /// </summary> Code = 0xf121, /// <summary> /// Code Branch (code-branch) /// <para>Terms: branch, code-fork, fork, git, github, rebase, svn, vcs, version</para> /// <para>Added in 5.0.0.</para> /// </summary> CodeBranch = 0xf126, /// <summary> /// Coffee (coffee) /// <para>Terms: beverage, breakfast, cafe, drink, fall, morning, mug, seasonal, tea</para> /// <para>Added in 3.0.0, updated in 5.0.0.</para> /// </summary> Coffee = 0xf0f4, /// <summary> /// Cog (cog) /// <para>Terms: gear, mechanical, settings, sprocket, wheel</para> /// <para>Added in 1.0.0, updated in 5.0.0.</para> /// </summary> Cog = 0xf013, /// <summary> /// Cogs (cogs) /// <para>Terms: gears, mechanical, settings, sprocket, wheel</para> /// <para>Added in 1.0.0, updated in 5.0.0.</para> /// </summary> Cogs = 0xf085, /// <summary> /// Coins (coins) /// <para>Terms: currency, dime, financial, gold, money, penny</para> /// <para>Added in 5.0.13.</para> /// </summary> Coins = 0xf51e, /// <summary> /// Columns (columns) /// <para>Terms: browser, dashboard, organize, panes, split</para> /// <para>Added in 2.0.0, updated in 5.0.0.</para> /// </summary> Columns = 0xf0db, /// <summary> /// Comment (comment) /// <para>Styles: solid, regular</para> /// <para>Terms: bubble, chat, commenting, conversation, feedback, message, note, notification, sms, speech, texting</para> /// <para>Added in 1.0.0, updated in 5.0.0, 5.0.9 and 5.10.1.</para> /// </summary> Comment = 0xf075, /// <summary> /// Alternate Comment (comment-alt) /// <para>Styles: solid, regular</para> /// <para>Terms: bubble, chat, commenting, conversation, feedback, message, note, notification, sms, speech, texting</para> /// <para>Added in 4.4.0, updated in 5.0.0 and 5.10.1.</para> /// </summary> CommentAlt = 0xf27a, /// <summary> /// Comment Dollar (comment-dollar) /// <para>Terms: bubble, chat, commenting, conversation, feedback, message, money, note, notification, pay, sms, speech, spend, texting, transfer</para> /// <para>Added in 5.3.0.</para> /// </summary> CommentDollar = 0xf651, /// <summary> /// Comment Dots (comment-dots) /// <para>Styles: solid, regular</para> /// <para>Terms: bubble, chat, commenting, conversation, feedback, message, more, note, notification, reply, sms, speech, texting</para> /// <para>Added in 5.0.9.</para> /// </summary> CommentDots = 0xf4ad, /// <summary> /// Alternate Medical Chat (comment-medical) /// <para>Terms: advice, bubble, chat, commenting, conversation, diagnose, feedback, message, note, notification, prescription, sms, speech, texting</para> /// <para>Added in 5.7.0.</para> /// </summary> CommentMedical = 0xf7f5, /// <summary> /// Comment Slash (comment-slash) /// <para>Terms: bubble, cancel, chat, commenting, conversation, feedback, message, mute, note, notification, quiet, sms, speech, texting</para> /// <para>Added in 5.0.9.</para> /// </summary> CommentSlash = 0xf4b3, /// <summary> /// Comments (comments) /// <para>Styles: solid, regular</para> /// <para>Terms: bubble, chat, commenting, conversation, feedback, message, note, notification, sms, speech, texting</para> /// <para>Added in 1.0.0, updated in 5.0.0 and 5.0.9.</para> /// </summary> Comments = 0xf086, /// <summary> /// Comments Dollar (comments-dollar) /// <para>Terms: bubble, chat, commenting, conversation, feedback, message, money, note, notification, pay, sms, speech, spend, texting, transfer</para> /// <para>Added in 5.3.0.</para> /// </summary> CommentsDollar = 0xf653, /// <summary> /// Compact Disc (compact-disc) /// <para>Terms: album, bluray, cd, disc, dvd, media, movie, music, record, video, vinyl</para> /// <para>Added in 5.0.13, updated in 5.10.1, 5.11.0 and 5.11.1.</para> /// </summary> CompactDisc = 0xf51f, /// <summary> /// Compass (compass) /// <para>Styles: solid, regular</para> /// <para>Terms: directions, directory, location, menu, navigation, safari, travel</para> /// <para>Added in 3.2.0, updated in 5.0.0, 5.11.0, 5.11.1 and 5.2.0.</para> /// </summary> Compass = 0xf14e, /// <summary> /// Compress (compress) /// <para>Terms: collapse, fullscreen, minimize, move, resize, shrink, smaller</para> /// <para>Added in 5.0.0.</para> /// </summary> Compress = 0xf066, /// <summary> /// Alternate Compress (compress-alt) /// <para>Terms: collapse, fullscreen, minimize, move, resize, shrink, smaller</para> /// <para>Added in 1.0.0, updated in 5.0.0 and 5.12.0.</para> /// </summary> CompressAlt = 0xf422, /// <summary> /// Alternate Compress Arrows (compress-arrows-alt) /// <para>Terms: collapse, fullscreen, minimize, move, resize, shrink, smaller</para> /// <para>Added in 5.6.0.</para> /// </summary> CompressArrowsAlt = 0xf78c, /// <summary> /// Concierge Bell (concierge-bell) /// <para>Terms: attention, hotel, receptionist, service, support</para> /// <para>Added in 5.1.0.</para> /// </summary> ConciergeBell = 0xf562, /// <summary> /// Cookie (cookie) /// <para>Terms: baked good, chips, chocolate, eat, snack, sweet, treat</para> /// <para>Added in 5.1.0.</para> /// </summary> Cookie = 0xf563, /// <summary> /// Cookie Bite (cookie-bite) /// <para>Terms: baked good, bitten, chips, chocolate, eat, snack, sweet, treat</para> /// <para>Added in 5.1.0.</para> /// </summary> CookieBite = 0xf564, /// <summary> /// Copy (copy) /// <para>Styles: solid, regular</para> /// <para>Terms: clone, duplicate, file, files-o, paper, paste</para> /// <para>Added in 2.0.0, updated in 5.0.0 and 5.10.2.</para> /// </summary> Copy = 0xf0c5, /// <summary> /// Copyright (copyright) /// <para>Styles: solid, regular</para> /// <para>Terms: brand, mark, register, trademark</para> /// <para>Added in 4.2.0, updated in 5.0.0, 5.10.1 and 5.10.2.</para> /// </summary> Copyright = 0xf1f9, /// <summary> /// Couch (couch) /// <para>Terms: chair, cushion, furniture, relax, sofa</para> /// <para>Added in 5.0.9.</para> /// </summary> Couch = 0xf4b8, /// <summary> /// Credit Card (credit-card) /// <para>Styles: solid, regular</para> /// <para>Terms: buy, checkout, credit-card-alt, debit, money, payment, purchase</para> /// <para>Added in 2.0.0, updated in 5.0.0.</para> /// </summary> CreditCard = 0xf09d, /// <summary> /// Crop (crop) /// <para>Terms: design, frame, mask, resize, shrink</para> /// <para>Added in 3.1.0, updated in 5.0.0 and 5.1.0.</para> /// </summary> Crop = 0xf125, /// <summary> /// Alternate Crop (crop-alt) /// <para>Terms: design, frame, mask, resize, shrink</para> /// <para>Added in 5.1.0.</para> /// </summary> CropAlt = 0xf565, /// <summary> /// Cross (cross) /// <para>Terms: catholicism, christianity, church, jesus</para> /// <para>Added in 5.10.1, updated in 5.3.0.</para> /// </summary> Cross = 0xf654, /// <summary> /// Crosshairs (crosshairs) /// <para>Terms: aim, bullseye, gpd, picker, position</para> /// <para>Added in 1.0.0, updated in 5.0.0.</para> /// </summary> Crosshairs = 0xf05b, /// <summary> /// Crow (crow) /// <para>Terms: bird, bullfrog, fauna, halloween, holiday, toad</para> /// <para>Added in 5.0.13.</para> /// </summary> Crow = 0xf520, /// <summary> /// Crown (crown) /// <para>Terms: award, favorite, king, queen, royal, tiara</para> /// <para>Added in 5.0.13.</para> /// </summary> Crown = 0xf521, /// <summary> /// Crutch (crutch) /// <para>Terms: cane, injury, mobility, wheelchair</para> /// <para>Added in 5.7.0.</para> /// </summary> Crutch = 0xf7f7, /// <summary> /// Cube (cube) /// <para>Terms: 3d, block, dice, package, square, tesseract</para> /// <para>Added in 4.1.0, updated in 5.0.0.</para> /// </summary> Cube = 0xf1b2, /// <summary> /// Cubes (cubes) /// <para>Terms: 3d, block, dice, package, pyramid, square, stack, tesseract</para> /// <para>Added in 4.1.0, updated in 5.0.0.</para> /// </summary> Cubes = 0xf1b3, /// <summary> /// Cut (cut) /// <para>Terms: clip, scissors, snip</para> /// <para>Added in 2.0.0, updated in 5.0.0 and 5.1.0.</para> /// </summary> Cut = 0xf0c4, /// <summary> /// Database (database) /// <para>Terms: computer, development, directory, memory, storage</para> /// <para>Added in 4.1.0, updated in 5.0.0.</para> /// </summary> Database = 0xf1c0, /// <summary> /// Deaf (deaf) /// <para>Terms: ear, hearing, sign language</para> /// <para>Added in 4.6.0, updated in 5.0.0.</para> /// </summary> Deaf = 0xf2a4, /// <summary> /// Democrat (democrat) /// <para>Terms: american, democratic party, donkey, election, left, left-wing, liberal, politics, usa</para> /// <para>Added in 5.5.0.</para> /// </summary> Democrat = 0xf747, /// <summary> /// Desktop (desktop) /// <para>Terms: computer, cpu, demo, desktop, device, imac, machine, monitor, pc, screen</para> /// <para>Added in 3.0.0, updated in 5.0.0.</para> /// </summary> Desktop = 0xf108, /// <summary> /// Dharmachakra (dharmachakra) /// <para>Terms: buddhism, buddhist, wheel of dharma</para> /// <para>Added in 5.3.0.</para> /// </summary> Dharmachakra = 0xf655, /// <summary> /// Diagnoses (diagnoses) /// <para>Terms: analyze, detect, diagnosis, examine, medicine</para> /// <para>Added in 5.0.7, updated in 5.7.0.</para> /// </summary> Diagnoses = 0xf470, /// <summary> /// Dice (dice) /// <para>Terms: chance, gambling, game, roll</para> /// <para>Added in 5.0.13.</para> /// </summary> Dice = 0xf522, /// <summary> /// Dice D20 (dice-d20) /// <para>Terms: Dungeons &amp; Dragons, chance, d&amp;d, dnd, fantasy, gambling, game, roll</para> /// <para>Added in 5.4.0.</para> /// </summary> DiceD20 = 0xf6cf, /// <summary> /// Dice D6 (dice-d6) /// <para>Terms: Dungeons &amp; Dragons, chance, d&amp;d, dnd, fantasy, gambling, game, roll</para> /// <para>Added in 5.4.0.</para> /// </summary> DiceD6 = 0xf6d1, /// <summary> /// Dice Five (dice-five) /// <para>Terms: chance, gambling, game, roll</para> /// <para>Added in 5.0.13.</para> /// </summary> DiceFive = 0xf523, /// <summary> /// Dice Four (dice-four) /// <para>Terms: chance, gambling, game, roll</para> /// <para>Added in 5.0.13.</para> /// </summary> DiceFour = 0xf524, /// <summary> /// Dice One (dice-one) /// <para>Terms: chance, gambling, game, roll</para> /// <para>Added in 5.0.13.</para> /// </summary> DiceOne = 0xf525, /// <summary> /// Dice Six (dice-six) /// <para>Terms: chance, gambling, game, roll</para> /// <para>Added in 5.0.13.</para> /// </summary> DiceSix = 0xf526, /// <summary> /// Dice Three (dice-three) /// <para>Terms: chance, gambling, game, roll</para> /// <para>Added in 5.0.13.</para> /// </summary> DiceThree = 0xf527, /// <summary> /// Dice Two (dice-two) /// <para>Terms: chance, gambling, game, roll</para> /// <para>Added in 5.0.13.</para> /// </summary> DiceTwo = 0xf528, /// <summary> /// Digital Tachograph (digital-tachograph) /// <para>Terms: data, distance, speed, tachometer</para> /// <para>Added in 5.1.0.</para> /// </summary> DigitalTachograph = 0xf566, /// <summary> /// Directions (directions) /// <para>Terms: map, navigation, sign, turn</para> /// <para>Added in 5.11.0, updated in 5.2.0.</para> /// </summary> Directions = 0xf5eb, /// <summary> /// Disease (disease) /// <para>Terms: bacteria, cancer, covid-19, illness, infection, sickness, virus</para> /// <para>Added in 5.7.0.</para> /// </summary> Disease = 0xf7fa, /// <summary> /// Divide (divide) /// <para>Terms: arithmetic, calculus, division, math</para> /// <para>Added in 5.0.13.</para> /// </summary> Divide = 0xf529, /// <summary> /// Dizzy Face (dizzy) /// <para>Styles: solid, regular</para> /// <para>Terms: dazed, dead, disapprove, emoticon, face</para> /// <para>Added in 5.1.0, updated in 5.11.0 and 5.11.1.</para> /// </summary> Dizzy = 0xf567, /// <summary> /// DNA (dna) /// <para>Terms: double helix, genetic, helix, molecule, protein</para> /// <para>Added in 5.0.10, updated in 5.0.7.</para> /// </summary> Dna = 0xf471, /// <summary> /// Dog (dog) /// <para>Terms: animal, canine, fauna, mammal, pet, pooch, puppy, woof</para> /// <para>Added in 5.12.0, updated in 5.4.0.</para> /// </summary> Dog = 0xf6d3, /// <summary> /// Dollar Sign (dollar-sign) /// <para>Terms: $, cost, dollar-sign, money, price, usd</para> /// <para>Added in 3.2.0, updated in 5.0.0, 5.0.9, 5.11.0 and 5.11.1.</para> /// </summary> DollarSign = 0xf155, /// <summary> /// Dolly (dolly) /// <para>Terms: carry, shipping, transport</para> /// <para>Added in 5.0.7.</para> /// </summary> Dolly = 0xf472, /// <summary> /// Dolly Flatbed (dolly-flatbed) /// <para>Terms: carry, inventory, shipping, transport</para> /// <para>Added in 5.0.7.</para> /// </summary> DollyFlatbed = 0xf474, /// <summary> /// Donate (donate) /// <para>Terms: contribute, generosity, gift, give</para> /// <para>Added in 5.0.9.</para> /// </summary> Donate = 0xf4b9, /// <summary> /// Door Closed (door-closed) /// <para>Terms: enter, exit, locked</para> /// <para>Added in 5.0.13.</para> /// </summary> DoorClosed = 0xf52a, /// <summary> /// Door Open (door-open) /// <para>Terms: enter, exit, welcome</para> /// <para>Added in 5.0.13.</para> /// </summary> DoorOpen = 0xf52b, /// <summary> /// Dot Circle (dot-circle) /// <para>Styles: solid, regular</para> /// <para>Terms: bullseye, notification, target</para> /// <para>Added in 4.0.0, updated in 5.0.0.</para> /// </summary> DotCircle = 0xf192, /// <summary> /// Dove (dove) /// <para>Terms: bird, fauna, flying, peace, war</para> /// <para>Added in 5.0.9, updated in 5.10.1 and 5.10.2.</para> /// </summary> Dove = 0xf4ba, /// <summary> /// Download (download) /// <para>Terms: export, hard drive, save, transfer</para> /// <para>Added in 1.0.0, updated in 5.0.0.</para> /// </summary> Download = 0xf019, /// <summary> /// Drafting Compass (drafting-compass) /// <para>Terms: design, map, mechanical drawing, plot, plotting</para> /// <para>Added in 5.1.0.</para> /// </summary> DraftingCompass = 0xf568, /// <summary> /// Dragon (dragon) /// <para>Terms: Dungeons &amp; Dragons, d&amp;d, dnd, fantasy, fire, lizard, serpent</para> /// <para>Added in 5.4.0.</para> /// </summary> Dragon = 0xf6d5, /// <summary> /// Draw Polygon (draw-polygon) /// <para>Terms: anchors, lines, object, render, shape</para> /// <para>Added in 5.2.0.</para> /// </summary> DrawPolygon = 0xf5ee, /// <summary> /// Drum (drum) /// <para>Terms: instrument, music, percussion, snare, sound</para> /// <para>Added in 5.1.0, updated in 5.11.0.</para> /// </summary> Drum = 0xf569, /// <summary> /// Drum Steelpan (drum-steelpan) /// <para>Terms: calypso, instrument, music, percussion, reggae, snare, sound, steel, tropical</para> /// <para>Added in 5.1.0.</para> /// </summary> DrumSteelpan = 0xf56a, /// <summary> /// Drumstick With Bite Taken Out (drumstick-bite) /// <para>Terms: bone, chicken, leg, meat, poultry, turkey</para> /// <para>Added in 5.4.0, updated in 5.7.0.</para> /// </summary> DrumstickBite = 0xf6d7, /// <summary> /// Dumbbell (dumbbell) /// <para>Terms: exercise, gym, strength, weight, weight-lifting</para> /// <para>Added in 5.0.5.</para> /// </summary> Dumbbell = 0xf44b, /// <summary> /// Dumpster (dumpster) /// <para>Terms: alley, bin, commercial, trash, waste</para> /// <para>Added in 5.6.0.</para> /// </summary> Dumpster = 0xf793, /// <summary> /// Dumpster Fire (dumpster-fire) /// <para>Terms: alley, bin, commercial, danger, dangerous, euphemism, flame, heat, hot, trash, waste</para> /// <para>Added in 5.6.0.</para> /// </summary> DumpsterFire = 0xf794, /// <summary> /// Dungeon (dungeon) /// <para>Terms: Dungeons &amp; Dragons, building, d&amp;d, dnd, door, entrance, fantasy, gate</para> /// <para>Added in 5.4.0.</para> /// </summary> Dungeon = 0xf6d9, /// <summary> /// Edit (edit) /// <para>Styles: solid, regular</para> /// <para>Terms: edit, pen, pencil, update, write</para> /// <para>Added in 1.0.0, updated in 5.0.0.</para> /// </summary> Edit = 0xf044, /// <summary> /// Egg (egg) /// <para>Terms: breakfast, chicken, easter, shell, yolk</para> /// <para>Added in 5.7.0.</para> /// </summary> Egg = 0xf7fb, /// <summary> /// Eject (eject) /// <para>Terms: abort, cancel, cd, discharge</para> /// <para>Added in 1.0.0, updated in 5.0.0.</para> /// </summary> Eject = 0xf052, /// <summary> /// Horizontal Ellipsis (ellipsis-h) /// <para>Terms: dots, drag, kebab, list, menu, nav, navigation, ol, reorder, settings, ul</para> /// <para>Added in 3.1.0, updated in 5.0.0.</para> /// </summary> EllipsisH = 0xf141, /// <summary> /// Vertical Ellipsis (ellipsis-v) /// <para>Terms: dots, drag, kebab, list, menu, nav, navigation, ol, reorder, settings, ul</para> /// <para>Added in 3.1.0, updated in 5.0.0.</para> /// </summary> EllipsisV = 0xf142, /// <summary> /// Envelope (envelope) /// <para>Styles: solid, regular</para> /// <para>Terms: e-mail, email, letter, mail, message, notification, support</para> /// <para>Added in 2.0.0, updated in 5.0.0, 5.10.1 and 5.10.2.</para> /// </summary> Envelope = 0xf0e0, /// <summary> /// Envelope Open (envelope-open) /// <para>Styles: solid, regular</para> /// <para>Terms: e-mail, email, letter, mail, message, notification, support</para> /// <para>Added in 4.7.0, updated in 5.0.0, 5.10.1 and 5.10.2.</para> /// </summary> EnvelopeOpen = 0xf2b6, /// <summary> /// Envelope Open-Text (envelope-open-text) /// <para>Terms: e-mail, email, letter, mail, message, notification, support</para> /// <para>Added in 5.10.1, updated in 5.12.0 and 5.3.0.</para> /// </summary> EnvelopeOpenText = 0xf658, /// <summary> /// Envelope Square (envelope-square) /// <para>Terms: e-mail, email, letter, mail, message, notification, support</para> /// <para>Added in 4.1.0, updated in 5.0.0.</para> /// </summary> EnvelopeSquare = 0xf199, /// <summary> /// Equals (equals) /// <para>Terms: arithmetic, even, match, math</para> /// <para>Added in 5.0.13.</para> /// </summary> Equals = 0xf52c, /// <summary> /// Eraser (eraser) /// <para>Terms: art, delete, remove, rubber</para> /// <para>Added in 3.1.0, updated in 5.0.0 and 5.8.0.</para> /// </summary> Eraser = 0xf12d, /// <summary> /// Ethernet (ethernet) /// <para>Terms: cable, cat 5, cat 6, connection, hardware, internet, network, wired</para> /// <para>Added in 5.6.0.</para> /// </summary> Ethernet = 0xf796, /// <summary> /// Euro Sign (euro-sign) /// <para>Terms: currency, dollar, exchange, money</para> /// <para>Added in 3.2.0, updated in 5.0.0.</para> /// </summary> EuroSign = 0xf153, /// <summary> /// Alternate Exchange (exchange-alt) /// <para>Terms: arrow, arrows, exchange, reciprocate, return, swap, transfer</para> /// <para>Added in 5.0.0.</para> /// </summary> ExchangeAlt = 0xf362, /// <summary> /// Exclamation (exclamation) /// <para>Terms: alert, danger, error, important, notice, notification, notify, problem, warning</para> /// <para>Added in 3.1.0, updated in 5.0.0, 5.10.1 and 5.10.2.</para> /// </summary> Exclamation = 0xf12a, /// <summary> /// Exclamation Circle (exclamation-circle) /// <para>Terms: alert, danger, error, important, notice, notification, notify, problem, warning</para> /// <para>Added in 1.0.0, updated in 5.0.0.</para> /// </summary> ExclamationCircle = 0xf06a, /// <summary> /// Exclamation Triangle (exclamation-triangle) /// <para>Terms: alert, danger, error, important, notice, notification, notify, problem, warning</para> /// <para>Added in 1.0.0, updated in 5.0.0 and 5.6.1.</para> /// </summary> ExclamationTriangle = 0xf071, /// <summary> /// Expand (expand) /// <para>Terms: bigger, enlarge, fullscreen, resize</para> /// <para>Added in 5.0.0.</para> /// </summary> Expand = 0xf065, /// <summary> /// Alternate Expand (expand-alt) /// <para>Terms: arrows, bigger, enlarge, fullscreen, resize</para> /// <para>Added in 1.0.0, updated in 5.0.0 and 5.12.0.</para> /// </summary> ExpandAlt = 0xf424, /// <summary> /// Alternate Expand Arrows (expand-arrows-alt) /// <para>Terms: bigger, enlarge, fullscreen, move, resize</para> /// <para>Added in 5.0.0, updated in 5.8.0.</para> /// </summary> ExpandArrowsAlt = 0xf31e, /// <summary> /// Alternate External Link (external-link-alt) /// <para>Terms: external-link, new, open, share</para> /// <para>Added in 5.0.0, updated in 5.11.0.</para> /// </summary> ExternalLinkAlt = 0xf35d, /// <summary> /// Alternate External Link Square (external-link-square-alt) /// <para>Terms: external-link-square, new, open, share</para> /// <para>Added in 5.0.0.</para> /// </summary> ExternalLinkSquareAlt = 0xf360, /// <summary> /// Eye (eye) /// <para>Styles: solid, regular</para> /// <para>Terms: look, optic, see, seen, show, sight, views, visible</para> /// <para>Added in 1.0.0, updated in 5.0.0 and 5.7.0.</para> /// </summary> Eye = 0xf06e, /// <summary> /// Eye Dropper (eye-dropper) /// <para>Terms: beaker, clone, color, copy, eyedropper, pipette</para> /// <para>Added in 4.2.0, updated in 5.0.0 and 5.1.0.</para> /// </summary> EyeDropper = 0xf1fb, /// <summary> /// Eye Slash (eye-slash) /// <para>Styles: solid, regular</para> /// <para>Terms: blind, hide, show, toggle, unseen, views, visible, visiblity</para> /// <para>Added in 1.0.0, updated in 5.0.0 and 5.7.0.</para> /// </summary> EyeSlash = 0xf070, /// <summary> /// Fan (fan) /// <para>Terms: ac, air conditioning, blade, blower, cool, hot</para> /// <para>Added in 5.10.1, updated in 5.9.0.</para> /// </summary> Fan = 0xf863, /// <summary> /// Fast-Backward (fast-backward) /// <para>Terms: beginning, first, previous, rewind, start</para> /// <para>Added in 1.0.0, updated in 5.0.0.</para> /// </summary> FastBackward = 0xf049, /// <summary> /// Fast-Forward (fast-forward) /// <para>Terms: end, last, next</para> /// <para>Added in 1.0.0, updated in 5.0.0.</para> /// </summary> FastForward = 0xf050, /// <summary> /// Faucet (faucet) /// <para>Terms: covid-19, drip, house, hygiene, kitchen, sink, water</para> /// <para>Added in 5.12.0, updated in 5.14.0.</para> /// </summary> Faucet = 0xe005, /// <summary> /// Fax (fax) /// <para>Terms: business, communicate, copy, facsimile, send</para> /// <para>Added in 4.1.0, updated in 5.0.0, 5.11.0 and 5.3.0.</para> /// </summary> Fax = 0xf1ac, /// <summary> /// Feather (feather) /// <para>Terms: bird, light, plucked, quill, write</para> /// <para>Added in 5.0.13, updated in 5.1.0.</para> /// </summary> Feather = 0xf52d, /// <summary> /// Alternate Feather (feather-alt) /// <para>Terms: bird, light, plucked, quill, write</para> /// <para>Added in 5.1.0.</para> /// </summary> FeatherAlt = 0xf56b, /// <summary> /// Female (female) /// <para>Terms: human, person, profile, user, woman</para> /// <para>Added in 3.2.0, updated in 5.0.0.</para> /// </summary> Female = 0xf182, /// <summary> /// Fighter-Jet (fighter-jet) /// <para>Terms: airplane, fast, fly, goose, maverick, plane, quick, top gun, transportation, travel</para> /// <para>Added in 3.0.0, updated in 5.0.0.</para> /// </summary> FighterJet = 0xf0fb, /// <summary> /// File (file) /// <para>Styles: solid, regular</para> /// <para>Terms: document, new, page, pdf, resume</para> /// <para>Added in 3.2.0, updated in 5.0.0, 5.10.1 and 5.10.2.</para> /// </summary> File = 0xf15b, /// <summary> /// Alternate File (file-alt) /// <para>Styles: solid, regular</para> /// <para>Terms: document, file-text, invoice, new, page, pdf</para> /// <para>Added in 3.2.0, updated in 5.0.0 and 5.10.2.</para> /// </summary> FileAlt = 0xf15c, /// <summary> /// Archive File (file-archive) /// <para>Styles: solid, regular</para> /// <para>Terms: .zip, bundle, compress, compression, download, zip</para> /// <para>Added in 4.1.0, updated in 5.0.0, 5.10.2 and 5.7.0.</para> /// </summary> FileArchive = 0xf1c6, /// <summary> /// Audio File (file-audio) /// <para>Styles: solid, regular</para> /// <para>Terms: document, mp3, music, page, play, sound</para> /// <para>Added in 4.1.0, updated in 5.0.0 and 5.10.2.</para> /// </summary> FileAudio = 0xf1c7, /// <summary> /// Code File (file-code) /// <para>Styles: solid, regular</para> /// <para>Terms: css, development, document, html</para> /// <para>Added in 4.1.0, updated in 5.0.0 and 5.10.2.</para> /// </summary> FileCode = 0xf1c9, /// <summary> /// File Contract (file-contract) /// <para>Terms: agreement, binding, document, legal, signature</para> /// <para>Added in 5.1.0, updated in 5.10.2.</para> /// </summary> FileContract = 0xf56c, /// <summary> /// File CSV (file-csv) /// <para>Terms: document, excel, numbers, spreadsheets, table</para> /// <para>Added in 5.10.2, updated in 5.4.0.</para> /// </summary> FileCsv = 0xf6dd, /// <summary> /// File Download (file-download) /// <para>Terms: document, export, save</para> /// <para>Added in 5.1.0, updated in 5.10.2.</para> /// </summary> FileDownload = 0xf56d, /// <summary> /// Excel File (file-excel) /// <para>Styles: solid, regular</para> /// <para>Terms: csv, document, numbers, spreadsheets, table</para> /// <para>Added in 4.1.0, updated in 5.0.0 and 5.10.2.</para> /// </summary> FileExcel = 0xf1c3, /// <summary> /// File Export (file-export) /// <para>Terms: download, save</para> /// <para>Added in 5.1.0, updated in 5.10.2 and 5.7.0.</para> /// </summary> FileExport = 0xf56e, /// <summary> /// Image File (file-image) /// <para>Styles: solid, regular</para> /// <para>Terms: document, image, jpg, photo, png</para> /// <para>Added in 4.1.0, updated in 5.0.0 and 5.10.2.</para> /// </summary> FileImage = 0xf1c5, /// <summary> /// File Import (file-import) /// <para>Terms: copy, document, send, upload</para> /// <para>Added in 5.1.0, updated in 5.10.2 and 5.7.0.</para> /// </summary> FileImport = 0xf56f, /// <summary> /// File Invoice (file-invoice) /// <para>Terms: account, bill, charge, document, payment, receipt</para> /// <para>Added in 5.1.0, updated in 5.10.2.</para> /// </summary> FileInvoice = 0xf570, /// <summary> /// File Invoice With US Dollar (file-invoice-dollar) /// <para>Terms: $, account, bill, charge, document, dollar-sign, money, payment, receipt, usd</para> /// <para>Added in 5.1.0, updated in 5.10.2.</para> /// </summary> FileInvoiceDollar = 0xf571, /// <summary> /// Medical File (file-medical) /// <para>Terms: document, health, history, prescription, record</para> /// <para>Added in 5.0.7, updated in 5.10.2.</para> /// </summary> FileMedical = 0xf477, /// <summary> /// Alternate Medical File (file-medical-alt) /// <para>Terms: document, health, history, prescription, record</para> /// <para>Added in 5.0.7, updated in 5.10.2.</para> /// </summary> FileMedicalAlt = 0xf478, /// <summary> /// PDF File (file-pdf) /// <para>Styles: solid, regular</para> /// <para>Terms: acrobat, document, preview, save</para> /// <para>Added in 4.1.0, updated in 5.0.0 and 5.10.2.</para> /// </summary> FilePdf = 0xf1c1, /// <summary> /// Powerpoint File (file-powerpoint) /// <para>Styles: solid, regular</para> /// <para>Terms: display, document, keynote, presentation</para> /// <para>Added in 4.1.0, updated in 5.0.0 and 5.10.2.</para> /// </summary> FilePowerpoint = 0xf1c4, /// <summary> /// File Prescription (file-prescription) /// <para>Terms: document, drugs, medical, medicine, rx</para> /// <para>Added in 5.1.0, updated in 5.10.2.</para> /// </summary> FilePrescription = 0xf572, /// <summary> /// File Signature (file-signature) /// <para>Terms: John Hancock, contract, document, name</para> /// <para>Added in 5.1.0, updated in 5.10.2.</para> /// </summary> FileSignature = 0xf573, /// <summary> /// File Upload (file-upload) /// <para>Terms: document, import, page, save</para> /// <para>Added in 5.1.0, updated in 5.10.2.</para> /// </summary> FileUpload = 0xf574, /// <summary> /// Video File (file-video) /// <para>Styles: solid, regular</para> /// <para>Terms: document, m4v, movie, mp4, play</para> /// <para>Added in 4.1.0, updated in 5.0.0 and 5.10.2.</para> /// </summary> FileVideo = 0xf1c8, /// <summary> /// Word File (file-word) /// <para>Styles: solid, regular</para> /// <para>Terms: document, edit, page, text, writing</para> /// <para>Added in 4.1.0, updated in 5.0.0 and 5.10.2.</para> /// </summary> FileWord = 0xf1c2, /// <summary> /// Fill (fill) /// <para>Terms: bucket, color, paint, paint bucket</para> /// <para>Added in 5.1.0.</para> /// </summary> Fill = 0xf575, /// <summary> /// Fill Drip (fill-drip) /// <para>Terms: bucket, color, drop, paint, paint bucket, spill</para> /// <para>Added in 5.1.0.</para> /// </summary> FillDrip = 0xf576, /// <summary> /// Film (film) /// <para>Terms: cinema, movie, strip, video</para> /// <para>Added in 1.0.0, updated in 5.0.0.</para> /// </summary> Film = 0xf008, /// <summary> /// Filter (filter) /// <para>Terms: funnel, options, separate, sort</para> /// <para>Added in 2.0.0, updated in 5.0.0, 5.10.1, 5.11.0 and 5.11.1.</para> /// </summary> Filter = 0xf0b0, /// <summary> /// Fingerprint (fingerprint) /// <para>Terms: human, id, identification, lock, smudge, touch, unique, unlock</para> /// <para>Added in 5.1.0.</para> /// </summary> Fingerprint = 0xf577, /// <summary> /// Fire (fire) /// <para>Terms: burn, caliente, flame, heat, hot, popular</para> /// <para>Added in 1.0.0, updated in 5.0.0, 5.10.1, 5.6.0 and 5.6.3.</para> /// </summary> Fire = 0xf06d, /// <summary> /// Alternate Fire (fire-alt) /// <para>Terms: burn, caliente, flame, heat, hot, popular</para> /// <para>Added in 5.6.3.</para> /// </summary> FireAlt = 0xf7e4, /// <summary> /// Fire-Extinguisher (fire-extinguisher) /// <para>Terms: burn, caliente, fire fighter, flame, heat, hot, rescue</para> /// <para>Added in 3.1.0, updated in 5.0.0.</para> /// </summary> FireExtinguisher = 0xf134, /// <summary> /// First Aid (first-aid) /// <para>Terms: emergency, emt, health, medical, rescue</para> /// <para>Added in 5.0.7.</para> /// </summary> FirstAid = 0xf479, /// <summary> /// Fish (fish) /// <para>Terms: fauna, gold, seafood, swimming</para> /// <para>Added in 5.1.0, updated in 5.10.1.</para> /// </summary> Fish = 0xf578, /// <summary> /// Raised Fist (fist-raised) /// <para>Terms: Dungeons &amp; Dragons, d&amp;d, dnd, fantasy, hand, ki, monk, resist, strength, unarmed combat</para> /// <para>Added in 5.4.0.</para> /// </summary> FistRaised = 0xf6de, /// <summary> /// Flag (flag) /// <para>Styles: solid, regular</para> /// <para>Terms: country, notice, notification, notify, pole, report, symbol</para> /// <para>Added in 1.0.0, updated in 5.0.0.</para> /// </summary> Flag = 0xf024, /// <summary> /// Flag-Checkered (flag-checkered) /// <para>Terms: notice, notification, notify, pole, racing, report, symbol</para> /// <para>Added in 3.1.0, updated in 5.0.0, 5.10.1 and 5.7.0.</para> /// </summary> FlagCheckered = 0xf11e, /// <summary> /// United States Of America Flag (flag-usa) /// <para>Terms: betsy ross, country, old glory, stars, stripes, symbol</para> /// <para>Added in 5.5.0.</para> /// </summary> FlagUsa = 0xf74d, /// <summary> /// Flask (flask) /// <para>Terms: beaker, experimental, labs, science</para> /// <para>Added in 2.0.0, updated in 5.0.0.</para> /// </summary> Flask = 0xf0c3, /// <summary> /// Flushed Face (flushed) /// <para>Styles: solid, regular</para> /// <para>Terms: embarrassed, emoticon, face</para> /// <para>Added in 5.1.0, updated in 5.11.0 and 5.11.1.</para> /// </summary> Flushed = 0xf579, /// <summary> /// Folder (folder) /// <para>Styles: solid, regular</para> /// <para>Terms: archive, directory, document, file</para> /// <para>Added in 1.0.0, updated in 5.0.0, 5.10.1 and 5.3.0.</para> /// </summary> Folder = 0xf07b, /// <summary> /// Folder Minus (folder-minus) /// <para>Terms: archive, delete, directory, document, file, negative, remove</para> /// <para>Added in 5.3.0.</para> /// </summary> FolderMinus = 0xf65d, /// <summary> /// Folder Open (folder-open) /// <para>Styles: solid, regular</para> /// <para>Terms: archive, directory, document, empty, file, new</para> /// <para>Added in 1.0.0, updated in 5.0.0.</para> /// </summary> FolderOpen = 0xf07c, /// <summary> /// Folder Plus (folder-plus) /// <para>Terms: add, archive, create, directory, document, file, new, positive</para> /// <para>Added in 5.11.0, updated in 5.12.1 and 5.3.0.</para> /// </summary> FolderPlus = 0xf65e, /// <summary> /// Font (font) /// <para>Terms: alphabet, glyph, text, type, typeface</para> /// <para>Added in 1.0.0, updated in 5.0.0, 5.10.2 and 5.9.0.</para> /// </summary> Font = 0xf031, /// <summary> /// Football Ball (football-ball) /// <para>Terms: ball, fall, nfl, pigskin, seasonal</para> /// <para>Added in 5.0.5, updated in 5.11.0 and 5.11.1.</para> /// </summary> FootballBall = 0xf44e, /// <summary> /// Forward (forward) /// <para>Terms: forward, next, skip</para> /// <para>Added in 1.0.0, updated in 5.0.0.</para> /// </summary> Forward = 0xf04e, /// <summary> /// Frog (frog) /// <para>Terms: amphibian, bullfrog, fauna, hop, kermit, kiss, prince, ribbit, toad, wart</para> /// <para>Added in 5.0.13.</para> /// </summary> Frog = 0xf52e, /// <summary> /// Frowning Face (frown) /// <para>Styles: solid, regular</para> /// <para>Terms: disapprove, emoticon, face, rating, sad</para> /// <para>Added in 3.1.0, updated in 5.0.0, 5.0.9, 5.1.0, 5.11.0 and 5.11.1.</para> /// </summary> Frown = 0xf119, /// <summary> /// Frowning Face With Open Mouth (frown-open) /// <para>Styles: solid, regular</para> /// <para>Terms: disapprove, emoticon, face, rating, sad</para> /// <para>Added in 5.1.0, updated in 5.11.0 and 5.11.1.</para> /// </summary> FrownOpen = 0xf57a, /// <summary> /// Funnel Dollar (funnel-dollar) /// <para>Terms: filter, money, options, separate, sort</para> /// <para>Added in 5.3.0.</para> /// </summary> FunnelDollar = 0xf662, /// <summary> /// Futbol (futbol) /// <para>Styles: solid, regular</para> /// <para>Terms: ball, football, mls, soccer</para> /// <para>Added in 4.2.0, updated in 5.0.0 and 5.0.5.</para> /// </summary> Futbol = 0xf1e3, /// <summary> /// Gamepad (gamepad) /// <para>Terms: arcade, controller, d-pad, joystick, video, video game</para> /// <para>Added in 3.1.0, updated in 5.0.0 and 5.11.0.</para> /// </summary> Gamepad = 0xf11b, /// <summary> /// Gas Pump (gas-pump) /// <para>Terms: car, fuel, gasoline, petrol</para> /// <para>Added in 5.0.13, updated in 5.10.1.</para> /// </summary> GasPump = 0xf52f, /// <summary> /// Gavel (gavel) /// <para>Terms: hammer, judge, law, lawyer, opinion</para> /// <para>Added in 2.0.0, updated in 5.0.0.</para> /// </summary> Gavel = 0xf0e3, /// <summary> /// Gem (gem) /// <para>Styles: solid, regular</para> /// <para>Terms: diamond, jewelry, sapphire, stone, treasure</para> /// <para>Added in 5.0.0, updated in 5.10.1.</para> /// </summary> Gem = 0xf3a5, /// <summary> /// Genderless (genderless) /// <para>Terms: androgynous, asexual, sexless</para> /// <para>Added in 4.4.0, updated in 5.0.0, 5.11.0 and 5.11.1.</para> /// </summary> Genderless = 0xf22d, /// <summary> /// Ghost (ghost) /// <para>Terms: apparition, blinky, clyde, floating, halloween, holiday, inky, pinky, spirit</para> /// <para>Added in 5.4.0.</para> /// </summary> Ghost = 0xf6e2, /// <summary> /// Gift (gift) /// <para>Terms: christmas, generosity, giving, holiday, party, present, wrapped, xmas</para> /// <para>Added in 1.0.0, updated in 5.0.0, 5.0.9 and 5.6.0.</para> /// </summary> Gift = 0xf06b, /// <summary> /// Gifts (gifts) /// <para>Terms: christmas, generosity, giving, holiday, party, present, wrapped, xmas</para> /// <para>Added in 5.6.0.</para> /// </summary> Gifts = 0xf79c, /// <summary> /// Glass Cheers (glass-cheers) /// <para>Terms: alcohol, bar, beverage, celebration, champagne, clink, drink, holiday, new year&apos;s eve, party, toast</para> /// <para>Added in 5.6.0.</para> /// </summary> GlassCheers = 0xf79f, /// <summary> /// Martini Glass (glass-martini) /// <para>Terms: alcohol, bar, beverage, drink, liquor</para> /// <para>Added in 1.0.0, updated in 5.0.0, 5.1.0 and 5.10.1.</para> /// </summary> GlassMartini = 0xf000, /// <summary> /// Alternate Glass Martini (glass-martini-alt) /// <para>Terms: alcohol, bar, beverage, drink, liquor</para> /// <para>Added in 5.1.0.</para> /// </summary> GlassMartiniAlt = 0xf57b, /// <summary> /// Glass Whiskey (glass-whiskey) /// <para>Terms: alcohol, bar, beverage, bourbon, drink, liquor, neat, rye, scotch, whisky</para> /// <para>Added in 5.6.0.</para> /// </summary> GlassWhiskey = 0xf7a0, /// <summary> /// Glasses (glasses) /// <para>Terms: hipster, nerd, reading, sight, spectacles, vision</para> /// <para>Added in 5.0.13.</para> /// </summary> Glasses = 0xf530, /// <summary> /// Globe (globe) /// <para>Terms: all, coordinates, country, earth, global, gps, language, localize, location, map, online, place, planet, translate, travel, world</para> /// <para>Added in 2.0.0, updated in 5.0.0, 5.0.9, 5.11.0 and 5.11.1.</para> /// </summary> Globe = 0xf0ac, /// <summary> /// Globe With Africa Shown (globe-africa) /// <para>Terms: all, country, earth, global, gps, language, localize, location, map, online, place, planet, translate, travel, world</para> /// <para>Added in 5.1.0, updated in 5.11.0 and 5.11.1.</para> /// </summary> GlobeAfrica = 0xf57c, /// <summary> /// Globe With Americas Shown (globe-americas) /// <para>Terms: all, country, earth, global, gps, language, localize, location, map, online, place, planet, translate, travel, world</para> /// <para>Added in 5.1.0, updated in 5.11.0 and 5.11.1.</para> /// </summary> GlobeAmericas = 0xf57d, /// <summary> /// Globe With Asia Shown (globe-asia) /// <para>Terms: all, country, earth, global, gps, language, localize, location, map, online, place, planet, translate, travel, world</para> /// <para>Added in 5.1.0, updated in 5.11.0 and 5.11.1.</para> /// </summary> GlobeAsia = 0xf57e, /// <summary> /// Globe With Europe Shown (globe-europe) /// <para>Terms: all, country, earth, global, gps, language, localize, location, map, online, place, planet, translate, travel, world</para> /// <para>Added in 5.11.0, updated in 5.11.1 and 5.6.0.</para> /// </summary> GlobeEurope = 0xf7a2, /// <summary> /// Golf Ball (golf-ball) /// <para>Terms: caddy, eagle, putt, tee</para> /// <para>Added in 5.0.5.</para> /// </summary> GolfBall = 0xf450, /// <summary> /// Gopuram (gopuram) /// <para>Terms: building, entrance, hinduism, temple, tower</para> /// <para>Added in 5.11.0, updated in 5.3.0 and 5.7.0.</para> /// </summary> Gopuram = 0xf664, /// <summary> /// Graduation Cap (graduation-cap) /// <para>Terms: ceremony, college, graduate, learning, school, student</para> /// <para>Added in 4.1.0, updated in 5.0.0, 5.10.1 and 5.2.0.</para> /// </summary> GraduationCap = 0xf19d, /// <summary> /// Greater Than (greater-than) /// <para>Terms: arithmetic, compare, math</para> /// <para>Added in 5.0.13.</para> /// </summary> GreaterThan = 0xf531, /// <summary> /// Greater Than Equal To (greater-than-equal) /// <para>Terms: arithmetic, compare, math</para> /// <para>Added in 5.0.13.</para> /// </summary> GreaterThanEqual = 0xf532, /// <summary> /// Grimacing Face (grimace) /// <para>Styles: solid, regular</para> /// <para>Terms: cringe, emoticon, face, teeth</para> /// <para>Added in 5.1.0, updated in 5.11.0 and 5.11.1.</para> /// </summary> Grimace = 0xf57f, /// <summary> /// Grinning Face (grin) /// <para>Styles: solid, regular</para> /// <para>Terms: emoticon, face, laugh, smile</para> /// <para>Added in 5.1.0, updated in 5.11.0 and 5.11.1.</para> /// </summary> Grin = 0xf580, /// <summary> /// Alternate Grinning Face (grin-alt) /// <para>Styles: solid, regular</para> /// <para>Terms: emoticon, face, laugh, smile</para> /// <para>Added in 5.1.0, updated in 5.11.0 and 5.11.1.</para> /// </summary> GrinAlt = 0xf581, /// <summary> /// Grinning Face With Smiling Eyes (grin-beam) /// <para>Styles: solid, regular</para> /// <para>Terms: emoticon, face, laugh, smile</para> /// <para>Added in 5.1.0, updated in 5.11.0 and 5.11.1.</para> /// </summary> GrinBeam = 0xf582, /// <summary> /// Grinning Face With Sweat (grin-beam-sweat) /// <para>Styles: solid, regular</para> /// <para>Terms: embarass, emoticon, face, smile</para> /// <para>Added in 5.1.0, updated in 5.11.0 and 5.11.1.</para> /// </summary> GrinBeamSweat = 0xf583, /// <summary> /// Smiling Face With Heart-Eyes (grin-hearts) /// <para>Styles: solid, regular</para> /// <para>Terms: emoticon, face, love, smile</para> /// <para>Added in 5.1.0, updated in 5.11.0 and 5.11.1.</para> /// </summary> GrinHearts = 0xf584, /// <summary> /// Grinning Squinting Face (grin-squint) /// <para>Styles: solid, regular</para> /// <para>Terms: emoticon, face, laugh, smile</para> /// <para>Added in 5.1.0, updated in 5.11.0 and 5.11.1.</para> /// </summary> GrinSquint = 0xf585, /// <summary> /// Rolling On The Floor Laughing (grin-squint-tears) /// <para>Styles: solid, regular</para> /// <para>Terms: emoticon, face, happy, smile</para> /// <para>Added in 5.1.0.</para> /// </summary> GrinSquintTears = 0xf586, /// <summary> /// Star-Struck (grin-stars) /// <para>Styles: solid, regular</para> /// <para>Terms: emoticon, face, star-struck</para> /// <para>Added in 5.1.0, updated in 5.11.0 and 5.11.1.</para> /// </summary> GrinStars = 0xf587, /// <summary> /// Face With Tears Of Joy (grin-tears) /// <para>Styles: solid, regular</para> /// <para>Terms: LOL, emoticon, face</para> /// <para>Added in 5.1.0.</para> /// </summary> GrinTears = 0xf588, /// <summary> /// Face With Tongue (grin-tongue) /// <para>Styles: solid, regular</para> /// <para>Terms: LOL, emoticon, face</para> /// <para>Added in 5.1.0, updated in 5.11.0 and 5.11.1.</para> /// </summary> GrinTongue = 0xf589, /// <summary> /// Squinting Face With Tongue (grin-tongue-squint) /// <para>Styles: solid, regular</para> /// <para>Terms: LOL, emoticon, face</para> /// <para>Added in 5.1.0, updated in 5.11.0 and 5.11.1.</para> /// </summary> GrinTongueSquint = 0xf58a, /// <summary> /// Winking Face With Tongue (grin-tongue-wink) /// <para>Styles: solid, regular</para> /// <para>Terms: LOL, emoticon, face</para> /// <para>Added in 5.1.0, updated in 5.11.0, 5.11.1 and 5.12.0.</para> /// </summary> GrinTongueWink = 0xf58b, /// <summary> /// Grinning Winking Face (grin-wink) /// <para>Styles: solid, regular</para> /// <para>Terms: emoticon, face, flirt, laugh, smile</para> /// <para>Added in 5.1.0, updated in 5.1.1, 5.11.0 and 5.11.1.</para> /// </summary> GrinWink = 0xf58c, /// <summary> /// Grip Horizontal (grip-horizontal) /// <para>Terms: affordance, drag, drop, grab, handle</para> /// <para>Added in 5.1.0.</para> /// </summary> GripHorizontal = 0xf58d, /// <summary> /// Grip Lines (grip-lines) /// <para>Terms: affordance, drag, drop, grab, handle</para> /// <para>Added in 5.6.0.</para> /// </summary> GripLines = 0xf7a4, /// <summary> /// Grip Lines Vertical (grip-lines-vertical) /// <para>Terms: affordance, drag, drop, grab, handle</para> /// <para>Added in 5.11.0, updated in 5.11.1 and 5.6.0.</para> /// </summary> GripLinesVertical = 0xf7a5, /// <summary> /// Grip Vertical (grip-vertical) /// <para>Terms: affordance, drag, drop, grab, handle</para> /// <para>Added in 5.1.0.</para> /// </summary> GripVertical = 0xf58e, /// <summary> /// Guitar (guitar) /// <para>Terms: acoustic, instrument, music, rock, rock and roll, song, strings</para> /// <para>Added in 5.11.0, updated in 5.6.0.</para> /// </summary> Guitar = 0xf7a6, /// <summary> /// H Square (h-square) /// <para>Terms: directions, emergency, hospital, hotel, map</para> /// <para>Added in 3.0.0, updated in 5.0.0.</para> /// </summary> HSquare = 0xf0fd, /// <summary> /// Hamburger (hamburger) /// <para>Terms: bacon, beef, burger, burger king, cheeseburger, fast food, grill, ground beef, mcdonalds, sandwich</para> /// <para>Added in 5.7.0.</para> /// </summary> Hamburger = 0xf805, /// <summary> /// Hammer (hammer) /// <para>Terms: admin, fix, repair, settings, tool</para> /// <para>Added in 5.4.0.</para> /// </summary> Hammer = 0xf6e3, /// <summary> /// Hamsa (hamsa) /// <para>Terms: amulet, christianity, islam, jewish, judaism, muslim, protection</para> /// <para>Added in 5.3.0.</para> /// </summary> Hamsa = 0xf665, /// <summary> /// Hand Holding (hand-holding) /// <para>Terms: carry, lift</para> /// <para>Added in 5.0.9.</para> /// </summary> HandHolding = 0xf4bd, /// <summary> /// Hand Holding Heart (hand-holding-heart) /// <para>Terms: carry, charity, gift, lift, package</para> /// <para>Added in 5.0.9.</para> /// </summary> HandHoldingHeart = 0xf4be, /// <summary> /// Hand Holding Medical Cross (hand-holding-medical) /// <para>Terms: care, covid-19, donate, help</para> /// <para>Added in 5.13.0, updated in 5.14.0.</para> /// </summary> HandHoldingMedical = 0xe05c, /// <summary> /// Hand Holding US Dollar (hand-holding-usd) /// <para>Terms: $, carry, dollar sign, donation, giving, lift, money, price</para> /// <para>Added in 5.0.9, updated in 5.11.0.</para> /// </summary> HandHoldingUsd = 0xf4c0, /// <summary> /// Hand Holding Water (hand-holding-water) /// <para>Terms: carry, covid-19, drought, grow, lift</para> /// <para>Added in 5.0.9, updated in 5.13.0.</para> /// </summary> HandHoldingWater = 0xf4c1, /// <summary> /// Lizard (Hand) (hand-lizard) /// <para>Styles: solid, regular</para> /// <para>Terms: game, roshambo</para> /// <para>Added in 4.4.0, updated in 5.0.0.</para> /// </summary> HandLizard = 0xf258, /// <summary> /// Hand With Middle Finger Raised (hand-middle-finger) /// <para>Terms: flip the bird, gesture, hate, rude</para> /// <para>Added in 5.11.0, updated in 5.11.1 and 5.7.0.</para> /// </summary> HandMiddleFinger = 0xf806, /// <summary> /// Paper (Hand) (hand-paper) /// <para>Styles: solid, regular</para> /// <para>Terms: game, halt, roshambo, stop</para> /// <para>Added in 4.4.0, updated in 5.0.0.</para> /// </summary> HandPaper = 0xf256, /// <summary> /// Peace (Hand) (hand-peace) /// <para>Styles: solid, regular</para> /// <para>Terms: rest, truce</para> /// <para>Added in 4.4.0, updated in 5.0.0.</para> /// </summary> HandPeace = 0xf25b, /// <summary> /// Hand Pointing Down (hand-point-down) /// <para>Styles: solid, regular</para> /// <para>Terms: finger, hand-o-down, point</para> /// <para>Added in 2.0.0, updated in 5.0.0.</para> /// </summary> HandPointDown = 0xf0a7, /// <summary> /// Hand Pointing Left (hand-point-left) /// <para>Styles: solid, regular</para> /// <para>Terms: back, finger, hand-o-left, left, point, previous</para> /// <para>Added in 2.0.0, updated in 5.0.0.</para> /// </summary> HandPointLeft = 0xf0a5, /// <summary> /// Hand Pointing Right (hand-point-right) /// <para>Styles: solid, regular</para> /// <para>Terms: finger, forward, hand-o-right, next, point, right</para> /// <para>Added in 2.0.0, updated in 5.0.0.</para> /// </summary> HandPointRight = 0xf0a4, /// <summary> /// Hand Pointing Up (hand-point-up) /// <para>Styles: solid, regular</para> /// <para>Terms: finger, hand-o-up, point</para> /// <para>Added in 2.0.0, updated in 5.0.0.</para> /// </summary> HandPointUp = 0xf0a6, /// <summary> /// Pointer (Hand) (hand-pointer) /// <para>Styles: solid, regular</para> /// <para>Terms: arrow, cursor, select</para> /// <para>Added in 4.4.0, updated in 5.0.0.</para> /// </summary> HandPointer = 0xf25a, /// <summary> /// Rock (Hand) (hand-rock) /// <para>Styles: solid, regular</para> /// <para>Terms: fist, game, roshambo</para> /// <para>Added in 4.4.0, updated in 5.0.0.</para> /// </summary> HandRock = 0xf255, /// <summary> /// Scissors (Hand) (hand-scissors) /// <para>Styles: solid, regular</para> /// <para>Terms: cut, game, roshambo</para> /// <para>Added in 4.4.0, updated in 5.0.0.</para> /// </summary> HandScissors = 0xf257, /// <summary> /// Hand Sparkles (hand-sparkles) /// <para>Terms: clean, covid-19, hygiene, magic, soap, wash</para> /// <para>Added in 5.13.0, updated in 5.14.0.</para> /// </summary> HandSparkles = 0xe05d, /// <summary> /// Spock (Hand) (hand-spock) /// <para>Styles: solid, regular</para> /// <para>Terms: live long, prosper, salute, star trek, vulcan</para> /// <para>Added in 4.4.0, updated in 5.0.0 and 5.12.0.</para> /// </summary> HandSpock = 0xf259, /// <summary> /// Hands (hands) /// <para>Terms: carry, hold, lift</para> /// <para>Added in 5.0.9.</para> /// </summary> Hands = 0xf4c2, /// <summary> /// Helping Hands (hands-helping) /// <para>Terms: aid, assistance, handshake, partnership, volunteering</para> /// <para>Added in 5.0.9.</para> /// </summary> HandsHelping = 0xf4c4, /// <summary> /// Hands Wash (hands-wash) /// <para>Terms: covid-19, hygiene, soap, wash</para> /// <para>Added in 5.13.0, updated in 5.14.0.</para> /// </summary> HandsWash = 0xe05e, /// <summary> /// Handshake (handshake) /// <para>Styles: solid, regular</para> /// <para>Terms: agreement, greeting, meeting, partnership</para> /// <para>Added in 4.7.0, updated in 5.0.0 and 5.0.9.</para> /// </summary> Handshake = 0xf2b5, /// <summary> /// Handshake Alternate Slash (handshake-alt-slash) /// <para>Terms: broken, covid-19, social distance</para> /// <para>Added in 5.13.0, updated in 5.14.0.</para> /// </summary> HandshakeAltSlash = 0xe05f, /// <summary> /// Handshake Slash (handshake-slash) /// <para>Terms: broken, covid-19, social distance</para> /// <para>Added in 5.13.0, updated in 5.14.0.</para> /// </summary> HandshakeSlash = 0xe060, /// <summary> /// Hanukiah (hanukiah) /// <para>Terms: candle, hanukkah, jewish, judaism, light</para> /// <para>Added in 5.4.0.</para> /// </summary> Hanukiah = 0xf6e6, /// <summary> /// Hard Hat (hard-hat) /// <para>Terms: construction, hardhat, helmet, safety</para> /// <para>Added in 5.7.0.</para> /// </summary> HardHat = 0xf807, /// <summary> /// Hashtag (hashtag) /// <para>Terms: Twitter, instagram, pound, social media, tag</para> /// <para>Added in 4.5.0, updated in 5.0.0.</para> /// </summary> Hashtag = 0xf292, /// <summary> /// Cowboy Hat (hat-cowboy) /// <para>Terms: buckaroo, horse, jackeroo, john b., old west, pardner, ranch, rancher, rodeo, western, wrangler</para> /// <para>Added in 5.11.0.</para> /// </summary> HatCowboy = 0xf8c0, /// <summary> /// Cowboy Hat Side (hat-cowboy-side) /// <para>Terms: buckaroo, horse, jackeroo, john b., old west, pardner, ranch, rancher, rodeo, western, wrangler</para> /// <para>Added in 5.11.0.</para> /// </summary> HatCowboySide = 0xf8c1, /// <summary> /// Wizard&apos;s Hat (hat-wizard) /// <para>Terms: Dungeons &amp; Dragons, accessory, buckle, clothing, d&amp;d, dnd, fantasy, halloween, head, holiday, mage, magic, pointy, witch</para> /// <para>Added in 5.11.0, updated in 5.4.0.</para> /// </summary> HatWizard = 0xf6e8, /// <summary> /// HDD (hdd) /// <para>Styles: solid, regular</para> /// <para>Terms: cpu, hard drive, harddrive, machine, save, storage</para> /// <para>Added in 2.0.0, updated in 5.0.0 and 5.10.1.</para> /// </summary> Hdd = 0xf0a0, /// <summary> /// Head Side Cough (head-side-cough) /// <para>Terms: cough, covid-19, germs, lungs, respiratory, sick</para> /// <para>Added in 5.13.0, updated in 5.14.0.</para> /// </summary> HeadSideCough = 0xe061, /// <summary> /// Head Side-Cough-Slash (head-side-cough-slash) /// <para>Terms: cough, covid-19, germs, lungs, respiratory, sick</para> /// <para>Added in 5.13.0, updated in 5.14.0.</para> /// </summary> HeadSideCoughSlash = 0xe062, /// <summary> /// Head Side Mask (head-side-mask) /// <para>Terms: breath, covid-19, filter, respirator, virus</para> /// <para>Added in 5.13.0, updated in 5.14.0.</para> /// </summary> HeadSideMask = 0xe063, /// <summary> /// Head Side Virus (head-side-virus) /// <para>Terms: cold, covid-19, flu, sick</para> /// <para>Added in 5.13.0, updated in 5.14.0.</para> /// </summary> HeadSideVirus = 0xe064, /// <summary> /// Heading (heading) /// <para>Terms: format, header, text, title</para> /// <para>Added in 4.1.0, updated in 5.0.0, 5.10.1, 5.10.2 and 5.9.0.</para> /// </summary> Heading = 0xf1dc, /// <summary> /// Headphones (headphones) /// <para>Terms: audio, listen, music, sound, speaker</para> /// <para>Added in 1.0.0, updated in 5.0.0.</para> /// </summary> Headphones = 0xf025, /// <summary> /// Alternate Headphones (headphones-alt) /// <para>Terms: audio, listen, music, sound, speaker</para> /// <para>Added in 5.1.0.</para> /// </summary> HeadphonesAlt = 0xf58f, /// <summary> /// Headset (headset) /// <para>Terms: audio, gamer, gaming, listen, live chat, microphone, shot caller, sound, support, telemarketer</para> /// <para>Added in 5.1.0.</para> /// </summary> Headset = 0xf590, /// <summary> /// Heart (heart) /// <para>Styles: solid, regular</para> /// <para>Terms: favorite, like, love, relationship, valentine</para> /// <para>Added in 1.0.0, updated in 5.0.0, 5.0.9, 5.10.1 and 5.10.2.</para> /// </summary> Heart = 0xf004, /// <summary> /// Heart Broken (heart-broken) /// <para>Terms: breakup, crushed, dislike, dumped, grief, love, lovesick, relationship, sad</para> /// <para>Added in 5.10.2, updated in 5.6.0.</para> /// </summary> HeartBroken = 0xf7a9, /// <summary> /// Heartbeat (heartbeat) /// <para>Terms: ekg, electrocardiogram, health, lifeline, vital signs</para> /// <para>Added in 4.3.0, updated in 5.0.0 and 5.0.7.</para> /// </summary> Heartbeat = 0xf21e, /// <summary> /// Helicopter (helicopter) /// <para>Terms: airwolf, apache, chopper, flight, fly, travel</para> /// <para>Added in 5.0.13.</para> /// </summary> Helicopter = 0xf533, /// <summary> /// Highlighter (highlighter) /// <para>Terms: edit, marker, sharpie, update, write</para> /// <para>Added in 5.1.0, updated in 5.10.1.</para> /// </summary> Highlighter = 0xf591, /// <summary> /// Hiking (hiking) /// <para>Terms: activity, backpack, fall, fitness, outdoors, person, seasonal, walking</para> /// <para>Added in 5.4.0.</para> /// </summary> Hiking = 0xf6ec, /// <summary> /// Hippo (hippo) /// <para>Terms: animal, fauna, hippopotamus, hungry, mammal</para> /// <para>Added in 5.10.1, updated in 5.4.0.</para> /// </summary> Hippo = 0xf6ed, /// <summary> /// History (history) /// <para>Terms: Rewind, clock, reverse, time, time machine</para> /// <para>Added in 4.1.0, updated in 5.0.0.</para> /// </summary> History = 0xf1da, /// <summary> /// Hockey Puck (hockey-puck) /// <para>Terms: ice, nhl, sport</para> /// <para>Added in 5.0.5.</para> /// </summary> HockeyPuck = 0xf453, /// <summary> /// Holly Berry (holly-berry) /// <para>Terms: catwoman, christmas, decoration, flora, halle, holiday, ororo munroe, plant, storm, xmas</para> /// <para>Added in 5.6.0.</para> /// </summary> HollyBerry = 0xf7aa, /// <summary> /// Home (home) /// <para>Terms: abode, building, house, main</para> /// <para>Added in 1.0.0, updated in 5.0.0 and 5.7.0.</para> /// </summary> Home = 0xf015, /// <summary> /// Horse (horse) /// <para>Terms: equus, fauna, mammmal, mare, neigh, pony</para> /// <para>Added in 5.10.1, updated in 5.4.0.</para> /// </summary> Horse = 0xf6f0, /// <summary> /// Horse Head (horse-head) /// <para>Terms: equus, fauna, mammmal, mare, neigh, pony</para> /// <para>Added in 5.10.1, updated in 5.6.0.</para> /// </summary> HorseHead = 0xf7ab, /// <summary> /// Hospital (hospital) /// <para>Styles: solid, regular</para> /// <para>Terms: building, covid-19, emergency room, medical center</para> /// <para>Added in 3.0.0, updated in 5.0.0.</para> /// </summary> Hospital = 0xf0f8, /// <summary> /// Alternate Hospital (hospital-alt) /// <para>Terms: building, covid-19, emergency room, medical center</para> /// <para>Added in 5.0.7.</para> /// </summary> HospitalAlt = 0xf47d, /// <summary> /// Hospital Symbol (hospital-symbol) /// <para>Terms: clinic, covid-19, emergency, map</para> /// <para>Added in 5.0.7.</para> /// </summary> HospitalSymbol = 0xf47e, /// <summary> /// Hospital With User (hospital-user) /// <para>Terms: covid-19, doctor, network, patient, primary care</para> /// <para>Added in 5.7.0.</para> /// </summary> HospitalUser = 0xf80d, /// <summary> /// Hot Tub (hot-tub) /// <para>Terms: bath, jacuzzi, massage, sauna, spa</para> /// <para>Added in 5.1.0.</para> /// </summary> HotTub = 0xf593, /// <summary> /// Hot Dog (hotdog) /// <para>Terms: bun, chili, frankfurt, frankfurter, kosher, polish, sandwich, sausage, vienna, weiner</para> /// <para>Added in 5.7.0.</para> /// </summary> Hotdog = 0xf80f, /// <summary> /// Hotel (hotel) /// <para>Terms: building, inn, lodging, motel, resort, travel</para> /// <para>Added in 5.1.0.</para> /// </summary> Hotel = 0xf594, /// <summary> /// Hourglass (hourglass) /// <para>Styles: solid, regular</para> /// <para>Terms: hour, minute, sand, stopwatch, time</para> /// <para>Added in 4.4.0, updated in 5.0.0 and 5.10.1.</para> /// </summary> Hourglass = 0xf254, /// <summary> /// Hourglass End (hourglass-end) /// <para>Terms: hour, minute, sand, stopwatch, time</para> /// <para>Added in 4.4.0, updated in 5.0.0 and 5.10.1.</para> /// </summary> HourglassEnd = 0xf253, /// <summary> /// Hourglass Half (hourglass-half) /// <para>Terms: hour, minute, sand, stopwatch, time</para> /// <para>Added in 4.4.0, updated in 5.0.0 and 5.10.1.</para> /// </summary> HourglassHalf = 0xf252, /// <summary> /// Hourglass Start (hourglass-start) /// <para>Terms: hour, minute, sand, stopwatch, time</para> /// <para>Added in 4.4.0, updated in 5.0.0 and 5.10.1.</para> /// </summary> HourglassStart = 0xf251, /// <summary> /// Damaged House (house-damage) /// <para>Terms: building, devastation, disaster, home, insurance</para> /// <para>Added in 5.4.0.</para> /// </summary> HouseDamage = 0xf6f1, /// <summary> /// House User (house-user) /// <para>Terms: covid-19, home, isolation, quarantine</para> /// <para>Added in 5.13.0, updated in 5.14.0.</para> /// </summary> HouseUser = 0xe065, /// <summary> /// Hryvnia (hryvnia) /// <para>Terms: currency, money, ukraine, ukrainian</para> /// <para>Added in 5.4.0.</para> /// </summary> Hryvnia = 0xf6f2, /// <summary> /// I Beam Cursor (i-cursor) /// <para>Terms: editing, i-beam, type, writing</para> /// <para>Added in 4.4.0, updated in 5.0.0.</para> /// </summary> ICursor = 0xf246, /// <summary> /// Ice Cream (ice-cream) /// <para>Terms: chocolate, cone, dessert, frozen, scoop, sorbet, vanilla, yogurt</para> /// <para>Added in 5.11.0, updated in 5.11.1 and 5.7.0.</para> /// </summary> IceCream = 0xf810, /// <summary> /// Icicles (icicles) /// <para>Terms: cold, frozen, hanging, ice, seasonal, sharp</para> /// <para>Added in 5.6.0.</para> /// </summary> Icicles = 0xf7ad, /// <summary> /// Icons (icons) /// <para>Terms: bolt, emoji, heart, image, music, photo, symbols</para> /// <para>Added in 5.9.0.</para> /// </summary> Icons = 0xf86d, /// <summary> /// Identification Badge (id-badge) /// <para>Styles: solid, regular</para> /// <para>Terms: address, contact, identification, license, profile</para> /// <para>Added in 4.7.0, updated in 5.0.0 and 5.0.3.</para> /// </summary> IdBadge = 0xf2c1, /// <summary> /// Identification Card (id-card) /// <para>Styles: solid, regular</para> /// <para>Terms: contact, demographics, document, identification, issued, profile</para> /// <para>Added in 4.7.0, updated in 5.0.0, 5.0.3, 5.10.1 and 5.8.0.</para> /// </summary> IdCard = 0xf2c2, /// <summary> /// Alternate Identification Card (id-card-alt) /// <para>Terms: contact, demographics, document, identification, issued, profile</para> /// <para>Added in 5.0.7, updated in 5.10.1.</para> /// </summary> IdCardAlt = 0xf47f, /// <summary> /// Igloo (igloo) /// <para>Terms: dome, dwelling, eskimo, home, house, ice, snow</para> /// <para>Added in 5.6.0.</para> /// </summary> Igloo = 0xf7ae, /// <summary> /// Image (image) /// <para>Styles: solid, regular</para> /// <para>Terms: album, landscape, photo, picture</para> /// <para>Added in 1.0.0, updated in 5.0.0 and 5.10.1.</para> /// </summary> Image = 0xf03e, /// <summary> /// Images (images) /// <para>Styles: solid, regular</para> /// <para>Terms: album, landscape, photo, picture</para> /// <para>Added in 1.0.0, updated in 5.0.0 and 5.10.1.</para> /// </summary> Images = 0xf302, /// <summary> /// Inbox (inbox) /// <para>Terms: archive, desk, email, mail, message</para> /// <para>Added in 1.0.0, updated in 5.0.0.</para> /// </summary> Inbox = 0xf01c, /// <summary> /// Indent (indent) /// <para>Terms: align, justify, paragraph, tab</para> /// <para>Added in 1.0.0, updated in 5.0.0 and 5.9.0.</para> /// </summary> Indent = 0xf03c, /// <summary> /// Industry (industry) /// <para>Terms: building, factory, industrial, manufacturing, mill, warehouse</para> /// <para>Added in 4.4.0, updated in 5.0.0 and 5.10.1.</para> /// </summary> Industry = 0xf275, /// <summary> /// Infinity (infinity) /// <para>Terms: eternity, forever, math</para> /// <para>Added in 5.0.13, updated in 5.10.1 and 5.3.0.</para> /// </summary> Infinity = 0xf534, /// <summary> /// Info (info) /// <para>Terms: details, help, information, more, support</para> /// <para>Added in 3.1.0, updated in 5.0.0, 5.10.1 and 5.10.2.</para> /// </summary> Info = 0xf129, /// <summary> /// Info Circle (info-circle) /// <para>Terms: details, help, information, more, support</para> /// <para>Added in 1.0.0, updated in 5.0.0.</para> /// </summary> InfoCircle = 0xf05a, /// <summary> /// Italic (italic) /// <para>Terms: edit, emphasis, font, format, text, type</para> /// <para>Added in 1.0.0, updated in 5.0.0, 5.10.1, 5.10.2 and 5.9.0.</para> /// </summary> Italic = 0xf033, /// <summary> /// Jedi (jedi) /// <para>Terms: crest, force, sith, skywalker, star wars, yoda</para> /// <para>Added in 5.3.0.</para> /// </summary> Jedi = 0xf669, /// <summary> /// Joint (joint) /// <para>Terms: blunt, cannabis, doobie, drugs, marijuana, roach, smoke, smoking, spliff</para> /// <para>Added in 5.1.0.</para> /// </summary> Joint = 0xf595, /// <summary> /// Journal Of The Whills (journal-whills) /// <para>Terms: book, force, jedi, sith, star wars, yoda</para> /// <para>Added in 5.11.0, updated in 5.3.0.</para> /// </summary> JournalWhills = 0xf66a, /// <summary> /// Kaaba (kaaba) /// <para>Terms: building, cube, islam, muslim</para> /// <para>Added in 5.3.0.</para> /// </summary> Kaaba = 0xf66b, /// <summary> /// Key (key) /// <para>Terms: lock, password, private, secret, unlock</para> /// <para>Added in 1.0.0, updated in 5.0.0 and 5.10.1.</para> /// </summary> Key = 0xf084, /// <summary> /// Keyboard (keyboard) /// <para>Styles: solid, regular</para> /// <para>Terms: accessory, edit, input, text, type, write</para> /// <para>Added in 3.1.0, updated in 5.0.0.</para> /// </summary> Keyboard = 0xf11c, /// <summary> /// Khanda (khanda) /// <para>Terms: chakkar, sikh, sikhism, sword</para> /// <para>Added in 5.3.0.</para> /// </summary> Khanda = 0xf66d, /// <summary> /// Kissing Face (kiss) /// <para>Styles: solid, regular</para> /// <para>Terms: beso, emoticon, face, love, smooch</para> /// <para>Added in 5.1.0, updated in 5.1.1, 5.11.0 and 5.11.1.</para> /// </summary> Kiss = 0xf596, /// <summary> /// Kissing Face With Smiling Eyes (kiss-beam) /// <para>Styles: solid, regular</para> /// <para>Terms: beso, emoticon, face, love, smooch</para> /// <para>Added in 5.1.0, updated in 5.11.0 and 5.11.1.</para> /// </summary> KissBeam = 0xf597, /// <summary> /// Face Blowing A Kiss (kiss-wink-heart) /// <para>Styles: solid, regular</para> /// <para>Terms: beso, emoticon, face, love, smooch</para> /// <para>Added in 5.1.0, updated in 5.11.0 and 5.11.1.</para> /// </summary> KissWinkHeart = 0xf598, /// <summary> /// Kiwi Bird (kiwi-bird) /// <para>Terms: bird, fauna, new zealand</para> /// <para>Added in 5.0.13.</para> /// </summary> KiwiBird = 0xf535, /// <summary> /// Landmark (landmark) /// <para>Terms: building, historic, memorable, monument, politics</para> /// <para>Added in 5.3.0.</para> /// </summary> Landmark = 0xf66f, /// <summary> /// Language (language) /// <para>Terms: dialect, idiom, localize, speech, translate, vernacular</para> /// <para>Added in 4.1.0, updated in 5.0.0 and 5.10.2.</para> /// </summary> Language = 0xf1ab, /// <summary> /// Laptop (laptop) /// <para>Terms: computer, cpu, dell, demo, device, mac, macbook, machine, pc</para> /// <para>Added in 3.0.0, updated in 5.0.0 and 5.2.0.</para> /// </summary> Laptop = 0xf109, /// <summary> /// Laptop Code (laptop-code) /// <para>Terms: computer, cpu, dell, demo, develop, device, mac, macbook, machine, pc</para> /// <para>Added in 5.2.0.</para> /// </summary> LaptopCode = 0xf5fc, /// <summary> /// Laptop House (laptop-house) /// <para>Terms: computer, covid-19, device, office, remote, work from home</para> /// <para>Added in 5.13.0, updated in 5.14.0.</para> /// </summary> LaptopHouse = 0xe066, /// <summary> /// Laptop Medical (laptop-medical) /// <para>Terms: computer, device, ehr, electronic health records, history</para> /// <para>Added in 5.7.0.</para> /// </summary> LaptopMedical = 0xf812, /// <summary> /// Grinning Face With Big Eyes (laugh) /// <para>Styles: solid, regular</para> /// <para>Terms: LOL, emoticon, face, laugh, smile</para> /// <para>Added in 5.1.0, updated in 5.11.0 and 5.11.1.</para> /// </summary> Laugh = 0xf599, /// <summary> /// Laugh Face With Beaming Eyes (laugh-beam) /// <para>Styles: solid, regular</para> /// <para>Terms: LOL, emoticon, face, happy, smile</para> /// <para>Added in 5.1.0, updated in 5.11.0 and 5.11.1.</para> /// </summary> LaughBeam = 0xf59a, /// <summary> /// Laughing Squinting Face (laugh-squint) /// <para>Styles: solid, regular</para> /// <para>Terms: LOL, emoticon, face, happy, smile</para> /// <para>Added in 5.1.0, updated in 5.11.0 and 5.11.1.</para> /// </summary> LaughSquint = 0xf59b, /// <summary> /// Laughing Winking Face (laugh-wink) /// <para>Styles: solid, regular</para> /// <para>Terms: LOL, emoticon, face, happy, smile</para> /// <para>Added in 5.1.0, updated in 5.11.0 and 5.11.1.</para> /// </summary> LaughWink = 0xf59c, /// <summary> /// Layer Group (layer-group) /// <para>Terms: arrange, develop, layers, map, stack</para> /// <para>Added in 5.2.0.</para> /// </summary> LayerGroup = 0xf5fd, /// <summary> /// Leaf (leaf) /// <para>Terms: eco, flora, nature, plant, vegan</para> /// <para>Added in 1.0.0, updated in 5.0.0 and 5.0.9.</para> /// </summary> Leaf = 0xf06c, /// <summary> /// Lemon (lemon) /// <para>Styles: solid, regular</para> /// <para>Terms: citrus, lemonade, lime, tart</para> /// <para>Added in 1.0.0, updated in 5.0.0.</para> /// </summary> Lemon = 0xf094, /// <summary> /// Less Than (less-than) /// <para>Terms: arithmetic, compare, math</para> /// <para>Added in 5.0.13.</para> /// </summary> LessThan = 0xf536, /// <summary> /// Less Than Equal To (less-than-equal) /// <para>Terms: arithmetic, compare, math</para> /// <para>Added in 5.0.13.</para> /// </summary> LessThanEqual = 0xf537, /// <summary> /// Alternate Level Down (level-down-alt) /// <para>Terms: arrow, level-down</para> /// <para>Added in 5.0.0.</para> /// </summary> LevelDownAlt = 0xf3be, /// <summary> /// Alternate Level Up (level-up-alt) /// <para>Terms: arrow, level-up</para> /// <para>Added in 5.0.0.</para> /// </summary> LevelUpAlt = 0xf3bf, /// <summary> /// Life Ring (life-ring) /// <para>Styles: solid, regular</para> /// <para>Terms: coast guard, help, overboard, save, support</para> /// <para>Added in 4.1.0, updated in 5.0.0.</para> /// </summary> LifeRing = 0xf1cd, /// <summary> /// Lightbulb (lightbulb) /// <para>Styles: solid, regular</para> /// <para>Terms: energy, idea, inspiration, light</para> /// <para>Added in 3.0.0, updated in 5.0.0 and 5.3.0.</para> /// </summary> Lightbulb = 0xf0eb, /// <summary> /// Link (link) /// <para>Terms: attach, attachment, chain, connect</para> /// <para>Added in 2.0.0, updated in 5.0.0.</para> /// </summary> Link = 0xf0c1, /// <summary> /// Turkish Lira Sign (lira-sign) /// <para>Terms: currency, money, try, turkish</para> /// <para>Added in 4.0.0, updated in 5.0.0.</para> /// </summary> LiraSign = 0xf195, /// <summary> /// List (list) /// <para>Terms: checklist, completed, done, finished, ol, todo, ul</para> /// <para>Added in 1.0.0, updated in 5.0.0 and 5.9.0.</para> /// </summary> List = 0xf03a, /// <summary> /// Alternate List (list-alt) /// <para>Styles: solid, regular</para> /// <para>Terms: checklist, completed, done, finished, ol, todo, ul</para> /// <para>Added in 1.0.0, updated in 5.0.0.</para> /// </summary> ListAlt = 0xf022, /// <summary> /// List-Ol (list-ol) /// <para>Terms: checklist, completed, done, finished, numbers, ol, todo, ul</para> /// <para>Added in 2.0.0, updated in 5.0.0 and 5.9.0.</para> /// </summary> ListOl = 0xf0cb, /// <summary> /// List-Ul (list-ul) /// <para>Terms: checklist, completed, done, finished, ol, todo, ul</para> /// <para>Added in 2.0.0, updated in 5.0.0 and 5.9.0.</para> /// </summary> ListUl = 0xf0ca, /// <summary> /// Location-Arrow (location-arrow) /// <para>Terms: address, compass, coordinate, direction, gps, map, navigation, place</para> /// <para>Added in 3.1.0, updated in 5.0.0.</para> /// </summary> LocationArrow = 0xf124, /// <summary> /// Lock (lock) /// <para>Terms: admin, lock, open, password, private, protect, security</para> /// <para>Added in 1.0.0, updated in 5.0.0.</para> /// </summary> Lock = 0xf023, /// <summary> /// Lock Open (lock-open) /// <para>Terms: admin, lock, open, password, private, protect, security</para> /// <para>Added in 3.1.0, updated in 5.0.0 and 5.0.1.</para> /// </summary> LockOpen = 0xf3c1, /// <summary> /// Alternate Long Arrow Down (long-arrow-alt-down) /// <para>Terms: download, long-arrow-down</para> /// <para>Added in 5.0.0.</para> /// </summary> LongArrowAltDown = 0xf309, /// <summary> /// Alternate Long Arrow Left (long-arrow-alt-left) /// <para>Terms: back, long-arrow-left, previous</para> /// <para>Added in 5.0.0.</para> /// </summary> LongArrowAltLeft = 0xf30a, /// <summary> /// Alternate Long Arrow Right (long-arrow-alt-right) /// <para>Terms: forward, long-arrow-right, next</para> /// <para>Added in 5.0.0.</para> /// </summary> LongArrowAltRight = 0xf30b, /// <summary> /// Alternate Long Arrow Up (long-arrow-alt-up) /// <para>Terms: long-arrow-up, upload</para> /// <para>Added in 5.0.0.</para> /// </summary> LongArrowAltUp = 0xf30c, /// <summary> /// Low Vision (low-vision) /// <para>Terms: blind, eye, sight</para> /// <para>Added in 4.6.0, updated in 5.0.0.</para> /// </summary> LowVision = 0xf2a8, /// <summary> /// Luggage Cart (luggage-cart) /// <para>Terms: bag, baggage, suitcase, travel</para> /// <para>Added in 5.1.0.</para> /// </summary> LuggageCart = 0xf59d, /// <summary> /// Lungs (lungs) /// <para>Terms: air, breath, covid-19, organ, respiratory</para> /// <para>Added in 5.2.0.</para> /// </summary> Lungs = 0xf604, /// <summary> /// Lungs Virus (lungs-virus) /// <para>Terms: breath, covid-19, respiratory, sick</para> /// <para>Added in 5.13.0, updated in 5.14.0.</para> /// </summary> LungsVirus = 0xe067, /// <summary> /// Magic (magic) /// <para>Terms: autocomplete, automatic, mage, magic, spell, wand, witch, wizard</para> /// <para>Added in 2.0.0, updated in 5.0.0 and 5.1.0.</para> /// </summary> Magic = 0xf0d0, /// <summary> /// Magnet (magnet) /// <para>Terms: Attract, lodestone, tool</para> /// <para>Added in 1.0.0, updated in 5.0.0 and 5.8.0.</para> /// </summary> Magnet = 0xf076, /// <summary> /// Mail Bulk (mail-bulk) /// <para>Terms: archive, envelope, letter, post office, postal, postcard, send, stamp, usps</para> /// <para>Added in 5.3.0.</para> /// </summary> MailBulk = 0xf674, /// <summary> /// Male (male) /// <para>Terms: human, man, person, profile, user</para> /// <para>Added in 3.2.0, updated in 5.0.0.</para> /// </summary> Male = 0xf183, /// <summary> /// Map (map) /// <para>Styles: solid, regular</para> /// <para>Terms: address, coordinates, destination, gps, localize, location, map, navigation, paper, pin, place, point of interest, position, route, travel</para> /// <para>Added in 4.4.0, updated in 5.0.0 and 5.1.0.</para> /// </summary> Map = 0xf279, /// <summary> /// Map Marked (map-marked) /// <para>Terms: address, coordinates, destination, gps, localize, location, map, navigation, paper, pin, place, point of interest, position, route, travel</para> /// <para>Added in 5.1.0.</para> /// </summary> MapMarked = 0xf59f, /// <summary> /// Alternate Map Marked (map-marked-alt) /// <para>Terms: address, coordinates, destination, gps, localize, location, map, navigation, paper, pin, place, point of interest, position, route, travel</para> /// <para>Added in 5.1.0.</para> /// </summary> MapMarkedAlt = 0xf5a0, /// <summary> /// Map-Marker (map-marker) /// <para>Terms: address, coordinates, destination, gps, localize, location, map, navigation, paper, pin, place, point of interest, position, route, travel</para> /// <para>Added in 1.0.0, updated in 5.0.0.</para> /// </summary> MapMarker = 0xf041, /// <summary> /// Alternate Map Marker (map-marker-alt) /// <para>Terms: address, coordinates, destination, gps, localize, location, map, navigation, paper, pin, place, point of interest, position, route, travel</para> /// <para>Added in 5.0.0.</para> /// </summary> MapMarkerAlt = 0xf3c5, /// <summary> /// Map Pin (map-pin) /// <para>Terms: address, agree, coordinates, destination, gps, localize, location, map, marker, navigation, pin, place, position, travel</para> /// <para>Added in 4.4.0, updated in 5.0.0 and 5.2.0.</para> /// </summary> MapPin = 0xf276, /// <summary> /// Map Signs (map-signs) /// <para>Terms: directions, directory, map, signage, wayfinding</para> /// <para>Added in 4.4.0, updated in 5.0.0 and 5.2.0.</para> /// </summary> MapSigns = 0xf277, /// <summary> /// Marker (marker) /// <para>Terms: design, edit, sharpie, update, write</para> /// <para>Added in 5.1.0.</para> /// </summary> Marker = 0xf5a1, /// <summary> /// Mars (mars) /// <para>Terms: male</para> /// <para>Added in 4.3.0, updated in 5.0.0.</para> /// </summary> Mars = 0xf222, /// <summary> /// Mars Double (mars-double) /// <para>Added in 4.3.0, updated in 5.0.0.</para> /// </summary> MarsDouble = 0xf227, /// <summary> /// Mars Stroke (mars-stroke) /// <para>Added in 4.3.0, updated in 5.0.0.</para> /// </summary> MarsStroke = 0xf229, /// <summary> /// Mars Stroke Horizontal (mars-stroke-h) /// <para>Added in 4.3.0, updated in 5.0.0 and 5.11.0.</para> /// </summary> MarsStrokeH = 0xf22b, /// <summary> /// Mars Stroke Vertical (mars-stroke-v) /// <para>Added in 4.3.0, updated in 5.0.0 and 5.11.0.</para> /// </summary> MarsStrokeV = 0xf22a, /// <summary> /// Mask (mask) /// <para>Terms: carnivale, costume, disguise, halloween, secret, super hero</para> /// <para>Added in 5.10.1, updated in 5.4.0.</para> /// </summary> Mask = 0xf6fa, /// <summary> /// Medal (medal) /// <para>Terms: award, ribbon, star, trophy</para> /// <para>Added in 5.1.0.</para> /// </summary> Medal = 0xf5a2, /// <summary> /// Medkit (medkit) /// <para>Terms: first aid, firstaid, health, help, support</para> /// <para>Added in 3.0.0, updated in 5.0.0.</para> /// </summary> Medkit = 0xf0fa, /// <summary> /// Neutral Face (meh) /// <para>Styles: solid, regular</para> /// <para>Terms: emoticon, face, neutral, rating</para> /// <para>Added in 3.1.0, updated in 5.0.0, 5.0.9, 5.1.0, 5.11.0 and 5.11.1.</para> /// </summary> Meh = 0xf11a, /// <summary> /// Face Without Mouth (meh-blank) /// <para>Styles: solid, regular</para> /// <para>Terms: emoticon, face, neutral, rating</para> /// <para>Added in 5.1.0, updated in 5.11.0 and 5.11.1.</para> /// </summary> MehBlank = 0xf5a4, /// <summary> /// Face With Rolling Eyes (meh-rolling-eyes) /// <para>Styles: solid, regular</para> /// <para>Terms: emoticon, face, neutral, rating</para> /// <para>Added in 5.1.0, updated in 5.11.0 and 5.11.1.</para> /// </summary> MehRollingEyes = 0xf5a5, /// <summary> /// Memory (memory) /// <para>Terms: DIMM, RAM, hardware, storage, technology</para> /// <para>Added in 5.0.13.</para> /// </summary> Memory = 0xf538, /// <summary> /// Menorah (menorah) /// <para>Terms: candle, hanukkah, jewish, judaism, light</para> /// <para>Added in 5.3.0, updated in 5.4.0.</para> /// </summary> Menorah = 0xf676, /// <summary> /// Mercury (mercury) /// <para>Terms: transgender</para> /// <para>Added in 4.3.0, updated in 5.0.0 and 5.11.0.</para> /// </summary> Mercury = 0xf223, /// <summary> /// Meteor (meteor) /// <para>Terms: armageddon, asteroid, comet, shooting star, space</para> /// <para>Added in 5.12.0, updated in 5.5.0.</para> /// </summary> Meteor = 0xf753, /// <summary> /// Microchip (microchip) /// <para>Terms: cpu, hardware, processor, technology</para> /// <para>Added in 4.7.0, updated in 5.0.0.</para> /// </summary> Microchip = 0xf2db, /// <summary> /// Microphone (microphone) /// <para>Terms: audio, podcast, record, sing, sound, voice</para> /// <para>Added in 3.1.0, updated in 5.0.0 and 5.0.13.</para> /// </summary> Microphone = 0xf130, /// <summary> /// Alternate Microphone (microphone-alt) /// <para>Terms: audio, podcast, record, sing, sound, voice</para> /// <para>Added in 5.0.0, updated in 5.0.13.</para> /// </summary> MicrophoneAlt = 0xf3c9, /// <summary> /// Alternate Microphone Slash (microphone-alt-slash) /// <para>Terms: audio, disable, mute, podcast, record, sing, sound, voice</para> /// <para>Added in 5.0.13.</para> /// </summary> MicrophoneAltSlash = 0xf539, /// <summary> /// Microphone Slash (microphone-slash) /// <para>Terms: audio, disable, mute, podcast, record, sing, sound, voice</para> /// <para>Added in 3.1.0, updated in 5.0.0 and 5.0.13.</para> /// </summary> MicrophoneSlash = 0xf131, /// <summary> /// Microscope (microscope) /// <para>Terms: covid-19, electron, lens, optics, science, shrink</para> /// <para>Added in 5.2.0.</para> /// </summary> Microscope = 0xf610, /// <summary> /// Minus (minus) /// <para>Terms: collapse, delete, hide, minify, negative, remove, trash</para> /// <para>Added in 1.0.0, updated in 5.0.0.</para> /// </summary> Minus = 0xf068, /// <summary> /// Minus Circle (minus-circle) /// <para>Terms: delete, hide, negative, remove, shape, trash</para> /// <para>Added in 1.0.0, updated in 5.0.0 and 5.10.2.</para> /// </summary> MinusCircle = 0xf056, /// <summary> /// Minus Square (minus-square) /// <para>Styles: solid, regular</para> /// <para>Terms: collapse, delete, hide, minify, negative, remove, shape, trash</para> /// <para>Added in 3.1.0, updated in 5.0.0.</para> /// </summary> MinusSquare = 0xf146, /// <summary> /// Mitten (mitten) /// <para>Terms: clothing, cold, glove, hands, knitted, seasonal, warmth</para> /// <para>Added in 5.6.0.</para> /// </summary> Mitten = 0xf7b5, /// <summary> /// Mobile Phone (mobile) /// <para>Terms: apple, call, cell phone, cellphone, device, iphone, number, screen, telephone</para> /// <para>Added in 3.0.0, updated in 5.0.0.</para> /// </summary> Mobile = 0xf10b, /// <summary> /// Alternate Mobile (mobile-alt) /// <para>Terms: apple, call, cell phone, cellphone, device, iphone, number, screen, telephone</para> /// <para>Added in 5.0.0.</para> /// </summary> MobileAlt = 0xf3cd, /// <summary> /// Money Bill (money-bill) /// <para>Terms: buy, cash, checkout, money, payment, price, purchase</para> /// <para>Added in 2.0.0, updated in 5.0.0 and 5.0.13.</para> /// </summary> MoneyBill = 0xf0d6, /// <summary> /// Alternate Money Bill (money-bill-alt) /// <para>Styles: solid, regular</para> /// <para>Terms: buy, cash, checkout, money, payment, price, purchase</para> /// <para>Added in 5.0.0, updated in 5.0.13.</para> /// </summary> MoneyBillAlt = 0xf3d1, /// <summary> /// Wavy Money Bill (money-bill-wave) /// <para>Terms: buy, cash, checkout, money, payment, price, purchase</para> /// <para>Added in 5.0.13.</para> /// </summary> MoneyBillWave = 0xf53a, /// <summary> /// Alternate Wavy Money Bill (money-bill-wave-alt) /// <para>Terms: buy, cash, checkout, money, payment, price, purchase</para> /// <para>Added in 5.0.13.</para> /// </summary> MoneyBillWaveAlt = 0xf53b, /// <summary> /// Money Check (money-check) /// <para>Terms: bank check, buy, checkout, cheque, money, payment, price, purchase</para> /// <para>Added in 5.0.13.</para> /// </summary> MoneyCheck = 0xf53c, /// <summary> /// Alternate Money Check (money-check-alt) /// <para>Terms: bank check, buy, checkout, cheque, money, payment, price, purchase</para> /// <para>Added in 5.0.13.</para> /// </summary> MoneyCheckAlt = 0xf53d, /// <summary> /// Monument (monument) /// <para>Terms: building, historic, landmark, memorable</para> /// <para>Added in 5.1.0.</para> /// </summary> Monument = 0xf5a6, /// <summary> /// Moon (moon) /// <para>Styles: solid, regular</para> /// <para>Terms: contrast, crescent, dark, lunar, night</para> /// <para>Added in 3.2.0, updated in 5.0.0, 5.11.0 and 5.11.1.</para> /// </summary> Moon = 0xf186, /// <summary> /// Mortar Pestle (mortar-pestle) /// <para>Terms: crush, culinary, grind, medical, mix, pharmacy, prescription, spices</para> /// <para>Added in 5.1.0.</para> /// </summary> MortarPestle = 0xf5a7, /// <summary> /// Mosque (mosque) /// <para>Terms: building, islam, landmark, muslim</para> /// <para>Added in 5.3.0.</para> /// </summary> Mosque = 0xf678, /// <summary> /// Motorcycle (motorcycle) /// <para>Terms: bike, machine, transportation, vehicle</para> /// <para>Added in 4.3.0, updated in 5.0.0.</para> /// </summary> Motorcycle = 0xf21c, /// <summary> /// Mountain (mountain) /// <para>Terms: glacier, hiking, hill, landscape, travel, view</para> /// <para>Added in 5.4.0.</para> /// </summary> Mountain = 0xf6fc, /// <summary> /// Mouse (mouse) /// <para>Terms: click, computer, cursor, input, peripheral</para> /// <para>Added in 5.11.0.</para> /// </summary> Mouse = 0xf8cc, /// <summary> /// Mouse Pointer (mouse-pointer) /// <para>Terms: arrow, cursor, select</para> /// <para>Added in 4.4.0, updated in 5.0.0 and 5.0.3.</para> /// </summary> MousePointer = 0xf245, /// <summary> /// Mug Hot (mug-hot) /// <para>Terms: caliente, cocoa, coffee, cup, drink, holiday, hot chocolate, steam, tea, warmth</para> /// <para>Added in 5.6.0.</para> /// </summary> MugHot = 0xf7b6, /// <summary> /// Music (music) /// <para>Terms: lyrics, melody, note, sing, sound</para> /// <para>Added in 1.0.0, updated in 5.0.0, 5.11.0 and 5.2.0.</para> /// </summary> Music = 0xf001, /// <summary> /// Wired Network (network-wired) /// <para>Terms: computer, connect, ethernet, internet, intranet</para> /// <para>Added in 5.4.0.</para> /// </summary> NetworkWired = 0xf6ff, /// <summary> /// Neuter (neuter) /// <para>Added in 4.3.0, updated in 5.0.0 and 5.11.0.</para> /// </summary> Neuter = 0xf22c, /// <summary> /// Newspaper (newspaper) /// <para>Styles: solid, regular</para> /// <para>Terms: article, editorial, headline, journal, journalism, news, press</para> /// <para>Added in 4.2.0, updated in 5.0.0.</para> /// </summary> Newspaper = 0xf1ea, /// <summary> /// Not Equal (not-equal) /// <para>Terms: arithmetic, compare, math</para> /// <para>Added in 5.0.13.</para> /// </summary> NotEqual = 0xf53e, /// <summary> /// Medical Notes (notes-medical) /// <para>Terms: clipboard, doctor, ehr, health, history, records</para> /// <para>Added in 5.0.7.</para> /// </summary> NotesMedical = 0xf481, /// <summary> /// Object Group (object-group) /// <para>Styles: solid, regular</para> /// <para>Terms: combine, copy, design, merge, select</para> /// <para>Added in 4.4.0, updated in 5.0.0 and 5.10.1.</para> /// </summary> ObjectGroup = 0xf247, /// <summary> /// Object Ungroup (object-ungroup) /// <para>Styles: solid, regular</para> /// <para>Terms: copy, design, merge, select, separate</para> /// <para>Added in 4.4.0, updated in 5.0.0 and 5.10.1.</para> /// </summary> ObjectUngroup = 0xf248, /// <summary> /// Oil Can (oil-can) /// <para>Terms: auto, crude, gasoline, grease, lubricate, petroleum</para> /// <para>Added in 5.10.1, updated in 5.2.0.</para> /// </summary> OilCan = 0xf613, /// <summary> /// Om (om) /// <para>Terms: buddhism, hinduism, jainism, mantra</para> /// <para>Added in 5.3.0.</para> /// </summary> Om = 0xf679, /// <summary> /// Otter (otter) /// <para>Terms: animal, badger, fauna, fur, mammal, marten</para> /// <para>Added in 5.4.0.</para> /// </summary> Otter = 0xf700, /// <summary> /// Outdent (outdent) /// <para>Terms: align, justify, paragraph, tab</para> /// <para>Added in 1.0.0, updated in 5.0.0 and 5.9.0.</para> /// </summary> Outdent = 0xf03b, /// <summary> /// Pager (pager) /// <para>Terms: beeper, cellphone, communication</para> /// <para>Added in 5.7.0.</para> /// </summary> Pager = 0xf815, /// <summary> /// Paint Brush (paint-brush) /// <para>Terms: acrylic, art, brush, color, fill, paint, pigment, watercolor</para> /// <para>Added in 4.2.0, updated in 5.0.0 and 5.1.0.</para> /// </summary> PaintBrush = 0xf1fc, /// <summary> /// Paint Roller (paint-roller) /// <para>Terms: acrylic, art, brush, color, fill, paint, pigment, watercolor</para> /// <para>Added in 5.1.0.</para> /// </summary> PaintRoller = 0xf5aa, /// <summary> /// Palette (palette) /// <para>Terms: acrylic, art, brush, color, fill, paint, pigment, watercolor</para> /// <para>Added in 5.0.13.</para> /// </summary> Palette = 0xf53f, /// <summary> /// Pallet (pallet) /// <para>Terms: archive, box, inventory, shipping, warehouse</para> /// <para>Added in 5.0.7.</para> /// </summary> Pallet = 0xf482, /// <summary> /// Paper Plane (paper-plane) /// <para>Styles: solid, regular</para> /// <para>Terms: air, float, fold, mail, paper, send</para> /// <para>Added in 4.1.0, updated in 5.0.0.</para> /// </summary> PaperPlane = 0xf1d8, /// <summary> /// Paperclip (paperclip) /// <para>Terms: attach, attachment, connect, link</para> /// <para>Added in 2.0.0, updated in 5.0.0.</para> /// </summary> Paperclip = 0xf0c6, /// <summary> /// Parachute Box (parachute-box) /// <para>Terms: aid, assistance, rescue, supplies</para> /// <para>Added in 5.0.9.</para> /// </summary> ParachuteBox = 0xf4cd, /// <summary> /// Paragraph (paragraph) /// <para>Terms: edit, format, text, writing</para> /// <para>Added in 4.1.0, updated in 5.0.0 and 5.9.0.</para> /// </summary> Paragraph = 0xf1dd, /// <summary> /// Parking (parking) /// <para>Terms: auto, car, garage, meter</para> /// <para>Added in 5.0.13.</para> /// </summary> Parking = 0xf540, /// <summary> /// Passport (passport) /// <para>Terms: document, id, identification, issued, travel</para> /// <para>Added in 5.1.0.</para> /// </summary> Passport = 0xf5ab, /// <summary> /// Pastafarianism (pastafarianism) /// <para>Terms: agnosticism, atheism, flying spaghetti monster, fsm</para> /// <para>Added in 5.3.0.</para> /// </summary> Pastafarianism = 0xf67b, /// <summary> /// Paste (paste) /// <para>Terms: clipboard, copy, document, paper</para> /// <para>Added in 2.0.0, updated in 5.0.0.</para> /// </summary> Paste = 0xf0ea, /// <summary> /// Pause (pause) /// <para>Terms: hold, wait</para> /// <para>Added in 1.0.0, updated in 5.0.0 and 5.10.2.</para> /// </summary> Pause = 0xf04c, /// <summary> /// Pause Circle (pause-circle) /// <para>Styles: solid, regular</para> /// <para>Terms: hold, wait</para> /// <para>Added in 4.5.0, updated in 5.0.0.</para> /// </summary> PauseCircle = 0xf28b, /// <summary> /// Paw (paw) /// <para>Terms: animal, cat, dog, pet, print</para> /// <para>Added in 4.1.0, updated in 5.0.0.</para> /// </summary> Paw = 0xf1b0, /// <summary> /// Peace (peace) /// <para>Terms: serenity, tranquility, truce, war</para> /// <para>Added in 5.11.0, updated in 5.11.1 and 5.3.0.</para> /// </summary> Peace = 0xf67c, /// <summary> /// Pen (pen) /// <para>Terms: design, edit, update, write</para> /// <para>Added in 5.0.0, updated in 5.1.0.</para> /// </summary> Pen = 0xf304, /// <summary> /// Alternate Pen (pen-alt) /// <para>Terms: design, edit, update, write</para> /// <para>Added in 5.0.0, updated in 5.1.0.</para> /// </summary> PenAlt = 0xf305, /// <summary> /// Pen Fancy (pen-fancy) /// <para>Terms: design, edit, fountain pen, update, write</para> /// <para>Added in 5.1.0.</para> /// </summary> PenFancy = 0xf5ac, /// <summary> /// Pen Nib (pen-nib) /// <para>Terms: design, edit, fountain pen, update, write</para> /// <para>Added in 5.1.0.</para> /// </summary> PenNib = 0xf5ad, /// <summary> /// Pen Square (pen-square) /// <para>Terms: edit, pencil-square, update, write</para> /// <para>Added in 3.1.0, updated in 5.0.0.</para> /// </summary> PenSquare = 0xf14b, /// <summary> /// Alternate Pencil (pencil-alt) /// <para>Terms: design, edit, pencil, update, write</para> /// <para>Added in 5.0.0.</para> /// </summary> PencilAlt = 0xf303, /// <summary> /// Pencil Ruler (pencil-ruler) /// <para>Terms: design, draft, draw, pencil</para> /// <para>Added in 5.1.0.</para> /// </summary> PencilRuler = 0xf5ae, /// <summary> /// People Arrows (people-arrows) /// <para>Terms: covid-19, personal space, social distance, space, spread, users</para> /// <para>Added in 5.13.0, updated in 5.14.0.</para> /// </summary> PeopleArrows = 0xe068, /// <summary> /// People Carry (people-carry) /// <para>Terms: box, carry, fragile, help, movers, package</para> /// <para>Added in 5.0.9.</para> /// </summary> PeopleCarry = 0xf4ce, /// <summary> /// Hot Pepper (pepper-hot) /// <para>Terms: buffalo wings, capsicum, chili, chilli, habanero, jalapeno, mexican, spicy, tabasco, vegetable</para> /// <para>Added in 5.7.0.</para> /// </summary> PepperHot = 0xf816, /// <summary> /// Percent (percent) /// <para>Terms: discount, fraction, proportion, rate, ratio</para> /// <para>Added in 4.5.0, updated in 5.0.0.</para> /// </summary> Percent = 0xf295, /// <summary> /// Percentage (percentage) /// <para>Terms: discount, fraction, proportion, rate, ratio</para> /// <para>Added in 5.0.13.</para> /// </summary> Percentage = 0xf541, /// <summary> /// Person Entering Booth (person-booth) /// <para>Terms: changing, changing room, election, human, person, vote, voting</para> /// <para>Added in 5.5.0.</para> /// </summary> PersonBooth = 0xf756, /// <summary> /// Phone (phone) /// <para>Terms: call, earphone, number, support, telephone, voice</para> /// <para>Added in 2.0.0, updated in 5.0.0, 5.10.1 and 5.10.2.</para> /// </summary> Phone = 0xf095, /// <summary> /// Alternate Phone (phone-alt) /// <para>Terms: call, earphone, number, support, telephone, voice</para> /// <para>Added in 5.10.1, updated in 5.10.2 and 5.9.0.</para> /// </summary> PhoneAlt = 0xf879, /// <summary> /// Phone Slash (phone-slash) /// <para>Terms: call, cancel, earphone, mute, number, support, telephone, voice</para> /// <para>Added in 5.0.0, updated in 5.0.9.</para> /// </summary> PhoneSlash = 0xf3dd, /// <summary> /// Phone Square (phone-square) /// <para>Terms: call, earphone, number, support, telephone, voice</para> /// <para>Added in 2.0.0, updated in 5.0.0.</para> /// </summary> PhoneSquare = 0xf098, /// <summary> /// Alternate Phone Square (phone-square-alt) /// <para>Terms: call, earphone, number, support, telephone, voice</para> /// <para>Added in 5.10.1, updated in 5.9.0.</para> /// </summary> PhoneSquareAlt = 0xf87b, /// <summary> /// Phone Volume (phone-volume) /// <para>Terms: call, earphone, number, sound, support, telephone, voice, volume-control-phone</para> /// <para>Added in 4.6.0, updated in 5.0.0, 5.0.3 and 5.7.0.</para> /// </summary> PhoneVolume = 0xf2a0, /// <summary> /// Photo Video (photo-video) /// <para>Terms: av, film, image, library, media</para> /// <para>Added in 5.9.0.</para> /// </summary> PhotoVideo = 0xf87c, /// <summary> /// Piggy Bank (piggy-bank) /// <para>Terms: bank, save, savings</para> /// <para>Added in 5.0.9, updated in 5.10.2.</para> /// </summary> PiggyBank = 0xf4d3, /// <summary> /// Pills (pills) /// <para>Terms: drugs, medicine, prescription, tablets</para> /// <para>Added in 5.0.7.</para> /// </summary> Pills = 0xf484, /// <summary> /// Pizza Slice (pizza-slice) /// <para>Terms: cheese, chicago, italian, mozzarella, new york, pepperoni, pie, slice, teenage mutant ninja turtles, tomato</para> /// <para>Added in 5.7.0.</para> /// </summary> PizzaSlice = 0xf818, /// <summary> /// Place Of Worship (place-of-worship) /// <para>Terms: building, church, holy, mosque, synagogue</para> /// <para>Added in 5.3.0.</para> /// </summary> PlaceOfWorship = 0xf67f, /// <summary> /// Plane (plane) /// <para>Terms: airplane, destination, fly, location, mode, travel, trip</para> /// <para>Added in 1.0.0, updated in 5.0.0 and 5.0.13.</para> /// </summary> Plane = 0xf072, /// <summary> /// Plane Arrival (plane-arrival) /// <para>Terms: airplane, arriving, destination, fly, land, landing, location, mode, travel, trip</para> /// <para>Added in 5.1.0.</para> /// </summary> PlaneArrival = 0xf5af, /// <summary> /// Plane Departure (plane-departure) /// <para>Terms: airplane, departing, destination, fly, location, mode, take off, taking off, travel, trip</para> /// <para>Added in 5.1.0, updated in 5.8.0.</para> /// </summary> PlaneDeparture = 0xf5b0, /// <summary> /// Plane Slash (plane-slash) /// <para>Terms: airplane mode, canceled, covid-19, delayed, grounded, travel</para> /// <para>Added in 5.13.0, updated in 5.14.0.</para> /// </summary> PlaneSlash = 0xe069, /// <summary> /// Play (play) /// <para>Terms: audio, music, playing, sound, start, video</para> /// <para>Added in 1.0.0, updated in 5.0.0 and 5.10.2.</para> /// </summary> Play = 0xf04b, /// <summary> /// Play Circle (play-circle) /// <para>Styles: solid, regular</para> /// <para>Terms: audio, music, playing, sound, start, video</para> /// <para>Added in 3.1.0, updated in 5.0.0 and 5.10.2.</para> /// </summary> PlayCircle = 0xf144, /// <summary> /// Plug (plug) /// <para>Terms: connect, electric, online, power</para> /// <para>Added in 4.2.0, updated in 5.0.0 and 5.12.0.</para> /// </summary> Plug = 0xf1e6, /// <summary> /// Plus (plus) /// <para>Terms: add, create, expand, new, positive, shape</para> /// <para>Added in 1.0.0, updated in 5.0.0 and 5.0.13.</para> /// </summary> Plus = 0xf067, /// <summary> /// Plus Circle (plus-circle) /// <para>Terms: add, create, expand, new, positive, shape</para> /// <para>Added in 1.0.0, updated in 5.0.0.</para> /// </summary> PlusCircle = 0xf055, /// <summary> /// Plus Square (plus-square) /// <para>Styles: solid, regular</para> /// <para>Terms: add, create, expand, new, positive, shape</para> /// <para>Added in 3.0.0, updated in 5.0.0.</para> /// </summary> PlusSquare = 0xf0fe, /// <summary> /// Podcast (podcast) /// <para>Terms: audio, broadcast, music, sound</para> /// <para>Added in 4.7.0, updated in 5.0.0.</para> /// </summary> Podcast = 0xf2ce, /// <summary> /// Poll (poll) /// <para>Terms: results, survey, trend, vote, voting</para> /// <para>Added in 5.10.1, updated in 5.3.0.</para> /// </summary> Poll = 0xf681, /// <summary> /// Poll H (poll-h) /// <para>Terms: results, survey, trend, vote, voting</para> /// <para>Added in 5.10.1, updated in 5.3.0.</para> /// </summary> PollH = 0xf682, /// <summary> /// Poo (poo) /// <para>Terms: crap, poop, shit, smile, turd</para> /// <para>Added in 5.0.0, updated in 5.0.9.</para> /// </summary> Poo = 0xf2fe, /// <summary> /// Poo Storm (poo-storm) /// <para>Terms: bolt, cloud, euphemism, lightning, mess, poop, shit, turd</para> /// <para>Added in 5.5.0.</para> /// </summary> PooStorm = 0xf75a, /// <summary> /// Poop (poop) /// <para>Terms: crap, poop, shit, smile, turd</para> /// <para>Added in 5.2.0.</para> /// </summary> Poop = 0xf619, /// <summary> /// Portrait (portrait) /// <para>Terms: id, image, photo, picture, selfie</para> /// <para>Added in 5.0.0, updated in 5.0.3.</para> /// </summary> Portrait = 0xf3e0, /// <summary> /// Pound Sign (pound-sign) /// <para>Terms: currency, gbp, money</para> /// <para>Added in 3.2.0, updated in 5.0.0.</para> /// </summary> PoundSign = 0xf154, /// <summary> /// Power Off (power-off) /// <para>Terms: cancel, computer, on, reboot, restart</para> /// <para>Added in 1.0.0, updated in 5.0.0.</para> /// </summary> PowerOff = 0xf011, /// <summary> /// Pray (pray) /// <para>Terms: kneel, preach, religion, worship</para> /// <para>Added in 5.3.0.</para> /// </summary> Pray = 0xf683, /// <summary> /// Praying Hands (praying-hands) /// <para>Terms: kneel, preach, religion, worship</para> /// <para>Added in 5.3.0.</para> /// </summary> PrayingHands = 0xf684, /// <summary> /// Prescription (prescription) /// <para>Terms: drugs, medical, medicine, pharmacy, rx</para> /// <para>Added in 5.1.0.</para> /// </summary> Prescription = 0xf5b1, /// <summary> /// Prescription Bottle (prescription-bottle) /// <para>Terms: drugs, medical, medicine, pharmacy, rx</para> /// <para>Added in 5.0.7.</para> /// </summary> PrescriptionBottle = 0xf485, /// <summary> /// Alternate Prescription Bottle (prescription-bottle-alt) /// <para>Terms: drugs, medical, medicine, pharmacy, rx</para> /// <para>Added in 5.0.7.</para> /// </summary> PrescriptionBottleAlt = 0xf486, /// <summary> /// Print (print) /// <para>Terms: business, copy, document, office, paper</para> /// <para>Added in 1.0.0, updated in 5.0.0, 5.11.0 and 5.3.0.</para> /// </summary> Print = 0xf02f, /// <summary> /// Procedures (procedures) /// <para>Terms: EKG, bed, electrocardiogram, health, hospital, life, patient, vital</para> /// <para>Added in 5.0.7.</para> /// </summary> Procedures = 0xf487, /// <summary> /// Project Diagram (project-diagram) /// <para>Terms: chart, graph, network, pert</para> /// <para>Added in 5.0.13.</para> /// </summary> ProjectDiagram = 0xf542, /// <summary> /// Pump Medical (pump-medical) /// <para>Terms: anti-bacterial, clean, covid-19, disinfect, hygiene, medical grade, sanitizer, soap</para> /// <para>Added in 5.13.0, updated in 5.14.0.</para> /// </summary> PumpMedical = 0xe06a, /// <summary> /// Pump Soap (pump-soap) /// <para>Terms: anti-bacterial, clean, covid-19, disinfect, hygiene, sanitizer, soap</para> /// <para>Added in 5.13.0, updated in 5.14.0.</para> /// </summary> PumpSoap = 0xe06b, /// <summary> /// Puzzle Piece (puzzle-piece) /// <para>Terms: add-on, addon, game, section</para> /// <para>Added in 3.1.0, updated in 5.0.0.</para> /// </summary> PuzzlePiece = 0xf12e, /// <summary> /// Qrcode (qrcode) /// <para>Terms: barcode, info, information, scan</para> /// <para>Added in 1.0.0, updated in 5.0.0 and 5.10.1.</para> /// </summary> Qrcode = 0xf029, /// <summary> /// Question (question) /// <para>Terms: help, information, support, unknown</para> /// <para>Added in 3.1.0, updated in 5.0.0.</para> /// </summary> Question = 0xf128, /// <summary> /// Question Circle (question-circle) /// <para>Styles: solid, regular</para> /// <para>Terms: help, information, support, unknown</para> /// <para>Added in 1.0.0, updated in 5.0.0.</para> /// </summary> QuestionCircle = 0xf059, /// <summary> /// Quidditch (quidditch) /// <para>Terms: ball, bludger, broom, golden snitch, harry potter, hogwarts, quaffle, sport, wizard</para> /// <para>Added in 5.0.5.</para> /// </summary> Quidditch = 0xf458, /// <summary> /// Quote-Left (quote-left) /// <para>Terms: mention, note, phrase, text, type</para> /// <para>Added in 3.0.0, updated in 5.0.0 and 5.0.9.</para> /// </summary> QuoteLeft = 0xf10d, /// <summary> /// Quote-Right (quote-right) /// <para>Terms: mention, note, phrase, text, type</para> /// <para>Added in 3.0.0, updated in 5.0.0 and 5.0.9.</para> /// </summary> QuoteRight = 0xf10e, /// <summary> /// Quran (quran) /// <para>Terms: book, islam, muslim, religion</para> /// <para>Added in 5.3.0.</para> /// </summary> Quran = 0xf687, /// <summary> /// Radiation (radiation) /// <para>Terms: danger, dangerous, deadly, hazard, nuclear, radioactive, warning</para> /// <para>Added in 5.11.0, updated in 5.11.1, 5.6.0 and 5.8.2.</para> /// </summary> Radiation = 0xf7b9, /// <summary> /// Alternate Radiation (radiation-alt) /// <para>Terms: danger, dangerous, deadly, hazard, nuclear, radioactive, warning</para> /// <para>Added in 5.11.0, updated in 5.11.1, 5.6.0 and 5.8.2.</para> /// </summary> RadiationAlt = 0xf7ba, /// <summary> /// Rainbow (rainbow) /// <para>Terms: gold, leprechaun, prism, rain, sky</para> /// <para>Added in 5.10.1, updated in 5.5.0.</para> /// </summary> Rainbow = 0xf75b, /// <summary> /// Random (random) /// <para>Terms: arrows, shuffle, sort, swap, switch, transfer</para> /// <para>Added in 1.0.0, updated in 5.0.0.</para> /// </summary> Random = 0xf074, /// <summary> /// Receipt (receipt) /// <para>Terms: check, invoice, money, pay, table</para> /// <para>Added in 5.0.13.</para> /// </summary> Receipt = 0xf543, /// <summary> /// Record Vinyl (record-vinyl) /// <para>Terms: LP, album, analog, music, phonograph, sound</para> /// <para>Added in 5.11.0.</para> /// </summary> RecordVinyl = 0xf8d9, /// <summary> /// Recycle (recycle) /// <para>Terms: Waste, compost, garbage, reuse, trash</para> /// <para>Added in 4.1.0, updated in 5.0.0.</para> /// </summary> Recycle = 0xf1b8, /// <summary> /// Redo (redo) /// <para>Terms: forward, refresh, reload, repeat</para> /// <para>Added in 1.0.0, updated in 5.0.0 and 5.8.0.</para> /// </summary> Redo = 0xf01e, /// <summary> /// Alternate Redo (redo-alt) /// <para>Terms: forward, refresh, reload, repeat</para> /// <para>Added in 5.0.0.</para> /// </summary> RedoAlt = 0xf2f9, /// <summary> /// Registered Trademark (registered) /// <para>Styles: solid, regular</para> /// <para>Terms: copyright, mark, trademark</para> /// <para>Added in 4.4.0, updated in 5.0.0 and 5.10.1.</para> /// </summary> Registered = 0xf25d, /// <summary> /// Remove Format (remove-format) /// <para>Terms: cancel, font, format, remove, style, text</para> /// <para>Added in 5.9.0.</para> /// </summary> RemoveFormat = 0xf87d, /// <summary> /// Reply (reply) /// <para>Terms: mail, message, respond</para> /// <para>Added in 3.0.0, updated in 5.0.0.</para> /// </summary> Reply = 0xf3e5, /// <summary> /// Reply-All (reply-all) /// <para>Terms: mail, message, respond</para> /// <para>Added in 3.1.0, updated in 5.0.0.</para> /// </summary> ReplyAll = 0xf122, /// <summary> /// Republican (republican) /// <para>Terms: american, conservative, election, elephant, politics, republican party, right, right-wing, usa</para> /// <para>Added in 5.5.0.</para> /// </summary> Republican = 0xf75e, /// <summary> /// Restroom (restroom) /// <para>Terms: bathroom, john, loo, potty, washroom, waste, wc</para> /// <para>Added in 5.6.0.</para> /// </summary> Restroom = 0xf7bd, /// <summary> /// Retweet (retweet) /// <para>Terms: refresh, reload, share, swap</para> /// <para>Added in 1.0.0, updated in 5.0.0.</para> /// </summary> Retweet = 0xf079, /// <summary> /// Ribbon (ribbon) /// <para>Terms: badge, cause, lapel, pin</para> /// <para>Added in 5.0.9.</para> /// </summary> Ribbon = 0xf4d6, /// <summary> /// Ring (ring) /// <para>Terms: Dungeons &amp; Dragons, Gollum, band, binding, d&amp;d, dnd, engagement, fantasy, gold, jewelry, marriage, precious</para> /// <para>Added in 5.4.0.</para> /// </summary> Ring = 0xf70b, /// <summary> /// Road (road) /// <para>Terms: highway, map, pavement, route, street, travel</para> /// <para>Added in 1.0.0, updated in 5.0.0 and 5.2.0.</para> /// </summary> Road = 0xf018, /// <summary> /// Robot (robot) /// <para>Terms: android, automate, computer, cyborg</para> /// <para>Added in 5.0.13, updated in 5.12.0.</para> /// </summary> Robot = 0xf544, /// <summary> /// Rocket (rocket) /// <para>Terms: aircraft, app, jet, launch, nasa, space</para> /// <para>Added in 3.1.0, updated in 5.0.0, 5.12.0 and 5.7.0.</para> /// </summary> Rocket = 0xf135, /// <summary> /// Route (route) /// <para>Terms: directions, navigation, travel</para> /// <para>Added in 5.0.9, updated in 5.2.0.</para> /// </summary> Route = 0xf4d7, /// <summary> /// Rss (rss) /// <para>Terms: blog, feed, journal, news, writing</para> /// <para>Added in 2.0.0, updated in 5.0.0.</para> /// </summary> Rss = 0xf09e, /// <summary> /// RSS Square (rss-square) /// <para>Terms: blog, feed, journal, news, writing</para> /// <para>Added in 3.1.0, updated in 5.0.0.</para> /// </summary> RssSquare = 0xf143, /// <summary> /// Ruble Sign (ruble-sign) /// <para>Terms: currency, money, rub</para> /// <para>Added in 4.0.0, updated in 5.0.0.</para> /// </summary> RubleSign = 0xf158, /// <summary> /// Ruler (ruler) /// <para>Terms: design, draft, length, measure, planning</para> /// <para>Added in 5.0.13.</para> /// </summary> Ruler = 0xf545, /// <summary> /// Ruler Combined (ruler-combined) /// <para>Terms: design, draft, length, measure, planning</para> /// <para>Added in 5.0.13.</para> /// </summary> RulerCombined = 0xf546, /// <summary> /// Ruler Horizontal (ruler-horizontal) /// <para>Terms: design, draft, length, measure, planning</para> /// <para>Added in 5.0.13.</para> /// </summary> RulerHorizontal = 0xf547, /// <summary> /// Ruler Vertical (ruler-vertical) /// <para>Terms: design, draft, length, measure, planning</para> /// <para>Added in 5.0.13.</para> /// </summary> RulerVertical = 0xf548, /// <summary> /// Running (running) /// <para>Terms: exercise, health, jog, person, run, sport, sprint</para> /// <para>Added in 5.11.0, updated in 5.4.0.</para> /// </summary> Running = 0xf70c, /// <summary> /// Indian Rupee Sign (rupee-sign) /// <para>Terms: currency, indian, inr, money</para> /// <para>Added in 3.2.0, updated in 5.0.0.</para> /// </summary> RupeeSign = 0xf156, /// <summary> /// Crying Face (sad-cry) /// <para>Styles: solid, regular</para> /// <para>Terms: emoticon, face, tear, tears</para> /// <para>Added in 5.1.0, updated in 5.11.0 and 5.11.1.</para> /// </summary> SadCry = 0xf5b3, /// <summary> /// Loudly Crying Face (sad-tear) /// <para>Styles: solid, regular</para> /// <para>Terms: emoticon, face, tear, tears</para> /// <para>Added in 5.1.0, updated in 5.11.0 and 5.11.1.</para> /// </summary> SadTear = 0xf5b4, /// <summary> /// Satellite (satellite) /// <para>Terms: communications, hardware, orbit, space</para> /// <para>Added in 5.10.1, updated in 5.12.0 and 5.6.0.</para> /// </summary> Satellite = 0xf7bf, /// <summary> /// Satellite Dish (satellite-dish) /// <para>Terms: SETI, communications, hardware, receiver, saucer, signal, space</para> /// <para>Added in 5.12.0, updated in 5.6.0.</para> /// </summary> SatelliteDish = 0xf7c0, /// <summary> /// Save (save) /// <para>Styles: solid, regular</para> /// <para>Terms: disk, download, floppy, floppy-o</para> /// <para>Added in 2.0.0, updated in 5.0.0 and 5.10.2.</para> /// </summary> Save = 0xf0c7, /// <summary> /// School (school) /// <para>Terms: building, education, learn, student, teacher</para> /// <para>Added in 5.0.13.</para> /// </summary> School = 0xf549, /// <summary> /// Screwdriver (screwdriver) /// <para>Terms: admin, fix, mechanic, repair, settings, tool</para> /// <para>Added in 5.0.13.</para> /// </summary> Screwdriver = 0xf54a, /// <summary> /// Scroll (scroll) /// <para>Terms: Dungeons &amp; Dragons, announcement, d&amp;d, dnd, fantasy, paper, script</para> /// <para>Added in 5.10.2, updated in 5.4.0.</para> /// </summary> Scroll = 0xf70e, /// <summary> /// Sd Card (sd-card) /// <para>Terms: image, memory, photo, save</para> /// <para>Added in 5.6.0.</para> /// </summary> SdCard = 0xf7c2, /// <summary> /// Search (search) /// <para>Terms: bigger, enlarge, find, magnify, preview, zoom</para> /// <para>Added in 1.0.0, updated in 5.0.0.</para> /// </summary> Search = 0xf002, /// <summary> /// Search Dollar (search-dollar) /// <para>Terms: bigger, enlarge, find, magnify, money, preview, zoom</para> /// <para>Added in 5.3.0.</para> /// </summary> SearchDollar = 0xf688, /// <summary> /// Search Location (search-location) /// <para>Terms: bigger, enlarge, find, magnify, preview, zoom</para> /// <para>Added in 5.3.0.</para> /// </summary> SearchLocation = 0xf689, /// <summary> /// Search Minus (search-minus) /// <para>Terms: minify, negative, smaller, zoom, zoom out</para> /// <para>Added in 1.0.0, updated in 5.0.0 and 5.0.13.</para> /// </summary> SearchMinus = 0xf010, /// <summary> /// Search Plus (search-plus) /// <para>Terms: bigger, enlarge, magnify, positive, zoom, zoom in</para> /// <para>Added in 1.0.0, updated in 5.0.0.</para> /// </summary> SearchPlus = 0xf00e, /// <summary> /// Seedling (seedling) /// <para>Terms: flora, grow, plant, vegan</para> /// <para>Added in 5.0.9.</para> /// </summary> Seedling = 0xf4d8, /// <summary> /// Server (server) /// <para>Terms: computer, cpu, database, hardware, network</para> /// <para>Added in 4.3.0, updated in 5.0.0.</para> /// </summary> Server = 0xf233, /// <summary> /// Shapes (shapes) /// <para>Terms: blocks, build, circle, square, triangle</para> /// <para>Added in 5.12.0, updated in 5.2.0.</para> /// </summary> Shapes = 0xf61f, /// <summary> /// Share (share) /// <para>Terms: forward, save, send, social</para> /// <para>Added in 1.0.0, updated in 5.0.0.</para> /// </summary> Share = 0xf064, /// <summary> /// Alternate Share (share-alt) /// <para>Terms: forward, save, send, social</para> /// <para>Added in 4.1.0, updated in 5.0.0.</para> /// </summary> ShareAlt = 0xf1e0, /// <summary> /// Alternate Share Square (share-alt-square) /// <para>Terms: forward, save, send, social</para> /// <para>Added in 4.1.0, updated in 5.0.0.</para> /// </summary> ShareAltSquare = 0xf1e1, /// <summary> /// Share Square (share-square) /// <para>Styles: solid, regular</para> /// <para>Terms: forward, save, send, social</para> /// <para>Added in 3.1.0, updated in 5.0.0.</para> /// </summary> ShareSquare = 0xf14d, /// <summary> /// Shekel Sign (shekel-sign) /// <para>Terms: currency, ils, money</para> /// <para>Added in 4.2.0, updated in 5.0.0.</para> /// </summary> ShekelSign = 0xf20b, /// <summary> /// Alternate Shield (shield-alt) /// <para>Terms: achievement, award, block, defend, security, winner</para> /// <para>Added in 5.0.0.</para> /// </summary> ShieldAlt = 0xf3ed, /// <summary> /// Shield Virus (shield-virus) /// <para>Terms: antibodies, barrier, covid-19, health, protect</para> /// <para>Added in 5.13.0, updated in 5.14.0.</para> /// </summary> ShieldVirus = 0xe06c, /// <summary> /// Ship (ship) /// <para>Terms: boat, sea, water</para> /// <para>Added in 4.3.0, updated in 5.0.0, 5.10.2, 5.11.0 and 5.11.1.</para> /// </summary> Ship = 0xf21a, /// <summary> /// Shipping Fast (shipping-fast) /// <para>Terms: express, fedex, mail, overnight, package, ups</para> /// <para>Added in 5.0.7.</para> /// </summary> ShippingFast = 0xf48b, /// <summary> /// Shoe Prints (shoe-prints) /// <para>Terms: feet, footprints, steps, walk</para> /// <para>Added in 5.0.13.</para> /// </summary> ShoePrints = 0xf54b, /// <summary> /// Shopping Bag (shopping-bag) /// <para>Terms: buy, checkout, grocery, payment, purchase</para> /// <para>Added in 4.5.0, updated in 5.0.0.</para> /// </summary> ShoppingBag = 0xf290, /// <summary> /// Shopping Basket (shopping-basket) /// <para>Terms: buy, checkout, grocery, payment, purchase</para> /// <para>Added in 4.5.0, updated in 5.0.0.</para> /// </summary> ShoppingBasket = 0xf291, /// <summary> /// Shopping-Cart (shopping-cart) /// <para>Terms: buy, checkout, grocery, payment, purchase</para> /// <para>Added in 1.0.0, updated in 5.0.0.</para> /// </summary> ShoppingCart = 0xf07a, /// <summary> /// Shower (shower) /// <para>Terms: bath, clean, faucet, water</para> /// <para>Added in 4.7.0, updated in 5.0.0 and 5.12.0.</para> /// </summary> Shower = 0xf2cc, /// <summary> /// Shuttle Van (shuttle-van) /// <para>Terms: airport, machine, public-transportation, transportation, travel, vehicle</para> /// <para>Added in 5.1.0.</para> /// </summary> ShuttleVan = 0xf5b6, /// <summary> /// Sign (sign) /// <para>Terms: directions, real estate, signage, wayfinding</para> /// <para>Added in 5.0.9.</para> /// </summary> Sign = 0xf4d9, /// <summary> /// Alternate Sign In (sign-in-alt) /// <para>Terms: arrow, enter, join, log in, login, sign in, sign up, sign-in, signin, signup</para> /// <para>Added in 5.0.0.</para> /// </summary> SignInAlt = 0xf2f6, /// <summary> /// Sign Language (sign-language) /// <para>Terms: Translate, asl, deaf, hands</para> /// <para>Added in 4.6.0, updated in 5.0.0 and 5.10.2.</para> /// </summary> SignLanguage = 0xf2a7, /// <summary> /// Alternate Sign Out (sign-out-alt) /// <para>Terms: arrow, exit, leave, log out, logout, sign-out</para> /// <para>Added in 5.0.0.</para> /// </summary> SignOutAlt = 0xf2f5, /// <summary> /// Signal (signal) /// <para>Terms: bars, graph, online, reception, status</para> /// <para>Added in 1.0.0, updated in 5.0.0, 5.10.1 and 5.3.0.</para> /// </summary> Signal = 0xf012, /// <summary> /// Signature (signature) /// <para>Terms: John Hancock, cursive, name, writing</para> /// <para>Added in 5.1.0, updated in 5.6.0.</para> /// </summary> Signature = 0xf5b7, /// <summary> /// SIM Card (sim-card) /// <para>Terms: hard drive, hardware, portable, storage, technology, tiny</para> /// <para>Added in 5.10.2, updated in 5.6.0 and 5.8.2.</para> /// </summary> SimCard = 0xf7c4, /// <summary> /// Sink (sink) /// <para>Terms: bathroom, covid-19, faucet, kitchen, wash</para> /// <para>Added in 5.13.0, updated in 5.13.1 and 5.14.0.</para> /// </summary> Sink = 0xe06d, /// <summary> /// Sitemap (sitemap) /// <para>Terms: directory, hierarchy, ia, information architecture, organization</para> /// <para>Added in 2.0.0, updated in 5.0.0 and 5.0.13.</para> /// </summary> Sitemap = 0xf0e8, /// <summary> /// Skating (skating) /// <para>Terms: activity, figure skating, fitness, ice, person, winter</para> /// <para>Added in 5.6.0.</para> /// </summary> Skating = 0xf7c5, /// <summary> /// Skiing (skiing) /// <para>Terms: activity, downhill, fast, fitness, olympics, outdoors, person, seasonal, slalom</para> /// <para>Added in 5.6.0.</para> /// </summary> Skiing = 0xf7c9, /// <summary> /// Skiing Nordic (skiing-nordic) /// <para>Terms: activity, cross country, fitness, outdoors, person, seasonal</para> /// <para>Added in 5.6.0.</para> /// </summary> SkiingNordic = 0xf7ca, /// <summary> /// Skull (skull) /// <para>Terms: bones, skeleton, x-ray, yorick</para> /// <para>Added in 5.0.13, updated in 5.10.2.</para> /// </summary> Skull = 0xf54c, /// <summary> /// Skull &amp; Crossbones (skull-crossbones) /// <para>Terms: Dungeons &amp; Dragons, alert, bones, d&amp;d, danger, dead, deadly, death, dnd, fantasy, halloween, holiday, jolly-roger, pirate, poison, skeleton, warning</para> /// <para>Added in 5.10.2, updated in 5.4.0.</para> /// </summary> SkullCrossbones = 0xf714, /// <summary> /// Slash (slash) /// <para>Terms: cancel, close, mute, off, stop, x</para> /// <para>Added in 5.4.0.</para> /// </summary> Slash = 0xf715, /// <summary> /// Sleigh (sleigh) /// <para>Terms: christmas, claus, fly, holiday, santa, sled, snow, xmas</para> /// <para>Added in 5.6.0.</para> /// </summary> Sleigh = 0xf7cc, /// <summary> /// Horizontal Sliders (sliders-h) /// <para>Terms: adjust, settings, sliders, toggle</para> /// <para>Added in 4.1.0, updated in 5.0.0 and 5.0.11.</para> /// </summary> SlidersH = 0xf1de, /// <summary> /// Smiling Face (smile) /// <para>Styles: solid, regular</para> /// <para>Terms: approve, emoticon, face, happy, rating, satisfied</para> /// <para>Added in 3.1.0, updated in 5.0.0, 5.0.9, 5.1.0, 5.11.0 and 5.11.1.</para> /// </summary> Smile = 0xf118, /// <summary> /// Beaming Face With Smiling Eyes (smile-beam) /// <para>Styles: solid, regular</para> /// <para>Terms: emoticon, face, happy, positive</para> /// <para>Added in 5.1.0, updated in 5.11.0 and 5.11.1.</para> /// </summary> SmileBeam = 0xf5b8, /// <summary> /// Winking Face (smile-wink) /// <para>Styles: solid, regular</para> /// <para>Terms: emoticon, face, happy, hint, joke</para> /// <para>Added in 5.1.0, updated in 5.11.0 and 5.11.1.</para> /// </summary> SmileWink = 0xf4da, /// <summary> /// Smog (smog) /// <para>Terms: dragon, fog, haze, pollution, smoke, weather</para> /// <para>Added in 5.5.0.</para> /// </summary> Smog = 0xf75f, /// <summary> /// Smoking (smoking) /// <para>Terms: cancer, cigarette, nicotine, smoking status, tobacco</para> /// <para>Added in 5.0.7.</para> /// </summary> Smoking = 0xf48d, /// <summary> /// Smoking Ban (smoking-ban) /// <para>Terms: ban, cancel, no smoking, non-smoking</para> /// <para>Added in 5.0.13.</para> /// </summary> SmokingBan = 0xf54d, /// <summary> /// SMS (sms) /// <para>Terms: chat, conversation, message, mobile, notification, phone, sms, texting</para> /// <para>Added in 5.6.0.</para> /// </summary> Sms = 0xf7cd, /// <summary> /// Snowboarding (snowboarding) /// <para>Terms: activity, fitness, olympics, outdoors, person</para> /// <para>Added in 5.6.0.</para> /// </summary> Snowboarding = 0xf7ce, /// <summary> /// Snowflake (snowflake) /// <para>Styles: solid, regular</para> /// <para>Terms: precipitation, rain, winter</para> /// <para>Added in 4.7.0, updated in 5.0.0 and 5.5.0.</para> /// </summary> Snowflake = 0xf2dc, /// <summary> /// Snowman (snowman) /// <para>Terms: decoration, frost, frosty, holiday</para> /// <para>Added in 5.6.0.</para> /// </summary> Snowman = 0xf7d0, /// <summary> /// Snowplow (snowplow) /// <para>Terms: clean up, cold, road, storm, winter</para> /// <para>Added in 5.6.0.</para> /// </summary> Snowplow = 0xf7d2, /// <summary> /// Soap (soap) /// <para>Terms: bubbles, clean, covid-19, hygiene, wash</para> /// <para>Added in 5.13.0, updated in 5.14.0.</para> /// </summary> Soap = 0xe06e, /// <summary> /// Socks (socks) /// <para>Terms: business socks, business time, clothing, feet, flight of the conchords, wednesday</para> /// <para>Added in 5.10.2, updated in 5.3.0.</para> /// </summary> Socks = 0xf696, /// <summary> /// Solar Panel (solar-panel) /// <para>Terms: clean, eco-friendly, energy, green, sun</para> /// <para>Added in 5.1.0.</para> /// </summary> SolarPanel = 0xf5ba, /// <summary> /// Sort (sort) /// <para>Terms: filter, order</para> /// <para>Added in 2.0.0, updated in 5.0.0 and 5.10.2.</para> /// </summary> Sort = 0xf0dc, /// <summary> /// Sort Alphabetical Down (sort-alpha-down) /// <para>Terms: alphabetical, arrange, filter, order, sort-alpha-asc</para> /// <para>Added in 3.2.0, updated in 5.0.0 and 5.9.0.</para> /// </summary> SortAlphaDown = 0xf15d, /// <summary> /// Alternate Sort Alphabetical Down (sort-alpha-down-alt) /// <para>Terms: alphabetical, arrange, filter, order, sort-alpha-asc</para> /// <para>Added in 5.9.0.</para> /// </summary> SortAlphaDownAlt = 0xf881, /// <summary> /// Sort Alphabetical Up (sort-alpha-up) /// <para>Terms: alphabetical, arrange, filter, order, sort-alpha-desc</para> /// <para>Added in 3.2.0, updated in 5.0.0 and 5.9.0.</para> /// </summary> SortAlphaUp = 0xf15e, /// <summary> /// Alternate Sort Alphabetical Up (sort-alpha-up-alt) /// <para>Terms: alphabetical, arrange, filter, order, sort-alpha-desc</para> /// <para>Added in 5.9.0.</para> /// </summary> SortAlphaUpAlt = 0xf882, /// <summary> /// Sort Amount Down (sort-amount-down) /// <para>Terms: arrange, filter, number, order, sort-amount-asc</para> /// <para>Added in 3.2.0, updated in 5.0.0 and 5.9.0.</para> /// </summary> SortAmountDown = 0xf160, /// <summary> /// Alternate Sort Amount Down (sort-amount-down-alt) /// <para>Terms: arrange, filter, order, sort-amount-asc</para> /// <para>Added in 5.9.0.</para> /// </summary> SortAmountDownAlt = 0xf884, /// <summary> /// Sort Amount Up (sort-amount-up) /// <para>Terms: arrange, filter, order, sort-amount-desc</para> /// <para>Added in 3.2.0, updated in 5.0.0 and 5.9.0.</para> /// </summary> SortAmountUp = 0xf161, /// <summary> /// Alternate Sort Amount Up (sort-amount-up-alt) /// <para>Terms: arrange, filter, order, sort-amount-desc</para> /// <para>Added in 5.9.0.</para> /// </summary> SortAmountUpAlt = 0xf885, /// <summary> /// Sort Down (Descending) (sort-down) /// <para>Terms: arrow, descending, filter, order, sort-desc</para> /// <para>Added in 2.0.0, updated in 5.0.0, 5.10.1 and 5.10.2.</para> /// </summary> SortDown = 0xf0dd, /// <summary> /// Sort Numeric Down (sort-numeric-down) /// <para>Terms: arrange, filter, numbers, order, sort-numeric-asc</para> /// <para>Added in 3.2.0, updated in 5.0.0 and 5.9.0.</para> /// </summary> SortNumericDown = 0xf162, /// <summary> /// Alternate Sort Numeric Down (sort-numeric-down-alt) /// <para>Terms: arrange, filter, numbers, order, sort-numeric-asc</para> /// <para>Added in 5.9.0.</para> /// </summary> SortNumericDownAlt = 0xf886, /// <summary> /// Sort Numeric Up (sort-numeric-up) /// <para>Terms: arrange, filter, numbers, order, sort-numeric-desc</para> /// <para>Added in 3.2.0, updated in 5.0.0 and 5.9.0.</para> /// </summary> SortNumericUp = 0xf163, /// <summary> /// Alternate Sort Numeric Up (sort-numeric-up-alt) /// <para>Terms: arrange, filter, numbers, order, sort-numeric-desc</para> /// <para>Added in 5.9.0.</para> /// </summary> SortNumericUpAlt = 0xf887, /// <summary> /// Sort Up (Ascending) (sort-up) /// <para>Terms: arrow, ascending, filter, order, sort-asc</para> /// <para>Added in 2.0.0, updated in 5.0.0, 5.10.1 and 5.10.2.</para> /// </summary> SortUp = 0xf0de, /// <summary> /// Spa (spa) /// <para>Terms: flora, massage, mindfulness, plant, wellness</para> /// <para>Added in 5.1.0.</para> /// </summary> Spa = 0xf5bb, /// <summary> /// Space Shuttle (space-shuttle) /// <para>Terms: astronaut, machine, nasa, rocket, space, transportation</para> /// <para>Added in 4.1.0, updated in 5.0.0 and 5.10.2.</para> /// </summary> SpaceShuttle = 0xf197, /// <summary> /// Spell Check (spell-check) /// <para>Terms: dictionary, edit, editor, grammar, text</para> /// <para>Added in 5.9.0.</para> /// </summary> SpellCheck = 0xf891, /// <summary> /// Spider (spider) /// <para>Terms: arachnid, bug, charlotte, crawl, eight, halloween</para> /// <para>Added in 5.4.0.</para> /// </summary> Spider = 0xf717, /// <summary> /// Spinner (spinner) /// <para>Terms: circle, loading, progress</para> /// <para>Added in 3.0.0, updated in 5.0.0 and 5.10.2.</para> /// </summary> Spinner = 0xf110, /// <summary> /// Splotch (splotch) /// <para>Terms: Ink, blob, blotch, glob, stain</para> /// <para>Added in 5.1.0.</para> /// </summary> Splotch = 0xf5bc, /// <summary> /// Spray Can (spray-can) /// <para>Terms: Paint, aerosol, design, graffiti, tag</para> /// <para>Added in 5.1.0.</para> /// </summary> SprayCan = 0xf5bd, /// <summary> /// Square (square) /// <para>Styles: solid, regular</para> /// <para>Terms: block, box, shape</para> /// <para>Added in 2.0.0, updated in 5.0.0, 5.10.1 and 5.10.2.</para> /// </summary> Square = 0xf0c8, /// <summary> /// Square Full (square-full) /// <para>Terms: block, box, shape</para> /// <para>Added in 5.0.5, updated in 5.10.2.</para> /// </summary> SquareFull = 0xf45c, /// <summary> /// Alternate Square Root (square-root-alt) /// <para>Terms: arithmetic, calculus, division, math</para> /// <para>Added in 5.3.0.</para> /// </summary> SquareRootAlt = 0xf698, /// <summary> /// Stamp (stamp) /// <para>Terms: art, certificate, imprint, rubber, seal</para> /// <para>Added in 5.1.0, updated in 5.10.2.</para> /// </summary> Stamp = 0xf5bf, /// <summary> /// Star (star) /// <para>Styles: solid, regular</para> /// <para>Terms: achievement, award, favorite, important, night, rating, score</para> /// <para>Added in 1.0.0, updated in 5.0.0 and 5.10.2.</para> /// </summary> Star = 0xf005, /// <summary> /// Star And Crescent (star-and-crescent) /// <para>Terms: islam, muslim, religion</para> /// <para>Added in 5.3.0.</para> /// </summary> StarAndCrescent = 0xf699, /// <summary> /// Star-Half (star-half) /// <para>Styles: solid, regular</para> /// <para>Terms: achievement, award, rating, score, star-half-empty, star-half-full</para> /// <para>Added in 1.0.0, updated in 5.0.0.</para> /// </summary> StarHalf = 0xf089, /// <summary> /// Alternate Star Half (star-half-alt) /// <para>Terms: achievement, award, rating, score, star-half-empty, star-half-full</para> /// <para>Added in 5.1.0, updated in 5.11.0 and 5.11.1.</para> /// </summary> StarHalfAlt = 0xf5c0, /// <summary> /// Star Of David (star-of-david) /// <para>Terms: jewish, judaism, religion</para> /// <para>Added in 5.11.0, updated in 5.11.1 and 5.3.0.</para> /// </summary> StarOfDavid = 0xf69a, /// <summary> /// Star Of Life (star-of-life) /// <para>Terms: doctor, emt, first aid, health, medical</para> /// <para>Added in 5.2.0.</para> /// </summary> StarOfLife = 0xf621, /// <summary> /// Step-Backward (step-backward) /// <para>Terms: beginning, first, previous, rewind, start</para> /// <para>Added in 1.0.0, updated in 5.0.0, 5.10.2, 5.11.0 and 5.11.1.</para> /// </summary> StepBackward = 0xf048, /// <summary> /// Step-Forward (step-forward) /// <para>Terms: end, last, next</para> /// <para>Added in 1.0.0, updated in 5.0.0, 5.10.2, 5.11.0 and 5.11.1.</para> /// </summary> StepForward = 0xf051, /// <summary> /// Stethoscope (stethoscope) /// <para>Terms: covid-19, diagnosis, doctor, general practitioner, hospital, infirmary, medicine, office, outpatient</para> /// <para>Added in 3.0.0, updated in 5.0.0 and 5.0.7.</para> /// </summary> Stethoscope = 0xf0f1, /// <summary> /// Sticky Note (sticky-note) /// <para>Styles: solid, regular</para> /// <para>Terms: message, note, paper, reminder, sticker</para> /// <para>Added in 4.4.0, updated in 5.0.0 and 5.10.2.</para> /// </summary> StickyNote = 0xf249, /// <summary> /// Stop (stop) /// <para>Terms: block, box, square</para> /// <para>Added in 1.0.0, updated in 5.0.0 and 5.10.2.</para> /// </summary> Stop = 0xf04d, /// <summary> /// Stop Circle (stop-circle) /// <para>Styles: solid, regular</para> /// <para>Terms: block, box, circle, square</para> /// <para>Added in 4.5.0, updated in 5.0.0.</para> /// </summary> StopCircle = 0xf28d, /// <summary> /// Stopwatch (stopwatch) /// <para>Terms: clock, reminder, time</para> /// <para>Added in 5.0.0, updated in 5.10.2.</para> /// </summary> Stopwatch = 0xf2f2, /// <summary> /// Stopwatch 20 (stopwatch-20) /// <para>Terms: ABCs, countdown, covid-19, happy birthday, i will survive, reminder, seconds, time, timer</para> /// <para>Added in 5.13.0, updated in 5.14.0.</para> /// </summary> Stopwatch20 = 0xe06f, /// <summary> /// Store (store) /// <para>Terms: building, buy, purchase, shopping</para> /// <para>Added in 5.0.13, updated in 5.11.0 and 5.11.1.</para> /// </summary> Store = 0xf54e, /// <summary> /// Alternate Store (store-alt) /// <para>Terms: building, buy, purchase, shopping</para> /// <para>Added in 5.0.13.</para> /// </summary> StoreAlt = 0xf54f, /// <summary> /// Alternate Store Slash (store-alt-slash) /// <para>Terms: building, buy, closed, covid-19, purchase, shopping</para> /// <para>Added in 5.13.0, updated in 5.14.0.</para> /// </summary> StoreAltSlash = 0xe070, /// <summary> /// Store Slash (store-slash) /// <para>Terms: building, buy, closed, covid-19, purchase, shopping</para> /// <para>Added in 5.13.0, updated in 5.14.0.</para> /// </summary> StoreSlash = 0xe071, /// <summary> /// Stream (stream) /// <para>Terms: flow, list, timeline</para> /// <para>Added in 5.0.13.</para> /// </summary> Stream = 0xf550, /// <summary> /// Street View (street-view) /// <para>Terms: directions, location, map, navigation</para> /// <para>Added in 4.3.0, updated in 5.0.0 and 5.2.0.</para> /// </summary> StreetView = 0xf21d, /// <summary> /// Strikethrough (strikethrough) /// <para>Terms: cancel, edit, font, format, text, type</para> /// <para>Added in 2.0.0, updated in 5.0.0 and 5.9.0.</para> /// </summary> Strikethrough = 0xf0cc, /// <summary> /// Stroopwafel (stroopwafel) /// <para>Terms: caramel, cookie, dessert, sweets, waffle</para> /// <para>Added in 5.0.13.</para> /// </summary> Stroopwafel = 0xf551, /// <summary> /// Subscript (subscript) /// <para>Terms: edit, font, format, text, type</para> /// <para>Added in 3.1.0, updated in 5.0.0, 5.10.2 and 5.9.0.</para> /// </summary> Subscript = 0xf12c, /// <summary> /// Subway (subway) /// <para>Terms: machine, railway, train, transportation, vehicle</para> /// <para>Added in 4.3.0, updated in 5.0.0.</para> /// </summary> Subway = 0xf239, /// <summary> /// Suitcase (suitcase) /// <para>Terms: baggage, luggage, move, suitcase, travel, trip</para> /// <para>Added in 3.0.0, updated in 5.0.0 and 5.0.9.</para> /// </summary> Suitcase = 0xf0f2, /// <summary> /// Suitcase Rolling (suitcase-rolling) /// <para>Terms: baggage, luggage, move, suitcase, travel, trip</para> /// <para>Added in 5.1.0, updated in 5.10.2.</para> /// </summary> SuitcaseRolling = 0xf5c1, /// <summary> /// Sun (sun) /// <para>Styles: solid, regular</para> /// <para>Terms: brighten, contrast, day, lighter, sol, solar, star, weather</para> /// <para>Added in 3.2.0, updated in 5.0.0 and 5.5.0.</para> /// </summary> Sun = 0xf185, /// <summary> /// Superscript (superscript) /// <para>Terms: edit, exponential, font, format, text, type</para> /// <para>Added in 3.1.0, updated in 5.0.0, 5.10.2 and 5.9.0.</para> /// </summary> Superscript = 0xf12b, /// <summary> /// Hushed Face (surprise) /// <para>Styles: solid, regular</para> /// <para>Terms: emoticon, face, shocked</para> /// <para>Added in 5.1.0, updated in 5.11.0 and 5.11.1.</para> /// </summary> Surprise = 0xf5c2, /// <summary> /// Swatchbook (swatchbook) /// <para>Terms: Pantone, color, design, hue, palette</para> /// <para>Added in 5.1.0, updated in 5.11.0 and 5.11.1.</para> /// </summary> Swatchbook = 0xf5c3, /// <summary> /// Swimmer (swimmer) /// <para>Terms: athlete, head, man, olympics, person, pool, water</para> /// <para>Added in 5.1.0.</para> /// </summary> Swimmer = 0xf5c4, /// <summary> /// Swimming Pool (swimming-pool) /// <para>Terms: ladder, recreation, swim, water</para> /// <para>Added in 5.1.0.</para> /// </summary> SwimmingPool = 0xf5c5, /// <summary> /// Synagogue (synagogue) /// <para>Terms: building, jewish, judaism, religion, star of david, temple</para> /// <para>Added in 5.3.0.</para> /// </summary> Synagogue = 0xf69b, /// <summary> /// Sync (sync) /// <para>Terms: exchange, refresh, reload, rotate, swap</para> /// <para>Added in 1.0.0, updated in 5.0.0 and 5.8.0.</para> /// </summary> Sync = 0xf021, /// <summary> /// Alternate Sync (sync-alt) /// <para>Terms: exchange, refresh, reload, rotate, swap</para> /// <para>Added in 5.0.0.</para> /// </summary> SyncAlt = 0xf2f1, /// <summary> /// Syringe (syringe) /// <para>Terms: covid-19, doctor, immunizations, medical, needle</para> /// <para>Added in 5.0.7.</para> /// </summary> Syringe = 0xf48e, /// <summary> /// Table (table) /// <para>Terms: data, excel, spreadsheet</para> /// <para>Added in 2.0.0, updated in 5.0.0.</para> /// </summary> Table = 0xf0ce, /// <summary> /// Table Tennis (table-tennis) /// <para>Terms: ball, paddle, ping pong</para> /// <para>Added in 5.0.5.</para> /// </summary> TableTennis = 0xf45d, /// <summary> /// Tablet (tablet) /// <para>Terms: apple, device, ipad, kindle, screen</para> /// <para>Added in 3.0.0, updated in 5.0.0.</para> /// </summary> Tablet = 0xf10a, /// <summary> /// Alternate Tablet (tablet-alt) /// <para>Terms: apple, device, ipad, kindle, screen</para> /// <para>Added in 5.0.0.</para> /// </summary> TabletAlt = 0xf3fa, /// <summary> /// Tablets (tablets) /// <para>Terms: drugs, medicine, pills, prescription</para> /// <para>Added in 5.0.7.</para> /// </summary> Tablets = 0xf490, /// <summary> /// Alternate Tachometer (tachometer-alt) /// <para>Terms: dashboard, fast, odometer, speed, speedometer</para> /// <para>Added in 5.0.0, updated in 5.2.0.</para> /// </summary> TachometerAlt = 0xf3fd, /// <summary> /// Tag (tag) /// <para>Terms: discount, label, price, shopping</para> /// <para>Added in 1.0.0, updated in 5.0.0.</para> /// </summary> Tag = 0xf02b, /// <summary> /// Tags (tags) /// <para>Terms: discount, label, price, shopping</para> /// <para>Added in 1.0.0, updated in 5.0.0 and 5.10.2.</para> /// </summary> Tags = 0xf02c, /// <summary> /// Tape (tape) /// <para>Terms: design, package, sticky</para> /// <para>Added in 5.0.9.</para> /// </summary> Tape = 0xf4db, /// <summary> /// Tasks (tasks) /// <para>Terms: checklist, downloading, downloads, loading, progress, project management, settings, to do</para> /// <para>Added in 2.0.0, updated in 5.0.0 and 5.9.0.</para> /// </summary> Tasks = 0xf0ae, /// <summary> /// Taxi (taxi) /// <para>Terms: cab, cabbie, car, car service, lyft, machine, transportation, travel, uber, vehicle</para> /// <para>Added in 4.1.0, updated in 5.0.0 and 5.1.0.</para> /// </summary> Taxi = 0xf1ba, /// <summary> /// Teeth (teeth) /// <para>Terms: bite, dental, dentist, gums, mouth, smile, tooth</para> /// <para>Added in 5.2.0.</para> /// </summary> Teeth = 0xf62e, /// <summary> /// Teeth Open (teeth-open) /// <para>Terms: dental, dentist, gums bite, mouth, smile, tooth</para> /// <para>Added in 5.2.0.</para> /// </summary> TeethOpen = 0xf62f, /// <summary> /// High Temperature (temperature-high) /// <para>Terms: cook, covid-19, mercury, summer, thermometer, warm</para> /// <para>Added in 5.5.0.</para> /// </summary> TemperatureHigh = 0xf769, /// <summary> /// Low Temperature (temperature-low) /// <para>Terms: cold, cool, covid-19, mercury, thermometer, winter</para> /// <para>Added in 5.5.0.</para> /// </summary> TemperatureLow = 0xf76b, /// <summary> /// Tenge (tenge) /// <para>Terms: currency, kazakhstan, money, price</para> /// <para>Added in 5.6.0.</para> /// </summary> Tenge = 0xf7d7, /// <summary> /// Terminal (terminal) /// <para>Terms: code, command, console, development, prompt</para> /// <para>Added in 3.1.0, updated in 5.0.0.</para> /// </summary> Terminal = 0xf120, /// <summary> /// Text-Height (text-height) /// <para>Terms: edit, font, format, text, type</para> /// <para>Added in 1.0.0, updated in 5.0.0, 5.10.2 and 5.9.0.</para> /// </summary> TextHeight = 0xf034, /// <summary> /// Text Width (text-width) /// <para>Terms: edit, font, format, text, type</para> /// <para>Added in 1.0.0, updated in 5.0.0, 5.10.2 and 5.9.0.</para> /// </summary> TextWidth = 0xf035, /// <summary> /// Th (th) /// <para>Terms: blocks, boxes, grid, squares</para> /// <para>Added in 1.0.0, updated in 5.0.0 and 5.7.0.</para> /// </summary> Th = 0xf00a, /// <summary> /// Th-Large (th-large) /// <para>Terms: blocks, boxes, grid, squares</para> /// <para>Added in 1.0.0, updated in 5.0.0.</para> /// </summary> ThLarge = 0xf009, /// <summary> /// Th-List (th-list) /// <para>Terms: checklist, completed, done, finished, ol, todo, ul</para> /// <para>Added in 1.0.0, updated in 5.0.0.</para> /// </summary> ThList = 0xf00b, /// <summary> /// Theater Masks (theater-masks) /// <para>Terms: comedy, perform, theatre, tragedy</para> /// <para>Added in 5.10.2, updated in 5.2.0.</para> /// </summary> TheaterMasks = 0xf630, /// <summary> /// Thermometer (thermometer) /// <para>Terms: covid-19, mercury, status, temperature</para> /// <para>Added in 5.0.7.</para> /// </summary> Thermometer = 0xf491, /// <summary> /// Thermometer Empty (thermometer-empty) /// <para>Terms: cold, mercury, status, temperature</para> /// <para>Added in 4.7.0, updated in 5.0.0.</para> /// </summary> ThermometerEmpty = 0xf2cb, /// <summary> /// Thermometer Full (thermometer-full) /// <para>Terms: fever, hot, mercury, status, temperature</para> /// <para>Added in 4.7.0, updated in 5.0.0.</para> /// </summary> ThermometerFull = 0xf2c7, /// <summary> /// Thermometer 1/2 Full (thermometer-half) /// <para>Terms: mercury, status, temperature</para> /// <para>Added in 4.7.0, updated in 5.0.0.</para> /// </summary> ThermometerHalf = 0xf2c9, /// <summary> /// Thermometer 1/4 Full (thermometer-quarter) /// <para>Terms: mercury, status, temperature</para> /// <para>Added in 4.7.0, updated in 5.0.0.</para> /// </summary> ThermometerQuarter = 0xf2ca, /// <summary> /// Thermometer 3/4 Full (thermometer-three-quarters) /// <para>Terms: mercury, status, temperature</para> /// <para>Added in 4.7.0, updated in 5.0.0.</para> /// </summary> ThermometerThreeQuarters = 0xf2c8, /// <summary> /// Thumbs-Down (thumbs-down) /// <para>Styles: solid, regular</para> /// <para>Terms: disagree, disapprove, dislike, hand, social, thumbs-o-down</para> /// <para>Added in 3.2.0, updated in 5.0.0 and 5.10.2.</para> /// </summary> ThumbsDown = 0xf165, /// <summary> /// Thumbs-Up (thumbs-up) /// <para>Styles: solid, regular</para> /// <para>Terms: agree, approve, favorite, hand, like, ok, okay, social, success, thumbs-o-up, yes, you got it dude</para> /// <para>Added in 3.2.0, updated in 5.0.0 and 5.10.2.</para> /// </summary> ThumbsUp = 0xf164, /// <summary> /// Thumbtack (thumbtack) /// <para>Terms: coordinates, location, marker, pin, thumb-tack</para> /// <para>Added in 1.0.0, updated in 5.0.0 and 5.10.2.</para> /// </summary> Thumbtack = 0xf08d, /// <summary> /// Alternate Ticket (ticket-alt) /// <para>Terms: movie, pass, support, ticket</para> /// <para>Added in 5.0.0, updated in 5.10.2.</para> /// </summary> TicketAlt = 0xf3ff, /// <summary> /// Times (times) /// <para>Terms: close, cross, error, exit, incorrect, notice, notification, notify, problem, wrong, x</para> /// <para>Added in 1.0.0, updated in 5.0.0, 5.0.13, 5.11.0 and 5.11.1.</para> /// </summary> Times = 0xf00d, /// <summary> /// Times Circle (times-circle) /// <para>Styles: solid, regular</para> /// <para>Terms: close, cross, exit, incorrect, notice, notification, notify, problem, wrong, x</para> /// <para>Added in 1.0.0, updated in 5.0.0.</para> /// </summary> TimesCircle = 0xf057, /// <summary> /// Tint (tint) /// <para>Terms: color, drop, droplet, raindrop, waterdrop</para> /// <para>Added in 1.0.0, updated in 5.0.0 and 5.1.0.</para> /// </summary> Tint = 0xf043, /// <summary> /// Tint Slash (tint-slash) /// <para>Terms: color, drop, droplet, raindrop, waterdrop</para> /// <para>Added in 5.1.0.</para> /// </summary> TintSlash = 0xf5c7, /// <summary> /// Tired Face (tired) /// <para>Styles: solid, regular</para> /// <para>Terms: angry, emoticon, face, grumpy, upset</para> /// <para>Added in 5.1.0, updated in 5.11.0 and 5.11.1.</para> /// </summary> Tired = 0xf5c8, /// <summary> /// Toggle Off (toggle-off) /// <para>Terms: switch</para> /// <para>Added in 4.2.0, updated in 5.0.0.</para> /// </summary> ToggleOff = 0xf204, /// <summary> /// Toggle On (toggle-on) /// <para>Terms: switch</para> /// <para>Added in 4.2.0, updated in 5.0.0.</para> /// </summary> ToggleOn = 0xf205, /// <summary> /// Toilet (toilet) /// <para>Terms: bathroom, flush, john, loo, pee, plumbing, poop, porcelain, potty, restroom, throne, washroom, waste, wc</para> /// <para>Added in 5.6.0.</para> /// </summary> Toilet = 0xf7d8, /// <summary> /// Toilet Paper (toilet-paper) /// <para>Terms: bathroom, covid-19, halloween, holiday, lavatory, prank, restroom, roll</para> /// <para>Added in 5.10.2, updated in 5.4.0.</para> /// </summary> ToiletPaper = 0xf71e, /// <summary> /// Toilet Paper Slash (toilet-paper-slash) /// <para>Terms: bathroom, covid-19, halloween, holiday, lavatory, leaves, prank, restroom, roll, trouble, ut oh</para> /// <para>Added in 5.13.0, updated in 5.14.0.</para> /// </summary> ToiletPaperSlash = 0xe072, /// <summary> /// Toolbox (toolbox) /// <para>Terms: admin, container, fix, repair, settings, tools</para> /// <para>Added in 5.0.13.</para> /// </summary> Toolbox = 0xf552, /// <summary> /// Tools (tools) /// <para>Terms: admin, fix, repair, screwdriver, settings, tools, wrench</para> /// <para>Added in 5.10.2, updated in 5.6.0.</para> /// </summary> Tools = 0xf7d9, /// <summary> /// Tooth (tooth) /// <para>Terms: bicuspid, dental, dentist, molar, mouth, teeth</para> /// <para>Added in 5.1.0.</para> /// </summary> Tooth = 0xf5c9, /// <summary> /// Torah (torah) /// <para>Terms: book, jewish, judaism, religion, scroll</para> /// <para>Added in 5.10.2, updated in 5.3.0, 5.7.0 and 5.9.0.</para> /// </summary> Torah = 0xf6a0, /// <summary> /// Torii Gate (torii-gate) /// <para>Terms: building, shintoism</para> /// <para>Added in 5.3.0.</para> /// </summary> ToriiGate = 0xf6a1, /// <summary> /// Tractor (tractor) /// <para>Terms: agriculture, farm, vehicle</para> /// <para>Added in 5.4.0.</para> /// </summary> Tractor = 0xf722, /// <summary> /// Trademark (trademark) /// <para>Terms: copyright, register, symbol</para> /// <para>Added in 4.4.0, updated in 5.0.0.</para> /// </summary> Trademark = 0xf25c, /// <summary> /// Traffic Light (traffic-light) /// <para>Terms: direction, road, signal, travel</para> /// <para>Added in 5.2.0.</para> /// </summary> TrafficLight = 0xf637, /// <summary> /// Trailer (trailer) /// <para>Terms: carry, haul, moving, travel</para> /// <para>Added in 5.12.0, updated in 5.14.0.</para> /// </summary> Trailer = 0xe041, /// <summary> /// Train (train) /// <para>Terms: bullet, commute, locomotive, railway, subway</para> /// <para>Added in 4.3.0, updated in 5.0.0.</para> /// </summary> Train = 0xf238, /// <summary> /// Tram (tram) /// <para>Terms: crossing, machine, mountains, seasonal, transportation</para> /// <para>Added in 5.6.0.</para> /// </summary> Tram = 0xf7da, /// <summary> /// Transgender (transgender) /// <para>Terms: intersex</para> /// <para>Added in 4.3.0, updated in 5.0.0.</para> /// </summary> Transgender = 0xf224, /// <summary> /// Alternate Transgender (transgender-alt) /// <para>Terms: intersex</para> /// <para>Added in 4.3.0, updated in 5.0.0 and 5.11.0.</para> /// </summary> TransgenderAlt = 0xf225, /// <summary> /// Trash (trash) /// <para>Terms: delete, garbage, hide, remove</para> /// <para>Added in 4.2.0, updated in 5.0.0, 5.10.2 and 5.7.0.</para> /// </summary> Trash = 0xf1f8, /// <summary> /// Alternate Trash (trash-alt) /// <para>Styles: solid, regular</para> /// <para>Terms: delete, garbage, hide, remove, trash-o</para> /// <para>Added in 5.0.0, updated in 5.10.2 and 5.7.0.</para> /// </summary> TrashAlt = 0xf2ed, /// <summary> /// Trash Restore (trash-restore) /// <para>Terms: back, control z, oops, undo</para> /// <para>Added in 5.10.2, updated in 5.7.0.</para> /// </summary> TrashRestore = 0xf829, /// <summary> /// Alternative Trash Restore (trash-restore-alt) /// <para>Terms: back, control z, oops, undo</para> /// <para>Added in 5.10.2, updated in 5.7.0.</para> /// </summary> TrashRestoreAlt = 0xf82a, /// <summary> /// Tree (tree) /// <para>Terms: bark, fall, flora, forest, nature, plant, seasonal</para> /// <para>Added in 4.1.0, updated in 5.0.0.</para> /// </summary> Tree = 0xf1bb, /// <summary> /// Trophy (trophy) /// <para>Terms: achievement, award, cup, game, winner</para> /// <para>Added in 1.0.0, updated in 5.0.0 and 5.11.0.</para> /// </summary> Trophy = 0xf091, /// <summary> /// Truck (truck) /// <para>Terms: cargo, delivery, shipping, vehicle</para> /// <para>Added in 2.0.0, updated in 5.0.0 and 5.0.7.</para> /// </summary> Truck = 0xf0d1, /// <summary> /// Truck Loading (truck-loading) /// <para>Terms: box, cargo, delivery, inventory, moving, rental, vehicle</para> /// <para>Added in 5.0.9.</para> /// </summary> TruckLoading = 0xf4de, /// <summary> /// Truck Monster (truck-monster) /// <para>Terms: offroad, vehicle, wheel</para> /// <para>Added in 5.2.0.</para> /// </summary> TruckMonster = 0xf63b, /// <summary> /// Truck Moving (truck-moving) /// <para>Terms: cargo, inventory, rental, vehicle</para> /// <para>Added in 5.0.9.</para> /// </summary> TruckMoving = 0xf4df, /// <summary> /// Truck Side (truck-pickup) /// <para>Terms: cargo, vehicle</para> /// <para>Added in 5.2.0.</para> /// </summary> TruckPickup = 0xf63c, /// <summary> /// T-Shirt (tshirt) /// <para>Terms: clothing, fashion, garment, shirt</para> /// <para>Added in 5.0.13, updated in 5.10.2.</para> /// </summary> Tshirt = 0xf553, /// <summary> /// TTY (tty) /// <para>Terms: communication, deaf, telephone, teletypewriter, text</para> /// <para>Added in 4.2.0, updated in 5.0.0 and 5.7.0.</para> /// </summary> Tty = 0xf1e4, /// <summary> /// Television (tv) /// <para>Terms: computer, display, monitor, television</para> /// <para>Added in 4.4.0, updated in 5.0.0 and 5.11.0.</para> /// </summary> Tv = 0xf26c, /// <summary> /// Umbrella (umbrella) /// <para>Terms: protection, rain, storm, wet</para> /// <para>Added in 2.0.0, updated in 5.0.0.</para> /// </summary> Umbrella = 0xf0e9, /// <summary> /// Umbrella Beach (umbrella-beach) /// <para>Terms: protection, recreation, sand, shade, summer, sun</para> /// <para>Added in 5.1.0.</para> /// </summary> UmbrellaBeach = 0xf5ca, /// <summary> /// Underline (underline) /// <para>Terms: edit, emphasis, format, text, writing</para> /// <para>Added in 2.0.0, updated in 5.0.0 and 5.9.0.</para> /// </summary> Underline = 0xf0cd, /// <summary> /// Undo (undo) /// <para>Terms: back, control z, exchange, oops, return, rotate, swap</para> /// <para>Added in 2.0.0, updated in 5.0.0.</para> /// </summary> Undo = 0xf0e2, /// <summary> /// Alternate Undo (undo-alt) /// <para>Terms: back, control z, exchange, oops, return, swap</para> /// <para>Added in 5.0.0.</para> /// </summary> UndoAlt = 0xf2ea, /// <summary> /// Universal Access (universal-access) /// <para>Terms: accessibility, hearing, person, seeing, visual impairment</para> /// <para>Added in 4.6.0, updated in 5.0.0 and 5.10.2.</para> /// </summary> UniversalAccess = 0xf29a, /// <summary> /// University (university) /// <para>Terms: bank, building, college, higher education - students, institution</para> /// <para>Added in 4.1.0, updated in 5.0.0, 5.0.3, 5.11.0 and 5.11.1.</para> /// </summary> University = 0xf19c, /// <summary> /// Unlink (unlink) /// <para>Terms: attachment, chain, chain-broken, remove</para> /// <para>Added in 3.1.0, updated in 5.0.0.</para> /// </summary> Unlink = 0xf127, /// <summary> /// Unlock (unlock) /// <para>Terms: admin, lock, password, private, protect</para> /// <para>Added in 2.0.0, updated in 5.0.0.</para> /// </summary> Unlock = 0xf09c, /// <summary> /// Alternate Unlock (unlock-alt) /// <para>Terms: admin, lock, password, private, protect</para> /// <para>Added in 3.1.0, updated in 5.0.0.</para> /// </summary> UnlockAlt = 0xf13e, /// <summary> /// Upload (upload) /// <para>Terms: hard drive, import, publish</para> /// <para>Added in 1.0.0, updated in 5.0.0.</para> /// </summary> Upload = 0xf093, /// <summary> /// User (user) /// <para>Styles: solid, regular</para> /// <para>Terms: account, avatar, head, human, man, person, profile</para> /// <para>Added in 1.0.0, updated in 5.0.0, 5.0.11 and 5.0.3.</para> /// </summary> User = 0xf007, /// <summary> /// Alternate User (user-alt) /// <para>Terms: account, avatar, head, human, man, person, profile</para> /// <para>Added in 5.0.0, updated in 5.0.11 and 5.0.3.</para> /// </summary> UserAlt = 0xf406, /// <summary> /// Alternate User Slash (user-alt-slash) /// <para>Terms: account, avatar, head, human, man, person, profile</para> /// <para>Added in 5.0.11.</para> /// </summary> UserAltSlash = 0xf4fa, /// <summary> /// User Astronaut (user-astronaut) /// <para>Terms: avatar, clothing, cosmonaut, nasa, space, suit</para> /// <para>Added in 5.0.11.</para> /// </summary> UserAstronaut = 0xf4fb, /// <summary> /// User Check (user-check) /// <para>Terms: accept, check, person, verified</para> /// <para>Added in 5.0.11.</para> /// </summary> UserCheck = 0xf4fc, /// <summary> /// User Circle (user-circle) /// <para>Styles: solid, regular</para> /// <para>Terms: account, avatar, head, human, man, person, profile</para> /// <para>Added in 4.7.0, updated in 5.0.0, 5.0.11, 5.0.3, 5.11.0 and 5.11.1.</para> /// </summary> UserCircle = 0xf2bd, /// <summary> /// User Clock (user-clock) /// <para>Terms: alert, person, remind, time</para> /// <para>Added in 5.0.11.</para> /// </summary> UserClock = 0xf4fd, /// <summary> /// User Cog (user-cog) /// <para>Terms: admin, cog, person, settings</para> /// <para>Added in 5.0.11.</para> /// </summary> UserCog = 0xf4fe, /// <summary> /// User Edit (user-edit) /// <para>Terms: edit, pen, pencil, person, update, write</para> /// <para>Added in 5.0.11.</para> /// </summary> UserEdit = 0xf4ff, /// <summary> /// User Friends (user-friends) /// <para>Terms: group, people, person, team, users</para> /// <para>Added in 5.0.11.</para> /// </summary> UserFriends = 0xf500, /// <summary> /// User Graduate (user-graduate) /// <para>Terms: cap, clothing, commencement, gown, graduation, person, student</para> /// <para>Added in 5.0.11.</para> /// </summary> UserGraduate = 0xf501, /// <summary> /// User Injured (user-injured) /// <para>Terms: cast, injury, ouch, patient, person, sling</para> /// <para>Added in 5.4.0.</para> /// </summary> UserInjured = 0xf728, /// <summary> /// User Lock (user-lock) /// <para>Terms: admin, lock, person, private, unlock</para> /// <para>Added in 5.0.11, updated in 5.9.0.</para> /// </summary> UserLock = 0xf502, /// <summary> /// Doctor (user-md) /// <para>Terms: covid-19, job, medical, nurse, occupation, physician, profile, surgeon</para> /// <para>Added in 2.0.0, updated in 5.0.0, 5.0.11, 5.0.3 and 5.0.7.</para> /// </summary> UserMd = 0xf0f0, /// <summary> /// User Minus (user-minus) /// <para>Terms: delete, negative, remove</para> /// <para>Added in 5.0.11.</para> /// </summary> UserMinus = 0xf503, /// <summary> /// User Ninja (user-ninja) /// <para>Terms: assassin, avatar, dangerous, deadly, sneaky</para> /// <para>Added in 5.0.11.</para> /// </summary> UserNinja = 0xf504, /// <summary> /// Nurse (user-nurse) /// <para>Terms: covid-19, doctor, midwife, practitioner, surgeon</para> /// <para>Added in 5.12.0, updated in 5.7.0.</para> /// </summary> UserNurse = 0xf82f, /// <summary> /// User Plus (user-plus) /// <para>Terms: add, avatar, positive, sign up, signup, team</para> /// <para>Added in 4.3.0, updated in 5.0.0, 5.0.11 and 5.0.3.</para> /// </summary> UserPlus = 0xf234, /// <summary> /// User Secret (user-secret) /// <para>Terms: clothing, coat, hat, incognito, person, privacy, spy, whisper</para> /// <para>Added in 4.3.0, updated in 5.0.0, 5.0.11 and 5.0.3.</para> /// </summary> UserSecret = 0xf21b, /// <summary> /// User Shield (user-shield) /// <para>Terms: admin, person, private, protect, safe</para> /// <para>Added in 5.0.11.</para> /// </summary> UserShield = 0xf505, /// <summary> /// User Slash (user-slash) /// <para>Terms: ban, delete, remove</para> /// <para>Added in 5.0.11.</para> /// </summary> UserSlash = 0xf506, /// <summary> /// User Tag (user-tag) /// <para>Terms: avatar, discount, label, person, role, special</para> /// <para>Added in 5.0.11.</para> /// </summary> UserTag = 0xf507, /// <summary> /// User Tie (user-tie) /// <para>Terms: avatar, business, clothing, formal, professional, suit</para> /// <para>Added in 5.0.11.</para> /// </summary> UserTie = 0xf508, /// <summary> /// Remove User (user-times) /// <para>Terms: archive, delete, remove, x</para> /// <para>Added in 4.3.0, updated in 5.0.0, 5.0.11 and 5.0.3.</para> /// </summary> UserTimes = 0xf235, /// <summary> /// Users (users) /// <para>Terms: friends, group, people, persons, profiles, team</para> /// <para>Added in 2.0.0, updated in 5.0.0, 5.0.11 and 5.0.3.</para> /// </summary> Users = 0xf0c0, /// <summary> /// Users Cog (users-cog) /// <para>Terms: admin, cog, group, person, settings, team</para> /// <para>Added in 5.0.11.</para> /// </summary> UsersCog = 0xf509, /// <summary> /// Users Slash (users-slash) /// <para>Terms: disband, friends, group, people, persons, profiles, separate, team, ungroup</para> /// <para>Added in 5.13.0, updated in 5.14.0.</para> /// </summary> UsersSlash = 0xe073, /// <summary> /// Utensil Spoon (utensil-spoon) /// <para>Terms: cutlery, dining, scoop, silverware, spoon</para> /// <para>Added in 5.0.0, updated in 5.10.2.</para> /// </summary> UtensilSpoon = 0xf2e5, /// <summary> /// Utensils (utensils) /// <para>Terms: cutlery, dining, dinner, eat, food, fork, knife, restaurant</para> /// <para>Added in 5.0.0.</para> /// </summary> Utensils = 0xf2e7, /// <summary> /// Vector Square (vector-square) /// <para>Terms: anchors, lines, object, render, shape</para> /// <para>Added in 5.1.0.</para> /// </summary> VectorSquare = 0xf5cb, /// <summary> /// Venus (venus) /// <para>Terms: female</para> /// <para>Added in 4.3.0, updated in 5.0.0, 5.11.0 and 5.11.1.</para> /// </summary> Venus = 0xf221, /// <summary> /// Venus Double (venus-double) /// <para>Terms: female</para> /// <para>Added in 4.3.0, updated in 5.0.0.</para> /// </summary> VenusDouble = 0xf226, /// <summary> /// Venus Mars (venus-mars) /// <para>Terms: Gender</para> /// <para>Added in 4.3.0, updated in 5.0.0.</para> /// </summary> VenusMars = 0xf228, /// <summary> /// Vest (vest) /// <para>Terms: biker, fashion, style</para> /// <para>Added in 5.15.0, updated in 5.15.1.</para> /// </summary> Vest = 0xe085, /// <summary> /// Vest-Patches (vest-patches) /// <para>Terms: biker, fashion, style</para> /// <para>Added in 5.15.0, updated in 5.15.1.</para> /// </summary> VestPatches = 0xe086, /// <summary> /// Vial (vial) /// <para>Terms: experiment, lab, sample, science, test, test tube</para> /// <para>Added in 5.0.7.</para> /// </summary> Vial = 0xf492, /// <summary> /// Vials (vials) /// <para>Terms: experiment, lab, sample, science, test, test tube</para> /// <para>Added in 5.0.7.</para> /// </summary> Vials = 0xf493, /// <summary> /// Video (video) /// <para>Terms: camera, film, movie, record, video-camera</para> /// <para>Added in 1.0.0, updated in 5.0.0 and 5.0.9.</para> /// </summary> Video = 0xf03d, /// <summary> /// Video Slash (video-slash) /// <para>Terms: add, create, film, new, positive, record, video</para> /// <para>Added in 5.0.9.</para> /// </summary> VideoSlash = 0xf4e2, /// <summary> /// Vihara (vihara) /// <para>Terms: buddhism, buddhist, building, monastery</para> /// <para>Added in 5.3.0.</para> /// </summary> Vihara = 0xf6a7, /// <summary> /// Virus (virus) /// <para>Terms: bug, covid-19, flu, health, sick, viral</para> /// <para>Added in 5.13.0, updated in 5.14.0.</para> /// </summary> Virus = 0xe074, /// <summary> /// Virus Slash (virus-slash) /// <para>Terms: bug, covid-19, cure, eliminate, flu, health, sick, viral</para> /// <para>Added in 5.13.0, updated in 5.14.0.</para> /// </summary> VirusSlash = 0xe075, /// <summary> /// Viruses (viruses) /// <para>Terms: bugs, covid-19, flu, health, multiply, sick, spread, viral</para> /// <para>Added in 5.13.0, updated in 5.14.0.</para> /// </summary> Viruses = 0xe076, /// <summary> /// Voicemail (voicemail) /// <para>Terms: answer, inbox, message, phone</para> /// <para>Added in 5.9.0.</para> /// </summary> Voicemail = 0xf897, /// <summary> /// Volleyball Ball (volleyball-ball) /// <para>Terms: beach, olympics, sport</para> /// <para>Added in 5.0.5, updated in 5.8.0.</para> /// </summary> VolleyballBall = 0xf45f, /// <summary> /// Volume Down (volume-down) /// <para>Terms: audio, lower, music, quieter, sound, speaker</para> /// <para>Added in 1.0.0, updated in 5.0.0 and 5.3.0.</para> /// </summary> VolumeDown = 0xf027, /// <summary> /// Volume Mute (volume-mute) /// <para>Terms: audio, music, quiet, sound, speaker</para> /// <para>Added in 5.3.0.</para> /// </summary> VolumeMute = 0xf6a9, /// <summary> /// Volume Off (volume-off) /// <para>Terms: audio, ban, music, mute, quiet, silent, sound</para> /// <para>Added in 1.0.0, updated in 5.0.0, 5.3.0 and 5.8.0.</para> /// </summary> VolumeOff = 0xf026, /// <summary> /// Volume Up (volume-up) /// <para>Terms: audio, higher, louder, music, sound, speaker</para> /// <para>Added in 1.0.0, updated in 5.0.0 and 5.3.0.</para> /// </summary> VolumeUp = 0xf028, /// <summary> /// Vote Yea (vote-yea) /// <para>Terms: accept, cast, election, politics, positive, yes</para> /// <para>Added in 5.5.0.</para> /// </summary> VoteYea = 0xf772, /// <summary> /// Cardboard VR (vr-cardboard) /// <para>Terms: 3d, augment, google, reality, virtual</para> /// <para>Added in 5.4.0.</para> /// </summary> VrCardboard = 0xf729, /// <summary> /// Walking (walking) /// <para>Terms: exercise, health, pedometer, person, steps</para> /// <para>Added in 5.0.13.</para> /// </summary> Walking = 0xf554, /// <summary> /// Wallet (wallet) /// <para>Terms: billfold, cash, currency, money</para> /// <para>Added in 5.0.13.</para> /// </summary> Wallet = 0xf555, /// <summary> /// Warehouse (warehouse) /// <para>Terms: building, capacity, garage, inventory, storage</para> /// <para>Added in 5.0.7.</para> /// </summary> Warehouse = 0xf494, /// <summary> /// Water (water) /// <para>Terms: lake, liquid, ocean, sea, swim, wet</para> /// <para>Added in 5.5.0.</para> /// </summary> Water = 0xf773, /// <summary> /// Square Wave (wave-square) /// <para>Terms: frequency, pulse, signal</para> /// <para>Added in 5.8.0.</para> /// </summary> WaveSquare = 0xf83e, /// <summary> /// Weight (weight) /// <para>Terms: health, measurement, scale, weight</para> /// <para>Added in 5.0.7.</para> /// </summary> Weight = 0xf496, /// <summary> /// Hanging Weight (weight-hanging) /// <para>Terms: anvil, heavy, measurement</para> /// <para>Added in 5.1.0.</para> /// </summary> WeightHanging = 0xf5cd, /// <summary> /// Wheelchair (wheelchair) /// <para>Terms: accessible, handicap, person</para> /// <para>Added in 4.0.0, updated in 5.0.0 and 5.10.2.</para> /// </summary> Wheelchair = 0xf193, /// <summary> /// Wifi (wifi) /// <para>Terms: connection, hotspot, internet, network, wireless</para> /// <para>Added in 4.2.0, updated in 5.0.0, 5.10.1, 5.11.1 and 5.3.0.</para> /// </summary> Wifi = 0xf1eb, /// <summary> /// Wind (wind) /// <para>Terms: air, blow, breeze, fall, seasonal, weather</para> /// <para>Added in 5.4.0, updated in 5.5.0.</para> /// </summary> Wind = 0xf72e, /// <summary> /// Window Close (window-close) /// <para>Styles: solid, regular</para> /// <para>Terms: browser, cancel, computer, development</para> /// <para>Added in 4.7.0, updated in 5.0.0.</para> /// </summary> WindowClose = 0xf410, /// <summary> /// Window Maximize (window-maximize) /// <para>Styles: solid, regular</para> /// <para>Terms: browser, computer, development, expand</para> /// <para>Added in 4.7.0, updated in 5.0.0.</para> /// </summary> WindowMaximize = 0xf2d0, /// <summary> /// Window Minimize (window-minimize) /// <para>Styles: solid, regular</para> /// <para>Terms: browser, collapse, computer, development</para> /// <para>Added in 4.7.0, updated in 5.0.0 and 5.10.1.</para> /// </summary> WindowMinimize = 0xf2d1, /// <summary> /// Window Restore (window-restore) /// <para>Styles: solid, regular</para> /// <para>Terms: browser, computer, development</para> /// <para>Added in 4.7.0, updated in 5.0.0.</para> /// </summary> WindowRestore = 0xf2d2, /// <summary> /// Wine Bottle (wine-bottle) /// <para>Terms: alcohol, beverage, cabernet, drink, glass, grapes, merlot, sauvignon</para> /// <para>Added in 5.4.0.</para> /// </summary> WineBottle = 0xf72f, /// <summary> /// Wine Glass (wine-glass) /// <para>Terms: alcohol, beverage, cabernet, drink, grapes, merlot, sauvignon</para> /// <para>Added in 5.0.9, updated in 5.1.0, 5.10.1, 5.11.0 and 5.11.1.</para> /// </summary> WineGlass = 0xf4e3, /// <summary> /// Alternate Wine Glas (wine-glass-alt) /// <para>Terms: alcohol, beverage, cabernet, drink, grapes, merlot, sauvignon</para> /// <para>Added in 5.1.0, updated in 5.10.1, 5.11.0 and 5.11.1.</para> /// </summary> WineGlassAlt = 0xf5ce, /// <summary> /// Won Sign (won-sign) /// <para>Terms: currency, krw, money</para> /// <para>Added in 3.2.0, updated in 5.0.0.</para> /// </summary> WonSign = 0xf159, /// <summary> /// Wrench (wrench) /// <para>Terms: construction, fix, mechanic, plumbing, settings, spanner, tool, update</para> /// <para>Added in 2.0.0, updated in 5.0.0 and 5.0.13.</para> /// </summary> Wrench = 0xf0ad, /// <summary> /// X-Ray (x-ray) /// <para>Terms: health, medical, radiological images, radiology, skeleton</para> /// <para>Added in 5.0.7, updated in 5.10.2.</para> /// </summary> XRay = 0xf497, /// <summary> /// Yen Sign (yen-sign) /// <para>Terms: currency, jpy, money</para> /// <para>Added in 3.2.0, updated in 5.0.0.</para> /// </summary> YenSign = 0xf157, /// <summary> /// Yin Yang (yin-yang) /// <para>Terms: daoism, opposites, taoism</para> /// <para>Added in 5.10.2, updated in 5.11.0, 5.11.1 and 5.3.0.</para> /// </summary> YinYang = 0xf6ad, } }
35.269418
188
0.509226
[ "Apache-2.0" ]
Geta/geta-optimizely-contenttypeicons
src/Geta.Optimizely.ContentTypeIcons/FontAwesome5Solid.cs
252,921
C#
using Team8Project.Core.Advanced; using Team8Project.Core.Contracts; using Team8Project.Data; namespace Team8Project.Core.Commands.SelectAbility { public class SelectEffectAbilityCommand : Command, ICommand { private readonly ITurnProcessor turn; public SelectEffectAbilityCommand(IFactory factory, IDataContainer data, ITurnProcessor turn) : base(factory, data) { this.turn = turn; } public override void Execute() { this.data.SelectedAbility = turn.ActiveHero.Abilities[2]; } } }
26.272727
123
0.679931
[ "MIT" ]
ateber91/GameBasics
Team8Project/Team8Project/Core/Commands/SelectAbility/SelectEffectAbilityCommand.cs
580
C#
#region License // // Copyright 2002-2017 Drew Noakes // Ported from Java to C# by Yakov Danilov for Imazen LLC in 2014 // // 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. // // More information about this project is available at: // // https://github.com/drewnoakes/metadata-extractor-dotnet // https://drewnoakes.com/code/exif/ // #endregion using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Text; using JetBrains.Annotations; using MetadataExtractor.Util; using MetadataExtractor.IO; // ReSharper disable MemberCanBePrivate.Global namespace MetadataExtractor.Formats.Exif { /// <summary>Base class for several Exif format descriptor classes.</summary> /// <author>Drew Noakes https://drewnoakes.com</author> [SuppressMessage("ReSharper", "MemberCanBePrivate.Global")] public abstract class ExifDescriptorBase<T> : TagDescriptor<T> where T : Directory { protected ExifDescriptorBase([NotNull] T directory) : base(directory) { } public override string GetDescription(int tagType) { // TODO order case blocks and corresponding methods in the same order as the TAG_* values are defined switch (tagType) { case ExifDirectoryBase.TagInteropIndex: return GetInteropIndexDescription(); case ExifDirectoryBase.TagInteropVersion: return GetInteropVersionDescription(); case ExifDirectoryBase.TagOrientation: return GetOrientationDescription(); case ExifDirectoryBase.TagResolutionUnit: return GetResolutionDescription(); case ExifDirectoryBase.TagYCbCrPositioning: return GetYCbCrPositioningDescription(); case ExifDirectoryBase.TagXResolution: return GetXResolutionDescription(); case ExifDirectoryBase.TagYResolution: return GetYResolutionDescription(); case ExifDirectoryBase.TagImageWidth: return GetImageWidthDescription(); case ExifDirectoryBase.TagImageHeight: return GetImageHeightDescription(); case ExifDirectoryBase.TagBitsPerSample: return GetBitsPerSampleDescription(); case ExifDirectoryBase.TagPhotometricInterpretation: return GetPhotometricInterpretationDescription(); case ExifDirectoryBase.TagRowsPerStrip: return GetRowsPerStripDescription(); case ExifDirectoryBase.TagStripByteCounts: return GetStripByteCountsDescription(); case ExifDirectoryBase.TagSamplesPerPixel: return GetSamplesPerPixelDescription(); case ExifDirectoryBase.TagPlanarConfiguration: return GetPlanarConfigurationDescription(); case ExifDirectoryBase.TagYCbCrSubsampling: return GetYCbCrSubsamplingDescription(); case ExifDirectoryBase.TagReferenceBlackWhite: return GetReferenceBlackWhiteDescription(); case ExifDirectoryBase.TagWinAuthor: return GetWindowsAuthorDescription(); case ExifDirectoryBase.TagWinComment: return GetWindowsCommentDescription(); case ExifDirectoryBase.TagWinKeywords: return GetWindowsKeywordsDescription(); case ExifDirectoryBase.TagWinSubject: return GetWindowsSubjectDescription(); case ExifDirectoryBase.TagWinTitle: return GetWindowsTitleDescription(); case ExifDirectoryBase.TagNewSubfileType: return GetNewSubfileTypeDescription(); case ExifDirectoryBase.TagSubfileType: return GetSubfileTypeDescription(); case ExifDirectoryBase.TagThresholding: return GetThresholdingDescription(); case ExifDirectoryBase.TagFillOrder: return GetFillOrderDescription(); case ExifDirectoryBase.TagCfaPattern2: return GetCfaPattern2Description(); case ExifDirectoryBase.TagExposureTime: return GetExposureTimeDescription(); case ExifDirectoryBase.TagShutterSpeed: return GetShutterSpeedDescription(); case ExifDirectoryBase.TagFNumber: return GetFNumberDescription(); case ExifDirectoryBase.TagCompressedAverageBitsPerPixel: return GetCompressedAverageBitsPerPixelDescription(); case ExifDirectoryBase.TagSubjectDistance: return GetSubjectDistanceDescription(); case ExifDirectoryBase.TagMeteringMode: return GetMeteringModeDescription(); case ExifDirectoryBase.TagWhiteBalance: return GetWhiteBalanceDescription(); case ExifDirectoryBase.TagFlash: return GetFlashDescription(); case ExifDirectoryBase.TagFocalLength: return GetFocalLengthDescription(); case ExifDirectoryBase.TagColorSpace: return GetColorSpaceDescription(); case ExifDirectoryBase.TagExifImageWidth: return GetExifImageWidthDescription(); case ExifDirectoryBase.TagExifImageHeight: return GetExifImageHeightDescription(); case ExifDirectoryBase.TagFocalPlaneResolutionUnit: return GetFocalPlaneResolutionUnitDescription(); case ExifDirectoryBase.TagFocalPlaneXResolution: return GetFocalPlaneXResolutionDescription(); case ExifDirectoryBase.TagFocalPlaneYResolution: return GetFocalPlaneYResolutionDescription(); case ExifDirectoryBase.TagExposureProgram: return GetExposureProgramDescription(); case ExifDirectoryBase.TagAperture: return GetApertureValueDescription(); case ExifDirectoryBase.TagMaxAperture: return GetMaxApertureValueDescription(); case ExifDirectoryBase.TagSensingMethod: return GetSensingMethodDescription(); case ExifDirectoryBase.TagExposureBias: return GetExposureBiasDescription(); case ExifDirectoryBase.TagFileSource: return GetFileSourceDescription(); case ExifDirectoryBase.TagSceneType: return GetSceneTypeDescription(); case ExifDirectoryBase.TagCfaPattern: return GetCfaPatternDescription(); case ExifDirectoryBase.TagComponentsConfiguration: return GetComponentConfigurationDescription(); case ExifDirectoryBase.TagExifVersion: return GetExifVersionDescription(); case ExifDirectoryBase.TagFlashpixVersion: return GetFlashPixVersionDescription(); case ExifDirectoryBase.TagIsoEquivalent: return GetIsoEquivalentDescription(); case ExifDirectoryBase.TagUserComment: return GetUserCommentDescription(); case ExifDirectoryBase.TagCustomRendered: return GetCustomRenderedDescription(); case ExifDirectoryBase.TagExposureMode: return GetExposureModeDescription(); case ExifDirectoryBase.TagWhiteBalanceMode: return GetWhiteBalanceModeDescription(); case ExifDirectoryBase.TagDigitalZoomRatio: return GetDigitalZoomRatioDescription(); case ExifDirectoryBase.Tag35MMFilmEquivFocalLength: return Get35MMFilmEquivFocalLengthDescription(); case ExifDirectoryBase.TagSceneCaptureType: return GetSceneCaptureTypeDescription(); case ExifDirectoryBase.TagGainControl: return GetGainControlDescription(); case ExifDirectoryBase.TagContrast: return GetContrastDescription(); case ExifDirectoryBase.TagSaturation: return GetSaturationDescription(); case ExifDirectoryBase.TagSharpness: return GetSharpnessDescription(); case ExifDirectoryBase.TagSubjectDistanceRange: return GetSubjectDistanceRangeDescription(); case ExifDirectoryBase.TagSensitivityType: return GetSensitivityTypeDescription(); case ExifDirectoryBase.TagCompression: return GetCompressionDescription(); case ExifDirectoryBase.TagJpegProc: return GetJpegProcDescription(); case ExifDirectoryBase.TagLensSpecification: return GetLensSpecificationDescription(); default: return base.GetDescription(tagType); } } [CanBeNull] public string GetInteropVersionDescription() { return GetVersionBytesDescription(ExifDirectoryBase.TagInteropVersion, 2); } [CanBeNull] public string GetInteropIndexDescription() { var value = Directory.GetString(ExifDirectoryBase.TagInteropIndex); if (value == null) return null; return string.Equals("R98", value.Trim(), StringComparison.OrdinalIgnoreCase) ? "Recommended Exif Interoperability Rules (ExifR98)" : "Unknown (" + value + ")"; } [CanBeNull] public string GetReferenceBlackWhiteDescription() { var ints = Directory.GetInt32Array(ExifDirectoryBase.TagReferenceBlackWhite); if (ints == null || ints.Length < 6) return null; var blackR = ints[0]; var whiteR = ints[1]; var blackG = ints[2]; var whiteG = ints[3]; var blackB = ints[4]; var whiteB = ints[5]; return $"[{blackR},{blackG},{blackB}] [{whiteR},{whiteG},{whiteB}]"; } [CanBeNull] public string GetYResolutionDescription() { var resolution = GetRationalOrDoubleString(ExifDirectoryBase.TagYResolution); if (resolution == null) return null; var unit = GetResolutionDescription(); return $"{resolution} dots per {unit?.ToLower() ?? "unit"}"; } [CanBeNull] public string GetXResolutionDescription() { var resolution = GetRationalOrDoubleString(ExifDirectoryBase.TagXResolution); if (resolution == null) return null; var unit = GetResolutionDescription(); return $"{resolution} dots per {unit?.ToLower() ?? "unit"}"; } [CanBeNull] public string GetYCbCrPositioningDescription() { return GetIndexedDescription(ExifDirectoryBase.TagYCbCrPositioning, 1, "Center of pixel array", "Datum point"); } [CanBeNull] public string GetOrientationDescription() { return base.GetOrientationDescription(ExifDirectoryBase.TagOrientation); } [CanBeNull] public string GetResolutionDescription() { // '1' means no-unit, '2' means inch, '3' means centimeter. Default value is '2'(inch) return GetIndexedDescription(ExifDirectoryBase.TagResolutionUnit, 1, "(No unit)", "Inch", "cm"); } /// <summary>The Windows specific tags uses plain Unicode.</summary> [CanBeNull] private string GetUnicodeDescription(int tag) { var bytes = Directory.GetByteArray(tag); if (bytes == null) return null; try { // Decode the Unicode string and trim the Unicode zero "\0" from the end. return Encoding.Unicode.GetString(bytes, 0, bytes.Length).TrimEnd('\0'); } catch { return null; } } [CanBeNull] public string GetWindowsAuthorDescription() { return GetUnicodeDescription(ExifDirectoryBase.TagWinAuthor); } [CanBeNull] public string GetWindowsCommentDescription() { return GetUnicodeDescription(ExifDirectoryBase.TagWinComment); } [CanBeNull] public string GetWindowsKeywordsDescription() { return GetUnicodeDescription(ExifDirectoryBase.TagWinKeywords); } [CanBeNull] public string GetWindowsTitleDescription() { return GetUnicodeDescription(ExifDirectoryBase.TagWinTitle); } [CanBeNull] public string GetWindowsSubjectDescription() { return GetUnicodeDescription(ExifDirectoryBase.TagWinSubject); } [CanBeNull] public string GetYCbCrSubsamplingDescription() { var positions = Directory.GetInt32Array(ExifDirectoryBase.TagYCbCrSubsampling); if (positions == null || positions.Length < 2) return null; if (positions[0] == 2 && positions[1] == 1) return "YCbCr4:2:2"; if (positions[0] == 2 && positions[1] == 2) return "YCbCr4:2:0"; return "(Unknown)"; } [CanBeNull] public string GetPlanarConfigurationDescription() { // When image format is no compression YCbCr, this value shows byte aligns of YCbCr // data. If value is '1', Y/Cb/Cr value is chunky format, contiguous for each subsampling // pixel. If value is '2', Y/Cb/Cr value is separated and stored to Y plane/Cb plane/Cr // plane format. return GetIndexedDescription(ExifDirectoryBase.TagPlanarConfiguration, 1, "Chunky (contiguous for each subsampling pixel)", "Separate (Y-plane/Cb-plane/Cr-plane format)"); } [CanBeNull] public string GetSamplesPerPixelDescription() { var value = Directory.GetString(ExifDirectoryBase.TagSamplesPerPixel); return value == null ? null : value + " samples/pixel"; } [CanBeNull] public string GetRowsPerStripDescription() { var value = Directory.GetString(ExifDirectoryBase.TagRowsPerStrip); return value == null ? null : value + " rows/strip"; } [CanBeNull] public string GetStripByteCountsDescription() { var value = Directory.GetString(ExifDirectoryBase.TagStripByteCounts); return value == null ? null : value + " bytes"; } [CanBeNull] public string GetPhotometricInterpretationDescription() { // Shows the color space of the image data components if (!Directory.TryGetInt32(ExifDirectoryBase.TagPhotometricInterpretation, out int value)) return null; switch (value) { case 0: return "WhiteIsZero"; case 1: return "BlackIsZero"; case 2: return "RGB"; case 3: return "RGB Palette"; case 4: return "Transparency Mask"; case 5: return "CMYK"; case 6: return "YCbCr"; case 8: return "CIELab"; case 9: return "ICCLab"; case 10: return "ITULab"; case 32803: return "Color Filter Array"; case 32844: return "Pixar LogL"; case 32845: return "Pixar LogLuv"; case 32892: return "Linear Raw"; default: return "Unknown colour space"; } } [CanBeNull] public string GetBitsPerSampleDescription() { var value = Directory.GetString(ExifDirectoryBase.TagBitsPerSample); return value == null ? null : value + " bits/component/pixel"; } [CanBeNull] public string GetImageWidthDescription() { var value = Directory.GetString(ExifDirectoryBase.TagImageWidth); return value == null ? null : value + " pixels"; } [CanBeNull] public string GetImageHeightDescription() { var value = Directory.GetString(ExifDirectoryBase.TagImageHeight); return value == null ? null : value + " pixels"; } [CanBeNull] public string GetNewSubfileTypeDescription() { return GetIndexedDescription(ExifDirectoryBase.TagNewSubfileType, 0, "Full-resolution image", "Reduced-resolution image", "Single page of multi-page image", "Single page of multi-page reduced-resolution image", "Transparency mask", "Transparency mask of reduced-resolution image", "Transparency mask of multi-page image", "Transparency mask of reduced-resolution multi-page image"); } [CanBeNull] public string GetSubfileTypeDescription() { return GetIndexedDescription(ExifDirectoryBase.TagSubfileType, 1, "Full-resolution image", "Reduced-resolution image", "Single page of multi-page image"); } [CanBeNull] public string GetThresholdingDescription() { return GetIndexedDescription(ExifDirectoryBase.TagThresholding, 1, "No dithering or halftoning", "Ordered dither or halftone", "Randomized dither"); } [CanBeNull] public string GetFillOrderDescription() { return GetIndexedDescription(ExifDirectoryBase.TagFillOrder, 1, "Normal", "Reversed"); } [CanBeNull] public string GetSubjectDistanceRangeDescription() { return GetIndexedDescription(ExifDirectoryBase.TagSubjectDistanceRange, "Unknown", "Macro", "Close view", "Distant view"); } [CanBeNull] public string GetSensitivityTypeDescription() { return GetIndexedDescription(ExifDirectoryBase.TagSensitivityType, "Unknown", "Standard Output Sensitivity", "Recommended Exposure Index", "ISO Speed", "Standard Output Sensitivity and Recommended Exposure Index", "Standard Output Sensitivity and ISO Speed", "Recommended Exposure Index and ISO Speed", "Standard Output Sensitivity, Recommended Exposure Index and ISO Speed"); } [CanBeNull] public string GetLensSpecificationDescription() { return GetLensSpecificationDescription(ExifDirectoryBase.TagLensSpecification); } [CanBeNull] public string GetSharpnessDescription() { return GetIndexedDescription(ExifDirectoryBase.TagSharpness, "None", "Low", "Hard"); } [CanBeNull] public string GetSaturationDescription() { return GetIndexedDescription(ExifDirectoryBase.TagSaturation, "None", "Low saturation", "High saturation"); } [CanBeNull] public string GetContrastDescription() { return GetIndexedDescription(ExifDirectoryBase.TagContrast, "None", "Soft", "Hard"); } [CanBeNull] public string GetGainControlDescription() { return GetIndexedDescription(ExifDirectoryBase.TagGainControl, "None", "Low gain up", "Low gain down", "High gain up", "High gain down"); } [CanBeNull] public string GetSceneCaptureTypeDescription() { return GetIndexedDescription(ExifDirectoryBase.TagSceneCaptureType, "Standard", "Landscape", "Portrait", "Night scene"); } [CanBeNull] public string Get35MMFilmEquivFocalLengthDescription() { if (!Directory.TryGetInt32(ExifDirectoryBase.Tag35MMFilmEquivFocalLength, out int value)) return null; return value == 0 ? "Unknown" : GetFocalLengthDescription(value); } [CanBeNull] public string GetDigitalZoomRatioDescription() { if (!Directory.TryGetRational(ExifDirectoryBase.TagDigitalZoomRatio, out Rational value)) return null; return value.Numerator == 0 ? "Digital zoom not used" : value.ToDouble().ToString("0.#"); } [CanBeNull] public string GetWhiteBalanceModeDescription() { return GetIndexedDescription(ExifDirectoryBase.TagWhiteBalanceMode, "Auto white balance", "Manual white balance"); } [CanBeNull] public string GetExposureModeDescription() { return GetIndexedDescription(ExifDirectoryBase.TagExposureMode, "Auto exposure", "Manual exposure", "Auto bracket"); } [CanBeNull] public string GetCustomRenderedDescription() { return GetIndexedDescription(ExifDirectoryBase.TagCustomRendered, "Normal process", "Custom process"); } [CanBeNull] public string GetUserCommentDescription() { var commentBytes = Directory.GetByteArray(ExifDirectoryBase.TagUserComment); if (commentBytes == null) return null; if (commentBytes.Length == 0) return string.Empty; // TODO use ByteTrie here // Someone suggested "ISO-8859-1". var encodingMap = new Dictionary<string, Encoding> { ["ASCII"] = Encoding.ASCII, ["UTF8"] = Encoding.UTF8, ["UTF7"] = Encoding.UTF7, ["UTF32"] = Encoding.UTF32, ["UNICODE"] = Encoding.Unicode, ["JIS"] = Encoding.GetEncoding("Shift-JIS") }; try { if (commentBytes.Length >= 10) { // TODO no guarantee bytes after the UTF8 name are valid UTF8 -- only read as many as needed var firstTenBytesString = Encoding.UTF8.GetString(commentBytes, 0, 10); // try each encoding name foreach (var pair in encodingMap) { var encodingName = pair.Key; var encoding = pair.Value; if (firstTenBytesString.StartsWith(encodingName)) { // skip any null or blank characters commonly present after the encoding name, up to a limit of 10 from the start for (var j = encodingName.Length; j < 10; j++) { var b = commentBytes[j]; if (b != '\0' && b != ' ') { return encoding.GetString(commentBytes, j, commentBytes.Length - j).Trim('\0', ' '); } } return encoding.GetString(commentBytes, 10, commentBytes.Length - 10).Trim('\0', ' '); } } } // special handling fell through, return a plain string representation return Encoding.UTF8.GetString(commentBytes, 0, commentBytes.Length).Trim('\0', ' '); } catch { return null; } } [CanBeNull] public string GetIsoEquivalentDescription() { // Have seen an exception here from files produced by ACDSEE that stored an int[] here with two values // There used to be a check here that multiplied ISO values < 50 by 200. // Issue 36 shows a smart-phone image from a Samsung Galaxy S2 with ISO-40. if (!Directory.TryGetInt32(ExifDirectoryBase.TagIsoEquivalent, out int value)) return null; return value.ToString(); } [CanBeNull] public string GetExifVersionDescription() { return GetVersionBytesDescription(ExifDirectoryBase.TagExifVersion, 2); } [CanBeNull] public string GetFlashPixVersionDescription() { return GetVersionBytesDescription(ExifDirectoryBase.TagFlashpixVersion, 2); } [CanBeNull] public string GetSceneTypeDescription() { return GetIndexedDescription(ExifDirectoryBase.TagSceneType, 1, "Directly photographed image"); } /// <summary> /// String description of CFA Pattern /// </summary> /// <remarks> /// Converted from Exiftool version 10.33 created by Phil Harvey /// http://www.sno.phy.queensu.ca/~phil/exiftool/ /// lib\Image\ExifTool\Exif.pm /// /// Indicates the color filter array (CFA) geometric pattern of the image sensor when a one-chip color area sensor is used. /// It does not apply to all sensing methods. /// </remarks> [CanBeNull] public string GetCfaPatternDescription() { return FormatCFAPattern(DecodeCFAPattern(ExifDirectoryBase.TagCfaPattern)); } /// <summary> /// String description of CFA Pattern /// </summary> /// <remarks> /// Indicates the color filter array (CFA) geometric pattern of the image sensor when a one-chip color area sensor is used. /// It does not apply to all sensing methods. /// /// <see cref="ExifDirectoryBase.TagCfaPattern2"/> holds only the pixel pattern. <see cref="ExifDirectoryBase.TagCfaRepeatPatternDim"/> is expected to exist and pass /// some conditional tests. /// </remarks> [CanBeNull] public string GetCfaPattern2Description() { var values = Directory.GetByteArray(ExifDirectoryBase.TagCfaPattern2); if (values == null) return null; var repeatPattern = Directory.GetObject(ExifDirectoryBase.TagCfaRepeatPatternDim) as ushort[]; if (repeatPattern == null) return $"Repeat Pattern not found for CFAPattern ({base.GetDescription(ExifDirectoryBase.TagCfaPattern2)})"; if (repeatPattern.Length == 2 && values.Length == (repeatPattern[0] * repeatPattern[1])) { var intpattern = new int[2 + values.Length]; intpattern[0] = repeatPattern[0]; intpattern[1] = repeatPattern[1]; Array.Copy(values, 0, intpattern, 2, values.Length); return FormatCFAPattern(intpattern); } return $"Unknown Pattern ({base.GetDescription(ExifDirectoryBase.TagCfaPattern2)})"; } [CanBeNull] private static string FormatCFAPattern(int[] pattern) { if (pattern.Length < 2) return "<truncated data>"; if (pattern[0] == 0 && pattern[1] == 0) return "<zero pattern size>"; var end = 2 + pattern[0] * pattern[1]; if (end > pattern.Length) return "<invalid pattern size>"; string[] cfaColors = { "Red", "Green", "Blue", "Cyan", "Magenta", "Yellow", "White" }; var ret = new StringBuilder(); ret.Append("["); for (var pos = 2; pos < end; pos++) { if (pattern[pos] <= cfaColors.Length - 1) ret.Append(cfaColors[pattern[pos]]); else ret.Append("Unknown"); // indicated pattern position is outside the array bounds if ((pos - 2) % pattern[1] == 0) ret.Append(","); else if (pos != end - 1) ret.Append("]["); } ret.Append("]"); return ret.ToString(); } /// <summary> /// Decode raw CFAPattern value /// </summary> /// <remarks> /// Converted from Exiftool version 10.33 created by Phil Harvey /// http://www.sno.phy.queensu.ca/~phil/exiftool/ /// lib\Image\ExifTool\Exif.pm /// /// The value consists of: /// - Two short, being the grid width and height of the repeated pattern. /// - Next, for every pixel in that pattern, an identification code. /// </remarks> private int[] DecodeCFAPattern(int tagType) { int[] ret; var values = Directory.GetByteArray(tagType); if (values == null) return null; if (values.Length < 4) { ret = new int[values.Length]; for (var i = 0; i < values.Length; i++) ret[i] = values[i]; return ret; } IndexedReader reader = new ByteArrayReader(values); // first two values should be read as 16-bits (2 bytes) var item0 = reader.GetInt16(0); var item1 = reader.GetInt16(2); ret = new int[values.Length - 2]; var copyArray = false; var end = 2 + item0 * item1; if (end > values.Length) // sanity check in case of byte order problems; calculated 'end' should be <= length of the values { // try swapping byte order (I have seen this order different than in EXIF) reader = reader.WithByteOrder(!reader.IsMotorolaByteOrder); item0 = reader.GetInt16(0); item1 = reader.GetInt16(2); if (values.Length >= 2 + item0 * item1) copyArray = true; } else { copyArray = true; } if (copyArray) { ret[0] = item0; ret[1] = item1; for (var i = 4; i < values.Length; i++) ret[i - 2] = reader.GetByte(i); } return ret; } [CanBeNull] public string GetFileSourceDescription() { return GetIndexedDescription(ExifDirectoryBase.TagFileSource, 1, "Film Scanner", "Reflection Print Scanner", "Digital Still Camera (DSC)"); } [CanBeNull] public string GetExposureBiasDescription() { if (!Directory.TryGetRational(ExifDirectoryBase.TagExposureBias, out Rational value)) return null; return value.ToSimpleString() + " EV"; } [CanBeNull] public string GetMaxApertureValueDescription() { if (!Directory.TryGetDouble(ExifDirectoryBase.TagMaxAperture, out double aperture)) return null; return GetFStopDescription(PhotographicConversions.ApertureToFStop(aperture)); } [CanBeNull] public string GetApertureValueDescription() { if (!Directory.TryGetDouble(ExifDirectoryBase.TagAperture, out double aperture)) return null; return GetFStopDescription(PhotographicConversions.ApertureToFStop(aperture)); } [CanBeNull] public string GetExposureProgramDescription() { return GetIndexedDescription(ExifDirectoryBase.TagExposureProgram, 1, "Manual control", "Program normal", "Aperture priority", "Shutter priority", "Program creative (slow program)", "Program action (high-speed program)", "Portrait mode", "Landscape mode"); } [CanBeNull] public string GetFocalPlaneXResolutionDescription() { if (!Directory.TryGetRational(ExifDirectoryBase.TagFocalPlaneXResolution, out Rational value)) return null; var unit = GetFocalPlaneResolutionUnitDescription(); return value.Reciprocal.ToSimpleString() + (unit == null ? string.Empty : " " + unit.ToLower()); } [CanBeNull] public string GetFocalPlaneYResolutionDescription() { if (!Directory.TryGetRational(ExifDirectoryBase.TagFocalPlaneYResolution, out Rational value)) return null; var unit = GetFocalPlaneResolutionUnitDescription(); return value.Reciprocal.ToSimpleString() + (unit == null ? string.Empty : " " + unit.ToLower()); } [CanBeNull] public string GetFocalPlaneResolutionUnitDescription() { // Unit of FocalPlaneXResolution/FocalPlaneYResolution. // '1' means no-unit, '2' inch, '3' centimeter. return GetIndexedDescription(ExifDirectoryBase.TagFocalPlaneResolutionUnit, 1, "(No unit)", "Inches", "cm"); } [CanBeNull] public string GetExifImageWidthDescription() { if (!Directory.TryGetInt32(ExifDirectoryBase.TagExifImageWidth, out int value)) return null; return value + " pixels"; } [CanBeNull] public string GetExifImageHeightDescription() { if (!Directory.TryGetInt32(ExifDirectoryBase.TagExifImageHeight, out int value)) return null; return value + " pixels"; } [CanBeNull] public string GetColorSpaceDescription() { if (!Directory.TryGetInt32(ExifDirectoryBase.TagColorSpace, out int value)) return null; if (value == 1) return "sRGB"; if (value == 65535) return "Undefined"; return "Unknown (" + value + ")"; } [CanBeNull] public string GetFocalLengthDescription() { if (!Directory.TryGetRational(ExifDirectoryBase.TagFocalLength, out Rational value)) return null; return GetFocalLengthDescription(value.ToDouble()); } [CanBeNull] public string GetFlashDescription() { /* * This is a bit mask. * 0 = flash fired * 1 = return detected * 2 = return able to be detected * 3 = unknown * 4 = auto used * 5 = unknown * 6 = red eye reduction used */ if (!Directory.TryGetInt32(ExifDirectoryBase.TagFlash, out int value)) return null; var sb = new StringBuilder(); sb.Append((value & 0x1) != 0 ? "Flash fired" : "Flash did not fire"); // check if we're able to detect a return, before we mention it if ((value & 0x4) != 0) sb.Append((value & 0x2) != 0 ? ", return detected" : ", return not detected"); if ((value & 0x10) != 0) sb.Append(", auto"); if ((value & 0x40) != 0) sb.Append(", red-eye reduction"); return sb.ToString(); } [CanBeNull] public string GetWhiteBalanceDescription() { // See http://web.archive.org/web/20131018091152/http://exif.org/Exif2-2.PDF page 35 if (!Directory.TryGetInt32(ExifDirectoryBase.TagWhiteBalance, out int value)) return null; switch (value) { case 0: return "Unknown"; case 1: return "Daylight"; case 2: return "Florescent"; case 3: return "Tungsten"; case 4: return "Flash"; case 9: return "Fine Weather"; case 10: return "Cloudy"; case 11: return "Shade"; case 12: return "Daylight Fluorescent"; case 13: return "Day White Fluorescent"; case 14: return "Cool White Fluorescent"; case 15: return "White Fluorescent"; case 16: return "Warm White Fluorescent"; case 17: return "Standard light"; case 18: return "Standard light (B)"; case 19: return "Standard light (C)"; case 20: return "D55"; case 21: return "D65"; case 22: return "D75"; case 23: return "D50"; case 24: return "Studio Tungsten"; case 255: return "(Other)"; default: return "Unknown (" + value + ")"; } } [CanBeNull] public string GetMeteringModeDescription() { // '0' means unknown, '1' average, '2' center weighted average, '3' spot // '4' multi-spot, '5' multi-segment, '6' partial, '255' other if (!Directory.TryGetInt32(ExifDirectoryBase.TagMeteringMode, out int value)) return null; switch (value) { case 0: return "Unknown"; case 1: return "Average"; case 2: return "Center weighted average"; case 3: return "Spot"; case 4: return "Multi-spot"; case 5: return "Multi-segment"; case 6: return "Partial"; case 255: return "(Other)"; default: return "Unknown (" + value + ")"; } } [CanBeNull] public string GetCompressionDescription() { if (!Directory.TryGetInt32(ExifDirectoryBase.TagCompression, out int value)) return null; switch (value) { case 1: return "Uncompressed"; case 2: return "CCITT 1D"; case 3: return "T4/Group 3 Fax"; case 4: return "T6/Group 4 Fax"; case 5: return "LZW"; case 6: return "JPEG (old-style)"; case 7: return "JPEG"; case 8: return "Adobe Deflate"; case 9: return "JBIG B&W"; case 10: return "JBIG Color"; case 99: return "JPEG"; case 262: return "Kodak 262"; case 32766: return "Next"; case 32767: return "Sony ARW Compressed"; case 32769: return "Packed RAW"; case 32770: return "Samsung SRW Compressed"; case 32771: return "CCIRLEW"; case 32772: return "Samsung SRW Compressed 2"; case 32773: return "PackBits"; case 32809: return "Thunderscan"; case 32867: return "Kodak KDC Compressed"; case 32895: return "IT8CTPAD"; case 32896: return "IT8LW"; case 32897: return "IT8MP"; case 32898: return "IT8BL"; case 32908: return "PixarFilm"; case 32909: return "PixarLog"; case 32946: return "Deflate"; case 32947: return "DCS"; case 34661: return "JBIG"; case 34676: return "SGILog"; case 34677: return "SGILog24"; case 34712: return "JPEG 2000"; case 34713: return "Nikon NEF Compressed"; case 34715: return "JBIG2 TIFF FX"; case 34718: return "Microsoft Document Imaging (MDI) Binary Level Codec"; case 34719: return "Microsoft Document Imaging (MDI) Progressive Transform Codec"; case 34720: return "Microsoft Document Imaging (MDI) Vector"; case 34892: return "Lossy JPEG"; case 65000: return "Kodak DCR Compressed"; case 65535: return "Pentax PEF Compressed"; default: return "Unknown (" + value + ")"; } } [CanBeNull] public string GetSubjectDistanceDescription() { if (!Directory.TryGetRational(ExifDirectoryBase.TagSubjectDistance, out Rational value)) return null; return $"{value.ToDouble():0.0##} metres"; } [CanBeNull] public string GetCompressedAverageBitsPerPixelDescription() { if (!Directory.TryGetRational(ExifDirectoryBase.TagCompressedAverageBitsPerPixel, out Rational value)) return null; var ratio = value.ToSimpleString(); return value.IsInteger && value.ToInt32() == 1 ? ratio + " bit/pixel" : ratio + " bits/pixel"; } [CanBeNull] public string GetExposureTimeDescription() { var value = Directory.GetString(ExifDirectoryBase.TagExposureTime); return value == null ? null : value + " sec"; } [CanBeNull] public string GetShutterSpeedDescription() { return GetShutterSpeedDescription(ExifDirectoryBase.TagShutterSpeed); } [CanBeNull] public string GetFNumberDescription() { if (!Directory.TryGetRational(ExifDirectoryBase.TagFNumber, out Rational value)) return null; return GetFStopDescription(value.ToDouble()); } [CanBeNull] public string GetSensingMethodDescription() { // '1' Not defined, '2' One-chip color area sensor, '3' Two-chip color area sensor // '4' Three-chip color area sensor, '5' Color sequential area sensor // '7' Trilinear sensor '8' Color sequential linear sensor, 'Other' reserved return GetIndexedDescription(ExifDirectoryBase.TagSensingMethod, 1, "(Not defined)", "One-chip color area sensor", "Two-chip color area sensor", "Three-chip color area sensor", "Color sequential area sensor", null, "Trilinear sensor", "Color sequential linear sensor"); } [CanBeNull] public string GetComponentConfigurationDescription() { var components = Directory.GetInt32Array(ExifDirectoryBase.TagComponentsConfiguration); if (components == null) return null; var componentStrings = new[] { string.Empty, "Y", "Cb", "Cr", "R", "G", "B" }; var componentConfig = new StringBuilder(); for (var i = 0; i < Math.Min(4, components.Length); i++) { var j = components[i]; if (j > 0 && j < componentStrings.Length) componentConfig.Append(componentStrings[j]); } return componentConfig.ToString(); } [CanBeNull] public string GetJpegProcDescription() { if (!Directory.TryGetInt32(ExifDirectoryBase.TagJpegProc, out int value)) return null; switch (value) { case 1: return "Baseline"; case 14: return "Lossless"; default: return "Unknown (" + value + ")"; } } } }
38.22541
183
0.537836
[ "Apache-2.0" ]
flemingm/metadata-extractor-dotnet
MetadataExtractor/Formats/Exif/ExifDescriptorBase.cs
46,635
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file 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. */ /* * Do not modify this file. This file is generated from the rds-data-2018-08-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.RDSDataService.Model { /// <summary> /// The response elements represent the output of a request to start a SQL transaction. /// </summary> public partial class BeginTransactionResponse : AmazonWebServiceResponse { private string _transactionId; /// <summary> /// Gets and sets the property TransactionId. /// <para> /// The transaction ID of the transaction started by the call. /// </para> /// </summary> [AWSProperty(Min=0, Max=192)] public string TransactionId { get { return this._transactionId; } set { this._transactionId = value; } } // Check to see if TransactionId property is set internal bool IsSetTransactionId() { return this._transactionId != null; } } }
30.206897
106
0.665525
[ "Apache-2.0" ]
ChristopherButtars/aws-sdk-net
sdk/src/Services/RDSDataService/Generated/Model/BeginTransactionResponse.cs
1,752
C#
using System; namespace Todo.Domain.Todo { public class TodoItem { public const TodoItem MissingTodoItem = null; public Guid Id { get; set; } public string ItemDescription { get; set; } public DateTime DueDate { get; set; } public bool IsCompleted { get; set; } public bool IsOverdue() { if (IsCompleted) { return false; } return HasDueDateHappened(); } private bool HasDueDateHappened() { return DateTime.Now.Date.CompareTo(DueDate.Date) > 0; } public bool IsIdValid() { return Id != Guid.Empty; } public bool ItemDescriptionIsValid() { return !string.IsNullOrWhiteSpace(ItemDescription); } } }
22.275
66
0.501684
[ "MIT" ]
musa-zulu/Reference-CleanArchitecture-DotNet
source/Todo.Domain/Todo/TodoItem.cs
893
C#
namespace Micky5991.Samp.Net.Framework.Interfaces.Entities { /// <summary> /// Represents an object that is only visible to a player. /// </summary> public interface IPlayerObject : IPlayerBoundEnitity { } }
23.2
62
0.676724
[ "MIT" ]
Micky5991/samp-dotnet
src/dotnet/Micky5991.Samp.Net.Framework/Interfaces/Entities/IPlayerObject.cs
232
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using System; using System.Threading; namespace Gigascapes.SystemDebug { [RequireComponent(typeof(MeshFilter))] public class RplidarMesherMap : MonoBehaviour { public bool m_onscan = false; private LidarData[] m_data; public string COM = "COM7"; public Mesh m_mesh; private List<Vector3> m_vert; private List<int> m_ind; private List<int> triangles = new List<int>(); private MeshFilter m_meshfilter; private Thread m_thread; private bool m_datachanged = false; public bool debug = true; void Start() { m_meshfilter = GetComponent<MeshFilter>(); m_data = new LidarData[720]; m_ind = new List<int>(); m_vert = new List<Vector3>(); for (int i = 0; i < 720; i++) { m_ind.Add(i); } m_mesh = new Mesh(); m_mesh.MarkDynamic(); RplidarBinding.OnConnect(COM); RplidarBinding.StartMotor(); m_onscan = RplidarBinding.StartScan(); if (m_onscan) { m_thread = new Thread(GenMesh); m_thread.Start(); } } void OnDestroy() { m_thread.Abort(); RplidarBinding.EndScan(); RplidarBinding.EndMotor(); RplidarBinding.OnDisconnect(); RplidarBinding.ReleaseDrive(); m_onscan = false; } void Update() { if (m_datachanged) { m_vert.Clear(); triangles.Clear(); m_vert.Add(Vector3.zero); for (int i = 0; i < 720; i++) { Vector3 inputV = Quaternion.Euler(0, 0, m_data[i].theta) * Vector3.down * m_data[i].distant * 0.001f; //m_vert.Add(new Vector3(-inputV.x,inputV.y,0)); m_vert.Add(inputV); if (debug) { Debug.DrawLine(transform.position + transform.forward * 0.2f, transform.position + transform.rotation * Quaternion.Euler(0, 0, m_data[i].theta) * -transform.up * 0.001f * m_data[i].distant, Color.black, 0.2f); if (m_data[i].quality > 0) { //Debug.DrawLine(transform.position - transform.forward * 0.5f, transform.position + transform.rotation * Quaternion.Euler(0, 0, m_data[i].theta) * -transform.up * 0.1f * m_data[i].quality, Color.green, 0.2f); } if (m_data[i].quality <= 0) { //Debug.DrawLine(transform.position - transform.forward * 0.5f, transform.position + transform.rotation * Quaternion.Euler(0, 0, m_data[i].theta) * -transform.up, Color.blue, 0.2f); } } } for (int i = 0; i < 719; i++) { triangles.Add(0); triangles.Add(i); triangles.Add(i + 1); } triangles.Add(0); triangles.Add(720); triangles.Add(1); m_mesh.SetVertices(m_vert); //m_mesh.SetIndices(m_ind.ToArray(), MeshTopology.Points, 0); m_mesh.SetTriangles(triangles.ToArray(), 0); m_mesh.UploadMeshData(false); m_meshfilter.mesh = m_mesh; m_datachanged = false; } } void GenMesh() { while (true) { int datacount = RplidarBinding.GetData(ref m_data); if (datacount == 0) { Thread.Sleep(20); } else { m_datachanged = true; } } } } }
27.985612
216
0.495373
[ "MIT" ]
Gigascapes/gigascapes-unity-client
GigaScapes/Assets/Scripts/Rplidar/RplidarMesherMap.cs
3,892
C#
using System; using System.Collections.Generic; namespace Matching_Brackets { class Program { static void Main(string[] args) { var input = Console.ReadLine(); var helpStack = new Stack<int>(); for (int i = 0; i < input.Length; i++) { if(input[i] == '(') { helpStack.Push(i); } else if (input[i] == ')') { var index = helpStack.Pop(); Console.WriteLine(input.Substring(index, i - index + 1)); } } } } }
23.5
77
0.402736
[ "MIT" ]
ValkovStoil/C--Advanced2019
Matching Brackets/Matching Brackets/Program.cs
660
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using System; using System.Collections.Generic; using System.Globalization; using CoreGraphics; using Foundation; using AppKit; using WebKit; using Microsoft.Identity.Client.UI; using Microsoft.Identity.Client.Utils; using Microsoft.Identity.Client.Platforms.Shared.Apple; using Microsoft.Identity.Client.PlatformsCommon.Interfaces; using Microsoft.Identity.Client.PlatformsCommon; namespace Microsoft.Identity.Client.Platforms.Mac { [Register("AuthenticationAgentNSWindowController")] internal class AuthenticationAgentNSWindowController : NSWindowController, IWebPolicyDelegate, IWebFrameLoadDelegate, INSWindowDelegate { private const int DEFAULT_WINDOW_WIDTH = 420; private const int DEFAULT_WINDOW_HEIGHT = 650; private WebView _webView; private NSProgressIndicator _progressIndicator; private NSWindow _callerWindow; private readonly string _url; private readonly string _callback; private readonly ReturnCodeCallback _callbackMethod; private readonly IDeviceAuthManager _deviceAuthManager; public delegate void ReturnCodeCallback(AuthorizationResult result); public AuthenticationAgentNSWindowController(string url, string callback, ReturnCodeCallback callbackMethod, IDeviceAuthManager deviceAuthManager) : base("PlaceholderNibNameToForceWindowLoad") { _url = url; _callback = callback; _callbackMethod = callbackMethod; _deviceAuthManager = deviceAuthManager; NSUrlProtocol.RegisterClass(new ObjCRuntime.Class(typeof(CoreCustomUrlProtocol))); } [Export("windowWillClose:")] public void WillClose(NSNotification notification) { NSApplication.SharedApplication.StopModal(); NSUrlProtocol.UnregisterClass(new ObjCRuntime.Class(typeof(CoreCustomUrlProtocol))); } public void Run(NSWindow callerWindow) { _callerWindow = callerWindow; RunModal(); } //webview only works on main runloop, not nested, so set up manual modal runloop void RunModal() { var window = Window; IntPtr session = NSApplication.SharedApplication.BeginModalSession(window); NSRunResponse result = NSRunResponse.Continues; while (result == NSRunResponse.Continues) { using (var pool = new NSAutoreleasePool()) { var nextEvent = NSApplication.SharedApplication.NextEvent( NSEventMask.AnyEvent, NSDate.DistantFuture, NSRunLoopMode.Default, true); //discard events that are for other windows, else they remain somewhat interactive if (nextEvent.Window != null && nextEvent.Window != window) { continue; } NSApplication.SharedApplication.SendEvent(nextEvent); // Run the window modally until there are no events to process result = (NSRunResponse)(long)NSApplication.SharedApplication.RunModalSession(session); // Give the main loop some time NSRunLoop.Current.LimitDateForMode(NSRunLoopMode.Default); } } NSApplication.SharedApplication.EndModalSession(session); } //largely ported from azure-activedirectory-library-for-objc //ADAuthenticationViewController.m public override void LoadWindow() { var parentWindow = _callerWindow ?? NSApplication.SharedApplication.MainWindow; CGRect windowRect; if (parentWindow != null) { windowRect = parentWindow.Frame; } else { // If we didn't get a parent window then center it in the screen windowRect = NSScreen.MainScreen.Frame; } // Calculate the center of the current main window so we can position our window in the center of it CGRect centerRect = CenterRect(windowRect, new CGRect(0, 0, DEFAULT_WINDOW_WIDTH, DEFAULT_WINDOW_HEIGHT)); var window = new NSWindow(centerRect, NSWindowStyle.Titled | NSWindowStyle.Closable, NSBackingStore.Buffered, true) { BackgroundColor = NSColor.WindowBackground, WeakDelegate = this, AccessibilityIdentifier = "SIGN_IN_WINDOW" }; var contentView = window.ContentView; contentView.AutoresizesSubviews = true; _webView = new WebView(contentView.Frame, null, null) { FrameLoadDelegate = this, PolicyDelegate = this, AutoresizingMask = NSViewResizingMask.HeightSizable | NSViewResizingMask.WidthSizable, AccessibilityIdentifier = "SIGN_IN_WEBVIEW" }; contentView.AddSubview(_webView); // On macOS there's a noticeable lag between the window showing and the page loading, so starting with the spinner // at least make it looks like something is happening. _progressIndicator = new NSProgressIndicator( new CGRect( (DEFAULT_WINDOW_WIDTH / 2) - 16, (DEFAULT_WINDOW_HEIGHT / 2) - 16, 32, 32)) { Style = NSProgressIndicatorStyle.Spinning, // Keep the item centered in the window even if it's resized. AutoresizingMask = NSViewResizingMask.MinXMargin | NSViewResizingMask.MaxXMargin | NSViewResizingMask.MinYMargin | NSViewResizingMask.MaxYMargin }; _progressIndicator.Hidden = false; _progressIndicator.StartAnimation(null); contentView.AddSubview(_progressIndicator); Window = window; _webView.MainFrameUrl = _url; } static CGRect CenterRect(CGRect rect1, CGRect rect2) { nfloat x = rect1.X + ((rect1.Width - rect2.Width) / 2); nfloat y = rect1.Y + ((rect1.Height - rect2.Height) / 2); x = x < 0 ? 0 : x; y = y < 0 ? 0 : y; rect2.X = x; rect2.X = y; return rect2; } [Export("webView:decidePolicyForNavigationAction:request:frame:decisionListener:")] void DecidePolicyForNavigation(WebView webView, NSDictionary actionInformation, NSUrlRequest request, WebFrame frame, NSObject decisionToken) { if (request == null) { WebView.DecideUse(decisionToken); return; } string requestUrlString = request.Url.ToString(); if (requestUrlString.StartsWith(BrokerConstants.BrowserExtPrefix, StringComparison.OrdinalIgnoreCase)) { var result = AuthorizationResult.FromStatus( AuthorizationStatus.ProtocolError, "Unsupported request", "Server is redirecting client to browser. This behavior is not yet defined on Mac OS X."); _callbackMethod(result); WebView.DecideIgnore(decisionToken); Close(); return; } if (requestUrlString.ToLower(CultureInfo.InvariantCulture).StartsWith(_callback.ToLower(CultureInfo.InvariantCulture), StringComparison.OrdinalIgnoreCase) || requestUrlString.StartsWith(BrokerConstants.BrowserExtInstallPrefix, StringComparison.OrdinalIgnoreCase)) { _callbackMethod(AuthorizationResult.FromUri(request.Url.ToString())); WebView.DecideIgnore(decisionToken); Close(); return; } if (requestUrlString.StartsWith(BrokerConstants.DeviceAuthChallengeRedirect, StringComparison.CurrentCultureIgnoreCase)) { var uri = new Uri(requestUrlString); string query = uri.Query; if (query.StartsWith("?", StringComparison.OrdinalIgnoreCase)) { query = query.Substring(1); } Dictionary<string, string> keyPair = CoreHelpers.ParseKeyValueList(query, '&', true, false, null); string responseHeader = DeviceAuthHelper.GetBypassChallengeResponse(keyPair); var newRequest = (NSMutableUrlRequest)request.MutableCopy(); newRequest.Url = new NSUrl(keyPair["SubmitUrl"]); newRequest[BrokerConstants.ChallengeResponseHeader] = responseHeader; webView.MainFrame.LoadRequest(newRequest); WebView.DecideIgnore(decisionToken); return; } if (!request.Url.AbsoluteString.Equals("about:blank", StringComparison.CurrentCultureIgnoreCase) && !request.Url.Scheme.Equals("https", StringComparison.CurrentCultureIgnoreCase)) { var result = AuthorizationResult.FromStatus( AuthorizationStatus.ErrorHttp, MsalError.NonHttpsRedirectNotSupported, MsalErrorMessage.NonHttpsRedirectNotSupported); _callbackMethod(result); WebView.DecideIgnore(decisionToken); Close(); } WebView.DecideUse(decisionToken); } [Export("webView:didFinishLoadForFrame:")] public void FinishedLoad(WebView sender, WebFrame forFrame) { Window.Title = _webView.MainFrameTitle ?? "Sign in"; _progressIndicator.Hidden = true; _progressIndicator.StopAnimation(null); } void CancelAuthentication() { _callbackMethod(AuthorizationResult.FromStatus(AuthorizationStatus.UserCancel)); } [Export("windowShouldClose:")] public bool WindowShouldClose(NSObject sender) { CancelAuthentication(); return true; } } }
39.203008
169
0.609705
[ "MIT" ]
CrustyJew/microsoft-authentication-library-for-dotnet
src/client/Microsoft.Identity.Client/Platforms/Mac/AuthenticationAgentNSWindowController.cs
10,430
C#
using System; using System.Xml.Serialization; using System.ComponentModel.DataAnnotations; using BroadWorksConnector.Ocip.Validation; using System.Collections.Generic; namespace BroadWorksConnector.Ocip.Models { /// <summary> /// Request to get a device profile file. /// The response is either SystemAccessDeviceFileGetResponse14sp8 or ErrorResponse. /// Replaced by: SystemAccessDeviceFileGetRequest16sp1 /// <see cref="SystemAccessDeviceFileGetResponse14sp8"/> /// <see cref="ErrorResponse"/> /// <see cref="SystemAccessDeviceFileGetRequest16sp1"/> /// </summary> [Serializable] [XmlRoot(Namespace = "")] [Groups(@"[{""__type"":""Sequence:#BroadWorksConnector.Ocip.Validation"",""id"":""ab0042aa512abc10edb3c55e4b416b0b:19423""}]")] public class SystemAccessDeviceFileGetRequest14sp8 : BroadWorksConnector.Ocip.Models.C.OCIRequest<BroadWorksConnector.Ocip.Models.SystemAccessDeviceFileGetResponse14sp8> { private string _deviceName; [XmlElement(ElementName = "deviceName", IsNullable = false, Namespace = "")] [Group(@"ab0042aa512abc10edb3c55e4b416b0b:19423")] [MinLength(1)] [MaxLength(40)] public string DeviceName { get => _deviceName; set { DeviceNameSpecified = true; _deviceName = value; } } [XmlIgnore] protected bool DeviceNameSpecified { get; set; } private string _fileFormat; [XmlElement(ElementName = "fileFormat", IsNullable = false, Namespace = "")] [Group(@"ab0042aa512abc10edb3c55e4b416b0b:19423")] [MinLength(1)] [MaxLength(128)] public string FileFormat { get => _fileFormat; set { FileFormatSpecified = true; _fileFormat = value; } } [XmlIgnore] protected bool FileFormatSpecified { get; set; } } }
31.34375
173
0.630608
[ "MIT" ]
cwmiller/broadworks-connector-net
BroadworksConnector/Ocip/Models/SystemAccessDeviceFileGetRequest14sp8.cs
2,006
C#
using System; using UnityEditor; using UnityEngine; namespace UnityEditor.XR.OpenXR.Features { static class CommonContent { public static readonly GUIContent k_Download = new GUIContent("Download"); public static readonly GUIContent k_WarningIcon = EditorGUIUtility.IconContent("Warning@2x"); public static readonly GUIContent k_ErrorIcon = EditorGUIUtility.IconContent("Error@2x"); public static readonly GUIContent k_HelpIcon = EditorGUIUtility.IconContent("_Help@2x"); public static readonly GUIContent k_Validation = new GUIContent("Your project has some settings that are incompatible with OpenXR. Click to open the project validator."); public static readonly GUIContent k_ValidationErrorIcon = new GUIContent("", CommonContent.k_ErrorIcon.image, k_Validation.text); public static readonly GUIContent k_ValidationWarningIcon = new GUIContent("", CommonContent.k_WarningIcon.image, k_Validation.text); } }
44.727273
178
0.76626
[ "Unlicense" ]
23SAMY23/Meet-and-Greet-MR
Meet & Greet MR (AR)/Library/PackageCache/com.unity.xr.openxr@1.2.8/Editor/FeatureSupport/OpenXRFeatureUICommon.cs
984
C#
using System; namespace Epinova.ArvatoPaymentGateway { internal class ResponseOrderDto { public CurrencyDto Currency { get; set; } public CheckoutCustomerDto Customer { get; set; } public bool HasSeparateDeliveryAddress { get; set; } public DateTime InsertedAt { get; set; } public OrderChannelTypeDto OrderChannelType { get; set; } public OrderDeliveryTypeDto OrderDeliveryType { get; set; } public Guid OrderId { get; set; } public OrderItemExtendedDto[] OrderItems { get; set; } public string OrderNumber { get; set; } public decimal TotalGrossAmount { get; set; } public decimal TotalNetAmount { get; set; } public DateTime UpdatedAt { get; set; } } }
36.47619
67
0.659269
[ "MIT" ]
kjetilmk/Epinova.ArvatoPaymentGateway
src/ResponseOrderDto.cs
768
C#
namespace Pandaros.Settlers.Extender { public interface IAfterSelectedWorld : ISettlersExtension { void AfterSelectedWorld(); } }
18.875
61
0.708609
[ "MIT" ]
Egaliterrier/Pandaros.Settlers
Pandaros.Settlers/Pandaros.Settlers/Extender/IAfterSelectedWorld.cs
153
C#
namespace FinalPoint.Services.Data { using System; using System.Collections.Generic; using System.Linq; using System.Security.Claims; using System.Threading.Tasks; using FinalPoint.Data.Common.Repositories; using FinalPoint.Data.Models; using FinalPoint.Data.Models.Enums; using FinalPoint.Web.ViewModels.AddDispose; using FinalPoint.Web.ViewModels.DTOs; using FinalPoint.Web.ViewModels.Shared; using Microsoft.AspNetCore.Identity; using Microsoft.EntityFrameworkCore; public class ParcelService : IParcelService { private readonly IDeletableEntityRepository<Parcel> parcelRep; private readonly IClientService clientService; private readonly IOfficeService officeService; private readonly IUserService userService; public ParcelService( IDeletableEntityRepository<Parcel> parcelRep, IClientService clientService, IOfficeService officeService, IUserService userService) { this.parcelRep = parcelRep; this.clientService = clientService; this.officeService = officeService; this.userService = userService; } public async Task<Parcel> CreateAsync(AddParcelInputModel input) { Parcel newParcel = new Parcel() { Description = input.Description, Width = input.Width, Height = input.Height, Length = input.Length, Weight = input.Weight, NumberOfParts = input.NumberOfParts, HasCashOnDelivery = input.HasCashOnDelivery, CashOnDeliveryPrice = input.CashOnDeliveryPrice, IsFragile = input.IsFragile, DontPaletize = input.DontPaletize, SendingEmployee = input.SendingEmployee, CurrentOffice = input.CurrentOffice, SendingOffice = input.SendingOffice, ReceivingOfficeId = input.ReceivingOfficeId, ChargeType = input.ChargeType, DeliveryPrice = input.DeliveryPrice, }; newParcel.SenderId = await this.AddClient(input.SenderInputModel); newParcel.RecipentId = await this.AddClient(input.RecipentInputModel); await this.parcelRep.AddAsync(newParcel); await this.parcelRep.SaveChangesAsync(); return newParcel; } public async Task<bool> DisposeParcel(int parcelId, ClaimsPrincipal user) { var employee = this.userService.GetUserByClaimsPrincipal(user); var parcel = this.parcelRep .All() .Where(x => x.Id == parcelId) .FirstOrDefault(); if (parcel != null && parcel.CurrentOfficeId == employee.WorkOfficeId) { parcel.SendingEmployeeId = employee.WorkOfficeId; parcel.CurrentOfficeId = employee.WorkOfficeId; this.parcelRep.Delete(parcel); await this.parcelRep.SaveChangesAsync(); return true; } return false; } public async Task<bool> UpdateParcelCurrentOfficeByOfficeId(int parcelId, int newCurrentOfficeId) { var parcel = this.GetParcelById(parcelId); var newCurrentOffice = this.officeService.GetOfficeById(newCurrentOfficeId); if (parcel != null && newCurrentOffice != null) { parcel.CurrentOffice = newCurrentOffice; await this.parcelRep.SaveChangesAsync(); return true; } return false; } public async Task<bool> UpdateParcelCurrentOfficeByOfficePostcode(int parcelId, int newCurrentOfficePostcode) { var parcel = this.GetParcelById(parcelId); var newCurrentOffice = this.officeService.GetOfficeByPostcode(newCurrentOfficePostcode); if (parcel != null && newCurrentOffice != null) { parcel.CurrentOffice = newCurrentOffice; await this.parcelRep.SaveChangesAsync(); return true; } return false; } public ICollection<SingleParcelSearchShowPartialViewModel> SearchForParcels(int? parcelId, string firstName, string lastName, string phoneNumber, ClaimsPrincipal user, bool isDispose) { var employee = this.userService.GetUserByClaimsPrincipal(user); return this.parcelRep .All() .Include(x => x.CurrentOffice) .Include(x => x.SendingEmployee) .Include(x => x.SendingOffice) .ThenInclude(x => x.City) .Include(x => x.Sender) .Include(x => x.ReceivingOffice) .ThenInclude(x => x.City) .Include(x => x.Recipent) .Where(x => (parcelId != 0 ? x.Id == parcelId : true) && (firstName != "0" ? x.Recipent.FirstName == firstName : true) && (lastName != "0" ? x.Recipent.LastName == lastName : true) && (phoneNumber != "0" ? x.Recipent.PhoneNumber == phoneNumber : true) && (isDispose == true ? (x.ReceivingOfficeId == employee.WorkOfficeId) : true)) .Select(x => new SingleParcelSearchShowPartialViewModel() { DateReceived = x.CreatedOn, Id = x.Id, Description = x.Description, Width = x.Width, Height = x.Height, Length = x.Length, Weight = x.Weight, HasCashOnDelivery = x.HasCashOnDelivery, CashOnDeliveryPrice = x.CashOnDeliveryPrice, IsFragile = x.IsFragile, DontPaletize = x.DontPaletize, DeliveryPrice = x.DeliveryPrice, SendingEmployeeFullName = x.SendingEmployee.FullName, SendingOfficeCityName = x.SendingOffice.City.Name, SendingOfficeName = x.SendingOffice.Name, SendingOfficePostcode = x.SendingOffice.PostCode, SenderFullnameAndPhoneNumber = $"{x.Sender.FirstName} {x.Sender.LastName} - {x.Sender.PhoneNumber}", ReceivingOfficeCityName = x.ReceivingOffice.City.Name, ReceivingOfficePostcode = x.ReceivingOffice.PostCode, ReceivingOfficeName = x.ReceivingOffice.Name, RecipentFullnameAndPhoneNumber = $"{x.Recipent.FirstName} {x.Recipent.LastName} - {x.Recipent.PhoneNumber}", ReceivingOfficeId = x.ReceivingOffice.Id, CurrentOfficeId = x.CurrentOffice.Id, CurrentOfficeName = x.CurrentOffice.Name, CurrentOfficePostCode = x.CurrentOffice.PostCode, }).OrderByDescending(x => x.CurrentOfficeId == x.ReceivingOfficeId) .ToList(); } public SingleParcelSearchShowPartialViewModel GetSingleParcelInfoByParcelId(int parcelId) { return this.parcelRep .AllAsNoTrackingWithDeleted() .Include(x => x.CurrentOffice) .Include(x => x.SendingEmployee) .Include(x => x.SendingOffice) .ThenInclude(x => x.City) .Include(x => x.Sender) .Include(x => x.ReceivingOffice) .ThenInclude(x => x.City) .Include(x => x.Recipent) .Where(x => x.Id == parcelId) .Select(x => new SingleParcelSearchShowPartialViewModel() { DateReceived = x.CreatedOn, Id = x.Id, Description = x.Description, Width = x.Width, Height = x.Height, Length = x.Length, Weight = x.Weight, HasCashOnDelivery = x.HasCashOnDelivery, CashOnDeliveryPrice = x.CashOnDeliveryPrice, IsFragile = x.IsFragile, DontPaletize = x.DontPaletize, DeliveryPrice = x.DeliveryPrice, SendingEmployeeFullName = x.SendingEmployee.FullName, SendingOfficeCityName = x.SendingOffice.City.Name, SendingOfficeName = x.SendingOffice.Name, SendingOfficePostcode = x.SendingOffice.PostCode, SenderFullnameAndPhoneNumber = $"{x.Sender.FirstName} {x.Sender.LastName} - {x.Sender.PhoneNumber}", ReceivingOfficeCityName = x.ReceivingOffice.City.Name, ReceivingOfficePostcode = x.ReceivingOffice.PostCode, ReceivingOfficeName = x.ReceivingOffice.Name, RecipentFullnameAndPhoneNumber = $"{x.Recipent.FirstName} {x.Recipent.LastName} - {x.Recipent.PhoneNumber}", ReceivingOfficeId = x.ReceivingOffice.Id, CurrentOfficeId = x.CurrentOffice.Id, CurrentOfficeName = x.CurrentOffice.Name, CurrentOfficePostCode = x.CurrentOffice.PostCode, }) .FirstOrDefault(); } public ICollection<Parcel> GetAllParcelsFromTo(ProtocolType protocolType, int currentOfficeId, int officeFromId, int officeToId, bool withDisposed) { var currentOffice = this.officeService.GetOfficeById(currentOfficeId); var officeFrom = this.officeService.GetOfficeById(officeFromId); var officeTo = this.officeService.GetOfficeById(officeToId); var virtualOffice = this.officeService.GetVirtualOffice(); var officeIdsInRangeOfSortingCenter = this.officeService.GetAllOfficeIdsInRangeOfSortingCenterId(currentOfficeId); if (protocolType == ProtocolType.Loading) { var officeIdsInRangeOfTheOfficeToSortingCenter = this.officeService.GetAllOfficeIdsInRangeOfSortingCenterId(officeToId); var parcels = new HashSet<Parcel>(); if (withDisposed) { parcels = this.parcelRep .AllWithDeleted() .Include(x => x.Protocols) .ThenInclude(x => x.ResponsibleUser) .ToHashSet(); } else { parcels = this.parcelRep .All() .Include(x => x.Protocols) .ThenInclude(x => x.ResponsibleUser) .ToHashSet(); } parcels = parcels.Where( x => x.CurrentOfficeId == officeFromId && ( (currentOffice.OfficeType == OfficeType.Office // if we are loading up to a sorting center && officeTo.OfficeType == OfficeType.SortingCenter // if the sorting center we are loading to is the responsible sorting center of the curroffice && officeFrom.ResponsibleSortingCenterId == currentOffice.ResponsibleSortingCenterId) || ( // if the current office is a sorting center officeFrom.OfficeType == OfficeType.SortingCenter // if we are loading up to a sorting center && officeTo.OfficeType == OfficeType.SortingCenter // If the last protocol of the parcel is closed && (x.Protocols? .OrderByDescending(x => x.CreatedOn) .FirstOrDefault()? .Protocol?.IsClosed == true // If the parcel is in the current office // If there is no last protocol || (currentOfficeId == x.CurrentOfficeId && x.Protocols?.OrderByDescending(x => x.CreatedOn) .FirstOrDefault() == null))) || ( // if the current office is a sorting center currentOffice.OfficeType == OfficeType.SortingCenter // if we are loading up to an office && officeTo.OfficeType == OfficeType.Office //&& x.Protocols // .OrderByDescending(x => x.CreatedOn) // .FirstOrDefault() // .Protocol.IsClosed == true && officeIdsInRangeOfSortingCenter.Contains(x.ReceivingOfficeId) && x.ReceivingOfficeId == officeToId)) ) .ToHashSet(); return parcels; } else if (protocolType == ProtocolType.Unloading) { return this.parcelRep .All() .Where(x => x.CurrentOfficeId == virtualOffice.Id // If it is in the Virtual office // If the last protocol of the parcel is closed && x.Protocols.OrderByDescending(x => x.CreatedOn) .FirstOrDefault() .Protocol.IsClosed == true && ( // if the current office is a sorting center // if the parcel is from an office in its range (currentOffice.OfficeType == OfficeType.SortingCenter && officeIdsInRangeOfSortingCenter.Contains( x.Protocols .Where(p=>p.Protocol.IsClosed == true) .OrderByDescending(x => x.CreatedOn) .FirstOrDefault() .Protocol.OfficeFromId)) // if the current office is a sorting center || (currentOffice.OfficeType == OfficeType.SortingCenter // if the parcel was sent from a sorting center && x.Protocols .Where(p=>p.Protocol.IsClosed == true) .OrderByDescending(x=>x.CreatedOn) .FirstOrDefault() .Protocol .OfficeFrom .OfficeType == OfficeType.SortingCenter // if the parcels' receiving office is in the range of the current sorting center && (officeIdsInRangeOfSortingCenter.Contains(x.ReceivingOfficeId) // if the parcel is to the sorting center || x.ReceivingOfficeId == currentOfficeId)) || (currentOffice.OfficeType == OfficeType.Office && x.SendingOffice.OfficeType == OfficeType.Office && x.Protocols .Where(p => p.Protocol.IsClosed == true) .OrderByDescending(x => x.CreatedOn) .FirstOrDefault() .Protocol .OfficeFrom.OfficeType == OfficeType.SortingCenter && x.Protocols .Where(p => p.Protocol.IsClosed == true) .OrderByDescending(x => x.CreatedOn) .FirstOrDefault() .Protocol .OfficeFromId == x.ReceivingOffice.ResponsibleSortingCenterId) // if the current office is an office || (currentOffice.OfficeType == OfficeType.Office && x.Protocols .Where(p => p.Protocol.IsClosed == true) .OrderByDescending(x => x.CreatedOn) .FirstOrDefault() .Protocol .OfficeToId == currentOfficeId // if the parceels' last current office is the responsible sorting center of the receiving office && x.Protocols .Where(p => p.Protocol.IsClosed == true) .OrderByDescending(x => x.CreatedOn) .FirstOrDefault() .Protocol .OfficeFromId == currentOffice.ResponsibleSortingCenterId ))) .ToHashSet(); } else { throw new InvalidOperationException(); } } public ParcelCheckResultDto GetParcelAsParcelCheckResultDtoById(int parcelId) { return this.parcelRep .All() .Where(x => x.Id == parcelId) .Select(x=>new ParcelCheckResultDto{ Description = x.Description, NumberOfParts = x.NumberOfParts, SendingOffice = x.SendingOffice.Name, ReceivingOffice = x.ReceivingOffice.Name, Id = x.Id, }) .FirstOrDefault(); } public Parcel GetParcelById(int parcelId) { return this.parcelRep .All() .Where(x => x.Id == parcelId) .FirstOrDefault(); } public Parcel GetParcelWithOfficesAndCitiesById(int parcelId) { return this.parcelRep .AllAsNoTrackingWithDeleted() .Include(x => x.ReceivingOffice) .ThenInclude(x => x.City) .Include(x => x.SendingOffice) .ThenInclude(x => x.City) .Include(x => x.CurrentOffice) .ThenInclude(x => x.City) .Where(x => x.Id == parcelId) .FirstOrDefault(); } private async Task<int> AddClient(AddClientInputModel input) { if (!string.IsNullOrEmpty(input.FirstName) && !string.IsNullOrEmpty(input.LastName)) { var newClient = await this.clientService.CreateAsync(input); return newClient.Id; } else { return input.ClientId; } } } }
46.754587
191
0.47898
[ "MIT" ]
nikolaynikolaev013/FinalPoint
Services/FinalPoint.Services.Data/ParcelService.cs
20,387
C#
// Copyright (c) David Karnok & Contributors. // Licensed under the Apache 2.0 License. // See LICENSE file in the project root for full license information. using System.Threading.Tasks; namespace async_enumerable_dotnet.impl { internal sealed class TakeLast<T> : IAsyncEnumerable<T> { private readonly IAsyncEnumerable<T> _source; private readonly int _n; public TakeLast(IAsyncEnumerable<T> source, int n) { _source = source; _n = n; } public IAsyncEnumerator<T> GetAsyncEnumerator() { return new TakeLastEnumerator(_source.GetAsyncEnumerator(), _n); } private sealed class TakeLastEnumerator : IAsyncEnumerator<T> { private readonly IAsyncEnumerator<T> _source; private int _size; public T Current => _current; private ArrayQueue<T> _queue; private bool _once; private T _current; public TakeLastEnumerator(IAsyncEnumerator<T> source, int size) { _source = source; _size = size; _queue = new ArrayQueue<T>(16); } public ValueTask DisposeAsync() { if (_size == 0) { _queue.Release(); return new ValueTask(); } return _source.DisposeAsync(); } public async ValueTask<bool> MoveNextAsync() { for (; ; ) { if (_once) { if (_queue.Dequeue(out _current)) { return true; } return false; } while (await _source.MoveNextAsync()) { if (_size != 0) { _size--; } else { _queue.Dequeue(out _); } _queue.Enqueue(_source.Current); } _once = true; } } } } }
26.875
76
0.424524
[ "Apache-2.0" ]
glenringer/async-enumerable-dotnet
async-enumerable-dotnet/impl/TakeLast.cs
2,365
C#
using System.Data.Entity.ModelConfiguration; namespace BulkOperations.EntityFramework.Tests.Models.Mapping { public class vJobCandidateEmploymentMap : EntityTypeConfiguration<vJobCandidateEmployment> { public vJobCandidateEmploymentMap() { // Primary Key this.HasKey(t => t.JobCandidateID); // Properties this.Property(t => t.Emp_OrgName) .HasMaxLength(100); this.Property(t => t.Emp_JobTitle) .HasMaxLength(100); // Table & Column Mappings this.ToTable("vJobCandidateEmployment", "HumanResources"); this.Property(t => t.JobCandidateID).HasColumnName("JobCandidateID"); this.Property(t => t.Emp_StartDate).HasColumnName("Emp.StartDate"); this.Property(t => t.Emp_EndDate).HasColumnName("Emp.EndDate"); this.Property(t => t.Emp_OrgName).HasColumnName("Emp.OrgName"); this.Property(t => t.Emp_JobTitle).HasColumnName("Emp.JobTitle"); this.Property(t => t.Emp_Responsibility).HasColumnName("Emp.Responsibility"); this.Property(t => t.Emp_FunctionCategory).HasColumnName("Emp.FunctionCategory"); this.Property(t => t.Emp_IndustryCategory).HasColumnName("Emp.IndustryCategory"); this.Property(t => t.Emp_Loc_CountryRegion).HasColumnName("Emp.Loc.CountryRegion"); this.Property(t => t.Emp_Loc_State).HasColumnName("Emp.Loc.State"); this.Property(t => t.Emp_Loc_City).HasColumnName("Emp.Loc.City"); } } }
45.314286
95
0.641866
[ "MIT" ]
proff/BulkOperations
BulkOperations.EntityFramework.Tests/Models/Mapping/vJobCandidateEmploymentMap.cs
1,586
C#
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace Microsoft.DocAsCode.Build.Engine.Tests { using System; using System.Collections.Generic; using System.IO; using System.Linq; using Microsoft.DocAsCode.Build.Engine.Incrementals; using Microsoft.DocAsCode.Common; using Microsoft.DocAsCode.Plugins; using Xunit; [Trait("Owner", "jehuan")] [Collection("docfx STA")] public class PostProcessorsHandlerTest : IncrementalTestBase { private const string MetaAppendContent = "-meta"; private const string PrependIncrementalPhaseName = "TestIncrementalPostProcessing"; private static readonly PostProcessorsHandler PostProcessorsHandler = new PostProcessorsHandler(); private static readonly int MaxParallelism = Environment.ProcessorCount; [Fact] public void TestBasicScenario() { try { var manifest = JsonUtility.Deserialize<Manifest>(Path.GetFullPath("PostProcessors/Data/manifest_basic.json")); var outputFolder = GetRandomFolder(); PrepareOutput(outputFolder, "index"); SetDefaultFAL(manifest, outputFolder); PostProcessorsHandler.Handle(GetPostProcessors(typeof(AppendStringPostProcessor)), manifest, outputFolder); VerifyOutput(outputFolder, AppendStringPostProcessor.AppendString, "index"); } finally { EnvironmentContext.Clean(); } } [Fact] public void TestIncrementalBasicScenario() { try { const string intermediateFolderVariable = "%cache%"; var intermediateFolder = GetRandomFolder(); Environment.SetEnvironmentVariable("cache", intermediateFolder); var currentBuildInfo = new BuildInfo { DirectoryName = IncrementalUtility.CreateRandomDirectory(intermediateFolderVariable) }; var lastBuildInfo = new BuildInfo { DirectoryName = IncrementalUtility.CreateRandomDirectory(intermediateFolderVariable), PostProcessInfo = new PostProcessInfo() }; lastBuildInfo.PostProcessInfo.PostProcessorInfos.Add(new PostProcessorInfo { Name = typeof(AppendStringPostProcessor).Name }); // Exclude c, which is not incremental var preparedManifest = JsonUtility.Deserialize<Manifest>(Path.GetFullPath("PostProcessors/Data/manifest_incremental.json")); PrepareCachedOutput(intermediateFolderVariable, lastBuildInfo, AppendStringPostProcessor.AppendString, preparedManifest.Files, AppendStringPostProcessor.AdditionalExtensionString, "a", "b"); var postProcessors = GetPostProcessors(typeof(AppendStringPostProcessor)); var increContext = new IncrementalPostProcessorsContext(intermediateFolderVariable, currentBuildInfo, lastBuildInfo, postProcessors, true, MaxParallelism); // Check context Assert.True(increContext.ShouldTraceIncrementalInfo); Assert.True(increContext.IsIncremental); var increPostProcessorHandler = new PostProcessorsHandlerWithIncremental(PostProcessorsHandler, increContext); var manifest = JsonUtility.Deserialize<Manifest>(Path.GetFullPath("PostProcessors/Data/manifest_incremental.json")); var outputFolder = GetRandomFolder(); PrepareOutput(outputFolder, "a", "b", "c"); SetDefaultFAL(manifest, outputFolder); increPostProcessorHandler.Handle(postProcessors, manifest, outputFolder); // Check incremental flag Assert.Equal(3, manifest.Files.Count); Assert.True(manifest.Files.Single(i => i.SourceRelativePath == "a.md").IsIncremental); Assert.True(manifest.Files.Single(i => i.SourceRelativePath == "b.md").IsIncremental); Assert.False(manifest.Files.Single(i => i.SourceRelativePath == "c.md").IsIncremental); foreach (var file in manifest.Files) { Assert.True(file.OutputFiles.ContainsKey(AppendStringPostProcessor.AdditionalExtensionString)); } // Check output content VerifyOutput(outputFolder, AppendStringPostProcessor.AppendString, "a", "b", "c"); // Check cached PostProcessInfo Assert.NotNull(currentBuildInfo.PostProcessInfo); var postProcessorInfos = currentBuildInfo.PostProcessInfo.PostProcessorInfos; Assert.Equal(1, currentBuildInfo.PostProcessInfo.PostProcessorInfos.Count); Assert.Equal($"{typeof(AppendStringPostProcessor).Name}", postProcessorInfos[0].Name); Assert.Null(postProcessorInfos[0].IncrementalContextHash); var postProcessOutputs = currentBuildInfo.PostProcessInfo.PostProcessOutputs; Assert.Equal(6, postProcessOutputs.Count); // no change for *.mta.json, so not in cache. VerifyCachedOutput(Path.Combine(intermediateFolder, currentBuildInfo.DirectoryName), postProcessOutputs, AppendStringPostProcessor.AppendString, AppendStringPostProcessor.AdditionalExtensionString, "a", "b", "c"); // Check incremental info Assert.Equal(1, manifest.IncrementalInfo.Count); Assert.Equal(true, manifest.IncrementalInfo[0].Status.CanIncremental); Assert.Equal(IncrementalPhase.PostProcessing, manifest.IncrementalInfo[0].Status.IncrementalPhase); Assert.Equal("Can support incremental post processing.", manifest.IncrementalInfo[0].Status.Details); } finally { Environment.SetEnvironmentVariable("cache", null); EnvironmentContext.Clean(); } } [Fact] public void TestIncrementalWithFirstCannotIncrementalButSecondCanIncremental() { // | Should trace incremental info | Can incremental | // --------------------------------------------------------- // First | yes | no | // Second | yes | yes | try { var intermediateFolder = GetRandomFolder(); const string phaseName = PrependIncrementalPhaseName + "FirstCannotIncrementalButSecondCanIncremental"; var postProcessors = GetPostProcessors(typeof(AppendStringPostProcessor), typeof(AppendIntegerPostProcessor)); var appendString = $"{AppendStringPostProcessor.AppendString}{AppendIntegerPostProcessor.AppendInteger}"; IncrementalPostProcessorsContext increContext = null; IncrementalActions (phaseName, () => { // Step 1: trace intermediate info using (new LoggerPhaseScope(phaseName + "First")) { var currentBuildInfo = new BuildInfo { DirectoryName = IncrementalUtility.CreateRandomDirectory(intermediateFolder) }; increContext = new IncrementalPostProcessorsContext(intermediateFolder, currentBuildInfo, null, postProcessors, true, MaxParallelism); // Check context Assert.True(increContext.ShouldTraceIncrementalInfo); Assert.False(increContext.IsIncremental); var increPostProcessorHandler = new PostProcessorsHandlerWithIncremental(PostProcessorsHandler, increContext); var manifest = JsonUtility.Deserialize<Manifest>(Path.GetFullPath("PostProcessors/Data/manifest_incremental.json")); var outputFolder = GetRandomFolder(); PrepareOutput(outputFolder, "a", "b", "c"); SetDefaultFAL(manifest, outputFolder); increPostProcessorHandler.Handle(postProcessors, manifest, outputFolder); // Check incremental flag Assert.True(manifest.Files.All(f => f.IsIncremental == false)); // Check output content VerifyOutput(outputFolder, appendString, "a", "b", "c"); // Check cached PostProcessInfo Assert.NotNull(currentBuildInfo.PostProcessInfo); var postProcessorInfos = currentBuildInfo.PostProcessInfo.PostProcessorInfos; Assert.Equal(2, currentBuildInfo.PostProcessInfo.PostProcessorInfos.Count); Assert.Equal($"{typeof(AppendStringPostProcessor).Name}", postProcessorInfos[0].Name); Assert.Null(postProcessorInfos[0].IncrementalContextHash); Assert.Equal($"{typeof(AppendIntegerPostProcessor).Name}", postProcessorInfos[1].Name); Assert.Equal(AppendIntegerPostProcessor.HashValue, postProcessorInfos[1].IncrementalContextHash); Assert.NotNull(postProcessorInfos[1].ContextInfoFile); Assert.Equal(new List<string> { "a.html", "b.html", "c.html" }, JsonUtility.Deserialize<List<string>>(Path.Combine(Path.GetFullPath(intermediateFolder), currentBuildInfo.DirectoryName, postProcessorInfos[1].ContextInfoFile))); Assert.Equal(3, currentBuildInfo.PostProcessInfo.ManifestItems.Count); Assert.Equal<ManifestItem>(manifest.Files, currentBuildInfo.PostProcessInfo.ManifestItems); var postProcessOutputs = currentBuildInfo.PostProcessInfo.PostProcessOutputs; Assert.Equal(6, postProcessOutputs.Count); VerifyCachedOutput(Path.Combine(intermediateFolder, currentBuildInfo.DirectoryName), postProcessOutputs, appendString, AppendStringPostProcessor.AdditionalExtensionString, "a", "b", "c"); // Check log messages var logs = Listener.Items.Where(i => i.Phase.StartsWith(phaseName)).ToList(); Assert.Equal(3, logs.Count); Assert.True(logs.All(l => l.Message.Contains("is not in html format."))); } }, () => { // Step 2: incremental post process using (new LoggerPhaseScope(phaseName + "Second")) { var secondBuildInfo = new BuildInfo { DirectoryName = IncrementalUtility.CreateRandomDirectory(intermediateFolder) }; var dg = new DependencyGraph(); dg.ReportDependency(new[] { new DependencyItem("~/a.md", "~/include.md", "~/a.md", DependencyTypeName.Include) }); secondBuildInfo.Versions.Add(new BuildVersionInfo { Dependency = dg }); var lastBuildInfo = new BuildInfo { DirectoryName = Path.GetFileName(increContext.CurrentBaseDir), PostProcessInfo = increContext.CurrentInfo }; // Add warning from include dependency. lastBuildInfo.PostProcessInfo.MessageInfo.GetListener().WriteLine(new LogItem { File = "include.md", LogLevel = LogLevel.Warning, Message = "Invalid bookmark from include file.", Phase = phaseName }); increContext = new IncrementalPostProcessorsContext(intermediateFolder, secondBuildInfo, lastBuildInfo, postProcessors, true, MaxParallelism); // Check context Assert.True(increContext.ShouldTraceIncrementalInfo); Assert.True(increContext.IsIncremental); var increPostProcessorHandler = new PostProcessorsHandlerWithIncremental(PostProcessorsHandler, increContext); var manifest = JsonUtility.Deserialize<Manifest>(Path.GetFullPath("PostProcessors/Data/manifest_incremental.json")); var outputFolder = GetRandomFolder(); PrepareOutput(outputFolder, "a", "b", "c"); SetDefaultFAL(manifest, outputFolder); increPostProcessorHandler.Handle(postProcessors, manifest, outputFolder); // Check incremental flag Assert.Equal(3, manifest.Files.Count); Assert.True(manifest.Files.Single(i => i.SourceRelativePath == "a.md").IsIncremental); Assert.True(manifest.Files.Single(i => i.SourceRelativePath == "b.md").IsIncremental); Assert.False(manifest.Files.Single(i => i.SourceRelativePath == "c.md").IsIncremental); foreach (var file in manifest.Files) { Assert.True(file.OutputFiles.ContainsKey(AppendStringPostProcessor.AdditionalExtensionString)); } // Check output content VerifyOutput(outputFolder, appendString, "a", "b", "c"); // Check cached PostProcessInfo Assert.NotNull(secondBuildInfo.PostProcessInfo); var postProcessorInfos = secondBuildInfo.PostProcessInfo.PostProcessorInfos; Assert.Equal(2, secondBuildInfo.PostProcessInfo.PostProcessorInfos.Count); Assert.Equal($"{typeof(AppendStringPostProcessor).Name}", postProcessorInfos[0].Name); Assert.Null(postProcessorInfos[0].IncrementalContextHash); Assert.Equal($"{typeof(AppendIntegerPostProcessor).Name}", postProcessorInfos[1].Name); Assert.Equal(AppendIntegerPostProcessor.HashValue, postProcessorInfos[1].IncrementalContextHash); Assert.NotNull(postProcessorInfos[1].ContextInfoFile); Assert.Equal(new List<string> { "a.html", "b.html", "c.html" }, JsonUtility.Deserialize<List<string>>(Path.Combine(Path.GetFullPath(intermediateFolder), secondBuildInfo.DirectoryName, postProcessorInfos[1].ContextInfoFile))); Assert.Equal(3, secondBuildInfo.PostProcessInfo.ManifestItems.Count); Assert.Equal<ManifestItem>(manifest.Files, secondBuildInfo.PostProcessInfo.ManifestItems); var postProcessOutputs = secondBuildInfo.PostProcessInfo.PostProcessOutputs; Assert.Equal(6, postProcessOutputs.Count); VerifyCachedOutput(Path.Combine(intermediateFolder, secondBuildInfo.DirectoryName), postProcessOutputs, appendString, AppendStringPostProcessor.AdditionalExtensionString, "a", "b", "c"); // Check log messages var logs = Listener.Items.Where(i => i.Phase.StartsWith(phaseName)).ToList(); Assert.Equal(4, logs.Count); Assert.Equal(3, logs.Count(l => l.Message.Contains("is not in html format."))); Assert.Equal(1, logs.Count(l => l.Message.Contains("Invalid bookmark from include file."))); // Replay warning from include dependency. } }); } finally { EnvironmentContext.Clean(); } } [Fact] public void TestIncrementalWithFirstCanIncrementalButSecondCannotIncremental() { // | Should trace incremental info | Can incremental | // --------------------------------------------------------- // First | yes | yes | // Second | yes | no | try { // Step 1: trace intermediate info and post process incrementally var intermediateFolder = GetRandomFolder(); var currentBuildInfo = new BuildInfo { DirectoryName = IncrementalUtility.CreateRandomDirectory(intermediateFolder) }; var lastBuildInfo = new BuildInfo { DirectoryName = IncrementalUtility.CreateRandomDirectory(intermediateFolder), PostProcessInfo = new PostProcessInfo() }; lastBuildInfo.PostProcessInfo.PostProcessorInfos.Add(new PostProcessorInfo { Name = typeof(AppendStringPostProcessor).Name }); // Exclude c, which is not incremental var preparedManifest = JsonUtility.Deserialize<Manifest>(Path.GetFullPath("PostProcessors/Data/manifest_incremental.json")); PrepareCachedOutput(intermediateFolder, lastBuildInfo, AppendStringPostProcessor.AppendString, preparedManifest.Files, AppendStringPostProcessor.AdditionalExtensionString, "a", "b"); var postProcessors = GetPostProcessors(typeof(AppendStringPostProcessor)); var appendString = $"{AppendStringPostProcessor.AppendString}"; var increContext = new IncrementalPostProcessorsContext(intermediateFolder, currentBuildInfo, lastBuildInfo, postProcessors, true, MaxParallelism); // Check context Assert.True(increContext.ShouldTraceIncrementalInfo); Assert.True(increContext.IsIncremental); var increPostProcessorHandler = new PostProcessorsHandlerWithIncremental(PostProcessorsHandler, increContext); var manifest = JsonUtility.Deserialize<Manifest>(Path.GetFullPath("PostProcessors/Data/manifest_incremental.json")); var outputFolder = GetRandomFolder(); PrepareOutput(outputFolder, "a", "b", "c"); SetDefaultFAL(manifest, outputFolder); increPostProcessorHandler.Handle(postProcessors, manifest, outputFolder); // Check incremental post processor host var host = ((ISupportIncrementalPostProcessor)postProcessors.Single().Processor).PostProcessorHost; Assert.NotNull(host); Assert.True(host.ShouldTraceIncrementalInfo); Assert.True(host.IsIncremental); Assert.Equal(3, host.SourceFileInfos.Count); Assert.Equal("Conceptual", host.SourceFileInfos.Select(f => f.DocumentType).Distinct().Single()); Assert.NotNull(host.SourceFileInfos.Single(i => i.SourceRelativePath == "a.md")); Assert.NotNull(host.SourceFileInfos.Single(i => i.SourceRelativePath == "b.md")); Assert.NotNull(host.SourceFileInfos.Single(i => i.SourceRelativePath == "c.md")); // Check incremental flag Assert.Equal(3, manifest.Files.Count); Assert.True(manifest.Files.Single(i => i.SourceRelativePath == "a.md").IsIncremental); Assert.True(manifest.Files.Single(i => i.SourceRelativePath == "b.md").IsIncremental); Assert.False(manifest.Files.Single(i => i.SourceRelativePath == "c.md").IsIncremental); foreach (var file in manifest.Files) { Assert.True(file.OutputFiles.ContainsKey(AppendStringPostProcessor.AdditionalExtensionString)); } // Check output content VerifyOutput(outputFolder, appendString, "a", "b", "c"); // Check cached PostProcessInfo Assert.NotNull(currentBuildInfo.PostProcessInfo); var postProcessorInfos = currentBuildInfo.PostProcessInfo.PostProcessorInfos; Assert.Equal(1, currentBuildInfo.PostProcessInfo.PostProcessorInfos.Count); Assert.Equal($"{typeof(AppendStringPostProcessor).Name}", postProcessorInfos[0].Name); Assert.Null(postProcessorInfos[0].IncrementalContextHash); Assert.Equal<ManifestItem>(manifest.Files, currentBuildInfo.PostProcessInfo.ManifestItems); var postProcessOutputs = currentBuildInfo.PostProcessInfo.PostProcessOutputs; Assert.Equal(6, postProcessOutputs.Count); VerifyCachedOutput(Path.Combine(intermediateFolder, currentBuildInfo.DirectoryName), postProcessOutputs, appendString, AppendStringPostProcessor.AdditionalExtensionString, "a", "b", "c"); // Step 2: disable incremental post process const bool enableIncremental = false; currentBuildInfo = new BuildInfo { DirectoryName = IncrementalUtility.CreateRandomDirectory(intermediateFolder) }; lastBuildInfo = new BuildInfo { DirectoryName = Path.GetFileName(increContext.CurrentBaseDir), PostProcessInfo = increContext.CurrentInfo }; increContext = new IncrementalPostProcessorsContext(intermediateFolder, currentBuildInfo, lastBuildInfo, postProcessors, enableIncremental, MaxParallelism); // Check context Assert.True(increContext.ShouldTraceIncrementalInfo); Assert.False(increContext.IsIncremental); increPostProcessorHandler = new PostProcessorsHandlerWithIncremental(PostProcessorsHandler, increContext); manifest = JsonUtility.Deserialize<Manifest>(Path.GetFullPath("PostProcessors/Data/manifest_incremental.json")); outputFolder = GetRandomFolder(); PrepareOutput(outputFolder, "a", "b", "c"); SetDefaultFAL(manifest, outputFolder); increPostProcessorHandler.Handle(postProcessors, manifest, outputFolder); // Check incremental post processor host host = ((ISupportIncrementalPostProcessor)postProcessors.Single().Processor).PostProcessorHost; Assert.NotNull(host); Assert.True(host.ShouldTraceIncrementalInfo); Assert.False(host.IsIncremental); Assert.Equal(3, host.SourceFileInfos.Count); Assert.Equal("Conceptual", host.SourceFileInfos.Select(f => f.DocumentType).Distinct().Single()); Assert.NotNull(host.SourceFileInfos.Single(i => i.SourceRelativePath == "a.md")); Assert.NotNull(host.SourceFileInfos.Single(i => i.SourceRelativePath == "b.md")); Assert.NotNull(host.SourceFileInfos.Single(i => i.SourceRelativePath == "c.md")); // Check incremental flag Assert.True(manifest.Files.All(f => f.IsIncremental == false)); // Check output content VerifyOutput(outputFolder, appendString, "a", "b", "c"); // Check cached PostProcessInfo Assert.NotNull(currentBuildInfo.PostProcessInfo); postProcessorInfos = currentBuildInfo.PostProcessInfo.PostProcessorInfos; Assert.Equal(1, currentBuildInfo.PostProcessInfo.PostProcessorInfos.Count); Assert.Equal($"{typeof(AppendStringPostProcessor).Name}", postProcessorInfos[0].Name); Assert.Null(postProcessorInfos[0].IncrementalContextHash); Assert.Equal<ManifestItem>(manifest.Files, currentBuildInfo.PostProcessInfo.ManifestItems); postProcessOutputs = currentBuildInfo.PostProcessInfo.PostProcessOutputs; Assert.Equal(6, postProcessOutputs.Count); VerifyCachedOutput(Path.Combine(intermediateFolder, currentBuildInfo.DirectoryName), postProcessOutputs, appendString, AppendStringPostProcessor.AdditionalExtensionString, "a", "b", "c"); } finally { EnvironmentContext.Clean(); } } [Fact] public void TestIncrementalWithFirstCanIncrementalButSecondShouldnotTraceIncrementalInfo() { // | Should trace incremental info | Can incremental | // --------------------------------------------------------- // First | yes | yes | // Second | no | no | try { // Step 1: trace intermediate info and post process incrementally var intermediateFolder = GetRandomFolder(); var currentBuildInfo = new BuildInfo { DirectoryName = IncrementalUtility.CreateRandomDirectory(intermediateFolder) }; var lastBuildInfo = new BuildInfo { DirectoryName = IncrementalUtility.CreateRandomDirectory(intermediateFolder), PostProcessInfo = new PostProcessInfo() }; lastBuildInfo.PostProcessInfo.PostProcessorInfos.Add(new PostProcessorInfo { Name = typeof(AppendStringPostProcessor).Name }); // Exclude c, which is not incremental var preparedManifest = JsonUtility.Deserialize<Manifest>(Path.GetFullPath("PostProcessors/Data/manifest_incremental.json")); PrepareCachedOutput(intermediateFolder, lastBuildInfo, AppendStringPostProcessor.AppendString, preparedManifest.Files, AppendStringPostProcessor.AdditionalExtensionString, "a", "b"); var postProcessors = GetPostProcessors(typeof(AppendStringPostProcessor)); var appendString = $"{AppendStringPostProcessor.AppendString}"; var increContext = new IncrementalPostProcessorsContext(intermediateFolder, currentBuildInfo, lastBuildInfo, postProcessors, true, MaxParallelism); // Check context Assert.True(increContext.ShouldTraceIncrementalInfo); Assert.True(increContext.IsIncremental); var increPostProcessorHandler = new PostProcessorsHandlerWithIncremental(PostProcessorsHandler, increContext); var manifest = JsonUtility.Deserialize<Manifest>(Path.GetFullPath("PostProcessors/Data/manifest_incremental.json")); var outputFolder = GetRandomFolder(); PrepareOutput(outputFolder, "a", "b", "c"); SetDefaultFAL(manifest, outputFolder); increPostProcessorHandler.Handle(postProcessors, manifest, outputFolder); // Check incremental flag Assert.Equal(3, manifest.Files.Count); Assert.True(manifest.Files.Single(i => i.SourceRelativePath == "a.md").IsIncremental); Assert.True(manifest.Files.Single(i => i.SourceRelativePath == "b.md").IsIncremental); Assert.False(manifest.Files.Single(i => i.SourceRelativePath == "c.md").IsIncremental); foreach (var file in manifest.Files) { Assert.True(file.OutputFiles.ContainsKey(AppendStringPostProcessor.AdditionalExtensionString)); } // Check output content VerifyOutput(outputFolder, appendString, "a", "b", "c"); // Check cached PostProcessInfo Assert.NotNull(currentBuildInfo.PostProcessInfo); var postProcessorInfos = currentBuildInfo.PostProcessInfo.PostProcessorInfos; Assert.Equal(1, currentBuildInfo.PostProcessInfo.PostProcessorInfos.Count); Assert.Equal($"{typeof(AppendStringPostProcessor).Name}", postProcessorInfos[0].Name); Assert.Null(postProcessorInfos[0].IncrementalContextHash); Assert.Equal<ManifestItem>(manifest.Files, currentBuildInfo.PostProcessInfo.ManifestItems); var postProcessOutputs = currentBuildInfo.PostProcessInfo.PostProcessOutputs; Assert.Equal(6, postProcessOutputs.Count); VerifyCachedOutput(Path.Combine(intermediateFolder, currentBuildInfo.DirectoryName), postProcessOutputs, appendString, AppendStringPostProcessor.AdditionalExtensionString, "a", "b", "c"); // Step 2: should not trace inter incremental post process currentBuildInfo = new BuildInfo { DirectoryName = IncrementalUtility.CreateRandomDirectory(intermediateFolder) }; lastBuildInfo = new BuildInfo { DirectoryName = Path.GetFileName(increContext.CurrentBaseDir), PostProcessInfo = increContext.CurrentInfo }; // Add post processor which not supports incremental postProcessors.AddRange(GetPostProcessors(typeof(NonIncrementalPostProcessor))); increContext = new IncrementalPostProcessorsContext(intermediateFolder, currentBuildInfo, lastBuildInfo, postProcessors, true, MaxParallelism); // Check context Assert.False(increContext.ShouldTraceIncrementalInfo); Assert.False(increContext.IsIncremental); increPostProcessorHandler = new PostProcessorsHandlerWithIncremental(PostProcessorsHandler, increContext); manifest = JsonUtility.Deserialize<Manifest>(Path.GetFullPath("PostProcessors/Data/manifest_incremental.json")); outputFolder = GetRandomFolder(); PrepareOutput(outputFolder, "a", "b", "c"); SetDefaultFAL(manifest, outputFolder); increPostProcessorHandler.Handle(postProcessors, manifest, outputFolder); // Check incremental flag Assert.True(manifest.Files.All(f => f.IsIncremental == false)); // Check output content VerifyOutput(outputFolder, appendString, "a", "b", "c"); // Check cached PostProcessInfo should be null Assert.Null(currentBuildInfo.PostProcessInfo); } finally { EnvironmentContext.Clean(); } } [Fact] public void TestIncrementalWithFileInDirectory() { try { var intermediateFolder = GetRandomFolder(); var currentBuildInfo = new BuildInfo { DirectoryName = IncrementalUtility.CreateRandomDirectory(intermediateFolder) }; var lastBuildInfo = new BuildInfo { DirectoryName = IncrementalUtility.CreateRandomDirectory(intermediateFolder), PostProcessInfo = new PostProcessInfo() }; lastBuildInfo.PostProcessInfo.PostProcessorInfos.Add(new PostProcessorInfo { Name = typeof(AppendStringPostProcessor).Name }); // Exclude c, which is not incremental var preparedManifest = JsonUtility.Deserialize<Manifest>(Path.GetFullPath("PostProcessors/Data/manifest_incremental_with_directory.json")); PrepareCachedOutput(intermediateFolder, lastBuildInfo, AppendStringPostProcessor.AppendString, preparedManifest.Files, AppendStringPostProcessor.AdditionalExtensionString, "a/b"); var postProcessors = GetPostProcessors(typeof(AppendStringPostProcessor)); var increContext = new IncrementalPostProcessorsContext(intermediateFolder, currentBuildInfo, lastBuildInfo, postProcessors, true, MaxParallelism); // Check context Assert.True(increContext.ShouldTraceIncrementalInfo); Assert.True(increContext.IsIncremental); var increPostProcessorHandler = new PostProcessorsHandlerWithIncremental(PostProcessorsHandler, increContext); var manifest = JsonUtility.Deserialize<Manifest>(Path.GetFullPath("PostProcessors/Data/manifest_incremental_with_directory.json")); var outputFolder = GetRandomFolder(); PrepareOutput(outputFolder, "a/b", "c"); CreateFile("breadcrumb.json", "breadcrumb", outputFolder); SetDefaultFAL(manifest, outputFolder); increPostProcessorHandler.Handle(postProcessors, manifest, outputFolder); // Check incremental flag Assert.Equal(3, manifest.Files.Count); Assert.True(manifest.Files.Single(i => i.SourceRelativePath == "a/b.md").IsIncremental); Assert.False(manifest.Files.Single(i => i.SourceRelativePath == "c.md").IsIncremental); Assert.False(manifest.Files.Single(i => i.SourceRelativePath == "breadcrumb.json").IsIncremental); // Check output content VerifyOutput(outputFolder, AppendStringPostProcessor.AppendString, "a/b", "c"); Assert.Equal("breadcrumb", EnvironmentContext.FileAbstractLayer.ReadAllText("breadcrumb.json")); // Check cached PostProcessInfo Assert.NotNull(currentBuildInfo.PostProcessInfo); var postProcessorInfos = currentBuildInfo.PostProcessInfo.PostProcessorInfos; Assert.Equal(1, currentBuildInfo.PostProcessInfo.PostProcessorInfos.Count); Assert.Equal($"{typeof(AppendStringPostProcessor).Name}", postProcessorInfos[0].Name); Assert.Null(postProcessorInfos[0].IncrementalContextHash); Assert.Equal<ManifestItem>(manifest.Files, currentBuildInfo.PostProcessInfo.ManifestItems); var postProcessOutputs = currentBuildInfo.PostProcessInfo.PostProcessOutputs; Assert.Equal(4, postProcessOutputs.Count); VerifyCachedOutput(Path.Combine(intermediateFolder, currentBuildInfo.DirectoryName), postProcessOutputs, AppendStringPostProcessor.AppendString, AppendStringPostProcessor.AdditionalExtensionString, "a/b", "c"); } finally { EnvironmentContext.Clean(); } } [Fact] public void TestIncrementalWithContextChange() { try { var intermediateFolder = GetRandomFolder(); var currentBuildInfo = new BuildInfo { DirectoryName = IncrementalUtility.CreateRandomDirectory(intermediateFolder) }; var lastBuildInfo = new BuildInfo { DirectoryName = IncrementalUtility.CreateRandomDirectory(intermediateFolder), PostProcessInfo = new PostProcessInfo() }; lastBuildInfo.PostProcessInfo.PostProcessorInfos.Add(new PostProcessorInfo { Name = typeof(AppendIntegerPostProcessor).Name }); // Add post processor which has changed context hash var postProcessors = GetPostProcessors(typeof(AppendIntegerPostProcessor)); var increContext = new IncrementalPostProcessorsContext(intermediateFolder, currentBuildInfo, lastBuildInfo, postProcessors, true, MaxParallelism); // Check context Assert.True(increContext.ShouldTraceIncrementalInfo); Assert.False(increContext.IsIncremental); var increPostProcessorHandler = new PostProcessorsHandlerWithIncremental(PostProcessorsHandler, increContext); var manifest = JsonUtility.Deserialize<Manifest>(Path.GetFullPath("PostProcessors/Data/manifest_incremental.json")); var outputFolder = GetRandomFolder(); PrepareOutput(outputFolder, "a", "b", "c"); SetDefaultFAL(manifest, outputFolder); increPostProcessorHandler.Handle(postProcessors, manifest, outputFolder); // Check incremental flag Assert.True(manifest.Files.All(f => f.IsIncremental == false)); // Check output content VerifyOutput(outputFolder, AppendIntegerPostProcessor.AppendInteger, "a", "b", "c"); // Check cached PostProcessInfo Assert.NotNull(currentBuildInfo.PostProcessInfo); var postProcessorInfos = currentBuildInfo.PostProcessInfo.PostProcessorInfos; Assert.Equal(1, currentBuildInfo.PostProcessInfo.PostProcessorInfos.Count); Assert.Equal($"{typeof(AppendIntegerPostProcessor).Name}", postProcessorInfos[0].Name); Assert.NotNull(postProcessorInfos[0].IncrementalContextHash); var postProcessOutputs = currentBuildInfo.PostProcessInfo.PostProcessOutputs; Assert.Equal(3, postProcessOutputs.Count); VerifyCachedOutput(Path.Combine(intermediateFolder, currentBuildInfo.DirectoryName), postProcessOutputs, AppendIntegerPostProcessor.AppendInteger, null, "a", "b", "c"); Assert.Equal<ManifestItem>(manifest.Files, currentBuildInfo.PostProcessInfo.ManifestItems); // Check incremental info Assert.Equal(1, manifest.IncrementalInfo.Count); Assert.Equal(false, manifest.IncrementalInfo[0].Status.CanIncremental); Assert.Equal(IncrementalPhase.PostProcessing, manifest.IncrementalInfo[0].Status.IncrementalPhase); Assert.Equal(@"Cannot support incremental post processing, the reason is: post processor info changed from last {""Name"":""AppendIntegerPostProcessor""} to current {""Name"":""AppendIntegerPostProcessor"",""IncrementalContextHash"":""1024""}.", manifest.IncrementalInfo[0].Status.Details); } finally { EnvironmentContext.Clean(); } } [Fact] public void TestIncrementalWithDisableFlag() { try { var intermediateFolder = GetRandomFolder(); var currentBuildInfo = new BuildInfo { DirectoryName = IncrementalUtility.CreateRandomDirectory(intermediateFolder) }; var lastBuildInfo = new BuildInfo { DirectoryName = IncrementalUtility.CreateRandomDirectory(intermediateFolder), PostProcessInfo = new PostProcessInfo() }; lastBuildInfo.PostProcessInfo.PostProcessorInfos.Add(new PostProcessorInfo { Name = typeof(AppendStringPostProcessor).Name }); // Set enable incremental post process flag to false var postProcessors = GetPostProcessors(typeof(AppendStringPostProcessor)); var increContext = new IncrementalPostProcessorsContext(intermediateFolder, currentBuildInfo, lastBuildInfo, postProcessors, false, MaxParallelism); // Check context Assert.True(increContext.ShouldTraceIncrementalInfo); Assert.False(increContext.IsIncremental); Assert.False(increContext.EnableIncremental); var increPostProcessorHandler = new PostProcessorsHandlerWithIncremental(PostProcessorsHandler, increContext); var manifest = JsonUtility.Deserialize<Manifest>(Path.GetFullPath("PostProcessors/Data/manifest_incremental.json")); var outputFolder = GetRandomFolder(); PrepareOutput(outputFolder, "a", "b", "c"); SetDefaultFAL(manifest, outputFolder); increPostProcessorHandler.Handle(postProcessors, manifest, outputFolder); // Check incremental flag Assert.True(manifest.Files.All(f => f.IsIncremental == false)); // Check output content VerifyOutput(outputFolder, AppendStringPostProcessor.AppendString, "a", "b", "c"); // Check cached PostProcessInfo Assert.NotNull(currentBuildInfo.PostProcessInfo); var postProcessorInfos = currentBuildInfo.PostProcessInfo.PostProcessorInfos; Assert.Equal(1, currentBuildInfo.PostProcessInfo.PostProcessorInfos.Count); Assert.Equal($"{typeof(AppendStringPostProcessor).Name}", postProcessorInfos[0].Name); Assert.Null(postProcessorInfos[0].IncrementalContextHash); var postProcessOutputs = currentBuildInfo.PostProcessInfo.PostProcessOutputs; Assert.Equal(6, postProcessOutputs.Count); VerifyCachedOutput(Path.Combine(intermediateFolder, currentBuildInfo.DirectoryName), postProcessOutputs, AppendStringPostProcessor.AppendString, AppendStringPostProcessor.AdditionalExtensionString, "a", "b", "c"); Assert.Equal<ManifestItem>(manifest.Files, currentBuildInfo.PostProcessInfo.ManifestItems); // Check incremental info Assert.Equal(1, manifest.IncrementalInfo.Count); Assert.Equal(false, manifest.IncrementalInfo[0].Status.CanIncremental); Assert.Equal(IncrementalPhase.PostProcessing, manifest.IncrementalInfo[0].Status.IncrementalPhase); Assert.Equal("Cannot support incremental post processing, the reason is: it's disabled.", manifest.IncrementalInfo[0].Status.Details); } finally { EnvironmentContext.Clean(); } } [Fact] public void TestIncrementalWithNullLastPostProcessInfo() { try { var intermediateFolder = GetRandomFolder(); var currentBuildInfo = new BuildInfo { DirectoryName = IncrementalUtility.CreateRandomDirectory(intermediateFolder) }; // Pass null as last build info var postProcessors = GetPostProcessors(typeof(AppendStringPostProcessor)); var increContext = new IncrementalPostProcessorsContext(intermediateFolder, currentBuildInfo, null, postProcessors, true, MaxParallelism); // Check context Assert.True(increContext.ShouldTraceIncrementalInfo); Assert.False(increContext.IsIncremental); var increPostProcessorHandler = new PostProcessorsHandlerWithIncremental(PostProcessorsHandler, increContext); var manifest = JsonUtility.Deserialize<Manifest>(Path.GetFullPath("PostProcessors/Data/manifest_incremental.json")); var outputFolder = GetRandomFolder(); PrepareOutput(outputFolder, "a", "b", "c"); SetDefaultFAL(manifest, outputFolder); increPostProcessorHandler.Handle(postProcessors, manifest, outputFolder); // Check incremental flag Assert.True(manifest.Files.All(f => f.IsIncremental == false)); // Check output content VerifyOutput(outputFolder, AppendStringPostProcessor.AppendString, "a", "b", "c"); // Check cached PostProcessInfo Assert.NotNull(currentBuildInfo.PostProcessInfo); var postProcessorInfos = currentBuildInfo.PostProcessInfo.PostProcessorInfos; Assert.Equal(1, currentBuildInfo.PostProcessInfo.PostProcessorInfos.Count); Assert.Equal($"{typeof(AppendStringPostProcessor).Name}", postProcessorInfos[0].Name); Assert.Null(postProcessorInfos[0].IncrementalContextHash); var postProcessOutputs = currentBuildInfo.PostProcessInfo.PostProcessOutputs; Assert.Equal(6, postProcessOutputs.Count); VerifyCachedOutput(Path.Combine(intermediateFolder, currentBuildInfo.DirectoryName), postProcessOutputs, AppendStringPostProcessor.AppendString, AppendStringPostProcessor.AdditionalExtensionString, "a", "b", "c"); Assert.Equal<ManifestItem>(manifest.Files, currentBuildInfo.PostProcessInfo.ManifestItems); // Check incremental info Assert.Equal(1, manifest.IncrementalInfo.Count); Assert.Equal(false, manifest.IncrementalInfo[0].Status.CanIncremental); Assert.Equal(IncrementalPhase.PostProcessing, manifest.IncrementalInfo[0].Status.IncrementalPhase); Assert.Equal("Cannot support incremental post processing, the reason is: last post processor info is null.", manifest.IncrementalInfo[0].Status.Details); } finally { EnvironmentContext.Clean(); } } [Fact] public void TestIncrementalWithNotSupportIncrementalPostProcessor() { try { var intermediateFolder = GetRandomFolder(); var currentBuildInfo = new BuildInfo { DirectoryName = IncrementalUtility.CreateRandomDirectory(intermediateFolder) }; var lastBuildInfo = new BuildInfo { DirectoryName = IncrementalUtility.CreateRandomDirectory(intermediateFolder), PostProcessInfo = new PostProcessInfo() }; lastBuildInfo.PostProcessInfo.PostProcessorInfos.Add(new PostProcessorInfo { Name = typeof(NonIncrementalPostProcessor).Name }); // Add not post processor which not support incremental var postProcessors = GetPostProcessors(typeof(NonIncrementalPostProcessor)); var increContext = new IncrementalPostProcessorsContext(intermediateFolder, currentBuildInfo, lastBuildInfo, postProcessors, true, MaxParallelism); // Check context Assert.False(increContext.ShouldTraceIncrementalInfo); Assert.False(increContext.IsIncremental); var increPostProcessorHandler = new PostProcessorsHandlerWithIncremental(PostProcessorsHandler, increContext); var manifest = JsonUtility.Deserialize<Manifest>(Path.GetFullPath("PostProcessors/Data/manifest_incremental.json")); var outputFolder = GetRandomFolder(); PrepareOutput(outputFolder, "a", "b", "c"); SetDefaultFAL(manifest, outputFolder); increPostProcessorHandler.Handle(postProcessors, manifest, outputFolder); // Check incremental flag Assert.True(manifest.Files.All(f => f.IsIncremental == false)); // Check output content should append nothing VerifyOutput(outputFolder, string.Empty, "a", "b", "c"); // Check cached PostProcessInfo is null Assert.Null(currentBuildInfo.PostProcessInfo); // Check incremental info Assert.Equal(1, manifest.IncrementalInfo.Count); Assert.Equal(false, manifest.IncrementalInfo[0].Status.CanIncremental); Assert.Equal(IncrementalPhase.PostProcessing, manifest.IncrementalInfo[0].Status.IncrementalPhase); Assert.Equal("Cannot support incremental post processing, the reason is: should not trace intermediate info.", manifest.IncrementalInfo[0].Status.Details); } finally { EnvironmentContext.Clean(); } } [Fact] public void TestIncrementalSplitScenario() { try { const string intermediateFolderVariable = "%cache%"; var intermediateFolder = GetRandomFolder(); Environment.SetEnvironmentVariable("cache", intermediateFolder); string phaseName = "TestIncrementalSplitScenario"; var currentBuildInfo = new BuildInfo { DirectoryName = IncrementalUtility.CreateRandomDirectory(intermediateFolderVariable) }; var lastBuildInfo = new BuildInfo { DirectoryName = IncrementalUtility.CreateRandomDirectory(intermediateFolderVariable), PostProcessInfo = new PostProcessInfo() }; lastBuildInfo.PostProcessInfo.PostProcessorInfos.Add(new PostProcessorInfo { Name = typeof(AppendStringPostProcessor).Name }); lastBuildInfo.PostProcessInfo.MessageInfo.GetListener().WriteLine(new LogItem { File = "CatLibrary.Cat-2.yml", LogLevel = LogLevel.Warning, Message = "Invalid bookmark.", Phase = phaseName }); // Exclude c, which is not incremental var preparedManifest = JsonUtility.Deserialize<Manifest>(Path.GetFullPath("PostProcessors/Data/manifest_incremental_split_case.json")); PrepareCachedOutput(intermediateFolderVariable, lastBuildInfo, AppendStringPostProcessor.AppendString, preparedManifest.Files, AppendStringPostProcessor.AdditionalExtensionString, "CatLibrary.Cat-2", "CatLibrary.Cat-2.Name"); var postProcessors = GetPostProcessors(typeof(AppendStringPostProcessor)); var increContext = new IncrementalPostProcessorsContext(intermediateFolderVariable, currentBuildInfo, lastBuildInfo, postProcessors, true, MaxParallelism); // Check context Assert.True(increContext.ShouldTraceIncrementalInfo); Assert.True(increContext.IsIncremental); var increPostProcessorHandler = new PostProcessorsHandlerWithIncremental(PostProcessorsHandler, increContext); var manifest = JsonUtility.Deserialize<Manifest>(Path.GetFullPath("PostProcessors/Data/manifest_incremental_split_case.json")); var outputFolder = GetRandomFolder(); PrepareOutput(outputFolder, "CatLibrary.Cat-2", "CatLibrary.Cat-2.Name", "c"); SetDefaultFAL(manifest, outputFolder); IncrementalActions (phaseName, () => { using (new LoggerPhaseScope(phaseName)) { increPostProcessorHandler.Handle(postProcessors, manifest, outputFolder); } // Check incremental flag Assert.Equal(3, manifest.Files.Count); Assert.True(manifest.Files.Single(i => i.OutputFiles[".html"].RelativePath == "CatLibrary.Cat-2.html").IsIncremental); Assert.True(manifest.Files.Single(i => i.OutputFiles[".html"].RelativePath == "CatLibrary.Cat-2.Name.html").IsIncremental); Assert.False(manifest.Files.Single(i => i.SourceRelativePath == "c.md").IsIncremental); foreach (var file in manifest.Files) { Assert.True(file.OutputFiles.ContainsKey(AppendStringPostProcessor.AdditionalExtensionString)); } // Check output content VerifyOutput(outputFolder, AppendStringPostProcessor.AppendString, "CatLibrary.Cat-2", "CatLibrary.Cat-2.Name", "c"); // Check cached PostProcessInfo Assert.NotNull(currentBuildInfo.PostProcessInfo); var postProcessorInfos = currentBuildInfo.PostProcessInfo.PostProcessorInfos; Assert.Equal(1, currentBuildInfo.PostProcessInfo.PostProcessorInfos.Count); Assert.Equal($"{typeof(AppendStringPostProcessor).Name}", postProcessorInfos[0].Name); Assert.Null(postProcessorInfos[0].IncrementalContextHash); var postProcessOutputs = currentBuildInfo.PostProcessInfo.PostProcessOutputs; Assert.Equal(6, postProcessOutputs.Count); // no change for *.mta.json, so not in cache. VerifyCachedOutput(Path.Combine(intermediateFolder, currentBuildInfo.DirectoryName), postProcessOutputs, AppendStringPostProcessor.AppendString, AppendStringPostProcessor.AdditionalExtensionString, "CatLibrary.Cat-2", "CatLibrary.Cat-2.Name", "c"); // Check incremental info Assert.Equal(1, manifest.IncrementalInfo.Count); Assert.Equal(true, manifest.IncrementalInfo[0].Status.CanIncremental); Assert.Equal(IncrementalPhase.PostProcessing, manifest.IncrementalInfo[0].Status.IncrementalPhase); Assert.Equal("Can support incremental post processing.", manifest.IncrementalInfo[0].Status.Details); // Check log messages var logs = Listener.Items.Where(i => i.Phase.StartsWith(phaseName)).ToList(); Assert.Equal(2, logs.Count); Assert.True(logs.Count(l => l.Message.Contains("Invalid bookmark.")) == 1); }); } finally { Environment.SetEnvironmentVariable("cache", null); EnvironmentContext.Clean(); } } #region Private methods private static void PrepareOutput(string outputFolder, params string[] fileNames) { foreach (var fileName in fileNames) { CreateFile($"{fileName}.html", $"{fileName}", outputFolder); CreateFile($"{fileName}.mta.json", $"{fileName}{MetaAppendContent}", outputFolder); } } private static void VerifyOutput(string outputFolder, string appendContent, params string[] fileNames) { foreach (var fileName in fileNames) { Assert.Equal($"{fileName}{appendContent}", EnvironmentContext.FileAbstractLayer.ReadAllText($"{fileName}.html")); Assert.Equal($"{fileName}{MetaAppendContent}", EnvironmentContext.FileAbstractLayer.ReadAllText($"{fileName}.mta.json")); } } private static void PrepareCachedOutput( string intermediateFolder, BuildInfo lastBuildInfo, string appendContent, ManifestItemCollection manifestItems, string additionalFileExtension, params string[] fileNames) { var baseFolder = Path.Combine(Environment.ExpandEnvironmentVariables(intermediateFolder), lastBuildInfo.DirectoryName); var postProcessOutputs = lastBuildInfo.PostProcessInfo.PostProcessOutputs; foreach (var fileName in fileNames) { var cachedHtmlName = IncrementalUtility.CreateRandomFileName(baseFolder); var htmlContent = $"{fileName}{appendContent}"; CreateFile($"{cachedHtmlName}", htmlContent, baseFolder); postProcessOutputs.Add($"{fileName}.html", cachedHtmlName); manifestItems.First(i => Path.ChangeExtension(i.OutputFiles[".html"].RelativePath, null) == fileName).OutputFiles[".html"].LinkToPath = $@"{intermediateFolder}\{lastBuildInfo.DirectoryName}\test"; var cachedMetaName = IncrementalUtility.CreateRandomFileName(baseFolder); CreateFile($"{cachedMetaName}", $"{fileName}{MetaAppendContent}", baseFolder); postProcessOutputs.Add($"{fileName}.mta.json", cachedMetaName); if (!string.IsNullOrEmpty(additionalFileExtension)) { var relativePath = $"{fileName}{additionalFileExtension}"; var cachedManifestItemsFileName = IncrementalUtility.CreateRandomFileName(baseFolder); CreateFile($"{cachedManifestItemsFileName}", htmlContent, baseFolder); postProcessOutputs.Add(relativePath, cachedManifestItemsFileName); var item = manifestItems.FirstOrDefault(i => Path.ChangeExtension(i.OutputFiles[".html"].RelativePath, null) == fileName); if (item != null) { item.OutputFiles.Add($"{additionalFileExtension}", new OutputFileInfo { RelativePath = relativePath, LinkToPath = $@"{intermediateFolder}\{lastBuildInfo.DirectoryName}\test" }); lastBuildInfo.PostProcessInfo.ManifestItems.Add(item); } } } } private static void VerifyCachedOutput(string baseDirectory, PostProcessOutputs postProcessOutputs, string appendContent, string additionalFileExtension, params string[] fileNames) { foreach (var fileName in fileNames) { var htmlContent = $"{fileName}{appendContent}"; Assert.Equal(htmlContent, File.ReadAllText(Path.Combine(baseDirectory, postProcessOutputs[$"{fileName}.html"]))); Assert.False(postProcessOutputs.ContainsKey($"{fileName}.mta.json")); if (!string.IsNullOrEmpty(additionalFileExtension)) { Assert.True(File.Exists(Path.Combine(baseDirectory, postProcessOutputs[$"{fileName}{additionalFileExtension}"]))); } } } private static List<PostProcessor> GetPostProcessors(params Type[] types) { var result = new List<PostProcessor>(); foreach (var type in types) { var instance = Activator.CreateInstance(type); var postProcessor = instance as IPostProcessor; if (postProcessor == null) { throw new InvalidOperationException($"{type} should implement {nameof(IPostProcessor)}."); } result.Add(new PostProcessor { ContractName = type.Name, Processor = postProcessor }); } return result; } private static void SetDefaultFAL(Manifest manifest, string outputFolder) { EnvironmentContext.FileAbstractLayerImpl = FileAbstractLayerBuilder.Default .ReadFromManifest(manifest, outputFolder) .WriteToManifest(manifest, outputFolder) .Create(); } #endregion private class LogItem : ILogItem { public string File { get; set; } public string Line { get; set; } public LogLevel LogLevel { get; set; } public string Message { get; set; } public string Phase { get; set; } public string Code { get; set; } } } }
56.700188
272
0.608729
[ "MIT" ]
brianlehr/docs-test-temp
test/Microsoft.DocAsCode.Build.Engine.Tests/PostProcessors/PostProcessorsHandlerTest.cs
60,331
C#