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.Web; using System.Web.Optimization; namespace DilMS_UI.Dispatch { public class BundleConfig { // For more information on bundling, visit https://go.microsoft.com/fwlink/?LinkId=301862 public static void RegisterBundles(BundleCollection bundles) { bundles.Add(ne...
38.551724
113
0.580501
[ "Apache-2.0" ]
kwkau/DilMS-UI
DilMS-UI.Dispatch/App_Start/BundleConfig.cs
1,120
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> // ---------------------------------------...
34
117
0.686047
[ "Apache-2.0" ]
PatrickRatzow/space-dotnet-sdk
src/JetBrains.Space.Client/Generated/Partials/IssueDueDateChangedDetailsPartialBuilder.generated.cs
1,462
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...
26.219512
121
0.730233
[ "Apache-2.0" ]
jdcloud-api/jdcloud-sdk-net
sdk/src/Service/Live/Apis/DescribeLiveStreamPlayerRankingDataResponse.cs
1,105
C#
using osu.Framework.Graphics; using osu.Framework.Graphics.Shapes; using osu.Game.Rulesets.Objects; using osu.Game.Rulesets.Objects.Drawables; using osu.Game.Rulesets.Scoring; using System; namespace osu.Game.Rulesets.Solosu.Objects.Drawables { public class DrawableHardBeat : DrawableSolosuHitObject<HardBeat> { Ci...
27.763636
142
0.691552
[ "MIT" ]
Flutterish/Solosu
osu.Game.Rulesets.Solosu/Objects/Drawables/DrawableHardBeat.cs
1,529
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using System; using System.Collections.Concurrent; using System.Threading; using System.Threading.Tasks; using Microsoft.Bot.Builder.Skills; using Microsoft.Bot.Schema; using Newtonsoft.Json; namespace Microsoft.BotFramew...
50.031746
149
0.713198
[ "MIT" ]
CurlyBytes/BotFramework-FunctionalTests
Bots/DotNet/Consumers/CodeFirst/SimpleHostBot/SkillConversationIdFactory.cs
3,154
C#
using System.Runtime.CompilerServices; namespace System.Html.Media { [Imported, Serializable] public partial class MediaTrackConstraints { public object Mandatory { get; set; } public MediaTrackConstraintSet[] Optional { get; set; } } }
15.470588
45
0.711027
[ "Apache-2.0" ]
Saltarelle/SaltarelleWeb
Web/Generated/Html/Media/MediaTrackConstraints.cs
265
C#
using System; //{[{ using Param_RootNamespace.Core.Helpers; //}]} namespace Param_ItemNamespace.Services { internal class ActivationService { private IEnumerable<ActivationHandler> GetActivationHandlers() { //{[{ yield return Singleton<SchemeActivationHandler>.Instance;...
18.857143
70
0.578283
[ "MIT" ]
AzureMentor/WindowsTemplateStudio
templates/Uwp/_composition/_shared/Feature.DeepLinking.AddActivationHandler/Services/ActivationService_postaction.cs
398
C#
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; names...
39.28125
174
0.703262
[ "ECL-2.0", "Apache-2.0" ]
chivandikwa/pulumi-aws
sdk/dotnet/WafV2/Inputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfigGetArgs.cs
1,257
C#
using System; namespace BehaviourInject.Internal { public interface IContextParent { bool TryResolve(Type resolvingType, out object dependency); event Action OnContextDestroyed; EventManager EventManager { get; } } public class ParentContextStub : IContextParent { public static readonly Par...
21.34375
75
0.717423
[ "MIT" ]
Temka193/behaviour_inject
Assets/BInject/Scripts/BehaviourInject/IContextParent.cs
685
C#
/* * Copyright 2010-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "...
32.753623
84
0.645575
[ "Apache-2.0" ]
jasoncwik/aws-sdk-net
sdk/src/Services/S3/Custom/Model/DeleteObjectsException.cs
2,262
C#
#if UNITY_EDITOR && (UNITY_2019_3_OR_NEWER || VALVE_UPDATE_FORCE) using System.IO; using System.Linq; using Unity.XR.OpenVR.SimpleJSON; using UnityEditor; using UnityEditor.PackageManager; using UnityEditor.PackageManager.Requests; using UnityEditor.PackageManager.UI; using UnityEngine; using UnityEngine.Netw...
44.063425
171
0.483063
[ "MIT" ]
dimdallas/VR_ThetaV_WifiStreaming
Assets/SteamVR/OpenVRAutoUpdater/Editor/OpenVRAutoUpdater.cs
20,844
C#
using System; using System.Collections.Generic; using System.Linq; using Extensions; using Interactivity.Pickup; using JetBrains.Annotations; using UI.HUD; using UnityEngine; using Utility.Attributes; namespace Player.Weapons.NewWeaponSystem { [CreateAssetMenu(menuName = "Weapons/New Weapon", fileName = "New Weap...
28.585366
99
0.59215
[ "CC0-1.0" ]
sarisman84/Doing-the-thing
Assets/Scripts/Player/Weapons/Weapon.cs
3,518
C#
using Code.BattleSimulation.Actor; namespace Code.BattleSimulation.Model { public interface IBsSelection : IBsSubModel { void Select(IBsActor actor); IBsActor SelectedActor(); } public class BsSelection : IBsSelection { private IBsActor _selectedActor; public void...
20.12
47
0.604374
[ "MIT" ]
andrievsky/inner-game
Assets/Code/BattleSimulation/Model/BsSelection.cs
505
C#
using System.Threading.Tasks; namespace Getfitnessinfo.Core.Interfaces { public interface IEmailSender { Task SendEmailAsync(string to, string from, string subject, string body); } }
20.5
81
0.721951
[ "MIT" ]
simionbulat/getfitnessinfo
src/Getfitnessinfo.Core/Interfaces/IEmailSender.cs
207
C#
using System; using Microsoft.Practices.Unity; using WorkflowEngine.Interfaces; using WorkflowEngine.Tests.Schemas; using WorkflowEngine.Tests.Workflows; using Xunit; using ThreadingTask = System.Threading.Tasks.Task; namespace WorkflowEngine.Tests { public class CancellationTests : IClassFixture<UnityContainerFi...
36.957143
128
0.671821
[ "MIT" ]
fuselabs/WorkflowEngine
Src/WorkflowEngine.Tests/CancellationTests.cs
2,589
C#
// // Author: Atsushi Enomoto <atsushi@ximian.com> // // Copyright (C) 2009 Novell, Inc (http://www.novell.com) // // 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...
37.661972
280
0.764585
[ "Apache-2.0" ]
121468615/mono
mcs/class/System.ServiceModel.Discovery/System.ServiceModel.Discovery/DiscoveryVersion.cs
5,348
C#
using System; using System.IO; using System.Collections.Generic; using System.Globalization; using System.Reflection; using Microsoft.Build.Utilities; using Microsoft.Build.Framework; using Microsoft.Samples.VisualStudio.IronPythonTasks.Properties; using CoreIronPython = IronPython; namespace Microsoft.Samples.VisualS...
26.236735
136
0.67906
[ "MIT" ]
Ranin26/msdn-code-gallery-microsoft
Visual Studio Product Team/IronPython Integration/[C#]-IronPython Integration/C#/integration/IronPython/src/IronPython.CompilerTask/IronPythonCompilerTask.cs
6,428
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: AssemblyCulture(""...
41.888889
77
0.803714
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
SnowflakePowered/snowflake
src/Snowflake.Framework.Primitives/AssemblyInfo.cs
1,133
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; using System.Collections.Generic; using System.Linq; using JetBrains.Annotations; using Newtonsoft.Json; using osu.Framework.Bindables; using osu....
28.804878
147
0.578182
[ "MIT" ]
Azyyyyyy/osu
osu.Game/Online/API/Requests/Responses/APIUser.cs
6,843
C#
using System; using System.Collections.Generic; using System.Text; namespace Surging.Core.CPlatform { public enum CommunicationProtocol { None, Tcp, Http, WS, Mqtt } }
13.8125
36
0.597285
[ "MIT" ]
DotNetExample/Surging.GoodDemo
SurgingDemo/00.Surging.Core/Surging.Core.CPlatform/CommunicationProtocol.cs
223
C#
using System.Collections.Generic; using CashRegister.Offers; using CashRegister.Orders; namespace CashRegister.Checkouts { public abstract class CheckoutBase { public ICollection<OrderBase> Orders { get; set; } public ICollection<OfferBase> Offers { get; set; } public decimal Discount {...
28.133333
58
0.670616
[ "MIT" ]
Aemilivs/CashRegister
Checkouts/CheckoutBase.cs
422
C#
using System; using FluentAssertions; using Networking.Files.PcapNG; using Xunit; namespace Networking.Files.Tests.PcapNGTests.NameResolutionBlockTests.RecordTests { public class Record_Test { [Fact] public void record() { var record = new NameResolutionBlock.Record ...
27.8125
81
0.525843
[ "MIT" ]
heshang233/networking
test/networking.files.tests/PcapNGTests/NameResolutionBlockTests/RecordTests/Record_Test.cs
890
C#
using System.Collections.Generic; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Authorization; namespace SocialNetwork.Api.Controllers { [Authorize] [Route("api/[controller]")] public class ValuesController : Controller { // GET api/values [HttpGet] public IEnumera...
21.795455
56
0.520334
[ "MIT" ]
Jac21/CSharpMenagerie
Security/AspNetCoreAndOAuth/SocialNetwork/SocialNetwork.Api/Controllers/ValuesController.cs
961
C#
#if UNITY_PURCHASING #if UNITY_ANDROID || UNITY_IPHONE || UNITY_STANDALONE_OSX || UNITY_TVOS // You must obfuscate your secrets using Window > Unity IAP > Receipt Validation Obfuscator // before receipt validation will compile in this sample. //#define RECEIPT_VALIDATION #endif //#define DELAY_CONFIRMATION // Returns...
41.177419
247
0.648016
[ "MIT" ]
casion0914/Assets
Plugins/UnityPurchasing/script/IAPDemo.cs
33,189
C#
using FlowScriptEngine; using System.Collections.Generic; namespace FlowScriptEngineBasic.TypeConverters { public class HashSetIEnumerableConverter : TemplateTypeConverter<HashSet<object>, IEnumerable<object>> { public override object Convert(object data) { return (IEnumerable<obj...
23.266667
106
0.707736
[ "Apache-2.0" ]
KHCmaster/PPD
Win/FlowScriptEngineBasic/TypeConverters/HashSetIEnumerableConverter.cs
351
C#
// ------------------------------------------------------------------------------ // <auto-generated> // Generated by Xsd2Code. Version 3.4.0.18239 Microsoft Reciprocal License (Ms-RL) // <NameSpace>Dms.Ambulance.V2100</NameSpace><Collection>Array</Collection><codeType>CSharp</codeType><EnableDataBinding>False<...
40.187898
1,368
0.573897
[ "MIT" ]
Kusnaditjung/MimDms
src/Dms.Ambulance.V2100/Generated/COCD_TP146337GB01Author.cs
12,619
C#
using Cauldron.Interception.Cecilator; namespace Cauldron.Interception.Fody.HelperTypes { public sealed class __Task : HelperTypeBase { public __Task(Builder builder) : base(builder, "System.Threading.Tasks.Task") { this.GetException = this.type.GetMethod("get_Exception"); ...
27.642857
85
0.669251
[ "MIT" ]
Capgemini/Cauldron
Old/Interception/Cauldron.Interception.Fody/HelperTypes/__Task.cs
389
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/d3d12shader.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. using NUnit.Framework; using S...
38.409091
145
0.657988
[ "MIT" ]
phizch/terrafx.interop.windows
tests/Interop/Windows/um/d3d12shader/D3D12_SHADER_VARIABLE_DESCTests.cs
1,692
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Collections.Generic; namespace Develappers.BillomatNet.Types { public class InboxDo...
26.521739
71
0.686885
[ "MIT" ]
DevelappersGmbH/BillomatNet
Develappers.BillomatNet/Types/InboxDocument.cs
612
C#
//===================================================================================================================== // // ideMobi 2020© // //===================================================================================================================== // Define the use of Log and Benchmark only for this fil...
49.706349
142
0.350471
[ "Apache-2.0" ]
NetWorkedData/NetWorkedData
NWDEditor/NWDNodeEditor/NWDBasis_DrawNode.cs
6,266
C#
/* * Copyright (c) Contributors, http://opensimulator.org/ * See CONTRIBUTORS.TXT for a full list of copyright holders. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must r...
34.232558
106
0.554076
[ "BSD-3-Clause" ]
Michelle-Argus/ArribasimExtract
OpenSim/Framework/Serialization/TarArchiveWriter.cs
7,360
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...
31.843575
107
0.591404
[ "Apache-2.0" ]
DetlefGolze/aws-sdk-net
sdk/src/Services/Inspector/Generated/Model/AssessmentRunAgent.cs
5,700
C#
using Microsoft.PowerBI.Api; using Newtonsoft.Json; using System.Management.Automation; using Models = Microsoft.PowerBI.Api.Models; namespace PsPowerBi { [Cmdlet(VerbsCommon.Get, "Datasource")] [OutputType(typeof(Models.Datasource))] public class GetDatasourceCommand : PSCmdlet { ...
41.614458
124
0.528373
[ "MIT" ]
abbgrade/PsPowerBi
src/PsPowerBi/GetDatasourceCommand.cs
3,456
C#
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using System; using System.Diagnostics; using System.Threading; using System.Threading.Tasks; using BuildXL.Cache.ContentStore.Interfaces.Logging; using BuildXL.Cache.ContentStore.Interfaces.Tracing; using BuildXL.Cache.ContentStore.Tr...
53.623656
157
0.69621
[ "MIT" ]
shivanshu3/BuildXL
Public/Src/Cache/MemoizationStore/Vsts/Http/BuildCacheHttpClientFactory.cs
4,987
C#
using System; using System.Collections.Generic; using System.Text; using TangleChainIXI.Classes; namespace TangleChainIXI.Interfaces { public interface IDownloadable { string NodeAddress { get; set; } string SendTo { get; set; } string Hash { get; set; } bool IsFinalized { get...
18.6
40
0.650538
[ "MIT" ]
AskMeAgain/TangleChain
TangleChainIXI/Interfaces/IDownloadable.cs
374
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.InteropServices.WindowsRuntime; using Windows.ApplicationModel; using Windows.ApplicationModel.Activation; using Windows.Foundation; using Windows.Foundation.Collections; using Windows.UI.Xaml; using Wind...
39.318182
100
0.610405
[ "MIT" ]
JianGuoWan/third-edition
VS2013/Chapter_2/BuildAnApp/BuildAnApp/App.xaml.cs
4,327
C#
/* * Copyright (C) 2021 - 2021, SanteSuite Inc. and the SanteSuite Contributors (See NOTICE.md for full copyright notices) * Copyright (C) 2019 - 2021, Fyfe Software Inc. and the SanteSuite Contributors * Portions Copyright (C) 2015-2018 Mohawk College of Applied Arts and Technology * * Licensed under the Apache...
43.693989
227
0.648699
[ "Apache-2.0" ]
santedb/santedb-fhir
SanteDB.Messaging.FHIR/Handlers/MedicationResourceHandler.cs
7,998
C#
using System.ComponentModel.DataAnnotations; using Abp.Auditing; using Abp.Authorization.Users; using Abp.AutoMapper; using Abp.Runtime.Validation; using SMS.ALL.Authorization.Users; namespace SMS.ALL.Users.Dto { [AutoMapTo(typeof(User))] public class CreateUserDto : IShouldNormalize { [Required] ...
25.125
58
0.613599
[ "MIT" ]
UtpalMaiti/SMS.ALL.ANGULAR
src/SMS.ALL.Application/Users/Dto/CreateUserDto.cs
1,206
C#
using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace CoreWiki.Core.Configuration { public class EmailNotifications { public string SendGridApiKey { get; set; } public string FromEmailAddress { get; set; } public string FromName { get; set; } } }
20.8
47
0.717949
[ "MIT" ]
ChaplinMarchais/CoreWiki
CoreWiki.Core/Configuration/EmailNotifications.cs
300
C#
namespace DSInternals.DataStore { using System; using System.IO; using Microsoft.Database.Isam; using Microsoft.Isam.Esent.Interop; public class DirectoryContext : IDisposable { private const string JetInstanceName = "DSInternals"; private IsamInstance instance; privat...
37.041096
248
0.56287
[ "MIT" ]
Alvimar/DSInternals
Src/DSInternals.DataStore/DirectoryContext.cs
8,114
C#
/* * Copyright (c) 2019 ETH Zürich, Educational Development and Technology (LET) * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ using System; using System...
27.029703
121
0.721978
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
junbaor/seb-win-refactoring
SafeExamBrowser.Configuration.UnitTests/DataCompression/GZipCompressorTests.cs
2,733
C#
using Microsoft.Xna.Framework; using Nez.UI; #if DEBUG namespace Nez { public class ColorInspector : Inspector { TextField _textFieldR, _textFieldG, _textFieldB, _textFieldA; public override void initialize( Table table, Skin skin, float leftCellWidth ) { var value = getValue<Color>(); var label = cr...
26.156863
84
0.640555
[ "MIT" ]
Blucky87/Nez
Nez.Portable/Debugger/Inspector/Inspectors/ColorInspector.cs
2,670
C#
using System; using System.Collections.Generic; using System.Linq; namespace pelazem.util { public class ValidationResult { private List<Validation> _validations = null; public virtual IList<Validation> Validations { get { if (_validations == null) _validations = new List<Validation>(); r...
17.236842
120
0.654962
[ "MIT" ]
plzm/pelazem.util
pelazem.util/ValidationResult.cs
657
C#
using System; using System.Collections.Generic; namespace CurrieTechnologies.Razor.WebAuthn { public class PublicKeyCredentialCreationOptions { public PublicKeyCredentialRpEntity Rp { get; set; } public PublicKeyCredentialUserEntity User { get; set; } #pragma warning disable CA1819 // Propert...
44.478261
139
0.744868
[ "MIT" ]
Basaingeal/Razor.WebAuthn
Dictionaries/PublicKeyCredentialCreationOptions.cs
1,025
C#
/* * THIS FILE WAS GENERATED BY PLOTLY.BLAZOR.GENERATOR */ using System.Text.Json.Serialization; using System.Runtime.Serialization; #pragma warning disable 1591 namespace Plotly.Blazor.Traces.ScatterGlLib.MarkerLib.ColorBarLib { /// <summary> /// Determines where tick labels are drawn relative to the ti...
31.658537
88
0.624807
[ "MIT" ]
ScriptBox99/Plotly.Blazor
Plotly.Blazor/Traces/ScatterGlLib/MarkerLib/ColorBarLib/TickLabelPositionEnum.cs
1,298
C#
/* Sourced from Nord: * https://github.com/arcticicestudio/nord * https://www.nordtheme.com/docs/colors-and-palettes */ namespace ScottPlot.Drawing.Colorsets { public class Snowstorm : HexColorset, IPalette { public override string[] hexColors => new string[] { "#D8DEE9", "#E5E9F...
23.533333
58
0.617564
[ "MIT" ]
BambOoxX/ScottPlot
src/ScottPlot/Palettes/Snowstorm.cs
355
C#
// // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the MIT License. See LICENSE file in the project root for full license information. // //------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // // C...
32.37931
101
0.517572
[ "MIT" ]
Acidburn0zzz/Dnn.Platform
DNN Platform/Modules/Groups/View.ascx.designer.cs
941
C#
using System; using System.Windows.Forms; namespace APNGBuilder { static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void Main() { Application.EnableVisualStyles(); ...
22.45
66
0.547884
[ "MIT" ]
murrple-1/APNGManagement
APNGBuilder/Program.cs
451
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using BarLauncher.BaseConverter.Lib.Service; namespace BarLauncher.BaseConverter.Test.Mock.Service { public class SystemInformationsMock : ISystemInformations { public string Application...
22.1
61
0.726244
[ "MIT" ]
gissehel/BarLauncher-BaseConverter
BarLauncher.BaseConverter.Test.Mock/Service/SystemInformations.cs
444
C#
namespace Peep.Wings.Domain.Services; public interface IOAuthService<T> where T : class { Task<T> RetrieveLoggedUserInformation(string token); }
19
56
0.769737
[ "MIT" ]
guilhermedjr/clone-twitter
source/Peep.Wings/Peep.Wings.Domain/Services/IOAuthService.cs
154
C#
/************************************************************************************* Extended WPF Toolkit Copyright (C) 2007-2013 Xceed Software Inc. This program is provided to you under the terms of the Microsoft Public License (Ms-PL) as published at http://wpftoolkit.codeplex.com/license For ...
35.173913
111
0.598269
[ "MIT" ]
0xflotus/Materia
wpftoolkit-master/wpftoolkit-master/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock.Themes.Aero/AssemblyVersionInfoCommon.cs
811
C#
using System; namespace rock_paper_scissor { public class Program { static void Main(string[] args) { Console.WriteLine("Hello there put your input- Rock, Scissor or Paper"); string input = Console.ReadLine(); // Console.WriteLine(input); int...
28.041667
84
0.451709
[ "MIT" ]
2011-nov02-net/dhurba-code
rock-paper-scissor/Program.cs
1,348
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> //--...
33.722222
160
0.688633
[ "MIT" ]
Fragatta/SnapOnMatt
Properties/Resources.Designer.cs
2,430
C#
/*********************************************************************** * Project: CoreCms * ProjectName: 核心内容管理系统 * Web: https://www.corecms.net * Author: 大灰灰 * ...
31.934911
124
0.511025
[ "Apache-2.0" ]
XRJ1230663/CoreShop
CoreCms.Net.Repository/Good/CoreCmsGoodsCategoryRepository.cs
5,623
C#
using System; namespace BattleLogic.BattleResources { public interface IResource { event Action<int> Changed; BattleResourceType Type { get; } int Value { get; } void Add(int value); void Remove(int value); } }
16.533333
37
0.645161
[ "MIT" ]
NeoremFf/Wizard-Fighter
WizardFighter/Assets/Scripts/BattleLogic/BattleResources/IResource.cs
250
C#
using System; namespace Entitas.CodeGenerator { [AttributeUsage(AttributeTargets.Class)] public class CustomPrefixAttribute : Attribute { public string prefix; public CustomPrefixAttribute(string prefix) { this.prefix = prefix; } } }
21.923077
53
0.663158
[ "MIT" ]
MrMonotone/SimpleFight
Assets/ThirdParty/Entitas-Unity/Entitas.CodeGenerator/Attributes/CustomPrefixAttribute.cs
287
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...
31.569231
102
0.621345
[ "Apache-2.0" ]
polivbr/pulumi-azure-native
sdk/dotnet/Network/V20191201/Inputs/ExpressRouteCircuitPeeringConfigArgs.cs
2,052
C#
using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Text; namespace dnsimple_dotnet.Data { public class User { [JsonProperty("email")] public string Email { get; set; } [JsonProperty("id")] public long Id { get; set; } } }
17.764706
41
0.625828
[ "MIT" ]
kfrancis/dnsimple-dotnet
src/dnsimple-dotnet/Data/User.cs
304
C#
using System.ComponentModel.DataAnnotations; namespace App.Infrastructure.Data { public class Tag { public int Id { get; set; } [Required] public string Name { get; set; } public string Description { get; set; } // Navigation public virtual ICollection<Post> ...
24.105263
89
0.60917
[ "MIT" ]
alpyesil/.Net-6-Twitter-Clone
App.Infrastructure/Data/Tag.cs
460
C#
/* * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ using System; using Sasinosoft.SampMapEditor.Pedestrians; namespace Sasinosoft.SampMapEditor.IDE { ...
30.30303
71
0.634
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
SaSiNO97/scene-editor
Sasinosoft.SampMapEditor/IDE/PedsIDEElement.cs
1,000
C#
namespace ET { [ObjectSystem] public class SessionIdleCheckerComponentAwakeSystem: AwakeSystem<SessionIdleCheckerComponent, int> { public override void Awake(SessionIdleCheckerComponent self, int checkInteral) { self.RepeatedTimer = TimerComponent.Instance.NewRepeatedTimer(checkI...
35.487179
177
0.648121
[ "MIT" ]
1090504117/ET
Unity/Assets/Hotfix/Module/Message/SessionIdleCheckerComponentSystem.cs
1,384
C#
// // System.Runtime.InteropServices.RegistrationConnectionType // // Author: // Kazuki Oikawa (kazuki@panicode.com) // #if NET_2_0 using System; namespace System.Runtime.InteropServices { [Flags] public enum RegistrationConnectionType { MultipleUse = 1, MultiSeparate = 2, SingleUse = 0...
14.92
61
0.664879
[ "MIT" ]
GrapeCity/pagefx
mono/mcs/class/corlib/System.Runtime.InteropServices/RegistrationConnectionType.cs
373
C#
using Sitecore.Foundation.Alerts.Models; namespace Sitecore.Foundation.Alerts { public class Constants { public const string InfoMessageView = "~/Views/Alerts/InfoMessage.cshtml"; } }
22.555556
79
0.729064
[ "Apache-2.0" ]
26384sunilrana/Habitat
src/Foundation/Alerts/code/Constants.cs
205
C#
using UnityEngine; using System.Collections; using UnityStandardAssets.CrossPlatformInput; public class HashIDsDragons : MonoBehaviour { [HideInInspector] public static int verticalHash = Animator.StringToHash("Vertical"); [HideInInspector] public static int horizontalHash = Animator.StringToHash("Hori...
52.972973
97
0.745918
[ "MIT" ]
Shirai-Laboratory-2016-Kinect-EXPIXEL/Dragon_by_Kinect-EXPIXEL
Assets/Asset_Stores/Little Dragons/Common/Scripts/HashIDsDragons.cs
1,962
C#
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; namespace EmptyRecycleBin { class Program { enum RecycleFlags : uint { SHRB_NOCONFIRMATION = 0x00000001, ...
26.785714
101
0.64
[ "MIT" ]
DanielBence/Optimiser
EmptyRecycleBin/EmptyRecycleBin/Program.cs
752
C#
using System; using Chromium; using Neutronium.Core.WebBrowserEngine.Control; using Neutronium.Core.WebBrowserEngine.JavascriptObject; using Neutronium.Core.WebBrowserEngine.Window; using Neutronium.WPF.Internal; using Tests.Infra.WebBrowserEngineTesterHelper.Window; namespace Tests.ChromiumFX.Infra { internal cl...
28.914894
107
0.670346
[ "MIT" ]
simonbuehler/Neutronium
Tests/WebBrowserEngines/ChromiumFX/Tests.ChromiumFX.Infra/ChromiumFXHTMLWindowProvider.cs
1,361
C#
namespace ConfigWorker.Interfaces { public interface IStore { string Get(string name); void Set(string name, string value); } }
17.444444
44
0.630573
[ "MIT" ]
jbzorg/ConfigWorker
ConfigWorker/Interfaces/IStore.cs
159
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. using UnityEngine; using UnityEngine.EventSystems; using System.Collections.Generic; using HoloToolkit.Unity.InputModule; namespace HoloToolkit.Unity.Receive...
36.008086
134
0.569429
[ "MIT" ]
Chalghouma/holocare
Assets/HoloToolkit/UX/Scripts/Receivers/InteractionReceiver.cs
13,359
C#
namespace ClassLib082 { public class Class092 { public static string Property => "ClassLib082"; } }
15
55
0.633333
[ "MIT" ]
333fred/performance
src/scenarios/weblarge2.0/src/ClassLib082/Class092.cs
120
C#
// <copyright file="GreyscaleBt601.cs" company="James Jackson-South"> // Copyright (c) James Jackson-South and contributors. // Licensed under the Apache License, Version 2.0. // </copyright> namespace ImageProcessorCore.Filters { using System.Numerics; /// <summary> /// Converts the colors of the image ...
30.064516
145
0.585837
[ "Apache-2.0" ]
SeanKilleen/ImageProcessor
src/ImageProcessorCore/Filters/ColorMatrix/GreyscaleBt601.cs
934
C#
using Avalonia.Controls; using Avalonia.Markup.Xaml; namespace KyoshinEewViewer.Series.Radar { public partial class RadarView : UserControl { public RadarView() { InitializeComponent(); } private void InitializeComponent() { AvaloniaXamlLoader.Load(this); } } }
15
45
0.729825
[ "MIT" ]
ingen084/KyoshinEewViewerIngen
src/KyoshinEewViewer/Series/Radar/RadarView.axaml.cs
285
C#
using System.Collections.Generic; using BlogModule.Domain.Common; namespace BlogModule.Domain.Entities { public class Category : AuditableBaseEntity { public Category() { SubCategories = new HashSet<Category>(); } public string Name { get; set; } public str...
25.95
72
0.622351
[ "MIT" ]
mrgrayhat/CleanMicroserviceArchitecture
src/MicroServices/Blog/Core/BlogModule.Domain/Entities/Category.cs
521
C#
using ApiApproverTests.Examples; using Xunit; namespace ApiApproverTests { public class Method_modifiers : ApiGeneratorTestsBase { [Fact] public void Should_output_static_modifier() { AssertPublicApi<ClassWithStaticMethod>( @"namespace ApiApproverTests.Examples { public...
25.884615
93
0.625557
[ "MIT" ]
heynickc/ApiApprover
src/ApiApproverTests/Method_modifiers.cs
4,040
C#
using System; namespace UnityEngine.PostProcessing { [Serializable] public class GrainModel : PostProcessingModel { [Serializable] public struct Settings { [Tooltip("Enable the use of colored grain.")] public bool colored; [Range(0f,...
28.557692
148
0.484175
[ "Apache-2.0" ]
Aasish-Virjala/StressLessFinal
PostProcessing/Runtime/Models/GrainModel.cs
1,485
C#
using IBank.Dtos.Transaction; using IBank.Exceptions; using IBank.Services.Token; using IBank.Services.Transaction; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using System; using System.Collections.Generic; using System.Threading.Tasks; namespace IBank.C...
32.635417
121
0.595276
[ "MIT" ]
9Rain/donus-code-challenge
IBank/Controllers/TransactionController.cs
3,135
C#
// // ExtensionTree.cs // // Author: // Lluis Sanchez Gual // // Copyright (C) 2007 Novell, Inc (http://www.novell.com) // // 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 restric...
38.134375
225
0.692371
[ "MIT" ]
doc22940/mono-addins
Mono.Addins/Mono.Addins/ExtensionTree.cs
12,203
C#
using System; using System.ComponentModel.DataAnnotations; namespace UpsMo.Common.DTO.Request.Organization { public class ManagerCreateRequest : BaseManager { /// <summary> /// will be manager user email or username /// </summary> [Required] public string Iden...
25
52
0.62
[ "Unlicense" ]
halilkocaoz/upmo-server
UpsMo.Common/DTO/Request/Organization/ManagerCreateRequest.cs
350
C#
using Microsoft.Extensions.Configuration; using pote.Config.Shared; namespace pote.Config.Middleware; public static class ExtensionMethods { public static async Task<IConfigurationBuilder> AddConfigurationFromApi(this IConfigurationBuilder builder, BuilderConfiguration configuration, string inputJson, Action<stri...
48.545455
212
0.71598
[ "MIT" ]
poteb/ConfigurationService
src/Config.Middleware/Config.Middleware.NetStandard20/ExtensionMethods.cs
1,602
C#
// Copyright (c) 2017 Jan Pluskal // //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 ...
46.569343
181
0.576646
[ "Apache-2.0" ]
mvondracek/NetfoxDetective
Framework/ApplicationRecognizers/Spid.Tests/ApplicationRecognizerSPIDTests.cs
12,762
C#
using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; using Microsoft.Azure.CosmosDB.BulkExecutor.Graph.Element; using Octogami.SixDegreesOfNetflix.Application.Infrastructure.Configuration; using Octogami.SixDegreesOfNetflix.Application.Infrastructure.Data; namespac...
34.622222
91
0.657895
[ "MIT" ]
nelsonwellswku/SixDegreesOfNetflix
Application/Feature/LoadRecords/ActorInserter.cs
1,558
C#
 namespace EPI.Searching { /// <summary> /// Design an algorithm that checks whether a number appears in a 2D sorted array or not. /// A 2D array is considered sorted if all rows and columns are sorted. /// </summary> public static class Search2DSortedArray { public static bool Search(int[,] array, int valueTo...
22.314286
90
0.619718
[ "MIT" ]
dipakboyed/epibook.github.io.Puzzles
EPIProblems/Searching/Search2DSortedArray.cs
783
C#
// // System.Runtime.InteropServices.ErrorWrapper.cs // // Author: // Andreas Nahr (ClassDevelopment@A-SoftTech.com) // // // Copyright (C) 2004 Novell, Inc (http://www.novell.com) // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation file...
28.8
73
0.731838
[ "MIT" ]
zlxy/Genesis-3D
Engine/extlibs/IosLibs/mono-2.6.7/mcs/class/corlib/System.Runtime.InteropServices/ErrorWrapper.cs
1,872
C#
using Beer.DaAPI.BlazorApp.Dialogs; using Microsoft.AspNetCore.Components; using MudBlazor; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using static Beer.DaAPI.Shared.Responses.DHCPv6InterfaceResponses.V1; namespace Beer.DaAPI.BlazorApp.Pages.DHCPv6Interfaces { ...
27.684211
93
0.643536
[ "MIT" ]
just-the-benno/Beer
src/DaAPI/App/Beer.DaAPI.BlazorApp/Pages/DHCPv6Interfaces/DeleteDHCPv6InterfaceDialog.razor.cs
1,054
C#
using System.Web.Mvc; using System.Web.Routing; namespace _47Example { public static class RouteConfig { public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.MapRoute( name: "Default", ...
26.263158
99
0.553106
[ "MIT" ]
getyoti/yoti-dotnet-sdk
src/Examples/Profile/47Example/App_Start/RouteConfig.cs
501
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; using osu.Framework.Graphics.Sprites; using osu.Game.Graphics; namespace osu.Game.Rulesets.Mods { public abstract class ModNoFail : ModBlockFa...
40.090909
124
0.68254
[ "MIT" ]
123tris/osu
osu.Game/Rulesets/Mods/ModNoFail.cs
861
C#
using System.Collections.Generic; using System.Linq; using NServiceBus.DeliveryConstraints; namespace NServiceBus.Extensions.DispatchRetries.AcceptanceTests.Transport.Helpers { internal static class DeliveryConstraintsExtensions { internal static bool TryGet<T>(this List<DeliveryConstraint> list, out ...
30.625
121
0.716327
[ "Apache-2.0" ]
mauroservienti/NServiceBus.Extensions.DispatchRetries
src/NServiceBus.Extensions.DispatchRetries.AcceptanceTests/Transport/Helpers/DeliveryConstraintsExtensions.cs
492
C#
// ---------------------------------------------------------------------------------- // // Copyright Microsoft Corporation // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://w...
52
169
0.632178
[ "MIT" ]
Philippe-Morin/azure-powershell
src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/CertificateTests.cs
3,624
C#
using System; using System.Drawing; using Grasshopper; using Grasshopper.Kernel; namespace DragonCurve { public class DragonCurveInfo : GH_AssemblyInfo { public override string Name { get { return "DragonCurve"; } } public ove...
24.753623
99
0.503513
[ "MIT" ]
masayaTAKATA/GH_DragonCurve
DragonCurve/DragonCurveInfo.cs
1,710
C#
namespace EnvironmentAssessment.Common.VimApi { public class HostHardwareStatusInfo : DynamicData { protected HostHardwareElementInfo[] _memoryStatusInfo; protected HostHardwareElementInfo[] _cpuStatusInfo; protected HostStorageElementInfo[] _storageStatusInfo; public HostHardwareElementInfo[] MemoryStatusInf...
17.744186
56
0.70118
[ "MIT" ]
octansIt/environmentassessment
EnvironmentAssessment.Wizard/Common/VimApi/H/HostHardwareStatusInfo.cs
763
C#
using System; using System.Security.Cryptography; using System.Text; namespace Investec.OpenBanking.RestClient.Extensions { public static class CryptographyExtensions { private static Encoding _defaultEncoding => Encoding.UTF8; public static Guid ToMd5Guid(this string value) => new Guid(GetMd5...
27.545455
87
0.633663
[ "MIT" ]
dalion619/investec-openbanking-dotnet
src/Investec.OpenBanking.RestClient/Extensions/CryptographyExtensions.cs
606
C#
using Nethereum.LogProcessing.Dynamic.Handling.Handlers; using System.Threading.Tasks; namespace Nethereum.LogProcessing.Dynamic.Configuration { public class EventContractQueryConfigurationRepository: IEventContractQueryConfigurationRepository { public EventContractQueryConfigurationRepository( ...
38.448276
102
0.721973
[ "MIT" ]
Dave-Whiffin/Nethereum.BlockchainProcessing
src/Nethereum.LogProcessing.Dynamic/Configuration/EventContractQueryConfigurationRepository.cs
1,117
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.Web.Routing; namespace Divergent.Frontend { public class RouteConfig { public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}....
26
99
0.60355
[ "Apache-2.0" ]
zpbappi/Workshop.Microservices
demos/CompositeUI-MVC/Divergent.Frontend/App_Start/RouteConfig.cs
678
C#
// "Therefore those skilled at the unorthodox // are infinite as heaven and earth, // inexhaustible as the great rivers. // When they come to an end, // they begin again, // like the days and months; // they die and are reborn, // like the four seasons." // // - Sun Tsu, // "The Art of War" using System; using Syste...
40.673004
138
0.478078
[ "BSD-3-Clause" ]
AndGutierrez/HTML-Renderer
Source/HtmlRenderer/Core/Parse/HtmlParser.cs
10,699
C#
namespace Octokit.GraphQL.Model { using System; using System.Collections.Generic; using System.Linq.Expressions; using Octokit.GraphQL.Core; using Octokit.GraphQL.Core.Builders; /// <summary> /// An edge in a connection. /// </summary> public class OrganizationInvitationEdge : Query...
30.121212
132
0.641851
[ "MIT" ]
0xced/octokit.graphql.net
Octokit.GraphQL/Model/OrganizationInvitationEdge.cs
994
C#
// Generated class v2.50.0.0, don't modify using System; using System.Collections.Generic; using System.Collections.Specialized; using System.Linq; using System.Text; namespace NHtmlUnit.Javascript.Host.Performance { public partial class PerformanceTiming : NHtmlUnit.Javascript.SimpleScriptable { ...
19.989637
147
0.525402
[ "Apache-2.0" ]
HtmlUnit/NHtmlUnit
app/NHtmlUnit/Generated/Javascript/Host/Performance/PerformanceTiming.cs
3,858
C#
using System; using System.Collections.Generic; namespace EF7.Bencher.Model { public partial class BusinessEntityContact { public int BusinessEntityID { get; set; } public int PersonID { get; set; } public int ContactTypeID { get; set; } public DateTime ModifiedDate { get; set; ...
29.052632
66
0.650362
[ "MIT" ]
sanekpr/RawDataAccessBencher
EF7.Bencher.Model/BusinessEntityContact.cs
552
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...
26.911765
81
0.67541
[ "Apache-2.0" ]
AaronFriel/pulumi-aws-native
sdk/dotnet/Cognito/Outputs/IdentityPoolCognitoIdentityProvider.cs
915
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 ...
23.871287
121
0.676898
[ "Apache-2.0" ]
DMIAOCHEN/AliyunService
Depends/aliyun-net-sdk-alidns/Alidns/Model/V20150109/SetDomainRecordStatusRequest.cs
2,411
C#
using Content.Server.Botany.Components; using Content.Shared.Botany; using Content.Shared.Chemistry.Components; using Content.Shared.Chemistry.Reagent; using JetBrains.Annotations; using Robust.Shared.GameObjects; using Robust.Shared.IoC; using Robust.Shared.Maths; using Robust.Shared.Random; using Robust.Shared.Seria...
34.666667
149
0.646795
[ "MIT" ]
virgildotcodes/space-station-14
Content.Server/Chemistry/ReagentEffects/PlantMetabolism/RobustHarvest.cs
1,562
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace Acai.NewsStatistics.Models { [Serializable] public class ListContentsModel { public int Id { get; set; } public string PublishTime { get; set; } public string Title { get; set; } ...
24.944444
47
0.632517
[ "BSD-3-Clause" ]
charles0525/orchard
src/Orchard.Web/Modules/Acai.NewsStatistics/Models/ListContentsModel.cs
451
C#