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
// Copyright (c) Six Labors and contributors. // Licensed under the Apache License, Version 2.0. using System.Text; namespace SixLabors.ImageSharp.MetaData.Profiles.Icc { /// <summary> /// Provides methods to read ICC data types /// </summary> internal sealed partial class IccDataReader { ...
33.666667
105
0.556785
[ "Apache-2.0" ]
OwenMcDonnell/ImageSharp
src/ImageSharp/MetaData/Profiles/ICC/DataReader/IccDataReader.cs
3,436
C#
/* EnumComboBoxTest.cs -- * Ars Magna project, http://arsmagna.ru * ------------------------------------------------------- * Status: poor */ #region Using directives using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using S...
21.987952
71
0.493151
[ "MIT" ]
amironov73/ManagedClient.45
Source/UITests/Sources/Tests/EnumComboBoxTest.cs
1,827
C#
using Amazon.JSII.Runtime.Deputy; namespace Amazon.JSII.Tests.CalculatorNamespace { /// <remarks> /// stability: Experimental /// </remarks> [JsiiInterface(nativeType: typeof(IReturnsNumber), fullyQualifiedName: "jsii-calc.IReturnsNumber")] public interface IReturnsNumber { /// <remarks...
34
115
0.622172
[ "Apache-2.0" ]
NyanKiyoshi/jsii
packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IReturnsNumber.cs
884
C#
using System; using System.Collections.Generic; using System.Linq; using System.Drawing; using Scallion.Core; using Scallion.Internal; using Scallion.Raw.Components.Project; namespace Scallion.Raw { internal class Project : MMDFile<Project> { public static readonly string Signature = "Polygon Movie m...
43.437838
111
0.641364
[ "MIT" ]
paralleltree/Scallion
Scallion/Raw/Project.cs
8,038
C#
using System.Collections.Generic; using HappyMapper.AutoMapper.ConfigurationAPI.Configuration; namespace HappyMapper.AutoMapper.ConfigurationAPI { public class TypeMapRegistry { public IDictionary<TypePair, TypeMap> TypeMapsDictionary { get; } = new Dictionary<TypePair, TypeMap>(); public IEnu...
36.75
112
0.763605
[ "MIT" ]
chumakov-ilya/HappyMapper
AutoMapper.ConfigurationAPI/AutoMapper/TypeMapRegistry.cs
588
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 Microsoft.AspNetCore.Http; using Microsoft.IdentityModel.Protocols.WsFederation; namespace Microsoft.AspNetCore.Authentication.WsFederation; /// <summary> /// T...
35.6
117
0.702247
[ "MIT" ]
AndrewTriesToCode/aspnetcore
src/Security/Authentication/WsFederation/src/AuthenticationFailedContext.cs
1,246
C#
using System; using System.Diagnostics; using System.IO; using System.Net; using System.Net.Mail; using System.Runtime.InteropServices; using System.Text; using System.Threading; using System.Windows.Forms; using Timer = System.Threading.Timer; namespace keyLoger { public struct KeyboardHookStruct { ...
35.883871
141
0.60338
[ "CC0-1.0" ]
23S163PR/system-programming
Novak.Andriy/All_Projects/keyLoger/KeyLoger.cs
5,564
C#
// Copyright (c) homuler & The Vignette Authors. Licensed under the MIT license. // See the LICENSE file in the repository root for more details. using System; using System.Runtime.InteropServices; using Akihabara.Core; using Akihabara.Framework.ImageFormat; using Akihabara.Framework.Port; using Akihabara.Native; usin...
33.352113
143
0.649493
[ "MIT" ]
Amberarch/Akihabara
src/Akihabara/Gpu/GLCalculatorHelper.cs
4,736
C#
using System; namespace UtilsLite.Time { public interface IClock { DateTime GetNow(); DateTime GetUtcNow(); } }
14.1
29
0.602837
[ "MIT" ]
balazs-kis/utils-lite
UtilsLite/Time/IClock.cs
143
C#
using System.Linq; using System.Threading.Tasks; using System.Windows; using ModernWpf.Controls; using ModernWpf.Extensions; namespace ModernWpf { public static class MessageBox { public static bool EnableLocalization { get; set; } = true; #region Sync public static MessageBoxResult? Show...
90.855422
214
0.734518
[ "MIT" ]
luojunyuan/ModernWpf.MessageBox
ModernWpf.MessageBox/MessageBox.cs
15,084
C#
using System.Reflection; [assembly: AssemblyTitle("EntityFramework.SqlServerCompact.FunctionalTests")] [assembly: AssemblyProduct("EntityFramework.SqlServerCompact.FunctionalTests")] [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0.0")]
39.875
79
0.799373
[ "Apache-2.0" ]
ErikEJ/EntityFramework.SqlServerCompact
test/EntityFramework.SqlServerCompact.FunctionalTests/Properties/AssemblyInfo.cs
321
C#
using LuckParser.Parser; namespace LuckParser.Models.ParseModels { public class BoonExtensionLog : BoonLog { private readonly long _oldValue; public BoonExtensionLog(long time, long value, long oldValue, AgentItem src) : base(time, src, value) { _oldValue = oldValue; ...
24.15
109
0.63354
[ "MIT" ]
MarsEdge/GW2-Elite-Insights-Parser
LuckParser/Models/ParseModels/Logs/BoonExtensionLog.cs
485
C#
using System; using System.Collections.Generic; using System.Text; using Newtonsoft.Json; namespace Monytor.Domain { public static class ValueCompareExtensions { public static bool IsEqualByJsonCompare(this object self, object compareValue, StringComparison stringComparison = StringComparison...
37.826087
86
0.678161
[ "MIT" ]
MrDariusAD/monytor
Monytor.Domain/ValueCompareExtensions.cs
872
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using CocosSharp; namespace CocosSharpMathGame { internal class RotorBalloon : Part { public RotorBalloon() : base("rotorBalloon.png") { SetHealthAndMaxHealth(2);...
34.981481
116
0.583377
[ "MIT" ]
PSteinhaus/CocosSharpMathGame
CocosSharpMathGame/Sprites/Parts/Balloon/RotorBalloon.cs
1,891
C#
namespace LoWaiLo.WebAPI.Areas.Identity.Pages.Account.InputModels { using System.ComponentModel.DataAnnotations; public class LoginInputModel { private const string RequiredError = "Полето е задължително."; [Required(ErrorMessage =RequiredError)] [Display(Name = "Потребителско име...
28.772727
70
0.64139
[ "MIT" ]
TeMePyT/LoWaiLo-Project
LoWaiLoWebApi/Web/LoWaiLo.WebAPI/Areas/Identity/Pages/Account/InputModels/LoginInputModel.cs
685
C#
using Microsoft.AspNetCore.SignalR; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Options; using Notification.Service.Hubs; using Notification.Service.Models; using RabbitMQ.Client; using RabbitMQ.Client.Events; using System; using System.Text.Json; using System.Threading; using System.Threading.Tasks;...
31.691358
86
0.598364
[ "MIT" ]
TodorStamenov/GameBox
Server/Notification.Service/Messages/GameCreatedConsumer.cs
2,567
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 System.ComponentModel.Composition; using System.ComponentModel.Composition.Hosting; using System.C...
40.800995
129
0.665163
[ "Apache-2.0" ]
cjvandyk/NuGet.Client
test/NuGet.Clients.Tests/NuGet.Tools.Test/NuGetBrokeredServiceFactoryTests.cs
8,201
C#
using System.Collections.Generic; using Essensoft.AspNetCore.Payment.Alipay.Response; namespace Essensoft.AspNetCore.Payment.Alipay.Request { /// <summary> /// AOP API: alipay.eco.mycar.data.external.send /// </summary> public class AlipayEcoMycarDataExternalSendRequest : IAlipayRequest<AlipayEcoMycarD...
23.6
111
0.598613
[ "MIT" ]
Aosir/Payment
src/Essensoft.AspNetCore.Payment.Alipay/Request/AlipayEcoMycarDataExternalSendRequest.cs
2,610
C#
using System.Net; using FluentAssertions; using Thinktecture.Net.Adapters; using Xunit; namespace Thinktecture.Abstractions.Tests.Net.IPAddressTests { public class Any { [Fact] public void Should_return_wrapper_with_corresponding_underlying_value() { IPAddressAdapter.Any.UnsafeConvert().Should()...
20.764706
74
0.750708
[ "BSD-3-Clause" ]
PawelGerr/Thinktecture.Abstractions
test/Thinktecture.Net.Primitives.Abstractions.Tests/Net/IPAddressTests/Any.cs
353
C#
using System.ComponentModel; namespace lab4.Enums { public enum EBaudrate { [Description("4800")] Baudrate4800 = 4800, [Description("9600")] Baudrate9600 = 9600, [Description("14400")] Baudrate14400 = 14400, [Description("19200")] Baudrate19200 =...
23.772727
31
0.567878
[ "MIT" ]
AJIOB/TBoKN
lab4/lab4/Enums/EBaudrate.cs
525
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.DotNet.DarcLib; using Microsoft.DotNet.Maestro.Client.Models; using Microsoft.Extensions.Logging; us...
49.902577
147
0.575704
[ "MIT" ]
meganaquinn/arcade-services
src/Microsoft.DotNet.Darc/tests/Microsoft.DotNet.Darc.Tests/DependencyCoherencyTests.cs
79,395
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 LibGit2Sharp; namespace Microsoft.Build.Tasks.Git.UnitTests { internal class TestBranch : Branch { private readonly Reference _referen...
27.263158
161
0.69112
[ "Apache-2.0" ]
ctaggart/dotnet-sourcelink
src/Microsoft.Build.Tasks.Git.UnitTests/Mocks/TestBranch.cs
520
C#
// The MIT License (MIT) // // Copyright (c) Andrew Armstrong/FacticiusVir & xuri 2021 // // 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 limitatio...
39.189189
81
0.726207
[ "MIT" ]
xuri02/SharpVk
src/SharpVk/DescriptorUpdateTemplateCreateFlags.gen.cs
1,450
C#
namespace RandomMediaPlayer.Core.Displayables { /// <summary> /// An element that can be displayed on the UI /// </summary> public interface IDisplayable { /// <summary> /// Indicates on which control is the element displayed /// </summary> System.Windows.UIElement D...
30.740741
79
0.562651
[ "MIT" ]
KowalskiPiotr98/RandomMediaPlayer
RandomMediaPlayer.Core/Displayables/IDisplayable.cs
832
C#
using System; // ReSharper disable UnusedMember.Global // ReSharper disable UnusedType.Global namespace YL.Simplification { public static class DecimalExtensions { public static decimal Abs(this decimal self) { return Math.Abs(self); } public static bool Between(t...
23.772727
102
0.496495
[ "MIT" ]
YLahin/TequilaLegacy
YL.Simplification/DecimalExtensions.cs
1,571
C#
//------------------------------------------------------------------------------ // <auto-generated> // このコードはツールによって生成されました。 // ランタイム バージョン:4.0.30319.42000 // // このファイルへの変更は、以下の状況下で不正な動作の原因になったり、 // コードが再生成されるときに損失したりします // </auto-generated> //----------------------------------------------------------...
36.083333
178
0.602002
[ "MIT" ]
Amleth55/yoketoruvs20
yoketoruvs20/Properties/Resources.Designer.cs
3,222
C#
namespace LibNavigate.Iterator.Helper { public interface IShallowClone { object ShallowClone(); } }
15.125
38
0.661157
[ "MIT" ]
SunMaungOo/LibNavigate
LibNavigate/Iterator/Helper/IShallowClone.cs
123
C#
//------------------------------------------------------------------------------ // <generado automáticamente> // Este código fue generado por una herramienta. // // Los cambios en este archivo podrían causar un comportamiento incorrecto y se perderán si // se vuelve a generar el código. // </generado aut...
32.875
95
0.492395
[ "MIT" ]
MitchAguilar/AlbergueUniamazonia
ProyectoFinal/ProyectoFinal/Views/PrivateViews/ConfiguracionBorrar.aspx.designer.cs
534
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 ...
21.050562
109
0.65786
[ "Apache-2.0" ]
pengesoft/aliyun-openapi-net-sdk
aliyun-net-sdk-ecs/Ecs/Model/V20140526/CreateAutoSnapshotPolicyRequest.cs
3,747
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using System; using System.Collections.Generic; using System.Text.Json; using Azure.Messaging.EventGrid.SystemEvents; namespace Azure.Messaging.EventGrid { internal class SystemEventTypeMappings { public s...
101.090226
220
0.826329
[ "MIT" ]
bquantump/azure-sdk-for-net
sdk/eventgrid/Azure.Messaging.EventGrid/src/Customization/SystemEventTypeMappings.cs
13,447
C#
namespace Microsoft.ApplicationInsights.WindowsServer.Channel.Implementation { using System; using Microsoft.VisualStudio.TestTools.UnitTesting; [TestClass] public class SamplingPercentageEstimatorSettingsTest { [TestMethod] public void MaxTelemetryItemsPerSecondAdjustedIfSetToInco...
35.78481
107
0.685532
[ "MIT" ]
304NotModified/ApplicationInsights-dotnet
BASE/Test/ServerTelemetryChannel.Test/TelemetryChannel.Tests/Implementation/SamplingPercentageEstimatorSettingsTest.cs
2,829
C#
using Improbable.Gdk.Core; using Improbable.Gdk.GameObjectCreation; using Improbable.Gdk.PlayerLifecycle; using Improbable.Gdk.TransformSynchronization; using Improbable.Worker.CInterop; using System; using UnityEngine; namespace BlankProject { public class UnityGameLogicConnector : WorkerConnector { ...
38.392857
125
0.664186
[ "MIT" ]
kaminaritukane/MoveCubePhysics
workers/CubeNetworkPrototype/Assets/BlankProject/Scripts/Workers/UnityGameLogicConnector.cs
3,227
C#
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. using System.Collections.Generic; using Microsoft.PowerFx.Core.Functions; using Microsoft.PowerFx.Core.Localization; using Microsoft.PowerFx.Core.Types; namespace Microsoft.PowerFx.Core.Texl.Builtins { // Atan2(number:x, number:y) // ...
31.097561
90
0.597647
[ "MIT" ]
Grant-Archibald-MS/Power-Fx
src/libraries/Microsoft.PowerFx.Core/Texl/Builtins/Atan2.cs
1,277
C#
 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; namespace IV._03.Football_League { class Team { public int Points { get; set; } public int Goals { get; set; } public Team(int points, int goals) { t...
21.210938
156
0.617311
[ "MIT" ]
stanislaviv/Programming-Fundamentals-May-2017
16_ExamPreparations/16_ExamPrep1/IV.03. Football League/IV.03. Football League.cs
2,717
C#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System.Linq; using osu.Framework.Allocation; using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Sprites; u...
39.570175
199
0.489581
[ "MIT" ]
02Naitsirk/osu
osu.Game/Overlays/Profile/Sections/Recent/DrawableRecentActivity.cs
8,797
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.698413
106
0.670874
[ "Apache-2.0" ]
ChristopherButtars/aws-sdk-net
sdk/src/Services/GlueDataBrew/Generated/Model/_bcl45+netstandard/IGlueDataBrewPaginatorFactory.cs
2,060
C#
using Xamarin.Forms; using Xamarin.Forms.Xaml; namespace XamarinSample.Pies.Custom; [XamlCompilation(XamlCompilationOptions.Compile)] public partial class View : ContentPage { public View() { InitializeComponent(); } }
17.285714
49
0.727273
[ "MIT" ]
Live-Charts/LiveCharts2
samples/XamarinSample/XamarinSample/XamarinSample/Pies/Custom/View.xaml.cs
244
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.AspNetCore.Authentication.OAuth; using Microsoft.IdentityModel.Protocols.OpenIdConnect; namespace Microsoft.AspNetCore.Authentication.OpenIdConnect; /// <summary> /...
33.46875
120
0.681606
[ "MIT" ]
3ejki/aspnetcore
src/Security/Authentication/OpenIdConnect/src/OpenIdConnectChallengeProperties.cs
2,142
C#
function AssetBrowser::createCubemapAsset(%this) { Canvas.pushDialog(CubemapEditor); return; %moduleName = AssetBrowser.newAssetSettings.moduleName; %modulePath = "data/" @ %moduleName; %assetName = AssetBrowser.newAssetSettings.assetName; %tamlpath = %modulePath @ "/cubemaps/...
31.035088
93
0.69022
[ "MIT" ]
Areloch/GG-Torque3D
Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/cubemap.cs
3,425
C#
/* * Copyright 2015-2018 Mohawk College of Applied Arts and Technology * * * Licensed under the Apache License, Version 2.0 (the "License"); you * may not use this file except in compliance with the License. You may * obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 ...
27.897059
82
0.592514
[ "Apache-2.0" ]
MohawkMEDIC/openizdc
OpenIZ.Mobile.Core/Security/GenericPolicyInstance.cs
1,899
C#
using NUnit.Framework; using Saliavustaja.Entiteetit; using Saliavustaja.TietokantaLiittymat; using System.Collections.Generic; namespace SaliavustajaTests { [TestFixture] public class InMemoryPoytaDbTest { InMemoryPoytaDb poytaDb; [SetUp] public void TestienAlustus() { ...
26.882353
68
0.584974
[ "MIT" ]
nyluntu/saliavustaja
SaliavustajaTests.NUnit/InMemoryPoytaDbTest.cs
1,373
C#
namespace NerfDX.DirectInput { /// <summary> /// Friendly translation for JoystickUpdate values when JoystickOffset is a button /// </summary> public enum ButtonValues { Unknown = -1, Release = 0, Press = 128, } /// <summary> /// Friendly translation for POV val...
21.724138
86
0.538095
[ "MIT" ]
htadwilliams/NerfDX
NerfDX/DirectInput/Enums.cs
632
C#
// Authors: // Jose Medrano <josmed@microsoft.com> // // Copyright (C) 2018 Microsoft, Corp // // 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 ...
29.487179
77
0.729565
[ "MIT" ]
Youssef1313/FigmaSharp
FigmaSharp.Views/FigmaSharp.Views.Cocoa/ViewWrappers/SearchBox.cs
2,302
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.IO; using BuildXL.Utilities; using BuildXL.Utilities.Serialization; using Xunit; using static Test.BuildXL.TestUtilities.Xunit.XunitBuildXLTest; ...
35.447059
123
0.450714
[ "MIT" ]
AzureMentor/BuildXL
Public/Src/Utilities/UnitTests/Utilities/InliningWriterTests.cs
3,022
C#
using System; using Server; namespace Server.Items { public class StoneOvenSouthAddon : BaseAddon { public override BaseAddonDeed Deed{ get{ return new StoneOvenSouthDeed(); } } [Constructable] public StoneOvenSouthAddon() { AddComponent( new AddonComponent( 0x931 ), -1, 0, 0 ); AddComponent( new Addo...
20.5625
81
0.68465
[ "BSD-2-Clause" ]
greeduomacro/vivre-uo
Scripts/Items/Addons/StoneOvenSouthAddon.cs
1,316
C#
// Copyright(c) Microsoft Corporation // All rights reserved. // // Licensed under the Apache License, Version 2.0 (the License); you may not use // this file except in compliance with the License. You may obtain a copy of the // License at http://www.apache.org/licenses/LICENSE-2.0 // // THIS CODE IS PROVIDED ON AN ...
37.66875
125
0.617057
[ "Apache-2.0" ]
AlexanderSher/python-language-server
src/Analysis/Ast/Impl/Analyzer/PythonInterpreter.cs
6,029
C#
using System; using System.Security.Cryptography.Asn1; namespace Kerberos.NET.Entities { /// <summary> /// A utility class to detect message properties /// </summary> public static class KrbMessage { /// <summary> /// Determine if the message is a Kerberos Type /// </summar...
28.162791
83
0.59455
[ "MIT" ]
ericlaw1979/Kerberos.NET
Kerberos.NET/Entities/Krb/KrbMessage.cs
1,213
C#
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; namespace TagHelpersWebSite.Models { public class WebsiteContext { public Version Version { get; set; }...
25.833333
111
0.675269
[ "Apache-2.0" ]
ardalis/Mvc
test/WebSites/TagHelpersWebSite/Models/WebsiteContext.cs
467
C#
using System; using System.Drawing; using System.Windows.Forms; using System.Collections.Generic; using System.Text.RegularExpressions; using System.Windows.Forms.DataVisualization.Charting; using System.Globalization; namespace Orchestration_Studio.GUI { delegate void SetChartApp(List<Classes.AppData> appstats);...
54.427261
188
0.541322
[ "MIT" ]
devcoons/orchestration-studio
Source Code/Applications/Orchestration Studio/GUI/Main.cs
41,530
C#
using Lesson.Domain.VideoContent; using Lesson.Domain.VideoContent.Dto; using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Linq; using System.Net; using System.Net.Http; using System.Security.Cryptography; using System.Text; using System.Threading.Tasks; using Sys...
46.445727
236
0.545373
[ "MIT" ]
bsogulcan/Lesson
src/Lesson.Web/Controllers/VideoContentController.cs
20,113
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; namespace WebClientApp.Pages.Account { public class LoginModel : PageModel { [BindPro...
22.628571
54
0.625
[ "MIT" ]
alirasouli1386/iTelescope-prototype
WebClientApp/Pages/Account/Login.cshtml.cs
794
C#
/* * Copyright 2020 New Relic Corporation. All rights reserved. * SPDX-License-Identifier: Apache-2.0 */ using NewRelic.Core; using Newtonsoft.Json; using NUnit.Framework; using System; using System.Collections.Generic; using NewRelic.Agent.TestUtilities; using Telerik.JustMock; using NewRelic.Agent.Configuration; usin...
40.948052
205
0.634634
[ "Apache-2.0" ]
Faithlife/newrelic-dotnet-agent
tests/Agent/UnitTests/Core.UnitTest/WireModels/ErrorEventWireModelTests.cs
6,306
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using GG.Infrastructure.Utils.Swipe; public class MoveOnSwipe_Hexagonal : MonoBehaviour { [Header("Available movements:")] [SerializeField] private bool _up = true; [SerializeField] private bool _down = true; [SerializeFie...
21.04065
70
0.507342
[ "MIT" ]
AwuChen/1am
1am_Unity/Assets/SwipeController/Scripts/Examples/MoveOnSwipe_Hexagonal.cs
2,590
C#
namespace FastFood.Models { using System.Collections.Generic; using System.ComponentModel.DataAnnotations; public class Position { [Key] public int Id { get; set; } [Required] [StringLength(30, MinimumLength = 3)] public string Name { get; set; } ...
23
61
0.585678
[ "MIT" ]
stoyanov7/SoftwareUniversity
C#Development/Database/DatabasesAdvanced/Exams/FastFood/FastFood.Models/Position.cs
393
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace DataLayerCore.Model { public partial class SETS_CATEGORY { public SETS_CATEGORY() { SETS = new HashSet<SETS>(); } ...
25.363636
59
0.657706
[ "MIT" ]
Harshilpatel134/cisagovdocker
CSETWebApi/CSETWeb_Api/DataLayerCore/Model/SETS_CATEGORY.cs
560
C#
namespace CarPartsManager.Logic { using DAL; public interface IEntityService { CarPartsManagerEntities GetEntities(); } }
14.8
46
0.675676
[ "MIT" ]
andre197/CarPartsManager
CarPartsManager/CarPartsManager.Logic/IEntityService.cs
150
C#
using System; using System.Collections.Generic; using System.Data; using System.Data.Common; using System.Diagnostics.CodeAnalysis; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Utilities; //T...
33.655172
127
0.585553
[ "MIT" ]
centridsol/EFCoreAutoMigrator
src/Utilities/Extension.cs
1,952
C#
using Sandbox; using System; using System.Collections.Generic; namespace Fortwars { public partial class RollReturnZone : ModelEntity { [Net] public Team Team { get; set; } [Net] public IList<FortwarsPlayer> RedPlayers { get; set; } [Net] public IList<FortwarsPlayer> BluePlayers { get; set; } public Bog...
21.102564
133
0.619077
[ "MIT" ]
DevulTj/sbox-fortwars
code/entities/ctf/RollReturnZone.cs
3,294
C#
namespace SingleStoreConnector.Protocol; internal enum CommandKind { Quit = 1, InitDatabase = 2, Query = 3, Ping = 14, ChangeUser = 17, StatementPrepare = 22, StatementExecute = 23, ResetConnection = 31, Multi = 254, }
15.266667
40
0.71179
[ "MIT" ]
memsql/MySqlConnector
src/SingleStoreConnector/Protocol/CommandKind.cs
229
C#
/****************************************************************************************** * * Copyright (c) 2012 WU WAI FAN DENNIS * * * 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 ...
29.672727
108
0.636336
[ "BSD-3-Clause", "MIT" ]
dppereyra/interactive-dialplanner
CustomControls/PropertyGridControl.cs
3,264
C#
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.Azure.WebJobs; using Microsoft.Azure.WebJobs.Extensions.Http; using Microsoft.AspNetCore.Http; using Newtonsoft.Json.Linq; using System; using Microsoft.Azure.WebJobs...
46.450425
184
0.574556
[ "MIT" ]
justinmchase/DurableFunctionsMonitor
durablefunctionsmonitor.dotnetbackend/Functions/Orchestration.cs
16,397
C#
using System; namespace Ordering.Application.Exceptions { public class NotFoundException : ApplicationException { public NotFoundException(string name, object key) : base($"Entity \"{name}\" ({key} was not found") { } } }
19.5
61
0.611722
[ "MIT" ]
BoskoD/AspNetMicroservices
src/Services/Ordering/Ordering.Application/Exceptions/NotFoundException.cs
275
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; namespace Stanford.Controllers { public class HomeController : Controller { // // GET: /Home/ public ActionResult Index() { return View(); } ...
24.425532
99
0.527003
[ "MIT" ]
dem123456789/STF-Ivy-Dream-Works-MBTI-Test
Stanford/Stanford/Stanford/Controllers/HomeController.cs
1,150
C#
using System; using System.Collections.Generic; using System.Text; using System.Linq; using System.Runtime.Serialization; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using HuaweiCloud.SDK.Core; namespace HuaweiCloud.SDK.Image.V2.Model { /// <summary> /// This is a auto create Body Object /// <...
35.083333
289
0.50529
[ "Apache-2.0" ]
huaweicloud/huaweicloud-sdk-net
Services/Image/V2/Model/ImageTaggingReq.cs
5,147
C#
using System; using System.Linq; using System.Threading.Tasks; using GraphQL.Language.AST; using GraphQL.Types; using GraphQL.Validation.Errors; namespace GraphQL.Validation.Rules { /// <summary> /// Known directives: /// /// A GraphQL document is only valid if all `@directives` are known by the //...
36.530864
127
0.558973
[ "MIT" ]
IdeaHunter/graphql-dotnet
src/GraphQL/Validation/Rules/KnownDirectives.cs
2,959
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...
40.714286
165
0.619474
[ "Apache-2.0" ]
DetlefGolze/aws-sdk-net
sdk/src/Services/QuickSight/Generated/Model/Internal/MarshallTransformations/CreateIAMPolicyAssignmentRequestMarshaller.cs
5,700
C#
using Meadow.EVM.EVM.Execution; using System; using System.Collections.Generic; using System.IO; using System.Text; namespace Meadow.EVM.EVM.Instructions.Stack { public class InstructionPop : InstructionBase { #region Constructors /// <summary> /// Our default constructor, reads the op...
24.851852
99
0.61848
[ "MIT" ]
MeadowSuite/Meadow
src/Meadow.EVM/EVM/Instructions/Stack/InstructionPop.cs
673
C#
/* SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to * this file be licensed under the Apache-2.0 license or a * compatible open source license. * * Modifications Copyright OpenSearch Contributors. See * GitHub history for details. * * Licensed to Elasticsearch B.V. unde...
35.432432
64
0.774218
[ "Apache-2.0" ]
Bit-Quill/opensearch-net
src/Osc/Cluster/ReloadSecureSettings/ReloadSecureSettingsRequest.cs
1,311
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...
40.588235
159
0.64617
[ "Apache-2.0" ]
FoxBearBear/aws-sdk-net
sdk/src/Services/APIGateway/Generated/Model/Internal/MarshallTransformations/UpdateRequestValidatorRequestMarshaller.cs
4,830
C#
using Abp.Authorization; using lso.Authorization.Roles; using lso.Authorization.Users; namespace lso.Authorization { public class PermissionChecker : PermissionChecker<Role, User> { public PermissionChecker(UserManager userManager) : base(userManager) { } } }
20.666667
66
0.680645
[ "MIT" ]
lsfoo/lso
aspnet-core/src/lso.Core/Authorization/PermissionChecker.cs
312
C#
using System; using System.Xml; using System.Xml.Serialization; using System.IO; namespace VoxelImporter.grendgine_collada { [System.SerializableAttribute()] [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)] [System.Xml.Serialization.XmlRootAttribute(ElementName="samplerDEPTH", Namespace="http://www.co...
29.5625
147
0.82241
[ "MIT" ]
Syrapt0r/Protocol-18
Assets/VoxelImporter/Scripts/Editor/Library/Collada_Main/Collada_FX/Texturing/Grendgine_Collada_SamplerDEPTH.cs
473
C#
using Otter.Graphics; using Otter.Graphics.Drawables; using Otter.Utility.MonoGame; using WormGame.Core; using WormGame.Pooling; using WormGame.Static; namespace WormGame.Entities { /// @author Antti Harju /// @version v0.5 /// <summary> /// Custom pooler, manages worms. Uses a surface with autoclear ...
29.571744
163
0.497387
[ "MIT" ]
anttiharju/worm-game
WormGame/Entities/Worms.cs
13,398
C#
using System; using System.IO; using System.Text; /* Write a program that deletes from a text file all words that start with the prefix test. Words contain only the symbols 0…9, a…z, A…Z, _. */ class PrefixTest { const string filePath = "..\\..\\sample.txt"; const string prefix = "test"; static void M...
26.345679
96
0.482662
[ "MIT" ]
TsvetanRazsolkov/Telerik-Academy
Homeworks/Programming/C# Basics - Part II/08-TextFiles/11.PrefixTest/PrefixTest.cs
2,142
C#
using System; using System.Collections.Generic; using System.Text; namespace P05_BirthdayCelebrations { public interface IBirthable { public string BirthDay { get; set; } public bool IsInCurrentYear(string date) { string birthYear = this.BirthDay.Substring(this.BirthDay.Le...
20.866667
95
0.501597
[ "MIT" ]
aalishov/SoftUni
04-CSharp-OOP-February-2020/Exercise-10-InterfacesAndAbstraction/P05-BirthdayCelebrations/IBirthable.cs
628
C#
using Umbraco.Core; using Umbraco.Core.Composing; namespace Umbraco.Web.Compose { /// <summary> /// Used to ensure that the public access data file is kept up to date properly /// </summary> [RuntimeLevel(MinLevel = RuntimeLevel.Run)] public sealed class PublicAccessComposer : ComponentComposer<Pu...
28.153846
102
0.724044
[ "MIT" ]
0Neji/Umbraco-CMS
src/Umbraco.Web/Compose/PublicAccessComposer.cs
368
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.Practices.Prism.Mvvm; namespace GW2PAO.Modules.Teamspeak.ViewModels { public class ClientViewModel : BindableBase { private uint id; private string name; ...
23.844444
59
0.530289
[ "MIT" ]
Azaret/gw2pao
GW2PAO/Modules/Teamspeak/ViewModels/ClientViewModel.cs
1,075
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class HandItems : MonoBehaviour { protected Inventory inventory; void Awake () { inventory = GameObject.FindObjectOfType<Inventory> (); } public InventoryItem GetActiveInventoryItem () { InventorySelector inventory = Get...
21.5
77
0.750388
[ "CC0-1.0" ]
AGM-GR/In-Game
Assets/Prefabs/HandsModels/Scripts/HandItems.cs
647
C#
using System; namespace OneTwoOne.Module.Notifications.Models { /// <summary> /// Can be used to store a simple message as notification data. /// </summary> [Serializable] public class MessageNotificationData : NotificationData { /// <summary> /// The message. /// </sum...
22.410256
67
0.501144
[ "Apache-2.0" ]
microcapital/one2one
src/Modules/OneTwoOne.Module.Notifications/Models/MessageNotificationData.cs
876
C#
// Copyright 2018, Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicabl...
39.473118
96
0.665486
[ "Apache-2.0" ]
MajaGrubbe/googleads-dotnet-lib
examples/Dfp/CSharp/v201802/CustomFieldService/CreateCustomFieldOptions.cs
3,671
C#
using Microsoft.EntityFrameworkCore.Migrations; namespace OSA.Data.Migrations { public partial class AddedBookValueToSales : Migration { protected override void Up(MigrationBuilder migrationBuilder) { } protected override void Down(MigrationBuilder migrationBuilder) {...
18.888889
71
0.673529
[ "MIT" ]
krasizorbov/OSA
Data/OSA.Data/Migrations/20200331173151_AddedBookValueToSales.cs
342
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/DocObj.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. using NUnit.Framework; using System...
36.431373
145
0.698601
[ "MIT" ]
IngmarBitter/terrafx.interop.windows
tests/Interop/Windows/Windows/um/DocObj/IEnumOleDocumentViewsTests.cs
1,860
C#
/** * Copyright (c) 2001-2018 Mathew A. Nelson and Robocode contributors * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * https://robocode.sourceforge.io/licen...
25.933333
85
0.575835
[ "Apache-2.0" ]
DarioRomano/robocode
plugins/dotnet/robocode.dotnet.api/src/robocode/exception/RobotException.cs
1,167
C#
namespace Manssiere.Core.DemoFlow { using System; using System.Collections.Generic; using System.Linq; using System.Windows.Controls; using Manssiere.Core.Graphics.Transition; /// <summary> /// The demo flow controlls the order of the effects /// </summary> public abstract class Abs...
33.796537
120
0.541053
[ "Apache-2.0" ]
ernstnaezer/Manssiere
Source/Manssiere/Core/DemoFlow/Statemachine.cs
7,807
C#
using System; using System.Collections.Generic; using System.Windows; namespace ModernWpf.Toolkit.UI { public class ToolkitThemeDictionary { internal const string LightKey = "Light"; internal const string DarkKey = "Dark"; internal const string HighContrastKey = "HighContrast"; ...
35.232558
113
0.667987
[ "MIT" ]
ModernWpf-Community/ModernWpfCommunityToolkit
ModernWpf.Toolkit.UI/ThemeResources/ToolkitThemeDictionary.cs
1,517
C#
using System.Threading; using System.Threading.Tasks; using CryptoExchange.Net.Objects; using Huobi.Net.Enums.Futures; using Huobi.Net.Objects.Models.Futures; namespace Huobi.Net.Interfaces.Clients.FuturesApi { /// <summary> /// Huobi trading endpoints, placing and managing orders. /// </summary> publ...
56.930233
250
0.667484
[ "MIT" ]
GeorgeF0/Huobi.Net-1
Huobi.Net/Interfaces/Clients/FuturesApi/IHuobiClientFuturesUsdtApiTrading.cs
2,450
C#
using System; using System.Collections.Generic; using System.Text.Json; namespace Jom.Blog.Common.Helper { public class JsonHelper { /// <summary> /// 转换对象为JSON格式数据 /// </summary> /// <typeparam name="T">类</typeparam> /// <param name="obj">对象</param> /// <return...
34.361905
164
0.509978
[ "Apache-2.0" ]
atorzhang/Jom.Blog
Jom.Blog.Common/Helper/JsonHelper.cs
3,704
C#
// Copyright (c) 2014 AlphaSierraPapa for the SharpDevelop Team // // 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...
29.396226
94
0.699615
[ "MIT" ]
galich/SharpDevelop
src/AddIns/Misc/Reports/ICSharpCode.Reports.Addin/Project/ReportItems/AbstractItem.cs
3,118
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 ...
22.595238
102
0.666667
[ "Apache-2.0" ]
AxiosCros/aliyun-openapi-net-sdk
aliyun-net-sdk-codeup/Codeup/Model/V20200414/DeleteGroupMemberRequest.cs
2,847
C#
//--------------------------------------------------------- // <auto-generated> // This code was generated by a tool. Changes to this // file may cause incorrect behavior and will be lost // if the code is regenerated. // // Generated on 2020 October 09 06:00:42 UTC // </auto-generated> //--------------...
33.515152
127
0.613924
[ "MIT" ]
GridProtectionAlliance/go2cs
src/go-src-converted/cmd/vendor/golang.org/x/sys/unix/ztypes_linux_sparc64_CryptoReportLarvalStruct.cs
2,212
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.Diagnostics; namespace Microsoft.EntityFrameworkCore.Diagnostics { /// <summary> /// A <see cref="DiagnosticSource" /> event payload class for...
38.963855
120
0.599258
[ "MIT" ]
GrizzlyEnglish/efcore
src/EFCore.Cosmos/Diagnostics/CosmosItemCommandExecutedEventData.cs
3,234
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 JetBrains.Annotations; namespace Microsoft.EntityFrameworkCore.Migrations.Operations { /// <summary> /// A ...
37.032258
116
0.642857
[ "Apache-2.0" ]
0b01/efcore
src/EFCore.Relational/Migrations/Operations/DropCheckConstraintOperation.cs
1,148
C#
using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; namespace GenericControllers.Controllers { public abstract class GenericResourceController<TResource> where TResource : new() { /// <summary> /// Crea...
27.5
86
0.530909
[ "MIT" ]
AesisGit/Swashbuckle.AspNetCore
test/WebSites/GenericControllers/Controllers/GenericResourceController.cs
1,652
C#
namespace Engine.Model { public class Card { private readonly string _suit; private readonly int _value; public string Suit => _suit; public int Value => _value; public Card(string suit, int value) { _suit = suit; _value = value; ...
19.411765
43
0.527273
[ "MIT" ]
isonym/MalifauxCharSheet
MalifauxCharSheet/Engine/Model/Card.cs
332
C#
using System; using System.Collections.Generic; using System.Linq; namespace DotVVM.Diagnostics.ServerSideCache.Services { public class FullPostBackStatsEntry { public string RouteName { get; set; } public long CacheMissDiffBytes { get; set; } public long FullPostBackBytes { get; se...
21.047619
55
0.678733
[ "Apache-2.0" ]
riganti/dotvvm-diagnostics-server-side-cache
src/DotVVM.Diagnostics.ServerSideCache/Services/FullPostBackStatsEntry.cs
444
C#
// ---------------------------------------------------------------------------- // The MIT License // LeopotamGroupLibrary https://github.com/Leopotam/LeopotamGroupLibraryUnity // Copyright (c) 2012-2017 Leopotam <leopotam@gmail.com> // ---------------------------------------------------------------------------- using...
31.84153
120
0.47074
[ "MIT" ]
gomez-addams/LeopotamGroupLibraryUnity
Collections/FastStack.cs
5,827
C#
// // Copyright (C) Microsoft. All rights reserved. // namespace Microsoft.PowerShell.Commands { using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Management.Automation; using System.Management.Automation.Internal; using Microsoft.PowerShell....
45.077193
186
0.551179
[ "Apache-2.0", "MIT" ]
HydAu/PowerShell
src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/OutGridView/TableView.cs
12,847
C#
using System; using System.Web; namespace ClassLibrary; internal struct SimpleJsonWriter : IDisposable { private readonly HttpResponse _response; private bool _hasWritten; public SimpleJsonWriter(HttpResponse response) { response.ContentType = "application/json"; _response = response...
20.106383
50
0.568254
[ "Apache-2.0" ]
fenglui/AspLabs
src/SystemWebAdapters/samples/ClassLibrary/SimpleJsonWriter.cs
945
C#
#region Apache License Version 2.0 /*---------------------------------------------------------------- Copyright 2021 Jeffrey Su & Suzhou Senparc Network Technology Co.,Ltd. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain ...
29.590909
90
0.577061
[ "Apache-2.0" ]
554393109/WeiXinMPSDK
src/Senparc.Weixin.MP/Senparc.Weixin.MP/AdvancedAPIs/Semantic/SemanticResult/Semantic_CookbookResult.cs
2,071
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...
44.60274
115
0.658784
[ "Apache-2.0" ]
amazon-archives/aws-sdk-xamarin
AWS.XamarinSDK/AWSSDK_Android/Amazon.SecurityToken/Model/GetSessionTokenRequest.cs
6,512
C#
//----------------------------------------------------------------------- // <copyright file="ApiDisplayUvCoords.cs" company="Google"> // // Copyright 2017 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the L...
33.836364
93
0.622783
[ "MIT" ]
2D/STARThack
LeicaPresentation/Unity/Assets/GoogleARCore/SDK/Scripts/Api/Types/ApiDisplayUvCoords.cs
1,863
C#