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 AutoFixture.Xunit2; using FluentAssertions; using Xunit; namespace SkillManagement.Domain.Tests { public class SkillTests { [Theory] [AutoData] public void GivenTitleIsNull_ThrowsArgumentNullException(string anyDescription) { Action action = () =...
32.626374
109
0.608286
[ "MIT" ]
Code-FC/skill-management-api
test/SkillManagement.Domain.Tests/SkillTests.cs
2,971
C#
using DNTFrameworkCore.Application; namespace DNTFrameworkCore.TestAPI.Application.Identity.Models { public class RoleReadModel : ReadModel<long> { public string Name { get; set; } public string Description { get; set; } } }
25.3
62
0.699605
[ "Apache-2.0" ]
amir-ashy/DNTFrameworkCore
test/DNTFrameworkCore.TestAPI/Application/Identity/Models/RoleReadModel.cs
253
C#
/* * Copyright (c) 2018, FusionAuth, All Rights Reserved * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appl...
30.035714
68
0.73365
[ "Apache-2.0" ]
FusionAuth/fusionauth-csharp-client
src/main/csharp/domain/api/IntegrationRequest.cs
843
C#
#if !UNIX // // Copyright (c) Microsoft Corporation. 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 r...
40.303922
230
0.528825
[ "Apache-2.0", "MIT" ]
adbertram/PowerShell
src/Microsoft.PackageManagement.PackageSourceListProvider/PackageList/WebDownloader.cs
12,335
C#
using Codevos.Net.Caching.Attributes; namespace Codevos.Net.Caching.Tests.Infrastructure { public class CacheableUserService { private readonly CallCounter<CacheableUserService> CallCounter; public CacheableUserService( CallCounter<CacheableUserService> callCounter ) ...
23.826087
71
0.624088
[ "MIT" ]
codevos/Codevos.Net.Caching
Codevos.Net.Caching.Tests/Infrastructure/CacheableUserService.cs
550
C#
/* * @author Valentin Simonov / http://va.lent.in/ */ using HutongGames.PlayMaker; using TouchScript.Gestures; using UnityEngine; namespace TouchScript.Modules.Playmaker.Actions { [ActionCategory("TouchScript")] [HutongGames.PlayMaker.Tooltip("Sends events when a gesture changes state.")] public class ...
30.816901
130
0.617459
[ "MIT" ]
mioboo/TouchScript
UnityPackages/PlayMaker/Assets/TouchScript/Modules/PlayMaker/Actions/GestureStateChanged.cs
2,190
C#
using System.Collections.Generic; using Orchard.ContentManagement; namespace Orchard.Localization.ViewModels { public class EditLocalizationViewModel { public string SelectedCulture { get; set; } public IEnumerable<string> SiteCultures { get; set; } public IContent ContentItem { get; set;...
38.833333
79
0.718884
[ "BSD-3-Clause" ]
ArsenShnurkov/OrchardCMS-1.7.3-for-mono
src/Orchard.Web/Modules/Orchard.Localization/ViewModels/EditLocalizationViewModel.cs
468
C#
namespace ClassLib054 { public class Class034 { public static string Property => "ClassLib054"; } }
15
55
0.633333
[ "MIT" ]
333fred/performance
src/scenarios/weblarge2.0/src/ClassLib054/Class034.cs
120
C#
using System; using System.Collections.Generic; using System.Text; namespace DDD_Aggregates.v1.Domain { public class PurchaseOrderLineItem { public PurchaseOrderLineItem(Product product, double quantity) : this(Guid.NewGuid().ToString(), product, quantity) { } pub...
21.459016
81
0.517189
[ "MIT" ]
milannankov/ddd-aggregates-quickstart
source/DDD-Aggregates.Domain/v1/PurchaseOrderLineItem.cs
1,311
C#
// --------------------------------------------------------------------- // // Copyright (c) 2018-present, Magic Leap, Inc. All Rights Reserved. // Use of this file is governed by the Creator Agreement, located // here: https://id.magicleap.com/terms/developer // // ----------------------------------------------...
33.736842
74
0.546022
[ "Apache-2.0" ]
ENDROLL-Gallery/magicleap-unity_0.24.1
Assets/MagicLeap-Tools/Code/Input/Hands/Interfaces/IDirectManipulation.cs
643
C#
using Newtonsoft.Json.Linq; namespace Clarifai.DTOs { /// <summary> /// The geographical location of an input. /// </summary> public class GeoPoint { /// <summary> /// The longitude - X axis. /// </summary> public decimal Longitude { get; } /// <summary> ...
30.571429
83
0.54503
[ "Apache-2.0" ]
Clarifai/clarifai-csharp
Clarifai/DTOs/GeoPoint.cs
2,356
C#
 using System; using System.Globalization; using Logger.Models.Contracts; using Logger.Models.Enumerations; namespace Logger.Models.Appenders { public class FileAppender : IAppender { public FileAppender(ILayout layout, Level level, IFile file) { this.Layout = layout; ...
28.95
140
0.608808
[ "MIT" ]
DeyanDanailov/SoftUni-OOP
SolidExercise/Logger/Models/Appenders/FileAppender.cs
1,160
C#
using FVI.Funcionarios.API.Models; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace FVI.Funcionarios.API.Data.Mappings { public class EnderecoMappings : IEntityType...
28.354167
70
0.562087
[ "MIT" ]
Viliane/FaturaVI
src/services/FVI.Funcionarios.API/Data/Mappings/EnderecoMappings.cs
1,363
C#
using DarkUI.Config; using System; using System.Collections.ObjectModel; using System.Collections.Specialized; using System.ComponentModel; using System.Drawing; using System.Windows.Forms; using DarkUI.Icons; namespace DarkUI.Controls { public class DarkDropdownList : Control { #region Event Region ...
30.612705
138
0.508133
[ "MIT" ]
ActuallyaDeviloper/DarkUI
DarkUI/Controls/DarkDropdownList.cs
14,941
C#
namespace EShopOnAbp.BasketService.Entities; public class BasketItem { public Guid ProductId { get; private set; } public int Count { get; internal set; } private BasketItem() { } public BasketItem(Guid productId, int count = 1) { ProductId = productId; Count = c...
18.5
52
0.612613
[ "MIT" ]
271943794/eShopOnAbp
services/basket/src/EShopOnAbp.BasketService/Entities/BasketItem.cs
335
C#
namespace UtttApi.ObjectModel.Enums { public enum MarkType { EMPTY, PLAYER1, PLAYER2, DRAW } }
24.5
58
0.744898
[ "MIT" ]
Ian-Gilbert/UTTT-SVC
aspnet/UtttApi.ObjectModel/Enums/MarkType.cs
98
C#
#region Apache License Version 2.0 /*---------------------------------------------------------------- Copyright 2019 Suzhou Senparc Network Technology Co.,Ltd. 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...
31.376712
106
0.547915
[ "Apache-2.0" ]
HelloDBA/Senparc.CO2NET
src/Senparc.CO2NET.Cache.Redis/StackExchange.Redis/RedisManager.cs
5,043
C#
using System; using WebAssembly; namespace WebAssembly.Browser.DOM { [Export("HTMLTableCellElement", typeof(JSObject))] public class HTMLTableCellElement : HTMLElement { internal HTMLTableCellElement(JSObject handle) : base(handle) { } //public HTMLTableCellElement() { } [Export...
52.777778
118
0.614316
[ "MIT" ]
kjpou1/wasm-dom
WebAssembly.Browser/DOM/HTMLTableCellElement.cs
2,377
C#
using System; using System.Collections.Generic; using UnityEngine; using UnityEngine.Assertions; namespace Grove.Variables { public delegate void Callback(); public interface IObservable { bool IsChanging(); void Subscribe(Callback callback); void Unsubscribe(Callback callback); } public class Observable...
17.298969
83
0.640644
[ "MIT" ]
edohe/grove
Assets/Grove/Runtime/Common/Observable.cs
1,680
C#
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; namespace ExceptionMiddleware.Extensions; public class NotImplementedObjectResult : ObjectResult { public NotImplementedObjectResult(object value) : base(value) { this.StatusCode = StatusCodes.Status501NotImplemented; } }
23.769231
65
0.783172
[ "MIT" ]
LarsBehl/exceptionMiddleware
Extensions/NotImplementedObjectResult.cs
309
C#
using System; using System.Collections.Generic; using System.Text; namespace LionFire.Assets { public static class HAssetExtensions { public static HAsset<AssetType> ToHAsset<AssetType>(this string assetTypePath) where AssetType : class => new HAsset<AssetType>(assetTypePath); ...
23.428571
86
0.695122
[ "MIT" ]
LionFire/Core
src/LionFire.Assets.Old/Handles/HAssetExtensions.cs
330
C#
using System; using System.Collections; using System.Collections.Generic; namespace Metaheuristics { public abstract class DiscreteMA { public int PopulationSize { get; protected set; } public int[] LowerBounds { get; protected set; } public int[] UpperBounds { get; protected set; } public bool RepairEnabled...
35.615385
127
0.651692
[ "MIT" ]
yasserglez/metaheuristics
Common/DiscreteMA.cs
6,945
C#
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // This code is distributed under MIT X11 license (for details please see \doc\license.txt) using System; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.IO; usin...
30.014378
157
0.721271
[ "MIT" ]
0xb1dd1e/ILSpy
NRefactory.VB/ICSharpCode.NRefactory.VB/OutputVisitor/OutputVisitor.cs
79,330
C#
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using System.Net.Security; using System.Security.Cryptography.X509Certificates; using System.Text; using System.Threading.Tasks; namespace Celia.io.Core.MicroServices.Utilities.Webs.Clients { /// <summary> ...
30.641326
136
0.513646
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
keith-leung/celia.utilities
Celia.io.Core.MicroServices.Utilities/Webs/Clients/HttpRequestBase.cs
16,511
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...
32.314286
127
0.648099
[ "Apache-2.0" ]
polivbr/pulumi-azure-native
sdk/dotnet/Storage/V20160501/Inputs/CustomDomainArgs.cs
1,131
C#
namespace Machete.X12Schema.V5010 { using X12; public interface W10 : X12Segment { Value<string> UnitLoadOptionCode { get; } Value<int> QuantityOfPalletsShipped { get; } Value<string> PalletExchangeCode { get; } Value<string> SealNumber1 {...
23.444444
60
0.557662
[ "Apache-2.0" ]
ahives/Machete
src/Machete.X12Schema/V5010/Segments/W10.cs
633
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("Pr...
39.27027
84
0.748107
[ "MIT" ]
Supbads/Softuni-Education
01. AdvancedCSharp 09.15/Homework 1 Arrays,Lists,Stacks,Queues/Problem 2.Sort ArrayUsing Selection Sort/Properties/AssemblyInfo.cs
1,456
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.046512
90
0.594153
[ "Apache-2.0" ]
pulumi-bot/pulumi-azure-native
sdk/dotnet/Network/V20190201/Outputs/ExpressRouteCircuitSkuResponse.cs
1,163
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("14...
38.297297
84
0.747354
[ "MIT" ]
adachenski/CSharpPart2-Homeworks
Homework-Methods/14.IntegerCalculations/Properties/AssemblyInfo.cs
1,420
C#
using DotNetNuke.Entities.Modules; using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using Telerik.Web.UI; namespace BankProject.Views.TellerApplication { public partial class CashWithdrawalPreviewList : PortalModu...
27.571429
132
0.67228
[ "Apache-2.0", "BSD-3-Clause" ]
nguyenppt/biscorebanksys
DesktopModules/TrainingCoreBanking/BankProject/Views/TellerApplication/CashWithdrawalPreviewList.ascx.cs
774
C#
/* MIT License Copyright (c) 2017 Lewis Johnson Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish...
39.959596
110
0.653943
[ "MIT" ]
Chapmania/unity-ui-examples
Assets/ScreenSpace/Offset/Scripts/OffestUI.cs
3,958
C#
/* * Copyright (c) 2003-2006, University of Maryland * 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, th...
36.905983
122
0.718157
[ "Unlicense" ]
mro/piccolo2d.net
Samples/Piccolo Features/Source/PositionPathActivityExample.cs
4,318
C#
using System; namespace Database.GraphQl { public record FileMetaInformationInput( string[] Path, Guid DataFormatId ); }
16.555556
43
0.651007
[ "MIT" ]
building-envelope-data/database
backend/src/GraphQl/FileMetaInformationInput.cs
149
C#
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Runtime.Serialization; using FubuCore.Logging; using FubuCore.Util; using FubuTransportation.Runtime; using FubuTransportation.Runtime.Delayed; using LightningQueues; using LightningQueues.Model; namespace Fub...
36.722628
193
0.599284
[ "Apache-2.0" ]
DarthFubuMVC/FubuTransportation
src/FubuTransportation.LightningQueues/PersistentQueues.cs
5,031
C#
namespace Lavalink4NET.Tests { using System; using Lavalink4NET.MemoryCache; using Xunit; /// <summary> /// Contains tests for the <see cref="LavalinkCache"/> class. /// </summary> public class MemoryCacheTests { /// <summary> /// Tests the memory cache. ...
27.258065
101
0.512426
[ "MIT" ]
Erwin-J/Lavalink4NET
src/Lavalink4NET.Tests/MemoryCacheTests.cs
847
C#
/* JustMock Lite Copyright © 2010-2015 Progress Software Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by...
44.350195
320
0.685822
[ "Apache-2.0" ]
telerik/JustMockLite
Telerik.JustMock.Tests/Coverage/DoInsteadFixture.cs
11,401
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> //---...
31.927273
103
0.578018
[ "Unlicense" ]
ExpLife0011/WindowsRpcClients
Win10_20H1/appvshnotify.exe/7f89f606-468e-4ee4-b1f3-73b68767b0e1_1.0.cs
1,756
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace OctoAwesome.Threading { public class CountedScopeSemaphore : IDisposable { private readonly ManualResetEventSlim superLock; private readonly Man...
30.886364
118
0.559725
[ "MIT" ]
OctoAwesome/octoawesome
OctoAwesome/OctoAwesome/Threading/CountedScopeSemaphore.cs
4,079
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ResultType { public class AttemptedToUnwrapUncheckedResultException : Exception { } }
17.384615
70
0.774336
[ "MIT" ]
Winwardo/ResultType
ResultType/Exceptions/AttemptedToUnwrapUncheckedResultException.cs
228
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...
41.824561
463
0.768876
[ "MIT" ]
Acidburn0zzz/CodeContracts
Microsoft.Research/Contracts/System.Core/Sources/Microsoft.Win32.SafeHandles.SafeNCryptHandle.cs
2,384
C#
// Copyright © 2018, Meta Company. All rights reserved. // // Redistribution and use of this software (the "Software") in binary form, without modification, is // permitted provided that the following conditions are met: // // 1. Redistributions of the unmodified Software in binary form must reproduce the ab...
45.878788
221
0.665621
[ "MIT" ]
JDZ-3/MXRManipulation
Assets/MetaSDK/Meta/Reconstruction/Scripts/Selection/DefaultEnvironmentProfileSelector.cs
6,073
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ShellAction { public interface IShell { bool CanHandle(string[] args); bool ExecuteAction(string[] args); string ShowUsage(); } }
16.444444
42
0.679054
[ "MIT" ]
raffaeler/InteropExperiments
WindowsAPISolution/ShellAction/IShell.cs
298
C#
// Copyright 2017 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable la...
36.596154
126
0.676826
[ "Apache-2.0" ]
FrancisChung/steeltoe
src/Management/src/EndpointCore/Hypermedia/EndpointServiceCollectionExtensions.cs
1,905
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...
39.339623
174
0.692566
[ "Apache-2.0" ]
samritchie/aws-sdk-net
AWSSDK_DotNet35/Amazon.CodeDeploy/Model/InvalidAutoScalingGroupException.cs
2,085
C#
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team // // Permission is hereby granted, free of charge, to any person obtaining a copy of this // software and associated documentation files (the "Software"), to deal in the Software // without restriction, including without limitation the rights to use, copy, m...
21.081395
93
0.681008
[ "MIT" ]
zer0Kerbal/ILSpy
ICSharpCode.Decompiler.Tests/TestCases/Pretty/Async.cs
5,441
C#
using System.Runtime.Serialization; namespace VkNet.Model { using Utils; /// <summary> /// Объект для перечисления пользователей, которые выбрали определенные варианты ответа в опросе. /// </summary> [DataContract] public class PollAnswerVoters { /// <summary> /// Идентифи...
30.482759
101
0.522059
[ "MIT" ]
uid17/VK
VkNet/Model/PollAnswerVoters.cs
1,980
C#
using System.Runtime.Serialization; namespace EncompassRest.Loans.Enums { /// <summary> /// HelocTADailyBalanceType /// </summary> public enum HelocTADailyBalanceType { /// <summary> /// daily balance (including current transactions) /// </summary> [EnumMember(Value ...
38.451613
86
0.650168
[ "MIT" ]
EncompassRest/EncompassREST
src/EncompassRest/Loans/Enums/HelocTADailyBalanceType.cs
1,192
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging;...
22.034483
44
0.71518
[ "MIT" ]
lsmierzchalski/Projekt-TIIK
Project-TIIK-WPF/Project-TIIK-WPF/Pages/AboutPage.xaml.cs
641
C#
using System; using System.Diagnostics; using System.Linq; using System.Reflection; using FarseerPhysics.Common; using FarseerPhysics.Dynamics; using FarseerPhysics.Dynamics.Contacts; using FarseerPhysics.Dynamics.Joints; using FarseerPhysics.Factories; using log4net; using Microsoft.Xna.Framework; using SFML.Graphics...
29.993182
87
0.614761
[ "MIT" ]
mbcrawfo/genetic-cars
Genetic Cars/Car/Entity.cs
13,199
C#
using CancerRegistry.Models.Accounts.Doctor; using CancerRegistry.Models.Accounts.Patient; using CancerRegistry.Models.Diagnoses; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using CancerRegistry.Identity; using CancerRegistry.Ide...
40.584906
204
0.559391
[ "Apache-2.0" ]
Kroxitrock/cancer-registry
CancerRegistry/CancerRegistry/Services/PatientService.cs
8,621
C#
using System; using System.Windows.Forms; namespace iWay.RemoteControlClient.Common { public partial class InputDialog : Form { public InputDialog() { InitializeComponent(); } public string Title { get { return this.Text; } set { thi...
22.573529
74
0.490554
[ "Apache-2.0" ]
PHPPlay/RemoteControl
RemoteControlClient/Common/InputDialog.cs
1,537
C#
using System; using System.Collections.Generic; using System.Runtime.InteropServices; using ObjCRuntime; using Foundation; using System.Linq; namespace Firebase.Storage { public partial class Storage { static string currentVersion; public static string CurrentVersion { get { if (currentVersion == null) ...
22.16
187
0.716606
[ "MIT" ]
DigitallyImported/GoogleApisForiOSComponents
source/Firebase/Storage/Extension.cs
1,110
C#
using MediatR; using Microsoft.AspNetCore.Mvc; using shockz.msa.ordering.application.Features.Orders.Commands.CheckoutOrder; using shockz.msa.ordering.application.Features.Orders.Commands.DeleteOrder; using shockz.msa.ordering.application.Features.Orders.Commands.UpdateOrder; using shockz.msa.ordering.application.Feat...
32.369231
101
0.731464
[ "MIT" ]
shockzinfinity/shockz.msa
src/services/ordering/shockz.msa.ordering.api/Controllers/OrderController.cs
2,106
C#
#region License // // MIT License // // CoiniumServ - Crypto Currency Mining Pool Server Software // Copyright (C) 2013 - 2017, CoiniumServ Project // Hüseyin Uslu, shalafiraistlin at gmail dot com // https://github.com/bonesoul/CoiniumServ // // Permission is hereby granted, free of charge, ...
32.470588
85
0.627536
[ "MIT" ]
1Blackdiamondsc/CoiniumServ
src/CoiniumServ/Utils/Commands/CommandAttributes.cs
2,763
C#
using System; using System.Threading.Tasks; using Microsoft.AspNet.SignalR; using Microsoft.Owin; using Microsoft.Owin.Cors; using Owin; [assembly: OwinStartup(typeof(Danmaku.Startup))] namespace Danmaku { public class Startup { public void Configuration(IAppBuilder app) { // 有关如何...
36.575
84
0.570745
[ "MIT" ]
yiyungent/demos
Danmaku/Danmaku/Danmaku/Danmaku/Startup.cs
1,503
C#
using System; using System.Collections.Generic; using System.Linq; using Kinetix.Search.ComponentModel; using Kinetix.Search.Contract; using Kinetix.Search.Elastic.Faceting; using Kinetix.Search.MetaModel; using Kinetix.Search.Model; using log4net; using Nest; namespace Kinetix.Search.Elastic { /// ...
40.726428
186
0.502103
[ "Apache-2.0" ]
KleeGroup/kinetix
Kinetix/Kinetix.Search/Elastic/ElasticStore.cs
30,795
C#
#region "copyright" /* Copyright © 2016 - 2021 Stefan Berg <isbeorn86+NINA@googlemail.com> and the N.I.N.A. contributors This file is part of N.I.N.A. - Nighttime Imaging 'N' Astronomy. This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not d...
32.630435
101
0.616922
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
USA-RedDragon/nina
NINA.MGEN/Commands/AppMode/AutoGuidingCommands/StartCalibrationCommand.cs
1,502
C#
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using Its.Log.Instrumentation; namespace Sample.Domain.Projections { public class OrderTally { static OrderTally() { Formatter<Ord...
21.586207
101
0.578275
[ "MIT" ]
gitter-badger/Its.Cqrs
Sample.Domain/Projections/OrderTally.cs
626
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using GovUk.Frontend.AspNetCore.TagHelpers; using Microsoft.AspNetCore.Html; using Microsoft.AspNetCore.Razor.TagHelpers; using Xunit; namespace GovUk.Frontend.AspNetCore.Tests.TagHelpers { public class AccordionTagHe...
41.716707
143
0.54861
[ "MIT" ]
gunndabad/govuk-frontend-aspnetcore
test/GovUk.Frontend.AspNetCore.Tests/TagHelpers/AccordionTagHelperTests.cs
17,231
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...
29.189655
104
0.641465
[ "Apache-2.0" ]
TallyUpTeam/aws-sdk-net
sdk/src/Services/EC2/Generated/Model/ElasticInferenceAccelerator.cs
1,693
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; using Microsoft.EntityFrameworkCore; using MyBudget.DAL; namespace MyBudget.WebUI.Pages.LoanType { public class IndexModel : PageModel { ...
23.724138
63
0.6875
[ "MIT" ]
aesalmela/personal-budget
MyBudget.WebUI/Pages/LoanType/Index.cshtml.cs
690
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace CleanArchitecture.Blazor.Domain.Entities; public class DocumentType : AuditableEntity { public int Id { get; set; } public string? Name { get; set; } public st...
29.5
71
0.725989
[ "Apache-2.0" ]
JustCallMeAD/CleanArchitectureWithBlazorServer
src/Domain/Entities/DocumentType.cs
354
C#
using System.Collections.Generic; using System.IO; using System.Linq; using Xunit; using Pave.Compiler.Build; namespace Pave.Compiler.Tests; public class PaveTest { [Theory, MemberData(nameof(GetFiles), "Files/Successful")] public void TestParser(string directory) { var manager = new BuildManager(...
25.84
83
0.695046
[ "MIT" ]
Pave-lang/Pave
Test/src/PaveTest.cs
646
C#
namespace TestApp.Client.Integration.Tests.Infrastructure { using Microsoft.Extensions.DependencyInjection; using System; [NotTest] public class ClientHostBuilder { /// <summary> /// Gets the service collection. /// </summary> public IServiceCollection Services { get; } public ClientHost...
25.076923
81
0.68865
[ "Unlicense" ]
GillCleeren/blazor-state
Tests/Client.Integration.Tests/Infrastructure/ClientHostBuilder.cs
652
C#
using System; using System.Threading.Tasks; using Microsoft.AspNetCore.Authentication.Cookies; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Identity; using Microsoft.Extensions.Options; namespace Globomantics.Core.Authorization { public class CustomPolicyProvider : IAuthorizationPolicyProv...
34.315789
124
0.645194
[ "MIT" ]
vicluar/docker-k8s-fundamentals
Globomantics.Core/Authorization/CustomPolicyProvider.cs
1,958
C#
using Xunit; using ProtoBuf.Meta; namespace ProtoBuf.unittest.Meta { public class Interfaces { public class SomeClass { public ISomeInterface SomeProperty { get; set; } } public interface ISomeInterface { int Foo { get; set; } } ...
26.914894
109
0.535178
[ "Apache-2.0" ]
ASuurkuusk/protobuf-net
src/protobuf-net.Test/Meta/Interfaces.cs
1,267
C#
using osu.Framework.Allocation; using osu.Framework.Graphics; using osu.Framework.Graphics.Shapes; using osu.Framework.Input.Events; using osuTK; using osuTK.Graphics; using osuTK.Input; namespace TCC.Installer.Game.Components.UI.Containers { public partial class TCCScrollContainer { protected class T...
30.111111
99
0.505904
[ "MIT" ]
Coppertine/TCC.Installer
TCC.Installer.Game/Components/UI/Containers/TCCScrollbar.cs
2,712
C#
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------ namespace Microsoft.Azure.Cosmos.Encryption { using System; using System.Diagnostics; using System.IO; using Syste...
39.901235
182
0.598185
[ "MIT" ]
Camios/azure-cosmos-dotnet-v3
Microsoft.Azure.Cosmos.Encryption/src/EncryptionProcessor.cs
9,698
C#
// The MIT License (MIT) // // Copyright (c) Andrew Armstrong/FacticiusVir & xuri 2021 // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitatio...
36.77193
81
0.67271
[ "MIT" ]
xuri02/SharpVk
src/SharpVk/Interop/NVidia/DedicatedAllocationMemoryAllocateInfo.gen.cs
2,096
C#
using System; using System.Runtime.CompilerServices; using Svelto.Common; namespace Svelto.ECS.DataStructures { public struct NativeDynamicArrayCast<T>:IDisposable where T : struct { public NativeDynamicArrayCast(uint size, Allocator allocator) { _array = NativeDynamicArray.Alloc<T...
32.756098
92
0.625838
[ "MIT" ]
cathei/Svelto.ECS
com.sebaslab.svelto.ecs/DataStructures/Unmanaged/NativeDynamicArrayCast.cs
2,688
C#
using System; namespace Elders.Skynet.Core { public static class MessageFactory { public static object ToPublishedMessage(this IMessage message, IMessageContext sender) { var genericType = typeof(Message<>); var messageType = message.GetType(); var type = ge...
27.814815
94
0.603196
[ "Apache-2.0" ]
Elders/Skynet
src/Elders.Skynet.Core/Message.cs
753
C#
using Microsoft.AspNetCore.Mvc; using Storm.Api.Swaggers.Attributes; namespace Storm.Api.Sample.Controllers; [ApiController] [Route("[controller]")] public class WeatherForecastController : ControllerBase { private static readonly string[] Summaries = new[] {"Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", ...
35.177419
188
0.717561
[ "MIT" ]
Julien-Mialon/Storm.Api
sample/Storm.Api.Sample/Controllers/WeatherForecastController.cs
2,183
C#
using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.HttpsPolicy; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.SpaServices.ReactDevelopmentServer; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensi...
32.661765
143
0.590725
[ "MIT" ]
tympaniplayer/SpaceTrader.Net
src/SpaceTrader.Net.Web/Startup.cs
2,221
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("An...
37.413793
84
0.748387
[ "MIT" ]
zbigniewmarszolik/AnnoyingEmailsDES
AnnoyingEmailsDES/AnnoyingEmailsDES.Client.Installer/Properties/AssemblyInfo.cs
1,088
C#
using System; using System.Threading.Tasks; using AowCore.Application; using AowCore.AppWeb.Helpers; using AowCore.AppWeb.ViewModels; using AowCore.Domain; using Microsoft.AspNetCore.Mvc; namespace AowCore.AppWeb.Areas.MyBooks.Controllers { [Area("MyBooks")] public class DashBoardController : Controller {...
33.567568
137
0.599839
[ "Apache-2.0" ]
dpk2789/aowmvc
AowCore.AppWeb/Areas/MyBooks/Controllers/DashBoardController.cs
2,486
C#
namespace Crikkit__Minecraft_Server_CP_ { partial class NewServer { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summar...
48.623596
232
0.594801
[ "Apache-2.0" ]
WiseHollow/Crikkit-Minecraft-Server-CP-
Crikkit (Minecraft Server CP)/NewServer.Designer.cs
8,657
C#
using System; using System.Windows.Forms; using SkypeAssistant.App.Properties; using SkypeAssistant.Client.Interfaces; using TinyIoC; namespace SkypeAssistant.App { class Program { static void Main(string[] args) { var container = TinyIoCContainer.Current; IoC.Configure...
31.443299
79
0.482295
[ "MIT" ]
josh-leeming/SkypeAssistant
SkypeAssistant.App/Program.cs
3,052
C#
// Copyright (c) Microsoft Corporation. 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.Linq; using System.Runtime.Versioning; using System.Threading.Tasks; using Microsoft.Extension...
50.111111
305
0.770025
[ "MIT" ]
Wivra/vstest
test/vstest.console.UnitTests/Processors/ListTestsArgumentProcessorTests.cs
14,432
C#
// <copyright file="IInvalidDummyFieldObject.cs" company="Datadog"> // Unless explicitly stated otherwise all files in this repository are licensed under the Apache 2 License. // This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2017 Datadog, Inc. // </copyright> namespace Da...
36.714286
113
0.745136
[ "Apache-2.0" ]
DataDog/dd-trace-csharp
tracer/test/Datadog.Trace.DuckTyping.Tests/Errors/Fields/TypeChaining/ProxiesDefinitions/IInvalidDummyFieldObject.cs
516
C#
// ReSharper disable All using System; using System.Collections.Generic; using System.Dynamic; using System.Linq; using MixERP.Net.Schemas.Core.Data; using MixERP.Net.EntityParser; using PetaPoco; using CustomField = PetaPoco.CustomField; namespace MixERP.Net.Api.Core.Fakes { public class ShipperScrudViewRepositor...
30.537313
130
0.656403
[ "MPL-2.0" ]
asine/mixerp
src/Libraries/Web API/Core/Fakes/ShipperScrudViewRepository.cs
2,046
C#
using System; using System.Collections.Generic; using System.Text; namespace TodoViewModel { public class TodoItemForUpdateViewModel { public string Name { get; set; } public bool IsComplete { get; set; } } }
18.384615
44
0.677824
[ "Apache-2.0" ]
bozhiqian/ASP.NET-Core-Auth
TodoWithIdentityServer/TodoViewModel/TodoItemForUpdateViewModel.cs
241
C#
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for details. using System; using System.Diagnostics; using System.ComponentModel; using System.Globalization; using System.Threading; using System.Windows.Forms; using OpenLiveWriter.Controls;...
34.670635
209
0.556141
[ "MIT" ]
DNSNets/OpenLiveWriter
src/managed/OpenLiveWriter.PostEditor/ContentSources/UrlContentRetreivalWithProgress.cs
8,737
C#
using MockHttp.Matchers; namespace MockHttp; /// <summary> /// A builder to configure request matchers, accepting all matchers. /// </summary> internal sealed class AnyRequestMatching : RequestMatching { protected internal override void ValidateMatcher(IAsyncHttpRequestMatcher matcher) { // Ignore va...
22.533333
86
0.736686
[ "Apache-2.0" ]
swoog/MockHttp
src/MockHttp/AnyRequestMatching.cs
340
C#
#region Using directives using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Reflection; using System.Text; using System.Xml.Serialization; using NBi.Xml; using NBi.Xml.Items; using NBi.Xml.Settings; using NBi.Xml.Systems; using NUnit.Framework; #endregion namespace NBi.Testing.X...
38.880952
169
0.618902
[ "Apache-2.0" ]
TheAutomatingMrLynch/NBi
NBi.Testing.Xml/Systems/StructureXmlTest.cs
4,901
C#
// Copyright (c) .NET Foundation and Contributors (https://dotnetfoundation.org/ & https://stride3d.net) and Silicon Studio Corp. (https://www.siliconstudio.co.jp) // Distributed under the MIT license. See the LICENSE.md file in the project root for more information. using System; using System.Collections.Generic; us...
30.333333
163
0.720565
[ "MIT" ]
Alan-love/xenko
sources/engine/Stride.Rendering/Rendering/Lights/LightSimpleAmbientKeys.cs
637
C#
using System; using Microsoft.JSInterop; namespace BlazorRedux { public class ReduxOptions<TState> { public ReduxOptions() { // Defaults StateSerializer = state => Json.Serialize(state); StateDeserializer = Json.Deserialize<TState>; } ...
30.4
80
0.606908
[ "Apache-2.0" ]
torhovland/blazor-redux
src/BlazorRedux/ReduxOptions.cs
610
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //-----------------------------------------...
39.571429
166
0.595668
[ "Apache-2.0" ]
CrypToolProject/CrypTool-2
CrypPlugins/BaconCipher/Properties/Ressources.Designer.cs
1,941
C#
using AdvancedSharpAdbClient; using AdvancedSharpAdbClient.DeviceCommands; using Microsoft.Win32; using System; using System.Collections.Generic; using System.Configuration; using System.Data; using System.Diagnostics; using System.IO; using System.Linq; using System.Runtime.InteropServices; using System.Th...
39.697368
142
0.620152
[ "MIT" ]
haozekang/WSATools
WSATools/App.xaml.cs
3,019
C#
using DataCore.Test.Models; using NUnit.Framework; namespace DataCore.Test { [TestFixture] public class QueryTestPagination { [Test] public void CanGeneratePagination() { var query = new Query<TestClass>(new Translator()); query.Paginate(10, 5).Build(); ...
22.35
110
0.610738
[ "MIT" ]
stefanmielke/DataCore
DataCore.Test/QueryTestPagination.cs
449
C#
using System.IO; using System.Collections.Generic; using MyWarez.Base; namespace MyWarez.Payloads { public sealed class PrintConfigTargetPath : ShellcodeCCxxSource, ITargetPathW, IShellcodeCCxxSourceIParameterlessCFunction { private static readonly string ResourceDirectory = Path.Join(Core.Constants.P...
44.384615
176
0.786828
[ "MIT" ]
CreatePhotonW/MyWarez
MyWarez/Payloads/Windows/PrivilegeEscalation/PrintConfigTargetPath.cs
579
C#
using System; using System.Collections.Generic; using System.Collections.ObjectModel; namespace Schlechtums.Core.Common.Extensions { public static class ListExtensions { public static T TryGetIndex<T>(this Collection<T> source, int index, T defaultValue = default(T)) { if...
35.865385
141
0.553887
[ "Unlicense" ]
schlechtums/Schlechtums.Core
src/Schlechtums.Core/Schlechtums.Core/Common/Extensions/ListExtensions.cs
1,867
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/sapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. namespace TerraFX.Interop { publi...
46
145
0.736166
[ "MIT" ]
DaZombieKiller/terrafx.interop.windows
sources/Interop/Windows/um/sapi/SPINTERFERENCE.cs
1,014
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.Collections.Generic; namespace System.Collections.Tests { internal sealed class DelegateEqualityComparer<T> : IEqualityComparer<T>, IEqualityComparer { ...
31.230769
95
0.474384
[ "MIT" ]
belav/runtime
src/libraries/Common/tests/System/Collections/DelegateEqualityComparer.cs
2,030
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; namespace MessageBoard.Controllers { [Route("api/[controller]")] [ApiController] public class ValuesController : ControllerBase { // GET api/values [HttpGet] ...
19.543478
53
0.580645
[ "MIT" ]
TJEverett/Message_Board_API
MessageBoard/Controllers/ValuesController.cs
901
C#
using System; using System.Collections.Generic; namespace APIServer.Domain.Core.Models.WebHooks { public class WebHook { public WebHook() { this.Headers = new HashSet<WebHookHeader>(); this.HookEvents = new HookEventType[0]; this.Records = new List<WebHookRe...
23.897059
71
0.512615
[ "MIT" ]
MaxymGorn/trouble-training
Src/APIServer/Domain/Enity/Hooks/DB_WebHooks/WebHook.cs
1,625
C#
// Copyright (c) 2007, Clarius Consulting, Manas Technology Solutions, InSTEDD, and Contributors. // All rights reserved. Licensed under the BSD 3-Clause License; see License.txt. using System; using System.Text.RegularExpressions; using System.Threading.Tasks; using Moq; using Moq.Protected; using Xunit; namespace...
29.165456
199
0.675815
[ "BSD-3-Clause" ]
FTWinston/moq4
tests/Moq.Tests/VerifyFixture.cs
52,177
C#
namespace More.Windows.Data { using System; using System.Windows; using System.Windows.Controls; /// <summary> /// Represents the metadata used to locate a resource-based data template. /// </summary> /// <remarks>The resource specified must be in the current <see cref="Application"/>.</re...
69.616667
175
0.67752
[ "MIT" ]
JTOne123/More
src/More.UI.Presentation/Platforms/net45/More/Windows.Data/DataGridTemplateColumnAttribute.cs
4,179
C#
using Microsoft.Extensions.Logging; using PnP.Core.Model; using PnP.Core.Services.Core.CSOM; using PnP.Core.Services.Core.CSOM.Requests; using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Linq; using System.Net; usin...
46.01452
228
0.488067
[ "MIT" ]
joselu1sc/pnpcore
src/sdk/PnP.Core/Services/Core/BatchClient.cs
120,422
C#
using System; using System.Collections.Generic; using System.Text; namespace Mozilla.UniversalCharacterDetection.Prober.Sequence { public class Win1251Model : CyrillicModel { public Win1251Model() : base(win1251CharToOrderMap, Constants.CHARSET_WINDOWS_1251) { } private stati...
47.857143
91
0.574925
[ "MIT" ]
XavierCai1996/L4D2ModManager
SourceCode/L4D2ModManager/Fork/UniversalCharacterDetection/Prober/Sequence/Win1251Model.cs
1,677
C#
// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace silica { using Microsoft.Rest; using Models; using System.Collections; using System.Collections.Generic; using System.Thread...
36.295455
202
0.611146
[ "MIT" ]
APEEYEDOTCOM/hapi-bells
public/sdks/csharp/IGetSystemApi.cs
1,597
C#