content
stringlengths
5
1.04M
avg_line_length
float64
1.75
12.9k
max_line_length
int64
2
244k
alphanum_fraction
float64
0
0.98
licenses
list
repository_name
stringlengths
7
92
path
stringlengths
3
249
size
int64
5
1.04M
lang
stringclasses
2 values
using System.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.27027
85
0.728837
[ "MIT" ]
ilyanevolin/ForumAnalyzerPro
Tests/Properties/AssemblyInfo.cs
1,456
C#
/* _BEGIN_TEMPLATE_ { "id": "TB_BaconShop_HP_041b", "name": [ "机械之王", "King of Mechs" ], "text": [ "<b>被动英雄技能</b>\n每当你购买一个<b>机械</b>,使其获得+1/+2。每回合切换类型。", "[x]<b>Passive Hero Power</b>\nWhenever you buy a\n<b>Mech</b>, give it +1/+2.\nSwaps type each turn." ], "CardClass": "NEUTRAL", "type"...
19.357143
106
0.595941
[ "MIT" ]
chi-rei-den/Silverfish
cards/BATTLEGROUNDS/TB/Sim_TB_BaconShop_HP_041b.cs
608
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using Util; using Util.Applications.Dtos; namespace GreatWall.Service.Dtos { /// <summary> /// 身份资源参数 /// </summary> public class IdentityResourceDto : DtoBase { /// <summary> /// 资源标识 ...
28.054348
59
0.456412
[ "MIT" ]
UtilCore/GreatWall
src/GreatWall.Service/Dtos/IdentityResourceDto.cs
2,847
C#
using System.Collections.Generic; using System.Linq; namespace Engine.StrategyPattern.PatternVersion { public class AverageByMedian : IAveragingMethod { public double AverageFor(List<double> values) { // Median average is the middle value of the values in the list. var...
40.875
99
0.574159
[ "MIT" ]
ScottLilly/CSharpDesignPatterns
Engine/StrategyPattern/PatternVersion/AverageByMedian.cs
1,310
C#
using System.Linq; using MongoFramework.Infrastructure.Mapping; namespace MongoFramework.Infrastructure.Linq { public static class QueryHelper { public static string GetQuery<TEntity>(AggregateExecutionModel model) { var entityDefinition = EntityMapping.GetOrCreateDefinition(typeof(TEntity)); var stages =...
28.875
79
0.757576
[ "MIT" ]
bobbyangers/MongoFramework
src/MongoFramework/Infrastructure/Linq/QueryHelper.cs
464
C#
using System.Collections.Generic; using Content.Server.Cargo; using Robust.Shared.GameObjects.Systems; namespace Content.Server.GameObjects.EntitySystems { public class CargoConsoleSystem : EntitySystem { /// <summary> /// How much time to wait (in seconds) before increasing bank accounts bala...
31.485981
115
0.554764
[ "MIT" ]
ALMv1/space-station-14
Content.Server/GameObjects/EntitySystems/CargoConsoleSystem.cs
3,371
C#
using System.Threading.Tasks; using InfluxDB.Client.Core.Exceptions; using NUnit.Framework; using WireMock.RequestBuilders; using WireMock.ResponseBuilders; namespace Client.Legacy.Test { public class FluxClientVersionTest : AbstractFluxClientTest { [Test] public async Task Version() { ...
26.680851
75
0.555024
[ "MIT" ]
bonitoo-io/flux-csharp
Client.Legacy.Test/FluxClientVersionTest.cs
1,254
C#
using System; namespace DirectX12GameEngine.Graphics { public class DepthStencilView : ResourceView { public DepthStencilView(GraphicsResource resource) : base(resource, CreateDepthStencilView(resource)) { } private static IntPtr CreateDepthStencilView(GraphicsResource resourc...
30.75
138
0.710569
[ "MIT" ]
5l1v3r1/DirectX12GameEngine
DirectX12GameEngine.Graphics/DepthStencilView.cs
617
C#
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Text; namespace January23rd { public class LuckyNumbers : IEnumerable<int> { public IEnumerator<int> GetEnumerator() { yield return 1; yield ret...
24.856115
112
0.520405
[ "MIT" ]
EricCharnesky/CIS297-Winter2020
January23rd/January23rd/Class1.cs
3,457
C#
/********************************************************************++ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ using System.Collections; using System.Globalization; using System.Collections.Generic; using System.IO; using Syste...
48.950178
149
0.5747
[ "Apache-2.0", "MIT" ]
JM2K69/PowerShell
src/System.Management.Automation/engine/Modules/ScriptAnalysis.cs
27,510
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable namespace Azure.Management.Network.Models { /// <summary> The routes table associated with the ExpressRouteCircuit. </summary> public partial class ExpressRouteCircuitRoutesT...
41.577778
135
0.639765
[ "MIT" ]
AbelHu/azure-sdk-for-net
sdk/testcommon/Azure.Management.Network.2020_04/src/Generated/Models/ExpressRouteCircuitRoutesTable.cs
1,871
C#
// (c) Copyright Microsoft Corporation. // This source is subject to the Microsoft Public License (Ms-PL). // Please see http://go.microsoft.com/fwlink/?LinkID=131993 for details. // All other rights reserved. using System; using System.Reflection; using System.Resources; using System.Runtime.InteropServices; using S...
38.757576
120
0.770915
[ "MIT" ]
KeyurJP/OpenSilver
src/Runtime/Controls.Input/.CSHTML5/Properties/AssemblyInfo.cs
1,282
C#
using System; using System.IO; namespace DotNet.zy.Utilities { /// <summary> /// This class represents the Pop3 PASS command. /// </summary> internal sealed class PassCommand : Pop3Command<Pop3Response> { private string _password; /// <summary> /// Initializes a new insta...
28
86
0.565476
[ "MIT" ]
cqkxzyi/ZhangYi.Utilities
doNet/DotNet.zy.Utilities/邮件/邮件2/PassCommand.cs
1,178
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.Collections.Generic; using System.Collections.ObjectModel; using System.ComponentModel.DataAnnotations.Schema; namespace Microsoft.EntityFrameworkCore.TestModels.ManyT...
32.8
118
0.75
[ "MIT" ]
CameronAavik/efcore
test/EFCore.Specification.Tests/TestModels/ManyToManyModel/ImplicitManyToManyA.cs
658
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.Collections; using System.Collections.Generic; using System.Linq; using System.Reflection; using Xunit;...
58.544343
292
0.551918
[ "MIT" ]
FrancisFYK/corefx
src/System.Runtime/tests/System/ArrayTests.cs
210,584
C#
using System; using System.Collections.Generic; using System.Linq; namespace EasyElasticSearch { public class EsConfig { public string Urls { get; set; } public string UserName { get; set; } public string Password { get; set; } public List<Uri> Uris => Urls.Split('|').Select...
19.777778
82
0.617978
[ "MIT" ]
wmchuang/EasyElasticSearch
EasyElasticSearch/EasyElasticSearch/Config/EsConfig.cs
358
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("Ta...
39.305556
84
0.753357
[ "MIT" ]
CodeCowboyOrg/TaskRunner
source/TaskRunner.Core.Test/Properties/AssemblyInfo.cs
1,418
C#
// Generated on 12/11/2014 19:02:09 using System; using System.Collections.Generic; using System.Linq; using BlueSheep.Common.IO; namespace BlueSheep.Common.Protocol.Types { public class ProtectedEntityWaitingForHelpInfo { public new const short ID = 186; public virtual short TypeId { get { r...
18.695122
187
0.704501
[ "MIT" ]
Sadikk/BlueSheep
BlueSheep/Common/Protocol/types/game/fight/ProtectedEntityWaitingForHelpInfo.cs
1,533
C#
//********************************************************************* //xCAD //Copyright(C) 2020 Xarial Pty Limited //Product URL: https://www.xcad.net //License: https://xcad.xarial.com/license/ //********************************************************************* using System; using System.Collections.Generic; ...
22.045455
72
0.461856
[ "MIT" ]
jonnypjohnston/Xarial-xcad
src/Base/Base/Enums/MessageBoxIcon_e.cs
487
C#
using Microsoft.AspNet.SignalR; using Microsoft.AspNet.SignalR.Hubs; using Slack.Dtos; namespace Slack.Hubs { [HubName("messageHub")] public class MessageHub : Hub { public void Send(MessageDto dto) { Clients.Others.broadcastMessage(dto); } } }
19.866667
49
0.637584
[ "MIT" ]
QuinntyneBrown/slack
Server/Hubs/MessageHub.cs
300
C#
namespace EducationHub.Services.Data.Lessons { using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using EducationHub.Data.Common.Repositories; using EducationHub.Data.Models; using Mapping; using Microsoft.EntityFrameworkCore; public class LessonsServic...
34.863158
143
0.571558
[ "MIT" ]
mitovV/-EducationHub
Services/EducationHub.Services.Data/Lessons/LessonsService.cs
3,314
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.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using Microsoft.AspNetCore.Mvc.ModelBinding.Validation...
30.966667
111
0.715823
[ "Apache-2.0" ]
1175169074/aspnetcore
src/Mvc/test/WebSites/FormatterWebSite/Models/RecursiveIdentifier.cs
929
C#
using System; using CarouselView.FormsPlugin.Abstractions; namespace CarouselView.FormsPlugin.Droid { internal interface IViewPager { void SetPagingEnabled(bool enabled); void SetElement(CarouselViewControl element); } }
20.916667
53
0.741036
[ "MIT" ]
Nobody84/CarouselView
CarouselView/CarouselView.FormsPlugin.Android/Implementation/IViewPager.cs
253
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. using Microsoft.MixedReality.Toolkit.Utilities; using Microsoft.MixedReality.Toolkit.Utilities.Editor; using Microsoft.MixedReality.Toolkit.Input.UnityInput; ...
58.694864
225
0.523574
[ "MIT" ]
ForrestTrepte/azure-remote-rendering
Unity/AzureRemoteRenderingShowcase/arr-showcase-app/Assets/MixedRealityToolkit/Inspectors/Profiles/MixedRealityControllerMappingProfileInspector.cs
19,432
C#
using System.Collections.Generic; using Abp.Configuration; namespace ABPCommerce.Configuration { public class AppSettingProvider : SettingProvider { public override IEnumerable<SettingDefinition> GetSettingDefinitions(SettingDefinitionProviderContext context) { return new[] ...
34.176471
220
0.712565
[ "MIT" ]
eminentasi/abpcommerce
aspnet-core/src/ABPCommerce.Core/Configuration/AppSettingProvider.cs
583
C#
#pragma checksum "C:\Users\gabri\OneDrive\Documentos\GitHub\BlakeChat\BlakeChat\Views\Shared\_ValidationScriptsPartial.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "4b5e5ef4ebf7354cc35c7dacddd6bc3068f19a47" // <auto-generated/> #pragma warning disable 1591 [assembly: global::Microsoft.AspNetCore.Razor.Hosting.Razor...
67.656863
406
0.761339
[ "MIT" ]
Glightman/BlakeChat
BlakeChat/obj/Debug/net5.0/Razor/Views/Shared/_ValidationScriptsPartial.cshtml.g.cs
6,901
C#
#pragma warning disable RECS0018 using System; using UnityEngine; using System.Collections.Generic; using System.IO; using System.Reflection; using Newtonsoft.Json; using System.Collections; using AttachPoint = tk2dSpriteDefinition.AttachPoint; using YamlDotNet; using YamlDotNet.Serialization; public static partial ...
44.826709
190
0.512413
[ "MIT" ]
Gl0rfindel/ETGMod
Assembly-CSharp.Base.mm/src/Core/Assets/Assets.cs
28,198
C#
 using System; namespace ConsoleUtils.ConsoleActions { public class AutoCompleteRestOfLineAction : IConsoleAction { public void Execute(IConsole console, ConsoleKeyInfo consoleKeyInfo) { if (!console.PreviousLineBuffer.HasLines) return; var pr...
38.826087
98
0.647256
[ "MIT" ]
jncronin/tysila
tysila4/ConsoleUtils/ConsoleActions/AutoCompleteRestOfLineAction.cs
895
C#
using Alex.Worlds; using ConcreteMC.MolangSharp.Attributes; namespace Alex.Entities.Hostile { public class EnderDragon : HostileMob { [MoProperty("wing_flap_position")] public double WingFlapPosition { get; set; } = 0d; public EnderDragon(World level) : base(level) { Height = 8; Width = 16; } /// <...
22.266667
88
0.696108
[ "MPL-2.0" ]
ConcreteMC/Alex
src/Alex/Entities/Hostile/EnderDragon.cs
668
C#
using System; namespace Patterns.EventSourcing.Interface { [Serializable] public class TimestampedValue<TValue> { public TimestampedValue(TValue value, DateTime timestamp) { Timestamp = timestamp; Value = value; } public DateTime Timestamp { get; se...
24.473684
89
0.597849
[ "MIT" ]
amccool/orleans-architecture-patterns-code
Patterns.EventSourcing/Interface/TimestampedValue.cs
467
C#
using System; using System.Runtime.InteropServices; using ExileCore; using ExileCore.PoEMemory.Components; using ExileCore.PoEMemory.MemoryObjects; using ExileCore.Shared.Cache; using SharpDX; using SharpDX.Direct3D11; using SharpDX.DXGI; using Map=ExileCore.PoEMemory.Elements.Map; namespace Terrain { internal clas...
32.415301
150
0.691504
[ "Apache-2.0" ]
Rebrandsoft/Guard-Terrain
src/TerrainCore.cs
5,934
C#
using System; using System.Reflection; using System.Windows; using System.Windows.Media; using System.Windows.Media.Effects; namespace CairoDesktop.Common { /// <summary> /// Provides a custom message dialog for the Cairo Desktop. /// </summary> public partial class CairoMessage : Window { ...
35.354701
177
0.566179
[ "Apache-2.0" ]
curoviyxru/cairoshell
Cairo Desktop/CairoDesktop.Common/CairoMessage.xaml.cs
8,275
C#
using System; using System.Linq; namespace Microsoft.Azure.Devices.Applications.RemoteMonitoring.Common.Extensions { static public class StringExtension { /// <summary> /// Try to remove prefix from input string /// </summary> /// <param name="s">The raw string</param> ...
40.030928
126
0.564512
[ "MIT" ]
incarnyx/Smart-Parking-Solution
Remote Monitoring Solution/Common/Extensions/StringExtension.cs
3,885
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; namespace FindPair { static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void Ma...
22.043478
65
0.609467
[ "MIT" ]
kravtsun/au-dotnet
FindPair/FindPair/Program.cs
509
C#
namespace Pims.Api.Models.Parcel { public class AddressModel : BaseAppModel { #region Properties public long Id { get; set; } public string Line1 { get; set; } public string Line2 { get; set; } public string AdministrativeArea { get; set; } public string Provi...
20.772727
54
0.582057
[ "Apache-2.0" ]
stairaku/PSP
backend/api/Models/Parcel/AddressModel.cs
457
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using VVVV.PluginInterfaces.V1; using VVVV.PluginInterfaces.V2; namespace VVVV.DX11 { public interface IDX11RenderDependencyFactory { void CreateDependency(IPin inputPin, IPin outputPin)...
22.117647
61
0.760638
[ "BSD-3-Clause" ]
azeno/dx11-vvvv
Core/VVVV.DX11.Core/NodeInterfaces/IDX11RenderDependencyFactory.cs
378
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> //--...
49.816667
271
0.590164
[ "MIT" ]
joergen-vs/addmlpack
AddmlPack.Utils/Files.Designer.cs
5,981
C#
#if UITEST using System; using System.Diagnostics; using System.IO; using System.Linq; using NUnit.Framework; using NUnit.Framework.Interfaces; using Xamarin.Forms.Core.UITests; using Xamarin.UITest; using Xamarin.UITest.Queries; #if __IOS__ using Xamarin.UITest.iOS; #endif namespace Xamarin.Forms.Controls { /// <su...
27.969534
186
0.723265
[ "MIT" ]
Seuleuzeuh/Xamarin.Forms
Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/TestPages/ScreenshotConditionalApp.cs
15,607
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; namespace Inheritance_Product { static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread...
23.478261
66
0.592593
[ "MIT" ]
kadir-code/OOP_Applications
Inheritance/Inheritance_Product_Info/Program.cs
542
C#
using System; using Aspect.Policies.CompilerServices.CompilationUnits; namespace Aspect.Policies.CompilerServices.SyntaxTokens { internal sealed class QuotedIdentifierSyntaxToken : SyntaxToken { public string Value { get; } public string ParsedValue => Value.Replace("\\\"", "\"", StringCompari...
31.052632
110
0.666102
[ "MIT" ]
Im5tu/aspect
src/Aspect.Policies/CompilerServices/SyntaxTokens/QuotedIdentifierSyntaxToken.cs
592
C#
using System.Collections.Generic; using System.Reflection; using Fody; using Xunit; public class WithIncludesTests { static Assembly assembly; static TestResult testResult; static WithIncludesTests() { var weavingTask = new ModuleWeaver { IncludeNamespaces = ...
26.621622
86
0.634518
[ "MIT" ]
BrunoJuchli/EmptyConstructor
Tests/WithIncludesTests.cs
951
C#
using System.Threading.Tasks; using Craftplacer.IRC.Helpers; namespace Craftplacer.IRC.Entities { public class IrcUser : IrcEntity { public IrcUser(IrcClient client, string hostmask) : base(client) { (Nickname, Username, Host) = Utilities.ExtractHostmask(hostmask); } ...
23.266667
77
0.598854
[ "MIT" ]
Craftplacer/IRC
Craftplacer.IRC/Entities/IrcUser.cs
700
C#
using LightBDD.Framework.Scenarios; using LightBDD.XUnit2; using Nancy; namespace RestFS.Console_Test.RestApi { public partial class ReadFileInfo { [Scenario] public void Read_an_existent_file_information() { Runner.RunScenario( _ => Given_a_file("existing/f...
31.891304
76
0.551466
[ "Apache-2.0" ]
secana/RestFS
test/RestFS.Console_Test/RestApi/ReadFileInfo.cs
1,469
C#
//*************************************************** //* This file was generated by JSharp //*************************************************** namespace java.net { internal partial class SocksSocketImpl : PlainSocketImpl, SocksConsts { public SocksSocketImpl(){} protected virtual void acceptF...
39.666667
84
0.584034
[ "MIT" ]
SharpKit/Cs2Java
Runtime/rt/java/net/SocksSocketImpl.cs
714
C#
namespace DragonSpark.Application.Security.Identity.Claims.Policy; public class ClaimsPolicy : AddPolicyConfiguration { protected ClaimsPolicy(string name, params string[] claims) : base(name, new RequireClaims(claims)) {} }
37.833333
103
0.806167
[ "MIT" ]
DragonSpark/Framework
DragonSpark.Application/Security/Identity/Claims/Policy/ClaimsPolicy.cs
229
C#
// <auto-generated /> using System; using LogisticsSystem.Data; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; namespace LogisticsSystem.Migrations { [DbContext(type...
36.430851
125
0.43886
[ "MIT" ]
pepsitopepsito9681/ASP.NET-Core-Project-Logistics-System
LogisticsSystem/Migrations/LogisticsDbContextModelSnapshot.cs
27,398
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 Xunit; namespace System.Threading.Tests { public static partial class SpinWaitTests { [Fact]...
34.97619
122
0.582709
[ "MIT" ]
2E0PGS/corefx
src/System.Threading/tests/SpinWaitTests.netcoreapp.cs
1,471
C#
using System; namespace Interface_Desacopla { class RegistrarNoConsole : IRegistro { public void RegistraInfo(string mensagem) { Console.WriteLine($"info : {mensagem}"); } } }
17.384615
52
0.597345
[ "MIT" ]
LucasCancio/poo-com-solid
Modulo02/37_Interface_Desacopla/Interface_Desacopla/RegistrarNoConsole.cs
228
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using UnityEngine; using KSP.UI.Screens; using NearFutureElectrical; using KSP.Localization; namespace NearFutureElectrical.UI { public class ReactorUIEntry { // Color of the temperature bar private Color nominal...
43.169492
186
0.669415
[ "Unlicense", "MIT" ]
LouisB3/NearFutureElectrical
Source/NearFutureElectrical/UI/ReactorUIEntry.cs
12,735
C#
using System; using System.Collections.Generic; using System.Data; using CMS.Base.Web.UI; using CMS.DataEngine; using CMS.Helpers; using CMS.SiteProvider; using CMS.Synchronization; using CMS.Synchronization.Web.UI; using CMS.UIControls; [UIElement("CMS.Staging", "All")] public partial class CMSModules_Staging_Tool...
29.153846
514
0.632586
[ "MIT" ]
BryanSoltis/KenticoMVCWidgetShowcase
CMS/CMSModules/Staging/Tools/AllTasks/Tasks.aspx.cs
9,098
C#
namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// <summary>Recovery plan group details.</summary> public partial class RecoveryPlanGroup { /// <summary> /// <c>AfterFromJson...
77.022901
770
0.685828
[ "MIT" ]
3quanfeng/azure-powershell
src/Migrate/generated/api/Models/Api20180110/RecoveryPlanGroup.json.cs
9,960
C#
// Copyright (c) CBC/Radio-Canada. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for more information. namespace LinkIt.Core.Includes.Interfaces { internal interface IIncludeWithGetReference<TIReference, TLink> { TIReference GetReference(TLink link, DataSt...
34.3
93
0.755102
[ "MIT" ]
fynnen/LinkIt
src/LinkIt/Core/Includes/Interfaces/IIncludeWithGetReference.cs
343
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using WioLibrary.Logging; using WioLibrary.WebSocket; namespace WioLibrary { public class SocketManager { private List<SocketClientWrapper> sockets; private static readonly SocketManager instance =...
32.461538
148
0.613349
[ "MIT" ]
mplogas/WioTimer
WioLibrary/SocketManager.cs
2,534
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("II...
38.081081
84
0.745919
[ "MIT" ]
primas23/IISTestApp
IISTA.Server/Properties/AssemblyInfo.cs
1,412
C#
using System; using System.Diagnostics; namespace EasyArchitecture.Core.Aspects.Log { internal class LogInterceptor:Interceptor { internal override object Invoke(ProxyMethodCall methodCall) { object ret; var sw = new Stopwatch(); sw.Start(); Met...
25
100
0.57125
[ "MIT" ]
TicketArchitecture/EasyArchitecture
src/EasyArchitecture/Core/Aspects/Log/LogInterceptor.cs
802
C#
// ********************************************************************************* // <copyright file=ImageLabelButtonStyle.cs company="Marcus Technical Services, Inc."> // Copyright @2019 Marcus Technical Services, Inc. // </copyright> // // MIT License // // Permission is hereby granted, free of charge, to any...
36.875969
102
0.600378
[ "MIT" ]
marcusts/Com.MarcusTS.SharedForms
Views/Controls/ImageLabelButtonStyle.cs
4,759
C#
using System; using Cake.Common; using Cake.Frosting; public sealed class FormatCode : FrostingTask<Context> { public override void Run(Context context) { int result = context.StartProcess(context.DotNetFormatToolPath); if (result != 0) { throw new Exception($"Failed to ex...
23.285714
96
0.648262
[ "MIT" ]
maxim-lobanov/octokit.net
build/Tasks/FormatCode.cs
491
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.Collections.Immutable; using Microsoft.CodeAnalysis.Text; namespace Microsoft.CodeAnalysis.Navigation...
37.473684
142
0.658006
[ "MIT" ]
06needhamt/roslyn
src/Features/Core/Portable/Navigation/INavigableItem.cs
1,426
C#
using ESRI.ArcLogistics.Utility.CoreEx; using Xceed.Wpf.DataGrid; namespace ESRI.ArcLogistics.App.GridHelpers { /// <summary> /// Helper extension methods for Xceed DataGrid cells. /// </summary> internal static class CellExtensions { /// <summary> /// Marks the specified cell as d...
29.888889
92
0.599752
[ "Apache-2.0" ]
Esri/route-planner-csharp
RoutePlanner_DeveloperTools/Source/ArcLogisticsApp/GridHelpers/CellExtensions.cs
809
C#
using MicroOrm.Dapper.Repositories.Tests.DatabaseFixture; using Xunit; using Xunit.Abstractions; namespace MicroOrm.Dapper.Repositories.Tests.RepositoriesTests { public class MsSql2019RepositoriesTests : RepositoriesTests, IClassFixture<MsSql2019DatabaseFixture> { public MsSql2019RepositoriesTests(MsS...
31.176471
124
0.766038
[ "MIT" ]
WalterNagelGmbH/dapper-repositories
test/MicroOrm.Dapper.Repositories.Tests/RepositoriesTests/MsSql2019RepositoriesTests.cs
532
C#
 namespace SeeSharper.Northwind.Forms { using Serenity; using Serenity.ComponentModel; using Serenity.Data; using System; using System.Collections.Generic; using System.IO; [ColumnsScript("Northwind.OrderDetail")] [BasedOnRow(typeof(Entities.OrderDetailRow))] public class OrderDeta...
26.5
49
0.619739
[ "MIT" ]
kingajay007/SeeSharper-Master
SeeSharper.Web/Modules/Northwind/OrderDetail/OrderDetailColumns.cs
691
C#
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. // Ported from um/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. using System.Runtime.InteropServi...
40.733333
145
0.797054
[ "MIT" ]
IngmarBitter/terrafx.interop.windows
sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncVideoIntraLayerPrediction.cs
613
C#
/* * Copyright 2018 JDCLOUD.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 * * Unless required by applicable law or agreed to in...
25.605634
76
0.578108
[ "Apache-2.0" ]
jdcloud-api/jdcloud-sdk-net
sdk/src/Service/Vod/Apis/UpdateCategoryResult.cs
1,964
C#
using System; using System.Linq; class O { static void Main() { var n = int.Parse(Console.ReadLine()); var a = Enumerable.Range(0, n) .SelectMany(i => Console.ReadLine().Split().Select(int.Parse).Select(x => new { i, x })) .OrderBy(_ => _.x) .Select(_ => _.i) .ToList(); a.Insert(0, 0)...
19.933333
92
0.496656
[ "MIT" ]
sakapon/AtCoder-Contests
CSharp/PAST/PAST201912/O.cs
600
C#
using System.Diagnostics; using Application.Client.Infrastructure.ErrorHandling.DataBinding.Exceptions; namespace Application.Client.Infrastructure.ErrorHandling.DataBinding.TraceListeners { public class BindingErrorTraceListener : TraceListener { public override void Write(string? message) { ...
27.352941
84
0.72043
[ "MIT" ]
Sullivan008/CSharp-WFA-WindowsNotepadReplication
Application.Client/Infrastructure/ErrorHandling/DataBinding/TraceListeners/BindingErrorTraceListener.cs
467
C#
using System; using System.IO; using System.Net; using System.Net.Sockets; using NUnit.Framework; namespace MongoDB.Driver { [TestFixture()] public class TestB { [Test()] public void TestCase(){ TcpClient client = new TcpClient(); client.Connect...
23.116279
88
0.508048
[ "Apache-2.0" ]
sunnanking/mongodb-csharp
MongoDB.Net-Tests/TestB.cs
994
C#
using System; using WinFormMVP.Model; using WinFormMVP.Model.Repo; using WinFormMVP.View; namespace WinFormMVP.Presenter { public class Form1Presenter : IForm1Presenter { private IFormView _view; private ITextRepository _dataRepo; public Form1Presenter(IFormView view, ITextReposi...
25.690141
73
0.501096
[ "MIT" ]
codesensegroup/WindowsFormPattern
WinFormPatternDemo/WinFormMVP/Presenter/Form1Presenter.cs
1,826
C#
using System.Net; using System.Net.Mail; using System.Text; using ExceptionReporting.Mail; using ExceptionReporting.Network.Events; namespace ExceptionReporting.Network.Senders { internal class SmtpMailSender : MailSender, IReportSender { public SmtpMailSender(ExceptionReportInfo reportInfo, IReportSendEvent sendE...
26.853333
101
0.695631
[ "MIT" ]
JavierCanon/ExceptionReporter.NET
src/Others/SharkErrorReporter/ExceptionReporter/Network/Senders/SmtpMailSender.cs
2,014
C#
namespace Caliburn.Micro.Contrib.Dialogs { public interface IDialogViewModel<TResponse> { bool? IsClosed { get; set; } Dialog<TResponse> Dialog { get; set; } IObservableCollection<BindableResponse<TResponse>> Responses { get; } void Respond(BindableResponse<TResponse> bindableRe...
33.6
77
0.6875
[ "MIT" ]
kmees/CMContrib
src/CMContrib.SL/Dialogs/IDialogViewModel.cs
338
C#
using System; using System.Collections.Generic; using System.Runtime.Serialization; namespace Lykke.Service.PayInternal.Core.Exceptions { public class ExchangeOperationPartiallyFailedException : ExchangeOperationFailedException { public ExchangeOperationPartiallyFailedException() { } ...
29.576923
131
0.729519
[ "MIT" ]
LykkeCity/Lykke.Service.PayInternal
src/Lykke.Service.PayInternal.Core/Exceptions/ExchangeOperationPartiallyFailedException.cs
771
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("AWSSDK.ComputeOptimizer")] [assembly: Asse...
48
267
0.75651
[ "Apache-2.0" ]
ebattalio/aws-sdk-net
sdk/code-analysis/ServiceAnalysis/ComputeOptimizer/Properties/AssemblyInfo.cs
1,536
C#
using System; using System.Collections.Generic; using System.Linq; using Crash.Core.Drawing; using Crash.Core.UI.Controls.ScrollBars.Markers; namespace Crash.Core.UI.Controls.ScrollBars { /// <summary> /// スクロールバー。 /// </summary> public sealed class ScrollBar : UIElement { /// <summary></s...
30.705263
131
0.557079
[ "MIT" ]
yoshiheight/Crash.Editor
Crash.Core.UI/Controls/ScrollBars/ScrollBar.cs
6,158
C#
/* * Class: DownloadEventArgs * Author: Pradeep Singh * Date: 3 July 2016 * Change Log: * 3 July 2016: Created the class. */ using System; using System.Collections.Generic; using System.Linq; using System.Text; using BringDownClient.Logic.Core; namespace BringDownClient.Logic { public class DownloadEv...
24.16129
92
0.65287
[ "MIT" ]
pradeep-pioneer/BringDown
BringDownClient/BringDownClient.Logic/DownloadEventArgs.cs
751
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...
35.84375
196
0.642546
[ "Apache-2.0" ]
polivbr/pulumi-azure-native
sdk/dotnet/DataFactory/V20180601/Outputs/AzureMLUpdateResourceActivityResponse.cs
3,441
C#
namespace EventSourcing.UserInterface { partial class AttendanceOverviewControl { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. ...
50.95679
138
0.644337
[ "MIT" ]
xfleckx/EventSourcing
EventSourcing/UserInterface/AttendanceOverviewControl.Designer.cs
8,257
C#
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // ------------------------------------------------------------ namespace Microsoft.Azure.Cosmos { using System; using System.Threading; using System.Threading.Tasks; using Mic...
47.967213
178
0.646787
[ "MIT" ]
FabianMeiswinkel/azure-cosmos-dotnet-v3
Microsoft.Azure.Cosmos/src/ChangeFeed/ChangeFeedStartFrom.cs
5,854
C#
using System; using System.IO; using System.Linq; using System.Numerics; using System.Security.Cryptography; namespace DCL_Core.Cryptography { /* Ported and refactored from Java to C# by Hans Wolff, 10/10/2013 * Released to the public domain * / /* Java code written by k3d3 * Source: https://gi...
36.855219
138
0.545313
[ "MIT" ]
JohnJohnssonnl/DCL
DCL_Core/Cryptography/ED25519.cs
10,948
C#
using Flunt.Notifications; using MediatR; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; namespace DemoJwt.Application.Core { public class RequestsValidationMiddleware<TRequest, TResponse> : IPipelineBehavior<TRequest, TResponse> where TRequest : Request<Response> ...
30.896552
132
0.675223
[ "MIT" ]
CASSIOSOUZA/DemoJwt
src/DemoJwt.Application/Core/RequestsValidationMiddleware.cs
898
C#
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using EchonestApi.Core.Artist; using GalaSoft.MvvmLight.Command; using Meridian.Controls; using Meridian.Model; using Meridian.Services; using Meridian.View.Flyouts; using Neptune.Messages; namespace Meridian.View...
31.456376
116
0.53211
[ "Apache-2.0" ]
TheELLCRO/Meridian
Meridian/ViewModel/Main/RadioViewModel.cs
4,689
C#
//#define Trace // WinZipAes.cs // ------------------------------------------------------------------ // // Copyright (c) 2009 Dino Chiesa. // All rights reserved. // // This code module is part of DotNetZip, a zipfile class library. // // ------------------------------------------------------------------ /...
34.114865
122
0.499307
[ "MIT" ]
TagsRocks/mudclient
ThirdPartyLibraries/Sources/DotNetZip/Zip Partial DLL/WinZipAes.cs
30,294
C#
namespace Microsoft.eShopWeb.ApplicationCore.Entities.OrderAggregate { public class Address // ValueObject { public string Street { get; set; } public string City { get; set; } public string State { get; set; } public string Country { get; set; } public string ZipCod...
23.555556
96
0.558176
[ "MIT" ]
SreekanthJos/eshopweb_with_azure
src/ApplicationCore/Entities/OrderAggregate/Address.cs
638
C#
using System; using System.Collections.Generic; using System.Text; namespace TelegramBotBase.Form { public class DynamicButton : ButtonBase { public override string Text { get { return GetText?.Invoke() ?? m_text; } set ...
20.309524
83
0.488863
[ "MIT" ]
MajMcCloud/TelegramBotFramework
TelegramBotBase/Form/DynamicButton.cs
855
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.Collections.Generic; using System.Threading; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microso...
55.781491
211
0.704134
[ "MIT" ]
missymessa/roslyn
src/Workspaces/SharedUtilitiesAndExtensions/Workspace/CSharp/Extensions/ContextQuery/CSharpSyntaxContext.cs
21,701
C#
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. // Ported from shared/hidpi.h in the Windows SDK for Windows 10.0.19041.0 // Original source is Copyright © Microsoft. All rights reserved. using System.Runtime.CompilerSer...
28.964072
147
0.582386
[ "MIT" ]
Ethereal77/terrafx.interop.windows
sources/Interop/Windows/shared/hidpi/HIDP_VALUE_CAPS.cs
4,839
C#
using System.Collections.Generic; using System.IO; using System.Xml; using System.Xml.Schema; namespace Digipost.Api.Client.Shared.Xml { public abstract class XmlValidator { private readonly XmlSchemaSet _schemaSet = new XmlSchemaSet(); public bool Validate(string document) { ...
31.693878
82
0.641339
[ "Apache-2.0" ]
digipost/api-client-shared-dotnet
Digipost.Api.Client.Shared/Xml/XmlValidator.cs
1,555
C#
using System.Linq; using EShopOnAbp.OrderingService.Orders; using Microsoft.EntityFrameworkCore; public static class EfCoreOrderQueryableExtensions { public static IQueryable<Order> IncludeDetails(this IQueryable<Order> queryable, bool include = true) { return !include ? queryable ...
30.176471
105
0.614035
[ "MIT" ]
271943794/eShopOnAbp
services/ordering/src/EShopOnAbp.OrderingService.EntityFrameworkCore/Orders/EfCoreOrderQueryableExtensions.cs
515
C#
/* * Generated code file by Il2CppInspector - http://www.djkaty.com - https://github.com/djkaty */ using System; using System.Diagnostics; using System.Runtime.CompilerServices; using SpecialAnim; using UnityEngine; // Image 46: Assembly-CSharp.dll - Assembly: Assembly-CSharp, Version=0.0.0.0, Culture=neutral, Pub...
24.166667
133
0.709655
[ "Unlicense" ]
tech-ticks/RTDXTools
Assets/Scripts/Stubs/Generated/Assembly-CSharp/ReportModeWindow.cs
1,452
C#
// ---------------------------------------------------------------------------------- // // Copyright Microsoft Corporation // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://w...
49.052632
217
0.677396
[ "MIT" ]
FonsecaSergio/azure-powershell
src/ResourceManager/Resources/Commands.ResourceManager/Cmdlets/Implementation/ResourceGroupDeployments/TestAzureResourceGroupDeploymentCmdlet.cs
2,742
C#
// /* // * Copyright (c) 2014 Behrooz Amoozad // * 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 copyright // * ...
24.567568
90
0.670627
[ "BSD-3-Clause" ]
jamesaxl/BD2
BD2.Frontend.Table/LayeredDictionary.cs
4,547
C#
using System; using System.Text; using System.Xml; using CMS.Base.Web.UI; using CMS.DataEngine; using CMS.FormEngine.Web.UI; using CMS.Helpers; using CMS.IO; using CMS.SiteProvider; public partial class CMSFormControls_System_SelectColumns : FormEngineUserControl { #region "Properties" /// <summary> ///...
29.961832
475
0.527516
[ "MIT" ]
BryanSoltis/KenticoMVCWidgetShowcase
CMS/CMSFormControls/System/SelectColumns.ascx.cs
7,852
C#
//Copyright 2020 Warren Harding, released under the MIT. using System; using System.Collections.Generic; using System.Text; using Sym; using Sym.Nodes; using System.Linq; namespace Sym.Goals { public class Goal { //public double Score; public virtual double CalculateGoalFitness(Node potential...
21.272727
83
0.605413
[ "MIT" ]
Wowo51/Sym
Sym/Goals/Goal.cs
704
C#
/* * 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 * "License")...
26.045455
109
0.67801
[ "Apache-2.0" ]
fossabot/aliyun-openapi-net-sdk
aliyun-net-sdk-vod/Vod/Model/V20170321/DescribeVodDomainDetailRequest.cs
2,292
C#
using System; using System.Collections; class BitArrayClass { public static void logMethod() { // 创建两个大小为 8 的点阵列 BitArray ba1 = new BitArray(8); BitArray ba2 = new BitArray(8); byte[] a = { 60 }; byte[] b = { 13 }; // 把值 60 和 13 存储到点阵列中 ba1 = new BitArray(a...
25.980392
67
0.477736
[ "MIT" ]
CainLuo/CSExamples
30.Collection/BitArrayClass.cs
1,393
C#
using System; using System.Reflection; using ToolGood.ReadyGo3.Attributes; using ToolGood.ReadyGo3.Internals; namespace ToolGood.ReadyGo3.Gadget.TableManager { public class ColumnInfo { private ColumnInfo() { } public string ColumnName; public string Comment; pu...
36.58209
99
0.569155
[ "Apache-2.0" ]
toolgood/ToolGood.ReadyGo
ToolGood.ReadyGo3/Gadget/TableManager/ColumnInfo.cs
2,453
C#
// *** WARNING: this file was generated by the Pulumi SDK Generator. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; namespace Pulumi.Azur...
31.5
104
0.650794
[ "Apache-2.0" ]
pulumi/pulumi-azure-nextgen
sdk/dotnet/Cdn/V20200415/Inputs/DeliveryRuleRequestMethodConditionArgs.cs
1,134
C#
using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Logging; using SFA.DAS.ApplyService.Configuration; using System; using System.Collections.Generic; using System.IO; using System.IO.Compression; using System.Linq; using System.Threading; using System.Threading.Tasks; namespace SFA.DAS.ApplyService.InternalA...
39.896679
212
0.608398
[ "MIT" ]
SkillsFundingAgency/das-apply-service
src/SFA.DAS.ApplyService.InternalApi/Services/Files/FileStorageService.cs
10,814
C#
using Rhino.Geometry; using static System.Math; namespace Robots; static class Util { // Constants public const double DistanceTol = 0.001; public const double AngleTol = 0.001; public const double TimeTol = 0.00001; public const double UnitTol = 0.000001; public const double SingularityTol ...
26.720403
192
0.495192
[ "MIT" ]
lin-ycv/Robots
src/Robots/Util.cs
10,610
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Lego_Blocks { class Program { static void Main(string[] args) { int R = int.Parse(Console.ReadLine()); int[][] firstJagged = new int[R][]; ...
36.454545
142
0.448165
[ "MIT" ]
SimeonShterev/2018.01.22-2018.04.22-CSharpFundamentals
2018.01.22-C#Advanced/2018.01.26-Multidimentional Arrays H2/Lego Blocks/Program.cs
2,809
C#
using Flutterwave.Net.Utilities; namespace Flutterwave.Net { public class Transactions : ITransactions { private FlutterwaveApi _flutterwaveApi { get; } public Transactions(FlutterwaveApi flutterwaveApi) { _flutterwaveApi = flutterwaveApi; } /// <summary> ...
30.297297
107
0.609277
[ "MIT" ]
VictorSega/flutterwave-dotnet
src/flutterwave-dotnet/APIs/Implementations/Transactions.cs
1,123
C#
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="DependencyObjectExtensions.cs" company="WildGums"> // Copyright (c) 2008 - 2015 WildGums. All rights reserved. // </copyright> // -----------------------------------------------...
33.791667
120
0.519729
[ "MIT" ]
vatsan-madhavan/Orchestra
src/Orchestra.Core/Extensions/DependencyObjectExtensions.cs
1,624
C#