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 RarelySimple.AvatarScriptLink.Objects; using RarelySimple.AvatarScriptLink.Objects.Advanced; using System; using System.Collections.Generic; using System.Globalization; namespace RarelySimple.AvatarScriptLink.Helpers { public static partial class OptionObjectHelpers { /// <summary> /// S...
49.606557
161
0.657634
[ "MIT" ]
rarelysimple/RarelySimple.AvatarScriptLink
RarelySimple.AvatarScriptLink/Helpers/OptionObject/SetUnlockedFields.cs
3,028
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 "li...
32.401869
117
0.586963
[ "Apache-2.0" ]
philasmar/aws-sdk-net
sdk/src/Services/KinesisAnalyticsV2/Generated/Model/S3ReferenceDataSourceDescription.cs
3,467
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using Microsoft.ML; using Microsoft.Data.DataView; using Microsoft.ML.Data; using Microsoft.ML.Calibrators; using Microsoft.ML.Trainers; using myMLNET.Common.Models; using myMLNET.Common.Utils; namespace myMLNET { class MultipleLi...
42.018868
171
0.594522
[ "MIT" ]
Bhaskers-Blu-Org2/AISchoolTutorials
MLNETCrashCourse/00.CompleteExamples/03.MultipleLinearRegression/Program.cs
4,456
C#
//! \file BitStream.cs //! \date Sat Aug 22 2015 //! \brief Bit stream on top of the IO.Stream // // Copyright (C) 2015 by morkt // // 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 ...
30.177914
102
0.512706
[ "MIT" ]
poddav/GARbro
ArcFormats/BitStream.cs
4,919
C#
using torque.Common.Models.Contracts.DatabaseObjects; namespace torque.Models.DatabaseObjects { public struct Index : IComparableEntity { public string Schema { get; set; } public string Name { get; set; } public string TableName { get; set; } public string Definition { get;...
27.241379
86
0.598734
[ "MIT" ]
jhart0/torque
torque.Common/Models/DatabaseObjects/Index.cs
792
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> //---...
41.958333
80
0.647468
[ "Apache-2.0" ]
Vladimir-Dodnikov/C-Fundamentals-May-2019
Lists - More exercises/03. TakeOrSkip Rope/obj/Debug/netcoreapp2.2/03. TakeOrSkip Rope.AssemblyInfo.cs
1,007
C#
using System.Text; namespace Microsoft.TemplateEngine.Core.Contracts { public interface IOperationProvider { string Id { get; } IOperation GetOperation(Encoding encoding, IProcessorState processorState); } }
20.75
84
0.686747
[ "MIT" ]
ChadNedzlek/templating
src/Microsoft.TemplateEngine.Core.Contracts/IOperationProvider.cs
238
C#
using RimWorld; using System; using System.Collections.Generic; using System.Linq; using UnityEngine; using Verse; using Verse.Sound; using AbilityUser; namespace TorannMagic { public class Verb_SniperShot : Verb_UseAbility { protected override bool TryCastShot() { if (TM_Calc.IsU...
34.590164
141
0.51564
[ "BSD-3-Clause" ]
CaptainMuscles/TMagic
Source/TMagic/TMagic/Verb_SniperShot.cs
2,112
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...
34.59322
121
0.642822
[ "Apache-2.0" ]
polivbr/pulumi-azure-native
sdk/dotnet/Compute/V20190301/Inputs/VirtualMachineScaleSetPublicIPAddressConfigurationArgs.cs
2,041
C#
// <auto-generated /> namespace IronJS.Tests.UnitTests.Sputnik.Conformance.NativeECMAScriptObjects.DateObjects.PropertiesOfTheDatePrototypeObject { using System; using NUnit.Framework; [TestFixture] public class DatePrototypeSetUTCMillisecondsTests : SputnikTestFixture { public DatePrototyp...
50.043478
173
0.685925
[ "Apache-2.0" ]
Varshit07/IronJS
Src/Tests/UnitTests/Sputnik/Conformance/NativeECMAScriptObjects/DateObjects/PropertiesOfTheDatePrototypeObject/DatePrototypeSetUTCMillisecondsTests.cs
2,302
C#
using System; using System.Threading.Tasks; namespace Rivets { public enum NavigationResult { // Indicates that the navigation failed and no app was opened. Failed, // Indicates that the navigation succeeded by opening the URL in the browser. Web, // Indicates that the navigation succeeded by opening the UR...
22.5
88
0.744444
[ "Apache-2.0" ]
xamarin/Rivets
Rivets/NavigationResult.cs
360
C#
using VXDesign.Store.DevTools.Common.Core.HTTP; namespace VXDesign.Store.DevTools.Common.Core.Extensions { public static class ResponseExtensions { public static bool IsWithoutErrors(this IResponse response) => response.Status < 400; public static dynamic ToLog(this IResponse response)...
27.625
93
0.642534
[ "MIT" ]
GUSAR1T0/VXDS-DEV-TOOLS
DevTools/Common/Core/Extensions/ResponseExtensions.cs
442
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class HazardVolume : MonoBehaviour { private void OnTriggerEnter(Collider other) { PlayerShip playerShip = other.gameObject.GetComponent<PlayerShip>(); if (playerShip != null) {...
20.777778
76
0.668449
[ "MIT" ]
whroberts/ScriptingForGames_I
RobertsHenry_P01_SpaceExplorer_V1/Assets/Scripts/HazardVolume.cs
376
C#
using Microsoft.EntityFrameworkCore.Migrations; namespace Mohkazv.Library.WebApp.Data.Migrations { public partial class AlterAuthors : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "FirstName", ...
28.9
71
0.488581
[ "MIT" ]
AlirezaRezaeeIR/Library
src/Library.WebApp/Data/Migrations/20210115140519_AlterAuthors.cs
1,447
C#
// <auto-generated /> using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Ordering.Infrastructure.Persistence; #nullable disable namespace Ordering.Infra...
34.340206
103
0.509457
[ "MIT" ]
h-sharafi/aspnetmicoservices
src/Services/Ordering/Ordering.Infrastructure/Migrations/OrderContextModelSnapshot.cs
3,333
C#
using ServiceStack.ServiceHost; namespace ServiceStack.Razor.Tests { public class CheckBoxService : ServiceInterface.Service { public CheckBoxData Get(GetCheckBox request) { return new CheckBoxData { BooleanValue = true ...
22.09375
60
0.500707
[ "BSD-3-Clause" ]
GSerjo/ServiceStack
tests/ServiceStack.Razor.Tests/CheckBoxService.cs
678
C#
using System; using Xunit; namespace P1Project.Tests { public class UnitTest1 { [Fact] public void Test1() { } } }
9.266667
25
0.597122
[ "MIT" ]
06012021-dotnet-uta/BrianCorbettP0
P1Project/P1Project.Tests/UnitTest1.cs
139
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ProfilerViewer.Structures { public static class Settings { private static int[] _scale; private const int Paddings = 200; public static int AxisX { ...
21.594595
94
0.503129
[ "MIT" ]
WounderedT/TTank2.0
ProfilerViewer/Structures/Settings.cs
801
C#
using System; using Newtonsoft.Json; using Ripple.WebSocketClient.Json.Converters; namespace Ripple.WebSocketClient.Model.Ledger.Objects { public class PayChannelLedgerObject : BaseRippleLedgerObject { public PayChannelLedgerObject() { LedgerEntryType = LedgerEntryType.PayChannel; ...
26.106383
67
0.642217
[ "Apache-2.0" ]
MaintenanceExperts/Ripple.NET.WebSocketClient
src/RippleDotNet/Model/Ledger/Objects/PayChannelLedgerObject.cs
1,229
C#
namespace TrafficManager.Patch._VehicleAI._TramBaseAI { using System.Reflection; using ColossalFramework; using HarmonyLib; using JetBrains.Annotations; using Manager.Impl; using State; using UnityEngine; using Util; [UsedImplicitly] [HarmonyPatch] public class CalculateSegm...
45.629032
156
0.446271
[ "MIT" ]
CitiesSkylinesMods/TMPE
TLM/TLM/Patch/_VehicleAI/_TramBaseAI/CalculateSegmentPositionPatch2.cs
5,658
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. using System; using Xunit; using Stride.TextureConverter.Requests; using Stride.TextureConverter...
37.287805
137
0.661041
[ "MIT" ]
Aggror/Stride
sources/tests/tools/Stride.TextureConverter.Tests/PvrttTexLibTest.cs
7,644
C#
using CursoCore.Domain.Entities; using System; using System.Collections.Generic; using System.Linq.Expressions; using System.Text; namespace CursoCore.Domain.Interfaces.Services { public interface IServicePedidos : IDisposable { void Adicionar(Pedido obj); void Atualizar(Pedido obj); v...
26.736842
77
0.708661
[ "MIT" ]
marciomonzon/projetodddcore2
src/CursoCore.Domain/Interfaces/Services/IServicePedidos.cs
510
C#
using Xunit; using static LanguageExt.Prelude; namespace LanguageExt.Tests.Transformer.Traverse.Stck.Sync { public class Identity { [Fact] public void RightEmptyIsEmpty() { var ma = Id<Stck<int>>(Empty); var mb = ma.Traverse(identity); var mc = Stack...
22.482759
58
0.507669
[ "MIT" ]
TysonMN/language-ext
LanguageExt.Tests/Transformer/Traverse/Stck/Sync/Identity.cs
654
C#
using FFImageLoading.Forms; using Xamarin.Forms; namespace InfiniteChatSample { public partial class OtherUserMessageCell { public OtherUserMessageCell() { InitializeComponent(); } protected override CachedImage UserImage => ProfilePicture; } }
20.2
67
0.666667
[ "MIT" ]
gagikkyurkchyan/xamarin-samples
InfiniteChatSample/InfiniteChatSample/InfiniteChatSample/OtherUserMessageCell.xaml.cs
305
C#
using Git.Data; using Git.ViewModels; using System; using System.Collections.Generic; using System.Text; namespace Git.Services { public interface IRepositoriesService { void Create(string name, string repositoryType, string creatorName); IEnumerable<AllRepositoriesViewModel> GetAll(); ...
22.272727
76
0.732653
[ "MIT" ]
Drakojan/SoftUni_C-_Web_Basics
Live exam/Apps/Git/Services/IRepositoriesService.cs
492
C#
using FluentAssertions; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Rhinobyte.Extensions.TestTools.Tests; [TestClass] public class WaitConfigurationCompositeItemTests { [TestMethod] public void AssignMissingValues_returns_false_for_a_null_itemToCopyFrom_argument() { new WaitConfigurationCompos...
27.266667
112
0.836186
[ "MIT" ]
RhinobyteSoftware/DependencyInjectionExtensions
tests/Rhinobyte.Extensions.TestTools.Tests/WaitConfigurationCompositeItemTests.cs
411
C#
using System; using HotChocolate.Language; using HotChocolate.Types.Filters.Expressions; using HotChocolate.Utilities; using Snapshooter.Xunit; using Xunit; namespace HotChocolate.Types.Filters { public class ExpressionVisitorConventionComparableTests : ExpressionVisitorConventionTestBase { [Fac...
30.784689
90
0.533416
[ "MIT" ]
DaanAcohen/hotchocolate
src/HotChocolate/Filters/test/Types.Filters.Tests/Conventions/ExpressionVisitor/ExpressionVisitiorConventionComparableTests.cs
6,434
C#
using System; using System.Globalization; namespace JsonCs { /// <summary> /// Builds a string, by performing a fast forward only read from a <see cref="JsonStream"/> /// into an internal buffer. Any reads, will advance the reading position within the /// <see cref="JsonStream"/>. /// </summary> ...
32.412698
123
0.520568
[ "MIT" ]
forki/json-fs
src/JsonCs/JsonString.cs
4,086
C#
using Eto.Forms; using Eto.Drawing; using Eto.IO; using SD = System.Drawing; using SWF = System.Windows.Forms; using Eto.WinForms.Drawing; using Eto.WinForms.Forms; using Eto.WinForms.Forms.Printing; using Eto.WinForms.Forms.Controls; using Eto.WinForms.IO; using Eto.Forms.ThemedControls; using Eto.WinForms.Forms.Cells...
44.578704
169
0.692491
[ "BSD-3-Clause" ]
AkiSakurai/Eto
src/Eto.WinForms/Platform.cs
9,629
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class DestructionEndLevel : MonoBehaviour { [SerializeField] int nbWallToDestroy = 4; [SerializeField] TextMesh textMesh; int currentWallDestroy = 0; // Start is called before the first frame update void Start(...
19.235294
52
0.611621
[ "MIT" ]
SynysterRev/BeSiege-project
BeSiegeLike/Assets/Scripts/EndLevel/DestructionEndLevel.cs
656
C#
using System; using System.Runtime.InteropServices; namespace SharpVk { internal partial struct CommandCacheStruct { private static T GetDelegate<T>(IntPtr functionPointer) where T : Delegate { if (functionPointer == IntPtr.Zero) { return nul...
21.909091
81
0.537344
[ "MIT" ]
FacticiusVir/SharpVk
src/SharpVk/CommandCacheStruct.cs
484
C#
using System.Windows.Forms; using LogJoint.UI.Presenters.FormatsWizard.FormatDeleteConfirmPage; namespace LogJoint.UI { public partial class FormatDeleteConfirmPage : UserControl, IView { public FormatDeleteConfirmPage() { InitializeComponent(); } void IView.SetEventsHandler(IViewEvents event...
26.115385
131
0.762887
[ "MIT" ]
logjointfork/logjoint
trunk/platforms/windows/logjoint.winforms/ui/FormatsWizard/FormatDeleteConfirmPage.cs
679
C#
using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Identity.EntityFrameworkCore; using Microsoft.EntityFrameworkCore; using Onion.Domain.Entities; using Onion.Identity.Models; namespace Onion.Identity.Contexts { /// <summary> /// Application identity database context. /// </summary> publi...
38.52
99
0.639148
[ "MIT" ]
tahq69/Onion
Onion.Identity/Contexts/IdentityDbContext.cs
1,928
C#
using System; using System.Collections.Generic; using System.IO; using TDocumentGeneration.Models; using Xunit; namespace TDocumentGeneration.Test { public class GeneratorTest : IDisposable { private readonly Generator _generator; private readonly string _resources; public GeneratorTes...
32.505263
123
0.56671
[ "Apache-2.0" ]
nusreta/TDocumentGeneration
TDocumentGeneration.Test/GeneratorTest.cs
3,088
C#
using DLC.Multiagent; using DLC.Scientific.Acquisition.Core.Agents; using DLC.Scientific.Acquisition.Core.UI; using System; using System.Threading.Tasks; using System.Windows.Forms; namespace DLC.Scientific.Acquisition.Agents.ShutdownAgent.UI { public partial class ShutdownUI : AcquisitionStickyForm { public Shu...
32.612245
185
0.728411
[ "MIT" ]
slorion/multiagent-system-example
DLC.Scientific/DLC.Scientific.Acquisition/Agents/ShutdownAgent/UI/ShutdownUI.cs
1,598
C#
using System; using Advanced.Algorithms.DataStructures; namespace Advanced.Algorithms.Tests.DataStructures { internal static class BTreeTester { /// <summary> /// find max height by recursively visiting children /// </summary> /// <param name="node"></param> /// <retur...
26.072727
81
0.456067
[ "MIT" ]
rocksdanister/Advanced-Algorithms
tests/Advanced.Algorithms.Tests/DataStructures/Tree/TestHelpers/BTreeTester.cs
1,436
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...
28.381579
106
0.603153
[ "Apache-2.0" ]
ChristopherButtars/aws-sdk-net
sdk/src/Services/WorkDocs/Generated/Model/Participants.cs
2,157
C#
using Output.Providers; using Output.UnitTests.Models.Recursion; using Xunit; namespace Output.UnitTests { public class CircularReferenceTest : TestBase<MappingProvider> { [Fact] public void CircularPropertyTest() { // Arrange var user = new User(); ...
26.8
66
0.551306
[ "MIT" ]
alexandretperez/Output
source/Output.UnitTests/CircularReferenceTest.cs
1,074
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.Linq; using Xunit; namespace Microsoft.Net.Http.Headers { public class StringWithQuali...
42.54509
116
0.551578
[ "Apache-2.0" ]
benaadams/HttpAbstractions
test/Microsoft.Net.Http.Headers.Tests/StringWithQualityHeaderValueTest.cs
21,252
C#
using System; using System.IO; namespace Org.BouncyCastle.Bcpg { public abstract class OutputStreamPacket { private readonly BcpgOutputStream bcpgOut; internal OutputStreamPacket( BcpgOutputStream bcpgOut) { if (bcpgOut == null) throw new ArgumentNullException...
18.72
51
0.641026
[ "BSD-3-Clause" ]
GaloisInc/hacrypto
src/C#/BouncyCastle/BouncyCastle-1.7/crypto/src/bcpg/OutputStreamPacket.cs
468
C#
/* * LambdaSharp (λ#) * Copyright (C) 2018-2021 * lambdasharp.net * * 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 requ...
38.394737
166
0.703907
[ "Apache-2.0" ]
LambdaSharp/LambdaSharpTool
src/LambdaSharp/Exceptions/LambdaConfigBadValueException.cs
1,460
C#
using System; using Aop.Api.Domain; using System.Collections.Generic; using Aop.Api.Response; namespace Aop.Api.Request { /// <summary> /// AOP API: alipay.pcredit.huabei.auth.agreement.close /// </summary> public class AlipayPcreditHuabeiAuthAgreementCloseRequest : IAopRequest<AlipayPcreditHuabeiAuthA...
23.9
122
0.610118
[ "Apache-2.0" ]
Varorbc/alipay-sdk-net-all
AlipaySDKNet/Request/AlipayPcreditHuabeiAuthAgreementCloseRequest.cs
2,653
C#
// Copyright (c) Microsoft. All rights reserved. // Copyright (c) Denis Kuzmin <x-3F@outlook.com> github/3F // Copyright (c) IeXod contributors https://github.com/3F/IeXod/graphs/contributors // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using Syst...
33.033113
120
0.543504
[ "MIT" ]
3F/IeXod
src/Tasks/FindAppConfigFile.cs
4,990
C#
using System; using System.ComponentModel; namespace Tizen.NUI.XamlBinding { /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. [EditorBrowsable(EditorBrowsableState.Never)] [Xaml.ProvideCompiled("Tizen.NUI.XamlC.UriTypeConverter")] [Xaml.TypeConv...
32.03125
113
0.627317
[ "Apache-2.0" ]
sungraejo/TizenFX
src/Tizen.NUI.Xaml/src/public/XamlBinding/UriTypeConverter.cs
1,027
C#
using System; using System.Runtime.Serialization; namespace Identory.Models.Enum { [Serializable] public enum DefaultDesktopScreenSize { [EnumMember(Value = "1024x768")] Size_1024x768, [EnumMember(Value = "1280x720")] Size_1280x720, [EnumMember(Value = "1280x800")] ...
28.088889
41
0.589399
[ "MIT" ]
hakunamarihuana/Identory
Identory/Models/Enum/DefaultDesktopScreenSize.cs
1,266
C#
namespace Reception.App.Constants { public static class ConnectionStatus { public const string OFFLINE = nameof(OFFLINE); public const string ONLINE = nameof(ONLINE); } }
24.875
54
0.678392
[ "MIT" ]
kirichenec/ReceptionNetCore
src/Reception.App/Constants/ConnectionStatus.cs
201
C#
using System.Diagnostics.CodeAnalysis; using NUnit.Framework; using Shouldly; using TestNinjaOther; namespace TestNinja.Tests { [TestFixture] [ExcludeFromCodeCoverage] public class FizzBuzzTests { private string _result; [Test] public void GetOutput_InputIsDivisibleBy3And5_Retu...
24.162791
77
0.588065
[ "MIT" ]
mdaniyalkhann/SampleTests
TestNinja.UnitTests/FizzBuzzTests.cs
1,039
C#
using Microsoft.Management.Infrastructure; using System; using System.Collections.Generic; using System.Linq; using SimCim.Core; namespace SimCim.Root.Virtualization.V2 { public abstract class EventConsumer : IndicationRelated { protected EventConsumer() { } prot...
23.983051
111
0.474205
[ "Apache-2.0" ]
simonferquel/simcim
SimCim.Root.Virtualization.V2/ClassEventConsumer.cs
1,417
C#
// Copyright 2022 Google LLC. 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 applicab...
36.008475
136
0.657566
[ "Apache-2.0" ]
Rishabh-V/dotnet-docs-samples
retail/interactive-tutorial/RetailSearch.Samples/SearchWithFacetSpecSample.cs
4,251
C#
#region Apache License Version 2.0 /*---------------------------------------------------------------- Copyright 2022 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 ...
30.370968
90
0.590016
[ "Apache-2.0" ]
AaronWu666/WeiXinMPSDK
src/Senparc.Weixin.Open/Senparc.Weixin.Open/WxaAPIs/Sns/SnsJson/JsCode2JsonResult.cs
2,041
C#
using NUnit.Framework; using System; using TechTalk.SpecFlow; using Verdure.Domain.Entities; using Verdure.Domain.Interfaces; namespace Verdure.Domain.Tests.Entities { [Binding] public class FoodItemSteps { IFoodItem _foodItem; string _foodItemName; long _calories; [Given(...
32.238095
81
0.618907
[ "BSD-3-Clause" ]
TechPriestJon/VerdureApp
Verdure/Verdure.Domain.Tests/Entities/FoodItemTestsSteps.cs
2,033
C#
using System; using System.Collections.Generic; using System.Linq; namespace MvcExplorer.Models { public class CustomerWithOrders : Customer { public List<Order> Orders { get; set; } } }
18.909091
47
0.697115
[ "MIT" ]
GrapeCity/ComponentOne-ASPNET-MVC-Samples
MvcExplorer/src/MvcExplorer/Models/CustomerWithOrders.cs
210
C#
//this source code was auto-generated by tolua#, do not modify it using System; using LuaInterface; public class LuaInterface_LuaPropertyWrap { public static void Register(LuaState L) { L.BeginClass(typeof(LuaInterface.LuaProperty), typeof(System.Object)); L.RegFunction("Get", new LuaCSFunction(Get)); ...
24.511111
93
0.635539
[ "MIT" ]
NewbieGameCoder/tolua
Assets/ToLua/BaseType/LuaInterface_LuaPropertyWrap.cs
1,105
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...
36.571429
189
0.753906
[ "ECL-2.0", "Apache-2.0" ]
RafalSumislawski/pulumi-aws
sdk/dotnet/WafV2/Outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.cs
1,024
C#
 namespace TestModule { public class TestMisc { public static string TestNameof() { int variable = 10; return nameof(variable); } public static int TestSizeof() { return sizeof(int); } } }
15.157895
41
0.482639
[ "MIT" ]
SkutteOleg/dotnow-interpreter
UnitTest/dotnow.Tests/TestModule/TestMisc.cs
290
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-generate...
39.684685
152
0.559591
[ "MIT" ]
stefanlenselink/ResXResourceManager
ResXManager.View/Properties/Settings.Designer.cs
4,407
C#
namespace SimpleFactoryPattern; public class Operation { public double NumberA { get; set; } public double NumberB { get; set; } public virtual double GetResult() { return 0; } } public class OperationAdd : Operation { public override double GetResult() { return NumberA +...
16.55102
42
0.605425
[ "MIT" ]
WeihanLi/DesignPatterns
CreatePattern/SimpleFactoryPattern/Operation.cs
823
C#
using System.Threading.Tasks; namespace AElf.OS.Network.Application { public interface IPeerDiscoveryService { Task<NodeList> DiscoverNodesAsync(); Task<NodeList> GetNodesAsync(int maxCount); } }
22.4
51
0.714286
[ "MIT" ]
tomatopunk/AElf
src/AElf.OS.Core/Network/Application/IPeerDiscoveryService.cs
224
C#
// Copyright (c) 2022 TrakHound Inc., All Rights Reserved. // This file is subject to the terms and conditions defined in // file 'LICENSE.txt', which is part of this source code package. using MTConnect.Devices.DataItems.Samples; namespace MTConnect.Observations.Samples.Values { /// <summary> /// Measured d...
32.130435
104
0.692828
[ "Apache-2.0" ]
TrakHound/MTConnect
src/MTConnect.NET-Common/Observations/Samples/Values/YDimensionValue.cs
739
C#
using System; using System.Linq; using BizHawk.Common; using BizHawk.Emulation.Common; using BizHawk.Emulation.Cores; using BizHawk.Emulation.Cores.Consoles.Nintendo.NDS; namespace BizHawk.Client.Common { [ImporterFor("DeSmuME", ".dsm")] internal class DsmImport : MovieImporter { private static rea...
32.375839
141
0.624171
[ "MIT" ]
Ortheore/BizHawk
src/BizHawk.Client.Common/movie/import/DsmImport.cs
4,826
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class BulletType4 : Bullet { void Start() { speed = Cards.cardProperties["TowerType4"].speed; damage = Cards.cardProperties["TowerType4"].damage; } protected override void HitTarget() { b...
20.947368
59
0.658291
[ "MIT" ]
gameholics-usc/DefendTommyTrojan
Assets/Scripts/Towers/BulletType4.cs
400
C#
using System; using System.Data.Common; using System.Data.Entity; using Tralus.Framework.Data; using Mahan.Infrastructure.BusinessModel; namespace Mahan.Infrastructure.Data { public class InfrastructureDbContext : DbContextBase<InfrastructureDbContext> { public InfrastructureDbContext(String connectionString):...
47.886364
112
0.69103
[ "Apache-2.0" ]
mehrandvd/Tralus
Samples/Infrastructure/Source/Mahan.Tralus.Infrastructure.Data/Database/InfrastructureDbContext.cs
2,107
C#
// Copyright 2016-2020, Pulumi Corporation namespace Pulumi.Pulumi.Kubernetes.Crds.Operators.Infinispan{ /// <summary> /// A base class for all Kubernetes resources. /// </summary> public abstract class KubernetesResource : CustomResource { /// <summary> /// Standard constructor pass...
36.76
130
0.63765
[ "Apache-2.0" ]
pulumi/pulumi-kubernetes-crds
operators/infinispan/dotnet/KubernetesResource.cs
919
C#
 using AutoMapper; using MediatR; using Microsoft.Extensions.Logging; using Ordering.Application.Contracts.Persistence; using Ordering.Application.Exceptions; using Ordering.Domain.Entities; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threa...
35.8125
133
0.717277
[ "MIT" ]
neigrando/AspnetMicroservices
src/Services/Ordering/Ordering.Application/Features/Orders/Commands/UpdateOrder/UpdateOrderCommandHandler.cs
1,721
C#
// <auto-generated /> using System; using GR.Crm.Data; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; namespace G...
36.878955
108
0.311937
[ "MIT" ]
indrivo/bizon360_crm
src/GR.Extensions/GR.Crm.Extension/GR.Crm/Migrations/20200310080749_CrmDbContext_OrganizationAddNewFields.Designer.cs
80,606
C#
using Microsoft.AspNetCore; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.SpaServices.ReactDevelopmentServer; using Microsoft.Extensions.DependencyInjection; using Swashbuckle.AspNetCore.Swagger; using System.Collections.Generic; using WalkingTec.Mvvm.ReactDemo.Model...
37.013158
92
0.443299
[ "MIT" ]
331378731/WTM
demo/WalkingTec.Mvvm.ReactDemo/Program.cs
2,821
C#
//Copyright (c) Microsoft Corporation. All rights reserved. using System.Collections.ObjectModel; using Microsoft.WindowsAPICodePack.Shell; namespace Microsoft.WindowsAPICodePack.Dialogs { /// <summary> /// Provides a strongly typed collection for file dialog filters. /// </summary> public ...
32.266667
105
0.640496
[ "Apache-2.0" ]
manuth/EnhanceForm
Microsoft.WindowsAPICodePack.Shell/CommonFileDialogs/CommonFileDialogFilterCollection.cs
968
C#
using System; using System.Collections.Generic; using System.Data.SQLite; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using SpreadCommander.Common.Extensions; namespace SpreadCommander.Common.DBMS.SQLite.Functions.Math { [SQLiteFunction(Name = "Sqrt", ...
25.564103
82
0.551655
[ "Apache-2.0" ]
VassilievVV/SpreadCommander
SpreadCommander.Common/DBMS/SQLite/Functions/Math/SqrtFunction.cs
999
C#
using System.Collections.Generic; using System.Text; namespace ADLCore.Epub { public class Manifest { public List<Item> items; public Manifest() => items = new List<Item>(); public override string ToString() { StringBuilder sb = new StringBuilder(); ...
22.25
51
0.533708
[ "BSD-3-Clause" ]
vrienstudios/anime-dl
CS/ADLCore/Epub/Manifest.cs
536
C#
#pragma warning disable 108 // new keyword hiding #pragma warning disable 114 // new keyword hiding namespace Windows.Storage { #if false || false || false || false #if false || false || false || false [global::Uno.NotImplemented] #endif public enum NameCollisionOption { #if false || false || false || false ...
21.521739
49
0.672727
[ "Apache-2.0" ]
nv-ksavaria/Uno
src/Uno.UWP/Generated/3.0.0.0/Windows.Storage/NameCollisionOption.cs
495
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/wingdi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. using NUnit.Framework; using System...
37.285714
145
0.717241
[ "MIT" ]
IngmarBitter/terrafx.interop.windows
tests/Interop/Windows/Windows/um/wingdi/BITMAPFILEHEADERTests.cs
1,307
C#
using System; using System.Collections.Generic; namespace Awesome.FeedParser.Interfaces.RSS { /// <summary> /// Interface to access RSS 1.0 specified properties /// </summary> public interface IRSS_1_0_Feed : IRSS_0_92_Feed { #region Required /// <summary> /// Url to infor...
24.882353
115
0.591017
[ "MIT" ]
SirJohnK/Awesome.FeedParser
Awesome.FeedParser/Interfaces/RSS/IRSS_1_0_Feed.cs
848
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #if !(NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_0_OR_GREATER) namespace System.Diagnostics.CodeAnalysis { [AttributeUsage(AttributeTargets.Parameter | AttributeTargets.Property ...
30.142857
129
0.731438
[ "MIT" ]
AraHaan/efcore
src/ef/NotNullIfNotNullAttribute.cs
635
C#
using Newtonsoft.Json; namespace GLTF.Schema { /// <summary> /// Texture sampler properties for filtering and wrapping modes. /// </summary> public class Sampler : GLTFChildOfRootProperty { /// <summary> /// Magnification filter. /// Valid values correspond to WebGL enums: `9728` (NEAREST) and `9729` (LINEA...
21.740458
83
0.658708
[ "MIT" ]
Plattar/Sketchfab-UnityGLTF
GLTFSerialization/GLTFSerialization/Schema/Sampler.cs
2,848
C#
using StackExchange.Redis; using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using NetMicro.Cache.Abstractions; namespace NetMicro.Cache.Provider.StackExchange { internal static class RedisExtensions { internal static HashEntry[] GetHashEntry<T>(this T entity,...
30.646341
139
0.548349
[ "MIT" ]
LittleMaoTou/NetMicro
src/cache/NetMicro.Cache.Provider/StackExchange/RedisExtensions.cs
5,072
C#
using System; using System.Runtime.ExceptionServices; using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using Orleans; using Orleans.TestingHost; namespace TestExtensions { public abstract class TestClusterPerTest : OrleansTestingBase, IDisposable, Xu...
28.362637
119
0.592406
[ "MIT" ]
Abramalin/orleans
test/TestInfrastructure/TestExtensions/TestClusterPerTest.cs
2,581
C#
using System; using System.Collections.Concurrent; namespace QuickView.UI.UWP.Core.Helpers { public static class Singleton<T> where T : new() { private static ConcurrentDictionary<Type, T> _instances = new ConcurrentDictionary<Type, T>(); public static T Instance { ...
22.1
102
0.563348
[ "MIT" ]
smithderekm/quickview
src/QuickView.UI.UWP.Core/Helpers/Singleton.cs
444
C#
// <copyright file="PamConversationHandler.cs" company="Fubar Development Junker"> // Copyright (c) Fubar Development Junker. All rights reserved. // </copyright> using System; using System.Collections.Generic; using System.Net; using System.Runtime.InteropServices; using FubarDev.PamSharp.Interop; using FubarDev.Pam...
41.338912
134
0.583198
[ "MIT" ]
FubarDevelopment/PamSharp
src/FubarDev.PamSharp/PamConversationHandler.cs
9,880
C#
using System.ComponentModel.DataAnnotations; namespace CleanArchitectureApp.Application.DTOs.Authentication { public class RevokeTokenRequest { [Required(ErrorMessage = "Token is Required")] public virtual string Token { get; set; } } }
26.6
62
0.721805
[ "MIT" ]
iamstan13y/CleanArchitectureApp
CleanArchitectureApp.Application/DTOs/Authentication/RevokeTokenRequest.cs
266
C#
[CompilerGeneratedAttribute] // RVA: 0x159690 Offset: 0x159791 VA: 0x159690 private sealed class SystemTextGenerator.<impl_AddSystemMessage>d__6 : IEnumerator<object>, IEnumerator, IDisposable // TypeDefIndex: 8754 { // Fields private int <>1__state; // 0x10 private object <>2__current; // 0x18 public SystemTextGen...
40.125
138
0.757632
[ "MIT" ]
SinsofSloth/RF5-global-metadata
_no_namespace/SystemTextGenerator.--impl_AddSystemMessage--d__6.cs
1,605
C#
/* * Copyright (c) 2018 Samsung Electronics Co., Ltd All Rights Reserved * * Licensed under the Flora License, Version 1.1 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://floralicense.org/license/ * * Unless ...
32.862069
76
0.695698
[ "SHL-0.51" ]
Samsung/Tizen.CircularUI
src/Tizen.Wearable.CircularUI.Forms/FlatViewCell.cs
955
C#
namespace NEventStore { using System.Collections.Generic; public sealed class CommitEqualityComparer : IEqualityComparer<ICommit> { public bool Equals(ICommit x, ICommit y) { if (ReferenceEquals(x, y)) { return true; } if (Refe...
30.076923
140
0.480818
[ "MIT" ]
9swampy/NEventStore
src/NEventStore/CommitEqualityComparer.cs
1,173
C#
/***************************************************************************** * Copyright 2016 Aurora Solutions * * http://www.aurorasolutions.io * * Aurora Solutions is an innovative services and product company at * the forefront of the software industry, with processes and practices * involving Domain Dri...
34.900901
98
0.654879
[ "Apache-2.0" ]
TradeNexus/tradesharp-core
Backend/Simulator/TradeHub.SimulatedExchange.Common/Interfaces/ICommunicationController.cs
3,876
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....
34.346154
85
0.543113
[ "MIT" ]
NakamaNetwork/nakama.legacy
Source/TreasureGuide.Entities/Notification.cs
893
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. // </auto-generated> //------------------------------------------...
47.28
177
0.691201
[ "MIT" ]
ZhouSusan/CodingDojoCSharp
c#_.Net_Core/ASP_Net/RandomPasscode/obj/Debug/netcoreapp3.1/RandomPasscode.RazorTargetAssemblyInfo.cs
1,182
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> //--...
39.518519
151
0.582006
[ "MIT" ]
D15190304050/WpfGames
GobangClient/Properties/Settings.Designer.cs
1,069
C#
#region Apache License // // 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 // (...
28.880531
99
0.629845
[ "MIT" ]
PersianDnn/Dnn.Platform
DNN Platform/DotNetNuke.Log4net/log4net/Appender/MemoryAppender.cs
6,527
C#
using System.Web; using System.Web.Mvc; namespace RottenReviewsWeb { public class FilterConfig { public static void RegisterGlobalFilters(GlobalFilterCollection filters) { filters.Add(new HandleErrorAttribute()); } } }
19.214286
80
0.66171
[ "MIT" ]
1804-Apr-USFdotnet/john-dominguez-project1
RottenReviews/RottenReviewsWeb/App_Start/FilterConfig.cs
271
C#
using System.Reflection; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("AWSSDK.ApiGatewayManagementApi")] [assembl...
50.875
351
0.759828
[ "Apache-2.0" ]
wdolek/aws-sdk-net
sdk/code-analysis/ServiceAnalysis/ApiGatewayManagementApi/Properties/AssemblyInfo.cs
1,628
C#
using System; using System.Xml; using System.Collections.Generic; using System.Text; /// <summary> /// The list of a Tableau Server Site's groups we have downloaded /// </summary> class DownloadGroupsList : TableauServerSignedInRequestBase { /// <summary> /// URL manager /// </summary> private readon...
31.48731
136
0.5399
[ "MIT" ]
BiniamD/TabMigrate
TabRESTMigrate/RESTRequests/DownloadGroupsList.cs
6,205
C#
// This file is part of Silk.NET. // // You may modify and distribute Silk.NET under the terms // of the MIT license. See the LICENSE file for details. using System; using System.Runtime.InteropServices; using System.Text; using Silk.NET.OpenGL; using Silk.NET.Core.Loader; using Silk.NET.Core.Native; using Silk.NET.Co...
39.360515
401
0.563406
[ "MIT" ]
AzyIsCool/Silk.NET
src/OpenGL/Extensions/Silk.NET.OpenGL.Extensions.NV/NVBindlessMultiDrawIndirectCount.gen.cs
9,171
C#
using System; using System.Threading; using System.Threading.Tasks; using Cemiyet.Core.Exceptions; using Cemiyet.Persistence.Application.Contexts; using MediatR; namespace Cemiyet.Application.Commands.Authors { public class DeleteOneCommandHandler : IRequestHandler<DeleteOneCommand> { private readonly ...
27.388889
101
0.673428
[ "Apache-2.0" ]
cemiyet/backend
src/Cemiyet.Application/Commands/Authors/DeleteOneCommandHandler.cs
986
C#
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="BulkDeleteCommand.cs" company="Kephas Software SRL"> // Copyright (c) Kephas Software SRL. All rights reserved. // Licensed under the MIT license. See LICENSE file in the proj...
48.220339
179
0.630228
[ "MIT" ]
kephas-software/kephas
src/Kephas.Data/Commands/BulkDeleteCommand.cs
5,692
C#
using System; using System.Collections.Generic; using NHapi.Base.Log; using NHapi.Model.V231.Group; using NHapi.Model.V231.Segment; using NHapi.Model.V231.Datatype; using NHapi.Base; using NHapi.Base.Parser; using NHapi.Base.Model; namespace NHapi.Model.V231.Message { ///<summary> /// Represents a RQC_I...
28.568123
146
0.633042
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
afaonline/nHapi
src/NHapi.Model.V231/Message/RQC_I06.cs
11,113
C#
using System; using System.IO; using System.Reflection; using System.Threading.Tasks; using CommandLine; using CommandLine.Text; using static CoberturaConverter.Core.CoberturaConverter; namespace CoberturaConverter.CommandLine { class Program { static async Task Main(string[] args) { ...
35.790123
121
0.569162
[ "MIT" ]
GeorgDangl/CoberturaConverter
src/CoberturaConverter.CommandLine/Program.cs
2,901
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace Trifolia.Web.Models.GreenManagement { public class GreenDataTypeViewModel { #region Public Properties public int datatypeId { get; set; } public string datatype { get; set; } #endr...
18.5
45
0.675676
[ "Apache-2.0" ]
BOBO41/trifolia
Trifolia.Web/Models/GreenManagement/GreenDataTypeViewModel.cs
335
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.Vpc.V2.Model { /// <summary> /// /// </summary> public class Security...
39.847222
170
0.522482
[ "Apache-2.0" ]
Huaweicloud-SDK/huaweicloud-sdk-net-v3
Services/Vpc/V2/Model/SecurityGroupRule.cs
9,247
C#
using System; using Microsoft.EntityFrameworkCore.Migrations; namespace Lab19_CreateAnApi.Migrations { public partial class UpdateSeedAgain : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.UpdateData( table: "ToDos", ...
33.77193
87
0.503896
[ "MIT" ]
rh24/Lab19-CreateAnAPI
Lab19-CreateAnApi/Migrations/20181105063539_UpdateSeedAgain.cs
1,927
C#
//********************************************************* // // Copyright (c) Microsoft. 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-INFRINGEMENT. ...
40.482993
180
0.65636
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
samtholiya/DynaDesktop
DynamicWallpaper/Views/PageHeader.xaml.cs
5,953
C#
using System; using System.Globalization; namespace Microsoft.Maui.Controls { [Xaml.ProvideCompiled("Microsoft.Maui.Controls.XamlC.RectangleTypeConverter")] [Xaml.TypeConversion(typeof(Rectangle))] public class RectangleTypeConverter : TypeConverter { public override object ConvertFromInvariantString(string valu...
40.272727
205
0.737397
[ "MIT" ]
Eilon/maui
src/Controls/src/Core/RectangleTypeConverter.cs
1,329
C#