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
using System; using System.Linq; namespace Open_Lab_03._10 { public class Checker { public int GetNumberOfCharsInString(char letter, string str) { var count = str.Count(x => x == letter); return count; } } }
17.4375
68
0.551971
[ "MIT" ]
Grazog666/Open-Lab-03.10
Open-Lab-03.10/Checker.cs
281
C#
using System; using System.Collections.Generic; using System.Linq; using Mirror.RemoteCalls; using UnityEngine; namespace Mirror { /// <summary>NetworkServer handles remote connections and has a local connection for a local client.</summary> public static class NetworkServer { static boo...
46.177238
416
0.555603
[ "MIT" ]
kotauchisunsun/MetaSample
Assets/Mirror/Runtime/NetworkServer.cs
77,901
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 "li...
47.84
179
0.662375
[ "Apache-2.0" ]
philasmar/aws-sdk-net
sdk/src/Services/Lex/Generated/Model/BadGatewayException.cs
5,980
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. /****************************************************************************** * This file is auto-generated from ...
38.495122
185
0.573275
[ "MIT" ]
06needhamt/runtime
src/coreclr/tests/src/JIT/HardwareIntrinsics/X86/Sse2/Insert.Int16.129.cs
15,783
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> //---------------------------------------------...
23.2
80
0.551061
[ "MIT" ]
HFX-93/luban_examples
Projects/UnityConfigReload/Assets/Gen/Code/test/DetectEncoding.cs
1,508
C#
using System; using System.CodeDom.Compiler; using System.ComponentModel; using System.Diagnostics; using System.Runtime.CompilerServices; using System.Xml.Serialization; namespace Workday.FinancialAid { [GeneratedCode("System.Xml", "4.6.1590.0"), DesignerCategory("code"), DebuggerStepThrough, XmlType(Namespace = "ur...
25.935897
136
0.784726
[ "MIT" ]
matteofabbri/Workday.WebServices
Workday.FinancialAid/Person_Name_Suffix_DataType.cs
4,046
C#
using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; namespace Placeholder { public class Startup { public Startup(IConfiguration configuration) { ...
29.55102
106
0.593923
[ "Apache-2.0" ]
SteeltoeOSS/Samples
Configuration/src/Placeholder/Startup.cs
1,450
C#
using System; using System.Collections.Generic; using System.Linq; using System.Reflection.Emit; using System.Runtime.InteropServices; using System.Runtime.InteropServices.ComTypes; using Vanara.Extensions; using Vanara.InteropServices; namespace Vanara.PInvoke { /// <summary>Platform invokable enumerated types, con...
37.632058
139
0.70092
[ "MIT" ]
AndreGleichner/Vanara
PInvoke/Ole/Ole32/WTypes.cs
20,662
C#
using System; using System.Threading.Tasks; namespace ITLIBRIUM.BddToolkit.Examples { public interface PrePaidAccountHistoryDao { Task Append(Recharged recharged); public Task<PrePaidAccountHistory> GetBy(Guid accountId); } }
23.090909
65
0.740157
[ "MIT" ]
Magicianred/BDD-toolkit-dotnet
BddToolkit.Examples.UseCases/PrePaidAccountHistoryDao.cs
254
C#
using hcloud_api.Models.Objects.Datacenters; using Newtonsoft.Json; namespace hcloud_api.Models.Objects { public class Datacenter { /// <summary> /// ID of the Resource /// </summary> [JsonProperty("id")] public int Id { get; set; } /// <summary> /// Un...
25.472222
54
0.549618
[ "MIT" ]
djsvist/hcloud-api-net
hcloud-api/Models/Objects/Datacenter.cs
919
C#
#region Copyright (c) OPTANO GmbH // //////////////////////////////////////////////////////////////////////////////// // // OPTANO GmbH Source Code // Copyright (c) 2010-2021 OPTANO GmbH // ALL RIGHTS RESERVED. // // The entire contents of this file is protected by German and // Internati...
41.851724
146
0.566038
[ "MIT" ]
OPTANO/optano.algorithm.tuner.examples
Source/Tuner.Application/Optano.Algorithm.Tuner.Application/ApplicationRunnerConfiguration.cs
12,139
C#
using UnityEngine; using System.Collections.Generic; /// <summary> /// Example script that can be used to show tooltips. /// </summary> [AddComponentMenu("NGUI/UI/Tooltip")] public class UITooltip : MonoBehaviour { static protected UITooltip mInstance; public Camera uiCamera; public UILabel text; public UISprite...
26.931818
96
0.666878
[ "Unlicense" ]
Skipbits/TinyBox
Assets/NGUI/Scripts/UI/UITooltip.cs
4,740
C#
using System; using System.Collections.Generic; using System.Linq; using Brightcove.MediaFramework.Brightcove.Entities; using Brightcove.MediaFramework.Brightcove.Pipelines.VideoUpload; using Sitecore.Data.Items; using Sitecore.MediaFramework.Diagnostics; namespace Brightcove.MediaFramework.Brightcove.Upload { pu...
28.71831
108
0.680726
[ "Apache-2.0" ]
KRazguliaev/pmi.sitecore.9.1.brightcove
src/Brightcove.MediaFramework.Brightcove/Upload/StorageServiceManager.cs
2,041
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Unit : MonoBehaviour { public static Dictionary<string, List<Unit>> unitsByType; public string type; public float health = 100; public GameObject healthBarFront; //the state of the unit public STATE s...
28.011236
151
0.593261
[ "MIT" ]
enyaw15/LudumDare44
Assets/Scripts/Unit.cs
2,495
C#
using System; namespace TeaDriven.Graphology.Visualization { public class TextGraphVisualization : IGraphVisualization { #region Dependencies private readonly IGetNodeString _getNodeString; #endregion Dependencies #region Constructors public TextGraphVisualization(I...
23.529412
91
0.618333
[ "MIT" ]
TeaDrivenDev/Graphology
Src/TeaDriven.Graphology/Visualization/TextGraphVisualization.cs
1,202
C#
using Microsoft.AspNet.OData.Builder; using Microsoft.OData.Edm; using System; namespace WidgetWebAPI.Support { class DomainModelBuilder : ODataConventionModelBuilder { #region Constructor(s) public DomainModelBuilder(IServiceProvider serviceProvider) : base(serviceProvider) { } #endregion public overrid...
37.246154
118
0.702189
[ "MIT" ]
mitselplik/widget-web-api
Support/DomainModelBuilder.cs
2,423
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; namespace hotspot { static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] s...
22.956522
66
0.583333
[ "Apache-2.0" ]
cybex-dev/Wifi-Hotspot
hotspot-source/hotspot/Program.cs
530
C#
using EventStore.ClientAPI; using NUnit.Framework; using EventStore.Core.Tests.ClientAPI.Helpers; using EventStore.Core.Tests.Helpers; namespace EventStore.Core.Tests.ClientAPI.Embedded { public class happy_case_writing_and_subscribing_to_normal_events_manual_ack : ClientAPI. happy_case_writing_and_subscribing_...
33.580645
113
0.838617
[ "Apache-2.0", "CC0-1.0" ]
01100010011001010110010101110000/EventStore
src/EventStore.Core.Tests/ClientAPI/Embedded/persistent_connect_integration_tests.cs
2,084
C#
using Exilland.GodotCon.CardEffects.Card.Cards; using Godot; using GodotOnReady.Attributes; using System; namespace Exilland.GodotCon.CardEffects.Card { public partial class Card : Control { [Signal] public delegate void StopDrag(); [OnReadyGet] private Label title = null!; [On...
27.444444
88
0.47085
[ "MIT" ]
Exilland/GodotCon2021-CardEffectsExample
01 - SceneBased/Card/Card.cs
2,470
C#
using System; using System.Collections.Generic; using JSIL; public static class Program { public static void Main (string[] args) { var fn = Builtins.CreateNamedFunction<Func<int, int>>( "Test", new[] { "argInt" }, @"return argInt + closureInt;", new { c...
24.35
62
0.507187
[ "MIT" ]
RedpointGames/JSIL
Tests/SpecialTestCases/CreateNamedFunction.cs
487
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("Cl...
38.72973
84
0.748779
[ "MIT" ]
RevProject-1/Logic
ClientManagement.Backend/ClientManagement.Backend.Logic/Properties/AssemblyInfo.cs
1,436
C#
using System; using NHapi.Base.Model; using NHapi.Base.Log; using NHapi.Base; using NHapi.Base.Model.Primitive; namespace NHapi.Model.V281.Datatype { ///<summary> /// <p>The HL7 DDI (Daily Deductible Information) data type. Consists of the following components: </p><ol> /// <li>Delay Days (NM)</li> /// <li>Monetary ...
28.646552
133
0.663256
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
AMCN41R/nHapi
src/NHapi.Model.V281/Datatype/DDI.cs
3,323
C#
#if USE_UNI_LUA using LuaAPI = UniLua.Lua; using RealStatePtr = UniLua.ILuaState; using LuaCSFunction = UniLua.CSharpFunctionDelegate; #else using LuaAPI = XLua.LuaDLL.Lua; using RealStatePtr = System.IntPtr; using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; #endif using XLua; using System.Collections.Generic; name...
26.081818
197
0.598815
[ "MIT" ]
zxsean/DCET
Unity/Assets/Model/XLua/Gen/XLuaCSObjectWrapXLuaCSObjectWrapXLuaCSObjectWrapPathfindingRVORVOQuadtreeWrapWrapWrapWrap.cs
2,871
C#
namespace SmartHouse.Infrastructure.Data.Helpers { public class RedisSettings { public string Connection { get; set; } public int DatabaseId { get; set; } public string Password { get; set; } } }
25.777778
49
0.633621
[ "MIT" ]
JeanRasin/SmartHouse
SmartHouse.Infrastructure.Data/Helpers/RedisSettings.cs
234
C#
// Generated class v2.14.0.0, can be modified namespace NHtmlUnit.Svg { public partial class SvgGroup { } }
11.818182
46
0.615385
[ "Apache-2.0" ]
HtmlUnit/NHtmlUnit
app/NHtmlUnit/NonGenerated/Svg/SvgGroup.cs
130
C#
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ namespace Microsoft.ServiceFab...
42.883495
144
0.587276
[ "MIT" ]
aL3891/service-fabric-client-dotnet
src/Microsoft.ServiceFabric.Client.Http/Serialization/RepairTaskUpdateHealthPolicyDescriptionConverter.cs
4,417
C#
#if !NOSOCKET using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace NBitcoin.Protocol { public interface MessageListener<in T> { void PushMessage(T message); } ...
20.006757
100
0.651469
[ "MIT" ]
Ilchuk-Mihail/NBitcoin
NBitcoin/Protocol/MessageListener.cs
2,963
C#
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using Microsoft.MixedReality.Toolkit.Utilities.Gltf.Schema.Extensions; using System; using System.Collections.Generic; using UnityEngine; namespace Microsoft.MixedReality.Toolkit.Utilities.Gltf.Schema { [Serializable] publi...
32.208333
133
0.557999
[ "MIT" ]
HyperLethalVector/ProjectEsky-UnityIntegration
Assets/MRTK/Core/Utilities/Gltf/Schema/GltfObject.cs
4,640
C#
using System; using System.Threading.Tasks; using System.Web.Http; using OpenInvoicePeru.Comun.Dto.Intercambio; using OpenInvoicePeru.Firmado; using OpenInvoicePeru.Servicio; using Swashbuckle.Swagger.Annotations; namespace OpenInvoicePeru.WebApi.Controllers { /// <inheritdoc /> public class Enviar...
35.74026
117
0.550872
[ "Apache-2.0" ]
cibernav/openinvoiceperu-1
OpenInvoicePeru/OpenInvoicePeru.WebApi/Controllers/EnviarResumenController.cs
2,754
C#
// Copyright (c) .NET Foundation and Contributors (https://dotnetfoundation.org) // Copyright (c) 2018-2021 Stride and its contributors (https://stride3d.net) // Copyright (c) 2011-2018 Silicon Studio Corp. (https://www.siliconstudio.co.jp) // See the LICENSE.md file in the project root for full license information. u...
29.076923
81
0.677249
[ "MIT" ]
Ethereal77/stride
sources/engine/Stride.Shaders.Parser/Analysis/StatementNodeCouple.cs
756
C#
using System; using Xamarin.Forms; using Xamarin.Forms.Xaml; namespace XamarinChromecast { public partial class App : Application { public App() { InitializeComponent(); MainPage = new MainPage(); } protected override void OnStart() { }...
15.724138
42
0.524123
[ "MIT" ]
jorgediegocrespo/XamarinChromecast
XamarinChromecast/XamarinChromecast/XamarinChromecast/App.xaml.cs
458
C#
//////////////////////////////////////////////////////////////////////////////// //EF Core Provider for LCPI OLE DB. // IBProvider and Contributors. 27.04.2019. using System; using System.Diagnostics; using System.Linq.Expressions; namespace Lcpi.EntityFrameworkCore.DataProvider.L...
37.333333
121
0.643929
[ "MIT" ]
ibprovider/Lcpi.EFCore.LcpiOleDb
Code/Provider/Source/Basement/EF/Root/Query/Local/Expressions/Methods/Translators/DbMath/ETranslator__DbMath__std__Abs__NullableSByte.cs
2,802
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class LookTowards : MonoBehaviour,IMove { [SerializeField] private Transform _targetTransform; [SerializeField] private bool isAllTimeUpdate = false; private bool _canMove = false; public void Setup(GameObjec...
21.96
79
0.618397
[ "MIT" ]
tanvirfiji/Circular-Shoot
Assets/Script/Enemy/LookTowards.cs
1,100
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using Microsoft.AspNetCore.Mvc; using Signum.Engine.Authorization; using Signum.Utilities; using Signum.Utilities.ExpressionTrees; using Signum.Entities.Profiler; using System.Drawing; using Signum....
34.766234
158
0.529324
[ "MIT" ]
AlejandroCano/extensions
Signum.React.Extensions/Profiler/ProfilerHeavyController.cs
8,031
C#
// Download the twilio-csharp library from twilio.com/docs/csharp/install using System; using Twilio; class Example { static void Main(string[] args) { // Find your Account Sid and Auth Token at twilio.com/user/account string AccountSid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"; string AuthToken = "your_...
34.444444
153
0.769355
[ "MIT" ]
PatNeedham/api-snippets
rest/sip-in/associate-control-domain/associate-control-domain.4.x.cs
620
C#
//------------------------------------------------------------------------------ // <auto-generated /> // // This file was automatically generated by SWIG (http://www.swig.org). // Version 4.0.1 // // Do not make changes to this file unless you know what you are doing--modify // the SWIG interface file instead. ...
37.022727
137
0.631062
[ "Apache-2.0" ]
andrew-stakiwicz-r3/financial_derivatives_demo
quantlib_swig_bindings/CSharp/csharp/SARCurrency.cs
1,629
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.901099
161
0.672369
[ "Apache-2.0" ]
GitGaby/aws-sdk-net
sdk/src/Services/IoT/Generated/Model/Internal/MarshallTransformations/SetDefaultPolicyVersionRequestMarshaller.cs
3,449
C#
using System; using System.IO; using System.Threading; using System.Threading.Tasks; using Telegram.Bot; using Telegram.Bot.Args; using Telegram.Bot.Types.Enums; namespace CPNewbieBot { internal class Program { static ITelegramBotClient TelegramBotClient; static void Main(string[] args) ...
41.101449
133
0.610014
[ "MIT" ]
JoaoBaptMG/CPNewbieBot
CPNewbieBot/Program.cs
2,838
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. namespace Microsoft.ML.Probabilistic.Learners.Tests { using System; using System.Collections.Generic; us...
42.788462
111
0.603596
[ "MIT" ]
0xflotus/infer
test/Learners/LearnersTests/Comparers.cs
4,450
C#
using System; using System.Buffers; using System.IO; using System.Net; using System.Net.Sockets; using System.Threading; using System.Threading.Tasks; using CommandLine; namespace PortLogger { internal static class Program { private static async Task Main(string[] args) { await Par...
32.70625
115
0.506784
[ "MIT" ]
doxakis/PortLogger
PortLogger/Program.cs
5,235
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...
48.354839
178
0.688292
[ "Apache-2.0" ]
DetlefGolze/aws-sdk-net
sdk/src/Services/Route53/Generated/Model/NoSuchTrafficPolicyInstanceException.cs
5,996
C#
/* * Copyright 2012 The Netty Project * * The Netty Project licenses this file to you 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...
35.118644
104
0.69112
[ "MIT" ]
cuteant/SpanNetty
src/DotNetty.Buffers/UnpooledUnsafeDirectByteBuffer.NetStandard.cs
2,074
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 osu.Framework.Graphics; using osu.Game.Graphics; using osu.Game.Graphics.UserInterface; using osu.Framework.Graphics.Containers; using osu.Game.Graphics.Spr...
32.215686
87
0.637858
[ "MIT" ]
CenTdemeern1/osu
osu.Game/Overlays/Comments/Buttons/ShowMoreRepliesButton.cs
1,595
C#
namespace CyberCAT.Core.DumpedEnums { public enum worldgeometryaverageNormalDetectionHelperQueryStatus { Finished = 0, NoGeometry = 1 } }
16.111111
65
0.786207
[ "MIT" ]
Deweh/CyberCAT
CyberCAT.Core/Enums/Dumped Enums/worldgeometryaverageNormalDetectionHelperQueryStatus.cs
145
C#
using UnrealBuildTool; public class Test : ModuleRules { public Test(ReadOnlyTargetRules Target) : base(Target) { PCHUsage = ModuleRules.PCHUsageMode.UseExplicitOrSharedPCHs; bUseRTTI = true; PublicDependencyModuleNames.AddRange ( new string[] { "Core" } ); PrivateDependencyModuleNames.Add...
15.78125
62
0.609901
[ "Apache-2.0" ]
IhnoL/GoogleMockUnreal
Plugins/CustomVariantManager/Source/0Test/Test.Build.cs
505
C#
using GutenTag; namespace GutenTag.Hspi { public class Ruby : Tag { public Ruby() : base("ruby") { } } }
12.818182
36
0.496454
[ "MIT" ]
alexdresko/GutenTag.Hspi
GutenTag.Hspi/Ruby.cs
141
C#
using EFCore.BulkExtensions.SqlAdapters; using Microsoft.Data.SqlClient; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Storage; using NetTopologySuite.Geometries; using NetTopologySuite.IO; using System; using System.Collections; using System.Collections.Generic; using System.Data; using Sys...
50.04
242
0.56058
[ "MIT" ]
huer12/EFCore.BulkExtensions
EFCore.BulkExtensions/SQLAdapters/SQLServer/SqlServerAdapter.cs
35,030
C#
using System.Net.Sockets; namespace kcp2k { public static class Extensions { // 100k attempts of 1 KB increases = default + 100 MB max public static void SetReceiveBufferToOSLimit(this Socket socket, int stepSize = 1024, int attempts = 100_000) { // setting a too la...
37.818182
118
0.535256
[ "MIT" ]
yacoubb/blob-game
2021-blob-game-unity/Assets/Mirror/Runtime/Transport/KCP/kcp2k/highlevel/Extensions.cs
1,248
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using System; using System.ComponentModel; namespace Azure.Security.KeyVault.Certificates { /// <summary> /// Elliptic Curve Cryptography (ECC) curve names. /// </summary> public readonly struct Certificat...
49.488372
139
0.652726
[ "MIT" ]
0rland0Wats0n/azure-sdk-for-net
sdk/keyvault/Azure.Security.KeyVault.Certificates/src/CertificateKeyCurveName.cs
4,258
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.Collections.Generic; using osu.Game.Online.API.Requests.Responses; namespace osu.Game.Online.API.Requests { public class GetUserRecentActivitie...
25.680851
95
0.61309
[ "MIT" ]
123tris/osu
osu.Game/Online/API/Requests/GetUserRecentActivitiesRequest.cs
1,163
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. //...
32.391304
84
0.520805
[ "Apache-2.0" ]
siderisltd/UspeliteProject
Tools/DatabaseMigrator/wp_usermeta.cs
745
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using Photon.Pun; using Photon.Realtime; public class RoomListingMenu : MonoBehaviourPunCallbacks { [SerializeField] private Transform container; [SerializeField] private RoomListing roomListing; private List<RoomListing> _lis...
28.166667
89
0.54776
[ "Apache-2.0" ]
rsaz/mankind
Assets/_Game/Scripts/Network/Client/Lobby/RoomListingMenu.cs
1,185
C#
namespace ColorCanvas.Models { internal struct HsvColor { public double H; public double S; public double V; public HsvColor(double h, double s, double v) { H = h; S = s; V = v; } } }
16.588235
53
0.453901
[ "Apache-2.0" ]
KHCmaster/PPD
Win/ColorCanvas/Models/HsvColor.cs
284
C#
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using Xunit; namespace System.Text.Tests { public class EncodingEquals { #region Positive Test Cases // Verify method Equals [Fact] ...
24.227273
101
0.606004
[ "MIT" ]
690486439/corefx
src/System.Text.Encoding/tests/Encoding/EncodingEquals.cs
533
C#
/*-------------------------------------------------------------------------------------- Copyright © 2013 Theodoros Bebekis teo.bebekis@gmail.com --------------------------------------------------------------------------------------*/ using System; ...
30.153846
97
0.439626
[ "Unlicense" ]
tbebekis/Tripous
Tripous.Data/Metadata/IMetaNodeList.cs
1,179
C#
using FluentNHibernate.Cfg; using FluentNHibernate.Cfg.Db; using NHibernate; using NHibernate.Cfg; using NHibernate.Tool.hbm2ddl; #if (AddDependencyInjection == false) using System; #else using DefaultLambda.DependencyInjection.ConfigurationService; #endif namespace DefaultLambda.Database { public class NHibernat...
28.701754
91
0.622861
[ "MIT" ]
jbonadiman/aws-lambda-template
Database/NHibernateHelper.cs
1,638
C#
using System.Text.Json.Serialization; using System.Text.RegularExpressions; namespace Sidekick.Business.Apis.Poe.Trade.Data.Stats { public class StatData { public string Id { get; set; } public string Text { get; set; } public string Type { get; set; } public StatDataOption Opt...
22.958333
53
0.61343
[ "MIT" ]
PeteyPii/Sidekick
src/Sidekick.Business/Apis/Poe/Trade/Data/Stats/StatData.cs
551
C#
#region License // Copyright (c) 2011, ClearCanvas Inc. // All rights reserved. // http://www.clearcanvas.ca // // This software is licensed under the Open Software License v3.0. // For the complete license, see http://www.clearcanvas.ca/OSLv3.0 #endregion using System; using System.Collections.Generic; ...
24.54717
90
0.734819
[ "Apache-2.0" ]
SNBnani/Xian
Ris/Client/Admin/View/WinForms/ProcedureTypeSummaryComponentView.cs
1,301
C#
using System; using Xunit.Abstractions; namespace Xunit.ConsoleClient { public class DiagnosticMessageSink : TestMessageSink { readonly string assemblyDisplayName; readonly object consoleLock; readonly ConsoleColor displayColor; readonly bool noColor; DiagnosticMessage...
41.411765
150
0.672822
[ "Apache-2.0" ]
erikbra/xunit
src/xunit.console/Sinks/DiagnosticMessageSink.cs
2,114
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Native.Csharp.App.Gameplay.CharacterUtil { public class TimeHandler { } }
15.928571
50
0.726457
[ "MIT" ]
apflu/DungeonBot
Native.Csharp/App/Gameplay/CharacterUtil/TimeHandler.cs
225
C#
using System; namespace ClassToString { class Person { private string name; public Person(string name) { this.name = name; } // ToString() 메서드 오버라이드(재정의) public override string ToString() => $"[Person 클래스: {this.name}]"; } class ClassToStr...
18.62963
74
0.514911
[ "MIT" ]
VisualAcademy/DotNet
DotNet/DotNet/44_Override/06_ClassToString/ClassToString.cs
567
C#
using FEZAnalyzer.Entity; using OpenCvSharp; namespace FEZAnalyzer.ResultRecognize.NewUI.Base { internal class WarTotalScoreScanner { private static readonly Vec3b White = new Vec3b(0xFF, 0xFF, 0xFF); private const int Width = 60; private const int Height = 30; // 走査するy座標 ...
36.133333
123
0.30512
[ "MIT" ]
saipan-fez/fez_analyzer
src/FEZAnalyzer/FEZAnalyzer.ResultRecognize/NewUI/Base/WarTotalScoreScanner.cs
4,522
C#
using UnityEngine; namespace Voxels.Utils { public static class MathUtils { public static float Remap(float inValue, float inMin, float inMax, float outMin, float outMax) { return outMin + (outMax - outMin) * ((inValue - inMin) / (inMax - inMin)); } public static Vector3 UnpackRotation(Byte3 rot) { var p...
29.961538
98
0.643132
[ "MIT" ]
TxN/VoxelLand
Assets/Scripts/Utils/MathUtils.cs
779
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by \generate-code.bat. // // Changes to this file will be lost when the code is regenerated. // The build server regenerates the code before each build and a pre-build // step...
44.662017
225
0.615495
[ "MIT" ]
thomas-chizek/ExtendedSIUnits
UnitsNet/GeneratedCode/Quantities/ElectricResistance.g.cs
41,627
C#
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. // Ported from um/WebServices.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. namespace TerraFX.Interop { ...
37.133333
145
0.78456
[ "MIT" ]
DaZombieKiller/terrafx.interop.windows
sources/Interop/Windows/um/WebServices/WS_HTTP_HEADER_AUTH_SECURITY_BINDING_TEMPLATE.cs
559
C#
using Microsoft.Bot.Builder; using Microsoft.Bot.Builder.Dialogs; using Microsoft.Bot.Solutions.Middleware.Telemetry; using System; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; namespace Microsoft.Bot.Solutions.Testing.Fakes { public class MockLuisRecognizer : ITelemetry...
34.929825
135
0.68006
[ "MIT" ]
dipanjan77/AI
solutions/Virtual-Assistant/src/csharp/microsoft.bot.solutions/Testing/Fakes/MockLuisRecognizer.cs
1,993
C#
using System; using Canon.Eos.Framework.Interfaces; namespace Canon.Eos.Framework { public abstract class EosDisposable : IDisposable, IEosAssertable { ~EosDisposable() { this.Dispose(false); } internal protected void CheckDisposed() { if (this....
23.744186
71
0.537708
[ "MIT" ]
BresciMa/digiCamControl
Canon.Eos.Framework/EosDisposable.cs
1,023
C#
using System; using System.Text; using GammaJul.ReSharper.ForTea.Psi.Directives; using GammaJul.ReSharper.ForTea.Tree; using JetBrains.Annotations; using JetBrains.Application; using JetBrains.ProjectModel; using JetBrains.ReSharper.Psi; using JetBrains.ReSharper.Psi.Tree; using JetBrains.Util; namespace GammaJul.ReSh...
39.446352
152
0.747035
[ "Apache-2.0" ]
ForNeVeR/ForTea
dotnet/source/GammaJul.ReSharper.ForTea/Psi/T4CSharpCodeGenerator.cs
9,191
C#
using System; using System.Threading.Tasks; namespace loadify.Spotify { public static class SpotifyObject { public static Task<bool> WaitForInitialization(Func<bool> func) { return Task.Factory.StartNew(() => { while (true) { ...
20.47619
71
0.446512
[ "MIT" ]
LukiLeu/loadify
src/loadify/Spotify/SpotifyObject.cs
432
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("Box...
36.482759
84
0.744802
[ "Apache-2.0" ]
aliozgur/xamarin-forms-book-samples
Chapter21/BoxViewCircle/BoxViewCircle/BoxViewCircle.Windows/Properties/AssemblyInfo.cs
1,059
C#
using System; using System.Linq; using System.Threading.Tasks; using Ev.ServiceBus.Abstractions; using Ev.ServiceBus.Management; using Ev.ServiceBus.Reception; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; namespace Ev.ServiceBus { public class ServiceBusEngine { private read...
37.88716
138
0.570812
[ "MIT" ]
EcovadisCode/Ev.ServiceBus
src/Ev.ServiceBus/ServiceBusEngine.cs
9,739
C#
using System; using System.CodeDom.Compiler; using System.ComponentModel; using System.Diagnostics; using System.Runtime.CompilerServices; using System.Xml.Schema; using System.Xml.Serialization; namespace Workday.Integrations { [GeneratedCode("System.Xml", "4.6.1590.0"), DesignerCategory("code"), DebuggerStepThrough...
21.934426
136
0.733184
[ "MIT" ]
matteofabbri/Workday.WebServices
Workday.Integrations/Display_OptionObjectType.cs
1,338
C#
using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Identity.UI; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Configuration; using Microsoft.Extensions...
35.693333
143
0.621965
[ "MIT" ]
n3v3r94/JustChart
TestCharts/Startup.cs
2,679
C#
// ***************************************************************************** // BSD 3-Clause License (https://github.com/ComponentFactory/Krypton/blob/master/LICENSE) // © Component Factory Pty Ltd, 2006 - 2016, All rights reserved. // The software and associated documentation supplied hereunder are the // prop...
57.175
188
0.728465
[ "BSD-3-Clause" ]
Krypton-Suite-Legacy-Archive/Krypton-NET-5.450
Source/Krypton Components/ComponentFactory.Krypton.Workspace/Properties/AssemblyInfo.cs
2,291
C#
using Microsoft.EntityFrameworkCore.Migrations; namespace WebWithAngular.Migrations { public partial class Upgrade_ABP_381 : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn<string>( name: "LoginProvider", ...
29.75
71
0.542017
[ "MIT" ]
Rdh9810/ABPwithAngular
aspnet-core/src/WebWithAngular.EntityFrameworkCore/Migrations/20180731132139_Upgrade_ABP_3.8.1.cs
954
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; public partial class WCompany_payResult : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { string timestamp ...
35.947368
113
0.61347
[ "MIT" ]
dlbxiaoer/dlb
CShareDemo/payResult.aspx.cs
1,398
C#
using System.Collections.Generic; using System.Linq; using System.Security.Claims; using System.Threading.Tasks; using Altinn.Authorization.ABAC.Xacml; using Altinn.Authorization.ABAC.Xacml.JsonProfile; namespace App.IntegrationTests.Mocks.Services { public class PepAuthorizationMockSI : Altinn.Common.PEP.Interfa...
41.865385
142
0.617593
[ "BSD-3-Clause" ]
andreas-rafaelsen/altinn-studio
src/Altinn.Apps/AppTemplates/AspNet/App.IntegrationTests/Mocks/Services/PepAuthorizationMockSI.cs
4,354
C#
using System; using System.IO; using System.Runtime.Serialization; using System.Xml.Linq; namespace Command.Business { /// <summary> /// /// </summary> public sealed class CommandExecuteResponse : CommandExecuteRequest { #region Fields #endregion #region Constructors ...
33.73494
140
0.558571
[ "MIT" ]
rahilkidwai/CommandService
Command.Business/CommandExecuteResponse.cs
2,802
C#
/* * Copyright 2010-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "l...
28.070175
107
0.644375
[ "Apache-2.0" ]
Bynder/aws-sdk-net
sdk/src/Services/AppStream/Generated/Model/StopFleetRequest.cs
1,600
C#
using System; using Microsoft.EntityFrameworkCore.Migrations; namespace ProsperiDevLab.Data.Migrations { public partial class Initial : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "Currencies", ...
40.68617
115
0.47065
[ "MIT" ]
lrmendess/ProsperiDevLab
ProsperiDevLab/Data/Migrations/20210607144919_Initial.cs
7,653
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Charlotte.GameCommons; namespace Charlotte.Games.Surfaces { public class Surface_MessageWindow : Surface { public static bool Hide = false; // Game から制御される。 private double A = 1.0; public Surface_MessageWindow() { ...
19.40625
106
0.698873
[ "MIT" ]
soleil-taruto/Elsa
e20201017_NovelAdv_Base/Elsa20200001/Elsa20200001/Games/Surfaces/Surface_MessageWindow.cs
639
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; namespace CallingDotNetFrom...
22.793103
64
0.75643
[ "MIT" ]
BlazorHub/blazor-university
src/JavaScriptInterop/CallingDotNetFromJavaScript/Program.cs
661
C#
// namespace WeatherViewerApplication.Module { using Infrastructure; using Prism.Modularity; using Prism.Regions; public class TopLevelModule : IModule { private readonly IRegionViewRegistry _regionViewRegistry; public TopLevelModule(IRegionViewRegistry regionViewRegistry) ...
25.454545
111
0.683929
[ "Apache-2.0" ]
uk-mashfield/WeatherApp2
WeatherViewerApplication/Module/TopLevelModule.cs
562
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> //--...
38.69802
184
0.5481
[ "BSD-3-Clause" ]
napalmtorch/MOSA-Project
Source/Mosa.Tool.Debugger/Properties/Resources.Designer.cs
15,636
C#
 namespace HOLMS.Types.Primitive { public partial class ServerActionConfirmation { public ServerActionConfirmation(bool result) { ActionSuccessful = result; } } }
22.222222
54
0.66
[ "MIT" ]
PietroProperties/holms.platformclient.net
csharp/HOLMS.Platform/HOLMS.Platform/Types/Primitive/ServerActionConfirmation.cs
202
C#
using System.Windows; namespace MinimalMVVM.Views { /// <summary> /// Interaction logic for TwitterBrowser.xaml /// </summary> public partial class TwitterBrowserView : Window { public TwitterBrowserView() { InitializeComponent(); TwitterBrowserViewModel twi...
24.888889
92
0.645089
[ "MIT" ]
Pepsi4/MVVM-Twitter
MinimalMVVM/Views/TwitterBrowserView.xaml.cs
450
C#
using System; namespace TheCodingMonkey.Serialization.Tests.Models { [TextSerializable] public class CsvWithOptionsRecord { [TextField(0)] public int Id { get; set; } [TextField(1)] public string Name { get; set; } [TextField(2)] public string Description { ...
25.578947
52
0.580247
[ "MIT" ]
JTOne123/TextSerializer
Tests/Models/CsvWithOptionsRecord.cs
488
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace WindBarrierReinforcement.DataModels.NSPage04 { public enum EZonePosition { Start, Middle, End } }
16.375
54
0.698473
[ "Apache-2.0" ]
vbuweb123/windturbine3Dreinforcement
WindBarrierReinforcement/DataModels/NSPage04/EZonePosition.cs
264
C#
using System; namespace NETAPI.Models { public class ResponseBase<T> { public bool Success { get; set; } public string? Message { get; set; } public virtual T? Data { get; set; } public virtual Exception? Exception { get; set; } } }
21.461538
57
0.591398
[ "MIT" ]
abnegate/dotnet-netapi
NETAPI/Model/Response.cs
281
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-generate...
43.888889
180
0.607595
[ "MIT" ]
SmilingAngelsTea/SATSONMaid
Properties/Resources.Designer.cs
2,767
C#
using System; using System.ComponentModel.DataAnnotations.Schema; namespace WebApi.Entities { public class Patient { public int Id { get; set; } public string FirstName { get; set; } public string LastName { get; set; } public DateTime DoB { get; set; } pub...
25.45
57
0.59332
[ "MIT" ]
whitie11/CTT_WebAPI
Entities/Patient.cs
509
C#
using System; using System.Collections.Generic; using System.Linq; using System.Reactive.Linq; using Adaptive.ReactiveTrader.Client.Domain.Models.ReferenceData; using Adaptive.ReactiveTrader.Client.Domain.ServiceClients; namespace Adaptive.ReactiveTrader.Client.Domain.Repositories { class ReferenceDataRepository ...
45.424242
154
0.698466
[ "Apache-2.0" ]
Applied-Duality/ReactiveTrader
src/Adaptive.ReactiveTrader.Client.Domain/Repositories/ReferenceDataRepository.cs
1,501
C#
using System; using System.CodeDom.Compiler; using System.ComponentModel; using System.Diagnostics; using System.Runtime.CompilerServices; using System.Xml.Schema; using System.Xml.Serialization; namespace Workday.Payroll.Interface { [GeneratedCode("System.Xml", "4.6.1590.0"), DesignerCategory("code"), DebuggerStepTh...
18.248677
136
0.694114
[ "MIT" ]
matteofabbri/Workday.WebServices
Workday.Payroll.Interface/Local_Person_Name_Detail_DataType.cs
3,449
C#
// <auto-generated/> #pragma warning disable 1591 #pragma warning disable 0414 #pragma warning disable 0649 #pragma warning disable 0169 namespace Demo_04.Pages { #line hidden using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNet...
23.598291
118
0.749366
[ "MIT" ]
PacktPublishing/Blazor-WebAssembly-Projects
Chapter04/Demo_04/obj/HPD/Debug/net5.0/RazorDeclaration/Pages/Window.razor.g.cs
2,761
C#
// <auto-generated> // ReSharper disable ConvertPropertyToExpressionBody // ReSharper disable DoNotCallOverridableMethodsInConstructor // ReSharper disable EmptyNamespace // ReSharper disable InconsistentNaming // ReSharper disable PartialMethodWithSinglePart // ReSharper disable PartialTypeWithSinglePart // ReSharper ...
36.826667
179
0.672339
[ "MIT" ]
enriqueescobar-askida/Kinito.AdventureWorks2017
Context/Person_PhoneNumberType.cs
2,762
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace HallOfBeorn.Models.LotR.Sets.Core { public class EscapeFromDolGuldurNightmareSet : CardSet { protected override void Initialize() { Name = "Escape From Dol Guldur Nightmare"; ...
51.9375
515
0.578821
[ "MIT" ]
danpoage/hall-of-beorn
src/HallOfBeorn/Models/LotR/Sets/Core/EscapeFromDolGuldurNightmareSet.cs
8,313
C#
// Part of FreeLibSet. // See copyright notices in "license" file in the FreeLibSet root directory. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using FreeLibSet.Forms; using FreeLibSet.Data; using...
23.97153
118
0.625297
[ "BSD-2-Clause" ]
a94827/FreeLibSet
ExtDBDocForms/YearGridFilterForm.cs
7,811
C#
using BotSharp.Core.Engines.Dialogflow.Http; using BotSharp.Core.Models; using Newtonsoft.Json; using Newtonsoft.Json.Serialization; using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Net; using System.Text; namespace BotSharp.Core.Engines.Dialogflow { public c...
31.521978
109
0.5346
[ "Apache-2.0" ]
david0718/BotSharp
BotSharp.Core/Engines/Dialogflow/AIDataService.cs
5,739
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace RedSharp.Events.Sys.Interfaces { /// <summary> /// Extension for the existing interface, just to support unsubscribing as a standard. /// </summary> public interface IEventSour...
30.666667
102
0.677019
[ "MIT" ]
Red-Sharp-Group/Weak-Referenced-Infrastructure
RedSharp.Events.System/Interfaces/IEventSource.cs
646
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("En...
36.294118
84
0.750405
[ "MIT", "Unlicense" ]
NuLL3rr0r/en-fa-phrase-dictionary
TextEngine/Engine/Properties/AssemblyInfo.cs
1,237
C#