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
// 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 Microsoft.Build.Framework; using Microsoft.DiaSymReader.Tools; using System; using System.Globalization; usin...
36.257143
116
0.506698
[ "MIT" ]
dseefeld/buildtools
src/Microsoft.DotNet.Build.Tasks/ConvertPortablePdbsToWindowsPdbs.cs
5,078
C#
namespace Patterns.Interpreter.Contracts { public interface IBread : IExpression { } }
15
41
0.766667
[ "MIT" ]
Xeinaemm/Patterns
Patterns/Interpreter/Contracts/IBread.cs
92
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...
33.764706
114
0.678571
[ "Apache-2.0" ]
DetlefGolze/aws-sdk-net
sdk/src/Services/MediaConnect/Generated/Model/Internal/MarshallTransformations/UpdateFailoverConfigMarshaller.cs
2,296
C#
using System; using System.Data; using System.Data.Common; using NHibernate; using NHibernate.Cfg; using NHibernate.Tool.hbm2ddl; namespace CSF.NHibernate { public class SchemaCreator { public virtual void CreateSchema(Configuration config, DbConnection connection) { if (config == ...
26.5
87
0.646226
[ "MIT" ]
csf-dev/CSF.Data.NHibernate
CSF.NHibernate5.Tests/SchemaCreator.cs
638
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. #if IGNITOR namespace Ignitor #else namespace Microsoft.AspNetCore.Components.RenderTree #endif { /// <summary> /// Types in the Microsoft.AspNe...
30.945946
111
0.649782
[ "Apache-2.0" ]
06b/AspNetCore
src/Components/Components/src/RenderTree/RenderTreeDiff.cs
1,145
C#
using FluentValidation; namespace Template.Application.TodoItems.Commands.CreateTodoItem { public class CreateTodoItemCommandValidator : AbstractValidator<CreateTodoItemCommand> { public CreateTodoItemCommandValidator() { RuleFor(v => v.Title) .MaximumLength(200) ...
24.333333
90
0.638356
[ "MIT" ]
VeselinBPavlov/web-application-templates
Clean Architecture 3.1 MVC Template/Src/Application/TodoItems/Commands/CreateTodoItem/CreateTodoItemCommandValidator.cs
367
C#
using System; using GOTO.Common; using System.Diagnostics; namespace GOTO.ConsoleTest { class Program { static void Main(string[] args) { Stopwatch sw = new Stopwatch(); int readvalue = 0; Console.WriteLine("当前时间:" + DateTime.Now); while (true) ...
37.960784
194
0.48812
[ "Apache-2.0" ]
aryice/GOTO.Segment
GOTO.ConsoleTest/Program.cs
2,146
C#
using System; using Microsoft.WindowsAzure.Storage.Table; namespace SupportAssistant { internal sealed class MessageEntity : TableEntity { public string Message { get; set; } public string Details { get; set; } public DateTime CreateTime { get; set; } public MessageEntity() ...
24.6
82
0.598374
[ "MIT" ]
MarketKernel/webmoney-business-tools
Src/SupportAssistant/MessageEntity.cs
617
C#
#region using System; using System.IO; using System.Text; using Newtonsoft.Json; using UlteriusServer.Api.Network.Messages; using UlteriusServer.Utilities; using UlteriusServer.WebSocketAPI.Authentication; using vtortola.WebSockets; #endregion namespace UlteriusServer.Api.Network.PacketHandlers { public class S...
31.25
103
0.554105
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
Codeusa/StrikeTaskManager
RemoteTaskServer/Api/Network/PacketHandlers/SettingsPacketHandler.cs
2,377
C#
using System; using DevExpress.ExpressApp.Xpo; namespace SenDev.DashboardsDemo.Blazor.Server.Services { public class XpoDataStoreProviderAccessor { public IXpoDataStoreProvider DataStoreProvider { get; set; } } }
25.666667
68
0.766234
[ "MIT" ]
tuminskiy/SenDevXafDashboards
src/Demo/SenDev.DashboardsDemo.Blazor.Server/Services/XpoDataStoreProviderAccessor.cs
233
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 Microsoft.SqlServer.TDS.ColMetadata { /// <summary> /// Metadata associated with Shiloh variable ...
27.06383
94
0.579403
[ "MIT" ]
0xced/SqlClient
src/Microsoft.Data.SqlClient/tests/tools/TDS/TDS/ColMetadata/TDSShilohVarCharColumnSpecific.cs
1,274
C#
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using System; using System.Linq; using BuildXL.Cache.ContentStore.Distributed.NuCache; using BuildXL.Cache.ContentStore.Distributed.NuCache.EventStreaming; using BuildXL.Cache.ContentStore.Interfaces.Tracing; using BuildXL.Cache.Content...
46.488189
198
0.587681
[ "MIT" ]
Microsoft/BuildXL
Public/Src/Cache/ContentStore/DistributedTest/ContentLocation/NuCache/ContentLocationEventDataSerializerTests.cs
17,712
C#
using System; using NHapi.Base; using NHapi.Base.Parser; using NHapi.Base.Model; using NHapi.Model.V27.Datatype; using NHapi.Base.Log; namespace NHapi.Model.V27.Segment{ ///<summary> /// Represents an HL7 CNS message segment. /// This segment has the following fields:<ol> ///<li>CNS-1: Starting Notification Referenc...
32.924731
113
0.677498
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
AMCN41R/nHapi
src/NHapi.Model.V27/Segment/CNS.cs
6,124
C#
/** * MIT License * * Copyright (c) 2019-2021 Manuel Bottini * * 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,...
36.65625
127
0.728048
[ "MIT" ]
ManuDev9/body-nodes-host
pc/unity/BodynodesD/Scripts/AxisConfiguration/ValInNewX_script.cs
2,348
C#
using System; using System.Collections.Generic; using System.Net.Http; using System.Text.Json; using System.Threading.Tasks; using NUnit.Framework; using SurveySolutionsClient.Apis; using SurveySolutionsClient.Exceptions; using SurveySolutionsClient.Models; namespace SurveySolutionsClient.Tests { public class Assi...
35.70283
130
0.547364
[ "MIT" ]
V-B/SurveySolutionsClient
src/SurveySolutionsClient.Tests/AssignmentsTests.cs
7,569
C#
using System; namespace Meziantou.GitLabClient.Generator { internal sealed class EntityBuilder { private readonly Action<Entity> _configure; public EntityBuilder(string name, Action<Entity> configure) { Value = new Entity(name); _configure = configure; ...
21.682927
67
0.547807
[ "MIT" ]
meziantou/Meziantou.GitLabClient
src/Meziantou.GitLabClient.Generator/Internals/EntityBuilder.cs
891
C#
/** * Copyright 2013 Canada Health Infoway, 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 * * Unless required by...
36.586207
83
0.711593
[ "ECL-2.0", "Apache-2.0" ]
CanadaHealthInfoway/message-builder-dotnet
message-builder-release-ab_r02_04_03_shr/Main/Ca/Infoway/Messagebuilder/Model/Ab_r02_04_03_shr/Domainvalue/ActMonitoringProtocolType.cs
1,061
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Data.SqlClient; using System.Configuration; using System.Data; public partial class Default : System.Web.UI.Page { SqlConnection con = new SqlConnection(Configura...
30.382166
277
0.563103
[ "MIT" ]
ParasGarg/Transport-Management-System
Web Pages/Admin Web Pages/Bus Service.aspx.cs
4,772
C#
#region Apache License Version 2.0 /*---------------------------------------------------------------- Copyright 2018 Jeffrey Su & Suzhou Senparc Network Technology Co.,Ltd. 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 ...
31.5625
97
0.589109
[ "Apache-2.0" ]
JeremyShih/WeiXinMPSDK
src/Senparc.Weixin/Senparc.Weixin/Exceptions/WeixinNullReferenceException.cs
2,156
C#
using System.Collections.Generic; using System.Runtime.CompilerServices; namespace com.spacepuppy.Collections { /// <summary> /// Tests for equality based solely on if the references are equal. This is useful for UnityEngine.Objects that overrides the default Equals /// operator returning false if it's ...
28.972222
145
0.650048
[ "Unlicense" ]
dipique/spacepuppy-unity-framework-3.0
SpacepuppyUnityFramework/Collections/ObjectReferenceEqualityComparer.cs
1,045
C#
using System; using Stardust.Interstellar; using Stardust.Interstellar.Trace; namespace Stardust.Core.Service.Web { public interface IStardustController { IRuntime Runtime { get; } bool DoInitializationOnActionInvocation { get; } string GetMethodName(Uri requestUri, string action); ...
20.75
60
0.706024
[ "Apache-2.0" ]
JonasSyrstad/Stardust
Stardust.Core.Service.Web/IStardustController.cs
415
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; using Microsof...
35.787879
135
0.590742
[ "MIT" ]
PrestigeDevop/AspNetCoreIdentityFido2Mfa
AspNetCoreIdentityFido2Mfa/Areas/Identity/Pages/Account/LoginWith2fa.cshtml.cs
3,545
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...
29.972973
113
0.733995
[ "Apache-2.0" ]
AltairMartinez/aws-sdk-unity-net
src/Services/MobileAnalytics/Generated/Model/PutEventsResponse.cs
1,109
C#
#region Copyright (c) 2015 KEngine / Kelly <http://github.com/mr-kelly>, All rights reserved. // KEngine - Toolset and framework for Unity3D // =================================== // // Filename: AppEngine.cs // Date: 2015/12/03 // Author: Kelly // Email: 23110388@qq.com // Github: https://github.com/mr-kelly/K...
32.969231
112
0.57645
[ "Apache-2.0" ]
GideonDragonHe/MyFrameWork
KSFramework/Assets/Plugins/KEngine/KEngine/CoreModules/SettingModule.cs
6,431
C#
// Copyright (c) Wiesław Šoltés. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using Dock.Model.Controls; namespace Dock.Model { /// <summary> /// Dock window contract. /// </summary> public interface IDockWindow { ...
25.648352
101
0.494859
[ "MIT" ]
ShadowDancer/Dock
src/Dock.Model/Core/IDockWindow.cs
2,339
C#
// ========================================================================== // Squidex Headless CMS // ========================================================================== // Copyright (c) Squidex UG (haftungsbeschraenkt) // All rights reserved. Licensed under the MIT license. // ===========================...
31.758389
118
0.588969
[ "MIT" ]
Jaben/squidex
backend/src/Squidex.Domain.Apps.Core.Operations/DefaultValues/DefaultValueFactory.cs
4,734
C#
/* ********************************************************************************************************** * The MIT License (MIT) * * * * Copyright (c) 2016 Hypermediasystems Ges. f. Software mbH * * Web: http://www.hypermediasystems.de * ...
46.29771
157
0.538335
[ "MIT" ]
helmuttheis/hmsspx
hmssp/SP.gen/NavigationNodeCollection.cs
6,065
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Custom.Math; namespace RayTracer2010 { public class TextureShader : Shader { Sampler tex; public vect3d specular_color = new vect3d(1, 1, 1); public double specular_coeff = 100; public...
24.382353
89
0.620024
[ "MIT" ]
AlexAlbala/Alter-Native
Examples/To do/Image synthesis/RayTracer2010/RayTracer2010/TextureShader.cs
831
C#
using nVideo.Common; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace nVideo.Codecs.MPEG12 { public class HLSFixPMT { public void fix(string file) { FileStream ra = null; ...
34.258065
106
0.41855
[ "Apache-2.0" ]
dxball/mma
nCodec/Codecs/MPEG12/HLSFixPMT.cs
4,250
C#
namespace Schema.NET { using System; using System.Runtime.Serialization; using Newtonsoft.Json; /// <summary> /// The act of interacting with another person or organization. /// </summary> [DataContract] public partial class InteractAction : Action { /// <summary> //...
25.6
67
0.607422
[ "MIT" ]
AndreSteenbergen/Schema.ORG
Source/Schema.NET/core/InteractAction.cs
512
C#
using System; using Android.App; using Android.Content.PM; using Android.Runtime; using Android.Views; using Android.Widget; using Android.OS; namespace PhotoWrap.Droid { [Activity(Label = "PhotoWrap", Icon = "@drawable/icon", Theme = "@style/MainTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges....
28.357143
186
0.687657
[ "Apache-2.0" ]
DLozanoNavas/xamarin-forms-book-samples
Chapter26/PhotoWrap/PhotoWrap/PhotoWrap.Droid/MainActivity.cs
796
C#
using System; using System.Collections.Generic; using System.Text; using System.Linq; using System.Runtime.Serialization; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using HuaweiCloud.SDK.Core; namespace HuaweiCloud.SDK.IoTDA.V5.Model { /// <summary> /// csv文件格式转换列表 /// </summary> public c...
28.555556
83
0.496887
[ "Apache-2.0" ]
huaweicloud/huaweicloud-sdk-net
Services/IoTDA/V5/Model/CsvMappings.cs
2,634
C#
/* **************************************************************************** * * Copyright (c) Microsoft Corporation. * * This source code is subject to terms and conditions of the Apache License, Version 2.0. A * copy of the license can be found in the License.html file at the root of this distribution. If ...
38.472727
98
0.699433
[ "Apache-2.0" ]
SueDou/python
Src/IronPython.Modules/Properties/AssemblyInfo.cs
2,118
C#
/* * Copyright 2010-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "l...
30.935065
108
0.623846
[ "Apache-2.0" ]
HaiNguyenMediaStep/aws-sdk-net
sdk/src/Services/CloudFront/Generated/Model/OriginSslProtocols.cs
2,382
C#
using System; namespace TestFu.Grammars { /// <summary> /// Expection class used to stop production. /// </summary> public class ProductionException : Exception { private IProduction production; /// <summary> /// /// </summary> /// <param name="production"></param> public Production...
17.515152
53
0.603806
[ "ECL-2.0", "Apache-2.0" ]
Gallio/mbunit-v2
src/mbunit/TestFu/Grammars/ProductionException.cs
578
C#
namespace ShoelessJoeWebApi.App.ApiModels.PostModels { public class PostUser : ApiUser { public string ConfirmPassword { get; set; } public bool CheckPassword() { if (Password == ConfirmPassword) { return true; } return f...
19.111111
53
0.511628
[ "MIT" ]
TClaypool00/ShoelessJoeApiV2
ShoelessJoeWebApi.App/ApiModels/PostModels/PostUser.cs
346
C#
using System; namespace BaGet.Core.Configuration { public class MirrorOptions { /// <summary> /// If true, packages that aren't found locally will be indexed /// using the upstream source. /// </summary> public bool Enabled { get; set; } /// <summar...
27.083333
74
0.544615
[ "MIT" ]
2m0nd/BaGet
src/BaGet.Core/Configuration/MirrorOptions.cs
652
C#
/* * SensorPush Public API * * This is a swagger definition for the SensorPush public REST API. Download the definition file [here](https://api.sensorpush.com/api/v1/support/swagger/swagger-v1.json). * * OpenAPI spec version: v1.0.20200327 * Contact: support@sensorpush.com * Generated by: https://github.com/swa...
37.357143
220
0.537285
[ "MIT" ]
malako/sensorpush-core
Model/Status.cs
8,368
C#
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using System.Threading.Tasks; using Bogus; using JsonApiDotNetCore.Models; using JsonApiDotNetCoreExample; using JsonApiDotNetCoreExample.Data; using JsonApiDotNetCoreExample.Models; using Newtonsoft.Json; using ...
39.192
125
0.587977
[ "MIT" ]
ngboardway/JsonApiDotNetCore
test/JsonApiDotNetCoreExampleTests/Acceptance/Spec/AttributeFilterTests.cs
9,798
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using DG.Tweening; public class MenuMove : MonoBehaviour { public float sx; public float sy; public float sz; private float x; private float y; private float z; public float time; private float scaleX; priv...
27.826087
116
0.734375
[ "MIT" ]
Dy-gtlf/BeatCluster
Assets/Script/SongSelect/MenuMove.cs
1,332
C#
using AutoFixture; using FakeItEasy; using LinkyLink.Tests.Helpers; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.Azure.WebJobs; using Microsoft.Extensions.Logging; using Newtonsoft.Json; using System.Threading; using System.Threading.Tasks; using Xunit; namespace LinkyLink.Tests { ...
38.823944
116
0.634682
[ "MIT" ]
softchris/the-urlist
backend/tests/LinkyLink.Tests/SaveLinksTests.cs
5,515
C#
using System.Text.Json.Serialization; namespace Horizon.Payment.Alipay.Response { /// <summary> /// ZolozAuthenticationCustomerFaceverifyMatchResponse. /// </summary> public class ZolozAuthenticationCustomerFaceverifyMatchResponse : AlipayResponse { /// <summary> /// 是否为攻击 ...
24.913043
84
0.598604
[ "Apache-2.0" ]
bluexray/Horizon.Sample
Horizon.Payment.Alipay/Response/ZolozAuthenticationCustomerFaceverifyMatchResponse.cs
611
C#
using System; using System.Threading.Tasks; using Newtonsoft.Json; namespace TdLib { /// <summary> /// Autogenerated TDLib APIs /// </summary> public static partial class TdApi { /// <summary> /// Deletes a profile photo /// </summary> public class DeleteProfilePhoto...
28.612245
81
0.523538
[ "MIT" ]
0x25CBFC4F/tdsharp
TDLib.Api/Functions/DeleteProfilePhoto.cs
1,402
C#
 using ETLBox.Connection; using ETLBox.ControlFlow; using ETLBox.ControlFlow.Tasks; using System.Collections.Generic; namespace ETLBox.Logging { /// <summary> /// Will create the default load process table for the default database logging. /// You can then use the `StartLoadProcessTask`, `AbortLoadProcess...
48.661972
138
0.658466
[ "MIT" ]
gjvanvuuren/etlbox
ETLBox/src/Toolbox/Logging/CreateLoadProcessTableTask.cs
3,457
C#
using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Tests.Nano { /// <summary> /// Default Test /// </summary> public abstract class DefaultTest : BaseTest { /// <inheritdoc/> [TestCleanup] public override void Cleanup() { } /// <inheritdo...
17.958333
51
0.522042
[ "MIT" ]
kilnan/Nano.Library
.tests/Tests.Nano/DefaultTest.cs
431
C#
// Copyright (c) 2019 Jon P Smith, GitHub: JonPSmith, web: http://www.thereformedprogrammer.net/ // Licensed under MIT license. See License.txt in the project root for license information. using System.Collections.Generic; using System.Linq; using System.Runtime.CompilerServices; using DataLayer.EfCode; using DataLay...
42.148148
134
0.521675
[ "MIT" ]
TDK1964/PermissionAccessControl2
ServiceLayer/SeedDemo/Internal/HierarchicalSeeder.cs
3,416
C#
#pragma checksum "C:\Users\alptu\Source\Repos\RaspberryPi2Application\RaspberryPi2Application\App.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "88517B4EB4739F640BC2403FA7BAD903" //------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a to...
36.366667
180
0.597159
[ "MIT" ]
carpediem23/RaspberryPi2Application
RaspberryPi2Application/obj/ARM/Release/App.g.i.cs
2,184
C#
using System.Collections.Generic; using System.Linq; namespace Kata.December2017 { public class PhoneNumber { public static string CreatePhoneNumber(int[] numbers) { var areaCode = IntegerArrayToString(numbers.Take(3)); var prefix = IntegerArrayToString(numbers.Skip(3)....
29.5
85
0.625578
[ "MIT" ]
ssfcultra/Katas
KeithKatas/201712/PhoneNumber.cs
651
C#
using System; using System.Collections.Generic; using System.Data; using System.Data.Common; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Net.Sockets; using System.Security.Authentication; using System.Threading; using System.Threading.Tasks; using MySqlConnector.Core; using MySqlConnec...
40.591111
220
0.76136
[ "MIT" ]
HEF-Sharp/MySqlConnector
src/MySqlConnector/MySql.Data.MySqlClient/MySqlConnection.cs
36,532
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; /* This script is the all type Duck.cs's main script */ public abstract class Duck { public FlyBehavior flyBehavior; public QuackBehavior quackBehavior; // init you cloud setup the unique Behavior when init ...
21.638298
64
0.631268
[ "MIT" ]
qaz442200156/Design-Patterns
DesignPatterns/Assets/Scripte/DesignPatterns/StrategyPattern/Book/Base/Duck.cs
1,019
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DesignPatterm.Decorator { /// <summary> /// 抽象界面构件类:抽象构件类 /// </summary> public abstract class Component { public abstract void Display(); } }
17.823529
39
0.676568
[ "Apache-2.0" ]
hippieZhou/GofForCSharp
DesignPatterm.Decorator/Component.cs
331
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...
41.916667
81
0.627237
[ "MIT" ]
Josyas/Vetores-2.0
vetores 2.0/obj/Debug/netcoreapp3.1/vetores 2.0.AssemblyInfo.cs
1,006
C#
using System; using System.Collections.Generic; namespace UITesting.Framework.Core { public class Context { private Context() { } private static Dictionary<String, Dictionary<String, Object>> contextVariables = new Dictionary<String, Dictionary<String, Object>>(); public static void Put(String name, Ob...
24.929825
80
0.710063
[ "MIT" ]
PacktPublishing/Automted-UI-Testing-in-C-
UITesting/Framework/Core/Context.cs
1,423
C#
using System; using System.Reflection; namespace JsonTable { public abstract class BaseTable { protected string FullPath => GetType().GetCustomAttribute<TableAttribute>()?.FullPath ?? throw new Exception("cannot find TableAttribute."); protected string Key => GetType().GetCustomAt...
25
96
0.612727
[ "MIT" ]
elky84/JsonTable
JsonTable/BaseTable.cs
552
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Http; using System.Web.Routing; namespace TubeTalk { public class WebApiApplication : System.Web.HttpApplication { protected void Application_Start() { GlobalConfiguration.Configur...
20.222222
65
0.700549
[ "MIT" ]
KatVHarris/YourTube
TubeTalk/Global.asax.cs
366
C#
// ======================================== // Project Name : WodiLib // File Name : TilePathSettingPartialDeny.cs // // MIT License Copyright(c) 2019 kameske // see LICENSE file // ======================================== using System; using System.ComponentModel; using System.Runtime.Serialization; usi...
34.848485
117
0.519348
[ "MIT" ]
kameske/WodiLib
WodiLib/WodiLib/Map/Model/Internal/TilePathSettingPartialDeny.cs
4,900
C#
using System; using System.Collections.Generic; using Registration.Application.EventSourcedNormalizers; using Registration.Application.Interfaces; using AutoMapper; using AutoMapper.QueryableExtensions; using Registration.Domain.Repositories.Interfaces; using Registration.Domain.ReadModel; using CqrsFramework.Domain; ...
27.87037
103
0.648505
[ "MIT" ]
Liang-Zhinian/CqrsFrameworkDotNet
Sample/Reservation/v1/Registration/Registration.Application/Services/LocationService.cs
1,507
C#
using UnityEngine; using UnityEngine.UI; using System.Collections; using Reign; public class InputExDemo : MonoBehaviour { public Button BackButton; public Text InputText; void Update() { // bind button events BackButton.onClick.AddListener(backClicked); // ==================================== // You ca...
26.851064
95
0.663233
[ "MIT" ]
U3DC/Snaker
Assets/Plugins/Reign/DemoScenes/Scripts/InputExDemo.cs
1,264
C#
// 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 regenerated. namespace Mi...
52.727891
263
0.599923
[ "MIT" ]
imadan1996/azure-powershell
src/ConnectedMachine/generated/api/Models/Api20220310/MachineUpdateProperties.TypeConverter.cs
7,605
C#
using System; using System.Collections.Generic; namespace API_QLHSBanTru.ViewModel { public class EmployeeVm { public int EmployeeID { get; set; } public string Username { get; set; } public string Password { get; set; } public string FirstName { get; set; } public stri...
43.410256
87
0.636149
[ "MIT" ]
TuanDC3/API-QLHSBanTru
API-QLHSBanTru/API-QLHSBanTru/ViewModel/EmployeeVm.cs
1,695
C#
using System; using System.Collections.Generic; using System.Linq; namespace Orleans.Streaming.CosmosDB { /// <summary> /// Configure CosmosDB stream provider /// </summary> public class CosmosDBStreamConfigurator { internal Dictionary<string, (CosmosDBStreamOptions Options, Type...
36.6
130
0.6102
[ "MIT" ]
KevinCathcart/Orleans.CosmosDB
src/Orleans.Streaming.CosmosDB/Options/CosmosDBStreamConfigurator.cs
1,647
C#
using Mimp.SeeSharper.DependencyInjection.Abstraction; using System; using System.Collections.Generic; namespace Mimp.SeeSharper.DependencyInjection.Tag.Abstraction { public class TagDependencyContext : DependencyContext, ITagDependencyContext { public object Tag { get; } public TagDepende...
33.82
116
0.639267
[ "MIT" ]
DavenaHack/SeeSharper.DependencyInjection
src/Mimp.SeeSharper.DependencyInjection.Tag.Abstraction/TagDependencyContext.cs
1,693
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.Runtime.InteropServices; using Xunit; namespace Microsoft.CodeAnalysis.UnitTests { ...
50.146819
137
0.632596
[ "MIT" ]
06needhamt/roslyn
src/Compilers/Core/CodeAnalysisTest/RealParserTests.cs
30,742
C#
using MessagingClientMVVM.MicroMVVM; using MessagingClientMVVM.Models; using MessagingServer; using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MessagingClientMVVM.Vie...
36.77551
154
0.602109
[ "Apache-2.0" ]
topham101/MultiUserMessagingApplication
MessagingClientMVVM/ViewModels/MessageCollectionViewModel.cs
3,606
C#
using System; class Program { string x0; public Program() { x0 = ""; var x1 = ""; for (var i = 0; i < 1000; i++) { x0 += "" + i; // BAD x1 = x1 + i; // BAD var x2 = ""; x2 += x1; // GOOD } } }
14.95
38
0.307692
[ "MIT" ]
00mjk/codeql
csharp/ql/test/query-tests/Performance/StringConcatenationInLoop/StringConcatenationInLoop.cs
299
C#
using Joy.Core; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace Joy.Common.Implement { public class PcLogger : JLogger { public PcLogger() { base.LogMethods += WriteFile; if (File.Exists(LogFile)) { DateTime n = DateTime.Now; stri...
21.62069
185
0.679426
[ "MIT" ]
mind0n/hive
History/Website/Store/Joy.Common/Implement/PcLogger.cs
629
C#
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ /...
36.896552
153
0.582243
[ "MIT" ]
GeertVL/msgraph-beta-sdk-dotnet
src/Microsoft.Graph/Generated/requests/IAccessPackageSearchRequestBuilder.cs
1,070
C#
using NLua; namespace Schuster { public class TaskExtension : ILuaExtension { public void LoadExtension(Lua lua) { lua.LoadCLRPackage(); lua.DoString(@" import ('Pipeline', 'Schuster.Tasks')"); } } }
16.538462
59
0.683721
[ "MIT" ]
MarshallEvergreen/schuster
src/Pipeline/TaskExtension.cs
215
C#
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; namespace Funly.SkyStudio { // Subclass to remove templating, so we can serialize this class. [Serializable] public class BoolGroupDictionary : SerializableDictionary<string, BoolKeyframeGroup> { } }
21.785714
86
0.783607
[ "MIT" ]
Dedicatus/PhaseShifter
Assets/FunlySkyStudio/Scripts/Sky Profile/Serializable Collections/BoolGroupDictionary.cs
307
C#
using System; using System.Collections.Generic; using LudicrousElectron.GUI; using LudicrousElectron.GUI.Elements; using LudicrousElectron.GUI.Geometry; using static LunarLambda.API.Events; using LunarLambda.GUI.Menus.Controls; namespace LunarLambda.API { public static class MenuAPI { public static readonly stri...
30.36036
133
0.740356
[ "MIT" ]
JeffM2501/LunarLambda
Application/API/MenuAPI.cs
3,372
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Events; using UnityEngine.UI; using TMPro; using System; namespace VRestionnaire { public interface IQuestionPanelUI { //void SetQuestion(Question q); //bool CheckMandatory(); //void OnPanelBecameVisible(); //v...
21.640449
103
0.729491
[ "MIT" ]
alexandrovsky/VRestionnaires
VRestionnairesUnity/Assets/VRestionnaires/Scripts/UI/QuestionPanels/QuestionPanelUI.cs
1,928
C#
using System; namespace VersioningSummary { public class VersionDll { public string Name { get; set; } public Version Version { get; set; } public string ReleaseNotes { get; set; } public DateTime? DateRelease { get; set; } } }
21.076923
50
0.609489
[ "MIT" ]
ignatandrei/IsThisTaxiLegal
applications/VersioningSummary/VersionDll.cs
276
C#
using Microsoft.AspNetCore.Components.WebAssembly.Authentication; using System.Net.Http; using System.Net.Http.Json; using System.Text; using System.Text.Json; using System.Threading.Tasks; namespace blazorui { public class GraphQLAPIClient { private readonly HttpClient _httpClient; public Gr...
24.942857
105
0.576174
[ "MIT" ]
microsoft/blazor-graphql-starter-kit
blazorui/GraphQLAPIClient.cs
875
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Votorantim.Application.Base { public interface IRequest { } }
15.538462
37
0.752475
[ "MIT" ]
EduGomesTI/ChalengeVotorantim
src/Votorantim.Application/Base/IRequest.cs
204
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace SmartCloud.Mvc.Services { public interface IEmailSender { Task SendEmailAsync(string email, string subject, string message); } }
19.846154
74
0.744186
[ "MIT" ]
zhen08/SmartHomeV1
SmartCloud/SmartCloud.Mvc/Services/IEmailSender.cs
260
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; namespace vlko.core.Tools { public static class HtmlManipulation { /// <summary> /// Removes the tags. /// </summary> /// <param name="htmlInput">The HTML input.</param> /// <returns...
27.531915
105
0.691654
[ "MIT" ]
vlko/vlko
vlko.core/Tools/HtmlManipulation.cs
1,296
C#
using TraceabilityEngine.Util; using System; using System.Collections.Generic; using System.Text; namespace TraceabilityEngine.StaticData { public class ProductClaim : ITEStaticData { public string Key { get; set; } public string Name { get; set; } public static ProductClaim GetFromKe...
32.029412
78
0.61157
[ "MIT" ]
TraceabilityInternet/TraceabilityDriver
TEStaticData/ProductClaim.cs
1,091
C#
// <auto-generated /> using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage; using Microsoft.EntityFrameworkCore.Storage.Internal; using System; u...
32.633466
95
0.471127
[ "MIT" ]
heavenwing/XamarinDevOpsWeb
CDWeb/XamarinCDWeb/Data/Migrations/20171025064823_AddedEntity_MobileApp.Designer.cs
8,193
C#
using AsyncIO.ProducerConsumer.Models; using AsyncIO.ProducerConsumer.Roles; using AsyncIO.DemoConsole.Models; using System; using System.Collections.Generic; using System.Text; using System.Threading; namespace AsyncIO.DemoConsole.Roles { class HidrogenConsumer : Consumer<Hidrogen> { public override ...
22.130435
76
0.695481
[ "MIT" ]
Ritor42/AsyncIO.ProducerConsumer
AsyncIO.DemoConsole/Roles/HidrogenConsumer.cs
511
C#
using System; using System.Collections.Generic; using System.Text; namespace EdaSample.Common.Events { public abstract class DomainEvent : IDomainEvent { protected DomainEvent() { this.Id = Guid.NewGuid(); this.Timestamp = DateTime.UtcNow; } public long...
20.576923
53
0.601869
[ "MIT" ]
daxnet/edasample
src/services/EdaSample.Common/Events/DomainEvent.cs
537
C#
using DATA.Infrastructure; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SERVICES { public class EntityService // : Service<Product>, IEntityService { private static IDatabaseFactory dbf = new DatabaseFactory(); ...
21.766667
96
0.660031
[ "MIT" ]
marwenbhz/MULTITENANT
SERVICES/EntityService.cs
655
C#
// <auto-generated /> using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using NadekoBot.Core.Services.Database; namespace NadekoBot.Migrations { [DbCont...
35.488478
117
0.437885
[ "MIT" ]
PetNoire/NadekoBot
NadekoBot.Core/Migrations/20210607221225_PokemonSprite.Designer.cs
93,940
C#
/** * The MIT License * Copyright (c) 2016 Population Register Centre (VRK) * * 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 rig...
41.855263
131
0.717699
[ "MIT" ]
MikkoVirenius/ptv-1.7
test/PTV.Database.DataAccess.Tests/Translators/Organizations/OrganizationNameTextTranslatorTest.cs
3,183
C#
 using System; using System.Collections.Generic; using System.Linq; using System.Text; using Android.App; using Android.Content; using Android.OS; using Android.Runtime; using Android.Views; using Android.Widget; using Xamarin.NineOldAndroids.Views; namespace CarouselViewProjectmaster { public class MyFragment :...
25.2
117
0.724206
[ "Apache-2.0" ]
JoinauThomas/cover-flow---base
CarouselViewProject-master/MyFragment.cs
1,514
C#
#region "copyright" /* Copyright © 2016 - 2021 Stefan Berg <isbeorn86+NINA@googlemail.com> and the N.I.N.A. contributors This file is part of N.I.N.A. - Nighttime Imaging 'N' Astronomy. 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 ...
66.889251
417
0.544193
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
daleghent/NINA
NINA.Equipment/Interfaces/IToupTekAlikeCameraSDK.cs
20,539
C#
using System.Text.Json.Serialization; namespace Forms.Infrastructure.CloudFoundry.Models { public class Credentials { [JsonPropertyName("host")] public string Host { get; set; } [JsonPropertyName("password")] public string Password { get; set; } [JsonPropertyName...
28.875
50
0.614719
[ "Apache-2.0" ]
mod-veterans/digital-service-web-app
Forms.Infrastructure/CloudFoundry/Models/Credentials.cs
462
C#
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.ApplicationParts; using Microsoft.AspNetCore.Mvc.Controllers; using System; using System.Collections.Generic; using System.Linq; using System.Reflection; namespace Shriek.ServiceProxy.Http.Server.Internal { internal class ServiceControllerFeatureProvi...
31.114286
180
0.584481
[ "MIT" ]
alexinea/shriek-fx
src/Shriek.ServiceProxy.Http.Server/Internal/ServiceControllerFeatureProvider.cs
2,180
C#
using System.ComponentModel.DataAnnotations; namespace Amazon.Kinesis.Firehose; public sealed class ListDeliveryStreamsRequest { [StringLength(64)] public string? DeliveryStreamType { get; init; } public string? ExclusiveStartDeliveryStreamName { get; init; } public int? Limit { get; ini...
20.944444
67
0.721485
[ "MIT" ]
TheJVaughan/Amazon
src/Amazon.Kinesis.Firehose/Actions/ListDeliveryStreamsRequest.cs
379
C#
using Newtonsoft.Json; using System; namespace AdelaideFuel.Shared { public class SiteDto : ISite { [JsonProperty("S")] public int SiteId { get; set; } [JsonProperty("A")] public string Address { get; set; } [JsonProperty("N")] public string Name { get; set; }...
25.26087
55
0.562823
[ "MIT" ]
dmariogatto/adelaidefuel
src/AdelaideFuel.Shared/Models/Api/SiteDto.cs
2,326
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Api.ViewModel { public class UserInfo { public string Id { get; set; } public string Nom { get; set; } } }
18.357143
40
0.626459
[ "Apache-2.0" ]
Schlagadiguenflu/confluences-teletravail
src/Api/ViewModel/UserInfo.cs
259
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using RimWorld; using UnityEngine; using Verse; using Verse.Sound; using HugsLib.Utils; namespace RimWorldOnlineCity.UI { public class Dialog_SelectThingDef : Window { public Action PostCloseAction; public Thi...
32.373626
148
0.609301
[ "Apache-2.0" ]
PsyPatron/OnlineCity
Source/RimWorldOnlineCity/UI/Dialog_SelectThingDef.cs
2,958
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace TPP.Core.Data.Entities { [Table("Note")] public class Note : EntityBase { [Requir...
23.277778
60
0.689737
[ "MIT" ]
Bhaskers-Blu-Org2/SPP_Public
src/api/Data/TPP.Core.Data/Entities/Note.cs
419
C#
/* Copyright 2010 MCLawl Team - Written by Valek (Modified for use with MCForge) Dual-licensed under the Educational Community License, Version 2.0 and the GNU General Public License, Version 3 (the "Licenses"); you may not use this file except in compliance with the Licenses. You may obtain a copy of the Licens...
39.901961
112
0.61769
[ "Unlicense" ]
MCForge/MCForge-Vanilla-Redux
Commands/CmdAlive.cs
2,035
C#
// ----------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Reflection; using Nova.Expressions; using Nova.Parser; using BlockExpression = Nova.Expressions.BlockExpression; // <copy...
42.717172
114
0.581934
[ "Apache-2.0" ]
chaoticvoid/Nova
Nova/Runtime/NovaNativeFunction.cs
4,229
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...
28.897959
112
0.578037
[ "Apache-2.0" ]
SaschaHaertel/AmazonAWS
sdk/src/Services/ServiceCatalog/Generated/Model/DescribeProductRequest.cs
2,832
C#
using FluentValidation; using FluentValidation.Results; using iRLeagueApiCore.Communication.Models; using iRLeagueApiCore.Server.Handlers.Scorings; using iRLeagueApiCore.UnitTests.Fixtures; using iRLeagueDatabaseCore.Models; using Microsoft.AspNetCore.Identity.Test; using Microsoft.Extensions.Logging; using Moq; using...
34.113924
144
0.678664
[ "MIT" ]
SSchulze1989/iRLeagueApiCore
iRLeagueApiCore.UnitTests/Server/Handlers/Scorings/PostScoringHandlerTests.cs
2,697
C#
using System.Collections.Generic; namespace Sledge.BspEditor.Tools.Draggable { public interface IDraggableState : IDraggable { IEnumerable<IDraggable> GetDraggables(); } }
21.333333
49
0.734375
[ "BSD-3-Clause" ]
LogicAndTrick/sledge
Sledge.BspEditor.Tools/Draggable/IDraggableState.cs
192
C#
using Amazon.CodeCommit; using Amazon.CodeCommit.Model; using Amazon.KeyManagementService; using Amazon.KeyManagementService.Model; using Amazon.Lambda.Core; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net.Http; using System.Text; using YamlDot...
46.257426
253
0.61098
[ "MIT" ]
markekraus/PeanutButterChocolate
CSLambda/PBnCLambda/Function.cs
9,344
C#
using UnityEngine; public class HumanDrag : MonoBehaviour { public OutlinePostEffect OutlinePostEffect; public bool canDrag = true; private void OnMouseEnter() => OutlinePostEffect.samplerScale = 0.8f; private void OnMouseExit() => OutlinePostEffect.samplerScale = 0; private float mouseX; ...
24.969697
145
0.632282
[ "MIT" ]
Anarchy-Massacre-Studio/TheFPSGame
Assets/Script/UIScript/HumanDrag.cs
826
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 ...
69.105096
270
0.709664
[ "Apache-2.0" ]
googleads/google-ads-dotnet
tests/V9/Services/CampaignExtensionSettingServiceClientTest.g.cs
21,699
C#