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.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("13...
38.027027
84
0.742715
[ "MIT" ]
Bullsized/Assignments-Fundamentals-Normal
10 - 12 Data Types and Var/2017-06-02/13 Vowel or Digit/Properties/AssemblyInfo.cs
1,410
C#
using UnityEngine; using Unity.Collections; using System.Collections.Generic; public class ChunkSaver { private Dictionary<Vector3Int, ChunkSave> chunks; public ChunkSaver() { chunks = new Dictionary<Vector3Int, ChunkSave>(); } ~ChunkSaver() => SaveAllAndUnload(); public Chun...
23.72973
143
0.64123
[ "MIT" ]
roopekt/MiningGame
Assets/Terrain/ChunkSaver.cs
1,756
C#
using GitHubIssues; using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; namespace Azure.Sdk.Tools.GitHubIssues.Services.Configuration { public interface IConfigurationService { Task<IEnumerable<RepositoryConfiguration>> GetRepositoryConfigurationsAsync(); ...
27.941176
86
0.76
[ "MIT" ]
AlexGhiondea/azure-sdk-tools
tools/github-issues/Azure.Sdk.Tools.GitHubIssues/Services/Configuration/IConfigurationService.cs
477
C#
using System; using System.Collections.Generic; using System.Globalization; using System.Threading; using System.Threading.Tasks; using AsyncAwaitBestPractices; using GitTrends.Shared; using Xamarin.Forms.PlatformConfiguration; using Xamarin.Forms.PlatformConfiguration.iOSSpecific; namespace GitTrends { public class...
28.463415
104
0.787918
[ "MIT" ]
Tiamat-Tech/GitTrends
GitTrends/App.cs
2,336
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/. * * Copyright (c) 2015, MPL Ali Taheri Moghaddar ali.taheri.m@gmail.com */ using System; namespace Pablo {...
29.742857
113
0.638809
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
pabloengine/pablo
Pablo/HierarchyInfrastructure/PropertyException.cs
1,043
C#
namespace ClassLib105 { public class Class076 { public static string Property => "ClassLib105"; } }
15
55
0.633333
[ "MIT" ]
333fred/performance
src/scenarios/weblarge2.0/src/ClassLib105/Class076.cs
120
C#
namespace Miningcore.Blockchain.Cryptonote.StratumResponses; public class CryptonoteResponseBase { public string Status { get; set; } = "OK"; }
21.285714
60
0.765101
[ "MIT" ]
BitWizJason/miningcore
src/Miningcore/Blockchain/Cryptonote/StratumResponses/CryptonoteResponseBase.cs
149
C#
namespace Microsoft.eShopOnDapr.Services.Catalog.API.Infrastructure.EntityConfigurations; public class CatalogTypeEntityTypeConfiguration : IEntityTypeConfiguration<CatalogType> { public void Configure(EntityTypeBuilder<CatalogType> builder) { builder.ToTable("CatalogType"); builder.HasKey(ty...
29.222222
90
0.614702
[ "MIT" ]
CJ99/eShopOnDapr
src/Services/Catalog/Catalog.API/Infrastructure/EntityConfigurations/CatalogTypeEntityTypeConfiguration.cs
791
C#
#region Using using System; using OpenGL; #endregion namespace Emotion.Graphics.Objects { /// <summary> /// A buffer holding vertex indices. /// </summary> public sealed class IndexBuffer : DataBuffer { /// <summary> /// The bound index buffer. /// </summary> publ...
30.192308
146
0.53758
[ "Apache-2.0", "MIT" ]
Cryru/Emotion
Emotion/Graphics/Objects/IndexBuffer.cs
1,572
C#
using System; using UnityEditor; using UnityEngine; using UnityEngine.UIElements; namespace VRLabs.ToonyStandardRebuild.ModularShaderSystem.UI { [CustomEditor(typeof(TemplateAsset))] public class TemplateAssetEditor : Editor { public override VisualElement CreateInspectorGUI() { ...
27.45
81
0.677596
[ "MIT" ]
VRLabs/Toony-Standard-Rebuild
Dependencies/Editor/ModularShaderSystem/Editors/Inspectors/TemplateAssetEditor.cs
549
C#
[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("Paseto.Tests")]
79
79
0.835443
[ "MIT" ]
daviddesmet/paseto-dotnet
src/Paseto.Cryptography/AssemblyInfo.cs
81
C#
using Catalog.API.Entities; using Catalog.API.Repositories; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Threading.Tasks; namespace Catalog.API.Controllers { [ApiController] [Route("api/v1/...
35.83908
99
0.637267
[ "MIT" ]
thelostfrayman/AspNetMicroServices
src/Catalog/Catalog.API/Controllers/CatalogController.cs
3,120
C#
using LinCms.Cms.Admins; namespace LinCms.Cms.Users { public class ChangePasswordDto: ResetPasswordDto { // [Required(ErrorMessage = "原密码不可为空")] public string OldPassword { get; set; } } }
18.333333
52
0.65
[ "MIT" ]
KribKing/lin-cms-dotnetcore
src/LinCms.Application.Contracts/Cms/Users/ChangePasswordDto.cs
236
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; namespace Luckshot.FSM { [DefaultExecutionOrder(300)] public class StateMachineState : MonoBehaviour { protected StateMachine stateMachine = null; protected StateMachine StateMachine { get { return stateMachine; } } public K Ge...
23.714286
88
0.726177
[ "MIT" ]
cjacobwade/BigHopsTools
BigHopsTools/Assets/Plugins/Luckshot/Scripts/StateMachine/StateMachineState.cs
1,828
C#
namespace Telerik.UI.Xaml.Controls.Map { /// <summary> /// Defines the available modes to process user input that affects the <see cref="RadMap.ZoomLevel"/> property. /// </summary> public enum MapZoomMode { /// <summary> /// The map is zoomed to the contact point with the primary p...
28.791667
115
0.586107
[ "Apache-2.0" ]
ChristianGutman/UI-For-UWP
Controls/Map/Map.UWP/Behaviors/PanAndZoom/MapZoomMode.cs
693
C#
using UnityEngine; using System.Collections; using UnityEngine.UI; public class ScoreMoney : MonoBehaviour { public int money = 1000000; public Text moneyText; public Text healthText; void Update() { moneyText.text = "Gold: " + money.ToString(); healthText.text = "Health: " + CoreBehaviour.getH...
19.647059
65
0.694611
[ "MIT" ]
aaronr4043/Pirate-In-Barrels
Assets/Scripts/ScoreMoney.cs
336
C#
#if UNITY_EDITOR using UnityEngine; using UnityEditor; using System.Collections; using System.Linq; using System.Reflection; using System.Collections.Generic; using System.Text.RegularExpressions; #if !(UNITY_5_0 || UNITY_5_1 || UNITY_5_2) using UnityEditor.SceneManagement; using UnityEngine.SceneManagement; #endif n...
31.070845
243
0.694116
[ "MIT" ]
BentouDev/SenseiJam2017
Assets/SabreCSG/Scripts/Extensions/EditorHelper.cs
11,403
C#
using Thegioisticker.Data.Repositories; using System.Threading.Tasks; using System.Web.Http; namespace Thegioisticker.API.Controllers { [RoutePrefix("api/RefreshTokens")] public class RefreshTokensController : ApiController { private AuthRepository _repo = null; public RefreshTokensContr...
23.18
67
0.534944
[ "MIT" ]
quocbaouit/Thegioisticker
Thegioisticker/ApiControllers/RefreshTokensController.cs
1,161
C#
// Copyright (c) 2010-2013 SharpDX - Alexandre Mutel // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy,...
64.486486
384
0.823135
[ "MIT" ]
shoelzer/SharpDX
Source/SharpDX.DXGI/Properties/AssemblyInfo.cs
2,388
C#
//----------------------------------------------------------------------------- // Author(s): // Aaron Clauson // // History: // // // License: // BSD 3-Clause "New" or "Revised" License, see included LICENSE.md file. //----------------------------------------------------------------------------- using System; usi...
53.222749
170
0.621817
[ "Apache-2.0" ]
Ali-Russell/sipsorcery
test/unit/net/STUN/STUNUnitTest.cs
22,462
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using Assets.ExpTools; using UnityEngine.UI; using Assets.Keyboards; using System.Timers; using System.IO; //Edit -> Project setting -> Player -> other setting -> ".Net 2.0" 으로 설정 후 reimport using System.IO.Ports; using System.Net.Sockets...
35.161951
176
0.462057
[ "MIT" ]
suggestbot-wearable-text-entry-system/SuggestBot_GazeAssistedTyping
Assets/Keyboards/KeyboardBasic.cs
36,075
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Resources; using System; using System.Windows.Markup; // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("e26dd271-436d-483d-91e2-de61b3ffe0af")]...
47.041667
129
0.777679
[ "Apache-2.0" ]
vasnake/cartobonus
maps.web.builder/FloatableWindow/Properties/AssemblyInfo.cs
1,131
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...
45.9
192
0.67855
[ "Apache-2.0" ]
DetlefGolze/aws-sdk-net
sdk/src/Services/KeyManagementService/Generated/Model/ConnectCustomKeyStoreRequest.cs
5,049
C#
using System; using System.Diagnostics; using System.Globalization; using System.IO; using System.Reflection; namespace LightBlue.MultiHost.IISExpress { static class IisExpressHelper { public static void KillIisExpressProcesses() { foreach (var p in Process.GetProcessesByName("iise...
42.494505
142
0.641065
[ "Apache-2.0" ]
ColinScott/LightBlue
LightBlue.MultiHost/IISExpress/IisExpressHelper.cs
3,869
C#
using PoESkillTree.Engine.Computation.Common.Builders.Values; using PoESkillTree.Engine.Utils; namespace PoESkillTree.Engine.Computation.Common.Builders.Resolving { /// <summary> /// Interface for objects that can be resolved using a <see cref="ResolveContext"/>. /// </summary> /// <typeparam name="T"...
35.744186
113
0.651919
[ "MIT" ]
BlazesRus/PoESkillTreeBlazesRusBranch.Engine
PoESkillTree.Engine.Computation.Common/Builders/Resolving/IResolvable.cs
1,539
C#
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved. // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. namespace cloudscribe.Core.IdentityServer.EFCore { public class EfConstants { public class TableNames { /...
49.72973
107
0.682065
[ "Apache-2.0" ]
4L4M1N/cloudscribe
src/cloudscribe.Core.IdentityServer.EFCore.Common/EfConstants.cs
1,842
C#
using IntegrationController.Model; using System; using System.IO; namespace IntegrationController.Interface { public interface IFileIntegration : IFileValidator { FileIntegrationType FileIntegrationType { get; } DateTime AsOfDate { get; } FileInfo File { get; } } }
17.4375
51
0.767025
[ "MIT" ]
iAvinashVarma/Runner
Reflector/IntegrationController/Interface/IFileIntegration.cs
281
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using FluentAssertions; using FluentAssertions.Extensions; using NUnit.Framework; using Vostok.Commons.Testing.Observable; using Vostok.Configuration.Abstractions.SettingsTree; using Vostok.Configuration.Sources.Object; namespace Vo...
37.154472
120
0.380817
[ "MIT" ]
vostok/configuration.sources
Vostok.Configuration.Sources.Tests/ObjectSource_Tests.cs
13,712
C#
namespace JMW.Google.OnHub.Model { public class RouterConfig { public string UpnpEnabled { get; set; } public string BridgeModeEnabled { get; set; } public string TrafficAcceleration { get; set; } public string RouterIpAddress { get; set; } public string RouterNetMask { ...
30.818182
55
0.637168
[ "MIT" ]
walljm/googlewifionhub
src/JMW.Google.OnHub/Model/RouterConfig.cs
341
C#
using System.Collections.Generic; class Test { static U[] Foo<T, U> (T[] arg) where T : class, U { return arg; } static void TestByRef<T> () { T[] array = new T[10]; PassByRef (ref array[0]); } static void PassByRef<T> (ref T t) { t = default (T); } public static int Main () { foreach (var e in...
13.322581
66
0.57385
[ "Apache-2.0" ]
121468615/mono
mcs/tests/gtest-557.cs
413
C#
using System; using System.Threading.Tasks; using NServiceBus; using NServiceBus.Logging; class SomeCommandHandler : IHandleMessages<SomeCommand> { static ILog log = LogManager.GetLogger<SomeCommandHandler>(); static Random random = new Random(); public async Task Handle(SomeCommand messag...
26
82
0.634615
[ "Apache-2.0" ]
Cogax/docs.particular.net
samples/logging/application-insights/Metrics_3/Endpoint/SomeCommandHandler.cs
603
C#
using DCISDBManager.objLib.Certificate; using DCISDBManager.trnLib.CertificateManagement; using DCISDBManager.trnLib.ParameterManagement; using DCISDBManager.trnLib.Utility; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading; using System.Web; using System.Web.UI...
49.986928
188
0.498431
[ "Apache-2.0" ]
Ruke45/DManagement
DSCMS/DSCMS/Views/Certificate/PendingCertificates.aspx.cs
53,538
C#
using System; using HotChocolate.Language; namespace HotChocolate.Types { public abstract class ScalarType : INamedOutputType , INamedInputType , ISerializableType { protected ScalarType(string name) : this(name, null) { } protected ScalarTyp...
23.477273
66
0.603098
[ "MIT" ]
gmiserez/hotchocolate
src/Types/Types/Scalars/ScalarType.cs
1,033
C#
namespace OctopusSamples.OctoPetShop { public class AppSettings { public string AppVersion { get; set; } public string EnvironmentName { get; set; } public string ProductServiceBaseUrl { get; set; } public string ShoppingCartServiceBaseUrl { get; set; } } }
27.454545
62
0.662252
[ "Apache-2.0" ]
DamovisaInc/SarahOctoPet
OctopusSamples.OctoPetShop.Web/AppSettings.cs
302
C#
namespace NServiceBus.Unicast.Queuing { using System; [Serializable] public class FailedToSendMessageException : Exception { public FailedToSendMessageException() { } public FailedToSendMessageException( string message ) : base( message ) { } public FailedToSendMessageExcepti...
37.25
106
0.708054
[ "Apache-2.0", "MIT" ]
abombss/NServiceBus
src/NServiceBus.Core/Unicast/Queuing/FailedToSendMessageException.cs
581
C#
using UnityEngine; public class Goal : MonoBehaviour { public float positionRange; public float minScale, maxScale; [HideInInspector] public HaulerAgent agent; private void OnTriggerEnter(Collider other) { if (other.CompareTag("target")) { agent.MarkTaskDone(TaskEndRea...
29.451613
138
0.645126
[ "MIT" ]
damasioj/Hauler
Assets/World/Scripts/Goal/Goal.cs
915
C#
namespace Yoga.Parser { using System; using System.Collections.Generic; using System.Linq; using System.Reflection; public class NodeRenderer<T> : INodeRenderer { public NodeRenderer(IYogaParser parser, string name = null) { this.parser = parser; if (name == null) { var typename = typeof(T).Na...
21.297872
84
0.688312
[ "MIT" ]
aloisdeniel/Yoga.Parser
Sources/Yoga.Parser.Xml/NodeRenderers/NodeRenderer.cs
2,004
C#
using System.Collections.Generic; using System.Linq; namespace NuGetGallery { public class PackageSearchResults { public IQueryable<Package> Packages { get; set; } public IEnumerable<int> RankedKeys { get; set; } } }
20.583333
57
0.684211
[ "ECL-2.0", "Apache-2.0" ]
JetBrains/ReSharperGallery
src/NuGetGallery/Services/PackageSearchResults.cs
249
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Xamarin.Forms; using Xamarin.Forms.Xaml; namespace Samples.Gps { [XamlCompilation(XamlCompilationOptions.Compile)] public partial class LogsPage : ContentPage { public LogsPag...
19.3
53
0.689119
[ "MIT" ]
DanielCauser/shiny
Samples/Samples/Gps/LogsPage.xaml.cs
388
C#
//------------------------------------------------------------------------------ // <copyright file="CaptureTests.cs" company="Microsoft"> // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // </copyright> //------------------------------------------------------------------...
31.480237
123
0.589554
[ "MIT" ]
3nfinite/Azure-Kinect-Sensor-SDK
src/csharp/Tests/UnitTests/CaptureTests.cs
15,931
C#
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Collections.Generic; using System.ComponentModel.Composition; using System.Linq; using Microsoft.VisualStudio; using Microsof...
33.911475
151
0.507396
[ "Apache-2.0" ]
KirillOsenkov/NuGet.Client
src/NuGet.Clients/NuGet.VisualStudio.Common/ErrorListTableDataSource.cs
10,343
C#
using Microsoft.EntityFrameworkCore.Migrations; using System; using System.Collections.Generic; namespace ASPNetCoreAngularApp.Migrations { public partial class Initial : Migration { protected override void Up(MigrationBuilder migrationBuilder) { } protected override void Dow...
19.3
71
0.694301
[ "MIT" ]
Preethamraj553/ASPNetCoreAngularApp
src/ASPNetCoreAngularApp.EntityFrameworkCore/Migrations/20180327105811_Initial.cs
388
C#
int[] videoPart(string part, string total) { int watchedTime = timeToSeconds(part); int totalTime = timeToSeconds(total); int div = gcd(watchedTime, totalTime); return new int[]{watchedTime / div, totalTime / div}; } int gcd(int a, int b){ if(b == 0) return a; else retur...
25.75
59
0.618123
[ "Unlicense" ]
DKLynch/CodeSignal-Tasks
The Core/Time River/131. Video Part/videoPart.cs
618
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Collections.Generic; using System.Diagnostics; namespace System.Linq { /// <summary> /// A li...
32.983673
158
0.503774
[ "MIT" ]
Acidburn0zzz/corefx
src/System.Linq/src/System/Linq/Set.cs
8,083
C#
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using DebuggerTesting.OpenDebug.Commands.Responses; namespace DebuggerTesting.OpenDebug.Commands { public sealed class SetVariableCommandArgs { public...
34.4375
109
0.677858
[ "MIT" ]
Hedges/MIEngine
test/DebuggerTesting/OpenDebug/Commands/SetVariableCommand.cs
1,104
C#
using PwshKeePass.Commands.Database; using PwshKeePass.Common.Extensions; using PwshKeePass.Test.Mocks; using Xunit; namespace PwshKeePass.Test.Commands { [Collection("CmdletTests")] public class GetKeePassDatabaseConfigurationTests : IClassFixture<PwshKeePassTestFixture> { private readonly PwshKee...
36.246753
93
0.613759
[ "MIT" ]
dimitertodorov/PwshKeePass
PwshKeePass.Test/Commands/GetKeePassDatabaseConfigurationTests.cs
2,791
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Sce.Atf.VectorMath; namespace MaterialTool.AdaptiveNodes { class RawMaterialStorage : AuthoringConcept.AdaptiveEditing.IDataBlock { public void SetInt(string label, int newValue) { SetValue(...
31.007299
160
0.536017
[ "MIT" ]
djewsbury/XLE
Tools/MaterialTool/AdaptiveNodes/RawMaterialStorage.cs
4,250
C#
namespace NetrixHtmlEditorDemo.Dialogs { partial class AboutDialog { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summar...
40.313559
107
0.571999
[ "MIT" ]
andydunkel/netrix
NetrixDemo/NetrixHtmlEditorDemo/Dialogs/AboutDialog.Designer.cs
4,757
C#
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using JetBrains.Annotations; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Storage; using Microsoft.EntityFram...
52.651515
117
0.65295
[ "Apache-2.0" ]
vitorelli/efcore
src/EFCore.Relational/Design/AnnotationCodeGeneratorDependencies.cs
3,475
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; using System.Globalization; using System.IO; using System.Linq; na...
39.956757
172
0.54816
[ "MIT" ]
Lu-Lucifer/tye
src/Microsoft.Tye.Hosting/Model/Application.cs
7,394
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; using System.Collections.Generic; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Runtime.InteropServices; using Loretta.CodeAnalysis.Tex...
32.035611
151
0.520715
[ "MIT" ]
44wolfrevOkcatS/Loretta
src/Compilers/Core/Portable/Syntax/SyntaxNodeOrToken.cs
33,287
C#
 namespace GameLogic.Rules { public class SelectorArguments { public float MinLength { get; set; } public float MaxLength { get; set; } } }
16.9
44
0.609467
[ "MIT" ]
Selinux24/SharpDX-Tests
Samples/Z Game Logic/Rules/SelectorArguments.cs
171
C#
/* * [The "BSD licence"] * Copyright (c) 2011 Terence Parr * All rights reserved. * * Conversion to C#: * Copyright (c) 2011 Sam Harwell, Pixel Mine, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the fol...
41.575221
85
0.621115
[ "MIT" ]
MJRichardson/TypeSql
TypeSql/Parsing/Antlr/Antlr3.Runtime/Tree/CommonTreeAdaptor.cs
4,698
C#
// <file> // <copyright see="prj:///doc/copyright.txt"/> // <license see="prj:///doc/license.txt"/> // <owner name="Daniel Grunwald" email="daniel@danielgrunwald.de"/> // <version>$Revision$</version> // </file> using System; using System.Collections.Generic; using System.Drawing; namespace ICSharpCo...
21.604167
124
0.538734
[ "MIT" ]
chenrensong/Coding4Fun.WinFormUI
src/TextEditor/Document/MarkerStrategy/TextMarker.cs
3,113
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.HttpsPolicy; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Dependency...
30.697674
106
0.688636
[ "MIT" ]
extragornax/dashboard_epitech
Dashboard_api/Startup.cs
1,320
C#
using System; namespace BuffettCodeCommon.Period { public class ComparablePeriodUtil { public static int GetGap(IPeriod start, IPeriod end) { if (start is FiscalQuarterPeriod sfq && end is FiscalQuarterPeriod efq) { return GetGap(sfq, efq); } ...
30.25
158
0.567887
[ "Apache-2.0" ]
BuffettCode/buffett-code-api-clinet-excel
BuffettCodeCommon/Period/ComparablePeriodUtil.cs
847
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Http; using System.Web.Mvc; using System.Web.Optimization; using System.Web.Routing; namespace Todo { public class WebApiApplication : System.Web.HttpApplication { protected void Application_Start() ...
27.291667
70
0.709924
[ "MIT" ]
hamed-farag/PushNotification
Todo/Todo/Global.asax.cs
657
C#
using System; namespace Ultraviolet.Input { /// <summary> /// Represents a factory method which constructs instances of the <see cref="SoftwareKeyboardService"/> class. /// </summary> /// <returns>The instance of <see cref="SoftwareKeyboardService"/> that was created.</returns> public delegate Sof...
42.276923
125
0.64556
[ "Apache-2.0", "MIT" ]
MicroWorldwide/ultraviolet
Source/Ultraviolet/Shared/Input/SoftwareKeyboardService.cs
2,750
C#
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ /...
37.236364
153
0.603516
[ "MIT" ]
OfficeGlobal/msgraph-beta-sdk-dotnet
src/Microsoft.Graph/Requests/Generated/WindowsManagementAppHealthSummaryRequestBuilder.cs
2,048
C#
using System; using System.Threading.Tasks; using Microsoft.Maui.Animations; using Microsoft.Maui.Handlers; namespace Microsoft.Maui.Controls.Core.UnitTests { class AnimationReadyHandler : AnimationReadyHandler<BlockingTicker> { public AnimationReadyHandler() : base(new TestAnimationManager(new BlockingTicker(...
25.214953
105
0.751668
[ "MIT" ]
10088/maui
src/Controls/tests/Core.UnitTests/TestClasses/AnimationReadyHandler.cs
2,700
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace zwg_china.model { /// <summary> /// 注册奖励的参与记录 /// </summary> public class RewardForRegisterRecord : RecordingTimeModelBase { #region 属性 /// <summary> /// 用户 ...
22.47619
85
0.487994
[ "Apache-2.0" ]
returnanapple/zwg-china-iworld
zwg-china.activity.model/RewardForRegisterRecord.cs
1,572
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; namespace RevisaoEstoque.Controllers { public class RelatorioController : Controller { [Authorize] public ActionResult PosicaoEstoque() { return View(); } ...
19.727273
49
0.601382
[ "MIT" ]
igorandrade12/Sistema-de-Cadastro-MVC
RevisaoEstoque/RevisaoEstoque/Controllers/RelatorioController.cs
436
C#
namespace teste_03 { partial class Form1 { /// <summary> /// Variável de designer necessária. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Limpar os recursos que estão sendo usados. /// </summary> /...
32.403226
124
0.550523
[ "MIT" ]
adrianosan/teste
teste 03/teste 03/Form1.Designer.cs
2,023
C#
using Microsoft.AspNetCore.Identity; using System; using System.Collections.Generic; using System.Text; namespace Core.Models.Manager { public class ManagerClaim : IdentityUserClaim<string> { } }
17.5
57
0.757143
[ "MIT" ]
Smahdie/Blog
src/Core/Models/Manager/ManagerClaim.cs
212
C#
using System; using System.Xml; namespace pjank.BossaAPI.Fixml { public enum MDRejectReason { UnknownSymbol = '0', // nieznany walor DuplicateRequestId = '1', // duplikat MDReqID UnsupportedRequestType = '4', // błąd w polu SubReqTyp UnsupportedMarketDepth = '5', // niewspiera...
28.423077
68
0.673884
[ "Apache-2.0" ]
L-Sypniewski/bossa-api.net
BossaAPI/src/Networking/Fixml/MarketData/MDRejectReason.cs
743
C#
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using FileHelpers; namespace nCode.Data { /// <summary> /// /// </summary> /// <typeparam name="B">FileHelpers boddy-class.</typeparam> public abstract class FileHelpersImportManage...
37.267606
144
0.573696
[ "Unlicense" ]
niklascp/ncode
src/nCode/Data/FileHelpersImportManager.cs
2,648
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Xamarin.Forms; using Xamarin.Forms.Xaml; using XF_ListView.Models; namespace XF_ListView { [XamlCompilation(XamlCompilationOptions.Compile)] public partial class ListView_Exercicio1 : Cont...
26.085714
102
0.634173
[ "MIT" ]
LuizMarcello/XF_ListView
XF_ListView/XF_ListView/XF_ListView/ListView_Exercicio1.xaml.cs
916
C#
// Copyright (c) János Janka. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using Microsoft.AspNetCore.Mvc; namespace Partnerinfo { /// <summary> /// Adds extensions methods to the <see cref="Controller" /> class to make i...
41.692308
157
0.658672
[ "Apache-2.0" ]
janosjanka/Partnerinfo
src/Partnerinfo.Web.Api/OperationErrorControllerExtensions.cs
1,087
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...
40.675676
85
0.732226
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
UtrsSoftware/ATMLWorkBench
ATML1671Allocator/Properties/AssemblyInfo.cs
1,508
C#
namespace YesterdayApi.Core.Identity { public interface ITokenDecoder { int GetUserId(string authHeader); } }
16.25
41
0.684615
[ "MIT" ]
AlexTorianyk/yesterday-api
YesterdayApi/Core/Identity/ITokenDecoder.cs
130
C#
using Moq; using Prism.Forms.Tests.Mocks.Modules; using Prism.Modularity; using Xunit; namespace Prism.Forms.Tests.Modularity { public class ModuleManagerExtensionsFixture { [Fact] public void ModuleManagerExposesIModuleCatalogModules() { var modules = new[] { ...
43.123596
112
0.653205
[ "MIT" ]
Adam--/Prism
tests/Forms/Prism.Forms.Tests/Modularity/ModuleManagerExtensionsFixture.cs
3,840
C#
namespace Etch.OrchardCore.ContentPermissions.Models { public class ContentPermissionsPartSettings { public string RedirectUrl { get; set; } public bool HasRedirectUrl { get { return !string.IsNullOrWhiteSpace(RedirectUrl); } } } }
18.3125
67
0.634812
[ "Apache-2.0" ]
giannik/EasyOC
src/Modules/StatCan.OrchardCore.ContentPermissions/Models/ContentPermissionsPartSettings.cs
295
C#
using Nop.Core.Domain.Payments; using Nop.Services.Logging; using Nop.Services.Payments; using System; using System.Collections.Generic; using Nop.Services.Localization; using Nop.Services.Configuration; using Nop.Services.Plugins; using NopBrasil.Plugin.Payments.PayU.Controllers; using NopBrasil.Plugin.Payments.PayU....
44.429752
169
0.727307
[ "MIT" ]
nopCommerceBrasil/NopBrasil.Plugin.Payments.PayU
PayUPaymentProcessor.cs
5,383
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Tree : MonoBehaviour { [SerializeField] private float treeHealth; [SerializeField] private Animator anim; [SerializeField] private GameObject woodPrefab; [SerializeField] private int totalWood; [Serial...
25.232558
144
0.578802
[ "MIT" ]
ThiagoPereira232/Curso-Start-GameDev
Top Down Game 2D/Assets/Scripts/Craft/Tree.cs
1,085
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; using Silk.NET.Core.Attributes; #pragma warning disable 1591 namespace Silk.NET.OpenGL { [NativeName("Name", "PathElementType")] public enum PathElementType ...
22.761905
71
0.667364
[ "MIT" ]
Ar37-rs/Silk.NET
src/OpenGL/Silk.NET.OpenGL/Enums/PathElementType.gen.cs
478
C#
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Collections.Generic; using System.Linq; using System.Reflection; using Microsoft.EntityFrameworkCore.Diagnostics; using Microsoft.EntityFra...
53.036145
113
0.66856
[ "Apache-2.0" ]
AshkanAbd/efcore
src/EFCore.Cosmos/Query/Internal/CosmosMethodCallTranslatorProvider.cs
4,402
C#
// This file is auto-generated, don't edit it. Thanks. using System; using System.Collections.Generic; using System.IO; using Tea; namespace AntChain.SDK.SHUZIWULIU.Models { public class CancelCreditIssuebatchRequest : TeaModel { // OAuth模式下的授权token [NameInMap("auth_token")] [Validation(R...
25.692308
59
0.610778
[ "MIT" ]
alipay/antchain-openapi-prod-sdk
shuziwuliu/csharp/core/Models/CancelCreditIssuebatchRequest.cs
1,446
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...
30.241935
109
0.592
[ "MIT" ]
AzureAutomationTeam/azure-sdk-for-net
src/SDKs/HDInsight/Management.HDInsight/Generated/Models/Operation.cs
1,875
C#
namespace GraphQLCore.Validation.Rules { using Exceptions; using Language.AST; using System.Collections.Generic; using Type; public class FieldsOnCorrectType : IValidationRule { public IEnumerable<GraphQLException> Validate(GraphQLDocument document, IGraphQLSchema schema) { ...
24.947368
102
0.668776
[ "MIT" ]
mkmarek/graphql-ast-dotnetcore
src/GraphQLCore/Validation/Rules/FieldsOnCorrectType.cs
476
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Text; using System.Threading.Tasks; using VEF.ComponentModel; namespace VEF.Interfaces.Settings { //public abstract class AbstractSettings : IDataErrorInfo //: ApplicationSettingsBase, IDat...
31
115
0.53595
[ "MIT" ]
devxkh/FrankE
Editor/VEF/VEF.XForms/Interface/Settings/AbstractSettings.cs
2,575
C#
using System.IO; using System.Linq; using DesperateDevs.CodeGeneration; namespace Entitas.CodeGeneration.Plugins { public class ComponentEntityApiInterfaceGenerator : AbstractGenerator { public override string name { get { return "Component (Entity API Interface)"; } } const string STANDARD_TEM...
35.084507
118
0.603372
[ "MIT" ]
Eagle-Lai/Entitas-CSharp
Addons/Entitas.CodeGeneration.Plugins/Entitas.CodeGeneration.Plugins/CodeGenerators/Component/ComponentEntityApiInterfaceGenerator.cs
2,493
C#
using Xamarin.Forms.Internals; using Xamarin.Forms.Xaml; namespace EssentialUIKit.Themes { [Preserve(AllMembers = true)] [XamlCompilation(XamlCompilationOptions.Compile)] public partial class DarkTheme { public DarkTheme() { InitializeComponent(); } } }
20.733333
53
0.652733
[ "MIT" ]
MohanlalGo/essential-ui-kit-for-xamarin.forms
EssentialUIKit/Themes/DarkTheme.xaml.cs
313
C#
using Biobanks.Entities.Data; using Biobanks.Identity.Data.Entities; using Biobanks.Services.Dto; using System; using System.Collections.Generic; using System.Threading.Tasks; namespace Biobanks.Services.Contracts { public interface IOrganisationService { /// <summary> /// Get all untracked Or...
47.544355
126
0.656178
[ "MIT" ]
biobankinguk/biobankinguk
src/Directory/Services/Contracts/IOrganisationService.cs
11,793
C#
// Copyright (c) Six Labors. // Licensed under the Apache License, Version 2.0. using BenchmarkDotNet.Attributes; using SixLabors.ImageSharp.Web.Synchronization; namespace SixLabors.ImageSharp.Web.Benchmarks.Synchronization { /// <summary> /// Each of these tests obtains a lock (which completes synchronously ...
48.241379
127
0.606505
[ "Apache-2.0" ]
DonPangPang/ImageSharp.Web
tests/ImageSharp.Web.Benchmarks/Synchronization/AsyncLockBenchmarks.cs
2,798
C#
using Alphaleonis.Win32.Filesystem; using System.Security.AccessControl; namespace Security2 { public partial class FileSystemAccessRule2 { #region Properties private FileSystemAccessRule fileSystemAccessRule; private string fullName; private bool inheritanceEnabled; pr...
40.743243
122
0.671642
[ "MIT" ]
AspenForester/NTFSSecurity
Security2/FileSystem/FileSystemAccessRule2 Class/FileSystemAccessRule2.cs
3,017
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using SharpFileSystem.FileSystems; namespace SharpFileSystem { public sealed class MemoryFileSystemWatcher : IFileSystemWatcher , IDisposable { readonly ...
26.109375
88
0.428785
[ "MIT" ]
vain0/playground
2017-01-15-tuktuk-the-explorer/src/sharpfilesystem/SharpFileSystem/FileSystemWatchers/MemoryFileSystemWatcher.cs
3,344
C#
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using DSA.DataStructures.Lists; using System.Linq; namespace DSAUnitTests.DataStructures.Lists { [TestClass] public class ArrayListTests { [TestMethod] public void AddingItemsOneByOne() { var list = new A...
24.895782
76
0.401874
[ "MIT" ]
MichaelaIvanova/DSA
DSA/DSAUnitTests/DataStructures/Lists/ArrayListTests.cs
10,035
C#
namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// <summary>Health Error</summary> public partial class HealthError : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.IHealthErr...
54.313208
413
0.655458
[ "MIT" ]
3quanfeng/azure-powershell
src/Migrate/generated/api/Models/Api20180110/HealthError.cs
14,129
C#
using MasterDevs.ChromeDevTools; namespace MasterDevs.ChromeDevTools.Protocol.Network { /// <summary> /// Fired when WebSocket is closed. /// </summary> [Event(ProtocolName.Network.WebSocketClosed)] public class WebSocketClosedEvent { /// <summary> /// Gets or sets Request identifier. /// </summary> publ...
22
52
0.681818
[ "MIT" ]
brewdente/AutoWebPerf
MasterDevs.ChromeDevTools/Protocol/Network/WebSocketClosedEvent.cs
462
C#
using NUnit.Framework; using System; namespace nerderies.TelegramBotApi.UnitTests.Parameters { public class MultipartStringParameterTests { [Test] public void Constructor_NullParameter_Throws() { Assert.Throws<ArgumentException>(() => new MultiPartStringParameter(null, "A")...
31.058824
93
0.668561
[ "MIT" ]
devnulli/TelegramBotApi.NET
TelegramBotApi/TelegramBotApi.UnitTests/QueryParameters/MultipartStringParameterTests.cs
530
C#
using FusionPlusPlus.Engine.Model; using System; using System.Globalization; using System.Text.RegularExpressions; namespace FusionPlusPlus.Engine.Parser { public class LogItemParser { public static CultureInfo _fallbackFormatProvider = new CultureInfo("en-US"); public LogItem Parse(string value) { value ...
31.195652
118
0.68676
[ "MIT" ]
bogdan-h/Fusion
Fusion++.Engine/Parser/LogItemParser.cs
2,872
C#
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Input; using Xamarin.Forms; using Xamarin.Forms.Xaml; namespace Demos { [XamlCompilation(XamlCompilationOptions.C...
33.409639
213
0.586008
[ "MIT" ]
kevinbrunet/SkiaSharp.DiagramEngine
Demos/Demos/HierarchicalItemsTemplate.xaml.cs
2,775
C#
namespace CommandPattern { using Core; using Core.Contracts; public class StartUp { public static void Main(string[] args) { ICommandInterpreter command = new CommandInterpreter(); IEngine engine = new Engine(command); engine.Run(); } } }...
20.0625
67
0.570093
[ "MIT" ]
ivanov-mi/SoftUni-Training
03CSharpOOP/07ReflectionAndAttributes/01CommandPattern/StartUp.cs
323
C#
using System.Collections.Generic; namespace HairSalon.Models { public class Client { public string Name { get; set; } public int ClientId { get; set; } public string Description { get; set; } public int StylistId { get; set; } public virtual Stylist Stylist { get; set; } } }
20.466667
48
0.654723
[ "MIT" ]
Brenthubbard/HairSalon.Solution
HairSalon/Models/Client.cs
307
C#
//------------------------------------------------------------------------------ // <自动生成> // 此代码由工具生成。 // // 对此文件的更改可能会导致不正确的行为,并且如果 // 重新生成代码,这些更改将会丢失。 // </自动生成> //------------------------------------------------------------------------------ namespace Ytg.ServerWeb.Page.Bank { public pa...
22.5
81
0.322222
[ "Apache-2.0" ]
heqinghua/lottery-code-qq-814788821-
YtgProject/Ytg.Server/Page/Bank/ytg_user_recharge.aspx.designer.cs
474
C#
using System; namespace Domain0.Auth.AspNet.Example { public class WeatherForecast { public DateTime Date { get; set; } public int TemperatureC { get; set; } public int TemperatureF => 32 + (int)(TemperatureC / 0.5556); public string Summary { get; set; } } }
19.25
69
0.613636
[ "MIT" ]
LavrentyAfanasiev/domain0
examples/Domain0.Auth.AspNet.Example/WeatherForecast.cs
308
C#
using System; namespace Hamburgueria_Tarde.Models { public class ErrorViewModel { public string RequestId { get; set; } public bool ShowRequestId => !string.IsNullOrEmpty(RequestId); } }
19.636364
70
0.680556
[ "MIT" ]
GabrielMelegaro/HamburgueriaWEBMVC
Models/ErrorViewModel.cs
216
C#
public class Solution { public int FindLUSlength(string[] strs) { //sort the array by length descendinly if(strs.Length == 0) return -1; Array.Sort(strs, (a, b) => b.Length - a.Length); for(var i = 0 ; i < strs.Length; ++i){ var isSubsequence = false; for(var ...
32.633333
64
0.490296
[ "MIT" ]
webigboss/Leetcode
522. Longest Uncommon Subsequence II/522_Original_Sort_CheckSubsequence.cs
979
C#
// ============================================================================ // FileName: Record.cs // // Description: // // // Author(s): // Alphons van der Heijden // // History: // 28 Mar 2008 Aaron Clauson Added to sipswitch code base based on http://www.codeproject.com/KB/library/DNS.NET_Resolver.a...
25.965517
130
0.4834
[ "BSD-3-Clause" ]
SubportBE/sipsorcery
src/net/DNS/Records/Record.cs
753
C#
using Fpl.Client.Abstractions; using Fpl.Client.Models; using FplBot.Data.Slack; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; using Microsoft.Extensions.Options; using Slackbot.Net.Endpoints.Hosting; using Slackbot.Net.SlackClients.Http; using Slackbot.Net.SlackClients.Http.Exceptions; na...
34.44086
189
0.639713
[ "MIT" ]
Eszra92/fplbot
src/FplBot.WebApi/Pages/Admin/TeamDetails/Show.cshtml.cs
3,203
C#