text stringlengths 1 932k |
|---|
using System;
using Newtonsoft.Json;
namespace TdLib
{
/// <summary>
/// Autogenerated TDLib APIs
/// </summary>
public partial class TdApi
{
/// <summary>
/// The list of installed sticker sets was updated
/// </summary>
public partial class Update : Object
... |
// <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 code is
// re... |
using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("Common.Tests")]
[assembly: AssemblyProduct("Common.Tests")]
[assembly: AssemblyCopyright("© 2019 zorgesho")]
[assembly: ComVisible(false)]
[assembly: AssemblyVersion("1.0.0.0")] |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using HyoutaUtils;
namespace HyoutaTools.Tales.DestinyRemake.MglkExtract {
class MGLK {
public byte[] Mglk;
public ushort NumberOfExtraSectionsPlus2;
public ushort NumberOfExtraSections;
public uint[] Poi... |
using System.Collections.Generic;
using System.ComponentModel;
using GeneticSharp.Domain.Randomizations;
using System.Linq;
namespace GeneticSharp.Domain.Mutations
{
/// <summary>
/// Partial Shuffle Mutation (PSM).
/// <remarks>
/// In the partial shuffle mutation operator, we take a sequence S limited by two... |
using UnityEngine;
using UnityEditor;
using System.Collections;
using System;
namespace ShaderForge {
[System.Serializable]
public class SFN_VectorProjection : SF_Node_Arithmetic {
public SFN_VectorProjection() {
}
public override void Initialize() {
base.Initialize( "Vector Project." );
base.Prepa... |
using Melanchall.DryWetMidi.Common;
using Melanchall.DryWetMidi.Core;
using System;
using System.Collections.Generic;
using System.Linq;
namespace Melanchall.DryWetMidi.Tools
{
public static partial class Splitter
{
#region Methods
/// <summary>
/// Splits <see cref="MidiFile"/> by ch... |
// 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.
#nullable disable
using System.Collections;
using System.Collections.Specialized;
using System.ComponentModel;
usi... |
using ScreenToGif.Properties;
namespace ScreenToGif.Pages
{
partial class GifSettings
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being use... |
using UnityEngine;
using System;
using System.Collections;
using System.Net;
using System.Net.Sockets;
using System.Text;
using System.Threading;
using System.Collections.Generic;
public class HttpPackage {
public string error {
get {
if(overTime) {
return "http request over time";
} else {
return w.e... |
using System.ComponentModel;
namespace JikanDotNet
{
/// <summary>
/// Enumeration for anime types (search config).
/// </summary>
public enum AnimeType
{
/// <summary>
/// Allow all types to be displayed in results.
/// </summary>
[Description("")]
EveryType,
/// <summary>
/// TV series.
/// </... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;... |
using System;
using System.Runtime.InteropServices;
using System.Security;
namespace LibVLCSharp.Shared.Structures
{
/// <summary>
/// <para>Description for audio output. It contains</para>
/// <para>name, description and pointer to next record.</para>
/// </summary>
public unsafe partial class Au... |
using System.ComponentModel;
using System.Linq;
using BenchmarkDotNet.Attributes;
using Microsoft.EntityFrameworkCore;
using RepoDb.Benchmarks.Models;
using RepoDb.Benchmarks.SqlServer.Setup;
namespace RepoDb.Benchmarks.SqlServer
{
[Description("EFCore 3.1.7")]
public class EFCoreBenchmarks : BaseBenchmark
... |
using Microsoft.EntityFrameworkCore.Migrations;
namespace LessonMonitor.DataAccess.MSSQL.Migrations
{
public partial class ReworkKeyValues : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropPrimaryKey(
name: "PK_Homewo... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Http;
using CSFileIOWithDBASPNETCore.Models;
using System.IO;
using System.Drawing;
// For more information on enabling MVC for empty projects, visit https://go.m... |
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Game.Beatmaps;
using osu.Game.IO;
namespace osu.Game.Tests.Editing.Checks
{
public static class CheckTestHelpers
{
public static BeatmapSetFile... |
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using Discord.Commands;
namespace Discord.Addons.SimpleAudio
{
[AttributeUsage(AttributeTargets.Parameter, AllowMultiple = false, Inherited = true)]
public sealed class RangeAttribute : ParameterPreconditionAttrib... |
// ----------------------------------------------------------------------------------
//
// Copyright Microsoft 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 the License at
// http://www.apa... |
//
// (C) Copyright 2004 by Autodesk, Inc.
//
// Permission to use, copy, modify, and distribute this software in
// object code form for any purpose and without fee is hereby granted,
// provided that the above copyright notice appears in all copies and
// that both that copyright notice and the limited warranty an... |
// CodeContracts
//
// Copyright (c) Microsoft Corporation
//
// All rights reserved.
//
// MIT License
//
// 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 wit... |
@model CustomerCustomerDemoItemModel
@{
ViewBag.Title = AppHelper.PageTitle(CustomerCustomerDemoResources.EntitySingular, PresentationResources.Delete);
AjaxOptions ajaxOptions = new AjaxOptions()
{
HttpMethod = "POST",
InsertionMode = InsertionMode.Replace,
OnFailure = "ajaxFailu... |
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Runtime.CompilerServices;
internal class Test
{
[MethodImplAttribute(MethodImplOptions.NoInlining)]
private static string FooBar()
... |
using Autofac;
using Autofac.Integration.Mvc;
using Autofac.Integration.WebApi;
using Course.RESTapi.Infrastructure;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Web;
using System.Web.Http;
using System.Web.Mvc;
namespace Course.RESTapi.Web.App_Start
{
pu... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class FanAnimation : MonoBehaviour
{
public GameObject fanBladesObject;
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
... |
using System.Reflection;
using NodeCanvas.Framework;
using NodeCanvas.Framework.Internal;
using ParadoxNotion;
using ParadoxNotion.Design;
using ParadoxNotion.Serialization;
using ParadoxNotion.Serialization.FullSerializer;
using UnityEngine;
using System.Linq;
namespace NodeCanvas.Tasks.Actions
{
//previous ver... |
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Text;
namespace AllPaySDK.Flutterwave.Transfers.Responses
{
public class MPesaMobileMoneyTransferResponse
{
public class Datum
{
public int id { get; set; }
public string account_number ... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
namespace MvvmDialogs.Wpf.FrameworkDialogs.Utils;
public static class DialogSettings
{
public static readonly string[] ExcludedPropertyNames =
{
"Container",
"RestoreDirectory",
"Site",
... |
// CodeContracts
//
// Copyright (c) Microsoft Corporation
//
// All rights reserved.
//
// MIT License
//
// 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 wit... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using Azure.Core.TestFramework;
namespace Azure.Data.Tables.Tests
{
public class TablesTestEnvironment : TestEnvironment
{
public TablesTestEnvironment() : base("tables")
{
}
// Sto... |
using Newtonsoft.Json;
using BESL.Infrastructure.SteamWebAPI2.Utilities.JsonConverters;
using System.Collections.Generic;
namespace BESL.Infrastructure.SteamWebAPI2.Models.SteamCommunity
{
internal class GlobalStat
{
public string Name { get; set; }
public uint Total { get; set; }
}
i... |
// The MIT License (MIT)
//
// Copyright (c) Andrew Armstrong/FacticiusVir 2020
//
// 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.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Contracts;
namespace VersatileFileComparerHost.Implementation
{
/// <summary>
/// Implements the IO operations on a simple layer.
/// May cache read file streams if re... |
using UnityAudioManager;
using UnityAudioManager.Managers;
using UnityEngine;
/// <summary>
/// Akasha triggers namespace
/// </summary>
namespace Akasha.Triggers
{
/// <summary>
/// Apply audio volume settings trigger script class
/// </summary>
public class ApplyAudioVolumeSettingsTriggerScript : Mo... |
#pragma warning disable 1591
//------------------------------------------------------------------------------
// <auto-generated>
// 이 코드는 도구를 사용하여 생성되었습니다.
// 런타임 버전:4.0.30319.42000
//
// 파일 내용을 변경하면 잘못된 동작이 발생할 수 있으며, 코드를 다시 생성하면
// 이러한 변경 내용이 손실됩니다.
// </auto-generated>
//----------------------------... |
using Xalendar.Sample.ViewModels;
using Xamarin.Forms;
namespace Xalendar.Sample.Views
{
public partial class AddingEvents : ContentPage
{
public AddingEvents()
{
InitializeComponent();
BindingContext = new AddingEventsViewModel();
}
}
} |
//
// UndoManager.cs
//
// Author:
// Aaron Bockover <abockover@novell.com>
//
// Copyright (C) 2007 Novell, Inc.
//
// 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, ... |
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
using System;
using System.Buffers;
using System.Runtime.CompilerServices;
using SixLabors.ImageSharp.Memory;
namespace SixLabors.ImageSharp.Formats.Png.Zlib
{
/// <summary>
/// Stores pending data for writing data to the Deflater... |
namespace ClassLib072
{
public class Class019
{
public static string Property => "ClassLib072";
}
} |
// Copyright 2022 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 ... |
@using Microsoft.AspNet.Identity
@model WMSUCPECS.Models.ManageUserViewModel
<p>You're logged in as <strong>@User.Identity.GetUserName()</strong>.</p>
@using (Html.BeginForm("Manage", "Account", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
{
@Html.AntiForgeryToken()
<h4>Change Passwor... |
namespace ReinGeneralFixes
{
using System;
using System.Collections.Generic;
using System.Reflection;
using BF = System.Reflection.BindingFlags;
using EntityStates;
using Mono.Cecil.Cil;
using MonoMod.Cil;
using ReinCore;
using RoR2;
using UnityEngine;
using EntityStat... |
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Vigente.Web.Application.ViewModels;
namespace BibliotecaVirtual.Application.Interfaces
{
public interface IUserPermissionService : IBaseService, IDisposable
{
/// <summary>
/// Realiza uma pesquisa por usuários... |
// 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.Composition;
using Microsoft.CodeAnalysis.Editor.GoToDefinition;
using Microsoft.CodeAna... |
namespace SimpleAuthentication.ExtraProviders.Instagram
{
public class AccessTokenResult
{
public string AccessToken { get; set; }
}
} |
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CommonLab
{
public class CsvHelper
{
public static void SaveCSV(DataTable dt, string fullPath)//table数据写入csv
{
System.IO.FileInfo fi = ... |
using System;
namespace ReservationsServer.Logging
{
internal sealed class ConsoleLogger
: FileLogger, ILogger
{
internal ConsoleLogger(ILogger decoratedLogger = null)
: base(Console.Out, decoratedLogger)
{
_decoratedLogger = decoratedLogger;
}
internal static ILogger Instance
{
get
{
lo... |
using UnityEngine;
using UnityUI = UnityEngine.UI;
using TR = OpenTibiaUnity.TextResources;
namespace OpenTibiaUnity.Modules.Options
{
[DisallowMultipleComponent]
public class LegacyOptionsWidget : UI.Legacy.PopUpBase
{
[SerializeField]
private LegacyOptionsWidgetItem _legacyOptionsWidget... |
/**
* Copyright 2018, 2019 IBM Corp. 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
*
* Unless required by applicable... |
using System;
namespace Tests.Configuration
{
public class EnvironmentConfiguration : TestConfigurationBase
{
public EnvironmentConfiguration(YamlConfiguration yamlConfiguration)
{
Mode = Environment.GetEnvironmentVariable("NEST_INTEGRATION_TEST") != null ? TestMode.Integration : TestMode.Unit;
ClusterFi... |
/*
* Copyright 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 "license" fi... |
namespace Microsoft.eShopOnContainers.WebMVC;
public class Startup
{
public Startup(IConfiguration configuration)
{
Configuration = configuration;
}
public IConfiguration Configuration { get; }
// This method gets called by the runtime. Use this method to add services to the IoC containe... |
using System;
using System.Collections.Generic;
using System.Text;
namespace TCC.Models
{
public class BrandsDatabaseSettings : IBrandsDatabaseSettings
{
public string BrandsCollectionName { get; set; }
public string ConnectionString { get; set; }
public string DatabaseName { get; set;... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.ApplicationModel;
using Windows.ApplicationModel.Activation;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xaml... |
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
using System;
using System.Collections.Generic;
#nullable disable
namespace T0001
{
public partial class BaseCargospaceCx
{
public string Id { get; set; }
public string Cpositioncode { get; set; }
... |
/* Copyright (c) 2006, NIF File Format Library and Tools */
// THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT EDIT! //
// To change this file, alter the generate_cs.py Python script.
//-----------------------------------NOTICE----------------------------------//
// Only add custom code in the designated areas to preser... |
using System.Windows.Controls;
namespace BudgetAnalyser.LedgerBook
{
/// <summary>
/// Interaction logic for LedgerBucketHistoryUserControl.xaml
/// </summary>
public partial class LedgerBucketHistoryUserControl : UserControl
{
public LedgerBucketHistoryUserControl()
{
... |
// Copyright (c) Alexandre Mutel. All rights reserved.
// This file is licensed under the BSD-Clause 2 license.
// See the license.txt file in the project root for more information.
using System;
using System.Collections.Generic;
namespace Markdig.Syntax
{
/// <summary>
/// Contains all the <see cref="LinkRe... |
/*
* Copyright 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 "license" fi... |
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis;
using Roslyn.Utilities;
namespace Pchp.CodeAnalysis.Symbols
{
class SynthesizedFieldSymbol : FieldSymbol
{
readonly Name... |
using LZLTetris;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
namespace WindowsTableControl
{
/// <summary>表格控件的子控件父类
///
/// </summary>
public class TableControl
{
/// <summary>创建对象并给当前对象的所有属性赋值
///
/// </sum... |
namespace P01_Logger.Controllers
{
using System;
using System.Linq;
using System.Text;
using Enums;
using Factories;
using Loggers;
public class ConsoleController
{
private readonly Logger logger;
private readonly LayoutFactory layoutFactory;
private readonly Ap... |
using DevExpress.Xpo;
namespace XpoRecoverDeleted
{
public class DetailObject : XPObject
{
public DetailObject(Session session) : base(session)
{
}
private MasterObject master;
[Association]
public MasterObject Master
{
get { return master... |
namespace Merchello.Core.Persistence.Repositories
{
using System;
using Merchello.Core.Models.EntityBase;
using Merchello.Core.Persistence.Querying;
using Umbraco.Core.Persistence;
/// <summary>
/// Defines a repository the has static collections.
/// </summary>
/// <typeparam name="... |
namespace DemoApp
{
using Microsoft.EntityFrameworkCore;
public class ApplicationDbContext : DbContext
{
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{
optionsBuilder.UseSqlServer(@"Server=DESKTOP-NN6P8LO\SQLEXPRESS01;Database=DemoApp;Integrated... |
@using Fridge.Api.Areas.HelpPage.ModelDescriptions
@model ComplexTypeModelDescription
@Html.DisplayFor(m => m.Properties, "Parameters") |
using System;
using System.ComponentModel;
using System.Linq;
using Frapid.Mapper.Extensions;
namespace Frapid.Mapper.Helpers
{
public static class TypeConverter
{
public static object Convert(object value, Type destType)
{
if (destType == typeof(string))
{
... |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的常规信息通过下列属性集
// 控制。更改这些属性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("NotesMap")]
[assembly: AssemblyDescription("NotesMap")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: A... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentAssertions;
using NUnit.Framework;
using SFA.DAS.Campaign.Domain.Content.HtmlControl;
using SFA.DAS.Campaign.Infrastructure.Api.Converters;
using SFA.DAS.Campaign.Infrastructure.Api.Factory;
using SFA.DAS.Campaign.UnitTes... |
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace Orchard.Layouts.Helpers {
public static class JsonHelper {
public static string ToJson(this object value, Formatting formatting = Formatting.None) {
return value != null ? JObject.FromObject(value).ToString(formatting) : def... |
/////////////////////////////////////////////////////////////////////////////////
// Paint.NET //
// Copyright (C) Rick Brewster, Tom Jackson, and past contributors. //
// Portions Copyright (C) Microsoft Corporation. All Rights Reserved. ... |
using System.Drawing;
namespace ScottPlot.MarkerShapes
{
public struct FilledTriangleUp : IMarker
{
public void Draw(Graphics gfx, PointF center, float size, Brush brush, Pen pen)
{
PointF[] points = MarkerTools.TriangleUpPoints(center, size);
gfx.FillPolygon(brush, poi... |
namespace Bug.Models.TokenAuth
{
public class AuthenticateResultModel
{
public string AccessToken { get; set; }
public string EncryptedAccessToken { get; set; }
public int ExpireInSeconds { get; set; }
public long UserId { get; set; }
}
} |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link href="/Content/css/bootstrap.min.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="/Content/css/styles.css" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Fjalla+One" rel="stylesheet">
<title>Scrabbl... |
using System.Collections.Generic;
//using NUnit.Framework;
using YKFramwork.ResMgr.Utils;
namespace YKFramwork.ResMgr.VersionCtrl
{
public class Version
{
public class ABInfo
{
public string name;
public string sha1;
public long size;
}
... |
namespace Edi.AvalonEdit.Highlighting
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Windows;
using System.Xml;
using ICSharpCode.AvalonEdit.Highlighting;
using ICSharpCode.AvalonEdit.Highlighting.Xshd;
/// <summary>
//... |
using MongoDB.Driver.GeoJsonObjectModel;
using System;
using System.Collections.Generic;
namespace SCNDISC.Server.Domain.Aggregates.Partners
{
public class Branch : Aggregate
{
public IEnumerable<LocalizableText> Description { get; set; }
public IEnumerable<LocalizableText> Address { get; set;... |
using System.Collections.Generic;
using System.Collections.ObjectModel;
namespace Apress.WebApi.Recipes.Areas.HelpPage.ModelDescriptions
{
public class EnumTypeModelDescription : ModelDescription
{
public EnumTypeModelDescription()
{
Values = new Collection<EnumValueDescription>();
... |
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Threading;
using System.Threading.Task... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;... |
using System.Collections.Generic;
using System.ComponentModel;
using System.Workflow.ComponentModel;
using Bio.Algorithms.Alignment;
using Bio.SimilarityMatrices;
using Microsoft.Research.ScientificWorkflow;
namespace Bio.Workflow
{
/// <summary>
/// This activity creates an alignment object of the alignment ... |
namespace CSharpAlgo.Graph.Flow
{
using System.Collections.Generic;
public class BiPartiteGraph
{
public static bool IsGraphBipartite(List<int>[] graph)
{
int n = graph.Length;
int[] color = new int[n];
Queue<int> queue = new Queue<int>();
qu... |
using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Nucleo.Orm.Validation.Discovery
{
[TestClass]
public class ValidationRuleTargetDiscoveryStrategyTest
{
protected class TestRule1 : IValidationRule
{
public voi... |
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** 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;
namespace Pulumi.Azur... |
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Abp.Authorization.Roles;
using Abp.AutoMapper;
using TestProject.Authorization.Roles;
namespace TestProject.Roles.Dto
{
[AutoMapTo(typeof(Role))]
public class CreateRoleDto
{
[Required]
[StringLength(AbpRol... |
/*
* 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... |
using System;
using System.Linq;
using System.Collections.Generic;
using Qkmaxware.Astro.Coordinates;
using Qkmaxware.Measurement;
namespace Qkmaxware.Astro.Celestia {
public static partial class StarCatalogue {
private static void _addHipparcos_89() {
_Hipparcos.Add(
new Star(
primaryId: "HIP 108338",
se... |
//-----------------------------------------------------------------------
// <copyright file="ExtensionSpecificError.cs" company="Beckhoff Automation GmbH & Co. KG">
// Copyright (c) Beckhoff Automation GmbH & Co. KG. All Rights Reserved.
// </copyright>
//----------------------------------------------------------... |
// ReSharper disable InconsistentNaming
namespace SharpWildmatch
{
public static class Wildmatch
{
private static MatchResult DoWild(CharPointer p, CharPointer text, MatchFlags flags)
{
char p_ch;
var pattern = p;
for ( ; (p_ch = p.Value) != '\0'; text = tex... |
using Microsoft.EntityFrameworkCore;
namespace Tetas.Web.Controllers
{
using Microsoft.AspNetCore.Mvc;
using Models;
using Repositories.Contracts;
using System.Diagnostics;
using System.Linq;
public class HomeController : Controller
{
private readonly IPost _postRepository;
... |
// Copyright (c) Justin Fouts All Rights Reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using Clearly.Core;
using Clearly.Crud.JsonLd;
using Clearly.Crud.Search;
using Microsoft.AspNetCore.Mvc;
namespace Clearly.Crud.RestApi;
[GenericEntityController]
[Route("ap... |
@model Romontinka.Server.WebSite.Models.User.JLookupUserSearchModel
@Html.EditorFor(m=>m.Name) |
using System.Collections.Generic;
using Element.AST;
namespace Element
{
/// <summary>
/// Contains the status of the compilation process including call stack and logging messages.
/// </summary>
public class CompilationContext : Context
{
public CompilationContext(GlobalScope globalScope, ... |
/*
* Copyright 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 "license" fi... |
using System.Collections.Generic;
namespace NetFabric.Hyperlinq.UnitTests
{
class TestComparer<T> : IEqualityComparer<T>
{
TestComparer() { }
public static TestComparer<T> Instance { get; } = new TestComparer<T>();
public bool Equals(T x, T y)
=> EqualityComparer<T>.Defa... |
// Copyright (c) Microsoft and contributors. 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
//
// Unless required by... |
using FluentSerializer.Core.TestUtils.Extensions;
using FluentSerializer.Core.TestUtils.Helpers;
using FluentSerializer.Core.Text;
using FluentSerializer.Xml.DataNodes;
using FluentSerializer.Xml.DataNodes.Nodes;
using Xunit;
using static FluentSerializer.Xml.XmlBuilder;
namespace FluentSerializer.Xml.Tests.Tests.Dat... |
// <copyright file="PropertyFetcher.cs" company="OpenTelemetry Authors">
// Copyright The OpenTelemetry Authors
//
// 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.apach... |
using System;
using System.Collections.Generic;
using System.Linq;
namespace Eager_Lazy_Loading
{
class Program
{
static void Main(string[] args)
{
using (Eager_Lazy_LoadingEntities db = new Eager_Lazy_LoadingEntities())
{
// Disabling lazy loading
... |
#if USE_UNI_LUA
using LuaAPI = UniLua.Lua;
using RealStatePtr = UniLua.ILuaState;
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
#else
using LuaAPI = XLua.LuaDLL.Lua;
using RealStatePtr = System.IntPtr;
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
#endif
using XLua;
using System.Collections.Generic;
name... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.