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 Chroma.STB.Image.Utility { internal static class MathExtensions { public static int stbi__bitreverse16(int n) { n = (int)(((n & 0xAAAA) >> 1) | ((n & 0x5555) << 1)); n = (int)(((n & 0xCCCC) >> 2) | ((n & 0x3333) << 2)); n = (int)(((n & 0xF0F0) >> 4) | ((n & 0x0F0F) << 4)); n = (int)(((n & 0...
26.068966
73
0.56746
[ "MIT" ]
Chroma-2D/Chroma
Chroma.STB/Image/Utility/MathExtensions.cs
758
C#
using System; using Moq; using NUnit.Framework; using ZeroLog.Appenders; using ZeroLog.Utils; namespace ZeroLog.Tests.Appenders { [TestFixture] public class GuardedAppenderTests { private Mock<IAppender> _appenderMock; private GuardedAppender _guardedAppender; [SetUp] publ...
37.421053
106
0.639944
[ "MIT" ]
Abc-Arbitrage/ZeroLog
src/ZeroLog.Tests/Appenders/GuardedAppenderTests.cs
2,846
C#
// // Copyright © Microsoft Corporation, 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 // // T...
44.133127
141
0.5886
[ "MIT" ]
pravinrest/azure
samples/DotNet/Microsoft.ServiceBus.Messaging/common/Main.cs
28,513
C#
using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using DomainValues.Model; using DomainValues.Util; namespace DomainValues.Processing.Parsing { internal class KeyParser : ParserBase { protected override IEnumerable<ParsedSpan> GetParamTokens(int line...
36.85
114
0.580733
[ "MIT" ]
dannyquinn/domainvalues
DomainValues/Processing/Parsing/KeyParser.cs
1,476
C#
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace Microsoft.Azure.EventHubs.Tests.ServiceFabricProcessor { using System; using System.Collections.Generic; using System.Threading; using Micros...
47.712121
154
0.639251
[ "MIT" ]
Only2125/azure-sdk-for-net
sdk/eventhub/Microsoft.Azure.EventHubs/tests/ServiceFabricProcessor/OptionsTests.cs
9,449
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Drawing; namespace KuhlEngine { public static class Event { // Render public delegate void RenderHandler(Image aFrame); public static RenderHandler NewFrame;...
23.9
68
0.670851
[ "Artistic-2.0" ]
TeamKuhl/KuhlEngine
KuhlEngine/Event.cs
719
C#
using System; using Xunit; namespace Colaboradix.IntegrationTests { public class UnitTest1 { [Fact] public void Test1() { } } }
11.6
38
0.551724
[ "MIT" ]
lucasrosaalves/Colaboradix
tests/Colaboradix.IntegrationTests/UnitTest1.cs
174
C#
// <auto-generated /> using System; using Equinox.Infra.Data.Context; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadat...
35.957364
128
0.425461
[ "MIT" ]
sergfarias/BackendGranado
src/Equinox.Infra.Data/Migrations/20201205064342_ajusteVeterinario2.Designer.cs
9,280
C#
namespace SpottedZebra.UnitySizeExplorer.WPF.Views.Pages { using System; using System.IO; using System.Windows; using System.Windows.Controls; using System.Windows.Input; using Microsoft.Win32; using ViewModels.Pages; public partial class StartPageView : UserControl { pub...
30.314286
100
0.592366
[ "MIT" ]
U3DC/unitysizeexplorer
Source/UnitySizeExplorer.WPF/Views/Pages/StartPageView.xaml.cs
2,124
C#
/* * LambdaSharp (λ#) * Copyright (C) 2018-2019 * lambdasharp.net * * 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 requ...
32.487179
75
0.683504
[ "Apache-2.0" ]
spencerkittleson/LambdaSharpTool
src/LambdaSharp.Tool/Cli/Tier/TierModuleDetails.cs
1,268
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("01...
38.945946
84
0.741846
[ "MIT" ]
IvelinMarinov/SoftUni
02. Programming Fundamentals - Jan2017/09. Strings - Exercises/01. Convert from base-10 to base-N/Properties/AssemblyInfo.cs
1,444
C#
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved. namespace UnrealBuildTool.Rules { public class WmfMedia : ModuleRules { public WmfMedia(ReadOnlyTargetRules Target) : base(Target) { DynamicallyLoadedModuleNames.AddRange( new string[] { "Media", }); PrivateDependencyModuleNames.Add...
22.142857
60
0.657258
[ "MIT" ]
CaptainUnknown/UnrealEngine_NVIDIAGameWorks
Engine/Plugins/Media/WmfMedia/Source/WmfMedia/WmfMedia.Build.cs
1,240
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace Elight.Utility.ResponseModels { /// <summary> /// Laytpl + Laypage 分页模型。 /// </summary> /// <typeparam name="TEntity"></typeparam> public class LayPadding<TEntity> where TEntity : class { pub...
22.459459
58
0.511432
[ "MIT" ]
luhongguo/AdminAgentAnchor
Elight.Utility/ResponseModels/LayPadding.cs
883
C#
using Microsoft.AspNetCore.Mvc; using System.Collections.Generic; using System.Linq; using Microsoft.EntityFrameworkCore; using Microsoft.AspNetCore.Mvc.Rendering; using System; using FactoryManager.Models; namespace FactoryManager.Controllers { public class EngineersController : Controller { private readonly Fac...
30.597701
172
0.671675
[ "MIT" ]
reeder32/Factory.Solution
Factory/Controllers/EngineersController.cs
2,662
C#
 using System; namespace VeiligStallen.ApiClient.DataModel { /// <summary> /// Transactions data holder for chart display /// </summary> public class TransactionsChartData { /// <summary> /// Date range start /// </summary> public DateTime? DateFrom { get; set; } ...
25.03125
75
0.537453
[ "MIT" ]
cartomatic/Veiligstallen.ApiClient
Veiligstallen.ApiClient/DataModel/TransactionChartData.cs
1,604
C#
using Terraria; using Terraria.ID; using Terrexpansion.Common.Systems.Players; namespace Terrexpansion.Content.Items.Accessories.Summoner { public class VileVial : BaseItem { public override void SetStaticDefaults() => Tooltip.SetDefault("+3 summon damage" + "\nSummon weapons become corros...
31.571429
131
0.665158
[ "MIT" ]
Steviegt6/Terrexpansion
Content/Items/Accessories/Summoner/VileVial.cs
665
C#
using System.Collections.Generic; namespace Nest { public class RangeBucket : BucketBase, IBucket { public RangeBucket(IReadOnlyDictionary<string, IAggregate> dict) : base(dict) { } public long DocCount { get; set; } public double? From { get; set; } public string FromAsString { get; set; } public strin...
23.333333
83
0.690476
[ "Apache-2.0" ]
Henr1k80/elasticsearch-net
src/Nest/Aggregations/Bucket/Range/RangeBucket.cs
422
C#
using System; using System.Collections.Specialized; using System.ComponentModel.DataAnnotations; using System.Web.DynamicData; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace WebFormsApp { public partial class Children_InsertField : System.Web.DynamicData.FieldTemplateUserControl ...
23.928571
97
0.8
[ "MIT" ]
jarman75/NetWeb
WebFormsApp/DynamicData/FieldTemplates/Children_Insert.ascx.cs
335
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 Y...
38.412214
157
0.582075
[ "Apache-2.0" ]
68681395/npoi
main/SS/UserModel/Helpers/RowShifter.cs
5,032
C#
// Copyright 2004-2011 Castle Project - http://www.castleproject.org/ // // 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 // //...
26.698482
77
0.652665
[ "Apache-2.0" ]
castleproject-deprecated/ActiveRecord
src/Castle.ActiveRecord.Tests/DifferentDatabaseScopeTestCase.cs
12,308
C#
namespace Simplic.DocumentProcessing { /// <summary> /// Barcode recognition result /// </summary> public class BarcodeRecognitionResult { /// <summary> /// Gets or sets the barcode /// </summary> public string Barcode { get; set; } /// <summary>...
23.791667
48
0.495622
[ "MIT" ]
simplic/simplic-document-processing
src/Simplic.DocumentProcessing/Barcode/BarcodeRecognitionResult.cs
573
C#
//this source code was auto-generated by tolua#, do not modify it using System; using LuaInterface; public class GameConstWrap { public static void Register(LuaState L) { L.BeginClass(typeof(GameConst), typeof(System.Object)); L.RegFunction("New", _CreateGameConst); L.RegFunction("__tostring", ToLua.op_ToStri...
19.677305
83
0.695441
[ "MIT" ]
getker/Kerven_Client
Assets/ToLua/Source/Generate/GameConstWrap.cs
5,551
C#
using System; using System.Collections.Generic; namespace RDotNet { /// <summary> /// A special function. /// </summary> public class SpecialFunction : Function { /// <summary> /// Creates a special function proxy. /// </summary> /// <param name="engine...
34.756098
101
0.584561
[ "MIT" ]
StatTag/rdotnet
R.NET/SpecialFunction.cs
1,427
C#
using Discord; using Discord.Commands; using NadekoBot.Commands; using System.Collections.Concurrent; using System.Linq; using System.Threading.Tasks; /* Voltana's legacy public class AsyncLazy<T> : Lazy<Task<T>> { public AsyncLazy(Func<T> valueFactory) : base(() => Task.Factory.StartNew(valueFactory))...
40.971061
205
0.515775
[ "MIT" ]
jjp47/nadeko02
NadekoBot/Modules/Administration/Commands/ServerGreetCommand.cs
12,746
C#
using UnityEngine; using System.Collections; public class Projectile : MonoBehaviour { public LayerMask collisionMask; public Color trailColour; float speed = 10; float damage = 1; float lifetime = 3; float skinWidth = .1f; void Start() { Destroy (gameObject, lifetime); Collider[] initialCollisions = P...
25.692308
112
0.738024
[ "MIT" ]
kumakier/funzshooter
Assets/Script/Projectile.cs
1,338
C#
using System; namespace QIQO.Business.Client.Entities { public class Comment { public int CommentKey { get; set; } public int EntityKey { get; set; } public int EntityTypeKey { get; set; } public QIQOCommentType CommentType { get; set; } = QIQOCommentType.Public; public ...
33.117647
82
0.632327
[ "MIT" ]
rdrrichards/QIQO.Business.Client.Solution
QIQO.Business.Client.Entities/Classes/Comment.cs
563
C#
using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Threading.Tasks; using Horse.Messaging.Client; using Horse.Messaging.Protocol; using Horse.Messaging.Protocol.Models; using Horse.Messaging.Server.Clients; using Horse.Messaging.Server.Cluster; using Horse.Messaging.Serve...
37.899128
157
0.553051
[ "Apache-2.0" ]
horse-framework/horse-mq
src/Horse.Messaging.Server/Network/ServerMessageHandler.cs
30,433
C#
using System.Buffers.Binary; namespace CSPDC { public partial class ByteManager { public int ReadBytesvarint() { int result = 0; int numRead = 0; byte read; do { Enforce(1); read = ReadByte(); ...
26.384615
72
0.405977
[ "MIT" ]
alice-cash/CSPDC
CSPDC/varint.cs
1,374
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using VRTK; public class VR_ControllerMovementForce : MonoBehaviour { private Vector3 lastPos; private Vector3 velocity; private HashSet<Rigidbody> hits = new HashSet<Rigidbody>(); private void Update() { var ...
26.047619
93
0.585009
[ "CC0-1.0", "MIT" ]
Soludus/Soludus2Enercity
Assets/Soludus/VR Game/Common/VRTK Extensions/VR_ControllerMovementForce.cs
1,096
C#
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Sockets; using System.Collections; using System.Runtime.InteropServices; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Audio; using Microsoft.Xna.Framework.Content; using Microsoft.Xna.Frame...
33.543478
141
0.659754
[ "Apache-2.0" ]
juniortarcisio/Failed-MMO-Server-Client-XNA
MMO_XNA/GameStates/StateMenu.cs
1,545
C#
 using UnityEngine; using UnityEngine.Events; using UnityEngine.UI; namespace Framework.Shared.UI.Windows.Dialogs { public class DialogWindowEvents : MonoBehaviour { [SerializeField] private Button ok; [SerializeField] private Button cancel; public event UnityAction OkSelected ...
26.166667
59
0.636943
[ "MIT" ]
sipasi/DurakCardsGame
Assets/Code/Shared/UI/Windows/Dialogs/DialogWindowEvents.cs
630
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DanpheEMR.ServerModel.InventoryModels.InventoryReportModel { public class ReturnToVendorItems { public DateTime ReturnDate { get; set; } public string VendorName { get;...
34.24
68
0.658879
[ "MIT" ]
MenkaChaugule/hospital-management-emr
Code/Components/DanpheEMR.ServerModel/InventoryModels/InventoryReportModel/ReturnToVendorItemsModel.cs
858
C#
using System.Threading.Tasks; using RedPipes.Configuration.Visualization; namespace RedPipes.Configuration { /// <summary> provides the execute func extensions </summary> public static class Execute { /// <summary> /// Adds the <paramref name="execute"/> delegate in the pipeline //...
36.230769
159
0.55966
[ "MIT" ]
resc/redpipes
src/RedPipes/Configuration/Execute.cs
2,357
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...
35.645161
160
0.677376
[ "Apache-2.0" ]
FoxBearBear/aws-sdk-net
sdk/src/Services/DeviceFarm/Generated/Model/ListOfferingPromotionsRequest.cs
2,210
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace BugTracker_API.Models { interface IUser { public int Id { get; set; } public string Username { get; set; } } }
17.714286
44
0.669355
[ "Unlicense" ]
VygandasEidukis/Bug_Tracker_API
BugTracker_API/Models/IUser.cs
250
C#
 using Core.Features.Playlists.Commands; using Core.Features.Playlists.Queries; using Microsoft.AspNetCore.Mvc; using System.Threading.Tasks; namespace Api.Controllers; public class PlaylistsController : BaseController { /*[HttpGet("Global")] public async Task<IActionResult> GetGlobalPlaylists() { }}...
26.796296
95
0.70076
[ "MIT" ]
bartblokhuis/UltimateRedditBot
api/src/Api/Controllers/PlaylistsController.cs
1,449
C#
using RPG.Data.Context; using RPG.Domain.Dto.Character; using RPG.Domain.DTO.Weapon; using RPG.Domain.Response; using System; using System.Threading.Tasks; namespace RPG.Data.Repository.WeaponRepository { public class WeaponRepository : IWeaponRepository { private readonly DataContext _dataContext; ...
24.08
87
0.694352
[ "MIT" ]
HusseinShukri/DotNET-RPG
RPG/RPG.DB/Repository/WeaponRepository/.vshistory/WeaponRepository.cs/2021-08-20_21_56_40_760.cs
604
C#
/// <summary> /// Copyright 2010 Neuroph Project http://neuroph.sourceforge.net /// /// 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....
34.786517
90
0.738372
[ "Apache-2.0" ]
starhash/Neuroph.NET
Neuroph/nnet/Instar.cs
3,098
C#
using AccountingNote.ORM.DBModels; using System; using System.Collections.Generic; using System.Configuration; using System.Data; using System.Data.SqlClient; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AccountingNote.DBSource { public class UserInfoManger { ...
26.692308
87
0.485879
[ "MIT" ]
who000238/WebformMiniSample
WebformMiniSample/AccountingNote.DBSource/UserInfoManger.cs
1,737
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("Ag...
37.583333
84
0.747967
[ "MIT" ]
wIksS/AgarOnline
AgarServer/AgarServer/Properties/AssemblyInfo.cs
1,356
C#
using EasyLOB.Identity; using EasyLOB.Identity.Application; using EasyLOB.Identity.Persistence; using EasyLOB.Security; using System.Security.Principal; using System.Threading; using Unity; using Unity.Injection; namespace EasyLOB { public static partial class AppDIUnityHelper { public st...
47.387097
141
0.737236
[ "MIT" ]
EasyLOB/EasyLOB-Chinook-2
Chinook.Shell/EasyLOB/DIUnity/AppDIUnityHelperIdentity.cs
1,471
C#
using System; namespace FuelSDK { /// <summary> /// ETTriggeredSendDefinition - Defines a triggered send in the account. /// </summary> public class ETTriggeredSendDefinition : TriggeredSendDefinition { /// <summary> /// Gets or sets the folder identifier. /// </summary> /// <va...
34.378378
119
0.642689
[ "MIT" ]
DM-Francis/FuelSDK-CSharp
FuelSDK-CSharp/ETTriggeredSendDefinition.cs
2,546
C#
namespace TcpServerTestEcho { partial class FormServer { /// <summary> /// 必需的设计器变量。 /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// 清理所有正在使用的资源。 /// </summary> /// <param name="disposing">如果应释放托管资源,为 ...
43.711864
156
0.598488
[ "Apache-2.0" ]
Gao996/HPSocket.Net
demo/TcpServer-TestEcho/FormServer.Designer.cs
5,346
C#
#if __IOS__ || __MACCATALYST__ using Foundation; using Yang.Maui.Helper.CustomControls.Platform; using Microsoft.Maui.Graphics.Platform; using Microsoft.Maui.Handlers; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using UIKit; using Microsoft.Maui.G...
32.574074
166
0.627819
[ "MIT" ]
xtuzy/Xamarin.Native.Helper
Yang.Maui.Helper/CustomControls/DrawableView/DrawableViewHandler.iOS.cs
5,279
C#
using System.Collections.Generic; using Essensoft.Paylink.Alipay.Response; namespace Essensoft.Paylink.Alipay.Request { /// <summary> /// alipay.marketing.campaign.self.activity.batchquery /// </summary> public class AlipayMarketingCampaignSelfActivityBatchqueryRequest : IAlipayRequest<AlipayMarketing...
24.014493
141
0.547978
[ "MIT" ]
Frunck8206/payment
src/Essensoft.Paylink.Alipay/Request/AlipayMarketingCampaignSelfActivityBatchqueryRequest.cs
3,342
C#
using System; using pdxpartyparrot.Core; using pdxpartyparrot.Core.Effects; using pdxpartyparrot.Core.Util; using pdxpartyparrot.Game.Interactables; using Spine.Unity; using UnityEngine; namespace pdxpartyparrot.ggj2020.Actors { [RequireComponent(typeof(AudioSource))] [RequireComponent(typeof...
25.488095
107
0.554881
[ "Apache-2.0" ]
pdxparrot/ggj2020
Assets/Scripts/ggj2020/Actors/RepairPoint.cs
4,284
C#
namespace oadr2b_ven.UserControls.OptSchedule { partial class oadrucOptScheduleView { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. ...
45.42284
112
0.585785
[ "BSD-3-Clause" ]
epri-dev/OpenADR-Virtual-End-Node
oadr2b-ven/UserControls/OptSchedule/oadrucOptScheduleView.Designer.cs
14,719
C#
// Copyright 2016-2018 Confluent Inc., 2015-2016 Andreas Heider // // 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 a...
41.257611
156
0.546659
[ "Apache-2.0" ]
AdaskoTheBeAsT/confluent-kafka-dotnet
src/Confluent.Kafka/Consumer.cs
35,234
C#
#region BSD License /* * Use of this source code is governed by a BSD-style * license that can be found in the LICENSE.md file or at * https://github.com/Wagnerp/Krypton-Toolkit-Suite-Extended-NET-5.462/blob/master/LICENSE * */ #endregion using ComponentFactory.Krypton.Toolkit; using Persistence.Interfaces.Themi...
34.9967
179
0.586665
[ "BSD-3-Clause" ]
Krypton-Suite-Legacy/Krypton-Toolkit-Suite-Extended-NET-5.462
Source/Krypton Toolkit Suite Extended/Shared/Persistence/Classes/Options/Theming/ThemingLogic.cs
10,606
C#
using Sirenix.OdinInspector; using UnityEngine; using UnityEngine.EventSystems; using UnityEngine.UI; namespace com.tinylabproductions.TLPLib.Components.aspect_ratio { [ExecuteAlways] public class CanvasAspectRatioExpander : UIBehaviour, ILayoutSelfController { #region Unity Serialized Fields #pragma warnin...
28.182927
84
0.671571
[ "MIT" ]
tinylabproductions/tlplib
parts/0000-TLPLib/Assets/Vendor/TLPLib/core/Components/aspect_ratio/CanvasAspectRatioExpander.cs
2,313
C#
using System; using System.Collections.Generic; using System.Linq; namespace Medenka { class Program { private static string[] combination; private static string[] set; private static HashSet<string> result = new HashSet<string>(); static void Main(string[] args) { ...
27.271186
75
0.486638
[ "MIT" ]
NaskoVasilev/Algorithms
Exam - 15 May 2016/Exam15May2016/Medenka/Program.cs
1,611
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...
42.291667
81
0.633498
[ "MIT" ]
alphamax/ObjectBase
ObjectBase/ObjectBase.API/obj/Debug/net5.0/ObjectBase.API.AssemblyInfo.cs
1,015
C#
namespace Day12; public class Node { public string Name { get; set; } = string.Empty; public List<Node> Connections { get; } = new(); public bool IsLarge => char.IsUpper(Name.First()); } public static class Program { private static readonly Dictionary<string, Node> Nodes = new(); private static re...
30.690909
187
0.466528
[ "Unlicense" ]
eXpl0it3r/Advent-of-Code
2021/Day12/Program.cs
3,376
C#
using System.Web; using System.Web.Mvc; namespace WebApplicationForTestingRequests { public class FilterConfig { public static void RegisterGlobalFilters(GlobalFilterCollection filters) { filters.Add(new HandleErrorAttribute()); } } }
20.357143
80
0.680702
[ "MIT" ]
Dimitvp/TestingAppForRequsets
WebApplicationForTestingRequests/WebApplicationForTestingRequests/App_Start/FilterConfig.cs
287
C#
using System.Collections.Generic; using System.Linq; using UnityEngine; #nullable enable namespace TSKT { public class SoundPlayer : MonoBehaviour { public readonly struct Task { readonly SoundObject soundObject; public Task(SoundObject obj) { ...
25.553571
103
0.429769
[ "MIT" ]
enue/Unity_TSKT_Sound
Assets/Package/Runtime/SoundPlayer.cs
4,345
C#
using System; namespace Steamworks { public struct AccountID_t : global::System.IEquatable<global::Steamworks.AccountID_t>, global::System.IComparable<global::Steamworks.AccountID_t> { public AccountID_t(uint value) { this.m_AccountID = value; } public override string ToString() { return this.m_Acc...
23.25
146
0.727599
[ "CC0-1.0" ]
FreyaFreed/mordheim
Assembly-CSharp/Steamworks/AccountID_t.cs
1,397
C#
<<<<<<< HEAD <<<<<<< HEAD // // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the MIT License. See LICENSE file in the project root for full license information. // ======= ======= >>>>>>> update form orginal repo #region Copyright // // DotNetNuke® - https://www.dnnsoftware.com // Copyright...
35.711864
115
0.688182
[ "MIT" ]
DnnSoftwarePersian/Dnn.Platform
DNN Platform/Tests/DotNetNuke.Tests.Integration/Executers/Dto/CopyModuleItem.cs
2,112
C#
using System.Collections; using System.Collections.Generic; using System; using NetRuntimeSystem = System; using System.ComponentModel; using NetOffice.Attributes; using NetOffice.CollectionsGeneric; namespace NetOffice.VisioApi { /// <summary> /// DispatchInterface IVPaths /// SupportByVersion Visio, 11,12,14,15...
30.096774
193
0.67274
[ "MIT" ]
igoreksiz/NetOffice
Source/Visio/DispatchInterfaces/IVPaths.cs
2,801
C#
using System; using Connect.Razor.Blade.HtmlTags; // **** // **** // This is auto-generated code - don't modify // Re-run the generation program to recreate // Created 15.10.2019 10:17 // // Each tag and attributes of it prepare code, and they return an object of the same type again // to allow fluid chaining of the co...
16.769352
95
0.61658
[ "MIT" ]
DNN-Connect/razor-blade
Razor.Blade/Blade/Html5/GeneratedFormatting.cs
10,615
C#
// This Source Code Form is subject to the terms of the MIT License. // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. // Copyright (C) Leszek Pomianowski and WPF UI Contributors. // All Rights Reserved. using System; using System.Windows; using Sys...
36.788462
176
0.667669
[ "MIT" ]
wherewhere/wpfui
src/WPFUI/Appearance/Accent.cs
7,654
C#
using Cam.Cryptography.ECC; using Cam.IO; using Cam.Network.P2P.Payloads; using Cam.Persistence; using System; using System.Collections.Generic; namespace Cam.Consensus { public interface IConsensusContext : IDisposable, ISerializable { //public const uint Version = 0; UInt256 PrevHash { get; }...
26.666667
67
0.625
[ "MIT" ]
camchain/CAM
cam/Consensus/IConsensusContext.cs
1,440
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...
32.506329
101
0.655763
[ "Apache-2.0" ]
ChristopherButtars/aws-sdk-net
sdk/src/Services/IoT/Generated/Model/DetachSecurityProfileRequest.cs
2,568
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("Au...
38.567568
84
0.747722
[ "MIT" ]
schneidenbach/AutoMapper.Attributes
AutoMapper.Attributes.V4.Tests/Properties/AssemblyInfo.cs
1,430
C#
using System; namespace Bari.Core.Exceptions { /// <summary> /// Thrown if there is no registered handler for a reference type /// </summary> [Serializable] public class InvalidReferenceTypeException: Exception { private readonly string referenceType; /// <summary>...
35.357143
264
0.603367
[ "Apache-2.0" ]
Psychobilly87/bari
src/core/Bari.Core/cs/Exceptions/InvalidReferenceTypeException.cs
1,487
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"); you ...
45.65
129
0.793538
[ "Apache-2.0" ]
brightness007/unofficial-aliyun-openapi-net-sdk
aliyun-net-sdk-smartag/Smartag/Transform/V20180313/GetCloudConnectNetworkUseLimitResponseUnmarshaller.cs
1,826
C#
using Telerik.Core; using Telerik.Data.Core.Layouts; using Telerik.UI.Xaml.Controls.Primitives; using Windows.UI.Xaml; using Windows.UI.Xaml.Media; namespace Telerik.UI.Xaml.Controls.Grid.View { internal abstract class DecorationLayer : SharedUILayer { /// <summary> /// Initializes a new insta...
28.962733
132
0.527772
[ "Apache-2.0" ]
ChristianGutman/UI-For-UWP
Controls/Grid/Grid.UWP/View/Layers/DecorationLayer.cs
4,665
C#
using System; using System.Net; using System.IO; using Newtonsoft.Json; using RazorEngine; using RazorEngine.Templating; namespace JustFakeIt { public class HttpExpectation { public HttpRequestExpectation Request { get; set; } public HttpResponseExpectation Response { get; set; } publ...
35.989796
140
0.656932
[ "Apache-2.0" ]
justeat/JustFakeIt
JustFakeIt/HttpExpectation.cs
3,529
C#
using Orleans.Concurrency; using Orleans.Runtime; using Orleans.Storage; using System; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; namespace Orleans.Indexing { /// <summary> /// To minimize the number of RPCs, we process index updates for each grain on the silo where...
45.821429
184
0.637868
[ "MIT" ]
KSemenenko/Orleans.Indexing
src/Orleans.Indexing/Core/FaultTolerance/IndexWorkflowQueueBase.cs
16,679
C#
using Newtonsoft.Json; using System.Collections.Generic; using System.ComponentModel; namespace WalletWasabi.JsonConverters.Collections { public class DefaultValueStringSetAttribute : DefaultValueAttribute { public DefaultValueStringSetAttribute(string json) : base(JsonConvert.DeserializeObject<ISet<string>>(js...
22.533333
68
0.807692
[ "MIT" ]
BTCparadigm/WalletWasabi
WalletWasabi/JsonConverters/Collections/DefaultValueStringSetAttribute.cs
338
C#
using System.Linq; using System.Net; using FluentAssertions; using JsonApiDotNetCore.Serialization.Objects; using Xunit; namespace UnitTests.Internal { public sealed class ErrorDocumentTests { // @formatter:wrap_array_initializer_style wrap_if_long [Theory] [InlineData(new[] { HttpStatu...
40.225806
138
0.716119
[ "MIT" ]
3volutionsAG/JsonApiDotNetCore
test/UnitTests/Internal/ErrorDocumentTests.cs
1,247
C#
namespace GoodAI.BrainSimulator.Forms { partial class LicensesForm { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summa...
48.846847
168
0.62394
[ "Apache-2.0" ]
GoodAI/BrainSimulator
Sources/Platform/BrainSimulator/Forms/LicensesForm.Designer.cs
5,424
C#
// // Transform Rotate // // Author : Alex Tuduran // Copyright : OmniSAR Technologies // // uncomment this to execute rotation while the game is not running //#define ___EXECUTE_IN_EDITOR___ using UnityEngine; namespace OmniSARTechnologies.Helper { #if ___EXECUTE_IN_EDITOR___ [ExecuteInEditMode] #endif //...
31.423077
109
0.718482
[ "MIT" ]
DeusIntra/Snowball-Fight
Assets/_Other Packages/OmniSARTechnologies/Common/Helper/Transforms/TransformRotate.cs
819
C#
using System; using NetRuntimeSystem = System; using System.Runtime.InteropServices; using System.Runtime.CompilerServices; using System.ComponentModel; using System.Reflection; using System.Collections.Generic; using NetOffice; namespace NetOffice.MSHTMLApi { ///<summary> /// DispatchInterface IHTMLCommen...
31.975248
175
0.67224
[ "MIT" ]
NetOffice/NetOffice
Source/MSHTML/DispatchInterfaces/IHTMLCommentElement2.cs
6,459
C#
using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Reflection; using WalkingTec.Mvvm.Core.Extensions; namespace WalkingTec.Mvvm.Core { /// <summary> /// 单表增删改查VM的接口 /// </summary> /// <typeparam name="T">继...
39.469737
174
0.388139
[ "MIT" ]
ganmkTrue/WalkingTec.Mvvm
src/WalkingTec.Mvvm.Core/BaseCRUDVM.cs
32,599
C#
//********************************************************************* //xCAD //Copyright(C) 2020 Xarial Pty Limited //Product URL: https://www.xcad.net //License: https://xcad.xarial.com/license/ //********************************************************************* using System; namespace Xarial.XCad.UI.Property...
25.458333
72
0.471358
[ "MIT" ]
jonnypjohnston/Xarial-xcad
src/Base/UI/PropertyPage/Enums/NumberBoxStyle_e.cs
613
C#
// // CS0659ClassOverrideEqualsWithoutGetHashCode.cs // // Author: // Ji Kun <jikun.nus@gmail.com> // // Copyright (c) 2013 Ji Kun <jikun.nus@gmail.com> // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to...
35.664
138
0.739794
[ "MIT" ]
Jenkin0603/myvim
bundle/omnisharp-vim/server/NRefactory/ICSharpCode.NRefactory.CSharp.Refactoring/CodeIssues/Custom/CompilerErrors/CS0659OverrideEqualWithoutGetHashCode.cs
4,458
C#
using System; using System.Reflection; using UnityEditor.ShaderGraph.Drawing; using UnityEditor.UIElements; using UnityEngine; using UnityEngine.UIElements; namespace UnityEditor.ShaderGraph.Drawing.Inspector.PropertyDrawers { [SGPropertyDrawer(typeof(Color))] class ColorPropertyDrawer : IPropertyDrawer { ...
35.734694
121
0.65791
[ "MIT" ]
PULSAR2105/Boids-Bug
Library/PackageCache/com.unity.shadergraph@12.1.1/Editor/Drawing/Inspector/PropertyDrawers/ColorPropertyDrawer.cs
1,751
C#
using System; using System.Linq; using Lamar; using LamarCodeGeneration.Util; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Routing; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; namespace Jasper.Http { public static class E...
32.584615
125
0.627951
[ "MIT" ]
CodingGorilla/jasper
src/Jasper.Http/EndpointBuilderExtensions.cs
2,118
C#
/* Copyright 2017 Coin Foundry (coinfoundry.org) Authors: Oliver Weichhold (oliver@weichhold.com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation ...
43.075
103
0.731863
[ "MIT" ]
FishyJoel/miningcore
src/Miningcore/Persistence/Model/Share.cs
1,723
C#
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="ISerializationManager.cs" company="Catel development team"> // Copyright (c) 2008 - 2015 Catel development team. All rights reserved. // </copyright> // ------------------------...
51.807143
125
0.608576
[ "MIT" ]
14632791/Catel
src/Catel.Core/Runtime/Serialization/Interfaces/ISerializationManager.cs
7,255
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.215686
76
0.674184
[ "Apache-2.0" ]
jdcloud-api/jdcloud-sdk-net
sdk/src/Service/Live/Apis/DescribeDomainOnlineStreamResult.cs
1,314
C#
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using Axe.Windows.Core.Bases; using Axe.Windows.Desktop.Types; using Axe.Windows.Telemetry; using Axe.Windows.Win32; using System; using System.Collections.Generi...
44.094053
205
0.540056
[ "MIT" ]
decriptor/axe-windows
src/Desktop/UIAutomation/EventHandlers/EventListenerFactory.cs
31,158
C#
using System.Threading; using System.Threading.Tasks; using Dapper; using Hinode.Izumi.Framework.Database; using MediatR; namespace Hinode.Izumi.Services.GameServices.CardService.Queries { public record GetAllCardLengthQuery : IRequest<long>; public class GetAllCardLengthHandler : IRequestHandler<GetAllCardL...
28.035714
106
0.681529
[ "MIT" ]
envyvox/Hinode.Izumi
Hinode.Izumi.Services/GameServices/CardService/Queries/GetAllCardLengthQuery.cs
787
C#
using System.Collections.Generic; namespace NPOI.POIFS.Properties { /// <summary> /// Behavior for parent (directory) properties /// @author Marc Johnson27591@hotmail.com /// </summary> public interface Parent : Child { /// <summary> /// Get an iterator over the children of this Parent /// all elements are...
18.826087
80
0.628176
[ "MIT" ]
iNeverSleeeeep/NPOI-For-Unity
NPOI.POIFS.Properties/Parent.cs
866
C#
using MasterDevs.ChromeDevTools; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using System.Runtime.Serialization; namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Page{ /// <summary> /// Transition type. /// </summary> [JsonConverter(typeof(StringEnumConverter))] public enum TransitionType { L...
17.821429
57
0.735471
[ "MIT" ]
Digitalbil/ChromeDevTools
source/ChromeDevTools/Protocol/Chrome/Page/TransitionType.cs
499
C#
// <copyright file="Benchmark0.cs" company="Endjin Limited"> // Copyright (c) Endjin Limited. All rights reserved. // </copyright> #pragma warning disable namespace ItemsDraft201909Feature.NestedItems { using System.Threading.Tasks; using BenchmarkDotNet.Attributes; using BenchmarkDotNet.Diagnosers; usi...
30.704545
108
0.603257
[ "Apache-2.0" ]
corvus-dotnet/Corvus.JsonSchema
Solutions/Corvus.JsonSchema.Benchmarking/201909/ItemsDraft201909/NestedItems/Benchmark0.cs
1,351
C#
// // System.Xml.Serialization.SchemaImporter.cs // // Author: // Lluis Sanchez Gual (lluis@novell.com) // // Copyright (C) Novell, Inc., 2004 // // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software")...
29.233333
74
0.717788
[ "MIT" ]
GrapeCity/pagefx
mono/mcs/class/System.XML/System.Xml.Serialization/SchemaImporter.cs
1,754
C#
// Copyright (c) .NET Foundation and contributors. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading; using System.Threading.Tasks; using ...
29.435484
104
0.544658
[ "MIT" ]
1Crazymoney/installer
test/Microsoft.DotNet.Tools.Tests.Utilities/Assertions/FileInfoExtensions.FileInfoNuGetLock.cs
1,827
C#
using System; using System.CodeDom.Compiler; using System.ComponentModel; using System.Diagnostics; using System.Runtime.CompilerServices; using System.Xml.Schema; using System.Xml.Serialization; namespace Workday.ResourceManagement { [GeneratedCode("System.Xml", "4.6.1590.0"), DesignerCategory("code"), DebuggerStepT...
21.885246
136
0.732584
[ "MIT" ]
matteofabbri/Workday.WebServices
Workday.ResourceManagement/RequisitionObjectType.cs
1,335
C#
using Fidely.Framework.Compilation.Evaluators; using Fidely.Framework.Integration; using Fidely.Framework.Tests.Instrumentation; using NUnit.Framework; using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Reflection; using System.Text.RegularExpressions; names...
37.928571
172
0.606134
[ "Apache-2.0" ]
FrancielleWN/AutomateThePlanet-Learning-Series
TestCaseManager/Fidely/src/Core.Tests/Compilation/Evaluators/DynamicVariableEvaluatorTest.cs
3,719
C#
using System.Collections.Generic; using System.Threading.Tasks; namespace BrightPeeps.Core.Services { public interface ISqlDataAccessService { Task<IEnumerable<TResult>> ExecuteStoredProcedure<TResult>(string procedureId); Task<IEnumerable<TResult>> ExecuteStoredProcedure<TResult, TParam>(strin...
39.571429
114
0.749097
[ "MIT" ]
BYUCS452F2021/bright-peeps
src/BrightPeeps.Core/Services/ISqlDataAccessService.cs
554
C#
using System; using System.Collections.Generic; using System.Text; namespace ArkBot4.Entities.ArkServer { public class ArkServer { // SERIALIZED ARK PROPERTIES public string rcon_ip { get; set; } public int rcon_port { get; set; } public string rcon_password { get; set; } ...
21.882353
49
0.645161
[ "MIT" ]
Roman-Port/ArkBot
ArkBot4/Entities/ArkServer/ArkServer.cs
374
C#
using System; using System.Collections.Generic; using System.Text; namespace ClothShop.Core.Entity.Enum { public class ClothingColor { public int id { get; set; } public string Color { get; set; } public ICollection<ClothColor> ClothingOfColor { get; set; } } }
18.875
68
0.65894
[ "Apache-2.0" ]
thor1824/G3ClothingShop
ClothShop.Core.Entity/Enum/ClothingColor.cs
304
C#
#region using System; using Unity.Profiling; using UnityEngine; #endregion namespace collections.src { [Serializable] public abstract class AppaLookup3<TKey1, TKey2, TKey3, TValue, TKey1List, TKey2List, TKey3List, TValueList, TSubNested, TNested, TSubNestedList, T...
34.885246
146
0.493421
[ "MIT" ]
ChristopherSchubert/com.appalachia.unity3d.appa.collections
src/AppaLookup3.cs
4,256
C#
/**************************************************************************** * Copyright (c) 2017 liangxie * * http://qframework.io * https://github.com/liangxiegame/QFramework * https://github.com/liangxiegame/QSingleton * https://github.com/liangxiegame/QChain * * Permission is hereby granted, free of charg...
27.056604
80
0.67887
[ "MIT" ]
Bian-Sh/QFramework
Assets/QFramework/Framework/5.FrameworkConfig/QFramework.cs
3,006
C#
using System; using System.Collections.Generic; using System.Text; namespace GrandSql.PGsql.controller.Login.config { internal class InterceptorConfig { } }
15.545455
48
0.748538
[ "Apache-2.0" ]
light-come/IOT-Meta
lib/GrandSql/PGsql/controller/Login/config/InterceptorConfig.cs
173
C#
using UnityEngine; using System.Collections; public class CameraController : MonoBehaviour { GameObject cameraTarget; public float rotateSpeed; float rotate; public float offsetDistance; public float offsetHeight; public float smoothing; Vector3 offset; bool following = false; Vector3 lastPosition; void St...
30.04
166
0.749667
[ "MIT" ]
Lolz1243/Neanderthal.io
Assets/RPG Character Animation Pack/Code/CameraController.cs
1,504
C#
namespace DrawSharp { partial class DrawSharp { /// <summary> /// 必要なデザイナー変数です。 /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// 使用中のリソースをすべてクリーンアップします。 /// </summary> /// <param name="disposing">マネージ リソースを破棄する場合は true を指定し、その他の場合は false を指定します。</param> ...
32.463816
98
0.687405
[ "MIT" ]
Asteriskx/DrawSharp
DrawSharp/Form1.Designer.cs
10,281
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CalculateSequenceWithQueue { class Program { static void Main(string[] args) { decimal startingNumber = decimal.Parse(Console.ReadLine()); // h...
30.396226
71
0.548107
[ "MIT" ]
NikolaVodenicharov/C-Advanced
StacksAndQueues/CalculateSequenceWithQueue/Program.cs
1,613
C#
using System; using System.Xml; using NUnit.Framework; using Rhino.Mocks; using Rhino.Mocks.Constraints; using StoryTeller.Domain; using StoryTeller.Execution; using StoryTeller.Model; using StoryTeller.UserInterface; using StoryTeller.UserInterface.Running; namespace StoryTeller.Testing.UserInterface { ...
31.710744
118
0.607766
[ "Apache-2.0" ]
ericln/storyteller
source/StoryTeller.Testing/UserInterface/TestServiceTester.cs
3,837
C#