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 |
|---|---|---|---|---|
DijkstraAlgorithm/LeetCode/Binary/ReverseBits.cs | AlistairDevine/AlgorithmEnvironment | 0 | 7050027 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LeetCode
{
/*
Reverse bits of a given 32 bits unsigned integer.
Note:
Note that in some languages, such as Java, there is no unsigned integer type.
In this case, ... |
Assets/Script/City/CharacterSpawner.cs | UnBiHealth/fisiogame | 0 | 7050028 | using UnityEngine;
using UnityEngine.UI;
using System.Collections.Generic;
using System.Linq;
public class CharacterSpawner : MonoBehaviour {
Image[] slots;
List<int> availableSlots = new List<int>();
List<string> used = new List<string>();
// Use this for initialization
void Start () {
}
publ... |
Src/IronText.Compiler/Lib/IL/Backend/Cecil/CecilMethodNs.cs | sucaba/IronTextLibrary | 9 | 7050030 | using IronText.Framework;
using IronText.Lib.Shared;
using Mono.Cecil;
using SR = System.Reflection;
namespace IronText.Lib.IL.Backend.Cecil
{
class CecilMethodNs
: IMethodNs
, WantMethodSig
, WantCallConvSig
, WantCallKindSig
, WantReturnTypeSig
, WantDeclTypeSig
... |
Assets/Scripts/Audios/Audioer.cs | zzf/ShaderProgramProj | 0 | 7050031 | <gh_stars>0
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Audioer : MonoBehaviour {
private AudioSource m_AudioSoruce;
void Start () {
m_AudioSoruce = gameObject.GetComponent<AudioSource>();
}
void Update () {
if (Input.GetKeyDown(KeyCode.A))
... |
cards/GVG/GVG/Sim_GVG_115.cs | chi-rei-den/Silverfish | 1 | 7050032 | <reponame>chi-rei-den/Silverfish
using HearthDb;
/* _BEGIN_TEMPLATE_
{
"id": "GVG_115",
"name": [
"托什雷",
"Toshley"
],
"text": [
"<b>战吼,亡语:</b>\n将一张<b>零件</b>牌置入你的手牌。",
"<b>Battlecry and Deathrattle:</b> Add a <b>Spare Part</b> card to your hand."
],
"cardClass": "NEUTRAL",
"type": "MINION"... |
dnSpy.AsmEditor/UndoRedo/UndoCommandManager.cs | haise0/reAtomizer | 1 | 7050033 | /*
Copyright (C) 2014-2016 <EMAIL>
This file is part of dnSpy
dnSpy is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version... |
PluralsightDesignPatterns/NullObject/Learner.cs | Notim/PluralsightDesignPatternsPath | 0 | 7050034 | <reponame>Notim/PluralsightDesignPatternsPath
namespace NullObject
{
public class Learner : ILearner
{
public Learner(int id, string name, string job) =>
(Id, Name, Job) = (id, name, job);
public int Id { get; }
public string Name { get; }
public string ... |
RemindMe/Other classes/FlashWindowHelper.cs | Stefangansevles/RemindMe | 49 | 7050035 | using System;
using System.Runtime.InteropServices;
using Microsoft.Win32;
using System.Windows.Forms;
namespace RemindMe
{
/// <summary>
/// Usefull class that can make the taskbar icon flash orange.
/// source: https://stackoverflow.com/questions/11309827/window-application-flash-like-orange-on-taskba... |
RabbitMQ/RabbitMQ.Domain.Core/Emails/Services/EmailSenderService.cs | lsantoss/RabbitMQ | 0 | 7050036 | <reponame>lsantoss/RabbitMQ
using RabbitMQ.Domain.Core.AppSettings;
using RabbitMQ.Domain.Core.Constants;
using RabbitMQ.Domain.Core.Emails.Interfaces.Services;
using System.Collections.Generic;
using System.Net;
using System.Net.Mail;
using System.Text;
using System.Threading.Tasks;
namespace RabbitMQ.Domain.Core.Em... |
src/GS/Registers/GSReg_TRXPOS.cs | BinarySerializer/BinarySerializer.PS2 | 0 | 7050037 | namespace BinarySerializer.PS2
{
public class GSReg_TRXPOS : GSRegister
{
public override GSRegisters RegisterByte => GSRegisters.TRXPOS;
public ushort SSAX { get; set; }
public ushort SSAY { get; set; }
public ushort DSAX { get; set; }
public ushort DSAY { get; set; }
... |
DataTypesAndVariables/P18.DiffIntegersSize/DiffIntegersSize.cs | albozhinov/SoftUni-ProgrammingFundamentals-May-2018 | 0 | 7050038 | using System;
namespace P18.DiffIntegersSize
{
class DiffIntegersSize
{
static void Main(string[] args)
{
var number = Console.ReadLine();
var text = "";
bool isFit = false;
try
{
sbyte num =... |
Developers/UtilityLibrary/UtilityLibrary/DateTimeControls/TimeEditor.cs | ewosp/sycorax | 1 | 7050039 | <gh_stars>1-10
using System;
using System.Collections;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Windows.Forms;
using System.Drawing.Design;
using System.ComponentModel.Design;
using System.Windows.Forms.Design;
namespace UtilityLibrary.DateTimeControls
{
[Too... |
MScResearchTool.Server/MScResearchTool.Server.Infrastructure/Repositories/ReportsRepository.cs | zbigniewmarszolik/MScResearchTool | 0 | 7050040 | using System.Collections.Generic;
using MScResearchTool.Server.Core.Models;
using MScResearchTool.Server.Core.Repositories;
using MScResearchTool.Server.Infrastructure.Connectors;
using System;
using NHibernate.Linq;
using System.Linq;
namespace MScResearchTool.Server.Infrastructure.Repositories
{
public class Re... |
src/GRUBSCHOOL.Application/ViewModels/AnoLectivos/AnoLectivoViewModel.cs | P-E-A-L/GRUBSCHOOL | 0 | 7050041 | using System;
using System.ComponentModel.DataAnnotations;
namespace GRUBSCHOOL.Application.ViewModels
{
public class AnoLectivoViewModel
{
[Display(Name = "Ano Lectivo")]
public int Ano { get; set; }
[Display(Name = "Data de Ínicio")]
public DateTime DataInicio { get; set; }
... |
CustomCashless/App.xaml.cs | Adanaran/CustomCashless | 0 | 7050042 | using System.Windows;
using CustomCashless.Views;
using Grace.DependencyInjection;
namespace CustomCashless
{
/// <summary>
/// Interaktionslogik für "App.xaml"
/// </summary>
public partial class App
{
private DependencyInjectionContainer container;
protected override void OnStartup(StartupEvent... |
Slot.Editor/Commands/ExtendDocumentHomeCommand.cs | vorov2/CodeBox | 8 | 7050043 | using System;
using Slot.Editor.ObjectModel;
using System.ComponentModel.Composition;
using Slot.Core.ComponentModel;
namespace Slot.Editor.Commands
{
[Export(typeof(EditorCommand))]
[ComponentData("editor.extenddocumenthome")]
public sealed class ExtendDocumentHomeCommand : SelectionCommand
{
... |
RugOscGH/Properties/AssemblyInfo.cs | jhorikawa/RugOscGH | 2 | 7050044 | <gh_stars>1-10
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("RugOscGH")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("<NAME>")]
[assembly: AssemblyProduct("RugOscGH")]
[assembly: ... |
Analise-de-Algoritmo/Program.cs | lucasbrafer/AED-Exercicios | 0 | 7050045 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Distancia
{
public class Ponto
{
public int x { get; set; }
public int y { get; set; }
}
class Program
{
// MÉTODO PARA GERAR U... |
AAS.Architecture/Migration/MigrationBase.cs | aarn94/AAS.Architecture | 0 | 7050046 | using System;
using System.Threading.Tasks;
namespace AAS.Architecture.Migration
{
public abstract class MigrationBase : IMigration
{
protected readonly IServiceProvider Provider;
protected MigrationBase(IServiceProvider provider) => this.Provider = provider;
public abstract int Vers... |
Moana/Common.Utils/Azylee.Core/DataUtils/EncryptUtils/MD5Tool.cs | yuzhengyang/Moana | 12 | 7050047 | <gh_stars>10-100
//************************************************************************
// author: yuzhengyang
// date: 2018.3.27 - 2018.6.3
// desc: MD5 工具
// Copyright (c) yuzhengyang. All rights reserved.
//*********************************************************************... |
client/MAVN.Service.DashboardStatistics.Client/Models/Leads/LeadsListResponseModel.cs | LykkeBusiness/MAVN.Service.DashboardStatistics | 0 | 7050048 | <filename>client/MAVN.Service.DashboardStatistics.Client/Models/Leads/LeadsListResponseModel.cs
using System.Collections;
using System.Collections.Generic;
namespace MAVN.Service.DashboardStatistics.Client.Models.Leads
{
/// <summary>
/// Represents a response model for a leads stats list
/// </summary>
... |
FallGuys.Protocol/Services/Login/Requests/Admin/AdminGetAdminAccountsRequest.cs | klukule/FallGuys.Protocol | 0 | 7050049 | using Catapult.Protocol;
using ProtoBuf;
namespace Catapult.Services.Login.Requests.Admin
{
[Authorize(Roles = new[] { "Admin", "Super" })]
[ProtoContract]
public class AdminGetAdminAccountsRequest
{
[ProtoMember(1)]
public int Page { get; set; }
[ProtoMember(2)]
public... |
7th Exception Handling/Download file/DownloadFile.cs | bun2fun/CSharp2 | 0 | 7050050 | <reponame>bun2fun/CSharp2
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Net;
using System.IO;
/*
Download file
Write a program that downloads a file from Internet (e.g. Ninja image) and stores it the current directory.
Find in Google ... |
Rnwood.Smtp4dev/Server/ClientOptions.cs | fkthat/smtp4dev | 0 | 7050051 | namespace Rnwood.Smtp4dev.Server
{
public class ClientOptions
{
/// <summary>
/// Page size for message pagination
/// </summary>
public int PageSize { get; set; } = 25;
}
} |
src/JOS.ContentSerializer.Tests/ValueTypeListPropertyHandlers/IntListPropertyHandlerTests.cs | matkun/JOS.ContentSerializer | 0 | 7050052 | <reponame>matkun/JOS.ContentSerializer<filename>src/JOS.ContentSerializer.Tests/ValueTypeListPropertyHandlers/IntListPropertyHandlerTests.cs
using System.Collections.Generic;
using System.Linq;
using JOS.ContentSerializer.Internal.Default.ValueListPropertyHandlers;
using Shouldly;
using Xunit;
namespace JOS.ContentSe... |
Occ/OccPackage.cs | CBenghi/NuSpecHelper | 1 | 7050053 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
namespace NuSpecHelper.Occ
{
public class OccPackage
{
private OccLib _lib;
private OccSource _source;
... |
WaspWorkFlowCore/WaspWorkFlowCore/WFContext.cs | jiahengaa/WaspWorkflow | 1 | 7050054 | using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Hosting;
using System;
using WaspWorkFlowCore.Models;
namespace WaspWorkFlowCore
{
public class WFContext: DbContext
{
private readonly IHostingEnvironment env;
public WFContext(IHostingEn... |
Src/Message/MessageNet.sdk/Models/MessageHostOption.cs | khooversoft/Spin | 0 | 7050056 | using System.Collections.Generic;
using System.Linq;
using Toolbox.Extensions;
using Toolbox.Tools;
namespace MessageNet.sdk.Models
{
public record MessageHostOption
{
public IReadOnlyList<MessageNodeOption> Nodes { get; init; } = null!;
}
public static class MessageHostOptionExtensions
... |
models/push/Message.cs | stg609/server-sdk-dotnet | 41 | 7050057 | using Newtonsoft.Json;
using System;
namespace io.rong.models.push
{
/**
* 发送消息内容(必传)
*/
public class Message
{
/**
* 发送消息内容,参考融云 Server API 消息类型表.示例说明;如果 objectName 为自定义消息类型,该参数可自定义格式。(必传)
*/
[JsonProperty(PropertyName = "content")]
private String cont... |
src/Faithlife.Testing.RabbitMq/RabbitMqWrapper.cs | benramey-faithlife/FaithlifeTesting | 0 | 7050058 | using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using RabbitMQ.Client;
using RabbitMQ.Client.Events;
namespace Faithlife.Testing.RabbitMq
{
/// <summary>
/// Wraps all RabbitMq operations for testability.
/// </summary>
internal sealed class ... |
JasonSoft.Core/Microsoft/IIS/IIsDirectory.cs | JasonSoft/JasonSoft | 0 | 7050059 | using System;
using System.DirectoryServices;
using System.Linq;
using System.Runtime.InteropServices;
namespace JasonSoft.Microsoft.IIS
{
public class IIsDirectory : IDisposable
{
#region "Privates"
private DirectoryEntry _DirectoryEntry;
#endregion
#region "Constructors ... |
XamarinExampleApp/XamarinExampleApp/ArExperienceManager.cs | Wikitude/wikitude-xamarin-examples | 5 | 7050060 | <filename>XamarinExampleApp/XamarinExampleApp/ArExperienceManager.cs
using System.IO;
using System.Collections.Generic;
using System.Json;
using System.Runtime.Serialization.Formatters.Binary;
namespace XamarinExampleApp
{
public static class ArExperienceManager
{
public static List<ArExperienceGroup>... |
src/Implementation/FrannHammer.WebApi/HypermediaServices/EntityToBusinessTranslationService.cs | dunnaaron/FrannHammer | 0 | 7050061 | using System.Web.Http.Routing;
using AutoMapper;
using FrannHammer.Domain.Contracts;
using FrannHammer.Utility;
using FrannHammer.WebApi.Controllers;
using FrannHammer.WebApi.Models;
namespace FrannHammer.WebApi.HypermediaServices
{
public class EntityToBusinessTranslationService : IEntityToBusinessTranslationSer... |
src/WebJobs.Script/OutOfProc/ProcessManagement/WorkerContext.cs | DevRaf-Per/azure-functions-host | 1 | 7050062 | // 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 Microsoft.Azure.WebJobs.Script.OutOfProc;
namespace Microsoft.Azure.WebJobs.Script.Rpc
{
// Arguments to start a worker process
public a... |
ServiceChatApp(APIAI)/Dialogs/Logger.cs | pratishthakapoor/WitBot | 0 | 7050063 | <reponame>pratishthakapoor/WitBot<filename>ServiceChatApp(APIAI)/Dialogs/Logger.cs
using System.Collections.Generic;
using System.Net;
using System;
using System.Text;
using System.IO;
using Newtonsoft.Json.Linq;
using Newtonsoft.Json;
namespace ServiceChatApp_APIAI_.Dialogs
{
internal class Logger
{
... |
Assets/FoodBehavior.cs | ktaka/ARKitten_ARF | 0 | 7050064 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class FoodBehavior : MonoBehaviour
{
public float existingTime = 2.0f;
public void Show()
{
GetComponent<Renderer>().enabled = true;
}
public void Hide()
{
GetComponent<Render... |
R.Systems.Auth.Infrastructure.Db/Migrations/20211216190049_add_user_email_unique_constraint.cs | lrydzkowski/R.Systems.Auth | 0 | 7050065 | <reponame>lrydzkowski/R.Systems.Auth
using Microsoft.EntityFrameworkCore.Migrations;
namespace R.Systems.Auth.Infrastructure.Db.Migrations
{
public partial class add_user_email_unique_constraint : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
m... |
src/ProSuite.Commons.UI/ScreenBinding/Lists/IPicklist.cs | ProSuite/ProSuite | 5 | 7050066 | <filename>src/ProSuite.Commons.UI/ScreenBinding/Lists/IPicklist.cs
using System.Collections;
using System.Windows.Forms;
using ProSuite.Commons.Essentials.CodeAnnotations;
namespace ProSuite.Commons.UI.ScreenBinding.Lists
{
public interface IPicklist : IEnumerable
{
[NotNull]
IList Values { get; }
string Disp... |
backend/tcs-service/Services/MockBannerService.cs | DevonXDal/wvup-tcs | 5 | 7050067 | using System;
using System.Linq;
using System.Threading.Tasks;
using tcs_service.Helpers;
using tcs_service.Models;
using tcs_service.Models.DTO;
using tcs_service.Repos.Interfaces;
using tcs_service.Services.Interfaces;
namespace tcs_service.Services {
/// <summary>Fakes calling a banner api to use during develo... |
Horizon.Payment.Alipay/Domain/CertFields.cs | bluexray/Horizon.Sample | 1 | 7050068 | using System.Text.Json.Serialization;
namespace Horizon.Payment.Alipay.Domain
{
/// <summary>
/// CertFields Data Structure.
/// </summary>
public class CertFields : AlipayObject
{
/// <summary>
/// 地址
/// </summary>
[JsonPropertyName("address")]
public stri... |
iLynx.UI.OpenGL/Controls/TextBox.cs | Melamew/iLynx.Common.NetCore | 0 | 7050069 | <filename>iLynx.UI.OpenGL/Controls/TextBox.cs
#region LICENSE
/*
* Copyright 2018 <NAME>
*
* Redistribution and use in source and binary forms,
* with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright no... |
Projects/HikingPlanAndRescue/Source/Web/HikingPlanAndRescue.Web/Areas/Private/Views/Home/Index.cshtml | todorm85/TelerikAcademy | 0 | 7050070 | <reponame>todorm85/TelerikAcademy
@{
ViewBag.Title = "HikingPlanAndRescue";
}
<h1 class="text-center text-info">@ViewBag.Title</h1>
<hr />
<div class="col-md-4 well-lg text-center">
<a href="/private/trainings/create" class="btn btn-block btn-info">
<h1>Plan</h1>
<p>your next adventure!</p>
... |
MDSDK.Dicom.Serialization/ValueRepresentations/Sequence.cs | mdsdk/DicomSerialization | 1 | 7050071 | <gh_stars>1-10
// Copyright (c) <NAME> - All rights reserved - See LICENSE file for license terms
using System;
using System.Collections.Generic;
namespace MDSDK.Dicom.Serialization.ValueRepresentations
{
internal sealed class Sequence<T> : ValueRepresentation, ISingleValue<List<T>>, IHas32BitExplicitVRLength, I... |
HotLib/DelegateBuilding/IncompatibleParameterTypeException.cs | MrHotkeys/HotLib | 0 | 7050073 | <reponame>MrHotkeys/HotLib
using System;
using System.Reflection;
namespace HotLib.DelegateBuilding
{
/// <summary>
/// The exception thrown when a method encapsulating delegate is built with a parameter type that is
/// incompatible with its matched parameter type in the encapsulated method's signature.
... |
App/AccessPhone/AccessPhone/Contacts/PeopleActivity.cs | stephen-hawley/AccessPhone | 0 | 7050074 | <filename>App/AccessPhone/AccessPhone/Contacts/PeopleActivity.cs
using System;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Linq;
using System.Threading.Tasks;
using AccessPhone.Contacts;
using Xamarin.Forms;
namespace AccessPhone {
public class PeopleActivity : ITopLevelActivity {... |
UnitTests/Shared/MainTests/BasicInterceptors/TestClass.cs | armohamm/Cauldron | 78 | 7050075 | <gh_stars>10-100
using System;
using UnitTest_InterceptorsForTest;
namespace UnitTests.BasicInterceptors
{
public class DisposableTestClass : IDisposable
{
public void Dispose()
{
throw new NotImplementedException();
}
}
public class TestClass : ITestInterface
... |
StarCitizenApi/ArkStarmap/Model/CelestialObjects/Assets/DeletableProperties.cs | agabani/StarCitizenApi | 7 | 7050076 | <filename>StarCitizenApi/ArkStarmap/Model/CelestialObjects/Assets/DeletableProperties.cs
using Newtonsoft.Json;
namespace StarCitizenApi.ArkStarmap.Model.CelestialObjects.Assets
{
public class DeletableProperties<THeight> : Properties<THeight>
{
[JsonProperty("delete")]
public string Delete { g... |
Tests/TestPrograms/GraphLibrary/BaseEdgeId.cs | ravimad/SEAL | 1 | 7050077 | /*
*
* User: <NAME>
* Date: 11/21/2009
* Time: 4:44 PM
*
*
*/
using System;
namespace GraphLibrary
{
/// <summary>
/// Description of BaseEdgeId.
/// </summary>
internal class BaseEdgeId : IEdgeId
{
private Guid edgeId;
private IVertexId vertex... |
retail-of-the-future-demo/services/FunctionAppArrivals/FunctionAppArrivals/Function1.cs | piyushka17/azure-intelligent-edge-patterns | 176 | 7050078 | <gh_stars>100-1000
using System;
using System.IO;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Azure.WebJobs;
using Microsoft.Azure.WebJobs.Extensions.Http;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Logging;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using Syst... |
Assets/healthKeeper.cs | JKClaytonDev/WorldTour | 0 | 7050079 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class healthKeeper : MonoBehaviour
{
void OnTriggerStay(Collider other)
{
if (other.GetComponent<Movement>())
{
other.GetComponent<Movement>().PlayerHealth = 100;
other.GetComponent<Movem... |
Source/ToolProjects/ImageWriter/ImageWriter/CatEntry.cs | jorgy343/RustyOS | 0 | 7050080 | <filename>Source/ToolProjects/ImageWriter/ImageWriter/CatEntry.cs
using System.IO;
namespace ImageWriter
{
public class CatEntry
{
readonly private uint index;
readonly private CatEntryType catEntryType;
readonly private uint clusterSizeInBytes;
readonly private byte[]... |
SeeSharper.Script/Membership/ChangePasswordPanel.cs | kingajay007/SeeSharper-Master | 0 | 7050081 | <reponame>kingajay007/SeeSharper-Master<filename>SeeSharper.Script/Membership/ChangePasswordPanel.cs
namespace SeeSharper.Membership
{
using jQueryApi;
using Serenity;
using System.Html;
[Panel, FormKey("Membership.ChangePassword")]
public class ChangePasswordPanel : PropertyPanel<ChangePasswordR... |
src/ServiceManagement/StorSimple/StorSimple/Generated/Models/DeviceDetailsBase.cs | cwickham3/azure-sdk-for-net | 1 | 7050082 | //
// Copyright (c) Microsoft and contributors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless requi... |
src/Bootstrappers/AuthBootstraper.cs | gifty-stack/gifty.API | 5 | 7050083 | using Autofac;
using gifty.Api.Providers;
using Nancy.Authentication.Stateless;
using Nancy.Bootstrapper;
using Nancy.Bootstrappers.Autofac;
using Microsoft.Extensions.Configuration;
using gifty.Api.Settings;
using gifty.Shared.Extensions;
using Microsoft.Extensions.DependencyInjection;
using gifty.Shared.Nancy;
names... |
tests/CheckoutKata.UnitTests/Pricing/MultibuyOfferTests.cs | DanHarltey/CheckoutKata | 0 | 7050084 | using CheckoutKata.Pricing;
using Xunit;
namespace CheckoutKata.UnitTests.Pricing
{
public class MultibuyOfferTests
{
[Fact]
public void WhenSkuHasOfferThenOfferIsApplied()
{
// Arrange
const string Sku1 = "A99";
const decimal Sku1Price =... |
src/AvroConvert/AvroConvert.Deserialize.cs | omnipresentminded/AvroConvert | 0 | 7050085 | namespace AvroConvert
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using AutoMapper;
using Models;
using Read;
using Read.AutoMapperConverters;
public static partial class AvroConvert
{
static AvroConvert()
{
... |
src/SSO/JPProject.Sso.Domain/Events/User/AdminChangedPasswordEvent.cs | dimitertodorov/JPProject.Core | 0 | 7050086 | <filename>src/SSO/JPProject.Sso.Domain/Events/User/AdminChangedPasswordEvent.cs<gh_stars>0
using JPProject.Domain.Core.Events;
namespace JPProject.Sso.Domain.Events.User
{
public class AdminChangedPasswordEvent : Event
{
public string Username { get; }
public AdminChangedPasswordEvent(string u... |
src/prod/src/managed/Microsoft.ServiceFabric.ContainerServiceClient/Config/ContainerEventsConfig.cs | vishnuk007/service-fabric | 2,542 | 7050087 | <gh_stars>1000+
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Micr... |
src/LibHac/Fs/FileSystemClient.cs | Thealexbarney/LibHac | 213 | 7050088 | using LibHac.Fs.Fsa;
using LibHac.Fs.Shim;
using LibHac.FsSystem;
namespace LibHac.Fs
{
public class FileSystemClient
{
internal FileSystemClientGlobals Globals;
public FileSystemClientImpl Impl => new FileSystemClientImpl(this);
internal HorizonClient Hos => Globals.Hos;
... |
GitLab.NET/GitLab.cs | Elisavett/GitLab | 0 | 7050089 | <gh_stars>0
using System;
using unirest_net.http;
using System.Web;
using Newtonsoft.Json;
namespace GitLabDotNet
{
/// <summary>
/// Class for interfacing with a GitLab API via .NET
/// See https://gitlab.com/help/api/README.md for API Reference
/// </summary>
public partial class GitLab
{
... |
src/DNTFrameworkCore/Localization/LocalizableString.cs | amir-ashy/DNTFrameworkCore | 271 | 7050090 | using System;
using DNTFrameworkCore.GuardToolkit;
using Microsoft.Extensions.Localization;
namespace DNTFrameworkCore.Localization
{
/// <summary>
/// Represents a string that can be localized.
/// </summary>
[Serializable]
public class LocalizableString : ILocalizableString
{
/// <su... |
SharpLayout/FontFamilyInfo.cs | AVPolyakov/SharpLayout | 15 | 7050091 | <filename>SharpLayout/FontFamilyInfo.cs
namespace SharpLayout
{
public class FontFamilyInfo
{
public FontSlot Slot { get; }
public string OriginalName { get; }
public string Name => Slot.Identifier.HasValue ? $"{OriginalName}_{Slot.Identifier}" : OriginalName;
public FontFamilyI... |
Graffle.FlowSdk/Flow/Entities/AccountKey.cs | Graffle/flow-c-sharp-sdk | 1 | 7050092 | <reponame>Graffle/flow-c-sharp-sdk<gh_stars>1-10
using System.Collections.Generic;
using System.Linq;
using Graffle.FlowSdk.Cryptography;
using Graffle.FlowSdk;
namespace Flow.Entities {
//extended properties of base proto classes
public sealed partial class AccountKey {
public string PrivateKey { get;... |
FusionEngine/Framebuffer/FrameBufferCube.cs | polytronicgr/Fusion3D | 4 | 7050093 | using OpenTK.Graphics.OpenGL4;
using System;
using FusionEngine.App;
using FusionEngine.Texture;
namespace FusionEngine.FrameBuffer
{
public class FrameBufferCube
{
public int FBO, FBD;
public TextureCube Cube;
public int W, H;
public FrameBufferCube ( int w, int h )
{... |
DataTypesSynchronization/DataUpdateComparer.cs | burningice2866/CompositeC1Contrib | 5 | 7050094 | <reponame>burningice2866/CompositeC1Contrib<filename>DataTypesSynchronization/DataUpdateComparer.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading;
using Composite.Core.Types;
using Composite.Data;
namespace CompositeC1Contrib.DataTypesSync... |
tools/nnyeah/nnyeah/ModuleExtensions.cs | stephen-hawley/xamarin-macios | 0 | 7050095 | using System;
using Mono.Cecil;
using System.Collections.Generic;
namespace Microsoft.MaciOS.Nnyeah {
public static class ModuleExtensions {
static Dictionary<string, PlatformName> moduleToPlatform = new Dictionary<string, PlatformName> {
{ "Xamarin.iOS", PlatformName.iOS },
{ "Xamarin.Mac", PlatformName.macO... |
Assets/Scripts/Obstacles/PipeSpawner.cs | kraddoc/Flappy-Bird-Clone | 0 | 7050096 | using System.Collections;
using FlappyClone.Core;
using UnityEngine;
namespace FlappyClone.Obstacles
{
// Just spawns pipe from pool with random vertical offset.
public class PipeSpawner : MonoBehaviour
{
[SerializeField, Range(0.1f, 2f)] private float spawnTime = 1f;
[SerializeField, Range... |
BuzzButtonChangedEventArgs.cs | bbeardsley/BuzzIO | 20 | 7050097 | <reponame>bbeardsley/BuzzIO
using System;
namespace BuzzIO
{
/// <summary>
/// Arguments for button changed event
/// </summary>
public class BuzzButtonChangedEventArgs : EventArgs
{
/// <summary>Current states of the buttons</summary>
public readonly ButtonStates[] Buttons;
... |
WPF/MVVM/View/Samples/C_ChangeNotification/Converters/ProductListChangeNotificationParameter.cs | marlandolaud/presentations | 1 | 7050098 | #region Copyright Info
// Copyright Information
// ==============================
// MVVM - WPF - ProductListChangeNotificationParameter.cs
// All samples copyright <NAME>
// http://www.skimedic.com 2014/05/13
// See License.txt for more information
// ==============================
#endregion
#region Copyright
#end... |
MahTweets.UI/Controls/ModalControl.cs | shiftkey/MahTweets.LawrenceHargrave | 2 | 7050099 | using System;
using System.ComponentModel;
using System.Windows.Controls;
using MahTweets.Core.Composition;
using MahTweets.Core.Events;
using MahTweets.Core.Events.EventTypes;
namespace MahTweets.UI.Controls
{
public class ModalControl : UserControl
{
private bool? _modalResult;
public bool?... |
WpfAppWithAdvTextControl/AdvTextBox.cs | DaveTryon/uia-custom-pattern-managed | 13 | 7050100 | using System.Windows.Automation.Peers;
using System.Windows.Controls;
namespace WpfAppWithAdvTextControl
{
public class AdvTextBox : TextBox
{
protected override AutomationPeer OnCreateAutomationPeer()
{
return new AdvTextBoxAutomationPeer(this);
}
}
} |
Reflections_Plugin/ReflectionUpdate.cs | Spysi/Reflections_Plugin | 0 | 7050101 | <gh_stars>0
using UnityEngine;
using System.Collections;
using System;
namespace Reflections_Plugin
{
public class ReflectionUpdate : MonoBehaviour
{
public int seconds, texture_resolution;
// Use this for initialization
void Start()
{
StartCoroutine(Render());
foreach (ReflectionProbe te... |
BasicModules/CfgManager/IniConfigSystem.cs | rl132/RLToolkit | 0 | 7050103 | using System;
using System.Collections.Generic;
using RLToolkit.Logger;
namespace RLToolkit.Basic
{
/// <summary>
/// IniConfigSystem to use with the IConfigSystem interface
/// </summary>
public class IniConfigSystem : IConfigSystem
{
/// <summary>
/// Method to define that will h... |
Source/Meadow.Foundation.Peripherals/Sensors.Light.Tcs3472x/Driver/Sensors.Light.Tcs3472x/Tcs3472x.cs | jeffjulian/Meadow.Foundation | 0 | 7050104 | using System;
using System.Buffers.Binary;
using System.Threading;
using System.Threading.Tasks;
using Meadow.Hardware;
namespace Meadow.Foundation.Sensors.Light
{
/// <summary>
/// Driver for the Tcs3472x light-to-digital converter.
/// </summary>
public partial class Tcs3472x
{
I2cPe... |
src/OPCAIC.ApiService/ModelValidationHandling/CustomBadRequest.cs | opcaic/server | 0 | 7050105 | using System.Collections.Generic;
using Microsoft.AspNetCore.Mvc;
using OPCAIC.ApiService.Utils;
using OPCAIC.Application.Infrastructure;
using OPCAIC.Application.Infrastructure.Validation;
namespace OPCAIC.ApiService.ModelValidationHandling
{
public class CustomBadRequest
{
private readonly IModelValidationServi... |
BugLog.Application/Countries/Queries/GetCountryList/CountryListViewModel.cs | FahadSProgramming/BugLog | 0 | 7050106 | <filename>BugLog.Application/Countries/Queries/GetCountryList/CountryListViewModel.cs
using System.Collections.Generic;
namespace BugLog.Application.Countries.Queries
{
public class CountryListViewModel
{
public ICollection<CountryDetailViewModel> Countries { get; set; }
public int Count { get;... |
csharp-leetcode/vs projects/leetcode762-prime-number-of-set-bits-in-binary-representation/leetcode762-PrimeNumberofSetBitsinBinaryRepresentation/Program.cs | yanglr/LeetCodeOJ | 45 | 7050107 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace leetcode762_PrimeNumberofSetBitsinBinaryRepresentation
{
public class Solution
{
public int CountPrimeSetBits(int L, int R)
{
int count = 0;
for... |
MonoDevelop.Inspector.Mac/Controls/ImageButton.cs | netonjm/MonoDevelop.Mac.Debug | 15 | 7050108 | // This file has been autogenerated from a class added in the UI designer.
using AppKit;
namespace MonoDevelop.Inspector.Mac
{
class ImageButton : NSButton
{
public bool BecomeKeyView = true;
public override bool CanBecomeKeyView => BecomeKeyView;
public ImageButton()
{
Bordered = true;
BezelSt... |
VTC_WPF/Klassen/Login.cs | thommy1972deNeu/VTC_WPF | 0 | 7050109 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Globalization;
using System.Web.UI.WebControls;
using System.Windows.Controls;
using System.Windows.Forms;
namespace VTCManager.Klassen
{
public class Login : MainWindow
{
private API api = ... |
parts/0000-library/Assets/Vendor/FPCSharpUnity/Editor/unity_serialization/UnityOptionDrawer.cs | FPCSharpUnity/FPCSharpUnity | 1 | 7050110 | using FPCSharpUnity.unity.Editor.extensions;
using FPCSharpUnity.core.exts;
using FPCSharpUnity.unity.unity_serialization;
using FPCSharpUnity.core.functional;
using UnityEditor;
using UnityEngine;
namespace FPCSharpUnity.unity.Editor.unity_serialization {
[CustomPropertyDrawer(typeof(UnityOption), useForChildren: ... |
src/Tedd.MOS65xx.Emulator/Memory/MemoryBankModeEnum.cs | tedd/Tedd.MOS65xx | 1 | 7050111 | using System;
namespace Tedd.MOS65xx.Emulator.Memory
{
[Flags]
public enum MemoryBankModeEnum
{
RAM = 0,
CARTROMLO = 1 << 1,
CARTROMHI = 1 << 2,
BASICROM = 1 << 3,
IO = 1 << 4,
CHARROM = 1 << 5,
KERNAL = 1 << 6,
KERNALROM = 1 << 6,
ULT... |
Color Picker (Kaspersoft)/ColorProfile.xaml.cs | theprogrammermachine/WindowsColorPicker | 0 | 7050112 | using System;
using System.Windows;
using System.Windows.Forms;
namespace Color_Picker__Kaspersoft_
{
public partial class ColorProfile : Window
{
private System.Windows.Forms.Timer dragTimer;
private double mdX, mdY;
private MainWindow parent;
public ColorProfile(MainWindow p... |
NetCrawlerDetect/NetCrawlerDetect.Tests/Tests.cs | gplumb/NetCrawlerDetect | 16 | 7050113 | using System;
using System.IO;
using System.Net;
using System.Text.RegularExpressions;
using Xunit;
namespace NetCrawlerDetect.Tests
{
/// <summary>
/// Ported unit tests with some additional coverage
/// </summary>
public class Tests
{
CrawlerDetect _detector;
///... |
Form1.Designer.cs | OSformula/ColorSynth | 2 | 7050114 | namespace ColorSynth
{
partial class Form1
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
... |
CUE4Parse/CUE4Parse/UE4/Objects/UObject/UStruct.cs | Tamely/ProSwapper | 34 | 7050115 | <gh_stars>10-100
using System;
using CUE4Parse.UE4.Assets.Readers;
using CUE4Parse.UE4.Versions;
using Newtonsoft.Json;
namespace CUE4Parse.UE4.Objects.UObject
{
public class UStruct : Assets.Exports.UObject
{
public FPackageIndex SuperStruct;
public FPackageIndex[] Children;
public FF... |
src/CK.Glouton.Model.Server/Sender/IAlertSender.cs | ZooPin/Glouton | 1 | 7050116 | using CK.Glouton.Model.Server.Handlers.Implementation;
namespace CK.Glouton.Model.Server.Sender
{
public interface IAlertSender
{
string SenderType { get; set; }
bool Match( IAlertSenderConfiguration configuration );
void Send( AlertEntry logEntry );
}
} |
Tests/GraduatedCylinder.Geo.Tests/Devices/Laser/LaserDemo.cs | EddieGarmon/GraduatedCylinder | 7 | 7050117 | <reponame>EddieGarmon/GraduatedCylinder
using System;
using System.IO.Ports;
using System.Threading;
namespace TruConsole
{
class Program
{
private static SerialPort _com4;
static void DemoMain(string[] args) {
//SerialPort com4 = new SerialPort("COM4", 4800, Parity.None, 8, StopB... |
NRaft.Server/ConsensusServer.cs | devatwork/NRaft | 75 | 7050119 | using System;
using NLoop.Core;
using NLoop.Core.Utils;
using NRaft.Server.Configuration;
using NRaft.Server.Protocols;
using NRaft.Server.States;
using NRaft.Server.Storage;
namespace NRaft.Server
{
/// <summary>
/// Implements the RAFT consensus server.
/// </summary>
public class ConsensusServer : Disposable
... |
Swashbuckle.AWSApiGateway.Annotations/Options/IntegrationResponse.cs | overbit/Swashbuckle.AWSApiGateway.Annotations | 0 | 7050120 | using System.Collections.Generic;
using System.Linq;
using Microsoft.OpenApi.Any;
namespace Swashbuckle.AWSApiGateway.Annotations.Options
{
public class IntegrationResponse : AbstractOptions
{
private const string StatusCodeKey = "statusCode";
private const string ResponseTemplatesKey... |
src/Mvc/test/WebSites/HtmlGenerationWebSite/Views/CheckViewData/ViewModel.cshtml | legistek/AspNetCore | 13,846 | 7050122 | <reponame>legistek/AspNetCore
@using HtmlGenerationWebSite.Components
@using HtmlGenerationWebSite.Models
@using Microsoft.AspNetCore.Mvc.ModelBinding.Metadata
@* Need the model directive in top-level view. Otherwise the controller would have to set the ViewData property. *@
@* Put another way, Controller lacks the V... |
backend/Data/LivroMap.cs | Rafaeldebiase/bookstore | 0 | 7050123 | using bookstore.domain.models;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace bookstore.data
{
public class LivroMap : IEntityTypeConfiguration<Livro>
{
public void Configure(EntityTypeBuilder<Livro> builder)
{
builder.ToTable("... |
X4_DataExporterWPF/Export/Ware/WareOwnerExporter.cs | proudust/X4_ComplexCalculator | 7 | 7050124 | <filename>X4_DataExporterWPF/Export/Ware/WareOwnerExporter.cs
using Dapper;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Xml.Linq;
using System.Xml.XPath;
using X4_DataExporterWPF.Entity;
namespace X4_DataExporterWPF.Export
{
/// <summary>
/// ウェア所有派閥情報抽出用... |
src/CMS/CMSAdminControls/UI/ObjectParameters.ascx.cs | JFouts-BlueModus/kentico-contrib | 1 | 7050126 | <gh_stars>1-10
using System;
using System.Collections;
using System.Data;
using CMS.Base;
using CMS.Base.Web.UI;
using CMS.FormEngine;
using CMS.FormEngine.Web.UI;
using CMS.Helpers;
using CMS.SiteProvider;
using CMS.UIControls;
public partial class CMSAdminControls_UI_ObjectParameters : CMSUserControl... |
SearchModule/Config/ISearchConfig.cs | cbelyaev/search-assessment | 0 | 7050127 | // <copyright company="<NAME>">
// Copyright (C) 2019 <NAME>. All Rights Reserved.
// </copyright>
namespace SearchModule.Config
{
using System.Collections.Immutable;
using Service;
/// <summary>
/// Provides a configuration for <see cref="ISearchService"/>.
/// </summary>
internal interf... |
dsis/src/Scheme.Impl/src/Actions/SetMethod.cs | jonnyzzz/phd-project | 1 | 7050128 | <reponame>jonnyzzz/phd-project
using System.Collections.Generic;
using DSIS.CellImageBuilder.Shared;
using DSIS.Scheme.Ctx;
using DSIS.Utils;
namespace DSIS.Scheme.Impl.Actions
{
public class SetMethod : ActionBase
{
private readonly ICellImageBuilderIntegerCoordinatesSettings mySettings;
private... |
508. Most Frequent Subtree Sum/508_Original_Hashtable.cs | webigboss/Leetcode | 0 | 7050129 | <reponame>webigboss/Leetcode
/**
* Definition for a binary tree node.
* public class TreeNode {
* public int val;
* public TreeNode left;
* public TreeNode right;
* public TreeNode(int x) { val = x; }
* }
*/
public class Solution {
public int[] FindFrequentTreeSum(TreeNode root) {
va... |
pbrt/pbrt/Core/Vector3F.cs | fremag/pbrt | 0 | 7050130 | using System;
using System.Diagnostics;
namespace pbrt.Core
{
[DebuggerDisplay("Vx[{X}] Vy[{Y}] Vz[{Z}]")]
public class Vector3F
{
public static Vector3F Zero { get; } = new Vector3F(0,0,0);
public float X { get; }
public float Y { get; }
public float Z { get; set; }
... |
QuestingEngine.Contract/State/Responses/GetPlayerStateResponse.cs | ttrit/questing-engine | 0 | 7050131 | namespace QuestingEngine.Contract.State.Responses
{
public class GetPlayerStateResponse
{
public int TotalQuestPercentCompleted { get; set; }
public string LastMilestoneIndexCompleted { get; set; }
}
}
|
challenges/FIFOAnimalShelter/GUnitTest/UnitTest1.cs | jinwoov/CF-DataStructureAlgorithm | 0 | 7050132 | using FIFOAnimalShelter.Classes;
using System;
using Xunit;
namespace GUnitTest
{
public class UnitTest1
{
[Fact]
public void CanAddCatToTheAnimalShelter()
{
AnimalShelter hospital = new AnimalShelter();
Animal cat = new Animal("Garfield", "cat");
ho... |
Sound/Sound.cs | ryanvanrooyen/Entity | 0 | 7050133 |
using System;
using UnityEngine;
namespace Entity
{
public interface ISound
{
void Play(GameObject source);
}
public class Sound : SoundBase, ISound
{
private readonly float audibleRadius;
public Sound(AudioSource audioSource, AudioClip audioClip,
float audibleRadius, float volume = 1f, float minDist... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.