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
// 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.Diagnostics; using System.IO; using System.Linq; using...
45.218069
179
0.596073
[ "MIT" ]
ArieJones/tye
src/Microsoft.Tye.Core/ProjectReader.cs
14,517
C#
/* * Copyright 2010-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "l...
31.064935
100
0.623328
[ "Apache-2.0" ]
Bio2hazard/aws-sdk-net
sdk/src/Services/DirectoryService/Generated/Model/ListIpRoutesResponse.cs
2,392
C#
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Reflection; namespace YS.Knife.Data.FilterExpressions.Converters { [FilterConverter(FilterType.Exists)] internal class ExistsExpressionConverter : OpenExpressionConverter { private stati...
43.714286
163
0.661531
[ "MIT" ]
obpt123/ys.knife
src/YS.Knife.Data/Data/FilterExpressions/Converters/ExistsExpressionConverter.cs
2,144
C#
using Demo.Scaffold.Tool.Changes; using Demo.Scaffold.Tool.Interfaces; using Demo.Scaffold.Tool.Scaffolders.OutputCollectors.Endpoint.InputCollectors; using Demo.Scaffold.Tool.Scaffolders.OutputCollectors.Endpoint.OutputCollectors; using System.Collections.Generic; using System.Linq; namespace Demo.Scaffold.Tool.Scaf...
31.6
87
0.64557
[ "MIT" ]
nvdvlies/aspnet-core-api-demo
tools/Demo.Scaffold.Tool/Scaffolders/OutputCollectors/Endpoint/EndpointOutputCollector.cs
1,266
C#
namespace grate.Infrastructure { public class MariaDbSyntax : ISyntax { public string StatementSeparatorRegex { get { const string strings = @"(?<KEEP1>'[^']*')"; const string dashComments = @"(?<KEEP1>--.*$)"; const string...
51.088235
143
0.604491
[ "MIT" ]
OzBob/grate
grate/Infrastructure/MariaDbSyntax.cs
1,739
C#
// ******************************************************* // // Copyright (C) Microsoft. All rights reserved. // // ******************************************************* [assembly: System.Diagnos...
236.5
330
0.818566
[ "MIT" ]
intj-t/Zenity
Product/Zentity.Services/Zentity.Services/GlobalSuppressions.cs
15,609
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class Engine { private RaceTower raceTower; public Engine(RaceTower raceTower) { this.raceTower = raceTower; } public void Run() { StringBuilder sb = new StringBuilder(); stri...
26.032787
65
0.479219
[ "MIT" ]
NaskoVasilev/CSharp-OOP-Basics
RetakeExam-5 September 2017/GrandPrix/GrandPrix/Core/Engine.cs
1,590
C#
using System.Runtime.Serialization; namespace Shoko.Server.API.v2.Models { [DataContract] public class Sizes { [DataMember(IsRequired = false, EmitDefaultValue = false)] public int Episodes { get; set; } [DataMember(IsRequired = false, EmitDefaultValue = false)] public int...
30.307692
66
0.635787
[ "MIT" ]
EraYaN/ShokoServer
Shoko.Server/API/v2/Models/common/Sizes.cs
790
C#
/* * Your rights to use code governed by this license http://o-s-a.net/doc/license_simple_engine.pdf *Ваши права на использование кода регулируются данной лицензией http://o-s-a.net/doc/license_simple_engine.pdf */ using System; using System.Collections.Generic; using System.Drawing; using System.IO; using OsEngine...
29.934211
201
0.48022
[ "Apache-2.0" ]
22825usd/OsEngine
project/OsEngine/Charts/CandleChart/Indicators/Rsi.cs
14,890
C#
using System.Collections.Generic; using System.ComponentModel.DataAnnotations.Schema; namespace LeagueDatabase.Models { public class Tournament { [DatabaseGenerated(DatabaseGeneratedOption.None)] public int ID { get; set; } public string Title { get; set; } public int Reward { ...
27.9375
64
0.66443
[ "MIT" ]
BaseDorp/LeagueDatabaseRazorPages
LeagueDatabase/LeagueDatabase/Models/Tournament.cs
449
C#
using System; using Microsoft.EntityFrameworkCore.Migrations; namespace ResourceManagement.Data.Migrations { public partial class AddProperties : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn<string>( name: "N...
28.744186
71
0.536408
[ "MIT" ]
stoyanov7/ResourceManagement
src/ResourceManagement.Data/Migrations/20190930074642_AddProperties.cs
1,238
C#
using System; using Andreys.Services; using Andreys.ViewModels.Products; using SUS.HTTP; using SUS.MvcFramework; namespace Andreys.Controllers { public class ProductsController : Controller { private readonly IProductsService productsService; public ProductsController(IProductsService product...
28.505263
129
0.528065
[ "MIT" ]
tonchevaAleksandra/C-Sharp-Web-Development-SoftUni-Problems
C# Web Basic/SUS September 2020 Session/Andreys/Controllers/ProductsController.cs
2,710
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...
42.801282
943
0.644601
[ "Apache-2.0" ]
polivbr/pulumi-azure-native
sdk/dotnet/Maintenance/V20210501/GetMaintenanceConfiguration.cs
6,677
C#
using System; using System.Collections.Generic; using System.Linq; using CommandLine; using CommandLine.Text; namespace ChatopsBot.Commands { public class Command { public bool ParsingSuccess { get; set; } = true; public bool ExecutingSuccess { get; set; } = false; public...
40.576208
239
0.55749
[ "MIT" ]
stombeur/chatopsbot
src/ChatopsBot.Commands/Commands.cs
10,917
C#
namespace OurUmbraco.Community.Nuget { using System; using Newtonsoft.Json; public class NugetRegistrationCatalogEntry { [JsonProperty("published")] public DateTime PublishedDate { get; set; } } }
18.153846
51
0.665254
[ "MIT" ]
AaronSadlerUK/OurUmbraco
OurUmbraco/Community/Nuget/NugetRegistrationCatalogEntry.cs
238
C#
using System; using System.Xml.Serialization; namespace Aop.Api.Response { /// <summary> /// KoubeiAdvertCommissionCascademissionCreateResponse. /// </summary> public class KoubeiAdvertCommissionCascademissionCreateResponse : AopResponse { } }
20.692308
81
0.732342
[ "Apache-2.0" ]
Varorbc/alipay-sdk-net-all
AlipaySDKNet/Response/KoubeiAdvertCommissionCascademissionCreateResponse.cs
269
C#
using System; using Windows.UI.Xaml.Controls; using Uno.UI.Samples.Controls; using Windows.Storage.Pickers; using Uno.UI.Samples.UITests.Helpers; using Windows.UI.Core; using Windows.Storage; using System.Linq; using System.Collections.ObjectModel; using Uno.Extensions; namespace UITests.Shared.Windows_Storage.Picker...
24.578378
142
0.702221
[ "Apache-2.0" ]
NateTheGreat714/uno
src/SamplesApp/UITests.Shared/Windows_Storage/Pickers/FileOpenPickerTests.xaml.cs
4,549
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using com.rfilkov.components; public class MocapDistributor : MonoBehaviour { public MocapPlayer leftPlayer; public MocapPlayer rightPlayer; bool isLeft; public void SetPlayerAnimation(AnimationClip animClip) { ...
20.428571
58
0.645105
[ "Unlicense" ]
albertobonanni/unity-installation
Assets/MocapDistributor.cs
574
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace Chalmers.ILL.Models.PartialPage { public class ChalmersILLActionProviderReturnDateModel : OrderItemPageModelBase { public ChalmersILLActionProviderReturnDateModel(OrderItemModel orderItemModel) : base(orderI...
28.416667
113
0.794721
[ "MIT" ]
ChalmersLibrary/Chillin
Chalmers.ILL/Models/PartialPage/ChalmersILLActionProviderReturnDateModel.cs
343
C#
using System; #if SUPPORTS_SERIALIZATION using System.Runtime.Serialization; #endif namespace Here { /// <summary> /// Exception thrown when getting a null result where it's not authorized. /// </summary> #if SUPPORTS_SERIALIZATION [Serializable] #endif public sealed class NullResultException : Exc...
23.117647
85
0.608142
[ "MIT" ]
KeRNeLith/Here
src/Here/Exceptions/NullResultException.cs
786
C#
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; public class Motor : MonoBehaviour { public float moveSpeed = 10f; public Vector2 Input { get; set; } private void Update() { Move(Input); } private void Move(Vector2 input) { var...
20.772727
69
0.660832
[ "Apache-2.0" ]
YunShangAR/AR-Housing
Assets/_App/Scripts/Movement/Motor.cs
459
C#
/// <summary> /// /// </summary> /// <remarks> /// Price Elasticity must be negative /// </remarks> public class Iron : Resources { public override Curve demand { get; protected set; } public Iron(float initialAmount, float equilibrium_price, float equilibrium_qty, float price_elastic...
34.382353
250
0.698888
[ "MIT" ]
simplygamedev/trading_game
Trading Game/Assets/Scripts/Resources/Iron.cs
1,171
C#
using Microsoft.AspNetCore.Blazor.Hosting; namespace WordDaze.Client { public class Program { public static void Main(string[] args) { CreateHostBuilder(args).Build().Run(); } public static IWebAssemblyHostBuilder CreateHostBuilder(string[] args) => ...
25.411765
82
0.608796
[ "MIT" ]
chrissainty/worddaze
src/WordDaze.Client/Program.cs
434
C#
using System; using System.Collections.Generic; namespace SRF { public static class SRFIListExtensions { public static T Random<T>(this IList<T> list) { if(list.Count == 0) throw new IndexOutOfRangeException("List needs at least one entry to call Random()"); if (list.Count == 1) return list[0]...
14.88
89
0.642473
[ "MIT" ]
StompyRobot/SRF
Scripts/Extensions/IListExtensions.cs
746
C#
// Copyright 2018 (c) Nutanix. All rights reserved. // Licensed under the MIT License. See LICENSE file in the repository root for full license information. // Purpose: Subnets (virtual networks / vlans) source for 'Nutanix.PowerShell.SDK' // Author: Nutanix // Copyright: Nutanix, 2018 // Owner: PowerShell@nutanix.com ...
26.027778
104
0.608502
[ "MIT" ]
coderGo93/PowerShell
src/Nutanix.PowerShell.SDK/Subnet.cs
5,622
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....
39.34375
128
0.601271
[ "Unlicense" ]
Polimat/Gamma
Entities/DocRepack.cs
1,259
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading; using System.Threading.Tasks; using Elasticsearch.Net; using FluentAssertions; using Tests.Framework.MockResponses; using System.Net; namespace Tests.Framework { public class VirtualClusterConnection : InMemo...
34.288066
210
0.698512
[ "Apache-2.0" ]
RossLieberman/NEST
src/Tests/Framework/VirtualClustering/VirtualClusterConnection.cs
8,332
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 Microsoft.VisualStudio.TestTools.UnitTesting; namespace Test.Reaqtive.Operators { [TestClass] public...
27.785714
71
0.758355
[ "MIT" ]
Botcoin-com/reaqtor
Reaqtor/Samples/Remoting/Tests.Reaqtor.Remoting.Glitching/Operators/DistinctUntilChanged.cs
391
C#
using System; using System.Collections; using System.Collections.Generic; using System.Globalization; using System.Runtime.InteropServices; using System.Runtime.Serialization; using GlmSharp.Swizzle; // ReSharper disable InconsistentNaming namespace GlmSharp { /// <summary> /// Static class that contains stat...
27.333333
86
0.626016
[ "MIT" ]
BitquakeProgramming/GlmSharp
GlmSharp/GlmSharpCompat/Mat2x2/dmat2.glm.cs
984
C#
using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; namespace Lob.Net { public interface ILobCommunicator { Task<T> GetAsync<T>(string url, CancellationToken cancellationToken = default); Task<T> DeleteAsync<T>(string url, CancellationToken cancellationToken...
45.5625
150
0.743484
[ "MIT" ]
adamreed90/lob.net
src/Lob.Net/Interfaces/ILobCommunicator.cs
731
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 of ...
44.90625
154
0.600855
[ "Apache-2.0" ]
AENotFound/Lean
Tests/Common/Util/MarketHoursDatabaseJsonConverterTests.cs
10,059
C#
//Apache2, 2017, WinterDev //Apache2, 2009, griffm, FO.NET namespace Fonet.Fo.Properties { enum BaselineShift : byte { BASELINE = Constants.BASELINE, SUB = Constants.SUB, SUPER = Constants.SUPER } }
21.363636
38
0.629787
[ "Apache-2.0" ]
PaintLab/SaveAsPdf
src/FoDom/Fo/Properties/BaselineShift.cs
237
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SpeedrunComApi.Interfaces { public interface IRateLimitedRequester { /// <summary> /// Create a get request and send it asynchronously to the server. /// </su...
39.529412
114
0.618552
[ "MIT" ]
Failcookie/SpeedrunComApi
SpeedrunComApi/Interfaces/IRateLimitedRequester.cs
2,018
C#
using System.Threading; using Cysharp.Threading.Tasks; using MessagePipe; namespace TebakAngka.Gameplay { public class UserInputState : IGameState { private readonly GameModel _gameModel; private readonly IAsyncRequestHandler<GameStateEnum, int> _answerRequestHandler; public UserInputS...
32.59375
126
0.684564
[ "MIT" ]
laicasaane/TebakAngka
Assets/_Contents/Gameplay/GameStates/UserInputState.cs
1,043
C#
using Sample.Views; using Prism.Ioc; using Prism.Modularity; using Prism.Regions; namespace Sample { public class SampleModule : IModule { public void OnInitialized(IContainerProvider containerProvider) { var regionManager = containerProvider.Resolve<IRegionManager>(); ...
32.642857
96
0.680525
[ "MIT" ]
sequws/MyStarterProjects
PrismMultiModule/Sample/SampleModule.cs
916
C#
/******************************************************************************************** Copyright (c) Microsoft Corporation All rights reserved. Microsoft Public License: This license governs use of the accompanying software. If you use the software, you accept this license. If you do not accept the licens...
40.885496
119
0.665795
[ "BSD-3-Clause" ]
Dark-Tater/Cosmos
source/Archive/MPF/12.0/ProjectPackage.cs
5,356
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. internal static partial class Interop { internal static partial class ComCtl32 { [Flags] pu...
26.779661
71
0.443038
[ "MIT" ]
AndreRRR/winforms
src/System.Windows.Forms.Primitives/src/Interop/ComCtl32/Interop.LVCF.cs
1,582
C#
using Microsoft.EntityFrameworkCore; using PaymentGateway.Application.Interfaces.Storage.Write; using PaymentGateway.Domain.Common; using PaymentGateway.Persistence.InMemory.Context; using PaymentGateway.Persistence.InMemory.DataEntities; using System.Threading.Tasks; namespace PaymentGateway.Persistence.InMemory.Rep...
31.05
97
0.591787
[ "Unlicense" ]
marnezos/PaymentGateway
PaymentGateway.Persistence.InMemory/Repositories/BaseWriteRepository.cs
1,244
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...
53.727941
151
0.608321
[ "Apache-2.0" ]
polivbr/pulumi-azure-native
sdk/dotnet/Network/V20200601/LocalNetworkGateway.cs
14,614
C#
namespace OpenGLBindings { /// <summary> /// Not used directly. /// </summary> public enum LightEnvParameterSgix { /// <summary> /// Original was GL_LIGHT_ENV_MODE_SGIX = 0x8407 /// </summary> LightEnvModeSgix = 33799 } }
21.307692
56
0.566787
[ "MIT" ]
DeKaDeNcE/WoWDatabaseEditor
Rendering/OpenGLBindings/LightEnvParameterSgix.cs
277
C#
using System.Threading.Tasks; using Abp.Domain.Entities; using Abp.DynamicEntityParameters; using Shouldly; using Xunit; namespace Abp.Zero.SampleApp.Tests.DynamicEntityParameters { public class DynamicParameterValueManager_Tests : DynamicEntityParametersTestBase { private readonly IDynamicParameterVa...
33.263768
122
0.559341
[ "MIT" ]
Aytekin/aspnetboilerplate
test/Abp.Zero.SampleApp.Tests/DynamicEntityParameters/DynamicParameterValueManager_Tests.cs
11,478
C#
using System.Linq; using NeoSharp.Application.Client; using NeoSharp.Core; using NeoSharp.Core.DI; using NeoSharp.Core.Extensions; namespace NeoSharp.Application.DI { public class ClientModule : IModule { public void Register(IContainerBuilder containerBuilder) { containerBuilder.R...
37.655172
121
0.68956
[ "MIT" ]
wy/neo-sharp
src/NeoSharp.Application/DI/ClientModule.cs
1,094
C#
using System.Collections.Generic; using System.Runtime.Serialization; namespace LogicMonitor.Api.Data { /// <summary> /// Raw LogicMonitor Data /// </summary> [DataContract] public class Data { /// <summary> /// Data Values /// </summary> [DataMember(Name = "values")] public Dictionary<string, object[]...
20.8
64
0.639423
[ "MIT" ]
tdicks/LogicMonitor.Api
LogicMonitor.Api/Data/Data.cs
624
C#
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace TicketOffice.Models; public class RouteCity { [Key] public int Id { get; set; } [MaxLength(24, ErrorMessage = "Назва міста не може бути більше 24 символів"), MinLength(2, ErrorMessage = "На...
31.625
81
0.667984
[ "MIT" ]
cuqmbr/ticket-office
TicketOffice/Models/RouteCity.cs
1,168
C#
using System; using System.IO; using System.Data.SQLite; using System.Data.SqlClient; namespace MemeTeamPro { internal class Program { static void Main(string[] args) { UserInterface UI = new UserInterface(); UI.Start(); // /*Database database...
39.621622
142
0.538881
[ "MIT" ]
Antenni/memeteam
src/AgileGroupwork/Program.cs
2,934
C#
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
33.972727
111
0.555526
[ "CC0-1.0" ]
anton-vinogradov/ignite
modules/platforms/dotnet/Apache.Ignite/Service/IgniteService.cs
7,474
C#
using EmbeddedMvc.IdentityServer; using Microsoft.IdentityModel.Protocols; using Microsoft.Owin; using Microsoft.Owin.Security; using Microsoft.Owin.Security.Cookies; using Microsoft.Owin.Security.Google; using Microsoft.Owin.Security.OpenIdConnect; using Owin; using System; using System.Collections.Generic; using Sys...
42.575342
152
0.514479
[ "Apache-2.0" ]
AkhilNaidu09/IdentityServer3.Samples
source/MVC Authentication/EmbeddedMvc/Startup.cs
6,218
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace getCardUid { public partial class ventanaCara : Form { public ventanaCara() ...
18.142857
43
0.692913
[ "MIT" ]
3dangs28/bioLector
getCardUid/ventanaCara.cs
383
C#
#if MIXTURE_SHADERGRAPH using UnityEngine; using UnityEditor.ShaderGraph; using UnityEditor.Graphing; namespace Mixture { [Title("Custom Texture", "Size")] class CustomTextureSize : AbstractMaterialNode, IGeneratesFunction { private const string kOutputSlotWidthName = "Texture Width"; private const str...
41.147239
173
0.65126
[ "MIT" ]
IxxyXR/PolyGraph
Packages/com.alelievr.mixture/Editor/CustomTextureShaderGraph/CustomTextureNodes.cs
6,707
C#
#region LICENSE /* MIT License Copyright (c) 2018 bugbit 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, copy, modify, merge,...
38.393443
98
0.698975
[ "MIT" ]
bugbit/MiniCAS
MiniCAS.Core/Extensions/TimeSpanExtensions.cs
2,344
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace Website_RegLog { public partial class Home : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } } }
18.470588
60
0.687898
[ "MIT" ]
HeshamFawzy/Website-RegLog
Website-RegLog/Website-RegLog/Home.aspx.cs
316
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...
26.827586
81
0.647815
[ "Apache-2.0" ]
polivbr/pulumi-azure-native
sdk/dotnet/DataMigration/V20180331Preview/Inputs/BlobShareArgs.cs
778
C#
// Licensed under the BSD license // See the LICENSE file in the project root for more information using System.Collections.Generic; using NLog.Targets.Syslog.Settings; namespace NLog.Targets.Syslog.MessageCreation { internal class LogLevelSeverityMapping { private readonly IDictionary<LogLe...
38.285714
87
0.656716
[ "BSD-3-Clause" ]
JTOne123/NLog.Targets.Syslog
src/NLog.Targets.Syslog/MessageCreation/LogLevelSeverityMapping.cs
1,045
C#
using System; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; namespace Multilinks.Core.Services.Migrations { public partial class AddNotificationsTable : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migra...
37.342857
122
0.58378
[ "MIT" ]
andym-2iV/MultilinksCore
Multilinks.Core/Services/Migrations/20190609101402_AddNotificationsTable.cs
1,309
C#
using Newtonsoft.Json; using RestSharp; using System; using System.Net; namespace gpayments.Utils { public static class ProcessResponse { public static T Process<T>(IRestResponse response) where T : class { if(IsError(response.StatusCode)) { throw new Ex...
36.333333
174
0.629096
[ "MIT" ]
djhvscf/gpayments-dotnet
gpayments-dotnet/Utils/ProcessResponse.cs
1,528
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Toggl.DataObjects; using Toggl.QueryObjects; namespace Toggl.Interfaces { public interface IReportServiceAsync { IApiServiceAsync ToggleSrv { get; set; } Task<DetailedRepo...
21.222222
78
0.759162
[ "MIT" ]
DannyRusnok/TogglAPI.Net
TogglAPI.NetStandard/Interfaces/IReportServiceAsync.cs
384
C#
using System; using System.Collections.Generic; using System.Text; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace AlgoTest.LeetCode.Custom_Sort_String { [TestClass] public class Custom_Sort_String { [TestMethod] public void Test() { Assert.AreEqual("cbad"...
25.510638
70
0.477064
[ "MIT" ]
sagasu/Algo-DataStructures
AlgoTest/LeetCode/Custom Sort String/Custom Sort String.cs
1,201
C#
namespace Nzy3d.Maths { public enum PlaneAxis { X, Y, Z } }
6.9
22
0.594203
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
BobLd/Nzy3d
Nzy3d/Maths/PlaneAxis.cs
69
C#
using System; using System.IO; namespace PdfToolConsole.Tests { namespace PdfToolConsoleTest { public abstract class PdfToolConsoleTestBase : IDisposable { protected const string _testDataDir = "../../../TestData"; protected const string _existFileName = "PdfRotateTest....
26.363636
72
0.46092
[ "MIT" ]
shuheydev/PdfTool
src/PdfToolConsole.Tests/PdfToolConsoleTestBase.cs
872
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; using System.Runtime.InteropServices; using System.Threading.Tasks; namespace System.Thre...
35.25
119
0.611955
[ "MIT" ]
Dotnet-GitSync-Bot/corert
src/System.Private.CoreLib/src/System/Threading/Timer.Windows.cs
2,961
C#
/* * Copyright 2010-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "l...
30.987179
104
0.628879
[ "Apache-2.0" ]
Melvinerall/aws-sdk-net
sdk/src/Services/Athena/Generated/Model/ListWorkGroupsResponse.cs
2,417
C#
using Imagini.Drawing; using Imagini.Fonts; using Imagini.Fonts.Renderers; namespace Imagini.Fonts { /// <summary> /// Contains Graphics class related extension methods. /// </summary> public static class GraphicsExtensions { /// <summary> /// Creates a text renderer for the specifi...
30.45
76
0.661741
[ "MIT" ]
project-grove/imagini
Imagini.Fonts/GraphicsExtensions.cs
609
C#
namespace GigHub.Migrations { using System; using System.Data.Entity.Migrations; public partial class AddingUserNotificationTable : DbMigration { public override void Up() { CreateTable( "dbo.UserNotifications", c => new ...
36.083333
91
0.516551
[ "MIT" ]
HalfBlood-Prince/GigHub
GigHub/Persistence/Migrations/201806061814009_AddingUserNotificationTable.cs
1,299
C#
// Copyright (c) Stride contributors (https://stride3d.net) and Silicon Studio Corp. (https://www.siliconstudio.co.jp) // Distributed under the MIT license. See the LICENSE.md file in the project root for more information. #if STRIDE_UI_SDL using System; using System.Collections.Generic; using Stride.Core.Mathematics; ...
36.206751
126
0.483394
[ "MIT" ]
Aggror/Stride
sources/engine/Stride.Graphics/SDL/Application.cs
8,581
C#
#region License // Copyright (c) 2014 The Sentry Team and individual contributors. // All rights reserved. // // 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 ...
48.347826
101
0.706385
[ "BSD-3-Clause" ]
SPARTAN563/raven-csharp
src/app/SharpRaven/Logging/IScrubber.cs
2,226
C#
using Liversage.Primitives; using System; using System.Text.Json.Serialization; namespace SystemTextJson { [Primitive] [JsonConverter(typeof(TimestampConverter))] public readonly partial struct Timestamp { readonly DateTimeOffset timestamp; public static Timestamp Now => DateTimeOffse...
25.904762
74
0.71875
[ "MIT" ]
Liversage/Primitives
Samples/SystemTextJson/Timestamp.cs
546
C#
using System; using EventStoreBasics.Tests.Tools; using FluentAssertions; using Npgsql; using Xunit; namespace EventStoreBasics.Tests { public class Exercise05StreamAggregation { class User { public Guid Id { get; private set; } public string Name { get; p...
27.636364
86
0.517909
[ "MIT" ]
WaleedMKasem/EventSourcing.NetCore
Workshop/01-EventStoreBasics/EventStoreBasics.Tests/Exercise05StreamAggregation.cs
2,736
C#
namespace Atc.Rest.Tests.Extensions; public class ApplicationInsightsExtensionsTests { [Fact] public void GetApiName() { // Arrange var serviceCollection = new ServiceCollection(); // Act var actual = serviceCollection.AddCallingIdentityTelemetryInitializer(); // A...
22.5
80
0.644444
[ "MIT" ]
atc-net/atc-common
test/Atc.Rest.Tests/Extensions/ApplicationInsightsExtensionsTests.cs
405
C#
using BuildingBlocks.Web; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Swashbuckle.AspNetCore.Annotations; namespace Reservation.Reservations.Features.CreateReservation; [Route(BaseApiPath + "/reservation")] public class CreateReservationEndpoint : B...
33.56
98
0.779499
[ "MIT" ]
xpertdev/Airline-Microservices
src/Services/Airline.Reservation/src/Reservation/Reservations/Features/CreateReservation/CreateReservationEndpoint.cs
839
C#
// This file is auto-generated, don't edit it. Thanks. using System; using System.Collections.Generic; using System.IO; using Tea; namespace AlibabaCloud.SDK.Dingtalkrobot_1_0.Models { public class BatchRecallGroupRequest : TeaModel { /// <summary> /// 机器人的robotCode /// </summary> ...
23.25
58
0.590203
[ "Apache-2.0" ]
aliyun/dingtalk-sdk
dingtalk/csharp/core/robot_1_0/Models/BatchRecallGroupRequest.cs
857
C#
using System; using System.Collections.Generic; namespace DotNetReleaser.Changelog; public class ChangelogCollection { public ChangelogCollection() { Version = ChangelogVersionModel.Empty; PreviousVersion = ChangelogVersionModel.Empty; CompareUrl = string.Empty; CommitChanges ...
34.055556
140
0.724307
[ "BSD-2-Clause" ]
xoofx/dotnet-releaser
src/dotnet-releaser/Changelog/ChangelogCollection.cs
1,228
C#
using System; using System.Runtime.InteropServices; namespace Swift.Interop { //https://github.com/apple/swift/blob/852585e491e929d1d0da115f92626dd5aa1f871b/include/swift/Reflection/Records.h#L126 public enum FieldDescriptorKind : short { // Swift nominal types. Struct, Class, Enum, // Fixed-size multi...
27.232877
119
0.748491
[ "MIT" ]
CartBlanche/Xamarin.SwiftUI
src/SwiftUI/Swift/Interop/FieldDescriptor.cs
1,990
C#
// This code is part of the Fungus library (http://fungusgames.com) maintained by Chris Gregan (http://twitter.com/gofungus). // It is released for free under the MIT open source license (https://github.com/snozbot/fungus/blob/master/LICENSE) using UnityEngine; using UnityEngine.Serialization; using System.Collections...
34.658228
125
0.607012
[ "MIT" ]
stevehalliwell/fungus
Assets/Fungus/Thirdparty/iTween/Commands/RotateTo.cs
2,738
C#
using System.Threading.Tasks; using AppInsights.EnterpriseTelemetry; using Microsoft.AspNetCore.Http; using Microsoft.FeatureManagement; using Microsoft.Extensions.Configuration; using Microsoft.FeatureFlighting.Core.Spec; using static Microsoft.FeatureFlighting.Common.Constants; namespace Microsoft.FeatureFlighting....
36.384615
222
0.786469
[ "MIT" ]
microsoft/FeatureFlightingManagement
src/service/Domain/FeatureFilters/RegionFilter.cs
948
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.Xna.Framework; using StardewValley; using StardewValley.Characters; namespace StardustCore.Utilities { public class JunimoAdvanceMoveData { public string junimoActorID; ...
30.335526
209
0.45977
[ "MIT" ]
JitterDev/Stardew_Valley_Mods
GeneralMods/StardustCore/Utilities/JunimoAdvanceMoveData.cs
4,611
C#
using System; using System.Threading.Tasks; using Jasper.Messaging.Sagas; using Shouldly; using Xunit; namespace IntegrationTests.Persistence.Marten.Persistence.Sagas { public class GuidBasicWorkflow : BasicWorkflow<GuidWorkflowState, GuidStart, GuidCompleteThree, Guid> { public GuidWorkflowState Star...
25.2
108
0.513057
[ "MIT" ]
SVemulapalli/jasper
src/IntegrationTests/Persistence/Marten/Persistence/Sagas/basic_mechanics_with_guid.cs
3,908
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // 有关程序集的一般信息由以下 // 控制。更改这些特性值可修改 // 与程序集关联的信息。 [assembly: AssemblyTitle("SpiderManCommon")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: Assemb...
25.702703
56
0.716088
[ "MIT" ]
daohunliwei/spider-csharp
SpiderMan/SpiderManCommon/Properties/AssemblyInfo.cs
1,302
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.774194
151
0.585343
[ "MIT" ]
ifbeginend/TransactSqlAnalyzer
Source/TransactSqlAnalyzer.Gui/Properties/Settings.Designer.cs
1,080
C#
using System.Collections.Generic; namespace Greg.Xrm.EnvironmentSolutionsComparer.Views.Solutions.ComponentResolution { public interface IResolver { void Resolve(SolutionComponentGrid grid, IReadOnlyCollection<ConnectionModel> connections); } }
25.2
93
0.837302
[ "MIT" ]
neronotte/Greg.Xrm
src/Greg.Xrm.EnvironmentSolutionsComparer/Views/Solutions/ComponentResolution/IResolver.cs
254
C#
namespace CadAlunos { partial class Form1 { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <param na...
42.919192
167
0.604613
[ "MIT" ]
brunovolz/WindowsForms
CadAlunos/Form1.Designer.cs
4,251
C#
using System; using System.Collections.Generic; using System.Text; /////////////////////////////////// // JHUNELL BARCENAS // /////////////////////////////////// namespace GDC.PH.AIDE.BusinessLayer { public class clsWorkplaceAudit : BusinessObjectBase { #region InnerClass public en...
26.945652
123
0.455224
[ "BSD-3-Clause" ]
chriscg/aide-backend
AIDEBackendMaster/GDC.PH.AIDE.BusinessLayer/clsWorkplaceAudit.cs
4,958
C#
using System; using System.Diagnostics; using System.Linq; using Get_Interfaces.Utils; namespace Get_Interfaces { internal static class Program { #region Fields private static readonly string[] Modules = {"client.dll", "engine2.dll", "vstdlib.dll", "vgui2.dll", "gameui2.dll", "vgu...
28.973684
110
0.520436
[ "MIT" ]
Vacko/Source-Engine-2-Interfaces
Source-Engine-2-Interfaces/Program.cs
1,103
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using lm.Comol.Core.DomainModel; namespace lm.Comol.Modules.Standard.Menu { [Serializable] public class ModuleMenu { public const String UniqueCode = "SRVmenu"; public virtual Boolean ManagePortalMenubar ...
45.166667
203
0.654718
[ "MIT" ]
EdutechSRL/Adevico
3-Business/3-Modules/lm.Comol.Modules.Standard/Menu/Domain/ModuleMenu.cs
3,796
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.Diagnostics; using System.IO; using System.Threading.Tasks; using NuGet.Configuration; using NuGet.Protocol.Core.Types; using NuGet.Test.Ut...
32.508197
112
0.544377
[ "Apache-2.0" ]
0xced/NuGet.Client
test/NuGet.Core.Tests/NuGet.Commands.Test/RequestFactoryTests.cs
3,966
C#
using System; using System.Collections.Generic; using Android.Runtime; using Java.Interop; namespace Com.Payment.Paymentsdk.Sharedclasses.Model.Request { // Metadata.xml XPath class reference: path="/api/package[@name='com.payment.paymentsdk.sharedclasses.model.request']/class[@name='CardDetails']" [global::Android...
53.807292
383
0.735553
[ "MIT" ]
amr-Magdy-PT/xamarin-paytabs-binding
android/PaymentSDK.Binding/obj/Debug/generated/src/Com.Payment.Paymentsdk.Sharedclasses.Model.Request.CardDetails.cs
10,331
C#
using Newtonsoft.Json.UnityConverters.Helpers; using UnityEngine; namespace Newtonsoft.Json.UnityConverters { /// <summary> /// Custom Newtonsoft.Json converter <see cref="JsonConverter"/> for a type containing only Unitys integer version of the Vector3 type <see cref="Vector3Int"/>, /// </summary> pu...
35.423077
164
0.697068
[ "MIT" ]
Adsolution/Ray1Map
Assets/Scripts/Libraries/UnityConverters/PartialVector3IntConverter.cs
923
C#
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; public abstract class EntityBase : MonoBehaviour { public event Action<EntityBase> OnDeath = (entity) => { }; public bool movedThisTurn { get; set; } public EntityBase InteractingWith { get; set; } ...
19.225
63
0.63199
[ "MIT" ]
saint-angels/Silkworms
Assets/Scripts/Entities/EntityBase.cs
771
C#
using System; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using OptionsPatternMvc.Example.Settings; using OptionsPatternValidation; namespace OptionsPatternMvc.Examp...
29.924528
112
0.652585
[ "MIT" ]
tgharold/OptionsPatternValidation
examples/OptionsPatternMvc.Example/Startup.cs
1,586
C#
using Cosmos.Business.Extensions.Holiday.Configuration; // ReSharper disable once CheckNamespace namespace Cosmos.Business.Extensions.Holiday { /// <summary> /// United States Holiday Provider Extensions /// </summary> public static class UnitedStatesHolidayProviderExtensions { /// <summary...
36.608696
172
0.662708
[ "Apache-2.0" ]
cosmos-open/Holiday
src/Cosmos.Business.Extensions.Holiday/Cosmos/Business/Extensions/Holiday/Definitions/NorthAmerica/UnitedStates/UnitedStatesHolidayProviderExtensions.cs
842
C#
using System; using System.Collections; using Zyan.Communication.ChannelSinks.Compression; using Zyan.Communication.ChannelSinks.Encryption; using Zyan.Communication.Transport; namespace Zyan.Communication.Protocols { /// <summary> /// Base client protocol setup with support for user-defined authentication...
28.048951
134
0.6365
[ "MIT" ]
ErrCode/Zyan.Core.LocalIPC
branches/withoutremoting/Zyan.Communication/Protocols/CustomClientProtocolSetup.cs
4,013
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("HK...
39.378378
84
0.743308
[ "Apache-2.0" ]
JackyLi918/HKH
HKHProjects/DataProvider/DapperLinq/HKH.Linq.SqlServer/Properties/AssemblyInfo.cs
1,460
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace QuieroPizza.BL { public class Categoria { public int Id { get; set; } public string Descripcion { get; set; } } }
18
47
0.677778
[ "MIT" ]
cfreyes/quieropizza
QuieroPizza/QuieroPizza.BL/Categoria.cs
272
C#
using System; using LanguageBasics.Common; using Xunit; namespace LanguageBasics { public class ArrayOperations { [Fact] public void should_access_certain_element_by_position() { var array = new[] {'a', 'e', 'i', 'o', 'u'}; char elementAtIndex2 = arr...
32.592105
85
0.562374
[ "MIT" ]
WorkSharp/01_NewbieVillage
src/LanguageBasics/03_ArrayOperations.cs
2,479
C#
using Newtonsoft.Json; namespace Common.DTOs.SlackAppDTOs { public class ReactionEventDto { [JsonProperty("type")] public string Type { get; set; } [JsonProperty("user")] public string User { get; set; } [JsonProperty("reaction")] public string Reaction { get; ...
22.68
44
0.57672
[ "MIT" ]
projectunic0rn/pub-api
src/Pub/Common/DTOs/SlackAppDtos/ReactionEventDto.cs
567
C#
using EasyEPlanner.PxcIolinkConfiguration.Interfaces; using EasyEPlanner.PxcIolinkConfiguration.Models; using System.IO; using System.Xml.Serialization; namespace EasyEPlanner.PxcIolinkConfiguration { public class XmlSensorSerializer : IXmlSensorSerializer { public LinerecorderSensor Deserialize(strin...
31.6
80
0.639241
[ "MIT" ]
KirillGutyrchik/EasyEPLANner
src/PxcIolinkConfiguration/XmlSensorSerializer.cs
950
C#
using Sharp.Redux.Playground.Engine.States; using System.Threading.Tasks; namespace Sharp.Redux.Playground.Engine { public class PlaygroundReduxDispatcher: ReduxDispatcher<RootState, IReduxReducer<RootState>>, IPlaygroundReduxDispatcher { public PlaygroundReduxDispatcher(RootState initialState, IRedux...
31.333333
124
0.755319
[ "MIT" ]
JTOne123/sharp-redux
playground/Sharp.Redux.Playground.Engine/WpfReduxDispatcher.cs
472
C#
// // Copyright (c) Leif Erik Bjoerkli, Norwegian University of Science and Technology, 2015. // Distributed under the MIT License. // (See accompanying file LICENSE or copy at http://opensource.org/licenses/MIT) // using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.T...
31.88587
136
0.502983
[ "MIT" ]
leiferikbjorkli/Kinect2TrackingTopView
PostProcessing/HeatMap.cs
5,869
C#
using System; using System.Collections.Generic; using System.Xml.Serialization; using Newtonsoft.Json; namespace Essensoft.AspNetCore.Payment.Alipay.Domain { /// <summary> /// KoubeiMarketingCampaignIntelligentPromoConsultModel Data Structure. /// </summary> [Serializable] public class KoubeiMarket...
29.246154
101
0.590216
[ "MIT" ]
AkonCoder/Payment
src/Essensoft.AspNetCore.Payment.Alipay/Domain/KoubeiMarketingCampaignIntelligentPromoConsultModel.cs
2,127
C#
using System; using NUnit.Framework; namespace MPT.PropertyChanger.UnitTests { [TestFixture] public class ChildChangedListenerTests { [Test] public void TestMethod1() { } } }
14.125
42
0.610619
[ "MIT" ]
MarkPThomas/MPT.Net
MPT/PropertyChanger/MPT.PropertyChanger.UnitTests/ChangedListener/ChildChangedListenerTests.cs
228
C#
using System.ComponentModel.DataAnnotations; using Abp.Organizations; namespace GSoft.AbpZeroTemplate.Organizations.Dto { public class CreateOrganizationUnitInput { public long? ParentId { get; set; } [Required] [StringLength(OrganizationUnit.MaxDisplayNameLength)] public stri...
25.5
61
0.708683
[ "Apache-2.0" ]
NTD98/ASP_ANGULAR
asset-management-api/src/GSoft.AbpZeroTemplate.Application.Shared/Organizations/Dto/CreateOrganizationUnitInput.cs
359
C#