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; using TupacAmaru.Yacep.Exceptions; using TupacAmaru.Yacep.Utils; namespace TupacAmaru.Yacep.Symbols { public sealed class LiteralValue { public LiteralValue(string literal, object value) { if (literal.ContainsSpace()) throw new CannotContainsSpacesExce...
26.681818
67
0.608177
[ "MIT" ]
tupac-amaru/YACEP
src/TupacAmaru.Yacep/Symbols/LiteralValue.cs
589
C#
using System.Runtime.CompilerServices; using System; using System.IO; using System.Text; [assembly: Xamarin.Forms.Dependency (typeof (SquadBuilder.SaveAndLoad))] namespace SquadBuilder { public class SaveAndLoad : ISaveAndLoad { public bool FileExists (string filename) { var documentsPath = Environment.GetFol...
53.8
97
0.633643
[ "MIT" ]
timrisi/AuroraSquadBuilder
iOS/SaveAndLoad.cs
5,382
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Device.Gpio; using System.Device.Spi; using Iot.Device.Mcp25xxx.Register; namespace Iot...
35.895735
117
0.536308
[ "MIT" ]
Raregine/iot
src/devices/Mcp25xxx/Mcp25xxx.cs
15,150
C#
// CodeContracts // // Copyright (c) Microsoft Corporation // // All rights reserved. // // MIT License // // 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 wit...
43.2
463
0.772222
[ "MIT" ]
Acidburn0zzz/CodeContracts
Microsoft.Research/Contracts/PresentationFramework/Sources/MS.Internal.AppModel.IEnumIDList.cs
2,160
C#
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; namespace VXDesign.Store.DevTools.Modules.SimpleNoteService.Server.Controllers { [Route("/")] public class HomeController : Controller { /// <summary> /// Loads the Web application /// </summary> /// <returns>...
29
78
0.595402
[ "MIT" ]
GUSAR1T0/VXDS-DEV-TOOLS
DevTools/Modules/SimpleNoteService/Server/Controllers/HomeController.cs
872
C#
using Bailiwick.Models; using Bailiwick.Models.Phrases; using System.Linq; namespace Bailiwick.Analysis.PhraseBuilders.Nouns.BuilderStates { internal class Adjective : BaseState { public override WordClassType GeneralWordClass { get { return WordClassType.Adjective; } } ...
27.186813
133
0.534762
[ "MIT" ]
JeffreyMFarley/Bailiwick
Bailiwick/Analysis/PhraseBuilders/Nouns/BuilderStates/Adjective.cs
2,476
C#
using Boardgame; using HarmonyLib; namespace PyrrhasUtils.Patches { [HarmonyPatch] public static class ContextPatch { public static GameContext Context; [HarmonyPatch(typeof(GameStartup), MethodType.Constructor)] public static void Postfix(ref GameContext ___gameContext) {...
22.117647
67
0.664894
[ "MIT" ]
PyrrhaDevs/DemeoMods
PyrrhasUtils/Patches/ContextPatch.cs
378
C#
/* * Copyright (C) Sportradar AG. See LICENSE for full license governing this code */ using System; using System.Globalization; using App.Metrics; using Microsoft.Extensions.Logging; using Dawn; using Microsoft.Extensions.Logging.Abstractions; using Sportradar.OddsFeed.SDK.API; using Sportradar.OddsFeed.SDK.API.EventA...
43.084211
186
0.646347
[ "Apache-2.0" ]
sportradar/UnifiedOddsSdkNetCore
src/Sportradar.OddsFeed.SDK.DemoProject/Example/CompleteInfo.cs
8,188
C#
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ /...
38.560606
153
0.6
[ "MIT" ]
GeertVL/msgraph-beta-sdk-dotnet
src/Microsoft.Graph/Generated/requests/CallAudioRoutingGroupsCollectionRequestBuilder.cs
2,545
C#
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Microsoft.AzureIntegrationMigration.Runner.Core { /// <summary> /// Defines an interface for a component that ...
23.888889
75
0.730233
[ "MIT" ]
345James/aimcore
src/Microsoft.AzureIntegrationMigration.Runner/Core/IStageVerifier.cs
430
C#
using System; using System.Collections.Generic; using Legacy.Core.Combat; using Legacy.Core.Entities; using Legacy.Core.PartyManagement; using Legacy.Utilities; namespace Legacy.Core.Spells.CharacterSpells.Warfare { public class CharacterWarfareFuriousBlow : CharacterSpell { public CharacterWarfareFuriousBlow() :...
28.184211
134
0.787115
[ "MIT" ]
Albeoris/MMXLegacy
Legacy.Core/Core/Spells/CharacterSpells/Warfare/CharacterWarfareFuriousBlow.cs
1,073
C#
// ---------------------------------------------------------------------------------- // // Copyright Microsoft Corporation // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://w...
52.730159
209
0.670981
[ "MIT" ]
3quanfeng/azure-powershell
src/Security/Security/Cmdlets/Locations/GetLocations.cs
3,262
C#
using System; namespace Account.Events { public class InvalidOperationAttempted { public InvalidOperationAttempted() { Time = DateTimeOffset.UtcNow; } public string Description { get; set;} public DateTimeOffset Time {get;set;} public override string ToString(...
22.833333
69
0.618005
[ "MIT" ]
TopSwagCode/marten-bank-sample
src/Models/Events/InvalidActionAttempted.cs
411
C#
using System.Web.Mvc; namespace vts.Web { public class FilterConfig { public static void RegisterGlobalFilters(GlobalFilterCollection filters) { filters.Add(new HandleErrorAttribute()); } } }
20.083333
80
0.639004
[ "MIT" ]
Georgekibet/VoteTalyingSystem
Web/vts.Web/App_Start/FilterConfig.cs
243
C#
using FubuMVC.Core.Assets; using FubuMVC.Core.Continuations; using FubuMVC.Core.UI; using FubuValidation; using HtmlTags; namespace FubuMVC.Validation.StoryTeller { public class InlineModel { [Required] public string Name { get; set; } [Email] public string Email { get; set; } } public cl...
24.02
97
0.680266
[ "Apache-2.0" ]
DovetailSoftware/fubuvalidation
src/FubuMVC.Validation.StoryTeller/InlineModel.cs
1,203
C#
// <auto-generated> // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/ads/googleads/v10/enums/feed_status.proto // </auto-generated> #pragma warning disable 1591, 0612, 3021 #region Designer generated code using pb = global::Google.Protobuf; using pbc = global::Google.Protobuf.Colle...
37.666667
279
0.69497
[ "Apache-2.0" ]
friedenberg/google-ads-dotnet
src/V10/Services/FeedStatus.g.cs
8,927
C#
// Copyright 2016-2021 Rik Essenius // // 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 ...
42.5625
128
0.659031
[ "Apache-2.0" ]
essenius/FitNesseFitSharpFixtureExplorer
FixtureExplorer/FixtureExplorer/TableTypeFixture.cs
3,407
C#
// Licensed to Elasticsearch B.V under one or more agreements. // Elasticsearch B.V licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. // // ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ // ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ // ██╔██╗...
30.555556
76
0.530909
[ "Apache-2.0" ]
SimonCropp/elasticsearch-net
src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/IndexDetails.g.cs
1,821
C#
namespace Nature { using Xunit; public class DoubleComparerTests { [Fact] public void Ctor() { var target = new DoubleComparer(); Assert.Equal(target.AbsoluteTolerance, 0.0); Assert.Equal(target.RelativeTolerance, 0.0); target = Doub...
35.448276
93
0.581712
[ "MIT" ]
AlexeyEvlampiev/Nature
tests/XUnitTest.Nature/DoubleComparerTests.cs
2,058
C#
#pragma warning disable 1591 // ------------------------------------------------------------------------------ // <autogenerated> // This code was generated by a tool. // Mono Runtime Version: 4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code ...
31.411696
143
0.73027
[ "MIT" ]
CrossGeeks/ClearableDatePickerSample
Droid/Resources/Resource.designer.cs
187,999
C#
using System.Collections.Generic; using System.Threading.Tasks; namespace Octokit { /// <summary> /// A client for GitHub's Issue Assignees API. /// </summary> /// <remarks> /// See the <a href="http://developer.github.com/v3/issues/assignees/">Issue Assignees API documentation</a> for more inform...
44.782609
141
0.619695
[ "MIT" ]
3shape/octokit.net
Octokit/Clients/AssigneesClient.cs
7,212
C#
/********************************************************************++ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ using System.Runtime.InteropServices; namespace Microsoft.PowerShell.Internal { internal class Accessib...
29.583333
114
0.494366
[ "BSD-2-Clause" ]
243083df/PSReadLine
PSReadLine/Accessibility.cs
710
C#
namespace Epic.OnlineServices.Achievements { public class GetUnlockedAchievementCountOptions { public int ApiVersion => 1; public ProductUserId UserId { get; set; } } }
17.7
48
0.762712
[ "MIT" ]
undancer/oni-data
Managed/firstpass/Epic/OnlineServices/Achievements/GetUnlockedAchievementCountOptions.cs
177
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Reactive.Concurrency; namespace ReactiveUI { /// <summary> /// Mac platform regi...
47.903226
109
0.700337
[ "MIT" ]
Nilox/ReactiveUI
src/ReactiveUI/Platforms/mac/PlatformRegistrations.cs
1,485
C#
using System; using System.IO; using System.Text; namespace _17File { class Program { static void Main(string[] args) { //File.Create(@"C:\Users\admin\source\repos\17File\1.txt"); //Console.WriteLine("创建成功"); //File.Delete(@"C:\Users\admin\source\repos\17Fil...
35.026316
114
0.564237
[ "Apache-2.0" ]
HbiZHI/.net_note
17File/Program.cs
1,383
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; [assembly: AssemblyTitle("CactbotEventSource")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("CactbotEventSource")] [as...
32.307692
73
0.739286
[ "Apache-2.0" ]
pyeonch/cactbot
plugin/CactbotEventSource/Properties/AssemblyInfo.cs
817
C#
// <auto-generated /> using System; using Etimo.Id.Data; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; namespace...
33.335135
76
0.459381
[ "MIT" ]
Etimo/etimo-id
src/Etimo.Id.Data/Migrations/20201126181445_AddUserIdToAuthorizationCode.Designer.cs
6,169
C#
// -------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // -------------------------------------------------------------------------- using System.Collections.Generic; using Microsoft.Azure.Manageme...
40.644444
109
0.515036
[ "MIT" ]
Azure/azure-api-management-devops-example
tests/ArmTemplates.Tests/Moqs/ApiClients/MockDiagnosticClient.cs
3,660
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.Diagnostics; namespace System.Windows.Input.Manipulations { /// <summary> /// Base cl...
33.653846
104
0.558286
[ "MIT" ]
56hide/wpf
src/Microsoft.DotNet.Wpf/src/System.Windows.Input.Manipulations/System/Windows/Input/Manipulations/InertiaParameters2D.cs
1,750
C#
using System.Text.Json.Serialization; using Horizon.Payment.Alipay.Domain; namespace Horizon.Payment.Alipay.Response { /// <summary> /// AlipayOpenBizCreateResponse. /// </summary> public class AlipayOpenBizCreateResponse : AlipayResponse { /// <summary> /// 1 /// </summary...
22.466667
61
0.534125
[ "Apache-2.0" ]
bluexray/Horizon.Sample
Horizon.Payment.Alipay/Response/AlipayOpenBizCreateResponse.cs
676
C#
/****************************************************************************** * Spine Runtimes License Agreement * Last updated January 1, 2020. Replaces all prior versions. * * Copyright (c) 2013-2020, Esoteric Software LLC * * Integration of the Spine Runtimes into software or otherwise creating * derivative...
37.974227
210
0.722818
[ "Unlicense" ]
Mispon/rap-way
Assets/Spine/Runtime/spine-unity/Components/Following/BoneFollower.cs
7,367
C#
using MonoGame.RemoteEffect; using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Net; using System.Net.Http; using System.Web; using System.Web.Http; namespace RemoteEffectRole.Controllers { public class EffectController : ApiController { ...
34.673759
119
0.520965
[ "MIT" ]
infinitespace-studios/InfinitespaceStudios.Pipeline
InfinitespaceStudios.PipelineService/PipelineRole/Controllers/EffectController.cs
4,891
C#
namespace BeUtl.Media; /// <summary> /// Defines a set of predefined colors. /// </summary> public sealed class Colors { /// <summary> /// Gets a color with an ARGB value of #fff0f8ff. /// </summary> public static Color AliceBlue => KnownColor.AliceBlue.ToColor(); /// <summary> /// Gets a col...
31.976157
90
0.62722
[ "MIT" ]
YiB-PC/BeUtl
src/BeUtl.Graphics/Media/Colors.cs
22,801
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web.Http; namespace diil.web { public static class WebApiConfig { public static void Register(HttpConfiguration config) { // Web API 配置和服务 // Web API 路由 config.MapHttpAttributeR...
22.32
62
0.560932
[ "MIT" ]
BJDIIL/DiiL
diil.web/App_Start/WebApiConfig.cs
574
C#
namespace PatchworkLauncher { partial class guiHome { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing">true if managed resources sho...
53.542857
157
0.752401
[ "MIT" ]
DankRank/Patchwork
PatchworkLauncher/GUI/Forms/guiHome.Designer.cs
14,994
C#
using System; using System.Globalization; using System.Xml; namespace Microsoft.SharePoint.Client.NetStandard.Runtime { internal class ExecutionScope : IDisposable { private ClientRuntimeContext m_context; private bool m_disposed; private string m_name; private long m_id; ...
28.925234
135
0.580291
[ "Apache-2.0" ]
win7user10/Microsoft.SharePoint.Client.NetStandard
src/Runtime/ExecutionScope.cs
3,097
C#
namespace RealEstateDB { partial class SelectedAgent { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary>...
44.626904
135
0.547347
[ "MIT" ]
manarabouhenidi/C-Sharp_SQL_RealEstateProgram
SelectedAgent.Designer.cs
17,585
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("CrmCommandLineHelpersCore")] [asse...
39.416667
85
0.727977
[ "MIT" ]
Softwire/dynamics-crm-ci-clis
CrmCommandLineHelpersCore/Properties/AssemblyInfo.cs
1,422
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using FastFoodPOS.Models; namespace FastFoodPOS.Forms.AdminForms { partial class FormActivityLog : U...
24.783784
68
0.533261
[ "MIT" ]
M4dj1/fastfood-pos-csharp
FastFoodPOS/Forms/AdminForms/FormActivityLog.cs
919
C#
// <auto-generated /> using System; using Aguacongas.IdentityServer.EntityFramework.Store; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; namespace Aguacongas.TheIdServe...
36.030189
125
0.464809
[ "Apache-2.0" ]
markjohnnah/TheIdServer
src/IdentityServer/Migrations/Aguacongas.TheIdServer.Migrations.SqlServer/Migrations/OperationalDb/OperationalDbContextModelSnapshot.cs
9,550
C#
using System; #if !SILVERLIGHT using System.Data.SqlTypes; #endif namespace BLToolkit.Mapping { [CLSCompliant(false)] public interface IMapDataSource { int Count { get; } Type GetFieldType (int index); string GetName (int index); int GetOrdinal (string name); objec...
33.617021
66
0.64557
[ "MIT" ]
igor-tkachev/bltoolkit
Source/Mapping/IMapDataSource.cs
3,160
C#
using Newtonsoft.Json.Linq; using RestSharp.Deserializers; using System; using System.Collections.Generic; using System.Text; namespace Coinbase.Models { public class OrderModel : ResourceModel { public String Code { get; set; } public OrderStatus Status { get; set; } public String N...
26.982143
56
0.615486
[ "MIT" ]
Haiping-Chen/Coinbase.NetSDK
Coinbase.NetSDK/Models/Merchant/OrderModel.cs
1,513
C#
using GSD.CommandLine; using GSD.Common; using GSD.Tests.Should; using GSD.UnitTests.Category; using GSD.UnitTests.Mock.Upgrader; using GSD.UnitTests.Upgrader; using NUnit.Framework; using System.Collections.Generic; namespace GSD.UnitTests.Windows.Upgrader { [TestFixture] public class UpgradeVerbTests : Upgr...
36.34188
136
0.517756
[ "MIT" ]
derrickstolee/VFSForG
GSD/GSD.UnitTests.Windows/Windows/Upgrader/UpgradeVerbTests.cs
8,506
C#
using System.Collections.Generic; using osu.Game.Replays; using osu.Game.Rulesets.Replays; using osu.Game.Rulesets.Touhou.Replays; using osu.Game.Rulesets.UI; using osuTK; namespace osu.Game.Rulesets.Touhou.UI { public class TouhouReplayRecorder : ReplayRecorder<TouhouAction> { private readonly Touhou...
35.666667
210
0.734813
[ "MIT" ]
edisonlee55/osu-touhou
osu.Game.Rulesets.Touhou/UI/TouhouReplayRecorder.cs
858
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Diagnostics; using System.Text; namespace System.Net.Mime { internal static class MailBnfHelper { // characters allowed in atoms internal static...
33.055769
150
0.423178
[ "MIT" ]
belav/runtime
src/libraries/Common/src/System/Net/Mail/MailBnfHelper.cs
17,189
C#
// Copyright (c) Six Labors and contributors. // Licensed under the Apache License, Version 2.0. using System; using System.Buffers; using System.Runtime.CompilerServices; using SixLabors.ImageSharp.Memory; using SixLabors.ImageSharp.PixelFormats; namespace SixLabors.ImageSharp.Processing.Processors.Quantization { ...
37.648649
119
0.612347
[ "Apache-2.0" ]
Sheyne/ImageSharp
src/ImageSharp/Processing/Processors/Quantization/QuantizedFrame{TPixel}.cs
2,788
C#
namespace GoReactive.Services.Orders { public enum DrinkSize { Small, Medium, Large, ExtraLarge } }
11.230769
36
0.534247
[ "MIT" ]
RLittlesII/demo
reactiveui/dotnet-conf/src/GoReactive/Services/Orders/DrinkSize.cs
146
C#
//*********************************************************// // Copyright (c) Microsoft. All rights reserved. // // Apache 2.0 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 ...
33.964286
165
0.609884
[ "Apache-2.0" ]
ezaruba/nodejstools
Nodejs/Tests/TestAdapterTests/MockTestExecutionRecorder.cs
1,849
C#
using System; namespace Abp.Extensions { /// <summary> /// Extension methods for <see cref="EventHandler"/>. /// </summary> public static class EventHandlerExtensions { /// <summary> /// Raises given event safely with given arguments. /// </summary> /// <param name="...
35.48
124
0.573281
[ "MIT" ]
kegumx/aspnetboilerplate
src/Abp/Extensions/EventHandlerExtensions.cs
1,774
C#
using System; using System.Collections.Generic; using System.Linq; namespace ArtificialNeuralNetwork.Genes { public class NeuralNetworkGene : IEquatable<NeuralNetworkGene> { public LayerGene InputGene; public IList<LayerGene> HiddenGenes; public LayerGene OutputGene; #region E...
34.97
120
0.558479
[ "MIT" ]
jobeland/NeuralNetwork
NeuralNetwork/NeuralNetwork/Genes/NeuralNetworkGene.cs
3,499
C#
using System; using NetOffice; namespace NetOffice.OutlookApi.Enums { /// <summary> /// SupportByVersion Outlook 10, 11, 12, 14, 15, 16 /// </summary> [SupportByVersionAttribute("Outlook", 10,11,12,14,15,16)] [EntityTypeAttribute(EntityType.IsEnum)] public enum OlOfficeDocItemsType { /// <summary> /// ...
28.030303
60
0.651892
[ "MIT" ]
brunobola/NetOffice
Source/Outlook/Enums/OlOfficeDocItemsType.cs
927
C#
#pragma checksum "F:\.net_core\DakaWeb\DakaWeb\Pages\FetchData.razor" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "6ee5118c277e05586c059ac3847f3c0a71c56d75" // <auto-generated/> #pragma warning disable 1591 namespace DakaWeb.Pages { #line hidden using System; using System.Collections.Generic; using...
28.426009
196
0.662407
[ "BSD-3-Clause" ]
SakuranaRanbom/XustAutoSignIn
DakaWeb/DakaWeb/obj/Debug/net5.0/Razor/Pages/FetchData.razor.g.cs
6,339
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #region Using directives using System; using System.Collections.Generic; using System.Text; using System.Threading; #endregion namespace UnregisterWaitNativeBug { ...
24.064103
145
0.524774
[ "MIT" ]
2m0nd/runtime
src/tests/baseservices/threading/threadpool/unregister/unregister03.cs
1,877
C#
using Content.Server.Electrocution; using Content.Shared.Chemistry.Reagent; namespace Content.Server.Chemistry.ReagentEffects; public sealed class Electrocute : ReagentEffect { [DataField("electrocuteTime")] public int ElectrocuteTime = 2; [DataField("electrocuteDamageScale")] public int ElectrocuteDamageSca...
33.481481
121
0.723451
[ "MIT" ]
14th-Batallion-Marine-Corps/14-Marine-Corps
Content.Server/Chemistry/ReagentEffects/Electrocute.cs
904
C#
namespace NugSQL.Test { public class User { public int id { get; set; } public string user_name { get; set; } public string profile { get; set; } public byte[] salt { get; set; } public byte[] password { get; set; } public short status { get; set; } } }
18.705882
45
0.534591
[ "BSD-2-Clause" ]
Yeganloo/NugSQL
NugSQL.Test/models/user.cs
318
C#
namespace Bluefish { using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.DependencyInjection; public class Startup { public Startup() { } public void Configure(IApplicationBuilder app, IHostingEnvironment env) ...
24.878788
124
0.534714
[ "MIT" ]
fatihtatoglu/bluefish
Bluefish/Startup.cs
823
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data.SqlClient; using System.Web.Configuration; using System.Data; namespace BusinessLayer { public class isitmaTipGetir { SqlConnection con = new SqlConnection(WebConfigurationManager.ConnectionStrings[...
28.958333
135
0.471583
[ "MIT" ]
fatihyildizhan/csharp-2010-older-projects
DoxaEmlak/BusinessLayer/IsitmaTip/isitmaTipGetir.cs
2,782
C#
using System; using System.Device.Location; using System.Collections.Generic; using com.calitha.goldparser; using System.Net; using System.Collections.Specialized; namespace Epi.Core.EnterInterpreter.Rules { /// <summary> /// Reduction to get the longitude. /// </summary> public partial cl...
27.44186
87
0.575424
[ "Apache-2.0" ]
Epi-Info/Epi-Info-Community-Edition
Epi.Core.EnterInterpreter/Rules/Functions/Rule_SystemLongitude.cs
1,182
C#
using Microsoft.EntityFrameworkCore.Migrations; namespace AspCoreCardGameEngine.Api.Migrations { public partial class Add__Game__Mode : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn<string>( name: "Mode", ...
25.913043
71
0.578859
[ "Apache-2.0" ]
francoishill/AspCoreCardGameEngine
Api/Migrations/20200131175238_Add__Game__Mode.cs
598
C#
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using System.Management.Automation.Runspaces; namespace System.Management.Automation { /// <summary> /// Serves as the arguments for events triggered by exceptions in the SetValue method of <see cref="PSObjectPropertyDescriptor"/> ...
46.313472
227
0.598143
[ "MIT" ]
Hwangjonggyun/PowerShell
src/System.Management.Automation/engine/MshObjectTypeDescriptor.cs
35,754
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.698413
173
0.620074
[ "MIT" ]
nataliap13/PT-Warcaby
Image recognition/Properties/Resources.Designer.cs
2,692
C#
using System; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.Azure.WebJobs; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Logging; using MediatR; using HelpMyStreet.Contracts.Shared; using HelpMyStreet.Contracts.GroupService.Request; using HelpMyStreet.Contracts.RequestServi...
43.474576
256
0.711891
[ "MIT" ]
factor-50-devops-bot/group-service
GroupService/GroupService.AzureFunction/GetNewRequestActions.cs
2,565
C#
namespace Couchbase.Core.Exceptions { public class RequestTimeoutException : CouchbaseException { } }
16.285714
61
0.736842
[ "Apache-2.0" ]
mfeerick/couchbase-net-client
src/Couchbase/Core/Exceptions/RequestTimeoutException.cs
114
C#
namespace Assets.HeroEditor4D.FantasyInventory.Scripts.Enums { public enum ItemMaterial { Unknown, Wood, Leather, Metal, Fruit, Meat, Liquid, Soup, Gold } }
17
62
0.482353
[ "MIT" ]
imaducklol/Flight-of-the-Gray-Hamsters-of-Yoinky-Sploinky
Assets/HeroEditor4D/FantasyInventory/Scripts/Enums/ItemMaterial.cs
257
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. #nullable disable using System.Diagnostics; using System.Globalization; namespace System.Windows.Forms.PropertyGr...
26.2125
114
0.533143
[ "MIT" ]
Amy-Li03/winforms
src/System.Windows.Forms/src/System/Windows/Forms/PropertyGridInternal/ArrayElementGridEntry.cs
2,099
C#
using System; class PrintASCII { public static void Main() { int startCode = 33; int endCode = 126; for (int currentCode = startCode; currentCode <= endCode; currentCode++) { Console.Write((char)currentCode); } } }
18.666667
80
0.553571
[ "MIT" ]
ndvalkov/TelerikAcademy2016
Homework/CSharp-Part-1/02. Data-Types-and-Variables/PrintAscii.cs
280
C#
using Microsoft.Win32; using Outlook2013TodoAddIn.Forms; using System; using System.Drawing; using System.Linq; using System.Windows.Forms; using Office = Microsoft.Office.Core; namespace Outlook2013TodoAddIn { /// <summary> /// Class for the add-in /// </summary> public partial class Thi...
44.717391
185
0.610112
[ "MIT" ]
gamosoft/Outlook2013CalendarAddIn
Outlook2013TodoAddIn/ThisAddIn.cs
8,230
C#
using System.Diagnostics.CodeAnalysis; using System.Runtime.InteropServices; using System.Security; namespace HandyControl.Tools.Interop { [StructLayout(LayoutKind.Sequential, Pack = 2)] [SuppressMessage("ReSharper", "InconsistentNaming")] internal struct BITMAPINFO { public int bmiHeader_biSi...
26.5
59
0.644305
[ "MIT" ]
6654cui/HandyControl
src/Shared/HandyControl_Shared/Tools/Interop/BITMAPINFO.cs
1,433
C#
namespace Generic_Box_of_Integer { public class Box<T> { private T storedValue; public Box(T value) { this.storedValue = value; } public override string ToString() { return $"{this.storedValue.GetType().FullName}: {this.storedValue}"; ...
18.666667
80
0.532738
[ "MIT" ]
BlueDress/School
C# OOP Advanced/Generics Exercises/Generic Box of Integer/Box.cs
338
C#
using System.Runtime.CompilerServices; using System.Runtime.InteropServices; [assembly: InternalsVisibleTo("ZoomNet.UnitTests")] [assembly: InternalsVisibleTo("ZoomNet.IntegrationTests")] [assembly: InternalsVisibleTo("DynamicProxyGenAssembly2")] // Setting ComVisible to false makes the types in this assembly not vis...
40.666667
75
0.80123
[ "MIT" ]
M-Zuber/ZoomNet
Source/ZoomNet/Properties/AssemblyInfo.cs
488
C#
using FluentValidation; using FluentValidation.Internal; using Microsoft.AspNetCore.Components.Forms; using System; using System.Linq; using System.Reflection; namespace Actionstep.API.WebClient.Validators { public static class EditContextFluentValidationExtensions { public static EditContext AddFluen...
37.918919
145
0.684248
[ "Unlicense" ]
actionstep/Actionstep.API.WebClient
Validators/EditContextFluentValidationExtensions.cs
2,808
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Movement : MonoBehaviour { [SerializeField] private float force; [SerializeField] private float gravity; private Rigidbody physics; void Awake() { physics = GetComponent<Rigidbody>(); } v...
20.64
70
0.651163
[ "BSD-3-Clause" ]
ProgrammingGeekBoi/Falling
Assets/Scripts/Movement.cs
518
C#
using System.Threading.Tasks; using GetAGame.Services; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; namespace GetAGame.Controllers { public class AddItemController : Controller { private readonly IitemsServices _itemsService; public AddItemController(IitemsService...
26.4
106
0.632576
[ "MIT" ]
Seifbarouni/Gaming-Store
Controllers/AddItemController.cs
792
C#
using Domain.ValueObjects; using System; namespace Domain.Roles { public class Role : IRole { public Guid Id { get; protected set; } public ShortName Name { get; protected set; } } }
19.181818
53
0.63981
[ "MIT" ]
jarman75/net.core
test.concepto/clean.components/src/Domain/Roles/Role.cs
211
C#
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; using Microsoft.Extensions.Logging; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace WebApplication3.Pages { public class PrivacyModel : PageModel { private readonly ILo...
20.56
57
0.677043
[ "MIT" ]
hanaminhtran/GoogleAPI
WebApplication3/Pages/Privacy.cshtml.cs
516
C#
using System; using System.Net.Http; namespace SevenDigital.Api.Wrapper.Http { public static class HttpMethodHelpers { public static HttpMethod Parse(string methodName) { switch (methodName.ToUpperInvariant()) { case "GET": return HttpMethod.Get; case "POST": return HttpMet...
23.694444
88
0.654162
[ "MIT" ]
AnthonySteele/SevenDigital.Api.Wrapper
src/SevenDigital.Api.Wrapper/Http/HttpMethodHelpers.cs
855
C#
//------------------------------------------------------------------------------ // <auto-generated> // Il codice è stato generato da uno strumento. // Versione runtime:4.0.30319.42000 // // Le modifiche apportate a questo file possono provocare un comportamento non corretto e andranno perse se // il c...
38.868217
173
0.55011
[ "MIT" ]
ASPDP/Tera-custom-cooldowns
TCC.Core/Properties/Icon_Status.Designer.cs
80,230
C#
#region License Information /* * This file is part of SimSharp which is licensed under the MIT license. * See the LICENSE file in the project root for more information. */ #endregion using System; using System.Collections.Generic; using System.Linq; using static SimSharp.Distributions; namespace SimSharp.Benchmar...
37.8375
188
0.612818
[ "MIT" ]
Irubataru/SimSharp
src/Benchmark/MachineShopBenchmark.cs
6,056
C#
// *** WARNING: this file was generated by the Pulumi SDK Generator. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; namespace Pulumi.Azur...
36.433333
121
0.767612
[ "Apache-2.0" ]
polivbr/pulumi-azure-native
sdk/dotnet/ProviderHub/V20201120/Outputs/ProviderRegistrationPropertiesResponseSubscriptionLifecycleNotificationSpecifications.cs
1,093
C#
using System; using System.Text; using System.IO; /// <summary> /// Write all primes in a range to file /// </summary> public class PrimesInRangeToFile { public static void Main() { Console.WriteLine("Enter the two numbers between which to find all prime numbers on separate lines"); Console.W...
20.985714
114
0.473111
[ "MIT" ]
BoykoNeov/SoftUni---Programming-fundamentals-May-2017
FilesAndExceptions/PrimesInRangeToFile/PrimesInRangeToFile.cs
1,471
C#
using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace Texxtoor.ViewModels.Editor { public class Command { public Command(string name, string text, string tooltip) { Name = name; ButtonText = text; ButtonTo...
37.343434
108
0.637003
[ "Apache-2.0" ]
joergkrause/texxtoor
Texxtoor/Solution/Texxtoor.ViewModels/Shared/Editor/ToolSetModel.cs
3,699
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("Cef...
37.459459
84
0.746753
[ "MIT" ]
BlazorPlus/CefLite
CefLiteFX/Properties/AssemblyInfo.cs
1,389
C#
using GenericServices.Configuration; using Xunit; using GenericServices.Internal.Decoders; using GenericServices.Internal.MappingCode; using Tests.Dtos; using Tests.EfClasses; using Tests.EfCode; using TestSupport.EfHelpers; using Xunit.Extensions.AssertExtensions; using System.Linq; namespace Tests.UnitTests.Generic...
32.931034
122
0.566754
[ "MIT" ]
ntwit/EfCore.GenericServices
Tests/UnitTests/GenericServicesInternal/TestKeyHandlers.cs
3,822
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> // ---------------------------------------...
56.882353
474
0.661537
[ "Apache-2.0" ]
JetBrains/space-dotnet-sdk
src/JetBrains.Space.Client/Generated/CustomFieldClient.generated.cs
16,439
C#
// Copyright 2020 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 w...
41.386207
183
0.611898
[ "Apache-2.0" ]
markdeaton/pro-mission-review-addin-graphics
MissionAgentReview/TimeSequencingViewshed.cs
6,003
C#
using System; using System.Runtime.InteropServices; using System.Runtime.InteropServices.ComTypes; namespace xbfdump { class Program { // Last tested against \Windows Kits\10\bin\10.0.19041.0\XamlCompiler\x64\genxbf.dll [DllImport("genxbf.dll", PreserveSig = true)] public static exter...
30.384615
119
0.598734
[ "Unlicense" ]
riverar/xbfdump
Program.cs
792
C#
using System.Drawing; using System.Windows.Forms; namespace Cellbot_Map_Tool { partial class VibotMapTool { /// <summary> /// 필수 디자이너 변수입니다. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// 사용 중인 모든 리소스를 정리합니다. ...
53.16318
157
0.636353
[ "Unlicense" ]
darkstar35/Vibot
Vibot Map Tool/VibotMapTool.Designer.cs
25,790
C#
using System; using System.Collections.Generic; using DecisionMaster.AlgorithmsLibrary.Interfaces; using DecisionMaster.AlgorithmsLibrary.Models; namespace DecisionMaster.AlgorithmsLibrary.Algorithms.ELECTRE { public class ELECTREDecisionProvider : IDecisionProvider { ELECTREDecisionConfiguration _con...
35.37193
153
0.457792
[ "MIT" ]
BSTU/decisionmaster
src/DecisionMaster.AlgorithmsLibrary/Algorithms/ELECTRE/ELECTREDecisionProvider.cs
10,083
C#
using System; using System.Diagnostics; using System.Threading.Tasks; using BenchmarkDotNet.Attributes; using Microsoft.AspNetCore.Hosting.Internal; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http.Features; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using NSubs...
34.956044
94
0.643508
[ "Apache-2.0" ]
Aaronontheweb/csharp-netcore
benchmarks/OpenTracing.Contrib.NetCore.Benchmarks/AspNetCore/RequestDiagnosticsBenchmark.cs
3,183
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace numl.Math.Functions { /// <summary> /// Softplus function /// </summary> public class Softplus : Function { /// <summary> /// Returns the mini...
29.577778
83
0.544703
[ "MIT" ]
sethjuarez/numl
Src/numl/Math/Functions/Softplus.cs
1,333
C#
using CommonTools.Lib11.DTOs; using LiteDB; using System; using System.Collections.Generic; using System.IO; using System.Threading; namespace CommonTools.Lib45.LiteDbTools { public abstract partial class SharedCollectionBase<T> where T : IDocumentDTO { private static TOut Retry2x<TOut>(T reco...
28.2
126
0.504334
[ "MIT" ]
peterson1/PermissionSetter
CommonTools.Lib45/LiteDbTools/SharedCollectionBase_Retry.cs
1,271
C#
// (C) 2012 Christian Schladetsch. See https://github.com/cschladetsch/Flow. using System; namespace Flow { /// <inheritdoc /> /// <summary> /// A Trigger is a <see cref="T:Flow.IGroup" /> that completes whenever /// a child completes. /// </summary> public interface ITrigger : IGroup ...
21.458333
76
0.578641
[ "MIT" ]
cschladetsch/Flow
ITrigger.cs
515
C#
/****************************************************************************** * The MIT License * Copyright (c) 2003 Novell Inc. 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 Soft...
35.924138
116
0.519677
[ "MIT" ]
AlliterativeAlice/Novell.Directory.Ldap.NETStandard
src/Novell.Directory.Ldap.NETStandard/Rfc2251/RfcBindRequest.cs
5,209
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Text; using System.Windows.Forms; namespace Nettiers.AdventureWorks.Windows.Forms { /// <summary> /// WorkOrderRouting typed datagridview /// </summary> [System.Component...
26.6
78
0.774436
[ "MIT" ]
aqua88hn/netTiers
Samples/AdventureWorks/Generated/Nettiers.AdventureWorks.Windows.Forms/UI/WorkOrderRoutingDataGridView.cs
534
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Collections.Generic; using System.ComponentModel.Composition.Primitives; using System.Diagnostics; usin...
32.627119
98
0.565455
[ "MIT" ]
ARhj/corefx
src/System.ComponentModel.Composition/src/System/ComponentModel/Composition/Hosting/ImportSourceImportDefinitionHelpers.cs
3,850
C#
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Security.Claims; using System.Threading.Tasks; using Microsoft.Azure.F...
32.944
191
0.539582
[ "MIT" ]
SeanFeldman/azure-functions-dotnet-worker
src/DotNetWorker.Grpc/Http/GrpcHttpRequestData.cs
4,120
C#
// Copyright(c) 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 // // THIS CODE IS PROVIDED ON AN ...
38.267857
101
0.688754
[ "Apache-2.0" ]
CMLL/python-language-server
src/Analysis/Ast/Impl/Modules/Definitions/IModuleResolution.cs
2,145
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. namespace Microsoft.VisualStudio.ProjectSystem.SpecialFileProviders { public class AssemblyResourcesSpecialFileProviderTests : AbstractFindByNameUnde...
46.111111
171
0.759036
[ "Apache-2.0" ]
MSLukeWest/project-system
tests/Microsoft.VisualStudio.ProjectSystem.Managed.UnitTests/ProjectSystem/SpecialFileProviders/AssemblyResourcesSpecialFileProviderTests.cs
815
C#
using GreetService; using Grpc.Core; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace grpcServerWinForm.Services { class GreeterService : Greeter.GreeterBase { public override Task<HelloReply> SayHello(HelloRequest request, S...
22.909091
98
0.656746
[ "MIT" ]
ggwhsd/NetCoreStudy
grpcServerWinForm/Services/GreeterService.cs
506
C#
// Copyright (c) MOSA Project. Licensed under the New BSD License. using Mosa.Compiler.Common; using Mosa.Compiler.Framework.IR; using Mosa.Compiler.Trace; using System; using System.Collections.Generic; using System.Diagnostics; namespace Mosa.Compiler.Framework.Analysis { /// <summary> /// /// </summary> publi...
23.612791
169
0.671246
[ "BSD-3-Clause" ]
uQr/MOSA-Project
Source/Mosa.Compiler.Framework/Analysis/SparseConditionalConstantPropagation.cs
20,309
C#