content stringlengths 23 1.05M |
|---|
namespace EA.Iws.TestHelpers.DomainFakes
{
using System;
using System.Collections.Generic;
using System.Linq;
using Core.AddressBook;
using Domain.AddressBook;
using Helpers;
public class TestableAddressBook : AddressBook
{
public new Guid Id
{
get { return ... |
using UnityEngine;
public class WeaponController : MonoBehaviour
{
private void OnCollisionEnter2D(Collision2D collision)
{
EnemyController enemy = collision.gameObject.GetComponent<EnemyController>();
if (enemy != null)
{
enemy.Deactivate();
}
}
} |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Roslyn.Jenkins
{
public sealed class JobInfo
{
public readonly JobId Id;
public readonly PullRequestInfo PullRequestInfo;
public reado... |
using AppDigitalCv.Repository;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
namespace AppDigitalCv.ViewModels
{
public class DireccionVM
{
public int IdDireccion { get; set; }
[RegularExpression("^[a-záéíóúñA... |
using System;
using System.Linq;
using System.Collections.Generic;
using System.Text.RegularExpressions;
class Program
{
static void Main()
{
#if DEBUG
Console.SetIn(new System.IO.StreamReader("../../input.txt"));
#endif
int n = int.Parse(Console.ReadLine());
var input = Enumerable.R... |
using System;
namespace ExplicitStatus
{
public class AmbiguousStatusConfigurationException<TStatus> : InvalidOperationException
{
public AmbiguousStatusConfigurationException(TStatus ambiguousStatus)
: base(GenerateMessage(ambiguousStatus))
{
}
private static str... |
#if TASKS_PROFILER_ENABLED
using System;
//This profiler is based on the Entitas Visual Debugging tool
//https://github.com/sschmid/Entitas-CSharp
namespace Svelto.Tasks.Profiler
{
public struct TaskInfo
{
public string taskName => _taskName;
public double minUpdateDuration => _minUpdateDurat... |
using PostSharp.Samples.Authorization.Framework;
using System;
namespace PostSharp.Samples.Authorization.BusinessObjects
{
public class User : ISubject
{
public User(Guid id)
{
Id = id;
}
public Guid Id { get; }
public string Name { get; set; }
bool IEquatable<IS... |
using System.Runtime.InteropServices;
using TeaTimeAdvance.Cpu.State;
namespace TeaTimeAdvance.Cpu.Instruction.Definition.Arm
{
[StructLayout(LayoutKind.Sequential, Pack = 1, Size = 4)]
public struct DataProcessingFormat32 : IInstructionFormat32
{
public uint Opcode;
uint IInstructionForm... |
namespace NewPlatform.Flexberry.ORM.ODataServiceCore.Batch
{
using Microsoft.AspNet.OData.Batch;
using Microsoft.AspNetCore.Http;
using System;
using System.Collections;
using System.Collections.Generic;
/// <summary>
/// A wrapper for the batch requests collection, which provides access t... |
using System;
using Cottle.Values;
namespace Cottle.Stores
{
public abstract class AbstractStore : IStore
{
#region Properties
public Value this[Value symbol]
{
get
{
Value value;
if (this.TryGet (symbol, out value))
return value;
return VoidValue.Instance;
}
... |
namespace Rsdn.Community.Presentation.Infrastructure
{
using System;
using System.Threading.Tasks;
using Windows.ApplicationModel.Core;
using Windows.UI.Core;
using Windows.UI.Popups;
using Windows.UI.Xaml.Controls;
public class DialogManager : IDialogManager
{
publi... |
using DotNetSurfer_Backend.Core.Models;
using DotNetSurfer_Backend.Core.Interfaces.Managers;
using DotNetSurfer_Backend.Core.Interfaces.Repositories;
using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.Security.Claims;
using System.Threading.Tasks;
using DotNetSurfer_Backen... |
using Microsoft.VisualStudio.Text.Editor;
using Microsoft.VisualStudio.Text.Editor.DragDrop;
using Microsoft.VisualStudio.Utilities;
using System;
using System.Collections.Specialized;
using System.ComponentModel.Composition;
using System.IO;
using System.Windows;
namespace $rootnamespace$
{
[Export(typeof(IDropH... |
using System;
using System.Linq;
using BrightWire.ExecutionGraph;
using BrightWire.Tests.Helper;
using NUnit.Framework;
namespace BrightWire.Tests
{
public class GraphOperationTests
{
static ILinearAlgebraProvider _cpu;
static GraphFactory _factory;
[SetUp]
public static void Load()
{
_cpu = BrightWir... |
namespace Bodoconsult.Core.Windows.Network.Dhcp
{
public enum DhcpServerMessageTypes : byte
{
BootRequest = 1,
BootReply = 2
}
}
|
using OT.GringottsBank.Core.Domain.Common;
using System.Collections.Generic;
namespace OT.GringottsBank.Core.Domain.Entities
{
public class Account : BaseEntity
{
public string AccountNumber { get; set; }
public decimal Balance { get; set; }
public string OwnerId { get; set; }
... |
using System.Diagnostics.CodeAnalysis;
namespace Socketron.Electron {
/// <summary>
/// Create OS desktop notifications.
/// <para>Process: Main</para>
/// </summary>
[type: SuppressMessage("Style", "IDE1006")]
public class Notification : EventEmitter {
/// <summary>
/// Notification instance events.
/// ... |
#if !ONPREMISES
using Microsoft.SharePoint.Client;
using OfficeDevPnP.Core.Attributes;
namespace OfficeDevPnP.Core.Framework.Provisioning.ObjectHandlers.TokenDefinitions
{
[TokenDefinitionDescription(
Token = "{everyone}",
Description = "Returns the claim for everyone in this tenant",
Example... |
using System.ComponentModel.DataAnnotations;
namespace Amazon.Ssm
{
public class ListTagsForResourceRequest : ISsmRequest
{
[Required]
public string ResourceId { get; set; }
// ManagedInstance | MaintenanceWindow | Parameter
[Required]
public string Resource... |
namespace TaskManagementSystem.Data
{
using Microsoft.AspNet.Identity.EntityFramework;
using System.Data.Entity;
using TaskManagementSystem.Models;
public class TaskManagementSystemDbContext : IdentityDbContext<User>
{
public TaskManagementSystemDbContext()
: base("TaskManageme... |
namespace MichaelTCC.Infrastructure.DTO
{
public interface ISensorDTO
{
float[] SensorValues { get;}
}
} |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerMovement : MonoBehaviour
{
[Header("Objects")]
[SerializeField]
private Camera playerCamera;
[SerializeField]
private GameObject playerObject;
[Header("Settings")]
[SerializeField]
privat... |
#nullable enable
using Windows.Graphics;
namespace Windows.UI.Composition
{
public partial class CompositionGeometry : CompositionObject
{
internal CompositionGeometry(Compositor compositor) : base(compositor)
{
}
public float TrimStart { get; set; }
public float TrimOffset { get; set; }
public floa... |
using Microsoft.Extensions.Localization;
using System;
using System.ComponentModel.DataAnnotations;
namespace VueCoreFramework.Core.Extensions
{
/// <summary>
/// Custom extensions for enum.
/// </summary>
public static class EnumExtensions
{
/// <summary>
/// Gets the description ... |
using Etimo.Id.Dtos;
using Etimo.Id.Settings;
using System.Collections.Generic;
using System.Net.Http;
using System.Threading.Tasks;
namespace Etimo.Id.Client
{
public class EtimoIdAuditLogClient
: EtimoIdBaseClient,
IEtimoIdAuditLogClient
{
public EtimoIdAuditLogClient(EtimoIdSetti... |
using UnityEngine;
using System;
using System.Timers;
namespace BW.Core {
/// <summary>
/// 计时器类
/// </summary>
public class Timer {
// 到点触发的回调
private readonly Action m_callBack;
// 当前时间和最大时间
private float m_time, m_currentTime;
/// <summary>
/// 标准... |
using System.Globalization;
using System.Windows.Controls;
namespace Twenty57.Linx.Components.Database.ExecuteStoredProcedure.Editors.ProcedureParametersEditor.Validators
{
public class ParameterSizeValidator : ValidationRule
{
public override ValidationResult Validate(object value, CultureInfo cultureInfo... |
// ***********************************************************************
// Assembly : CrispyWaffle.Tests
// Author : Guilherme Branco Stracini
// Created : 07-29-2020
//
// Last Modified By : Guilherme Branco Stracini
// Last Modified On : 07-29-2020
// ****************************... |
using Shouldly.Tests.TestHelpers;
namespace Shouldly.Tests.ShouldBeEmpty
{
public class ArrayScenario : ShouldlyShouldTestScenario
{
protected override void ShouldThrowAWobbly()
{
new[] {1}.ShouldBeEmpty("Some additional context");
}
protected override string Chuck... |
using Hangfire.Annotations;
using Hangfire.Dashboard;
using Microsoft.AspNetCore.Http;
using System;
using System.Net.Http.Headers;
using System.Text;
namespace Kean.Infrastructure.Hangfire
{
/// <summary>
/// 授权过滤
/// </summary>
internal sealed class AuthorizationFilter : IDashboardAuthorizationFilte... |
namespace Bistro.WebApp.Data
{
using Common.Models;
using Newtonsoft.Json;
public sealed class BistroFoodInventoryService
{
private readonly HttpClient m_httpClientFactory;
public BistroFoodInventoryService(IHttpClientFactory httpClientFactory)
{
m_httpClientFactory... |
using System;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using System.Xml.Linq;
using System.Xml.XPath;
using K4os.Xpovoc.Core.Db;
using Xunit;
namespace K4os.Xpovoc.Db.Test.Integrations
{
public abstract class StorageTestBase
{
private readonly XDocument _secrets = Secrets.Load("data... |
using GitCandy.Configuration;
using GitCandy.Controllers;
using System.Web.Mvc;
namespace GitCandy.Filters
{
public class PublicServerAttribute : SmartAuthorizeAttribute
{
public override void OnAuthorization(AuthorizationContext filterContext)
{
if (UserConfiguration.Current.IsPub... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using System;
using System.Diagnostics.CodeAnalysis;
using System.Diagnostics.ContractsLight;
using System.Threading.Tasks;
using System.Threading.Tasks.Dataflow;
using BuildXL.Utilities.Tasks;
using TypeScript.Net.Types;
namespace ... |
using Siteimprove.Integration.Sitefinity.Mvc.Controllers;
namespace Siteimprove.Integration.Sitefinity.Mvc.Models
{
/// <summary>
/// Provides business logic specific for overlays used in Sitefinity Backend pages
/// </summary>
public class BackendPageOverlayModel : PageOverlayModel
{
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MBTilesDownloader
{
public struct TileDownloadOptions
{
/// <summary>
/// The path to the MBTiles database (i.e., myDatabase.mbtiles)
/// </summary>
pub... |
namespace _08.Events
{
using System;
public class PublisherEventArgs : EventArgs
{
//Constrictor
public PublisherEventArgs()
{
this.Time = DateTime.Now;
}
//Propertie
public DateTime Time { get; }
}
} |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Recognition : MonoBehaviour
{
private GameObject playerObj_; // プレイヤー情報
private PlayerCameraControll cameraControll_; // カメラ情報
public GameObject mainCamera_; // メインカメラ
priva... |
using JerryPlat.Utils.Models;
using System;
using System.ComponentModel.DataAnnotations;
namespace JerryPlat.Models
{
public enum PracticeType
{
Order = 1,
Random = 2,
Favorite = 3,
Error = 4,
Ignore = 5,
Exam = 6
}
public class QuestionRecord : IEntity... |
// Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace System.CommandLine.Help
{
/// <summary>
/// Specifies help formatting behavior for a section of command line help.
/// </s... |
using Finance.Enums;
using Finance.Exceptions;
using Finance.Interfaces;
using Finance.Models;
namespace Finance.Factories
{
public class AccountFactory
{
public AccountFactory()
{
}
public static Account GetAccount( IAccountConfigOptions config ) {
A... |
// Copyright (c) Microsoft Corporation. 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.Diagnostics;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
using System... |
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
using System;
using ICSharpCode.SharpDevelop.Dom;
namespace ICSharpCode.UnitTesting
{
public class NUnitTestAttributeName
{... |
namespace Contrive.Common
{
public interface IEmailService
{
void SendEmail(string fromAddress, string toAddress, string subject, string messageBody);
string BuildMessageBody(string userName, string token, string rootUrl, int timeSpanInHours, string filePath);
}
} |
using Terraria.DataStructures;
namespace OTAPI.Callbacks.Terraria
{
internal static partial class Player
{
internal static bool KillMeBegin(global::Terraria.Player player, PlayerDeathReason damageSource, ref double dmg, ref int hitDirection, ref bool pvp)
{
var res = Hooks.Player.PreKillMe?.Invoke(player, da... |
using JetBrains.Annotations;
using System;
using System.IO;
using Volo.Abp;
namespace LINGYUN.Abp.OssManagement
{
public class CreateOssObjectRequest
{
public string Bucket { get; }
public string Path { get; }
public string Object { get; }
public bool Overwrite { get; set; }
... |
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
namespace ToolKit.DirectoryServices
{
/// <summary>
/// This interface represents a generic group.
/// </summary>
public interface IGroup
{
/// <summary>
/// Gets the category of the group.
... |
using System;
using System.Collections.Generic;
using System.Text;
namespace MicroService.Common.Author
{
public class TokenInfo
{
public string AppKey { set; get; }
public string AppSecret { set; get; }
}
}
|
using System;
using System.Collections.Generic;
using System.Text;
namespace Transdim.DomainModel
{
public enum ModalIdentifier
{
None,
AdjustablePointsScorer,
PowerActionPicker,
}
}
|
using AzureFunctions.Extensions.CognitiveServices.Bindings.Vision.Analysis;
using AzureFunctions.Extensions.CognitiveServices.Bindings.Vision.Domain;
using Microsoft.Azure.WebJobs;
using Microsoft.Azure.WebJobs.Hosting;
[assembly: WebJobsStartup(typeof(VisionDomainWebJobsStartup))]
namespace AzureFunctions.Extension... |
namespace Shared.Global
{
/// <summary>
/// Crud purpose
/// </summary>
public enum CrudPurposes
{
None, Create, Edit, Error
}
/// <summary>
/// Comparison consts for date
/// </summary>
public enum DateCompare
{
None = -1, Before = 0, During = 1, After = 2
... |
using Newtonsoft.Json;
namespace ProPublica.Congress
{
public class VotePosition
{
[JsonProperty]
public string MemberId { get; set; }
[JsonProperty("vote_position")]
public string Position { get; set; }
}
} |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ProjectileSpawner : MonoBehaviour
{
public GameObject projectile;
public int projectileCount;
private BoxCollider collider;
public GameObject terrain;
public int speed;
// Start is called before the ... |
using System;
using Microsoft.AspNetCore.Mvc;
namespace RestServices.API.Controllers
{
public class HomeController : Controller
{
[HttpGet]
[ApiExplorerSettings(IgnoreApi = true)]
public IActionResult Index()
{
try
{
var uri = new Uri("/s... |
// --------------------------------------------------------------------------------------------
// Version: MPL 1.1/GPL 2.0/LGPL 2.1
//
// The contents of this file are subject to the Mozilla Public License Version
// 1.1 (the "License"); you may not use this file except in compliance with
// the License. You may... |
namespace Shop.Core.Domain.Shared
{
public interface IChildId<TAggregateRootId> : IId
where TAggregateRootId : BaseId<TAggregateRootId>
{
TAggregateRootId AggregateRootId { get; }
}
}
|
namespace BartelsOnline.Office.IO.Excel.Models
{
/// <summary>
/// This represents a single Excel range.
/// </summary>
public class XlsRange
{
/// <summary>
/// The worksheet column name of this range, e.g. 'A'.
/// </summary>
public string ColumnName { get; set; }
/// <s... |
namespace IntegrationTests.EntityFrameworkTests;
using Microsoft.EntityFrameworkCore;
using Persistence;
using System;
public sealed class StandardFixture : IDisposable
{
public StandardFixture()
{
const string connectionString =
"Server=localhost;User Id=root;Password=root;Database=d_wal... |
using System;
using System.Threading.Tasks;
using DezignSpiration.Interfaces;
using DezignSpiration.Models;
using Newtonsoft.Json;
using DezignSpiration.Helpers;
namespace DezignSpiration.Services
{
public class FlagService : IFlagReasonService
{
private readonly INetworkClient httpClient;
pu... |
using System;
using System.Linq;
using System.Text;
using NLog.Config;
using NLog.LayoutRenderers;
namespace NLog.Web.LayoutRenderers
{
/// <summary>
/// ASP.NET Request Duration
/// </summary>
/// <remarks>
/// ${aspnet-request-duration}
/// </remarks>
[LayoutRenderer("aspnet-request-dura... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class RingSelectionHandler : MonoBehaviour
{
[SerializeField]
Transform _camera = default;
[SerializeField]
float minScale = 0.1f;
[SerializeField]
float maxScale = 1.2f;
[SerializeField]
float an... |
using System.Collections.Generic;
using Newtonsoft.Json;
namespace MySportsFeeds.NetCore.v1_2.Models.Mlb
{
public class CurrentSeasonResponse
{
[JsonProperty("currentseason")]
public CurrentSeason CurrentSeason { get; set; }
}
public class Details
{
[JsonProperty("name... |
using System.Reflection;
using System.Runtime.CompilerServices;
using Composable.Testing;
using NUnit.Framework;
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: InternalsVisibleTo("Composable.PerformanceTests")]
#if !NCRUNCH
[assembly: Parallelizable(ParallelScope.Fixtures)]
[assembly: LevelOfParallelismCE]
#endif... |
namespace MvvmUtils.Messaging.Messages
{
public class Message
{
public object Sender { get; protected set; }
public object Target { get; protected set; }
public Message() { }
public Message(object sender)
{
Sender = sender;
}
... |
using System.Windows;
using System.Windows.Media;
using Enterwell.Clients.Wpf.Notifications;
using MahApps.Metro.Controls;
namespace GPhotosMirror.Model
{
public class GPhotosNotifications : NotificationMessageManager
{
public NotificationMessageBuilder NotificationMessageBuilder()
{
... |
using System;
namespace Parkner.Web.States
{
public class UsuarioState
{
public string Id { get; set; }
public string Nombre { get; set; }
public string Apellido { get; set; }
public string Correo { get; set; }
public string Rol { get; set; }
public string ... |
/* =======================================================================
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 with the License.
... |
using Autofac;
using Microsoft.Extensions.Configuration;
using Microsoft.AspNetCore.Http;
using Microsoft.IdentityModel.Tokens;
using System;
using Zuravvski.Infrastructure.Options;
namespace Zuravvski.Infrastructure.Security.Jwt.Autofac
{
public static class Extensions
{
public static ContainerBuilde... |
using RhythmCodex.Infrastructure;
namespace RhythmCodex.Xact.Model
{
[Model]
public struct XwbEntry
{
public int Value { get; set; }
public XwbMiniWaveFormat Format { get; set; }
public XwbRegion PlayRegion { get; set; }
public XwbSampleRegion LoopRegion { get; set; }
... |
using System.IO;
using System.Threading.Tasks;
using Simple.MPD.Interfaces;
namespace Simple.MPD.Commands
{
/// <summary>
/// Executes "Shuffle"
/// </summary>
public class Shuffle : ICommand
{
/// <summary>
/// Command name
/// </summary>
public string CommandName ... |
using Discord;
using Discord.Commands;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Remoting.Messaging;
using System.Text;
using System.Threading.Tasks;
namespace _BotName.Source.Casino
{
enum CoinSide
{
Head,
Tail
}
[Group("casino")]
public class CasinoCoinFlip : ... |
using Polly;
using RestSharp;
namespace Ory.Client.Client
{
/// <summary>
/// Configuration class to set the polly retry policies to be applied to the requests.
/// </summary>
public class RetryConfiguration
{
/// <summary>
/// Retry policy
/// </summary>
public stat... |
using System;
namespace Datalist
{
public class DatalistColumnAttribute : Attribute
{
public Boolean Filterable { get; set; }
public Int32 Position { get; set; }
public Boolean Hidden { get; set; }
public String? Format { get; set; }
public DatalistColumnAttribute()
... |
@page
<a asp-page="/Manage/RenderPartials">Link inside area</a>
<a asp-page="/List" asp-area="Products" asp-route-sort="old" asp-route-top="20">Link to external area</a>
<a asp-controller="Home" asp-action="Index">Link to area action</a>
<a asp-page="/Admin/Index" asp-area="">Link to non-area page</a>
|
@using FluentKusto.CSharpGenerator
@foreach(string table in @Model)
{
<text>
public ITabularOperator<@table> @table{ get; set; } = new @{@table}();
</text>
}
|
using UOStudio.TextureAtlasGenerator.Contracts;
namespace UOStudio.TextureAtlasGenerator.Abstractions
{
public interface IUvwCalculatorStrategy
{
Uvws CalculateUvws(TextureAsset textureAsset, int atlasPageSize, int currentX, int currentY, int page);
}
}
|
using System;
using Microsoft.EntityFrameworkCore;
namespace IdentityService {
public class AppDbContext : DbContext {
public AppDbContext (DbContextOptions<AppDbContext> options) : base (options) { }
public DbSet<User> Users { get; set; }
public DbSet<Identity> Identities { get; set; }
... |
using System;
using DCL.Helpers;
/// <summary>
/// GET Entities from connected Catalyst
/// </summary>
public interface ICatalyst : IDisposable
{
/// <summary>
/// url for content server
/// </summary>
public string contentUrl { get; }
/// <summary>
/// get scenes deployed in parcels
/// ... |
using System;
using System.Collections.Generic;
using System.Linq;
using PacMan.Interfaces;
namespace PacMan.Algorithms
{
class AlgorithmForClyde : IStrategy
{
public Stack<Position> FindPath(IMap map, Position start, Position goal)
{
Stack<Position> path = new Stack<Position>();
... |
//Do not edit! This file was generated by Unity-ROS MessageGeneration.
using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using Unity.Robotics.ROSTCPConnector.MessageGeneration;
using RosMessageTypes.Std;
namespace RosMessageTypes.ObjectRecognition
{
[Serializable]
public cla... |
using MTProto.NET.Schema.TL;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
namespace MTProto.NET.Server.Infrastructure
{
public interface IUpdateManager
{
Task SendUpdate(TLUpdates update);
Task<TLUpdates> GetPedningUpdate(int userId);
}
}
|
namespace OAuth.AspNet.AuthServer
{
/// <summary>
/// Default values used by authorization server and bearer authentication.
/// </summary>
public static class OAuthDefaults
{
/// <summary>
/// Default value for AuthenticationType property in the OAuthBearerAuthenticationOptions an... |
// Copyright (c) Autofac Project. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using System.Collections;
namespace Autofac.Core.Resolving.Pipeline;
/// <summary>
/// Enumerator for a pipeline builder.
/// </summary>
internal sealed class PipelineBu... |
namespace Bp
{
/// <summary>
/// 阈值函数
/// </summary>
public class ThresholdFunction : IActivationFunction
{
public double Function(double x)
{
return (x >= 0) ? 1 : 0;
}
public double DerivativeX(double x)
{
return 0;
}
... |
using System.Collections.Generic;
using JCMG.EntitasRedux;
public sealed class DestroyGameEntitiesWithCleanupEventSystem : ICleanupSystem
{
private readonly IGroup<GameEntity> _group;
private readonly List<GameEntity> _entities;
public DestroyGameEntitiesWithCleanupEventSystem(IContext<GameEntity> context)
{
_g... |
namespace Components.Ast.ExpressionNodes
{
public class Expression
{
public ExpressionType Type { get; }
public Expression(ExpressionType type) => Type = type;
}
}
|
using System;
namespace AssemblyCSharp
{
public class GyroOrientation
{
public GyroOrientation ()
{
}
}
}
|
using Kujikatsu002.Questions;
using Kujikatsu002.Extensions;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace Kujikatsu002.Questions
{
/// <summary>
/// https://atcoder.jp/contests/agc034/tasks/agc034_b
/// </summary>
public class Questio... |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using UCS.Logic;
using UCS.Logic.JSONProperty;
namespace UCS.Helpers
{
internal static class BattleSerializers
{
... |
using FengZhen.SuperStore.Data.Entities;
using FengZhen.SuperStore.Services;
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;
namespace FengZhen.SuperSto... |
using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
namespace Templar.Service.SmokeTest
{
[TestFixture]
public class RestServiceTest
{
[Test]
public voi... |
using System;
using System.Collections;
using System.Collections.Generic;
using Battles;
using Character;
using Character.Controllers;
using Dialogues.UI;
using Items;
using MazeGeneration;
using Puzzles;
using UnityEngine;
using UnityEngine.Events;
using UnityEngine.SceneManagement;
using Random = UnityEngine.Random;... |
using System;
using Xamarin.Forms;
namespace PCL
{
public class FormsSubmittedListView : ContentPage
{
public ListView FormsSubmittedList;
public FormsSubmittedListView()
{
}
}
}
|
using FluentValidation;
using Maple.Core;
namespace Maple
{
public class PlaylistsValidator : BaseValidator<Playlists>, IValidator<Playlists>
{
public PlaylistsValidator(ILocalizationService translationService, IValidator<Playlist> playlistValidator)
: base(translationService)
{
... |
namespace Nssol.Platypus.Infrastructure
{
/// <summary>
/// ノードのアクセスレベル。
/// </summary>
public enum NodeAccessLevel
{
/// <summary>
/// <see cref="Nssol.Platypus.Models.NodeTenantMap"/> の値に関わらず全テナントで利用できない
/// </summary>
Disabled = 0,
/// <summary>
//... |
using Captura.ViewModels;
namespace Captura
{
public partial class HomePage
{
public HomePage()
{
InitializeComponent();
if (DataContext is MainViewModel vm)
{
vm.Refreshed += () => AudioDropdown.Shake();
}
}
}
}
|
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
namespace Aoc.Helpers
{
public class ToConsoleDrawer
{
public static void DrawFromDictionary(Dictionary<Point, char> dict, char defaultValue)
{
var minX = dict.Select(c => c.Key.X).Min();
var minY =... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace ZenvaVR
{
public class ObjectPool : MonoBehaviour {
//prefab that the pool will use
public GameObject poolPrefab;
//initial number of element
public int initialNum = 10;
//collection... |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using Umbraco.Core.Models.PublishedContent;
namespace Umbraco.Core.Models.Blocks
{
/// <summary>
/// The strongly typed model for the Block List editor
/// </summary>
[DataC... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.