content
stringlengths
5
1.04M
avg_line_length
float64
1.75
12.9k
max_line_length
int64
2
244k
alphanum_fraction
float64
0
0.98
licenses
list
repository_name
stringlengths
7
92
path
stringlengths
3
249
size
int64
5
1.04M
lang
stringclasses
2 values
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ /...
35.6
153
0.576244
[ "MIT" ]
AzureMentor/msgraph-sdk-dotnet
src/Microsoft.Graph/Requests/Generated/IManagedAppStatusRequestBuilder.cs
1,246
C#
using TraceabilityEngine.Interfaces.Models.Common; using TraceabilityEngine.StaticData; using System; using System.Collections.Generic; using System.Text; using TraceabilityEngine.Interfaces.DB.DocumentDB; namespace TraceabilityEngine.Interfaces.Models.Products { public interface ITEProduct : ITEProductLite, ITED...
42.926829
75
0.676705
[ "MIT" ]
TraceabilityInternet/TraceabilityDriver
TEInterfaces/Models/Products/ITEProduct.cs
1,762
C#
namespace AngleSharp.Css { using System; /// <summary> /// The collection of (known / used) property names. /// </summary> public static class PropertyNames { /// <summary> /// The align-content declaration. /// </summary> public static readonly String AlignConte...
31.75
98
0.566557
[ "MIT" ]
AngleSharp/AngleSharp.Css
src/AngleSharp.Css/Constants/PropertyNames.cs
43,053
C#
using System; using Xunit; namespace HotChocolate.Types { public class MultiplierPathStringTests { [Fact] public void Create_DefaultConstructor_IsEmpty() { // arrange // act var nameString = new MultiplierPathString(); // assert ...
24.695767
85
0.487306
[ "MIT" ]
Asshiah/hotchocolate
src/HotChocolate/Core/test/Types.Tests/Types/Directives/MultiplierPathStringTests.cs
9,338
C#
namespace Gu.Analyzers.Test.CodeFixes; using System.Collections.Immutable; using Gu.Roslyn.Asserts; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.Diagnostics; using NUnit.Framework; internal static partial class MakeStat...
29.726027
167
0.689862
[ "MIT" ]
JohanLarsson/Gu.Analyzers
Gu.Analyzers.Test/CodeFixes/MakeStaticFixTests.CA1052.cs
2,174
C#
using ClickerGame.Masters; using System; using System.Collections.Generic; namespace ClickerGame.Models { /// <summary> /// 強化インベントリー。 /// </summary> public class EnhancerInventory { /// <summary> /// 強化一覧。 /// </summary> public IReadOnlyCollection<EnhancerMaster> E...
29.901099
99
0.54355
[ "MIT" ]
KuniTatsu/GameJam
Assets/Scripts/Models/EnhancerInventory.cs
3,031
C#
using System; using System.Collections.Generic; using System.Diagnostics; using System.Text; namespace StringConcatBenchmark { class Program { static void Main(string[] args) { // Generate source var source = new List<string>(); for (int i = 0; i < 30000; i+...
24.527778
75
0.492072
[ "MIT" ]
digb/StringConcatBenchmark
StringConcatBenchmark/Program.cs
1,768
C#
namespace ServiceManager.UI.forms { partial class frmConnectTo { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> ...
44.84127
107
0.590973
[ "MIT" ]
MajMcCloud/ServiceManager
ServiceManagerUI/forms/frmConnectTo.Designer.cs
5,652
C#
// ******************************************************************************* // <copyright file="FilterAppliesTo.cs" company="Intuit"> // Copyright (c) 2019 Intuit // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may ...
32.255319
83
0.567942
[ "Apache-2.0" ]
LaudateCorpus1/TSheets-V1-DotNET-SDK
Intuit.TSheets/Model/Enums/FilterAppliesTo.cs
1,518
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Assets.Scripts.IO.Charts { public class ChartFile : JsonFile<ChartFile> { public int ID { get; set; } public string Artist { get; set; } public...
32.713942
139
0.440664
[ "MIT" ]
Darginn/Drum-Smasher
Game/Assets/Scripts/IO/Charts/ChartFile.cs
13,611
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; namespace Assets.Scripts.AI.EnemyStates { public interface IState { //Prepare the state void Enter(Enemy parent); void Update(); void Exit(); } }
17
39
0.647059
[ "MIT" ]
baidenx7/Elebris-Adventures
Pulled Resources/Scripts/AI/EnemyStates/IState.cs
274
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> //-----------------------------------------...
24.333333
81
0.413242
[ "MIT" ]
pavelhristov/ASP.NETWebForms
ASP.NETMasterPages/InternationalCompany/Home.aspx.designer.cs
440
C#
using NUnit.Framework; using HashTable_RansomNote; using System; namespace Tests { public class Tests : Solution { [SetUp] public void Setup() { } [Test] public void HashRansomTest1() { string[] magazine = "give me one grand today night".Spli...
31.864865
172
0.52078
[ "MIT" ]
anathemus/HackerRankChallenges
HackerRankChallenges/HashTable_RansomNote_Test/UnitTest1.cs
2,358
C#
namespace ForumNet.Web.ViewModels.Posts { public class PostsCategoryDetailsViewModel { public int Id { get; set; } public string Name { get; set; } } }
20.111111
46
0.629834
[ "MIT" ]
AnthonyDisasi/ForumNet
Web/ForumNet.Web.ViewModels/Posts/PostsCategoryDetailsViewModel.cs
183
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 requi...
46.253493
258
0.624434
[ "Apache-2.0" ]
CloudHeaven/Azure
src/ResourceManagement/RecoveryServices/RecoveryServicesManagement/Generated/VaultOperationsExtensions.cs
23,173
C#
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
45.944444
159
0.758968
[ "Apache-2.0" ]
AxiosCros/aliyun-openapi-net-sdk
aliyun-net-sdk-rtc/Rtc/Transform/V20180111/DescribeRtcScaleResponseUnmarshaller.cs
2,481
C#
using Microsoft.Maui.Graphics.Text; using Markdig.Syntax; namespace Microsoft.Maui.Graphics.Text.Renderer { public class ListRenderer : AttributedTextObjectRenderer<ListBlock> { protected override void Write( AttributedTextRenderer renderer, ListBlock listBlock) { var start = renderer.Count; rendere...
21.971429
79
0.703511
[ "MIT" ]
eerhardt/Microsoft.Maui.Graphics
src/Microsoft.Maui.Graphics.Text.Markdig/Renderer/ListRenderer.cs
771
C#
using Microsoft.UI.Xaml.Controls; // To learn more about WinUI, the WinUI project structure, // and more about our project templates, see: http://aka.ms/winui-project-info. namespace MasteriesQuest.Pages; /// <summary> /// An empty page that can be used on its own or navigated to within a Frame. /// </...
26.823529
82
0.675439
[ "Unlicense" ]
magisteriis/masteries-quest
MasteriesQuest.Desktop/Pages/SettingsPage.xaml.cs
458
C#
// // Copyright (c) Microsoft. All rights reserved. // // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System.Windows; namespace CustomApplicationClient { public class CustomApplication : Application { protected override void OnStartup(Startu...
28.8125
104
0.67462
[ "MIT" ]
21pages/WPF-Samples
Application Management/CustomApplication/CustomApplicationClient/CustomApplication.cs
461
C#
using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; using AutoMapper; using Elsa.Models; using Elsa.Persistence.YesSql.Documents; using Elsa.Persistence.YesSql.Extensions; using Elsa.Persistence.YesSql.Indexes; using YesSql; namespace Elsa.Persistence.Y...
37.052632
120
0.61411
[ "BSD-3-Clause" ]
jamesdoran/elsa-core
src/persistence/Elsa.Persistence.YesSql/Services/YesSqlWorkflowDefinitionStore.cs
4,224
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using MightyCalc.Calculations.Aggregate.Commands; using MightyCalc.Node; using MightyCalc.Node.Domain; using MightyCalc.Reports; namespace MightyCalc.API { public class AkkaApi : IApiController { private re...
36.666667
102
0.571212
[ "MIT" ]
ContextCore/MightyCalc
src/MightyCalc.API/AkkaApi.cs
3,960
C#
using System; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; using Xunit; namespace Proto.Tests { public class ReceiveTimeoutTests { private static readonly ActorSystem System = new(); private static readonly RootContext Context = System.Root; ...
34.953642
102
0.499242
[ "Apache-2.0" ]
dhavalgajera/protoactor-dotnet
tests/Proto.Actor.Tests/ReceiveTimeoutTests.cs
5,280
C#
namespace WebApi.Boilerplate.Application.Requests.Auth { public class RefreshTokenRequest { public string Token { get; set; } public string RefreshToken { get; set; } } }
24.875
55
0.663317
[ "MIT" ]
bharathwajv/fullstackhero
src/Application/Requests/Auth/RefreshTokenRequest.cs
201
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //--...
41
169
0.590068
[ "MIT" ]
aydensutt/RLBotCSharpExample
CSharpBot/Bot/Properties/Resources.Designer.cs
3,405
C#
using System.Collections.Generic; using System.Windows; using System.Windows.Input; using moddingSuite.Model.Ndfbin; using moddingSuite.Model.Ndfbin.Types; using moddingSuite.ViewModel.Base; namespace moddingSuite.ViewModel.Ndf { public class AddCollectionItemViewModel : ViewModelBase { private readon...
28.213333
144
0.581758
[ "MIT" ]
RemiGC/moddingSuite
moddingSuite/ViewModel/Ndf/AddCollectionItemViewModel.cs
2,118
C#
/* * [The "BSD license"] * Copyright (c) 2011 Terence Parr * All rights reserved. * * Conversion to C#: * Copyright (c) 2011 Sam Harwell, Tunnel Vision Laboratories, LLC * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provid...
40.343373
175
0.652083
[ "MIT" ]
MJRichardson/TypeSql
TypeSql/Parsing/Antlr/Antlr3.Runtime/NoViableAltException.cs
6,697
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace CS014UdalostiOsetreni { public partial class UdalostiOsetreniForm : Form ...
28.559322
130
0.60178
[ "MIT" ]
FatildaIV/CS014UdalostiOsetreni
CS014UdalostiOsetreni/Form1.cs
1,687
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Events; //资源加载模块 public class ResMgr : BaseManager<ResMgr> { //同步加载资源 public T Load<T>(string name) where T:Object{ T res = Resources.Load<T>(name); ; //如果对象是一个GameObject类型的,我把它实例化后,再返回出去直接使用。 ...
26.853659
95
0.610354
[ "MIT" ]
Kamen6666/Unity-FrameWork
Assets/Scripts/ProjectBase/Res/ResMgr.cs
1,259
C#
namespace quicsharp { /// <summary> /// Abstract class to define a frame. The payload of a packet is filled with one or more frames. /// Different type of frame exist. /// </summary> public abstract class Frame { // Section 12.3 Table 3 public abstract byte Type { get; } ...
34.444444
101
0.596774
[ "MIT" ]
quicsharp/quicsharp
lib/Frame.cs
932
C#
// Copyright (c) Stride contributors (https://stride3d.net) and Silicon Studio Corp. (https://www.siliconstudio.co.jp) // Distributed under the MIT license. See the LICENSE.md file in the project root for more information. using System; using System.Collections.Generic; using System.Linq; using System.Reflection; usin...
55.610766
267
0.637267
[ "MIT" ]
Aggror/Stride
sources/core/Stride.Core.AssemblyProcessor/UpdateEngineProcessor.cs
26,860
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class TopBarTurnCountGUI : MonoBehaviour { [SerializeField] TextIconGUI Display; // Start is called before the first frame update void Start() { } // Update is called once per frame void Update(...
23.619048
159
0.685484
[ "MIT" ]
geldoronie/the-azure-lux-game-jam-2021
Assets/Scripts/GUI/TopBarTurnCountGUI.cs
496
C#
// <auto-generated> // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. // // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // re...
48.188445
420
0.575915
[ "MIT" ]
AlonsoMondal/azure-sdk-for-net
sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/VirtualMachineScaleSetVMsOperations.cs
178,490
C#
namespace ShogiCore.Book { partial class BookEditControl { /// <summary> /// 必要なデザイナ変数です。 /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// 使用中のリソースをすべてクリーンアップします。 /// </summary> /// <param name="disposing"...
44.654412
124
0.599868
[ "MIT" ]
ak110/Blunder.BookEditor
Blunder.BookEditor/Book/BookEditControl.Designer.cs
6,363
C#
namespace YoulessNet { using System.Runtime.Serialization; /// <summary> /// Represents the current status of the Youless energy meter /// </summary> [DataContract] public class YoulessStatus { /// <summary> /// Gets the total amount of energy used (in <c>kWh</c>) ...
32
83
0.557639
[ "MIT" ]
Sebazzz/Youless.NET
src/YoulessNet/YoulessStatus.cs
1,442
C#
using System; public class Task02_5 { private static void Main() { Console.WriteLine("Task 2.5. Employee"); Employee employee = new Employee(); Console.Write("Enter your first name: "); employee.FirstName = Console.ReadLine(); Console.Write("Enter your patronymic: ");...
28.92
142
0.583679
[ "MIT" ]
Andrei-Kekov/XT-2018Q4
Epam.Task02/Epam.Task02.05_Employee/Demo.cs
1,448
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...
32.820513
112
0.692969
[ "Apache-2.0" ]
polivbr/pulumi-azure-native
sdk/dotnet/DataMigration/V20180315Preview/Outputs/ConnectToSourceSqlServerTaskInputResponse.cs
1,280
C#
namespace Microsoft.Marketplace.SaaS.SDK.Services.Models { /// <summary> /// Enumerator witrh new status. /// </summary> public enum SubscriptionStatusEnumExtension { /// <summary> /// The pending fulfillment start /// </summary> PendingFulfillmentStart, //...
20.685185
57
0.482543
[ "MIT" ]
Azure/Commercial-Marketplace-SaaS-Accelerator
src/SaaS.SDK.Services/Models/SubscriptionStatusEnumExtension.cs
1,119
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; using Octopus.Cli.Commands.Deployment; using Octopus.Cli.Diagnostics; using Octopus.Cli.Infrastructure; using Octopus.Cli.Repositories; using Octopus.Cli.Util; using Octopus.Client; using Octopus.Client.Ex...
55.75
394
0.629455
[ "Apache-2.0" ]
praveenk2527/octops-cli
source/Octopus.Cli/Commands/Releases/CreateReleaseCommand.cs
16,950
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; namespace Web.Controllers { public class HomeController : Controller { public ActionResult AJMillwork() { return View(); } public ActionResult Services() ...
17.79661
91
0.49619
[ "MIT" ]
tosca/AJ-millwork
Web/Web/Controllers/HomeController.cs
1,052
C#
using System.Collections.Generic; namespace ABPNetCore.Authentication.External { public interface IExternalAuthConfiguration { List<ExternalLoginProviderInfo> Providers { get; } } }
20.4
58
0.745098
[ "MIT" ]
phamquanghien/ZeroProject
aspnet-core/src/ABPNetCore.Web.Core/Authentication/External/IExternalAuthConfiguration.cs
206
C#
//----------------------------------------------------------------------- // <copyright file="ClusterSingletonManagerSettings.cs" company="Akka.NET Project"> // Copyright (C) 2009-2019 Lightbend Inc. <http://www.lightbend.com> // Copyright (C) 2013-2019 .NET Foundation <https://github.com/akkadotnet/akka.net> ...
46.047619
149
0.629783
[ "Apache-2.0" ]
IgorFedchenko/akka.net
src/contrib/cluster/Akka.Cluster.Tools/Singleton/ClusterSingletonManagerSettings.cs
7,738
C#
/* * * User: Philippe Elsass * Date: 18/03/2006 * Time: 19:03 */ using System; using System.Collections.Generic; using System.IO; using System.Text.RegularExpressions; using ASCompletion.Completion; using ASCompletion.Context; namespace ASCompletion.Model { #region Token class class Token { ...
42.822897
165
0.354801
[ "MIT" ]
SlavaRa/flashdevelop-macros
External/Plugins/ASCompletion/Model/ASFileParser.cs
111,468
C#
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ /...
36.388889
153
0.584733
[ "MIT" ]
MIchaelMainer/GraphAPI
src/Microsoft.Graph/Requests/Generated/IWorkbookFunctionsReptRequest.cs
1,965
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace PettyCashApp { public partial class MainPage : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { if(!IsPost...
26.304348
64
0.405785
[ "MIT" ]
agailevictor/pettycashapp
PettyCash/PettyCashApp/MainPage.aspx.cs
1,212
C#
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; public class MessageManager { static MessageManager mInstance; public static MessageManager Instatnce { get { return mInstance ?? (mInstance = new MessageManager()); } } ...
23.671429
101
0.572722
[ "MIT" ]
Ryan4G/unity3d-action-gametech
Assets/Scripts/ActionGame/ActionGameCommon/MessageManager.cs
1,659
C#
namespace QuantumLogic.WebApi.DataModels.Dtos.Shared.Error { public class ValidationFailureDto : FailureDto { public string Severity { get; set; } public string PropertyName { get; set; } #region Ctors protected ValidationFailureDto() : base() { } ...
23
89
0.586957
[ "CC0-1.0" ]
elrondsoft/vipdrv
src/api/QuantumLogic/DataModels/Dtos/Shared/Error/ValidationFailureDto.cs
554
C#
using System; namespace Editor_Mono.Cecil { [Flags] public enum AssemblyAttributes : uint { PublicKey = 1u, SideBySideCompatible = 0u, Retargetable = 256u, WindowsRuntime = 512u, DisableJITCompileOptimizer = 16384u, EnableJITCompileTracking = 32768u } }
18
38
0.748148
[ "BSD-2-Clause" ]
ErQing/cshotfix
CSHotFix_ILRuntimeSimpleFramework/Assets/CSHotFixLibaray/Editor/Injector/MonoCecil/Mono.Cecil/AssemblyAttributes.cs
270
C#
using System; using System.Collections.Generic; using RestSharp; using IO.Swagger.Client; using IO.Swagger.Model; namespace IO.Swagger.Api { /// <summary> /// Represents a collection of functions to interact with the API endpoints /// </summary> public interface IRSASignaturesApi { /// <sum...
52.477707
463
0.633451
[ "Apache-2.0" ]
curtisHildebrant/quickstart-dotnet
src/main/CsharpDotNet2/IO/Swagger/Api/RSASignaturesApi.cs
8,239
C#
using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Otus.Teaching.Pcf.Administration.WebHost.Models; using Otus.Teaching.Pcf.Administration.Core.Abstractions.Repositories; using Otus.Teaching.Pcf.Administration.Core.Domain.Administration; namespace ...
29.644444
72
0.607946
[ "MIT" ]
a-kozhanov/otus-csharp-asp.net-core-developer
otus.teaching.promocodefactory.homework.messagebroker/Otus.Teaching.Pcf.Administration/Otus.Teaching.Pcf.Administration.WebHost/Controllers/RolesController.cs
1,386
C#
// <auto-generated> - Template:MvvmLightModelObject, Version:1.1, Id:c644a31c-7ebc-4383-bc7f-0ea7c5bf6ed4 using GalaSoft.MvvmLight; namespace CGH.QuikRide.Xam.ModelObj.QR { public partial class VehicleFeatureType : ObservableObject { public VehicleFeatureType() { VehicleFeatureTypeTranslations = new System.Co...
27.27907
149
0.740551
[ "MIT" ]
MSCTek/QuikRide
src/CGH.QuikRide.Xam/QuikRide/CGH_ModelObj/VehicleFeatureType.cs
3,519
C#
using System.Text.Json.Serialization; namespace Boxi.Core.DTOs { public record EntityAddedDto { public EntityAddedDto(int id) { Id = id; } [JsonPropertyName("id")] public int Id { get; init; } } }
18.066667
38
0.531365
[ "Apache-2.0" ]
Tappau/Boxi
Boxi/Boxi.Core/DTOs/EntityAddedDto.cs
273
C#
// Copyright (c) Microsoft Open Technologies, Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Collections.Immutable; using System.IO; using System.Linq; using System.Reflection.Metadata.Ecma335; using System.Threadi...
47.45158
350
0.61087
[ "Apache-2.0" ]
sperling/cskarp
Src/Compilers/CSharp/Test/Emit/Emit/EditAndContinue/EditAndContinueStateMachineTests.cs
46,552
C#
using Umbraco.Cms.Infrastructure.Persistence; namespace Umbraco.Cms.Infrastructure.Migrations.Upgrade.V_8_15_0 { public class UpdateCmsPropertyGroupIdSeed : MigrationBase { public UpdateCmsPropertyGroupIdSeed(IMigrationContext context) : base(context) { } protected override voi...
23.411765
86
0.660804
[ "MIT" ]
Lantzify/Umbraco-CMS
src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_15_0/UpdateCmsPropertyGroupIdSeed.cs
398
C#
using GameSpec.Formats.Unknown; using System.Threading.Tasks; namespace GameSpec.Rsi.Transforms { /// <summary> /// UnknownTransform /// </summary> public static class UnknownTransform { internal static bool CanTransformFileObject(PakFile left, PakFile right, object source) => Cr...
43.142857
199
0.741722
[ "MIT" ]
bclnet/GameSpec
Rsi/GameSpec.Rsi/Transforms/UnknownTransform.cs
606
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.34209 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generate...
44.375
174
0.598592
[ "MIT" ]
kennetanti/DiceBot
DiceBot/Properties/Resources.Designer.cs
2,842
C#
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ /...
38.025641
153
0.583277
[ "MIT" ]
GeertVL/msgraph-beta-sdk-dotnet
src/Microsoft.Graph/Generated/requests/GraphServiceConnectionsCollectionPage.cs
1,483
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; using System.Collections.Generic; using System.Data.Common; using System.Data.ProviderBase; using System.Diagnostics; using System.Globalization; using Syst...
42.051862
198
0.484568
[ "MIT" ]
2m0nd/runtime
src/libraries/System.Data.Odbc/src/System/Data/Odbc/OdbcDataReader.cs
126,492
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // Общие сведения об этой сборке предоставляются следующим набором // набора атрибутов. Измените значения этих атрибутов, чтобы изменить сведения, // связанные со сборкой. [assembly: AssemblyTitle("Epam.Task2.Rectang...
39.486486
99
0.766598
[ "MIT" ]
MaxiKvaksi/XT-2018Q4
Epam.Task2/Epam.Task2.Rectangle/Properties/AssemblyInfo.cs
2,041
C#
using Ocelot.Configuration.File; namespace Ocelot.Configuration.Creator { public interface IHeaderFindAndReplaceCreator { HeaderTransformations Create(FileReRoute fileReRoute); } }
21
63
0.738095
[ "MIT" ]
520xchly/Ocelot
src/Ocelot/Configuration/Creator/IHeaderFindAndReplaceCreator.cs
210
C#
using System.Threading.Tasks; using Jugnoon.BLL; using Jugnoon.Utility; using Jugnoon.Models; using Jugnoon.Framework; using System.Collections.Generic; namespace Jugnoon.Services { public static class EmailSenderExtensions { /// <summary> /// Send email through contact us form /// </...
45.304
175
0.570634
[ "MIT" ]
mediasoftpro/dictionaryengine
DictionaryEngine/DictionaryEngine/Models/Extensions/EmailSenderExtension.cs
11,328
C#
public class Dinglemouse { private string firstName; private string lastName; public string FullName { get { return (firstName + " " + lastName).Trim(); } } public Dinglemouse(string firstName, string lastName) { this.firstName = firstName.Trim(); this.lastName = lastName.Trim...
18.277778
55
0.641337
[ "MIT" ]
collenirwin/Codewars-Solutions
Solutions/C#/FIXME Get Full Name(7 kyu).cs
329
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using NUnit.Framework; namespace CSharp_Basics { // [] - defines attributes we will take closer look at them in day 3 [TestFixture] public class DataTypesAndVariables { /* ...
44.013793
126
0.459417
[ "MIT" ]
mar115115/koszalinCsharp
CSharp_Basics/CSharp_Basics/DataTypesAndVariables.cs
6,384
C#
// Copyright 2007-2015 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...
34.10687
152
0.56513
[ "ECL-2.0", "Apache-2.0" ]
AOrlov/MassTransit
src/MassTransit.AutomatonymousIntegration.Tests/CorrelateGuid_Specs.cs
4,470
C#
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using Microsoft.EntityFrameworkCore; // ReSharper disable ConvertPropertyToExpressionBody namespace Ccr.Dnc.Data.EntityFramework.Infrastucture { public class Repository< TEntity, TKey, TContext> : IRepos...
22.328467
108
0.61981
[ "MIT" ]
vreniose95/Ccr
Ccr.Dnc.Data.EntityFramework/Dnc/Data/EntityFramework/Infrastucture/Repository.cs
6,120
C#
/* Camera Follow C# Script (version: 1.5) SPACE for UNITY - Space Scene Construction Kit https://www.imphenzia.com/space-for-unity (c) 2017 Imphenzia AB DESCRIPTION: Smooth camera follow script used to follow an object (Transform) INSTRUCTIONS: Attach this script to a camera (e.g. Main Camera) and...
40.265734
194
0.638069
[ "MIT" ]
Tsuihao/Reinforcement-Learning-unity-ml-agents-spacecraft-docking-2D
Materials/Space/_Demo/Scrips/SU_CameraFollow.cs
5,758
C#
#region Usings using System; using Xunit; #endregion namespace Extend.Testing { public partial class ArrayExTest { [Fact] public void GenericClearAllTest() { var array = new[] { "test", "test" }; ...
20.75
67
0.464525
[ "MIT" ]
DaveSenn/Extend
.Src/Extend.Testing/System.Array/System.Array.Generic/Array.Generic.ClearAll.Test.cs
714
C#
using SixLabors.ImageSharp.Formats; namespace R8.FileHandlers { /// <summary> /// An <see cref="IMyFileConfigurationImageBase"/> interface. /// </summary> public interface IMyFileConfigurationImageBase : IMyFileRuntime { /// <summary> /// Gets or sets An <see cref="IImageEncoder"/>...
36.24
158
0.611479
[ "MIT" ]
arashaan/R8
src/R8.FileHandlers/IMyFileConfigurationImageBase.cs
908
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; namespace OnceBuild { public class SluaAdapter : MonoBehaviour { public static SluaAdapter Instance = null; public object DoString(string str) { return null; } } } namespace SLua{ ...
22.75
51
0.595604
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
yangfawen/RAVVAR-XunAPI
Assets/RAVVAR/XunAPI/script/SluaAdapter.cs
457
C#
namespace P07_SecretChat { using System; using System.Linq; public class StartUp { const string COMMAND_TO_STOP = "Reveal"; const string RESULT_MESSAGE = "You have a new text message: {0}"; public static void Main() { string input = Console.ReadLine(); ...
29.486239
91
0.472931
[ "MIT" ]
Statev7/SoftUni
C01_C#ProgrammingFundamentals-May-2021/P24_Exam-Exercise/P07_SecretChat/StartUp.cs
3,216
C#
using Microsoft.AspNetCore.Mvc; namespace _2.ChapterTwo2._9.Controllers { [ApiController] [Route("[controller]")] public class CustomerController : Controller { [HttpGet] public string GetName() { return "Customer name"; } } }
19.25
49
0.561688
[ "MIT" ]
bpbpublications/Implementing-Design-Patterns-in-C-and-.NET-5
Chapter 02/2.ChapterTwo2.9/Controllers/CustomerController.cs
310
C#
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Reflection; using System.Security.Cryptography; using System.Text; using System.Text.RegularExpressions; using RoseByte.SharpFiles.CopyFileEx; using RoseByte.SharpFiles.Extensions; namespace Rose...
32.954545
125
0.482759
[ "MIT" ]
mgottvald/SharpFilePath
SharpFilePath/Internal/File.cs
7,252
C#
using System; using System.Threading.Tasks.Dataflow; using Xunit; namespace Example { public class Examples { [Fact] public void TestLinkToAssert() { var t1 = new TransformBlock<int, int>(x => x + 2); var t2 = new TransformBlock<int, int>(x => x * 2);...
35.564103
124
0.487743
[ "Apache-2.0" ]
MikeMKH/concurrency-in-csharp-cookbook
ch05/Example/Examples.cs
2,774
C#
// *********************************************************************** // Copyright (c) 2011 Charlie Poole // // 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, incl...
38.884793
133
0.57881
[ "MIT" ]
KirillOsenkov/guiunit
src/framework/Internal/Commands/ExpectedExceptionCommand.cs
8,440
C#
using System; using Server; using Server.Network; namespace Server.Items { public class UnderworldSwitchWE : BaseSwitch { [Constructable] public UnderworldSwitchWE() : base( 0x1091, 0x1092, 1042901, 1042900, true ) { //1042901 = You hear a deep rumbling as something seems to happen. //1042900 = There see...
20.116279
112
0.606936
[ "BSD-2-Clause" ]
greeduomacro/vivre-uo
Scripts/Customs/Nerun's Distro/SA/Items/Construction/Switches.cs
1,730
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: AssemblyTi...
38.567568
85
0.725298
[ "MIT" ]
GiovanniDicanio/SafeArraySamples
SafeArraySamples/ManagedUI/Properties/AssemblyInfo.cs
1,430
C#
using System; using Events; using Game_Scripts.Monster; using Game_Scripts.Monster.State_Machine; using UnityEngine; namespace Player.Player_Collisions{ public class DoorCollision : BaseCollision{ private int _numberOfKeysNeeded; private AudioSource _audioSource; [SerializeField]...
31.409091
111
0.636035
[ "MIT" ]
Lucasdvs10/Dark-House
Dark_House_GameDev/Assets/Scripts/Game_Scripts/Player/Player_Collisions/DoorCollision.cs
1,384
C#
namespace MyRecipes.Data.Repositories { using System; using System.Linq; using MyRecipes.Data.Common.Models; using MyRecipes.Data.Common.Repositories; using Microsoft.EntityFrameworkCore; public class EfDeletableEntityRepository<TEntity> : EfRepository<TEntity>, IDeletableEntityRepository<TE...
30.795455
114
0.650923
[ "MIT" ]
psp87/MyRecipes
Data/MyRecipes.Data/Repositories/EfDeletableEntityRepository.cs
1,357
C#
// Copyright (c) Andrew Arnott. 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 System.IO; using System.IO.Pipelines; using System.Linq; using System.Text; using System.Threading; using Sys...
40.106383
165
0.74695
[ "MIT" ]
tmat/Nerdbank.Streams
test/Nerdbank.Streams.Tests/StreamUseStrictPipeReaderTests.cs
1,887
C#
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.ViewFeatures; using Moq; using NUnit.Framework; using SFA.DAS.CommitmentsV2.Api.Types.Requests; using SFA.DAS.EmployerCommitmentsV2.Web.Models.Apprentice; using System.Threading; using System.Threading.Tasks; namespace SFA...
33.378788
171
0.69133
[ "MIT" ]
SkillsFundingAgency/das-employercommitments-v2
src/SFA.DAS.EmployerCommitmentsV2.Web.UnitTests/Controllers/ApprenticeControllerTests/WhenRequestingConfirmEditApprenticeshipTests.cs
2,205
C#
using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; using Newtonsoft.Json; using WebApp.UI.Helpers; using WebApp.UI.Models; namespace WebApp.UI.Pages { public class Product...
31.848837
114
0.525739
[ "Apache-2.0" ]
dpk2789/aow-razor-pages
Solution1/WebApp.UI/Pages/Product.cshtml.cs
2,739
C#
#pragma checksum "C:\_blazor\product\BlazorExampleGithubInvoiceManagement\server\Pages\ApplicationUsers.razor" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "20c348eca9f15c3b05794d8d444f5dec93e18714" // <auto-generated/> #pragma warning disable 1591 namespace SimpleInvoiceManagementSoftware.Pages { #line hidden usin...
45.837838
353
0.653892
[ "MIT" ]
go2ismail/BlazorExampleGithubInvoiceManagement
server/obj/Debug/net5.0/Razor/Pages/ApplicationUsers.razor.g.cs
13,568
C#
namespace Tolbxela.ApexCharts { public enum StrokeCurve { smooth, straight } }
14.25
31
0.54386
[ "MIT" ]
tolbxela/ApexCharts.NET
Code/Src/Enums/StrokeCurve.cs
109
C#
using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Options; using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Threading.Tasks; namespace Cardinal.AspNetCore.Ocelot { /// <summary> /// Swagger for Ocelot middleware. /// This middleware generate ...
46.064516
268
0.683824
[ "MIT" ]
kandrakah/Cardinal.AspNetCore
Addons/Cardinal.AspNetCore.Ocelot.Swagger/Middlewares/OcelotSwaggerMiddleware.cs
2,858
C#
// -------------------------------------------------------------------------------------------------------------------- // <copyright company="Aspose Pty Ltd" file="ApiInvoker.cs"> // Copyright (c) 2003-2020 Aspose Pty Ltd // </copyright> // <summary> // Permission is hereby granted, free of charge, to any person obt...
38.378531
182
0.503018
[ "MIT" ]
groupdocs-metadata-cloud/groupdocs-metadata-cloud-dotnet-
src_net2.0/GroupDocs.Metadata.Cloud.Sdk/Client/ApiInvoker.cs
13,586
C#
using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Linq; using System.Reactive; using System.Reactive.Concurrency; using System.Reactive.Linq; using System.Reactive.Subjects; using System.Threading.Tasks; using Microsoft.CodeAnalysis; using Microsoft.Extensions.Logging; us...
37.990385
189
0.614401
[ "MIT" ]
Samirat/omnisharp-roslyn
src/OmniSharp.Roslyn.CSharp/Workers/Diagnostics/CSharpDiagnosticWorker.cs
7,902
C#
class Program { static void Main(string[] args) { string destination = "default"; switch (destination) { case "Inventory": AddToInventory(); break; case "Hotbar": AddToHotbar(); default: Debug.Log("Destination Unknown"); break; } } static void AddToInventory(...
18.833333
39
0.586283
[ "Apache-2.0" ]
thufv/DeepFix-C-
data/Mutation/CS0163_2_mutation_14/[E]CS0163.cs
454
C#
namespace PeanutButter.RandomGenerators.Tests.PerformanceTest { public class BankingDetails : EntityBase { public string AccountNumber { get; set; } public string BankName { get; set; } public string BankBranch { get; set; } public string BankBranchCode { get; set; } } }
31.6
62
0.661392
[ "BSD-3-Clause" ]
Geosong/PeanutButter
source/TestUtils/PeanutButter.RandomGenerators.Tests/PerformanceTest/BankingDetails.cs
318
C#
using System; using System.Collections.Generic; using BackEndServer.Models.DBModels; namespace BackEndServer.Models.ViewModels { public class LocationInformationList { public List<LocationInformation> LocationList { get; set; } public LocationInformationList() { L...
26.148148
76
0.637394
[ "MIT" ]
Loriko/group2049-project
BackEnd/BackEndServer/Models/ViewModels/LocationInformationList.cs
708
C#
// Copyright © .NET Foundation and Contributors. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace PInvoke { using System; /// <content> /// Contains the <see cref="NetUserEnumFilter"/> nested type. /// </content> ...
45.23913
265
0.639116
[ "MIT" ]
vatsan-madhavan/pinvoke
src/NetApi32/NetApi32+NetUserEnumFilter.cs
2,084
C#
using System.Collections.Generic; namespace DSIS.LineIterator { public class PointList<T> : IPointList<T>, IStackEnumerator<T>, IPointListWriter<T> { private readonly LinkedList<T> myList; public PointList() { myList = new LinkedList<T>(); } public T First { get...
16.419753
86
0.515789
[ "Apache-2.0" ]
jonnyzzz/phd-project
dsis/src/LineIterator/src/PointList.cs
1,330
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Rafy.MetaModel; using Rafy.MetaModel.View; namespace JXC.WPF.ViewConfig { internal class TimeSpanCriteriaConfig : WPFViewConfig<TimeSpanCriteria> { protected override void ConfigView() { ...
30.333333
76
0.582418
[ "MIT" ]
zgynhqf/trunk
Demo/JXC.WPF/ViewConfig/TimeSpanCriteriaConfig.cs
950
C#
namespace VetSolutionRationLib.Models.Units; public interface ISpecificUnit : IUnit { string DisplayMention { get; } } public sealed class SpecificUnit : UnitBase, ISpecificUnit { /// <inheritdoc /> public SpecificUnit(string displayMention) : base(UnitKind.Specific) { DisplayMention = displa...
22.388889
72
0.69727
[ "MIT" ]
Berreip/VetSolutionRation
VetSolutionRationLib/Models/Units/SpecificUnit.cs
405
C#
using System; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Filters; using Sample.WebApi.Controllers.ViewModels; namespace Sample.WebApi.Controllers.Infrastructures.Filters { /// <summary> /// Exception Filter /// </summary> public class ExceptionResultFil...
31.658537
100
0.565485
[ "MIT" ]
reantoilpc/Sample.WebApi
src/Sample.WebApi/Sample.WebApi/Controllers/Infrastructures/Filters/ExceptionResultFilter.cs
1,298
C#
using Sweeper.Core.Diagnostics.Entities; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Sweeper.Core.Diagnostics { public static class DriveManager { public static string GetSystemDrive() { ...
24.538462
93
0.593521
[ "MIT" ]
chungjongsu/Sweeper
source/Sweeper.Core/Diagnostics/DriveManager.cs
959
C#
using System; using System.Collections.Generic; using System.IO; using System.Web.Hosting; using System.Web.Mvc; namespace CavemanTools.Mvc.ViewEngines { public class FlexibleViewEngine:IViewEngine { private FlexibleViewEngineSettings _settings=new FlexibleViewEngineSettings(); pu...
39.180556
278
0.553173
[ "BSD-3-Clause" ]
Rusk85/CavemanToolBySapiensworks
src/CavemanTools.MVC/ViewEngines/FlexibleViewEngine.cs
5,644
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MyStik.TimeTable.DataServices.IO.Horst.Data { public class StudyProgramModule { public int id { get; set; } public string title { get; set; } public int ects { ...
29.032258
64
0.617778
[ "MIT" ]
AccelerateX-org/NINE
Sources/TimeTable/MyStik.TimeTable.DataServices/IO/Horst/Data/StudyProgramModule.cs
902
C#
// Copyright 2015 Tosho Toshev // // 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 ...
33.229508
87
0.668476
[ "Apache-2.0" ]
cracker4o/elm327lib
ElmCommunicator/ElmCommunicatorTests/Responses/ObdIIResponses/ShowCurrentData/EngineCoolantTemperatureResponseTests.cs
2,029
C#
#region Apache License Version 2.0 /*---------------------------------------------------------------- Copyright 2022 Jeffrey Su & Suzhou Senparc Network Technology Co.,Ltd. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain ...
40.605634
117
0.584461
[ "Apache-2.0" ]
AaronWu666/WeiXinMPSDK
src/Senparc.Weixin.MP/Senparc.Weixin.MP.Test/Containers/AccessTokenContainerAsyncTest.cs
9,201
C#
// // Unit tests for MPRemoteCommandCenter // // Authors: // Sebastien Pouliot <sebastien@xamarin.com> // // Copyright 2013 Xamarin Inc. All rights reserved. // #if !__WATCHOS__ using System; #if XAMCORE_2_0 using Foundation; using MediaPlayer; using UIKit; #else using MonoTouch.Foundation; using MonoTouch.MediaPlay...
31.534483
82
0.7731
[ "BSD-3-Clause" ]
Acidburn0zzz/xamarin-macios
tests/monotouch-test/MediaPlayer/RemoteCommandCenterTest.cs
1,829
C#
// ReSharper disable InconsistentNaming namespace Tw.AlphaVantage.Net.Stocks.Parsing.JsonTokens { internal static class QuoteEndpointJsonTokens { public const string QuoteEndpointHeader = "Global Quote"; public const string QuoteEndpointSymbolToken = "01. symbol"; public const string Q...
51.368421
90
0.732582
[ "MIT" ]
twesped/AlphaVantage.Net
AlphaVantage.Net/src/AlphaVantage.Net.Stocks/Parsing/JsonTokens/QuoteEndpointJsonTokens.cs
978
C#