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 Ultraviolet.Presentation.Animations; namespace Ultraviolet.Presentation.Styles { /// <summary> /// Represents an Ultraviolet Style Sheet document's representation of a storyboard animation. /// </summary> public sealed class UvssStoryboard { /// <summary> /// In...
30.481481
111
0.589915
[ "Apache-2.0", "MIT" ]
MicroWorldwide/ultraviolet
Source/Ultraviolet.Presentation/Shared/Styles/UvssStoryboard.cs
1,648
C#
namespace SFundR.SharedKernel.Interfaces; // Apply this marker interface only to aggregate root entities // Repositories will only work with aggregate roots, not their children public interface IAggregateRoot { }
26.875
71
0.813953
[ "MIT" ]
plipowczan/SFundR
src/SFundR.SharedKernel/Interfaces/IAggregateRoot.cs
217
C#
namespace CarPartsManager.App.Base { using System.Windows.Forms; public interface IValidationRule { string ErrorMessage { get; } bool Validate(Control control); } }
16.666667
39
0.655
[ "MIT" ]
andre197/CarPartsManager
CarPartsManager/CarPartsManager.App/Base/IValidationRule.cs
202
C#
#nullable enable using System.Threading.Tasks; using Content.Server.NodeContainer; using Content.Server.NodeContainer.Nodes; using Content.Server.Power.Components; using Content.Server.Power.EntitySystems; using Content.Server.Power.Nodes; using Content.Shared.Coordinates; using NUnit.Framework; using Robust.Shared.Gam...
41.274725
122
0.592652
[ "MIT" ]
Alainx277/space-station-14
Content.IntegrationTests/Tests/Power/PowerTest.cs
41,316
C#
using EventAggregator.Interfaces; using System; using System.ComponentModel; using System.Runtime.CompilerServices; using System.Threading; using System.Windows; using System.Windows.Controls; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Threading; ...
33.068468
152
0.543344
[ "MIT" ]
Architect0711/WPF.Dashboard
WPF.DashboardStarter/Dashboard/Dashboard.xaml.cs
18,355
C#
using System; using System.IO; using System.Text; using ProtoBuf.Meta; namespace ProtoBuf { /// <summary> /// <para>Represents an output stream for writing protobuf data.</para> /// <para> /// Why is the API backwards (static methods with writer arguments)? /// See: http://marcgravell.b...
43.707364
187
0.555203
[ "Apache-2.0" ]
James-xin/protobuf-net
src/protobuf-net/ProtoWriter.cs
45,108
C#
using ASOPC.Application.Features.Components.Commands.Create; using ASOPC.Application.Features.Components.Commands.Delete; using ASOPC.Application.Features.Components.Commands.Update; using ASOPC.Application.Features.Components.Queries; using ASOPC.Application.Features.Components.Queries.Get; using ASOPC.Application.Fe...
39.150943
114
0.695904
[ "MIT" ]
FectourSu/ASCOPC
src/ASCOPC/Server/Controllers/ComponentController.cs
2,077
C#
// // Unit tests for AvoidDeclaringCustomDelegatesRule // // Authors: // Sebastien Pouliot <sebastien@ximian.com> // // Copyright (C) 2010 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 //...
35.623077
107
0.740877
[ "MIT" ]
JAD-SVK/Gendarme
rules/Gendarme.Rules.Design.Generic/Test/AvoidDeclaringCustomDelegatesTest.cs
4,631
C#
using System; using System.Collections.Generic; using System.Configuration; using System.Data.SqlClient; using System.Linq; using System.Security.Cryptography; using System.Text; using System.Web; namespace PlayLibrary { public class User_DAL { SqlConnection sqlConn; string connStr = Configura...
29.666667
110
0.450483
[ "MIT" ]
Shaw6157/PlayLibrary
PlayLibrary/User_DAL.cs
3,829
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...
31.568421
191
0.608536
[ "Apache-2.0" ]
EbstaLimited/aws-sdk-net
sdk/src/Services/IoT/Generated/Model/DetachPrincipalPolicyRequest.cs
2,999
C#
#pragma warning disable 108 // new keyword hiding #pragma warning disable 114 // new keyword hiding namespace Windows.Foundation.Collections { #if false || false || false || false || false || false || false #if false || false || false || false || false || false || false [global::Uno.NotImplemented] #endif public ...
41.277778
97
0.77389
[ "Apache-2.0" ]
Abhishek-Sharma-Msft/uno
src/Uno.Foundation/Generated/2.0.0.0/Windows.Foundation.Collections/CollectionChange.cs
743
C#
using Nixxis.Client.Controls; using Nixxis.ClientV2; using System; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.ComponentModel; using System.Linq; using System.Reflection; using System.Text; using System.Windows; using System.Windows.Controls; using Sys...
32.915441
145
0.553669
[ "MIT" ]
Nixxis/ncs-client
NixxisSupControls/DashboardWidgetDataSourceDialog.xaml.cs
8,955
C#
namespace Dynatrace.Net.Environment.Deployment.Models { public enum OneAgentInstallerTypes { Default, DefaultUnattended, Paas, PaasSh } }
14.545455
55
0.7125
[ "MIT" ]
lvermeulen/Dynatrace.Net
src/Dynatrace.Net/Environment/Deployment/Models/OneAgentInstallerTypes.cs
162
C#
namespace SharpPdb.Windows.TypeRecords { /// <summary> /// Represents CV_ptrtype_e. /// </summary> public enum PointerKind : byte { /// <summary> /// 16 bit pointer /// </summary> Near16 = 0x00, /// <summary> /// 16:16 far pointer /// </summa...
20.594595
44
0.43832
[ "MIT" ]
codehz/SharpPdb
Source/Windows/TypeRecords/PointerKind.cs
1,526
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.3125
170
0.611472
[ "MIT" ]
raidengates/raiden_send_mail
Properties/VN.Designer.cs
2,774
C#
using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; #nullable enable // The User Control item template is documented at https://go.microsoft.com/fwlink/?LinkId=234236 namespace PrivateWiki.UWP.UI.UI.Controls { public sealed partial class SettingsHeader : UserControl { public SettingsHeader() { this.Init...
28.014925
154
0.742142
[ "MIT" ]
lampenlampen/PrivateWiki
PrivateWiki.UWP.UI/UI/Controls/SettingsHeader.xaml.cs
1,879
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 SceneSkope.PowerBI { using Microsoft.Rest; using Models; using System.Collections; using System.Collecti...
47.188406
309
0.624283
[ "MIT" ]
sceneskope/powerbi
SceneSkope.PowerBI/IImports.cs
9,768
C#
using System; using Android.Content; using AndroidX.RecyclerView.Widget; namespace Xamarin.Forms.Platform.Android.CollectionView { public class CarouselViewAdapter<TItemsView, TItemsViewSource> : ItemsViewAdapter<TItemsView, TItemsViewSource> where TItemsView : ItemsView where TItemsViewSource : IItemsViewSource...
33.186047
176
0.762439
[ "MIT" ]
BenLampson/maui
src/Platform.Renderers/src/Xamarin.Forms.Platform.Android/CollectionView/CarouselViewAdapter.cs
1,429
C#
// <auto-generated /> using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using PS.Web.API.Data; namespace PS.Web.API.Migrations { [DbContext(typeof(Polysen...
33.403162
83
0.428884
[ "Apache-2.0" ]
Unskilledcrab/Polysense
PS.Web.API/Migrations/PolysenseContextModelSnapshot.cs
16,904
C#
namespace KoheiUtils { using System; using UnityEngine; #if ODIN_INSPECTOR using Sirenix.OdinInspector; #endif public class PoolElement : MonoBehaviour { public bool isRent { get; private set; } // Object Pool で使用される. private Action<PoolElement> onReturn; public ...
18.26087
55
0.52381
[ "MIT" ]
akagik/KoheiUtils
Runtime/Utils/PoolElement.cs
854
C#
using Avalonia; using Avalonia.Controls; using Avalonia.Diagnostics; using AvalonStudio.Commands; using AvalonStudio.Extensibility; using AvalonStudio.Shell; using ReactiveUI; using System; using System.Composition; using System.IO; using System.Linq; using System.Reactive.Linq; using WalletWasabi.Gui.Tabs; namespace ...
27.613924
118
0.702269
[ "MIT" ]
SeppPenner/WalletWasabi
WalletWasabi.Gui/Shell/Commands/HelpCommands.cs
4,363
C#
namespace GTVariable { [System.Serializable] public class ReadOnlyBoolVariable : ReadOnlyVariable<BoolVariable, bool> { public ReadOnlyBoolVariable(BoolVariable variable) : base(variable) { } } }
22.454545
77
0.639676
[ "MIT" ]
GhooTS/GTScriptableVariable
Runtime/Variables/Vars/ReadOnly/ReadOnlyBoolVariable.cs
249
C#
using System.Collections.Generic; using System.Linq; using System.Text; using Noobot.Core.MessagingPipeline.Middleware.ValidHandles; using Noobot.Core.MessagingPipeline.Request; using Noobot.Core.MessagingPipeline.Response; namespace Noobot.Core.MessagingPipeline.Middleware.StandardMiddleware { internal class Hel...
35.061224
122
0.612922
[ "MIT" ]
Julian-mostert/noobot
src/Noobot.Core/MessagingPipeline/Middleware/StandardMiddleware/HelpMiddleware.cs
1,720
C#
/* * Copyright (c) 2017-2018 Håkan Edling * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file for details. * * http://github.com/piranhacms/piranha * */ using System; using System.Collections.Generic; namespace Piranha.Data { public sealed class ...
25.914894
64
0.513547
[ "MIT" ]
CMSCollection/piranha.core
core/Piranha/Data/Media.cs
2,437
C#
namespace HPSocket.Udp { public class UdpArqClient : UdpClient, IUdpArqClient { public UdpArqClient() : base(Sdk.Udp.Create_HP_UdpArqClientListener, Sdk.Udp.Create_HP_UdpArqClient, Sdk.Udp.Destroy_HP_UdpArqClient, Sdk.Udp.Destroy_HP_UdpArqClie...
33.796117
235
0.61218
[ "Apache-2.0" ]
Gao996/HPSocket.Net
src/HPSocket.Net/Udp/UdpArqClient.cs
3,483
C#
namespace Xpand.Extensions.ObjectExtensions{ public static partial class ObjectExtensions{ public static bool IsDefaultValue<TSource>(this TSource source){ var def = default(TSource); return def != null ? def.Equals(source) : source == null; } } }
32.5
66
0.738462
[ "Apache-2.0" ]
mbogaerts/DevExpress.XAF
src/Extensions/Xpand.Extensions/ObjectExtensions/IsDefaultValue.cs
262
C#
// Copyright (C) 2014 Xtensive LLC. // All rights reserved. // For conditions of distribution and use, see license. // Created by: Alena Mikshina // Created: 2014.05.06 using System; using Xtensive.Core; namespace Xtensive.Sql.Dml { [Serializable] public sealed class SqlCustomFunctionType : IEquat...
23.1875
92
0.634097
[ "MIT" ]
SergeiPavlov/dataobjects-net
DataObjects/Sql/Dml/SqlCustomFunctionType.cs
1,486
C#
using Microsoft.AspNetCore.Components; namespace Leeax.Web.Components { public interface IContext { void AddChild(ComponentBase component); void RemoveChild(ComponentBase component); } }
19.727273
50
0.714286
[ "Apache-2.0" ]
Ieeax/web
src/Leeax.Web.Components/IContext.cs
219
C#
using J2N; using J2N.Text; namespace ICU4N.Impl.Coll { /// <summary> /// UTF-16 collation element and character iterator. /// Handles normalized UTF-16 text, with length or NUL-terminated. /// Unnormalized text is handled by a subclass. /// </summary> public class UTF16CollationIterator : Coll...
27.481013
101
0.452096
[ "Apache-2.0" ]
NightOwl888/ICU4N
src/ICU4N.Collation/Impl/Coll/UTF16CollationIterator.cs
4,344
C#
using System; using UnityEditor; using UnityEditor.Tilemaps; using UnityEngine; using Object = UnityEngine.Object; namespace Buriola.Utilities.Editor.Brushes { /// <summary> /// Helper class to paint prefabs on the tilemap /// </summary> [CreateAssetMenu(fileName = "Prefab Brush", menuName = "Brushes/...
36.376344
129
0.616317
[ "MIT" ]
Buriola/pacman-remake
Assets/Scripts/Buriola/Utilities/Editor/Brushes/PrefabBrush.cs
3,385
C#
using NUnit.Framework; namespace Whois.Domains { [TestFixture] public class DomainTests { private WhoisLookup lookup; [SetUp] public void SetUp() { lookup = new WhoisLookup(); } [Test] public void TestLookupCom() { v...
25.826087
75
0.65881
[ "MIT" ]
SonicGD/whois
Whois.Tests.Integration/Domains/DomainTests.cs
1,784
C#
using System.Diagnostics.CodeAnalysis; using HotChocolate.Language; namespace HotChocolate.Types.NodaTime { public abstract class StringToClassBaseType<TRuntimeType> : ScalarType<TRuntimeType, StringValueNode> where TRuntimeType : class { public StringToClassBaseType(string name) : base(name, b...
28.10989
105
0.534402
[ "MIT" ]
Sheldrybox/hotchocolate-nodatime
HotChocolate.Types.NodaTime/Helpers/StringToClassBaseType.cs
2,558
C#
// <auto-generated> // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. // // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // re...
39.725
434
0.629746
[ "MIT" ]
93mishra/azure-sdk-for-net
sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresql/Generated/Models/PerformanceTierProperties.cs
4,767
C#
using Owin; namespace TrashGuy { public partial class Startup { public void Configuration(IAppBuilder app) { ConfigureAuth(app); } } }
14.230769
50
0.562162
[ "MIT" ]
jtpete/TrashCollection
TrashGuy/Startup.cs
187
C#
using Neptuo; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Neptuo.Observables.Commands { /// <summary> /// An implementation of <see cref="System.Windows.Input.ICommand"/> that takes delegates for 'execute' and 'can execute' meth...
37.230769
134
0.600059
[ "Apache-2.0" ]
ScriptBox21/Money
src/Neptuo/Observables/Commands/DelegateCommand.cs
3,390
C#
using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace SimulacaoCompra.Models { public class Compra { [Key] public int Idcompra { get; set; } [Required(ErrorMessage = "Este campo é obrigatorio")] [Display(Name ...
41.066667
127
0.62987
[ "Apache-2.0" ]
TARGINO0110/SimulacaoCompra
SimulacaoCompra/Models/Compra.cs
2,483
C#
using System.Text.Json.Serialization; namespace Horizon.Payment.Alipay.Domain { /// <summary> /// AlipayUserMpointAuthbasePayModel Data Structure. /// </summary> public class AlipayUserMpointAuthbasePayModel : AlipayObject { /// <summary> /// 业务子类型,由会员方面分配 /// </summary> ...
24.682927
64
0.535573
[ "Apache-2.0" ]
bluexray/Horizon.Sample
Horizon.Payment.Alipay/Domain/AlipayUserMpointAuthbasePayModel.cs
1,100
C#
using System; using System.Collections.Generic; namespace COMInteraction.Misc { public class NonNullImmutableList<T> : IEnumerable<T> where T : class { private List<T> _data; public NonNullImmutableList() { _data = new List<T>(); } public NonNullImmutableLis...
28.043478
85
0.50646
[ "MIT" ]
ProductiveRage/ComInteraction
COMInteraction/Misc/NonNullImmutableList.cs
1,937
C#
// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information. using System.Collections.Generic; using System.Diagnostics.Contracts; using System.Linq; using System.Reflection; using System.Web.Http.Internal; namespace System.Web.Http.Dispatcher { /// <s...
36.297297
128
0.628444
[ "Apache-2.0" ]
Distrotech/mono
external/aspnetwebstack/src/System.Web.Http/Dispatcher/DefaultHttpControllerTypeResolver.cs
2,688
C#
using System; using System.Collections.Generic; using System.Text; namespace BorderControl.Contracts { public interface IIdentifiable { public string Id { get; } } }
15.666667
34
0.696809
[ "MIT" ]
MirelaMileva/C-Sharp-OOP
InterfacesAndAbstraction/BorderControl/Contracts/IIdentifiable.cs
190
C#
using NUnit.Framework; using WordCounter.Words; namespace WordCounter.Tests.Words { [TestFixture] class WordManagerTests { [Test] public void Add_IncreaseCounter() { var wordManager = new WordManager(); Assert.That(wordManager.PrettyPrint, Is.Empty); var word = "abs"; var c...
23.133333
95
0.665706
[ "MIT" ]
pdebesc/WordCounter
Tests/Words/WordManagerTests.cs
696
C#
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Metadata.Builders; using Microsoft.EntityFrameworkCore.Utilities; // ...
57.719626
136
0.691224
[ "Apache-2.0" ]
0x0309/efcore
src/EFCore.Relational/Extensions/PropertiesConfigurationBuilderExtensions.cs
6,176
C#
namespace LittleBaby.Framework.Core { using System; using System.Collections.Generic; /// <summary> /// 事件信息 /// </summary> public class EventInfo { /// <summary> /// 消息Code /// </summary> public Int64 MsgCode { get; private set; } /// <summary> ...
31.336957
97
0.51821
[ "MIT" ]
zengliugen/LittleBaby.Framework
UnityProject/Packages/LittleBaby.Framework.Core/Runtime/Core/Event/EventInfo.cs
2,973
C#
using System; namespace _10.MultiplyEvensByOdds { class Program { static void Main(string[] args) { int num = int.Parse(Console.ReadLine()); num = Math.Abs(num); Console.WriteLine(GetMultipleOfEvenAndOdds(num)); } static int GetMultipleOfEve...
24.222222
67
0.46445
[ "MIT" ]
yovko93/CSharp-Repo
CSharp_Fundamentals/MethodsLab/10.MultiplyEvensByOdds/Program.cs
874
C#
// Copyright (c) Alexandre Mutel. All rights reserved. // This file is licensed under the BSD-Clause 2 license. // See the license.txt file in the project root for more information. using System; using System.Collections.Generic; using System.Diagnostics; using Markdig.Helpers; using Markdig.Renderers.Html; using Mar...
46.90534
178
0.499043
[ "BSD-2-Clause" ]
mattj23/markdig
src/Markdig/Parsers/Inlines/EmphasisInlineParser.cs
19,331
C#
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 2.0.0 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ------------------------------...
37.057143
177
0.727255
[ "MIT" ]
Stormancer/Sample_05_Relay_Unity
Relay/Assets/Stormancer/Raknet.scharp/RakNetListFilterQuery.cs
5,188
C#
using System; using UnityEngine; namespace UnityStandardAssets.ImageEffects { [ExecuteInEditMode] [AddComponentMenu("Image Effects/Color Adjustments/Grayscale")] public class Grayscale : ImageEffectBase { public Texture textureRamp; public float rampOffset; // Called by camera ...
30.7
78
0.684039
[ "Unlicense" ]
23SAMY23/Drift-Into-Space
Drift Into Space/Assets/PE2D/Standard Assets/Effects/ImageEffects/Scripts/Grayscale.cs
614
C#
using System.Threading.Tasks; using Orleans; namespace Grains.Contracts { // Stateless grain public interface IDecodeGrain : IGrainWithIntegerKey { Task Decode(string message); } }
17.25
56
0.700483
[ "MIT" ]
chunk1ty/FrameworkPlayground
src/Orleans/Grains.Contracts/IDecodeGrain.cs
209
C#
// ReSharper disable once CheckNamespace namespace Ingredients { public partial class DecimalValue { private const decimal NanoDivisor = 1_000_000_000m; private DecimalValue(decimal value) { Units = (long) decimal.Truncate(value); Nanos = (int) ((value ...
31.15
71
0.597111
[ "MIT" ]
sitereactor/ndc-manchester-2021
src/Frontend/Protos/DecimalValue.cs
623
C#
/* * OpenDoc_API-文档访问 * * API to access AnyShare 如有任何疑问,可到开发者社区提问:https://developers.aishu.cn # Authentication - 调用需要鉴权的API,必须将token放在HTTP header中:\"Authorization: Bearer ACCESS_TOKEN\" - 对于GET请求,除了将token放在HTTP header中,也可以将token放在URL query string中:\"tokenid=ACCESS_TOKEN\" * * The version of the OpenAPI do...
37.171296
257
0.535434
[ "MIT" ]
ArtyDinosaur404/AnyShareSDK
AnyShareSDK/Model/LinkSetRes.cs
8,621
C#
using System.Collections.Generic; using NeuralNetworks.Units; using Newtonsoft.Json.Linq; namespace NeuralNetworks.Layers { public abstract class Layer { public abstract LayerConnection input { get; protected set; } public abstract LayerConnection output { get; protected set; } public abstract IEnumerable<Unit> u...
28.04878
96
0.74087
[ "MIT" ]
Andrew-Levada/NeuralNetworksLibrary
NeuralNetworks/Layers/Layer.cs
2,302
C#
using System; namespace PriorityQueue { public class PriorityQueue { private Node front; public PriorityQueue() { front = null; } public void Insert(int element, int elementPriority) { Node temp, p; temp = new Node(element,...
22.649351
89
0.418005
[ "MIT" ]
AlbertJvR/DataStructuresAndAlgorithms
StacksAndQueues/QueuesProject/PriorityQueue/PriorityQueue.cs
1,746
C#
using System; using NetRuntimeSystem = System; using System.ComponentModel; using NetOffice.Attributes; namespace NetOffice.ExcelApi { /// <summary> /// Partial WorksheetFunction Max /// </summary> partial class WorksheetFunction : COMObject { #region Methods /// <summary> ...
60.378517
436
0.612081
[ "MIT" ]
DominikPalo/NetOffice
Source/Excel/DispatchInterfaces/WorksheetFunction.Max.cs
47,218
C#
namespace Sidekick.Business.Apis.Poe.Models { public class Attribute { public string Id { get; set; } public string Text { get; set; } public string Type { get; set; } } }
20.8
43
0.586538
[ "MIT" ]
cmos12345/Sidekick
src/Sidekick.Business/Apis/Poe/Models/Attribute.cs
208
C#
//----------------------------------------------------------------------- // <copyright file="ThreadPoolDispatcherRemoteMessagingThroughputSpec.cs" company="Akka.NET Project"> // Copyright (C) 2009-2020 Lightbend Inc. <http://www.lightbend.com> // Copyright (C) 2013-2020 .NET Foundation <https://github.com/akk...
39.935484
126
0.617932
[ "Apache-2.0" ]
Bogdan-Rotund/akka.net
src/core/Akka.Remote.Tests.Performance/ThreadPoolDispatcherRemoteMessagingThroughputSpec.cs
1,240
C#
using NUnit.Framework; namespace AncoraMVVM.Base.Tests { [TestFixture] public class UrlFallbackChainTests { // TODO: More tests. [Test] public void Condition_ValidUrl_True() { var chain = new UrlFallbackChain("", ""); Assert.IsTrue(chain.Condition("...
23.25
67
0.541667
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
gjulianm/AncoraMVVM
AncoraMVVM.Base.Tests/UrlFallbackChainTests.cs
746
C#
namespace Duality.Editor.Plugins.LogView { public class LogViewSettings { private bool showMessages = true; private bool showWarnings = true; private bool showErrors = true; private bool showCore = true; private bool showEditor = true; private bool showGame = true; private bool autoClear = true; priv...
21.267857
41
0.65995
[ "MIT" ]
AdamsLair/duality
Source/Plugins/EditorModules/LogView/LogViewSettings.cs
1,193
C#
// Serilog.Sinks.Seq Copyright 2017 Serilog Contributors // // 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 appli...
37.353741
135
0.563103
[ "Apache-2.0" ]
augustoproiete-forks/serilog--serilog-sinks-seq
src/Serilog.Sinks.Seq/Sinks/Seq/Durable/PayloadReader.cs
5,491
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CommonHelpers { public static class TimeSpanExt { public static TimeSpan Seconds(this int @this) => TimeSpan.FromSeconds(@this); public static TimeSpa...
24.375
54
0.647863
[ "MIT" ]
rikace/concombinators
src/Combinators/Common/Helpers/TimeSpanExt.cs
587
C#
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Reflection; using JetBrains.Annotations; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Extensions.Internal; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrame...
43.178571
110
0.641026
[ "Apache-2.0" ]
IvanZheng/EntityFrameworkCore
src/Blueshift.EntityFrameworkCore.MongoDB/Query/ExpressionVisitors/MongoDbMemberAccessBindingExpressionVisitor.cs
3,629
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Diagnostics; using System.Linq; using System.Reflection; using System.Security.Claims; using System.Threading.Channels; using Microsoft.AspNetCore.Authorization; using M...
47.166898
237
0.640374
[ "Apache-2.0" ]
aspnet/AspNetCore
src/SignalR/server/Core/src/Internal/DefaultHubDispatcher.cs
33,913
C#
using System; using System.Runtime.CompilerServices; using Robust.Shared.Maths; using Robust.Shared.Serialization; namespace Content.Shared.Atmos { /// <summary> /// The reason we use this over <see cref="Direction"/> is that we are going to do some heavy bitflag usage. /// </summary> [Flags, Seri...
38.704698
116
0.570487
[ "MIT" ]
ManelNavola/space-station-14
Content.Shared/Atmos/AtmosDirection.cs
5,769
C#
namespace ManualMapUtil.Entities { public class UserDTO { public int Id { get; set; } public string Name { get; set; } public string Password { get; set; } } }
19.7
44
0.573604
[ "MIT" ]
RanderGabriel/ManualMapUtil
Entities/UserDTO.cs
199
C#
// ReSharper disable CheckNamespace using System; using System.Net.Http; using EventStore.Client; using Grpc.Core.Interceptors; using Microsoft.Extensions.DependencyInjection.Extensions; using Microsoft.Extensions.Logging; #nullable enable namespace Microsoft.Extensions.DependencyInjection { /// <summary> /// A set...
37.423729
149
0.752264
[ "Apache-2.0" ]
BrunoZell/EventStore-Client-Dotnet
src/EventStore.Client.ProjectionManagement/EventStoreProjectionManagementClientCollectionExtensions.cs
2,208
C#
using System; using System.Data; using Csla; namespace SelfLoad.DataAccess.ERLevel { /// <summary> /// DAL Interface for C03_Continent_Child type /// </summary> public partial interface IC03_Continent_ChildDal { /// <summary> /// Loads a C03_Continent_Child object from t...
37.525
88
0.622918
[ "MIT" ]
CslaGenFork/CslaGenFork
trunk/Samples/DeepLoad/DAL-DR/SelfLoad.DataAccess/ERLevel/IC03_Continent_ChildDal.Designer.cs
1,501
C#
using System.Collections.Generic; using System.Linq; using SmartChord.Parser; using SmartChord.Parser.Models; using SmartChord.Parser.Models.Elements; namespace SmartChord.Transpose { public class SongAnalyzer { public Note DiscoverKeyOfSong(Song song) { var stats = G...
37.673684
124
0.499301
[ "MIT" ]
codeapologist/SmartChord
src/SmartChord.Transposer/SongAnalyzer.cs
3,487
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.768293
108
0.620394
[ "Apache-2.0" ]
philasmar/aws-sdk-net
sdk/src/Services/Lightsail/Generated/Model/ContainerServiceDeploymentRequest.cs
2,687
C#
// Copyright (c) 2014-2020 DataStax Inc. // Copyright (c) 2020, Rafael Almeida (ralmsdevelper) // Licensed under the Apache License, Version 2.0. See LICENCE in the project root for license information. namespace Scylla.Net.Requests { internal interface IStartupRequestFactory { IRequest CreateStartupR...
30.75
107
0.750678
[ "Apache-2.0" ]
ScyllaNet/ScyllaNet
src/ScyllaNet/Requests/IStartupRequestFactory.cs
371
C#
using System; using System.Collections; using System.Collections.Generic; using ChessLib.Core.Helpers; using ChessLib.Core.Tests.Helpers; using ChessLib.Core.Translate; using ChessLib.Core.Types; using ChessLib.Core.Types.Enums; using NUnit.Framework; // ReSharper disable StringLiteralTypo namespace ChessLib.Core.Te...
56.26
118
0.600427
[ "MIT" ]
Hyper-Dragon/ChessLib
src/ChessLib.CoreTests/MagicBitboard/MagicBitboardTestData.cs
8,441
C#
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using ProfitManager.Models; namespace ProfitManager.Controllers { public class HomeController : Controller { public IActionResult Index() {...
23.9
112
0.641562
[ "MIT" ]
VisualAcademy/EntityFrameworkCore
ProfitManager/ProfitManager/Controllers/HomeController.cs
719
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using Android.App; // 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...
37
84
0.759073
[ "MIT" ]
jonathanpeppers/RJavaIOException
RJavaIOException.Android/Properties/AssemblyInfo.cs
1,298
C#
// ---------------------------------------------------------------------------------- // // Copyright Microsoft 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://w...
33.380952
87
0.581312
[ "MIT" ]
yugangw-msft/azure-powershell
src/ResourceManager/AnalysisServices/Commands.AnalysisServices.Dataplane/Models/AsAzureEnvironment.cs
1,363
C#
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; names...
30.421053
120
0.635813
[ "ECL-2.0", "Apache-2.0" ]
JakeGinnivan/pulumi-aws
sdk/dotnet/Ec2/Outputs/GetCoipPoolsFilterResult.cs
1,156
C#
namespace Sudoku.Solving.Manual.Searchers.Intersections; /// <summary> /// Defines a step searcher that searches for almost locked candidates steps. /// </summary> public interface IAlmostLockedCandidatesStepSearcher : IIntersectionStepSearcher { /// <summary> /// Indicates whether the user checks the almost locked...
37.578947
89
0.743697
[ "MIT" ]
SunnieShine/Sudoku
src/Sudoku.Solving/Solving/Manual/Searchers/Intersections/IAlmostLockedCandidatesStepSearcher.cs
716
C#
using System.Net; using System.Threading; using System.Threading.Tasks; using Conduit.Domain; using Conduit.Features.Profiles; using Conduit.Infrastructure; using Conduit.Infrastructure.Errors; using FluentValidation; using MediatR; using Microsoft.EntityFrameworkCore; namespace Conduit.Features.Followers { public...
36.090909
179
0.596977
[ "MIT" ]
godrose/aspnetcore-realworld-example-app
src/Conduit/Features/Followers/Add.cs
2,779
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; namespace QuestHelper.Server.Models { public class ImagesServerStatus { public ImagesServerStatus() { Images = new List<Imagefile>(); } public ICollection<Imagefile> Images ...
20.909091
58
0.606522
[ "Apache-2.0" ]
gromozeka07b9/Gosh
QuestHelper/QuestHelper.Server/Models/ImagesServerStatus.cs
462
C#
using System.Threading.Tasks; namespace Xtender.Async { /// <summary> /// The interface for implementing the async version of the extender is the visitor itself and contains the extensions that have registered for it. A proxy-extender is used to be passed to the extensions, this enables extensibility. ///...
61.307692
277
0.708072
[ "MIT" ]
emprax/Xtender
Xtender/Async/IAsyncExtender.cs
2,393
C#
using System; using System.CodeDom.Compiler; using System.ComponentModel; using System.Diagnostics; using System.Runtime.CompilerServices; using System.Xml.Schema; using System.Xml.Serialization; namespace Workday.ResourceManagement { [GeneratedCode("System.Xml", "4.6.1590.0"), DesignerCategory("code"), DebuggerStepT...
21.934426
136
0.733184
[ "MIT" ]
matteofabbri/Workday.WebServices
Workday.ResourceManagement/Vehicle_TypeObjectType.cs
1,338
C#
using Dapper.Contrib.Extensions; using System; namespace MyGeotabAPIAdapter.Database.Models { [Table("DriverChangeTypesT")] public class DbDriverChangeTypeT : IDbEntity, IIdCacheableDbEntity { /// <inheritdoc/> [Write(false)] public string DatabaseTableName => "DriverChangeTypesT";...
27.689655
89
0.633873
[ "MIT" ]
costica-moldovanu/mygeotab-api-adapter
MyGeotabAPIAdapter.Database/Models/DbDriverChangeTypeT.cs
805
C#
using Microsoft.AspNetCore.Identity; using Microsoft.EntityFrameworkCore; using Smarti.Models; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Smarti.Data { public class DbInitializer : IDbInitializer { private readonly ApplicationDbContext _c...
67.70297
150
0.499561
[ "MIT" ]
Planche95/Smarti
Smarti/Smarti/Data/DbInitializer.cs
6,840
C#
/* Copyright (c) 2014, Kevin Pope All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following ...
33.53125
140
0.76165
[ "BSD-2-Clause" ]
Banbury/MatterControl
ControlElements/ImageButtonFactory.cs
4,294
C#
using UnityEngine; namespace Entities.Behaviours { /// <inheritdoc cref="IBehaviour" /> public abstract class Behaviour : ScriptableObject, IBehaviour { /// <inheritdoc /> public abstract BehaviourType Type { get; protected set; } // TODO: find a better way how to...
22.380952
66
0.591489
[ "MIT" ]
andrej-szontagh/rara-unity-challenge
Assets/Scripts/Entities/Behaviours/Behaviour.cs
470
C#
namespace LibSignal.Protocol.Net { using System; public class NoSessionException : Exception { public NoSessionException(string s) : base(s) {} public NoSessionException(Exception nested) : base(nested.Message, nested) {} } }
21.666667
85
0.676923
[ "MIT" ]
SeppPenner/LibSignal.Protocol.Net
src/LibSignal.Protocol.Net/NoSessionException.cs
260
C#
// This file is auto generated, do not edit. using System; #pragma warning disable CA1069 // Enums values should not be duplicated namespace Gwi.OpenGL { public enum ColorTableTarget : uint { ColorTable = GLConstants.GL_COLOR_TABLE, PostConvolutionColorTable = GLConstants.GL_POST_CONVOLUTION_CO...
40.944444
91
0.786974
[ "MIT" ]
odalet/Gwi
src/Gwi.OpenGL/Gwi.OpenGL/generated/enums/ColorTableTarget.cs
737
C#
// Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace BuildIt.CognitiveServices { using System.Threading.Tasks; /// <summary> /// Extension methods for VideoAPI. /// </summary> public st...
61.168317
518
0.580366
[ "MIT" ]
builttoroam/BuildIt
src/BuildIt.CognitiveServices/BuildIt.CognitiveServices/CognitiveServicesSwagger/VideoAPIExtensions.cs
37,144
C#
namespace ExtractorSharp.View.SettingPane { partial class LanguagePane { /// <summary> /// 必需的设计器变量。 /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// 清理所有正在使用的资源。 /// </summary> /// <param name="disposing...
31.423077
93
0.542228
[ "MIT" ]
Kritsu/ExtractorSharp
ExtractorSharp/View/SettingPane/LanguagePane.Designer.cs
1,790
C#
namespace UglyToad.PdfPig.Images.Png { /// <summary> /// The method used to compress the image data. /// </summary> internal enum CompressionMethod : byte { /// <summary> /// Deflate/inflate compression with a sliding window of at most 32768 bytes. /// </summary> Def...
27.153846
85
0.606232
[ "Apache-2.0" ]
BobLd/PdfP
src/UglyToad.PdfPig/Images/Png/CompressionMethod.cs
355
C#
using System; namespace WeekDay { class WeekDay { static void Main(string[] args) { int dayNumber = int.Parse(Console.ReadLine()); switch (dayNumber) { case 1:Console.WriteLine("Monday"); break; case 2:Console.Write...
35.571429
110
0.571285
[ "MIT" ]
FanyaKk/CSharpUniProjects
Projects/Conditional-Statements/WeekDay/WeekDay.cs
1,160
C#
using System; using System.Runtime.InteropServices; namespace Xilium.CefGlue.Avalonia.Platform.MacOS { [StructLayout(LayoutKind.Sequential, Pack = 8)] internal struct CGPoint { public double X; public double Y; } [StructLayout(LayoutKind.Sequential, Pack = 1)] internal struct...
28.180723
96
0.61864
[ "MIT" ]
OutSystems/CefGlue
CefGlue.Avalonia/Platform/MacOS/NSView.cs
2,341
C#
using ScottPlot.Drawing; using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ScottPlot.Plottable { public class ErrorBar : IPlottable, IHasLine, IHasMarker, IHasColor { public double[] Xs { get; set; } ...
42.472727
153
0.561216
[ "MIT" ]
MareMare/ScottPlot
src/ScottPlot4/ScottPlot/Plottable/ErrorBar.cs
7,010
C#
#nullable enable using System; using System.Threading.Tasks; namespace Microsoft.Maui.ApplicationModel.DataTransfer { public interface IClipboard { bool HasText { get; } Task SetTextAsync(string? text); Task<string?> GetTextAsync(); event EventHandler<EventArgs> ClipboardContentChanged; } /// <include ...
30.958904
140
0.736726
[ "MIT" ]
10088/maui
src/Essentials/src/Clipboard/Clipboard.shared.cs
2,260
C#
using System; using UnityEngine.Events; namespace AChildsCourage.RoomEditor { [Serializable] public class MouseDownEvent : UnityEvent<MouseDownEventArgs> { } }
17.1
68
0.766082
[ "MIT" ]
KingVanti/AChildsCourage
Assets/Scripts/RoomEditor/Events.cs
173
C#
using OdevTakip.Entities; using System; using System.Collections.Generic; using System.Text; namespace OdevTakip.Services { public interface IEtkinlikService { List<Etkinlik> Select(Etkinlik model); Etkinlik Find(Etkinlik model); bool Insert(Etkinlik model); bool Update(Etki...
40.026667
281
0.63491
[ "MIT", "Unlicense" ]
NecmettinCimen/OdevTakip
OdevTakip.Services/EtkinlikService.cs
3,004
C#
using System; using System.Collections.Generic; using Application.ViewModels; using AutoMapper; using Domain; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; using Services.Interfaces; namespace Application.Controllers { [Route("api/[controller]")] [ApiController] public class ShelfCon...
33.791367
108
0.556313
[ "MIT" ]
Thijapones/MTG4Us
MTG4Us/MTG4Us/Controllers/ShelfController.cs
4,699
C#
using NUnit.Framework; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using CN_Repository; namespace CoffeeNewspaper_UnitTest.DomainTest { [TestFixture] public class TimeSliceProviderTest { [Test] public void TimeSlicePro...
26.409091
82
0.555077
[ "MIT" ]
engimaxp/CoffeeNewspaper
CoffeeNewspaper/CoffeeNewspaper_UnitTest/DomainTest/TimeSliceProviderTest.cs
1,164
C#
using CoreSharp.Common.Attributes; using CoreSharp.NHibernate; using FluentNHibernate.Automapping; using FluentNHibernate.Automapping.Alterations; namespace CoreSharp.Breeze.Tests.Entities { public class OrderProductFk : Entity { [NotNull] public virtual Order Order { get; set; } publ...
26.416667
78
0.6551
[ "MIT" ]
cime/CoreSharp
CoreSharp.Breeze.Tests/Entities/OrderProductFk.cs
953
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.Windows.Input; using Avalonia.Data; using Avalonia.Input; using Avalonia.Interactivity; namespace Avalonia.Controls { /// ...
32.315934
117
0.527331
[ "MIT" ]
DmitryZhelnin/Avalonia
src/Avalonia.Controls/Button.cs
11,763
C#
using Dahomey.Json.Attributes; using System; using System.Numerics; using System.Text.Json; using System.Text.Json.Serialization; namespace ch1seL.TonNet.Client.Models { /// <summary> /// Not described yet.. /// </summary> public class ParamsOfQueryCounterparties { /// <summary> ///...
25.342105
54
0.563863
[ "Apache-2.0" ]
freeton-org/ton-client-dotnet
src/ch1seL.TonNet.Client.Models/Generated/Models/ParamsOfQueryCounterparties.cs
963
C#
using System; using System.Collections.Generic; using System.Drawing; using System.IO; using System.Linq; using System.Text; using System.Windows.Forms; using BizHawk.Client.EmuHawk.ToolExtensions; using BizHawk.Emulation.Common; using BizHawk.Client.Common; namespace BizHawk.Client.EmuHawk { public partial class B...
23.405263
130
0.696296
[ "MIT" ]
CognitiaAI/StreetFighterRL
emulator/Bizhawk/BizHawk-master/BizHawk.Client.EmuHawk/tools/BasicBot/BasicBot.cs
31,131
C#
//----------------------------------------------------------------------- // <copyright file="TestAnnotationBadUsages.cs" company="OrbintSoft"> // Yet Another User Agent Analyzer for .NET Standard // porting realized by Stefano Balzarotti, Copyright 2018 (C) OrbintSoft // // Original Author and License: // //...
38.493151
196
0.626335
[ "Apache-2.0" ]
OrbintSoft/yauaa.netcore
src/OrbintSoft.Yauaa.Testing.NetCore/Tests/Annotate/TestAnnotationBadUsages.cs
2,812
C#