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
#region License // // Copyright (c) 2007-2018, Sean Chambers <schambers80@gmail.com> // // 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 // ...
29.928571
75
0.739857
[ "Apache-2.0" ]
quesadaao/fluentmigrator
src/FluentMigrator.Abstractions/Builders/Schema/Column/ISchemaColumnSyntax.cs
838
C#
using SimpleInjector; using Study.Algorithms; using Study.Algorithms.Sorters; using Study.Structures; using Study.Structures.PartialFunctions; using Study.Structures.Queues; using Study.Structures.Stacks; using System; namespace UnitTests { static class Common { public static Container Container; ...
31.571429
121
0.697964
[ "MIT" ]
landon/InterviewStudy
UnitTests/Common.cs
886
C#
// Copyright (c) Stride contributors (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.Concurrent; using System.Collections.Generic; using Syste...
40.084932
181
0.566947
[ "MIT" ]
Aggror/Stride
sources/engine/Stride.Engine/Engine/SceneInstance.cs
14,631
C#
using Microsoft.AspNetCore.Builder; using System; namespace Lefebvre.eLefebvreOnContainers.Services.Google.Gmail.API.Infrastructure.Middlewares { public static class FailingMiddlewareAppBuilderExtensions { public static IApplicationBuilder UseFailingMiddleware(this IApplicationBuilder builder) ...
34.333333
127
0.705964
[ "MIT" ]
lefevbre-organization/eShopOnContainers
src/Services/Google/GoogleGmail.API/Infrastructure/Middlewares/FailingMiddlewareAppBuilderExtensions.cs
723
C#
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Numerics; namespace Tasks { public class B { public static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = fals...
37.236111
158
0.473704
[ "CC0-1.0" ]
AconCavy/AtCoder.Tasks.CS
Other/CODE-FORMULA-2014-QUALA/Tasks/B.cs
2,681
C#
using System; using System.Collections.Generic; using System.Text; namespace Stategram.Attributes { public class AcceptCallbacksAttribute : Attribute { } }
15.454545
53
0.747059
[ "MIT" ]
swifteg/Stategram
Stategram/Attributes/AcceptCallbacksAttribute.cs
172
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...
32.70922
107
0.605811
[ "Apache-2.0" ]
Bio2hazard/aws-sdk-net
sdk/src/Services/Inspector/Generated/Model/GetExclusionsPreviewRequest.cs
4,612
C#
using Microsoft.AspNetCore.Mvc; using Portray.Models; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Portray.Hosts.WebApp.Controllers { [Route("api/[controller]")] public class AllocationController : Controller { private readonly IEnumerable<Instrument...
38.34
112
0.510694
[ "MIT" ]
AmbroiseCouissin/portray
Portray/Portray.Hosts.WebApp/Controllers/AllocationController.cs
3,836
C#
// Instance generated by TankLibHelper.InstanceBuilder // ReSharper disable All namespace TankLib.STU.Types { [STUAttribute(0xCB3B66C7)] public class STU_CB3B66C7 : STU_CCDF50E7 { } }
21.888889
54
0.746193
[ "MIT" ]
Mike111177/OWLib
TankLib/STU/Types/STU_CB3B66C7.cs
197
C#
namespace Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801 { using static Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.Extensions; /// <summary> /// The list of user assigned identities associated with the resource. The user identity dictionary key references will be /// AR...
71.046296
384
0.706764
[ "MIT" ]
Arsasana/azure-powershell
src/Functions/generated/api/Models/Api20190801/ManagedServiceIdentityUserAssignedIdentities.json.cs
7,566
C#
// Copyright (c) Tunnel Vision Laboratories, LLC. All Rights Reserved. // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. namespace StyleCop.Analyzers.Test.DocumentationRules { using System.Collections.Generic; using System.Threading; using System.T...
27.482979
156
0.637764
[ "Apache-2.0" ]
morsiu/StyleCopAnalyzers
StyleCop.Analyzers/StyleCop.Analyzers.Test/DocumentationRules/SA1607UnitTests.cs
12,919
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Reactive; using Force.DeepCloner; using MessageCommunicator.TestGui.Data; using ReactiveUI; namespace MessageCommunicator.TestGui.ViewServices { public class ConnectionConfigControlViewModel : OwnViewModelBas...
37.177778
140
0.632995
[ "MIT" ]
Pinny93/MessageCommunicator
MessageCommunicator.TestGui/ViewServices/_ConnectionConfigControl/ConnectionConfigControlViewModel.cs
3,348
C#
using System.Threading.Tasks; using MetaBoyTipBot.Configuration; using MetaBoyTipBot.Constants; using MetaBoyTipBot.Repositories; using MetaBoyTipBot.Services; using MetaBoyTipBot.TableEntities; using Microsoft.Extensions.Options; using Moq; using NUnit.Framework; using Telegram.Bot.Types; using Telegram.Bot.Types.Rep...
38.597015
165
0.683295
[ "MIT" ]
jvanderbiest/MetaBoyTipBot
MetaBoyTipBot.Tests/Unit/Services/TopUpServiceTests.cs
2,588
C#
using System; using System.Collections.Generic; using System.Text; namespace Uno.Foundation.Interop { /// <summary> /// Marks a struct as an interop message for the <see cref="TSBindingsGenerator"/> TypeScript generator. /// </summary> [AttributeUsage(AttributeTargets.Struct, AllowMultiple = false)] public class...
24.466667
105
0.757493
[ "Apache-2.0" ]
06needhamt/uno
src/Uno.Foundation/Interop/TSInteropMessageAttribute.wasm.cs
369
C#
using System; using System.Diagnostics; using System.Linq.Expressions; using System.Reflection; namespace iayos.DapperCRUD { /// <summary> /// How to use nice short type-safe property names on generic classes /// http://ivanz.com/2009/12/04/how-to-avoid-passing-property-names-as-strings-using-c-3-0-expression-tree...
31.890244
126
0.70631
[ "MIT" ]
daleholborow/iayos.DapperCRUD
src/iayos.DapperCRUD/PropertyHelper.cs
2,615
C#
using System.Linq.Dynamic.Core.Parser; using System.Linq.Expressions; using NFluent; using Xunit; namespace System.Linq.Dynamic.Core.Tests { public class ConstantExpressionWrapperTests { private readonly IConstantExpressionWrapper _constantExpressionWrapper; public ConstantExpressionWrapperTe...
29.521739
103
0.610825
[ "Apache-2.0" ]
akrisiun/System.Linq.Dynamic.Core
test/System.Linq.Dynamic.Core.Tests/ConstantExpressionWrapperTests.cs
2,718
C#
// Copyright 2009-2013 Matvei Stefarov <me@matvei.org> using System; using System.Globalization; using System.Text; using JetBrains.Annotations; namespace fCraft { // Helper methods for working with strings and for serialization/parsing static unsafe class FormatUtil { // Quicker StringBuilder.Append(...
34.222222
101
0.460498
[ "BSD-3-Clause" ]
AliDeym/Caznowl-Cube-Zombie
fCraft/Utils/FormatUtil.cs
3,698
C#
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------------ namespace System.ServiceModel.Discovery.Configuration { using System; using System.Comp...
37.117949
127
0.592705
[ "Apache-2.0" ]
295007712/295007712.github.io
sourceCode/dotNet4.6/ndp/cdf/src/NetFx40/System.ServiceModel.Discovery/System/ServiceModel/Discovery/Configuration/UdpDiscoveryEndpointElement.cs
7,238
C#
using System.Reflection; [assembly: AssemblyTitle("Expression Blend 2012 SortedResourcesPane Extension")] [assembly: AssemblyDescription("A Microsoft Expression Blend extension to automatically order the list of resources in the Resources pane.")]
50.8
142
0.811024
[ "Apache-2.0" ]
mhoyer/SortedResourcePane.Extension
SortedResourcePane.Blend2012/Properties/AssemblyInfo.cs
256
C#
#pragma checksum "..\..\App.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "D45EE6B304881A0C2F9608C746A532685867CCF2" //------------------------------------------------------------------------------ // <auto-generated> // 이 코드는 도구를 사용하여 생성되었습니다. // 런타임 버전:4.0.30319.42000 // // 파일 내용을 변경하면 잘못된 동작이 발생할 수 있으며...
30.56338
118
0.602765
[ "Apache-2.0" ]
minji-o-j/Healing-Machine-with-BrainWave
test (2)/test/obj/Debug/App.g.cs
2,306
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; using System.Diagnostics.CodeAnalysis; using System.Linq; using Microsoft.CodeAnal...
33.112903
133
0.572577
[ "MIT" ]
AlexanderSemenyak/roslyn
src/VisualStudio/Core/Impl/CodeModel/InternalElements/AbstractCodeType.cs
8,214
C#
using Namotion.Storage; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace Namotion.Messaging.Storage.Internal { internal class BlobMessagePublisher<T> : MessagePublisher<T> { internal const string Stora...
38.314815
139
0.555824
[ "MIT" ]
RicoSuter/Namotion.Messaging
src/Namotion.Messaging.Storage/Internal/BlobMessagePublisher.cs
2,071
C#
using System; using System.Collections; using System.Collections.Generic; /// <summary> /// <para>A dynamic type implementation for JavaScript style objects and primitives in Unity C# (with no System.dynamic support) /// /// Implements some functionality of a dynamic type with the class JSObject since U...
33.02439
186
0.531065
[ "MIT" ]
SouICry/JSObject_For_Unity_CSharp
JSObject.cs
21,664
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.Diagnostics; namespace Microsoft.CodeAnalysis.Emit { internal struct EmitContext { public readonly CommonPEModuleBuilder Module...
31.791667
161
0.68021
[ "MIT" ]
1Crazymoney/cs2cpp
CoreSource/Emit/Context.cs
765
C#
using System; namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// <summary> /// <para>表示 [POST] /shop/order/get_list_by_finder 接口的请求。</para> /// </summary> public class ShopOrderGetListByFinderRequest : WechatApiRequest, IInferable<ShopOrderGetListByFinderRequest, ShopOrderGetListByFinderResponse> ...
40.859649
146
0.657364
[ "MIT" ]
OrchesAdam/DotNetCore.SKIT.FlurlHttpClient.Wechat
src/SKIT.FlurlHttpClient.Wechat.Api/Models/Shop/Order/ShopOrderGetListByFinderRequest.cs
2,497
C#
#region License // Copyright (c) 2007 James Newton-King // // Permission is hereby granted, free of charge, to any person // obtaining a copy of this software and associated documentation // files (the "Software"), to deal in the Software without // restriction, including without limitation the rights to use, // copy,...
38.705596
165
0.610196
[ "Apache-2.0" ]
cty901/SAEA
Src/SAEA.Common/Newtonsoft.Json/Serialization/JsonContract.cs
15,910
C#
namespace DFC.Composite.Shell.Models { public class ActionGetRequestModel { public string Path { get; set; } public string Data { get; set; } } }
19.444444
40
0.617143
[ "MIT" ]
SkillsFundingAgency/dfc-composite-shell
DFC.Composite.Shell.Models/ActionGetRequestModel.cs
177
C#
using System.Threading; using System.Threading.Tasks; namespace MSFramework.Application { public interface IRequestHandler<in TRequest> where TRequest : IRequest { Task HandleAsync(TRequest request, CancellationToken cancellationToken = default); } public interface IRequestHandler<in TRequest, TResponse> where ...
30.266667
95
0.80837
[ "MIT" ]
jonechenug/MSFramework
src/MSFramework/Application/IRequestHandler.cs
454
C#
using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Data.SQLite; using System.Diagnostics; using System.IO; using System.Linq; using System.Threading.Tasks; namespace pRoom { public static class appInfo { public static string serverID = "123"; ...
37.385714
164
0.635078
[ "Apache-2.0" ]
torkashvand630/room
Models/appInfo.cs
2,619
C#
using System; using System.Windows.Input; namespace BindingEngine.Benchmark { public class DelegateCommand : ICommand { #region Constructors public DelegateCommand(Action executeMethod) : this(executeMethod, null) { } public DelegateCommand(Action executeM...
21.725
87
0.519563
[ "MIT" ]
zhouyongh/BindingEngine
BindingEngine.Benchmark/Helpers/DelegateCommand.cs
3,478
C#
// *** WARNING: this file was generated by crd2pulumi. *** // *** 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.Kubernetes.Types.I...
58.025316
422
0.703316
[ "Apache-2.0" ]
pulumi/pulumi-kubernetes-crds
operators/keda/dotnet/Kubernetes/Crds/Operators/Keda/Keda/V1Alpha1/Inputs/ScaledObjectSpecJobTargetRefTemplateSpecSecurityContextArgs.cs
4,584
C#
using System.Collections.Generic; namespace Plivo.XML { public class Conference : PlivoElement { public Conference(string body, Dictionary<string, string> parameters) : base(body, parameters) { Nestables = new List<string>() { "" }; ValidAttributes = new Lis...
42
134
0.573696
[ "MIT" ]
EIrwin/plivo-dotnet
Plivo/XML/Conference.cs
884
C#
using System; using System.Collections.Generic; using System.Text; using System.ComponentModel.DataAnnotations.Schema; using CodeGenerator.Infra.Common.Entity; namespace CodeGenerator.Core.Entities { /// <summary> /// 角色授权 /// </summary> public class RoleAuthorize : BaseEntity { /// <summary> /...
21.891892
62
0.640741
[ "MIT" ]
ileego/CodeGenerator
src/CodeGenerator.Core/Entities/RoleAuthorize.cs
870
C#
using System; using System.Linq; using System.Threading.Tasks; using Hangfire; using Hangfire.Console; using Hangfire.Server; using Novinichka.Common; using Novinichka.Data.Common.Repositories; using Novinichka.Data.Models; using Novinichka.Services.Data.Interfaces; using Novinichka.Services.NewsSources; namespace No...
31.084746
115
0.615049
[ "MIT" ]
georgidelchev/novini4ka
Novinichka.Services.CronJobs/GetLatestNewsCronJob.cs
1,836
C#
namespace Orc.Controls { public enum ExpandDirection { Down = 0, Up = 1, Left = 2, Right = 3, } }
13
31
0.447552
[ "MIT" ]
Orcomp/Orc.Controls
src/Orc.Controls/Controls/Expander/Models/ExpandDirection.cs
145
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...
31.608696
75
0.730399
[ "Apache-2.0" ]
FrancisChung/steeltoe
src/CircuitBreaker/src/Abstractions/RequestCollapserScope.cs
729
C#
using FluentAssertions; using Microsoft.AspNetCore.Mvc; using Sfa.Tl.ResultsAndCertification.Common.Helpers; using Sfa.Tl.ResultsAndCertification.Web.ViewModel.TrainingProvider.Manual; using BreadcrumbContent = Sfa.Tl.ResultsAndCertification.Web.Content.ViewComponents.Breadcrumb; using Xunit; namespace Sfa.Tl.Results...
39.931034
121
0.716753
[ "MIT" ]
SkillsFundingAgency/tl-result-and-certification
src/Tests/Sfa.Tl.ResultsAndCertification.Web.UnitTests/Controllers/TrainingProviderControllerTests/SearchLearnerRecordGet/When_Cache_NotFound.cs
1,160
C#
using GMap.NET; using GMap.NET.WindowsForms; using GMap.NET.WindowsForms.Markers; using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Net; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; name...
30.557769
149
0.527119
[ "MIT" ]
wcss2010/TaskSimulator-DotNet
TaskSimulator/TaskSimulator/Forms/FlyPathMapMonitor.cs
7,920
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DCT.TestDataGenerator.Functor { internal class PriorAttainWithAppProgTypeAim { public PriorAttain Attain; public ApprenticeshipProgrammeTypeAim PTA; } }
20.6
50
0.760518
[ "MIT" ]
Amos-A/DC-ILR-1819-Test-Data-Generation
src/ESFA.DC.ILR.TestDataGenerator.Functors/Learner/PriorAttain/PriorAttainWithAppProgTypeAim.cs
311
C#
/** * Copyright 2015 Canada Health Infoway, 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...
44.16129
92
0.637448
[ "ECL-2.0", "Apache-2.0" ]
CanadaHealthInfoway/message-builder-dotnet
message-builder-release-r02_05_00/Main/Ca/Infoway/Messagebuilder/Model/Pcs_mr2009_r02_05_00/Common/Coct_mt270010ca/AdditionalSIGInstruction.cs
4,107
C#
using System; using System.Collections.Generic; using System.Xml; using IntelligentComments.Comments.Calculations.Core.DocComments.Utils; using JetBrains.Annotations; using JetBrains.ReSharper.Psi.Tree; using JetBrains.ReSharper.Psi.Util; namespace IntelligentComments.Comments.Calculations.Core.DocComments; public ab...
37.037736
90
0.784513
[ "MIT" ]
aerooneqq/IntelligentComments
src/dotnet/IntelligentComments/src/Comments/Calculations/Core/DocComments/XmlDocVisitorWitCustomElements.cs
1,963
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 Microsoft.CodeAnalysis.Host; using Microsoft.CodeAnalysis.Text; using Microsoft.VisualStud...
49.136364
143
0.694265
[ "MIT" ]
333fred/roslyn
src/EditorFeatures/Core/Undo/ISourceTextUndoService.cs
2,164
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Irony.Parsing { /// <summary>Base class for more specific reduce actions. </summary> public partial class ReduceParserAction: ParserAction { public readonly Production Production; public ReducePa...
50.650307
148
0.703004
[ "MIT" ]
ArsenShnurkov/Irony-GtkSharpExplorer
Irony/Parsing/Parser/ParserActions/ReduceParserActions.cs
8,258
C#
using MediatR; using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; using EventSorcery.Events.Application; using EventSorcery.Events.Measuring; using EventSorcery.Events.Mqtt; using EventSorcery.Infrastruct...
39.401544
167
0.55316
[ "Apache-2.0" ]
dpsenner/event-sorcery
src/csharp/Components.Measuring/MeasurementRequestGenerator.cs
10,207
C#
using System; using System.Collections.Generic; using System.Linq; using Autodesk.Revit.DB; using Speckle.Core.Kits; using Speckle.Core.Models; using BE = Objects.BuiltElements; using BER = Objects.BuiltElements.Revit; using BERC = Objects.BuiltElements.Revit.Curve; using DB = Autodesk.Revit.DB; namespace Objects.Con...
30.886525
220
0.606582
[ "Apache-2.0" ]
pkratten/speckle-sharp
Objects/Converters/ConverterRevit/ConverterRevitShared/ConverterRevit.cs
13,067
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DataStructures.Solutions.Fundamentals.ListsAndComplexity { public static class _05CountOfOccurences { public static Dictionary<int, int> CountOfOccurences(this int[] numbers) ...
28.5
80
0.537037
[ "MIT" ]
Givko/DataStructures
DataStructuresSolutions/DataStructures.Solutions/Fundamentals/ListsAndComplexity/05CountOfOccurences.cs
1,028
C#
using System; using System.Linq; using System.IO; using System.Text; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Runtime.Serialization; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using PureCloudPlatform.Client.V2.Client; namespace PureClo...
35.576108
443
0.503791
[ "MIT" ]
F-V-L/platform-client-sdk-dotnet
build/src/PureCloudPlatform.Client.V2/Model/LocationDefinition.cs
18,464
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Shinomotazh.Logic { class TireService { Random _random = new Random(); Ads _ads = new Ads(); List<Demands> _demands = new List<Demands>();//Список заказов по дн...
28.455696
120
0.625445
[ "MIT" ]
Zeleno-glazka/github-slideshow
Shinomotazh(1)/Logic/TireService.cs
2,339
C#
using System; namespace AbstractIO { /// <summary> /// A base class implementing the IDisposable interface and pattern and letting the dipose happen in a virtual /// method. /// </summary> public abstract class DisposableResourceBase : IDisposable { /// <summary> /// Disposes t...
31.693548
116
0.569975
[ "MIT" ]
piwi1263/AbstractIO
source/AbstractIO/DisposableResourceBase.cs
1,967
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; namespace web { public class Startup { ...
28.18
107
0.567069
[ "MIT" ]
pollirrata/memoru
source/web/Startup.cs
1,409
C#
// Decompiled with JetBrains decompiler // Type: BlueStacks.BlueStacksUI.TopBar // Assembly: Bluestacks, Version=4.250.0.1070, Culture=neutral, PublicKeyToken=null // MVID: 99F027F6-79F1-4BCA-896C-81F7B404BE8F // Assembly location: C:\Program Files\BlueStacks\Bluestacks.exe using BlueStacks.BlueStacksUI.BTv; using Bl...
42.009615
391
0.702335
[ "MIT" ]
YehudaEi/Bluestacks-source-code
src/Bluestacks/BlueStacks/BlueStacksUI/TopBar.cs
43,692
C#
using System.Collections.Generic; using System.Linq; using Android.App; using Android.Content; using Android.Content.PM; using Android.OS; using Android.Widget; using WorldOfEnglishWord.BisnessLogic; namespace WorldOfEnglishWord.Controllers.Test { [Activity(Label = "SolutionTestActivity", ScreenOrientation = Scre...
36.348101
141
0.579314
[ "MIT" ]
Bezuglyash/WorldOfEnglishWords
WorldOfEnglishWord/Controllers/Test/SolutionTestActivity.cs
5,822
C#
using Microsoft.AspNetCore.Identity.EntityFrameworkCore; using Microsoft.EntityFrameworkCore; using Zero.Models; namespace Zero.Data { public class ApplicationDbContext : IdentityDbContext<ApplicationUser, ApplicationRole, string> { public ApplicationDbContext(DbContextOptions<ApplicationDbContext> op...
25.533333
99
0.73107
[ "MIT" ]
VisualAcademy/RedPlus.RazorPages
Zero/Data/ApplicationDbContext.cs
385
C#
// Copyright (c) 2014-2020 Sarin Na Wangkanai, All Rights Reserved. // The Apache v2. See License.txt in the project root for license information. using System; using Wangkanai.Detection.Models; namespace Wangkanai.Detection.Services { /// <summary> /// Provides the APIs for query <see cref="Crawler"/>. /...
28.333333
78
0.583529
[ "Apache-2.0" ]
ApolonTorq/Detection
src/Services/Interfaces/ICrawlerService.cs
850
C#
/******************************************************************************* * Copyright 2012-2019 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...
42.86194
258
0.58884
[ "Apache-2.0" ]
QPC-database/aws-tools-for-powershell
modules/AWSPowerShell/Cmdlets/SageMaker/Basic/Get-SMDeviceList-Cmdlet.cs
11,487
C#
using System; namespace Craftgate.Response.Dto; public class ReportingPaymentTransaction : PaymentTransaction { public DateTime CreatedDate { get; set; } public DateTime TransactionStatusDate { get; set; } public decimal RefundablePrice { get; set; } public MemberResponse? SubMerchantMember { get; set;...
35.533333
61
0.733583
[ "MIT" ]
selcukyavuz/craftgate-dotnet-client
Craftgate/Response/Dto/ReportingPaymentTransaction.cs
533
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("Tri...
37.837838
84
0.747857
[ "MIT" ]
Radostta/Programming-Basics-And-Fundamentals-SoftUni
Draw-With-Loops/Triangle-ExamAdd/Properties/AssemblyInfo.cs
1,403
C#
// Inspired by // http://blogs.msdn.com/ericlippert/archive/2007/03/28/lambda-expressions-vs-anonymous-methods-part-five.aspx using System; class TestClass { delegate void DT (T t); delegate void DF (F f); struct T { } struct F { } static void P (DT dt) { Console.WriteLine ("True"); dt (new T ()); } ...
20.963636
110
0.545533
[ "Apache-2.0" ]
121468615/mono
mcs/tests/gtest-lambda-06.cs
1,153
C#
using System.Threading.Tasks; using Microsoft.AspNetCore.Identity.UI.Services; using Microsoft.Extensions.Options; using SendGrid; using SendGrid.Helpers.Mail; namespace AudioBoos.Server.Services.Email; public class EmailSender : IEmailSender { public EmailOptions _settings { get; } //set only via Secret Manage...
33.393939
86
0.696007
[ "MIT" ]
audioboos/audioboos-backend
audioboos-server/Services/Email/EmailSender.cs
1,104
C#
using RestSharp; using RestSharp.Authenticators; using System; using System.Net; namespace SugarCRMRestClient { public class SugarAuthenticator : IAuthenticator { private SugarOAuthRequest _authenticationrequest; private string _baseUrl; private SugarOAuthToken _oauthToken...
35.416667
96
0.587843
[ "MIT" ]
mshenoy83/SugarCRMRestClient
src/SugarAuthenticator.cs
2,552
C#
using System; using System.Globalization; using Miningcore.Extensions; using Newtonsoft.Json; namespace Miningcore.Serialization { public class HexToByteArrayJsonConverter : JsonConverter { public override bool CanConvert(Type objectType) { return typeof(byte[]) == objectType; ...
26.787879
124
0.617647
[ "MIT" ]
BTHPOS/miningcore
src/Miningcore/Serialization/HexToByteArrayJsonConverter.cs
884
C#
using Avalonia.Controls; using Avalonia.Controls.Templates; using Avalonia.Markup.Xaml.Templates; using Avalonia.Metadata; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ChangeContentBasedOnEnumSample.ViewModels { public cl...
28.032258
120
0.665132
[ "MIT" ]
timunie/Tims.Avalonia.Samples
src/ChangeContentBasedOnEnumSample/ViewModels/DataTemplateSelector.cs
871
C#
using System.Threading; using System.Threading.Tasks; using CovidInformer.Entities; namespace CovidInformer.Services { public interface IDataProvider { Task<CovidData> GetDataAsync(CancellationToken cancellationToken = default); } }
21.25
84
0.764706
[ "MIT" ]
VlaTo/CovidInformer
src/CovidInformer/CovidInformer/Services/IDataProvider.cs
257
C#
using AutoMapper; namespace CodeWarrior.App.Mappers { public class AutoMapperConfiguration { public static void Configure() { Mapper.Initialize(x => x.AddProfile<BindingModelToDatabaseModel>()); Mapper.Initialize(x => x.AddProfile<DatabaseModelToViewModel>()); }...
25.230769
80
0.643293
[ "MIT" ]
BrainStation-23/BitBook
Application/CodeWarrior.App/Mappers/AutoMapperConfiguration.cs
330
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Logging; using Serilog; using Serilog.Events; namespace AppHospital.Api...
26.38
78
0.554208
[ "MIT" ]
AppHospital/client-api
src/AppHospital.Api/Program.cs
1,321
C#
using System; using System.IO; using EnvDTE; using Microsoft.VisualStudio.Shell; using Process = System.Diagnostics.Process; namespace RapidFire { public static class OpenOutputFolderHelper { /// <summary> /// Opens the given <see cref="Project"/> project's output folder in File Explorer. ...
35.181818
133
0.615633
[ "Apache-2.0" ]
andrewphamvk/RapidFire
RapidFire/Helpers/OpenOutputFolderHelper.cs
1,550
C#
// SPDX-License-Identifier: MIT // Copyright © 2021 Oscar Björhn, Petter Löfgren and contributors namespace Daf.Core.Ssis.Wrapper.Wrappers.Tasks { public class ExpressionTaskWrapper : TaskWrapper { public ExpressionTaskWrapper(ContainerWrapper containerWrapper) : base(containerWrapper, "Microsoft.ExpressionTask")...
30
122
0.760784
[ "MIT" ]
data-automation-framework/daf-core-ssis
Daf.Core.Ssis.Wrapper/Wrappers/Tasks/ExpressionTaskWrapper.cs
515
C#
// Licensed to Elasticsearch B.V under one or more agreements. // Elasticsearch B.V licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information using System.Text; using Elastic.Xunit.XunitPlumbing; using Elasticsearch.Net; using FluentAssertions; using Nest;...
28.416667
97
0.755621
[ "Apache-2.0" ]
magaum/elasticsearch-net
tests/Tests/CodeStandards/Serialization/GeoLocationTests.cs
1,023
C#
// namespace IntraSoft.Data.Dtos.Document // { // using IntraSoft.Services.Mapping; // using IntraSoft.Data.Models; // using System.IO; // public class FileReadForMenuDto: IMapFrom<DocumentFile> // { // public int Id { get; set; } // public string FilePath { get; set; } // ...
30.153846
69
0.609694
[ "MIT" ]
vladosfi/IntraSoft
src/Data/Dtos/Files/FileReadForMenuDto.cs
394
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.Extensions.Logging; namespace ElsaDashboard.Samples.AspNetCore.SubPath.Pages { public class IndexModel : PageModel { ...
22.083333
56
0.683019
[ "MIT" ]
1002527441/elsa-core
src/samples/dashboard/aspnetcore/ElsaDashboard.Samples.AspNetCore.SubPath/Pages/Index.cshtml.cs
532
C#
using MainPageMobile.ViewModels; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Xamarin.Forms; using Xamarin.Forms.Xaml; namespace MainPageMobile.Views { [XamlCompilation(XamlCompilationOptions.Compile)] public partial class LoginPage...
26.147059
106
0.593926
[ "BSD-3-Clause" ]
Metodii/Diplomna
MainPageMobile/MainPageMobile/MainPageMobile/Views/LoginPage.xaml.cs
891
C#
using System; using System.Collections.Generic; using System.Web.Script.Serialization; using BrightcoveMapiWrapper.Model.Items; using BrightcoveMapiWrapper.Serialization; using BrightcoveMapiWrapper.Util; namespace BrightcoveMapiWrapper.Model.Containers { /// <summary> /// Represents a collection of Brigh...
25.052083
125
0.638669
[ "MIT" ]
BrightcoveOS/.NET-MAPI-Wrapper
source/BrightcoveOS .NET-MAPI-Wrapper/Model/Containers/BrightcoveItemCollection.cs
2,407
C#
using Microsoft.Azure.Cosmos.Table.Queryable; namespace Microsoft.Azure.Cosmos.Table.Extensions { internal sealed class TableExtensionExpressionParser : ExpressionParser { internal override void VisitQueryOptionExpression(FilterQueryOptionExpression fqoe) { base.FilterString = TableExtensionExpressionWriter.E...
28
89
0.82967
[ "MIT" ]
Luiz-Monad/azure-cosmos-table
src/Microsoft.Azure.Cosmos.Table.Extensions/TableExtensionExpressionParser.cs
364
C#
using System; using System.Collections; using System.Collections.ObjectModel; using System.Collections.Specialized; using System.Windows; namespace MinecraftToolsBoxSDK { public class TreeDataGridElement : ContentElement { private const string NullItemError = "The item added to the collection cannot b...
34.343137
153
0.592254
[ "MIT" ]
rcnteam/MinecraftToolsBox
MinecraftToolsBoxSDK/Controls/TreeDataGrid/TreeDataGridElement.cs
10,511
C#
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Text; namespace TextPet.Events { public class BeginReadWriteEventArgs : EventArgs { public ReadOnlyCollection<string> Files { get; } public int Amount { get; } public bool IsWrite { get; } p...
30.413793
81
0.72449
[ "MIT" ]
Prof9/TextPet
TextPet/Events/BeginReadWriteEventArgs.cs
884
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...
38.066667
313
0.600895
[ "MIT" ]
93mishra/azure-sdk-for-net
sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/BlobFolderDataSet.cs
5,139
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Identity.EntityFrameworkCore; using Microsoft.EntityFramew...
35.692308
88
0.730603
[ "MIT" ]
48355746/AspNetCore
src/Identity/samples/IdentitySample.Mvc/Models/ApplicationDbContext.cs
928
C#
// 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 distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. // Copyright (C) LibreHardwareMonitor and Contributors. // Partial Copyright (C) Michael Möller <mmoeller@openhardwaremo...
31.87234
125
0.560748
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
joye-ramone/LibreHardwareMonitor
LibreHardwareMonitor/UI/ParameterForm.cs
4,497
C#
using System.Numerics; namespace _09_PerlinShiftedOffIntegerValues { public class Metal : Material { public Vector3 Albedo; public float fuzz; public Metal(Vector3 a, float f) { this.Albedo = a; this.fuzz = f < 1 ? f : 1; } public bool ...
28.592593
97
0.598446
[ "MIT" ]
Jorgemagic/RaytracingTheNextWeek
09-PerlinShiftedOffIntegerValues/Materials/Metal.cs
774
C#
using BTCPayServer.Abstractions.Models; namespace BTCPayServer.Plugins; public class BTCPayServerPlugin : BaseBTCPayServerPlugin { public override string Identifier { get; } = nameof(BTCPayServer); public override string Name { get; } = "BTCPay Server"; public override string Description { get; } = "BTCPa...
28.833333
78
0.751445
[ "MIT" ]
wforney/btcpayserver
BTCPayServer/Plugins/BTCPayServerPlugin.cs
346
C#
using FSO.SimAntics.NetPlay.Model; using System; using System.Collections.Generic; using System.Linq; using System.IO; namespace FSO.SimAntics.Engine.Diagnostics { public class VMSyncTrace { public List<VMSyncTraceTick> History = new List<VMSyncTraceTick>(); VMSyncTraceTick _current = null;...
29.506173
79
0.500837
[ "MPL-2.0" ]
HarryFreeMyLand/newso
Src/tso.simantics/Engine/Diagnostics/VMSyncTrace.cs
2,390
C#
using System.Diagnostics; using System.Runtime.InteropServices; using System.Threading.Tasks; using WalletWasabi.Helpers; using WalletWasabi.Logging; namespace System.IO; public static class IoHelpers { /// <summary> /// Attempts to delete <paramref name="directory"/> with retry feature to allow File Explorer or an...
28.3
134
0.718576
[ "MIT" ]
CAnorbo/WalletWasabi
WalletWasabi/Helpers/IoHelpers.cs
3,962
C#
using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; using AutoMapper; using BlazorBoilerplate.Shared.DataInterfaces; using BlazorBoilerplate.Shared.DataModels; using BlazorBoilerplate.Shared.Dto.Sample; namespace BlazorBoilerplate.Storage.Stores { public clas...
35.886364
124
0.693477
[ "MIT" ]
AhLay/blazorboilerplate
src/BlazorBoilerplate.Storage/Stores/MessageStore.cs
1,581
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> //--...
39.777778
151
0.581937
[ "Apache-2.0" ]
PeterOrneholm/LegoEv3Core
samples/LegoEv3Core.Samples.Wpf/Properties/Settings.Designer.cs
1,076
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: AssemblyTi...
39.054054
85
0.725952
[ "MIT" ]
jsdelivrbot/Telerik-Academy-Homeworks
Module 1 - Essentials/02_C# Part 2/02_Multidimensional Arrays/01_Fill the matrix/Properties/AssemblyInfo.cs
1,448
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable using System.Text.Json; using Azure.Core; namespace Azure.Management.Compute.Models { public partial class OSDiskImageEncryption : IUtf8JsonSerializable { void IUtf8...
29.95122
99
0.613192
[ "MIT" ]
AbelHu/azure-sdk-for-net
sdk/testcommon/Azure.Management.Compute.2019_12/src/Generated/Models/OSDiskImageEncryption.Serialization.cs
1,228
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...
36.252252
163
0.631958
[ "Apache-2.0" ]
DetlefGolze/aws-sdk-net
sdk/src/Services/AlexaForBusiness/Generated/Model/Internal/MarshallTransformations/DeleteSkillAuthorizationRequestMarshaller.cs
4,024
C#
using System; using System.Collections.Generic; using System.Text; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; namespace Uno.UI.Samples.Content.UITests.ContentControlTestsControl { public class SelectorInheritanceTemplateSelector : DataTemplateSelector { public DataTemplate TrueTemplate { get; s...
22.138889
93
0.747804
[ "Apache-2.0" ]
06needhamt/uno
src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/ContentControlTestsControl/SelectorInheritanceTemplateSelector.cs
799
C#
using System; namespace Metaheuristics { public class DiscreteGA2OptBest4SPP : DiscreteGA { public SPPInstance Instance { get; protected set; } protected int generatedSolutions; public DiscreteGA2OptBest4SPP(SPPInstance instance, int popSize, double mutationProbability, ...
22.255319
94
0.684512
[ "MIT" ]
yasserglez/metaheuristics
Common/SPP/DiscreteGA2OptBest4SPP.cs
1,046
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable using System.Collections.Generic; using System.Text.Json; using Azure.Core; using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { public partial ...
37.285714
145
0.621967
[ "MIT" ]
93mishra/azure-sdk-for-net
sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetVMExtensionsListResult.Serialization.cs
1,566
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace App.Areas.EmployeeManagement.Models { [Table("Employee")] public class Employee { [Key] public int EmployeeId { set; get; } [Re...
26.589286
90
0.605776
[ "MIT" ]
LucasTran-tq/Business-Management-AspNet
Areas/EmployeeManagement/Models/Employee/Employee.cs
1,489
C#
#region Project Description [About this] // ================================================================================= // The whole Project is Licensed under the MIT License // ================================================================================= // =======================================...
49.536036
143
0.567427
[ "MIT" ]
DominikWiesend/wiesend
projects/Wiesend.Profiler/Profiler/ExtensionMethods/TimerExtensions.cs
10,999
C#
using System.Linq; using System.Management.Automation; using System.Net; using dotnetlink; namespace dotnetlinkps.IPConfiguration { [Cmdlet(VerbsCommon.Remove, "IPConfiguration")] public class RemoveIpConfiguration : PSCmdlet { private NetlinkSocket _socket; [Parameter] public IPAddress Ad...
27.75
125
0.627027
[ "MIT" ]
judgie97/dotnetlink
src/dotnetlinkps/IPConfiguration/RemoveIpConfiguration.cs
1,110
C#
using UnrealBuildTool; using System.IO; using System; public class JavascriptWebSocket : ModuleRules { public JavascriptWebSocket(ReadOnlyTargetRules Target) : base(Target) { PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs; PublicDependencyModuleNames.AddRange(new string[] { "Core", ...
32.969697
139
0.633272
[ "BSD-3-Clause" ]
2youyou2/Unreal.js-core
Source/JavascriptWebSocket/JavascriptWebSocket.Build.cs
2,176
C#
// Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. // Ported from https://github.com/llvm/llvm-project/tree/llvmorg-14.0.0/clang/include/clang-c // Original source is Copyright (c) the LLVM Project an...
39.88
191
0.705115
[ "MIT" ]
Microsoft/ClangSharp
sources/ClangSharp.Interop/CXCommentKind.cs
997
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...
60.826839
217
0.693187
[ "Apache-2.0" ]
InsiteVR/aws-sdk-net
sdk/src/Services/ConfigService/Generated/_bcl35/AmazonConfigServiceClient.cs
221,653
C#
 using JetBrains.Annotations; using Newtonsoft.Json; namespace Crowdin.Api.Labels { [PublicAPI] public class AddLabelRequest { [JsonProperty("title")] public string Title { get; set; } } }
17.076923
41
0.648649
[ "MIT" ]
crowdin/crowdin-api-client-dotnet
src/Crowdin.Api/Labels/AddLabelRequest.cs
224
C#
using System.Reflection; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("Chaow.Numeric")] [assembly: AssemblyDesc...
34.948718
84
0.738811
[ "MIT" ]
chaowlert/algorithm
Numeric/Properties/AssemblyInfo.cs
1,366
C#
// // Copyright (c) 2004-2016 Jaroslaw Kowalski <jaak@jkowalski.net>, Kim Christensen, Julian Verdurmen // // 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 ...
37.162664
444
0.531624
[ "BSD-3-Clause" ]
mexzo/Nlogcompile
tests/NLog.UnitTests/Targets/WebServiceTargetTests.cs
34,049
C#
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="PasswordResetNotification.cs" company="BringDream"> // BringDream 2016 // </copyright> // <summary> // The password reset notification. // </summary> // ----------------------...
30.321429
120
0.415783
[ "MIT" ]
thanhquyphan/RainMakr
RainMakr.Web.Models/Notifications/PasswordResetNotification.cs
851
C#