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
ShengtaiCore/Web/Spgateway/QueryTradeInfo/ResponseResult.cs
shengtai0201/ClassLibrary
0
7031303
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Shengtai.Web.Spgateway.QueryTradeInfo { public class ResponseResult : IResponseCreditResult, IResponseCBVResult { #region 回傳內容 ...
tests/MongoDB.Driver.Tests/ServerSessionPoolTests.cs
ideagenplc/mongo-driver
1
7031304
<filename>tests/MongoDB.Driver.Tests/ServerSessionPoolTests.cs /* Copyright 2017-present MongoDB Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICEN...
Katoa.Functional/Result.cs
keithn/katoa.functional
0
7031306
<filename>Katoa.Functional/Result.cs using System; namespace Katoa.Functional { public abstract record Failure; public abstract record Result<T > { public record Ok(T Value) : Result<T>; public record Error(Failure Failure) : Result<T>; // Map a value to a result public s...
CoreAdminLTE.StarterKit/Enums/Roles.cs
girishgodage/CoreAdminLTE.StarterKit
0
7031307
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace CoreAdminLTE.StarterKit.Enums { public enum Roles { SuperAdmin, Admin, Moderator, Basic } }
src/Common/Config.cs
yunify/qingstor-sdk-csharp
0
7031308
<reponame>yunify/qingstor-sdk-csharp using System; using System.Collections.Generic; using System.Linq; using System.Text; #if NET45 using System.Threading.Tasks; #elif NET35 || NET40 #endif using System.IO; using System.Web.Script.Serialization; using QingStor_SDK_NET.Yaml; namespace QingStor_SDK_NET.Common { //...
Specifications/Clients/DotNET/Integration/SomePublicEvent.cs
cratis/cratis
4
7031309
// Copyright (c) <NAME>. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using Aksio.Cratis.Events; namespace Aksio.Cratis.Integration; [EventType("c6ce97b7-4f81-44b2-9800-8396fe319b1e", isPublic: true)] public record SomePublicEvent(int Some...
Fluqi/Utilities/jCookie/Options/Options-Core.cs
toepoke/Fluqi
3
7031310
<filename>Fluqi/Utilities/jCookie/Options/Options-Core.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Web; using System.Web.Mvc; using System.Web.Mvc.Html; using Fluqi.Extension; using Fluqi.Extension.Helpers; namespace Fluqi.Utilities.jCookie { //...
Assets/CosmosFramework/Runtime/Base/Extensions/Reflection/TypeExts.cs
DonnYep/CosmosFramework
110
7031311
<filename>Assets/CosmosFramework/Runtime/Base/Extensions/Reflection/TypeExts.cs using System; using System.Collections.Generic; using System.Linq; namespace Cosmos { public static class TypeExts { public static bool IsAssignableTo(this Type @this, Type type) { return type.IsAssigna...
WagoModbusNet/Exceptions/ModbusException.cs
gsulc/WagoModbusNet
0
7031312
<reponame>gsulc/WagoModbusNet<gh_stars>0 using System; namespace WagoModbusNet { public class ModbusException : Exception { public byte Code { get; protected set; } public string Name { get; protected set; } public string Meaning { get; protected set; } public Modbus...
The_Magecal/Assets/Scripts/Enemy_AI.cs
OTCDT/The_Magecal
0
7031313
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Enemy_AI : MonoBehaviour { //Set the target variable public Transform target; //Sets attack delay float attk_del; //Sets enemy as 'enemy' Enemy enemy; //sets animator as 'enem_animator' Animat...
Assets/Scripts/Level01Controller.cs
JackalFoxtrot/Project02FPS
0
7031314
<reponame>JackalFoxtrot/Project02FPS<filename>Assets/Scripts/Level01Controller.cs using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; using UnityEngine.UI; public class Level01Controller : MonoBehaviour { [SerializeField] Text _currentScoreText...
Libraries/Atlas.Tabs/TabUtils.cs
garyhertel/Atlas
3
7031315
using Atlas.Extensions; using System; using System.Collections; using System.Collections.Generic; namespace Atlas.Tabs { public class TabUtils { public static List<Type> IgnoreHighlightTypes { get; set; } = new List<Type>(); public static bool ObjectHasLinks(object obj, bool ignoreEmpty = false) { if (obj ...
Score/SharpeRatio.cs
Indemos/Terminal-V2
7
7031316
using MathNet.Numerics.Statistics; using System; using System.Collections.Generic; using System.Linq; namespace ScoreSpace { /// <summary> /// Reward to risk ratio for a selected period /// Ra = Asset returns /// Rb = Risk-free returns /// IR = Interest rate /// Dev = Series deviation /// An...
Source/Synthesis.Tests/FieldTypes/NumericFieldTests.cs
rkuchler/Synthesis
27
7031317
using System; using Synthesis.Tests.Utility; using Xunit; namespace Synthesis.Tests.FieldTypes { [Trait("Category", "FieldType Tests")] public class NumericFieldTests : IDisposable { public NumericFieldTests() { new FieldTestTemplateCreator().CreateSampleTemplate(); } public void Dispose() { ...
src/Skoruba.MultiTenant.Identity/MultiTenantUserClaimsPrincipalFactory.cs
chadbengen/IdentityServer4.Admin
3
7031318
<gh_stars>1-10 using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Identity; using Microsoft.Extensions.Options; using Skoruba.MultiTenant.Abstractions; using Skoruba.MultiTenant.Configuration; using System.Linq; using System.Security.Claims; using System.Threading.Tasks; namespace Skoruba.MultiTenant.Identit...
src/Plainion.Wiki.Tests/DataAccess/DistributedPageAccessTest.cs
ronin4net/Plainion.Notes
0
7031319
<reponame>ronin4net/Plainion.Notes<filename>src/Plainion.Wiki.Tests/DataAccess/DistributedPageAccessTest.cs using System; using System.Collections.Generic; using System.Linq; using Plainion.Wiki.AST; using Plainion.Wiki.DataAccess; using Plainion.Wiki.UnitTests.Testing; using NUnit.Framework; using Moq; name...
Assets/Scripts/3rdParty/RPGStatSystem/RPGVital.cs
lost-home/CiGA2020
4
7031320
<filename>Assets/Scripts/3rdParty/RPGStatSystem/RPGVital.cs using System; namespace RPGStatSystem { /// <summary> /// RPGStat that inherits from RPGAttribute and implement IStatCurrentValueChange /// </summary> public class RPGVital : RPGAttribute, IStatValueCurrent { /// <summary> ///...
src/abstractions/Backend.Fx/Extensions/StringEx.cs
MatthiasWald/Backend.Fx
0
7031321
<filename>src/abstractions/Backend.Fx/Extensions/StringEx.cs<gh_stars>0 namespace Backend.Fx.Extensions { using System.Text.RegularExpressions; public static class StringEx { public static string Cut(this string s, int length) { if (string.IsNullOrEmpty(s)) { ...
src/ServiceFabricPubSub/ClientApp/ClientApp/GenericCommands.cs
flyingoverclouds/ServiceFabricPubSub
3
7031322
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ClientApp { public class GenericCommands { public static Task ToggleFlatDisplayCmd() { return Task.Run(() => { Program.FlatDispl...
ShellLink/Structures/Structure.cs
autodotua/LnkRepair
2
7031323
using System; using System.Text; namespace ShellLink.Structures { /// <summary> /// Abstract Structure class /// </summary> public abstract class Structure { /// <summary> /// Convert the Structure to a byte array /// </summary> /// <returns>Byte array representatio...
src/ViewModels/SetupFileViewer/FuelAndStrategyViewModel.cs
testpossessed/acc-setup-manager
1
7031324
<reponame>testpossessed/acc-setup-manager using System; using System.Collections.ObjectModel; using ACCSetupManager.Models; using Microsoft.Toolkit.Mvvm.ComponentModel; namespace ACCSetupManager.ViewModels.SetupFileViewer { public class FuelAndStrategyViewModel : ObservableObject { private int frontB...
ManagedAudioLibrariesTests/SoundExporterTests.cs
MarcosCobena/ManagedAudioLibraries
0
7031325
using System; using System.IO; using NAudio.Wave; using SoundExporter; using Xunit; namespace ManagedAudioLibrariesTests { public class SoundExporterTests : IDisposable { static readonly string[] _inputPaths = { AudioFiles.WavSR22050BR16CF1Filename, AudioFiles.Wa...
DAL/NhanVien.cs
Bac3Phi/SmilePhone
1
7031326
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated from a template. // // Manual changes to this file may cause unexpected behavior in your application. // Manual changes to this file will be overwritten if the code is regenerated....
Assets/TeamFolder/Maxen/Scripts/VisualThings/BobScript.cs
Fornan-II/Capstone2019_HalloweenTown
0
7031327
using System.Collections; using System.Collections.Generic; using UnityEngine; public class BobScript : MonoBehaviour { public float amplitude = 1.0f; public float frequency = 1.0f; protected virtual void Update() { //transform.localPosition.y += } }
Microsoft.Teams.Samples.TaskModule.Web/Dialogs/RootDialog.cs
Wajeed-msft/TaskModule
0
7031328
<filename>Microsoft.Teams.Samples.TaskModule.Web/Dialogs/RootDialog.cs using AdaptiveCards; using Microsoft.Bot.Builder.Dialogs; using Microsoft.Bot.Connector; using Microsoft.Bot.Connector.Teams; using Microsoft.Bot.Connector.Teams.Models; using Microsoft.Teams.Samples.TaskModule.Web.Helper; using Microsoft.Teams.Sam...
source/libs/Flash/Core/IMethodCall.cs
GrapeCity/pagefx
18
7031329
<filename>source/libs/Flash/Core/IMethodCall.cs using System; using DataDynamics.PageFX.Common.TypeSystem; using DataDynamics.PageFX.Flash.Abc; namespace DataDynamics.PageFX.Flash.Core { /// <summary> /// Defines common contract for units that present <see cref="IMethod"/>. /// </summary> internal interf...
Source/MQTTnet/Packets/MqttUserProperty.cs
klumhru/MQTTnet
2
7031330
<filename>Source/MQTTnet/Packets/MqttUserProperty.cs using System; namespace MQTTnet.Packets { public class MqttUserProperty { public MqttUserProperty(string name, string value) { Name = name ?? throw new ArgumentNullException(nameof(name)); Value = value ?? throw new A...
src/LibHac/Crypto/Impl/AesCoreNi.cs
Xpl0itR/LibHac
213
7031331
using System; using System.Diagnostics; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Intrinsics; using System.Runtime.Intrinsics.X86; using AesNi = System.Runtime.Intrinsics.X86.Aes; namespace LibHac.Crypto.Impl { [StructLayout(LayoutKind.Sequential, ...
ElementStreaming/Galkam.AspNetCore.ElementStreaming/Writers/DateTimeValueStreamWriter.cs
glenkleidon/galkam.AspNetCore.JSONElementStream
0
7031332
<gh_stars>0 using System; using System.Collections.Generic; using System.Text; namespace Galkam.AspNetCore.ElementStreaming.Writers { public class DateTimeValueStreamWriter: BaseValueStreamWriter { public override Type ValueType => typeof(DateTime); public DateTime? Value { get => AsDateTime(...
safnet.iba/Business/Entities/Location.cs
stephenfuqua/IbaMonitoring
1
7031333
<gh_stars>1-10 using safnet.iba.Business.DataTypes; namespace safnet.iba.Business.Entities { /// <summary> /// Abstract class for modeling a Location with latitude, longitude, and name. /// </summary> public abstract class Location : SafnetBaseEntity { /// <summary> /// Gets or set...
src/Lykke.Service.PayInternal/Models/Cashout/CashoutModel.cs
NovichikhinAlexey/Lykke.Service.PayInternal
0
7031334
<gh_stars>0 using System; using System.ComponentModel.DataAnnotations; using JetBrains.Annotations; using Lykke.Service.PayInternal.Validation; using LykkePay.Common.Validation; namespace Lykke.Service.PayInternal.Models.Cashout { /// <summary> /// Cashout request details /// </summary> public class C...
src/Vlc.DotNet.Core.Interops/Signatures/libvlc.h/libvlc_get_version.cs
HoraceYork88/Vlc.DotNet
994
7031335
using System; using System.Runtime.InteropServices; namespace Vlc.DotNet.Core.Interops.Signatures { /// <summary> /// Retrieve libvlc version. /// </summary> /// <returns>Return a string containing the libvlc version.</returns> [LibVlcFunction("libvlc_get_version")] [UnmanagedFunctionPointer(C...
src/Altinn.Apps/AppTemplates/AspNet/App.IntegrationTests/Mocks/Services/ValidationMockSI.cs
TheTechArch/altinn-studio
0
7031336
using Altinn.App.Services.Interface; using Altinn.App.Services.Models.Validation; using Altinn.Platform.Storage.Interface.Models; using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; namespace App.IntegrationTestsRef.Mocks.Services { public class ValidationMockSI : IVali...
Anagram.Tests/AnagramTests.cs
ldam77/AnagramCheck-csharp
0
7031337
<gh_stars>0 using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Collections.Generic; using Anagram; namespace Anagram.Tests { [TestClass] public class AnagramCheckerTest { [TestMethod] public void GetWord_ReturnsWord_String() { //Arrange string word = "bread"; AnagramCh...
Calculator/Nodes/Operators/PowOp.cs
elodea/SupaDupaCalculator
1
7031338
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Calculator { public class PowOp : OpNode { public PowOp() : base("^") { } public override double Calculate(double x1, double x2) { return Math.Pow(x1, x2); } } }
src/Microsoft.Management.Infrastructure/Options/Internal/CimSubscriptionDeliveryOptions.cs
adityapatwardhan/MMI
19
7031339
<filename>src/Microsoft.Management.Infrastructure/Options/Internal/CimSubscriptionDeliveryOptions.cs /* **============================================================================== ** ** Copyright (c) Microsoft Corporation. All rights reserved. See file LICENSE ** for license information. ** **=====================...
src/ResourceManager/Resources/Commands.Resources/Properties/Resources.Designer.cs
stankovski/azure-sdk-tools
2
7031340
<gh_stars>1-10 //------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.34014 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // ...
AppServices/AzureGuidance/WebApi/Models/OrderResource.cs
anuraj/azure-guidance
20
7031341
<reponame>anuraj/azure-guidance<filename>AppServices/AzureGuidance/WebApi/Models/OrderResource.cs using System; using System.Collections.Generic; using System.Linq; using System.Web; using AzureGuidance.Domain; namespace WebApi.Models { public class OrderResource { public IEnumerable<Order> Orders { g...
src/Samples/AlphaShadow/Commands/HelpCommand.cs
nefarius/AlphaVSS
0
7031342
/* Copyright (c) 2008-2016 <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 without limitation the rights * to use, copy, modify, merge, publ...
src/Conreign.Contracts/Gameplay/Events/MapUpdated.cs
smolyakoff/conreign
17
7031343
<reponame>smolyakoff/conreign<filename>src/Conreign.Contracts/Gameplay/Events/MapUpdated.cs using System; using Conreign.Contracts.Communication; using Conreign.Contracts.Gameplay.Data; using Orleans.Concurrency; namespace Conreign.Contracts.Gameplay.Events { [Serializable] [Immutable] public class MapUpd...
src/Nethereum.Geth/RPC/GethDebug/DebugTraceBlockByHash.cs
destenson/Nethereum--Nethereum
1
7031344
using System.Threading.Tasks; using Nethereum.JsonRpc.Client; using Newtonsoft.Json.Linq; namespace Nethereum.Geth.RPC.Debug { /// <Summary> /// Similar to debug_traceBlock, traceBlockByHash accepts a block hash and will replay the block that is already /// present in the database. /// </Summ...
src/Taskever/Friendships/FriendshipPolicy.cs
aspnetboilerplate/taskever
73
7031345
using Abp.Security.Users; namespace Taskever.Friendships { public class FriendshipPolicy : IFriendshipPolicy { public bool CanChangeFriendshipProperties(AbpUser user, Friendship friendShip) { //Can change only his own friendships. return user.Id == friendShip.User.Id; ...
net/SelemaTest/Translated/Test4giis.Selema.Mstest2/TestLifecycle4Repeated.cs
javiertuya/selema
2
7031346
///////////////////////////////////////////////////////////////////////////////////////////// /////// THIS FILE HAS BEEN AUTOMATICALLY CONVERTED FROM THE JAVA SOURCES. DO NOT EDIT /////// ///////////////////////////////////////////////////////////////////////////////////////////// using Giis.Selema.Framework.Mstest2; u...
src/SugarTalk.Api/Controllers/AuthenticationController.cs
SugarChat/SugarTalk.Api
2
7031347
using System.Threading.Tasks; using Mediator.Net; using Microsoft.AspNetCore.Mvc; using SugarTalk.Messages.Requests.Authentication; namespace SugarTalk.Api.Controllers { [ApiController] [Route("[controller]")] public class AuthenticationController : ControllerBase { private readonly IMediator _...
Source/TMagic/TMagic/CompSkeletonController.cs
Evyatar108/TMagic
13
7031348
using System; using System.Collections.Generic; using System.Linq; using Verse; using RimWorld; using UnityEngine; using Verse.AI; using Verse.Sound; using AbilityUser; namespace TorannMagic { [Serializable] public class CompSkeletonController : ThingComp { private bool initialized = false; ...
Events.Web/Views/Home/_EventDetails.cshtml
Dreammaster13/Events-Lab
1
7031349
@model Events.Web.Models.EventDetailsViewModel @if (Model.Description != null) { <div class="description">Description: @Model.Description</div> } @if (Model.Comments.Any()) { @:Comments: <ul> @foreach (var comment in Model.Comments) { <li> @comment.Text ...
src/ResourceManagement/BatchAI/Domain/InterfaceImpl/OutputDirectorySettingsImpl.cs
shemseddine/azure-libraries-for-net
0
7031350
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. namespace Microsoft.Azure.Management.BatchAI.Fluent { using Microsoft.Azure.Management.BatchAI.Fluent.Models; using Microsoft.Azure.Management.BatchAI.Flu...
src/OpenRasta/Data/ChangeSet`1.cs
openrasta/openrasta-core
40
7031351
<reponame>openrasta/openrasta-core #region License /* Authors: * <NAME> (<EMAIL>) * Copyright: * (C) 2007-2009 Caffeine IT & naughtyProd Ltd (http://www.caffeine-it.com) * License: * This file is distributed under the terms of the MIT License found at the end of this file. */ #endregion ...
Hepsiorada.Api/Controllers/ProductsController.cs
yunusbayrak/Backend-Sample
1
7031352
using Hepsiorada.Application.Commands.Product; using Hepsiorada.Application.Models; using Mapster; using MediatR; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Hepsiorada.Api.Controllers { ...
src/ATCommon.Utilities/Response/IResult.cs
ahmettugur/dotnet-core-webapi
0
7031353
using System; using System.Collections.Generic; using System.Runtime.Serialization; using System.Text; namespace ATCommon.Utilities.Response { public interface IResult<T> { [DataMember] public string Version { get; } [DataMember] public int StatusCode { get; set; ...
ImageViewer/Annotations/BasicTextAnnotationItem.cs
econmed/ImageServer20
1
7031354
#region License // Copyright (c) 2009, ClearCanvas 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 not...
Domain/SumOfMultiple.cs
calielc/CmdApp
0
7031355
<reponame>calielc/CmdApp using System; using System.Numerics; using System.Runtime.CompilerServices; namespace Domain { internal sealed class SumOfMultiple : ISumOfMultiple { public BigInteger Execute(BigInteger limit) { if (limit < BigInteger.Zero) { throw new ArgumentOutOfRan...
PickemApp/Views/BulkPickEditor/PickGames.cshtml
chrisofspades/PickemApp
1
7031356
@model PickemApp.Models.BulkPickEditor @{ ViewBag.Title = "Pick Games"; } <h2>Pick Games</h2> <h3>@Html.DisplayFor(model => model.Player.Name), @Html.DisplayFor(model => model.Year) Week @Html.DisplayFor(model => model.Week)</h3> @using (Html.BeginForm("SubmitPicks", "BulkPickEditor")) { @Html.ValidationSu...
src/go-src-converted/runtime/os_netbsd_arm.cs
rgwood/go2cs
249
7031358
<reponame>rgwood/go2cs // Copyright 2013 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // package runtime -- go2cs converted at 2020 October 09 04:47:32 UTC // import "runtime" ==> using runtime = go.runtime_package // Origi...
src/Arium/Graph.cs
aurnoi1/arium-navigation
0
7031359
/* * The Graph implementation is available * thanks to the work of <NAME>: * https://github.com/mburst/dijkstras-algorithm * * No license is available but following issue #19 * <NAME> (mburst) confirmed it could be used as * "any code you'd find on Stackoverflow or a similar websites" */ using Arium.Exception...
DirectN/DirectN/Generated/_D3DDDI_UPDATEGPUVIRTUALADDRESS_OPERATION_TYPE.cs
riQQ/DirectN
1
7031360
<filename>DirectN/DirectN/Generated/_D3DDDI_UPDATEGPUVIRTUALADDRESS_OPERATION_TYPE.cs // c:\program files (x86)\windows kits\10\include\10.0.18362.0\shared\d3dukmdt.h(1405,9) namespace DirectN { public enum _D3DDDI_UPDATEGPUVIRTUALADDRESS_OPERATION_TYPE { D3DDDI_UPDATEGPUVIRTUALADDRESS_MAP = 0, ...
server/ServerLibrary/Modes/BallTrough.cs
rampantslug/pinball-framework
1
7031361
<filename>server/ServerLibrary/Modes/BallTrough.cs using System; using System.Collections.Generic; using System.ComponentModel.Composition; using System.Linq; using System.Text; using System.Threading.Tasks; using BusinessObjects.Devices; using Hardware.Proc; namespace ServerLibrary.Modes { /// <summary> /// ...
src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/WorkflowDebugger.cs
drakeg/PowerShell
4
7031362
/********************************************************************++ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ using System; using System.Collections.Generic; using System.Activities; using System.Management.Automation; using ...
Source/EventHorizon.Blazor.TypeScript.Interop.Generator/Rules/IsArrayResponseType.cs
ADefWebserver/EventHorizon.Blazor.TypeScript.Interop.Generator
92
7031363
namespace EventHorizon.Blazor.TypeScript.Interop.Generator.Rules { using System.Linq; using EventHorizon.Blazor.TypeScript.Interop.Generator.AstParser.Api; using EventHorizon.Blazor.TypeScript.Interop.Generator.AstParser.Model.Types; using EventHorizon.Blazor.TypeScript.Interop.Generator.Model; pub...
Samples/IBuyStuff/IBuyStuff-cqrs/src/Domain/IBuyStuff.Domain.Services/DTO/AdHocCatalog.cs
nodashin/DDD-OnionArchitecture-Traning
1
7031364
using System.Collections; using System.Collections.Generic; using IBuyStuff.Domain.Customers; using IBuyStuff.Domain.Products; namespace IBuyStuff.Domain.Services.DTO { public class AdHocCatalog { public AdHocCatalog() { Customer = MissingCustomer.Instance; Products = n...
src/CaseManagement.HumanTask/Authorization/ILogicalPeopleGroupStore.cs
lulzzz/CaseManagement
21
7031365
<reponame>lulzzz/CaseManagement using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; namespace CaseManagement.HumanTask.Authorization { public interface ILogicalPeopleGroupStore { /// <summary> /// Get logical groups of a user. /// </summary> ...
Nuclear.Channels/IChannelConfiguration.cs
Mycenaean/Nuclear-Framework
3
7031366
<gh_stars>1-10 using System; using System.Collections.Generic; using System.Net; using System.Reflection; using System.Text; namespace Nuclear.Channels { internal interface IChannelConfiguration { ChannelConfigurationInfo Configure(HttpListener httpChannel, Type channel, MethodInfo method, string base...
Source/VertaIT.WPF.Demo/ViewModels/MainWindowViewModel.cs
VertaIT/ThemeWPF
4
7031367
<reponame>VertaIT/ThemeWPF<gh_stars>1-10 using VertaIT.WPF.Demo.Models; using VertaIT.WPF.Demo.Views.ObjectPanels; using System; using System.Collections.ObjectModel; using System.Linq; using System.Reflection; using System.Reflection.Emit; using System.Windows.Controls; using System.Windows.Media; namespace VertaIT....
src/Senparc.Weixin.MP/Senparc.WeixinTests/Utilities/HttpUtility/RequestUtilityTests.cs
65717212/WeiXinMPSDK
2
7031368
#region Apache License Version 2.0 /*---------------------------------------------------------------- Copyright 2017 <NAME> & Suzhou Senparc Network Technology Co.,Ltd. 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 co...
ProjetoMVC/Projeto.Entities/Status.cs
arkanael/ASPNET-MVC-02
0
7031369
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Projeto.Entities { public enum Status { Ativo = 1, Bloqueado = 0 } }
CadastroSeries_GRUD.Tests/UnitTest1.cs
Riei-Joaquim/CadastroSeries-GRUD-
0
7031370
<reponame>Riei-Joaquim/CadastroSeries-GRUD-<gh_stars>0 using Xunit; using CadastroSeries_GRUD.Src; using Moq; using CadastroSeries_GRUD.Models; using CadastroSeries_GRUD.Web.Controllers; using CadastroSeries_GRUD.Web; using Bogus; namespace CadastroSeries_GRUD.Tests { public class UnitTest1 { private F...
src/Perfolizer/Perfolizer/Common/Sample.cs
baijum/perfolizer
0
7031372
using System; using System.Collections.Generic; using System.Linq; using JetBrains.Annotations; using Perfolizer.Collections; namespace Perfolizer.Common { public class Sample { [NotNull] public IReadOnlyList<double> Values { get; } [NotNull] public IReadOnlyList<double> Weights { get; } ...
Assets/Scripts/Behaviour/AI/Utility/UtilityActions/ExplosionAction.cs
hal-9001-v/Holobots
0
7031373
<reponame>hal-9001-v/Holobots<gh_stars>0 using System; using System.Collections; using System.Collections.Generic; using UnityEngine; public class ExplosionAction : UtilityAction { Explosioner _explosioner; GroundTile _targetTile; public ExplosionAction(Explosioner explosioner, string name, Func<float> va...
src/Interception.OpenTracing.MetricProxy/Util.cs
ABaboshin/DotNetCoreProfiler
9
7031374
<gh_stars>1-10 using System.Net; using System.Net.Sockets; namespace Interception.OpenTracing.MetricProxy { static class Util { internal static IPAddress GetIpv4Address(string name) { IPAddress ipAddress; bool isValidIPAddress = IPAddress.TryParse(name, out ipAddress); ...
MyFitnessApp/Web/MyFitnessApp.Web/Views/Posts/Create.cshtml
GeorgiGradev/MyFitnessApp
18
7031375
@model MyFitnessApp.Web.ViewModels.Posts.CreatePostInputModel @{ this.ViewData["Title"] = "Create forum post"; } <!-- Breadcrumb --> <nav aria-label="breadcrumb" class="main-breadcrumb"> <ol class="breadcrumb"> <li class="breadcrumb-item"><a href="/">Home</a></li> <li class="breadcrumb-item">...
Harvest.Net.Tests/OAuthFacts.cs
jehhynes/harvest.net
25
7031376
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Harvest.Net.Models; using Xunit; using Harvest.Net.Models.Interfaces; namespace Harvest.Net.Tests { public class OAuthFacts { [Fact(Skip = "Does not work on free account")] ...
RegexConverter/Code/Errors/InvalidRootNameException.cs
Siderite/Regex2XML
1
7031379
namespace Siderite.Code.Errors { public class InvalidRootNameException : ParseException { public InvalidRootNameException() : base("Invalid root element name.") { } } }
source/Cosmos.IL2CPU/Plugs/Assemblers/Buffer/BufferBlockCopyAsm.cs
ERamaM/Cosmos
0
7031380
using XSharp.Compiler; using CPUx86 = Cosmos.Assembler.x86; using ObjectInfo = Cosmos.IL2CPU.Plugs.System.ObjectImpl; namespace Cosmos.IL2CPU.Plugs.Assemblers.Buffer { public class BufferBlockCopyAsm : AssemblerMethod { private const int SourceArrayDisplacement = 32; private const int SourceInd...
Website/DesktopModules/Hotcakes/Core/Admin/AppCode/CategoriesHelper.cs
swilkinson-bluebolt/hotcakes-commerce-core
0
7031381
#region License // Distributed under the MIT License // ============================================================ // Copyright (c) 2016 Hotcakes Commerce, LLC // // Permission is hereby granted, free of charge, to any person obtaining a copy of this software // and associated documentation files (the "Software")...
TGC.Group/Model/GameModelLevel1.cs
gaboxxz/tgc-cdlg
0
7031382
<gh_stars>0 /*using Microsoft.DirectX.DirectInput; using System.Collections.Generic; using System.Drawing; using TGC.Core.Direct3D; using TGC.Core.Example; using TGC.Core.Input; using TGC.Core.Mathematica; using TGC.Core.SceneLoader; using TGC.Core.Terrain; using TGC.Core.Collision; using TGC.Group.Model.Utils; using ...
Jarstan.ContentSearch.Linq/Methods/GetHighlightsMethod.cs
jscott1277/SitecoreAzureSearchProvider
4
7031383
<filename>Jarstan.ContentSearch.Linq/Methods/GetHighlightsMethod.cs using Sitecore.ContentSearch.Linq.Methods; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Sitecore.ContentSearch.Linq.Nodes; using Jarstan.ContentSearch.Linq.Nodes; namespace ...
SwissPairing/SwissHelpers.cs
shmeker/SwissPairing
0
7031384
using System; using System.Collections.Generic; using System.Linq; namespace SwissPairing { /// <summary> /// Class with helpers for Swiss algorithm. /// </summary> public static class SwissHelpers { /// <summary> /// Creates a sequence of Pair objects from ordered generic objects. /// </summary> /// <ty...
Utilities/Utilities/Cryptography/AesCounterStream.cs
PradeepTheDev/Teknik
0
7031385
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Teknik.Utilities.Cryptography { public class AesCounterStream : Stream { private Stream _Inner; private CounterModeCryptoTransform _Cipher; //...
src/CoreLib/System/Globalization/CalendarData.Zenos.cs
zenos-os/zenos
9
7031386
using System; using System.Collections.Generic; using System.Text; namespace System.Globalization { partial class CalendarData { private bool LoadCalendarDataFromSystem(string localeName, CalendarId calendarId) { throw new NotImplementedException(); } private stati...
Services/UserService/IUserService.cs
josedr120/keepnotes-api
0
7031387
using System.Collections.Generic; using System.Threading.Tasks; using keepnotes_api.DTOs; using keepnotes_api.Models.User; namespace keepnotes_api.Services.UserService { public interface IUserService { Task<UserDto> Get(string userId); Task<List<UserDto>> Get(); Task<bool> Update(stri...
sources/Google.Solutions.Ssh/Native/SshConnectedSession.cs
loki805/iap-desktop
402
7031388
<reponame>loki805/iap-desktop // // Copyright 2020 Google LLC // // 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...
TrueCraft.Core/Logic/Blocks/ChestBlock.cs
michaelsakharov/TrueCraft
2
7031389
<gh_stars>1-10 using System; using TrueCraft.API; using TrueCraft.Core.Logic.Items; using TrueCraft.API.Logic; using TrueCraft.API.World; using TrueCraft.API.Networking; using fNbt; using TrueCraft.Core.Windows; using System.Collections.Generic; using TrueCraft.Core.Entities; using TrueCraft.API.Server; namespace True...
Source/_Explorite/CompAbilityEffect_GiveHediff_ParasiticStab.cs
Exploriters/Explorite-core-lab
1
7031390
<gh_stars>1-10 /******************** * 植物液注入技能的主要效果Comp。 * * --siiftun1857 */ using RimWorld; using System.Collections.Generic; using System.Linq; using UnityEngine; using Verse; using static Explorite.ExploriteCore; namespace Explorite { ///<summary>为<see cref = "CompAbilityEffect_GiveHediff_ParasiticStab" />接收...
Utilities/Utilities/Logging/LogMessageType.cs
Arzana/DeJongUtils
0
7031391
<filename>Utilities/Utilities/Logging/LogMessageType.cs namespace DeJong.Utilities.Logging { /// <summary> /// Defines the priority of a <see cref="LogMessage"/>. /// </summary> public enum LogMessageType : byte { /// <summary> /// Empty, no message available. /// </summary>...
Patterns/Strategy/UseCase.cs
volodymyr-karpenko/Patterns.CSharp
0
7031392
<reponame>volodymyr-karpenko/Patterns.CSharp namespace Patterns.CSharp.Patterns.Strategy { public class UseCase : PatternUseCase { public UseCase() { Context context; context = new Context(new ConcreteStrategyOne()); context.ContextInterface(); co...
Source/Samples/Application/Controllers/AccountController.cs
RegionOrebroLan/ActiveLogin-Authentication-Extensions
0
7031393
using System; using System.Linq; using System.Threading.Tasks; using Application.Models; using Microsoft.AspNetCore.Authentication; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Options; using RegionOrebroLan.Web.Authentication; using RegionOrebroLan.Web.Authentica...
src/DeveloperFramework.Extension/LoggerExtension.cs
Jie2GG/DeveloperFramework
4
7031395
<reponame>Jie2GG/DeveloperFramework<gh_stars>1-10 using DeveloperFramework.Log.CQP; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DeveloperFramework.Extension { /// <summary> /// 表示 <see cref="Logger"/> 类的扩展方法 /// </summary> public s...
src/Mvc/Mvc.RazorPages/test/Infrastructure/DisallowOptionsRequestsPageFilterTest.cs
lbosquett/aspnetcore
8,570
7031396
<gh_stars>1000+ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc.Filters; using Microsoft.AspNetCore.Routing; namespace Microsoft.AspNetCore.Mvc.RazorPages.Infrastru...
Source/Server/WebPortal/Admin/Modules/FieldView.ascx.cs
InstantBusinessNetwork/IBN
21
7031397
<filename>Source/Server/WebPortal/Admin/Modules/FieldView.ascx.cs namespace Mediachase.UI.Web.Admin.Modules { using System; using System.Data; using System.Drawing; using System.Web; using System.Web.UI.WebControls; using System.Web.UI.HtmlControls; using System.Resources; using MetaDataPlus.Configurator; usin...
Dapper.Queryable/Configuration/AnalyzerOptions/MySqlDatabaseOptions.cs
caozhiyuan/Dapper.Queryable
1
7031398
<gh_stars>1-10 using Dapper.Queryable.Utils; namespace Dapper.Queryable.Configuration.AnalyzerOptions { internal class MySqlDatabaseOptions : SqlDatabaseOptions { public MySqlDatabaseOptions() { this.StartDelimiter = this.EndDelimiter = "`"; } public override strin...
Game_WhoIsWho_MVP/AuthorsPage.cs
Helen2100/Game_WhoIsWho_MVP
0
7031399
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace Game_WhoIsWho_MVP { public partial class AuthorsPage : Form { public AuthorsPa...
Analogy.LogServer.Configurator/ServiceConfiguration.cs
Analogy-LogViewer/Analogy.RealTimeLogServer
6
7031400
using Analogy.Interfaces; using System.Collections.Generic; namespace Analogy.LogServer.Configurator { public class ServerConfiguration { public ServiceConfiguration ServiceConfiguration { get; set; } public Serilog Serilog { get; set; } } public class ServiceConfiguration { ...
NetML/kNearestNeighbors/ManhattanMetric.cs
netmatze/NetML
1
7031402
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace NetML.kNearestNeighbors { public class ManhattanMetric : Metric { public override double CalculateMetric(List<Tuple<double, double>> calculationPairs) { var addResult = 0.0; ...
M04/Simple2DGameLib/Obstacle.cs
sealkeen/EPAM.CSCource2021Q3
0
7031403
using System; using System.Collections.Generic; using System.Text; namespace Simple2DGameLib { class Obstacle : GameElement { public Obstacle(char[,] pixels) : base(pixels) { } public override void MoveRight(RenderArea renderArea) { } public override void ...
src/SFA.DAS.EmployerIncentives.Data/IncentiveApplication/IncentiveApplicationStatusAuditDataRepository.cs
uk-gov-mirror/SkillsFundingAgency.das-employer-incentives
4
7031404
<reponame>uk-gov-mirror/SkillsFundingAgency.das-employer-incentives using SFA.DAS.EmployerIncentives.Data.Map; using SFA.DAS.EmployerIncentives.Data.Models; using SFA.DAS.EmployerIncentives.Domain.ValueObjects; using System; using System.Threading.Tasks; namespace SFA.DAS.EmployerIncentives.Data.IncentiveApplication ...
test/Npgsql.Tests/Types/FullTextSearchTests.cs
Belorus/npgsql
1
7031405
<filename>test/Npgsql.Tests/Types/FullTextSearchTests.cs using System; using System.Threading.Tasks; using NpgsqlTypes; using NUnit.Framework; namespace Npgsql.Tests.Types { public class FullTextSearchTests : MultiplexingTestBase { [Test] public async Task TsVector() { usin...
src/EventFly.Application/Queries/SerializedQueryExecutor.cs
Sporteco/EventFly
19
7031406
<filename>src/EventFly.Application/Queries/SerializedQueryExecutor.cs using EventFly.Definitions; using Newtonsoft.Json; using System; using System.Linq; using System.Threading; using System.Threading.Tasks; namespace EventFly.Queries { public class SerializedQueryExecutor : ISerializedQueryExecutor { ...
Assets/Unity/API/UnityGdi.cs
SixGodZhang/WinformUnity
442
7031407
namespace Unity.API { using System; using System.Drawing; using System.Drawing.API; using System.Drawing.Drawing2D; using System.Windows.Forms; using UE = UnityEngine; public class UnityGdi : IApiGraphics { public static UE.Color cursorSelectionColor = Color.FromArgb(128, ...
src/AngleSharp/Html/Dom/Internal/HtmlMetaElement.cs
nhaskins/AngleSharp
4
7031408
namespace AngleSharp.Html.Dom { using AngleSharp.Browser; using AngleSharp.Dom; using System; /// <summary> /// Represents the HTML meta element. /// </summary> sealed class HtmlMetaElement : HtmlElement, IHtmlMetaElement { #region ctor public HtmlMetaElement(Document o...
SubstrateCS/Examples/BlockReplace/Program.cs
default0/Substrate
1
7031409
using System; using Substrate; using Substrate.Core; // This example replaces all instances of one block ID with another in a world. // Substrate will handle all of the lower-level headaches that can pop up, such // as maintaining correct lighting or replacing TileEntity records for blocks // that need them. // For ...