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 |
|---|---|---|---|---|
HiddenSound.API/OAuthConstants.cs | hidden-sound-team/Hidden-Sound-API | 0 | 7059673 | namespace HiddenSound.API
{
public static class OAuthConstants
{
public const string ControllerRoute = "OAuth";
public const string TokenRoute = "Token";
public const string UserInfoRoute = "UserInfo";
public const string AuthorizeRoute = "Authorize";
}
} |
Huerate.Services/NewsletterSubscriptions/INewsletterSubscriptionService.cs | jakubka/Huerate | 0 | 7059674 | /*
Huerate - Mobile System for Customer Feedback Collection
Master Thesis at BUT FIT (http://www.fit.vutbr.cz), 2013
Available at http://huerate.cz
Author: Bc. <NAME>, <EMAIL> or <EMAIL>
*/
using System;
using System.Collections.Generic;
using Huerate.Domain.Entities;
using Huerate.Domain.Repositories;
... |
Source/EasyGelf.Tests/Core/Encoders/ChunkingEncoderTests.cs | Homulvas/EasyGelf | 20 | 7059675 | <gh_stars>10-100
using System.Linq;
using EasyGelf.Core.Encoders;
using NUnit.Framework;
namespace EasyGelf.Tests.Core.Encoders
{
[TestFixture]
public class ChunkingEncoderTests
{
private const int MaxSize = 32;
private ChunkingEncoder chunkingEncoder;
[SetUp]
public void ... |
BlazorCleave/Data/NumeralTypes.cs | TaylorAdamCA/BlazorCleave | 0 | 7059676 | using System;
using System.Collections.Generic;
using System.Text;
namespace BlazorCleave.Data
{
public static class NumeralTypes
{
/// <summary>
/// The different numeral types
/// </summary>
public enum Type
{
Thousand,
Lakh,
Wan
... |
SharpWave/Codecs/Flac/FlacBitReader.cs | UnknownShadow200/SharpWave | 0 | 7059677 | <reponame>UnknownShadow200/SharpWave
using System;
namespace SharpWave.Codecs.Flac {
public class FlacBitReader : BitReader {
public FlacBitReader( PrimitiveReader reader )
: base( reader ) {
}
public int ReadUnary() {
int value = 0;
int bit = ReadBit();
while( bit == 0 ) {
va... |
src/Hashgraph/Implementation/Proto/CryptoGetAccountBalanceQuery.cs | queilawithaQ/Hashgraph | 32 | 7059678 | <gh_stars>10-100
using Grpc.Core;
using Hashgraph;
using Hashgraph.Implementation;
using System;
using System.Threading;
namespace Proto
{
public sealed partial class CryptoGetAccountBalanceQuery : INetworkQuery
{
Query INetworkQuery.CreateEnvelope()
{
return new Query ... |
IntNovAction.Utils.ExcelExporterTests.Std/IntegrationTests/IntegrationTests.cs | intnovaction/IntNovAction.Utils.ExcelExporter | 0 | 7059679 | <gh_stars>0
using ClosedXML.Excel;
using FluentAssertions;
using IntNovAction.Utils.ExcelExporter.Tests.TestObjects;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.IO;
using System.Linq;
using System.Reflection;
namespace IntNovAction.Utils.ExcelExporter.Tests.IntegrationTests
{
[TestClass]
... |
WinFormsSyntaxHighlighter/StringExtensions.cs | JackWangCUMT/WinFormsSyntaxHighlighter | 17 | 7059680 | using System;
namespace WinFormsSyntaxHighlighter
{
public static class StringExtensions
{
public static string NormalizeLineBreaks(this string instance, string preferredLineBreak)
{
return instance.Replace("\r\n", "\n").Replace("\r", "\n").Replace("\n", preferredLineBreak);
... |
Code/SuperCodeFactory/SuperCodeFactoryLib/Utilities/DatetimeUtil.cs | wcss2010/SuperCodeFactory | 0 | 7059681 | <gh_stars>0
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace SuperCodeFactoryLib.Utilities
{
public sealed class DatetimeUtil
{
/// <summary>
/// 当前系统时间转换为Unix时间戳
/// </summary>
/// <returns>Unix时间戳</returns>
public static ... |
TicketNow.Movies.Core/Repositories/MovieRepository.cs | jakemoresca/TicketNowNetCore | 0 | 7059682 | <reponame>jakemoresca/TicketNowNetCore
using System.Collections.Generic;
using TicketNow.Movies.Core.Dao;
using TicketNow.Movies.Core.Factories;
using TicketNow.Movies.Core.Models;
using TicketNow.Common;
using System.Threading.Tasks;
namespace TicketNow.Movies.Core.Repositories
{
public class MovieRepository : I... |
CryV.Net/src/Native/CryVNative.Unk.cs | Cryma/CryV.Net | 0 | 7059683 | using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Text;
namespace CryV.Net.Native
{
internal static partial class CryVNative
{
[DllImport(_dllLocation, CallingConvention = CallingConvention.StdCall)]
public static extern int Native_Unk_GetCurrent... |
Pax4.Core.LavaAndIce/Pax4ActorEnemyAmmo.cs | stark7/LavaAndIce | 0 | 7059684 | <reponame>stark7/LavaAndIce
using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Pax4.JigLibX.Collision;
using System.Runtime.Serialization;
namespace Pax4.Core
{
[DataContract]
[KnownType(typeof(Pax4ActorEnemyAmmo))]
public class Pa... |
LeavingEarth/Astronaut.cs | James-Rollins/LeavingEarth | 1 | 7059685 | <reponame>James-Rollins/LeavingEarth<filename>LeavingEarth/Astronaut.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml;
namespace LeavingEarth
{
class Astronaut : Card
{
public int Price { get; set; }
public ... |
source/BoardGenerator.cs | perry-mitchell/sudoku-generator-cs | 9 | 7059686 | using System;
namespace SudokuGenerator {
class BoardGenerator {
protected const int MAX_EMPTY_SEARCH_ATTEMPTS = 40;
protected Board solutionBoard;
protected Board puzzleBoard;
protected static Random rnd = new Random();
public BoardGenerator() {
}
public void generatePuzzleBoard(string generator... |
SimpleWorkfloorManagementSuite/Dialogs/ExceptionSendDialog.Designer.cs | Djohnnie/SwmSuite-Original | 0 | 7059687 | namespace SimpleWorkfloorManagementSuite.Dialogs {
partial class ExceptionSendDialog {
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposin... |
src/SCTP/Chunks/ChunkType.cs | PCOL/SCTP | 3 | 7059688 | <filename>src/SCTP/Chunks/ChunkType.cs
namespace SCTP.Chunks
{
internal enum ChunkType
: byte
{
/// <summary>
/// Payload data
/// </summary>
Data = 0,
/// <summary>
/// Initiation
/// </summary>
Init = 1,
/// <sum... |
10-Code/SevenTiny.GRpc.Implement/MsgServiceImpl.cs | sevenTiny/SevenTiny.Cloud | 0 | 7059689 | using Grpc.Core;
using SevenTiny.GRpc.Protocol;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SevenTiny.GRpc.Implement
{
public class MsgServiceImpl : MsgService.MsgServiceBase
{
public MsgServiceImpl()
{
}... |
netcore/NUnitTestServices/UserServices/TestUserService.cs | waikhaisheng/.netcore | 0 | 7059690 | using Microsoft.Extensions.Configuration;
using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Extensions.DependencyInjection;
using Services.UserServices.Interfaces;
using Services.UserServices;
using Models.Dtos;
us... |
Stp.Data/Migrations/20200821134055_Issue#24.cs | softority/stp-testing-api | 1 | 7059691 | using Microsoft.EntityFrameworkCore.Migrations;
namespace Stp.Data.Migrations
{
public partial class Issue24 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropIndex(
name: "IX_TaskAndSkill_TaskId",
tab... |
Macrocosm/Tool/Const.cs | AutismPatient/film-dy2018 | 2 | 7059692 | <reponame>AutismPatient/film-dy2018<filename>Macrocosm/Tool/Const.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Macrocosm.Tool
{
public class Const
{
public const string DefaultSessionName = "SessionID";
public const string Defaul... |
MOBOT.DigitalAnnotations.Api/MOBOT.DataAnnotations.Domain/Enumerations/AnnotationFilterTypes.cs | MBG-CBI/C2C | 0 | 7059693 | namespace MOBOT.DigitalAnnotations.Domain.Enumerations
{
public enum AnnotationFilterTypes
{
Person = 1,
Date = 2,
Tags = 3,
Type = 4
}
}
|
Assets/Scripts/Inventory/Scriptable Inventory Item/ArmorItem.cs | Westtly25/RPG-Inventory-Test | 0 | 7059694 | <gh_stars>0
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace RogueLike.Inventory
{
[CreateAssetMenu(fileName = "Armor Item", menuName = "Rogue Like Prototype/Inventory/Items/New Armor Item", order = 0)]
public class ArmorItem : ScriptableObject
{
}
} |
abremir.AllMyBricks.DataSynchronizer/Events/SubthemeSynchronizer/SubthemeSynchronizerException.cs | zmira/abremir.allmybricks | 0 | 7059695 | <filename>abremir.AllMyBricks.DataSynchronizer/Events/SubthemeSynchronizer/SubthemeSynchronizerException.cs
using System;
namespace abremir.AllMyBricks.DataSynchronizer.Events.SubthemeSynchronizer
{
public class SubthemeSynchronizerException
{
public string Theme { get; set; }
public Exception... |
SmartHome/SmartHome.Stardog/Services/StardogService.cs | mrabobi/WWW | 0 | 7059696 | using Serilog;
using VDS.RDF.Storage;
namespace SmartHome.Stardog.Services
{
public class StardogService
{
protected readonly StardogData _data;
protected readonly ILogger _logger;
public StardogService(StardogData data,ILogger logger)
{
_data = data;
_... |
src/MassTransit/Saga/EventBinderExtensions.cs | vincelee888/MassTransit | 1 | 7059698 | <filename>src/MassTransit/Saga/EventBinderExtensions.cs
// Copyright 2007-2012 <NAME>, <NAME>, <NAME>, et. al.
//
// 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://... |
src/server/src/Shop.Infrastructure/Web/StandardTable/StandardSearch.cs | cn-cam/module-shop | 481 | 7059699 | <reponame>cn-cam/module-shop
using Newtonsoft.Json.Linq;
namespace Shop.Infrastructure.Web.StandardTable
{
public class StandardSearch
{
public JObject PredicateObject { get; set; }
}
public class StandardSearch<T>
{
public T PredicateObject { get; set; }
}
} |
Sources/NET4.SrkToolkit.Common/Internals/RetryLogicState.cs | sandrock/SrkToolkit | 1 | 7059700 | <reponame>sandrock/SrkToolkit
//
// Copyright 2014 SandRock, pyDez
//
// 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 requ... |
RCServerService/Security.cs | ulkyome/laucher_server | 0 | 7059701 | <filename>RCServerService/Security.cs
using System;
using System.Collections;
using System.Collections.Generic;
using System.Security.Cryptography;
using System.Text;
using System.Xml;
using System.Xml.Serialization;
namespace RemoteControlSystem.Server
{
public class Security
{
public ICollection Users
{
ge... |
TrackerLib/PhoneTypeDAL.cs | vjkrammes/Tracker | 0 | 7059702 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using TrackerLib.Entities;
using TrackerLib.Interfaces;
namespace TrackerLib
{
public class PhoneTypeDAL : DAL<PhoneTypeEntity, Context>, IPhoneTypeDAL
{
public PhoneTypeDAL(Context context) : base(conte... |
OpenTracker.Models/Dungeons/DungeonID.cs | Baertierchen/OpenTracker | 37 | 7059703 | <filename>OpenTracker.Models/Dungeons/DungeonID.cs
namespace OpenTracker.Models.Dungeons
{
/// <summary>
/// This enum type defines the dungeon ID values.
/// </summary>
public enum DungeonID
{
HyruleCastle,
AgahnimTower,
EasternPalace,
DesertPalace,
TowerOfHe... |
src/simpleauth/Extensions/MappingExtensions.cs | jjrdk/SimpleAuth | 2 | 7059705 | // Copyright © 2015 <NAME>, © 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 or ... |
ff.words.data/Interfaces/IUnitOfWork.cs | takint/ff.words | 1 | 7059706 | <reponame>takint/ff.words
namespace ff.words.data.Interfaces
{
using ff.words.data.Common;
using System;
using System.Threading.Tasks;
/// <summary>
/// Unit of Work Interface
/// </summary>
/// <seealso cref="System.IDisposable" />
public interface IUnitOfWork : IDisposable
{
... |
LabTask-File_Handling/Form1.Designer.cs | ShuvroWritesCode/Object_oriented_programming_CSharp_SWE4202 | 0 | 7059707 | <gh_stars>0
namespace FileHandling
{
partial class Form1
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
... |
OAI/Packets/Events/Feature/OAIForwarded.cs | willitscale/OAI-Mitel-Inter-Tel-Library | 3 | 7059708 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OAI.Packets.Events.Feature
{
/**
* Forwarded – FW
*
* Occurs when a station enables or disables manual call forwarding.
* This does not include system forwards
*... |
Assets/AlmostEngine/UltimateScreenshotCreator/Assets/Scripts/ScreenshotBatch.cs | blacksmokersen/starwheels | 0 | 7059709 | using UnityEngine;
using System.Collections;
using System.Collections.Generic;
namespace AlmostEngine.Screenshot
{
[System.Serializable]
public class ScreenshotBatch
{
public bool m_Active = true;
public string m_Name = "";
public List<ScreenshotProcess> m_PreProcess = new List<ScreenshotProcess> ();
publ... |
Gaming/Math/Helper.cs | EastBenchTech/agg-sharp | 161 | 7059710 | namespace Gaming.Math
{
public static class Helper
{
public static double DegToRad(double deg)
{
return deg / 180 * (double)System.Math.PI;
}
}
} |
Assets/Scripts/UI/FadingGraphic.cs | Reispfannenfresser/Core | 0 | 7059711 | <gh_stars>0
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class FadingGraphic : MonoBehaviour {
[SerializeField]
int cooldown = 1;
float current_cooldown = 0;
[SerializeField]
float speed = 1;
Graphic[] graphics = new Graphic[0];
void Start() {
... |
resharper/resharper-unity/src/Unity/CSharp/Daemon/Stages/BurstCodeAnalysis/Analyzers/BurstCodeInsights.cs | SirDuke/resharper-unity | 1,182 | 7059712 | <gh_stars>1000+
using System.Collections.Generic;
using JetBrains.Annotations;
using JetBrains.Application.UI.Controls.BulbMenu.Items;
using JetBrains.Collections;
using JetBrains.ProjectModel;
using JetBrains.ReSharper.Plugins.Unity.CSharp.Daemon.Stages.ContextSystem;
using JetBrains.ReSharper.Psi.CSharp.Tree;
using J... |
Assets/Source/DoorKnobChallenge/DoorKnob.cs | redpixr/cl-challenge | 0 | 7059713 | using UnityEngine;
using UnityEngine.Events;
namespace Challenge {
public class DoorKnob : MonoBehaviour {
#region Public Members
public event UnityAction OnTouch = delegate{};
#endregion
#region MB Methods
void OnMouseDown() {
OnTouch();
... |
Assets/ExempleEnnemis/Scripts/EnemyControl.cs | TUTOUNITYFR/scriptable-objects-demo-tufr | 2 | 7059714 | <gh_stars>1-10
using UnityEngine;
using UnityEngine.AI;
[RequireComponent(typeof(NavMeshAgent))]
public class EnemyControl : MonoBehaviour
{
// Stockage du navmesh (pathfinding) et la distance de déplacement automatique
private NavMeshAgent navAgent;
private float wanderDistance = 4;
// Variable cont... |
Valigator.Core/ValueValidators/PrecisionValidator.cs | rolan18/Valigator | 4 | 7059715 | <reponame>rolan18/Valigator
using System;
using System.Collections.Generic;
using System.Text;
using Functional;
using Valigator.Core.Helpers;
using Valigator.Core.ValueDescriptors;
namespace Valigator.Core.ValueValidators
{
public struct PrecisionValidator : IValueValidator<decimal>
{
private readonly Option<dec... |
SimpleWeather.Shared/Utils/JSONParser.cs | bryan2894-playgrnd/SimpleWeather | 2 | 7059716 | <gh_stars>1-10
using System;
using System.IO;
using System.Text;
using System.Threading.Tasks;
using Utf8Json;
#if WINDOWS_UWP
using Windows.Storage;
#endif
namespace SimpleWeather.Utils
{
public static partial class JSONParser
{
// CompositeResolver is singleton helper for use custom resolver.
... |
StudyCode/Assets/Task 1/Scripts/Task1.cs | EagleSixty6/DiscreteVirtualRotation | 0 | 7059717 | using System.Linq;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class Task1 : MonoBehaviour
{
// Cubes
public GameObject cube;
public GameObject centerCube;
// Direction Arrows
public GameObject directionRight;
public GameObject d... |
MathCS/ConvexPolygon2D.cs | TaylorClark/PrimeTime | 0 | 7059718 | <filename>MathCS/ConvexPolygon2D.cs
using System;
namespace TCMath
{
/// <summary>
/// A description for a closed convex 2D polygon. The vertices should be
/// passed in in clockwise order
/// </summary>
public class ConvexPolygon2D
{
private Point2[] m_Vertices = new Point2[ 0 ];
private readonly Point2 m... |
Assets/ZED/SDK/Helpers/Scripts/Utilities/LayerHandler.cs | Gregory-Baker/Zed-XR-v2 | 0 | 7059719 | using UnityEngine;
#if UNITY_EDITOR
using UnityEditor;
#endif
public class LayerHandler
{
public static bool[] layer_pack_used = new bool[4];
private LayerHandler()
{
for (int k = 0; k < 4; k++)
layer_pack_used [k] = false;
}
private static LayerHandler _instance = null;
public static LayerHandler ... |
src/HexManiac.Core/Models/Runs/Factory/TableStreamRunContentStrategy.cs | haven1433/gen3hex | 1 | 7059720 | using System.Collections.Generic;
using System.Linq;
namespace HavenSoft.HexManiac.Core.Models.Runs.Factory {
/// <summary>
/// Format Specifier: []...
/// Represents a general type of run where there are a number of sections, each with the same format, followed by an optional terminator.
/// TableStr... |
src/sdk/PnP.Core/Model/SharePoint/Core/Internal/SearchResult.cs | vollgraaff/pnpcore | 0 | 7059721 | using System.Collections.Generic;
namespace PnP.Core.Model.SharePoint
{
internal sealed class SearchResult : ISearchResult
{
public int ElapsedTime { get; set; }
public long TotalRows { get; set; }
public long TotalRowsIncludingDuplicates { get; set; }
public List<Dictionary... |
src/API/IInstanceCleanupQueue.cs | collective4U/clara-dicom-adapter | 29 | 7059723 | /*
* Apache License, Version 2.0
* Copyright 2019-2020 NVIDIA 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
*
* Unle... |
ExcelToJsonExtractorTest/ExcelFilerReaderTests.cs | jsipola/sturdy-couscous | 0 | 7059724 | <reponame>jsipola/sturdy-couscous<filename>ExcelToJsonExtractorTest/ExcelFilerReaderTests.cs
using ExcelToJsonExtractor;
using NUnit.Framework;
namespace ExcelToJsonExtractorTest
{
public class ExcelFilerReaderTests
{
private ExcelFileReader _fileReader;
[SetUp]
public void Setup()
... |
AspNetCoreDmsSample/Views/SportingEventTicket/SearchList.cshtml | aws-samples/controltower-cloudendure-simulated-environment | 2 | 7059725 | @model PaginatedList<DMSSample.Models.SportingEventTicket>
@if (Model.Count() > 0) {
@foreach (var item in Model) {
<tr>
<td>
@Html.DisplayFor(modelItem => item.TicketPrice)
</td>
<td>
@Html.DisplayFor(modelItem => item.S.SeatSect... |
src/EventStore.Monitoring.Web/ViewModels/EventStoreNodeViewModel.cs | nissbran/eventstore-stats-viewer | 0 | 7059726 | <filename>src/EventStore.Monitoring.Web/ViewModels/EventStoreNodeViewModel.cs
using System;
using System.Linq;
using EventStore.Monitoring.Infrastructure.Models.Http;
using EventStore.Monitoring.Infrastructure.Models.Http.Stats;
using Remotion.Linq.Parsing.Structure.IntermediateModel;
namespace EventStore.Monitoring.... |
src/Gbfs.Net/v1/StationInformation.cs | thzinc/gbfs.net | 1 | 7059727 | <filename>src/Gbfs.Net/v1/StationInformation.cs
using System.ComponentModel;
namespace Gbfs.Net.v1
{
/// <summary>
/// Mostly static list of all stations, their capacities and locations.
/// </summary>
[Description("Mostly static list of all stations, their capacities and locations.")]
public class... |
NodeSystem/Nodes/Editor/BackgroundNodeEditor.cs | StutteA/hiVN | 7 | 7059728 | using System.Collections;
using System.Collections.Generic;
using System;
using UnityEngine;
using XNodeEditor;
using XNode;
namespace hiVN
{
[CustomNodeEditor(typeof(BackgroundNode))]
public class BackgroundNodeEditor : NodeEditor
{
public override void OnBodyGUI()
{
Backgrou... |
tests/NodaMoney.Tests/CurrencyBuilderSpec.cs | VDRobert/NodaMoney | 119 | 7059729 | <gh_stars>100-1000
using System;
using FluentAssertions;
using Xunit;
namespace NodaMoney.Tests.CurrencyBuilderSpec
{
public class GivenIWantToCreateCustomCurrency
{
[Fact]
public void WhenRegisterAsSimpleAsPossible_ThenShouldBeAvailableWithDefaults()
{
Currency result = ne... |
Parser/Tests/Parser.Common.Tests/ProvidersTests/CommandJsonConvertProviderTests/DeserializeCommand_Should.cs | shakuu/parser | 0 | 7059730 | using Moq;
using NUnit.Framework;
using Parser.Common.Contracts;
using Parser.Common.Models;
using Parser.Common.Providers;
namespace Parser.Common.Tests.ProvidersTests.CommandJsonConvertProviderTests
{
[TestFixture]
public class DeserializeCommand_Should
{
[Test]
public void ReturnNull_W... |
web/studio/ASC.Web.Studio/UserControls/Management/LdapSettings/LdapSettings.ascx.cs | aTiKhan/CommunityServer | 1,629 | 7059731 | /*
*
* (c) Copyright Ascensio System Limited 2010-2021
*
* 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 la... |
Assets/Scripts/Urbanice/Editor/CityGeneratorEditor.cs | Cxyda/Urbanice | 0 | 7059732 | <filename>Assets/Scripts/Urbanice/Editor/CityGeneratorEditor.cs
using UnityEngine;
namespace Urbanice.Editor
{
[UnityEditor.CustomEditor(typeof(CityGeneratorScript))]
public class GenerateScriptEditor : UnityEditor.Editor
{
private CityGeneratorScript _target;
public override void OnInspect... |
Assets/Scripts/Inventory System/IItem.cs | ik6cgsg/3-Days-of-Vanished-Realm | 9 | 7059733 | using UnityEngine;
public abstract class IItem : ScriptableObject
{
[SerializeField]
protected Texture iconEquippedTexture;
[SerializeField]
protected Texture iconUnequippedTexture;
public virtual EquipmentController.EquipableItem EquipableItem
{
get
{
return Equip... |
UI/Pages/ModelBase.cs | xela2200/SoloContacts | 0 | 7059734 | <reponame>xela2200/SoloContacts
using SoloContacts.Core.Validation;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace SoloContacts.UI.Pages
{
public abstract class ModelBase
{
protected BrokenRulesManager _BrokenRulesManager = new BrokenRulesMan... |
TankLib/STU/Types/STU_25B18866.cs | Mike111177/OWLib | 1 | 7059735 | <filename>TankLib/STU/Types/STU_25B18866.cs
// Instance generated by TankLibHelper.InstanceBuilder
// ReSharper disable All
namespace TankLib.STU.Types {
[STUAttribute(0x25B18866)]
public class STU_25B18866 : STUGenericSettings_Base {
[STUFieldAttribute(0x161CFFA8, ReaderType = typeof(InlineInstanceFie... |
Data.API/CacheKey/SynonymKey.cs | SwiftAusterity/BuzzMyResume | 0 | 7059736 | using System;
using System.Globalization;
using Ninject;
namespace Data.API.CacheKey
{
public class SynonymKey : BaseCacheKey
{
public SynonymKey()
: base("Synonym")
{
}
}
}
|
src/Spoondrift.Code/Config/Module/RightConfig.cs | RookieXie/spoondrift.core | 1 | 7059737 | <gh_stars>1-10
using Spoondrift.Code.PageView;
using Spoondrift.Code.Xml;
using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Serialization;
namespace Spoondrift.Code.Config.Module
{
public class RightConfig : IReadXmlCallback
{
public FunctionRightConfig FunctionRights... |
SmartHouse_Control_Web/Scripts/Libs/cobielite_core.cs | v1nnyb0y/HSE.Practice.WebApp | 0 | 7059738 | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.34209
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//--... |
Ether.WeightedSelector.Tests/Probability_ExtremeInputs_Tests.cs | burtonr/Ether.WeightedSelector | 32 | 7059739 | <gh_stars>10-100
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Ether.WeightedSelector.Extensions;
using Ether.WeightedSelector.Tests.Helpers;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Ether.WeightedSelector.Tests
{
[TestClass]
public class Prob... |
src/Orchard.Web/Modules/Q42.DbTranslations/Views/Dashboard/Culture.cshtml | doticca/Orchard.CloudBust | 1 | 7059740 | @using System.Globalization
@using Q42.DbTranslations.Helpers
@model Q42.DbTranslations.ViewModels.CultureGroupDetailsViewModel
@{ Layout.Title = Model.Culture + " Localization"; }
@using (Script.Foot())
{
<script>
$(document).ready(function() {
$('.contribute-banner').on('click',
... |
src/DataAccess/Migrations/CustomDbObjects.StoredProcs.cs | adams85/aspnetskeleton2 | 2 | 7059741 | <gh_stars>1-10
using System.Collections.Generic;
using System.Linq;
using Microsoft.EntityFrameworkCore.Migrations.Operations;
namespace WebApp.DataAccess.Migrations
{
public partial class CustomDbObjects
{
public IEnumerable<MigrationOperation> GetStoredProcOperations(bool dropIfExists, bool create)
... |
GuidGen/App.xaml.cs | id0001/guid-generator | 0 | 7059742 | <reponame>id0001/guid-generator
using System.Windows;
namespace GuidGen
{
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
private void Application_Startup(object sender, StartupEventArgs e)
{
// Create the window
MainWindow wnd = new MainWindow()... |
AffindaAPI/AffindaAPI/Models/ExpectedRemunerationAnnotationParsed.Serialization.cs | affinda/affinda-dotnet | 0 | 7059743 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System.Text.Json;
using Azure.Core;
namespace Affinda.API.Models
{
public partial class ExpectedRemunerationAnnotationParsed
{
internal static ExpectedRemunera... |
LoggingAdvanced.Console/Timestamps/DateTimeProvider.cs | rickykaare/LoggingAdvanced | 17 | 7059744 | using System;
namespace LoggingAdvanced.Console.Timestamps
{
internal class DateTimeProvider : IDateTimeProvider
{
public DateTime Now()
{
return DateTime.Now;
}
}
} |
SatisfactorySaveEditor/PropertyValues/ArrayProperty.cs | AyrA/SatisfactorySaveEditor | 32 | 7059745 | using System;
using System.Collections.Generic;
using System.IO;
namespace SatisfactorySaveEditor.PropertyValues
{
public class ArrayProperty : IPropertyValue
{
public List<IPropertyValue> Properties;
public ArrayProperty(BinaryReader BR)
{
Properties = new List<IPropertyV... |
LMS.Web.Admin/Mappings/SubjectProfile.cs | JeelPatel2000/LibraryManagementSystem | 9 | 7059746 | <reponame>JeelPatel2000/LibraryManagementSystem<filename>LMS.Web.Admin/Mappings/SubjectProfile.cs
using AutoMapper;
using LMS.Core.Domain.Books;
using LMS.Web.Admin.ViewModels;
using System.Linq;
namespace LMS.Web.Admin.Mappings
{
public class SubjectProfile : Profile
{
public SubjectProfile()
... |
Pickaxe.CodeGen/Visitor/Visitor.SelectAll.cs | bitsummation/pickaxe | 168 | 7059747 | <reponame>bitsummation/pickaxe<filename>Pickaxe.CodeGen/Visitor/Visitor.SelectAll.cs
/* Copyright 2015 <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... |
src/Rules.Framework/Builder/ComposedConditionNodeBuilder.cs | ehtick/rules-framework | 24 | 7059748 | <filename>src/Rules.Framework/Builder/ComposedConditionNodeBuilder.cs
namespace Rules.Framework.Builder
{
using System;
using System.Collections.Generic;
using Rules.Framework.Core;
using Rules.Framework.Core.ConditionNodes;
internal class ComposedConditionNodeBuilder<TConditionType> : IComposedCon... |
Assets/Scripts/Enemy.cs | SangNguyen94/Gothicvania | 1 | 7059749 | using UnityEngine;
using System.Collections;
public class Enemy : MonoBehaviour
{
public PlayerStat playerStat;
public bool isBoss;
[System.Serializable]
public class EnemyStats
{
public int maxHealth = 100;
private int _curHealth;
public int curHealth
{
... |
RefactoringTechniques/SingleResponsibilityPrincipal/SecondExample/MiscClasses/SmtpServer.cs | omid7791/refactoring-techniques | 1 | 7059751 | using System;
namespace SRP.SecondExample.MiscClasses
{
public static class SmtpServer
{
public static void Send(object emailToBeSnt)
{
throw new NotImplementedException();
}
}
} |
Runner/Models/Options.cs | gabrielweyer/HorseSpeed | 0 | 7059752 | <filename>Runner/Models/Options.cs
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
namespace HorseSpeed.Runner.Models
{
internal class Options
{
public readonly string FromClause;
public readonly string WhereClause;
public readon... |
src/CatalogCrawler/Logic/Cursor.cs | joelverhagen/CatalogDownloader | 0 | 7059753 | using System;
using System.IO;
namespace Knapcode.CatalogCrawler
{
class Cursor : ICursor
{
private readonly string _cursorPath;
private readonly DateTimeOffset _defaultCursorValue;
private readonly IDepthLogger _logger;
public Cursor(string cursorPath, DateTimeOffset defaultC... |
LottoryUWP/LottoryUWP/Utils/ADUtils.cs | Cherubimlee/Lottery | 1 | 7059754 | using LottoryUWP.DataModel;
using Microsoft.Advertising.WinRT.UI;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.ApplicationModel.Core;
namespace LottoryUWP.Utils
{
public class ADUtils
{
public static ADUtils AdInstan... |
src/MVVMTest.GUI/RelayCommand.cs | PotatoMaster101/mvvm_test | 0 | 7059755 | using System;
using System.Windows.Input;
namespace MVVMTest.GUI
{
/// <summary>
/// A simple implementation for <see cref="ICommand"/>.
/// </summary>
public class RelayCommand : ICommand
{
/// <summary>
/// The <see cref="Action"/> for executing the command.
/// </summary... |
Assets/Hacker.cs | HoangDaniel/Learning-Unity-TerminalHacker | 0 | 7059756 | using UnityEngine;
public class Hacker : MonoBehaviour {
const int startingLives = 3;
int currentLives;
int level; // Game state
string password;
enum Screen { MainMenu, Password, Win, Lose };
Screen currentScreen;
string[][] availablePasswords = new string[][] {
new string[] {"red... |
tests/CacheMeIfYouCan.Tests/TwoTierCacheTests2.cs | ncomben/CacheMeIfYouCan | 6 | 7059757 | using System;
using System.Collections.Generic;
using System.Linq;
using CacheMeIfYouCan.Internal;
using FluentAssertions;
using Xunit;
namespace CacheMeIfYouCan.Tests
{
/// <summary>
/// Tests for <see cref="TwoTierCache{TOuterKey,TInnerKey,TValue}"/>
/// </summary>
public class TwoTierCacheTests2
... |
dnet/src/Nmx.Core/Util/IO/FileInfoExtensions.cs | nerdymishka/nerdymishka | 0 | 7059758 | <gh_stars>0
using System;
using System.Globalization;
using System.IO;
namespace NerdyMishka.Util.IO
{
public static class FileInfoExtensions
{
public static string FormatFileSize(
this long length,
ByteMeasurement format = ByteMeasurement.Auto)
{
string[] si... |
Assets/SomeGWGame/Scripts/PressSpaceToWin.cs | whilefun/GobblerWare | 0 | 7059759 | using UnityEngine;
// Important: To call the GobblerWareManager public API, you must use the GobblerWare namespace!
using WizardJam.GobblerWare;
//
// Some terrible code written for a sample GobblerWare game
// Written by [redacted] August 2018
//
public class PressSpaceToWin : MonoBehaviour {
void Update () {
... |
DAL.EF/Repositories/EFRepository.cs | akaver/CleanArchitectureDemo | 2 | 7059761 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Threading.Tasks;
using DAL.Core;
using DAL.Core.Repositories;
using Domain.Core;
using Microsoft.EntityFrameworkCore;
namespace DAL.EF.Repositories
{
public class EFRepository<TEntity> : IReposito... |
sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/TopNGroupScope.Serialization.cs | gjy5885/azure-sdk-for-net | 3,268 | 7059762 | <gh_stars>1000+
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System.Text.Json;
using Azure.Core;
namespace Azure.AI.MetricsAdvisor.Models
{
public partial class TopNGroupScope : IUtf8JsonSerializable
{
vo... |
3DRPG/Assets/Script/UserData/UserInventory.cs | AhriHaran/Unity | 0 | 7059763 | <reponame>AhriHaran/Unity
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public enum INVENTORY_TYPE
{
INVENTORY_START,
INVENTORY_WEAPON = INVENTORY_START,
INVENTORY_STIGMA,
INVENTORY_END,
}
public class UserInventory
{
//무기, 성흔 상 중 하
//무기 인벤토리, 성흔 인벤토리\
pri... |
src/RedisTribute/Io/ConnectionPool.cs | roberino/RedisSlimClient | 0 | 7059764 | using RedisTribute.Io.Commands;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace RedisTribute.Io
{
class ConnectionPool : ICommandRouter
{
readonly IReadOnlyCollection<ICommandRouter> _connections;
public ConnectionPool(IReadOnlyCollection<ICommandR... |
Room613/Assets/Scripts/Enemy Scripts/MannequinDetection.cs | IliaBahmutov/Room613 | 3 | 7059765 | /*
* Script used by mannequinAI to see if the mannequin is close enough to the player to move
*/
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MannequinDetection : MonoBehaviour
{
public MannequinAIScript thisMannequin;
private void Start()
{
thisM... |
CollapseXml/CollapseXml/Errors/ObjectNotACollectionException.cs | kornelijepetak/collapse-xml | 2 | 7059766 | using System;
using System.Collections.Generic;
using System.Linq;
namespace Kaisean.Tools.CollapseXml.Errors
{
/// <summary>
/// Thrown when the collection path references an object that is not an IEnumerable
/// </summary>
public class ObjectNotACollectionException : CollapseXmlException
{
/// <summary>
///... |
src/Microsoft.Performance.SDK/Processing/TableAttribute.cs | DanPear/microsoft-performance-toolkit-sdk | 1 | 7059767 | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using System;
namespace Microsoft.Performance.SDK.Processing
{
/// <summary>
/// Denotes a class as implementing a data table.
/// </summary>
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)... |
Src/Core/Studio.Application/Countries/Queries/GetCountryById/GetCountryByIdQueryHandler.cs | VeselinBPavlov/studioto.bg | 0 | 7059768 | <reponame>VeselinBPavlov/studioto.bg
namespace Studio.Application.Countries.Queries.GetCountryById
{
using System.Threading;
using System.Threading.Tasks;
using Common;
using Exceptions;
using Interfaces.Persistence;
using MediatR;
public class GetCountryByIdQueryHandler : IRequestHandler<G... |
MemoryLib/Linux/PInvokes.cs | Sandwich-Group/MemoryLib | 15 | 7059769 | <reponame>Sandwich-Group/MemoryLib
using System;
using System.Diagnostics.CodeAnalysis;
using System.Runtime.InteropServices;
namespace HoLLy.Memory.Linux
{
[SuppressMessage("ReSharper", "InconsistentNaming")]
internal static class PInvokes
{
[DllImport("libc", SetLastError = true)]
public ... |
src/Demo.ADTProcessing.Router/RabbitMQ/RabbitMqEndpointManagement.cs | toddmeinershagen/Demo.ADTProcessing | 1 | 7059770 | using System.Collections.Generic;
using RabbitMQ.Client;
namespace Demo.ADTProcessing.Router.RabbitMQ
{
public class RabbitMqEndpointManagement
{
IConnection _connection;
bool _disposed;
public RabbitMqEndpointManagement(IConnection connection)
{
_connection = conn... |
Mustern/core-releases-v1.3/OsmSharp.Osm/Xml/v0_6/Extensions.cs | fakit/OSM-AutoCAD | 0 | 7059771 | // OsmSharp - OpenStreetMap (OSM) SDK
// Copyright (C) 2013 <NAME>
//
// This file is part of OsmSharp.
//
// OsmSharp 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 of the License, or
/... |
Xamarin.MacDev/IAppleSdkVersion.cs | xamarin/Xamarin.MacDev | 33 | 7059772 | using System;
namespace Xamarin.MacDev {
public interface IAppleSdkVersion : IEquatable<IAppleSdkVersion> {
bool IsUseDefault { get; }
void SetVersion (int [] version);
IAppleSdkVersion GetUseDefault ();
int [] Version { get; }
}
public static class IAppleSdkVersion_Extensions {
public static IAppleSdkVer... |
Burls.Windows/Notifications/ProfileSelectionRuleCreatedNotificationHandler.cs | BEzGumpTion/burls | 0 | 7059773 | using Burls.Application.Profiles.Notifications;
using Burls.Windows.Services;
using MediatR;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace Burls.Windows.Notifications
{
public class ProfileSelectionRuleCreatedN... |
expense-authorization/src/API/EMBC.ExpenseAuthorization.Api/ETeam/Requests/LoginRequest.cs | alexjoybc/embc-eaf | 1 | 7059774 | <filename>expense-authorization/src/API/EMBC.ExpenseAuthorization.Api/ETeam/Requests/LoginRequest.cs
using System;
using System.Xml;
namespace EMBC.ExpenseAuthorization.Api.ETeam.Requests
{
public class LoginRequest : SoapRequest
{
private readonly string _username;
private readonly st... |
Assets/Scripts/File System/Net.cs | mvidaldp/wd_ride | 0 | 7059776 | using System;
using System.Collections;
using System.Collections.Generic;
using System.Net.Http;
using UnityEngine;
namespace Westdrive
{
public class Net
{
public delegate void AsyncNetResult(string response);
public static async void getStringRequest(string url, AsyncNetResult callback)
... |
src/QuickNote.Services/QuickNote.Shared/Actions/ShowGoToCommand.cs | sharpninja/Quick-Pad | 1 | 7059777 | <reponame>sharpninja/Quick-Pad
using System;
using System.Threading.Tasks;
using Microsoft.Extensions.DependencyInjection;
using QuickNote.Mvvm.Managers;
using QuickNote.Mvvm.ViewModels;
using QuickNote.Mvvm.Views;
namespace QuickNote.UI.Actions
{
public class ShowGoToCommand<TStorageFile, TStream> :
Simp... |
HDR/MyBitplaneDouble.cs | kruherson1337/HDR | 5 | 7059779 | <filename>HDR/MyBitplaneDouble.cs
using System;
namespace HDR
{
public class MyBitplaneDouble
{
public int width { get; set; }
public int height { get; set; }
public double[,] data { get; set; }
public MyBitplaneDouble(MyBitplane bitplane)
{
width = bitpla... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.