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
// // RemoveDir.cs: Removes a directory. // // Author: // Marek Sieradzki (marek.sieradzki@gmail.com) // // (C) 2005 Marek Sieradzki // // 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 w...
34.969697
78
0.707972
[ "MIT" ]
AArnott/xamarin-android
src/Xamarin.Android.Build.Tasks/Tasks/RemoveDirFixed.cs
3,462
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 Moq; using Microsoft.VisualStudio.ProjectSystem.LanguageServices; namespace Microsoft.VisualStudio.ProjectSystem.VS { internal static class IRosly...
30.521739
161
0.695157
[ "Apache-2.0" ]
333fred/roslyn-project-system
src/Microsoft.VisualStudio.ProjectSystem.Managed.VS.UnitTests/Mocks/IRoslynServicesFactory.cs
704
C#
// Copyright 2019 Windup Button // // 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 t...
31.233333
81
0.719317
[ "Apache-2.0" ]
windupbutton/graphql
src/WindupButton.GraphQL/Data/NullValueAccessor.cs
939
C#
// This file was generated by a tool; you should avoid making direct changes. // Consider using 'partial classes' to extend these types // Input: location_refiner.proto #pragma warning disable 0612, 1591, 3021 namespace apollo.perception.camera.location_refiner { [global::ProtoBuf.ProtoContract()] public part...
31.873016
109
0.649402
[ "Apache-2.0", "BSD-3-Clause" ]
0x8BADFOOD/simulator
Assets/Scripts/Bridge/Cyber/Protobuf/perception/camera/lib/obstacle/postprocessor/location_refiner/location_refiner.cs
2,008
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; namespace BWMS.Controllers { public class HomeController : Controller { [HttpGet] public IActionResult Index() { return View(); } ...
17.566667
44
0.548387
[ "Apache-2.0" ]
TropinAlexey/lifecycle
src/WebApp/Controllers/HomeController.cs
529
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using puck.core.Abstract; using System.ComponentModel.DataAnnotations; using puck.core.Attributes; using Microsoft.AspNetCore.Mvc; using puck.core.Abstract.EditorSettings; namespace puck.core.Models.EditorSettings { public enum ...
32.463415
88
0.652893
[ "MIT" ]
AmilkarDev/puck-core
core/Models/EditorSettings/PuckPickerEditorSettings.cs
1,333
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...
26.325
110
0.591168
[ "Apache-2.0" ]
bgrainger/aws-sdk-net
sdk/src/Services/MediaConnect/Generated/AmazonMediaConnectConfig.cs
2,106
C#
// CodeContracts // // Copyright (c) Microsoft Corporation // // All rights reserved. // // MIT License // // 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 wit...
25.139241
463
0.674891
[ "MIT" ]
Acidburn0zzz/CodeContracts
Microsoft.Research/Contracts/MsCorlib/Sources/System.Reflection.AssemblyName.cs
5,958
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Web; namespace NoiseBakery.RequestLogger { /// <summary> /// Module handling logging requests and responses. /// </summary> public abstract class RequestLog...
34.742138
108
0.5563
[ "MIT" ]
jsgoupil/request-logger-module
src/RequestLoggerModule/RequestLoggerModule.cs
5,526
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Web.Mvc; using Microsoft.VisualStudio.TestTools.UnitTesting; using Website; using Website.Controllers; using DAL.Models; using Domain; using Website.ViewModels; using Domain.Contracts; namespace Website.Tests.Controlle...
21.619048
90
0.580029
[ "MIT" ]
Shuvayu/DevBox
ENET MVC/EnetMVC/DAL/DAL/Website.Tests/Controllers/HomeControllerTest.cs
1,364
C#
using System; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; namespace SpeedrunComSharp { public class Category : IElementWithID { public string ID { get; private set; } public string Name { get; private set; } publi...
36.819355
158
0.539688
[ "MIT" ]
R3FR4G/SpeedrunComSharp
SpeedrunComSharp/Categories/Category.cs
5,709
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.EventSystems; using UnityEngine.SceneManagement; using UnityEngine.UI; public class SampleSceneController : MonoBehaviour { private static readonly string PosePrevTrigger = "Pose_Prev"; private static readon...
22.840491
115
0.680097
[ "MIT" ]
Ralph-sa/kamakura-shaders
Assets/KamakuraShaders/Examples/Kamakura/Scripts/SampleSceneController.cs
3,725
C#
namespace Craftsman.Builders.Tests.Fakes { using Craftsman.Enums; using Craftsman.Exceptions; using Craftsman.Helpers; using Craftsman.Models; using System; using System.Collections.Generic; using System.IO; using System.Text; using static Helpers.ConsoleWriter; public static c...
46.256098
195
0.6512
[ "MIT" ]
wi3land/craftsman
Craftsman/Builders/Tests/Fakes/FakesBuilder.cs
3,795
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using JustCalculateIt.Supplementary; namespace JustCalculateIt.Logic { [Serializable()] public class MainFunction { public int numberOfVariables = 0; public List<Variable> v...
37.743243
192
0.537415
[ "MIT" ]
krisanovdev/NeuroFuzzyIdentification
NeuroFuzzyIdentification/NeuroFuzzyIdentification/Logic/Src/Fuzzy/MainFunction.cs
5,588
C#
using DCL.Helpers; using DCL.Interface; using System; using TMPro; using UnityEngine; using UnityEngine.Events; using UnityEngine.EventSystems; using UnityEngine.Serialization; public class ChatEntry : MonoBehaviour, IPointerClickHandler, IPointerEnterHandler, IPointerExitHandler { public struct Model { ...
31.9
146
0.58491
[ "Apache-2.0" ]
0xBlockchainx0/unity-renderer
unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/HUD/ChatWidgetHUD/ChatEntry.cs
9,251
C#
using System.ComponentModel.DataAnnotations; using Abp.Authorization.Users; using Abp.AutoMapper; using Abp.MultiTenancy; namespace HQF.Daily.MultiTenancy.Dto { [AutoMapTo(typeof(Tenant))] public class CreateTenantDto { [Required] [StringLength(AbpTenantBase.MaxTenancyNameLength)] ...
28.172414
60
0.681763
[ "MIT" ]
huoxudong125/HQF.ABP.Daily
src/HQF.Daily.Application/MultiTenancy/Dto/CreateTenantDto.cs
819
C#
// // EnumMemberAttribute.cs // // Author: // Atsushi Enomoto <atsushi@ximian.com> // // Copyright (C) 2005 Novell, Inc. http://www.novell.com // // 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 So...
32.770833
73
0.739987
[ "Apache-2.0" ]
BitExodus/test01
mcs/class/System.Runtime.Serialization/System.Runtime.Serialization/EnumMemberAttribute.cs
1,573
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.Web.Routing; namespace ATT_Shape_Hackathon.web { public class RouteConfig { public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resou...
24.625
99
0.593909
[ "MIT" ]
dmdinh22/ATT_Shape
ATT_Shape_Hackathon/ATT_Shape_Hackathon.web/App_Start/RouteConfig.cs
593
C#
using System; using Endscript.Core; using Endscript.Enums; using Endscript.Profiles; using Endscript.Exceptions; using Endscript.Interfaces; using Nikki.Support.Shared.Class; namespace Endscript.Commands { /// <summary> /// Command of type 'copy_incareer [filename] [manager] [gcareer] [root] [from] [to]'. /// </...
21.881579
100
0.705953
[ "MIT" ]
SpeedReflect/Endscript
Endscript/Commands/CopyInCareerCommand.cs
1,665
C#
using MediatR; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Ordering.Application.Features.Orders.Commands.CheckoutOrder; using Ordering.Application.Features.Orders.Commands.DeleteOrder; using Ordering.Application.Features.Orders.Commands.UpdateOrder; using Ordering.Application.Features.Orders...
36.323077
100
0.676408
[ "MIT" ]
zakeerms/ShopAspNetMicroservices
src/Services/Ordering/Ordering.API/Controllers/OrderController.cs
2,363
C#
using Kros.CqrsTemplate.Domain; using Kros.Utils; using Mapster; using MediatR; using System.Threading; using System.Threading.Tasks; namespace Kros.CqrsTemplate.Application.Commands { /// <summary> /// Update RRREntityNameRRR_ Command Handler. /// </summary> public class UpdateRRREntityNameRRR_Comman...
30.777778
115
0.68231
[ "MIT" ]
Kros-sk/Kros.Templates
Kros.ProjectTemplates/src/Kros.CqrsTemplate/content/Application/Commands/UpdateRRREntityNameRRR_/UpdateRRREntityNameRRR_CommandHandler.cs
1,110
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...
33.448718
114
0.628593
[ "Apache-2.0" ]
philasmar/aws-sdk-net
sdk/src/Services/ConfigService/Generated/Model/FailedDeleteRemediationExceptionsBatch.cs
2,609
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. namespace Microsoft.ML.CommandLine { [BestFriend] internal static class SpecialPurpose { /// <su...
33.038462
81
0.634459
[ "MIT" ]
1Crazymoney/machinelearning
src/Microsoft.ML.Core/CommandLine/SpecialPurpose.cs
859
C#
using System.Text.Json.Serialization; namespace Nightfall.Net.Models.Requests { public class Proximity { [JsonPropertyName("windowBefore")] public int WindowBefore { get; set; } [JsonPropertyName("windowAfter")] public int WindowAfter { get; set; } public Proximity() ...
22.434783
67
0.585271
[ "Apache-2.0" ]
gkyrli/Nightfall.Net
Nightfall.Net/Nightfall.Net/Models/Requests/Proximity.cs
518
C#
namespace QuizEMI.Web.Infrastructure.Filters { using Hangfire.Dashboard; using QuizEMI.Common; public class HangfireAuthorizationFilter : IDashboardAuthorizationFilter { public bool Authorize(DashboardContext context) { var httpContext = context.GetHttpContext(); ...
29.625
84
0.689873
[ "MIT" ]
BENALIsalahEDDINE/QuizEMI
Web/QuizEMI.Web.Infrastructure/Filters/HangfireAuthorizationFilter.cs
476
C#
using System; using System.Linq; using System.Net; using System.Net.Http; using System.Net.Http.Headers; using System.Threading; using System.Threading.Tasks; using Microsoft.Rest; namespace SignService.Utils { /// <summary> /// The authentication callback delegate which is to be implemented by the client co...
39.4
142
0.603723
[ "MIT" ]
AArnott/SignService
src/SignService/Utils/AutoRestCredential.cs
5,912
C#
/* Copyright (c) 2017, Nokia All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the...
27.482759
229
0.695107
[ "BSD-3-Clause" ]
nuagenetworks/vspk-csharp
vspk/vspk/ForwardingClass.cs
3,188
C#
using System; using System.Linq; using System.Collections.Generic; using Foundation; using UIKit; namespace NuGetReleaseTests { public class Application { // This is the main entry point of the application. static void Main (string [] args) { // if you want to use a differ...
24
99
0.644841
[ "Apache-2.0" ]
drungrin/realm-dotnet
Tests/NuGetReleaseTests/NuGetReleaseTests.XamarinIOS/Main.cs
506
C#
using System; using System.Collections.Generic; using System.Linq; using FluentValidation; using FluentValidation.Results; namespace src.Models { public class Application { public enum ApplicationModel { WEB = 1, MOB = 2, DES = 3 } ...
34.178082
100
0.530261
[ "MIT" ]
LexGalante/backend
aspnet5/src/Models/Application.cs
2,495
C#
namespace TraktNet.Modules.Tests.TraktEpisodesModule { using FluentAssertions; using System; using System.Net; using System.Threading.Tasks; using Trakt.NET.Tests.Utility; using Trakt.NET.Tests.Utility.Traits; using TraktNet.Exceptions; using TraktNet.Objects.Get.Users.Lists; using ...
55.024768
158
0.610083
[ "MIT" ]
henrikfroehling/Trakt.NET
Source/Tests/Trakt.NET.Modules.Tests/TraktEpisodesModule/TraktEpisodesModule_GetEpisodeLists_Tests.cs
17,775
C#
using System; using Caliburn.Micro; namespace CShell.Framework.Results { public abstract class OpenResultBase<TTarget> : IOpenResult<TTarget> { protected Action<TTarget> SetData; protected Action<TTarget> _onConfigure; protected Action<TTarget> _onShutDown; Action<TTarget> IOpenResult<TTarget>.OnConfigure ...
24.348837
73
0.692455
[ "Apache-2.0" ]
elcergey/CShell2
Src/CShell.Core/Framework/Results/OpenResultBase.cs
1,049
C#
using AryuwatWebApplication.Entity; using AryuwatWebApplication.Models; using Newtonsoft.Json; using OfficeOpenXml; using OfficeOpenXml.Style; using RestSharp; using System; using System.Collections.Generic; using System.Configuration; using System.Data.Entity; using System.Data.Entity.Core.Objects; using System.Data....
87.972175
445
0.526341
[ "Unlicense" ]
Krailit/Aryuwat_Nurse
AryuwatWebApplication/Controllers/HomeController.cs
256,177
C#
using ADYC.WebUI.Exceptions; using ADYC.WebUI.Infrastructure; using NLog; using System.Web; using System.Web.Mvc; using System.Web.Routing; namespace ADYC.WebUI.CustomAttributes { public class AdycExceptionFilter : IExceptionFilter { public void OnException(ExceptionContext filterContext) { ...
31.597015
104
0.581483
[ "MIT" ]
jose2a/ADYC
WebUI/ADYC.WebUI/Filters/AdycExceptionFilter.cs
2,119
C#
using BenchmarkDotNet.Running; using BenchmarkDotNet.Attributes; using System; [MemoryDiagnoser] public class DisposeStructVsClass { static int i = 0; [Benchmark(Baseline = true)] public void struct_dispose() { using (new StructDisposable()) { i++; } } [Be...
17.372093
41
0.563588
[ "MIT" ]
yufeih/yufeih.github.io
slides/memory-diagnostics-and-benchmark/code/benchmark/3-dispose-struct-vs-class.cs
749
C#
using System; using System.Net.Http; using Buddy.WebApi; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.TestHost; namespace Buddy.Integration.Tests.Fixtures { public class TestContext : IDisposable { private TestServer _server; public HttpClient Client { get; private set; } ...
22.516129
81
0.588825
[ "MIT" ]
krovomi/IntegrationExample
Buddy.Integration.Tests/Fixtures/TestContext.cs
700
C#
// <auto-generated /> namespace SmartStore.Tax.Data.Migrations { using System.CodeDom.Compiler; using System.Data.Entity.Migrations; using System.Data.Entity.Migrations.Infrastructure; using System.Resources; [GeneratedCode("EntityFramework.Migrations", "6.0.2-21211")] public sealed partial...
27.066667
90
0.615764
[ "MIT" ]
jenmcquade/csharp-snippets
SmartStoreNET-3.x/src/Plugins/SmartStore.Tax/Data/Migrations/201403112350417_Initial.Designer.cs
812
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class NPC : MonoBehaviour { [SerializeField] private float speed; private float initialSpeed; private int index; public List<Transform> paths = new List<Transform>(); private Animator animator; private s...
24.913043
106
0.571553
[ "MIT" ]
Meirellesc/GameDev.Unity.TopDown2D
TopDownGame2D/Assets/Scripts/NPC/NPC_1/NPC.cs
2,292
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Hosting; namespace Web.Asp.Net.Core { public class Program { public static void Main(string[] args) { var host = new WebHostBuilder() ...
22.12
64
0.571429
[ "Apache-2.0" ]
nzkelvin/PlayCode
Web.Microsoft/Old to be deleted/src/Web.Asp.Net.Core/Program.cs
555
C#
using System; using System.Net; using System.Net.Sockets; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using DotnetSpider.Common; namespace DotnetSpider.Downloader { /// <summary> /// 验证代理是否正常 /// </summary> public class TunnelValidator : IProxyValidator { private reado...
25.631579
105
0.637955
[ "MIT" ]
ACGSinon/DotnetSpider
src/DotnetSpider/Downloader/TunnelValidator.cs
9,869
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...
37.264151
153
0.643544
[ "Apache-2.0" ]
FoxBearBear/aws-sdk-net
sdk/src/Services/AppSync/Generated/Model/Internal/MarshallTransformations/StartSchemaCreationRequestMarshaller.cs
3,950
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.Composition; using System.Linq; using System.Threading; using System.Threa...
41.566327
166
0.613109
[ "Apache-2.0" ]
AArnott/roslyn
src/VisualStudio/Xaml/Impl/Features/InlineRename/XamlEditorInlineRenameService.cs
8,149
C#
using MediatR; using OmniSharp.Extensions.DebugAdapter.Protocol.Models; using OmniSharp.Extensions.DebugAdapter.Protocol.Serialization; using OmniSharp.Extensions.JsonRpc; using OmniSharp.Extensions.JsonRpc.Generation; // ReSharper disable once CheckNamespace namespace OmniSharp.Extensions.DebugAdapter.Protocol { ...
35.943182
176
0.574771
[ "MIT" ]
Devils-Knight/csharp-language-server-protocol
src/Dap.Protocol/Feature/Requests/BreakpointLocationsFeature.cs
3,165
C#
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using FindNReplace.Models; namespace FindNReplace.Tests { [TestClass] public class ReplacementTests { [TestMethod] public void ReplacementConstructor_CreatesInstanceOfReplacement_Replacement() { Replacement newReplacement = new ...
29.142857
81
0.721814
[ "Unlicense" ]
mikah-mathews/Find-and-Replace
FindNReplace.Tests/ModelTests/Replacement.Tests.cs
816
C#
// <autogenerated> // This file was generated by T4 code generator Equals.tt. // Any changes made to this file manually will be lost next time the file is regenerated. // </autogenerated> using System; using System.Linq; using System.Dynamic; using System.Collections; using System.Threading.Tasks; using static Ra...
36
183
0.684494
[ "MIT" ]
sagifogel/Ramda.NET
Ramda/Equals.cs
2,414
C#
using System; using static GLESDotNet.GLES2; using System.Text; using GLESDotNet.Samples; namespace HelloTriangle { public class HelloTriangleSample : GLApplication { private static uint _program; public static void Main(string[] args) { using (var sample = new HelloTriang...
25.778947
88
0.54757
[ "MIT" ]
smack0007/GLESDotNet
samples/HelloTriangle/HelloTriangleSample.cs
2,451
C#
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using Xunit; namespace System.Runtime.InteropServices { public static class MarshalTests { [Theory] [InlineData(0)] [InlineData(1)] ...
26.69697
101
0.435017
[ "MIT" ]
690486439/corefx
src/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/MarshalTests.cs
3,524
C#
using GameModes; using Movement; using RuleSets; using Ship; using System; namespace Ship { namespace TIEDefender { public class CountessRyad : TIEDefender, ISecondEditionPilot { public CountessRyad() : base() { PilotName = "Countess Ryad"; ...
34.722222
157
0.5952
[ "MIT" ]
rpraska/FlyCasual
Assets/Scripts/Model/Ships/TIE Defender/CountessRyad.cs
5,002
C#
/* * Copyright (c) Dominick Baier, Brock Allen. All rights reserved. * see license */ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Collections.Specialized; using System.Threading.Tasks; using Thinktecture.IdentityServer.Core; using Thinktecture.IdentityServer.Core.Connect.Services; using Thinkt...
39.753086
86
0.693478
[ "BSD-3-Clause" ]
ascoro/Thinktecture.IdentityServer.v3.Fork
source/Tests/UnitTests/Validation Tests/TokenRequest Validation/TokenRequestValidation_AssertionFlow_Invalid.cs
3,222
C#
using System; using System.Linq; using System.Collections.Generic; using System.Runtime.Serialization; using System.Runtime.Serialization.Formatters.Soap; using System.IO; using System.Net; namespace lab_45_streaming { class Program { static List<Customer> customers = new List<Customer>(); //D...
33.264463
113
0.513043
[ "MIT" ]
TheEletricboy/2019-09-C-sharp-Labs
Labs/lab_45_streaming/Program.cs
4,027
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace LLVM { public class Module: ReferenceBase { public Module(string name, Context context): base(llvm.CreateModule(name, context)) { } internal Module(IntPtr moduleRef):base(moduleRef){} public Fu...
19.625
86
0.625796
[ "MIT" ]
lostmsu/LLVM.NET
LLVM/Structure/Module.cs
1,886
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using Titanium.Web.Proxy.Models; namespace Titanium.Web.Proxy.Helpers { internal class ProxyInfo { internal ProxyInfo(bool? autoDetect, string autoConfigUrl, int? proxyEnable, st...
31.182648
117
0.487333
[ "MIT" ]
AllenSlayz/DDD
src/Titanium.Web.Proxy/Helpers/ProxyInfo.cs
6,831
C#
using Abp.AspNetCore.Mvc.Controllers; using Abp.IdentityFramework; using Microsoft.AspNetCore.Identity; namespace FirstBoilerPlateApp.Controllers { public abstract class FirstBoilerPlateAppControllerBase: AbpController { protected FirstBoilerPlateAppControllerBase() { LocalizationSo...
27.35
86
0.731261
[ "MIT" ]
TeeGeorge/BoilerPlate
aspnet-core/src/FirstBoilerPlateApp.Web.Core/Controllers/FirstBoilerPlateAppControllerBase.cs
547
C#
using System.Collections.Generic; using AntDesign; namespace Newcats.JobManager.Blazor.Pages.Account.Settings { public partial class Index { private readonly Dictionary<string, string> _menuMap = new Dictionary<string, string> { {"base", "Basic Settings"}, {"security", "...
26.434783
93
0.592105
[ "MIT" ]
newcatshuang/JobManager
src/Newcats.JobManager.Blazor/Pages/Account/Settings/Index.razor.cs
608
C#
using System; using System.Collections.Generic; using System.Text; namespace ViceCity.Models.Players { public class CivilPlayer : Player { private const int InitialLifePoint = 50; public CivilPlayer(string name) : base(name, InitialLifePoint) { } } }
18.235294
48
0.635484
[ "MIT" ]
BorislavVladimirov/C-Software-University
C# OOP June 2019/C#OOPExam/Project-Skeleton/ViceCity/Models/Players/CivilPlayer.cs
312
C#
namespace Recipes.PartialUpdate { public interface IEmployeeClassification { int EmployeeClassificationKey { get; set; } string? EmployeeClassificationName { get; set; } bool IsExempt { get; set; } bool IsEmployee { get; set; } } }
25.090909
56
0.641304
[ "Unlicense" ]
lukevp/DotNet-ORM-Cookbook
ORM Cookbook/Recipes.Core/PartialUpdate/IEmployeeClassification.cs
276
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Yi.Framework.Common.Models { public class PageModel { } }
14.214286
36
0.738693
[ "Apache-2.0" ]
454313500/CC.Yi
Yi.Framework.Net5/Yi.Framework.Common/Models/PageModel.cs
201
C#
using System; namespace ShellAppWPF.Models { public class Item { public string Id { get; set; } public string Text { get; set; } public string Description { get; set; } } }
19.090909
47
0.585714
[ "MIT" ]
angpysha/Xamarin.Forms.Shell.WPF
ShellAppWPF/ShellAppWPF/Models/Item.cs
212
C#
//****************************************************************************************************** // WelcomePage.xaml.cs - Gbtc // // Copyright © 2015, Grid Protection Alliance. All Rights Reserved. // // Licensed to the Grid Protection Alliance (GPA) under one or more contributor license agreements. See //...
31.549133
155
0.541957
[ "MIT" ]
GridProtectionAlliance/MIDAS
Source/Tools/ConfigurationSetupUtility/Screens/WelcomeScreen.xaml.cs
5,461
C#
using System; using System.Xml.Serialization; using System.ComponentModel.DataAnnotations; using BroadWorksConnector.Ocip.Validation; using System.Collections.Generic; namespace BroadWorksConnector.Ocip.Models { /// <summary> /// Remove a Diameter peer. A peer cannot be removed if is referenced by a Realm Rou...
31.65
148
0.626646
[ "MIT" ]
cwmiller/broadworks-connector-net
BroadworksConnector/Ocip/Models/SystemBwDiameterPeerDeleteRequest.cs
1,899
C#
// Copyright (c) Josef Pihrt. All rights reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysis; using Microsoft.CodeA...
38.144144
160
0.588333
[ "Apache-2.0" ]
MarcosMeli/Roslynator
source/Refactorings/Refactorings/MergeLocalDeclarationsRefactoring.cs
4,236
C#
namespace WorkOS { using Newtonsoft.Json; /// <summary> /// Contains information about a WorkOS Organization record. /// </summary> public class Organization { /// <summary> /// Description of the record. /// </summary> [JsonProperty("object")] public co...
29.037037
79
0.560587
[ "MIT" ]
workos-inc/workos-dotnet
src/WorkOS.net/Services/Organizations/Entities/Organization.cs
1,570
C#
// c:\program files (x86)\windows kits\10\include\10.0.18362.0\um\dxva.h(1832,9) using System; namespace DirectN { [Flags] public enum _DXVA_DestinationFlags { DXVA_DestinationFlagMask = 0x0000000F, DXVA_DestinationFlag_Background_Changed = 0x00000001, DXVA_DestinationFlag_TargetRe...
29.4375
81
0.732484
[ "MIT" ]
bbday/DirectN
DirectN/DirectN/Generated/_DXVA_DestinationFlags.cs
473
C#
using Microsoft.AspNetCore.Mvc; namespace SimpleSocial.Web.Controllers { public class BaseController : Controller { } }
13.8
44
0.702899
[ "MIT" ]
ctsmohanreddy072/socialnetwork-core
src/SimpleSocial/Web/SimpleSocial.Web/Controllers/BaseController.cs
140
C#
using Lab17CreateAnAPI.Models; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Lab17CreateAnAPI.Data { public class TodoDbContext : DbContext { public TodoDbContext(DbContextOptions<TodoDbContext> options) ...
23.047619
85
0.694215
[ "MIT" ]
jimmychang94/Lab17CreateAnAPI
Lab17CreateAnAPI/Lab17CreateAnAPI/Data/TodoDbContext.cs
486
C#
using System; using System.Text.Json; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; using NHSD.GPIT.BuyingCatalogue.EntityFramework.Addresses.Models; using NHSD.GPIT.BuyingCatalogue.EntityFramework.Organisations.Models; namespace NHSD.GPIT.BuyingCatalogue.EntityFramework....
39.238095
131
0.652913
[ "MIT" ]
nhs-digital-gp-it-futures/GPITBuyingCatalogue
src/NHSD.GPIT.BuyingCatalogue.EntityFramework/Organisations/Configuration/OrganisationEntityTypeConfiguration.cs
1,650
C#
/* **************************************************************************** * * Copyright (c) Microsoft Corporation. * * This source code is subject to terms and conditions of the Apache License, Version 2.0. A * copy of the license can be found in the License.html file at the root of this distribution. If ...
41.598854
131
0.618474
[ "MIT" ]
rifraf/IronRuby_Framework_4.7.2
Runtime/Microsoft.Scripting/Hosting/ScriptSource.cs
14,518
C#
namespace masz.Models { public enum CacheBehavior { OnlyCache, Default, IgnoreCache, IgnoreButCacheOnError } }
15.4
29
0.584416
[ "MIT" ]
BSscripter/discord-masz
backend/masz/Models/CacheBehaviorEnum.cs
154
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace lm.Comol.Modules.EduPath.Domain { public enum EduPathTranslations { None=-1, Path=0, Unit=1, Activity=2, SubActivity=3, SurnameAndName=4, Completion=5, ...
30.367647
48
0.608232
[ "MIT" ]
EdutechSRL/Adevico
3-Business/3-Modules/lm.Comol.Modules.EduPath/Domain/Enum/EduPathTranslations.cs
4,132
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Caf.Midden.Core.Services.Metadata { public class MetadataReader { private readonly IMetadataParser parser; public MetadataReader( IMetadat...
23.488889
72
0.572375
[ "CC0-1.0" ]
GSWRL-USDA-ARS/Midden
Caf.Midden.Core/Services/Metadata/MetadataReader.cs
1,059
C#
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Reflection; using Jint.Native; using Jint.Native.Array; using Jint.Native.Function; using Microsoft.Scripting.Ast; namespace Jint.Runtime.Interop { public sealed class MethodInfoFunctionInstance : FunctionI...
37.553191
139
0.514448
[ "BSD-2-Clause" ]
djkrose/jint-unity
Jint/Runtime/Interop/MethodInfoFunctionInstance.cs
5,297
C#
using System; using UnityEngine; using UnityEngine.Video; using UnityEngine.SceneManagement; namespace SpaceCandy { public class SplashVideoAdvance : MonoBehaviour { // Variables public VideoPlayer videoPlayer; public string targetScene; private bool isLoadingScene; //...
24.526316
94
0.541845
[ "BSD-3-Clause" ]
AlexStewartCode/StarCandy
StarCandy/Assets/Scripts/Utility/SplashVideoAdvance.cs
934
C#
using System; using Microsoft.Extensions.Caching.Distributed; using Microsoft.Extensions.DependencyInjection; namespace AwsAspCore.DDB.Caching { // https://stackoverflow.com/a/52752984/3159342 public static class DynamoDBCacheServiceCollectionExtensions { /// <summary> /// Adds Amazon Dyna...
39.777778
144
0.64595
[ "MIT" ]
Soren025/AwsAspCore
DDB/Caching/DynamoDBCacheServiceCollectionExtensions.cs
1,434
C#
using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; using Mtd.Cpq.Manager.Data; using System; using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; namespace Mt...
27.45
77
0.616879
[ "MIT" ]
olegbruev/Mtd.Cpq.Manager
MigrationService.cs
1,649
C#
 using System.ComponentModel; using JetBrains.Annotations; using Newtonsoft.Json; namespace Crowdin.Api.ProjectsGroups { [PublicAPI] public class GroupPatch : PatchEntry { [JsonProperty("path")] public GroupPatchPath Path { get; set; } } [PublicAPI] public enum GroupPatchPath ...
18.777778
48
0.591716
[ "MIT" ]
crowdin/crowdin-api-client-dotnet
src/Crowdin.Api/ProjectsGroups/GroupPatch.cs
509
C#
using Photon.Realtime; using Photon.Pun; using UnityEngine; using UnityEngine.UI; using UnityEngine.SceneManagement; using static Niwatori.Utility; namespace Niwatori { public class TitleManager : MonoBehaviourPunCallbacks { [SerializeField] private InputField nameField; private int startTimeS...
30.164384
124
0.594914
[ "MIT" ]
Geatnium/NiwaNiwaNiwa
Assets/Gito/CSScripts/TitleManager.cs
2,202
C#
// ReSharper disable CheckNamespace // ReSharper disable IdentifierTypo // ReSharper disable StringLiteralTypo using ManagedIrbis.Pft.Infrastructure; using ManagedIrbis.Pft.Infrastructure.Ast; using ManagedIrbis.Pft.Infrastructure.Compiler; using ManagedIrbis.Pft.Infrastructure.Diagnostics; using ManagedIrbis.Pft.Inf...
28.808081
70
0.579944
[ "MIT" ]
amironov73/ManagedIrbis5
Source/Tests/UnitTests/Source/ManagedIrbis/Pft/Infrastructure/Ast/PftBangTest.cs
2,854
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. namespace Mi...
107.953846
544
0.802123
[ "MIT" ]
Agazoth/azure-powershell
src/Confluent/generated/api/Models/Api20200301/OrganizationResourcePropertiesAutoGenerated.cs
13,905
C#
/* *************************************************************************** * This file is part of SharpNEAT - Evolution of Neural Networks. * * Copyright 2004-2006, 2009-2010 Colin Green (sharpneat@gmail.com) * * SharpNEAT is free software: you can redistribute it and/or modify * it under the terms of the GN...
50.111675
230
0.619631
[ "MIT" ]
FrozenSonar/Fencing3DNEAT
Assets/UnitySharpNEAT/SharpNEAT/SpeciationStrategies/RandomClusteringStrategy.cs
9,872
C#
// Copyright (c) Gurmit Teotia. Please see the LICENSE file in the project root for license information. using System; using System.Threading; using System.Threading.Tasks; using Guflow.Properties; namespace Guflow.Worker { /// <summary> /// Represent activity concurrent execution strategy /// <...
33.377358
152
0.561334
[ "Apache-2.0" ]
Seekatar/guflow
Guflow/Worker/ActivityExecution.cs
3,540
C#
using System; using System.Collections.Generic; using GovUk.Education.ExploreEducationStatistics.Data.Model.Database; using GovUk.Education.ExploreEducationStatistics.Data.Model.Services; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Logging; using Moq; using Xunit; using static GovUk.Education.Explo...
35.938053
111
0.524501
[ "MIT" ]
benoutram/explore-education-statistics
src/GovUk.Education.ExploreEducationStatistics.Data.Model.Tests/ReleaseRepositoryTests.cs
4,063
C#
/******************************************************************************************** Copyright (c) Microsoft Corporation All rights reserved. Microsoft Public License: This license governs use of the accompanying software. If you use the software, you accept this license. If you do not accept th...
45.345133
275
0.595294
[ "Apache-2.0" ]
MSOpenTech/Visual-Studio-Puppet-plugin
VSPuppet/ProjectBase/ConfigProvider.cs
35,868
C#
using System; using System.Threading.Tasks; using ElmSharp; using Microsoft.Maui.Controls.Internals; using Microsoft.Maui.Controls.Platform; using ERect = ElmSharp.Rect; using XStackLayout = Microsoft.Maui.Controls.StackLayout; namespace Microsoft.Maui.Controls.Compatibility.Platform.Tizen { enum SwipeDrawerState { ...
26.314685
146
0.69581
[ "MIT" ]
JoonghyunCho/TestBed
src/Compatibility/Core/src/Tizen/Renderers/SwipeViewRenderer.cs
11,289
C#
using System; using System.Collections; using System.Collections.Generic; using AillieoUtils; using UnityEngine; using UnityEngine.Assertions; public class MatrixTest : MonoBehaviour { void Start() { TestFlat(); TestLoad(); Debug.Log("MatrixTest Pass"); } public void ...
23.557692
58
0.480816
[ "MIT" ]
aillieo/EasyGeneticAlgorithm
Assets/EasyGA/Tests/MatrixTest.cs
1,227
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SoftwareBlogsMVP.Models { public interface IModel { string getName(); } }
15.857143
33
0.720721
[ "MIT" ]
Iqrahaq/CSharp
kf7014/week5/SoftwareBlogsMVP/SoftwareBlogsMVP/Models/IModel.cs
224
C#
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ /...
44.533981
165
0.60061
[ "MIT" ]
OfficeGlobal/msgraph-beta-sdk-dotnet
src/Microsoft.Graph/Requests/Generated/WorkbookFunctionsPriceRequestBuilder.cs
4,587
C#
using System; using System.Collections; using System.Collections.Generic; using JetBrains.Annotations; using PDFium.NET.Native; namespace PDFium.NET { /// <summary> /// A class to work with document destinations. /// </summary> public class DestinationsCollection : IEnumerable<Destination>, IDisposabl...
29.578125
135
0.60803
[ "Apache-2.0" ]
crabn3bula/PDFium.NET
PDFium.NET/DestinationsCollection.cs
1,895
C#
// Copyright (c) The Avalonia Project. All rights reserved. // Licensed under the MIT license. See licence.md file in the project root for full license information. using System; using System.Linq; using System.Reactive.Linq; using System.Reflection; using Avalonia.Controls; using Avalonia.Reactive; namespace Avaloni...
32.102564
115
0.586262
[ "MIT" ]
HendrikMennen/Avalonia
src/Avalonia.Styling/LogicalTree/ControlLocator.cs
2,504
C#
using System; using System.Collections.Generic; using System.Text; namespace Bridge.Test.NUnit { /// <summary> /// This attribute is used inside a <c>TestFixture</c> to provide a common set of functions that are performed after each test method. /// <c>TearDown</c> methods may be either static or instance method...
41.428571
136
0.725862
[ "Apache-2.0" ]
Cheatoid/CSharp.lua
test/BridgeNetTests/BridgeTestNUnit/src/TearDownAttribute.cs
580
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 Y...
35.317269
114
0.523652
[ "Apache-2.0" ]
Arch/Npoi.Core
src/Npoi.Core/SS/Util/MutableFPNumber.cs
8,794
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("Is...
37.416667
84
0.746845
[ "MIT" ]
DJBuro/Telerik
JavaScriptFund/OperatorsAndExpressions/IsPrime/Properties/AssemblyInfo.cs
1,350
C#
using System.Diagnostics; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; namespace IUSystem.Areas.Identity.Pages { [AllowAnonymous] [ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)] public class ErrorM...
27.045455
88
0.694118
[ "MIT" ]
Jordan3900/IUSystem
IUSystem/Areas/Identity/Pages/Error.cshtml.cs
597
C#
/*--------------------------------------------------------------------------------------------- * Copyright (c) Dolittle. All rights reserved. * Licensed under the MIT License. See LICENSE in the project root for license information. * -------------------------------------------------------------------------------...
44.952381
129
0.617585
[ "MIT" ]
dolittle-platform/ContinuousImprovement
Specifications/Infrastructure/Services/Github/Webhooks/Handling/for_TenantMapper/when_getting_a_tenant_for_an_installation/and_that_tenant_is_associated_with_a_single_installation.cs
944
C#
using System; using System.Security.Authentication; using System.Text; using System.Threading.Tasks; using CryptoExchange.Net.Interfaces; using CryptoExchange.Net.Objects; using Newtonsoft.Json; namespace Binance.Net.UnitTests.TestImplementations { public class TestSocket: IWebsocket { public bool Can...
27.092593
71
0.570062
[ "MIT" ]
GetoXs/Bitfinex.Net
Bitfinex.Net.UnitTests/TestImplementations/TestSocket.cs
2,928
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 may ...
33.138462
119
0.618849
[ "Apache-2.0" ]
Aleksei-Litsov/ignite
modules/platforms/dotnet/examples/Apache.Ignite.ExamplesDll/Compute/AverageSalaryJob.cs
2,154
C#
using System; using System.Collections.Generic; using System.Linq; using StarryEyes.Anomaly.TwitterApi.DataModels; namespace StarryEyes.Filters.Expressions.Operators { public sealed class FilterOperatorPlus : FilterTwoValueOperator { protected override string OperatorString { get {...
32.039326
116
0.580046
[ "MIT" ]
Grabacr07/StarryEyes
StarryEyes/Filters/Expressions/Operators/OperatorArithmetics.cs
5,705
C#
using UnityEngine; using System.Collections; using System.Collections.Generic; [ExecuteInEditMode] public class TC_LevelWithTerrain : MonoBehaviour { public bool levelChildren; void Update() { if (levelChildren) { levelChildren = false; LevelChildren(); } ...
20.391304
94
0.547974
[ "MIT" ]
MelDv/DistributedShooter
Assets/TerrainComposer2/Scripts/Terrain/TC_LevelWithTerrain.cs
940
C#
using System.Collections.ObjectModel; namespace EZOper.TechTester.CSharpWebSI.Areas.ZApi { public class ComplexTypeModelDescription : ModelDescription { public ComplexTypeModelDescription() { Properties = new Collection<ParameterDescription>(); } public Collection<P...
27.214286
80
0.700787
[ "MIT" ]
erikzhouxin/CSharpSolution
TechTester/CSharpWebSI/Areas/ZApi/ModelDescriptions/ComplexTypeModelDescription.cs
381
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...
43.166667
81
0.635135
[ "MIT" ]
dradoslavov/Technology-Fundamentals
01.Intro and Basic Syntax - Lab/06. Foreign Languages/obj/Debug/netcoreapp2.1/06. Foreign Languages.AssemblyInfo.cs
1,036
C#
/* * LUSID API * * # Introduction This page documents the [LUSID APIs](https://www.lusid.com/api/swagger), which allows authorised clients to query and update their data within the LUSID platform. SDKs to interact with the LUSID APIs are available in the following languages and frameworks: * [C#](https://github....
85.502269
28,838
0.673567
[ "MIT" ]
fossabot/lusid-sdk-csharp
sdk/Lusid.Sdk/Api/PropertyDefinitionsApi.cs
113,034
C#
using MediatR; using System; namespace PresenceLight.Core.WorkingHoursServices { public class UseWorkingHoursCommand : IRequest<bool> { } }
15.4
56
0.74026
[ "MIT" ]
JMilthaler/presencelight
src/PresenceLight.Core/Lights/WorkingHoursServices/UseWorkingHours/UseWorkingHoursCommand.cs
156
C#