content
stringlengths
5
1.04M
avg_line_length
float64
1.75
12.9k
max_line_length
int64
2
244k
alphanum_fraction
float64
0
0.98
licenses
list
repository_name
stringlengths
7
92
path
stringlengths
3
249
size
int64
5
1.04M
lang
stringclasses
2 values
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Web.Mvc; namespace Gemstar.BSPMS.HotelScanOrder.Common.Common { /// <summary> /// 在有些action是由前端异步请求时,并且返回的数据是json时,增加此属性,以便在发生异常时,返回失败对应的json格式,以便前端可以正常处理,而不是前端无法处理,直接没有任何反应 ///...
29.62069
99
0.643772
[ "Apache-2.0" ]
PoetSnow/Web-API
Gemstar.BSPMS.HotelScanOrder.Common/Common/JsonExceptionAttribute.cs
1,023
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...
29.038961
103
0.626118
[ "Apache-2.0" ]
DetlefGolze/aws-sdk-net
sdk/src/Services/Chime/Generated/Model/Participant.cs
2,236
C#
using HeroesData.Parser.Overrides.DataOverrides; using System; using System.Xml.Linq; namespace HeroesData.Parser.Overrides { public class SprayOverrideLoader : OverrideLoaderBase<SprayDataOverride>, IOverrideLoader { public SprayOverrideLoader(int? hotsBuild) : base(hotsBuild) { ...
25.965517
93
0.658699
[ "MIT" ]
HeroesToolChest/HeroesDataParser
HeroesData.Parser/Overrides/SprayOverrideLoader.cs
755
C#
using Microsoft.Azure.Cosmos.Table; namespace USCIS.Common; public class ReceiptStatus : Receipt { public string? CurrentStatus { get; set; } public string? CurrentStatusDetails { get; set; } public bool HasNewStatus { get; set; } public DateTime LastChecked { get; set; } public string ToStatusSt...
26.578947
98
0.654455
[ "MIT" ]
vpetkovic/USCIS-Case-Status-Tracker
src/USCIS.Common/Models/CaseReceiptModel.cs
1,010
C#
namespace ZetaResourceEditor.RuntimeBusinessLogic.ExportImportExcel.Import { using System.Collections.Generic; public class ExcelImportResult { public int ImportedRowCount { get; internal set; } public List<string> ImportMessages { get; } = new(); } }
28.5
75
0.708772
[ "MIT" ]
UweKeim/ZetaResourceEditor
Source/RuntimeBusinessLogic/ExportImportExcel/Import/ExcelImportResult.cs
287
C#
using UnityEngine; //using System.Reflection; namespace Arj2D { public static class UnityEngineExtensions { #region TRASNFORM public static void X(this Transform _transform, float _newX) { _transform.position = new Vector3(_newX, _transform.position.y, _transform.position.z...
40.130037
199
0.581991
[ "BSD-2-Clause" ]
arkms/Arj2D-Unity-FrameWork
Assets/Arj2D/Scripts/UnityEngineExtensions.cs
21,913
C#
using System.Data.Entity.Core.Common.CommandTrees; using System.Data.Entity.Core.Common.CommandTrees.ExpressionBuilder; using System.Data.Entity.Core.Metadata.Edm; using System.Linq; namespace PhotoGalleryService.Data.Helpers { public class SoftDeleteQueryVisitor : DefaultExpressionVisitor { public ov...
39.375
105
0.580952
[ "MIT" ]
QuinntyneBrown/PhotoGalleryService
src/PhotoGalleryService/Data/Helpers/SoftDeleteQueryVisitor.cs
1,262
C#
using System; using NetRuntimeSystem = System; using System.ComponentModel; using NetOffice.Attributes; using NetOffice.WordApi; namespace NetOffice.WordApi.Behind { /// <summary> /// DispatchInterface OMathPhantom /// SupportByVersion Word, 12,14,15,16 /// </summary> /// <remarks> MSDN Online: http://msdn.micr...
25.748031
165
0.65367
[ "MIT" ]
igoreksiz/NetOffice
Source/Word/Behind/DispatchInterfaces/OMathPhantom.cs
6,542
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...
29.265306
120
0.654812
[ "Apache-2.0" ]
santedb/santedb-api
SanteDB.Core.Api/Security/IPolicyInstance.cs
1,436
C#
using System; using System.Collections.Generic; using System.Text; namespace helloworldConsoleApp1 { class Adventurer { public int id; public string name; public float max_hp; public float hp; public int max_stamina; public int stamina; public int max_ma...
25.911111
91
0.548885
[ "MIT" ]
hanamc99/LearnGameProgramming
Adventurer.cs
1,168
C#
using System; using System.Collections.Generic; using System.Text; using Newtonsoft.Json; using Slack.NetStandard.Messages.Blocks; namespace Slack.NetStandard.Messages.Elements { public class Image:IContextElement,IMessageElement { public string Type => nameof(Image).ToLower(); [JsonProperty(...
23.35
54
0.689507
[ "MIT" ]
AbsShek/Slack.NetStandard
Slack.NetStandard/Messages/Elements/Image.cs
469
C#
using Microsoft.EntityFrameworkCore.Migrations; namespace SkbKontur.SqlStorageCore.Tests.Migrations { public partial class AddRequiredFieldToTestUpsertSqlEntry : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn<string>( ...
29.208333
73
0.60913
[ "MIT" ]
skbkontur/SqlStorage.Core
SqlStorageCoreTests/Migrations/20181109113940_AddRequiredFieldToTestUpsertSqlEntry.cs
703
C#
using System; using InstagramApiSharp.Classes.Models; using InstagramApiSharp.Classes.ResponseWrappers; namespace InstagramApiSharp.Converters { internal class InstaMediaImageConverter : IObjectConverter<InstaImage, ImageResponse> { public ImageResponse SourceObject { get; set; } public InstaI...
33.222222
120
0.702341
[ "MIT" ]
AMP-VTV/InstagramApiSharp
src/InstagramApiSharp/Converters/Media/InstaMediaImageConverter.cs
598
C#
namespace Nancy.Diagnostics { using Configuration; /// <summary> /// Abstract base class for Nancy diagnostics module. /// </summary> /// <seealso cref="Nancy.NancyModule" /> public abstract class DiagnosticModule : NancyModule { private readonly INancyEnvironment environ...
33.744186
131
0.576154
[ "MIT" ]
0x414c49/Nancy
src/Nancy/Diagnostics/DiagnosticModule.cs
1,453
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Data; namespace Importer { class EadResultsDataTable { public void ProcessEadResultsDataTable(DataTable dataTable) { EadResultList theFuncList = GlobalVa...
48.192214
126
0.445398
[ "MIT" ]
HydrologicEngineeringCenter/HEC-FDA
Importer/Ead/EadResultsDataTable.cs
19,809
C#
using System; using System.Collections.Generic; using System.Linq; using Foundation; using UIKit; using ObjCRuntime; namespace UOCApp.iOS { public class Application { // This is the main entry point of the application. static void Main(string[] args) { // if you want to use a different Application Delegat...
19.863636
82
0.7254
[ "MIT" ]
CrystalP1976/UOCA
UOCApp/UOCApp.iOS/Main.cs
439
C#
// <auto-generated /> using System; using Common.DataAccess.EFCore; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;...
35.081712
119
0.441992
[ "Apache-2.0" ]
MursalovAltun/ArticlesWebApi
Common/Common.DataAccess.EFCore/Migrations/20200305161207_Initial.Designer.cs
9,018
C#
using System; using Microsoft.ML; using Microsoft.ML.Data; using Microsoft.ML.Transforms; namespace Samples.Dynamic { // This example demonstrates hashing of categorical string and integer data types by using Hash transform's // advanced options API. public static class HashWithOptions { publ...
45.266129
112
0.543738
[ "MIT" ]
FrancisChung/machinelearning
docs/samples/Microsoft.ML.Samples/Dynamic/Transforms/Conversion/HashWithOptions.cs
5,615
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/codecapi.h in the Windows SDK for Windows 10.0.19041.0 // Original source is Copyright © Microsoft. All rights reserved. using System.Runtime.InteropServi...
32.333333
145
0.764948
[ "MIT" ]
Ethereal77/terrafx.interop.windows
sources/Interop/Windows/um/codecapi/CODECAPI_AVDecCommonMeanBitRateInterval.cs
487
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 System.Collections.Immutable; using System.Globalization; using System.Threading; using Microsoft.CodeAnalysis.CSharp.Symbols; using Microsoft.CodeAnal...
33.808383
179
0.609635
[ "Apache-2.0" ]
OceanYan/roslyn
src/Compilers/CSharp/Portable/Symbols/SubstitutedPropertySymbol.cs
5,648
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Evaluation { class Program { static void Main(string[] args) { Console.WriteLine("Merry Christmas"); PascalTriangle.DisplayPascalTriangle(25); ...
18.722222
53
0.643917
[ "MIT" ]
BUSHIRIERASME/CDADWWM2111
CSharp/src/Eval_Prog_Procedurale/Evaluation/Program.cs
339
C#
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.IO; using System.Linq; using System.Management.Autom...
38.471572
186
0.545684
[ "MIT" ]
2bon/PowerShell
src/System.Management.Automation/help/UpdatableHelpCommandBase.cs
34,509
C#
// <auto-generated/> #pragma warning disable 1591 namespace Test { #line hidden using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Components; public partial class TestComponent : Microsoft.AspNetCore.Components.Compone...
30.105263
121
0.689685
[ "Apache-2.0" ]
1175169074/aspnetcore
src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Legacy_3_1_TrailingWhiteSpace_WithComponent/TestComponent.codegen.cs
1,144
C#
using Godot; public class Enemy : Npc { [Export] public Stats Stats; [Export(PropertyHint.Range, "1, 100")] private int _customLevel = 1; public override void _Ready() { base._Ready(); Stats = Stats.Duplicate() as Stats; Stats.Level = _customLevel; } private void OnPlayerDetectionAreaPlayerEnteredArea(P...
18.285714
69
0.723958
[ "MIT" ]
Guimica-gml/RPG
Enemy/Enemy.cs
384
C#
#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; using System.Threading; using System.ComponentModel; namespace Efl { namespace Ui { /// <summary>Efl Ui Selection class</summary> /// <remarks>This is a <b>BETA</b> ...
51.216895
268
0.635626
[ "Apache-2.0", "MIT" ]
JoogabYun/TizenFX
internals/src/EflSharp/EflSharp/efl/efl_ui_selection.eo.cs
22,433
C#
// Copyright (c) Jeremy W. Kuhne. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace MacIO; public abstract class Record { /// <summary> /// The stream backing the record. /// </summary> protected Stream Stream { get; ...
25.931034
101
0.631649
[ "MIT" ]
JeremyKuhne/MacIO
MacIOLibrary/Record.cs
754
C#
using System.Linq; using System; using System.Collections.Generic; using Accord.Math; namespace ai_from_scratch { class Program { private static double[][] inputs = new[] { new[] {1.0, 2.0, 3.0, 2.5}, new[] {2.0, 5.0, -1.0, 2.0}, new[] {-1.5, 2.7, 3.3, -0.8}...
28.962264
82
0.426059
[ "MIT" ]
bkstephen/ai_from_scratch
C# version/Program.cs
1,537
C#
using System.Text.Json.Serialization; namespace Fpl.Client.Models; public record EventStatusResponse { [JsonPropertyName("status")] public ICollection<EventStatus> Status { get; set; } = new List<EventStatus>(); [JsonPropertyName("leagues")] public string Leagues { get; set; } } public record EventS...
22.291667
83
0.637383
[ "MIT" ]
Eszra92/fplbot
src/Fpl.Client/Models/EventStatus.cs
1,070
C#
//----------------------------------------------------------------------------- // <copyright file="InternalTransaction.cs" company="Microsoft"> // Copyright (c) Microsoft Corporation. All rights reserved. // </copyright> //----------------------------------------------------------------------------- namespace Sy...
38.669091
131
0.599304
[ "MIT" ]
shuaiagain/.NetSourceCode
dotnet461TH2/Source/ndp/cdf/src/NetFx20/system.transactions/System/Transactions/InternalTransaction.cs
21,268
C#
// Jeebs Unit Tests // Copyright (c) bfren.uk - licensed under https://mit.bfren.uk/2013 using Xunit; namespace Jeebs.None_Tests { public class Constructor_Tests { [Fact] public void Sets_Reason() { // Arrange var reason = new TestMsg(); // Act var result = new None<string>(reason); // Asser...
15.615385
68
0.652709
[ "MIT" ]
bencgreen/jeebs
tests/Tests.Jeebs.Option/_/None/Constructor_Tests.cs
408
C#
using Codeless.Ecma.Runtime; using NUnit.Framework; using static Codeless.Ecma.Global; using static Codeless.Ecma.Keywords; using static Codeless.Ecma.Literal; using static Codeless.Ecma.UnitTest.Assert; using static Codeless.Ecma.UnitTest.StaticHelper; namespace Codeless.Ecma.UnitTest.Tests { public class Iterator...
37.086957
136
0.771395
[ "MIT" ]
misonou/codeless-ecma
src/Codeless.Ecma.UnitTest/Tests/IteratorPrototype.cs
855
C#
using Microsoft.VisualStudio.TestTools.UnitTesting; using RockPaperScissors.Models; namespace RockPaperScissors.Models.Tests { [TestClass] public class RockPaperScissorTest { [TestMethod] public void PlayerOneRock_PlayerOneWins_False() { RockPaperScissor newGame = new RockPaperScissor(); ...
26.875
56
0.684884
[ "MIT" ]
hamzilitary/Rock-Paper-Scissor
RockPaperScissor.Tests/ModelsTest/RockPaperScissorTest.cs
1,720
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/IPExport.h in the Windows SDK for Windows 10.0.22000.0 // Original source is Copyright © Microsoft. All rights reserved. using NUnit.Framework; using Syst...
38.4
145
0.725446
[ "MIT" ]
reflectronic/terrafx.interop.windows
tests/Interop/Windows/Windows/um/IPExport/IP_ADAPTER_INDEX_MAPTests.cs
1,346
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...
32.416667
95
0.627249
[ "MIT" ]
bgsky/azure-sdk-for-net
src/SDKs/CostManagement/Management.CostManagement/Generated/Models/ReportConfigDatasetConfiguration.cs
1,945
C#
namespace GraphQL.Models.Entities { public abstract class UpdatedByEntity : TableEntity { public string UpdatedBy { get; set; } public User UpdatedByUser { get; set; } } }
25
55
0.655
[ "MIT" ]
dylanberry/GraphQL_POC
GraphQL.Models/Entities/Base/UpdatedByEntity.cs
202
C#
//----------------------------------------------------------------------------- // Filename: IceSession.cs // // Description: Represents a ICE Session as described in the Interactive // Connectivity Establishment RFC8445 https://tools.ietf.org/html/rfc8445. // // Additionally support for the following standards ...
51.010676
212
0.56795
[ "BSD-3-Clause" ]
spFly/sipsorcery
src/net/ICE/IceSession.cs
71,672
C#
// Copyright 2021 Google LLC // // 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
36.85
89
0.675034
[ "Apache-2.0" ]
googleapis/googleapis-gen
google/cloud/dialogflow/v2beta1/google-cloud-dialogflow-v2beta1-csharp/Google.Cloud.Dialogflow.V2beta1.StandaloneSnippets/IntentsClient.GetIntent2Snippet.g.cs
1,474
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) 2010 Michael Möller <mmoeller@openhardwaremonitor.org> */ using System; using System.Collectio...
32.462428
80
0.508903
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
Cereal-Killa/openhardwaremonitor
OpenHardwareMonitorLib/Hardware/Heatmaster/HeatmasterGroup.cs
5,619
C#
/********************************************************************* * * Copyright (C) 2009 Andrew Khan * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of th...
23.797101
76
0.619367
[ "Apache-2.0" ]
Tatetaylor/kbplumbapp
CSharpJExcel/CSharpJExcel/CSharpJExcel/Jxl/Read/Biff/HideobjRecord.cs
1,642
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //--...
38.708333
181
0.604234
[ "MIT" ]
KRDmitriy/GoodyAppDesktop
GoodyAppDesktop/Properties/Resources.Designer.cs
2,789
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class HealthOwner : MonoBehaviour { [SerializeField] int health = 1; public delegate void HealthEnded(); public event HealthEnded OnHealthEnded = delegate { }; public void DecreaseHealth(int amount) { he...
21.578947
58
0.646341
[ "Apache-2.0" ]
vadym-vasilyev/star-rage
Assets/Scripts/Enemies/HealthOwner.cs
412
C#
// Copyright (c) Nathan Ellenfield. All rights reserved. // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. using Microsoft.Extensions.Configuration; using Microsoft.VisualStudio.TestTools.UnitTesting; using System.IO; namespace VariableConfig.Test { [Test...
35.225
107
0.654365
[ "Apache-2.0" ]
ellenfieldn/VariableConfig
test/VariableConfig.Test/VariableConfigurationExtensionsTests.cs
1,411
C#
using System; namespace CreativeCoders.Core.UnitTests.Reflection { [AttributeUsage(AttributeTargets.All, AllowMultiple = true)] public class DummyTestAttribute : Attribute { public int Value { get; set; } } }
23.4
64
0.705128
[ "Apache-2.0" ]
CreativeCodersTeam/Core
source/UnitTests/CreativeCoders.Core.UnitTests/Reflection/DummyTestAttribute.cs
236
C#
/* * THIS FILE WAS GENERATED BY PLOTLY.BLAZOR.GENERATOR */ using System; using System.Diagnostics.CodeAnalysis; using System.IO; using System.Runtime.Serialization.Formatters.Binary; using System.Text.Json.Serialization; namespace Plotly.Blazor.Traces.DensityMapBoxLib { /// <summary> /// The Stream class...
32.038095
125
0.520809
[ "MIT" ]
valu8/Plotly.Blazor
Plotly.Blazor/Traces/DensityMapBoxLib/Stream.cs
3,364
C#
using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Options; using System; using System.Threading.Tasks; using Volo.Abp.Authorization.Permissions; using Volo.Abp.DependencyInjection; using Volo.Abp.Guids; using Volo.Abp.Identity; using Volo.Abp.MultiTenancy; using Volo.Abp.PermissionManagement; ...
41.936709
151
0.64262
[ "MIT" ]
FanShiYou/abp-vue-admin-element-typescript
aspnet-core/modules/identity/LINGYUN.Abp.PermissionManagement.Domain.Identity/LINGYUN/Abp/PermissionManagement/Identity/IdentityPermissionManager.cs
3,405
C#
using ShoppingListService.Models; using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Web; namespace ShoppingListService.Helpers { public class ShoppingListHelper : IShoppingListHelper { /// <summary> /// A a new item to the list /// </summ...
34.176471
106
0.570052
[ "MIT" ]
neilkennedy/coding-challenge-shopping-list
WebService/ShoppingListService/Helpers/ShoppingListHelper.cs
2,907
C#
namespace Sakuno.ING.Game.Models { public enum FleetType { None = 0, /// <summary> /// 通常艦隊 /// </summary> SingleFleet = 1, /// <summary> /// 空母機動部隊 /// </summary> CarrierTaskForceFleet = 2, /// <summary> /// 水上打撃部隊 ...
20.392857
34
0.42732
[ "MIT" ]
A-Kaga/ing
src/Game/Sakuno.ING.Game.Models.Raw/Models/FleetType.cs
625
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; [RequireComponent(typeof(BezierSpline))] public class SplineSigil : BaseSigil { //public SpellCircle spellPlane; private BezierSpline sigil; public int numPointsInSigil; public bool manuallySetBoundingBox; ...
38.674419
116
0.50451
[ "MIT" ]
iamrequest/a-vr-game-about-magic-and-ducks-in-cosplay
Assets/Scripts/Spells/SplineSigil.cs
3,328
C#
// // System.Security.Permissions.UrlIdentityPermissionAttribute.cs // // Authors: // Duncan Mak <duncan@ximian.com> // Sebastien Pouliot <sebastien@ximian.com> // // (C) 2002 Ximian, Inc. http://www.ximian.com // Portions (C) 2003 Motus Technologies Inc. (http://www.motus.com) // Copyright (C) 2004-2005 Novell, Inc (...
34.027027
83
0.741461
[ "MIT" ]
zlxy/Genesis-3D
Engine/extlibs/IosLibs/mono-2.6.7/mcs/class/corlib/System.Security.Permissions/UrlIdentityPermissionAttribute.cs
2,518
C#
using NBitcoin; using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Security; using WalletWasabi.Helpers; using WalletWasabi.Logging; namespace WalletWasabi.Gui.CommandLine { internal class PasswordFinder { internal static Dictionary<string, string> Charsets = ...
29.841121
130
0.678359
[ "MIT" ]
Groestlcoin/WalletWasabi
WalletWasabi.Gui/CommandLine/PasswordFinder.cs
3,261
C#
using System; using System.Diagnostics.CodeAnalysis; using System.Threading.Tasks; using Xunit; namespace Mundane.Tests.Tests_Validator; [ExcludeFromCodeCoverage] public static class Validate_Throws_ArgumentNullException { [Fact] public static void When_The_Action_Parameter_Is_Null() { var exception = Assert....
27.413793
109
0.788679
[ "MIT" ]
adambarclay/mundane
tests/Mundane.Tests/Tests_Validator/Validate_Throws_ArgumentNullException.cs
795
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.Configuration; using System.Diagnostics; using System.Globalization; using System.Linq; using System.Security.Principal; using System.ServiceModel; using System.ServiceModel.Activation; using System.ServiceModel.Description; usin...
44.287081
185
0.631158
[ "Apache-2.0" ]
jeffhandley/OpenRiaServices
OpenRiaServices.DomainServices.Hosting/Framework/Services/DomainServiceHost.cs
9,258
C#
// c:\program files (x86)\windows kits\10\include\10.0.18362.0\um\dxva2swdev.h(60,9) using System; using System.Runtime.InteropServices; namespace DirectN { [StructLayout(LayoutKind.Sequential)] public partial struct _DXVA2_VIDEOPROCESSBLT { public int TargetFrame; public tagRECT TargetRec...
29.185185
85
0.682741
[ "MIT" ]
bbday/DirectN
DirectN/DirectN/Generated/_DXVA2_VIDEOPROCESSBLT.cs
790
C#
//Copyright 2018 Samsung Electronics Co., Ltd // //Licensed under the Apache License, Version 2.0 (the "License"); //you may not use this file except in compliance with the License. //You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // //Unless required by applicable law or a...
27.716667
103
0.61816
[ "Apache-2.0" ]
AchoWang/Tizen-CSharp-Samples
Wearable/Weather/Weather/App.cs
1,665
C#
using System; using System.Collections.Generic; using System.Linq; using Baseline; using Xunit; using NSubstitute; using Shouldly; using StoryTeller.Engine; using StoryTeller.Messages; using StoryTeller.Model; using StoryTeller.Model.Persistence; using StoryTeller.Model.Persistence.Markdown; using StoryTeller.Remotes.M...
27.705882
82
0.618441
[ "Apache-2.0" ]
SergeiGolos/Storyteller
src/StoryTeller.Testing/Engine/SpecExecutionRequestTester.cs
3,297
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("Ba...
37.702703
84
0.744803
[ "Unlicense" ]
kichristensen/zipkin-net
samples/BasicSample/Properties/AssemblyInfo.cs
1,398
C#
using System; using System.Collections.Generic; using System.Configuration; using System.Data; using System.Linq; using System.Threading.Tasks; using System.Windows; namespace Koji { /// <summary> /// Interaction logic for App.xaml /// </summary> public partial class App : Application { } }
17.666667
42
0.698113
[ "Apache-2.0" ]
Aviramk/koji
Koji/App.xaml.cs
320
C#
using System; using System.Windows; namespace AdaptiveCards.Rendering.Wpf { public class MissingInputException : Exception { public MissingInputException(string message, AdaptiveInput input, FrameworkElement frameworkElement) : base(message) { this.FrameworkElement = fr...
27.105263
108
0.669903
[ "MIT" ]
Clancey/AdaptiveCards
source/dotnet/Library/AdaptiveCards.Rendering.Wpf/MissingInputException.cs
517
C#
using System.Reflection; using System.Resources; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Windows; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // ass...
41.125
97
0.737733
[ "Apache-2.0" ]
hanzhou/ZenithMap
ZMap.GNGDataGenerator/Properties/AssemblyInfo.cs
2,306
C#
using System; namespace SwiftClient { public partial class Client : ISwiftClient, IDisposable { /// <summary> /// Set credentials (username, password, list of proxy endpoints) /// </summary> /// <param name="credentials"></param> /// <returns></returns> public ...
27.671642
80
0.556095
[ "MIT" ]
amangallon/SwiftClient.NetStandard
src/SwiftClient/SwiftClientConfig.cs
1,856
C#
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information. namespace Microsoft.Data.Tools.VSXmlDesignerBase.VirtualTreeGrid { using System; using System.ComponentModel; using System.Diagnostics; using System.Diagnosti...
37.170006
245
0.49813
[ "MIT" ]
dotnet/ef6tools
src/EFTools/DesignXmlCore/VirtualTreeGrid/DropDownControl.cs
115,004
C#
namespace Inoxie.Tools.KeyWarehouse.Client.Configuration; public class WarehouseClientConfiguration { public const string Key = "WarehouseConfiguration"; public string Username { get; set; } public string Password { get; set; } public string BaseAddress { get; set; } }
26.272727
58
0.737024
[ "MIT" ]
Strosx/Inoxie.Tools
src/Inoxie.Tools.KeyWarehouse.Client/Configuration/WarehouseClientConfiguration.cs
291
C#
using AppKit; using Foundation; namespace LMDB { [Register("AppDelegate")] public class AppDelegate : NSApplicationDelegate { public AppDelegate() { } public override void DidFinishLaunching(NSNotification notification) { // Insert code here to initiali...
21.375
76
0.617934
[ "MIT" ]
PiPinecone/Library
AppDelegate.cs
515
C#
using System; using Microsoft.EntityFrameworkCore.Migrations; namespace Liuliu.Demo.Web.Migrations { public partial class Init : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "Auth_EntityInfo", ...
43.658254
100
0.497917
[ "Apache-2.0" ]
ArcherTrister/ESoftor
samples/web/Identity/Liuliu.Demo.Web/Migrations/20200404064604_Init.cs
41,521
C#
namespace PropertyAds.WebApp.Services.PropertyAggregateServices { using PropertyAds.WebApp.Services.DistrictServices; using PropertyAds.WebApp.Services.PropertyServices; public class PropertyAggregateServiceModel { public DistrictServiceModel District { get; set; } public PropertyType...
27.529412
66
0.724359
[ "MIT" ]
IvanS1991/SoftUni-AspNet-Core-Project
PropertyAds/PropertyAds.WebApp/Services/PropertyAggregateServices/PropertyAggregateServiceModel.cs
470
C#
using Mass_BTC_Balance_Checker.Static_Class.SSH; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Mass_BTC_Balance_Checker.HomeModules { public class InfoRequired { public List<SshDetail> listSsh { get; set; } public ...
26.6
52
0.676692
[ "MIT" ]
tranphucuk/BTC-Balance-Check
Mass BTC Balance Checker/HomeModules/InfoRequired.cs
534
C#
using NHibernate; namespace TrueOrFalse.Updates { public class UpdateToVs081 { public static void Run() { Sl.Resolve<ISession>() .CreateSQLQuery( @"ALTER TABLE `membership` ADD COLUMN `BillingName` VARCHAR(255) NULL DEFAULT ...
24.4375
86
0.514066
[ "MIT" ]
memucho/webapp
src/TrueOrFalse/Tools/Update/Steps.Archive/UpdateToVs081.cs
393
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // <auto-generated /> using System; using Microsoft.AspNetCore.Identity.EntityFrameworkCore; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure;...
34.191304
117
0.483215
[ "MIT" ]
3ejki/aspnetcore
src/Identity/testassets/Identity.DefaultUI.WebSite/Data/Migrations/IdentityDbContextModelSnapshot.cs
7,866
C#
// https://docs.microsoft.com/en-us/visualstudio/modeling/t4-include-directive?view=vs-2017 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using Microsoft.Bot.Solutions.Responses; namespace Microsoft.Bot.Solutions.Tests.Skills.Fakes.FakeSkill.Dialogs.Main.Resources { ...
36.5
92
0.748858
[ "MIT" ]
ElizabethGreene/AI
solutions/Virtual-Assistant/src/csharp/tests/Microsoft.Bot.Solutions.Tests/Skills/Fakes/FakeSkill/Dialogs/Main/Resources/MainResponses.cs
878
C#
using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; namespace Factory.Migrations { public partial class Initial : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name...
40.744186
114
0.516838
[ "ISC" ]
hmcvay/Factory.Solution
Factory/Migrations/20220318165732_Initial.cs
3,506
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; using MediatR; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; namespace MediatRSample.Controllers { [Route("[controller]")] [ApiController] public class MediatRControl...
23.432432
78
0.618224
[ "MIT" ]
zhaobingwang/sample
Demo/MediatRSample/MediatRSample/Controllers/MediatRController.cs
869
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.DataAnnotations.Schema; using System.Linq; using System.Reflection; using Je...
45.660714
141
0.593664
[ "Apache-2.0" ]
1iveowl/efcore
src/EFCore/Metadata/Conventions/ForeignKeyAttributeConvention.cs
20,456
C#
using System; using System.Collections.Generic; using RogueEssence.Dungeon; using RogueEssence.Content; using RogueElements; using RogueEssence; using RogueEssence.Data; using PMDC.Dungeon; using PMDC; using PMDC.Data; using System.IO; using PMDC.Dev; namespace DataGenerator.Data { public static class DataInfo ...
48.28866
194
0.586322
[ "MIT" ]
audinowho/PMDODump
DataGenerator/Data/DataInfo.cs
14,054
C#
using System; using System.Collections.Generic; using MaxLib.WebServer.Post; #nullable enable namespace MaxLib.WebServer { [Serializable] public class HttpPost { [Obsolete] public string CompletePost { get; private set; } public string? MimeType { get; private set; } pr...
31.327434
95
0.507627
[ "MIT" ]
Garados007/MaxLib.WebServer
MaxLib.WebServer/HttpPost.cs
3,542
C#
using RimWorld; using System; using System.Collections.Generic; using Verse; namespace RimThreaded { class TaleManager_Patch { public static void RunDestructivePatches() { Type original = typeof(TaleManager); Type patched = typeof(TaleManager_Patch); RimThr...
25.408163
75
0.508434
[ "MIT" ]
BlackJack1155/RimThreaded
Source/TaleManager_Patch.cs
1,247
C#
using System; using System.Text; using System.Collections.Generic; using System.Linq; #if NUNIT using NUnit.Framework; using TestClassAttribute = NUnit.Framework.TestFixtureAttribute; using TestMethodAttribute = NUnit.Framework.TestAttribute; using TestContext = System.Version; //dummy #else using Microsoft.VisualStud...
45.445135
147
0.550524
[ "MIT" ]
3wayHimself/32feet
Widcomm/BlueSoleilTests/BlueSoleilServiceRecordTests.cs
21,952
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // Le informazioni generali relative a un assembly sono controllate dal seguente // set di attributi. Modificare i valori di questi attributi per modificare le informazioni // associate a un assembly. [assembly: Ass...
41.837838
127
0.76292
[ "MIT" ]
Destewie/LAN-PizzaChat
LAN Chat (First version)/Visuale/VisualChatServer/VisualChatServer/Properties/AssemblyInfo.cs
1,554
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.Linq; using System.Security.Claims; using System.Text.Encodings.Web; using System.Threading...
41.361502
160
0.577696
[ "Apache-2.0" ]
1kevgriff/aspnetcore
src/Security/Authentication/WsFederation/src/WsFederationHandler.cs
17,620
C#
using NUnit.Framework; using Publicity.Tests.Cases; using Publicity.Tests.Constraints; namespace Publicity.Tests { public class ArrayTests { [Test] public void RootArrayShouldOpenAllItems() { object sample = ArrayFixture.Root(); dynamic instance = sample.Open();...
35.065217
74
0.586175
[ "MIT" ]
amacal/publicity
sources/Publicity.Tests/ArrayTests.cs
3,228
C#
using Monaco; using Newtonsoft.Json; namespace Monaco.Languages { public interface WorkspaceFileEdit { [JsonProperty("metadata", NullValueHandling = NullValueHandling.Ignore)] WorkspaceEditMetadata Metadata { get; set; } [JsonProperty("newUri", NullValueHandling = NullValueHandling.Ig...
29.380952
80
0.685575
[ "MIT" ]
hawkerm/monaco-editor-uwp
MonacoEditorComponent/Monaco/Languages/WorkspaceFileEdit.cs
619
C#
namespace System.Windows.Forms { public partial class InterpolationForm : Form { public InterpolationEditor _interpolationEditor; public InterpolationForm(ModelEditorBase mainWindow) { InitializeComponent(); _interpolationEditor = new InterpolationEditor(mainWind...
26.227273
71
0.618718
[ "MIT" ]
Birdthulu/Legacy-Costume-Manager
brawltools/BrawlLib/System/Windows/Forms/InterpolationForm.cs
579
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using System.Web; using MIMWebClient.Core.Events; namespace MIMWebClient.Core.Mob.Events { public class Shop { public static void listItems(PlayerSetup.Player player, Room.Room room) ...
36.808511
165
0.413295
[ "MIT" ]
LiamKenneth/ArchaicQuest
MIMWebClient/Core/Mob/Events/Shop.cs
8,652
C#
[ComVisibleAttribute] // RVA: 0xAE1D0 Offset: 0xAE2D1 VA: 0xAE1D0 [Serializable] public class CustomAttributeFormatException : FormatException // TypeDefIndex: 574 { // Methods // RVA: 0x195D7C0 Offset: 0x195D8C1 VA: 0x195D7C0 public void .ctor() { } // RVA: 0x195D820 Offset: 0x195D921 VA: 0x195D820 public void ...
28.058824
82
0.748428
[ "MIT" ]
SinsofSloth/RF5-global-metadata
System/Reflection/CustomAttributeFormatException.cs
477
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using BlazorProducts.Server.ChartDataProvider; using BlazorProducts.Server.Context; using BlazorProducts.Server.HubConfig; using BlazorProducts.Server.Repository; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCo...
30.197368
127
0.644009
[ "MIT" ]
CodeMazeBlog/blazor-wasm-signalr-charts
End/BlazorProducts.Server/BlazorProducts.Server/Startup.cs
2,295
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("So...
39.054054
84
0.753633
[ "MIT" ]
LPetrova/CSharpAdvance
ArraysListsStacksQueuesHomework/SortArrayOfNumbersUsingSelectionSort/Properties/AssemblyInfo.cs
1,448
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...
35.957143
135
0.589392
[ "Apache-2.0" ]
JeffAshton/aws-sdk-net
sdk/src/Services/FraudDetector/Generated/Model/Internal/MarshallTransformations/CreateRuleRequestMarshaller.cs
5,034
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.Diagnostics; using System.IO; using System.Linq; using System.Reflection; using System.Run...
58.187097
169
0.680397
[ "Apache-2.0" ]
Blubern/AspNetCore
src/Razor/Microsoft.NET.Sdk.Razor/integrationtests/StaticWebAssetsIntegrationTest.cs
18,040
C#
using System.ComponentModel.DataAnnotations.Schema; namespace Silk.Core.Data.Entities { public enum ExemptionType { Role, User, Channel } public sealed class ExemptionEntity { /// <summary> /// The Id of this exemption. /// </summary> public int Id { get; set; } /// <summary> /// What this...
19.27907
52
0.615199
[ "Apache-2.0" ]
VelvetThePanda/Silk
src/Silk.Core.Data/Entities/ExemptionEntity.cs
831
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.Diagnostics; using System.Globalization; using System.IO; using System.Linq; using System.R...
48.38923
254
0.596447
[ "Apache-2.0" ]
davkean/NuGet.Client
src/NuGet.Core/NuGet.PackageManagement/NuGetPackageManager.cs
173,427
C#
namespace WHMS.Web.ViewModels.Orders { using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using WHMS.Data; using WHMS.Web.ViewModels.ValidationAttributes; public class ShipOrderInputModel : IValidatableObject { public int OrderId { get; set; } publ...
33.047619
105
0.628242
[ "MIT" ]
jivkopiskov/WHMS
src/Web/WHMS.Web.ViewModels/Orders/ShipOrderInputModel.cs
1,390
C#
using System; using Microsoft.TemplateEngine.Abstractions; using Microsoft.TemplateEngine.Core.Contracts; using Microsoft.TemplateEngine.Orchestrator.RunnableProjects.Macros.Config; using Newtonsoft.Json.Linq; namespace Microsoft.TemplateEngine.Orchestrator.RunnableProjects.Macros { public class RandomMacr...
36.552941
183
0.578693
[ "MIT" ]
mmitche/templating
src/Microsoft.TemplateEngine.Orchestrator.RunnableProjects/Macros/RandomMacro.cs
3,023
C#
using API; using Newtonsoft.Json; using PxStat.Template; namespace PxStat.Security { /// <summary> /// Reads a Trace. Required parameters StartDate,EndDate and optionally AuthenticationType /// </summary> internal class Trace_BSO_Read : BaseTemplate_Read<Trace_DTO_Read, Trace_VLD_Read> { /...
27.480769
114
0.554234
[ "MIT" ]
CSOIreland/PxStat
server/PxStat/Entities/Security/Trace/BSO/Trace_BSO_Read.cs
1,431
C#
using System; using System.Data; using System.Data.Common; using System.Data.SqlClient; using Projac.Sql; namespace Projac.SqlClient { /// <summary> /// Represents the T-SQL DATETIME2 parameter value. /// </summary> public class TSqlDateTime2Value : IDbParameterValue { private readonly TSql...
34.825688
125
0.533983
[ "BSD-3-Clause" ]
BitTacklr/Projac
src/Projac.SqlClient/TSqlDateTime2Value.cs
3,796
C#
// _ _ _ ____ _ _____ // / \ _ __ ___ | |__ (_)/ ___| | |_ ___ __ _ _ __ ___ | ___|__ _ _ __ _ __ ___ // / _ \ | '__|/ __|| '_ \ | |\___ \ | __|/ _ \ / _` || '_ ` _ \ | |_ / _` || '__|| '_ ` _ \ // / ___ \ | | | (__ | | | || | ___) || |_| __/| ...
33.277992
303
0.703523
[ "Apache-2.0" ]
439qi/ArchiSteamFarm
ArchiSteamFarm/WebBrowser.cs
25,858
C#
using Inversion.Data; namespace Inversion.Messaging.Logging { public interface ILoggingStore : IStore { void Log(string entity, string message); void LogDebug(string entity, string message); } }
22.4
53
0.691964
[ "MIT" ]
fractos/inversion-messaging
Inversion.Messaging/Logging/ILoggingStore.cs
226
C#
#region Copyright // <<<<<<< HEAD <<<<<<< HEAD ======= ======= >>>>>>> update form orginal repo // DotNetNuke® - https://www.dnnsoftware.com // Copyright (c) 2002-2018 // by DotNetNuke Corporation // // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated // do...
38.765579
219
0.527136
[ "MIT" ]
DnnSoftwarePersian/Dnn.Platform
DNN Platform/Library/Framework/PageBase.cs
26,129
C#
using GroupDocsAnnotationVisualStudioPlugin.Core; namespace GroupDocsAnnotationVisualStudioPlugin.GUI { partial class ComponentWizardPage { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summ...
58.443038
169
0.636488
[ "MIT" ]
atirtahirgroupdocs/GroupDocs.Annotation-for-.NET
Plugins/GroupDocs_Annotation_VSPlugin/GroupDocs.Annotation.VisualStudioPlugin/GroupDocsVisualStudioPlugin/GUI/ComponentWizardPage.Designer.cs
13,853
C#
using System; using System.Collections.Generic; using System.Net.Http; using System.Text; using System.Threading; using System.Threading.Tasks; using Flurl; using Flurl.Http; namespace SKIT.FlurlHttpClient.Wechat.TenpayV3 { /// <summary> /// 为 <see cref="WechatTenpayClient"/> 提供证书相关的 API 扩展方法。 /// </summa...
41.157895
216
0.684783
[ "MIT" ]
ZUOXIANGE/DotNetCore.SKIT.FlurlHttpClient.Wechat
src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Extensions/WechatTenpayClientExecuteCertificatesExtensions.cs
1,606
C#
using RavenBot.Core.Ravenfall.Models; namespace RavenBot.Core.Ravenfall.Requests { public class ArenaKickRequest { public Player Player { get; } public Player TargetPlayer { get; } public ArenaKickRequest(Player player, Player targetPlayer) { Player = player; ...
23.3125
67
0.624665
[ "MIT" ]
AbbyTheRat/RavenBot
src/RavenBot.Core.Ravenfall/Requests/ArenaKickRequest.cs
375
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> //-----------------------------------------...
27.185185
84
0.463215
[ "MIT" ]
SAEONData/Profiler
gchart.aspx.designer.cs
736
C#