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 |
|---|---|---|---|---|
ProfitWell/Helpers/PriceConverter.cs | irensaltali/profitwell-net-core | 5 | 7046647 | using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System;
namespace ProfitWell.Helpers
{
public class PriceConverter : JsonConverter
{
//public override object ReadJson(JsonReader reader, Type objectType, JsonSerializer serializer)
//{
// if (reader.TokenType != JsonTok... |
C#/AdventCalendar/Day04/Parser.cs | SparrowBrain/adventofcode | 0 | 7046648 | using System;
using System.Collections.Generic;
using System.Text.RegularExpressions;
namespace AdventCalendar.Day04
{
internal class Parser
{
private readonly Regex _regex = new Regex(@"^\[(?<time>\d{4}-\d{2}-\d{2} \d{2}:\d{2})\] (?<event>[\w #]+)$", RegexOptions.Compiled);
public IEnumerabl... |
code/Areas/SitecoreCognitiveServices/Models/Utility/IImageDescription.cs | markstiles/SitecoreCognitiveServices.IntelligentMedia | 0 | 7046649 | <reponame>markstiles/SitecoreCognitiveServices.IntelligentMedia
using System.Collections.Generic;
using SitecoreCognitiveServices.Foundation.MSSDK.Vision.Models.ComputerVision;
namespace SitecoreCognitiveServices.Feature.IntelligentMedia.Areas.SitecoreCognitiveServices.Models.Utility
{
public interface IImageDes... |
src/LuKaSo.MarketData.Infrastructure/FileSystem/IFileNameGenerator.cs | lkavale/LuKaSo.MarketData | 0 | 7046650 | <gh_stars>0
using LuKaSo.MarketData.Infrastructure.Instruments;
using System;
namespace LuKaSo.MarketData.Infrastructure.FileSystem
{
public interface IFileNameGenerator<T>
where T : ISymbol
{
/// <summary>
/// Generate source file path
/// </summary>
/// <param name="s... |
FriendTab/DataObjects/AndroidPerson.cs | garuma/FriendTab | 1 | 7046651 | <gh_stars>1-10
using System;
using ParseLib;
namespace FriendTab
{
// Represent for a given Person the contact id/lookup id corresponding to the CurrentPerson address book
public class AndroidPerson
{
ParseObject obj;
internal AndroidPerson (ParseObject obj)
{
this.obj = obj ?? new ParseObject ("AndroidP... |
src/DaemonRunner/DaemonRunner/HassioConfig.cs | jvert/netdaemon | 3 | 7046652 | using System.Text.Json.Serialization;
public class HassioConfig
{
[JsonPropertyName("log_level")]
public string? LogLevel { get; set; }
[JsonPropertyName("generate_entities")]
public bool? GenerateEntitiesOnStart { get; set; }
} |
Assets/Scripts/Craft/Parts/Modifiers/IDockingPortScript.cs | sflanker/sr2-improved-docking-port | 1 | 7046654 | using System;
using ModApi.Craft.Parts;
using UnityEngine;
namespace Assets.Scripts.Craft.Parts.Modifiers {
public interface IDockingPortScript {
Boolean IsReadyForDocking { get; }
IPartScript PartScript { get; }
Transform transform { get; }
Single DockingTime { get; set; }
... |
Models/GetListBill_Result.cs | thuonghtml/Shop | 0 | 7046655 | <filename>Models/GetListBill_Result.cs
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be ... |
src/Nucleo.Web/Web/Context/Services/WebFormsCachingService.cs | brianmains/Nucleo.NET | 2 | 7046656 | using System;
using System.Collections.Generic;
using System.Web;
using System.Web.Caching;
using Nucleo.Context.Services;
using Nucleo.Web.Core;
namespace Nucleo.Web.Context.Services
{
public class WebFormsCachingService : ICachingService
{
#if NET20
private HttpContext _context = null;
#else
private HttpCon... |
DelegateSerializer/DelegateSerializer.cs | base33/Delegate-Serializer | 0 | 7046657 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Reflection;
namespace DelegateSerializer
{
/// <summary>
/// Serializes delegates for persistance that can be restored and called back in restful applications
/// </s... |
Trace.Test/ColorTest.cs | andreasala98/NM4PIG | 2 | 7046658 | /*
The MIT License (MIT)
Copyright © 2021 <NAME>, <NAME>, <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
rights to use, copy, modify,... |
CodeWarsTests/7kyu/PowersOf3Tests.cs | a-kozhanov/codewars_csharp | 11 | 7046659 | using CodeWars;
using NUnit.Framework;
namespace CodeWarsTests
{
[TestFixture]
public class PowersOf3Tests
{
[Test]
public void SampleTest()
{
Assert.AreEqual(0, PowersOf3.LargestPower(3));
Assert.AreEqual(1, PowersOf3.LargestPower(4));
}
}
} |
LoginTest/LoginTest/Models/User.cs | LindgrenArto/login-test | 0 | 7046660 | // <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace LoginTest.Models
{
public partial class User
{
publ... |
src/Certify.Core/Management/Challenges/DNS/DnsProviderManual.cs | alphaz18/certify | 0 | 7046661 | using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Certify.Models.Config;
using Certify.Models.Providers;
namespace Certify.Core.Management.Challenges.DNS
{
public class DnsProviderManual : IDnsProvider
{
int IDnsProvider.PropagationDelaySeconds => Definition.Propagati... |
src/Roro.Activities/Helper/CellLocation.cs | mehabhardwaj/abc | 131 | 7046663 | using System;
namespace Roro.Activities
{
public struct CellLocation
{
public int Row { get; set; }
public int Col { get; set; }
public CellLocation(int row, int col)
{
this.Row = row;
this.Col = col;
}
public CellLocation Translate(in... |
src/FubuMVC.Tests/Security/Authentication/Saml2/Xml/SamlResponseXmlReaderTester.cs | RyanHauert/fubumvc | 100 | 7046664 | using System;
using System.Linq;
using System.Xml;
using FubuCore;
using FubuMVC.Core.Security.Authentication.Saml2;
using FubuMVC.Core.Security.Authentication.Saml2.Xml;
using NUnit.Framework;
using Shouldly;
namespace FubuMVC.Tests.Security.Authentication.Saml2.Xml
{
[TestFixture]
public class SamlResponseX... |
_no_namespace/IKSolver.IterationDelegate.cs | SinsofSloth/RF5-global-metadata | 1 | 7046665 | public sealed class IKSolver.IterationDelegate : MulticastDelegate // TypeDefIndex: 9476
{
// Methods
// RVA: 0x2581250 Offset: 0x2581351 VA: 0x2581250
public void .ctor(object object, IntPtr method) { }
// RVA: 0x2581270 Offset: 0x2581371 VA: 0x2581270 Slot: 13
public virtual void Invoke(int i) { }
// RVA: 0x... |
Mod.cs | bloodypenguin/Skylines-TramStationTrack | 0 | 7046666 | using ICities;
using UnityEngine;
namespace TramStationTracks
{
public class Mod : IUserMod
{
public string Name => "Tram Station Track";
public string Description => "Provides tram station track";
}
} |
source/TddBuddy.SpeedySqlLocalDb.Tests/SharedSpeedyLocalDbTests.cs | tddbuddy/SpeedySqlLocalDb | 0 | 7046667 | <gh_stars>0
using System;
using System.Data.Common;
using NUnit.Framework;
using TddBuddy.SpeedyLocalDb.EF.Example.Attachment.Context;
using TddBuddy.SpeedySqlLocalDb.Attribute;
namespace TddBuddy.SpeedySqlLocalDb.Tests
{
[TestFixture]
public class SharedSpeedyLocalDbTests
{
[Test]
... |
Code/OpenRealEstate.Services/Guard.cs | OpenRealEstate/OpenRealEstate.NET | 9 | 7046668 | <reponame>OpenRealEstate/OpenRealEstate.NET
using System;
namespace OpenRealEstate.Services
{
internal static class Guard
{
internal static void AgainstNull(object obj)
{
if (obj == null)
{
throw new ArgumentNullException(nameof(obj));
... |
Assets/Scripts/Editor/ChapterUtilityEditor.cs | Gamagora/from-the-shadows | 0 | 7046669 | using System.Collections;
using UnityEngine;
using UnityEditor;
[CustomEditor(typeof(ChapterUtility))]
public class LevelScriptEditor : Editor
{
public override void OnInspectorGUI()
{
GUILayout.Label("/!\\ Before Using : be sure to Add the following tags :");
GUILayout.Label("- Level : GameOb... |
PlexServiceCommon/LogWriter.cs | downey-lv/PmsService | 3 | 7046670 | #nullable enable
using System;
using System.Globalization;
using System.IO;
using System.Threading.Tasks;
using Serilog;
namespace PlexServiceCommon
{
/// <summary>
/// Static class for writing to the log file
/// </summary>
public static class LogWriter {
private static ILogger? _log;
... |
CustomChromeLibrary/CaptionButton.cs | psomind/WpfCustomWindow | 0 | 7046671 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigati... |
sdk/documenttranslation/Azure.AI.DocumentTranslation/src/DocumentTranslationError.cs | sharma224/azure-sdk-for-net | 0 | 7046672 | <reponame>sharma224/azure-sdk-for-net
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using Azure.AI.DocumentTranslation.Models;
using Azure.Core;
namespace Azure.AI.DocumentTranslation
{
[CodeGenModel("ErrorV2")]
public partial class DocumentTranslationError
... |
Sharpineer/Sharpineer/Parser/Dll/DllParser.cs | Philip-Trettner/Sharpineer | 6 | 7046674 | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
namespace Sharpineer.Parser.Dll
{
class DllParser
{
private string dllPath;
public List<string> FunctionNames=new ... |
WordCounter/obj/Debug/netcoreapp2.2/Razor/Views/WordCounter/New.g.cshtml.cs | meyerclemon/Independent_Project_6 | 1 | 7046675 | #pragma checksum "C:\Users\Maya\Desktop\WordCounter.Solution\WordCounter\Views\WordCounter\New.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "e45b17ed22d5e54f153480f88f735039886556b9"
// <auto-generated/>
#pragma warning disable 1591
[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(ty... |
source/Playnite.FullscreenApp/Controls/ListBoxEx.cs | grnassar/Playnite | 0 | 7046676 | <filename>source/Playnite.FullscreenApp/Controls/ListBoxEx.cs<gh_stars>0
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
us... |
src/OSharp.Web.WebApi/Extensions/ActionExtensions.cs | breavewong/osharp | 17 | 7046677 | using System;
using System.Collections.Generic;
namespace OSharp.Web.Http.Extensions
{
public static class ActionExtensions
{
public static Action Chain(this IEnumerable<Action> actions)
{
return () =>
{
foreach (var action in actions)
... |
Website/SourceCode/Profiles/Profiles/Edit/Modules/CustomEditMailingAddress/CustomEditMailingAddress.ascx.cs | UMassMedIT/ProfilesRNS | 0 | 7046678 | /*
Copyright (c) 2008-2012 by the President and Fellows of Harvard College. All rights reserved.
Profiles Research Networking Software was developed under the supervision of <NAME>, MD, PhD.,
and Harvard Catalyst: The Harvard Clinical and Translational Science Center, with support from the
... |
ACPC2020Day2/ACPC2020Day2/ACPC2020Day2/Questions/QuestionG.cs | terry-u16/AtCoder | 0 | 7046679 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Runtime.CompilerServices;
using ACPC2020Day2.Questions;
using System.Diagnostics;
namespace ACPC2020Day2.Questions
{
public class QuestionG : AtCoderQuestionBase
{
const int INF = 1 << 2... |
sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Profile.cs | nitsi/azure-sdk-for-net | 0 | 7046680 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Threading;
using System.Threading.Tasks;
using Azure;
using Azure.Core;
using Azure.Core.Pipe... |
Platform/Shell/Internal/STGM_FLAGS.cs | Jaykul/clrplus | 3 | 7046682 | //-----------------------------------------------------------------------
// <copyright company="CoApp Project">
// Original (c) Author: <NAME> (Foredecker)
// Changes Copyright (c) 2010 <NAME>, CoApp Contributors. All rights reserved.
// </copyright>
// <license>
// The software is licensed under ... |
Plugins/UnrealDotNet/Source/UnrealEngineSharp/Generate/Class/UEngine.cs | mrkriv/UnrealDotNet | 36 | 7046683 | <filename>Plugins/UnrealDotNet/Source/UnrealEngineSharp/Generate/Class/UEngine.cs
// This file was created automatically, do not modify the contents of this file.
// ReSharper disable InvalidXmlDocComment
// ReSharper disable InconsistentNaming
// ReSharper disable CheckNamespace
// ReSharper disable MemberCanBeP... |
examples/UltraFaceCompare/Program.cs | gillonba/BFace | 0 | 7046684 | using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Imaging;
using NcnnDotNet.OpenCV;
using System.IO;
using System.Linq;
using UltraFaceDotNet;
// See https://aka.ms/new-console-template for more information
public class Program {
private static UltraFaceParameter param = new UltraFacePar... |
Framework/Graphics/Fonts/Font.cs | Colbydude/Foster | 291 | 7046685 | <filename>Framework/Graphics/Fonts/Font.cs
using StbTrueTypeSharp;
using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.InteropServices;
using System.Text;
using System.Text.Unicode;
namespace Foster.Framework
{
/// <summary>
/// Static preconstructed Charsets
/// </summar... |
WxTCmd/Program.cs | allmnet/WxTCmd | 0 | 7046686 | <filename>WxTCmd/Program.cs
using System;
using System.Collections.Generic;
using System.Data;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Security.Principal;
using System.Text;
using CsvHelper;
using CsvHelper.TypeConversion;
using Fc... |
src/Manisero.YouShallNotPass.Samples/Custom_validations/Macro_rules/Composition.cs | manisero/YouShallNotPass | 4 | 7046687 | <gh_stars>1-10
using FluentAssertions;
using Manisero.YouShallNotPass.Validations;
using Xunit;
namespace Manisero.YouShallNotPass.Samples.Custom_validations.Macro_rules
{
public class Composition
{
public static class PasswordValidation
{
public class Rule : IValidationRule<string... |
Source/RW_FacialStuff/Drawer/PawnHeadDrawer.cs | 53N4/RW_FacialStuff | 0 | 7046688 | using JetBrains.Annotations;
using UnityEngine;
using Verse;
namespace FacialStuff
{
public class PawnHeadDrawer : BasicDrawer
{
#region Protected Fields
// original values
// protected static readonly float[] HorHeadOffsets = { 0f, 0.04f, 0.1f, 0.09f, 0.1f, 0.09f };
// Undefi... |
Extensions/XEP-0050/AdHocCommand.cs | luz-sf/Sharp.Xmpp | 3 | 7046689 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml;
namespace Sharp.Xmpp.Extensions
{
/// <summary>
/// A command that an XMPP server supports
/// </summary>
public class AdHocCommand
{
/// <summary>
... |
BaseSpace.SDK/Types/PlannedRun.cs | brunzefb/basespace-csharp-sdk | 1 | 7046690 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.ComponentModel;
namespace Illumina.BaseSpace.SDK.Types
{
[DataContract(Name="PlannedRun")]
public class PlannedRun : RunCompact
{
[DataMember]
public strin... |
Tailviewer.Core/LogFiles/FilteredLogFile.cs | fhmcn/Tailviewer | 0 | 7046691 | <reponame>fhmcn/Tailviewer<gh_stars>0
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Diagnostics;
using System.Threading;
using Tailviewer.BusinessLogic;
using Tailviewer.BusinessLogic.LogFiles;
using Tailviewer.Core.Filters;
namespace Tailviewer.Core.LogFiles
{
/// ... |
Store.Domain/Entities/Product.cs | Simasoft-Consulting-Learning-Division/7192-RefactoringToUnitTesting | 0 | 7046692 | namespace Store.Domain.Entities
{
public class Product: Entity
{
public Product(string title, decimal price, bool active)
{
Title = title;
Price = price;
Active = active;
}
public string Title { get; private set; }
public decimal Price... |
src/azurefluent/Model/FluentCommon/FluentMethodGroup/SegmentFluentMethodGroup/SegmentFluentMethodGroup.cs | MariusVolkhart/autorest.java | 0 | 7046693 | <reponame>MariusVolkhart/autorest.java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
using AutoRest.Core;
using AutoRest.Core.Model;
using AutoRest.Core.Utilities;
using AutoRest.Java.Model;
using Pluralize.N... |
SDK/Chat/Interfaces/IChatChannelPointEvent.cs | hardcpp/BeatSaberPlus | 39 | 7046694 | <reponame>hardcpp/BeatSaberPlus<gh_stars>10-100
namespace BeatSaberPlus.SDK.Chat.Interfaces
{
public interface IChatChannelPointEvent
{
string RewardID { get; }
string TransactionID { get; }
string Title { get; }
string Prompt { get; }
string UserInput { get; }
i... |
AsyncSample/CSharp/Form2.cs | ipponshimeji/FAC2017 | 0 | 7046695 | using System;
using System.Threading.Tasks;
using System.Windows.Forms;
using AsyncSample.Lib;
namespace AsyncSample.CSharp {
// Form1の代わりにForm2を表示させたい場合は、
// Program.Main中の以下の行の"Form1"を"Form2"に変更してください。
// Application.Run(new Form1());
public partial class Form2: Form {
// Downloaderオブジェクトはフォームで使い回す。
// Do... |
src/XAnimation.Droid/BaseViewAnimator.cs | brainoffline/XAnimation | 1 | 7046696 | using System.Threading.Tasks;
using Android.Animation;
using Android.Views;
using Android.Views.Animations;
using Java.Lang;
namespace XAnimation
{
public abstract class BaseViewAnimator : Object
{
private const long DefaultDuration = 1000;
public BaseViewAnimator() { }
public BaseVie... |
src/Feature/SampleFeature/code/Constants/Templates.cs | mtelligent/Sitecore-Reference-Solution | 9 | 7046697 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace SF.Feature.SampleFeature.Constants
{
public class Templates
{
public const string SampleContentList = "{7625C025-E018-4A17-BCD5-0C91411CBD5F}";
}
} |
Assets/SpaceCombatKit/Scripts/AllVehicles/Engines/PoweredVehicleEngines3D.cs | RisulKarimWG/GameX | 1 | 7046698 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace VSX.UniversalVehicleCombat
{
public class PoweredVehicleEngines3D : VehicleEngines3D
{
[Header("Power")]
[Tooltip("The Power component on this vehicle.")]
[SerializeField]
protected Power... |
Xpand/Xpand.Utils/Web/ClientScriptProxy.cs | comstyle/eXpand | 1 | 7046699 | <gh_stars>1-10
// undefine this constant to remove the code that allows for
// optional script compression with the ScriptingModule
// when MS Ajax is not available.
#define IncludeScriptCompressionModuleSupport
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflec... |
src/CUSTIS.NetCore.Lightbox.UnitTests/Common/Dto.cs | CUSTIS-public/CUSTIS.NetCore.Lightbox | 0 | 7046700 | namespace CUSTIS.NetCore.Lightbox.UnitTests.Common
{
internal class Dto
{
public Dto(string msg)
{
Msg = msg;
}
public string Msg { get; set; }
}
} |
NetrixDemo/CodeEditorLib/CodeEditor/Drawing/Shapes/ShapeEllipse.cs | apircher/netrix | 27 | 7046701 | <gh_stars>10-100
using System;
using System.Drawing;
using System.Drawing.Drawing2D;
namespace GuruComponents.CodeEditor.Library.Drawing.Shapes
{
public class ShapeEllipse : ShapeRectangle
{
#region Constructors
public ShapeEllipse(float left, float top, float width, float height)
: base(new RectangleF(lef... |
GlyphBuilding/GlyphMatrixCreator.cs | AramisIT/GlyphsCreator | 0 | 7046702 | <filename>GlyphBuilding/GlyphMatrixCreator.cs
namespace GlyphsCreator.GlyphBuilding
{
using System;
using System.Collections;
using System.Text;
public class GlyphMatrixCreator
{
public const int STANDARD_GLYPH_RESOLUTION = 7;
private static BitArray toStandardBitsArray(st... |
sources/editor/Stride.Assets.Presentation/Thumbnails/VideoThumbnailCompiler.cs | profan/stride | 3 | 7046704 | // Copyright (c) Stride contributors (https://stride3d.net) and Silicon Studio Corp. (https://www.siliconstudio.co.jp)
// Distributed under the MIT license. See the LICENSE.md file in the project root for more information.
using Stride.Core.Assets.Compiler;
using Stride.Assets.Media;
using Stride.Assets.Presentation.Re... |
MediaBrowser.Plugins.ArgusTV/SourceArgus/DataContracts/ScheduleType.cs | snazy2000/MediaBrowser.Plugins | 1 | 7046705 | /*
* Copyright (C) 2007-2014 ARGUS TV
* http://www.argus-tv.com
*
* This Program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* Thi... |
sdk/dotnet/Secretmanager/SecretVersion.cs | 23doors/pulumi-gcp | 0 | 7046706 | <reponame>23doors/pulumi-gcp<gh_stars>0
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pu... |
bounce/Assets/Bouce/Scripts/FSM/State.cs | thatgamesguy/bounce | 4 | 7046707 | using UnityEngine;
using System.Collections;
using System.Collections.Generic;
namespace Bounce.StateMachine
{
public class State : FSMState
{
private List<FSMAction> actions;
private List<FSMReason> reasons;
private int currentAction = 0;
private bool _parallelExecution;
public State(FSMSt... |
Workbench/Parsers/SqlMode.cs | TheApeMachine/ByeSQL | 1 | 7046708 | <filename>Workbench/Parsers/SqlMode.cs
using System;
using System.Collections.Generic;
using System.Text;
namespace Workbench.Parsers
{
[Flags]
public enum SqlMode : int
{
NoMode = 0,
AnsiQuotes = 1 << 0,
HighNotPrecedence = 1 << 1,
PipesAsConcat = 1 << 2,
IgnoreSpa... |
MVVMSample/WpfApplication1/ViewModels/MainViewModel.cs | raidho17/WPFSamples | 7 | 7046709 | <reponame>raidho17/WPFSamples<filename>MVVMSample/WpfApplication1/ViewModels/MainViewModel.cs
using System.Collections.ObjectModel;
namespace WpfApplication1.ViewModels
{
public class MainViewModel : NotificationObject
{
#region Ctor
public MainViewModel()
{
FamilyVMs = ne... |
PluginLoader/Patch/Patch_Update.cs | WesternGamer/MEPluginLoader | 0 | 7046710 | <gh_stars>0
using HarmonyLib;
using Sandbox;
namespace MEPluginLoader.Patch
{
[HarmonyPatch(typeof(MySandboxGame), "Update")]
public static class Patch_Update
{
public static void Postfix()
{
if (Main.Instance != null)
{
Main.Instance.Update();
... |
mcs/class/WindowsBase/System.ComponentModel/DependencyPropertyDescriptor.cs | lefb766/mono | 469 | 7046711 | <reponame>lefb766/mono<gh_stars>100-1000
// 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, publis... |
src/HareDu/Extensions/BrokerAdminDebuggingExtensions.cs | ahives/HareDu1 | 6 | 7046712 | <reponame>ahives/HareDu1<gh_stars>1-10
namespace HareDu.Extensions
{
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Core;
using Core.Extensions;
using Model;
public static class BrokerAdminDebuggingExtensions
{
public static Task<ResultList<B... |
Source/Api/EtAlii.Ubigia.Api.Transport/SpaceConnection/Clients/Roots/RootContext.cs | vrenken/EtAlii.Ubigia | 2 | 7046713 | // Copyright (c) <NAME>. All rights reserved. See the license on https://github.com/vrenken/EtAlii.Ubigia
namespace EtAlii.Ubigia.Api.Transport
{
public class RootContext : SpaceClientContextBase<IRootDataClient, IRootNotificationClient>, IRootContext
{
public RootContext(
IRootNotification... |
Portal/Server/Head/src/Service/DataAccessLayer/IGGPVersioningDBDataContext.cs | jackobo/jackobs-code | 0 | 7046714 | using System;
using Spark.Infra.Data.LinqToSql;
using System.Linq;
namespace GamesPortal.Service.GGPVersioning
{
public interface IGGPVersioningDBDataContext : IDbDataContext
{
}
public partial class GGPVersioningDBDataContext : IGGPVersioningDBDataContext
{
private DbDataContex... |
src/Tbs.Application/DomainModels/Dto/RouteWorkerStatDto.cs | jiangyimin/Tbs | 0 | 7046715 | <gh_stars>0
namespace Tbs.DomainModels.Dto
{
public class RouteWorkerStatDto
{
public string Worker { get; set; }
public int DayCount { get; set; }
public int RoleCount1 { get; set; }
public int RoleCount2 { get; set; }
public int RoleCount3 { get; set; }
... |
Assets/EntityNetworkingSystems/Scripts/NetBackbone/NetworkObject.cs | AncientEntity/EntityNetworkingSystems | 15 | 7046716 | <gh_stars>10-100
using System;
using System.Collections;
using System.Collections.Generic;
using System.Reflection;
using UnityEngine;
using UnityEngine.Events;
namespace EntityNetworkingSystems
{
public class NetworkObject : MonoBehaviour
{
//NETWORK OBJECT AUTOMATICALLY GETS ADDED TO PREFAB WHEN INS... |
Tutorial.Tests.Shared/LinqToEntities/Manipulation.TransactionTests.cs | Dixin/FunctionalProgramming-LINQ | 7 | 7046717 | namespace Tutorial.Tests.LinqToEntities
{
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Tutorial.LinqToEntities;
[TestClass]
public class TransactionTests
{
[TestMethod]
public void TransactionTest()
{
Transactions.Default(new AdventureWorks());
... |
Assets/Scripts/Enemy/NPCAnimator.cs | Chxrry/Unity-Project | 0 | 7046719 | <filename>Assets/Scripts/Enemy/NPCAnimator.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.AI;
public class NPCAnimator : MonoBehaviour {
const float locomationAnimationSmoothTime = 0.1f;
// Use this for initialization
NavMeshAgent agent;
Animator an... |
sdk/dotnet/Route53Resolver/GetResolverRule.cs | pulumi/pulumi-aws-native | 29 | 7046720 | <filename>sdk/dotnet/Route53Resolver/GetResolverRule.cs
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.T... |
src/SoapCore.Tests/Model/ComplexModelInput.cs | therealslouchy/SoapCore | 812 | 7046721 | <gh_stars>100-1000
using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
namespace SoapCore.Tests.Model
{
[DataContract]
public class ComplexModelInput
{
[DataMember]
public string StringProperty { get; set; }
[DataMember]
public int IntProperty { get; set; }
[DataMember]
... |
MetadataExtractor/Formats/Tga/TgaExtensionReader.cs | kwhopper/metadata-extractor-dotnet | 677 | 7046722 | // Copyright (c) <NAME> and contributors. All Rights Reserved. Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
using MetadataExtractor.IO;
using System;
using System.IO;
using System.Text;
namespace MetadataExtractor.Formats.Tga
{
/// <summary>Reads TGA im... |
src/Commands/EnvironmentCommand.cs | infinitespace-studios/sdb | 3 | 7046723 | <filename>src/Commands/EnvironmentCommand.cs
//
// The MIT License (MIT)
//
// Copyright (c) 2018 <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 w... |
TelegramNet/Entities/Extra/Base/MimeMedia.cs | DenVot/Telegram.NET | 6 | 7046724 | namespace TelegramNet.Entities.Extra.Base
{
public class MimeMedia : Media
{
public MimeMedia(string fileId,
string fileUniqueId,
string? mimeType,
string? fileName,
int fileSize,
BaseTelegramClient client)
: base(fileId, fileUn... |
Assets/Scripts/RocketLauncher.cs | bramdal/TF2_Rocket_Jumping | 0 | 7046725 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class RocketLauncher : MonoBehaviour
{
[Header("Weapon Stats")]
//weapon stats
public int clipSize = 4;
int clipAmount;
public int totalAmmo = 20;
[Header("Projectile Variabl... |
Pathify/Data/PointStruct.cs | m-peko/Pathify | 0 | 7046726 | <reponame>m-peko/Pathify
using Android.Views;
using Android.Widget;
using Android.Gms.Maps.Model;
using Android.Locations;
using Android.Util;
using System.Xml;
namespace Pathify.Data
{
public struct Point
{
public double latitude;
public double longitude;
public string time;
... |
src/SettingsProviderNet/JsonSettingsStoreBase.cs | evgenekov/SettingsProvider.net | 0 | 7046727 | using System.Collections.Generic;
using System.IO;
using System.Runtime.Serialization.Json;
using System.Text;
namespace SettingsProviderNet
{
public abstract class JsonSettingsStoreBase : ISettingsStorage
{
public void Save(string key, Dictionary<string, string> settings)
{
var fil... |
02.Sets and Dictionaries - Exercises/07.Fix emails/Program.cs | svetlimladenov/C-Sharp-Advanced---2016 | 0 | 7046729 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _07.Fix_emails
{
public class Program
{
public static void Main()
{
var result = new Dictionary<string,string>();
while (true)
{
... |
CS_Interop/DxDevice.cs | Ilia-Kosenkov/DX_Compute | 0 | 7046730 | // MIT License
//
// Copyright(c) 2018 <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 rights
// to use, copy, modify, me... |
src/Lykke.Service.BinanceAdapter/Settings/BinanceAdapterSettings.cs | LykkeCity/Lykke.Service.BinanceAdapter | 1 | 7046731 | <reponame>LykkeCity/Lykke.Service.BinanceAdapter
using JetBrains.Annotations;
using Lykke.Common.ExchangeAdapter.Server.Settings;
using Lykke.Service.BinanceAdapter.Services;
namespace Lykke.Service.BinanceAdapter.Settings
{
[UsedImplicitly(ImplicitUseTargetFlags.WithMembers)]
public class BinanceAdapterSetti... |
src/PMSESync/WorkerRole.cs | richstep/TVWS-DB-Code | 0 | 7046732 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
namespace Microsoft.Whitespace.PmseSync
{
using System;
using System.Net;
using System.Threading;
using Unity;
using Microsoft.Whitespace.Common;
using Microsoft.Whitespace.Common.Utilities;
usin... |
LiteDisk/Storage/Pages/ExtendPage.cs | prepare/LiteStore | 0 | 7046733 | <filename>LiteDisk/Storage/Pages/ExtendPage.cs<gh_stars>0
//MIT, 2014-2015 <NAME>
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
namespace LiteDB
{
/// <summary>
/// Represent a extra data page that contains the object when is not possible store in DataPage (bigger then ... |
Assets/MaxSdk/Scripts/IntegrationManager/Editor/AppLovinCommandLine.cs | MathieuGery/HC2-Knuckles | 0 | 7046734 | //
// AppLovinBuildPostProcessor.cs
// AppLovin MAX Unity Plugin
//
// Created by <NAME> on 10/30/19.
// Copyright © 2019 AppLovin. All rights reserved.
//
#if UNITY_IOS || UNITY_IPHONE
using System.Diagnostics;
using System.IO;
namespace AppLovinMax.Scripts.IntegrationManager.Editor
{
/// <summary>
///... |
source/TUtils.Common.EF6/EF6Configuration.cs | Tommmi/TUtils.Common | 0 | 7046735 | using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
namespace TUtils.Common.EF6
{
public static class EF6Configuration
{
private static object _sync = new object();
public static void AddConnecti... |
src/GitHubHelper/Model/GetHeadResult.cs | lbugnion/GitHubHelper | 3 | 7046736 | <reponame>lbugnion/GitHubHelper
using Newtonsoft.Json;
namespace GitHubHelper.Model
{
public class GetHeadResult
{
public string ErrorMessage
{
get;
set;
}
[JsonProperty("object")]
public GetHeadsResultObject Object
{
get;
... |
source/KlipperSharpWebApi/KlipperSharpWebApi/Models/Jobs/KlipperJobQueueItem.cs | AndreasReitberger/KlipperRestApiSharp | 2 | 7046737 | using Newtonsoft.Json;
namespace AndreasReitberger.Models
{
public partial class KlipperJobQueueItem
{
#region Properties
[JsonProperty("filename")]
public string Filename { get; set; }
[JsonProperty("job_id")]
public string JobId { get; set; }
[JsonProperty("... |
WinToolHAB/WTHFrmMain.Designer.cs | davorf/WinToolHAB | 0 | 7046738 | <gh_stars>0
namespace WinToolHAB.FrmMain
{
partial class WTHFrmMain
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summ... |
VideoFritter/Common/CustomButtonAttachedProperties.cs | gaborposz/VideoFritter | 1 | 7046739 | <reponame>gaborposz/VideoFritter<gh_stars>1-10
using System.Windows;
namespace VideoFritter.Common
{
public static class CustomButtonAttachedProperties
{
public static readonly DependencyProperty RadiusValueProperty =
DependencyProperty.RegisterAttached("RadiusValue", typeof(CornerRadius... |
WarOfEmpires/Filters/AllianceAuthorizeFilter.cs | maikelbos0/WarOfEmpires | 0 | 7046740 | using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Filters;
using System.Net;
using WarOfEmpires.Services;
namespace WarOfEmpires.Filters {
public sealed class AllianceAuthorizeFilter : IAuthorizationFilter {
private readonly IAllianceAuthorizationRequest _allianceAuthorizationRequest;
... |
src/Examples/Netension.Monitoring.Example.NetCoreWebApplication/Startup.cs | Netension/monitoring | 1 | 7046741 | <reponame>Netension/monitoring
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Netension.Monitoring.Prometheus;
using Prometheus;
using System.Collections.Generic;
using System.Reflection;
namespace Netens... |
Hurricane.Shared/Networking/Interfaces/INetworkHandler.cs | Evairfairy/Hurricane | 7 | 7046742 | using System;
using Hurricane.Shared.Objects.Interfaces;
namespace Hurricane.Shared.Networking.Interfaces
{
public interface INetworkHandler : IHurricaneObject, IOutput
{
INetworkInterface CreateInterface();
Boolean DestroyInterface(Guid guid);
Boolean DestroyInterface(INetworkInterfac... |
TixFactory.Queueing.Remote/TixFactory.Queueing.Remote/Implementation/RemoteItemQueueV3.cs | tix-factory/nuget | 0 | 7046743 | <reponame>tix-factory/nuget
using System;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using Newtonsoft.Json;
using TixFactory.Configuration;
using TixFactory.Http;
using TixFactory.Http.Client;
using HttpMethod = TixFactory.Http.HttpMethod;
namespace TixFactory.Queueing.Remote
{
/// ... |
MediaProviderPlugins/OssKinskyMppMovieTrailers/Podcast.cs | daviddw/Kinsky | 1 | 7046744 | <gh_stars>1-10
using System;
using System.Net;
using System.IO;
using System.Xml;
using System.Collections.Generic;
using Linn;
using Linn.Kinsky;
using Upnp;
namespace OssKinskyMppMovieTrailers
{
internal interface IVideo
{
string Uri { get; }
uint Size { get; }
}
internal interface... |
Assets/Packages/IPAddressDrivenSceneLoader/IPAddressDrivenSceneLoader.cs | XJINE/Unity_IPAddressDrivenSceneLoader | 0 | 7046745 | using System;
using System.Linq;
using System.Net;
using UnityEngine;
using UnityEngine.SceneManagement;
public class IPAddressDrivenSceneLoader : SingletonMonoBehaviour<IPAddressDrivenSceneLoader>
{
[System.Serializable]
public class SceneInfo
{
public string ipAddress;
public stri... |
MyOnlineShop/MyOnlineShop.Infrastructure/Identity/JwtTokenGeneratorService.cs | DimchoLakov/MyOnlineShop-Domain-Driven-Design | 1 | 7046746 | <gh_stars>1-10
namespace MyOnlineShop.Infrastructure.Identity
{
using Microsoft.Extensions.Options;
using Microsoft.IdentityModel.Tokens;
using MyOnlineShop.Application.Common;
using System;
using System.Collections.Generic;
using System.IdentityModel.Tokens.Jwt;
using System.Linq;
usin... |
Corund/Geometry/GeometryRectGroup.cs | impworks/corund | 14 | 7046747 | <reponame>impworks/corund<gh_stars>10-100
using System.Collections.Generic;
using System.Diagnostics;
using Corund.Tools;
using Microsoft.Xna.Framework;
namespace Corund.Geometry
{
/// <summary>
/// A set of rectangles comprising a single shape.
/// </summary>
[DebuggerDisplay("GeometryRectGroup ({Rec... |
YnabBotService/DockerEnv/EnvProvider.cs | Podlesnyy/YnabBot | 6 | 7046748 | using System.IO;
using System.Linq;
using Microsoft.Extensions.Configuration;
namespace Adp.YnabBotService.DockerEnv
{
public sealed class EnvProvider : ConfigurationProvider
{
private readonly string envPath;
public EnvProvider(string envPath)
{
this.envPath = envPath;
... |
Assets/Scripts/UI/HUD.cs | dcavadia/2DPong | 0 | 7046749 | <reponame>dcavadia/2DPong
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Events;
using UnityEngine.UI;
using TMPro;
public class HUD : MonoBehaviour
{
TextMeshProUGUI scoreText;
int score = 0;
const string ScorePrefix = "Score: ";
TextMeshProUGUI balls... |
MissionDemolitionUnity/Assets/Scripts/FollowCam.cs | Campinator/Mission-Demolition | 0 | 7046750 | <gh_stars>0
/**
* Date Created: Feb 14. 2022
* Created By: <NAME>
*
* Date Modified: Feb 14, 2022
* Modified by: <NAME>
*
* Description: Camera to follow projectile
*
*/
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class FollowCam : MonoBehaviour
{
public static... |
Tests/CrispyWaffle.Tests/Collections/ConfigurationCollection.cs | guibranco/CrispyWaffle.Core | 7 | 7046751 | // ***********************************************************************
// Assembly : CrispyWaffle.Tests
// Author : <NAME>
// Created : 09-06-2020
//
// Last Modified By : <NAME>
// Last Modified On : 09-06-2020
// ******************************************************************... |
Src/Flub.TelegramBot/Types/ChatMember/ChatMemberBanned.cs | flubl/Flub.TelegramBot | 0 | 7046752 | <reponame>flubl/Flub.TelegramBot<filename>Src/Flub.TelegramBot/Types/ChatMember/ChatMemberBanned.cs
using Flub.Utils.Json;
using System;
using System.Text.Json.Serialization;
namespace Flub.TelegramBot.Types
{
/// <summary>
/// Represents a chat member that was banned in the chat and can't return to the chat ... |
TestStack.BDDfy.Tests/Exceptions/OtherExceptions/WhenResolvingExceptionsFromDifferentScanners.cs | JakeGinnivan/TestStack.BDDfy | 2 | 7046753 | using System;
using System.Xml;
using NUnit.Framework;
namespace TestStack.BDDfy.Tests.Exceptions.OtherExceptions
{
public class WhenResolvingExceptionsFromDifferentScanners
{
private ExceptionThrowingTest<OuterException> _sut;
/// <summary>
/// Test to resolve issue where fluent scan... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.