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 Foundation.SceneManage.ScriptableObjects; using UnityEngine; using UnityTemplateProjects.Foundation.Event; namespace Foundation.SceneManage { public class StartGame : MonoBehaviour { [SerializeField] private GameSceneSO _loadLevelScene; // 开始游戏要加载的关卡 [Header("Broadcasting on")] [Seriali...
26.897436
79
0.605338
[ "MIT" ]
xiaoran301/unity_agile
Assets/Scripts/Foundation/SceneManage/StartGame.cs
1,103
C#
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.IO; using System.Reflection; using Xunit; namespace Microsoft.Build.UnitTests { sealed internal class StreamHelpers { ...
28.258065
102
0.591324
[ "MIT" ]
HydAu/MsBuild
src/Shared/UnitTests/StreamHelpers.cs
848
C#
using System; using System.Collections.Generic; using System.Collections.Specialized; using System.Configuration; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CsvToClass.Utility { /// <summary> /// Gets values from the app.config file /// </summary> public static class...
32.014925
79
0.551981
[ "MIT" ]
bizcad/CsvToClass
CsvToClass/Utility/Config.cs
2,147
C#
using System.Collections.Generic; using System.Linq; namespace PSImaging { public abstract class ImageProcesser { public abstract PixelsData Process(PixelsData sourcePixels); } public class GrayScaleConverter : ImageProcesser { public override PixelsData Process(PixelsData source) ...
37.411236
122
0.421132
[ "MIT" ]
saggie/psimaging
scripts/ImageProcesser.cs
16,648
C#
namespace KpiLex.Api.Models.Response { public class UserResponseModel { } }
13.857143
37
0.618557
[ "MIT" ]
SemenchenkoVitaliy/GDC-CP
kpi-lex/KpiLex.Api/Models/Response/UserResponseModel.cs
99
C#
#region BSD License /* * Use of this source code is governed by a BSD-style * license that can be found in the LICENSE.md file or at * https://github.com/Wagnerp/Krypton-Toolkit-Suite-Extended-NET-5.462/blob/master/LICENSE * */ #endregion using ComponentFactory.Krypton.Toolkit; using System; using System.Reflect...
52.174419
189
0.643303
[ "BSD-3-Clause" ]
Krypton-Suite-Legacy/Krypton-Toolkit-Suite-Extended-NET-5.462
Source/Krypton Toolkit Suite Extended/Applications/Update File Maker/UI/Wizard/MainWindow.cs
8,976
C#
// // Copyright (c) 2008-2011, Kenneth Bell // // 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, m...
38.605416
117
0.548023
[ "MIT" ]
ChaplinMarchais/DiscUtils
unittests/LibraryTests/Ntfs/NtfsFileSystemTest.cs
19,959
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace PredicateParty { class Program { private static List<string> names = new List<string>(); private static Dictionary<string, Func<string, string, bool>> predicates = new ...
33.419355
133
0.479247
[ "MIT" ]
AleksandrinaGeorgieva/SoftUni
03 - C# Advanced/05 - Functional Programming/PredicateParty/PredicateParty/Program.cs
2,074
C#
using ITfoxtec.Identity.Saml2; using ITfoxtec.Identity.Saml2.MvcCore; using ITfoxtec.Identity.Saml2.Schemas; using ITfoxtec.Identity.Saml2.Schemas.Metadata; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Options; using System; using System.Collections.Generic; usin...
62.607477
196
0.705478
[ "BSD-3-Clause" ]
YaronSpawn/ITfoxtec.Identity.Saml2
test/TestWebAppCoreNemLogin3Sp/Controllers/MetadataController.cs
6,701
C#
#region license // Copyright (c) 2004, Rodrigo B. de Oliveira (rbo@acm.org) // All rights reserved. // // Redistribution and use in source and binary forms, with or without modification, // are permitted provided that the following conditions are met: // // * Redistributions of source code must retain the above cop...
37.5625
127
0.764467
[ "BSD-3-Clause" ]
LaudateCorpus1/boo
src/Boo.Lang.Compiler/TypeSystem/Types.cs
5,409
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...
38.722689
165
0.58431
[ "Apache-2.0" ]
pulumi/pulumi-azure-nextgen
sdk/dotnet/Insights/V20150501/Workbook.cs
9,216
C#
using Microsoft.AspNetCore.Authentication.OpenIdConnect; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Options; using Microsoft.IdentityModel.Clients.ActiveDirectory; using System; using System.Collections.Generic; using System.Security.Claims; using System.Threading.Tasks; using TodoListW...
47.345794
165
0.656929
[ "MIT" ]
rammi44/asp_net_core_azure_active_directory
TodoListWebApp/Extensions/AzureAdAuthenticationBuilderExtensions.cs
5,068
C#
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *------------------------------------------------------------...
34.125
97
0.484737
[ "MIT" ]
3quanfeng/azure-powershell
src/Blockchain/generated/runtime/Parser/Exceptions/ParseException.cs
798
C#
/**************************************************************************** Functions for interpreting c# code for blocks. Copyright 2016 dtknowlove@qq.com Copyright 2016 sophieml1989@gmail.com Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the ...
34.219804
137
0.452875
[ "Apache-2.0" ]
imagicbell/ublockly
Source/Script/CodeDB/CSharp/Interpreters/List_CSharp.cs
31,450
C#
using UnityEngine; using UnityEngine.UIElements; public class DmxOutputBoolUI : DmxOutputUI<DmxOutputBool> { public DmxOutputBoolUI(DmxOutputBool dmxOutput) : base(dmxOutput) { } protected override void BuildControlUI() { base.BuildControlUI(); area = controlUI.Q("input-area"); va...
29.19697
84
0.569798
[ "MIT" ]
sugi-cho/ArtNetController
Assets/ArtNetController/Scripts/UI/DmxOutputUI/DmxOutputBoolUI.cs
1,927
C#
// // ColorPickerBackend.cs // // Author: // Lluis Sanchez Gual <lluis@xamarin.com> // // Copyright (c) 2014 Xamarin, Inc (http://www.xamarin.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 //...
29.833333
105
0.733158
[ "MIT" ]
Bert1974/xwt
Xwt.XamMac/Xwt.Mac/ColorPickerBackend.cs
3,045
C#
using System; namespace HerosLib { /// <summary> /// Subscriber 2 /// </summary> public class TextMessageService { public static void SendText(){ Console.WriteLine("----------Text Sent-------"); } } }
19.461538
60
0.513834
[ "MIT" ]
201019-UiPath/ZhengHong-Code
1-CSharp/HerosApp/HerosLib/TextMessageService.cs
253
C#
namespace MyShop.Sales.Messages { using System; using NServiceBus; public class CancelOrder : ICommand { public Guid OrderId { get; set; } } }
15.727273
41
0.624277
[ "MIT" ]
vchircu/LongRunningProcesses
MyShop/MyShop.Sales.Messages/CancelOrder.cs
175
C#
using System; using System.Diagnostics; using Armature.Core.Annotations; using Armature.Core.Sdk; namespace Armature.Core; /// <summary> /// Couples an entity with a weight /// </summary> public readonly struct Weighted<T> : IComparable<Weighted<T>> { public readonly T Entity; public readonly int Weight; [D...
24.428571
120
0.726316
[ "Apache-2.0" ]
Ed-ward/Armature
src/Armature.Core/src/Weighted.cs
857
C#
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Reflection; namespace Clarity.Common.Infra.ActiveModel.ClassEmitting { public class AmListBindingDescription : AmBindingDescriptionBase { private Type ChildType { get; } public AmListBind...
45.0625
165
0.716366
[ "MIT" ]
Zulkir/ClarityWorlds
Source/Clarity.Common/Infra/ActiveModel/ClassEmitting/AmListBindingDescription.cs
1,444
C#
// // IFontBackendHandler.cs // // Author: // Lluis Sanchez <lluis@xamarin.com> // // Copyright (c) 2011 Xamarin Inc // // 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 r...
32.549296
120
0.715707
[ "MIT" ]
DavidKarlas/xwt
Xwt/Xwt.Backends/FontBackendHandler.cs
4,622
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated from a template. // // Manual changes to this file may cause unexpected behavior in your application. // Manual changes to this file will be overwritten if the code is regenerated....
37.628571
128
0.577069
[ "Apache-2.0" ]
ioanabirsan/advanced-topics-net
project-2/CarServiceProject/CarServiceProject/Auto.cs
1,317
C#
using Aurora.Devices; using Aurora.Settings; using Aurora.Utils; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.W...
43.537255
223
0.613853
[ "MIT" ]
ADoesGit/Aurora
Project-Aurora/Project-Aurora/Profiles/Dota 2/Layers/Control_Dota2AbilityLayer.xaml.cs
10,850
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; namespace MultasTransi...
29.719101
129
0.555388
[ "Apache-2.0" ]
johnsvill/MultasBot
Areas/Identity/Pages/Account/ResetPassword.cshtml.cs
2,647
C#
 namespace AuthorizationGenerator { partial class Form1 { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> ...
40.602151
155
0.585011
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
nmgzzy/HotelSystem
AuthorizationGenerator/Form1.Designer.cs
3,784
C#
// <auto-generated> // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. // </auto-generated> namespace Gov.Jag.PillPressRegistry.Interfaces { using Models; using System.Collections; using System.Collections.Gene...
43.416
520
0.532338
[ "Apache-2.0" ]
devinleighsmith/jag-pill-press-registry
pill-press-interfaces/Dynamics-Autorest/IncidentsExtensions.cs
10,854
C#
using System; using System.Collections.Generic; using System.Globalization; using CG.Commons.Extensions; using CG.Commons.Util; using Xunit; namespace CG.Commons.Test.Util { public class GenericParserTests { [Fact] public void TestCanary() { Assert.True(true); } ...
36.034286
163
0.590126
[ "MIT" ]
chrisg32/Commons
Commons.Test/Util/GenericParserTests.cs
18,920
C#
using System.Collections.Generic; using NUnit.Framework; namespace Cnp.Sdk.Test.Functional { [TestFixture] internal class TestFastAccessFunding { private CnpOnline _cnp; [OneTimeSetUp] public void SetUpCnp() { _cnp = new CnpOnline(); } ...
39.63
100
0.605854
[ "MIT" ]
Vantiv/cnp_sdk-for-dotnet
CnpSdkForNet/CnpSdkForNetTest/Functional/TestFastAccessFunding.cs
3,965
C#
using System.Collections.Generic; using Cafe.Waiter.Commands; using Cafe.Waiter.Contracts.Commands; using Cafe.Waiter.Events; using NUnit.Framework; namespace Cafe.Waiter.Domain.Tests { [TestFixture] public class PlaceOrderTests : EventTestsBase<Tab, PlaceOrderCommand> { private readonly int _tabl...
29.528986
92
0.502577
[ "MIT" ]
ronanmoriarty/CQSplit
src/Cafe/Cafe.Waiter.Domain.Tests/PlaceOrderTests.cs
4,077
C#
using System.Collections.Generic; using System.Linq; using X4_ComplexCalculator.DB.X4DB.Interfaces; namespace X4_ComplexCalculator.DB.X4DB.Entity { /// <summary> /// ウェア単位のウェア生産時の追加効果情報用クラス /// </summary> public class WareEffects : IWareEffects { #region メンバ /// <summary> /...
26.681818
104
0.512777
[ "Apache-2.0" ]
Ocelot1210/X4_ComplexCalculator
X4_ComplexCalculator/DB/X4DB/Entity/WareEffects.cs
1,947
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.IO; using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Xml; using Xunit; namespace Microsoft.AspNetCo...
38.842795
111
0.508038
[ "Apache-2.0" ]
0xced/AspNetCore
src/Mvc/test/Microsoft.AspNetCore.Mvc.Formatters.Xml.Test/ValidationProblemDetails21WrapperTest.cs
8,897
C#
// ***************************************************************************** // BSD 3-Clause License (https://github.com/ComponentFactory/Krypton/blob/master/LICENSE) // © Component Factory Pty Ltd, 2006 - 2016, All rights reserved. // The software and associated documentation supplied hereunder are the // prop...
46.289474
157
0.58158
[ "BSD-3-Clause" ]
Krypton-Suite-Legacy-Archive/Krypton-NET-5.450
Source/Krypton Components/ComponentFactory.Krypton.Ribbon/Group Contents/KryptonRibbonGroupContainerCollection.cs
1,762
C#
// ----------------------------------------------------------------------- // <copyright file="SeekQuery.cs" company="Microsoft"> // Copyright (c) Microsoft Corporation. All rights reserved. // </copyright> // ----------------------------------------------------------------------- namespace Microsoft.Store.Partne...
35.583333
123
0.515222
[ "MIT" ]
vijayraavi/Partner-Center-PowerShell
src/PartnerCenter/Models/Query/SeekQuery.cs
856
C#
namespace dw_service.Areas.HelpPage.ModelDescriptions { public class SimpleTypeModelDescription : ModelDescription { } }
22
62
0.772727
[ "MIT" ]
dataventure-io/dw
src/dw-service/Areas/HelpPage/ModelDescriptions/SimpleTypeModelDescription.cs
132
C#
namespace SqlStreamStore { using System; using System.Collections.Generic; using System.Threading.Tasks; using Shouldly; using SqlStreamStore.Streams; using Xunit; public partial class AcceptanceTests { [Fact, Trait("Category", "AppendStream")] public async Task ...
45.212483
172
0.661536
[ "MIT" ]
ArneSchoonvliet/SQLStreamStore
tests/SqlStreamStore.AcceptanceTests/AcceptanceTests.AppendStream.cs
34,047
C#
using System; using System.ComponentModel; using System.Globalization; using System.Linq; using System.Reflection; using System.Windows.Data; namespace Xceed.Wpf.Toolkit.PropertyGrid.Converters { public class SelectedObjectConverter : IValueConverter { private const string ValidParameterMessage = "parameter must b...
27.295918
138
0.706542
[ "MIT" ]
ay2015/AYUI8
Ay/ay/SDK/CONTROLLIB/Large/PropertyGrid/Converters/SelectedObjectConverter.cs
2,675
C#
// <copyright file="ITestCaseLogger.cs" company="PlaceholderCompany"> // Copyright (c) PlaceholderCompany. All rights reserved. // </copyright> namespace AutomationTestSetFramework { /// <summary> /// Interface that represents the test case logger. It writes information about the test case. /// </summary> ...
34.352941
98
0.655822
[ "MIT" ]
zzzrst/AutomationTestSetFramework
AutomationFramework/TestInterfaces/ITestCaseLogger.cs
586
C#
#region Statements using System; using System.Collections.Generic; using System.Net; using Cysharp.Threading.Tasks; using ENet; using UnityEngine; using Event = ENet.Event; using EventType = ENet.EventType; #endregion namespace Mirage.ENet { public class IgnoranceServer { #region Fields priv...
41.821818
235
0.459873
[ "MIT" ]
MirageNet/IgnoranceNG
Assets/Mirage/Runtime/Transport/Ignorance/IgnoranceServer.cs
11,501
C#
namespace UI { partial class inHospital_zhiban { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <par...
44.138965
158
0.568739
[ "MIT" ]
zhangzelei520/dewei
UI/inHospital-zhiban.Designer.cs
16,333
C#
using System; namespace GDAXSharp.Shared.Utilities.Clock { public class Clock : IClock { public DateTime GetTime() { return DateTime.UtcNow; } } }
15.153846
42
0.568528
[ "MIT" ]
Sotam/gdax-csharp
GDAXSharp/Shared/Utilities/Clock/Clock.cs
199
C#
using AbhsChinese.Domain.Enum; using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace AbhsChinese.Domain.JsonEntity.UnitStep { /// <summary> /// 快速阅读 /// </summary> public class StudyFastRead : StepAction { public StudyFastRead() : base(LessonActionT...
23.285714
77
0.502045
[ "Apache-2.0" ]
GuoQqizz/SmartChinese
AbhsChinese.Domain/JsonEntity/UnitStep/StudyFastRead.cs
1,032
C#
 using BeUtl.Graphics; namespace BeUtl.Media; /// <summary> /// A brush that draws with a linear gradient. /// </summary> public interface ILinearGradientBrush : IGradientBrush { /// <summary> /// Gets or sets the start point for the gradient. /// </summary> RelativePoint StartPoint { get; } ///...
21
54
0.643991
[ "MIT" ]
YiB-PC/BeUtl
src/BeUtl.Graphics/Media/ILinearGradientBrush.cs
443
C#
namespace Pidgin { public static partial class Parser<TToken, TUser> { /// <summary> /// A parser which returns the number of input tokens which have been consumed. /// </summary> /// <returns>A parser which returns the number of input tokens which have been consumed</returns> ...
37.142857
141
0.635897
[ "MIT" ]
Artentus/Pidgin
Pidgin/Parser.CurrentOffset.cs
780
C#
using Machine.Specifications; using Moq; using It = Machine.Specifications.It; namespace Chronicle.Specs { public class LogManagerSpecs { [Subject("Logger")] public class when_creating_a_logger_without_setting_the_provider { static ILogger _logger; Because of =...
34.389831
112
0.579596
[ "MIT" ]
JTOne123/chronicle
src/Chronicle.Specs/LogManagerSpecs.cs
2,031
C#
// <copyright file="CallControlSendDTMFServiceTest.cs" company="Telnyx"> // Copyright (c) Telnyx. All rights reserved. // </copyright> namespace TelnyxTests.Services.Calls.CallCommands { using System.Net.Http; using System.Threading.Tasks; using Telnyx; using Xunit; public class CallControlSendDT...
35.730769
99
0.644241
[ "MIT" ]
thedonmon/telnyx-dotnet
src/TelnyxTests/Services/Calls/CallCommands/SendDTMF/CallControlSendDTMFServiceTest.cs
1,860
C#
// ------------------------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // --------------------------------------------------------...
26.5
100
0.438679
[ "MIT" ]
alexsyeo/PSharp
Tests/TestingServices.Tests/Machines/Transitions/GotoStateExitFailTest.cs
1,486
C#
using System.Diagnostics; using System.Runtime.Serialization; using Elasticsearch.Net.Utf8Json; namespace Nest { /// <summary> /// A field that can index numbers so that they can later be used /// to boost documents in queries with a rank_feature query. /// </summary> [InterfaceDataContract] public interface IRa...
37.142857
107
0.749451
[ "Apache-2.0" ]
AnthAbou/elasticsearch-net
src/Nest/Mapping/Types/Core/RankFeature/RankFeatureProperty.cs
1,820
C#
/******************************************************************************** Copyright (C) Binod Nepal, Mix Open Foundation (http://mixof.org). 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 ht...
43.108696
199
0.647504
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
gj86/mixerp2
MixERP.Net.FrontEnd/Sales/Entry/Quotation.aspx.cs
1,985
C#
using System.Collections.Generic; namespace SimpleExpressions.Core.Converters { public abstract class BaseConverter: IConverter { /// <summary> /// The functions the converter can support /// </summary> public abstract IList<string> SupportedFunctionNames { get; } //...
28.857143
87
0.611386
[ "MIT" ]
Timothep/SimpleExpressions
SimpleExpression/SimpleExpression.Core/Converters/BaseConverter.cs
810
C#
// -------------------------------------------------------------------------------------------------------------------- // <copyright company="Aspose" file="GraphicsQualityOptionsData.cs"> // Copyright (c) 2020 Aspose.Words for Cloud // </copyright> // <summary> // Permission is hereby granted, free of charge,...
33.744444
202
0.503677
[ "MIT" ]
rizwanniazigroupdocs/aspose-words-cloud-dotnet
Aspose.Words.Cloud.Sdk/Model/GraphicsQualityOptionsData.cs
8,842
C#
#region Copyright Syncfusion Inc. 2001 - 2016 // Copyright Syncfusion Inc. 2001 - 2016. All rights reserved. // Use of this code is subject to the terms of our license. // A copy of the current license can be obtained at any time by e-mailing // licensing@syncfusion.com. Any infringement will be prosecuted under // app...
35.368421
92
0.72247
[ "MIT" ]
ds112/hbase-on-windowns
Samples/CSharp/C# Analytics Samples/MVC/Global.asax.cs
1,344
C#
using System; using System.Collections.Generic; using Grasshopper.Kernel; using Rhino.Geometry; using T_RexEngine; namespace T_Rex { public class CustomSpacingGH : GH_Component { public CustomSpacingGH() : base("Custom Spacing", "Custom Spacing", "Creates the Rebar Group witho...
38.87931
170
0.626608
[ "MIT" ]
paireks/T-Rex
T-Rex/CustomSpacingGH.cs
2,257
C#
using NSubstitute; using NUnit.Framework; using StackExchange.NET.Clients; namespace Tests.Client { public class BaseClient { internal StackExchangeClient Client; [SetUp] public void Setup() { Client = Substitute.For<StackExchangeClient>("someKey"); } } }
16.117647
59
0.737226
[ "MIT" ]
gethari/FluentExchange
StackExchange.NET/Tests/Client/BaseClient.cs
276
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Linq.Expressions; using System.Threading.Tasks; using Liuliu.Blogs.Blogs; using Liuliu.Blogs.Blogs.Dtos; using Liuliu.Blogs.Blogs.Entities; using Microsoft.AspNetCore.Mvc; using OSharp.AspNetCore.Mvc.Filters; u...
30.964912
108
0.597167
[ "Apache-2.0" ]
gmf520/osharp-docs-samples
samples/Liuliu.Blogs/src/Liuliu.Blogs.Web/Areas/Admin/Controllers/Blogs/PostController.cs
3,784
C#
using ESTAPAR.Core.Application; using ESTAPAR.Core.Domain.Interfaces.Infrastructures.Contexts; using ESTAPAR.Core.Domain.Interfaces.Infrastructures.Repositories; using ESTAPAR.Core.Domain.Interfaces.Services; using ESTAPAR.Core.Domain.Services; using ESTAPAR.Infrastructures.Data; using ESTAPAR.Infrastructures.Data.Rep...
40.9375
149
0.728244
[ "MIT" ]
isilveira/challenge-project-estapar
src/ESTAPAR.Middleware/Configurations.cs
1,967
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("Dic...
37.513514
84
0.747118
[ "MIT" ]
jem-green/Dictionary
Properties/AssemblyInfo.cs
1,391
C#
// Modified by SignalFx using System.Threading.Tasks; namespace SignalFx.Tracing.Agent { internal interface IApi { Task SendTracesAsync(Span[][] traces); } }
16.272727
46
0.681564
[ "Apache-2.0" ]
AJJLVizio/signalfx-dotnet-tracing
src/Datadog.Trace/Agent/IApi.cs
179
C#
#pragma checksum "C:\Users\kotik\Desktop\proga\dotnet\tut10\tutorial-10-lacrit-a1mond\WebApplication1\WebApplication1\Views\Movies\Create.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "7ff3e87db3b9b246d9f26278ba4ec0c5c0ed8a7d" // <auto-generated/> #pragma warning disable 1591 [assembly: global::Microsoft.AspNetCore....
75.089623
351
0.740405
[ "MIT" ]
a1mond/APBD
Tutorial10/WebApplication1/WebApplication1/obj/Debug/net5.0/Razor/Views/Movies/Create.cshtml.g.cs
31,838
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...
29.88
74
0.692102
[ "MIT" ]
93mishra/azure-sdk-for-net
sdk/marketplace/Microsoft.Azure.Management.Marketplace/src/Generated/Models/IdentityType.cs
747
C#
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *------------------------------------------------------------...
37.561798
192
0.659438
[ "MIT" ]
Agazoth/azure-powershell
src/DataBox/generated/runtime/BuildTime/Models/PsHelpMarkdownOutputs.cs
6,509
C#
using AutoMapper; namespace DefaultTemplate.Application.Common.Mappings { public interface IMapFrom<T> { void Mapping(Profile profile) => profile.CreateMap(typeof(T), GetType()); } }
20.8
81
0.6875
[ "MIT" ]
Magicianred/ASP.NET-Server-Architectures
3. Clean Architecture Template/src/Application/Common/Mappings/IMapFrom.cs
210
C#
namespace FredrikScript.Core.Expressions { public abstract class UnaryExpression : Expression { public UnaryExpression(Context context, SourceInformation sourceInformation, Expression value) : base(context, sourceInformation) { Value = value; } public Expression Val...
26.153846
137
0.667647
[ "MIT" ]
FredrikAleksander/FredrikScript
FredrikScript.Core/Expressions/UnaryExpression.cs
342
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. // Changes may cause incorrect behavior and will be lost if the code is regenerated. namespace Mi...
71.122807
451
0.662926
[ "MIT" ]
3quanfeng/azure-powershell
src/MySql/generated/cmdlets/NewAzMySqlFirewallRule_CreateExpanded.cs
31,977
C#
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Dynamic.Core; using Microsoft.AspNetCore.Mvc.Rendering; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Caching.Memory; using TicketCore.Common; using TicketCore.Models.MenuCategorys; using TicketCore.ViewModels.MenuCa...
40.071429
149
0.513666
[ "MIT" ]
pankajkadam333/VueTicket
VueTicketCore/TicketCore.Data/MenuCategorys/Queries/MenuCategoryQueries.cs
6,734
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class ActiveSubmenuTracker : MonoBehaviour { void Start() { m_Animator = GetComponent<Animator>(); } void Update() { if (Game.game && Game.game.clientFrontend) { m_Animator.Se...
20.958333
96
0.634195
[ "MIT" ]
The-ULTIMATE-MULTIPLAYER-EXPERIENCE/Ultimate-Archery-Multiplayer-Unity-Game
DOTSSample-master/Assets/Scripts/Game/Frontend/ActiveSubmenuTracker.cs
505
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using MvcThrottleImproved; namespace MvcThrottle.Demo.Controllers { public class HomeController : BaseController { public ActionResult Index() { return View(); } ...
22.151515
67
0.592339
[ "MIT" ]
weslleyramos/MvcThrottleImproved
MvcThrottle.Demo/Controllers/HomeController.cs
733
C#
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; names...
36.555556
159
0.734802
[ "ECL-2.0", "Apache-2.0" ]
EladGabay/pulumi-oci
sdk/dotnet/DataScience/Outputs/GetModelDeploymentsModelDeploymentModelDeploymentConfigurationDetailsResult.cs
1,316
C#
using Command.Core.Commands; using Command.Core.Contract; using Command.Core.Core; using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Collections.Generic; namespace Command.Test { [TestClass] public class SimpleRemoteControlTest { [TestMethod] public void Quando_eu_pressionar...
29.6
113
0.538288
[ "MIT" ]
adrianomota/design-patterns
test/Command.Test/SimpleRemoteControlTest.cs
1,334
C#
using System; using System.Collections; using System.Collections.Concurrent; using System.IO; using System.Linq; using System.Runtime.Remoting; using System.Runtime.Remoting.Channels; using System.Runtime.Remoting.Channels.Tcp; using System.Runtime.Serialization.Formatters; using System.Threading; using System.Windows...
39.53125
149
0.614822
[ "MIT" ]
FanYuchi/secs4net
secs4net/Core/EAPHost/Program.cs
5,108
C#
/* Copyright 2019 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, ...
27.546875
103
0.663642
[ "Apache-2.0" ]
Esri/arcobjects-sdk-community-samples
Net/GraphicsPipeline/RSSWeatherLayer/CSharp/PropertySheet.Designer.cs
1,763
C#
using System; using System.Threading.Tasks; using DomainModel; using IdeaBlade.EntityModel; namespace DomainServices.Services { public class DuplicateAccoService { public static async Task ExecuteAsync(int fromaccoid, int toaccoid, string language) { EntityManager mgr = new AccoBookingEntities()...
21.407407
121
0.723183
[ "MIT" ]
jkattestaart/AccoBooking
DomainServices.SL/Services/DuplicateAccoService.cs
580
C#
// --------------------------------------------------------------------------------------- // <copyright file="NativeCallException.cs" company="SharpBlade"> // Copyright © 2013-2014 by Adam Hellberg and Brandon Scott. // // Permission is hereby granted, free of charge, to any person obtaining a copy of // ...
41.090909
113
0.606379
[ "MIT" ]
SharpBlade/SharpBlade
SharpBlade/Razer/NativeCallException.cs
5,427
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; using Module_9.Filters; namespace Module_9.Pages { [SimplePage] public class CustomModel : PageModel { public void OnGet() ...
18.105263
42
0.703488
[ "MIT" ]
daniil-lukashevich/core-lab
Lab/Module 9/Module 9/Pages/Custom.cshtml.cs
344
C#
using System; using System.Collections.Generic; using System.IdentityModel.Tokens.Jwt; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Configuration; usin...
34.834711
119
0.541637
[ "Apache-2.0" ]
leili-ncut/IdentityServer4.Samples.Test
QuickStarts/1_ClientCredentials/OpenIdMvc/Startup.cs
4,453
C#
using UnityEngine; /// <summary> /// Be aware this will not prevent a non singleton constructor /// such as `T myT = new T();` /// To prevent that, add `protected T () {}` to your singleton class. /// /// As a note, this is made as MonoBehaviour because we need Coroutines. /// </summary> public class Singleton<T> ...
30.492958
77
0.649885
[ "MIT" ]
carlsc2/BigQuestionRepo
OldPeopleInSpace/Assets/Scripts/Singleton.cs
2,167
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.Diagnostics.CodeAnalysis; namespace System.Text.Json.Serialization { /// <summary> /// Converts an object or value to or from JSON. ...
40.137066
152
0.549565
[ "MIT" ]
ANISSARIZKY/runtime
src/libraries/System.Text.Json/src/System/Text/Json/Serialization/JsonConverterOfT.cs
20,791
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Gov.Lclb.Cllb.Public.ViewModels { public class Contact { public string id { get; set; } public string name { get; set; } public string firstname { get; set; } public str...
26.733333
83
0.666459
[ "Apache-2.0" ]
danieltruong/ag-lclb-cllc-public
cllc-public-app/ViewModels/Contact.cs
1,606
C#
// CodeContracts // // Copyright (c) Microsoft Corporation // // All rights reserved. // // MIT License // // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including wit...
34.476636
463
0.746544
[ "MIT" ]
Acidburn0zzz/CodeContracts
Microsoft.Research/Contracts/PresentationFramework/Sources/System.Windows.Automation.Peers.GridViewColumnHeaderAutomationPeer.cs
3,689
C#
using Bellatrix.Web.GettingStarted._12._Page_Objects; using NUnit.Framework; namespace Bellatrix.Web.GettingStarted { [TestFixture] public class PageObjectsTests : NUnit.WebTest { // 1. As you most probably noticed this is like the 4th time we use almost the same elements and logic inside our te...
63.60274
155
0.635042
[ "Apache-2.0" ]
48x16/BELLATRIX
templates/Bellatrix.Web.GettingStarted/12. Page Objects/PageObjectsTests.cs
9,290
C#
/* * Copyright (C) 2014 Google 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 applicable law or agree...
31.688073
86
0.537348
[ "Apache-2.0" ]
cheongyongkim/playgameservices
samples/Minimal/Source/Assets/Minimal/MainGui.cs
3,454
C#
/* * Copyright (c) Contributors, http://aurora-sim.org/ * See CONTRIBUTORS.TXT for a full list of copyright holders. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code mus...
38.996269
166
0.598986
[ "BSD-3-Clause" ]
BillyWarrhol/Aurora-Sim
OpenSim/Services/CapsService/CapsService.cs
10,451
C#
using MTProto.NET.Attributes; namespace MTProto.NET.Schema.TL { [MTObject(0x35553762)] public class TLTextAnchor : TLAbsRichText { public override uint Constructor { get { return 0x35553762; } } [MTParameter(Order = 0)] ...
18.75
47
0.531111
[ "MIT" ]
Gostareh-Negar/TeleNet
MTProto.NET/Schema/TL/_generated/TLTextAnchor.cs
450
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; namespace Demo12.Models { public class Student { public int Id { get; set; } [Required] [StringLength(40)] public string FirstName { ge...
22.193548
57
0.619186
[ "MIT" ]
DeltaVCode/cedar-c-do-401d5
class-16/Demo/Demo12/Models/Student.cs
690
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. /*using System.Collections.Generic; using System.Threading.Tasks; using Microsoft.Bot.Builder.Adapters; using Microsoft.Bot.Builder.Dialogs.Choices; using Microsoft.Recognizers.Text; using Microsoft.VisualStudio.TestTools....
34.727273
117
0.522812
[ "MIT" ]
APiZFiBlockChain4/botbuilder-dotnet
tests/Microsoft.Bot.Builder.Dialogs.Tests/DialogChoicePromptTests.cs
2,676
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> //--...
41.265957
177
0.586234
[ "MIT" ]
sumee147/SchoolFees
StudentInfo/Properties/Resources.Designer.cs
3,881
C#
// This is an open source non-commercial project. Dear PVS-Studio, please check it. // PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com /* Program.cs -- * Ars Magna project, http://arsmagna.ru * ------------------------------------------------------- * Status: poor */ #region Using direct...
23.376344
84
0.584177
[ "MIT" ]
amironov73/ManagedClient.45
Source/Classic/Apps/BeriChitai/Source/Program.cs
2,176
C#
// Copyright (c) Xenko contributors (https://xenko.com) 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 Xenko.Core.Annotations; namespace Xenko.Core.Diagnostics { /// <summary> /// A set of...
48.822917
142
0.624493
[ "MIT" ]
Aminator/xenko
sources/core/Xenko.Core/Diagnostics/LogMessageExtensions.cs
4,687
C#
using System.Reactive.Disposables; using ReactiveUI; using Xamarin.Forms.Xaml; namespace BoutiqueXamarin.Views.Clothes.Choices.ChoiceViewItems { [XamlCompilation(XamlCompilationOptions.Compile)] public partial class ChoiceCategoryView : ChoiceCategoryBase { public ChoiceCategoryView() { ...
27.761905
90
0.631218
[ "MIT" ]
rubilnik4/VeraBoutique
BoutiqueXamarin/BoutiqueXamarin/Views/Clothes/Choices/ChoiceViewItems/ChoiceCategoryView.xaml.cs
585
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("Ve...
39.138889
84
0.753726
[ "MIT" ]
djgunni86/Vettvangur.IcelandAuth
src/Samples/Vettvangur.IcelandAuth.Sample.Umbraco7/Properties/AssemblyInfo.cs
1,412
C#
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; names...
37.346154
180
0.740474
[ "ECL-2.0", "Apache-2.0" ]
Otanikotani/pulumi-aws
sdk/dotnet/WafV2/Inputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeaderGetArgs.cs
971
C#
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; names...
31.128205
128
0.626853
[ "ECL-2.0", "Apache-2.0" ]
RafalSumislawski/pulumi-aws
sdk/dotnet/Ec2/Inputs/GetNetworkInterfacesFilterArgs.cs
1,214
C#
using System.CodeDom.Compiler; using System.Collections.Generic; using System.Collections; using System.ComponentModel; using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.IO; using System.Linq; using System.Reflection; using System.Runtime.Serialization; using System.Text.RegularExpression...
30.818182
236
0.572693
[ "MIT" ]
bobhatepradip/leet
leet/MakingCandies.cs
2,375
C#
using System; using System.Globalization; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using PriceCalculator.Models; namespace PriceCalculator { class Program { private static ServiceProvider _serviceProvider; private static IConfiguratio...
32.432432
113
0.57
[ "MIT" ]
tkglaser/challenge.shell.01
PriceCalculator/Program.cs
2,403
C#
using System; using MikhailKhalizev.Processor.x86.BinToCSharp; namespace MikhailKhalizev.Max.Program { public partial class RawProgram { [MethodInfo("0x1015_48ba-89334343")] public void Method_1015_48ba() { ii(0x1015_48ba, 5); push(0x30); ...
78.980769
114
0.451424
[ "Apache-2.0" ]
mikhail-khalizev/max
source/MikhailKhalizev.Max/source/Program/Auto/z-1015-48ba.cs
8,214
C#
using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; namespace Sentry.Internal.Extensions { internal static class CollectionsExtensions { public static void AddRange<T>(this ICollection<T> collection, IEnumerable<T> items) { foreach (var i in ite...
31.3
126
0.559904
[ "MIT" ]
Mitch528/sentry-dotnet
src/Sentry/Internal/Extensions/CollectionsExtensions.cs
1,252
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...
24.361111
81
0.607754
[ "Apache-2.0" ]
pulumi-bot/pulumi-azure-native
sdk/dotnet/Network/V20180401/Outputs/MonitorConfigResponseExpectedStatusCodeRanges.cs
877
C#
/* gm_swappanel.cs * 10.28.2019 * Balloon Physics Simulator * Author: Team NoName * Description: Swaps panels in betweenn wind and radius panels * */ using UnityEngine; public class gm_swappanel : MonoBehaviour { public JSONconfig config; private bool radiusSlider; private bool infla...
30.212121
73
0.623872
[ "BSD-2-Clause" ]
Class41/BalloonSimulator
Assets/Scripts/GameManager/gm_swappanel.cs
1,996
C#
//=================================================================================== // Microsoft patterns & practices // Composite Application Guidance for Windows Presentation Foundation and Silverlight //=================================================================================== // Copyright (c) Microso...
37.333333
98
0.58631
[ "MIT" ]
cointoss1973/Prism4.1-WPF
PrismLibrary/Desktop/Prism.Tests/Regions/RegionManagerFixture.cs
12,096
C#
/* * Copyright Beijing 58 Information Technology Co.,Ltd. * * 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 ...
30.417391
87
0.508005
[ "Apache-2.0" ]
58code/Gaea
client/net/client/Com.Bj58.Spat.Gaea.Client/Utility/Logger/UDPLogger.cs
3,500
C#
using Windows.Foundation; using System; using System.Collections.Generic; using System.Text; using System.Threading; using Uno; using Uno.UI.Xaml.Input; using Windows.System; using Windows.UI.Core; using Windows.UI.Input; namespace Windows.UI.Xaml.Input { public sealed partial class PointerRoutedEventArgs : RoutedEv...
27.304348
128
0.755573
[ "Apache-2.0" ]
06needhamt/uno
src/Uno.UI/UI/Xaml/Input/PointerRoutedEventArgs.cs
1,258
C#