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 System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using DalSic; namespace Consultorio.ConsultaAmbulatoria.ControlPerinatal.Actividades { public partial class Default : System.Web.UI.Page { private int idPaciente ...
38.5
168
0.628247
[ "MIT" ]
saludnqn/consultorio
Consultorio/ConsultaAmbulatoria/ControlPerinatal/Actividades/Default.aspx.cs
1,850
C#
namespace XrmFramework.MSBuild.Generation { public class MSBuildInformationProvider : IMSBuildInformationProvider { private readonly string _msbuildVersion; public MSBuildInformationProvider(string msbuildVersion) { _msbuildVersion = msbuildVersion; } public...
22.888889
73
0.652913
[ "MIT" ]
cgoconseils/XrmFramework
src/XrmFramework.MSBuild.Generation/MSBuildInformationProvider.cs
412
C#
/* * LUSID API * * # Introduction This page documents the [LUSID APIs](https://www.lusid.com/api/swagger), which allows authorised clients to query and update their data within the LUSID platform. SDKs to interact with the LUSID APIs are available in the following languages and frameworks: * [C#](https://github.c...
122.813397
16,252
0.628526
[ "MIT" ]
finbourne/lusid-sdk-csharp
sdk/Lusid.Sdk/Model/AggregatedReturnsRequest.cs
25,668
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> //--...
38.736111
182
0.604518
[ "MIT" ]
adamchlebek/ImageComparison
Properties/Resources.Designer.cs
2,791
C#
using System; using DShop.Common.Messages; using Newtonsoft.Json; namespace DShop.Services.Discounts.Messages.Events { public class DiscountCreated : IEvent { public Guid Id { get; } public Guid CustomerId { get; } public string Code { get; } public double Percentage { get; } ...
25.041667
56
0.577371
[ "MIT" ]
mpelekh/DNC-DShop.Services.Discounts
src/DShop.Services.Discounts/Messages/Events/DiscountCreated.cs
601
C#
using buildeR.Common.DTO.Message; using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; namespace buildeR.BLL.Interfaces { public interface IChatService { Task<MessageDTO> SendMessage(MessageDTO messageDTO); Task<List<MessageDTO>> GetGroupMessages(int...
22.6
61
0.746313
[ "MIT" ]
BinaryStudioAcademy/bsa-2020-buildeR
backend/buildeR.BLL/Interfaces/IChatService.cs
341
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.Diagnostics.CodeAnalysis; using System.Reflection; using System.Runtime.InteropServices.ComTypes; using System.Runtime.Versioning; namespace System.Runtime.InteropServi...
36.210784
123
0.678218
[ "MIT" ]
BodyBuildingKang/runtime
src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/Marshal.NoCom.cs
7,387
C#
using System; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; using Miningcore.Blockchain.Ethereum; using Miningcore.Contracts; using Miningcore.Extensions; using Miningcore.Messaging; using Miningcore.Native; using Miningcore.Notifications.Messages;...
29.899329
119
0.46532
[ "MIT" ]
4AlexG/miningcore
src/Miningcore/Crypto/Hashing/Ethash/Dag.cs
4,455
C#
namespace BattleshipGame.Models.Ships { public class Cruiser : Ship { public Cruiser() { Name = "Cruiser"; BattleShipType = BattleShipType.Cruiser; Holes = 3; Hits = 0; } } }
15.5
46
0.580645
[ "MIT-0" ]
jiteshkaranjkar/battleshipgame
.aws-sam/build/getAllItemsFunction/src/BattleshipGame/Models/Ships/Cruiser.cs
217
C#
using UnityEngine; using UnityEngine.Events; using System.Collections.Generic; namespace Lean.Touch { /// <summary>This component allows you to detect when a specific amount of fingers begin touching the screen.</summary> [HelpURL(LeanTouch.PlusHelpUrlPrefix + "LeanMultiHeld")] [AddComponentMenu(LeanTouch.Component...
30.01108
216
0.697526
[ "MIT" ]
JohnnyCenter/SpaceShooter
Assets/Lean/Touch+/Scripts/LeanMultiHeld.cs
10,834
C#
using System; using StoreModels; using Xunit; namespace StoreTests { public class UnitTest1 { private Inventory inv = new Inventory(); [Theory] [InlineData (0, true)] [InlineData(-2, false)] public void CheckQuantity(int q, bool expected) { bool result = in...
21.157895
55
0.584577
[ "MIT" ]
210215-USF-NET/Hans_Mittig-P0
StoreTests/UnitTest1.cs
402
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using SteuerSoft.Network.Protocol.Util; namespace SteuerSoft.Network.Protocol.Client.Material { public class MethodCaller<TParam, TResult> { private Func<WapEndPoint, TParam, Task<TResul...
24.5
100
0.657434
[ "MIT" ]
2steuer/wap-protocol
SteuerSoft.Network.Protocol.Client/Material/MethodCaller.cs
688
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...
35.114286
166
0.672091
[ "Apache-2.0" ]
polivbr/pulumi-azure-native
sdk/dotnet/Network/V20181001/Inputs/ApplicationGatewayConnectionDrainingArgs.cs
1,229
C#
#region Using directives using System.IO; using System.Linq; using System.Reflection; using NBi.Xml; using NBi.Xml.Constraints; using NUnit.Framework; using NBi.Xml.Constraints.Comparer; using NBi.Core.ResultSet; #endregion namespace NBi.Testing.Xml.Unit.Constraints { [TestFixture] public class SingleRowXmlTe...
32.903846
99
0.658095
[ "Apache-2.0" ]
TheAutomatingMrLynch/NBi
NBi.Testing.Xml/Constraints/SingleRowXmlTest.cs
1,713
C#
namespace SimpleShop.AdminApp.Commands { using Contracts; using IO.Contracts; using Services.Contracts; public class LoginCommand : ICommand { private readonly IConsoleReader reader; private readonly IConsoleWriter writer; private readonly IAdminSessionService adminSessionS...
27.255319
75
0.57299
[ "MIT" ]
kalintsenkov/SimpleShopConsoleApp
SimpleShop.AdminApp/Commands/LoginCommand.cs
1,283
C#
using System; using System.Runtime.InteropServices; namespace RustCSharp { class Program { [DllImport("blotout.dll", EntryPoint = "bo_session_end")] private static extern void bo_session_end(); [DllImport("blotout.dll", EntryPoint = "bo_init")] private static extern void bo_init(string...
38.721311
152
0.612193
[ "MIT" ]
blotoutio/sdk-rust
demo/windows/RustCSharp/RustCSharp/Program.cs
2,364
C#
using System; using System.Collections.Generic; using System.Linq; using UnityEngine; using KSP.UI.Screens; using ToolbarControl_NS; using System.Collections; namespace StageRecovery { [KSPAddon(KSPAddon.Startup.FlightEditorAndKSC, false)] public class StageRecovery : MonoBehaviour { public static...
45.857728
259
0.527152
[ "MIT" ]
captain828/StageRecovery
StageRecovery/StageRecovery.cs
44,805
C#
using Microsoft.VisualStudio.Web.CodeGeneration.Contracts.Messaging; namespace Microsoft.VisualStudio.Web.CodeGeneration.Utils.Messaging { public interface IMessageHandler { bool HandleMessage(IMessageSender sender, Message message); } }
28.777778
69
0.783784
[ "Apache-2.0" ]
Arvinds-ds/Scaffolding
src/Shared/General/Messaging/IMessageHandler.cs
261
C#
// <auto-generated /> using System; using Daedalic.ProductDatabase.Data; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; n...
37.797071
125
0.467648
[ "MIT" ]
DaedalicEntertainment/product-database
Source/ProductDatabase/Daedalic.ProductDatabase/Migrations/20200131073221_GameWebsites.Designer.cs
18,069
C#
using Ryujinx.Common; using Ryujinx.Common.Configuration; using Ryujinx.Common.Configuration.Hid; using Ryujinx.Common.Logging; using Ryujinx.Configuration.Hid; using Ryujinx.Configuration.System; using Ryujinx.Configuration.Ui; using System; using System.Collections.Generic; namespace Ryujinx.Configuration { publ...
46.555051
170
0.536852
[ "MIT" ]
Kevinjeter/Ryujinx
Ryujinx.Common/Configuration/ConfigurationState.cs
41,015
C#
using System; using System.Management; namespace SubZero.Models { /// <summary> /// Helper for working with MSI WMI Objects /// </summary> public class MSIWmiHelper : IDisposable { #region Private Fields private bool disposedValue; #endregion Private Fields #regi...
32.541667
129
0.542345
[ "Apache-2.0" ]
TekuSP/SubZero
SubZero/Models/MSIWmiHelper.cs
5,469
C#
using System; using NPoco; using Umbraco.Core.Persistence.DatabaseAnnotations; namespace Umbraco.Core.Persistence.Dtos { [TableName(TableName)] [PrimaryKey("id", AutoIncrement = false)] [ExplicitColumns] internal class ContentScheduleDto { public const string TableName = Constants.Database...
26.852941
88
0.629792
[ "MIT" ]
0Neji/Umbraco-CMS
src/Umbraco.Core/Persistence/Dtos/ContentScheduleDto.cs
915
C#
using NUnit.Framework; using Realmar.DataBindings.Editor.TestFramework.BaseTests; namespace Realmar.DataBindings.Editor.Tests { [TestFixture] internal class Positive_E2E_ConverterTests : SandboxedTest { [Test] public void OneWay_IntToString() => RunTest(); [Test] public void TwoWay_IntToString() => RunTest...
20.684211
59
0.753181
[ "MIT" ]
laicasaane/unity-data-binding
Assets/DataBindings/Editor/Tests/Positive_E2E_ConverterTests.cs
393
C#
using i3dm.export.Tileset; using NUnit.Framework; using System.Collections.Generic; namespace i3dm.export.tests { public class TilesetGeneratorTests { [Test] public void GetTilesetTests() { // arrange var bounds = new BoundingBox3D(510231.3587475557, 6875083.881...
31.111111
130
0.605952
[ "MIT" ]
fnicollet/i3dm.export
tests/TilesetGeneratorTests.cs
842
C#
using SFA.DAS.CommitmentsV2.Types; using System; namespace SFA.DAS.CommitmentsV2.Messages.Events { public class TransferRequestApprovedEvent { public long TransferRequestId { get; } public long CohortId { get; } public DateTime ApprovedOn { get; } public UserInfo UserInfo { get;...
29.904762
122
0.654459
[ "MIT" ]
SkillsFundingAgency/das-commitments
src/CommitmentsV2/SFA.DAS.CommitmentsV2.Messages/Events/TransferRequestApprovedEvent.cs
628
C#
using System; using ClearHl7.Helpers; using ClearHl7.Serialization; namespace ClearHl7.V251.Types { /// <summary> /// HL7 Version 2 MOC - Money And Charge Code. /// </summary> public class MoneyAndChargeCode : IType { /// <summary> /// Gets or sets a value that indicates whether th...
45.323944
180
0.620572
[ "MIT" ]
davebronson/clear-hl7-net
src/ClearHl7/V251/Types/MoneyAndChargeCode.cs
3,220
C#
using DMCIT.Core.Entities.Core; using DMCIT.Core.Entities.Messaging; using DMCIT.Core.Interfaces; using DMCIT.Core.Services; using DMCIT.Core.SharedKernel; using DMCIT.Infrastructure.Providers; using DMCIT.Infrastructure.Services; using Hangfire.Server; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.D...
37.627063
223
0.554864
[ "MIT" ]
thanhtuan260593/dmcit-netcore
src/DMCIT.Infrastructure/Data/MessagingRepository.cs
11,403
C#
using System.Linq; using GraphQL.Client.Http; using GraphQL.Client.Serializer.Newtonsoft; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection.Extensions; using Peer.Domain; using Peer.Domain.Configuration; using Peer.Domain.GraphQL; us...
35.474576
121
0.626374
[ "MIT" ]
wareismymind/peer
Peer.GitHub/GitHubWebRegistrationHandler.cs
2,093
C#
//----------------------------------------------------------------------- // <copyright file="RemainingTests.cs" company="Akka.NET Project"> // Copyright (C) 2009-2016 Typesafe Inc. <http://www.typesafe.com> // Copyright (C) 2013-2016 Akka.NET project <https://github.com/akkadotnet/akka.net> // </copyright> //...
31.304348
88
0.534722
[ "Apache-2.0" ]
EnterpriseProductsLP/akka.net
src/core/Akka.TestKit.Tests/Xunit2/TestKitBaseTests/RemainingTests.cs
722
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> //--...
43.91453
230
0.602958
[ "Apache-2.0" ]
mcintyre321/RazorLight
src/RazorLight/Host/Resources.Designer.cs
5,140
C#
#region copyright //------------------------------------------------------------------------ // Copyright (C) Dmitriy Yukhanov - focus [http://codestage.net] //------------------------------------------------------------------------ #endregion namespace CodeStage.Maintainer.UI { using System.Diagnostics; using Syst...
28.897297
137
0.628881
[ "MIT" ]
Stulk3/ITario-plus
Assets/Plugins/CodeStage/Maintainer/Editor/Scripts/UI/Tabs/AboutTab.cs
5,348
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. // The BigNumber class implements methods for formatting and parsing // big numeric values. To format and parse nume...
42.371681
203
0.580917
[ "MIT" ]
1shekhar/runtime
src/libraries/System.Runtime.Numerics/src/System/Numerics/BigNumber.cs
33,516
C#
using System; using System.Collections; using System.Globalization; using System.IO; using Org.BouncyCastle.Asn1; using Org.BouncyCastle.Asn1.X509; using Org.BouncyCastle.Crypto; using Org.BouncyCastle.Math; using Org.BouncyCastle.Security; using Org.BouncyCastle.Security.Certificates; using Org.BouncyCastle.Utilities...
27.272356
144
0.646729
[ "MIT" ]
SchmooseSA/Schmoose-BouncyCastle
Crypto/pkix/Rfc3280CertPathUtilities.cs
66,790
C#
using System; namespace VoxCharger { public abstract partial class Event { public class Stop : Event { public int Duration { get; set; } public Stop(Time time) : base(time) { } public Stop(Time time, int duration) ...
17.916667
48
0.425581
[ "MIT" ]
SirusDoma/VoxCharger
Sources/Events/Stop.cs
432
C#
using System; using System.Collections.Generic; using System.Collections.Concurrent; namespace NewSharp.Extensions { public static class DictionaryExtensions { public static TValue GetOrAdd<TKey, TValue>(this IDictionary<TKey, TValue> dict, TKey key, TValue newValue) { if (dict.Try...
29.144737
125
0.583747
[ "BSD-3-Clause" ]
napen123/NewSharp
NewSharp/Extensions/Dictionary.Extensions.cs
2,217
C#
using UnityEngine; using Unity.Entities; [DisallowMultipleComponent] [AddComponentMenu("DOTS/NetworkObjectDestroyComponentProxy")] public class NetworkObjectDestroyComponentProxy : ComponentDataProxy<NetworkObjectDestroyComponent> { }
29.625
101
0.864979
[ "MIT" ]
k77torpedo/ForgeECS
Assets/ForgeECS/ComponentProxies/NetworkObjectDestroyComponentProxy.cs
239
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class AnswerButton : MonoBehaviour { public uint AnswerIndex = 0; public void Answer() { ConversationUIManager.Instance().AnswerQuestion(AnswerIndex); } }
18.714286
62
0.744275
[ "MIT" ]
warddav16/ProDev
ProDev/Assets/Scripts/AnswerButton.cs
264
C#
using System.Threading.Tasks; namespace Stl.Security { public class PrefixScopedKeyVault : IKeyVault { protected IKeyVault KeyVault { get; } protected string Prefix { get; } public PrefixScopedKeyVault(IKeyVault keyVault, string prefix) { KeyVault = keyVault; ...
26.5
70
0.624357
[ "MIT" ]
servicetitan/Stl.Extras
src/Stl.Experimental/Security/PrefixScopedKeyVault.cs
583
C#
using System; using System.Reflection; using System.Runtime.InteropServices; using System.Runtime.CompilerServices; // 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: Asse...
63.118644
345
0.783835
[ "Apache-2.0" ]
alefranz/aws-sdk-net
sdk/src/Services/XRay/Properties/AssemblyInfo.cs
3,724
C#
//------------------------------------------------------------------------------ // <copyright file="FontInfo.cs" company="Microsoft"> // Copyright (c) Microsoft Corporation. All rights reserved. // </copyright> //---------------------------------...
28.92029
114
0.468554
[ "Unlicense" ]
bestbat/Windows-Server
com/netfx/src/framework/mit/system/web/ui/mobilecontrols/fontinfo.cs
3,991
C#
#pragma checksum "/Users/christian/Desktop/repos/OSX .Net Core App/Views/Shared/_ValidationScriptsPartial.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "e436fc5a2b064bf206039538d1b6626723aa657b" // <auto-generated/> #pragma warning disable 1591 [assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemA...
84.325688
414
0.738508
[ "MIT" ]
chris-cata/dotnet-lab
src/obj/Debug/netcoreapp2.1/Razor/Views/Shared/_ValidationScriptsPartial.g.cshtml.cs
18,383
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("On...
38.945946
84
0.751561
[ "BSD-2-Clause" ]
andreialex007/OnlineMessenger
application/master/OnlineMessenger.TestUtils/Properties/AssemblyInfo.cs
1,444
C#
 namespace SampleApp { public class SampleMessageStore : SmtpServer.Storage.MessageStore { protected readonly System.IO.TextWriter m_writer; public SampleMessageStore(System.IO.TextWriter writer) { this.m_writer = writer; } /// <summary> ...
33.786667
112
0.588003
[ "MIT" ]
ststeiger/SmtpServer
Examples/SampleApp/SampleMessageStore.cs
2,536
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace ResTB.DB.Models { /// <summary> /// Resilience factor for mapped objects, depending on object parameters. language dependent! /// </summary> public class ResilienceFactor { public string ID { get...
26.85
97
0.672253
[ "Apache-2.0" ]
GEOTEST-AG/MiResiliencia
DB/Models/ResilienceFactor.cs
539
C#
// <auto-generated /> using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using ToDoList.Models; namespace ToDoList.Migrations { [DbContext(typeof(ToDoListContext))] ...
31.037975
75
0.505302
[ "MIT" ]
JakeAsh22/ToDoListLogin
ToDoList/Migrations/20200121164101_Initial.Designer.cs
2,454
C#
 using MiniDDD; using System; namespace DDD.CQRS.Domain.Events { public class UserCreated : DomainEvent<Guid> { public UserCreated(Guid aggregateRootKey, string name, string email) : base(aggregateRootKey) { Name = name; Email = email; } public string Na...
21.5
101
0.591731
[ "MIT" ]
861191244/miniDDD
src/Sample/CQRS/Domain/Events/UserCreated.cs
389
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // アセンブリに関する一般情報は以下の属性セットをとおして制御されます。 // アセンブリに関連付けられている情報を変更するには、 // これらの属性値を変更してください。 [assembly: AssemblyTitle("PipeToPeer")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: Ass...
29.162162
56
0.750695
[ "Unlicense" ]
RyuumaKishita/DemoP2P.Net
UnityDemo/Lib/PipeToPeer/Properties/AssemblyInfo.cs
1,666
C#
using System.Collections.Generic; using System.Linq; using Expansions.Missions; using KSPAchievements; using UnityEngine; namespace Bureaucracy { public class CrewMember { private double bonusAwaitingPayment; private ProtoCrewMember crewRef; public readonly int MaxStrikes; publi...
43.012048
280
0.6
[ "MIT" ]
Gordon-Dry/Bureaucracy
Bureaucracy/Crew/CrewMember.cs
7,140
C#
using GitTrends.Mobile.Shared; using ImageCircle.Forms.Plugin.Abstractions; using Xamarin.Forms; namespace GitTrends { public class GitHubSettingsView : ContentView { public GitHubSettingsView() { var gitHubAvatarImage = new CircleImage { AutomationId =...
43.310811
122
0.619033
[ "MIT" ]
GitTrends/GitTrends
GitTrends/Views/Settings/GitHubSettingsView.cs
3,207
C#
using System.Windows; namespace WPFCalc { /// <summary> /// Interaction logic for App.xaml /// </summary> public partial class App : Application { } }
15.666667
43
0.56383
[ "MIT" ]
fossabot/WPFCalc
App.xaml.cs
190
C#
namespace AssistiveRobot.Web.Service.Models.Request { public class GoalRequest { public string Status { get; set; } = null; } }
21
51
0.653061
[ "MIT" ]
chatreejs/assistiverobot-web-service
Assistiverobot.Web.Service/Models/Request/GoalRequest.cs
147
C#
using System; using System.Collections.Generic; using System.Linq; using Enterspeed.Source.Sdk.Api.Models.Properties; using Enterspeed.Source.SitecoreCms.V8.Models.Configuration; using HtmlAgilityPack; using Sitecore.Data.Fields; using Sitecore.Data.Items; using Sitecore.Web.UI.WebControls; namespace Enterspeed.Sourc...
34.232143
201
0.584246
[ "MIT" ]
MHove89/enterspeed-source-sitecore-cms
src/Enterspeed.Source.SitecoreCms.V8/Services/DataProperties/DefaultFieldConverters/DefaultRichTextFieldValueConverter.cs
3,836
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable using System; using System.Collections.Generic; using System.Globalization; using System.Threading; using System.Threading.Tasks; using Azure; using Azure.Core; using Azure.Core.Pipe...
62.889145
488
0.687048
[ "MIT" ]
damodaravadhani/azure-sdk-for-net
sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/CdnWebApplicationFirewallPolicyResource.cs
27,231
C#
using System; using System.Collections.Generic; using System.Linq; using Faker.Helpers; using Faker.Selectors; namespace Faker { public enum SelectorPosition { First, Last } /// <summary> /// The repository which determines the order in which selectors are picked for any given...
40.545455
120
0.59417
[ "Apache-2.0" ]
AOA/faker-csharp
src/Faker/TypeTable.cs
8,476
C#
using UnrealBuildTool; public class DialogSystemEditor : ModuleRules { public DialogSystemEditor(ReadOnlyTargetRules Target) : base(Target) { PublicIncludePaths.AddRange( new string[] { "DialogSystemEditor/Public", } ); PrivateInclu...
23.907407
73
0.410534
[ "Apache-2.0" ]
mrkriv/DialogPlugin
Source/DialogSystemEditor/DialogSystemEditor.Build.cs
1,291
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Server.Context { public class AuthorizationDbContext { } }
15
39
0.75
[ "MIT" ]
Andrewst-commits/MyMusicServer
Server/Server/Context/AuthorizationDbContext.cs
182
C#
// Copyright © 2020 EPAM Systems, Inc. All Rights Reserved. All information contained herein is, and remains the // property of EPAM Systems, Inc. and/or its suppliers and is protected by international intellectual // property law. Dissemination of this information or reproduction of this material is strictly forbidden...
32.45
223
0.272933
[ "MIT" ]
epam/epam-graphql
src/Tests/Epam.GraphQL.Tests/Sorting/SortTests.cs
19,471
C#
namespace GoalBasedMvc.Models { public class NetworkRecord { public int Id { get; set; } public string Name { get; set; } public string Url { get; set; } } }
19.5
40
0.569231
[ "MIT" ]
poppertech/GoalBasedMvc
GoalBasedMvc/GoalBasedMvc/Models/Network/NetworkRecord.cs
197
C#
/*<FILE_LICENSE> * NFX (.NET Framework Extension) Unistack Library * Copyright 2003-2018 Agnicore Inc. portions ITAdapter Corp. 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:/...
37.161905
110
0.562532
[ "Apache-2.0" ]
agnicore/nfx
src/NFX/Instrumentation/Analytics/HistogramReporters.cs
3,902
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> //------------------------------------------...
43.172185
169
0.632766
[ "Apache-2.0" ]
cloudfoundry-attic/cf-dotnet-sdk
src/CloudFoundry.CloudController.V2.Client/Generated/ServiceKeys.cs
6,519
C#
using System.Numerics; using AzureStorage; using AzureStorage.Tables; using Common.Log; using Lykke.AzureStorage.Tables; using Lykke.AzureStorage.Tables.Entity.Metamodel; using Lykke.AzureStorage.Tables.Entity.Metamodel.Providers; using Lykke.Service.EthereumClassicApi.Common.Settings; using Lykke.Service.EthereumClas...
34.209877
87
0.646698
[ "MIT" ]
LykkeCity/Lykke.Service.EthereumClassic.Api
src/Lykke.Service.EthereumClassicApi.Repositories/Factories/RepositoryFactory.cs
2,773
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Text.Json.Serialization; using System.Threading.Tasks; namespace JwtAuthDemo.Data { public class User { [Key] [Databa...
33.810811
72
0.632294
[ "MIT" ]
henryphamshc/api-auth-dmr
webapi/JwtAuthDemo/Data/User.cs
1,253
C#
//------------------------------------------------------------------------------ // // Copyright (c) Microsoft Corporation. // All rights reserved. // // This code is licensed under the MIT License. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated doc...
45.051502
172
0.595885
[ "MIT" ]
AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet
test/Microsoft.IdentityModel.Protocols.Tests/HttpDocumentRetrieverTests.cs
10,497
C#
using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Natasha.Log; using Natasha.Log.Model; using System; using System.Collections.Generic; using System.Text; namespace System { public class NErrorLog : ALogWrite { public static bool Enabled; static NErrorLog() => Enabled ...
30.446809
149
0.461915
[ "MIT" ]
hellomrsun/Natasha
src/Natasha.CSharp/Natasha.CSharp.Engine/NLog/NErrorLog.cs
5,810
C#
// Copyright (c) Jeremy W. Kuhne. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System.Drawing; using WInterop.Gdi; namespace WInterop.Windows { public static partial class Message { public readonly ref struct WindowPo...
35.633333
110
0.609916
[ "MIT" ]
JeremyKuhne/WInterop
src/WInterop.Desktop/Windows/Messages/Message.WindowPositionChanged.cs
1,071
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using com.rfilkov.kinect; namespace com.rfilkov.components { /// <summary> /// SceneBlendRenderer provides volumetric rendering and lighting of the real environment, as seen by the sensor's color camera. /// </summary> pub...
41.883803
184
0.589575
[ "MIT" ]
mmuu1987/ChangLongKinect
Assets/AzureKinectExamples/KinectScripts/SceneBlendRenderer.cs
11,897
C#
/* C# "SophisticatedSearcher.cs" by Jeremy Love <mailto:jez@jezlove.uk> copyright 2020 */ using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.IO.Compression; using System.Text.RegularExpressions; using System.Xml; using System.Xml.XPath; using ReSearcher....
29.438596
187
0.727652
[ "MIT" ]
jezlove/ReSearcher
SophisticatedSearcher.cs
1,678
C#
using System; public class SetTankVector : Message { private const int PAYLOAD_SIZE = 4; private short leftSpeed; private short rightSpeed; public SetTankVector() : base() { this.SetCommandCode(CommandCode.SET_TANT_VECTOR); } public SetTankVector(Message message) : base(messa...
27.578313
96
0.570992
[ "BSD-3-Clause" ]
WisconsinRobotics/BadgerJAUS.NET
BadgerJaus/messages/localvectordriver/SetTankVector.cs
2,291
C#
namespace Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801 { using Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PowerShell; /// <summary>BackupRequest resource specific properties</summary> [System.ComponentModel.TypeConverter(typeof(BackupRequestPropertiesTypeConverter))] ...
116.211921
625
0.769603
[ "MIT" ]
3quanfeng/azure-powershell
src/Functions/generated/api/Models/Api20190801/BackupRequestProperties.PowerShell.cs
17,398
C#
using Microsoft.AspNetCore.Identity.EntityFrameworkCore; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Text; using riddle_crud_application.Models; namespace riddle_crud_application.Data { public class ApplicationDbContext : IdentityDbContext { public...
27.736842
83
0.749526
[ "MIT" ]
Branbados/riddle-crud-application
Data/ApplicationDbContext.cs
529
C#
namespace Microsoft.AspNetCore.Mvc.ApiExplorer { using Microsoft.AspNet.OData; using Microsoft.AspNetCore.Mvc.Abstractions; using Microsoft.AspNetCore.Mvc.ModelBinding; using Microsoft.DotNet.PlatformAbstractions; using Microsoft.OData.Edm; using System; using System.Collections.Generic; ...
38.268116
161
0.60178
[ "MIT" ]
AzureMentor/aspnet-api-versioning
src/Microsoft.AspNetCore.OData.Versioning.ApiExplorer/AspNetCore.Mvc.ApiExplorer/PseudoModelBindingVisitor.cs
5,283
C#
namespace TeamLegend.Web.Areas.Administration.Models.League { using Common; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; public class LeagueCreateInputModel { private const string LeagueNameDisplay = "Name"; private const string LeagueCountryDispl...
42.064516
168
0.72546
[ "MIT" ]
alexdimitrov2000/AspNetCore_PersonalProject
TeamLegend/TeamLegend.Web/Areas/Administration/Models/Leagues/LeagueCreateInputModel.cs
1,306
C#
//------------------------------------------------------------------------------ // <auto-generated> // Dieser Code wurde von einem Tool generiert. // Laufzeitversion:4.0.30319.42000 // // Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn // der Code erneut generi...
31.282051
96
0.654918
[ "MIT" ]
georghinkel/ttc2017smartGrids
generator/Schema/IEC61970/Informative/InfLocations/IOrgPropertyRole.cs
2,442
C#
using System; using System.Collections.Generic; using System.Reflection; using System.Text; using System.Linq; using TestMyCode.CSharp.Core.Data; using TestMyCode.CSharp.Core.Test; using Xunit; namespace TestMyCode.CSharp.Tests.Passed { public class TestPassed { private Assembly Assembly = Assembly.Loa...
44.238806
158
0.703104
[ "MIT" ]
TMC-CSharp/tmc-csharp-runner
Tests/Points/TestPassed.cs
2,964
C#
using System; using System.Collections.Generic; namespace P01_BillsPaymentSystem.Data.Models { public class CreditCard { public CreditCard() { } public CreditCard(decimal limit, decimal moneyOwned, DateTime expirationDate) { this.Limit = limit; ...
23.704225
85
0.505645
[ "MIT" ]
Shtereva/CSharp-DB-Fundamentals---Entity-Framework
Advanced Relations/P01_BillsPaymentSystem.Data.Models/CreditCard.cs
1,685
C#
using PandaSharp.Bamboo.Services.Plan.Contract; namespace PandaSharp.Bamboo.Services.Plan.Factory { public interface IPlanRequestBuilderFactory { IGetAllPlansRequest GetAllPlans(); IGetInformationOfPlanRequest GetInformationOf(string projectKey, string planKey); IGetBranchesOfPlanReq...
37.5
105
0.782222
[ "MIT" ]
soerendd/PandaSharp
PandaSharp.Bamboo/Services/Plan/Factory/IPlanRequestBuilderFactory.cs
1,352
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 Mi...
43.594595
140
0.753875
[ "MIT" ]
Agazoth/azure-powershell
src/Migrate/generated/api/Models/Api20210210/InMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags.cs
1,577
C#
// *** WARNING: this file was generated by pulumigen. *** // *** 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.Kubernetes.Storage....
50.316176
302
0.670174
[ "Apache-2.0" ]
hazsetata/pulumi-kubernetes
sdk/dotnet/Storage/V1Beta1/VolumeAttachmentList.cs
6,843
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using RestServer1.DAL.Enum; using RestServer1.DAL.Model; using RestServer1.Core.Abstract; using log4net; namespace RestServer1.API.Controllers { [Route("api/[controller]")] [ApiCont...
33.579365
150
0.538171
[ "MIT" ]
patricebeaujolin/RestServer1
API/Controllers/LogsController.cs
4,233
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("Te...
37.378378
84
0.742589
[ "BSD-3-Clause" ]
Microsoft/libyara.NET
Tests/Properties/AssemblyInfo.cs
1,386
C#
// // Klak - Utilities for creative coding with Unity // // Copyright (C) 2016 Keijiro Takahashi // // 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 l...
33.027027
80
0.711538
[ "MIT" ]
Adjuvant/videolab
Assets/Klak/Wiring/System/NodeBase.cs
2,444
C#
using System; using System.Linq; using System.Web; using System.Web.UI; using Microsoft.AspNet.Identity; using Microsoft.AspNet.Identity.Owin; using Owin; using RentACar.Models; namespace RentACar.Account { public partial class Register : Page { protected void CreateUser_Click(object sender, EventArgs...
43.472222
156
0.649201
[ "MIT" ]
haithemChkel/ASP.Net_Training
RentACar/RentACar/Account/Register.aspx.cs
1,567
C#
using System.Reflection; 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("EA.Weee.Email")] [assembly: AssemblyDescr...
37.75
84
0.739514
[ "Unlicense" ]
DEFRA/prsd-weee
src/EA.Weee.Email/Properties/AssemblyInfo.cs
1,362
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.269 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //----...
47.383333
305
0.619592
[ "Apache-2.0" ]
1508553303/AspNetWebStack
src/System.Web.WebPages.Deployment/Resources/ConfigurationResources.Designer.cs
5,690
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class GlueItem : MonoBehaviour { public void UseGlue() { InventoryManager.UseGlue(transform.parent); } }
17.75
51
0.723005
[ "Unlicense" ]
zelakus/GGJ2020
Repair/Assets/Scripts/User Interface/GlueItem.cs
215
C#
using System; namespace HMPPS.ErrorReporting { public interface ILogManager { void LogInfo(string message, Type sourceType); void LogAudit(string message, Type sourceType); void LogDebug(string message, Type sourceType); void LogWarning(string message, Type sourceType); ...
29.733333
69
0.697309
[ "MIT" ]
glenjamin/hmpps-hub
src/HMPPS.Monitoring/HMPPS.ErrorReporting/ILogManager.cs
446
C#
namespace Hss.Web.Tests { using System.Net; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc.Testing; using Xunit; public class WebTests : IClassFixture<WebApplicationFactory<Startup>> { private readonly WebApplicationFactory<Startup> server; public WebTests(WebA...
33.447368
120
0.648308
[ "MIT" ]
ivan-nikolov/HSS
Src/Tests/Hss.Web.Tests/WebTests.cs
1,273
C#
namespace Masa.Contrib.Ddd.Domain.Repository.EF.Tests.Infrastructure; public class CustomDbContext : DbContext { public DbSet<Orders> Orders { get; set; } public DbSet<Students> Students { get; set; } public DbSet<Courses> Courses { get; set; } public DbSet<Hobbies> Hobbies { get; set; } public...
26.916667
89
0.660991
[ "MIT" ]
capdiem/MASA.Contrib
test/Masa.Contrib.Ddd.Domain.Repository.EF.Tests/Infrastructure/CustomDbContext.cs
646
C#
public class MapType { public const string DUSTLAND = "map_dust_land"; public const string SWAMP = "map_swamp"; }
24.4
49
0.713115
[ "MIT" ]
GraySchofield/SavageEraNew
Assets/Scirpts/Model/Map/MapType.cs
124
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.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.InteropSer...
51.060932
211
0.626211
[ "MIT" ]
endintiers/machinelearning
test/Microsoft.ML.Tests/OnnxConversionTest.cs
28,494
C#
using System.ComponentModel.DataAnnotations; using Domain.Enums; namespace BLL.App.DTO.DomainEntityDTOs { public class Folder { public int Id { get; set; } public FolderType FolderType { get; set; } [MaxLength(64)] [MinLength(1)] [Required] public stri...
23.64
70
0.58714
[ "MIT" ]
JanekV/Learn2Play
Learn2Play/BLL.App.DTO/DomainEntityDTOs/Folder.cs
593
C#
using System; using System.Collections.Generic; using UnityEngine; using XLua; namespace Main { public class PhysicsListener : BehaviourListener { public string listenerTag; public Action<LuaTable, Collider> onTriggerEnter; public Action<LuaTable, Collider> onTriggerStay; public Action<LuaTable, Collider> ...
21.318966
94
0.705216
[ "MIT" ]
1174290471/HotUpdateSolution
Assets/Scripts/Lua/BehaviourListener/PhysicsListener.cs
2,475
C#
using UnityEngine; using UnityEngine.UI; namespace UIParts { [RequireComponent(typeof(Text))] public class VersionText : MonoBehaviour { public void Start() { GetComponent<Text>().text = Game.Version; } } }
15.785714
44
0.710407
[ "MIT" ]
kyubuns/OnlineCoinPusher
Assets/Scripts/UIParts/VersionText.cs
223
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> //------------------------------------------...
30.900783
188
0.699493
[ "MIT" ]
Cloud-Awesome/cds-customisation
src/CloudAwesome.Xrm.Customisation/CloudAwesome.Xrm.Customisation/EarlyBoundModels/CustomAPIRequestParameter.cs
23,670
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 u...
24.41806
86
0.586632
[ "MIT" ]
SkriptInsight/Apache.NBCEL
NBCEL/ClassFile/EmptyVisitor.cs
7,301
C#
namespace VI.ParallelComputing.Drivers { public interface IGpuInterface { ParalleExecutorlInterface Executor { get; } } }
20.285714
51
0.697183
[ "MIT" ]
snownz/Virtual-Intelligence
VI/VI.ParallelComputing/Drivers/IAnnParallelInterface.cs
144
C#
using System.ComponentModel.DataAnnotations; namespace Frapid.AddressBook.QueryModels { public class AddressBookQuery { public string Tags { get; set; } [Required] public bool PrivateOnly { get; set; } public int UserId { get; set; } } }
20.357143
45
0.638596
[ "Apache-2.0" ]
Sandeepchau/MixErp22
src/Frapid.Web/Areas/Frapid.AddressBook/Backup/QueryModels/AddressBookQuery.cs
287
C#
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ namespace Microsoft.Azure.I...
39.384615
99
0.583984
[ "MIT" ]
bamajeed/Industrial-IoT
api/src/Microsoft.Azure.IIoT.Api/src/Jobs/Runtime/JobsServiceConfig.cs
1,538
C#
namespace ContosoInsurance.Models { public interface INetworkConnection { bool IsConnected { get; } void CheckNetworkConnection(); } }
18.222222
39
0.658537
[ "MIT" ]
Azure-Samples/ContosoInsurance
Src/Mobile/ContosoInsurance/ContosoInsurance/Models/INetworkConnection.cs
166
C#
using AutoMapper; using Microsoft.EntityFrameworkCore; using RPG.Data.Context; using RPG.Data.Repository.CharacterRepository; using RPG.Domain.Dto.Character; using RPG.Domain.Entities; using RPG.Domain.Response; using System.Collections.Generic; using System.Threading.Tasks; namespace RPG.Services.CharacterServices {...
38.232323
131
0.634875
[ "MIT" ]
HusseinShukri/DotNET-RPG
RPG/RPG.Services/CharacterService/.vshistory/CharacterService.cs/2021-08-13_20_56_18_591.cs
3,787
C#