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 "li...
36.512821
142
0.599953
[ "Apache-2.0" ]
philasmar/aws-sdk-net
sdk/src/Services/MachineLearning/Generated/Model/Internal/MarshallTransformations/UpdateMLModelRequestMarshaller.cs
4,272
C#
using System; using System.Collections.Generic; using System.Threading.Tasks; using MediatR; using Moq; using NLog; using NUnit.Framework; using SFA.DAS.EmployerUsers.Application.Commands.RequestChangeEmail; using SFA.DAS.EmployerUsers.Application.Exceptions; using SFA.DAS.EmployerUsers.Application.Queries.Ge...
36.936416
136
0.588419
[ "MIT" ]
SkillsFundingAgency/das-employerusers
src/SFA.DAS.EmployerUsers.Web.UnitTests/OrchestratorTests/AccountOrchestratorTests/WhenRequestingChangeEmail.cs
6,392
C#
// <copyright file="Timeouts.cs" company="WebDriver Committers"> // Licensed to the Software Freedom Conservancy (SFC) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The SFC licenses this file // to you ...
41.253521
121
0.634517
[ "Apache-2.0" ]
10088/selenium
dotnet/src/webdriver/Timeouts.cs
5,858
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("Shar...
38.297297
84
0.752999
[ "MIT" ]
GeoSTGames/penumbra
Samples/Shared/Common/Properties/AssemblyInfo.cs
1,418
C#
/* * Copyright 2010-2014 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 "l...
59.029536
211
0.675929
[ "Apache-2.0" ]
TallyUpTeam/aws-sdk-net
sdk/src/Services/ElasticMapReduce/Generated/_bcl45/IAmazonElasticMapReduce.cs
111,920
C#
// <copyright file="TagContextRoundtripTest.cs" company="OpenTelemetry Authors"> // Copyright 2018, 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:/...
36.565217
105
0.591558
[ "Apache-2.0" ]
gibletto/opentelemetry-dotnet
test/OpenTelemetry.Tests/Impl/Tags/Propagation/TagContextRoundtripTest.cs
3,366
C#
using System; namespace WinRTXamlToolkit.Tools { /// <summary> /// Extension methods that help simplify some math operations. /// </summary> public static class MathEx { /// <summary> /// Returns the minimum of this and right value. /// </summary> /// <p...
38.571429
121
0.538047
[ "MIT" ]
JUV-Studios/WinRTXamlToolk
WinRTXamlToolkit/Tools/MathEx.cs
2,972
C#
//----------------------------------------------------------------------- // <copyright file="FSMTimingSpec.cs" company="Akka.NET Project"> // Copyright (C) 2009-2018 Lightbend Inc. <http://www.lightbend.com> // Copyright (C) 2013-2018 .NET Foundation <https://github.com/akkadotnet/akka.net> // </copyright> //...
37.027601
174
0.472018
[ "Apache-2.0" ]
cuteant/akka.net
test/Akka.Tests/Actor/FSMTimingSpec.cs
17,442
C#
using System; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; namespace Xamarin.Forms.Platform.WinRT { public sealed partial class StepperControl : UserControl { public static readonly DependencyProperty ValueProperty = DependencyProperty.Register("Value", typeof(double), typeof(StepperControl), new Proper...
28.744681
197
0.747964
[ "MIT" ]
akihikodaki/Xamarin.Forms
Xamarin.Forms.Platform.WinRT/StepperControl.xaml.cs
2,704
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...
28.585657
117
0.547596
[ "Apache-2.0" ]
ChristopherButtars/aws-sdk-net
sdk/src/Services/ChimeSDKMessaging/Generated/Model/ChannelMessage.cs
7,175
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace AspNetCore2Angular5.Services { public interface IEmailSender { Task SendEmailAsync(string email, string subject, string message); } }
20.230769
74
0.752852
[ "MIT" ]
DreamzDevelopment/AspNetCore2Angular5
Services/IEmailSender.cs
265
C#
using System; namespace P04.VariationsWithRepetition { internal class Program { private static string[] elements; private static int k; private static string[] variations; static void Main(string[] args) { elements = Console.ReadLine().Split(); k...
24.555556
64
0.510181
[ "MIT" ]
Iceto04/SoftUni
Algorithms Fundamentals/02. Combinatorial Problems/Lab/P04.VariationsWithRepetition/Program.cs
886
C#
using System; using System.Buffers; using System.Numerics; using StackItem = Neo.VM.Types.StackItem; using StackItemType = Neo.VM.Types.StackItemType; using PrimitiveType = Neo.VM.Types.PrimitiveType; using NeoArray = Neo.VM.Types.Array; using NeoBoolean = Neo.VM.Types.Boolean; using NeoBuffer = Neo.VM.Types.Buffer; ...
46.643312
130
0.531749
[ "MIT" ]
ngdseattle/neo-blockchaintoolkit-library
src/bctklib/formatters/StackItemFormatter.cs
7,323
C#
// defined: use a single thread // not defined: thread count = (# logical processors on system - 1) //#define useSingleThread using AutoMapper; using DFB_v1_40; using DFB_v1_40.Asm; using DFB_v1_40.Simulator; using DFBSimulatorWrapper.DFBStateModel; using System; using System.Collections.Generic; using System.Drawing...
25.456897
110
0.66297
[ "MIT" ]
paphillips/DFB
DFBSimulatorWrapper/Wrapper.cs
11,814
C#
using Examples.Charge.Domain.Aggregates.PersonAggregate; using Examples.Charge.Domain.Aggregates.PersonAggregate.Interfaces; using Examples.Charge.Infra.Data.Context; using System; using System.Collections.Generic; using System.Threading.Tasks; namespace Examples.Charge.Infra.Data.Repositories { public class Pers...
31.045455
103
0.739385
[ "MIT" ]
MelhoresSolucoes/FrontAngular
Web Charge/Examples.Charge.Infra.Data/Repositories/PersonRepository.cs
685
C#
using Revitalize.Framework.Player.Managers; namespace Revitalize.Framework.Player { public class PlayerInfo { public SittingInfo sittingInfo; public MagicManager magicManager; public bool justPlacedACustomObject; public PlayerInfo() { this.sittingInfo = new ...
21.478261
51
0.601215
[ "MIT" ]
JitterDev/Stardew_Valley_Mods
GeneralMods/Revitalize/Framework/Player/PlayerInfo.cs
494
C#
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; using osu.Framework.Allocation; using osu.Fra...
38.275568
172
0.382914
[ "MIT" ]
JamesMighty/osu
osu.Game/Screens/Tournament/Drawings.cs
13,124
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class GameStateManager { private static GameStateManager _instance; public static GameStateManager Instance { get { if (_instance == null) _instance = new GameStateManager(); ...
23.69697
72
0.670077
[ "MIT" ]
14t-s/crater-quest
Assets/Scripts/GameStateManager.cs
782
C#
using System; using System.Threading; namespace LiteNetLib { public sealed class NetPacketPool { private readonly NetPacket[] _pool = new NetPacket[NetConstants.PacketPoolSize]; private readonly ReaderWriterLockSlim _lock = new ReaderWriterLockSlim(LockRecursionPolicy.NoRecursion); pri...
30.878049
112
0.518957
[ "CC0-1.0" ]
francescozoccheddu/VGD
Assets/Scripts/LiteNetLib/NetPacketPool.cs
2,534
C#
using AdvancedClipboard.Wpf.ViewModels; using System.ComponentModel; namespace AdvancedClipboard.Wpf.Interfaces { public interface IEntryHostViewModel { #region Properties BindingList<HistoryPageEntryViewModel> Entries { get; } BindingList<LaneEntryViewModel> Lanes { get; } public void ItemDele...
22.388889
74
0.781638
[ "MIT" ]
ultradr3mer/AdvancedClipboard.Wpf
AdvancedClipboard.Wpf/Interfaces/IEntryHostViewModel.cs
405
C#
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Runtime.InteropServices; using System.Diagnostics; using Python.Runtime.Slots; using static Python.Runtime.PythonException; namespace Python.Runtime { /// <summary> /// The TypeMa...
38.667387
145
0.55231
[ "MIT" ]
unparalleled-js/pythonnet
src/runtime/typemanager.cs
35,806
C#
using System.Collections.Generic; using UnityEngine; namespace Kayac { public abstract class DebugPrimitiveRenderer : System.IDisposable { public enum AlignX { Left, Center, Right, } public enum AlignY { Top, Center, Bottom, } public enum TextOverflow { Scale, // 箱に収めるようスケール ...
25.545825
112
0.666826
[ "MIT" ]
hiryma/UnitySamples
DebugUi/Assets/Kayac/DebugUi/DebugPrimitiveRenderer.cs
13,697
C#
using System; using System.Collections.Generic; using NBitcoin; using Stratis.Bitcoin.Utilities; using Stratis.Features.FederatedPeg.Wallet; namespace Stratis.Features.FederatedPeg.Interfaces { /// <summary> /// Interface for a manager providing operations on wallets. /// </summary> public interface I...
46.038961
151
0.639351
[ "MIT" ]
0tim0/StratisFullNode
src/Stratis.Features.FederatedPeg/Interfaces/IFederationWalletManager.cs
7,092
C#
using System; using UnityEngine; namespace RFG.Platformer { [CreateAssetMenu(fileName = "New Weapon Charged State", menuName = "RFG/Platformer/Items/Equipable/Weapon/States/Charged")] public class WeaponChargedState : WeaponState { public override Type Execute(Weapon weapon) { return null...
24
126
0.696429
[ "Apache-2.0" ]
retro-fall-games/RFGEngine
Assets/RFGEngine/Platformer/Items/Equipables/Weapon/States/WeaponChargedState.cs
336
C#
using System; using System.Collections.Generic; using Unity.Entities; using Unity.Transforms; using UnityEngine; using UnityEngine.XR; [GenerateAuthoringComponent] public struct CameraRigData : IComponentData { public Entity head; public Entity leftHand; public Entity rightHand; } public class NonNetworkC...
37.590909
96
0.685611
[ "Apache-2.0" ]
WireWhiz/OpenFall
Assets/Scripts/CameraRigData.cs
2,483
C#
/* * Copyright © 2002-2011 the original author or 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.org/licenses/LICENSE-2.0 * * Unless req...
40.641138
159
0.554084
[ "Apache-2.0" ]
Magicianred/spring-net
src/Spring/Spring.Core/Objects/Factory/Support/AbstractObjectDefinition.cs
37,147
C#
#region Header // Vorspire _,-'/-'/ Thrones.cs // . __,-; ,'( '/ // \. `-.__`-._`:_,-._ _ , . `` // `:-._,------' ` _,`--` -: `_ , ` ,' : // `---..__,,--' (C) 2018 ` -'. -' // # Vita-Nex [http://core.vita-nex.com] # // {o)xxx|===============- # -===============...
20.888889
64
0.596712
[ "MIT" ]
Vita-Nex/Core
Items/Throwables/AtMobiles/Fun/Furniture/Thrones.cs
2,068
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; // Handles loading and unloading between main menu and gameplay // Scenes are always loaded on top of SceneManager scene, which holds important game logic stuff // This script needs to be in a prefab in ...
30.479167
97
0.668489
[ "MIT" ]
M4R774/lojojam
Assets/Scripts/SceneLoader.cs
1,465
C#
namespace GitVersion { using System.Linq; using LibGit2Sharp; public static class GitHelper { public static void NormalizeGitDirectory(string gitDirectory, Arguments arguments, string branch = null) { using (var repo = new Repository(gitDirectory)) { ...
43.141935
202
0.560939
[ "MIT" ]
potherca-contrib/GitVersion
GitVersionCore/BuildServers/GitHelper.cs
6,533
C#
using System; using System.Xml.Serialization; using System.Collections.Generic; using Top.Api; namespace DingTalk.Api.Response { /// <summary> /// OapiChatGetResponse. /// </summary> public class OapiChatGetResponse : DingTalkResponse { /// <summary> /// chat_info /// </summ...
24.9375
55
0.491855
[ "MIT" ]
lee890720/YiShaAdmin
YiSha.Util/YsSha.Dingtalk/DingTalk/Response/OapiChatGetResponse.cs
3,380
C#
using System; using System.Collections.Generic; using NUnit.Framework; using Xamarin.ProjectTools; using System.IO; using System.Linq; using Microsoft.Build.Framework; using System.Text; using Xamarin.Android.Tasks; using Microsoft.Build.Utilities; using System.Diagnostics; using System.Text.RegularExpressions; namesp...
46.82337
196
0.708055
[ "MIT" ]
MrAlbin/xamarin-android
src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/Tasks/ManagedResourceParserTests.cs
34,469
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Management; using System.Threading; using System.Net.Sockets; using NetWorking_1_0; using IO_1_0; using Symon_Data_Types_1_0; using Helpers_1_0; namespace Network_Monitor_1...
35.680067
114
0.45796
[ "MIT" ]
anileapen05/Helpers
Net_Monitor.cs
21,303
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 * ...
40.570743
124
0.591855
[ "Apache-2.0" ]
TencentCloud/tencentcloud-sdk-dotnet
TencentCloud/Asw/V20200722/AswClient.cs
17,458
C#
using System; namespace eIvy.WebService.Client { /// <summary> /// Describe the information of user account and mapping to an entity. /// </summary> public class AuthenticateResult : FunctionRequestResult { /// <summary> /// Constructor. /// </summary> public Authent...
21.939394
74
0.483425
[ "MIT" ]
lishan1047/eIvy.WebService
eIvy.WebService.Client/AuthenticateResult.cs
726
C#
using System; using System.ComponentModel; using System.Runtime.CompilerServices; using System.Windows; namespace ProcessSimulateImportConditioner { public class Asteroid { public event PropertyChangedEventHandler PropertyChanged; // This method is called by the Set accessor of each property...
37.98
142
0.614271
[ "MIT" ]
MazvydasT/Area255
ProcessSimulateImportConditioner/Asteroid.cs
3,800
C#
using System; using System.Threading.Tasks; using Amusoft.PCR.Grpc.Common; using Amusoft.PCR.Integration.WindowsDesktop.Feature.VoiceCommands; using Grpc.Core; using NLog; namespace Amusoft.PCR.Integration.WindowsDesktop.Services { public class VoiceCommandServiceImplementation : VoiceCommandService.VoiceCommandServ...
29.694915
128
0.75742
[ "BSD-3-Clause" ]
taori/PCRemote2
src/Amusoft.PCR.Integration.WindowsDesktop/Services/VoiceCommandServiceImplementation.cs
1,754
C#
using System; using SadConsole; using Microsoft.Xna.Framework; using SadConsole.Input; using Console = SadConsole.Console; using Microsoft.Xna.Framework.Graphics; using SadConsole.StringParser; using SadConsole.Surfaces; namespace StarterProject { class Program { private static Windows.CharacterViewer...
36.418367
162
0.596806
[ "MIT" ]
256colour/SadConsole
src/DemoProject/DesktopDX/Program.cs
3,571
C#
/* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the Li...
31.857143
157
0.726457
[ "MIT" ]
davidjbeveridge/mobox
vendor/phonegap/lib/windows-phone/templates/standalone/cordovalib/Commands/GeoLocation.cs
1,117
C#
/* * Tencent is pleased to support the open source community by making InjectFix available. * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * InjectFix is licensed under the MIT License, except for the third-party components listed in the file 'LICENSE' which may be subject to their...
37.798039
175
0.521347
[ "MIT" ]
yangruihan/InjectFix
Source/VSProj/Src/Tools/GenerateConfigure.cs
19,641
C#
using System; using System.Collections.Generic; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Lib.AspNetCore.ServerTiming.Http.Headers; using Lib.AspNetCore.ServerTiming.Http.Extensions; namespace Lib.AspNetCore.ServerTiming { /// <summary> /// Middleware providing support for Server Ti...
37.655556
127
0.63116
[ "MIT" ]
KeithHenry/Lib.AspNetCore.ServerTiming
Lib.AspNetCore.ServerTiming/ServerTimingMiddleware.cs
3,391
C#
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
20.772727
119
0.647976
[ "Apache-2.0" ]
brightness007/unofficial-aliyun-openapi-net-sdk
aliyun-net-sdk-mts/Mts/Model/V20140618/SearchMediaWorkflowRequest.cs
3,656
C#
using System; using System.IO; namespace Plugin { internal partial class Script { /// <summary>Parses a script file syntactially.</summary> /// <param name="lines">The individual lines of the script file.</param> /// <param name="title">The title of the script file.</param> /// <returns>The no-name top-le...
39.644068
172
0.591706
[ "Apache-2.0" ]
joeyfoo/alstom-metropolis-for-openbve
alstom-metropolis-content/plugin/trainscript-train-plugin/SourceCode/Plugin/Script.Syntax.cs
2,341
C#
using System.Drawing; namespace LiveSplit.Options.SettingsFactories { public class StandardLayoutSettingsFactory : ILayoutSettingsFactory { public LayoutSettings Create() { return new LayoutSettings() { TextColor = Color.FromArgb(255,255,255), ...
44.928571
99
0.553259
[ "MIT" ]
chloe747/LiveSplit
LiveSplit/LiveSplit.Core/Options/SettingsFactories/StandardLayoutSettingsFactory.cs
1,889
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace JerryPlat.Utils.Helpers { public class SessionHelper { public static SessionHelper Instance = GetInstance<SessionHelper>("Instance"); public static SessionHelper Admin = GetInstance<SessionHelper>("A...
33.296296
117
0.619021
[ "MIT" ]
JerryPCN/JerryPlat-Project-Template-WithApi
SRC/JerryPlat.Utils/Helpers/SessionHelper/SessionHelper.cs
3,598
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. namespace Microsoft.JSInterop { /// <summary> /// Abstract base class for an in-process JavaScript runtime. /// </summary> public abstra...
50.939394
216
0.674004
[ "Apache-2.0" ]
CBaud/Extensions
src/JSInterop/Microsoft.JSInterop/src/JSInProcessRuntimeBase.cs
1,681
C#
using System; using System.Runtime.Serialization; namespace fiskaltrust.ifPOS.v1.de { [DataContract] public class FinishTransactionResponse { [DataMember(Order = 1)] public long TransactionNumber { get; set; } [DataMember(Order = 2)] public DateTime StartTime { get; set; }...
25.325
59
0.601185
[ "MIT" ]
FlorianStadlberger/middleware-interface-dotnet
src/fiskaltrust.ifPOS/v1/de/Models/FinishTransactionResponse.cs
1,015
C#
namespace Microsoft.Azure.Commands.Network { class RouteServerParameterSetNames { internal const string ByRouteServerSubscriptionId = "RouteServerSubscriptionIdParameterSet"; internal const string ByRouteServerResourceId = "RouteServerResourceIdParameterSet"; internal const string...
43.545455
101
0.770355
[ "MIT" ]
Agazoth/azure-powershell
src/Network/Network/RouteServer/RouteServerParameterSetNames.cs
471
C#
// ------------------------------------------------------------------------------ // <auto-generated> // This code was generated by SpecFlow (http://www.specflow.org/). // SpecFlow Version:2.2.0.0 // SpecFlow Generator Version:2.0.0.0 // // Changes to this file may cause incorrect behavior and wi...
85.659791
390
0.752569
[ "MIT" ]
lsmithmier/DissectPECOFFBinary
DissectPECOFFBinary.SpecFlow/TextSection.feature.cs
353,006
C#
// SPDX-License-Identifier: MIT // ATTENTION: This file is automatically generated. Do not edit manually. #nullable enable namespace GISharp.Lib.GIRepository { /// <include file="ScopeType.xmldoc" path="declaration/member[@name='ScopeType']/*" /> public enum ScopeType { /// <include file="ScopeType....
43.166667
103
0.640927
[ "MIT" ]
dlech/gisharp
src/Lib/GIRepository-2.0/ScopeType.Generated.cs
777
C#
// // AssemblyInfo.cs // // Author: // Jim Borden <jim.borden@couchbase.com> // // Copyright (c) 2016 Couchbase, Inc 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 a...
36.452381
81
0.7629
[ "Apache-2.0" ]
brettharrisonzya/couchbase-lite-net
src/StorageEngines/ForestDB/storage.forestdb.shared/src/AssemblyInfo.cs
1,533
C#
using FoxTunes.Interfaces; using ManagedBass; using System; using System.Collections.Generic; using System.Linq; namespace FoxTunes { public class BassStreamFactory : StandardComponent, IBassStreamFactory { public BassStreamFactory() { this.Advisors = new List<IBassStre...
41.288235
166
0.547656
[ "MIT" ]
DJCALIEND/FoxTunes
FoxTunes.Output.Bass/BassStreamFactory.cs
7,021
C#
using System; namespace MultiplicationSign { class MultiplicationSign { static void Main() { double a = double.Parse(Console.ReadLine()); double b = double.Parse(Console.ReadLine()); double c = double.Parse(Console.ReadLine()); char result; ...
25.586207
134
0.359838
[ "MIT" ]
IvayloDamyanov/CSharp-Fundamentals
05. Conditional-Statements/04. Multiplication Sign/MultiplicationSign.cs
744
C#
using Microsoft.AspNetCore.Components.Builder; using Microsoft.Extensions.DependencyInjection; namespace CodeGeneratedHtmlAttributes { public class Startup { public void ConfigureServices(IServiceCollection services) { } public void Configure(IComponentsApplicationBuilder app) { app.AddComponent<App>("...
18.666667
60
0.782738
[ "MIT" ]
BlazorHub/blazor-university
src/Components/CodeGeneratedHtmlAttributes/Startup.cs
336
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using System; using System.Collections.Generic; using System.Linq; namespace Microsoft.Identity.Client.Utils { internal static class ScopeHelper { public static bool ScopeContains(ISet<string> outerSet, IE...
29.066667
120
0.581804
[ "MIT" ]
DaehyunLee/microsoft-authentication-library-for-dotnet
src/client/Microsoft.Identity.Client/Utils/ScopeHelper.cs
1,310
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; using NUnit.Framework; using System.Diagnostics; namespace Gt.SubProcess.UnitTests { [TestFixture] public static class Test_SubProcess ...
35.945727
131
0.471361
[ "MIT" ]
gene-l-thomas/GeneThomas.SubProcess
Gt.SubProcess.UnitTests/Test_SubProcess.cs
31,157
C#
using System.Threading.Tasks; using Abp.Authorization; using Abp.Runtime.Session; using Cogent.Configuration.Dto; namespace Cogent.Configuration { [AbpAuthorize] public class ConfigurationAppService : CogentAppServiceBase, IConfigurationAppService { public async Task ChangeUiTheme(ChangeUiThemeInp...
28.647059
128
0.75154
[ "MIT" ]
MC-Tortuga/Cogent-Assignment
aspnet-core/src/Cogent.Application/Configuration/ConfigurationAppService.cs
489
C#
namespace GeneralAlgorithms.Algorithms.Polygons { using System; using System.Collections.Generic; using DataStructures.Common; /// <summary> /// Interface for computing when polygons overlap. /// </summary> /// <typeparam name="TShape">This generic type lets us improve performance by using IntAlias.</typeparam...
37.65
116
0.678619
[ "MIT" ]
FrancisUsher/ProceduralLevelGenerator
GeneralAlgorithms/Algorithms/Polygons/IPolygonOverlap.cs
2,261
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> //--...
36.526237
175
0.548249
[ "MIT" ]
feeleen/AutoCodeGenerator
AutoCodeGen/Properties/Resource.Designer.cs
24,365
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...
31.595331
162
0.507143
[ "ECL-2.0", "Apache-2.0" ]
JakeGinnivan/pulumi-aws
sdk/dotnet/Ebs/GetSnapshot.cs
8,120
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.Web.Routing; namespace YT.CMS.Webs { public class RouteConfig { public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*p...
26.56
100
0.567771
[ "MIT" ]
mylinx/YT.CMS.Web
YT.CMS.Webs/App_Start/RouteConfig.cs
666
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated from a template. // // Manual changes to this file may cause unexpected behavior in your application. // Manual changes to this file will be overwritten if the code is regenerated....
38.322581
128
0.598485
[ "MIT" ]
ExpertSamples/Beca.Net
Auxiliar/ContactType.cs
1,188
C#
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. //----------------------------------------------------------------------- // </copyright> // <summary>Parses a project from raw XML into strongly typed objects</summary...
47.349076
375
0.647209
[ "MIT" ]
AlexanderAsiford/-
src/Build/Evaluation/ProjectParser.cs
46,120
C#
using ProtoBuf; using System; using System.Collections.Generic; using System.Text; namespace MagicalLifeAPI.Mod { /// <summary> /// Holds some information about the mod. /// </summary> [ProtoContract] public class ModInformation { /// <summary> /// A unique ID for the mod. This...
36.213115
191
0.598914
[ "MIT" ]
ockenyberg/MagicalLife
MagicalLifeAPIStandard/Mod/ModInformation.cs
2,211
C#
namespace HuaweiMobileServices.Game { using HuaweiMobileServices.Base; // Wrapper for com.huawei.hms.jos.games.playerstats.GamePlayerStatisticsClient public interface IGamePlayerStatisticsClient { ITask<GamePlayerStatistics> GetGamePlayerStatistics(bool paramBoolean); } }
27.545455
82
0.775578
[ "MIT" ]
EvilMindDevs/hms-sdk-unity
hms-sdk-unity/HuaweiMobileServices/Game/IGamePlayerStatisticsClient.cs
305
C#
namespace LeetCode.Naive.Problems; /// <summary> /// Problem: https://leetcode.com/problems/complex-number-multiplication/ /// Submission: https://leetcode.com/submissions/detail/234938784/ /// </summary> internal class P0537 { public class Solution { public string ComplexNumberMultiply(string ...
25.689655
77
0.577181
[ "MIT" ]
viacheslave/algo
leetcode/c#/Problems/P0537.cs
745
C#
/* * Copyright 2010-2014 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 "l...
33.597015
177
0.66948
[ "Apache-2.0" ]
HaiNguyenMediaStep/aws-sdk-net
sdk/src/Services/SimpleEmail/Generated/Model/GetCustomVerificationEmailTemplateRequest.cs
2,251
C#
using Lumina; using Lumina.Data; using Lumina.Excel; using Lumina.Text; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConceptMatrix.Sheets { [Sheet("Stain", columnHash: 0xa2420e68)] public class Stain : ExcelRow { publ...
24.2
97
0.658402
[ "MIT" ]
Bluefissure/CMTool
ConceptMatrix/Sheets/Stain.cs
728
C#
using System.Linq; using PalindromeExtensions; public static partial class StringExt { private static int InvalidIndex = -1; public static bool IsPalindrome(this string input) { var letterCount = input.Count(x => x.IsLetter()); if (letterCount == 0 || letterCount == 1) return true; ...
28.351351
78
0.494757
[ "MIT" ]
tvvister/PalindromeProblem
PalindromeExtensions/StringExt.cs
1,051
C#
// // Copyright (c) 2022 karamem0 // // This software is released under the MIT License. // // https://github.com/karamem0/sp-client-core/blob/main/LICENSE // using Karamem0.SharePoint.PowerShell.Models.V1; using Karamem0.SharePoint.PowerShell.Tests.Runtime; using Microsoft.VisualStudio.TestTools.UnitTesting...
33.458824
102
0.48488
[ "MIT" ]
karamem0/SPClientCore
source/Karamem0.SPClientCore.Tests/UnpublishFileCommandTests.cs
2,844
C#
using Freezr.Entities; using Microsoft.EntityFrameworkCore; namespace Freezr.Model { public class FreezrContext : DbContext { public FreezrContext(DbContextOptions<FreezrContext> options) : base(options) { } public DbSet<Fridge> Fridges { get; set; } protected overrid...
26.8
90
0.638806
[ "MIT" ]
huserben/Freezr
Freezr.Backend/Freezr.Model/FreezrContext.cs
672
C#
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using System.Threading.Tasks; using Grpc.Core; using Grpc.Core.Interceptors; using GrpcJsonTranscoder.Grpc; using GrpcJsonTranscoder.Internal.Grpc; using GrpcJsonTranscoder.Internal.Http; using Microsoft.Extensio...
50.582524
191
0.616699
[ "MIT" ]
HardikKSavaliya/coolstore-microservices
src/building-blocks/GrpcJsonTranscoder/DownStreamContextExtensions.cs
5,210
C#
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ // CS1591 - Missing XML commen...
64
276
0.798704
[ "MIT" ]
AndreyTretyak/service-fabric
src/prod/src/managed/Api/src/System/Fabric/Testability/Client/IFabricClient.cs
33,344
C#
using BookStore.API.Data; using BookStore.API.DependencyInjection; using BookStore.API.Mappings; using Microsoft.AspNetCore.Authentication.JwtBearer; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Identity; using Microsoft.EntityFrameworkCore; using Microsoft.Extensio...
34.417266
143
0.571697
[ "MIT" ]
Gilthayllor/BlazorStudies
BookStore/BookStore.API/Startup.cs
4,784
C#
using System; using System.Numerics; using System.Runtime.CompilerServices; using System.Threading; using Titan.Core; using Titan.Core.Memory; using Titan.Graphics; using Titan.Graphics.Loaders.Fonts; using Titan.UI.Text; namespace Titan.UI.Rendering { internal struct TextBatchSprite { public Vector2 ...
34.537736
131
0.60366
[ "MIT" ]
Golle/Titan
src/Titan.UI/Rendering/TextBatch.cs
3,661
C#
#region Usings using System; using System.Collections.Generic; using System.IO; using System.IO.Abstractions; using System.Linq; using System.Threading.Tasks; using FSOManagement.Annotations; using ModInstallation.Implementations.DataClasses; using ModInstallation.Interfaces.Mods; using Splat; #endregion namespace ...
35.287736
128
0.451811
[ "MIT" ]
asarium/FSOLauncher
Libraries/ModInstallation/Implementations/Mods/PostInstallActions.cs
7,483
C#
// Copyright (c) 2017 Jan Pluskal // //Licensed under the Apache License, Version 2.0 (the "License"); //you may not use this file except in compliance with the License. //You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // //Unless required by applicable law or agreed to in ...
39.37037
123
0.761054
[ "Apache-2.0" ]
mvondracek/NetfoxDetective
Framework/ApplicationRecognizers/AppIdent/Features/MinInterArrivalTimeDownFlow.cs
1,065
C#
using System.IO; using Common; using FluentAssertions; using MD2Viewer; using Xunit; namespace Tests { public class MD2FileTests { [Fact] public void SimpleMD2Load() { Stream stream = null; try { stream = File.OpenRead("infantry.md2"); var md2 = new MD2File(stream, DirectHeapMemoryAllocator.In...
23.27027
81
0.664344
[ "MIT" ]
RaZeR-RBI/q2-veldrid-viewer
Tests/MD2FileTests.cs
861
C#
using System.Collections.Generic; namespace DataKit.Modelling { /// <summary> /// A model of a data structure. /// </summary> public interface IDataModel : IModelNode { IReadOnlyList<IModelField> Fields { get; } IModelField this[string fieldName] { get; } bool TryGetField(string fieldName, o...
24.52381
66
0.681553
[ "MIT" ]
DevJohnC/DataKit
DataKit.Modelling/IDataModel.cs
1,032
C#
using Amazon.DynamoDBv2; using WBPA.Amazon.Attributes; namespace WBPA.Amazon.DynamoDb.Indexes { /// <summary> /// Represents a partition key of a table or index. This class cannot be inherited. /// </summary> /// <seealso cref="Key" /> public sealed class PartitionKey : Key { /// <summ...
34.695652
114
0.629073
[ "MIT" ]
wbpa/amazon-dynamodb
src/WBPA.Amazon.DynamoDb/Indexes/PartitionKey.cs
800
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 Xunit; namespace JitTest_s_addsub_signed_cs { public class Test { private static void testNumbers(long a, long b) { long c = ...
84
102
0.678816
[ "MIT" ]
Ali-YousefiTelori/runtime
src/tests/JIT/Methodical/int64/signed/s_addsub.cs
28,644
C#
using System; using System.Collections.Generic; using System.Linq; namespace ERPCore.Enterprise.Models.Projects.Enums { public enum ProjectStatus { Active = 0, Close = 2, Pending = 1, Void = 100 } }
16.266667
50
0.618852
[ "MIT" ]
next-scale/ERPCore
Enterprise/Models/Projects/Enums/ProjectStatus.cs
244
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...
52.320463
207
0.644085
[ "Apache-2.0" ]
philasmar/aws-sdk-net
sdk/src/Services/RDSDataService/Generated/_bcl45/AmazonRDSDataServiceClient.cs
40,653
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Mid2BMS { /// <summary> /// 要素数固定の巡回キュー /// maskとか使わずに素朴な実装でも別に良い気がしてきた /// </summary> class FixedCircularQueue<T> { double[] buf; public int Count { get; private set; } int ...
22.957143
86
0.405725
[ "MIT" ]
clkbng/Mid2BMS
Mid2BMS/SignalProcessing/FixedCircularQueue.cs
1,677
C#
using System; using System.Collections.Generic; using Microsoft.Extensions.Logging; using OpenTracing.Contrib.NetCore.Internal; using OpenTracing.Noop; using OpenTracing.Util; namespace OpenTracing.Contrib.NetCore.Logging { internal class OpenTracingLogger : ILogger { private const string OriginalForm...
35.25
145
0.492908
[ "Apache-2.0" ]
Aaronontheweb/csharp-netcore
src/OpenTracing.Contrib.NetCore/Logging/OpenTracingLogger.cs
5,078
C#
// c:\program files (x86)\windows kits\10\include\10.0.22000.0\um\ddraw.h(331,9) using System; using System.Runtime.InteropServices; namespace DirectN { [StructLayout(LayoutKind.Sequential)] public partial struct _DDSCAPS { public uint dwCaps; } }
22
82
0.671329
[ "MIT" ]
Steph55/DirectN
DirectN/DirectN/Generated/_DDSCAPS.cs
288
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; public class SlimeController : MonoBehaviour { public Rigidbody2D rb; public SpriteRenderer sr; public PolygonCollider2D pc; public Animator animator; public Transform target; publi...
25.795031
110
0.577655
[ "MIT" ]
EverPlainsGroup/EverPlains
Assets/Scripts/SlimeController.cs
4,153
C#
/* ======================================================================== * Copyright (c) 2005-2019 The OPC Foundation, Inc. All rights reserved. * * OPC Reciprocal Community License ("RCL") Version 1.00 * * Unless explicitly acquired and licensed from Licensor under another * license, the contents of thi...
44.75576
111
0.616145
[ "MIT" ]
AlinMoldovean/UA-ModelCompiler
Core/Stack/Transport/ITransportChannel.cs
9,712
C#
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.ServiceModel; using System.Text; using System.Threading.Tasks; using WCFServiceCL; namespace WCFHost { class HostProgram { static void Main(string[] args) { using (Service...
25.4
89
0.562992
[ "MIT" ]
Y2PM/1DayProjectW14
ProjectW14/WCFHost/HostProgram.cs
764
C#
using System; using Avalonia; using Avalonia.Controls.ApplicationLifetimes; using Avalonia.Logging.Serilog; using Avalonia.ReactiveUI; namespace SvgXml.Diagnostics { class Program { // Initialization code. Don't use any Avalonia, third-party APIs or any // SynchronizationContext-reliant code b...
32.076923
98
0.659472
[ "MIT" ]
punker76/Svg.Skia
src/SvgXml.Diagnostics/Program.cs
836
C#
using System.Collections.Generic; namespace System.Threading.Tasks { [Bridge.Convention(Member = Bridge.ConventionMember.Field | Bridge.ConventionMember.Method, Notation = Bridge.Notation.CamelCase)] [Bridge.External] [Bridge.IgnoreGeneric] [Bridge.Name("System.Threading.Tasks.TaskCompletionSource")] ...
29.777778
134
0.704291
[ "Apache-2.0" ]
cinjguy/Bridge
Bridge/System/Threading/Tasks/TaskCompletionSource.cs
1,072
C#
using System; using System.Collections; using System.Linq; using Lyn.Protocol.Bolt9; using Xunit; namespace Lyn.Protocol.Tests.Bolt9 { public class LynImplementedBoltFeaturesTests { private LynImplementedBoltFeatures _sut; public LynImplementedBoltFeaturesTests() { _sut = n...
30.769231
114
0.5575
[ "MIT" ]
elgressy/lyn
src/Lyn.Protocol.Tests/Bolt9/LynImplementedBoltFeaturesTests.cs
3,200
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.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; using BuildXL.Cache.ContentSto...
33.133188
158
0.480198
[ "MIT" ]
AzureMentor/BuildXL
Public/Src/Cache/ContentStore/Hashing/DedupNode.cs
15,175
C#
using System; using System.Configuration; using Stardust.Interstellar.Rest.Extensions; using Stardust.Particles; namespace Stardust.Interstellar.Rest.Annotations.UserAgent { public class ConfiguredClienUserAgentName : Attribute, IHeaderInspector { /// <summary>Initializes a new instance of the <see cre...
28.30303
151
0.579229
[ "Apache-2.0" ]
JonasSyrstad/Stardust.Rest
Stardust.Interstellar.Rest.Annotations/UserAgent/ConfiguredClienUserAgentName.cs
1,868
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.Linq; using System.Security.Cryptography.As...
36.28655
125
0.5379
[ "MIT" ]
1shekhar/runtime
src/libraries/System.Security.Cryptography.Pkcs/src/System/Security/Cryptography/Pkcs/Pkcs12SafeContents.cs
18,615
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.34014 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //--...
38.652778
179
0.603665
[ "MIT" ]
Wagnerp/onedrive-explorer-win
OneDriveApiExplorer/Properties/Resources.Designer.cs
2,785
C#
using System; namespace _03._Calculations { class Program { static void Main() { string action = Console.ReadLine(); int firstNumber = int.Parse(Console.ReadLine()); int secondNumber = int.Parse(Console.ReadLine()); if (action == "add") ...
21.916667
61
0.481939
[ "MIT" ]
1TaNaTa1/Programming-Fundamentals
04. Methods/Lab/03. Calculations/Program.cs
1,054
C#
using System; using System.Collections.Generic; using System.IO; using System.Windows.Forms; using System.Xml.Serialization; namespace ARKBreedingStats.testCases { public partial class ExtractionTestControl : UserControl { private ExtractionTestCases cases = new ExtractionTestCases(); private ...
34.485
180
0.550964
[ "MIT" ]
EmkioA/ARKStatsExtractor
ARKBreedingStats/testCases/ExtractionTestControl.cs
6,899
C#
using System; using System.IO; using System.Collections; using System.ComponentModel; using System.Data; using System.Drawing; using System.Web; using System.Web.SessionState; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.HtmlControls; using System.Configuration; using System.Resources; usin...
29.122137
158
0.67121
[ "MIT" ]
InstantBusinessNetwork/IBN
Source/Server/WebTrial/default.aspx.cs
11,445
C#
namespace EnvironmentAssessment.Common.VimApi { public class InvalidGuestLogin : GuestOperationsFault { } }
15.857143
54
0.810811
[ "MIT" ]
octansIt/environmentassessment
EnvironmentAssessment.Wizard/Common/VimApi/I/InvalidGuestLogin.cs
111
C#
using databaseORM.data; using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using System.Web.Http; using databaseORM; using Newtonsoft.Json.Linq; using System.Text.RegularExpressions; using Model; using DAL; using System.Data.SqlClient; using System.Data; namesp...
31.995686
241
0.460804
[ "MIT" ]
dearme61002/MsgBoard
MsgBoardSystem/MsgBoardWebApp/Controller/backController.cs
38,213
C#