content
stringlengths
5
1.04M
avg_line_length
float64
1.75
12.9k
max_line_length
int64
2
244k
alphanum_fraction
float64
0
0.98
licenses
list
repository_name
stringlengths
7
92
path
stringlengths
3
249
size
int64
5
1.04M
lang
stringclasses
2 values
using System; using System.ComponentModel; using System.Globalization; using System.IO; using NeoSharp.BinarySerialization; using NeoSharp.BinarySerialization.SerializationHooks; namespace NeoSharp.Types.Converters { public class Fixed8TypeConverter : TypeConverter, IBinaryCustomSerializable { public ...
35.158537
162
0.593132
[ "MIT" ]
BSathvik/neo-sharp
src/NeoSharp.Types/Converters/Fixed8TypeConverter.cs
2,885
C#
// <auto-generated /> namespace MOE.Common.Migrations { using System.CodeDom.Compiler; using System.Data.Entity.Migrations; using System.Data.Entity.Migrations.Infrastructure; using System.Resources; [GeneratedCode("EntityFramework.Migrations", "6.4.4")] public sealed partial class YellowR...
29.3
117
0.646189
[ "Apache-2.0" ]
avenueconsultants/ATSPM
MOE.Common/Migrations/202103042041127_YellowRedActivationAggregateChange.Designer.cs
881
C#
using AuthBot; using AzureBot.Domain; using AzureBot.Forms; using AzureBot.Helpers; using AzureBot.Models; using AzureBot.Services.Runbooks.Forms; using Microsoft.Bot.Builder.Dialogs; using Microsoft.Bot.Builder.FormFlow; using Microsoft.Bot.Builder.Luis; using Microsoft.Bot.Builder.Luis.Models; using System; using Sy...
46.530928
260
0.576899
[ "MIT" ]
Bhaskers-Blu-Org2/AzureBot
AzureBot.Services.Runbooks/Dialogs/AutomationDialog.cs
27,089
C#
//========= Copyright 2016, HTC Corporation. All rights reserved. =========== using HTC.UnityPlugin.PoseTracker; using System; using UnityEngine; using UnityEngine.Events; namespace HTC.UnityPlugin.Vive { [AddComponentMenu("HTC/Vive/Vive Pose Tracker")] // Simple component to track Vive devices. public c...
26.527273
78
0.603153
[ "MIT" ]
aidankmcl/A-tech-of-the-Blocks
Assets/HTC.UnityPlugin/ViveInputUtility/Scripts/VivePose/VivePoseTracker.cs
1,461
C#
using TestDummies.Console.Themes; namespace Serilog.Settings.Combined.Tests.Support { public class MyCustomConsoleTheme : ConsoleTheme { } }
17.222222
52
0.748387
[ "Apache-2.0" ]
serilog/serilog-settings-combined
test/Serilog.Settings.Combined.Tests/Support/MyCustomConsoleTheme.cs
157
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.Collections.Immutable; using System.Composition; using System.Threading; using System.Threading.Tasks; using Microsoft.Co...
43.1875
203
0.753256
[ "Apache-2.0" ]
enginekit/copy_of_roslyn
Src/Diagnostics/FxCop/Core/Performance/CodeFixes/CA1821CodeFixProvider.cs
1,384
C#
#pragma warning disable 1591 // ------------------------------------------------------------------------------ // <autogenerated> // This code was generated by a tool. // Mono Runtime Version: 4.0.30319.17020 // // Changes to this file may cause incorrect behavior and will be lost if // the code ...
20.746269
103
0.626259
[ "MIT" ]
degendra/MessageBus
samples/Android/Resources/Resource.designer.cs
2,780
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Principle4.DryLogic.Validation { public class PropertyRule : Rule { public PropertyRule(PropertyDefinition propertyDefinition) { Property = propertyDefinition; } public Boolean ForceEmitClientSide {...
19.142857
62
0.738806
[ "Apache-2.0" ]
principle4/DryLogic
Principle4.DryLogic/Validation/PropertyRule.cs
404
C#
using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using vega.Persistence; namespace Vega.Migrations { [DbContext(typeof(VegaDbContext))] [Migration("20170815235349...
31.007194
117
0.435963
[ "MIT" ]
FernandoPucci/AspNetCore
vega/Migrations/20170815235349_AddVehicle.Designer.cs
4,312
C#
using System; using System.Collections.Generic; using Server; namespace Server.Mobiles { public class Shipwright : BaseVendor { private List<SBInfo> m_SBInfos = new List<SBInfo>(); protected override List<SBInfo> SBInfos{ get { return m_SBInfos; } } [Constructable] public Shipwright() : base( "l'Ar...
20.44898
71
0.652695
[ "BSD-2-Clause" ]
greeduomacro/vivre-uo
Scripts/Mobiles/Vendors/NPC/Shipwright.cs
1,002
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using System.Windows; namespace WpfApp3 { class Login { //decalre properties public string Username { get; set; } public string Use...
27.066038
67
0.41199
[ "MIT" ]
SnippingAddict/VinarijaTimok
WpfApp3/Login.cs
2,871
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...
39.585586
199
0.662039
[ "Apache-2.0" ]
DetlefGolze/aws-sdk-net
sdk/src/Services/AutoScalingPlans/Generated/Model/Internal/MarshallTransformations/DeleteScalingPlanResponseUnmarshaller.cs
4,394
C#
// // Copyright (c) Microsoft and contributors. 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 requi...
29.857143
78
0.598884
[ "Apache-2.0" ]
CerebralMischief/azure-sdk-for-net
src/ServiceManagement/Automation/AutomationManagement/Generated/Models/RunbookUpdateProperties.cs
2,508
C#
namespace Avalonia.Animation.Easings { /// <summary> /// Eases in a <see cref="double"/> value /// using a quadratic function. /// </summary> public class QuadraticEaseIn : Easing { /// <inheritdoc/> public override double Ease(double progress) { return progr...
22.125
52
0.559322
[ "MIT" ]
0x0ade/Avalonia
src/Avalonia.Base/Animation/Easings/QuadraticEaseIn.cs
354
C#
/* * Copyright 2018 Sage Intacct, Inc. * * 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 * * or in the "LICENSE" file accompanying t...
23
92
0.672283
[ "Apache-2.0" ]
michaelpaulus/intacct-sdk-net
Intacct.SDK/Functions/AccountsReceivable/AbstractInvoiceLine.cs
1,842
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace L01ReverseString { class Program { static void Main(string[] args) { string input = Console.ReadLine(); char[] stringToChar = input.ToCharArray(...
18.944444
54
0.627566
[ "MIT" ]
DenicaAtanasova/SoftUni
I_Tech_Module/01. Programming Fundamentals/L11_Strings_And_Text/L01ReverseString/Program.cs
343
C#
using System.Threading.Tasks; using AGS.API; using AGS.Engine; namespace DemoGame { public class FeaturesViewportsPanel : IFeaturesPanel { private IGame _game; private IObject _parent; private bool _isShowing; private IViewport _viewport1, _viewport2; public FeaturesVi...
37.425926
94
0.589065
[ "Artistic-2.0" ]
tzachshabtay/MonoAGS
Source/Demo/DemoQuest/GUI/FeaturesWindow/FeaturesViewportsPanel.cs
4,044
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using NuKeeper.Abstractions; using NuKeeper.Abstractions.CollaborationPlatform; using NuKeeper.Abstractions.Configuration; using NuKeeper.Abstractions.Formats; using NuKeeper.Abstractions.Logging; using NuKeeper.AzureDevOps...
39.75
130
0.608394
[ "Apache-2.0" ]
Bouke/NuKeeper
NuKeeper/Collaboration/CollaborationFactory.cs
7,791
C#
using System; namespace CQRS.Commanding.Testing { public interface IReplayEvents { IReplayEvents Append<TEvent>(Action<TEvent> evt) where TEvent: class, IEvent, new(); } }
22.333333
93
0.666667
[ "MIT" ]
HAXEN/CQRS
src/CQRS.Commanding.Testing/IReplayEvents.cs
203
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; namespace Stride.Audio { /// <summary> /// Interface for 3D localizable so...
57.403846
156
0.635176
[ "MIT" ]
Aggror/Stride
sources/engine/Stride.Audio/IPositionableSound.cs
2,985
C#
using System; namespace BlizzardAPI.WoW{ public class MythicSeason{ public int id{get;set;} public DateTime startDate{get;set;} public DateTime? endDate{get;set;} } }
22.111111
43
0.653266
[ "MIT" ]
universal11/BlizzardAPI
WoW/MythicSeason.cs
199
C#
using System; using Microsoft.Owin; using Unity; namespace Owin.Localization.Unity { /// <summary> /// Wrapper culture provider that resolves another type of provider using the owin request's lifetime scope during and forwards the determination to that provider /// This allows for injecting in dependencies...
38.178571
166
0.737138
[ "Apache-2.0" ]
pableess/Owin.Extensions.Localization
src/Owin.Unity/RequestCultureProviderInjectionAdapter.cs
1,069
C#
// <auto-generated> // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. // </auto-generated> namespace Balivo.AppCenterClient.Models { using Newtonsoft.Json; using System.Collections; using System.Collections.Ge...
30.913793
135
0.604016
[ "MIT" ]
balivo/appcenter-openapi-sdk
generated/Models/EventPropertyValues.cs
1,793
C#
using System.Collections.Generic; using xnaMugen.Combat; namespace xnaMugen.Evaluation.Triggers { [CustomFunction("HitDefAttr")] internal static class HitDefAttr { public static bool Evaluate(Character character, ref bool error, Operator @operator, AttackStateType ast, Combat.HitType[] hittypes) { i...
23.686747
135
0.657172
[ "BSD-3-Clause" ]
BlazesRus/xnamugen
src/Evaluation/Triggers/HitDefAttr.cs
1,968
C#
using System; public class Program { public static void Main() { Book bookOne = new Book("Animal Farm", 1930, "George Orwell"); Book bookTwo = new Book("The Documents in the Case", 2002, "Dorothy Sayers", "Robert Eustace"); Book bookThree = new Book("The Documents in the Case", 2003);...
31
103
0.638249
[ "Apache-2.0" ]
Warglaive/CSharp-OOP-Advanced
Iterators and Comparators - Lab/04.BookComparer/Program.cs
436
C#
// <auto-generated> // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. // </auto-generated> namespace Gov.Lclb.Cllb.Interfaces { using Microsoft.Rest; using Models; using Newtonsoft.Json; using System.Colle...
41.812207
341
0.569953
[ "Apache-2.0" ]
BrendanBeachBC/jag-lcrb-carla-public
cllc-interfaces/Dynamics-Autorest/Duplicaterecordidadoxiologin.cs
8,906
C#
using System; namespace Koios.Core.Types { public class KBooleanType : KConcreteType { public override Type NativeType => typeof(bool); public override string ToSerialized(object nativeValue) { return (nativeValue as bool?)?.ToString(); } public override o...
23.636364
70
0.592308
[ "MIT" ]
jonrp/Koios
Koios.Core/Types/KBooleanType.cs
522
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...
47.927419
178
0.684335
[ "Apache-2.0" ]
JeffAshton/aws-sdk-net
sdk/src/Services/RAM/Generated/Model/MissingRequiredParameterException.cs
5,943
C#
// Copyright 2021 Google LLC // // 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
42.95122
150
0.721181
[ "Apache-2.0" ]
googleapis/googleapis-gen
google/ads/googleads/v7/googleads-csharp/Google.Ads.GoogleAds.V7.Services.StandaloneSnippets/AdGroupCriterionServiceClient.GetAdGroupCriterionResourceNamesAsyncSnippet.g.cs
1,761
C#
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ /...
39.150943
153
0.607711
[ "MIT" ]
AzureMentor/msgraph-sdk-dotnet
src/Microsoft.Graph/Requests/Generated/IOfficeGraphInsightsRequestBuilder.cs
2,075
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.Concurrent; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System....
55.292731
283
0.636974
[ "Apache-2.0" ]
ConnectionMaster/NuGet.Client
src/NuGet.Core/NuGet.Build.Tasks.Console/MSBuildStaticGraphRestore.cs
56,290
C#
using System.Collections.Generic; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; namespace forCrowd.Backbone.BusinessObjects.Entities { public class ElementCell : BaseEntity { public ElementCell() { UserElementCellSet = new HashSet<UserElementCell>(); ...
33.777778
124
0.612573
[ "MIT" ]
Augustpi/Backbone
BusinessObjects/Entities/ElementCell.cs
2,736
C#
using System.Collections.Generic; using UnityEditor; using UnityEngine; using UnityEngine.SceneManagement; namespace VketTools { /// <summary> /// G.Component規定 /// 07.AnimatorがVRC_PickupおよびVRC_ObjectSyncと併用されていないこと、使用Animationで「../」が使用されていないかとを検証。 /// </summary> public class AnimatorRule : BaseRu...
35.358696
98
0.413157
[ "MIT" ]
Kozu-vr/VketBoothValidator
VketBoothValidator/Assets/VketBoothValidator/Editor/Rules/G_ComponentLimitation/G07_AnimatorRule.cs
3,559
C#
using System; using CryptoExchange.Net.Converters; using Newtonsoft.Json; namespace Kucoin.Net.Objects.Futures.Socket { /// <summary> /// Index price update /// </summary> public class KucoinStreamIndicatorPrice { /// <summary> /// Symbol /// </summary> public strin...
24.322581
58
0.537135
[ "MIT" ]
JGronholz/Kucoin.Net
Kucoin.Net/Objects/Futures/Socket/KucoinStreamIndicatorPrice.cs
756
C#
// <auto-generated> // 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...
46.960938
1,123
0.618034
[ "MIT" ]
Azure/azure-powershell-common
src/Network/Version2017_10_01/Models/VirtualNetworkGatewayConnection.cs
12,022
C#
using System; using System.Collections.Generic; using System.Text; using System.Threading; namespace System.Threading { internal static class CancellationTokenExtensions { internal static CancellationTokenRegistration UnsafeRegister(this CancellationToken cancellationToken, Action<object> callback, ob...
26.5
149
0.742925
[ "MIT" ]
2E0PGS/corefx
src/System.IO.Pipelines/src/System/IO/Pipelines/CancellationTokenExtensions.netstandard.cs
426
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.ComponentModel.DataAnnotations.Schema; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata; namespace YiSha.Data.EF { /// <summary> /// 主键约...
30.453125
108
0.509492
[ "MIT" ]
lizhaoiot/pomsbs
YiSha.Data/YiSha.Data.EF/MapConventions.cs
2,099
C#
using Maple.Core.Infrastructure; using System; using System.Collections.Generic; using System.Text; using Microsoft.AspNetCore.Builder; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Maple.Web.Framework.Infrastructure.Extensions; namespace Maple.Web.Framework.In...
26.475
101
0.614731
[ "BSD-3-Clause" ]
fengqinhua/Maple
src/Maple.Web.Framework/Infrastructure/MapleMvcStartup.cs
1,121
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class LoadAddYes : MonoBehaviour { public void ClickedYes() { if (LoadGameManager.started == true) { LoadGameManager.addYesButton.SetActive(false); LoadGameManager.addNoButton.SetActiv...
40.95122
99
0.649792
[ "Apache-2.0" ]
pab15/Tree-Milestone
Guessing-Game/Assets/Scripts/LoadAddYes.cs
1,681
C#
namespace DFrame.Kubernetes.Models { public class V1TopologySpreadConstraint { public V1LabelSelector LabelSelector { get; set; } public int MaxSkew { get; set; } public string TopologyKey { get; set; } public string WhenUnsatisfiable { get; set; } } }
27.090909
58
0.651007
[ "MIT" ]
Cysharp/DFrame
src/DFrame.Kubernetes/Models/V1TopologySpreadConstraint.cs
300
C#
using BGB.Gerencial.Domain.Extensions; using Microsoft.VisualStudio.TestTools.UnitTesting; using System; namespace BGB.Gerencial.Domain.Tests.Extensions { [TestClass] public class LastDayInMonthTests { [TestMethod] [DataRow("2020-01-01", "2020-01-31")] [DataRow("2020-02-05", "2020...
29.48
82
0.644505
[ "MIT" ]
nelson1987/ContractualManager
BGB.Gerencial.Domain.Tests/Extensions/LastDayInMonthTests.cs
739
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("03....
38
84
0.744666
[ "MIT" ]
NikolaySpasov/Softuni
C# Advanced/06. Lab - Regular Expresions/03. Non-Digit Count/Properties/AssemblyInfo.cs
1,409
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable using System; using System.Collections; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Threading; using System.Threading.Tasks; using A...
63.425076
771
0.682835
[ "MIT" ]
KurnakovMaksim/azure-sdk-for-net
sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/TenantPolicySetDefinitionCollection.cs
20,740
C#
using Microsoft.AspNetCore.Mvc; using Microsoft.Azure.WebJobs; using Microsoft.Azure.WebJobs.Extensions.Http; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Logging; using Newtonsoft.Json; using System.Threading.Tasks; using CoreLibrary.Ports.In; namespace Functions { public class State { ...
24.254237
93
0.599581
[ "MIT" ]
graeme-lockley/tutorial-azure-functions-cosmosdb-csharp
src/Functions/Http.cs
1,431
C#
using System; using Microsoft.EntityFrameworkCore; using System.Collections.Generic; namespace BUCommon { namespace Models { public class Hash { public int id {get;set;} public string type {get;set;} public string base64 {get;set;} } public class ContFile { public int i...
28.063492
94
0.611425
[ "MIT" ]
cptnalf/b2_autopush
BUCommon/CacheDbContext.cs
3,536
C#
namespace AjTalk.Language { using System; using System.Collections; using System.Collections.Generic; using System.Linq; public class Method : Block, IMethod { private string name; private IBehavior mthclass; public Method(string name) : this(nu...
28.022346
102
0.520335
[ "MIT" ]
ajlopez/AjTalk
Src/AjTalk/Language/Method.cs
5,016
C#
using System; using System.Numerics; using System.Collections.Generic; using Iril.Types; using System.Linq; using System.Globalization; namespace Iril.IR { public abstract class Constant : Value { public abstract int Int32Value { get; } public override int GetInt32Value (Module module) => Int...
29.545894
124
0.606933
[ "MIT" ]
praeclarum/Iril
Iril/IR/Constants.cs
6,118
C#
using Mindstorms.Core.Enums; namespace Mindstorms.Core.Commands.Program { public abstract class StopBase : Command { public StopBase(ProgramSlot programslot) { data = DirectCommandNoReply; data.Add(OpCode.ProgramStop); data.Add(programslot); } } ...
21.466667
48
0.614907
[ "MIT" ]
Mortens4444/LegoMindstromsEV3
Mindstorms.Core/Commands/Program/StopBase.cs
324
C#
namespace StorageMester.Tests.Structure { using NUnit.Framework; using StorageMaster.Entities.Products; using System; using System.Linq; using System.Reflection; public class ProductsTests { private Type type; [SetUp] public void SetUp() { type ...
38.982301
129
0.616572
[ "MIT" ]
kovachevmartin/SoftUni
CSharp-OOP/08-UNIT_TESTING/P04.StorageMaster/StorageMester.Tests.Structure/ProductsTests.cs
4,407
C#
using System.IO; using System.Threading.Tasks; using FluentAssertions; using LeetSharpTool.Models; using Xunit; namespace LeetSharpTool.Tests { public class CliTests { [Fact] public async Task Should_create_random_project() { var code = await Program.Run(new CliOptions()); ...
31.192308
119
0.606658
[ "MIT" ]
DenisPimenov/LeetCodeProjectTool
test/LeetSharpTool.Tests/CliTests.cs
2,433
C#
using Inheritance.Enums; using System; using System.Collections.Generic; using System.Text; namespace Inheritance.Classes { // Dog inherits from Animal public class Dog : Animal { public Dog() : base(AnimalTypes.Dog) { Console.WriteLine("New instance of dog is created!"); ...
20.333333
65
0.577413
[ "MIT" ]
sedc-codecademy/skwd9-net-05-oopcsharp
G6/Class_07/Inheritance/Inheritance/Classes/Dog.cs
551
C#
using System; public class X { public readonly int Data; public X testme (out int x) { x = 1; return this; } public X () { int x, y; y = this.testme (out x).Data; Console.WriteLine("X is {0}", x); } public ...
14.884615
49
0.397933
[ "Apache-2.0" ]
121468615/mono
mcs/tests/test-383.cs
387
C#
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace Microsoft.Azure.ServiceBus.UnitTests { using System; using System.Text; using System.Threading.Tasks; using Microsoft.Azure.ServiceBus.Core; ...
49.874317
168
0.644461
[ "MIT" ]
Yiliu-microsoft/azure-sdk-for-net
src/SDKs/ServiceBus/data-plane/tests/Microsoft.Azure.ServiceBus.Tests/ExpectedMessagingExceptionTests.cs
9,127
C#
using Net.FreeORM.Entity.Base; using Net.FreeORM.VistaDB_TestWFA.Source.DL; namespace Net.FreeORM.VistaDB_TestWFA.Source.BO { public class Roles : BaseBO { private int _OBJID; public int OBJID { set { _OBJID = value; OnPropertyChanged("OBJID"); } get { return _OB...
21.574257
69
0.395135
[ "Apache-2.0" ]
mustafasacli/Net.FreeORM.Data.Repo
Net.FreeORM.Test/Net.FreeORM.VistaDB_TestWFA/Source/BO/Roles.cs
2,179
C#
/* * Copyright 2010-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "l...
30.706897
118
0.67041
[ "Apache-2.0" ]
TallyUpTeam/aws-sdk-net
sdk/src/Services/ApplicationInsights/Generated/Model/DescribeObservationRequest.cs
1,781
C#
//------------------------------------------------------------------------------ // <auto-generated> // Ce code a été généré par un outil. // Version du runtime :4.0.30319.42000 // // Les modifications apportées à ce fichier peuvent provoquer un comportement incorrect et seront perdues si // le code est...
37.228482
264
0.555173
[ "MIT" ]
SiriusQuality/SiriusQuality-BioMa-WheatPotentialLAI-Component
SiriusQuality-WheatLAI/domainClass/WheatLAIStateVarInfo.cs
23,819
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information using System; using Telerik.Web.UI; namespace DotNetNuke.Web.UI.WebControls { class DnnScriptManager : RadS...
23.2
72
0.735632
[ "MIT" ]
MaiklT/Dnn.Platform
DNN Platform/DotNetNuke.Web.Deprecated/UI/WebControls/DnnScriptManager.cs
350
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using System.Linq; public class ModelHelper : MonoBehaviour { public bool self_collide = false; public List<GameObject> links = new List<GameObject>(); public List<ModelHelper> models = new List<ModelHelper>(); v...
38.403509
325
0.523984
[ "Apache-2.0", "BSD-3-Clause" ]
Carteav/simulator
Assets/Scripts/Utilities/SDF/ModelHelper.cs
2,189
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("Te...
37.378378
84
0.742589
[ "Apache-2.0" ]
sarochm/ltc
LoginTimeControl/Tests/Properties/AssemblyInfo.cs
1,386
C#
using NUnit.Framework; namespace Matrix.Tests { [TestFixture] public class ExampleTests { [Test] public void TestATest() { Assert.That(1, Is.EqualTo(1)); } } }
15.066667
41
0.517699
[ "MIT" ]
Hourouheki/matrix-dotnet-sdk
Matrix.Tests/MatrixTests.cs
228
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. namespace TerraFX.Interop.DirectX; ...
45.521739
145
0.74212
[ "MIT" ]
reflectronic/terrafx.interop.windows
sources/Interop/Windows/DirectX/um/d3d12/D3D12_TEX2D_ARRAY_UAV.cs
1,049
C#
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.ComponentModel; using System.Globalization; using System.Linq; using System.Text.RegularExpressions; using System.Windows; using System.Windows.Input; using System.Windows.Media; using ArkSaveAnalyzer.Infrastru...
40.195853
205
0.536887
[ "MIT" ]
Flachdachs/ArkSaveAnalyzer
ArkSaveAnalyzer/Maps/MapViewModel.cs
17,447
C#
//----------------------------------------------------------------------- // <copyright file="PropertyInfoRoot.cs" company="Marimer LLC"> // Copyright (c) Marimer LLC. All rights reserved. // Website: https://cslanet.com // </copyright> // <summary>Note: We exposed the PropertyInfo's so we can test it...</summ...
35.44186
163
0.687664
[ "MIT" ]
Eduardo-Micromust/csla
Source/Csla.test/PropertyInfo/PropertyInfoRoot.cs
3,050
C#
using UnityEngine; namespace UnityEngine.ProBuilder { /// <summary> /// Vertex positions are sorted as integers to avoid floating point precision errors. /// </summary> struct IntVec3 : System.IEquatable<IntVec3> { public Vector3 value; public float x { get { return value.x; } } ...
25.051948
89
0.498186
[ "MIT" ]
ASE-Blast/unity3dgames
Space Game/Library/PackageCache/com.unity.probuilder@4.1.2/Runtime/Core/IntVec3.cs
1,929
C#
using System; using System.Linq; using System.Threading; using System.Threading.Tasks; using AutoMapper; using MediatR; using Microsoft.EntityFrameworkCore; using Cynosura.Core.Data; using Cynosura.Template.Core.Entities; using Cynosura.Template.Core.FileStorage; using Cynosura.Template.Core.Infrastructure; using Cyno...
32.210526
109
0.617102
[ "MIT" ]
CynosuraPlatform/Cynosura.Template
src/Cynosura.Template.Core/Requests/Files/DownloadFileHandler.cs
1,838
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable using System.Text.Json; using Azure.Core; namespace Azure.AI.TextAnalytics.Models { internal partial class KeyPhraseLROTask : IUtf8JsonSerializable { void IUtf8JsonS...
33.907692
108
0.544011
[ "MIT" ]
ChenTanyi/azure-sdk-for-net
sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/KeyPhraseLROTask.Serialization.cs
2,204
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; namespace Assets.Scripts.Environnement { public class Room { public Vector2 gridPos; public RoomType RoomType; public bool doorTop, doorBot, doorLeft, doorRight; public Room roomTop, roomBot, roomLeft, roomRight; public MapSprit...
28.166667
177
0.696746
[ "Apache-2.0" ]
istic-student/roguelike
Assets/Scripts/Environnement/Room.cs
678
C#
/* MIT License Copyright (c) 2019 Matthias Müller Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, ...
37.668675
118
0.568767
[ "MIT" ]
penCsharpener/MailToDatabase
src/MailToDatabase/Clients/GenericClient.cs
12,509
C#
using System; using System.Collections; using System.Globalization; using System.Windows; #if DESKTOP using System.Windows.Data; #elif MODERN using Windows.UI.Xaml; using Windows.UI.Xaml.Data; #elif PHONE using System.Windows.Data; #endif namespace Neptune.UI.Converters { public class NullToVisibilityConverter ...
28.591549
118
0.58867
[ "Apache-2.0" ]
NeonWiredX/meridian
Neptune/Trunk/Neptune.Desktop/Converters/NullToVisibilityConverter.cs
2,032
C#
using IronPython.Runtime; using IronPython.Runtime.Types; using Microsoft.Scripting.Actions; using System.Collections.Generic; using System.Runtime.InteropServices; using System.Text.RegularExpressions; namespace NFox.Pycad.Types { public abstract class ValueBase : TypeBase { protected ValueBase(stri...
27.280645
111
0.501833
[ "MIT" ]
qingliu2018/Pycad
src/NFox.Pycad.Runtime/Types/ValueBase.cs
8,497
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.ElasticBeanstalk")] [assembly: Asse...
50.28125
339
0.751398
[ "Apache-2.0" ]
MDanialSaleem/aws-sdk-net
sdk/code-analysis/ServiceAnalysis/ElasticBeanstalk/Properties/AssemblyInfo.cs
1,609
C#
namespace Nop.Core.Domain.Orders { /// <summary> /// Represents an order average report line summary /// </summary> public partial class OrderAverageReportLineSummary { /// <summary> /// Gets or sets the order status /// </summary> public OrderStatus OrderStatus { get...
28.015625
55
0.532627
[ "MIT" ]
ASP-WAF/FireWall
Samples/NopeCommerce/Libraries/Nop.Core/Domain/Orders/OrderAverageReportLineSummary.cs
1,793
C#
namespace Marble.Infrastructure.Identity.Configurations { public class JwtConfig { /// <summary> /// Who has issued the token /// </summary> public string Issuer { get; set; } /// <summary> /// Who is the token intended for /// </summary> public s...
24.181818
55
0.530075
[ "MIT" ]
abdurrahman/marble
src/Marble.Infrastructure.Identity/Configurations/JwtConfig.cs
532
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /****************************************************************************** * This file is auto-generated from a template file by the GenerateTests.csx * * script in tests\src...
36.255814
150
0.563823
[ "MIT" ]
2m0nd/runtime
src/tests/JIT/HardwareIntrinsics/General/NotSupported/Vector128BooleanAsUInt16.cs
1,559
C#
// ---------------------------------------------------------------------------------- // // Copyright Microsoft Corporation // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://ww...
48.242424
104
0.697236
[ "MIT" ]
Ceespino/azure-powershell
src/DataFactory/DataFactoryV2/Properties/AssemblyInfo.cs
1,560
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.Goog...
29.914894
92
0.604552
[ "Apache-2.0" ]
AaronFriel/pulumi-google-native
sdk/dotnet/Composer/V1Beta1/Inputs/SchedulerResourceArgs.cs
1,406
C#
using MantaMTA.Core.Enums; using MantaMTA.Core.Events; using NUnit.Framework; namespace MantaMTA.Core.Tests { [TestFixture] public class FeedbackLoopTests : TestFixtureBase { [Test] public void Aol() { using (CreateTransactionScopeObject()) { EmailProcessingDetails processingDetails =...
28.686275
124
0.752563
[ "MIT" ]
AidanDelaney/MantaMTA
MantaCoreTests/FeedbackLoopTests.cs
1,465
C#
using System; using System.Xml.Serialization; namespace Niue.Alipay.Domain { /// <summary> /// BizOrderQueryResponse Data Structure. /// </summary> [Serializable] public class BizOrderQueryResponse : AopObject { /// <summary> /// 操作动作。 CREATE_SHOP-创建门店, MODIFY_SHOP-修改门店, CRE...
29.793814
175
0.551903
[ "MIT" ]
P79N6A/abp-ant-design-pro-vue
Niue.Alipay/Domain/BizOrderQueryResponse.cs
3,452
C#
using Sharpen; namespace java.nio { [Sharpen.NakedStub] public sealed class ServerSocketChannelImpl { } }
11.1
44
0.756757
[ "Apache-2.0" ]
Conceptengineai/XobotOS
android/generated/java/nio/ServerSocketChannelImpl.cs
111
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Diagnostics; using System.Net.Sockets; using System.Text; namespace System.Net { int...
31.815476
116
0.559775
[ "MIT" ]
er0dr1guez/corefx
src/Common/src/System/Net/SocketAddressPal.Unix.cs
5,345
C#
//----------------------------------------------------------------------- // <copyright file="RemoteActorRefProvider.cs" company="Akka.NET Project"> // Copyright (C) 2009-2016 Lightbend Inc. <http://www.lightbend.com> // Copyright (C) 2013-2016 Akka.NET project <https://github.com/akkadotnet/akka.net> // </cop...
38.142651
189
0.537343
[ "Apache-2.0" ]
corefan/akka.net
src/core/Akka.Remote/RemoteActorRefProvider.cs
26,475
C#
using System; using Survivor.Models.Enums; namespace Survivor.Models { using static Common.ExceptionMessages; public class Item { private readonly string name; private readonly double weight; public Item(string name, double weight, Category category) { this.N...
23.150943
75
0.477588
[ "MIT" ]
AtiVassileva/Survivor
Survivor.Models/Item.cs
1,229
C#
using Abp.Runtime.Validation; using HC.WeChat.Dto; using HC.WeChat.DemandForecasts; using System; namespace HC.WeChat.DemandForecasts.Dtos { public class GetDemandForecastsInput : PagedSortedAndFilteredInputDto, IShouldNormalize { public Guid UserId { get; set; } public Guid DemandForecastId {...
21.769231
91
0.577739
[ "MIT" ]
DonaldTdz/GAWeChat
aspnet-core/src/HC.WeChat.Application/DemandForecasts/Dtos/GetDemandForecastsInput.cs
580
C#
//===-----------------------------------------------------------------------==// // // Lockpwn - blazing fast symbolic analysis for concurrent Boogie programs // // Copyright (c) 2015 Pantazis Deligiannis (pdeligia@me.com) // // This file is distributed under the MIT License. See LICENSE.TXT for details. // //===-----...
38.48
84
0.627339
[ "MIT" ]
pdeligia/lockpwn
Source/Driver/Utilities/Utilities.cs
3,850
C#
// <copyright file="AssemblyInfo.cs"> // Copyright (c) 2019 by Adam Hellberg. // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. // </copyright> using System...
34.538462
72
0.719376
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
Sharparam/cshrix-bot
src/Cshrix/Properties/AssemblyInfo.cs
449
C#
using System; using System.Text.RegularExpressions; public class MatchPhoneNumber { public static void Main() { var pattern = @"\+359(\s|-)2\1\d{3}\1\d{4}"; var regex = new Regex(pattern); var phoneNumbers = regex.Matches(Console.ReadLine()); var isFirst = true; foreac...
23.115385
61
0.502496
[ "MIT" ]
spzvtbg/02-Tech-modul
Fundamental task solutions/19. 0. Regular Expressions (RegEx) - Lab/02. Match Phone Number/MatchPhoneNumber.cs
603
C#
using Sanatana.ErrorHandling; using Sanatana.Permissions.Entities; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Sanatana.Permissions.DAL { public interface IUserRoleQueries<TUserKey, TKey> where TUserKey : struct wher...
31.375
76
0.699867
[ "MIT" ]
RodionKulin/Sanatana.Permissions
Sanatana.Permissions/DAL/IUserRoleQueries.cs
755
C#
#region using System.Web.Optimization; using Sitecore; using Sitecore.Pipelines; #endregion namespace Projects.Reboot.Core.MVC { public class RegisterBundles { [UsedImplicitly] public virtual void Process(PipelineArgs args) { #if DEBUG BundleTable.EnableOptimizations = fa...
25.574468
86
0.531614
[ "MIT" ]
cloud-explorer/reboot
Reboot.Core/MVC/RegisterBundles.cs
1,204
C#
namespace PiControlPanel.Api.GraphQL.Extensions { using System.Linq; using global::GraphQL.Builders; using global::GraphQL.Types.Relay.DataObjects; using PiControlPanel.Domain.Models.Hardware; using PiControlPanel.Domain.Models.Paging; /// <summary> /// Contains extension methods to handle...
36.672131
93
0.56236
[ "MIT" ]
HritwikSinghal/pi-control-panel
src/Api/PiControlPanel.Api.GraphQL/Extensions/PagingExtensions.cs
2,239
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace PartialDeployer { using System.IO; using log4net; public class folderMan { private static readonly ILog log = LogManager.GetLogger("folderMan"); string[] deliedList = (".md|.sublime-|.git...
33.053763
181
0.507807
[ "MIT" ]
greatb/PartialDeployer
src/PartialDeployer/FolderMan.cs
3,076
C#
namespace OneTwoOne.Module.Catalog.Areas.Catalog.ViewModels { public class CategoryTranslationForm { public string DefaultCultureName { get; set; } public string Name { get; set; } public string Description { get; set; } } }
22
60
0.659091
[ "Apache-2.0" ]
microcapital/one2one
src/Modules/OneTwoOne.Module.Catalog/Areas/Catalog/ViewModels/CategoryTranslationForm.cs
266
C#
using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; namespace TestRail.Types { /// <inheritdoc /> /// <summary>stores information about a run</summary> public class Run : BaseTestRailType { #region Public Properties /// <summary>id of the run</summary> pu...
38.558252
148
0.574468
[ "Apache-2.0" ]
Brrovko/testrail-client
TestRail/Types/Run.cs
7,943
C#
using System; namespace Lachain.Storage.State { public interface IStateManager : ISnapshotManager<IBlockchainSnapshot> { void SafeContext(Action callback); T SafeContext<T>(Func<T> callback); void Acquire(); void Release(); } }
19.466667
74
0.613014
[ "Apache-2.0" ]
LATOKEN/lachain
src/Lachain.Storage/State/IStateManager.cs
294
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // This source code is made available under the terms of the Microsoft Public License (MS-PL) //Original code created by Matt Warren: http://iqtoolkit.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=19725 using System.Collections.Generic; using System...
39.728395
174
0.63642
[ "Apache-2.0" ]
Daymortel/Stump
src/Stump.ORM/SubSonic/Linq/Translation/AggregateRewriter.cs
3,220
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; namespace Pixiv { p...
32.515625
109
0.604037
[ "MIT" ]
ApexWeed/PixivMirror
src/Pixiv/Startup.cs
2,083
C#
using System; using System.Web.Http; using System.Web.Mvc; using ISPSystem.WebAPI.Areas.HelpPage.ModelDescriptions; using ISPSystem.WebAPI.Areas.HelpPage.Models; namespace ISPSystem.WebAPI.Areas.HelpPage.Controllers { /// <summary> /// The controller that will handle requests for the help page. /// </summa...
30.269841
115
0.599371
[ "MIT" ]
MayconKlopper/Desafio-ISP
ISPSystem/ISPSystem.WebAPI/Areas/HelpPage/Controllers/HelpController.cs
1,907
C#
using Microsoft.Owin; using Owin; [assembly: OwinStartupAttribute(typeof(Lab41MvcMovie.Startup))] namespace Lab41MvcMovie { public partial class Startup { public void Configuration(IAppBuilder app) { ConfigureAuth(app); } } }
18.4
63
0.655797
[ "MIT" ]
cascadianrebel/Lab41MvcMovie
Lab41MvcMovie/Startup.cs
278
C#
using System.Collections.Generic; using System.Diagnostics; using System.Linq; using RimWorld; using UnityEngine; using Verse; using Verse.AI; namespace RationalRomance_Code; public class JobDriver_ProposeDate : JobDriver { public bool successfulPass = true; private Pawn actor => GetActor(); private Paw...
35.23913
108
0.508698
[ "MIT" ]
emipa606/RationalRomance
Source/Rainbeau's Rational Romance/JobDriver_ProposeDate.cs
8,105
C#
using System; using System.Runtime.InteropServices; using Microsoft.AspNetCore.Authentication.GssKerberos.Disposables; using static Microsoft.AspNetCore.Authentication.GssKerberos.Native.Krb5Interop; namespace Microsoft.AspNetCore.Authentication.GssKerberos { public class GssKeytabCredential : GssCredential ...
39.097222
122
0.582593
[ "MIT" ]
ianclegg/aspnetcore-kerberos
Microsoft.AspNetCore.Authentication.GssKerberos/Gss/GssKeytabCredentials.cs
2,817
C#
using System; using BLD.Helpers; /// <summary> /// GET Entities from connected Catalyst /// </summary> public interface ICatalyst : IDisposable { /// <summary> /// url for content server /// </summary> public string contentUrl { get; } /// <summary> /// url for lambdas /// </summary> ...
35.604167
104
0.660035
[ "Apache-2.0" ]
belandproject/unity-renderer
unity-renderer/Assets/Scripts/MainScripts/BLD/ServiceProviders/Catalyst/Interfaces/ICatalyst.cs
1,711
C#