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 |
|---|---|---|---|---|
Ductus.FluentDocker/Extensions/CompressionExtensions.cs | megafinz/FluentDocker | 0 | 7028787 | using System.IO;
using SharpCompress.Common;
using SharpCompress.Readers;
namespace Ductus.FluentDocker.Extensions
{
public static class CompressionExtensions
{
public static void UnTar(this string file, string destPath)
{
using (var stream = File.OpenRead(file))
{
using (var reader = ... |
src/WatneyAstrometry.WebApi/Utils/GuidExtensions.cs | Jusas/WatneyAstrometry | 7 | 7028788 | // Copyright (c) <NAME>.
// Licensed under the Apache License, Version 2.0.
using System.Text.RegularExpressions;
namespace WatneyAstrometry.WebApi.Utils
{
public static class GuidExtensions
{
public static string Shortened(this Guid guid)
{
return Regex.Replace(Convert.ToBase64St... |
Organization.API/Controllers/DepartmentsController.cs | icodemechanic/ASP.NetCoreApiDocumentationWithOpenApiSwagger | 0 | 7028789 | using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using AutoMapper;
using Microsoft.AspNetCore.JsonPatch;
using Microsoft.AspNetCore.Mvc;
using Organization.API.Dto;
using Organization.API.IRepository;
namespace Organization.API.Controllers
{
[Route("api/[controller]")]
[ApiControl... |
src/PlaylistManager.ViewModel/Interfaces/IAudioPlayerControl.cs | jclaessens97/PlaylistManager | 0 | 7028790 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using MaterialDesignThemes.Wpf;
using PlaylistManager.ViewModel.ViewModels;
namespace PlaylistManager.ViewModel.Interfaces
{
public interface IAudioPlayerControl
{
... |
src/SubmissionEvaluation.Domain/Comparers/IChallengeComparer.cs | amkoroew/challenges | 0 | 7028791 | <reponame>amkoroew/challenges<gh_stars>0
using System.Collections.Generic;
using SubmissionEvaluation.Contracts.Data;
namespace SubmissionEvaluation.Domain.Comparers
{
public class ChallengeComparer : EqualityComparer<IChallenge>
{
public override bool Equals(IChallenge x, IChallenge y)
{
... |
TestingServerPush/TestingServerPush.Web/Views/Home/Index.cshtml | MihaiBogdanEugen/LearningSignalR-ExternalNotification | 0 | 7028792 | @model IEnumerable<JobListViewModel>
@{
this.ViewBag.Title = "Jobs";
var rowNo = 1;
}
<h2>@this.ViewBag.Title</h2>
<p>
<a class="btn btn-primary" href="@Url.Action("New", "Home")">New Task</a>
<a class="btn btn-default" href="@Url.Content("~/hangfire")">Dashboard</a>
</p>
@if (this.Model.Any())
{
... |
Avancando Com O Resto/Assets/GAF/Scripts/Core/Editor/GAFBakedMovieClipEditor.cs | univesp/avancando-com-o-resto | 1 | 7028793 | <gh_stars>1-10
// File: GAFBakedMovieClipEditor.cs
// Version: 5.2
// Last changed: 2017/3/30 10:08
// Author: <NAME>, <NAME>
// Copyright: © 2017 GAFMedia
// Project: GAF Unity plugin
using UnityEditor;
using UnityEngine;
using GAF.Core;
using GAF.Assets;
using GAF.Objects;
using GAFEditorInternal.Core;
... |
src/FirebirdDbComparer/Compare/TargetVersion.cs | cincuranet/FirebirdDbComparer | 17 | 7028794 | using System;
using System.Text.RegularExpressions;
namespace FirebirdDbComparer.Compare
{
public enum TargetVersion
{
Version25,
Version30,
}
public static class TargetVersionExt
{
public static string VersionSuffix(this TargetVersion targetVersion)
{
r... |
Funcky/Functional/Uncurry.cs | csillikd-messerli/funcky | 0 | 7028795 | <filename>Funcky/Functional/Uncurry.cs
using System;
using System.Diagnostics.Contracts;
namespace Funcky
{
public static partial class Functional
{
/// <summary>
/// Transforms a curried function into a function that takes multiple arguments.
/// </summary>
[Pure]
publi... |
KiiCloudStorageSDK/storage/push_message/PushToUserMessage.cs | KiiPlatform/KiiCloudUnitySDK | 1 | 7028796 | <gh_stars>1-10
using System;
using JsonOrg;
namespace KiiCorp.Cloud.Storage
{
/// <summary>
/// "Push to User" notifications provide a means to push messages using a publisher-subscriber model.
/// This feature will let you and your app users quickly send messages to other users while providing a way to sc... |
Assets/Scripts/LightControl.cs | JackTheRipper42/SimpleBattle3 | 0 | 7028797 | using UnityEngine;
public class LightControl : MonoBehaviour
{
public Light _lihgt;
private float _time = 0;
public float Delay = 0.5f;
public float Down = 1;
protected virtual void Update()
{
_time += Time.deltaTime;
if (_time > Delay)
{
if (_lihgt.inten... |
src/Gipper/GipperClassifier/GipperClassificationProvider.cs | Russ43/Gipper | 0 | 7028798 | <reponame>Russ43/Gipper<filename>src/Gipper/GipperClassifier/GipperClassificationProvider.cs
using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.Diagnostics;
using System.Windows.Media;
using Microsoft.VisualStudio.Text;
using Microsoft.VisualStudio.Text.Classificatio... |
Source/ES2.XSD/PlanetReserveDefinition.cs | Scrivener07/Endless-Studio | 3 | 7028799 | <filename>Source/ES2.XSD/PlanetReserveDefinition.cs
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:2.0.50727.8762
//
// Changes to this file may cause incorrect behavior and will be lost if
// ... |
Jira.SDK.Tests/MockData/MockJiraClient.cs | DmitryKhi/Jira.SDK | 35 | 7028800 | <reponame>DmitryKhi/Jira.SDK
using Jira.SDK.Domain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Jira.SDK.Tests
{
public class MockJiraClient : IJiraClient
{
List<Project> _projects = new List<Project>()
{
new Proje... |
src/Percovich/Percovich/Activities/LoginActivity.cs | jdspacho/percovich | 0 | 7028801 | <filename>src/Percovich/Percovich/Activities/LoginActivity.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Android.App;
using Android.Content;
using Android.OS;
using Android.Runtime;
using Android.Views;
using Android.Widget;
namespace Percovich.Activities
{
[Activ... |
GameboyNetcore.Core.Test.Unit/LR25902Tests.cs | davidwhitney/GameboyNetcore | 1 | 7028802 | <gh_stars>1-10
using System.Linq;
using GameboyNetcore.Core.CPU;
using NUnit.Framework;
namespace GameboyNetcore.Core.Test.Unit
{
[TestFixture]
public class LR25902Tests
{
private LR25902 _cpu;
[SetUp]
public void SetUp()
{
_cpu = new LR25902(null)... |
XTool/code/view.model/common/SortableObservableCollectionTU.cs | eXtensoft/xtool | 0 | 7028803 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.ObjectModel;
using System.Windows.Input;
using System.Collections.Specialized;
namespace XTool
{
public class SortableObservableCollection<T, U> : ObservableCollection<U> where U : SortableViewModel<T>, ... |
BookSystem/ViewComponents/LoginStatusViewComponent.cs | Edwardchorius/BookSystem | 0 | 7028804 | using BookSystem.Data.Models;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace BookSystem.ViewComponents
{
public class LoginStatusViewComponent : ViewComponent
{
private read... |
Source/EverlastingStudent/EverlastingStudent.Models/FreelanceProjects/BaseFreelanceProject.cs | EverlastingStudent/EverlastingStudent | 0 | 7028805 | using System.Linq;
namespace EverlastingStudent.Models.FreelanceProjects
{
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using EverlastingStudent.Common.Contracts;
[Table("BaseFreelanceProject")]
public class BaseFreel... |
src/rbfxSample/RotateObject.cs | gleblebedev/rbfxSample | 3 | 7028806 | using Urho3DNet;
namespace rbfxSample
{
[ObjectFactory]
class RotateObject : LogicComponent
{
public RotateObject(Context context) : base(context)
{
UpdateEventMask = UpdateEvent.UseUpdate;
}
public override void Update(float timeStep)
{
var... |
Sideways/Wpf/ComboBoxEx.cs | JohanLarsson/Sideways | 12 | 7028807 | <gh_stars>10-100
namespace Sideways
{
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Input;
public static class ComboBoxEx
{
public static readonly DependencyProperty IsSymbolSearchProperty = DependencyProperty.RegisterAttached(
... |
ECom.Web/Models/ApplicationUser.cs | nabinkjha/Ecom | 2 | 7028808 | <gh_stars>1-10
using Microsoft.AspNetCore.Identity;
using System;
namespace ECom.Web.Models
{
// Add profile data for application users by adding properties to the ApplicationUser class
public class ApplicationUser : IdentityUser
{
public string FirstName { get; set; }
public string LastNa... |
LiefsAscent/Assets/Platformer/Inventory/Scripts/InteractionSystem.cs | Munchiis/LiefsAscent | 0 | 7028809 | <reponame>Munchiis/LiefsAscent
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class InteractionSystem : MonoBehaviour
{
[Header("Detection Fields")]
//Detection Point
public Transform detectionPoint;
//Detection Radius
private const flo... |
ComX.Infrastructure.Distributed.Outbox.Masstransit/ExtensionsEventSerializerConfigurator.cs | ramihamati/distributed | 0 | 7028810 | using ComX.Infrastructure.Distributed.Outbox;
using Microsoft.Extensions.DependencyInjection.Extensions;
namespace Microsoft.Extensions.DependencyInjection;
public static class ExtensionsEventSerializerConfigurator
{
public static void UseMassTransitSerializer(
this IConfiguratorEventSerializer serialize... |
src/Benchmarkator.MongoDb/JsonDocumentToBsonDocument.cs | wdolek/allocator | 0 | 7028812 | <reponame>wdolek/allocator
using Benchmarkator.Generator;
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Order;
using MongoDB.Bson;
using MongoDB.Bson.IO;
using MongoDB.Bson.Serialization;
using MongoDB.Bson.Serialization.Serializers;
using System;
using System.IO;
using System.Text;
using System.Text.Json;
... |
DofusProtocol/D2Parser/Protocol/Messages/game/context/dungeon/DungeonKeyRingMessage.cs | ImNotARobot742/DofusProtocol | 0 | 7028813 |
// Generated on 03/23/2022 09:50:17
using System;
using System.Collections.Generic;
using System.Linq;
using AmaknaProxy.API.Protocol.Types;
using AmaknaProxy.API.IO;
using AmaknaProxy.API.Network;
namespace AmaknaProxy.API.Protocol.Messages
{
public class DungeonKeyRingMessage : NetworkMessage
{
pub... |
src/MvcSiteMapBuilder/MvcSiteMapBuilder/Providers/IDynamicNodeProvider.cs | ghost1face/Mvc5SiteMapBuilder | 1 | 7028814 | <reponame>ghost1face/Mvc5SiteMapBuilder
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Mvc5SiteMapBuilder.Providers
{
public interface IDynamicNodeProvider
{
IEnumerable<SiteMapNode> GetSiteMapNodes();
}
}
|
src/Stormancer.Plugins/Spectate/Stormancer.Server.Plugins.Spectate/SpectateController.cs | Stormancer/plugins | 1 | 7028816 | <gh_stars>1-10
// MIT License
//
// Copyright (c) 2019 Stormancer
//
// 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... |
Engine/extlibs/IosLibs/mono-2.6.7/mcs/class/corlib/System.Globalization/IdnMapping.cs | zlxy/Genesis-3D | 0 | 7028817 | //
// IdnMapping.cs
//
// Author:
// <NAME> <<EMAIL>>
//
// Copyright (C) 2007 Novell, Inc (http://www.novell.com)
//
// 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, ... |
backend/Models/Menu.cs | EddieMC98/Amabisca2-Prueba | 0 | 7028818 | <reponame>EddieMC98/Amabisca2-Prueba<filename>backend/Models/Menu.cs
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace backend.Models
{
[Table("menu", Schema="public")]
public class Menu
{
[Key]
public int cod_menu { get... |
ClassPelaajat/ClassPelaajat/Piste.cs | MallaMalla/Pelinhallinta | 0 | 7028819 | <filename>ClassPelaajat/ClassPelaajat/Piste.cs
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SQLite;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ClassPelaajat
{
public class Piste : db
{
//omat variablet
private DataTable... |
src/Slamby.TAU/Helper/DatasetNameValidationRule.cs | slamby/slamby-tau | 1 | 7028820 | <filename>src/Slamby.TAU/Helper/DatasetNameValidationRule.cs
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Controls;
using System.Windows.Data;
namespace Slamby.TAU.Helper
{
publ... |
src/TruckersMP.Net/Responses/Servers/GameTimeResponse.cs | gehongyan/TruckersMP-API-DotNet-Client | 1 | 7028821 | <reponame>gehongyan/TruckersMP-API-DotNet-Client
using Newtonsoft.Json;
namespace TruckersMP.Net
{
public class GameTimeResponse : TruckersMPResponseBase
{
[JsonProperty("game_time")]
public int GameTime { get; init; }
}
} |
WindowsAzurePowershell/src/Commands.Utilities/MediaServices/Services/Entities/MediaServiceAccount.cs | Milstein/azure-sdk-tools | 0 | 7028822 | <filename>WindowsAzurePowershell/src/Commands.Utilities/MediaServices/Services/Entities/MediaServiceAccount.cs
// ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// Licensed under the Apache License, Version 2.0 (the "License");
// you may no... |
Extended/PIToOcsOmfSample/DataIngress/IngressClient.cs | GitVivianSo/Qi-Samples | 0 | 7028823 | using System;
using System.Collections.Generic;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
using PIToOcsOmfSample.DataIngress.OmfMessageContent;
namespace PIToOcsOmfSample.DataIngress
{
/// <summary>
/// Client used to send OSIsoft Message Format ... |
Framework.Validation.Tests/IgnoreNullPropertyComparisonValidatorTests.cs | propellingbits/RepositoryPattern-EF | 0 | 7028824 | using System;
using Framework.Validation.Validators;
using MbUnit.Framework;
using Microsoft.Practices.EnterpriseLibrary.Validation;
using Microsoft.Practices.EnterpriseLibrary.Validation.Validators;
namespace Validation.Tests
{
[TestFixture(), Parallelizable()]
public class IgnoreNullPropertyCompa... |
YouTube/YouTube.Base/Clients/ChatClient.cs | KaefGAMES/StreamingClientLibrary | 32 | 7028825 | using Google.Apis.YouTube.v3.Data;
using StreamingClient.Base.Util;
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using YouTube.Base.Model;
using YouTube.Base.Services;
namespace YouTube.Base.Clients
{
/// <summary>
/// Handles interaction with Live Stre... |
src/Discord.Net.Core/Entities/IUpdateable.cs | Deathreus/Discord.Net | 1,762 | 7028826 | using System.Threading.Tasks;
namespace Discord
{
/// <summary>
/// Defines whether the object is updateable or not.
/// </summary>
public interface IUpdateable
{
/// <summary>
/// Updates this object's properties with its current state.
/// </summary>
/// <p... |
src/Hashgraph/Implementation/Proto/CryptoGetAccountRecordsQuery.cs | queilawithaQ/Hashgraph | 32 | 7028827 | using Grpc.Core;
using Hashgraph;
using Hashgraph.Implementation;
using System;
using System.Threading;
namespace Proto
{
public sealed partial class CryptoGetAccountRecordsQuery : INetworkQuery
{
Query INetworkQuery.CreateEnvelope()
{
return new Query { CryptoGetAccoun... |
FeatureLoom.Tests/MessageFlow/Connectors/HubTests.cs | MichaelGehling/FeatureFlowFramework | 3 | 7028829 | <gh_stars>1-10
using FeatureLoom.Diagnostics;
using Xunit;
namespace FeatureLoom.MessageFlow
{
public class HubTests
{
[Theory]
[InlineData(42)]
[InlineData("test string")]
public void CanForwardObjectsAndValues<T>(T message)
{
TestHelper.PrepareTestContext(... |
mugo/FogBackground.cs | saschb2b/mugo | 0 | 7028830 | <filename>mugo/FogBackground.cs
using System;
using Engine.cgimin.object3d;
using OpenTK;
using OpenTK.Graphics.OpenGL;
namespace Mugo
{
public class FogBackground : BaseObject3D
{
private TextureHolder textures;
private FogBackgroundMaterial material;
private float counter = 0;
public FogBackground (float... |
src/Orchard.Tests.Modules/CodeGeneration/Commands/CodeGenerationCommandsTests.cs | jdages/AndrewsHouse | 3 | 7028831 | using System.Collections.Generic;
using System.IO;
using Autofac;
using Autofac.Features.Metadata;
using NUnit.Framework;
using Orchard.Caching;
using Orchard.CodeGeneration.Commands;
using Orchard.Commands;
using Orchard.Data;
using Orchard.Data.Migration.Generator;
using Orchard.Data.Providers;
using Orch... |
Signum.Entities/DynamicQuery/Tokens/ColumnToken.cs | goldenauge/framework | 165 | 7028832 | <reponame>goldenauge/framework<filename>Signum.Entities/DynamicQuery/Tokens/ColumnToken.cs
using Signum.Entities.Reflection;
namespace Signum.Entities.DynamicQuery;
public class ColumnToken : QueryToken
{
ColumnDescription column;
public ColumnDescription Column { get { return column; } }
object... |
Assets/AbilitySystem/AbilitySystem.cs | yzngo/GASUnity3D | 1 | 7028833 | using System.Linq;
using System.Collections.Generic;
using UnityEngine;
namespace GameplayAbilitySystem
{
[AddComponentMenu("Ability System/Ability System")]
public class AbilitySystem : MonoBehaviour
{
private AbilityEvent onAbilityStart = new AbilityEvent();
public AbilityEvent OnAbili... |
Tutorial/Server_Basic/SuperSocketNetwork/Source/Event/ServerStarted.cs | rhea-so/NetworkingWithSupersocket | 11 | 7028834 | <reponame>rhea-so/NetworkingWithSupersocket
using System;
namespace Source
{
class ServerStarted
{
public static void func()
{
Console.WriteLine("Hello Networking with Supersocket!");
}
}
}
|
src/NetStandard/Core/Core/src/Tools/PointFTools.cs | BrunoZell/Teronis.DotNet | 0 | 7028835 | using System;
using System.Collections.Generic;
using System.Drawing;
namespace Teronis.Tools
{
public static class PointFTools
{
public static double GetAngelBetweenTwoPoints(PointF p1, PointF p2)
{
//// angle in radians
//return Math.Atan2(p1.Y - p2.Y, p1.X - p2.X);
... |
src/System.Security.Permissions/src/System/Security/Policy/EvidenceBase.cs | KuromeSan/corefx | 15 | 7028836 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
namespace System.Security.Policy
{
[Serializable]
public abstract partial class EvidenceBase
{
... |
src/Rebus.Tests/Contracts/Transports/Factories/AzureServiceBusMessageQueueFactory.cs | dev4ce/Rebus | 0 | 7028837 | using System;
using System.IO;
using Rebus.AzureServiceBus;
namespace Rebus.Tests.Contracts.Transports.Factories
{
public class AzureServiceBusMessageQueueFactory : ITransportFactory
{
public static string ConnectionString
{
get
{
var connectionStringFil... |
test/Steeltoe.Management.ExporterBase.Test/Metrics/CloudFoundryForwarder/OpenCensusStats.cs | spring-operator/Management | 0 | 7028838 | <reponame>spring-operator/Management<filename>test/Steeltoe.Management.ExporterBase.Test/Metrics/CloudFoundryForwarder/OpenCensusStats.cs
// Copyright 2017 the original author or authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the Li... |
SESTEC/GISCore/Business/Concrete/DepartamentoBusiness.cs | tonihenriques/GestaoSST | 0 | 7028839 | using GISCore.Business.Abstract;
using GISModel.DTO.Departamento;
using GISModel.Entidades;
using Ninject;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace GISCore.Business.Concrete
{
public class DepartamentoBusiness : BaseBusiness<Depa... |
src/chocolatey.tests.integration/scenarios/ListScenarios.cs | majacQ/choco | 1 | 7028840 | // Copyright © 2017 - 2021 Chocolatey Software, Inc
// Copyright © 2011 - 2017 RealDimensions Software, LLC
//
// 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://ww... |
sources/Interop/Windows/Windows/um/lsalookup/LSA_TRUST_INFORMATION.cs | rickbrew/terrafx.interop.windows | 0 | 7028841 | // Copyright © <NAME> Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information.
// Ported from um/LsaLookup.h in the Windows SDK for Windows 10.0.20348.0
// Original source is Copyright © Microsoft. All rights reserved.
namespace TerraFX.Interop.Windows;
/// <inc... |
Assets/Game/Scripts/Editor/LgCustomExportTypeToLua.cs | zjavaScript/2DPlatformer-SLua-master-2018 | 63 | 7028842 | <reponame>zjavaScript/2DPlatformer-SLua-master-2018
/**
* The custom export lua type class, this is editor class.
*
* @filename LgCustomExportTypeToLua.cs
* @copyright Copyright (c) 2015 Yaukey/yaukeywang/WangYaoqi (<EMAIL>) all rights reserved.
* @license The MIT License (MIT)
* @author Yaukey
* @... |
src/Razor/src/Microsoft.VisualStudio.Mac.LanguageServices.Razor/ProjectSystem/DefaultRazorProjectHost.cs | ajaybhargavb/AspNetCore-Tooling | 0 | 7028843 | <reponame>ajaybhargavb/AspNetCore-Tooling<filename>src/Razor/src/Microsoft.VisualStudio.Mac.LanguageServices.Razor/ProjectSystem/DefaultRazorProjectHost.cs
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license informati... |
DesignPattern/DesignPattern/Visitor/Amativeness.cs | MarsonShine/Books | 15 | 7028844 | <filename>DesignPattern/DesignPattern/Visitor/Amativeness.cs<gh_stars>10-100
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DesignPattern.Visitor
{
class Amativeness : Action
{
public override void GetManConclusio... |
src/Modules/Laser.Orchard.TaskScheduler/Models/LaserTaskSchedulerRecord.cs | INVA-Spa/Laser.Orchard.Platform | 8 | 7028845 | using Orchard.ContentManagement.Records;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Laser.Orchard.TaskScheduler.Models {
public class LaserTaskSchedulerRecord : ContentPartRecord {
public virtual string SignalName { get; set; }
public virtual Da... |
src/Storm.Api.Core/Extensions/ObjectExtensions.cs | Julien-Mialon/Storm.Api | 1 | 7028846 | namespace Storm.Api.Core.Extensions;
public static class ObjectExtensions
{
public static void ThrowArgumentNullExceptionIfNeeded(this object arg, string paramName)
{
if (arg is null)
{
throw new ArgumentNullException(paramName);
}
}
public static void ThrowArgumentNullExceptionIfNeeded(this object arg, ... |
ExampleMod/ExampleMod.cs | Yozzaxia1311/tModLoaderOptiTerraria | 1 | 7028847 | <reponame>Yozzaxia1311/tModLoaderOptiTerraria<filename>ExampleMod/ExampleMod.cs
using ExampleMod.Content;
using ExampleMod.Content.Items.Consumables;
using ExampleMod.Content.NPCs;
using System.IO;
using Terraria;
using Terraria.ModLoader;
namespace ExampleMod
{
public class ExampleMod : Mod
{
public const string ... |
Oguz/Data/ApplicationUser.cs | Yurkeks/Oguz | 0 | 7028848 | <filename>Oguz/Data/ApplicationUser.cs
using Microsoft.AspNetCore.Identity;
using Oguz.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Oguz.Data
{
public class ApplicationUser : IdentityUser
{
public string FirstName { get; set; }
... |
PInvoke/Gdi32/WinGdi.Display.cs | ivandrofly/Vanara | 0 | 7028849 | using System;
using System.Drawing;
using System.Runtime.InteropServices;
using Vanara.InteropServices;
namespace Vanara.PInvoke
{
public static partial class Gdi32
{
/// <summary>Undocumented.</summary>
[PInvokeData("wingdi.h")]
public enum DISPLAYCONFIG_COLOR_ENCODING : uint
{
/// <summary>Undocumented... |
RobustGeometry/HalfedgeMesh/PointMesh.cs | akopetsch/RobustGeometry.NET | 62 | 7028850 | <gh_stars>10-100
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace RobustGeometry.HalfedgeMesh
{
// This ensures vertices have X and Y positions, which should be enough for 2D Delaunay triangulation.
public class PointTriangleMesh<TEdgeTraits, TFaceTraits, THalfe... |
Omnia.CodeGen/Runtime/AnalysisScope.cs | AntyaDev/Omnia | 2 | 7028851 | using System.Collections.Generic;
using System.Linq.Expressions;
namespace Omnia.CodeGen.Runtime
{
public class AnalysisScope
{
public AnalysisScope Parent { get; private set; }
public ParameterExpression RuntimeExpr { get; private set; }
public OmniaRuntime Runtime { get; priv... |
Ccr.MaterialDesign/MaterialDesign/Primitives/Behaviors/Services/RippleMouseTrackingService.cs | vreniose95/Ccr | 10 | 7028852 | using System;
using System.Reflection;
using System.Windows;
using System.Windows.Data;
using System.Windows.Input;
using System.Windows.Markup;
using Ccr.Core.Extensions;
using Ccr.PresentationCore.Helpers;
using Ccr.PresentationCore.Helpers.DependencyHelpers;
using Ccr.Std.Extensions;
using Ccr.Std.Introspective.Ext... |
src/PortalWeb/Portal.Web/Views/Account/RegisterSuccess.cshtml | isboat/ibunionportal | 0 | 7028853 | @using Portal.Web.Models
@model Portal.Web.Models.BaseResponse
<br/>
<div class="container">
@{
if (Model.Status == BaseResponseStatus.Success)
{
if (this.Request.IsAuthenticated && !(this.User.UserLoginRole < 2))
{
<div class="alert alert-success">
<p>
... |
Xpand/Xpand.Xpo/MetaData/XpandCustomMemberInfo.cs | ebptwllc/eXpand | 131 | 7028854 | using System;
using DevExpress.Xpo.Metadata;
using Fasterflect;
namespace Xpand.Xpo.MetaData {
public class XpandCustomMemberInfo : XPCustomMemberInfo {
public XpandCustomMemberInfo(XPClassInfo owner, string propertyName, Type propertyType, XPClassInfo referenceType, bool nonPersistent, bool nonPublic)
... |
examples/CG/SimpleParticleSystem2D/IParticle.cs | amadron/FinalProject_ShaderProg | 0 | 7028855 | using System.Numerics;
namespace Example
{
public interface IParticle
{
float Age { get; }
Vector2 Location { get; }
}
} |
Griddy/Scripts/MonoSingleton.cs | nickbreslin/Griddy | 38 | 7028856 | using UnityEngine;
public abstract class MonoSingleton<T> : MonoBehaviour where T : MonoSingleton<T>
{
private static T m_Instance = null;
public static T instance {
get {
// Instance requiered for the first time, we look for it
if (m_Instance == null) {
m_Insta... |
RabbitMQ.Management.Client/Models/Context.cs | kvanover/RabbitMQAdminClient | 0 | 7028857 | using System.Collections.Generic;
using System.Text.Json.Serialization;
namespace RabbitMQ.Management.Client.Models
{
public class Context
{
[JsonPropertyName("ssl_opts")]
public List<object> SslOpts { get; set; }
[JsonPropertyName("node")]
public string Node { get; set; }
... |
ModTool/AndroidAssemblyHelper.cs | bitm4ster/ModTool | 152 | 7028858 | using System.IO;
using UnityEngine;
namespace ModTool
{
/// <summary>
/// A class for extracting Assemblies from the game's APK.
/// </summary>
internal class AndroidAssemblyHelper
{
/// <summary>
/// Copy the game's Assemblies from the APK to the game's persistent datapath.
... |
google/cloud/dialogflow/v2/google-cloud-dialogflow-v2-csharp/Google.Cloud.Dialogflow.V2/Environment.g.cs | googleapis/googleapis-gen | 7 | 7028859 | <gh_stars>1-10
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/dialogflow/v2/environment.proto
// </auto-generated>
#pragma warning disable 1591, 0612, 3021
#region Designer generated code
using pb = global::Google.Protobuf;
using pbc = global::Google.Pro... |
CMS/CMSModules/Newsletters/Tools/Newsletters/Newsletter_Issue_SubscribersClicks.aspx.cs | mzhokh/FilterByCategoryWidget | 26 | 7028860 | <gh_stars>10-100
using System;
using System.Linq;
using CMS.DataEngine;
using CMS.Helpers;
using CMS.LicenseProvider;
using CMS.Membership;
using CMS.Modules;
using CMS.Newsletters;
using CMS.SiteProvider;
using CMS.UIControls;
/// <summary>
/// Displays a table of subscribers who clicked a link in a specified issu... |
BytecodeApi/Extensions/IEnumerableExtensions.cs | eaglesquads/bytecode-api | 1 | 7028861 | <reponame>eaglesquads/bytecode-api<filename>BytecodeApi/Extensions/IEnumerableExtensions.cs
using BytecodeApi.Mathematics;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace BytecodeApi.Extensions
{
/// <summary>
/// Provides a set of <see langword="static... |
src/NtFreX.Audio.Infrastructure/SampleExtensions.cs | NtFreX/NtFreX.Audio | 4 | 7028862 | <reponame>NtFreX/NtFreX.Audio
using NtFreX.Audio.Infrastructure.Threading;
using NtFreX.Audio.Infrastructure.Threading.Extensions;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
namespace NtFreX.Audio.Infrastructure
{
public static class SampleExtensions
{
p... |
Tech Module/Programming Fundamentals/05. C# Basics - More Exercises/6. DNA Sequences/DNASequences.cs | MihailDobrev/SoftUni | 10 | 7028863 | <reponame>MihailDobrev/SoftUni
namespace _6.DNA_Sequences
{
using System;
public class DNASequences
{
static void Main(string[] args)
{
char[] letters = new char[] { 'A', 'C', 'G', 'T' };
int number = int.Parse(Console.ReadLine());
... |
Assets/Scripts/Model/Combat/DiceCompareHelper.cs | stwangner/FlyCasual | 0 | 7028864 | using System;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
using UnityEngine.UI;
public class DiceCompareHelper
{
public DiceRoll AttackDiceroll { get; private set; }
private GameObject helperPanel;
private GameObject iconPrefabHit;
private GameObject iconPrefabCrit;
pri... |
src/CoreWCF.WebHttp/src/CoreWCF/Dispatcher/QueryStringConverter.cs | bstordrup/CoreWCF | 0 | 7028865 | <gh_stars>0
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Collections;
using System.ComponentModel;
using System.Diagnostics;
using System.Globalization;
using System.Reflection;
using System.Runtime.... |
domain/PublicSchemeAggregate/Requests/UnpublishSchemeRequest.cs | Midnight-Lizard/Schemes-Processor | 0 | 7028866 | <reponame>Midnight-Lizard/Schemes-Processor
using MidnightLizard.Commons.Domain.Model;
using System;
using System.Collections.Generic;
using System.Text;
namespace MidnightLizard.Schemes.Domain.PublicSchemeAggregate.Requests
{
public class UnpublishSchemeRequest : SchemeDomainRequest
{
}
}
|
pokemon/Assets/scripts/BuffAnimation.cs | JiangRunzhi/ooadpokemon | 1 | 7028868 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class BuffAnimation : MonoBehaviour
{
public GameObject pokemon;
public Animator animator;
void Update()
{
animator = pokemon.GetComponent<Animator>();
animator.SetTrigger("buff");
sound_manag... |
Src/Newtonsoft.Json.Schema.Tests/JSchemaTests.cs | ThiagoBarradas/newtonsoft-json-schema | 1 | 7028869 | <reponame>ThiagoBarradas/newtonsoft-json-schema
#region License
// Copyright (c) Newtonsoft. All Rights Reserved.
// License: https://raw.github.com/JamesNK/Newtonsoft.Json.Schema/master/LICENSE.md
#endregion
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Newtonsoft.Json.L... |
src/Optimat.EveOnline.Bot/Sonst/Extension.cs | botengine-de/Optimat.EO | 8 | 7028870 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using Bib3;
//using Optimat.EveOnline.AuswertGbs;
using Optimat.EveOnline.VonSensor;
using ExtractFromOldAssembly.Bib3;
namespace Optimat.EveOnline.Anwendung
{
sta... |
Assets/Scripts/soundTrigger.cs | TheHerobrine/Global-Game-Jam-2018 | 0 | 7028871 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class soundTrigger : MonoBehaviour {
public bool isLooped;
public float loopTime;
private AudioSource soundSource;
private Rigidbody2D parentRigidbody;
private Collider2D triggerCollider;
private float loop... |
src/Services/Identity/Identity.Grpc/Entities/City.cs | ilkerogutcu/microservices-ecommerce | 1 | 7028872 | <reponame>ilkerogutcu/microservices-ecommerce<gh_stars>1-10
using System.Collections.Generic;
using Identity.Grpc.Common;
namespace Identity.Grpc.Entities
{
public class City : BaseEntity, IEntity
{
public string Name { get; set; }
public List<District> Districts { get; set; } = new List<Distr... |
src/Sir.VectorSpace/IPostingsReader.cs | kreeben/resin | 587 | 7028873 | using System;
using System.Collections.Generic;
namespace Sir.VectorSpace
{
public interface IPostingsReader : IDisposable
{
void Reduce(Query query, ref IDictionary<(ulong, long), double> result);
void Reduce(Term term, ref IDictionary<(ulong, long), double> result);
}
} |
Source/TimeWarp.Blazor.Template/templates/TimeWarp.Blazor/Source/Shared/Features/WeatherForecast/GetList/GetWeatherForecastsRequest.cs | mikeyoshino/timewarp-templates | 0 | 7028874 | <filename>Source/TimeWarp.Blazor.Template/templates/TimeWarp.Blazor/Source/Shared/Features/WeatherForecast/GetList/GetWeatherForecastsRequest.cs
//#WeatherForecast #GetWeatherForecasts #Request #Api
namespace TimeWarp.Blazor.Features.WeatherForecasts
{
using MediatR;
using TimeWarp.Blazor.Features.Bases;
public ... |
TestSerial_ConsoleApp/Program.cs | jerryguo255/Project_IT715_EmbedSystem | 0 | 7028875 | //using System.Data.Entity;
using System;
using System.IO.Ports;
using System.Threading;
namespace TestSerial_ConsoleApp
{
class Program
{
static SerialPort _serialPort;
static bool _notCollected = true;
static void Main(string[] args)
{
//// Get a list of serial p... |
Source/Api/EtAlii.Ubigia.Api.Functional.Parsing.Lapa.Tests/Traversal/1. Parsing/UnitTests/SequenceParser.Paths.Wildcard.Tests.cs | vrenken/EtAlii.Ubigia | 2 | 7028876 | // Copyright (c) <NAME>. All rights reserved. See the license on https://github.com/vrenken/EtAlii.Ubigia
namespace EtAlii.Ubigia.Api.Functional.Parsing.Tests
{
using System.Linq;
using System.Threading.Tasks;
using EtAlii.Ubigia.Api.Functional.Tests;
using EtAlii.Ubigia.Api.Functional.Traversal;
... |
Assets/Scripts/Controller/GameStateFactory.cs | OrangeShotman/PingPong | 0 | 7028877 | <gh_stars>0
using Controller.Gameplay;
using Model;
using Views;
namespace Controller
{
public class GameStateFactory
{
private readonly GameplayModelFactory _gameplayModelFactory;
private readonly IWindowFactory _windowFactory;
private ScoreStorage _scoreStorage;
public GameSt... |
Day24_ALU_Serial/ALU.cs | davidbozjak/adventofcode2021 | 0 | 7028878 | class ALU
{
private readonly Instruction[] instructions;
public ALU(IEnumerable<Instruction> instructions)
{
this.instructions = instructions.ToArray();
}
public (long w, long x, long y, long z) RunProgramForInput(IEnumerator<long> inputs)
=> RunProgramForInput(0, 0, 0, 0, inputs)... |
AeroNovelTool/src/lib/UtilXML.cs | AeroNovel/AeroNovel | 1 | 7028879 | <filename>AeroNovelTool/src/lib/UtilXML.cs
using System.Collections.Generic;
using System.Text.RegularExpressions;
//System.Xml太抠规范了,还是自己简易糊个吧。
public class XFragment
{
int indexInSource;
public List<XPart> parts = new List<XPart>();
public XELement root;
public int origina... |
Assets/Scripts/PlayerAnimation/PlayerAnimation.cs | youwho42/Ahem | 0 | 7028880 | <reponame>youwho42/Ahem
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerAnimation : MonoBehaviour
{
Animator anim;
Controller2D controller;
Transform characterObject;
Player player;
PlayerInput input;
float lastPositionX;
bool moving;
... |
Intersect (Core)/Config/CombatOptions.cs | Xenepherth/Intersect-Engine | 0 | 7028881 | namespace Intersect.Config
{
public class CombatOptions
{
public int BlockingSlow = 30; //Slow when moving with a shield. Default 30%
public int CombatTime = 10000; //10 seconds
public int MaxAttackRate = 200; //5 attacks per second
public int MaxDashSpeed = 200;
p... |
ExtensionMethods/Label_ExtensionMethods.cs | o2platform/FluentSharp.WPF | 0 | 7028882 | <filename>ExtensionMethods/Label_ExtensionMethods.cs<gh_stars>0
using System.Windows;
using System.Windows.Controls;
namespace FluentSharp.WPF
{
public static class Label_ExtensionMethods
{
#region Label
public static Label set_Text(this Label label, string value)
{
label.... |
src/Digiseller.Engine.Core/Areas/Dashboard/Views/Admin/Admin.cshtml | somsom37/https-github.com-Mistand-Digishop | 7 | 7028883 | @using Digiseller.Engine.Core.Areas.Dashboard.Models.Settings
@using Digiseller.Engine.Core.Providers
@model AdminSettings
@{
ViewData["Title"] = "Настройка доступа администратора";
}
<div class="wrapper wrapper-content animated fadeInRight">
<div class="row">
<div class="col-lg-12">
<div ... |
Source/Firehawk.MsSql/Firehawk.MsSql.Tests/Maps/EntityMap.cs | HomeroThompson/firehawk | 0 | 7028884 | using Fhwk.MsSql.Tests.Model;
using NHibernate.Mapping.ByCode;
using NHibernate.Mapping.ByCode.Conformist;
namespace Fhwk.MsSql.Tests.Maps
{
/// <summary>
/// Defines how the base entity class gets mapped to the database
/// </summary>
public class EntityMap : ClassMapping<Entity>
{
/// <s... |
VerlofVerzoekVerwerkerDemo/VVV.UI/Views/Verlofaanvraag/InTreatmentVacation.cshtml | mischarouleaux/VerlofVerzoekVerwerkerDemo | 0 | 7028885 | <filename>VerlofVerzoekVerwerkerDemo/VVV.UI/Views/Verlofaanvraag/InTreatmentVacation.cshtml
@model VVV.UI.ViewModels.Verlofaanvraag.IndexModel
@using VVV.UI.Helpers;
@using PagedList.Mvc;
@{
ViewBag.Title = "Index";
Layout = "~/Views/Shared/_Layout.cshtml";
}
@if (SecurityHelper.CurrentIdentity.IsAuthenticat... |
src/LegacyMiScale.cs | lswiderski/MiScaleBodyComposition | 0 | 7028886 | <reponame>lswiderski/MiScaleBodyComposition
using MiScaleBodyComposition.Exceptions;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace MiScaleBodyComposition
{
public class LegacyMiScale
{
private double _weight;
private double _height;
pri... |
tvos/tvCollection/tvCollection/Classes/CityInfo.cs | susairajs/ios-samples | 863 | 7028887 | using System;
namespace tvCollection
{
public class CityInfo
{
#region Computed Properties
public string ImageFilename { get; set; }
public string Title { get; set; }
public bool CanSelect{ get; set; }
#endregion
#region Constructors
public CityInfo (string filename, string title, bool canSelect)
{... |
Sifon/Forms/Profiles/UserControls/Remote/Remote.Tooltips.cs | ampach/Sifon | 10 | 7028888 | <gh_stars>1-10
using System.Windows.Forms;
using Sifon.Statics;
namespace Sifon.Forms.Profiles.UserControls.Remote
{
partial class Remote
{
public override void SetTooltips()
{
new ToolTip().SetToolTip(checkBoxRemote, Tooltips.Profiles.Remote.EnableCheckbox);
new ToolT... |
MaterialCMS/DbConfiguration/Configuration/UpdateIndicesListener.cs | DucThanhNguyen/MaterialCMS | 12 | 7028889 | <reponame>DucThanhNguyen/MaterialCMS<gh_stars>10-100
using System;
using System.Linq;
using MaterialCMS.Entities;
using MaterialCMS.Events;
using MaterialCMS.Indexing;
using MaterialCMS.Tasks;
using MaterialCMS.Website;
namespace MaterialCMS.DbConfiguration.Configuration
{
public class UpdateIndicesListener : IOn... |
src/NnCase.Targets.CPU/Evaluation/Operators/ReduceWindow2D.cs | dotnetGame/nncase | 11 | 7028890 | <reponame>dotnetGame/nncase<gh_stars>10-100
using System;
using System.Collections.Generic;
using System.Text;
using NnCase.Evaluation;
using NnCase.Evaluation.Operators;
using NnCase.IR;
using NnCase.IR.Operators;
using NnCase.Kernels;
using NnCase.Targets.CPU.IR.Operators;
using NnCase.Targets.CPU.Kernels;
namespac... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.