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 Philcosa.Application.Interfaces.Services; using Microsoft.AspNetCore.Http; using System.Collections.Generic; using System.Linq; using System.Security.Claims; namespace Philcosa.Server.Services { public class CurrentUserService : ICurrentUserService { public CurrentUserService(IHttpContextAccesso...
37.35
163
0.728246
[ "MIT" ]
HenkVanMilligen/Philcosa
Philcosa/Server/Services/CurrentUserService.cs
749
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SurrogateLibrary.Helpers { internal class DictionaryEx<TKey, TValue> : Dictionary<TKey, TValue>, IEquatable<DictionaryEx<TKey, TValue>> { public DictionaryEx() : base() ...
27.789474
112
0.571591
[ "MIT" ]
raffaeler/SemanticDrivenModeling
src/SemanticModelingSolution/SurrogateLibrary/Helpers/DictionaryEx.cs
2,642
C#
namespace Mozilla.IoT.WebThing.Integration.Test.Events.String { public class EnumEvent : AbstractStructEventTest<Foo> { } public enum Foo { A, B, C } }
14.266667
61
0.542056
[ "Apache-2.0" ]
jabastien/webthing-csharp
tests/Mozilla.IoT.WebThing.Integration.Test/Events/String/EnumEvent.cs
214
C#
// -------------------------------------------------------------------------------------------------------------------- // <copyright company="Aspose" file="QrParams.cs"> // Copyright (c) 2021 Aspose.BarCode for Cloud // </copyright> // <summary> // Permission is hereby granted, free of charge, to any person obtain...
42.288462
235
0.594588
[ "MIT" ]
aspose-barcode-cloud/aspose-barcode-cloud-dotnet
src/Model/QrParams.cs
4,398
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.Concurrent; using System.Linq; namespace Microsoft.EntityFrameworkCore.TestUtilities { public static class D...
34.592593
121
0.521413
[ "Apache-2.0" ]
0b01/efcore
test/EFCore.Specification.Tests/TestUtilities/DataGenerator.cs
2,802
C#
using MyXObject; using System; using System.Windows; using System.Windows.Media; using System.Windows.Shapes; namespace MyXAribute { /// <summary> /// 贝塞尔曲线 /// </summary> public class BezierLine : IDisposable { #region 自定义属性 /// <summary> /// 标示符 /// </summary> ...
33.389908
156
0.486124
[ "Apache-2.0" ]
Nagisakurumi/GraphicalProgramming
MyXAribute/BezierLine.cs
15,456
C#
#region License // Copyright 2015 Kastellanos Nikolaos // // 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 requ...
31.074074
77
0.712753
[ "Apache-2.0" ]
tainicom/XNALibrary
Source/Storage/IStoreable.cs
841
C#
// <auto-generated /> using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using eCommerceStarterCode.Data; names...
38.690647
125
0.476385
[ "MIT" ]
TBuscemi/eCommerce
eCommerceStarterCode/Migrations/20210902214354_initialmigrationtjm.Designer.cs
21,514
C#
using System.ServiceProcess; namespace KpdApps.Orationi.Messaging.PluginHost { static class Program { /// <summary> /// The main entry point for the application. /// </summary> static void Main() { ServiceBase[] ServicesToRun; ServicesToRun = new...
21.857143
53
0.520697
[ "MIT" ]
KpdApps/Orationi.Messaging
KpdApps.Orationi.Messaging.PluginHost/Program.cs
461
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...
30.4
97
0.680556
[ "Apache-2.0" ]
jdcloud-api/jdcloud-sdk-net
sdk/src/Service/Antipro/Apis/DescribeAttackTypeCountResponse.cs
1,550
C#
// Copyright (c) Wiesław Šoltés. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.IO; using System.Text; namespace WavFile { /// <summary> /// Read/Write WAV file header information. /// </summary> pub...
39.482759
190
0.4787
[ "MIT" ]
caleblanchard/SimpleWavSplitter
src/WavFile/WavFileInfo.cs
10,310
C#
 // öğrenci tanımlama ve ekrana yazdırma Ogrenci ogrenci = new Ogrenci(); ogrenci.Isim = "Hakkı"; ogrenci.Soyisim = "Ayman"; ogrenci.OgrenciNo = 123; ogrenci.Sinif = 4; ogrenci.OgrenciBilgileriniGetir(); ogrenci.SinifAtlat(); ogrenci.OgrenciBilgileriniGetir(); // Öğrenci parametrelerini belirleyen sınıf class Og...
23.294872
73
0.565768
[ "MIT" ]
SoulCriminal/EncapsulationKavram-
Program.cs
1,856
C#
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; names...
39.038462
204
0.752709
[ "ECL-2.0", "Apache-2.0" ]
chivandikwa/pulumi-aws
sdk/dotnet/WafV2/Inputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgumentGetArgs.cs
1,015
C#
using System; namespace YoYo { public interface Function { Symbol GetName(); int GetNargs(); object[] GetArgArray(Context c); object Run(Object[] arglist, Context c); void Trace(); void Untrace(); } }
17.533333
48
0.555133
[ "MIT" ]
abegel/yoyo
YoYoInterpreter/Function.cs
265
C#
using System; using System.Collections.Generic; using System.Diagnostics; namespace Pathfinding { public class AstarProfiler { public class ProfilePoint { public Stopwatch watch = new Stopwatch(); public int totalCalls; public long tmpBytes; public long totalBytes; } privat...
18.730769
129
0.678987
[ "MIT" ]
corefan/mobahero_src
Pathfinding/AstarProfiler.cs
1,461
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...
32.191176
120
0.648241
[ "Apache-2.0" ]
EbstaLimited/aws-sdk-net
sdk/src/Services/SnowDeviceManagement/Generated/Model/CancelTaskRequest.cs
2,189
C#
using UnityEngine; namespace Mirror { /// <summary>Start position for player spawning, automatically registers itself in the NetworkManager.</summary> [DisallowMultipleComponent] [AddComponentMenu("Network/NetworkStartPosition")] [HelpURL("https://mirror-networking.com/docs/Articles/Components/NetworkS...
28.818182
116
0.68612
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
ARAPHELLE/Soil
Soil/Assets/Mirror/Runtime/NetworkStartPosition.cs
634
C#
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
37.05
102
0.765857
[ "Apache-2.0" ]
aliyun/aliyun-openapi-net-sdk
aliyun-net-sdk-vpc/Vpc/Transform/V20160428/DisableVpcClassicLinkResponseUnmarshaller.cs
1,482
C#
/* * Copyright (c) 2018 THL A29 Limited, a Tencent company. 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 * ...
34.279412
96
0.636637
[ "Apache-2.0" ]
TencentCloud/tencentcloud-sdk-dotnet
TencentCloud/Vod/V20180717/Models/UserDefineAsrTextReviewTemplateInfo.cs
2,833
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...
35.669421
137
0.606348
[ "Apache-2.0" ]
PureKrome/aws-sdk-net
sdk/src/Services/Organizations/Generated/Model/Internal/MarshallTransformations/TagResourceRequestMarshaller.cs
4,316
C#
using FluentAssertions; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using System.Net; using System.Threading.Tasks; using Xunit; namespace Mendham.Testing.AspNetCore.Test { public class TestServerFixtureTest : Test<TestServerFixtureTestFixture> { public TestServerFixtureTes...
28.807692
95
0.560748
[ "Apache-2.0" ]
Mendham/Mendham
test/Mendham.Testing.AspNetCore.Test/TestServerFixtureTest.cs
1,500
C#
using System; using System.Collections.Generic; using System.Linq; namespace _05._Bomb_numbers { class Program { static void Main(string[] args) { List<int> numbers = Console.ReadLine().Split().Select(int.Parse).ToList(); int[] bombSquad = Console.ReadLine().Split().Sel...
29.435484
86
0.387397
[ "MIT" ]
DeyanDanailov/SoftUniCSharpFundamentals
repos/05. Bomb numbers/Program.cs
1,827
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.Web.Mvc; using System.Globalization; using System.Linq; using System.Net; using System.Thr...
35.224615
204
0.585779
[ "Apache-2.0" ]
SubPointSolutions/MetaPackGallery
src/NuGetGallery/Areas/Admin/Controllers/SupportRequestController.cs
11,450
C#
// <auto-generated /> using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using ShoelessJoeWebApi.DataAccess.Data...
37.280179
125
0.459444
[ "MIT" ]
TClaypool00/ShoelessJoeApiV2
ShoelessJoeWebApi.DataAccess/Migrations/20211229220601_AddedBills.Designer.cs
25,017
C#
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using Moq; using Resolution.Sentences; using Resolution.Visitors.ConjunctionExclusion; namespace Resolution.Tests.VisitorsTests.ConjunctionExclusion { [TestClass] public class ChildConjunctionExclusionStateTests { [TestMethod] ...
42.843137
114
0.686957
[ "Apache-2.0" ]
wsi4/wsi_rezolucja
Resolution/Resolution.Tests/VisitorsTests/ConjunctionExclusion/ChildConjunctionExclusionStateTests.cs
2,187
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("DA...
37.27027
84
0.741842
[ "MIT" ]
RikiZilber/LicensingOffice
DAL/Properties/AssemblyInfo.cs
1,382
C#
// ---------------------------------------------------------------------- // <copyright file="GetToken.cs"> // Copyright (c) The Loxone.NET Authors. All rights reserved. // </copyright> // <license> // Use of this source code is governed by the MIT license that can be // found in the LICENSE.txt file. // <...
29.096774
73
0.542129
[ "MIT" ]
graspea/Loxone.NET
Loxone.Client/Transport/Serialization/Responses/GetToken.cs
902
C#
using AnimationOrTween; using System; using UnityEngine; [AddComponentMenu("NGUI/Interaction/Button Play Animation")] public class UIButtonPlayAnimation : MonoBehaviour { public string callWhenFinished; public bool clearSelection; public string clipName; public DisableCondition disableWhenFinished; ...
33.01626
238
0.593204
[ "Apache-2.0" ]
ITALIA195/AoTTG-Mod
UIButtonPlayAnimation.cs
4,061
C#
using Domain.Todos.Aggregates; namespace Domain.Todos.Queries; public record TodoGetSingleQuery(Guid AggregateId) : IQuery<Todo?>;
26.4
67
0.818182
[ "MIT" ]
NQbbe/DDD-CQRS-EventSourcing-Template
src/Domain/Todos/Queries/TodoGetSingleQuery.cs
132
C#
using System; using System.ComponentModel.DataAnnotations; using System.Threading.Tasks; using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; using Microsoft.Extensions.Logging; namespace EntidadClient.Areas.Identity.Pages.Account.Manage { publi...
33.963855
118
0.579283
[ "MIT" ]
andcolombia/libreria-net-core-auth
Areas/Identity/Pages/Account/Manage/DeletePersonalData.cshtml.cs
2,821
C#
// ReSharper disable once CheckNamespace namespace Toppings { public partial class DecimalValue { private const decimal NanoDivisor = 1_000_000_000m; private DecimalValue (decimal value) { Units = (long) decimal.Truncate (value); Nanos = (int) ((value - Units) * NanoDivisor);...
41.071429
71
0.641739
[ "MIT" ]
tschettler/ndc-minnesota-2020
src/Toppings/Protos/DecimalValue.cs
575
C#
using System; namespace API_Program { class Program { static void Main(string[] args) { // load config Config config = new Config(); config.configConsole(); // restart: int eleccion; functions obj...
37.815217
104
0.392642
[ "MIT" ]
neopkr/csharp-program
Program.cs
3,482
C#
using System; using System.Collections.Generic; using KoiVM.CFG; namespace KoiVM.VM { public class VMMethodInfo { public VMMethodInfo() { BlockKeys = new Dictionary<IBasicBlock, VMBlockKey>(); UsedRegister = new HashSet<VMRegisters>(); } public ScopeBlock RootScope; public readonly Diction...
24.043478
65
0.725136
[ "CC0-1.0" ]
ElektroKill/KoiVM
KoiVM/VM/VMMethodInfo.cs
555
C#
namespace SampleApp { partial class DataTableTreeExample { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </sum...
47.552995
153
0.598992
[ "MIT" ]
DoomStorm/WindowTabs
treeviewadv/SampleApp/DataTableExample/DataTableTreeExample.designer.cs
10,319
C#
using System; using System.Data; using Microsoft.VisualStudio.TestTools.UnitTesting; using NSubstitute; namespace Mutex.Data.Impl.UnitTests { [TestClass] public class CommandFactoryUnitTest { [TestMethod] public void Construct_WithoutDbTypeResolver() { new CommandFacto...
27.215385
72
0.596947
[ "MIT" ]
jmuukka/data
Impl.UnitTests/CommandFactoryUnitTest.cs
1,771
C#
namespace Goke.Plotly.Blazor { public class Scene { public Axis Xaxis { get; set; } = new Axis(); public Axis Yaxis { get; set; } = new Axis(); public Axis Zaxis { get; set; } = new Axis(); } }
23.1
53
0.541126
[ "MIT" ]
goke-ai/plotly-blazor
src/Plotly.Blazor/Plotly/Scene.cs
233
C#
using System; using System.Collections.Generic; using EZNEW.Develop.Entity; namespace EZNEW.Entity.Sys { /// <summary> /// 操作功能分组 /// </summary> [Serializable] [Entity("Sys_OperationGroup", "Sys", "操作功能分组")] public class OperationGroupEntity : BaseEntity<OperationGroupEntity> { /// ...
24.045455
72
0.510397
[ "MIT" ]
eznew-net/Demo
Modules/Sys/Model/EZNEW.Entity.Sys/OperationGroupEntity.cs
1,122
C#
namespace ModelGenerator { public class Program { public static void Main(string[] args) { var command = Args.Configuration.Configure<ModelBuilder>().CreateAndBind(args); command.Execute(); } } }
23.181818
91
0.588235
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
AMCN41R/nHapi
src/ModelGenerator/Program.cs
255
C#
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved. using UnrealBuildTool; using System.Collections.Generic; public class UE4MarchingCubesGPUTarget : TargetRules { public UE4MarchingCubesGPUTarget(TargetInfo Target) { Type = TargetType.Game; } // // TargetRules interface. // public override void S...
20.192308
68
0.777143
[ "MIT" ]
runedegroot/UE4MarchingCubesGPU
Source/UE4MarchingCubesGPU.Target.cs
525
C#
/* * DISCLAIMER * * Copyright 2016 ArangoDB GmbH, Cologne, Germany * * 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 ap...
40.637061
164
0.52392
[ "Apache-2.0" ]
composite/ArangoDB.Net
VelocyPack/VPack.cs
37,061
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Authentication; using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; using Microsoft.Extensi...
33.33
141
0.587159
[ "Apache-2.0" ]
Beam-Lab/Buggy
BeamLab.Buggy/Pages/Account/Login.cshtml.cs
3,333
C#
// MonoGame - Copyright (C) The MonoGame Team // This file is subject to the terms and conditions defined in // file 'LICENSE.txt', which is part of this source code package. namespace Microsoft.Xna.Framework.Graphics { /// <summary> /// Defines how vertex data is ordered. /// </summary> public enum Prim...
33.588235
210
0.656743
[ "MIT" ]
NebulaSleuth/MonoGame.XamarinForms
MonoGame.Framework/MonoGame.Framework.AndroidForms/Graphics/Vertices/PrimitiveType.cs
1,142
C#
using System; using Newtonsoft.Json; namespace Alexa.NET.ProactiveEvents.TrashCollectionReminders { public class TrashCollectionReminderPayload { public TrashCollectionReminderPayload() { } public TrashCollectionReminderPayload(DayOfWeek collectionDay, GarbageType[] garbageTypes) { ...
28.611111
98
0.712621
[ "MIT" ]
JasonSowers/twitch-alexa-skill
Alexa.NET.ProactiveEvents/TrashCollectionReminders/TrashCollectionReminderPayload.cs
517
C#
using System.Collections.Generic; using Newtonsoft.Json; namespace Binance.Net.Objects { /// <summary> /// Information about an account /// </summary> public class BinanceStreamAccountInfo: BinanceStreamEvent { /// <summary> /// Commission percentage to pay when making trades ...
31.367089
64
0.54318
[ "MIT" ]
Peixer/Binance.Net
Binance.Net/Objects/BinanceStreamAccountInfo.cs
2,480
C#
using System.Reflection; [assembly: AssemblyMetadata("ImplicitNullability.AppliesTo", "InputPaRaMeters")] // wrong casing => invalid
33.75
107
0.785185
[ "MIT" ]
sheitmann/ImplicitNullability
Src/ImplicitNullability.Plugin.Tests/test/data/UnitTests/Configuration/ImplicitNullabilityConfigurationEvaluatorTest/AttributeWithInvalidValue.cs
137
C#
// Copyright 2014 Pēteris Ņikiforovs // // 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 agree...
35.890244
75
0.59735
[ "Apache-2.0" ]
pdonald/latvian
Latvian.Tests/Tokenization/PositionCounterTests.cs
2,947
C#
/* * Copyright (c) 2018 THL A29 Limited, a Tencent company. 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 * ...
33.253521
89
0.619229
[ "Apache-2.0" ]
Darkfaker/tencentcloud-sdk-dotnet
TencentCloud/Vod/V20180717/Models/PoliticalImgReviewTemplateInfo.cs
2,789
C#
namespace ConsoleTemplate.Generic; public static class HelpersStatic { public static string FixedWidth(string s, int width) { return new string(s.Take(width).ToArray()).PadRight(width); } public static void DisplayException(Exception ex) { Console.ForegroundColor = ConsoleColor.Re...
36.628571
159
0.554602
[ "MIT" ]
Hyper-Dragon/TemplatesHD
Src-DotNet-ConsoleDiCmdLine/Generic/HelpersStatic.cs
1,284
C#
namespace AssetStudioGUI { partial class AssetStudioGUIForm { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> ...
57.930099
184
0.658646
[ "MIT" ]
2chevskii/AssetStudio
AssetStudioGUI/AssetStudioGUIForm.Designer.cs
70,445
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. using IdentityModel; using IdNet6.Events; using IdNet6.Extensions; using IdNet6.Services; using IdNet6.Validation; using Microsoft.Extensions....
37.201613
203
0.611533
[ "Apache-2.0" ]
simple0x47/IdNet6
src/IdNet6/src/ResponseHandling/Default/IntrospectionResponseGenerator.cs
4,613
C#
using Abp.Application.Services.Dto; using Abp.AutoMapper; using TestDownload.Authorization.Users; namespace TestDownload.Sessions.Dto { [AutoMapFrom(typeof(User))] public class UserLoginInfoDto : EntityDto<long> { public string Name { get; set; } public string Surname { get; set; } ...
22
51
0.667464
[ "MIT" ]
wzengguang/TestDowload
aspnet-core/src/TestDownload.Application/Sessions/Dto/UserLoginInfoDto.cs
420
C#
// // SnippetExecutor.cs // // Copyright (C) 2005 Novell, Inc. // // // 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...
36.491525
111
0.752903
[ "MIT" ]
baohaojun/beagrep
beagrepd/SnippetExecutor.cs
2,153
C#
using System.Reflection; using System.Resources; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Windows; // Les informations générales relatives à un assembly dépendent de // l'ensemble d'attributs suivant. Pour modifier les informations // associées à un assembly. [assembly...
46.410714
136
0.72374
[ "Apache-2.0" ]
mkalkbrenner/flexdmd
FlexDMDUI/Properties/AssemblyInfo.cs
2,644
C#
using IPA.Config.Stores; using System.Runtime.CompilerServices; [assembly: InternalsVisibleTo(GeneratedStore.AssemblyVisibilityTarget)] namespace CustomEnergyBar.Settings { internal class SettingsStore { public string Selected = "defaultEnergyBar"; public bool AllowSFX = true; } }
19.533333
71
0.798635
[ "MIT" ]
ckosmic/CustomEnergyBars
CustomEnergyBar/Settings/SettingsStore.cs
295
C#
using System; namespace WebHDFS { /// <summary> /// https://hadoop.apache.org/docs/r2.8.0/hadoop-project-dist/hadoop-hdfs/WebHDFS.html#ContentSummary_JSON_Schema /// </summary> public class ContentSummaryClass { /// <summary> /// Gets or sets the content summary. /// </summa...
25.225352
117
0.47962
[ "Apache-2.0" ]
risdenk/webhdfs-dotnet
WebHDFS/ContentSummaryClass.cs
3,584
C#
using Newtonsoft.Json; using System.Collections.Generic; namespace TauriApiWrapper.Objects.Responses.Achievement { public sealed class CharacterAchievementsCategory { [JsonProperty("info")] public CharacterAchievementsInfo Info { get; set; } [JsonProperty("subcat", NullValueHandling =...
31.214286
81
0.729977
[ "Apache-2.0" ]
brues-code/TauriApiWrapper
TauriApiWrapper/Objects/Responses/Achievement/CharacterAchievementsCategory.cs
439
C#
using FluentMigrator; using Nop.Core.Domain.Affiliates; using Nop.Core.Domain.Blogs; using Nop.Core.Domain.Catalog; using Nop.Core.Domain.Common; using Nop.Core.Domain.Configuration; using Nop.Core.Domain.Customers; using Nop.Core.Domain.Directory; using Nop.Core.Domain.Discounts; using Nop.Core.Domain.Forums; using N...
44.706977
86
0.712963
[ "MIT" ]
ASP-WAF/FireWall
Samples/NopeCommerce/Libraries/Nop.Data/Migrations/SchemaMigration.cs
9,614
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable using System.Collections.Generic; using Azure.Core; namespace Azure.ResourceManager.KeyVault.Models { /// <summary> A set of rules governing the network accessibility of a manag...
53.282609
206
0.695226
[ "MIT" ]
Cardsareus/azure-sdk-for-net
sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/MhsmNetworkRuleSet.cs
2,451
C#
using System; using NUnit.Framework; namespace AsyncAwaitBestPractices.UnitTests { class Tests_WeakEventManager_EventHandler : BaseTest { [Test] public void WeakEventManager_HandleEvent_ValidImplementation() { //Arrange TestEvent += HandleTestEvent; ...
29.471223
168
0.567924
[ "MIT" ]
Ahmed-Dawood/AsyncAwaitBestPractices
Src/AsyncAwaitBestPractices.UnitTests/WeakEventManagerTests/Tests_WeakEventManager_EventHandler.cs
8,195
C#
using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Automation.Peers; using NativeAutomationProperties = Microsoft.UI.Xaml.Automation.AutomationProperties; using WPanel = Microsoft.UI.Xaml.Controls.Panel; using WNavigationViewItem = Microsoft.UI.Xaml.Controls.NavigationViewItem; using WFrameworkElement = Microsoft.UI.Xam...
33.925926
129
0.759552
[ "MIT" ]
adospace/maui
src/Controls/tests/DeviceTests/HandlerTestBase.Windows.cs
3,666
C#
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using BuildXL.Cache.ContentStore.Service; using FluentAssertions; using Xunit; namespace ContentStoreTest.Service { public class BufferSeri...
28.306667
102
0.553462
[ "MIT" ]
AzureMentor/BuildXL
Public/Src/Cache/ContentStore/Test/Service/BufferSerializeContextTests.cs
2,123
C#
using System.Data.Entity; using Verademo.Models; namespace Verademo.Data { public class ApplicationDbContext : DbContext { public ApplicationDbContext() : base("Server=127.0.0.1,1433;Database=Verademo;User=sa;Password=SuperSecurePassw0rd!") { } protected override void OnModelC...
23.714286
125
0.646586
[ "MIT" ]
Lerer/verademo-dotnet
app/Data/ApplicationDbContext.cs
498
C#
using Microsoft.Bot.Builder.FormFlow; using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace HotelBot.Models { public enum BedSizeOptions { King, Queen, Single, Double } public enum AmenitiesOptions { Kitechen, ...
19.666667
60
0.596852
[ "MIT" ]
agholap/Azure532
HotelBot/Models/RoomReservation.cs
828
C#
using System.Xml; namespace SharpDox.UML.SVG { internal class SvgLink : SvgElement { private XmlAttribute _href; public SvgLink(SvgRoot rootSvg, string text, string href, double x, double y) : base(rootSvg, "a") { Text = new SvgText(rootSvg, text, x, y); Create...
28.578947
106
0.541436
[ "MIT" ]
CoderGears/sharpDox
src/Libraries/SharpDox.UML/SVG/SvgLink.cs
1,088
C#
// Compiler options: -langversion:future using System; using System.Threading.Tasks; class Program { static void CompilationTestOnly () { var t = new Task<int> (() => 5); var t2 = Task.Run (() => { return t; }); } public static void Main () { } }
15.294118
42
0.626923
[ "Apache-2.0" ]
121468615/mono
mcs/tests/test-async-25.cs
260
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.Diagnostics; namespace System.Reflection.TypeLoading { /// <summary> /// A convenience class t...
36.581818
138
0.552684
[ "MIT" ]
AlexanderSWilliams/corefxlab
src/System.Reflection.TypeLoader/src/System/Reflection/TypeLoading/General/CoreTypes.cs
2,012
C#
// MIT License // Copyright (c) 2011-2016 Elisée Maurer, Sparklin Labs, Creative Patterns // Copyright (c) 2016 Thomas Morgner, Rabbit-StewDio Ltd. // 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 ...
26.423503
138
0.591088
[ "MIT" ]
RabbitStewDio/Steropes.UI
src/Steropes.UI/Widgets/NotebookTabList.cs
11,920
C#
using MediatR; namespace ELearning.Application.Users.Queries.GetUsersList { public class GetUsersListQuery : IRequest<UsersListViewModel> { } }
17.555556
65
0.753165
[ "MIT" ]
MKafar/ELearning
ELearning.Application/Users/Queries/GetUsersList/GetUsersListQuery.cs
160
C#
namespace Northwind.Data { using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; [Table("Customers")] public class Customer { [Key] [Column("Customer ID")] [MaxLength(5)] ...
22.630435
55
0.558117
[ "MIT" ]
achingono/Northwind.Web.WebPages
Northwind.Data/Customer.cs
1,041
C#
namespace _04.CubicMessages { using System; using System.Linq; using System.Text; using System.Text.RegularExpressions; public class CubicMessages { public static void Main() { var pattern = @"^(?<leftPart>\d+)(?<message>[a-zA-Z]+)(?<rightPart>[^a-zA-Z]*)$"; ...
31.346667
99
0.415142
[ "MIT" ]
TsvetanNikolov123/CSharp---Programming-Fundamentals
Exam Preparation IV/04.CubicMessages/CubicMessages.cs
2,353
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /****************************************************************************** * This file is auto-generated from a template file by the GenerateTests.csx * * script in tests\src...
42.190566
185
0.585886
[ "MIT" ]
2m0nd/runtime
src/tests/JIT/HardwareIntrinsics/Arm/AdvSimd/AddWideningLower.Vector64.SByte.cs
22,361
C#
/* * Copyright 2010-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "l...
39.980392
182
0.69642
[ "Apache-2.0" ]
jdluzen/aws-sdk-net-android
AWSSDK/Amazon.ElastiCache/Model/ReplicationGroupAlreadyExistsException.cs
2,039
C#
using LionFrame.Basic.Models; using System; using System.Drawing; using System.Drawing.Imaging; using System.IO; using System.Text; namespace LionFrame.Basic { /// <summary> /// 图形验证码工具类 /// </summary> public static class CaptchaHelper { const string Letters = "2346789ABCDEFG...
39.096916
146
0.464451
[ "MIT" ]
levy-w-wang/LionFrame
LionFrame.Basic/CaptchaHelper.cs
9,171
C#
using System; using System.Collections.Generic; namespace KeyPayV2.Au.Enums { public enum PayRunWarningType { PaymentFile, MoreLeaveThanAccrued, UnpaidEarnings, Birthday, Anniversary, NegativeEarnings, PreviouslyTerminated, Terminate...
28.588235
52
0.649177
[ "MIT" ]
hr-central/keypay-dotnet-v2
src/keypay-dotnet/Au/Enums/PayRunWarningType.cs
1,944
C#
using System.Globalization; using System.Reflection; using Avalonia; namespace DHT.Desktop { internal static class Program { public static string Version { get; } public static CultureInfo Culture { get; } static Program() { Version = Assembly.GetExecutingAssembly().GetName().Version?.ToString() ?? ""; ...
29.205882
81
0.72004
[ "MIT" ]
SoftwareGuy/Discord-History-Tracker
app/Desktop/Program.cs
995
C#
namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// <summary> /// <para>表示 [GET] /cgi-bin/template/get_all_private_template 接口的请求。</para> /// </summary> public class CgibinTemplateGetAllPrivateTemplateRequest : WechatApiRequest { } }
26.2
79
0.694656
[ "MIT" ]
ZUOXIANGE/DotNetCore.SKIT.FlurlHttpClient.Wechat
src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinTemplate/CgibinTemplateGetAllPrivateTemplateRequest.cs
280
C#
using BookingsApi.Contract.Responses; using BookingsApi.Domain; using System; using System.Collections.Generic; using System.Linq; using Castle.Core.Internal; namespace BookingsApi.Mappings { public class AudioRecordedHearingsBySearchResponseMapper { private const string ErrorMessage = "Hearing is mis...
40.189655
122
0.590305
[ "MIT" ]
hmcts/vh-bookings-api
BookingsApi/BookingsApi/Mappings/AudioRecordedHearingsBySearchResponseMapper.cs
2,333
C#
/* * Copyright © 2016-2018 EDDiscovery development team * * 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 ap...
38.159091
256
0.600159
[ "Apache-2.0" ]
EDDiscovery/EliteDangerousCore
EliteDangerous/JournalEvents/JournalPowerplay.cs
10,077
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...
36.471154
191
0.612708
[ "Apache-2.0" ]
Bio2hazard/aws-sdk-net
sdk/src/Services/Neptune/Generated/Model/Internal/MarshallTransformations/DBClusterSnapshotAttributeUnmarshaller.cs
3,793
C#
// c:\program files (x86)\windows kits\10\include\10.0.18362.0\shared\ks.h(2084,9) using System; using System.Runtime.InteropServices; namespace DirectN { [StructLayout(LayoutKind.Sequential)] public partial struct KSSTREAM_UVC_METADATATYPE_TIMESTAMP { public uint PresentationTimeStamp; pu...
27.941176
83
0.726316
[ "MIT" ]
bbday/DirectN
DirectN/DirectN/Generated/KSSTREAM_UVC_METADATATYPE_TIMESTAMP.cs
477
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Epam.FinalTask.PhotoAlbum.Entities; namespace Epam.FinalTask.PhotoAlbum.DAL.Contracts { public interface IUsersDao { User GetUserByUserName(string userName); User GetUserB...
19.241379
49
0.682796
[ "MIT" ]
SergioPonomarev/XT-2018Q4
Epam.FinalTask/Epam.FinalTask.PhotoAlbum.DAL.Contracts/IUsersDao.cs
560
C#
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System.Collections.Generic; using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; namespace Pulumi.Aw...
42.695313
266
0.621134
[ "ECL-2.0", "Apache-2.0" ]
dixler/pulumi-aws
sdk/dotnet/Ec2transitgateway/VpcAttachment.cs
10,930
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Nwazet.Commerce.Models; using Orchard.ContentManagement.Handlers; using Orchard.Environment.Extensions; namespace Nwazet.Commerce.Handlers { [OrchardFeature("Nwazet.AdvancedSKUManagement")] ...
28.736842
83
0.771062
[ "BSD-3-Clause" ]
LaserSrl/Nwazet.Commerce
Handlers/AdvancedSKUsSiteSettingPartHandler.cs
548
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Destroyer : MonoBehaviour { [SerializeField] private float lifeTimer; private bool isDestroyMe = false; private void Start() { if (lifeTimer > 0.01f) { Destroy(gameObject, lifeTime...
17
45
0.55615
[ "MIT" ]
omf2333/42019801GameProgramming
Assets/Scripts/Destroyer.cs
563
C#
using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using Newtonsoft.Json; namespace ToolKit.OData { /// <summary> /// An OData Response Object. /// </summary> public class ODataResponse { /// <summary> /// Gets or sets the Context for the OData response. ...
32.842105
89
0.584402
[ "Apache-2.0" ]
dcjulian29/toolkit
ToolKit/OData/ODataResponse.cs
1,872
C#
namespace Alipay.AopSdk.Core.Response { /// <summary> /// AlipayEcoCplifeBillSyncResponse. /// </summary> public class AlipayEcoCplifeBillSyncResponse : AopResponse { } }
19.5
62
0.671795
[ "MIT" ]
leixf2005/Alipay.AopSdk.Core
Alipay.AopSdk.Core/Response/AlipayEcoCplifeBillSyncResponse.cs
195
C#
///////////////////////////////////////////////////////////////////////////////// // // Photoshop PSD FileType Plugin for Paint.NET // http://psdplugin.codeplex.com/ // // This software is provided under the MIT License: // Copyright (c) 2006-2007 Frank Blumenberg // Copyright (c) 2010-2012 Tao Yue // // See LICEN...
34.716981
82
0.628804
[ "BSD-3-Clause" ]
0x00000FF/PsdPlugin
PsdFile/PsdBlendMode.cs
1,842
C#
#region Copyright // MIT License // // Copyright (c) 2020 Ivan Bondy // // 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 // ...
36.339623
133
0.720665
[ "MIT" ]
ibondy/ApexLoader
CookieDelegateHandler.cs
1,928
C#
using AnimalCentre.Models.Contracts; using System; using System.Collections.Generic; using System.Text; using System.Linq; namespace AnimalCentre.Models.Services { public abstract class Procedure : IProcedure { protected IList<IAnimal> procedureHistory; protected Procedure() { ...
26.895833
89
0.55151
[ "MIT" ]
borisbotev/SoftUni
C# OOP Basics/10.Exam- AnimalCentre/AnimalCentre/Models/Services/Procedure.cs
1,293
C#
using System.Collections.Generic; using System.Linq; using Gatsby.Analysis.Diagnostics; using Gatsby.Analysis.Syntax.Tree; namespace Gatsby.Analysis.Syntax.Lexer { public sealed class SyntaxToken : SyntaxNode { public SyntaxToken(TokenType kind, int position, string text, object value) { ...
27.689655
83
0.612702
[ "MIT" ]
sample1561/gatsby
Gatsby/Analysis/Syntax/Lexer/SyntaxToken.cs
803
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...
46.621145
283
0.584711
[ "Apache-2.0" ]
5u5hma/aws-tools-for-powershell
modules/AWSPowerShell/Cmdlets/EC2/Basic/Get-EC2FleetHistory-Cmdlet.cs
21,166
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace RocketMQ.Client//.Protocal.Header { public class QueryTopicConsumeByWhoRequestHeader : CommandCustomHeader { [CFNotNull] public string topic { get; set; } //@O...
20.238095
74
0.677647
[ "MIT" ]
leeveel/RocketMQ.Client
RocketMQ.Client/Protocal/Header/QueryTopicConsumeByWhoRequestHeader.cs
427
C#
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.Diagnostics.ContractsLight; using System.IO; using System.Linq; using System.Threading; using System.Threading.Tasks; using BuildXL....
41.086538
182
0.650363
[ "MIT" ]
socat/BuildXL
Public/Src/Cache/ContentStore/Distributed/Utilities/GrpcFileCopier.cs
4,273
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. /*============================================================ ** ** ** ** ** Purpose: Defines the roo...
38.072243
117
0.585938
[ "MIT" ]
Rayislandstyle/dotnet-coreclr
src/mscorlib/src/System/MarshalByRefObject.cs
10,013
C#
// <auto-generated> // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/v1/spanner.proto // </auto-generated> // Original file comments: // Copyright 2018 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in co...
70.159401
372
0.710771
[ "Apache-2.0" ]
Wackymax/google-cloud-dotnet
apis/Google.Cloud.Spanner.V1/Google.Cloud.Spanner.V1/SpannerGrpc.cs
107,835
C#
using System; using System.IO; using System.Net; using System.Net.Http; using System.Threading.Tasks; namespace BaGet.Protocol { /// <inheritdoc /> public class PackageContentClient : IPackageContentClient { private readonly HttpClient _httpClient; /// <summary> /// Create a new Pa...
28.803571
92
0.618103
[ "MIT" ]
3da/BaGet
src/BaGet.Protocol/PackageContent/PackageContentClient.cs
1,613
C#
// (c) Copyright HutongGames, LLC 2010-2013. All rights reserved. using UnityEngine; namespace HutongGames.PlayMaker.Actions { [ActionCategory("PlayerPrefs")] [Tooltip("Sets the value of the preference identified by key.")] public class PlayerPrefsSetInt : FsmStateAction { [CompoundArray("Count", "Key", "...
26.310345
128
0.644823
[ "Apache-2.0" ]
Drestat/ARfun
ARfun/Assets/PlayMaker/Actions/PlayerPrefs/PlayerPrefsSetInt.cs
763
C#
/* * Copyright (c) 2008, DIaLOGIKa * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * notice, this list of...
36.87013
87
0.643889
[ "BSD-3-Clause" ]
datadiode/B2XTranslator
src/Common/OpenXmlLib/ExternalRelationship.cs
2,839
C#
namespace XpressTest; public class ResultMockVerifierCreator<TSut, TSutResult> : IResultMockVerifierCreator<TSut, TSutResult> where TSut : class { private readonly IMockCountVerifierCreatorComposer<IResultAsserter<TSut, TSutResult>> _mockCounterVerifierCreatorComposer; private readonly IMockCou...
34.117647
136
0.696983
[ "MIT" ]
JonnyOrman/XpressTest
Code/XpressTest/ResultMockVerifierCreator.cs
2,320
C#
using test; using Xamarin.Forms; namespace PopupMediaCamera { public class App : Application { public App() { MainPage = new NavigationPage(new Page1()); } protected override void OnStart() { // Handle when your app starts } pro...
21.675
58
0.493656
[ "MIT" ]
AndreiMisiukevich/MediaPlugin
tests/PopupMediaCamera/App.cs
869
C#