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
//------------------------------------------------------------------------------ // <auto-generated> // 此代码由工具生成。 // 运行时版本:4.0.30319.18052 // // 对此文件的更改可能会导致不正确的行为,并且如果 // 重新生成代码,这些更改将会丢失。 // </auto-generated> //------------------------------------------------------------------------------ namespace DX...
31.333333
80
0.520458
[ "Apache-2.0" ]
zhenghua75/DXInfo
DXInfo.Data/Configuration/PTTypeConfiguration.cs
1,328
C#
using System; using System.Linq; using System.Threading.Tasks; using Discord; using Discord.Commands; namespace DiscordOgerBot.Modules { public class GenericCommands : ModuleBase<SocketCommandContext> { private readonly Random _rand = new(); [Command("help")] public async Task SendHe...
40.231481
174
0.526928
[ "MIT" ]
MoriPastaPizza/DiscordOgerBotWeb
DiscordOgerBot/Modules/GenericCommands.cs
8,698
C#
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace BuildXL.FrontEnd.Script.RuntimeModel.AstBridge { /// <summary> /// Abstract base class for optional (user-configurable) DS Lint rules. /// ...
32.193548
102
0.594188
[ "MIT" ]
AzureMentor/BuildXL
Public/Src/FrontEnd/Script/RuntimeModel/AstBridge/Linter/PolicyRule.cs
998
C#
using System; using System.Collections.ObjectModel; namespace A5Soft.CARMA.Domain.Metadata { /// <summary> /// Common interface for entity (class) metadata localization provider. /// </summary> /// <remarks>Entity could be commonly described in: /// 1) Web edit form header or winforms/WPF form cap...
43.278481
112
0.636736
[ "MIT" ]
Apskaita5/CARMA
src/A5Soft.CARMA.Domain/Metadata/IEntityMetadata.cs
3,421
C#
// Copyright Bastian Eicher // Licensed under the MIT License #if !NET20 && !NET40 using System.Threading.Tasks; #endif namespace NanoByte.Common.Collections { /// <summary> /// Provides extension methods for <see cref="IEnumerable{T}"/>s. /// </summary> public static class EnumerableExten...
48.093976
204
0.584047
[ "MIT" ]
nano-byte/common
src/Common/Collections/EnumerableExtensions.cs
19,959
C#
using System; using System.Collections.Generic; using System.Net; using System.Threading.Tasks; using AutoFixture; using FluentAssertions; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Testing; using Newtonsoft.Json; using Withywoods.AspNetCoreApiSample.Dto; using Withywoods.AspNetCoreApiSample.Integr...
41.217105
153
0.631764
[ "Apache-2.0" ]
Net-Acheteur/withywoods
test/AspNetCoreApiSample.IntegrationTests/Resources/TaskResourceTest.cs
6,267
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.AwsN...
33.736842
113
0.695788
[ "Apache-2.0" ]
AaronFriel/pulumi-aws-native
sdk/dotnet/SageMaker/Inputs/MonitoringScheduleConfigArgs.cs
1,282
C#
using System; using System.Collections.Generic; using System.Net.Http; using System.IO; using System.IO.Compression; using System.Text; using Newtonsoft.Json; namespace rosette_api { public class RosetteResponse { public RosetteResponse(HttpResponseMessage responseMsg) { Content = new Dicti...
40.694737
172
0.552768
[ "Apache-2.0" ]
rosette-api/dotnet
rosette_api/RosetteResponse.cs
3,866
C#
using System; using System.Collections.Generic; using System.Linq; using System.Windows.Forms; namespace UserMaintenance { static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void Main() { ...
22
65
0.60124
[ "Apache-2.0" ]
wxd4cd/VersionControl
UserMaintenance/Program.cs
486
C#
using System; using System.IO; using System.Net; using System.Threading.Tasks; using UNicoAPI2.Connect; namespace UNicoAPI2.APIs.search { public class Accessor : IAccessor { public AccessorType Type { get { return AccessorType.Download; } ...
25.919355
126
0.522091
[ "Unlicense" ]
cocop/UNicoAPI2
UNicoAPI2/APIs/search/Accessor.cs
1,609
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.DotNet.Cli.CommandLine; namespace Microsoft.EntityFrameworkCore.Migrations.Design; public class MigrationsBundleTest { [ConditionalFact] public void Short_...
27.359223
98
0.559262
[ "MIT" ]
AraHaan/efcore
test/EFCore.Design.Tests/Migrations/Design/MigrationsBundleTest.cs
2,820
C#
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ /...
45.46332
173
0.630743
[ "MIT" ]
DamienTehDemon/msgraph-sdk-dotnet
src/Microsoft.Graph/Generated/requests/UnifiedRoleDefinitionRequest.cs
11,775
C#
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="HoneypotRuleCollection.cs" company="Web Advanced"> // Copyright 2012 Web Advanced (www.webadvanced.com) // Licensed under the Apache License, Version 2.0 (the "License"); // y...
36.131148
121
0.575771
[ "Apache-2.0" ]
TechSmith/Honeypot-MVC
src/SimpleHoneypot/Core/HoneypotRuleCollection.cs
2,206
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Ejercicio8 : MonoBehaviour { public int dia; // Start is called before the first frame update void Start() { switch (dia) { case 1: Debug.Log("Domingo"); ...
20.16
59
0.417659
[ "MIT" ]
DylanTsai1/Gu-a-de-programaci-n-1
Assets/Ejercicio8.cs
1,010
C#
using System.Collections.Generic; using UnityEngine; public class SpritedObserverBehaviour<T> : ObserverBehaviour<T> where T: Entity<T> { List<SpriteRenderer> layers = new List<SpriteRenderer>(); public override void HandleEvent(string signal, object[] args) { throw new System.NotImplementedException...
34.789474
106
0.618003
[ "Apache-2.0" ]
FilippoLeon/Shipwreck
Assets/Components/SpritedObserverBehaviour.cs
1,324
C#
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Drawing; using Microsoft.Extensions.Configuration; using System.Text; using System.Diagnostics; namespace SpotlightImages { public class ImageProcessor { private string spotlightImagesFolder; priva...
36.886364
224
0.465393
[ "MIT" ]
mdraganov/SpotlightImages
SpotlightImages/src/SpotlightImages/ImageProcessor.cs
9,740
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; namespace rokWebsite.Models { public class KvkPlayers { [Key] public int Id { get; set; } [Required(ErrorMessage = "Update Time")] [Di...
23.52
68
0.644558
[ "MIT" ]
behluluysal/asp-net-core-5-training
rokWebsite/Models/KvkPlayers.cs
590
C#
namespace Sportify.Services { using System.Collections.Generic; using System.Linq; using Data; using Data.Models; using Data.ViewModels.Countries; using global::AutoMapper; using Interfaces; using Microsoft.AspNetCore.Identity; public class CountriesService : BaseService, ICountri...
27.877551
140
0.599561
[ "MIT" ]
dobroslav-atanasov/Sportify
src/Services/Sportify.Services/CountriesService.cs
1,368
C#
using Microsoft.EntityFrameworkCore.Migrations; namespace backend.Migrations { public partial class Title : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn<string>( name: "Title", table: "Notes",...
25
71
0.546667
[ "MIT" ]
caprapaul/habit-app
backend/backend/Migrations/20211205124443_Title.cs
602
C#
using System; using System.Collections.Generic; using Siege.Eventing.Messages; namespace Siege.Eventing { public class ThreadedMessageTracker : IMessageTracker { [ThreadStatic] private static List<IMessage> receivedMessages; public void Track(IMessage message) { ...
24.6
73
0.593496
[ "Apache-2.0" ]
lokalan/Siege
Siege.Futures/Siege.Eventing/ThreadedMessageTracker.cs
740
C#
using System.Collections.Generic; using System.Configuration; namespace NConfig { /// <summary> /// Sections merger which performs configuration property-by-property merge. /// </summary> /// <typeparam name="TSection">Configuration section type.</typeparam> public class PropertyMerger<TSection> :...
35.653061
122
0.606182
[ "MIT" ]
Yegoroff/NConfig
NConfig/Implementation/Mergers/PropertyLevelMerger.cs
1,749
C#
public class SavedInt { private readonly string id; private int value; public int Value { get => value; set { this.value = value; Save(); } } public SavedInt(string id) { this.id = id; string stringValue = LocalStora...
20.060606
77
0.563444
[ "MIT" ]
MartinKral/Spherestroyer
Assets/Scripts/Main/Utils/GameSaver/SavedInt.cs
664
C#
using System; using System.Runtime.Serialization; using System.Web.Security; using Orchard.ContentManagement.Records; namespace CloudBust.Application.Models { public class ApplicationApplicationCategoriesRecord { public virtual int Id { get; set; } public virtual ApplicationRecord Application {...
30.214286
82
0.751773
[ "BSD-3-Clause" ]
doticca/Orchard.CloudBust
src/Orchard.Web/Modules/CloudBust.Application/Models/ApplicationApplicationCategoriesRecord.cs
423
C#
using Nssol.Platypus.ApiModels.Components; using Nssol.Platypus.Controllers.Util; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; namespace Nssol.Platypus.ApiModels.PreprocessingApiModels { /// <summary> /// 前処理作成の入力...
24.949153
78
0.548913
[ "Apache-2.0" ]
428s/kamonohashi
web-api/platypus/platypus/ApiModels/PreprocessingApiModels/CreateInputModel.cs
1,738
C#
using System; using System.Collections.Generic; using SFA.DAS.Commitments.Domain.Entities; namespace SFA.DAS.Commitments.Application.Interfaces.ApprenticeshipEvents { public interface IApprenticeshipEventsList { void Add(Commitment commitment, Apprenticeship apprenticeship, string @event, DateTime? ef...
32.928571
148
0.754881
[ "MIT" ]
Ryan-Fitchett/Test
src/SFA.DAS.Commitments.Application/Interfaces/ApprenticeshipEvents/IApprenticeshipEventsList.cs
463
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Brume.Common.Office { public interface IFileHelper { string GetDocumentPath(string id); void ClearTempDocument(string dir); } }
17.8125
43
0.722807
[ "MIT" ]
alienblog/OfficePreviewOnline
Brume.Common.Office/Brume.Common.Office/IFileHelper.cs
287
C#
using System; using System.Collections.Generic; using System.Configuration; using System.Data; using System.Linq; using System.Threading.Tasks; using System.Windows; namespace WpfAppDeviceSimulator { /// <summary> /// Interaction logic for App.xaml /// </summary> public partial class App : Application...
18.611111
42
0.713433
[ "MIT" ]
ms-iotkithol-jp/StreamAnalyticsUnzipDeserialize
simulator/WpfAppDeviceSimulator/App.xaml.cs
337
C#
using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using LogicBuilder.Attributes; namespace Contoso.Domain.Entities { public class DepartmentModel : BaseModelClass { [VariableEditorControl(VariableControlType.SingleLineTextBox)] [AlsoKnownAs("Department_DepartmentID")] publi...
33.456522
85
0.769331
[ "MIT" ]
BlaiseD/Contoso
.NetCore/ContosoUniversity/DomainFiles/DepartmentModel.cs
1,541
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.211073
182
0.603082
[ "Apache-2.0" ]
test-wiz-sec/pulumi-azure-nextgen
sdk/dotnet/Network/V20190201/ExpressRouteCrossConnectionPeering.cs
12,199
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("Inc...
38
84
0.750356
[ "MIT" ]
vanya3254/SoftUni-CSharp-PBasics
SimpleCalculation/InchesToCentimeters/Properties/AssemblyInfo.cs
1,409
C#
// Deployment Framework for BizTalk // Copyright (C) 2008-14 Thomas F. Abraham, 2004-08 Scott Colestock // This source file is subject to the Microsoft Public License (Ms-PL). // See http://www.opensource.org/licenses/ms-pl.html. // All other rights reserved. using System; using System.Collections; using System.Colle...
49.94375
206
0.642973
[ "MIT" ]
BTDF/BTDF
src/btdf/Tools/BuildTasks/BizTalkDeploymentFramework.Tasks/PublishWcfServiceArtifacts.cs
7,993
C#
using Microsoft.EntityFrameworkCore; using Stize.CQRS.Command; using Stize.CQRS.EntityFrameworkCore.Internal; using Stize.Domain.Entity; using Stize.DotNet.Result; namespace Stize.CQRS.EntityFrameworkCore.Command { public class EntityCommand<TEntity, TKey, TContext> : ICommand<Result<TKey>>, IEntityCqrsRequest<TE...
29.5
141
0.716102
[ "Apache-2.0" ]
stize/dotnet
src/CQRS/EntityFrameworkCore/EntityCommand.cs
710
C#
using Entitas; /// <summary> /// A marker to identify the Entity within each context that holds Unique Components /// </summary> public class UniqueComponentsHolder : IComponent { }
18.5
84
0.740541
[ "MIT" ]
jeffvella/EntitasGenerics
Assets/Libs/Entitas-Generics/Components/UniqueComponents.cs
187
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 System.Linq; using Microsoft.AspNetCore.Razor.Language; using Microsoft.AspNetCore.Razor.TagHelpers; using Microsoft.CodeAnalysis.CSharp; using M...
34.34058
111
0.58008
[ "Apache-2.0" ]
belav/aspnetcore
src/Razor/Microsoft.CodeAnalysis.Razor/test/CompilationTagHelperFeatureTest.cs
4,741
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("De...
38.351351
84
0.749119
[ "MIT" ]
donstany/Sand_Box
Delegate_Lamda_function/Properties/AssemblyInfo.cs
1,422
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/strmif.h in the Windows SDK for Windows 10.0.22000.0 // Original source is Copyright © Microsoft. All rights reserved. using NUnit.Framework; using System...
35.921569
145
0.694323
[ "MIT" ]
reflectronic/terrafx.interop.windows
tests/Interop/Windows/Windows/um/strmif/IVMRImageCompositorTests.cs
1,834
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using Kujikatsu066.Algorithms; using Kujikatsu066.Collections; using Kujikatsu066.Extensions; using Kujikatsu066.Numerics; using Kujikatsu0...
35.551402
139
0.430862
[ "MIT" ]
terry-u16/AtCoder
Kujikatsu066/Kujikatsu066/Kujikatsu066/Questions/QuestionF.cs
3,806
C#
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Threading.Tasks; using OpenConfigurator.Core.XmlDAL; namespace OpenConfigurator.Core.XmlDAL.ModelFile.DataEntities { [DataContract] internal class Feature : iDataEntity { ...
21.538462
74
0.513393
[ "MIT" ]
rmitache/OpenConfigurator
XmlDAL/ModelFile/DataEntities/Feature.cs
1,122
C#
using System.Collections; using System.Collections.Generic; using System.Linq; using Silky.Core; using Silky.Core.Rpc; using Silky.Core.Serialization; using Silky.Rpc.Messages; using Silky.Rpc.Transport; using SkyApm.Tracing; namespace Silky.Rpc.SkyApm.Diagnostics.Collections { public class SilkyCarrierHeaderColle...
28.24
106
0.631728
[ "MIT" ]
scjjcs/silky
framework/src/Silky.SkyApm.Diagnostics/Collections/SilkyCarrierHeaderCollection.cs
1,412
C#
using Moq; using NUnit.Framework; using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.ServiceModel; using AutoFixture.Idioms; using EMG.Extensions.DependencyInjection.Discovery; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection;...
41.432258
229
0.722205
[ "MIT" ]
Josephson199/dotnet-extensions
tests/DependencyInjection/Tests.ServiceModel.DiscoveryAdapter/ServiceCollectionDiscoveryExtensionsTests.cs
6,422
C#
// ----------------------------------------------------------------------- // Copyright 2018 Autodesk, Inc. All rights reserved. // // Use of this software is subject to the terms of the Autodesk license // agreement provided at the time of installation or download, or which // otherwise accompanies this software in ...
29.05102
104
0.479628
[ "BSD-3-Clause" ]
Autodesk/featurecam-api-examples
addin-featurecam-to-ncsimul/SourceCode/Variables.cs
5,696
C#
using System.Collections.Generic; using System.Linq; namespace com.snake.framework { namespace runtime { /// <summary> /// 下载管理器 /// </summary> public class DownloadManager : BaseManager { /// <summary> /// 下载任务列表 /// </...
35.377682
133
0.451899
[ "MIT" ]
ClaineLe/SnakeFramework-Develop
Assets/UnityPackages/com.snake.framework.core/Runtime/Core/Implement/Managers/DownloadManager/DownloadManager.cs
8,603
C#
using System.Collections.Generic; using Pulsee1.Utils.Mathp; using Pulsee1.Utils.Display; using System.Linq; using OpenTK; using System; namespace Pulsee1.Game.LevelGenerators.Generators { class FloorGenerator { private Vector2 _floorSize = new Vector2(20, 20); private Dictionary<Vector2, char...
35.415929
134
0.513243
[ "MIT" ]
Pandav0x/RogueTest
RogueTest/Temp/Generators/LevelGenerators/FloorGenerator.cs
4,004
C#
namespace SolidPrinciples.InterfaceSegregationPrinciple.WithoutPrinciple.Client; public class CannonMg2470 : IPrintTasks { public bool PrintContent(string content) { Console.WriteLine("Printing..."); return true; } public bool ScanContent(string content) { Console.WriteLin...
23.090909
81
0.650919
[ "MIT" ]
pncsoares/dotnet-solid-principles
InterfaceSegregationPrinciple/WithoutPrinciple/Client/CannonMg2470.cs
764
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. #nullable disable using System.ComponentModel; using System.ComponentModel.Design; using System.Diagnostics; using...
33.384787
142
0.538632
[ "MIT" ]
abdullah1133/winforms
src/System.Windows.Forms/src/System/Windows/Forms/WebBrowserSiteBase.cs
14,925
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; namespace Online.Store.Models.ManageViewModels { public class TwoFactorAuthenticationViewModel { public bool HasAuthenticator { get; set; } public int ...
22.666667
50
0.727941
[ "MIT" ]
chsakell/planet-scale-azure
Online.Store/Models/ManageViewModels/TwoFactorAuthenticationViewModel.cs
410
C#
using CustomGamemode; using GamemodeManager.Helper; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; namespace GamemodeManager { internal class GamemodeLoader { internal List<object> LoadedGamemodes { get; set; } internal List<string>...
33.35443
132
0.544592
[ "Apache-2.0" ]
AlmightyLks/GamemodeManager
GamemodeManager/GamemodeLoader.cs
2,637
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...
41.676923
196
0.62643
[ "Apache-2.0" ]
philasmar/aws-sdk-net
sdk/src/Services/CostExplorer/Generated/Model/Internal/MarshallTransformations/GetReservationUtilizationResponseUnmarshaller.cs
5,418
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. #define WLT_ARCORE_EXTRA_DEBUGGING using System.Collections; using System.Collections.Generic; using UnityEngine; #if WLT_ARCORE_SDK_INCLUDED using GoogleARCore; #...
30.012048
119
0.633079
[ "MIT" ]
QPC-database/MixedReality-WorldLockingTools-Samples
Advanced/ASA/Assets/WorldLocking.Core/Scripts/ARCore/SpongyAnchorARCore.cs
2,493
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> //--...
34.612903
151
0.584343
[ "MIT" ]
DominikaBogusz/WordCompletedNotes
WordCompletedNotes/Properties/Settings.Designer.cs
1,075
C#
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="NoFluentValidatorViewModel.cs" company="Catel development team"> // Copyright (c) 2008 - 2014 Catel development team. All rights reserved. // </copyright> // -------------------...
39.058824
120
0.448795
[ "MIT" ]
gautamsi/Catel
src/Catel.Test/Catel.Test.NET40/Extensions/FluentValidation/ViewModels/NoFluentValidatorViewModel.cs
666
C#
using System; using System.Collections.Generic; using System.Windows.Forms; namespace SwiftyProject { static class Program { /// <summary> /// Главная точка входа для приложения. /// </summary> [STAThread] static void Main() { Application.EnableVisua...
21.904762
65
0.593478
[ "MIT" ]
askeet/SwiffyToNet
NetProject/SwiftyProject/SwiftyProject/Program.cs
492
C#
using System; using System.Collections.Generic; using System.Text; namespace eShop.Configuration.Setup.Entities.Ordering { public class Orders : Aggregates.Entity<Orders, State, Setup> { private Orders() { } public void Seeded() { Apply<Events.Seeded>(x => { }); } ...
19.294118
65
0.606707
[ "MIT" ]
charlessolar/eShopOnContainersDDD
src/Contexts/Configuration/Domain/Entities/Setup/Entities/Ordering/Orders.cs
330
C#
#nullable enable using Newtonsoft.Json; namespace BizHawk.Client.Common { public struct FeedbackBind { public string? Channel; /// <remarks>"X# "/"J# " (with the trailing space)</remarks> public string? GamepadPrefix; [JsonIgnore] public bool IsZeroed => GamepadPrefix == null; public float Prescale;...
17.666667
68
0.70021
[ "MIT" ]
CartoonFan/BizHawk
src/BizHawk.Client.Common/config/FeedbackBind.cs
479
C#
#region History #if HISTORY_COMMENT // <[History]> Update 2014-12-07 ================= - DataAccess : ExcelConfig - Re-Implement Database Config classes for Excel File. ====================================================================================================================== Update 2010-02-03 ========...
30.668966
132
0.52676
[ "MIT" ]
chumpon-asaneerat/DMT.TA.TODv3
00.NLib/NLib/Data/Configs/OleDb/ExcelConfig.cs
17,790
C#
using System.Collections.Generic; using UnityEngine; using System.Linq; using Catan.Scripts.Common; namespace Catan.Scripts.Player { public class OrderDetermining : MonoBehaviour { public int[] orderNum = new int[4]; private PlayerId[] playerNames = new PlayerId[] { PlayerId.Player1, PlayerI...
23.893617
131
0.515583
[ "MIT" ]
THEToilet/OnlineCatan
OnlineCatan/Assets/Catan/Scripts/Player/OrderDetermining.cs
1,153
C#
using System; using System.Collections.Generic; using Xamarin.Forms; namespace SlideOverKit.MoreSample { public partial class PopOverWithTriangleView : SlidePopupView { public const int iOSTopMargin = 0; public const int AndroidTopMargin = 0; public const int WinPHoneTopMargin = 10; ...
37.769231
120
0.634759
[ "Apache-2.0" ]
daniel-luberda/SlideOverKit
SlideOverKitMoreSamples/SlideOverKit.Sample/Pages/PopOverWithTriangleView.xaml.cs
1,475
C#
/* * * (c) Copyright Ascensio System Limited 2010-2021 * * 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 la...
33.302941
171
0.495363
[ "ECL-2.0", "Apache-2.0", "MIT" ]
ONLYOFFICE/CommunityServer
web/studio/ASC.Web.Studio/Products/CRM/Core/Dao/TaskTemplateContainerDao.cs
11,323
C#
// <auto-generated> // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p1beta1/text_annotation.proto // </auto-generated> #pragma warning disable 1591, 0612, 3021 #region Designer generated code using pb = global::Google.Protobuf; using pbc = global::Google.Protobuf.Co...
37.968897
493
0.639295
[ "Apache-2.0" ]
kontab/google-cloud-dotnet
apis/Google.Cloud.Vision.V1P1Beta1/Google.Cloud.Vision.V1P1Beta1/TextAnnotation.cs
80,570
C#
//////////////////////////////////////////////////////////////////////////////// //EF Core Provider for LCPI OLE DB. // IBProvider and Contributors. 17.11.2020. namespace Lcpi.EntityFrameworkCore.DataProvider.LcpiOleDb.Basement.EF.Dbms.Firebird.Common.Query.Sql.Expressions.Transla...
48.807692
132
0.619385
[ "MIT" ]
ibprovider/Lcpi.EFCore.LcpiOleDb
Code/Provider/Source/Basement/EF/Dbms/Firebird/Common/Query/Sql/Expressions/Translators/Code/Funcs/NullableInt16/FB_Common__Sql_ETranslator__NullableInt16__std__HasValue.cs
1,271
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...
38.630303
153
0.627393
[ "Apache-2.0" ]
philasmar/aws-sdk-net
sdk/src/Services/KinesisAnalytics/Generated/Model/DiscoverInputSchemaRequest.cs
6,374
C#
#if UNITY_5_0 || UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4 #define UNITY_OLD_LINE_RENDERER #endif using UnityEngine; using System.Collections.Generic; namespace Lean.Touch { // This script shows you how you can check tos ee which part of the screen a finger is on, and work accordingly public class LeanFinger...
22.772512
112
0.668887
[ "Apache-2.0" ]
soniamaryc/ARUI_RandomObjectManipulation
Assets/LeanTouch/Examples+/Scripts/LeanFingerShoot.cs
4,805
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.Collections.ObjectModel; using System.Diagnostics; using System.Diagnostics.Tracing; using System.Refl...
45.266447
172
0.632294
[ "MIT" ]
GrabYourPitchforks/wcf
src/System.Private.ServiceModel/src/Internals/System/Runtime/ExceptionTrace.cs
13,761
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. namespa...
27.377778
74
0.587662
[ "MIT" ]
fhoering/autorest
src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/IntWrapper.cs
1,232
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...
53.852941
168
0.70781
[ "MIT" ]
Agazoth/azure-powershell
src/PostgreSql/generated/api/Models/Api20210601/ConfigurationListResultAutoGenerated.cs
3,595
C#
namespace Greenergy.Settings { public class MongoSettings { public string ConnectionString; public string Database; } }
19.375
47
0.632258
[ "MIT" ]
sorbra/greenergy
emissions-api/emissions-api.server/Settings/MongoSettings.cs
155
C#
using AutoMapper; using Bloemert.Data.Entity.Auth.Entity; using Bloemert.Data.Entity.Auth.Repository; using Bloemert.Data.Entity.Skills.Entity; using Bloemert.Lib.Auto.Mapping.AutoMapper; using System; using System.Collections.Generic; using System.Text; namespace Bloemert.WebAPI.Skills.Models.Mappers { public class...
27.608696
101
0.818898
[ "MIT" ]
Bloemert/Einstein
src/Bloemert.WebAPI.Skills/Models/Mappers/SkillCategoryMapperProfile.cs
637
C#
// // Copyright (c) 2010-2018 Antmicro // Copyright (c) 2011-2015 Realtime Embedded // // This file is licensed under the MIT License. // Full license text is available in 'licenses/MIT.txt'. // using Antmicro.Renode.Core.Structure; using System.Collections.Generic; using System.Linq; using System; using Antmicro.Migra...
28.5
120
0.589983
[ "MIT" ]
UPBIoT/renode-iot
src/Infrastructure/src/Emulator/Main/Core/HostMachine.cs
3,534
C#
namespace Assets.Scripts.Levels { class Advanced17 : GameLevel { public Advanced17() : base("Advanced17") { Initialize(3, 5); MapButtons = new int[,] { {YLW, GRN, YLW}, {OFF, LIT, OFF}, {GRN, LIT, GR...
20.24
43
0.37747
[ "MIT" ]
magius96/ShortCircuit_Android
Assets/Scripts/Levels/Advanced/1/Advanced17.cs
508
C#
#region License /* * WebSocket.cs * * This code is derived from WebSocket.java * (http://github.com/adamac/Java-WebSocket-client). * * The MIT License * * Copyright (c) 2009 Adam MacBeth * Copyright (c) 2010-2016 sta.blockhead * * Permission is hereby granted, free of charge, to any person obtaining a copy ...
28.13705
99
0.551515
[ "MIT" ]
UCan927/websocket-sharp
websocket-sharp/WebSocket.cs
115,587
C#
#region Copyright /*Copyright (C) 2015 Konstantin Udilovich 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 applicab...
31
99
0.759467
[ "Apache-2.0" ]
Kodestruct/Kodestruct.Dynamo
Kodestruct.Dynamo.UI/Views/Steel/AISC/Floor vibrations/JoistToGirderConnectionTypeSelectionView.xaml.cs
1,426
C#
namespace xUnitTutorial { public class Calculator { private CalculatorState _state = CalculatorState.Cleared; public decimal Value { get; private set; } = 0; public decimal Add(decimal value) { _state = CalculatorState.Active; return Value += value; ...
24.928571
65
0.502388
[ "MIT" ]
mirusser/Learning-dontNet
src/Testing/xUnitTutorial/Calculator.cs
1,049
C#
//this source code was auto-generated by tolua#, do not modify it using System; using LuaInterface; internal class UnityEngine_YieldInstructionWrap { public static void Register(LuaState L) { L.BeginClass(typeof(UnityEngine.YieldInstruction), typeof(System.Object)); L.RegFunction("New", _CreateUnityEngine_Yield...
22.325
102
0.717805
[ "MIT" ]
mybios/CSharpLuaForUnity
Assets/BaseScripts/Source/Generate/UnityEngine_YieldInstructionWrap.cs
895
C#
using System; using ReactiveDomain.Util; namespace ReactiveDomain.Messaging.Bus { public class AdHocHandler<T> : IHandle<T> where T : class, IMessage { private readonly Action<T> _handle; public AdHocHandler(Action<T> handle) { Ensure.NotNull(handle, "handle"); ...
21.142857
71
0.576577
[ "MIT" ]
PKI-InVivo/reactive-domain
src/ReactiveDomain.Messaging/Bus/AdHocHandler.cs
444
C#
using System.Linq; using System.Threading.Tasks; using Sitecore.Commerce.Core; using Sitecore.Commerce.Plugin.Carts; using Sitecore.Commerce.Plugin.Catalog; using Sitecore.Framework.Conditions; using Sitecore.Framework.Pipelines; namespace Plugin.LoyaltyPoints.Pipelines.Blocks { class AddCartLineLoyaltyBlock: Pip...
35.862069
95
0.678846
[ "MIT" ]
Velir/LoyaltyPoints
src/Plugin.LoyaltyPoints/Pipelines/Blocks/AddCartLineLoyaltyBlock.cs
1,042
C#
// Copyright (c) 2021 Yoakke. // Licensed under the Apache License, Version 2.0. // Source repository: https://github.com/LanguageDev/Yoakke namespace Yoakke.Symbols { /// <summary> /// Represents a single symbol. /// </summary> public interface ISymbol { /// <summary> /// The scope...
23.608696
59
0.570902
[ "Apache-2.0" ]
kant2002/Yoakke
Sources/Core/Yoakke.Symbols/ISymbol.cs
543
C#
using System; using System.Diagnostics; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Threading; namespace Minotaur.Pocs.HighPerf { public interface IObjectLifecycle<T> { T New(); void Reset(T value); } public interface IProcessAwareBehavior...
37.527897
125
0.539456
[ "MIT" ]
fdieulle/Minotaur
Tests/Minotaur.Pocs/HighPerf/ObjectPool.cs
17,490
C#
using System; namespace Elsa.Services { public class IdGenerator : IIdGenerator { public string Generate() => Guid.NewGuid().ToString("N"); } }
18.222222
65
0.646341
[ "BSD-3-Clause" ]
caiohomem/elsa-core
src/core/Elsa.Core/Services/IdGenerator.cs
164
C#
// Jeebs Rapid Application Development // Copyright (c) bfren - licensed under https://mit.bfren.dev/2013 using System.Collections.Generic; using System.Threading.Tasks; using Jeebs.Data; using Jeebs.WordPress.Data.Entities; using Jeebs.WordPress.Data.Querying; namespace Jeebs.WordPress.Data; /// <summary> /// Quer...
29.296296
91
0.724399
[ "MIT" ]
bfren/jeebs
src/Jeebs.WordPress.Abstractions/Data/IQueryTerms.cs
793
C#
using System; using System.Linq.Expressions; using System.Reflection; namespace UnityEditor.Rendering { /// <summary> /// Contains a set of method to be able to manage Menu Items for the editor /// </summary> static class MenuManager { #region Add Menu Item static Action<string, str...
43.333333
148
0.618519
[ "MIT" ]
turesnake/tpr_Unity_Render_Pipeline_LearningNotes
12.1/Core_and_URP_12.1/rp.core.12.1/Editor/MenuManager.cs
3,510
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...
40.1375
233
0.680785
[ "MIT" ]
Gurrimo/Luminaire
Assets/Editor/Generated/Black/Entity/TPS/FilterNodeEntities/Distance2DTrapezoidFilterNodeEntity.generated.cs
3,211
C#
/** * Copyright (c) 2019 LG Electronics, Inc. * * This software contains code licensed as described in LICENSE. * */ using SimpleJSON; using UnityEngine; namespace Simulator.Api.Commands { class AgentOnLaneChange : ICommand { public string Name => "agent/on_lane_change"; public void Exec...
22.142857
64
0.530323
[ "Apache-2.0", "BSD-3-Clause" ]
0x8BADFOOD/simulator
Assets/Scripts/Api/Commands/AgentOnLaneChange.cs
775
C#
// https://github.com/LDj3SNuD/ARM_v8-A_AArch64_Instructions_Tester/blob/master/Tester/Types/Integer.cs using System; using System.Numerics; namespace Ryujinx.Tests.Cpu.Tester.Types { internal static class Integer { public static Bits SubBigInteger(this BigInteger x, int highIndex, int lowIndex) // AS...
26.860465
103
0.47619
[ "Unlicense" ]
0x0ade/Ryujinx
Ryujinx.Tests/Cpu/Tester/Types/Integer.cs
1,155
C#
// Copyright (c) 2015, Outercurve Foundation. // 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 // ...
39.54918
107
0.604767
[ "BSD-3-Clause" ]
9192939495969798/Websitepanel
WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ServersAddService.ascx.cs
4,825
C#
/***************************************************************************** * Copyright 2016 Aurora Solutions * * http://www.aurorasolutions.io * * Aurora Solutions is an innovative services and product company at * the forefront of the software industry, with processes and practices * involving Dom...
42.186047
109
0.644983
[ "Apache-2.0" ]
3plcoins/coin-exchange-backend
src/IdentityAccess/CoinExchange.IdentityAccess.Application/AccessControlServices/LogoutApplicationService.cs
3,630
C#
using Newtonsoft.Json; namespace PingboardApiClient.Models.CustomFields.Requests { public class UpdateCustomFieldRequest { [JsonProperty("custom_fields")] public CustomField CustomField { get; } = new CustomField(); } }
22.727273
68
0.708
[ "MIT" ]
Johnmancini30/PingboardApiClient
src/PingboardApiClient/Models/CustomFields/Requests/UpdateCustomFieldRequest.cs
252
C#
using Abp.Configuration.Startup; using Abp.Localization.Dictionaries; using Abp.Localization.Dictionaries.Xml; using Abp.Reflection.Extensions; namespace LogViewer.Localization { public static class LogViewerLocalizationConfigurer { public static void Configure(ILocalizationConfiguration localizationC...
33.608696
93
0.663648
[ "MIT" ]
hitenzo/LogViewer
aspnet-core/src/LogViewer.Core/Localization/LogViewerLocalizationConfigurer.cs
775
C#
// Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using System; using System.Runtime.InteropServices; using System.Threading.Tasks; namespace ClangSharp.UnitTests { public sealed class CSharpLat...
19.955081
169
0.523889
[ "MIT" ]
Color-Of-Code/ClangSharp
tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpLatestUnix/FunctionDeclarationBodyImportTest.cs
35,540
C#
using Newtonsoft.Json; namespace GitExtensions.GitLab.Client.Repo { public class User { /// <summary> /// The GitLab username /// </summary> public int Id { get; set; } public string Name { get; set; } public string Username { get; set; } public string S...
21.214286
62
0.516274
[ "MIT" ]
ahmeturun/GitExtensions.GitLab
src/GitExtensions.GitLab.Client/Repo/User.cs
893
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.Runtime.CompilerServices; using Xunit; namespace System.Runtime.CompilerServices.Tests { public cl...
31.8
71
0.610063
[ "MIT" ]
06needhamt/runtime
src/libraries/System.Runtime.Extensions/tests/System/Runtime/CompilerServices/SwitchExpressionExceptionTests.cs
2,067
C#
using System.ComponentModel; using System.Runtime.CompilerServices; namespace Luna.Utils { public abstract class NotifyPropertyChanged : INotifyPropertyChanged { public event PropertyChangedEventHandler PropertyChanged; internal void RaisePropertyChanged([CallerMemberName] string pro...
28.5625
88
0.704595
[ "MIT" ]
mettelephant/Luna
Luna/Utils/NotifyPropertyChanged.cs
459
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using Newtonsoft.Json.Serialization; namespace Kalakoi.Xbox.OpenXBL { public static class XboxConnection { public const st...
47.558659
123
0.593504
[ "MIT" ]
Kalakoi/OpenXBL.NET
src/XboxConnection.cs
17,028
C#
// Copyright (c) 2010 Joe Moorhouse using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Threading; using IronPython.Hosting; using IronPython.Runtime; using Microsoft.Scripting.Hosting; using Microsoft.Scripting.Hosting.Providers; using ...
29.383117
120
0.544972
[ "MIT" ]
Emin-A/revitpythonshell
PythonConsoleControl/PythonConsoleHost.cs
4,527
C#
using System; using System.Diagnostics; using MbUnit.Framework; namespace MbUnit.Demo { [TestFixture] public class TestFixtureSetUpAndTearDownDemo { [TestFixtureSetUp] public void TestFixtureSetUp() { Console.WriteLine("TestFixtureSetUp"); } ...
21.465116
51
0.494041
[ "ECL-2.0", "Apache-2.0" ]
Gallio/mbunit-v2
src/mbunit/MbUnit.Demo/TestFixtureSetUpAndTearDownDemo.cs
925
C#
// This file is auto-generated, don't edit it. Thanks. using System; using System.Collections.Generic; using System.IO; using Tea; namespace AntChain.SDK.BLOCKCHAIN.Models { public class DeployBusinessAgreementResponse : TeaModel { // 请求唯一ID,用于链路跟踪和问题排查 [NameInMap("req_msg_id")] [Validati...
23.666667
61
0.595305
[ "MIT" ]
alipay/antchain-openapi-prod-sdk
blockchain/csharp/core/Models/DeployBusinessAgreementResponse.cs
1,177
C#
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved. namespace UnrealBuildTool.Rules { public class HTNPlanner : ModuleRules { public HTNPlanner(ReadOnlyTargetRules Target) : base(Target) { PublicIncludePaths.AddRange( new string[] { ...
31.491228
166
0.457382
[ "MIT" ]
CaptainUnknown/UnrealEngine_NVIDIAGameWorks
Engine/Plugins/Runtime/HTNPlanner/Source/HTNPlanner/HTNPlanner.Build.cs
1,795
C#
using System; using System.Threading; using System.Threading.Tasks; namespace Vostok.Clusterclient.Strategies { internal class ForkingDelaysPlanner : IForkingDelaysPlanner { public static readonly ForkingDelaysPlanner Instance = new ForkingDelaysPlanner(); public Task Plan(TimeSpan delay, Can...
24.411765
90
0.706024
[ "MIT" ]
vostok-archives/clusterclient.prototype
Vostok.ClusterClient/Strategies/ForkingDelaysPlanner.cs
417
C#
// <auto-generated /> using dev.Data; using IdentityServer4AspNetIdentity.Data; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage; usi...
34.640351
96
0.471638
[ "MIT" ]
mokokosoft/Demo.IdentityServer
Data/Users/Migrations/ApplicationDbContextModelSnapshot.cs
7,900
C#
namespace DevTeam.Patterns.IoC.Configuration.Json { internal class ContainerElement: ConfigurationElement { public KeyElement Key { get; set; } public override string ToString() { return $"{nameof(ContainerElement)} [Key: {Key?.ToString() ?? "null"}, {GetDesctiption()}]"; ...
28
104
0.613095
[ "MIT" ]
DevTeam/patterns
DevTeam.Patterns.IoC.Configuration/Json/ContainerElement.cs
338
C#
namespace TEConstruye.Areas.HelpPage.ModelDescriptions { public class EnumValueDescription { public string Documentation { get; set; } public string Name { get; set; } public string Value { get; set; } } }
22.090909
54
0.646091
[ "MIT" ]
germago119/TEConstruye
Server/TEConstruye/TEConstruye/Areas/HelpPage/ModelDescriptions/EnumValueDescription.cs
243
C#