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
// *** WARNING: this file was generated by the Pulumi SDK Generator. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; namespace Pulumi.Azur...
35.297297
81
0.628254
[ "Apache-2.0" ]
pulumi/pulumi-azure-nextgen
sdk/dotnet/DesktopVirtualization/V20201110Preview/Outputs/ScalingScheduleResponse.cs
5,224
C#
namespace DynamicPowerShellApi.Logging { /// <summary> /// Crash logging. /// </summary> public interface ICrashLogger { /// <summary> /// Saves the log entry to a file /// </summary> /// <param name="entry">The error entry.</param> /// <returns>The file name that the error entry became.</returns> st...
23.933333
67
0.660167
[ "MIT" ]
DimensionDataCBUSydney/PowerShell.REST.API
Logging/ICrashLogger.cs
361
C#
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; names...
33.727273
157
0.787062
[ "ECL-2.0", "Apache-2.0" ]
Otanikotani/pulumi-aws
sdk/dotnet/WafV2/Outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.cs
742
C#
using Application.Mapping; using Domain.Entities; using AutoMapper; using Application.Mapping.Portofilo; using Application; namespace Application.Profiles { class ApplicationProfile : Profile { public ApplicationProfile() { //user entity CreateMap<AllUserDTO, User>(); ...
35
59
0.598639
[ "Apache-2.0" ]
DesertFoox/YourPortofilo
src/YourPortofilo/Profile/ApplicationProfile.cs
2,207
C#
/* Copyright (c) 2021 Robert Bosch Manufacturing Solutions GmbH Author: Monisha Macharla Vasu This source code is licensed under the Apache License 2.0 (see LICENSE.txt). This source code may use other Open Source software components (see LICENSE.txt). */ // ReSharper disable StringLastIndexOfIsCultureSpecific.1 u...
39.530738
119
0.470219
[ "Apache-2.0" ]
SAidta/aasx-package-explorer
src/AasxBammRdfImExport/RDFimport.cs
19,291
C#
using Basket.API.Entities; using Basket.API.Repositories; using Microsoft.AspNetCore.Mvc; using System; using System.Net; using System.Threading.Tasks; namespace Basket.API.Controllers { [Route("api/v1/[controller]")] [ApiController] public class BasketController : ControllerBase { private rea...
31.553191
98
0.66352
[ "MIT" ]
durnasaban/aspnet-microservices
src/Services/Basket/Basket.API/Controllers/BasketController.cs
1,485
C#
/* * Copyright (C) 2012 The Android Open Source Project * * 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 app...
33.495935
116
0.659951
[ "Apache-2.0" ]
aevangelistispot/monodroid-samples
GooglePlayServices/GooglePlayServicesTest/Source/MarkerDemoActivity.cs
12,360
C#
// Copyright (c) 2014 AlphaSierraPapa for the SharpDevelop Team // // 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, co...
43.619048
93
0.782751
[ "MIT" ]
galich/SharpDevelop
src/AddIns/Misc/SharpRefactoring/Project/Src/CreatePropertiesCommand.cs
1,834
C#
using System; public class Car { private const double maxFuel = 160; private double fuelAmount; public Car(int hp, double fuelAmount, Tyre tyre) { this.Hp = hp; this.FuelAmount = fuelAmount; this.Tyre = tyre; } public int Hp { get; } public double FuelAmount ...
19.196078
71
0.563841
[ "MIT" ]
ignatovg/Software-University
C#-Fundamentals/02_OOP_Basics/Bojo_GrdanPrix/Models/Car.cs
981
C#
using Microsoft.Extensions.DependencyInjection; using System; using System.Collections.Generic; using System.Configuration; using System.Data; using System.Linq; using System.Threading.Tasks; using System.Windows; using TwitchDonateToChatroom.Service; using TwitchDonateToChatroom.Service.Interface; using Twi...
29.051282
76
0.681377
[ "MIT" ]
TzuHsuan/TwitchDonateToChatroom
TwitchDonateToChatroom/App.xaml.cs
1,135
C#
using System.Runtime.Serialization; namespace AbstractGameLogic { /// <summary> /// Направление паралакса. /// </summary> [DataContract] public enum ParallaxDirection { /// <summary> /// Слева направо. /// </summary> [EnumMember] LeftToRight , /// <summary> /// Справо налево. ...
14.710526
37
0.550984
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
trueromanus/ShineGame
src/AbstractGameObject/ParallaxDirection.cs
625
C#
using System; using System.Numerics; using System.Threading; using System.Threading.Tasks; using Nethereum.Hex.HexTypes; using Nethereum.RPC.Eth; using Nethereum.RPC.Eth.DTOs; using Nethereum.RPC.Fee1559Suggestions; using Nethereum.Util; namespace Nethereum.RPC.TransactionManagers { #if !DOTNET35 public class Eth...
54.161616
266
0.732003
[ "MIT" ]
6ara6aka/Nethereum
src/Nethereum.RPC/TransactionManagers/EtherTransferService.cs
5,364
C#
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using Microsoft.AspNetCore.Mvc.ModelBinding; using Xunit; namespace Microsoft.AspNetCore.Mvc { public class SerializableErrorTests { [F...
32.156627
111
0.57662
[ "Apache-2.0" ]
belav/aspnetcore
src/Mvc/Mvc.Core/test/SerializableErrorTests.cs
2,669
C#
// ================================================================================================================================ // File: ConstraintLineExtractor.cs // Description: // ============================================================================================================================...
71.469925
267
0.673715
[ "MIT" ]
Swaelo/mmo-server-2.0
ContentRenderer/Constraints/ConstraintLineExtractor.cs
19,013
C#
//********************************************************* // // This code is licensed under the MIT License (MIT). // THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF // ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY // IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR // PURPOSE, MERCHANTABILITY, OR NON-INFRINGEM...
30.924528
95
0.721049
[ "MIT" ]
jonthysell/Windows-AppConsult-Samples-UWP
UWP-Advanced-Inking/XAMLShapesAdvancedManipulations/XAMLShapesAdvancedManipulations/MainPage.xaml.cs
8,197
C#
using UnityEngine; public class RoadPreview : MonoBehaviour, IBigridTransform, IValidatable { public Transform head; public Transform body; public Transform tail; public Renderer headRenderer; public Renderer bodyRenderer; public Renderer tailRenderer; public Material validBodyMaterial; public Material valid...
26.679739
111
0.712641
[ "Unlicense", "MIT" ]
AlvianPrasetya/TrafficPlanner
Assets/Scripts/Game/Previews/RoadPreview.cs
4,084
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Diagnostics.CodeAnalysis; using Microsoft.Extensions.FileSystemGlobbing.Util; namespace Microsoft.Extensions.FileSystemGlobbing.Internal.PathSegments { ...
30.02381
96
0.66138
[ "MIT" ]
AUTOMATE-2001/runtime
src/libraries/Microsoft.Extensions.FileSystemGlobbing/src/Internal/PathSegments/LiteralPathSegment.cs
1,261
C#
namespace Vendstor.Backend.Constants { public static class Constants { /// <summary> /// This is the url to access the remote REST API. /// </summary> public static readonly string ApiUrl = "http://rigle.co/vendstor/api"; /// <summary> /// This is the token used ...
39
93
0.638462
[ "MIT" ]
franznkemaka/Vendstor
Vendstor/Backend/Constants/Constants.cs
782
C#
using ClosedXML.Excel; using SimpleInventory.Models; using System; using System.Collections.Generic; using System.Diagnostics; namespace SimpleInventory.Helpers { class StockInfoExcelGenerator { public void ExportStockInfo(List<DetailedStockReportInfo> items, DateTime startDate, DateTime endDate, str...
65.546154
155
0.570356
[ "MIT" ]
Deadpikle/SimpleInventory
SimpleInventory/Helpers/StockInfoExcelGenerator.cs
8,523
C#
namespace TerritoryTools.Entities.AddressParsers { public class AddressPartResult { public string Value { get; set; } public int Index { get; set; } public override string ToString() { return Index + ": " + Value ?? "Null"; } } }
19.8
50
0.552189
[ "MIT" ]
territorytools/territory-tools
Common/AddressParser/AddressPartResult.cs
299
C#
using UnityEngine; using UnityEngine.UI; public class HeroPanel : BattlePanel { public Text Hp, MaxHp; public Action LastUsedAction; public override void Setup() { base.Setup(); Image.sprite = Unit.Sprite; Hp.text = Unit.CurHp.ToString(); MaxHp.text = $"/{ Unit.MaxHp }"; } }
20.2
38
0.666667
[ "MIT" ]
ashriot/Legend-RPG
Assets/Scripts/UI/HeroPanel.cs
305
C#
using System; using System.Linq; using Demo.LearnByDoing.Core; using Xunit; using Xunit.Abstractions; namespace Demo.LearnByDoing.Tests.RandomStuff { public class RecursionTest : BaseTest { public RecursionTest(ITestOutputHelper output) : base(output) { } [Theory] [InlineData(new []{1,2,3}, 6)] [Inline...
23.507042
98
0.654284
[ "MIT" ]
dance2die/Demo.LearnByDoing
Demo.LearnByDoing.Tests/RandomStuff/RecursionTest.cs
1,671
C#
// Copyright (c) DotSpatial Team. All rights reserved. // Licensed under the MIT license. See License.txt file in the project root for full license information. namespace DotSpatial.Symbology { /// <summary> /// PatternTypes /// </summary> public enum PatternType { /// <summary> ...
25.722222
106
0.529158
[ "MIT" ]
AlexanderSemenyak/DotSpatial
Source/DotSpatial.Symbology/PatternType.cs
926
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 "li...
44.435897
190
0.615407
[ "Apache-2.0" ]
philasmar/aws-sdk-net
sdk/src/Services/Lambda/Generated/Model/Internal/MarshallTransformations/GetProvisionedConcurrencyConfigResponseUnmarshaller.cs
6,932
C#
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ /...
35.927273
153
0.589069
[ "MIT" ]
OfficeGlobal/msgraph-beta-sdk-dotnet
src/Microsoft.Graph/Requests/Generated/SharePointSiteUsagePagesRequestBuilder.cs
1,976
C#
//---------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------------------------------------------- namespace System.ServiceModel.Channels { using System; public interface IDuplexSessionChann...
32.25
92
0.444444
[ "Apache-2.0" ]
295007712/295007712.github.io
sourceCode/dotNet4.6/ndp/cdf/src/WCF/ServiceModel/System/ServiceModel/Channels/IDuplexSessionChannel.cs
387
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> //---...
59.306122
163
0.670681
[ "Apache-2.0" ]
yassin1530/your-drink
YourDrink/YourDrink/obj/Debug/netstandard2.0/CreateDrinkPage.xaml.g.cs
2,906
C#
using Joy.Core.Encode; using System; namespace Portal.Testing.Crypto { public partial class TestCrypto : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { string s = Request.Form["s"]; string p = Request.Form["p"]; string a = Reque...
27
60
0.462366
[ "MIT" ]
mind0n/hive
Product/Website/Portal/Portal/Testing/Crypto/TestCrypto.aspx.cs
839
C#
using System; namespace Application { public class fizzbuzz { public fizzbuzz () { for(int a = 1; a < 100; a++){ Console.WriteLine(fizz_or_buzz(a)); } } public string fizz_or_buzz (int number) { string fizz_or_buzz_string; if ( (number_modulo(number, 3)) && (number_modulo(number, 5)) ) { ...
18.104167
68
0.617952
[ "Apache-2.0" ]
ruanpienaar/c_sharp
fizzbuzz.cs
869
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace MoogleEngine { //Clase para Parsear la query y obtener la informacion sobre los operadores public class Parsing { //Palabras que deben existir public HashSet<string> MustExistWords = new HashSet<...
37.902128
106
0.471315
[ "MIT" ]
brayandm/moogle-2021
MoogleEngine/Libraries/Parsing.cs
8,907
C#
using ControlledForms.IntegrationTests; using SilveR.StatsModels; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net.Http; using System.Threading.Tasks; using Xunit; namespace SilveR.IntegrationTests { public class EquivalenceTOSTTestTests : IClassFixture<SilveRTestWebApplicatio...
48.675899
330
0.647495
[ "MIT" ]
robalexclark/SilveR
SilveR.IntegrationTests/StatsTests/EquivalenceTOSTTestTests.cs
82,603
C#
using System; using System.Collections.Generic; using System.Linq; using Content.Server.Administration.Commands; using Content.Server.GameObjects.Components.Items.Clothing; using Content.Server.GameObjects.Components.Items.Storage; using Content.Server.GameObjects.EntitySystems.Click; using Content.Server.Interfaces.Ga...
35.007133
140
0.532478
[ "MIT" ]
Neocraftz1553/space-station-14
Content.Server/GameObjects/Components/GUI/InventoryComponent.cs
24,540
C#
// ---------------------------------------------------------------------------------- // // Copyright Microsoft Corporation // 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://w...
43.659363
148
0.561756
[ "MIT" ]
FonsecaSergio/azure-powershell
src/ResourceManager/RecoveryServices/Commands.RecoveryServices/Vault/GetAzureRMRecoveryServicesVaultSettingsFile.cs
21,418
C#
// Copyright (c) Tunnel Vision Laboratories, LLC. All Rights Reserved. // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. // Several test methods in this file use the same member data, but in some cases the test does not use all of the // supported parameters. ...
31.424
163
0.60667
[ "Apache-2.0" ]
Andreyul/StyleCopAnalyzers
StyleCop.Analyzers/StyleCop.Analyzers.Test/ReadabilityRules/SA1117UnitTests.cs
7,858
C#
using System.Collections.Generic; using OrchardCore.Security.Permissions; namespace OrchardCore.Tenants { public class Permissions : IPermissionProvider { public static readonly Permission ManageTenants = new Permission("ManageTenants", "Manage tenants"); public IEnumerable<Permission> GetPer...
27
108
0.563786
[ "BSD-3-Clause" ]
1426463237/OrchardCore
src/OrchardCore.Modules/OrchardCore.Tenants/Permissions.cs
731
C#
using System; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Collections; using System.Collections.Generic; using System.Security.Cryptography; using UnityEngine; namespace WC.Cryptography { public class AESEncodeMessage { public string data; public string hmac;...
26.290909
105
0.682918
[ "MIT" ]
leon-do/wc-unity
WalletConnectCryptography.cs
2,892
C#
namespace Sistema_de_Salon_de_belleza.Todos_los_formularios { partial class FormProductos { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being u...
61.601336
182
0.663907
[ "MIT" ]
ProyectoL2/Proyecto-L3
Sistema de Salon de belleza/Sistema de Salon de belleza/Todos los formularios/Form3.Designer.cs
27,665
C#
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; names...
27.758621
88
0.673292
[ "ECL-2.0", "Apache-2.0" ]
dimpu47/pulumi-gcp
sdk/dotnet/Dataproc/Outputs/ClusterClusterConfigEncryptionConfig.cs
805
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Crestron.SimplSharp.CrestronIO { public class FileNotFoundException : Exception { } }
16.333333
50
0.755102
[ "MIT" ]
ProfessorAire/Evands.Pellucid-Crestron
src/Evands.Pellucid.Fakes/Crestron/SimplSharp/CrestronIO/FileNotFoundException.cs
198
C#
// *** WARNING: this file was generated by the Pulumi SDK Generator. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; namespace Pulumi.Azur...
42.425743
288
0.634772
[ "Apache-2.0" ]
pulumi/pulumi-azure-nextgen
sdk/dotnet/Network/V20190901/Inputs/LoadBalancingRuleArgs.cs
4,285
C#
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. // Ported from um/WinTrust.h in the Windows SDK for Windows 10.0.19041.0 // Original source is Copyright © Microsoft. All rights reserved. namespace TerraFX.Interop { p...
29.35
145
0.684838
[ "MIT" ]
Ethereal77/terrafx.interop.windows
sources/Interop/Windows/um/WinTrust/CRYPT_PROVIDER_SGNR.cs
1,176
C#
using System; using System.ComponentModel.DataAnnotations; using NCS.DSS.Transfer.Annotations; namespace NCS.DSS.Transfer.Models { public class Transfer : ITransfer { [Display(Description = "Unique identifier of the transfer record.")] [Example(Description = "b8592ff8-af97-49ad-9fb2-e5c3c717fd...
41.394958
108
0.655907
[ "MIT" ]
SkillsFundingAgency/dss-transfer
NCS.DSS.Transfer/Models/Transfer.cs
4,928
C#
using System; using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.DependencyInjection; using Microsoft.VisualStudio.TestTools.UnitTesting; using Moq; using Tips.DependencyInjectionOfInternals.Business.Commands; using Tips.DependencyInjectionOfInternals.Business.Configuration; using Tips.Dep...
41.103448
152
0.642058
[ "MIT" ]
penblade/Tips
Tips.DependencyInjectionOfInternals/src/Tips.DependencyInjectionOfInternals.Business.Tests/Commands/CommandProcessTest.cs
3,578
C#
//---------------------- // <auto-generated> // This file was automatically generated. Any changes to it will be lost if and when the file is regenerated. // </auto-generated> //---------------------- #pragma warning disable using System; using SQEX.Luminous.Core.Object; using System.Collections.Generic; using CodeDom...
37.086957
169
0.657288
[ "MIT" ]
Gurrimo/Luminaire
Assets/Editor/Generated/Black/Entity/Menu/ChocoboFeedMenuEntity.generated.cs
2,559
C#
using System.Reflection; using System.Runtime.CompilerServices; 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("Bul...
37.297297
84
0.745652
[ "MIT" ]
rlittletht/UpcInv
Bulker/Properties/AssemblyInfo.cs
1,383
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Threading.Tasks; namespace QuickSale.Models.BusinessModels { public class ItemAmount { public int ItemAmountId { get; set; } [ForeignKey("ItemId")] publi...
19.826087
57
0.675439
[ "MIT" ]
Kasunjith-Bimal/QuickSale
QuickSale/Models/BusinessModels/ItemAmount.cs
458
C#
// c:\program files (x86)\windows kits\10\include\10.0.18362.0\um\d2d1_3.h(1594,1) using System; using System.Runtime.InteropServices; using System.Runtime.InteropServices.ComTypes; using D2D1_TAG = System.UInt64; namespace DirectN { [Guid("7836d248-68cc-4df6-b9e8-de991bf62eb7"), InterfaceType(ComInterfaceType.In...
61.794038
543
0.698886
[ "MIT" ]
bbday/DirectN
DirectN/DirectN/Generated/ID2D1DeviceContext5.cs
22,804
C#
//GENERATED: CS Code using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace UnrealEngine{ public partial class URichTextBlockDecorator:UObject { [MethodImplAttribute(MethodImplOptions.InternalCall)] public static extern new IntPtr StaticClass(); } }
25.833333
55
0.8
[ "MIT" ]
RobertAcksel/UnrealCS
Engine/Plugins/UnrealCS/UECSharpDomain/UnrealEngine/GeneratedScriptFile/URichTextBlockDecorator.cs
310
C#
namespace GermanWhistBlazor; public partial class GamePage { private static int TargetHeight => 15; [CascadingParameter] public TestOptions? TestData { get; set; } [CascadingParameter] public IGameInfo? GameData { get; set; } [CascadingParameter] public BasicData? BasicData { get; set; } ...
31
59
0.71464
[ "MIT" ]
musictopia2/GamingPackXV3
Blazor/Games/GermanWhistBlazor/GamePage.razor.cs
403
C#
using Swashbuckle.AspNetCore.Swagger; using Swashbuckle.AspNetCore.SwaggerGen; namespace MLBot.Mvc { /// <summary> /// Swagger 文件上传参数 /// </summary> [Author("Linyee", "2019-07-05")]//从bot搬过来的 public class SwaggerFileUploadOperation : IOperationFilter { public void Apply(Operation opera...
30.096774
106
0.534834
[ "MIT" ]
jiaguoxinzhi/MLBot
MLBot/LinyeeWechat/SwaggerFileUploadOperation.cs
959
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.IO; using System.Linq; using System.Net; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace implicit_winform { public partial class MainForm : Form...
35.130435
118
0.549917
[ "MIT" ]
Genesys-Heinan/developercenter-tutorials
oauth-implicit/csharp/MainForm.cs
2,426
C#
using System.Collections.Generic; using System.Data.Common; using System.Linq; using DataLinq.Metadata; namespace DataLinq.Instances { public class ForeignKey { public ForeignKey(Column column, object data) { Column = column; Data = data; } public Colum...
24.981481
92
0.503336
[ "MIT" ]
bazer/DataLinq
src/DataLinq/Instances/ForeignKey.cs
1,351
C#
/* * Copyright (c) 2018 THL A29 Limited, a Tencent company. 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 * ...
29.313725
81
0.633445
[ "Apache-2.0" ]
TencentCloud/tencentcloud-sdk-dotnet
TencentCloud/Tcss/V20201101/Models/SoftQuotaDayInfo.cs
1,511
C#
using Microsoft.AspNet.Identity; using Microsoft.Owin.Security; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; namespace NSG.Identity.Models { public class IndexViewModel { public bool HasPassword { get; set; } public IList<UserLoginInfo> Logins { get; set; } ...
30.204545
110
0.625282
[ "Apache-2.0" ]
PHuhn/net-incident
WebSrv/Identity/Models/ManageViewModels.cs
2,660
C#
using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; namespace RackManager.Areas.Identity.Pages.Account.Manage { pub...
25.763441
120
0.714107
[ "MIT" ]
AnthonyRyck/RackManager
src/BlazorRackManager/RackManager/Areas/Identity/Pages/Account/Manage/SetPassword.cshtml.cs
2,398
C#
using System.Windows.Forms; using System; namespace SystemConfig.Editor.Search { public class SearchDataGrid : DataGridView { public event Action SearchDone; public SearchDataGrid() { this.ReadOnly = true; this.AllowUserToAddRows = false; this.AutoG...
33.019608
101
0.550475
[ "MIT" ]
xasealand-org2/QueueSystem
SystemConfig/SystemConfig/Editor/Search/SearchDataGrid.cs
1,686
C#
using System.Linq; using RimWorld; using Verse; namespace Rumor_Code { public class IncidentWorker_MadWithLoneliness : IncidentWorker { private void HaveEpisode(Pawn p) { var value = Rand.Value; if (value < 0.15) { p.mindState.mentalStateHand...
29.311475
105
0.489933
[ "MIT" ]
emipa606/RoumorHasIt
Source/Rainbeau's Rumor Has It/IncidentWorker_MadWithLoneliness.cs
1,790
C#
using System; using System.Globalization; using System.Text; using System.Windows.Data; namespace Ais.Internal.Dcm.ModernUIV2.Converter { /// <summary> /// This class converts input size value and presents it in KB/MB/GB. /// For example if the value is passed as 1024, it converts and returns 1 KB. //...
36.716418
124
0.504878
[ "Apache-2.0" ]
AppliedIS/wams-manager
Source/Ais.Internal.Dcm/Ais.Internal.Dcm.ModernUIV2/Converter/SizeConverter.cs
2,462
C#
namespace MyDashWallet.Node { public class TxInput { public TxInput(string tx, int outputIndex, decimal amount) { Tx = tx; OutputIndex = outputIndex; Amount = amount; } public string Tx { get; } public int OutputIndex { get; } /// <summary> /// The amount is not needed as an input for buildin...
24.45
93
0.666667
[ "Apache-2.0" ]
GetAywa/AywaWebWallet
Node/TxInput.cs
491
C#
using System; using Bit.Core.Models; using Bit.Owin.Contracts; using Owin; namespace Bit.Owin.Middlewares { public class SignOutPageMiddlewareConfiguration : IOwinMiddlewareConfiguration { public virtual AppEnvironment AppEnvironment { get; set; } public virtual void Configure(IAppBuilder ow...
31
121
0.574194
[ "MIT" ]
Jaguel/bit-framework
src/Server/Bit.Owin/Middlewares/SignOutPageMiddlewareConfiguration.cs
1,242
C#
// Copyright (c) Josef Pihrt. All rights reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Collections.Immutable; using System.Linq; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAn...
35.071429
160
0.670061
[ "Apache-2.0" ]
RickeyEstes/Roslynator
src/Analyzers/CSharp/Analysis/RemoveUnnecessaryCaseLabelAnalyzer.cs
1,966
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 "li...
30.305085
110
0.636465
[ "Apache-2.0" ]
philasmar/aws-sdk-net
sdk/src/Services/IoTSiteWise/Generated/Model/DescribeGatewayRequest.cs
1,788
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace InfoBridge.SuperLinq.Core.Attributes { [AttributeUsage(AttributeTargets.Property, Inherited = true, AllowMultiple = false)] public sealed class ColumnInfo : Attribute { pub...
23.428571
88
0.664634
[ "MIT" ]
troien/InfoBridge.SuperLinq
src/InfoBridge.SuperLinq.Core/Attributes/ColumnInfo.cs
494
C#
using System.Collections.Generic; using QuickGraph; using System.Windows; using GraphX; using System; namespace GraphX.GraphSharp.Algorithms.EdgeRouting { public abstract class EdgeRoutingAlgorithmBase<TVertex, TEdge, TGraph> : IExternalEdgeRouting<TVertex, TEdge>, IDisposable where TVertex : class wher...
28.537313
182
0.620816
[ "Apache-2.0" ]
wangwshuai/graphic
GraphX.Logic/GraphXComponents/EdgeRouting/EdgeRoutingAlgorithmBase.cs
1,914
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class CarBehavior : MonoBehaviour { public float maxSpeedMagnitude = 30f; public float maxAccelerationMagnitude = 3f; public float jerkMagnitude = 0.5f; public float turnRate = 10f; private float speed; private float acceler...
24.578512
114
0.672159
[ "MIT" ]
makerslocal/LudumDare41
Pins and Needles/Assets/Scripts/CarBehavior.cs
2,976
C#
using System; namespace ObjCRuntime { [Flags] public enum Platform : ulong { None = 0, iOS_2_0 = 0x0000000000020000, iOS_2_2 = 0x0000000000020200, iOS_3_0 = 0x0000000000030000, iOS_3_1 = 0x0000000000030100, iOS_3_2 = 0x0000000000030200, iOS_4_0 = 0x0000000000040000, iOS_4_1 = 0x0000000000040100,...
27.571429
35
0.775722
[ "MIT" ]
JeffABC/api-doc-tools
mdoc/mdoc.Test/SampleClasses/ApplePlatformEnum.cs
1,353
C#
// Papercut // // Copyright © 2008 - 2012 Ken Robertson // Copyright © 2013 - 2017 Jaben Cargman // // 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/LICE...
34.243243
137
0.539661
[ "Apache-2.0" ]
jijiechen/PapercutCore
src/Papercut.Module.WebUI/Models/MimeMessageEntry.cs
5,072
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...
42.44
91
0.675778
[ "Apache-2.0" ]
BlueCurve-Team/lucenenet
src/Lucene.Net.Core/Index/TermPositionVector.cs
2,122
C#
using System; using System.ComponentModel; using AsmJit.AssemblerContext; using AsmJit.Common.Operands; using AsmJit.CompilerContext; namespace AsmJit.Common { internal sealed class FunctionDeclaration { internal const int MaxArgumentCount = 16; private int[] _passedOrderGp = new int[8].InitializeWith(() => -1)...
26.986547
156
0.6223
[ "MIT" ]
hypeartist/AsmJ
AsmJit/Common/FunctionDeclaration.cs
12,036
C#
using System.Collections.Generic; using BaseTests; using FluentAssertions; using Unity.VersionControl.Git; using NUnit.Framework; using Unity.VersionControl.Git.IO; namespace IntegrationTests { [TestFixture] class A_GitClientTests : BaseTest { readonly string[] m_CleanFiles = { "file1.txt", "file2....
34.258621
111
0.54152
[ "MIT" ]
Cdddo/Git-for-Unity
tests/IntegrationTests/Git/GitClientTests.cs
3,974
C#
// Copyright 2017 Esri. // // 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 ...
46.974359
172
0.659753
[ "Apache-2.0" ]
Druffl3/arcgis-runtime-samples-dotnet
src/UWP/ArcGISRuntime.UWP.Viewer/Samples/Symbology/UseDistanceCompositeSym/UseDistanceCompositeSym.xaml.cs
5,496
C#
using System; using System.Runtime.Serialization; namespace Capgemini.Xrm.CdsDataMigratorLibrary.Exceptions { [Serializable] public class OrganizationalServiceException : Exception { public OrganizationalServiceException() { } public OrganizationalServiceException(string m...
24
98
0.639881
[ "MIT" ]
Capgemini/xrm-datamigration-xrmtoolbox
Capgemini.Xrm.CdsDataMigrator/Capgemini.Xrm.CdsDataMigratorLibrary/Exceptions/OrganizationalServiceException.cs
674
C#
namespace Asia.Solid.Domain.Entities { public class DetalhePagamento { public string NumeroCartao { get; set; } public int MesExpiracao { get; set; } public int AnoExpiracao { get; set; } public string NomeImpressoCartao { get; set; } } }
29.1
62
0.61512
[ "MIT" ]
denniskalla/Asia---SOLID
src/Asia.Solid.Domain/Entities/DetalhePagamento.cs
293
C#
using System; using System.IO; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; using Xamarin.MacDev.Tasks; using Xamarin.MacDev; namespace Xamarin.iOS.Tasks { public abstract class FindWatchOS1AppExtensionBundleTaskBase : Task { #region Inputs public string SessionId { get; set; } [Requi...
27.234568
109
0.722121
[ "BSD-3-Clause" ]
ludovic-henry/xamarin-macios
msbuild/Xamarin.iOS.Tasks.Core/Tasks/FindWatchOS1AppExtensionBundleTaskBase.cs
2,208
C#
using System.Reflection; using System.Runtime.CompilerServices; 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("Ex...
37.702703
84
0.744803
[ "MIT" ]
bsitler/Exoskeleton
Exoskeleton/Exoskeleton/Properties/AssemblyInfo.cs
1,398
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. /*============================================================================= ** ** ** ** Purpose: Class for creat...
41.473514
183
0.550505
[ "MIT" ]
ghuntley/coreclr
src/System.Private.CoreLib/src/System/Threading/ThreadPool.cs
64,205
C#
using Microsoft.EntityFrameworkCore.Migrations; namespace SuperRocket.AspNetCoreVue.Migrations { public partial class Upgraded_To_Abp_v222 : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn<bool>( name: "IsDelete...
28.541667
71
0.60438
[ "MIT" ]
dystudio/SuperRocket.AspNetCoreVue
aspnet-core/src/SuperRocket.AspNetCoreVue.EntityFrameworkCore/Migrations/20170804083601_Upgraded_To_Abp_v2.2.2.cs
687
C#
using Application.Extensions; var builder = WebApplication.CreateBuilder(args); builder.Services.AddMappers(); builder.Services.AddQueries(); builder.Services.AddCommands(); var app = builder.Build(); app.Run();
21.4
49
0.780374
[ "MIT" ]
gabrielfernandes320/csharp-ecom-api
Application/Program.cs
214
C#
/* * IRN API v1 * * Allows users to extract, create, update and configure IRN data. * * The version of the OpenAPI document: 1 * Generated by: https://github.com/openapitools/openapi-generator.git */ using System; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel;...
31.92
128
0.592982
[ "Apache-2.0" ]
factset/enterprise-sdk
code/dotnet/IRNConfiguration/v1/src/FactSet.SDK.IRNConfiguration/Model/IdentifierSettingsDto.cs
3,990
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 Cake.Core; using Cake.Core.Annotations; using Cake.Core.IO; namespace Cake.Common.Tools.GitRel...
40.671875
129
0.604687
[ "MIT" ]
ecampidoglio/cake
src/Cake.Common/Tools/GitReleaseNotes/GitReleaseNotesAliases.cs
2,605
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using MySql.Data.MySqlClient; using KASLibrary; using DevExpress.XtraEditors; using DevExpress.XtraGrid.Views.Grid; using DevExpress.XtraEditors.Controls; ...
56.176768
291
0.603524
[ "MIT" ]
husniaditya/it-inventory
Proses/FrmPOpenSO.cs
11,123
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Collect : MonoBehaviour { public AudioSource collectSound; void OnTriggerEnter(Collider other) { collectSound.Play(); ScoringSystem.theScore += 50; Destroy (gameObject); } }
20.466667
39
0.697068
[ "CC0-1.0" ]
HSMCode/hsm-wise2021-prototype103-party-merve-simsek
Assets/Scripts/Collect.cs
307
C#
using System; using System.Windows; using System.Windows.Input; namespace Phony.Helpers.AttachedCommandBehavior { /// <summary> /// Defines a Command Binding /// This inherits from freezable so that it gets inheritance context for DataBinding to work /// </summary> public class BehaviorBinding : F...
33.788462
267
0.593625
[ "MIT" ]
ahmed-abdelrazek/Phony
src/Helpers/AttachedCommandBehavior/BehaviorBinding.cs
7,030
C#
using System; using Formularizer.Core.FormulaDefinition; using FunctionalExtensions; namespace Formularizer.Core.FormulaCompiler { internal class SelfReferenceCompiledFormula : ICompiledFormula { private readonly string _reference; private SelfReferenceCompiledFormula(string reference) { _reference = refe...
25.709677
107
0.78921
[ "MIT" ]
GrafGenerator/ssrs-formularize
src/Formularizer/Core/FormulaCompiler/SelfReferenceCompiledFormula.cs
799
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Twilio { public class Message : TwilioBase { /// <summary> /// A 34 character string that uniquely identifies this resource. /// </summary> public string Sid { get; set; } //...
38.021053
89
0.575858
[ "Apache-2.0" ]
ArashMotamedi/Twilio.NetCore
src/Twilio.NetCore/Model/Message.cs
3,614
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; namespace IRO.Common.EmbeddedResources { public static class EmbeddedResourcesHelpers { static IDictionary<Assembly, string[]> _manifestResource...
40.710345
159
0.561071
[ "MIT" ]
IT-rolling-out/IRO
src/Common/IRO.Common/EmbeddedResources/EmbeddedResourcesHelpers.cs
5,905
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace PrintLongSequence { class Program { static void Main(string[] args) { int b; for (int i = 2; i < 1002; i++) { b = i;...
20.911765
85
0.389592
[ "MIT" ]
aleksandra992/CSharp
CSharp Part 1/Intro-Programming-Homework/PrintLongSequence/Program.cs
713
C#
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Reactive.Linq; using DynamicData; using DynamicData.Binding; using NBitcoin; using ReactiveUI; using WalletWasabi.Blockchain.Keys; using WalletWasabi.Fluent.ViewModels.Navigation; using WalletWasabi.Wal...
33.866667
133
0.776575
[ "MIT" ]
planquer/WalletWasabi
WalletWasabi.Fluent/ViewModels/AddWallet/Create/ConfirmRecoveryWordsViewModel.cs
2,032
C#
using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; using GitRewrite.CleanupTask; using GitRewrite.CleanupTask.Delete; using GitRewrite.GitObjects; using GitRewrite.IO; using Commit = GitRewrite.GitObjects.Commit; using Tree = GitRewrite.GitObjects.Tree; namespace G...
38.678756
155
0.575218
[ "MIT" ]
TimHeinrich/GitRewrite
GitRewrite/Program.cs
7,467
C#
using System; using System.Threading.Tasks; using Nest; namespace Profiling.Async { public class ClusterRerouteAsync : IAsyncProfiledOperation { public Task RunAsync(IElasticClient client, ColoredConsoleWriter output) { throw new NotImplementedException(); } } }
19.642857
74
0.785455
[ "Apache-2.0" ]
RossLieberman/NEST
src/Profiling/Async/ClusterRerouteAsync.cs
275
C#
namespace Gu.Wpf.DataGrid2D.Demo { using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Runtime.CompilerServices; using System.Windows.Input; public class JaggedVm : INotifyPropertyChanged { private IReadOnlyList<string>? currentRowHeaders; ...
31.75
114
0.547651
[ "MIT" ]
GuOrg/Gu.Wpf.DataGrid2D
Gu.Wpf.DataGrid2D.Demo/JaggedVm.cs
3,683
C#
#region License // Distributed under the MIT License // ============================================================ // Copyright (c) 2019 Hotcakes Commerce, LLC // // Permission is hereby granted, free of charge, to any person obtaining a copy of this software // and associated documentation files (the "Software"),...
42.115385
117
0.614247
[ "MIT" ]
HotcakesCommerce/core
Website/DesktopModules/Hotcakes/Core/Admin/Parts/Shipping/US Postal Service - Domestic/Edit.ascx.cs
10,950
C#
using Newtonsoft.Json; namespace CaptchaSharp.Services.AntiCaptcha.Responses { internal class Response { public int ErrorId { get; set; } public string ErrorCode { get; set; } public string ErrorDescription { get; set; } [JsonIgnore] public bool IsError => ErrorId > 0;...
21.933333
53
0.629179
[ "MIT" ]
542980940984363224858439616269115634540/CaptchaSharp
CaptchaSharp/Services/AntiCaptcha/Responses/Response.cs
331
C#
// Lucene version compatibility level 4.8.1 using Lucene.Net.Analysis.TokenAttributes; using Lucene.Net.Analysis.Util; using Lucene.Net.Util; using System; namespace Lucene.Net.Analysis.Miscellaneous { /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreemen...
47.023256
236
0.639713
[ "Apache-2.0" ]
10088/lucenenet
src/Lucene.Net.Analysis.Common/Analysis/Miscellaneous/LengthFilter.cs
4,046
C#
// Copyright (c) Allan Nielsen. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using OurPresence.Modeller.Interfaces; using System; using System.Collections.Generic; using System.Linq; namespace OurPresence.Modeller.Generator.Outputs { public clas...
32.648649
126
0.635762
[ "MIT" ]
Allann/OurPresence
OurPresence.Modeller.Core/OurPresence.Modeller.Core/Generator/Outputs/OutputStrategy.cs
1,210
C#
using PKISharp.WACS.Clients.IIS; using PKISharp.WACS.Plugins.Base; using PKISharp.WACS.Plugins.Base.Options; namespace PKISharp.WACS.Plugins.InstallationPlugins { [Plugin("ea6a5be3-f8de-4d27-a6bd-750b619b2ee2")] internal class IISWebOptions : InstallationPluginOptions<IISWeb> { public long? SiteId...
33.184211
87
0.582871
[ "Apache-2.0" ]
Legacy777/win-acme
src/main.lib/Plugins/InstallationPlugins/IISWeb/IISWebOptions.cs
1,263
C#
using System.Collections.Generic; using Abp.Localization; namespace CBEApp.Web.Models { public class LanguageSelectionViewModel { public LanguageInfo CurrentLanguage { get; set; } public IReadOnlyList<LanguageInfo> Languages { get; set; } public string CurrentUrl { get; set; } } ...
22.928571
66
0.694704
[ "MIT" ]
MikeGitIt/CBEApp
src/CBEApp.Web/Models/LanguageSelectionViewModel.cs
323
C#
using TMPro; using UnityEngine; using UnityEngine.Assertions; namespace SS3D.Engine.Examine { public class ExamineUI : MonoBehaviour { // These should be the AbstractExamineUIElements, listed in the same order // as the corresponding ExamineTypes. public AbstractExamineUIElement[] UIElements; publi...
22.941176
91
0.66
[ "MIT" ]
Jdeedler/SS3D
Assets/Engine/Examine/ExamineUI.cs
1,952
C#
// // Copyright (c) Autodesk, Inc. All rights reserved // Copyright (c) .NET Foundation. All rights reserved. // // Licensed under the Apache License, Version 2.0. // See LICENSE in the project root for license information. // // Forge Proxy // by Eason Kang - Autodesk Developer Network (ADN) // #region Namespace usi...
38.317972
173
0.596392
[ "Apache-2.0" ]
yiskang/forge-api-aspnetcore-proxy
src/Autodesk.Forge.Proxy/ProxyAdvancedExtensions.cs
8,315
C#
using Newtonsoft.Json.Converters; using System; using System.Collections.Generic; using System.Linq; using System.Text.Json.Serialization; using System.Threading.Tasks; namespace neSchedular.schedular { [JsonConverter(typeof(StringEnumConverter))] public enum JobHandlerEnumModel { start, exec, run} ...
24.923077
56
0.768519
[ "MIT" ]
shreedee/neDockerSchedular
schedularServer/components/schedular/JobHandlerEnumModel.cs
326
C#