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
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *------------------------------------------------------------...
45.211009
183
0.574675
[ "MIT" ]
Agazoth/azure-powershell
src/Elastic/generated/runtime/UndeclaredResponseException.cs
4,820
C#
using System; using Xunit; namespace Automation.TestFramework.Tests { [TestCase("WithErrors-1")] public class TestCaseWithErrors1 : IDisposable { private bool _isExpectedCalled; private bool _isSummaryCalled; [Summary("Summary - fails")] public void Summary() ...
23.85
54
0.512579
[ "Apache-2.0" ]
D0tNet4Fun/Automation.TestFramework
Automation.TestFramework.Tests/TestCasesWithErrors.cs
1,910
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.486111
173
0.601949
[ "MIT" ]
JoshLmao/Reposed
Reposed/Reposed/Properties/Resources.Designer.cs
2,773
C#
namespace System.Activities.Presentation.Documents { using System.Activities.Presentation; using System.Activities.Presentation.Internal.Properties; using System; using System.Globalization; /// <summary> /// This attribute can be placed on the root of a model /// object graph to specify ...
36.482143
133
0.631914
[ "Apache-2.0" ]
295007712/295007712.github.io
sourceCode/dotNet4.6/ndp/cdf/src/NetFx40/Tools/System.Activities.Presentation/System/Activities/Presentation/Base/Documents/ViewManagerAttribute.cs
2,043
C#
//////////////////////////////////////////////////////////////////////////////// //NUnit tests for "EF Core Provider for LCPI OLE DB" // IBProvider and Contributors. 20.11.2020. using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.S...
26.093567
205
0.562528
[ "MIT" ]
ibprovider/Lcpi.EFCore.LcpiOleDb
Tests/General/Source/Work/DBMS/Firebird/V03_0_0/D1/Query/Operators/SET_001/ExclusiveOr/Complete/NullableInt64/Int64/TestSet_001__fields.cs
8,926
C#
/* =============================================================================== EntitySpaces 2010 by EntitySpaces, LLC Persistence Layer and Business Objects for Microsoft .NET EntitySpaces(TM) is a legal trademark of EntitySpaces, LLC http://ww...
27.966667
79
0.480334
[ "Unlicense" ]
EntitySpaces/EntitySpaces-CompleteSource
Samples/Silverlight_C#/EntitySpaces.SilverlightApplication.Web/Custom/OrderDetails.cs
839
C#
using System; using CMS.FormEngine.Web.UI; using CMS.Helpers; using CMS.UIControls; public partial class CMSAdminControls_UI_Selectors_FaviconSelector : FormEngineUserControl { private bool mEnabled = true; /// <summary> /// Gets or sets if value can be changed. /// </summary> p...
26.477273
102
0.602146
[ "MIT" ]
CMeeg/kentico-contrib
src/CMS/CMSAdminControls/UI/Selectors/FaviconSelector.ascx.cs
2,332
C#
/* Copyright 2017 Coin Foundry (coinfoundry.org) Authors: Oliver Weichhold (oliver@weichhold.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 ...
37.532423
147
0.595344
[ "MIT" ]
EsyWin/miningcore
src/Miningcore/Blockchain/Bitcoin/BitcoinJobManager.cs
10,997
C#
using System; namespace Shop.Module.Shipments.Abstractions.ViewModels { public class ShipmentQueryItemResult { public int Id { get; set; } public int ShipmentId { get; set; } public int OrderItemId { get; set; } public int ProductId { get; set; } /// <summary> ...
21.428571
55
0.518889
[ "MIT" ]
cn-cam/module-shop
src/server/src/Modules/Shop.Module.Shipments.Abstractions/ViewModels/ShipmentQueryItemResult.cs
952
C#
/****************************************************** Writer:Du YanMing Mail:dym880@163.com Create Date:2020/8/18 16:58:35 Functional description: StringOrDelegate ******************************************************/ using System; using System.Collections.Generic; using System.Text; namespace Anno.Rpc.Client.E...
28.384615
75
0.583559
[ "Apache-2.0" ]
duyanming/Anno.Ext
Anno.Rpc.ExtClient/Ext/StringOrDelegate.cs
1,111
C#
using System; namespace Ela.Compilation { internal struct ExprData { internal static readonly ExprData Empty = new ExprData(DataKind.None, 0); internal ExprData(DataKind type, int data) { Type = type; Data = data; } internal readonly DataKind Type; internal readonly int Data; ...
16.3
76
0.665644
[ "MIT" ]
vorov2/ela
Ela/Ela/Compilation/ExprData.cs
328
C#
// Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using ClangSharp.Interop; namespace ClangSharp { public sealed class CXXStaticCastExpr : CXXNamedCastExpr { internal CXXStaticCastEx...
33.5
169
0.752665
[ "MIT" ]
Color-Of-Code/ClangSharp
sources/ClangSharp/Cursors/Exprs/CXXStaticCastExpr.cs
469
C#
using Fungus.Actor.Turn; using Fungus.GameSystem; using Fungus.GameSystem.Data; using System; using UnityEngine; namespace Fungus.Actor.AI { public class NPCMemory : MonoBehaviour, ITurnCounter { private int forgetCounter; private int increaseMemory; private int maxMemory; pub...
23.607143
71
0.526475
[ "MIT" ]
Bozar/FungusCave
Assets/Scripts/NPCMemory.cs
1,324
C#
// SPDX-FileCopyrightText: 2021 Open Energy Solutions Inc // // SPDX-License-Identifier: Apache-2.0 using OpenFMB.Adapters.Core; using OpenFMB.Adapters.Core.Models; using OpenFMB.Adapters.Core.Models.Logging; using OpenFMB.Adapters.Core.Models.Plugins; using OpenFMB.Adapters.Core.Parsers; using OpenFMB.Adapters.Core.U...
36.836905
338
0.473306
[ "Apache-2.0" ]
openenergysolutions/openfmb.adapters.config
OpenFMB.Adapters.Configuration/ConfigurationControl.cs
61,886
C#
using System.Threading; using System.Threading.Tasks; using AutoMapper; using Dfe.Edis.Kafka.Consumer; using Dfe.FE.Interventions.Application.FeProviders; using Dfe.FE.Interventions.Consumer.Ukrlp.Ukrlp; using Dfe.FE.Interventions.Domain.Configuration; using Dfe.FE.Interventions.Domain.FeProviders; using Microsoft.Exte...
38.827586
151
0.688277
[ "MIT" ]
DFE-Digital/fe-interventions-api
src/Dfe.FE.Interventions.Consumer.Ukrlp/Worker.cs
2,252
C#
using System; using System.Collections.Generic; using System.Threading.Tasks; namespace Discord.WebSocket { public partial class BaseSocketClient { //Channels /// <summary> Fired when a channel is created. </summary> /// <remarks> /// <para> /// This event is...
56.045732
274
0.609123
[ "MIT" ]
INikonI/Discord.Net-Labs
src/Discord.Net.WebSocket/BaseSocketClient.Events.cs
36,766
C#
 namespace Norm { /// <summary> /// Server details /// </summary> public class Server { /// <summary> /// Gets or sets the host. /// </summary> /// <value>The host.</value> public string Host { get; set; } /// <summary> /// Gets or sets the p...
19.590909
40
0.450116
[ "BSD-3-Clause" ]
adzerk/NoRM
NoRM/Connections/Server.cs
433
C#
// Copyright (c) 2017-2019 Jae-jun Kang // See the file LICENSE for details. using System; using System.Collections.Generic; namespace x2net { // Hash.Update public partial struct Hash { public void Update(bool value) { Code = Update(Code, value); } public voi...
19.677419
44
0.469399
[ "MIT" ]
jaykang920/x2net
src/x2net/Util/Hash.Update.cs
1,832
C#
using System; using Npgsql; namespace Discount.Grpc.Data { public interface ICouponContext { public NpgsqlConnection NpgsqlConnection { get; } } }
15.363636
57
0.692308
[ "Apache-2.0" ]
ChiaChiaPing/AspnetMicroservices
src/Services/Discount/Discount.Grpc/Data/ICouponContext.cs
171
C#
using System; using System.Globalization; using Java.IO; using Java.Lang; namespace XamarinAppStartupTime.Droid.Services { internal static class StartupTimeHelper { private static DateTime? StartupTime; private static bool _attemptedToGetStartupTime; public static DateTime? GetAppStart...
31.859375
103
0.53899
[ "MIT" ]
toomasz/XamarinAppStartupTime
XamarinAppStartupTime/XamarinAppStartupTime.Android/Services/StartupTimeHelper.cs
2,041
C#
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using System; using System.Collections.Generic; using NUnit.Framework; using OpenTK.Graphics; using osu.Framework.Graphics; using osu.Framework.Graphics.Contain...
29.436364
93
0.520692
[ "MIT" ]
AtomCrafty/osu
osu.Game.Tests/Visual/TestCaseIntroSequence.cs
1,567
C#
using SC2Sharp.Agents; namespace SC2Sharp.StrategyAnalysis { public class Reaper : Strategy { private static Reaper Singleton = new Reaper(); public static Strategy Get() { return Singleton; } public override bool Detect() { return Bot....
19.28
78
0.553942
[ "MIT" ]
SimonPrins/TyrSc2
Tyr/StrategyAnalysis/Reaper.cs
484
C#
using System; using Chromium; using Chromium.Event; using Neutronium.WPF; namespace Neutronium.WebBrowserEngine.ChromiumFx { public abstract class ChromiumFxWebBrowserApp : HTMLApp { protected virtual bool DisableGpu => true; protected override IWPFWebWindowFactory GetWindowFactory() => ...
32.028571
120
0.715433
[ "MIT" ]
simonbuehler/Neutronium
WebBrowserEngine/ChromiumFX/HTMEngine.ChromiumFX/ChromiumFxWebBrowserApp.cs
1,123
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class GameManager : MonoBehaviour { public static GameManager Instance; [SerializeField] private int maxLives = 3; private static int _remainingLives = 3; public static int RemainingLives...
25.503497
128
0.638333
[ "MIT" ]
adityadutta/TOJam13
Assets/Scripts/Managers/GameManager.cs
3,649
C#
/* * OpenBots Server API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * OpenAPI spec version: v1 * * Generated by: https://github.com/swagger-api/swagger-codegen.git */ using System; using System.Linq; using System.IO; using System.Text; using Sys...
39.984169
594
0.518147
[ "Apache-2.0" ]
arenabilgisayar/OpenBots.Agent
OpenBots.Service.API/Model/JobCheckpoint.cs
15,154
C#
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using DCL.Camera; using DCL.Configuration; using DCL.Controllers; using DCL.Helpers; using UnityEngine; using Cysharp.Threading.Tasks; using DCL.Builder.Manifest; using DCL.Components; using DCL.Interface; using DCL.Models; usi...
43.283383
206
0.59058
[ "Apache-2.0" ]
Timothyoung97/unity-renderer
unity-renderer/Assets/DCLPlugins/BuilderInWorld/Scripts/SceneManager/SceneManager.cs
29,173
C#
using Discord; using Discord.Commands; using Discord.WebSocket; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Voltaire.Views.Info { public static class MultipleGuildSendResponse { public static Tuple<string, Embed> Response(ShardedCommandContext conte...
33.394737
220
0.589441
[ "MIT" ]
AntiGuide/Voltaire
Voltaire/Views/Info/MultipleGuildSendResponse.cs
1,271
C#
using System; namespace TRx.Helpers { /// <summary> /// Identifier for underlying data /// </summary> public interface IIdentifiedString { /// <summary> /// Identifier for underlying data /// </summary> string Id { get; set; } ...
17.263158
42
0.481707
[ "Apache-2.0" ]
wouldyougo/TRx
TRx.Helpers/IIdentifiedString.cs
330
C#
//------------------------------------------------------------------------------ // <auto-generated> // 此代码由工具生成。 // 运行时版本:4.0.30319.42000 // // 对此文件的更改可能会导致不正确的行为,并且如果 // 重新生成代码,这些更改将会丢失。 // </auto-generated> //------------------------------------------------------------------------------ using System...
36.166667
80
0.626728
[ "MIT" ]
Wscar/MyMicroServiceProject
User.API/UserTest/obj/Debug/netcoreapp2.0/UserTest.AssemblyInfo.cs
984
C#
using System.Collections.Generic; using Mina.Core.Buffer; namespace FSO.Common.Serialization.Primitives { public class cTSOProperty : IoBufferSerializable, IoBufferDeserializable { public uint StructType; public List<cTSOPropertyField> StructFields; public void Serialize(IoBuffer out...
29.166667
88
0.573968
[ "MPL-2.0" ]
HarryFreeMyLand/newso
Src/tso.common/Serialization/Primitives/cTSOProperty.cs
1,577
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.833333
161
0.663256
[ "Apache-2.0" ]
PureKrome/aws-sdk-net
sdk/src/Services/Chime/Generated/Model/Internal/MarshallTransformations/DescribeAppInstanceUserRequestMarshaller.cs
3,225
C#
//------------------------------------------------------------------------------ // <auto-generated> // Este código fue generado por una herramienta. // Versión de runtime:4.0.30319.42000 // // Los cambios en este archivo podrían causar un comportamiento incorrecto y se perderán si // se vuelve a genera...
42.52
160
0.603951
[ "Apache-2.0" ]
PabloCM03/PabloTAP
2P/Practica5/C#/Practica5/obj/Debug/netstandard2.0/formLoginError.xaml.g.cs
1,068
C#
using System.Collections.Generic; using OpenMod.API.Permissions; using Rocket.API.Serialisation; namespace OpenMod.Unturned.RocketMod.Permissions { public class OpenModPermissionRoleWrapper : IPermissionRole { public OpenModPermissionRoleWrapper(RocketPermissionsGroup @group) { Id ...
30.352941
74
0.591085
[ "MIT" ]
01-Feli/openmod
unturned/OpenMod.Unturned/RocketMod/Permissions/OpenModPermissionRoleWrapper.cs
1,034
C#
using System; using NetOffice; using NetOffice.Attributes; namespace NetOffice.VisioApi.Enums { /// <summary> /// SupportByVersion Visio 14, 15, 16 /// </summary> ///<remarks> MSDN Online Documentation: http://msdn.microsoft.com/en-us/en-us/library/ff765529(v=office.14).aspx </remarks> [SupportByVersion("Visi...
26.428571
125
0.640927
[ "MIT" ]
DominikPalo/NetOffice
Source/Visio/Enums/VisDeleteFlags.cs
1,297
C#
using System; using System.Collections; using System.IO; using Org.BouncyCastle.Asn1; using Org.BouncyCastle.Asn1.Ess; using Org.BouncyCastle.Asn1.Pkcs; using Org.BouncyCastle.Asn1.Tsp; using Org.BouncyCastle.Asn1.X509; using Org.BouncyCastle.Cms; using Org.BouncyCastle.Crypto; using Org.BouncyCastle.Math; ...
25.313008
97
0.673197
[ "BSD-3-Clause" ]
GaloisInc/hacrypto
src/C#/BouncyCastle/BouncyCastle-1.7/crypto/src/tsp/TimeStampTokenGenerator.cs
6,227
C#
using System; using System.Runtime.InteropServices; /// <remarks> /// CREDITS: https://github.com/MScholtes/VirtualDesktop /// /// MIT License /// /// Copyright(c) 2017 Markus Scholtes /// /// Permission is hereby granted, free of charge, to any person obtaining a copy /// of this software and associated documenta...
31.529968
124
0.698949
[ "MIT" ]
LinqLover/Videfix
MScholtes.VirtualDesktop/Desktop.cs
9,997
C#
using Microsoft.Extensions.Logging; using Oliver.Client.Services; using Oliver.Common.Models; using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; namespace Oliver.Client.Executing { internal class LogSender : ILogSender { ...
37.691589
200
0.554178
[ "MIT" ]
MISTikus/Oliver
src/Oliver.Client/Executing/LogSender.cs
4,035
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> //--...
34.419355
151
0.582006
[ "MIT" ]
seymenguney/Media-Player
Properties/Settings.Designer.cs
1,069
C#
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ /...
33.888889
153
0.559836
[ "MIT" ]
MIchaelMainer/GraphAPI
src/Microsoft.Graph/Models/Generated/WorkbookFunctionsCombinaRequestBody.cs
1,220
C#
namespace Foundation.Features.Events.CalendarBlock { public class CalendarBlockData { public int BlockId { get; set; } } }
18
51
0.666667
[ "Apache-2.0" ]
palle-mertz-merkle/Foundation
src/Foundation/Features/Events/CalendarBlock/CalendarBlockData.cs
146
C#
using System; using System.Collections.Generic; using System.Text; using System.Windows.Markup; using System.Windows; using System.Reflection; using System.Globalization; using System.Windows.Data; using System.ComponentModel; using System.Threading; using System.Windows.Threading; namespace More.Net.Windows.Localiza...
29.951724
95
0.523371
[ "MIT" ]
fallfromgrace/More.Net.Windows.Presentation
More.Net.Windows.Presentation/Localization/LocalizedResourceExtension.cs
4,345
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable namespace Azure.Analytics.Synapse.Artifacts.Models { /// <summary> The LinkConnectionTargetDatabase. </summary> public partial class LinkConnectionTargetDatabase { ...
31.862069
92
0.686147
[ "MIT" ]
ChenTanyi/azure-sdk-for-net
sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkConnectionTargetDatabase.cs
924
C#
// ========================================================================== // Squidex Headless CMS // ========================================================================== // Copyright (c) Squidex UG (haftungsbeschraenkt) // All rights reserved. Licensed under the MIT license. // ===========================...
32.700461
122
0.531567
[ "MIT" ]
BrightsDigi/squidex
backend/tools/TestSuite/TestSuite.ApiTests/ContentReferencesTests.cs
7,098
C#
using System; using System.Collections.Generic; using SFA.DAS.AssessorService.Api.Types.Models; namespace SFA.DAS.AssessorService.Web.ViewModels.Search { public class SearchRequestViewModel { public string Uln { get; set; } public string Surname { get; set; } public bool IsPrivatelyFun...
35.153846
71
0.642597
[ "MIT" ]
codescene-org/das-assessor-service
src/SFA.DAS.AssessorService.Web/ViewModels/Search/SearchRequestViewModel.cs
1,373
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.553398
111
0.609086
[ "Apache-2.0" ]
ImEdisonJiang/tencentcloud-sdk-dotnet
TencentCloud/Gaap/V20180529/Models/CreateHTTPSListenerRequest.cs
3,818
C#
namespace MyBlog.Configuration { public static class AppSettingNames { public const string UiTheme = "App.UiTheme"; } }
17.625
52
0.666667
[ "MIT" ]
15079229761/MyBlog
aspnet-core/src/MyBlog.Core/Configuration/AppSettingNames.cs
143
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DataAccessLayer { [Table("Roles")] public class Role { public Role(string r...
24.12766
80
0.595238
[ "MIT" ]
zanderlx/F5-broadwayBuilder
DataAccessLayer/Models/Role.cs
1,136
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 ...
42.2
93
0.775145
[ "Apache-2.0" ]
AxiosCros/aliyun-openapi-net-sdk
aliyun-net-sdk-sae/Sae/Transform/V20190506/UpdateNamespaceVpcResponseUnmarshaller.cs
1,899
C#
namespace IServiceCollectionExtension.LazyLoadService.Test.TestClasses { class SomeClass : ISomeClass { public static readonly string ConstructorStepName = $"{nameof(SomeClass)}:constructor"; public const string PingResponse = "Pong"; public SomeClass(StepChecker stepChecker) { ...
26.333333
95
0.637131
[ "Apache-2.0" ]
InsonusK/IServiceCollectionExtension.LazyLoadService
src/IServiceCollectionExtension.LazyLoadService.Test/TestClasses/SomeClass.cs
474
C#
using Newtonsoft.Json; namespace Tatum.Net.RestObjects { public class VeChainTransactionClause { [JsonProperty("to")] public string To { get; set; } [JsonProperty("value")] public string Value { get; set; } [JsonProperty("data")] public string Data { get; set;...
20.625
41
0.587879
[ "MIT" ]
burakoner/Tatum.Net
Tatum.Net/RestObjects/VeChain/VeChainTransactionClause.cs
332
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. // // Generated on 2020 October 09 05:01:12 UTC // </auto-generated> //--------------...
39.924051
284
0.582118
[ "MIT" ]
GridProtectionAlliance/go2cs
src/go-src-converted/syscall/exec_bsd_SysProcAttrStruct.cs
3,154
C#
#region BSD License /* * * Original BSD 3-Clause License (https://github.com/ComponentFactory/Krypton/blob/master/LICENSE) * © Component Factory Pty Ltd, 2006 - 2016, (Version 4.5.0.0) All rights reserved. * * New BSD 3-Clause License (https://github.com/Krypton-Suite/Standard-Toolkit/blob/master/LICENSE) * ...
41.054054
119
0.76761
[ "BSD-3-Clause" ]
Krypton-Suite/Standard-Toolkit-Demos
Source/Krypton Toolkit Examples/ButtonSpec Playground/Properties/AssemblyInfo.cs
1,523
C#
bool isInfiniteProcess(int a, int b) { if(a>b){ return true; } if(a==b){ return false; } if(a < b){ if((b-a)%2==0){ return false; } else { return true; } } return false; }
13.52381
38
0.366197
[ "Unlicense" ]
DKLynch/CodeSignal-Tasks
The Core/At The Crossroads/12. Is Infinite Process/isInfiniteProcess.cs
284
C#
using System; using System.IO; using System.Net; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.WebUtilities; using Microsoft.Net.Http.Headers; namespace Havit.Blazor.Components.Web.Bootstrap.Documentation.Server.Controllers { public class FileUploadControllerDemo : Controll...
38.333333
133
0.755243
[ "MIT" ]
HybridSolutions/Havit.Blazor
Havit.Blazor.Components.Web.Bootstrap.Documentation.Server/Controllers/FileUploadControllerDemo.cs
3,912
C#
using Physics.Interfaces; using Physics.Models; namespace Physics.Items { public class Weapon : IItem, IOffenseMods { private int BonusAim = 5; private int BonusDamage = 5; public OffenseMods GetOffenseModifiers() { return new OffenseMods() { ...
21
48
0.547619
[ "MIT" ]
jr101dallas/roguelike-tutorial
physics/Items/Weapon.cs
420
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("Re...
37.805556
84
0.749449
[ "MIT" ]
WS-QA/cassette
src/RequireJsSample/Properties/AssemblyInfo.cs
1,364
C#
 namespace Person { using System; public class Child : Person { private int age; public Child(string name,int age) :base(name,age) { this.age = age; } public override int Age { get { return th...
17.953488
85
0.349741
[ "MIT" ]
amartinn/SoftUni
C# Advanced September 2019/C# OOP/exercises/Inheritance - Exercise/Person/Child.cs
774
C#
// This file was automatically generated and may be regenerated at any // time. To ensure any changes are retained, modify the tool with any segment/component/group/field name // or type changes. namespace Machete.HL7Schema.V26 { using System; using HL7; /// <summary> /// AIS (Segment) - Appointment ...
27.826667
105
0.542405
[ "Apache-2.0" ]
amccool/Machete
src/Machete.HL7Schema/Generated/V26/Segments/AIS.cs
2,087
C#
using System; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Collections.Specialized; using System.ComponentModel; using System.Diagnostics; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using System.Threading.Tasks; using S...
22.720497
99
0.689721
[ "MIT" ]
ImportTaste/WinDirStat.Net
WinDirStat.Net/Model/Data/Extensions/ExtensionRecord.cs
3,660
C#
using UnityEngine; namespace TowerColor { /// <summary> /// Sound player /// </summary> public class SoundPlayer : MonoBehaviour, ISoundPlayer { public bool SoundEnabled { get; set; } public void PlaySound(AudioSource sound) { if (!SoundEnabled) return; ...
20.166667
58
0.548209
[ "MIT" ]
RLefrancoise/TowerColor
Assets/Scripts/SoundPlayer.cs
363
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...
37.929134
256
0.648744
[ "Apache-2.0" ]
pulumi/pulumi-azure-nextgen
sdk/dotnet/Compute/V20190701/GetProximityPlacementGroup.cs
4,817
C#
namespace Magnesium.Metal { public interface IAmtQueueFence { void Signal(); } }
12.285714
32
0.72093
[ "MIT" ]
tgsstdio/Mg
Magnesium.Metal/Queue/IAmtQueueFence.cs
88
C#
using ConvertToSARIF.Engine.Properties; using System; using System.Collections.Generic; using System.IO; using System.Text; namespace ConvertToSARIF.Engine { public class FilePathResolver { public virtual string Resolver(string filePath, string currentPath) { if (string.IsNullOrEmp...
24.407407
79
0.611533
[ "MIT" ]
microsoft/ConvertTo-SARIF
src/ConvertToSARIF.Engine/FilePathResolver.cs
661
C#
// ---------------------------------------------------------------------------------- // // Copyright Microsoft Corporation // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://w...
39.267327
198
0.58119
[ "MIT" ]
matt-gibbs/azure-powershell
src/ResourceManager/Network/Commands.Network/LoadBalancer/FrontendIpConfiguration/SetAzureLoadBalancerFrontendIpConfigCommand.cs
3,868
C#
namespace Example.FormsApp.Modules.Wizard { using System.Threading.Tasks; using Smart.ComponentModel; using Smart.Forms.Input; using Smart.Navigation; using Smart.Navigation.Plugins.Scope; public class WizardResultViewModel : AppViewModelBase { [Scope] public NotificationVa...
27.264706
86
0.6548
[ "MIT" ]
usausa/Smart-Net-Navigation
Example.FormsApp/Example.FormsApp/Modules/Wizard/WizardResultViewModel.cs
927
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using TypeInferences.Types; namespace TypeInferences.Expressions { public sealed class Increment : AvalonExpression { private readonly AvalonExpression parameter; internal Increment(AvalonExpression paramete...
25.35
79
0.723866
[ "Apache-2.0" ]
kekyo/Favalon.PoC
TypeInference/TypeInference/Expressions/Increment.cs
509
C#
using System; using System.Diagnostics; using Eto.Forms; namespace Eto.GtkSharp.Forms { public class OpenWithDialogHandler : WidgetHandler<Gtk.Dialog, OpenWithDialog, OpenWithDialog.ICallback>, OpenWithDialog.IHandler { public string FilePath { get; set; } public DialogResult ShowDialog(Window parent) { v...
30.72
130
0.744792
[ "BSD-3-Clause" ]
k5jae/Eto
Source/Eto.Gtk/Forms/OpenWithDialogHandler.cs
770
C#
// Copyright (c) SimpleIdServer. All rights reserved. // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. namespace SimpleIdServer.OAuth.DTOs { public static class OAuthClientParameters { public const string ClientId = "client_id"; public...
58.386364
107
0.736084
[ "Apache-2.0" ]
LaTranche31/SimpleIdServer
src/OAuth/SimpleIdServer.OAuth/DTOs/OAuthClientParameters.cs
2,571
C#
using System.Reflection; 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("SayWhatStarterWebhook")] [assembly: Assemb...
38.028571
84
0.751315
[ "MIT" ]
MFazio23/TC2018-SayWhatStarter
csharp/SayWhatStarterWebhook/Properties/AssemblyInfo.cs
1,334
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SimpleSync { public class Validator { private Validator() { } public class Param { public static readonly Func<string, bool> Folder = name => { if (name == null || name.Lengt...
28.684211
112
0.706422
[ "MIT" ]
tuyennv216/SimpleSync
SimpleSync/Constant/Validator.cs
1,637
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 BuildXL.Processes; using BuildXL.Scheduler.IncrementalScheduling; using BuildXL.Scheduler.Tracing; ...
38.596491
129
0.668636
[ "MIT" ]
mmiller-msft/BuildXL
Public/Src/Engine/Scheduler/SchedulerTestHooks.cs
2,200
C#
//------------------------------------------------------------ // Author: 烟雨迷离半世殇 // Mail: 1778139321@qq.com // Data: 2020年10月16日 18:03:51 //------------------------------------------------------------ using ETModel; using IngameDebugConsole; namespace Plugins.IngameDebugConsole.ETCmds { public class ETCmds {...
28.642857
76
0.51995
[ "MIT" ]
mosheepdev/NKGMobaBasedOnET
Unity/Assets/Plugins/IngameDebugConsole/ETCmds/ETCmds.cs
956
C#
using PW.MacroDeck.SoundPad.Services; using SuchByte.MacroDeck.ActionButton; using SuchByte.MacroDeck.GUI; using SuchByte.MacroDeck.GUI.CustomControls; using SuchByte.MacroDeck.Plugins; using System; using System.Collections.Generic; using System.Text; namespace PW.MacroDeck.SoundPad.Actions { public class StartR...
30.903226
107
0.749478
[ "MIT" ]
PhoenixWyllow/MacroDeck.SoundPad
Actions/StartRecordingAction.cs
960
C#
using Validation.Base; namespace Validation.Implementations { public class NotEmptyValidationAttribute : ValidationAttribute { public NotEmptyValidationAttribute(string parameterName = null, string errorMessage = null, bool defaultValue = true, string errorMessageKey = null) : base(paramet...
32
118
0.664063
[ "MIT" ]
DenLavrov/PropertiesValidation
Validation/Implementations/NotEmptyValidation.cs
642
C#
line1=Možnosti konfigurace,11 lease=Akceptovatelná prodleva (ve vteřinách) mezi systémovým a harwarovým časem,0 timeserver=Výchozí čas serveru,3,Nic ntp_only=Použít pouze NTP pro časovou synchronizaci?,1,1-Ano,0-Ne line2=Konfigurace systému,11 seconds=Formát nastavení systémového času,1,1-MMDDHHMMYYYY.SS,0-MMDDHHMMYY,2...
61.777778
123
0.834532
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
A-damW/webmin
time/config.info.cs
587
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...
36.670732
164
0.614566
[ "Apache-2.0" ]
polivbr/pulumi-azure-native
sdk/dotnet/DataFactory/Outputs/ShopifySourceResponse.cs
3,007
C#
using AppInterfaces.Interfaces; using Core.Domain; using CoreEntities.CustomModels; using ServiceLayer.Interfaces; using System; using System.Collections.Generic; namespace ServiceLayer.Services { public class ScreenService : IScreenService { #region Global Variables IScreenRepository _screenR...
30.64557
134
0.654275
[ "Apache-2.0" ]
joshisachin675/SocialMediaBroadcast
ServiceLayer/Services/ScreenService.cs
2,423
C#
using UnityEngine; using UnityEngine.UI; public static class Score { public static int score = 0; public static int Combo = 0; private static int _maxCombo = 0; public static int MaxCombo { get => _maxCombo; set { if (value < _maxCombo) return; _m...
23.726316
67
0.538598
[ "Apache-2.0" ]
enzobenedetti/RythmSynthwave
Assets/Prod/Scripts/Score.cs
2,256
C#
using System; using System.Collections.Generic; using System.Text; namespace Logika { public class Weather { private double temperature; private double humidity; private double windSpeed; public double GetTemperature() { return this.temperature; } public...
35.479452
409
0.56834
[ "MIT" ]
esalaj4/DZ-oop
DZ2/Weather.cs
2,593
C#
// Accord Imaging Library // The Accord.NET Framework // http://accord-framework.net // // Copyright © César Souza, 2009-2015 // cesarsouza at gmail.com // // 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 ...
34.843575
117
0.573994
[ "MIT" ]
mastercs999/fn-trading
src/Accord/Accord.Imaging/Filters/FeaturesMarker.cs
6,241
C#
#region Copyright & License // Copyright © 2012 - 2013 François Chabot, Yves Dierick // // 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/LICEN...
30.081633
128
0.713026
[ "Apache-2.0" ]
icraftsoftware/BizTalk.Factory
src/BizTalk.Dsl.Tests/Dsl/RuleEngine/BoxingRuleFixture.cs
1,478
C#
using LSCode.Validations.NotifiableValidations; using System; namespace LSCode.Validations.ValueObjects.Technologies { /// <summary>Assists in the use, validation and formatting of file length in KB.</summary> public class FileLengthKB : Notifier { /// <value>File length in KB.</value> pub...
33.173913
94
0.532765
[ "MIT" ]
lsantoss/LSCode.Validations
LSCode.Validations/ValueObjects/Technologies/FileLengthKB.cs
1,528
C#
using System; using System.Collections.Generic; using System.Text; using Windows.UI.Xaml.Controls.Primitives; namespace Windows.UI.Xaml.Controls { public partial class ComboBoxItem : SelectorItem { public ComboBoxItem() { } } }
15.933333
49
0.757322
[ "Apache-2.0" ]
billchungiii/Uno
src/Uno.UI/UI/Xaml/Controls/ComboBox/ComboBoxItem.cs
241
C#
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="ParameterKey.cs" company="Exit Games GmbH"> // Copyright (c) Exit Games GmbH. All rights reserved. // </copyright> // <summary> // Parameter keys are used as event-keys, oper...
31.381818
140
0.500869
[ "MIT" ]
LevchenkovHeyworks/Networking
Playground/.runtime/photon/src-server/Lite/Lite/Operations/ParameterKey.cs
3,454
C#
/******************************************************************* * Copyright(c) 2020 tianci * All rights reserved. * * 文件名称: EmojiText.cs 1.0 * Unity版本: 2018.4.6f1 * 简要描述: * * 创建日期: 2020/06/30 11:36:30 * 作者: tianci * 说明: ******************************************************************/ using System; using ...
41.218391
151
0.455138
[ "MIT" ]
HedgehogSir/EmojiText
EmojiText.cs
29,086
C#
/* ==================================================================== Copyright (C) 2004-2008 fyiReporting Software, LLC This file is part of the fyiReporting RDL project. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. ...
26
94
0.673077
[ "Apache-2.0" ]
gregberns/ZipRdlProjectDev410
src/RdlEngine/Runtime/DataSources.cs
1,820
C#
// Generated class v2.19.0.0, don't modify using System; using System.Collections.Generic; using System.Collections.Specialized; using System.Linq; using System.Text; namespace NHtmlUnit.Javascript.Host.Media.Midi { public partial class MIDIPort : NHtmlUnit.Javascript.Host.Events.EventTarget { static MIDI...
29.060606
127
0.721585
[ "Apache-2.0" ]
JonAnders/NHtmlUnit
app/NHtmlUnit/Generated/Javascript/Host/Media/Midi/MIDIPort.cs
959
C#
using System.Collections.Generic; using System.Net; using System.Linq; using System.Threading.Tasks; using DNS.Client.RequestResolver; using DNS.Protocol; using DNS.Protocol.ResourceRecords; using DNS.Server; using System; using SharpPcap; using PacketDotNet; using MeshProxy.Network; namespace MeshProxy.Services { ...
32.237762
132
0.549675
[ "MIT" ]
ecp4224/mesh-proxy
MeshProxy/Service/PeerManager.cs
4,612
C#
#region PDFSharp - A .NET library for processing PDF // // Authors: // Stefan Lange // // Copyright (c) 2005-2017 empira Software GmbH, Cologne Area (Germany) // // http://www.pdfsharp.com // http://sourceforge.net/projects/pdfsharp // // Permission is hereby granted, free of charge, to any person obtaining a // cop...
44.74389
2,048
0.501155
[ "MIT" ]
RefactorForce/PDFSharp
PDFSharp/Drawing/PDF/XGraphicsPDFRenderer.cs
88,074
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.IO; using System.Text; using System.Diagnostics; namespace System.Net.Mime { /// <su...
41.49095
173
0.46093
[ "MIT" ]
Roibal/corefx
src/System.Net.Mail/src/System/Net/Mime/QuotedPrintableStream.cs
18,339
C#
using System; using System.Diagnostics; using System.IO; using System.Runtime.InteropServices; using System.Text; using System.Windows.Forms; namespace NetEaseMusic_DiscordRPC.Win32Api { public class User32 { [StructLayout(LayoutKind.Sequential)] private struct RECT { publi...
32.792683
190
0.528077
[ "MIT" ]
GaXyRay/NetEase-Cloud-Music-DiscordRPC
NetEaseMusic-DiscordRPC/win32Api.cs
5,380
C#
/* * Problem 7. Sum of 5 Numbers * Write a program that enters 5 numbers (given in a single line, separated by a space), calculates and prints their sum. */ using System; class SumOfFiveNumbers { static void Main() { Console.WriteLine("Please enter 5 numbers, separated by a space:"); strin...
28.708333
121
0.595065
[ "MIT" ]
dimanov/Console-In-and-Out
SumOfFiveNumbers/FiveNumbers.cs
691
C#
using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Threading; using System.Threading.Tasks; using System.Windows; using GTTG.Core.Time; using GTTG.Model.Model.Events; using SZDC.Editor; using SZDC.Editor.Interfaces; using SZDC.Editor.TrainTimetables; namespace SZDC.Wpf.T...
39.904762
143
0.667959
[ "MIT" ]
Sykoj/GTTG
solution/SZDC.WPF/TrainGraph/DynamicTrainGraphWindow.xaml.cs
3,354
C#
namespace FrameworkTester.ViewModels.Interfaces { public interface IWinBioAsyncFrameworkViewModel { IHandleRepositoryViewModel<IFrameworkHandleViewModel> HandleRepository { get; } } }
17.785714
79
0.638554
[ "MIT" ]
poseidonjm/WinBiometricDotNet
examples/FrameworkTester/ViewModels/Interfaces/IWinBioAsyncFrameworkViewModel.cs
251
C#
namespace SharpVectors.Dom.Svg { /// <summary> /// The SvgDefsElement interface corresponds to the 'defs' element. /// </summary> /// <developer>niklas@protocol7.com</developer> /// <completed>99</completed> public interface ISvgDefsElement : ISvgElement, ISvgTests, ISvgLangSpace, ISvgExternalResourcesReq...
24.058824
70
0.728606
[ "BSD-3-Clause" ]
codebutler/savagesvg
src/SharpVectorBindings/SharpVectors/Dom/Svg/Document Structure/ISvgDefsElement.cs
409
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...
24.138889
81
0.59954
[ "Apache-2.0" ]
pulumi-bot/pulumi-azure-native
sdk/dotnet/Network/Outputs/AzureFirewallSkuResponse.cs
869
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Collections.Generic; using System.Text; using System.Text.Tests; using Xunit; namespace System.Text.En...
45.191489
116
0.688795
[ "MIT" ]
06needhamt/runtime
src/libraries/System.Text.Encoding/tests/Encoding/EncodingVirtualTests.cs
2,124
C#
using System; using System.Collections.Generic; using Newtonsoft.Json; namespace Voximplant.API.Response { public class AddRuleResponse : BaseResponse { /// <summary> /// 1 /// </summary> [JsonProperty("result")] public long Result { get; private set; } /// <su...
21.363636
48
0.559574
[ "MIT" ]
voximplant/apiclient-dotnet
apiclient/Response/AddRuleResponse.cs
470
C#
using System; class KnightGame { static void Main() { int n = int.Parse(Console.ReadLine()); var board = new char[n][]; for (int i = 0; i < n; i++) { board[i] = Console.ReadLine().ToCharArray(); } int maxAttacked = 0; int maxRow = 0; ...
29.5875
79
0.472328
[ "MIT" ]
markodjunev/Softuni
C#/C# Advanced/Multidimensional Arrays - Exercise/Knight Game/Knight Game.cs
2,369
C#
using System.IO; using Aspose.Cells; namespace Aspose.Cells.Examples.CSharp.RowsColumns.Grouping { public class SummaryRowBelow { public static void Run() { // ExStart:1 // The path to the documents directory. string dataDir = RunExamples.GetDataDir(System.R...
30.866667
115
0.614471
[ "MIT" ]
Aspose/Aspose.Cells-for-.NET
Examples/CSharp/RowsColumns/Grouping/SummaryRowBelow.cs
926
C#