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
namespace SDRSharp.HeatMapView { partial class SettingsPanel { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> ...
46.08589
156
0.676651
[ "MIT" ]
VE3NEA/HeatMapView
SDRSharp.HeatMapView/SettingsPanel.Designer.cs
7,514
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by \generate-code.bat. // // Changes to this file will be lost when the code is regenerated. // The build server regenerates the code before each build and a pre-build // step...
41.157895
102
0.667519
[ "MIT" ]
Egor92/UnitsNet
UnitsNet/GeneratedCode/Enums/DurationUnit.g.cs
2,348
C#
/* * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * ...
31.779661
102
0.6416
[ "Apache-2.0" ]
Darkfaker/tencentcloud-sdk-dotnet
TencentCloud/Tke/V20180525/Models/DescribeRouteTableConflictsResponse.cs
2,027
C#
using CountersPlus.Config; using BeatSaberMarkupLanguage; using System.Collections; using System.Collections.Generic; using System.Linq; using UnityEngine; using HMUI; using CountersPlus.UI.ViewControllers; using CountersPlus.Utils; using CountersPlus.Custom; using CountersPlus.UI.ViewControllers.ConfigModelController...
47.377358
124
0.68419
[ "MIT" ]
DonTrolav/CountersPlus
Counters+/UI/CountersPlusSettingsFlowCoordinator.cs
5,024
C#
using System.Collections.Generic; using System.Linq; using Mono.Cecil; namespace Teronis.ModuleInitializer.AssemblyLoader.Utils { public static class ModuleDefinitionUtils { public static IEnumerable<MethodDefinition> FindModuleInitializerMethods(ModuleDefinition module) { var modu...
35.48
132
0.601466
[ "MIT" ]
DawidIzydor/Teronis.DotNet
src/ModuleInitializer/AssemblyLoader/0/src/Utils/ModuleDefinitionUtils.cs
1,776
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: AssemblyConfigurat...
41.75
84
0.782036
[ "Apache-2.0" ]
Cheesebaron/serilog-sinks-trace
test/Serilog.Sinks.Trace.Tests/Properties/AssemblyInfo.cs
837
C#
using System; using System.Reflection; using System.Runtime.InteropServices; using System.Runtime.CompilerServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: Asse...
51
224
0.778024
[ "Apache-2.0" ]
altso/aws-sdk-net
sdk/src/Services/Elasticsearch/Properties/AssemblyInfo.cs
2,703
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.ComprehendMedical")] [assembly: Ass...
54.21875
464
0.763112
[ "Apache-2.0" ]
motoko89/aws-sdk-net-xamarin
sdk/code-analysis/ServiceAnalysis/ComprehendMedical/Properties/AssemblyInfo.cs
1,735
C#
using UnityEngine; using System.Collections; using System.Collections.Generic; public class AnimatedSprite : MonoBehaviour { // A struct for a individual animation. [System.Serializable] public class SpriteAnimation { public string name = "Unnamed"; public float fps = 30; public int xOffset = 0; public in...
34.469697
152
0.677143
[ "BSD-2-Clause" ]
Pillowdrift/StellarSwingClassic
Assets/Scripts/AnimatedSprite.cs
4,550
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using Windows.Data.Pdf; using Windows.Foundation; using Windows.Storage.Streams; namespace ComicViewer.ComicModel { public class PDFPage : IPageBitmap { private PdfDocum...
41.730769
175
0.657757
[ "MIT" ]
softkannan/komicreader
uwpapp/ComicViewer/ComicModel/PDFPage.cs
3,257
C#
namespace Be.Vlaanderen.Basisregisters.ProjectionHandling.Syndication { using System; using System.Collections.Generic; using System.Net.Http; using System.Net.Http.Headers; using System.Text; using System.Threading.Tasks; using System.Xml; using Microsoft.Extensions.Logging; using M...
38.619565
187
0.58908
[ "MIT" ]
ArneD/projection-handling
src/Be.Vlaanderen.Basisregisters.ProjectionHandling.Syndication/RegistryAtomFeedReader.cs
3,553
C#
using System; using NUnit.Framework; namespace Netronics.Test { [TestFixture] public class PacketBufferTest { [Test] public void PacketBufferTest1() { PacketBuffer buffer = new PacketBuffer(); buffer.Dispose(); try { ...
26.220994
62
0.446481
[ "MIT" ]
shlee322/Netronics
server/Test/Framework/PacketBufferTest.cs
4,748
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.Runtime.ExceptionServices; namespace Microsoft.AspNetCore.Mvc.Filters; /// <summary> /// A context for resource filters, specifically <see cref="IResourceFilter.OnReso...
31.864407
108
0.598404
[ "MIT" ]
3ejki/aspnetcore
src/Mvc/Mvc.Abstractions/src/Filters/ResourceExecutedContext.cs
3,760
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Globalization; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.DataProtection; using Microsoft.AspNetCore.Hosting; using Microsoft.Extension...
34.945946
119
0.604408
[ "MIT" ]
vchy1997/aspnetcore
src/Components/test/testassets/TestServer/ServerStartup.cs
2,586
C#
using System; using System.Collections.Generic; using System.Linq; using GraphQL.Types; using Shouldly; using Xunit; using System.Threading.Tasks; namespace GraphQL.Tests.Execution { public class ResolveFieldContextTests { private readonly ResolveFieldContext _context; public ResolveFieldConte...
29.241611
112
0.546706
[ "MIT" ]
Bill-Manning/graphql-dotnet
src/GraphQL.Tests/Execution/ResolveFieldContextTests.cs
4,357
C#
// // System.Net.NetworkInformation.PingCompletedEventHandler // // Author: // Gonzalo Paniagua Javier (gonzalo@novell.com) // // Copyright (c) 2006 Novell, Inc. (http://www.novell.com) // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation fi...
41.882353
90
0.764045
[ "Apache-2.0" ]
CRivlaldo/mono
mcs/class/System/System.Net.NetworkInformation/PingCompletedEventHandler.cs
1,424
C#
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; namespace jp.netsis.VRMScreenShot { public static class EnumExtension { public static bool TryParse<T>(string s, out T temp) where T : struct { return Enum.TryParse(s, out temp) &...
25
82
0.64
[ "MIT" ]
jp-netsis/VRMScreenShot
Assets/_VRMScreenShot/Scripts/Utilities/EnumExtension.cs
375
C#
namespace Merchello.Web.Search { using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Web; using Core; using Core.Models; using Core.Persistence.Querying; using Core.Services; using Examine; using global::Examine; using gl...
35.539851
210
0.544688
[ "MIT" ]
vwa-software/Merchello
src/Merchello.Web/Search/CachedProductQuery.cs
66,888
C#
using System; using System.ComponentModel; using System.Drawing; using System.Runtime.InteropServices; namespace MechanikaDesign.WinForms.UI.ColorPicker { public static class ColorHelper { // r,g,b values are from 0 to 1 // h = [0,360], s = [0,1], v = [0,1] // if s == 0, t...
35.01626
107
0.357325
[ "MIT" ]
ChristianGreiner/bridge-hub
src/ColorPickerLibrary/ColorWheel/ColorHelper.cs
4,309
C#
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using ToolGood.HtmlExtract.HtmlAgilityPack.Selectors; namespace ToolGood.HtmlExtract.HtmlAgilityPack { public abstract class CssSelector { #region Constructor protected CssSelector() { ...
33.043478
136
0.61875
[ "MIT" ]
toolgood/ToolGood.Bedrock
ToolGood.HtmlExtract/HtmlAgilityPack.CssSelectors/CssSelector.cs
3,042
C#
// // Copyright (c) 2004-2020 Jaroslaw Kowalski <jaak@jkowalski.net>, Kim Christensen, Julian Verdurmen // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // // * Redistributions of s...
42.83871
103
0.683735
[ "BSD-3-Clause" ]
AlanLiu90/NLog
tests/NLog.UnitTests/LayoutRenderers/Machine/HostNameLayoutRendererTests.cs
2,656
C#
using System; using System.Threading.Tasks; using BenchmarkDotNet.Attributes; using MongoDB.Bson; using MongoDB.Driver; namespace MongodbTransactions.TestCases { [CoreJob] public class MultiCollections { private IMongoCollection<BsonDocument> _collectionBar; private IMongoCollection<BsonDoc...
27.686275
74
0.470255
[ "MIT" ]
kroniak/mongodb-benchmark-samples
src/TestCases/MultiCollections.cs
2,824
C#
// ***************************************************************************** // // © Component Factory Pty Ltd 2017. All rights reserved. // The software and associated documentation supplied hereunder are the // proprietary information of Component Factory Pty Ltd, 13 Swallows Close, // Mornington, Vic 3931...
35.903846
109
0.566149
[ "BSD-3-Clause" ]
BMBH/Krypton
Source/Krypton Components/ComponentFactory.Krypton.Toolkit/View Draw/ViewDrawTrackTicks.cs
3,737
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Tilemaps; public class Attack { public string attackName; public bool isEnemy; public int damage; public float range; public List<string> modifiers; public string damageType; public float ...
32.469649
317
0.504772
[ "MIT" ]
NateCollins11/Xiphos-strategy-game
Assets/Scripts/BattleScripts/Attacks.cs
10,165
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-generate...
40.028169
175
0.587614
[ "MIT" ]
theznerd/BlogContent
2021/01/TSPauser/TSPauser-Source/Properties/Resources.Designer.cs
2,844
C#
namespace Stripe { using Newtonsoft.Json; using Stripe.Infrastructure; public class Evidence : StripeEntity<Evidence> { [JsonProperty("access_activity_log")] public string AccessActivityLog { get; set; } [JsonProperty("billing_address")] public string BillingAddress { g...
39.721893
138
0.640846
[ "Apache-2.0" ]
formstack/stripe-dotnet
src/Stripe.net/Entities/Disputes/Evidence.cs
13,434
C#
using System; using System.Threading.Tasks; using PuppeteerSharp; namespace stealthmode { class Program { // Check your API key and web socket endpoint from // My Products (https://browseasy.com/products/) page. // Assuming that it's stored in the environment variables, ...
40.580247
132
0.57986
[ "Apache-2.0" ]
Browseasy/get-started
puppeteer-sharp/debugging/Program.cs
3,289
C#
// ReSharper disable StringLiteralTypo // ReSharper disable IdentifierTypo // ReSharper disable InconsistentNaming // ReSharper disable UnusedType.Global namespace InControl.NativeDeviceProfiles { // @cond nodoc [Preserve, NativeInputDeviceProfile] public class HoriEX2ControllerMacNativeProfile : Xbox360DriverMacNat...
19.439024
79
0.681305
[ "MIT" ]
EstasAnt/Estsoul
Assets/InControl/Source/Native/DeviceProfiles/Generated/HoriEX2ControllerMacNativeProfile.cs
797
C#
using Microsoft.VisualStudio.TestTools.UnitTesting; using Microsoft.Recognizers.Text.Number.English.Extractors; using Microsoft.Recognizers.Text.Number.English.Parsers; using Microsoft.Recognizers.Text.Number.Models; using Microsoft.Recognizers.Text.Number.Parsers; using Microsoft.Recognizers.Text.Number.Extracto...
28.287823
136
0.445474
[ "MIT" ]
SivilTaram/Recognizers-Text
Microsoft.Recognizers.Text.Number.Tests/TestNumberEnglish.cs
15,334
C#
using Newtonsoft.Json; using System.Text; namespace Spear.Core.Message.Implementation { public class JsonMessageDecoder : IMessageDecoder { public MicroMessage Decode(byte[] data) { var content = Encoding.UTF8.GetString(data); var message = JsonConvert.DeserializeObject...
30.458333
107
0.604651
[ "Apache-2.0" ]
ohngahng/spear
src/Spear.Core/Message/Implementation/JsonMessageDecoder.cs
733
C#
using Assets.Gameplay.Abstract; using Assets.Gameplay.Character.Implementation; using Assets.Gameplay.Inventory; using Assets.Gameplay.Inventory.Items; using Assets.IoC; using Assets.TileGenerator; using UnityEngine; namespace Assets.Gameplay { public interface IBootstrapper { BasicCharacter PlayerPr...
24.731707
73
0.696252
[ "MIT" ]
martin-obert/WWI_Trenches
WWI_Trenches_Prototypes/Assets/Gameplay/Bootstrapper.cs
1,016
C#
#if UNITY_EDITOR namespace UIWidgets { using System; using UnityEditor; using UnityEngine; using UnityEngine.UI; /// <summary> /// Menu options. /// </summary> public static class MenuOptions { #if UIWIDGETS_TMPRO_SUPPORT /// <summary> /// Suffix to support different prefabs type. /// Done public for t...
27.617052
167
0.699911
[ "MIT" ]
cschladetsch/CardChess
Assets/External/NewUIWidgets/Editor/MenuOptions.cs
19,113
C#
using System; using System.IO; using System.Linq; using System.Text; using UnityEditor; using UnityEngine; using UnityEngine.SceneManagement; using Object = UnityEngine.Object; namespace UnityToCustomEngineExporter.Editor { public static class ExportUtils { private static readonly char[] InvalidFileNa...
36.767327
120
0.569409
[ "MIT" ]
elix22/Unity2Urho
Editor/ExportUtils.cs
7,429
C#
using System.Collections; using System.Collections.Generic; using Sirenix.OdinInspector; using UnityEngine; using UnityEngine.UI; public class DebugWindowManager : MonoBehaviour { [SerializeField] [ChildGameObjectsOnly] private Text param_0, param_1; [SerializeField] [AssetsOnly] private GeneralParameter ...
20.217391
65
0.705376
[ "MIT" ]
TakashiHamada/advent_calendar_2021
Assets/DebugWindow/DebugWindowManager.cs
465
C#
using CommandLine; using Howmessy.Cli; using Howmessy.CodeAnalysis.Analyzers; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; using Newtonsoft.Json; using System.ComponentModel.DataAnnotations; using System.Dynamic; using System.Text; usi...
36.189427
138
0.637371
[ "MIT" ]
tackme31/howmessy
Howmessy.Cli/Program.cs
8,217
C#
using System; namespace Wrox.ProCSharp.WCF { // NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "Service1" in both code and config file together. public class DemoService : IDemoService { public static string Server { get; set; } public string GetData(string value...
24.45
141
0.674847
[ "MIT" ]
CNinnovation/azureandwebservices
WCF/RoutingSample/DemoService/DemoService.cs
491
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.Globalization; using System.IO; using System.Xml; using SettingsMigrator; using CommandLineResources = Microsoft.VisualStudio....
44.447761
200
0.695545
[ "MIT" ]
SimonCropp/vstest
src/SettingsMigrator/Migrator.cs
17,870
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace PaymentServiceLib.Enum { /// <summary>The style of PaymentTerminal dialog.</summary> public enum DialogType { /// <summary>The standard PaymentTerminal dialog.</summary> ...
34.155556
96
0.639558
[ "MIT" ]
ramdeoangh/IPaymentService
PaymentServiceLib/Enum/Dialog.cs
1,539
C#
using System; using System.ComponentModel; using System.IO; using PluginCore; using PluginCore.Bridge; using PluginCore.Helpers; using PluginCore.Localization; using PluginCore.Utilities; namespace BridgeSettings { public class PluginMain: IPlugin { private String pluginName = "BridgeSettings"; ...
25.359477
100
0.529639
[ "MIT" ]
Chr0n0AP/flashdevelop
External/Plugins/BridgeSettings/PluginMain.cs
3,882
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("Bloom.Analytics.Controls")] [assembly: As...
41.52381
84
0.776376
[ "Apache-2.0" ]
RobDixonIII/Bloom
Analytics/Bloom.Analytics.Controls/Properties/AssemblyInfo.cs
874
C#
namespace EnergyTrading.Mdm.Data.Search { using System.Collections.Generic; using EnergyTrading.Contracts.Search; using EnergyTrading.Data; public class SearchService<TEntity, TDetails, TMapping> where TDetails : class, IEntityDetail where TEntity : class, IEntity where TMapping : class, IEntit...
36.204082
131
0.651635
[ "MIT" ]
RWE-Nexus/EnergyTrading-MDM
Code/MDM.Core/Data/Search/SearchService.cs
1,774
C#
using MC.ApplicationServices.DTOs; using MC.Data.Entities; using MC.Repositories.Implementations; using System.Collections.Generic; namespace MC.ApplicationServices.Implementations { public class MovieManagementService { public List<MovieDto> Get() { List<MovieDto> moviesDto = new ...
28.263636
73
0.418784
[ "MIT" ]
pkyurkchiev/distributed-applications-for-se
exercises/03/MovieCatalog/MC.ApplicationServices/Implementations/MovieManagementService.cs
3,111
C#
using System; using System.Collections.Generic; 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 littlebreadloaf.Areas.Identity.Pages.Account { [Allow...
28.733333
108
0.613302
[ "MIT" ]
ZombieFleshEaters/littlebreadloaf
littlebreadloaf/Areas/Identity/Pages/Account/ConfirmEmail.cshtml.cs
1,295
C#
using System; class Money { static void Main() { int numberOfStudents = int.Parse(Console.ReadLine()); int papersPerStudent = int.Parse(Console.ReadLine()); decimal priceOfRealm = decimal.Parse(Console.ReadLine()); long totalAmountOfPaper = numberOfStudents * papersPerStudent;...
25.95
70
0.674374
[ "MIT" ]
iliyaST/TelericAcademy
C#1/13-Testing-Exam-Six-2February2015Evening/01.Money/Program.cs
521
C#
namespace PressCenters.Services.Sources.Ministries { using System; using System.Collections.Generic; using System.Globalization; using AngleSharp.Dom; /// <summary> /// Министерство на труда и социалната политика. /// </summary> //// TODO: Rename to MlspGovernmentBgSource public c...
37.267857
103
0.618112
[ "MIT" ]
IliyanAng/PressCenters.com
src/Services/PressCenters.Services.Sources/Ministries/MlspBgSource.cs
2,127
C#
// This file is part of Silk.NET. // // You may modify and distribute Silk.NET under the terms // of the MIT license. See the LICENSE file for details. using System; #pragma warning disable 1591 namespace Silk.NET.Vulkan { public enum DriverId { DriverIDAmdProprietary = 1, DriverIDAmdOpenSo...
25.774194
57
0.669587
[ "MIT" ]
FrostByteGER/Silk.NET
src/Vulkan/Silk.NET.Vulkan/Enums/DriverId.gen.cs
799
C#
using System; using System.Linq; using System.Threading.Tasks; namespace AspNetCoreBlazor50.Data { public class WeatherForecastService { private static readonly string[] Summaries = new[] { "Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Swelterin...
30.807692
111
0.556804
[ "MIT" ]
simpleinjector/SimpleInjector.Integration.AspNetCore
tests/AspNetCoreBlazor50/Data/WeatherForecastService.cs
801
C#
using System; using System.Reflection; using System.Runtime.InteropServices; using System.Runtime.CompilerServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: Asse...
54.54717
260
0.780353
[ "Apache-2.0" ]
atpyatt/aws-sdk-net
sdk/src/Services/RedshiftDataAPIService/Properties/AssemblyInfo.cs
2,891
C#
using System; using System.IO; #if UNITY using UnityEngine; #else using System.Numerics; #endif namespace Habitat { public struct Color32 { public byte R, G, B, A; public Color32(byte r, byte g, byte b, byte a) { this.R = r; this.G = g; this.B = b; ...
22.611111
71
0.487101
[ "MIT" ]
Dummiesman/HabitatExplorer
libhabitat/Data/Color32.cs
1,630
C#
//------------------------------------------------------------ // Author: 烟雨迷离半世殇 // Mail: 1778139321@qq.com // Data: 2019年8月22日 20:32:18 //------------------------------------------------------------ using NPBehave; using Sirenix.OdinInspector; using Action = System.Action; namespace ETModel { public class NP_Se...
32.162162
141
0.603361
[ "MIT" ]
DBestBean/ETandGF
Server/Model/NKGMOBA/Battle/NPBehave/NodeDatas/Decorator/NP_ServiceNodeData.cs
1,226
C#
using System; using System.Collections.Generic; using System.Text; namespace ExcelChangeHandler.Logging { /// <summary> /// Simple logger interface. An implementation of this interface can be provided to the change handler API to enable logging in the library. /// </summary> public interface ...
26.892857
145
0.576361
[ "MIT" ]
hectorjsmith/csharp-excel-changelogger
ExcelChangeHandler/Logging/ILogger.cs
755
C#
using FilterCore.Line; using FilterPolishUtil.Model; using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; using FilterCore; namespace FilterDomain.LineStrategy { public class EnumLineStrategy : ILineStrategy { pub...
29.671642
136
0.500755
[ "MIT" ]
NeverSinkDev/FilterPolishZ
FilterCore/FilterComponents/Line/LineStrategy/EnumLineStrategy.cs
3,978
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ComposableDelegates { // declare the delegate type public delegate void MyDelegate(int arg1, int arg2); class Program { static void func1(int arg1, int arg2) {...
28.854167
67
0.555957
[ "MIT" ]
jenmcquade/csharp-snippets
Ex_Files_C_Sharp_events/Exercise Files/FinishedExamples/Delegates/ComposableDelegates/ComposableDelegates/Program.cs
1,387
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable using System.Text.Json; using Azure.Core; using Azure.ResourceManager.Sql.Models; namespace Azure.ResourceManager.Sql { public partial class ManagedTransparentDataEncryptionData...
35.9875
129
0.500174
[ "MIT" ]
AhmedLeithy/azure-sdk-for-net
sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedTransparentDataEncryptionData.Serialization.cs
2,879
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class SetAnimationBoolean : MonoBehaviour, IActivatable { public GameObject PortalToOperate; [SerializeField] public bool Value; [SerializeField] private string BooleanName; [SerializeField] public bool...
18.324324
62
0.617994
[ "MIT" ]
JayneGale/BlankSlate0
Assets/Scripts/Redevelopment/Activatable/SetAnimationBoolean.cs
680
C#
using System; using System.Linq; namespace ZeroLog { internal static class LevelStringCache { private static readonly string[] _levelStrings; static LevelStringCache() { _levelStrings = Enum.GetNames(typeof(Level)).Select(x => x.ToUpperInvariant()).ToArray(); } ...
23
101
0.652174
[ "MIT" ]
Abc-Arbitrage/ZeroLog
src/ZeroLog/LevelStringCache.cs
416
C#
#region Apache Notice /***************************************************************************** * $Revision: 469233 $ * $LastChangedDate: 2006-10-30 20:09:11 +0100 (lun., 30 oct. 2006) $ * $LastChangedBy: gbayon $ * * iBATIS.NET Data Mapper * Copyright (C) 2006/2005 - The Apache Software Foundation * *...
24.098684
82
0.521431
[ "Apache-2.0" ]
rasitha1/IBatisNet.Standard
src/SqlBatis.DataMapper/Configuration/Statements/IStatement.cs
3,663
C#
using System; using System.Collections.Generic; using System.Linq; namespace Cooking { public class Program { static void Main(string[] args) { var liquidsInput = Console.ReadLine().Split(" ", StringSplitOptions.RemoveEmptyEntries).Select(int.Parse).ToArray(); var ingre...
33.392857
132
0.425312
[ "MIT" ]
hidden16/Softuni-Advanced
Advanced/ExamPreparation/Cooking/Program.cs
2,807
C#
// Copyright (c) Multi-Emu. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using Lappa_ORM; namespace Framework.Database.Character.Entities { public class CharacterTemplateItem : Entity { [PrimaryKey] public int ItemId { get; set; } ...
28.105263
101
0.662921
[ "MIT" ]
gitter-badger/Project-WoW
Projects/Framework/Database/Character/Entities/CharacterTemplateItem.cs
536
C#
//----------------------------------------------------------------------------------------------------- // <copyright file="AssemblyInfo.cs" company="Scott Xu"> // Copyright (c) 2015 Scott Xu. // </copyright> //----------------------------------------------------------------------------------------------------- usi...
42.651163
104
0.665758
[ "Apache-2.0" ]
justinyoo/EntityFramework.Testing
src/EntityFramework.Testing.Ninject/Properties/AssemblyInfo.cs
1,836
C#
using System.IO; using System.Reflection; using System.Windows; using System.Windows.Threading; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using SampleApp.Contracts.Services; using SampleApp.Contracts.Views; using SampleApp.Core.Contr...
36.85
160
0.662687
[ "MIT" ]
mvegaca/ContentGridMockup
SampleApp/SampleApp/App.xaml.cs
3,687
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; namespace CloudShop.Controllers { [HandleError] public class HomeController : Controller { public ActionResult Index() { var products = this.HttpContext.Application["Produ...
27.054054
95
0.538961
[ "Apache-2.0" ]
PankajRawat333/MicrosoftAzureTrainingKit
HOLs/HOL-MigratingAspNetApps/Source/Ex1-MovingMVCAppsToAzure/Begin/CloudShop/Controllers/HomeController.cs
2,004
C#
using System; using System.Collections.Generic; using System.Text; namespace AjGo.Agents { public class Simple2Agent { private Dictionary<Position, bool> saved = new Dictionary<Position,bool>(); private Dictionary<Position, bool> killed = new Dictionary<Position, bool>(); priv...
31.125
102
0.529176
[ "MIT" ]
ajlopez/AjGo
Src/AjGo/Agents/Simple2Agent.cs
4,233
C#
// ----------------------------------------------------------------------- // <copyright file="NativeMethods.File.cs" company="RossKing"> // Copyright (c) RossKing. All rights reserved. // </copyright> // ----------------------------------------------------------------------- namespace Media.Metadata; using System; ...
81.77027
344
0.701867
[ "MIT" ]
rsking/Media.Metadata
Media.Metadata.Mp4v2/NativeMethods.File.cs
6,053
C#
using UnityEngine; public class Coin : MonoBehaviour { public float rotationSpeed = 3f; public float moveSpeed = 5f; bool _hasToMove; private void Start() { moveSpeed = Random.Range(moveSpeed - 2, moveSpeed + 2); } private void FixedUpdate() { transform.eulerAngles =...
24.583333
152
0.627119
[ "MIT" ]
Polifack/Unity2D-BalloonGame
Assets/Coin.cs
887
C#
// <copyright file="Program.cs" company="OpenTelemetry Authors"> // Copyright The OpenTelemetry Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/lic...
39.255814
105
0.683057
[ "Apache-2.0" ]
BearerPipelineTest/opentelemetry-dotnet
docs/metrics/getting-started/Program.cs
1,688
C#
namespace Flora.Input { /// <summary> /// Interface for handling controller input. /// </summary> public interface IControllerHandler { void OnAxisMotion(int which, ControllerAxis axis, float value); void OnButtonDown(int which, ControllerButton button); void OnButtonUp(int which...
36.916667
71
0.683973
[ "MIT" ]
sinusinu/Flora
src/Input/IControllerHandler.cs
443
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using FluentAssertions; using Paramore.Brighter.Outbox.MsSql; using Xunit; namespace Paramore.Brighter.MSSQL.Tests.Outbox { [Trait("Category", "MSSQL")] public class MsSqlOutboxBulkGetAsyncTests : IDisposable ...
38.410959
108
0.649073
[ "MIT" ]
PMamica/Brighter
tests/Paramore.Brighter.MSSQL.Tests/Outbox/When_there_are_multiple_messages_and_some_are_recievied_and_Dispatched_bulk_Async.cs
2,806
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 namespace DotNetNuke.Security.Membership { using System.ComponentModel; using DotNetNuke.Entities.Contro...
34.971014
102
0.418152
[ "MIT" ]
Acidburn0zzz/Dnn.Platform
DNN Platform/Library/Security/Membership/PasswordConfig.cs
2,415
C#
using Sirenix.OdinInspector; using System.Collections.Generic; using UnityEditor; namespace LccEditor { public class HotfixEditorWindowBase : AEditorWindowBase { [PropertySpace(10)] [HideLabel, DisplayAsString] public string info; public HotfixEditorWindowBase() { ...
33.124138
95
0.590464
[ "MIT" ]
404Lcc/Lcc
Assets/Editor/Runtime/Core/OdinEditorWindow/EditorWindowBase/HotfixEditorWindowBase.cs
4,845
C#
using NCPExtension; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Windows; using System.Windows.Controls; using System.Windows.Input; namespace ExtensionExample { public class Example : INCPCommand { public IEnumerable<INCPMenuItem>? ContextMenu => new[] { ...
28.375
88
0.425425
[ "MIT" ]
Wiltoag/NCPanel
ExtensionExample/Example.cs
3,178
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fi...
30.373737
108
0.60858
[ "Apache-2.0" ]
EbstaLimited/aws-sdk-net
sdk/src/Services/QuickSight/Generated/Model/ListTemplatesRequest.cs
3,007
C#
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Diagnostics; using System.Reflection; using System.Runtime.C...
46.34023
182
0.605814
[ "MIT" ]
Ollon/MSBuildTemplates
src/Microsoft.CodeAnalysis.SyntaxTree/Symbols/Attributes/CommonAttributeData.cs
20,160
C#
// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
40.584416
122
0.624
[ "Apache-2.0" ]
googleapis/googleapis-gen
google/cloud/recaptchaenterprise/v1/google-cloud-recaptchaenterprise-v1-csharp/Google.Cloud.RecaptchaEnterprise.V1.StandaloneSnippets/RecaptchaEnterpriseServiceClient.ListKeysRequestObjectSnippet.g.cs
3,125
C#
/* * Copyright 2010-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "l...
31.947368
112
0.644975
[ "Apache-2.0" ]
Bio2hazard/aws-sdk-net
sdk/src/Services/CloudDirectory/Generated/Model/BatchAttachPolicy.cs
2,429
C#
using System; using System.Collections.Generic; class Foo<S> { public ICloneable Test (S t) { return (ICloneable) t; } } public static class ConvertHelper { public static IEnumerator<T> Test<S,T> (S s) where T : S { yield return (T) s; } static void Main () { } }
12.217391
45
0.654804
[ "Apache-2.0" ]
CRivlaldo/mono
mcs/tests/gtest-263.cs
281
C#
using System; using System.Collections.Generic; namespace _07.HotPotato { class Program { static void Main(string[] args) { var names = Console.ReadLine().Split(); var toss = int.Parse(Console.ReadLine()); Queue<string> queue = new Queue<string>(names); ...
22.947368
64
0.447248
[ "MIT" ]
StelaKaneva/Csharp-Advanced-Repository
StacksAndQueuesLab/07.HotPotato/Program.cs
874
C#
using MediaBrowser.Model.ApiClient; using MediaBrowser.Model.Channels; using MediaBrowser.Model.Configuration; using MediaBrowser.Model.Devices; using MediaBrowser.Model.Dto; using MediaBrowser.Model.Entities; using MediaBrowser.Model.Events; using MediaBrowser.Model.Globalization; using MediaBrowser.Model.LiveTv; usi...
37.075692
191
0.584495
[ "MIT" ]
BrianCArnold/jellyfin-apiclient-csharp
Emby.ApiClient/ApiClient.cs
111,192
C#
namespace Sitecore.HabitatHome.Feature.Accounts.Services { using System.Collections.Generic; using System.Web.Mvc; using Sitecore.HabitatHome.Feature.Accounts.Models; using Sitecore.Security; using Sitecore.Security.Accounts; public interface IUserProfileService { string GetUserDef...
31.764706
69
0.725926
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
sumithpdd/Sitecore.HabitatHome.Content
src/Feature/Accounts/code/Services/IUserProfileService.cs
542
C#
/* * Copyright (c) Johnny Z. All rights reserved. * * https://github.com/StormHub/NetUV * * Licensed under the MIT license. See LICENSE file in the project root for full license information. * * Copyright (c) 2020 The Dotnetty-Span-Fork Project (cuteant@outlook.com) * * https://github.com/cuteant/dotnetty...
31.893204
105
0.664231
[ "MIT" ]
maksimkim/SpanNetty
src/DotNetty.NetUV/Buffers/WritableBuffer.cs
3,287
C#
/* Copyright 2016 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, ...
22.535211
79
0.645
[ "Apache-2.0" ]
alx1808/arcobjects-sdk-community-samples
Net/Framework/CustomizingAtStartup/CSharp/AcmeMenu.cs
1,600
C#
/* * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * ...
30.844828
81
0.629402
[ "Apache-2.0" ]
TencentCloud/tencentcloud-sdk-dotnet
TencentCloud/Cdb/V20170320/Models/DescribeInstanceParamRecordsResponse.cs
1,879
C#
using System.Collections.Generic; using System.Diagnostics.Contracts; using VendingMachineApp.Business; namespace VendingMachineApp.Commands { public sealed class BuyCommand { public readonly IReadOnlyCollection<Coin> Deposit; public readonly GoodsIdentity Goods; public BuyCommand(IRe...
26.272727
81
0.67301
[ "MIT" ]
DrunkyBard/VendingMachine
src/VendingMachine/Commands/BuyCommand.cs
580
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. // This file is used by Code Analysis to maintain SuppressMessage // attributes that are applied to this project. // Project-level suppressions either ...
135.6875
305
0.79825
[ "Apache-2.0" ]
BdDsl/NuGet.Client
src/NuGet.Clients/NuGet.PackageManagement.PowerShellCmdlets/GlobalSuppressions.cs
2,171
C#
// // This file was auto-generated using the ChilliConnect SDK Generator. // // The MIT License (MIT) // // Copyright (c) 2015 Tag Games Ltd // // 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...
38.722973
180
0.695952
[ "MIT" ]
ChilliConnect/Samples
UnitySamples/FBLeaderboard/Assets/ChilliConnect/GeneratedSource/Errors/AddCurrencyBalanceError.cs
11,462
C#
using System; using System.Collections; using System.ComponentModel; using System.Data; using System.Drawing; using System.Globalization; using System.Web; using System.Web.SessionState; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.HtmlControls; using umbraco.cms.presentation.Tre...
30.75
134
0.638061
[ "MIT" ]
TheWaxMann/Umbraco-CMS
src/Umbraco.Web/umbraco.presentation/umbraco/settings/editLanguage.aspx.cs
3,321
C#
// ReSharper disable All namespace OpenTl.Schema.Messages { using System; using System.Collections; using System.Text; using OpenTl.Schema; using OpenTl.Schema.Serialization.Attributes; [Serialize(0xcf1592db)] public sealed class RequestReportSpam : IRequest<bool> { [SerializationOrder(0)] ...
19.1
58
0.719895
[ "MIT" ]
zzz8415/OpenTl.Schema
src/OpenTl.Schema/_generated/Messages/RequestReportSpam.cs
384
C#
using System.Collections; using System.Collections.Generic; using System.Linq; using UnityEngine; using ProceduralWorlds.Core; using ProceduralWorlds.Biomator; namespace ProceduralWorlds.Node { public class NodeBiomeBinder : BaseNode { [Input("Partial Biome")] public PartialBiome inputPartialBiome; [Inp...
22.041667
73
0.725268
[ "MIT" ]
Victorique-GOSICK/Procedural-Worlds-Editor
Assets/ProceduralWorlds/Scripts/PWNodes/Biomes/NodeBiomeBinder.cs
1,589
C#
/* * Copyright 2010-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "l...
47.33871
178
0.680068
[ "Apache-2.0" ]
JeffAshton/aws-sdk-net
sdk/src/Services/ElasticLoadBalancingV2/Generated/Model/InvalidSubnetException.cs
5,870
C#
using System.IO; using Aspose.Cells; using System; namespace Aspose.Cells.Examples.CSharp.Worksheets.Value { public class MoveWorksheet { public static void Run() { // ExStart:1 // The path to the documents directory. string dataDir = RunExamples.GetDataDir(S...
28.416667
115
0.589443
[ "MIT" ]
aspose-cells/Aspose.Cells-for-.NET
Examples/CSharp/Worksheets/Value/MoveWorksheet.cs
1,023
C#
// Copyright (c) 2021 ToxicK1dd // Copyright (C) 2021 Project Contributors // // 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 ...
43.483871
81
0.760386
[ "MIT" ]
ToxicK1dd/Anna
Anna.DataAccess/UnitOfWork/Base/Interface/IUnitOfWorkBase.cs
1,350
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace ElsaWorkflowServer.Model { public class Claim { public int ClaimId { get; set; } public decimal TotalClaimAmount { get; set; } public decimal SanctionedAmount { get; set; } ...
23.8125
58
0.677165
[ "Apache-2.0" ]
NeoSOFT-Technologies/workflow-plugins
src/Server/Elsa.Server/Models/Claim.cs
383
C#
// The MIT License (MIT) // // Copyright (c) 2015 Xamarin // // 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...
40.115789
116
0.63238
[ "MIT" ]
rsaggio/app-crm
src/MobileApp/XamarinCRM/Views/Sales/LeadListHeaderView.cs
3,813
C#
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml.Serialization; namespace BEDA.CITIC.Contracts.Responses { /// <summary> /// 第三方商户提现汇总查询响应内容 /// </summary> [XmlRoot("stream")] public cla...
28.107843
133
0.49564
[ "MIT" ]
fdstar/BankEnterpriseDirectAttach
src/BEDA.CITIC/Contracts/Responses/ElectronicCommerce/RS_DL3RTXCL.cs
3,065
C#
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Net.Http; using System.Net.Http.Headers; using System.Threading.Tasks; using AutoFixture; using Demo.Domain.Role; using Demo.Domain.User; using Demo.Infrastructure.Persistence; using Demo.Infrastructure.Persi...
40.763889
119
0.671721
[ "MIT" ]
nvdvlies/dotnet-api-and-angular-frontend
test/Demo.WebApi.Tests/Helpers/TestBase.cs
5,872
C#
using System; using System.Collections.Generic; using CommandLine; using CommandLine.Text; namespace StyleCopCmd { // Define a class to receive parsed values public class CommandLineOptions { public IList<string> Items { get; set; } [OptionArray('s', "solution", HelpText = "Define one or...
39.955556
149
0.66129
[ "MIT" ]
michaelschnyder/StyleCopCmd
StyleCopCmd/CommandLineOptions.cs
1,800
C#
using System.Text.Json; namespace Opa.Wasm { public class DefaultOpaSerializer : IOpaSerializer { public static readonly DefaultOpaSerializer Instance = new DefaultOpaSerializer(); private static JsonSerializerOptions _stjDefaultOptions = new JsonSerializerOptions { PropertyNamingPolicy = JsonNamingPolicy...
22.56
85
0.771277
[ "MIT" ]
ben-page/dotnet-opa-wasm
src/Opa.Wasm/DefaultOpaSerializer.cs
566
C#
/* * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * ...
30.862069
81
0.630726
[ "Apache-2.0" ]
TencentCloud/tencentcloud-sdk-dotnet
TencentCloud/Cwp/V20180228/Models/DescribeEmergencyResponseListResponse.cs
1,866
C#
/// This code was generated by /// \ / _ _ _| _ _ /// | (_)\/(_)(_|\/| |(/_ v1.0.0 /// / / using NUnit.Framework; using System; using Twilio.Converters; using Twilio.TwiML.Voice; namespace Twilio.Tests.TwiML { [TestFixture] public class SsmlSTest : TwilioTest { [Test] ...
27.555556
91
0.453079
[ "MIT" ]
FMV1491/twilio-csharp
test/Twilio.Test/TwiML/SsmlSTest.cs
2,728
C#
using System.Collections.Generic; using System.Threading.Tasks; using AspNetCoreStorageAccount.Entities; namespace AspNetCoreStorageAccount.Repository { public interface IDemoRepository { Task<List<DemoTableEntity>> GetAllRecords(); } }
23.454545
52
0.775194
[ "MIT" ]
meanin/asp-net-core-azure-storage-account
AspNetCoreStorageAccount/Repository/IDemoRepository.cs
260
C#