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 FanKit.Transformers; using System; namespace Retouch_Photo2.Layers { /// <summary> /// ID of <see cref="ILayer"/>. /// </summary> public partial class Layerage : IGetActualTransformer { /// <summary> /// Set value. /// </summary> /// <param name="action"> ac...
25.034483
74
0.48416
[ "MIT" ]
ysdy44/Retouch-Photo2-UWP
Retouch Photo2.Layers/Layerages/Layerage.SetValue.cs
1,454
C#
namespace Microsoft.AspNetCore.Authorization; public static class AuthorizePolicy { public const string Default = "default"; }
22
46
0.787879
[ "MIT" ]
BearerPipelineTest/Adnc
src/ServerApi/Services/Shared/Adnc.Shared.WebApi/Authorize/AuthorizePolicy.cs
134
C#
using System; using Microsoft.EntityFrameworkCore.Migrations; namespace Seed.API.Migrations { public partial class UserModel : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "Users", co...
39.219512
77
0.524254
[ "MIT" ]
HeyBaldur/CoRM
Seed.API/Migrations/20210801221801_UserModel.cs
1,610
C#
using SortAlgorithm; using SortAlgorithm.Logics; using System; using System.Collections.Generic; using System.Linq; using Xunit; namespace SortTests { public class QuickSortMedian3InsertTests { private ISort<int> sort; private string algorithm; private SortType sortType; public...
34.204082
83
0.638027
[ "MIT" ]
guitarrapc/SortAlgorithm
src/SortAlgorithm/SortTests/QuickSortMedian3InsertTests.cs
5,028
C#
using ContosoPets.Ui.Models; using ContosoPets.Ui.Services; using Microsoft.AspNetCore.Mvc.RazorPages; using System.Collections.Generic; using System.Threading.Tasks; namespace ContosoPets.Ui.Pages.Orders { public class IndexModel : PageModel { private readonly OrderService _orderService; publ...
27.590909
83
0.68369
[ "MIT" ]
ambilyks/mslearn-aspnet-core
modules/secure-aspnet-core-identity/src/ContosoPets.Ui/Pages/Orders/Index.cshtml.cs
609
C#
using System; using Microsoft.SPOT; using System.Collections; using System.Diagnostics; namespace NfxLab.MicroFramework.Logging { public class Log { LogFormatter formatter = new LogFormatter(); public string Name { get; set; } public int Level { get; set; } public IAppender[] A...
23.627451
70
0.559336
[ "MIT" ]
NicolasFatoux/NfxLab.Sensors
NfxLab.MicroFramework/Logging/Log.cs
1,205
C#
namespace MagicGradients.Forms.Animation { public class IntegerTweener : ITweener<int> { public int Tween(int @from, int to, double progress) { return (int)(from + (to - from) * progress); } } public class IntegerAnimation : PropertyAnimation<int> { publ...
27.304348
86
0.64172
[ "MIT" ]
rnwelsh/MagicGradients
src/MagicGradients.Forms/Animation/Library/IntegerAnimation.cs
630
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable namespace Azure.ResourceManager.Cdn.Models { /// <summary> The json object containing secret parameters. </summary> internal partial class SecretParameters { /// ...
29.206897
80
0.646989
[ "MIT" ]
ChenTanyi/azure-sdk-for-net
sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/SecretParameters.cs
847
C#
using Svelto.DataStructures; using Svelto.ECS.DataStructures; using Svelto.ECS.Internal; namespace Svelto.ECS.Internal { public interface IReactEngine : IEngine { } public interface IReactOnAdd : IReactEngine { } public interface IReactOnAddEx : IReactEngine { } public interf...
27.196721
107
0.668475
[ "MIT" ]
cathei/Svelto.ECS.Schema
com.sebaslab.svelto.ecs/Core/IEngine.cs
3,318
C#
using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; using CinemaConstructor.Database.Entities; using Microsoft.EntityFrameworkCore; namespace CinemaConstructor.Database.Repositories { public class CompanyRepository { private readonly ApplicationDbContext _context; ...
27.708333
88
0.646617
[ "MIT" ]
dnskk/CinemaConstructor
CinemaConstructor.Database/Repositories/CompanyRepository.cs
1,332
C#
// <copyright file="ValidateControlExtensions.cs" company="Automate The Planet Ltd."> // Copyright 2021 Automate The Planet 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.a...
47.419355
193
0.701361
[ "Apache-2.0" ]
48x16/BELLATRIX
src/Bellatrix.Mobile/validators/ValidateControlExtensions.cs
2,942
C#
using System; using System.Collections.Generic; using System.Configuration; using System.Data; using System.Linq; using System.Threading.Tasks; using System.Windows; namespace Qzone { /// <summary> /// Interaction logic for App.xaml /// </summary> public partial class App : Application { p...
24.565217
142
0.690265
[ "MIT" ]
zhaotianff/Qzone
Qzone/Qzone/App.xaml.cs
567
C#
using System.Windows; using System.Windows.Forms.Integration; namespace Gearset.UserInterface.Wpf.About { /// <summary> /// Interaction logic for AboutWindow.xaml /// </summary> public partial class AboutWindow : Window { public AboutWindow() { InitializeComponent(); ...
22.055556
60
0.634761
[ "MIT" ]
PumpkinPaul/Gearset
Gearset/UserInterface/Wpf/About/AboutWindow.xaml.cs
399
C#
using System.ComponentModel.DataAnnotations; namespace NotificationHub.Sample.API.Models.Notifications { public class NotificationHubOptions { [Required] public string Name { get; set; } [Required] public string ConnectionString { get; set; } } }
20.928571
57
0.672355
[ "Apache-2.0" ]
deepakrout/azure-notificationhubs-samples
NotificationHubSample/NotificationHub.Sample.API/NotificationHub.Sample.API/Models/Notifications/NotificationHubOptions.cs
293
C#
namespace Cars { public class Tesla : ICar, IElectricCar { public string Model { get; set; } public string Color { get; set; } public int Battery { get; set; } public Tesla(string model, string color, int battery) { this.Model = model; this.Co...
24.121212
101
0.461055
[ "MIT" ]
VeselinBPavlov/csharp-oop-basics
09. Interfaces and Abstraction - Lab/Cars/Tesla.cs
796
C#
using UnityEngine; using System.Collections; public class SwitchScene : MonoBehaviour { public string levelName = "Main"; public float minWaitTime = 2f; void Start() { GameManager.Instance.LoadSceneInBackground (this, levelName, false, minWaitTime); } }
20.307692
83
0.757576
[ "MIT" ]
waynewolf/abucket
mermaid/Assets/Script/SwitchScene.cs
266
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // アセンブリに関する一般情報は以下の属性セットをとおして制御されます。 // アセンブリに関連付けられている情報を変更するには、 // これらの属性値を変更してください。 [assembly: AssemblyTitle("JFactory.CsSrcLib.Console")] [assembly: AssemblyDescription("Source Library")] [assembly: AssemblyConf...
30.297297
57
0.749331
[ "MIT" ]
manbou404/CSharpLab
SourceLibrary/00-TemplateCS/CsSrcLib/Console/Properties/AssemblyInfo.cs
1,690
C#
/********************************************** * Pantagruel * Copyright 2015-2016 James Clark **********************************************/ using UnityEngine; using System.Collections; namespace Pantagruel.Serializer { /// <summary> /// Simple dummy component used by the serializer to identify /// Game...
24.515152
77
0.532756
[ "MIT" ]
jamClark/Pantagruel
Assets/Pantagruel/Serializer/Scripts/PrefabId.cs
811
C#
using Xunit; namespace Lncodes.DesignPattern.Bridge.Test { public sealed class BridgeTheoryData : TheoryData<Enemy, Element, uint, uint> { public BridgeTheoryData() { Add(new OrcEnemy(new FireElement()), new WaterElement(), 10, 87); Add(new SlimeEnemy(new WindElement())...
29.866667
81
0.620536
[ "MIT" ]
lncodes/design-pattern-bridge
c#/test/Theory Data/BridgeTheoryData.cs
450
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> //---...
40.083333
80
0.640333
[ "MIT" ]
BoomlabsInc/BCSF
2022-S1/W6/test/obj/Debug/net6.0/test.AssemblyInfo.cs
962
C#
using System; using System.IO; using System.Linq; using System.Security.Cryptography; using System.Security.Cryptography.X509Certificates; using System.Text; using LibUA.Core; using LibUA.Security.Cryptography; using RSACng = LibUA.Security.Cryptography.RSACng; namespace LibUA { public static class UASecurity { pu...
27.704197
268
0.680903
[ "Apache-2.0" ]
pspeybro/LibUA
NET/LibUA/Security.cs
27,067
C#
namespace Kartverket.Geosynkronisering { /// <remarks/> [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.233")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] ...
31.736842
112
0.661692
[ "MIT" ]
HaraldLund/geosynkronisering
Kartverket.Geosynkronisering.Server/Kartverket.Geosynkronisering/Datacontract/ows/DCP.cs
603
C#
//------------------------------------------------------------------------------ // <auto-generated> // Этот код создан программой. // Исполняемая версия:4.0.30319.42000 // // Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае // повторной генерации кода. // </auto-ge...
44.671875
177
0.626093
[ "MIT" ]
Pepsi4/MVVM-Twitter
MinimalMVVM/Properties/Resources.Designer.cs
3,370
C#
using System; namespace NMolecules.DDD { /// <summary> /// Identifies a Repository. Repositories simulate a collection of aggregates to which aggregate instances can be /// added and removed. They usually also expose API to select a subset of aggregates matching certain criteria. Access to /// projecti...
45.909091
125
0.718812
[ "Apache-2.0" ]
GibSral/nmolecules
src/nMolecules.DDD/Attributes/RepositoryAttribute.cs
1,012
C#
using System; using System.Globalization; using System.Linq; using GAPoTNumLib.GAPoT; namespace GAPoTNumLib.Framework.Samples { public static class ClarkeRotation4DSample { public static void Execute() { CultureInfo.CurrentCulture = new CultureInfo("en-US"); //Define b...
52.444444
121
0.565774
[ "MIT" ]
ga-explorer/GAPoTNumLib
GAPoTNumLib/GAPoTNumLib.Framework/Samples/ClarkeRotation4DSample.cs
10,386
C#
using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class StoreManager : MonoBehaviour { [SerializeField] private Image phone = null; [SerializeField] private Button store = null; [SerializeField] private Button storeExit = null; public List<Item> Items { get; private se...
22.933333
69
0.553987
[ "MIT" ]
TheRaizer/ClickerGame
Assets/Scripts/StoreManager.cs
2,410
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. using System.Reflection; using System.Resources; using System.Runtime.InteropServices; [assembly: AssemblyTitle("Microsoft Azure Batch AI Management Library")] [...
41.2
108
0.783981
[ "MIT" ]
0rland0Wats0n/azure-sdk-for-net
sdk/batchai/Microsoft.Azure.Management.BatchAI/src/Properties/AssemblyInfo.cs
824
C#
using System; using System.Collections.Generic; using System.Numerics; namespace VrmLib { public class MToonMaterial : UnlitMaterial { public override LinearColor BaseColorFactor { get => Definition.Color.LitColor; set => Definition.Color.LitColor = value; ...
32.153061
134
0.566487
[ "MIT" ]
hiroj/UniVRM_1_0
Assets/vrmlib/Runtime/Vrm/MToonMaterial.cs
3,151
C#
// <copyright file="TestRunLogService.cs" company="Automate The Planet Ltd."> // Copyright 2020 Automate The Planet 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.or...
36.683333
94
0.632894
[ "Apache-2.0" ]
AutomateThePlanet/Meissa
Meissa.Core.Services/TestRunLogService.cs
2,203
C#
using System; using System.Net; namespace Htc.Vita.Core.Net { public static class SecurityProtocolManager { public static SecurityProtocolType GetAvailableProtocol() { var result = (SecurityProtocolType) 0; foreach (var securityProtocolType in (SecurityProtocolType[]) E...
25.578947
119
0.615226
[ "MIT" ]
kenykhung/vita_core_csharp
source/Htc.Vita.Core/Net/SecurityProtocolManager.cs
488
C#
namespace NotificationApi.Common.Configuration { public class SettingsConfiguration { public bool DisableHttpsRedirection { get; set; } } }
20
57
0.7125
[ "MIT" ]
hmcts/vh-notification-api
NotificationApi/NotificationApi.Common/Configuration/SettingsConfiguration.cs
160
C#
using System.Collections.Generic; using Bio.Algorithms.Assembly.Graph; namespace Bio.Algorithms.Assembly.Padena { /// <summary> /// Interface for eroding graph nodes that have /// low coverage. /// </summary> public interface IGraphEndsEroder { /// <summary> /// Gets the name o...
38.769231
83
0.637566
[ "Apache-2.0" ]
dotnetbio/bio
Source/Bio.Core/Algorithms/Assembly/Padena/IGraphNodesEroder.cs
1,514
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/d3d12.h in the Windows SDK for Windows 10.0.22000.0 // Original source is Copyright © Microsoft. All rights reserved. using NUnit.Framework; using System....
37.771429
145
0.720877
[ "MIT" ]
reflectronic/terrafx.interop.windows
tests/Interop/Windows/DirectX/um/d3d12/D3D12_RANGE_UINT64Tests.cs
1,324
C#
using System; using System.Collections.Generic; using System.Diagnostics.Tracing; using System.Fabric; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.ServiceFabric.Services.Runtime; namespace BadStateful { [EventSource(Name = "MyCompany-BadApplication-BadStateful")] intern...
47.804598
210
0.653282
[ "MIT" ]
Haishi2016/ProgrammingServiceFabric
Chapter-6/BadApplication/BadStateful/ServiceEventSource.cs
8,320
C#
using System.Windows; namespace Shouter.Views { /// <summary> /// Interaction logic for AddEditDialog.xaml /// </summary> public partial class AddEditDialog : Window { public AddEditDialog() { InitializeComponent(); this.Owner = Application.Current.MainWindo...
20.058824
56
0.589443
[ "MIT" ]
mpnogaj/Radio
Shouter/Views/AddEditDialog.xaml.cs
343
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...
25.5
81
0.617647
[ "Apache-2.0" ]
pulumi-bot/pulumi-azure-native
sdk/dotnet/Network/V20200801/Outputs/RetentionPolicyParametersResponse.cs
918
C#
using Microsoft.AspNetCore.Components; using System; using System.Reflection; using System.Collections.Generic; using System.Linq; namespace Supercode.Blazor.BreadcrumbNavigation.Services { class BreadcrumbService : IBreadcrumbService { public event Action<RenderFragment>? Added; public event...
27.631579
98
0.593016
[ "MIT" ]
jnprr/blazor-breadcrumb-navigation
src/Supercode.Blazor.BreadcrumbNavigation/Services/BreadcrumbService.cs
1,577
C#
using UnityEngine; namespace Febucci.UI.Core { class BounceBehavior : BehaviorSine { public override void SetDefaultValues(BehaviorDefaultValues data) { amplitude = data.defaults.bounceAmplitude; frequency = data.defaults.bounceFrequency; waveSize = data.def...
29.552632
158
0.549421
[ "Apache-2.0" ]
gerlogu/Shooter
Game/Assets/Game/Plugins/Febucci/Text Animator/Effects/Behavior Effects/Defaults/BounceBehavior.cs
1,125
C#
using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using Sky.Common; using Sky.Entity; using Sky.RepsonsityService.IService; using Sky.Web.WebApi.Jwt; using Sky.Web.WebApi.Models; using System; using System.Collections.Generic; using System.Linq...
34.007576
129
0.543551
[ "MIT" ]
mylinx/Sky.Web
Sky.Web.WebApi/Controllers/RoutersControllers/RoutersController.cs
4,519
C#
using System; namespace Yort.Zip.InStore { /// <summary> /// Provides details of a successful refund created by <see cref="IZipClient.RefundOrderAsync(RefundOrderRequest)"/>. /// </summary> public class RefundOrderResponse { /// <summary> /// A unique refund id generated by Zip. /// </summary> public str...
26.354839
118
0.663403
[ "MIT" ]
Yortw/Yort.Zip.InStore
src/RefundOrderResponse.cs
819
C#
using System; using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging.Abstractions; using Polly; using Silky.Core; using Silky.Core.Exceptions; using Silky.Core.Extensions; using Silky.Core.Logging; using Silky.Core.Runtime.Rpc; using Silky.Rpc.Auditi...
51.234375
113
0.642116
[ "MIT" ]
Dishone/silky
framework/src/Silky.Rpc/Runtime/Server/DefaultServerFallbackHandler.cs
6,558
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; namespace SudokuGame { static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void ...
22.130435
65
0.611002
[ "Apache-2.0" ]
pranavd/sudoku
SudokuGame/Program.cs
511
C#
/* * ArcsToLines.cs - part of CNC Controls library for Grbl * * v0.15 / 2020-04-20 / Io Engineering (Terje Io) * */ /* Copyright (c) 2020, Io Engineering (Terje Io) All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following co...
42.576271
201
0.594148
[ "BSD-3-Clause" ]
Jmerk523/Grbl-GCode-Sender
CNC Controls/CNC Controls/ArcsToLines.cs
5,029
C#
using Blazorise; using System; namespace BlazorBase.CRUD.Attributes { public class DateDisplayModeAttribute : Attribute { public DateInputMode DateInputMode { get; set; } } }
17.909091
56
0.71066
[ "MIT" ]
Shevrar/BlazorBase
BlazorBase.CRUD/Attributes/DateDisplayModeAttribute.cs
199
C#
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** 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; names...
38.394366
300
0.640499
[ "ECL-2.0", "Apache-2.0" ]
EladGabay/pulumi-oci
sdk/dotnet/Waas/Outputs/GetWaasPoliciesWaasPolicyWafConfigCaptchaResult.cs
2,726
C#
using Exceptionless.Dependency; using Exceptionless.Serializer; namespace Exceptionless.MessagePack { public static class ExceptionlessConfigurationExtensions { public static void UseMessagePackSerializer(this ExceptionlessConfiguration config) { config.Resolver.Register<IStorageSerializer>(ne...
35.272727
108
0.780928
[ "Apache-2.0" ]
PolitovArtyom/Exceptionless.Net
src/Platforms/Exceptionless.MessagePack/ExceptionlessConfigurationExtensions.cs
390
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...
34.18552
270
0.485043
[ "MIT" ]
nmusco/platform-client-sdk-dotnet
build/src/PureCloudPlatform.Client.V2/Model/SurveyForm.cs
15,110
C#
#if !SLEETLEGACY using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading; using System.Threading.Tasks; using Amazon.S3; using Amazon.S3.Model; using Amazon.S3.Transfer; namespace Sleet { public static class AmazonS3FileSystemAbstraction { public const...
33.377358
119
0.576032
[ "MIT" ]
ryancraig/Sleet
src/SleetLib/FileSystem/AmazonS3FileSystemAbstraction.cs
5,307
C#
using System; using System.Threading; namespace MongoDB.Messaging.Change { /// <summary> /// A change subscription /// </summary> public class Subscription : ISubscription { private readonly WeakReference _reference; /// <summary> /// Initializes a new instance of the <see ...
34.225806
124
0.583883
[ "Apache-2.0" ]
IsaacSee/MongoDB.Messaging
Source/MongoDB.Messaging/Change/Subscription.cs
2,122
C#
using HotChocolate.Language; namespace HotChocolate.Validation { /// <summary> /// Fragments must be specified on types that exist in the schema. /// This applies for both named and inline fragments. /// If they are not defined in the schema, the query does not validate. /// /// http://spec.gra...
32.047619
78
0.690936
[ "MIT" ]
husseinraoouf/hotchocolate
src/HotChocolate/Core/src/Core/Validation/FragmentSpreadTypeExistenceRule.cs
673
C#
/*************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-IN...
45.545455
118
0.659681
[ "MIT" ]
48355746/VSSDK-Extensibility-Samples
MSDNSearch/C#/MSDNSearch/GlobalSuppressions.cs
1,004
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging;...
22.689655
54
0.723404
[ "MIT" ]
Radseq/Gold-Chat
Gold-Chat/Gold_Client/View/SendFileControl.xaml.cs
660
C#
// *********************************************************************** // Assembly : IronyModManager.Storage.Tests // Author : Mario // Created : 01-28-2020 // // Last Modified By : Mario // Last Modified On : 03-16-2021 // ****************************************************************...
40.600329
149
0.540409
[ "MIT" ]
SANagisa/IronyModManager
src/IronyModManager.Storage.Tests/StorageTests.cs
24,687
C#
// ReSharper disable All using System.Collections.Generic; using System.Diagnostics; using System.Dynamic; using System.Linq; using System.Net; using System.Net.Http; using System.Web.Http; using MixERP.Net.Api.Framework; using MixERP.Net.ApplicationState.Cache; using MixERP.Net.Common.Extensions; using MixERP.Net.Enti...
24.60396
135
0.558954
[ "MPL-2.0" ]
asine/mixerp
src/Libraries/Web API/Core/Tests/BankAccountViewTests.cs
2,485
C#
using System; using System.Collections.Generic; using System.Threading; using Content.Server.GameObjects.Components.Doors; using Content.Server.GameObjects.EntitySystems.AI.Pathfinding.GraphUpdates; using Content.Server.GameObjects.EntitySystems.AI.Pathfinding.Pathfinders; using Content.Server.GameObjects.EntitySystems...
37.27933
176
0.576053
[ "MIT" ]
hiddenfloret/space-station-14
Content.Server/GameObjects/EntitySystems/AI/Pathfinding/PathfindingSystem.cs
13,346
C#
// // Copyright (c) 2018 The nanoFramework project contributors // Portions Copyright (c) 2016 STMicroelectronics. All rights reserved. // See LICENSE file in the project root for full license information. // using System; using Windows.Devices.Gpio; using Windows.Devices.Spi; namespace nanoFramework.Drivers { ...
28.775281
150
0.51925
[ "MIT" ]
Andrulko/Samples
samples/SPI/L3GD20.Driver/L3GD20.cs
12,807
C#
using System.Collections.Generic; namespace Amazon.Lambda.CloudWatchEvents.ECSEvents { /// <summary> /// A Docker container that is part of a task. /// https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_Container.html /// </summary> public class Container { /// <summary> ...
32.896907
173
0.566907
[ "Apache-2.0" ]
Dreamescaper/aws-lambda-dotnet
Libraries/src/Amazon.Lambda.CloudWatchEvents/ECSEvents/Container.cs
3,193
C#
using System; using System.Collections.Generic; using System.Collections.Specialized; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; using Leisn.UI.Xaml.Extensions; using Microsoft.UI.Xaml.Controls; using Windows.Foundation; using Windows.UI.Xaml; using Windows.UI.Xaml...
29.69
98
0.531829
[ "MIT" ]
leisn/WindowsUIControls
Leisn.UI.Xaml/AutoFill/AutoFillLayoutState.cs
5,940
C#
// Copyright (c) Pomelo Foundation. All rights reserved. // Licensed under the MIT. See LICENSE in the project root for license information. using JetBrains.Annotations; using Microsoft.EntityFrameworkCore.Query.Expressions; using Microsoft.EntityFrameworkCore.Query.Sql; using Microsoft.EntityFrameworkCore.Utilities;...
37.535714
121
0.749762
[ "MIT" ]
DeeJayTC/Pomelo.EntityFrameworkCore.MySql
src/EFCore.MySql/Query/Sql/Internal/MySqlQuerySqlGeneratorFactory.cs
1,053
C#
namespace Cake.Core.Text { /// <summary> /// Represents a text template. /// </summary> public interface ITextTransformationTemplate { /// <summary> /// Registers a key and an associated value. /// </summary> /// <param name="key">The key.</param> /// <param ...
28.571429
66
0.556667
[ "MIT" ]
EvilMindz/cake
src/Cake.Core/Text/ITextTransformationTemplate.cs
602
C#
// <copyright file="DetailLevel.cs" company="Matt Lacey Ltd."> // Copyright (c) Matt Lacey Ltd. All rights reserved. // </copyright> namespace GetLiveXamlInfo { public enum DetailLevel { Outline, Local, All, } }
17.857143
63
0.612
[ "MIT" ]
mrlacey/GetLiveXamlInfo
GetLiveXamlInfo/DetailLevel.cs
252
C#
using System; using System.Collections.Generic; using System.Linq; using Foundation; using UIKit; namespace YutShot.iOS { // The UIApplicationDelegate for the application. This class is responsible for launching the // User Interface of the application, as well as listening (and optionally responding) to ...
34.4375
98
0.674229
[ "MIT" ]
ys-li/yutshot-mobile-game
TestApp/TestApp.iOS/AppDelegate.cs
1,104
C#
using System; using System.Collections.Generic; namespace UserLogs { class Program { static void Main(string[] args) { var logs = new SortedDictionary<string, Dictionary<string, int>>(); GetLogs(logs); DisplayLogs(logs); } private static vo...
26.589041
139
0.438949
[ "MIT" ]
MartsTech/IT-Career
02. Programming/07 - Dictionaries-and-hash-tables/30. Lambda expressions and dictionaries/06. UserLogs/Program.cs
1,943
C#
using System; using System.Collections.Generic; using System.Data.Linq; using System.Linq; using System.Linq.Expressions; using System.Reflection; using System.Text; #if !SILVERLIGHT && !NETFX_CORE using System.Data.SqlTypes; #endif using JetBrains.Annotations; #region ReSharper disables // ReSharper...
70.1375
444
0.516993
[ "MIT" ]
jogibear9988/linq2db
Source/Linq/Expressions.cs
112,222
C#
// Copyright [2014, 2015] [ThoughtWorks Inc.](www.thoughtworks.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 r...
51.621622
156
0.624476
[ "Apache-2.0" ]
getgauge/gauge-visualstudio
Gauge.VisualStudio.Core.Tests/GaugeServiceTests.cs
7,642
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; using System.Collections.Generic; using Microsoft.CodeAnalysis; using Microsoft.Extensions.DependencyModel; using System.Linq; using IOPat...
34.645833
117
0.616356
[ "Apache-2.0" ]
CharlieRoseMarie/EntityFrameworkCore
test/EFCore.Design.Tests/TestUtilities/BuildReference.cs
1,663
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class CheckBoxClick : MonoBehaviour { public string checkBoxName; private bool isButtonClick = false; private int soundStatus; private int levelStatus; private SettingSceneController settingSceneController...
25.725806
96
0.726646
[ "Apache-2.0" ]
xuanthinhJB/mini-game-Unity-example
Swinging surfer/Assets/Script/CheckBoxClick.cs
1,597
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 OmniSharp.Extensions.LanguageServer.Protocol.Models; using OmniSharp.Extensions.LanguageServer.Protocol.Serialization; namespace Microsoft.AspNe...
34.4
111
0.76938
[ "Apache-2.0" ]
Chatina73/AspNetCore-Tooling
src/Razor/src/Microsoft.AspNetCore.Razor.LanguageServer/CodeActions/Models/ExtendedCodeActionContext.cs
518
C#
using ProtoBuf; using Vintagestory.API.Common; using Vintagestory.API.MathTools; namespace BuildingOverhaul.Network { [ProtoContract(ImplicitFields = ImplicitFields.AllFields)] public class BuildingMessage { private BlockPos _position; private byte _face; private Vec3d _hitPosition; private bool _didOffset;...
25.025641
64
0.724385
[ "Unlicense" ]
copygirl/BuildingOverhaul
src/network/BuildingMessage.cs
976
C#
using System; using UnityEngine; using UnityEngine.UI; public class UICanvas : MonoBehaviour { [SerializeField] private int maxLapCount = 3; private int currentLapCount = 1; private decimal timeElapsed = 0; [SerializeField] private Text timeDisplay; [SerializeField] private Text winn...
23.466667
111
0.603693
[ "MIT" ]
taliesinmillhouse/global-game-jam-2018
src/Assets/Scripts/UICanvas.cs
1,410
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.Runtime.InteropServices; // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("a7922dd8-09...
38.888889
111
0.771429
[ "Apache-2.0" ]
CalumJEadie/Security
src/Microsoft.Owin.Security.Interop/Properties/AssemblyInfo.cs
350
C#
using System.Collections.Generic; using System.ComponentModel; using ESRI.ArcGIS.esriSystem; using ESRI.ArcGIS.Geometry; namespace ESRI.ArcGIS.Carto { /// <summary> /// Provides extension methods for the <see cref="IEnumLayer" /> enumeration. /// </summary> public static class LayerAsyncExtension...
44.022727
141
0.641198
[ "MIT" ]
Jumpercables/Wave
src/Wave.Extensions.Esri/ESRI/ArcGIS/Carto/Extensions/Async/LayerAsyncExtensions.cs
1,939
C#
namespace HexiTech.Data.Enums { using System.ComponentModel.DataAnnotations; public enum ProductAvailability { [Display(Name = "Available.")] Available = 1, [Display(Name = "At warehouse.")] AtWarehouse = 2, [Display(Name = "Out of stock.")] OutOfStock = 3 ...
23.285714
48
0.58589
[ "MIT" ]
Th3D4rkStar/HexiTech
HexiTech/Data/Enums/ProductAvailability.cs
328
C#
using System; using CoreGraphics; namespace ImageDiffDemo { internal static class CGColorExtensions { internal static CGColor CreateCGColor(int alpha, int r, int g, int b) { return new CGColor(r / 255.0f, g / 255.0f, b / 255.0f, alpha / 255.0f); } } }
21.571429
83
0.609272
[ "MIT" ]
danipen/ImageDiffDemo
ImageDiffDemo/CGColorExtensions.cs
304
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace MMDB.Shared { public static class DateTimeHelper { public const string TimeZoneIdentifier_EasternStandardTime = "Eastern Standard Time"; public const string TimeZoneIdentifier_MountainStandardTime = "Mountain Standar...
31
102
0.751423
[ "Apache-2.0" ]
mmooney/MMDB.Shared
MMDB.Shared.Core/DateTimeHelper.cs
2,110
C#
using System.Numerics; using Xunit; using SixLabors.Fonts.Tests.Fakes; using System.Collections.Immutable; using SixLabors.Primitives; using System.Collections.Generic; namespace SixLabors.Fonts.Tests { public class TextLayoutTests { [Fact] public void FakeFontGetGlyph() { ...
36.813131
154
0.564412
[ "Apache-2.0" ]
Ref12/Fonts
tests/SixLabors.Fonts.Tests/TextLayoutTests.cs
7,291
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; class Solution { static void Main(String[] args) { string[] tokens_n = Console.ReadLine().Split(' '); int n = Convert.ToInt32(tokens_n[0]); int k = Convert.ToInt32(tokens_n[1]); string[] a_temp = Con...
30.6
80
0.538562
[ "Apache-2.0" ]
pappes/hr
tutorials/t1 - arrays left rotation/simple.cs
765
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...
55.929095
208
0.666936
[ "Apache-2.0" ]
icanread/aws-sdk-net
sdk/src/Services/Glue/Generated/_bcl35/IAmazonGlue.cs
297,375
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. namespace Mi...
48.804124
185
0.641952
[ "MIT" ]
Agazoth/azure-powershell
src/EdgeOrder/generated/api/Support/DescriptionType.cs
4,638
C#
using System; using System.IO; using System.Net; using System.Text; using System.Net.Sockets; using System.Security.Authentication; using System.Security.Cryptography.X509Certificates; namespace Bytewizer.TinyCLR.Sockets.Channel { /// <summary> /// Represents a socket channel between two end points. /// <...
33.611511
109
0.534247
[ "MIT" ]
microcompiler/microserver
src/Bytewizer.TinyCLR.Sockets/Channel/SocketChannel.cs
9,346
C#
using System; using System.Collections.Generic; using System.Linq; using Umbraco.Core.Composing; using Umbraco.Core.Configuration.UmbracoSettings; using Umbraco.Core.Events; using Umbraco.Core.Models; using Umbraco.Core.Services; using Umbraco.Core.Services.Implement; using Umbraco.Web.PublishedCache; namespace Umbra...
41.488095
175
0.646055
[ "MIT" ]
AesisGit/Umbraco-CMS
src/Umbraco.Web/Routing/RedirectTrackingComponent.cs
6,972
C#
using System.Collections.Generic; namespace SandBeige.MediaBox.StyleChecker.Models { internal class Century { public int Number { get; } public IEnumerable<string> EraList { get; } public Century(int number, params string[] eraList) { this.Number = number; this.EraList = eraList; } } }
15.142857
55
0.688679
[ "MIT" ]
southernwind/MediaBox
MediaBox.StyleChecker/Models/Century.cs
318
C#
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Reflection; using System.Text; using Deviser.Admin.Data; namespace Deviser.Admin.Extensions { public static class SortExtensions { /// <summary> /// Adds Ord...
46.764706
239
0.653774
[ "MIT" ]
deviserplatform/deviserplatform
src/Deviser.Core/Deviser.Admin/Extensions/SortExtensions.cs
6,362
C#
// <auto-generated /> using DutchTreat.Data; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage; using Microsoft.EntityFrameworkCore.Storage.In...
30
117
0.507862
[ "MIT" ]
Thalandor/DutchTreat
DutchTreat/Data/Migrations/20180211173346_InitialDb.Designer.cs
3,182
C#
// <copyright> // Copyright 2021 Max Ieremenko // // 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 o...
35.943463
144
0.562033
[ "Apache-2.0" ]
max-ieremenko/ServiceModel.Grpc
Sources/ServiceModel.Grpc.AspNetCore/Internal/ApiExplorer/ApiDescriptionGenerator.cs
10,174
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.Runtime.CompilerServices; [assembly: InternalsVisibleTo("DynamicProxyGenAssembly2, PublicKey=002400000480000094000000060200000024000052534...
125.375
403
0.927218
[ "Apache-2.0" ]
06b/AspNetCore
src/Antiforgery/src/Properties/AssemblyInfo.cs
1,003
C#
using System.Diagnostics; using TheMaths; using WDE.MpqReader.Readers; namespace WDE.MpqReader.Structures { [Flags] public enum WdtFlags : ushort { WdtUsesGlobalMapObj = 1, AdtHasMccv = 2, AdtHasBigAlpha = 4, AdtHasDoodadRefsSortedBySizeCat = 8, FlagLightingVertices...
30.425676
131
0.492561
[ "Unlicense" ]
T1ti/WoWDatabaseEditor
WDE.MpqReader/Structures/WDT.cs
4,505
C#
namespace RedStar.Amounts.StandardUnits { public static class LuminousIntensityUnits { public static readonly Unit Candela = new Unit("candela", "cd", SIUnitTypes.LuminousIntensity); } }
29.571429
103
0.724638
[ "MIT" ]
petermorlion/RedStar.Amounts
RedStar.Amounts.StandardUnits/LuminousIntensityUnits.cs
209
C#
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using System.Collections.Generic; using System.ComponentModel.DataAnnotations; namespace QuicDataServer.Models { public class TestPublishResult : IAuthorizable { [Required] public string PlatformName { get; set; } = nu...
28.304348
78
0.634409
[ "MIT" ]
Bhaskers-Blu-Org2/msquic
src/perf/dbserver/Models/TestPublishResult.cs
653
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using SharpDX.MediaFoundation; namespace Daramkun.Misty.Contents.Decoders.Audios { public class MFDecoder : IDecoder<AudioInfo> { public bool Decode ( Stream stream, out AudioInfo t...
37.243243
122
0.665457
[ "Apache-2.0" ]
Daramkun/Misty
Daramkun.Misty.Platform.Windows.MediaFoundation/Contents/Decoders/Audios/MFDecoder.cs
1,380
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fi...
32.440678
113
0.678683
[ "Apache-2.0" ]
ChristopherButtars/aws-sdk-net
sdk/src/Services/LicenseManager/Generated/Model/ReportContext.cs
1,914
C#
using AElf.Contracts.MultiToken.Messages; using AElf.Sdk.CSharp; using AElf.Types; using Google.Protobuf.WellKnownTypes; namespace AElf.Contracts.TestContract.BasicFunction { /// <summary> /// Action methods /// </summary> public partial class BasicFunctionContract : BasicFunctionContractContainer.Basi...
37.625
179
0.577361
[ "MIT" ]
tomatopunk/AElf
test/AElf.Contracts.TestContract.BasicFunction/BasicContract_Action.cs
4,214
C#
namespace OJS.Web.Areas.Contests.ViewModels.Submissions { using System; using System.Linq.Expressions; using OJS.Common.Models; using OJS.Data.Models; public class TestRunDetailsViewModel { public static Expression<Func<TestRun, TestRunDetailsViewModel>> FromTestRun { ...
37.5
103
0.396111
[ "MIT" ]
SveGeorgiev/OpenJudgeSystem
Open Judge System/Web/OJS.Web/Areas/Contests/ViewModels/Submissions/TestRunDetailsViewModel.cs
1,802
C#
/* Copyright (c) 2014, Lars Brubaker 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 retain the above copyright notice, this list of conditions and the followi...
34.294574
233
0.7309
[ "BSD-2-Clause" ]
krolco/agg-sharp
Csg/Processors/CsgToMesh.cs
8,850
C#
/* Copyright (c) 2009-2011 250bpm s.r.o. Copyright (c) 2007-2009 iMatix Corporation Copyright (c) 2007-2015 Other contributors as noted in the AUTHORS file This file is part of 0MQ. 0MQ is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public ...
38.391553
181
0.465255
[ "BSD-3-Clause" ]
stefanmarks/SentienceLab_UnityFramework
Runtime/Scripts/ThirdParty/NetMQ/Core/Transports/StreamEngine.cs
33,631
C#
namespace movies.Interfaces { public interface IRepositorio { List<T> Lista(); T RetornaPorId(int id); void Insere(T entidade); void Exclui(int id); void Atualiza(int id, T entidade); int ProximoId(); } }
24.75
42
0.511785
[ "MIT" ]
schiblich/upgradeCadastroMedia
movies/Interfaces/IRepositorio.cs
297
C#
using TeamBuilder.App.Core.Commands.Contracts; using TeamBuilder.App.Utilities; using TeamBuilder.Data; using TeamBuilder.Models; namespace TeamBuilder.App.Core.Commands { public class DeleteUserCommand : ICommand { public string Execute(string[] inputArgs) { Check.CheckLength(0, i...
24.909091
76
0.615572
[ "MIT" ]
ViktorAleksandrov/SoftUni--CSharp-DB-Fundamentals
Databases Advanced - Entity Framework/12. Workshop - Team Builder/TeamBuilder.App/Core/Commands/DeleteUserCommand.cs
824
C#
/**************************************************************************** *Copyright (c) 2018 yswenli All Rights Reserved. *CLR版本: 2.1.4 *机器名称:WENLI-PC *公司名称:wenli *命名空间:SAEA.NatSocket *文件名: Class1 *版本号: v4.5.1.2 *唯一标识:ef84e44b-6fa2-432e-90a2-003ebd059303 *当前的用户域:WENLI-PC *创建人: yswenli *电子邮箱:wenguoli_520@qq.com *创...
29.037736
95
0.479532
[ "Apache-2.0" ]
heheheheheri/SAEA-1
Src/SAEA.NatSocket/Upnp/DiscoveryResponseMessage.cs
1,691
C#
using System; namespace Spectre.Console.Cli.Internal { internal sealed class CommandValueBinder { private readonly CommandValueLookup _lookup; public CommandValueBinder(CommandValueLookup lookup) { _lookup = lookup; } public void Bind(CommandParameter param...
33.697479
136
0.545885
[ "MIT" ]
NickWingate/spectre.console
src/Spectre.Console/Cli/Internal/Binding/CommandValueBinder.cs
4,010
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.Dingtalkcontact_1_0.Models { public class GetTranslateFileJobResultResponse : TeaModel { [NameInMap("headers")] [Validation(Required=true)]...
23.130435
71
0.691729
[ "Apache-2.0" ]
aliyun/dingtalk-sdk
dingtalk/csharp/core/contact_1_0/Models/GetTranslateFileJobResultResponse.cs
532
C#