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 |
|---|---|---|---|---|
src/OcadParser.Renderer/Vector/UlongExtension.cs | yannisgu/OcadParser | 1 | 7031734 | namespace RP.Math
{
using System.Collections.Generic;
/// <summary>
/// Extention methods for ULong
/// </summary>
/// <acknowlagement>http://blogs.msdn.com/b/ericlippert/archive/2011/02/17/looking-inside-a-double.aspx</acknowlagement>
public static class UlongExtension
{
public sta... |
src/Edgar.SandboxEvolutionRunner/Scenarios/OldAndNewScenario.cs | OndrejNepozitek/ProceduralLevelGenerator | 179 | 7031735 | using System;
using System.Linq;
using System.Threading.Tasks;
using Edgar.Legacy.Core.ChainDecompositions;
using Edgar.Legacy.Core.LayoutEvolvers.SimulatedAnnealing;
using Edgar.Legacy.Core.LayoutGenerators.DungeonGenerator;
using SandboxEvolutionRunner.Evolution;
using SandboxEvolutionRunner.Utils;
namespace Sandbo... |
src/Cake.7zip/Switches/SwitchExcludeArchiveFilename.cs | DiDoHH/Cake.7zip | 4 | 7031736 | using Cake.Core;
using Cake.Core.IO;
using Cake.SevenZip.Builder;
namespace Cake.SevenZip.Switches
{
/// <summary>
/// <para>
/// -ax (Exclude archive filenames) switch.
/// </para>
/// <para>
/// Specifies archives to be excluded from the operation.
/// Multiple exclude archive switches ar... |
src/AddIns/Misc/HelpViewer/Source/Controls/SearchPadControl.xaml.cs | dongdapeng110/SharpDevelopTest | 11 | 7031737 | // 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.Generic;
using System.Collections.ObjectModel;
using System.Text;
using System.Windows;... |
OwinConsoleSample/OwinConsoleSample/DevDataController.cs | mustafasacli/OwinConsoleSample | 0 | 7031738 | <filename>OwinConsoleSample/OwinConsoleSample/DevDataController.cs
using NHibernate;
using OwinConsoleSample.DAL;
using OwinConsoleSample.Types;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Http;
using System.Web.Http.Description;
... |
Source/Norma/Models/Libraries/CEF.cs | mika-f/Norma | 3 | 7031739 | namespace Norma.Models.Libraries
{
// ReSharper disable once InconsistentNaming
internal class CEF : Library
{
#region Overrides of Library
public override string Name => "CEF";
public override string Url => "https://bitbucket.org/chromiumembedded/cef";
public override str... |
BasicXamarin/BasicXamarin.Android/ServiceRegistry.cs | bartekczapla/basic-xamarin-webview | 0 | 7031740 | <reponame>bartekczapla/basic-xamarin-webview<filename>BasicXamarin/BasicXamarin.Android/ServiceRegistry.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Android.App;
using Android.Content;
using Android.OS;
using Android.Runtime;
using Android.Views;
using Android.Widget;... |
src/Client/NetDaemon.HassClient.Tests/ExtensionsTest/MqttEntityManagerTests/JsonNodeExtensionTests.cs | helto4real/netdaemon | 14 | 7031741 | <filename>src/Client/NetDaemon.HassClient.Tests/ExtensionsTest/MqttEntityManagerTests/JsonNodeExtensionTests.cs
using System.Collections;
using System.Text.Json.Nodes;
using NetDaemon.Extensions.MqttEntityManager.Helpers;
namespace NetDaemon.HassClient.Tests.ExtensionsTest.MqttEntityManagerTests;
public class JsonNod... |
src/scintilla/ScintillaNET/Printing/PageInformation.cs | cafesua/mygeneration | 6 | 7031742 | <filename>src/scintilla/ScintillaNET/Printing/PageInformation.cs
using System;
using System.Drawing;
namespace Scintilla.Printing {
/// <summary>
/// Type of border to print for a Page Information section
/// </summary>
public enum PageInformationBorder {
/// <summary>
/// No border
... |
Assets/Scripts/Utilities/EndGame.cs | khiemnd777/100 | 0 | 7031743 | <filename>Assets/Scripts/Utilities/EndGame.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class EndGame : MonoBehaviour
{
[SerializeField]
SpriteRenderer _theEndBackgroundPrefab;
[SerializeField]
SpriteRenderer _add... |
aspnet-core/src/Testing.Web.Mvc/Views/Teams/_PrintList.cshtml | TareqNewazShahriar-Secondary/AspnetBoilerplate-Crud-Sample | 1 | 7031744 | <filename>aspnet-core/src/Testing.Web.Mvc/Views/Teams/_PrintList.cshtml
@model List<Testing.Teams.Dto.TeamDto>
@{ Layout = null; }
<div data-printing>
<h3>Teams</h3>
<table>
<thead>
<tr>
<th>ID</th>
<th>Name</th>
</tr>
</thead>
@fo... |
QuickPay/Models/Agreements.cs | QuickPay/quickpay-dotnet-client | 9 | 7031745 | using System;
using System.Collections.Generic;
namespace Quickpay.Models
{
[Obsolete ("This is an example class, please do not use in production")]
public class AclPermission
{
public string resource { get; set; }
public bool get { get; set; }
public bool post { get; set; }
public bool put { get; set; }
... |
SourceCodes/ConfigurationEncryptor.ConsoleApp/Sections.cs | aliencube/Configuration-Encryptor | 1 | 7031746 | using System;
namespace Aliencube.ConfigurationEncryptor.ConsoleApp
{
/// <summary>
/// This determines the configuration sections.
/// </summary>
[Flags]
internal enum Sections
{
/// <summary>
/// Identifies that no section is given.
/// </summary>
None = 0,
... |
src/Openchain.Server/Models/DependencyResolver.cs | crazyquark/openchain | 0 | 7031748 | // Copyright 2015 Coinprism, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agree... |
EthScanNet.Lib/EScanNetwork.cs | jackbourkemckenna/Etherscan.Net | 9 | 7031749 | // ReSharper disable IdentifierTypo
using System;
namespace EthScanNet.Lib
{
public class EScanNetwork
{
public static readonly EScanNetwork MainNet = new("https://api.etherscan.io/api", false);
[Obsolete("Will be replaced with MainNet and deprecated")]
public static readonly EScanNetw... |
XOutput/Tools/HidGuardianManager.cs | lvovan/Xoutput-reorder | 0 | 7031750 | using Microsoft.Win32;
using System.Collections.Generic;
namespace XOutput.Tools
{
public class HidGuardianManager
{
static readonly string PARAMETERS = "SYSTEM\\CurrentControlSet\\Services\\HidGuardian\\Parameters";
static readonly string WHITE_LIST = PARAMETERS + "\\Whitelist";
stati... |
src/SearchEngine/Masa.BuildingBlocks.SearchEngine.AutoComplete/BaseAutoCompleteClient.cs | masastack/MASA.BuildingBlocks- | 64 | 7031751 | <gh_stars>10-100
// Copyright (c) MASA Stack All rights reserved.
// Licensed under the MIT License. See LICENSE.txt in the project root for license information.
namespace Masa.BuildingBlocks.SearchEngine.AutoComplete;
public abstract class BaseAutoCompleteClient : IAutoCompleteClient
{
public virtual Task<GetRes... |
src/Microsoft.TestPlatform.ObjectModel/DataCollector/InProcDataCollector/TestSessionStartArgs.cs | wjk/dotnet-vstest | 0 | 7031753 | <gh_stars>0
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace Microsoft.VisualStudio.TestPlatform.ObjectModel.DataCollector.InProcDataCollector
{
using System;
/// <summary>
/// The t... |
UniversityStudentSystem/Data/UniversityStudentSystem.Data/Migrations/Helpers/RandomUserDataProvider.cs | M-Yankov/UniversityStudentSystem | 0 | 7031754 | namespace UniversityStudentSystem.Data.Migrations.Helpers
{
using System;
/// <summary>
/// Information gathered from https://randomuser.me/
/// </summary>
public class RandomUserDataProvider
{
private static Random random = new Random();
private UserData userData;
pub... |
Bittrex.Net/Objects/BittrexCurrency.cs | ridicoulous/Bittrex.Net | 0 | 7031756 | <reponame>ridicoulous/Bittrex.Net
using Newtonsoft.Json;
namespace Bittrex.Net.Objects
{
/// <summary>
/// Information about a currency
/// </summary>
public class BittrexCurrency
{
/// <summary>
/// The abbreviation of the currency
/// </summary>
public string Curr... |
src/Upcloud/Model/StorageAccessType.cs | xafero/upcloud-c-sharp-api | 0 | 7031757 | /*
* Upcloud api
*
* The UpCloud API consists of operations used to control resources on UpCloud. The API is a web service interface. HTTPS is used to connect to the API. The API follows the principles of a RESTful web service wherever possible. The base URL for all API operations is https://api.upcloud.com/. All ... |
Code/Chameleon.Entity/MetaObject/Interface/InterfaceSetting.cs | sevenTiny/Chameleon | 0 | 7031759 | <gh_stars>0
using SevenTiny.Bantina.Bankinate.Attributes;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
namespace Chameleon.Entity
{
/// <summary>
/// 接口设置
/// </summary>
[Table]
public class InterfaceSetting : MetaObjectBase
{
/// <sum... |
ModernSlavery.WebUI.StaticFiles/DependencyModule.cs | mccabesp/ModernSlavery-Beta | 0 | 7031760 | using System;
using System.Collections.Generic;
using System.IO;
using System.Reflection;
using System.Threading.Tasks;
using Autofac;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.FileProviders;
using Microsoft.Extension... |
Git.Lfx/LfxFiles.cs | kingces95/LfsEx | 2 | 7031761 | using System;
using System.IO;
using System.Diagnostics;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace Git.Lfx {
[Flags]
public enum LfxFileFlags {
Tracked = 1 << 0,
Untracked = 1 << 1,
Pointer = 1 << 2,
Content = 1 << 3,
Defa... |
MewPipe.Website/Views/Videos/UploadVideo.cshtml | AlexisChevalier/MewPipe | 0 | 7031762 | <gh_stars>0
@{
ViewBag.Title = "Upload a video";
}
@section scripts
{
@Scripts.Render("~/scripts/upload")
<script type="text/javascript">
window.uploadVideoModule.setUploadUrl("http://videos-repository.mewpipe.local:44403/api/videosdata?uploadRequestId=@ViewBag.Token.Id&returnType=json");
</sc... |
dotnet/src/MyDotey.QuantileEstimator/Gk/GkQuantileEstimatorConfig.cs | mydotey/quantile-estimator | 10 | 7031765 | using System;
using System.Collections.Generic;
/**
* @author koqizhao
*
* Apr 1, 2018
*/
namespace MyDotey.Quantile.Gk
{
public class GkQuantileEstimatorConfig<T>
{
public virtual IComparer<T> Comparer { get; }
public virtual double Error { get; }
public virtual int CompactThreshol... |
NetFramework47Test/UnitTest.cs | bytebarian/moqito | 0 | 7031766 | <reponame>bytebarian/moqito
using Mockingbird;
using NUnit.Framework;
using System;
using System.Reflection;
using System.Runtime.CompilerServices;
namespace NetFramework47Test
{
[TestFixture]
public class UnitTest
{
public Func<int, int, int> act;
[SetUp]
public void Setup()
... |
Models.Tests/PositionTest/GetCoordinatesWithOffSet_Should.cs | Alexander-Stanchev/RPG-Project | 0 | 7031767 | using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Models.Tests.PositionTest
{
[TestClass]
public class GetCoordinatesWithOffSet_Should
{
[TestMethod]
public void ReturnCorrectCoordinates()
{
// Arrange
// Act
// Assert
}
... |
OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs | Asterionworld/ether | 25 | 7031768 | <filename>OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs
/*
* Copyright (c) <NAME> Developers
* Copyright (c) Contributors, http://opensimulator.org/
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions a... |
02C#OOP/02-OOPPart01/Problem03AnimalsZoo/StartUp.cs | dobri19/TelerikHomeWork | 0 | 7031769 | using System;
using System.Collections.Generic;
namespace P03AnimalsZoo
{
public class StartUp
{
public static void Main(string[] args)
{
TestAnimalsZoo.PrintZoo();
Console.WriteLine();
TestAnimalsZoo.PrintAges();
}
}
}
|
SteuerSoft.Network.Protocol.Payloads/Generic/DictionaryData.cs | 2steuer/wap-protocol | 0 | 7031770 | <gh_stars>0
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SteuerSoft.Network.Protocol.Attributes;
namespace SteuerSoft.Network.Protocol.Payloads.Generic
{
[WapPayload("msg.generic.Dictionary")]
public class DictionaryData
{
... |
Builder/UI.Wpf/Presentation/ItemEditor/ViewModels/ScoreEditors/V2AdvResponseCategoryScoringVM.cs | stichting-cito/QuestifyBuilder | 3 | 7031771 | using System.Collections.Generic;
using Cito.Tester.ContentModel;
using Questify.Builder.Logic.ContentModel.Scoring;
using Questify.Builder.UI.Wpf.Presentation.ItemEditor.ViewModels.ScoreEditors.concreteAdv;
namespace Questify.Builder.UI.Wpf.Presentation.ItemEditor.ViewModels.ScoreEditors
{
class V2AdvResponseCat... |
src/Timetabling.Internal/Problem.cs | edongashi/itc-2019 | 14 | 7031772 | using System;
using System.Collections.Generic;
using System.Linq;
using Timetabling.Internal.Specialized;
using Timetabling.Internal.Utils;
namespace Timetabling.Internal
{
public class Problem
{
private const string CorruptInstance = "Corrupt problem instance.";
private static Class Cleanup... |
ARKBreedingStats/species/CreatureColored.cs | FelixJongleur42/ARKStatsExtractor | 0 | 7031773 | using System;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Drawing.Imaging;
using System.IO;
using System.Linq;
using System.Text;
using ARKBreedingStats.Library;
namespace ARKBreedingStats.species
{
internal static class CreatureColored
{
private const string Extension = ".png";... |
wch/wch/tool/user/UpdUser.ashx.cs | HoursX/WCH | 0 | 7031774 | <filename>wch/wch/tool/user/UpdUser.ashx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Newtonsoft.Json;
namespace wch.tool.user
{
/// <summary>
/// UpdUser 的摘要说明
/// </summary>
public class UpdUser : IHttpHandler
{
public void ProcessRequest... |
Src/Identity/Identity.sdk/Models/UserExtensions.cs | khooversoft/Spin | 0 | 7031775 | <filename>Src/Identity/Identity.sdk/Models/UserExtensions.cs
using ArtifactStore.sdk.Model;
using Toolbox.Extensions;
using Toolbox.Tools;
namespace Identity.sdk.Models
{
public static class UserExtensions
{
public static void Verify(this User user)
{
user.VerifyNotNull(nameof(user... |
src/Employer/ESFA.DAS.ProvideFeedback.Employer.Application/ProviderRefreshService.cs | uk-gov-mirror/SkillsFundingAgency.das-provide-feedback-employer | 0 | 7031776 | <filename>src/Employer/ESFA.DAS.ProvideFeedback.Employer.Application/ProviderRefreshService.cs
using System.Linq;
using System.Threading.Tasks;
using ESFA.DAS.ProvideFeedback.Data;
using ESFA.DAS.ProvideFeedback.Domain.Entities.Models;
using SFA.DAS.Providers.Api.Client;
namespace ESFA.DAS.ProvideFeedback.Employer.Ap... |
Assets/Scripts/FacialExpression.cs | RustyXP/projectflamingo | 0 | 7031777 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class FacialExpression : MonoBehaviour {
ImageResultsParser userEmotions;
Transform player;
public Renderer FaceRenderer;
private Animator animator;
// Use this for initialization
void Start () {
player = GameObject.Find... |
Controllers/SelectedRobotController.cs | rigganhart/RobotSelection | 0 | 7031778 | <reponame>rigganhart/RobotSelection
using RobotSelection.Models;
using RobotSelection.Services;
using Microsoft.AspNetCore.Mvc;
namespace RobotSelection.Controllers;
[ApiController]
[Route("[controller]")]
public class SelectRobotController: ControllerBase
{
public SelectRobotController()
{
}
[HttpPost]
pu... |
MainForm.Designer.cs | igtampe/AlbumSplitter | 0 | 7031779 | <reponame>igtampe/AlbumSplitter
namespace AlbumSplitter {
partial class MainForm {
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
... |
PLImaging_2017 - nowworking/ProcessingLib/Epi/EpiCore_Data.cs | pimier15/ImagingSystem_Old | 0 | 7031780 | <reponame>pimier15/ImagingSystem_Old<gh_stars>0
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Emgu.CV;
using Emgu.CV.Structure;
using Emgu.Util;
using Emgu.CV.CvEnum;
using Emgu.CV.UI;
using Emgu.CV.Util;
using System.Drawing;
using EmguCV_Ext... |
src/HotChocolate/AspNetCore/src/AspNetCore/Subscriptions/ProtocolNames.cs | grounzero/hotchocolate | 0 | 7031781 | <reponame>grounzero/hotchocolate<filename>src/HotChocolate/AspNetCore/src/AspNetCore/Subscriptions/ProtocolNames.cs
namespace HotChocolate.AspNetCore.Subscriptions;
internal static class ProtocolNames
{
// ReSharper disable InconsistentNaming
public const string GraphQL_Transport_WS = "graphql-transport-ws";
... |
Nucleus/Nucleus.Game/TurnContext.cs | escooo/Nucleus | 0 | 7031782 | using Nucleus.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Nucleus.Game
{
/// <summary>
/// Object to contain context data about a turn in a turn-based game
/// </summary>
[Serializable]
public class TurnContex... |
Twitter/Services/Twitter.Services.Data/TweetService.cs | puhabg/TwitterLikeApp | 0 | 7031783 | <filename>Twitter/Services/Twitter.Services.Data/TweetService.cs
namespace Twitter.Services.Data
{
using System;
using System.Linq;
using Contracts;
using Twitter.Data.Common;
using Twitter.Data.Models;
public class TweetService : ITweetService
{
private readonly IDbRepository<Twee... |
Projects/AAXDataEntityPerfTest/ConsoleApp1/Connected Services/D365/DirSystemRelationshipType.cs | NathanClouseAX/AAXDataEntityPerfTest | 1 | 7031784 | <reponame>NathanClouseAX/AAXDataEntityPerfTest<gh_stars>1-10
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost... |
src/UrlTracker.Core/Defaults/Defaults_Options.cs | Infocaster/UrlTracker | 2 | 7031785 | <filename>src/UrlTracker.Core/Defaults/Defaults_Options.cs
namespace UrlTracker.Core
{
public static partial class Defaults
{
public static class Options
{
public const string UrlTrackerSection = "UrlTracker";
}
}
}
|
Microsoft.Crm.Sdk/Sdk/Owner.cs | develmax/Crm.Sdk.Core | 0 | 7031786 | <gh_stars>0
using System;
using System.Xml.Serialization;
namespace Microsoft.Crm.Sdk
{
[XmlType(Namespace = "http://schemas.microsoft.com/crm/2006/WebServices")]
[Serializable]
public class Owner : CrmReference
{
public Owner()
{
}
public Owner(string type, Guid value... |
aspnetcore/grpc/health-checks/Startup.cs | jongalloway/AspNetCore.Docs | 5,343 | 7031787 | <filename>aspnetcore/grpc/health-checks/Startup.cs
public void ConfigureServices(IServiceCollection services)
{
services.AddGrpc();
services
.AddGrpcHealthChecks()
.AddCheck("Sample", () => HealthCheckResult.Healthy());
}
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{... |
trunk/BruTile_0.8.6/BruTile/Wms/Capability.cs | andrepraska/andre | 4 | 7031788 | <gh_stars>1-10
// Copyright (c) BruTile developers team. All rights reserved. See License.txt in the project root for license information.
using System.Collections.Generic;
using System.Xml;
using System.Xml.Linq;
namespace BruTile.Web.Wms
{
public class Capability : XmlObject
{
private Request _reque... |
CSPARMPricingCal/CSPARMPricingCalOps/Util/Constants.cs | vrmessina/CSPARMPricingCalculator | 11 | 7031790 | <filename>CSPARMPricingCal/CSPARMPricingCalOps/Util/Constants.cs<gh_stars>10-100
// -----------------------------------------------------------------------
// <copyright file="Constants.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
// ----------------------... |
pocketpc/PubNub-Messaging/crypto/src/crypto/tls/TlsECDheKeyExchange.cs | redarrowlabs/pubnub-c-sharp | 4 | 7031791 | using System;
using System.Collections;
using System.IO;
using Org.BouncyCastle.Crypto.IO;
using Org.BouncyCastle.Crypto.Parameters;
using Org.BouncyCastle.Math.EC;
namespace Org.BouncyCastle.Crypto.Tls
{
/**
* ECDHE key exchange (see RFC 4492)
*/
internal class TlsECDheKeyExchange : TlsECDHKeyExchang... |
src/EditorFeatures/CSharpTest/Completion/CompletionProviders/FunctionPointerUnmanagedCallingConventionCompletionProviderTests.cs | IanKemp/roslyn | 2 | 7031792 | // 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.Threading.Tasks;
using Microsoft.CodeAnalysis.CSharp.Completion.Providers;
using Microso... |
ScrollCollectionViewTest/ViewModels/TestViewModel.cs | Lelelo1/ScrollListView | 1 | 7031793 | using System;
using System.Collections.ObjectModel;
namespace ScrollCollectionViewTest.ViewModels
{
public class TestViewModel : BaseViewModel
{
public ObservableCollection<string> TestObservableCollection { get; set; }
= new ObservableCollection<string>()
{ "one", "two", "... |
ConsoleAppWithDI.UI/DI.cs | ezeellena/PruebaCsvImporter_EllenaEzequiel | 0 | 7031794 | using ConsoleAppWithDI.UI.Services;
using Microsoft.Extensions.Logging;
using Serilog;
using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleAppWithDI.UI
{
public class DI
{
private readonly ILogger<DI> _logger;
private readonly ITransientService _transientServic... |
DWGitsh.Extensions/Cmdlets/GetGitshVersion.cs | DavidWise/DWGitSH | 1 | 7031795 | using DWGitsh.Extensions.Models;
using DWPowerShell.Utility.Cmdlet;
using System.Management.Automation;
using System.Reflection;
namespace DWGitsh.Extensions.Cmdlets
{
[Cmdlet(VerbsCommon.Get,"GitshVersion")]
[OutputType(typeof(VersionInfo))]
public class GetGitshVersion : DWPSCmdletBase
{
pub... |
playEf.cs | surachet-saengain/Ball-Game | 0 | 7031796 | <filename>playEf.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class playEf : MonoBehaviour
{
Renderer rend;
// Start is called before the first frame update
void Start()
{
rend = GetComponent<Renderer>();
rend.enabled = true;
... |
src/ymapp-aspnet-core/src/YMApp.Web.Travel/Views/Shared/Components/SideBarNav/SideBarNavViewComponent.cs | yannis123/YMApp | 0 | 7031797 | using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Abp.Application.Navigation;
using Abp.Runtime.Session;
using YMApp.Categorys;
using YMApp.ConstEnum;
namespace YMApp.Web.Views.Shared.Components.SideBarNav
{
public class SideBarNavViewComponent : YMAppViewComponent
{
private readonly... |
Aspor.Validation/Rules/RuleValidationAttribute.cs | Aspor-Stack/aspor | 0 | 7031798 | <filename>Aspor.Validation/Rules/RuleValidationAttribute.cs
using Microsoft.AspNetCore.Mvc.ModelBinding;
using System;
using System.Threading.Tasks;
namespace Aspor.Validation.Rules
{
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
public class RuleValidationAttribute : Attribute, IAsyncRuleVal... |
WalletWasabi/Tor/Socks5/Models/ReplyType.cs | Trxlz/WalletWasabi | 10 | 7031799 | <filename>WalletWasabi/Tor/Socks5/Models/ReplyType.cs
namespace WalletWasabi.Tor.Socks5.Models;
public enum ReplyType : byte
{
Succeeded = 0x00,
GeneralSocksServerFailure = 0x01,
ConnectionNotAllowedByRuleset = 0x02,
NetworkUnreachable = 0x03,
HostUnreachable = 0x04,
ConnectionRefused = 0x05,
TtlExpired = 0x06,... |
src/ProjectMagma/ProjectMagma/Renderer/ParticleSystem/CreateVertex.cs | cfo82/Magmageddon | 0 | 7031800 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Graphics.PackedVector;
namespace ProjectMagma.Renderer.ParticleSystem
{
public struct CreateVertex
{
pu... |
Assets/script/StageNum.cs | saxAllan/marimo | 0 | 7031801 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class StageNum : MonoBehaviour
{
private Text stageText;
private int oldStageNum;
void Start()
{
stageText = GetComponent<Text>();
if (stageText != null && GMan... |
AdventOfCode/aoc.csharp/2017/Day19.cs | zivkan/CodingForFun | 0 | 7031802 | <gh_stars>0
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
namespace aoc.csharp._2017
{
public class Day19 : ISolver
{
public (string Part1, string Part2) GetSolution(TextReader input)
{
return GetAnswer(input);
}
public static ... |
Octokit.GraphQL/Model/Organization.cs | ChilliCream/octokit.graphql.net | 1 | 7031803 | namespace Octokit.GraphQL.Model
{
using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using Octokit.GraphQL.Core;
using Octokit.GraphQL.Core.Builders;
/// <summary>
/// An account on GitHub, with one or more owners, that has repositories, members and teams.
//... |
Services/src/CSClassroom/CSClassroom.WebApp/Views/Question/CreateEdit/_ShortAnswerQuestion.cshtml | dave-br/CSClassroom | 1 | 7031805 | <reponame>dave-br/CSClassroom
@using System.Threading.Tasks
@model ShortAnswerQuestion
<div class="form-group">
<label asp-for="Blanks" class="col-md-2 control-label"></label>
<div class="col-md-10">
<p asp-description-for="Blanks" class="form-control-static"></p>
<span asp-validation-for="Bla... |
sources/Google.Solutions.Ssh/RsaSshKey.cs | Face1174/iap-desktop | 1 | 7031806 | //
// Copyright 2020 Google LLC
//
// 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 the Apache License, Ver... |
Nerdle.AutoConfig.Tests.Integration/ConfiguringTheMappingStrategy.cs | edpollitt/Nerdle.AutoConf | 35 | 7031807 | using System;
using System.ComponentModel;
using System.Xml.Linq;
using FluentAssertions;
using Nerdle.AutoConfig.Mapping.Mappers;
using NUnit.Framework;
namespace Nerdle.AutoConfig.Tests.Integration
{
[TestFixture]
class ConfiguringTheMappingStrategy : EndToEndTest
{
[Test]
public void Co... |
src/Melville.UdpConsoleViewer/Startup.cs | DrJohnMelville/Melville | 0 | 7031808 | <reponame>DrJohnMelville/Melville
using System;
using Melville.IOC.IocContainers;
using Melville.WpfAppFramework.StartupBases;
namespace Melville.UdpConsoleViewer
{
public class Startup : StartupBase
{
[STAThread]
public static int Main(string[] args)
{
ApplicationRootImple... |
Assets/Scripts/BossSpawner.cs | TemoYamada/DarkSideMoon_Script | 0 | 7031810 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Photon.Pun;
using Photon.Realtime;
public class BossSpawner : MonoBehaviourPunCallbacks
{
[SerializeField] GameObject enemyPrefab;
// -----------
// void Start()
// {
// }
// protected override void DoUpdate... |
samples/NetDevPack.Security.Jwt.AspNet.SymetricKey/Program.cs | NetDevPack/Jwks.Manager | 7 | 7031811 | using System.Security.Claims;
using Microsoft.AspNetCore.Authentication.JwtBearer;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.DataProtection;
using Microsoft.AspNetCore.Mvc;
using Microsoft.IdentityModel.JsonWebTokens;
using Microsoft.IdentityModel.Logging;
using Microsoft.IdentityModel.Tokens... |
Assets/Plugins/backtrace-unity-1.1.5/src/Model/JsonData/BacktraceAttributes.cs | konraddysput/RedRunner | 0 | 7031812 | <reponame>konraddysput/RedRunner
using Backtrace.Newtonsoft.Linq;
using Backtrace.Unity.Common;
using Backtrace.Unity.Extensions;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.NetworkInformation;
using UnityEngine;
using UnityEngine.SceneManagement;
namespace Backtrace.Unity.Mode... |
src/Perpetuum.RequestHandlers/Zone/Containers/ZoneContainerRequestHandler.cs | jeffmaley/PerpetuumServer | 31 | 7031813 | using System.Linq;
using Perpetuum.Containers;
using Perpetuum.EntityFramework;
using Perpetuum.Host.Requests;
using Perpetuum.Modules;
using Perpetuum.Players;
using Perpetuum.Units.FieldTerminals;
using Perpetuum.Zones;
namespace Perpetuum.RequestHandlers.Zone.Containers
{
public abstract class ZoneContainerRequ... |
src/IdentityServer4.Admin/Views/Client/Secrets.cshtml | jeraytang/Cerberus | 0 | 7031814 | @{
ViewData["Title"] = "Secrets";
}
<div class="row">
<div class="col-sm-8">
<h5>
Client secrets:
<small v-text="client.clientName"></small>
</h5>
</div>
<div class="col-sm-4">
<button class="btn btn-sm btn-outline-primary float-right" data-toggle="modal" ... |
testdata/analyze/csharp/SimpleWallet.Core/Exporters/QifExporter.cs | nikitazu/sharpanal | 0 | 7031815 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Threading.Tasks;
using System.Diagnostics;
using System.Globalization;
using System.Composition;
namespace SimpleWallet.Core.Exporters
{
[Export]
[Shared]
public class QifExpor... |
MobileCRM/MobileCRM.iOS/Renderers/StripedListViewRenderer.cs | MiaHub/xamarin-forms-samples | 4,601 | 7031816 | using System;
using Xamarin.QuickUI.Platform.iOS;
using Meetum.Views;
using Xamarin.QuickUI;
using MonoTouch.UIKit;
using Meetum.iOS;
using System.Collections.Generic;
[assembly: ExportCell (typeof (StripedViewCell), typeof (StripedViewCellRenderer))]
namespace Meetum.iOS
{
public class StripedViewCellRenderer :... |
Excel.TemplateEngine/ObjectPrinting/RenderCollection/IRendererCollection.cs | aldobrynin/Excel.TemplateEngine | 3 | 7031817 | using System;
using SkbKontur.Excel.TemplateEngine.ObjectPrinting.RenderCollection.Renderers;
namespace SkbKontur.Excel.TemplateEngine.ObjectPrinting.RenderCollection
{
internal interface IRendererCollection
{
IRenderer GetRenderer(Type modelType);
IFormControlRenderer GetFormControlRenderer(s... |
iothub-digitaltwins-timeseriesinsights/src/PopulateDigitalTwinsModel/Program.cs | adetayorabiu/streaming-at-scale | 174 | 7031818 | <filename>iothub-digitaltwins-timeseriesinsights/src/PopulateDigitalTwinsModel/Program.cs<gh_stars>100-1000
namespace PopulateDigitalTwinsModel
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net.Http;
using System.Threading;
using System.T... |
Source/Sanford.Collections/SkipList.cs | afdeprado/Sanford.Multimedia.Midi | 147 | 7031819 | <gh_stars>100-1000
#region License
/* Copyright (c) 2006 <NAME>
*
* 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
* righ... |
fcu-ucan/Models/NID/UserInfoViewModel.cs | fcu-ssc/fcu-ucan | 1 | 7031820 | using System.Text.Json.Serialization;
using Microsoft.AspNetCore.Mvc;
namespace fcu_ucan.Models.NID
{
/// <summary>
/// NID 使用者資訊
/// </summary>
public class UserInfoViewModel
{
[BindProperty(Name = "status")]
[JsonPropertyName("status")]
public string Status { get; set; }
... |
DiegoG.TelegramBot/Types/ChatSequenceStep.cs | JustJal/DiegoG.TelegramBot | 5 | 7031821 | using DiegoG.TelegramBot.Types.ChatSequenceTypes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DiegoG.TelegramBot.Types
{
/// <summary>
/// A Special class, whose purpose is to serve as a placeholder for another step. Use ONLY th... |
Anet/Data/SqlString.cs | liamwang/anet | 3 | 7031822 | <reponame>liamwang/anet
using System.Reflection;
using System.Text;
namespace Anet.Data;
public class SqlString
{
private int _selectLength = -1;
private int _orderStart = -1;
private readonly char _paramPrefix;
private readonly StringBuilder _sb;
public SqlString(DbDialect dialect) : this(dial... |
Assets/Standard Assets/Omiya Games/Scripts/Singleton/GameSettings.cs | OmiyaGames/amanda-cluett | 0 | 7031823 | using UnityEngine;
using System.Text;
namespace OmiyaGames
{
///-----------------------------------------------------------------------
/// <copyright file="GameSettings.cs" company="Omiya Games">
/// The MIT License (MIT)
///
/// Copyright (c) 2014-2015 Omiya Games
///
/// Permission is ... |
ClassicBasic.Interpreter/Functions/StrDollar.cs | Thraka/ClassicBasic | 4 | 7031824 | <reponame>Thraka/ClassicBasic<gh_stars>1-10
// <copyright file="StrDollar.cs" company="<NAME>">
// (C) Copyright 2017 <NAME>
// </copyright>
namespace ClassicBasic.Interpreter.Functions
{
using System.Collections.Generic;
/// <summary>
/// Implements the STR$ function.
/// </summary>
public class... |
e20201206_YokoActTM_Demo/Elsa20200001/Elsa20200001/ResourcePicture2.cs | soleil-taruto/Elsa | 0 | 7031825 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Charlotte.Commons;
using Charlotte.GameCommons;
namespace Charlotte
{
public class ResourcePicture2
{
//public DDPicture[] Dummy = DDDerivations.GetAnimation(Ground.I.Picture.Dummy, 0, 0, 25, 25, 2, 2).ToArray();
public... |
Wabbajack.Server/Services/MetricsKeyCache.cs | wabbajack-tools/wabbajack | 389 | 7031826 | <reponame>wabbajack-tools/wabbajack
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
using Wabbajack.Common;
using Wabbajack.Server.DataLayer;
namespace Wabbajack.Server.Services
{
public class MetricsKeyCache : IStartable
{
private... |
Desafios/csharp-10/Source/Services/UserService.cs | Cadulox/aceleradev-codenation-csharp | 0 | 7031827 | using System.Collections.Generic;
using System.Linq;
using Codenation.Challenge.Models;
using Microsoft.EntityFrameworkCore;
namespace Codenation.Challenge.Services
{
public class UserService : IUserService
{
private CodenationContext context;
public UserService(CodenationContext context)
... |
Module5/Shared/InvoiceWriter.cs | AramYako/NUnitAndMoqDocumentation | 37 | 7031828 | <reponame>AramYako/NUnitAndMoqDocumentation
using System;
using System.Collections.Generic;
using System.Linq;
namespace TestableCodeDemos.Module5.Shared
{
public class InvoiceWriter : IInvoiceWriter
{
public void Print(Invoice invoice)
{
throw new NotImplementedException();
... |
src/Rocks.Helpers.Tests/HashCodeExtensions.cs | vitaliy-orlov/Rocks.Helpers | 3 | 7031829 | using System.Linq;
using AutoFixture;
using FluentAssertions;
using Xunit;
namespace Rocks.Helpers.Tests
{
public class HashCodeExtensions
{
[Fact]
public void CreateHashCode_TwoEqualIntsList_ReturnsEqualHashCodes ()
{
// arrange
var fixture = new Fixture ();
... |
leetcode/c#/Problems/P0036.cs | viacheslave/algo | 0 | 7031830 | namespace LeetCode.Naive.Problems;
/// <summary>
/// Problem: https://leetcode.com/problems/valid-sudoku/
/// Submission: https://leetcode.com/submissions/detail/232034937/
/// </summary>
internal class P0036
{
public class Solution
{
public bool IsValidSudoku(char[][] board)
{
for ... |
ADO.Net.DataAccessLayerTests/When_executing_an_reader_command.cs | suniladhya/ADO.NET-DAL | 19 | 7031831 | using System.Configuration;
using System.Data;
using System.Data.Common;
using System.Collections.Generic;
using System.Data.SqlClient;
using DataAccessLayer.Core;
using DataAccessLayer.SqlServer;
using NUnit.Framework;
namespace ADO.Net.DataAccessLayer.SqlServer.Tests
{
[TestFixture]
public class ... |
workshops/2015-12-14-Data-binding/Superheroes/Superheroes/Helpers/DelegateCommand.cs | jsdelivrbot/Windows-Applications | 10 | 7031832 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Input;
namespace Superheroes.Helpers
{
public class DelegateCommand<T> : ICommand
{
private Action<T> execute;
public DelegateCommand(Action<T> execute)
... |
System.Reflection.ZipAssembly/ZipAssemblyLoadException.cs | AbhiAgarwal192/ZipAssembly | 1 | 7031833 | // Copyright (c) 2018, Els_kom org.
// https://github.com/Elskom/
// All rights reserved.
// license: see LICENSE for more details.
namespace System.Reflection
{
using System;
/// <summary>
/// A exception that is raised when the
/// assembly cannot be loaded from a zip file.
/// </summary>
pu... |
LimAppManager-WM/LimAppManager/HashHelper.cs | E2r7hN07Fl47/LimAppManager | 0 | 7031834 | using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using System.Security.Cryptography;
namespace LimAppManager
{
class HashHelper
{
static public string GetMD5Hash(string Message)
{
MD5CryptoServiceProvider MD5 = new MD5CryptoServiceProvider();
... |
SignInWindow.xaml.cs | TheSplendidOne/VSPastebinExtension | 0 | 7031836 | <reponame>TheSplendidOne/VSPastebinExtension
using System;
using System.Windows;
using Microsoft.VisualStudio.PlatformUI;
namespace VSPastebinExtension
{
public partial class SignInWindow : DialogWindow
{
public SignInWindow()
{
InitializeComponent();
}
private asy... |
src/FluentSQL/Querying/Functions/All.cs | fluent-sql/fluent-sql | 0 | 7031837 | using System.Collections.Generic;
using FluentSQL.Modelling;
namespace FluentSQL.Querying.Functions
{
/// <summary>
/// Represents all properties in a @object.
/// </summary>
public sealed class All : SqlExpression<IEnumerable<object>>
{
/// <summary>
/// Create a new <c>*... |
Assets/Scripts/Explosion.cs | paulsmithkc/GravityWells | 0 | 7031838 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Explosion : MonoBehaviour {
public float explosionRadius = 10;
public float explosionForce = 100;
public float explosionDamage = 0;
public float explosionDuration = 1;
//public AudioClip explosionSound = n... |
BrainSimulator/MainWindowEventHandlers.cs | Synchronicity89/BrainSimII | 0 | 7031839 | <reponame>Synchronicity89/BrainSimII<filename>BrainSimulator/MainWindowEventHandlers.cs
//
// Copyright (c) <NAME>. All rights reserved.
// Licensed under the MIT License. See LICENSE file in the project root for full license information.
//
using Microsoft.Win32;
using System;
using System.Diagnostics;
using Sys... |
Assets/GrowGame/Scripts/HarvestPaneController.cs | tmorgner/gro-game | 0 | 7031840 | using System;
using UnityEngine;
using UnityEngine.UI;
namespace GrowGame
{
public class HarvestPaneController : MonoBehaviour
{
[SerializeField] private FlowerBedUIController bedController;
[SerializeField] private Button sellPlantButton;
[SerializeField] private Button replantButton;... |
C_Sharp/CSharp Fundamentals/Lists/MixedUpLists/Program.cs | Mithras11/SoftUni-Software-Engineering | 4 | 7031841 | <reponame>Mithras11/SoftUni-Software-Engineering
using System;
using System.Collections.Generic;
using System.Linq;
namespace MixedUpLists
{
class Program
{
static void Main(string[] args)
{
List<int> firstList = Console.ReadLine()
.Split()
.Select(in... |
AcManager.Tools/Managers/Online/ServerEntry.cs | fzr600dave/actools | 0 | 7031842 | <reponame>fzr600dave/actools
using System;
using System.Linq;
using System.Text.RegularExpressions;
using AcManager.Tools.Helpers;
using AcManager.Tools.Helpers.Api.Kunos;
using AcManager.Tools.Objects;
using AcTools.Processes;
using AcTools.Utils;
using AcTools.Utils.Helpers;
using FirstFloor.ModernUI.Commands;
using ... |
test/GodelTech.StoryLine.Rest.Tests/Services/Resources/AssemblyProviderTests.cs | GodelTech/GodelTech.StoryLine.Rest | 0 | 7031843 | <gh_stars>0
using System;
using System.Reflection;
using FluentAssertions;
using GodelTech.StoryLine.Rest.Services.Resources;
using Xunit;
namespace GodelTech.StoryLine.Rest.Tests.Services.Resources
{
public class AssemblyProviderTests
{
private readonly AssemblyProvider _underTest;
public As... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.