content
stringlengths
5
1.04M
avg_line_length
float64
1.75
12.9k
max_line_length
int64
2
244k
alphanum_fraction
float64
0
0.98
licenses
list
repository_name
stringlengths
7
92
path
stringlengths
3
249
size
int64
5
1.04M
lang
stringclasses
2 values
using System; using System.Collections.Generic; namespace Bet.Extensions.Resilience.Abstractions { public static class Backoff { /// <summary> /// Creates Jittered timespan. /// https://github.com/App-vNext/Polly/wiki/Retry-with-jitter/86fc200c672e87cc24fe444ec61f38da19e861ec#more-comp...
48.290909
207
0.59695
[ "MIT" ]
kdcllc/Bet.Extensions.Resilience
src/Bet.Extensions.Resilience.Abstractions/Backoff.cs
5,314
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace RPG2.GameLogic { public static class Highscore { public static List<string> Highscores { get; set; } static Highscore() { Highscores = new List<st...
18.473684
59
0.623932
[ "MIT" ]
Marcus-Kanon/Skola
RPG2/RPG2/GameLogic/Highscore.cs
353
C#
namespace OakIdeas.Schema.Core.MedicalEntities { public class MedicineSystem { } }
13.571429
46
0.705263
[ "MIT" ]
oakcool/OakIdeas.Schema
OakIdeas.Schema.Core/MedicalEntities/MedicineSystem.cs
95
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class Cutscene8 : MonoBehaviour { public GameObject Cam1; public GameObject ThePlayer; public GameObject TheCanvas; public GameObject TextBox; void OnTriggerEnter(){ StartCoroutine (CutSceneShow ()); ...
23.02439
93
0.724576
[ "Apache-2.0" ]
Jetatomic17/PuppetsTear
Assets/CutsceneScript/Cutscene8.cs
946
C#
using System; using System.Collections; using System.Collections.Generic; using System.Data.Common; using System.Linq; using System.Text; namespace Perfor.Lib.Helpers.Mssql { /** * @ 自定义SQL命令执行,完全开放和自由的语法 * */ public class MssqlCustomCmd : SQLHelper { #region Identity /** * @ 默认...
22.403846
74
0.441488
[ "MIT" ]
lianggx/danny.lib
Perfor.Lib/Helpers/Mssql/MssqlCustomCmd.cs
3,885
C#
using System; using Torii.Event; using UnityEngine; namespace Torii.Systems { [CreateAssetMenu(menuName = "System/Pause")] public class PauseSystem : ScriptableObject { public bool Paused => Math.Abs(Time.timeScale) < float.Epsilon; [NonSerialized] public bool CanPause = true; publ...
21.081081
71
0.55
[ "MIT" ]
Figglewatts/torii-framework
Packages/com.figglewatts.torii/Runtime/Systems/PauseSystem.cs
780
C#
using System; using System.Collections.Generic; using System.Net; using System.Threading.Tasks; namespace StackExchange.Redis { /// <summary> /// Describes functionality that is common to both standalone redis servers and redis clusters /// </summary> public interface IDatabaseAsync : IRedisAsync ...
73.209717
416
0.659057
[ "Apache-2.0" ]
AlphaGremlin/StackExchange.Redis
src/StackExchange.Redis/Interfaces/IDatabaseAsync.cs
147,666
C#
/***************************************************************************** * * ReoGrid - .NET Spreadsheet Control * * http://reogrid.net * * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY * KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE * IMPLIED WARRANTIES OF ...
33.05036
127
0.665433
[ "MIT" ]
DevX-Realtobiz/ReoGrid
Demo/Features/ZoomDemo.Designer.cs
4,596
C#
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------ namespace Microsoft.Azure.Cosmos.Sql { internal enum SqlObjectKind { AliasedCollectionExpression, ArrayCrea...
27.716667
63
0.597114
[ "MIT" ]
DashThis/azure-cosmos-dotnet-v3
Microsoft.Azure.Cosmos/src/SqlObjects/SqlObjectKind.cs
1,665
C#
namespace Ejercicio13 { partial class Form1 { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <para...
40.40678
107
0.551874
[ "MIT" ]
Ter15/Trabajos-Casa
Ejercicio instituto/Ejercicio13/Ejercicio13/Ejercicio13/Form1.Designer.cs
7,154
C#
using System; using System.Threading.Tasks; using GRA.Controllers.ViewModel.ParticipatingBranches; using GRA.Domain.Service; using Microsoft.AspNetCore.Mvc; namespace GRA.Controllers { public class ParticipatingLibrariesController : Base.UserController { private readonly SiteService _siteService; ...
29.16129
95
0.667035
[ "MIT" ]
MCLD/greatreadingadventure
src/GRA.Controllers/ParticipatingLibrariesController.cs
906
C#
using System.Collections; using System.Collections.ObjectModel; using System.IO; using System.Management.Automation; using System.Reflection; using Microsoft.PowerShell; using Xunit; namespace Test { public partial class ReadLine { [SkippableFact] public void TabComplete() { ...
41.2
232
0.48754
[ "BSD-2-Clause" ]
ForNeVeR/PSReadLine
test/CompletionTest.cs
12,362
C#
using System; using System.Xml.Serialization; using System.Collections.Generic; namespace Aop.Api.Domain { /// <summary> /// House Data Structure. /// </summary> [Serializable] public class House : AopObject { /// <summary> /// 房屋所在区县编号 /// </summary> ...
27.215909
118
0.500626
[ "Apache-2.0" ]
554393109/alipay-sdk-net-all
AlipaySDKNet.Standard/Domain/House.cs
2,599
C#
using Microsoft.Extensions.DependencyInjection; using System; using System.Collections.Generic; using System.Text; namespace AnsuzNet.Utility.ConsoleCore.Abstractions { public interface IStartup { void Configure(IServiceCollection collection); } }
20.769231
54
0.774074
[ "MIT" ]
AnsuzPantognestous/ConsoleCore
ConsoleCore/Abstractions/IStartup.cs
272
C#
using System; using System.Collections.Generic; using System.Text; using Windows.Foundation; #if XAMARIN_IOS using View = UIKit.UIView; #elif XAMARIN_ANDROID using View = Android.Views.View; #else using View = Windows.UI.Xaml.UIElement; #endif namespace Windows.UI.Xaml.Controls.Primitives { public partial class Flyo...
20.487179
105
0.687943
[ "Apache-2.0" ]
dansiegel/Uno
src/Uno.UI/UI/Xaml/Controls/Flyout/FlyoutBase.cs
2,399
C#
/* * Copyright 2010-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "l...
29.363636
117
0.621672
[ "Apache-2.0" ]
DetlefGolze/aws-sdk-net
sdk/src/Services/MarketplaceCatalog/Generated/Internal/AmazonMarketplaceCatalogMetadata.cs
1,615
C#
using System.Collections.Generic; using System.Threading.Tasks; using QYQ.DataManagement.Extension.Customs.Dtos; using QYQ.DataManagement.IdentityServers.ApiResources.Dtos; using Volo.Abp.Application.Dtos; using Volo.Abp.Application.Services; namespace QYQ.DataManagement.IdentityServers.ApiResources { public inter...
29.236842
95
0.639964
[ "MIT" ]
zhaoweijie1213/QYQDataManagement
aspnet-core/services/src/QYQ.DataManagement.Application.Contracts/IdentityServers/ApiResources/IApiResourceAppService.cs
1,131
C#
using System; namespace WebAPIs.Areas.HelpPage { /// <summary> /// This represents a preformatted text sample on the help page. There's a display template named TextSample associated with this class. /// </summary> public class TextSample { public TextSample(string text) { ...
23.864865
140
0.531144
[ "MIT" ]
CDOTAD/HospitalManageSystem
WebAPIs/WebAPIs/Areas/HelpPage/SampleGeneration/TextSample.cs
883
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Xamarin.Forms; namespace HikingPathFinder.App.Views { /// <summary> /// Page that shows the hamburger menu content /// </summary> public class MenuPage : ContentPage { ...
25.314815
82
0.513533
[ "BSD-2-Clause" ]
vividos/HikingPathFinder
src/Frontend/App/Core/Views/MenuPage.cs
1,369
C#
using System.Collections; using NUnit.Framework; using UnityEngine; using UnityEngine.TestTools; namespace PlayTests { public class ExamplePlayTest { [UnityTest] public IEnumerator ExampleTest() { Time.timeScale = 20f; GameObject gameObject = new GameObject(); ...
22.542857
65
0.548796
[ "MIT" ]
AVR-Team-5/a-particular-project
Game/Assets/Source/Tests/PlayTests/ExamplePlayTest.cs
789
C#
using System; using System.Collections.Generic; using CppSharp.AST; namespace CppSharp.Generators { public abstract class CodeGenerator : BlockGenerator, IDeclVisitor<bool> { public BindingContext Context { get; } public DriverOptions Options => Context.Options; public List<Translatio...
29.650485
115
0.603143
[ "MIT" ]
JackWangCUMT/CppSharp
src/Generator/Generators/CodeGenerator.cs
6,108
C#
using Aspect.Abstractions; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection.Extensions; namespace Aspect.Formatting { public static class ServiceExtensions { public static IServiceCollection AddFormatters(this IServiceCollection services) { ...
34.722222
93
0.7376
[ "MIT" ]
Im5tu/aspect
src/Aspect.Formatting/ServiceExtensions.cs
627
C#
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ /...
27.26
153
0.527513
[ "MIT" ]
GeertVL/msgraph-beta-sdk-dotnet
src/Microsoft.Graph/Generated/model/KerberosSignOnMappingAttributeType.cs
1,363
C#
using System; using System.Threading; namespace EasyNetQ.Scheduling { public static class SchedulerExtensions { /// <summary> /// Schedule a message to be published at some time in the future. /// This required the EasyNetQ.Scheduler service to be running. /// </summary> ...
36.757576
82
0.596867
[ "MIT" ]
Eu-JinOoi/EasyNetQ
Source/EasyNetQ/Scheduling/SchedulerExtensions.cs
1,215
C#
// Python Tools for Visual Studio // Copyright(c) Microsoft Corporation // All rights reserved. // // Licensed under the Apache License, Version 2.0 (the License); you may not use // this file except in compliance with the License. You may obtain a copy of the // License at http://www.apache.org/licenses/LICENSE-2.0 /...
38.980769
106
0.648249
[ "Apache-2.0" ]
DalavanCloud/python-language-server
src/LanguageServer/Impl/Implementation/Server.PrivateHelpers.cs
2,029
C#
using Lucene.Net.Analysis.Util; using Lucene.Net.Support; using System.Collections.Generic; using System.Linq; namespace Lucene.Net.Analysis.Core { /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with ...
37.177083
134
0.589801
[ "Apache-2.0" ]
NikolayXHD/Lucene.Net.Contrib
Lucene.Net.Analysis.Common/Analysis/Core/TypeTokenFilterFactory.cs
3,571
C#
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; public class EvilFlowerMeleeState : IEvilFlowerState { private EvilFlower enemy; private float attackCoolDown = 2; private bool preAttacked; bool preparated = false; public void Enter(EvilFlower enemy) ...
26.276596
110
0.616194
[ "Apache-2.0" ]
MadGriffonGames/BiltyBlop
Assets/Scripts/Enemies&States/EvilFlower/EvilFlowerMeleeState.cs
1,237
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BIModel.Access { /// <summary> /// 接口配置表 /// </summary> public class InterfaceList { public string InterfaceName { get; set; } public string Comment { get;...
17.952381
49
0.628647
[ "MIT" ]
ysjr-2002/BatteryTest
BIModel/Access/InterfaceList.cs
389
C#
/* * Wirekite for Windows * Copyright (c) 2018 Manuel Bleichenbacher * Licensed under MIT License * https://opensource.org/licenses/MIT * * This code is based on code in the Arduino RF24 library. * Portions Copyright (c) 2011 J. Coliz <maniacbug@ymail.com> */ using Codecrete.Wirekite.Device; using System; u...
31.412048
154
0.508898
[ "MIT" ]
manuelbl/WirekiteWin
WirekiteWinTest/RF24Radio.cs
26,074
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. namespace Mi...
74.034121
451
0.660297
[ "MIT" ]
Click4PV/azure-powershell
src/Kusto/generated/cmdlets/GetAzKustoDatabase_GetViaIdentity.cs
27,827
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class MinionRelayPointBuilder : MonoBehaviour { [SerializeField] public bool blueTeam; [SerializeField] int laneNum; //Top:0, Mid:1, Bot:2 [SerializeField] int index; public MinionRelayPointInfo GetInfo() { ...
24.043478
55
0.622061
[ "MIT" ]
LaudateCorpus1/MOBA_CSharp_Unity
Map_Editor/MOBA_CSharp_Map_Editor/Assets/Scripts/Builder/MinionRelayPointBuilder.cs
555
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.Json.Serialization; using System.Threading.Tasks; namespace StarfallTactics.StarfallTacticsServers.Database { public class SkinColorEntry { [JsonPropertyName("id")] public int Id { get; set;...
22.052632
57
0.677804
[ "MIT" ]
MenY-dev/StarfallTacticsLauncher
StarfallTacticsServers/Database/SkinColorEntry.cs
421
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Runtime.InteropServices; using System.Runtime.CompilerServices; using System.Text; using Silk.NET.Core; using Silk.NET.Core.Native; using Silk.NET.Core.At...
40.079787
144
0.592568
[ "MIT" ]
Zellcore/Silk.NET
src/Microsoft/Silk.NET.Direct3D11/Structs/ID3DUserDefinedAnnotation.gen.cs
7,535
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...
42.018868
291
0.690615
[ "Apache-2.0" ]
polivbr/pulumi-azure-native
sdk/dotnet/Network/V20200601/Outputs/ManagedServiceIdentityResponse.cs
2,227
C#
using System; using System.Collections.Generic; using System.Text; namespace BlazorBootstrap.Components { public enum NamedColor { Primary, Secondary, Success, Danger, Warning, Info, Light, Dark, White, White50, Black50 ...
14.818182
36
0.542945
[ "Apache-2.0" ]
MikaBerglund/Blazor-Bootstrap
BlazorBootstrap.Components/NamedColor.cs
328
C#
/* Government Usage Rights Notice: The U.S. Government retains unlimited, royalty-free usage rights to this software, but not ownership, as provided by Federal law. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: • Redist...
72.2
475
0.792798
[ "BSD-3-Clause" ]
raear/html-zoning
Serialization/ZoneTree/ZoneType.cs
1,813
C#
namespace MdlpApiClient.DataContracts { using System; using System.Runtime.Serialization; /// <summary> /// 8.1.2. Фильтр для мест осуществления деятельности. /// Содержит информацию для фильтрации списка мест осуществления деятельности. /// </summary> [DataContract] public c...
37.75641
90
0.575212
[ "MIT" ]
cm4ker/MdlpClient
MdlpApiClient/DataContracts/BranchFilter.cs
3,529
C#
using System; namespace VKS.MHS.Elements { /// <summary> /// Interface for lights that support hue/color change. /// </summary> public interface IColorfulLight: ILight { /// <summary> /// Fades the lights off from current color to black. /// </summary> void FadeOff(...
24.888889
90
0.526786
[ "Apache-2.0" ]
VladimirKey/VKS.MHS
VKS.MHS.Elements/IColorfulLight.cs
898
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Singleton { public class Policy { private static Policy _instance; public static Policy Instance { get { if (_instance == null) ...
20.53125
58
0.508371
[ "MIT" ]
jenmcquade/csharp-snippets
Ex_Files_C_Sharp_Design_Patterns/Ch04/04_02/Finish/Singleton/Policy.cs
659
C#
using RabbitMQ.Client.Framing; using RestBus.Client; using RestBus.Common; using RestBus.Common.Amqp; using RestBus.Common.Http; using RestBus.RabbitMQ.ChannelPooling; using System; using System.Net.Http; using System.Net.Http.Headers; using System.Threading.Tasks; namespace RestBus.RabbitMQ.Client { public class ...
45.870707
196
0.601603
[ "Apache-2.0" ]
lucksuper/RestBus
src/Brokers/RabbitMQ/RestBus.RabbitMQ/Client/RestBusClient.cs
22,706
C#
// Generated class v2.19.0.0, can be modified namespace NHtmlUnit.Javascript.Host.Media { public partial class DynamicsCompressorNode { } }
13.818182
46
0.723684
[ "Apache-2.0" ]
HtmlUnit/NHtmlUnit
app/NHtmlUnit/NonGenerated/Javascript/Host/Media/DynamicsCompressorNode.cs
152
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable using System; using System.Collections; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Threading; using System.Threading.Tasks; using A...
57.906566
349
0.662466
[ "MIT" ]
AntonioVT/azure-sdk-for-net
sdk/network/Azure.ResourceManager.Network/src/Generated/FirewallPolicyCollection.cs
22,931
C#
using System.Collections.Generic; using Enums.Aspects; using Enums.Equipment; using Interfaces.Aspects.Equipment; using Serializable.Aspects.Equipment; using UnityEngine; namespace ScriptableObjects.Aspects.Equipment { /// <summary> /// Weapon equipment Aspect /// </summary> [CreateAssetMenu(fileName ...
33.772727
130
0.748318
[ "Apache-2.0" ]
gellios3/FateSimulator
Assets/Scripts/ScriptableObjects/Aspects/Equipment/WeaponEquipmentAspectObj.cs
745
C#
using UnityEngine; using System.Collections; using UnityEngine.AI; public class Shooter : MonoBehaviour { public WeaponConfig weapon = new WeaponConfig(); public float turnSpeed = 1000.0f; public Transform shootTransform; Vector3 currentTarget; float lastShotTime; bool isAttacking; public bool IsAttacking { ...
23.067901
122
0.681563
[ "MIT" ]
Domiii/EvilBoxesMultiplayer
Assets/Scripts/Combat/Shooter.cs
3,739
C#
#if DLL_EXPORT using System; #endif using System.Collections.Generic; using System.IO; using UnityEngine; namespace TrainJetsMod { public class TrainJetsMod #if DLL_EXPORT : AbstractMod { public static string NAME = "Train Jets"; public static string DESCRIPT = "Allows jet deco objects to be placed on ride car...
34.356828
128
0.709065
[ "MIT" ]
Draco18s/Parkitect-Modding
Assets/TrainJets/TrainJetsMod.cs
7,801
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class AutomaticAvatarSetup : MonoBehaviour { PlayerManager pm; FacialController fc; PhotonView pv; ScaleAdjust sa; SetHeadPos shp; SyncAvatarToHMD satHMD; void StartBasicSetup(GameObject _avatar){ pm = _avatar.AddCompon...
32.510949
128
0.723844
[ "MIT" ]
MTGTech/StudioV
Assets/Script/AvatarSpecific/AutomaticAvatarSetup.cs
4,456
C#
namespace MedicalExaminer.Common.Settings { /// <summary> /// Cosmos Database Settings. /// </summary> public class CosmosDbSettings { /// <summary> /// URL. /// </summary> public string URL { get; set; } /// <summary> /// Primary Key. /// </...
23.833333
81
0.504895
[ "MIT" ]
neiltait/medex_api_pub
MedicalExaminer.Common/Settings/CosmosDBSettings.cs
717
C#
// // Copyright (c) 2004-2021 Jaroslaw Kowalski <jaak@jkowalski.net>, Kim Christensen, Julian Verdurmen // // 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 s...
38
100
0.698061
[ "BSD-3-Clause" ]
304NotModified/NLog
src/NLog/Targets/Wrappers/AsyncTargetWrapperOverflowAction.cs
2,166
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 * ...
31.686275
96
0.656559
[ "Apache-2.0" ]
TencentCloud/tencentcloud-sdk-dotnet
TencentCloud/Cvm/V20170312/Models/DescribeImageSharePermissionResponse.cs
1,686
C#
using System; namespace Tomlet.Models { public class TomlOffsetDateTime : TomlValue { private readonly DateTimeOffset _value; public TomlOffsetDateTime(DateTimeOffset value) { _value = value; } public DateTimeOffset Value => _value; ...
24.321429
66
0.591777
[ "MIT" ]
ChadKeating/Tomlet
Tomlet/Models/TomlOffsetDateTime.cs
683
C#
using Improbable.Gdk.Core; using Improbable.Worker.CInterop; using Improbable.Worker.CInterop.Alpha; namespace Fps { public class GetPlayerIdentityTokenState : SessionState { private readonly State nextState; private Future<PlayerIdentityTokenResponse?> pitResponse; public GetPlayerIde...
33.967742
131
0.597341
[ "MIT" ]
footman136/fps-starter-project-yuanjue
workers/unity/Assets/Fps/Scripts/GameLogic/StateMachine/Session/GetPlayerIdentityTokenState.cs
2,106
C#
using System; using System.Collections.Generic; using System.Collections.Specialized; using System.Diagnostics; using System.Linq; using System.Net; using System.Text; using System.Threading.Tasks; using System.Web; namespace SimpleAuth { public abstract class WebAuthenticator : Authenticator { public bool Cle...
21.409524
135
0.650801
[ "Apache-2.0" ]
PatchesTheFirst/SimpleAuth
src/SimpleAuth/Api/WebAuthenticator.cs
2,250
C#
using Microsoft.EntityFrameworkCore.Migrations; namespace Asp.net_Core_Project.Data.Migrations { public partial class InitialCreateXtrellsPCDb : Migration { protected override void Up(MigrationBuilder migrationBuilder) { } protected override void Down(MigrationBuilder migrati...
20
71
0.688889
[ "MIT" ]
Xtreller/ShishaWeb-Asp.NetCore
Data/Migrations/20200418193237_InitialCreateXtrellsPCDb.cs
362
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.IO; using System.Text.Json; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; namespace Microsoft.DotNet.UpgradeAssistant.Extension...
31.181818
106
0.592809
[ "MIT" ]
ScriptBox21/dotnet-upgrade-assistant
src/components/Microsoft.DotNet.UpgradeAssistant.Extensions/DefaultUpgradeAssistantConfigurationLoader.cs
2,060
C#
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using dotnet_example.Models; using Microsoft.AspNetCore.Authorization; namespace dotnet_example.Controllers { [Authorize] public class H...
24.06383
113
0.577365
[ "Apache-2.0" ]
18F/gcp-appengine-template
dotnet-example/Controllers/HomeController.cs
1,133
C#
using System; using System.Collections.Generic; using System.Drawing; using System.Drawing.Imaging; using System.IO; using System.Windows.Forms; using ProtoBuf; using ROMZOOM.Logic; namespace ROMZOOM.Model { [ProtoContract] public class LibraryData { [ProtoMember(1)] public string RootPat...
26.27037
115
0.53588
[ "MIT" ]
rafaelvasco/ROMZOOM
Model/Library.cs
7,095
C#
using EngineeringUnits.Units; namespace EngineeringUnits { //This class is auto-generated, changes to the file will be overwritten! public partial class Acceleration { /// <summary> /// Get Acceleration in SI. /// </summary> public double SI => As(Acc...
43.144737
104
0.584629
[ "MIT" ]
AtefeBahrani/EngineeringUnits
EngineeringUnits/CombinedUnits/Acceleration/AccelerationGet.cs
3,279
C#
using BasicShopDemo.Api.Core.DTO; using Microsoft.AspNetCore.Mvc.ModelBinding; using System; using System.Collections.Specialized; using System.Linq; using System.Threading.Tasks; using System.Web; namespace BasicShopDemo.Api.Core.ModelBinder { public class QueryModelBinder : IModelBinder { public Tas...
30.12766
124
0.536017
[ "MIT" ]
cristofima/BasicShopDemo
src/BasicShopDemo.Api/ModelBinder/QueryModelBinder.cs
1,418
C#
using Marketplace.PaidServices.Messages.Ads; using static Marketplace.EventSourcing.TypeMapper; using static Marketplace.PaidServices.Messages.Orders.Events; namespace Marketplace.PaidServices { public static class EventMappings { public static void MapEventTypes() { Map<V1.OrderCre...
34.9
71
0.697708
[ "MIT" ]
ChrisDev3110/Hands-On-Domain-Driven-Design-with-.NET-Core
Chapter13/src/Marketplace.PaidServices/EventMappings.cs
698
C#
// Copyright (C) 2003-2010 Xtensive LLC. // All rights reserved. // For conditions of distribution and use, see license. using System; namespace Xtensive.Sql { /// <summary> /// Levels of checking to be done when inserting or updating data through a view. /// </summary> [Serializable] public enum CheckOptio...
31.166667
100
0.648587
[ "MIT" ]
DataObjects-NET/dataobjects-net
Orm/Xtensive.Orm/Sql/Model/CheckOptions.cs
1,309
C#
using System; namespace _04.Elevator { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); int p = int.Parse(Console.ReadLine()); int courses = (int)Math.Ceiling((double)n / p); Console.WriteLine(courses); ...
18.722222
59
0.522255
[ "Apache-2.0" ]
kaliopa1983/Programming-Fundamentals
04. PFDataTypesandVariablesLab/04. Elevator/Program.cs
339
C#
using System.Linq; using UnityEngine; using UnityEngine.Events; namespace CustomUnity { /// <summary> /// map string to unityevent, and fire by AnimationEvent or other. /// </summary> [AddComponentMenu("CustomUnity/Named Event")] public class NamedEvent : MonoBehaviour { [System.Seriali...
23.814815
72
0.59409
[ "MIT" ]
SAM-tak/CustomUnity
Assets/CustomUnity/Components/NamedEvent.cs
643
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; using Microsoft.Win32.SafeHandles; using System.Runtime.InteropServices; using System.Text; ...
41.482301
174
0.594987
[ "MIT" ]
Larhwally/corefx
src/System.Data.SqlClient/src/System/Data/SqlClient/SNI/LocalDB.Windows.cs
9,375
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...
37.05
191
0.805668
[ "ECL-2.0", "Apache-2.0" ]
RafalSumislawski/pulumi-aws
sdk/dotnet/WafV2/Inputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBodyGetArgs.cs
741
C#
using Data.Common; using Microsoft.Extensions.Configuration; using System; using System.Runtime.InteropServices; namespace Test.Data { public static class GrepAdminDataHelper { private static string GetConfigSection(string section, string property) { var env = RuntimeInformation.IsOSPlatfor...
33
103
0.598485
[ "MIT" ]
odinr/codin
docs/static/code-highlight/test.cs
1,188
C#
namespace Netch.Models.Config { public class ProcessMode { /// <summary> /// 伪造 ICMP 延迟 /// </summary> [Newtonsoft.Json.JsonProperty("icmping")] public int Icmping = 1; /// <summary> /// 仅劫持规则内进程 /// </summary> [Newto...
24.944444
50
0.467706
[ "MIT" ]
esmivn/netch
Netch/Models/Config/ProcessMode.cs
940
C#
// Copyright (c) 2020 Nathan Williams. All rights reserved. // Licensed under the MIT license. See LICENCE file in the project root // for full license information. using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.IO; using System.IO.Compression; using System.Linq; us...
41.131991
111
0.473322
[ "MIT" ]
Naine/api-dump
ApiDump/Program.cs
36,772
C#
/* * Henry C Reeves IV * Home.aspx.cs * Due: December 6 , 2017 * * This is Signup.aspx.cs, this is where the user an sign up for our page. It * is impossible for a user to signup as an Admin unless the administator goes * to the database and adds himeself/herself. There is a password format requirement. */ usi...
35.823529
309
0.487386
[ "MIT" ]
nwright3/KidneyFoundationTest
CoastalBendKidneyFoundation/CoastalBendKidneyFoundation/Signup.aspx.cs
6,701
C#
using Microsoft.EntityFrameworkCore.Migrations; namespace HUD.Data.Migrations { public partial class AddOrgNameToUserSettings : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn<string>( name: "OrgName", ...
26.958333
71
0.574961
[ "MIT" ]
kysu1313/Ticket-Dashboard-2
Data/Migrations/20210506004743_AddOrgNameToUserSettings.cs
649
C#
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------ namespace System.ServiceModel.Channels { using System.Collections.ObjectModel; using System.ServiceModel; // Neighbor i...
37.972973
104
0.603203
[ "Apache-2.0" ]
295007712/295007712.github.io
sourceCode/dotNet4.6/ndp/cdf/src/WCF/ServiceModel/System/ServiceModel/Channels/IPeerNeighbor.cs
2,810
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...
52.916667
200
0.793176
[ "ECL-2.0", "Apache-2.0" ]
chivandikwa/pulumi-aws
sdk/dotnet/WafV2/Outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatement.cs
1,905
C#
using Spoondrift.Code.PlugIn; using Spoondrift.Code.Util; using System; using System.Collections; using System.Collections.Generic; using System.Data; using System.Linq; using System.Text; using Microsoft.Extensions.DependencyInjection; using Spoondrift.Code.Dapper; using Dapper; using Spoondrift.Code.Config.Form; usi...
41.419935
256
0.460353
[ "MIT" ]
RookieXie/spoondrift.core
src/Spoondrift.Code/Data/BaseDataTableSource.cs
51,284
C#
using Core.Audio; using System.Collections; using System.Collections.Generic; using UnityDI; using UnityEngine; public class BackgroundMusic : MonoBehaviour { public string BackgroundTrackName; [Dependency] private readonly AudioService _AudioService; public AudioEffect AudioTrack; private void ...
23.333333
66
0.692063
[ "MIT" ]
AlexandrKlimkin/StickmanWars
Assets/Scripts/Core/Services/AudioService/BackgroundMusic.cs
632
C#
// ------------------------------------------------------------------------------ // <auto-generated> // Generated by Xsd2Code. Version 3.4.0.18239 Microsoft Reciprocal License (Ms-RL) // <NameSpace>Dms.Ambulance.V2100</NameSpace><Collection>Array</Collection><codeType>CSharp</codeType><EnableDataBinding>False<...
75.83871
1,368
0.742237
[ "MIT" ]
Kusnaditjung/MimDms
src/Dms.Ambulance.V2100/Generated/ResidentialStatusType_code.cs
2,351
C#
#pragma warning disable 1591 //------------------------------------------------------------------------------ // <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 reg...
23.233449
125
0.633323
[ "MIT" ]
KoffiePatje/TsumTsumHeartTracker
TsumTsumNotificationTracker/Resources/Resource.Designer.cs
6,668
C#
namespace RotaTable { partial class RotaTable { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <para...
39.712121
124
0.602442
[ "MIT" ]
JackBattye91/Rota-Creator
RotaTable/RotaTable.Designer.cs
2,623
C#
using System; using Oogi2.Attributes; using Oogi2.Tokens; using Shushu.Attributes; namespace KotoriCore.Database.DocumentDb.Entities { /// <summary> /// Document. /// </summary> [EntityType("entity", Entity)] [ClassMapping(Shushu.Enums.IndexField.Entity, Entity)] public class Document : IEntit...
34.75
220
0.555661
[ "MIT" ]
kotorihq/kotori-core
KotoriCore/Database/DocumentDb/Entities/Document.cs
5,284
C#
using Drawmasters.Effects; using Spine; using Spine.Unity; using UnityEngine; using System; using Event = Spine.Event; namespace Drawmasters.Utils { public class AnimationEffectPlayerHandler : AnimationActionHandler { #region Fields private readonly string fxBoneName; private readonl...
24.247863
141
0.589002
[ "Unlicense" ]
TheProxor/code-samples-from-pg
Assets/Scripts/GameFlow/Helpers/Spine/AnimationEffectPlayerHandler.cs
2,839
C#
using System.Collections; namespace System.Text.RegularExpressions { /// <summary> /// Returns the set of captured groups in a single match. /// </summary> [H5.Convention(Member = H5.ConventionMember.Field | H5.ConventionMember.Method, Notation = H5.Notation.CamelCase)] [H5.External] [H5.Reflec...
29.3625
118
0.550447
[ "Apache-2.0" ]
curiosity-ai/h5
H5/H5/System/Text/RegularExpressions/GroupCollection.cs
2,349
C#
using ConfigurationModel.Interfaces; namespace ConfigurationModel.Models { public record CognitoSetting : ICognitoSetting { public string RegionId { get; init; } = null!; public string UserPoolName { get; init; } = null!; public string UserPoolId { get; init; } = null!; public ...
34.631579
100
0.62766
[ "MIT" ]
returner/DummyDataFactory
DummyDataFactory/ConfigurationModel/Models/CognitoSetting.cs
660
C#
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Controls.Primitives; using System.Windows.Input; using System.Windows.Interactivity; using System.Windo...
36.753425
171
0.617406
[ "MIT" ]
StartNine/Superbar
Superbar/TaskItemClickBehavior.cs
5,368
C#
using System; using System.Collections.Generic; using System.Reflection; using System.Text; namespace OpenFeign.net { public class OpenFeign { public static T GenerateClient<T>() where T:class { return HttpProxy.Create<T>(); } public static object GenerateClientByT...
23.73913
77
0.624542
[ "MIT" ]
yrc-cloud/OpenFeign.net
OpenFeign.net/OpenFeign.cs
548
C#
using IEXCloudClient.Common; using System.Collections.Generic; namespace IEXCloudClient.Quote { internal class QuoteMultiRequest : BaseRequest<Dictionary<string, RequestTypes>> { public QuoteMultiRequest(IEnumerable<string> symbols, string baseUrl, string token) : base(baseUrl, token) { ...
31.0625
114
0.653924
[ "MIT" ]
sstrickley/IEXCloudClient
IEXCloudClient/Quote/QuoteMultiRequest.cs
499
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Runtime.Serialization; using System.Text; using Newtonsoft.Json; using Newtonsoft.Json.Converters; namespace Adyen.Model.Checkout { /// <summary> /// LineItem /// </summary> [DataContract] pub...
40.296296
411
0.525819
[ "MIT" ]
Ganesh-Chavan/adyen-dotnet-api-library
Adyen/Model/Checkout/LineItem.cs
11,968
C#
using System; using System.IO; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using Microsoft.OpenApi.Models; using Newtonsoft.Json; using Swashbuckle.AspNetCore.Swagge...
33.637363
143
0.552107
[ "MIT" ]
2881099/dotnetcore-examples
aspnetcore-im/OvOv.ImCore.Chat/Startup.cs
3,089
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. using System.Runtime.InteropServices; using System; namespace MonoGame.Utilities { internal enum OS { Windows, Linux, ...
32.063492
136
0.459653
[ "MIT" ]
Adrriii/MonoGame
MonoGame.Framework/Utilities/CurrentPlatform.cs
4,042
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...
40.2749
177
0.558809
[ "MIT" ]
bganapa/azure-powershell
src/Storage/custom/Dataplane.v2/File/Cmdlet/GetAzureStorageFileCopyState.cs
9,861
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 * ...
30.54902
81
0.6457
[ "Apache-2.0" ]
TencentCloud/tencentcloud-sdk-dotnet
TencentCloud/Tcb/V20180608/Models/CommonServiceAPIResponse.cs
1,620
C#
using System.Collections.Generic; using Horizon.Payment.Alipay.Response; namespace Horizon.Payment.Alipay.Request { /// <summary> /// koubei.retail.wms.goodssafetyinventory.batchquery /// </summary> public class KoubeiRetailWmsGoodssafetyinventoryBatchqueryRequest : IAlipayRequest<KoubeiRetailWmsGoods...
23.048387
141
0.555283
[ "Apache-2.0" ]
bluexray/Horizon.Sample
Horizon.Payment.Alipay/Request/KoubeiRetailWmsGoodssafetyinventoryBatchqueryRequest.cs
2,880
C#
using System; using System.Diagnostics; using System.IO; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Threading; using FirstFloor.ModernUI.Windows.Controls; using Microsoft.Win32; namespace Captura { public class TrimmerViewModel : NotifyPropertyChanged, ...
24.786441
133
0.446663
[ "MIT" ]
anxgang/Captura
src/Captura/ViewModels/TrimmerViewModel.cs
7,314
C#
using Haengma.GS.Hubs; using Haengma.GS.Models; using Microsoft.AspNetCore.SignalR.Client; using Moq; using System; using System.Diagnostics; using System.Linq; using System.Linq.Expressions; using System.Threading.Tasks; using Xunit; namespace Haengma.Tests { public static class HubExtensions { publi...
44.101695
181
0.640085
[ "MIT" ]
Ekenstein/Haengma
Haengma.Tests/HubExtensions.cs
5,206
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.Collections.Generic; using System.Collections.Immutable; using System.Diagnostics; using...
46.184329
218
0.644579
[ "MIT" ]
bernd5/roslyn
src/Workspaces/Core/Portable/Workspace/Solution/SolutionState.cs
91,955
C#
using AMaaS.Core.Sdk.Models; using System; using System.Collections.Generic; using System.Text; namespace AMaaS.Core.Sdk.Transactions.Models { public class Code : AMaaSModel { #region Properties public string CodeValue { get; set; } #endregion } }
17.882353
46
0.638158
[ "Apache-2.0" ]
amaas-fintech/amaas-core-sdk-dotnet
AMaaS.Core.Sdk.Transactions/Models/Code.cs
306
C#
using Dotmim.Sync; using Dotmim.Sync.Enumerations; using Dotmim.Sync.SqlServer; using System; using System.Threading.Tasks; namespace ProvisionDeprovision { class Program { private static string serverConnectionString = $"Data Source=(localdb)\\mssqllocaldb; Initial Catalog=AdventureWorks;Integrated S...
43.899441
155
0.620769
[ "MIT" ]
NgoVoQuocAnh/Dotmim.Sync
Samples/ProvisionDeprovision/Program.cs
7,860
C#
// -------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // -------------------------------------------------------------------------- using System.IO; namespace Microsoft.Azure.Management.ApiManage...
36.777778
93
0.588117
[ "MIT" ]
Azure/azure-api-management-devops-example
tests/ArmTemplates.Tests/Extractor/Abstractions/ExtractorMockerWithOutputTestsBase.cs
995
C#
// 32feet.NET - Personal Area Networking for .NET // // InTheHand.Net.Sockets.BluetoothDeviceInfo // // Copyright (c) 2003-2020 In The Hand Ltd, All rights reserved. // This source code is licensed under the MIT License using InTheHand.Net.Bluetooth; using System; using System.Collections.Generic; namespace InTheHa...
20.795181
85
0.495365
[ "MIT" ]
msalandro/32feet
InTheHand.Net.Bluetooth/BluetoothDeviceInfo.cs
1,728
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("Ac...
37.432432
84
0.74296
[ "MIT" ]
arturl/SFCluster
service/Actor2/Properties/AssemblyInfo.cs
1,388
C#
using Microsoft.AspNet.Mvc; using Microsoft.Framework.Configuration; using Microsoft.Framework.OptionsModel; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace TKDemoMVC.Controllers { public class Data123Config { public int Value1 { get; set;...
34.090909
126
0.640889
[ "MIT" ]
tkopacz/aspnet5-tkdemo-beta7
TKDemoMVC_beta7/src/TKDemoMVC/Controllers/OptionsController.cs
1,127
C#
using GameFramework; using GameFramework.ObjectPool; using UnityEngine; using UnityGameFramework.Runtime; namespace UGFExtensions.Texture { public class TextureItemObject : ObjectBase { private TextureLoad m_TextureLoad; private ResourceComponent m_ResourceComponent; public static Textu...
28.779661
164
0.557715
[ "MIT" ]
FingerCaster/UGFExtension
Assets/Scripts/TextureExtension/TextureItemObject.cs
1,722
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; namespace IniParse { /// <summary> /// Represents a section in an ini file /// </summary> public class IniSection : Validateable, ICloneable { /// <summary> /// Gets or...
29.508547
100
0.476466
[ "MIT" ]
AyrA/IniParse
IniParse/IniSection.cs
6,907
C#