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
// ***************************************************************************** // BSD 3-Clause License (https://github.com/ComponentFactory/Krypton/blob/master/LICENSE) // © Component Factory Pty Ltd, 2006 - 2016, All rights reserved. // The software and associated documentation supplied hereunder are the // prop...
41.651852
157
0.546683
[ "BSD-3-Clause" ]
Krypton-Suite-Legacy/Krypton-NET-5.451
Source/Krypton Components/ComponentFactory.Krypton.Workspace/Dragging/DragTargetWorkspaceCellTransfer.cs
5,626
C#
using System.Linq; namespace Prism.Modularity { /// <summary> /// <see cref="IModuleCatalog"/> extensions. /// </summary> public static class IModuleCatalogExtensions { /// <summary> /// Adds the module. /// </summary> /// <returns>The module.</returns> ///...
47.319444
151
0.597593
[ "Apache-2.0" ]
TaviTruman/Prism
Source/Xamarin/Prism.Forms/Modularity/IModuleCatalogExtensions.cs
3,409
C#
using System; using System.Reflection; namespace Orleans.Runtime.Scheduler { internal class ClosureWorkItem : WorkItemBase { private readonly Action continuation; private readonly Func<string> nameGetter; public override string Name { get { return nameGetter==null ? "" : nameGetter(); ...
29.782609
98
0.587348
[ "MIT" ]
Drawaes/orleans
src/OrleansRuntime/Scheduler/ClosureWorkItem.cs
2,055
C#
using System; using Orchard.ContentManagement; using Orchard.ContentManagement.Drivers; using Orchard.Core.Common.Models; using Orchard.Core.Common.Utilities; using Orchard.Core.Common.ViewModels; using Orchard.Localization; using Orchard.Localization.Services; namespace Orchard.Core.Common.DateEditor { public cl...
46.0625
162
0.560606
[ "BSD-3-Clause" ]
1996dylanriley/Orchard
src/Orchard.Web/Core/Common/DateEditor/DateEditorDriver.cs
4,424
C#
using Akka.Actor; namespace Akka.ClusterPingPong.Actors { public class EchoActor : UntypedActor { protected override void OnReceive(object message) { Sender.Tell(message); } public static Props EchoProps {get;} = Props.Create(() => new EchoActor()); } }
22.285714
83
0.615385
[ "Apache-2.0" ]
Aaronontheweb/akka.net-integration-tests
src/ClusterPingPong/src/Akka.ClusterPingPong/Actors/EchoActor.cs
314
C#
// Copyright 2017 Secure Decisions, a division of Applied Visions, Inc. // 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 ...
43.723404
116
0.723601
[ "Apache-2.0" ]
alextudu/codepulse
dotnet-tracer/main/CodePulse.Client/Instrumentation/Id/ClassIdentifier.cs
2,057
C#
using ILRuntime.CLR.Method; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ILRuntime.Runtime.Stack { class IntegerReference { public int Value { get; set; } } unsafe struct StackFrame { public ILMethod Method; public StackObj...
22.565217
49
0.687861
[ "MIT" ]
RedAWM/GDNet
GameDesigner/ILRuntime/Runtime/Stack/StackFrame.cs
521
C#
/******************************************************************** License: https://github.com/chengderen/Smartflow/blob/master/LICENSE Home page: http://www.smartflow-sharp.com Github : https://github.com/chengderen/Smartflow-Sharp ******************************************************************** */ using...
20.862745
70
0.432331
[ "MIT" ]
Lu-Lucifer/Smartflow-Sharp
src/Smartflow.Core/WorkflowConfiguration.cs
1,094
C#
// WARNING // // This file has been generated automatically by Visual Studio from the outlets and // actions declared in your storyboard file. // Manual changes to this file will not be maintained. // using Foundation; using System; using System.CodeDom.Compiler; using UIKit; namespace MakeMeMove.iOS.ViewCo...
27.303571
84
0.52845
[ "MIT" ]
HofmaDresu/MakeMeMove
MakeMeMove/MakeMeMove.iOS/ViewControllers/MyExercisesController.designer.cs
1,529
C#
using Jbe.NewsReader.Applications.Services; using System.Composition; using System.Threading.Tasks; using System.IO; namespace Test.NewsReader.Applications.Services { [Export(typeof(IWebStorageService)), Export, Shared] public class MockWebStorageService : IWebStorageService { public Tas...
30
110
0.672727
[ "MIT" ]
pskpatil/waf
src/NewsReader/NewsReader.Applications.Test/Services/MockWebStorageService.cs
662
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; using System.Linq; using Xunit; using Microsoft.ML.Probabilistic.Dis...
54.456442
313
0.548347
[ "MIT" ]
a-sklyarov/infer
test/Tests/Operators/OperatorTests.cs
177,528
C#
using System.Collections.Generic; using System.ComponentModel.DataAnnotations; namespace ECS.MemberManager.Core.EF.Domain { public class CategoryOfOrganization : EntityBase { [Required, MaxLength(35)] public string Category { get; set; } public int DisplayOrder { get; set; } public ILi...
31
70
0.706989
[ "MIT" ]
edmathias/ECS.MemberManager.Core
ECS.MemberManager.Core.EF.Domain/CategoryOfOrganization.cs
374
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using TestMachineFrontend1.Helpers; namespace TestMachineFrontend1.Model { public class MultiplexerModel : ObservableObject { private double x; /// <summary> /// Value fo...
21.019608
52
0.449627
[ "Apache-2.0" ]
CytheY/amos-ss17-projSivantos
UserAgent/ProductionFrontend/Model/MultiplexerModel.cs
1,074
C#
using System; using Markify.Services.Rendering.T4.Tests.Attributes; using NFluent; using Xunit; namespace Markify.Services.Rendering.T4.Tests { public sealed class T4TemplateProviderTests { [Theory] [TemplateProviderData(new[] { typeof(string)}, typeof(string))] [TemplateProviderData(n...
38.060606
121
0.683917
[ "MIT" ]
Julien-Pires/Markify
src/Services/Rendering/Markify.Services.Rendering.T4.Tests/T4TemplateProvider/T4TemplateProvider.GetTemplate.Tests.cs
1,258
C#
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; using LanguageExt; using SJP.Schematic.Core; using SJP.Schematic.Core.Comments; namespace SJP.Schematic.Oracle.Comments { /// <summary> /...
52.597826
193
0.680099
[ "MIT" ]
sjp/Schematic
src/SJP.Schematic.Oracle/Comments/OracleViewCommentProvider.cs
4,841
C#
// <auto-generated /> // Built from: hl7.fhir.r4.core version: 4.0.1 using System; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; using Fhir.R4.Serialization; namespace Fhir.R4.Models { /// <summary> /// Actor participating in the resource. /// </summary> [Json...
28.852888
508
0.589055
[ "MIT" ]
QPC-database/fhir-codegen
test/perfTestCS/R4/Models/ExampleScenario.cs
63,938
C#
using Cysharp.Threading.Tasks; namespace Millennium.InGame.Entity.Bullet { public class PlayerBullet : BulletBase { private void Start() { var token = this.GetCancellationTokenOnDestroy(); Move(token); DestroyWhenFrameOut(token); DamageWhenEnter(...
21.277778
61
0.592689
[ "MIT" ]
andanteyk/Millennium
Assets/Millennium/Scripts/InGame/Entity/Bullet/PlayerBullet.cs
383
C#
using IronHook.EntityFrameworkCore.Extensions; using Microsoft.EntityFrameworkCore; var builder = WebApplication.CreateBuilder(args); // Add services to the container. builder.Services.AddControllers(); // Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle builder.Services.AddEndpo...
21.230769
88
0.748792
[ "MIT" ]
FowApps/IronHook
samples/dotnet6/IronHook.Web/Program.cs
828
C#
// -------------------------------------------------------------------------------------------------------------------- // <copyright company="Aspose" file="RevisionsModificationResponse.cs"> // Copyright (c) 2021 Aspose.Words for Cloud // </copyright> // <summary> // Permission is hereby granted, free of char...
45.766667
141
0.612163
[ "MIT" ]
aspose-words-cloud/aspose-words-cloud-dotne
Aspose.Words.Cloud.Sdk/Model/RevisionsModificationResponse.cs
2,687
C#
using System.Collections.Generic; using BethanysPieShop.Models; namespace BethanysPieShop.ViewModel { public class HomeViewModel { public IEnumerable<Pie> PiesOfWeek { get; set; } } }
20.4
56
0.72549
[ "MIT" ]
makampos/BethanysPieShop
BethanysPieShop/ViewModel/HomeViewModel.cs
204
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/ntsecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. using NUnit.Framework; using Syst...
39.914286
145
0.735863
[ "MIT" ]
IngmarBitter/terrafx.interop.windows
tests/Interop/Windows/Windows/um/ntsecapi/KERB_TRANSFER_CRED_REQUESTTests.cs
1,399
C#
using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace movie_db_app.Application.Common.Models { public class PaginatedList<T> { public List<T> Items { get; } public int PageIndex { get; } public i...
30.72973
113
0.629727
[ "MIT" ]
skvlive/movie-db-app
src/Application/Common/Models/PaginatedList.cs
1,139
C#
// ========================================================================== // Squidex Headless CMS // ========================================================================== // Copyright (c) Squidex UG (haftungsbeschränkt) // All rights reserved. Licensed under the MIT license. // ============================...
34.678571
146
0.509784
[ "MIT" ]
BtrJay/squidex
src/Squidex.Infrastructure/Singletons.cs
974
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://www....
39.417722
118
0.584457
[ "Apache-2.0" ]
gfrancomsft/durabletask
src/DurableTask.Core/RetryOptions.cs
3,116
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using MyGUIPlugin; using Anomalous.GuiFramework; namespace Medical.GUI { public class NotesDialog : PinableMDIDialog { private MedicalStateController stateController; private EditBox stateNameTe...
35.101449
104
0.627581
[ "MIT" ]
AnomalousMedical/Medical
DentalSim/GUI/Notes/NotesDialog.cs
2,424
C#
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ using System.Fabric; using ...
41.766667
143
0.644054
[ "MIT" ]
MichaelEdward/microservices-reference-implementation-servicefabric
src/DeliveryService/DeliveryService/ConfigurationExtensions.cs
1,255
C#
#region copyright // Copyright (c) rubicon IT GmbH // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), // to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, p...
68
158
0.781176
[ "MIT" ]
RandomEngy/LicenseHeaderManager
LicenseHeaderManager/GlobalSuppressions.cs
1,700
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...
34.122905
154
0.597741
[ "Apache-2.0" ]
UpendoVentures/aws-sdk-net
sdk/src/Services/EC2/Generated/Model/AssociateVpcCidrBlockRequest.cs
6,108
C#
using System; using System.Collections.Generic; using Moq; using SB014.API.BAL; using SB014.API.DAL; using SB014.API.Domain; using SB014.API.Domain.Enums; using Xunit; namespace SB014.UnitTests.Api { public class TournamentLogic_AddBellShould { [Fact] public void SetTournamentBellCounter() ...
36.0125
122
0.481083
[ "MIT" ]
sbarrettGitHub/SB014
SB014.Tests/TournamnetLogic_AddBellShould.cs
5,762
C#
using Net.Torrent.Tracker.Common.Http; using System; using System.Globalization; using System.Net.Http; using System.Security.Cryptography; using System.Text; using System.Threading.Tasks; using Xunit; namespace Net.Torrent.Tracker.Common.Test { public class TrackerTests { private const string HashStri...
34.823529
116
0.572213
[ "MIT" ]
l0nley/Net.Torrent.Tracker.Common
Net.Torrent.Tracker.Common.Test/TrackerTests.cs
2,368
C#
using System; using System.Collections.Generic; using System.Text; using System.Drawing; using System.Windows.Forms; namespace Blumind.Controls { public class UIStatusImage { public UIStatusImage() { SlicesLocation = new Dictionary<UIControlStatus, Point>(); } publ...
30.310606
117
0.530117
[ "MIT" ]
Darkxiete/Blumind
Code/Blumind/Controls/Paint/UIStatusImage.cs
4,003
C#
using System; using System.Collections.Generic; using System.Text; namespace Energy.Core.Interfaces.Entities { public interface IUser { } }
14
41
0.727273
[ "MIT" ]
zsra/energy
src/Energy.Core/Interfaces/Entities/IUser.cs
156
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Grave : Frezzeble, IInteractive { [SerializeField] SpriteRenderer face; [SerializeField] Sprite[] states; [SerializeField] AudioClip soundSource; private void Start() { GameControllor.singelton.obje...
25.460317
85
0.485661
[ "Apache-2.0" ]
LifeLich/LudumDare46
Assets/Items/Grave.cs
1,606
C#
using ICSharpCode.AvalonEdit.Highlighting.Xshd; using MyBase; using MyBase.Logging; using MyPad.Properties; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Xml; using Unity; namespace MyPad.Models { public sealed class SyntaxService { ...
31.55814
165
0.555269
[ "MIT" ]
kawasawa/MyPad
MyPad/Models/SyntaxService.cs
2,832
C#
using Xunit; namespace Day9.Tests { public class UnitTest1 { [Fact] public void Task1Example() { var res = new XMASencryption("input_example.txt").invalidVal(5); Assert.Equal(127, res.val); } [Fact] public void Task1Real() { ...
23.194444
87
0.526946
[ "MIT" ]
joelbygger/adventofcode20
c_sharp/src/Day9.Tests/unitTest1.cs
835
C#
using System.Linq; using System.Runtime.CompilerServices; using BenchmarkDotNet.Attributes; using BenchmarkDotNet.Extensions; using MicroBenchmarks; namespace System.Buffers.Tests { [BenchmarkCategory(Categories.Libraries)] [GenericTypeArguments(typeof(byte))] [GenericTypeArguments(typeof(char))] publi...
44.620408
212
0.649744
[ "MIT" ]
333fred/performance
src/benchmarks/micro/libraries/System.Buffers/ReadOnlySequenceTests.cs
10,932
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.Collections; using System.ComponentModel; using System.Diagnostics; using System.Net; using System.Runtime.InteropServices; using System.Security.Cryptography.X509Certif...
40.184853
248
0.48023
[ "MIT" ]
JensDll/runtime
src/libraries/System.DirectoryServices.Protocols/src/System/DirectoryServices/Protocols/ldap/LdapConnection.cs
80,651
C#
using Microsoft.AspNetCore.Authentication.Cookies; using Microsoft.AspNetCore.Components.Authorization; using System.Collections.Generic; using System.Security.Claims; using System.Threading.Tasks; namespace AzureDevOpsTeamMembersVelocity.Autorization { /// <summary> /// When no authentification method is con...
35.36
119
0.675339
[ "MIT" ]
freddycoder/AzureDevOpsTeamMembersVelocity
AzureDevOpsTeamMembersVelocity/Autorization/AllowAnonymousStateProvider.cs
1,770
C#
using System; using System.Collections.Generic; namespace Section6.HandleQueue { public class Program { public static void Main(string[] args) { Console.ForegroundColor = ConsoleColor.DarkMagenta; var flavio = "Flavio"; var luis = "Luis"; ...
25.3125
74
0.519012
[ "MIT" ]
flaviogf/Cursos
alura/certificacao_csharp/Section6/Section6.HandleQueue/Program.cs
2,027
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Xunit; using Fonlow.Poco2Ts; using Fonlow.Poco2Client; namespace Poco2TsTests { public class Poco2TsHouseKeeping { [Fact] public void TestReadDataContractAttribute() ...
30.576271
143
0.687361
[ "MIT" ]
Niklas007CR7/webapiclientgen
Tests/Poco2TsTestsShared/Poco2TsHouseKeeping.cs
1,806
C#
namespace Vulkan.Framework; public class ShaderResource { public VkShaderStageFlagBits Stages = new VkShaderStageFlagBits(); public ShaderResourceType Type = new ShaderResourceType(); public ShaderResourceMode Mode; public uint Set = new uint(); public uint Binding = new uint(); public ui...
20.314286
70
0.676512
[ "BSD-3-Clause" ]
trmcnealy/Vulkan
Vulkan/Framework/ShaderResource.cs
713
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. namespace Microsoft.PowerShell.Commands { using System; using System.Collections; using System.Management.Automation; using System.Management.Automation.Host; using System.Management.Automation.Internal;...
33.618605
144
0.570006
[ "MIT" ]
Francisco-Gamino/PowerShell
src/System.Management.Automation/FormatAndOutput/out-console/OutConsole.cs
7,228
C#
// This file isn't generated, but this comment is necessary to exclude it from StyleCop analysis. // <auto-generated/> // 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.BPerf.StackInfo...
39.518349
146
0.685084
[ "MIT" ]
Bhaskers-Blu-Org2/BPerf
WebViewer/Microsoft.BPerf.StackInformation.Etw/Etw.cs
8,617
C#
namespace EFCorePowerTools.Dialogs { using Contracts.ViewModels; using Contracts.Views; using Shared.DAL; public partial class AboutDialog : IAboutDialog { public AboutDialog(ITelemetryAccess telemetryAccess, IAboutViewModel viewModel) { telem...
25.444444
94
0.542576
[ "MIT" ]
19317362/EFCorePowerTools
src/GUI/EFCorePowerTools/Dialogs/AboutDialog.xaml.cs
918
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using GitVersion; using NUnit.Framework; using Shouldly; namespace GitVersionCore.Tests { [TestFixture] public class GitVersionInformationGeneratorTests : TestBase ...
34.735849
125
0.614883
[ "MIT" ]
gjsduarte/GitVersion
src/GitVersionCore.Tests/GitVersionInformationGeneratorTests.cs
1,791
C#
//********************************************************************************************************* // Written by Matthew Monroe for the US Department of Energy // Pacific Northwest National Laboratory, Richland, WA // Created 07/16/2014 // //***************************************************************...
41.54262
166
0.486087
[ "BSD-2-Clause" ]
PNNL-Comp-Mass-Spec/DMS-Analysis-Manager
Plugins/AM_PBFSpectraFileGen_PlugIn/AnalysisToolRunnerPBFGenerator.cs
19,984
C#
//------------------------------------------------------------------------------ // <auto-generated> // Этот код создан программой. // Исполняемая версия:4.0.30319.42000 // // Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае // повторной генерации кода. // </auto-ge...
33.266055
92
0.503861
[ "MIT" ]
Flexberry/NewPlatform.Flexberry.ORM.ClickHouseDataService
Tests/Objects/cla.cs
3,762
C#
/* http://www.cgsoso.com/forum-211-1.html CG搜搜 Unity3d 每日Unity3d插件免费更新 更有VIP资源! CGSOSO 主打游戏开发,影视设计等CG资源素材。 插件如若商用,请务必官网购买! daily assets update for try. U should buy the asset from home store if u use it in your project! */ #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR) using System; using ...
25.674877
93
0.348427
[ "MIT" ]
zhoumingliang/test-git-subtree
Assets/RotateMe/Scripts/Best HTTP (Pro)/BestHTTP/SecureProtocol/math/raw/Mod.cs
5,306
C#
// <auto-generated /> // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. namespace NotificationService.UnitTests.BusinessLibrary.Trackers { using System; using System.Diagnostics.CodeAnalysis; using System.Linq; using NotificationService.Contracts.Models.Trackers; using NUn...
42.986111
148
0.662359
[ "MIT" ]
tech4GT/notification-provider
NotificationService/NotificationService.UnitTests/BusinessLibrary/Trackers/GetUserConnectionIds_Tests.cs
3,097
C#
using NBi.GenbiL.Stateful; using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Text; using System.Threading.Tasks; namespace NBi.GenbiL.Action.Case { class DuplicateCaseAction : ISingleCaseAction { public string OriginalColumn { get; } public IEnu...
33.414634
198
0.634307
[ "Apache-2.0" ]
TheAutomatingMrLynch/NBi
NBi.genbiL/Action/Case/DuplicateCaseAction.cs
1,372
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 Float = System.Single; using System; using System.Linq; using System.Threading; using Microsoft.ML.Runtime; u...
51.268623
230
0.578725
[ "MIT" ]
naphtalidavies/machinelearning
src/Microsoft.ML.StandardLearners/Standard/SdcaMultiClass.cs
22,712
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Data.SqlClient; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace guzellikmerkezison { public partial class seansss : Form ...
41.584637
290
0.485223
[ "MIT" ]
Busra3021/CSharp_guzellik_merkezi_otomasyonu
guzellikmerkezison/guzellikmerkezison/seansss.cs
29,287
C#
 using System.Collections.Generic; using System.Linq; using System.Web; using Gym.Models.DAL; using Gym.Models.Entity; namespace Gym.Models.Manager { public class ManagerEquipment { public static void SaveEquipment(EquipmentEntity detail) { using (fitnessEntities dbe = new DAL.fitn...
35.786408
109
0.60255
[ "MIT" ]
anisha13/gym_mangemeny_system
Gym/Gym/Models/Manager/ManagerEquipment.cs
3,688
C#
using System; using System.Collections.Generic; using System.Threading.Tasks; using AutoMapper; using ECommerce.Domain.Models; using ECommerce.Domain.Services; using ECommerce.Extensions; using ECommerce.Resources.Purchase; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Cors; using Microsoft.AspNe...
30.423077
104
0.622946
[ "Apache-2.0" ]
rafaelvieira95/curso-dfs
core/ECommerce/Controllers/PurchaseController.cs
3,164
C#
namespace WorkoutWotch.UnitTests.Models.Actions { using System; using System.Linq; using System.Reactive; using System.Reactive.Linq; using System.Threading; using Builders; using Kent.Boogaart.PCLMock; using WorkoutWotch.Models; using WorkoutWotch.Models.Actions; using WorkoutW...
31.673913
124
0.500572
[ "MIT" ]
reactiveui-forks/WorkoutWotch
Src/WorkoutWotch.UnitTests/Models/Actions/SequenceActionFixture.cs
8,744
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using ZigBeeNet.Security; using ZigBeeNet.ZCL.Clusters.ColorControl; using ZigBeeNet.ZCL.Field; using ZigBeeNet.ZCL.Protocol; namespace ZigBeeNet.ZCL.Clusters.ColorControl { /// <summary> /// Step Color Command value object ...
32.296703
113
0.610752
[ "EPL-1.0" ]
DavidKarlas/ZigbeeNet
libraries/ZigBeeNet/ZCL/Clusters/ColorControl/StepColorCommand.cs
2,939
C#
using SoftJail.Data.Models.Enums; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Text; using System.Xml.Serialization; namespace SoftJail.DataProcessor.ImportDto { [XmlType("Officer")] public class ImportOfficersPrisonersDTO { //• Id – int...
32.859649
120
0.628404
[ "MIT" ]
mirakis97/Entity-Framework
14.Exams/C# DB Advanced Retake Exam - 14 August 2020/SoftJail/DataProcessor/ImportDto/ImportOfficersPrisonersDTO.cs
1,907
C#
using core.Data.Repositories.User; using core.Domain.Entities.User; using System.Collections.Generic; using System.Threading.Tasks; namespace core.Services.Services.User { public class UserService : IUserService { private readonly IUserRepository _repo; public UserService(IUserRepository repo...
22.173913
66
0.652941
[ "MIT" ]
alexsoler/nuxt-dotnet-authentication
backend/core.Services/Services/User/UserService.cs
512
C#
using System; namespace CCBPayWebDemo.Models { public class ErrorViewModel { public string RequestId { get; set; } public bool ShowRequestId => !string.IsNullOrEmpty(RequestId); } }
17.666667
70
0.669811
[ "MIT" ]
EzrealJ/EasyPay
demo/CCBPayWebDemo/Models/ErrorViewModel.cs
212
C#
using System; using System.Text.Encodings.Web; using System.Threading.Tasks; using Microsoft.AspNetCore.Authorization; using Elements.Models; using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Identity.UI.Services; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; using Microsoft....
37.642857
130
0.607211
[ "MIT" ]
Steffkn/ElementsWeb
Elements.Web/Areas/Identity/Pages/Account/Register.cshtml.cs
3,691
C#
using System; using System.Text; using System.Collections; using System.Collections.Generic; using System.Runtime.Serialization; using Newtonsoft.Json; namespace ApiVideo.Model { /// <summary> /// /// </summary> [DataContract] public class PlayerTheme { /// <summary> /// The name of the player them...
44.612245
125
0.646615
[ "MIT" ]
apivideo/csharp-api-client
src/Model/PlayerTheme.cs
8,744
C#
namespace MudBlazor; internal static class JsRuntimeEx { private const string Prefix = "MudBlazorRichTextEdit"; public static ValueTask InitAsync(this IJSRuntime @this, string elementId, DotNetObjectReference<InnerHtmlChangedInvokable> innerHtmlChangedInvokable) => @this.InvokeVoidAsync($"{Prefix}.init", element...
50.571429
154
0.795198
[ "MIT" ]
MyNihongo/MudBlazor.RichTextField
src/MudBlazor.RichTextField/Utils/Extensions/JsRuntimeEx.cs
1,418
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 06:03:42 UTC // </auto-generated> //--------------...
31.763158
101
0.610191
[ "MIT" ]
GridProtectionAlliance/go2cs
src/go-src-converted/value_rtypeStruct.cs
2,414
C#
namespace StrongPlateEF.Migrations { using System; using System.Data.Entity.Migrations; public partial class ChangeColumnNames : DbMigration { public override void Up() { RenameColumn(table: "dbo.Employees", name: "Speed", newName: "AverageSpeed"); RenameColu...
31.952381
99
0.611028
[ "MIT" ]
pxlit-projects/entmob2016_10
EF/StrongPlateEF/StrongPlateEF/Migrations/201611112216498_ChangeColumnNames.cs
671
C#
using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace Sales { [Table("Orders")] public class Order { [Key] public Guid OrderId { get; set; } public OrderStatus Status { get; set; } } public enum OrderStatus...
18.391304
51
0.595745
[ "MIT" ]
brianweet/LooselyCoupledMonolith
src/Sales/Order.cs
423
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...
35.513761
149
0.628003
[ "Apache-2.0" ]
Hazy87/aws-sdk-net
sdk/src/Services/AppStream/Generated/Model/Internal/MarshallTransformations/DisassociateFleetRequestMarshaller.cs
3,871
C#
using CowSpeak.Exceptions; using System; using System.Collections.Generic; using System.Linq; namespace CowSpeak { public static class Executor { public struct TokenLocation { public int LineIndex, TokenIndex; public TokenLocation(int LineIndex, int TokenIndex) { this.LineIndex = Lin...
39.565217
237
0.62967
[ "MIT" ]
CowNation/CowSpeak
CowSpeak-master/Executor.cs
9,100
C#
using System; using Microsoft.EntityFrameworkCore.Migrations; namespace MagiConsole.Migrations { public partial class InitialCreate : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "Files", ...
32.764706
81
0.523339
[ "MIT" ]
magico13/MagiCloud
MagiConsole/Migrations/20210909033913_InitialCreate.cs
1,116
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.Device.Gpio; using System.Device.I2c; using System.Device.Spi; using System.Threading; using Iot.Device.Mcp23xxx; int s_deviceAddress = 0x20; Debug.Write...
28.039773
84
0.693212
[ "MIT" ]
Manny27nyc/nanoFramework.IoT.Device
src/devices_generated/Mcp23xxx/samples/Program.cs
4,935
C#
using System.Collections.Generic; using JetBrains.Annotations; using JsonApiDotNetCore.Resources; using JsonApiDotNetCore.Resources.Annotations; namespace JsonApiDotNetCoreExampleTests.IntegrationTests.QueryStrings { [UsedImplicitly(ImplicitUseTargetFlags.Members)] public sealed class Calendar : Identifiable ...
26.52381
69
0.723519
[ "MIT" ]
3volutionsAG/JsonApiDotNetCore
test/JsonApiDotNetCoreExampleTests/IntegrationTests/QueryStrings/Calendar.cs
557
C#
using rest_api_blueprint.Constants; using System; using System.ComponentModel.DataAnnotations; namespace rest_api_blueprint.Models.Identity.User { public class SignUpUser { [Required] [MinLength(InputSizes.DEFAULT_TEXT_MIN_LENGTH)] [MaxLength(InputSizes.DEFAULT_TEXT_MAX_LENGT...
30.205882
56
0.653359
[ "MIT" ]
florianrubel/rest-api-blueprint
rest-api-blueprint/Models/Identity/User/SignUpUser.cs
1,029
C#
using UnityEngine; using System.Collections; public class ProgressionScript : MonoBehaviour { public bool route1AStart; public bool route1AEnd; public bool route1BStart; public bool route1BEnd; public bool route2AStart; public bool route2AEnd; public bool route2BStart; public bool route2BEnd; // Use this f...
15.391304
48
0.637476
[ "Apache-2.0" ]
ChrisMcF/CouchCrusaderRedux
Dungeon/Assets/Scripts/TestScripts/ProgressionScript.cs
1,064
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...
32.741573
153
0.617708
[ "Apache-2.0" ]
polivbr/pulumi-azure-native
sdk/dotnet/MachineLearningServices/V20200101/Outputs/DataFactoryResponse.cs
2,914
C#
#region License // Copyright (c) 2011, ClearCanvas Inc. // All rights reserved. // http://www.clearcanvas.ca // // This software is licensed under the Open Software License v3.0. // For the complete license, see http://www.clearcanvas.ca/OSLv3.0 #endregion using System.Runtime.Serialization; using ClearC...
26.344828
74
0.698953
[ "Apache-2.0" ]
SNBnani/Xian
Ris/Application/Extended/Common/Admin/ProtocolAdmin/AddProtocolGroupResponse.cs
764
C#
using Microsoft.VisualStudio.TestTools.UnitTesting; using Xamarin.Forms.DataGrid.UnitTest.Common; namespace Xamarin.Forms.DataGrid.UnitTest { [TestClass] public class SortingIconTest { [ClassInitialize] public static void Init(TestContext context) { MockPlatform.MockForms.Init(); } [TestMethod] pub...
26.585366
73
0.690214
[ "MIT" ]
BenCamps/Xamarin.Forms.DataGrid
Xamarin.Forms.DataGrid.UnitTest/SortingIconTest.cs
3,272
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> //--...
34.870968
151
0.587419
[ "MIT" ]
SammyKrosoft/Get-EventsFromEventLogs
VisualStudio2017WPFDesign/Launch-EventsCollector-WPF/Launch-EventsCollector-WPF/Properties/Settings.Designer.cs
1,083
C#
using Android.App; using Android.Content; using Android.Support.CustomTabs; using Plugin.CurrentActivity; using Plugin.Share.Abstractions; using System; using System.Collections.Generic; using System.Threading.Tasks; namespace Plugin.Share { /// <summary> /// Implementation for Feature /// </summary> p...
35.81875
130
0.557494
[ "MIT" ]
AndreiMisiukevich/SharePlugin
Share/Share.Plugin.Android/ShareImplementation.cs
5,731
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated from a template. // // Manual changes to this file may cause unexpected behavior in your application. // Manual changes to this file will be overwritten if the code is regenerated....
41.769231
128
0.60221
[ "Apache-2.0" ]
ioanabirsan/advanced-topics-net
project-2/CarServiceProject/CarServiceProject/Client.cs
1,629
C#
using System; using System.Collections.Generic; using System.Data; using System.Globalization; using System.IO; using System.Reflection; namespace omopcdmlib.Utils { //https://stackoverflow.com/questions/23225973/parsing-tab-delimited-text-files public class ReadCdmFile<T> { public List<T> Read(s...
36.872093
114
0.483759
[ "MIT" ]
dermatologist/omopcdm-dot-net
omopcdmlib/Utils/ReadCdmFile.cs
3,171
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class ClaseNormal { int numero1; int numero2; public ClaseNormal(int param1, int param2) { numero1 = param1; numero2 = param2; } public ClaseNormal(float param1, float param2) { ...
17.486486
63
0.587326
[ "MIT" ]
diegohdezr/repositorioclaseebac
ProyectoInicialEBAC/Assets/Scripts/ClaseNormal.cs
647
C#
using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; namespace ServiceHealthStatus { public class Startup { public Startup(IConfiguration configuration) ...
28.345455
106
0.585632
[ "MIT" ]
myexplore/mycart
Sources/Services/Common/ServiceHealthStatus/Startup.cs
1,559
C#
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace ElectricStore.Models; public class Customer { public int CustomerId { get; set; } [Display(Name = "First Name")] [Required(ErrorMessage = "Please enter your first name")] public string FirstName...
31.176471
82
0.680189
[ "MIT" ]
EricCote/20486D-New
Allfiles/Mod12/Labfiles/01_ElectricStore_end/ElectricStore/Models/Customer.cs
1,062
C#
#if !NETSTANDARD_TODO using System.Collections.Generic; using System.Threading.Tasks; using AWSUtils.Tests.StorageTests; using Orleans.Providers.Streams; using Orleans.Storage; using Orleans.TestingHost; using OrleansAWSUtils.Streams; using UnitTests.StreamingTests; using Xunit; using Orleans.Runtime.Configuration; us...
38.803109
147
0.665242
[ "MIT" ]
flint-stone/orleans
test/AWSUtils.Tests/Streaming/SQSStreamTests.cs
7,491
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.269 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //----...
45.673469
190
0.584004
[ "MIT" ]
dbgate/datadmin
Plugin.sqlite/SqlScripts.Designer.cs
4,478
C#
using System; using System.Collections.Generic; using System.Runtime.CompilerServices; using Xamarin.Forms; using Xamarin.Forms.Xaml; using XF.Material.Forms.Resources; namespace XF.Material.Forms.UI.Internals { /// <summary> /// Internal base class of selection controls such as <see cref="MaterialCheckbox"/>...
40.218638
236
0.623028
[ "MIT" ]
Arbalets/XF-Material-Library
XF.Material/UI/Internals/BaseMaterialSelectionControl.xaml.cs
11,223
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 namespace DotNetNuke.Services.Upgrade.InternalController.Steps { using System; using System.IO; using Sys...
40.095238
224
0.573898
[ "MIT" ]
Mariusz11711/DNN
DNN Platform/Library/Services/Upgrade/Internals/Steps/InstallSiteStep.cs
7,580
C#
// // EndpointDispatcher.cs // // Author: // Atsushi Enomoto <atsushi@ximian.com> // // Copyright (C) 2005-2010 Novell, Inc. http://www.novell.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 th...
33.961722
175
0.718794
[ "Apache-2.0" ]
AvolitesMarkDaniel/mono
mcs/class/System.ServiceModel/System.ServiceModel.Dispatcher/EndpointDispatcher.cs
7,098
C#
using System.Threading.Tasks; using NServiceBus; #region InjectingDependency public class MyHandler : IHandleMessages<MyMessage> { MyService myService; public MyHandler(MyService myService) { this.myService = myService; } public Task Handle(MyMessage message, IMessageHand...
20.904762
74
0.671982
[ "Apache-2.0" ]
A-Franklin/docs.particular.net
samples/containers/autofac/Autofac_6/Sample/MyHandler.cs
421
C#
using System; using System.Data.Entity; using System.Data.Entity.Migrations; using System.Diagnostics; using System.Linq; using System.Linq.Expressions; using AutoMapper.QueryableExtensions; using AutoMapper.UnitTests; using Shouldly; using Xunit; namespace AutoMapper.IntegrationTests.Net4 { public class NestedEx...
36.140127
141
0.550405
[ "MIT" ]
AutoMapper/AutoMapper
src/IntegrationTests/ExplicitExpansion/NestedExplicitExpand.cs
5,676
C#
using System; using System.Collections.Generic; using System.Security.Cryptography; using System.Text; namespace Rye.Security { /// <summary> /// Hash操作类 /// </summary> public static class HashManager { /// <summary> /// 获取字符串的MD5哈希值,默认编码为UTF8 /// </summary> /// <pa...
30.68
78
0.4691
[ "MIT" ]
JolyneStone/Monica
src/Core/Rye/Security/HashManager.cs
4,031
C#
using System; using System.Net; using SDL2; namespace RogueLibTerminal { public static class Terminal { internal static TerminalWindow TerminalInstance; public static int WindowWidth { get => TerminalInstance.WindowWidth; set => TerminalInstance.WindowWidth = v...
27.887805
84
0.569529
[ "MIT" ]
lunacys/RogueLibTerminal
Source/RogueLibTerminal/Terminal.cs
5,719
C#
using System.ComponentModel; namespace Sample.XrmToolBox.TestPlugin { partial class ControlTesterPluginControl { /// <summary> /// Variable nécessaire au concepteur. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// ...
63.271441
186
0.669024
[ "MIT" ]
jamesnovak/xrmtb.XrmToolBox.Controls
XrmToolBox.Controls.TestPlugin/ControlTesterPluginControl.designer.cs
210,264
C#
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using System; using System.Collections.Generic; using System.IO; using Agent.Sdk; using Microsoft.TeamFoundation.DistributedTask.Pipelines; using Microsoft.VisualStudio.Services.Agent.Util; using Xunit; namespace Microsoft.VisualStudio.Service...
51.941176
177
0.588807
[ "MIT" ]
amjn/azure-pipelines-agent
src/Test/L0/Util/RepositoryUtilL0.cs
21,192
C#
using System.Linq; using System.Net; using System.Net.Http; using System.Threading.Tasks; using FluentAssertions; using JsonApiDotNetCore.Serialization.Objects; using TestBuildingBlocks; using Xunit; namespace JsonApiDotNetCoreExampleTests.IntegrationTests.HostingInIIS { public sealed class HostingTests : IClassFi...
49.358974
143
0.679481
[ "MIT" ]
sgryphon/JsonApiDotNetCore
test/JsonApiDotNetCoreExampleTests/IntegrationTests/HostingInIIS/HostingTests.cs
5,775
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 04:45:17 UTC // </auto-generated> //--------------...
33.646154
102
0.568358
[ "MIT" ]
GridProtectionAlliance/go2cs
src/go-src-converted/reflect/deepequal_visitStruct.cs
2,187
C#
using Settings; namespace Client.UI.ViewModel { public class UI_EditAvatar: UIBase<View_EditAvatar> { public string Url { get; private set; } private Data_GameRecord Record { get; set; } protected override void OnInit(IUIParams p) { base.OnInit(p); View...
29.595238
98
0.507643
[ "MIT" ]
Noname-Studio/ET
Unity/Assets/Scripts/Client/UI/ViewModel/UI_EditAvatar.cs
1,245
C#
// Copyright (c) .NET Foundation and contributors. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.Collections.Generic; using System.Collections.Immutable; using System.IO; using System.Linq; using System.Management....
37.277628
140
0.600145
[ "MIT" ]
tommymarto/interactive
src/Microsoft.DotNet.Interactive.PowerShell/PowerShellKernel.cs
13,832
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.Collections.Generic; using System.ComponentModel.Composition.Factories; using System.ComponentModel.Composition.Hosting; using System.ComponentModel.Composition.Primitiv...
31.193878
98
0.563188
[ "MIT" ]
belav/runtime
src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/ComposablePartExtensibilityTests.cs
9,171
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("Cl...
38.25
84
0.75236
[ "MIT" ]
davidsh/corefx-net-tls
ClientCertificateTests/ClientCertificateTests/Properties/AssemblyInfo.cs
1,380
C#
//------------------------------------------------------------------------------ // <auto-generated> // 此代码已从模板生成手动更改此文件可能导致应用程序出现意外的行为。 // 如果重新生成代码,将覆盖对此文件的手动更改。 // author Taihe // </auto-generated> //------------------------------------------------------------------------------ using TaiheSystem.CBE.Api.M...
36.235772
154
0.48665
[ "Apache-2.0" ]
AboutZld/Taihe.CBE.API
TaiheSystem.CBE.Api.Interfaces/Service/BaseFactoryService.cs
4,605
C#