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 |
|---|---|---|---|---|
Programming Basics C# May 2019/OnlineExamCSharpPBMay2019/02.Shopping/Program.cs | FanyaKk/CSharpUniProjects | 0 | 7025113 | using System;
namespace _02.Shopping
{
class Program
{
static void Main(string[] args)
{
double budget = double.Parse(Console.ReadLine());
int videocards = int.Parse(Console.ReadLine());
int processors = int.Parse(Console.ReadLine());
... |
Agiil.ObjectMaps/Tickets/AddCommentSpecificationToCreateCommentRequestProfile.cs | csf-dev/agiil | 0 | 7025114 | using System;
using Agiil.Domain.Tickets;
using Agiil.Web.Models.Tickets;
using AutoMapper;
namespace Agiil.ObjectMaps.Tickets
{
public class AddCommentSpecificationToCreateCommentRequestProfile : Profile
{
public AddCommentSpecificationToCreateCommentRequestProfile()
{
CreateMap<A... |
src/VinarishCsb.Shared/Dto/ExternalAuth/ErrorEnum.cs | mobinseven/VinarishCSB | 0 | 7025115 | using System;
using System.Collections.Generic;
using System.Text;
namespace VinarishCsb.Shared.Dto.ExternalAuth
{
public enum ErrorEnum
{
Unknown = -99,
UserCreationFailed = -1,
UserIsNotAllowed = 0,
UserLockedOut = 1,
CannotAddExternalLogin = 2,
ExternalAuthEr... |
src/Miningcore/Persistence/Postgres/Repositories/MinerRepository.cs | kevinmarceloph/miningcore | 0 | 7025116 | using System.Data;
using System.Threading.Tasks;
using AutoMapper;
using Dapper;
using Miningcore.Extensions;
using Miningcore.Persistence.Model;
using Miningcore.Persistence.Repositories;
using NLog;
namespace Miningcore.Persistence.Postgres.Repositories
{
public class MinerRepository : IMinerRepository
{
... |
Solutions/Ais.Net.Models/Ais/Net/Models/Abstractions/ShipTypeGroup.cs | joshdadswellijyi/Ais.Net.Receiver | 5 | 7025117 | // <copyright file="ShipTypeGroup.cs" company="Endjin Limited">
// Copyright (c) Endjin Limited. All rights reserved.
// </copyright>
namespace Ais.Net.Models.Abstractions
{
public enum ShipTypeGroup
{
NotAvailable,
Reserved,
WingInGroundAll,
WingInGroundHazardous,
Wing... |
NATP_Client/NATP_Client/NATP_STUN/NATP_STUNCore.cs | cxz456999/NATP | 7 | 7025118 | <gh_stars>1-10
using NATP.Signaling;
using System;
using System.Collections.Generic;
using System.IO;
using System.Net;
using System.Runtime.Serialization.Formatters.Binary;
using System.Text;
using System.Timers;
using Object = System.Object;
namespace NATP.STUN
{
public class NATP_STUN_ServerDataR... |
src/XxlJob.Core/Util/DateTimeExtensions.cs | yuniansheng/xxl-job-dotnet | 38 | 7025119 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace XxlJob.Core.Util
{
internal static class DateTimeExtensions
{
private static DateTime Jan1st1970 = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc);
public static l... |
Samples/XamlAnimatedGif/cs/GifView.xaml.cs | Luisesp/Windows-universal-samples | 2 | 7025120 | using Microsoft.Graphics.Canvas;
using Microsoft.Graphics.Canvas.UI.Xaml;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Windows.ApplicationModel.Core;
using Windows.Foundation;
using W... |
Source/SonicAudioLib/Archives/CriAfs2Archive.cs | otomaid/SonicAudioTools | 84 | 7025121 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Diagnostics;
using SonicAudioLib.IO;
using SonicAudioLib.FileBases;
namespace SonicAudioLib.Archives
{
public class CriAfs2Entry : EntryBase
{
public uint Id { get; set; }
}
pu... |
Source/FeatureManagement.UI/FeatureManagement.UI/Extensions/EndpointRouteBuilderExtensions.cs | Odonno/FeatureManagement.UI | 1 | 7025122 | <reponame>Odonno/FeatureManagement.UI
namespace Microsoft.AspNetCore.Builder;
public static class EndpointRouteBuilderExtensions
{
/// <summary>
/// Adds endpoints for Features actions to the <see cref="IEndpointRouteBuilder"/>. And also display the UI.
/// </summary>
/// <param name="builder">The <see... |
src/DataAccess/UsersTableAccess.cs | brcrista/Calendar | 0 | 7025123 | using System.Collections.Generic;
using Calendar.DataAccess.Schema;
namespace Calendar.DataAccess
{
/// <summary>
/// Provides access to the <c>Events</c> table in SQLite.
/// </summary>
public sealed class UsersTableAccess
{
private readonly SqliteDataReader dataReader;
public U... |
SIL.Windows.Forms/Miscellaneous/X11.cs | samdoss/libpalaso | 0 | 7025124 | // Copyright (c) 2012-2018 SIL International
// This software is licensed under the MIT License (http://opensource.org/licenses/MIT)
using System;
using System.Reflection;
using System.Runtime.InteropServices;
using SIL.PlatformUtilities;
namespace SIL.Windows.Forms.Miscellaneous
{
public static class X11
{
#regio... |
Lib/CWA.DTP/Plotter/Handler/AbstractMaster.cs | Coestaris/PlotterControl | 5 | 7025125 | /*=================================\
* CWA.DTP\AbstractMaster.cs
*
* The Coestaris licenses this file to you under the MIT license.
* See the LICENSE file in the project root for more information.
*
* Created: 12.09.2017 21:45
* Last Edited: 12.09.2017 21:45:57
*=================================*/
namespace CWA.DTP.Pl... |
Script/GameCore/Network/Network.cs | random634/Unity-Net-F | 0 | 7025126 | <reponame>random634/Unity-Net-F
//*************************************************************************
// 创建日期: 2015-6-29
// 文件名称: Network.cs
// 创 建 人: Rect
// 版权所有: MIT
// 说 明: 网络中心处理
//*************************************************************************
//---------------------------------... |
CodeTranslator/Utility/GetDirectory.cs | asd135hp/CodeTranslator | 0 | 7025127 | using System.IO;
namespace CodeTranslator.Utility
{
public static class GetDirectory
{
private static DirectoryInfo GetInfo(string directory)
=> Directory.GetParent(directory);
private static string GetDirectoryFullName(int parentCount)
{
var info = GetInfo(Cur... |
SIUnitsCore/ObjectModels/FactoredUnit.cs | TrueAnalyticsSolutions/SIUnits | 0 | 7025128 | using SIUnits.Abstracts;
namespace SIUnits {
/// <summary>
/// An implementation of a Base Unit that can be used to convert derivatives of a SI Base Unit to this new derivative unit
/// </summary>
public class FactoredUnit : Abstracts.BaseUnit {
/// <summary>
/// Reference to the case-... |
UnityClient/Assets/_DEV/Feature-Sample/Scripts/Inventory/InventoryManager.cs | andreidanieltanislav/Beyond-Genesis-Client | 0 | 7025129 | <gh_stars>0
using System;
using System.Collections.Generic;
using System.Linq;
using _DEV.Feature_Sample.Scripts.Item;
using UnityEngine;
using UnityEngine.UI;
public class InventoryManager : MonoBehaviour {
#region Singleton
public static InventoryManager instance;
private void Awake() {
if (ins... |
source/internal/rules/correctness/UnprotectedEventRule.cs | dbremner/smokey | 0 | 7025130 | <reponame>dbremner/smokey
// Copyright (C) 2007 <NAME>
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modi... |
SpeechTest/Library/PackageCache/com.unity.collab-proxy@1.5.7/Editor/Collaborate/Models/Structures/ChangeEntry.cs | TOKIOatoz/SpeechUnity | 295 | 7025131 | using System;
namespace Unity.Cloud.Collaborate.Models.Structures
{
internal struct ChangeEntry : IChangeEntry
{
public ChangeEntry(string path = default, string originalPath = default, ChangeEntryStatus status = default, bool staged = default, bool unmerged = default, object tag = default)
{
... |
PracticingAlgorithmsAndDataStructures/DynamicProgramming/HouseRobber.cs | Mikhail-Vilms/practicing-algorithms-and-data-structures | 0 | 7025132 | <filename>PracticingAlgorithmsAndDataStructures/DynamicProgramming/HouseRobber.cs
namespace PracticingAlgorithmsAndDataStructures.DynamicProgramming
{
public class HouseRobber
{
private int[] nums;
// + MEMOIZATION
private int[] memo;
public int Rob(int[] nums)
{
... |
R_C_A/Pedido.cs | EmilyFelicio/Requested_Console_Activity | 1 | 7025133 | <filename>R_C_A/Pedido.cs
//Made by <NAME>
using System.Collections.Generic;
namespace R_C_A
{
public class Pedido
{
private List<ItemPedido> lista = new List<ItemPedido>{};
public void adicionar(ItemPedido itempedido){
lista.Add(itempedido);
}
public double totali... |
src/Cistern.Linq/Enumerable/SelectMany.cs | FrancisChung/Cistern.Linq | 38 | 7025134 | <reponame>FrancisChung/Cistern.Linq
// 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.Collections.Generic;
namespace Cistern.Linq
{
p... |
Source/QuantityTypes.Tests/Quantities/AngleTests.cs | BadBabyJames/QunityTypes | 1 | 7025135 | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="AngleTests.cs" company="QuantityTypes">
// Copyright (c) 2014 QuantityTypes contributors
// </copyright>
// -----------------------------------------------------------------... |
Twilight.Engine.Utils/DataStructures/TtlCache.cs | zcanann/TwilightPrincessVisualizers | 0 | 7025136 | namespace Twilight.Engine.Common.DataStructures
{
using System;
using System.Collections.Concurrent;
public class TtlCache<V>
{
private ConcurrentDictionary<V, DateTime> cache;
public TtlCache()
{
this.cache = new ConcurrentDictionary<V, DateTime>();
th... |
Content.Server/GameObjects/EntitySystems/Click/InteractionSystem.cs | komunre/space-station-14 | 0 | 7025137 | <reponame>komunre/space-station-14
using System;
using System.Linq;
using System.Threading.Tasks;
using Content.Server.GameObjects.Components.Items.Storage;
using Content.Server.GameObjects.Components.Mobs;
using Content.Server.GameObjects.Components.Pulling;
using Content.Server.GameObjects.Components.Timing;
using C... |
CSharp/Algorithm/IsPrime.cs | piovezan/SOpt | 148 | 7025138 | <reponame>piovezan/SOpt<filename>CSharp/Algorithm/IsPrime.cs
using static System.Console;
using static System.Math;
namespace Vetor1 {
class Program {
static int Main(string[] args) {
var vetor = new int[10];
for (int i = 0; i < vetor.Length; i++) {
do {
... |
project/OsEngine/Market/Connector.cs | Peixer/OsEngine | 1 | 7025139 | <gh_stars>1-10
/*
*Ваши права на использование кода регулируются данной лицензией http://o-s-a.net/doc/license_simple_engine.pdf
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Threading;
using OsEngine.Alerts;
using OsEngine.Entity;
using OsEngine.Logging... |
MapGeneration.Tests/Core/ConfigurationSpaces/CSGeneratorTests.cs | FrancisUsher/ProceduralLevelGenerator | 0 | 7025140 | <gh_stars>0
namespace MapGeneration.Tests.Core.ConfigurationSpaces
{
using System;
using System.Collections.Generic;
using System.Linq;
using GeneralAlgorithms.Algorithms.Common;
using GeneralAlgorithms.Algorithms.Polygons;
using GeneralAlgorithms.DataStructures.Common;
using GeneralAlgorithms.DataStructures.Po... |
src/BlueMilk/Compilation/AssemblyGenerator.cs | JasperFx/bluemilk | 52 | 7025141 | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.Loader;
using BlueMilk.Util;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
#if !NET46
#endif
namespace BlueMilk.Compilation
{
public cl... |
Entities/EEnumFile.cs | tezine/RestInPeace | 2 | 7025142 | <filename>Entities/EEnumFile.cs
using System.Collections.Generic;
namespace RestInPeace.Entities {
public class EEnumFile {
public string enumName { get; set; }
public List<EEnumValue> valueList { get; set; }
}
} |
src/Foundation/LayoutServiceExtensions/rendering/Extentions/ServiceCollectionExtensions.cs | Sitecore-Hackathon/2022-NameTooLongException | 3 | 7025143 | using System;
using System.Linq;
using Microsoft.Extensions.DependencyInjection;
using Mvp.Foundation.LayoutServiceExtensions.Internal;
using Mvp.Foundation.LayoutServiceExtensions.Serializer;
using Sitecore.Internal;
using Sitecore.LayoutService.Client;
using Sitecore.LayoutService.Client.Newtonsoft;
namespace Mvp.F... |
Assets/Assets/quickgraph4unity/Runtime/QuickGraph/Collections/IDisjointSet.cs | Xqua/MamutUnityViewer | 25 | 7025144 | <gh_stars>10-100
using System;
using System.Collections.Generic;
using System.Diagnostics.Contracts;
namespace QuickGraph.Collections
{
/// <summary>
/// A disjoint-set data structure
/// </summary>
/// <typeparam name="T"></typeparam>
[ContractClass(typeof(QuickGraph.Collections.Contrac... |
srcs/DotBarg/DotBarg/ViewModels/DefinitionDiscoveryViewModel.cs | sutefu7/DotBarg | 0 | 7025145 | using DotBarg.Models;
using System.IO;
using System.Text;
namespace DotBarg.ViewModels
{
public class DefinitionDiscoveryViewModel : DocumentPaneViewModel
{
#region 変更通知プロパティ
// AvalonDock 関連
public override string Title
{
get
{
var fi... |
src/shared/Core.UI.Avalonia/Controls/AboutWindow.axaml.cs | jessehouwing/git-credential-manager | 517 | 7025146 | using System.Diagnostics;
using Avalonia;
using Avalonia.Controls;
using Avalonia.Interactivity;
using Avalonia.Markup.Xaml;
namespace GitCredentialManager.UI.Controls
{
public class AboutWindow : Window
{
public AboutWindow()
{
InitializeComponent();
#if DEBUG
this.Atta... |
src/DataCollection.Shared/ViewModels/BaseViewModel.cs | ArcGIS/data-collection-dotnet-2 | 25 | 7025147 | <reponame>ArcGIS/data-collection-dotnet-2
/*******************************************************************************
* Copyright 2019 Esri
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of... |
test/Heidelpay.Payment.Tests/InternalSdkUsageTests.cs | heidelpay/heidelpayDotNET | 1 | 7025148 | using Heidelpay.Payment.Extensions;
using Heidelpay.Payment.Interfaces;
using Heidelpay.Payment.Options;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Moq;
using System;
using System.IO;
using System.Net.Http;
using Xunit;
namespace Heidelpay.Payment.Internal.Tests
{
... |
src/OrchardCore/OrchardCore.Abstractions/Shell/Builders/IShellPipeline.cs | protoncm/OrchardCore | 2 | 7025149 | using System.Threading.Tasks;
namespace OrchardCore.Environment.Shell.Builders
{
public interface IShellPipeline
{
/// <summary>
/// Executes this shell pipeline.
/// </summary>
Task Invoke(object context);
}
} |
EnvironmentAssessment.Wizard/Common/VimApi/S/ServiceLocator.cs | octansIt/environmentassessment | 1 | 7025150 | <reponame>octansIt/environmentassessment
namespace EnvironmentAssessment.Common.VimApi
{
public class ServiceLocator : DynamicData
{
protected string _instanceUuid;
protected string _url;
protected ServiceLocatorCredential _credential;
protected string _sslThumbprint;
public string InstanceUuid
{
get
... |
DatesterAPI/DatesterAPI/InputModels/UserRegistrationInputModel.cs | bazlus/DatesterAPI | 0 | 7025151 | <gh_stars>0
namespace DatesterAPI.InputModels
{
using System;
using System.ComponentModel.DataAnnotations;
using Datester.Data.Models;
using Datester.Services.Validation_Attributes;
public class UserRegistrationInputModel
{
[Required]
[EmailAddress]
public string Email ... |
src/VisualStudio/Tools/Framework/DomainServiceWizard/CodeGenContext.cs | ugiacobbi/OpenRiaServices | 0 | 7025152 | <gh_stars>0
using System;
using System.CodeDom;
using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Text;
using Microsoft.CSharp;
using Microsoft.VisualBasic;
namespace OpenRiaServices.VisualStudio.Doma... |
src/L3-solution/BoSSS.Solution.AdvancedSolvers/SoftPCG.cs | FDYdarmstadt/BoSSS | 22 | 7025153 | <gh_stars>10-100
/* =======================================================================
Copyright 2017 Technische Universitaet Darmstadt, Fachgebiet fuer Stroemungsdynamik (chair of fluid dynamics)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance w... |
Controller/Heroes/Headlong/Cards/CourierCardController.cs | wrhyme29/ChasejydMods | 0 | 7025154 | <gh_stars>0
using Handelabra.Sentinels.Engine.Controller;
using Handelabra.Sentinels.Engine.Model;
using System;
using System.Collections;
using System.Collections.Generic;
namespace Chasejyd.Headlong
{
public class CourierCardController : HeadlongCardController
{
public CourierCardController(Card ca... |
Remote Monitoring/Common/Configurations/EnvironmentDescription.cs | shobankr/IoT-Suite---Smart-parking | 1 | 7025155 | using System;
using System.IO;
using System.Xml;
using System.Xml.XPath;
using Microsoft.Azure.Devices.Applications.RemoteMonitoring.Common.Extensions;
namespace Microsoft.Azure.Devices.Applications.RemoteMonitoring.Common.Configurations
{
public class EnvironmentDescription : IDisposable
{
bool isDis... |
src/Chronos/Concrete/MemberItemsRepository.cs | IUS-CS/NullPointerException | 0 | 7025156 | using Chronos.Abstract;
using Chronos.Entities;
namespace Chronos.Concrete
{
/// <summary>
/// Concrete implementation for working with member items in the database
/// </summary>
public class MemberItemsRepository : IMemberItemsRepository
{
private ChronosContext context = new ChronosCont... |
HRIS.Web/Controllers/HolidayTypeController.cs | mynrd/HRIS.MVC | 0 | 7025157 | using HRIS.Model;
using HRIS.Model.Configuration;
using HRIS.Model.MasterFile;
using HRIS.Service.Configuration;
using HRIS.Service.MasterFile;
using HRIS.Web.Framework;
using Kendo.Mvc.Extensions;
using Kendo.Mvc.UI;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web... |
src/Libraries/AvalonEdit/ICSharpCode.AvalonEdit/Document/OffsetChangeMap.cs | galich/SharpDevelop | 0 | 7025158 | // Copyright (c) 2014 AlphaSierraPapa for the SharpDevelop Team
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, co... |
UnrealEngine-4.11.2-release/Engine/Source/Programs/AutomationTool/GUBP/GUBP.cs | armroyce/Unreal | 1 | 7025159 | <gh_stars>1-10
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using AutomationTool;
using UnrealBuildTool;
using System.Reflection;
using System.Xml;
using System.Linq;
using System.Diagnostics;
[Help("Runs one, several... |
Gu.Units.Json/TimeJsonConverter.generated.cs | JohanLarsson/Gu.Units | 18 | 7025160 | <reponame>JohanLarsson/Gu.Units
#nullable enable
namespace Gu.Units.Json
{
using System;
using Newtonsoft.Json;
/// <summary>
/// <see cref="Newtonsoft.Json.JsonConverter" /> for the quantity <see cref="Gu.Units.Time"/>.
/// </summary>
[Serializable]
public class TimeJsonConverter... |
sdk/core/Azure.Core/src/AzureKeyCredential.cs | ferno-ms/azure-sdk-for-net | 0 | 7025161 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using System.ComponentModel;
using System.Threading;
namespace Azure.Core
{
/// <summary>
/// Key credential used to authenticate to an Azure Service.
/// It provides the ability to update the key without crea... |
src/Cottle/Parsers/Forward/LexerNode.cs | r3c/Cottle | 3 | 7025162 | <filename>src/Cottle/Parsers/Forward/LexerNode.cs
using System.Collections.Generic;
using System.Text;
namespace Cottle.Parsers.Forward
{
internal class LexerNode
{
public IDictionary<char, LexerNode>? Children;
public string? FallbackDrop;
public LexerNode? FallbackNode;
... |
src/AD.ApiExtensions/Mvc/ExceptionFilter_2.cs | austindrenski/AD.ApiExtensions | 2 | 7025163 | using System;
using JetBrains.Annotations;
using Microsoft.AspNetCore.Mvc;
namespace AD.ApiExtensions.Mvc
{
/// <inheritdoc cref="ExceptionFilter{TException}"/>
/// <summary>
/// Handles a <typeparamref name="TException"/> by returning a <typeparamref name="TResult"/>.
/// </summary>
[PublicAPI]
... |
src/ResXManager.Model/Configuration.cs | tom-englert/ResXResourceManager | 518 | 7025164 | namespace ResXManager.Model
{
using System;
using System.ComponentModel;
using System.Globalization;
using ResXManager.Infrastructure;
using ResXManager.Model.Properties;
public enum DuplicateKeyHandling
{
[LocalizedDisplayName(StringResourceKey.DuplicateKeyHandling_Ren... |
C#1/20-Testing-Exam-12-7-Dec-2011-Morning/01.FighterAttack/Program.cs | iliyaST/TelericAcademy | 0 | 7025165 | <reponame>iliyaST/TelericAcademy
using System;
class FighterAttack
{
static void Main()
{
int pX1 = int.Parse(Console.ReadLine());
int pY1 = int.Parse(Console.ReadLine());
int pX2 = int.Parse(Console.ReadLine());
int pY2 = int.Parse(Console.ReadLine());
int fX = int.Par... |
Source/Facebook.Tests/HttpHelperTests.cs | winning-group/facebook-csharp-sdk | 0 | 7025166 | using System;
using System.Text;
using Xunit;
namespace Facebook.Tests
{
public class HttpHelperTests
{
public class UrlEncodeTests
{
[Fact]
public void UrlEncodeDoesNotThrow()
{
var sb = new StringBuilder();
for... |
tests/PSRule.Rules.Azure.Tests/TemplateVisitorTests.cs | lukemurraynz/PSRule.Rules.Azure | 0 | 7025167 | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using System;
using System.IO;
using System.Linq;
using Newtonsoft.Json.Linq;
using PSRule.Rules.Azure.Configuration;
using PSRule.Rules.Azure.Data.Template;
using PSRule.Rules.Azure.Pipeline;
using Xunit;
using static PSRule.Rules.Azure.Data.T... |
test/SDK/MonitoringApplianceEmulatorTests/Converters/BooleanAndConverterTests.cs | daweim0/SmartDetectorsMonitoringAppliance | 4 | 7025168 | //-----------------------------------------------------------------------
// <copyright file="BooleanAndConverterTests.cs" company="Microsoft Corporation">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
namespace M... |
Projects/RealmServer/ClientDB/Structures/InputAction.cs | Arctium/WildStar-Sandbox | 5 | 7025169 | public class InputAction
{
public uint Id { get; set; }
public string EnumName { get; set; }
public uint LocalizedTextId { get; set; }
public uint InputActionCategoryId { get; set; }
public bool CanHaveUpDownState { get; set; }
public uint DisplayIndex { get; set; }
}
|
samples/OpenIdRelyingPartyWebForms/loginGoogleApps.aspx.cs | Unroll-Me/DotNetOpenAuth | 1 | 7025170 | <gh_stars>1-10
namespace OpenIdRelyingPartyWebForms {
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security;
using System.Security.Permissions;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DotNetOpenAuth.OpenId;
using DotNetOpenAuth.OpenId.R... |
Storage/Application/Folders/LogsFolder.cs | FactrIDE/FactrIDE | 0 | 7025171 | using PCLExt.FileStorage;
using PCLExt.FileStorage.Folders;
namespace FactrIDE.Storage.Folders
{
public class LogsFolder : BaseFolder
{
public LogsFolder() : base(new ApplicationRootFolder().CreateFolder("Logs", CreationCollisionOption.OpenIfExists)) { }
}
} |
src/Juniper.GoogleMaps/Places/PlaceSearchField.cs | capnmidnight/Juniper | 9 | 7025172 | <reponame>capnmidnight/Juniper<gh_stars>1-10
namespace Juniper.World.GIS.Google.Places
{
public enum PlaceSearchField
{
formatted_address,
geometry,
icon,
name,
permanently_closed,
photos,
place_id,
plus_code,
types,
opening_hours,... |
VisualDPMB/MainWindow.xaml.cs | risa2/VisualDPMB | 0 | 7025173 | <reponame>risa2/VisualDPMB
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Input;
namespace VisualDPMB
{
public class VehicleInfo
{
... |
copper/src/copper.Tests/ZeroMQ/ZmqProducerTests.cs | danielcrenna/vault | 62 | 7025174 | <reponame>danielcrenna/vault
using System;
using System.Threading;
using System.Threading.Tasks;
using NUnit.Framework;
using ZeroMQ;
using copper.ZeroMQ;
namespace copper.Tests.ZeroMQ
{
[TestFixture]
public class ZmqProducerTests
{
[Test]
public void Can_send_and_receive_on_messaging_layer... |
src/Giving/N3O.Umbraco.Giving.Donations/Models/FundDonationOption/FundDonationOptionRes.cs | n3oltd/N3O.Umbraco | 0 | 7025175 | using N3O.Umbraco.Giving.Allocations.Lookups;
using System.Collections.Generic;
namespace N3O.Umbraco.Giving.Donations.Models {
public class FundDonationOptionRes {
public DonationItem DonationItem { get; set; }
public FixedOrDefaultFundDimensionOptionRes Dimension1 { get; set; }
public Fi... |
src/GRA.Web/Areas/MissionControl/Views/Dashboard/Detail.cshtml | iafb/gra4 | 1 | 7025176 | @model GRA.Controllers.ViewModel.MissionControl.Dashboard.DashboardDetailViewModel
@section styles {
<link rel="stylesheet" href="~/css/WMD.min.css" asp-append-version="true" />
}
@if (Model.Action == "Edit")
{
<a asp-action="Preview" asp-route-id="@Model.DashboardContent.Id" class="btn btn-default" style="m... |
src/Daemos/NewChildTransactionData.cs | GeirGrusom/daemos | 3 | 7025177 | <reponame>GeirGrusom/daemos<gh_stars>1-10
// This file is licensed under the MIT open source license
// https://opensource.org/licenses/MIT
namespace Daemos
{
using System;
/// <summary>
/// This struct represents data for a new child transaction
/// </summary>
public struct NewChildTransactionDa... |
AviationWeather.NET/Models/DTOs/WindDto.cs | bnolan001/AviationWeather.NET | 1 | 7025178 | namespace BNolan.AviationWx.NET.Models.DTOs
{
public class WindDto
{
/// <summary>
/// Direction the wind is blowing from, measured in degrees.
/// </summary>
public int? Direction { get; set; }
/// <summary>
/// Wind speed measured in Knots.
/// </s... |
NoData.Tests/ParserTests/Parsers/FilterParserTests.cs | TrevorVonSeggern/Nodata | 2 | 7025179 | <gh_stars>1-10
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using FluentAssertions;
using NoData.GraphImplementations.QueryParser;
using NoData.Internal.TreeParser.Tokenizer;
using NoData.QueryParser;
using NoData.QueryParser.ParsingTools;
using NoData.Tests.SharedExampleClasses;
... |
OsuPlayer/Storyboard/Util/TextureLoader.cs | bltsheep/Osu-Player | 0 | 7025180 | <reponame>bltsheep/Osu-Player
using System.Collections.Concurrent;
using System.IO;
using SharpDX.DXGI;
using D2D = SharpDX.Direct2D1;
using DXIO = SharpDX.IO;
using WIC = SharpDX.WIC;
namespace Milkitic.OsuPlayer.Storyboard.Util
{
public static class TextureLoader
{
private static readonly Concurrent... |
Samples/test/end-to-end/network/Client/Models/ApplicationGatewaySkuName.cs | bloudraak/autorest | 0 | 7025181 | // Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
namespace ApplicationGateway.Models
{
/// <summary>
/// Defines values for ApplicationGatewaySkuName.
/// </summary>
public static class Applicatio... |
EsentInteropTests/Threadstats2Tests.cs | robertmuehsig/ManagedEsent | 83 | 7025182 | //-----------------------------------------------------------------------
// <copyright file="Threadstats2Tests.cs" company="Microsoft Corporation">
// Copyright (c) Microsoft Corporation.
// </copyright>
//-----------------------------------------------------------------------
namespace InteropApiTests
{
... |
src/OneNorth.FieldMigrator/Pipelines/MigrateItem/MigrateItemPipelineArgs.cs | onenorth/sitecore-field-migrator | 0 | 7025183 | using OneNorth.FieldMigrator.Models;
using Sitecore.Data.Items;
using Sitecore.Pipelines;
namespace OneNorth.FieldMigrator.Pipelines.MigrateItem
{
public class MigrateItemPipelineArgs : PipelineArgs
{
public Item Item { get; set; }
public ItemModel Source { get; set; }
}
} |
ProjectEuler_Problem2/Program.cs | Ebeid/HackerRank | 0 | 7025184 | using System;
using System.Collections;
using System.Collections.Generic;
namespace ProjectEuler_Problem2
{
class Program
{
static void Main(string[] args)
{
int iterations = int.Parse(Console.ReadLine());
if (iterations > 100000) return;
long upperBound = ... |
src/Cofoundry.Domain/Domain/Users/Commands/DeleteUserCommandHandler.cs | BearerPipelineTest/cofoundry | 0 | 7025185 | using Cofoundry.Core;
using Cofoundry.Core.MessageAggregator;
using Cofoundry.Domain.BackgroundTasks;
using Cofoundry.Domain.CQS;
using Cofoundry.Domain.Data;
using Cofoundry.Domain.Data.Internal;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
namesp... |
src/Reference/Commitments/SFA.DAS.Payments.Reference.Commitments/Application/AddOrUpdateCommitmentCommand/AddOrUpdateCommitmentCommandRequest.cs | SkillsFundingAgency/das-providerpayments | 0 | 7025186 | using System;
using MediatR;
using System.Collections.Generic;
namespace SFA.DAS.Payments.Reference.Commitments.Application.AddOrUpdateCommitmentCommand
{
public class AddOrUpdateCommitmentCommandRequest : IRequest
{
public AddOrUpdateCommitmentCommandRequest()
{
PriceEpisodes = ne... |
Assets/Scripts/Save.cs | remi-espie/KJam-WonderJam | 0 | 7025187 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[System.Serializable]
public class Save
{
public int[] Collectable;
public int MaxLevelRich;
public int currentLvl;
public int[] nbTries;
}
|
Lovushka.cs | KitNozkin/Lesson4 | 0 | 7025188 | <reponame>KitNozkin/Lesson4<filename>Lovushka.cs<gh_stars>0
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Lovushka : MonoBehaviour
{
Rigidbody2D rb;
public delegate void Delegate(string value);
void Start()
{
rb = GetComponent<Rigidbody2... |
TOAPI.AviCap32/Types.cs | Wiladams/TOAPI | 1 | 7025189 | <filename>TOAPI.AviCap32/Types.cs
using TOAPI.Types;
namespace TOAPI.AviCap32
{
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public struct CAPDRIVERCAPS
{
/// UINT->unsigned int
public uint wDeviceIndex;
/// BOOL->i... |
sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/IQuotaOperations.cs | sampa-msft/azure-sdk-for-net | 0 | 7025190 | <gh_stars>0
// <auto-generated>
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the c... |
src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Eql.g.cs | SimonCropp/elasticsearch-net | 0 | 7025191 | <reponame>SimonCropp/elasticsearch-net
// Licensed to Elasticsearch B.V under one or more agreements.
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information.
//
// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
// ████╗ ██║██╔═══██... |
src/Mvc/Mvc.Core/src/Diagnostics/MvcDiagnostics.cs | alexperovich/AspNetCore | 0 | 7025192 | <reponame>alexperovich/AspNetCore<filename>src/Mvc/Mvc.Core/src/Diagnostics/MvcDiagnostics.cs
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Collections.Generic;
using Micr... |
src/Handyman.Extensions/tests/ReflectionUtilTests.cs | JonasSamuelsson/Handyman | 1 | 7025193 | using Shouldly;
using Xunit;
namespace Handyman.Extensions.Tests
{
public class ReflectionUtilTests
{
[Fact]
public void ShuoldGetPropertName()
{
ReflectionUtil.GetPropertyName(() => new Parent().Child).ShouldBe("Child");
ReflectionUtil.GetPropertyName<Parent>(x... |
src/libs/SoloX.ActionDispatch.Core/Action/IActionBehaviorAsync.cs | xaviersolau/ActionDispatch | 0 | 7025194 | <reponame>xaviersolau/ActionDispatch
// ----------------------------------------------------------------------
// <copyright file="IActionBehaviorAsync.cs" company="SoloX Software">
// Copyright (c) SoloX Software. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full... |
src/EditorFeatures/Core/Shared/Tagging/EventSources/TaggerEventSources.SemanticChangedEventSource.cs | wjk/dotnet-roslyn | 1 | 7025195 | <filename>src/EditorFeatures/Core/Shared/Tagging/EventSources/TaggerEventSources.SemanticChangedEventSource.cs
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Linq;
using System.Threading;
usin... |
examples/Example.Initialization.Inclusive/Program.cs | juniorgasparotto/SysCommand | 17 | 7025196 | <filename>examples/Example.Initialization.Inclusive/Program.cs<gh_stars>10-100
using SysCommand.ConsoleApp;
namespace Example.Initialization.Inclusive
{
public class Program
{
public static void Main(string[] args)
{
var commandsTypes = new[]
{
typeof(Fi... |
csharp/oopLab1/Program.cs | tuvshinot/csharp | 0 | 7025197 | <reponame>tuvshinot/csharp
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
namespace oopLab1
{
struct Name_Phone
{
public string name;
public string manufac;
public int price;
public int release;
}
class Program
... |
Blackbox/KeyBinds.cs | Velociraptor115/DSPMods_Blackbox | 0 | 7025198 | <reponame>Velociraptor115/DSPMods_Blackbox<gh_stars>0
using System.Collections.Generic;
using UnityEngine;
using CommonAPI.Systems;
namespace DysonSphereProgram.Modding.Blackbox
{
public record KeyBind(string Id, string Description, CombineKey DefaultBinding, int ConflictGroup)
{
public bool IsActive => Custom... |
src/VisualStudio/Core/Def/EditorConfigSettings/ServiceProviderExtensions.cs | frandesc/roslyn | 17,923 | 7025199 | // 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.Diagnostics.CodeAnalysis;
using Microsoft.VisualStudio.Shell;
namespace Microsoft.Visua... |
src/Microsoft.DncEng.SecretManager/StorageTypes/AzureKeyVault.cs | garath/arcade-services | 36 | 7025200 | <gh_stars>10-100
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
using System.Threading.Tasks;
using Azure;
using Azure.Security.KeyVault.Keys;
using Azure.Security.KeyVault.Secrets;
using JetBrains.Annotations;
using Microsoft.DncEng.CommandLineLib.Authentication;... |
Assets/Scripts/UI/LogText/SkillUse.cs | stowelly/FFBUnity-old | 15 | 7025201 | <reponame>stowelly/FFBUnity-old
using Fumbbl.Model.Types;
using System.Collections.Generic;
namespace Fumbbl.UI.LogText
{
public class SkillUse : LogTextGenerator<Ffb.Dto.Reports.SkillUse>
{
private string SkillUsageString(string key, string genetive)
{
switch (key)
{
... |
osu.Game/Overlays/FirstRunSetupOverlay.cs | peppy/osu-new | 1 | 7025202 | // Copyright (c) ppy P<NAME> <<EMAIL>>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Framework.Extensions;
... |
DevelopmentInProgress.DipType.Test/DynamicTypeHelperTest.cs | grantcolley/diptype | 0 | 7025203 | <gh_stars>0
using System;
using System.Linq;
using DevelopmentInProgress.DipMapper.Test;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace DevelopmentInProgress.DipType.Test
{
[TestClass]
public class DynamicTypeHelperTest
{
[TestMethod]
public void CreateInstance()
{
... |
Source/Automotive.OnBoardDiagnostics/ISO11898.cs | Ben3094/Automotive.OnBoardDiagnostics | 0 | 7025204 | //using System;
//using System.Collections;
//using System.Collections.Generic;
//using System.Numerics;
//using System.Data.HashFunction.CRC;
//namespace Automotive.CANBus
//{
// public abstract class Bus
// {
// public const bool START_OF_FRAME = false;
// public abstract byte ARBITRATION_FIELD... |
src/VisualStudio/Core/Def/Implementation/ProjectSystem/LinkedFileUtilities.cs | AdamSpeight2008/roslyn-AdamSpeight2008- | 1 | 7025205 | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Composition;
using System.Linq;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.Editor.Shared.Utilities;
using Microsof... |
statsd.net.core/Backends/IBackend.cs | hbabaja/statsd.net | 66 | 7025206 | <filename>statsd.net.core/Backends/IBackend.cs
using System.Threading.Tasks.Dataflow;
using System.Xml.Linq;
using statsd.net.core.Structures;
namespace statsd.net.core.Backends
{
public interface IBackend : ITargetBlock<Bucket>
{
string Name { get; }
bool IsActive { get; }
int OutputCount { get; }
... |
MvcApi/Schema/SchemaRequest.cs | dax70/MvcApi | 0 | 7025207 | <gh_stars>0
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MvcApi.Schema
{
public class SchemaRequest
{
public Guid collectionId { get; set; }
public Guid id { get; set; }
public string name { get; set; }
... |
Assets/TheraBytes/BetterUI/Runtime/Scripts/Utils/ScreenType/ScreenTypeConditions.cs | NMeJa/UI-Projects | 0 | 7025208 | <gh_stars>0
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using UnityEngine;
namespace TheraBytes.BetterUi
{
[Serializable]
public class ScreenTypeConditions
{
[SerializeField]
string name = "Screen";
pu... |
Rocket.Unturned/Commands/CommandGod.cs | educatalan02/Legally-Distinct-Missile | 47 | 7025209 | <gh_stars>10-100
using Rocket.API;
using Rocket.Core.Logging;
using System.Collections.Generic;
using System;
using Rocket.Unturned.Player;
using Rocket.Unturned.Chat;
namespace Rocket.Unturned.Commands
{
public class CommandGod : IRocketCommand
{
public AllowedCaller AllowedCaller
{
... |
src/Utils/XrmFramework.SdkExtension/Utils/IContext.cs | papayet974/XrmFramework | 0 | 7025210 | // Copyright (c) <NAME> (CGO Conseils). All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
using Microsoft.Xrm.Sdk;
using System;
namespace Plugins
{
public interface IContext
{
EntityReference BusinessUnitRef { get; }
T GetInpu... |
SFA.DAS.OidcMiddleware/SFA.DAS.OidcMiddleware/OidcAuthenticationException.cs | uk-gov-mirror/SkillsFundingAgency.das-shared-packages | 6 | 7025211 | using System;
namespace SFA.DAS.OidcMiddleware
{
public class OidcAuthenticationException : Exception
{
public OidcAuthenticationException(string message)
: base(message)
{
}
}
}
|
src/CosmosGlobalDistribution/CustomSyncSample.cs | stuartleeks/cosmos-multi-region-dotnet | 5 | 7025212 | <reponame>stuartleeks/cosmos-multi-region-dotnet
using System;
using System.Threading.Tasks;
using Microsoft.Azure.Documents;
using Microsoft.Azure.Documents.Client;
namespace CosmosGlobalDistribution
{
//Simplified example for building Custom Synchronization
public class CustomSyncSample
{
privat... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.