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
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fi...
30.223077
149
0.585136
[ "Apache-2.0" ]
KenHundley/aws-sdk-net
sdk/src/Services/QuickSight/Generated/Model/CreateGroupRequest.cs
3,929
C#
using System; using Microsoft.Maui.Controls.CustomAttributes; using Microsoft.Maui.Controls.Internals; using Microsoft.Maui.Devices; #if UITEST && __IOS__ using Xamarin.UITest; using NUnit.Framework; #endif namespace Microsoft.Maui.Controls.Compatibility.ControlGallery.Issues { #if UITEST [NUnit.Framework.Category(...
30.476744
279
0.699733
[ "MIT" ]
10088/maui
src/Compatibility/ControlGallery/src/Issues.Shared/Issue3049.cs
2,623
C#
// // THIS FILE HAS BEEN GENERATED AUTOMATICALLY // DO NOT CHANGE IT MANUALLY UNLESS YOU KNOW WHAT YOU'RE DOING // // GENERATED USING @colyseus/schema 0.4.54 // using Colyseus.Schema; namespace SchemaTest.ArraySchemaTypes { public class IAmAChild : Schema { [Type(0, "number")] public float x = 0; [Type(1, ...
18.842105
62
0.684358
[ "MIT" ]
AJ92/colyseus-unity3d
Assets/Editor/ColyseusTests/Schema/ArraySchemaTypes/IAmAChild.cs
358
C#
namespace SkuVaultApiWrapper.Models.SharedModels { public class ShippingInfo { public string City { get; set; } public string CompanyName { get; set; } public string Country { get; set; } public string Email { get; set; } public string FirstName { get; set; } public string LastName { get; set; } public...
30.47619
49
0.685938
[ "MIT" ]
ntoates/SkuVaultApiWrapper
SkuVaultApiWrapper/Models/SharedModels/ShippingInfo.cs
642
C#
namespace SilverbackShop.Baskets.Service.Dto { public class AddBasketItemDto { public string SKU { get; set; } public int Quantity { get; set; } } }
22.125
45
0.627119
[ "MIT" ]
lbovet/silverback
samples/SilverbackShop/src/Baskets.Service/Dto/AddBasketItemDto.cs
179
C#
// Author: Prasanna V. Loganathar // Created: 04:18 11-05-2015 // Project: LiquidState // License: http://www.apache.org/licenses/LICENSE-2.0 using System; namespace LiquidState.Core { public struct Transition<TState, TTrigger> { public Transition(TState source, TState destination) { ...
30.541667
117
0.625171
[ "Apache-2.0" ]
SUSSMicroTec/LiquidState
LiquidState/Core/Transition.cs
2,934
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: AssemblyConfiguration("")] [assembly: AssemblyCompany("")...
41.789474
84
0.778338
[ "MIT" ]
52ABP/SPA.PhoneBook
src/aspnet-core/test/SPACore.PhoneBook.Tests/Properties/AssemblyInfo.cs
796
C#
using AutoMapper; namespace Abp.VueTemplate.MenuManagement { public class MenuManagementApplicationAutoMapperProfile : Profile { public MenuManagementApplicationAutoMapperProfile() { /* You can configure your AutoMapper mapping configuration here. * Alternatively, you c...
38.928571
93
0.440367
[ "MIT" ]
zhk0603/abp-vue
src/aspnet-core/modules/Abp.VueTemplate.MenuManagement/src/Abp.VueTemplate.MenuManagement.Application/MenuManagementApplicationAutoMapperProfile.cs
1,635
C#
namespace NetworkOperation.Core { public struct Empty { public static readonly Empty value = new Empty(); } }
18.571429
57
0.646154
[ "Apache-2.0" ]
floatW0lf/NetworkOperation
NetworkOperation.Core/Empty.cs
132
C#
using UnityEngine; namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem { [TaskCategory("Basic/ParticleSystem")] [TaskDescription("Is the Particle System alive?")] public class IsAlive : Conditional { [Tooltip("The GameObject that the task operates on. If null the task Gam...
32.692308
100
0.606275
[ "Apache-2.0" ]
brustlinker/unity_behaviortree_sk
Assets/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsAlive.cs
1,275
C#
using System; using ValheimTooler.Utils; namespace ValheimTooler.Core.Extensions { public static class PlayerExtensions { public static bool VTInGodMode(this Player player) { if (player != null) { return player.InGodMode(); } retur...
29.684492
126
0.509998
[ "MIT" ]
Astropilot/ValheimTooler
ValheimTooler/Core/Extensions/PlayerExtensions.cs
5,551
C#
using System; using System.Collections.Generic; using System.Linq.Expressions; using System.Threading.Tasks; namespace SimpleRepository { public interface IRepository { Task<IEnumerable<T>> Get<T>(); Task<IEnumerable<T>> Get<T>(Expression<Func<T, bool>> predicate); Task<T> Get<T>(Expre...
31.444444
77
0.650177
[ "MIT-0" ]
kamabery/Slackers.Services.Bus
Samples/SimpleRepository/IRepository.cs
568
C#
// Copyright (c) .NET Core Community. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. using System; using System.Collections.Generic; using System.Data.SqlClient; using System.Threading.Tasks; using Dapper; using DotNetFramework.CAP.Infrastructure; u...
40.214286
279
0.624778
[ "MIT" ]
AssassinJay/DotNetFramework.CAP
src/DotNetFramework.CAP/DotNetFramework.CAP.SqlServer/IStorageConnection.SqlServer.cs
4,504
C#
namespace AncientMysteries.Items { [EditorGroup(group_Guns_Melees)] [MetaImage(tex_Melee_DeathBringer)] [MetaInfo(Lang.Default, "Death Bringer", "Looks cool, but not cool actually.")] [MetaInfo(Lang.schinese, "死亡收割者", "用起来没有想象中的好。")] [MetaType(MetaType.Melee)] public sealed partial class DeathB...
31.803279
128
0.457216
[ "MIT" ]
BThree496/AncientMysteriesMod
AncientMysteries/Items/Melee/DeathBringer.cs
1,974
C#
using System; using System.Collections.Generic; using Hl7.Fhir.Introspection; using Hl7.Fhir.Validation; using System.Linq; using System.Runtime.Serialization; using Hl7.Fhir.Utility; /* Copyright (c) 2011+, HL7, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without...
42.113184
151
0.543253
[ "BSD-3-Clause" ]
CareEvolution/fhir-net-api
src/Hl7.Fhir.Core/Model/Generated/STU3/ImagingManifest.cs
33,861
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; namespace WRLDCWarehouse.Core.Entities { public class Transformer { public int TransformerId { get; set; } [Required] public string Name { get; set; } [Required] public string ...
30.212766
73
0.634507
[ "MIT" ]
POSOCO/wrldc_data_warehouse_csharp
WRLDCWarehouse.Core/Entities/Transformer.cs
1,422
C#
using System.Reflection; using System.Runtime.CompilerServices; // Information about this assembly is defined by the following attributes. // Change them to the values specific to your project. [assembly: AssemblyTitle("Rise.DrawBatchTest")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] ...
36.444444
82
0.742886
[ "MIT" ]
ChevyRay/Rise
Rise.DrawBatchTest/Properties/AssemblyInfo.cs
986
C#
/* License * ------------------------------------------------------------------------------ * Copyright (c) 2019 UX Digital Systems Ltd * * Permission is hereby granted, to any person obtaining a copy of this software * and associated documentation files (the "Software"), to deal in the Software * for the c...
30.057143
108
0.575729
[ "Unlicense" ]
uxav/lib2
WebScripting2/Session.cs
3,156
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...
90.661017
614
0.802393
[ "Apache-2.0" ]
alefranz/aws-sdk-net
sdk/src/Services/LicenseManager/Properties/AssemblyInfo.cs
5,349
C#
using System; using System.Collections.Generic; using Xunit; namespace NCoreUtils.Extensions.Unit { public class ListTests { [Fact] public void Pop() { var list = new List<int> { 1, 2 }; var list0 = new List<int>(); Assert.Throws<ArgumentNullExceptio...
23.478261
86
0.55
[ "MIT" ]
artyomszasa/NCoreUtils.Extensions
NCoreUtils.Extensions.Unit/ListTests.cs
540
C#
using CoreAnimation; using CoreGraphics; using System; namespace ControlExplorer.iOS { public static class Gradient { public static CAGradientLayer GetGradientLayer (CGColor colorTop, CGColor colorBottom, nfloat width, nfloat height) { var gradLayer = new CAGradientLayer()...
29.619048
124
0.614148
[ "MIT" ]
JunielKatarn/XAM330
Exercise 3/Completed/ControlExplorer/ControlExplorer.iOS/Gradient.iOS.cs
622
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.Threading; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; namespace Roslynator.C...
36.346939
160
0.595733
[ "Apache-2.0" ]
TechnoridersForks/Roslynator
source/Common/CSharp/Refactorings/AddExceptionToDocumentationComment/ThrowExpressionInfo.cs
1,783
C#
namespace Ryujinx.HLE.HOS.Services.Nv.NvDrvServices.NvHostCtrl { struct NvHostCtrlSyncptWaitEx { public int Id; public int Thresh; public int Timeout; public int Value; } }
21.6
62
0.643519
[ "Unlicense" ]
Dudejoe870/Ryujinx
Ryujinx.HLE/HOS/Services/Nv/NvDrvServices/NvHostCtrl/Types/NvHostCtrlSyncPtWaitEx.cs
216
C#
// c:\program files (x86)\windows kits\10\include\10.0.18362.0\shared\ksmedia.h(4768,9) using System; using System.Runtime.InteropServices; namespace DirectN { [StructLayout(LayoutKind.Sequential)] public partial struct __struct_ksmedia_1136 { public int Property; public _VBICODECFILTERING...
25.357143
88
0.735211
[ "MIT" ]
bbday/DirectN
DirectN/DirectN/Generated/__struct_ksmedia_1136.cs
357
C#
using System.Web; namespace CCCIntegration { public class Global : HttpApplication { protected void Application_Start() { } } }
13.833333
42
0.596386
[ "Apache-2.0" ]
MSU-Libraries/ccc-integration
CCCIntegration/Global.asax.cs
168
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.md file in the project root for more information. using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.Build.Cons...
44.172285
201
0.571901
[ "MIT" ]
77-A/.Net-Project
src/Microsoft.VisualStudio.ProjectSystem.Managed/Build/BuildUtilities.cs
11,530
C#
using System; using System.IO; using System.Threading; using Robotics.Serialization; #if MF_FRAMEWORK_VERSION_V4_3 using VariableList = System.Collections.ArrayList; using CommandList = System.Collections.ArrayList; #else using VariableList = System.Collections.Generic.List<Robotics.Messaging.Variable>; usi...
22.91635
111
0.642276
[ "Apache-2.0" ]
webmonger/Monkey.Robotics
Source/Platform Stacks/Robotics.Mobile.Core/Messaging/ControlServer.cs
6,029
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. /****************************************************************************** * This file is auto-generated from ...
42.888218
175
0.574669
[ "MIT" ]
AaronRobinsonMSFT/coreclr
tests/src/JIT/HardwareIntrinsics/X86/Avx2/Xor.SByte.cs
14,196
C#
using System.Collections.Generic; using System.Linq; namespace TopDownProteomics.Chemistry { /// <summary> /// Default implementation of an element. /// </summary> /// <seealso cref="IElement" /> public class Element : IElement { /// <summary> /// Initializes a new instance of ...
33.255102
148
0.534213
[ "MIT" ]
acesnik/TestLib
src/TopDownProteomics/Chemistry/Element.cs
3,261
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...
25.233333
88
0.667107
[ "ECL-2.0", "Apache-2.0" ]
pulumi/pulumi-datadog
sdk/dotnet/Outputs/DashboardWidgetToplistDefinitionRequestFormulaLimit.cs
757
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fi...
39.522857
217
0.617726
[ "Apache-2.0" ]
PureKrome/aws-sdk-net
sdk/src/Services/FSx/Generated/Model/WindowsFileSystemConfiguration.cs
13,833
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; [CreateAssetMenu(fileName = "Always", menuName = "Mars Motion/Dependency Requisites/Always")] public class Always : DependencyRequisite { // methods // // method: determine the (boolean) state of this Dependency Requisite // public ov...
22.625
93
0.748619
[ "MIT" ]
MartianDust/MartianDust-Project
Assets/Plugins/Mars Motion Toolkit/Dependencies/Requisites/Always.cs
364
C#
using FuneralClientV2.Utils; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace FuneralClientV2.Modules { public class VRCMod { public virtual string Name => "Example Module"; public virtual string Description => "Exam...
20.193548
99
0.64377
[ "MIT" ]
Kila-Quack-Kila/Funeral_ClientV2
FuneralClientV2/Modules/VRCMod.cs
628
C#
using System.Collections.Generic; using SOLID.Entities; namespace SOLID.Repositories { public interface IOtherStaffRepository { IEnumerable<IOtherStaff> GetOtherStaffs(); IOtherStaff GetOtherStaff(int id); void CreateOtherStaff(IOtherStaff otherStaff); void UpdateOtherStaff(IOth...
27.928571
54
0.71867
[ "MIT" ]
nihalshahria/SOLID
Repositories/IOtherStaffRepository.cs
391
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.18033 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //---...
28.421053
80
0.485185
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
gj86/mixerp2
MixERP.Net.FrontEnd/Setup/Policy/Store.aspx.designer.cs
540
C#
 namespace LCL.Domain.Model { /// <summary> /// 表示“地址”领域概念的值对象。 /// </summary> public class Address { #region Private Fields private string country; private string state; private string city; private string street; private string zip; ...
30.798817
103
0.466475
[ "Apache-2.0" ]
luomingui/LCLFramework
LCLDemo/LCL.Domain/Model/Address.cs
6,179
C#
using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; using System.Threading; using Mono.Unix; using Mono.Unix.Native; namespace EventStore.Native.UnixSignalManager { public class UnixSignalManager { private static UnixSignalManager _instance; private const int M...
28.226667
111
0.705243
[ "Apache-2.0", "CC0-1.0" ]
01100010011001010110010101110000/EventStore
src/EventStore.Native/UnixSignalManager/UnixSignalManager.cs
2,117
C#
#region Using directives using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Components; #endregion namespace Blazorise.DataGrid { public abstract class _BaseDataGridDetailRow<TItem> : BaseDataGridComponent { #region Members ...
26.413793
106
0.57376
[ "MIT" ]
DarthPedro/Blazorise
Source/Extensions/Blazorise.DataGrid/_DataGridDetailRow.razor.cs
1,534
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...
39.646667
157
0.58231
[ "MIT" ]
FosterMichelle/azure-powershell
src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Vault/GetAzureSiteRecoveryVaultSettingsFile.cs
5,800
C#
namespace RTEditor { public enum BoxFace { Front = 0, Back, Top, Bottom, Left, Right } }
12.5
23
0.413333
[ "MIT" ]
zzf/ShaderProgramProj
Assets/Runtime_Transform_Gizmos/Scripts/Math/Box/BoxFace.cs
152
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. namespace System.Security.Authentication { public partial class AuthenticationException : System.SystemException...
37.676923
178
0.667211
[ "MIT" ]
mmitche/standard
netstandard/ref/System.Security.Authentication.cs
2,449
C#
using Faker.Tests.Base; using NUnit.Framework; namespace Faker.Tests.en { [TestFixture] [SetUICulture("en")] [SetCulture("en")] [Category("Culture 'en'")] public class PhoneEnglishTests : PhoneTestsBase {} }
18
51
0.662393
[ "MIT" ]
AdmiringWorm/Faker.NET.Portable
tests/Faker.Tests/en_PhoneEnglishTests.cs
236
C#
namespace Microsoft.VisualStudio.Shell.Interop { public interface IVsPreviewChangesList { int GetFlags(out uint pFlags); int GetItemCount(out uint pCount); int GetExpandedList(uint index, out int pfCanRecurse, out object pptlNode); int LocateExpandedList(object ExpandedList, ...
27.636364
83
0.691886
[ "Apache-2.0" ]
JetBrains/JetBrains.EnvDTE
Shell.Interop/Shell/Interop/IVsPreviewChangesList.cs
914
C#
// // Popover.cs // // Author: // Jérémie Laval <jeremie.laval@xamarin.com> // // Copyright (c) 2012 Xamarin, Inc. // // 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 restrict...
22.509346
110
0.682167
[ "MIT" ]
TheBrainTech/xwt
Xwt/Xwt/Popover.cs
4,819
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace XNAPlatformerLevelEditor { class TileDisplay : GraphicsDeviceControl { public event EventHandler OnInitialize; public event EventHandler OnDraw; protected override void Initialize() ...
21.115385
47
0.590164
[ "Unlicense" ]
sndcode/jaxg
XNAPlatformerLevelEditor/Classes/TileDisplay.cs
551
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Send_and_Receive_Messages { class Quaternion { public double w, x, y, z; public Quaternion() { w = 1.0; x = y = z = 0.0;...
22.303797
59
0.34563
[ "MIT" ]
cupix-api/player
WinForms .NET sample/Quaternion.cs
1,764
C#
// ------------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See LICENSE in the repo root for license information. // ------------------------------------------------------------...
39.112903
116
0.633402
[ "MIT" ]
BoyaWu10/fhir-server
src/Microsoft.Health.Fhir.Shared.Core/Features/Resources/BaseResourceHandler.cs
2,425
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("07_...
37.783784
84
0.748927
[ "MIT" ]
kr056/SoftUni
Programming Fundamentals May 2017/08_C# Lists Lab/07_CountNumbers/Properties/AssemblyInfo.cs
1,401
C#
using JCSoft.Core.Net.Http; using JCSoft.WX.Framework.Models.ApiResponses; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Text; namespace JCSoft.WX.Framework.Models.ApiRequests { /// <summary> /// 创建个性化菜单 /// </summary> public class MenuAddConditionalRequest : ApiR...
22.36
95
0.567084
[ "MIT" ]
JamesYing/JCWXCore
src/JCSoft.WX.Framework/Models/ApiRequests/MenuAddConditionalRequest.cs
2,252
C#
using EventStore.ClientAPI.Exceptions; using EventStore.ClientAPI.SystemData; using EventStore.Core.Services; using NUnit.Framework; namespace EventStore.Core.Tests.ClientAPI.Security { [TestFixture, Category("LongRunning"), Category("Network")] public class system_stream_security: AuthenticationTestBase ...
54.420601
112
0.575
[ "Apache-2.0" ]
bartelink/EventStore
src/EventStore.Core.Tests/ClientAPI/Security/system_stream_security.cs
12,682
C#
using CodeForDotNet.UI.Models; using Emlid.WindowsIot.Hardware.Boards.Navio; using Emlid.WindowsIot.Hardware.Boards.Navio.Internal; using Emlid.WindowsIot.Tools.Navio2RcioTerminal.Resources; using System; using System.Threading.Tasks; namespace Emlid.WindowsIot.Tools.Navio2RcioTerminal.Models { /// <summary> ...
28.486111
108
0.555826
[ "Apache-2.0" ]
emlid/Navio-SDK-Windows-IoT
Source/Tools/Navio 2 RCIO Terminal/Models/RcioTerminalApplicationUIModel.cs
2,053
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging;...
27.680851
88
0.664105
[ "MIT" ]
dd86k/JapWew
JapWew/DiagnosisPage.xaml.cs
1,303
C#
using System; using System.Configuration; using System.Collections; using System.Collections.Generic; namespace Nucleo.Configuration { /// <summary> /// Rpresents the core collection base class /// </summary> /// <typeparam name="T"></typeparam> public abstract class ConfigurationCollectionBase<T> : Configurati...
29.126374
250
0.675344
[ "MIT" ]
brianmains/Nucleo.NET
src/Nucleo/Configuration/ConfigurationCollectionBase.cs
5,301
C#
using System.Collections.Generic; using System; namespace ListaClientes { public class Clientes { //Atributos private string nome; private int idade; //Metodos acessores public string GetNome() { return nome; } public void Set...
19.975
86
0.439299
[ "MIT" ]
henrique-artur/ExerciciosCSharp
ListaClientes/Clientes.cs
799
C#
using UnityEngine; public class InventoryHider : MonoBehaviour { private Canvas canvas; public PlayerController player; private void Start() { canvas = GetComponent<Canvas>(); canvas.enabled = false; TradeInterface.OnOpenInventory += OpenCloseRemote; } private void OpenCloseRemote() { if (!canvas.ena...
17.756098
58
0.67033
[ "MIT" ]
Cecilija-Simic-Rihtnesberg/game21-2021-1129-arpg-team-3
Assets/ScriptableObjects/Inventory/InventoryScripts/InventoryHider.cs
728
C#
namespace UnityEngine.TestTools.Logging { internal class LogEvent { public string Message { get; set; } public string StackTrace { get; set; } public LogType LogType { get; set; } public bool IsHandled { get; set; } public override string ToString() ...
21.736842
65
0.539952
[ "MIT" ]
AI-Pree/Small-World
Library/PackageCache/com.unity.test-framework@1.1.24/UnityEngine.TestRunner/Assertions/LogScope/LogEvent.cs
413
C#
using Fluid; using Fluid.Values; using Microsoft.Extensions.DependencyInjection; using OrchardCore.DisplayManagement.Layout; using OrchardCore.Liquid; using System.Threading.Tasks; namespace StatCan.OrchardCore.DisplayHelpers.Filters { public class SectionIsNotEmpty : ILiquidFilter { public async Value...
32.904762
126
0.749638
[ "MIT" ]
StatCan/StatCan.OrchardCore
src/Modules/StatCan.OrchardCore.DisplayHelpers/Filters/SectionIsNotEmpty.cs
691
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...
32.818182
147
0.781163
[ "ECL-2.0", "Apache-2.0" ]
Otanikotani/pulumi-aws
sdk/dotnet/WafV2/Outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.cs
722
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; public class Program { static void Main(string[] args) { Family family = new Family(); string namePattern = @"[a-zA-Z0-9]+\s[a-zA-Z0-9]+"; string datePattern = @"\d{1,2}\/\d{1,2}\/\...
38.571429
120
0.509383
[ "MIT" ]
danieldamianov/C-OOP-Basics
Exercises Defining Classes/Problem13FamilyTree/Program.cs
4,052
C#
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; namespace Singulink.Enums { /// <summary> /// Provides enumeration string conversion functionality. All operations are thread-safe. /// </summary> public sealed class EnumParser<T> where T : unmana...
41.567568
158
0.555137
[ "MIT" ]
Singulink/Singulink.Enums
Source/Singulink.Enums/EnumParser.cs
7,692
C#
namespace Tizen.NUI.XamlBinding { internal enum ToolbarItemOrder { Default, Primary, Secondary } }
14.888889
34
0.589552
[ "Apache-2.0" ]
sungraejo/TizenFX
src/Tizen.NUI.Xaml/src/internal/XamlBinding/ToolbarItemOrder.cs
134
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.636364
107
0.65816
[ "Apache-2.0" ]
philasmar/aws-sdk-net
sdk/src/Services/Pinpoint/Generated/Model/UpdateTemplateActiveVersionResponse.cs
1,685
C#
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Text; using System.Web.Http; /// ****************************************************************************************************************** /// * Copyright (c) 2011 Dialect Software LLC ...
41.251852
416
0.510325
[ "Apache-2.0" ]
dialectsoftware/DialectSoftware.Registration
DialectSoftware.Registration.Document.Management/Context/Contacts.cs
5,571
C#
// <copyright file="SpanAttributes.cs" company="OpenTelemetry Authors"> // Copyright The OpenTelemetry Authors // // 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....
31.598639
184
0.555651
[ "Apache-2.0" ]
TopSwagCode/opentelemetry-dotnet
src/OpenTelemetry.Api/Trace/SpanAttributes.cs
4,645
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using Xunit; [assembly: ActiveIssue("https://github.com/dotnet/runtime/issues/38433", TestPlatforms.Browser)]
42.166667
96
0.758893
[ "Apache-2.0" ]
DataDog/dd-shared-components-dotnet
shared/test/Vendored.System.Diagnostics.DiagnosticSource.Tests/TestWithConfigSwitches/AssemblyInfo.cs
253
C#
using Newtonsoft.Json; namespace DigitalOcean.API.Models.Requests { public class Domain { /// <summary> /// The domain name to add to the DigitalOcean DNS management interface. The name must be unique in DigitalOcean's DNS /// system. The request will fail if the name has already been take...
35.444444
126
0.615987
[ "MIT" ]
JoshClose/DigitalOcean.API
DigitalOcean.API/Models/Requests/Domain.cs
640
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text.Json; using System.Threading.Tasks; using System.Web; using Luna.Clients.Exceptions; using Luna.Clients.Logging; using Luna.Data.Entities; using Luna.Data.Repository; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFramework...
46.575758
187
0.631685
[ "MIT" ]
Azure/ace-luna
src/Luna.Services/Data/WebhookService.cs
15,370
C#
// World Conquer Online Project 2.5517 - Phoenix Project Based // This project has been created by Felipe Vieira Vendramini // Source Infrastructure based on Phoenix Source, written by Gareth Jensen // This source is targeted to Conquer Online, client version 5517 // // Computer User: Felipe Vieira // File Created by...
32.702128
80
0.644763
[ "MIT" ]
darkfoxdeveloper/FoxConquer5517
DB/Repositories/Totem.cs
1,539
C#
using Moq; namespace blueberry.Infrastructure; public class SearchTests { private readonly IReadOnlyCollection<UserDto> _mockUsers = new[] { new UserDto (1, "Jalle", new PrimitiveCollection<string> {"React"}), new UserDto (2, "Kobo", new PrimitiveCollection<string> {"Angular"}), }; pr...
41.70922
165
0.682537
[ "MIT" ]
toffernator/blueberry
Infrastructure.Tests/SearchTests.cs
5,881
C#
using System; namespace WindowSettings.Entities.Base { public interface IEntityBase { Int64 Id { get; set; } DateTime CreatedDate { get; set; } DateTime? UpdatedDate { get; set; } } }
16
43
0.602679
[ "MIT" ]
HasanShahjahan/Window-Settings
src/WindowSettings.Entities/Base/IEntityBase.cs
226
C#
/** * Copyright 2017-2021 Plexus Interop Deutsche Bank AG * SPDX-License-Identifier: Apache-2.0 * * 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/...
39.53125
138
0.638208
[ "Apache-2.0" ]
deutschebank/Plexus-interop
desktop/src/Plexus.Interop.Transport.Protocol.Protobuf/Internal/ProtobufTransportProtocolDeserializer.cs
3,797
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...
28
174
0.571817
[ "Apache-2.0" ]
pulumi/pulumi-azure-nextgen
sdk/dotnet/ApiManagement/V20180101/GetPolicy.cs
2,576
C#
using System; using System.Collections.Generic; using CQRSCode.ReadModel.Dtos; namespace CQRSCode.ReadModel { public interface IReadModelFacade { IEnumerable<InventoryItemListDto> GetInventoryItems(); InventoryItemDetailsDto GetInventoryItemDetails(Guid id); } }
24.333333
65
0.763699
[ "Apache-2.0" ]
al222cv/CQRSlite.NetCore
Sample/CQRSCode/ReadModel/IReadModelFacade.cs
294
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 // ...
50.044444
84
0.666963
[ "BSD-3-Clause" ]
9192939495969798/Websitepanel
WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SharePointGroups.ascx.designer.cs
2,252
C#
using UnityEngine; using System.Collections; public class ExpandDebuff : MonoBehaviour { public GameObject player1; public GameObject player2; public Camera cam; public ParticleSystem pickup; private Transform r1; private Transform r2; public float timer; private float innerTimer; public ...
24.526316
96
0.668097
[ "MIT" ]
chanmatthew/Robert-In-Space
Assets/Scripts/ItemController/ExpandDebuff.cs
1,400
C#
using System.Security.Claims; using EduManagementLab.Core.Services; using EduManagementLab.IdentityServer4.Configuration; using IdentityModel; using IdentityServer4.EntityFramework.Interfaces; using IdentityServer4.Models; using IdentityServer4.Validation; using Microsoft.EntityFrameworkCore; using Microsoft.Extension...
40.754717
148
0.687963
[ "MIT" ]
ve-backend-internship-spring2022/EduManagementLab
src/EduManagementLab.IdentityServer4/Validation/ImpersonationAuthorizeRequestValidator.cs
2,162
C#
namespace DotNetStandard.Specification { public sealed class XOrSpecification<T> : ISpecification<T> { private readonly ISpecification<T> _left; private readonly ISpecification<T> _right; public XOrSpecification(ISpecification<T> left, ISpecification<T> right) { _le...
25.3
80
0.606719
[ "MIT" ]
Eraclys/DotNetStandard.Specification
src/DotNetStandard.Specification/XorSpecification.cs
508
C#
/* Copyright 2020-2021. Huawei Technologies Co., Ltd. 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...
45.473282
115
0.667786
[ "Apache-2.0" ]
HMS-Core/hms-xamarin-bindings
android/samples/PushKitDemo/HMSPush/HMSPushMessageService.cs
5,959
C#
using System; using MikhailKhalizev.Processor.x86.BinToCSharp; namespace MikhailKhalizev.Max.Program { public partial class RawProgram { [MethodInfo("0x100c_97a3-dc8e21da")] public void Method_100c_97a3() { ii(0x100c_97a3, 5); push(0x24); ...
61.828571
114
0.392329
[ "Apache-2.0" ]
mikhail-khalizev/max
source/MikhailKhalizev.Max/source/Program/Auto/z-100c-97a3.cs
2,164
C#
using FluentValidation; using Adnc.Usr.Application.Dtos; namespace Adnc.Usr.Application.DtoValidators { public class UserCreationDtoValidator : AbstractValidator<UserCreationDto> { public UserCreationDtoValidator() { Include(new UserCreationAndUpdationDtoValidator()); R...
31.294118
78
0.593985
[ "MIT" ]
Orlys/Adnc
src/ServerApi/Portal/Adnc.Usr/Adnc.Usr.Application/Services/User/DtoValidators/UserCreationDtoValidator.cs
534
C#
namespace Tavenem.HugeNumbers; public partial struct HugeNumber { /// <summary> /// Returns the larger of two <see cref="HugeNumber"/> values. /// </summary> /// <param name="left">The first value to compare.</param> /// <param name="right">The second value to compare.</param> /// <returns> ...
38.711649
112
0.578433
[ "MIT" ]
Tavenem/HugeNumber
src/Comparable.cs
60,818
C#
// using System; using System.Collections.Generic; using Autofac; using MbUnit.Framework; using SolrNet; namespace AutofacContrib.SolrNet.Tests { [TestFixture] [Category("Integration")] public class AutofacIntegrationFixture { [Test] public void Ping_And_Query() ...
35.321429
89
0.544995
[ "Apache-2.0" ]
Aaronontheweb/SolrNet
AutofacContrib.SolrNet.Tests/AutofacIntegrationFixture.cs
1,980
C#
using System; using Xamarin.Forms; using GifImageView.FormsPlugin.Abstractions; namespace GifViewer { public class App : Application { public App() { // The root page of your application MainPage = new ContentPage { Content = new GifImageVie...
25.119048
102
0.51564
[ "MIT" ]
jamesmontemagno/Xamarin.Forms-Awesome-Controls
GifImageView/GifViewer/GifViewer.cs
1,057
C#
// *** WARNING: this file was generated by crd2pulumi. *** // *** 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.Types.I...
44.7
222
0.754474
[ "Apache-2.0" ]
pulumi/pulumi-kubernetes-crds
operators/crossplane/dotnet/Kubernetes/Crds/Operators/Crossplane/Packages/V1Alpha1/Inputs/StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersLifecyclePreStopHttpGetArgs.cs
1,788
C#
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.Collections; using System.Collections.Generic; using System.Globalization; #if FEATURE_APPDOMAIN using System.Runtime.Remoting.Lifetime; usi...
44.714856
295
0.58207
[ "MIT" ]
AlexanderSemenyak/msbuild
src/Build/BackEnd/Components/RequestBuilder/TaskHost.cs
55,985
C#
$MethodsForEachComponent #region ServiceComponent code for ##ServiceName## public bool Test##ServiceName##() { try { ServiceComponent component = new ServiceComponent(); ##DataEntity## dataEntity = Build##DataEntity##(); dataEntity...
25.014286
74
0.558538
[ "Apache-2.0" ]
Infosys/Intelligent-Bot-Management-
Data Integration Framework/ParserGen/ParserGenerator UI/Templates/UnitTestCases/UnitTestCase.cs
1,751
C#
using SharpReact.Core; using SharpReact.Core.Properties; using System.Collections.Generic; namespace SharpReact.Android.Props { public partial class ViewSwitcher: ViewAnimator { protected override ISharpStatefulComponent CreateComponent() { return new Components.ViewSwitcher<ViewSwitcher, global::Android.Widg...
23.266667
91
0.799427
[ "MIT" ]
MihaMarkic/SharpReact
src/Implementations/Android/SharpReact.Android.8_1/Props/ViewSwitcher.cs
349
C#
namespace Parquet.Data { /// <summary> /// List of supported data types /// </summary> public enum DataType { /// <summary> /// Type is not specified, shouldn't be used. /// </summary> Unspecified, /// <summary> /// Boolean /// </summary> Boolean, ...
16.487395
51
0.426606
[ "MIT" ]
DBojsen/parquet-dotnet
src/Parquet/Data/DataType.cs
1,964
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using MHRTalismanManager.Shared; using MoreLinq; namespace MHRTalismanManager.Client.Shared { public static class MhRiseWikiDbSerializer { private const byte SlotDataSignal = 26; private const byte SeparatorS...
33.364641
118
0.516642
[ "MIT" ]
Sephiroth018/MHRTalismanManager
MHRTalismanManager/Client/Shared/MhRiseWikiDbSerializer.cs
6,041
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using System; using System.ComponentModel; using System.Linq; using System.Threading; using System.Threading.Tasks; namespace Azure.Storage.Blobs.Models { /// <summary> /// Specifies options for listing blob conta...
40.534091
104
0.634427
[ "MIT" ]
SanjayHukumRana/azure-sdk-for-net
sdk/storage/Azure.Storage.Blobs/src/Models/GetBlobContainersOptions.cs
3,569
C#
namespace KeyPay.DomainModels.V2.PayRun { public class SubmitDeductionModel { public string ExternalId { get; set; } public string LocationId { get; set; } public string LocationName { get; set; } public string EmployeeId { get; set; } public string EmployeeName { get; se...
40.35
62
0.636927
[ "MIT" ]
KeyPay/keypay-dotnet
src/keypay-dotnet/DomainModels/V2/PayRun/SubmitDeductionModel.cs
807
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.819444
185
0.605367
[ "MIT" ]
DiNitride/CSGOAutoMusicVolume
CSGOMusicController/Properties/Resources.Designer.cs
2,797
C#
/* * Payment Gateway API Specification. * * The documentation here is designed to provide all of the technical guidance required to consume and integrate with our APIs for payment processing. To learn more about our APIs please visit https://docs.firstdata.com/org/gateway. * * The version of the OpenAPI document:...
38.244275
232
0.638523
[ "MIT" ]
D4mo/DotNet
src/Org.OpenAPITools/Model/DecryptedApplePayWalletPaymentMethodAllOf.cs
5,010
C#
using System.IO.Abstractions; using System.Text.RegularExpressions; using UnityEngine; using System.IO; namespace MLAgents { /// <summary> /// Demonstration Recorder Component. /// </summary> [RequireComponent(typeof(Agent))] [AddComponentMenu("ML Agents/Demonstration Recorder", (int)MenuGroup.Defa...
34.9
117
0.58787
[ "Apache-2.0" ]
fd4124983399/ml-agents
com.unity.ml-agents/Runtime/DemonstrationRecorder.cs
6,282
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.Text; using System.Diagnostics; using System.Collections.Generic; namespace Microsoft.X...
34.99435
136
0.426811
[ "MIT" ]
Bencargs/wcf
src/dotnet-svcutil/lib/src/FrameworkFork/Microsoft.Xml/Xml/Core/XmlWellformedWriterHelpers.cs
18,582
C#
using System.Collections.Specialized; using System.Globalization; using Xunit; using Assert = Microsoft.TestCommon.AssertEx; namespace System.Web.Mvc.Test { public class NameValueCollectionValueProviderTest { private static readonly NameValueCollection _backingStore = new NameValueCollection() ...
34.402778
145
0.607994
[ "Apache-2.0" ]
douchedetector/mvc-razor
test/System.Web.Mvc.Test/Test/NameValueCollectionValueProviderTest.cs
4,956
C#
using System.Collections.Generic; using ASP.NET_Core_Fundamentals.Models; namespace ASP.NET_Core_Fundamentals.ViewModels { public class HomeIndexViewModel { public IEnumerable<Restaurant> Restaurants { get; set; } public string CurrentMessage { get; set; } } }
26.272727
64
0.733564
[ "MIT" ]
bokjo/ASP.NET-Core-Fundamentals
ViewModels/HomeIndexViewModel.cs
289
C#
using Windows.UI.Xaml.Controls; // The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=234238 namespace Famoser.LectureSync.Presentation.Universal.Pages { /// <summary> /// An empty page that can be used on its own or navigated to within a Frame. /// </summary> public...
26.111111
94
0.657447
[ "MIT" ]
famoser/Famoser.Study
Famoser.LectureSync.Presentation.Universal/Pages/EditCoursePage.xaml.cs
472
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...
37.269231
181
0.74097
[ "ECL-2.0", "Apache-2.0" ]
chivandikwa/pulumi-aws
sdk/dotnet/WafV2/Inputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgumentGetArgs.cs
969
C#
// Copyright (c) .NET Foundation and Contributors (https://dotnetfoundation.org) // Copyright (c) 2018-2021 Stride and its contributors (https://stride3d.net) // Copyright (c) 2011-2018 Silicon Studio Corp. (https://www.siliconstudio.co.jp) // See the LICENSE.md file in the project root for full license information. u...
44.948718
138
0.694238
[ "MIT" ]
Ethereal77/stride
sources/assets/Stride.Core.Assets/Compiler/DummyAssetCommand.cs
1,753
C#