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/Orchard.Web/Modules/Orchard.MediaPicker/Tokens/FieldTokens.cs | jdages/AndrewsHouse | 3 | 7043083 | using System;
using Orchard.Events;
using Orchard.Localization;
using Orchard.MediaPicker.Fields;
namespace Orchard.MediaPicker.Tokens {
public interface ITokenProvider : IEventHandler {
void Describe(dynamic context);
void Evaluate(dynamic context);
}
public class FieldTokens ... |
CoreCourse.MvcForms/ViewModels/RegistrationViewModel.cs | howest-gp-wba/cu-aspnetcore-mvcforms | 0 | 7043084 | <gh_stars>0
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
namespace CoreCourse.MvcForms.ViewModels
{
public class RegistrationViewModel
{
[Display(Name = "Username")]
[Required(ErrorMessage = "Pleas... |
Source/Infrastructure/EtAlii.Ubigia.Infrastructure.Transport/ISystemStorageConnection.cs | vrenken/EtAlii.Ubigia | 2 | 7043085 | // Copyright (c) <NAME>. All rights reserved. See the license on https://github.com/vrenken/EtAlii.Ubigia
namespace EtAlii.Ubigia.Infrastructure.Transport
{
using EtAlii.Ubigia.Api.Transport;
public interface ISystemStorageConnection : IStorageConnection<SystemStorageTransport>
{
}
} |
EIDSS v5/eidss.webclient/Views/Person/Details.cshtml | EIDSS/EIDSS-Legacy | 2 | 7043086 | <gh_stars>1-10
@model eidss.model.Schema.Patient
@{
ViewBag.Title = "Details";
Layout = "~/Views/Shared/_DetailsLayout.cshtml";
}
@using eidss.webclient.Utils;
@using eidss.webclient.Areas.Patient;
<script src="@Url.Content("~/Scripts/Address/CommonScript.js")" type="text/javascript"></script>
<script ... |
Advanced.Algorithms/DataStructures/Tree/Interfaces.cs | tajwal/Advanced-Algorithms | 2 | 7043087 | using System;
namespace Advanced.Algorithms.DataStructures.Tree
{
public interface IBSTNode<T> where T : IComparable
{
IBSTNode<T> Left { get; }
IBSTNode<T> Right { get; }
T Value { get; }
}
}
|
src/Dotc.Wpf/Controls/XmlEditor/Formatting/XmlFormattingStrategy.cs | bgiot/mqexplorerplus | 6 | 7043089 |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Text;
using System.Xml;
using ICSharpCode.AvalonEdit;
using ICSharpCode.AvalonEdit.Document;
namespace Dotc.Wpf.Controls.XmlEditor.Formatting
{
/// <summary>
/// This class currently inserts the closing tags ... |
Assets/Demo/Scripts/UI/UIScoreboard.cs | ntratcliff/rgd-event-based-architecture | 0 | 7043090 | <filename>Assets/Demo/Scripts/UI/UIScoreboard.cs
using TMPro;
using UnityEngine;
namespace Demo.UI
{
/// <summary>
/// Displays the player's current score
/// </summary>
[RequireComponent(typeof(TMP_Text))]
public class UIScoreboard : MonoBehaviour
{
private TMP_Text text;
priv... |
CryptoFolio/CryptoFolio/Models/DataPoint.cs | Ryan-Gordon/Mobile-App-Dev-Project-Yr-4 | 0 | 7043091 | using System;
using System.Collections.ObjectModel;
namespace CryptoFolio.Models
{
public class DataPoint
{
public double Value { get; set; }
public string Category { get; set; }
}
}
|
ImageViewer/InteractiveGraphics/ControlPoint.cs | econmed/ImageServer20 | 1 | 7043092 | #region License
// Copyright (c) 2009, ClearCanvas Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification,
// are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright not... |
current/ReactWindows/ReactNative.Shared/UIManager/ThicknessManager.cs | tom-un/react-native-windows | 5 | 7043093 | <reponame>tom-un/react-native-windows
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using System;
using Facebook.Yoga;
#if WINDOWS_UWP
using Windows.UI.Xaml;
#else
using System.Windows;
#endif
namespace ReactNative.UIManager
{
/// <summary>
/// Manages thickne... |
source/RocketLaunchJournal.Model/Constants/FieldSizes.cs | jdsmith39/RocketLaunchJournal | 1 | 7043094 | <filename>source/RocketLaunchJournal.Model/Constants/FieldSizes.cs
using System;
using System.Collections.Generic;
using System.Text;
namespace RocketLaunchJournal.Model.Constants
{
public class FieldSizes
{
public const int PasswordMinimumLength = 12;
public const int ClaimTypeLength = 500;
... |
PdfDocumentChecker/MainForm.Designer.cs | Rocker93/pdf-document-checker | 0 | 7043095 | <gh_stars>0
namespace PdfDocumentChecker
{
partial class MainForm
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/... |
src/Umbraco.Core/Models/PublishedContent/PublishedContentOrderedSet.cs | nvdeveloper/UmbracoUpgrade-7.7.0-WorkAround | 1 | 7043096 | using System;
using System.Collections.Generic;
using System.Linq;
namespace Umbraco.Core.Models.PublishedContent
{
/// <summary>
/// Represents an ordered set of <see cref="IPublishedContent"/>.
/// </summary>
/// <typeparam name="T">The type of content.</typeparam>
public class PublishedContentO... |
eRestoran/eRestoran.WinUI/UserControls/Rezervacije/ucRezervacijeDetaljiPregled.cs | azra-imamovic/RS2-eRestoran | 0 | 7043097 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using eRestoran.WinUI.Helpers;
namespace eRestoran.WinUI.UserControls.Rezervacije
{
public partial c... |
Semester-3/Homework-5/FTP-Tests/Test.cs | Timur-Zinnatulin/Homework | 0 | 7043098 | using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.IO;
using System.Net.Sockets;
using System.Threading.Tasks;
using Client;
using Server;
namespace Test
{
/// <summary>
/// FTP unit tests class
/// </summary>
public class FtpTests
{
private const int port... |
src/Data/Json/ApiJsonSerializer.cs | bitflipping-solutions/experienceapi-data | 2 | 7043099 |
namespace Doctrina.ExperienceApi.Data.Json
{
public class ApiJsonSerializer : Newtonsoft.Json.JsonSerializer
{
public ApiVersion Version { get; }
public ResultFormat ResultFormat { get; }
public ApiJsonSerializer()
: this(ApiVersion.GetLatest())
{
}
... |
CreateTableEntities/CreateTableEntities/EntityBuilder.cs | tetsuji-y/CreateTableEntities | 0 | 7043100 | <reponame>tetsuji-y/CreateTableEntities
using System;
using System.Collections.Generic;
using System.Text;
using System.Text.RegularExpressions;
namespace CreateTableEntities
{
/// <summary>
/// Entity(Dto)用テキスト生成ビルダークラス
/// </summary>
public class EntityBuilder
{
public string... |
ParserLib/Json/Serialization/SerializationMode.cs | ceNobiteElf/parserlib | 0 | 7043102 | <gh_stars>0
namespace ParserLib.Json.Serialization
{
public enum SerializationMode
{
/// <summary>
/// Only public serializable fields and properties will be included.
/// </summary>
Public,
/// <summary>
/// All serializable fields and properties regardless of access modifier will be included.
/// </... |
Client/Util(ServerScriptSlave)/Const.cs | an7222/AntoriGameNetWork | 11 | 7043104 | <filename>Client/Util(ServerScriptSlave)/Const.cs<gh_stars>10-100
using System;
using System.Collections.Generic;
using System.Text;
class Const {
public const int RECEIVE_BUFFER_SIZE = 256;
public const int PACKET_HEADER_LENGTH = 4;
public const int SESSION_SERVER_PORT = 8001;
public const int BATTL... |
Csharp OOP/09. Unit Testing/P04.StorageMaster/StorageMaster.Structure.Tests/StorageTests/AutomatedWarehouseTests.cs | danailstratiev/Csharp-SoftUni-Development | 0 | 7043105 | using NUnit.Framework;
using StorageMaster.Entities.Products;
using StorageMaster.Entities.Vehicles;
using StorageMaster.Entities.Storage;
using System;
namespace StorageMaster.Structure.Tests.StorageTests
{
public class AutomatedWarehouseTests
{
private Storage automatedWarehouse;
[SetUp]
... |
CSharp/MultiTarget.Thrzn41.CiscoSpark/Version1/Space.cs | thrzn41/CiscoSparkAPIClient | 0 | 7043106 | <filename>CSharp/MultiTarget.Thrzn41.CiscoSpark/Version1/Space.cs
/*
* MIT License
*
* Copyright(c) 2017 thrzn41
*
* 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 restricti... |
01 - [CSharp Exercises]/01 - [C# Basic Exercises]/47 - [Sum Of Array Elements]/Program.cs | georgidelchev/w3resource-solutions | 3 | 7043107 | <gh_stars>1-10
using System;
using System.Linq;
namespace SolutionFortyseven
{
class Program
{
static void Main(string[] args)
{
int[] arr = Console
.ReadLine()
.Split(",")
.Select(int.Parse)
.ToArray();
C... |
Stellarmap/src/app/view/forms/DomainViewForm.cs | jamClark/Stellarmap | 0 | 7043108 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Stellarmap.Properties;
namespace Stellarmap
{
/// <summary>
/// The main window for Domain room layout and room editing.
/// </summary>
publi... |
src/IntelliTect.Coalesce/Api/Parameters/ListParameters.cs | IntelliTect/Coalesce | 44 | 7043109 | using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Threading.Tasks;
namespace IntelliTect.Coalesce.Api
{
public class ListParameters : FilterParameters, IListParameters
{
/// <inheritdoc />
public int? Page { get; set; }
... |
src/AppStudio.Uwp/Controls/ImageEx/ImageEx.cs | alekseyb7880/waslibs | 365 | 7043111 | using System;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.Foundation;
namespace AppStudio.Uwp.Controls
{
public partial class ImageEx : ContentControl
{
public ImageEx()
{
this.DefaultStyleKey = typeof(ImageEx);
this.HorizontalContentAlignment ... |
Runtime/Scripts/ThirdParty/AsyncIO/CompletionPort.cs | stefanmarks/SentienceLab_UnityMultiuser | 1 | 7043112 | using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Security;
using System.Text;
namespace AsyncIO
{
public abstract class CompletionPort : IDisposable
{
public static CompletionPort Create()
{
#if NETSTANDARD1_3
if (!RuntimeInformati... |
Source/Mosa.Compiler.Metadata/Signatures/TypeSpecSignature.cs | uQr/MOSA-Project | 0 | 7043113 | <reponame>uQr/MOSA-Project
/*
* (c) 2008 MOSA - The Managed Operating System Alliance
*
* Licensed under the terms of the New BSD License.
*
* Authors:
* <NAME> (grover) <<EMAIL>>
* <NAME> (tgiphil) <<EMAIL>>
*/
namespace Mosa.Compiler.Metadata.Signatures
{
/// <summary>
///
/// </summary>
public class T... |
test/Activities/DelayedIncrementActivity.cs | akarpov89/MicroFlow | 153 | 7043114 | <reponame>akarpov89/MicroFlow
using System.Threading;
using System.Threading.Tasks;
namespace MicroFlow.Test
{
public class DelayedIncrementActivity : Activity<int>
{
[Required]
public int X { get; set; }
public override Task<int> Execute()
{
return Task.Factory.StartNew(() =>
{
... |
YoctoScheduler.Core/Commands/KillExecution/Configuration.cs | MindFlavor/YoctoScheduler-core | 1 | 7043115 | <gh_stars>1-10
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace YoctoScheduler.Core.Commands.KillExecution
{
public class Configuration
{
public Guid TaskID;
}
}
|
tiny.WebApi/Configurations/TinyWebApiConfigurations.cs | mnchetan/tinyWebApi | 0 | 7043116 | // <copyright file="TinyWebApiConfigurations.cs" company="tiny">
// Copyright (c) 2021 tiny. All rights reserved.
// </copyright>
// <summary>
// TinyWebApiConfigurations implements Itiny.WebApiConfigurations interface.
// This is used to push the configurations necessary to inject in the DI for functionan... |
src/Runtime/NetDaemon.Runtime/Internal/AppStateManager.cs | skotl/netdaemon-core | 0 | 7043117 | <filename>src/Runtime/NetDaemon.Runtime/Internal/AppStateManager.cs
using System.Collections.Concurrent;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using System.Net;
using System.Reactive.Linq;
using System.Text;
using NetDaemon.AppModel;
using NetDaemon.Client.HomeAssistant.Model;
using NetDaem... |
Code/1_Presentation/WebForLink.Web/Areas/Administracao/Views/Papel/PapelEditarFrm.cshtml | nelson1987/ProjetoPadraoTDD | 0 | 7043118 | @model WebForLink.Web.Areas.Administracao.Models.PapelAdministracaoModel
@{
ViewBag.Title = "Edit";
Layout = "~/Views/Shared/_LayoutAdministracao.cshtml";
}
<section class="content-header">
<h1>Edição de @ViewBag.Title</h1>
<ol class="breadcrumb">
<li><i class="fa fa-envelope"></i> Acesso</li>... |
DatabaseSchemaReaderTest/SqlGen/Migrations/UnitTests/MigrationAddPrimaryKey.cs | fabbbiob/dbschemareader | 276 | 7043119 | using DatabaseSchemaReader.DataSchema;
using DatabaseSchemaReader.SqlGen;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Data;
using System.Linq;
namespace DatabaseSchemaReaderTest.SqlGen.Migrations.UnitTests
{
[TestClass]
public class MigrationAddPrimaryKey
{
[TestM... |
test/integration/helpers/Filters.cs | narravamsikrishna/appium-dotnet-driver | 299 | 7043120 | using System.Collections.Generic;
using OpenQA.Selenium;
namespace Appium.Net.Integration.Tests.helpers
{
public class Filters
{
public static IWebElement FirstWithName<TW>(IList<TW> els, string name) where TW : IWebElement
{
for (var i = 0; i < els.Count; i++)
{
... |
sources/RegulatedNoise/Help Forms/HelpCommodities.Designer.cs | zericco/Elite-Insight | 0 | 7043121 | <filename>sources/RegulatedNoise/Help Forms/HelpCommodities.Designer.cs
namespace RegulatedNoise
{
partial class HelpCommodities
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
... |
DocumentCreator/Views/Shared/Results.cshtml | Viva45Animania/ICT2106 | 0 | 7043122 | @model System.String
@{
ViewData["title"] = "Results";
}
<h2>Results</h2>
<p>
Here is your document:
</p>
<div class="output_doc">
<pre>@Model</pre>
</div>
<p>
<a href="/Home">Create another document</a>
</p> |
src/Foundation.Domain/Events/Handlers/TrackDomainEventHandler.cs | vip32/Naos.Core | 10 | 7043123 | <gh_stars>1-10
namespace Naos.Sample.Customers.Domain
{
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
using Naos.Foundation;
using Naos.Foundation.Domain;
public class TrackDomainEventHandler
: DomainEventHandlerBase<IDomainEvent> // handles ... |
src/Revit.TestRunner.Test/NUnit/ResultXmlFileWriterTest.cs | EvanGeer/Revit.TestRunner | 40 | 7043124 | <reponame>EvanGeer/Revit.TestRunner
using System;
using System.IO;
using NUnit.Framework;
using Revit.TestRunner.Shared;
using Revit.TestRunner.Shared.Dto;
using Revit.TestRunner.Shared.NUnit;
namespace Revit.TestRunner.Test.NUnit
{
[TestFixture]
public class ResultXmlFileWriterTest
{
[Test]
... |
NETMF_44/GadgeteerCore/VSTemplates/HardwareTemplateWizard/Interop/NativeMethods.cs | martinca-msft/Gadgeteer | 1 | 7043126 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the Apache v.2 license.
using System;
using System.Runtime.InteropServices;
namespace Microsoft.Gadgeteer.HardwareTemplateWizard
{
internal class NativeMethods
{
#region Desktop Window Manager
[DllImport("dwmapi.dl... |
TicketDesk-2/TicketDesk.Web.Client/Models/TicketCreateViewModel.cs | ilkerhalil/TicketDesk-1 | 1 | 7043127 | // TicketDesk - Attribution notice
// Contributor(s):
//
// <NAME> (<EMAIL>, http://www.reddnet.net)
//
// This file is distributed under the terms of the Microsoft Public
// License (Ms-PL). See http://ticketdesk.codeplex.com/license
// for the complete terms of use.
//
// For any distribution that contains co... |
Web/Areas/Logistics/Views/DeliveryReconcile/Index.cshtml | nathnael/cats | 1 | 7043128 | <filename>Web/Areas/Logistics/Views/DeliveryReconcile/Index.cshtml
@using Cats.Areas.Logistics.Models
@using Cats.Models.Hubs
@using Kendo.Mvc.UI
@{
ViewBag.Title = "Index";
Layout = "~/Views/Shared/_MainLayoutWide.cshtml";
}
<html @*data-ng-app="DeliveryReconcilationModule"*@>
<head>
<style scoped... |
Assets/SCRIPTS/Managers/ManagerSpawnPoints.cs | xumera-hz/Multiplayer-prototip-shooter-Csharp-Unity | 0 | 7043129 | using UnityEngine;
using System.Collections.Generic;
public class ManagerSpawnPoints : MonoSingleton<ManagerSpawnPoints> {
[SerializeField] Transform m_RespawnPointsParent;
Transform[] m_RespawnPoints;
int m_LastPoint = -1;
List<int> m_ListPoints;
public Vector3 GetRespawnPoint(int ind)
{
... |
SharpCms/SharpCms.Core/Controllers/SitesController.cs | JuergenGutschOnTwitch/sharpcms-mvc | 1 | 7043130 | <reponame>JuergenGutschOnTwitch/sharpcms-mvc<gh_stars>1-10
using System.Collections.Generic;
using System.Web.Mvc;
namespace SharpCms.Core.Controllers
{
public class SitesController : Controller
{
//
// GET: /Sites/
public ActionResult Index()
{
var ite... |
src/Orchard/Data/Conventions/AggregateAttribute.cs | akovsh/Orchard | 0 | 7043131 | using System;
using FluentNHibernate.Conventions;
using FluentNHibernate.Conventions.AcceptanceCriteria;
using FluentNHibernate.Conventions.Inspections;
using FluentNHibernate.Conventions.Instances;
namespace Orchard.Data.Conventions
{
/// <summary>
/// This attribute is used to mark relationships wh... |
src/api/WarframeUpdatesController.cs | dakotaruelle/dex-frame | 2 | 7043132 | using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
using System.Net.Http;
using System.Net.Http.Json;
using System.Threading.Tasks;
using Api.DataUpdates.Warframe;
using Dapper;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Configuration;
namespace Api.Controll... |
KOR.Updater/Core/System/AppKiller.cs | korproject/KOR.Updater | 0 | 7043133 | using System;
using System.Diagnostics;
namespace KOR.Updater.System
{
public class AppKiller
{
//
public bool ProcessKill(string appath)
{
bool ret = false;
try
{
Process[] collectionOfProcess = Process.GetProcessesByName("1");
... |
WPFDemoUI/Properties/AssemblyInfo.cs | TaiwanSpring/WPFDemo | 1 | 7043134 | <reponame>TaiwanSpring/WPFDemo
using System.Windows;
using System.Windows.Markup;
[assembly: XmlnsDefinition("https://www.WPFDemo.com/", nameof(WPFDemoUI))]
//[assembly: XmlnsDefinition("http://schemas.microsoft.com/winfx/2006/xaml/presentation", nameof(WPFDemoUI) + "." + nameof(WPFDemoUI.MarkupExtension))]
[assembly... |
src/OpenTelemetry/Metrics/Export/MetricProcessor.cs | exceptionless/opentelemetry-dotnet | 1 | 7043135 | // <copyright file="MetricProcessor.cs" company="OpenTelemetry Authors">
// Copyright The OpenTelemetry Authors
//
// 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... |
BrightWire.Source/ExecutionGraph/Node/Layer/GatedRecurrentUnit.cs | alexhiggins732/brightwire | 1 | 7043136 | <reponame>alexhiggins732/brightwire<filename>BrightWire.Source/ExecutionGraph/Node/Layer/GatedRecurrentUnit.cs
using BrightWire.ExecutionGraph.Action;
using BrightWire.ExecutionGraph.Node.Input;
using BrightWire.Models;
using System.Collections.Generic;
using System.IO;
namespace BrightWire.ExecutionGraph.Node.Layer
... |
ASP.Net Core API Gateway - 01/Warehouse.ViewModelComposition/ViewModelCompositionOptionsCustomization.cs | mauroservienti/designing-a-ui-for-microservices-demos | 46 | 7043137 | <filename>ASP.Net Core API Gateway - 01/Warehouse.ViewModelComposition/ViewModelCompositionOptionsCustomization.cs<gh_stars>10-100
using System;
using ConfigurationUtils;
using Microsoft.Extensions.DependencyInjection;
using ServiceComposer.AspNetCore;
namespace Warehouse.ViewModelComposition
{
public class ViewM... |
Csp/Global/Node.cs | lifebeyondfife/Decider | 112 | 7043139 | <filename>Csp/Global/Node.cs<gh_stars>100-1000
/*
Copyright © <NAME> 2010-2021
This file is part of Decider.
*/
using System.Collections.Generic;
using Decider.Csp.Integer;
namespace Decider.Csp.Global
{
internal class Node
{
internal int Index { get; set; }
internal int Link { get; set; }
internal Li... |
src/Service.WalletApi.PingApi/Program.cs | MyJetWallet/Tools.PingApi | 0 | 7043140 | <reponame>MyJetWallet/Tools.PingApi
using System;
using System.Net;
using Autofac.Extensions.DependencyInjection;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Server.Kestrel.Core;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
u... |
src/Bannerlord.Diplomacy/CampaignBehaviors/KeepFiefAfterSiegeBehavior.cs | Aragas/Bannerlord.Diplomacy | 16 | 7043141 | using Diplomacy.Character;
using Diplomacy.Event;
using TaleWorlds.CampaignSystem;
using TaleWorlds.CampaignSystem.Actions;
using TaleWorlds.Core;
using TaleWorlds.Library;
using TaleWorlds.Localization;
namespace Diplomacy.CampaignBehaviors
{
internal sealed class KeepFiefAfterSiegeBehavior : CampaignBehaviorBa... |
src/OpenRasta.Tests.Unit/Authentication/Basic/BasicAuthenticationScheme_Specification.cs | openrasta/openrasta-core | 40 | 7043142 | #pragma warning disable 618
using System;
using System.Collections.Generic;
using System.Text;
using Moq;
using NUnit.Framework;
using OpenRasta.Authentication;
using OpenRasta.Authentication.Basic;
using OpenRasta.Hosting.InMemory;
using OpenRasta.Web;
using Shouldly;
namespace BasicAuthenticationSchem... |
src/UnoApp/UnoDecompile/Uno.UI/Windows.UI.Xaml.Controls/TextBoxView.cs | ljcollins25/Codeground | 0 | 7043143 | using System;
using System.Globalization;
using Uno.Disposables;
using Uno.Foundation;
using Uno.UI;
using Windows.Foundation;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
namespace Windows.UI.Xaml.Controls;
internal class TextBoxView : FrameworkElement
{
private readonly TextBox _textBox;
private rea... |
src/CLI/ndocx/commands/CommandExtensions.cs | rezanid/novodocx | 0 | 7043144 | <reponame>rezanid/novodocx
// Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.CommandLine;
using System.CommandLine.Parsing;
namespace Novo.Docx.Cli;
public static cla... |
Framework/ApplicationRecognizers/AppIdent/Statistics/ApplicationProtocolClassificationStatisticsMeter.cs | mvondracek/NetfoxDetective | 35 | 7043145 | // Copyright (c) 2017 <NAME>
//
//Licensed under the Apache License, Version 2.0 (the "License");
//you may not use this file except in compliance with the License.
//You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
//Unless required by applicable law or agreed to in writi... |
day5_lab/FileSaveOpen/MathsSAASWebApp/MathService.asmx.cs | elpidaguy/CDAC-dotNet | 0 | 7043146 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
namespace MathsSAASWebApp
{
/// <summary>
/// Summary description for MathService
/// </summary>
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfil... |
CLRS.Tests/Generators/IntStubGenerator.cs | jva44ka/cormen-algorithms | 0 | 7043147 | using System.Collections.Generic;
using CLRS.Tests.Stubs;
namespace CLRS.Tests.Generators
{
public static class IntStubGenerator
{
public static List<IntStub> GetFirst100Numbers()
{
var numbers = new List<IntStub>();
for (int i = 0; i < 100; i++)
{
... |
RTMP/Payload/PayloadType.cs | rgrochowicz/RTMPStreamReader | 9 | 7043148 | <filename>RTMP/Payload/PayloadType.cs
namespace RTMPStreamReader.RTMP.Payload
{
public enum PayloadType
{
CHUNK_SIZE = 0x01,
ABORT = 0x02,
BYTES_READ = 0x03,
CONTROL = 0x04,
WINDOW_ACK_SIZE = 0x05,
SET_PEER_BW = 0x06,
//0x07
AUDIO = 0x08,
... |
DalSic/generated/AprAlertaControlMenor.cs | saludnqn/Empadronamiento | 0 | 7043149 | using System;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using System.Data.Common;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Configuration;
using System.Xml;
using System.Xml.Serialization;
using SubSonic;
using SubSonic.Utilities;... |
Assets/Scripts/Workstation/WorkstationManager.cs | team-motus/workstation-designer | 3 | 7043150 | <filename>Assets/Scripts/Workstation/WorkstationManager.cs
using System;
using System.Collections.Generic;
using System.IO;
using UnityEngine;
using UnityEngine.UIElements;
using WorkstationDesigner.UI;
using WorkstationDesigner.Util;
namespace WorkstationDesigner.Workstation
{
public static class Works... |
module/ASC.Mail.Autoreply/ASC.Mail.Core/Net/_Debug/BitDebuger.cs | jeanluctritsch/CommunityServer | 0 | 7043151 | <filename>module/ASC.Mail.Autoreply/ASC.Mail.Core/Net/_Debug/BitDebuger.cs
/*
*
* (c) Copyright Ascensio System Limited 2010-2021
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
... |
NLightning/OnionRouting/FailureCodes.cs | dmsch/NLightning | 16 | 7043152 | using System;
namespace NLightning.OnionRouting
{
[Flags]
public enum FailureCodes : ushort
{
None = 0,
BadOnion = 0x8000,
PermanentFailure = 0x4000,
NodeFailure = 0x2000,
Update = 0x1000,
}
} |
dotnet/tdd.shapes/Rectangle.cs | winkingzhang/tdd-shapes | 0 | 7043153 | <filename>dotnet/tdd.shapes/Rectangle.cs
namespace tdd.shapes;
public class Rectangle : Shape
{
public Rectangle(int width, int height)
{
Width = width;
Height = height;
}
public int Width { get; }
public int Height { get; }
}
|
ReflectionAndDynamic/ReflectionSamples/VectorClass/Vector.cs | okyuanzhui/bb | 479 | 7043154 | <reponame>okyuanzhui/bb<gh_stars>100-1000
using System;
using System.Collections;
using System.Collections.Generic;
using WhatsNewAttributes;
[assembly: SupportsWhatsNew]
namespace VectorClass
{
[LastModified("19 Jul 2017", "updated for C# 7 and .NET Core 2")]
[LastModified("6 Jun 2015", "updated for C# 6 an... |
Seatown.Data.Tests/Validation/PersonValidator.cs | KevinWiener/Seatown.Data | 0 | 7043155 | <reponame>KevinWiener/Seatown.Data
using Seatown.Data.Validation;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Seatown.Data.Tests.Validation
{
public class PersonValidator : IValidator<Person>
{
public IValidationResult Validate(Person p)
{
... |
WindBarrierReinforcement/DataModels/NSPage07/DataModel_RadialEdgeConcrete.cs | vbuweb123/windturbine3Dreinforcement | 0 | 7043156 | <gh_stars>0
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WindBarrierReinforcement.Common.DataModel;
using WindBarrierReinforcement.Common.Eng;
using WindBarrierReinforcement.Common.Reflected;
using WindBarrierReinforcement.StaticModel;
using ... |
XenAdminTests/PluginTests/ShellCmdTests.cs | cheng-z/xenadmin | 1 | 7043157 | <filename>XenAdminTests/PluginTests/ShellCmdTests.cs
/* Copyright (c) Citrix Systems Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms,
* with or without modification, are permitted provided
* that the following conditions are met:
*
* * Redistributions of source ... |
sdk/dotnet/Compute/FloatingIp.cs | ederst/pulumi-openstack | 34 | 7043158 | <reponame>ederst/pulumi-openstack
// *** 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;
... |
Funcky/Functional/BoolConstant.cs | csillikd-messerli/funcky | 0 | 7043160 | using System.Diagnostics.Contracts;
namespace Funcky
{
public static partial class Functional
{
/// <summary>A function that always returns <see langword="true"/>.</summary>
[Pure]
public static bool True() => true;
/// <inheritdoc cref="True"/>
[Pure]
public st... |
MeidoBot/Configuration/MeidoConfig.cs | IvionSauce/MeidoBot | 0 | 7043161 | <reponame>IvionSauce/MeidoBot
using System;
using System.IO;
using System.Linq;
using System.Collections.Generic;
namespace MeidoBot
{
public class MeidoConfig
{
public readonly string Nickname;
public readonly string ServerAddress;
public readonly int ServerPort;
public reado... |
TextSplit/TSSync.Designer.cs | mwaltman/TextSplit | 2 | 7043162 | <<<<<<< HEAD
namespace TextSplit
{
partial class TextSplitSync
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
... |
src/Strategies/TypeInterceptionStrategy.cs | ZertoPublic/Zerto.Unity.Interception | 21 | 7043163 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using Unity.Builder;
using Unity.Injection;
using Unity.Interception.ContainerIntegration.Selection;
using Unity.Interception.InterceptionBehaviors;
using Unity.Interception.Interceptors;
using Unity.Policy;
using Unity.Strateg... |
Source/GostCryptography/Native/CryptoApi.cs | pairbit/GostCryptography | 5 | 7043164 | <filename>Source/GostCryptography/Native/CryptoApi.cs
using GostCryptography.Base;
using System;
using System.Runtime.ConstrainedExecution;
using System.Runtime.InteropServices;
using System.Security;
using System.Text;
namespace GostCryptography.Native
{
/// <summary>
/// Функции для работы с Microsoft Crypt... |
days/18.cs | kbmacneal/adv_of_code_2019 | 0 | 7043165 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using adv_of_code_2019.Classes;
namespace adv_of_code_2019
{
// yh, not gonna do this one. code from https://github.com/mareklinka/aoc-2019/tree/master/18
public static class Day18
{
p... |
tests/FunctionalTests/Facts/StaticFiles/StaticFile/IfMatchTests.cs | mickey2009/KatanaProject | 0 | 7043166 | <gh_stars>0
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
using System;
using System.IO;
using System.Net;
using System.Net.Http;
using System.Threading;
using FunctionalTests.Common;
using Owin;
using Xunit;
using Xunit.... |
src/EmberKernel/Plugins/Attributes/EmberPluginAttribute.cs | OsuSync/EmberTools | 5 | 7043167 | <filename>src/EmberKernel/Plugins/Attributes/EmberPluginAttribute.cs<gh_stars>1-10
using System;
using System.Collections.Generic;
using System.Text;
namespace EmberKernel.Plugins.Attributes
{
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
public class EmberPluginAtt... |
MVC/Softuni.Community.Web.Models/ViewModels/ProblemDetailsViewModel.cs | tmollov/Softuni.Community | 2 | 7043168 | <reponame>tmollov/Softuni.Community<filename>MVC/Softuni.Community.Web.Models/ViewModels/ProblemDetailsViewModel.cs
using System.Collections.Generic;
namespace Softuni.Community.Web.Models.ViewModels
{
public class ProblemDetailsViewModel
{
public int Id { get; set; }
public string ProblemCon... |
DeemZ/DeemZ.Services/CourseServices/CourseService.cs | Berat-Dzhevdetov/DeemZ | 2 | 7043169 | namespace DeemZ.Services.CourseServices
{
using AutoMapper;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using AutoMapper.QueryableExtensions;
using DeemZ.Data;
using DeemZ.Data.Models;
using DeemZ.Models.FormModels.Course;
... |
alura/course_flutter_web_api/webapi/Bytebank/Bytebank.Api/Models/Contact.cs | flaviogf/Cursos | 2 | 7043170 | namespace Bytebank.Api.Models
{
public class Contact
{
public string Name { get; set; }
public string Account { get; set; }
}
}
|
Firebend.AutoCrud.EntityFramework/Abstractions/Entities/EntityFrameworkEntityUpdateService.cs | djayd/auto-crud | 16 | 7043171 | <gh_stars>10-100
using System.Threading;
using System.Threading.Tasks;
using Firebend.AutoCrud.Core.Implementations;
using Firebend.AutoCrud.Core.Interfaces.Models;
using Firebend.AutoCrud.Core.Interfaces.Services.Entities;
using Firebend.AutoCrud.EntityFramework.Interfaces;
using Microsoft.AspNetCore.JsonPatch;
names... |
src/KeyboardExtenderPlugins/Plugins/TopLeftBehavior.cs | sacortesh/keyboard-extender | 0 | 7043172 | using Avangarde.KeyboardExtenderPlugins.Externals;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Avangarde.KeyboardExtenderPlugins.Plugins
{
public class TopLeftBehavior : BehaviorBase
{
public ... |
StroopTest/Views/SidebarUserControls/ParticipantControl.cs | lab-neuro-comp/Test-Plataform | 5 | 7043173 | <reponame>lab-neuro-comp/Test-Plataform
using System;
using System.Windows.Forms;
using TestPlatform.Views.ParticipantPages;
using System.Resources;
using System.Globalization;
using TestPlatform.Models;
namespace TestPlatform.Views.SidebarUserControls
{
public partial class ParticipantControl : DefaultUserContro... |
CodeWarsKataTrainer/Training/AreTheyTheSame.cs | mayankbigm/CodeWars | 0 | 7043174 | <reponame>mayankbigm/CodeWars
using System;
using System.Linq;
namespace Training
{
/*
* https://www.codewars.com/kata/550498447451fbbd7600041c
* Given two arrays a and b write a function comp(a, b) (orcompSame(a, b))
* that checks whether the two arrays have the "same" elements, with the same mult... |
Extension/Xamarin.Forms.HotReload.Extension.WinVS/DependenciesRegistrar.cs | slang25/HotReload | 473 | 7043175 | <filename>Extension/Xamarin.Forms.HotReload.Extension.WinVS/DependenciesRegistrar.cs
using Xamarin.Forms.HotReload.Extension.Abstractions;
using Xamarin.Forms.HotReload.Extension.Abstractions.Dialogs;
using Xamarin.Forms.HotReload.Extension.WinVS.Dialogs.Connections;
namespace Xamarin.Forms.HotReload.Extension.WinVS
... |
CSharpAllExamples/CSharpAllExamples/RandomExample01/ConstantReadonlyStatic/ConstantReadonlyStatic.cs | shahedbd/CSharpAllExamples | 0 | 7043176 | using System;
namespace CSharpAllExamples.RandomExample01.ConstantReadonlyStatic
{
class ConstantReadonlyStatic
{
}
class clsConstant
{
void Sum(int j)
{
const int i = 9, k = 2;
const int A = i + k;
}
void Sum2(int j)
{
... |
Documentation/TestGenerator/SolutionTransformer/Transformer.cs | NaskoVasilev/JudgeSystem | 37 | 7043177 | using System.IO;
namespace SolutionTransformer
{
public class Transformer
{
public static void Main(string[] args)
{
string filePath = "../../../Code/Code.cs";
string code = File.ReadAllText(filePath);
string[][] replacePairs = new string[][]
{
... |
Tools/COMInterfaceMan/DMUS_PORTPARAMS.cs | Bassman2/SoundDevices | 0 | 7043178 | <filename>Tools/COMInterfaceMan/DMUS_PORTPARAMS.cs
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Text;
namespace MediaDevices.IO.Internal.DirectMusic.COMInterface
{
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]
internal struct DMUS_PORTPARAM... |
tools/Google.Cloud.Tools.TagReleases/Program.cs | tbpg/google-cloud-dotnet | 0 | 7043179 | // Copyright 2017 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicabl... |
SignInCheckIn/SignInCheckIn.Tests/Services/SignInLogicTest.cs | crdschurch/crds_signin_checkin | 2 | 7043180 | using System;
using System.Collections.Generic;
using System.Linq;
using Crossroads.Utilities.Services.Interfaces;
using Crossroads.Web.Common.MinistryPlatform;
using MinistryPlatform.Translation.Models.DTO;
using MinistryPlatform.Translation.Repositories.Interfaces;
using Moq;
using NUnit.Framework;
using SignInCheck... |
src/HEAL.Entities.Objects/Excel/Attributes/ExcelColumnConfigurationAttribute.cs | florianBachinger/HEAL.Entities | 4 | 7043181 | <reponame>florianBachinger/HEAL.Entities
using System;
using System.Collections;
using System.Text;
namespace HEAL.Entities.Objects.Excel {
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
public class ExcelColumnConfigurationAttribute : Attribute {
/// <summary>
/// C... |
SS.PowerShell/Outlook/AttachmentObject.cs | tomabg/SS.PowerShell | 5 | 7043182 | <reponame>tomabg/SS.PowerShell<gh_stars>1-10
using System;
using System.Collections.Generic;
using System.Linq;
using System.Management.Automation;
using System.Text;
using System.Threading.Tasks;
namespace SS.PowerShell.Outlook
{
public class AttachmentObject
{
public string File { get; internal set;... |
client/Core/Game/User/GUI/UI/Elements/UI/ActiveDescriptionBox.cs | Devwarlt/loe-core | 0 | 7043183 | <reponame>Devwarlt/loe-core
using LoESoft.Client.Assets.Xml.Structure;
using LoESoft.Client.Drawing;
using LoESoft.Client.Drawing.Sprites.Forms;
using LoESoft.Client.Drawing.Sprites.Text;
namespace LoESoft.Client.Core.Game.User.GUI.UI.Elements.UI
{
public class ActiveDescriptionBox : FilledRectangle
{
... |
MailFTSParser/Models/PropertyId.cs | raji122010/o365-fts-parser | 0 | 7043184 | using MailFTSParsers.Enums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MailFTSParsers.Models
{
public class PropertyId : IComparable<PropertyId>, IEquatable<PropertyId>
{
private uint tag;
private Guid propset;... |
Buttons/Buttons/Views/Question/Index.cshtml | ardliath/Buttons | 0 | 7043185 | @{
ViewBag.Title = "Home Page";
}
@model Buttons.Models.Question.Index
<div class="jumbotron">
<h1>Question Bank</h1>
<p class="lead">Here are all the questions in our database.</p>
</div>
<div class="row">
<table class="table">
<thead>
<tr>
<th>
... |
tests/Toppler.Tests.Integration/SingleEventSourceTest.cs | Cybermaxs/Toppler | 1 | 7043186 | <reponame>Cybermaxs/Toppler
using System;
using System.Linq;
using Toppler.Core;
using Toppler.Tests.Integration.Fixtures;
using Xunit;
namespace Toppler.Tests.Integration
{
[Collection("RedisServer")]
public class SingleEventSourceTest
{
public SingleEventSourceTest(RedisServerFixture redisServe... |
Impressao_Etiquetas/ListaRecebimento.cs | guarizen/Impressao_Etiqueta | 0 | 7043187 | using System;
using System.Collections.Generic;
using System.Globalization;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
namespace Impressao_Etiquetas
{
public partial class ListaRecebimento
{
[JsonProperty("odata.metadata")]
public Uri OdataMetadata { get; set; }
[JsonPro... |
PryBase/es.efor.PryBase.Infraestructure/DTO/PermissionsDTOs/ModuleDTO.cs | vgdEfor/.NetCore | 0 | 7043188 | <filename>PryBase/es.efor.PryBase.Infraestructure/DTO/PermissionsDTOs/ModuleDTO.cs<gh_stars>0
namespace es.efor.PryBase.Infraestructure.DTO.PermissionsDTOs
{
public class ModuleDTO
{
#region Constructor
public ModuleDTO() { }
#endregion
#region Propiedades
public int I... |
src/Milou.Deployer.Web.Core/Logging/LoggerConfigurationHandler.cs | niklaslundberg/milou.deployer | 0 | 7043189 | using Arbor.App.Extensions.Logging;
using Serilog;
namespace Milou.Deployer.Web.Core.Logging
{
public class LoggerConfigurationHandler : ILoggerConfigurationHandler
{
public LoggerConfiguration Handle(LoggerConfiguration loggerConfiguration) => loggerConfiguration;
}
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.