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 |
|---|---|---|---|---|
tests/ProblemsTests/Strings/LengthOfLongestSubstringTests.cs | guillermocorrea/ds-algos | 0 | 7068956 | <filename>tests/ProblemsTests/Strings/LengthOfLongestSubstringTests.cs
using System;
using System.Collections.Generic;
using Problems.Strings;
using Xunit;
namespace ProblemsTests.Strings
{
public class LengthOfLongestSubstringTests
{
[Fact]
public void ShouldFindSolution()
{
... |
csharp_selenium_test/csharp_selenium_test/Pages/CartPage.cs | AnnaMisha/csharp_selenium_test | 0 | 7068957 | using System;
using OpenQA.Selenium;
using OpenQA.Selenium.Support.UI;
using OpenQA.Selenium.Support.PageObjects;
using System.Collections.Generic;
using System.Threading;
namespace csharp_selenium_test
{
class CartPage : BasePage
{
public CartPage(IWebDriver driver, WebDriverWait wait) :
... |
ProtocolSharp/Entities/Entities/SpectralArrow.cs | CopperPenguin96/Redstone | 4 | 7068958 | using ProtocolSharp.Types;
namespace ProtocolSharp.Entities.Entities
{
public class SpectralArrow : AbstractArrow
{
public override EntityType Type => EntityType.SpectralArrow;
public override float BoundingBoxX => 0.5f;
public override float BoundingBoxY => 0.5f;
public override Identifier ID => new Ide... |
SimpleService/Session.cs | YouRanLongYing/BYSJ_service | 0 | 7068959 | // ------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Mono Runtime Version: 4.0.30319.1
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerat... |
VaraniumSharp/Interfaces/Caching/IMemoryCacheWrapper.cs | fossabot/VaraniumSharp | 0 | 7068960 | <gh_stars>0
using System;
using System.ComponentModel;
using System.Runtime.Caching;
using System.Threading.Tasks;
namespace VaraniumSharp.Interfaces.Caching
{
/// <summary>
/// Provides a wrapper around <see cref="MemoryCache"/> that provides an easy way to get and remove items from the cache
/// </summa... |
YDL-UI/Forms/FormPlaylistItemsEditor.Designer.cs | vaginessa/ydl-ui | 0 | 7068961 | <filename>YDL-UI/Forms/FormPlaylistItemsEditor.Designer.cs
namespace Maxstupo.YdlUi.Forms {
partial class FormPlaylistItemsEditor {
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
... |
CS2ASM/Amd64/Transformations/Ldarga_S.cs | nifanfa/CS2ASM | 23 | 7068962 | <gh_stars>10-100
using dnlib.DotNet;
using dnlib.DotNet.Emit;
using System;
namespace CS2ASM
{
public static unsafe partial class Amd64Transformation
{
[ILTransformation(Code.Ldarga_S)]
public static void Ldarga_S(Context context)
{
Ldarg_S(context);
}
}
}
|
DeconTools.Backend/Utilities/SqliteNETUtils/Table.cs | PNNL-Comp-Mass-Spec/DeconTools | 10 | 7068963 | <filename>DeconTools.Backend/Utilities/SqliteNETUtils/Table.cs<gh_stars>1-10
using System;
using System.Collections.Generic;
using System.Text;
namespace DeconTools.Utilities.SqliteUtils
{
public abstract class Table
{
#region Constructors
#endregion
#region Properties
... |
Unity/Assets/Hotfix/Demo/FairyGUI/System/FUIDialog/FUIDialogStartSystem.cs | zs782306174/LiQing | 0 | 7068964 | <filename>Unity/Assets/Hotfix/Demo/FairyGUI/System/FUIDialog/FUIDialogStartSystem.cs
using ETModel;
namespace ETHotfix
{
[ObjectSystem]
public class FUIDialogStartSystem:StartSystem<FUIDialog.FUIDialog>
{
public override void Start(FUIDialog.FUIDialog self)
{
}
... |
PFM.DawnXZ.WPF/EntityListener/PfmErrorListener.cs | cockroach888/PersonalFinance | 2 | 7068965 | // ===================================================================
// 数据监听(PFM.DawnXZ.WPF.EntityListener)项目
//====================================================================
//【宋杰军 @Copy Right 2008+】--【联系QQ:6808240】--【请保留此注释】
//====================================================================
// 文件名称:PfmE... |
Models/Responses/AppResponses/VerifyResponse.cs | ArunPrakashG/AuthedSharp | 0 | 7068966 | using Newtonsoft.Json;
namespace AuthedSharp.Models.Responses.AppResponses {
/// <summary>
/// Response received when sending Verify request for the application.
/// </summary>
public class VerifyResponse : BaseResponse {
/// <summary>
/// The application session.
/// <br>Used for all followed up requests.</... |
Encryption/AesKeyVectorPair.cs | BryanApellanes/bam.net.shared | 0 | 7068967 | <reponame>BryanApellanes/bam.net.shared
/*
Copyright © <NAME> 2015
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Security.Cryptography;
using System.IO;
using Bam.Net.Configuration;
namespace Bam.Net.Encryption
{
[Serializable]
public class AesKeyVecto... |
src/Msr.Odr.Admin/Commands/Search/SearchInitCommand.cs | Sahaj26/opendatacloud | 6 | 7068970 | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using System.Linq;
using McMaster.Extensions.CommandLineUtils;
using Msr.Odr.Admin.Commands.Options;
namespace Msr.Odr.Admin.Commands.Search
{
public class SearchInitCommand
{
public static void Configure(CommandLineApplication command)... |
Assets/Scripts/Gameplay/Offense/LaserBehaviour.cs | francescozoccheddu/VGD | 0 | 7068971 | using UnityEngine;
using Wheeled.Scene;
namespace Wheeled.Gameplay.Offense
{
public sealed class LaserBehaviour : MonoBehaviour
{
public GameObject rifleHit;
public ParticleSystem particles;
private const float c_lifeTime = 1.0f;
private const float c_maxRayLenght = 40f;
... |
PuttyMadness/PuttySelectorPanel.Designer.cs | ghjm/PuttyMadness | 3 | 7068972 | namespace PuttyMadness
{
partial class PuttySelectorPanel
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
... |
Core/Net/Sockets/MessageHandler.cs | marinehero/microserver | 4 | 7068973 | using System;
namespace MicroServer.Net.Sockets
{
/// <summary>
/// <see cref="SocketChannel"/> has sent or received a message.
/// </summary>
/// <param name="sender">Channel that did the work</param>
/// <param name="args">Socket event arguments.</param>
/// <remarks>We uses delegates instea... |
CSharp/ProductExport/XmlExporter.cs | xpeppers/Product-Export-Refactoring-Kata | 19 | 7068974 | <filename>CSharp/ProductExport/XmlExporter.cs
using System;
using System.Collections.Generic;
using System.Text;
namespace ProductExport
{
public class XmlExporter
{
public static string ExportFull(List<Order> orders)
{
var xml = new StringBuilder();
xml.Append("<?xml ve... |
containsCloseNums/Program.cs | gus-sosa/CodeFight | 1 | 7068975 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace containsCloseNums
{
class Program
{
bool containsCloseNums(int[] nums, int k)
{
int lastIndex = 0;
var set = new HashSet<int>();
k++... |
CustomSSDTMigrationScripts/Helper/Logger.cs | 4tecture/SSDTDataMigration | 11 | 7068976 | using System.Text;
using Microsoft.Build.Utilities;
namespace CustomSSDTMigrationScripts
{
public static class Logger
{
public static TaskLoggingHelper logger;
private static StringBuilder LogBuffer { get; set; } = new StringBuilder();
public static void LogMessage(string msg)
... |
Assets/KeatsLib/scripts/static/CoroutineUtils.cs | growlitheharpo/unity-utility-lib | 0 | 7068977 | using System;
using System.Collections;
using UnityEngine;
using UnityEngine.UI;
using Object = UnityEngine.Object;
namespace KeatsLib.Unity
{
/// <summary>
/// A collection of useful coroutines.
/// </summary>
public static class Coroutines
{
/// <summary>
/// The delegate type for Actions to call after a C... |
Librarian/State.cs | Wubbi/Librarian | 1 | 7068978 | using System;
using System.ComponentModel;
using System.Runtime.CompilerServices;
using Librarian.Annotations;
using Librarian.Core;
namespace Librarian
{
public class State : INotifyPropertyChanged
{
private View _current;
private DateTime _nextOnlineCheck;
private string _initCurrent... |
code/src/UI/ViewModels/NewProject/MetadataInfoViewModel.cs | contentcollectivemarketing/WindowsTemplateStudio | 1 | 7068979 | // 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.Windows;
using Microsoft.Templates.Core;
using Microsoft.Templates.Core.Mvvm;
using Microsoft.Templat... |
Framework/ServiceClasses/KeyboardServiceProvider/Handlers/ResetHandler.cs | KAL-ATM-Software/KAL_XFS4IoT_SP-Dev | 30 | 7068980 | /***********************************************************************************************\
* (C) KAL ATM Software GmbH, 2021
* KAL ATM Software GmbH licenses this file to you under the MIT license.
* See the LICENSE file in the project root for more information.
*
\*******************************************... |
Examples/SciChart.Examples/Examples/ModifyAxisBehaviour/PolarChartWithMultipleAxes.xaml.cs | jeremy7nelson/SciChart.Wpf.Examples | 1 | 7068981 | <filename>Examples/SciChart.Examples/Examples/ModifyAxisBehaviour/PolarChartWithMultipleAxes.xaml.cs
// *************************************************************************************
// SCICHART® Copyright SciChart Ltd. 2011-2021. All rights reserved.
//
// Web: http://www.scichart.com
// Support: <EMAIL>
/... |
src/PharmaceuticalChain.API/EthereumSettings.cs | pharmaceutical-blockverify/Server | 3 | 7068982 | namespace PharmaceuticalChain.API
{
public class EthereumSettings
{
public EthereumSettings()
{
// Empty
}
public string EthereumAccount { get; set; }
public string EthereumPassword { get; set; }
/// <summary>
/// Abi of the master contract.... |
src/Vertical/Tools/CSharpDependencies/Services/DefaultOutputChannel.cs | verticalsoftware/vertical-csdependencies | 0 | 7068983 | // Copyright(c) 2019 Vertical Software - All rights reserved
//
// This code file has been made available under the terms of the
// MIT license. Please refer to LICENSE.txt in the root directory
// or refer to https://opensource.org/licenses/MIT
using System.Collections.Generic;
using Serilog;
using Vertical.Tools.CSh... |
Kontur.Results.Monad/Then/ThenOptionalResultPlainPassInternal.cs | skbkontur/result | 10 | 7068984 | <reponame>skbkontur/result<filename>Kontur.Results.Monad/Then/ThenOptionalResultPlainPassInternal.cs
using System;
using System.Threading.Tasks;
namespace Kontur.Results
{
internal static partial class ThenOptionalResultPlainPassInternal
{
internal static Optional<TValue> Then<TValue, TFault>(
... |
Source/LRTFFailureBase_Gimbal.cs | pehvbot/LRTF | 2 | 7068985 | using System.Collections.Generic;
using UnityEngine;
namespace TestFlight.LRTF
{
public class LRTFFailureBase_Gimbal : LRTFFailureBase
{
[KSPField(isPersistant = false)]
public string gimbalTransformName = "RANDOM";
public override void OnLoad(ConfigNode node)
{
nod... |
src/Leprechaun.InputProviders.Sitecore/TemplateReaders/SitecoreTemplateReader.cs | jeneaux/Leprechaun | 0 | 7068986 | using System.Collections.Generic;
using System.Linq;
using System.Xml;
using Leprechaun.Filters;
using Leprechaun.InputProviders.Sitecore.Adapters;
using Leprechaun.InputProviders.Sitecore.Configuration;
using Leprechaun.InputProviders.Sitecore.Extensions;
using Leprechaun.InputProviders.Sitecore.Filters;
using Leprec... |
Assets/Scripts/GameControllers/BonusGems/LifeGem.cs | AlexandrPeshkov/ZigZag | 5 | 7068987 | <reponame>AlexandrPeshkov/ZigZag<gh_stars>1-10
using ZigZag.UI;
namespace ZigZag
{
/// <summary>
/// Гем - здоровья
/// </summary>
public class LifeGem : BaseGem<LifeEffect>
{
protected override void ApplyEffect()
{
LifeEffect effect = _effectManager.ApplyEffect<LifeEffect>();
FadeableHint hint = _con... |
src/Elements/HtmlMenuItemElement.cs | hughbe/html-generator | 22 | 7068988 | namespace HtmlGenerator
{
public class HtmlMenuItemElement : HtmlElement
{
public HtmlMenuItemElement() : base("menuitem") { }
public HtmlMenuItemElement WithChecked() => this.WithAttribute(Attribute.Checked);
public HtmlMenuItemElement WithCommand(string value) => this.WithAttribute(A... |
Assets/Scripts/LightingTools/Sunlight/SunlightTrack/SunlightMixer.cs | laurenth-unity/LightingTools | 0 | 7068989 | using UnityEngine.Playables;
using UnityEngine;
using UnityEngine.Experimental.Rendering;
using LightUtilities;
public class SunlightMixer : PlayableBehaviour
{
// Called each frame the mixer is active, after inputs are processed
public override void ProcessFrame(Playable handle, FrameData info, object playerD... |
SinTrafico/Enums/VehicleType.cs | expandaventures/st_sdk_xamarin | 0 | 7068990 | using System;
namespace SinTrafico
{
public enum VehicleType : uint
{
Motorcycle = 0,
Car = 1,
LightAxis = 2,
Bus2 = 3,
Bus3 = 4,
Bus4 = 5,
Truck2 = 6,
Truck3 = 7,
Truck4 = 8,
Truck5 = 9,
Truck6 = 10,
Truck7 = 11,
... |
iSpyApplication/Properties/Resources.Designer.cs | isaacandy/ispyconnect | 1 | 7068991 | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.34011
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generate... |
UKHO.ExternalNotificationService.API/UKHO.ExternalNotificationService.SubscriptionService.UnitTests/Services/HandleDeadLetterServiceTest.cs | UKHO/external-notification-service | 0 | 7068992 | <reponame>UKHO/external-notification-service<gh_stars>0
using FakeItEasy;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using NUnit.Framework;
using System.Net.Http;
using System.Threading.Tasks;
using UKHO.ExternalNotificationService.Common.Configuration;
using UKHO.ExternalNotificationServi... |
LanguageSchoolApp/LanguageSchoolApp/Controllers/CoursesController.cs | vasilvalkov/LanguageSchool | 0 | 7068993 | <gh_stars>0
using AutoMapper.QueryableExtensions;
using LanguageSchoolApp.Models.Courses;
using LanguageSchoolApp.Services.Contracts;
using System;
using System.Linq;
using System.Web.Mvc;
using System.Web.Routing;
namespace LanguageSchoolApp.Controllers
{
public class CoursesController : Controller
... |
Vigicrues.Tests/Serialization/EntityJsonConverter.cs | mcartoixa/Vigicrues.Client | 0 | 7068994 | <filename>Vigicrues.Tests/Serialization/EntityJsonConverter.cs
using System;
using System.Text.Json;
using Xunit;
namespace Vigicrues.Serialization
{
public class EntityJsonConverterTests
{
[Theory]
[InlineData("{\"vic:TypEntVigiCru\":\"1\"}", typeof(LocalEntity))]
[InlineData("{\"vic... |
nJocLogic/knowledge/RelationInfo.cs | druzil/nggp-base | 1 | 7068995 | using System;
using nJocLogic.gameContainer;
namespace nJocLogic.knowledge
{
public class RelationInfo : IComparable<RelationInfo>
{
readonly private int _name;
readonly private int _arity;
public RelationInfo(int name, int arity)
{
_name = name;
_arity = arity;
}
/**... |
WEB/Src/PerformanceCollector/PerformanceCollector/Implementation/Timer/Timer.cs | ylabade/ApplicationInsights-dotnet | 238 | 7068996 | <reponame>ylabade/ApplicationInsights-dotnet
namespace Microsoft.ApplicationInsights.Extensibility.PerfCounterCollector.Implementation.Timer
{
using System;
using System.Threading;
/// <summary>The timer implementation.</summary>
internal class Timer : ITimer, IDisposable
{
#region Constan... |
Scripts/Core/UI/UIWindow.cs | Anvil3D/Anvil3D-Toolset | 2 | 7068997 | <reponame>Anvil3D/Anvil3D-Toolset
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace VGDevs
{
public class UIWindow : BaseUIScript
{
[SerializeField] private UIButton m_closeButton;
protected override void Awake()
{
base.Awake();
... |
WindowsFormsApplication2/Form1.Designer.cs | AdishMallik/ScoreKeeper | 0 | 7068998 | <gh_stars>0
namespace WindowsFormsApplication2
{
partial class Form1
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </sum... |
ThreeAmigosStaff/ThreeAmigosStaff/Services/Customer/CustomerService.cs | mhamwala/StaffApplication | 0 | 7068999 | <reponame>mhamwala/StaffApplication<gh_stars>0
using System;
using System.Collections.Generic;
using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
namespace ThreeAmigosCustomer.Services
{
public class CustomerService : ICustomerService
{
private r... |
exp.cs | danieleromanazzi/IntuneSimple | 0 | 7069000 | <reponame>danieleromanazzi/IntuneSimple<filename>exp.cs<gh_stars>0
bool isRunning = true;
public MainWindow()
{
InitializeComponent();
var listener = new Thread(Listner);
listener.SetApartmentState(ApartmentState.STA);
listener.Start();
}
... |
Neodroid/Scripts/NeodroidEnvironment/Configuration/Difficulty.cs | cnheider/droid | 0 | 7069001 | <filename>Neodroid/Scripts/NeodroidEnvironment/Configuration/Difficulty.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Neodroid.NeodroidEnvironment.Configuration {
public class Difficulty : Configurable {
// Example
public override void Configure (string config... |
csharp/pig-latin/PigLatin.cs | ErikSchierboom/exercism | 23 | 7069003 | <reponame>ErikSchierboom/exercism
using System.Text.RegularExpressions;
public static class PigLatin
{
private static readonly Regex VowelRegex = new(@"(?<begin>^|\s+)(?<vowel>a|e|i|o|u|yt|xr)(?<rest>\w+)", RegexOptions.Compiled);
private static readonly Regex ConsonantRegex = new(@"(?<begin>^|\s+)(?<consonant... |
Assets/Scripts/PowerUps/PowerUpFireball.cs | georgetour/Arkanoid-Nostalgia | 0 | 7069004 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PowerUpFireball : ControlPowerUps {
public static bool fireball = false;
public int scoreToGive;
public override void PowerUpBehavior(Collider2D collision)
{
if (collision.transform.tag == p... |
Assets/Scripts/Units/UnitComponents/Shared/InventorySystem/InventoryManager.cs | baidenx7/Elebris-Adventures | 0 | 7069005 | using Elebris.Core.Library.Enums.Tags;
using Elebris.Core.Library.Items.Equipment;
using System;
using System.Collections.Generic;
using UnityEngine;
namespace Assets.Scripts.Units.UnitComponents.Shared
{
public class InventoryManager : MonoBehaviour
{
[Header("Inventory")]
public List<IEquipp... |
Lpp.Dns.Portal/Views/Groups/Index.cshtml | Missouri-BMI/popmednet | 9 | 7069006 | <filename>Lpp.Dns.Portal/Views/Groups/Index.cshtml
@{
ViewBag.Title = "Groups";
Layout = "~/Views/_Layout.cshtml";
}
@section Head {
<script src="~/js/Groups/Index.js"></script>
}
<article class="panel panel-default" data-bind="css: {visible: true}">
<div class="panel-heading">
<ol class="brea... |
HKX2/Builders/hkaiNavMeshBuilder.cs | SyllabusGames/DSMapStudio | 128 | 7069007 | using System;
using System.Collections.Generic;
using System.Numerics;
using System.Runtime.InteropServices;
using System.Text;
namespace HKX2.Builders
{
public static class NavMeshNative
{
[DllImport("NavGen.dll")]
public static extern bool SetNavmeshBuildParams(float cs, float ch, float slop... |
Assets/LevelConstructor/Scripts/Constructor/LevelConstructor/LevelEditorEvents.cs | TheProxor/code-samples-from-pg | 0 | 7069008 | using Core;
using System;
using System.Collections.Generic;
using UnityEngine;
namespace Drawmasters.LevelConstructor
{
public class ChangeState : GlobalEvent<ChangeState, LevelEditor.State> { }
public class SelectedObjectChange : GlobalEvent<SelectedObjectChange, List<EditorLevelObject>> { }
public cl... |
Source/UnityClarity/Assets/Scripts/Interaction/NoviceVrInputDispatcher.cs | Zulkir/ClarityWorlds | 1 | 7069009 | <gh_stars>1-10
using Assets.Scripts.Gui;
using Assets.Scripts.Infra;
using Assets.Scripts.Interaction.Minimap;
using Assets.Scripts.Interaction.MoveInPlace;
using Clarity.App.Worlds.Interaction.Queries;
using Clarity.App.Worlds.StoryGraph;
using Clarity.Engine.EventRouting;
using Clarity.Engine.Gui.MessagePopups;
usin... |
OwinFramework.Pages.Core/Attributes/PartOfAttribute.cs | forki/OwinFramework.Pages | 0 | 7069010 | using System;
namespace OwinFramework.Pages.Core.Attributes
{
/// <summary>
/// Attach this attribute to an element to make it part of a package (namespace)
/// </summary>
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
public class PartOfAttribute: Attribute
... |
backend/Controllers/ProductController.cs | loiola0/course-fullstack-ufc | 1 | 7069011 | <filename>backend/Controllers/ProductController.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using backend.Domains.Services;
using backend.Domains.Models;
using backend.Resources;
using backend.Ext... |
CodeWars/8kyu/BeConciseIIISumSquares.cs | a-kozhanov/codewars_csharp | 0 | 7069012 | <reponame>a-kozhanov/codewars_csharp<gh_stars>0
/*
https://www.codewars.com/kata/56f8fe6a2e6c0dc83b0008a7/
8 kyu
Be Concise III - Sum Squares
Be Concise III - Sum Squares
You are given a program sumSquares that takes an array as input and returns the sum of the squares of each item in an array. For example:
sumSqua... |
ClubPenguin.DecorationInventory/StructureRenderData.cs | smdx24/CPI-Source-Code | 8 | 7069014 | // StructureRenderData
using System;
using UnityEngine;
[Serializable]
public class StructureRenderData : ScriptableObject
{
public Vector3 ItemPosition;
public Quaternion ItemRotation;
public Quaternion CameraRotation;
public float CameraFOV;
public override string ToString()
{
return $"[StructureRenderDa... |
src/GlobalDev.Tools/Extensions/DateTimeExtensions.cs | robsonpedroso/globaldev-tools | 1 | 7069015 | using GlobalDev.Tools.Models;
using System;
using System.Collections.Generic;
using System.Text;
namespace GlobalDev.Tools.Extensions
{
public static class DateTimeExtensions
{
public static DateTime EndDay(this DateTime dateTime)
{
return new DateTime(dateTime.Year, dateTime.Month... |
src/Swish.Sftp/Subsystems/Sftp/Packets/StatusPacket.cs | dswisher/swish-sftp | 3 | 7069016 | <gh_stars>1-10
using System.Collections.Generic;
namespace Swish.Sftp.Subsystems.Sftp.Packets
{
public class StatusPacket : ServerToClientPacket
{
public const uint Ok = 0;
public const uint Eof = 1;
public const uint NoSuchFile = 2;
public const uint PermissionDenied = 3;
... |
Assets/_Project/Scripts/VersionUpdater.cs | kidagine/Darklings-FightingGame | 4 | 7069017 | <reponame>kidagine/Darklings-FightingGame<filename>Assets/_Project/Scripts/VersionUpdater.cs
using System;
using System.Collections.Generic;
using TMPro;
using UnityEngine;
public class VersionUpdater : MonoBehaviour
{
[SerializeField] private TextAsset _versionTextAsset = default;
[Header("Texts")]
[SerializeField... |
Rework/Strings.cs | Lukejkw/Rework | 9 | 7069018 | <reponame>Lukejkw/Rework
using System;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
namespace Rework
{
public static class Strings
{
private const string Elipsis = "…";
public static string Slugify(this string phrase)
{
if (!Check.NotN... |
csharp/HOLMS.Platform/HOLMS.Platform/Support/ReservationTags/TaxExemptTag.cs | PietroProperties/holms.platformclient.net | 3 | 7069019 | <filename>csharp/HOLMS.Platform/HOLMS.Platform/Support/ReservationTags/TaxExemptTag.cs<gh_stars>1-10
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HOLMS.Platform.Support.ReservationTags {
public class TaxExemptTag : ReservationTagBase... |
Kentico.Kontent.Delivery/ContentItems/Elements/TaxonomyElementValue.cs | WimVergouwe/kontent-delivery-sdk-net | 17 | 7069020 | <filename>Kentico.Kontent.Delivery/ContentItems/Elements/TaxonomyElementValue.cs
using Kentico.Kontent.Delivery.Abstractions;
using Newtonsoft.Json;
using System.Collections.Generic;
namespace Kentico.Kontent.Delivery.ContentItems.Elements
{
internal class TaxonomyElementValue : ContentElementValue<IEnumerable<IT... |
Demos/SecurityDemo/SecurityDemo.Module/Module.cs | comstyle/eXpand | 0 | 7069022 | <filename>Demos/SecurityDemo/SecurityDemo.Module/Module.cs
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using DevExpress.ExpressApp;
using DevExpress.ExpressApp.SystemModule;
using DevExpress.ExpressApp.Updating;
namespace SecurityDemo.Module{
public sealed partial class Secu... |
src/api/Http/Controllers/FolderController.cs | Zongsoft/Zongsoft.Community | 6 | 7069023 | <filename>src/api/Http/Controllers/FolderController.cs<gh_stars>1-10
/*
* _____ ______
* /_ / ____ ____ ____ _________ / __/ /_
* / / / __ \/ __ \/ __ \/ ___/ __ \/ /_/ __/
* / /__/ /_/ / / / / /_/ /\_ \/ /_/ / __/ /_
* /____/\____/_/ /_/\__ /____/\____/_/ \__/
*... |
Business.cs | giuliohome/MailForward | 0 | 7069024 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MailForward
{
internal static class Business
{
public const string Area1 = "Business1";
public const string Area2 = "Area 2";
public const string Area3 = "Biz ... |
Wallet/Wallet.Android/Common/Label/ExtendedLabelRenderer.cs | Boowman/HyperWallet | 0 | 7069025 | using Android.Content;
using Android.Content.Res;
using Android.Graphics;
using Android.OS;
using Android.Views;
using Wallet;
using Wallet.Droid;
using Xamarin.Forms;
using Xamarin.Forms.Internals;
using Xamarin.Forms.Platform.Android;
[assembly: ExportRenderer(typeof(ExtendedLabel), typeof(ExtendedLabelRenderer))]
... |
InventoryManagement/CreateTypesUI/AddNewInventoryItem.Designer.cs | SteffenCarlsen/Simple-Inventory-Management | 4 | 7069026 | <reponame>SteffenCarlsen/Simple-Inventory-Management
namespace InventoryManagement.CreateTypesUI
{
partial class AddNewInventoryItem
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
... |
C#2/Methods-Homework/01. HelloMethod/HelloMethod.cs | kaizer04/Telerik-Academy-2013-2014 | 0 | 7069027 | /*Write a method that asks the user for his name and prints “Hello, <name>” (for example, “Hello, Peter!”). Write a program to test this method.*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class HelloMethod
{
static void PrintHello()
... |
CarRental.API/DAL/SQLManagment/DBContext.cs | kacpes/CarRental | 0 | 7069028 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace CarRental.API.DAL.SQLManagment
{
public class DBContext
{
protected SQLContext current { get; set; }
public async Task SaveChanges()
{
await current.SaveChangesAsync(... |
src/EventSourcing.Poc.EventSourcing/Command/ICommandDispatcher.cs | maxfoow/EventSourcingPoc | 0 | 7069029 | using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using EventSourcing.Poc.EventSourcing.Jobs;
using EventSourcing.Poc.EventSourcing.Wrapper;
using EventSourcing.Poc.Messages;
using JetBrains.Annotations;
namespace EventSourcing.Poc.EventSourcing.Command {
public interface ICommandDispa... |
DateTiming.cs | Beelzenef/GestionMenu | 1 | 7069030 | <reponame>Beelzenef/GestionMenu
using System;
using System.Threading;
namespace DateTiming
{
class DateTiming
{
static void Main(string[] args)
{
// Variables
// Para DateTime
DateTime ahora = DateTime.Now;
DateTime otraFecha = new DateTime ();
// Para Random
double resultado = 0;
Random da... |
code/EventHubRESTClientApp/MessageEntity.cs | algorni/EventHubSASTokenGenerator | 0 | 7069032 | <reponame>algorni/EventHubSASTokenGenerator
using Azure.Messaging.EventHubs;
using System;
using System.Collections.Generic;
using System.Text;
using System.Text.Json;
namespace EventHubRESTClientApp
{
public class MessageEntity
{
public static int CurrentGen = 0;
public int Gen { get; set;... |
Handlers/RssHandler.cs | Daniel15/Downcast | 0 | 7069033 | using System.Xml.Linq;
using System.Xml.XPath;
using Downcast.Extensions;
namespace Downcast.Handlers;
class RssHandler : IHandler
{
private readonly HttpClient _client;
private static readonly XNamespace itunesNs = "http://www.itunes.com/dtds/podcast-1.0.dtd";
public RssHandler(HttpClient client)
{
_client ... |
src/dotnet/Micky5991.Samp.Net.Generators/Strategies/NamespaceElements/NativeBuildStrategy.cs | Micky5991/samp-dotnet | 0 | 7069034 | <reponame>Micky5991/samp-dotnet<gh_stars>0
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Micky5991.Samp.Net.Generators.Data;
using Micky5991.Samp.Net.Generators.Extensions;
using Micky5991.Samp.Net.Generators.Strategies.Parameters;
namespace Micky5991.Samp.Net.Generators.S... |
src/MineCase.Server.Grains/Game/Entities/Components/SyncMobStateComponent.cs | CyberFlameGO/MineCase | 708 | 7069035 | using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using MineCase.Engine;
using MineCase.Server.Components;
using MineCase.Server.Network.Play;
using MineCase.World;
namespace MineCase.Server.Game.Entities.Components
{
internal class SyncMobStateComponent : Component<... |
src/Glassnode.Api/Types/Interval.cs | Tradyn/glassnode-api | 0 | 7069036 | <gh_stars>0
using System.Runtime.Serialization;
namespace Glassnode.Api.Types
{
public enum Interval
{
[EnumMember(Value = "1h")]Hour,
[EnumMember(Value = "24h")]Day,
[EnumMember(Value = "10m")]TenMinute
}
} |
Source/Backend/ServiceMonitor/ServiceMonitor.Core/Domain/Environment.cs | TSalaam/ServiceMonitor.NetCore | 0 | 7069037 | <gh_stars>0
namespace ServiceMonitor.Core.Domain
{
public class Environment
{
public Environment()
{
}
public Environment(short? id)
{
ID = id;
}
public short? ID { get; set; }
public string Name { get; set; }
}
}
|
src/TensorFlowNET.Keras/Metrics/TrueNegatives.cs | KevOrr/TensorFlow.NET | 6 | 7069038 | using System;
using System.Collections.Generic;
using System.Text;
namespace Tensorflow.Keras.Metrics
{
public class TrueNegatives : _ConfusionMatrixConditionCount
{
public TrueNegatives(float thresholds = 0.5F, string name = null, string dtype = null)
: base(Utils.MetricsUtils.ConfusionMa... |
fantasy-soccer/FantasySoccer/FantasySoccer.Schema/Models/CosmosDB/Tournament.cs | southworks/playfab-samples | 23 | 7069039 | <reponame>southworks/playfab-samples<filename>fantasy-soccer/FantasySoccer/FantasySoccer.Schema/Models/CosmosDB/Tournament.cs<gh_stars>10-100
using System;
using System.Collections.Generic;
using System.Linq;
using Newtonsoft.Json;
namespace FantasySoccer.Schema.Models.CosmosDB
{
public class Tournament : General... |
src/NReco.Recommender/taste/impl/common/FastByIDMap.cs | nreco/recommender | 35 | 7069040 | <reponame>nreco/recommender
/*
* Copyright 2013-2015 <NAME> (n<EMAIL>)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License version 3
* as published by the Free Software Foundation
* You can be released from the requirements of... |
CSharp MVC Frameworks/Views and Layouts/Chushka/Controllers/OrdersController.cs | stoyanovmiroslav/CSharp-Web | 3 | 7069041 | using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using System.Linq;
using Chushka.Services.Contracts;
using Chushka.Models.ViewModels.Orders;
namespace Chushka.Controllers
{
public class OrdersController : BaseController
{
private IOrderService ordersService;
private I... |
src/Jfevia.ProductivityShell.Vsix/DialogPages/GeneralDialogPage.cs | jfevia/ProductivityShell | 3 | 7069042 | <filename>src/Jfevia.ProductivityShell.Vsix/DialogPages/GeneralDialogPage.cs
using System.ComponentModel;
using System.Runtime.InteropServices;
using Microsoft.VisualStudio.Shell;
namespace Jfevia.ProductivityShell.Vsix.DialogPages
{
[ClassInterface(ClassInterfaceType.AutoDual)]
[ComVisible(true)]
[Guid(P... |
commercetools.Sdk/commercetools.Sdk.HttpApi/HttpApiCommands/InStoreHttpApiCommand.cs | commercetools/commercetools-dotnet-core-sdk | 12 | 7069043 | using System;
using System.Net.Http;
using commercetools.Sdk.Client;
namespace commercetools.Sdk.HttpApi.HttpApiCommands
{
public class InStoreHttpApiCommand<T> : IHttpApiCommandGeneric<InStoreCommand<T>, T>
{
private readonly string storeKey;
private readonly IHttpApiCommand command;
... |
MileageStats.Web/Helpers/ControllerExtensions.cs | mspnp/mobile-web | 8 | 7069044 | /*
Copyright Microsoft Corporation
Licensed under the Apache License, Version 2.0 (the "License"); you may not
use this file except in compliance with the License. You may obtain a copy of
the License at
http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRAN... |
Assets/Scripts/View/UIScript_H/XXMail/XXMailPageUI.cs | cheng219/tianyu | 2 | 7069045 | <reponame>cheng219/tianyu
/// <summary>
/// 何明军
/// 2016/4/19
/// 邮件页UI
/// </summary>
using UnityEngine;
using System.Collections;
public class XXMailPageUI : MonoBehaviour {
public UISprite sprite;
public void SetSelect(bool vals){
if(vals)GetComponent<UIToggle>().value = vals;
}
public void InItSel... |
src/Microsoft.Azure.WebJobs.Host/Loggers/Logger/LogCategoryFilter.cs | stewart-r/azure-webjobs-sdk | 0 | 7069046 | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
using System.Collections.Generic;
using System.Linq;
using Microsoft.Extensions.Logging;
namespace Microsoft.Azure.WebJobs.Logging
{
/// <summary>
/// Provide... |
QAQC Guardian/Windows/MainWindow.xaml.cs | JoshuaGranger/QAQC-Guardian | 0 | 7069047 | 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;... |
SpotzerMediaPro.Tests/Services/CreateOrderServiceTest.cs | kademolaji/MediaProAPI | 0 | 7069048 | using Moq;
using SpotzerMediaPro.Common.Interfaces;
using SpotzerMediaPro.Contracts.DataContracts.Order;
using SpotzerMediaPro.Contracts.ServiceContracts;
using SpotzerMediaPro.Domain.Entities;
using SpotzerMediaPro.Services;
using SpotzerMediaPro.Tests.Utils;
using System;
using System.Collections.Generic;
using Syst... |
src/FubuMVC.Tests/View/WebForms/WebFormViewFacilityTester.cs | uluhonolulu/fubumvc | 1 | 7069049 | <reponame>uluhonolulu/fubumvc
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Web.UI;
using FubuCore;
using FubuMVC.Core.Registration;
using FubuMVC.Core.Registration.Nodes;
using FubuMVC.Core.Urls;
using FubuMVC.Core.View;
using FubuMVC.Tests.View.Fake... |
JJTube/JJTube/Models/List.cs | paladinjosip/Vjestina-2015-Projekt | 0 | 7069050 | <gh_stars>0
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;
namespace JJTube.Models
{
[Table("Lists")]
public class List
{
public List() {
Items = new L... |
BookEditorDemo.Web/Api/ResultBuilder.cs | fxMem/booksEditorDemo | 0 | 7069051 | <gh_stars>0
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace BookEditorDemo.Web.Api
{
public class ResultBuilder
{
public ResultCode Code { get; set; }
public string Message { get; set; }
public object Data { get; set; }
public R... |
Tests/Tests.cs | stumathews/DataflowPipeline.net | 3 | 7069052 | <gh_stars>1-10
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection.Emit;
using System.Text;
using System.Threading.Tasks;
using Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Client;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Pipeline;
using static Pipeline.Pip... |
src/EventStore.ClientAPI.Abstractions/IStreamEventsSlice.cs | cuteant/myevent | 7 | 7069053 | namespace EventStore.ClientAPI
{
public interface IStreamEventsSlice
{
/// <summary>The <see cref="SliceReadStatus"/> representing the status of this read attempt</summary>
SliceReadStatus Status { get; }
/// <summary>The name of the stream read</summary>
string Stream { get; }
/// <summary>T... |
CarparkExercise.ConsoleApp/Program.cs | stglushchenko/CarparkExercise | 0 | 7069054 | <reponame>stglushchenko/CarparkExercise<gh_stars>0
using System;
using System.Globalization;
using System.Threading;
namespace CarparkExercise.ConsoleApp
{
class Program
{
static void Main(string[] args)
{
var auCultureInfo = new CultureInfo("en-AU");
CultureInfo.Defaul... |
Content/Items/Weapons/Thrown/SoulChakram.cs | RighteousRyan1/AerovelenceMod | 0 | 7069055 | using AerovelenceMod.Content.Items.Others.Crafting;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace AerovelenceMod.Content.Items.Weapons.Thrown
{
public class SoulChakram : ModItem
{
int amount = 0;
Projectile previousProjectile = null;
... |
src/Cuemon.Extensions.AspNetCore.Mvc.Formatters.Xml/GlobalSuppressions.cs | gimlichael/cuemoncore | 11 | 7069056 | // This file is used by Code Analysis to maintain SuppressMessage
// attributes that are applied to this project.
// Project-level suppressions either have no target or are given
// a specific target and scoped to a namespace, type, member, etc.
using System.Diagnostics.CodeAnalysis;
[assembly: SuppressMessage("Crit... |
src/controlStation/SBMTCS/SBMTCS/LinkPackage.cs | cfrpg/SharpBladeMotorTester | 1 | 7069057 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SBMTCS
{
/// <summary>
/// 数据包的基类
/// </summary>
public class LinkPackage
{
protected int function;
protected byte[] buffer;
protected int dataSize;... |
Standard/Composites/ParallelSelector.cs | gitter-badger/BonsaiBehaviourTree | 0 | 7069058 |
using Bonsai.Core;
using Bonsai.Designer;
namespace Bonsai.Standard
{
[BonsaiNode("Composites/", "ParallelSelector")]
public class ParallelSelector : Parallel
{
public override Status Run()
{
if (IsAnyChildWithStatus(Status.Success))
{
return Status.Success;
}
if (AreAl... |
src/ImageDL.Core/Classes/ImageDownloading/Booru/Konachan/Models/KonachanPost.cs | advorange/RedditImageDownloader | 3 | 7069059 | <gh_stars>1-10
using System;
using System.Collections.Generic;
using ImageDL.Classes.ImageDownloading.Booru.Models;
using Newtonsoft.Json;
namespace ImageDL.Classes.ImageDownloading.Booru.Konachan.Models
{
/// <summary>
/// Json model for a Konachan post.
/// </summary>
public sealed class KonachanPost : BooruP... |
samples/SignalR.Sample/SignalR.Sample.App/Pages/Chat.razor.cs | AI4E/AI4E.AspNetCore.Components.ExtensibleRouter | 0 | 7069060 | /* License
* --------------------------------------------------------------------------------------------------------------------
* This file is part of the AI4E distribution.
* (https://github.com/AI4E/AI4E.AspNetCore.Components.Extensions)
*
* MIT License
*
* Copyright (c) 2019 <NAME> and contributors.
*
*... |
SmartLMS/ViewModels/ExamTakingModel.cs | arifgit12/SmartLMS | 9 | 7069061 | using SmartLMS.Data.BLL;
using SmartLMS.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace SmartLMS.ViewModels
{
public class ExamTakingModel
{
public Question Question
{
get
{
if (QuestionId != 0)
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.