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 |
|---|---|---|---|---|
Assets/Scripts/AI/FishDecisionState.cs | EricWRogers/ChallengerDeep | 0 | 7051621 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[System.Serializable]
public class FishDecisionState : State
{
private float randomDecision;
public float PlayerLevel;
public float AiLevel;
public bool HasMadeDecision = false;
public override void OnStart()
... |
Block Editor/Block Editor/ToolType.cs | CopperPenguin96/Redstone | 4 | 7051622 | <reponame>CopperPenguin96/Redstone<filename>Block Editor/Block Editor/ToolType.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Block_Editor
{
public enum ToolType
{
Default,
Wooden,
Stone,
Iron,
Diamond,
Netherite,
Golden... |
src/Core/DAO/FinderException.cs | cortside/cortside.core | 0 | 7051623 | using System;
namespace Cortside.Core.DAO {
/// <summary>
/// Exception created when a finder returns no rows.
/// </summary>
public class FinderException : DaoException {
public FinderException() { }
public FinderException(String message) : base(message) { }
}
}
|
githubapp/server/Restrike.GitHubIntegration.Api/LifetimeAttribute.cs | msktenn/sandbox | 0 | 7051624 | <gh_stars>0
using System;
namespace Restrike.GitHubIntegration.Api
{
[AttributeUsage(AttributeTargets.Class)]
public abstract class LifetimeAttribute : Attribute
{
}
/// <summary>
/// Marks a class as "transient" lifetime; that is, a new instance is created for every use.
/// </summary>
... |
tests/src/CoreMangLib/cti/system/datetime/datetimeticks.cs | CyberSys/coreclr-mono | 10 | 7051625 | <filename>tests/src/CoreMangLib/cti/system/datetime/datetimeticks.cs<gh_stars>1-10
using System;
using System.Collections;
using System.Threading;
/// <summary>
/// System.DateTime.Ticks
/// </summary>
public class DateTimeTicks
{
public static int Main(string[] args)
{
DateTimeTicks ticks = new DateT... |
source/MikhailKhalizev.Max/source/Program/Auto/z-100d-ab7d.cs | mikhail-khalizev/max | 3 | 7051626 | <reponame>mikhail-khalizev/max
using System;
using MikhailKhalizev.Processor.x86.BinToCSharp;
namespace MikhailKhalizev.Max.Program
{
public partial class RawProgram
{
[MethodInfo("0x100d_ab7d-d16a9f98")]
public void Method_100d_ab7d()
{
ii(0x100d_ab7d, 5); push(0... |
src/Stump.Server.WorldServer/game/fights/Buffs/Customs/SpellReflectionBuff.cs | Daymortel/Stump | 2 | 7051627 | <gh_stars>1-10
using Stump.DofusProtocol.Enums;
using Stump.DofusProtocol.Types;
using Stump.Server.WorldServer.Game.Actors.Fight;
using Stump.Server.WorldServer.Game.Spells;
using System;
using Stump.Core.Mathematics;
using Stump.Server.WorldServer.Game.Effects.Handlers.Spells;
namespace Stump.Server.WorldServer.Game... |
Assets/Scripts/FaceTracker.cs | Zayd963/HumberAnimation | 0 | 7051628 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using OpenCvSharp;
public class FaceTracker : MonoBehaviour
{
private WebCamTexture webcamTexture;
private CascadeClassifier cascade;
public OpenCvSharp.Rect faceRect;
public bool faceExists = false;
[SerializeField]
... |
test/AElf.CrossChain.Grpc.Tests/GrpcCrossChainServerNodePluginTest.cs | quangdo3112/AElf | 1 | 7051629 | <reponame>quangdo3112/AElf<filename>test/AElf.CrossChain.Grpc.Tests/GrpcCrossChainServerNodePluginTest.cs
using System.Threading.Tasks;
using AElf.Kernel;
using AElf.Kernel.Node.Infrastructure;
using Microsoft.Extensions.Options;
using Xunit;
namespace AElf.CrossChain.Grpc
{
public sealed class GrpcCrossChainServe... |
Assets/Scripts/UI/Number/MyTextManager.cs | albertllopart/Warpolis-TFG-Unity | 1 | 7051630 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MyTextManager : MonoBehaviour
{
//prefab
public GameObject sprite;
public enum VerticalAnchor { COLLAPSE, CENTER };
[Header("Parameters")]
public VerticalAnchor verticalAnchor;
public float spacing;
... |
Assets/Scripts/CharactersManager.cs | Xenation/Ludum-Dare-43 | 1 | 7051631 | using System;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
using UnityEngine.SceneManagement;
namespace LD43
{
//public enum PlayerTypesEnum
//{
// Leader = 1,
// Small = 2,
// HighJump = 3,
// SmallJump = 4,
// Strong = 5
//}
[Flags]
... |
test/Tizen.NUI.Tests/Tizen.NUI.Devel.Tests/testcase/internal/Common/TSResizeSignal.cs | lavataste/TizenFX | 1 | 7051632 | <filename>test/Tizen.NUI.Tests/Tizen.NUI.Devel.Tests/testcase/internal/Common/TSResizeSignal.cs
using global::System;
using NUnit.Framework;
using NUnit.Framework.TUnit;
using Tizen.NUI.Components;
using Tizen.NUI.BaseComponents;
namespace Tizen.NUI.Devel.Tests
{
using tlog = Tizen.Log;
[TestFixture]
[De... |
Presentation.Web/Views/Student/Mail.cshtml | micbojhan/fodbold | 11 | 7051633 | @model Presentation.Web.Models.Student.MailViewModel
<h2>Submit Email</h2>
@using (Html.BeginForm("SendMail", "Student", new { }, FormMethod.Post, new { }))
{
<p>Remember to create a maildrop folder in C:\ if running in debug mode.</p>
@Html.AntiForgeryToken()
<label>Subject:</label>
@Html.TextBoxFor(... |
BfresLibrary/External/Brtcamera.cs | MichaelHinrichs/BfresLibrary | 0 | 7051634 | <reponame>MichaelHinrichs/BfresLibrary
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using Syroot.BinaryData;
namespace BfresLibrary
{
/// <summary>
///
/// </summary>
public class Brtcamera
{
/// <summary>
///
/// ... |
src/stashbox.web.webforms/StashboxAdapter.cs | 0x15e/stashbox-web-webforms | 0 | 7051635 | using System;
using System.Web;
using JetBrains.Annotations;
namespace Stashbox.Web.WebForms
{
public static class StashboxAdapter
{
private static readonly object Lock = new object();
internal static IStashboxContainer RootContainer { get; private set; }
#region [ Helpers ]
... |
libmidi.net/Enums/MetaEventType.cs | seeseekey/libmidi.net | 7 | 7051636 | using System;
namespace libmidi.net.Enums
{
/// <summary>
/// MIDI MetaEvent Type
/// </summary>
public enum MetaEventType : byte
{
/// <summary>Track sequence number</summary>
TrackSequenceNumber=0x00,
/// <summary>Text event</summary>
TextEvent=0x01,
/// <summary>Copyright</summary>
Co... |
CloudOps/Generated/EC2/DescribeBundleTasksOperation.cs | dtylman/heaven | 96 | 7051637 | using Amazon;
using Amazon.EC2;
using Amazon.EC2.Model;
using Amazon.Runtime;
namespace CloudOps.EC2
{
public class DescribeBundleTasksOperation : Operation
{
public override string Name => "DescribeBundleTasks";
public override string Description => "Describes one or more of your bundling tas... |
crest/Assets/Crest/Crest/Scripts/Time/TimeProviderDefault.cs | furkandinc/crest | 12 | 7051638 | // Crest Ocean System
// This file is subject to the MIT License as seen in the root of this folder structure (LICENSE)
using UnityEngine;
namespace Crest
{
/// <summary>
/// Default time provider - sets the ocean time to Unity's game time.
/// </summary>
public class TimeProviderDefault : TimeProvi... |
src/NStore.Sample/Support/ColoredConsoleReporter.cs | alkampfergit/NStore | 74 | 7051639 | <gh_stars>10-100
using System;
namespace NStore.Sample.Support
{
public class ColoredConsoleReporter : IReporter
{
private static readonly object Lock = new object();
private readonly string _name;
private readonly ConsoleColor _color;
public ColoredConsoleReporter(st... |
C_Sharp/SonicScholar.SimpleBoardGame.Framework/SonicScholar.SimpleBoardGame.Framework.Test/Mock/MockPoorlyImplementedAIPlayer.cs | SonicScholar/ultimate-coding-kickstart-2D-Game | 0 | 7051640 | <gh_stars>0
namespace SonicScholar.SimpleBoardGame.Framework.Test.Mock
{
/// <summary>
/// This class simulates a poorly implemented AI
/// player that does not return valid game actions.
/// It's used for testing that proper exceptions are
/// thrown so the programmer is made aware.
/// </summ... |
src/IronFoundry.Dea/Types/RouterRegister.cs | ironfoundry-attic/ironfoundry | 4 | 7051641 | namespace IronFoundry.Dea.Types
{
using System;
using JsonConverters;
using Newtonsoft.Json;
/// <summary>
/// router.register
/// </summary>
public class RouterRegister : Message
{
private const string publishSubject = "router.register";
[JsonIgnore]
public ov... |
src/Stl/Conversion/IConverter.cs | servicetitan/Stl | 0 | 7051642 | <filename>src/Stl/Conversion/IConverter.cs
using Stl.Conversion.Internal;
namespace Stl.Conversion;
public interface IConverter<in TSource, TTarget>
{
Option<TTarget> TryConvert(TSource source);
#if NETFRAMEWORK || NETSTANDARD2_0
TTarget Convert(TSource source);
#else
TTarget Convert(TSource source)
{... |
SDL2-CS-OO/SDLJoystick.cs | SpaceCurator/SDL2-CS-OO | 1 | 7051643 | using System;
using SDL2;
namespace SDL2_CS_OO
{
public sealed class SDLJoystick : SDLIndexedDevice, IDisposable
{
public SDLJoystick(IntPtr JoystickPtr)
{
myPtr = JoystickPtr;
CheckPtr();
}
public SDLJoystick(int Device_Index)
{
... |
src/services/traceability/HFX.Traceability.Domain/Models/SerializedComponentTracing.cs | HelioFlux/Heliosphere | 0 | 7051644 | <gh_stars>0
using HFX.Common.SeedWork;
using System;
namespace HFX.Traceability.Domain.Models
{
public class SerializedComponentTracing : Entity
{
public int SerializedComponentId { get; set; }
public SerializedComponent SerializedComponent { get; set; }
public int? OperationId { get;... |
Git/GitLab.InedoExtension/SuggestionProviders/MilestoneSuggestionProvider.cs | MarkRobertJohnson/inedox-git | 0 | 7051645 | <gh_stars>0
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Inedo.Extensibility;
using Inedo.Extensibility.Credentials;
using Inedo.Extensions.GitLab.Clients;
using Inedo.Extensions.GitLab.Credentials;
using Inedo.Web;
namespace Inedo.Extensions.GitLab.... |
src/Accounts/Authentication/Config/Internal/Providers/StreamConfigurationProvider.cs | pavel-petrenko/azure-powershell | 0 | 7051646 | // ----------------------------------------------------------------------------------
//
// 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://w... |
Piotr.SaldeoSmartApi/ParametersExtensions.cs | piotr-cieslik/SaldeoSmartApi | 2 | 7051647 | <gh_stars>1-10
using System;
using Piotr.SaldeoSmartApi.Serialization;
namespace Piotr.SaldeoSmartApi
{
public static class ParametersExtensions
{
public static Parameters AddCommand(this Parameters parameters, string value) => parameters.Add("command", value);
public static Parameters AddCo... |
NDesk.Options.TypedOptionSet/OptionSet.cs | Brightspace/NDesk.Options.TypedOptionSet | 0 | 7051648 | using System;
using System.Collections.Generic;
using System.IO;
namespace NDesk.Options {
public sealed partial class OptionSet<TArguments>
where TArguments : new() {
private readonly List<OptionBuilder> m_optionBuilders = new List<OptionBuilder>();
private readonly Converter<string, string> m_loc... |
DotNeuralNet.Test/PerceptronTest.cs | JZP930506/DotNeuralNet | 0 | 7051649 | <filename>DotNeuralNet.Test/PerceptronTest.cs
using System.Runtime.InteropServices;
using DotNeuralNet.Perceptrons;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace DotNeuralNet.Test
{
[TestClass]
public class PerceptronTest
{
[TestMethod]
public void TestLogicalAnd()
{
var percep... |
Array and List Algorithms - Exercises/05. Decode Radio Frequencies/Program.cs | viktor4o4o/Homework | 0 | 7051650 | <gh_stars>0
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _05.Decode_Radio_Frequencies
{
class Program
{
static void Main(string[] args)
{
var numbers = Console.ReadLine().Split().ToArray();
... |
MTCG/MTCG/Cards/Specialities/Types/Miss/MissKrakenBecauseOfImmunity.cs | kurbaniec/SWE1-MTCG | 0 | 7051651 | using MTCG.Cards.Basis;
using MTCG.Cards.Basis.Monster;
using MTCG.Cards.DamageUtil;
namespace MTCG.Cards.Specialities.Types.Miss
{
/// <summary>
/// Concrete <c>ISpeciality</c> and <c>IMiss</c>
/// used to miss attacks at Krakens.
/// </summary>
public class MissKrakenBecauseOfImmunity : ISpecial... |
Model/Mesh/Enums/StateMotionTypeEnum.cs | Enyss/RSSE | 3 | 7051652 | <reponame>Enyss/RSSE
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace RSSE
{
public enum StateMotionTypeEnum
{
EVENTDRIVEN,
LINEAR,
STEP,
alt_LINEAR,
}
}
|
src/nscreg.Data/Constants/DataSourceQueueStatuses.cs | runejo/statbus | 1 | 7051653 | <reponame>runejo/statbus
namespace nscreg.Data.Constants
{
/// <summary>
/// Data Source Queue Status Constants
/// </summary>
public enum DataSourceQueueStatuses
{
InQueue = 1,
Loading = 2,
DataLoadCompleted = 3,
DataLoadCompletedPartially = 4,
DataLoadFailed... |
src/Data/Serialization.DasyncJson/Base/StringExtensions.cs | Dasync/Dasync | 174 | 7051654 | <gh_stars>100-1000
using System;
namespace Dasync.Serialization
{
public static class StringExtensions
{
public static byte[] ParseAsHexByteArray(this string value)
{
if (value == null)
return null;
if (value.Length == 0)
return new byte... |
GuiStracini.Mandae/Models/OrderModel.cs | guibranco/GuiStracini.Mandae | 1 | 7051655 |
// ***********************************************************************
// Assembly : GuiStracini.Mandae
// Author : <NAME>
// Created : 28/09/2017
//
// Last Modified By : <NAME>
// Last Modified On : 28/09/2017
// ***********************************************************************
... |
ISTC.CRM/ISTC.CRM.BLL/Models/EmailListsBL.cs | narekye/istc_final_project | 2 | 7051656 | using System;
using System.Collections.Generic;
namespace ISTC.CRM.BLL.Models
{
public partial class EmailListsBL
{
public EmailListsBL()
{
//ConnectionTable = new HashSet<ConnectionTableBL>();
}
public int Id { get; set; }
public string MailListName { get;... |
CSharp/CoderLib/CoderLib6/Graphs/Arrays/SpanningTreeHelper.cs | sakapon/AtCoder-Contests | 0 | 7051657 | <reponame>sakapon/AtCoder-Contests<filename>CSharp/CoderLib/CoderLib6/Graphs/Arrays/SpanningTreeHelper.cs
using System;
using System.Collections.Generic;
using System.Linq;
using CoderLib6.Trees;
namespace CoderLib6.Graphs.Arrays
{
// Test: https://onlinejudge.u-aizu.ac.jp/courses/lesson/1/ALDS1/12/ALDS1_12_A... |
VrmacVideo/Containers/MKV/Readers/SeekIndex.cs | Const-me/Vrmac | 91 | 7051658 | <reponame>Const-me/Vrmac<filename>VrmacVideo/Containers/MKV/Readers/SeekIndex.cs<gh_stars>10-100
using System;
using System.Collections.Generic;
namespace VrmacVideo.Containers.MKV
{
struct SeekPoint
{
public readonly int cluster;
/// <summary>The relative position inside the Cluster of the referenced SimpleBlo... |
src/Squire.Storage/Development/MemoryBlobResolver.cs | danielkrainas/squire | 1 | 7051659 | <reponame>danielkrainas/squire<filename>src/Squire.Storage/Development/MemoryBlobResolver.cs
namespace Squire.Storage.Development
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Squire.Validation;
public class MemoryBlobResolver : IBlobResolver, IM... |
src/CQRS/Utils/Check.cs | delimaxdev/DX.CQRS | 0 | 7051660 | <filename>src/CQRS/Utils/Check.cs
using System;
using System.Collections;
using System.Diagnostics;
using System.Runtime.CompilerServices;
namespace DX {
/// <summary>
/// Provides static methods for parameter checks (similar to code contracts).
/// </summary>
/// <remarks>
/// Use 'nameof' op... |
Assets/References/StrangeIoC/examples/Assets/scripts/multiplecontexts/game/GameContext.cs | 0Entropy/Name-Card-Project | 75 | 7051661 | <filename>Assets/References/StrangeIoC/examples/Assets/scripts/multiplecontexts/game/GameContext.cs
/*
* Copyright 2013 ThirdMotion, 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
... |
Neocra.Markgen.Tests/XuniTestConsole.cs | neocra/Neocra.Markgen | 2 | 7051662 | using System.IO;
using System.Runtime.CompilerServices;
using Spectre.Console;
using Spectre.Console.Rendering;
using Spectre.Console.Testing;
using Xunit.Abstractions;
namespace Neocra.Markgen.Tests;
public class XuniTestConsole : IAnsiConsole
{
private readonly ITestOutputHelper testOutputHelper;
private re... |
src/Services/Basket/Basket.API/GrpcServices/DiscountGrpcsService.cs | amitvchaudhary/gRPC-API-Performance-Improvement | 1 | 7051663 | <reponame>amitvchaudhary/gRPC-API-Performance-Improvement<filename>src/Services/Basket/Basket.API/GrpcServices/DiscountGrpcsService.cs<gh_stars>1-10
using Discount.Grpc.Protos;
using Google.Protobuf.WellKnownTypes;
using System.Threading.Tasks;
namespace Basket.API.GrpcServices
{
public class DiscountGrpcsService... |
Unity3D/Assets/Scripts/Helpers/ButtonListener.cs | amostajo/ggj15 | 0 | 7051664 | <filename>Unity3D/Assets/Scripts/Helpers/ButtonListener.cs
using UnityEngine;
using System.Collections;
/*
* Listens to NGUI button press and throws event.
*
* @author <NAME>
* @copyright 2014 Amsgames, LLC
*
* THIS SCRIPT WAS PROVIDED BY AMSGAMES, LLC.
* YOU CAN USE THIS SCRIPT FREELY IF YOU GIVE ATTRIBUTION ... |
AoE2.netDesktopTests/Utility/ComClientTests.cs | teshiba/AoE2.netDesktop | 1 | 7051665 | using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.ComponentModel;
using System.Net.Http;
using System.Threading.Tasks;
namespace LibAoE2net.Tests
{
[TestClass()]
public class ComClientTests
{
[TestMethod()]
public void GetStringAsyncTest()
{
... |
Myst.LexicalAnalysis/UnrecognizedTokenException.cs | mystborn/Lexer | 7 | 7051666 | <gh_stars>1-10
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Myst.LexicalAnalysis
{
public class UnrecognizedTokenException : Exception
{
/// <summary>
/// The position in the document/stream where the error occurr... |
JLio.Core/Models/FunctionBase.cs | nexxbiz/JLio | 4 | 7051668 | <reponame>nexxbiz/JLio
using System.Collections.Generic;
using System.Linq;
using JLio.Core.Contracts;
using JLio.Core.Extensions;
using Newtonsoft.Json.Linq;
namespace JLio.Core.Models
{
public abstract class FunctionBase : IFunction
{
public Arguments Arguments = new Arguments();
public str... |
BitSharp.Common/Worker.cs | dthorpe/BitSharp | 1 | 7051669 | <reponame>dthorpe/BitSharp
using BitSharp.Common.ExtensionMethods;
using NLog;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace BitSharp.Common
{
/// <summary>
/// <para>... |
Lab.Common/ErrorMgr/ErrorMgr.cs | Microsoft/azuread-discovery-lab-dns-utility | 1 | 7051670 | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using System.Threading.Tasks;
using System.Web;
namespace Lab.Common.Infra
{
public class ErrorMgr: IErrorMgr
{
private readonly IErrorMgr _mgr;
public ErrorMgr(RequestDTO request)
{
... |
NGitLab.Tests/Impl/SimpleJsonTests.cs | mchanyeechoy/NGitLab | 0 | 7051671 | using System.Diagnostics.CodeAnalysis;
using NGitLab.Impl.Json;
using NUnit.Framework;
namespace NGitLab.Tests.Impl
{
public class SimpleJsonTests
{
[Test]
public void Test_basic_field()
{
var model = Load("{ \"BasicField\":\"asd\" }");
Assert.That(model.BasicF... |
build/BuildScripts.cs | Beffyman/DsvParser | 1 | 7051672 | using System;
using System.Linq;
using Nuke.Common;
using Nuke.Common.Execution;
using Nuke.Common.Git;
using Nuke.Common.IO;
using Nuke.Common.ProjectModel;
using Nuke.Common.Tooling;
using Nuke.Common.Tools.DotNet;
using Nuke.Common.Tools.GitVersion;
using Nuke.Common.Tools.ReportGenerator;
using Nuke.Common.Utilitie... |
CMIE/ControllerSystem/Actions/AttachExternalAids.cs | CLOSER-Cohorts/CMIE | 0 | 7051673 | <gh_stars>0
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Algenta.Colectica.Model;
using Algenta.Colectica.Model.Ddi;
namespace CMIE.ControllerSystem.Actions
{
class AttachExternalAids : IAction
{
private string[] fileEntries... |
04.-MVC-Introduction/SUS/SUS.MvcFramework/Controller.cs | Vladimir-Dodnikov/CSharp-Web-Basics | 0 | 7051674 | <filename>04.-MVC-Introduction/SUS/SUS.MvcFramework/Controller.cs
using SUS.HTTP;
using System.Runtime.CompilerServices;
using System.Text;
namespace SUS.MvcFramework
{
public abstract class Controller
{
public HttpResponse View([CallerMemberName]string viewPath = null)
{
var layou... |
DailyReward/Assets/VRoidSDK/Examples/Core/Model/LoginModel.cs | jphacks/E_2007 | 2 | 7051675 |
namespace VRoidSDK.Examples.Core.Model
{
public class LoginModel : ApplicationModel
{
public enum State
{
AUTHORIZED,
NOT_AUTHORIZED,
AUTHORIZATION_CODE_REQUESTED,
CONNECTION_FAILED,
REQUEST_FAILED,
}
public State Aut... |
Modetor.Net.Server/Core/Backbone/ServerStateEventArgs.cs | Modetor/ModernCreator.V2 | 1 | 7051677 | <reponame>Modetor/ModernCreator.V2
using System;
namespace Modetor.Net.Server.Core.Backbone
{
public class ServerStateEventArgs : EventArgs
{
public readonly HttpServers.BaseServer Server;
public readonly string IP;
public readonly int Port;
internal ServerStateEventArgs(HttpSe... |
ScreenUtils/ImageCorp.cs | LimeVista/ScreenQRCodeReaderCSharp | 2 | 7051678 | using System;
using System.Drawing;
using ZXing;
namespace Lime.Utils
{
public class ImageCorp
{
public static Image Corp(Image image, ResultPoint[] points)
{
return Corp((Bitmap)image, points);
}
public static Bitmap Corp(Bitmap image, ResultPoint[] points)
... |
tests/Firestorm.Engine.Tests/Additives/ReferencePredicateUtilityTests.cs | connellw/Firestorm | 13 | 7051679 | using System;
using System.Linq;
using System.Linq.Expressions;
using AutoFixture;
using AutoFixture.AutoMoq;
using Firestorm.Engine.Additives.Identifiers;
using Xunit;
namespace Firestorm.Engine.Tests.Additives
{
public class ReferencePredicateUtilityTests
{
private readonly Fixture _fixture;
... |
src/SchedulingClients/ServiceOperationResultFactory.cs | ingridv1/SchedulingClients | 0 | 7051680 | using System;
using BaseClients;
using agentbattery = SchedulingClients.AgentBatteryStatusServiceReference;
using agent = SchedulingClients.AgentServiceReference;
using jobBuilder = SchedulingClients.JobBuilderServiceReference;
using jobs = SchedulingClients.JobsStateServiceReference;
using maps = SchedulingClients.Ma... |
ComfortWPF/Services/WPFDialogService.cs | jackhuclan/ComfortWPF | 1 | 7051681 | <reponame>jackhuclan/ComfortWPF
using System;
using System.Windows;
using System.ComponentModel.Composition;
namespace ComfortWPF.Services
{
/// <summary>
/// This class implements the IDialogService for WPF purposes.
/// If you have attributed up your views using the PopupViewAttribute
/// Registrati... |
Source/Assembly-CSharp/PixelGame/ObjectBase.cs | Shadowrabbit/BigBiaDecompilation | 1 | 7051682 | using System;
namespace PixelGame
{
public abstract class ObjectBase
{
public abstract void Release();
public string Name;
public object target;
public DateTime LastUseTime;
}
}
|
src/SFA.DAS.ApplyService.InternalApi.UnitTests/Controllers/RoatpClarificationControllerTests.cs | uk-gov-mirror/SkillsFundingAgency.das-apply-service | 9 | 7051683 | using Castle.Core.Logging;
using MediatR;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Http.Internal;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Primitives;
using Moq;
using NUnit.Framework;
using SFA.DAS.ApplyService.Application.Apply.Clarification;
u... |
Assets/GF_JustOneLevel/Scripts/Entity/State/HeroAtkCDState.cs | mutouzdl/GF_JustOneLevel | 79 | 7051684 | using GameFramework;
using GameFramework.Fsm;
using UnityEngine;
public class HeroAtkCDState : HeroBaseState {
private float atkCDTimeCounter = 0;
/// <summary>
/// 有限状态机状态初始化时调用。
/// </summary>
/// <param name="fsm">有限状态机引用。</param>
protected override void OnInit (IFsm<Hero> fsm) {
ba... |
ListaTelefonica.API/Controllers/BaseApiController.cs | phillrog/ListaTelefonica | 0 | 7051685 | using AutoMapper;
using ListaTelefonica.Applications.Interfaces;
using Microsoft.AspNetCore.Mvc;
namespace ListaTelefonica.API.Controllers
{
public abstract class BaseApiController : ControllerBase
{
protected readonly IUnitOfWork _uow;
protected readonly IMapper _mapper;
public BaseApiController(IUnitOfWork ... |
XamarinSamples/XamarinSamples/Views/BindingPage.xaml.cs | ponponner/XamarinSamples | 0 | 7051686 | <filename>XamarinSamples/XamarinSamples/Views/BindingPage.xaml.cs<gh_stars>0
using System;
using Xamarin.Forms;
using XamarinSamples.ViewModels;
namespace XamarinSamples.Views
{
public partial class BindingPage : ContentPage
{
public BindingVM BindingVM { private set; get; }
public BindingPa... |
src/WebApp/Store/MyAccessRequestsUseCase/GetMyAccessRequestsResultAction.cs | opc-cpvp/OfficeEntry | 0 | 7051687 | <filename>src/WebApp/Store/MyAccessRequestsUseCase/GetMyAccessRequestsResultAction.cs
using OfficeEntry.Domain.Entities;
using System.Collections.Generic;
namespace OfficeEntry.WebApp.Store.MyAccessRequestsUseCase
{
public class GetMyAccessRequestsResultAction
{
public IReadOnlyList<AccessRequest> Acc... |
src/ControlTower/Startup.cs | wmeints/controltower | 5 | 7051688 | using Akka.Actor;
using Blazor.FileReader;
using ControlTower.Printer;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
namespace ControlTower
{
/// <summary>
/// Contains the startup logic for the applic... |
Assets/Scripts/TimeController.cs | yashovardhan99/Falling-Rocks | 0 | 7051689 | <filename>Assets/Scripts/TimeController.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class TimeController : MonoBehaviour
{
Text secondsText;
// Start is called before the first frame update
void Start()
{
secondsText = gameObjec... |
YandexDomainApi/YandexMailApi.cs | unalman/Yandex-Domain-Api | 3 | 7051690 | using Newtonsoft.Json;
using System;
using System.IO;
using System.Net;
using YandexDomainApi.Models;
namespace YandexDomainApi
{
public class YandexMailApi
{
#region Domain
public AddDomainResponseModel AddDomain(AddDomainRequestModel model)
{
AddDomainResponseModel CRespo... |
XBrowser.Tests/XBrowserTests.cs | guomin/XBrowser | 1 | 7051691 | <gh_stars>1-10
using System;
using System.Collections.ObjectModel;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace XBrowserProject.Tests
{
[TestClass]
public class XBrowserTests
{
[TestMethod]
public void Can_con... |
MSTest.Fluent/Expect/ExpectFloat.cs | obivandamme/MSTest.Fluent | 2 | 7051692 | <filename>MSTest.Fluent/Expect/ExpectFloat.cs
namespace MSTest.Fluent.Expect
{
using System;
using MSTest.Fluent.Generic;
using MSTest.Fluent.Not;
using Microsoft.VisualStudio.TestTools.UnitTesting;
public class ExpectFloat
{
internal float Actual { get; private set; }
publi... |
Assets/Scripts/Miscellaneous/StructLibrary.cs | ArthurVasconcelosVidal/PowerUpSystem | 0 | 7051693 | namespace StructLibrary{
public struct MinMaxFloat {
public float Min { get; set; }
public float Max { get; set; }
public MinMaxFloat(float min, float max){
Min = min;
Max = max;
}
}
}
|
visualstudio-redes/SocketUtils/Writers/ObjectWriter.cs | fferegrino/aplicaciones-redes | 4 | 7051694 | <gh_stars>1-10
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net.Sockets;
using System.Runtime.Serialization.Formatters.Binary;
using System.Text;
using System.Threading.Tasks;
namespace SocketUtils.Writers
{
public class ObjectWriter : SimpleWriter
{
... |
git-tracking-minimal/GitTracking/StaticGitTracker.cs | proksch/git-tracking-minimal | 0 | 7051695 | <filename>git-tracking-minimal/GitTracking/StaticGitTracker.cs
/*
* Copyright 2017 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENS... |
Assets/Scripts/ConveyorPreviewScript.cs | alex9127git/ChemistrySimulator | 0 | 7051696 | using UnityEngine;
using static GlobalVariables;
public class ConveyorPreviewScript : MonoBehaviour
{
public static bool busy;
public Transform inputPrefab;
public Transform outputPreview;
public Transform upright, upleft, updown, leftup, leftright, leftdown,
rightup, rightleft, rightdown, down... |
ADLibrary/Collections/LinkedListIterator.cs | bramkelder/AD | 0 | 7051697 | using System;
namespace ADLibrary.Collections
{
/// <summary>
/// An iterator for a singly linked list ONLY
/// </summary>
/// <typeparam name="T">The type that is stored in the list</typeparam>
public class LinkedListIterator<T> where T : new()
{
ISinglyNode<T> current;
ISingl... |
src/FeatureBits.Console/ConsoleTableWrapper.cs | shawnadrockleonard/featurebits | 21 | 7051698 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
using System;
using ConsoleTableExt;
using System.Data;
namespace Dotnet.FBit
{
/// <summary>
/// <see cref="IConsoleTable"/>
/// </summary>
pub... |
src/NServiceBus.PowerShell.Tests/AddNServiceBusAuditConfigTest.cs | ianbattersby/NServiceBus | 0 | 7051699 | <filename>src/NServiceBus.PowerShell.Tests/AddNServiceBusAuditConfigTest.cs
namespace NServiceBus.PowerShell.Tests
{
using System.Xml.Linq;
using NUnit.Framework;
[TestFixture]
public class AddNServiceBusAuditConfigTest
{
[Test]
public void When_ForwardReceivedMessagesTo_A... |
main/Boku/SimWorld/Path/VeggieGen_C.cs | chrisphillips/KoduGameLab | 11 | 7051700 | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
using System;
using System.Collections.Generic;
using System.Text;
using Boku.Common;
namespace Boku.SimWorld.Path
{
class VeggieGen_C : VeggieGen
{
public override FBXModel Model
{
get
{
... |
com.mosso.cloudfiles/Domain/Request/GetPublicContainerInformationSerialized.cs | bhowerton/csharp-cloudfiles | 1 | 7051701 | //----------------------------------------------
// See COPYING file for licensing information
//----------------------------------------------
namespace com.mosso.cloudfiles.domain.request
{
#region
using System;
using com.mosso.cloudfiles.domain.request.Interfaces;
using com.mosso.cloudfiles.utils... |
Content.Shared/Disease/DiseaseMachineVisuals.cs | TheMoogle/space-station-14 | 21 | 7051702 | using Robust.Shared.Serialization;
namespace Content.Shared.Disease
{
[Serializable, NetSerializable]
/// <summary>
/// Stores bools for if the machine is on
/// and if it's currently running.
/// Used for the visualizer
/// </summary>
public enum DiseaseMachineVisuals : byte
{
... |
cn.jpush.api/common/APIRequestException.cs | TanHaoran/NurseService1.0 | 0 | 7051704 | using cn.jpush.api.push;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
namespace cn.jpush.api.common
{
public class APIRequestException:Exception
{
private ResponseWrapper responseRequest;
public APIReques... |
h3net/Code/LocalIJ.cs | RichardVasquez/h3netOld | 0 | 7051705 | <gh_stars>0
/*
* Copyright 2018, <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... |
src/calc/src/hosts/Dec.cs | 0xCM/z0 | 0 | 7051706 | //-----------------------------------------------------------------------------
// Copyright : (c) <NAME>, 2020
// License : MIT
//-----------------------------------------------------------------------------
namespace Z0
{
using System;
using System.Runtime.CompilerServices;
using System.Runtime.In... |
Tiled.Net/TiledPolygon.cs | napen123/Tiled.Net | 0 | 7051707 | <gh_stars>0
using System;
using System.Linq;
using System.Xml.Serialization;
using System.Collections.Generic;
namespace Tiled
{
/// <summary>
/// Represents a polygon object (<see cref="TiledObject"/>).
/// </summary>
public class TiledPolygon : TiledBaseObject
{
/// <summary>... |
NodeVsDebugger/DebuggedThread.cs | omgtehlion/NodeVsDebugger | 3 | 7051708 | <gh_stars>1-10
//
// https://github.com/omgtehlion/NodeVsDebugger
// NodeVsDebugger: Node.js Debugging Support for Visual Studio.
//
// Authors:
// <NAME> (<EMAIL>)
//
// Copyright © 2013
//
// Licensed under the terms of BSD 2-Clause License.
// See a license.txt file for the full text of the license.
//
using Sys... |
src/Uno.Extensions.Reactive/AsyncAction.cs | AndreAbrantes/uno.extensions | 21 | 7051709 |
using System;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
namespace Uno.Extensions;
/// <summary>
/// Encapsulates an asynchronous method that has no parameters and does not return a value.
/// </summary>
/// <param name="ct">A cancellation to cancel the async operation.</param>
public ... |
Test.Domain/MasterTestDbContext.cs | JulienLuxx/ASP.NET-CORE-Demo-Postgre | 0 | 7051710 | using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using System;
using System.Collections.Generic;
using System.Text;
using Test.Domain.Entity;
namespace Test.Domain
{
public class MasterTestDBContext : DbContext
{
private DbContextOptions<MasterTestDBCon... |
Mindstorms.Core/Music/446/Aisz2.cs | Mortens4444/LegoMindstromsEV3 | 0 | 7051711 | <reponame>Mortens4444/LegoMindstromsEV3
namespace Mindstorms.Core.Music._446
{
public class Aisz2 : Note
{
public Aisz2(NoteType noteType = NoteType.Quarter) : base(noteType)
{
Name = "A#2/Bb2";
Frequency = 118.13;
WaveLength = 292.05;
}
}
}
|
src/kokugen.core/Validation/ValidYear.cs | ryankelley/kokugen | 1 | 7051712 | using System;
using System.Text.RegularExpressions;
namespace Kokugen.Core.Validation
{
[AttributeUsage(AttributeTargets.Property)]
public sealed class ValidYearAttribute : ValidationAttribute
{
private const string errorMessage = "You must enter a valid 4-digit year.";
protected... |
src/Zsharp.Elysium.Tests/Transactions/GrantTokensV0Tests.cs | firoorg/zsharp | 2 | 7051714 | <reponame>firoorg/zsharp
namespace Zsharp.Elysium.Tests.Transactions
{
using System;
using Xunit;
using Zsharp.Elysium.Transactions;
using Zsharp.Testing;
public sealed class GrantTokensV0Tests
{
readonly GrantTokensV0 subject;
public GrantTokensV0Tests()
{
... |
WDE.DatabaseEditors/Solution/DatabaseTableSolutionItemProvider.cs | mdX7/WoWDatabaseEditor | 0 | 7051715 | <reponame>mdX7/WoWDatabaseEditor<filename>WDE.DatabaseEditors/Solution/DatabaseTableSolutionItemProvider.cs
using System.Collections.Generic;
using System.Threading.Tasks;
using WDE.Common;
using WDE.Common.CoreVersion;
using WDE.Common.Database;
using WDE.Common.Parameters;
using WDE.Common.Providers;
using WDE.Commo... |
Assets/scripts/Board/Spaces/SpaceWall.cs | mickyman007/3DISO | 1 | 7051716 | public class SpaceWall : Space {
public override void Initialise(int x, int y) {
base.Initialise(x, y);
CanSelect = false;
CanMoveTo = false;
}
}
|
src/Cognifide.Sitecore.Crownpeak/Service/Model/Checkpoint.cs | wttech/Crownpeak-DQM-Sitecore-Connector | 0 | 7051717 | <gh_stars>0
using System;
namespace Cognifide.Sitecore.Crownpeak.Service.Model
{
public class Checkpoint
{
public bool Failed { get; set; }
public Highlight CanHighlight { get; set; }
public string Name { get; set; }
public bool Priority { get; set; }
public string Refe... |
Dice.cs | cash12121/MicrostonksBot | 0 | 7051718 | // Copyright (c) 2021 Fox Council - https://github.com/FoxCouncil/MicrostonksBot
using System;
namespace MicrostonksBot
{
public static class Dice
{
private static readonly Random _rng = new();
public static double Roll()
{
return _rng.NextDoubleLinear(-1.5, 1.5);
... |
Source/Core/Repositories/Interfaces/IProjectRepository.cs | xiaoxiaocoder/Exceptionless | 5 | 7051719 | <gh_stars>1-10
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Exceptionless.Core.Models;
using Foundatio.Repositories.Models;
namespace Exceptionless.Core.Repositories {
public interface IProjectRepository : IRepositoryOwnedByOrganization<Project> {
Task<FindResults<Pr... |
DataStructures/StacksQueues/EmptyStackException.cs | ArikMackenburg/401Dsa | 0 | 7051720 | <filename>DataStructures/StacksQueues/EmptyStackException.cs
using System;
using System.Collections.Generic;
using System.Text;
namespace DataStructures.StacksQueues
{
public class EmptyStackException : Exception
{
public EmptyStackException() : base("Stack is empty")
{
}
... |
src/Nest/XPack/CrossClusterReplication/Follow/FollowIndexStats/FollowIndexStatsResponse.cs | iSatishYadav/elasticsearch-net | 0 | 7051721 | using System.Collections.Generic;
using Newtonsoft.Json;
namespace Nest
{
public interface IFollowIndexStatsResponse : IResponse
{
[JsonProperty("indices")]
IReadOnlyCollection<FollowIndexStats> Indices { get; }
}
public class FollowIndexStatsResponse : ResponseBase, IFollowIndexStatsResponse
{
/// <inher... |
match/src/Piipan.Match/Piipan.Match.Api/Models/IMatchResEvent.cs | Ventera-Corporation/piipan | 0 | 7051722 | using System;
namespace Piipan.Match.Api.Models
{
/// <summary>
/// Represents a Match Resolution Event related to a Match Record through its Match ID
/// </summary>
public interface IMatchResEvent
{
int Id { get; set; }
string MatchId { get; set; }
DateTime InsertedAt { get... |
src/Atata/Logging/Sections/ValueSetLogSection.cs | YevgeniyShunevych/Atata | 444 | 7051723 | <reponame>YevgeniyShunevych/Atata
namespace Atata
{
public class ValueSetLogSection : UIComponentLogSection
{
public ValueSetLogSection(UIComponent component, object value)
: base(component)
{
string valueAsString = SpecialKeys.Replace(Stringifier.ToString(value));
... |
test/CryptoHashProviderTest.cs | vicancy/BuildPipeline | 0 | 7051724 | namespace Microsoft.BuildPipeline.Incremental
{
using System.IO;
using Xunit;
public class CryptoHashProviderTest
{
[Fact]
public void default_crypto_hash_provider()
{
var provider = new DefaultCryptoHashProvider();
Test(provider, true, "01");
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.