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
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:2.0.50727.3603 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //---...
21.867133
123
0.424304
[ "Apache-2.0" ]
fakit/OSM-AutoCAD
Mustern/core-releases-v1.3/OsmSharp/IO/Xml/Gpx/v1_1/gpx.cs
31,272
C#
#region copyright // ----------------------------------------------------------------------- // <copyright file="TypeEx.cs" company="Akka.NET Team"> // Copyright (C) 2015-2016 AsynkronIT <https://github.com/AsynkronIT> // Copyright (C) 2016-2016 Akka.NET Team <https://github.com/akkadotnet> // </copyright> ...
40.905747
139
0.55367
[ "Apache-2.0" ]
Aaronontheweb/Hyperion
src/Hyperion/Extensions/TypeEx.cs
17,794
C#
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using UnityEngine; using VRGIN.Helpers; namespace VRGIN.Core { public class InitializeCameraEventArgs : EventArgs { public readonly Camera Camera; public readonly Camera Blueprint; public Init...
33.778689
168
0.524448
[ "MIT" ]
Riqorm/PlayHomeVR
VRGIN/VRGIN/Core/VRCamera.cs
16,486
C#
// This file is auto-generated, don't edit it. Thanks. using System; using System.Collections.Generic; using System.IO; using Tea; namespace AlibabaCloud.SDK.Dingtalkattendance_1_0.Models { public class CheckWritePermissionRequest : TeaModel { /// <summary> /// corpId /// </summary> ...
23.52
57
0.54932
[ "Apache-2.0" ]
yndu13/dingtalk-sdk
dingtalk/csharp/core/attendance_1_0/Models/CheckWritePermissionRequest.cs
1,176
C#
// *** WARNING: this file was generated by the Pulumi SDK Generator. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; namespace Pulumi.Azur...
31.222222
102
0.647687
[ "Apache-2.0" ]
pulumi/pulumi-azure-nextgen
sdk/dotnet/Cdn/V20200415/Inputs/DeliveryRuleRequestBodyConditionArgs.cs
1,124
C#
// *** WARNING: this file was generated by the Pulumi SDK Generator. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; namespace Pulumi.Azur...
31.704545
105
0.653047
[ "Apache-2.0" ]
pulumi-bot/pulumi-azure-native
sdk/dotnet/EventGrid/V20201015Preview/Outputs/StorageBlobDeadLetterDestinationResponse.cs
1,395
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. #nullable disable using System.Collections.Generic; using System.Collections.Immutable; using System.Diagnostics; ...
39.205047
182
0.6215
[ "MIT" ]
Acidburn0zzz/roslyn
src/Compilers/CSharp/Portable/Emitter/NoPia/EmbeddedType.cs
12,430
C#
/// OSVR-Config /// /// <copyright> /// Copyright 2016 Sensics, 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 /// /// Un...
32.925926
101
0.584927
[ "Apache-2.0" ]
JeroMiya/OSVR-Config
src/OSVR.Config/Models/OSVRInclude.cs
1,780
C#
// SPDX-License-Identifier: Apache-2.0 // Licensed to the Ed-Fi Alliance under one or more agreements. // The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. // See the LICENSE and NOTICES files in the project root for more information. using System; namespace MappingEdu.Service.Model...
35.928571
86
0.765408
[ "Apache-2.0" ]
Ed-Fi-Exchange-OSS/MappingEDU
src/MappingEdu.Service.Model/SystemItemCustomDetail/SystemItemCustomDetailEditModel.cs
505
C#
#pragma checksum "..\..\..\..\Views\SettingsView.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "CAE44CBFC038EF4BF34784E0D55AE29C" //------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.42000 // // ...
38.924051
141
0.624878
[ "MIT" ]
Nymini/Vlive-Streamers
Vlive Stream Machine 3/obj/x64/Debug/Views/SettingsView.g.i.cs
6,152
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...
38.444444
185
0.56516
[ "Apache-2.0" ]
virajs/aws-sdk-net
AWSSDK_DotNet35/Amazon.EC2/Model/Internal/MarshallTransformations/ImportVolumeTaskDetailsUnmarshaller.cs
3,806
C#
using System; using System.Collections.Generic; using System.IO; using ProtoBuf; using ProtoBuf.Meta; using NUnit.Framework; namespace Examples.Issues { // note that some additional changes were needed beyond what is shown on SO // in order to fully test standalone compilation / PEVerify; mainly due...
32.955696
109
0.529095
[ "Apache-2.0" ]
0xec/protobuf-net
Examples/Issues/SO11705351.cs
5,209
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; namespace Asakuma { public class RedirectToLevel : MonoBehaviour { public static int redirectToLevel = 3; public static int nextLevel; void Update() { ...
20.363636
56
0.607143
[ "MIT" ]
asakuma3/SwordWolf
Assets/Scripts/UI/StartMenu/RedirectToLevel.cs
448
C#
//using System; //using System.Text; using UnityEngine; using UnityEngine.UI; using UnityEngine.Events; using HarmonyLib; namespace LSTMMod { public class LSTMNavi : NaviLineDelegate { //ガス惑星手動採集ボタンをコピーして横にずらす public static GameObject MakeNaviPop(LSTMNavi navi) { ...
33.384106
119
0.539179
[ "Unlicense" ]
hetima/DSP_LSTM
LSTM/LSTMNavi.cs
5,183
C#
using System.Threading.Tasks; using Microsoft.AspNetCore.Http; namespace MisturTee.Config.Claims { public class ClaimValidationConfig { public bool IsRequired { get; set; } public string ClaimName { get; set; } public bool AllowNullOrEmpty { get; set; } public bool ValueMustBeE...
36.75
116
0.647392
[ "MIT" ]
abdulbeard/aspnet-core-webapi-auth-middleware
MisturTee/Config/Claims/ClaimValidationConfig.cs
884
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/winioctl.h in the Windows SDK for Windows 10.0.19041.0 // Original source is Copyright © Microsoft. All rights reserved. using NUnit.Framework; using Syst...
37.861111
145
0.66471
[ "MIT" ]
Ethereal77/terrafx.interop.windows
tests/Interop/Windows/um/winioctl/FAT_STATISTICSTests.cs
1,365
C#
// *** WARNING: this file was generated by crd2pulumi. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; namespace Pulumi.Kubernetes.Types.O...
28.071429
114
0.684478
[ "Apache-2.0" ]
pulumi/pulumi-kubernetes-crds
operators/eclipse-che/dotnet/Kubernetes/Crds/Operators/EclipseChe/Org/V1/Outputs/CheClusterSpecServerDevfileRegistryIngress.cs
786
C#
namespace FabianPizzas.Migrations { using FabianPizzas.Models; using System; using System.Collections.Generic; using System.Data.Entity; using System.Data.Entity.Migrations; using System.Linq; internal sealed class Configuration : DbMigrationsConfiguration<FabianPizzas.Data.FabianPizzasCont...
31.439394
106
0.319518
[ "MIT" ]
Fabho/FabianPizzas
Migrations/Configuration.cs
2,075
C#
#region License // Distributed under the MIT License // ============================================================ // Copyright (c) 2016 Hotcakes Commerce, LLC // // Permission is hereby granted, free of charge, to any person obtaining a copy of this software // and associated documentation files (the "Software"),...
38.393443
123
0.598207
[ "MIT" ]
ketangarala/core
Libraries/Hotcakes.Commerce/Catalog/ProductReview.cs
7,026
C#
using FortBlast.Extras; using FortBlast.ProceduralTerrain.Generators; using FortBlast.ProceduralTerrain.ProceduralTerrainCreators; using FortBlast.ProceduralTerrain.Settings; using UnityEngine; namespace FortBlast.ProceduralTerrain.DataHolders.TerrainChunkData { public class Trees { private readonly Cl...
33.844444
102
0.569599
[ "MIT" ]
Rud156/FortBlast
Assets/Scripts/Procedular Terrain/Data Holders/Terrain Chunk Data/Trees.cs
3,046
C#
// // DO NOT MODIFY! THIS IS AUTOGENERATED FILE! // namespace Xilium.CefGlue { using System; using System.Collections.Generic; using System.Diagnostics; using System.Runtime.InteropServices; using Xilium.CefGlue.Interop; // Role: PROXY public sealed unsafe partial class CefDomNode : IDi...
22.853333
71
0.475496
[ "MIT" ]
git-thinh/Xilium.CefGlue-lvcef-39.0
xilium.cefglue/CefGlue/Classes.g/CefDomNode.g.cs
1,714
C#
using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using MyCompany.EntityFrameworkCore; namespace MyCompany.Migrations { [DbContext(typeof(MyCompanyDbContext))] [Mig...
35.39631
117
0.429924
[ "MIT" ]
StefanKoenen/aspnetboilerplate-5844
aspnet-core/src/MyCompany.EntityFrameworkCore/Migrations/20170608053244_Upgraded_To_Abp_2_1_0.Designer.cs
47,962
C#
// Copyright 2007-2016 Chris Patterson, Dru Sellers, Travis Smith, et. al. // // 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...
53.488584
155
0.641796
[ "Apache-2.0" ]
zengdl/MassTransit
src/MassTransit.AutomatonymousIntegration/RequestExtensions.cs
11,716
C#
using System; using System.Collections.Generic; using System.Linq; namespace LeetCode.Naive.Problems { /// <summary> /// Problem: https://leetcode.com/problems/number-of-paths-with-max-score /// Submission: https://leetcode.com/submissions/detail/435597901/ /// </summary> internal class P1301...
25.398058
79
0.389908
[ "MIT" ]
viacheslave/leetcode-naive
c#/Problems/P1301.cs
2,616
C#
using System; using System.Collections.Generic; using System.Linq; using System.Security.Cryptography; using System.Text; using System.Web; namespace FashionStore.App_Code { public class MD5 { #region Mã hoá private static string Encrypt(string toEncrypt, bool useHashing) { ...
38.269841
120
0.604728
[ "MIT" ]
nguyenthienthanh/FashionStore
FashionStore/App_Code/MD5.cs
2,415
C#
using Content.Server.Doors.Components; using Content.Shared.Doors; using Content.Shared.Notification.Managers; using Robust.Shared.GameObjects; using Robust.Shared.Localization; namespace Content.Server.Doors.Systems { public class FirelockSystem : EntitySystem { public override void Initialize() ...
40.657143
126
0.674631
[ "MIT" ]
Ccw2007/space-station-14
Content.Server/Doors/Systems/FirelockSystem.cs
2,848
C#
using Tibia.Addresses; namespace Tibia { public partial class Version { public static void SetVersion842() { BattleList.Start = 0x631DF0; BattleList.End = 0x631DF0 + 0xA0 * 250; BattleList.StepCreatures = 0xA0; BattleList.MaxCreatures =...
43.316406
99
0.561728
[ "MIT" ]
BeldenGit/tibiaapi
tibiaapi/Addresses/Versions/Version842.cs
11,089
C#
using Autofac; using Microsoft.Build.Locator; using NuGet.Credentials; using Serilog; using System; using System.Linq; using System.IO; using System.Threading; using System.Threading.Tasks; using LSP = OmniSharp.Extensions.LanguageServer; using NuGetNullLogger = NuGet.Common.NullLogger; namespace MSBuildProjectTools...
32.563536
115
0.54547
[ "MIT" ]
tintoy/msbuild-project-tools-server
src/LanguageServer/Program.cs
5,896
C#
// // RegisteredDisposeScript.cs // // Author: // Igor Zelmanovich <igorz@mainsoft.com> // // (C) 2008 Mainsoft, Inc. http://www.mainsoft.com // // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in th...
30.254237
94
0.739496
[ "MIT" ]
zlxy/Genesis-3D
Engine/extlibs/IosLibs/mono-2.6.7/mcs/class/System.Web.Extensions/System.Web.UI/RegisteredDisposeScript.cs
1,785
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; public class ChangeScene : MonoBehaviour { public void OnTriggerEnter(Collider other) { SceneManager.LoadScene("City"); } }
17.733333
46
0.733083
[ "MIT" ]
AcquaWh/oculus_spaceapps
Assets/Scripts/ChangeScene/ChangeScene.cs
268
C#
using Microsoft.EntityFrameworkCore; using Nssol.Platypus.Infrastructure; using Nssol.Platypus.Models.TenantModels; using System; using System.Linq; using System.Linq.Expressions; using System.Threading.Tasks; namespace Nssol.Platypus.DataAccess.Core { /// <summary> /// テナント向けテーブルにアクセスするための基本リポジトリクラス /// ...
33.39604
192
0.542484
[ "Apache-2.0" ]
yonetatuu/kamonohashi
web-api/platypus/platypus/DataAccess/Core/RepositoryForTenantBase.cs
21,237
C#
/// File Name: EnemyControl.cs /// File Author(s): Lincoln Schroeder /// File Purpose: Every GameObject that is representing an enemy has this script attached. This script is used /// for monitoring and changing enemy behavior. It also stores necessary data for the enemy, such as health and /// damage. /// /// Date L...
27.159091
111
0.645188
[ "MIT" ]
lincolnsch99/GameOff2019SourceCode
Assets/Scripts/Powerups/OverdriveControl.cs
1,197
C#
using System; namespace WireMock.Admin.Mappings { /// <summary> /// MappingModel /// </summary> [FluentBuilder.AutoGenerateBuilder] public class MappingModel { /// <summary> /// Gets or sets the unique identifier. /// </summary> public Guid? Guid { get; set; } ...
25.820896
86
0.506936
[ "Apache-2.0" ]
qq362220083/WireMock.Net
src/WireMock.Net.Abstractions/Admin/Mappings/MappingModel.cs
1,732
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Reflection; using System.Threading.Tasks; using System.Runtime.InteropServices; namespac...
37.904348
142
0.527644
[ "MIT" ]
Acidburn0zzz/corefx
src/Common/tests/System/Diagnostics/RemoteExecutorConsoleApp/RemoteExecutorConsoleApp.cs
4,359
C#
using Alba.CsConsoleFormat.Fluent; using System; using System.Collections.Generic; using System.Configuration; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace System.Data { public static class PrintDataExtensions { #region Print Columns public st...
41.00172
276
0.572947
[ "Apache-2.0" ]
sookeke/DataMasker.Net5
DataClassification/DataClassification/PrintDataExtensions.cs
47,709
C#
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Net; using System.Net.Http; using System.Text; using Sy...
52.491479
255
0.61896
[ "MIT" ]
wsugarman/azure-functions-durable-extension
test/Common/HttpApiHandlerTests.cs
77,007
C#
using Bussiness; using log4net; using SqlDataProvider.Data; using System; using System.Collections.Generic; using System.Reflection; using System.Threading; namespace Game.Server.Managers { public class ConsortiaLevelMgr { private static readonly ILog log = LogManager.GetLogger(MethodBase.GetCurrentMethod().Declar...
19.247706
103
0.659199
[ "MIT" ]
HuyTruong19x/DDTank4.1
Source Server/SourceQuest4.5/Bussiness/Game.Server.Managers/ConsortiaLevelMgr.cs
2,098
C#
using Domain.Entities; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; namespace Infrastructure.Persistence.Configurations; public class UserEntityConfiguration : IEntityTypeConfiguration<User> { public void Configure(EntityTypeBuilder<User> builder) { build...
30.142857
69
0.767773
[ "MIT" ]
lnans/personal.budget
src/Infrastructure/Persistence/Configurations/UserEntityConfiguration.cs
422
C#
// AccountStatus public enum AccountStatus { Active, AwaitingParentalConsent, DeleteRequested, Unknown, Deleted }
11.9
25
0.789916
[ "MIT" ]
smdx24/CPI-Source-Code
Disney.Mix.SDK/AccountStatus.cs
119
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using AmbientSoundsTuner2.SoundPack; using AmbientSoundsTuner2.SoundPack.Migration; using UnityEngine; namespace AmbientSoundsTuner2.Sounds { /// <summary> /// A static class that contains various methods related to sounds p...
37.217573
101
0.488252
[ "MIT" ]
bloodypenguin/csl-ambient-sounds-tuner
CSL Ambient Sounds Tuner/Sounds/Utils/SoundPatchUtils.cs
8,897
C#
using System; namespace TheRectangles { class Program { static void Main(string[] args) { Grid grid = new Grid(); Rectangle rectangle01 = new Rectangle("Rectangle 01", "Red", ...
36.244444
96
0.483139
[ "MIT" ]
matheusmorcinek/TheRectangles
TheRectangles/TheRectangles/Program.cs
1,633
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.Generic; using System.Diagnostics; using System.Threading; using Microsoft.CodeAnalysis.CSharp.Syntax; using Roslyn.Utilities; name...
40.85782
161
0.611646
[ "Apache-2.0" ]
20chan/roslyn
src/Compilers/CSharp/Portable/Symbols/Source/GlobalExpressionVariable.cs
8,623
C#
// If using dropbox remember to add the &dl=1 to trigger a download var file = Download("https://www.dropbox.com?....&dl=1");
42
67
0.690476
[ "Apache-2.0" ]
Jay-Jay-D/Documentation
02 Algorithm Reference/04 Importing Custom Data/04 Loading Reference Data/01 code.cs
126
C#
namespace Wirehome.Core { public static class WirehomeCoreVersion { public static string Version => "1.1.0"; } }
16.75
48
0.634328
[ "Apache-2.0" ]
SeppPenner/Wirehome.Core
Wirehome.Core/WirehomeCoreVersion.cs
136
C#
#nullable enable using System; using Robust.Shared.Serialization; namespace Content.Shared.Cabinet { [Serializable, NetSerializable] public enum ItemCabinetVisuals : byte { IsOpen, ContainsItem } }
16.571429
41
0.693966
[ "MIT" ]
Bright0/space-station-14
Content.Shared/Cabinet/ItemCabinetVisuals.cs
234
C#
/**************************************************************************** *项目名称:SAEA.MVCTest.Controllers *CLR 版本:4.0.30319.42000 *机器名称:WALLE-PC *命名空间:SAEA.MVCTest.Controllers *类 名 称:OrmController *版 本 号:V1.0.0.0 *创建人: yswenli *电子邮箱:yswenli@outlook.com *创建时间:2021/3/12 13:52:34 *描述: *================================...
26.529412
82
0.52476
[ "Apache-2.0" ]
dsfop/SAEA
Src/SAEA.MVCTest/Controllers/OrmController.cs
1,521
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using Android.App; // 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...
34.935484
84
0.746999
[ "Apache-2.0" ]
akonsand/Peer.Net
WebRTCBindings/Properties/AssemblyInfo.cs
1,086
C#
/* * This file is part of WotoGUI Project (https://github.com/RudoRonuma/SibylClient). * Copyright (c) 2021 WotoGUI Authors. * * This library is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, version 3. *...
31.130841
84
0.648454
[ "MIT" ]
MinistryOfWelfare/SibylClient
SibylClient/Client/AppHostProvider.cs
3,331
C#
/* **************************************************************************** * * Copyright (c) Microsoft Corporation. * * This source code is subject to terms and conditions of the Apache License, Version 2.0. A * copy of the license can be found in the License.html file at the root of this distribution...
40.410866
137
0.524704
[ "Apache-2.0" ]
mousetraps/xtvs-common
Product/SharedProject/CommonUtils.cs
23,804
C#
using System; using System.Collections.Generic; using System.Text; using System.Net; using System.Net.Sockets; namespace LumiSoft.Net.UPnP.Client { /// <summary> /// This class implements UPnP client. /// </summary> public class UPnP_Client { /// <summary> /// Default...
51.299595
151
0.54163
[ "MIT" ]
bhuebschen/feuerwehrcloud-deiva
Mail/Net/UPnP/Client/UPnP_Client.cs
12,689
C#
/* Copyright (C) 2018-2019 de4dot@gmail.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distr...
53.013889
182
0.780194
[ "MIT" ]
NIKJOO/iced
src/csharp/Intel/Generator/Tables/CSharp/CSharpDictGenerator.cs
3,817
C#
using Newtonsoft.Json; using Newtonsoft.Json.Linq; using StructuredXmlEditor.Definition; using StructuredXmlEditor.View; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Collections.Specialized; using System.IO; using System.Linq; using System.Text; using System.Text.R...
26.342466
145
0.542334
[ "Apache-2.0" ]
moggabor/StructuredXmlEditor
StructuredXmlEditor/Data/XmlDataModel.cs
21,157
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class MusicRepeater : MonoBehaviour { /* A very gnarly, hard-coded way to loop a piece after a certain intro period * Could be expanded by doing calculations based on BPM of intro (as long as it was constant), * # of ...
30.674419
115
0.66793
[ "Unlicense" ]
GamesByMoonlight/HeartHome
Assets/Scripts/MusicRepeater.cs
1,321
C#
using System; using System.Collections.Generic; using System.Linq; using System.Windows.Forms; namespace RubiksCube { static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void Main() { A...
22.904762
65
0.600832
[ "MIT" ]
davedissian/archive
comp4-rubikscube/RubiksCube/Program.cs
483
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.Security.Permissions; namespace System.Diagnostics { #if NET5_0_OR_GREATER [Obsolete(Obsoletions.CodeAccessSecurityMessage, DiagnosticId = Obsoletions.CodeAccessSec...
41.55
147
0.777377
[ "MIT" ]
333fred/runtime
src/libraries/System.Security.Permissions/src/System/Diagnostics/EventLogPermission.cs
831
C#
using Stl.RegisterAttributes; namespace Stl.Tests.CommandR.Services; [RegisterService, RegisterCommandHandlers] public class LogCommandHandler : ServiceBase, ICommandHandler<LogCommand> { public LogCommandHandler(IServiceProvider services) : base(services) { } public Task OnCommand( LogCommand comman...
31.090909
83
0.726608
[ "MIT" ]
ScriptBox21/Stl.Fusion
tests/Stl.Tests/CommandR/Services/LogCommandHandler.cs
684
C#
/* * Copyright 2019 faddenSoft * * 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 ...
64.311518
92
0.728905
[ "Apache-2.0" ]
absindx/6502bench
SourceGen/Res/Strings.xaml.cs
24,569
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; [System.Serializable] public class TowerBlueprint { public GameObject towerPrefab; public int coinsCost; public int woodCost; public int populationCost; public int stoneCost; public int oreCost; public int hqLevelRequired; }
20.866667
33
0.808307
[ "MIT" ]
Eclair/LD38-TurtleHero
Assets/Scripts/Blueprints/TowerBlueprint.cs
315
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TaskBase.Data.NotificationService { public record NotificationModel(Guid Id, string Title, string Description); }
22.363636
79
0.804878
[ "MIT" ]
t-rolfin/TaskBase
src/TaskBase.Data/NotificationService/NotificationModel.cs
248
C#
// SPDX-License-Identifier: Apache-2.0 // Licensed to the Ed-Fi Alliance under one or more agreements. // The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. // See the LICENSE and NOTICES files in the project root for more information. namespace GenerateSecurityGraphs.Models.Query { ...
30.842105
86
0.708191
[ "Apache-2.0" ]
gmcelhanon/Ed-Fi-ODS-1
Utilities/GenerateSecurityGraphs/GenerateSecurityGraphs/Models/Query/ResourceSegmentData.cs
586
C#
using System; using System.Collections.Generic; using Core.Block.BlockInventory; using Core.Block.Blocks.Miner; using Core.Block.Config; using Core.Block.Config.LoadConfig.Param; using Core.Electric; using Core.Item; using Core.Ore; using Core.Update; using Game.World.Interface.Util; using Microsoft.Extensions.Dependen...
37.326087
137
0.658998
[ "MIT" ]
moorestech/moorestech
Test/CombinedTest/Core/MinerMiningTest.cs
3,768
C#
using Microsoft.EntityFrameworkCore; using System; using System.Linq; using System.Threading; using System.Threading.Tasks; namespace Wei.Repository { public class BaseDbContext : DbContext { public BaseDbContext(DbContextOptions options) : base(options) { } protected overrid...
33.383562
135
0.533032
[ "MIT" ]
Claire-qin/Wei.Repository
src/Wei.Repository/Impl/BaseDbContext.cs
2,439
C#
using System; using System.Xml.Serialization; namespace Niue.Alipay.Domain { /// <summary> /// KbAdvertCommissionClausePercentage Data Structure. /// </summary> [Serializable] public class KbAdvertCommissionClausePercentage : AopObject { /// <summary> /// 分佣比例结束范围(100以内精度2位的非负小...
26.189189
63
0.582043
[ "MIT" ]
P79N6A/abp-ant-design-pro-vue
Niue.Alipay/Domain/KbAdvertCommissionClausePercentage.cs
1,107
C#
namespace Lexs4SearchRetrieveWebService { /// <remarks/> [System.Xml.Serialization.XmlIncludeAttribute(typeof(TextSearchRequestMessageType))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(StructuredSearchRequestMessageType))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(D...
38.685714
101
0.677253
[ "Apache-2.0" ]
gtri-iead/LEXS-NET-Sample-Implementation-4.0
LEXS Search Retrieve Service Implementation/LexsSearchRetrieveCommon/SearchRequestMessageType.cs
1,354
C#
//**************************************************************** // Adapted from Tim Sneath (Microsoft) // // Author: Yang Kok Wah // // Using Win32 API to implement a way to hide inputed characters // From the console. // //**************************************************************** using System; using System...
29.685393
92
0.694928
[ "MIT" ]
SeppPenner/ChatNew
src/ChatClient/Backup/PasswordConsole.cs
2,642
C#
using System; using UnityEngine; using UnityEngine.Rendering; namespace SleeplessOwl.URPPostProcessing { [Serializable, VolumeComponentMenu("SleeplessOwl PostProcessing/World Position")] public sealed class WorldPositionVolume : PostProcessVolumeComponent { public BoolParameter ColorAddMod...
41.020833
136
0.680041
[ "MIT" ]
YuSiangLai/URPCustomPostProcessing
VolumeComponent/WorldPositionVolume.cs
1,969
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<TParam> : global::Microsoft.AspNetCore.Co...
30.949367
219
0.692434
[ "MIT" ]
dotnet/razor-compiler
src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/GenericComponentBindToGenericComponent_InferredType_WithAfter_Action/TestComponent.codegen.cs
2,445
C#
using System; namespace ECS { /// <summary>Component interface which describes the functions a component /// should implement.</summary> public interface IComponent { /// <summary>Gets the type of the component value.</summary> Type GetComponentType(); /// <summary>The name o...
34.297297
122
0.619385
[ "MIT" ]
little512/cs-ecs
ECS/Component.cs
1,269
C#
using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Spectrum.Net.Core.Converters; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace Spectrum.Net.Core.Message.Create { public class ContentBlock { ...
30.476923
91
0.577991
[ "MIT" ]
dolkensp/Spectrum.Net
Spectrum.Net.Core/Message/Create/ContentBlock.cs
1,983
C#
using UnityEngine; public class BTN_Server_EU : MonoBehaviour { private void OnClick() { PhotonNetwork.Disconnect(); FengGameManagerMKII.OnPrivateServer = false; if (Guardian.Networking.NetworkHelper.App == Guardian.Networking.PhotonApplication.AoTTG2) { PhotonNetwo...
37.590909
183
0.708585
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
suhtiva/guardian
Assembly-CSharp/FengLi/Interface/Buttons/BTN_Server_EU.cs
827
C#
namespace MethodParameter { class Test { public void TestMethod(Expected e) { } } class Expected { } }
10.857143
42
0.493421
[ "MIT" ]
OptiNav/ReferenceAnalyzer
src/ReferenceAnalyzer.Core.Tests/TestFiles/MethodParameter.cs
152
C#
namespace Theatre.Data { using Microsoft.EntityFrameworkCore; using Theatre.Data.Models; public class TheatreContext : DbContext { public TheatreContext() { } public TheatreContext(DbContextOptions options) : base(options) { } protected override void OnConfiguring...
24.612903
85
0.591088
[ "MIT" ]
georgy-kirilov/Dobri-EFCore-Exam
src/Skeleton/Theatre/Data/TheatreContext.cs
765
C#
// Copyright (c) Josef Pihrt. 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 Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; using Micro...
49.494118
205
0.70145
[ "Apache-2.0" ]
joebone/Roslynator
src/Formatting.Analyzers/CSharp/AddNewLineBeforeConditionalOperatorInsteadOfAfterItOrViceVersaAnalyzer.cs
4,209
C#
/******************************************************************************* * Copyright (C) 2015-2016 AgGateway and ADAPT Contributors * Copyright (C) 2015-2016 Deere and Company * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Publi...
19.124626
91
0.623605
[ "EPL-1.0" ]
AnkitGupta777/ADAPT
source/Representation/RepresentationSystem/RepresentationList.cs
19,182
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Note : MonoBehaviour { bool one; int random; //ノーツのスピードを入れておく変数 public float note1speed; public float note2speed; public float note3speed; public float note4speed; // Use this for initialization...
29.009346
67
0.527384
[ "MIT" ]
dependd/Fight-Animal
Assets/Scripts/Note.cs
3,332
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _09.ExtremeList { class Program { // 9. Списък от крайности static void Main(string[] args) { var nums = Console.ReadLine().Split().Select(int.Parse...
28.236842
77
0.491146
[ "MIT" ]
dimitarminchev/ITCareer
02. Programming/2019/2019.02.16/09. ExtremeList/Program.cs
1,183
C#
using Microsoft.AspNetCore.Mvc; using System; using System.Linq; using System.Threading.Tasks; using System.Collections.Generic; using Xero.NetStandard.OAuth2.Model.Accounting; using Xero.NetStandard.OAuth2.Token; using Xero.NetStandard.OAuth2.Api; using Xero.NetStandard.OAuth2.Config; using Xero.NetStandard.OAuth2.Cli...
29.522124
104
0.678957
[ "MIT" ]
XeroAPI/Xero-NetStandard-OAuth2-App
XeroNetStandardApp/Controllers/ContactsInfoController.cs
3,336
C#
using System; using System.Dynamic; using RazorLight.Extensions; using System.Reflection; using System.Linq; namespace RazorLight { /// <summary> /// Stores information about model of the template page /// </summary> public class ModelTypeInfo { /// <summary> /// Indicates whether given model is not a dynami...
26.153846
160
0.670588
[ "Apache-2.0" ]
mcintyre321/RazorLight
src/RazorLight/ModelTypeInfo.cs
2,042
C#
using System.Collections.Generic; using System.Linq; using System.Security.Claims; using Abp.Extensions; namespace Book.Identity { public class ExternalLoginInfoHelper { public static (string name, string surname) GetNameAndSurnameFromClaims(List<Claim> claims) { string name = null...
34.09434
99
0.481461
[ "MIT" ]
yangcs2016/phoneBooks
aspnet-core/src/Book.Web.Core/Identity/ExternalLoginInfoHelper.cs
1,809
C#
using Assets.Code.Bon.Socket; namespace Assets.Code.Bon.Interface { public interface IStringSampler { string GetString(OutputSocket outSocket); } }
15.5
43
0.774194
[ "MIT" ]
aphex-/BrotherhoodOfNode
Assets/Code/Bon/Interface/IStringSampler.cs
157
C#
using NHapi.Base.Parser; using NHapi.Base; using NHapi.Base.Log; using System; using System.Collections.Generic; using NHapi.Model.V25.Segment; using NHapi.Model.V25.Datatype; using NHapi.Base.Model; namespace NHapi.Model.V25.Group { ///<summary> ///Represents the RSP_Z88_COMMON_ORDER Group. A Group is an ordered col...
28.330233
158
0.670497
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
AMCN41R/nHapi
src/NHapi.Model.V25/Group/RSP_Z88_COMMON_ORDER.cs
12,182
C#
using System.Collections.Generic; namespace JeffSiver.ObjectPrinter.Tests.Objects { public class ComplexEnumerable { public int Id { get; set; } public string Name { get; set; } public IEnumerable<string> Values { get; set; } public IEnumerable<Simple> SimpleList { get; set; } ...
28.125
67
0.540741
[ "MIT" ]
jeffsiver/DotNetPrettyPrint
ObjectPrinter.Tests/Objects/ComplexEnumerable.cs
677
C#
using System; using System.Collections.Generic; using System.Threading.Tasks; using Codeworx.Identity.OAuth; using Codeworx.Identity.View; using Microsoft.AspNetCore.Http; using Microsoft.Net.Http.Headers; namespace Codeworx.Identity.AspNetCore.OAuth.Binder { public class AuthorizationSuccessResponseBinder : Resp...
35.611111
110
0.563807
[ "MIT" ]
SteSinger/identity
src/Codeworx.Identity.AspNetCore/OAuth/Binder/AuthorizationSuccessResponseBinder.cs
3,207
C#
namespace Nancy.Tests.Unit.Extensions { using System.Collections.Generic; using Nancy.Extensions; using Fakes; using Xunit; public class RequestExtensionsFixture { [Fact] public void IsAjaxRequest_should_return_true_if_request_is_ajax() { // Give...
29.252747
92
0.510894
[ "MIT" ]
Adalyat/Nancy
src/Nancy.Tests/Unit/Extensions/RequestExtensionsFixture.cs
2,664
C#
using System.ComponentModel.DataAnnotations; namespace EHospital.Authorization.Model.Models { /// <summary> /// Db secrets /// </summary> public class Secrets { [Key] public int Id { get; set; } [Required(ErrorMessage = "Password should be entered.")] [StringLength...
27.6
124
0.608696
[ "MIT" ]
Kropisha/EHospital.Authorization
EHospital.Authorization.Model/Models/Secrets.cs
554
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.Win32.SafeHandles; using System; using System.Runtime.InteropServices; internal partial class Inter...
34.588235
124
0.760204
[ "MIT" ]
06needhamt/runtime
src/libraries/Common/src/Interop/Windows/Kernel32/Interop.SetProcessWorkingSetSizeEx.cs
588
C#
using System.Net.Http; using System.Threading.Tasks; using LinkedMink.Web.EnvironManager.ViewModels; using Microsoft.Extensions.Logging; namespace LinkedMink.Web.EnvironManager.Services { public class HardwareDeviceStatusService : IHardwareDeviceStatusService { public HardwareDeviceStatusService( ...
31.090909
97
0.532749
[ "MIT" ]
LinkedMink/environ-manager-server
LinkedMink.Web.EnvironManager/Services/HardwareDeviceStatusService.cs
1,712
C#
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ using System; using System.Thr...
32.488889
98
0.569767
[ "MIT" ]
Bhaskers-Blu-Org2/service-fabric-backup-explorer
src/Microsoft.ServiceFabric.ReliableCollectionBackup/RestServer/Controllers/ExitController.cs
1,462
C#
using System; using System.Globalization; using System.Linq; using System.Reflection; namespace FooRESTApi.Areas.HelpPage.ModelDescriptions { internal static class ModelNameHelper { // Modify this to provide custom model name mapping. public static string GetModelName(Type type) { ...
39.972222
140
0.635858
[ "MIT" ]
sameerkapps/Upgrade-.csproj
FooRESTApi/Areas/HelpPage/ModelDescriptions/ModelNameHelper.cs
1,439
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: AssemblyTit...
38.486486
85
0.72823
[ "MIT" ]
AscenKeeprov/Programming-Basics
Exercise1-FirstSteps/Expression/Properties/AssemblyInfo.cs
1,427
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. namespace StarkPlatform.Compiler.Operations { /// <summary> /// Represents an operation that drops the resulting value and the type of the underlying...
34.346154
161
0.641657
[ "BSD-2-Clause", "MIT" ]
encrypt0r/stark
src/compiler/StarkPlatform.Compiler/Operations/IExpressionStatementOperation.cs
895
C#
namespace DotEco.Application.Dtos { public class CouponsDto { public int Id { get; set; } public string Name { get; set; } public string Percent { get; set; } public string Description { get; set; } public string Status { get; set; } public string UserFullName { g...
32.3125
51
0.580271
[ "MIT" ]
Pedrolustosa/DotEco
Back/src/DotEco.Application/Dtos/CouponsDto.cs
517
C#
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR) #pragma warning disable using System; using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1; using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf; namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crmf { public class RegTokenControl ...
29.535714
101
0.614268
[ "MIT" ]
Bregermann/TargetCrack
Target Crack/Assets/Best HTTP/Source/SecureProtocol/crmf/RegTokenControl.cs
1,654
C#
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using System.ComponentModel; namespace osu.Game.Rulesets.Scoring { public enum HitResult { /// <summary> /// Indicates that the object...
22.568182
93
0.494461
[ "MIT" ]
anellie/osu
osu.Game/Rulesets/Scoring/HitResult.cs
993
C#
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Xml.Linq; using Hina; using Hina.Collections; using Hina.Reflection; namespace RtmpSharp.IO { partial class AmfWriter { class Amf0 { readonly SerializationCo...
34
135
0.447988
[ "MIT" ]
louisgv/rtmp-sharp
src/IO/AmfWriter.Amf0.cs
12,480
C#
using Newtonsoft.Json; using Newtonsoft.Json.Converters; namespace BurstBotShared.Shared.Models.Game.Serializables; public record GenericJoinRequest { [JsonProperty("client_type")] [JsonConverter(typeof(StringEnumConverter))] public ClientType ClientType { get; init; } [JsonProperty("game_type")]...
31.888889
85
0.719512
[ "BSD-3-Clause" ]
AllBurst/BurstBotNET
BurstBotShared/Shared/Models/Game/Serializables/GenericJoinRequest.cs
574
C#
// <copyright file="MonsterAttribute.cs" company="MUnique"> // Licensed under the MIT License. See LICENSE file in the project root for full license information. // </copyright> namespace MUnique.OpenMU.DataModel.Configuration; using MUnique.OpenMU.AttributeSystem; /// <summary> /// The attribute and value of a mon...
28.96875
124
0.677454
[ "MIT" ]
ADMTec/OpenMU
src/DataModel/Configuration/MonsterAttribute.cs
929
C#
using System.Threading.Tasks; using Microsoft.VisualStudio.TestTools.UnitTesting; using Microsoft.Extensions.Logging; using Annytab.Fortnox.Client.V3; namespace TestProgram { [TestClass] public class TestPrices { #region Variables private Config config { get; set; } #endregion ...
25.625
127
0.478537
[ "MIT" ]
annytab/a-fortnox-client
TestProgram/TestPrices.cs
4,100
C#
using IntoTheCode; using System; using System.Linq; namespace IntoTheCodeExample.DomainLanguage.Executers { public class VariableDef : OperationBase { public string Name; public DefType VariableType; public ExpBase Expression; public override bool Run(Variables runtime) ...
19.954545
68
0.653759
[ "MIT" ]
Krixohub/IntoTheCode
CSharp/IntoTheCodeExample/DomainLanguage/Executers/VariableDef.cs
441
C#
using System.Threading; using Caliburn.Micro; using JD_XI_Editor.Models.Enums.Program.Effects; using JD_XI_Editor.Models.Patches.Program.Effects.Effect1; using JD_XI_Editor.ViewModels.Effects.Assignable; namespace JD_XI_Editor.ViewModels.Effects { internal class Effect1ViewModel : Conductor<Screen> { ...
32.89011
86
0.520548
[ "MIT" ]
Magiczne/JD-XI-Editor
JD-XI Editor/ViewModels/Effects/Effect1ViewModel.cs
2,995
C#