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
Simple.Data.BehaviourTest/Query/WithCountTest.cs
hmobius/Simple.Data
573
7044139
<filename>Simple.Data.BehaviourTest/Query/WithCountTest.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using Simple.Data.Ado; using Simple.Data.Mocking; namespace Simple.Data.IntegrationTest.Query { using Mocking.Ado; using NUnit.Framework; [TestFixtu...
src/example.WebApp/Views/Sys/Error/Error.cshtml
HananeMoshe/cloudscribe-master
0
7044140
@model int @{ switch (Model) { case 400: ViewData["Icon"] = "fa fa-ban text-danger"; ViewData["Title"] = "Bad Request"; ViewData["Description"] = "Your browser sent a request that this server could not understand."; break; case 401: V...
Runtime/Generated/TSTreeStreamTagStructLayout.cs
patmich/TS
0
7044141
<filename>Runtime/Generated/TSTreeStreamTagStructLayout.cs using System.Runtime.InteropServices; namespace LLT { [StructLayout(LayoutKind.Explicit, Size=16)] public struct TSTreeStreamTagStructLayout { [FieldOffset(0)] public ushort NameIndex; [FieldOffset(2)] public ushort EntrySizeOf; [FieldOffset(4)] ...
Assets/Scripts/Utils/Moment.cs
y-a-r-g/the-great-transmuter
0
7044142
<filename>Assets/Scripts/Utils/Moment.cs using UnityEngine; using System.Collections; public static class Moment { public static float Delta { get { return Time.deltaTime; } } public static float CurrentTime { get { return Time.timeSinceLevelLoad; ...
Back-End/EmployeeManagement.Services/Services/Interfaces/ILoginService.cs
nehavermatechy/Employee-Management
0
7044143
using System; using System.Collections.Generic; using System.Text; namespace EmployeeManagement.Services.Services.Interfaces { public interface ILoginService { string Authenticate(string email, string password); } }
OpenBullet2.Core/Models/Proxies/ProxyCheckOutputFactory.cs
Enigma422/OpenBullet2
565
7044144
<reponame>Enigma422/OpenBullet2 using OpenBullet2.Core.Repositories; using RuriLib.Models.Proxies; using System; namespace OpenBullet2.Core.Models.Proxies { /// <summary> /// Factory that creates an <see cref="IProxyCheckOutput"/> from the <see cref="ProxyCheckOutputOptions"/>. /// </summary> public c...
src/Investec.OpenBanking.RestClient/InvestecOpenBankingClientConstants.cs
dalion619/investec-openbanking-dotnet
2
7044145
<reponame>dalion619/investec-openbanking-dotnet namespace Investec.OpenBanking.RestClient { public static class InvestecOpenBankingClientConstants { public static string BaseUrl => "https://openapi.investec.com"; public static string ApiVersion => "v1"; public static string ApiUrl => $"{...
src/PBKDF2BlazorServerApp/Features/Pbkdf2/Pbkdf2Model.cs
dusklight/pbkdf2-blazor
0
7044146
<reponame>dusklight/pbkdf2-blazor<gh_stars>0 using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; namespace PBKDF2BlazorServerApp.Features.Pbkdf2 { public class Pbkdf2Model { [Required] public string TextT...
CommonModules/RibbonStyle/RibbonDemo/TestForm.Designer.cs
wootra/TestNetConnector
1
7044147
namespace RibbonDemo { partial class TestForm { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <param...
src/Xilium.Crdtp.Client/src/Serialization/Stj/StjSerializerOptions.cs
CefNet/crdtp
1
7044148
<filename>src/Xilium.Crdtp.Client/src/Serialization/Stj/StjSerializerOptions.cs<gh_stars>1-10 using System.Collections.Generic; using System.Text.Json.Serialization; namespace Xilium.Crdtp.Client.Serialization { // TODO(dmitry.azarev): (Low) Doesn't like this interface / their interface name. public abstract ...
FiniteStateMachines/03/demos/Finite State Machines in Unity/Assets/Scripts/Player States/PlayerSpinningState.cs
Hemanth759/Unity-Learn
0
7044149
<gh_stars>0 using System.Collections; using System.Collections.Generic; using UnityEngine; public class PlayerSpinningState : PlayerBaseState { private float rotation = 0; public override void EnterState(PlayerController_FSM player) { player.SetExpression(player.spinningSprite); } public...
TextBox.Tests/Test.cs
sudeepcb/textbox
0
7044150
<reponame>sudeepcb/textbox using System; using System.Collections.Generic; using System.Linq; using Microsoft.AspNetCore.Mvc; using TextBox.Domain.Models; using TextBox.MVCClient.Controllers; using TextBox.MVCClient.Models; using Xunit; namespace TextBox.Tests { public class HomeControllerTest { [Fact] ...
Illusion.Common.FeatureFlags/DevFeatureFlagProvider.cs
tangredon/code-illusion-common
2
7044151
using Microsoft.Extensions.Logging; namespace Illusion.Common.FeatureFlags { internal class DevelopmentFeatureFlagProvider : IFeatureFlagProvider { public DevelopmentFeatureFlagProvider(ILogger<DevelopmentFeatureFlagProvider> logger) { logger.LogWarning("Feature Flag Provid...
Source/MindKeeper.Api/Controllers/CountryController.cs
vashov/mindkeeper-api
0
7044152
<gh_stars>0 using AutoMapper; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using MindKeeper.Api.Core.Routing; using MindKeeper.Api.Services.Countries; using MindKeeper.Shared.Models.ApiModels.Countries; using MindKeeper.Shared.Wrappers; using System.Collections.Generic; using System.Thread...
UniversalTM/UniversalTM/State.cs
DigitMan27/UniversalTuringMachine
3
7044153
using System; using System.Collections.Generic; namespace UniversalTM { public class State { public enum Move { LEFT = -1, RIGHT = 1, NOP = 0 } private string name; public bool accept { get; set; } = false; // true if st...
Leveret.Interpretation.MondConcretion/InterpretationService.cs
tiksn/Leveret
3
7044154
using MediatR; using Microsoft.Extensions.Logging; using Mond; using System; using System.Collections.Immutable; using System.Linq; using System.Threading; using System.Threading.Tasks; using TIKSN.Leveret.Interpretation.Abstractions; using TIKSN.Leveret.Interpretation.MondConcretion.Factories; using TIKSN.Leveret.Int...
Assets/Scripts/Triggers/ItemTriggerTask.cs
Outgrass-Studios/LudumDare49
0
7044155
using UnityEngine; namespace Triggers { public class ItemTriggerTask : MonoBehaviour { private void Awake() { GetComponent<ItemTrigger>()?.OnTrigger.AddListener(_ => HandleTrigger()); } void HandleTrigger() { if (CartController.Singleton == null)...
Assets/Scripts/Instruction/Actions/InstructionActionWork.cs
LRP500/LD47
0
7044156
<reponame>LRP500/LD47 using UnityEngine; namespace LD47 { [CreateAssetMenu(menuName = "LD47/Actions/Instruction Actions/Work")] public class InstructionActionWork : InstructionAction { [SerializeField] private CameraManager _cameraManager = null; [SerializeField] ...
tests/WAccount.UnitTests/Services/BankAccountServiceTest.cs
guilhermeschreiber/WAccount
0
7044157
using FluentAssertions; using Moq; using System; using System.Linq.Expressions; using WAccount.Domain.Models; using WAccount.Domain.Services; using WAccount.Repositories.Infrastructure.Interfaces; using Xunit; namespace WAccount.UnitTests.Services { public class BankAccountServiceTest { public BankAcc...
HBK.Storage.Adapter/Extensions/EnumExtension.cs
nightsoul357/HBK-Storage
1
7044158
<reponame>nightsoul357/HBK-Storage using HBK.Storage.Adapter.DataAnnotations; using System; using System.Collections.Generic; using System.Linq; namespace HBK.Storage.Adapter.Enums { /// <summary> /// 列舉的擴充方法 /// </summary> public static class EnumExtension { /// <summary> ...
AIPFile.cs
Azure-Samples/AIP-AccessDenied-Alerts
1
7044160
<filename>AIPFile.cs // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE.txt in the project root for license information. using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace AIPAccessDeniedAlerts { public class AIPFile { ...
AwsConsole.Services/Configuration/IConfiguration.cs
aerdman-aws/QlikApp
0
7044161
<gh_stars>0 using System; namespace AwsConsole.Services.Configuration { /// <summary> /// Contains all the information required to deploy the EC2 instance /// </summary> public interface IConfiguration { /// <summary> /// The region where the instance should be deployed /// ...
TechDemoProject/Assets/Scripts/Database/Core/DatabaseInitialization.cs
KDahir247/UnityTechDemo
0
7044162
using Cysharp.Threading.Tasks; using UnityEngine; namespace Tech.DB { public sealed class DatabaseInitialization : MonoBehaviour { private readonly StaticDbBuilder _dbBuilder = new StaticDbBuilder(new DatabaseStream()); //create all the files with a null value to start with private as...
HairSalon/Views/Home/Index.cshtml
austinthebarr/HairSalon.Solution
0
7044164
<filename>HairSalon/Views/Home/Index.cshtml <!DOCTYPE html> <html> <head> <title>Hair Salon</title> <link rel='stylesheet' href='https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css'> <link rel="stylesheet" type="text/css" href="~/css/homepage.css" /> <link href="https://fonts.googleapis.com/cs...
xbox/AuthenticationProperties.cs
HunLuxLauncher/Libraries.Auth.Microsoft
0
7044165
<filename>xbox/AuthenticationProperties.cs<gh_stars>0 using System; using System.Collections.Generic; using System.Text; using System.Text.Json.Serialization; namespace Libraries.Auth.Microsoft.Xbox { public class AuthenticationProperties { #if NET5_0 [JsonIgnore(Condition = JsonIgnoreCondition.WhenWr...
Matt Graystone Cooking/Assets/Scripts/Managers/Hero/HeroView.cs
BlacksheepNZ/Matt-Graystone-Cooking
1
7044166
using System; using System.Collections.Generic; using System.Linq; using System.Text; using UnityEngine; using UnityEngine.UI; public class HeroView : MonoBehaviour { public GameObject Panel; public Text GUI_Text; public int SlotCount = 0; public List<int> SlotID = new List<int>(); private void ...
Assets/Scripts/RocketController.cs
Presos14/gameoff2020
0
7044167
<reponame>Presos14/gameoff2020<gh_stars>0 using System.Collections; using System.Collections.Generic; using UnityEngine; using Cinemachine; public class RocketController : MonoBehaviour { public ParticleSystem mainThrustEffect; public ParticleSystem leftThrustEffect; public ParticleSystem rightThrustEffect...
Lists-Lab/06.SquareNumbers/Program.cs
RumenNovachkov/ProgrammingFundamentalsCSharp
0
7044168
<reponame>RumenNovachkov/ProgrammingFundamentalsCSharp using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _06.SquareNumbers { class Program { static void Main(string[] args) { var nums = Console.ReadLine().S...
BoutiqueDAL/Infrastructure/Interfaces/Converters/Clothes/CategoryEntities/ICategoryEntityConverter.cs
rubilnik4/VeraBoutique
0
7044169
<reponame>rubilnik4/VeraBoutique using BoutiqueCommon.Models.Domain.Interfaces.Clothes.CategoryDomains; using BoutiqueDAL.Infrastructure.Interfaces.Converters.Base; using BoutiqueDAL.Models.Implementations.Entities.Clothes; namespace BoutiqueDAL.Infrastructure.Interfaces.Converters.Clothes.CategoryEntities { /// ...
TuBus-SS/Resources/Tarjeta.cs
afermon/TuBus-SS
0
7044170
<gh_stars>0 namespace Entities { public class Tarjeta : BaseEntity { public decimal SaldoDisponible { get; set; } public string CodigoUnico { get; set; } public Terminal Terminal { get; set; } public Usuario Usuario { get; set; } public TipoTarjeta TipoTarjeta { get...
src/ImageSharp/Formats/Tga/TgaImageTypeExtensions.cs
fahadabdulaziz/ImageSharp
0
7044171
// Copyright (c) <NAME>ors and contributors. // Licensed under the GNU Affero General Public License, Version 3. namespace SixLabors.ImageSharp.Formats.Tga { /// <summary> /// Extension methods for TgaImageType enum. /// </summary> public static class TgaImageTypeExtensions { /// <summary> ...
Assets/Scripts/Ai Scripts/AIBehavior/Extras/PlayMakerActions/SetUseSightTransform.cs
BugSlayer123/Flight-Sim-Repo
7
7044172
#if USE_PLAYMAKER using HutongGames.PlayMaker; namespace AIBehavior { public class SetUseSightTransform : AIPlayMakerActionBase { [RequiredField] [UIHint(UIHint.FsmBool)] public FsmBool useSightTransform; public override void Reset() { base.Reset(); useSightTransform = null; } protected over...
buildsys.assets/doclava.config/assets/templates/components/masthead.cs
shareme/DroidFormicidae
1
7044173
<reponame>shareme/DroidFormicidae<filename>buildsys.assets/doclava.config/assets/templates/components/masthead.cs <?cs def:custom_masthead() ?> <!-- Header --> <div id="header"> <div class="wrap" id="header-wrap"> <div class="col-3 logo"> <a href="<?cs var:toroot ?>index.html"> ...
src/Data/DistributedLocking/Masa.Contrib.Data.DistributedLocking.Local/ServiceCollectionExtensions.cs
masastack/MASA.Contrib
63
7044174
// Copyright (c) MASA Stack All rights reserved. // Licensed under the MIT License. See LICENSE.txt in the project root for license information. namespace Microsoft.Extensions.DependencyInjection; public static class ServiceCollectionExtensions { public static IServiceCollection AddLocalDistributedLock(this ISer...
Serialization/ByteWriter.cs
guliver-jham/GEngine
3
7044175
using System.Collections.Generic; using System; using System.Text; public class ByteWriter: IDisposable { List<byte> Data; bool _disposed = false; public ByteWriter () { Data = new List<byte>(); } public ByteWriter(byte[] bytes) { Data = new List<byte> (bytes); } ...
Auditor/Auditor.WebApi/Models/PagingData.cs
ondrabus/kentico-auditor
1
7044176
<filename>Auditor/Auditor.WebApi/Models/PagingData.cs  namespace Auditor.WebApi.Models { public abstract class PagingData { public int Page { get; set; } public int PageSize { get; set; } public string OrderBy { get; set; } } }
SFX-Engine-Base/Audio/Sources/BufferedSoundFX.cs
kintoshmalae/SFX-ShowPlayer
0
7044177
<gh_stars>0 using System; using System.Collections.Generic; using System.Linq; using System.Text; using com.kintoshmalae.SFXEngine.Events; using com.kintoshmalae.SFXEngine.I18N; using System.Threading; namespace com.kintoshmalae.SFXEngine.Audio.Sources { public class BufferedSoundFX : SoundFX { public ui...
src/AddOns/BassWma/Delegates/WMEncodeProcedure.cs
Beyley/ManagedBass
169
7044178
<reponame>Beyley/ManagedBass using System; namespace ManagedBass.Wma { /// <summary> /// Encoded data processing callback function. /// </summary> /// <param name="Handle">The encoder handle (as returned by <see cref="BassWma.EncodeOpen(int, int, WMAEncodeFlags, int, WMEncodeProcedure, IntPtr)" />).</...
Wisper/mNodeCore/mNode/YodiwoProjects/Yodiwo.API.Logic/Descriptors/PropertiesDescriptor.cs
yodiwo/plegma
6
7044179
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; using Newtonsoft.Json; using Yodiwo.API.Plegma; using System.ComponentModel; namespace Yodiwo.Logic.Descriptors { //---------------------------------------------------------...
tests/Agent/UnitTests/Core.UnitTest/Transformers/TransactionTransformer/TransactionEventMakerTests.cs
bradleycamacho/newrelic-dotnet-agent
0
7044180
<gh_stars>0 // Copyright 2020 New Relic, Inc. All rights reserved. // SPDX-License-Identifier: Apache-2.0 using System; using System.Collections.Generic; using System.Linq; using NewRelic.Agent.Configuration; using NewRelic.Agent.Core.Aggregators; using NewRelic.Agent.Core.Attributes; using NewRelic.Agent.Core.CallSta...
Packages/com.nxtht.plotter/Runtime/PlotterGrid.cs
nxtht/Plotter
0
7044181
using System; using System.Collections.Generic; using System.Linq; using UnityEngine; namespace Nxtht.Plotter { public class PlotterGrid : IPlotterGrid { private const long MinRange = -999_999_999_999_999_999L; private const long MaxRange = 999_999_999_999_999_999L; private const int M...
Assets/Osnowa/Osnowa.Example/ECS/Heartbeat/PreTurnSystem.cs
azsdaja/Osnowa
72
7044182
using System.Collections.Generic; using Entitas; namespace Osnowa.Osnowa.Example.ECS.Heartbeat { /// <summary> /// Should be the last system to execute before GiveControlSystem. /// </summary> public class PreTurnSystem : ReactiveSystem<GameEntity> { public PreTurnSystem(IContext<GameEntity> context) : bas...
misc/triangle.cs
angelopassaro/Hacktoberfest-1
1
7044183
<filename>misc/triangle.cs /*In a right triangle, the square of the length of one side is equal to the sum of the squares of the lengths of the other two sides. Write a program that prompts the user to enter the lengths of three sides of a triangle and then outputs a message indicating whether the triangle is a right ...
Libraries/DomainModels/Common/ModifiedAuditInfo.cs
tw1tch01/helpdesk.core
0
7044184
using System; using AutoMapper; using Helpdesk.Domain.Common; using Helpdesk.DomainModels.Mappings; namespace Helpdesk.DomainModels.Common { public class ModifiedAuditInfo : IMaps<IModifiedAudit> { public string By { get; set; } public DateTimeOffset? On { get; set; } public string Pro...
CodingTrainerWeb/Hubs/IdeHub.cs
ddashwood/CodingTrainer
0
7044185
<filename>CodingTrainerWeb/Hubs/IdeHub.cs using Microsoft.AspNet.SignalR; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Web; using CodingTrainer.CSharpRunner.CodeHost; using CodingTrainer.CodingTrainerWeb.Hubs.Helpers; using System.Collections.Concurrent;...
AlgoTest/LeetCode/Reachable Nodes In Subdivided Graph/Reachable Nodes In Subdivided Graph.cs
sagasu/Algo-DataStructures
0
7044186
<reponame>sagasu/Algo-DataStructures<gh_stars>0 using System; using System.Collections.Generic; using System.Text; namespace AlgoTest.LeetCode.Reachable_Nodes_In_Subdivided_Graph { class Reachable_Nodes_In_Subdivided_Graph { public int ReachableNodes(int[][] edges, int maxMoves, int n) { ...
Runtime/Systems/AbilityCostCheckerSystem.cs
WAYNGROUP/MGM-Abilitiy
26
7044187
<reponame>WAYNGROUP/MGM-Abilitiy<filename>Runtime/Systems/AbilityCostCheckerSystem.cs<gh_stars>10-100  using Unity.Burst; using Unity.Collections; using Unity.Entities; namespace WaynGroup.Mgm.Ability { [UpdateInGroup(typeof(AbilityUpdateSystemGroup))] public abstract class AbilityCostCheckerSystem<COST_BUFF...
LoggingProvider/Controllers/BakeryController.cs
graphql-aspnet/demo-projects
3
7044188
<gh_stars>1-10 namespace GraphQL.AspNet.Examples.LoggingProvider.Controllers { using System.ComponentModel; using System.Threading.Tasks; using GraphQL.AspNet.Attributes; using GraphQL.AspNet.Controllers; using GraphQL.AspNet.Examples.LoggingProvider.Model; /// <summary> /// A controller c...
Unity Planet Project/Unity Planet Project/Assets/Scripts/MoonPosition.cs
jimen7/Honours-Project
0
7044189
using System.Collections; using System.Collections.Generic; using UnityEngine; public class MoonPosition : MonoBehaviour { float portion = 3.67f/2.31f; //Taken from ann instance where the planet is as far as we want it from the moon System.Random rand = new System.Random(); public void MoveMoon() ...
advanced-vod-workflow/Functions/DeleteContentKeyPolicy.cs
Yanin4419/media-services-v3-dotnet-core-functions-integration
40
7044190
// // Azure Media Services REST API v3 Functions // // DeleteContentKeyPolicy - This function deletes an ContentKeyPolicy object. // /* ```c# Input: { // [Required] The content key policy name. "contentKeyPolicyName": "SharedContentKeyPolicyForClearKey", } Output: { // The name of th...
server/Sho.Pocket.Core/Features/ExchangeRates/IExchangeRateService.cs
AQdf/Pocket
0
7044191
using System; using System.Collections.Generic; using System.Threading.Tasks; using Sho.Pocket.Core.Features.ExchangeRates.Models; namespace Sho.Pocket.Core.Features.ExchangeRates { public interface IExchangeRateService { Task<List<ExchangeRateModel>> GetExchangeRatesAsync(Guid userId, DateTime effect...
Hooded-Green Goblin/Assets/Scripts/UI/EndLevelUI.cs
akadirdursun/HoodedGreenGoblin
0
7044192
<reponame>akadirdursun/HoodedGreenGoblin using UnityEngine; using TMPro; using UnityEngine.UI; public class EndLevelUI : MonoBehaviour { [Header("UI Text Components")] [SerializeField] private TextMeshProUGUI topScoreText; [SerializeField] private TextMeshProUGUI coinsText; [SerializeField] private Te...
source/Energinet.DataHub.MessageHub.Client.SimpleInjector/source/Energinet.DataHub.MessageHub.Client.SimpleInjector/ContainerExtensions.cs
Energinet-DataHub/geh-post-office
2
7044193
<reponame>Energinet-DataHub/geh-post-office // Copyright 2020 Energinet DataHub A/S // // Licensed under the Apache License, Version 2.0 (the "License2"); // 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 ...
AmericaVirtual_DataModel/AmericaVirtual_DataModel/Mapping/WeatherMap.cs
ericrecke/AmericaVirtualWeb
0
7044194
<reponame>ericrecke/AmericaVirtualWeb<filename>AmericaVirtual_DataModel/AmericaVirtual_DataModel/Mapping/WeatherMap.cs using System; using System.Collections.Generic; using System.Data.Entity.ModelConfiguration; using System.Linq; using System.Text; namespace AmericaVirtual_DataModel.Mappings { public class Weath...
Assets/Scripts/Haiku Management/HaikuDisplay.cs
ScarletPhoenix5053/Kinetic-Translation
0
7044195
<reponame>ScarletPhoenix5053/Kinetic-Translation using System.Collections; using System.Collections.Generic; using UnityEngine; public class HaikuDisplay : MonoBehaviour { [SerializeField] private Transform inactiveKanaSquares; [SerializeField] private List<Transform> kanaLineParents = new List<Transform>(3);...
FairFlights/FairFlights.DomainObjects/Flight/FlightBoundLeg.cs
isboat/fairflights
0
7044196
<gh_stars>0 using System; using System.Collections.Generic; namespace FairFlights.DomainObjects.Flight { using Newtonsoft.Json; /// <summary> /// The flight outbound leg. /// </summary> public class FlightBoundLeg { [JsonProperty("CarrierIds")] public List<int> CarrierIds { ge...
dotnet/src/Maximus.IRD.Samples.KeycloakClient/Exceptions.cs
maxird/imr-ca-sdk
0
7044197
<reponame>maxird/imr-ca-sdk namespace Maximus.IRD.Samples.KeycloakClient { /// Base for our exceptions public class AuthException : System.Exception { public AuthException() { } public AuthException(string message) : base(message) { } public AuthException(string message, System.Excep...
WeihanLi.Common/DependencyInjection/DependencyInjectionExtensions.cs
zhaoabing903/SparkTodo-master
201
7044198
<reponame>zhaoabing903/SparkTodo-master using JetBrains.Annotations; using System; using System.Collections.Generic; // ReSharper disable once CheckNamespace namespace WeihanLi.Common { public static class DependencyInjectionExtensions { public static IEnumerable<object> GetServices( this ...
Retirement Countdown Clock Core/uk/co/vsf/retirement/repository/ApplicationDataContainerRepository.cs
vls29/retirement-countdown-clock
0
7044199
<reponame>vls29/retirement-countdown-clock using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Windows.Foundation.Collections; using Windows.Storage; namespace Retirement_Countdown_Clock_Core.uk.co.vsf.retirement.repository { public class Appli...
test/NLock.StackExchangeRedis.Tests/RedisMutexTest.cs
yu-jingfeng/NLock
1
7044200
using NLock.StackExchangeRedis.Locks; using StackExchange.Redis; using System; using System.Collections.Generic; using System.Reflection; using System.Threading.Tasks; using Xunit; namespace NLock.StackExchangeRedis.Tests { public class RedisMutexTest { static object locker = new object(); priv...
src/ImageSharp/Samplers/Processors/Convolution/EdgeDetection/KirschProcessor.cs
mellinoe/ImageSharp
3
7044201
// <copyright file="KirschProcessor.cs" company="<NAME>"> // Copyright (c) <NAME> and contributors. // Licensed under the Apache License, Version 2.0. // </copyright> namespace ImageSharp.Processors { using System.Diagnostics.CodeAnalysis; /// <summary> /// The Kirsch operator filter. /// <see href="h...
MyOnlineShop/MyOnlineShop.Catalog/Data/Configurations/CustomerConfiguration.cs
DimchoLakov/Architecture-Of-ASP-NET-Core-Microservices-Apps
2
7044202
<reponame>DimchoLakov/Architecture-Of-ASP-NET-Core-Microservices-Apps using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; using MyOnlineShop.Catalog.Data.Models.Customers; namespace MyOnlineShop.Catalog.Data.Configurations { public class CustomerConfiguration : IEntityTypeC...
src/IbanNet/IbanFormat.cs
0xced/IbanNet
74
7044203
<gh_stars>10-100 namespace IbanNet { /// <summary> /// Formats to represent IBAN's in. /// </summary> public enum IbanFormat { /// <summary> /// Represent IBAN in human readable format. (ie. NL91 ABNA 0417 1643 00) /// </summary> Print, /// <summary> ...
2_Libs/Parallel/ParallelSamples/TaskSamples/Program.cs
christiannagel/ProfessionalCSharp2021
0
7044204
<reponame>christiannagel/ProfessionalCSharp2021 namespace TaskSamples; class Program { private static readonly Command[] s_commands = { new Command("-p", nameof(TasksUsingThreadPool), TasksUsingThreadPool), new Command("-s", nameof(RunSynchronousTask), RunSynchronousTask), ...
unity/library/UtyMap.Unity/Maps/Providers/OpenStreetMapDataProvider.cs
lonnibesancon/utymap
2
7044205
using System; using System.IO; using UtyDepend; using UtyDepend.Config; using UtyMap.Unity.Core.Tiling; using UtyMap.Unity.Infrastructure.Diagnostic; using UtyMap.Unity.Infrastructure.IO; using UtyRx; namespace UtyMap.Unity.Maps.Providers { /// <summary> Downloads map data from openstreemap servers. </summary> ...
Assets/_Scripts/Main.cs
bailang00/UFM
0
7044206
using UnityEngine; using System.Collections; public class Main : MonoBehaviour { //不同平台下StreamingAssets的路径是不同的,这里需要注意一下。 public static readonly string PathURL = #if UNITY_ANDROID "file:///E:/Project/Demo/Assets/StreamingAssets/"; #elif UNITY_IPHONE Application.dataPath + "/Raw/"; #elif UNITY_STANDALONE_WI...
SampleUsage.cs
krzysklein/efcore-seeddatawithuniqueid
2
7044207
using Microsoft.EntityFrameworkCore; using System; public class DatabaseContext : DbContext { public DbSet<Foo> Foos { get; set; } protected override void OnModelCreating(ModelBuilder modelBuilder) { base.OnModelCreating(modelBuilder); // This will seed DbSet<Foo> with hashed I...
MeetAndGo/MeetAndGo.Model/SearchObject/OfficeSearchObject.cs
emin-alajbegovic/Meet-Go
0
7044208
namespace MeetAndGo.Model.SearchObject { public class OfficeSearchObject { public string Name { get; set; } public int? TypeOfOfficeId { get; set; } public int? CityId { get; set; } public bool? IncludeTypeOfOffice { get; set; } } }
DeusaldPhysics2D/Box2dCSharp/Dynamics/Joints/DistanceJointDef.cs
Deusald/DeusaldPhysics2D
1
7044209
<filename>DeusaldPhysics2D/Box2dCSharp/Dynamics/Joints/DistanceJointDef.cs using System; using Vector2 = DeusaldSharp.Vector2; using Box2DSharp.Common; namespace Box2DSharp.Dynamics.Joints { /// Distance joint definition. This requires defining an anchor point on both /// bodies and the non-zero distanc...
src/FM.LiveSwitch.Hammer/MediaServerMismatchException.cs
ababik-frozenmountain/liveswitch-hammer
0
7044210
using System; namespace FM.LiveSwitch.Hammer { [Serializable] public class MediaServerMismatchException : Exception { public MediaServerMismatchException(string message) : base(message) { } } }
sources/Interop/Windows/Windows/um/ShObjIdl/FOLDERVIEWOPTIONS.cs
JeremyKuhne/terrafx.interop.windows
0
7044211
// Copyright © <NAME> Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. // Ported from um/ShObjIdl.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. using System; namespace TerraFX.Interop.Wind...
Delcam.ProductInterface.PowerMILL.Test/CollectionTests/PMModelsCollectionTest.cs
Jonimoose/PowerShapeAndPowerMillAPI
26
7044212
<filename>Delcam.ProductInterface.PowerMILL.Test/CollectionTests/PMModelsCollectionTest.cs // ********************************************************************** // * © COPYRIGHT 2018 Autodesk, Inc.All Rights Reserved * // * * // * ...
Legacy/Legacy.Core/Comparison/IComparisonEffector.cs
jchen78/ExpressionComposer.Prototype
0
7044213
<gh_stars>0 using Legacy.Core.Comparison; using System.Collections.Generic; using System.Linq.Expressions; public interface IComparisonEffector { IComparisonEffector WithPairedParameters(ParameterExpression left, ParameterExpression right); IComparisonEffector WithPairedParameters(IEnumerable<ParameterExpress...
wrappers/dotnet/indy-sdk-dotnet-test/AnonCredsTests/IssuerCreateCredentialTest.cs
absltkaos/indy-sdk
636
7044214
using Hyperledger.Indy.AnonCredsApi; using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Threading.Tasks; namespace Hyperledger.Indy.Test.AnonCredsTests { [TestClass] public class IssuerCreateCredentialTest : AnonCredsIntegrationTestBase { [TestMethod] public async Task TestIs...
BAC_Tracker/BAC_Tracker_Standard/Model/Festivity.cs
SE2-BAC/BAC-Tracker
0
7044215
<gh_stars>0 using System; using System.Collections.Generic; using Newtonsoft.Json; using Newtonsoft.Json.Converters; namespace BAC_Tracker.Model { public class Festivity { [JsonProperty(PropertyName = "creationTimeStamp")] public DateTime Creation_TimeStamp; [JsonProperty(PropertyName ...
src/Nap/NapClient.cs
forki/Nap
25
7044217
<filename>src/Nap/NapClient.cs using System.Linq; using System.Net.Http; using System; using System.Collections.ObjectModel; using System.Runtime.CompilerServices; using Nap.Configuration; using Nap.Exceptions; using Nap.Plugins.Base; namespace Nap { /// <summary> /// Nap is the top level class for performing...
sdk/dotnet/Monitoring/Outputs/SloWindowsBasedSliGoodTotalRatioThresholdBasicSliPerformanceAvailability.cs
sisisin/pulumi-gcp
121
7044218
<gh_stars>100-1000 // *** 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.Se...
Gwen.UnitTest/GUnit.cs
phinoox/Gwen.CS
13
7044219
<reponame>phinoox/Gwen.CS using System; using Gwen.Control; using Gwen.Control.Layout; namespace Gwen.UnitTest { public class GUnit : ControlBase { public UnitTest UnitTest; public GUnit(ControlBase parent) : base(parent) { this.IsVirtualControl = true; } public vo...
Assets/Sisus/Power Inspector/Code/Editor/Drawers/Provider/DefaultDrawerProviders.cs
rafaeldolfe/MasterServerChess
0
7044220
#define CACHE_TO_DISK //#define DEBUG_SETUP using System; using System.Linq; using System.Collections.Generic; using System.Collections.Concurrent; using System.Threading.Tasks; using UnityEditor; using JetBrains.Annotations; using Sisus.Attributes; using Sisus.Compatibility; using UnityEngine; namespace Sisus { /...
src/ClientSDK/DotNet/ApiBase.cs
raid-toolkit/raid-toolkit-sdk
11
7044221
<filename>src/ClientSDK/DotNet/ApiBase.cs using System.Reflection; using System.Threading.Tasks; using Raid.Toolkit.DataModel; namespace Raid.Client { public class ApiBase<T> { private readonly RaidToolkitClient Client; private readonly PublicApiInfo<T> Api = new(); internal ApiBase(Rai...
src/BeUtl.Graphics/Graphics/NullCanvas.cs
YiB-PC/BeUtl
19
7044222
<filename>src/BeUtl.Graphics/Graphics/NullCanvas.cs using BeUtl.Graphics.Filters; using BeUtl.Media; using BeUtl.Media.Pixel; using BeUtl.Media.TextFormatting; using SkiaSharp; namespace BeUtl.Graphics; internal sealed class NullCanvas : ICanvas { public PixelSize Size => throw new NotImplementedException(); ...
dsis/shared/src/Core.FormGenerator/src/FieldInfos/CalendarFieldInfoFactory.cs
jonnyzzz/phd-project
1
7044224
<filename>dsis/shared/src/Core.FormGenerator/src/FieldInfos/CalendarFieldInfoFactory.cs using System; using System.Reflection; using EugenePetrenko.Shared.Core.Ioc.Api; namespace EugenePetrenko.Core.FormGenerator.FieldInfos { [ComponentImplementation] public class CalendarFieldInfoFactory : IFieldInfoFactor...
src/DynamicData/Cache/Internal/IFilter.cs
pdegenhardt/DynamicData
243
7044225
// Copyright (c) 2011-2020 <NAME>. All rights reserved. // <NAME> licenses this file to you under the MIT license. // See the LICENSE file in the project root for full license information. using System; using System.Collections.Generic; namespace DynamicData.Cache.Internal; /// <summary> /// Provides a filter. /// ...
src/Perspex.Input/Raw/RawInputEventArgs.cs
ForNeVeR/Avalonia
5
7044226
<filename>src/Perspex.Input/Raw/RawInputEventArgs.cs // Copyright (c) The Perspex Project. All rights reserved. // Licensed under the MIT license. See licence.md file in the project root for full license information. using System; namespace Perspex.Input.Raw { public class RawInputEventArgs : EventArgs { ...
src/Itofinity.Cli.Utils/CommandLineApplicationExtensions.cs
mminns/Itofinity.Appveyor.Refit
0
7044227
using Microsoft.Extensions.CommandLineUtils; using Microsoft.Extensions.Logging; using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; namespace Itofinity.Refit.Cli.Utils { public static class CommandLineApplicationExtensions { public static in...
LogDigger.Gui/Views/Controls/DataGridHeadersVisibilityToVisibilityConverter.cs
Farigh/LogDigger
0
7044228
<gh_stars>0 using System; using System.Globalization; using System.Windows; using System.Windows.Controls; using System.Windows.Data; namespace LogDigger.Gui.Views.Controls { /// <summary> /// Copy of the class in the .NET Framework (System.Windows.Controls) to avoid binding errors /// Converts DataGridHe...
api/src/BellRichM.Administration.Api/Models/LoggingFilterSwitchModel.cs
bellrichm/weather
2
7044229
using BellRichM.Attribute.CodeCoverage; namespace BellRichM.Administration.Api.Models { /// <summary> /// The serilog filter switch. /// </summary> [ExcludeFromCodeCoverage] public class LoggingFilterSwitchModel { /// <summary> /// Gets or sets the expression. /// </sum...
src/libs/SoloX.TableModel/Options/ILocalTableDecoratorDataOptions.cs
xaviersolau/TableModel
2
7044230
<reponame>xaviersolau/TableModel // ---------------------------------------------------------------------- // <copyright file="ILocalTableDecoratorDataOptions.cs" company="<NAME>"> // Copyright © 2021 <NAME>. // Licensed under the MIT license. // See LICENSE file in the project root for full license information. // </...
GraviRayTraceSharp/Mappings/DiscMapping.cs
stranger80/GraviRayTraceSharp
19
7044231
<gh_stars>10-100 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace GraviRayTraceSharp.Mappings { /// <summary> /// Mapping of spherical coordinates of a disc onto a flat texture. /// </summary> class DiscMapping : IMapping ...
02Fundamentals/Fundamentals08TextProcessingLab/TextFilter/StartUp.cs
NIKONaaaaa/Basic
0
7044232
namespace TextFilter { using System; class StartUp { static void Main() { string[] bannedWords = Console.ReadLine().Split(", "); string text = Console.ReadLine(); foreach (string word in bannedWords) { string replacement = ""; ...
Tests/NFUnitTestWifiConnection/ConnectToWifiWithCredentialsScanTests.cs
AlirezaP/Windows.Devices.WiFi
9
7044233
<filename>Tests/NFUnitTestWifiConnection/ConnectToWifiWithCredentialsScanTests.cs using nanoFramework.Networking; using nanoFramework.TestFramework; using System; using System.Diagnostics; using System.Threading; namespace NFUnitTestWifiConnection { [TestClass] public class ConnectToWifiWithCredentialsScanTest...
Master40.SimulationCore/Environment/Options/SimulationKind.cs
MaxWeickert/ng-erp-4.0
0
7044234
<filename>Master40.SimulationCore/Environment/Options/SimulationKind.cs using Master40.DB.Nominal; using Master40.SimulationCore.Environment.Abstractions; using System; namespace Master40.SimulationCore.Environment.Options { public class SimulationKind : Option<SimulationType> { public static Type Typ...
Assets/Scripts/UI/UIElement.cs
youngjunh98/PirateAdventure
0
7044235
using System.Collections; using System.Collections.Generic; using UnityEngine; public class UIElement : MonoBehaviour { [SerializeField] private string m_uiManagerGameObjectName = "UI Manager"; private UIManager m_uiManager; protected UIManager UIManager { get { if (!...
ModernWpf/Media/Utils/ColorUtils.cs
lgztx96/ModernWpf
2,992
7044236
<filename>ModernWpf/Media/Utils/ColorUtils.cs<gh_stars>1000+ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using System; using System.Windows.Media; namespace ModernWpf.Media.Utils { internal static class ColorUtils { public const int DefaultRoundingP...
AdventOfCode2020/Program.cs
retos/Advent-of-Code
0
7044237
using System; using System.Collections.Generic; using System.Linq; namespace AdventOfCode2020 { class Program { static void Main(string[] args) { List<IDay> instances = System.Reflection.Assembly.GetExecutingAssembly().GetTypes() .Where(d => d.GetInterfaces().Contai...
src/FoodByMe.Core/Services/RecipeCollectionService.cs
smolyakoff/food-by-me
2
7044238
using System; using System.Collections.Generic; using System.Threading.Tasks; using FoodByMe.Core.Contracts; using FoodByMe.Core.Contracts.Data; using FoodByMe.Core.Contracts.Messages; using MvvmCross.Plugins.Messenger; namespace FoodByMe.Core.Services { public class RecipeCollectionService : IRecipeCollectionSer...
Assets/Scripts/Stubs/Generated/RSG.Promise/AssemblyInfo.cs
tech-ticks/RTDXTools
1
7044239
// Image 43: RSG.Promise.dll - Assembly: RSG.Promise, Version=1.2.0.0, Culture=neutral, PublicKeyToken=null - Types 4068-4089 // [assembly: System.Reflection.AssemblyCompany] // 0x00604620-0x00604800 // [assembly: System.Reflection.AssemblyConfiguration] // 0x00604620-0x00604800 // [assembly: System.Reflection.Assembly...
src/aspnet-core/src/CaptainHook.Domain.Shared/EventBus/HookEvent.cs
NecatiMeral/captain-hook
0
7044240
using CaptainHook.Publishers; namespace CaptainHook.EventBus { public class HookEvent : IHookEventContext { public string ReceiverName { get; set; } public string Id { get; set; } public string EventType { get; set; } public object Payload { get; set; } public bool IsM...
Example2/MessageStorageService.cs
mvcguy/AMQ.Wrapper
0
7044241
<reponame>mvcguy/AMQ.Wrapper<filename>Example2/MessageStorageService.cs using System; using System.Collections.Generic; using Apache.NMS; namespace Example2 { public class MessageStorageService : IMessageStorageService { public List<MessageHistoryItem> Store = new List<MessageHistoryItem>(); ...
Services/Repositories/ExtraclassWorkRepository.cs
dakscr/RegistroVirtual
0
7044242
<filename>Services/Repositories/ExtraclassWorkRepository.cs using Models; using Services.Model; using Services.Specializations; using System; using System.Collections.Generic; using System.Data.Entity; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Services.Repositories { public cla...