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
src/framework/Wechaty.Application.Contracts/IContactAppService.cs
Jesn/dotnet-wechaty
1
7043717
using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; using Volo.Abp.Application.Services; using Wechaty.PuppetModel; namespace Wechaty.Application.Contracts { public interface IContactAppService : IApplicationService { Task Ready(); Task Ready...
DockerSdk/Daemon/DockerDaemonException.cs
tsonto/DockerSdk
2
7043718
<filename>DockerSdk/Daemon/DockerDaemonException.cs using System; using System.Runtime.Serialization; namespace DockerSdk.Daemon { [Serializable] internal class DockerDaemonException : Exception { public DockerDaemonException() { } public DockerDaemonException(string? mess...
Application/EdFi.Ods.AdminApp.Web/Helpers/RouteHelpers.cs
stephenfuqua/Ed-Fi-ODS-AdminApp
3
7043719
// SPDX-License-Identifier: Apache-2.0 // Licensed to the Ed-Fi Alliance under one or more agreements. // The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. // See the LICENSE and NOTICES files in the project root for more information. using System; using System.Linq.Expressions; using...
iControl/Interfaces/LocalLB/LocalLBDNSTSIGKey.cs
bencarlton/f5-icontrol-library-dotnet
4
7043720
namespace iControl { using System.Xml.Serialization; using System.Web.Services; using System.ComponentModel; using System.Web.Services.Protocols; using System; using System.Diagnostics; /// <remarks/> [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepTh...
src/ErrorMessages.cs
HotRiot/SQLite.XM-Xamarin
1
7043721
<reponame>HotRiot/SQLite.XM-Xamarin<gh_stars>1-10 using System; using System.Collections.Specialized; using System.Collections; using System.Collections.Generic; namespace SQLiteXM { public class ErrorMessages { public static readonly Dictionary<string, ErrorMessage> error = new Dictionary<string, ErrorMessage> (...
Fonlow.OpenApiClientGen.CS/ClientApiFunctionGen.cs
codertimu/openapiclientgen
0
7043722
<reponame>codertimu/openapiclientgen using Fonlow.CodeDom.Web; using Fonlow.OpenApiClientGen.ClientTypes; using Fonlow.Reflection; using Microsoft.OpenApi.Models; using System; using System.CodeDom; using System.ComponentModel.Design; using System.Diagnostics; using System.Linq; namespace Fonlow.OpenApiClientGen.CS {...
etc/Old Unity Code/Scripts/Haptics/NoHaptics.cs
capnmidnight/Juniper
9
7043723
<filename>etc/Old Unity Code/Scripts/Haptics/NoHaptics.cs namespace Juniper.Haptics { /// <summary> /// When we are on a system that we know for a fact does not have haptics, we can initialize the /// haptic subsystem with one that does nothing. /// </summary> public class NoHaptics : AbstractHaptic...
src/TWord/Languages/Generic/GenericTripletTransformer.cs
szyn33k/TWord
1
7043724
<reponame>szyn33k/TWord<gh_stars>1-10 using System.Collections; namespace TWord { ///<inheritdoc/> internal class GenericTripletTransformer : ITripletTransformer { private readonly ILanguageNumbersDictionary _numbersDictionary; public GenericTripletTransformer(ILanguageNumbersDictionary n...
src/IdentityUI.Core/Data/Models/Constants/IdentityUIPermissions.cs
HorvatMatej/IdentityUI
0
7043725
using System; using System.Collections.Generic; using System.Text; namespace SSRD.IdentityUI.Core.Data.Models.Constants { public static class IdentityUIPermissions { public const string IDENTITY_UI_CAN_MANAGE_GROUPS = "identity_ui_can_manage_groups"; public const string GROUP_CAN_SEE_USERS = ...
Octgn.Communication.Test/ClientTests.cs
octgn/Octgn.Communication
1
7043726
<gh_stars>1-10 using NUnit.Framework; using Octgn.Communication.Packets; using Octgn.Communication.Serializers; using Octgn.Communication.Tcp; using System; using System.Linq; using System.Net; using System.Threading.Tasks; namespace Octgn.Communication.Test { [TestFixture] public class ClientTests : TestBase...
src/Core/src/Handlers/Image/ImageHandler.Android.cs
abod1944/maui
0
7043727
using System.Threading.Tasks; using Android.Graphics.Drawables; using Android.Widget; using AndroidX.AppCompat.Widget; namespace Microsoft.Maui.Handlers { public partial class ImageHandler : ViewHandler<IImage, ImageView> { protected override ImageView CreatePlatformView() { var imageView = new AppCompatImag...
test/StreamJsonRpc.Tests/JsonRpcWithMessageFactoryTests.cs
dibarbet/vs-streamjsonrpc
417
7043728
using System; using System.Buffers; using System.Collections.Generic; using System.Diagnostics; using System.Text; using System.Threading; using System.Threading.Tasks; using Microsoft; using Microsoft.VisualStudio.Threading; using StreamJsonRpc; using StreamJsonRpc.Protocol; using Xunit; using Xunit.Abstractions; pu...
TLM/TLM/Custom/AI/CustomRoadBaseAI.cs
jrthsr700tmax/Cities-Skylines-Traffic-Manager-President-Edition
0
7043729
namespace TrafficManager.Custom.AI { using ColossalFramework; using RedirectionFramework.Attributes; using UI; using UI.SubTools; [TargetType(typeof(RoadBaseAI))] public class CustomRoadBaseAI : RoadBaseAI { [RedirectMethod] public void CustomClickNodeButton(ushort nodeId, ref N...
src/Examples/Manual Tour of Go Conversions/concurrency/channels/main_package.cs
rgwood/go2cs
249
7043731
<filename>src/Examples/Manual Tour of Go Conversions/concurrency/channels/main_package.cs /* package main import "fmt" func sum(s []int, c chan int) { sum := 0 for _, v := range s { sum += v } c <- sum // send sum to c } func main() { s := []int{7, 2, 8, -9, 4, 0} c := make(chan int...
src/Ghostbot/Configuration/GhostbotDiscordTokenProviderException.cs
michaeldtaylor/Ghostbot
0
7043732
using System; namespace Ghostbot.Configuration { public class GhostbotDiscordTokenProviderException : Exception { public GhostbotDiscordTokenProviderException() : base($"The Ghostbot Discord token has not been set as a user environment variable. Navigate to 'https://discordapp.com/developers/applicati...
Spectre.Console/Spectre.Console/Widgets/Progress/Columns/DownloadedColumn.cs
HirenBodhi/Our-World-OASIS-API-HoloNET-HoloUnity-And-.NET-HDK
2,730
7043733
<gh_stars>1000+ using System; using System.Globalization; using Spectre.Console.Rendering; namespace Spectre.Console { /// <summary> /// A column showing download progress. /// </summary> public sealed class DownloadedColumn : ProgressColumn { /// <summary> /// Gets or sets the <see...
Assets/Proland/Scripts/Core/Producer/CreateTileTask.cs
CyberSys/Proland-To-Unity
0
7043734
using UnityEngine; using System.Collections.Generic; namespace Proland { /// <summary> /// The task that creates the tiles. The task calles the producers DoCreateTile function /// and the data created is stored in the slot. /// </summary> public class CreateTileTask { /// <summary> ...
Samples/Nivaes.App.Cross.Sample/Components/ViewModels/Bindings/BindingsViewModel.cs
andres-gimenez/Nivaes.App.Cross
0
7043735
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MS-PL license. // See the LICENSE file in the project root for more information. namespace Nivaes.App.Cross.Sample { using System.Threading.Tasks; using MvvmCross.Localization; using...
src/HD-ServiceInstaller/Common/IconInfo.cs
YehudaEi/Bluestacks-source-code
8
7043736
<reponame>YehudaEi/Bluestacks-source-code<gh_stars>1-10 // Decompiled with JetBrains decompiler // Type: BlueStacks.Common.IconInfo // Assembly: HD-ServiceInstaller, Version=4.250.0.1070, Culture=neutral, PublicKeyToken=null // MVID: 15F93427-26B3-4C7E-BAB1-0A00688BC4D4 // Assembly location: C:\Program Files\BlueStack...
SUPJenCLI/Model/WorkflowJob.cs
pvoliveira/supjencli
0
7043737
using System; using System.Text.Json.Serialization; namespace SUPJenCLI.Model { public class WorkflowJob { [JsonPropertyName("_class")] public string Class { get; set; } public Action[] Actions { get; set; } public object Description { get; set; } public string Displa...
Client/Pages/AboutMe.razor.cs
Don328/PersonalSite
0
7043738
<reponame>Don328/PersonalSite<filename>Client/Pages/AboutMe.razor.cs<gh_stars>0 using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components.Web; namespace BlazorApp.Client.Pages { public partial class AboutMe : ComponentBase { private enum Section { Interests, ...
vodka/Assets/Scripts/PhoneOS.cs
sogoodgames/peach
0
7043739
<gh_stars>0 using System.Collections.Generic; using UnityEngine; using System.IO; using System.Linq; public enum Friend { Courtney = 0, Emma = 1, Jin = 2, Kyle = 3, Lucien = 4, Matt = 5, Melody = 6, Michael = 7, Riley = 8, Taeyong = 9 } public enum ClueID { NoClue = 0, ...
sdk/dotnet/DatabaseMigration/Outputs/ConnectionConnectDescriptor.cs
EladGabay/pulumi-oci
5
7043740
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; names...
ScimReferenceApi/Schemas/Attributes/UserAttributes/ExtensionAttributeEnterpriseUser.cs
marcusca10/GenericScimConnector
0
7043741
<reponame>marcusca10/GenericScimConnector //---------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------------------------------- namespace Microsoft.AzureAD.Provisioning.ScimReference.Api.Schemas.Attributes.Us...
apps/app-docs/Receive/Program.cs
reyou/Ggg.RabbitMQ
0
7043742
<reponame>reyou/Ggg.RabbitMQ<gh_stars>0 using System; using UtilitiesClassLibrary; namespace Receive { class Program { static void Main(string[] args) { Console.WriteLine(GggUtilities.MessageUseFuncTests); Console.ReadLine(); } } }
SquenceToMovie/Form1.cs
bryful/ffmpeg_ui
0
7043743
<gh_stars>0 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.IO; using BRY; using Codeplex.Data; /// <summary> /// 基本となるアプリのスケルトン /// </sum...
src/AspNetCoreComponentLibrary/Infrastructure/RepositoryWithCache.cs
96467840/AspNetCoreComponentLibrary
0
7043744
<reponame>96467840/AspNetCoreComponentLibrary<gh_stars>0 using AspNetCoreComponentLibrary.Abstractions; using System; using System.Collections.Generic; using System.Text; using System.Collections; using Microsoft.Extensions.Logging; using System.Linq; using Microsoft.EntityFrameworkCore; using System.Threading; names...
Tools/Pipeline/Controls/PropertyCells/CellBool.cs
acoget/MonoGame
0
7043745
// MonoGame - Copyright (C) The MonoGame Team // This file is subject to the terms and conditions defined in // file 'LICENSE.txt', which is part of this source code package. using System; using Eto.Forms; namespace MonoGame.Tools.Pipeline { public class CellBool : CellBase { public CellBool(string c...
CssSerialization/Interpretators/Expressions/PropertyNames/AnimationFillModeType.cs
kraskoo/CssAnimationSerializer
0
7043746
<reponame>kraskoo/CssAnimationSerializer namespace Interpretators.Expressions.PropertyNames { using Models.Enums; public class AnimationFillModeType : PropertyName { public AnimationFillModeType() : base(CssPropertyType.AnimationFillMode) { } } }
ActionResult/IExecuteResult.cs
ai2soft/Ai2.Services
0
7043747
<gh_stars>0 namespace Ai2.Services.ActionResult { /// <summary> /// 执行操作返回是否成功 /// </summary> public interface IExecuteResult : IOperationResult { bool Result { get; set; } /// <summary> /// 判断 Result == true && IsSuccess == True /// </summary> bool IsFullSu...
IndirimKuponum/IndirimKuponum/IndirimKuponum/Views/Kategori/Index.cshtml
turqayavshar/WEB-PROGRAMLAMA-ODEV
0
7043748
<gh_stars>0 @model IEnumerable<IndirimKuponum.Models.KategoriModel> @{ ViewData["Title"] = "Index"; Layout = "~/Views/Shared/_AdminLayout.cshtml"; } @inject LanguageServices language <h1>@language.Getkey("KategoriListesi")</h1> <hr /> <p> @Html.ActionLink(@language.Getkey("KategoriEkle"), "Create", nul...
Assets/Soita1.cs
kaitsuks/Kuulasade
0
7043749
<filename>Assets/Soita1.cs  using UnityEngine; using System.Collections; [RequireComponent(typeof(AudioSource))] public class Soita1 : MonoBehaviour { public AudioClip otherClip; AudioSource audioSource; void Start() { audioSource = GetComponent<AudioSource>(); } IEnumerator Pl...
Sharp.Migrations.MySQL/Attributes/NameAttribute.cs
SharpSistemas/MigrationMySQL
1
7043750
using System; namespace Sharp.MySQL.Migrations.Attributes { /// <summary> /// Attribute to set the name of a class or field. If not set, the name will be the property or class /// </summary> [AttributeUsage(AttributeTargets.Property | AttributeTargets.Class)] public class NameAttribute : Attribute...
Sample/ECommerce/Payments/Payments/Payments/Config.cs
jcbledsoe/EventSourcing.NetCore
1
7043751
using Core.Commands; using Core.Events; using Core.Marten.Repository; using Marten; using Microsoft.Extensions.DependencyInjection; using Payments.Payments.CompletingPayment; using Payments.Payments.DiscardingPayment; using Payments.Payments.FailingPayment; using Payments.Payments.FinalizingPayment; using Payments.Paym...
OpenGL.Net/NV/Wgl.NV_video_capture.cs
fontmaniac/OpenGL.Net
606
7043752
<filename>OpenGL.Net/NV/Wgl.NV_video_capture.cs // MIT License // // Copyright (c) 2009-2017 <NAME> // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including wit...
src/backend/api/Fusion.Resources.Api/Extensions/StringExtensions.cs
equinor/fusion-app-resources
1
7043753
namespace Fusion.Resources.Api { public static class StringExtensions { public static string? TrimText(this string? text, int maxLength) { if (string.IsNullOrEmpty(text)) return text; if (text.Length <= maxLength) return text; ...
src/vBenchSLAM.Addins/ExtensionMethods/DateTimeExtensions.cs
Artonus/vBenchSLAM
0
7043754
using System; namespace vBenchSLAM.Addins.ExtensionMethods { public static class DateTimeExtensions { /// <summary> /// Gets the time formatted as yyyyMMddHHmmss /// </summary> /// <param name="dateTime"></param> /// <returns>String formatted as yyyyMMddHHmmss</returns> ...
sources/Scrappy/Modules/ThirtyModule.cs
amacal/scrappy
0
7043755
using System.Threading.Tasks; using Scrappy.Core; using Scrappy.Core.Thirty; using Scrappy.Noom; using Scrappy.Views.Thirty; namespace Scrappy.Modules { public class ThirtyModule : IModule { public void Register(IRouter router) { router.RegisterAsync("/Thirty", OnList); ...
Alpaca.Markets/Enums/Tape.cs
amwsis/alpaca-trade-api-csharp
179
7043756
using JetBrains.Annotations; using Newtonsoft.Json; using Newtonsoft.Json.Converters; namespace Alpaca.Markets { /// <summary> /// Supported tape types for Alpaca Data API. /// </summary> [JsonConverter(typeof(StringEnumConverter))] public enum Tape { /// <summary> /// Tape A -...
MyCreate/Areas/AdminPanel/Controllers/anahabersController.cs
Galal1129/Our-Group
0
7043757
<reponame>Galal1129/Our-Group<filename>MyCreate/Areas/AdminPanel/Controllers/anahabersController.cs using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Rendering; using Microsoft.EntityFrameworkCore; using MyCre...
GitTfs/Core/TfsInterop/TfsPlugin.cs
visaodeempresa/git-tfs
0
7043758
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Reflection; using StructureMap; using StructureMap.Graph; using System.IO; using Microsoft.Win32; namespace Sep.Git.Tfs.Core.TfsInterop { public abstract class TfsPlugin { public static TfsPlugin ...
PixiEditorTests/ViewModelsTests/ViewModelMainTests.cs
chamindujs/PixiEditor
0
7043759
<filename>PixiEditorTests/ViewModelsTests/ViewModelMainTests.cs using System.IO; using System.Windows.Media; using PixiEditor.Models.Controllers; using PixiEditor.Models.DataHolders; using PixiEditor.Models.IO; using PixiEditor.Models.Position; using PixiEditor.Models.Tools; using PixiEditor.ViewModels; using Xunit; ...
src/EntityGraphQL/Schema/SchemaProvider.cs
CloudConstruct/EntityGraphQL
0
7043760
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Reflection; using System.Runtime.CompilerServices; using System.Security.Claims; using System.Threading.Tasks; using EntityGraphQL.Authorization; using EntityGraphQL.Compiler; using EntityGraphQL.Compiler.Util...
Project_HEL/Assets/GameManager_Player.cs
nikolasjklein/HEL
0
7043761
<reponame>nikolasjklein/HEL<gh_stars>0 using System.Collections; using System.Collections.Generic; using UnityEngine; public class GameManager_Player : MonoBehaviour { #region Singleton public static GameManager_Player instance; public void Awake() { instance = this; } #endregion ...
src/Confluent.Kafka/PersistenceStatus.cs
tauruscch/confluent-kafka-dotnet
2,324
7043762
<reponame>tauruscch/confluent-kafka-dotnet // Copyright 2018 Confluent 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 // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless r...
TowerDefence/Assets/_Scripts/Engine/Combat/Monobehaviours/other effects/Cloud.cs
venkatesh21m/TowerDefenceGame
0
7043763
using System.Collections; using System.Collections.Generic; using UnityEngine; namespace Rudrac.TowerDefence.Combat { public class Cloud : MonoBehaviour { [Tooltip("assign attackdefinition SO here")] [HideInInspector] public AttackDefinition attackDef; [HideInInspector] ...
src/Xamarin.Forms.Auth/Internal/Requests/ClientCredentialRequest.cs
glennawatson/Xamarin.Auth.Forms
3
7043764
// Copyright (c) 2019 <NAME>. All rights reserved. // <NAME> licenses this file to you under the MIT license. // See the LICENSE file in the project root for full license information. using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; namespace Xamarin.Forms.Auth { internal c...
07.Unit Testing with C#/01. Unit Testing/Homework/Santase/Source/Tests/Santase.Logic.Tests/GameMechanics/RoundPlayerInfoTests.cs
VVoev/Telerik-Academy
1
7043765
namespace Santase.Logic.Tests.GameMechanics { using Moq; using NUnit.Framework; using Santase.Logic.Cards; using Santase.Logic.GameMechanics; using Santase.Logic.Players; [TestFixture] public class RoundPlayerInfoTests { [Test] public void ConstructorShouldSetDefaultP...
02. C# part 2/01. Arrays/1. Arrays/AllocateArray.cs
TeeeeeC/TelerikAcademy2015-2016
0
7043766
<reponame>TeeeeeC/TelerikAcademy2015-2016 using System; class AllocateArray { static void Main() { /* Problem 1. Allocate array Write a program that allocates array of 20 integers and initializes each element by its index multiplied by 5. Print the obtained array on th...
src/Common/IRO.Common/Text/JsonSimpleSerializer.cs
IT-rolling-out/IRO
4
7043767
<reponame>IT-rolling-out/IRO<filename>src/Common/IRO.Common/Text/JsonSimpleSerializer.cs<gh_stars>1-10 using System; using System.Diagnostics; using Newtonsoft.Json; namespace IRO.Common.Text { public class JsonSimpleSerializer : IStringsSerializer { readonly JsonSerializerSettings _serializerSettings...
Assets/Atlantis/Scripts/Player/Inventory/ShipHold.cs
exidhor/Atlantis
1
7043768
using UnityEngine; using System.Collections; using Tools; public class ShipHold : MonoBehaviour, IShipLocation { public bool isEmpty { get { return _fishCount == 0; } } public bool isFull { get { return _fishCount == capacity; } } public FishType fishType { ge...
src/SFA.DAS.Authorization.ProviderFeatures/Configuration/ProviderFeaturesConfiguration.cs
SkillsFundingAgency/das-authorization
0
7043769
using System.Collections.Generic; using SFA.DAS.Authorization.Features.Configuration; using SFA.DAS.Authorization.ProviderFeatures.Models; namespace SFA.DAS.Authorization.ProviderFeatures.Configuration { public class ProviderFeaturesConfiguration : IFeaturesConfiguration<ProviderFeatureToggle> { public...
src/Uno.UI.RuntimeTests/Tests/Windows_Storage/Streams/StreamTestHelper.cs
olirobert/uno
5,973
7043770
using System; using System.IO; using System.Linq; using System.Runtime.InteropServices.WindowsRuntime; using System.Text; using System.Threading.Tasks; using Windows.Storage.Streams; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Uno.UI.RuntimeTests.Tests.Windows_Storage.Streams { public class StreamT...
Module 7/DesignPatterns/FactoryPattern/Departments/Finance.cs
davidsonsousa/Training-Examples
0
7043771
<reponame>davidsonsousa/Training-Examples<gh_stars>0 namespace FactoryPattern.Departments { public class Finance : Department { public override string GetMessage() { return "Hello from finance"; } } }
src/Off/CodeBase.Off.Website/Controllers/BlogController.cs
m-sadegh-sh/CodeBase
2
7043772
<gh_stars>1-10 namespace CodeBase.Off.Website.Controllers { using System.Linq; using System.Net; using System.Web; using System.Web.Mvc; using CodeBase.Off.Core.Domain; using CodeBase.Off.Core.Services; using CodeBase.Off.Website.AutoMapping; using CodeBase.Off.Website.Models; pub...
KoAR.SaveEditor/Views/Updates/ByteGroupsConverter.cs
247321453/koar-item-editor
0
7043773
<reponame>247321453/koar-item-editor<gh_stars>0 using System; using System.Globalization; using System.Windows; using System.Windows.Data; namespace KoAR.SaveEditor.Views.Updates { public sealed class ByteGroupsConverter : IValueConverter { private static readonly string[] _groups = { "B", "KB", "MB",...
tests/Domain0.Persistence.Tests/Repositories/SmsRequestRepositoryTest.cs
kirillnvnsk/domain0
0
7043774
<reponame>kirillnvnsk/domain0 using System; using System.Threading.Tasks; using Autofac; using Domain0.Persistence.Tests.Fixtures; using Domain0.Repository; using Domain0.Repository.Model; using FluentAssertions; using FluentAssertions.Equivalency; using Xunit; namespace Domain0.Persistence.Tests.Repositories { [...
VideoTime.UI/Helpers/DurationHelper.cs
Invoke-STPE/VideoTime
0
7043775
<reponame>Invoke-STPE/VideoTime using Shell32; using System; using System.Collections.Generic; using System.Text; namespace VideoTime.UI.Helpers { public static class DurationHelper { public static TimeSpan GetDurationOfVideoFiles(List<string> filePaths) { TimeSpan output = default...
Extracting1DElementData/ApplicationPage.cs
moorem1993/TSDRemotingAPIExamples
4
7043776
using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; using ClosedXML.Excel; using TSD.API.Remoting.Solver; namespace TsdApiRemotingSample { public partial class ApplicationPage : Form { #region Fields /// <summary> ...
CheckINN.Domain/Cache/CheckCache.cs
AudriusZemys/CheckINN
1
7043777
using System; using System.Collections; using System.Collections.Generic; using CheckINN.Domain.Entities; namespace CheckINN.Domain.Cache { public class CheckCache : ICheckCache { private readonly List<Check> _cache; public CheckCache() { _cache = new List<Check>(); ...
ZeldaVR/Assets/Immersio/GUI/MenuController.cs
kaefergeneral/ZeldaVR
2
7043779
using UnityEngine; using System; using System.Collections; using System.Collections.Generic; public class MenuController : MonoBehaviour { public const string ClassName = "MenuController"; #region GUI Properties // GUI Text Colors static Color NonSpeechColor = Color.white; static Color SpeechC...
test/Nethium.Demo.Service.Calc/CalcController.cs
Librazy/Nethium
2
7043780
<gh_stars>1-10 using System.Threading; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Nethium.Demo.Abstraction; namespace Nethium.Demo.Service.Calc { [Route("api/[controller]")] [ApiController] public class CalcController : ControllerBase, ICalcService { [HttpGet("add/{a}/...
Core/Theraot/Core/EnumHelper.cs
FFFF0h/System.Core.Net35
1
7043781
<reponame>FFFF0h/System.Core.Net35<gh_stars>1-10 // Needed for Workaround using System; namespace Theraot.Core { public static class EnumHelper { #if NET35 public static bool HasFlag(this Enum value, Enum flag) { //Added in .NET 4.0 var type = value.GetType(); ...
src/Shamyr.Expendity.Server.Service/Graphql/Mutations/UpdateExpense.cs
prixladi/expendity-server
0
7043782
<reponame>prixladi/expendity-server<gh_stars>0 using System.Threading.Tasks; using GraphQL; using GraphQL.Types; using Shamyr.Expendity.Server.Service.Graphql.Types.Expense; using Shamyr.Expendity.Server.Service.Models.Expense; using Shamyr.Expendity.Server.Service.Requests.Expense; namespace Shamyr.Expendity.Server....
FIDO.HostDetection/FIDO.HostDetection/FIDO.Support/FidoDB/Fido_UpdateDB.cs
robfry/crucyble-csharp-micro-hostdetection
0
7043783
<reponame>robfry/crucyble-csharp-micro-hostdetection /* * * Copyright 2015 Netflix, 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 * * http://www.apache.or...
LipidCreator/ExportParameters.Designer.cs
lifs-tools/lipidcreator
8
7043784
<filename>LipidCreator/ExportParameters.Designer.cs /* MIT License Copyright (c) 2018 <NAME> - dominik.kopczynski {at} isas.de <NAME> - bing.peng {at} isas.de <NAME> - nils.hoffmann {at} isas.de Permission is hereby granted, free of charge, to any person obtaining a co...
src/MappingGenerator/IConversionInstructionGenerator.cs
valbers/MappingGenerator
2
7043785
<reponame>valbers/MappingGenerator<gh_stars>1-10 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using MappingGenerator.LangObjects; namespace MappingGenerator { public interface IConversionInstructionGenerator { IEnumerable<Instructi...
src/DangEasy.Naming.UniqueName/Extensions/ListExtensions.cs
anthonydotnet/DangEasy.Naming.UniqueName
0
7043786
<reponame>anthonydotnet/DangEasy.Naming.UniqueName using DangEasy.Naming.UniqueName.Models; using System.Collections.Generic; using System.Linq; namespace DangEasy.Naming.UniqueName.Extensions { internal static class ListExtensions { internal static bool Contains(this IEnumerable<StructuredName> items...
src/Pess.Web/Controllers/MainPageController.cs
czmirek/Pess
0
7043787
namespace Pess.Web { using Microsoft.AspNetCore.Authentication; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Pess.Web.Code; using System.Collections.Generic; using System.Linq; using System.Security.Claims; using System.Threading.Tasks; ...
BinPackingProblem/Logic.Algorithms/Implementations/3D/Shelf/AbstractShelf3DAlgorithm.cs
Ervie/PackingProblem
0
7043788
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Logic.Domain.Containers._3D; using Logic.Domain.Containers._3D.Shelf; namespace Logic.Algorithms.Implementations._3D.Shelf { public abstract class AbstractShelf3DAlgorithm : Algorithm3D { publ...
CannyFastMath/Math.cs
Clyybber/CannyFastMath
0
7043789
<filename>CannyFastMath/Math.cs using System.Runtime; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using JetBrains.Annotations; namespace CannyFastMath { [PublicAPI] public static partial class Math { private const bool SlowMathIntegerMinMax = true; private const bool SlowMath...
src/Fixie.Tests/Internal/TestPatternTests.cs
PalmSens/fixie
551
7043790
<reponame>PalmSens/fixie<filename>src/Fixie.Tests/Internal/TestPatternTests.cs<gh_stars>100-1000 namespace Fixie.Tests.Internal { using Assertions; using Fixie.Internal; public class TestPatternTests { public void CanDetermineWhetherTestsMatchTheGivenPattern() { var childCl...
Workday.Payroll/EFW2_Year_End_Submitter_DataType.cs
matteofabbri/Workday.WebServices
18
7043791
using System; using System.CodeDom.Compiler; using System.ComponentModel; using System.Diagnostics; using System.Runtime.CompilerServices; using System.Xml.Serialization; namespace Workday.Payroll { [GeneratedCode("System.Xml", "4.6.1590.0"), DesignerCategory("code"), DebuggerStepThrough, XmlType(Namespace = "urn:com...
Code/luval.vision.sink/FieldExtractorControl.cs
marinoscar/luval-vision-marin
0
7043792
<reponame>marinoscar/luval-vision-marin using luval.vision.core; using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace luval.vision.app { public...
src/EditorFeatures/Core/Implementation/EditAndContinue/EditAndContinueErrorTypeDefinition.cs
gewarren/roslyn
67
7043793
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.ComponentModel.Composition; using System.Windows.Media; using Microsoft.VisualStudio.Text.Adornments; using Microsoft.VisualStudio.Text.Classifi...
samples/DDD/Backend.DDD.Sample/Issues/Handlers/IssueCommandHandler.cs
ledjon-behluli/GoldenEye
238
7043794
<gh_stars>100-1000 using System; using System.Threading; using System.Threading.Tasks; using AutoMapper; using Backend.DDD.Sample.Contracts.Issues.Commands; using GoldenEye.Commands; using GoldenEye.Repositories; using MediatR; namespace Backend.DDD.Sample.Issues.Handlers { internal class IssueCommandHandler ...
Quattroid/Quattroid/Quattroid/ViewModels/CalendarioViewModel.cs
ander74/Quattro
0
7043795
namespace Quattroid.ViewModels { using System; using System.Collections.ObjectModel; using Quattro.Models; using Quattro.Notify; using Quattro.Services; using Interfaces; using Xamarin.Forms; using System.Linq; using System.Windows.Input; using Microsoft.EntityFrameworkCore; using System.IO; using GalaSoft...
tests/ServiceStack.Text.Tests/JsonTests/ModelWithComplexTypesTest.cs
withbuddies/ServiceStack.Text
1
7043796
<filename>tests/ServiceStack.Text.Tests/JsonTests/ModelWithComplexTypesTest.cs using System; using System.Collections.Generic; using System.Web.Script.Serialization; using NUnit.Framework; using ServiceStack.Text.Tests.DynamicModels; namespace ServiceStack.Text.Tests.JsonTests { [TestFixture] public cl...
samples/ValidationRulesTest/ValidationRulesTest/Views/Example1.xaml.cs
aTiKhan/ValidationRulesPlugin
60
7043797
<reponame>aTiKhan/ValidationRulesPlugin<filename>samples/ValidationRulesTest/ValidationRulesTest/Views/Example1.xaml.cs<gh_stars>10-100 using System; using Xamarin.Forms; using ValidationRulesTest.ViewModels; namespace ValidationRulesTest { public partial class Example1 : ContentPage { Example1ViewMod...
Source/Macad.Interaction/Editors/Shapes/Modify/TaperPropertyPanel.xaml.cs
zhyifei/Macad3D
107
7043798
<reponame>zhyifei/Macad3D using System.Diagnostics; using System.Windows; using System.Windows.Input; using Macad.Common; using Macad.Core.Shapes; using Macad.Interaction.Panels; using Macad.Presentation; namespace Macad.Interaction.Editors.Shapes { public partial class TaperPropertyPanel : PropertyPane...
src/Modules/Administration/Domain/MeetingGroupProposals/MeetingGroupProposalDecision.cs
gerriten/modular-monolith-with-ddd
6,859
7043799
using System; using CompanyName.MyMeetings.BuildingBlocks.Domain; using CompanyName.MyMeetings.Modules.Administration.Domain.Users; namespace CompanyName.MyMeetings.Modules.Administration.Domain.MeetingGroupProposals { public class MeetingGroupProposalDecision : ValueObject { private MeetingGroupPropo...
VRT.Resume.Mvc/Extensions/SkillDtoExtensions.cs
rutkowskit/VRT.Resume
1
7043800
using System.Collections.Generic; using System.Linq; using VRT.Resume.Application.Resumes.Queries.GetResume; using VRT.Resume.Domain.Common; namespace VRT.Resume.Mvc { public static class SkillDtoExtensions { public static string GetCssClass(this SkillDto skill, string className, string re...
src/Processors/ExecutionProcessor.cs
aerotog/gauge-dotnet
23
7043801
/*---------------------------------------------------------------- * Copyright (c) ThoughtWorks, Inc. * Licensed under the Apache License, Version 2.0 * See LICENSE.txt in the project root for license information. *----------------------------------------------------------------*/ using Gauge.Messages; names...
Roll-a-Ball-AR/Assets/Scripts/Simulation/GameLogicSimulation.cs
5tf/MR_2021
0
7043802
<filename>Roll-a-Ball-AR/Assets/Scripts/Simulation/GameLogicSimulation.cs using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; namespace RollABallSimulation { public class GameLogicSimulation : MonoBehaviour { private int m_Score; [SerializeField...
src/DSoft.Messaging/ThreadControl.wpf.cs
newky2k/MessageBus
23
7043803
using System; using System.Collections.Generic; using System.Diagnostics; using System.Text; using System.Threading; using System.Windows; namespace DSoft.MessageBus { public partial class ThreadControl { static bool PlatformIsMainThread { get { return...
HoloApp/Assets/MRTK/SDK/Features/UX/Scripts/VisualThemes/ThemeEngines/InteractableThemeShaderUtils.cs
limvi-licef/VirtualLabelsAR
71
7043804
<filename>HoloApp/Assets/MRTK/SDK/Features/UX/Scripts/VisualThemes/ThemeEngines/InteractableThemeShaderUtils.cs // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. using System.Collections.Generic; using UnityEngine; ...
src/Email/EmailInterface.cs
lyzerk/ChannelX
6
7043805
<gh_stars>1-10 using Microsoft.IdentityModel.Tokens; using System.Text; using System.IdentityModel.Tokens.Jwt; using System; using System.Security.Claims; using System.Collections.Generic; using Microsoft.Extensions.Options; using System.Threading.Tasks; using ChannelX.Models.Configuration; using Microsoft.AspNetCore.H...
Assets/Develop/Scripts/Constants/TagName.cs
yamakk0033/PencilRocket
0
7043806
<filename>Assets/Develop/Scripts/Constants/TagName.cs namespace Assets.Constants { /// <summary> /// タグ名を定数で管理するクラス /// </summary> public static class TagName { public const string UNTAGGED = "Untagged"; public const string RESPAWN = "Respawn"; public const st...
src/Essensoft.AspNetCore.Payment.Alipay/Domain/StationDetailInfo.cs
lotosbin/payment
1
7043807
using System; using Newtonsoft.Json; namespace Essensoft.AspNetCore.Payment.Alipay.Domain { /// <summary> /// StationDetailInfo Data Structure. /// </summary> [Serializable] public class StationDetailInfo : AlipayObject { /// <summary> /// 站点编码 /// </summary> [J...
src/VsConsole/Console/PowerConsole/HostInfo.cs
Zaretto/NuGet
96
7043808
<gh_stars>10-100 using System; namespace NuGetConsole.Implementation.PowerConsole { /// <summary> /// Represents a host with extra info. /// </summary> class HostInfo : ObjectWithFactory<PowerConsoleWindow>, IDisposable { Lazy<IHostProvider, IHostMetadata> HostProvider { get; set; ...
src/Microsoft.AspNetCore.ResponseCompression/ResponseCompressionProvider.cs
gotoxu/BasicMiddleware
2
7043809
<reponame>gotoxu/BasicMiddleware // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Collections.Generic; using System.Linq; using Microsoft.AspNetCore.Http; using Microsoft.Ex...
NewUI/KeyGen.Designer.cs
maksim789456/PGPTool
0
7043810
<gh_stars>0 namespace NewUI { partial class KeyGen { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// ...
Assets/Scripts/UI/UI_Heart.cs
Shirai-Laboratory-2016-Kinect-EXPIXEL/Dragon_by_Kinect-EXPIXEL
0
7043811
//------------------------------------------------------------------------ // ● 使用ライブラリの宣言 //------------------------------------------------------------------------ using UnityEngine; using UnityEngine.UI; using System.Collections; //======================================================================== // ■ UI_Hea...
River.Orqa.Editor/Design/FlagEnumerationEditor.cs
stevencohn/Orqa
2
7043812
<gh_stars>1-10 namespace QWhale.Design { using QWhale.Design.Dialogs; using System; using System.ComponentModel; using System.Drawing.Design; using System.Windows.Forms.Design; public class FlagEnumerationEditor : UITypeEditor { // Methods public FlagEnumerationEditor() ...
test/Microsoft.EntityFrameworkCore.Relational.Tests/TestUtilities/FakeSensitiveDataLogger`.cs
Mattlk13/EntityFramework
1
7043813
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.Extensions.Logging; namespace Microsoft.EntityFrameworkCore.Relationa...
Views/add-venue.cshtml
LorenGlenn/band_tracker
0
7043814
<!DOCTYPE html> <html> <head> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="<KEY>" crossorigin="anonymous"> <link rel="stylesheet" href="/Content/css/styles.css"> <meta charset="utf-8"> <title>Venues</title> </head> <body> <div c...
08. Generics Exe/Exe-5. Generic Count Method Strings/Box.cs
GeorgenaGeorgieva/Advanced-CSharp
1
7043815
<reponame>GeorgenaGeorgieva/Advanced-CSharp namespace CountMethodStrings { using System; using System.Collections.Generic; public class Box<T> where T : IComparable<T> { private List<T> elements; public Box() { this.Elements = new List<T>(); } ...
TetriEngine/Networking/Delegates/Connection/UserPartialFieldUpdateDelegate.cs
BigETI/TetriEngine
1
7043816
/// <summary> /// TetriEngine networking connection namespace /// </summary> namespace TetriEngine.Networking.Connection { /// <summary> /// User partial field update delegate /// </summary> /// <param name="userID">User ID</param> /// <param name="cellPositions">Call positions</param> public d...
src/Piffnium.Comparator.ImageSharp/PixelComparatorFactory.cs
k-maru/Piffnium
0
7043817
<reponame>k-maru/Piffnium using Piffnium.Comparator.Abstraction; using System; namespace Piffnium.Comparator.ImageSharp { public class PixelComparatorFactory : IPictureComparatorFactory { public IPictureComparator CreateComparator() { return new PixelComparator(); ...
advent02b/Program.cs
grajekf/advent-of-code-2021
1
7043818
 var lines = File.ReadAllLines("inputb.txt"); var moves = lines.Select(line => Move.Parse(line)); var startPosition = (X: 0l, Depth: 0l, Aim: 0l); var endPosition = moves.Aggregate(startPosition, (p, m) => m.Execute(p)); Console.WriteLine(endPosition.X * endPosition.Depth); class Move { public Move(string di...