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 Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata; namespace Senai.Ekips.WebApi.Domains { public partial class EkipsContext : DbContext { public EkipsContext() { } public EkipsContext(DbContextOptions<EkipsContext> options) ...
35.021127
213
0.507943
[ "MIT" ]
leozitop/2s2019-sprint-2-backend
Ekips/Senai.Ekips.WebApi/Senai.Ekips.WebApi/Contexts/EkipsContext.cs
4,975
C#
using J2N.Numerics; using Lucene.Net.Diagnostics; using Lucene.Net.Support; using System; using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Text; namespace Lucene.Net.Util { /* * Licensed to the Apache Software Foundation (ASF) under one or more * con...
34.993197
190
0.496112
[ "Apache-2.0" ]
10088/lucenenet
src/Lucene.Net/Util/LongsRef.cs
9,997
C#
using FanaticFirefly.Data; using FanaticFirefly.Helpers; using FanaticFirefly.ViewModels; using FanaticFirefly.Views; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Xamarin.Forms; namespace FanaticFirefly.Services { public static class Nav...
28.695652
89
0.603788
[ "MIT" ]
pxlit-projects/entmob2016_9
FanaticFirefly/FanaticFirefly/FanaticFirefly/Services/NavigationService.cs
1,322
C#
namespace Domain.MainBoundedContext.BatchModule.Aggregates.NodePools { using System; public sealed class NodeOperatingSystem { public string NodeAgentSkuId { get; internal set; } public ImageReference ImageReference { get; internal set; } internal NodeOperatingSystem(string nodeA...
25.842105
90
0.686354
[ "Apache-2.0" ]
iddelacruz/studious-pancake
src/HPC.Batch/Domain.MainBoundedContext/BatchModule/Aggregates/NodePools/NodeOperatingSystem.cs
493
C#
namespace Lazy.UI.ValueConveters { using Lazy.Core.Enums; using Lazy.UI.Pages; using System; using System.Diagnostics; using System.Globalization; public class ApplicationPageValueConverter : BaseValueConverter<ApplicationPageValueConverter> { public override object Convert(object ...
29.107143
112
0.613497
[ "Apache-2.0" ]
MarioZisov/Lazy
Lazy.UI/ValueConveters/ApplicationPageValueConverter.cs
817
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using UnityEngine.EventSystems; using UniRx; using UnityEngine.Events; using System; public class DrumGameLineEditor : MonoBehaviour { /* TODO List * Maybe add click-grab click-release mode instead of drag a...
30.975676
111
0.647675
[ "MIT" ]
Kionius/DacronDuvet
Assets/ScenicAssets/DrumGame/DrumGameLineEditor.cs
11,463
C#
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Windows; using System.Windows.Controls; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Shapes; namespace GaugeSilverligh...
33.280374
148
0.569784
[ "MIT" ]
MIGU-1/csharp_samples_events_fastclock-template
source/FastClock/v.1.0.1_20160405/DemoGauges/GaugeSilverlightDemoApp/ExamplePressure.xaml.cs
3,563
C#
using System; using System.Linq; using System.Collections.Generic; namespace Lib.AspNetCore.Security.Http.Headers { /// <summary> /// Represents value of Feature-Policy header. /// </summary> [Obsolete("Feature Policy has been replaced with Permissions Policy.")] public class MultipleFeaturePolicy...
34.327273
131
0.630826
[ "MIT" ]
tpeczek/Lib.AspNetCore.Security
Lib.AspNetCore.Security/Http/Headers/MultipleFeaturePolicyHeaderValue.cs
1,890
C#
using System; using System.Collections.Generic; using GildedRose; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace GildedRoseTests { [TestClass] public class ProgramTests { [TestMethod] public void MainTest() { Program.Output = Checker.WriteLine; ...
32.324519
72
0.633747
[ "MIT" ]
mystic01/GildedRose
GildedRoseTests/ProgramTests.cs
13,449
C#
using Lachain.Proto; namespace Lachain.Core.Blockchain.VM { public class InvocationMessage { public UInt160 Sender { get; set; } public UInt256 Value { get; set; } public InvocationType Type { get; set; } public UInt160? Delegate { get; set; } } }
21.071429
48
0.620339
[ "Apache-2.0" ]
LATOKEN/lachain
src/Lachain.Core/Blockchain/VM/InvocationMessage.cs
297
C#
namespace Axinom.Toolkit { using System; using System.Collections.Generic; using System.Linq; /// <summary> /// A generic interface for validatable objects. Used to avoid having to re-implement an IValidatable /// interface in every project or - even worse - in every component. There also exist convenient /// ...
35.857143
108
0.733068
[ "MIT" ]
Axinom/Toolkit
Toolkit/IValidatable.cs
755
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public interface IHermiteInterpolation { /// <summary> /// 两点三次埃尔米特插值 /// </summary> /// <param name="start">第一个已知点</param> /// <param name="end">第二个已知点</param> /// <param name="forecast">需要预测的点</param> /// <re...
25.888889
113
0.67382
[ "Apache-2.0" ]
1170300302/IEC-Project
Assets/Scripts/Network/IHermiteInterpolation.cs
532
C#
// Copyright (c) Microsoft. 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.Collections.Immutable; using System.Diagnostics; using System.Threading; using System.Threading.Tasks; using Ana...
48.68
200
0.555875
[ "MIT" ]
AndreasVolkmann/roslyn-analyzers
src/Microsoft.CodeAnalysis.Analyzers/Core/MetaAnalyzers/Fixers/DefineDiagnosticDescriptorArgumentsCorrectlyFix.CustomFixAllProvider.cs
7,304
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. namespace StarkPlatform.CodeAnalysis.Operations { /// <summary> /// Represents a base interface for assignments. /// <para> /// Current usage...
33.266667
161
0.621242
[ "Apache-2.0" ]
stark-lang/stark-roslyn
src/Compilers/Core/Portable/Operations/IAssignmentOperation.cs
1,000
C#
namespace ErosionFinder.Data.Models { /// <summary> /// A generic class to represent the way /// the namespaces can be grouped /// </summary> public abstract class NamespacesGroupingMethod { } }
26.875
54
0.669767
[ "MIT" ]
rafaatsouza/erosion-finder
Source/ErosionFinder.Data/Models/NamespacesGroupingMethod.cs
217
C#
namespace Pharmacy.Services.Admin.Implementations { using Pharmacy.Data; using Pharmacy.Models; using Pharmacy.Services.Admin.Models; using System.Linq; using System.Collections.Generic; using AutoMapper.QueryableExtensions; using System; using Pharmacy.Common; public class Categor...
30.511111
119
0.504006
[ "MIT" ]
Zhelyazko777/OnlinePharmacy
Pharmacy/Pharmacy.Services/Admin/Implementations/CategoriesAdminService.cs
2,748
C#
using Celeste.Mod.Entities; namespace FrostHelper; [CustomEntity("FrostHelper/CassetteTempoTrigger")] public class CassetteTempoTrigger : Trigger { float Tempo; bool ResetOnLeave; float prevTempo; public CassetteTempoTrigger(EntityData data, Vector2 offset) : base(data, offset) { Tempo = data...
31.945946
92
0.658206
[ "MIT" ]
JaThePlayer/FrostHelper
Code/FrostHelper/Triggers/CassetteTempoTrigger.cs
1,184
C#
using System; using System.Diagnostics; using System.Threading; using System.Threading.Tasks; using CryptoKitties.Net.Api; using CryptoKitties.Net.Blockchain.RestClient; using Microsoft.ServiceFabric.Services.Runtime; namespace CryptoKitties.Net.Fabric.KittyContractDataService { internal static class Program ...
38.595238
136
0.642813
[ "MIT" ]
seanmobrien/CryptoKitty.TraderServices
src/CryptoKitties.Net.Fabric.KittyContractDataService/Program.cs
1,623
C#
// c:\program files (x86)\windows kits\10\include\10.0.22000.0\shared\ks.h(107,5) using System; using System.Runtime.InteropServices; namespace DirectN { [StructLayout(LayoutKind.Sequential)] public partial struct __struct_ks_2__union_0 { [MarshalAs(UnmanagedType.ByValArray, SizeConst = 2...
53.705882
267
0.714129
[ "MIT" ]
Steph55/DirectN
DirectN/DirectN/Generated/__struct_ks_2__union_0.cs
915
C#
/***********************************************************************************************\ * (C) KAL ATM Software GmbH, 2021 * KAL ATM Software GmbH licenses this file to you under the MIT license. * See the LICENSE file in the project root for more information. * * This file was created automatically as pa...
34
97
0.582633
[ "MIT" ]
KAL-ATM-Software/KAL_XFS4IoT_SP-Dev
Framework/Core/CashAcceptor/Commands/PresentMedia_g.cs
1,428
C#
using System.Reflection; using System.Timers; using Mono.Linker.Tests.Cases.Expectations.Assertions; using Mono.Linker.Tests.Cases.Expectations.Metadata; namespace Mono.Linker.Tests.Cases.Attributes.OnlyKeepUsed { [Reference ("System.dll")] [SetupLinkerCoreAction ("link")] [SetupLinkerArgument ("--used-attrs-only",...
32.444444
94
0.769406
[ "MIT" ]
Youssef1313/linker
test/Mono.Linker.Tests.Cases/Attributes/OnlyKeepUsed/CoreLibraryUsedAssemblyAttributesAreKept.cs
876
C#
using System; using System.Collections.Generic; using System.Linq; namespace DotSpatial.Symbology { /// <summary> /// Jenks natural breaks optimization used for symbolizing based on minimizing variance within categories. /// </summary> /// <remarks> /// This code replaces the JenksBreaks code whic...
40.052356
162
0.52719
[ "MIT" ]
rhythmsosad/DotSpatial
Source/DotSpatial.Symbology/NaturalBreaks.cs
7,652
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ProjectPokemon.Pokedex.Models.PSMD { public class AbilityDetailsViewModel { public AbilityDetailsViewModel(Ability ability, PsmdDataCollection data) { ID = ...
37.607843
104
0.554223
[ "MIT" ]
evandixon/MysteryDungeon-RawDB
Project Pokemon Pokedex/Models/PSMD/AbilityDetailsViewModel.cs
1,920
C#
using System; using System.Collections; using FluentSpecification.Abstractions.Validation; using FluentSpecification.Common; using FluentSpecification.Tests.Data; using FluentSpecification.Tests.Sdk; using Xunit; namespace FluentSpecification.Tests.Common { public partial class MinLengthSpecificationTests { ...
36.11828
98
0.587675
[ "Apache-2.0" ]
michalkowal/FluentSpecification
src/FluentSpecification.Tests/Common/MinLengthSpecificationTests.IsNotSatisfiedBy.cs
3,361
C#
using System; using ProtoBuf; namespace MonoGameUtility { [ProtoContract] public struct XZPoint : IEquatable<XZPoint> { #region Private Fields private static XZPoint zeroPoint = new XZPoint(); #endregion Private Fields #region Public Fields [ProtoMember(1)] ...
20.920455
74
0.522542
[ "MPL-2.0" ]
bsamuels453/With-Fire-and-Iron
MonoGameUtility/XZPoint.cs
1,843
C#
using dotnetredis.Models; using dotnetredis.Services; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Http; namespace dotnetredis.Controllers { [ApiController] [Route("/api/users")] public class UserController : Controller { private readonly UserService _userService; ...
22.245283
61
0.513147
[ "MIT" ]
dashaun/dotnetredis-wip
Controllers/UserController.cs
1,179
C#
using System.ComponentModel.DataAnnotations; namespace DevAdventCalendarCompetition.Repository.Models { public class ModelBase { [Key] public int Id { get; set; } } }
19.6
56
0.678571
[ "MIT" ]
GKotfis/DevAdventCalendar
src/DevAdventCalendarCompetition/DevAdventCalendarCompetition.Repository/Models/ModelBase.cs
198
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by Entitas.CodeGeneration.Plugins.ComponentEntityApiGenerator. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-gen...
44.649123
172
0.647544
[ "MIT" ]
ValtoLibraries/Entitas
Tests/Unity/VisualDebugging/Assets/Sources/Generated/Game/Components/GameMonoBehaviourSubClassComponent.cs
2,545
C#
using System.Threading.Tasks; using AElf.Kernel.Blockchain.Application; using AElf.Kernel.SmartContract.Infrastructure; using Volo.Abp.DependencyInjection; namespace AElf.Kernel.SmartContract.Application { //TODO: remove _executivePools, _contractHashs, change ISingletonDependency to ITransientDependency publ...
49.144928
103
0.726924
[ "MIT" ]
quangdo3112/AElf
src/AElf.Kernel.SmartContract/Application/SmartContractService.cs
3,393
C#
using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.Logging; using Orleans.CodeGeneration; using Orleans.Runtime; using Orleans.Serialization; namespace Orleans { ...
42.646497
174
0.52946
[ "MIT" ]
AmirSasson/orleans
src/Orleans.Core/Runtime/InvokableObjectManager.cs
13,391
C#
// <auto-generated> // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. // </auto-generated> namespace Microsoft.Azure.CognitiveServices.Search.WebSearch.Models { using Newtonsoft.Json; using Newtonsoft.Json.Convert...
27.984127
82
0.546228
[ "MIT" ]
thangnguyen2001/azure-sdk-for-net
src/SDKs/CognitiveServices/dataPlane/Search/Search/Generated/WebSearch/Models/SafeSearch.cs
1,763
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 ...
37.24
106
0.734694
[ "Apache-2.0" ]
AxiosCros/aliyun-openapi-net-sdk
aliyun-net-sdk-hbase/HBase/Transform/V20190101/ListTagsResponseUnmarshaller.cs
1,862
C#
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // This code is distributed under the GNU LGPL (for details please see \doc\license.txt) using ICSharpCode.WixBinding; using NUnit.Framework; using System; using System.Drawing; using System.Windows.Forms; using Sys...
31.478261
131
0.687155
[ "MIT" ]
Plankankul/SharpDevelop-w-Framework
src/AddIns/BackendBindings/WixBinding/Test/DialogXmlGeneration/ListViewPropertyWithSpecialXmlCharsTestFixture.cs
1,450
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 Microsoft.AspNetCore.Http; namespace Microsoft.AspNetCore.Authentication; /// <summary> /// Contains the options used by the <see cref="AuthenticationHandler{T}...
46.365591
140
0.704545
[ "MIT" ]
AndrewTriesToCode/aspnetcore
src/Security/Authentication/Core/src/AuthenticationSchemeOptions.cs
4,312
C#
// Copyright (c) Russlan Akiev. All rights reserved. // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. namespace ServiceBase.Plugins { using Microsoft.AspNetCore.Builder; using Microsoft.Extensions.Logging; /// <summary> /// Contains ...
34.215686
108
0.561605
[ "Apache-2.0" ]
aruss/ServiceBase
src/ServiceBase.Mvc/Plugins/ApplicationBuilderExtensions.cs
1,747
C#
// // TorrentTest.cs // // Authors: // Alan McGovern alan.mcgovern@gmail.com // // Copyright (C) 2006 Alan McGovern // // 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...
36.54185
151
0.534358
[ "MIT" ]
SICGames/monotorrent
src/MonoTorrent.Tests/Common/TorrentTest.cs
16,590
C#
//=============================================================================== // Microsoft patterns & practices // Composite Application Guidance for Windows Presentation Foundation //=============================================================================== // Copyright (c) Microsoft Corporation. All rights ...
36.867925
98
0.578301
[ "Apache-2.0" ]
andrewdbond/CompositeWPF
sourceCode/compositewpf/V1/trunk/Source/StockTraderRI/StockTraderRI.Modules.WatchList.Tests/Mocks/MockWatchListService.cs
1,954
C#
// // Copyright (c) Microsoft and contributors. 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 requi...
62.17363
188
0.398823
[ "Apache-2.0" ]
CerebralMischief/azure-sdk-for-net
src/ResourceManagement/Resource/ResourceManagement/Generated/DeploymentOperations.cs
229,172
C#
using System; using System.Collections.Generic; using System.Data.SqlClient; using System.Linq; using System.Threading.Tasks; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Logging; using Polly; using Polly.Retry; using U.Common.NetCore.EF; using U.ProductService.Domain.Common; using U.ProductService....
34.798319
131
0.557595
[ "MIT" ]
SebastianRuzanowski/Ubiquitous
src/Services/U.ProductService/U.ProductService.Application/Infrastructure/ProductContextSeeder.cs
4,143
C#
using System; namespace Fpl.Search.Models { public enum QueryClient { Slack, Web, Console } }
11.909091
27
0.541985
[ "MIT" ]
ehamberg/fplbot
src/Fpl.Search/Models/QueryAnalyticsItem.cs
133
C#
using System; namespace AsmExplorer { enum TypeKind { Class, Struct, Interface, Enum, StaticClass, Other } static class TypeKinds { public static TypeKind Classify(Type type) { if (type.IsValueType) ...
28.882353
85
0.446707
[ "BSD-2-Clause", "MIT" ]
sakano/unity-asm-explorer-package
Packages/com.s-schoener.asmexplorer/Runtime/TypeKinds.cs
1,473
C#
using System; using System.Linq; namespace Luhn.Core { public class LuhnChecker { private static readonly Predicate<string> Check = s => s.Select(c => int.Parse(new string(new[] {c}))) .Select((v, i) => i%2 == 0 ? v*2 : v) .Select(v => v > 9 ? 1 + v - 10 : v...
29.55
70
0.478849
[ "MIT" ]
hadmacker/luhncheck
Luhn.Core/LuhnChecker.cs
593
C#
#pragma warning disable 108 // new keyword hiding #pragma warning disable 114 // new keyword hiding namespace Windows.ApplicationModel.UserDataTasks { #if __ANDROID__ || __IOS__ || NET461 || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ || __MACOS__ #if __ANDROID__ || __IOS__ || NET461 || __WASM__ || __SKIA__ || __NET...
36.59375
99
0.714774
[ "Apache-2.0" ]
Abhishek-Sharma-Msft/uno
src/Uno.UWP/Generated/3.0.0.0/Windows.ApplicationModel.UserDataTasks/UserDataTaskRecurrenceUnit.cs
1,171
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Linq; using System.Text; using System.Xml; namespace Spectre.Console.Cli { [Description("Generates an XML representation of the CLI configuration.")] [Sup...
38.135135
117
0.573494
[ "MIT" ]
0xced/spectre.console
src/Spectre.Console/Cli/Internal/Commands/XmlDocCommand.cs
7,055
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...
27.957447
84
0.598935
[ "Apache-2.0" ]
polivbr/pulumi-azure-native
sdk/dotnet/Network/V20200701/Inputs/StaticRouteArgs.cs
1,314
C#
using System; using System.Collections.Generic; using System.Text; using FlubuCore.Context; using FlubuCore.Tasks; using FlubuCore.Tasks.Process; namespace FlubuCore.Azure.Tasks.Sql { public partial class AzureSqlServerFirewallRuleCreateTask : ExternalProcessTaskBase<AzureSqlServerFirewallRuleCreateTask> { ...
27.5
188
0.586364
[ "MIT" ]
flubu-core/FlubuCore.Azure
FlubuCore.Azure/Tasks/Sql/AzureSqlServerFirewallRuleCreateTask.cs
1,540
C#
using System.Reflection; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("AWSSDK.ImportExport")] [assembly: Assembly...
46.84375
233
0.751835
[ "Apache-2.0" ]
mikemissakian/aws-sdk-net
sdk/code-analysis/ServiceAnalysis/ImportExport/Properties/AssemblyInfo.cs
1,499
C#
using System.CommandLine; using TodayInDestiny2.Tasks.Wrapper; var rootCommand = new RootCommand("Today in Destiny Task Function Wrapper") { RefreshCurrentActivitiesCommand.GetCommand() }; return await rootCommand.InvokeAsync(args);
29.75
75
0.810924
[ "MIT" ]
vivekhnz/today-in-destiny2
tasks/wrapper/Program.cs
240
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> //--...
60.945651
804
0.609122
[ "MIT" ]
HenocEtienne2512/Git
GitC-master/05-08-19_09-08-19/MVCProject/MVCProject/SistemaBibliotecaDBDataSet.Designer.cs
474,342
C#
using System; using System.IO; using CoreGraphics; using Foundation; using UIKit; namespace Microsoft.Maui.Graphics.Platform { internal class PlatformPdfExportContext : PdfExportContext { private string _tempFilePath; private readonly NSMutableDictionary _documentInfo; private readonly PlatformCanvas _canvas; ...
20.742574
90
0.692124
[ "MIT" ]
eerhardt/Microsoft.Maui.Graphics
src/Microsoft.Maui.Graphics/iOS/PlatformPdfExportContext.cs
2,095
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...
32.905405
105
0.629158
[ "Apache-2.0" ]
philasmar/aws-sdk-net
sdk/src/Services/Kendra/Generated/Model/Internal/MarshallTransformations/PrincipalMarshaller.cs
2,435
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.Web.Routing; namespace CongressManager { public class RouteConfig { public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd...
24.291667
99
0.590051
[ "MIT" ]
VisualAcademy/AspNetCoreBook
CongressManager/CongressManager/App_Start/RouteConfig.cs
585
C#
using System.Threading; using System.Threading.Tasks; using AutoFixture.Xunit2; using FluentAssertions; using Reinforce.RestApi; using Reinforce.Constants; using Reinforce.RestApi.Models; using Xunit; namespace ReinforceTests.RestApiTests { public class IPlatformEventSchemaBySchemaIDTests { [Theory, Au...
41.794118
126
0.707248
[ "MIT" ]
Mfolguera/Reinforce
tests/ReinforceTests/RestApiTests/IPlatformEventSchemaBySchemaIDTests.cs
1,421
C#
namespace P03.DependencyInversion.Strategies { public class MultiplicationStrategy : IStrategy { public int Calculate(int firstOperand, int secondOperand) { return firstOperand * secondOperand; } } }
22.636364
65
0.654618
[ "MIT" ]
kovachevmartin/SoftUni
CSharp-OOP/09-COMMUNICATION_EVENTS/P03.DependencyInversion/Strategies/MultiplicationStrategy.cs
251
C#
///******************************************************* // * // * 作者:胡庆访 // * 创建时间:20110810 // * 说明:此文件只包含一个类,具体内容见类型注释。 // * 运行环境:.NET 4.0 // * 版本号:1.1.0 // * // * 历史记录: // * 创建文件 胡庆访 20100510 // * 使用 IsChecked 附加属性来实现 CheckBox 多选。 胡庆访 20110810 // * //************************************************...
36.312775
127
0.49909
[ "MIT" ]
zgynhqf/trunk
Rafy/WPF/Rafy.WPF/Controls/zzzSDG/SelectionDataGrid.cs
26,957
C#
using System; using FlutterSDK; using FlutterSDK.Widgets.Framework; using System.Net.Http; using FlutterBinding.UI; using System.Collections.Generic; using System.Linq; using System.Diagnostics; using SkiaSharp; using FlutterBinding.Engine.Painting; using static FlutterSDK.Global; using FlutterBinding.Mapping; using Fl...
42.700101
597
0.740989
[ "MIT" ]
JeroMiya/xamarin.flutter
FlutterSDK/src/Material/Search.cs
42,145
C#
#region Using directives using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Components; #endregion namespace Blazorise.Base { public abstract class BaseSimpleText : BaseComponent { #region Members private TextColor color...
23
114
0.505929
[ "MIT" ]
Anberm/Blazorise
Source/Blazorise/Base/BaseSimpleText.cs
2,532
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 Xunit; namespace System.ComponentModel.Tests { public class ContainerFilterServiceTests { [Fa...
30.5
90
0.679697
[ "MIT" ]
06needhamt/runtime
src/libraries/System.ComponentModel.TypeConverter/tests/ContainerFilterServiceTests.cs
793
C#
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="IntegerExpression.cs" company="WildGums"> // Copyright (c) 2008 - 2014 WildGums. All rights reserved. // </copyright> // --------------------------------------------------------...
30.054054
120
0.481115
[ "MIT" ]
half-evil/Orc.FilterBuilder
src/Orc.FilterBuilder/Expressions/NumericExpression.cs
1,114
C#
using System; using System.Collections.Generic; using DataStructures.Common; using DataStructures.Lists; namespace DataStructures.Heaps { /// <summary> /// BINOMIAL MIN HEAP Data Structure /// </summary> public class BinomialMinHeap<T> : IMinHeap<T> where T : IComparable<T> { /// <summary...
31.713528
144
0.472148
[ "MIT" ]
4L4M1N/C-Sharp-Algorithms
DataStructures/Heaps/BinomialMinHeap.cs
11,958
C#
using System.Collections.Generic; using System.Runtime.Serialization; using SnipeSharp.Serialization; namespace SnipeSharp.Filters { /// <summary> /// A filter for assets, featuring asset-only search fields. /// </summary> public sealed class AssetSearchFilter : AbstractAssetSearchFilter, ISortableSear...
32.102941
112
0.584975
[ "MIT" ]
cofl/SnipeSharp
SnipeSharp/Filters/AssetSearchFilter.cs
2,183
C#
using UnityEngine; using CW.Common; namespace SpaceGraphicsToolkit { /// <summary>This component allows you to move the current GameObject based on WASD/mouse/finger drags. NOTE: This requires the CwInputManager in your scene to function.</summary> [HelpURL(SgtCommon.HelpUrlPrefix + "SgtCameraMove")] [AddComponentM...
35.816964
341
0.712701
[ "MIT" ]
RaimundoGallino/EonHey-VR-Experience
Assets/Plugins/CW/SpaceGraphicsToolkit/Features/Shared/Examples/Scripts/SgtCameraMove.cs
8,023
C#
using DCL.Controllers; using DCL.Helpers; using DCL.Interface; using DCL.Models; using DCL.Configuration; using System; using System.Collections; using System.Collections.Generic; using System.Linq; using DCL.Components; using Newtonsoft.Json; using UnityEngine; namespace DCL { public class SceneController : IScen...
36.726764
169
0.571607
[ "Apache-2.0" ]
0xBlockchainx0/unity-renderer
unity-renderer/Assets/Scripts/MainScripts/DCL/WorldRuntime/SceneController.cs
32,797
C#
using System.IO; using static OpenGL.Gl; namespace SharpEngine { public class Material { readonly uint program; public Material(string vertexShaderPath, string fragmentShaderPath) { // create vertex shader var vertexShader = glCreateShader(GL_VERTEX_SHADER); glS...
35.243243
84
0.641871
[ "MIT" ]
Armin-AF/SharpEngine
Material.cs
1,304
C#
using System.ComponentModel.DataAnnotations; namespace _3_Version.Models { public class Contact { /// <summary> /// A unique identifier for the contact /// </summary> /// <value></value> public int Id { get; set; } /// <summary> /// The contact's given name /// </summary> /...
19.064516
44
0.566836
[ "MIT" ]
Ahmed22188/csharp_with_csharpfritz
sessions/Season-02/0205-ApiPartTwo/src/3_Version/Models/Contact.cs
591
C#
//------------------------------------------------------------------------------ // <copyright file="FirmwareBuild.cs" company="Microsoft"> // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // </copyright> //-----------------------------------------------------------------...
27.259259
81
0.456522
[ "MIT" ]
3nfinite/Azure-Kinect-Sensor-SDK
src/csharp/SDK/FirmwareBuild.cs
738
C#
using Microsoft.VisualStudio.TestTools.UnitTesting; using OpenQA.Selenium; namespace Fpm.MainUISeleniumTest { public class TestHelper { public static void AssertTextContains(string text, string contained) { AssertTextContains(text, contained, string.Empty); } publi...
37.45
114
0.679573
[ "MIT" ]
PublicHealthEngland/fingertips-open
FingertipsProfileManager/MainUISeleniumTest/TestHelper.cs
1,500
C#
using System; using System.Reflection; class StartUp { static void Main(string[] args) { Type personType = typeof(Person); PropertyInfo[] properties = personType.GetProperties (BindingFlags.Public | BindingFlags.Instance); Console.WriteLine(properties.Length); } }
24.153846
60
0.665605
[ "MIT" ]
Bullsized/DB-Advanced-Entity-Framework
02 Defining Classes Exercise/01 Define a Class Person/StartUp.cs
316
C#
// Copyright 2019 Esri. // // 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...
40.011561
278
0.588847
[ "Apache-2.0" ]
Esri/arcgis-runtime-samples-dotne
src/UWP/ArcGISRuntime.UWP.Viewer/Samples/Layers/PlayKmlTours/PlayKmlTours.xaml.cs
6,924
C#
using Android.App; using Android.Content; using Android.Graphics; using Android.OS; using CloudStreamForms.Droid.Services; using System; using System.Collections.Generic; using System.Net; using System.Threading.Tasks; using static CloudStreamForms.Droid.MainActivity; namespace CloudStreamForms.Droid { [System.Ser...
30.894444
151
0.709585
[ "MIT" ]
LagradOst/CloudSteam-2
CloudStreamForms/CloudStreamForms.Android/LocalNot.cs
5,563
C#
using Android.App; using Android.Content.PM; using Android.Graphics.Drawables; using Android.OS; using Android.Views; namespace Diabetic.Droid { [Activity(Label = "@string/app_name", Theme = "@style/Theme.Splash", Icon = "@drawable/mcdo", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | Conf...
32.5
196
0.683333
[ "Apache-2.0" ]
kevinhipeau/workshop-gusto
Diabetic/Diabetic.Android/MainActivity.cs
782
C#
using System; using System.Diagnostics.CodeAnalysis; using System.Threading; using System.Threading.Tasks; namespace Destiny.Core.Flow.Caching { public interface ICache { /// <summary> /// 得到 /// </summary> /// <param name="key">键</param> /// <returns>返回得到</returns> ...
27.515789
123
0.518363
[ "MIT" ]
dotNetTreasury/Destiny.Core.Flow
src/Destiny.Core.Flow.Caching/ICache.cs
2,822
C#
// Licensed to Finnovation Labs Limited under one or more agreements. // Finnovation Labs Limited licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using FinnovationLabs.OpenBanking.Library.Connector.Services; namespace FinnovationLabs.Op...
31.161765
97
0.561114
[ "MIT" ]
finlabsuk/open-banking-connector
src/OpenBanking.Library.Connector/Models/Persistent/EntityBase.cs
2,121
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using CoreGraphics; using Foundation; using Photos; using UIKit; namespace bugTrapKit { public partial class BtImageCollectionViewController : BtCollectionViewController, IUICollectionViewDelegateFlowLayout, IPHPhotoLibra...
28.989107
207
0.745153
[ "MIT" ]
colbylwilliams/bugtrap
iOS/Code/Xamarin/bugTrap/bugTrapKit/Controllers/CollectionViewControllers/BtImageCollectionViewController.cs
13,306
C#
using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection.Extensions; using DataDictionary.Sample.MultiTenancy; using EasyAbp.Abp.DataDictionary; using Volo.Abp.AuditLogging; using Volo.Abp.BackgroundJobs; using Volo.Abp.Emailing; using Volo.Abp.FeatureManagement; using Volo.Abp.Id...
33.77551
99
0.75287
[ "MIT" ]
EasyAbp/Abp.DataDictionary
samples/src/DataDictionary.Sample.Domain/SampleDomainModule.cs
1,657
C#
using Microsoft.Xna.Framework; using System; namespace TerrariaApi.Server { public class ChatReceivedEventArgs : EventArgs { public byte PlayerID { get; internal set; } public Color Color { get; internal set; } public string Message { get; internal set; } } }
11.730769
47
0.652459
[ "MIT" ]
BloodARG/tModLoaderTShock
src/tModLoader/TerrariaApi.Server/EventArgs/ChatReceivedEventArgs.cs
307
C#
// <auto-generated /> using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using PublicTransport.Infrastructure.Da...
36.951957
103
0.451967
[ "MIT" ]
HNochev/PublicTransport
PublicTransport.Infrastructure/Migrations/20220323183353_AddAndUpdateTables.Designer.cs
20,769
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/DirectML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. using NUnit.Framework; using Syst...
39.704545
145
0.669147
[ "MIT" ]
phizch/terrafx.interop.windows
tests/Interop/Windows/um/DirectML/DML_VALUE_SCALE_2D_OPERATOR_DESCTests.cs
1,749
C#
#if (UNITY_WINRT || UNITY_WP_8_1) && !UNITY_EDITOR && !UNITY_WP8 #region License // Copyright (c) 2007 James Newton-King // // 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 // restr...
28.42735
131
0.668972
[ "Apache-2.0" ]
1st-SE-HCMUS/SpaceCrushUnity
Assets/JsonDotNet/Source/WinRT/RT_JsonPosition.cs
3,326
C#
namespace Sideways { using System; using System.Windows; public readonly struct CandlePosition : IEquatable<CandlePosition> { internal readonly int Left; internal readonly int Right; private readonly int candleWidth; private readonly Size renderSize; private rea...
37.005618
170
0.54395
[ "MIT" ]
JohanLarsson/Sideways
Sideways/Chart/CandlePosition.cs
6,589
C#
using System; using System.Collections; using System.Collections.Generic; namespace DTFiniteGraphMachine { public class CountMap<T> : Dictionary<T, int> { // PRAGMA MARK - Public Interface public void Increment(T key, int amount = 1) { this[key] = this.GetValue(key) + amount; } public void Dec...
24.95
50
0.653307
[ "MIT" ]
DarrenTsung/finite-graph-machine
FiniteGraphMachine/Core/CountMap.cs
499
C#
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // This code is distributed under the GNU LGPL (for details please see \doc\license.txt) using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.IO; using System.Xml; usin...
25.746479
103
0.694748
[ "MIT" ]
Plankankul/SharpDevelop-w-Framework
src/Main/Base/Project/Src/Services/Language/LanguageService.cs
1,830
C#
using UnityEngine; using System.Collections.Generic; using System.Runtime.Serialization; namespace StrumpyShaderEditor { [DataContract(Namespace = "http://strumpy.net/ShaderEditor/")] [NodeMetaData("MxV", "Operation", typeof(MxVNode),"Multiply a Matrix with a Vertex. Equivalent to translating it by that vertex, th...
28.30137
243
0.697967
[ "MIT" ]
Aeal/SSE
ShaderEditor/Assets/StrumpyShaderEditor/Editor/Graph/Nodes/Operations/MxVNode.cs
2,066
C#
using System.Collections.Generic; using System.Linq; using Amazon.Lambda.AspNetCoreServer; using Amazon.Lambda.Core; using JetBrains.Annotations; using Microsoft.AspNetCore.Http.Features; namespace Albelli.Templates.Amazon.Core.Pipelines { [PublicAPI] public abstract class PipelinedAspNetCoreFunction<TRequest...
47.102564
186
0.763201
[ "MIT" ]
albumprinter/Albelli.Lambda.Templates
src/Albelli.Templates.Amazon.Core/Pipelines/PipelinedAspNetCoreFunction.cs
1,839
C#
namespace MooVC.Serialization { using System.Runtime.Serialization; public static partial class SerializationInfoExtensions { public static float GetInternalSingle(this SerializationInfo info, string name) { return info.GetSingle(FormatName(name)); } } }
25.666667
87
0.685065
[ "MIT" ]
MooVC/MooVC
src/MooVC/Serialization/SerializationInfoExtensions.GetInternalSingle.cs
310
C#
using System; using System.Collections.Generic; using Microsoft.VisualStudio; using Microsoft.VisualStudio.Shell; using Microsoft.VisualStudio.OLE.Interop; using Microsoft.VisualStudio.Shell.Interop; namespace Jannesen.VisualStudioExtension.TypedTSql.LanguageService.Library { internal class SimpleObjectList: IVsS...
37.185185
160
0.59927
[ "Apache-2.0" ]
jannesen/TypedTSql
Jannesen.VisualStudioExtension.TypedTSql/LanguageService/SimpleLibrary/SimpleObjectList.cs
9,038
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.458333
80
0.652261
[ "Apache-2.0" ]
nerohytis/ALTS
SmartCardDriver/obj/Debug/netstandard2.0/SmartCardDriver.AssemblyInfo.cs
995
C#
//------------------------------------------------------------------------------ // <copyright file="OpenFileDialog.cs" company="Microsoft"> // Copyright (c) Microsoft Corporation. All rights reserved. // </copyright> //-------------------------------...
37.167203
205
0.547106
[ "Apache-2.0" ]
295007712/295007712.github.io
sourceCode/dotNet4.6/ndp/fx/src/winforms/Managed/System/WinForms/OpenFileDialog.cs
11,559
C#
using System.Reflection; using System.Runtime.InteropServices; using CommandLine; [assembly: AssemblyTitle("MarWac.Merlin.Console")] [assembly: AssemblyDescription("Console application to execute Merlin configuration management through text commands.")] [assembly: AssemblyUsage("Usage: merlin-console -f Source....
41.444444
121
0.788204
[ "MIT" ]
maw136/merlin
MarWac.Merlin.Console/Properties/AssemblyInfo.cs
367
C#
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Threading.Tasks; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc.RazorPages; namespace RESTfulAPI.Pages { /// <summary> /// /// </summary> public class AboutModel : PageModel ...
20.138889
59
0.551724
[ "MIT" ]
dpedwards/dotnet-core-restapi
RESTfulAPI/RESTfulAPI/Pages/About.cshtml.cs
725
C#
using Microsoft.Extensions.Configuration; using SFA.DAS.Encoding; using StructureMap; namespace SFA.DAS.Encoder.DependencyResolution { public class ConfigurationRegistry : Registry { public ConfigurationRegistry() { AddConfiguration<EncodingConfig>(Constants.ConfigurationKeys.Encod...
28.535714
89
0.629537
[ "MIT" ]
SkillsFundingAgency/das-utilities
SFA.DAS.Encoder/DependencyResolution/ConfigurationRegistry.cs
801
C#
using System; using System.Linq; using AutoMapper; using MTGAHelper.Entity; using MTGAHelper.Lib; using Serilog; namespace MTGAHelper.Web.UI.Shared { public class AutoMapperRawDeckToColorConverter : IValueConverter<ConfigModelRawDeck, string> { readonly UtilColors utilColors; public AutoMappe...
28.615385
131
0.574373
[ "MIT" ]
robaxelsen/MTGAHelper-Windows-Client
MTGAHelper.Web.Models/IoC/AutoMapperRawDeckToColorConverter.cs
1,118
C#
using System.Drawing; namespace ImageParse { public static class Rects { public static Point TopLeft(this Rectangle rect) => rect.Location; public static Point TopRight(this Rectangle rect) => new Point(rect.Right, rect.Top); public static Point BottomLeft(this Rectangle rect) => new P...
53.722222
105
0.702172
[ "Apache-2.0" ]
darthwalsh/ImageParse
Rects.cs
969
C#
/* * SimScale API * * The version of the OpenAPI document: 0.0.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ using System; using System.Linq; using System.IO; using System.Text; using System.Text.RegularExpressions; using System.Collections; using System.Collections.Generic; usi...
33.744526
151
0.566948
[ "MIT" ]
SimScaleGmbH/simscale-csharp-sdk
src/SimScale.Sdk/Model/FixedGradientEVBC.cs
4,623
C#
// <copyright file="RequestCharacterListAction.cs" company="MUnique"> // Licensed under the MIT License. See LICENSE file in the project root for full license information. // </copyright> namespace MUnique.OpenMU.GameLogic.PlayerActions.Character; using MUnique.OpenMU.GameLogic.Views.Character; /// <summary> /// Ac...
35.96
114
0.719689
[ "MIT" ]
ADMTec/OpenMU
src/GameLogic/PlayerActions/Character/RequestCharacterListAction.cs
901
C#
using Lanches.Models; using Lanches.ViewModels; using Microsoft.AspNetCore.Mvc; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Lanches.Components { public class CarrinhoCompraResumo : ViewComponent { private readonly CarrinhoCompra _carrinhoC...
28.805556
112
0.666345
[ "MIT" ]
DeivideSilva/Asp.NetCore
Lanches/Components/CarrinhoCompraResumo.cs
1,039
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 * ...
30.136364
83
0.668175
[ "Apache-2.0" ]
gcguo/tencentcloud-sdk-dotnet
TencentCloud/Cdb/V20170320/Models/DeleteTimeWindowRequest.cs
1,406
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("Ta...
38.513514
84
0.750175
[ "MIT" ]
nmarazov/TA-Homework
Courses 2016-spring/HQC-Part1/VariablesDataExpressionsConstants/Task2MethodPrintStatistics/Properties/AssemblyInfo.cs
1,428
C#
using System; using System.Collections.Generic; using System.Linq; using Newtonsoft.Json; using Venture.Common.Data; using Venture.Common.Events; using Venture.TeamWrite.Domain.DomainEvents; namespace Venture.TeamWrite.Domain { public class Team : AggregateRoot { public User ProjectOwner { get; privat...
28.795455
139
0.510063
[ "MIT" ]
radu-solca/Venture
Venture.TeamWrite/Venture.TeamWrite.Domain/Team.cs
5,070
C#
using System; using System.Collections.Generic; using System.Collections.Specialized; using System.Text; namespace EventStore.UriTemplate { // Thin wrapper around formatted string; use type system to help ensure we // are doing canonicalization right/consistently - the literal sections are held in an // un-escaped...
42.180905
134
0.724148
[ "Apache-2.0", "CC0-1.0" ]
riccardone/EventStoreCore
src/EventStore.UriTemplate/UriTemplateCompoundPathSegment.cs
16,790
C#