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 System.Collections.Generic; using System.Linq; using AngleSharp.Dom; using AngleSharp.Html.Dom; using MechParser.NET.Extensions; using MechParser.NET.Mechs; using MechParser.NET.Mechs.Engines; using MechParser.NET.Mechs.Parts; using MechParser.NET.Mechs.Slots; namespace MechParser.NET.Smurfy { ...
33.201754
108
0.533069
[ "MIT" ]
DrSmugleaf/MechParser.NET
MechParser.NET/Smurfy/SmurfyMechRow.cs
11,358
C#
using System; using System.Collections; using System.Collections.Generic; using MediatR; namespace Monito.Application.Model.Query { public class GetRequestLinksByUUIDQuery : IRequest<IEnumerable<MinimalLinkApplicationModel>> { public Guid UUID { get; set; } public static GetRequestLinksByUUIDQuery ...
28.3125
98
0.677704
[ "Apache-2.0" ]
Wufe/monito
Application/Monito.Application.Model/Query/GetRequestLinksByUUIDQuery.cs
453
C#
using System; using System.Reflection; using System.Threading.Tasks; using Plugin.Iconize; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; using Xamarin.Forms; using Xamarin.Forms.Platform.UWP; [assembly: ExportRenderer(typeof(IconNavigationPage), typeof(IconNavigationPageRenderer))] namespace Plugin.Iconize {...
38.858586
154
0.617884
[ "Apache-2.0" ]
EndlessDelirium/Iconize
src/Plugin.Iconize/Platform/UWP/Renderers/IconNavigationPageRenderer.cs
3,849
C#
using Microsoft.Rest; using Polly.CircuitBreaker; namespace BookFast.Web.Proxy { internal static class Extensions { public static int StatusCode(this HttpOperationException exception) { return (int)exception.Response.StatusCode; } public static int StatusCode(this ...
24.368421
80
0.676026
[ "MIT" ]
PeterJD/book-fast-service-fabric
BookFast.Web.Proxy/Extensions.cs
465
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace HeartShape { class HeartShape { static void Main(string[] args) { Console.WriteLine(" 0 0 "); Console.WriteLine("0 0 0 0"); ...
27.533333
48
0.46368
[ "MIT" ]
AlexanderPetrovv/Programming-Basics-December-2016
SimpleCalculations/HeartShape/HeartShape.cs
840
C#
using System.Net.Http; using System.Web.Http; using System.Web.Http.Hosting; using Ploeh.AutoFixture; namespace API.WindowsService.Test.Helpers { internal class HttpRequestMessageCustomization : ICustomization { public void Customize(IFixture fixture) { fixture.Customize<HttpReques...
28.944444
78
0.639155
[ "BSD-3-Clause" ]
drdk/ffmpeg-farm
ffmpeg-farm-server/API.WindowsService.Test/Helpers/HttpRequestMessageCustomization.cs
523
C#
namespace Lykke.Service.FakeExchangeConnector.Core.Domain { public enum RabbitMessageFormat { Json = 0, MessagePack = 1, } }
17.111111
58
0.636364
[ "MIT" ]
LykkeBusiness/Lykke.Service.FakeExchangeConnector
src/Lykke.Service.FakeExchangeConnector.Core/Domain/RabbitMessageFormat.cs
156
C#
using System; using Terraria; using Terraria.ID; using Terraria.ModLoader; namespace Virtuous { class VirtuousMod : Mod { public VirtuousMod() { Properties = new ModProperties() { Autoload = true, AutoloadGores = true, Auto...
30.470588
121
0.49305
[ "MIT" ]
orchidalloy/Virtuous
VirtuousMod.cs
2,590
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("01-...
38.540541
84
0.751052
[ "MIT" ]
alekhristov/TelerikAcademyAlpha
02-Module2/01-DSA/07-ExamPrepDSA/01-OfficeSpace/Properties/AssemblyInfo.cs
1,429
C#
namespace EFCore.Mapping.TPT.Scenario.Entities { public class Pet : Animal { public string Name { get; set; } } }
16.875
47
0.614815
[ "MIT" ]
dimitrietataru/efcore-mapping
src/EntityFrameworkCore.Prototype.Mapping.TablePerType/Scenario/Entities/Pet.cs
137
C#
// Copyright (c) Tunnel Vision Laboratories, LLC. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace TunnelVisionLabs.LanguageTypes.SourceGenerator { using Microsoft.CodeAnalysis; [Generator(LanguageNames.CSharp)] internal ...
33.546512
131
0.604853
[ "MIT" ]
sharwell/language-types
src/TunnelVisionLabs.LanguageTypes.SourceGenerator/IsExternalInitSourceGenerator.cs
2,887
C#
using System; using System.Collections; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Linq; using System.Da...
41.480769
377
0.526599
[ "MIT" ]
nscseiu/nrcapps
WP/WpItemSalesWs.aspx.cs
17,258
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.Collections.Immutable; using Microsoft.CodeAnalysis.Diagnostics; using Microsoft.CodeAnalysis; using Analyzer.Utilities; using System.Linq; using...
61.0625
292
0.647646
[ "Apache-2.0" ]
nathanstocking/roslyn-analyzers
src/Microsoft.CodeQuality.Analyzers/Core/QualityGuidelines/AbstractRemoveEmptyFinalizers.cs
3,908
C#
// ***************************************************************************** // BSD 3-Clause License (https://github.com/ComponentFactory/Krypton/blob/master/LICENSE) // © Component Factory Pty Ltd, 2006 - 2016, All rights reserved. // The software and associated documentation supplied hereunder are the // prop...
38.03937
142
0.534568
[ "BSD-3-Clause" ]
Krypton-Suite-Legacy/Krypton-NET-5.461
Source/Krypton Components/ComponentFactory.Krypton.Toolkit/Controls Visuals/ByteViewerForm.cs
9,665
C#
using System; using System.Collections.Generic; using Android.Content; using Android.Views; using Android.Util; using Android.Graphics; using Android.Animation; using Android.Views.Animations; using Java.Interop; namespace com.frankcalise.widgets { public class FitChart : View { const int AnimationDuration = 10...
24.949045
111
0.698494
[ "Apache-2.0" ]
frankcalise/XamDroid.FitChart
Library/XamDroid.FitChart/FitChart.cs
7,836
C#
using System.Collections.Generic; using System.Collections.Immutable; using System.Text.RegularExpressions; using Microsoft.Recognizers.Definitions.Spanish; namespace Microsoft.Recognizers.Text.Number.Spanish { public class OrdinalExtractor : BaseNumberExtractor { internal sealed override I...
37.514286
108
0.597867
[ "MIT" ]
Josverl/Recognizers-Text
.NET/Microsoft.Recognizers.Text.Number/Spanish/Extractors/OrdinalExtractor.cs
1,315
C#
using System; using System.Collections.Generic; namespace WebMagicSharp { /// <summary> /// /// </summary> public interface IMultiPageModel { /// <summary> /// /// </summary> /// <returns></returns> string GetPageKey(); /// <summary> /// ...
20.297297
64
0.474035
[ "Apache-2.0" ]
Peefy/DuGu.WebMagicSharp
WebMagicSharp.Extensions/IMultiPageModel.cs
753
C#
using System; using Pango; using VisualStudio.Mac.CoreUI; namespace VisualStudio.Mac.Helpers { public static class FontDescriptionHelper { internal static FontDescription CreateFontDescription(double fontSize, string fontFamily, FontAttributes attributes) { FontDescription fontDesc...
35.47619
124
0.695302
[ "MIT" ]
andreinitescu/HotReloading
IDE/VisualStudio.Mac/Helpers/FontDescriptionHelper.cs
747
C#
using System; using System.Collections.Generic; namespace PierresVendors.Models { public class Vendor { private static List<Vendor> _vendors = new List<Vendor>{}; private static int _count = 0; public string Name {get;set;} public string Description {get;set;} public int Id {get;} public L...
20.238095
64
0.618824
[ "MIT" ]
PRKille/PierresVendors.Solution
PierresVendors/Models/Vendor.cs
850
C#
/* * Copyright 2018 JDCLOUD.COM * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http:#www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
25.97561
79
0.723005
[ "Apache-2.0" ]
jdcloud-api/jdcloud-sdk-net
sdk/src/Service/Monitor/Apis/DescribeAlarmsResponse.cs
1,137
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.Globalization; using System.Threading; using Microsoft.WindowsAzure.Storage.Table; namespace Microsoft.Azure.WebJobs.Logging.Internal { ...
35.1
116
0.626148
[ "MIT" ]
gcollic/azure-webjobs-sdk
src/Microsoft.Azure.WebJobs.Logging/Entities/InstanceCountEntity.cs
3,161
C#
// (c) Copyright HutongGames, LLC 2010-2013. All rights reserved. using UnityEngine; namespace HutongGames.PlayMaker.Actions { [ActionCategory(ActionCategory.Animation)] [Tooltip("Stops all playing Animations on a Game Object. Optionally, specify a single Animation to Stop.")] public class StopAnimation : BaseAnim...
22.018182
108
0.636664
[ "MIT" ]
517752548/UnityFramework
GameFrameWork/ThirdParty/PlayMaker/Actions/Animation/StopAnimation.cs
1,211
C#
namespace ZbW.DependencyInjection.Console { public interface IWritable { void Write(string message); } }
17.857143
42
0.672
[ "MIT" ]
michikeiser/ZbW.DependencyInjection
ZbW.DependencyInjection.Console/IWritable.cs
127
C#
// ============================================================================================================== // Microsoft patterns & practices // CQRS Journey project // ============================================================================================================== // ©2012 Microsoft. All right...
45.328358
170
0.594007
[ "Apache-2.0" ]
gmelnik/cqrs-journey-code
source/Conference/Conference.Web.Public.Tests/Controllers/PaymentControllerFixture.cs
6,077
C#
 using System; namespace services.Models.Data { public class StreamNet_JuvOutmigrantsDetail_Header : DataHeader { } }
14.555556
67
0.732824
[ "Unlicense" ]
samanthas14/cdms-be-public
services/Models/Data/StreamNet_JuvOutmigrantsDetail_Header.cs
133
C#
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="FlightTracking.xaml.cs" company="OpenSky"> // OpenSky project 2021-2022 // </copyright> // ----------------------------------------------------------------------------------------...
46.293173
238
0.473627
[ "MIT" ]
opensky-to/agent
OpenSky.Agent/Views/FlightTracking.xaml.cs
23,056
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 Microsoft.CodeAnalysis.Test.Utilities; using Microsoft.VisualStudio.IntegrationTest.Utilities; using Roslyn.Test.Utilities; using Xunit; namespace Ros...
34.741935
161
0.722377
[ "Apache-2.0" ]
DustinCampbell/roslyn
src/VisualStudio/IntegrationTest/IntegrationTests/CSharp/CSharpSquigglesDesktop.cs
1,079
C#
using System; using System.Collections.Generic; using System.Text; using System.Xml.Serialization; namespace Digiseller.Client.Core.Models.ProductDiscounts.Request { [XmlRoot(ElementName = "product")] public class Product { public Product() { } public Product(int id, stri...
21.178571
64
0.591906
[ "Apache-2.0" ]
Mistand/Digiseller.Client.Core
src/Digiseller.Client.Core/Models/ProductDiscounts/Request/Product.cs
595
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.Maui.Controls.CustomAttributes; using Microsoft.Maui.Controls.Internals; namespace Microsoft.Maui.Controls.Compatibility.ControlGallery.Issues { [Preserve(AllMembers = true)] [Issue(Is...
25.962963
108
0.766049
[ "MIT" ]
10088/maui
src/Compatibility/ControlGallery/src/Issues.Shared/ModelContentPage.cs
703
C#
using Puppy.Elastic.Utils; namespace Puppy.Elastic.ContextAddDeleteUpdate.IndexModel { public class RoutingDefinition { public object RoutingId { get; set; } public object ParentId { get; set; } public static string GetRoutingUrl(RoutingDefinition routingDefinition) { ...
34.363636
82
0.649471
[ "Unlicense" ]
stssoftware/Puppy
Puppy.Elastic/ContextAddDeleteUpdate/IndexModel/RoutingDefinition.cs
758
C#
using TaleWorlds.Core; using TaleWorlds.MountAndBlade.View.Screen; namespace RTSCamera.Patch { public class Patch_MissionScreen { public static bool OnMissionModeChange_Prefix(MissionScreen __instance, MissionMode oldMissionMode, bool atStart) { if (__instance.Mission.Mode == Missi...
27.1
121
0.636531
[ "MIT" ]
cnedwin/Bannerlord.RTSCamera
source/RTSCamera/src/Patch/Patch_MissionScreen.cs
544
C#
namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// <summary>Existing recovery availability set input.</summary> public partial class ExistingRecoveryAvailabilitySet { /// <summary> ...
69.679612
321
0.695973
[ "MIT" ]
AverageDesigner/azure-powershell
src/Migrate/generated/api/Models/Api20210210/ExistingRecoveryAvailabilitySet.json.cs
7,075
C#
using System.Diagnostics.CodeAnalysis; namespace Manatee.Json.Path.Parsing { internal class SearchParser : IJsonPathParser { private const string _allowedChars = "_'\"*"; public bool Handles(string input, int index) { if (index + 2 >= input.Length) return false; var check = index + 2;...
25.666667
140
0.58518
[ "MIT" ]
Magicianred/Manatee.Json
Manatee.Json/Path/Parsing/SearchParser.cs
1,311
C#
using System; namespace Beeffective.ViewModels { public class GoalViewModel : ViewModel { private TimeSpan timeSpent; public GoalViewModel(string title) { Title = title ?? throw new ArgumentNullException(nameof(title)); TimeSpent = new TimeSpan(); } ...
22.035714
76
0.510535
[ "MIT" ]
PeterMilovcik/DoThis
DoThis/ViewModels/GoalViewModel.cs
619
C#
// *********************************************************************** // Assembly : XLabs.Sample.Droid // Author : XLabs Team // Created : 12-27-2015 // // Last Modified By : XLabs Team // Last Modified On : 01-04-2016 // *********************************************************...
36.4
115
0.562418
[ "Apache-2.0" ]
jdluzen/Xamarin-Forms-Labs
Samples/XLabs.Sample.Droid/MainActivity.cs
4,552
C#
namespace Reservation.Domain { public class PricingMapping { public int FirstPricingCategoryPrice { get; } public int SecondPricingCategoryPrice { get; } public int ThirdPricingCategoryPrice { get; } public PricingMapping(int firstPricingCategoryPrice, int secondPricingCategory...
35.294118
92
0.7
[ "Apache-2.0" ]
42skillz/talk-AMDDD19
code/TicketOffice/External.Apis/Reservation.Domain/PricingMapping.cs
602
C#
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Reflection; using System.Web.UI.WebControls; using DotNetNuke; using DotNetNuke.Common.Utilities; using DotNetNuke.Entities.Modules; using DotNetNuke.Entities.Modules.Actions...
42.822236
296
0.560853
[ "Apache-2.0", "BSD-3-Clause" ]
deyeni2001/HRMSDEV60
DesktopModules/HRMangmntSyst/InterviewPage.ascx.cs
68,175
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class ExpandedSpawnning : MonoBehaviour { public GameObject cubeModel; public float spawnSpacingX; public float spawnSpacingY; public float xPower; public float yPower; private void Start() { xPo...
26.964286
112
0.619868
[ "MIT" ]
Ujjwal-Shekhawat/BattleRoyale
Assets/Scripts/ExpandedSpawnning.cs
757
C#
using Miki.Discord.Common.Packets; using System.Runtime.Serialization; namespace Miki.Discord.Common.Events { [DataContract] public class RoleEventArgs { [DataMember(Name = "guild_id")] public ulong GuildId; [DataMember(Name = "role")] public DiscordRolePacket Role; } }
23.461538
66
0.698361
[ "MIT" ]
Mikibot/Miki.Discord
Miki.Discord.Common/Packets/Events/RoleEventArgs.cs
307
C#
using System.Collections.Generic; namespace GitStats.Lib { public interface IGetStats { void Get(string gitRepo, int commitsNum = 200, string branch = null); } }
19.555556
72
0.710227
[ "MIT" ]
gookcedemir/GitStats
src/GitStats.Lib/IGetStats.cs
178
C#
#pragma checksum "C:\Users\Terry\Downloads\BeautySalon\Web\BeautyBooking.Web\Areas\Administration\Views\Salons\Index.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "36540c86c291ec9080bb960ae8a0d05a58ce0fc4" // <auto-generated/> #pragma warning disable 1591 [assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCo...
61.072368
359
0.717063
[ "MIT" ]
DiePathologie/BeautySalon
Web/BeautyBooking.Web/obj/Debug/netcoreapp3.1/Razor/Areas/Administration/Views/Salons/Index.cshtml.g.cs
18,705
C#
using System.Text; using _0_Framework.Infrastructure; namespace ShopManagement.Infrastructure.Configuration.Permissions { public class ShopPermissionExposer: IPermissionExposer { public Dictionary<string, List<PermissionDto>> Expose () { return new Dictionary<string, List<PermissionDto>> { ...
49.304348
94
0.520723
[ "MIT" ]
AmirhosseinKeshtkar/Lampshade
ShopManagement.Configuraion/Permissions/ShopPermissionExposer.cs
2,477
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.Buffers; using System.Diagnostics; using System.Runtime.CompilerServices; using System.Runtime.InteropS...
48.429119
187
0.581725
[ "MIT" ]
AzureMentor/runtime
src/libraries/System.Private.CoreLib/src/System/Memory.cs
25,280
C#
using System.Threading.Tasks; using Kledex.Domain; using Kledex.Queries; using Kledex.UI.Models; namespace Kledex.UI.Queries.Handlers { public class GetAggregateModelHandler : IQueryHandlerAsync<GetAggregateModel, AggregateModel> { private readonly IDomainStore _domainStore; public GetAggrega...
27.92
97
0.690544
[ "Apache-2.0" ]
lampo1024/Kledex
src/Kledex.UI/Queries/Handlers/GetAggregateModelHandler.cs
700
C#
using System.Collections.Generic; using System.Globalization; using System.IO; using System.Reflection; namespace sly.i18n { public enum Message { UnexpectedTokenExpecting, UnexpectedEosExpecting, UnexpectedToken, UnexpectedEos, UnexpectedChar, CannotMi...
29.635036
104
0.505911
[ "MIT" ]
Qiu233/csly
sly/i18n/I18N.cs
4,060
C#
// Copyright © 2017 onwards, Andrew Whewell // All rights reserved. // // Redistribution and use of this software in source and binary forms, with or without modification, are permitted provided that the following conditions are met: // * Redistributions of source code must retain the above copyright notice, th...
60.119048
750
0.729109
[ "BSD-3-Clause" ]
AlexAX135/vrs
VirtualRadar.Interface/IShutdownSignalHandler.cs
2,528
C#
using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; namespace SampleApp.Controls { public sealed partial class ProgressOverlayControl : UserControl { public ProgressOverlayControl() { this.InitializeComponent(); DataContext = this; } private string _text = "Working"; public string Text { g...
16
65
0.671875
[ "Apache-2.0" ]
BAStevens/Lego-Ev3
SampleApps/SampleApp (WinRT)/Controls/ProgressOverlayControl.xaml.cs
642
C#
// ----------------------------------------------------------------------------------------- // <copyright file="AccountSasTests.cs" company="Microsoft"> // Copyright 2013 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compli...
57.368421
313
0.618369
[ "Apache-2.0" ]
Azure/azure-storage-net
Test/WindowsRuntime/AccountSasTests.cs
47,962
C#
using System; using Elsa.Extensions; using Elsa.Mapping; using Elsa.Persistence.YesSql.Indexes; using Elsa.Persistence.YesSql.Mapping; using Elsa.Persistence.YesSql.Schema; using Elsa.Persistence.YesSql.Services; using Elsa.Persistence.YesSql.StartupTasks; using Elsa.Runtime; using Microsoft.Extensions.DependencyInject...
36.707692
100
0.684409
[ "BSD-3-Clause" ]
1000sprites/elsa-core
src/persistence/Elsa.Persistence.YesSql/Extensions/YesSqlServiceCollectionExtensions.cs
2,386
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; using System.Threading.Tasks; using System.Windows; using VaccineTracker.Domain; using VaccineTracker.Services; using VaccineTracker.ViewModel; using VaccineTracker.Views; namespace VaccineTracker { /// <summary...
33.02454
142
0.519599
[ "MIT" ]
harshmaurya/covidvaccinetracker
VaccineTracker/Views/MainWindow.xaml.cs
5,385
C#
namespace Hermit.Service.Log { public interface ILog { void Log(object obj); void Warn(object warning); void Error(object error); void Assert(bool condition, string message); } }
17.307692
52
0.608889
[ "MIT" ]
Cushmily/Herm
Runtime/Service/Log/ILog.cs
225
C#
using System; using System.Drawing.Printing; using System.Windows.Forms; using EasyBrailleEdit.Common; namespace EasyBrailleEdit.Printing { public partial class ConfigTextPrinterPanel : UserControl { private string m_PaperSourceName; private string m_PaperName; private Margins m_OddPag...
36.744898
150
0.616773
[ "MIT" ]
huanlin/EasyBrailleEdit
Source/EasyBrailleEdit/Printing/ConfigTextPrinterPanel.cs
3,633
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.Collections.Concurrent; using System.ComponentModel; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System...
37.992837
189
0.590558
[ "MIT" ]
AerisG222/runtime
src/libraries/System.Text.Json/src/System/Text/Json/Serialization/JsonSerializerOptions.cs
26,519
C#
namespace _03BarracksFactory.Contracts { public interface IExecutable { string Execute(); } }
15.25
40
0.614754
[ "MIT" ]
Gandjurov/AdvancedOOP_CSharp
04.ReflectionAndAttributes/03.BarracksWarsNewFactory/Contracts/IExecutable.cs
124
C#
using System; using System.Collections.Generic; using System.Threading.Tasks; using Catalog.Api.Entities; using MongoDB.Bson; using MongoDB.Driver; namespace Catalog.Api.Repositories { public class MongoDbItemsRepository : IItemsRepository { private const string databaseName = "catalog"; privat...
32.576923
93
0.658205
[ "MIT" ]
nolkasaur/.NET-REST-API
Catalog.Api/Repositories/MongoDbItemsRepository.cs
1,694
C#
using System; using System.Collections.Generic; using System.Threading.Tasks; using Todo.Ports.Entities; namespace Todo.Ports.UseCases; public interface ITaskService { Task<Guid> Add(string description); void Do(Guid taskId); Task<IEnumerable<ITask>> List(int pageNumber = 1, int pageSize = 10); void ...
23.1875
73
0.735849
[ "MIT" ]
fractas/todo
Todo.Ports/UseCases/ITaskService.cs
373
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using FunBrainDomain; namespace FunBrainInfrastructure.Models { public class UserCreate { public string Name { get; set; } public string Email { get; set; } public User ...
20.44
41
0.549902
[ "MIT" ]
ralbu/FunBrain-DotNetCore
src/FunBrainInfrastructure/Models/UserCreate.cs
513
C#
using PizzaBox.Domain.Models; using PizzaBox.Domain.Singletons; using Xunit; namespace PizzaBox.Testing.Tests { public class PriceTests { [Theory] [InlineData(3, CrustType.Pan)] [InlineData(2.5, CrustType.Thick)] [InlineData(2, CrustType.Thin)] [InlineData(5, CrustType.S...
26.057971
70
0.537264
[ "MIT" ]
03012021-dotnet-uta/NoureldinKamel_p0
PizzaBox.Testing/Tests/PriceTests.cs
1,798
C#
using System.Globalization; namespace Orckestra.Composer.Parameters { public class GetOrderUrlParameter: BaseUrlParameter { /// <summary> /// Gets or sets the order identifier. /// </summary> /// <value> /// The order identifier. /// </value> public stri...
22
55
0.573864
[ "MIT" ]
InnaBoitsun/BetterRetailGroceryTest
src/Orckestra.Composer/Parameters/GetOrderUrlParameter.cs
352
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _01.House_Painting { class Program { static void Main(string[] args) { double x = double.Parse(Console.ReadLine()); double y = double.Parse(Cons...
35
66
0.577489
[ "MIT" ]
bobo4aces/01.SoftUni-ProgramingBasics
99. Exams/2017.03.19 - Morning/01. House Painting/01. House Painting.cs
1,157
C#
/******************************************************************************* * Copyright 2012-2019 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...
44.975
282
0.613118
[ "Apache-2.0" ]
5u5hma/aws-tools-for-powershell
modules/AWSPowerShell/Cmdlets/Personalize/Basic/Get-PERSSolution-Cmdlet.cs
8,995
C#
using System; using System.IO; using System.Linq; using System.Net; using System.Text; using System.Reflection; using System.Runtime.Loader; using System.Runtime.CompilerServices; using System.Security.Cryptography; using System.Collections.Generic; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.VisualBasi...
45.032738
186
0.465072
[ "MIT" ]
ironcodev/BladeEngine
BladeEngine.VisualBasic/BladeRunnerVisualBasic.cs
15,133
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. using System.Threading.Tasks; using Contoso.GameNetCore.Proto; namespace Contoso.GameNetCore.Routing { public class RouteHandler : IRouteHa...
28.611111
112
0.637864
[ "Apache-2.0" ]
bclnet/GameNetCore
src/Proto/Routing/src/RouteHandler.cs
1,030
C#
using System.Data.Entity; using System.Threading.Tasks; using Autofac.Extras.NLog; using Wiz.Gringotts.UIWeb.Data; using Wiz.Gringotts.UIWeb.Infrastructure.Commands; using MediatR; using NExtensions; namespace Wiz.Gringotts.UIWeb.Models.Payees { public class TogglePayeeIsActiveCommand : IAsyncRequest<ICommandResu...
31.423077
117
0.640759
[ "MIT" ]
NotMyself/Gringotts
src/UIWeb/Models/Payees/CommandTogglePayeeIsActive.cs
1,636
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Collections.Generic; using System.Linq; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.TestUtilities; using Micros...
37.206522
109
0.648846
[ "MIT" ]
CameronAavik/efcore
test/EFCore.Specification.Tests/EntityFrameworkServiceCollectionExtensionsTestBase.cs
3,423
C#
using Singer.Core.Helper; using Singer.Core.Logging; using System; using System.Diagnostics; using System.IO; using System.Reflection; using System.Text; namespace ESignature.Business { public static class Const { public const string Version = "1.0.0"; public const string AppName = "esignatue"...
30.691176
109
0.614279
[ "MIT" ]
shoy160/Singer.Wpf
sample/Singer.Sample/Const.cs
2,121
C#
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System.Text; using Xunit; namespace System.Globalization.Tests { /// <summary> /// Class to read data obtained from http://www.unicode.org/Public/idna. ...
40.218391
130
0.57988
[ "MIT" ]
690486439/corefx
src/System.Globalization.Extensions/tests/IdnMapping/Data/Unicode_6_0/Unicode_6_0_IdnaTest.cs
3,501
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public enum GameManagerEvent { WIN, LOSE } public class GameManager : BaseBehaviour { Observer observer; private float playTime; private static GameObject player; public static GameObject Player { ...
19.640625
74
0.638823
[ "MIT" ]
LunaryDog/TankHunter
Assets/Scripts/Game/Managers/GameManager.cs
1,259
C#
using System.Collections; using System.Collections.Generic; using System; using UnityEditor; using UnityEngine; using XNode; using XNodeEditor; namespace hiVN { [CustomNodeEditor(typeof(BaseNode))] public class BaseNodeEditor : NodeEditor { public override Color GetTint() { B...
20.83871
72
0.575851
[ "MIT" ]
Hizuvi/hiVN
NodeSystem/Nodes/Editor/BaseNodeEditor.cs
648
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: AssemblyConfiguration("")] [assembly: AssemblyComp...
42
85
0.759398
[ "MIT" ]
lvermeulen/Dispenser
src/Dispenser/Properties/AssemblyInfo.cs
800
C#
namespace HOSKYSWAP.Common; public enum Status { Open, Filled, Cancelled, Error, Ignored, Confirming, Cancelling, Staked, Unstaking, Unstaked } public record Order { public Guid Id { get; set; } = Guid.NewGuid(); public string OwnerAddress { get; set; } = string.Empty; ...
27.033333
62
0.628853
[ "MIT" ]
joshjaypegman/HOSKYSWAP
src/HOSKYSWAP.Common/Order.cs
811
C#
// The MIT License (MIT) // Copyright (c) 2015 Ben Abelshausen // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, co...
34.70354
95
0.511411
[ "MIT" ]
FleQ-inc/GTFS
src/GTFS/Filters/GTFSFeedStopsFilter.cs
7,845
C#
namespace Fixie.Internal { public interface Handler<in TMessage> : Listener where TMessage : Message { void Handle(TMessage message); } }
22.571429
77
0.677215
[ "MIT" ]
Meberem/fixie
src/Fixie/Internal/Handler.cs
160
C#
using System.Runtime.Caching; using Orleans; using Orleans.Concurrency; namespace TicTacToe.Orleans.Grains; [Reentrant] public class PairingGrain : Grain, IPairingGrain { private readonly MemoryCache _cache = new("pairing"); public Task AddGame(Guid gameId, string name) { _cache.Add(gameId.ToStr...
28.038462
171
0.698217
[ "Apache-2.0" ]
AhmedKhalil777/Orleans.Learning
src/TicTacToe.Orleans/TicTacToe.Orleans/Grains/PairingGrain.cs
731
C#
using System; #if UNITY_2020_2_OR_NEWER using Unity.Profiling.LowLevel; #endif namespace MLAPI.Profiling { internal struct ProfilerCounterUtility { #if UNITY_2020_2_OR_NEWER && ENABLE_PROFILER public static byte GetProfilerMarkerDataType<T>() { switch (Type.GetTypeCode(typeof(T))) ...
33.694444
104
0.577082
[ "MIT" ]
0vjm3wfw9gqm4j/com.unity.multiplayer.mlapi
com.unity.multiplayer.mlapi/Runtime/Profiling/ProfilerCounterUtility.cs
1,213
C#
/* * Copyright (C) 2019 - 2021, Fyfe Software Inc. and the SanteSuite Contributors (See NOTICE.md) * * 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/licen...
35.448454
176
0.590228
[ "Apache-2.0" ]
santedb/santedb-dc-core
SanteDB.DisconnectedClient.Core/Mail/LocalMailService.cs
6,879
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> //--...
34.451613
151
0.582397
[ "MIT" ]
duyndh/QuanLyHocSinh
PresentaionTier/Properties/Settings.Designer.cs
1,070
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 using System; using System.Runtime.Serialization; namespace Nest { public class DateRange { [DataMember(Name...
22.83
76
0.664477
[ "Apache-2.0" ]
Brightspace/elasticsearch-net
src/Nest/CommonOptions/Range/Ranges.cs
2,285
C#
namespace FSS.Omnius.Modules.Migrations.MSSQL { using System; using System.Data.Entity.Migrations; public partial class userAttributes : DbMigration { public override void Up() { AddColumn("dbo.Persona_Users", "DisplayName", c => c.String(nullable: false, maxLength: 100)...
50.219512
106
0.601748
[ "MIT" ]
simplifate/omnius
application/FSS.Omnius.Modules/Migrations/MSSQL/201512041443397_userAttributes.cs
2,059
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using BEditor.Extensions.FFmpeg.Encoding; using BEditor.Media; using BEditor.Media.Encoding; using AudioCodec = FFMediaToolkit.Encoding.AudioCodec; using EncoderPreset = FFMediaToolkit...
28.285714
68
0.557071
[ "MIT" ]
b-editor/BEditor
extensions/BEditor.Extensions.FFmpeg/RegisterdEncoding.cs
1,982
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.InteropServices.WindowsRuntime; using Windows.Foundation; using Windows.Foundation.Collections; using Windows.Media; using Windows.System.Display; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; using Window...
36.118644
143
0.583294
[ "Apache-2.0" ]
AndreasGocht/AllPlayMediaPlayer
src/AllPlayMediaPlayer/MainPage.xaml.cs
4,264
C#
using System; using System.IO; using System.Linq; using OfficeOpenXml; using OfficeOpenXml.Style.XmlAccess; namespace HelloEPPlus { class Program { static void Main(string[] args) { using (var package = new ExcelPackage()) { var worksheet = package.Workb...
24.521739
74
0.56383
[ "MIT" ]
nuitsjp/DioDocsStudy
HelloForExcel/HelloEPPlus/Program.cs
576
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...
28.57505
173
0.6095
[ "BSD-3-Clause" ]
AlericInglewood/opensimulator
OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Stub.cs
57,493
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class PickUpVolume : MonoBehaviour { [SerializeField] GameObject holder; private List<GameObject> pickupObjects = new List<GameObject>(); private void OnTriggerEnter(Collider other) { if(pickupObjects.Conta...
29.33871
150
0.616273
[ "Apache-2.0" ]
Karamu98/GamesJam2019
GamesJam2019/Assets/PickUpVolume.cs
1,821
C#
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="MaterialControl.xaml.cs" company="Helix Toolkit"> // Copyright (c) 2014 Helix Toolkit contributors // </copyright> // <summary> // Interaction logic for MaterialControl.x...
33.325581
125
0.506629
[ "MIT" ]
B3zaleel/helix-toolkit
Source/Examples/WPF.SharpDX/EnvironmentMapDemo/MaterialControl.xaml.cs
1,435
C#
using System.ComponentModel.DataAnnotations; namespace AspNetZeroOrganisationUnitClone.Users.Dto { public class ChangePasswordDto { [Required] public string CurrentPassword { get; set; } [Required] public string NewPassword { get; set; } } }
20.642857
51
0.67128
[ "MIT" ]
CiscoNinja/AspNetZeroOrganisationUnitClone
aspnet-core/src/AspNetZeroOrganisationUnitClone.Application/Users/Dto/ChangePasswordDto.cs
291
C#
#region copyright /* * Copyright (c) 2018 Sveriges Radio AB, Stockholm, Sweden * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, t...
47.027778
76
0.75251
[ "BSD-3-Clause" ]
IrisBroadcast/CodecControl
src/CodecControl.Web/Models/Requests/SetInputEnabledRequest.cs
1,695
C#
namespace p02.AnonymousVox { using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; public class StartUp { public static void Main() { string text = Console.Re...
29.340909
100
0.523625
[ "MIT" ]
GitHarr/SoftUni
Homework/TechModule/ProgramingFundamentals-Extended/3.Strings, Regular Expressions and Text Processing/Exercises/p02.AnonymousVox/STartUp.cs
1,293
C#
using System; using System.Xml.Serialization; namespace Alipay.AopSdk.Domain { /// <summary> /// KoubeiMarketingCampaignRetailDmSetModel Data Structure. /// </summary> [Serializable] public class KoubeiMarketingCampaignRetailDmSetModel : AopObject { /// <summary> /// 下架时间,仅上架操作时...
27.806452
73
0.613689
[ "MIT" ]
ArcherTrister/LeXun.Alipay.AopSdk
src/Alipay.AopSdk/Domain/KoubeiMarketingCampaignRetailDmSetModel.cs
1,030
C#
namespace AlephVault.Unity.Binary { namespace Wrappers { /// <summary> /// A serializable wrapper around a <see cref="char"/> value. /// </summary> public class Char : Wrapper<char> { public Char(char wrapped) : base(wrapped) { } public Char() :...
29.071429
80
0.519656
[ "MIT" ]
AlephVault/unity-binary
Runtime/Wrappers/Char.cs
814
C#
/* WinUSBNet library * (C) 2010 Thomas Bleeker (www.madwizard.org) * * Licensed under the MIT license, see license.txt or: * http://www.opensource.org/licenses/mit-license.php */ using System; namespace MadWizard.WinUSBNet { /// <summary> /// USB device details /// </summary> pu...
29.412214
146
0.50584
[ "MIT" ]
CasperGuo/winusbnet
WinUSBNet/USBDeviceDescriptor.cs
3,853
C#
using System; using System.Web; namespace yumaster.Tools.Net { /// <summary> /// Cookie操作辅助类 /// </summary> public static class CookieHelper { /// <summary> /// 清除指定Cookie /// </summary> /// <param name="cookiename">cookiename</param> public static void Cle...
29.450704
93
0.512195
[ "MIT" ]
yumaster/Tools
yumaster.Tools/Net/CookieHelper.cs
2,153
C#
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System.Runtime.CompilerServices; [assembly: InternalsVisibleTo("Azure.Messaging.EventHubs, PublicKey=00240000048000009400000006020000002400005253413100040000010...
109.333333
397
0.926829
[ "MIT" ]
AzureMentor/azure-sdk-for-net
sdk/eventhub/Azure.Messaging.EventHubs/src/TrackOneClient/Properties/AssemblyInfo.cs
986
C#
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace YOpenGL { public class Timer : IDisposable { public Timer(Action callBack) { _isfirst = false; ...
26.338346
87
0.472738
[ "MIT" ]
yzylovepmn/YDrawing2D
YOpenGL/Internel/Timer.cs
3,505
C#
using Xunit; namespace Pantry.InMemory.Tests { [CollectionDefinition(CollectionName)] public class ConcurrentDictionaryStandardTestsFixtureCollection : ICollectionFixture<ConcurrentDictionaryStandardTestsFixture> { public const string CollectionName = nameof(ConcurrentDictionaryStandardTestsFixtur...
31.090909
130
0.812865
[ "Apache-2.0" ]
nventive/Pantry
src/Pantry.InMemory.Tests/ConcurrentDictionaryStandardTestsFixtureCollection.cs
344
C#
/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect 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 ...
40.057971
161
0.671129
[ "Apache-2.0" ]
Bimble/Lean
Tests/Indicators/BollingerBandsTests.cs
2,768
C#
//////////////////////////////////////////////////////////////////////////// // <copyright file="YesNoScanner2Narrow.cs" company="Intel Corporation"> // // Copyright (c) 2013-2015 Intel Corporation  // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance ...
30.942857
106
0.547883
[ "Apache-2.0" ]
devlato/acat
src/Extensions/Default/UI/ContextMenus/YesNoScanner2Narrow.cs
15,237
C#
using System; using System.Threading.Tasks; using Amazon.DynamoDBv2.DataModel; using FluentAssertions; using Paramore.Brighter.Inbox.DynamoDB; using Paramore.Brighter.Tests.CommandProcessors.TestDoubles; using Xunit; namespace Paramore.Brighter.Tests.Inbox.DynamoDB { [Trait("Category", "DynamoDB")] public cla...
39.671875
149
0.682946
[ "MIT" ]
SVemulapalli/Brighter
tests/Paramore.Brighter.Tests/Inbox/DynamoDB/When_checking_for_existing_command_async.cs
2,541
C#
namespace MassTransit.DocumentDbIntegration { using System; using Configuration; using Configurators; public static class DocumentDbRepositoryConfigurationExtensions { /// <summary> /// Configures the DocumentDb Saga Repository /// </summary> /// <param name="config...
37.622951
142
0.647059
[ "ECL-2.0", "Apache-2.0" ]
ChipsetSV/MassTransit
src/Persistence/MassTransit.DocumentDbIntegration/Configuration/DocumentDbRepositoryConfigurationExtensions.cs
2,295
C#
/* * Copyright (C) 2016 - present by OpenGamma Inc. and the OpenGamma group of companies * * Please see distribution for license. */ namespace com.opengamma.strata.product.credit.type { //JAVA TO C# CONVERTER TODO TASK: This Java 'import static' statement cannot be converted to C#: // import static com.opengamma.s...
50.972973
240
0.732238
[ "Apache-2.0" ]
ckarcz/Strata.ConvertedToCSharp
modules/product/src/main/java/com/opengamma/strata/product/credit/type/StandardCdsConventions.cs
5,660
C#