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.Diagnostics; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using AutoService.Models; namespace AutoService.Controllers { public class HomeController : Controller { } }
17.4375
44
0.777778
[ "Apache-2.0" ]
dvlaskin/AutoService
Controllers/HomeController.cs
281
C#
 using UdonSharp; using UnityEngine; using VRC.SDKBase; using VRC.Udon; public class CardSystemEnabler : UdonSharpBehaviour { public VRSL_BPMCounter bPMCounter; [UdonSynced] public bool enableBPM; bool enableBPMLocal; Material buttonMat; void Start() { buttonMat = GetComponent<Mes...
22.703125
73
0.598761
[ "MIT" ]
AcChosen/VR-Stage-Lighting
VRSL-VRCardSystem/Scripts/CardSystemEnabler.cs
1,455
C#
// Copyright (c) .NET Foundation and contributors. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; namespace TestApp { class Program { static void Main() { Console.WriteLine("Hello World"); ...
21
101
0.639881
[ "MIT" ]
eerhardt/sdk
TestAssets/TestProjects/DesktopUsingPackageWithSatellites/Program.cs
338
C#
using UnityEngine; using System.Collections; using UnityEngine.UI; using DG.Tweening; public class DriftingText : MonoBehaviour { public GameObject canvas; public GameObject textPrefab; public float driftTime = 1f; public float relativeYEndPos = 1.5f; private Text msgTxt; void Awake() { if (canvas == nul...
22.135135
69
0.735043
[ "MIT" ]
OutlawGameTools/EndlessSpeller
DriftingText.cs
821
C#
using System; using System.Threading; using Nito.Collections; namespace SocketNet { public class SafeDeque<T> { protected Deque<T> _Deque; private Object thisLock = new Object (); Semaphore _QueueEvent = new Semaphore (0, 100000000); public SafeDeque () { _Deque = new Deque<T> (); } public int Count ...
17.069767
55
0.592643
[ "Apache-2.0" ]
windyuuy/SocketNet
SafeDeque.cs
1,468
C#
using Galia.Application.Abstractions.Services.Identity; using Galia.Application.Common.Interfaces; using Galia.Application.Identity.Exceptions; using Galia.Application.Multitenancy; using Galia.Application.Settings; using Galia.Application.Storage; using Galia.Application.Wrapper; using Galia.Domain.Common; using Galia...
43.34386
248
0.649235
[ "MIT" ]
gokhanwork/GaliaBackend
src/Infrastructure/Identity/Services/IdentityService.cs
12,353
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // 有关程序集的一般信息由以下 // 控制。更改这些特性值可修改 // 与程序集关联的信息。 [assembly: AssemblyTitle("3_2_winform_protocol_structure_demo")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: Assembly...
27.594595
67
0.704212
[ "MIT" ]
thezhangy937/UpperComputerProgramingGuideSrc
3_2_winform_protocol_structure_demo/3_2_winform_protocol_structure_demo/Properties/AssemblyInfo.cs
1,362
C#
using System; using System.Collections.Generic; using System.Data; using System.Threading.Tasks; using System.Transactions; using Microsoft.EntityFrameworkCore; using Misaka.Domain; using Misaka.UnitOfWork; using IsolationLevel = System.Transactions.IsolationLevel; namespace Misaka.EntityFrameworkCore { public cla...
33.673469
119
0.433636
[ "MIT" ]
autyan/Misaka
src/Misaka.Extensions/Misaka.EntityFrameworkCore/EfCoreUnitOfWork.cs
3,300
C#
using System; using System.Collections.Generic; using System.Linq; using System.Net.Sockets; using System.Security.Cryptography; using System.Text; namespace MessageLib { /// <summary> /// WebSocket utility class /// </summary> public class WebSocket : IWebSocket { private readonly IWebSoc...
40.258065
304
0.470633
[ "MIT" ]
CSA/MessageServer
src/MessageLib/WebSocket.cs
24,962
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...
59.113524
256
0.671237
[ "Apache-2.0" ]
PureKrome/aws-sdk-net
sdk/src/Services/MigrationHub/Generated/_netstandard/IAmazonMigrationHub.cs
59,882
C#
// <auto-generated> // 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...
33.122807
138
0.62553
[ "MIT" ]
Azure/azure-powershell-common
src/Monitor/Version2018_09_01/Models/DiagnosticSettingsResourceCollection.cs
1,888
C#
using System.Collections.Generic; using System.Linq; using NUnit.Framework; namespace GraphQLinq.Tests { [Ignore("www.superchargers.io is down")] [TestFixture(Category = "Integration tests")] class SuperChargersTests { readonly List<LocationType> locationTypes = new List<LocationType> { Locatio...
37.444444
150
0.650593
[ "Apache-2.0" ]
Giorgi/GraphQLinq
src/GraphQLinq.Tests/SuperChargersTests.cs
2,696
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...
37.678571
269
0.626224
[ "Apache-2.0" ]
polivbr/pulumi-azure-native
sdk/dotnet/Consumption/V20190501/Inputs/NotificationArgs.cs
3,165
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> //--...
33.181818
112
0.544227
[ "Apache-2.0" ]
TcavalcantiDesenv/RepasseApcd
src/APCD/src/PlatinDashboard.Presentation.MVC/Report/Repasses.cs
5,112
C#
using System.Threading.Tasks; using BookLovers.Base.Infrastructure.Commands; using BookLovers.Base.Infrastructure.Events.IntegrationEvents; using BookLovers.Publication.Integration.ApplicationEvents.Publishers; using BookLovers.Ratings.Application.Commands.PublisherCycles; using BookLovers.Ratings.Application.Commands...
41.8
106
0.775917
[ "MIT" ]
kamilk08/BookLoversApi
BookLovers.Ratings.Application/IntegrationEvents/Publishers/PublisherCycleArchivedHandler.cs
1,256
C#
using UnityEngine; using UnityEngine.Events; namespace CustomEvents { /// <summary> /// Runs UnityEvent on Start /// </summary> public class OnStart_UnityEvent : MonoBehaviour { public UnityEvent onStart; private void Start() { onStart.Invoke(); } } ...
16.947368
51
0.583851
[ "MIT" ]
canderson770/Unity.Tools
UnityEvents/OnStart_UnityEvent.cs
322
C#
using Microsoft.Extensions.DependencyInjection; using NUnit.Framework; using SciTech.Rpc.Client; using SciTech.Rpc.Lightweight.Client; using SciTech.Rpc.Lightweight.Server; using SciTech.Rpc.Server; using SciTech.Threading; using System; using System.Net; using System.Runtime.InteropServices; using System.Security.Aut...
39.425532
170
0.607016
[ "BSD-3-Clause" ]
SciTechSoftware/SciTech.Rpc
test/SciTech.Rpc.Tests/Lightweight/AuthenticationTests.cs
9,267
C#
using System; namespace Nuclear.data.mapeditor { [Serializable] public class Field { private string _nameMap; //private int[,] _ImageIDArray; //private int[,] _TriggerIDArray; //private int[,] _PathArray; /* * THIS IS SHIT FOR TESTING * THIS IS SH...
181.636054
325
0.263591
[ "MIT" ]
JokePenny/Nuclear
src/Games/Field.cs
53,403
C#
namespace R8.Lib.Localization { /// <summary> /// Determines which type of value, container includes. /// </summary> public enum LocalizerValueType { /// <summary> /// A normal text without any formatting and matching input. /// </summary> Text = 0, /// <sum...
27.1
116
0.492005
[ "MIT" ]
arashaan/R8
src/R8.Lib/Localization/LocalizerValueType.cs
815
C#
using System.Collections.Generic; namespace Elektronik.Containers.EventArgs { public class ConnectionsEventArgs : System.EventArgs { public readonly IEnumerable<(int id1, int id2)> Items; public ConnectionsEventArgs(IEnumerable<(int id1, int id2)> items) { Items = items; ...
24
74
0.651786
[ "MIT" ]
dioram/Elektronik
Assets/Scripts/Containers/EventArgs/ConnectionsEventArgs.cs
338
C#
// Copyright (c) Microsoft Corporation. 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.IO; using System.Text; using GuestConfiguration.Tests.Helpers; using Microsoft.Azure.Management.Gues...
35.704545
105
0.752387
[ "MIT" ]
0rland0Wats0n/azure-sdk-for-net
sdk/guestconfiguration/Microsoft.Azure.Management.GuestConfiguration/tests/TestSupport/GuestConfigurationTestBase.cs
1,573
C#
using Downwork_Notifier.Common; using Downwork_Notifier.ViewModels; using Downwork_Notifier.ViewModels.API.ApiEntities.Metadata; using System; using System.Collections.ObjectModel; using System.Windows; using System.Windows.Controls; using System.Windows.Input; namespace Downwork_Notifier.GUI.Components { /// <su...
34.708661
145
0.576679
[ "ECL-2.0", "Apache-2.0", "MIT" ]
alkboda/Downwork-Notifier
Downwork Notifier/GUI/Components/FilterParametersControl.xaml.cs
4,410
C#
// // Copyright (c) Microsoft. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by appl...
40.942693
174
0.627336
[ "Apache-2.0" ]
CerebralMischief/azure-sdk-for-net
src/Search/Search.Tests/Tests/DataSourceTests.cs
14,291
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Deleter : MonoBehaviour { void OnCollisionEnter2D(Collision2D collision) { Destroy(collision.gameObject); } void OnTriggerEnter2D(Collider2D collision) { Destroy(collision.gameObject); ...
19.058824
50
0.712963
[ "MIT" ]
katherinenf/weatherpf
Assets/Scripts/Deleter.cs
326
C#
namespace OJS.Workers.Compilers { using System; using System.IO; using System.Linq; using System.Text; using OJS.Workers.Common; using OJS.Workers.Common.Helpers; public class CPlusPlusZipCompiler : Compiler { private const string CPlusPlusClassFileExtension = ".cpp"; ...
30.636364
118
0.576657
[ "MIT" ]
Digid-GMAO/MyTested.AspNet.TV
src/Huge Code Base/Open Judge System/Workers/OJS.Workers.Compilers/CPlusPlusZipCompiler.cs
2,024
C#
using System; using System.Collections; using System.Collections.Generic; enum EInt8 : sbyte { A = -1, B, C, D } enum EUInt8 : byte { A, B, C, D } enum EInt16 : short { A = -1, B, C, D } enum EUInt16 : ushort { A, B, C, D } enum EInt32 : int { A = -1, B, C, D } enum EUInt32 : uint { A, B, C, D } enum EInt64 ...
19.861582
80
0.536055
[ "MIT" ]
GrapeCity/pagefx
tests/Simple/CSharp/Generics/Casting/IList/ToValue/FromValue/Boolean.cs
7,031
C#
/* * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * ...
31.135593
81
0.63092
[ "Apache-2.0" ]
TencentCloud/tencentcloud-sdk-dotnet
TencentCloud/Tiems/V20190416/Models/DescribeRuntimesResponse.cs
1,965
C#
using NUnit.Framework; using TcoCore; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TcoCore.PexTests { [TestFixture()] public class TcoObjectTests { [Test()] public void CtorTest() { var tco...
32.040816
98
0.652229
[ "MIT" ]
PTKu/TcOpen
src/TcoCore/tests/TcoCoreUnitTests/pex/TcoObject/TcoObjectTests.cs
1,572
C#
namespace Models { public enum Days { Mon = 1, Tue, Wed, Thu, Fri, Sat, Sun } }
10.642857
20
0.342282
[ "MIT" ]
sedc-codecademy/skwd9-net-05-oopcsharp
G1/Class07/Models/Days.cs
151
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...
30.263158
118
0.745217
[ "Apache-2.0" ]
ChristopherButtars/aws-sdk-net
sdk/src/Services/ElasticLoadBalancing/Generated/Model/SetLoadBalancerPoliciesOfListenerResponse.cs
1,150
C#
using System; using System.Collections.Generic; using System.Text; namespace Lexica.Core.Exceptions { [Serializable] public class WrongConfigException : ApplicationException { public WrongConfigException() { } public WrongConfigException(string message) : base(message) { } ...
29.761905
96
0.6912
[ "MIT" ]
lrydzkowski/Lexica
Lexica.Core/Exceptions/WrongConfigException.cs
627
C#
using MercadoPago; using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; using System.Configuration; using System.Net; using System.Reflection; namespace MercadoPago { public class SDK { private const int DEFAULT_REQUESTS_TIMEOUT = 30000; private const int DEF...
35.418367
151
0.549505
[ "MIT" ]
OrihuelaConde/Lexim-MercadoPago-Sdk
px-dotnet/SDK.cs
10,415
C#
using System; using System.Collections.Generic; using NUnit.Framework; namespace Skibitsky.Urx.Tests { public abstract class AnonymousObserverTestBase { [TestCase(0)] [TestCase(4)] public void OnNext_IntSequence(int onNextCallsCount) { var results = new List<int>(); ...
32.368421
83
0.598374
[ "MIT" ]
skibitsky/urx
Tests/Runtime/AnonymousObserver/AnonymousObserverTestBase.cs
1,230
C#
using Core.API.ActionFilter; using FluentValidation.WebApi; using System; using System.Collections.Generic; using System.Linq; using System.Web.Http; using System.Web.Http.Tracing; using Web.Helpers; using WebApi.OutputCache.Core.Cache; using WebApi.OutputCache.V2; using WebApiThrottle; namespace Web { public sta...
48.725806
162
0.540053
[ "MIT" ]
duyxaoke/Solution
Web/App_Start/WebApiConfig.cs
6,048
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Drawing; using System.Media; namespace Rick_Morty_Soundboard { interface newButtons { } }
15.0625
33
0.738589
[ "MIT" ]
Ciaran-OBrien/.Net-C
Rick_Morty_Soundboard/Rick_Morty_Soundboard/newButtons.cs
243
C#
using AzureMapsBlazor.Components; using AzureMapsBlazor.WebApp.Server.Configuration; using AzureMapsBlazor.WebApp.Shared; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using PTI.Microservices.Library.Models.AzureMapsService.GetOptimizedRoute; using PTI.Microservices.Library.Services; using System; u...
37.064103
91
0.609132
[ "MIT" ]
efonsecab/Azure-Maps-Blazor
AzureMapsBlazorSln/AzureMapsBlazor.WebApp/Server/Controllers/AzureMapsController.cs
2,893
C#
namespace Microsoft.Protocols.TestSuites.MS_ONESTORE { using System.Collections.Generic; /// <summary> /// This class is used to represent a ObjectSpaceObjectStreamOfOIDs. /// </summary> public class ObjectSpaceObjectStreamOfOIDs { /// <summary> /// Gets or sets an ObjectSpaceO...
42.4
211
0.621462
[ "MIT" ]
ChangDu2021/Interop-TestSuites
FileSyncandWOPI/Source/Common/ONESTORE/OtherStructures/ObjectSpaceObjectStreamOfOIDs.cs
2,546
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("02....
37.837838
84
0.745
[ "MIT" ]
GabrielRezendi/Programming-Fundamentals-2017
01.Short Fundamentals/22.DICTIONARIES AND LISTS - MORE EXERCISES/02.00 Odd Filter/Properties/AssemblyInfo.cs
1,403
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Collections; using System.Collections.Generic; using System.Data.Common; using System.Linq; using System.Threading; using System.Threading.Tasks; using Mic...
47.856
176
0.618021
[ "MIT" ]
CameronAavik/efcore
src/EFCore.Relational/Query/Internal/FromSqlQueryingEnumerable.cs
17,946
C#
using Newtonsoft.Json; namespace AirplaneModeProof.Api.Models { public class Comic { [JsonProperty("superheroId")] public int SuperheroId { get; set; } [JsonProperty("name")] public string Name { get; set; } } }
17.307692
38
0.697778
[ "MIT" ]
jfversluis/AirplaneModeProof
AirplaneModeProof.Api/Models/Comic.cs
227
C#
using Newtonsoft.Json.Linq; using Microsoft.ReactNative.Managed; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Windows.Foundation; using Windows.UI; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; using Windows.UI.Xaml.Media; using Wind...
41.134752
142
0.650862
[ "MIT" ]
jeromediaz/react-native-windows-svg
windows/ReactNativeSVG/ShapeViewModel.cs
11,636
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.Concurrent; using System.Diagnostics; using System.Diagnostics.Tracing; using System.Linq; ...
43.12099
293
0.525422
[ "MIT" ]
Weidaicheng/corefx
src/System.Transactions.Local/tests/AsyncTransactionScopeTests.cs
76,626
C#
using CoEvent.Core.Extensions; using Microsoft.AspNetCore.Mvc.Filters; namespace CoEvent.Core.Mvc.Filters { /// <summary> /// JsonExceptionFilterAttribute class, provides a way to create a JSON response for unhandled exceptions. /// </summary> public class JsonExceptionFilterAttribute : ExceptionFilte...
31.885714
110
0.62724
[ "MIT" ]
FosolSolutions/coevent.api
libs/Core/Mvc/Filters/JsonExceptionFilterAttribute.cs
1,118
C#
using UnityEngine; namespace CinemaDirector { /// <summary> /// Attaches all objects as children of actor in hierarchy /// </summary> [CutsceneItemAttribute("Transform", "Attach Children", CutsceneItemGenre.ActorItem)] public class AttachChildrenEvent : CinemaActorEvent { public GameObj...
27.892857
88
0.542894
[ "MIT" ]
Bennef/BIP
Assets/3rd Party Assets/Cinema Suite/Cinema Director/Cutscene Items/Actor Items/Transform/AttachChildrenEvent.cs
781
C#
// MonoGame - Copyright (C) The MonoGame Team // This file is subject to the terms and conditions defined in // file 'LICENSE.txt', which is part of this source code package. using System; namespace Microsoft.Xna.Framework.Content { /// <summary> /// This is used to specify the version when deserializing this...
34.214286
100
0.669102
[ "MIT" ]
sl8rw/CS581_MonoGame_Addons
MonoGame.Framework/Content/ContentSerializerTypeVersionAttribute.cs
958
C#
using System; using System.Collections.Generic; using System.Linq; using Verse; using RimWorld; namespace RWBeheading { public class Recipe_RemoveHead : Recipe_Surgery { public override IEnumerable<BodyPartRecord> GetPartsToApplyOn(Pawn pawn, RecipeDef recipe) { return pawn.health....
37.655172
142
0.566392
[ "MIT" ]
Rawzbeef/RW-CuttingOutHead1.3
Source/Recipe_RemoveHead.cs
2,186
C#
using System; class BiggestOfThreeNumbers { static void Main() { Console.WriteLine("A: "); int a = int.Parse(Console.ReadLine()); Console.WriteLine("B: "); int b = int.Parse(Console.ReadLine()); Console.WriteLine("C: "); int c = int.Parse(Console.Read...
21.848485
65
0.436893
[ "MIT" ]
Gandjurov/Course-ProgrammingBasics-SoftUni-
05.ConditionalStatements/05.BiggestOfThreeNumbers/BiggestOfThreeNumbers.cs
723
C#
using System; using System.Collections.Generic; using System.Text; namespace SuitsAndValues { enum Suits { Diamonds, Clubs, Hearts, Spades, } }
12.875
34
0.543689
[ "MIT" ]
JoyfulReaper/fourth-edition
Code/Chapter_8/SuitsAndValues/SuitsAndValues/Suits.cs
208
C#
using System; namespace Sitecore.Demo.Init.Jobs { public class CoveoTaskBase : TaskBase { public string CoveoOrganizationId { get { return Environment.GetEnvironmentVariable("COVEO_ORGANIZATION_ID"); } } public string CoveoApiKey { get { return Environment.GetEnvironmentVariable("COVE...
19.8375
122
0.702583
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
cheeto-bandito/Sitecore.Demo.Platform
docker/images/windows/demo-init/Jobs/CoveoTaskBase.cs
1,589
C#
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Collections.Generic; using System.Collections.Immutable; using System.Diagnostics; using System.Linq; using System.Threading; using Microsoft.Co...
38.607728
204
0.610506
[ "Apache-2.0" ]
Maxprofs/roslyn
src/Compilers/CSharp/Portable/Symbols/Source/SourceTypeParameterSymbol.cs
32,973
C#
namespace SimpleAuth.Tests.Extensions { using System; using System.IdentityModel.Tokens.Jwt; using System.Security.Claims; using System.Security.Cryptography; using System.Threading; using System.Threading.Tasks; using Microsoft.IdentityModel.Logging; using Microsoft.IdentityModel.Token...
39.989691
106
0.597061
[ "Apache-2.0" ]
jjrdk/SimpleAuth
tests/simpleauth.tests/Extensions/GrantedTokenValidatorTests.cs
3,881
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("Ch...
37.75
84
0.74908
[ "MIT" ]
OfficeDev/SharePoint_Provider-hosted_Add-ins_Tutorials
1_BeforeSharePointUI/ChainStoreWeb/Properties/AssemblyInfo.cs
1,362
C#
namespace Miruken { public interface IDecorator { object Decoratee { get; } } public static class DecoratorExtensions { public static object Decorated(this object source, bool deepest) { var decorator = source as IDecorator; while (decorator != null)...
22.409091
72
0.527383
[ "MIT" ]
Miruken-DotNet/Miruken
Source/Miruken/IDecorator.cs
495
C#
using System; using System.Globalization; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using static Microsoft.CodeAnalysis.CSharp.SyntaxFactory; namespace IronBlock.Blocks.Math { public class MathNumber : IBlock { public override object Evaluate(Context context) { ...
26.2
86
0.729771
[ "MIT" ]
ADefWebserver/IronBlock
IronBlock/Blocks/Math/MathNumber.cs
655
C#
using System; using System.IO; using System.Text; using Xunit; using FluentAssertions; using Korzh.DbUtils.Export; namespace Korzh.DbUtils.Tests { public class XmlDatasetExporterTests { private readonly XmlDatasetExporter _exporter; public XmlDatasetExporterTests() { _e...
24.953488
131
0.635601
[ "MIT" ]
KorzhCom/Korzh.DbUtils
tests/Korzh.DbUtils.Tests/XmlDatasetExporterTests.cs
1,075
C#
using Contacts.Core.DTOs; namespace Contacts.DTOs { public class LocationReportDto : IDto { public string Location { get; set; } public int PersonCount { get; set; } public int PhoneNumberCount { get; set; } } }
20.833333
49
0.628
[ "Apache-2.0" ]
alioktar/Contacts
src/Contacts.DTOs/Report/LocationReportDto.cs
252
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; using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Text.Json.Serialization.Metadata; namespace System.Text.Json.Ser...
44.246439
181
0.572937
[ "MIT" ]
Floyddotnet/runtime
src/libraries/System.Text.Json/src/System/Text/Json/Serialization/JsonConverterOfT.cs
31,061
C#
namespace CarWorld.Data.Seeding { using System; using System.Linq; using System.Threading.Tasks; using CarWorld.Common; using CarWorld.Data.Models; using Microsoft.AspNetCore.Identity; using Microsoft.Extensions.DependencyInjection; internal class RolesSeeder : ISeeder { ...
35.338462
116
0.588158
[ "MIT" ]
BorislavDimitrov/Car-World
Data/CarWorld.Data/Seeding/RolesSeeder.cs
2,299
C#
using System; using System.Threading.Tasks; using DSharpPlus; using DSharpPlus.CommandsNext; using DSharpPlus.CommandsNext.Attributes; using DSharpPlus.Entities; using InsanityBot.Util; using InsanityBot.Util.FileMeta; using InsanityBot.Util.FileMeta.Reference; namespace InsanityBot { public class...
41.25
165
0.579434
[ "MIT" ]
ExaInsanity/InsanityBot-Old
InsanityBot/ModCommands.cs
20,132
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.DAS.Models { public class AuthDasAuthresultRequest : TeaModel { // OAuth模式下的授权token [NameInMap("auth_token")] [Validation(Required=fals...
27.75
78
0.657658
[ "MIT" ]
alipay/antchain-openapi-prod-sdk
das/csharp/core/Models/AuthDasAuthresultRequest.cs
1,287
C#
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; names...
33.67
345
0.555539
[ "ECL-2.0", "Apache-2.0" ]
chivandikwa/pulumi-aws
sdk/dotnet/Transfer/GetServer.cs
6,736
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Wangkanai.Universal { internal class Linker : Require { } }
13.153846
35
0.719298
[ "Apache-2.0" ]
wangkanai/Universal
src/Linker.cs
173
C#
namespace KugelmatikLibrary.Protocol { public static class PacketTypeHelper { /// <summary> /// Gibt zurück, ob das Cluster bei einem Paket-Typ antwortet. /// </summary> /// <param name="type"></param> /// <returns></returns> public static bool DoesClusterAnswer(...
28.816667
104
0.462695
[ "MIT" ]
henrik1235/Kugelmatik
KugelmatikLibrary/Protocol/PacketTypeHelper.cs
1,735
C#
// This file is part of Silk.NET. // // You may modify and distribute Silk.NET under the terms // of the MIT license. See the LICENSE file for details. using System; using System.Runtime.InteropServices; using System.Runtime.CompilerServices; using System.Text; using Silk.NET.Core; using Silk.NET.Core.Native; using ...
35.236364
131
0.69969
[ "MIT" ]
ThomasMiz/Silk.NET
src/Assimp/Silk.NET.Assimp/Structs/PfnFileFlushProc.gen.cs
1,938
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/ShObjIdl.h in the Windows SDK for Windows 10.0.22000.0 // Original source is Copyright © Microsoft. All rights reserved. using System; using System.Runtim...
42.934211
193
0.726938
[ "MIT" ]
reflectronic/terrafx.interop.windows
sources/Interop/Windows/Windows/um/ShObjIdl/IAccessibilityDockingServiceCallback.cs
3,265
C#
// Copyright (c) Rodrigo Speller. All rights reserved. // Licensed under the Apache License, Version 2.0. See LICENSE.txt in the project root for license information. using Xunit; namespace JNet.Runtime.Test { public class JNetRuntime_ClassOperations_Tests : JNetRuntimeTestBase { public JNetR...
32.346939
112
0.61388
[ "Apache-2.0" ]
rodrigo-speller/JNet
tests/JNet.Runtime.Test/JNetRuntime_ClassOperations_Tests.cs
1,585
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 Xunit; namespace Microsoft.Win32.RegistryTes...
39.927536
128
0.546098
[ "MIT" ]
OceanYan/corefx
src/Microsoft.Win32.Registry/tests/Registry/Registry_Getvalue_str_str_obj.cs
5,510
C#
namespace JsonAssets.Data { public class ForgeRecipeData { public string EnableWithMod { get; set; } public string DisableWithMod { get; set; } public string BaseItemName { get; set; } // Checks by Item.Name, so supports anything public string IngredientContextTag { get; set; } ...
31.411765
94
0.653558
[ "MIT" ]
SlivaStari/StardewValleyMods
JsonAssets/Data/ForgeRecipeData.cs
534
C#
using System.Windows.Controls; namespace Pulse.UI { public class UiCheckBox : CheckBox { } }
13.25
38
0.669811
[ "MIT" ]
Albeoris/Pulse
Pulse.UI/Controls/Extended/UiCheckBox.cs
108
C#
using System.Collections.Concurrent; using Microsoft.Extensions.Configuration; using Abp.Extensions; using Abp.Reflection.Extensions; namespace PersonalFinance.Configuration { public static class AppConfigurations { private static readonly ConcurrentDictionary<string, IConfigurationRoot> _configuratio...
33.833333
133
0.631773
[ "MIT" ]
Jfontenla/PersonalFinance
aspnet-core/src/PersonalFinance.Core/Configuration/AppConfigurations.cs
1,626
C#
// Originally submitted to OSEHRA 2/21/2017 by DSS, Inc. // Authored by DSS, Inc. 2014-2017 using VA.Gov.Artemis.Commands.Orwu; using VA.Gov.Artemis.Commands.Dsio; using VA.Gov.Artemis.Vista.Broker; using VA.Gov.Artemis.Vista.Commands; using VA.Gov.Artemis.Vista.Commands.Orwu; using VA.Gov.Artemis.Commands.Xus; usin...
121.195991
39,400
0.654005
[ "Apache-2.0" ]
Veratics/Maternity-Tracker
Dashboard/va.gov.artemis.mock/MockRpcBrokerFactory.cs
54,419
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace NJasmineTests.Export { class NUnitSampleData { public static string GetSampleXmlResult( int totalCount = 0 , int errorCount = 0, int failureCount = 0, ...
57.164557
250
0.629318
[ "MIT" ]
fschwiet/DreamNJasmine
NJasmine.Tests/Export/NUnitSampleData.cs
4,518
C#
using System.Collections; using UnityEngine; public class PreloadUtil : MonoBehaviour { private void Start( ) { StartCoroutine( "WaitBeforeLoad" ); } IEnumerator WaitBeforeLoad( ) { yield return new WaitForEndOfFrame(); GameManager.Instance.SceneSwitch.ChangeLevel( "Menu" ); ...
21.75
63
0.658046
[ "MIT" ]
gadsu/BetweenTheWalls
Assets/Resources/Scripts/Management/PreloadUtil.cs
348
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> //---...
41.666667
80
0.654
[ "MIT" ]
MRefvem/data-structures-and-algorithms
challenges/TreeIntersection/TreeIntersection/obj/Release/netcoreapp3.1/TreeIntersection.AssemblyInfo.cs
1,000
C#
using Microsoft.AspNet.Identity; using ZergRushCo.Todosya.Domain.UserContext.Entities; namespace ZergRushCo.Todosya.Domain.UserContext.Services { /// <summary> /// Configure the application user manager used in this application. UserManager is defined in ASP.NET Identity /// and is used by the application...
32.074074
115
0.615473
[ "BSD-2-Clause" ]
jzabroski/SaritasaTools
samples/ZergRushCo.Todosya/ZergRushCo.Todosya.Domain/UserContext/Services/AppUserManager.cs
868
C#
using System.Collections.Generic; using System.Linq; using Sitecore.XConnect.Collection.Model; namespace Feature.FormsExtensions.ValueProviders.xDbFieldValueBinders.ContactPhoneNumbers { public class XDbNumberFieldValueBinder : PreferredPhoneNumbersFieldValueBinder { protected override IFieldValueBinde...
34.689655
105
0.657058
[ "MIT" ]
Antonytm/Sitecore-Forms-Extensions
src/Feature/FormsExtensions/code/ValueProviders/xDbFieldValueBinders/ContactPhoneNumbers/XDbNumberFieldValueBinder.cs
1,006
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Web; namespace BookingApp.Models { public class RoomReservations { public int Id { get; set; } public DateTime StartD...
23.066667
51
0.634393
[ "MIT" ]
igorjankovic/igor
BookingApp/BookingApp/Models/RoomReservations.cs
694
C#
// ***************************************************************************** // BSD 3-Clause License (https://github.com/ComponentFactory/Krypton/blob/master/LICENSE) // © Component Factory Pty Ltd, 2006 - 2016, All rights reserved. // The software and associated documentation supplied hereunder are the // prop...
40.047619
157
0.570987
[ "BSD-3-Clause" ]
Krypton-Suite-Legacy-Archive/Krypton-NET-5.450
Source/Krypton Components/ComponentFactory.Krypton.Ribbon/General/DesignTimeDraw.cs
4,208
C#
namespace TankTonka { public static class TypeClassifications { public static ushort[] STUv1 = {0x5A, 0x5E}; public static ushort[] STUv2 = { 0x3, 0x13, 0x14, 0x15, 0x18, 0x1A, 0x1B, 0x1F, 0x20, 0x21, 0x24, 0x25, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, 0x32, 0x36, 0x39, 0x3A, 0...
60.705882
124
0.604651
[ "MIT" ]
Mike111177/OWLib
TankTonka/TypeClassifications.cs
1,034
C#
using System; using System.ComponentModel; using System.Data; using System.Data.Common; using System.Diagnostics; using System.Runtime.CompilerServices; using System.Text; using System.Threading; using System.Web; using NewLife; using NewLife.Collections; using NewLife.Configuration; using NewLife.Log; us...
36.005314
168
0.500148
[ "MIT" ]
NewLifeX/X_NET20
XCode/Entity/EntitySession.cs
47,822
C#
/* * Bungie.Net API * * These endpoints constitute the functionality exposed by Bungie.net, both for more traditional website functionality and for connectivity to Bungie video games and their related functionality. * * OpenAPI spec version: 2.1.1 * Contact: support@bungie.com * Generated by: https://github.com...
37.865079
241
0.630476
[ "MIT" ]
xlxCLUxlx/BungieNetPlatform
src/BungieNetPlatform/Model/DestinyChallengesDestinyChallengeStatus.cs
4,771
C#
namespace Macabresoft.Macabre2D.Framework; using System; using System.ComponentModel.DataAnnotations; /// <summary> /// The 16 layers to be used in bit-masking operations by rendering and the physics engine. /// </summary> [Flags] public enum Layers : ushort { [Display(Name = null)] None = 0, [Display(Na...
19.606557
91
0.543478
[ "MIT" ]
BrettStory/Macabre2D
Framework/Hierarchy/Layers.cs
1,196
C#
using System; using System.Collections.Generic; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Metadata; namespace SimplCommerce.WebHost.Migrations { public partial class AddLocalization : Migration { protected override void Up(MigrationBuilder migrationBuilder) ...
38.983871
122
0.545304
[ "Apache-2.0" ]
ChauHoe/SimplCommerce
src/SimplCommerce.WebHost/Migrations/20160802083619_AddLocalization.cs
2,419
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...
30.310345
117
0.68942
[ "ECL-2.0", "Apache-2.0" ]
pulumi/pulumi-datadog
sdk/dotnet/Inputs/DashboardWidgetHostmapDefinitionRequestFillRumQueryGroupBySortQueryArgs.cs
879
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.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Net.Sec...
49.053602
222
0.597493
[ "MIT" ]
jasonpugsley/corefx
src/System.Net.Http/tests/FunctionalTests/SocketsHttpHandlerTest.cs
114,393
C#
// <auto-generated /> using System; using Hinode.Izumi.Data; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; names...
41.586809
128
0.448818
[ "MIT" ]
envyvox/Hinode.Izumi
Hinode.Izumi.Data/Migrations/20210502172420_UserModelUpdateAddPoints.Designer.cs
171,506
C#
using System.Collections.Immutable; using System.Diagnostics; namespace Pchp.CodeAnalysis.Symbols { /// <summary> /// The effective "bounds" of a type parameter: the constraint types, effective /// interface set, and effective base type, determined from the declared /// constraints, with any cycles re...
45.945946
116
0.660294
[ "Apache-2.0" ]
DRSDavidSoft/peachpie
src/Peachpie.CodeAnalysis/Symbols/TypeParameterBounds.cs
3,402
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; // Problem 9. Student groups // • Create a class Student with properties FirstName , LastName , FN , Tel , Email , Marks (a List), GroupNumber . // • Create a List<Student> with sample stude...
30.944444
125
0.549372
[ "MIT" ]
VanyaD/CSharp-OOP
ExtensionMethodsDelegatesLambdaLINQHomework/Student(Problems9-15)/Student.cs
2,793
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Threading; using NationalInstruments.UI.WindowsForms; using NationalInstruments.UI; namespace TransferCavityLock2012 { /// <summary> ...
33.944853
125
0.613993
[ "MIT" ]
ColdMatter/EDMSuite
TransferCavityLock2012/MainForm.cs
9,235
C#
using System; using System.Threading.Tasks; using System.Windows.Input; using Xamarin.Forms; namespace ExampleMaterialDesignControls.ViewModels { public class MaterialSelectionViewModel : BaseViewModel { private string selectedText; public string SelectedText { get { retur...
26.21875
91
0.64124
[ "MIT" ]
ClayAchahui/MaterialDesignControlsPlugin-1
example/ExampleMaterialDesignControls/ViewModels/MaterialSelectionViewModel.cs
841
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace CS_ASP_027 { public partial class Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { Random random...
22.234043
98
0.502392
[ "MIT" ]
DeveloperUniversity/CS-ASP-027
Lesson-27/Before/CS-ASP_027/CS-ASP_027/Default.aspx.cs
1,047
C#
using System; using System.Linq; using Nuke.Common; using Nuke.Common.Execution; using Nuke.Common.Git; using Nuke.Common.IO; using Nuke.Common.ProjectModel; using Nuke.Common.Tools.DotNet; using Nuke.Common.Tools.GitVersion; using Nuke.Common.Utilities.Collections; using static Nuke.Common.IO.FileSystemTasks; using st...
33.352941
132
0.609347
[ "Apache-2.0" ]
SteveHaine/YouTrackSharp
build/Build.cs
3,402
C#
using SwitcheoApi.NetCore.Entities; using System; using System.Collections.Generic; using System.Text; namespace SwitcheoTrader.NetCore.Entities { public class BotConfig { /// <summary> /// Trading Pair /// </summary> public string tradingPair { get; set; } /// <summary...
34.083333
93
0.537653
[ "MIT" ]
meongithub2017/Bot-Switcheo-exchange-in-DotnetCore
SwitcheoTrader.NetCore/SwitcheoTrader.NetCore.Entities/BotConfig.cs
4,092
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _04.Concatenate_Data { class Program { static void Main(string[] args) { // Console.Write("Enter your first name: "); var firstName...
28.241379
101
0.550672
[ "MIT" ]
Evgeni-Ivanov/Programming-Basics-With-CSharp-February-2018
02 - Simple Calculations/Exercises/04. Concatenate Data/04. Concatenate Data.cs
821
C#
// Copyright 2019 Google LLC. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
41.62069
95
0.73488
[ "Apache-2.0" ]
chrisdunelm/google-ads-dotnet
src/V1/Stubs/SearchTermViewServiceClientExceptionCustomization.cs
1,207
C#
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Text; using System.Threading.Tasks; using NicoNico.Net.Entities.User; using NicoNico.Net.Entities.Web; using NicoNico.Net.Interfaces; using NicoNico.Net.Tools; namespace NicoNico.Net.Managers { public class UserManag...
28.515152
92
0.571201
[ "MIT" ]
drasticactions/niconico.net
NicoNico.Net/Managers/UserManager.cs
1,884
C#
namespace NConsoler { using System; /// <summary> /// Should not be used directly /// </summary> [AttributeUsage(AttributeTargets.Parameter, AllowMultiple = false)] public class ParameterAttribute : Attribute { /// <summary> /// Description is used in help message /...
25.833333
74
0.617204
[ "MIT" ]
csharpus/nconsoler
NConsoler/Attributes/ParameterAttribute.cs
467
C#
using i5.Toolkit.Core.ServiceCore; namespace i5.Toolkit.Core.DeepLinkAPI { public interface IDeepLinkingService : IService { void AddDeepLinkListener(object listener); void RemoveDeepLinkListener(object listener); } }
23.454545
54
0.70155
[ "MIT" ]
BorisJov/i5-Toolkit-for-Unity
Assets/i5 Toolkit for Unity/Runtime/Deep Link API/Scripts/IDeepLinkingService.cs
260
C#
// Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell...
29.136842
83
0.705564
[ "Apache-2.0" ]
121468615/mono
mcs/class/System.Core/Test/System.Linq.Expressions/ExpressionTest_Quote.cs
2,768
C#
// // UniqueIdSetTests.cs // // Author: Jeffrey Stedfast <jestedfa@microsoft.com> // // Copyright (c) 2013-2021 .NET Foundation and Contributors // // 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 ...
32.883513
97
0.652515
[ "MIT" ]
AJenbo/MailKit
UnitTests/UniqueIdSetTests.cs
18,351
C#