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.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.EntityFrameworkCore; using ygo.core.Models.Db; using ygo.domain.Repository; using ygo.infrastructure.Database; namespace ygo.infrastructure.Repository { public class CardTipRepository : ICardTipRepository { ...
29.703704
77
0.533666
[ "MIT" ]
fablecode/ygo-api
src/Infrastructure/ygo.infrastructure/Repository/CardTipRepository.cs
1,606
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.581967
197
0.621454
[ "Apache-2.0" ]
Bio2hazard/aws-sdk-net
sdk/src/Services/CloudDirectory/Generated/Model/Internal/MarshallTransformations/TypedLinkAttributeDefinitionUnmarshaller.cs
4,829
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace System.Windows.Forms { public class WSEventArgs { public string ClientId; public string EventType; public object Value; } }
18
33
0.701389
[ "MIT" ]
Terricide/ReVision
src/ReVision.Forms/WebSocket/WSEventArgs.cs
290
C#
namespace design_patterns.Chain_of_responsibility { class BaseHandler: IHandler { private IHandler _next; public void setNext(IHandler handler) { _next = handler; } public virtual void handle(string request) { if(_next != null) _next.handle(request); } } }
18.235294
49
0.645161
[ "MIT" ]
saimib/oops-design-patterns
Behavioural Patterns/Chain_of_responsibility/BaseHandler.cs
310
C#
namespace RevolutionaryStuff.Core.ApplicationParts; public sealed class Flusher : IFlushable { private readonly Action Flush; public Flusher(Action flush) { Requires.NonNull(flush, nameof(flush)); Flush = flush; } void IFlushable.Flush() { Flush(); } }
17.166667
52
0.634304
[ "MIT" ]
jbt00000/RevolutionaryStuff
src/RevolutionaryStuff.Core/ApplicationParts/Flusher.cs
311
C#
using System; using System.Runtime.InteropServices; using System.Text; namespace NullFX.ServiceEditor { internal static class NativeMethods { internal const int ACCESS_TYPE_ALL = 0xf01ff; internal const int SC_MANAGER_ALL = 0xf003f; internal const int SERVICE_ALL_ACCESS = 0xf01ff; ...
53.309524
302
0.689147
[ "MIT" ]
nullfx/NullFX-Windows-Service-Editor
src/NullFX Windows Service Editor/NativeMethods.cs
2,241
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/minwinbase.h in the Windows SDK for Windows 10.0.19041.0 // Original source is Copyright © Microsoft. All rights reserved. using NUnit.Framework; using Sy...
38.444444
145
0.669798
[ "MIT" ]
Ethereal77/terrafx.interop.windows
tests/Interop/Windows/um/minwinbase/WIN32_FIND_DATAATests.cs
1,386
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using Siemens.Engineering; using Siemens.Engineering.Hmi; using Siemens.Engineering.Hmi.Tag; using Siemens.Engineering.Hmi.TextGraphicList; using Siemens.Engineering.HW; using Siemens.En...
46.956081
184
0.517735
[ "BSD-2-Clause" ]
cezar1/TiaExportBlocks
Program.cs
13,901
C#
using System.Collections.Generic; namespace test.Roles.Dto { public class GetRoleForEditOutput { public RoleEditDto Role { get; set; } public List<FlatPermissionDto> Permissions { get; set; } public List<string> GrantedPermissionNames { get; set; } } }
22.461538
64
0.671233
[ "MIT" ]
pixelapocalypseuk/aspnetboilerplatetest
aspnet-core/src/test.Application/Roles/Dto/GetRoleForEditOutput.cs
294
C#
using System; using System.Net.Sockets; namespace AzXmpp.Transport.Sockets { /// <summary> /// Represents the core interface for a socket. /// </summary> internal interface ISocket : IDisposable { /// <summary>Gets the unique identifier for the socket.</summary> /// <value>The uniq...
122.5
706
0.724386
[ "MIT" ]
jcdickinson/AzXmpp
src/AzXmpp.Transport/Sockets/ISocket.cs
14,457
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 System.Diagnostics; using Microsoft.AspNetCore.Razor.Language.Syntax.InternalSyntax; namespace Microsoft.AspNetCore.Razor.Language.Legacy { ...
30.017241
111
0.581275
[ "Apache-2.0" ]
aspnet/Razor
src/Microsoft.AspNetCore.Razor.Language/Legacy/DirectiveHtmlTokenizer.cs
1,743
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> //--...
34.903226
151
0.586876
[ "MIT" ]
maSchoeller/dhbw-vorlesung-csharp
Aufgabenblatt_05/Aufgabenblatt_05.Aufgabe_14/Properties/Settings.Designer.cs
1,084
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...
33.862745
101
0.667053
[ "Apache-2.0" ]
pulumi/pulumi-azure-nextgen
sdk/dotnet/Cdn/V20190615Preview/Outputs/CdnManagedHttpsParametersResponse.cs
1,727
C#
using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Threading; using Microsoft.EntityFrameworkCore; namespace k...
25.793103
70
0.660428
[ "MIT" ]
MartynasStrazdas/karma
karma/Program.cs
748
C#
using System.Globalization; namespace YandexWeatherApi.Helpers; internal static class StringConverter { internal static string? Convert(bool? value) { if (!value.HasValue) return null; return value.Value ? "true" : "false"; } internal static string? Convert(i...
21.48
61
0.635009
[ "MIT" ]
DmitryBymWork/YandexWeatherApi
src/YandexWeatherApi/Helpers/StringConverter.cs
539
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...
31.615385
102
0.675588
[ "Apache-2.0" ]
polivbr/pulumi-azure-native
sdk/dotnet/Network/V20200301/Outputs/VirtualNetworkBgpCommunitiesResponse.cs
1,233
C#
using System; using System.Collections.Generic; using SitecoreCognitiveServices.Foundation.NexSDK.DataSet.Models; using SitecoreCognitiveServices.Foundation.NexSDK.Http.Enums; namespace SitecoreCognitiveServices.Foundation.NexSDK.Model.Models { public class ModelSummary { /// <summary> /// Uni...
37.06
147
0.636805
[ "MIT" ]
markstiles/SitecoreCognitiveServices.Core
src/Foundation/NexSDK/code/Model/Models/ModelSummary.cs
1,855
C#
// File: CatalogRecord.cs // Copyright (c) 2018-2019 Maksym Shnurenok // License: MIT using System.Collections.Generic; using System.ComponentModel.DataAnnotations; namespace Marketplace.Services.Catalog.DataModel.Entities.Base { /// <summary> /// Base catalog record class /// </summary> internal abst...
26.6875
76
0.590164
[ "MIT" ]
MaxCrank/marketplace
src/Services/Catalog/DataModel/Entities/Base/CatalogRecord.cs
856
C#
using System; using System.Collections.Generic; using System.Linq; using Foundation; using UIKit; namespace Demo_ReactiveUI_SearchDemo.iOS { public class Application { // This is the main entry point of the application. static void Main(string[] args) { // if you want to u...
23.714286
91
0.644578
[ "MIT" ]
AshrafNaser/XamReactiveUiDemo
Demo_ReactiveUI_SearchDemo/Demo_ReactiveUI_SearchDemo/Demo_ReactiveUI_SearchDemo.iOS/Main.cs
500
C#
using Alexa.NET.Request; namespace Kinoheld.Application.Extensions { public static class IntentExtensions { public static string GetSlot(this Intent intent, string slotName) { if (intent?.Slots == null) { return null; } if (inten...
20.695652
73
0.514706
[ "MIT" ]
janniksam/Kinoheld.Alexa.Skill
Kinoheld.Web/Kinoheld.Application/Extensions/IntentRequestExtensions.cs
478
C#
/* Copyright (C) 2018-2019 de4dot@gmail.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 Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distr...
34.409438
169
0.725214
[ "MIT" ]
moodykeke/iced
src/csharp/Intel/Iced/Intel/NasmFormatterInternal/InstrInfo.cs
49,623
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable using System.Collections.Generic; using Azure.Core; namespace Azure.ResourceManager.MachineLearning.Models { /// <summary> Validation settings for AutoML Table vertical tasks - ...
54.226415
243
0.697286
[ "MIT" ]
damodaravadhani/azure-sdk-for-net
sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TableVerticalValidationDataSettings.cs
2,874
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using ProtoBuf; namespace MumbleSharp.Packets { [ProtoContract] public class Ping { [ProtoMember(1, IsRequired = false)] public UInt64 TimeStamp; [ProtoMember(2, IsRequired = false)] publ...
22.73913
45
0.623327
[ "MIT" ]
geary/MumbleSharp
MumbleSharp/Packets/Ping.cs
1,048
C#
// <auto-generated> // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/ads/googleads/v7/services/ad_service.proto // </auto-generated> // Original file comments: // Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this ...
48.696395
372
0.651716
[ "Apache-2.0" ]
googleads/google-ads-dotnet
src/V7/Services/AdServiceGrpc.g.cs
25,663
C#
namespace BGB.Gerencial.Domain.Enums { public enum IndiceContratoEnum { PRE = 1, CDI = 2 } }
14.444444
38
0.523077
[ "MIT" ]
nelson1987/ContractualManager
BGB.Gerencial.Domain/Enums/IndiceContratoEnum.cs
132
C#
using System.Collections.Generic; using DateObject = System.DateTime; namespace Microsoft.Recognizers.Text.DateTime.Japanese { public class SetParser : IDateTimeParser { public static readonly string ParserName = Constants.SYS_DATETIME_SET; private static readonly IDateTimeExtractor ...
36.00885
113
0.484026
[ "MIT" ]
Irrelevances/Recognizers-Text
.NET/Microsoft.Recognizers.Text.DateTime/Japanese/Parsers/SetParser.cs
8,154
C#
/* Write a program that reads a string from the console and prints all different letters in the string along with information how many times each letter is found. */ using System; class LettersCount { static void Main() { Console.Write("Enter text:"); string text = Console.ReadLine();/...
23.638889
91
0.451234
[ "MIT" ]
Andro0/TelerikAcademy
C#2/06.Homework_Strings_and_Text_Processing/21.LettersCount/LettersCount.cs
853
C#
 using System; using System.Collections.Generic; using System.Linq; using System.Collections.Concurrent; using Orleans.Transactions.Abstractions.Extensions; namespace Orleans.Transactions.Abstractions { [Serializable] public class TransactionInfo : ITransactionInfo { public TransactionInfo() ...
30.419355
138
0.547543
[ "MIT" ]
KSLcom/orleans
src/Orleans.Transactions/Abstractions/TransactionInfo.cs
5,660
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Diagnostics; #if !NETCOREAPP1_1 using PushSharp.Windows; using PushSharp.Apple; using PushSharp.Android; #endif namespace Artech.Genexus.SDAPI { public class RemoteNotificationResult { public short DeviceType { get; ...
32.550725
101
0.785396
[ "Apache-2.0" ]
genexuslabs/DotNetClasses
dotnet/src/dotnetframework/SDNetAPI/RemoteNotificationResult.cs
2,248
C#
namespace CommandPattern.Interfaces { public interface IProductRepository { int GetStockFor(string articleId); void DecreaseStockBy(string articleId, int amount); void IncreaseStockBy(string articleId, int amount); } }
28.333333
59
0.709804
[ "MIT" ]
Sztormus/C-
DesignPatterns/Command/Interfaces/IProductsRepository.cs
257
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using DotVVM.Framework.ViewModel; using System.Security.Claims; using System.Threading.Tasks; using DotVVM.Framework.Hosting; namespace DotVVM.Samples.BasicSamples.ViewModels.ControlSamples.RoleView { public class RoleViewTestViewMo...
26.871795
81
0.620229
[ "Apache-2.0" ]
AMBULATUR/dotvvm
src/DotVVM.Samples.BasicSamples.Owin/ViewModels/ControlSamples/RoleView/RoleViewTestViewModel.cs
1,048
C#
using PDX.PBOT.App.Data.Models; namespace PDX.PBOT.App.Data.Repositories.Interfaces { public interface IContentRepository : IRepository<Content> {} }
22.571429
62
0.765823
[ "Apache-2.0" ]
mikesonaplane/web-app
App.Data/Repositories/Interfaces/IContentRepository.cs
158
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Diagnostics; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using ArachNGIN.Components.Console; using ArachNGIN.Components.Console.Misc; namespace DebugConsoleDemo { ...
25.563636
69
0.620199
[ "MIT" ]
Pavuucek/ArachNGIN
Utilities/DebugConsoleDemo/Form1.cs
1,408
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace Wbs.Everdigm.Web.main { public partial class account_actions : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { ...
19.529412
61
0.695783
[ "Apache-2.0" ]
wanbangsoftware/Everdigm
Wbs.Everdigm.Web/Wbs.Everdigm.Web/main/account_actions.aspx.cs
334
C#
using LNF.Scheduler; using System.Linq; namespace LNF.Impl.Repository.Scheduler { public static class Extensions { public static IOrderedQueryable<IResource> DefaultResourceOrderBy(this IQueryable<IResource> query) { return query .OrderBy(x => x.BuildingName) ...
25.888889
107
0.583691
[ "MIT" ]
lurienanofab/lnf
LNF.Impl/Repository/Scheduler/Extensions.cs
468
C#
using System; namespace CSharpKoans.Core { [AttributeUsage(AttributeTargets.Method, AllowMultiple = false)] public class KoanAttribute : Attribute { } }
17
68
0.717647
[ "Apache-2.0" ]
BillWagner/csharpkoans
CSharpKoans.Core/KoanAttribute.cs
170
C#
using System; using System.Threading; using System.Runtime.InteropServices; using Microsoft.Win32.SafeHandles; using System.Security.Permissions; using System.ComponentModel; using System.Xml; using System.Threading.Tasks; namespace LogJoint.DebugOutput { public class LogProvider : LiveLogProvider { r...
31.576577
183
0.716405
[ "MIT" ]
sergey-su/logjoint
trunk/model/providers/DebugOutputString/DebugOutputProvider.cs
7,010
C#
/* ======================================================================================== */ /* FMOD Core API - C# wrapper. */ /* Copyright (c), Firelight Technologies Pty, Ltd. 2004-2021. */ /* ...
48.134122
309
0.625946
[ "Apache-2.0" ]
KalevRK/ld49
unity/LD49/Assets/Plugins/FMOD/src/fmod.cs
191,285
C#
// // MRMonsterRollEvent.cs // // Author: // Steve Jakab <> // // Copyright (c) 2014 Steve Jakab // // 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...
26.371795
108
0.736996
[ "MIT" ]
portablemagicrealm/portablerealm
Assets/Standard Assets (Mobile)/Scripts/Events/MRMonsterRollEvent.cs
2,057
C#
// <copyright file="ZipkinExporterTests.cs" company="OpenTelemetry Authors"> // Copyright The OpenTelemetry Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.ap...
38.78125
874
0.563255
[ "Apache-2.0" ]
Zocdoc/opentelemetry-dotne
test/OpenTelemetry.Exporter.Zipkin.Tests/ZipkinExporterTests.cs
11,169
C#
using System; using System.Linq; using System.Linq.Expressions; namespace LinqToDB.Linq.Builder { using LinqToDB.Expressions; using Extensions; using SqlQuery; class OfTypeBuilder : MethodCallBuilder { protected override bool CanBuildMethodCall(ExpressionBuilder builder, MethodCallExpression metho...
31.61157
132
0.697255
[ "MIT" ]
FrancisChung/linq2db
Source/LinqToDB/Linq/Builder/OfTypeBuilder.cs
3,707
C#
using System; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; [assembly: InternalsVisibleTo("RestSharp.IntegrationTests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100fda57af14a288d46e3efea89617037585c4de57159cd536ca6dff792ea1d6addc665f2fccb4285413...
81.846154
392
0.905075
[ "Apache-2.0" ]
leeyahui/RestSharp
RestSharp/AssemblyInfo.cs
1,076
C#
using System; using System.Linq; using System.Security.Cryptography; using System.Web; namespace SHA512.Demo { internal class Program { private static void Main(string[] args) { var sha256 = SHA256.Create(); var result = sha256.ComputeHash("Hello Wolrd!".Select(c => (by...
26.473684
92
0.606362
[ "MIT" ]
plantain-00/csharp-demo
Demos/SHA512.Demo/SHA512.Demo/Program.cs
505
C#
/** * Copyright (c) 2017-present, PFW 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 applicable law ...
34.69898
112
0.568887
[ "Apache-2.0" ]
FieldWarning/projectFieldWarning
src/FieldWarning/Assets/Model/Match/UnitRegistry.cs
6,801
C#
using UnityEngine; using UnityEditor; using System.Collections.Generic; using UnityEditorInternal; using UnityEngine.Rendering; using UnityEngine.Rendering.HighDefinition; using System.Linq; using System; using System.Reflection; namespace UnityEditor.Rendering.HighDefinition { /// <summary> /// Custom UI class for ...
35.802768
172
0.710254
[ "MIT" ]
KoroBli/LifeOn
LifeOn/Library/PackageCache/com.unity.render-pipelines.high-definition@8.2.0/Editor/RenderPipeline/CustomPass/CustomPassDrawer.cs
10,347
C#
#if (UNITY_TIMELINE_EXIST || !UNITY_2019_1_OR_NEWER) using System; using UnityEngine; using UnityEngine.Playables; using UnityEngine.Timeline; namespace FMODUnity { [System.Serializable] public class FMODEventPlayable : PlayableAsset, ITimelineClipAsset { public FMODEventPlayableBehav...
31.960591
168
0.522965
[ "BSD-3-Clause" ]
Paulpanther/AudioMaze
Assets/Plugins/FMOD/src/Runtime/Timeline/FMODEventPlayable.cs
6,490
C#
using System; using UnityEngine; using UnityEngine.UI; using JuloUtil; namespace JuloAudio { public class VolumeControl : MonoBehaviour { public SoundSource soundSource; private bool on; private float volume; private Toggle _toggle; private Toggle toggle { get { if(_toggle == null) _t...
16.957746
55
0.631229
[ "Apache-2.0" ]
jluini/turtle-island
Assets/Packages/JuloAudio/VolumeControl.cs
1,204
C#
using DevExpress.ExpressApp; using Xpand.XAF.Modules.Reactive; using Xpand.XAF.Modules.Reactive.Extensions; namespace Xpand.XAF.Modules.CloneModelView{ public sealed class CloneModelViewModule : ReactiveModuleBase{ public CloneModelViewModule(){ RequiredModuleTypes.Add(typeof(ReactiveModule)); } public o...
24.631579
70
0.786325
[ "Apache-2.0" ]
aois-dev/Reactive.XAF
src/Modules/CloneModelView/Module.cs
470
C#
#region Copyright /////////////////////////////////////////////////////////////////////////////// // // Copyright (c) Phoenix Contact GmbH & Co KG // This software is licensed under Apache-2.0 // /////////////////////////////////////////////////////////////////////////////// #endregion using System; using...
37.944444
111
0.618594
[ "Apache-2.0" ]
PLCnext/PLCnext_CLI
src/PlcNext.CppParser/IncludeManager/IIncludeCache.cs
1,368
C#
namespace Santase.Logic.Tests.Players { using System.Collections.Generic; using Moq; using NUnit.Framework; using Santase.Logic.Cards; using Santase.Logic.Logger; using Santase.Logic.Players; using Santase.Logic.RoundStates; [TestFixture] public class PlayerWithLoggerDecoratorTe...
36.35
92
0.592454
[ "MIT" ]
KonstantinSimeonov/Zatvoreno
SantaseGameEngine/Tests/Santase.Logic.Tests/Players/PlayerWithLoggerDecoratorTests.cs
5,099
C#
using System; using System.Collections.Generic; using System.IO; namespace ThreeDISevenZeroR.UnityGifDecoder.Utils { public static class BitUtils { public static bool CheckString(byte[] array, string s) { for (var i = 0; i < array.Length; i++) { ...
27.324074
104
0.447984
[ "MIT" ]
rahul0tripathi/MetaNox
Assets/MoralisWeb3ApiSdk/GifDecoder/Runtime/Utils/BitUtils.cs
2,953
C#
using System.Security.Cryptography; using System.Security.Cryptography.X509Certificates; namespace Authenty.Services { public class RsaCryptography { private readonly X509Certificate2 _rsaPubKey; public RsaCryptography(X509Certificate2 rsaPubKey) { _rsaPubKey = rsaPubKey;...
25
79
0.661818
[ "MIT" ]
biitez/AuthentyLib
Authenty/Services/RsaCryptography.cs
552
C#
using System; using System.Collections.Generic; using System.Linq; using Improbable.Gdk.Core.Commands; using Improbable.Worker.CInterop; namespace Improbable.Gdk.Core { internal static class ComponentOpDeserializer { private static readonly Dictionary<uint, IComponentDiffDeserializer> ComponentIdToComp...
44.807143
125
0.667623
[ "MIT" ]
456-Ritwik/gdk-for-unity
workers/unity/Packages/io.improbable.gdk.core/Worker/ComponentOpDeserializer.cs
6,273
C#
using System; using System.Collections.Generic; using System.Text; using System.Text.RegularExpressions; namespace drualcman { /// <summary> /// Manejo de números /// </summary> public class numeros { /// <summary> /// Convert number to string /// </summary> /// <...
34.918534
202
0.477749
[ "Unlicense" ]
drualcman/Library
DrUalcman/numeros.cs
17,150
C#
// // Copyright (c) .NET Foundation. 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.Text; namespace DotNetNuke.Entities.Tabs.Dto { /// <summary> /// ...
29.35
103
0.551959
[ "MIT" ]
CMarius94/Dnn.Platform
DNN Platform/Library/Entities/Tabs/Dto/ChangeControlState.cs
1,763
C#
using System; using System.Runtime.Serialization; using Nimbus.MessageContracts.Exceptions; namespace Nimbus.Exceptions { [Serializable] public class RequestFailedException : BusException { public string ServerStackTrace { get; protected set; } public RequestFailedException() { ...
26.647059
135
0.655629
[ "MIT" ]
DamianMac/Nimbus
src/Nimbus/Exceptions/RequestFailedException.cs
908
C#
using System; namespace Palmmedia.WpfGraph.Core { /// <summary> /// Base class for all <see cref="IGraph&lt;TNodeType, TEdgeType&gt;"/> implementations. /// </summary> /// <typeparam name="TNodeType">The type of the data attached to a <see cref="Palmmedia.WpfGraph.Core.Node&lt;TNodeType, TEdgeType&gt;...
42.1375
157
0.597745
[ "Apache-2.0" ]
danielpalme/WpfGraph
WpfGraph.Core/GraphBase.cs
3,373
C#
using System; using System.Threading.Tasks; using AutoFixture; using BaseTests.EndToEndHelpers; using BaseTests.EndToEndHelpers.HttpRequests.Auth; using BaseTests.EndToEndHelpers.HttpRequests.Librarians; using BaseTests.EndToEndHelpers.HttpRequests.Publications; using BaseTests.EndToEndHelpers.HttpRequests.Readers; us...
47.840517
133
0.695919
[ "MIT" ]
kamilk08/BookLoversApi
BookLovers.Readers.Tests/EndToEndTests/AddFavouriteAuthorTests/AddFavouriteAuthorTest.cs
11,101
C#
namespace UblTr.Common { [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Xml.Serialization.XmlTypeAttribute(Namespace = "urn:oa...
53.583333
177
0.777605
[ "MIT" ]
canyener/Ubl-Tr
Ubl-Tr/Common/CommonBasicComponents/InsurancePremiumAmountType.cs
643
C#
/* * Title Direct Search Services * * Title Direct Search Services * * OpenAPI spec version: 4.0.1 * * Generated by: https://github.com/swagger-api/swagger-codegen.git */ using System.IO; using System.Runtime.Serialization; namespace Pims.Ltsa.Models { /// <summary> /// LegalNotationOnTitle /// ...
48.101124
394
0.635599
[ "Apache-2.0" ]
FuriousLlama/PSP
backend/ltsa/Models/LegalNotationOnTitle.cs
4,281
C#
using System.Collections.Generic; using System.Collections.Immutable; using System.Linq; using WalletWasabi.EventSourcing.Interfaces; using WalletWasabi.EventSourcing.Records; namespace WalletWasabi.Tests.UnitTests.EventSourcing.TestDomain { public class TestRoundCommandProcessor : ICommandProcessor { public const...
31.176471
123
0.714825
[ "MIT" ]
Bitcoin-Eagles/EagleSabi
WalletWasabi.Tests/UnitTests/EventSourcing/TestDomain/TestRoundCommandProcessor.cs
3,710
C#
using System.ComponentModel.DataAnnotations; using Abp.MultiTenancy; namespace Blog.Authorization.Accounts.Dto { public class IsTenantAvailableInput { [Required] [StringLength(AbpTenantBase.MaxTenancyNameLength)] public string TenancyName { get; set; } } }
22.692308
58
0.718644
[ "MIT" ]
LMapundu/Boilerplate-Example
aspnet-core/src/Blog.Application/Authorization/Accounts/Dto/IsTenantAvailableInput.cs
297
C#
using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Linq; using Arnolyzer.RuleExceptionAttributes; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.Diagnostics; using SuccincT.Options...
51.804124
123
0.517612
[ "MIT" ]
DavidArno/Arnolyzer
Arnolyzer.Analyzers/Analyzers/EncapsulationAnalyzers/AA1100InterfacePropertiesShouldBeRead_OnlyAnalyzer.cs
5,027
C#
///////////////////////////////////////////////// // // FIX Client // // Copyright @ 2021 VIRTU Financial Inc. // All rights reserved. // // Filename: PersistentSessionTests.cs // Author: Gary Hughes // ///////////////////////////////////////////////// using Microsoft.VisualStudio.TestTools.UnitTesting; ...
31.823529
138
0.569547
[ "Apache-2.0" ]
VirtuFinancial/FixClient
FixTests/PersistentSessionTests.cs
4,328
C#
// Copyright 2017-2020 Elringus (Artyom Sovetnikov). All Rights Reserved. using UnityEngine; namespace Naninovel { public static class MaskUtils { public static int SetLayer (int mask, int layer, bool enabled) { if (enabled) return mask |= 1 << layer; else r...
27.606061
78
0.548847
[ "MIT" ]
286studio/Sim286
AVG/Assets/Naninovel/Runtime/Common/Utilities/MaskUtils.cs
913
C#
// Copyright 2018 Esri. // // Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. // You may obtain a copy of the License at: http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software ...
44.519608
264
0.6732
[ "Apache-2.0" ]
aditya84u/arcgis-runtime-samples-dotnet
src/WinUI/ArcGISRuntime.WinUI.Viewer/Samples/Geometry/GeodesicOperations/GeodesicOperations.xaml.cs
4,541
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; namespace SoonLearning.AppManagementLib { internal class Help { internal static void WriteString(Stream stream, string text) { byte[] textData = Encoding.UTF8.GetBytes(text); ...
28.185185
75
0.625493
[ "MIT" ]
LigangSun/AppCenter
source/Tools/AppManagementLib/Help.cs
763
C#
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using System.Collections.Generic; using System.Linq; using Bicep.Core.Analyzers; using Bicep.Core.Analyzers.Linter; using Bicep.Core.Analyzers.Linter.Rules; using Bicep.Core.Configuration; using Bicep.Core.Diagnostics; using Bicep.Core.Parsing;...
36.992
130
0.613754
[ "MIT" ]
AlanFlorance/bicep
src/Bicep.Core.UnitTests/Diagnostics/LinterAnalyzerTests.cs
4,624
C#
using System; using System.Collections.Generic; namespace Charlotte { // Token: 0x020000F1 RID: 241 public class ClarifyIncompatibleCalibanFallback : CloneUnnecessaryArgonState { // Token: 0x06000A4A RID: 2634 RVA: 0x0001BEC9 File Offset: 0x0001A0C9 public void EnableOpenNeonCommunication(int ExecuteVerboseEup...
37.611429
480
0.798693
[ "MIT" ]
soleil-taruto/Hatena
a20201226/Decompile/Confused_01/Elsa20200001/ClarifyIncompatibleCalibanFallback.cs
13,166
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("Pro...
37.567568
84
0.746043
[ "MIT" ]
CGGTeam/Projet1-5B6
Projet1-5B6/Properties/AssemblyInfo.cs
1,393
C#
/// /// See COPYING file for licensing information /// using System; using com.mosso.cloudfiles.domain.request.Interfaces; using com.mosso.cloudfiles.utils; namespace com.mosso.cloudfiles.domain.request { public class SetPublicContainerDetails : IAddToWebRequest { private readonly string _cdnManagemen...
42.711864
186
0.669444
[ "Apache-2.0" ]
seanlinmt/tradelr
com.mosso.cloudfiles/Domain/Request/SetPublicContainerDetails.cs
2,520
C#
using System; namespace FlatBuffers { public static class Helpers { public static VectorOffset SetVector<T>(FlatBufferBuilder builder, OffsetArrayPool.Array<T> array) where T : class { for (int i = array.position - 1; i >= 0; --i) builder.AddOffset(array.offsets[i]....
30.384615
122
0.529114
[ "MIT" ]
llisper/SharpFlatbuffers
SharpFlatbuffers/Helpers.cs
792
C#
using System; using System.Collections.Generic; using System.Text; using Utils.NET.Geometry; using Utils.NET.IO.Xml; namespace TitanCore.Data.Components.Projectiles { public class ParametricProjectileData : ProjectileData { public override ProjectileType Type => ProjectileType.Parametric; ///...
30.853659
149
0.603953
[ "MIT" ]
steele123/Trials-Of-Titan
Client/Project-Titan-Client/Assets/Plugins/TitanCore/Data/Components/Projectiles/ParametricProjectileData.cs
1,267
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. #nullable disable using System.Collections.Immutable; using System.Diagnostics; using System.Threading; namespace...
30.23913
132
0.666068
[ "MIT" ]
CyrusNajmabadi/roslyn
src/Compilers/CSharp/Portable/Symbols/PublicModel/ParameterSymbol.cs
2,784
C#
// ------------------------------------------------------------------------------ // <auto-generated> // Generated by Xsd2Code. Version 3.4.0.18239 Microsoft Reciprocal License (Ms-RL) // <NameSpace>Mim.V4200</NameSpace><Collection>Array</Collection><codeType>CSharp</codeType><EnableDataBinding>False</EnableDat...
38.675595
1,358
0.562524
[ "MIT" ]
Kusnaditjung/MimDms
src/Mim.V4200/Generated/PRPA_MT000002UK02AAGRequestDetails.cs
12,995
C#
// Copyright (c) Alexandre Mutel. All rights reserved. // Licensed under the BSD-Clause 2 license. // See license.txt file in the project root for full license information. using System.Globalization; namespace BananaLoader.Tomlyn.Syntax { /// <summary> /// An integer TOML value syntax node. /// </summary...
29.754386
133
0.579599
[ "Apache-2.0", "MIT" ]
NaNraptor/BananaLoader
BananaLoader.AssemblyGenerator/Tomlyn/Syntax/IntegerValueSyntax.cs
1,696
C#
using System; class PrintMyName { static void Main() { Console.WriteLine("My name is Ivan Ivanov"); } }
12.6
52
0.595238
[ "MIT" ]
glifada/High-Quality-Code-Homeworks
C#-Part1/01. Intro-Programming-Homework/Problem-5.PrintMyName/Program.cs
128
C#
using System; namespace LogJoint.UI.Presenters.IssueReportDialogPresenter { public class Presenter : IPresenter { readonly IPromptDialog promptDialog; readonly Telemetry.ITelemetryCollector telemetryCollector; readonly Telemetry.ITelemetryUploader telemetryUploader; public Presenter( Telemetry.I...
27.923077
79
0.743802
[ "MIT" ]
logjointfork/logjoint
trunk/presenters/IssueReportDialogPresenter/IssueReportDialogPresenter.cs
1,089
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. // ------------------------------------------------------------------------------ // Changes to this file must follow...
74.5051
617
0.713992
[ "MIT" ]
Azure-2019/corefx
src/System.Runtime/ref/System.Runtime.cs
628,227
C#
using System; using System.Collections.Generic; using System.Data.Entity; using System.Linq; using System.Text; using System.Threading.Tasks; using Dental.DataAccess.Dals.Base; using Dental.DataAccess.Interface; using Dental.Entities.Tables; namespace Dental.DataAccess.Dals { public class TreatmentDal : Reposito...
22.25
68
0.739326
[ "MIT" ]
hkmky/DentalProject
Back-End/Dental.DataAccess/Dals/TreatmentDal.cs
447
C#
// // Copyright (C) 2012 DataStax Inc. // // 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 applicab...
44.502674
211
0.52235
[ "Apache-2.0" ]
JSSTR/csharp-driver
Cassandra.Data.Linq.MSTest/LinqUTTests.cs
8,324
C#
// <autogenerated> // This file was generated by T4 code generator Gte.string.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 stati...
29.551724
100
0.640607
[ "MIT" ]
sagifogel/Ramda.NET
Ramda/Gte.string.cs
1,716
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...
30.964912
109
0.675921
[ "Apache-2.0" ]
NGL321/aws-sdk-net
sdk/src/Services/Personalize/Generated/Model/CreateBatchInferenceJobResponse.cs
1,765
C#
using System.Linq; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp.Syntax; namespace ProtobufMinifySharp.Minifiers { public class StripDebuggerAttributesMinifier : IProtobufMinifier { public static readonly StripDebuggerAttributesMinifier Instance = new(); public Syn...
31.185185
118
0.595012
[ "MIT" ]
tdupont750/ProtobufMinifySharp
ProtobufMinifySharp.Core/Minifiers/StripDebuggerAttributesMinifier.cs
844
C#
namespace AsyncResetEventTests; public class AsyncMessagePumpTests { [Fact] public void NullCallbackThrows() { Assert.ThrowsAny<ArgumentNullException>(() => new AsyncMessagePump<string>(null!)); } [Fact] public void CallsSynchronously() { var sb = new StringBuilder(); ...
26.872727
91
0.507442
[ "MIT" ]
Shane32/AsyncResetEvents
src/Tests/AsyncMessagePumpTests.cs
2,956
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.Runtime.CompilerServices; [assembly: InternalsVisibleTo("Microsoft.AspNetCore.ResponseCaching.Tests, PublicKey=00240000048000009400000006020000002400005253413100040000...
84
408
0.906463
[ "MIT" ]
3ejki/aspnetcore
src/Middleware/ResponseCaching/src/Properties/AssemblyInfo.cs
590
C#
using System; namespace SqlBackupTools.Restore { public class DatabaseInfo { public string Name { get; set; } public DatabaseState State { get; set; } } public class RestoreHistoryInfo { public string DbName { get; set; } public DatabaseState State { get; set; } ...
23.666667
50
0.615023
[ "MIT" ]
LuccaSA/SqlBackupTools
src/SqlBackupTools/Restore/DatabaseInfo.cs
428
C#
using System; using System.ComponentModel.Composition; using System.Globalization; using System.Linq; using System.Text.RegularExpressions; using NuPattern.VisualStudio.Solution; namespace NuPattern.Runtime.UriProviders { /// <summary> /// Provides support for uris that reference resources in a solution. ...
35.023438
155
0.550524
[ "Apache-2.0" ]
dbremner/nupattern
Src/Runtime/Source/Runtime.Core/UriProviders/PackUriProvider.cs
4,485
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.Text; namespace System.Net.Mime { internal static class MailBnfHelper { // characters allowed in atoms internal static...
37.891304
160
0.462294
[ "MIT" ]
LoopedBard3/runtime
src/libraries/System.Net.Mail/src/System/Net/Mail/MailBnfHelper.cs
15,687
C#
using System; using System.Collections.Generic; using System.Diagnostics; using System.Drawing; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml.Linq; namespace MinecraftMapGenerator { public static class Program { public static void Main(string[] a...
40.491573
175
0.486646
[ "Apache-2.0" ]
alekami649/MineArt
Program.cs
14,597
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...
41.333333
173
0.641321
[ "Apache-2.0" ]
windupbutton/roscoe
src/WindupButton.Roscoe/Expressions/RoscoeExpressionVisitor.cs
5,210
C#
using UnityEngine; using UnityEngine.UI; using System.Collections; using NFSDK; public class UISelectRole : UIDialog { private NFLoginModule mLoginModule; private NFUIModule mUIModule; private NFPlayerModule mPlayerModule; private NFIEventModule mEventModule; private Transform mContentList; private G...
27.666667
85
0.678087
[ "Apache-2.0" ]
JunAFa/NoahGameFrame
NFClient/UnitySDK/Assets/NF/UI/UISelectRole.cs
2,658
C#
using System; using System.Collections.Generic; using System.Text; namespace Inheritance { public class Student : Person { public Student(string name, string school) :base(name) { this.School = school; } public string School { get; set; } } }
17.444444
50
0.579618
[ "MIT" ]
BorislavVladimirov/C-Software-University
C# OOP June 2019/Inheritance/Inheritance/Student.cs
316
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...
36.296296
246
0.642092
[ "Apache-2.0" ]
pulumi/pulumi-azure-nextgen
sdk/dotnet/Network/Latest/GetFirewallPolicyRuleCollectionGroup.cs
3,920
C#
// // Copyright (c) Brian Hernandez. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for details. // using UnityEngine; using UnityEngine.UI; namespace SpaceFighter { /// <summary> /// Shows throttle and speed of the player ship. /// </summary> ...
27.393939
223
0.559735
[ "MIT" ]
spudtracktoad/ArcadeSpaceFlightExample
Assets/ArcadeSpaceFlight/Code/UI/SpeedUI.cs
906
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> //----------------------------------------...
30.970588
84
0.475783
[ "MIT" ]
2sic/resizer
Samples/WebP/Default.aspx.designer.cs
1,055
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 1.2.2.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. n...
50.647303
284
0.577708
[ "MIT" ]
AzureAutomationTeam/azure-sdk-for-net
src/SDKs/Cdn/Management.Cdn/Generated/CustomDomainsOperationsExtensions.cs
24,412
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> //----------------------------------...
36.511364
96
0.530345
[ "MIT" ]
EngageSoftware/Engage-Publish
CategoryControls/CategoryPermissions.ascx.designer.cs
3,213
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.Immutable; using System.Threading.Tasks; using Microsoft.CodeAnalysis.CodeRefactorings; using Microsoft.CodeAnalysis.CSharp.ConvertA...
21.851563
161
0.563461
[ "Apache-2.0" ]
AdamSpeight2008/roslyn-1
src/EditorFeatures/CSharpTest/ConvertAutoPropertyToFullProperty/ConvertAutoPropertyToFullPropertyTests.cs
25,175
C#
namespace CustomCode.Core.EditorConfig { public sealed class PatternMatchingOverAsWithCastCheck { public void ShowCase() { var foo = 0; // csharp_style_pattern_matching_over_is_with_cast_check = true:error if (foo is int i) { } ...
24.142857
82
0.530572
[ "MIT" ]
git-custom-code/Core-EditorConfig
src/Core.EditorConfig.Showcase/CodeStyles/CSharp/PatternMatching/PatternMatchingOverAsWithCastCheck.cs
507
C#