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. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Collections.Generic; using System.Linq; using Microsoft.CodeAnalysis.Text; using Roslyn.Test.Utilities; namespace Microsoft.CodeAnalysis.EditAnd...
36.630435
161
0.616024
[ "Apache-2.0" ]
DavidKarlas/roslyn
src/EditorFeatures/Test/EditAndContinue/Extensions.cs
1,685
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...
40.122302
173
0.627757
[ "BSD-3-Clause" ]
AlericInglewood/opensimulator
OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/InventoryCache.cs
5,577
C#
/* * Copyright 2018 JDCLOUD.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 * * http:#www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
25.15
76
0.633532
[ "Apache-2.0" ]
jdcloud-api/jdcloud-sdk-net
sdk/src/Service/Kms/Client/GenerateDataKeyExecutor.cs
1,665
C#
using hw.DebugFormatter; using Reni.SyntaxTree; using Reni.TokenClasses; namespace Reni.SyntaxFactory { class ThenHandler : DumpableObject, IValueProvider { ValueSyntax IValueProvider.Get(BinaryTree target, Factory factory, Anchor anchor) => new CondSyntax ( fact...
28.222222
89
0.614173
[ "MIT" ]
hahoyer/reni.cs
src/Reni/SyntaxFactory/ThenHandler.cs
508
C#
using System.Threading.Tasks; using Moq; using OPCAIC.Application.Emails; using OPCAIC.Application.Emails.EventHandlers; using OPCAIC.Application.Emails.Templates; using OPCAIC.Application.Interfaces; using OPCAIC.Application.Specifications; using OPCAIC.Application.Submissions.Events; using OPCAIC.Domain.Entities; us...
32.234568
118
0.783608
[ "MIT" ]
opcaic/server
test/OPCAIC.Application.Test/Emails/EventHandlers/SubmissionValidationStateChangedTest.cs
2,613
C#
using C4Sharp.Diagrams; using C4Sharp.Diagrams.Core; using C4Sharp.Diagrams.Supplementary; using FluentAssertions; using Xunit; namespace C4Sharp.UnitTests.Diagrams; public class DiagramTests { [Theory] [InlineData("Test A")] [InlineData("test A")] [InlineData("TEST A")] public void TestWhenSlugCo...
28
69
0.647879
[ "MIT" ]
8T4/c4sharp
tests/C4Sharp.UnitTests/Diagrams/DiagramTests.cs
1,792
C#
using System; using System.Collections.Generic; using Android.Runtime; using Java.Interop; namespace Com.Payment.Paymentsdk.D3s.View { // Metadata.xml XPath class reference: path="/api/package[@name='com.payment.paymentsdk.d3s.view']/class[@name='D3sFragmentKt']" [global::Android.Runtime.Register ("com/payment/paym...
43.463415
136
0.794052
[ "MIT" ]
amr-Magdy-PT/xamarin-paytabs-binding
android/PaymentSDK.Binding/obj/Debug/generated/src/Com.Payment.Paymentsdk.D3s.View.D3sFragmentKt.cs
1,782
C#
// using System; // using System.Collections; // using System.Collections.Generic; // using System.ComponentModel; // using System.IO; // using System.Threading; // using System.Threading.Tasks; // using ULZAsset.Config; // using UnityEngine; // using WebSocketSharp; // namespace ULZAsset { // public class WSConnec...
37.191011
100
0.489426
[ "MIT" ]
Stvchm9703/unlight-zwei-unity
Assets/Scripts/ULAsset/WebSocketImpl.cs
3,310
C#
// <auto-generated /> // // To parse this JSON data, add NuGet 'Newtonsoft.Json' then do: // // using SURA.Models; // // var modeloResultadoDetalle = ModeloResultadoDetalle.FromJson(jsonString); namespace SURA.Models { using System; using System.Collections.Generic; using System.Globalization; ...
27.647059
162
0.657979
[ "MIT" ]
fabiangothman/xamarinApp
SURA/SURA/Models/ModeloResultadoDetalle.cs
1,882
C#
/* Copyright (c) 2001, Dr Martin Porter Copyright (c) 2002, Richard Boulton 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 notice,...
34.19389
232
0.289976
[ "Apache-2.0" ]
DiogenesPolanco/lucenenet
src/Lucene.Net.Analysis.Common/Tartarus/Snowball/Ext/GermanStemmer.cs
29,101
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.737288
188
0.648217
[ "Apache-2.0" ]
DetlefGolze/aws-sdk-net
sdk/src/Services/WAFV2/Generated/Model/Internal/MarshallTransformations/GetPermissionPolicyResponseUnmarshaller.cs
4,571
C#
 namespace Wyj.Core.Common.Static { public static class StaticPayInfo { /// <summary> /// 商户号 /// </summary> public readonly static string MERCHANTID = Appsettings.app(new string[] { "PayInfo", "MERCHANTID" }).ObjToString(); /// <summary> /// 柜台号 /// </s...
35.973684
123
0.554499
[ "Apache-2.0" ]
ijlynivfhp/Wyj.Core
Wyj.Core.Common/Static/StaticPayInfo.cs
1,419
C#
using Microsoft.AspNetCore.Components; namespace Radzen.Blazor { /// <summary> /// Class RadzenMarkers. /// Implements the <see cref="Radzen.Blazor.RadzenChartComponentBase" /> /// </summary> /// <seealso cref="Radzen.Blazor.RadzenChartComponentBase" /> public class RadzenMarkers : RadzenChartC...
28.457143
79
0.533133
[ "MIT" ]
WaldiTUD/radzen-blazor
Radzen.Blazor/RadzenMarkers.cs
1,992
C#
/* * Copyright 2004 - $Date: 2008-11-15 23:58:07 +0100 (za, 15 nov 2008) $ by PeopleWare n.v.. * * 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...
38.719298
161
0.483613
[ "Apache-2.0" ]
jandockx/ppwcode
dotnet/Util/SharePoint/I/2.n/2.0.1/src/I/SharePointClient.cs
13,242
C#
using System.Collections.Generic; using System.Linq; using EOLib.Domain.Chat; using Microsoft.Xna.Framework.Graphics; using XNAControls; namespace EndlessClient.Rendering.Chat { public class ChatRenderableGenerator : IChatRenderableGenerator { private const int LINE_LEN = 380; private class C...
37.422414
129
0.575674
[ "MIT" ]
Septharoth/EndlessClient
EndlessClient/Rendering/Chat/ChatRenderableGenerator.cs
4,343
C#
// Copyright < 2021 > Narria (github user Cabarius) - License: MIT using System; using System.Linq; using UnityEngine; using GL = UnityEngine.GUILayout; namespace ModKit { public static partial class UI { public static bool userHasHitReturn = false; public static string focusedControlName = nu...
37.365079
126
0.461342
[ "MIT" ]
RedOrcaCode/SolastaCommunityExpansion
SolastaCommunityExpansion/ModKit/UI/UI+Builders.cs
4,710
C#
namespace Fields { public class Order { } }
9.285714
22
0.476923
[ "MIT" ]
Rongusha/cShardStudy
CSharpIntermediate/Section1/Fields/Fields/Order.cs
67
C#
using System; using System.Collections.Generic; using System.Text; using RAGE; using RAGE.Elements; namespace main_client.Other { /*class ShopManager { class Shop : Events.Script { public Shop() { Events.Add("OnPlayerJoin", OnPlayerJoin); ...
23.758621
58
0.513788
[ "MIT" ]
Stolym/RAGEMP
Server/server-files/server-files/client_workspace/main_client/Ventura/Jobs/Shop.cs
691
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.AspNetCore.Components; namespace BasicTestApp.ServerReliability; public class ThrowingSetParametersSyncComponent : IComponent { public void Attach(RenderHandle ...
24.631579
71
0.758547
[ "MIT" ]
3ejki/aspnetcore
src/Components/test/testassets/BasicTestApp/ServerReliability/ThrowingSetParametersSyncComponent.cs
468
C#
using System.IO; using System.Runtime.Serialization; using WolvenKit.CR2W.Reflection; using FastMember; using static WolvenKit.CR2W.Types.Enums; namespace WolvenKit.CR2W.Types { [DataContract(Namespace = "")] [REDMeta] public class CEnableEncounterAction : IEntityTargetingAction { [Ordinal(1)] [RED...
31.28
134
0.734015
[ "MIT" ]
DerinHalil/CP77Tools
CP77.CR2W/Types/W3/RTTIConvert/CEnableEncounterAction.cs
758
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable using System; using System.Text.Json; using System.Text.Json.Serialization; using Azure.Core; namespace Azure.Analytics.Synapse.Artifacts.Models { [JsonConverter(typeof(SparkBat...
40.283582
315
0.499074
[ "MIT" ]
93mishra/azure-sdk-for-net
sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkBatchJobState.Serialization.cs
5,398
C#
namespace TrafficManager.Patch._VehicleAI._PassengerCarAI { using System.Reflection; using ColossalFramework; using Connection; using HarmonyLib; using JetBrains.Annotations; using Manager.Impl; using UnityEngine; [UsedImplicitly] [HarmonyPatch] public class StartPathFindPatch {...
38.875
106
0.529169
[ "MIT" ]
CitiesSkylinesMods/TMPE
TLM/TLM/Patch/_VehicleAI/_PassengerCarAI/StartPathFindPatch.cs
2,177
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _02 { class Program { /// <summary> /// Write a program that reads N integers from the console and reverses them using a stack. /// Use the Stack<int> class. ...
24.75
99
0.514029
[ "MIT" ]
ekov1/TelerikAcademy-Exercises
alpha/DSA/02. Linear-Data-Structures/homeWork/02/02.cs
893
C#
using System; namespace Orleans.Indexing.Facet { /// <summary> /// Marker interface for fault-tolerant indexed state management. /// </summary> public interface IFaultTolerantWorkflowIndexedStateAttribute { } /// <summary> /// Base class for the IIndexedState facet that is implemented ...
34.090909
172
0.741333
[ "MIT" ]
TedHartMS/OrleansV2.Fork.Indexing
src/Orleans.Indexing/Facet/Implementations/FaultTolerantWorkflowIndexedStateAttribute.cs
750
C#
using System.Reflection; using System.IO; namespace jQueryBuddy.Utilities { public class ResourceUtilities { public static string GetEmbeddedResourceString(string resourceName) { using (var s = Assembly.GetExecutingAssembly().GetManifestResourceStream(resourceName)) { ...
25.947368
99
0.561866
[ "MIT" ]
philiphendry/jQueryBuddy
Utilities/ResourceUtilities.cs
493
C#
using System; using Shouldly; using Xunit; namespace Valit.Tests.Int16 { public class Int16_IsGreaterThan_Tests { [Fact] public void Int16_IsGreaterThan_For_Not_Nullable_Values_Throws_When_Null_Rule_Is_Given() { var exception = Record.Exception(() => { ...
32.707143
153
0.541166
[ "MIT" ]
GooRiOn/Valit
tests/Valit.Tests/Int16/Int16_IsGreaterThan_Tests.cs
4,440
C#
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------ namespace Microsoft.Azure.Cosmos { using System; using System.Collections.Concurrent; using System.Collections.Generic...
48.536585
308
0.66425
[ "MIT" ]
SnehaGunda/azure-cosmos-dotnet-v3
Microsoft.Azure.Cosmos/src/Batch/BatchAsyncContainerExecutor.cs
13,932
C#
using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CodeActions; using Microsoft.CodeAnalysis.CodeFixes; using Microsoft.CodeAnalysis.CSharp.Syntax; using System.Linq; using System.Threading.Tasks; namespace CodeCracker.CSharp.Usage { public sealed class RemoveUnreachableCodeFixAllProvider : FixAllProvider...
55.373333
166
0.671563
[ "Apache-2.0" ]
ComputerScience1-Period3/code-cracker
src/CSharp/CodeCracker/Usage/RemoveUnreachableCodeFixAllProvider.cs
4,155
C#
// Copyright © 2004, 2013, Oracle and/or its affiliates. All rights reserved. // // MySQL Connector/NET is licensed under the terms of the GPLv2 // <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>, like most // MySQL Connectors. There are special exceptions to the terms and // conditions of the GPLv2 as it is...
32.552941
121
0.712685
[ "Unlicense" ]
bkbalci/MySqlBackup.Net
source code/MySql.Data(6.9.8)/extensions/NonRT/MySqlCommand.cs
2,770
C#
// // Copyright 2018 Sean Spicer // // 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 t...
32.769231
75
0.703052
[ "Apache-2.0" ]
mellinoe/nexscenegraph
src/Veldrid.SceneGraph/IDisplaySettings.cs
854
C#
using Newtonsoft.Json.Linq; using CSS.Core; using CSS.Files.Logic; using CSS.Helpers; namespace CSS.Logic { internal class UnitUpgradeComponent : Component { public UnitUpgradeComponent(GameObject go) : base(go) { m_vTimer = null; m_vCurrentlyUpgradedUnit = null; ...
34.277778
134
0.536669
[ "MIT" ]
skyprolk/Clash-Of-SL
Clash SL Server [UCS 7.4.0]/Logic/Component/UnitUpgradeComponent.cs
4,936
C#
using System; using System.ComponentModel; using Android.Content; using Android.Graphics; using Android.Graphics.Drawables; using Android.Support.V4.View; using Android.Support.V4.Widget; using Android.Support.V7.Widget; using Xamarin.Forms.Internals; using Xamarin.Forms.PlatformConfiguration.AndroidSpecific; using Sp...
31.598784
179
0.720181
[ "MIT" ]
dahlbyk/Xamarin.Forms
Xamarin.Forms.Platform.Android/ButtonLayoutManager.cs
10,398
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("IC...
37.805556
84
0.753123
[ "MIT" ]
xEvilDevilx/InformationCenter
Information Center/Client[.NET3.5CF]/Client/Plugins/IC.Client.Plugins.StandartViewPlugin/Properties/AssemblyInfo.cs
1,364
C#
namespace Microsoft.eShopWeb.PublicApi.AuthEndpoints { public class AuthenticateRequest : BaseRequest { public string Username { get; set; } public string Password { get; set; } } }
19.363636
53
0.661972
[ "MIT" ]
Sk1D/eShopOnWeb
src/PublicApi/AuthEndpoints/AuthenticateEndpoint.AuthenticateRequest.cs
215
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...
27.1375
118
0.602487
[ "Apache-2.0" ]
SaschaHaertel/AmazonAWS
sdk/src/Services/ElasticLoadBalancing/Generated/AmazonElasticLoadBalancingConfig.cs
2,171
C#
namespace p03._01.ValidationOfData { using p03._01.ValidationOfData.Core; public class Person { private string firstName; private string lastName; private int age; private decimal salary; public Person( string firstName, string lastName, ...
20.46729
81
0.411416
[ "MIT" ]
vesy53/SoftUni
C# Advanced/C# OOP/LabAndExercises/05.EncapsulationLab/p03.01.ValidationOfData/Person.cs
2,192
C#
using System; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; using System.ComponentModel.DataAnnotations; using System.Globalization; using System.Reflection; using System.Runtime.Serialization; using System.Web.Http; using System.Web.Http.Description; using System.Xml...
42.321508
167
0.579033
[ "MIT" ]
ashishshakya/ControlCenter
Control.Center/Control.Center/Areas/HelpPage/ModelDescriptions/ModelDescriptionGenerator.cs
19,087
C#
using System; namespace BlenderUpdater { public class BlenderVersion { public string Architecture { get; set; } public string Tag { get; set; } public string OperatingSystem { get; set; } public string Version { get; set; } public Uri DownloadUrl { get; set; } public...
32.111111
119
0.603806
[ "MIT" ]
simsod/blender_updater
src/BlenderUpdater/BlenderVersion.cs
578
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using api.Db.Context; using Microsoft.EntityFrameworkCore; namespace api.Controllers { [Produces("application/json")] [Route("api/companies")] p...
25.166667
69
0.672848
[ "MIT" ]
cdennig/api-efcore-sql-cd
api/Controllers/CompaniesController.cs
757
C#
using System; using System.Collections.Concurrent; using System.Diagnostics; using System.Text; using System.Threading; namespace EarTrumpet.Diagnosis { class CircularBufferTraceListener : TraceListener { private const int MAX_LOG_LINES = 400; private readonly ConcurrentQueue<string...
31
93
0.581378
[ "MIT" ]
gus33000/EarTrumpet
EarTrumpet/Diagnosis/CircularBufferTraceListener.cs
1,323
C#
using System.Reflection; 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("WiremockUI")] [assembly: AssemblyProduct("W...
39.942857
84
0.745351
[ "MIT" ]
juniorgasparotto/WiremockUI
src/WiremockUI/Properties/AssemblyInfo.cs
1,403
C#
// Copyright (c) 2022 AccelByte Inc. All Rights Reserved. // This is licensed software from AccelByte Inc, for limitations // and restrictions contact your company contract manager. // This code is generated by tool. DO NOT EDIT. using System.Text.Json.Serialization; namespace AccelByte.Sdk.Api.Platform.Model { p...
30.75
71
0.73374
[ "MIT" ]
AccelByte/accelbyte-csharp-sdk
AccelByte.Sdk/Api/Platform/Model/PlaystationIAPConfigRequest.cs
492
C#
using System; using System.Deployment.Application; using System.Collections.Generic; using System.Text; namespace LythumOSL.Core.Licensing { public class ClickOnce { #region enums public enum UpdateStatus { /// <summary> /// Update not found /// </summary> UpdateNotFound, /// <summary> /// Up...
21.366864
89
0.653282
[ "Apache-2.0" ]
Lythum/LythumOSL.NET
trunk/src/LythumOSL.Core/Licensing/ClickOnce.cs
3,611
C#
using TDJ.Dominio.Entidades; using TDJ.Dominio.ViewModel; namespace TDJ.Servicos.Interfaces { public interface IServicosDeAPIDeCliente : IServicoDeAPI<ResultadoCustomizado, CriarClienteViewModel> { } }
18.166667
105
0.779817
[ "MIT" ]
RMiike/TesteDevJr
src/servicos/TDJ.Services/Interfaces/IServicosDeAPIDeCliente.cs
220
C#
using Microsoft.Xna.Framework; using Terraria; using Terraria.Graphics.Shaders; using Terraria.ID; using TrailEffects.Utilities; namespace TrailEffects.Items.Bags { public class FlameBag : DustItem { public override void SetStaticDefaults() { DisplayName.SetDefault("Fire Pouch"); ...
31.595238
130
0.562924
[ "MIT" ]
Steviegt6/TrailEffects
Items/Bags/FlameBag.cs
1,329
C#
using System; namespace Indriya.Core.Data { /// <summary> /// Represents gesture confidence data /// </summary> public class GestureConfidenceData { /// <summary> /// Number of times the gesture is active (Time = CurrentActiveLapse*Period) /// </summary> public int C...
27.855422
84
0.502163
[ "MIT" ]
praveenv4k/Indriya
src/Indriya.Core/Data/GestureConfidenceData.cs
2,312
C#
using Xunit.Internal; namespace Xunit.Runner.Common { /// <summary> /// Extensions methods for <see cref="IRunnerLogger"/>. /// </summary> public static class IRunnerLoggerExtensions { /// <summary> /// Logs a normal-priority message. /// </summary> /// <param name="logger">The logger</param> /// <param...
30.148837
87
0.698396
[ "Apache-2.0" ]
PKRoma/xun
src/xunit.v3.runner.common/Extensions/IRunnerLoggerExtensions.cs
6,482
C#
/* * Square Connect API * * Client library for accessing the Square Connect APIs * * OpenAPI spec version: 2.0 * Contact: developers@squareup.com * Generated by: https://github.com/swagger-api/swagger-codegen.git */ using System; using System.Collections.Generic; using System.Collections.ObjectModel; using Sy...
48.66877
334
0.643829
[ "Apache-2.0" ]
skuvault/Square.Connect.SV
src/Square.Connect/Api/LocationsApi.cs
15,428
C#
using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Text; using YesSql.Core.Sql.Schema; namespace YesSql.Core.Sql { public abstract class BaseComandInterpreter : ICommandInterpreter { protected readonly ISqlDialect _dialect; private const char Spa...
36.408451
201
0.544681
[ "MIT" ]
hishamco/yessql
src/YesSql.Core/Sql/BaseComandInterpreter.cs
10,342
C#
using System; using System.Collections.Generic; namespace ListaPeliculas { class Pelicula { public string titulo; public void imprime()//Este es el metódo imprime { Console.WriteLine(titulo); } public Pelicula(string n)//Este es el constructor Pelicula() ...
26
68
0.52735
[ "Apache-2.0" ]
Chita15/POO
ListaPeliculas/Program.cs
1,175
C#
namespace ThriveDevCenter.Server.Models { using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Text.Json; using Microsoft.EntityFrameworkCore; using Shared.Models; /// <summary> /// Separately stored cast vote on a...
30.320755
115
0.586185
[ "MIT" ]
Revolutionary-Games/ThriveDevCenter
Server/Models/MeetingPollVote.cs
1,607
C#
/******************************************************************************* * 命名空间: SF.Data.Repository * * 功 能: N/A * 类 名: IRoleRepository * * Ver 变更日期 负责人 变更内容 * ─────────────────────────────────── * V0.01 2016/11/11 15:18:03 疯狂蚂蚁 初版 * * Copyright (c) 2016 SF 版权所有 * Description: SF快速开发平台 * Website:http://www.may...
24.638889
100
0.512965
[ "Apache-2.0" ]
blueskybcl/SF-Boilerplate
SF.Data/Repository/Implementation/SiteHostRepository.cs
1,035
C#
using System; namespace RenderBox.Core { public static class Rand { private static Random _random = new Random(RandomizeSeed()); public static void InitState(int seed) { _random = null; _random = new Random(seed); } public static int Int(int mi...
30.568627
100
0.556126
[ "MIT" ]
Gluschenko/Path-Tracer-Sharp
src/RenderBox.Shared/Core/Rand.cs
1,561
C#
using System; using System.Collections.Generic; using System.Text; namespace FactoryMethodPattern { public class Mountain : IBicycle { public void platform() { Console.WriteLine("Mountain Bicycles are design for riding rough off-road trails"); } } }
20.933333
96
0.627389
[ "MIT" ]
bulutcnsu/Design-Patterns
DesignPatternsWithC#/FactoryMethodPattern/FactoryMethodPattern/Mountain.cs
316
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //----------------------------------------...
27.5
84
0.511818
[ "MIT" ]
AzureMentor/20487-DevelopingWindowsAzureAndWebServices
Allfiles/20487C/Mod10/DemoFiles/WebSiteMonitoring/SimpleWebApplication/SimpleWebApplication/Account/RegisterExternalLogin.aspx.designer.cs
1,102
C#
using CSharpGuidelinesAnalyzer.Rules.Maintainability; using CSharpGuidelinesAnalyzer.Test.TestDataBuilders; using Microsoft.CodeAnalysis.Diagnostics; using Xunit; namespace CSharpGuidelinesAnalyzer.Test.Specs.Maintainability { public sealed class AvoidBooleanParameterSpecs : CSharpGuidelinesAnalysisTestFixture ...
32.287269
130
0.384234
[ "Apache-2.0" ]
MineMaarten/CSharpGuidelinesAnalyzer
src/CSharpGuidelinesAnalyzer/CSharpGuidelinesAnalyzer.Test/Specs/Maintainability/AvoidBooleanParameterSpecs.cs
29,672
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; 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.Media.Imaging; using System.Windo...
24.785714
62
0.70317
[ "Apache-2.0" ]
Appdynamics/DotNetAgentExtensionManager
Source/AppDynamics.Extension.Manager/AppDynamics.Extension.Manager/View/CreateExtensionControl.xaml.cs
696
C#
//------------------------------------------------------------------------------ // <auto-generated /> // // This file was automatically generated by SWIG (http://www.swig.org). // Version 3.0.12 // // Do not make changes to this file unless you know what you are doing--modify // the SWIG interface file instead. //----...
36.2
129
0.642726
[ "Apache-2.0" ]
MrDice/usd-unity-sdk
src/USD.NET/generated/SWIG/SWIGTYPE_p_SdfSchemaBase.cs
1,086
C#
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="EncoderStates.cs" company="Hukano"> // Copyright (c) Hukano. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license informat...
38.193548
120
0.548142
[ "MIT" ]
hugener/Sundew.Gpio.Devices
Source/Sundew.Gpio.Devices/RotaryEncoders/Ky040/EncoderStates.cs
2,370
C#
//------------------------------------------------------------------------------ // <auto-generated> // Este código fue generado por una herramienta. // Versión de runtime:4.0.30319.42000 // // Los cambios en este archivo podrían causar un comportamiento incorrecto y se perderán si // se vuelve a gener...
33.577922
112
0.54999
[ "MIT" ]
hcrisanto/InventarioFarmacia12
InventarioFarmacia/ReporteProductos.cs
5,178
C#
using System; using System.Xml.Serialization; namespace Aop.Api.Domain { /// <summary> /// KoubeiMarketingDataMessageDeliverModel Data Structure. /// </summary> [Serializable] public class KoubeiMarketingDataMessageDeliverModel : AopObject { /// <summary> /// 消息内容,js...
28
98
0.570276
[ "Apache-2.0" ]
554393109/alipay-sdk-net-all
AlipaySDKNet.Standard/Domain/KoubeiMarketingDataMessageDeliverModel.cs
1,002
C#
#region Apache Notice /***************************************************************************** * $Revision: 378879 $ * $LastChangedDate: 2006-11-19 17:07:45 +0100 (dim., 19 nov. 2006) $ * $LastChangedBy: gbayon $ * * iBATIS.NET Data Mapper * Copyright (C) 2006/2005 - The Apache Software Foundation * * ...
30.805195
109
0.597808
[ "Apache-2.0" ]
JTOne123/SqlBatis
src/SqlBatis.DataMapper/TypeHandlers/Nullables/NullableInt32TypeHandler.cs
4,744
C#
// ReSharper disable CheckNamespace // Polyfills to bridge the missing APIs in older versions of the framework/standard. #if NETSTANDARD2_0 using System; using System.Collections.Generic; using System.Text; internal static partial class PolyfillExtensions { public static bool Contains(this string str, string su...
29.428571
92
0.739482
[ "MIT" ]
KevinGliewe/MiniRazor
MiniRazor.Compiler/Utils/Polyfills.cs
620
C#
/* * No copyright asserted on the source code of this class. May be used * for any purpose. * * Original code by Kevin Weiner, FM Software. * Adapted by Thomas Hourdel. */ using System; using System.IO; using UnityEngine; namespace SA.GIF { class Encoder { protected int m_Width; protect...
34.855114
109
0.535985
[ "MIT" ]
Alnirel/com.stansassets.running-dinosaur-clone
Assets/Plugins/StansAssets/CrossPlatform/SocialGif/Runtime/Encoder/SG_Encoder.cs
12,269
C#
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ /...
45.489362
153
0.634705
[ "MIT" ]
GeertVL/msgraph-beta-sdk-dotnet
src/Microsoft.Graph/Generated/model/DeviceManagementConfigurationSettingDefinition.cs
6,414
C#
using System; using System.Collections.Generic; using System.Text; using Nerdscode.PagSeguro.Constants; namespace Nerdscode.PagSeguro.Domain.Direct { /// <summary> /// Represents a payment request /// </summary> public class Checkout { private IList<Item> _items; private MetaData _...
28.614108
122
0.49623
[ "Apache-2.0" ]
thiago123789/PagSeguro-NET-Core
Uol.PagSeguro/Domain/Direct/Checkout.cs
6,898
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 System.Text; internal partial class Interop { interna...
33.588235
107
0.747811
[ "MIT" ]
Acidburn0zzz/corefx
src/Common/src/Interop/Windows/user32/Interop.GetWindowTextW.cs
571
C#
namespace TestBackendDev.BLL.Extensions { public static class StringExtensions { public static bool IsNullOrEmpty(this string s) { return s == null || s.Trim().Equals(""); } } }
22.6
55
0.579646
[ "MIT" ]
toyerovsky/test-backend-dev
src/TestBackendDev/TestBackendDev.BLL/Extensions/StringExtensions.cs
228
C#
using System.Collections; using System.Collections.Generic; using System; using NetRuntimeSystem = System; using System.ComponentModel; using NetOffice.Attributes; using NetOffice.CollectionsGeneric; using NetOffice.ExcelApi; namespace NetOffice.ExcelApi.Behind { /// <summary> /// DispatchInterface FileExportConver...
28.754902
187
0.660416
[ "MIT" ]
igoreksiz/NetOffice
Source/Excel/Behind/DispatchInterfaces/FileExportConverters.cs
5,868
C#
using System; using System.Globalization; using System.Linq; using System.Reflection; using System.Web.Http.Controllers; using System.Web.Http.Description; using System.Xml.XPath; namespace BattleHQ.Areas.HelpPage { /// <summary> /// A custom <see cref="IDocumentationProvider"/> that reads the API documentatio...
42.125
160
0.627102
[ "MIT" ]
otac0n/BattleHQ
BattleHQ/Areas/HelpPage/XmlDocumentationProvider.cs
6,066
C#
using System; using System.Collections.Generic; using System.IO; using System.Xml; using System.Xml.Serialization; namespace NPOI.OpenXmlFormats.Wordprocessing { [Serializable] [XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")] [XmlRoot(Namespace = "http://schemas.openxmlformats.o...
18.511013
105
0.628748
[ "MIT" ]
iNeverSleeeeep/NPOI-For-Unity
NPOI.OpenXmlFormats.Wordprocessing/CT_Odso.cs
4,202
C#
using System.Collections.Generic; namespace HomeMadeFood.Web.Areas.Admin.Models.ShoppingListViewModels { public class ShoppingListViewModel { public IEnumerable<FoodCategoryViewModel> FoodCategories { get; set; } public decimal TotalCost { get; set; } } }
26
78
0.730769
[ "MIT" ]
MilStancheva/HomeMadeFood
HomeMadeFood/HomeMadeFood.Web/Areas/Admin/Models/ShoppingListViewModels/ShoppingListViewModel.cs
288
C#
using System; using System.Reflection; using Castle.DynamicProxy; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using Stl.Internal; namespace Stl.Interception.Interceptors { public abstract class SelectingInterceptorBase : InterceptorBase { public new class Options...
39.673469
124
0.672325
[ "MIT" ]
BlazorHub/Stl.Fusion
src/Stl.Interception/Interceptors/SelectingInterceptorBase.cs
1,944
C#
using System.ComponentModel.DataAnnotations; using System.Text; using System.Text.Encodings.Web; using System.Threading.Tasks; using IdentityServer.Data; using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; using Microsoft.AspNetCore.WebUtilities; using Micros...
35.168675
139
0.559781
[ "MPL-2.0" ]
CristiHabliuc/stam-acasa
backend/src/StamAcasa.IdentityServer/Areas/Identity/Pages/Account/Manage/Email.cshtml.cs
5,840
C#
using System; using QF; namespace Invert.Data { public static class DataRecordPropertyChangedExtensions { public static void Changed<TType>(this IDataRecord record, string propertyName,ref TType beforeValue, TType value) { record.Changed = true; var before = beforeValu...
35.16
141
0.607509
[ "MIT" ]
mingdaoshiming/QFramework
Framework/3.UIKit/CodeGenKit/Editor/CodeGen/Systems/Database/Data/DataRecordPropertyChangedExtensions.cs
881
C#
using System; using System.Text; namespace Sharp.Xmpp { internal class SecurityElement { private static readonly String[] s_escapeStringPairs = new String[] { // these must be all once character escape sequences or a new escaping algorithm is needed "<", "&l...
29.857143
149
0.431492
[ "MIT" ]
gusmanb/Sharp.Xmpp.NetCore
src/Sharp.Xmpp.NetCore/SecurityElement.cs
2,301
C#
/* * TileDB Storage Platform API * * TileDB Storage Platform REST API * * The version of the OpenAPI document: 2.2.19 * * Generated by: https://github.com/openapitools/openapi-generator.git */ using NUnit.Framework; using System; using System.Linq; using System.IO; using System.Collections.Generic; using Ti...
24.454545
99
0.58829
[ "MIT" ]
TileDB-Inc/TileDB-Cloud-CSharp
TileDB.Cloud.Rest/src/TileDB.Cloud.Rest.Test/Model/UDFFavoritesDataTests.cs
2,152
C#
using System.Web; using System.Web.Mvc; namespace NinjaLab.Azure.Apis { public class FilterConfig { public static void RegisterGlobalFilters(GlobalFilterCollection filters) { filters.Add(new HandleErrorAttribute()); } } }
19.428571
80
0.658088
[ "CC0-1.0" ]
Ninja-Labs/azure
6. WebApps MVC Core and Entity Framework/Lab 1/Fuentes/NinjaLab.Azure/NinjaLab.Azure.Apis/App_Start/FilterConfig.cs
274
C#
//************************************************************************************************ // Copyright © 2020 Steven M Cohn. All rights reserved. //************************************************************************************************ namespace River.OneMoreAddIn.Models { using System; using Sys...
23.599078
99
0.577817
[ "MIT" ]
geoff-B/OneMore
OneMore/Models/PageHeadings.cs
5,124
C#
using System; using System.Diagnostics; using System.Globalization; namespace GrandDetour.Core { public static class Ps { public static int RunAndRead(string fileName, string arguments, string salt, string filter=null) { var process = new Process(); var cmdStartInfo = ...
37.421053
113
0.495781
[ "MIT" ]
patrick0xf/inthree
GrandDetour/Core/Ps.cs
1,424
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable using System; using System.Collections; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Threading; using System.Threading.Tasks; using A...
55.490956
480
0.647171
[ "MIT" ]
nitsi/azure-sdk-for-net
sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/VMwareHostCollection.cs
21,475
C#
[TaskCategoryAttribute] // RVA: 0x1566A0 Offset: 0x1567A1 VA: 0x1566A0 [TaskDescriptionAttribute] // RVA: 0x1566A0 Offset: 0x1567A1 VA: 0x1566A0 public class StartPlayback : Action // TypeDefIndex: 11412 { // Fields [TooltipAttribute] // RVA: 0x194000 Offset: 0x194101 VA: 0x194000 public SharedGameObject targetGameO...
30.923077
73
0.738806
[ "MIT" ]
SinsofSloth/RF5-global-metadata
BehaviorDesigner/Runtime/Tasks/Unity/UnityAnimator/StartPlayback.cs
804
C#
using SimplCommerce.Module.Core.Models; using System.Threading.Tasks; namespace SimplCommerce.Module.Core.Services { public interface IEntityService { string ToSafeSlug(string slug, long entityId, long entityTypeId); Entity Get(long entityId, long entityTypeId); void Add(string name,...
27.421053
86
0.721689
[ "Apache-2.0" ]
EmreKarahan/SimplCommerce
src/Modules/SimplCommerce.Module.Core/Services/IEntityService.cs
523
C#
using System; using System.Collections.Generic; using System.Threading; using UnityEngine; namespace Unity.Networking.QoS { public class QosStatsResult { public uint LatencyMs { get; set; } public float PacketLoss { get; set; } public QosStatsResult(uint latencyMs, float packetLoss) ...
35.518519
180
0.667362
[ "Apache-2.0" ]
needle-mirror/com.unity.ucg.qos
Runtime/Unity/ucg/QoS/QosStatsResult.cs
959
C#
// Copyright (c) zhenlei520 All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. using System; using Wolf.Systems.Abstracts; using Wolf.Systems.Enum; namespace Wolf.Systems.Core.Provider.DateTimes { /// <summary> /// 本年初 /// </summary> p...
25.880952
95
0.555658
[ "MIT" ]
zhenlei520/Wolf.Systems
src/Wolf.Systems.Core/Provider/DateTimes/StartYearProvider.cs
1,117
C#
#region License /* Copyright (c) 2012-2016 ObjectGL Project - Daniil Rodin 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, cop...
47.891892
186
0.788939
[ "MIT" ]
Zulkir/ObjectGL
Source/ObjectGL/Api/Objects/IVertexArray.cs
1,774
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("P0...
38.189189
84
0.748054
[ "MIT" ]
ivakis1/Programming-Fundamentals-C-Sharp
08.1 Objects and Classes - Exercises/P01_CountWorkingDays/Properties/AssemblyInfo.cs
1,416
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Base_ProjectileP1 : MonoBehaviour { public float ProjectileSpeed = 5f; // Start is called before the first frame update void Start() { } // Update is called once per frame void Upd...
20.892857
78
0.603419
[ "MIT" ]
Nicktastick04/SentienceQ
Assets/Scripts/Projectile Scripts/Base_ProjectileP1.cs
587
C#
// <copyright file="LegacyTenancyCloudBlobContainerBindings.cs" company="Endjin Limited"> // Copyright (c) Endjin Limited. All rights reserved. // </copyright> namespace Corvus.Tenancy.Specs.Bindings { using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; ...
42.207547
164
0.665177
[ "Apache-2.0" ]
corvus-dotnet/Corvus.Tenancy
Solutions/Corvus.Tenancy.Specs/Bindings/LegacyTenancyCloudBlobContainerBindings.cs
4,476
C#
using System; using System.Collections.Generic; using Rxns.DDD.Commanding; using Rxns.Interfaces; namespace Rxns.DDD.CQRS { public class DomainModelChangesPublisher<T, TR> : IDomainCommandPostHandler<T, TR> { private readonly IRxnManager<IRxn> _rxnManager; public DomainModelChangesPublisher(I...
26.22807
103
0.618729
[ "MIT" ]
captainjono/rxns
src/Rxns/DDD/CQRS/DomainModelChangesPublisher.cs
1,497
C#
using NUnit.Framework; using TestNinja.Fundamentals; namespace TestNinja.UnitTests { [TestFixture] public class ReservationTests { [Test] public void CanBeCanceledBy_UserIsAdmin_ReturnsTrue() { var reservation = new Reservation(); var result = reservation.Ca...
25
84
0.578605
[ "MIT" ]
DeniPanov/unit-testing-for-c-sharp-devs-udemy
source-code-starter/TestNinja/TestNinja.UnitTests/ReservationTests.cs
1,075
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.Collections.Generic; using Microsoft.EntityFrameworkCore.Storage; using Microsoft.EntityFrameworkCore.TestUtilities; using Xunit; namespac...
30.338346
111
0.561338
[ "Apache-2.0" ]
tonysneed/Forks.EntityFrameworkCore
test/EFCore.Tests/Metadata/Conventions/Internal/CascadeDeleteConventionTest.cs
4,035
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.AwsN...
33.987179
182
0.646926
[ "Apache-2.0" ]
pulumi/pulumi-aws-native
sdk/dotnet/MemoryDB/GetParameterGroup.cs
2,651
C#
// Copyright (C) 2017 Alaa Masoud // See the LICENSE file in the project root for more information. using System; using Microsoft.Extensions.Logging; using Microsoft.Extensions.DependencyInjection; using Serilog; using Serilog.Events; using Sejil.Data.Internal; using Sejil.Routing.Internal; using Sejil.Configuration.I...
40.737705
152
0.651911
[ "Apache-2.0" ]
alaatm/LogsExplorer
src/Sejil.Server/WebHostBuilderExtensions.cs
2,485
C#
#region Copyright // // DotNetNuke® - https://www.dnnsoftware.com // Copyright (c) 2002-2018 // by DotNetNuke Corporation // // 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...
39.044709
191
0.505477
[ "MIT" ]
Mhtshum/Dnn.Platform
DNN Platform/Website/DesktopModules/Admin/Security/EditUser.ascx.cs
26,202
C#
using System; using System.Collections.Generic; using System.Linq; using Xunit.Internal; using Xunit.Sdk; namespace Xunit.v3 { /// <summary> /// Default implementation of <see cref="ITestCaseOrderer"/>. Orders tests in /// an unpredictable but stable order, so that repeated test runs of the /// identical test ass...
25.35
172
0.713346
[ "Apache-2.0" ]
PKRoma/xunit
src/xunit.v3.core/Sdk/v3/Utility/DefaultTestCaseOrderer.cs
1,523
C#
using System.Text.Json.Serialization; namespace DotNetBungieAPI.Generated.Models.Destiny.Definitions.Lore; /// <summary> /// These are definitions for in-game "Lore," meant to be narrative enhancements of the game experience. /// <para /> /// DestinyInventoryItemDefinitions for interesting items point...
40.333333
213
0.676414
[ "MIT" ]
EndGameGl/.NetBungieAPI
DotNetBungieAPI.Generated/Models/Destiny/Definitions/Lore/DestinyLoreDefinition.cs
1,573
C#
using System; using System.Collections.Generic; using System.Linq; namespace SplitByWordCasing { class Program { static void Main(string[] args) { List<string> text = Console.ReadLine() .Split(',', ';', ':', '.', '!', '(', ')', '"', "\", "\\", "/", "[", "]", " ") ...
28.474576
93
0.37619
[ "MIT" ]
drinoff/C-Fundamentals
lists/splitWordsByCasing/Program.cs
1,682
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...
37.151685
139
0.57765
[ "Apache-2.0" ]
JeffAshton/aws-sdk-net
sdk/src/Services/Transfer/Generated/Model/Internal/MarshallTransformations/CreateServerRequestMarshaller.cs
6,613
C#
using System; using System.Diagnostics; using System.Reflection; public class Gen<T> { public static void staticCrash () { object o = null; o.GetType (); } public void callStaticCrash () { staticCrash (); } } class Foo<T1, T2> { public void Throw () { throw new Exception (); } public void T...
19.803738
71
0.598395
[ "MIT" ]
06needhamt/runtime
src/mono/mono/tests/generic-stack-traces.2.cs
2,119
C#