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 TextUml.Models { using System; public class DocumentRead : DocumentEdit { public int Id { get; set; } public bool Owned { get; set; } public bool Shared { get; set; } public bool Editable { get; set; } public DateTime? CreatedAt { get; set; } ...
19.368421
48
0.570652
[ "MIT" ]
marufsiddiqui/textuml-dotnet
source/TextUml/Models/DocumentRead.cs
370
C#
// <copyright file="TokenEntity.cs" company="Microsoft"> // Copyright (c) Microsoft. All rights reserved. // </copyright> namespace ListSearch.Models { using Microsoft.WindowsAzure.Storage.Table; using Newtonsoft.Json; /// <summary> /// Represents Token entity in storage. /// </summary> publi...
27.962963
88
0.603974
[ "MIT" ]
OfficeDev/microsoft-teams-apps-list-search
Source/Microsoft.Teams.Apps.ListSearch/Models/TokenEntity.cs
757
C#
using XSharp; using static XSharp.XSRegisters; namespace Cosmos.IL2CPU.X86.IL { [OpCode(ILOpCode.Code.Dup)] public class Dup : ILOp { public Dup(XSharp.Assembler.Assembler aAsmblr) : base(aAsmblr) { } public override void Execute(Il2cpuMethodInfo aMethod, ILOpC...
29.233333
162
0.576967
[ "BSD-3-Clause" ]
xccoreco/IL2CPU
source/Cosmos.IL2CPU/IL/Dup.cs
877
C#
namespace OrchardCore.Email.Workflows.ViewModels { public class EmailTaskViewModel { public string AuthorExpression { get; set; } public string SenderExpression { get; set; } public string ReplyToExpression { get; set; } public string CcExpression { get; set; } public...
23.464286
56
0.624049
[ "BSD-3-Clause" ]
CityofSantaMonica/OrchardCore
src/OrchardCore.Modules/OrchardCore.Email/Workflows/ViewModels/EmailTaskViewModel.cs
657
C#
// <auto-generated /> using System; using Core.Database; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; namespace Core.Mi...
33.99115
117
0.432179
[ "MIT" ]
IP-Projects/E-Shop_Prototype
E-Shop_Prototype/Core/Migrations/20200426215219_M2.Designer.cs
7,684
C#
using System; using CryptoApisLibrary.DataTypes; using CryptoApisLibrary.ResponseTypes.Blockchains; namespace CryptoApisSnippets.Samples.Blockchains { partial class BlockchainSnippets { public void CreateConfirmedTransactionBtc() { var url = "http://www.mocky.io/v2/5b0d4b5f3100006e009d55f5"; v...
37.692308
95
0.752041
[ "MIT" ]
Crypto-APIs/.NET-Library
CryptoApisSnippets/Samples/Blockchains/WebhookNotifications/CreateConfirmedTransactionBtc.cs
982
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Effekseer.swig; using Effekseer.Utl; namespace Effekseer.GUI { class GUIManagerCallback : swig.GUIManagerCallback { void HandleAction() { } public override void Resized(int x, int y) ...
25.562124
154
0.686919
[ "Apache-2.0", "BSD-3-Clause" ]
NumAniCloud/Effekseer
Dev/Editor/Effekseer/GUI/Manager.cs
25,511
C#
/* * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * ...
31.063291
89
0.605949
[ "Apache-2.0" ]
Darkfaker/tencentcloud-sdk-dotnet
TencentCloud/Iotcloud/V20180614/Models/MultiDevicesInfo.cs
2,664
C#
using Models.Contracts; using Services.Services; using Services.Services.Contracts; using System; using System.Collections.Generic; using System.Data.Entity; using System.Linq; using System.Web; using Tournaments.Contracts; using Tournaments.Models; namespace Tournaments.Services { public class SponsorService : I...
27.865546
97
0.547045
[ "MIT" ]
kalostoykov/Tournaments
Services/Services/SponsorService.cs
3,318
C#
namespace CSharpWebServer.Server.Controllers { using System; using CSharpWebServer.Server.Http; [AttributeUsage(AttributeTargets.Method)] public abstract class HttpMethodAttribute : Attribute { public HttpMethod HttpMethod { get; } protected HttpMethodAttribute(HttpMethod method) ...
24.6
57
0.699187
[ "MIT" ]
Berat-Dzhevdetov/CSharp-Web-Server
CSharpWebServer/CSharpWebServer.Server/Controllers/HttpMethodAttribute.cs
371
C#
using System.Threading; using System.Threading.Tasks; using CompanyName.MyMeetings.Modules.Meetings.Application.Configuration.Commands; using CompanyName.MyMeetings.Modules.Meetings.Domain.MeetingGroups; using MediatR; namespace CompanyName.MyMeetings.Modules.Meetings.Application.MeetingGroups.SetMeetingGroupExpirati...
40.074074
121
0.784658
[ "MIT" ]
Ahmetcanb/modular-monolith-with-ddd
src/Modules/Meetings/Application/MeetingGroups/SetMeetingGroupExpirationDate/SetMeetingGroupExpirationDateCommandHandler.cs
1,084
C#
// ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ // ┃ FILE: ValueConverters.cs // ┃ PROJECT: Utility.WPF // ┃ SOLUTION: Utility.NET // ┃ CREATED: 2015-12-25 @ 1:05 AM // ┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━...
31.295699
112
0.694039
[ "MIT" ]
jonathanruisi/Utility.NET
Utility.WPF/ValueConverters.cs
12,462
C#
using FallballConnectorDotNet.Models; using FallballConnectorDotNet.Models.Aps; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Logging; namespace FallballConnectorDotNet.Controllers { [Produces("application/json")] [Route("/connector/tenant")] ...
27.077519
102
0.486115
[ "Apache-2.0" ]
pkhodos/testapsconnector2
Controllers/TenantController.cs
3,493
C#
#region License /* * All content copyright Marko Lahma, unless otherwise indicated. 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/lic...
38.83871
182
0.700997
[ "Apache-2.0" ]
1508553303/quartznet
src/Quartz/SchedulerConfigException.cs
2,408
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("T1...
37.27027
84
0.741842
[ "MIT" ]
nmilushev/Programming-Fundamentals-Sept-2017
progFundHomeworkCondStatements/T12/Properties/AssemblyInfo.cs
1,382
C#
using System.Web.Mvc; namespace ScriptRepository.Controllers { public class RepoController : Controller { public ActionResult Index() { return View(); } } }
17.166667
44
0.587379
[ "MIT" ]
yimlu/script-repo
ScriptRepository/Controllers/RepoController.cs
208
C#
using System; namespace Zadanie2 { public abstract class MySingleton1<T> where T : class, new() { private static T _instance; public static T GetInstance() { if (_instance == null) _instance = new T(); return _instance; } } publi...
23.090909
64
0.562008
[ "MIT" ]
MaciejMilanski/DesignPatterns
Singleton/Singleton/Zadanie2.cs
1,018
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. using System.Collections.Generic; using Microsoft.Languages.Core.Text; using Microsoft.R.Core.Parser; namespace Microsoft.R.Editor.Validation.Errors { public cl...
36.2
91
0.745856
[ "MIT" ]
Bhaskers-Blu-Org2/RTVS
src/R/Editor/Impl/Validation/Errors/ValidationErrorCollection.cs
545
C#
using System; namespace DailyRoutine { public class WeatherForecast { public DateTime Date { get; set; } public int TemperatureC { get; set; } public int TemperatureF => 32 + (int)(TemperatureC / 0.5556); public string Summary { get; set; } } }
18.3125
69
0.604096
[ "MIT" ]
bsogulcan/DailyRoutine
aspnet-core/DailyRoutine/WeatherForecast.cs
293
C#
// This file is used by Code Analysis to maintain SuppressMessage // attributes that are applied to this project. // Project-level suppressions either have no target or are given // a specific target and scoped to a namespace, type, member, etc. using System.Diagnostics.CodeAnalysis; [assembly: SuppressMessage("Style...
57.842105
99
0.66424
[ "MIT" ]
mxashlynn/CuteSV
CuteSVTests/GlobalSuppressions.cs
1,099
C#
using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Threading.Tasks; using System.Text.Json; using Kanka.NET.models; namespace Kanka.NET.Tests { [TestClass] public class SessionTests { private string _token = "", _response = ""; private KankaAPI _client; [TestInitializ...
27.217391
84
0.585463
[ "MIT" ]
DocSchlock/Kanka.NET
Kanka.NET.Tests/SessionTests.cs
1,252
C#
using Avalonia.ReactiveUI; using LapisItemEditor.ViewModels; using Avalonia.Markup.Xaml; using ReactiveUI; using LapisItemEditor.ViewModels.Main; namespace LapisItemEditor.Views { public class MainView : ReactiveUserControl<MainViewModel> { public MainView() { this.WhenActivated(dis...
23.411765
62
0.68593
[ "MIT" ]
MajestyOTBR/LapisItemEditor
LapisItemEditor/Views/Main/MainView.axaml.cs
398
C#
using System.Collections.Generic; namespace Fizz.UI { using Extentions; public interface IFizzHypercasualInputDataProvider { List<string> GetAllTags (); List<string> GetAllPhrases (string tag); List<string> GetAllStickers (string tag); FizzHypercasualPhraseDataItem GetPhr...
26.5
62
0.682676
[ "MIT" ]
FizzCorp/Hyper-Casual-Chat
Assets/FizzUI/Scripts/Extentions/Data/IFizzHypercasualInputDataProvider.cs
585
C#
namespace Application.Providers { public interface IConfigurationProvider { public string GetConfiguration(string key); } }
18.125
51
0.710345
[ "MIT" ]
TiagosCz/DotNepWebAppTemplate
src/WebApi/Application/Providers/IConfigurationProvider.cs
147
C#
namespace Microsoft.AspNet.OData.Routing { using Microsoft.AspNet.OData.Extensions; using Microsoft.AspNet.OData.Routing.Conventions; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Abstractions; using Microsoft.AspNetCore.Mvc.ApplicationModels; ...
40.782313
135
0.5995
[ "MIT" ]
Microsoft/aspnet-api-versioning
src/Microsoft.AspNetCore.OData.Versioning/AspNet.OData/Routing/VersionedMetadataRoutingConvention.cs
5,997
C#
using System; using System.Threading; using System.Threading.Tasks; using Elsa.Models; using Elsa.Services.Models; using NodaTime; namespace Elsa.Services.Workflows { public class WorkflowFactory : IWorkflowFactory { private readonly IClock _clock; private readonly IIdGenerator _idGenerator; ...
34.533333
97
0.621622
[ "MIT" ]
Blazi-Commerce/elsa-core
src/core/Elsa.Core/Services/Workflows/WorkflowFactory.cs
1,554
C#
using JetBrains.Annotations; namespace ITGlobal.CommandLine.Parsing { /// <summary> /// Extension method for <see cref="CliCommand"/> /// </summary> [PublicAPI] public static class CliCommandExtensions { /// <summary> /// Add a command line named string option //...
30.969072
91
0.546272
[ "MIT" ]
ITGlobal/CLI
src/CLI.Parser/CliCommandExtensions.cs
3,004
C#
using System; using System.Collections.Generic; using System.Text; namespace DCore.Entities { public class AbilityResult { public int Damage { get; set; } public int Healing { get; set; } //...effects } interface IAbility { AbilityResult CastToDamage(); } ...
20.66
60
0.508228
[ "Apache-2.0" ]
Dewyer/D-DJustice
D-DCore/D-DCore/Entities/Abilities.cs
1,035
C#
/* * Copyright(c) 2021 Samsung Electronics Co., Ltd. * * 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...
69.215517
174
0.750405
[ "Apache-2.0", "MIT" ]
AchoWang/TizenFX
src/Tizen.NUI/src/internal/Interop/Interop.Rectangle.cs
8,031
C#
//****************************************** // Copyright (C) 2014-2015 Charles Nurse * // * // Licensed under MIT License * // (see included LICENSE) * // * // ***************************************** nam...
25.117647
45
0.316159
[ "MIT" ]
cnurse/FamilyTreeProject.Dnn
src/FamilyTreeProject.Dnn/Common/OwnerType.cs
429
C#
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. using Microsoft.Azure.WebJobs.Script.Grpc.Messages; using Microsoft.Azure.WebJobs.Script.Workers.Rpc; using Microsoft.Extensions.DependencyInjection; namespace Micros...
37.666667
95
0.742099
[ "Apache-2.0", "MIT" ]
ConnectionMaster/azure-functions-host
src/WebJobs.Script.Grpc/GrpcServiceCollectionsExtensions.cs
793
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.Linq; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.CSha...
41.372549
181
0.645836
[ "MIT" ]
333fred/roslyn
src/Compilers/CSharp/Test/IOperation/IOperation/IOperationTests_IFieldReferenceExpression.cs
29,542
C#
using System.Diagnostics; using System.Linq; using System.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; namespace Phase.Translator.Haxe { public class SwitchBlock : CommentedNodeEmitBlock<SwitchStatementSyntax> { protected over...
32.315068
107
0.441289
[ "MIT" ]
CoderLine/Phase
Phase.Translator/Haxe/Statements/SwitchBlock.cs
2,359
C#
using FreeSql.Internal; using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Text; using System.Threading.Tasks; namespace FreeSql.Sqlite.Curd { class SqliteInsert<T1> : Internal.CommonProvider.InsertProvider<T1> where T1 : class { public SqliteInsert(IFr...
40.865385
201
0.611294
[ "MIT" ]
1051324354/FreeSql
Providers/FreeSql.Provider.Sqlite/Curd/SqliteInsert.cs
4,252
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using FairyGUI.Utils; namespace FairyGUI { public class AsyncCreationHelper { public static void CreateObject(PackageItem item, UIPackage.CreateObjectCallback callback) { Timers.inst.StartCoroutine(_CreateObject(item, c...
25.633508
94
0.625408
[ "MIT" ]
CCGame119/FairyGUI-unity-3.0.0
Examples.Unity5/Assets/Plugins/FairyGUI/Scripts/UI/AsyncCreationHelper.cs
5,020
C#
using RapidCMS.Core.Abstractions.Mediators; using RapidCMS.Core.Enums; using RapidCMS.Core.Models.EventArgs.Mediators; using Vaultr.Client.Core.Abstractions; namespace Vaultr.Client.Core.Providers { internal class DangerModeProvider : IDangerModeProvider { private readonly IMediator _mediator; ...
22.456522
59
0.528558
[ "MIT" ]
ThomasBleijendaal/Vaultr
Vaultr/Vaultr.Client/Core/Providers/DangerModeProvider.cs
1,035
C#
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. using Microsoft.Owin.Host.SystemWeb; using Owin; namespace System.Web.Routing { /// <summary> /// Provides extension methods for registering OWIN applications as System.Web rou...
55.081481
279
0.641541
[ "Apache-2.0" ]
15901213541/-OAuth2.0
src/Microsoft.Owin.Host.SystemWeb/RouteCollectionExtensions.cs
14,874
C#
// Sourced from https://www.codeproject.com/Articles/159352/FolderBrowserDialogEx-A-C-customization-of-FolderB // Licenced under CPOL // // // FolderBrowserDialogEx.cs // // A replacement for the builtin System.Windows.Forms.FolderBrowserDialog class. // This one includes an edit box, and also displays the full path i...
39.317029
309
0.565636
[ "MIT" ]
Crazymine-hub/TileIconifier
TileIconifier/Controls/CustomFolderBrowserDialog/FolderBrowserDialogEx.cs
21,705
C#
using System; using System.Diagnostics; using System.Fabric; using System.Threading; using System.Threading.Tasks; using Microsoft.ServiceFabric.Services.Runtime; namespace FileUpload.FileAPI { internal static class Program { /// <summary> /// This is the entry point of the service host proces...
34.125
116
0.60293
[ "MIT" ]
marceloazuma/FileUpload
File/Program.cs
1,367
C#
// <auto-generated> // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. // </auto-generated> namespace FinnovationLabs.OpenBanking.Library.BankApiModels.UkObRw.V3p1p2.Pisp.Models { using Microsoft.Rest; using Newton...
47.929293
686
0.653741
[ "MIT" ]
finlabsuk/open-banking-connector
src/OpenBanking.Library.BankApiModels/UkObRw/V3p1p2/Pisp/Models/OBWriteDomestic2DataInitiation.cs
9,490
C#
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; using Microsoft.Extensions.Logging; namespace MyAlbum.Pages { [ResponseCache(Duration = 0, Location = ResponseCacheLo...
25.25
88
0.680693
[ "MIT" ]
NhatTanVu/myalbum
src/WebSPA.Identity/Pages/Error.cshtml.cs
808
C#
#if UNITY_2020_1_OR_NEWER using System.Collections.Generic; using UnityEngine; using Unity.MLAgents.Sensors; namespace Unity.MLAgents.Extensions.Sensors { public class ArticulationBodyJointExtractor : IJointExtractor { ArticulationBody m_Body; public ArticulationBodyJointExtractor(Articulatio...
34.843537
106
0.490824
[ "Apache-2.0" ]
CYBER-CROP/ml-agents
com.unity.ml-agents.extensions/Runtime/Sensors/ArticulationBodyJointExtractor.cs
5,122
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("2....
37.810811
84
0.742673
[ "MIT" ]
lubangelova/Csharp-Advanced
Homework/02. Multidimensional Arrays/2.Maximal sum/Properties/AssemblyInfo.cs
1,402
C#
#pragma checksum "C:\Users\qzwse\Desktop\YourSpaceMDB_4.2_Optimization\YourSpace\Areas\Identity\Pages\Account\Manage\Index.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "70cf4619df2b0786bc44d6b23839605bf306eabc" // <auto-generated/> #pragma warning disable 1591 [assembly: global::Microsoft.AspNetCore.Razor.Hosting.R...
75.814136
350
0.72715
[ "MIT" ]
Invectys/Sites
YourSpaceMDB_4.2_Optimization/YourSpace/obj/Debug/netcoreapp3.1/Razor/Areas/Identity/Pages/Account/Manage/Index.cshtml.g.cs
28,961
C#
using StackExchange.Redis.Branch.Entity; using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Threading.Tasks; namespace StackExchange.Redis.Branch.IntegrationTest.Fakes { [RedisQueryable] public class StockEntity : RedisEntity ...
32.104972
132
0.593702
[ "MIT" ]
dogabariscakmak/StackExchange.Redis.Branch
src/tests/StackExchange.Redis.Branch.IntegrationTest/Fakes/StockEntity.cs
5,813
C#
namespace MassTransit { using System.Threading.Tasks; public interface IMessageBuffer { Task Add<T>(IMessageEvent<T> messageEvent) where T : class; } }
17.272727
50
0.626316
[ "ECL-2.0", "Apache-2.0" ]
AOrlov/MassTransit
src/MassTransit.Futures/IMessageBuffer.cs
192
C#
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="MementoServiceFacts.cs" company="WildGums"> // Copyright (c) 2008 - 2016 WildGums. All rights reserved. // </copyright> // ------------------------------------------------------...
30.802603
122
0.481127
[ "MIT" ]
WildGums/Orc.Memento
src/Orc.Memento.Tests/MementoServiceFacts.cs
14,202
C#
using System.Threading.Tasks; using RetroClash.Extensions; using RetroClash.Logic; namespace RetroClash.Protocol.Messages.Server { public class AllianceCreateFailedMessage : Message { public AllianceCreateFailedMessage(Device device) : base(device) { Id = 24332; } ...
22.625
72
0.598527
[ "BSD-3-Clause" ]
HiimEiffel/RetroClashv0.6
RetroClash/Protocol/Messages/Server/AllianceCreateFailedMessage.cs
545
C#
using System; using System.Linq; using System.IO; using System.Text; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Runtime.Serialization; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using PureCloudPlatform.Client.V2.Client; namespace PureClo...
31.414201
289
0.469392
[ "MIT" ]
seowleng/platform-client-sdk-dotnet
build/src/PureCloudPlatform.Client.V2/Model/ConsumingResourcesEntityListing.cs
10,618
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable namespace Azure.Batch.Models { /// <summary> The CertificateVisibility. </summary> public enum CertificateVisibility { /// <summary> The Certificate should be vis...
39.714286
245
0.707434
[ "MIT" ]
Petermarcu/azure-sdk-for-net
sdk/batch/Microsoft.Azure.Batch/Azure.Batch/src/Generated/Models/CertificateVisibility.cs
834
C#
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Text; using System.Threading.Tasks; namespace SharpNet { class SharpRoomDetails { #region Variables private string roomName; private short maxConnection; private shor...
30.319444
90
0.581768
[ "Apache-2.0" ]
MrOkiDoki/SharpNetworking
SharpNet/Room/SharpRoomDetails.cs
2,185
C#
using System; namespace Codenesium.DataConversionExtensions { public static class ShortExtensions { public static short ToShort(this short obj) { return obj; } public static long ToNullableShort(this object obj) { if (obj == null) { return 0; } else { return ToShort(obj.ToString...
14.112903
64
0.590857
[ "MIT" ]
codenesium/DataConversionExtensions
DataConversionExtensions/ShortExtensions.cs
877
C#
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. namespace NotificationService.Contracts.Models { /// <summary> /// ValidationResult. /// </summary> public class ValidationResult { /// <summary> /// Gets or sets a value indicating whether this <see cref="V...
26.321429
98
0.535957
[ "MIT" ]
QPC-database/notification-provider
NotificationService/NotificationService.Contracts/Models/ValidationResult.cs
739
C#
using System.Collections.Generic; using System.Threading.Tasks; namespace SFA.DAS.SharedOuterApi.Interfaces { public interface IGetAllApiClient<T> : IGetApiClient<T> { Task<IEnumerable<TResponse>> GetAll<TResponse>(IGetAllApiRequest request); } }
26.8
82
0.753731
[ "MIT" ]
SkillsFundingAgency/das-apim-endpoints
src/SFA.DAS.SharedOuterApi/Interfaces/IGetAllApiClient.cs
270
C#
using System; namespace Skender.Stock.Indicators { [Serializable] public class RocResult : ResultBase { public double? Roc { get; set; } public double? RocSma { get; set; } } [Serializable] public class RocWbResult : ResultBase { public double? Roc { get; set; } ...
22.047619
46
0.587473
[ "Apache-2.0" ]
BlankaKorvo/Stock.Indicators
src/m-r/Roc/Roc.Models.cs
463
C#
using System; using NetOffice; namespace NetOffice.WordApi.Enums { /// <summary> /// SupportByVersion Word 9, 10, 11, 12, 14, 15, 16 /// </summary> [SupportByVersionAttribute("Word", 9,10,11,12,14,15,16)] [EntityTypeAttribute(EntityType.IsEnum)] public enum WdHelpTypeHID { /// <summary> /// SupportByVe...
25.473684
59
0.652893
[ "MIT" ]
brunobola/NetOffice
Source/Word/Enums/WdHelpTypeHID.cs
486
C#
/* * Copyright 2008-2013 Mohawk College of Applied Arts and Technology * * 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 * * Unl...
28.734375
114
0.635672
[ "Apache-2.0" ]
avjabalpur/ccd-generator
gpmr/gpmrw/EventTraceListener.cs
1,841
C#
using System; using System.Collections.Generic; using System.IO; using System.Text; using System.Threading.Tasks; using System.Reflection; using IronPython.Compiler; using IronPython.Hosting; using Microsoft.Scripting; using Microsoft.Scripting.Hosting; using Microsoft.Scripting.Runtime; using Microsoft.Scripting.Hos...
28.156627
118
0.59264
[ "MIT" ]
JeffM2501/BestMUD
Scripting/ScriptManager.cs
2,339
C#
using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Threading.Tasks; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using Npgsql; namespace cfNetDemo.lib { public class persist { public static NpgsqlConnection client; //Postgre client public...
34.866667
162
0.534178
[ "MIT" ]
jonarranzATscl/SCL_SMBSummit19_HACKATON
cfNetDemo-SCL/lib/persist.cs
4,186
C#
using System.ComponentModel; using System.Diagnostics; using System.ServiceModel; namespace Esha.Genesis.Services.Client.Internal { [DebuggerStepThrough] [EditorBrowsable(EditorBrowsableState.Advanced)] [MessageContract(IsWrapped = false)] public class NutrientListResponse1 { [MessageBodyM...
30.047619
127
0.74168
[ "MIT" ]
esha/freyr
src/Esha.Genesis.Services.Client/Internal/NutrientListResponse1.cs
633
C#
// ***************************************************************************** // BSD 3-Clause License (https://github.com/ComponentFactory/Krypton/blob/master/LICENSE) // © Component Factory Pty Ltd, 2006-2019, All rights reserved. // The software and associated documentation supplied hereunder are the // propri...
37.407143
169
0.557476
[ "BSD-3-Clause" ]
Smurf-IV/Krypton-Toolkit-Suite-NET-Core
Source/Krypton Components/ComponentFactory.Krypton.Toolkit/Controls Toolkit/KryptonDataGridViewTextBoxColumn.cs
10,477
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Diagnostics; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using Newtonsoft.Json; using ReaLTaiizor.Child.Crown; using ReaLTaiizor.Forms; ...
34.363309
214
0.437611
[ "MIT" ]
ReserveBlockIO/ReserveBlockWindowsWallet
ReserveBlockWinWallet/WalletForm.cs
38,214
C#
//----------------------------------------------------------------------- // <copyright file="CloudBlobContainer.Common.cs" company="Microsoft"> // Copyright 2012 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance ...
47.302905
173
0.619649
[ "Apache-2.0" ]
markcowl/azure-sdk-for-net
microsoft-azure-api/Services/Storage/Lib/Common/Blob/CloudBlobContainer.Common.cs
11,162
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("Ap...
38.405405
84
0.749472
[ "MIT" ]
mdyakov/HackBulgaria
02.WeekTwo/MethodsPartTwo/AppointmentsIntersection/Properties/AssemblyInfo.cs
1,424
C#
using UnityEngine; public class A : MonoBehaviour { [SerializeField] On{caret} [SerializeField] public int value; }
14
38
0.714286
[ "Apache-2.0" ]
20chan/resharper-unity
resharper/resharper-unity/test/data/CSharp/CodeCompletion/List/NoCompletionFollowingSerializeFieldAttribute03.cs
126
C#
using AkkoCore.Services.Database.Enums; using DSharpPlus.CommandsNext; using DSharpPlus.CommandsNext.Converters; using DSharpPlus.Entities; using System; using System.Linq; using System.Threading.Tasks; namespace AkkoCore.Commands.ArgumentConverters; internal sealed class GuildLogConverter : IArgumentConverter<GuildL...
35.666667
145
0.766355
[ "Apache-2.0" ]
Akko-Bot/AkkoBot
AkkoCore/Commands/ArgumentConverters/GuildLogConverter.cs
749
C#
using System; class T { int x; public int this[int a, T b] { get { return a+x; } set { x=b.x=value; } } public T(int x) { this.x = x; } public void print() { Console.WriteLine("{0}", x); } static public void Main() { T a = new T(1), b = new T(10); a.print(); b.print(); Console.WriteLine("{0}", a[2,b]); ...
20.636364
53
0.522026
[ "MIT" ]
pmache/singularityrdk
SOURCE/base/Windows/csic/test/indexer.cs
454
C#
using System; using Newtonsoft.Json; namespace AL.Core.Json.Converters { /// <summary> /// Provides conversion logic specifically for Player.AFK /// </summary> /// <seealso cref="Newtonsoft.Json.JsonConverter{T}" /> public class AfkConverter : JsonConverter<bool> { public override ...
30.714286
99
0.617442
[ "MIT" ]
Sichii/ALClientCS
AL.Core/Json/Converters/AfkConverter.cs
862
C#
using STS.Domain.Entities; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; namespace STS.Infrastructure.Persistence.Configurations { public class SupplierConfiguration : IEntityTypeConfiguration<Supplier> { public void Configure(EntityTypeBuilder<Supplier> b...
30.692308
76
0.634085
[ "MIT" ]
mrgrayhat/CleanMicroserviceArchitecture
src/MicroServices/IdentityServer/Infrastructure/Persistence/Configurations/SupplierConfiguration.cs
1,199
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.Collections.Immutable; using System.Linq; using System.Threading; using System.Threading...
38.010526
134
0.669067
[ "MIT" ]
AlexanderSemenyak/roslyn
src/Analyzers/Core/CodeFixes/AddObsoleteAttribute/AbstractAddObsoleteAttributeCodeFixProvider.cs
3,613
C#
namespace NjamiNjam { partial class FrmKreirajRacun { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> ///...
48.427536
170
0.613347
[ "MIT" ]
mmacinkov/Restaurant
NjamiNjam/NjamiNjam/NjamiNjam/FrmKreirajRacun.Designer.cs
6,688
C#
using System; using System.Threading.Tasks; using Orleans; using Orleans.Indexing; namespace UnitTests.GrainInterfaces { [Serializable] public class Player5PropertiesNonFaultTolerantLazy : PlayerProperties { [Index(typeof(ActiveHashIndexSingleBucket<string, IPlayer5GrainNonFaultTolerantLazy>)/*, Is...
32.818182
136
0.750693
[ "MIT" ]
OrleansContrib/Orleans.Indexing-1.5
test/TestGrainInterfaces/IPlayer5rainNonFaultTolerantLazy.cs
722
C#
using System; using System.Collections.Generic; using System.Text; using System.Threading; using System.Threading.Tasks; using Syncfusion.SfChart.XForms; namespace Sensus.Probes.Movement { public abstract class MagnetometerProbe : ListeningProbe { public override string DisplayName { ...
25.825758
138
0.595189
[ "Apache-2.0" ]
TeachmanLab/sensus
Sensus.Shared/Probes/Movement/MagnetometerProbe.cs
3,411
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; namespace DapperDino.Areas.HappyToHelp.Controllers { [Route("/HappyToHelp/Ticket")] public class TicketController : BaseController { [Route("")] public IActionRe...
21.5
50
0.658915
[ "MIT" ]
DapperCoding/DapperDino-Website
DapperDino.Web/Areas/HappyToHelp/Controllers/TicketController.cs
389
C#
// This file is used by Code Analysis to maintain SuppressMessage // attributes that are applied to this project. // Project-level suppressions either have no target or are given // a specific target and scoped to a namespace, type, member, etc. using System.Diagnostics.CodeAnalysis; [assembly: SuppressMessage("Desi...
49.666667
158
0.756152
[ "Apache-2.0" ]
TheSharpFactory/samples
sources/Applications/Cross-Platform/Linux/iOS.Blazor/GlobalSuppressions.cs
449
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....
37.5
128
0.586667
[ "MIT" ]
ajohnson96/2019-06-c-sharp-labs
labs/lab_48_business_search/Territory.cs
1,200
C#
using System; using System.Text; using Elastic.Installer.Domain.Configuration.Service; using Elastic.Installer.Domain.Configuration.Wix; using Elastic.Installer.Domain.Model.Base; using Elastic.Installer.Domain.Model.Base.Service; using Elastic.Installer.Domain.Model.Elasticsearch.Locations; using Elastic.Installer.Do...
37.864662
144
0.778197
[ "Apache-2.0" ]
elastic/windows-installers
src/Installer/Elastic.Installer.Domain/Model/Elasticsearch/Notice/NoticeModel.cs
5,038
C#
using System; using System.Threading; using System.Threading.Tasks; using AutoMapper; using MediatR; using Microsoft.Extensions.Logging; using Ordering.Application.Contracts.Infrustructure; using Ordering.Application.Contracts.Persistence; using Ordering.Application.Models; using Ordering.Domain.Entities; namespace Or...
35.696429
167
0.648824
[ "MIT" ]
orizvida/AspnetMicroservices
src/Services/Ordering/Ordering.Application/Features/Orders/Commands/ChecoutOrder/CheckoutOrderCommandHandler.cs
1,999
C#
/* * UltraCart Rest API V2 * * UltraCart REST API Version 2 * * OpenAPI spec version: 2.0.0 * Contact: support@ultracart.com * Generated by: https://github.com/swagger-api/swagger-codegen.git */ using System; using System.Linq; using System.IO; using System.Text; using System.Text.RegularExpressions; using Sy...
38
254
0.564976
[ "Apache-2.0" ]
UltraCart/rest_api_v2_sdk_csharp
src/com.ultracart.admin.v2/Model/EmailSegmentCustomersResponse.cs
7,372
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("Gr...
39.189189
84
0.748966
[ "BSD-2-Clause" ]
ragnard/Graphite.NET
Graphite/Properties/AssemblyInfo.cs
1,455
C#
// $ANTLR 3.3.0.7239 C:\\Users\\sebros\\My Projects\\NCalc\\Grammar\\NCalc.g 2011-08-08 11:08:01 // The variable 'variable' is assigned but its value is never used. #pragma warning disable 219 // Unreachable code detected. #pragma warning disable 162 using System.Text; using System.Globalization; using Sys...
32.434963
415
0.674654
[ "MIT" ]
MichaelAguilar/NCalc
Evaluant.Calculator/NCalcParser.cs
101,489
C#
// // TestResult.cs // // Author: // Gabor Nemeth (gabor.nemeth.dev@gmail.hu) // // Copyright (C) 2015, Gabor Nemeth // using System; namespace NUnit.XForms { public enum TestResult { Success, Fail, Ignored } /// <summary> /// Result of a test /// </summ...
16.258065
47
0.539683
[ "MIT" ]
gabornemeth/NUnit.XForms
NUnit.XForms/TestResult.cs
506
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class NestController : MonoBehaviour { [SerializeField] private GameObject[] nest = null; private int nestIndex = 0; [SerializeField] private PlayerController playerController = null; [Serializ...
24.581395
54
0.588458
[ "MIT" ]
bryanlincoln/gjams-2019-quack
Assets/Scripts/NestController.cs
1,059
C#
using System; using BLToolkit.Mapping; public abstract class TestObject { public abstract int ID { get; set; } public abstract string Name { get; set; } [Nullable] public abstract DateTime Date { get; set; } public static ObjectMapper ObjectMapper { get { return Map.GetObjectMapper(type...
20.411765
58
0.677233
[ "MIT" ]
igor-tkachev/bltoolkit
UnitTests/CS/TestObject.cs
347
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...
47.450739
169
0.470906
[ "BSD-3-Clause" ]
Michelle-Argus/ArribasimExtract
OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LS_Api.cs
38,530
C#
/* Copyright 2012 Michael Edwards 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 i...
27.745098
85
0.642403
[ "Apache-2.0" ]
smithc/Glass.Mapper
Source/Glass.Mapper/Pipelines/PipelineException.cs
1,415
C#
using DotNetty.Common.Internal.Logging; using Haukcode.HighResolutionTimer; using Microsoft.Extensions.Logging.Console; using Newtonsoft.Json; using NReco.Logging.File; using Org.BouncyCastle.Math; using RT.Cryptography; using RT.Models; using Server.Common; using Server.Common.Logging; using Server.Dme.Conf...
34.32872
154
0.534724
[ "MIT" ]
jtjanecek/horizon-server
Server.Dme/Program.cs
9,923
C#
#nullable enable 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 mxProject.Devs.DataGeneration.Configuration; using mxProject.Devs.DataGeneration...
27.329949
109
0.561478
[ "MIT" ]
mxProject/DataGenerator
mxDataFountain/mxDataFountain.Net472/Tools/DataFountain/Forms/FieldEditors/TupleFields/DirectProductFieldEditor.cs
5,386
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.Collections.Generic; using System.Collections.Immutable; using System.Linq; using System...
46.623876
226
0.568124
[ "MIT" ]
IndigoShock/machinelearning
src/Microsoft.ML.Transforms/Text/LdaTransform.cs
57,025
C#
// Copyright (c) 2021 homuler // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. using System; using System.Collections; using System.Collections.Generic; using System.Linq; using UnityEngine; using UnityEngine.Render...
34.294872
188
0.674486
[ "MIT" ]
dahburj/MediaPipeUnityPlugin
Assets/MediaPipeUnity/Samples/Common/Scripts/GraphRunner.cs
10,700
C#
using Contoso.Apps.SportsLeague.Data.Models; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.EntityFrameworkCore; namespace Contoso.Apps.SportsLeague.Data.Logic { public class ShoppingCartActions { private readonly ProductContext _db; ...
35.644444
162
0.488778
[ "MIT" ]
rfcm83/Modern-Cloud-Apps
Hands-on lab/Solution/Contoso Sports League/Contoso.Apps.SportsLeague.Data/Logic/ShoppingCartActions.cs
6,418
C#
/* * Copyright 2018 faddenSoft * * 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 ...
38.044248
97
0.569667
[ "Apache-2.0" ]
absindx/6502bench
CommonUtil/Container.cs
4,301
C#
using System; namespace HotBrokerBus.Abstractions.Middleware { public class BusMiddlewareComponent : IBusMiddlewareComponent { public BusMiddlewareComponent(string name, BusMiddlewarePriority priority, Type component) { Name = name; Priority = p...
23.642857
67
0.613293
[ "MIT" ]
Kakktuss/HotBrokerBus
src/HotBrokerBus.Core/Middleware/BusMiddlewareComponent.cs
664
C#
using System; using System.Net.Sockets; using NUnit.Framework; using StatsdClient; namespace Tests { [TestFixture] public class UDPSmokeTests { [Test] public void Sends_a_counter() { try { var client = new StatsdUDP(name: "127....
23.423077
116
0.495895
[ "MIT" ]
Nasdaq/dogstatsd-csharp-client
tests/StatsdClient.Tests/UDPSmokeTests.cs
611
C#
namespace _12.Google { public class Company { private string name; private decimal salary; private string department; public Company(string name, string department, decimal salary) { this.Name = name; this.Department = department; ...
25.458333
96
0.551555
[ "MIT" ]
stoyanov7/SoftwareUniversity
C#Development/C#OOPBasics/ DefiningClasses-Exercise/12.Google/12.Google/Company.cs
613
C#
using System.Web; using System.Web.Mvc; namespace PasswordValidator.Demo.Web { public class FilterConfig { public static void RegisterGlobalFilters(GlobalFilterCollection filters) { filters.Add(new HandleErrorAttribute()); } } }
19.538462
76
0.732283
[ "Unlicense" ]
colinangusmackay/Xander.PasswordValidator
src/Demo/Xander.PasswordValidator/PasswordValidator.Demo.Web/App_Start/FilterConfig.cs
256
C#
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. // Ported from um/mmdeviceapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. namespace TerraFX.Interop { ...
30.4375
145
0.673511
[ "MIT" ]
DaZombieKiller/terrafx.interop.windows
sources/Interop/Windows/um/mmdeviceapi/EDataFlow.cs
489
C#
// Copyright Dirk Lemstra https://github.com/dlemstra/Magick.NET. // Licensed under the Apache License, Version 2.0. using ImageMagick; using Xunit; #if Q8 using QuantumType = System.Byte; #elif Q16 using QuantumType = System.UInt16; #elif Q16HDRI using QuantumType = System.Single; #else #error Not implemented! #end...
26.583333
105
0.633229
[ "Apache-2.0" ]
AFWberlin/Magick.NET
tests/Magick.NET.Tests/Colors/ColorHSLTests/TheFromMagickColorMethod.cs
959
C#
using Expressive.Expressions; using Expressive.Operators; using Microsoft.VisualStudio.TestTools.UnitTesting; using Moq; using System; using System.Collections.Generic; using System.Linq; namespace Expressive.Tests.Operators { [TestClass] public abstract class OperatorBaseTests { internal abstract...
29.414141
116
0.560783
[ "MIT" ]
antoniaelek/expressive
Source/Expressive.Tests/Operators/OperatorBaseTests.cs
2,914
C#
// ------------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See LICENSE in the repo root for license information. // -----------------------------------------------------------...
45.381579
174
0.658452
[ "MIT" ]
Lukas1v/fhir-server
src/Microsoft.Health.Fhir.SqlServer.UnitTests/Features/ChangeFeed/SqlServerFhirResourceChangeDataStoreTests.cs
3,451
C#