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/SmartSql/Middlewares/DataSourceFilterMiddleware.cs | Joye-Net/SmartSql | 1 | 7039074 | using SmartSql.Configuration;
using SmartSql.DataSource;
using System.Threading.Tasks;
namespace SmartSql.Middlewares
{
public class DataSourceFilterMiddleware : AbstractMiddleware
{
private IDataSourceFilter _dataSourceFilter;
public override void Invoke<TResult>(ExecutionContext executionCo... |
Sources/StandardRepository/StandardRepository.cs | VAndriyV/standard-repository | 0 | 7039075 | <reponame>VAndriyV/standard-repository
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Common;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
using System.Security;
using System.Text;
using System.Threading.Tasks;
using StandardRepository.Helpers;
using... |
src/Edi.Themes/ThemesManager.cs | gaelgael5/edi | 0 | 7039076 | namespace Edi.Themes
{
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Reflection;
using Edi.Themes.Definition;
using MLib.Interfaces;
using System;
using System.Windows.Media;
using System.Windows;
using Edi.Themes.Interfaces;
using ICSharpCo... |
Logging.Core/Log.cs | jmcouffin/Nina | 17 | 7039077 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Logging.Core
{
public class Log
{
public Log()
{
Timestamp = DateTime.Now;
HostName = Environment.MachineName;
}
public DateTime... |
src/GoCardless.Api/Http/Serialisation/QueryStringKeyAttribute.cs | john-hartley/GoCardless.Api | 2 | 7039078 | using System;
namespace GoCardlessApi.Http.Serialisation
{
public class QueryStringKeyAttribute : Attribute
{
public QueryStringKeyAttribute(string key)
{
Key = key;
}
public string Key { get; }
}
} |
Sources/BoxChoose/Conv_Type2IconEx.cs | daerlnaxe/DxTBoxCore | 2 | 7039079 | <reponame>daerlnaxe/DxTBoxCore<gh_stars>1-10
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Text;
using System.Windows.Data;
namespace DxTBoxCore.BoxChoose
{
/// <summary>
/// Used to get right icon link according type
/// </summary>
class Conv_Type2IconEx : I... |
Packages/com.quabug.blob/Runtime/Builder/BlobStreamExtension.cs | quabug/BLOB | 1 | 7039080 | using System;
using System.Collections.Generic;
using JetBrains.Annotations;
namespace Blob
{
public static class BlobStreamExtension
{
public static IBlobStream EnsureDataSize([NotNull] this IBlobStream stream, int size, int alignment)
{
var expectedPatchPosition = (int)Utilities.... |
UnityEngine/UIElements/PointerEventBase--T--.cs | SinsofSloth/RF5-global-metadata | 1 | 7039081 | public abstract class PointerEventBase<T> : EventBase<T>, IPointerEvent, IPointerEventInternal // TypeDefIndex: 4214
{
// Fields
[CompilerGeneratedAttribute] // RVA: 0x11F0E0 Offset: 0x11F1E1 VA: 0x11F0E0
[DebuggerBrowsableAttribute] // RVA: 0x11F0E0 Offset: 0x11F1E1 VA: 0x11F0E0
private int <pointerId>k__BackingFi... |
trunk/presenters/SourcesListPresenter/SourcesListPresenter.cs | logjointfork/logjoint | 0 | 7039082 | using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
using LogJoint.Preprocessing;
using LogJoint;
using System.Threading.Tasks;
namespace LogJoint.UI.Presenters.SourcesList
{
public class Presenter: IPresenter, IViewEvents
{
public Presenter(
ILogSourcesManager log... |
components/calendar/CalendarHeaderRenderCallback.cs | noctis0430-open-source/ant-design-blazor | 3,659 | 7039083 | <gh_stars>1000+
using System;
using Microsoft.AspNetCore.Components;
namespace AntDesign
{
public class CalendarHeaderRenderArgs
{
public DateTime Value { get; set; }
public string Type { get; set; }
public EventCallback<DateTime> OnChange { get; set; }
public EventCallback<str... |
src/MarkdownEdit/i18n/LocalizeExtension.cs | Fookdies301/Markdown-Edit | 797 | 7039084 | using System;
using System.Windows.Markup;
namespace MarkdownEdit.i18n
{
internal class LocalizeExtension : MarkupExtension
{
private readonly string _key;
public LocalizeExtension(string key) { _key = key; }
public override object ProvideValue(IServiceProvider serviceProvider) => Tr... |
samples/Maxon/Epos4/EposMaster/Settings/ScanningSettings.cs | eltra-ch/eltra-sdk | 3 | 7039085 | using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Extensions.Configuration;
namespace EposMaster.Settings
{
public class ScanningSettings
{
#region Private fields
private readonly IConfiguration _config;
private SkipScanningSettings _skipSe... |
Masb.Languages.Experimentals.PolyMethodic/Tokenizer/SpaceToken.cs | masbicudo/Experimental-Polymethods | 0 | 7039086 | namespace Masb.Languages.Experimentals.PolyMethodic
{
public class SpaceToken : Token
{
public SpaceToken(string code, int start, int length, TokenSubtype subtype)
: base(code, start, length, subtype)
{
}
public override TokenType Type
{
get { re... |
Dos.Common/EmitMapper/EmitInvoker/Delegates/DelegateInvokerFunc_1.cs | terrydash/XgxFrameWork | 0 | 7039087 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace EmitMapper.EmitInvoker
{
public abstract class DelegateInvokerFunc_1 : DelegateInvokerBase
{
public abstract object CallFunc(object param1);
}
}
|
LLT.Sense.Apps/IPOnly/IPOnlyHistory.cs | cllp/llt.sense | 1 | 7039088 | <filename>LLT.Sense.Apps/IPOnly/IPOnlyHistory.cs
using System;
using Action = ActionFramework.Action;
using Newtonsoft.Json;
using LLT.Sense.Decoder;
using ActionFramework.Helpers.Data.Interface;
using ActionFramework.Helpers.Data;
using System.Collections.Generic;
using IPOnly.Helpers;
using Newtonsoft.Json.Linq;
usi... |
src/Hearthrock.Bot/Score/RockSceneContextExtension.cs | BryanNoller/hearthrock | 278 | 7039090 | <gh_stars>100-1000
// <copyright file="RockSceneContextExtension.cs" company="https://github.com/yangyuan">
// Copyright (c) The Hearthrock Project. All rights reserved.
// </copyright>
namespace Hearthrock.Bot.Score
{
using Hearthrock.Bot.Exceptions;
using Hearthrock.Contracts;
/// <summary>
///... |
src/TeamCloud.Azure.Resources/AzureResourceException.cs | Chongruiyuan893/TeamCloud | 64 | 7039091 | /**
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*/
using System;
using System.Runtime.Serialization;
namespace TeamCloud.Azure.Resources
{
[Serializable]
public class AzureResourceException : Exception
{
public AzureResourceException() { }
public AzureR... |
CrmConnectionProjects/McTools.Xrm.Connection/Forms/PasswordRequestDialog.cs | pagex/DynamicsCrmUpdater | 3 | 7039092 | using System.Windows.Forms;
namespace McTools.Xrm.Connection.Forms
{
public partial class PasswordRequestDialog : Form
{
private readonly ConnectionDetail _detail;
public PasswordRequestDialog(string passwordUsageDescription, ConnectionDetail detail, string item)
{
_detail... |
src/Snooze.Testing/Automocking/MoqContrib.AutoMock/IMockGenerator.cs | nice-digital/Snooze | 0 | 7039093 | <reponame>nice-digital/Snooze<gh_stars>0
using System;
namespace Snooze.AutoMock.Castle.MoqContrib.AutoMock
{
/// <summary>
/// Creates generic mocks without using compile-time generic parameters
/// </summary>
public interface IMockGenerator
{
/// <summary>
/// Generate ... |
src/Commands/Web/SetWebPermission.cs | milanholemans/powershell | 0 | 7039094 | <filename>src/Commands/Web/SetWebPermission.cs
using System;
using System.Linq;
using System.Management.Automation;
using Microsoft.SharePoint.Client;
using PnP.PowerShell.Commands.Base.PipeBinds;
using PnP.PowerShell.Commands.Extensions;
namespace PnP.PowerShell.Commands
{
[Cmdlet(VerbsCommon.Set, "PnPWebPermis... |
UniJSON35/UniJSONPRofiling/Program.cs | Haresaku/UniVRM | 2 | 7039096 | <reponame>Haresaku/UniVRM<filename>UniJSON35/UniJSONPRofiling/Program.cs
using System.IO;
using System.Text;
namespace UniJSONPRofiling
{
class Program
{
static void Main(string[] args)
{
var json = File.ReadAllText(args[0], Encoding.UTF8);
var parsed = UniJSON.JsonPar... |
modules/AWSPowerShell/Cmdlets/CodeCommit/Basic/Write-CCFile-Cmdlet.cs | alexandair/aws-tools-for-powershell | 0 | 7039097 | <reponame>alexandair/aws-tools-for-powershell
/*******************************************************************************
* Copyright 2012-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use
* this file except in comp... |
PowerCalc/WPF.3DToolkit/Sphere3D.cs | T-Alex/PowerCalc.Desktop | 0 | 7039098 | <filename>PowerCalc/WPF.3DToolkit/Sphere3D.cs
using System;
using System.Windows.Media;
using System.Windows.Media.Media3D;
namespace TAlex.WPF3DToolkit
{
public class Sphere3D
{
#region Fields
protected int n = 10;
protected double r = 20;
#endregion
#region Proper... |
src/WInterop.Desktop/Storage/Native/ENCRYPTION_CERTIFICATE_HASH.cs | kant2002/WInterop | 1 | 7039099 | <filename>src/WInterop.Desktop/Storage/Native/ENCRYPTION_CERTIFICATE_HASH.cs
// Copyright (c) <NAME>. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.Runtime.InteropServices;
using WInterop.Security;
namespace WInterop.Storage.Na... |
src/Coherence.Core/Net/Messaging/Impl/NamedCache/NamedCacheFactory.cs | vasac/coherence-dotnet-extend-client | 9 | 7039100 | <reponame>vasac/coherence-dotnet-extend-client<gh_stars>1-10
/*
* Copyright (c) 2000, 2020, Oracle and/or its affiliates.
*
* Licensed under the Universal Permissive License v 1.0 as shown at
* http://oss.oracle.com/licenses/upl.
*/
using System;
namespace Tangosol.Net.Messaging.Impl.NamedCache
{
/// <summary... |
Common/Base/DomainModelBase.cs | nikneem/parcheesi | 0 | 7039101 | <reponame>nikneem/parcheesi
using HexMaster.Parcheesi.Common.Infrastructure.Enums;
namespace HexMaster.Parcheesi.Common.Base
{
public abstract class DomainModelBase <TId> : TrackingStateBase
{
public TId Id { get; set; }
protected DomainModelBase() :
base(TrackingState.Added)
... |
modeling_tools/MeshVoxelBooleanTool.cs | Jmerk523/gsTools | 0 | 7039102 | <gh_stars>0
// Copyright (c) <NAME> (<EMAIL>) - All Rights Reserved
// Unauthorized copying of this file, via any medium is strictly prohibited. Proprietary and confidential.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using g3;
using f3;
namespace gs
{
public class MeshVo... |
ExplosivesDude/Game.cs | rumkugel13/ExplosivesDude_WPF | 0 | 7039103 | <filename>ExplosivesDude/Game.cs
namespace ExplosivesDude
{
using System;
using System.Collections.Generic;
using ExplosivesDude.Networking;
public class Game
{
private readonly int gameSizeX, gameSizeY, baseDamage, minDamage;
private readonly int maxRandom, wallResistance;
... |
LooseLeaf.DataAccess/Wishlist.cs | 2102-feb08-net/team1-p2 | 0 | 7039104 | using System;
using System.Collections.Generic;
#nullable disable
namespace LooseLeaf.DataAccess
{
public partial class Wishlist
{
public int Id { get; set; }
public int UserId { get; set; }
public int BookId { get; set; }
public virtual Book Book { get; set; }
public... |
AgoRapide/API/BasicAuthenticationAttribute.cs | AgoRapide/AgoRapide | 3 | 7039105 | <reponame>AgoRapide/AgoRapide
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using AgoRapide.Core;
namespace AgoRapide.API {
/// <summary>
/// Basic Authentication is used in AgoRapide for ease-of-getting-started purposes only.
... |
Content.Shared/Tabletop/TabletopItemVisuals.cs | Phantom-Lily/space-station-14 | 953 | 7039106 | <gh_stars>100-1000
using System;
using Robust.Shared.Serialization;
namespace Content.Shared.Tabletop
{
[Serializable, NetSerializable]
public enum TabletopItemVisuals : byte
{
Scale,
DrawDepth
}
}
|
MyLibrary/MyLibrary/Views/Books/BooksEditForm.cshtml | alinawieczorek/my-library | 0 | 7039107 | @model MyLibrary.DBContext.Book
<div class="form-group">
@Html.LabelFor(model => model.Title, htmlAttributes: new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.EditorFor(model => model.Title, new { htmlAttributes = new { @class = "form-control" } ... |
Templates/C#-Full/Winterleaf.Demo.Full/Models.Base/GuiBitmapButtonCtrl_Base.cs | RichardRanft/OmniEngine.Net | 1 | 7039108 | <reponame>RichardRanft/OmniEngine.Net<gh_stars>1-10
#region
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WinterLeaf.Engine;
using WinterLeaf.Engine.Classes;
using WinterLeaf.Engine.Containers;
using WinterLeaf.Engine.Enums;
using System.ComponentModel;
usin... |
src/LagoVista.Client.MQTT.UWP/Utility/QueueExtension.cs | LagoVista/Simulator | 0 | 7039109 | /*
Copyright (c) 2013, 2014 <NAME>
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v1.0
and Eclipse Distribution License v1.0 which accompany this distribution.
The Eclipse Public License is available at
http://www.eclipse.org/lega... |
src/Pandorax.Recaptcha/ServiceCollectionExtensions.cs | Pandorax100/Recaptcha | 0 | 7039110 | using System;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
namespace Pandorax.Recaptcha
{
/// <summary>
/// Extension methods for adding the reCAPTCHA services to the DI container.
/// </summary>
public static class ServiceCollectionExtensions
{
... |
src/SFA.DAS.QnA.Application/Commands/WorkflowSections/CreateWorkflowSection/CreateWorkflowSectionRequest.cs | uk-gov-mirror/SkillsFundingAgency.das-qna-api | 4 | 7039111 | <filename>src/SFA.DAS.QnA.Application/Commands/WorkflowSections/CreateWorkflowSection/CreateWorkflowSectionRequest.cs
using System;
using MediatR;
using SFA.DAS.QnA.Api.Types;
using SFA.DAS.QnA.Data.Entities;
namespace SFA.DAS.QnA.Application.Commands.WorkflowSections.CreateWorkflowSection
{
public class CreateWor... |
sdk/dotnet/Lambda/Inputs/FunctionEnvironmentArgs.cs | AaronFriel/pulumi-aws-native | 29 | 7039112 | <reponame>AaronFriel/pulumi-aws-native<gh_stars>10-100
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Ta... |
Tactical RPG/Assets/Scripts/BarScript.cs | leviwp48/Final-Project-Mobile-Apps | 0 | 7039113 | <filename>Tactical RPG/Assets/Scripts/BarScript.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class BarScript : MonoBehaviour
{
private float fillAmount;
[SerializeField]
private float lerpSpeed;
[SerializeField]
private Image cont... |
FoxKit/Assets/FoxKit/Utils/EndianessBitConverter.cs | Joey35233/FoxKit-3 | 3 | 7039114 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FoxKit.Utils
{
public static class EndianessBitConverter
{
private static byte[] Reverse(byte[] b)
{
Array.Reverse(b);
return b;
}
... |
src/CommunityToolkit.Maui.Markup/ElementExtensions.cs | ScriptBox99/Maui.Markup | 0 | 7039115 | <gh_stars>0
using System;
using Microsoft.Maui;
using Microsoft.Maui.Controls;
using Microsoft.Maui.Controls.Internals;
using Microsoft.Maui.Graphics;
namespace CommunityToolkit.Maui.Markup;
/// <summary>
/// Extension Methods for Elements
/// </summary>
public static class ElementExtensions
{
/// <summary>
/// S... |
src/mscorlib/src/System/UnhandledExceptionEventHandler.cs | CyberSys/coreclr-mono | 277 | 7039116 | <reponame>CyberSys/coreclr-mono
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace System {
using System;
#if FEATURE_CORECLR
[System.Security.SecurityCritical] // auto-generated
#endif
... |
SystemExt/Network/TCPServerClient.cs | SaberUK/system-extensions | 0 | 7039117 | /**
* System Extensions
*
* Copyright (C) 2014-2017 Peter "SaberUK" Powell <<EMAIL>>
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0... |
src/Microsoft.FeatureManagement.Service/Implementations/AudienceService.cs | Tjayojo/FeatureManagement | 0 | 7039118 | using System;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.FeatureManagement.Core.DTO;
using Microsoft.FeatureManagement.Data.Repositories.Interfaces;
using Microsoft.FeatureManagement.Service.Interfaces;
namespace Microsoft.FeatureManagement.Service.Implementations
{
public class Audience... |
src/Lachain.Networking/Hub/HubConnector.cs | LATOKEN/lachain | 14 | 7039119 | <gh_stars>10-100
using System;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Threading;
using Lachain.Logger;
using Lachain.Utility.Utils;
namespace Lachain.Networking.Hub
{
public class HubConnector : IDisposable
{
private static readonly ILogger<HubConnector> Logger = LoggerF... |
PracticePlugin/Plugin.cs | xyonico/PracticePlugin | 22 | 7039120 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using IllusionPlugin;
using TMPro;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
using Zenject;
using Object = UnityEngine.Object;
namespace PracticePlugin
{
public class Plugin : IPlugin
{
pu... |
WhatSport.Infrastructure/Seed/ScoreConfirmationSeeder.cs | SergioMorenoFernandez/WhatSport | 0 | 7039121 | <gh_stars>0
using Microsoft.EntityFrameworkCore;
using System.Collections.Generic;
using WhatSport.Domain.Models;
namespace WhatSport.Infrastructure.Seed
{
public static class ScoreConfirmationSeeder
{
public static void Seed(ModelBuilder modelBuilder)
{
var cities = new List<Score... |
forum-app-demo/Views/Profile/Detail.cshtml | rafysanchez/dotnet-forum-starter | 37 | 7039122 | <reponame>rafysanchez/dotnet-forum-starter<filename>forum-app-demo/Views/Profile/Detail.cshtml
@using Microsoft.AspNetCore.Identity
@model Forum.Web.Models.ApplicationUser.ProfileModel
@inject UserManager<Forum.Data.Models.ApplicationUser> UserManager
@{
//var user = UserManager.FindByNameAsync(User.Identity.Name);
... |
Legato/AimpObserver.cs | Legato-Dev/Legato | 6 | 7039123 | using System;
using Legato.Entities;
using Legato.Interop.AimpRemote;
using Legato.Interop.AimpRemote.Entities;
using Legato.Interop.AimpRemote.Enum;
using Legato.Interop.Win32.Enum;
namespace Legato
{
/// <summary>
/// AIMPからのイベント受信をサポートします
/// </summary>
public class AimpObserver : IDisposable
{
private Syst... |
08.TextFiles/13.CountWords/CountWords.cs | Maskln/CSharp-Part-2 | 0 | 7039124 | /*Problem 13. Count words
Write a program that reads a list of words from the file words.txt and finds how many times each of the words is contained in another file test.txt.
The result should be written in the file result.txt and the words should be sorted by the number of their occurrences in descending order.
Hand... |
GenHTTP.Gateway.Tests/EnvironmentTests.cs | Kaliumhexacyanoferrat/GenHTTP.Gateway | 7 | 7039125 | <filename>GenHTTP.Gateway.Tests/EnvironmentTests.cs
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace GenHTTP.Gateway.Tests
{
[TestClass]
public class EnvironmentTests
{
[TestMethod]
public void TestDockerWindows()
{
var environment = Environment.DockerWin... |
Sifon/Forms/MainForm/Main.cs | ampach/Sifon | 0 | 7039126 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using Sifon.Abstractions.Events;
using Sifon.Abstractions.Model.BackupRestore;
using Sifon.Forms.Containers;
using Sifon.Code.Statics;
using Sifon.Forms.Base;
using Sifon.Forms.Other;
using Sifon.Forms.Updates;
namespace Sif... |
Pidgin/Parser.Before.cs | getkks/Pidgin | 1 | 7039127 | using System;
namespace Pidgin;
public abstract partial class Parser<TToken, T> {
/// <summary>
/// Creates a parser that applies the current parser followed by the specified parser.
/// The resulting parser returns the result of the current parser, ignoring the result of the second parser.
/// </summary>
/// <... |
src/core/inc.core/inc.protocols.modbus/WriteMultipleCommand.cs | wangyanjun/incore | 1 | 7039128 | <reponame>wangyanjun/incore
using inc.core;
using System;
namespace inc.protocols.modbus
{
/// <summary>
/// Class represent write command for modbus
/// </summary>
public class WriteMultipleCommand : IEncoder
{
/// <summary>
/// Get or set function code.
/// </summary>
... |
Editor/Assets/Script/Misc/Array2DTool.cs | wachel/block | 0 | 7039129 | using UnityEngine;
using System.Collections;
public class Array2DTool
{
public static void SetOne<T>(T[,] blocks, int x, int y, T block)
{
blocks[x, y] = block;
}
public static void SetRange<T>(T[,] blocks, int x, int y, int w, int h, T block)
{
for (int i = 0; i < w; i++) {
... |
Server/backend/Startup.cs | aslakjohansen/ScalableTeachingInSTEM-VM-Deployment | 1 | 7039130 | <reponame>aslakjohansen/ScalableTeachingInSTEM-VM-Deployment<gh_stars>1-10
using Microsoft.AspNetCore.Authentication.JwtBearer;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInje... |
CsLisp/CsLispInterpreter/LispStopDebuggerException.cs | mneuroth/fuel-lang | 1 | 7039131 | /*
* FUEL(isp) is a fast usable embeddable lisp interpreter.
*
* Copyright (c) 2016 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without l... |
SpaceCore.cs | MercuriusXeno/SpaceCore_SDV | 0 | 7039132 | <gh_stars>0
using Harmony;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using SpaceCore.Events;
using SpaceCore.Overrides;
using StardewModdingAPI;
using StardewModdingAPI.Events;
using StardewValley;
using StardewValley.Locations;
using StardewValley.Network;
using StardewValley.TerrainFeatu... |
src/Microscope.Api/Configurations/CorsConfiguration.cs | bhtz/datastack | 5 | 7039133 | using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
namespace Microscope.Configurations
{
public static class CorsConfiguration
{
public static IServiceCollection AddCorsConfiguration(this IServiceCollection services, IConfiguration configuration)
{
... |
Source/Core.Web.NHibernate/Services/Permissions/NHibernateEntityTypeSevice.cs | coreframework/Core-Framework | 1 | 7039134 | <filename>Source/Core.Web.NHibernate/Services/Permissions/NHibernateEntityTypeSevice.cs
using System;
using System.Linq;
using Castle.Facilities.NHibernateIntegration;
using Core.Framework.Permissions.Helpers;
using Core.Web.NHibernate.Contracts.Permissions;
using Core.Web.NHibernate.Models.Permissions;
using Framewor... |
src/Services/Order/Order.Infrastructure/GrpcServices/PaymentService.cs | ilkerogutcu/microservices-ecommerce | 1 | 7039135 | <reponame>ilkerogutcu/microservices-ecommerce
using System;
using System.Threading.Tasks;
using Newtonsoft.Json;
using Order.Application.Interfaces.Services;
using Payment.Grpc.Protos;
using Serilog;
namespace Order.Infrastructure.GrpcServices
{
public class PaymentService : IPaymentService
{
private ... |
Source/Eto.Test/Eto.Test.Mac/AppDelegate.cs | M1C/Eto | 2 | 7039136 | using System;
using MonoMac.AppKit;
using MonoMac.Foundation;
using Eto.Forms;
namespace Eto.Test.Mac
{
public partial class AppDelegate : Eto.Platform.Mac.AppDelegate
{
class MyController : NSWindowController
{
public override void AwakeFromNib ()
{
base.AwakeFromNib ();
}
}
// do any OS ... |
apis/Google.Identity.AccessContextManager.Type/Google.Identity.AccessContextManager.Type/DeviceResources.cs | q-logic/google-cloud-dotnet | 0 | 7039137 | // <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/identity/accesscontextmanager/type/device_resources.proto
// </auto-generated>
#pragma warning disable 1591, 0612, 3021
#region Designer generated code
using pb = global::Google.Protobuf;
using pbc = global::Googl... |
Source/Kernel/Projections/Engine/Pipelines/ProjectionPipelineFactory.cs | cratis/cratis | 4 | 7039138 | // Copyright (c) <NAME>. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using Aksio.Cratis.Changes;
using Aksio.Cratis.Events.Projections.Changes;
using Aksio.Cratis.Events.Projections.Definitions;
using Aksio.Cratis.Events.Store;
using Micros... |
Models/Restaurant.cs | MMooKow/Revature-Project1 | 0 | 7039139 | using System.Collections.Generic;
using System.Dynamic;
namespace Models
{
public class Restaurant
{
public Restaurant(){}
public Restaurant(string name)
{
this.Name = name;
}
public Restaurant(string name, string zipcode, string street, string cuisine) : th... |
IoTClient/Clients/PLC/OmronFinsClient.cs | JeremyWu917/IoTClient | 1 | 7039140 | <reponame>JeremyWu917/IoTClient
using IoTClient.Clients.PLC.Models;
using IoTClient.Common.Helpers;
using IoTClient.Enums;
using IoTClient.Interfaces;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Sockets;
namespace IoTClient.Clients.PLC
{
/// <summary>
... |
RdfDemo/SemanticsDemos.cs | capybara1/RdfDemo | 3 | 7039141 | <gh_stars>1-10
using Microsoft.VisualStudio.TestTools.UnitTesting;
using RDFSharp.Semantics;
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
namespace RdfDemo
{
[TestClass]
public class SemanticsDemos
{
[TestInitialize]
public void TestInitialize()
... |
Requistador_Sol/Requistador.WebApi/AppConfiguration/Settings/AppSettings.Getters.cs | qfilip/requistador | 1 | 7039142 | <reponame>qfilip/requistador<gh_stars>1-10
using Microsoft.IdentityModel.Tokens;
using System.Text;
namespace Requistador.WebApi.AppConfiguration.Settings
{
public sealed partial class AppSettings
{
public static SymmetricSecurityKey GetAppKey() =>
new SymmetricSecurityKey(Encoding.UTF8.Ge... |
Laboration 2 Polymorfi/Laboration 2 Polymorfi/Product.cs | superfroggman/PRRPRR02 | 0 | 7039143 | <gh_stars>0
using System;
using System.Collections.Generic;
using System.Text;
namespace Laboration_2_Polymorfi
{
class Product : ICloneable
{
public string _name;
public int _cost;
public int _amount = 0;
public object Clone()
{
return this.MemberwiseClone... |
ActionButton/Plugin/DelayAction.cs | majkello12/Macro-Deck | 82 | 7039144 | using SuchByte.MacroDeck.GUI;
using SuchByte.MacroDeck.GUI.CustomControls;
using SuchByte.MacroDeck.Plugins;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
namespace SuchByte.MacroDeck.ActionButton.Plugin
{
public class DelayAction : PluginAction
{
public ov... |
source/NBug_net35/Core/UI/Developer/InternalLogViewer.cs | internetsimple/Bulk-Crap-Uninstaller | 2,357 | 7039145 | <filename>source/NBug_net35/Core/UI/Developer/InternalLogViewer.cs
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="InternalLogViewer.cs" company="NBug Project">
// Copyright (c) 2011 - 2013 <NAME>. Licensed under MIT license.... |
src/Geb.Image/UnmanagedImage/ImageFloat.cs | xiaotie/GebImage | 48 | 7039146 | /*************************************************************************
* Copyright (c) 2012 <NAME>(<EMAIL>; geblab, www.geblab.com)
************************************************************************/
using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
namespa... |
source/CsQuery/Web/AsyncWebRequest.cs | yanglr/CsQuery | 791 | 7039147 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using System.IO;
using System.Threading;
using HttpWebAdapters;
namespace CsQuery.Web
{
/// <summary>
/// A class encapsulating the functionality needed to make requests of remote web servers, and
/// r... |
PhotoArtSystem/Web/PhotoArtSystem.Web/Areas/Administration/Controllers/PhotocourseSetupController.cs | Borayvor/ASP.NET-MVC-CourseProject-2017 | 0 | 7039148 | <reponame>Borayvor/ASP.NET-MVC-CourseProject-2017<filename>PhotoArtSystem/Web/PhotoArtSystem.Web/Areas/Administration/Controllers/PhotocourseSetupController.cs
namespace PhotoArtSystem.Web.Areas.Administration.Controllers
{
using System.Collections.Generic;
using System.Threading.Tasks;
using System.Web.Mv... |
EFRepository.cs | lincolnpires/fluffy-umbrella | 0 | 7039149 | using System;
using System.Data.Entity;
using System.Linq;
using System.Linq.Expressions;
using System.Threading.Tasks;
namespace Source
{
public class EFRepository<T> : IDisposable, IEFRepository<T> where T : Entity
{
protected readonly DbContext dbContext;
private bool disposed;
publ... |
src/Thrift.Net.Tests/Compilation/Symbols/Document/DocumentTests.cs | Roarster/Thrift.Net | 0 | 7039150 | <gh_stars>0
namespace Thrift.Net.Tests.Compilation.Symbols.Document
{
using NSubstitute;
using Thrift.Net.Compilation.Binding;
using Thrift.Net.Compilation.Symbols;
using Thrift.Net.Compilation.Symbols.Builders;
using Thrift.Net.Tests.Utility;
using static Thrift.Net.Antlr.ThriftParser;
pub... |
source/Handlebars/Runtime/Ref.cs | asdflanger/Handlebars.Net | 215 | 7039151 | <gh_stars>100-1000
using System.Runtime.CompilerServices;
namespace HandlebarsDotNet.Runtime
{
public class Ref<T> where T: class
{
private readonly Ref<T> _parent;
private T _value;
public T Value
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get... |
Core/Util/struct/Indefinite.cs | lizs/Socket4Net | 10 | 7039153 | using System;
using System.Collections.Generic;
namespace socket4net
{
/// <summary>
/// 不确定个数
/// </summary>
public class Indefinite<T> : IParsableFromString
{
public Indefinite(string str)
{
ParseFromString(str);
}
private List<T> _members = new List<... |
CSharp/Contests/Typical90/L5/Q013.cs | sakapon/AtCoder-Contests | 0 | 7039154 | using System;
using System.Collections.Generic;
using System.Linq;
using Bang.Graphs.Int.Spp;
class Q013
{
static int[] Read() => Array.ConvertAll(Console.ReadLine().Split(), int.Parse);
static (int, int) Read2() { var a = Read(); return (a[0], a[1]); }
static void Main() => Console.WriteLine(Solve());
... |
TokenAdministrationApi.Tests/V1/E2ETests/UpdateTokenValidityTest.cs | LBHackney-IT/token-administration-api | 0 | 7039155 | using System;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
using AutoFixture;
using FluentAssertions;
using NUnit.Framework;
using TokenAdministrationApi.V1.Infrastructure;
namespace TokenAdministrationApi.Tests.V1.E2ETests
{
public class UpdateTokenValidityTest : IntegrationTests<Startu... |
Plug-n-Play-Sample/MasterPluginSample.Web/Global.asax.cs | SequencingDOTcom/RTP-API-NuGet-Master-Plugin-.NET-C | 0 | 7039156 | using System;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
using System.Web.Http;
using log4net;
using log4net.Config;
using Sequencing.MasterPluginSample.Web.Controllers;
namespace Sequencing.MasterPluginSample.Web
{
public class Global : HttpApplication
{
void Application_Start(... |
examples/targets/Configuration API/ColoredConsole/Word Highlighting/Example.cs | Giorgi/NLog | 5,291 | 7039157 | <reponame>Giorgi/NLog
using NLog;
using NLog.Win32.Targets;
class Example
{
static void Main(string[] args)
{
ColoredConsoleTarget target = new ColoredConsoleTarget();
target.Layout = "${date:format=HH\\:MM\\:ss} ${logger} ${message}";
target.WordHighlightingRules.Add(
n... |
source/Core/Monuments.Manager.Application/Monuments/Extensions/DtoExtensions.cs | dpozimski/monuments-manager | 0 | 7039158 | <gh_stars>0
using Monuments.Manager.Application.Infrastructure;
using Monuments.Manager.Application.Monuments.Models;
using Monuments.Manager.Application.Pictures.Extensions;
using Monuments.Manager.Application.Pictures.Models;
using Monuments.Manager.Domain.Entities;
using System.Collections.Generic;
using System.Lin... |
src/ESFA.DC.ILR.ValidationService.Rules/Derived/DerivedData_24Rule.cs | SkillsFundingAgency/DC-ILR-1819-ValidationService | 2 | 7039159 | <filename>src/ESFA.DC.ILR.ValidationService.Rules/Derived/DerivedData_24Rule.cs
/*
* CME 2018-10-09
* this derived date rule is not used as it is only used in emp stat 14
* and this rule effectively embodies the requirements of emp stat 14
* so it serves no purpose
using ESFA.DC.ILR.Model.Interface;
namespace ES... |
AoE2.netDesktop/FormControler/CtrlMain.cs | teshiba/AoE2.netDesktop | 1 | 7039160 | <gh_stars>1-10
namespace AoE2NetDesktop.Form
{
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Drawing;
using System.Linq;
using System.Threading.Tasks;
using LibAoE2net;
/// <summary>
/// FormMain controler.
/// </summary>
... |
Util/FileReader.cs | immi5556/Immanuel.Terraform | 0 | 7039161 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Immanuel.Terraform.Util
{
public class FileReader
{
public static string ReadLamda()
{
return System.IO.File.ReadAllText(System.IO.Path.Combine(System.Environment.CurrentDirec... |
lab3/FIFO-priority/TaskPlanner/Planner.cs | Mykhailo1257Kholmohorov/OS_labs | 0 | 7039162 | <reponame>Mykhailo1257Kholmohorov/OS_labs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TaskPlanner
{
public class Planner
{
public FIFOPriorityContainer Container { get; }
public Planner(FIFOPriorityContainer con... |
Arrowgene.Networking/Tcp/Consumer/EventConsumption/ReceivedPacketEventArgs.cs | sebastian-heinz/Arrowgene.Networking | 0 | 7039163 | using System;
namespace Arrowgene.Networking.Tcp.Consumer.EventConsumption
{
public class ReceivedPacketEventArgs : EventArgs
{
public ReceivedPacketEventArgs(ITcpSocket socket, byte[] data)
{
Socket = socket;
Data = data;
}
public ITcpSocket Socket { g... |
ARGame2017/Assets/MyDatas/Scripts/DialogueHint.cs | irfanf/TridentAR | 0 | 7039164 | <gh_stars>0
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class DialogueHint : MonoBehaviour {
public GameObject textBox;
public TextAsset textFile;
public string[] textLines;
public Text text;
public int currentLine;
public int ... |
apps/WebApp/Pages/Components/Day/Default.cshtml.cs | bfren/mileage | 0 | 7039165 | // Mileage Tracker Apps
// Copyright (c) bfren - licensed under https://mit.bfren.dev/2022
using Microsoft.AspNetCore.Mvc;
using Mileage.Persistence.Common.StrongIds;
namespace Mileage.WebApp.Pages.Components.Day;
public sealed record class DayModel(string? UpdateUrl, DateTime Day, JourneyId JourneyId);
public seal... |
samples/Console-scripting/Corona-COVID-19/Data/github.com-CSSEGISandData-COVID-19/build.cake | Samples-Playgrounds/Samples.MachineLearning | 0 | 7039166 | using System.Data;
/*
https://github.com/CSSEGISandData/COVID-19
*/
using System;
Information("github.com-CSSEGISandData-COVID-19/build.cake");
string url_root = "https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master";
string date = "MM-dd-yyyy";
string date_format = "MM-dd-yyyy";
//--------------------... |
eWAY.Rapid/Internals/Models/ShippingAddress.cs | CareerHub/eway-rapid-net | 9 | 7039167 | using eWAY.Rapid.Enums;
namespace eWAY.Rapid.Internals.Models
{
internal class ShippingAddress
{
public string ShippingMethod { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public string Street1 { get; set; }
public string Stree... |
src/Afas.BazelDotnet.Project/BazelDotnet.Project/CsProjectFileDefinition.cs | AFASResearch/bazel-dotnet | 9 | 7039168 | <gh_stars>1-10
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Xml.Linq;
namespace Afas.BazelDotnet.Project
{
internal class CsProjectFileDefinition
{
private XDocument _document;
public CsProjectFileDefinition(string projectFilePath, string slnBasePath)
... |
Week_06-Associations-many-to-many, and self/AssocSelf/AssocSelf/Views/Employees/EditDirectReports.cshtml | salisafi/Salimeh-Safi-INT-Works | 1 | 7039169 | @model AssocSelf.Controllers.EmployeeEditDirectReportsForm
@{
ViewBag.Title = "Edit Direct Reports";
}
<h2>Edit direct reports for @Model.FullName</h2>
@using (Html.BeginForm())
{
@Html.AntiForgeryToken()
<div class="form-horizontal">
<h4>Select the direct reports, and click the Save butto... |
CuentasClaras/Services/ClassificationService.cs | idatosabiertos/compras-uy | 1 | 7039170 | using CuentasClaras.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace CuentasClaras.Services
{
public class ClassificationService
{
public CuentasClarasContext Db { get; }
public ClassificationService(CuentasClarasContext db)
... |
Design Patterns/Behavioral Patterns Homework/BehavioralPatternsExamples/TemplateMethodExample/Infrastructure/AccommodationType.cs | MilStancheva/Telerik-Academy-Projects | 1 | 7039171 | <filename>Design Patterns/Behavioral Patterns Homework/BehavioralPatternsExamples/TemplateMethodExample/Infrastructure/AccommodationType.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TemplateMethodExampleTravelAgency.Infrastructure
{
... |
Content.PongWall/GameObjects/PaddleComponent.cs | komunre/PongWall | 0 | 7039172 | <reponame>komunre/PongWall<gh_stars>0
using Robust.Shared.GameObjects;
using Robust.Shared.Input;
using Robust.Shared.Input.Binding;
using Robust.Shared.Players;
using Robust.Shared.Log;
using System;
namespace Content.PongWall.GameObjects
{
[RegisterComponent]
public class PaddleComponent : Component {
... |
Core/Field/JSM/Instructions/LASTIN.cs | MattLisson/OpenVIII | 0 | 7039173 | using System;
namespace OpenVIII.Fields.Scripts.Instructions
{
/// <summary>
/// <para>Last dungeon in</para>
/// <para>Disables features of the game pertaining to the last dungeon's mechanic (items, saving, etc)?</para>
/// <para>test6, ffbrdg1</para>
/// </summary>
/// <see cref="http://wiki... |
HairSalon/Views/Stylists/Create.cshtml | patrick-verbs/ClairesSalon.Solution | 0 | 7039175 | @{
Layout = "_Layout";
}
@model HairSalon.Models.Stylist
<h4>Add a new hair stylist</h4>
@using (Html.BeginForm())
{
@Html.LabelFor(model => model.NameFirst)
@Html.TextBoxFor(model => model.NameFirst)
@Html.LabelFor(model => model.NameLast)
@Html.TextBoxFor(model => model.NameLast)
<br>
@Html.LabelFor(... |
SolidCP/Sources/ACMESharp/ACMESharp/ACMESharp.Providers.CloudFlare/CloudFlareHelper.cs | NAGeorge/SolidCP-fork | 2 | 7039176 | <gh_stars>1-10
using ACMESharp.Providers.CloudFlare.Results;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
namespace ACMESharp.Providers.CloudFlare
{
/// <summary>
/// Helper class to interface with the CloudFlare API endpoint.
/// </summa... |
mko.Algo/FormalLanguages/NaLisp/Core/IValueProp.cs | mk-prg-net/mk-prg-net.lib | 0 | 7039177 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace mko.Algo.FormalLanguages.NaLisp.Core
{
public interface IValueProp<T>
{
T Value { get; set; }
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.