max_stars_repo_path stringlengths 3 255 | max_stars_repo_name stringlengths 5 116 | max_stars_count int64 0 107k | id stringlengths 1 7 | content stringlengths 63 1.05M |
|---|---|---|---|---|
Trader.Trading/TraderOptions.cs | JorgeCandeias/Trader | 13 | 7041602 | <reponame>JorgeCandeias/Trader
using Outcompute.Trader.Trading.Algorithms;
using System.ComponentModel.DataAnnotations;
namespace Outcompute.Trader.Trading;
public class TraderOptions
{
[Required]
[Range(typeof(TimeSpan), "0.00:00:00.001", "1.00:00:00.000")]
public TimeSpan BatchTickDelay { get; set; } =... |
ASPPatterns.core/Chapter02/Tests/Mocks/MockCacheStorage.cs | codeyu/ASPNETCore-Design-Patterns | 4 | 7041603 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Service;
namespace Tests.Mocks
{
public class MockCacheStorage : ICacheStorage
{
private int _retrievedFromCacheCount = 0;
private Dictionary<string, object> _cacheStorage = new Dictionary<... |
Programming with C#/2. C# Fundamentals II/01. Arrays/20. Variations/Variations.cs | elena-andonova/telerik-academy | 2 | 7041605 | /*
* 20. Write a program that reads two numbers N and K and generates
* all the variations of K elements from the set [1..N].
* Example: N = 3, K = 2 -> {1, 1}, {1, 2}, {1, 3}, {2, 1}, {2, 2}, {2, 3}, {3, 1}, {3, 2}, {3, 3}
*/
using System;
using System.Linq;
class Variations
{
static void Main()
{
... |
src/App.Service/Applications/EnvironmentService.cs | appconfi/appconfi-web | 0 | 7041606 | using App.Domain;
using App.Domain.ActivityLogs;
using App.Service.Accounts;
using App.Service.Applications.Policies;
using App.Service.Common;
using App.SharedKernel.Guards;
using App.SharedKernel.Repository;
using App.SharedKernel.Specifications;
using System;
using System.Collections.Generic;
using System.Threading... |
SsorinBackupSystem/FileData.cs | Sashanator/SsorinBackupSystem | 0 | 7041607 | <reponame>Sashanator/SsorinBackupSystem
using System;
namespace LabWork_4__REWORKED_
{
public class FileData
{
public string FilePath { get; set; }
public double FileSize { get; set; }
public DateTime FileDate { get; set; }
public FileData(string path, double size, DateTime da... |
src/Squidex/Controllers/Api/Statistics/Models/CurrentStorageDto.cs | andrewhoi/squidex | 0 | 7041608 | // ==========================================================================
// CurrentStorageDto.cs
// Squidex Headless CMS
// ==========================================================================
// Copyright (c) Squidex Group
// All rights reserved.
// =====================================================... |
dotnet/src/Carbonfrost.Commons.Hxl/HxlCompiler.cs | Carbonfrost/f-hxl | 0 | 7041609 | <reponame>Carbonfrost/f-hxl
//
// Copyright 2013, 2016 Carbonfrost Systems, Inc. (http://carbonfrost.com)
//
// 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/l... |
Assets/Scripts/Utilities/HTML/XmlUtil.cs | Bigbossbro08/SanAndreasUnity | 35 | 7041610 | <filename>Assets/Scripts/Utilities/HTML/XmlUtil.cs<gh_stars>10-100
using System;
using System.Text;
using System.Xml;
public static class XmlUtil
{
public static string SanitizeXML(string textIn)
{
StringBuilder textOut = new StringBuilder(); // Used to hold the output.
char current; // Used t... |
SmogonParser.NET/Parsers/Smogon/Json/Response/SmogonResponse.cs | DrSmugleaf/Smogon-Parser.NET | 0 | 7041611 | <filename>SmogonParser.NET/Parsers/Smogon/Json/Response/SmogonResponse.cs
using System;
using System.Collections.Immutable;
using System.Text.Json.Serialization;
using JetBrains.Annotations;
using SmogonParser.NET.Parsers.Smogon.Json.Ability;
using SmogonParser.NET.Parsers.Smogon.Json.Format;
using SmogonParser.NET.Pa... |
12.XML Processing/StudentsXML/Student.cs | SonicTheCat/Databases-Advanced---Entity-Framework | 1 | 7041612 | namespace StudentsXML
{
using System;
using System.Xml.Serialization;
[XmlType("student")]
public class Student
{
[XmlElement("name")]
public string Name { get; set; }
[XmlElement("gender")]
public string Gender { get; set; }
[XmlElement("birthdate")]
... |
Assets/Scripts/LifeM/Life/Bulid/BuilldingTrap/Building9997.cs | 741645596/batgame | 0 | 7041613 | <filename>Assets/Scripts/LifeM/Life/Bulid/BuilldingTrap/Building9997.cs
using UnityEngine;
using System.Collections;
/// <summary>
/// 空陷阱房间
/// </summary>
/// <author>TXM</author>
public class Building9997 : Building {
}
|
04C#UnitTesting&DesignPatterns/02-UnitTestOldExams/Exam_2017/AcademyPackageManager/PackageManager.Tests/Repositories/PackageRepositoryTests/Update_Should.cs | dobri19/TelerikHomeWork | 0 | 7041614 | using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq;
using PackageManager.Info.Contracts;
using PackageManager.Models.Contracts;
using PackageManager.Repositories;
using System;
using System.Collections.Generic;
namespace PackageManager.Tests.Repositories.PackageRepositoryTests
{
[TestClass]
public ... |
test/FunctionalTests/Tests/CommonTestUtil/ODataRequestMessageSimulator.cs | Sreejithpin/odata.net | 629 | 7041615 | //---------------------------------------------------------------------
// <copyright file="ODataRequestMessageSimulator.cs" company="Microsoft">
// Copyright (C) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
// </copyright>
//------------------------... |
src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/IXpsSerializationManager.cs | KodamaSakuno/wpf | 5,937 | 7041616 | // 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.Printing;
namespace System.Windows.Xps.Serialization
{
/// <summary>
/// This i... |
GUI.cs | All-Ki/ffxiv-chat-extender | 0 | 7041617 | <filename>GUI.cs
using System;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Collections.Generic;
using Dalamud.Game.Chat;
using Dalamud.Game.Chat.SeStringHandling;
using Dalamud.Plugin;
using Dalamud.Game.Command;
using IvanAkcheurov.NTextCat.Lib;
using Yandex;
using ImGuiNET;
using... |
ArxOne.Ftp/ProtocolMessageEventArgs.cs | Avlaak/FTP | 44 | 7041618 | <filename>ArxOne.Ftp/ProtocolMessageEventArgs.cs<gh_stars>10-100
#region Arx One FTP
// Arx One FTP
// A simple FTP client
// https://github.com/ArxOne/FTP
// Released under MIT license http://opensource.org/licenses/MIT
#endregion
namespace ArxOne.Ftp
{
using System;
/// <summary>
/// EventArgs for proto... |
Memoria.DisciplesLiberation/Shared/Core/GameSpeedControl.cs | Albeoris/Memoria.DisciplesLiberation | 0 | 7041619 | <gh_stars>0
using System;
using Memoria.Disciples.IL2CPP;
using UnityEngine;
namespace Memoria.Disciples.Core
{
public sealed class GameSpeedControl
{
public GameSpeedControl()
{
}
private Boolean _isDisabled;
private Boolean _isToggled;
private Single _speedFa... |
data/train/csharp/30e04c85ec4ca3f73eab27765cc4422d52bd2a80ChunkManager.cs | aliostad/deep-learning-lang-detection | 84 | 7041620 | <reponame>aliostad/deep-learning-lang-detection
using Microsoft.Xna.Framework;
using SSGL.Core;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace SSGL.Voxel
{
public class ChunkManager
{
public List<Chunk> Chunks;
public List<Chunk> ChunkLoadList;
... |
src/ResourceManagement/Sql/Generated/Models/SyncMemberState.cs | avantida/azure-libraries-for-net | 365 | 7041621 | <reponame>avantida/azure-libraries-for-net<filename>src/ResourceManagement/Sql/Generated/Models/SyncMemberState.cs
// <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 M... |
NetrixDemo/FormsLib/WindowsFormsAero/WindowsFormsAeroShowcase/GlassForm.cs | apircher/netrix | 27 | 7041622 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace WindowsFormsAero.Demo
{
public partial class GlassForm : AeroForm
{
public GlassForm()
{
InitializeComponen... |
LitRedis.Core/Models/RequestLockModel.cs | firebend/lit-redis | 2 | 7041623 | using System;
namespace LitRedis.Core.Models
{
public class RequestLockModel
{
/// <summary>
/// Gets or sets a value indicating the key to lock on.
/// </summary>
public string Key { get; set; }
/// <summary>
/// Gets or sets a value indicating how long to wait... |
src/BuildIt.Data.Sqlite/Samples/SQLiteWrapper.CRUD.Core/Common/Constants.cs | builttoroam/BuildIt | 38 | 7041624 | namespace SQLiteWrapper.CRUD.Core.Common
{
public class Constants
{
public const string DatabaseName = "wrapper.db";
public const string Nick = "Nick";
public const string Nicholas = "Nicholas";
public const string Cage = "Cage";
}
}
|
Server/Remontinka.Server.WebPortal/Models/FinancialItemValueGridForm/FinancialItemValueCreateModel.cs | alexs0ff/remboard | 0 | 7041625 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using Remontinka.Server.WebPortal.Models.Common;
namespace Remontinka.Server.WebPortal.Models.FinancialItemValueGridForm
{
/// <summary>
/// Модель ред... |
Source/BitDiffer.Common/Configuration/DiffConfig.cs | jesse6548/bitdiffer | 134 | 7041626 | <reponame>jesse6548/bitdiffer
using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Serialization;
namespace BitDiffer.Common.Configuration
{
[Serializable]
public class DiffConfig
{
private bool _useReflectionOnlyContext = true;
private bool _tryResolveGACFirst = false;
private ... |
HttpServer/Program.cs | BernLeWal/fhtw-bif3-swen1-clientserver | 0 | 7041627 | using System;
namespace HttpServer
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Simple HTTP-Server!");
Console.CancelKeyPress += (sender, e) => Environment.Exit(0);
new HttpServer(8080).Run();
}
}
}
|
Client/Weapons.cs | razzie/PocceMod | 6 | 7041628 | <reponame>razzie/PocceMod
using CitizenFX.Core.Native;
using System.Linq;
namespace PocceMod.Client
{
public class Weapon
{
public Weapon(uint model, int ammo, int ammoInClip, uint[] components, int tintIndex)
{
Model = model;
Ammo = ammo;
AmmoInClip = ammoI... |
TemplateAction/Core/Service/ConcurrentStorer.cs | wangluci/MZFrame | 0 | 7041629 | <gh_stars>0
using System;
using System.Collections.Concurrent;
namespace TemplateAction.Core
{
/// <summary>
/// 多线程服务实例存储器
/// </summary>
public class ConcurrentStorer
{
private ConcurrentDictionary<string, ConcurrentProxy> _instances;
internal ConcurrentStorer()
... |
Assets/Scripts/Model/Content/Core/Ship/Arcs/ArcTypes/ArcRight.cs | nickell-andrew/FlyCasual | 3 | 7041630 | <reponame>nickell-andrew/FlyCasual<filename>Assets/Scripts/Model/Content/Core/Ship/Arcs/ArcTypes/ArcRight.cs
using System;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
using Ship;
namespace Arcs
{
public class ArcRight : GenericArc
{
public ArcRight(GenericShipBase shipBase)... |
src/KissLog.CloudListeners/JsonUtilities.cs | KissLog-net/KissLog.Sdk | 35 | 7041631 | <gh_stars>10-100
using Newtonsoft.Json.Linq;
using System.Collections.Generic;
namespace KissLog.CloudListeners
{
internal static class JsonUtilities
{
public static bool IsJsonValid(string strInput, out JToken token)
{
token = null;
if (string.IsNullOrEmpty(strInput))... |
src/ActiveTenant/IApplicationContextStore.cs | danielcrenna/ActiveTenant | 2 | 7041632 | <gh_stars>1-10
// Copyright (c) <NAME> & Contributors. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Threading.Tasks;
namespace ActiveTenant
{
public interface IApplicationContextStore<TApplication> where TApplication... |
LineageServer/Server/BadNamesList.cs | TaiwanSpring/L1CSharpTW | 0 | 7041633 | <reponame>TaiwanSpring/L1CSharpTW
using System;
using System.Collections.Generic;
using System.IO;
namespace LineageServer.Server
{
public class BadNamesList
{
private static BadNamesList _instance;
private HashSet<string> _nameList;
public static BadNamesList Instance
{
... |
src/libraries/System.Private.CoreLib/src/System/IO/Enumeration/FileSystemEnumerator.Windows.cs | jtschuster/runtime | 1 | 7041634 | <filename>src/libraries/System.Private.CoreLib/src/System/IO/Enumeration/FileSystemEnumerator.Windows.cs
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.IO;
using System.Buffers;
using System.Collections... |
src/SalesPlatform/Shared/Infra/Workflows/StandardActions.cs | techtree-za/swoosh-mobile | 0 | 7041635 | using System.Collections.Generic;
using System.Linq;
using Newtonsoft.Json;
using SalesPlatform.ExternalServices.Messaging;
using SalesPlatform.Leads.Domain;
using SLib.Data.Dates;
using SLib.Errors;
using static SLib.Errors.ResultModule;
using SLib.Extensions;
namespace SalesPlatform.Shared.Infra.Workflows
{
clas... |
src/Masuit.MyBlogs.Core/Views/Passport/Login.cshtml | ZCLLemon/MyBlogs | 1 | 7041636 | <gh_stars>1-10
@{
ViewBag.Title = "统一登录";
Layout = null;
}
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
<title>@ViewBag.Title</title>
<link href="~/Content/login/style.css" ... |
tests/rm.MaskingTest/SimpleSubstitutionMaskTests.cs | rmandvikar/masking | 0 | 7041637 | using NUnit.Framework;
using rm.Masking;
namespace rm.MaskingTest
{
[TestFixture]
public class SimpleSubstitutionMaskTests
{
[TestFixture]
public class Mask
{
internal const string Substitution = "banana";
[Test]
[TestCase("12345678901234567890", "bananabananabananaba")]
[TestCase("123456", "ban... |
src/MassTransit.Tests/MessageContext_Specs.cs | DavidChristiansen/MassTransit | 0 | 7041638 | // Copyright 2007-2008 The Apache Software Foundation.
//
// 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 re... |
Assets/Scripts/LocalEditorSceneTest/CommonData.cs | HeNuoScott/unity_physics_csp | 0 | 7041639 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class CommonData : MonoBehaviour
{
public ServerLogic serverLogic;
public ClientLogic clientLogic;
public Transform local_player_camera_transform;
public float player_movement_impulse = 0.05f;/... |
Favalon.5/Favalon.Core/Parsing/StateContext.cs | kekyo/Favalon.PoC | 0 | 7041640 | // This is part of Favalon project - https://github.com/kekyo/Favalon
// Copyright (c) 2019 <NAME>
//
// 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/licens... |
Plugins/Cirrious/Email/Cirrious.MvvmCross.Plugins.Email/IMvxComposeEmailTaskEx.cs | guillaume-fr/MvvmCross | 0 | 7041642 | // IMvxComposeEmailTaskEx.cs
// (c) Copyright Cirrious Ltd. http://www.cirrious.com
// MvvmCross is licensed using Microsoft Public License (Ms-PL)
// Contributions and inspirations noted in readme.md and license.txt
//
// Project Lead - Stuart Lodge, @slodge, <EMAIL>
using System.Collections.Generic;
namespace Cirr... |
RdpConnector/Constants.cs | badreF/RdpConnector | 0 | 7041643 | using System.Configuration;
namespace RdpConnector
{
/// <summary>
/// This is a small utility class on which we will instantiate all our variables
/// </summary>
public static class Constants
{
//_api/web/GetFileByServerRelativeUrl('/Lists/Applications/Attachments/1/Gestion%20MP_Rec%20(El... |
netcore/clr/clrcore/types/UInt32.cs | eladraz/morph | 4 | 7041645 | namespace Morph
{
// Code taken form Mono 2.10.7, be aware code modified for our needs.
public struct UInt32
{
public const uint MaxValue = (uint)0xFFFFFFFF;
public const uint MinValue = unchecked((uint)0x00);
internal uint m_value;
public override int GetHashCode()
... |
snippets/csharp/VS_Snippets_CLR/conceptual.conversion/cs/explicit1.cs | BohdanMosiyuk/samples | 2 | 7041646 | <reponame>BohdanMosiyuk/samples<filename>snippets/csharp/VS_Snippets_CLR/conceptual.conversion/cs/explicit1.cs
using System;
public class Example
{
public static void Main()
{
PerformIntegerConversion();
Console.WriteLine("-----");
PerformCustomConversion();
Console.WriteLine("-----");
... |
C#/src/Properties/AssemblyInfo.cs | eladkarako/ConsoleBase64 | 1 | 7041647 | //-----------------------------------------------------------------------
// <copyright file="AssemblyInfo.cs" author="<NAME>" company="no">
// UnLicensed (Public Domain).
// Date: 07/01/2012
// Time: 03:16
// </copyright>
//-----------------------------------------------------------------------
#r... |
dingtalk/csharp/core/exclusive_1_0/Models/GetPublisherSummaryResponseBody.cs | aliyun/dingtalk-sdk | 15 | 7041648 | // This file is auto-generated, don't edit it. Thanks.
using System;
using System.Collections.Generic;
using System.IO;
using Tea;
namespace AlibabaCloud.SDK.Dingtalkexclusive_1_0.Models
{
public class GetPublisherSummaryResponseBody : TeaModel {
/// <summary>
/// 互动服务窗相关数据
/// </summary>... |
E-Shop/E-Shop/ViewModels/SettingsViewModels/VerifyCodeViewModel.cs | nixelt/E-Shop | 0 | 7041649 | namespace E_Shop.ViewModels.SettingsViewModels
{
using System.ComponentModel.DataAnnotations;
using App_LocalResources;
public class VerifyCodeViewModel
{
[Required(ErrorMessageResourceType = typeof(Errors), ErrorMessageResourceName = "Required")]
[Display(Name = nameof(ViewModel.Prov... |
classwork/MovieLibrary/MovieLib.Sql/SqlMovieDatabase.cs | Alamont912/ITSE-1430 | 0 | 7041650 | using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
namespace MovieLib.Sql
{
public class SqlMovieDatabase : MovieDatabase
{
public SqlMovieDatabase(string connectionString)
{
_connectionString = connectionString;
... |
FluentAssertions.WinRT/AssertionExtensions.WinRT.cs | blairconrad/fluentassertions | 0 | 7041651 | using FluentAssertions.Common;
using FluentAssertions.Formatting;
namespace FluentAssertions
{
public static partial class AssertionExtensions
{
static AssertionExtensions()
{
Formatter.AddFormatter(new AggregateExceptionValueFormatter());
}
}
} |
JhipsterBlazor/Program.cs | nicolas63/JhipsterBlazor | 3 | 7041652 | using System;
using System.Net.Http;
using System.Threading.Tasks;
using Blazored.Modal;
using Blazored.SessionStorage;
using Blazorise;
using Blazorise.Bootstrap;
using Blazorise.Icons.FontAwesome;
using JhipsterBlazor.Pages.Utils;
using JhipsterBlazor.Services;
using JhipsterBlazor.Services.AccountServices;
using Jhi... |
src/Orchard.Web/Modules/ceenq.com.DashboardApp/ApplicationImpl.cs | bill-cooper/catc-cms | 0 | 7041653 | using System.Collections.Generic;
using ceenq.com.Core.Applications;
using ceenq.com.Core.Routing;
using Orchard.ContentManagement;
namespace ceenq.com.DashboardApp
{
public class ApplicationImpl : IApplication
{
public ApplicationImpl()
{
Routes = new List<IRoute>();
}
... |
BotBits/Helpers/LoaderBase.cs | ajosg/BotBits | 18 | 7041654 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using JetBrains.Annotations;
namespace BotBits
{
public abstract class LoaderBase<T> : Package<T> where T : LoaderBase<T>, new()
{
public virtual void Load([NotNull] object obj)
{
if (obj is... |
src/AsyncExecutionLib/Execution/MultiThreadPipe.cs | Domo42/asyncexeclib | 0 | 7041655 | <gh_stars>0
#region [ File Header ]
/*****************************************************************************
Copyright 2011 <NAME>
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 a... |
common/src/Microsoft.Azure.IIoT.Abstractions/src/Storage/Models/DocumentProperties.cs | JMayrbaeurl/Industrial-IoT | 392 | 7041656 | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Microsoft.Azure.II... |
src/_DomainDriven/Framework.DomainDriven.BLL/ServiceRole/BLLViewRoleAttribute.cs | Luxoft/BSSFramework | 18 | 7041657 | using System.Collections.Generic;
using System.Linq;
using Framework.Core;
using Framework.Transfering;
namespace Framework.DomainDriven.BLL
{
/// <summary>
/// Атрибут указания генерации фасадного и BLL слоёв
/// </summary>
public class BLLViewRoleAttribute : BLLViewRoleBaseAttribute
... |
ASP.NET-MVC/ASP.NET MVC Essentials/WebCalculator/Views/Home/Index.cshtml | NikitoG/TelerikAcademyHomeworks | 0 | 7041658 | <filename>ASP.NET-MVC/ASP.NET MVC Essentials/WebCalculator/Views/Home/Index.cshtml<gh_stars>0
@model WebCalculator.Models.BitViewModels
@{
ViewBag.Title = "Home Page";
}
<div class="jumbotron">
<h1>Web Calculator</h1>
</div>
<div class="row">
@using (Html.BeginForm("Index", "Home", FormMethod.Get, new { @... |
02. Multidimensional-Arrays/05. Rubiks Matrix/05. Rubiks Matrix.cs | mmihaylov82/CSharp-Advanced | 0 | 7041660 | <gh_stars>0
using System;
using System.Linq;
using System.Collections.Generic;
namespace _05.Rubiks_Matrix
{
class Program
{
public static void Main()
{
int[] size = Console.ReadLine()
.Split(new char[] { ' ' }, StringSplitOptions.RemoveEmptyEntries)
... |
Euphoric.Logging.Memory/IMemoryLogSource.cs | Euphoric/Euphoric.Logging.Memory | 0 | 7041661 | <gh_stars>0
using System.Collections.Generic;
namespace Euphoric.Logging.Memory
{
/// <summary>
/// Source of logs entries stored in memory.
/// </summary>
public interface IMemoryLogSource
{
/// <summary>
/// Collection of logged entries.
/// </summary>
IReadOnlyLi... |
misc/Experimental/Symbiote.Net/HttpRequest.cs | code-attic/Symbiote | 3 | 7041662 | /*
Copyright 2008-2010 <NAME>
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 or agreed to in writing, software
di... |
SharedClient/Models/Friend.cs | tamifist/Transcendence | 0 | 7041663 | <reponame>tamifist/Transcendence<filename>SharedClient/Models/Friend.cs
using System;
using SQLite;
using TranscendenceChat.ServerClient.Entities;
namespace TranscendenceChat
{
public class Friend : EntityBase
{
public Friend ()
{
}
[Indexed]
public long FriendId { get; set; }
public string Name { ... |
src/HealthChecks.UI/Core/Notifications/IHealthCheckFailureNotifier.cs | jlcalderingarcia/AspNetCore.Diagnostics.HealthChecks | 1 | 7041664 | using HealthChecks.UI.Client;
using System.Threading.Tasks;
namespace HealthChecks.UI.Core.Notifications
{
interface IHealthCheckFailureNotifier
{
Task NotifyDown(string name, UIHealthReport report);
Task NotifyWakeUp(string name);
}
}
|
test/Microsoft.Health.Fhir.R4.Ingest.UnitTests/Service/R4FhirImportServiceTests.cs | SharonHart/iomt-fhir | 0 | 7041665 | // -------------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See LICENSE in the repo root for license information.
// --------------------------------------------------------... |
DevTools/Startup.cs | JeevanJames/DevTools-Server | 0 | 7041666 | using System.Diagnostics.CodeAnalysis;
using System.Net.Http.Formatting;
using System.Web.Http;
using DevTools;
using Microsoft.Owin;
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
using Owin;
[assembly: OwinStartup(typeof(Startup))]
namespace DevTools
{
public sealed class Startup
{
... |
src/TorchSharp/NN/PixelShuffle.cs | dsyme/TorchSharp | 1 | 7041667 | // Copyright (c) Microsoft Corporation and contributors. All Rights Reserved. See License.txt in the project root for license information.
using System;
using System.Runtime.InteropServices;
using TorchSharp.Tensor;
namespace TorchSharp.NN
{
/// <summary>
/// This class is used to represent a dropout module.... |
Projects/HikingPlanAndRescue/Source/Web/HikingPlanAndRescue.Web/Areas/Private/Views/Trainings/_TrainingListItem.cshtml | todorm85/TelerikAcademy | 0 | 7041668 | <filename>Projects/HikingPlanAndRescue/Source/Web/HikingPlanAndRescue.Web/Areas/Private/Views/Trainings/_TrainingListItem.cshtml<gh_stars>0
@model HikingPlanAndRescue.Web.Areas.Private.Models.TrainingListItemViewModel
<h3>@Model.Title</h3>
@if (Model.StartDate != null)
{
<p class="info">Start Date: @Html.DisplayF... |
Applications/IGOutlook/IGOutlook/IgOutlook.Infrastructure/ViewBase.cs | mcavigelli/wpf-samples | 7 | 7041669 | using IgOutlook.Infrastructure.Prism;
using Prism.Events;
using Prism.Regions;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Controls;
namespace IgOutlook.Infrastructure
{
public class ViewBase : UserControl, IViewBase, INavigationAware, IRegionManagerAware
{
public IRegion... |
SeparatedValuesParser/Parser.cs | seanjohnno/SeparatedValueParser | 0 | 7041670 | using SeparatedValuesParser;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
namespace CsvParser
{
public class Parser<T> : IEnumerable<T>
{
private readonly char _separator;
private readonly Tokenizer _tokenizer;
pr... |
VRM.Extension.Importer/Runtime/UniversalToon/VRMImporterContext_UniversalToon.cs | sotanmochi/VRMImporterExtension-URP | 10 | 7041671 | <filename>VRM.Extension.Importer/Runtime/UniversalToon/VRMImporterContext_UniversalToon.cs
using UniGLTF;
namespace VRM.Extension
{
public class VRMImporterContext_UniversalToon : VRMImporterContext
{
public override void ParseJson(string json, IStorage storage)
{
base.ParseJson(jso... |
Data/ServiceTContext.cs | oguzozgen/BaseT-Service-Net-Core | 0 | 7041672 | <reponame>oguzozgen/BaseT-Service-Net-Core
using System;
using System.Linq;
using System.Threading.Tasks;
using BaseT_Service_Net_Core.Data.Entity;
using BaseT_Service_Net_Core.Data.Entity.BaseEntity;
using Microsoft.EntityFrameworkCore;
namespace BaseT_Service_Net_Core.Data
{
public class ServiceTContext:DbCon... |
src/CMS/CMSModules/AdminControls/Controls/Class/NewClassWizard.ascx.cs | JFouts-BlueModus/kentico-contrib | 1 | 7041673 | <gh_stars>1-10
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web.UI.WebControls;
using CMS.Base;
using CMS.Base.Web.UI;
using CMS.CustomTables;
using CMS.DataEngine;
using CMS.DocumentEngine;
using CMS.EventLog;
using CMS.FormEngine;
using CMS.FormEngine.Web.UI;
using CM... |
src/Majorsoft.Blazor.Components.Maps/Google/GoogleMapTypeControlStyles.cs | taublast/blazor-components | 174 | 7041674 | namespace Majorsoft.Blazor.Components.Maps.Google
{
/// <summary>
/// Identifiers for common MapTypesControls.
/// </summary>
public enum GoogleMapTypeControlStyles
{
/// <summary>
/// When the DEFAULT control is shown, it will vary according to window size and other factors.
/// The DEFAULT control may ch... |
src/samples/console/Queue.Consumer/Program.cs | liuxx001/BodeAbp | 70 | 7041675 | using Abp;
using Abp.Dependency;
using Abp.Net.Sockets;
using Abp.Schedule;
using BodeAbp.Queue.Clients.Consumers;
using BodeAbp.Queue.Protocols;
using BodeAbp.Queue.Utils;
using Castle.Core.Logging;
using System;
using System.Configuration;
using System.Net;
using System.Threading;
namespace Queue.Consumer
{
cla... |
dsis/src/Graphs/Graph.Entropy/src/Impl/Loop/Iterators/LoopIterator.cs | jonnyzzz/phd-project | 1 | 7041676 | <filename>dsis/src/Graphs/Graph.Entropy/src/Impl/Loop/Iterators/LoopIterator.cs
using System.Collections.Generic;
using DSIS.Core.Coordinates;
using DSIS.Graph.Entropy.Impl.Loop.Search;
using DSIS.Utils;
namespace DSIS.Graph.Entropy.Impl.Loop.Iterators
{
public class LoopIterator<T> : ContextBase<T>, IGraphWe... |
Programs/CoolProxy/Interfaces/IGUI.cs | StolenRuby/coolproxy | 0 | 7041678 | <gh_stars>0
using CoolGUI.Controls;
using OpenMetaverse;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace CoolProxy
{
public class TrayOption
{
public string Label { get; set; }
public Even... |
Paymetheus/Framework/ValueConverters/BooleanConverter.cs | madferreiro/Paymetheus-Fork | 0 | 7041679 | // Copyright (c) 2016 The btcsuite developers
// Copyright (c) 2016 The Decred developers
// Licensed under the ISC license. See LICENSE file in the project root for full license information.
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Windows;
using System.Windows.Data;
... |
UCR/ViewModels/Dashboard/ProfileItem.cs | WelpThatWorked/UCR | 563 | 7041680 | using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using HidWizards.UCR.Core.Models;
namespace HidWizards.UCR.ViewModels.Dashboard
{
public class ProfileItem
{
public ProfileItem()
{
Items = new ObservableCollection<ProfileItem>();
}
... |
src/Swashbuckle.AspNetCore.Newtonsoft/SchemaGenerator/NewtonsoftDataContractResolver.cs | SSanjeevi/Swashbuckle.AspNetCore | 1 | 7041681 | <filename>src/Swashbuckle.AspNetCore.Newtonsoft/SchemaGenerator/NewtonsoftDataContractResolver.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Runtime.Serialization;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Linq;
using Ne... |
mono/mcs/class/System/System.Text.RegularExpressions/parser.cs | GrapeCity/pagefx | 18 | 7041682 | <reponame>GrapeCity/pagefx<gh_stars>10-100
//
// assembly: System
// namespace: System.Text.RegularExpressions
// file: parser.cs
//
// author: <NAME> (<EMAIL>)
// (c) 2002
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation fi... |
src/BinaryMesh.OpenXml/Charts/Internal/PieCharts/OpenXmlPieChartSeries.cs | niklaskarl/BinaryMesh.OpenXml | 1 | 7041683 | <reponame>niklaskarl/BinaryMesh.OpenXml<filename>src/BinaryMesh.OpenXml/Charts/Internal/PieCharts/OpenXmlPieChartSeries.cs
using System;
using BinaryMesh.OpenXml.Spreadsheets;
using DocumentFormat.OpenXml;
using DocumentFormat.OpenXml.Drawing.Charts;
namespace BinaryMesh.OpenXml.Charts.Internal
{
internal sealed c... |
App_Start/AuthConfig.cs | Primoca/Static-Blog | 1 | 7041684 | <gh_stars>1-10
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Web.WebPages.OAuth;
using System.Net;
using System.IO;
using System.Web;
using System.Configuration;
using DotNetOpenAuth.AspNet.Clients;
using DotNetOpenAuth.Messaging;
using System.Collections.Special... |
src/Chatter.MessageBrokers/src/Chatter.MessageBrokers/Receiving/InboundBrokeredMessage.cs | brenpike/Chatter | 1 | 7041685 | using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
namespace Chatter.MessageBrokers.Receiving
{
/// <summary>
/// The message received by the <see cref="BrokeredMessageReceiverBackgroundService{TMessage}"/>
/// </summary>
public class InboundBrokeredMessage
{
... |
Assets/Scripts/PlayerScripts/PlayerCamera.cs | kidagine/Project-Artemis | 0 | 7041686 | <gh_stars>0
using UnityEngine;
public class PlayerCamera : MonoBehaviour
{
[SerializeField] private Transform playerTransform;
private const float mouseSensitivity = 20f;
private Player player;
private float rotationX;
public Vector2 cameraInput { get; set; }
void Start()
{
pla... |
Yamaanco.Application/Common/Options/EmailOptions.cs | YamanNasser/Yamaanco | 2 | 7041687 | namespace Yamaanco.Application.Common.Options
{
public class EmailOptions
{
public string SmtpServer { get; set; } = "smtp.gmail.com";
public int Port { get; set; } = 587;
public bool EnableSsl { get; set; } = true;
public bool UseDefaultCredentials { get; set; } = false;
... |
CaptainHook/Platform/Windows/Native/Rect.cs | michaelwda/CaptainHook | 0 | 7041688 | using System.Runtime.InteropServices;
namespace CaptainHook.Platform.Windows.Native
{
[StructLayout(LayoutKind.Sequential)]
public struct Rect
{
public int left;
public int top;
public int right;
public int bottom;
}
} |
Assets/Part1-HelloWorld/1.5a-TakingATurn/TurnSystem/PlayerTurnSystem.cs | angusmf/rltk_unity_roguelike | 0 | 7041689 | using UnityEngine;
using System.Collections;
using Unity.Entities;
using UnityEngine.InputSystem;
using Unity.Mathematics;
namespace RLTKTutorial.Part1_5A
{
[DisableAutoCreation]
public class PlayerTurnSystem : TurnActionSystem
{
public override ActorType ActorType => ActorType.Player;
Tu... |
Reggie/Generators/SqlTableMachineLoopPrologue.cs | codewitch-honey-crisis/Reggie | 5 | 7041690 | using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
#line hidden
namespace Reggie {
internal partial class Generator {
public static void SqlTableMachineLoopPrologue(TextWriter Response, IDictionary<string, object> Arguments) {
#line 1 "C:\Users\gazto\source\repos... |
ShopsRUs.Application/Shared/Invoices/Models/InvoiceDto.cs | multecipenguen/ShopsRUs | 0 | 7041691 | <filename>ShopsRUs.Application/Shared/Invoices/Models/InvoiceDto.cs
namespace ShopsRUs.Application.Invoices.Models
{
public class InvoiceDto
{
public decimal Amount { get; set; }
public string Customer { get; set; }
}
}
|
code/csharp/ch13/luavm/state/LuaTable.cs | aviland/luago-book | 723 | 7041692 | <gh_stars>100-1000
using System;
using System.Collections.Generic;
using luavm.api;
using LuaType = System.Int32;
using Math = luavm.number.Math;
namespace luavm.state
{
public class LuaTable
{
internal LuaTable Metatable;
private List<object> _arr;
private Dictionary<object, object> _... |
Combat and Dodge Overhaul/CombatAndDodgeOverhaul/EnemyClass.cs | botchi09/Outward-Mods | 1 | 7041693 | <filename>Combat and Dodge Overhaul/CombatAndDodgeOverhaul/EnemyClass.cs
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using SideLoader;
namespace CombatAndDodgeOverhaul
{
//Class to manually determine bosses
sta... |
DDD_Sample/Domain/Leave/Event/LeaveEvent.cs | axzxs2001/DDD_Sample | 0 | 7041694 | using Infrastructure.Common.Event;
using Infrastructure.Util;
using System;
using System.Collections.Generic;
using System.Text;
using Newtonsoft;
using Newtonsoft.Json;
namespace Domain.Leave.Event
{
public class LeaveEvent : DomainEvent
{
public LeaveEventType LeaveEventType { get; set; }
p... |
Html5/CSS/FontVariant.cs | BenitoJedai/Bridge | 1 | 7041695 | using Bridge;
namespace Bridge.Html5
{
/// <summary>
/// The font-variant CSS property selects a normal, or small-caps face from a font family. Setting font-variant is also possible by using the font shorthand.
/// </summary>
[Ignore]
[Enum(Emit.StringNameLowerCase)]
[Name("String")]
publi... |
WizzardUniversity/game/Assets/Scripts/BossRoomCtrl.cs | Fafnir0826/NPTUCS | 0 | 7041696 | <filename>WizzardUniversity/game/Assets/Scripts/BossRoomCtrl.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class BossRoomCtrl : MonoBehaviour
{
public static bool Open = false;
public GameObject boss;
void Start()
{
boss = GameObject.Find("Monster").g... |
.dotnet/example_code/DynamoDB/GettingStarted/DynamoDB_intro/DynamoDB_intro/02_CreatingTable.cs | iconara/aws-doc-sdk-examples | 5,166 | 7041697 | <gh_stars>1000+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX - License - Identifier: Apache - 2.0
// snippet-sourcedescription:[ ]
// snippet-service:[dynamodb]
// snippet-keyword:[dotNET]
// snippet-keyword:[Amazon DynamoDB]
// snippet-keyword:[Code Sample]
// snippet-keyword:[ ]
// sn... |
WFM-Teams-Adapter/src/WfmTeams.Adapter.Functions/Handlers/CancelOpenShiftRequestHandler.cs | Andy65/Microsoft-Teams-Shifts-WFM-Connectors | 0 | 7041698 | // ---------------------------------------------------------------------------
// <copyright file="CancelOpenShiftRequestHandler.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
// ---------------------------------------------------------------------------
name... |
Objects/Objects/Structural/Material/Timber.cs | luhtech/speckle-sharp | 9 | 7041699 | <reponame>luhtech/speckle-sharp<gh_stars>1-10
using Speckle.Newtonsoft.Json;
using Speckle.Core.Kits;
using Speckle.Core.Models;
using System.Collections.Generic;
using Objects.Geometry;
namespace Objects.Structural.Materials
{
public class Timber : Material
{
//missing timber-specific properties? par... |
Scripts/Decals/DecalManager.cs | odynm/polaris | 0 | 7041700 | <reponame>odynm/polaris
// Polaris - Project VII 2018
// 08/03/18 -> 02/07/18
// Compiled in Unity 2017.2.0f3
// Writed by <NAME> (M-Ody)
// <EMAIL>
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace PolarisCore
{
public class DecalManager : ScriptableObject
{
pri... |
samples/ASP.NET Core 3/ClaimStrategySample/Program.cs | harisbotic/Finbuckle.MultiTenant | 3 | 7041701 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using System.Threading.Tasks;
using ClaimStrategySample.Data;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Identity;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection... |
fourteenthproject/Senai.PastelStore.MVC/Program.cs | regiamariana/projetos | 0 | 7041702 | <gh_stars>0
using System;
using Senai.PastelStore.MVC.Utils;
using Senai.PastelStore.MVC.ViewController;
using Senai.PastelStore.MVC.ViewModel;
namespace Senai.PastelStore.MVC
{
class Program
{
static void Main(string[] args)
{
/* UsuarioViewModel usuario = new UsuarioViewModel();
... |
unity_integration_demo/Assets/Scripts/Game.cs | Eittipat/isb | 1 | 7041703 | <filename>unity_integration_demo/Assets/Scripts/Game.cs
using ISB.Runtime;
using ISB.Utilities;
using UnityEngine;
// Example BASIC code that invokes Game.AddBall.
//
// For x = -3 To 3
// For z = -3 To 3
// Game.AddBall(x, 5, z)
// EndFor
// EndFor
public class Game
{
[Doc("Example lib function to acces... |
Ivony.Web/ClientCachePolicyModule.cs | Ivony/Jumony | 394 | 7041704 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using Ivony.Fluent;
namespace Ivony.Web
{
/// <summary>
/// 客户端缓存策略支持模块
/// </summary>
public sealed class ClientCachePolicyModule : IHttpModule
{
void IHttpModule.Dispose()
{
}
void IHt... |
TelerikAcademy.FinalProject.Web.Tests/Models/UserTests/User_Should.cs | Camyul/ASP.NET-MVC-Final-Project | 1 | 7041705 | <reponame>Camyul/ASP.NET-MVC-Final-Project
using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TelerikAcademy.FinalProject.Data.Model;
namespace TelerikAcademy.FinalProject.Web.Tests.Models.UserTests
{
[TestFixture]
c... |
src/SpringCloud/generated/api/Models/Api20190501Preview/ResourceUploadDefinition.cs | gkostal/azure-powershell | 2 | 7041706 | <gh_stars>1-10
namespace Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.Extensions;
/// <summary>Resource upload definition payload</summary>
public partial class ResourceUploadDefinition :
Microso... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.