content stringlengths 23 1.05M |
|---|
namespace SimpleChattyServer.Data.Options
{
public sealed class DukeNukedOptions
{
public const string SectionName = "DukeNuked";
public bool Enabled { get; set; }
public string Username { get; set; }
public string Password { get; set; }
public string SlackToken { get; s... |
using Jx.Cms.DbContext.Entities.Article;
namespace Jx.Cms.Plugin.Model
{
/// <summary>
/// 文章插件传送内容
/// </summary>
public class ArticleModel
{
/// <summary>
/// 文章主体内容
/// </summary>
public ArticleEntity Body { get; set; }
/// <summary>
/// 评论总数
... |
//Pablo Conde - 24/04/2020
//Source: Tuenti Contest 2019, Challenge 2
/*
3
7
Galactica:A,B,C
A:E,D
B:D
C:D,F
D:F
E:New Earth
F:New Earth
4
Galactica:A,B,C
B:New Earth
C:New Earth
A:New Earth
5
Galactica:A,B,C
B:F
C:F
A:F
F:New Earth
*/
using System;
class Battlestar
{
static void Main()
{
int cases, ... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Janus.Protocol.Enums
{
public enum ErrorLoginEnum
{
SUCCESS_INTERNAL = 0, //THIS WILL BE USED FOR INTERNAL COMMUNICATION!
MSG_SERVER_NOT_EXIST = 1,// wrong login inform... |
/*
KeePass Password Safe - The Open-Source Password Manager
Copyright (C) 2003-2016 Dominik Reichl <dominik.reichl@t-online.de>
This program 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 versio... |
using System.Collections.Immutable;
using System.Linq;
using D2L.CodeStyle.Analyzers.Extensions;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis.Diagnostics;
namespace D2L.CodeStyle.Analyzers.ApiUsage {
[DiagnosticAn... |
using Microsoft.VisualStudio.TestTools.UnitTesting;
using SharpLearning.Common.Interfaces;
using SharpLearning.DecisionTrees.Learners;
using SharpLearning.Ensemble.Learners;
using SharpLearning.Ensemble.Strategies;
using SharpLearning.Ensemble.Test.Properties;
using SharpLearning.InputOutput.Csv;
using SharpLearning.M... |
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
namespace Microsoft.Llilum.Devices.Gpio
{
using System;
using System.Runtime.CompilerServices;
public delegate void ValueChangedHandler( object sender, PinEdge args );
public abstract class GpioPin : IDisposable
{
priv... |
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public enum E_Music
{
None,
WorldMap,
Battle,
BossBattle,
}
[RequireComponent(typeof(AudioFadeInOut))]
public class AudioManager : MonoSingleton<AudioManager>
{
public AudioSource m_worldMapMusic;
public AudioSourc... |
using System;
using System.Linq;
using System.Text;
namespace Salesforce.Chatter.Models
{
public class GroupInformation
{
public string text { get; set; }
public string title { get; set; }
}
}
|
namespace AdventOfCode2021;
public class Day07 : Solution
{
public override void Solve()
{
var input = Input.Text(nameof(Day07));
Console.WriteLine(this.Puzzle1(input));
Console.WriteLine(this.Puzzle2(input));
}
private int Puzzle1(string input)
{
var crabPositions... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace AlgoTest.LeetCode.Find_Duplicate_File_in_System
{
[TestClass]
public class Find_Duplicate_File_in_System
{
[TestMethod]
public void Test()
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Drive.ScsArchive {
/// <summary>
/// Scs archive.
/// All paths are *case sensitive*.
/// </summary>
public class ScsArchive {
/// <summary>
/// Central dir... |
using Simple.Brazilian.Formatters;
using System;
using Xunit;
namespace Simple.Brazilian.UnitTests.FormattersTestes.TextFilterTestes
{
public class TextFilterTestes
{
[Fact]
public void TextFilter_Base_Null()
{
Assert.Throws<ArgumentNullException>(() => TextFilter.Filter(nu... |
using System;
namespace proto
{
public class ShallowClone : ICloneable
{
public string MemberA { get; set; }
public string MemberB { get; set; }
public ReferenceModel Reference { get; set; }
public object Clone()
{
return this.MemberwiseClone();
}
... |
using System;
namespace EasyDeploy.GUI.Message
{
public abstract class CallbackMessage
{
public Action SuccessAction { get; set; }
public Action CancelAction { get; set; }
}
}
|
using System;
using System.Collections.Generic;
using System.Text;
namespace Uki {
public static class Constants {
// Files
public const string MANIFEST_PATH = "MANIFEST.uki";
public const string VARIABLES_PATH = "VARIABLES.uki";
// Paths
public const string ARTICLE_ROOT = "pages";
public const string ... |
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
using Microsoft.AspNetCore.Authentication;
using System.Collections.Generic;
using static System.Diagnostics.Debug;
using static System.Text.E... |
using KmLog.Server.Domain;
namespace KmLog.Server.Dto
{
public class ServiceEntryInfoDto : EntryDto
{
public ServiceType ServiceType { get; set; }
}
}
|
using System.Collections.Generic;
using KafkaNet.Model;
using KafkaNet.Protocol;
namespace KafkaNet
{
public interface IPartitionSelector
{
Partition Select(Topic topic, string key);
}
} |
using System.Configuration;
using Sfa.Das.Sas.Indexer.ApplicationServices.Apprenticeship.Services;
using Sfa.Das.Sas.Indexer.ApplicationServices.Shared.Settings;
using Microsoft.Azure;
namespace Sfa.Das.Sas.Indexer.ApplicationServices.Apprenticeship.Settings
{
public class StandardIndexSettings : IIndexSettings<I... |
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
namespace Microsoft.Zelig.Runtime
{
using System;
using TS = Microsoft.Zelig.Runtime.TypeSystem;
[ExtendClass(typeof(System.Runtime.InteropServices.Marshal), NoConstructors=true)]
public static class MarshalImpl
{
[TS.W... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Accounting.Db.Elements;
namespace Accounting.Db.SqlClient.Elements
{
public class SqlClientDbDeleteStatement : DbDeleteStatement
{
public SqlClientDbDeleteStatement(DbManager mgr)
: base(mgr)
... |
using System.Collections.Generic;
using UnityEngine;
public static class CustomRandom
{
public static System.Random rng = new System.Random();
}
public class Manager : MonoBehaviour
{
public GameObject SpaceshipPrefab;
public GameObject Planet;
public bool Train = true;
public bool Visualize = tr... |
using System;
using System.Linq;
using System.Text;
using System.IO;
using System.IO.Pipes;
using System.Runtime.InteropServices;
namespace TsuSploit.ExternalAPI // External API written by me (not released standalone)
{
class KrnlAPI
{
public static void pipeshit(string script)
{
using (NamedPipeClient... |
/*
* Created by SharpDevelop.
* User: user
* Date: 16/04/2018
* Time: 12:55 p.m.
*
* To change this template use Tools | Options | Coding | Edit Standard Headers.
*/
using System;
using System.Collections.Generic;
using System.IO;
using System.Net;
namespace soap_ws_client
{
public abstract class SoapWsClien... |
// 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.Globalization;
namespace System.Web.Mvc
{
/// <summary>
/// The JQuery Form Value provider is used to handle JQuery formatted dat... |
using System;
using System.Collections;
using System.Collections.Generic;
using CANStudio.BulletStorm.Util;
using UnityEngine;
namespace CANStudio.BulletStorm.Storm.Events
{
/// <summary>
/// Wait before next event.
/// </summary>
[Serializable]
public class Wait : IStormEvent
{
[Seria... |
using System;
namespace XeLib.API
{
public static class FileValues
{
private const String FileHeaderFlagsPath = @"File Header\Record Header\Record Flags";
private const String NextObjectIdPath = @"File Header\HEDR\Next Object ID";
public static Handle GetNextObjectId(Handle handle)
... |
using ServiceStack.ServiceHost;
namespace WhoWhat.Api.Contract.Question
{
[Route("/search/keyword/{Keyword}", "GET", Summary = "Search question by term in question body.")]
public class SearchQuestionByKeywordRequest : PageableRequest<QuestionSummariesResponse>
{
public string Keyword { get; set; ... |
using System;
using System.Linq.Expressions;
using System.Runtime.Serialization;
namespace GenericSearch.Paging
{
[DataContract]
public class SortCriteria<T>
{
/// <summary>
/// Initializes a new instance of the <see cref="SortCriteria{T}"/> class.
/// </summary>
public Sor... |
using System;
class Program
{
static void Main()
{
Console.WriteLine("{0:0.000} ", 2 - Math.Log(2));
}
}
|
using System;
using System.Net;
using Lykke.Service.Decred.SignService.Models;
using Lykke.Service.Decred.SignService.Services;
using Microsoft.AspNetCore.Mvc;
using NDecred.Common;
namespace Lykke.Service.Decred.SignService.Controllers
{
[Route("api/[controller]")]
public class SignController : Controller
... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Events;
public class MComparer : MonoBehaviour
{
public UnityEvent React = new UnityEvent();
}
|
using KerbalKonstructs.Core;
using System;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
namespace KerbalKonstructs
{
public class AdvancedTextures : StaticModule
{
public string newShader = null;
public string transforms = "Any";
public string newMaterial... |
namespace DeepSleep.Api.Web.Tests.Pipeline
{
using DeepSleep.Api.Web.Tests.Mocks;
using DeepSleep.Validation;
using System;
using System.Threading.Tasks;
using Xunit;
public class NotFound404RequestTest : PipelineTestBase
{
[Theory]
[InlineData("/route/not/founds")]
... |
using System.IO;
namespace Difi.Felles.Utility.Resources
{
internal class ResourceUtility
{
private readonly string _ns;
public ResourceUtility(string ns)
{
_ns = ns;
}
public MemoryStream GetMemoryStream(string[] path)
{
var ms = new M... |
using System;
using Microsoft.AspNetCore.Mvc;
using PodcastsSyndicate.Models;
namespace PodcastsSyndicate.Controllers
{
public abstract class BaseController : Controller
{
protected new User User => Request.HttpContext.Items["User"] as User;
}
} |
using System.Runtime.InteropServices;
#pragma warning disable 0618
namespace SharpGen.VisualStudioSetup;
[Guid("DA8D8A16-B2B6-4487-A2F1-594CCCCD6BF5")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[ComImport]
public interface ISetupPackageReference
{
[return: MarshalAs(UnmanagedType.BStr)]
string ... |
using NUnit.Framework;
using System.Collections.Generic;
using System;
public class ForeachTest
{
[Test]
public void EditorTest0()
{
var names = new List<string> { "Taro", "Jiro", "Saburo" };
var actions = new List<Action>();
foreach (string name in names)
{
a... |
using System.Collections.Generic;
using Newtonsoft.Json;
namespace PUC.Fio.Model.Prices
{
public class PriceEntry
{
private sealed class TickerEqualityComparer : IEqualityComparer<PriceEntry>
{
public bool Equals(PriceEntry x, PriceEntry y)
{
if (Referenc... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Cofoundry.Domain.CQS;
namespace Cofoundry.Domain.Internal
{
/// <summary>
/// Attempts to find the most relevant 'Not Found' page route by searching
/// for a 'Not Found' page up the d... |
using UnityEngine;
namespace Example.Blocks
{
[CreateAssetMenu(menuName = "Blocks/Sand")]
public class SandBlock : Block
{
// Some fields and functions
}
} |
using System;
using Agiil.Domain.Tickets;
using Agiil.Web.Models.Tickets;
using AutoMapper;
using CSF.Entities;
namespace Agiil.ObjectMaps.Tickets
{
public class CreateTicketResponseToNewTicketResponseProfile : Profile
{
public CreateTicketResponseToNewTicketResponseProfile()
{
CreateMap<CreateTick... |
using MarketingBox.Postback.Service.Domain.Models;
using System;
namespace MarketingBox.Postback.Service.Postgres.Entities
{
public class AffiliateReferenceLogEntity
{
public long Id { get; set; }
public long AffiliateId { get; set; }
public DateTime Date { get; set; }
public O... |
using UnityEngine;
public class CameraController : MonoBehaviour
{
[SerializeField] Transform target;
[SerializeField] float sensitivity = 5.0f;
[SerializeField] float height = 2.0f;
Transform cameraTransform;
Vector2 mouseLook;
Vector2 input;
void Awake()
{
cameraTransform = ... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using System;
public class ConversationController : MonoBehaviour {
public TalkObject Talk;
public GameObject BubbleLeftPrefab;
public GameObject BubbleRightPrefab;
public int MoveDist = 200;
... |
// -------------------------------------------------------------------------------
// Minifier.cs
// Copyright (c) 2014 Bryan Kizer
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
/... |
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.IO;
using FSWActions.Core;
using FSWActions.Core.Config;
namespace FSWActions.ConsoleApplication
{
internal class Program
{
private static void Main(string[] args)
{
var configuration... |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Net;
using System.IO;
using HentaiDownloader.Utils;
using HentaiDownloader.Model;
using Hent... |
using System;
using System.Collections.Generic;
using System.Text;
namespace DevGuild.AspNetCore.Services.Sms.SmsCentre.Client
{
/// <summary>
/// Represents sms centre send response.
/// </summary>
public class SmsCentreSendResponse
{
/// <summary>
/// Initializes a new instance o... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace Utils
{
class c_utility
{
public static Thread security_thread;
public static double get_epoch_time()
{
TimeSpan t = DateTi... |
/*
* Copyright (c) 2016 Samsung Electronics Co., Ltd 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
*
* ... |
using UnityEngine;
using System.Collections;
using UnityEngine.UI;
public class PosText : MonoBehaviour {
public Text textUI;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
textUI.text = " x:"+transform.position.x+"/n y:"+transform.position.y+"/n z:"+... |
using System.Collections.Generic;
public class Garage
{
private Dictionary<int, Car> parkedCars;
public Garage()
{
this.parkedCars = new Dictionary<int, Car>();
}
public Dictionary<int, Car> ParkedCars
{
get { return this.parkedCars; }
}
public void ParkCar(int id, C... |
using System.Collections.Generic;
using System.Linq;
namespace OpenTibiaUnity.Core.WorldMap
{
public class WorldMapStorage {
private List<int> _cacheObjectsCount;
private int _effectsCount = 0;
private Field[] _fields = new Field[Constants.NumFields];
private Appearances.Appearance... |
using System.Runtime.CompilerServices;
using Microsoft.VisualStudio.TestTools.UnitTesting;
[assembly: DoNotParallelize]
[assembly: InternalsVisibleTo("Uno.UI.Tests.Performance")] |
using System;
using System.Runtime.InteropServices;
namespace SharpLearning.Containers.Views
{
/// <summary>
/// Pinned pointer to F64Vector. Proper disposal required. Preferably use this in a Using statement
///
/// Using(var pinned = vector.GetPinnedPointer())
/// {
/// var view = pinne... |
@{
ViewData["Title"] = "Client Builder";
}
<div class="w-100 p-3">
<development-only-notification-alert></development-only-notification-alert>
<div id="client-builder-app"></div>
</div>
@section Scripts {
<script src="~/admin/js/modules/client-builder.js" asp-append-version="true"></script>
} |
using ChallengeModel.Map;
using ChallengeModel.Player;
using Newtonsoft.Json;
using System.Collections.Generic;
using System.IO;
namespace Challenger.Model
{
public class ChallengeConfiguration
{
public List<SolarSystem> SolarSystems { get; set; } = new List<SolarSystem>();
public List<Empire... |
using UnityEngine;
using UnityEngine.SceneManagement;
using System.Collections;
using System.Collections.Generic;
public class MyControl : MonoBehaviour
{
protected Joystick joystick;
private float speed = 10.0f;
private bool IsDead = false;
void Start()
{
joystick = FindObjectOfType<Joy... |
using UnityEngine;
using System.Collections;
namespace DevionGames{
public class HeaderLineAttribute : PropertyAttribute {
/// <summary>
/// <para>The header text.</para>
/// </summary>
public readonly string header;
/// <summary>
/// <para>Add a header above some fields in the Inspector.</para>
... |
using System;
using System.Globalization;
using System.Windows.Data;
namespace Metrolib.Converters
{
/// <summary>
/// Converts a relative double value to a string in the form of X%.
/// 0 yields 0%
/// 1 yields 100%
/// 0.5 yields 50%
/// 0.55 yields 55%
/// 0.555 yields 56%
/// </sum... |
using MediatR;
using U.Common.Pagination;
using U.Common.Products;
using U.SmartStoreAdapter.Application.Common.QueryModels;
namespace U.SmartStoreAdapter.Application.Products
{
public class GetProductsListQuery : IRequest<PaginatedItems<SmartProductViewModel>>, IPagination
{
public int PageIndex { ge... |
using System.Collections.Generic;
using Microsoft.AspNetCore.Components;
namespace Common.Web
{
public class AppDiagram : ComponentBase
{
[Parameter]
[EditorRequired]
public IEnumerable<ChartData> Data { get; set; }
[Parameter]
public string Width { get; set; } = "100... |
using FixedPointy;
using TF.Colliders;
namespace TF.Core
{
public class ContactPolygonCircle : ContactCallback
{
public static readonly ContactPolygonCircle instance = new ContactPolygonCircle();
public void HandleCollision(Manifold m, TFRigidbody a, TFRigidbody b)
{
Conta... |
using Content.Shared.Damage;
using Content.Shared.Sound;
using Robust.Shared.Prototypes;
using Robust.Shared.Utility;
namespace Content.Shared.Explosion;
/// <summary>
/// Explosion Prototype. Determines damage, tile break probabilities, and visuals.
/// </summary>
/// <remarks>
/// Does not currently support... |
using System;
using System.Diagnostics.CodeAnalysis;
using System.Linq.Expressions;
using PrtgAPI.Linq.Expressions.Visitors;
namespace PrtgAPI.Linq.Expressions
{
/// <summary>
/// Represents the substitution of the original body of a <see cref="LambdaExpression"/> before being parsed by a <see cref="PropertyE... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace Swashbuckle.AspNetCore.Cli
{
public class CommandRunner
{
private readonly Dictionary<string, string> _argumentDescriptors;
private readonly Dictionary<string, OptionDescriptor> _optionDescriptors;
... |
using System;
using Newtonsoft.Json;
namespace NuKeeper.Gitlab.Model
{
public class Links
{
[JsonProperty("self")]
public Uri Self { get; set; }
[JsonProperty("issues")]
public Uri Issues { get; set; }
[JsonProperty("merge_requests")]
public Uri MergeRequests {... |
namespace ClientApiGenerator.Models
{
/// <summary>
/// Deprecation status
/// </summary>
public class DeprecationStatus
{
/// <summary>
/// Date we notify user of the deprecation
/// </summary>
public string Date { get; set; }
/// <summary>
/// Vers... |
// <copyright file=Capsule company=Hydra>
// Copyright (c) 2015 All Rights Reserved
// </copyright>
// <author>Christopher Cameron</author>
using UnityEngine;
namespace Hydra.HydraCommon.Utils.Shapes._3d
{
/// <summary>
/// Capsule.
/// </summary>
public struct Capsule
{
private const float SPHERE_VOLUME_CONS... |
using System.Reflection;
namespace QF.GraphDesigner
{
public class WithNameFormat : TemplateAttribute
{
public override int Priority
{
get { return 1; }
}
public override void Modify(object templateInstance, MemberInfo info, TemplateContext ctx)
{
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace RedSocial.Models
{
public class megusta
{
public int megustaID { get; set; }
public int idUsuario { get; set; }
public int idPubli { get; set; }
public bool Estado { get; set; }
... |
using ReactNative.Bridge;
using ReactNative.Modules.Core;
using System;
using System.Collections.Generic;
using Windows.ApplicationModel.Core;
using Windows.Graphics.Display;
using Windows.UI.Core;
namespace Orientation.Orientation
{
/// <summary>
/// A module that allows JS to share data.
/// </summary>
... |
using System;
using JetBrains.Annotations;
namespace ShiftIt.Internal.Streaming
{
/// <summary>
/// Wrapper around a HTTP response body.
/// All decompression and decoding is handled.
/// </summary>
public interface IHttpResponseStream : IDisposable
{
/// <summary>
/// Length that server reporte... |
using NUnit.Framework;
using Shuttle.Esb.Tests;
namespace Shuttle.Esb.FileMQ.Tests
{
public class FileOutboxTest : OutboxFixture
{
[Test]
[TestCase(false)]
[TestCase(true)]
public void Should_be_able_handle_errors(bool isTransactionalEndpoint)
{
TestOutboxSending(FileMQFixture.GetComponentC... |
/*
* Copyright (C) 2018 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
namespace com.opengamma.strata.collect
{
/// <summary>
/// Provides the ability to parse and format numbers.
/// <para>
/// This exists as an alternative to <seealso cref="Numbe... |
using UnityEngine;
namespace GameConnection
{
public class EndSceneController : MonoBehaviour
{
private GameManifest _manifest;
public void Init(GameManifest manifest)
{
_manifest = manifest;
}
}
}
|
using System.Collections.Generic;
using Newtonsoft.Json;
namespace Klarna.Models
{
/// <summary>
/// Represents a product's dimensions
/// </summary>
public class Dimensions
{
/// <summary>
/// The product's height as used in the merchant's webshop. Non-negative. Measured in millime... |
// Copyright (C) 2019 Singapore ETH Centre, Future Cities Laboratory
// All rights reserved.
//
// This software may be modified and distributed under the terms
// of the MIT license. See the LICENSE file for details.
//
// Author: Michael Joos (joos@arch.ethz.ch)
using System.Collections;
using UnityEngine;
publi... |
using System;
using System.Runtime.InteropServices;
namespace DotNext.Threading
{
using Timestamp = Diagnostics.Timestamp;
/// <summary>
/// Helps to compute timeout for asynchronous operations.
/// </summary>
[StructLayout(LayoutKind.Auto)]
public readonly struct Timeout
{
privat... |
namespace NewsSite.Constants
{
public class GlobalConstants
{
public const string AdminRole = "Admin";
public const string ReporterRole = "Reporter";
public static string AdminEmailUsername = "zxc@zxc.zxc";
public static string AdminPassword = "------";
public static s... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
namespace AMAK
{
public abstract class Amas<E> : Schedulable
where E : Environment
{
public object[] Parameters { get; }
public E Environment { get; }
public List<Agen... |
// Copyright (C) 2019 Singapore ETH Centre, Future Cities Laboratory
// All rights reserved.
//
// This software may be modified and distributed under the terms
// of the MIT license. See the LICENSE file for details.
//
// Author: David Neudecker (neudecker@arch.ethz.ch)
// Michael Joos (joos@arch.ethz.ch)
usin... |
using System;
using System.Runtime.InteropServices;
namespace ManagedShell.Interop
{
public partial class NativeMethods
{
// Undocumented dark mode API for 1903 and later
// https://github.com/ysc3839/win32-darkmode
public enum PreferredAppMode
{
Default,
... |
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Text;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace BLTools.UnitTest.Utils {
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP
[TestClass]
public class StringExtensionEnumerableTest {
private const string COMP... |
using System;
using System.Collections.Generic;
using System.Xml;
namespace SPBP.Handling
{
public class DataSItem
{
private Dictionary<string, DataParam> _params = new Dictionary<string, DataParam>();
private bool _hasReturnParam = false;
private Dictionary<string, DataParam... |
using bS.Sked2.Structure.Models;
using System;
using System.Collections.Generic;
namespace bS.Sked2.Structure.Repositories
{
public interface IEngineRepository
{
void CreateElement(IElementEntry entityToCreate);
void CreateJob(IJobEntry jobEntry);
void CreateModule(IModuleEntry modu... |
using System;
class Program
{
const int X = 1;
static int Y = 2;
static void Main()
{
Y += X;
Console.WriteLine(Y);
}
}
|
using System;
namespace Bottlerocket.Payments
{
public class Payment
{
public BankAccount BankAccount { get; set; }
public CreditCard CreditCard { get; set; }
public OpaqueData OpaqueData { get; set; }
public PaymentType PaymentType { get; set; }
}
} |
using CarBookingAPI.Core.Contracts.Models;
using CarBookingAPI.Core.Contracts.ViewModels;
using System.Collections.Generic;
namespace CarBookingAPI.Core.Contracts.Mappers
{
/// <summary>
/// Object for mapping between TModel and TViewModel in both directions.
/// </summary>
/// <typeparam name="TViewM... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace Tester_ZYH.NET_V.Test_V
{
public partial class DropdownList_Test : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
... |
// The MIT License (MIT)
//
// Copyright (c) Andrew Armstrong/FacticiusVir 2019
//
// 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 r... |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Tiendita_Moreno.BussinessEntities;
namespace Tiendita_Moreno.DesktopApp
{
public partial class... |
namespace Open.Database.Extensions;
internal static class ConnectionTimeout
{
public const ushort DEFAULT_SECONDS = 30;
}
internal static class CommandTimeout
{
public const ushort DEFAULT_SECONDS = 60;
}
|
using System;
using Worldpay;
using Xunit;
namespace wpgintegrationtests
{
public class XmlNotificationBuilderTest
{
[TextFile("data/order-notifications/authorised.txt")]
[Theory]
public void authorised_asExpected(string xml)
{
// When
OrderNotification... |
namespace ResXManager.View.Visuals
{
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Globalization;
using System.Linq;
using TomsToolbox.Wpf;
public class LanguageSelectionBoxViewModel : ObservableObject
{
public LanguageSelec... |
namespace CardboardKnight.Core.ViewModels
{
public class MainViewModel : BaseViewModel //Is this just use in the Android setup?
{
}
} |
using System;
using System.Diagnostics;
using System.IO;
using System.ServiceProcess;
using Microsoft.VisualBasic.FileIO;
namespace Svenkle.NuGetServer.Service
{
public class Service : ServiceBase
{
private Process _hostRunnerProcess;
private ProcessStartInfo _hostRunnerProcessStartInfo;
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.