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
//----------------------------------------------------------------------- // <copyright file="CommonAssemblyInfo.cs" company="ALM | DevOps Ranger Contributors"> // © ALM | DevOps Ranger Contributors // MIT License // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this s...
49.883721
87
0.695571
[ "MIT" ]
ALM-Rangers/Sample-Code
src/Coded-UI/samples/DevelopmentDev10/Source Code/Common/CommonAssemblyInfo.cs
2,148
C#
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace OpenDebugAD7 { /// <summary> /// Class to hold configuration for a single debug session, such as Just My Code or Require Exact Source settings //...
36.647059
117
0.672552
[ "MIT" ]
Bhaskers-Blu-Org2/MIEngine
src/OpenDebugAD7/SessionConfiguration.cs
625
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> //--...
38.541667
175
0.602523
[ "Apache-2.0" ]
ponchikDnika/GuessFontGame
GuessFont/Properties/Resources.Designer.cs
2,777
C#
using Microsoft.EntityFrameworkCore; using System.Linq; using tcs_service.Models; using tcs_service.Repos.Base; using tcs_service.Repos.Interfaces; namespace tcs_service.Repos { public class SessionClassRepo : BaseRepo<SessionClass>, ISessionClassRepo { public SessionClassRepo(DbContextOptions options)...
27.6875
92
0.767494
[ "MIT" ]
a2937/wvup-tcs
backend/tcs-service/Repos/SessionClassRepo.cs
443
C#
// Copyright (c) Andrew Arnott. All rights reserved. // Licensed under the Microsoft Public License (Ms-PL) license. See LICENSE file in the project root for full license information. namespace PCLCrypto { using System; using System.Collections.Generic; using System.Text; #if !PCL using PCLCrypto.Form...
46.939394
170
0.693673
[ "Apache-2.0" ]
cuteant/IdentityModel
src/PCLCrypto.Shared.Common/WinRTExtensions.cs
3,100
C#
// <copyright file="IIxStdProviderConfig.cs" company="ClrCoder project"> // Copyright (c) ClrCoder project. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. // </copyright> namespace ClrCoder.ComponentModel.IndirectX { using JetBrains...
30.977778
108
0.61693
[ "MIT" ]
ClrCoder/ClrCoderFX
src/ClrCoder/ComponentModel/IndirectX/Config/IIxStdProviderConfig.cs
1,394
C#
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Threading; using Grace.Data.Immutable; using Grace.DependencyInjection.Exceptions; using Grace.DependencyInjection.Impl.KnownTypeStrategies; using Grace.DependencyInjection.Impl.Wrappers; using Grace.Diagnostics; ...
40.974943
338
0.607238
[ "MIT" ]
Lex45x/Grace
src/Grace/DependencyInjection/Impl/InjectionScope.cs
35,976
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _02.Pets { class Pets { static void Main(string[] args) { int days = int.Parse(Console.ReadLine()); int food = int.Parse(Console.ReadLine()); //...
28.868421
105
0.557885
[ "MIT" ]
1ooIL40/FundamentalsRepo
new project 04.03/Programming Basics Exam - 20 November 2016 - Morning/02. Pets/Pets.cs
1,099
C#
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using StarkPlatform.CodeAnalysis; using System.Diagnostics; namespace StarkPlatform.VisualStudio.LanguageServices.Implementation { internal sealed class...
36.076923
161
0.698294
[ "Apache-2.0" ]
stark-lang/stark-roslyn
src/VisualStudio/Core/Def/Implementation/AnalyzerDependency/AnalyzerDependencyConflict.cs
940
C#
using DCL.Interface; using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using static HotScenesController; public interface IPlacesAPIController { /// <summary> /// Request all places from the server. /// </summary> /// <param name="OnCompleted">It will be triggered w...
31.305556
108
0.755989
[ "Apache-2.0" ]
CarlosPolygonalMind/unity-renderer
unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/ExploreV2/Scripts/Sections/PlacesAndEventsSection/SubSections/PlacesSubSection/PlacesSubSectionMenu/PlacesAPIController.cs
1,127
C#
using System.Windows.Input; namespace tweetz5.Commands { internal static class UpdateLayoutCommand { public static readonly RoutedCommand Command = new RoutedUICommand(); } }
22.666667
78
0.70098
[ "MIT" ]
mike-ward/tweetz-desktop
tweetz/tweetz5/Commands/UpdateLayoutCommand.cs
206
C#
#region MigraDoc - Creating Documents on the Fly // // Authors: // Klaus Potzesny (mailto:Klaus.Potzesny@pdfsharp.com) // // Copyright (c) 2001-2009 empira Software GmbH, Cologne (Germany) // // http://www.pdfsharp.com // http://www.migradoc.com // http://sourceforge.net/projects/pdfsharp // // Permission is hereby g...
35.795181
101
0.703803
[ "MIT" ]
HiraokaHyperTools/PDFsharp
MigraDoc/code/MigraDoc.Rendering/MigraDoc.Rendering/IAreaProvider.cs
2,971
C#
using System.Collections.Generic; using System.Runtime.Serialization; namespace Nest { public class GetTransformResponse : ResponseBase { /// <summary> /// The count of transforms. /// </summary> [DataMember(Name = "count")] public long Count { get; internal set; } /// <summary> /// An array of transf...
24.047619
112
0.69901
[ "Apache-2.0" ]
RPM1984/elasticsearch-net
src/Nest/XPack/Transform/GetTransform/GetTransformResponse.cs
505
C#
/* feedseekclr: test program for mpg123clr, showing how to use fuzzy seeking in feeder mode copyright 2009 by the mpg123 project - free software under the terms of the LGPL 2.1 see COPYING and AUTHORS files in distribution or http://mpg123.org based on feedseek.c example for libmpg123. Comment (Malcolm ...
31.671687
162
0.493581
[ "MIT" ]
AbdullahTrees/pk2
external/test_abd/SDL2_mixer-2.0.4/external/mpg123-1.25.6/ports/MSVC++/2008clr/examples/feedseekclr/Program.cs
10,517
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.Composition.Hosting; using Microsoft.Internal; namespace System.Composition.Hosting.Util { // Ext...
31.291262
110
0.515048
[ "MIT" ]
er0dr1guez/corefx
src/System.Composition.Hosting/src/System/Composition/Hosting/Util/SmallSparseInitonlyArray.cs
3,223
C#
using System.IO; using System.Runtime.Serialization; using GameEstate.Formats.Red.CR2W.Reflection; using FastMember; using static GameEstate.Formats.Red.Records.Enums; namespace GameEstate.Formats.Red.Types { [DataContract(Namespace = "")] [REDMeta] public class CBTTaskIfTargetHasEffectDef : IBehTreeTas...
34.37037
139
0.738147
[ "MIT" ]
smorey2/GameEstate
src/GameEstate.Formats.Red/Formats/Red/W3/RTTIConvert/CBTTaskIfTargetHasEffectDef.cs
928
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.CodeAnalysis; using System.Globalization; using System.Numerics; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Ru...
33.562372
146
0.541159
[ "MIT" ]
74971030177/runtime
src/libraries/System.Private.CoreLib/src/System/UInt16.cs
32,824
C#
#region License // Copyright (c) 2010-2019, Mark Final // 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 notice, this // ...
52.906667
101
0.728075
[ "BSD-3-Clause" ]
markfinal/BuildAMation
packages/GccCommon/bam/Scripts/CommonCxxCompilerSettings.cs
3,968
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable using System; using System.Text.Json; using System.Threading; using System.Threading.Tasks; using Azure; using Azure.Core; using Azure.Core.Pipeline; using Azure.ResourceManager.Netw...
46.438356
236
0.751917
[ "MIT" ]
AME-Redmond/azure-sdk-for-net
sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkPeeringsCreateOrUpdateOperation.cs
3,390
C#
using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Controls; using Microsoft.UI.Xaml.Controls.Primitives; using Microsoft.UI.Xaml.Data; using Microsoft.UI.Xaml.Input; using Microsoft.UI.Xaml.Media; using Microsoft.UI.Xaml.Navigation; using System; using System.Collections.Generic; using System.IO; using System.Linq; usi...
29.402985
119
0.674619
[ "MIT" ]
Richasy/Loaf
Loaf/Windows11UpdateView.xaml.cs
1,972
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using Zenject; using Conekton.ARMultiplayer.SpatialAnchor.Domain; namespace Conekton.ARMultiplayer.SpatialAnchor.Infrastructure { public class SpatialAnchorRepository : ISpatialAnchorRepository { [Inject] priv...
30.403846
123
0.635674
[ "Apache-2.0" ]
miyatakoji/magic-leap-distance-checker
Assets/Conekton/Multiplayer/Scripts/UseCase/SpatialAnchor/Infrastructure/SpatialAnchorRepository.cs
1,583
C#
using System; using System.Collections.Generic; using System.Linq; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using Stl.CommandR; using Stl.CommandR.Configuration; using Stl.Fusion; using Stl.Fusion.EntityFramework; using Stl.IO; using Stl.Re...
37.595506
109
0.612074
[ "MIT" ]
MessiDaGod/Stl.Fusion
tests/Stl.Tests/CommandR/CommandRTestBase.cs
3,346
C#
using System; using System.Linq; using System.Runtime.CompilerServices; using System.ServiceModel; namespace Unity.Wcf.Tests.TestSupport { internal class TestHost<TContract, TService> where TService : class, TContract { private readonly ServiceHost _host; private ChannelFactory<TContract> _fact...
29.27907
94
0.619539
[ "Apache-2.0" ]
unitycontainer/wcf
tests/TestSupport/TestHost.cs
1,259
C#
#region BSD License /* Copyright (c) 2013-2018, Doxense SAS 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 notice, this list of cond...
33.194444
237
0.619601
[ "BSD-3-Clause" ]
Doxense/foundationdb-dotnet-client
FoundationDB.Layers.Experimental.Tests/Indexing/CompressedBitmapsFacts.cs
31,076
C#
using System.Windows; using System.Windows.Controls; using System.Windows.Input; namespace PixiEditor.Views.Dialogs { public partial class DialogTitleBar : UserControl { public static readonly DependencyProperty TitleTextProperty = DependencyProperty.Register(nameof(TitleText), typeof(stri...
31.454545
132
0.66185
[ "MIT" ]
Kosta1994/PixiEditor
PixiEditor/Views/Dialogs/DialogTitleBar.xaml.cs
1,040
C#
// Copyright (c) Tunnel Vision Laboratories, LLC. All Rights Reserved. // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. namespace StyleCop.Analyzers.Test.CSharp7.NamingRules { using System.Threading; using System.Threading.Tasks; using Microsoft.C...
27.5
143
0.605654
[ "Apache-2.0" ]
Andreyul/StyleCopAnalyzers
StyleCop.Analyzers/StyleCop.Analyzers.Test.CSharp7/NamingRules/SA1312CSharp7UnitTests.cs
9,022
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.AwsN...
26
81
0.656805
[ "Apache-2.0" ]
AaronFriel/pulumi-aws-native
sdk/dotnet/NetworkFirewall/Inputs/FirewallSubnetMappingArgs.cs
676
C#
using System; using System.Threading.Tasks; using Twilio; using Twilio.Rest.Api.V2010.Account; namespace PharmVerse.Infrastructure.SMS { public class SMS { private string accountSid = Environment.GetEnvironmentVariable(("TWILIO_ACCOUNT_SID")); private string authToken = Environment.GetEnvironmentVariable("...
24.973684
91
0.671233
[ "MIT" ]
ddynamight/PharmVerse
PharmVerse/PharmVerse.Infrastructure/SMS/SMS.cs
949
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/wingdi.h in the Windows SDK for Windows 10.0.19041.0 // Original source is Copyright © Microsoft. All rights reserved. using NUnit.Framework; using System...
38.055556
145
0.666423
[ "MIT" ]
Ethereal77/terrafx.interop.windows
tests/Interop/Windows/um/wingdi/LOCALESIGNATURETests.cs
1,372
C#
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ using System.Collections.Generic; using Aeter.Ratio.Testing.Fakes.Entities; namespace Aeter.Ratio.Testing.Fakes.Gr...
29
70
0.712644
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
jaygumji/Aeter.Ratio
Aeter.Ratio.Test/Fakes/Graphs/CollectionOfComplexGraph.cs
435
C#
using UnityEngine; using UnityEditor; using System; using System.Collections; using System.Reflection; using EasyMobile.Internal; namespace EasyMobile.Editor { [CustomPropertyDrawer(typeof(EnumFlagsAttribute))] public class EnumFlagsDrawer : PropertyDrawer { public override void OnGUI(Rect positio...
35.964286
150
0.616187
[ "MIT" ]
AndreeBurlamaqui/HyperBeatMIX
Assets/EasyMobile/Editor/Common/PropertyDrawers/EnumFlagsDrawer.cs
2,016
C#
using System; namespace Шофиор_на_тир { class Program { static void Main(string[] args) { string season = Console.ReadLine(); double km = double.Parse(Console.ReadLine()); double kmPrice = 0; if (season == "Spring" || season == "Autumn") ...
26.888889
57
0.298701
[ "MIT" ]
Anzzhhela98/CSharp-Basics-Course
Conditional Statements Advanced/Nested Conditional Statements - More Exercises/06. Truck Driver/Program.cs
1,707
C#
using System.Reflection; using System.Runtime.InteropServices; [assembly: AssemblyTitle("WebApiContrib.Formatting.Xlsx sample app")] [assembly: AssemblyDescription("Sample application to demonstrate use of WebApiContrib.Formatting.Xlsx.")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("WebApiContri...
41.647059
106
0.789548
[ "MIT" ]
ARKlab/WebApiContrib.Formatting.Xlsx
samples/WebApiContrib.Formatting.Xlsx.Sample/Properties/AssemblyInfo.cs
710
C#
namespace Potassium.Examples.MouseDrag { partial class Form1 { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; private System.Windows.Forms.Label label1; private System.Windows.Forms.TextBo...
35.428571
107
0.521347
[ "MIT" ]
jerometerry/potassium
examples/MouseDrag/Form1.Designer.cs
4,218
C#
/***************************************************************************** * Copyright 2016 Aurora Solutions * * http://www.aurorasolutions.io * * Aurora Solutions is an innovative services and product company at * the forefront of the software industry, with processes and practices * involving Dom...
42.26
80
0.698533
[ "Apache-2.0" ]
3plcoins/coin-exchange-backend
src/Trades/CoinExchange.Trades.ReadModel/Repositories/IOhlcRepository.cs
2,115
C#
using System.IO; using Microsoft.AspNetCore.Hosting; using SDDL.Web.Services.Interface; namespace SDDL.Web.Services { public class SpaService : ISpaService { private readonly IWebHostEnvironment _env; public SpaService(IWebHostEnvironment env) { _env = env; } public string GetIndexFilePath() ...
23
80
0.729469
[ "MIT" ]
Wufe/sddl
Presentation/SDDL.Web/Services/SpaService.cs
414
C#
using Microsoft.Framework.Logging; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace WeConnect.Core { public interface IWechat { ITokenManager TokenManager { get; } IServiceProvider ServiceResolver { get; } ILoggerFactory LogFact...
21.3125
49
0.71261
[ "MIT" ]
wechat-cloud/we-connect
src/WeConnect.Core/IWechat.cs
343
C#
using System; namespace _01._Repainting { class Program { static void Main(string[] args) { //Предпазен найлон -1.50 лв.за кв.м. //Боя - 14.50 лв.за литър //Разредител за боя - 5.00 лв.за литър //+ 10 % от количеството боя //+ 2 кв.м...
29.619048
74
0.538585
[ "MIT" ]
GeorgiGradev/SoftUni
01. Programming Basics/02.4. EXAM - Simple Operations and Calculations/Repainting/Program.cs
1,384
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...
42.075949
187
0.657641
[ "ECL-2.0", "Apache-2.0" ]
Dominik-K/pulumi-aws
sdk/dotnet/Cloudtrail/GetServiceAccount.cs
3,324
C#
//------------------------------------------------------------------------------ // <auto-generated> // 本文件代码自动生成。用于实现强类型接口,方便应用层使用。 // 版本号:1.6.0 // // 请勿修改,否则在重新生成时,所有修改会丢失。 // </auto-generated> //------------------------------------------------------------------------------ using System; using System.Col...
27.726073
125
0.511606
[ "MIT" ]
zgynhqf/trunk
Test/Rafy.UnitTest/.g.cs/PBS.g.cs
9,723
C#
using System; using System.Collections.Generic; using System.IO; using System.Threading.Tasks; using WalletWasabi.WebClients; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using Swashbuckle.AspNetCore.Swagger;...
33.92381
138
0.739191
[ "MIT" ]
BrianSipple/WalletWasabi
WalletWasabi.Backend/Startup.cs
3,564
C#
using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Coupe.Account.API { public class Program { pub...
25.888889
70
0.645207
[ "MIT" ]
OfficialYeti/Coupe
src/Account/Coupe.Account.API/Program.cs
699
C#
using System; using System.Linq; using System.Collections.Generic; using cqhttp.Cyan.Events.CQEvents; using cqhttp.Cyan.Utils; using System.Reflection; namespace cqhttp.Cyan.Events { [AttributeUsage (AttributeTargets.Class | AttributeTargets.Interface, AllowMultiple = false)] class DiscriminatorValueAttribute ...
52.466667
97
0.702986
[ "MIT" ]
frank-bots/cqhttp.Cyan
cqhttp.Cyan/Events/Serialization.cs
3,148
C#
using UnityEngine; using System.Collections; //Needs to refernece LobbyHook using UnityStandardAssets.Network; public class GameLobbyHook : LobbyHook { public override void OnLobbyServerSceneLoadedForPlayer(UnityEngine.Networking.NetworkManager manager, GameObject lobbyPlayer, GameObject gamePlayer) { LobbyPlaye...
29.35
149
0.797274
[ "MIT" ]
TobiahZ/UnityNetwork
UnityNetwork/Assets/NewExample/GameLobbyHook.cs
589
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("tSecret")] [assembly: AssemblyDescription...
37.571429
84
0.743346
[ "MIT" ]
mtonosaki/tSecret
tSecretXamarin/tSecretXamarin.UWP/Properties/AssemblyInfo.cs
1,055
C#
#region Copyright /* * The original .NET implementation of the SimMetrics library is taken from the Java * source and converted to NET using the Microsoft Java converter. * It is notclear who made the initial convertion to .NET. * * This updated version has started with the 1.0 .NET release of SimMetrics and used ...
39.701149
106
0.674001
[ "MIT" ]
FrozenInclude/BadWordFilter
src/BadWordFilter/sim/BaseClass/abstract/AbstractAffineGapCost.cs
3,454
C#
using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Linq.Expressions; #if CONTRACTS_FULL_SHIM using Contract = System.Diagnostics.ContractsShim.Contract; #else using Contract = System.Diagnostics.Contracts.Contract; // SHIM'D #endif namespace KSoft { // Bas...
37.525641
131
0.687906
[ "MIT" ]
KornnerStudios/KSoft
KSoft/Enum/EnumComparer.cs
5,856
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.Collections.Generic; using System.Linq; using Microsoft.AspNetCore.Razor.Language.Syntax; using Xunit; namespace Microsoft.A...
34.337267
135
0.529658
[ "Apache-2.0" ]
belav/aspnetcore
src/Razor/Microsoft.AspNetCore.Razor.Language/test/Legacy/TagHelperParseTreeRewriterTest.cs
75,645
C#
/* * THIS FILE WAS GENERATED BY PLOTLY.BLAZOR.GENERATOR */ using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.IO; using System.Linq; using System.Runtime.Serialization.Formatters.Binary; using System.Text.Json.Serialization; namespace Plotly.Blazor.LayoutLib.PolarLib ...
47.261214
150
0.51968
[ "MIT" ]
yaqian256/Plotly.Blazor
Plotly.Blazor/LayoutLib/PolarLib/RadialAxis.cs
35,824
C#
using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework.Input; using StardewModdingAPI; using StardewValley; using StardewValley.Menus; using System; using System.Collections.Generic; using System.Linq; namespace Shockah.CommonModCode.GMCM { public class MultiSelectTextOp...
34.141593
221
0.712286
[ "Apache-2.0" ]
Shockah/Stardew-Valley-Mods
_Common/GMCM/MultiSelectTextOption.cs
7,718
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...
29.789116
116
0.548755
[ "Apache-2.0" ]
philasmar/aws-sdk-net
sdk/src/Services/ManagedBlockchain/Generated/Model/ListNetworksRequest.cs
4,379
C#
using System; using System.Collections.Generic; using System.Text; namespace NewAge.Redis.Interfaces { /// <summary> /// 所有缓存需要继承的接口(不做任何实现) 实现接口依赖注入 /// 接口的命名规则 是在其实现类的基础名称前加I /// 此接口不要轻易更改名字 /// </summary> public interface IRedisDependency { } }
16.705882
37
0.658451
[ "MIT" ]
godzff/NewAge.Redis
src/Interfaces/IRedisDependency.cs
398
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> //---...
40.833333
80
0.640816
[ "MIT" ]
rythm-net/SoftUni
Fundamentals with C#/T04 - Basic Syntax, Conditional Statements, Loops/exercise/11. Orders/obj/Debug/net6.0/11. Orders.AssemblyInfo.cs
980
C#
using System; using System.Threading.Tasks; using Microsoft.AspNetCore.SignalR; using Microsoft.Extensions.Logging; using ChatLe.Models; namespace ChatLe.Hubs { /// <summary> /// Chat Hub /// </summary> public class ChatHub : Hub { readonly IServiceProvider _provider; /// <summary> /// The chat reposito...
34.22449
224
0.664281
[ "Apache-2.0" ]
aguacongas/chatle
src/chatle/Hubs/ChatHub.cs
3,356
C#
using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Runtime.CompilerServices; using Monq.Core.Authorization.Models; [assembly: InternalsVisibleTo("Monq.Core.Authorization.Tests")] namespace Monq.Core.Authorization.Helpers { /// <summary> /// Хранилище пакетов пра...
49.322581
153
0.685415
[ "Apache-2.0" ]
MONQDL/Monq.Core.Authorization
src/Monq.Core.Authorization/Helpers/PacketRepository.cs
3,578
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //--...
39.592593
151
0.581852
[ "MIT" ]
jbatonnet/System
Source/[Tools]/Tools.Debugger/Properties/Settings.Designer.cs
1,071
C#
using Senparc.NeuChar.App.MessageHandlers; using Senparc.NeuChar.MessageHandlers.CheckSignatures; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Senparc.CO2NET.HttpUtility; using Senparc.CO2NET.Trace; using System.IO; using Senparc.NeuChar.App....
35.349593
147
0.574747
[ "Apache-2.0" ]
edison1105/NeuChar
src/Senparc.NeuChar.App/Controllers/NeuCharAppController.cs
4,786
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.Reflection; namespace Cake.Frosting.Internal; internal static class TypeExtensions { ...
28.363636
71
0.69391
[ "MIT" ]
ecampidoglio/cake
src/Cake.Frosting/Internal/Extensions/TypeExtensions.cs
626
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.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.Linq; using System.Linq.Expressions; ...
52.021657
140
0.595649
[ "Apache-2.0" ]
0b01/efcore
src/EFCore/Metadata/Internal/InternalEntityTypeBuilder.cs
276,235
C#
using Arcs; using Ship; using Tokens; using Upgrade; namespace Ship { namespace SecondEdition.EWing { public class CorranHorn : EWing { public CorranHorn() : base() { PilotInfo = new PilotCardInfo( "Corran Horn", 5...
32.707317
131
0.566741
[ "MIT" ]
97saundersj/FlyCasual
Assets/Scripts/Model/Content/SecondEdition/Pilots/EWing/CorranHorn.cs
2,684
C#
using System; using System.Collections.Generic; using System.IO; using System.Text; using System.Text.RegularExpressions; public class ReplaceSubstringInATextFile { public const string OldStr = "start"; public const string NewStr = "finish"; internal static void Main() { string inputName = "i...
30.087719
71
0.500875
[ "MIT" ]
iKostov86/CSharp
Homeworks/C# - part 2/TextFiles/07.ReplaceSubstringInATextFile/ReplaceSubstringInATextFile.cs
1,717
C#
// Source: Microsoft KB Article KB317540 /* SUMMARY The native code application programming interfaces (APIs) that allow you to interact with the Global Assembly Cache (GAC) are not documented in the .NET Framework Software Development Kit (SDK) documentation. MORE INFORMATION CAUTION: Do not use these APIs in your...
39.878788
157
0.749652
[ "MIT" ]
asm2025/essentialMix
Standard/essentialMix/Helpers/GACHelper.cs
31,584
C#
using System; using System.Collections.Generic; using System.Text; namespace Raiding.Models { public class Paladin : BaseHero { private const int power = 100; public Paladin(string name) : base(name) { this.Power = power; } public override strin...
22.052632
74
0.579952
[ "MIT" ]
ivaylo-R/CSharp-OOP-Exercises
Polymorphism - Exercise/Raiding/Models/Paladin.cs
421
C#
/* * TaskServicer.cs * * @Author Magnus Hjorth * * File Description: This class holds static methods needed to create and destroy windows tasks, * allowing the program to be automatically started with admin rights on startup. */ using Microsoft.Win32.TaskScheduler; using System.IO; using System.Windows.Forms...
30.521739
154
0.5717
[ "MIT" ]
mgnush/Builder-Companion
TaskServicer.cs
2,108
C#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System; using System.Numerics; using osu.Game.Rulesets.Difficulty.Preprocessing; using osu.Game.Rulesets.Objects; using osu.Game.Rulesets.Osu.Objects; nam...
51.960396
206
0.62862
[ "MIT" ]
Azyyyyyy/osu
osu.Game.Rulesets.Osu/Difficulty/Preprocessing/OsuDifficultyHitObject.cs
10,295
C#
using Gedcom4Sharp.Models.Gedcom; using Gedcom4Sharp.Parser; using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Threading.Tasks; namespace Gedcom4Sharp.Tests.Parser { [TestClass] public class FamilyEventTypeParser { private Gedcom g; [TestInitialize] public async Tas...
25.217391
56
0.493103
[ "MIT" ]
ThomasPe/Gedcom4Sharp
Gedcom4Sharp.Tests/Parser/FamilyEventTypeParser.Tests.cs
1,162
C#
using System; using System.Collections.Generic; using System.Linq; namespace _01.Max_Sequence_of_Equal_Elements { class MaxSequenceOfEqualElements { static void Main() { List<int> numbers = Console.ReadLine().Split().Select(int.Parse).ToList(); List<int> currSubsequenc...
28.851064
86
0.497788
[ "MIT" ]
IvelinMarinov/SoftUni
02. Programming Fundamentals - Jan2017/05. Lists - Exercises/01. Max Sequence of Equal Elements/MaxSequenceOfEqualElements.cs
1,358
C#
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Diagnostics.CodeAnalysis; using System.Net.Http; using System.Threading; using System.Threading.Tasks; using System.Web.Http.Controllers; ...
32.461538
111
0.707346
[ "Apache-2.0" ]
belav/AspNetWebStack
src/System.Web.Http/Filters/IAuthorizationFilter.cs
846
C#
// © XIV-Tools. // Licensed under the MIT license. namespace TexToolsModExtractor.Metadatas { using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.IO; using System.Linq; using System.Reflection; using System.Text; using FfxivResourceConverter; u...
29.12967
147
0.651351
[ "MIT" ]
XIV-Tools/TexToolsModExtractor
Extractor/Metadatas/Metadata.cs
26,511
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace UH { public partial class MineSweeperUI : Form { MineSweeperBoard _board; const int _gridSize = 10; ...
31.520548
95
0.498696
[ "MIT" ]
jsvasani/mine-sweeper
UH.MineSweeperUI/MineSweeperUI.cs
4,604
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.Linq; using System.Threading.Tasks; using Microsoft.EntityFrameworkCore.TestModels.GearsOfWarModel; using Microsoft.EntityFrameworkCore.TestUtilities; using Xunit; using...
45.988335
734
0.613114
[ "MIT" ]
NileshMoradiya/EntityFramework
test/EFCore.SqlServer.FunctionalTests/Query/GearsOfWarQuerySqlServerTest.cs
378,484
C#
namespace CustomizacaoMoradias.Data { internal class Element_RoomDM { public int RoomID { get; set; } public string ElementID { get; set; } public int Score { get; set; } } }
16.538462
45
0.595349
[ "MIT" ]
GBrunelli/CustomizacaoMoradias
Data/Element_RoomDM.cs
217
C#
#region License // Copyright (c) 2014 Tim Fischer // // 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...
39.015873
186
0.646257
[ "Unlicense" ]
TJF0700/Koden
Koden.Utils.REST/ConfigFileSections/QueryAppearanceCollection.cs
4,916
C#
namespace Poker.Test { using Microsoft.VisualStudio.TestTools.UnitTesting; [TestClass] public class CardTest { [TestMethod] public void CardShouldCompareCardsCorrectly_EqualCard() { var cardA = new Card(CardFace.Jack, CardSuit.Spades); var cardB = new Ca...
27.277778
68
0.601833
[ "MIT" ]
SimoPrG/HighQualityCodeHomework
TestDrivenDevelopment/Poker.Test/CardTest.cs
984
C#
using System.IO; using Microsoft.AspNetCore.Mvc; using SixLabors.ImageSharp; using SixLabors.ImageSharp.PixelFormats; namespace Daniel15.Web.Extensions { /// <summary> /// Extension methods for ImageSharp /// </summary> public static class ImageSharpExtensions { /// <summary> /// Wraps the specified image in...
28.892857
95
0.714462
[ "MIT", "Unlicense" ]
DLN-India/Website
Daniel15.Web/Extensions/ImageSharpExtensions.cs
811
C#
//----------------------------------------------------------------------- // <copyright file="ContextMenuTools.cs" company="Lost Signal LLC"> // Copyright (c) Lost Signal LLC. All rights reserved. // </copyright> //----------------------------------------------------------------------- namespace Lost { using ...
36.207921
139
0.525294
[ "Unlicense", "MIT" ]
LostSignal/Lost-Library
Lost/Lost.EditorTools/Editor/ContextMenu/ContextMenuTools.cs
3,659
C#
using System; using System.Collections.Generic; using System.IO; using BizHawk.Emulation.Common; namespace BizHawk.Client.Common { internal class BkmMovie { private readonly List<string> _log = new List<string>(); public BkmHeader Header { get; } = new BkmHeader(); public string Filename { get; set; } = ""; ...
20.209302
103
0.640391
[ "MIT" ]
CartoonFan/BizHawk
src/BizHawk.Client.Common/movie/import/bkm/BkmMovie.cs
1,740
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.Linq; using System.Threading.Tasks; using Microsoft.CodeAnalysis.CodeFixes; using Micros...
24.137223
158
0.599507
[ "Apache-2.0" ]
HenrikWM/roslyn
src/EditorFeatures/CSharpTest/RemoveUnnecessaryParentheses/RemoveUnnecessaryParenthesesTests.cs
59,983
C#
using System; using System.Collections.Generic; using System.Threading; using Amazon.Lambda.Core; using Microsoft.Extensions.Logging; namespace Logicality.Lambda.TestHost { public class LambdaTestHostSettings { private readonly Dictionary<string, LambdaFunctionInfo> _functions = new Dictionary<string,...
35.409091
122
0.664313
[ "MIT" ]
logicality-io/dotnet-libs
libs/lambda/src/Lambda.TestHost/LambdaTestHostSettings.cs
1,560
C#
// Copyright (c) 2019 .NET Foundation and Contributors. All rights reserved. // 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 full license information. using System; using Splat.Test...
32.397101
83
0.515523
[ "MIT" ]
RLittlesII/splat
src/Splat.Tests/Logging/ActionLoggerTests.cs
11,179
C#
//--------------------------------------------------------------------------------- // Microsoft (R) Windows Azure SDK // Software Development Kit // // Copyright (c) Microsoft Corporation. All rights reserved. // // THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, // EITHER EXPR...
38.10101
137
0.639979
[ "MIT" ]
davidjrh/dnn.azureaccelerator
DNNAzureSMB/DotNetNuke.Azure.Accelerator/Management/AffinityGroup.cs
3,774
C#
// c:\program files (x86)\windows kits\10\include\10.0.18362.0\um\devicetopology.h(3020,5) using System; using System.Runtime.InteropServices; namespace DirectN { [Guid("9c2c4058-23f5-41de-877a-df3af236a09e"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] public partial interface IConnector { ...
36.428571
117
0.661176
[ "MIT" ]
bbday/DirectN
DirectN/DirectN/Generated/IConnector.cs
1,277
C#
using System.Threading.Tasks; using Passion.Rover.Command.Services.Outbox; using Passion.Rover.Command.Services.Repository; namespace Passion.Rover.Command.Services { public class OutboxService : IOutboxService { private readonly IOutboxRepository _outboxRepository; public OutboxService(IOutb...
27.590909
74
0.693575
[ "MIT" ]
oktydag/passion
src/Passion.Rover.Command/Services/OutboxService.cs
609
C#
 namespace clinica_coimbra { partial class FormPrincipal { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> ...
59.412338
163
0.663315
[ "MIT" ]
joaomartiniano/clinica-medica-coimbra
src/FormPrincipal.Designer.cs
18,322
C#
using System.Collections.Generic; using NGM.OpenAuthentication.Models; using Orchard; using Orchard.Data; using Orchard.Security; namespace NGM.OpenAuthentication.Services { public interface IUserProviderServices : IDependency { UserProviderRecord Get(string providerName, string providerUserId); v...
35.571429
110
0.657487
[ "BSD-3-Clause" ]
sfmskywalker/Orchard-Pros
src/Orchard.Web/Modules/NGM.OpenAuthentication/Services/UserProviderServices.cs
1,745
C#
using System.Linq; using System.Text.RegularExpressions; using zgcwkj.Util.Common; using zgcwkj.Util.DbUtil; using zgcwkj.Util.Models; namespace zgcwkj.Util { /// <summary> /// 数据库操作对象 /// </summary> public static class DbProvider { /// <summary> /// 创建数据库命令 /// </summary> ...
34.239808
120
0.453565
[ "MIT" ]
zgcwkj/zgcwkj.DotnetCore
zgcwkj.Util/DbProvider.cs
15,242
C#
using System; using System.Collections.Generic; using System.Linq; namespace BattlePlanPath { /// <summary> /// Bundle of information returned after searching for a path. /// </summary> public class PathResult<T> { /// <summary> /// The sequence of nodes to take to get to one of the...
39.839506
155
0.588162
[ "MIT" ]
j-brooke/BattlePlanPath
BattlePlanPath/PathResult.cs
3,227
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DataLayer { public class RolesMetaData { [Key] public int RoleID { get; set; } [Display(Name = "عنوان نقش")] ...
22.433333
58
0.627043
[ "MIT" ]
mahmoodghanbary/ASP.NetMVCproject
Data/MetaDataClasses/RolesMetaData.cs
725
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Noun : Expression { public Enums.generalTypes type { get; private set; } //feature, person, thing, etc public string owner { get; private set; } //if it is a feature, this would be person or thing, if it is a thing held by...
28.529412
163
0.721649
[ "MIT" ]
Millmoss/soapdragon
Assets/Scripts/Person/Dialogue/Expressions/Noun.cs
487
C#
using System; using System.Collections.Generic; using System.Text; using This.Namespace.Is.Waaaaaaaaaaay.Too.Long; using This.Namespace.Is.Also.Way.Too.Long; using This.Long; namespace This.Namespace.Is.Waaaaaaaaaaay.Too.Long { class Something { public static void Foo() { } } } namespace This.Namespace.Is.Al...
17.972222
52
0.680062
[ "Apache-2.0" ]
Drake53/CSharp.lua
CSharp.lua.Tests/Input/RuntimeBug/LongNamespace.cs
647
C#
using System.ComponentModel.Composition; using Microsoft.VisualStudio.Editor.Commanding; using Microsoft.VisualStudio.Text; using Microsoft.VisualStudio.Text.Editor; using Microsoft.VisualStudio.Text.Editor.Commanding; namespace $rootnamespace$ { [Export(typeof(CommandBindingDefinition))] [CommandBinding(Comm...
31.190476
73
0.729771
[ "Apache-2.0" ]
RobinsonMW/ExtensibilityTemplatePack
src/2019/ItemTemplates/EditorCommandBinding/EditorCommandBinding.cs
657
C#
using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using BinaryRecords.Delegates; using BinaryRecords.Enums; using BinaryRecords.Expressions; using BinaryRecords.Records; using BinaryRecords.Util; namespace BinaryRecords.Providers { public static class BufferExpressionGeneratorProv...
43.721805
122
0.606019
[ "MIT" ]
chandler14362/BinaryRecords
BinaryRecords/Providers/BufferExpressionGeneratorProviders.cs
5,815
C#
// This software is part of the Autofac IoC container // Copyright © 2011 Autofac Contributors // http://autofac.org // // 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...
44.871429
121
0.650748
[ "MIT" ]
OrchardCMS/Autofac
Core/Source/Autofac/Core/Activators/Reflection/AutowiringParameter.cs
3,144
C#
//#if UNITY_2018_1_OR_NEWER using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Threading; using System.Diagnostics; using Assets.UBindr.Expressions; using NUnit.Framework; // ReSharper disable EqualExpressionComparison // ReSharper disable ConditionIsAlwaysTrueO...
36.060393
134
0.47147
[ "MIT" ]
Anatoliy-Lejud/sound-designer-check
Assets/UBindr/Tests/ExpressionTests.cs
25,681
C#
using System; class PrintCompanyInformation { static void Main() { Console.Write("Company name: "); string companyName = Console.ReadLine(); Console.Write("Company address: "); string companyAddress = Console.ReadLine(); Console.Write("Phone number: "); string c...
38.606061
256
0.617739
[ "MIT" ]
b-slavov/Telerik-Software-Academy
01.C# Part 1/04.Console-Input-Output/02.PrintCompanyInformation/PrintCompanyInformation.cs
1,276
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/StructuredQueryCondition.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. namespace TerraFX...
52.660714
145
0.727026
[ "MIT" ]
IngmarBitter/terrafx.interop.windows
sources/Interop/Windows/Windows/um/StructuredQueryCondition/CONDITION_OPERATION.cs
2,951
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...
32.136842
112
0.611202
[ "Apache-2.0" ]
polivbr/pulumi-azure-native
sdk/dotnet/MachineLearningServices/V20200901Preview/Outputs/PrivateEndpointConnectionResponse.cs
3,053
C#
// ReSharper disable InconsistentNaming using System; using System.Collections; using System.Collections.Generic; using System.Runtime.InteropServices; using System.Text; using VegaLite.Schema; namespace VegaLite { internal static class HtmlChart { public static string VegaUrl = "https://cdn.js...
45.476378
166
0.366115
[ "MIT" ]
trmcnealy/VegaLite.NET
VegaLite.NET/HtmlChart.cs
11,553
C#
using System; using System.Collections.Specialized; using System.Threading.Tasks; using CalendarSkill.Dialogs.Main.Resources; using CalendarSkill.Dialogs.Shared.Resources; using CalendarSkill.Dialogs.Summary.Resources; using Microsoft.Bot.Schema; using Microsoft.Bot.Solutions.Authentication; using Microsoft.VisualStud...
31.868421
115
0.599092
[ "MIT" ]
ClintFrancis/AI
solutions/Virtual-Assistant/src/csharp/skills/tests/calendarskilltest/Flow/SummaryCalendarFlowTests.cs
2,424
C#
using System; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; using Binance.Net.Enums; using Binance.Net.Objects.Spot.SpotData; using CryptoExchange.Net.Objects; namespace Binance.Net.Interfaces.SubClients.Spot { /// <summary> /// Spot order interface /// </summary>...
65.986425
265
0.660975
[ "MIT" ]
CarlPrentice/Binance.Net
Binance.Net/Interfaces/SubClients/Spot/IBinanceClientSpotOrder.cs
14,585
C#