content
stringlengths
5
1.04M
avg_line_length
float64
1.75
12.9k
max_line_length
int64
2
244k
alphanum_fraction
float64
0
0.98
licenses
list
repository_name
stringlengths
7
92
path
stringlengths
3
249
size
int64
5
1.04M
lang
stringclasses
2 values
using System; namespace TypeGen.Core.TypeAnnotations { /// <summary> /// Specifies a default value for a TypeScript property /// </summary> [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)] public class TsDefaultValueAttribute : Attribute { /// <summary> /// ...
25.045455
72
0.626134
[ "MIT" ]
Allov/TypeGen
src/TypeGen/TypeGen.Core/TypeAnnotations/TsDefaultValueAttribute.cs
553
C#
//-----------------------------------------------【脚本说明】------------------------------------------------------- // 脚本功能: 在游戏运行时显示帧率相关信息 // 使用语言: C# // 开发所用IDE版本:Unity4.5 06f 、Visual Studio 2010 // 2014年10月 Created by 浅墨 // 更多内容或交流请访问浅墨的博客:http://blog.csdn.net/poem_qianmo //---------...
30.056604
119
0.424984
[ "MIT" ]
zsutxz/QFramework
Assets/QFramework/0.Libs/8.Info/ShowFPS.cs
1,911
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace JSDocNet { /// <summary> /// A context class. /// It contains all the available information after parsing the javascript source files and the config file. /// An instance of t...
32.255814
126
0.612833
[ "Unlicense" ]
tbebekis/JSDocNet
JSDocNet/DocContext.cs
1,389
C#
// Copyright (c) 2022 AccelByte Inc. All Rights Reserved. // This is licensed software from AccelByte Inc, for limitations // and restrictions contact your company contract manager. // This code is generated by tool. DO NOT EDIT. using System.Net; using System.IO; using System.Text.Json; using AccelByte.Sdk.Api.Leade...
31.5
125
0.56435
[ "MIT" ]
AccelByte/accelbyte-csharp-sdk
AccelByte.Sdk/Api/Leaderboard/Operation/UserData/GetUserLeaderboardRankingsAdminV1.cs
4,662
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //---------------------------------...
32.80531
86
0.585919
[ "MIT" ]
CMeeg/kentico-contrib
src/CMS/CMSModules/SmartSearch/Controls/UI/SearchIndex_OnLineForm_Edit.ascx.designer.cs
3,709
C#
// // AssemblyInfo.cs // // Author: // Lluis Sanchez Gual (lluis@novell.com) // // (C) 2005 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 files (the // "Software"), to deal in the Software wit...
42.2
377
0.798396
[ "Apache-2.0" ]
AvolitesMarkDaniel/mono
mcs/class/System.Configuration/Assembly/AssemblyInfo.cs
2,743
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using SkillBuilder.Skills; namespace SkillBuilder { public partial class frmSkillPicker : Form {...
24.95
88
0.575818
[ "MIT" ]
NoahWright87/SkillBuilder
SkillBuilder/frmSkillPicker.cs
1,499
C#
namespace MADE.Networking.Extensions { using System; using System.Collections.Specialized; /// <summary> /// Defines a collection of extensions for <see cref="Uri"/> objects. /// </summary> public static class UriExtensions { /// <summary> /// Gets a value from a query in th...
40.913043
117
0.643996
[ "MIT" ]
jamesmcroft/MS-MVP-API-PCL
samples/MVP.Api.TestApp/Extensions/UriExtensions.cs
941
C#
using System; namespace Biletix.Models { public class Item { public string Id { get; set; } public string Text { get; set; } public string Description { get; set; } } }
18.727273
47
0.57767
[ "MIT" ]
Fumigatus/Biletix-Clone
Biletix/Biletix/Models/Item.cs
208
C#
using FluentBehave; using System.Collections.Generic; using Bibliotheca.Server.ServiceDiscovery.ServiceClient.Model; using System.Threading.Tasks; using Xunit; using System.Linq; namespace Bibliotheca.Server.ServiceDiscovery.ServiceClient.Specs.Implementations { [Feature("ServiceDiscoveryQueryGetServicesB...
48.290323
140
0.682699
[ "MIT" ]
mczachurski/Bibliotheca.Server.ServiceDiscovery
test/Bibliotheca.Server.ServiceDiscovery.ServiceClient.Specs/Implementations/ServiceDiscoveryQueryGetServicesByTags.cs
2,994
C#
using System; using Mono.CecilX; using Mono.CecilX.Cil; namespace Mirror.Weaver { public static class PropertySiteProcessor { public static void ProcessSitesModule(ModuleDefinition moduleDef) { DateTime startTime = DateTime.Now; //Search through the types fo...
43.098039
139
0.528662
[ "MIT" ]
Fewes/Mirror
Assets/Mirror/Editor/Weaver/Processors/PropertySiteProcessor.cs
15,386
C#
namespace Bazzigg.Database.Model.Match { public class RecentMatchSummary { public const int RECENT_MATCH_SUMMARY_COUNT = 30; public double WinRate { get; set; } public int Win { get; set; } public int Lose { get; set; } public double AverageRank { get; set; } pu...
28.2
57
0.621749
[ "MIT" ]
bazzi-gg/database
Bazzigg.Database/Model/Match/RecentMatchSummary.cs
425
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. using System; using Brigadier.NET.Builder; using Brigadier.NET.Tree; using FluentAssertions; using NSubstitute; using Xunit; namespace Brigadier.NET.Tests.builder { public class ArgumentBuilderTest { private readonly Te...
27.578125
134
0.724079
[ "MIT" ]
AtomicBlom/Brigadier.NET
Brigadier.NET.Tests/builder/ArgumentBuilderTest.cs
1,765
C#
using System; namespace MeuAppReservedNames { class Program { static void Main(string[] args) { //int internal = 25; // <-- "internal" é uma palavra reservada em c# var text = "Testing"; Console.WriteLine(text.ToLower()); } ...
22.066667
80
0.483384
[ "MIT" ]
NiziulLuizin/EstudosP
FundamentosDoC#/ProgrammingLanguageWithC#/MeuAppReservedNames/Program.cs
334
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.830645
178
0.683696
[ "Apache-2.0" ]
JeffAshton/aws-sdk-net
sdk/src/Services/DatabaseMigrationService/Generated/Model/StorageQuotaExceededException.cs
5,931
C#
using System; using System.Collections.Specialized; using NUnit.Framework; namespace HelperSharp.UnitTests { [TestFixture] public class NameValueCollectionExtensionsTest { #region Fields private NameValueCollection m_target; #endregion #region Initialize [TestFixtur...
24.75
65
0.573232
[ "MIT" ]
eduardobursa/HelperSharp
HelperSharp.UnitTests/NameValueCollectionExtensionsTest.cs
1,188
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.Services.Tokens { using System.Collections; using System.Data; using System.Web; ...
45.736364
194
0.613728
[ "MIT" ]
Acidburn0zzz/Dnn.Platform
DNN Platform/Library/Services/Tokens/TokenReplace.cs
15,095
C#
/* * Copyright 2020 Sage Intacct, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not * use this file except in compliance with the License. You may obtain a copy * of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * or in the "LICENSE" file accompanying th...
30.516129
80
0.678647
[ "Apache-2.0" ]
Intacct/intacct-sdk-net
Intacct.SDK/Functions/Common/NewQuery/QueryOrderBy/OrderAscending.cs
946
C#
namespace ThuHoach.Sessions.Dto { public class GetCurrentLoginInformationsOutput { public ApplicationInfoDto Application { get; set; } public UserLoginInfoDto User { get; set; } public TenantLoginInfoDto Tenant { get; set; } } }
22.333333
59
0.675373
[ "MIT" ]
nguyenvanchuong98/thuhoach
aspnet-core/src/ThuHoach.Application/Sessions/Dto/GetCurrentLoginInformationsOutput.cs
270
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated from a template. // // Manual changes to this file may cause unexpected behavior in your application. // Manual changes to this file will be overwritten if the code is regenerated....
40.060606
85
0.578669
[ "MIT" ]
driwand/ParcInfo-Dev
ParcInfo/Installer.cs
1,322
C#
#pragma warning disable 108 // new keyword hiding #pragma warning disable 114 // new keyword hiding namespace Windows.UI.StartScreen { #if false || false || NET461 || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ || __MACOS__ [global::Uno.NotImplemented] #endif public partial class JumpListItem { #if false || f...
45.373984
177
0.74019
[ "Apache-2.0" ]
AbdalaMask/uno
src/Uno.UWP/Generated/3.0.0.0/Windows.UI.StartScreen/JumpListItem.cs
5,581
C#
namespace ForumNet.Services.Reactions { using System.Linq; using System.Threading.Tasks; using Microsoft.EntityFrameworkCore; using Data; using Data.Models; using Data.Models.Enums; public class PostReactionsService : IPostReactionsService { private readonly ForumDbContext db...
38.541667
100
0.602883
[ "MIT" ]
AnthonyDisasi/ForumNet
Services/ForumNet.Services/Reactions/PostReactionsService.cs
2,777
C#
using UnityEngine; using System.Collections; using NFSDK; using UnityStandardAssets.Cameras; using UnityStandardAssets.CrossPlatformInput; using UnityStandardAssets.Characters.ThirdPerson; public class MainPlayer : MonoBehaviour { // Use this for initialization private float mSyncTime = 1.0f; private f...
33.89899
142
0.601907
[ "Apache-2.0" ]
Kuovane/NoahGameFrame
NFClient/UnitySDK/Assets/NF/Scene/MainPlayer.cs
3,374
C#
// In Package Manager, run: // Install-Package Twilio.AspNet.Mvc -DependencyVersion HighestMinor using System.Web.Mvc; using Twilio.AspNet.Mvc; using Twilio.TwiML; public class SmsController : TwilioController { [HttpPost] public ActionResult Index() { var messagingResponse = new MessagingResponse...
23.947368
80
0.716484
[ "MIT" ]
berkus/twilio-api-snippets
rest/messages/generate-twiml-sms/generate-twiml-sms.5.x.cs
455
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Ancora { public enum ParserFlags { NONE = 0, PASSTHROUGH = 1, FLATTEN = 2, VALUE = 4, IGNORE_LEADING_WHITESPACE = 8, IGNORE_TRAILING_WHI...
27.840764
145
0.560055
[ "MIT" ]
Blecki/Ancora
Ancora/Parser.cs
4,373
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace StrategyMode { class Test { // Just to give an example public void TestMode(string type) { Strategy strategy; switch (type) ...
26.314286
77
0.488599
[ "Unlicense" ]
xbfighting/LearnDesignPatterns
DesignPatternsPractices/StrategyMode/Test.cs
923
C#
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Threading.Tasks; namespace Kalendar.Zero.ApiTerminal.Clients.Response { [Serializable] [DataContract] public class MsonlineRecurrenceRange { [DataMember(Name =...
24.125
54
0.650259
[ "MIT" ]
karl-rao/Kalendar
Libraries/ApiTerminal/Clients/Response/MsonlineRecurrenceRange.cs
774
C#
// Copyright (c) MarinAtanasov. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the project root for license information. using AppBrix.Configuration; using AppBrix.Data.SqlServer; using AppBrix.Data.SqlServer.Configuration; namespace AppBrix; /// <summary> /// Extension methods for ...
37.818182
155
0.740385
[ "MIT" ]
MarinAtanasov/AppBrix
Modules/AppBrix.Data.SqlServer/SqlServerDataExtensions.cs
832
C#
using System.Threading.Tasks; namespace Zaaby.MessageBus.RabbitMQ { public interface IZaabyMessagePublisher { void Publish<TMessage>(TMessage message); Task PublishAsync<TMessage>(TMessage message); } }
23.1
54
0.722944
[ "MIT" ]
Mutuduxf/Zaaby
src/Messaging/Zaaby.MessageBus.RabbitMQ/IZaabyMessagePublisher.cs
231
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.CompilerServices; using System.Diagnostics.CodeAnalysis; namespace System.Diagnostics.Tracing { [EventSource(Guid = "8E9F5090-2D75-4d03-8A81-E5AFBF85DAF1", ...
55.337079
149
0.632183
[ "MIT" ]
AUTOMATE-2001/runtime
src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/FrameworkEventSource.cs
9,850
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using OnLineShop.Data.Models.Contracts; namespace OnLineShop.Data.Models { public class Address : IDbModel { public const int StreetMinLength = 2; pu...
25.9
62
0.642857
[ "MIT" ]
dushka-dragoeva/OnLineShop
OnLineShop/OnLineShop.Data.Models/Address.cs
1,038
C#
using System; using System.Collections.Generic; using System.Text; namespace NoCommons.Banking { /** * This class calculates valid Kontonummer instances. */ public class KontonummerCalculator { private static List<Kontonummer> GetKontonummerListUsingGenerator(KontonummerDigitGenerator ge...
32.817143
122
0.561727
[ "MIT" ]
alnimin/NoCommonsNET
NoCommons/Banking/KontonummerCalculator.cs
5,745
C#
using CnAppForAzureDev.ViewModels; using System; using System.Collections.Generic; using System.Linq; using System.Security.Claims; using System.Threading.Tasks; namespace CnAppForAzureDev.ViewServices { public interface ICatalogItemViewService { Task<IEnumerable<CatalogItemViewModel>> GetCatalogItems...
29.25
110
0.807692
[ "MIT" ]
flyingoverclouds/CloudNativeAppDansAzure
Episode_1/STEP_4_MESSAGING/src/WebAppUI/ViewServices/ICatalogItemViewService.cs
470
C#
using Newtonsoft.Json.Linq; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; namespace fbchat_sharp.API { /// <summary> /// Facebook messenger group class /// </summary> public class FB_Group : FB_Thread { /// Unique list (set) of the grou...
43.782967
421
0.563343
[ "BSD-3-Clause" ]
DD2XAlpha/fbchat-sharp
fbchat-sharp/API/Threads/Group.cs
15,939
C#
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ /...
45.714286
153
0.655208
[ "MIT" ]
OfficeGlobal/msgraph-beta-sdk-dotnet
src/Microsoft.Graph/Requests/Generated/IAndroidForWorkScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder.cs
1,920
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace StrategyPattern { /// <summary> /// Context class /// </summary> public class SearchList { private ISearchStrategy objISearchStrategy; public void SetSearchStrategy(ISearchStrategy ob...
21.2
82
0.617925
[ "MIT" ]
mahedee/code-sample
StrategyPattern/StrategyPattern/StrategyPattern/SearchList.cs
638
C#
using System; using System.Net; namespace nUpdate.Internal.Core { public class WebRequestWrapper { /// <summary> /// Initializes a new WebRequest instance for the specified URI scheme. /// </summary> /// <param name="requestUri">A Uri containing the URI of the requested res...
44.583333
194
0.676636
[ "MIT" ]
dbforge/nUpdate
nUpdate.Internal/Core/WebRequestWrapper.cs
1,072
C#
namespace Cluster.Batch.Impl { internal class Program { private static void Main(string[] args) { RunExe.Run(); } } }
21.857143
49
0.555556
[ "Apache-2.0" ]
NakedObjectsGroup/Clusters
Cluster.Batch.Impl/Program.cs
153
C#
using System.Collections.Generic; using UnityEngine; #if UNITY_EDITOR using UnityEditor; using UnityEngine.AI; #endif namespace MyBox { public class ColliderGizmo : MonoBehaviour { #if UNITY_EDITOR public Presets Preset; public Color CustomWireColor; public Color CustomFillColor; public Color CustomCente...
26.752151
144
0.69163
[ "CC0-1.0" ]
juanFrancoSalcedo/Pitacos
PitacosMaths/Assets/External Assests/MyBox-master/Types/ColliderGizmo.cs
15,545
C#
/* * Copyright (c) Contributors, http://opensimulator.org/ * See CONTRIBUTORS.TXT for a full list of copyright holders. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must r...
43.509375
122
0.62702
[ "BSD-3-Clause" ]
Michelle-Argus/ArribasimExtract
OpenSim/Server/Handlers/Inventory/InventoryServerInConnector.cs
13,923
C#
 using Improbable.Gdk.Core; using Improbable.Gdk.Core.Commands; using Improbable.Gdk.GameObjectCreation; using Improbable.Worker.CInterop; using UnityEngine; public class EntityCreationBehaviour : MonoBehaviour { //private WorldCommands.Requirable.WorldCommandRequestSender commandSender; //private WorldComm...
20.5
106
0.677881
[ "MIT" ]
r00f/LeyLineNetworking
workers/unity/Assets/Scripts/EntityCreationBehaviour.cs
1,191
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated from a template. // // Manual changes to this file may cause unexpected behavior in your application. // Manual changes to this file will be overwritten if the code is regenerated....
33.125
85
0.522013
[ "Apache-2.0" ]
HaloImageEngine/EmpowerClaim-hotfix-1.25.1
EmpowerBusiness/Eval_CheckIn.cs
795
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("Co...
37.918919
84
0.746258
[ "MIT" ]
pavlinpetkov88/ProgramingBasic
SimpleCalculations/ConcatenateData/Properties/AssemblyInfo.cs
1,406
C#
using System; namespace Iridium.DB { public class TimedSqlLogEntry { public TimedSqlLogEntry() { } public TimedSqlLogEntry(TimeSpan timeTaken, string sql) { TimeTaken = timeTaken; Sql = sql; } public TimeSpan TimeTaken { get; set...
18.55
63
0.539084
[ "MIT" ]
ArwinNL/iridium
src/Iridium.DB/DataProviders/Sql/Logging/TimedSqlLogEntry.cs
371
C#
using Microsoft.Extensions.Configuration; using RabbitMQ.Client; using RabbitMQ.Client.Events; using System; using System.Text; namespace Greeter { class Greeter { private static IConnection connection; static void Main(string[] args) { var config = new ConfigurationBuilder() .AddEnviro...
32.836066
134
0.664004
[ "MIT" ]
rockfordlhotka/xplat-netcore-webassembly
src/02-services/Greeter/Greeter.cs
2,005
C#
// <auto-generated/> #pragma warning disable 1591 namespace Test { #line hidden using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Components; public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase ...
26.207547
118
0.632109
[ "Apache-2.0" ]
Therzok/AspNetCore-Tooling
src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Element_WithKey_AndOtherAttributes/TestComponent.codegen.cs
1,389
C#
using System; using System.Collections.Generic; using System.IO; using System.IO.Compression; using System.Threading.Tasks; using E2ETests.Common; using Microsoft.AspNetCore.Server.IntegrationTesting; using Microsoft.AspNetCore.Testing.xunit; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Logging;...
45.195364
161
0.608909
[ "Apache-2.0" ]
BrennanConroy/MusicStore
test/E2ETests/SmokeTestsOnNanoServer.cs
13,649
C#
using Newtonsoft.Json; namespace FreshdeskApi.Client.Conversations.Requests { /// <summary> /// Set the properties required for creating a new reply to a ticket. /// /// c.f. https://developers.freshdesk.com/api/#reply_ticket /// </summary> public class CreateReplyRequest { /// <su...
32.016393
181
0.558628
[ "MIT" ]
tschlecht06/FreshdeskApiDotnet
FreshdeskApi.Client/Conversations/Requests/CreateReplyRequest.cs
1,955
C#
using Microsoft.EntityFrameworkCore.Migrations; namespace sage.poc_001.Migrations { public partial class Upgraded_To_Abp_2_1_0 : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.DropForeignKey( name: "FK_AbpRoleClaims_AbpR...
32.333333
71
0.542174
[ "MIT" ]
PaulCoetser/SdiPoc
aspnet-core/src/sage.poc_001.EntityFrameworkCore/Migrations/20170608053244_Upgraded_To_Abp_2_1_0.cs
2,136
C#
using System; using WMNW.Core; using System.IO; namespace System.Xml { /// <summary> /// This class is used to manage and give short cuts to loading and writing xml files /// </summary> public sealed class XmlSettingManager { #region Fields /// <summary> /// The instance. ...
26.428571
95
0.546486
[ "MIT" ]
MuteLovestone/WM_NewWorld
Code/WM New World/Whore Master New World/Core/WMNW.Core/Loading/XmlSettingManager.cs
1,852
C#
using System; using System.Collections.Generic; namespace Myrtille.Fleck.Handlers { public class ComposableHandler : IHandler { public Func<string, byte[]> Handshake = s => new byte[0]; public Func<string, byte[]> TextFrame = x => new byte[0]; public Func<byte[], byte[]> Binary...
27.561404
68
0.502864
[ "Apache-2.0" ]
YongboZhu/myrtille
Myrtille.Common/Fleck/Handlers/ComposableHandler.cs
1,571
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DesignPatternCore.Proxy { class Pursuit : IGiveGift { SchoolGirl sg; public Pursuit(SchoolGirl sg) { this.sg = sg; } ...
20.375
51
0.513804
[ "Apache-2.0" ]
MarsonShine/Books
DesignPattern/DesignPatternCore/Proxy/Pursuit.cs
682
C#
using System.Runtime.CompilerServices; using System.Runtime.Intrinsics; using System.Runtime.Intrinsics.X86; using static MathSharp.SoftwareFallbacks; namespace MathSharp { public static partial class Vector { [MethodImpl(MaxOpt)] public static Vector256<double> CompareEqual(Vector2...
30.317647
114
0.606907
[ "MIT" ]
Svengali/MathSharp
sources/MathSharp/Vector/VectorFloatingPoint/VectorDouble/Comparisons.cs
2,579
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Collections.Generic; using Microsoft.CodeAnalysis.Differencing; using Microsoft.CodeAnalysis.EditAndCo...
39.835938
134
0.647186
[ "MIT" ]
BertanAygun/roslyn
src/EditorFeatures/CSharpTest/EditAndContinue/Helpers/Extensions.cs
5,101
C#
using UnityEngine; using System.Collections; /// <summary> /// Defines a consumable (called "power up" in game). Each consumable is derived from this and implements its functions. /// </summary> public abstract class Consumable : MonoBehaviour { public float duration; public enum ConsumableType ...
33.704762
159
0.638598
[ "MIT" ]
Berklee-Game-Audio/Unity-Wwise-Game-Template-Trashcat
Assets/Scripts/Consumable/Consumable.cs
3,541
C#
using System.Collections.Generic; namespace Inasync.OnionFunc.Tests { public class SpyHandler : SpyComponent { public SpyHandler(List<SpyComponent> invokedComponents, DummyResult result) : base(invokedComponents, result) { } } }
23.363636
119
0.719844
[ "MIT" ]
in-async/MiddlewarePipelines
tests/Inasync.OnionFunc.Tests/TestHelpers/TestDoubles/SpyHandler.cs
259
C#
// Copyright (c) DotSpatial Team. All rights reserved. // Licensed under the MIT license. See License.txt file in the project root for full license information. using System; using System.Collections.Generic; using System.Linq; namespace DotSpatial.Symbology { /// <summary> /// Jenks natural breaks optimizat...
41.305085
191
0.56285
[ "MIT" ]
eapbokma/DotSpatial
Source/DotSpatial.Symbology/NaturalBreaks.cs
7,313
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("Hi...
39.297297
84
0.753783
[ "MIT" ]
lutz/HideKnowledgeItemFileFormHelpBoxAddon
src/HideKnowledgeItemFileFormHelpBoxAddon/Properties/AssemblyInfo.cs
1,457
C#
using Business.Abstract; using Core.Entities.Concrete; using Entities.Concrete; using Entities.DTO_s; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace WebAPI.Controllers { [Route("api/[contro...
23.946809
56
0.519325
[ "MIT" ]
hlmclgl/RentaCarProject
WebAPI/Controllers/UsersController.cs
2,253
C#
using Microsoft.Extensions.DependencyInjection; using Sitecore.DependencyInjection; using Sitecore.Foundation.Web.Context; using Sitecore.Foundation.Web.DependencyInjection; namespace Sitecore.Foundation.Web.Services { public class Configurator : IServicesConfigurator { public void Configure(IServiceC...
34.947368
82
0.712349
[ "MIT" ]
GuitarRich/sitecore.react.project
src/Foundation/Web/code/Services/Configurator.cs
666
C#
using BenchmarkDotNet.Attributes; namespace StringyEnums.Benchmarks { [MemoryDiagnoser] [Config(typeof(NoOptimizationConfig))] public class EnumParserExtensionBenchmark { [Benchmark] public BenchmarkEnum ParseToEnum() => (BenchmarkEnum)EnumParser.EnumParser.Parse(typeof(BenchmarkEnum),"Value 5"); } }
22.571429
82
0.787975
[ "MIT" ]
TwentyFourMinutes/StringyEnums
src/StringyEnums/StringyEnums.Benchmarks/Benchmarks/EnumParserExtensionBenchmark.cs
318
C#
using System.IO; using System.Threading; using Macad.Common.Interop; using Macad.Test.Utils; using NUnit.Framework; namespace Macad.Test.Unit { [SetUpFixture, Apartment(ApartmentState.STA)] public class TestEnvironment { [OneTimeSetUp] public void SetUp() { ...
27.741935
153
0.59186
[ "MIT" ]
Macad3D/Macad3D
Source/Test.Unit/TestEnvironment.cs
862
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using OpenQA.Selenium; using OpenQA.Selenium.Firefox; using OpenQA.Selenium.Support.UI; namespace WebAddressbookTests { public class NavigationHelper : HelperBase { private string baseUR...
26.04
91
0.543011
[ "Apache-2.0" ]
rmikhajlov/csharp_training
addressbook-web-tests/addressbook-web-tests/AppManager/NavigationHelper.cs
1,304
C#
namespace StoryTeller.UserInterface.Screens { public interface IScreenFactory { T Build<T>() where T : IScreen; IScreen<T> Build<T>(T subject); } }
22.75
44
0.60989
[ "Apache-2.0" ]
DarthFubuMVC/storyteller
src/StoryTeller.UserInterface/Screens/IScreenFactory.cs
182
C#
using System.Collections; using System.Collections.Generic; using System; using UnityEngine.UI; using UnityEngine.SceneManagement; using UnityEngine; public class DailyReward : MonoBehaviour { [SerializeField] bool tmp; [SerializeField] GameObject rewardWindow; [SerializeField] GameObject lef...
27.603774
100
0.571917
[ "Apache-2.0" ]
MadGriffonGames/BiltyBlop
Assets/Scripts/Menu&UI/DailyReward.cs
10,243
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.ComponentModel.Composition; using Microsoft.CodeAnalysis.Cod...
50.186047
161
0.772243
[ "Apache-2.0" ]
20chan/roslyn
src/EditorFeatures/Core.Wpf/Suggestions/SuggestedActionsSourceProvider.cs
4,318
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...
42.525773
178
0.645091
[ "Apache-2.0" ]
NGL321/aws-sdk-net
sdk/src/Services/CloudFront/Generated/Model/MissingBodyException.cs
4,125
C#
using Abp.AutoMapper; using MahjongBuddy.Game; using MahjongBuddy.Users; using System.Collections.Generic; namespace MahjongBuddy.MjGames.Dto { [AutoMap(typeof(MjGameSession))] public class CreateMjGameSessionInput { public long MjGameId { get; set; } public ICollection<long> Us...
24.818182
55
0.613553
[ "MIT" ]
tthiatma/mj-buddy-ntier
MahjongBuddy.Application/MjGames/Dto/CreateMjGameSessionInput.cs
548
C#
using System; namespace Nyan.Core.Modules.Data { [AttributeUsage(AttributeTargets.Class)] public sealed class CacheEntityAttribute : Attribute { // ReSharper restore InconsistentNaming [NotNull] public string IdentifierPropertyName; } }
24.545455
56
0.722222
[ "MIT" ]
bucknellu/Nyan
Core/Modules/Data/CacheEntityAttribute.cs
272
C#
using System; using System.Diagnostics; namespace SqlPad.Oracle { [DebuggerDisplay("OracleCodeCompletionItem (Name={Label}; Category={Category}; Priority={Priority})")] public class OracleCodeCompletionItem : ICodeCompletionItem { public string Category { get; set; } public string Label { get; set; } pu...
33.699029
103
0.698646
[ "MIT" ]
Husqvik/SQLPad
SqlPad.Oracle/OracleCodeCompletionItem.cs
3,471
C#
// <copyright file="IFavoriteDistributionListMemberDataRepository.cs" company="Microsoft"> // Copyright (c) Microsoft. All rights reserved. // </copyright> namespace Microsoft.Teams.Apps.DLLookup.Repositories.Interfaces { using System.Collections.Generic; using System.Threading.Tasks; using Microsoft.Team...
54.66129
144
0.709649
[ "MIT" ]
KennethBWSong/microsoft-teams-apps-contactgrouplookup
Source/Microsoft.Teams.Apps.DLLookup/Repositories/Interfaces/IFavoriteDistributionListMemberDataRepository.cs
3,391
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Text; using System.Windows.Forms; using ExampleBase; using NetOffice; using Outlook = NetOffice.OutlookApi; using NetOffice.OutlookApi.Enums; namespace OutlookExamplesCS4 {...
27.29703
105
0.556765
[ "MIT" ]
NetOffice/NetOffice
Examples/Outlook/C#/Standard Examples/OutookExamples/Examples/Example01.cs
2,759
C#
using System.Text.RegularExpressions; using Microsoft.Xna.Framework; using Pathoschild.Stardew.ChestsAnywhere.Framework.Containers; using StardewValley; using StardewValley.Menus; namespace Pathoschild.Stardew.ChestsAnywhere.Framework { /// <summary>A chest with metadata.</summary> internal class ManagedChest ...
38.025974
107
0.545765
[ "MIT" ]
CrimsonTautology/StardewMods
ChestsAnywhere/Framework/ManagedChest.cs
5,856
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable using System.Collections.Generic; using Azure.Core; namespace Azure.ResourceManager.MachineLearning.Models { /// <summary> Strictly used in update requests. </summary> publi...
46.325
249
0.683216
[ "MIT" ]
damodaravadhani/azure-sdk-for-net
sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OnlineDeploymentPatch.cs
1,853
C#
using SimpleChat.Core; using SimpleChat.Core.ViewModel; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Text; namespace SimpleChat.ViewModel.User { public record UserUpdateVM : UpdateVM { [Required(ErrorMessage= APIStatusCode.ERR03001)] ...
31.380952
62
0.720789
[ "MIT" ]
SimpleChatApp/SimpleChat-WebAPI
SimpleChat.ViewModel/User/UserUpdateVM.cs
661
C#
using ConstChile.Indicators; using ConstChile.Persistance; using System; using System.Collections.Generic; using System.Data.Entity; using System.Linq; using System.Threading.Tasks; using System.Web.Http; using System.Web.Http.Cors; using System.Web.Http.Description; namespace WS.Controllers { [EnableCors(origins...
28.340659
145
0.519193
[ "MIT" ]
darsen/const-chile
WS/Controllers/DolarController.cs
2,581
C#
//=================================================================================== // Microsoft patterns & practices // Composite Application Guidance for Windows Presentation Foundation and Silverlight //=================================================================================== // Copyright (c) Microsoft C...
47.112583
157
0.608237
[ "Apache-2.0" ]
andrewdbond/CompositeWPF
sourceCode/compositewpf/V4/PrismLibrary/Desktop/Prism/Regions/RegionNavigationContentLoader.cs
7,114
C#
 namespace XamarinShot.Models.GameplayState { using Foundation; using GameplayKit; using SceneKit; using System; public class SlingshotComponent : GKComponent { private readonly SCNVector3 restPosition; private readonly SCNNode catapult; private SCNVector3 currentPosit...
35.438596
127
0.570792
[ "MIT" ]
Art-Lav/ios-samples
ios12/XamarinShot/XamarinShot/Core/Gameplay State/Components/SlingshotComponent.cs
2,022
C#
namespace wcf_reference_client { public interface IFlights { void DisplayFlights(); void DisplayAirports(); } }
15.666667
31
0.631206
[ "Apache-2.0" ]
mjbradvica/wcf-reference
wcf-reference-client/wcf-reference-client/IFlights.cs
143
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...
26.0625
107
0.58705
[ "Apache-2.0" ]
altso/aws-sdk-net
sdk/src/Services/RoboMaker/Generated/AmazonRoboMakerConfig.cs
2,085
C#
using System; using System.Activities; using System.ServiceModel; using System.Globalization; using System.Runtime.Serialization; using System.IO; using System.Text; using System.Collections.Generic; using System.Net; using Microsoft.Xrm.Sdk; using Microsoft.Crm.Sdk.Messages; using Microsoft.Xrm.Sdk.Workflow; using Mi...
44.664706
169
0.534966
[ "Apache-2.0" ]
jasonlcook/Crm-Sample-Code
CrmDataSnapshots/DataSnapshots/TakeSnapshot.cs
7,595
C#
using loon.utils; namespace loon.geom { public class RectF : XY { public class Range : XY { public float left; public float top; public float right; public float bottom; public Range() { } pu...
28.60574
120
0.375772
[ "Apache-2.0" ]
TheMadTitanSkid/LGame
C#/Loon2MonoGame/LoonMonoGame-Lib/loon/geom/RectF.cs
18,939
C#
using System; 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("NMoneys.Exchange")] ...
41.285714
85
0.778547
[ "BSD-3-Clause" ]
CenterEdge/nmoneys
src/NMoneys.Exchange/Properties/AssemblyInfo.cs
580
C#
/******************************************************************************* * Copyright 2019 Esri * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache...
38.688312
116
0.619671
[ "Apache-2.0" ]
krisbuote/data-collection-dotnet
src/DataCollection.UWP/Helpers/MediaHelper.cs
2,981
C#
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ namespace Fabrikam.Workflow...
29.103448
99
0.543839
[ "MIT" ]
DivyeshTikmani-MSFT/microservices-reference-implementation
src/shipping/workflow/Fabrikam.Workflow.Service/WorkflowServiceOptions.cs
846
C#
using System; using System.Collections.Generic; using System.Web; using System.Web.Routing; using Microsoft.AspNet.FriendlyUrls; namespace WebFormExample { public static class RouteConfig { public static void RegisterRoutes(RouteCollection routes) { var settings = new F...
26.5
66
0.668763
[ "Apache-2.0" ]
namlai000/WebFormExample
App_Code/RouteConfig.cs
479
C#
using System; using System.Threading.Tasks; using AElf.Kernel; using AElf.Kernel.Blockchain.Application; using AElf.OS.BlockSync.Application; using AElf.OS.BlockSync.Dto; using AElf.OS.BlockSync.Infrastructure; using AElf.OS.BlockSync.Types; using AElf.Sdk.CSharp; using Microsoft.Extensions.Logging; using Mic...
45.371287
211
0.587561
[ "MIT" ]
booggzen/AElf
src/AElf.OS/BlockSync/Worker/BlockDownloadWorker.cs
9,165
C#
using ApplicationCore.Entities; using System.Linq; namespace ApplicationCore.Specifications { public class CategorySpecification : BaseSpecification<Category> { public CategorySpecification() :base(x => !x.ParentId.HasValue && x.CatalogCategories.Count > 0 && x.CatalogCategories.Any(c => c...
33.774194
137
0.614136
[ "MIT" ]
joaoGoncalves81/GrocerySales
src/Shared/ApplicationCore/Specifications/CategorySpecification.cs
1,049
C#
namespace DramaDice.Models; public class Die { public int Id { get; set; } public int Value { get; set; } public bool IsLegendary { get; set; } public DieStatus Status { get; set; } = DieStatus.New; public DieCategory Category { get; set; } = DieCategory.Live; } public enum DieStatus { New ...
16.791667
65
0.630273
[ "MIT" ]
JSpring3/drama-dice
DramaDice/Models/Die.cs
405
C#
using Stylophone.Common.Interfaces; using System.IO; using System.Threading.Tasks; using Windows.Storage; using Newtonsoft.Json; using Microsoft.Toolkit.Uwp.Helpers; using System; using Windows.Foundation.Collections; namespace Stylophone.Services { public sealed class ApplicationStorageService : IApplicationStor...
31.376471
110
0.59655
[ "MIT" ]
Difegue/Stylophone
Sources/Stylophone/Services/ApplicationStorageService.cs
2,669
C#
// <auto-generated> // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/ads/googleads/v6/resources/campaign.proto // </auto-generated> #pragma warning disable 1591, 0612, 3021 #region Designer generated code using pb = global::Google.Protobuf; using pbc = global::Google.Protobuf.Colle...
45.2645
1,975
0.66217
[ "Apache-2.0" ]
PierrickVoulet/google-ads-dotnet
src/V6/Types/Campaign.cs
239,585
C#
namespace System.IO.BACnet { public enum BacnetBvlcFunctions : byte { BVLC_RESULT = 0, BVLC_WRITE_BROADCAST_DISTRIBUTION_TABLE = 1, BVLC_READ_BROADCAST_DIST_TABLE = 2, BVLC_READ_BROADCAST_DIST_TABLE_ACK = 3, BVLC_FORWARDED_NPDU = 4, BVLC_REGISTER_FOREIGN_DEVICE = 5, BVLC_READ_FOREIGN_DEVICE_TABLE = 6, ...
29.105263
46
0.799277
[ "MIT" ]
vberkaltun/BACnet
Base/BacnetBvlcFunctions.cs
555
C#
using Apollo.AdminStore.WebForm.Classes; using Apollo.Core.Domain; using Apollo.Core.Domain.Shipping; using Apollo.Core.Domain.Tax; using Apollo.Core.Model; using Apollo.Core.Model.OverviewModel; using Apollo.Core.Services.Interfaces; using System; using System.Linq; using System.Web; using System.Web.UI; using System...
42.682857
218
0.592342
[ "MIT" ]
hancheester/apollo
Store Admin/Apollo.AdminStore.WebForm/Fulfillment/order_packing_info.aspx.cs
14,941
C#
using UnityEngine; using System.Collections; public class GameManager : MonoBehaviour { public static GameManager instance = null; //Awake is always called before any Start functions void Awake() { if (instance == null) { instance = this; } else if (instan...
23.961905
242
0.607711
[ "MIT" ]
codingwatching/SuperMarioGo
src/Assets/scripts/game/GameManager.cs
2,518
C#
using System; namespace DotNext { using Buffers; /// <summary> /// Represents various extension methods for type <see cref="string"/>. /// </summary> public static class StringExtensions { /// <summary> /// Returns alternative string if first string argument /// is <se...
45.535211
141
0.592638
[ "MIT" ]
kstanoev/dotNext
src/DotNext/StringExtensions.cs
3,233
C#
namespace Nancy.Hosting.Wcf.Tests { using Bootstrapper; using FakeItEasy; using Nancy.Helpers; using Nancy.Tests; using Nancy.Tests.xUnitExtensions; using System; using System.IO; using System.Linq; using System.Net; using System.ServiceModel; using System.Servi...
37.10728
148
0.530201
[ "MIT" ]
Adalyat/Nancy
src/Nancy.Hosting.Wcf.Tests/NancyWcfGenericServiceFixture.cs
9,685
C#
#region License /* Copyright © 2014-2018 European Support Limited 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 a...
30.255814
119
0.726364
[ "Apache-2.0" ]
DebasmitaGhosh/Ginger
Ginger/Ginger/Actions/_Common/ActUIElementLib/Locators/LocateValueEditPage.xaml.cs
1,302
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using NetWebScript.JsClr.Ast; using NetWebScript.JsClr.AstBuilder.Flow; using NetWebScript.JsClr.AstBuilder.Cil; namespace NetWebScript.JsClr.AstBuilder { internal sealed class InlineExpressionBuilder : IExpressionBuil...
33.009346
108
0.525198
[ "MIT" ]
jetelain/NetWebScript
NetWebScript/NetWebScript/JsClr/AstBuilder/InlineExpressionBuilder.cs
3,534
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. #if IS_SIGNING_SUPPORTED using System; using System.IO; using Moq; using NuGet.Common; using NuGet.Packaging.Signing; using NuGet.Test.Utility; using Xu...
41.201835
156
0.574928
[ "Apache-2.0" ]
KirillOsenkov/NuGet.Client
test/NuGet.Core.Tests/NuGet.Packaging.Test/SigningTests/SigningOptionsTests.cs
8,982
C#
using System; using System.Linq; namespace MatrixShufflingEXERCISE { class StartUp { static void Main(string[] args) { int[] rowCol = Console.ReadLine().Split().Select(int.Parse).ToArray(); string[,] matrix = new string[rowCol[0], rowCol[1]]; for (int row =...
35.089744
110
0.343807
[ "MIT" ]
Monna9505/CSharp-Advanced
MultidimensionalArrays/MultidimensionalArrays/MatrixShufflingEXERCISE/StartUp.cs
2,739
C#