max_stars_repo_path
stringlengths
3
255
max_stars_repo_name
stringlengths
5
116
max_stars_count
int64
0
107k
id
stringlengths
1
7
content
stringlengths
63
1.05M
DecoratorPattern/DecoratorPattern/DecoratorPattern/Program.cs
mahedee/code-sample
4
7032580
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace DecoratorPattern { public class Program { static void Main(string[] args) { //Base Insturment class CricketInstrument objCricketInstruments = new BasePackage(); ...
src/SortReferencesByParentChild/Addon.cs
Citavi/C6-Add-Ons-and-Online-Sources
14
7032581
using SwissAcademic.Citavi.Shell; using SwissAcademic.Controls; using System; using System.Windows.Forms; namespace SwissAcademic.Addons.SortReferencesByParentChildAddon { public partial class Addon : CitaviAddOn<MainForm> { // EventHandlers void MainForm_FormClosing(object sender, FormClosin...
src/MedMan.Application/Patients/Commands/UpdatePatient/UpdatePatientCommand.cs
matt-goldman/full-stack-csharp
0
7032582
using MediatR; using MedMan.Application.Common.Exceptions; using MedMan.Application.Interfaces; using MedMan.Domain.Entities; using System; using System.Threading; using System.Threading.Tasks; namespace MedMan.Application.Patients.Commands.UpdatePatient { public class UpdatePatientCommand : IRequest { ...
src/RealTime/Core/RealTimeCore.cs
simog6/RealTime
0
7032583
<filename>src/RealTime/Core/RealTimeCore.cs // <copyright file="RealTimeCore.cs" company="dymanoid"> // Copyright (c) dymanoid. All rights reserved. // </copyright> namespace RealTime.Core { using System; using System.Collections.Generic; using RealTime.Config; using RealTime.CustomAI; using RealT...
CStoJS/Tree/Expressions/BinaryExpressions/AssignationExpressionNode.cs
rNexeR/CSharpToJS
0
7032584
using System; using CStoJS.Exceptions; using CStoJS.LexerLibraries; namespace CStoJS.Tree { public class AssignationExpressionNode : BinaryExpressionNode { public AssignationExpressionNode(ExpressionNode left, Token operador, ExpressionNode right) : base(left, operador, right) { } ...
com/netfx/src/clr/bcl/system/security/permissions/strongnameidentitypermission.cs
npocmaka/Windows-Server-2003
17
7032585
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== // StrongNameIdentityPermission.cool // // author: gregfee // namespace System.Security.Permissions { using System; using SecurityElement = System.Security.SecurityElement; using System.Security.Util...
ctlNoRentingInfo.ascx.cs
richardreamz/rentaboat
0
7032586
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; public partial class ctlNoRentingInfo : System.Web.UI.UserControl { protected void Page_Load(object sender, EventArgs e) { } public void se...
FileViewer/Form1.cs
chronium/ChronosEngine
4
7032587
<reponame>chronium/ChronosEngine using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using ChronosEngine.FileStructure; namespace FileViewe...
src/Shamyr.Expendity.Server.Service/Repositories/SummaryRepository.cs
prixladi/expendity-server
0
7032588
<filename>src/Shamyr.Expendity.Server.Service/Repositories/SummaryRepository.cs using System.Linq; using System.Threading; using System.Threading.Tasks; using AutoMapper; using Microsoft.EntityFrameworkCore; using Shamyr.Expendity.Server.Entities; using Shamyr.Expendity.Server.Service.Database; using Shamyr.Expendity....
src/Machete.X12Schema/V5010/Segments/Maps/PCTMap.cs
ahives/Machete
3
7032589
<filename>src/Machete.X12Schema/V5010/Segments/Maps/PCTMap.cs<gh_stars>1-10 namespace Machete.X12Schema.V5010.Maps { using X12; using X12.Configuration; public class PCTMap : X12SegmentMap<PCT, X12Entity> { public PCTMap() { Id = "PCT"; Name = "Percent A...
src/Microsoft.Health.Dicom.Core/Features/Validation/IElementMinimumValidator.cs
rohankhera/dicom-server
205
7032590
<reponame>rohankhera/dicom-server<gh_stars>100-1000 // ------------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See LICENSE in the repo root for license information. // -------...
src/Version1/BlobsHttpClientV1.cs
pip-services-infrastructure/pip-clients-blobs-dotnet
0
7032591
using System; using System.Collections.Generic; using System.IO; using System.Threading.Tasks; using PipServices3.Commons.Config; using PipServices3.Commons.Data; using PipServices3.Rpc.Clients; namespace PipServices.Blobs.Client.Version1 { public class BlobsHttpClientV1: CommandableHttpClient, IBlobsClientV1, IB...
Net SDK Unit Tests/Unit Tests/Impressions/SelfUpdatingTreatmentLogUnitTests.cs
mssplitio/.net-client
6
7032592
using Microsoft.VisualStudio.TestTools.UnitTesting; using Moq; using Splitio.Domain; using Splitio.Services.Impressions.Classes; using Splitio.Services.Impressions.Interfaces; using Splitio.Services.Shared.Classes; using System.Collections.Generic; using System.Threading; namespace Splitio_Tests.Unit_Tests.Impression...
Mvc/src/Microsoft.AspNetCore.Mvc.Abstractions/Abstractions/ActionInvokerProviderContext.cs
Trizhya/Prueba3
0
7032593
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; namespace Microsoft.AspNetCore.Mvc.Abstractions { public class ActionInvokerProviderContext { public ActionInvok...
WebApp1.Tests/HomeControllerTest.cs
kendrahavens/TestCoverageSample
2
7032595
using Microsoft.VisualStudio.TestTools.UnitTesting; using Microsoft.AspNetCore.Mvc; using WebApp1; using WebApp1.Controllers; using System; namespace WebApp1.Tests { [TestClass] public class HomeControllerTest { [TestMethod] public void Index() { // Arrange H...
cards/BOOMSDAY/BOTA/Sim_BOTA_211.cs
chi-rei-den/Silverfish
1
7032596
/* _BEGIN_TEMPLATE_ { "id": "BOTA_211", "name": [ "超级士兵", "Super Soldier" ], "text": [ "每当你召唤一个攻击力小于或等于3的随从,使其获得<b>冲锋</b>。", "Whenever you summon a minion with 3 or less Attack, give it <b>Charge</b>." ], "CardClass": "NEUTRAL", "type": "MINION", "cost": 3, "rarity": null, "set": "B...
src/nWins.Game/GameBoard.cs
Bonifatius94/nwins
1
7032597
<reponame>Bonifatius94/nwins<gh_stars>1-10 using Godot; using System; using System.Linq; using nWins.Lib.Core; using nWins.Lib.Settings; using nWins.Lib.Session; using nWins.Lib.Agent; using nWins.Lib.Factory; public class GameBoard : Node2D { // define height and width of the game board private const int ROWS = 4; ...
UJCSystem/Vokabular.Shared.DataContracts/Search/OldCriteriaItem/SortEnum.cs
RIDICS/ITJakub
3
7032598
using System.Runtime.Serialization; namespace Vokabular.Shared.DataContracts.Search.OldCriteriaItem { [DataContract(Namespace = "http://schemas.datacontract.org/2004/07/ITJakub.Shared.Contracts.Searching.Criteria", Name = "SortEnum")] public enum SortEnum : short { [EnumMember] Author = 0, ...
ElectronicZone.Wpf/Model/SupportIncome.cs
sumit002/EZone.Wpf
0
7032599
<reponame>sumit002/EZone.Wpf using System; namespace ElectronicZone.Wpf.Model { public class SupportIncome { #region Properties private int _id; private string _description; private double _amount; private DateTime _supportDate; private string _remarks; ...
src/cloudscribe.Core.CompiledViews.Bootstrap4/Views/Shared/EmailTemplates/PasswordResetHtmlEmail.cshtml
mfoitzik/cloudscribe
595
7032600
<filename>src/cloudscribe.Core.CompiledViews.Bootstrap4/Views/Shared/EmailTemplates/PasswordResetHtmlEmail.cshtml @model cloudscribe.Core.Web.ViewModels.Email.PasswordResetEmailViewModel @{ Layout = "_LayoutEmailNotification"; ViewData["Title"] = "Password Reset"; ViewData["Site"] = Model.Tenant; } A pa...
dacs7/src/Dacs7/Domain/RequestItem.cs
insite-gmbh/InacS7Core
0
7032601
// Copyright (c) <NAME>. All rights reserved. // See License in the project root for license information. using Dacs7.Domain; using System; namespace Dacs7 { public abstract class RequestItem { public PlcArea Area { get; protected set; } public ushort DbNumber { get; protected set; } ...
Versionr/Commands/SetRemote.cs
eatplayhate/versionr
35
7032602
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using CommandLine; namespace Versionr.Commands { class SetRemoteVerbOptions : VerbOptionBase { [Option('r', "remote", Required = false, HelpText = "Specifies the remote URL.",...
src/Metaseed.Test/Metaseed.MetaStudioTest/Metaseed.Core/MVVM/Commands/FakeRemoteCommandServer.cs
metaseed/MetaStudio
4
7032603
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Threading; using System.Threading.Tasks; using Metaseed.MetaStudioTest.Metaseed.Core.MVVM.Commands; using Metaseed.MVVM.Commands; using Microsoft.VisualStudio.TestTools.UnitTesting; n...
code/dotnet/FactSetConcordance/v1/src/FactSet.SDK.FactSetConcordance/Model/EntityMatchRequestInput.cs
factset/enterprise-sdk
6
7032604
/* * FactSet Concordance API * * The FactSet Concordance API provides the ability to programmatically look up several types of entities by their name and other attributes. It attempts to match attributes that you supply for the entity and returns as many match candidates as it can find. The result is a \"concorded\"...
Rotating.cs
BorislavD/Arrays-and-Lists-CSharp
0
7032605
<reponame>BorislavD/Arrays-and-Lists-CSharp<filename>Rotating.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Rotating { class Rotating { static void Main(string[] args) { int[] arr1 = new ...
XenAdmin/ConsoleView/VNCTabView.cs
edwintorok/xenadmin
0
7032606
/* Copyright (c) <NAME>, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, * with or without modification, are permitted provided * that the following conditions are met: * * * Redistributions of source code must retain the above * copyright notice, this l...
src/Services/Interfaces/IUserAgentService.cs
anhgeeky/Detection
424
7032607
<gh_stars>100-1000 // Copyright (c) 2014-2022 <NAME>, All Rights Reserved. Apache License, Version 2.0 using Wangkanai.Detection.Models; namespace Wangkanai.Detection.Services; /// <summary> /// Provides the APIs for query client access device. /// </summary> public interface IUserAgentService { /// <summary> ...
CMS.Entities/Contracts/Enums.cs
hosseinats/BaseCoreCMS
1
7032608
<filename>CMS.Entities/Contracts/Enums.cs<gh_stars>1-10 using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Text; namespace CMS.Entities.Contracts { public class Enums { public enum PostType { [Display(Name = "پست بلاگ")] ...
src/WebUI/CoolStore.WebUI.Host/GraphQL/Generated/CatalogProductDtoFilterSerializer.cs
BlazorHub/practical-dapr
6
7032609
<filename>src/WebUI/CoolStore.WebUI.Host/GraphQL/Generated/CatalogProductDtoFilterSerializer.cs using System; using System.Collections; using System.Collections.Generic; using StrawberryShake; namespace CoolStore.WebUI.Host { [System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial ...
HTML_Interfaces/IHTMLMetaElement.cs
prog76/csexwb2
4
7032610
<reponame>prog76/csexwb2 using System; using System.Runtime.InteropServices; using System.Runtime.InteropServices.ComTypes; using System.Collections; namespace IfacesEnumsStructsClasses { #region IHTMLMetaElement Interface [ComImport, ComVisible(true), Guid("3050f203-98b5-11cf-bb82-00aa00bdce0b")] [Interfa...
SmartGlass/MediaMetadata.cs
topcats/xbox-smartglass-csharp
46
7032611
<filename>SmartGlass/MediaMetadata.cs using System; using SmartGlass.Common; namespace SmartGlass { internal class MediaMetadata : ISerializable { public string Name { get; set; } public string Value { get; set; } public void Deserialize(EndianReader reader) { Name...
OpenMysticSimpleTcp/Events/Implementation/StreamDataReceivedEvent.cs
P3TE/OpenMysticSimpleTcp
0
7032612
<gh_stars>0 using System; namespace OpenMysticSimpleTcp.ReadWrite { public class StreamDataReceivedEvent : StreamEventBase { private byte[] receivedData; public StreamDataReceivedEvent(byte[] receivedData) { this.receivedData = receivedData; } public byte[] GetReceivedData() { return receivedData; ...
src/TxCommand.Mongo.Abstractions/ISessionFactory.cs
reecerussell/tx-command
0
7032613
<filename>src/TxCommand.Mongo.Abstractions/ISessionFactory.cs namespace TxCommand.Abstractions { /// <summary> /// Used to instantiate new instances of <see cref="ISession"/>. /// </summary> public interface ISessionFactory : ISessionFactory<ISession> { } }
MyShopAdmin/obj/Debug/netstandard2.0/MyShopAdmin.Views.HomePage.xaml.g.cs
robhellest/directreleaf
0
7032614
<reponame>robhellest/directreleaf<gh_stars>0 //------------------------------------------------------------------------------ // <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 co...
src/orleans/Chess.Orleans.Contract/IUserGrain.cs
jroliveira/chess
29
7032615
<reponame>jroliveira/chess<gh_stars>10-100 namespace Chess.Orleans.Contract { using Chess.Infra.Monad; using global::Orleans; public interface IUserGrain : IGrainObserver { void GameChanged(Try<Match> match); void YourMove(Try<Match> match, IMatchGrain matchGrain); } }
Engine/extlibs/IosLibs/mono-2.6.7/mcs/class/System.Web/System.Web/SiteMap.cs
zlxy/Genesis-3D
0
7032616
<gh_stars>0 // // System.Web.SiteMap // // Authors: // <NAME> (<EMAIL>) // // (C) 2003 <NAME> // // // 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 // witho...
Dependency/tests/ZarDevs.DependencyInjection.Tests/IocPerformanceConstruct.cs
goofybryan/ZarDevs
1
7032617
using System; using Xunit; using Xunit.Abstractions; namespace ZarDevs.DependencyInjection.Tests { [CollectionDefinition("Performance", DisableParallelization = true)] public abstract class IocPerformanceConstruct<TFixture> where TFixture : class, IIocPerformanceTestFixture { #region Fields ...
ExampleShaderEditorApp/Render/Renderer.cs
startnine/NodeNetwork
0
7032618
using System; using System.Linq; using MathNet.Numerics.LinearAlgebra; using OpenGL; namespace ExampleShaderEditorApp.Render { public class Renderer { public void Render(int width, int height, RenderObject root, Camera camera) { Gl.Viewport(0, 0, width, height); Gl.Ena...
OTAPI.Modifications/OTAPI.Modifications.Player.Save/Hooks/Save.cs
kevzhao2/Open-Terraria-API
53
7032619
namespace OTAPI { public static partial class Hooks { public static partial class Player { #region Handlers public delegate HookResult PreSaveHandler(global::Terraria.IO.PlayerFileData playerFile, ref bool skipMapSave); public delegate void PostSaveHandler(global::Terraria.IO.PlayerFileData playerFile, ...
scf/LBS.Amap.SDK/Models/Direction/IntegratedParameter.cs
dotnetcloudbase/findjobtclooud
22
7032620
using System.ComponentModel.DataAnnotations; namespace LBS.Amap.SDK.Models.Direction { /// <summary> /// 公交路径规划参数 /// </summary> public class IntegratedParameter : BaseParameter { /// <summary> /// 出发点 /// </summary> [Display(Name = "origin")] public string ...
src/WinUI/ArcGISRuntime.WinUI.Viewer/SourceCodeViewer.xaml.cs
brayden-marshall/arcgis-runtime-samples-dotnet
1
7032621
// Copyright 2019 Esri. // // Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. // You may obtain a copy of the License at: http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software...
TVTComment/Views/Converters/ColorToSolidColorBrushConverter.cs
noriokun4649/TVTComment
22
7032622
using System; using System.Globalization; using System.Windows.Data; using System.Windows.Media; namespace TVTComment.Views.Converters { class ColorToSolidColorBrushConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { ...
Xamarin.PinningAppDemo.Android/Services/AndroidClientHandler/AndroidHttpResponseMessage.cs
Orbital8/PinningAppDemo
3
7032623
<filename>Xamarin.PinningAppDemo.Android/Services/AndroidClientHandler/AndroidHttpResponseMessage.cs // // Xamarin.Android SDK // // The MIT License (MIT) // // Copyright (c) .NET Foundation Contributors // // All rights reserved. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of ...
Spider/main.cs
dokkillo/Crawler
0
7032624
<gh_stars>0 using System.Threading; using Spider.BLL; namespace Spider { class Program { static int SLEEP_TIME = 30000; static void Main(string[] args) { do { System.Console.WriteLine("--------------------------------------"); ...
Assets/Boss.cs
Zerroth/AIStatesMachineAssignment
0
7032625
using UnityEngine; using System.Collections; using UnityEngine.UI; public class Boss : MonoBehaviour { Transform boss,player; float hurtTimer; float dropTimer; public float rotateHurtSpeed; Vector3 rotateHurtDir; float coolDown; float bossSpeed = 10f; float chargeSpeed = 20f; int hp; int phase; public Tex...
DracoonSdk/SdkInternal/DracoonSharesImpl.cs
dracoon/dracoon-csharp-sdk
4
7032626
using Dracoon.Crypto.Sdk.Model; using Dracoon.Sdk.Error; using Dracoon.Sdk.Filter; using Dracoon.Sdk.Model; using Dracoon.Sdk.SdkInternal.ApiModel; using Dracoon.Sdk.SdkInternal.ApiModel.Requests; using Dracoon.Sdk.SdkInternal.Mapper; using Dracoon.Sdk.SdkInternal.Util; using Dracoon.Sdk.SdkInternal.Validator; using D...
source/Services/BusyService/IBusyService.cs
nanoframework/nf-ANT
4
7032627
<filename>source/Services/BusyService/IBusyService.cs // // Copyright (c) 2017 The nanoFramework project contributors // See LICENSE file in the project root for full license information. // using System; using System.Collections.Generic; using System.Linq; namespace nanoFramework.ANT.Services.BusyService { publ...
Geometry-Escape/Assets/UI/Scripts/UI/Window/UIWindowManager.cs
edisonlee0212/Geometry-Escape
0
7032628
using UnityEngine; using System.Collections.Generic; namespace DuloGames.UI { public class UIWindowManager : MonoBehaviour { private static UIWindowManager m_Instance; /// <summary> /// Gets the current instance of the window manager. /// </summary> public static UIWindowMana...
FxSsh/Messages/Connection/ChannelOpenFailureMessage.cs
IPA-CyberLab/IPA-DN-Fork-SSHServer
5
7032629
<reponame>IPA-CyberLab/IPA-DN-Fork-SSHServer using System.Text; namespace FxSsh.Messages.Connection { [Message("SSH_MSG_CHANNEL_OPEN_FAILURE", MessageNumber)] public class ChannelOpenFailureMessage : ConnectionServiceMessage { private const byte MessageNumber = 92; public uint RecipientCh...
src/Lizoc.TextScript/Source/Lizoc/TextScript/Runtime/IListAccessor.cs
lizoc/textscript
5
7032630
// ----------------------------------------------------------------------- // <copyright file="IListAccessor.cs" repo="TextScript"> // Copyright (C) 2018 Lizoc Inc. <http://www.lizoc.com> // The source code in this file is subject to the MIT license. // See the LICENSE file in the repository root directory...
UnitTest/ConfigTest.cs
xztaityozx/taa
0
7032631
<filename>UnitTest/ConfigTest.cs<gh_stars>0 using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using Xunit; using taa.Config; namespace UnitTest { public class ConfigTest { private const string Yml = @"conditions: A: N1[2.5n]<=10 B: ...
imageClipPaste/Settings.cs
mizutuu/imageClipPaste
6
7032632
<reponame>mizutuu/imageClipPaste<gh_stars>1-10 namespace imageClipPaste.Properties { // このクラスでは設定クラスでの特定のイベントを処理することができます: // SettingChanging イベントは、設定値が変更される前に発生します。 // PropertyChanged イベントは、設定値が変更された後に発生します。 // SettingsLoaded イベントは、設定値が読み込まれた後に発生します。 // SettingsSaving イベントは、設定値が保存される...
Assets/Boner2D/Scripts/Editor/SetSortingCurveToConstant.cs
playemgames/Boner2D
58
7032633
<reponame>playemgames/Boner2D /* The MIT License (MIT) Copyright (c) 2017 - 2018 Play-Em 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 righ...
snippets/csharp/VS_Snippets_CLR_Classic/classic FileAccess Example/CS/source.cs
BohdanMosiyuk/samples
2
7032634
<gh_stars>1-10 using System; using System.IO; using System.Windows.Forms; public class Form1: Form { protected void Method(string name) { // <Snippet1> FileStream s2 = new FileStream(name, FileMode.Open, FileAccess.Read, FileShare.Read); // </Snippet1> } }
CaptainSonarUnity/Assets/PluginShareSDK/ShareSDK/PlatformType.cs
SES-xuelan/Captain-Sonar-Unity
0
7032635
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.18408 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated...
MyBudget.WebUI/Pages/Index.cshtml.cs
aesalmela/personal-budget
0
7032637
<filename>MyBudget.WebUI/Pages/Index.cshtml.cs<gh_stars>0 using System; using System.Collections.Generic; using System.Linq; using Microsoft.AspNetCore.Mvc.RazorPages; using Microsoft.AspNetCore.Mvc.Rendering; using MyBudget.DAL; using MyBudget.WebUI.Models; namespace MyBudget.WebUI.Pages { public class IndexMode...
src/Rabbitual/Configuration/Scenario.cs
BjartN/Rabbitual
0
7032638
<filename>src/Rabbitual/Configuration/Scenario.cs namespace Rabbitual.Configuration { public class ScenarioConfig { public ScenarioConfig(AgentConfig[] configs) { Scenario = configs; } public AgentConfig[] Scenario { get; set; } } }
src/IO.Ably.Tests.Shared/Infrastructure/ResourceHelper.cs
dpflucas/ably-dotnet
0
7032640
<gh_stars>0 using System; using System.IO; using System.Reflection; namespace IO.Ably.Tests { public static class ResourceHelper { public static string GetResource(string localResName) { Assembly ass = typeof(ResourceHelper).Assembly; string defaultNamespace = ass.GetNam...
source/ChromeDevTools/Protocol/Chrome/Page/ColorPickedEvent.cs
vadik007/ChromeDevTools
0
7032641
<filename>source/ChromeDevTools/Protocol/Chrome/Page/ColorPickedEvent.cs using MasterDevs.ChromeDevTools;using Newtonsoft.Json; namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Page { /// <summary> /// Fired when a color has been picked. /// </summary> [Event(ProtocolName.Page.ColorPicked)] [SupportedBy("Chrom...
gpayments-dotnet-core/Model/Refund.cs
djhvscf/gpayments-dotnet-core
3
7032642
<reponame>djhvscf/gpayments-dotnet-core using Newtonsoft.Json; namespace gpayments_core.Model { public class Refund { [JsonProperty("refund_id")] public string RefundId { get; set; } [JsonProperty("charge_id")] public string ChargeId { get; set; } [JsonProperty("amoun...
src/Web/WeLearn.Web/Areas/Administration/Views/Answers/Create.cshtml
shllshckd/WeLearn
11
7032643
@model AnswerInputModel @{ ViewData["Title"] = "Create an answer"; } @{ var points = "points"; } <div class="container text-center"> <h2>@ViewData["Title"]</h2> <hr/> <div class="col-sm-10 offset-sm-1 col-md-6 offset-md-3 text-center"> <form asp-area="Administration" asp-controller="Answers" asp...
catboost/dotnet/CatBoostNetTests/DownloadHelpers.cs
ibr11/catboost
2
7032644
using System; using System.Collections.Generic; using System.Net; using System.Text; namespace CatBoostNetTests { public class DownloadHelpers { public static void DownloadDataset(string url, string outFile) { using (var client = new WebClient()) { clien...
CSharp8/MinorFeatures/VerbatimInterpolatedStringLiterals.cs
n-l-vasilyev/DemoCode
387
7032645
using System; namespace MinorFeatures { class VerbatimInterpolatedStringLiterals { static void Main() { // Only of these was valid in C# 7. I can't remember which. Console.WriteLine(@$"This is valid"); Console.WriteLine($@"This is valid too"); } ...
src/LinqToExcel.Tests/WorkSheetNameTests.cs
firstruner/LinqToExcel
867
7032646
using System; using System.IO; using NUnit.Framework; namespace LinqToExcel.Tests { [Author("<NAME>", "<EMAIL>")] [Category("Integration")] [TestFixture] public class WorkSheetNameTests { private String _filesDirectory; [OneTimeSetUp] public void Setup() { var testDirectory =...
src/JoinRpg.Dal.Impl/Migrations/201603081354491_FieldsMandatory.cs
joinrpg/joinrpg-ne
22
7032647
namespace JoinRpg.Dal.Impl.Migrations { using System.Data.Entity.Migrations; public partial class FieldsMandatory : DbMigration { public override void Up() => AddColumn("dbo.ProjectFields", "MandatoryStatus", c => c.Int(nullable: false)); public override void Down() => DropColumn("dbo.Proj...
src/StarterApp.Core/Areas/Supplies/Commands/CreateSupplyHeaderCommand.cs
mSamirTT/Simple_Inventory_Public
0
7032648
using MediatR; using StarterApp.Core.Areas.Supplies.Entities; using StarterApp.Core.Areas.Supplies.ViewModels; using StarterApp.Core.Common.Mappings; using StarterApp.Core.Common.Models; using System; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; namespace StarterApp.Core.Area...
Yotalab.PlanningPoker.Grains.Interfaces/Models/SessionInfo.cs
LDC7/Yotalab.PlanningPoker
0
7032649
<reponame>LDC7/Yotalab.PlanningPoker using System; using Orleans.Concurrency; namespace Yotalab.PlanningPoker.Grains.Interfaces.Models { /// <summary> /// Информация о сессии планирования. /// </summary> [Immutable] public class SessionInfo { /// <summary> /// Получить или установить и...
src/Ors.Core/Utilities/TypeUtils.cs
tianzhiyuan/Spellet
1
7032650
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Ors.Core.Components; using Ors.Core.Data; namespace Ors.Core.Utilities { public static class TypeUtils { public static bool Is(Type me, Type baseType) { ...
Assets/ExtendedLibrary/Editor/UnityEditor/EditorFields/Line.cs
laicasaane/Unity3D.ExtendedLibrary
1
7032651
<gh_stars>1-10 using UnityEngine; namespace UnityEditor { public static partial class EditorFields { public static void Line(float height = 1f) { Color defaultColor = GUI.backgroundColor; GUI.backgroundColor = Color.black; GUILayout.Box("", GUILayout.ExpandW...
src/OWSInstanceManagement/Requests/Instance/SpinUpServerInstanceRequest.cs
Sinidious/OWS
102
7032652
using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Options; using OWSData.Models.Composites; using OWSData.Models.StoredProcs; using OWSData.Repositories.Interfaces; using OWSShared.Interfaces; using OWSShared.Messages; using OWSShared.Options; using RabbitMQ.Client; using SimpleInjector; using System; using S...
Syn.Speech/Linguist/Dictionary/Word.cs
XandraAI/syn-speech
65
7032653
<gh_stars>10-100 using System; //REFACTORED namespace Syn.Speech.Linguist.Dictionary { /// <summary> /// Represents a word, its spelling and its pronunciation. /// </summary> public class Word : IComparable<Word> { /// <summary> /// The Word representing the unknown word. /...
Beam.Data/Migrations/20180612032510_InitialCreate.cs
marinehero/BEAM
1
7032654
<filename>Beam.Data/Migrations/20180612032510_InitialCreate.cs using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; namespace Beam.Data.Migrations { public partial class InitialCreate : Migration { protected override void Up(MigrationBuilder migrationBuilder) ...
TsinghuaNet/EnumerableEx.cs
M87BlackHole/TsinghuaNet
61
7032655
<gh_stars>10-100 using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using TsinghuaNet.Models; namespace TsinghuaNet { public static class EnumerableEx { public static IOrderedEnumerable<T> OrderBy<T, TKey>(this IEnumerable<T> source, Func<T, TKey> selector...
TubeStarDesktop/Helpers/RandomHelpers.cs
mcsyko/tubestar
0
7032656
<reponame>mcsyko/tubestar using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TubeStar { public static class RandomHelpers { private const int _videoCategoryLength = 18; private static Lazy<Random> _random; stat...
src/Volo.Blogging.Web/Areas/Blog/Helpers/TagHelpers/GravatarTagHelper.cs
lwqwag/Team.Bloging
1
7032657
using System; using System.ComponentModel; using System.Linq; using System.Security.Cryptography; using System.Text; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Razor.TagHelpers; namespace Volo.Blogging.Areas.Blog.Helpers.TagHelpers { /// <inheritdoc /> /// <summary> /// Returns a Globall...
src/DanvyBotWebApp/Global.asax.cs
danvy/danvybot
0
7032658
using Autofac; using Autofac.Integration.WebApi; using Microsoft.Bot.Builder.Dialogs; using Microsoft.Bot.Builder.Dialogs.Internals; using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Reflection; using System.Web.Http; using Microsoft.Bot.Builder.History; names...
Shelter/Game/EnemyCheckCollider.cs
ITALIA195/Shelter
3
7032659
using Mod; using Photon; using Photon.Enums; using UnityEngine; // ReSharper disable once CheckNamespace public class EnemyCheckCollider : Photon.MonoBehaviour { public bool active_me; private int count; public int dmg = 1; public bool isThisBite; private void FixedUpdate() { if (this....
src/Pomelo.Data.MySql/MySqlScript.cs
CodeCombLLC/ADO.NET-MySQL
0
7032660
<reponame>CodeCombLLC/ADO.NET-MySQL<filename>src/Pomelo.Data.MySql/MySqlScript.cs // Copyright (c) Pomelo Foundation. All rights reserved. // Licensed under the MIT. See LICENSE in the project root for license information. using Pomelo.Data.Common; using System.Collections.Generic; using System.Text; using System; usi...
Src/Compilers/CSharp/Portable/Binder/LocalScopeBinder.cs
semihokur/pattern-matching-csharp
6
7032661
// Copyright (c) Microsoft Open Technologies, Inc. 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.Collections.Immutable; using System.Diagnostics; using Microsoft.CodeAnalysis.CSharp.Sy...
solution/NearForums.Services/IMessagesService.cs
axence/nearforums
0
7032662
<reponame>axence/nearforums using System; using System.Collections.Generic; namespace NearForums.Services { public interface IMessagesService { /// <summary> /// Adds a new message to the topic /// </summary> /// <exception cref="ValidationException">If the model is not valid</exception> /// <par...
RPG/Effects/EffectModule.cs
telmengedar/StreamRC
1
7032663
using System.Collections.Generic; using System.Globalization; using System.Linq; using NightlyCode.Modules; using NightlyCode.Modules.Dependencies; using NightlyCode.StreamRC.Modules; using StreamRC.Core.Timer; using StreamRC.RPG.Effects.Battle; using StreamRC.RPG.Effects.Commands; using StreamRC.RPG.Effects.Modifiers...
aiof.messaging.services/TestConfigRepository.cs
kamacharovs/aiof-messaging
2
7032664
using System; using System.Collections.Generic; using System.Threading.Tasks; using System.Linq; using Microsoft.Extensions.Logging; using Microsoft.EntityFrameworkCore; using aiof.messaging.data; namespace aiof.messaging.services { public class TestConfigRepository : ITestConfigRepository { private...
src/Apps/ComLib.Apps.StockMarketApp/src/Lib/StockMarketAppArgs.cs
joelverhagen/Knapcode.CommonLibrary.NET
1
7032665
<gh_stars>1-10 using System; using System.Collections.Generic; using System.Linq; using System.Text; using CommonLibrary; namespace CommonLibrary.StockMarketApp { /// <summary> /// Object that should recieve the command line arguments. /// </summary> public class StockMarketAppArgs { ///...
Assets/Animations/Wizard/Boss_Walk.cs
lFirsl/Hunter-Huntee
0
7032666
<reponame>lFirsl/Hunter-Huntee using System.Collections; using System.Collections.Generic; using UnityEngine; public class Boss_Walk : StateMachineBehaviour { private Transform player; public float walkSpeed = 2.5f; private Rigidbody rb; private bossScript boss; public float attackRange = 5f; ...
src/WinMan.Windows/Windows/DummyVirtualDesktop.cs
FancyWM/winman-windows
2
7032667
<gh_stars>1-10 using System; namespace WinMan.Windows { public class DummyVirtualDesktop : IVirtualDesktop { public bool IsCurrent => true; public int Index => 0; public string Name { get; private set; } = "Main Desktop"; public IWorkspace Workspace { get; } #pragma warning...
project/src/Behavioral/Strategy/Intermediate/SimUDuck/Program.cs
BaiGanio/Design-Patterns
0
7032668
using SimUDuck.Ducks; using SimUDuck.FlyBehavior; using SimUDuck.SwimBehavior; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SimUDuck { class Program { static void Main(string[] args) { Console.OutputEn...
source/MikhailKhalizev.Max/source/Program/Auto/z-1015-db0e.cs
mikhail-khalizev/max
3
7032669
<reponame>mikhail-khalizev/max using System; using MikhailKhalizev.Processor.x86.BinToCSharp; namespace MikhailKhalizev.Max.Program { public partial class RawProgram { [MethodInfo("0x1015_db0e-82aa723e")] public void Method_1015_db0e() { ii(0x1015_db0e, 5); push(0...
mini-bank/Views/MainForm.Designer.cs
kmavillanosa/point-tracker
0
7032670
<reponame>kmavillanosa/point-tracker  namespace mini_bank { partial class MainForm { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. ...
tests/Skoruba.Duende.IdentityServer.Admin.Api.UnitTests/Mappers/ApiScopeMappers.cs
mramra3004/Duende.IdentityServer.Admin
143
7032671
<gh_stars>100-1000 using FluentAssertions; using Skoruba.Duende.IdentityServer.Admin.Api.Dtos.ApiScopes; using Skoruba.Duende.IdentityServer.Admin.Api.Mappers; using Skoruba.Duende.IdentityServer.Admin.Api.UnitTests.Mocks; using Skoruba.Duende.IdentityServer.Admin.BusinessLogic.Dtos.Configuration; using Skoruba.Duende...
contract/AElf.Contracts.Resource.FeeReceiver/FeeReceiverContractState.cs
tomatopunk/AElf
0
7032672
using AElf.Contracts.MultiToken.Messages; using AElf.Sdk.CSharp.State; using AElf.Types; namespace AElf.Contracts.Resource.FeeReceiver { public class FeeReceiverContractState : ContractState { public BoolState Initialized { get; set; } internal TokenContractContainer.TokenContractReferenceState...
src/CSharpMinifier/SubstringPool.cs
atifaziz/CSharpMinifier
27
7032673
<reponame>atifaziz/CSharpMinifier<filename>src/CSharpMinifier/SubstringPool.cs<gh_stars>10-100 #region Copyright (c) 2019 <NAME>. 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...
Scripts/Runtime/Foundations/Functionallity/Hands/ProximityAndManipulationEvent.cs
LaplaceKorea/BouvetDevelopmentKit
0
7032674
<reponame>LaplaceKorea/BouvetDevelopmentKit<gh_stars>0 using Bouvet.DevelopmentKit.Internal.Utils; using UnityEngine; using UnityEngine.InputSystem; namespace Bouvet.DevelopmentKit.Input.Hands { public class ProximityAndManipulationEvent : MonoBehaviour { #pragma warning disable CS0649 [SerializeField...
WRK-V1.2/fx/src/configuration/system/configuration/stringvalidatorattribute.cs
intj-t/openvmsft
0
7032675
<filename>WRK-V1.2/fx/src/configuration/system/configuration/stringvalidatorattribute.cs //------------------------------------------------------------------------------ // <copyright file="StringValidatorAttribute.cs" company="Microsoft"> // // Copyright (c) 2006 Microsoft Corporation. All rights reserved. ...
src/CSharp/GeometricObjects/ParametricObjects.cs
cvandijck/VTKExamples
309
7032676
using System; using System.Collections.Generic; using System.ComponentModel; using System.Windows.Forms; using System.Diagnostics; using Kitware.VTK; namespace ActiViz.Examples { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void renderWindowCont...
presentation/Snippets/AsyncStateMachineDemo.cs
Flash0ver/F0-Talks-AsyncAwait
2
7032677
<gh_stars>1-10 #region AsyncStateMachine using System; using System.Threading; using System.Threading.Tasks; namespace Snippets { public static class AsyncStateMachineDemo { public static async Task MethodAsync(TimeSpan delay, CancellationToken cancellationToken = default) { Consol...
RolePlayingGame.Engine/Dices/Dice.cs
wprzadka/RolePlayingGame
0
7032678
using System; namespace RolePlayingGame.Engine.Dices { public class Dice : IDice { private readonly Random _random; public Dice(int seed) { _random = new Random(seed); } public int Roll(int k) { return _random.Next(1, k); } ...
src/Actor/PlayerStats.cs
codetojoy/WarO-CSharp-v2
0
7032679
<gh_stars>0 using System; namespace WarO_CSharp_v2.Actor { public class PlayerStats { public int Total { get; } public int NumGamesWon { get; } public int NumRoundsWon { get; } public PlayerStats() : this(0,0,0) {} private PlayerStats(int total, int numGamesWon, int nu...
MedallionComparers/Comparers.Create.cs
madelson/MedallionComparers
0
7032680
using System; using System.Collections.Generic; using System.Text; namespace Medallion.Collections { /// <summary> /// Contains utilities for creating and working with <see cref="IComparer{T}"/>s /// </summary> public static partial class Comparers { /// <summary> /// Creates a <se...
BarManagerApplication.Backend/src/BackendGestionaleBar.BusinessLayer/MapperProfile/CategoryMapperProfile.cs
N1K0232/BarManagerApplication
1
7032681
using AutoMapper; using BackendGestionaleBar.Shared.Models; using BackendGestionaleBar.Shared.Models.Requests; using ApplicationCategory = BackendGestionaleBar.DataAccessLayer.Entities.Category; namespace BackendGestionaleBar.BusinessLayer.MapperProfile { public class CategoryMapperProfile : Profile { ...
DependencyGraphGenerator/FormMainWindow.cs
sb1981/DependencyGraphGenerator
0
7032682
using DependencyGraphGeneratorFramework; using System; using System.Collections.Generic; using System.Windows.Forms; namespace DependencyGraphGenerator { public partial class FormMainWindow : Form { private TreeView treeViewMain = new TreeView(); private Microsoft.Msagl.GraphViewerGdi.GViewer ...