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 |
|---|---|---|---|---|
h3tests/TestH3UniEdge.cs | RichardVasquez/h3netOld | 0 | 7037389 | <gh_stars>0
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using H3Net.Code;
using NUnit.Framework;
namespace h3tests
{
[TestFixture]
class TestH3UniEdge
{
private static GeoCoord sfGeo = new GeoCoord(0.659966917655, -2.136439851... |
csharp/UnitTest/Payment/Page/ClientTest.cs | fjch1997/alipay-easysdk | 0 | 7037390 | <gh_stars>0
using NUnit.Framework;
using Alipay.EasySDK.Factory;
namespace UnitTest.Payment.Page
{
public class ClientTest
{
[SetUp]
public void SetUp()
{
Factory.SetOptions(TestAccount.Mini.CONFIG);
}
[Test]
public void TestPay()
{
... |
Lbookshelf/Business/ComputedDimension.cs | allenlooplee/Lbookshelf | 0 | 7037391 | using Lbookshelf.Models;
using Lbookshelf.Utils;
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Lbookshelf.Business
{
/// <summary>
/// Computed dimension is a dimension that a group key can be... |
UserControls/Options/ProxySettings.designer.cs | satelliteprogrammer/rawr | 0 | 7037392 | namespace Rawr.UserControls.Options
{
partial class ProxySettings
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">t... |
MinecraftMappings.NET/Internal/Textures/Entity/EntityTextureVersion.cs | null511/MinecraftMappings.NET | 0 | 7037393 | using System;
namespace MinecraftMappings.Internal.Textures.Entity
{
public abstract class EntityTextureVersion
{
public string Id {get; set;}
public string Path {get; set;}
public GameVersion MinVersion {get; set;}
public GameVersion MaxVersion {get; set;}
public int F... |
Tempus.Utils.AspNetCore/FileHelper.cs | tempusdigital/Tempus.Utils | 0 | 7037394 | <filename>Tempus.Utils.AspNetCore/FileHelper.cs
namespace Tempus.Utils.AspNetCore
{
using Microsoft.AspNetCore.Http;
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Threading.Tasks;
public static class FileHelper
{
public static ... |
VisaD.Application/Nomenclatures/Dtos/SchoolYearNomenclatureFilterDto.cs | governmentbg/nacid-visad | 0 | 7037395 | using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using VisaD.Data.Nomenclatures;
namespace VisaD.Application.Nomenclatures.Dtos
{
public class SchoolYearNomenclatureFilterDto : BaseNomenclatureFilterDto<SchoolYear>
{
public int? FromStartYear { get; set; }
public int? ToStartYear {... |
src/Stripe.net/Services/Account/AccountSettingsCardPaymentsOptions.cs | matthewling-stripe/stripe-dotnet | 1 | 7037396 | namespace Stripe
{
using Newtonsoft.Json;
public class AccountSettingsCardPaymentsOptions : INestedOptions
{
[JsonProperty("decline_on")]
public AccountSettingsDeclineOnOptions DeclineOn { get; set; }
[JsonProperty("statement_descriptor_prefix")]
public string StatementDesc... |
src/Microsoft.Extensions.ML/ServiceCollectionExtensions.cs | Ivanidzo4ka/machinelearning | 9 | 7037397 | <reponame>Ivanidzo4ka/machinelearning
// 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 Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.De... |
Cruises/src/core/Cruises.Application/CruisePackages/Commands/UpdateCruisePackageDetail/UpdateCruisePackageDetailCommandValidator.cs | paolomococci/dotnet-fullstack-workshop | 0 | 7037398 | using System.Threading;
using System.Threading.Tasks;
using Cruises.Application.Common.Interfaces;
using FluentValidation;
using Microsoft.EntityFrameworkCore;
namespace Cruises.Application.CruisePackages.Commands.UpdateCruisePackageDetail
{
public class UpdateCruisePackageDetailCommandValidator
: Abstr... |
AssetsReferenceTool/Assets/Editor/BaseAssetTool.cs | KIPKIPS/AssetsReferenceTool | 0 | 7037399 | <gh_stars>0
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using System.IO;
using UnityEditor;
namespace EditorAssetTools {
public abstract class BaseAssetTool {
EditorAssetToolsWindow tools_window;
protected List<string> all_asset_path = new ... |
Assets/Scripts/Model/Content/SecondEdition/Upgrades/Crew/TacticalOfficer.cs | belk/FlyCasual | 0 | 7037400 | <gh_stars>0
using Ship;
using Upgrade;
using System.Collections.Generic;
using Abilities;
using ActionsList;
using Actions;
namespace UpgradesList.SecondEdition
{
public class TacticalOfficer : GenericUpgrade
{
public TacticalOfficer() : base()
{
UpgradeInfo = new UpgradeCardInfo(
... |
Engine/Network/ServerConnection.cs | abdullahgb/Peer2PeerChat | 181 | 7037401 | using Engine.Helpers;
using Engine.Model.Common.Entities;
using System;
using System.Net.Sockets;
using System.Security;
using System.Security.Cryptography.X509Certificates;
using System.Threading;
namespace Engine.Network
{
/// <summary>
/// Server connection to client.
/// </summary>
sealed cla... |
GGJ20/Assets/_Game/Scripts/ComponentFlamethrower.cs | xDavidLeon/GGJ20 | 0 | 7037402 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ComponentFlamethrower : RobotComponent
{
public ParticleSystem ps;
public TriggerFire triggerFire;
private void Awake()
{
}
void Update()
{
var e = ps.emission;
if (input > 0.0f)
... |
src/Microsoft.Health.Fhir.Liquid.Converter/Models/FhirConverterErrorCode.cs | ginalee-dotcom/FHIR-Converter | 0 | 7037404 | // -------------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See LICENSE in the repo root for license information.
// -----------------------------------------------------------... |
CyberLab_Integrador/CyberLab_Integrador/View/Login.xaml.cs | HenriqueSSP/app-cyberlab | 0 | 7037405 | using Android.Widget;
using MySql.Data.MySqlClient;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
namespace CyberLab_Integrador
{
[XamlCompilation(XamlCompilationOptions.Compile)]
public parti... |
src/DotNetWorker/Http/IHttpCookie.cs | ggailey777/azure-functions-dotnet-worker | 0 | 7037406 | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
using System;
namespace Microsoft.Azure.Functions.Worker
{
public interface IHttpCookie
{
string Domain { get; }
DateTimeOffset? Expires { ge... |
beagrepd/Lucene.Net/Index/Term.cs | baohaojun/beagrep | 71 | 7037407 | <filename>beagrepd/Lucene.Net/Index/Term.cs<gh_stars>10-100
/*
* 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 copyright ownership.
* The ASF licenses this file to You under ... |
tests/Prometheus.Client.Tests/UntypedTests.cs | malachib/Prometheus.Client | 0 | 7037408 | using System;
using System.IO;
using System.Threading.Tasks;
using NSubstitute;
using Prometheus.Client.Collectors;
using Prometheus.Client.Collectors.Abstractions;
using Prometheus.Client.MetricsWriter;
using Prometheus.Client.MetricsWriter.Abstractions;
using Prometheus.Client.Tests.Resources;
using Xunit;
namespace... |
Assets/Scripts/Model/Ships/Escape Craft/AutopilotDrone.cs | rpraska/FlyCasual | 0 | 7037409 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Ship;
using RuleSets;
namespace Ship
{
namespace EscapeCraft
{
public class AutopilotDrone : EscapeCraft, ISecondEditionPilot
{
public AutopilotDrone() : base()
{
PilotN... |
src/Acerola.Application/Commands/CloseAccount/CloseAccountUseCase.cs | jgonzoes/ApiMultiPersistencia | 314 | 7037410 | <reponame>jgonzoes/ApiMultiPersistencia
namespace Acerola.Application.Commands.Close
{
using System;
using System.Threading.Tasks;
using Acerola.Application.Repositories;
using Acerola.Domain.Accounts;
public sealed class CloseAccountUseCase : ICloseAccountUseCase
{
private readonly IA... |
src/JT808.DotNetty.Tests/JT808.DotNetty.Core.Test/JT808TcpSessionManagerTest.cs | stoneson/JT808Gateway | 1 | 7037411 | using DotNetty.Transport.Channels.Embedded;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Threading;
namespace JT808.DotNetty.Core.Test
{
[TestClass]
public class JT808SessionManagerTest: SeedTcpSession
{
[TestMethod]
public void Test1()
{
var no = "... |
src/Microsoft.Marketplace.Metering/Generated/Models/UsageEventBadRequestResponseDetail.cs | NateLaraMS/TestO | 7 | 7037412 | <filename>src/Microsoft.Marketplace.Metering/Generated/Models/UsageEventBadRequestResponseDetail.cs
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
namespace Microsoft.Marketplace.Metering.Models
{
/// <summary> The UsageEvent... |
usb-serial-comms/UtilityDelta.Server/Program.cs | utilitydelta/arduino-dotnet | 0 | 7037413 | using System;
using System.IO.Ports;
using System.Threading;
namespace UtilityDelta.Server
{
public class Program
{
public static void Main()
{
var serialPort = new SerialPort
{
BaudRate = 9600,
PortName = "COM5"
};
... |
Source/Common/Libraries/Lib/Lib/Code/Exceptions/UnexpectedEnumerationValueException.cs | MinexAutomation/Public | 0 | 7037414 | using System;
using System.Runtime.Serialization;
using System.Security.Permissions;
namespace Public.Common.Lib
{
/// <summary>
/// An exception specifically for the case in which an enumeration value has not been handled.
/// </summary>
/// <typeparam name="T">An enumeration type. Compile... |
src/EasyAbp.Abp.Trees.Domain/EasyAbp/Abp/Trees/TreeCodeGenerator.cs | RayMMond/Abp.Trees | 0 | 7037415 | <gh_stars>0
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace EasyAbp.Abp.Trees
{
public class TreeCodeGenerator : Volo.Abp.DependencyInjection.ITransientDependency
{
public const int CodeLength = 5;
/// <summary>
/// Creates code for give... |
src/System.Drawing.Common/src/System/Drawing/Drawing2D/HatchStyle.cs | gkhanna79/corefx | 6 | 7037416 | <reponame>gkhanna79/corefx<filename>src/System.Drawing.Common/src/System/Drawing/Drawing2D/HatchStyle.cs
// 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 S... |
src/Implementation/FrannHammer.WebApi/HypermediaServices/ManyCharacterResourceEnricher.cs | dunnaaron/FrannHammer | 0 | 7037417 | using System.Collections.Generic;
using System.Linq;
using System.Web.Http.Routing;
using FrannHammer.Domain.Contracts;
using FrannHammer.WebApi.Models;
namespace FrannHammer.WebApi.HypermediaServices
{
public class ManyCharacterResourceEnricher : ObjectContentResponseEnricher<IEnumerable<ICharacter>, IEnumerable... |
Assets/Scripts/Core/ScreenShake.cs | Myggski/Krogger | 1 | 7037418 | using System.Collections;
using UnityEngine;
using Random = UnityEngine.Random;
namespace FG {
public class ScreenShake : MonoBehaviour
{
[SerializeField]
private float shakeDuration = 0f;
[SerializeField]
private float shakeAmount = 0.7f;
[SerializeField]
privat... |
2k22Extractor/NLL/DefensiveMatchup.cs | bgraefnitz/2k22Extractor | 0 | 7037419 | <gh_stars>0
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace _2k22Extractor.NLL
{
class DefensiveMatchup
{
public string DefendingPlayer { get; set; }
public string OpposingPlayer { get; set; }
public int OnBallPressure { get; set; }
... |
src/Servers/GameServer/Managers/EntityManager.cs | zerratar/Ravenfall-Server | 5 | 7037420 | <gh_stars>1-10
using GameServer.Repositories;
using RavenNest.BusinessLogic.Data;
using Shinobytes.Ravenfall.Data.Entities;
using Shinobytes.Ravenfall.RavenNet.Core;
using Shinobytes.Ravenfall.RavenNet.Models;
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
name... |
src/ScyllaNet/Serialization/Graph/Tinkerpop/Structure/IO/GraphSON/BigIntegerSerializer.cs | ScyllaNet/ScyllaNet | 14 | 7037422 | <gh_stars>10-100
// Copyright (c) 2014-2020 DataStax Inc.
// Copyright (c) 2020, <NAME> (ralmsdevelper)
// Licensed under the Apache License, Version 2.0. See LICENCE in the project root for license information.
using System.Collections.Generic;
using System.Numerics;
using Scylla.Net.DataStax.Graph.Internal;
namesp... |
Runtime/Model/Metrics/UniqueEventsSubmissionQueue.cs | JPerryOddGames/backtrace-unity | 0 | 7037423 | using Backtrace.Unity.Common;
using Backtrace.Unity.Json;
using Backtrace.Unity.Model.JsonData;
using System.Collections.Generic;
[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("Backtrace.Unity.Tests.Runtime")]
namespace Backtrace.Unity.Model.Metrics
{
internal sealed class UniqueEventsSubmissionQu... |
TileDB.Cloud.Rest/src/TileDB.Cloud.Rest/Model/GenericUDF.cs | TileDB-Inc/TileDB-Cloud-CSharp | 0 | 7037424 | <filename>TileDB.Cloud.Rest/src/TileDB.Cloud.Rest/Model/GenericUDF.cs
/*
* TileDB Storage Platform API
*
* TileDB Storage Platform REST API
*
* The version of the OpenAPI document: 2.2.19
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
using System;
using System.Linq;
using System.I... |
LegoM/Services/Orders/Models/OrderFormServiceModel.cs | meco00/LEGO-M | 6 | 7037425 | namespace LegoM.Services.Orders.Models
{
using System.ComponentModel.DataAnnotations;
using static Data.DataConstants.Order;
public class OrderFormServiceModel
{
[Display(Name = "Full Name")]
[Required]
[StringLength(FullNameMaxLength, MinimumLength = FullNameMinLength)]
... |
src/MithrilShards.Core/Memory/PooledByteBufferWriter.cs | MithrilMan/MithrilShards | 19 | 7037426 | // 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.Buffers;
using System.Diagnostics;
namespace MithrilShards.Core.Memory
{
/// <summar... |
VkNet/Model/RequestParams/Notes/NotesGetParams.cs | dariabokareva/vk | 650 | 7037427 | <gh_stars>100-1000
using System;
using System.Collections.Generic;
using Newtonsoft.Json;
using VkNet.Enums;
namespace VkNet.Model.RequestParams.Notes
{
/// <summary>
/// Notes Get Params
/// </summary>
[Serializable]
public class NotesGetParams
{
/// <summary>
/// Идентификаторы заметок, информацию о которы... |
src/BoxOptions.AzureRepositories/LogRepository.cs | LykkeCity/BoxOptionsServer | 1 | 7037428 | using AzureStorage;
using BoxOptions.AzureRepositories.Entities;
using BoxOptions.Core.Interfaces;
using BoxOptions.Core.Repositories;
using Microsoft.WindowsAzure.Storage.Table;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace BoxOptions.AzureRepositories
{
... |
ICSharpCode.AvalonEdit/Utils/Empty.cs | Kiho/mongo-edi | 0 | 7037429 | <gh_stars>0
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
using System;
using System.Collections.ObjectModel;
namespace ICSharpCode.AvalonEdit.Utils
{
/// <summar... |
Fluffle.Main.Database/Migrations/20220419191901_AddRetryColumnsToContent.cs | NoppesTheFolf/Fluffle | 0 | 7037430 | <reponame>NoppesTheFolf/Fluffle
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Noppes.Fluffle.Main.Database.Migrations
{
public partial class AddRetryColumnsToContent : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrati... |
ReadExample/Program.cs | snowmiqi/WW.Cad.NetStandard.Examples | 8 | 7037431 | using System;
using WW.Cad.IO;
using WW.Cad.Model;
using WW.Cad.Model.Entities;
using WW.Math;
namespace ReadExample {
class Program {
static void Main(string[] args) {
// For this application to work you will need a trial license.
// The MyAppKeyPair.snk linked in the pro... |
Src/Dev/MessageNet/MessageNet.Management/Blob/BlobRepository.cs | khooversoft/Toolbox.Core | 0 | 7037432 | // Copyright (c) KhooverSoft. All rights reserved.
// Licensed under the MIT License, Version 2.0. See License.txt in the project root for license information.
using Azure.Storage.Blobs;
using Azure.Storage.Blobs.Models;
using Khooversoft.Toolbox.Standard;
using System;
using System.Collections.Generic;
using System.... |
UIAutomationWinforms/UIAutomationWinformsTests/ToolBarProviderTest.cs | ABEMBARKA/monoUI | 1 | 7037433 | <reponame>ABEMBARKA/monoUI<gh_stars>1-10
// 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, modify, merge, pub... |
src/Pragmasoft.QuickpayV10.Extensions/Services/AppCenter/QuickPayV10AppVerifier.cs | bjarnef/uCommerce.QuickpayV10 | 1 | 7037434 | using System;
using Pragmasoft.QuickpayV10.Extensions.Services.Interfaces;
namespace Pragmasoft.QuickpayV10.Extensions.Services.AppCenter
{
public class QuickPayV10AppVerifier : IAppVerifier
{
private readonly IQuickPayV10Logger _logger;
public QuickPayV10AppVerifier(IQuickPayV10Logger logge... |
Assets/Dependencies/Hex/UN/Runtime/Scripts/Engine/Parallel/Actions/MainThreadAction.cs | atomata/VClassroom_Proto_VSolar_ApparatusUPackageDevelopment | 0 | 7037435 | using System;
using HexUN.Framework.Services;
using HexUN.Behaviour;
using HexUN.Framework;
namespace HexUN.Parallel
{
/// <summary>
/// When perform is called, registers action to be performed ASAP on main thread
/// </summary>
public class MainThreadAction
{
private Action _action;
... |
App2/DataViewController.cs | frozenskys/iOS-Demo-App | 0 | 7037436 | using System;
using UIKit;
namespace App2
{
public partial class DataViewController : UIViewController
{
public string DataObject
{
get;
set;
}
protected DataViewController(IntPtr handle) : base(handle)
{
// Note: this .ctor should ... |
src/MiniSocket.Server/ServerNotifyEventArgs.cs | jianyuyanyu/MiniCommunication | 0 | 7037437 | <reponame>jianyuyanyu/MiniCommunication
using System;
namespace MiniSocket.Server
{
/// <summary>
/// 服务器消息通知事件参数
/// </summary>
public class ServerNotifyEventArgs : EventArgs
{
/// <summary>
/// 获取服务器的消息
/// </summary>
public string Message { get; }
/// <s... |
Sultanlar/Sultanlar.DatabaseObject/Internet/IadeHizmet.cs | dogukanalan/Sultanlar | 0 | 7037438 | <reponame>dogukanalan/Sultanlar<gh_stars>0
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using System.Collections;
using System.Web.UI.WebControls;
namespace Sultanlar.DatabaseObject.Internet
{
public class IadeHizmet
{
... |
History/Website/Anniversary/Site/Admin/UsersManage.aspx.cs | mind0n/hive | 5 | 7037439 | <filename>History/Website/Anniversary/Site/Admin/UsersManage.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using DAL.Entities;
using Site.Admin.AdminDAL;
using System.Web.Caching;
namespace Site.Adm... |
TMDB.Core/Entities/People/TVEpisodesGuestStar.cs | JeremiSharkboy/TMDb.Client | 0 | 7037440 | <filename>TMDB.Core/Entities/People/TVEpisodesGuestStar.cs<gh_stars>0
using Newtonsoft.Json;
namespace TMDB.Core.Entities.People
{
public class TVEpisodesGuestStar
{
[JsonProperty("adult")]
public virtual bool Adult { get; set; }
[JsonProperty("popularity")]
public virtual dou... |
Aura.Core/Messages/PromptMessage.cs | ermau/Aura | 0 | 7037441 | using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
namespace Aura.Messages
{
internal class PromptMessage
{
public PromptMessage (string title, string message, string positiveAction)
{
if (string.IsNullOrWhiteSpace (title))
throw new ArgumentException ("messa... |
LuduStack.Domain.Messaging/Queries/GamificationLevel/GetGamificationLevelByNumberQuery.cs | anteatergames/ludustack | 8 | 7037442 | using LuduStack.Domain.Interfaces.Repository;
using LuduStack.Infra.CrossCutting.Messaging;
using MediatR;
using System.Threading;
using System.Threading.Tasks;
namespace LuduStack.Domain.Messaging.Queries.GamificationLevel
{
public class GetGamificationLevelByNumberQuery : Query<Models.GamificationLevel>
{
... |
ThinkingHome.Migrator.Tests/Providers/MySqlTransformationProviderTest.cs | eatskolnikov/migrator | 25 | 7037443 | <reponame>eatskolnikov/migrator
using System;
using System.Data;
using Microsoft.Extensions.Logging;
using ThinkingHome.Migrator.Framework;
using ThinkingHome.Migrator.Framework.Interfaces;
using ThinkingHome.Migrator.Providers.MySql;
using Xunit;
namespace ThinkingHome.Migrator.Tests.Providers
{
public class MyS... |
CSharp OOP Basics/Inheritance - Exercises/Mankind/Mankind/Validator.cs | valkin88/CSharp-Fundamentals | 1 | 7037444 | using System;
using System.Collections.Generic;
using System.Text;
using System.Text.RegularExpressions;
public static class Validator
{
public static void ValidateName(string value, string type, int minLenght)
{
if (Char.IsLower(value[0]))
{
throw new ArgumentException($"Expe... |
src/JsonApiDotNetCore/Repositories/DbContextExtensions.cs | jlits/JsonApiDotNetCore | 0 | 7037445 | using System;
using System.Collections.Generic;
using System.Linq;
using JetBrains.Annotations;
using JsonApiDotNetCore.Resources;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.ChangeTracking;
namespace JsonApiDotNetCore.Repositories
{
[PublicAPI]
public static class DbContextExtensi... |
AtomicCore/Validation/ValidationConst.cs | migregorio/AtomicCore | 3 | 7037446 | <reponame>migregorio/AtomicCore<gh_stars>1-10
namespace AtomicCore.Validation
{
/// <summary>
/// 正则表达式验证常量
/// </summary>
public static class ValidationConst
{
/// <summary>
/// 小数点后二位
/// </summary>
public const string DotNet_DecimalF2 = @"^(?:(?:[0])|(?:[1-9][0-9]... |
src/System.Private.ServiceModel/tools/IISHostedWcfService/App_code/WcfService.4.4.0.cs | richamo/wcf | 1,794 | 7037447 | <reponame>richamo/wcf
// 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.ServiceModel;
namespace WcfService
{
[ServiceBehavior(AddressFilterMode = A... |
multiple-languages/dotnet/AlibabaCloud.SDK.ROS.CDK.Cxapi/AlibabaCloud/SDK/ROS/CDK/Cxapi/MetadataEntryResult.cs | piotr-kalanski/Resource-Orchestration-Service-Cloud-Development-Kit | 0 | 7037448 | <filename>multiple-languages/dotnet/AlibabaCloud.SDK.ROS.CDK.Cxapi/AlibabaCloud/SDK/ROS/CDK/Cxapi/MetadataEntryResult.cs
using Amazon.JSII.Runtime.Deputy;
#pragma warning disable CS0672,CS0809,CS1591
namespace AlibabaCloud.SDK.ROS.CDK.Cxapi
{
#pragma warning disable CS8618
[JsiiByValue(fqn: "@alicloud/ros-cd... |
src/Neo.Compiler.MSIL/Debug.cs | NewEconoLab/neo-devpack-dotnet | 1 | 7037449 | <reponame>NewEconoLab/neo-devpack-dotnet
using Neo.Compiler.MSIL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
namespace Neo.Compiler
{
class Debug
{
public static void DebugOutput(string outpath, NeoModule module,... |
src/Walltage.Web/Controllers/AccountController.cs | xJason21/Walltage | 0 | 7037450 | using log4net;
using System.Web.Mvc;
using Walltage.Service;
using Walltage.Service.Models;
using Walltage.Service.Services;
using Walltage.Service.Wrappers;
using Walltage.Web.Infrastructures;
namespace Walltage.Web.Controllers
{
public class AccountController : Controller
{
private readonly IUserSer... |
trunk/model/postprocessing/common/log-rotation/FactoriesRegistry.cs | rkapl123/logjoint | 44 | 7037451 | <reponame>rkapl123/logjoint
using System.Collections.Generic;
using System.Xml;
using System.Xml.Linq;
namespace LogJoint.Postprocessing
{
class LogPartTokenFactories: ILogPartTokenFactories
{
const string rotatedLogPartTokenEltName = "rotatedLogPartToken";
const string factoryAttributeName = "_factory";
re... |
UI/Views/ArenaView.cs | mcabezas/superminesweeper | 1 | 7037452 | using Minesweeper.Layer;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using BE;
using UI;
namespace Minesweeper.Views
{
internal class ArenaView : UserControl
{
private Control back... |
src/Gripper.ChromeDevTools/Media/PlayerErrorsRaisedEvent.cs | tomaskrupka/WebScrapingServices | 0 | 7037453 | namespace Gripper.ChromeDevTools.Media
{
using Newtonsoft.Json;
/// <summary>
/// Send a list of any errors that need to be delivered.
/// </summary>
public sealed class PlayerErrorsRaisedEvent : IEvent
{
/// <summary>
/// Gets or sets the playerId
/// </summary>
... |
BattleNet/Clans/ClanRemovalResponseEventArgs.cs | inrg/BNSharp2019 | 4 | 7037454 | <gh_stars>1-10
using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;
namespace BNSharp.BattleNet.Clans
{
/// <summary>
/// Contains information about the result of an attempt of the client to remove another member from the clan.
/// </summary>
[DataCont... |
ColumnReductionAnalysis/BulkScopeAnalyzer/Options.cs | Bhaskers-Blu-Org2/rudder | 12 | 7037455 | <reponame>Bhaskers-Blu-Org2/rudder<filename>ColumnReductionAnalysis/BulkScopeAnalyzer/Options.cs<gh_stars>10-100
using System;
using System.IO;
namespace BulkScopeAnalyzer
{
public class ParsingOptionsException : Exception
{
public ParsingOptionsException (string message) : base (message)
... |
TournamentTracker/Pairing.cs | QuickenTheDead/TournamentTracker | 0 | 7037456 | <filename>TournamentTracker/Pairing.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace TournamentTracker
{
public class Pairing : IComparable<Pairing>
{
private Player myPlayer1 = new Player();
private Player myPlayer2 = new Player();
... |
src/AElf.ContractTestBase/ContractTestKit/ChainInitializationOptions.cs | wikiluo/AElf | 948 | 7037457 | using AElf.Types;
namespace AElf.ContractTestBase.ContractTestKit
{
public class ChainInitializationOptions
{
public int ChainId { get; set; }
public string Symbol { get; set; }
public Address ParentChainTokenContractAddress { get; set; }
public int ParentChainId { get; set; }
... |
QLTV.DAL/SachDAL.cs | Hieunv1996/QuanLyThuVien | 1 | 7037458 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using System.Data.SqlClient;
using QLTV.Entity;
namespace QLTV.DAL
{
public class SachDAL : SqlDataProvider
{
public List<Sach> getAll(string Top, string Where, string... |
SugarFreeHealthyDiet/Startup.cs | johnwatson484/sugar-free-healthy-diet | 0 | 7037459 | <gh_stars>0
using System;
using System.Linq;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Hosting;
using Microsoft.EntityFrameworkCore;
using SugarFreeHealthyDiet.Data;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection... |
DesignPatterns/FactoryMethod/Animals/Lion.cs | Pioda/DesignPatterns | 0 | 7037460 | using FactoryMethod.Enums;
using FactoryMethod.Interfaces;
using System;
using System.Collections.Generic;
namespace FactoryMethod.Animals
{
internal class Lion : IAnimal
{
private List<Food> PreferedFood;
private readonly string Name;
internal Lion()
{
PreferedFoo... |
UAlive/Editor/Generation/Units/CodeGeneratorExtensions.cs | Tanner555/UAlive | 1 | 7037461 | using Ludiq.Bolt;
using Ludiq;
namespace Lasm.UAlive
{
public static class CodeGeneratorExtensions
{
public static ICodeGenerator CodeGenerator(this IUnit unit)
{
return CodeGeneratorProvider.instance.GetDecorator(unit);
}
public static ICodeGenerator CodeGenerator... |
src/Rainbow/Storage/FsCache.cs | kamsar/Gibson | 17 | 7037462 | using System;
using System.Collections.Concurrent;
using System.IO;
using Sitecore.IO;
namespace Rainbow.Storage
{
/// <summary>
/// Implements a filesystem cache that invalidates entries when the file last write time changes
/// Cache entries present for less than 1s are treated as always valid to reduce i/o
///... |
XenAdminTests/TreeTests/MultiSelectTreeViewTests.cs | CraigOrendi/xenadmin | 1 | 7037463 | <filename>XenAdminTests/TreeTests/MultiSelectTreeViewTests.cs
/* Copyright (c) Citrix Systems, Inc.
* 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 ... |
AliyunDnsSDK/Model/Requests/IDescribeDomainRecords.cs | geeiot/AliyunDnsSDK | 0 | 7037464 | <gh_stars>0
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AliyunDnsSDK.Model.Requests
{
/// <summary>
/// 获取解析记录列表
/// 更新时间:2017-06-07 13:26:11
/// 文档地址:https://help.aliyun.com/document_detail/29776.html?spm=a2c4g.11186623... |
04.WorkingWithAbstraction-Exercise/05.GreedyTimes/GreedyTimes.cs | ShadyObeyd/CSharp-OOP-Basics-February2018 | 1 | 7037465 | using System;
using System.Collections.Generic;
using System.Linq;
namespace P05_GreedyTimes
{
public class Potato
{
static void Main()
{
long bagLimit = long.Parse(Console.ReadLine());
string[] valuableTokens = Console.ReadLine().Split(' ', StringSplitOptions.RemoveEmp... |
StorageLib/RawStateEnum.cs | PeterHuberSg/StorageLib | 0 | 7037466 | using System;
using System.Collections.Generic;
using System.Text;
namespace StorageLib {
/// <summary>
/// Indicates if a class instance read from a CSV file is marked Read, Updated or Deleted. New means it was not
/// read from a CSV file.
/// </summary>
public enum RawStateEnum {
New,
Read,
... |
PASS/MenuPanelPage.xaml.cs | kejdajar/PASS | 1 | 7037468 | 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;... |
SharedCode.Data/IAddOrUpdateDescriptor.cs | improvgroup/sharedcode | 0 | 7037469 | // <copyright file="IAddOrUpdateDescriptor.cs" company="improvGroup, LLC">
// Copyright © 2021 improvGroup, LLC. All Rights Reserved.
// </copyright>
namespace SharedCode.Data;
/// <summary>
/// The add or update descriptor interface.
/// </summary>
public interface IAddOrUpdateDescriptor
{
/// <summary>
/// Ge... |
cqrs/SeparateModels/Domain/PolicyVersion.cs | sharmasourabh/ddd | 0 | 7037470 | using System;
using System.Collections.Generic;
using System.Linq;
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
using NodaMoney;
namespace SeparateModels.Domain
{
public class PolicyVersion
{
public Guid Id { get; private set; }
public int VersionNumber { get; private set; }
... |
src/Resources/ResourceManager/SdkModels/Deployments/PSDeploymentCmdletParameters.cs | johnduckmanton/azure-powershell | 2 | 7037471 | <reponame>johnduckmanton/azure-powershell
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// ----------------------------------------------------------------------------------
usin... |
ObserverPattern/3-ObserverImplementationPull/Subjects/IWeatherDataSubject.cs | mbrajk/design-patterns | 2 | 7037472 | using ObserverPattern._3_ObserverImplementationPull.Observers;
namespace ObserverPattern._3_ObserverImplementationPull.Subjects;
public interface IWeatherDataSubject
{
public void RegisterDisplay(IObserver observer);
public void RemoveDisplay(IObserver observer);
public void NotifyDisplays();
public ... |
src/Cake.Common/Tools/SignTool/SignToolSignAliases.cs | janhartmann/cake | 1 | 7037473 | // 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.Collections.Generic;
using System.Linq;
using Cake.Core;
using Cake.Core.Annotations;
us... |
HciLab.KoBeLU.InterfacesAndDataModel/Data/BlobObject.cs | HCUM/kobelu | 0 | 7037474 | // <copyright file=BlobObject.cs
// <copyright>
// Copyright (c) 2016, University of Stuttgart
// 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 limitati... |
HOI4-ModificationsConstructor/Tools/Parser/StateParcer.cs | Viktor-Skopin/HOI4-StateEditor | 0 | 7037475 | <reponame>Viktor-Skopin/HOI4-StateEditor
using System.Globalization;
using System.Linq;
using System.Text.RegularExpressions;
namespace HOI4_ModificationsConstructor
{
/// <summary>
/// Парсер файлов, содержащих информацию о регионах.
/// </summary>
public class StateParcer
{
/// <summary>... |
QuinzePontosCore/src/Jcf.QuinzePontos.Api/Controllers/HomeController.cs | joaocarias/jcf-quinze-pontos | 0 | 7037476 | <gh_stars>0
using Jcf.Client.LoteriaCaixa.Api.LoteriaCaixaApi;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
namespace Jcf.QuinzePontos.Api.Controllers
{
[Route("api/[controller]")]
[ApiController]
public class HomeController : ControllerBase
... |
src/Ops.Web/Startup.cs | MCLD/ocuda | 0 | 7037477 | using System;
using System.IO;
using System.Net.Http;
using Microsoft.AspNetCore.Authentication.Cookies;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.DataProtection;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc.ModelBinding;
using Microsoft.AspNe... |
src/aspnet/src/mvc5/HttpBadRequestException.cs | skykingjwc/cobweb | 4 | 7037478 | using System.Net;
using System.Web;
namespace Aranasoft.Cobweb.Mvc {
public class HttpBadRequestException : HttpException {
public HttpBadRequestException(string reason) : base((int) HttpStatusCode.BadRequest, reason) {}
}
}
|
IUSystem/Areas/Identity/Pages/Students/EditStudent.cshtml | Jordan3900/IUSystem | 0 | 7037479 | <reponame>Jordan3900/IUSystem<filename>IUSystem/Areas/Identity/Pages/Students/EditStudent.cshtml
@page
@model IUSystem.Areas.Identity.Pages.Students.EditStudentModel
@{
ViewData["Title"] = "EditStudent";
}
<div class="container">
<h3>Edit Student</h3>
<hr />
<br />
<form method="post">
<in... |
Runtime/CollisionSender.cs | edwonedwon/Unity-Tools | 1 | 7037480 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Edwon.Tools
{
public interface ICollisionReceiver
{
void OnCollisionEnter(Collision collision);
void OnCollisionStay(Collision collision);
void OnCollisionExit(Collision collision);
... |
src/LocalDiscogsApi/Models/Discogs/Urls.cs | mark-rafter/LocalDiscogsApi | 0 | 7037481 | namespace LocalDiscogsApi.Models.Discogs
{
public class Urls
{
public Urls(string next)
{
Next = next;
}
public string Next { get; private set; }
}
}
|
OpenApiContracts/OpenApiContracts.Flurl/OpenApiExtensions.cs | OpenApiContracts/openapicontracts-dotnet | 0 | 7037482 | <reponame>OpenApiContracts/openapicontracts-dotnet
using Flurl.Http.Testing;
using Microsoft.OpenApi.Models;
using OpenApiContracts.Repository;
using System.Linq;
namespace OpenApiContracts.Flurl
{
public static class OpenApiExtensions
{
/// <summary>
/// Creates open api document from defined... |
AppData/Local/Temp/SpaceEngineers/504209260.sbm_Economy.scripts/MessageMarketManagePlayer.cs | Blue64/Space_Engineers | 0 | 7037483 | namespace Economy.scripts.Messages
{
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using EconConfig;
using EconStructures;
using ProtoBuf;
using Sandbox.Definitions;
using Sandbox.ModAPI;
using VR... |
Trace/Anno.Domain/Function/SysFunc.cs | staoran/Viper | 571 | 7037484 | using System;
using System.Collections.Generic;
using System.Text;
using Anno.Domain.BaseModel;
namespace Anno.Domain.Function
{
public class SysFunc : AggregateRoot
{
public SysFunc()
{
}
public SysFunc(long id)
{
this.ID = id;
}
#region 属... |
Apicalypse.DotNet.Tests/Models/Game.cs | Kuchulem/Apicalypse.DotNet | 0 | 7037486 | using System;
using System.Collections.Generic;
using System.Text;
namespace Apicalypse.DotNet.Tests.Models
{
class Game
{
public string Name { get; set; }
public string Slug { get; set; }
public uint Follows { get; set; }
public IEnumerable<int> AlternativeNames { get; set;... |
csharp/Database/Revenj.DatabasePersistence.Oracle/Setup.cs | hperadin/revenj | 4 | 7037487 | <reponame>hperadin/revenj
using System.Configuration;
using Revenj.DatabasePersistence.Oracle.QueryGeneration;
using Revenj.DomainPatterns;
using Revenj.Extensibility;
namespace Revenj.DatabasePersistence.Oracle
{
public static class Setup
{
public static int MinBatchSize { get; private set; }
stati... |
src/CreditCard.EF/CreditCard.cs | rafalpienkowski/aggregates-storage | 0 | 7037488 | using System;
namespace CreditCard.EF
{
public class CreditCard
{
public Guid Id { get; private set; }
public Guid OwnerId { get; private set; }
public decimal? Limit { get; private set; }
public decimal AvaliableLimit => Limit.HasValue ? Limit.Value : 0;
pu... |
src/Reviewer.Core/Pages/EditReviewPage.xaml.cs | Luyunmt/xamarin-azure-businessreview | 57 | 7037489 | using System;
using System.Collections.Generic;
using Xamarin.Forms;
using Reviewer.SharedModels;
using System.Threading.Tasks;
using System.Linq;
namespace Reviewer.Core
{
public partial class EditReviewPage : ContentPage
{
EditReviewViewModel vm;
bool isNew;
public EditReviewPage(s... |
src/MemberService/Pages/Event/Create.cshtml | bardarswingclub/MemberService | 0 | 7037490 | <filename>src/MemberService/Pages/Event/Create.cshtml
@model EventInputModel
@{
ViewData["ContainerClass"] = "container-fluid";
ViewData["Title"] = "Opprett nytt arrangement";
}
<vc:semester-header id="@Model.SemesterId"></vc:semester-header>
<h2>@ViewData["Title"]</h2>
<form method="POST" asp-action="Create... |
src/Api/SaCodeWhite.Api/Models/EmergencyDepartment/TriageCategoryDto.cs | dmariogatto/sacodewhite | 0 | 7037492 | <filename>src/Api/SaCodeWhite.Api/Models/EmergencyDepartment/TriageCategoryDto.cs
using Newtonsoft.Json;
namespace SaCodeWhite.Api.Models.EmergencyDepartment
{
public class TriageCategoryDto : BaseDto
{
[JsonProperty("CAT")]
public string Category { get; set; }
[JsonProperty("WTS")]
... |
tests/GeneratedClientTests.cs | cythral/identity-client | 0 | 7037493 | using System.Net.Http;
using System.Net.Http.Headers;
using FluentAssertions;
using NUnit.Framework;
namespace Brighid.Identity.Client
{
#pragma warning disable IDE0055, IDE0017
public class GeneratedClientTests
{
[TestFixture]
[Category("Integration")]
public class SetToken
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.