text stringlengths 1 932k |
|---|
using Nimbus.Extensions;
using Nimbus.Infrastructure.Logging;
using NUnit.Framework;
using Shouldly;
namespace Nimbus.UnitTests.LoggingTests.TemplateNormalization
{
[TestFixture]
public class WhenNormalizingStructuredLogTemplates
{
[Test]
[TestCase("This one has no parameters.", "This one ... |
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration.Conventions;
using System.Linq;
using System.Web;
namespace Table.Data
{
public class TableContext : DbContext
{
public TableContext() : base(typeof(TableContext).Name)
{
}
public DbSet<Lin... |
using Maple.Web.Security.Permissions;
namespace Maple.Web.Security {
/// <summary>
/// Entry-point for configured authorization scheme. Role-based system
/// provided by default.
/// </summary>
public interface IAuthorizationService : IDependency {
void CheckAccess(Permission permission, ... |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Windows;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using FacePa... |
// <auto-generated />
using System;
using AzureChallenge.UI.Data;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
namespace... |
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information.
// Ported from um/imapi2fs.h in the Windows SDK for Windows 10.0.20348.0
// Original source is Copyright © Microsoft. All rights reserved.
using System.Runtime.InteropServi... |
// This is part of Favalon project - https://github.com/kekyo/Favalon
// Copyright (c) 2019 Kouji Matsui
//
// 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/... |
using System;
using System.Reflection;
using EmbyStat.Migrator.Interfaces;
using EmbyStat.Migrator.Models;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
namespace EmbyStat.Migrator
{
public static class ServiceCollectionMigratorExtension
{
p... |
using System;
using System.Collections.Generic;
using Microsoft.Extensions.Primitives;
namespace Microsoft.Extensions.Configuration.Alias
{
class ConfigurationRootAlias : IConfigurationRoot
{
private readonly IConfigurationRoot _configurationRoot;
private readonly Dictionary<string, string> _aliases... |
// Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved.
//
// 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; version 2 of the
// License.
//
// This program is distribu... |
namespace EmotionalAppraisalWF
{
partial class MainForm
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
... |
/*
* Quotes API For Digital Portals
*
* The quotes API combines endpoints for retrieving security end-of-day, delayed, and realtime prices with performance key figures and basic reference data on the security and market level. The API supports over 20 different price types for each quote and comes with basic search... |
using CSharpGL;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace c14d02_DoubleTransformFeedbakObjects
{
public partial class FormMain : Form
{
private Scene ... |
@model AsyncInn.Models.HotelRoom
@{
ViewData["Title"] = "Details";
Layout = "_Layout";
}
<h1>Details</h1>
<div>
<h4>HotelRoom</h4>
<hr />
<dl class="row">
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.Rate)
</dt>
<dd class = "col-sm-10">
... |
#region License
/* Copyright (c) 2005 Leslie Sanford
*
* 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, m... |
// Copyright 2021 Google LLC
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
// 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.
namespace Microsoft.Toolkit.Uwp.Input.GazeInteraction
{
/// <summary>
/// This enum specifies the various HI... |
// The MIT License(MIT)
//
// Copyright(c) 2021 Alberto Rodriguez Orozco & LiveCharts Contributors
//
// 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 withou... |
// <copyright file="Quaternion.cs" company="Wayne Venables">
// Copyright (c) 2019 Wayne Venables. All rights reserved.
// </copyright>
using System;
namespace Anki.Vector.Types
{
/// <summary>
/// Represents the rotation of an object in the world.
/// </summary>
public struct Quaternion : IEquat... |
using HaberPortal.Database.Model;
using HaberPortal.Model.Repository;
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 HaberPortal
{
public... |
/*
* Copyright 2010-2013 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "l... |
/*
* QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.
* Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation.
*
* 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... |
/* ****************************************
Publishing workflow
-------------------
- Update CHANGELOG.md
- Run a normal build with Cake
- Push to devel and FF merge to master
- Switch to master
- Run a Publish build with Cake
- Switch back to devel branch
**************************************** */
#a... |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:2.0.50727.3521
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//---... |
using System;
using Renci.SshNet.Sftp.Responses;
namespace Renci.SshNet.Sftp.Requests
{
internal abstract class SftpRequest : SftpMessage
{
private readonly Action<SftpStatusResponse> _statusAction;
private Action<SftpAttrsResponse> _attrsAction;
private Action<SftpDataResponse> _dataA... |
/////////////////////////////////////////////////////////////////////
// Copyright (c) Autodesk, Inc. All rights reserved
// Written by Forge Design Automation team for Inventor
//
// Permission to use, copy, modify, and distribute this software in
// object code form for any purpose and without fee is hereby granted,... |
//css_dir C:\Program Files (x86)\Mono\lib\mono\4.0
//css_ref Mono.Posix.dll;
//css_ref System;
using System;
using Mono.Unix.Native;
using System.IO;
using System.Threading;
//http://man7.org/linux/man-pages/man2/fcntl.2.html
//https://gist.github.com/mrvaldes/6196035
namespace Mono.Unix
{
internal class FileMute... |
using System.Collections.Generic;
namespace GitHub.Services.Common
{
public static class CollectionsExtensions
{
/// <summary>
/// Adds all of the given values to this collection.
/// Can be used with dictionaries, which implement <see cref="ICollection{T}"/> and <see cref="IEnumerable... |
namespace SampleArchitecture.Api.Controllers.Users.Requests
{
/// <summary>
/// The delete user by identifier request.
/// </summary>
internal sealed class DeleteUserByIdRequest
{
/// <summary>
/// Gets or sets the identifier.
/// </summary>
public Guid Id { get; set... |
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
/... |
using FlowScriptEngine;
using System;
namespace FlowScriptEnginePPDEditor.FlowSourceObjects
{
[ToolTipText("TemplateIsType_Summary")]
public abstract class TemplateIsTypeFlowSourceObject<T> : FlowSourceObjectBase
{
[ToolTipText("TemplateIsType_Target")]
public object Target
{
... |
/*******************************************************************************
Copyright 2015 Omar Andrés Trevizo Rascón
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... |
using OpenProtocolInterpreter.Converters;
using System.Collections.Generic;
using System.Linq;
namespace OpenProtocolInterpreter.Job.Advanced
{
/// <summary>
/// Execute dynamic Job request
/// <para>
/// The integrator requests a dynamical Job to be executed i.e. the Job sent from the integrator ... |
// 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 Newtonsoft.Json;
namespace Develappers.BillomatNet.Api
{
internal class ClientListWrapper : PagedListWra... |
using Microsoft.HandsFree.Keyboard.Model;
using Microsoft.HandsFree.Keyboard.Settings;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Speech.Synthesis;
using System.Threading;
using System.Xml;
namespace Microsoft.HandsFree.Keyboard.ConcreteImplementations
{
internal class TextToAudio... |
namespace SumOfPrimeAndNonPrimeNumbers
{
using System;
class Program
{
static void Main(string[] args)
{
int sumOfPrimeNumbers = 0;
int sumOfNonPrimeNumbers = 0;
while (true)
{
string command = Console.ReadLine();
... |
namespace RumahScarlett.Presentation.Views.GantiPassword
{
partial class GantiPasswordView
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
///... |
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
/... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Enemy_2 : MonoBehaviour
{
public float velocity;
public float offset_camera_x;
private bool change_direction;
private bool static_direction;
private int bounce = 1;
public int bounce_number;
public... |
//------------------------------------------------------------------------------
// <copyright file="XmlAttributeAttribute.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
// <owner current="true" primary="true">Microsoft</owner> ... |
using Core.Providers;
using System.Collections.Concurrent;
namespace Core.Plugins.Providers
{
public class SequenceProvider : ISequenceProvider
{
private readonly ConcurrentDictionary<string, long> _sequences;
public SequenceProvider()
{
_sequences = new ConcurrentDictiona... |
using AnyRate.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace AnyRate.Services
{
public class MockDataStore : IDataStore<Item>
{
readonly List<Item> items;
public MockDataStore()
{
items = new List<Item>()
... |
namespace SecurePages.Tests {
using System;
public class SecurePagesTestBase {
private const string BaseUrl = "http://mock.us/";
private const string BaseUrlSecure = "https://mock.us/";
protected Uri AbsoluteUri(string relativeUrl) {
return new Uri(BaseUrl + CleanR... |
using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
using System.Runtime.Serialization;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using HuaweiCloud.SDK.Core;
namespace HuaweiCloud.SDK.Dns.V2.Model
{
/// <summary>
///
/// </summary>
public class DomainQu... |
using System.Collections.Generic;
/*
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
* under one or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. Camunda licenses this file to you under t... |
using System.Collections.Generic;
namespace CilJs.JSAst
{
class JSRaw : JSExpression
{
public string Value { get; set; }
public override void Emit(Emitter emitter)
{
emitter.EmitMultiLine(Value);
}
public override IEnumerable<JSExpression> GetChildren()
... |
#region Usings
using System;
using JetBrains.Annotations;
#endregion
namespace Extend
{
/// <summary>
/// Class containing some extension methods for <see cref="short" />.
/// </summary>
public static partial class Int32Ex
{
/// <summary>
/// Returns a date-time represent... |
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using BoardGamesApi.Models;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace BoardGamesApi.Data
{
public class GamesRepository : IGamesRepository
{
private IList<Game> _games;
public PagedList... |
using System.Linq;
using System.Security.Claims;
using Bing.Extensions;
using Bing.Helpers;
using Bing.Security.Claims;
namespace System.Security.Principal
{
/// <summary>
/// 声明标识扩展
/// </summary>
public static class BingClaimsIdentityExtensions
{
/// <summary>
/// 查找客户端标识
... |
using System;
namespace PoeHUD.Framework
{
public delegate IntPtr CCHookProc(IntPtr hWnd, UInt16 msg, Int32 wParam, Int32 lParam);
public struct ChooseColor
{
public Int32 lStructSize;
public IntPtr hwndOwner;
public IntPtr hInstance;
public Int32 rgbResult;
public... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection.Emit;
using System.Text;
using Xamarin.Forms;
namespace MonkeyCode.Apps.Urvent.Portable.Views
{
public class LoginPage : ContentPage
{
public LoginPage()
{
}
}
} |
/*
* Copyright 2010-2014 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "l... |
// <auto-generated>
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// </auto-generated>
namespace Microsoft.CognitiveServices.ContentModerator
{
using Microsoft.Rest;
using Models;
using Newtonsoft.Json;
... |
using Application.Core;
using Application.Repository;
using Microsoft.AspNetCore.Mvc;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace Web.Host.Controllers
{
[Route("api/[controller]")]
[ApiController]
public class PersonalInfoController : Controller
{
private readonly... |
using System;
using System.Collections.Generic;
using Tweetinvi.Core.Controllers;
using Tweetinvi.Core.Factories;
using Tweetinvi.Models;
using Tweetinvi.Models.DTO;
using Tweetinvi.Parameters;
namespace Tweetinvi
{
/// <summary>
/// Access and manage all the information related with users.
/// </summary>... |
using UnityEngine;
namespace Fps.WorldTiles
{
[RequireComponent(typeof(BoxCollider))]
public class TileTypeVolume : MonoBehaviour
{
public TileTypeCollection TypeCollection;
private BoxCollider boxCollider;
private void Awake()
{
boxCollider = GetComponent<BoxC... |
using System;
using System.Collections.Generic;
using System.Linq;
using EventStore.Core.Data;
using EventStore.Core.TransactionLog;
using EventStore.Core.TransactionLog.LogRecords;
using NUnit.Framework;
using ReadStreamResult = EventStore.Core.Services.Storage.ReaderIndex.ReadStreamResult;
namespace EventStore.Core.... |
using Diagnostics.Tracing.StackSources;
using global::DiagnosticsHub.Packaging.Interop;
using Graphs;
using Microsoft.Diagnostics.Symbols;
using Microsoft.Diagnostics.Tracing;
using Microsoft.Diagnostics.Tracing.AutomatedAnalysis;
using Microsoft.Diagnostics.Tracing.Etlx;
using Microsoft.Diagnostics.Tracing.EventPipe;
... |
//*******************************************************************************************//
// //
// Download Free Evaluation Version From: https://bytescout.com/download/web-installer //
// ... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#if false
using Azure.Core.TestFramework;
using Azure.ResourceManager.CosmosDB.Models;
using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace Azure.ResourceManager.C... |
// <copyright file="DistributeLogDumpCreator.cs" company="Automate The Planet Ltd.">
// Copyright 2020 Automate The Planet Ltd.
// 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.ap... |
using Content.Server.Explosions;
using Content.Server.GameObjects.EntitySystems;
using Robust.Server.Interfaces.GameObjects;
using Robust.Shared.GameObjects;
using Robust.Shared.Interfaces.GameObjects;
using Robust.Shared.Interfaces.Map;
using Robust.Shared.Interfaces.Random;
using Robust.Shared.IoC;
using Robust.Shar... |
namespace SlugEnt.ProcessQueueManager
{
/// <summary>
/// The status' the engine can be in.
/// </summary>
public enum EnumConcurrentEngineStatus
{
/// <summary>
/// The engine is starting up
/// </summary>
Starting,
/// <summary>
/// Engine is runni... |
// <copyright file="ImageController.cs" company="Godsend Team">
// Copyright (c) Godsend Team. All rights reserved.
// </copyright>
namespace Godsend
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
... |
using Platformerengine.res.code.logic;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Platformerengine.res.game_res.game_code {
class CoinScript : IGameManager {
public GameObject parent { get; set; }
public void End() ... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Diagnostics.Contracts;
using System.Linq;
using... |
using SkyEditor.RomEditor.Infrastructure.Automation.CSharp;
using SkyEditor.RomEditor.Infrastructure.Automation.Lua;
using SkyEditor.RomEditor.Infrastructure;
using System;
using System.Collections.Generic;
namespace SkyEditor.RomEditor.Domain.Rtdx.Constants
{
public class DungeonStatusIndexLuaExpressionGenerator... |
using Bam.Net.Schema.Org.DataTypes;
namespace Bam.Net.Schema.Org.Things
{
///<summary>A listing that describes a job opening in a certain organization.</summary>
public class JobPosting: Intangible
{
///<summary>The base salary of the job or of an employee in an EmployeeRole.</summary>
public OneOfThese<Monetar... |
using System;
using System.Collections.Generic;
using iRSDKSharp;
namespace CrewChiefV4.iRacing
{
[Serializable]
public class DriverSessionResults
{
public DriverSessionResults()
{
this.IsEmpty = true;
this.LastTime = -1;
this.QualifyingPosition = -1;
... |
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.DependencyInjection;
using Moq;
using System;
using System.Collections.Generic;
using System.Linq;
using Discussion.Core.Data;
using Discussion.Core.Models;
using Discussion.Tests.Common;
using Discussion.Tests.Common.AssertionExtensions;
using Discussion.... |
using System.Drawing;
namespace GuruComponents.Netrix.WebEditing.Elements
{
/// <summary>
/// Extended properties IElement could provide.
/// </summary>
public interface IExtendedProperties
{
/// <summary>
/// Current left scroll position.
/// </summary>
int ScrollL... |
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;
names... |
using System.Collections.Generic;
using System.IO;
using GenHTTP.Api.Content;
using GenHTTP.Api.Protocol;
using GenHTTP.Api.Routing;
namespace GenHTTP.Modules.Basics
{
public static class CoreExtensions
{
#region Request
public static bool HasType(this IRequest request, params RequestMetho... |
using System;
using System.Collections.Generic;
namespace WaterTrans.DailyReport.Application.DataTransferObjects
{
/// <summary>
/// 従業員更新DTO
/// </summary>
public class PersonUpdateDto
{
/// <summary>
/// 従業員ID
/// </summary>
public Guid PersonId { get; set; }
... |
using System;
using System.ComponentModel.DataAnnotations;
using System.Globalization;
namespace ConditionalModelValidation {
public class RequiredIfNotEqualsAttribute : ValidationAttribute {
public string OtherPropertyName { get; private set; }
public string OtherPropertyDisplayName { get; set; }
public obje... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
using Microsoft.OData.Edm;
using System.Threading;
using System.Threading.Tasks;
namespace Microsoft.Restier.Core
{
/// <summary>
/// Represents a con... |
// c:\program files (x86)\windows kits\10\include\10.0.18362.0\um\d3dtypes.h(1818,5)
using System;
using System.Runtime.InteropServices;
namespace DirectN
{
[StructLayout(LayoutKind.Sequential, Pack = 4)]
public partial struct _D3DLINE__union_1
{
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 2)... |
//AppSettingsSample C# sample, flattened to one file for Parsnip.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Configuration;
using System.Windows.Forms;
namespace AppSettingsSample
{
static class Program
{
/// <summary>
///... |
using Microsoft.AspNetCore.Mvc;
using NJsonSchema.Annotations;
namespace Tzkt.Api
{
[ModelBinder(BinderType = typeof(SortBinder))]
[JsonSchemaExtensionData("x-tzkt-extension", "query-parameter")]
public class SortParameter
{
/// <summary>
/// **Ascending** sort mode (optional, i.e. `so... |
using MTGAHelper.Entity;
using System.Collections.Generic;
namespace MTGAHelper.Web.Models.Response.User
{
public class UserCustomScraperListResponse
{
public ICollection<ScraperDto> ScrapersByType { get; set; }
public UserCustomScraperListResponse(ICollection<ScraperDto> scrapers)
{
... |
using System.Collections.Generic;
using Newtonsoft.Json;
using RippleDotNet.Json.Converters;
using RippleDotNet.Model.Transaction.Interfaces;
namespace RippleDotNet.Model.Transaction.TransactionTypes
{
public class AccountDeleteTransaction : TransactionCommon, IAccountDeleteTransaction
{
public Accoun... |
using System.Collections.Generic;
using Lucene.Net.Analysis.Util;
namespace Lucene.Net.Analysis.Miscellaneous
{
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyr... |
using System.Collections.Generic;
using Microsoft.AspNetCore.Mvc.ModelBinding;
using Microsoft.AspNetCore.Mvc.Rendering;
namespace ThisNetWorks.OrchardCore.CKEditor.ViewModels
{
public class HtmlBodyPartCKEditorClassicSettingsViewModel
{
public string SelectedConfigurationName { get; set; }
[Bi... |
//
// Copyright (C) 2018-2019 Authlete, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law ... |
using System;
namespace ChatdollKit.Extension.Azure
{
public class AzureLanguage
{
public string Name { get; set; }
public string SpeechCode { get; set; }
public string SpeakerName { get; set; }
public string SpeakerGender { get; set; }
public string TranslationCode { g... |
using System.Buffers;
namespace Stl.Pooling;
public static class ArrayPoolExt
{
public readonly struct ArrayPoolLease<T> : IDisposable
{
public readonly ArrayPool<T> Pool;
public readonly T[] Array;
public ArrayPoolLease(ArrayPool<T> pool, int size)
{
Pool = pool;
... |
#pragma warning disable 162,168,649,660,661,1522
using Trinity;
using Trinity.TSL;
namespace TDW.VDAServer
{
public static class Storage_CellType_Extension
{
/// <summary>
/// Tells whether the cell with the given id is a TRACredential_Cell.
/// </summary>
/// <param nam... |
//Copyright © 2014 Sony Computer Entertainment America LLC. See License.txt.
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Drawing.Printing;
using Sce.Atf;
using Sce.Atf.Adaptation;
using Sce.Atf.Applications;
using Sce.Atf.Controls.Adaptable;
using Sce.Atf.Dom;
namespace FsmEditorSample
{
... |
// System.Reflection.Emit.ILGenerator.BeginExceptFilterBlock()
// System.Reflection.Emit.ILGenerator.BeginFinallyBlock()
/*
The following program demonstrates the 'BeginExceptFilterBlock()' method and
'BeginFinallyBlock()' of 'ILGenerator' class. Exception is raised by passing
two integer values which are ou... |
/*
* Copyright (c) 2006-2016, openmetaverse.co
* All rights reserved.
*
* - Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* - Redistributions of source code must retain the above copyright notice, this
* lis... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography.X509Certificates;
using System.Web;
using System.Web.Http;
using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;
using WebApiResourcesServer.Code;
namespace WebApiResourcesServer
{
public... |
using Xunit;
using WordCounter.Objects;
namespace WordCounter
{
public class RepeatCounterTest
{
[Fact] //Test 1
public void CountRepeats_ForNoMatch_true()
{
// arrange
int expectedResult = 0;
RepeatCounter newCounter = new RepeatCounter("horse", "cow");
// act
int result... |
// 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.Concurrent;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Reflection;
using System.R... |
@model string
<div class="row">
<div class="col-md-12">
<ul class="nav nav-tabs">
<li role="presentation"
class="@(Model == "Biobanks" ? "active" : "true")">
@Html.ActionLink("Biobanks", "Biobanks")
</li>
<li role="presentation"
... |
using System;
using System.Collections.Generic;
using System.Text;
namespace Apskaita5.DAL.Common.MicroOrm
{
/// <summary>
/// describes how a business object audit property (field) for "last updated by user" is persisted in a database;
/// should be added to a business type as a static field
/// </su... |
namespace QuizExperiment.Models
{
public static class PositionSuffixExtension
{
public static string GetSuffix(this int position)
{
return position switch
{
1 => "st",
2 => "nd",
3 => "rd",
_ => "th"
... |
using Ireckonu.Application.Domain.Common;
using Ireckonu.Application.Domain.ProductAggregate;
using Ireckonu.Application.Services.Converters;
using Ireckonu.Application.Services.FileStorage;
using MediatR;
using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
using Syst... |
// ------------------------------------------------------------------------------
// <auto-generated>
// Generated by Xsd2Code. Version 3.4.0.18239 Microsoft Reciprocal License (Ms-RL)
// <NameSpace>Mim.V6301</NameSpace><Collection>Array</Collection><codeType>CSharp</codeType><EnableDataBinding>False</EnableDat... |
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information.
using System.Collections.Immutable;
using System.IO;
using System.Linq;
namespace Microsoft.CodeAnalysis.Tools.Utilities
{
internal static class EditorConfigFinder
... |
using System;
using System.Xml.Serialization;
using System.ComponentModel.DataAnnotations;
using BroadWorksConnector.Ocip.Validation;
using System.Collections.Generic;
namespace BroadWorksConnector.Ocip.Models
{
/// <summary>
/// Get a list of collaborate bridges within a group.
/// The response is either ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.