content
stringlengths
5
1.04M
avg_line_length
float64
1.75
12.9k
max_line_length
int64
2
244k
alphanum_fraction
float64
0
0.98
licenses
list
repository_name
stringlengths
7
92
path
stringlengths
3
249
size
int64
5
1.04M
lang
stringclasses
2 values
/* **************************************************************************** * * Copyright (c) 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...
40.885417
114
0.584713
[ "Apache-2.0" ]
Bhaskers-Blu-Org2/poshtools
ReplWindow/Repl/ResizingAdorner.cs
3,927
C#
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** 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; names...
27.961538
88
0.664374
[ "ECL-2.0", "Apache-2.0" ]
JakeGinnivan/pulumi-aws
sdk/dotnet/AppMesh/Inputs/RouteSpecTcpRouteArgs.cs
727
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. using System; using System.Collections.Generic; using System.Diagnostics; using System.Runtime.CompilerServic...
36.830565
272
0.557189
[ "Apache-2.0" ]
AnandEmbold/ironpython3
Src/IronPython/Runtime/Exceptions/TraceBack.cs
11,086
C#
//----------------------------------------------------------------------- // <copyright file="DotNettyTransport.cs" company="Akka.NET Project"> // Copyright (C) 2009-2021 Lightbend Inc. <http://www.lightbend.com> // Copyright (C) 2013-2021 .NET Foundation <https://github.com/akkadotnet/akka.net> // </copyright...
45.261569
182
0.635563
[ "Apache-2.0" ]
aTiKhan/akka.net
src/core/Akka.Remote/Transport/DotNetty/DotNettyTransport.cs
22,497
C#
using Upgrade; namespace Ship { namespace SecondEdition.TIEFoFighter { public class EpsilonSquadronCadet : TIEFoFighter { public EpsilonSquadronCadet() : base() { PilotInfo = new PilotCardInfo( "Epsilon Squadron Cadet", ...
24.590909
136
0.513863
[ "MIT" ]
Arahain/FlyCasual
Assets/Scripts/Model/Content/SecondEdition/Pilots/TIEFoFighter/EpsilonSquadronCadet.cs
543
C#
// // Copyright (c) 2004-2021 Jaroslaw Kowalski <jaak@jkowalski.net>, Kim Christensen, Julian Verdurmen // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // // * Redistributions of s...
41.11039
209
0.567735
[ "BSD-3-Clause" ]
aTiKhan/NLog
src/NLog/Config/LoggingConfiguration.cs
37,986
C#
using System; namespace SolutionLauncher { public enum SlnOpenWith { Ask = 0, VisualStudio, XamarinStudio } }
13.363636
27
0.585034
[ "MIT" ]
Redth/MSSolutionLauncher
MSSolutionLauncher/SlnOpenWith.cs
149
C#
using System.Collections.Generic; using System.Linq; using UnityEngine; namespace Unity.Animations.SpringBones { public static class SpringColliderSetup { public static IEnumerable<System.Type> GetColliderTypes() { return new System.Type[] { ...
36.092593
121
0.623397
[ "MIT" ]
cyriaca/UnityChanSpringBone
Runtime/Setup/SpringColliderSetup.cs
1,951
C#
/* * LeagueClient * * 7.23.209.3517 * * OpenAPI spec version: 1.0.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git */ using System; using System.Text; using System.Collections.Generic; using System.Runtime.Serialization; using Newtonsoft.Json; using System.ComponentModel.DataAnnotations...
39.339181
215
0.588227
[ "MIT" ]
wildbook/LeagueClientApi
Model/LolLobbyAutoFillQueueDto.cs
6,727
C#
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** 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; names...
42.069767
274
0.70702
[ "ECL-2.0", "Apache-2.0" ]
RafalSumislawski/pulumi-aws
sdk/dotnet/NetworkFirewall/Outputs/RuleGroupRuleGroupRulesSourceStatefulRule.cs
1,809
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; namespace PaperMarioBattleSystem { public class SpikedGoomba : Goomba, ITattleableEntity { public Spike...
50.472222
154
0.630985
[ "Unlicense" ]
kimimaru4000/PaperMarioBattleSystem
PaperMarioBattleSystem/PaperMarioBattleSystem/Classes/BattleEntities/Enemies/SpikedGoomba.cs
3,636
C#
using eFormCore; using eFormSDK.Wrapper; using RGiesecke.DllExport; using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; namespace Microting.eForm.Wrapper { public static class AdminToolsW { private s...
27.910256
132
0.517226
[ "MIT" ]
microting/eform-sdk-delphi-wrapper
eFormSDK.Wrapper/AdminToolsW.cs
2,179
C#
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Text.RegularExpressions; using System.Threading; using System.Windows.Forms; namespace JRunner.Panels { public partial class XeBuildPanel : UserControl { List<String> patches = new List<string>(new ...
38.662901
252
0.511402
[ "MIT" ]
Octal450/J-Runner-with-Extras
J-Runner/Panels/XeBuildPanel.cs
65,033
C#
using System; using System.Collections.Generic; using System.ComponentModel.Composition; using System.Dynamic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Vulcan.Wpf.Core { /// <summary> /// Imports View subclasses and distributes them. /// This class is imported and used...
30.586957
114
0.624023
[ "MIT" ]
Vanlalhriata/Vulcan.Wpf
Vulcan.Wpf/Vulcan.Wpf.Core/View/ViewLocator.cs
1,409
C#
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ /...
37.5625
153
0.575707
[ "MIT" ]
MIchaelMainer/GraphAPI
src/Microsoft.Graph/Requests/Generated/GroupConversationsCollectionResponse.cs
1,202
C#
using Newtonsoft.Json; namespace Bt.IPay.Net.Responses.GetOrderStatusExtended { public class BindingInfo { /// <summary> /// Numărul clientului (ID) în sistemul comerciantului, transferat în timpul înregistrării comenzii. /// Disponibil doar pentru comercianții cu drepturi corespunzăto...
35
108
0.651701
[ "Apache-2.0" ]
sibies/Bt.IPay.Net
src/Bt.IPay.Net/Responses/GetOrderStatusExtended/BindingInfo.cs
750
C#
namespace SKIT.FlurlHttpClient.Wechat.Work.Models { /// <summary> /// <para>表示 [POST] /cgi-bin/agent/set_workbench_data 接口的响应。</para> /// </summary> public class CgibinAgentSetWorkbenchDataResponse : WechatWorkResponse { } }
25
73
0.68
[ "MIT" ]
OrchesAdam/DotNetCore.SKIT.FlurlHttpClient.Wechat
src/SKIT.FlurlHttpClient.Wechat.Work/Models/CgibinAgent/Workbench/CgibinAgentSetWorkbenchDataResponse.cs
268
C#
using System; using System.Collections.Generic; using System.Threading.Tasks; using Apollo.Domain.Entity; using Apollo.Persistence.FluentEntity; using Apollo.Persistence.FluentEntity.Interfaces.Shared; using Apollo.Persistence.Util; using Apollo.Repository.Interfaces; using Apollo.Util; using Microsoft.Extensions.Conf...
50.606264
280
0.57398
[ "MIT" ]
EnvyIT/apollo
Apollo/Apollo.Repository.Test/RepositoryHelper.cs
22,623
C#
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ /...
45.911765
153
0.660474
[ "MIT" ]
GeertVL/msgraph-beta-sdk-dotnet
src/Microsoft.Graph/Generated/requests/AndroidForWorkScepCertificateProfileManagedDeviceCertificateStatesCollectionResponse.cs
1,561
C#
namespace Coimbra.Model { /// <summary> /// An ordered string. /// </summary> public class OrderedString { /// <summary> /// Initializes a new instance of the <see cref="OrderedString"/> class. /// </summary> /// <param name="position">Position this string should be o...
25.766667
85
0.514877
[ "MIT" ]
EnableIrelandAT/Coimbra
ProjectCoimbra.UWP/Project.Coimbra.Model/OrderedString.cs
773
C#
// Licensed to Elasticsearch B.V under one or more agreements. // Elasticsearch B.V licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information using System; using System.Collections.Generic; using System.Linq; using System.Text; using Elastic.Transport; usi...
37.2749
124
0.757696
[ "Apache-2.0" ]
Jiasyuan/elasticsearch-net
tests/Tests/Indices/MappingManagement/GetMapping/GetMappingApiTest.cs
9,356
C#
using System.Drawing; using System.Windows.Forms; using System.Windows.Forms.DataVisualization.Charting; namespace CsSolution { public partial class FormMain : Form { private const int numberOfPointsToGenerate = 100; private readonly Model solution; public FormMain() { ...
29.83871
66
0.611892
[ "MIT" ]
mohenjo/AlgorithmTraining
RosettaCode/ConstrainedRandomPointsOnACircle/CsSolution/FormMain.cs
927
C#
using System.Collections.Generic; namespace StrategyPattern_EXER { public class AgeComparator : IComparer<Person> { public int Compare(Person first, Person second) { return first.Age.CompareTo(second.Age); } } }
21.75
55
0.643678
[ "MIT" ]
mayapeneva/C-Sharp-OOP-Advanced
03.IteratorsAndComparators/StrategyPattern_EXER/AgeComparator.cs
263
C#
//------------------------------------------------------------------------------ // <generado automáticamente> // Este código fue generado por una herramienta. // // Los cambios en este archivo podrían causar un comportamiento incorrecto y se perderán si // se vuelve a generar el código. // </generado aut...
31.125
95
0.467871
[ "MIT" ]
jled7/HADS
WebApplication3/Correcto.aspx.designer.cs
506
C#
using System; using Octopus.Client.Model; namespace Octopus.Client.Repositories { public interface IUserRolesRepository : IFindByName<UserRoleResource>, IGet<UserRoleResource>, ICreate<UserRoleResource>, IModify<UserRoleResource> { } class UserRolesRepository : BasicRepository<UserRoleResource>, I...
27.705882
151
0.711253
[ "Apache-2.0" ]
roederja/OctopusClients
source/Octopus.Client/Repositories/UserRolesRepository.cs
471
C#
// Copyright (c) Microsoft. All rights reserved. // Copyright (c) Denis Kuzmin <x-3F@outlook.com> github/3F // Copyright (c) IeXod contributors https://github.com/3F/IeXod/graphs/contributors // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using Syste...
49.939256
219
0.553424
[ "MIT" ]
3F/IeXod
src/Deprecated/Conversion/ProjectFileConverter.cs
197,310
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Security.Cryptography.X509Certificates; using System.Text; using Azure.Core; using Azure.Identity; using Microsoft.Ex...
36.90932
150
0.524193
[ "MIT" ]
v-kaifazhang/azure-sdk-for-net
sdk/extensions/Microsoft.Extensions.Azure/src/Internal/ClientFactory.cs
14,655
C#
using Xunit; namespace Algorithm.BasicDataStructure { public class PriorityQueueTest { [Fact] void PriorityQueue() { var pq = new PriorityQueue<int>(); pq.Enqueue(5); pq.Enqueue(1); pq.Enqueue(7); pq.Enqueue(3); ...
23.04
46
0.486111
[ "MIT" ]
AreTrash/CompetitiveProgrammingSnippets
CompetitiveProgrammingSnippets.Test/Algorithm/BasicDataStructure/PriorityQueueTest.cs
578
C#
using System; using System.Collections.Generic; using System.ComponentModel; using Mirror.RemoteCalls; using UnityEngine; namespace Mirror { public enum SyncMode { Observers, Owner } /// <summary>Base class for networked components.</summary> [AddComponentMenu("")] [RequireComponent(typeof(NetworkIden...
42.410437
268
0.5943
[ "MIT" ]
Crotshot/FYP
Assets/Mirror/Runtime/NetworkBehaviour.cs
30,069
C#
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.ModelBinding; using Newtonsoft.Json; namespace Frogvall.AspNetCore.ApiUtilities.ExceptionHandling { public sealed class ApiError { public const string ModelBindingErrorMessage = "Invalid parameters."; [JsonConstructor] pub...
34.684211
113
0.633283
[ "MIT" ]
Frogvall/AspNetCoreApiUtilities
src/AspNetCoreApiUtilities/ExceptionHandling/ApiError.cs
1,979
C#
using Microsoft.Extensions.Configuration; using Castle.MicroKernel.Registration; using Abp.Events.Bus; using Abp.Modules; using Abp.Reflection.Extensions; using InventoryManagementSystem.Configuration; using InventoryManagementSystem.EntityFrameworkCore; using InventoryManagementSystem.Migrator.DependencyInjection; na...
37.291667
138
0.716201
[ "MIT" ]
farazahmed879/Inventory-Management-System
aspnet-core/src/InventoryManagementSystem.Migrator/InventoryManagementSystemMigratorModule.cs
1,790
C#
using System; using System.Collections.Generic; namespace ReCache { public class TupleComparer<TItem1, TItem2> : IEqualityComparer<Tuple<TItem1, TItem2>> { private IEqualityComparer<TItem1> _item1Comparer; private IEqualityComparer<TItem2> _item2Comparer; public TupleComparer() { } public TupleCompa...
27.75
135
0.718601
[ "MIT" ]
jfbosch/recache
ReCache/TupleComparer.cs
1,889
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.958333
80
0.656405
[ "MIT" ]
zihasz/NetworkingUtilities
NetworkingUtilities/obj/Debug/netstandard2.0/NetworkingUtilities.AssemblyInfo.cs
1,007
C#
using System; using System.Text; using System.Net; using Newtonsoft.Json; using System.Threading.Tasks; using System.IO; namespace KODIRemoteController.Model { class JsonRpcClient { private JsonrpcDefaultOption _option; public JsonRpcClient(string host) { _option = new Jsonr...
33.759259
113
0.599561
[ "Apache-2.0" ]
shellywu/KODIController
KODIRemoteController/Model/JsonRpcClient.cs
1,823
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.IO; using System.Linq; using System.Xml.Linq; using NuGet.Configuration; using NuGet.Test.Utility; using Xunit; namespace Do...
41.029167
180
0.547273
[ "Apache-2.0" ]
BlackGad/NuGet.Client
test/NuGet.Core.FuncTests/Dotnet.Integration.Test/DotnetSourcesTests.cs
19,694
C#
using System; using System.Threading.Tasks; using Blockcore.Builder; using Blockcore.Builder.Feature; using Xunit; namespace Blockcore.Tests.Builder.Feature { public class FeatureCollectionTest { [Fact] public void AddToCollectionReturnsOfGivenType() { var collection = new ...
27.952381
115
0.58887
[ "MIT" ]
Botcoin-Abacus/blockcore
src/Tests/Blockcore.Tests/Builder/Feature/FeatureCollectionTest.cs
1,763
C#
/* * [The "BSD license"] * Copyright (c) 2011 Terence Parr * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * ...
41.537037
115
0.703968
[ "BSD-3-Clause" ]
antlr/antlrcs
Antlr4.StringTemplate/Misc/AttributeNotFoundException.cs
2,245
C#
using System; class PrimeCheck { static void Main() { int N = int.Parse(Console.ReadLine()); var isPrime = "true"; if (1 < N && N <= 100) { for (int i = 2; i < N; i++) { if (N % i == 0) { isPrime = "fal...
18.807692
46
0.337423
[ "MIT" ]
DobrinStefkin/HomeworkThirdLecture
PrimeCheck/PrimeCheck.cs
491
C#
/*************************************************************************************************************************************** * Copyright (C) 2001-2012 LearnLift USA * * Contact: Learnlift USA, 12 Greenway Plaza, Suite 1510, Houston, Texas 77046, support@memorylifter.com * * ...
31.225806
137
0.527548
[ "MIT" ]
hmehr/OSS
MemoryLifter/Development/Current/SecurityAdminSuite/StringEditor.xaml.cs
2,915
C#
// *********************************************************************** // Assembly : MPT.CSI.OOAPI // Author : Mark Thomas // Created : 11-18-2018 // // Last Modified By : Mark Thomas // Last Modified On : 11-21-2018 // ********************************************************************...
40.385542
170
0.554893
[ "MIT" ]
MarkPThomas/MPT.Net
MPT/CSI/API/MPT.CSI.OOAPI.EndToEndTests/Core/Program/Model/Assignments/AppliedLoads/FrameLoadDistributed.cs
3,355
C#
using System.Threading; using System.Threading.Tasks; #pragma warning disable CS1998 // Async method lacks 'await' operators and will run synchronously namespace AutoSaliens.Console.Commands { [CommandVerb("checkupdate")] internal class CheckUpdateCommand : CommandBase { public override async Task...
48.027027
259
0.644907
[ "MIT" ]
Archomeda/AutoSaliens
AutoSaliens/Console/Commands/CheckUpdateCommand.cs
1,777
C#
using Warframe_WebLog.Classes.Twitter; namespace Warframe_WebLog.Classes { public class Config { public string DbAddress; public string DbPassword; public string DbTable; public string DbUsername; public string GcmKey; public string GcmPackage; public st...
24.588235
39
0.665072
[ "MIT" ]
Deathmax/wf-weblog-deathsnacks
Classes/Config.cs
420
C#
using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using Ocelot.DependencyInjection; using Ocelot.Middleware; using Ocelot.Cache.CacheManager; using System; using System.Collections....
31.270833
122
0.638241
[ "MIT" ]
bgani/dotnet-microservices
src/ApiGateways/OcelotApiGw/Startup.cs
1,501
C#
using System; using System.Configuration; using System.Data; using System.Data.SqlClient; using System.Threading.Tasks; using MassTransit; using MassTransit.Util; namespace Publisher { public class SqlLoggingPublicationObserver : IPublishObserver { public Task PrePublish<T>(PublishContext<T> context)...
38.363636
121
0.530509
[ "MIT" ]
EnterpriseProductsLP/RabbitStressTest
src/Publisher/SqlLoggingPublicationObserver.cs
3,378
C#
#pragma warning disable RECS0018 // Comparison of floating point numbers with equality operator using System; using System.Reflection; using System.Collections.Generic; using Newtonsoft.Json; using Newtonsoft.Json.Serialization; namespace Detrack.ElasticRoute { /// <summary> /// Represents a single stop in a...
35.8775
256
0.488677
[ "MIT" ]
detrack/elasticroute-dotnet
ElasticRoute/Stop.cs
14,353
C#
using System; namespace Revisao { class Program { static void Main(string[] args) { Aluno [] alunos = new Aluno[5]; var indiceAluno = 0; string opcaoUsuario = ObterOpcaoUsuario(); while (opcaoUsuario.ToUpper() != "X") { ...
34.714286
90
0.352263
[ "MIT" ]
JefAlmeida1/DigitalInnovationOne
NET C Sharp/Revisao/Program.cs
3,651
C#
// Copyright (c) Microsoft Open Technologies, Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. public class Test {}
51.5
184
0.76699
[ "Apache-2.0" ]
codemonkey85/roslyn
Src/Compilers/Test/Resources/Core/SymbolsTests/netModule/hash_module.cs
208
C#
using System; using System.Collections.Generic; using System.Text; using SmartSql.Test.Entities; using Xunit; namespace SmartSql.Test.Unit.FlexibleConvert { [Collection("GlobalSmartSql")] public class FlexibleSingleTest : FlexibleTest { protected ISqlMapper SqlMapper { get; } public Flexi...
24.166667
81
0.602759
[ "Apache-2.0" ]
Ahoo-Wang/SmartSql
src/SmartSql.Test.Unit/FlexibleConvert/FlexibleSingleTest.cs
727
C#
// // Copyright (c) Microsoft. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by appl...
39.356164
232
0.66133
[ "Apache-2.0" ]
CerebralMischief/azure-sdk-for-net
src/Search/Search.Tests/Utilities/IndexerFixture.cs
2,875
C#
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; namespace Microsoft.CodeAnalysis.ExpressionEvaluator { internal static class GeneratedMetadataNames { // This method is intende...
45.952381
160
0.693264
[ "Apache-2.0" ]
0x53A/roslyn
src/ExpressionEvaluator/Core/Source/ResultProvider/Helpers/GeneratedMetadataNames.cs
965
C#
using Its.Jenuiue.Core.Actions; using Its.Jenuiue.Core.Database; using Its.Jenuiue.Core.Models.Organization; using MongoDB.Driver; namespace Its.Jenuiue.Core.Actions.Registration { public class AddRegistrationAction : BaseActionAdd { private readonly string collName = "registrations"; public A...
30.228571
103
0.649338
[ "Apache-2.0" ]
its-software-services-jenuine/jenuine-core
jenuine-core/Actions/Registration/AddRegistrationAction.cs
1,058
C#
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Threading.Tasks; using Reinforced.Typings; using Reinforced.Typings.Ast; using Reinforced.Typings.Ast.TypeNames; using Reinforced.Typings.Fluent; using Reinforced.Typings.Generators; namespace SignalRTy...
43.360714
255
0.574088
[ "MIT" ]
mathiasi/SignalRTypeScriptHubGenerator
SignalRTypeScriptHubGenerator/SignalRTypeScriptHubGeneratorExtensions.cs
12,143
C#
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using Microsoft.CodeAnalysis.Elfie.Model.Strings; using XForm.Data; using XForm.Query; namespace XForm.Columns { /// <summary> /// SingleValu...
25.802469
149
0.584689
[ "MIT" ]
Bhaskers-Blu-Org2/elfie-arriba
XForm/XForm/Columns/SingleValueColumn.cs
2,092
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using MultiagentEngine.Pulse.Map; using Pulse.Common; using Pulse.Common.ConfigSystem; using Pulse.Common.Model.Agent; using Pulse.Common.Model.Environment; using Pulse.Common.Model.Environment.Poi; using Pulse.Common.Model.Legend; usi...
36.120253
152
0.569476
[ "MIT" ]
vladkar/pulse-project-open
Pulse.Template.Scenery/TemplateSceneryFactory.cs
5,709
C#
// Copyright 2019 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...
36.068182
89
0.672968
[ "Apache-2.0" ]
LaudateCorpus1/gapic-generator-csharp
Google.Api.Generator.Tests/ProtoTests/VoidReturn/Testing.VoidReturn.GeneratedSnippets/VoidReturnClient.VoidMethodRequestObjectSnippet.g.cs
1,589
C#
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; namespace NMaier.GetOptNet { internal sealed class EnumArgumentHandler : ArgumentHandler { private readonly ArgumentCollision collision; private readonly Dictionary<string, string> names; public EnumArgumentHan...
30
106
0.674359
[ "MIT" ]
lilggamegenius/getoptnet
Handlers/EnumArgumentHandler.cs
1,170
C#
// Author: Daniele Giardini - http://www.demigiant.com // Created: 2015/03/29 22:56 using System; using DG.Tweening.Core; using DG.Tweening.Core.Easing; using DG.Tweening.Core.Enums; using DG.Tweening.Plugins.Core; using DG.Tweening.Plugins.Options; #pragma warning disable 1591 namespace DG.Tweening.Plugins { pu...
40.40678
256
0.651846
[ "MIT" ]
JansonC/knight
knight-client/Packages/Knight-Lib/Knight.Framework.Tweening/Runtime/DOTween/Plugins/LongPlugin.cs
2,386
C#
namespace SampleEndpointApp.DomainModel; public class Author : BaseEntity { public string Name { get; set; } = null!; public string PluralsightUrl { get; set; } = null!; public string? TwitterAlias { get; set; } }
24.666667
53
0.702703
[ "MIT" ]
ScriptBox99/ApiEndpoints
sample/SampleEndpointApp/DomainModel/Author.cs
224
C#
using Sharpen; namespace android.view { /// <summary>Interface for managing the items in a menu.</summary> /// <remarks> /// Interface for managing the items in a menu. /// <p> /// By default, every Activity supports an options menu of actions or options. /// You can add items to this menu and handle clicks on y...
41.9125
167
0.674508
[ "Apache-2.0" ]
Conceptengineai/XobotOS
android/generated/android/view/Menu.cs
26,824
C#
using System.Reflection; using System.Runtime.CompilerServices; // Information about this assembly is defined by the following attributes. // Change them to the values specific to your project. [assembly: AssemblyTitle ("Logger")] [assembly: AssemblyDescription ("")] [assembly: AssemblyConfiguration ("")] [assembly: ...
42.695652
82
0.739308
[ "BSD-2-Clause" ]
apexys/RadioController
Logger/Properties/AssemblyInfo.cs
982
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...
26.775
114
0.595705
[ "Apache-2.0" ]
UpendoVentures/aws-sdk-net
sdk/src/Services/MediaPackageVod/Generated/AmazonMediaPackageVodConfig.cs
2,142
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using UnityEngine; using TownPatroller.SocketServer; using TPPacket.Packet; using TPPacket.Class; namespace TownPatroller.Client { class ConsoleClient : BaseClient { public ConsoleMode c...
39.190476
161
0.46971
[ "MIT" ]
noname0310/TownPatroller-Server
TownPatroller/Assets/Scripts/Client/ConsoleClient.cs
5,763
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...
38.762431
137
0.586659
[ "Apache-2.0" ]
FoxBearBear/aws-sdk-net
sdk/src/Services/APIGateway/Generated/Model/Internal/MarshallTransformations/CreateStageRequestMarshaller.cs
7,016
C#
using System; using Microsoft.ML; using Microsoft.ML.Data; using Microsoft.ML.Transforms; namespace Samples.Dynamic.Transforms.Categorical { public static class OneHotHashEncoding { public static void Example() { // Create a new ML context for ML.NET operations. It can be used for ...
34.755319
88
0.555862
[ "MIT" ]
GitHubPang/machinelearning
docs/samples/Microsoft.ML.Samples/Dynamic/Transforms/Categorical/OneHotHashEncoding.cs
3,269
C#
using System; using System.Collections.Generic; using Newtonsoft.Json; using Twitter.Models; namespace Twitter.App.Models.ViewModels { public class UserViewModel { [JsonProperty("user_id")] public string UserId { get; set; } [JsonProperty("status")] public string Status { get;...
29.961538
77
0.649551
[ "Apache-2.0" ]
ZJGSU-Open-Source/QQmgs
QQmgs.App/Models/ViewModels/UserViewModel.cs
1,560
C#
// ----------------------------------------------------------------------- // <copyright file="DocumentTask.cs" company="Nodine Legal, LLC"> // Licensed to Nodine Legal, LLC under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding c...
41.440559
109
0.476038
[ "Apache-2.0" ]
NodineLegal/OpenLawOffice
OpenLawOffice.Data/DBOs/Documents/DocumentTask.cs
5,928
C#
// (c) www.click2wait.net using System; using System.Text; using System.Collections.Generic; using System.Linq; using UnityEngine; using click2wait; namespace click2wait { [CreateAssetMenu(fileName = "New Buff", menuName = "Templates/New Buff", order = 999)] public partial class BuffTemplate : BaseTemplate { ...
22.04918
107
0.651301
[ "MIT" ]
Ghetaldus/click2wait-browser-game-style-engine
Scripts/Templates/BuffTemplate.cs
1,347
C#
 namespace System { partial class managemarks { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> ...
45.299065
169
0.587993
[ "MIT" ]
Rohan12e/student-mgmt-system
System/managemarks.Designer.cs
4,849
C#
// // Copyright (c) Microsoft and contributors. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unle...
31.538462
77
0.631098
[ "MIT" ]
DalavanCloud/azure-powershell
src/ResourceManager/Common/Commands.ResourceManager.Common/Generated/Models/LocationListResult.cs
1,589
C#
using System; using System.IO; using System.Windows.Forms; using System.Xml.Serialization; namespace DesctopMemo { /// <summary> /// 設定値 /// </summary> public struct MySetting { /// <summary> /// アプリケーションのコンフィグ /// </summary> public MyCONFIG CONFIG; /// <s...
28.365079
131
0.431076
[ "MIT" ]
k-110/DesctopMemo
src/DesctopMemo/CAppSetting.cs
6,137
C#
using System; using static BulletSharp.UnsafeNativeMethods; namespace BulletSharp { public class SoftRigidCollisionAlgorithm : CollisionAlgorithm { public class CreateFunc : CollisionAlgorithmCreateFunc { internal CreateFunc(IntPtr native, BulletObject owner) : base(ConstructionInfo.Null) { Initial...
30.711111
109
0.79233
[ "Apache-2.0" ]
xtom0369/BulletPhysicsForUnity
BulletSharpPInvoke/BulletSharp/SoftBody/SoftRigidCollisionAlgorithm.cs
1,382
C#
// Copyright 2017 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 ...
42.102473
259
0.597146
[ "Apache-2.0" ]
alphadude11/arcgis-runtime-samples-dotnet
src/UWP/ArcGISRuntime.UWP.Viewer/Samples/Map/SearchPortalMaps/SearchPortalMaps.xaml.cs
11,915
C#
//////////////////////////////////////////////////////////////////////////////// //NUnit tests for "EF Core Provider for LCPI OLE DB" // IBProvider and Contributors. 29.11.2020. using System; using System.Data; using System.Globalization; using System.Threading; using System.Compon...
28.741228
199
0.567374
[ "MIT" ]
ibprovider/Lcpi.EFCore.LcpiOleDb
Tests/General/Source/Work/DBMS/Firebird/V03_0_0/D3/Query/Operators/SET_001/Add/Complete/DateTime/String/TestSet_001__fields.cs
6,555
C#
using AutoMapper; using Microsoft.AspNetCore.DataProtection; using System; using System.Collections.Generic; using System.Text; using VoipProjectEntities.Application.Features.Menu.Queries.GetMenu; using VoipProjectEntities.Domain.Entities; namespace VoipProjectEntities.Application.Profiles { public class MenuVmCu...
33.735294
103
0.66347
[ "Apache-2.0" ]
Anagha1009/VoIPCustomerWebPortal-1
src/Core/VoipProjectEntities.Application/Profiles/MenuVmCustomMapper.cs
1,149
C#
/** * Copyright 2015 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...
52.746377
218
0.676879
[ "ECL-2.0", "Apache-2.0" ]
CanadaHealthInfoway/message-builder-dotnet
message-builder-release-ab-r02_04_03_imm/Main/Ca/Infoway/Messagebuilder/Model/Ab_r02_04_03_imm/Common/Merged/RecommendedDosage.cs
7,279
C#
namespace LeetCode.Naive.Problems; /// <summary> /// Problem: https://leetcode.com/problems/count-elements-with-strictly-smaller-and-greater-elements/ /// Submission: https://leetcode.com/submissions/detail/625918149/ /// </summary> internal class P2148 { public class Solution { public int Coun...
23.8
105
0.615546
[ "MIT" ]
viacheslave/algo
leetcode/c#/Problems/P2148.cs
476
C#
/* Copyright 2017 Coin Foundry (coinfoundry.org) Authors: Oliver Weichhold (oliver@weichhold.com) Olaf Wasilewski (olaf.wasilewski@gmx.de) 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 Softwar...
46.114286
104
0.745973
[ "MIT" ]
tross2015/miningcore
src/Miningcore/Blockchain/Bitcoin/DaemonResponses/GetMiningInfoResponse.cs
1,614
C#
using EmissionsLibrary; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Http; namespace EmissionsWeb { public class MeasurementsController : ApiController { public IEnumerable<string> GetIds() { var currentData = (HashSet<TransferData>)HttpCo...
26.903226
101
0.61271
[ "MIT" ]
sbannikov/csharpbmstu
2019/Homework/Teams/02/emissions-web/EmissionsWeb/MeasurementsController.cs
836
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Web.Mvc; using Microsoft.VisualStudio.TestTools.UnitTesting; using BulgarianCreators.Web; using BulgarianCreators.Web.Controllers; namespace BulgarianCreators.Web.Tests.Controllers { [TestClass] public class Hom...
23.854545
90
0.580793
[ "MIT" ]
bbojkov/ContentCreators
BulgarianCreators.Web.Tests/Controllers/HomeControllerTest.cs
1,314
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.Office.Tools.Ribbon; using KinectPowerPointControl; using PowerPoint2013Control; using ControlCommon; namespace KinectPowerPointAddIn { public partial class KinectRibbon { private void KinectRibbon_Lo...
23.833333
84
0.609557
[ "Apache-2.0" ]
becker-portilla/KinectPowerPoint2013Addin
KinectPowerPointAddIn/KinectRibbon.cs
860
C#
/* Copyright 2011 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 Licenses at http://www.opensource.org/licenses/ecl2.php http://www.g...
35.621951
95
0.610065
[ "Apache-2.0" ]
OMGasm/MCForge-Vanilla
Checktimer.cs
2,923
C#
using FluentAssertions; using MockGen.Model; using System.Collections.Generic; using Xunit; namespace MockGen.Tests.Model { public class MethodTests { [Fact] public void AddMethod_Should_set_a_unique_name_for_methods_overload() { var mock = new Mock(); ...
28.931034
78
0.57211
[ "MIT" ]
thomas-girotto/MockGen
tests/MockGen.Tests/Model/MethodTests.cs
841
C#
using System; using System.Threading; namespace NsqSharp.Utils { /// <summary> /// A WaitGroup waits for a collection of routines to finish. The main routine calls Add to set the number of routines to /// wait for. Then each of the routines runs and calls Done when finished. At the same time, Wait can be ...
33.28169
128
0.541261
[ "MIT" ]
Misiu/NsqSharp
NsqSharp/Utils/WaitGroup.cs
2,365
C#
using System; namespace Imagin.Common.Globalization { [Serializable] public enum Language { [Culture("en")] English, [Culture("es-ES")] Spanish, [Culture("fr-FR")] French, [Culture("it-IT")] Italian, [Culture("ja-JP")] Japanes...
17.315789
37
0.495441
[ "BSD-2-Clause" ]
fritzmark/Imagin.NET
Imagin.Common/Global/Language.cs
331
C#
using System; using System.IO; using System.Text.Json; using EfficientDynamoDb.DocumentModel; using EfficientDynamoDb.Internal.Extensions; namespace Benchmarks.Mocks { public static class UpdateItemResponseFactory { public static byte[] CreateResponse(Document entity) { using var st...
26.535714
60
0.606999
[ "MIT" ]
AllocZero/EfficientDynamoDb
src/Benchmarks/Mocks/UpdateItemResponseFactory.cs
743
C#
namespace Silphid.Loadzup { public enum QueuePriority { Normal, High } }
12.625
29
0.554455
[ "MIT", "BSD-3-Clause" ]
Silphid/Silphid.Unity
Sources/Loadzup/Abstractions/QueuePriority.cs
103
C#
namespace WpfTestApplication { public partial class GetMultiple { public GetMultiple() { InitializeComponent(); } } }
16.090909
37
0.519774
[ "Apache-2.0", "MIT" ]
DaveWeath/White
src/TestApplications/WpfTestApplication/Scenarios/GetMultiple.xaml.cs
169
C#
using System; using System.Collections.Generic; using System.Text; using System.IO; using System.Security.Cryptography; namespace GRGcms.API.Payment.alipaymb { /// <summary> /// 类名:RSAFromPkcs8 /// 功能:RSA解密、签名、验签 /// 详细:该类对Java生成的密钥进行解密和签名以及验签专用类,不需要修改 /// 版本:2.0 /// 修改日期:2011-05-10 /// 说明...
35.46875
121
0.50859
[ "MIT" ]
zengfanmao/mpds
LiveVideoSDK/VIMS.Cms/GRGcms.API/Payment/alipaymb/RSA.cs
14,038
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // アセンブリに関する一般情報は以下の属性セットをとおして制御されます。 // アセンブリに関連付けられている情報を変更するには、 // これらの属性値を変更してください。 [assembly: AssemblyTitle("c")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyComp...
28.621622
57
0.739377
[ "MIT" ]
yu3mars/procon
atcoder/arc/arc082/c/Properties/AssemblyInfo.cs
1,628
C#
using OpenCvSharp.Tracking; using Xunit; namespace OpenCvSharp.Tests.Tracking { public class TrackerMOSSETest : TrackerTestBase { [Fact] public void Init() { using (var tracker = TrackerMOSSE.Create()) { InitBase(tracker); } }...
19.074074
55
0.475728
[ "BSD-3-Clause" ]
AJEETX/opencvsharp
test/OpenCvSharp.Tests/tracking/TrackerMOSSETest.cs
517
C#
using System.Threading.Tasks; using Autofac; using Common; namespace MAVN.Service.AdminManagement.Domain.Services { public interface IRabbitPublisher<TMessage> : IStartable, IStopable { Task PublishAsync(TMessage message); } }
22.454545
71
0.753036
[ "MIT" ]
IliyanIlievPH/MAVN.Service.AdminManagement
src/MAVN.Service.AdminManagement.Domain/Services/IRabbitPublisher.cs
247
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.Collections.Concurrent; using System.Linq; using System...
46.351852
271
0.644926
[ "MIT" ]
Gary-Zh/SqlClient
src/Microsoft.Data.SqlClient/netfx/src/Microsoft/Data/SqlClient/SqlAuthenticationProviderManager.cs
10,012
C#
/* * Copyright 2010-2013 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...
40.691358
215
0.685983
[ "Apache-2.0" ]
jdluzen/aws-sdk-net-android
AWSSDK/Amazon.DynamoDBv2/Model/Internal/MarshallTransformations/BatchGetItemResponseUnmarshaller.cs
3,296
C#
using System; using System.Reactive.Concurrency; using System.Reactive.Disposables; using Terminal.Gui; namespace ReactiveExample { public class TerminalScheduler : LocalScheduler { public static readonly TerminalScheduler Default = new TerminalScheduler(); TerminalScheduler () { } public override IDisposable...
29.878049
91
0.710204
[ "MIT" ]
BDisp/gui.cs
ReactiveExample/TerminalScheduler.cs
1,227
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.EntityFrameworkCore.SqlServer.Internal; namespace Microsoft.EntityFrameworkCore.Metadata.Internal; /// <summary> /// This is an internal API that supports the E...
44.491935
123
0.585463
[ "MIT" ]
AraHaan/efcore
src/EFCore.SqlServer/Metadata/Internal/SqlServerIndexExtensions.cs
5,517
C#
namespace LogMeIn.Security { // TODO: what parameters are needed? public interface IUserProfileManager { bool Exists(string userName); void Add(string userName); } }
21.888889
40
0.659898
[ "MIT" ]
OdeToCode/Memflex
src/Sample.Mongo/Security/IUserProfileManager.cs
197
C#
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using ExcelUtility.Utils; namespace ExcelUtility.Impl { internal class Row : IRow { public static Row FromExisting(XElementData data, ISheetData sheetData) { return new Row(da...
34.212121
163
0.536537
[ "MIT" ]
zbra-solutions/excel-utility
ExcelUtility/Impl/Row.cs
4,518
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.AspNetCore.Authorization; using Identity.Areas.Identity.Data; using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Mvc; using Micro...
30.380435
129
0.571377
[ "MIT" ]
namchokGithub/AuthSystem
Identity/Areas/Identity/Pages/Account/ResetPassword.cshtml.cs
2,797
C#
using System.Collections.Generic; using System.Text.RegularExpressions; namespace Microsoft.Recognizers.Text.DateTime { public interface IDatePeriodExtractorConfiguration : IOptionsConfiguration { IEnumerable<Regex> SimpleCasesRegexes { get; } Regex IllegalYearRegex { get; } Regex Ye...
22.236842
78
0.630178
[ "MIT" ]
ZeroInfinite/Recognizers-Text
.NET/Microsoft.Recognizers.Text.DateTime/Extractors/IDatePeriodExtractorConfiguration.cs
1,692
C#
using System; using System.Collections.Generic; using System.Linq; using System.Security; using System.Threading; using System.Threading.Tasks; using Xunit.Abstractions; namespace Xunit.Sdk { /// <summary> /// The test assembly runner for xUnit.net v2 tests. /// </summary> public class XunitTestAssemb...
45.185629
210
0.632388
[ "Apache-2.0" ]
appveyor/xunit
src/xunit.execution/Sdk/Frameworks/Runners/XunitTestAssemblyRunner.cs
7,548
C#