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) 2015, iLearnRW. Licensed under Modified BSD Licence. See licence.txt for details. */using UnityEngine; using System.Collections.Generic; public class ActiveAutoResizeScript : MonoBehaviour { List<Vector3> pointsToNotice; int axisToNotice; Vector3 ptOnAxis; Vector3 restPos; Vector3 startW...
26.334821
134
0.692999
[ "BSD-3-Clause" ]
TAPeri/WordsMatter
Assets/Ac_SerenadeHero/Code/Scripts/ActiveAutoResizeScript.cs
5,901
C#
using System; namespace MyCompany.Crm.TechnicalStuff.Metadata { [AttributeUsage(AttributeTargets.Class)] public class StatelessAttribute : Attribute { } }
23.285714
51
0.779141
[ "MIT" ]
Magicianred/DDD-starter-dotnet
Sources/TechnicalStuff/TechnicalStuff.Metadata/StatelessAttribute.cs
163
C#
using System; using NUnit.Framework; using NUnit.Framework.Interfaces; using Outracks.Diagnostics; namespace Outracks.Common.Tests { public class RestrictToAttribute : Attribute, ITestAction { private readonly OS _os; public RestrictToAttribute(OS os) { _os = os; } public void BeforeTest(ITest test) ...
19.206897
70
0.710952
[ "MIT" ]
fuse-open/fuse-studio
Source/Common/Tests/RestrictToAttribute.cs
559
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using System.Collections.Generic; namespace Azure.AI.FormRecognizer.Training { /// <summary> /// Represents a submodel that extracts fields from a specific type of form. /// </summary> public class CustomF...
40.148148
143
0.623155
[ "MIT" ]
0rland0Wats0n/azure-sdk-for-net
sdk/formrecognizer/Azure.AI.FormRecognizer/src/CustomFormSubmodel.cs
2,170
C#
using System; using System.Data.Entity.ModelConfiguration.Configuration; namespace C3D.Core.DataAccess.Extensions { internal abstract class TypeConfigurationInfo : TypeInfo { public static implicit operator Type(TypeConfigurationInfo typeInfo) => typeInfo.TypeConfigurationType; public Type Ty...
36.194444
111
0.702993
[ "MIT" ]
CZEMacLeod/C3D.Core.DataAccess.Extensions.EF6
src/TypeConfigurationInfo/TypeConfigurationInfo.cs
1,305
C#
//********************************************************* // // Copyright (c) Microsoft Corporation. All rights reserved. // // // // // // //********************************************************* namespace Bio { /// <summary> /// Interface to virtual sequence data. /// Classes which implement this i...
23.892857
84
0.506726
[ "Apache-2.0" ]
jdm7dv/Microsoft-Biology-Foundation
eLMM/CodePlex/MBF/IVirtualQualitativeSequenceProvider.cs
669
C#
using System; public class Dummy : ITarget { private int health; private int experience; public Dummy(int health, int experience) { this.health = health; this.experience = experience; } public int Health { get { return this.health; } } public void TakeAt...
17.681818
71
0.547558
[ "MIT" ]
Avarea/OOP-Advanced
UnitTesting/Skeleton/Dummy.cs
780
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.407407
151
0.580827
[ "MIT" ]
parsakhatibzadeh/SafeNote
SafeNote/Safe Note/note pad/Properties/Settings.Designer.cs
1,066
C#
#if UNITY_NATIVE using System.Runtime.CompilerServices; using Svelto.Common; using Svelto.DataStructures; using Svelto.ECS.Internal; namespace Svelto.ECS { public static class UnityEntityDBExtensions { internal static NativeEGIDMapper<T> ToNativeEGIDMapper<T>(this TypeSafeDictionary<T> dic, ...
44.109589
135
0.617702
[ "MIT" ]
The-Paladin-Forge-Studio/Svelto-ECS-Filters
Svelto.ECS/Svelto.ECS/Extensions/Unity/DOTS/UnityEntityDBExtensions.cs
3,220
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.34359
104
0.564475
[ "Apache-2.0" ]
DetlefGolze/aws-sdk-net
sdk/src/Services/Macie2/Generated/Model/Member.cs
5,917
C#
using System; using Serilog.Events; using Serilog.Formatting; namespace Sentry.Serilog { /// <summary> /// Sentry Options for Serilog logging /// </summary> /// <inheritdoc /> public class SentrySerilogOptions : SentryOptions { /// <summary> /// Whether to initialize this SDK th...
30.571429
106
0.567423
[ "MIT" ]
kanadaj/sentry-dotnet
src/Sentry.Serilog/SentrySerilogOptions.cs
1,498
C#
using Microsoft.AspNetCore.Mvc; using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Threading.Tasks; using AuthPermissions.AdminCode; using AuthPermissions.BaseCode.CommonCode; using AuthPermissions.BaseCode.PermissionsCode; using Example4.MvcWebApp.IndividualAccounts.Mode...
32.136364
99
0.668317
[ "MIT" ]
mohamed-azhar/AuthPermissions.AspNetCore
Example4.MvcWebApp.IndividualAccounts/Controllers/LoggedInUserController.cs
1,416
C#
using System.Collections.Generic; namespace HLHML.Dictionnaire { public class Q : List<Terme> { public Q() : base() { Add(new Terme { Mots = "que", Type = TypeTerme.Complement }); Add(new Terme { ...
20
43
0.404348
[ "MIT" ]
freddycoder/HLHML
HLHML/Dictionnaire/Q.cs
463
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CarStorageLibrary.StorageImpl { class CsvStorage:AbstractStorage { protected override List<Car> Load() { throw new NotImplementedException(); } protected override bool Save( List...
17.545455
48
0.746114
[ "Apache-2.0" ]
Anastasia-Rybak/oop-examples
course-work/CarStorageLibrary/StorageImpl/CsvStorage.cs
388
C#
using AuthServer.Core.Provider; using AuthServer.Core.Handler; using AuthServer.Core.Network; using AuthServer.Core.Performance; using AuthServer.Core.Security; using AuthServer.Core.Server; using AuthServer.Core.Settings; using Autofac; using Microsoft.Extensions.Logging; using NLog.Extensions.Logging; using AuthServ...
36.446809
107
0.670753
[ "MIT" ]
SchulIT/adauth-server
AuthServer.Console/Program.cs
1,715
C#
using System.IO; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using deVoid.UIFramework; using deVoid.Utils; using Mirror; public class GuideSetupWindowController : AWindowController { [SerializeField] private GameObject guideProfileListContainer; [Seria...
35.795181
118
0.685964
[ "MIT" ]
museum4punkt0/AR-Interactive-Guide-Tool
ar_interactive_tour_guide_unity/Assets/Scripts/Screens/GuideSetupWindowController.cs
2,973
C#
using UnityEngine; using System.Collections; public static class StartingVariables { public const int shipHP = 30; public const int shipShieldHP = 2; public const float shipShieldReactivationTime = 5.0f; public const int shipDamage = 30; public const float shipSpeed = 2.0f; public const floa...
29.73913
77
0.71345
[ "MIT" ]
GrathnMi/MyWork
UnityGameProjects/FleetCommandMonkey/Assets/c#/StartingVariables.cs
686
C#
using AutoFixture; using Bogus; using SocialCareCaseViewerApi.Tests.V1.Helpers; using SocialCareCaseViewerApi.V1.Infrastructure; #nullable enable namespace SocialCareCaseViewerApi.Tests.V1.IntegrationTests.HistoricalData { public static class HistoricalE2ETestHelpers { public static HistoricalCaseNote ...
42.298851
152
0.655707
[ "MIT" ]
JohnFarrellDev/social-care-case-viewer-api-fork
SocialCareCaseViewerApi.Tests/V1/IntegrationTests/HistoricalData/HistoricalE2ETestHelpers.cs
3,680
C#
using Orchard.Environment.Extensions; using Orchard.UI.Navigation; namespace Orchard.Localization { [OrchardFeature("Orchard.Localization.Transliteration")] public class AdminMenu : INavigationProvider { public Localizer T { get; set; } public string MenuName { get { return "admin"; } } ...
45.166667
156
0.594096
[ "BSD-3-Clause" ]
Lombiq/Associativy
src/Orchard.Web/Modules/Orchard.Localization/AdminMenu.cs
813
C#
using System; using System.ComponentModel.DataAnnotations; using Newtonsoft.Json; namespace ProjectWebServer.Models { // Models used as parameters to AccountController actions. public class ChangePasswordBindingModel { [Required] [DataType(DataType.Password)] [Display(Name = "Curr...
34.916667
110
0.633413
[ "MIT" ]
nbradbury138/SIT313-Project2-CloudGroup8
Project2/ProjectWebServer/Models/AccountBindingModels.cs
2,097
C#
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // This code is distributed under the GNU LGPL (for details please see \doc\license.txt) using System; using ICSharpCode.NRefactory.Editor; namespace ICSharpCode.AvalonEdit.Folding { /// <summary> /// Helper clas...
24.623188
103
0.645674
[ "MIT" ]
GlobalcachingEU/GSAKWrapper
ICSharpCode.AvalonEdit/Folding/NewFolding.cs
1,701
C#
[CipherSuite ECDHE_ECDSA AES_128_CBC_SHA256,CipherSuite ECDHE_ECDSA AES_128_CBC_SHA,CipherSuite ECDHE_RSA AES_128_CBC_SHA256,CipherSuite ECDHE_RSA AES_128_CBC_SHA,CipherSuite DHE_RSA AES_128_CBC_SHA256,CipherSuite DHE_RSA AES_128_CBC_SHA,CipherSuite RSA AES_128_CBC_SHA256,CipherSuite RSA AES_128_CBC_SHA]
153
305
0.915033
[ "BSD-3-Clause" ]
YoshikuniJujo/forest
subprojects/tls-analysis/server/test/1T1POQbO-5Tp.cs
306
C#
// <auto-generated/> #pragma warning disable 1591 namespace Test { #line hidden using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Components; #nullable restore #line 1 "x:\dir\subdir\Test\TestComponent.cshtml" using Micros...
28.830189
124
0.688482
[ "Apache-2.0" ]
Therzok/AspNetCore-Tooling
src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/DuplicateMarkupAttributes_DifferentCasing_IsAnError_BindValue/TestComponent.codegen.cs
1,528
C#
using System; using System.Threading; public class Beta { public static int Main(string[] args) { int rValue = 100; Console.WriteLine("Setup an Infinite Wait with negative value other than -1"); Console.WriteLine("This can't be done on WaitAny and WaitAll"); WaitHandle Waiter; Waiter = (WaitHandl...
23.769231
80
0.677454
[ "MIT" ]
CyberSys/coreclr-mono
tests/src/baseservices/threading/regressions/6906/repro.cs
927
C#
using System; using System.Collections.Generic; using System.Text; using Unification.Application; namespace Unification { public class ApplicationsManager { private AvaibleApplications _avaibleApps; public ApplicationsManager() { _avaibleApps = new AvaibleApplicat...
23.486486
90
0.53855
[ "MIT" ]
Matthew-1/Projects
UnifiedKatasAndBattleShip/Unification/Unification/Application/ApplicationsManager.cs
871
C#
using Microsoft.VisualStudio.TestTools.UnitTesting; using SMC.Utilities.Queues; using System; using System.Collections.Generic; namespace ItemQueueLib.Tests { [TestClass] public class ActionQueueTests { // ReSharper disable once InconsistentNaming private const string QUEUE_NAME = "action_...
30.818182
113
0.531912
[ "Apache-2.0" ]
dmarciano/ItemQueue
src/ItemQueueLib.Tests/ActionQueueTests.cs
7,460
C#
using System.Collections.Generic; using System.Data.Entity.Infrastructure; using System.Threading; using System.Threading.Tasks; namespace EntityFrameworkMock { // From https://msdn.microsoft.com/en-us/library/dn314429(v=vs.113).aspx public class DbAsyncEnumerator<TEntity> : IDbAsyncEnumerator<TEntity> { ...
28.407407
115
0.70013
[ "Apache-2.0" ]
huysentruitw/entity-framework-mock
src/EntityFrameworkMock.Shared/DbAsyncEnumerator.cs
769
C#
// --------------------------------------------------------------------------------------------------------------------- // <copyright file="MilpInSpanPart.cs" company="Czech Technical University in Prague"> // Copyright (c) 2018 Czech Technical University in Prague // </copyright> // ---------------------------...
45.165498
185
0.526938
[ "MIT" ]
CTU-IIG/EnergyLimitsScheduling
Iirc.EnergyLimitsScheduling.Shared/Solvers/MilpInSpanPart.cs
32,205
C#
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Runtime.Serialization; using System.Threading.Tasks; using Windows.Storage; using Xamarin.Forms.Internals; #if WINDOWS_UWP namespace Xamarin.Forms.Platform.UWP #else namespace Xamarin.Forms.Platform.WinRT #endif ...
29.394366
153
0.723527
[ "MIT" ]
Acidburn0zzz/Xamarin.Forms
Xamarin.Forms.Platform.WinRT/WindowsSerializer.cs
2,089
C#
namespace MiniGalaxyBirds { class PlayerBullet : IComponent { } }
10
32
0.728571
[ "Apache-2.0" ]
amadron/FinalProject_ShaderProg
examples/experimental/MiniGalaxyBirds/PlayerBullet.cs
72
C#
using System; using System.Collections.Generic; using Orchard.Layouts.Framework.Drivers; using Orchard.Layouts.Framework.Elements; namespace Orchard.Layouts.Services { public interface IElementManager : IDependency { IEnumerable<ElementDescriptor> DescribeElements(DescribeElementsContext context); ...
64.903226
108
0.761431
[ "BSD-3-Clause" ]
Lombiq/Associativy
src/Orchard.Web/Modules/Orchard.Layouts/Services/IElementManager.cs
2,014
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Akka.TestKit.Xunit; using Akka.Util.Internal; using AkkaSim.Logging; using Master40.DB.Data.Context; using Master40.DB.Data.Initializer; using Master40.DB.GanttPlanModel; using Master40.DB.Nominal;...
49.386167
201
0.659625
[ "Apache-2.0" ]
MaxWeickert/ng-erp-4.0
Master40.XUnitTest/SimulationEnvironment/CentralSystem.cs
17,139
C#
#region MigraDoc - Creating Documents on the Fly // // Authors: // Stefan Lange // Klaus Potzesny // David Stephensen // // Copyright (c) 2001-2017 empira Software GmbH, Cologne Area (Germany) // // http://www.pdfsharp.com // http://www.migradoc.com // http://sourceforge.net/projects/pdfsharp // // Permission is ...
34.576446
114
0.564326
[ "MIT" ]
PdfSharpCore/PdfSharpCore
src/MigraDoc.DocumentObjectModel/DocumentObjectModel/ParagraphFormat.cs
16,735
C#
using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 namespace aws { #pragma warning disable CS8618 [JsiiByValue(fqn: "aws.LambdaAliasConfig")] public class LambdaAliasConfig : aws.ILambdaAliasConfig { [JsiiProperty(name: "functionName", typeJson: "{\"primitive\":\"s...
30.884211
191
0.546012
[ "MIT" ]
scottenriquez/cdktf-alpha-csharp-testing
resources/.gen/aws/aws/LambdaAliasConfig.cs
2,934
C#
using System; namespace VisualStudioLauncher { class Program { [STAThread] static void Main(string[] args) { try { var launcher = new Launcher(); try { launcher.ParseArguments(args); ...
22.162791
58
0.43022
[ "MIT" ]
Wortex17/VisualStudioLauncher
Program.cs
955
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace _1186 { class Program { static void Main(string[] args) { int[][] xs = new int[11175][]; int[] x = new int[11175]; int cnt = 0; for (int i = 1; i <= 1...
27.041667
81
0.288906
[ "MIT" ]
yu3mars/procon
aoj/1100s/1186/1186/Program.cs
1,300
C#
//#define SWITCH_BLOCK_MANAGER using UnityEngine; using System.Collections; using System.Collections.Generic; using CommonsHelper; using CommonsPattern; public class SwitchBlockManager : SingletonManager<SwitchBlockManager> { /* Events */ public delegate void SwitchActiveColorHandler(GameColor newActiveColor); p...
28.321839
137
0.748985
[ "BSD-3-Clause" ]
hsandt/scavenger-dogs
Assets/Scripts/Block/SwitchBlockManager.cs
4,928
C#
// Copyright Keysight Technologies 2012-2019 // 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/. using System; using System.IO; using System.Text.RegularExpre...
45.948276
196
0.533959
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
Keysight/opentap
Package/PackageActions/Create.cs
10,662
C#
//----------------------------------------------------------------------- // <copyright file="ServiceProvider.cs" company="Akka.NET Project"> // Copyright (C) 2009-2021 Lightbend Inc. <http://www.lightbend.com> // Copyright (C) 2013-2021 .NET Foundation <https://github.com/akkadotnet/akka.net> // </copyright> ...
49.674603
168
0.630931
[ "Apache-2.0" ]
Aaronontheweb/akka.net
src/contrib/dependencyinjection/Akka.DependencyInjection/DependencyResolver.cs
6,261
C#
using System.Threading.Tasks; using Shouldly; using Xunit; using HealthCare.Sessions; namespace HealthCare.Tests.Sessions { public class SessionAppService_Tests : HealthCareTestBase { private readonly ISessionAppService _sessionAppService; public SessionAppService_Tests() { ...
28.962264
87
0.630619
[ "MIT" ]
pickituup/HealthCare_collaboration
aspnet-core/test/HealthCare.Tests/Sessions/SessionAppService_Tests.cs
1,537
C#
using ModelWrapper; using BAYSOFT.Core.Domain.Entities.StockWallet; namespace BAYSOFT.Core.Application.StockWallet.Samples.Commands.PatchSample { public class PatchSampleCommandResponse : ApplicationResponse<Sample> { public PatchSampleCommandResponse(WrapRequest<Sample> request, object data, string me...
33.071429
151
0.730022
[ "MIT" ]
BAYSOFT-001/baysoft-stockwallet
src/BAYSOFT.Core.Application/StockWallet/Samples/Commands/PatchSample/PatchSampleCommandResponse.cs
463
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...
42.529412
177
0.664493
[ "Apache-2.0" ]
Bio2hazard/aws-sdk-net
sdk/src/Services/ApplicationAutoScaling/Generated/Model/Internal/MarshallTransformations/DescribeScalableTargetsResponseUnmarshaller.cs
5,061
C#
// --------------------------------------------------------------------------------------------- #region // Copyright (c) 2005-2015, SIL International. // <copyright from='2005' to='2015' company='SIL International'> // Copyright (c) 2005-2015, SIL International. // // This software is distributed under the ...
36.09589
103
0.528526
[ "MIT" ]
sillsdev/phonology-assistant
src/Pa/UI/Controls/FieldRelatedControls/FieldSelectorGrid.cs
15,810
C#
namespace RedBlackAvl.Implementation.Contracts { public interface IAvlNode<TKey, TValue> { IAvlNode<TKey, TValue> Parent { get; set; } IAvlNode<TKey, TValue> Left { get; set; } IAvlNode<TKey, TValue> Right { get; set; } TKey Key { get; set; } TValue Value { get; set;...
21.470588
51
0.572603
[ "MIT" ]
GeorgiNik/RedBlack-AVL
RedBlackAvl/RedBlackAvl.Implementation/Contracts/IAvlNode.cs
367
C#
using System; using System.Collections.Generic; using RawRabbit.Configuration.Exchange; namespace RawRabbit.Extensions.TopologyUpdater.Model { public class ExchangeUpdateResult { public ExchangeConfiguration Exchange { get; set; } public List<Binding> Bindings { get; set; } public TimeSpan ExecutionTime { get...
23.857143
53
0.775449
[ "MIT" ]
aignas/RawRabbit
src/RawRabbit.Extensions/TopologyUpdater/Model/ExchangeUpdateResult.cs
336
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 05:00:00 UTC // </auto-generated> //--------------...
35.888889
119
0.639835
[ "MIT" ]
GridProtectionAlliance/go2cs
src/go-src-converted/encoding/gob/type_gobEncoderTypeStruct.cs
2,907
C#
using RazzleServer.Game.Maple.Characters; using RazzleServer.Game.Maple.Scripting; namespace RazzleServer.Game.Scripts.Commands { public sealed class KickCommand : ACommandScript { public override string Name => "kick"; public override string Parameters => "[character]"; public overr...
27.744681
99
0.485429
[ "MIT" ]
razfriman/RazzleServer
RazzleServer.Game/Scripts/Commands/KickCommand.cs
1,306
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class EntityMotor : MonoBehaviour { public float maxMoveSpeed = 5; public float acceleration = .5f; public float slowDownAcceleration = .8f; public float changeDirectionAcceleration = .3f; public float offHandM...
34.607656
191
0.512996
[ "MIT" ]
The-Pretenders/MyFirstAdventure
The Adventures of Dud/Assets/Scripts/Motor/EntityMotor.cs
14,466
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace Microsoft.VisualStudio.TestPlatform.CommandLine.Processors; using System; using System.Diagnostics.Contracts; using Common; using Common.Interf...
35.060811
128
0.6508
[ "MIT" ]
lbussell/vstest
src/vstest.console/Processors/EnvironmentArgumentProcessor.cs
5,191
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...
43.14433
178
0.650179
[ "Apache-2.0" ]
FoxBearBear/aws-sdk-net
sdk/src/Services/MediaPackage/Generated/Model/TooManyRequestsException.cs
4,185
C#
#region BSD License /* Copyright (c) 2004-2005 Matthew Holmes (matthew@wildfiregames.com), Dan Moorehead (dan05a@gmail.com) Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the ab...
40.791667
104
0.730848
[ "BSD-3-Clause" ]
SignpostMarv/opensim
Prebuild/src/Core/Interfaces/IDataNode.cs
1,958
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.DataAnnotations.Schema; using System.Diagnostics; using System.Linq; using S...
50.154827
136
0.60868
[ "Apache-2.0" ]
jzabroski/EntityFrameworkCore
src/EFCore/Metadata/Conventions/Internal/InversePropertyAttributeConvention.cs
27,535
C#
using Microsoft.Management.Infrastructure; using System; using System.Collections.Generic; using System.Linq; using SimCim.Core; namespace SimCim.Root.V2 { public class MSFTNCProvNewQuery : MSFTNCProvEvent { public MSFTNCProvNewQuery() { } public MSFTNCProvNewQue...
22.6875
113
0.442149
[ "Apache-2.0" ]
simonferquel/simcim
SimCim.Root.V2/ClassMSFTNCProvNewQuery.cs
1,454
C#
using WebDriverManager.DriverConfigs; using WebDriverManager.Helpers; using WebDriverManager.Services; using WebDriverManager.Services.Impl; namespace WebDriverManager { public class DriverManager { static readonly object _object = new object(); private readonly IBinaryService _bin...
37.75
105
0.616403
[ "MIT" ]
sinanerkan/WebDriverManager.Net
WebDriverManager/DriverManager.cs
1,914
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class FruitGameManager : MonoBehaviour { ScoreManagerFruit smf; [SerializeField] GameObject button; button_animation ba; [SerializeField] GameObject spawnerPrefab; GameObject spawnerInstance; Spawner spScri...
22.596154
63
0.560851
[ "MIT" ]
Zargith/Keimyung_3DGA_Spring2021
Assets/Scripts/FruitNinja/FruitGameManager.cs
1,175
C#
// This file is auto-generated, don't edit it. Thanks. using System; using System.Collections.Generic; using System.IO; using Tea; namespace AlibabaCloud.SDK.Cms20190101.Models { public class DescribeMonitorGroupInstancesRequest : TeaModel { [NameInMap("PageSize")] [Validation(Required=false)] ...
24.282051
66
0.621964
[ "Apache-2.0" ]
atptro/alibabacloud-sdk
cms-20190101/csharp/core/Models/DescribeMonitorGroupInstancesRequest.cs
947
C#
using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace Northwnd { public class Product { [Key, DatabaseGenerated(DatabaseGeneratedOption.None)] public int ProductID { get; set; } [Required] [S...
27.275
74
0.63978
[ "MIT" ]
zmjack/Northwnd
NorthwndCore/Northwnd/Product.cs
1,091
C#
using System; using System.IO; using GroupDocs.Conversion.Options.Convert; namespace GroupDocs.Conversion.Examples.CSharp.BasicUsage { /// <summary> /// This example demonstrates how to convert OTS file into XLS format. /// For more details about OpenDocument Spreadsheet Template (.ots) to Microsoft Excel ...
41.548387
168
0.666925
[ "MIT" ]
groupdocs-conversion/GroupDocs.Conversion-for-.NET
Examples/GroupDocs.Conversion.Examples.CSharp/BasicUsage/ConvertToSpreadsheet/ConvertToXls/ConvertOtsToXls.cs
1,288
C#
namespace AuthZyin.Authorization { using System; using Microsoft.AspNetCore.Authorization; using Microsoft.Extensions.DependencyInjection; /// <summary> /// Auth extensions /// </summary> public static class AuthorizationExtensions { /// <summary> /// Add authorization ...
39.770833
147
0.665794
[ "MIT" ]
sidecus/authzyin
lib/Authorization/AuthorizationExtensions.cs
1,911
C#
// Machine generated by peg-sharp 0.4.702.0 from benchmark/Benchmark.peg. using System; using System.Collections.Generic; using System.Globalization; using System.Runtime.Serialization; using System.Security.Permissions; [Serializable] internal sealed class ParserException : Exception { public ParserException() { }...
30.89357
207
0.662384
[ "MIT" ]
louisukiri/peg-sharp
benchmark/Benchmark.cs
27,866
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("La...
38.081081
84
0.747339
[ "MIT" ]
vladislav-karamfilov/TelerikAcademy
C# Projects/ConsoleApplication2/LargestPrimeFactor/Properties/AssemblyInfo.cs
1,412
C#
using System; namespace Nyan.Core.Modules.Diagnostics { [AttributeUsage(AttributeTargets.Method)] public sealed class DiagnosticsEvaluationSetupAttribute : Attribute { public string Name; public string Category; public bool Critical; } }
25.363636
71
0.706093
[ "MIT" ]
bucknellu/Nyan
Core/Modules/Diagnostics/DiagnosticsEvaluationSetupAttribute.cs
281
C#
/* * Copyright (c) 2014 Universal Technical Resource Services, Inc. * * 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/. */ using ATMLCommonLibrary.controls.awb; ...
51.675676
188
0.612252
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
UtrsSoftware/ATMLWorkBench
ATMLLibraries/ATMLCommonLibrary/controls/uut/UUTDescriptionControl.Designer.cs
15,298
C#
using System; using System.Collections.Generic; using System.Data; using System.Data.Entity; using System.Linq; using System.Net; using System.Web; using System.Web.Mvc; using GestorONG.DAL; using GestorONG.DataModel; namespace GestorONG.Controllers { public class PeriodicidadesController : Controller { ...
34.40678
140
0.58202
[ "MIT" ]
joakDA/gestor-ongd-sps
GestorONG/Controllers/PeriodicidadesController.cs
4,072
C#
namespace EstateManagment.Data.Models { using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using static DataConstants; public class Company { public int Id { get; set; } [Required] [RegularExpression(RegexLatinCompanyNames)] [MinLength(...
29.121951
106
0.657454
[ "MIT" ]
LuGeorgiev/CSharpSelfLearning
ASP.Core.SelfLearning/EstateManagment/EstateManagment.Data.Model/Company.cs
1,196
C#
using System; using OpenTelemetry.ClrProfiler.Managed.Logging; namespace OpenTelemetry.ClrProfiler.Managed.Util { /// <summary> /// Helpers to access environment variables /// </summary> internal static class EnvironmentHelpers { private static readonly ILogger Logger = ConsoleLogger.Create...
34.235294
110
0.628007
[ "Apache-2.0" ]
mic-max/opentelemetry-dotnet-instrumentation
src/OpenTelemetry.ClrProfiler.Managed/Util/EnvironmentHelpers.cs
1,164
C#
// ----------------------------------------------------------------------- // Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- using System; using System.ComponentModel; using System.Runtime.CompilerServices; namespace AudioSwitcher.ComponentMod...
29.676471
89
0.553023
[ "MIT" ]
Black-Sunlight/audio-switcher
src/AudioSwitcher/ComponentModel/ObservableObject.cs
1,011
C#
using System; using Newtonsoft.Json.Linq; namespace Beyova { /// <summary> /// /// </summary> public class EntityObjectAudit : BaseAuditObject<Guid?, JToken>, IIdentifier { } }
16.833333
80
0.628713
[ "Apache-2.0" ]
JTOne123/CommonFoundation
development/Beyova.StandardContract/Model/Audit/EntityObjectAudit.cs
204
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.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Storage; using Microsoft.EntityFrameworkCore.Uti...
50.593407
122
0.629018
[ "MIT" ]
FelicePollano/efcore
src/EFCore/Query/CompiledQueryCacheKeyGeneratorDependencies.cs
4,604
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 System; using System.Collections.Generic; using System.Collections.Immutable; using System.IO; using System.Linq; using System.Reflection; using System...
43.847826
206
0.63411
[ "Apache-2.0" ]
0x53A/roslyn
src/Test/Utilities/Shared/Compilation/CompilationTestDataExtensions.cs
4,036
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.Collections.Generic; using System.Net.Http; using System.Threading.Tasks; using AngleSharp.Dom.Html; namespace Microsoft.AspNetCore.Ident...
32.636364
111
0.673166
[ "Apache-2.0" ]
06b/AspNetCore
src/Identity/test/Identity.FunctionalTests/Pages/Account/Manage/SetPassword.cs
1,079
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace knearest { interface IPriorityQueue<T> { T MaxItem { get; } float MaxPriority { get; } void Enqueue(T node, float priority); IEnumerable<T> Items { g...
23.613636
80
0.471607
[ "MIT" ]
Marjapuuro/Skeletal-data-fusion-of-Kinect-v2-sensors
Assets/Scripts/ICP/knearest/IPriorityQueue.cs
2,080
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.IO; using System.Linq; using System.Reflection; using System.Text; using System.Xml; using System.Xml.Linq; using Microsoft.Extensions.Fil...
33.885714
126
0.61172
[ "Apache-2.0" ]
1175169074/aspnetcore
src/FileProviders/Embedded/test/TestAssembly.cs
2,374
C#
using System; using System.Collections.Generic; namespace NeoSmart.SecureStore { sealed internal class Vault { internal const int SCHEMAVERSION = 1; public int VaultVersion; public byte[] IV; public SortedDictionary<string, EncryptedBlob> Data; } }
19.733333
60
0.675676
[ "MIT" ]
JamesJoyceGit/SecureStore
SecureStore/Vault.cs
298
C#
// <auto-generated> // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/ads/googleads/v3/enums/proximity_radius_units.proto // </auto-generated> #pragma warning disable 1591, 0612, 3021 #region Designer generated code using pb = global::Google.Protobuf; using pbc = global::Google.Prot...
36.624434
316
0.699283
[ "Apache-2.0" ]
PierrickVoulet/google-ads-dotnet
src/V3/Types/ProximityRadiusUnits.cs
8,094
C#
using System; namespace Com.GitHub.ZachDeibert.ProxyConfigurer.Proxy { public enum ProxyType : byte { EndOfList, Direct, Proxy, Socks } }
16.272727
56
0.603352
[ "MIT" ]
zachdeibert/proxy-configurer
Proxy/ProxyType.cs
179
C#
using Serenity; using Serenity.Extensibility; namespace Advocate { [NestedLocalTexts] public static partial class Texts { public static class Db { public static class Administration { public static class Translation { ...
52.386243
141
0.589738
[ "MIT" ]
Jgorsick/ChildAdvocate
Advocate/Advocate.Web/Modules/Texts.cs
9,903
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class CallFastIk : MonoBehaviour { private DitzelGames.FastIK.FastIKFabric[] _allIk; private int _index = 0; // Start is called before the first frame update void Start() { _allIk = FindObjectsOfType<Ditz...
21.114286
70
0.571042
[ "MIT" ]
xfac11/Bug-Game
Assets/Scripts/CallFastIk.cs
741
C#
using Microsoft.AspNetCore.Identity; public class ApplicationUser : IdentityUser { }
17.8
44
0.786517
[ "MIT" ]
polatengin/B05277
Chapter17/2-FacebookGoogleAuthenticationSample/Models/ApplicationUser.cs
89
C#
namespace MComponents.MGrid { public class BeginAddArgs<T> : RowEventArgs<T>, ICancelableEvent { public bool Cancelled { get; set; } } }
19.75
68
0.651899
[ "MIT" ]
BlazorUI/MComponents
MComponents/MGrid/EventArgs/BeginAddArgs.cs
160
C#
using System; using Jasper.Util; namespace Jasper.Messaging.Transports { public static class TransportConstants { public const string Durable = "durable"; public static readonly string Loopback = "loopback"; public static readonly string Default = "default"; public static read...
36.16129
85
0.682426
[ "MIT" ]
SVemulapalli/jasper
src/Jasper/Messaging/Transports/TransportConstants.cs
1,123
C#
namespace Miruken.Mvc { using System; using Callback; using Concurrency; using Context; public static class HandlerNavigateExtensions { public static Promise<Context> Next<C>( this IHandler handler, Action<C> action) where C : IController { r...
30.470085
81
0.584292
[ "MIT" ]
Miruken-DotNet/miruken.mvc
Source/Miruken.Mvc/Handler.Navigate.cs
3,567
C#
using DocumentsApi.V1.UseCase; using FluentAssertions; using NUnit.Framework; namespace DocumentsApi.Tests.V1.UseCase { [TestFixture] public class ThrowOpsErrorUsecaseTests { [Test] public void ThrowsTestOpsErrorException() { var ex = Assert.Throws<TestOpsErrorException>...
24.681818
79
0.646409
[ "MIT" ]
LBHackney-IT/documents-api
DocumentsApi.Tests/V1/UseCase/ThrowOpsErrorUsecaseTests.cs
543
C#
// Copyright (c) Aghyad khlefawi. All rights reserved. // Licensed under the MIT License. See LICENSE file in the project root for full license information. using System; using System.Collections; using System.Collections.Generic; namespace Coddee { /// <summary> /// Mapper to convert between types with ...
39.90411
153
0.629591
[ "MIT" ]
Aghyad-Khlefawi/Coddee
src/Coddee.Core/Mapper/IObjectMapper.cs
2,915
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace SigningPortalDemo.AuthApi { public class TokenResponse { public string Access_token { get; set; } public int Expires_in { get; set; } } }
18.4
48
0.695652
[ "MIT" ]
technologynexus/nexusgo-signingportaldemo
SigningPortalDemo/AuthApi/TokenResponse.cs
278
C#
using ManageCourse.Core.Data.Common; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ManageCourse.Core.Data { public class Course: Audit, IHasId { public int Id { get; set; } public int SubjectId { get; set; } ...
30.807692
73
0.654182
[ "MIT" ]
hdh-se/classroom-api
ManageCourse.Core/Data/Course.cs
803
C#
//------------------------------------------------------------------------------ // <auto-generated> // Ce code a été généré à partir d'un modèle. // // Des modifications manuelles apportées à ce fichier peuvent conduire à un comportement inattendu de votre application. // Les modifications manuelles apport...
43.333333
128
0.613609
[ "Apache-2.0" ]
Minestro/DUTS4-PT-Camping
UnitTestProject1/Model/Reservation.cs
1,707
C#
// Copyright (c) Microsoft Corporation.// Licensed under the MIT license. namespace Microsoft.SCIM { using System.Collections.Generic; using System.Net.Http; public sealed class QueryRequest : SystemForCrossDomainIdentityManagementRequest<IQueryParameters> { public QueryRequest( ...
28.095238
73
0.671186
[ "MIT" ]
Aplenty/SCIMReferenceCode
Microsoft.SystemForCrossDomainIdentityManagement/Service/QueryRequest.cs
590
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace QuanLyTuyenSinh.ValueObject { class ValueHoSoThiSinh { public string sbd; public string hodem; public string ten; public DateTime ngaysinh; publ...
28.857143
269
0.571782
[ "Apache-2.0" ]
hqhoangvuong/OOSD_FinalProject
QuanLyTuyenSinh/ValueObject/ValueHoSoThiSinh.cs
1,618
C#
using NBitcoin; using Stratis.Bitcoin.Base.Deployments; using Stratis.Bitcoin.Consensus.Rules; namespace Stratis.Bitcoin.Features.Consensus.Rules.CommonRules { /// <summary>A base skeleton class that is implemented by networks to define and verify the version of blocks.</summary> public abstract class HeaderV...
52.382353
124
0.688377
[ "MIT" ]
SatyaKarki/StratisFullNode
src/Stratis.Bitcoin.Features.Consensus/Rules/CommonRules/HeaderVersionRule.cs
1,783
C#
using System; using System.CodeDom.Compiler; using System.ComponentModel; using System.Diagnostics; using System.Runtime.CompilerServices; using System.Xml.Schema; using System.Xml.Serialization; namespace Workday.AbsenceManagement { [GeneratedCode("System.Xml", "4.6.1590.0"), DesignerCategory("code"), DebuggerStepTh...
20.934426
136
0.730619
[ "MIT" ]
matteofabbri/Workday.WebServices
Workday.AbsenceManagement/Event_Attachment_CategoryObjectIDType.cs
1,277
C#
namespace _3_ModernizedTemplates.AspNetMvc.Models; public class ErrorViewModel { public string? RequestId { get; set; } public bool ShowRequestId => !string.IsNullOrEmpty(RequestId); }
21.666667
66
0.764103
[ "Unlicense" ]
Djohnnie/DotNet6-DevDay-2021
3-ModernizedTemplates/3-ModernizedTemplates.AspNetMvc/Models/ErrorViewModel.cs
195
C#
using Microsoft.AspNetCore.Mvc.ViewFeatures; using Newtonsoft.Json; namespace shopapp.webui.Extensions { public static class TempDataExtensions { public static void Put<T>(this ITempDataDictionary tempData, string key, T value) where T:class { tempData[key] = JsonConvert.SerializeOb...
30.5
103
0.647541
[ "MIT" ]
sametkoyuncu/shopapp-udemy
shopapp.webui/Extensions/TempDataExtensions.cs
610
C#
using System.Linq; using System.Threading.Tasks; using NUnit.Framework; namespace ShikimoriSharp.Tests.Information { [TestFixture] public class StatsAndStudiosTest : TestBase { [Test] public async Task GetActiveUsersTest() { Assert.IsNotEmpty(await Client.Stats.GetActiv...
24.583333
67
0.601695
[ "MIT" ]
ColinFL/ShikimoriSharp
ShikimoriSharp.Tests/Information/StatsAndStudiosTest.cs
592
C#
using System; using System.Text; namespace ETHotfix { public static class RandomHelper { public static int GenerateRandomCode(int length) { var result = new StringBuilder(); for (var i = 0; i < length; i++) { var r = new Random(Guid.NewGuid(...
22.344828
65
0.520062
[ "MIT" ]
lantuma/DDZ
Unity/Assets/Hotfix/_GameLobby/Helper/RandomHelper.cs
650
C#
using System; using System.Collections.Generic; using System.Linq; namespace coreJson { public class JsonParser : IDisposable { enum ParseToken { None = -1, // Used to denote no Lookahead available Curly_Open, Curly_Close, Squared_Open,...
29.389381
146
0.448058
[ "MIT" ]
madagaga/WTalk
WTalk/coreJson/JsonParser.cs
9,965
C#
using System; using System.Collections.Generic; using System.Net.WebSockets; using System.Text; using System.Threading; using System.Threading.Tasks; using System.Linq; using Microsoft.Extensions.Logging; using Newtonsoft.Json; using Smallscord.WebSockets.Entities; using Smallscord.Events; namespace Smallscord.WebS...
32.685065
145
0.688189
[ "MIT" ]
FiniteReality/Smallcord
src/WebSockets/WebSocketController.cs
10,067
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; namespace XboxLoginTest { static class Program { /// <summary> /// 해당 애플리케이션의 주 진입점입니다. /// </summary> [STAThread] static void Main() { ...
21.478261
65
0.605263
[ "MIT" ]
NamuTree0345/CmlLib.Core
XboxLoginTest/Program.cs
528
C#
using Dapper.Contrib.Extensions; using System; using System.Collections.Generic; using System.Text; using WL.Core.DBModel; namespace WL.Account.Core.DB { /// <summary> /// 模块 /// </summary> [Table("WL_SYSMODEL")] public class SysModuleDBModel : BaseDBModel { /// <summary> /// 模...
27.473684
67
0.501277
[ "MIT" ]
wlfsky/netcorewebapi
src/Account/WL.Account.Core/DB/SysModuleDBModel.cs
1,666
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.020833
171
0.557395
[ "MIT" ]
GuestKiller/Netch
Netch/Properties/Resources.Designer.cs
5,621
C#