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 |
|---|---|---|---|---|
Assets/Standard Assets/Scripts/GameData/Actions/ChopFirewoodAction.cs | jamiejammas/goap-master | 0 | 7026054 |
using System;
using UnityEngine;
public class ChopFirewoodAction : GoapAction
{
private bool chopped = false;
private ChoppingBlockComponent targetChoppingBlock; // where we chop the firewood
private float startTime = 0;
public float workDuration = 2; // seconds
public ChopFirewoodAction () {
addPreconditi... |
src/Rules/Enums/RuleSeverity.cs | duaneking/WheelMUD | 0 | 7026055 | //-----------------------------------------------------------------------------
// <copyright file="RuleSeverity.cs" company="WheelMUD Development Team">
// Copyright (c) WheelMUD Development Team. See LICENSE.txt. This file is
// subject to the Microsoft Public License. All other rights reserved.
// </copyright>
... |
Jtc.Optimization.ChartJs/ChartJS/BarChart/Dataset/BaseBarDataset.cs | AwesomeTrading/LeanParameterOptimization | 49 | 7026056 | <filename>Jtc.Optimization.ChartJs/ChartJS/BarChart/Dataset/BaseBarDataset.cs
using System;
using System.Collections.Generic;
using ChartJs.Blazor.ChartJS.Common.Enums;
using ChartJs.Blazor.ChartJS.MixedChart;
using Newtonsoft.Json;
namespace ChartJs.Blazor.ChartJS.BarChart.Dataset
{
/// <summary>
/// A base ... |
CodingVR/Assets/BOXOPHOBIC/Utils/Scripts/BoxophobicUtils/Editor/GetBoxophobicFolder.cs | kalasour/Coding-Virtual-Reality-Games-for-Kids | 2 | 7026057 | // <NAME> - https://boxophobic.com/
using UnityEditor;
namespace Boxophobic.Utils
{
public partial class BoxophobicUtils
{
public static string GetBoxophobicFolder()
{
string[] folder = AssetDatabase.FindAssets("BOXOPHOBIC");
string boxFolder = null;
for (... |
src/DbLinq/Test/Providers/DataLoadOptions_Test.cs | RWooters/dblinq2007 | 469 | 7026058 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using Test_NUnit;
using nwind;
#if MONO_STRICT
using System.Data.Linq;
#else
using DbLinq.Data.Linq;
#endif
namespace nwind
{
public partial class Customer
{
public object ... |
src/workspacer.Bar/Widgets/BatteryWidget.cs | t-andre/workspacer | 224 | 7026059 | <filename>src/workspacer.Bar/Widgets/BatteryWidget.cs
using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
using System.Threading.Tasks;
using System.Timers;
using System.Windows.Forms;
namespace workspacer.Bar.Widgets
{
public class BatteryWidget : BarWidgetBase
{
publ... |
Yoga.Net.Tests/YGRoundingTest.cs | brainzdev/Yoga.Net | 1 | 7026060 | using NUnit.Framework;
using static Yoga.Net.YGGlobal;
namespace Yoga.Net.Tests
{
[TestFixture]
public class YGRoundingTest
{
[Test] public void rounding_flex_basis_flex_grow_row_width_of_100() {
YGConfig config = YGConfigNew();
YGNode root = YGNodeNewWithConfig(config);
... |
ThreadingDemo/ThreadingDemo/Program.cs | senapatisantosh/Advance-.NET-Workshop | 2 | 7026061 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace ThreadingDemo
{
public class Program
{
static void Main(string[] args)
{
//How to define Parameterless Thread
//Thread t... |
samples/data-serialization/ds-perper/Streams/AppMonitor.cs | obecto/perper | 24 | 7026063 | <reponame>obecto/perper
using System;
using Microsoft.Azure.WebJobs;
using Perper.WebJobs.Extensions.Triggers;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using ds_perper.Models;
using Microsoft.Extensions.Logging;
namespace ds_perper.Streams
{
public static class AppMon... |
src/Altinn.Apps/AppTemplates/AspNet/Altinn.App.PlatformServices.Tests/Implementation/TextAppSITest.cs | altinnadmin/altinn-studio | 0 | 7026064 | using System.Net;
using System.Net.Http;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Altinn.App.Services.Configuration;
using Altinn.App.Services.Implementation;
using Altinn.Platform.Storage.Interface.Models;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Caching.Memor... |
PDF To JPG Expert/frmDownloadUpdate.cs | fourDotsSoftware/PDF-To-JPG-Expert | 0 | 7026065 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Web;
using System.Net;
using Microsoft.Win32;
namespace PDFToJPGExpert
{
public partial class frmDownloadUpdate : PDFToJPGExpert.CustomF... |
Assets/Plugins/StansAssets/NativePlugins/IOSNativePro/Runtime/API/ReplayKit/Internal/ISN_RPEditorAPI.cs | Alnirel/com.stansassets.running-dinosaur-clone | 2 | 7026066 | <reponame>Alnirel/com.stansassets.running-dinosaur-clone<gh_stars>1-10
////////////////////////////////////////////////////////////////////////////////
//
// @module IOS Native Plugin
// @author <NAME> (Stan's Assets)
// @support <EMAIL>
// @website https://stansassets.com
//
///////////////////////////////////////////... |
src/IncidentReport.Infrastructure.IntegrationTests/IncidentReportStartupForTests.cs | KmlPro/IncidentManagmentSystem | 3 | 7026067 | using System.Reflection;
using BuildingBlocks.Application;
using IncidentReport.Infrastructure.Configuration;
using IncidentReport.Infrastructure.Persistence.Configurations.DatabaseConfiguration;
using IncidentReport.Infrastructure.Persistence.Configurations.DatabaseConfiguration.InMemory;
using Serilog;
namespace Inc... |
src/Maple.Core/Observables/ViewModels/ValidableBaseDataViewModel.cs | Inzanit/Maple | 46 | 7026068 | using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Linq;
using System.Runtime.CompilerServices;
using FluentValidation;
using FluentValidation.Results;
using Maple.Domain;
using Maple.Localization.Properties;
namespace Maple.Co... |
Assets/Libraries/CSharpSynth/Wave/WaveHelper.cs | The-MAZZTer/DarkForces | 1 | 7026069 | using CSharpSynth.Wave.DSP;
using System;
namespace CSharpSynth.Wave {
public class WaveHelper {
//--Enum
public enum WaveChunkType { Master = 1, Format = 2, Fact = 3, Data = 4 };
public enum Format_Code { WAVE_FORMAT_PCM = 1, WAVE_FORMAT_IEEE_FLOAT = 3, WAVE_FORMAT_ALAW = 6, WAVE_FORMAT_MULAW = 7, WAVE... |
Assets/MaxSdk/Scripts/MaxSdkUnityEditor.cs | atakanhbk/Bag-Master | 0 | 7026070 | <filename>Assets/MaxSdk/Scripts/MaxSdkUnityEditor.cs
// This script is used for Unity Editor and non Android or iOS platforms.
#if UNITY_EDITOR || !(UNITY_ANDROID || UNITY_IPHONE || UNITY_IOS)
using System;
using System.Collections;
using System.Collections.Generic;
using System.Globalization;
using AppLovinMax.Third... |
Tests/FunctionMonkey.Tests.Integration.Functions/Commands/OutputBindings/HttpTriggerStorageTableCollectionOutputCommand.cs | vip32/FunctionMonkey | 1 | 7026071 | using System;
using System.Collections.Generic;
using AzureFromTheTrenches.Commanding.Abstractions;
using FunctionMonkey.Tests.Integration.Functions.Model;
namespace FunctionMonkey.Tests.Integration.Functions.Commands.OutputBindings
{
public class HttpTriggerStorageTableCollectionOutputCommand : ICommand<IEnumera... |
src/SS.Users.Domain.Tests/BussinessRulesTests/IsUserNotMemberOfOrganizationRuleTests.cs | KamilKarpus/SecretStorage | 0 | 7026072 |
using SS.Organizations.Domain.Roles;
using SS.Organizations.Domain.Rules;
using System;
using Xunit;
namespace SS.Organizations.Domain.Tests.BussinessRulesTests
{
public class IsUserNotMemberOfOrganizationRuleTests : OrganizationRulesBase
{
[Fact]
public void Should_Be_Not_Broken()
{
... |
Oddity/Endpoints/CapsulesEndpoint.cs | martindevans/Oddity | 27 | 7026073 | <filename>Oddity/Endpoints/CapsulesEndpoint.cs
using Oddity.Builders;
using Oddity.Configuration;
using Oddity.Models;
namespace Oddity.Endpoints
{
/// <summary>
/// Represents an entry point of /capsules endpoint.
/// </summary>
/// <typeparam name="TData">Type of the data returned from API.</typepar... |
Samples/Notifications/cs/Notifications/Converters/XmlDocumentToStringConverter.cs | dujianxin/Windows-universal-samples | 2,504 | 7026074 | using System;
using Windows.Data.Xml.Dom;
using Windows.UI.Xaml.Data;
namespace Notifications.Converters
{
public class XmlDocumentToStringConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, string language)
{
XmlDocument d... |
DaxEditor/OutliningTaggerProvider.cs | DaxEditor/DaxEditor | 56 | 7026075 | // The project released under MS-PL license https://daxeditor.codeplex.com/license
using System;
using System.ComponentModel.Composition;
using Microsoft.VisualStudio.Text;
using Microsoft.VisualStudio.Text.Tagging;
using Microsoft.VisualStudio.Utilities;
namespace DaxEditor
{
[Export(typeof(ITaggerProvider))]
... |
src/Samples/AspNetCoreApi/specs/Specs.Acceptance/_CurrentSprint/MasterFiles/_BaseSpecifications/MasterFilesStory.cs | mwhelan/Specify | 22 | 7026076 | <gh_stars>10-100
using Specify.Stories;
namespace Specs.Acceptance._CurrentSprint.MasterFiles._BaseSpecifications
{
public abstract class MasterFilesStory : UserStory
{
protected abstract string EntityName { get; }
protected MasterFilesStory()
{
AsA = "As a Farm ... |
Jsonball.Tests/src/Tracing/ProxyFactoryTest.cs | tfaller/net-jsonball-client | 0 | 7026077 | <reponame>tfaller/net-jsonball-client
using System;
using System.Collections.Generic;
using System.Text.Json.Serialization;
using TFaller.Jsonball.Client.Tracing;
using Xunit;
namespace TFaller.Jsonball.Tests.Client.Tracing
{
public class ProxyFactoryTest
{
[Fact]
public void TestSimpleProxy()
... |
Programming/03. OOP/04.OOPFundamentalPrinciplesI/03.AnimalsLibrary/Tomcat.cs | Steffkn/TelerikAcademy | 0 | 7026078 | <filename>Programming/03. OOP/04.OOPFundamentalPrinciplesI/03.AnimalsLibrary/Tomcat.cs<gh_stars>0
public class Tomcat : Cat
{
public Tomcat(string name, byte age)
: base(name, age, true) { }
public override void Talk()
{
System.Console.WriteLine("{0} got his tail straight in the air..", th... |
src/Tools/LuaStatisticsCollector/Mathematics/Statistics.cs | TheGreatSageEqualToHeaven/Loretta | 0 | 7026079 | using Loretta.CodeAnalysis.Collections;
using Perfolizer.Mathematics.OutlierDetection;
using Perfolizer.Mathematics.QuantileEstimators;
namespace Loretta.CodeAnalysis.Lua.StatisticsCollector.Mathematics
{
// Based on: https://github.com/dotnet/BenchmarkDotNet/tree/63e28c100a42a6492d09a0b93a8a4c141061bb0d/src/Benc... |
ApiLoadTester/Helpers/RequestTypeConverter.cs | Resgrid/ApiLoadTester | 1 | 7026080 | <gh_stars>1-10
using System;
using Resgrid.ApiLoadTester.Models;
using RestSharp;
namespace Resgrid.ApiLoadTester.Helpers
{
public static class RequestTypeConverter
{
public static Method ConvertToMethod(RequestTypes type)
{
switch (type)
{
case RequestTypes.Get:
return Method.GET;
case Reque... |
Node/O10.Node.DataLayer/DataServices/Keys/HashKey.cs | muaddibco/O10city | 1 | 7026081 | <gh_stars>1-10
using O10.Core.Identity;
namespace O10.Node.DataLayer.DataServices.Keys
{
public class HashKey : IDataKey
{
public HashKey(IKey hash)
{
Hash = hash;
}
public IKey Hash { get; set; }
}
}
|
src/services/Ordering/Ordering.Messages/OrderSubmitted.cs | NanoFabricFX/TooBigToFailBurgerShop | 27 | 7026082 | using System;
using MassTransit;
namespace TooBigToFailBurgerShop.Ordering.Contracts
{
public interface OrderSubmitted : CorrelatedBy<Guid>
{
public Guid OrderId { get; set; }
public DateTime OrderDate { get; set; }
}
} |
HedgeModManager/Github/GithubAPI.cs | DavidPires/HedgeModManager | 0 | 7026083 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
namespace HedgeModManager.Github
{
public static class GithubAPI
{
private const string PathSeperator = "/";
private con... |
thomas_glaser/MyCoreBotWithTests/MyCoreBotWithTests/MyCoreBotWithTests.Tests/Dialogs/DateResolverDialogTests.cs | christiannagel/azuredevsep2019 | 0 | 7026084 | <reponame>christiannagel/azuredevsep2019<gh_stars>0
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using System.Threading.Tasks;
using MyCoreBotWithTests.Tests.Common;
using MyCoreBotWithTests.Tests.Dialogs.TestData;
using Microsoft.Bot.Builder.Testing;
using Microsoft... |
src/SFA.DAS.ApprenticeCommitments.Api.AcceptanceTests/TestContext.cs | uk-gov-mirror/SkillsFundingAgency.das-apim-endpoints | 4 | 7026085 | using SFA.DAS.ApprenticeCommitments.Configuration;
using TechTalk.SpecFlow;
namespace SFA.DAS.ApprenticeCommitments.Api.AcceptanceTests
{
public class TestContext
{
private readonly FeatureContext _feature;
public TestContext(FeatureContext feature) => _feature = feature;
public Appr... |
JsTimers.Tests/TimerManagerTest.cs | 2chevskii/JsTimers | 1 | 7026086 | <filename>JsTimers.Tests/TimerManagerTest.cs<gh_stars>1-10
using System;
using System.Threading;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace JsTimers.Tests
{
[TestClass]
public class TimerManagerTest
{
[TestMethod]
public void SetTimeoutTest()
{
var te... |
PropertyHook/PHPointer/PHPointerAOBRelative.cs | Skullman-G/dstools | 113 | 7026087 | <gh_stars>100-1000
using System;
namespace PropertyHook
{
/// <summary>
/// A dynamic pointer starting from a relative address found after an array of bytes scanned for in the target process.
/// </summary>
public class PHPointerAOBRelative : PHPointerAOB
{
/// <summary>
/// The of... |
src/OpenIddict.Validation.Owin/OpenIddictValidationOwinMiddleware.cs | OrgAE/OrgAE-Openiddict | 0 | 7026088 | <reponame>OrgAE/OrgAE-Openiddict<filename>src/OpenIddict.Validation.Owin/OpenIddictValidationOwinMiddleware.cs
/*
* Licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
* See https://github.com/openiddict/openiddict-core for more information concerning
* the license and the co... |
Finalaplication/Views/Beneficiary/Delete.cshtml | FleischmanKrisztian/Finalapplication | 2 | 7026089 | @model Finalaplication.Models.Beneficiary
@{
ViewBag.Title = "Delete";
}
@using Microsoft.AspNetCore.Mvc.Localization
@inject IViewLocalizer Localizer
<h2>@Localizer["Delete"]</h2>
<hr />
<head>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="<KEY>" crossorigin="anonymous"></script>
... |
MasterDetail/MasterDetail/MasterDetail/ViewModels/CharacterViewModel.cs | nigel-sampson/samples | 0 | 7026090 | using System;
using Caliburn.Micro;
namespace MasterDetail.ViewModels
{
public class CharacterViewModel : PropertyChangedBase
{
public CharacterViewModel(string name, string tagline, string image)
{
Name = name;
Tagline = tagline;
Image = image;
}
... |
source/Additel.Core/Android/ContextExtensions.cs | gitter-badger/Additel.NET | 0 | 7026091 | <filename>source/Additel.Core/Android/ContextExtensions.cs
using Android.Content;
namespace Additel.Core
{
public static class ContextExtensions
{
public static float ToPixels(this Context context, double value)
{
var scale = context.Resources.DisplayMetrics.Density;
va... |
Configuration/Defaults.cs | acidburn0zzz/JuvoPlayer | 46 | 7026092 | /*!
* https://github.com/SamsungDForum/JuvoPlayer
* Copyright 2019, Samsung Electronics Co., Ltd
* Licensed under the MIT license
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIE... |
OPS.Core/DTO/FiltroDropDownDTO.cs | VanderleiDenir/operacao-politica-supervisionada | 57 | 7026093 | namespace OPS.Core.DTO
{
public class FiltroDropDownDTO
{
/// <summary>
/// Filtro digitado pelo usuario
/// </summary>
public string q { get; set; }
/// <summary>
/// Filtro para carregamento especial (navegação/URL)
/// </summary>
public string qs { get; set; }
/// <summary>
/// Pagina pesqui... |
Utils/DataStructures/Heap/FibonacciHeap.cs | Maroslav/DataStructures | 0 | 7026094 | <gh_stars>0
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Runtime.CompilerServices;
using Utils.DataStructures.Internal;
using Utils.DataStructures.Nodes;
namespace Utils.DataStructures
{
public class FibonacciHeap<TKey, TValue>
: HeapBase<TKey, ... |
DapperDino.Web/Areas/HappyToHelp/Views/Faq/Edit.cshtml | DapperCoding/DapperDino-Website | 3 | 7026095 | <reponame>DapperCoding/DapperDino-Website
@using DapperDino.Areas.Admin.Models
@using DapperDino.DAL.Models
@model FaqEditViewModel
@{
ViewData["Title"] = "Index";
Layout = "~/Areas/HappyToHelp/Views/Shared/_Layout.cshtml";
}
<section id="features" class="features">
<div class="container">
<div c... |
QTS.OxyPlotGraphics/OxyPlotGraph.cs | khokm/QTS | 3 | 7026096 | <gh_stars>1-10
using OxyPlot;
using OxyPlot.Series;
using OxyPlot.WindowsForms;
using OxyPlot.Axes;
using System.Collections.Generic;
using System;
using System.Linq;
using QTS.Core.Graphics;
using OxyPlot.Annotations;
namespace QTS.OxyPlotGraphics
{
/// <summary>
/// Реализация графика с использованием библи... |
Views/Shop/Category.cshtml | Nasus20202/AspShop | 4 | 7026097 | <gh_stars>1-10
@using ShopWebApp
@model CategoryModel
@{
Layout = "_Layout";
int c = 0;
string productName = "";
}
@section top{
<div class="jumbotron jumbotron-fluid" style="margin-top: 5vh; margin-bottom: -30px">
<h1 class="text-center display-4 align-bottom">@Model.Category.Name</h1>
... |
Assets/Doozy/Engine/Themes/Targets/ThemeTarget.cs | MikaelStenstrand/drivingo | 0 | 7026098 | // Copyright (c) 2015 - 2019 Doozy Entertainment. All Rights Reserved.
// This code can only be used under the standard Unity Asset Store End User License Agreement
// A Copy of the EULA APPENDIX 1 is available at http://unity3d.com/company/legal/as_terms
using System;
using Doozy.Engine.Utils;
using UnityEngine... |
JankyUI/Nodes/Widgets/CheckboxNode.cs | usagirei/JankyUI | 10 | 7026099 | using System;
using JankyUI.Attributes;
using JankyUI.Nodes.Binding;
using JankyUI.Enums;
using JankyUI.EventArgs;
using UnityEngine;
namespace JankyUI.Nodes
{
[JankyTag("Checkbox")]
[JankyProperty("text", nameof(Text))]
[JankyProperty("image", nameof(Image))]
[JankyProperty("checked", nameof(Checked)... |
ConcordV2/ConcordNew/Rand.cs | strongrex2001/Automatic-Harmony | 2 | 7026100 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConcordNew
{
public static class Rand
{
public static Random random = new Random();
/// <summary>
/// 返回[l,r]间的随机整数
/// </summary>
/// <param name="l">下界</param>
/// ... |
src/Zeus/Stores/Default/InMemorySubscriptionsStore.cs | btshft/Zeus | 4 | 7026102 | <gh_stars>1-10
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Zeus.Storage.Models.Alerts;
using Zeus.Storage.Stores.Abstractions;
namespace Zeus.Stores.Default
{
public class InMemorySubscriptionsStore : ISubscriptionsStore
{
... |
src/BlazorApp/Aguacongas.TheIdServer.BlazorApp.Components/DeleteEntityButton.razor.cs | markjohnnah/TheIdServer | 1 | 7026103 | // Project: Aguafrommars/TheIdServer
// Copyright (c) 2020 @<NAME>
using Microsoft.AspNetCore.Components;
using Microsoft.JSInterop;
using System.Diagnostics.CodeAnalysis;
using System.Threading.Tasks;
namespace Aguacongas.TheIdServer.BlazorApp.Components
{
public partial class DeleteEntityButton
{
[S... |
Microsoft.PlatformChannels/Platforms/Android/Channel.android.cs | Redth/Microsoft.Maui.Platform.Channels | 1 | 7026104 |
namespace Microsoft.PlatformChannels
{
public partial class Channel
{
internal PlatformObject ToPlatformObject(object obj)
{
if (obj is null)
return null;
var objType = obj.GetType();
try {
if (obj is PlatformObject pobj)
return pobj;
} catch { }
if (objType == typeof(s... |
LoRaEngine/LoraKeysManagerFacade/ILoRaDeviceCacheStore.cs | Azure/iotedge-lorawan-starterk | 147 | 7026105 | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace LoraKeysManagerFacade
{
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using StackExchange.Redis;
public i... |
Unit-Testing/TelerikUnitTestingg/UnitTestingWorkshop-Academy/Academy/Academy.Tests/ModelsTests/CourseTests/ConstructorTests.cs | shopOFF/TelerikAcademyCourses | 0 | 7026106 | <filename>Unit-Testing/TelerikUnitTestingg/UnitTestingWorkshop-Academy/Academy/Academy.Tests/ModelsTests/CourseTests/ConstructorTests.cs<gh_stars>0
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NUnit.Framework;
using Academy.Models;
using Acad... |
XCScript/Arguments/ArgumentList.cs | AndrewAGuy/XCScript | 0 | 7026107 | using System.Collections.Generic;
using System.Text;
namespace XCScript.Arguments
{
internal class ArgumentList
{
private readonly List<IArgument> args = new List<IArgument>();
public void Add(IArgument arg)
{
args.Add(arg);
}
public IArgument[] Evaluate()... |
modules/platforms/dotnet/Apache.Ignite.Core/Impl/PlatformTarget.cs | vldpyatkov/ignite | 0 | 7026108 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... |
test/Microsoft.Atlas.CommandLine.Tests/Stubs/StubSwaggarDocumentLoader.cs | flinde/Atlas | 44 | 7026109 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
using System.Threading.Tasks;
using Microsoft.Atlas.CommandLine.Swagger;
using Microsoft.Atlas.CommandLine.Swagger.Models;
namespace Microsoft.Atlas.CommandLine.Tests.Stubs
{
public class StubSwaggarDocumentLoader : IS... |
Assets/Scripts/Combat/States/BattleStatus.cs | Flavkupe/FlavBattle | 0 | 7026110 | using FlavBattle.Combat.Event;
using FlavBattle.State;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;
public class BattleStatus
{
public enum Winner
{
None,
Left,
Right,
}
public enum Batt... |
appGetorEventos/Controllers/CasoController.cs | carloseip/ApiEventos | 0 | 7026111 | <filename>appGetorEventos/Controllers/CasoController.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using System.Web.Http.Cors;
using BE;
using BO;
namespace appGetorEventos.Controllers
{
[EnableCors("*", "*", "*")]
// [Au... |
src/TestGame/App.cs | cryovat/biribiri | 0 | 7026112 | <gh_stars>0
using System;
using System.ComponentModel;
using BiriBiri;
using BiriBiri.Level2.Components;
using BiriBiri.Services;
using Bridge;
using Bridge.Html5;
using TestGame.Scenes;
namespace TestGame
{
public class App
{
[Ready]
public static void Main()
{
var x = new... |
webapi/HealthMarketPlaceAPI/Data/healthdbContext.cs | PradhumnaPancholi/nth-covidathon | 3 | 7026113 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
using HealthMarketPlaceAPI.Model;
namespace HealthMarketPlaceAPI.Models
{
public class healthdbContext : DbContext
{
public healthdbContext (DbContextOptions<healthdbCo... |
Final_CurseOfTheVolcano/Assets/Scripts/BridgeControlBehaviour.cs | Lowskii/CurseOfTheVolcano | 1 | 7026114 | <filename>Final_CurseOfTheVolcano/Assets/Scripts/BridgeControlBehaviour.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class BridgeControlBehaviour : MonoBehaviour
{
[SerializeField] private GameObject m_Bridge;
[SerializeField] private bool m_IsBridgeActivated;
[... |
src/ReactiveMarbles.Locator/IGetServices.cs | reactivemarbles/Locator | 2 | 7026115 | // Copyright (c) 2019-2021 ReactiveUI Association Incorporated. All rights reserved.
// ReactiveUI Association Incorporated licenses this file to you under the MIT license.
// See the LICENSE file in the project root for full license information.
using System;
using System.Collections.Generic;
using System.Diagnostic... |
SimCim.Root.V2/ClassCIMPackageInSlot.cs | simonferquel/simcim | 7 | 7026116 | <gh_stars>1-10
using Microsoft.Management.Infrastructure;
using System;
using System.Collections.Generic;
using System.Linq;
using SimCim.Core;
namespace SimCim.Root.V2
{
public abstract class CIMPackageInSlot : CIMDependency
{
protected CIMPackageInSlot()
{
}
pr... |
samples/TypeScriptDemo/Startup.cs | adams85/bundles | 32 | 7026117 | using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
namespace TypeScriptDemo
{
public class Startup
{
readonly IWebHostEnvironment _env;
public Sta... |
src/Raven.Server/Documents/Indexes/Debugging/ReduceTree.cs | ryanheath/ravendb | 1 | 7026118 | using System;
namespace Raven.Server.Documents.Indexes.Debugging
{
public class ReduceTree : IDisposable
{
public ReduceTreePage Root;
public string Name;
public string DisplayName;
public int Depth { get; set; }
public long PageCount { get; set; }
... |
src/Lucene.Net.Analysis.Common/Analysis/Util/CharTokenizer.cs | BlueCurve-Team/lucenenet | 0 | 7026119 | <filename>src/Lucene.Net.Analysis.Common/Analysis/Util/CharTokenizer.cs
using System.Diagnostics;
using System.IO;
using Lucene.Net.Analysis.Tokenattributes;
using Lucene.Net.Support;
using Lucene.Net.Util;
namespace Lucene.Net.Analysis.Util
{
/*
* Licensed to the Apache Software Foundation (ASF) under one o... |
Syncio.Providers.SqlServer/SqlServerRequestProcessor.cs | unruledboy/Syncio | 0 | 7026120 | using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Syncio.Common;
using Syncio.Common.Interfaces;
using Syncio.Common.Models;
namespace Syncio.Providers.SqlServer
{
public class SqlServerRequestProcessor : IReques... |
LanguageExt.Core/Transformer/Sequence/RWST.cs | CK-LinoPro/language-ext | 3,903 | 7026121 | using System;
using System.Collections.Generic;
using LanguageExt.TypeClasses;
namespace LanguageExt
{
public partial class RwsT
{
public static RWS<MonoidW, Env, W, S, Arr<B>> Sequence<MonoidW, Env, W, S, A, B>(this Arr<A> ta, Func<A, RWS<MonoidW, Env, W, S, B>> f)
where MonoidW : struct... |
Src/IronPython/Compiler/ClosureInfo.cs | aisk/ironpython3 | 1,872 | 7026122 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information.
using System;
using Microsoft.Scripting;
using IronPython.Compiler.Ast;
using MSAst = System.Linq.Express... |
src/Microsoft.AspNet.Mvc.Core/Filters/ControllerActionFilter.cs | abdelrahmansaeedhassan/mvc | 3 | 7026123 | // 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.Threading.Tasks;
using Microsoft.AspNet.Mvc.Core;
namespace Microsoft.AspNet.Mvc.Filters
{
/// <summary>
/// A filte... |
FoxKit/Assets/FoxKit/Fox/FilePtr.cs | Joey35233/FoxKit-3 | 3 | 7026124 | using System;
using System.Runtime.InteropServices;
using UnityEngine;
namespace Fox.Core
{
using System;
using UnityEngine;
/// <summary>
/// Stores a typed reference to a file.
/// </summary>
/// <typeparam name="T">The type of the referenced file.</typeparam>
[Serializable]
#pragma warn... |
ProjectAtlas/Models/Coordinates.cs | pdaniil/ProjectAtlas | 0 | 7026125 | <reponame>pdaniil/ProjectAtlas
using System.IO;
using ProjectAtlas.Extensions;
namespace ProjectAtlas.Models
{
public class Coordinates : IBinaryModel
{
public float X { get; set; }
public float Y { get; set; }
public float Z { get; set; }
#region IBinaryModel implementation
... |
sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/SdkInfo_PostgreSQLManagementClient.cs | garyyang2002/azure-sdk-for-net | 2 | 7026126 |
// <auto-generated>
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// </auto-generated>
namespace Microsoft.Azure.Management.PostgreSQL.FlexibleServers
{
using System;
using System.Collections.Generic;
using Sys... |
Raft/Objects/LeaderHeartbeat.cs | toStars21/sepperin | 140 | 7026127 | /*
Copyright (C) 2018 tiesky.com / <NAME>
It's a free software for those, who think that it should be free.
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DBreeze.Utils;
namespace Raft
{
internal class LeaderHear... |
src/Numerics/Integration/NewtonCotesTrapeziumRule.cs | gocchionero/mathnet-numerics | 22 | 7026129 | <reponame>gocchionero/mathnet-numerics<filename>src/Numerics/Integration/NewtonCotesTrapeziumRule.cs
// <copyright file="NewtonCotesTrapeziumRule.cs" company="Math.NET">
// Math.NET Numerics, part of the Math.NET Project
// http://numerics.mathdotnet.com
// http://github.com/mathnet/mathnet-numerics
//
// Copyright (c... |
BlogEngine/BlogEngine.Core/Services/Security/SecuritySiteMapProvider.cs | Solotzy/Analysis-of-BlogEngine.NET | 0 | 7026131 | namespace BlogEngine.Core
{
using System;
using System.Collections.Generic;
using System.Web;
/// <summary>
/// Implementation of the XmlSiteMapProvider that is Rights aware.
/// </summary>
public class SecuritySiteMapProvider : XmlSiteMapProvider
{
/// <summary>
/// Re... |
QueryBuilder/Clauses/FromClause.cs | rsr-maersk/querybuilder | 2,305 | 7026132 | <filename>QueryBuilder/Clauses/FromClause.cs<gh_stars>1000+
using System;
using System.Collections.Generic;
namespace SqlKata
{
public abstract class AbstractFrom : AbstractClause
{
protected string _alias;
/// <summary>
/// Try to extract the Alias for the current clause.
/// ... |
Scruffy.Data/Json/GuildWars2/TradingPost/TradingPostBuyValue.cs | thoenissen/Scruffy | 2 | 7026133 | <reponame>thoenissen/Scruffy<filename>Scruffy.Data/Json/GuildWars2/TradingPost/TradingPostBuyValue.cs
using Newtonsoft.Json;
namespace Scruffy.Data.Json.GuildWars2.TradingPost;
/// <summary>
/// Buy value
/// </summary>
public class TradingPostBuyValue
{
/// <summary>
/// Quantity
/// </summary>
[Jso... |
NWindowsKits/NWindowsKits/oleidl/interfaces/IOleInPlaceUIWindow.cs | sealkeen/NWindowsKits | 2 | 7026134 | // This source code was generated by ClangCaster
using System;
using System.Runtime.InteropServices;
namespace NWindowsKits
{
// C:/Program Files (x86)/Windows Kits/10/Include/10.0.18362.0/um/oleidl.h:2018
public class IOleInPlaceUIWindow : IOleWindow
{
static Guid s_uuid = new Guid("00000... |
Applicatons/SupportTool/Ado.net_Tutorial/Ado.net_Tutorial/StoredProcDemo.cs | MegaMane/DotNetPractice | 0 | 7026135 | <reponame>MegaMane/DotNetPractice
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using System.Data.SqlClient;
namespace Ado.net_Tutorial
{
class StoredProcDemo
{
/*SUMMARY
* To execute stored procedures, ... |
Source/Qi4CS.Core.Runtime/Model/CodeGeneration/AbstractCompositeModelTypeCodeGenerator.Properties.cs | CometaSolutions/Qi4CS | 1 | 7026136 | <reponame>CometaSolutions/Qi4CS
/*
* Copyright 2012 <NAME>. 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/LIC... |
Prototype/Assets/NPCs/Code/WandererAI.cs | Donut-Studios/Unity3D-AI-and-Procedural-Generation-Framework | 66 | 7026137 | <reponame>Donut-Studios/Unity3D-AI-and-Procedural-Generation-Framework
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.AI;
// The Wanderer runs about aimlessly, deciding on a new destination within
// sight whenever he reaches his current destination.
public c... |
Unity-Project/EyeMR/Assets/BullsEye/Scripts/Model/Pupil/GazeData.cs | PGBullsEye/EyeMR | 2 | 7026138 | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="GazeData.cs" company="PG BullsEye">
// Author: <NAME>
// </copyright>
// <summary>
// This class is used by the PupilListener to store the data received. Visibility and name o... |
sdk/src/Services/CloudTrail/Generated/Model/GetInsightSelectorsRequest.cs | sudoudaisuke/aws-sdk-net | 2 | 7026139 | /*
* Copyright 2010-2014 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 compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "l... |
AgileConfig.Server.Apisite/Filters/PremissionCheckAttribute.cs | coolyuwk/AgileConfig | 0 | 7026140 | using AgileConfig.Server.Apisite.Models;
using AgileConfig.Server.Apisite.Utilites;
using AgileConfig.Server.IService;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Filters;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace AgileConfig.Server.A... |
Source/UnitTests/AM/Text/Tokenizer/TokenTest.cs | fossabot/ManagedIrbis | 0 | 7026141 | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using AM.IO;
using AM.Runtime;
using AM.Text;
using AM.Text.Tokenizer;
namespace UnitTests.AM.Text.Tokenizer
{
[TestClass]
public class TokenTest
{
private void _TestSerialization
(
Token first
... |
iTuner/iTunes/Librarian/Catalog/ICatalog.cs | stevencohn/iTuner | 1 | 7026142 | <gh_stars>1-10
//************************************************************************************************
// Copyright © 2010 <NAME>. All Rights Reserved.
//
//************************************************************************************************
namespace iTuner.iTunes
{
using System;
using Syste... |
HRIS.Service/MasterFile/IEmploymentTypeService.cs | SC1R33RICK/HRIS | 0 | 7026143 | <gh_stars>0
using System.Linq;
using HRIS.Model.MasterFile;
namespace HRIS.Service.MasterFile
{
public interface IEmploymentTypeService
{
void Create(EmploymentTypeModel model, out int employmentTypeId);
void Delete(int employmentTypeId);
EmploymentTypeModel GetById(int employmentTypeI... |
DirectN/DirectN/Generated/ISpatialAudioObjectRenderStream.cs | Steph55/DirectN | 124 | 7026144 | <reponame>Steph55/DirectN<gh_stars>100-1000
// c:\program files (x86)\windows kits\10\include\10.0.22000.0\um\spatialaudioclient.h(735,5)
using System;
using System.Runtime.InteropServices;
namespace DirectN
{
[ComImport, Guid("bab5f473-b423-477b-85f5-b5a332a04153"), InterfaceType(ComInterfaceType.Interface... |
DesignPatternsExam/DesignPatternsExam/Exam/SchoolSystem.Framework/Core/CommandProviders/RemoveTeacherCommandProvider.cs | shakuu/Exams | 0 | 7026145 | <reponame>shakuu/Exams
using SchoolSystem.Framework.Core.CommandProviders.Base;
using SchoolSystem.Framework.Core.Commands.Contracts;
using SchoolSystem.Framework.Core.Factories;
namespace SchoolSystem.Framework.Core.CommandProviders
{
public class RemoveTeacherCommandProvider : CommandProvider
{
priv... |
Model/Contact.cs | mictlanix/mbe | 2 | 7026146 | //
// Contact.cs
//
// Author:
// <NAME> <<EMAIL>>
// <NAME> <<EMAIL>>
//
// Copyright (C) 2011-2020 <NAME>, Mictlanix, and contributors.
//
// 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... |
Assets/Standard Assets/Vehicles/Car/Scripts/CarAudio.cs | FireFlyForLife/Unity-GenericFPS | 0 | 7026147 | using System;
using UnityEngine;
using Random = UnityEngine.Random;
namespace UnityStandardAssets.Vehicles.Car
{
[RequireComponent(typeof (CarController))]
public class CarAudio : MonoBehaviour
{
// This script reads some of the car's current properties and plays sounds accordingly.
// The ... |
FunctionalProgramming/AddVAT/Program.cs | GeorgiPopovIT/C-Advanced-Exercises | 0 | 7026148 | <reponame>GeorgiPopovIT/C-Advanced-Exercises
using System;
using System.Linq;
namespace AddVAT
{
class Program
{
static void Main(string[] args)
{
Func<double, double> opearation = n => n * 1.20;
var input = Console.ReadLine().Split(", ", StringSplitOptions.RemoveEmptyE... |
src/Test/Common/Code/Microsoft/Test/Stability/Extensions/Factories/System.Windows.Media.Animation/RectAnimationFactory.cs | kant2002/wpf-test | 25 | 7026149 | <reponame>kant2002/wpf-test
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Windows;
using System.Windows.Media.Animation;
using Microsoft.Test.Stabil... |
Source/Ultraviolet.Tests/UI/Presentation/Input/MouseGestureTests.cs | Spool5520/ultraviolet | 0 | 7026150 | using System.Runtime.CompilerServices;
using NUnit.Framework;
using Ultraviolet.Presentation.Input;
using Ultraviolet.TestFramework;
namespace Ultraviolet.Tests.UI.Presentation.Input
{
[TestFixture]
public class MouseGestureTests : UltravioletTestFramework
{
[Test]
public void MouseGesture... |
src/MAVN.Service.AdminAPI.DomainServices/AutofacModule.cs | IliyanIlievPH/MAVN.Service.AdminAPI | 0 | 7026151 | <gh_stars>0
using Autofac;
using MAVN.Service.AdminAPI.Domain.Services;
namespace MAVN.Service.AdminAPI.DomainServices
{
public class AutofacModule : Module
{
private readonly string _tokenName;
private readonly bool _isPublicBlockchainFeatureDisabled;
private readonly bool _mobileAppI... |
Section 3/Video 3.4/Source Code/Game.Shared/Base/PlayerControls.cs | PacktPublishing/Create-and-Monetize-your-C-Games-on-iOS-and-Android | 1 | 7026152 | <reponame>PacktPublishing/Create-and-Monetize-your-C-Games-on-iOS-and-Android
using Engine.Shared.Graphics;
using Engine.Shared.Graphics.Drawables;
using Engine.Shared.Touch;
using Game.Shared.Scenes;
using OpenTK;
using System;
using System.Collections.Generic;
using System.Text;
namespace Game.Shared.Base
{
///... |
src/TnTSoftware.Cqrs/DependencyInjection/ServiceCollectionExtensions.cs | t11omas/TnTSoftware.CQRS | 0 | 7026153 | namespace TnTSoftware.Cqrs.DependencyInjection
{
using System;
using Microsoft.Extensions.DependencyInjection;
using TnT.Cqrs.Core;
using TnT.Cqrs.Core.Command;
using TnT.Cqrs.Core.DependencyInjection;
using TnT.Cqrs.Core.ServiceFactory;
using TnTSoftware.Cqrs.Query;
public static cla... |
src/Open-School-Library/Controllers/DeweysController.cs | Programazing/OpenSchoolLibrary-FirstAttempt | 1 | 7026154 | <filename>src/Open-School-Library/Controllers/DeweysController.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 Open_School_Library.Data;
using Open_Sch... |
src/Gallio/Gallio/Common/Xml/NodeType.cs | soelske/mbunit-v3 | 49 | 7026155 | // Copyright 2005-2010 Gallio Project - http://www.gallio.org/
// Portions Copyright 2000-2004 <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.... |
_no_namespace/TCP2_Demo_Cat.ShaderStyle.CharacterSettings.cs | SinsofSloth/RF5-global-metadata | 1 | 7026156 | [Serializable]
public class TCP2_Demo_Cat.ShaderStyle.CharacterSettings // TypeDefIndex: 8987
{
// Fields
public Material material; // 0x10
public Renderer[] renderers; // 0x18
// Methods
// RVA: 0x1C6F390 Offset: 0x1C6F491 VA: 0x1C6F390
public void .ctor() { }
}
|
src/EntityFramework.Relational/RelationalDatabase.cs | garora/EntityFramework | 1 | 7026157 | <reponame>garora/EntityFramework<filename>src/EntityFramework.Relational/RelationalDatabase.cs
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Data;
using System.Data.Com... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.