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 Windows.Graphics.Display; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; using Windows.UI.Xaml.Navigation; using OneNoteServiceSamplesWinUniversal.Common; using OneNoteServiceSamplesWinUniversal.Data; using OneNoteServiceSamplesWinUniversal.OneNoteApi; // The Universal Hub Application proj...
36.88961
119
0.740187
[ "Apache-2.0" ]
OneNoteDev/OneNoteAPISampleWinUniversal
OneNoteServiceSamplesWinUniversal.WindowsPhone/HubPage.xaml.cs
5,683
C#
using System; using Xunit; using System.Collections.Generic; namespace Statistics.Test { public class StatsUnitTest { [Fact] public void ReportsAverageMinMax() { var statsComputer = new StatsComputer(); var listValues = new List<double>{ 1.5, 8.9, 3.2, 4...
33.62
81
0.587151
[ "MIT" ]
clean-code-craft-tcq-1/start-stats-csharp-RaghavendraSR06
Statistics.Test/StatsUnitTest.cs
1,681
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Core.Model; using Microsoft.AspNetCore.Mvc; using Dapper; using System.Data.SqlClient; namespace Core31.Web.Controllers { /// <summary> /// Dapper 简易ORM测试 /// </summary> public class DapperTestContro...
30.054545
125
0.46461
[ "MIT" ]
cqkxzyi/ZhangYi.Utilities
doNet/站点/Core3.1-Web/Controllers/DapperTestController.cs
7,032
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using System; using System.Threading.Tasks; using Microsoft.Bot.StreamingExtensions.PayloadTransport; using Microsoft.Bot.StreamingExtensions.UnitTests.Mocks; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace ...
30.170732
89
0.652385
[ "MIT" ]
russellholmes0410/Botframwork
tests/Microsoft.Bot.StreamingExtensions.Test/Payloads/PayloadReceiverTests.cs
1,239
C#
/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect 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 ...
43.042857
285
0.645868
[ "Apache-2.0" ]
3ai-co/Lean
Common/SymbolValueJsonConverter.cs
3,015
C#
// ------------------------------------------------------------------------------ // <auto-generated> // Generated by Xsd2Code. Version 3.4.0.18239 Microsoft Reciprocal License (Ms-RL) // <NameSpace>Dms.Ambulance.V2100</NameSpace><Collection>Array</Collection><codeType>CSharp</codeType><EnableDataBinding>False<...
48.756614
1,368
0.61172
[ "MIT" ]
Kusnaditjung/MimDms
src/Dms.Ambulance.V2100/Generated/COCD_TP145018UK03AssignedCustodianTemplateId.cs
9,215
C#
namespace DashReportViewer.Shared.Models { public enum ServiceType { AzureDevOps = 1 } }
15.571429
41
0.642202
[ "MIT" ]
ZuechB/DashReportViewer
DashReportViewer.Shared/Models/ServiceType.cs
111
C#
//------------------------------------------------------------------------------ // <auto-generated>This code was generated by LLBLGen Pro v5.3.</auto-generated> //------------------------------------------------------------------------------ using System; using System.Collections.Generic; namespace EFCore20.Bencher....
47.843137
177
0.687295
[ "MIT" ]
sanekpr/RawDataAccessBencher
EFCore2.0/Model/EntityClasses/PurchaseOrderDetail.cs
2,442
C#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System; using System.Collections.Generic; using System.Linq; using osu.Framework.Allocation; using osu.Framework.Bindables; using osu.Framework.Graphics; u...
35.601942
128
0.54595
[ "MIT" ]
asd7766zxc/osu
osu.Game.Tests/Visual/Multiplayer/TestCaseLoungeRoomsContainer.cs
3,565
C#
// Copyright (c) 2012-2021 VLINGO LABS. All rights reserved. // // 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 https://mozilla.org/MPL/2.0/. using System; using Vlingo.Xoom.Common; namespa...
34.819444
124
0.578779
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
Luteceo/vlingo-net-actors
src/Vlingo.Xoom.Actors/DirectoryScanner__Proxy.cs
2,509
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...
35.156863
99
0.645008
[ "Apache-2.0" ]
polivbr/pulumi-azure-native
sdk/dotnet/HDInsight/V20150301Preview/Outputs/ApplicationPropertiesResponse.cs
3,586
C#
using HSFrameWork.ConfigTable; using System.Collections.Generic; using System.Xml.Serialization; namespace Jyx2 { [XmlType("trigger")] public class Trigger : BaseBean { public override string PK { get { return Key; } } [XmlAttribute] public string Key; [XmlAttribute] ...
18.851064
57
0.545147
[ "MIT" ]
Leo-YJL/jynew
jyx2/Assets/Scripts/Pojos/Trigger.cs
888
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using System; using GameEvents; namespace GameEventManager { public class GameEventsManager { static private GameEventsManager instance; static public GameEventsManager Instance { ...
24.473684
115
0.479032
[ "Unlicense" ]
chjwilliams/DreamTeam
DreamTeam/Assets/Scripts/Utils/GameEventManager.cs
1,862
C#
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. /* * AnimationController.cs * Copyright (c) 2006 David Astle * * 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 Softwa...
35.444882
100
0.585805
[ "MIT" ]
Yash-Codemaster/KoduGameLab
main/Boku/Anim360/AnimationController.cs
9,003
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; [assembly: AssemblyTitle("UnitTests")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("UnitTests")] [assembly: AssemblyCopyright("C...
29.428571
56
0.752427
[ "MIT" ]
squareJAO/Roleplay-ToolSet
Roleplay-ToolSet/UnitTests/Properties/AssemblyInfo.cs
619
C#
using Neuralm.Services.Common.Domain; using System; namespace Neuralm.Services.TrainingRoomService.Domain { /// <summary> /// Represents the <see cref="User"/> class. /// </summary> public class User : IEntity { /// <summary> /// Gets and sets the id. /// </summary> ...
22.227273
53
0.546012
[ "MIT" ]
neuralm/Neuralm-Server
src/Neuralm.Services/Neuralm.Services.TrainingRoomService/Neuralm.Services.TrainingRoomService.Domain/User.cs
491
C#
//----------------------------------------------------------------------- // <copyright file="UpdateBudgetAllocations.cs" company="Rare Crowds Inc"> // Copyright 2012-2013 Rare Crowds, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with ...
44.134969
157
0.594245
[ "Apache-2.0" ]
chinnurtb/OpenAdStack
ScheduledActivityDispatchers/DynamicAllocationActivityDispatchers/UpdateBudgetAllocations.cs
7,196
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.Threading.Tasks; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.Testing; using Xunit; using VerifyCS = Test.Utilities.CSharpSecurity...
27.250441
161
0.653615
[ "Apache-2.0" ]
AndrewZu1337/roslyn-analyzers
src/NetAnalyzers/UnitTests/Microsoft.NetCore.Analyzers/Security/SslProtocolsAnalyzerTests.cs
15,453
C#
/*-----------------------Copyright 2017 www.wlniao.com--------------------------- 文件名称:Wlniao\Handler\IResponse.cs 适用环境:NETCoreCLR 1.0/2.0 最后修改:2017年12月11日 02:58:50 功能描述:管道处理接口 Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance...
37.222222
83
0.59403
[ "Apache-2.0" ]
wlniao/xcore
Wlniao.XCore/Handler/IResponse.cs
1,077
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> //-----------------------------------------...
24.5
81
0.417234
[ "Apache-2.0" ]
volvin/MercadoPago-CSharp-SDK
CollectionUpdateSample/CollectionUpdateSample/About.aspx.designer.cs
443
C#
// Copyright © 2015 Dmitry Sikorsky. 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.IO; using System.Linq; using System.Threading.Tasks; using ExtCore.Data.Abstractions; u...
33.396226
198
0.714124
[ "Apache-2.0" ]
TarasKovalenko/Platformus
src/Platformus.Barebone.Backend/Areas/Backend/Controllers/ImageUploaderController.cs
3,543
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. namespace Microsoft.AspNetCore.Components.Web.Virtualization { /// <summary> /// Contains context for a placeholder in a virtualized list. /...
36.081081
119
0.606742
[ "Apache-2.0" ]
belav/aspnetcore
src/Components/Web/src/Virtualization/PlaceholderContext.cs
1,335
C#
// Copyright © 2018 Wave Engine S.L. All rights reserved. Use is subject to license terms. #region Using Statements using WaveEngine.Framework.Graphics; using WaveEngine.Framework.Managers; #endregion namespace WaveEngine.Cardboard { /// <summary> /// The cardboard viewer /// </summary> public class...
32.542553
216
0.543969
[ "MIT" ]
WaveEngine/Extensions
WaveEngine.Cardboard/Shared/DeviceInfo/CardboardViewer.cs
3,062
C#
using System.Reflection; using System.Runtime.InteropServices; [assembly: AssemblyTitle("Owin.Security.Providers.Wargaming")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("Owin.Security.Providers.Wargaming")] [assembly: AssemblyCo...
36.5625
64
0.765812
[ "MIT" ]
AliEbadi/OwinOAuthProviders
src/Owin.Security.Providers.Wargaming/Properties/AssemblyInfo.cs
588
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // // Generated with Bot Builder V4 SDK Template for Visual Studio EchoBot v$templateversion$ using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Mvc; using Microsoft.Bot.Buil...
31.728814
106
0.657051
[ "MIT" ]
AlaMohamed/Samples
generators/vsix-vs-win/BotBuilderVSIX-V4/UncompressedProjectTemplates/EchoBot/Startup.cs
1,874
C#
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="INuGetBasedModuleCatalogExtensions.cs" company="Catel development team"> // Copyright (c) 2008 - 2015 Catel development team. All rights reserved. // </copyright> // -----------...
41
156
0.565523
[ "MIT" ]
uQr/Catel
src/Catel.Extensions.Prism/Catel.Extensions.Prism.Shared/Modules/Extensions/INuGetBasedModuleCatalogExtensions.cs
2,421
C#
using System.Collections.Generic; using System.Linq; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; using NBitcoin; using WalletWasabi.Blockchain.TransactionBuilding; using WalletWasabi.Blockchain.TransactionBuilding.BnB; using WalletWasabi.Blockchain.TransactionOutputs; us...
30.195122
99
0.780291
[ "MIT" ]
Trxlz/WalletWasabi
WalletWasabi.Fluent/ViewModels/Wallets/Send/ChangeAvoidanceSuggestionViewModel.cs
2,476
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Collections.Generic; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Primitives; namespace Microsoft.AspNetCore.Localization { internal...
48.190476
169
0.786561
[ "MIT" ]
48355746/AspNetCore
src/Middleware/Localization/src/RequestCultureProviderLoggerExtensions.cs
1,012
C#
// <copyright file="Group.cs" company="Fubar Development Junker"> // Copyright (c) 2016 Fubar Development Junker. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // </copyright> using System; using System.Collections.Generic; using System.Linq;...
38.378976
139
0.525371
[ "MIT" ]
FubarDevelopment/beanio-net
src/FubarDev.BeanIO/Internal/Parser/Group.cs
27,748
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using System; using System.ComponentModel; using Azure.Core; namespace Azure.Messaging.EventHubs.Consumer { /// <summary> /// The position of events in an Event Hub partition, typically used in the creation of ...
44.075949
175
0.58185
[ "MIT" ]
Ianmatthews9934/azure-sdk-for-net
sdk/eventhub/Azure.Messaging.EventHubs/src/Consumer/EventPosition.cs
10,448
C#
using System; using UnityEngine; namespace UnityMVVM.Binding.Converters { public class TextTransformationConverter : ValueConverterBase { [SerializeField] Transformation _transformation; public override object Convert(object value, Type targetType, object parameter) { ...
25.857143
91
0.555801
[ "MIT" ]
aliagamon/Unity-MVVM
Assets/Unity-MVVM/Converters/TextTransformationConverter.cs
907
C#
using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SteamBotExample.SteamApi.IEconService.GetTradeOffers { public class TradeSendFromIEconService_Response { [JsonProperty("trade_offers_sent")] public TradeOfferFromI...
22.888889
67
0.793689
[ "MIT" ]
BattleRush/SteamTradeExample-Console
SteamBotExample/SteamApi/IEconService/GetTradeOffers/TradeSendFromIEconService_Response.cs
414
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace NumberComparer { class Program { static void Main() { Console.Write("a = "); double a = double.Parse(Console.ReadLine()); Console.Wr...
23.611111
56
0.442353
[ "MIT" ]
Maxtorque/Console-Input-Output
NumberComparer/Program.cs
852
C#
namespace Piglet.Parser.Configuration { internal class Symbol<T> : ISymbol<T> { public string DebugName { get; set; } public int TokenNumber { get; set; } } }
20.888889
45
0.611702
[ "Apache-2.0" ]
schifflee/AutoIt-Interpreter
PigletParser/Parser/Configuration/Symbol.cs
190
C#
//--------------------------------------------------------------------- // <copyright file="EntityDataSourceViewSchema.cs" company="Microsoft"> // Copyright (c) Microsoft Corporation. All rights reserved. // </copyright> // // @owner [....] // @backupOwner [....] //-----------------------------------------...
36.147541
132
0.545276
[ "Apache-2.0" ]
295007712/295007712.github.io
sourceCode/dotNet4.6/ndp/fx/src/DataWebControls/System/Data/WebControls/EntityDataSourceViewSchema.cs
6,617
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://w...
35.038462
87
0.595499
[ "MIT" ]
Andrean/azure-powershell
src/ServiceManagement/Services/Commands.Utilities/Websites/Services/GeoEntities/GeoRegion.cs
1,773
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class CameraController : MonoBehaviour { public GameObject player; private Vector3 offset; // Start is called before the first frame update private void Start() { offset = transform.position - player.tra...
22.363636
64
0.695122
[ "MIT" ]
christopherromero/Roll-A-Ball
Assets/Scripts/CameraController.cs
494
C#
using System; using SOA.Base; namespace SOA.Common.Primitives { [Serializable] public class ULongGameEventListener : GameEventListener<ULongGameEvent, ULongUnityEvent, ulong> { } }
19.7
99
0.746193
[ "MIT" ]
Luxulicious/SOA
Package/Core/Runtime/Game Events/Primitives/ULongGameEventListener.cs
197
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data.Entity; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BLFacturacionSB { public class CategoriaBL { Contexto _contexto; public BindingList<Categoria> Lis...
22.692308
74
0.6
[ "MIT" ]
StevenPerdomo/Facturacion-SB
FacturacionSB/BLSeguridad/CategoriaBL.cs
887
C#
namespace CFGToolkit.Lexer.Rules { public enum LexerRuleConsumeDecision { Consume = 0, Next = 1, } }
14.444444
40
0.584615
[ "MIT" ]
CFGToolkit/CFGToolkit.Lexer
CFGToolkit.Lexer/Rules/LexerRuleConsumeDecision.cs
132
C#
using Newtonsoft.Json; namespace Finnhub.ClientCore.Model { public class StockExchange { [JsonProperty("code")] public string Code { get; set; } [JsonProperty("name")] public string Name { get; set; } } }
19.307692
40
0.59761
[ "Apache-2.0" ]
dashwort/MarketWatch
Finnhub_client_core/Model/StockExchange.cs
253
C#
// Unity C# reference source // Copyright (c) Unity Technologies. For terms of use, see // https://unity3d.com/legal/licenses/Unity_Reference_Only_License using UnityEngine; using UnityEngine.Bindings; namespace UnityEditor { public enum FontTextureCase { Dynamic = -2, Unicode = -1, [I...
35.940299
132
0.671512
[ "Unlicense" ]
HelloWindows/AccountBook
client/framework/UnityCsReference-master/Modules/TextRenderingEditor/TrueTypeFontImporter.bindings.cs
2,408
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class PlayerRUN : PlayerFSMState { public Transform marker; public float movespeed = 3.0f; void Start () { marker = GameObject.FindGameObjectWithTag("Marker").transform; } // Update is c...
25.096774
73
0.602828
[ "MIT" ]
YooMinJUn/JJUNIV-Unity
Assets/Script/Player/PlayerRUN.cs
794
C#
#region Header /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * Copyright (c) 2007-2008 James Nies and NArrange contributors. * All rights reserved. * * This program and the accompanying materials are made available under * the terms of the Common Public License v1.0 which accom...
30.674699
78
0.568342
[ "Apache-2.0" ]
adgistics/Adgistics.Build
NArrange/src/Backup/NArrange.Core/Configuration/BinaryOperatorExpression.cs
5,092
C#
namespace BrightChain.Engine.Enumerations { public enum BrightTagType { Filename, UserAssigned, SystemAssigned, } }
15.3
42
0.620915
[ "Apache-2.0" ]
BrightChain/BrightChain
src/BrightChain.Engine/Enumerations/BrightTagType.cs
155
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Detour : LevelManager { public enum LevelType { eShortWall1, eShortWall2, eSemiT_Wall1, eSemiT_Wall2, e2SemiT_Wall1, eDeadZone1, e2DeadZone1, END, } ...
40.354478
131
0.6319
[ "MIT" ]
linliu0624/AnimalAI_HPPO
Unity/Task/Detour.cs
10,935
C#
// Copyright (c) Six Labors. // Licensed under the Apache License, Version 2.0. using System; using System.Buffers; using System.Buffers.Binary; using System.Collections.Generic; using System.IO; using System.IO.Compression; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Text...
40.350789
190
0.512806
[ "Apache-2.0" ]
BananchickPasha/ImageSharp
src/ImageSharp/Formats/Png/PngDecoderCore.cs
63,956
C#
using Xunit; namespace Jint.Tests.Ecma { public class Test_12_10_1 : EcmaTest { [Fact] [Trait("Category", "12.10.1")] public void WithStatementInStrictModeThrowsSyntaxerrorStrictFunction() { RunTest(@"TestCases/ch12/12.10/12.10.1/12.10.1-1-s.js", false); } [F...
32.057377
137
0.623114
[ "BSD-2-Clause" ]
B-Esmaili/jint
Jint.Tests.Ecma/Ecma/12.10.1.cs
3,911
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; [ExecuteInEditMode] public class CharacterMicrogamePool : MonoBehaviour { public bool shuffleMicrogames = true; public MicrogameBatch[] microgameBatches; public int[] speedUpTimes; public Stage.Microgame bossMicrogame; public bo...
22.151515
108
0.692202
[ "MIT" ]
Anxeal/NitoriWare
Assets/Scripts/Stage/CharacterMicrogamePool.cs
733
C#
using System; using XSocketsClient.Common.Event.Arguments; using XSocketsClient.Common.Event.Interface; using XSocketsClient.Common.Interfaces; namespace XSocketsClient.Helpers { public static partial class XSocketHelper { /// <summary> /// If possible use the extension-method ToTextArgs f...
36.448718
114
0.5758
[ "MIT" ]
clairernovotny/XSocketsClient
src/XSocketsClient/XSocketsClient/Helpers/Transformation.cs
2,845
C#
using System; using System.Collections.Generic; using System.Text; using FlubuCore.Context; using FlubuCore.Tasks.Attributes; using FlubuCore.Tasks.FileSystem; using FlubuCore.Tasks.Process; namespace FlubuCore.Tasks.NetCore { public class DotnetCleanTask : ExecuteDotnetTaskBase<DotnetCleanTask> { pri...
33.179612
208
0.546452
[ "MIT" ]
Rwing/FlubuCore
src/FlubuCore/Tasks/NetCore/DotnetCleanTask.cs
6,837
C#
using Amazon.Runtime.Internal.Util; using Microsoft.Extensions.Configuration; using Newtonsoft.Json; using Serilog; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace GeolettApi.Web.Configuration { public static class SerilogConfiguration { publi...
27.869565
88
0.709828
[ "MIT" ]
kartverket/GeolettAp
src/GeolettApi.Web/Configuration/SerilogConfiguration.cs
643
C#
namespace AgileObjects.AgileMapper.UnitTests.Orms.Configuration { using System.Threading.Tasks; using Common; using Infrastructure; using TestClasses; public abstract class WhenConfiguringConstructorDataSources<TOrmContext> : OrmTestClassBase<TOrmContext> where TOrmContext : ITestDbContext...
34.7
120
0.631484
[ "MIT" ]
WeiiWang/AgileMapper
AgileMapper.UnitTests.Orms/Configuration/WhenConfiguringConstructorDataSources.cs
2,778
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 // // Unle...
44.532468
163
0.666083
[ "MIT" ]
LaudateCorpus1/azure-powershell
src/ResourceManager/Common/Commands.ResourceManager.Common/Generated/ResourceManagementClientExtensions.cs
3,353
C#
//! \file ImageEDT.cs //! \date Sun Feb 15 10:13:07 2015 //! \brief Active Soft image format implementation. // // 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 /...
35.95122
111
0.443691
[ "MIT" ]
coregameHD/GARbro
ArcFormats/ActiveSoft/ImageEDT.cs
13,266
C#
using System.Collections.Generic; using System.Globalization; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Localization; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; namespace SimpleAPI { public class Startup { ...
29.174603
115
0.695321
[ "MIT" ]
atkins126/I18N
Samples/ASP.NET/Core/WebAPI/SimpleAPI/Startup.cs
1,840
C#
using System; using AutoMapper; using RuneForge.Data.Orders; using RuneForge.Game.Buildings; using RuneForge.Game.Orders.Implementations; using RuneForge.Game.Units; namespace RuneForge.Game.AutoMapper.Resolvers { public class AttackOrderTargetEntityIdValueResolver : IValueResolver<AttackOrder, AttackOrderDto, ...
32.25
128
0.604651
[ "MIT" ]
RuneForge/RuneForge
Source/RuneForge.Game/AutoMapper/Resolvers/AttackOrderTargetEntityIdValueResolver.cs
1,034
C#
// Copyright (c) 2008-2018, Hazelcast, Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required ...
39.33945
133
0.617771
[ "Apache-2.0" ]
asimarslan/hazelcast-csharp-client
Hazelcast.Net/Hazelcast.Client.Protocol.Util/BufferBuilder.cs
4,288
C#
using System; using System.Reflection; using System.Runtime.InteropServices; using System.Runtime.CompilerServices; // 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: Asse...
56.932203
282
0.790712
[ "Apache-2.0" ]
playstudios/aws-sdk-net
sdk/src/Services/PersonalizeRuntime/Properties/AssemblyInfo.cs
3,359
C#
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. namespace System.Data.Entity.TestModels.ArubaModel { using System.ComponentModel.DataAnnotations.Schema; using System.Data.Entity.Infrastructure; public class ArubaContext ...
61.414894
137
0.661181
[ "Apache-2.0" ]
DenisBalan/ef6
test/FunctionalTests/TestModels/ArubaModel/ArubaContext.cs
5,775
C#
using System; using Microsoft.EntityFrameworkCore.Migrations; namespace Rideshare.Data.Migrations { public partial class CarPhotoColumn : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn<byte[]>( name: "Photo", ...
24.916667
71
0.571906
[ "MIT" ]
ivanrk/Rideshare
Rideshare.Data/Migrations/20190716151430_CarPhotoColumn.cs
600
C#
// // Copyright (c) 2015 Xamarin Inc. (http://www.xamarin.com) // // 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, ...
45.285714
90
0.760778
[ "Apache-2.0" ]
AvolitesMarkDaniel/mono
mcs/class/Facades/System.Net.AuthenticationManager/AssemblyInfo.cs
1,902
C#
using System; using pdxpartyparrot.Core.Effects; using pdxpartyparrot.Core.World; using pdxpartyparrot.Game.State; using UnityEngine; using UnityEngine.AI; namespace pdxpartyparrot.Game.Level { [RequireComponent(typeof(NavMeshSurface))] public abstract class LevelHelper : MonoBehaviour { [Serial...
34.576923
106
0.656007
[ "Apache-2.0" ]
pdxparrot/ssj2019
Assets/Scripts/Game/Level/LevelHelper.cs
3,598
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Optimization; namespace Cheer.App_Start { public class BundleConfig { public static void RegisterBundles(BundleCollection bundles) { bundles.IgnoreList.Clear(); ...
36.711538
112
0.580409
[ "MIT" ]
chrisjsherm/OrganizationCMS
Cheer/App_Start/BundleConfig.cs
1,911
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://w...
42.012195
257
0.582583
[ "MIT" ]
3quanfeng/azure-powershell
src/DataFactory/DataFactoryV2/IntegrationRuntimes/NewAzureDataFactoryIntegrationRuntimeKeyCommand.cs
3,366
C#
using System; namespace Profiles.ORCID.Utilities.ProfilesRNSDLL.BLL.ORCID { public partial class PersonOthername : ProfilesRNSDLL.DAL.ORCID.PersonOthername { # region Constructors public PersonOthername() : base() { } # endregion // Constructors ...
27.609756
158
0.518551
[ "BSD-3-Clause" ]
CTSIatUCSF/ProfilesRNS
Website/SourceCode/Profiles/Profiles/ORCID/Utilities/ProfilesRNSDLL/_CG/BLL/ORCID/PersonOthername.cs
1,132
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/d3d11.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. namespace TerraFX.Interop.DirectX; ...
43.235294
145
0.744218
[ "MIT" ]
IngmarBitter/terrafx.interop.windows
sources/Interop/Windows/DirectX/um/d3d11/D3D11_COUNTER_DESC.cs
737
C#
using MediatR; using Microsoft.EntityFrameworkCore; using OSS.App.Data; using OSS.Domain.Entities; using System.Threading; using System.Threading.Tasks; namespace OSS.App.LeaveRequests.Commands.ToggleLeaveRequestApproval { public class ToggleLeaveRequestApprovalCommandHandler : IRequestHandler<ToggleLeaveRequestA...
31.193548
126
0.720786
[ "MIT" ]
nagasudhirpulla/open_shift_scheduler
src/OSS.App/LeaveRequests/Commands/ToggleLeaveRequestApproval/ToggleLeaveRequestApprovalCommandHandler.cs
969
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.ComponentModel.Design; using System.Collections; using System.Reflection; using System.Runtime.InteropS...
34.309524
112
0.560028
[ "MIT" ]
ARhj/corefx
src/System.ComponentModel.TypeConverter/src/System/ComponentModel/LicenseManager.LicenseInteropHelper.cs
4,323
C#
/* * * (c) Copyright Ascensio System Limited 2010-2020 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable la...
37.08
151
0.605178
[ "Apache-2.0" ]
Ektai-Solution-Pty-Ltd/CommunityServer
web/studio/ASC.Web.Studio/Products/Files/Utils/FileUploader.cs
10,197
C#
using System; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; namespace Geek.Server { //摘自微软官网 // Provides a task scheduler that ensures a maximum concurrency level while // running on top of the thread pool. public class LimitedConcurrencyLevelTaskScheduler : T...
38.875969
108
0.561515
[ "MIT" ]
johnson2heng/GeekServer
GeekServer.Core/Actor/LimitedConcurrencyLevelTaskScheduler.cs
5,029
C#
using ControllerApp.ControllerCore; using ControllerApp.Helpers; using Xunit; namespace ControllerApp.Tests { public class HelperTests { [Fact] public void TryGetCoordinates_X_Valid() { // ok coordinates string[] parts = new string[] { "G1", "X22.3", "Y65.3" }; ...
29.88
87
0.566265
[ "MIT" ]
RafaelEstevamReis/lzak
LZakSuite/ControllerApp.Tests/HelperTests.cs
2,990
C#
using System.Web.Http; using System.Web.Mvc; namespace BiometricAPI.Areas.HelpPage { public class HelpPageAreaRegistration : AreaRegistration { public override string AreaName { get { return "HelpPage"; } } public override voi...
25.769231
94
0.564179
[ "MIT" ]
iAvinashVarma/BiometricAPI
BiometricAPI/Areas/HelpPage/HelpPageAreaRegistration.cs
670
C#
using Jeeves.Docs.Models; using Microsoft.AspNetCore.Components; using System.Threading.Tasks; namespace Jeeves.Docs.Pages { /// <summary> /// Program component. /// </summary> /// <seealso cref="Microsoft.AspNetCore.Components.ComponentBase" /> public partial class Program { /// <summary> /// Gets or sets ...
25.489362
82
0.686978
[ "MIT" ]
rajeshaz09/BlazorAOTDemo
src/Jeeves.Docs/Jeeves.Docs/Pages/Program.razor.cs
1,200
C#
namespace LINGYUN.Abp.WeChat.Features { public static class WeChatFeatures { public const string GroupName = "Abp.WeChat"; } }
18.5
53
0.668919
[ "MIT" ]
FanShiYou/abp-vue-admin-element-typescript
aspnet-core/modules/wechat/LINGYUN.Abp.WeChat/LINGYUN/Abp/WeChat/Features/WeChatFeatures.cs
150
C#
// // Copyright (C) Microsoft. All rights reserved. // using Microsoft.PowerShell.Activities; using System.Management.Automation; using System.Activities; using System.Collections.Generic; using System.ComponentModel; namespace Microsoft.PowerShell.Core.Activities { /// <summary> /// Activity to invoke th...
33.864516
130
0.594589
[ "Apache-2.0", "MIT" ]
adbertram/PowerShell
src/Microsoft.PowerShell.Core.Activities/Generated/SuspendJobActivity.cs
5,249
C#
using UnityEngine; using UnityEngine.Events; using UnityEngine.EventSystems; using UnityEngine.UI; public class LongClickEvent : MonoBehaviour, IPointerDownHandler, IPointerUpHandler { private bool pointerDown; public UnityEvent onLongClick; [SerializeField] private Image fillImage; public...
23.421053
84
0.620225
[ "CC0-1.0" ]
JunHong-1998/Unity-MathAdventure-RPG-Game
Scripts/LongClickEvent.cs
892
C#
using Azure.Cosmos; using Foo.Domain.Entities.Repositories; using Microsoft.AspNetCore.Mvc; using System.Collections.Generic; using System.Threading.Tasks; namespace Foo.Ui.Api.Controllers { [Route("[controller]")] [ApiController] public class FooController : ControllerBase { private readonly ...
29.102941
92
0.607377
[ "MIT" ]
brunobrandes/cosmos-db-sql-api-repository
example/Ui/Foo.Ui.Api/Controllers/FooController.cs
1,981
C#
/* * Copyright 2019 GridGain Systems, Inc. and Contributors. * * Licensed under the GridGain Community Edition License (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.gridgain.com/products/software/community-editio...
34.308571
118
0.578947
[ "CC0-1.0" ]
Diffblue-benchmarks/Gridgain-gridgain
modules/platforms/dotnet/Apache.Ignite.Core/Impl/Binary/BinaryReaderExtensions.cs
6,006
C#
 using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace DemoZPDK_Xamarin.Helper { public class Util { public static long GetTimeStamp(DateTime date) { return (long)(date.ToUniversalTime() - new DateTime(1970, 1, 1, 0, 0, 0)).TotalMilliseconds;...
22.4
104
0.620536
[ "Apache-2.0" ]
zpmep/DemoZPDK_Xamarin
DemoZPDK_Xamarin/Helper/Util.cs
450
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace UserControls { public partial class PocetniIzbornik : Form { public PocetniIzbornik() { ...
28.204301
94
0.61952
[ "MIT" ]
NovakVed/cs-learning
CSeLearning/PocetniIzbornik.cs
2,625
C#
namespace ClassLib057 { public class Class044 { public static string Property => "ClassLib057"; } }
15
55
0.633333
[ "MIT" ]
333fred/performance
src/scenarios/weblarge2.0/src/ClassLib057/Class044.cs
120
C#
using Microsoft.Extensions.Logging; using Servicebus.JobScheduler.Core.Contracts; using Servicebus.JobScheduler.ExampleApp.Common; using Servicebus.JobScheduler.ExampleApp.Messages; using System; using System.Threading; using System.Threading.Tasks; namespace Servicebus.JobScheduler.ExampleApp.Emulators { public c...
49.54717
280
0.589109
[ "MIT" ]
lilyanc02/Servicebus-JobScheduler
src/Servicebus.JobScheduler.ExampleApp/UpsertsClientSimulator.cs
2,626
C#
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using Sixeyed.Caching.Extensions; namespace Sixeyed.Caching.Tests.Extensions { [TestClass] public class StringExtensionsTests { [TestMethod] public void FormatWith() { var format = "{0}_{1}"; ...
33.294118
75
0.545347
[ "MIT" ]
YinfengWang/caching
Sixeyed.Caching.Tests/Extensions/StringExtensionsTests.cs
1,700
C#
using System; using System.Collections.Generic; using System.Text; using System.Xml; using System.Xml.Schema; using System.Xml.Serialization; using System.Globalization; using System.ComponentModel; using System.Net; namespace TAlex.Testcheck.Core.Questions { /// <summary> /// Provides a base c...
25.238095
123
0.517358
[ "MIT" ]
T-Alex/Testcheck
Testcheck.Core/Questions/Question.cs
5,302
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Vector_; namespace Vectors_CAH { class Program { static void Main(string[] args) { Vector u = new Vector(new List<double> { 1, 5, 3 }); Vector v = ne...
30.71875
87
0.560529
[ "MIT" ]
sps-lco-2020-21/vector-introductions-LimESPS
Vectors_CAH/Vectors_CAH/Program.cs
985
C#
// Copyright (c) .NET Foundation and Contributors (https://dotnetfoundation.org/ & 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. #pragma warning disable SA1402 // File may only cont...
30.2
163
0.613486
[ "MIT" ]
Alan-love/xenko
sources/engine/Stride.Engine/Engine/Events/EventKey.cs
1,661
C#
using System.Threading.Tasks; namespace my_robot_zone_robot_server.MessageHandlers { public class DefaultMessageHandler : IMessageHandler { private readonly ILogger _logger; public DefaultMessageHandler(ILogger logger) { _logger = logger; } public Task<boo...
26.40625
102
0.59645
[ "MIT" ]
myrobotzone/my-robot-zone-owi-arm
my-robot-zone-owi-arm/my-robot-zone-robot-server/MessageHandlers/DefaultMessageHandler.cs
847
C#
using System; using Magellan.Routing; namespace Magellan { /// <summary> /// Represents a route request, which is given to an <see cref="INavigator"/> to execute. /// </summary> public class NavigationRequest { private readonly Uri uri; private readonly RouteValueDictionary routeDa...
32.135593
112
0.565401
[ "MIT" ]
rog1039/magellan-framework
src/Magellan/NavigationRequest.cs
1,898
C#
using FluentAssertions; using Payments.Application.Payments.Commands.UpdatePayment; using System; using System.Net; using System.Threading.Tasks; using Xunit; namespace Payments.API.IntegrationTests.Controllers.Payments { public class Update : IClassFixture<CustomWebApplicationFactory<Startup>> { priv...
35.305085
105
0.641383
[ "MIT" ]
vinaykarora/payment-processor
tests/WebUI.IntegrationTests/Payments.API.IntegrationTests/Controllers/Payments/Update.cs
2,085
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; using System.Runtime.CompilerServices; using System.Windows; using System.Windows.Data; using System.Windows.Media; using System.Windows.Threading; using WeUiSharp.DesignTime; namespace WeUiSharp { public class ...
33.211034
144
0.576751
[ "MIT" ]
IUpdatable/WeUiSharp
Src/WeUiSharp/ThemeManager.cs
24,080
C#
using System; using System.Collections.Generic; using System.Threading.Tasks; using EOS.Client.Models; using EOS.Client.Utils; using Action = EOS.Client.Models.Action; using Hex = EOS.Client.Cryptography.Hex; namespace EOS.Client { public class EosClient { public EosClient(ISignatureProvider signature...
34.116883
109
0.620099
[ "MIT" ]
SNIKO/eosnet
src/EOS.Client/EosClient.cs
2,629
C#
using System; using System.IO; using System.Net; using System.Threading.Tasks; using Kudu.Contracts.SiteExtensions; using Kudu.Contracts.Tracing; using Kudu.Core.Infrastructure; using Kudu.Core.Settings; using Kudu.Core.Tracing; using Newtonsoft.Json.Linq; namespace Kudu.Core.SiteExtensions { public class SiteExt...
41.364017
154
0.578596
[ "Apache-2.0" ]
RajkumarTCS/kudu
Kudu.Core/SiteExtensions/SiteExtensionStatus.cs
9,888
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Digits { class Digits { static void Main(string[] args) { var num = int.Parse(Console.ReadLine()); var thirdDigit = num % 10; var se...
26.977778
52
0.360791
[ "MIT" ]
AlexanderPetrovv/Programming-Basics-December-2016
ProgrammingBasicsExam28Aug2016/Digits/Digits.cs
1,216
C#
// Copyright (c) Josef Pihrt. 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.Text; using Microsoft.CodeAnalysis.Text; using Roslynator.Tex...
37.004525
160
0.380655
[ "Apache-2.0" ]
RickeyEstes/Roslynator
src/Tests/Testing.Common/Testing/Text/TextParser.cs
8,180
C#
// <auto-generated> // 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-...
39.598802
124
0.680327
[ "MIT" ]
DexterPOSH/azure-powershell
src/ResourceManager/Network/Commands.Network.Test/ScenarioTests/Generated/LoadBalancerTestsGenerated.cs
6,449
C#
// ---------------------------------------------------------------------------------------------------------- // Copyright 2018 - RoboDK Inc. - https://robodk.com/ // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a ...
31.43287
126
0.517693
[ "MIT" ]
kellyprankin/RoboDK-API
C#/API/Item.cs
54,318
C#
using UnityEngine; using qASIC; using qASIC.InputManagement; namespace Player { public class PlayerMovementController : MonoBehaviour { CharacterController controller; [SerializeField] float speed; [SerializeField] float runSpeed; [SerializeField] float gravity; [Serial...
32.954023
125
0.568887
[ "MIT" ]
Outgrass-Studios/LudumDare49
Assets/Scripts/Player/PlayerMovementController.cs
2,867
C#
using System.Reflection; using System.Runtime.InteropServices; // 有关程序集的常规信息通过以下 特性集控制。更改这些特性值可修改 与程序集关联的信息。 [assembly: AssemblyTitle("Lenic.Framework.Common")] [assembly: AssemblyDescription("基础程序集。")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("Lenic.Fra...
34.074074
101
0.729348
[ "MIT" ]
Lenic/Lenic.Web
WebApi/Lenic.Framework.Common/Properties/AssemblyInfo.cs
1,291
C#
namespace MilanWebStore.Services.Messaging { using System.Collections.Generic; using System.Threading.Tasks; public class NullMessageSender : IEmailSender { public Task SendEmailAsync( string from, string fromName, string to, string subject, ...
23.8
60
0.594538
[ "MIT" ]
MihailKarabashev/MilanWebStore
Services/MilanWebStore.Services.Messaging/NullMessageSender.cs
478
C#