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 Furion; using Furion.DependencyInjection; using Furion.UnifyResult; using System; using System.Linq; using System.Reflection; namespace Microsoft.Extensions.DependencyInjection { /// <summary> /// 应用服务集合拓展类(由框架内部调用) /// </summary> [SkipScan] public static class AppServiceCollectionExtensions...
32.535088
129
0.552979
[ "Apache-2.0" ]
dotNetTreasury/Furion
framework/Furion/App/Extensions/AppServiceCollectionExtensions.cs
7,936
C#
using System; using System.Diagnostics; using System.IO; using System.Threading; using Microsoft.VisualStudio.TestTools.UnitTesting; using OpenQA.Selenium; using OpenQA.Selenium.Appium; using OpenQA.Selenium.Appium.Windows; using OpenQA.Selenium.Interactions; namespace PowerToysTests { public class PowerToysSessi...
35.124555
846
0.542047
[ "MIT" ]
S3curityPlu5/PowerToys
src/tests/win-app-driver/PowerToysSession.cs
9,870
C#
#pragma warning disable 108 // new keyword hiding #pragma warning disable 114 // new keyword hiding namespace Windows.Devices.Bluetooth.GenericAttributeProfile { #if __ANDROID__ || __IOS__ || NET46 || __WASM__ || __MACOS__ [global::Uno.NotImplemented] #endif public partial class GattLocalDescriptor { #if __AND...
50.336957
263
0.801771
[ "Apache-2.0" ]
AlexTrepanier/Uno
src/Uno.UWP/Generated/3.0.0.0/Windows.Devices.Bluetooth.GenericAttributeProfile/GattLocalDescriptor.cs
4,631
C#
using System; using System.Buffers; using System.Linq; namespace Parquet.Data { abstract class BasicPrimitiveDataTypeHandler<TSystemType> : BasicDataTypeHandler<TSystemType> where TSystemType : struct { private static readonly ArrayPool<int> IntPool = ArrayPool<int>.Shared; public BasicPrimit...
31.525773
162
0.596468
[ "MIT" ]
Rokannon/parquet-dotnet
src/Parquet/Data/BasicPrimitiveDataTypeHandler.cs
3,060
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ModeleVueVueModele { public class VueArticle : IVue { // Affiche le titre de l'article private string titre; public string TitreArticle { ...
25.837209
90
0.549055
[ "Unlicense" ]
thecakeisreal/Exemples-Architectures
Modele-Vue-Vue modele/VueArticle.cs
1,118
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace CoreQuiz.Services { // This class is used by the application to send Email and SMS // when you turn on two-factor authentication in ASP.NET Identity. // For more details see this link http://go.micro...
31.730769
83
0.66303
[ "MIT" ]
witoldlitwin/CoreQuiz
src/CoreQuiz/Services/MessageServices.cs
827
C#
// Copyright 2020 New Relic, Inc. All rights reserved. // SPDX-License-Identifier: Apache-2.0 using System; using System.Collections.Generic; using System.Linq; using MoreLinq; using NewRelic.Agent.Configuration; using NewRelic.Agent.Core.Attributes; using NewRelic.Agent.Core.Errors; using NewRelic.Agent.Core.Segments...
51.675
225
0.673803
[ "Apache-2.0" ]
JoshuaColeman/newrelic-dotnet-agent
tests/Agent/UnitTests/Core.UnitTest/Transformers/TransactionTransformer/ErrorTraceMakerTests.cs
8,268
C#
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using System; using System.Collections.Generic; using System.Diagnostics; using System.Threading.Tasks; using Microsoft.MixedReality.WebRTC.Interop; namespace Microsoft.MixedReality.WebRTC { /// <summary> /// Configuration to initializ...
37.866667
139
0.65581
[ "MIT" ]
Bhaskers-Blu-Org2/MixedReality-WebRTC
libs/Microsoft.MixedReality.WebRTC/DeviceAudioTrackSource.cs
2,272
C#
using System; using Microsoft.EntityFrameworkCore.Migrations; namespace AspNetCore.EventLog.PostgreSQL.Migrations { public partial class AddCorrelationIdPublished : Migration { private readonly string _schema; public AddCorrelationIdPublished(string schema) { _schema = sch...
29.254902
71
0.530831
[ "MIT" ]
dev-mich/AspNetCore.EventLog
src/AspNetCore.EventLog.PostgreSQL/Migrations/20191021201027_AddCorrelationIdPublished.cs
1,494
C#
// Copyright (c) Microsoft. All rights reserved. namespace Microsoft.Azure.Devices.Edge.Hub.Core.Test { using System; using System.Collections.Generic; using System.Net; using System.Threading.Tasks; using Microsoft.Azure.Devices.Edge.Hub.CloudProxy; using Microsoft.Azure.Devices.Edge.Hub.Core; ...
50.525581
204
0.651477
[ "MIT" ]
DaveEM/iotedge
edge-hub/test/Microsoft.Azure.Devices.Edge.Hub.Core.Test/EdgeHubConnectionTest.cs
10,863
C#
using System; using System.Linq.Expressions; using System.Threading.Tasks; using Foundatio.Parsers.ElasticQueries; using Foundatio.Repositories.Elasticsearch.Queries.Builders; using Nest; namespace Foundatio.Repositories.Elasticsearch.Configuration { public interface IIndex : IDisposable { string Name { g...
40.205882
85
0.713241
[ "Apache-2.0" ]
FoundatioFx/Foundatio.Repositories
src/Foundatio.Repositories.Elasticsearch/Configuration/IIndex.cs
1,369
C#
namespace Recarro { public class WebConstants { public const string AdministratorRoleName = "Administrator"; public const string AdminEmail = "admin@recarro.com"; public const string AdminUsername = "admin@recarro.com"; public const string AdminPassword = "Password"; } }
28.818182
68
0.678233
[ "MIT" ]
n1claren/ASP.NET-Project-SoftUni
Recarro/WebConstants.cs
319
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; public class MenuButtons : MonoBehaviour { void Start() { Cursor.visible = true; Cursor.lockState = CursorLockMode.None; } public void PlayGame() { SceneManager.LoadS...
19.47619
47
0.662592
[ "MIT" ]
Croixwin/low-poly-skyrim
Project Files/Assets/Scripts/UI/MenuButtons.cs
411
C#
using MyStacks.Classes; using System; namespace MultiBracketValidation { public class BracketValidation { public MyStack<char> brackets = new MyStack<char>(); /// <summary> /// Method that returns a boolean if all brackets has an opening and closing match /// </summary> ...
31.315789
90
0.422689
[ "MIT" ]
JCode1986/data-structure-and-algorithms-dotnet
challenges/MultiBracketValidation/MultiBracketValidation/Classes/MultiBracketValidation.cs
1,190
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. using System.Buffers; using System.Collections.Generic; using System.Globalization; using System.IO; using System.T...
40.012295
170
0.487931
[ "MIT" ]
Castaneda1914/corefx
src/System.Text.Json/tests/JsonTestHelper.cs
29,291
C#
using DotVVM.Framework.ViewModel; namespace DotvvmWeb.Views.Docs.Controls.businesspack.Window.sample5 { public class ViewModel : DotvvmViewModelBase { public bool IsWindowDisplayed { get; set; } } }
24.333333
67
0.73516
[ "Apache-2.0" ]
Duzij/dotvvm-docs
Controls/businesspack/Window/sample5/ViewModel.cs
219
C#
namespace Cofoundry.Domain.Data { /// <summary> /// Lookup cache used for quickly finding the correct version for a /// specific publish status query e.g. 'Latest', 'Published', /// 'PreferPublished'. These records are generated when pages /// are published or unpublished. /// </summary> pu...
32.95
73
0.593323
[ "MIT" ]
BearerPipelineTest/cofoundry
src/Cofoundry.Domain/Data/DbContext/Pages/PagePublishStatusQuery.cs
1,318
C#
using System; using System.Text; using System.Security.Cryptography; using Xunit; namespace SKIT.Utility.UnitTests { #if !NETFRAMEWORK public class RsaUtilUnitTests { const string STR_EN = "hello, world."; const string STR_CH = "��ã����硣"; const string RSA_PUBLIC_KEY_1024 = "-----BEGIN...
64.385185
248
0.599977
[ "MIT" ]
fudiwei/DotNetCore.SKIT.Utility
test/SKIT.Utility.UnitTests/RsaUtilUnitTests.cs
8,707
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; namespace WebApIQuartz.Controllers { [Route("api/[controller]")] [ApiController] public class ValuesController : ControllerBase { // GET api/values ...
22.195652
57
0.511263
[ "MIT" ]
wanglong/NetCore22WebApIQuartz
WebApIQuartz/Controllers/ValuesController.cs
1,023
C#
using Akinator.Api.Net.Enumerations; using Akinator.Api.Net.Model; namespace Akinator.Api.Net.Utils { /// <summary> /// Checks, whether or not Akinator is ready to guess /// </summary> public static class GuessDueChecker { public static bool GuessIsDue(AkinatorQuestion currentQuestion, int...
34.844444
235
0.370536
[ "MIT" ]
Forevka/Akinator.Api.Net
Akinator.Api.Net/Utils/GuessDueChecker.cs
3,138
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. // // Generated on 2020 October 09 06:01:18 UTC // </auto-generated> //--------------...
34.147059
115
0.605943
[ "MIT" ]
GridProtectionAlliance/go2cs
src/go-src-converted/diagnostic_SuggestedFixStruct.cs
2,322
C#
namespace CustomerService.MessageQueue.Helpers { public static class Constants { public static class MessageQueue { public const string BookingExchange = "booking-exchange"; public const string OrderExchange = "order-exchange"; } } }
26.727273
69
0.639456
[ "MIT" ]
Exoft/KnowledgeSharing.Microservices
src/CustomerService/CustomerService.MessageQueue/Helpers/Constants.cs
296
C#
/* * Hydrogen Nucleus API * * The Hydrogen Nucleus API * * OpenAPI spec version: 1.9.4 * Contact: info@hydrogenplatform.com * Generated by: https://github.com/swagger-api/swagger-codegen.git */ using System; using System.Linq; using System.IO; using System.Text; using System.Text.RegularExpressions; using Sys...
39.320122
473
0.531829
[ "Apache-2.0" ]
ShekharPaatni/SDK
atom/nucleus/csharp/src/Nucleus/Model/SecurityExclusion.cs
12,897
C#
using System; using System.Collections.Generic; using System.Windows; using System.Windows.Media; namespace VisualProgrammer.WPF.Util { public static class DependencyObjectUtils { /// <summary> /// Finds an ancestor (that is of the target type) for this dependency object. /// Returns null if no ancestor of t...
35.903846
136
0.697375
[ "MIT" ]
Wibble199/VisualProgrammer
VisualProgrammer.WPF/Util/DependencyObjectUtils.cs
1,869
C#
using System; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using CpuSkinningDataTypes; using System.Collections.Generic; using System.IO; using System.Runtime.Serialization; namespace Pax4.Core { [DataContract] [KnownType(typeof(Pax4ObjectSceneryPartModelSkinned))] public class...
29.764151
95
0.602219
[ "MIT" ]
stark7/LavaAndIce
Pax4.Core/Pax/Pax4ObjectSceneryPartModelSkinned.cs
3,157
C#
using uVK.ViewModel; namespace uVK { /// <summary> /// Логика взаимодействия для MainWindow.xaml /// </summary> public partial class MainWindow { public MainWindow() { InitializeComponent(); DataContext = new WindowViewModel(); } } }
19.1875
49
0.560261
[ "MIT" ]
h10ne/uVK
uVK/MainWindow.xaml.cs
332
C#
using Hcm.Database.Models; namespace Hcm.Database.Repositories { public class SallaryRepository : Repository<Sallary>, ISallaryRepository { public SallaryRepository(DatabaseContext context) : base(context) { } } }
18.928571
76
0.65283
[ "Apache-2.0" ]
arioanindito/ario_hcm
Hcm.Database/Repositories/SallaryRepository.cs
267
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable using System; using System.Threading; using System.Threading.Tasks; using Azure; using Azure.Core; using Azure.Core.Pipeline; namespace Azure.ResourceManager.Network { /// <summ...
41.174603
223
0.726291
[ "MIT" ]
0rland0Wats0n/azure-sdk-for-net
sdk/network/Azure.ResourceManager.Network/src/Generated/FirewallPoliciesDeleteOperation.cs
2,594
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.ComponentModel; using Pulumi; namespace Pulumi.AzureNative.Authorization.V20151001Preview { /// <summary> /// The type of policy...
39.190476
110
0.681652
[ "Apache-2.0" ]
polivbr/pulumi-azure-native
sdk/dotnet/Authorization/V20151001Preview/Enums.cs
1,646
C#
using FluentAssertions; using Moq; using RockLib.Encryption.Async; using System.Text; using System.Threading; using Xunit; namespace RockLib.Encryption.Tests.Async { public class SynchronousAsyncCryptoTests { private Mock<ICrypto> _cryptoMock; private IEncryptor _encryptor; private IDe...
34.331818
139
0.633523
[ "MIT" ]
RockLib/RockLib.Encryption
Tests/RockLib.Encryption.Tests/Async/SynchronousAsyncCryptoTests.cs
7,555
C#
using ResidentsSocialCarePlatformApi.V1.Boundary.Requests; using ResidentsSocialCarePlatformApi.V1.Boundary.Responses; namespace ResidentsSocialCarePlatformApi.V1.UseCase.Interfaces { public interface IAddResidentUseCase { ResidentInformation Execute(AddResidentRequest addResident); } }
28.090909
68
0.822006
[ "MIT" ]
LBHackney-IT/residents-social-care-platform-api
ResidentsSocialCarePlatformApi/V1/UseCase/Interfaces/IAddResidentUseCase.cs
309
C#
// ***************************************************************************** // // © Component Factory Pty Ltd, 2006 - 2016. All rights reserved. // The software and associated documentation supplied hereunder are the // proprietary information of Component Factory Pty Ltd, PO Box 1504, // Glen Waverley, Vic...
45.075472
164
0.627459
[ "BSD-3-Clause" ]
Krypton-Suite-Legacy/Krypton-NET-5.451
Source/Demos/Non-NuGet/Krypton Toolkit Examples/Expanding HeaderGroups (Splitters)/Form1.cs
9,559
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using FlatRedBall.TileGraphics; using FlatRedBall.Math; namespace FlatRedBall.AI.Pathfinding { public static class TileNodeNetworkCreator { public static TileNodeNetwork CreateFrom(Layer...
34.091743
124
0.526642
[ "MIT" ]
Cabrill/StoryNavigator
StoryNavigator/StoryNavigator/TileGraphics/TileNodeNetworkCreator.cs
3,718
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Fire : MonoBehaviour { public Character character; public int FireForce; public int FireForceMin = 20; public int FireForceMax = 40; private void Start () { RandomFireForce (); } private v...
30.734694
95
0.622842
[ "MIT" ]
facundoezequiel/FinalGame
Assets/Fire.cs
1,508
C#
using System.ComponentModel; using DevExpress.ExpressApp; using DevExpress.ExpressApp.Actions; using DevExpress.ExpressApp.Web.SystemModule; namespace XafDelta.Web { public partial class VcWebActions : ViewController { public VcWebActions() { InitializeComponent(); Regi...
34.712329
91
0.638122
[ "MIT" ]
xafdelta/xafdelta
src/XafDelta.Web/VcWebActions.cs
2,536
C#
using System; using System.Globalization; using System.Linq; using System.Reflection; namespace WebApiAttributeRoutingSample.Areas.HelpPage.ModelDescriptions { internal static class ModelNameHelper { // Modify this to provide custom model name mapping. public static string GetModelName(Type typ...
40.472222
140
0.640357
[ "Apache-2.0" ]
ASCITSOL/asp.net
samples/aspnet/WebApi/WebApiAttributeRoutingSample/WebApiAttributeRoutingSample/Areas/HelpPage/ModelDescriptions/ModelNameHelper.cs
1,457
C#
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using System.Net.Http.Headers; using System.Text; using System.Threading.Tasks; namespace FunctionApp { public class ExpectedException : Exception { public ExpectedException(HttpStatusCode code,...
25.09375
88
0.666252
[ "MIT" ]
SergioETrillo/SpikeAzureFunctions
src/FunctionApp/ExpectedException.cs
805
C#
using System.Runtime.CompilerServices; namespace LinqBenchmarks; readonly struct IntEqualityComparer : IEqualityComparer<int> { [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(int x, int y) => x == y; [MethodImpl(MethodImplOptions.AggressiveInlining)] public int GetHas...
23.6
60
0.720339
[ "MIT" ]
NetFabric/LinqBenchmarks
LinqBenchmarks/IntEqualityComparer.cs
356
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. namespace Microsoft.EntityFrameworkCore.Scaffolding.Metadata.Internal { public static class ScaffoldingAnnotationNames { public const st...
45.0625
111
0.751734
[ "Apache-2.0" ]
davidroth/EntityFrameworkCore
src/Microsoft.EntityFrameworkCore.Relational.Design/Metadata/Internal/ScaffoldingAnnotationNames.cs
721
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...
62.361402
215
0.688225
[ "Apache-2.0" ]
philasmar/aws-sdk-net
sdk/src/Services/DatabaseMigrationService/Generated/_bcl35/AmazonDatabaseMigrationServiceClient.cs
238,470
C#
#region License /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the *...
36.724551
109
0.575249
[ "Apache-2.0" ]
BourneW/tinkerpop
gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Bytecode.cs
6,133
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; namespace SuperGlue.Web.Output.Spark { public class EmbeddedTemplateSource : BaseTemplateSource { private readonly IEnumerable<Assembly> _assemblies; public EmbeddedTemplateSource(IEnu...
30.376623
149
0.587431
[ "MIT" ]
MattiasJakobsson/Jajo.Web
src/SuperGlue.Web.Output.Spark/EmbeddedTemplateSource.cs
2,341
C#
using System.Collections; using System.Collections.Generic; using JetBrains.Annotations; using pdxpartyparrot.Core.Collections; using pdxpartyparrot.Core.Util; using UnityEngine; namespace pdxpartyparrot.Core { // TODO: when writing to disk - https://docs.unity3d.com/Manual/JSONSerialization.html public cl...
23.368421
93
0.583333
[ "Apache-2.0" ]
pdxparrot/ggj2019
Assets/Scripts/Core/SaveGameManager.cs
1,778
C#
 namespace Core.CrossCuttingConcerns.Logging.NLog.Loggers { public class MsSqlLogger : LoggerServiceBase { public MsSqlLogger() : base("MsSqlLogger") { } } }
15.153846
56
0.619289
[ "MIT" ]
kurtbogan88/Sennedjem
Core/CrossCuttingConcerns/Logging/NLog/Loggers/MsSqlLogger.cs
199
C#
using System.ComponentModel; using GaiaProject.Common.Reflection; namespace GaiaProject.Engine.Enums { public enum FinalScoringTileType { [Description("Number of buildings that are part of a federations")] BuildingsInAFederation, [Description("Number of buildings on the map")] BuildingsOnTheMap, [Descrip...
24.264706
84
0.763636
[ "MIT" ]
Etchelon/gaiaproject
Backend/Libraries/Engine/Enums/FinalScoringTileType.cs
825
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; namespace UnityStandardAssets.Utility { public class ObjectResetter : MonoBehaviour { private Vector3 originalPosition; private Quaternion originalRotation; private List<Transform> originalStructure; ...
27
90
0.580247
[ "MIT" ]
rishavnathpati/Beatrex_Ball_MuSync-Unity-Android
Assets/Standard Assets/Utility/ObjectResetter.cs
1,539
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. using System; using System.Diagnostics; using System.Runtime.CompilerServices; using System.Threading; using System....
49.403259
197
0.532053
[ "MIT" ]
karinazhou/SqlClient
src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlDelegatedTransaction.cs
24,257
C#
//////////////////////////////////////////////////////////////////////////////// //NUnit tests for "EF Core Provider for LCPI OLE DB" // IBProvider and Contributors. 09.05.2021. using System; using System.Data; using System.ComponentModel.DataAnnotations; using System.ComponentMode...
26.19708
139
0.529395
[ "MIT" ]
ibprovider/Lcpi.EFCore.LcpiOleDb
Tests/General/Source/Work/DBMS/Firebird/V03_0_0/D3/Query/Operators/SET_001/Equal/Complete/NullableByte/NullableInt64/TestSet_504__param__03__NV.cs
3,591
C#
using System; using System.Xml.Serialization; namespace Aop.Api.Domain { /// <summary> /// ZhimaMerchantOrderCreditPayModel Data Structure. /// </summary> [Serializable] public class ZhimaMerchantOrderCreditPayModel : AopObject { /// <summary> /// 优惠券金额,单位为元,精确到小数点后两...
29.196721
91
0.54183
[ "Apache-2.0" ]
554393109/alipay-sdk-net-all
AlipaySDKNet.Standard/Domain/ZhimaMerchantOrderCreditPayModel.cs
2,205
C#
using System; using System.ComponentModel; using System.Diagnostics; using System.Globalization; using System.Text; namespace Microsoft.AnalysisServices.AdomdClient { internal class NTAuthentication { private const int ERROR_BUFFER_OVERFLOW = 111; private const int ERROR_INVALID_PARAMETER = 87; private const...
33.640244
323
0.745514
[ "MIT" ]
VitaliyMF/Unofficial.Microsoft.AnalysisServices.AdomdClientNetCore
AdomdClientNetCore/Microsoft.AnalysisServices.AdomdClient/NTAuthentication.cs
11,034
C#
// ------------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See LICENSE in the repo root for license information. // -----------------------------------------------------------...
50.419355
140
0.568778
[ "MIT" ]
10thmagnitude/fhir-server
src/Microsoft.Health.Fhir.Core/Configs/ExportJobFormatConfiguration.cs
1,565
C#
using System; using System.Reflection; namespace PicoDilly { public interface IContainer { T GetInstance<T>(); void Configure(Action<IContainer> configureAction); IContainer For<T>(); IContainer Use<T>(T instance); } }
23.636364
59
0.65
[ "MIT" ]
DarkDeny/PicoDilly
PicoDilly/IContainer.cs
262
C#
using System; using System.Collections.Generic; using MediatR; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Authorization; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.E...
34.636364
106
0.590026
[ "MIT" ]
SkillsFundingAgency/das-apim-endpoints
src/SFA.DAS.Reservations.Api/Startup.cs
3,810
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; using System.IO; using System.Linq; using System.Runtime.InteropServices; using System.Threading.Tasks; using Microsoft.AspNetCore.Testing...
39.535294
131
0.49933
[ "Apache-2.0" ]
belav/aspnetcore
src/ProjectTemplates/test/GrpcTemplateTest.cs
6,721
C#
using Abp.Authorization.Users; using Abp.Domain.Repositories; using Abp.Domain.Uow; using Abp.Linq; using Abp.Organizations; using CarnaApp.Authorization.Roles; namespace CarnaApp.Authorization.Users { public class UserStore : AbpUserStore<Role, User> { public UserStore( IUnitOfWorkManager ...
36.236842
85
0.658678
[ "MIT" ]
atbostan/CarnaApp
aspnet-core/src/CarnaApp.Core/Authorization/Users/UserStore.cs
1,377
C#
using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Text.Json.Serialization; namespace david.hotelbooking.domain.Entities.RBAC { public class Permission { [Key] public int Id { get; set; } [Required] public string Name { get; set; } ...
24.947368
80
0.662447
[ "MIT" ]
daviddongguo/HotelBooking
david.hotelbooking.domain/Entities/RBAC/Permission.cs
476
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Collections.Specialized; using System.ComponentModel; namespace EphemerisCalculator { [Serializable] public class PlanetManager : INotifyPropertyChanged { #region Static definition public con...
46.957447
164
0.57952
[ "MIT" ]
Cruisoring/Astroder
Astroder/EphemerisPresenter/PlanetManager.cs
17,662
C#
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== using System; #if FEATURE_CORESYSTEM using System.Core; #endif using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Runtime.InteropServices; using System.Diagnostics.Contracts; using Microsoft.Win32.Saf...
46.006612
130
0.522562
[ "Apache-2.0" ]
295007712/295007712.github.io
sourceCode/dotNet4.6/ndp/fx/src/Core/System/Security/Cryptography/CapiSymmetricAlgorithm.cs
27,834
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; namespace MysqlAppModel { static class Program { /// <summary> /// Point d'entrée principal de l'application. /// </summary> [STAThread] static v...
22.695652
65
0.618774
[ "Unlicense" ]
Fab2bprog/Exemple-utilisation-csharp-avec-mysql
MysqlAppModel/Program.cs
525
C#
// Copyright © 2020 EPAM Systems, Inc. All Rights Reserved. All information contained herein is, and remains the // property of EPAM Systems, Inc. and/or its suppliers and is protected by international intellectual // property law. Dissemination of this information or reproduction of this material is strictly forbidde...
47.5
138
0.729555
[ "MIT" ]
epam/epam-graphql
src/Epam.GraphQL/Types/SubmitOutputItemGraphType.cs
1,238
C#
using ReactNative.Bridge; using System; using System.Collections.Generic; using Windows.ApplicationModel.Core; using Windows.UI.Core; namespace Spruce.RNSpruce { /// <summary> /// A module that allows JS to share data. /// </summary> class RNSpruceModule : NativeModuleBase { /// <summary> ...
20.235294
58
0.530523
[ "MIT" ]
devshine2015/ReactNative_Spruce
windows/RNSpruce/RNSpruceModule.cs
688
C#
using System; using System.Linq; using System.Security.Claims; using System.Threading.Tasks; using Microsoft.AspNet.Identity; using Umbraco.Core.Models.Identity; namespace Umbraco.Core.Security { public class BackOfficeClaimsIdentityFactory<T> : ClaimsIdentityFactory<T, int> where T: BackOfficeIdentityUse...
36.833333
156
0.635181
[ "MIT" ]
ismailmayat/Umbraco-CMS
src/Umbraco.Core/Security/BackOfficeClaimsIdentityFactory.cs
1,770
C#
namespace Instagraph.ModelsDto { public class UserFollowerDto { public string User { get; set; } public string Follower { get; set; } } }
18.555556
44
0.610778
[ "MIT" ]
sevdalin/Software-University-SoftUni
Db Advanced - EF Core/11. Exam Preparation/Instagraph.ModelsDto/UserFollowerDto.cs
169
C#
using System; namespace Xunit.DependencyInjection { [AttributeUsage(AttributeTargets.Assembly)] public sealed class StartupTypeAttribute : Attribute { public string TypeName { get; } public string? AssemblyName { get; } /// <summary> /// Initializes an instance of <see cre...
39.5
100
0.63491
[ "MIT" ]
En3Tho/Xunit.DependencyInjection
Xunit.DependencyInjection/StartupTypeAttribute.cs
1,503
C#
using System; namespace ProductRecommendation.Areas.HelpPage { /// <summary> /// This represents a preformatted text sample on the help page. There's a display template named TextSample associated with this class. /// </summary> public class TextSample { public TextSample(string te...
25.216216
141
0.517685
[ "MIT" ]
sumitjangid/Demo-Angular-2-with-ASP.NET-Web-API
ProductRecommendation/ProductRecommendation/Areas/HelpPage/SampleGeneration/TextSample.cs
933
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("Mo...
38.621622
84
0.748076
[ "Apache-2.0" ]
berkaybasoz/Push-Sharp-Sample
MobileNotification.DAL.Model/Properties/AssemblyInfo.cs
1,432
C#
// <auto-generated /> using AspNetVideoCore.Data; using AspNetVideoCore.Models; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage; using Micro...
33.352227
117
0.474023
[ "MIT" ]
csharpschool/AspNetVideoCore
AspNetVideoCore/Migrations/VideoDbContextModelSnapshot.cs
8,240
C#
namespace UniversitySystem.Models { public class ErrorViewModel { public string RequestId { get; set; } public bool ShowRequestId => !string.IsNullOrEmpty(RequestId); } }
20
70
0.67
[ "MIT" ]
Nextttttt/ASP.NET-CourseWork
UniversitySystem/Models/ErrorViewModel.cs
200
C#
namespace CloudinaryDotNet.Actions { using System; using System.Collections.Generic; /// <summary> /// Parameters for deletion of resources. /// </summary> public class DelResParams : BaseParams { private List<string> m_publicIds = new List<string>(); private string m_prefi...
30.703518
156
0.498363
[ "MIT" ]
Ezeji/CloudinaryDotNet
CloudinaryDotNet/Actions/AssetsManagement/DelResParams.cs
6,112
C#
using System; using Forms.Core.Options; using Forms.Infrastructure; using Forms.Web.Middleware; using Microsoft.AspNetCore.Authentication.Cookies; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.DataProtection; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Http; using Microsoft.Extension...
33.595745
146
0.58898
[ "Apache-2.0" ]
mod-veterans/digital-service-web-app
Forms.Web/Startup.cs
3,158
C#
using Microsoft.AspNetCore.Identity; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace RecipeApplication.Data { // Add profile data for application users by adding properties to the ApplicationUser class public class ApplicationUser : IdentityUser {...
23.5
95
0.778116
[ "MIT" ]
AnzhelikaKravchuk/asp-dot-net-core-in-action-2e
Chapter14/B_RecipeApplication_LocalDb/RecipeApplication/Data/ApplicationUser.cs
331
C#
/**************************************************************** * * * Legacy version of the library maintained to support Nav 2018 * * * ******************************************************...
29.5
66
0.423729
[ "MIT" ]
hemisphera/az-al-dev-tools-server
AZALDevToolsServer/AnZwDev.ALTools.Server.Nav2018/Contracts/GetSyntaxTreeSymbolRequest.cs
651
C#
using Alachisoft.NCache.Common.Caching; using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Runtime.Serialization; using System.Text; namespace Alachisoft.NCache.Common { public class SeralizationHelper : SerializationBinder { public override Type B...
29.785714
102
0.602718
[ "Apache-2.0" ]
Alachisoft/NCache
Src/NCCommon/Util/SeralizationHelper.cs
1,253
C#
using FreeSql.DataAnnotations; using FreeSql; using System; using System.Collections.Generic; using Xunit; using System.Linq; using Newtonsoft.Json.Linq; using NpgsqlTypes; using Npgsql.LegacyPostgis; using System.Linq.Expressions; using System.Threading.Tasks; using System.ComponentModel.DataAnnotations; using System...
44.540609
487
0.495612
[ "MIT" ]
5653325/FreeSql
FreeSql.Tests/FreeSql.Tests/UnitTest3.cs
35,380
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.726496
175
0.628811
[ "Apache-2.0" ]
Bio2hazard/aws-sdk-net
sdk/src/Services/SimpleWorkflow/Generated/Model/Internal/MarshallTransformations/RequestCancelWorkflowExecutionRequestMarshaller.cs
4,297
C#
/* Copyright (c) 2014, Lars Brubaker 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 followi...
26.883488
168
0.689934
[ "Apache-2.0" ]
ucswift/PrinterQuotationEngine
References/agg-sharp/Gui/TextWidgets/InternalTextEditWidget.cs
34,843
C#
namespace Schema.NET { using System; using System.Runtime.Serialization; using Newtonsoft.Json; /// <summary> /// A &lt;a class="localLink" href="http://schema.org/CampingPitch"&gt;CampingPitch&lt;/a&gt; is an individual place for overnight stay in the outdoors, typically being part of a la...
85.424242
470
0.709471
[ "MIT" ]
candela-software/Schema.NET
Source/Schema.NET/core/CampingPitch.cs
2,821
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...
48.022727
279
0.58942
[ "Apache-2.0" ]
5u5hma/aws-tools-for-powershell
modules/AWSPowerShell/Cmdlets/IdentityManagement/Basic/Get-IAMGroupForUser-Cmdlet.cs
19,017
C#
// Copyright (c) Robin Boerdijk - All rights reserved - See LICENSE file for license terms using MDSDK.Dicom.PixelData.PixelDataDecoders; using MDSDK.Dicom.Serialization; using System; using System.Collections.Generic; namespace MDSDK.Dicom.PixelData { /// <summary>Base class for DICOM pixel data decoders</summa...
53.621622
141
0.753528
[ "MIT" ]
mdsdk/MDSDK.Dicom.PixelData
MDSDK.Dicom.PixelData/DicomPixelDataDecoder.cs
1,986
C#
using System; using System.Threading.Tasks; using Volo.Abp.Account; using Volo.Abp.DependencyInjection; namespace RatTracker.HttpApi.Client.ConsoleTestApp { public class ClientDemoService : ITransientDependency { private readonly IProfileAppService _profileAppService; public ClientDemoService...
31
70
0.648883
[ "MIT" ]
kfrancis/ratTracker
test/RatTracker.HttpApi.Client.ConsoleTestApp/ClientDemoService.cs
808
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace LogicAppsExceptionManagementApi { public static class Utility { public static double ConvertToTimestamp(DateTime value) { //create Timespan by subtracting ...
22.5
84
0.641026
[ "MIT" ]
HEDIDIN/LogicAppsExceptionManagementApi
LogicAppsExceptionManagementApi/Utility.cs
587
C#
using BookShare.Domain.Entities; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BookShare.Domain.Entities { public class Editora { public int EditoraId { get; set; } public string Nome { get; set; } public v...
22.058824
62
0.693333
[ "MIT" ]
marqueslu/bookshare
BookShare.Domain/Entities/Editora.cs
377
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.34209 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //--...
40.995633
183
0.588517
[ "MIT" ]
Plankankul/Framework-w-WebApp
Original/Runtime/Properties/Resources.Designer.cs
9,390
C#
 using Unity.Tests.TestDoubles; namespace Unity.Tests.TestObjects { internal class OptionalLogger { private string logFile; public OptionalLogger([Dependency] string logFile) { this.logFile = logFile; } public string LogFile { get { ret...
16.809524
58
0.563739
[ "Apache-2.0" ]
danielp37/container
tests/Unity.Tests/TestObjects/OptionalLogger.cs
355
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.Runtime.InteropServices; using Internal.IL.Stubs; using Internal.IL; using Debug = System.Diagnostics.Debug; using ILLocalVariable = Internal.IL.Stubs.ILL...
37.665564
161
0.581128
[ "MIT" ]
Danyy427/runtime
src/coreclr/tools/Common/TypeSystem/Interop/IL/Marshaller.cs
79,738
C#
using Eto.Forms; using sw = System.Windows; using swc = System.Windows.Controls; namespace Eto.Wpf.Forms.Printing { public class PrintDialogHandler : WidgetHandler<swc.PrintDialog, PrintDialog>, PrintDialog.IHandler { PrintSettings settings; public PrintDialogHandler() { Control = new swc.PrintDialog { ...
18.984848
100
0.680766
[ "BSD-3-Clause" ]
OpenTabletDriver/Eto
src/Eto.Wpf/Forms/Printing/PrintDialogHandler.cs
1,253
C#
namespace StuffPacker.store.packlist.Get { public class GetPackListDataFailedAction { public string ErrorMessage { get; private set; } public GetPackListDataFailedAction(string errorMessage) { ErrorMessage = errorMessage; } } }
20.5
63
0.648084
[ "MIT" ]
StuffPacker/StuffPacker
src/StuffPacker/store/packlist/Get/GetPackListDataFailedAction.cs
289
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...
26.6375
113
0.594087
[ "Apache-2.0" ]
Vfialkin/aws-sdk-net
sdk/src/Services/MediaStoreData/Generated/AmazonMediaStoreDataConfig.cs
2,131
C#
using CppSharp; using CppSharp.AST; using CppSharp.Passes; using System; using System.IO; namespace BindingsGenerator { class Vessel : ILibrary { public void Setup(Driver driver) { var options = driver.Options; var module = options.AddModule("Diligent"); module.Headers.Add("SDL.h"); options.OutputDi...
32.673913
89
0.736194
[ "MIT" ]
hyblocker/VesselSharp
BindingsGenerator/Program.cs
3,008
C#
using System; using System.Reflection; using System.Runtime.InteropServices; using System.Runtime.CompilerServices; // 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: Asse...
53.607843
292
0.778347
[ "Apache-2.0" ]
ChristopherButtars/aws-sdk-net
sdk/src/Services/ManagedBlockchain/Properties/AssemblyInfo.cs
2,734
C#
using MOTMaster; using MOTMaster.SnippetLibrary; using System; using System.Collections.Generic; using DAQ.Pattern; using DAQ.Analog; // This script is supposed to be the basic script for loading a molecule MOT. // Note that times are all in units of the clock periods of the two pattern generator boards (at present...
40.432773
165
0.662995
[ "MIT" ]
ColdMatter/EDMSuite
MoleculeMOTMasterScripts/RbMolassesFluorescenceImaging.cs
9,625
C#
/* * Copyright (c) 2020 Samsung Electronics Co., Ltd. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless r...
30.693878
75
0.651596
[ "Apache-2.0" ]
AchoWang/Tizen-CSharp-Samples
Wearable/Pedometer/src/Pedometer/ViewModels/StartViewModel.cs
1,504
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data.Entity; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BL.Restaurant { public class ProductosBL { Contexto _contexto;//Variable Global public BindingList<Producto> L...
26.533898
136
0.53114
[ "MIT" ]
Ricardo0497/RESTAURANT
Restaurant/BL.Restaurant/ProductosBL.cs
3,133
C#
using System; using System.Threading.Tasks; using Univintel.GBN.Core; using UnivIntel.GBN.Core.DataAccess.Entities; using UnivIntel.PostgreSQL.ORM.Core; namespace UnivIntel.GBN.Core.Services { public interface ISessionService { void SetDatabase(IDatabaseService databaseService); Task CheckUse...
31.958333
108
0.732725
[ "MIT" ]
mvkhokhlov/univintel_global_business_network_backend
GBN.Core/Services/ISessionService.cs
769
C#
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using ClearHl7.Extensions; using ClearHl7.Helpers; using ClearHl7.Serialization; using ClearHl7.V271.Types; namespace ClearHl7.V271.Segments { /// <summary> /// HL7 Version 2 Segment PRD - Provider Data. /// </s...
62.962963
276
0.657451
[ "MIT" ]
kamlesh-microsoft/clear-hl7-net
src/ClearHl7/V271/Segments/PrdSegment.cs
10,202
C#
using DShop.Services.Discounts.Domain; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace DShop.Services.Discounts.Repositories { public interface ICustomersRepository { Task<Customer> GetAsync(Guid id); Task AddAsync(Customer customer); ...
21.866667
47
0.746951
[ "MIT" ]
nilayshah80/DNC-DShop
DNC-DShop.Services.Discounts/src/DShop.Services.Discounts/Repositories/ICustomersRepository.cs
330
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; using System.Collections.Generic; using Elasticsearch.Net.Utf8Json; namespace Nest { /// <summary...
28.57377
121
0.716294
[ "Apache-2.0" ]
Brightspace/elasticsearch-net
src/Nest/XPack/Watcher/Input/ChainInput.cs
3,488
C#
using System; using System.Collections.Generic; namespace BalancedParenthesis { class Program { static void Main(string[] args) { string input = Console.ReadLine(); Stack<char> stack = new Stack<char>(); bool isInvalid = false; for (int i = 0;...
22.818182
74
0.285525
[ "MIT" ]
Mithras11/C_Sharp-Advanced-SoftUni
Stacks_And_Queues/BalancedParenthesis/Program.cs
1,508
C#
using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace FamiStudio { class TransformDialog { enum TransformOperation { SongCleanup, Pro...
35.699115
172
0.501239
[ "MIT" ]
mcgrew/FamiStudio
FamiStudio/Source/UI/Common/TransformDialog.cs
7,845
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...
38.298246
197
0.655062
[ "Apache-2.0" ]
ChristopherButtars/aws-sdk-net
sdk/src/Services/ServiceCatalog/Generated/Model/Internal/MarshallTransformations/CreateServiceActionResponseUnmarshaller.cs
4,366
C#