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 NUnit.Framework; using Terrace.Extensions; using System; using System.Collections.Generic; using System.Text; using System.Collections; using System.Linq; namespace Terrace.Extensions.Tests { [TestFixture] public class ByteArrayExtensionTests_ToInt64 { [Test] public void ToInt64_Retu...
24.916667
93
0.60981
[ "MIT" ]
YeochangYoon/Terrace.Extensions
test/Terrace.Extensions.Tests/System.Byte[]/Byte[].ToInt64.Tests.cs
899
C#
// ----------------------------------------------------------------------- // <copyright file="RoleBase.cs" company="OSharp开源团队"> // Copyright (c) 2014-2017 OSharp. All rights reserved. // </copyright> // <site>http://www.osharp.org</site> // <last-editor>郭明锋</last-editor> // <last-date>2017-09-04 19:33</las...
28.019608
108
0.514696
[ "Apache-2.0" ]
0xflotus/osharp
src/OSharp.Permissions/Identity/RoleBase.cs
3,370
C#
using System; using System.Collections; using System.Collections.Generic; using System.Collections.Immutable; namespace WSharp.Compiler.Syntax { public sealed class SeparatedSyntaxList<T> : IEnumerable<T> where T : SyntaxNode { internal SeparatedSyntaxList(ImmutableArray<SyntaxNode> nodesAndSeparators) => ...
26.8
81
0.721082
[ "MIT" ]
JasonBock/WSharp
WSharp.Compiler/Syntax/SeparatedSyntaxList.cs
1,074
C#
using System.Diagnostics.Tracing; namespace Storage.NetCore { /// <summary> /// Internal logger /// </summary> [EventSource(Name = "Storage.Net")] public sealed class StorageEventSource : EventSource { /// <summary> /// Logger instance /// </summary> public static StorageEven...
25.978261
79
0.545607
[ "MIT" ]
alexneblett/storage
src/Storage.Net/StorageEventSource.cs
1,197
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace GoldRush { public abstract class MoveableObject { public bool isLoaded; public abstract bool canMove(); public abstract void Move(); } }
19.285714
40
0.685185
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
dutchmartin/GoldRush
GoldRush/MoveableObject.cs
272
C#
using System; using System.Collections.Generic; using System.Threading; using Prometheus.Client.Collectors; using Prometheus.Client.MetricsWriter.Abstractions; namespace Prometheus.Client { public abstract class Labelled<TConfig> where TConfig : MetricConfiguration { private LabelValues _labelV...
29.210526
101
0.574324
[ "MIT" ]
malachib/Prometheus.Client
src/Prometheus.Client/Labelled.cs
2,220
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable using System; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; using Azure; using Azure.Core; using Azure.Core.Pipeline; using Azure.ResourceMa...
55.927835
240
0.675668
[ "MIT" ]
93mishra/azure-sdk-for-net
sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualRouterPeering.cs
10,850
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public interface IMageBossState { void Execute(); void Enter(MageBoss enemy); void Exit(); void OnCollisionEnter2D(Collision2D other); }
19.583333
47
0.744681
[ "Apache-2.0" ]
MadGriffonGames/BiltyBlop
Assets/Scripts/Enemies&States/BossMage/Mage/IMageBossState.cs
237
C#
using System; using System.Collections.Generic; using System.Configuration; using System.Data; using System.Data.SqlClient; using System.Linq; using System.Text; using System.Threading.Tasks; using Epam.Task7.Entities; using Epam.Task7.DAL.Interface; namespace Epam.Task7.DAL { public class UserDBDao : IUserDao ...
30.75
381
0.495011
[ "MIT" ]
Julya-Boldyreva/XT-2018Q4
Epam.Task11_12/Epam.Task7.DAL/UserDBDao.cs
5,414
C#
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using Microsoft.CodeAnalysis.CodeFixes; using Microsoft.CodeAnalysis.CSharp.FxCopAnalyzers.Usage; using Microsoft.CodeAnalysis.Diagnostics; using Microsoft.C...
26.309091
161
0.677954
[ "Apache-2.0" ]
DavidKarlas/roslyn
src/Diagnostics/FxCop/Test/Usage/CodeFixes/CA2231FixerTests.cs
2,896
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using BattleTech; using BattleTech.UI; using Harmony; namespace IRTweaks.Modules.Misc { [HarmonyPatch(typeof(SimGameState))] [HarmonyPatch("ApplySimGameEventResult", new Type[] {typeof(S...
41.524272
216
0.59668
[ "MIT" ]
BattletechModders/IRTweaks
IRTweaks/IRTweaks/Modules/Misc/DifficultyModsFromStats.cs
4,279
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 Microsoft.Build.Framework; using Microsoft.Build.Utilities; using System; using System.IO; using System.IO.Co...
42.302326
146
0.557174
[ "MIT" ]
APiZFiBlockChain4/cli
build_projects/dotnet-cli-build/ZipFileExtractToDirectory.cs
3,640
C#
/******************************************************************************* * Copyright 2012-2019 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...
48.186842
254
0.597674
[ "Apache-2.0" ]
aws/aws-tools-for-powershell
modules/AWSPowerShell/Cmdlets/ConfigService/Basic/Get-CFGOrganizationConformancePack-Cmdlet.cs
18,311
C#
using System; using System.Data; using System.Data.SqlClient; using System.Globalization; namespace DataBridge.SqlServer.IntegrationTests { internal static class TestDatabase { private const int SqlErrorCodeDatabaseNotExists = -2146232060; public static void EnsureCleanDatabaseExists(string d...
32.051282
125
0.5096
[ "MIT" ]
nootn/DataBridge
DataBridge.SqlServer.IntegrationTests/TestDatabase.cs
3,752
C#
using System.Collections.Generic; using System.Diagnostics; using TES3Lib.Base; using TES3Lib.Subrecords.ALCH; using TES3Lib.Subrecords.Shared; using TES3Lib.Subrecords.Shared.Castable; namespace TES3Lib.Records { [DebuggerDisplay("{NAME.EditorId}")] public class ALCH : Record { /// <summary> ...
20.913793
51
0.490519
[ "MIT" ]
NullCascade/TES3Tool
TES3Lib/Records/ALCH.cs
1,215
C#
using System; using System.Collections.Generic; using System.Linq; namespace HoneybeeSchema { public class ConstrucitonThermalCalculator { private static List<Energy.IMaterial> MaterialList { get; set; } public static void CalOpaqueValues(List<Energy.IMaterial> materials, out double RValue, o...
40.847826
167
0.51244
[ "MIT" ]
chriswmackey/honeybee-schema-dotnet
src/HoneybeeSchema/ManualAdded/Model/ConstrucitonThermalCalculator.cs
15,034
C#
namespace Employees.App.Command { using System; public class ExitCommand : ICommand { public string Execute(params string[] args) { Console.WriteLine("Good Bye!"); Environment.Exit(0); return string.Empty; } } }
18.1875
51
0.549828
[ "MIT" ]
Pazzobg/03.01.CSharp-DB-Advanced-Entity-Framework
11. EF Core AutoMapping Objects/P01_EmployeesMappingUsingServices/Employees.App/Command/ExitCommand.cs
293
C#
using System.Diagnostics; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Wexflow.DotnetCore.Tests { [TestClass] public class FileContentMatch { [TestInitialize] public void TestInitialize() { } [TestCleanup] public void TestClea...
24.823529
65
0.552133
[ "MIT" ]
mohammad-matini/wexflow
tests/dotnet-core/Wexflow.DotnetCore.Tests/FileContentMatch.cs
846
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. namespace Microsoft.ClearScript.JavaScript { /// <summary> /// Defines properties and methods common to all JavaScript /// <see href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Typed_arrays">typed a...
51.64
163
0.601278
[ "MIT" ]
Amalkarunakaran/ClearScript
ClearScript/JavaScript/ITypedArray.cs
5,164
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fi...
40.035063
154
0.624329
[ "Apache-2.0" ]
MDanialSaleem/aws-sdk-net
sdk/src/Services/SimpleSystemsManagement/Generated/ServiceEnumerations.cs
202,097
C#
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *------------------------------------------------------------...
52.847458
273
0.589694
[ "MIT" ]
3quanfeng/azure-powershell
src/DesktopVirtualization/generated/runtime/AsyncOperationResponse.cs
9,178
C#
namespace Merchello.Core.Persistence.Repositories { using System; using System.Collections.Generic; using System.Data; using System.Linq; using Merchello.Core.Models; using Merchello.Core.Models.EntityBase; using Merchello.Core.Models.Rdbms; using Merchello.Core.Persistence.Factories; ...
31.430556
144
0.520548
[ "MIT" ]
Mindbus/Merchello
src/Merchello.Core/Persistence/Repositories/ShipMethodRepository.cs
6,791
C#
// 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 // regenerated. namespa...
51.45986
436
0.584869
[ "MIT" ]
dnelly/azure-sdk-for-net
src/ResourceManagement/Batch/Microsoft.Azure.Management.Batch/Generated/BatchAccountOperations.cs
117,946
C#
/* MIT License Copyright (c) 2017 Uvi Vagabond, UnityBerserkers 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, modify, m...
45.395833
164
0.791648
[ "MIT" ]
uvivagabond/Visualization-of-physics-in-Unity
Assets/Scripts/Test Scripts for Vectors/VizualizeRotateTowardsTest.cs
2,181
C#
using System; using System.IO; using Microsoft.DotNet.Cli.Utils; namespace Microsoft.DotNet.Tools.Compiler.Native { public class Program { public static int Main(string[] args) { DebugHelper.HandleDebugSwitch(ref args); return ExecuteApp(args); } ...
26.54321
100
0.485116
[ "MIT" ]
BrennanConroy/cli
src/Microsoft.DotNet.Tools.Compiler.Native/Program.cs
2,152
C#
using System.Collections.Generic; namespace BfavToFavrModConverter.Bfav { /// <summary>Represents BFAV's 'content.json' file.</summary> public class BfavContent { /********* ** Accessors *********/ /// <summary>The content wrapper for each animal.</summary> public L...
24.733333
67
0.595687
[ "MIT" ]
AndyCrocker/StardewMods
BfavToFavrModConverter/Bfav/BfavContent.cs
373
C#
// <auto-generated /> using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Northwind.Persistence; namespace Northwind.Persistence.Migrations { [DbConte...
35.454545
125
0.570085
[ "MIT" ]
aquapirat/IntivePatronage3
Northwind.Persistence/Migrations/NorthwindDbContextModelSnapshot.cs
2,342
C#
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Numerics; namespace Tasks { public class E { public static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = fals...
40.15
158
0.466169
[ "CC0-1.0" ]
AconCavy/AtCoder.Tasks.CS
ABC/ABC195/Tasks/E.cs
2,409
C#
namespace OQF.Utils { public static class MoveValidator { public static bool IsValidMove(string move) { return MoveParser.GetMove(move) != null; } } }
16.3
45
0.705521
[ "Apache-2.0" ]
dotnetpro/contest012017
OpenQuoridorFramework/OQF.Utils/MoveValidator.cs
165
C#
using Microsoft.AspNetCore.Mvc.ApplicationModels; using Microsoft.AspNetCore.Mvc.RazorPages; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection.Extensions; using Microsoft.Extensions.Options; namespace OCore.Mvc.RazorPages { public static class ModularPageMvcCoreBuilderE...
35.458333
120
0.749706
[ "BSD-3-Clause" ]
china-live/OCore
src/OCore/OCore.Mvc.Core/RazorPages/ModularPageMvcCoreBuilderExtensions.cs
851
C#
using GradeBook.Models; namespace GradeBook { public class Program { public const string CommandInfoFilePath = "command-help.json"; public static void Main() { var school = new School("Unibit"); var terminal = new ConsoleTerminal(school); terminal.S...
21.5625
70
0.576812
[ "MIT" ]
KostaDinkov/unibit-programming-practice
GradeBook/Program.cs
347
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.Concurrent; using System.IO; using System.Text; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Reflection; using...
38.122024
182
0.619408
[ "MIT" ]
LoopedBard3/runtime
src/coreclr/nativeaot/System.Private.CoreLib/src/System/Reflection/Runtime/Assemblies/RuntimeAssemblyInfo.cs
12,809
C#
#region File Description //----------------------------------------------------------------------------- // GameSprite2D.cs // // Microsoft XNA Community Game Platform // Copyright (C) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- #endregion...
32.950787
89
0.520521
[ "MIT" ]
SimonDarksideJ/XNAGameStudio
Samples/RobotGame_ARCHIVE_2_0/RobotGame/RobotGameData/Object/GameSprite2D.cs
16,743
C#
//----------------------------------------------------------------------- // <copyright file="Database.cs" company="None"> // Copyright (c) Brandon Wallace and Jesse Calhoun. All rights reserved. // </copyright> //----------------------------------------------------------------------- namespace TQVaultAE.Data { us...
32.02079
178
0.675399
[ "MIT" ]
AirsQ/TQVaultAE
src/TQVaultAE.Data/Database.cs
30,804
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Fove3DCursorhit : MonoBehaviour { private Vector3 originhit;//視点 private float origindirection;//視点までの距離の2乗 private float origindirection2;//視点までの距離の private float origindirection3;//視点までの距離の√ private Vecto...
56.029412
188
0.595101
[ "MIT" ]
Yoshiya1113/Fove
Assets/Examples/FoveCursor/Scripts/EyeCheck/miss/Fove3DCursorhit.cs
6,385
C#
namespace p04._02.Palindromes { using System; using System.Collections.Generic; using System.Linq; class Palindromes2 { static void Main(string[] args) { string[] text = Console.ReadLine() .Split(new char[] { ' ', ',', '.', '?', '!' }, ...
24.727273
62
0.459559
[ "MIT" ]
vesy53/SoftUni
Tech Module/Extended-Programming-Fundamentals/ExtendedStringAndTextProcessingLab/p04.02.Palindromes/Palindromes2.cs
818
C#
using UnityEngine; using System.Collections.Generic; namespace Mirror { /// <summary> /// Component that limits visibility of networked objects to the authority client. /// <para>Any object with this component on it will only be visible to the client that has been assigned authority for it.</para> ///...
49.162791
140
0.684484
[ "MIT" ]
AW1534/Mirror
Assets/Mirror/Components/NetworkOwnerChecker.cs
2,116
C#
using System.Collections.Generic; using System.Globalization; using NUnit.Framework; namespace System.IO.Abstractions.TestingHelpers.Tests { using XFS = MockUnixSupport; [TestFixture] public class MockFileInfoTests { [Test] public void MockFileInfo_NullPath_ThrowArgumentNullException(...
38.658683
120
0.592472
[ "MIT" ]
KaliVi/System.IO.Abstractions
System.IO.Abstractions.TestingHelpers.Tests/MockFileInfoTests.cs
25,826
C#
using Microsoft.AspNetCore; using Microsoft.AspNetCore.Hosting; namespace PortalCompanionApp { public class Program { public static void Main(string[] args) { CreateWebHostBuilder(args).Build().Run(); } public static IWebHostBuilder CreateWebHostBuilder(string[] ar...
23.444444
76
0.632701
[ "MIT" ]
dylanhaskins/PowerPlatformCICD
PortalCompanionApp/Program.cs
424
C#
using System.Collections.Generic; public class PositionCalculationResult { private readonly HashSet<PositionController> possibleMovementPositions; public PositionCalculationResult (HashSet<PositionController> possibleMovementPositions) { this.possibleMovementPositions = possibleMovementPositions; ...
29.8
94
0.794183
[ "MIT" ]
RobertBleyl/chess-with-research
Assets/Scripts/Positions/PositionCalculationResult.cs
447
C#
using System; using Snowflake.Filesystem; using Snowflake.Model.Records.File; namespace Snowflake.Model.Records { public class FileRecord : IFileRecord { /// <inheritdoc/> public IMetadataCollection Metadata { get; } /// <inheritdoc/> public Guid RecordID => File.FileGuid; ...
23.642857
96
0.610272
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
SnowflakePowered/snowflake
src/Snowflake.Framework/Model/Records/FileRecord.cs
664
C#
using Bing.Utils.Files; using Xunit; namespace Bing.Utils.Tests.Files { /// <summary> /// 测试文件大小 /// </summary> public class FileSizeTest { /// <summary> /// 测试 - 文件字节数 /// </summary> [Theory] [InlineData(FileSizeUnit.Byte, 1)] [InlineData(FileSizeUn...
29.457143
82
0.508729
[ "MIT" ]
brucehu123/Bing.NetCore
tests/Bing.Utils.Tests/Files/FileSizeTest.cs
2,182
C#
using Microsoft.AspNetCore.Authentication; using Microsoft.AspNetCore.Authentication.Cookies; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; using Microsoft.Extensions.Configuration; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Security.Claims;...
28.844444
121
0.774268
[ "MIT" ]
blyzer/Voyager
Samples/RazoreApp/Pages/Index.cshtml.cs
1,300
C#
#pragma checksum "C:\Users\Nompumelelo\source\repos\PixiePhotos_WebApp\Views\Shared\Error.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "d6a5625cc8fb4476f348b0fe9041c550465d8bf9" // <auto-generated/> #pragma warning disable 1591 [assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(...
44.354167
184
0.750352
[ "MIT" ]
Candice-hub1/Pixie.Photos_WebApp
obj/Debug/netcoreapp3.1/Razor/Views/Shared/Error.cshtml.g.cs
4,258
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.987179
106
0.633667
[ "Apache-2.0" ]
FoxBearBear/aws-sdk-net
sdk/src/Services/GameLift/Generated/Model/DescribeGameSessionsResponse.cs
2,495
C#
using System.Collections.Generic; using FairyGUI.Utils; using UnityEngine; namespace FairyGUI { /// <summary> /// GRichTextField class. /// </summary> public class GRichTextField : GTextField { /// <summary> /// /// </summary> public RichTextField ric...
24.864407
68
0.505112
[ "MIT" ]
JoliChen/FairyGUI-unity
Assets/Scripts/UI/GRichTextField.cs
1,469
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...
43.064935
112
0.629976
[ "MIT" ]
LaudateCorpus1/azure-powershell
src/ResourceManager/HDInsight/Commands.HDInsight/ManagementCommands/AddAzureHDInsightConfigValuesCommand.cs
6,481
C#
using System; using System.IO; using System.Linq; using Dalion.WebAppTemplate.Api.Controllers; using Dalion.WebAppTemplate.Api.Models.Links; using Dalion.WebAppTemplate.Api.Services; using Dalion.WebAppTemplate.Configuration; using Dalion.WebAppTemplate.Utils; using FluentAssertions; using Microsoft.AspNetCore.Hosting...
43.054054
119
0.653275
[ "MIT" ]
DavidLievrouw/DalionWebAppTemplate
src/WebAppTemplate.Tests/Startup/CompositionTests.cs
4,781
C#
using System; namespace UnityEngine.Rendering.PostProcessing { /// <summary> /// This class holds settings for the Temporal Anti-aliasing (TAA) effect. /// </summary> [UnityEngine.Scripting.Preserve] [Serializable] public sealed class TemporalAntialiasing { /// <summary> ///...
40.340909
208
0.609108
[ "MIT" ]
Agameofscones/2d_slipsworth_sim
2d_Slipsworth_Sim/Library/PackageCache/com.unity.postprocessing@2.2.2/PostProcessing/Runtime/Effects/TemporalAntialiasing.cs
10,650
C#
using Microsoft.AspNetCore.Mvc; using System.Collections.Generic; using Library.Models; namespace Library.Controllers { public class HomeController : Controller { [HttpGet("/")] public ActionResult Index() { return View(); } } }
17.133333
42
0.684825
[ "MIT" ]
shanencross/Library
Library/Controllers/HomeController.cs
257
C#
namespace MassTransit.Testing.Implementations { using System; using System.Threading; using System.Threading.Tasks; using Util; /// <summary> /// An activity indicator for publish endpoints. Utilizes a timer that restarts on publish activity. /// </summary> public class BusActivityPubl...
28.783133
104
0.608204
[ "ECL-2.0", "Apache-2.0" ]
AlexanderMeier/MassTransit
src/MassTransit/Testing/Implementations/BusActivityPublishIndicator.cs
2,389
C#
/* * * (c) Copyright Ascensio System Limited 2010-2020 * * 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 la...
26.647059
92
0.580022
[ "Apache-2.0" ]
Ektai-Solution-Pty-Ltd/CommunityServer
module/ASC.ElasticSearch/Service/Settings.cs
1,812
C#
using Surging.Core.CPlatform; namespace Surging.Core.Codec.MessagePack { public static class ContainerBuilderExtensions { /// <summary> /// 基于MessagePack序列化 /// </summary> /// <param name="builder"></param> /// <returns></returns> public static IServiceBuilder U...
28
87
0.632353
[ "MIT" ]
YangTianb/Surging.Sample
src/Core/Surging.Core.Codec.MessagePack/ContainerBuilderExtensions.cs
488
C#
using Newtonsoft.Json; namespace Nest { [JsonObject] public class InstantGet<TDocument> where TDocument : class { [JsonProperty("fields")] public FieldValues Fields { get; internal set; } [JsonProperty("found")] public bool Found { get; internal set; } [JsonProperty("_source")] [JsonConverter(typeof(...
20.684211
59
0.712468
[ "Apache-2.0" ]
Henr1k80/elasticsearch-net
src/Nest/Search/Explain/ExplainGet.cs
395
C#
using Microsoft.AspNetCore.Builder; namespace Kledex.Extensions { public static class ApplicationBuilderExtensions { public static IKledexAppBuilder UseKledex(this IApplicationBuilder app) { return new KledexAppBuilder(app); } } }
23.333333
79
0.689286
[ "Apache-2.0" ]
Magicianred/Kledex
src/Kledex/Extensions/ApplicationBuilderExtensions.cs
282
C#
using System; using System.Collections.ObjectModel; using System.ComponentModel; using System.Diagnostics; using System.Linq; using Xamarin.Forms.CustomAttributes; using Xamarin.Forms.Internals; #if UITEST using Xamarin.Forms.Core.UITests; using Xamarin.UITest; using NUnit.Framework; #endif namespace Xamarin.Forms.C...
25.435897
137
0.704839
[ "MIT" ]
BK-Forks/Xamarin.Forms
Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue12574.cs
4,962
C#
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="BindableRichTextBox.cs" company="WildGums"> // Copyright (c) 2008 - 2015 WildGums. All rights reserved. // </copyright> // ------------------------------------------------------...
29.616667
120
0.522791
[ "MIT" ]
0matyesz0/Orc.Controls
src/Orc.Controls.Example/ViewModels/BindableRichTextBoxViewModel.cs
1,779
C#
using Hevadea.Framework.UI; using Hevadea.Registry; using Hevadea.Tiles; using Hevadea.Utils; using Hevadea.Worlds; using Microsoft.Xna.Framework; using System; using Hevadea.Framework; namespace Hevadea.WorldGenerator.LevelFeatures { public class BspDecorator : LevelFeature { public Spacing Padding {...
30.971014
88
0.547496
[ "MIT" ]
maker-dev/hevadea
Game/WorldGenerator/LevelFeatures/BspDecorator.cs
2,139
C#
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using Zenject; /// <summary> /// Alien moving with Hook /// </summary> public class AlienStateMoving : AlienState { private Alien _alien; public AlienStateMoving( Alien alien) { _alien = alien; } ...
13.043478
52
0.608333
[ "MIT" ]
LebEugenius/SpaceHook
Assets/Scripts/Alien/AlienStates/AlienStateMoving.cs
602
C#
#region License /* * All content copyright Marko Lahma, unless otherwise indicated. 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.apa...
35.666667
153
0.613361
[ "Apache-2.0" ]
BearerPipelineTest/quartznet
src/Quartz/Listener/BroadcastTriggerListener.cs
5,778
C#
/* * Square Connect API * * Client library for accessing the Square Connect APIs * * OpenAPI spec version: 2.0 * Contact: developers@squareup.com * Generated by: https://github.com/swagger-api/swagger-codegen.git */ using NUnit.Framework; using System; using System.Linq; using System.IO; using System.Collec...
23.633803
104
0.609654
[ "Apache-2.0" ]
NimmoJustin/connect-csharp-sdk
src/Square.Connect.Test/Model/RefundStatusTests.cs
1,678
C#
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR) #pragma warning disable using System; using System.Collections; using System.IO; using System.Text; using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1; using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.CryptoPro; using BestHTTP.SecureProtocol.Org...
42.571046
143
0.546193
[ "MIT" ]
Bregermann/TargetCrack
Target Crack/Assets/Best HTTP/Source/SecureProtocol/security/PrivateKeyFactory.cs
15,879
C#
using System; using System.Collections.Generic; using System.Data.Entity; using System.Data.Entity.Infrastructure; using System.Linq; using System.Net; using System.Net.Http; using System.Web.Http; using Microsoft.AspNet.Identity; using WebApiExternalAuth.Models; namespace WebApiExternalAuth.Controllers { [Author...
33.6
137
0.588183
[ "Apache-2.0" ]
dotnetcurry/webapi2-twitter-auth
WebApiExternalAuth/Controllers/TodoController.cs
4,538
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Runtime.CompilerServices; using System.Windows; using System.Windows.Controls; using System.Windows.Input; using System.Windows.Media; using System.Windows.Shapes; using Newtonsoft.Json; using JetBrains.Annotat...
33.909375
129
0.569994
[ "MIT" ]
jenzy/WaveShaper
src/WaveShaper/Bezier/BezierControl.xaml.cs
10,853
C#
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. namespace AppInstallerCLIE2ETests { using Microsoft.Win32; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using NUnit.Framework; using System; using System.IO; [SetUpFixture] public class SetUp...
40.721239
188
0.586222
[ "MIT" ]
BlackCatDeployment/winget-cli
src/AppInstallerCLIE2ETests/SetUpFixture.cs
9,205
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.797101
133
0.588706
[ "MIT" ]
93mishra/azure-sdk-for-net
sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/ImagePurchasePlan.cs
2,125
C#
namespace KeySwitchManager.Infrastructures.Storage.Spreadsheet.KeySwitches.Models { static class CellConstants { public static readonly string EmptyCellValue = string.Empty; public static readonly string NotAvailableCellValue = "n/a"; } }
33.25
81
0.74812
[ "MIT" ]
r-koubou/ArticulationManager
KeySwitchManager/Sources/Runtime/Infrastructures/Storage.Spreadsheet/KeySwitches/Models/CellConstants.cs
266
C#
using System; using System.Threading; using System.Threading.Tasks; namespace CronHostedService { public interface IIntervalService { Task Execute(DateTimeOffset ticked, double intervalSeconds, CancellationToken cancellationToken); } }
21.5
105
0.771318
[ "MIT" ]
Cisien/CronHostedService
CronHostedService/IIntervalService.cs
260
C#
using System; using HealthChecks.NpgSql; using Microsoft.Extensions.Diagnostics.HealthChecks; using System.Collections.Generic; using Npgsql; namespace Microsoft.Extensions.DependencyInjection { public static class NpgSqlHealthCheckBuilderExtensions { private const string NAME = "npgsql"; /// ...
62.476923
354
0.66757
[ "Apache-2.0" ]
isdaniel/AspNetCore.Diagnostics.HealthChecks
src/HealthChecks.NpgSql/DependencyInjection/NpgSqlHealthCheckBuilderExtensions.cs
4,061
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.IO; using System.Net.Mime; using System.Text; namespace System.Net.Mail { public abstract class At...
29.689873
140
0.499609
[ "MIT" ]
939481896/dotnet-corefx
src/System.Net.Mail/src/System/Net/Mail/Attachment.cs
14,073
C#
using FluentAssertions; using IdentityServer.UnitTests.Common; using IdentityServer4; using IdentityServer4.Models; using IdentityServer4.Services; using IdentityServer4.Stores; using IdentityServer4.Stores.Serialization; using System; using System.Collections.Generic; using System.Security.Claims; using System.Threadi...
34.349353
142
0.526072
[ "Apache-2.0" ]
10088/IdentityServer4
src/IdentityServer4/test/IdentityServer.UnitTests/Services/Default/DefaultRefreshTokenServiceTests.cs
18,583
C#
namespace Futurum.ApiEndpoint; public interface IMetadataDefinition { }
14.4
36
0.847222
[ "MIT" ]
futurum-dev/dotnet.futurum.apiendpoint
src/Futurum.ApiEndpoint/IMetadataDefinition.cs
72
C#
using AppCotacao.Model; using AppCotacao.Services.Utils; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace AppCotacao.UnitTest { [TestClass] public class PessoaJuridicaModelUnitTest { private const string cnpjVar = "12123123123412"; private const string cnpjWithMask = "12.123.1...
27.982456
78
0.628213
[ "MIT" ]
isaacboratino/cotalist-xamarin-node
front-xamarin/AppCotacao/AppCotacao/AppCotacao.UnitTest/Shared/Model/PessoaJuridicaModelUnitTest.cs
1,597
C#
using Meel.Commands; using Meel.Parsing; using Meel.Responses; using Meel.Stations; using NUnit.Framework; using System.Buffers; using System.Text; namespace Meel.Tests.Commands { [TestFixture] public class FetchCommandTest { [Test] public void ShouldFetch() { // Arrang...
38.360465
87
0.556835
[ "MIT" ]
ynse01/meel
Tests/Commands/FetchCommandTest.cs
6,600
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Text; namespace TeamBuilder.Models { public class Event { public Event() { this.ParticipatingEventTeams = new List<EventTeam>(); } [Key] public int Id ...
22.388889
83
0.604218
[ "MIT" ]
LuGeorgiev/SoftUniDBAdvanced
Workshop/TeamBuilder.Models/Event.cs
808
C#
using System; using System.Windows; using System.Windows.Controls; using System.Windows.Input; using System.Windows.Media; namespace StubbornBrowser.Controls { /// <summary> /// Interaction logic for MagicBoxItem.xaml /// </summary> public partial class MagicBoxItem : UserControl { private...
32.429907
111
0.54121
[ "MIT" ]
Leo-23333/StubbornBrowser
StubbornBrowser/Controls/MagicBoxItem.xaml.cs
3,472
C#
using System; using System.Collections; using System.Text; using System.Data; using System.Data.SQLite; namespace FenixHelper.Data { class DataArgument { public Boolean Add(Argument argument) { Boolean response = false; Connection conn = new Connection(); c...
27.231884
168
0.455029
[ "MIT" ]
IsmaelHeredia/Fenix-Helper
FenixHelper/Data/DataArgument.cs
5,639
C#
// Python Tools for Visual Studio // Copyright(c) Microsoft Corporation // 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 //...
38.274194
117
0.62579
[ "Apache-2.0" ]
113771169/PTVS
Python/Product/VSInterpreters/Interpreter/CondaEnvironmentFactoryConstants.cs
2,373
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using System.Threading.Tasks; using Azure.ResourceManager.Resources; using Azure.Core.TestFramework; using NUnit.Framework; using Azure.Core; namespace Azure.ResourceManager.Cdn.Tests { public class ManagedRuleSetOper...
30.911765
143
0.663178
[ "MIT" ]
AhmedLeithy/azure-sdk-for-net
sdk/cdn/Azure.ResourceManager.Cdn/tests/Scenario/ManagedRuleSetOperationsTests.cs
1,053
C#
/** * Copyright 2015 Canada Health Infoway, Inc. * * 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...
51.326797
142
0.613396
[ "ECL-2.0", "Apache-2.0" ]
CanadaHealthInfoway/message-builder-dotnet
message-builder-release-r02_04_02/Main/Ca/Infoway/Messagebuilder/Model/Pcs_mr2009_r02_04_02/Common/Coct_mt910102ca/RelatedPerson.cs
7,853
C#
using ElectronicObserver.Data.Battle; using ElectronicObserver.Data.Quest; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ElectronicObserver.Data { /// <summary> /// 艦これのデータを扱う中核です。 /// </summary> public sealed class KCDatabase { ...
21.166667
81
0.65245
[ "MIT" ]
fossabot/ElectronicObserverExtended
ElectronicObserver/Data/KCDatabase.cs
4,950
C#
using System; using System.IO; using System.Threading; using System.Threading.Tasks; namespace StreamAbstractions { public class StreamWrapper : IStream { private readonly Stream _stream; public StreamWrapper(Stream stream) { _stream = stream; } public lon...
37.030928
173
0.674833
[ "MIT" ]
Yakudo/StreamAbstractions
Src/StreamAbstractions/StreamWrapper.cs
3,594
C#
#region S# License /****************************************************************************************** NOTICE!!! This program and source code is owned and licensed by StockSharp, LLC, www.stocksharp.com Viewing or use of this code requires your acceptance of the license agreement found at https://github.com/St...
28.19702
340
0.69074
[ "Apache-2.0" ]
gridgentoo/StockSharp.ADO.Net
Messages/ExecutionMessage.cs
17,190
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class PlayerController : MonoBehaviour { public delegate void PlayerSurvivalTimeEvent(float time); public event PlayerSurvivalTimeEvent PlayerSurvival; private float _aliveTime; public float Speed; private floa...
28.008197
108
0.54463
[ "MIT" ]
gusenov/ghost-arena-unity
Ghost Arena/Assets/Scripts/PlayerController.cs
3,419
C#
using System.Diagnostics.CodeAnalysis; using System.Linq; using EbnfCompiler.AST.Impl; using EbnfCompiler.Compiler; using Moq; using NUnit.Framework; namespace EbnfCompiler.AST.UnitTests { [TestFixture, ExcludeFromCodeCoverage] public class NodeTests { private IDebugTracer _tracer; [SetUp] ...
31.821782
123
0.536092
[ "MIT" ]
ngdrascal/ebnfcompiler
UnitTests/EbnfCompiler.AST.UnitTests/NodeTests.cs
9,644
C#
using System; using System.IO; using System.Threading; using System.Windows; using Hardcodet.Wpf.TaskbarNotification; using WinGistsConfiguration.Configuration; namespace Uploader { public partial class App : Application { private static UploaderIcon icon; private static Executor executor; ...
33.409836
102
0.578508
[ "MIT" ]
hschroedl/win-gists
Uploader/App.xaml.cs
2,040
C#
using Kernel.Config; using System; using System.Reflection; namespace Kernel.Lang.Attribute { [AttributeUsage(AttributeTargets.Field, AllowMultiple = true)] public abstract class ValidateAttribute : System.Attribute { public virtual bool Validate(FieldInfo fieldInfo, object fieldValue, Type configType, ...
22
155
0.72434
[ "MIT" ]
hsiuqnav/configMgr
configMgr/Assets/Scripts/Manager/Config/Attribute/ValidateAttribute.cs
684
C#
using System; using System.Collections.Generic; using Microsoft.EntityFrameworkCore.Migrations; namespace tibs.stem.Migrations { public partial class AlterProductGroupTable : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( ...
31.292308
71
0.546706
[ "Apache-2.0" ]
realvino/Core-2.0
src/tibs.stem.EntityFrameworkCore/Migrations/20170913180653_Alter-ProductGroup-Table.cs
2,036
C#
namespace Microsoft.Protocols.TestSuites.MS_OXNSPI { using System; /// <summary> /// A class indicates the response body of GetProps request /// </summary> public class GetTemplateInfoResponseBody : AddressBookResponseBodyBase { /// <summary> /// Gets or sets an unsig...
40.203125
125
0.592305
[ "MIT" ]
ChangDu2021/Interop-TestSuites
ExchangeMAPI/Source/MS-OXNSPI/Adapter/Helper/Structure/ResponseBody/GetTemplateInfoResponseBody.cs
2,573
C#
using System; using System.Globalization; using System.Linq; namespace Memoria.Prime.CSV { public static class CsvParser { public static Boolean Boolean(String raw) { switch (raw[0]) { case '1': return true; case '0': ...
30.382353
137
0.544046
[ "MIT" ]
Albeoris/Memoria
Memoria.Prime/CSV/CsvParser.cs
3,101
C#
namespace ApplicationCore.Contract.Responses { public class LoginResponse { public string AccessToken { get; set; } public string UserName { get; set; } } }
23
47
0.652174
[ "MIT" ]
Plemiona-2-5/api
TribalWars/src/ApplicationCore/Contract/Responses/LoginResponse.cs
184
C#
/* * Copyright (c) Contributors, http://aurora-sim.org/, 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: * * Redistr...
33.726688
119
0.591381
[ "BSD-3-Clause" ]
BillyWarrhol/Aurora-Sim
Aurora/Framework/Physics/PhysicsScene.cs
10,489
C#
/* * This file was autogenerated by the Kinetica schema processor. * * DO NOT EDIT DIRECTLY. */ using System.Collections.Generic; namespace kinetica { /// <summary>A set of parameters for <see /// cref="Kinetica.showTableMetadata(IList{string},IDictionary{string, string})" /// />. /// <br /> ...
38.390805
120
0.628743
[ "MIT" ]
kineticadb/kinetica-api-cs
Kinetica/Protocol/ShowTableMetadata.cs
3,340
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...
24.883333
76
0.630275
[ "Apache-2.0" ]
jdcloud-api/jdcloud-sdk-net
sdk/src/Service/Vpc/Client/DescribeNatGatewayExecutor.cs
1,597
C#
namespace System.IO.Abstractions.Benchmarks { using BenchmarkDotNet.Running; using System.Reflection; class Program { public static void Main(string[] args) { BenchmarkRunner.Run(typeof(Program).Assembly); } } }
19.285714
58
0.622222
[ "MIT" ]
BrianMcBrayer/System.IO.Abstractions
benchmarks/System.IO.Abstractions.Benchmarks/Program.cs
272
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // // System.Net.HttpEndPointListener // // Author: // Gonzalo Paniagua Javier (gonzalo.mono@gmail.com) // // Copyright (c) 2005 Novell, Inc. (http://www.novell.com) // Copyright (c...
34.254321
130
0.531608
[ "MIT" ]
space-wizards/ManagedHttpListener
src/System/Net/Managed/HttpEndPointListener.cs
13,873
C#
namespace Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801 { using Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PowerShell; /// <summary>AppServiceCertificateOrder resource specific properties</summary> [System.ComponentModel.TypeConverter(typeof(AppServiceCertificateOrderProper...
216.843049
573
0.819195
[ "MIT" ]
Arsasana/azure-powershell
src/Functions/generated/api/Models/Api20190801/AppServiceCertificateOrderProperties.PowerShell.cs
48,134
C#
namespace QuickCrypt { /// <summary> /// Service to generate byte collection as a "key". /// </summary> public interface IKeyGenerator { /// <summary> /// Create unique key byte collection. /// </summary> /// <returns>Unique byte collection.</returns> byte[] ...
22.666667
55
0.55
[ "MIT" ]
sethsteenken/QuickCrypt
src/QuickCrypt/Services/IKeyGenerator.cs
342
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated from a template. // // Manual changes to this file may cause unexpected behavior in your application. // Manual changes to this file will be overwritten if the code is regenerat...
52.145134
425
0.635556
[ "MPL-2.0" ]
SparkleNetworks/SparkleNetworks
src/Sparkle.Data.Entity/Networks/Model/NetworksModel.cs
274,859
C#
using System; namespace AltaPay.Service { public enum PaymentSource { eCommerce, eCommerce_without3ds, mobi, moto, mail_order, telephone_order } }
10.4375
26
0.712575
[ "MIT" ]
AltaPay/sdk-csharp
AltaPayApi/AltaPayApi/Service/Requests/Common/PaymentSource.cs
167
C#