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.Collections.Generic; using System.Diagnostics; using System.Drawing; using System.IO; using System.Windows.Input; using Screna; namespace Captura.Models { public class FileRecentItem : NotifyPropertyChanged, IRecentItem { public string FileName { get; } public Recent...
28.240223
128
0.525816
[ "MIT" ]
ClsTe/CapturaKorean
src/Captura.Core/Models/Recents/FileRecentItem.cs
5,057
C#
using System; public class StartUp { static void Main() { var carInfo = Console.ReadLine().Split(); Vehicle car = new Car(double.Parse(carInfo[1]), double.Parse(carInfo[2]), double.Parse(carInfo[3])); var truckInfo = Console.ReadLine().Split(); Vehicle truck = new Truck(double...
33.903226
118
0.50999
[ "MIT" ]
spiderbait90/Step-By-Step-In-C-Sharp
C# Fundamentals/OOP Basic/Polymorphism/Vehicles/StartUp.cs
2,104
C#
namespace WmcSoft.Configuration { public class CheckpointA : CheckpointBase { public CheckpointA(string name) : base(name) { } protected override bool DoVerify(int level) { return true; } } }
17.733333
52
0.552632
[ "MIT" ]
vjacquet/WmcSoft
WmcSoft.Configuration.Tests/Configuration/CheckpointA.cs
268
C#
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Reflection; using BDTest.Attributes; using Humanizer; using Newtonsoft.Json; namespace BDTest.Test { public class TestDetails : BuildableTest { private readonly string _callerMember; publi...
31.225225
122
0.568956
[ "Apache-2.0" ]
afscrome/BDTest
BDTest/Test/TestDetails.cs
3,468
C#
using Xunit; using Zpp.DbCache; namespace Master40.XUnitTest.Zpp.Unit_Tests.Provider { public class TestProductionOrder : AbstractTest { public TestProductionOrder() { } /** * Verifies, that * - */ [Fact(Skip = "Not im...
26.733333
98
0.557772
[ "Apache-2.0" ]
LennertBerkhan/ng-erp-4.0
Master40.XUnitTest/Zpp/Unit_Tests/Provider/TestProductionOrder.cs
1,203
C#
using System; using System.Collections; using System.Collections.Generic; using System.Linq.Expressions; using System.Text; using Remotion.Linq.Parsing.ExpressionTreeVisitors; using Restful.Linq; using Restful.Data.MySql.CommandBuilders; using Restful.Data.MySql.Common; using Restful.Data.MySql.Visitors; namespace Re...
30.759259
155
0.669476
[ "Apache-2.0" ]
linli8/Restful
src/Restful/Restful.Data.MySql/Linq/MySqlInsertProvider.cs
1,663
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....
37.837838
84
0.745
[ "Apache-2.0" ]
Warglaive/DictionariesMoreTraining
Dicts/03. Mixed Phones/Properties/AssemblyInfo.cs
1,403
C#
using Adyen.Model.AdditionalData; using System; using System.Collections.Generic; using System.Runtime.Serialization; using System.Text; using Adyen.Model.ApplicationInformation; using Adyen.Util; namespace Adyen.Model.Binlookup { [DataContract] public partial class DSPublicKeyDetail { ...
18.222222
43
0.734756
[ "MIT" ]
Ganesh-Chavan/adyen-dotnet-api-library
Adyen/Model/Binlookup/DSPublicKeyDetail.cs
330
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.Reflection; using System.Reflection.Emit; using System.Threading; using System.Runtime.C...
40.36887
141
0.617599
[ "MIT" ]
Priya91/corefx-1
src/System.Reflection.Emit/tests/MethodBuilder/MethodBuilderSetSignature.cs
18,933
C#
using System; using System.Collections.Generic; using System.Linq; using Autodesk.Revit.DB; namespace RhinoInside.Revit.External.DB.Extensions { public static class BuiltInParameterExtension { private static readonly SortedSet<BuiltInParameter> builtInParameters = new SortedSet<BuiltInParameter> ( ...
36.856061
142
0.650565
[ "MIT" ]
Super-create/rhino.inside-rev
src/RhinoInside.Revit/External/DB/Extensions/Parameter.cs
4,865
C#
using UnityEngine; using System.Collections; public class RepeatTexture : MonoBehaviour { void Start () { GetComponent<Renderer>().material.mainTextureScale = new Vector2(100, 100); } }
20.6
83
0.699029
[ "MIT" ]
Tagglink/Target
Assets/Scripts/RepeatTexture.cs
208
C#
using System; using System.Collections.Generic; using LibCommon; using LibCommon.Structs.WebRequest.AKStreamKeeper; using LibCommon.Structs.WebResponse.AKStreamKeeper; namespace LibZLMediaKitMediaServer { public class KeeperWebApi { private string _accessKey; private string _baseUrl; pr...
37.501764
118
0.447551
[ "MIT" ]
soon14/AKStream
LibZLMediaKitMediaServer/KeeperWebApi.cs
42,837
C#
using System; using RabbitMQ.Client; namespace MyLab.RabbitClient.Connection { class BackgroundRabbitConnectionProvider : IRabbitConnectionProvider { private readonly IBackgroundRabbitConnectionManager _connectionManager; public BackgroundRabbitConnectionProvider(IBackgroundRabbitConnectionMa...
28.709677
103
0.685393
[ "MIT" ]
mylab-tools/rabbit-client
src/MyLab.RabbitClient/Connection/BackgroundRabbitConnectionProvider.cs
892
C#
namespace BlepClick.Events { public enum AciEventType : byte { DeviceStarted = 0x81, Echo = 0x82, CommandResponse = 0x84, Connected = 0x85, Disconnected = 0x86, BondStatus = 0x87, PipeStatus = 0x88, TimingEvent = 0x89, DataCredit = 0x8A, ...
25.630769
65
0.497599
[ "Apache-2.0", "MIT" ]
bauland/TinyClrLib
Modules/Mikro Click/Bluetooth LE Module/Events/AciEventType.cs
1,668
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class ServerSessionService { private NetServer netServer; public ServerSessionService() { // Server Start netServer = new NetServer(); netServer.Start(7777, 0); } public NetServer GetNet...
27.444444
124
0.667438
[ "MIT" ]
jinspark-lab/MultiplayChasingGame
Assets/Scripts/GameServer/GameLogic/ServerSessionService.cs
1,729
C#
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ /...
51.444444
358
0.652268
[ "MIT" ]
gurry/msgraph-beta-sdk-dotnet
src/Microsoft.Graph/Models/Generated/SchemaExtension.cs
3,241
C#
// Copyright (c) Cragon. All rights reserved. namespace GameCloud.Unity.Common { using System; using System.Collections.Generic; using System.Text; public class Action1 : BehaviorComponent { //--------------------------------------------------------------------- private Func<Behav...
34.792453
124
0.449566
[ "MIT" ]
BOBO41/CasinosClient
_Backup/BehaviorTree/Actions/Action1.cs
1,846
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 // re...
43.37355
285
0.558094
[ "MIT" ]
alexeldeib/azure-sdk-for-net
src/SDKs/ManagementGroups/Management.ManagementGroups/Generated/EntitiesOperations.cs
18,694
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> //---...
40.708333
80
0.645855
[ "MIT" ]
aawadall/Game-Off-2018
code/Creatures/obj/Debug/netstandard2.0/Creatures.AssemblyInfo.cs
977
C#
using System; using System.Collections.Generic; namespace BikeStore.Models { public partial class Categories { public Categories() { Products = new HashSet<Products>(); } public int CategoryId { get; set; } public string CategoryName { get; set; } ...
20.421053
67
0.60567
[ "MIT" ]
jo3l17/CodiGo3
Backend/Semana14/BikeStore/BikeStore/BikeStore/Models/Categories.cs
390
C#
using System; using System.Collections.Generic; using System.Linq; using Elasticsearch.Net; using Newtonsoft.Json; namespace Nest { [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public interface IMultiPercolateRequest : IFixedIndexTypePath<MultiPercolateRequestParameters> { IList<IPercolateOpera...
32.380282
160
0.791214
[ "Apache-2.0" ]
Tasteful/elasticsearch-net
src/Nest/DSL/MultiPercolateDescriptor.cs
2,301
C#
using System.Threading; using Streamliner.Actions; using Streamliner.Blocks.Base; using Streamliner.Core.Links; using Streamliner.Definitions; using Streamliner.Definitions.Metadata.Blocks; namespace Streamliner.Blocks { public sealed class ConsumerBlock<T> : BlockBase, ITargetBlock<T> { public IBlock...
28.97561
155
0.641414
[ "MIT" ]
Codeh4ck/Streamliner
Streamliner/Blocks/ConsumerBlock.cs
1,190
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable using System; using System.Threading; using System.Threading.Tasks; using Azure; using Azure.Core; using Azure.Core.Pipeline; namespace Azure.ResourceManager.Compute.Models { //...
41.925926
229
0.745583
[ "MIT" ]
93mishra/azure-sdk-for-net
sdk/compute/Azure.ResourceManager.Compute/src/Generated/LongRunningOperation/CloudServiceRoleInstanceRestartOperation.cs
2,264
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.Collections.Generic; namespace Microsoft.Diagnostics.Runtime.Desktop { internal cla...
31.082759
134
0.581762
[ "MIT" ]
DamirAinullin/clrmd
src/Microsoft.Diagnostics.Runtime/src/Desktop/PrimitiveType.cs
4,509
C#
using System; namespace R5T.T0036.X002 { /// <summary> /// <see cref="IMethodName"/> extensions for <see cref="Microsoft"/>-related method names. /// </summary> public class Documentation { } }
17
94
0.61086
[ "MIT" ]
SafetyCone/R5T.T0036
source/R5T.T0036.X002/Code/Documentation.cs
223
C#
using MonoGame.Extended.Entities; namespace MonoGame.Extended.Gui.Tests.Implementation { [EntityComponent] public class EntityComponentBasic { public int Number { get; set; } } }
20.4
52
0.70098
[ "MIT" ]
damian-666/MonoGame.Extended
Source/Tests/MonoGame.Extended.Entities.Tests/Implementation/EntityComponentBasic.cs
206
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 ...
54.606027
194
0.599712
[ "Apache-2.0" ]
amanda-tarafa/google-api-dotnet-client
Src/Generated/Google.Apis.Translate.v3/Google.Apis.Translate.v3.cs
148,583
C#
using Lazurite.Security.Permissions; using LazuriteUI.Windows.Controls; using System; using System.Linq; using System.Windows; using System.Windows.Controls; namespace LazuriteUI.Windows.Main.Security.PermissionsViews { /// <summary> /// Логика взаимодействия для SelectPermissionView.xaml /// </summary> ...
37.541667
158
0.619312
[ "Apache-2.0" ]
noant/Lazurite
Lazurite/LazuriteUI.Windows.Main/Security/PermissionsViews/SelectPermissionView.xaml.cs
1,827
C#
namespace Eventus.Storage { using Configuration; using System; using System.Linq; using System.Threading.Tasks; using Domain; using EventBus; using Exceptions; using Microsoft.Extensions.Logging; /// <summary> /// The default Eventus Aggregate repository /// </summary> ...
35.691542
159
0.601756
[ "MIT" ]
ForrestTech/Eventus
src/Eventus/Storage/Repository.cs
7,176
C#
using HotChocolate.ApolloFederation; namespace Inventory; [ExtendServiceType] public class Product { public Product(string upc) { Upc = upc; } [Key] [External] public string Upc { get; } [External] public int Weight { get; private set; } [External] public int Price {...
19.941176
69
0.626844
[ "MIT" ]
ChilliCream/prometheus
src/HotChocolate/ApolloFederation/examples/AnnotationBased/Inventory/Product.cs
678
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fi...
38.245098
132
0.635734
[ "Apache-2.0" ]
KenHundley/aws-sdk-net
sdk/src/Services/IdentityManagement/Generated/Model/ChangePasswordRequest.cs
3,901
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Collections.ObjectModel; using Tor.Controller; using System.Net; using Tor.Helpers; using System.ComponentModel; namespace Tor { /// <summary> /// A class containing information regarding a circuit within the to...
32.665179
108
0.543119
[ "MIT" ]
Zaczero/Tor4NET
Tor4NET/Tor/Circuits/Circuit.cs
7,319
C#
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. // Ported from shared/tcpmib.h in the Windows SDK for Windows 10.0.22000.0 // Original source is Copyright © Microsoft. All rights reserved. using System; using System.Runt...
35.634146
145
0.689938
[ "MIT" ]
reflectronic/terrafx.interop.windows
sources/Interop/Windows/Windows/shared/tcpmib/MIB_TCPTABLE2.cs
1,463
C#
// // Copyright © Microsoft Corporation, All Rights Reserved // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // THIS CODE IS PROVIDED ...
31.983871
115
0.607665
[ "MIT" ]
Azure-Samples/Azure-Information-Protection-Samples
IpcAzureApp/DataModel/QueueMessage/RmsCommand.cs
3,969
C#
namespace CookWithMe.Web.Areas.Identity.Pages.Account.Manage { using System; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; using CookWithMe.Common; using CookWithMe.Data.Common.Repositories; using CookWithMe.Data.Models; using Microsoft.A...
38.676617
116
0.593645
[ "MIT" ]
VioletaKirova/CookWithMe
Web/CookWithMe.Web/Areas/Identity/Pages/Account/Manage/DeletePersonalData.cshtml.cs
7,776
C#
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; using System.Threading.Tasks; using Google.Protobuf.WellKnownTypes; using Grpc.Core; using MyJetWallet.Domain.Assets; using Service.AssetsDictionary.Grpc; using Service.AssetsDictionary.Services.Proto; namespace S...
30.698413
132
0.59514
[ "MIT" ]
MyJetWallet/Service.AssetsDictionary
src/Service.AssetsDictionary/Services/AssetsService.cs
1,936
C#
using System.Net; using Core.Api.Testing; using FluentAssertions; using Microsoft.AspNetCore.Hosting; using Warehouse.Products.GettingProducts; using Warehouse.Products.RegisteringProduct; using Xunit; namespace Warehouse.Api.Tests.Products.GettingProducts; public class GetProductsFixture: ApiFixture { protected...
30.223022
92
0.657939
[ "MIT" ]
MaciejWolf/EventSourcing.NetCore
Sample/Warehouse/Warehouse.Api.Tests/Products/GettingProducts/GetProductsTests.cs
4,203
C#
using System; using System.Threading; using System.Threading.Tasks; using Devon4Net.Infrastructure.MediatR.Domain.ServiceInterfaces; using Devon4Net.Infrastructure.MediatR.Handler; using Devon4Net.WebAPI.Implementation.Business.MediatRManagement.Commands; using Devon4Net.WebAPI.Implementation.Business.MediatRManagemen...
35.859649
215
0.703523
[ "Apache-2.0" ]
JuanSGA24/Alejandria
source/Templates/WebAPI/Devon4Net.WebAPI.Implementation/Business/MediatRManagement/Handlers/CreateTodoHandler.cs
2,046
C#
using System; using System.ComponentModel; using System.Runtime.Serialization; namespace FantasyData.Api.Client.Model.NHL { [DataContract(Namespace="", Name="TeamLine")] [Serializable] public partial class TeamLine { /// <summary> /// The unique ID for the team /// </summary> ...
30.163265
63
0.570365
[ "MIT" ]
SebastianLng/fantasydata-api-csharp
FantasyData.Api.Client/Model/NHL/TeamLine.cs
1,480
C#
// Copyright 2020 The Tilt Brush Authors // // 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 law or ...
34.018433
105
0.628962
[ "Apache-2.0" ]
Babouchot/open-brush
Assets/Scripts/TextureScale.cs
7,384
C#
using Common; using Plugin.Base; using Serilog; using System; using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Channels; using System.Threading.Tasks; namespace Plugin.Microsoft.Azure.SignalR.Benchmark.AgentMethods { public class StreamingEcho : BaseStreamingSend...
45.265734
185
0.486328
[ "MIT" ]
isabella232/azure-signalr-bench
src/signalr/AgentMethods/StreamingEcho.cs
6,475
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.Collections.Generic; using System.Threading.Tasks; using osu.Game.Online.API; using osu.Game.Online.Multiplayer; using osu.Game.Online.Rooms; using osu.Serve...
46.953125
204
0.636439
[ "MIT" ]
ppy/osu-serer-spectator
osu.Server.Spectator/Hubs/IMultiplayerHubContext.cs
6,010
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Ejercicio_2 { /* 02. Ingresar un número y mostrar: el cuadrado y el cubo del mismo. Se debe validar que el número sea mayor que cero, caso contrario, mostrar el mensaje: "ERROR. Reingresar núm...
28.12963
133
0.484529
[ "CC0-1.0" ]
RomeroFederico/Lab2ConceptosBasicosEj2
Ejercicio_2/Program.cs
1,531
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:2.0.50727.1433 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //----...
29.46875
84
0.480382
[ "MIT" ]
InstantBusinessNetwork/IBN
Source/Server/WebPortal/FileStorage/DownloadLink.aspx.designer.cs
943
C#
#if UNITY_EDITOR #pragma warning disable 0168 // variable declared but not used. #pragma warning disable 0219 // variable assigned but not used. #pragma warning disable 0414 // private field assigned but not used. using UnityEngine; using UnityEditor; namespace Sketchfab { public class SketchfabUI { // Sketchfab ...
31.268657
113
0.747017
[ "BSD-2-Clause" ]
1-10/VisualEffectGraphSample
Assets/Sketchfab For Unity/Scripts/SketchfabUI.cs
6,287
C#
using System; using System.Text; namespace StriderMqtt { public class ConnectPacket : PacketBase { internal const byte PacketTypeCode = 0x01; internal const string ProtocolNameV3_1 = "MQIsdp"; internal const string ProtocolNameV3_1_1 = "MQTT"; // max length for client id (re...
24.30581
125
0.676774
[ "Apache-2.0" ]
RapidScada/scada-community
Drivers/KpMqtt/KpMqtt/StriderMqtt/ConnectionPackets.cs
7,948
C#
using RobotCtrl; namespace Testat2.Tracks { internal class ArcRight : Track { private readonly float angle; private readonly float radius; internal ArcRight(Robot robot, ObstacleDetector obstacleDetector, float angle, float radius) : base(robot, obstacleDetector) { ...
26.181818
133
0.598958
[ "MIT" ]
wtjerry/hslu_csa
Testat2/Tracks/ArcRight.cs
578
C#
using System.Collections.Generic; using sfa.Tl.Marketing.Communication.Models.Dto; namespace sfa.Tl.Marketing.Communication.UnitTests.Builders { public class ProviderLocationBuilder { public ProviderLocation Build() => new ProviderLocation { ProviderName = "Test Provider", ...
29.181818
63
0.588785
[ "MIT" ]
uk-gov-mirror/SkillsFundingAgency.tl-marketing-and-communication
Tests/sfa.Tl.Marketing.Communication.Tests/Builders/ProviderLocationBuilder.cs
644
C#
using Newtonsoft.Json; using Newtonsoft.Json.Linq; using ShareFile.Api.Client; using ShareFile.Api.Client.Events; using ShareFile.Api.Models; using ShareFile.Api.Powershell.Browser; using ShareFile.Api.Powershell.Properties; using System; using System.Collections.Generic; using System.IO; using System.Linq; ...
50.510909
183
0.501602
[ "MIT" ]
citrix/ShareFile-PowerShell
ShareFileSnapIn/PSShareFileClient.cs
27,783
C#
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ /...
47.009569
189
0.635318
[ "MIT" ]
ScriptBox21/msgraph-sdk-dotnet
src/Microsoft.Graph/Generated/requests/EntitlementManagementConnectedOrganizationsCollectionRequest.cs
9,825
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.Composition; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.Host; using Roslynator.CSharp; name...
34.412698
160
0.686808
[ "Apache-2.0" ]
ADIX7/Roslynator
src/CSharp.Workspaces/CSharp/CSharpSyntaxFactsService.cs
2,170
C#
/*Copyright 2015 Esri 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 law or agreed to in writing, software distributed und...
39.875
84
0.763323
[ "Apache-2.0" ]
AngelVDelgadillo/workflowmanager-samples
CustomJobTab/CSharp/Properties/AssemblyInfo.cs
1,917
C#
using SHS.Domain.Core.Interfaces; using System; using System.Collections.Generic; using System.Text; namespace SHS.Service.UsersService.Dto { public class QueryUserFilter : QueryPageInput { public string Name { get; set; } public string Phone { get; set; } } }
20.785714
49
0.694158
[ "MIT" ]
Coding-Yu/SHS.CMS
Service/SHS.Service/UsersService/Dto/QueryUserFilter.cs
293
C#
using MediatR; using System; using System.Net.Http; using System.Threading.Tasks; using System.Web.Http; using System.Web.Http.Description; using NoDaysOffApp.Features.Core; namespace NoDaysOffApp.Features.CompletedScheduledExercises { [Authorize] [RoutePrefix("api/completedScheduledExercises")] public cla...
40.434783
145
0.733333
[ "MIT" ]
QuinntyneBrown/no-days-off-app
Features/CompletedScheduledExercises/CompletedScheduledExercisesController.cs
1,860
C#
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Runtime.Serialization; using BuildXL.Cache.ContentStore.Distributed.NuCache.CopyScheduling; using BuildXL.Cac...
37.201066
181
0.615068
[ "MIT" ]
microsoft/BuildXL
Public/Src/Cache/DistributedCache.Host/Configuration/DistributedContentSettings.cs
48,847
C#
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. using System; using AutoCrane.Interfaces; namespace AutoCrane.Services { internal sealed class DefaultClock : IClock { public DateTimeOffset Get() { return DateTimeOffset.UtcNow; } } }
18.294118
47
0.652733
[ "MIT" ]
QPC-database/AutoCrane
src/AutoCrane/Services/DefaultClock.cs
313
C#
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="ArrayAverageCalculator.cs" company="Laszlo Lukacs"> // See LICENSE for details. // </copyright> // ------------------------------------------------------------------------------...
36.744444
120
0.467191
[ "MIT" ]
laszlolukacs/DotNetNumericsBenchmark
src/DotNetNumericsBenchmark/ArrayAverageCalculator.cs
3,309
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // Общие сведения об этой сборке предоставляются следующим набором // набора атрибутов. Измените значения этих атрибутов для изменения сведений, // связанные со сборкой. [assembly: AssemblyTitle("IO")] [assembly: Ass...
38.054054
99
0.759233
[ "Apache-2.0" ]
cutzsc/IO
IO/Properties/AssemblyInfo.cs
1,987
C#
using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Linq; using System.Text; using BtsPortal.Entities.Esb; using BtsPortal.Repositories.Interface; using BtsPortal.Repositories.Utilities; using Dapper; namespace BtsPortal.Repositories.Db { public class EsbEx...
31.653262
209
0.657312
[ "MIT" ]
adiraina/BtsPortal
BtsPortal.Repositories/Db/EsbExceptionDbRepository.cs
35,422
C#
using System; using UnityEngine; [RequireComponent(typeof(Camera))] public class CameraController : MonoBehaviour { Camera camera; [SerializeField] float scrollSpeed = 2.5f; [SerializeField] float dragSpeed = 1.0f; void Awake() { camera = GetComponent<Camera>(); } void Updat...
22.875
149
0.582514
[ "MIT" ]
bbtarzan12/Unity-Procedural-2D-Tile-Game
Assets/Scripts/Controller/CameraController.cs
915
C#
// <auto-generated /> using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using P0_AndresOrozco; namespace P0_An...
33.751938
125
0.491272
[ "MIT" ]
12142020-dotnet-uta/AndresOrozcoRepo1
P0_Store_Application/P0_AndresOrozco/Migrations/20201229212113_m0.Designer.cs
4,356
C#
using Data.Common.Test.Domain.Article; using Data.Common.Test.Domain.Category; using Microsoft.Extensions.DependencyInjection; using Xunit; using Xunit.Abstractions; namespace Data.Adapter.Sqlite.Test { /* * 多表分组查询测试 */ public class MultiTableGroupingTests : BaseTest { private readonly I...
38
291
0.490007
[ "MIT" ]
17MKH/Mkh
test/02_Data/Data.Adapter.Sqlite.Test/MultiTableGroupingTests.cs
3,020
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("NGS...
37.783784
84
0.748927
[ "MIT" ]
GDanovski/NGS_PolyCounter
NGS_PolyCounter/Properties/AssemblyInfo.cs
1,401
C#
using System.Drawing; namespace XDesignerGUI { public class SimpleRectangleTransform : TransformBase { private bool bolEnable = true; private bool bolVisible = true; private object objTag = null; private int intPageIndex = 0; private int intFlag2 = 0; private int intFlag3 = 0; protected Rectangle...
19.953737
129
0.639914
[ "MIT" ]
h1213159982/HDF
Example/WinForm/Editor/ZYTextDocumentLib/XDesignerGUI/SimpleRectangleTransform.cs
5,607
C#
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Net; using System.Text; using System.Threading; using System.Threading.Tasks; using CxSolution.CxRouRou.Expands; using CxSolution.CxRouRou.Net.Sockets; using CxSolution.CxRouRou.Net.Sockets.Udp; namespace CxSolut...
30.023256
96
0.513555
[ "MIT" ]
zengliugen/CxSolution
CxRouRouTest/Net/Sockets/Udp/CxNetTest.cs
4,027
C#
using Foundation; using UIKit; namespace SharpConstraintLayout.Maui.Native.Example { [Register("AppDelegate")] public class AppDelegate : UIApplicationDelegate { //protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp(); public override UIWindow? Window { ...
27.5625
101
0.619048
[ "Apache-2.0" ]
xtuzy/SharpConstraintLayout
SharpConstraintLayout.Maui.Native.Example/Platforms/MacCatalyst/AppDelegate.cs
884
C#
// Copyright 2022 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 ...
41.857143
118
0.718999
[ "Apache-2.0" ]
AlexandrTrf/google-cloud-dotnet
apis/Google.Cloud.ContactCenterInsights.V1/Google.Cloud.ContactCenterInsights.V1.GeneratedSnippets/ContactCenterInsightsClient.GetViewAsyncSnippet.g.cs
1,758
C#
#region License // // MIT License // // CoiniumServ - Crypto Currency Mining Pool Server Software // // Copyright (C) 2013 - 2017, CoiniumServ Project // Copyright (C) 2017 - 2021 The Merit Foundation // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this ...
39.918919
85
0.708192
[ "MIT" ]
meritlabs/CoiniumServ
src/CoiniumServ/Configuration/IConfig.cs
1,479
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.Threading; using System.Threading.Tasks; using Microsoft.Data.SqlClient; using Microsoft.En...
36.455446
120
0.649013
[ "Apache-2.0" ]
0b01/efcore
test/EFCore.SqlServer.Tests/SqlServerDatabaseCreatorTest.cs
11,046
C#
using Reactive.Bindings; using System; using System.ComponentModel; namespace SandBeige.MealRecipes.Composition.Settings { /// <summary> /// ウィンドウ状態 /// </summary> public interface IWindowState : INotifyPropertyChanged, IDisposable { /// <summary> /// 幅 /// </summary> IReactiveProperty<double> Width { ...
14.222222
70
0.601563
[ "MIT" ]
southernwind/Gohan
MealRecipes.Composition/Settings/IWindowState.cs
672
C#
namespace Spect.Net.SpectrumEmu.Abstraction.Discovery { /// <summary> /// This interface defines the operations that support debugging the call stack /// </summary> public interface IStackDebugSupport { /// <summary> /// Resets the debug support /// </summary> void R...
31.942029
83
0.571688
[ "MIT" ]
Dotneteer/spectnetide
Core/Spect.Net.SpectrumEmu/Abstraction/Discovery/IStackDebugSupport.cs
2,206
C#
namespace SlackNet.Events { /// <summary> /// Sent when the purpose for a private group is changed. /// </summary> public class GroupPurpose : MessageEvent { public string Purpose { get; set; } } }
23
61
0.608696
[ "MIT" ]
Cereal-Killa/SlackNet
SlackNet/Events/Messages/GroupPurpose.cs
232
C#
using System.Collections; using System.Reflection; #pragma warning disable CS8618,CA1822 namespace FastEndpoints.Security; /// <summary> /// inherit from this class and define your applications permissions as <c>public const string</c> /// <para> /// <code> /// public const string Inventory_Create_Item = "100"; /// ...
34.37234
100
0.655215
[ "MIT" ]
Allann/FastEndpoints
Src/Security/Permissions.cs
3,233
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 Microsoft.EntityFrameworkCore.TestUtilities; using Xunit; using Xunit.Abstractions; namespace Microsoft.EntityFrameworkCore.Query {...
34.727273
143
0.568811
[ "Apache-2.0" ]
EasonDongH/EntityFrameworkCore
test/EFCore.SqlServer.FunctionalTests/Query/FromSqlSprocQuerySqlServerTest.cs
5,348
C#
using System.Collections.Generic; namespace DropScript.Parsing { /// <summary> /// リストを1つずつ読み取る機能と、巻き戻し機能を提供します。 /// </summary> /// <typeparam name="T"></typeparam> public class ListReader<T> { /// <summary> /// 現在の要素を取得します。 /// </summary> /// <value>現在のポインターが指し示す...
23.986667
80
0.465814
[ "MIT" ]
Xeltica/DropScript
DropScript/Parsing/ListReader.cs
2,239
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using System; using System.Collections.Generic; using System.Linq; using System.Security.Claims; using System.Text.RegularExpressions; using System.Threading; using System.Threading.Tasks; using Microsoft.Bot.Con...
49.230435
203
0.58284
[ "MIT" ]
kvbreddy/botbuilder-dotnet
libraries/Microsoft.Bot.Builder.Dialogs/Prompts/OAuthPrompt.cs
22,648
C#
using Microsoft.AspNetCore.Mvc; namespace HayleesThreads.Controllers { public class OrderController : Controller { public ActionResult Index() { return View(); } } }
17
45
0.637255
[ "Unlicense" ]
calliestump/HayleesThreads.Solution
HayleesThreads/Controllers/OrderController.cs
204
C#
using Microsoft.Extensions.Caching.Memory; using Microsoft.Extensions.Primitives; using System; using System.Diagnostics; using System.Threading; using System.Threading.Tasks; using Xunit; namespace WalletWasabi.Tests.UnitTests { /// <seealso cref="XunitConfiguration.SerialCollectionDefinition"/> [Collection("Serial...
33.58885
202
0.712241
[ "MIT" ]
0racl3z/WalletWasabi
WalletWasabi.Tests/UnitTests/MemoryTests.cs
9,640
C#
/* * MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 MinIO, 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...
28.864198
85
0.582977
[ "Apache-2.0" ]
krisis/minio-dotnet
Minio.Tests/UrlTests.cs
4,678
C#
using System; using System.Collections.Generic; using System.Reflection; using Katahdin.Grammars; using Katahdin.CodeTree; namespace Katahdin.Base { public class ModuleStatement : Statement { public new static Pattern pattern; public Name name; public Statement body; ...
30.505747
88
0.504145
[ "Unlicense" ]
chrisseaton/katahdin
Katahdin/Base/statements/ModuleStatement.cs
2,654
C#
using System; using System.Linq; using NUnit.Framework; using HP.LFT.Report; using HP.LFT.UnitTesting; using NUnit.Framework.Interfaces; /// <summary> /// Runs before all classes and tests in the current project. /// <remarks>This class must remain outside any namespace in order to provide setup and tear down for the...
24.707317
122
0.5923
[ "BSD-3-Clause" ]
adamdthomas/CSharp_Selenium_Examples
LeanFtTestProject2/LeanFtTestProject2/UnitTestClassBase.cs
2,028
C#
/******************************************************************************* * Copyright 2008-2018 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...
34.90552
159
0.59188
[ "Apache-2.0" ]
Bio2hazard/aws-sdk-net
sdk/src/Services/S3/Custom/S3Enumerations.cs
70,197
C#
using System.Collections.Generic; using CodingProblems.Other; using FluentAssertions; using Xunit; namespace CodingProblemsTests.Other; public class AnagramFinder_FindAnagrams { [Theory] [InlineData("cbac", "abc", new[] {0,1})] [InlineData("cbaebabacd", "abc", new[] {0,6})] [InlineData("abab", "ab", ...
329.925926
8,069
0.964189
[ "MIT" ]
LevYas/CodingProblems
CodingProblemsTests/Other/AnagramFinder_FindAnagrams.cs
8,910
C#
using GVFS.Common; using GVFS.Common.FileSystem; using GVFS.Common.Tracing; using System; using System.IO; namespace GVFS.Platform.Linux { public class ProjFSLib : IKernelDriver { public bool EnumerationExpandsDirectories { get; } = true; public bool EmptyPlaceholdersRequireFileSize { get; } = ...
24.826087
110
0.556334
[ "MIT" ]
Personalhomeman/VFSForGit
GVFS/GVFS.Platform.Linux/ProjFSLib.cs
1,713
C#
// MIT License - Copyright (c) Callum McGing // This file is subject to the terms and conditions defined in // LICENSE, which is part of this source code package using System; namespace LibreLancer { public delegate void MouseWheelEventHandler(int amount); public delegate void MouseEventHandler(MouseEventArgs e); ...
21.830508
62
0.697205
[ "MIT" ]
HaydnTrigg/Librelancer
src/LibreLancer.Base/Input/Mouse.cs
1,290
C#
using EntityG.BusinessLogic.Interfaces.Services.Account; using EntityG.Contracts.Requests.Identity; using EntityG.EntityFramework.Interfaces; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using System.Threading.Tasks; namespace EntityG.Server.Controllers.Identity { [Authorize] [Rou...
36.08
103
0.701774
[ "MIT" ]
jackiesphan1996/EntityG-HRM
EntityG/Server/Controllers/Identity/AccountController.cs
1,806
C#
using System; using System.IO; using System.Net.Mail; using System.Net.Mime; namespace S22.Mail { [Serializable] public class SerializableLinkedResource { public static implicit operator LinkedResource(SerializableLinkedResource resource) { if (resource == null) return null; LinkedResource r = new Linke...
30.325581
87
0.759202
[ "MIT" ]
albertospelta/S22.Mail
SerializableMailMessage/SerializableLinkedResource.cs
1,306
C#
namespace Umbraco.Core.Migrations.PostMigrations { /// <summary> /// Rebuilds the published snapshot. /// </summary> public class RebuildPublishedSnapshot : IMigration { private readonly IPublishedSnapshotRebuilder _rebuilder; /// <summary> /// Initializes a new instance of...
25.96
91
0.600924
[ "MIT" ]
0Neji/Umbraco-CMS
src/Umbraco.Core/Migrations/PostMigrations/RebuildPublishedSnapshot.cs
651
C#
// Basic example on how to work with R&S RsSmab driver package // The example does the following: // - Initializes the session - see the commented lines on how to initialize the session with the specified VISA or no VISA at all // - Reads the standard information of the instrument // - Does couple of standard RF setti...
44.857143
148
0.647862
[ "MIT" ]
Rohde-Schwarz/Examples
SignalGenerators/Csharp/RsSmab_ScpiPackage/RsSmab_Simple_RFsettings_Example/Program.cs
2,200
C#
using System; using System.Collections.Generic; using System.Text; namespace sly.parser.syntax { public class TerminalClause<T> : IClause<T> { public T ExpectedToken {get; set;} public bool Discarded { get; set; } public TerminalClause(T token) { ExpectedToken = token; ...
21.545455
66
0.506329
[ "MIT" ]
dotted/csly
sly/parser/syntax/TerminalClause.cs
948
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. using System.Collections.Generic; using System.Linq; using AutoRest.Core.Model; using Newtonsoft.Json; namespace AutoRest.Ruby.Model { /// <summar...
30.527778
96
0.614195
[ "MIT" ]
Azure/autorest.ruby
src/vanilla/Model/MethodGroupRb.cs
1,101
C#
namespace Machete.X12Schema.V5010 { using System; using X12; public interface BPR : X12Segment { Value<string> TransactionHandlingCode { get; } Value<decimal> TotalActualProviderPaymentAmount { get; } Value<string> CreditOrDebitFlagCode { get; } ...
25.833333
66
0.630415
[ "Apache-2.0" ]
AreebaAroosh/Machete
src/Machete.X12Schema/Generated/V5010/Segments/BPR.cs
1,085
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. // </auto-generated> namespace Microsoft.Azure.Management.Compute.Fluent { ...
48.906091
255
0.564015
[ "MIT" ]
abharath27/azure-libraries-for-net
src/ResourceManagement/Compute/Generated/DisksOperationsExtensions.cs
19,269
C#
using AutoMapper; using Sample.Common.Dto; using Sample.WebApi.Controllers.Parameters; using Sample.WebApi.Controllers.ViewModels; namespace Sample.WebApi.Infrastructure { /// <summary> /// Controller Mapping 定義檔 /// </summary> /// <seealso cref="AutoMapper.Profile" /> public class ControllerProfi...
29.291667
84
0.634424
[ "MIT" ]
raychiutw/webapi-dotnet
src/Sample.WebApi/Infrastructure/ControllerProfile.cs
711
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; public partial class MasterPageEduc_mehman : System.Web.UI.MasterPage { Class1 c1 = new Class1(); protected void Page_Load(object sender, EventArgs e) { ...
26.44086
182
0.577064
[ "MIT" ]
JeloH/Jelodar
MasterPageEduc_mehman.master.cs
2,549
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. using System; using System.Collections.Generic; using System.Diagnostics; using System.Threading.Tasks; using LodeRunner.API.Models; using Microsoft.Extensions.Diagno...
33.139344
168
0.557012
[ "MIT" ]
cloudatx/loderunner
src/LodeRunner.API/src/HealthChecks/CosmosHealthCheckDetails.cs
4,043
C#
using System; using System.Collections.Generic; namespace GoogleMapsApi { public interface IRectangle { /// <summary> /// This event is fired when the DOM click event is fired on the Rectangle. /// </summary> event Action<IRectangle, GeographicLocation> Click; /// <sum...
27.837209
86
0.562239
[ "MIT" ]
kellerw/WindowCakeGraphs
GoogleMapsApi/Interfaces/IRectangle.cs
1,199
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class Inventory : MonoBehaviour { public string _name; public Slot[] _slots; private Notification _notification; private InfoPanel _infoPanel; private int _secondsElapsed = 0; public struct Slot { pu...
27.804878
115
0.660526
[ "MIT" ]
Tuccster/chickens-game
Assets/Scripts/Inventory.cs
3,422
C#
using ITGlobal.MarkDocs.Cache.Model; using JetBrains.Annotations; using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace ITGlobal.MarkDocs.Source { /// <summary> /// Page anchor list /// </summary> [PublicAPI] public sealed class PageAnchors : IR...
25.440476
101
0.486664
[ "MIT" ]
ITGlobal/MarkDocs
src/ITGlobal.MarkDocs.Core/Source/PageAnchors.cs
2,139
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. namespace Microsoft.Azure.Management.AppService.Fluent.DomainContact.Definition { using Microsoft.Azure.Management.AppService.Fluent.Models; using Microsof...
49.936
148
0.696572
[ "MIT" ]
AntoineGa/azure-libraries-for-net
src/ResourceManagement/AppService/Domain/DomainContact/Definition/IDefinition.cs
12,484
C#