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 |
|---|---|---|---|---|
src/_WorkflowSampleSystem/WorkflowSampleSystem.WebApiCore/Startup.cs | Luxoft/BSSFramework.Workflow | 0 | 7028058 | <reponame>Luxoft/BSSFramework.Workflow
using System;
using System.Collections.Generic;
using System.IO;
using System.Reflection;
using DotNetCore.CAP;
using Framework.Core;
using Framework.DependencyInjection;
using Framework.DomainDriven.ServiceModel;
using Framework.DomainDriven.ServiceModel.IAD;
using ... |
UserTesting.Application/Features/UserManagements/Users/Queries/GetUserList/GetUsersQuery.cs | SargeMahoney/CustomUserAspCoreApp | 0 | 7028059 | using MediatR;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UserTesting.Domain.Entities.Users;
namespace UserTesting.Application.Features.UserManagements.Users.Queries.GetUserList
{
public class GetUsersQuery : IRequest<IEnumerable<Appli... |
VSMonoDebugger/Settings/UserSettingsManager.cs | EmmeKappaErre/VSMonoDebugger | 1 | 7028060 | using Microsoft.VisualStudio.Settings;
using Microsoft.VisualStudio.Shell;
using Microsoft.VisualStudio.Shell.Settings;
using NLog;
using System;
using System.IO;
namespace VSMonoDebugger.Settings
{
public class UserSettingsManager
{
public readonly static string SETTINGS_STORE_NAME = "VSMonoDebugger"... |
src/EncompassRest/Loans/Enums/PaymentOption.cs | Oxymoron290/EncompassRest | 87 | 7028061 | using System.Runtime.Serialization;
namespace EncompassRest.Loans.Enums
{
/// <summary>
/// PaymentOption
/// </summary>
public enum PaymentOption
{
/// <summary>
/// Standard Front Loaded
/// </summary>
[EnumMember(Value = "Standard Front Loaded")]
StandardF... |
src/WeihanLi.Common/Helpers/NewFuncHelper.cs | WeihanLi/WeihanLi.Common | 201 | 7028062 | using System;
using System.Linq.Expressions;
namespace WeihanLi.Common.Helpers
{
public static class NewFuncHelper<T>
{
/// <summary>
/// CreateNewInstance func
/// T need to have a parameter less constructor
/// </summary>
public static readonly Func<T> Instance = Expr... |
sdk/eventhub/Azure.Messaging.EventHubs/tests/EventHubConsumer/EventHubConsumerTests.cs | szimmerMicrosoft/azure-sdk-for-net | 0 | 7028063 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using System;
using System.Collections.Generic;
using System.Reflection;
using System.Threading;
using System.Threading.Tasks;
using Azure.Messaging.EventHubs.Core;
using Moq;
using NUnit.Framework;
namespace Azure.Messag... |
PhoneBook/Startup.cs | takudzwa-dot/Phone-Book | 0 | 7028064 | <filename>PhoneBook/Startup.cs<gh_stars>0
using AutoMapper;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Ho... |
Adan.Client.Common/Controls/ContorlBoxNative/MouseWheelRedirector.cs | syrompetka/mudclient | 5 | 7028065 | using System;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Diagnostics;
using System.Windows.Forms;
using System.Runtime.InteropServices;
namespace Adan.Client.Common.Controls
{
/// <summary>
///
/// </summary>
public class MouseWheelRedirec... |
Abot.Tests.Unit/Poco/CrawlDecisionTest.cs | divyang4481/abot | 1 | 7028067 | using Abot.Poco;
using NUnit.Framework;
namespace Abot.Tests.Unit.Poco
{
[TestFixture]
public class CrawlDecisionTest
{
[Test]
public void Constructor_ValidUri_CreatesInstance()
{
CrawlDecision unitUnderTest = new CrawlDecision();
Assert.AreEqual... |
LHGames/Strategy.cs | LHGames-2017/les_lendemains | 0 | 7028068 | <reponame>LHGames-2017/les_lendemains
using LHGames.Actions;
using LHGames.Nodes;
using StarterProject.Web.Api;
using System;
using System.Collections.Generic;
namespace LHGames
{
class Strategy
{
public HighAction NextAction(Map map, GameInfo gameInfo)
{
if(gameInfo.Player.Carried... |
Assets/CommonCoreGame/SideScrollerGame/CountdownController.cs | XCVG/heavymetalslug | 3 | 7028069 | <filename>Assets/CommonCoreGame/SideScrollerGame/CountdownController.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
namespace CommonCore.SideScrollerGame
{
/// <summary>
/// Controller for the respawn countdown
/// </summary>
public class Count... |
src/Tasks/ManifestUtil/SecurityUtil.cs | joseotavioq/msbuild | 0 | 7028072 | <reponame>joseotavioq/msbuild
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using Microsoft.Build.Framework;
using Microsoft.Build.Utilities;
using Microsoft.Win32;
using System;
using System.Collections.Generic;
... |
CSCore/Win32/HResult.cs | SystematixIndore/googleVoiceRecorder | 1,970 | 7028073 | namespace CSCore.Win32
{
/// <summary>
/// Defines common HRESULT error codes.
/// </summary>
public enum HResult
{
/// <summary>
/// S_OK
/// </summary>
S_OK = 0x0,
/// <summary>
/// S_FALSE
/// </summary>
S_FALSE = 0x1,
/// <... |
LiteRestReloaded/Response/ErrorResponse.cs | Twometer/literest | 0 | 7028074 | <reponame>Twometer/literest
using System;
using System.Collections.Generic;
using System.Net;
using System.Text;
using System.Text.RegularExpressions;
namespace LiteRestReloaded.Response
{
public class ErrorResponse : IResponse
{
private readonly HttpStatusCode statusCode;
public ErrorResponse... |
BohoTours/Web/BohoTours.Web.ViewModels/Vacations/ImportedVacationImagesViewModel.cs | i-nikolova/BohoTours | 0 | 7028075 | namespace BohoTours.Web.ViewModels.Vacations
{
using BohoTours.Data.Models;
using BohoTours.Services.Mapping;
public class ImportedVacationImagesViewModel : IMapFrom<VacationImages>
{
public int Id { get; set; }
public string ImageUrl { get; set; }
public bool IsImageDeleted ... |
Runtime/Definitions/Physics/ComparableRaycastResult.cs | realitycollective/com.xrtk.core | 0 | 7028076 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using UnityEngine.EventSystems;
namespace RealityToolkit.Definitions.Physics
{
public struct ComparableRaycastResult
{
public readonly int LayerMask... |
src/SettingsStoreExplorer/HexDumpControlCustomTextBox.cs | pharring/SettingsStoreExplorer | 25 | 7028077 | // Copyright (c) <NAME>. All Rights Reserved. Licensed under the MIT License. See LICENSE in the project root for license information.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
using System.Windows;
using System.Windows.Input;
namespace SettingsStoreExplorer
{... |
eIVOGo/Views/OrganizationQuery/Module/CompanyList.cshtml | uxb2bralph/IFS-EIVO03 | 0 | 7028079 | @using System.IO
@using System.Linq.Expressions
@using Business.Helper
@using Model.Helper
@using DataAccessLayer.basis
@using eIVOGo.Helper
@using eIVOGo.Models
@using eIVOGo.Controllers
@using eIVOGo.Models.ViewModel
@using Model.DataEntity
@using Model.Helper
@using Model.Locale
@using Model.Security.MembershipMana... |
TwitR/Views/Home.xaml.cs | vhanla/TwitR | 0 | 7028080 | <filename>TwitR/Views/Home.xaml.cs
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using WebHandler;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Core;
using Windows.UI... |
src/SportStore.Microservice.Basket.Domain/BaseDomain/Interface/Repositories/IBaseRepository.cs | felipementel/Microservices-Baske | 1 | 7028081 | <filename>src/SportStore.Microservice.Basket.Domain/BaseDomain/Interface/Repositories/IBaseRepository.cs
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace SportStore.Microservice.Basket.Domain.BaseDomain.Interface.Repositories
{
public interface IBaseRepository<TEntity, Tid> ... |
PingPong.Engine/RequestLogger.cs | dbratus/PingPong | 0 | 7028082 | using System;
using System.Text;
using System.Text.Json;
using NLog;
using PingPong.Engine.Messages;
namespace PingPong.Engine
{
sealed class RequestLogger
{
private static ILogger _logger = LogManager.GetCurrentClassLogger();
private readonly string _endPointName;
private readonly Mes... |
Engine/EventArgs/PackageSendedEventArgs.cs | abdullahgb/Peer2PeerChat | 181 | 7028083 | using System;
namespace Engine
{
[Serializable]
public class PackageSendedEventArgs : EventArgs
{
public int Size { get; private set; }
public Exception Exception { get; private set; }
public PackageSendedEventArgs(int size)
{
Size = size;
}
public PackageSendedEventArgs(Exceptio... |
arete/MainWindow.xaml.cs | fearofcode/arete-wpf-poc-latex-shelling | 0 | 7028084 | using System.Windows;
using System.Windows.Input;
namespace arete
{
public partial class MainWindow : Window
{
public static readonly RoutedUICommand GotoLatexShellingPage = new RoutedUICommand
(
"Go to LaTeX Page",
"Go to LaTeX Page",
typeof... |
src/EditorFeatures/Core.Wpf/InlineRename/CommandHandlers/RenameCommandHandler_TabHandler.cs | myblindy/roslyn | 8 | 7028085 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
using System.Linq;
using Microsoft.VisualStudio.Commanding;
using Microsoft.VisualStudio.Text.Editor.... |
src/IronyModManager.Services.Tests/PreferencesServiceTests.cs | actioninja/IronyModManager | 134 | 7028086 | // ***********************************************************************
// Assembly : IronyModManager.Services.Tests
// Author : Mario
// Created : 01-31-2020
//
// Last Modified By : Mario
// Last Modified On : 02-12-2020
// ***************************************************************... |
Pharmacy/Pharmacy.Services/Implementations/FileService.cs | Zhelyazko777/OnlinePharmacy | 0 | 7028087 | <reponame>Zhelyazko777/OnlinePharmacy<gh_stars>0
namespace Pharmacy.Services.Implementations
{
using Microsoft.AspNetCore.Http;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
public class FileService : IFileService
{
public async Task<string> SaveFileAsync(string nam... |
UserAccountControlEnumerations.cs | kneat/UserAccountControlEnumerations | 2 | 7028088 | <reponame>kneat/UserAccountControlEnumerations<filename>UserAccountControlEnumerations.cs
using System;
namespace UserAccountControlEnumerations
{
/// <summary>
/// Flags that control the behavior of the user account.
/// </summary>
[Flags]
public enum UserAccountControl
{
/// <summa... |
Assets/[Scripts]/BulletManager.cs | TheMemeMeister/Game2014-F2021-Lab3 | 0 | 7028089 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
/// <summary>
/// SINGLETON
/// </summary>
[System.Serializable]
public class BulletManager : MonoBehaviour
{
private static BulletManager instance = null;
private BulletManager ()
{
Initialize();
}
public stati... |
NRC/NrcUser.aspx.designer.cs | nscseiu/nrcapps | 0 | 7028090 | <filename>NRC/NrcUser.aspx.designer.cs<gh_stars>0
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-gen... |
src/Dependencies.Viewer.Wpf.Controls/Services/AppLoggerService.cs | iceman63/Dependencies.Viewer | 3 | 7028091 | using System;
using MaterialDesignThemes.Wpf;
using Microsoft.Extensions.Logging;
namespace Dependencies.Viewer.Wpf.Controls.Services
{
public class AppLoggerService<T>
{
public AppLoggerService(ISnackbarMessageQueue messageQueue, ILogger<T> logger)
{
MessageQueue = messageQueue;
... |
RCV-LT-Lite-BE/ExternalLibraries/RCV-Controller/Rcv.ControllerBase/Filter/LogActions.cs | asmarboulos/BMW-Labeltool-Lite | 1 | 7028092 | using Microsoft.AspNetCore.Mvc.Filters;
using Serilog;
namespace Rcv.Base.Filter
{
/// <summary>
/// Filterattribute for controllers to log all incoming requests and
/// outgoing responses.
/// </summary>
class LogActions : ActionFilterAttribute
{
public override void OnActi... |
src/root/src/contracts/INamed.cs | 0xCM/z0 | 0 | 7028093 | //-----------------------------------------------------------------------------
// Copyright : (c) <NAME>, 2020
// License : MIT
//-----------------------------------------------------------------------------
namespace Z0
{
/// <summary>
/// Characterizes something with a name
/// </summary>
pub... |
tests/Dahl.Data.Tests.Common/SqlServerTests.cs | kdahltx/Dahl.Data | 0 | 7028094 | <reponame>kdahltx/Dahl.Data
using System;
using System.Diagnostics;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Microsoft.Extensions.DependencyInjection;
namespace Dahl.Data.Tests.Common
{
//TODO: not sure this is needed anymore...
//[TestClass]
public class SqlServerTests
{
publi... |
samples/FluentSpotifyApi.Sample.ACF.UWP/ViewModels/UserViewModel.cs | dotnetfan/FluentSpotifyApi | 26 | 7028095 | <filename>samples/FluentSpotifyApi.Sample.ACF.UWP/ViewModels/UserViewModel.cs
using FluentSpotifyApi.AuthorizationFlows.Native.AuthorizationCode;
using GalaSoft.MvvmLight;
namespace FluentSpotifyApi.Sample.ACF.UWP.ViewModels
{
public class UserViewModel : ViewModelBase
{
public UserViewModel(UserClaim... |
src/cookbooks/4.1.4-beta/source/finance_ohlc.cs | bclehmann/Website | 0 | 7028096 | // OHLC Chart
// OHLC charts are an alternative to candlestick charts. They show high and low prices as a vertical line, and indicate open and close prices with little ticks to the left and to the right.
var plt = new ScottPlot.Plot(600, 400);
OHLC[] prices = DataGen.RandomStockPrices(null, 60);
plt.AddOHLCs(prices);
... |
src/Arcus.Security.Providers.CommandLine/CommandLineSecretProvider.cs | fgheysels/arcus.security | 33 | 7028097 | using System;
using System.Threading.Tasks;
using Arcus.Security.Core;
using GuardNet;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Configuration.CommandLine;
namespace Arcus.Security.Providers.CommandLine
{
/// <summary>
/// Represents an <see cref="ISecretProvider"/> implementation t... |
Engine/extlibs/IosLibs/mono-2.6.7/mcs/class/System.Web.Mvc2/System.Web.Mvc/ExpressionUtil/CachedExpressionCompiler.cs | zlxy/Genesis-3D | 0 | 7028098 | /* ****************************************************************************
*
* Copyright (c) Microsoft Corporation. All rights reserved.
*
* This software is subject to the Microsoft Public License (Ms-PL).
* A copy of the license can be found in the license.htm file included
* in this distribution.
*
*... |
Assets/Scripts/TestLine.cs | rminderhoud/UnityRose | 17 | 7028099 | <reponame>rminderhoud/UnityRose
using UnityEngine;
using System.Collections;
public class TestLine : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
Debug.DrawLine(new Vector3(0f,0f,0f), new Vector3(100f,100f,100f), Color.green, 2f, fals... |
Philips.CodeAnalysis.MaintainabilityAnalyzers/AvoidPrivateKeyPropertyAnalyzer.cs | sorensj1/roslyn-analyzers | 0 | 7028100 | <reponame>sorensj1/roslyn-analyzers
using System.Collections.Immutable;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis.Diagnostics;
using Philips.CodeAnalysis.Common;
namespace Philips.CodeAnalysis.MaintainabilityAnalyzers
{
... |
Tangle.Net/Api/HighLevel/Request/SendTransferRequest.cs | Felandil/Tangle-.Net | 50 | 7028101 | using System.Collections.Generic;
using Tangle.Net.Entity.Bech32;
using Tangle.Net.Entity.Ed25519;
namespace Tangle.Net.Api.HighLevel.Request
{
public class SendTransferRequest : SendDataRequest
{
public SendTransferRequest(Ed25519Seed seed, List<TransferOutput> outputs, int accountIndex = 0,
AddressOpt... |
MTProto.NET/Schema/TL/_generated/TLPageBlockPhoto.cs | Gostareh-Negar/TeleNet | 0 | 7028102 | <filename>MTProto.NET/Schema/TL/_generated/TLPageBlockPhoto.cs
using MTProto.NET.Attributes;
using MTProto.NET.Enums;
namespace MTProto.NET.Schema.TL
{
[MTObject(0x1759c560)]
public class TLPageBlockPhoto : TLAbsPageBlock
{
public override uint Constructor
{
get
{
... |
CommandShell/Shell.cs | satejnik/commandshell | 1 | 7028104 | <gh_stars>1-10
// Copyright © 2015 <NAME>. All rights reserved.
// This file is a part of CommandShell and is licensed under MS-PL.
// See LICENSE for details or visit http://opensource.org/licenses/MS-PL.
// ----------------------------------------------------------------------
using System;
using System.Col... |
src/web/mvc/Mvc.UnitTests/Services/CatalogService/GetCategoryAsyncTests.cs | andretkachenko/GreenShop | 0 | 7028105 | using FluentValidation;
using GreenShop.Web.Mvc.App.Models.Categories;
using GreenShop.Web.Mvc.App.Services.Interfaces;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq;
using System.Threading.Tasks;
using Target = GreenShop.Web.Mvc.App.Services.CatalogService;
namespace GreenShop.Web.Mvc.UnitTests.Servi... |
src/Pantry.Mediator/DomainEvent.cs | nventive/Pantry | 0 | 7028106 | <filename>src/Pantry.Mediator/DomainEvent.cs
using System;
namespace Pantry.Mediator
{
/// <summary>
/// Base class for <see cref="IDomainEvent"/> implementations.
/// </summary>
public abstract class DomainEvent : IDomainEvent
{
/// <inheritdoc/>
public DateTimeOffset? Timestamp {... |
jaytwo.AspNet.FormsAuth/Internal/FormsAuthenticationService.cs | jakegough/jaytwo.AspNet.FormsAuth | 0 | 7028107 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.Security;
namespace jaytwo.AspNet.FormsAuth.Internal
{
internal class FormsAuthenticationService
{
public virtual string CookieName
{
get
{
return FormsAuthenticat... |
ShiroiDrawers/Util/RectUtil.cs | DDevilISL/ShiroiSerialization | 0 | 7028108 | using UnityEditor;
using UnityEngine;
namespace Shiroi.Drawing.Util {
public static class RectUtil {
public static Rect GetLine(this Rect rect, uint collum, uint totalLines = 1, float yOffset = 0F) {
return rect.GetLine(collum, EditorGUIUtility.singleLineHeight, totalLines, yOffset);
}... |
src/Orchard.Web/Modules/CloudBust.Resources/DefaultManifest.cs | doticca/Orchard.CloudBust | 1 | 7028109 | <reponame>doticca/Orchard.CloudBust<gh_stars>1-10
using Orchard.Environment.Extensions;
using Orchard.UI.Resources;
namespace CloudBust.Resources {
public class DefaultManifest : IResourceManifestProvider {
public void BuildManifests(ResourceManifestBuilder builder) {
var manifest = builder.Add... |
edge-agent/test/Microsoft.Azure.Devices.Edge.Agent.Kubernetes.Test/KubernetesDeploymentMapperTest.cs | v-stadam/iotedge | 1 | 7028110 | // Copyright (c) Microsoft. All rights reserved.
namespace Microsoft.Azure.Devices.Edge.Agent.Kubernetes.Test
{
using System;
using System.Collections.Generic;
using System.Linq;
using global::Docker.DotNet.Models;
using Microsoft.Azure.Devices.Edge.Agent.Core;
using Microsoft.Azure.Devices.Edge... |
src/Microsoft.Azure.WebJobs.Logging.ApplicationInsights/DictionaryLoggerScope.cs | davidrevoledo/azure-webjobs-sdk | 2 | 7028111 | <reponame>davidrevoledo/azure-webjobs-sdk
// Copyright (c) .NET Foundation. 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.Collections.ObjectModel;
using System.Threading;
namespace Micr... |
src/Web.Api.Core/UseCases/LoginUseCase.cs | DrakeLambert/AspNetCoreApiStarter | 19 | 7028112 | <reponame>DrakeLambert/AspNetCoreApiStarter
using System.Threading.Tasks;
using Web.Api.Core.Dto;
using Web.Api.Core.Dto.UseCaseRequests;
using Web.Api.Core.Dto.UseCaseResponses;
using Web.Api.Core.Interfaces;
using Web.Api.Core.Interfaces.Gateways.Repositories;
using Web.Api.Core.Interfaces.Services;
using Web.Api.Co... |
MappingSPO.Project.DL/Configurations/CalcTransIndirectPostEntityConfiguration.cs | hmohcine/MappingSPO | 0 | 7028113 | using MappingSPO.Project.DL.Entities;
namespace MappingSPO.Project.DL.Configurations
{
public class CalcTransIndirectPostEntityConfiguration : System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<CalcTransIndirectPostEntity>
{
public CalcTransIndirectPostEntityConfiguration()
: thi... |
src/Hl7.Fhir.Support.Tests/ExceptionAssert.cs | kennethmyhra/firely-net-common | 17 | 7028114 | <filename>src/Hl7.Fhir.Support.Tests/ExceptionAssert.cs<gh_stars>10-100
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Hl7.Fhir.Tests
{
public class ExceptionAssert
{
public static T Throws<T>(Action action, string message = null) where T : Exception
{
#if NET40
... |
Source/Icebreaker/Match/Person.cs | yanna/lunchbuddy-msteams-app | 0 | 7028115 | <filename>Source/Icebreaker/Match/Person.cs
//----------------------------------------------------------------------------------------------
// <copyright file="Person.cs" company="Microsoft">
// Copyright (c) Microsoft. All rights reserved.
// </copyright>
//-----------------------------------------------------------... |
ArkBot/Modules/Application/Data/ExternalImports/Player.cs | Hsilamot/ArkBot | 1 | 7028116 | <reponame>Hsilamot/ArkBot<filename>ArkBot/Modules/Application/Data/ExternalImports/Player.cs
using Newtonsoft.Json;
using System.Collections.Generic;
namespace ArkBot.Modules.Application.Data.ExternalImports
{
public class Player
{
[JsonProperty(PropertyName = "id")]
public int Id { get; set; ... |
Keas.Mvc/Models/AssetModel.cs | ucdavis/Keas | 8 | 7028117 | <filename>Keas.Mvc/Models/AssetModel.cs
using System.Collections.Generic;
using Keas.Core.Domain;
namespace Keas.Mvc.Models
{
public class AssetModel
{
public Team Team { get; set; }
public List<string> Tags { get; set; }
public string[] Permissions { get; set; }
}
} |
AdventOfCode/Day07.cs | BuzzardM/AdventOfCode2020 | 0 | 7028118 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text.RegularExpressions;
using AoCHelper;
namespace AdventOfCode
{
class Day07 : BaseDay
{
private readonly Dictionary<string, Bag> _input;
private const string BagName = "shiny gold";
pri... |
Master/ASTRA.EMSG.Business/Models/Administration/ErfassungsabschlussModel.cs | astra-emsg/ASTRA.EMSG | 4 | 7028119 | using System;
using ASTRA.EMSG.Common;
namespace ASTRA.EMSG.Business.Models.Administration
{
[Serializable]
public class ErfassungsabschlussModel : IModel
{
public DateTime AbschlussDate { get; set; }
}
} |
NavigationPane/Navigation Pane/NavigateBarRelatedControlPanel.cs | FlavioFalcao/water-utility-mobile-map | 1 | 7028120 | /*
| Version 10.2
| Copyright 2014 Esri
|
| Licensed under the Apache License, Version 2.0 (the "License");
| you may not use this file except in compliance with the License.
| You may obtain a copy of the License at
|
| http://www.apache.org/licenses/LICENSE-2.0
|
| Unless required by applicable law or a... |
src/PandaPlayer.Services/Interfaces/IAdviseSetService.cs | CodeFuller/music-library | 0 | 7028121 | using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using PandaPlayer.Core.Models;
namespace PandaPlayer.Services.Interfaces
{
public interface IAdviseSetService
{
Task CreateAdviseSet(AdviseSetModel adviseSet, CancellationToken cancellationToken);
Task<IReadOnlyC... |
Assets/Scripts/ButtonManager.cs | skywardsc2/BTP-Game-Jam | 0 | 7028122 | <gh_stars>0
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ButtonManager : MonoBehaviour
{
public GameObject UndoButton;
public GameObject ConfirmButton;
[HideInInspector] public CurrentDepth currentDepth;
[HideInInspector] public TargetDepth targetD... |
src/Ztm.Zcoin.NBitcoin/MTPHashData.cs | thebevrishot/test-ztm | 0 | 7028123 | using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Diagnostics;
using NBitcoin;
namespace Ztm.Zcoin.NBitcoin
{
public sealed class MTPHashData : IBitcoinSerializable
{
const int MTP_L = 64;
byte[] hashRootMTP;
byte[] nBlockMTP;
re... |
IdentityMvcMetanit/Controllers/AccountController.cs | niyazz/DotNext-Moscow-2020 | 0 | 7028124 | <reponame>niyazz/DotNext-Moscow-2020<filename>IdentityMvcMetanit/Controllers/AccountController.cs
using IdentityMvcMetanit.Models;
using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Authentication.Cookies;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using Microsoft.IdentityM... |
Pac-Man Exercise/Assets/Scripts/PacMan/Systems/GameController.cs | swDill/PacManProject | 0 | 7028125 | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using PacMan.Entities;
using PacMan.Systems;
using PacMan.Utility.DependencyInjection;
using Photon.Pun;
using UnityEngine;
using UnityEngine.SceneManagement;
namespace PacMan
{
/*
* The central game controller, hand... |
sdk/search/Microsoft.Azure.Search/tests/Tests/IndexManagementTests.cs | nithinpnp/azure-sdk-for-net | 2 | 7028126 | <filename>sdk/search/Microsoft.Azure.Search/tests/Tests/IndexManagementTests.cs
// 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.Search.Tests
{
using System;
using System.Co... |
src/Helpers/ProjectHelpers.cs | IamFlashUser/CleanArchitectureCodeGenerator | 55 | 7028127 | using CleanArchitecture.CodeGenerator.Models;
using EnvDTE;
using EnvDTE80;
using Microsoft;
using Microsoft.VisualStudio;
using Microsoft.VisualStudio.ComponentModelHost;
using Microsoft.VisualStudio.Editor;
using Microsoft.VisualStudio.Shell;
using Microsoft.VisualStudio.Shell.Interop;
using Microsoft.VisualStudio... |
02.TechModule-09.2017/Fundamentals/09.Dictionaries/02.PhonebookUpgrade/PhonebookUpgrade.cs | Steffkn/SoftUni | 1 | 7028128 | namespace _02.PhonebookUpgrade
{
using System;
using System.Collections.Generic;
public class PhonebookUpgrade
{
static void Main()
{
var phonebook = new SortedDictionary<string, string>();
while (true)
{
var input = Console.ReadLine... |
Programming Fundamentals/Arrays/10. Pairs by Difference/Program.cs | radoikoff/SoftUni | 0 | 7028129 | <gh_stars>0
using System;
using System.Linq;
namespace _10.Pairs_by_Difference
{
class Program
{
public static void Main()
{
var numbers = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
int diff = int.Parse(Console.ReadLine());
int count = 0;
... |
src/E01D.Base.Collections.DoubleLinkedLists/Code/Exts/E01D/Core/Collections/DoubleLinkedListNodeApi.cs | E01D/Base | 0 | 7028130 | using Root.Code.Domains.E01D;
using Root.Code.Models.E01D.Core.Collections;
namespace Root.Code.Exts.E01D.Core.Collections
{
public static class DoubleLinkedListNodeExts
{
public static void Invalidate<T>(this DoubleLinkedListNode<T> node)
{
XDoubleLinkedList.Api.Nodes.Invalidate(n... |
SCRL/Entities/SmallOrc.cs | brandongandy/scrl | 0 | 7028131 | using Microsoft.Xna.Framework;
using SCRL.Resources;
namespace SCRL.Entities
{
class SmallOrc : Monster
{
public SmallOrc() : base(Palette.TahitiGold, Palette.LightFloorForeground, 'o')
{
Clone(SCORLIB.MonsterFactory.GetMonsterByName("orc1"));
Gold = 10;
Health = new SCORLIB.AttributePai... |
Zip.Database/ZipDbContext.cs | parameshg/tryzip | 0 | 7028132 | <gh_stars>0
using Microsoft.EntityFrameworkCore;
using Zip.Database.Entities;
namespace Zip.Database
{
public class ZipDbContext : DbContext
{
public DbSet<User> Users { get; set; }
public DbSet<Account> Accounts { get; set; }
public ZipDbContext(DbContextOptions options)
... |
CoreCms.Net.Web.Admin/Controllers/Reports/CoreCmsReportsController.cs | toolgood/CoreShop | 0 | 7028133 | /***********************************************************************
* Project: CoreCms
* ProjectName: 核心内容管理系统
* Web: https://www.corecms.net
* Author: 大灰灰
* ... |
src/Dlbr.CommonLogin.IdentityModel.Tests/Unit/IdentityModel/CertificateLoaderTests.cs | SEGES-IT/Dlbr.CommonLogin.IdentityModel | 0 | 7028134 | <reponame>SEGES-IT/Dlbr.CommonLogin.IdentityModel<filename>src/Dlbr.CommonLogin.IdentityModel.Tests/Unit/IdentityModel/CertificateLoaderTests.cs<gh_stars>0
using System.Security.Cryptography.X509Certificates;
using NUnit.Framework;
namespace Dlbr.CommonLogin.IdentityModel.Tests.Unit.IdentityModel
{
[TestFixture]
... |
src/engine/plans/NaiveQueryPlanner.cs | masaxsuzu/skyla | 0 | 7028135 | <filename>src/engine/plans/NaiveQueryPlanner.cs<gh_stars>0
using System.Data;
using Skyla.Engine.Interfaces;
using Skyla.Engine.Records;
namespace Skyla.Engine.Plans;
public class NaiveQueryPlanner : IQueryPlanner
{
private IParser _parser;
private IMetadataManager _metadata;
public NaiveQueryPlanner(IPars... |
samples/Leki.Users.Function/Services1/TestCommand.cs | Lennart93/Libraries | 0 | 7028136 | <reponame>Lennart93/Libraries
using Leki.CQRS.Command;
using Leki.EventSourcing.Models;
using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace Leki.Users.Function.Services1
{
public class TestCommand : ICommand
{
public Guid Id { get... |
MoonSharp.Com/DateTimeSupport/DateTimeSupport.cs | zmjack/MoonSharp.Extensions | 0 | 7028137 | <filename>MoonSharp.Com/DateTimeSupport/DateTimeSupport.cs
using System;
namespace MoonSharp.Extensions
{
public class DateTimeSupport : LuaSupport
{
protected static DateTime Instance(string value) => DateTime.Parse(value);
[LuaFunction("en-US", "Get current datetime. f()")]
... |
src/Catel.Test/Catel.Test.NET40/Data/Extensions/ObservableObjectExtensionsFacts.cs | gautamsi/Catel | 0 | 7028138 | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="ObservableObjectExtensionsFacts.cs" company="Catel development team">
// Copyright (c) 2008 - 2014 Catel development team. All rights reserved.
// </copyright>
// --------------... |
Assets/Scripts/Game/lyzz2d/Utils/Lyzz2DGlobalData.cs | da1fanshu/1234ewsd | 2 | 7028139 | <filename>Assets/Scripts/Game/lyzz2d/Utils/Lyzz2DGlobalData.cs
using System;
using System.Collections.Generic;
using Assets.Scripts.Game.lyzz2d.Game.GameCtrl;
using com.yxixia.utile.YxDebug;
using Sfs2X.Entities.Data;
using UnityEngine;
using YxFramwork.Common.Utils;
namespace Assets.Scripts.Game.lyzz2d.Utils
{
p... |
WordNet.Data/Model/SynsetRelation.cs | ametj/wordnet-dictionary | 2 | 7028140 | <filename>WordNet.Data/Model/SynsetRelation.cs
namespace WordNet.Data.Model
{
public enum SynsetRelationType
{
agent,
also,
attribute,
be_in_state,
causes,
classified_by,
classifies,
co_agent_instrument,
co_agent_patient,
co_agent_... |
ofreact.Tests/ComponentTests.cs | chiyadev/ofreact | 5 | 7028142 | using NUnit.Framework;
using static ofreact.Hooks;
namespace ofreact.Tests
{
[TestFixture]
public class ComponentTests
{
public class RecreateWrapperNode : ofComponent
{
public bool DoAlt;
public static bool OneRendered;
public static bool TwoRendered;
... |
WorkingWithListviewNative/WorkingWithListviewNative/A/XamarinFormsPage.cs | paulomorgado/xamarin-xamarin-forms-samples | 2 | 7028143 | using System;
using Xamarin.Forms;
using System.Collections.Generic;
namespace WorkingWithListviewNative
{
/// <summary>
/// This page uses built-in Xamarin.Forms controls to display a fast-scrolling list.
///
/// It uses the built-in <c>TextCell</c> class which does not require special 'layout'
/// and is the... |
Source/JdSdk/Domains/QueryPlanReturnInfo.cs | JackWangCUMT/JdSdk | 4 | 7028144 | #region head comment
/*
Code generate by JdSdkTool.
Copyright © <EMAIL>
2013-10-26 10:25:50.77247 +08:00
*/
#endregion
using System;
using System.Xml.Serialization;
using System.Collections.Generic;
using Newtonsoft.Json;
namespace JdSdk.Domain
{
/// <summary>
/// QueryPlanReturnInfo 属性
/// </summary>
... |
src/System.Device.Gpio/System/Device/Gpio/GpioDriver.cs | anphel31/iot | 0 | 7028145 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Threading;
using System.Threading.Tasks;
namespace System.Device.Gpio
{
public abstract class Gpi... |
app/LumiSync/Audio/SpectrumAnalyzer.cs | Twometer/twometer-iot | 0 | 7028146 | <reponame>Twometer/twometer-iot<gh_stars>0
using CSCore;
using CSCore.DSP;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LumiSync.Audio
{
public class SpectrumAnalyzer
{
private const FftSize size = FftSize.Fft4096;
... |
NetCoreOnlineShop/Views/Product/Details.cshtml | tranphucuk/Shopmart-E-Commerce | 0 | 7028147 | <gh_stars>0
@model NetCoreOnlineShop.Models.ProductViewModels.DetailViewModel
@using Microsoft.AspNetCore.Http.Extensions
@{
ViewData["Title"] = Model.ProductViewModel.Name;
ViewData["Keyword"] = Model.ProductViewModel.SeoKeywords;
ViewData["Description"] = Model.ProductViewModel.SeoDescription;
var u... |
SYSTRADE_AGENCIA/Systrade_Agencia/Systrade.Clientes.Infra.Data/Migrations/201805310403408_Cliente-01.cs | Marcos237/MMSystrade | 0 | 7028148 | namespace Systrade.Clientes.Infra.Data.Migrations
{
using System.Data.Entity.Migrations;
public partial class Cliente01 : DbMigration
{
public override void Up()
{
CreateTable(
"dbo.Agencia",
c => new
{
... |
nanoFramework.CoreLibrary/System/Single.cs | cyborgyn/CoreLibrary | 0 | 7028149 | //
// Copyright (c) .NET Foundation and Contributors
// Portions Copyright (c) Microsoft Corporation. All rights reserved.
// See LICENSE file in the project root for full license information.
//
namespace System
{
using Globalization;
using System.Runtime.CompilerServices;
using System.Runtime.InteropSer... |
src/PaperRaker.Core/System/Affiliation.cs | Jimmyson/PaperRaker | 0 | 7028150 | <filename>src/PaperRaker.Core/System/Affiliation.cs
namespace PaperRaker.Core.System
{
/// <summary>
/// Identifies a Link between a Paper Contributor and their partnering Institution
/// </summary>
public class Affiliation : BaseEntity
{
public uint PaperId { get; set; }
public uin... |
src/CommunityToolkit/Xamarin.CommunityToolkit.UnitTests/Converters/MultiConverter_Tests.cs | JoelPickin/XamarinCommunityToolkit | 0 | 7028151 | using System.Collections.Generic;
using System.Globalization;
using Xamarin.CommunityToolkit.Converters;
using NUnit.Framework;
namespace Xamarin.CommunityToolkit.UnitTests.Converters
{
public class MultiConverter_Tests
{
public static IEnumerable<object[]> GetData() => new List<object[]>
{
new object[] { ne... |
Assets/Scripts/Util/UnityExtension/MathfExtension.cs | yojohanshinwataikei/Arcade-plus | 40 | 7028152 | <filename>Assets/Scripts/Util/UnityExtension/MathfExtension.cs<gh_stars>10-100
using UnityEngine;
namespace Arcade.Util.UnityExtension
{
public static class MathfExtension
{
public static float EvaluateEllipse(float degree, float a, float b)
{
float cos = Mathf.Cos(degree * Mathf.Deg2Rad);
float sin = Math... |
ReSharper.FSharp/src/FSharp.Psi/src/Impl/DeclaredElement/FSharpFieldBase.cs | nerzhulart/fsharp-support | 0 | 7028153 | <reponame>nerzhulart/fsharp-support
using JetBrains.Annotations;
using JetBrains.ReSharper.Plugins.FSharp.Psi.Impl.Tree;
using JetBrains.ReSharper.Plugins.FSharp.Psi.Tree;
using JetBrains.ReSharper.Psi;
using JetBrains.ReSharper.Psi.Tree;
using Microsoft.FSharp.Compiler.SourceCodeServices;
namespace JetBrains.ReSharp... |
NSch/NSch/ChannelX11.cs | ashmind/ngit | 1 | 7028154 | /*
Copyright (c) 2006-2010 ymnk, JCraft,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:
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and ... |
src/AzureFunctions.Extensions.NotificationHubs/Hubs/NotificationsManager.cs | vitalybibikov/AzureFunctions.Extensions.NotificationHubs | 0 | 7028155 | using System;
using System.Collections.Generic;
using Microsoft.Azure.NotificationHubs;
namespace AzureFunctions.Extensions.NotificationHubs.Hubs
{
internal static class NotificationsManager
{
private static readonly Dictionary<(string, string), NotificationHubClient> NotificationsClient
=... |
RailDataEngine.UnitTests/Interactor/TSaveMovementMessageInteractor.cs | tomlane/RailDataEngine | 2 | 7028156 | <gh_stars>1-10
using System;
using System.Collections.Generic;
using Microsoft.Practices.Unity;
using Moq;
using NUnit.Framework;
using RailDataEngine.Core;
using RailDataEngine.Core.Interactor.TrainMovements;
using RailDataEngine.Domain.Entity.TrainMovements;
using RailDataEngine.Domain.Interactor.ProcessMovementMess... |
PetShop.Model/Proizvod.cs | AjdinVreto/petShop | 0 | 7028157 | using System;
using System.Collections.Generic;
using System.Text;
namespace PetShop.Model
{
public class Proizvod
{
public int Id { get; set; }
public string Naziv { get; set; }
public decimal Cijena { get; set; }
public string Opis { get; set; }
public byte[] Slika { ... |
Src/MoneyFox.Uwp/ViewModels/Statistic/StatisticCashFlowViewModel.cs | feokuma/MoneyFox | 0 | 7028158 | using MediatR;
using MoneyFox.Application.Statistics;
using MoneyFox.Application.Statistics.Queries.GetCashFlow;
using MoneyFox.Ui.Shared.ViewModels.Statistics;
using System.Collections.ObjectModel;
using System.Threading.Tasks;
#nullable enable
namespace MoneyFox.Uwp.ViewModels.Statistic
{
/// <summary>
/// ... |
sdk/windows/test/Microsoft.Azure.Zumo.Windows.CSharp.Test/Tests/Framework/TagAttribute.cs | joshtwist/azure-mobile-services | 10 | 7028159 | <reponame>joshtwist/azure-mobile-services
// ----------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// ----------------------------------------------------------------------------
using System;
namespace Microsoft.Azure.Zumo.Win8.CSha... |
Source/AI/TexasHoldem.AI.SharkPlayer/ISharkPlayer.cs | DataBaseExam/DatabaseExam | 0 | 7028160 | <reponame>DataBaseExam/DatabaseExam
namespace TexasHoldem.AI.SharkPlayer
{
using System;
using TexasHoldem.AI.SmartPlayer.Helpers;
using TexasHoldem.Logic;
using TexasHoldem.Logic.Extensions;
using TexasHoldem.Logic.Players;
public interface ISharkPlayer
{
PlayerAction GetTurn(GetT... |
Assets/Scripts/Data/DataStore/TimelineDataStore.cs | umm/cafu_timeline | 1 | 7028161 | using System;
using System.Collections.Generic;
using System.Linq;
using CAFU.Core.Data.DataStore;
using CAFU.Timeline.Data.Entity;
using UniRx;
using UnityEngine;
using UnityEngine.Playables;
namespace CAFU.Timeline.Data.DataStore
{
public interface ITimelineDataStore<in TEnum, TTimelineEntity> : IDataStore wher... |
src/Rollvolet.CRM.DataProvider/MsGraph/Authentication/OnBehalfOfMsGraphAuthenticationProvider.cs | rollvolet/crm-ap | 0 | 7028162 | using System;
using System.Linq;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Security.Authentication;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using Microsoft.Extensions.Primitives;
using Microsoft.Graph... |
SceneGenerator/Assets/Code/Import/ImportManager.cs | m-117/POG_a_3D_PointCloud_Generator | 0 | 7028163 | <reponame>m-117/POG_a_3D_PointCloud_Generator<filename>SceneGenerator/Assets/Code/Import/ImportManager.cs<gh_stars>0
using SimpleFileBrowser;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
namespace SceneGenerato... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.