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) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System....
40.382653
154
0.516614
[ "Apache-2.0" ]
ashuthinks/webnuget
src/NuGetGallery/Services/ContentService.cs
7,917
C#
using System.Collections.Generic; using Ocelot.Configuration.Builder; using Ocelot.DownstreamRouteFinder; using Ocelot.DownstreamRouteFinder.UrlMatcher; using Ocelot.DownstreamUrlCreator.UrlTemplateReplacer; using Ocelot.Responses; using Ocelot.Values; using Shouldly; using TestStack.BDDfy; using Xunit; namespace Ocel...
41.61413
154
0.593183
[ "MIT" ]
albertosam/Ocelot
test/Ocelot.UnitTests/DownstreamUrlCreator/UrlTemplateReplacer/UpstreamUrlPathTemplateVariableReplacerTests.cs
7,657
C#
using System; namespace CRM.Flexie.Fiskalizimi.examples { public class GetEic { public string GetEicCode() { try { Fiskalizimi fiskalizmi = new Fiskalizimi("Tw8Yewd1U0d4hViNzGrbLliRlteKTMBT"); string eic = fiskalizmi ....
23.24
93
0.490534
[ "MIT" ]
flexie-crm/fiskalizimi-sdk-dotnet
examples/GetEic.cs
583
C#
// ---------------------------------------------------------------------------------- // // Copyright Microsoft Corporation // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://w...
57.776316
243
0.6757
[ "MIT" ]
CHEEKATLAPRADEEP/azure-powershell
src/ResourceManager/Resources/Commands.Resources/RoleDefinitions/GetAzureRoleDefinitionCommand.cs
4,318
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> //--...
43.5
176
0.613147
[ "MIT" ]
damiennnnn/r5launch
Properties/Resources.Designer.cs
2,786
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("Ap...
38.027027
84
0.745558
[ "MIT" ]
Osv04/XamarinWordsApi
API/Api_Implement/Api_Implement/Api_Implement.iOS/Properties/AssemblyInfo.cs
1,410
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Sora.Entities.Base; using Sora.Entities.Info; using Sora.Entities.Segment; using Sora.Entities.Segment.DataModel; using Sora.Enumeration; namespace Sora.Entities { /// <summary> /// 消息类 ...
27.444444
109
0.461105
[ "Apache-2.0" ]
RingoStudio/Sora
Sora/Entities/Message.cs
7,358
C#
// Copyright (c) 2014 AlphaSierraPapa for the SharpDevelop Team // // 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, co...
34.971223
162
0.736885
[ "MIT" ]
Acorisoft/AvalonEdit
ICSharpCode.AvalonEdit/Snippets/SnippetBoundElement.cs
4,863
C#
#if HasRoutes using System; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Routing; using Microsoft.AspNetCore.Routing; #endif namespace Prometheus.Client.HttpRequestDurations.Tools { internal static class HttpContextExtensions { #if HasRoutes public sta...
28.555556
92
0.660506
[ "MIT" ]
PrometheusClientNet/Prometheus.Client.HttpRequestDurations
src/Tools/HttpContextExtensions.cs
1,028
C#
/* * Copyright (c) Contributors, http://opensimulator.org/ * See CONTRIBUTORS.TXT for a full list of copyright holders. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must r...
34.569546
180
0.533734
[ "BSD-3-Clause" ]
SignpostMarv/opensim
OpenSim/Framework/RestClient.cs
23,611
C#
using System; using System.ComponentModel; using System.Runtime.CompilerServices; using System.Windows; using JetBrains.Annotations; using OxyPlot; using OxyPlot.Series; using WaveShaper.Core.PiecewiseFunctions; namespace WaveShaper.Controls { /// <summary> /// Interaction logic for EffectPreview.xaml ///...
30.069444
156
0.581524
[ "MIT" ]
jenzy/WaveShaper
src/WaveShaper/Controls/EffectPreview.xaml.cs
2,167
C#
 using System; using System.Collections.Generic; using UnityEngine; namespace Weathering { [Concept] public class Quest_CongratulationsQuestAllCompleted { } [Concept] public class Quest_LandRocket { } [Concept] public class Quest_CollectFood_Initial { } // 解锁:探索功能 [Concept] ...
60.018657
313
0.636494
[ "MIT" ]
weatheringstudio/weatherin
Assets/Scripts/Core/MainQuest/MainQuestConfig.cs
34,452
C#
// Copyright (c) Matt Lacey Ltd. All rights reserved. // Licensed under the MIT license. [assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:Elements should be documented", Justification = "Documentation not required for dev tooling")] [assembly: System.Diagnostics...
83.166667
207
0.809619
[ "MIT" ]
DhiaaAlshamy/Rapid-XAML-Toolkit
VSIX/OptionsEmulator/GlobalSuppressions.cs
501
C#
using System; namespace VeritabaniProjesi.Models { public class ErrorViewModel { public string RequestId { get; set; } public bool ShowRequestId => !string.IsNullOrEmpty(RequestId); } }
18
70
0.675926
[ "MIT" ]
mehmeterenballi/webprogramlama-grup17-final
ViewModels/ErrorViewModel.cs
216
C#
using Android.App; namespace Debugging { public static class ProfilerExtensions { public static void Show(this Profiler profiler, Activity activity) { activity.StartActivity(typeof(ProfilerActivity)); } } }
17
68
0.755656
[ "MIT" ]
aloisdeniel/Profiler
Sources/Profiler.Droid/ProfilerExtensions.cs
223
C#
using Nager.Country.Currencies; namespace Nager.Country.CountryInfos { /// <summary> /// Madagascar /// </summary> public class MadagascarCountryInfo : ICountryInfo { ///<inheritdoc/> public string CommonName => "Madagascar"; ///<inheritdoc/> public string OfficialNa...
28.487179
70
0.563456
[ "MIT" ]
Tri125/Nager.Country
src/Nager.Country/CountryInfos/MadagascarCountryInfo.cs
1,111
C#
namespace PTDX.TypeDescription { public class TypeCategory { public TypeCategory(string name, string description = null) { Name = name; Description = description; } public string Name { get; } public string Description { get; } } }
20.666667
67
0.564516
[ "MIT" ]
PretenderX/PTDX.TypeDescription
src/PTDX.TypeDescription/TypeCategory.cs
312
C#
using Nager.Country.Currencies; namespace Nager.Country.CountryInfos { /// <summary> /// Jordan /// </summary> public class JordanCountryInfo : ICountryInfo { ///<inheritdoc/> public string CommonName => "Jordan"; ///<inheritdoc/> public string OfficialName => "Hashe...
28.666667
70
0.547287
[ "MIT" ]
OpenBoxLab/Nager.Country
src/Nager.Country/CountryInfos/JordanCountryInfo.cs
1,302
C#
/* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. */ using System; using System.Linq; using Microsoft.Xrm.Client; using Microsoft.Xrm.Client.Diagnostics; using Microsoft.Xrm.Sdk; using Microsoft.Xrm.Sdk.Client; ...
33.496454
223
0.739784
[ "MIT" ]
Adoxio/xRM-Portals-Community-Edition
Framework/Adxstudio.Xrm/Cms/Replication/WebPageReplication.cs
4,723
C#
#region License // Copyright (c) 2009, ClearCanvas Inc. // 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 source code must retain the above copyright not...
34.256757
109
0.613215
[ "Apache-2.0" ]
econmed/ImageServer20
Desktop/Tools/ToolBase.cs
5,072
C#
using System; namespace FootballTournament { internal class Program { static void Main(string[] args) { string footballTeamsName = Console.ReadLine(); int totalPlayedGames = int.Parse(Console.ReadLine()); if (totalPlayedGames == 0) { ...
30.509804
103
0.422879
[ "MIT" ]
Ivanazzz/SoftUni-Software-Engineering
CSharp-Programming-Basics/Exams/ExamPrep5/FootballTournament/Program.cs
1,558
C#
using System; using System.Collections.Generic; using System.Linq; using System.Runtime; using System.Threading.Tasks; namespace MVCTestApplication.Models { public class TodoItem // POCO Plan old c# object { public Guid Id { get; set; } public bool IsDone { get; set; } public string Ti...
21.666667
54
0.650549
[ "MIT" ]
raneem87/MVC-Template
MVCTestApplication/Models/TodoItem.cs
457
C#
namespace ClassLib039 { public class Class024 { public static string Property => "ClassLib039"; } }
15
55
0.633333
[ "MIT" ]
333fred/performance
src/scenarios/weblarge2.0/src/ClassLib039/Class024.cs
120
C#
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; using System.Threading.Tasks; using Ascon.Pilot.Common; using Ascon.Pilot.DataClasses; using Lucene.Net.QueryParsers.Classic; using Pilot.Web.Model.Search.QueryBuilder; using Pilot.Web.Model.Search.QueryBu...
44.58988
260
0.586198
[ "MIT" ]
Magicianred/Pilot.Web
Pilot.Web/Model/Search/SearchExpressionContextBase.cs
33,489
C#
/* * Erstellt mit SharpDevelop. * Benutzer: dos * Datum: 10.08.2007 * Zeit: 21:19 * * Sie können diese Vorlage unter Extras > Optionen > Codeerstellung > Standardheader ändern. */ using System; namespace StandardTemplates { /// <summary> /// Description of Dummy. /// </summary> public class Dummy { pu...
14.416667
93
0.650289
[ "BSD-3-Clause" ]
cafephin/mygeneration
src/templates/Dummy.cs
350
C#
using System; using System.Collections.Generic; using System.Configuration; using System.Data.SqlClient; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Projeto.DAL.DataContext { public class Context { protected SqlConnection con; protected SqlCommand cmd; ...
24.694444
105
0.616423
[ "MIT" ]
arkanael/ASPNET-MVC-02
ProjetoMVC/Projeto.DAL/DataContext/Context.cs
895
C#
// ================================================================================================================================= // Copyright (c) RapidField LLC. Licensed under the MIT License. See LICENSE.txt in the project root for license information. // =========================================================...
38.610879
133
0.577807
[ "MIT" ]
RapidField/solid-instruments
src/RapidField.SolidInstruments.Messaging/Message.cs
9,230
C#
namespace uTinyRipper.Classes.PhysicsManagers { public enum SolverType { ProjectedGaussSiedel = 0, TemporalGaussSiedel = 1, } }
15.222222
46
0.751825
[ "MIT" ]
Bluscream/UtinyRipper
uTinyRipperCore/Parser/Classes/PhysicsManager/SolverType.cs
139
C#
using System; using System.Threading; using System.Threading.Tasks; namespace Consul { public interface IConsulClient : IDisposable { IACLEndpoint ACL { get; } Task<IDistributedLock> AcquireLock(LockOptions opts, CancellationToken ct = default); Task<IDistributedLock> AcquireLock(strin...
54.05
153
0.718316
[ "MIT" ]
PingPongBoy/Wing
src/Wing.Consul/Consul/Interfaces/IConsulClient.cs
2,164
C#
using System.Runtime.InteropServices; namespace AR.Drone.Data.Navigation.Native.Options { [StructLayout(LayoutKind.Sequential, Pack = 1, CharSet = CharSet.Ansi)] public struct navdata_pressure_raw_t { public ushort tag; public ushort size; public int up; public short ut; ...
26.333333
75
0.675949
[ "Unlicense" ]
Alkarex/AR.Drone
AR.Drone.Data/Navigation/Native/Options/navdata_pressure_raw_t.cs
395
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Google.Common.Geometry { public struct S1Angle : IEquatable<S1Angle>, IComparable<S1Angle> { private readonly double _radians; private S1Angle(double radians) ...
24.93125
88
0.528453
[ "Apache-2.0" ]
Cryofortress/s2-geometry-library-csharp
S2Geometry/S1Angle.cs
3,991
C#
using LineageServer.Server.DataTables; using LineageServer.Server.Model; using LineageServer.Server.Model.identity; using LineageServer.Server.Model.Instance; using LineageServer.Server.Model.shop; using LineageServer.Serverpackets; using LineageServer.Server.Templates; using LineageServer.william; using System; using...
41.689655
154
0.364235
[ "Unlicense" ]
TaiwanSpring/L1CSharpTW
LineageServer/Clientpackets/C_Result.cs
32,355
C#
 namespace Notepads.Utilities { using System; using System.Threading.Tasks; using Windows.UI.Xaml.Controls; public static class ContentDialogMaker { public static async void CreateContentDialog(ContentDialog dialog, bool awaitPreviousDialog) { await CreateDialog(dialog, awaitPreviousDialog...
32.5
158
0.621978
[ "MIT" ]
Sergio0694/Notepads
src/Notepads/Utilities/ContentDialogMaker.cs
1,367
C#
using MarketingBox.AffiliateApi.Models.Partners; namespace MarketingBox.AffiliateApi.Models.Campaigns { public class Payout { public decimal Amount { get; set; } public Currency Currency { get; set; } public Plan Plan { get; set; } } }
21.153846
52
0.658182
[ "MIT" ]
MyJetWallet/MarketingBox.AffiliateApi
src/MarketingBox.AffiliateApi/Models/Campaigns/Payout.cs
277
C#
using Npgsql; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace watchtower.Services.Db.Patches { [Patch] public class Patch22AddOutfitReportTable : IDbPatch { public int MinVersion => 22; public string Name => "Add outfit report table...
30.264706
86
0.601555
[ "MIT" ]
Simacrus/honu
Services/Db/Patches/Patch22AddOutfitReportTable.cs
1,031
C#
using Bridge; namespace Bridge.Html5 { /// <summary> /// The text-transform CSS property specifies how to capitalize an element's text. It can be used to make text appear in all-uppercase or all-lowercase, or with each word capitalized. /// </summary> [Ignore] [Enum(Emit.StringNameLowerCase)] ...
29.6
200
0.584835
[ "Apache-2.0" ]
corefan/Bridge
Html5/CSS/TextTransform.cs
1,334
C#
using System; using System.Collections.Generic; using QuickGraph.Algorithms.Services; using System.Diagnostics.Contracts; using System.Linq; namespace QuickGraph.Algorithms.RandomWalks { /// <summary> /// Wilson-Propp Cycle-Popping Algorithm for Random Tree Generation. /// </summary> #if !SILVERLIGHT ...
29.870968
107
0.473974
[ "MIT" ]
UWBCoevolution/ParaMODA
QuickGraph/Algorithms/RandomWalks/CyclePoppingRandomTreeAlgorithm.cs
9,262
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...
32.379747
108
0.640735
[ "Apache-2.0" ]
ChristopherButtars/aws-sdk-net
sdk/src/Services/Synthetics/Generated/Model/DescribeCanariesLastRunResponse.cs
2,558
C#
using UnityEngine; using UnityEngine.Events; namespace ZMD { public class EnableEvent : MonoBehaviour { [SerializeField] UnityEvent Output = default; void OnEnable() { if (!locked) Output.Invoke(); } [SerializeField] bool locked; public void SetLocked(bool value) { loc...
22.866667
61
0.632653
[ "MIT" ]
Will9371/Playcraft
Assets/ZMD/[Core]/Unity Hooks/Monobehaviour/EnableEvent.cs
345
C#
using System.Threading.Tasks; using Abp.Application.Services; using Abp.Application.Services.Dto; using AbpMpaMvcEfInit.Roles.Dto; namespace AbpMpaMvcEfInit.Roles { public interface IRoleAppService : IAsyncCrudAppService<RoleDto, int, PagedResultRequestDto, CreateRoleDto, RoleDto> { Task<ListResultDto...
28.153846
120
0.784153
[ "MIT" ]
vban512/SampleBookManage2018
src/AbpMpaMvcEfInit.Application/Roles/IRoleAppService.cs
368
C#
using System; using System.IO; using UnityEngine; using UnityObject = UnityEngine.Object; namespace Monolith.Unity { public static class GameBootstrapper { public static void Run<T>(Func<GameEngineListener, GameBootOptions, T> make) where T : Game { GameBootOptions bootOp...
32.156863
135
0.580488
[ "MIT" ]
bmotamer/monolith-unity
Monolith.Unity/GameBootstrapper.cs
1,642
C#
using Microsoft.AspNetCore.Hosting; namespace Amazon.Lambda.AspNetCoreServer { /// <summary> /// ApplicationLoadBalancerFunction is the base class that is implemented in a ASP.NET Core Web API. The derived class implements /// the Init method similar to Main function in the ASP.NET Core and provides typed...
42.478261
133
0.713408
[ "Apache-2.0" ]
LukeStanislaus/aws-lambda-dotnet
Libraries/src/Amazon.Lambda.AspNetCoreServer/ApplicationLoadBalancerFunction{TStartup}.cs
979
C#
//----------------------------------------------------------------------- // <copyright file="HoconArray.cs" company="Hocon Project"> // Copyright (C) 2009-2018 Lightbend Inc. <http://www.lightbend.com> // Copyright (C) 2013-2018 .NET Foundation <https://github.com/akkadotnet/hocon> // </copyright> //---------...
30.613497
153
0.511222
[ "Apache-2.0" ]
IgorFedchenko/HOCON
src/Hocon/Impl/HoconArray.cs
4,992
C#
using System.ComponentModel.DataAnnotations; using Abp.Auditing; using Abp.Authorization.Users; using Abp.AutoMapper; using Abp.Runtime.Validation; using AbpKendoDemo.Authorization.Users; namespace AbpKendoDemo.Users.Dto { [AutoMapTo(typeof(User))] public class CreateUserDto : IShouldNormalize { [R...
25.333333
58
0.618421
[ "MIT" ]
OzBob/aspnetboilerplate-samples
KendoUiDemo/src/AbpKendoDemo.Application/Users/Dto/CreateUserDto.cs
1,216
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 // // Unless ...
40.590361
178
0.60656
[ "MIT" ]
AzPsTest/azure-powershell
src/Compute/Compute/Generated/Snapshot/Config/NewAzureRmSnapshotUpdateConfigCommand.cs
6,573
C#
using Signals.Core.Processes.Base; using Signals.Core.Processing.Input.Http; using Signals.Core.Processing.Results; using Signals.Core.Web.Http; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Signals.Core.Web.Execution.ExecutionHandlers { ...
31.366667
177
0.664187
[ "MIT" ]
EmitKnowledge/Signals
src/15 Hosting/Signals.Core.Web/Execution/ExecutionHandlers/IResultHandler.cs
943
C#
#pragma checksum "..\..\App.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "DD5537B88A062239A1D8247A0F6D51BB0BAE1B4A7E55324200E336BA84B9D667" //------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.4...
31.661972
142
0.615214
[ "BSD-3-Clause" ]
marlandolaud/presentations
WPF/MVVMFromBook/MVVMFinal/obj/Debug/App.g.cs
2,250
C#
using Microsoft.Azure.WebJobs; using Microsoft.Azure.WebJobs.Host; using System; using System.Diagnostics; using System.Threading.Tasks; using Newtonsoft.Json.Linq; using System.Text; using System.Collections.Generic; using Microsoft.Extensions.Logging; using Microsoft.Azure.EventHubs; namespace StreamingProcessor { ...
32.954545
200
0.564138
[ "MIT" ]
charlierz/streaming-at-scale
eventhubs-functions-cosmosdb/StreamingProcessor-CosmosDB-Test0/StreamingProcessor-CosmosDB/Test0.cs
2,175
C#
using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Text; namespace ImGuiNET { public static unsafe partial class ImGui { public static bool InputText( string label, byte[] buf, uint buf_size) { ...
37.049904
142
0.572968
[ "MIT" ]
code2X/ImGui.NET
ImGui.NETEx/ImGui/ImGui.Manual.cs
19,305
C#
namespace Lovys.Domain.Web.Response { public partial class AvailabilityResponse { public string Interviewer { get; set; } public AvailabilitySlot[] AvailabilityIntervals { get; set; } } }
27
69
0.680556
[ "Apache-2.0" ]
saintbr/lovys
src/Lovys/domain/Lovys.Domain/Web/Response/AvailabilityResponse.cs
218
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 NuGet.LibraryModel; using NuGet.ProjectModel; using NuGet.Versioning; namespace Microsoft...
29.343284
101
0.57528
[ "MIT" ]
filipw/cli
src/Microsoft.DotNet.ProjectModel/Graph/LockFileLookup.cs
1,968
C#
using System; using System.Collections.Generic; using System.Text; namespace SpeedRunners.Model.User { public class MAccessToken { public int TokenID { get; set; } public string PlatformID { get; set; } public string Browser { get; set; } public string Token { get; set; } ...
24.411765
47
0.626506
[ "MIT" ]
TinyMaD/SpeedRunnersLab
SpeedRunners.API/SpeedRunners.Model/User/MAccessToken.cs
417
C#
using System.Diagnostics.CodeAnalysis; using Autofac.Extensions.DependencyInjection; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Hosting; namespace CaptainHook.Api { /// <summary> /// Swagger factory /// </summary> [ExcludeFromCodeCoverage] public class SwaggerHostFactory { ...
27.074074
79
0.601915
[ "MIT" ]
eShopWorld/captain-hook
src/CaptainHook.Api/SwaggerHostFactory.cs
733
C#
namespace dnlib.DotNet { /// <summary> /// See CorHdr.h/CorElementType /// </summary> public enum ElementType : byte { /// <summary /> End = 0x00, /// <summary>System.Void</summary> Void = 0x01, /// <summary>System.Boolean</summary> Boolean = 0x...
29.174242
94
0.487406
[ "MIT" ]
Dekryptor/KoiVM-Virtualization
dnlib/src/DotNet/ElementType.cs
7,704
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; /** * Client->Server: Tell server that we joined * Server->Client: Tell the client of its ID and first playerID */ public class EventClientJoined : EventNetwork { public ConnectMenu.PlayerDescriptor[] players; public Event...
31.839286
119
0.641615
[ "Apache-2.0" ]
temportalflux/MultiPoke
Client/Assets/Scripts/Network/events/EventClientJoined.cs
1,785
C#
using System; using System.Collections.Generic; using System.Linq; using Foundation; using UIKit; namespace Ejercicio1.iOS { // The UIApplicationDelegate for the application. This class is responsible for launching the // User Interface of the application, as well as listening (and optionally responding) to...
34.40625
98
0.677566
[ "MIT" ]
djhvscf/curso-xamarin
Sesion 2/Sesion 2.2/Ejercicio1/Ejercicio1.iOS/AppDelegate.cs
1,103
C#
// // Copyright 2020 Carbonfrost Systems, Inc. (https://carbonfrost.com) // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless...
33.790698
82
0.695802
[ "Apache-2.0" ]
Carbonfrost/f-validation
dotnet/test/Carbonfrost.UnitTests.Validation/EachKeyValidatorAdapterTests.cs
1,453
C#
// Copyright 2007-2011 Chris Patterson, Dru Sellers, Travis Smith, et. al. // // 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...
43.433962
123
0.612511
[ "Apache-2.0" ]
Johavale19/Johanna
src/MassTransit/Serialization/JsonConverters/DictionaryJsonConverter.cs
2,302
C#
// This file is part of the DisCatSharp project. // // Copyright (c) 2021 AITSYS // // 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 ri...
35.901639
81
0.671233
[ "Apache-2.0", "MIT" ]
StormDevelopmentSoftware/DSharpPlusNextGen
DisCatSharp/Enums/Invite/TargetActivity.cs
2,190
C#
namespace Passion.Rover.Command.Domain.Events { public class SampleCollected : IEvent { public string Id { get; set; } public string ObjectName { get; set; } public double ObjectAmountAsGram { get; set; } public string GetEventName() { return this.G...
25.428571
54
0.575843
[ "MIT" ]
oktydag/passion
src/Passion.Rover.Command/Domain/Events/SampleCollected.cs
358
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...
34.904762
260
0.673943
[ "Apache-2.0" ]
polivbr/pulumi-azure-native
sdk/dotnet/Network/V20171001/GetVirtualNetworkGatewayAdvertisedRoutes.cs
2,199
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Cofoundry.Domain.CQS; namespace Cofoundry.Domain { public class PageVersionEntityDefinition : IDependableEntityDefinition { public const string DefinitionCode = "COFPGV"; ...
28.75
129
0.728986
[ "MIT" ]
CMSCollection/cofoundry
src/Cofoundry.Domain/Domain/Pages/Bootstrap/PageVersionEntityDefinition.cs
692
C#
/* * Copyright 2020 New Relic Corporation. All rights reserved. * SPDX-License-Identifier: Apache-2.0 */ using NewRelic.Agent.Api; using NewRelic.Agent.Configuration; using NewRelic.Agent.Core.AgentHealth; using NewRelic.Agent.Core.Api; using NewRelic.Agent.Core.BrowserMonitoring; using NewRelic.Agent.Core.CallStack; u...
48.640749
427
0.687191
[ "Apache-2.0" ]
Faithlife/newrelic-dotnet-agent
tests/Agent/UnitTests/Core.UnitTest/Wrapper/AgentWrapperApi/AgentWrapperApiTests.cs
67,562
C#
using System.Threading.Tasks; using NHSD.BuyingCatalogue.Ordering.Api.IntegrationTests.Responses; using NHSD.BuyingCatalogue.Ordering.Api.IntegrationTests.Utils; namespace NHSD.BuyingCatalogue.Ordering.Api.IntegrationTests.Requests { internal sealed class GetOrderItemsRequest { private readonly Reques...
30.853659
98
0.64664
[ "MIT" ]
nhs-digital-gp-it-futures/BuyingCatalogueOrdering
tests/NHSD.BuyingCatalogue.Ordering.Api.IntegrationTests/Requests/GetOrderItemsRequest.cs
1,267
C#
using System.Linq; using Microsoft.VisualStudio.TestTools.UnitTesting; using TensorShader; namespace TensorShaderTest.Links.BinaryArithmetric { [TestClass] public class SubTest { [TestMethod] public void ReferenceTest() { int length = 24; float[] x1val = (new float[leng...
30.589474
103
0.513076
[ "MIT" ]
tk-yoshimura/TensorShaderAVX
TensorShaderTest/Links/BinaryArithmetric/SubTest.cs
2,906
C#
namespace ChefsKiss.Web.Models.Recipes { using System.ComponentModel.DataAnnotations; using ChefsKiss.Web.Infrastructure.Attributes; using Microsoft.AspNetCore.Http; using static ChefsKiss.Common.DataConstants; public class RecipeCreateFormModel : RecipeFormModel { [Required] ...
23.157895
56
0.706818
[ "MIT" ]
martin-ali/chefs-kiss-site
ChefsKiss/Web/ChefsKiss.Web/Models/Recipes/RecipeCreateFormModel.cs
440
C#
/* ------------------------------------------------------------------------- */ // // Copyright (c) 2010 CubeSoft, 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....
43.063694
110
0.469161
[ "Apache-2.0" ]
cube-soft/Cube.Net
Tests/Rss/Sources/Models/SettingTest.cs
6,977
C#
//------------------------------------------------------------------------------ // <auto-generated> // Tento kód byl generován nástrojem. // Verze modulu runtime:4.0.30319.42000 // // Změny tohoto souboru mohou způsobit nesprávné chování a budou ztraceny, // dojde-li k novému generování kódu. // </aut...
40.481481
151
0.592864
[ "MIT" ]
FatildaIV/CS026ZakladyAlgoritmu2
CS026ZakladyAlgoritmu2/Properties/Settings.Designer.cs
1,108
C#
using AspNetStandard.Diagnostics.HealthChecks.Models; using System; using System.Net; using System.Net.Http; using System.Net.Http.Formatting; using System.Threading; using System.Threading.Tasks; using System.Web.Http; namespace AspNetStandard.Diagnostics.HealthChecks.HttpMessageHandlers { internal cl...
33.5
162
0.628622
[ "MIT" ]
AndrePostiga/WebApi.HealthChecks
src/AspNetStandard.Diagnostics.HealthChecks/HttpMessageHandlers/AuthenticationHandler.cs
2,280
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.785047
115
0.564324
[ "Apache-2.0" ]
UpendoVentures/aws-sdk-net
sdk/src/Services/CodeGuruReviewer/Generated/Model/RepositoryAssociation.cs
6,374
C#
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.CompilerServices; using System.Threading.Tasks; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using SonequaBot.Shared; namespace SonequaBot { publi...
29.969697
101
0.627907
[ "MIT" ]
Defkon1/SonequaBot
SonequaBot/Program.cs
989
C#
using System.Collections.Generic; using Newtonsoft.Json; namespace ArgentPonyWarcraftClient { /// <summary> /// A PvP leaderboard. /// </summary> public class PvpLeaderboard { /// <summary> /// Gets or sets the characters. /// </summary> [JsonProperty("rows")] ...
21.277778
59
0.592689
[ "MIT" ]
Alyzandestudent/ArgentPonyWarcraftClient
src/ArgentPonyWarcraftClient/Models/PvpLeaderboard.cs
385
C#
// Copyright (c) Daniel Crenna & Contributors. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; namespace TestKitchen.TestAdapter.Tests { public class BasicTests { public BasicTests(TestContext context) { } p...
18.414634
111
0.699338
[ "Apache-2.0" ]
danielcrenna/TestKitchen
test/TestKitchen.TestAdapter.Tests/BasicTests.cs
757
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class BossPrize : CollectableItem { public BossPrize(Vector2Int pos): base(pos) { } public override void PickUp() { base.PickUp(); if (OverworldMemory.PlayerProfile != null) { OverworldMemory.PlayerProfile.ProfileS...
21.483871
92
0.756757
[ "Apache-2.0" ]
40219124/MonsterMash
MonsterMash/Assets/Scripts/Procedural/Collectable/BossPrize.cs
666
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.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; usin...
42.712502
251
0.599344
[ "MIT" ]
abdullah1133/winforms
src/System.Windows.Forms/tests/UnitTests/System/Windows/Forms/ListBoxTests.cs
266,827
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....
36.1875
85
0.537133
[ "Apache-2.0" ]
RaulMatias7/ServicesCar
ServicesCars/Models/vwAtendimentos.cs
1,160
C#
using System; namespace Dragonite.Objects { public enum DragonState { healthy, dead } public class DragonStates { // Difffernt possible states the dragon can have public static string GetDragonString(DragonState dragonState) { switch (dragonState...
21.108696
69
0.467559
[ "MIT" ]
James-Havinga99/Dragonite_App
Dragonite/Objects/DragonState.cs
973
C#
/** * Wallee SDK Client * * This client allows to interact with the Wallee API. * * Wallee API: 1.0.0 * * 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/lice...
35.476923
186
0.551605
[ "Apache-2.0" ]
computop-services/c--sdk
src/Customweb.Wallee/Model/ApplicationUserUpdate.cs
6,918
C#
namespace FindScanCode { partial class FindScanCodeForm { private System.ComponentModel.IContainer components = null; protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); ...
36.255319
86
0.524941
[ "MIT" ]
bspfp/findscancode
FindScanCodeForm.Designer.cs
3,506
C#
using Core.Services.Helpers; using System; using System.Linq; using System.Linq.Expressions; namespace Core.Services.Extensions { public static class ExpressionExtensions { public static Expression<T> Compose<T>(this Expression<T> first, Expression<T> second, Func<Expression, Expression, Expression> m...
46.482759
142
0.661721
[ "MIT" ]
zolgera/Onion.Core.Services
Extensions/ExpressionExtensions.cs
1,350
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.Diagnostics; using System.Globalization; using System.Linq; using System.Tests; using Microsoft.DotNet.RemoteExecutor; using Xunit; na...
49.59583
211
0.588036
[ "MIT" ]
2m0nd/runtime
src/libraries/System.Runtime/tests/System/Text/StringBuilderTests.cs
111,789
C#
#region copyright // <copyright file="IConsoleWriter.cs" company="Christopher McNeely"> // The MIT License (MIT) // Copyright (c) Christopher McNeely // 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 S...
50.333333
129
0.674223
[ "MIT" ]
ProfessorAire/Evands.Pellucid-Crestron
src/Evands.Pellucid/Terminal/IConsoleWriter.cs
3,928
C#
using Test.Screen; using SadCanvas.Shapes; namespace Test.Pages; internal class LoadingImages : Page { public LoadingImages() : base("Image files", "Canvas instance can be created directly from various image formats.") { var canvas = new Parrot(); Add(canvas); } class Parrot : Canvas...
27.307692
119
0.538592
[ "MIT" ]
RychuP/SadCanvas
Test/Pages/LoadingImages.cs
1,777
C#
using System; using Microsoft.CodeAnalysis; namespace Melville.Generators.INPC.GenerationTools.CodeWriters; public static class WriteCodeNear { public static IDisposable Symbol(SyntaxNode node, CodeWriter cw, string baseDeclaration = "") { var namespaces = cw.GeneratePartialClassContext(node); ...
33.071429
97
0.7473
[ "MIT" ]
JohnN6TSM/Melville
src/Melville.Generators.INPC/GenerationTools/CodeWriters/WriteCodeNear.cs
465
C#
using VoteApp.Application.Requests.Identity; using VoteApp.Client.Extensions; using VoteApp.Shared.Constants.Application; using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.SignalR.Client; using MudBlazor; using System.Threading.Tasks; using Blazored.FluentValidation; using VoteApp.Client.Infrastructure...
33.982143
116
0.632685
[ "MIT" ]
andlekbra/dat250-gruppe5-VoteApp2
src/Client/Pages/Identity/RoleModal.razor.cs
1,905
C#
// Copyright 2011-2017 The Poderosa Project. // // 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 ...
32.235622
129
0.549928
[ "Apache-2.0" ]
dnobori/poderosa
Granados/Poderosa/SCP/SCPChannelStream.cs
17,377
C#
using RuriLib; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows...
30.320988
88
0.638844
[ "MIT" ]
Cheetah55/openbullet-1.2
OpenBullet/Pages/Main/Settings/RLSettingsPage.xaml.cs
2,458
C#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System.ComponentModel; namespace osu.Game.Screens.Select.Leaderboards { public enum BeatmapLeaderboardScope { [Description("本地排行")] ...
21.565217
80
0.596774
[ "MIT" ]
RocketMaDev/osu
osu.Game/Screens/Select/Leaderboards/BeatmapLeaderboardScope.cs
512
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; using System.Collections.Concurrent; using System.Collections.Generic; using System.Collections.Immutable; using System.Linq; using System.Thre...
48.475877
214
0.701855
[ "Apache-2.0" ]
ObsidianMinor/roslyn
src/Compilers/Core/Portable/DiagnosticAnalyzer/DiagnosticStartAnalysisScope.cs
44,212
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Deployment.Application; using System.Drawing; using System.Linq; using System.Threading; using System.Windows.Forms; using static OSS_EXP4.Eprocess; using Timer = System.Timers.Timer; namespace OSS...
33.777336
123
0.460977
[ "MIT" ]
Gpeter28/OS_exp4
OSS_EXP4/MainForm.cs
17,202
C#
using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.HttpsPolicy; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using System; using System.Collections.Generic; using System.Linq; using System.Th...
28.877193
143
0.616646
[ "MIT" ]
FahadMullaji/Sample.MVC
src/Startup.cs
1,646
C#
using UnityEngine; using UnityEngine.UI; using UnityEngine.SceneManagement; public class PauseMenuHandler : MonoBehaviour { public Object mainMenuScene; public InputHandler inputHandler; public GameObject pauseMenu; public GameObject optionsMenu; [Header("Audio Settings")] public Image audioI...
24.702703
131
0.655908
[ "MIT" ]
dayluke/falmouth-ccc
Assets/Scripts/Menu/PauseMenuHandler.cs
1,830
C#
#region license // Copyright (c) HatTrick Labs, LLC. 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 re...
32.884615
125
0.685965
[ "Apache-2.0" ]
HatTrickLabs/dbExpression
src/HatTrick.DbEx.Sql/Expression/_Field/Int32FieldExpression{T}.cs
1,710
C#
using CommandLine; using Luban.Common.Protos; using Luban.Common.Utils; using Luban.Job.Cfg.DataCreators; using Luban.Job.Cfg.Defs; using Luban.Job.Cfg.Generate; using Luban.Job.Cfg.Utils; using Luban.Job.Common.Defs; using Luban.Job.Common.Utils; using Luban.Server.Common; using System; using System.Collections.Concur...
41.530249
167
0.510111
[ "MIT" ]
bmjoy/luban
src/Luban.Job.Cfg/Source/JobController.cs
11,694
C#
// Commons.Refactorings // // Copyright (c) 2016 Rafael 'Monoman' Teixeira, Managed Commons Team // // 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 wit...
57.492537
285
0.680685
[ "MIT" ]
managed-commons/commons.refactorings
Commons.Refactorings/CodeRefactoringProvider.cs
7,704
C#
using System; using System.Xml.Linq; using Brimborium.WebDavServer.Model; namespace Brimborium.WebDavServer.Locking { /// <summary> /// The lock share mode /// </summary> public struct LockShareMode : IEquatable<LockShareMode> { /// <summary> /// Gets the default <c>shared</c> lock sh...
35.284404
118
0.567863
[ "MIT" ]
FlorianGrimm/Brimborium.Net
Brimborium.WebDavServer/Brimborium.WebDavServer/Locking/LockShareMode.cs
3,848
C#
/* * Copyright (c) 2018 THL A29 Limited, a Tencent company. 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 * ...
30.724138
85
0.630191
[ "Apache-2.0" ]
TencentCloud/tencentcloud-sdk-dotnet-intl-en
TencentCloud/Tem/V20210701/Models/MountedSettingConf.cs
1,782
C#
using Autofac; using PVScan.Core; using PVScan.Core.Services.Interfaces; using PVScan.Mobile.Services; using PVScan.Core.Services.Interfaces; using PVScan.Mobile.Views; using System; using Xamarin.Essentials; using Xamarin.Forms; using Xamarin.Forms.PlatformConfiguration; using Xamarin.Forms.PlatformConfiguration.iOSS...
30.221053
118
0.61442
[ "MIT" ]
meJevin/PVScan
Source/Mobile/PVScan.Mobile/App.xaml.cs
2,873
C#
using System.Windows; using System.Windows.Controls; using Appli.Navigator; using Modele; namespace Appli { /// <summary> /// Logique d'interaction pour Accueil.xaml /// </summary> public partial class Accueil : UserControl { private static Manager Man => (Application.Current as App)?.Man;...
27
112
0.635417
[ "MIT" ]
iShoFen/Cinema
Source/Cinema/Appli/Accueil.xaml.cs
866
C#
using System.Collections.Generic; using Brainiac.Serialization; namespace Brainiac { public abstract class Composite : BehaviourNode { [BTProperty("Children")] [BTHideInInspector] protected List<BehaviourNode> m_children; [BTIgnore] public int ChildCount { get { return m_children.Count; } ...
17.635659
58
0.632967
[ "MIT" ]
CloudDevStudios/Brainiac
Assets/Brainiac/Source/Runtime/Core/Composite.cs
2,275
C#