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/Assets/Tests/PlayMode/MultiScene/Scripts/FirstContext.cs | rsdal/adic | 207 | 7057237 | using Adic;
namespace Assets.Test.MultiScene {
/// <summary>
/// Context root for the first scene.
/// </summary>
public class FirstContext : ContextRoot {
public override void SetupContainers() {
this.AddContainer(new InjectionContainer("FirstSceneDontDestroy"), false)
... |
TreatShop/Views/Treats/Details.cshtml | KeturahDev/TreatShop | 0 | 7057239 | <reponame>KeturahDev/TreatShop
@{Layout="_Layout";}
@model TreatShop.Models.Treat
<h1>@Model.Name's flavors</h1>
@foreach(var join in Model.Flavors)
{
<p>@join.Flavor.Name</p>
<hr>
}
@if (User.Identity.IsAuthenticated && ViewBag.isCurrentUser)
{
<hr>
<div class="row">
<p>@Html.ActionLink($"Remove {Model.Na... |
Magicianred.Accounts.Domain/Interfaces/Services/IAuthenticationService.cs | Magicianred/base-webapi-accounts-network | 2 | 7057240 | <gh_stars>1-10
using Magicianred.Accounts.Domain.Models.Communication;
using System.Threading.Tasks;
namespace Magicianred.Accounts.Domain.Interfaces.Services.Communication
{
public interface IAuthenticationService
{
Task<TokenResponse> CreateAccessTokenAsync(string email, string password);
Ta... |
Nikki/Support.Shared/Class/GCareer.cs | nlgzrgn/Nikki | 7 | 7057241 | <filename>Nikki/Support.Shared/Class/GCareer.cs<gh_stars>1-10
using System;
using System.IO;
using System.Collections;
using System.ComponentModel;
using Nikki.Core;
using Nikki.Utils;
using Nikki.Reflection.Abstract;
using Nikki.Reflection.Interface;
using CoreExtensions.Conversions;
using System.Collections.Generic;... |
StoryText.aspx.designer.cs | erdahlkl/lab_3 | 0 | 7057242 | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//---------------------------------... |
Blish HUD/Controls/_Events/ResizedEventArgs.cs | greaka/Blish-HUD | 126 | 7057243 | <filename>Blish HUD/Controls/_Events/ResizedEventArgs.cs<gh_stars>100-1000
using System;
using Microsoft.Xna.Framework;
namespace Blish_HUD.Controls {
public class ResizedEventArgs : EventArgs {
public Point PreviousSize { get; }
public Point CurrentSize { get; }
public ResizedEventArgs... |
modules/SynthesisCore/UI/FileInfo.cs | Autodesk/synthesis | 136 | 7057244 | <gh_stars>100-1000
namespace SynthesisCore.UI
{
public struct FileInfo
{
// this is a temporary class while the file browser is made
public string Name { get; }
public string LastModified { get; }
public FileInfo(string name, string lastModified)
{
Name = n... |
tests/Frontend/EofTokenTest.cs | andytrigg/dogma | 0 | 7057245 | <filename>tests/Frontend/EofTokenTest.cs
using dogma.Frontend;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq;
namespace tests.Frontend
{
[TestClass]
public class EofTokenTest
{
[TestMethod]
public void Extract_DoesNothing()
{
var mockSource = new Mock<ISo... |
src/IxMilia.Dxf.Test/EntityExtensionTests.cs | glockenmeier/Dxf | 81 | 7057246 | <gh_stars>10-100
using IxMilia.Dxf.Entities;
using Xunit;
namespace IxMilia.Dxf.Test
{
public class EntityExtensionTests
{
[Fact]
public void ShouldContainStartAndEndAngle()
{
var radius = 1.0; // negative radius only for DxfVertex.Bulge, but not for arcs (?)
for... |
Mahapps/JSONObj/FlowTable.cs | lukaszsedek/sdn-ddos-defender | 0 | 7057248 | using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DDOSDefender.JSONObj
{
public class SDNFlowTable: INotifyPropertyChanged
{
public Observable... |
Journey of Liz/Source Code/Journey of Liz/JOL/Classes/ItemContainerClasses/SingleItemContainer.cs | mloveall/Journey_of_Liz | 0 | 7057249 | <filename>Journey of Liz/Source Code/Journey of Liz/JOL/Classes/ItemContainerClasses/SingleItemContainer.cs
using JOL.Interfaces;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace JOL.Classes.ItemClasses
{
class SingleItemContainer : IItemContainer
{
IItem... |
Assets/UnityTK/Code/Utility/Singleton.cs | kennux/OsFPS | 11 | 7057250 | <gh_stars>10-100
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace UnityTK
{
public static class UnitySingleton<T> where T : MonoBehaviour
{
private static T instance;
public static T Get()
{
return instance;
}
public static void Register(T obj)
... |
src/BBT.StructureTools/Compare/TypeOfComparerExclusion.cs | stefan-lindegger/BBT.StructureTools | 2 | 7057251 | <gh_stars>1-10
namespace BBT.StructureTools.Compare
{
/// <summary>
/// Define the different types of exclusion.
/// </summary>
public enum TypeOfComparerExclusion
{
/// <summary>
/// Default value
/// </summary>
None = 0,
/// <summary>
/// A propert... |
NKClientQuickSample/NKProtobuf/service/VAMetadataService.cs | nextk-developer/nkai-sample-codes | 0 | 7057252 | using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Google.Protobuf.WellKnownTypes;
using Grpc.Core;
using VAMetaService;
namespace NKProtobuf
{
public class VAMetadataService : VAMetaService.VAMetaService.VAMetaServiceBase
... |
InterfacePaddingGenerator/Forms/FMain.Designer.cs | FerrisSandCanyon/cppinterfacepaddinggenerator | 0 | 7057253 | <filename>InterfacePaddingGenerator/Forms/FMain.Designer.cs<gh_stars>0
using System.Windows.Forms;
namespace IPG.Forms
{
partial class FMain
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <... |
RequestServiceWCF/RequestService/CustomLogger/ConcreteLogger.cs | ShubusCorporation/RequestService | 0 | 7057254 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using LogLibrary;
using NLog;
namespace LogLibrary
{
class NLogLogger : AbstractLogger
{
private Logger _Logger = LogManager.GetCurrentClassLogger();
public override void Log(Me... |
CSharpSC/Dimensions/Dimensions.cs | rcseacord/CSharpSC | 6 | 7057255 | <gh_stars>1-10
// The MIT License (MIT)
//
// Copyright (c) 2018 <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 limitation the rights
/... |
src/OpenRasta/Pipeline/PipelineBuildingExtensions.cs | openrasta/openrasta-core | 40 | 7057256 | <reponame>openrasta/openrasta-core<filename>src/OpenRasta/Pipeline/PipelineBuildingExtensions.cs
using System;
using System.Collections.Generic;
using System.Linq;
using OpenRasta.Concordia;
namespace OpenRasta.Pipeline
{
public static class PipelineBuildingExtensions
{
public static IEnumerable<IPipelineMidd... |
xamarin-iconify/xamarin-iconify-material-community/MaterialCommunityModule.cs | AccentDesign/xiconify | 21 | 7057257 | using System.Linq;
namespace JoanZapata.XamarinIconify.Fonts
{
public class MaterialCommunityModule : IIconFontDescriptor {
public string FontFileName {
get {
return "android-iconify-material-community.ttf";
}
}
private static readonly ILookup<string, Icon> _characters = EnumToLookup.ToLookup<Materi... |
EngineLayer/GlycoSearch/Node.cs | Yuling1996/MetaMorpheus | 62 | 7057258 | <gh_stars>10-100
namespace EngineLayer
{
public class Node
{
public Node(char v, Node l, Node r, Node m)
{
Value = v;
LeftChild = l;
RightChild = r;
MiddleChild = m;
Level = null;
}
public Node(char v)
{
... |
OVO.Web/Areas/Administration/Controllers/ModelsController.cs | jorosoft/OnlineVehicleOrganizer | 0 | 7057259 | <filename>OVO.Web/Areas/Administration/Controllers/ModelsController.cs<gh_stars>0
using System;
using System.Linq;
using System.Web.Mvc;
using OVO.Services.Contracts;
using OVO.Web.Areas.Administration.ViewModels;
namespace OVO.Web.Areas.Administration.Controllers
{
[Authorize(Roles = "Admin")]
public class M... |
main/POIFS/NIO/FileBackedDataSource.cs | lucadecamillis/npoi | 1,012 | 7057260 | /* ====================================================================
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 ... |
Assets/Jennings/Scripts/New Inventory/OpenOrange.cs | Proxy-G/255-LD | 0 | 7057261 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
namespace Jennings {
public class OpenOrange : MonoBehaviour {
public GameObject OrangeKey;
public GameObject NeverMoreOr;
public GameObject NoMoreOrangeKey;
private... |
src/HOPL.Interpreter/NamespaceTypes/Namespace.cs | Zyntax9/HOPLInterpreter | 0 | 7057262 | <reponame>Zyntax9/HOPLInterpreter
using Antlr4.Runtime.Tree;
using HOPL.Interpreter.Exceptions;
using HOPL.Interpreter.NamespaceTypes.Values;
using System;
using System.Collections.Generic;
using System.Linq;
using Parser = HOPL.Grammar.HOPLGrammarParser;
using System.Collections;
namespace HOPL.Interpreter.Namespace... |
SeedCore.Modules/SeedModules.Account/Domain/RoleInfoClaim.cs | fyl080801/SeedCore | 3 | 7057263 | using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Security.Claims;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace SeedModules.Account.Domain
{
[Table("RoleClaim")]
public class RoleInfoClaim
{... |
ReleaseTags/0.9/Source/LateBindingApi.Office/Enums/MsoMetaPropertyType.cs | NetOfficeFw/Excel-XlLateBinding | 0 | 7057264 | <reponame>NetOfficeFw/Excel-XlLateBinding<filename>ReleaseTags/0.9/Source/LateBindingApi.Office/Enums/MsoMetaPropertyType.cs
//Generated by LateBindingApi.CodeGenerator
using LateBindingApi.Core;
namespace LateBindingApi.Office.Enums
{
[SupportByLibrary("OF12","OF14")]
public enum MsoMetaPropertyType
{
[SupportByL... |
AdventOfCode2017/Day05/Day5Tests.cs | rprouse/AdventOfCode2017 | 1 | 7057265 | <gh_stars>1-10
using System.Collections.Generic;
using System.IO;
using System.Threading.Tasks;
using NUnit.Framework;
namespace AdventOfCode2017
{
public class Day05Tests
{
[Test]
public void TestCountJumps()
{
var instructions = new int[] { 0, 3, 0, 1, -3 };
A... |
Packages/com.harumak.addler/Runtime/Core/PooledObjectOperation.cs | Haruma-K/Addler | 56 | 7057266 | using System;
using Addler.Runtime.Foundation.ObjectPooling;
namespace Addler.Runtime.Core
{
/// <summary>
/// Handles a GameObject that is managed by a pool.
/// </summary>
/// <typeparam name="T"></typeparam>
public class PooledObjectOperation<T> : IDisposable
{
private readonly ... |
Attest.Testing.Contracts/IStartLocalApplicationService.cs | JTOne123/Attest | 0 | 7057267 | <filename>Attest.Testing.Contracts/IStartLocalApplicationService.cs
namespace Attest.Testing.Contracts
{
/// <summary>
/// Represents means of starting up the local application.
/// </summary>
public interface IStartLocalApplicationService
{
/// <summary>
/// Starts the application.... |
source/TestCommon/source/FunctionApp.TestCommon/Configuration/IConfigurationBuilderExtensions.cs | Energinet-DataHub/geh-core | 0 | 7057268 | <gh_stars>0
// Copyright 2020 Energinet DataHub A/S
//
// Licensed under the Apache License, Version 2.0 (the "License2");
// 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 applica... |
source/Sample/SampleApiOwin/NoCacheController.cs | ehvattum/DoubleCache | 35 | 7057269 | <reponame>ehvattum/DoubleCache<gh_stars>10-100
using RandomUser;
using System.Threading.Tasks;
using System.Web.Http;
using System.Net.Http;
using System.Net;
namespace CacheSample
{
[RoutePrefix("nocache")]
public class NoCacheController : ApiController, IUserController
{
[Route("sin... |
src/Invisionware.Core/Extensions/TypeExtensions.cs | Invisionware/Invisionware.Core | 1 | 7057270 | <filename>src/Invisionware.Core/Extensions/TypeExtensions.cs
// ***********************************************************************
// Assembly : Invisionware.Core
// Author : <NAME>
// Created : 01-27-2018
//
// Last Modified By : <NAME>
// Last Modified On : 01-23-2018
// *************... |
src/Silo/Devices/8BitAdder.cs | fossabot/Silo | 7 | 7057271 | // ReSharper disable MemberCanBePrivate.Global
namespace Silo.Devices
{
/// <summary>
/// Input Map:<para/>
/// 7: A1<para/>
/// 6: B1<para/>
/// 5: C1<para/>
/// 4: D1<para/>
/// 3: E1<para/>
/// 2: F1<para/>
/// 1: G1<para/>
/// 0: H1<para/>
/// <para/>
/// 15: A2<para... |
src/EduManagementLab.EfRepository/Repositories/GenericRepository.cs | martinvehmas/EduManagementLab | 0 | 7057272 | <filename>src/EduManagementLab.EfRepository/Repositories/GenericRepository.cs
using EduManagementLab.Core.Interfaces.Repositories;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
namespace EduManagementLab.EfRepository.Repositories
{
public class GenericRepository... |
src/CreativeMinds.CQS/Validators/GenericValidationAsyncQueryHandlerDecorator.cs | steentottrup/CQS | 0 | 7057273 | <reponame>steentottrup/CQS<gh_stars>0
using CreativeMinds.CQS.Queries;
using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading;
using System.Threading.Tasks;
namespace CreativeMinds.CQS.Validators {
public clas... |
source/Mlos.NetCore.UnitTest/SemaphoreTests.Linux.cs | GindaChen/MLOS | 81 | 7057274 | // -----------------------------------------------------------------------
// <copyright file="SemaphoreTests.Linux.cs" company="Microsoft Corporation">
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root
// for license information.
// </c... |
unity-midi/Assets/UnityMidi/MidiLoader/Events/ChannelVoice/ControlChangeMidiEvent.cs | sabikku/unity-midi | 3 | 7057275 | using System;
using System.IO;
namespace MidiLoader.Events.ChannelVoice {
public class ControlChangeMidiEvent : ChannelVoiceMidiEvent {
public ushort channel = 0;
public ushort controllerNo = 0;
public ushort value = 0;
protected override byte firstFourBitsMask {
get {
return 0xb0;
}
}
... |
Source/RimShips/EnterMapUtilityBoats.cs | Proxyer/Boats | 0 | 7057276 | <gh_stars>0
using System;
using System.Collections.Generic;
using System.Linq;
using RimWorld;
using RimWorld.Planet;
using RimShips.AI;
using SPExtended;
using Verse;
namespace RimShips
{
public static class EnterMapUtilityBoats
{
public static void Enter(Caravan caravan, Map map, CaravanEnterMode en... |
PFDALTest/Program.cs | DeiusShrab/PFDB | 0 | 7057277 | <gh_stars>0
using System;
using System.Linq;
using System.Text.RegularExpressions;
using DBConnect;
using PFDBCommon.DBModels;
namespace PFDALTest
{
class Program
{
// Split string by comma UNLESS that comma is within parentheses
private static string REGEX_SPLIT = @"(?:\s)?([^,\r\n\s(][^,\r\n(]*(?<dq>\()... |
Scripts/BlockClasses/Block05.cs | Duude92/KOTRunity | 2 | 7057278 | <reponame>Duude92/KOTRunity
using UnityEngine;
using System.Collections;
//joinBlock
[ExecuteInEditMode]
public class Block05 : BlockType, IBlocktype, IDisableable
{
UnityEngine.GameObject _thisObject;
public UnityEngine.GameObject thisObject { get => _thisObject; set => _thisObject = value; }
public Trans... |
MigrateToNewCsproj/ProjectMigrator/ProjectMigrator.cs | saltukkos/MigrateToNewCsproj | 0 | 7057279 | using System.Collections.Generic;
using System.Linq;
using JetBrains.Annotations;
using MigrationItems;
using Saltuk.Utils.Validation;
namespace ProjectMigrator
{
public class ProjectMigrator
{
[NotNull]
[ItemNotNull]
private readonly IReadOnlyList<IItemMigrator> _itemMigrators;
... |
src/XamarinEvolve.iOS/PlatformFeatures/Extensions/FavoritesHandler.cs | XpiritBV/app-evolve | 15 | 7057280 | <reponame>XpiritBV/app-evolve<filename>src/XamarinEvolve.iOS/PlatformFeatures/Extensions/FavoritesHandler.cs<gh_stars>10-100
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Foundation;
using Newtonsoft.Json;
using Xamarin.Forms;
using XamarinEvolve.DataObjects;... |
Samples/aspnet-angular/MicrosoftGraph_Security_API_Sample/Models/ViewModels/AlertFilterViewModel.cs | Microsoft/securitydev | 16 | 7057281 | // -----------------------------------------------------------------------
// <copyright file="AlertFilterViewModel.cs" company="Microsoft Corporation">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
// -----------------------------------------------------------------------
using Mic... |
Source/Orion.UWP/Views/Contents/QuoteStatusContent.xaml.cs | OrionDevelop/Orion | 8 | 7057282 | <filename>Source/Orion.UWP/Views/Contents/QuoteStatusContent.xaml.cs
using Windows.Foundation;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Data;
using Orion.UWP.ViewModels.Contents;
using WinRTXamlToolkit.Controls.Extensions;
// The User Control item template is documented at https:... |
Assets/Arj2D/Editor/QuadToSpriteSize.cs | arkms/Arj2D-FrameWork | 16 | 7057283 | <filename>Assets/Arj2D/Editor/QuadToSpriteSize.cs<gh_stars>10-100
using UnityEngine;
using UnityEditor;
namespace Arj2D
{
public class QuadToSpriteSize
{
[MenuItem("Arj2D/Resize/QuadResize2Texture")]
static void QuadResize()
{
GameObject go = Selection.activeGameObject;
... |
Gu.Orm.Npgsql.Analyzers.Tests/Parsing/SqlNodeAssert.cs | GuOrg/Gu.Orm | 2 | 7057284 | <reponame>GuOrg/Gu.Orm
namespace Gu.Orm.Npgsql.Analyzers.Tests.Parsing
{
using System.Linq;
using Gu.Orm.Npgsql.Analyzers.Parsing;
using NUnit.Framework;
public static class SqlNodeAssert
{
public static void Tree(SqlNode node)
{
foreach (var property in node.GetType().G... |
WebAlbum/WebAlbum.Web/Views/Manage/Delete.cshtml | demchuknick6/WebAlbum | 0 | 7057285 | <filename>WebAlbum/WebAlbum.Web/Views/Manage/Delete.cshtml
@{
ViewBag.Title = "Delete account";
}
<h2>Delete</h2>
<h4>Are you sure you want to delete this account?</h4>
<div class="text-info">@ViewBag.Message</div>
<div>
@using (Html.BeginForm("Delete", "Manage", FormMethod.Post))
{
@Html.AntiFor... |
NewsAggregator/NewsAggregator.Domain/Services/RssService.cs | DreiK-one/NewsAggregator | 0 | 7057286 | <gh_stars>0
using AutoMapper;
using Microsoft.Extensions.Logging;
using NewsAggregator.Core.DTOs;
using NewsAggregator.Core.Interfaces;
using System.Collections.Concurrent;
using System.ServiceModel.Syndication;
using System.Xml;
namespace NewsAggregator.Domain.Services
{
public class RssService : IRssService
... |
MmsPiFobReader/RS232Port.cs | DanDude0/MilwaukeeMakerspacePiFobReader | 2 | 7057287 | using System;
using System.IO;
using System.IO.Ports;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading;
namespace MmsPiFobReader
{
static class RS232Port
{
private static SerialPort serialPort;
private static string output;
private static int ret;
private static int cursor;
p... |
Source/Google/Google.Maps.Hosting/Builders/Interfaces.cs | proxoft/Maps | 0 | 7057288 | using System;
using Microsoft.Extensions.Configuration;
using Proxoft.Maps.Google.Common;
namespace Google.Maps.Hosting.Builders
{
public interface IGoogleApiConfigurationBuilder
{
IGoogleLoaderBuilder Configure(Func<GoogleApiConfiguration> factory);
/// <summary>
/// Expected configu... |
api/PayrollProcessor.Core.Domain/Intrastructure/Operations/Commands/CommandDispatcher.cs | KurnakovMaksim/payroll-processor | 0 | 7057289 | <gh_stars>0
using System;
using System.Collections.Concurrent;
using System.Threading;
using Ardalis.GuardClauses;
using LanguageExt;
using PayrollProcessor.Core.Domain.Intrastructure.Operations.Factories;
/// <summary>
/// From https://github.com/jbogard/MediatR
/// </summary>
namespace PayrollProcessor.Core.Domain.I... |
eFormAPI/eFormAPI.Web/Services/Security/ClaimsService.cs | Gid733/eform-angular-frontend | 3 | 7057290 | /*
The MIT License (MIT)
Copyright (c) 2007 - 2021 Microting A/S
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify... |
backend/TripBooker.HotelService/Model/RoomOption.cs | TPiechocki/TripBooker | 0 | 7057291 | using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using TripBooker.Common.Hotel;
namespace TripBooker.HotelService.Model;
internal class RoomOption
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int Id { get; set; }
public RoomType... |
Client/ZeebeClient.cs | falko/zeebe-client-csharp | 0 | 7057292 | <reponame>falko/zeebe-client-csharp
//
// Copyright (c) 2018 camunda services GmbH (<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
//
// http://www.apache.or... |
src/Queue.cs | trampster/AsyncThreading | 0 | 7057293 | using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
namespace AsyncThreading
{
public class WorkItemQueue
{
readonly WorkItem[] _items;
ManualResetEvent _workItemAvailable = new ManualResetEvent(false);
uint _enqueueIndex = 0; // index ... |
src/Yisoft.Framework/Security/Cryptography/HashAlgorithmHelper.cs | yisoft-dotnet/framework | 0 | 7057294 | <reponame>yisoft-dotnet/framework
// ===============================================================================
// Website: https://yi.team/
// Copyright © Yi.TEAM. All rights reserved.
// ===============================================================================
using System;
using System.Security.Cryptogra... |
sdk/dotnet/Secretmanager/Secret.cs | 23doors/pulumi-gcp | 0 | 7057295 | <gh_stars>0
// *** 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.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;
namespa... |
src/Microsoft.Diagnostics.Runtime/src/Implementation/FileLocatorBase.cs | criteo-forks/clrmd | 0 | 7057296 | <reponame>criteo-forks/clrmd
using System.Collections.Immutable;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices;
namespace Microsoft.Diagnostics.Runtime.Implementation
{
/// <summary>
/// A base file locator, each method only builds the key under which a file is located.
/// </su... |
ToolboxImport/HtmlView.Designer.cs | murkhog/emistoolbox | 1 | 7057297 | <filename>ToolboxImport/HtmlView.Designer.cs
namespace ImportTool
{
partial class HtmlView
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resourc... |
oxide/plugins/rust/Voter.cs | john-clark/rust-oxide-umod | 13 | 7057298 | <filename>oxide/plugins/rust/Voter.cs
using System.Collections.Generic;
using Newtonsoft.Json;
using Oxide.Core;
using Oxide.Core.Configuration;
using Oxide.Core.Plugins;
using System.Linq;
using System;
namespace Oxide.Plugins
{
[Info("VoteRewards", "k1lly0u", "2.1.0", ResourceId = 752)]
class Voter : RustPl... |
src/Application/Configuration_Lib/BuildConfig.cs | jonparker/govmeeting | 0 | 7057299 | <reponame>jonparker/govmeeting
using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Extensions.Configuration;
using GM.Utilities;
using System.IO;
namespace GM.Application.Configuration
{
public static class BuildConfig
{
public static void Build(IConfigurationBuilder con... |
Assets/UniVoxel/Scripts/Core/World/WorldBase.cs | torano111/UniVoxel | 0 | 7057300 | <reponame>torano111/UniVoxel<gh_stars>0
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UniVoxel.Utility;
using UniRx;
using System;
namespace UniVoxel.Core
{
public abstract class WorldBase : SingletonMonoBehaviour<WorldBase>
{
[SerializeField]
LayerMask _... |
src/LiveCharts.Core/Animations/Ease/CompletedFunction.cs | adospace/Live-Charts | 0 | 7057301 | namespace LiveCharts.Animations.Ease
{
/// <summary>
/// Defines a virtual completed function.
/// </summary>
public class CompletedFunction : IEasingFunction
{
/// <inheritdoc></inheritdoc>
public double GetProgress(double time) => 1;
}
}
|
test/E2ETests/Smoke.E2E.Tests/DataRowTests.cs | azchohfi/testfx | 1 | 7057302 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace MSTestAdapter.Smoke.E2ETests
{
using Microsoft.MSTestV2.CLIAutomation;
using Microsoft.VisualStudio.TestTools.UnitTesting;
[TestClas... |
PushBulletSharp.Core/Models/Requests/Ephemerals/EphemeralRequestBase.cs | briankavanaugh/PushBulletSharp.Core | 1 | 7057303 | <filename>PushBulletSharp.Core/Models/Requests/Ephemerals/EphemeralRequestBase.cs
using System.Runtime.Serialization;
namespace PushBulletSharp.Core.Models.Requests.Ephemerals
{
/// <summary>
/// Ephemeral Request Base
/// </summary>
[DataContract]
public abstract class EphemeralRequestBase
{
... |
ListManipulationBasics/ListManipulationBasics/Program.cs | ohu655/.NETFundamentals | 0 | 7057304 | <gh_stars>0
using System;
using System.Collections.Generic;
using System.Linq;
namespace ListManipulationBasics
{
class Program
{
static void Main(string[] args)
{
List<int> numbers = Console.ReadLine()
.Split()
.Select(int.Parse)
... |
task-manager-app/task-manager-app/TaskManagerDbContext.cs | yyaddaden/entity-framework-intro-demo | 1 | 7057305 | <filename>task-manager-app/task-manager-app/TaskManagerDbContext.cs
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Text;
namespace task_manager_app
{
class TaskManagerDbContext : DbContext
{
public DbSet<Models.User> Users { get; set; }
public... |
Chapter 14/StorageManagerCommand.cs | bpbpublications/Implementing-Design-Patterns-in-C-and-.NET-5 | 0 | 7057306 | <reponame>bpbpublications/Implementing-Design-Patterns-in-C-and-.NET-5
using System;
using System.Collections.Generic;
using System.Text;
namespace _14.ChapterFourteen
{
public class StorageManagerCommand : IPurchaseCommand
{
private readonly Purchase _purchase;
public StorageManage... |
Assets/Scripts/Socket/ServerEvents/WelcomeEvent.cs | sakupo/unity-template | 0 | 7057307 | <reponame>sakupo/unity-template
using System;
using System.Collections.Generic;
using Utility;
namespace Socket.ServerEvents
{
public class WelcomeEvent : IServerEvent
{
public void SetOptions(Dictionary<string, Object> options)
{
return;
}
public void Call()
{
Debug.Log("Welcome!"... |
testsuite/dbt/api/dcps/sacs/domainParticipant/code/test/sacs/DomainParticipant4.cs | brezillon/opensplice | 133 | 7057308 | <reponame>brezillon/opensplice<filename>testsuite/dbt/api/dcps/sacs/domainParticipant/code/test/sacs/DomainParticipant4.cs
namespace test.sacs
{
/// <date>May 23, 2005</date>
public class DomainParticipant4 : Test.Framework.TestCase
{
public DomainParticipant4()
: base("sacs_domainPartic... |
Web/PatniListi.Web/Views/Home/Guidance.cshtml | deedeedextor/PatniListi | 0 | 7057309 | <filename>Web/PatniListi.Web/Views/Home/Guidance.cshtml
@{
ViewData["Title"] = "Ръководство за използване";
}
<div class="container shadow pl-4 pr-4 pb-2 text-white">
<fieldset>
<legend class="profile-title text-center text-white">@this.ViewData["Title"]</legend>
<br>
<div class="h4 ... |
src/Homey.Net/Dtos/Alarm.cs | epsmae/Homey-.Net | 4 | 7057310 | <gh_stars>1-10
using System;
namespace Homey.Net.Dtos
{
public class Alarm
{
public string Id { get; set; }
public string Name { get; set; }
public string Time { get; set; }
public bool Enabled { get; set; }
public DateTime? NextOccurance { get; set; }
publi... |
sdk/dataprotection/Microsoft.Azure.Management.DataProtection/src/Generated/OperationResultOperationsExtensions.cs | gjy5885/azure-sdk-for-net | 3,268 | 7057311 | // <auto-generated>
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// re... |
src/CodeArts.Emit/InterceptAsync.cs | juszhc/CodeArts | 47 | 7057312 | using System.Threading.Tasks;
namespace CodeArts.Emit
{
/// <summary>
/// 拦截执行方法。
/// </summary>
public class InterceptAsync
{
/// <summary>
/// 调用方法。
/// </summary>
/// <param name="context">上下文。</param>
public virtual Task RunAsync(InterceptContext context... |
StepicoGameJam/Assets/Plugins/GameTemplate/Scripts/Subsystems/2DPointingArrows/Arrows/UIArrow2D.cs | savik-games/StepicoGameJam | 180 | 7057313 | using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using TMPro;
//TODO: poll this
public class UIArrow2D : MonoBehaviour {
[NonSerialized] public Transform pointTo;
[NonSerialized] public ContactFilter2D filterPointToPlayer = new ContactFilter2D();
[H... |
NaughtyAttributes/Editor/PropertyDrawConditions/PropertyDrawCondition.cs | tertle/com.bovinelabs.naughtyattributes | 9 | 7057314 | <reponame>tertle/com.bovinelabs.naughtyattributes
namespace BovineLabs.NaughtyAttributes.Editor.PropertyDrawConditions
{
using BovineLabs.NaughtyAttributes.Editor.Wrappers;
using UnityEngine.Assertions;
public abstract class PropertyDrawCondition
{
public abstract bool CanDrawProperty(Attribut... |
tests/Tests.Core/ManagedElasticsearch/Clusters/INestTestCluster.cs | JTOne123/elasticsearch-net | 1 | 7057315 | // Licensed to Elasticsearch B.V under one or more agreements.
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information
using Nest;
namespace Tests.Core.ManagedElasticsearch.Clusters
{
public interface INestTestCluster
{
IElasti... |
NetVampiro/java/io/FileReader.cs | bastie/NetVampire | 2 | 7057316 | /*
* 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 writing, softwar... |
2016-09 Projet Saint-Pierre - C#/SOURCES/St-Pierre/View/Partial/userControlInformation.cs | anctilsa/sources | 0 | 7057317 | using System;
using System.Drawing;
using System.Windows.Forms;
using StPierre.database;
using StPierre.models;
using Type = StPierre.models.Type;
namespace StPierre.View.Partial
{
public partial class UserControlInformation : UserControl
{
public int ItemId;
private SqlManager _db;
p... |
src/ApiActions/Responses/Construction/ApiActionResponseAbstractFactory.cs | DanielAHill/ApiActions | 2 | 7057318 | <reponame>DanielAHill/ApiActions<filename>src/ApiActions/Responses/Construction/ApiActionResponseAbstractFactory.cs<gh_stars>1-10
// Copyright (c) 2018 <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.
... |
NoteStore/Contract/V1/Request/UserRegistrationRequest.cs | atulmirajkar/NoteStore | 0 | 7057319 | <reponame>atulmirajkar/NoteStore
using System.ComponentModel.DataAnnotations;
namespace NoteStore.Contract.V1.Request
{
public class UserRegistrationRequest
{
[EmailAddress]
public string Email { get; set; }
public string Password { get; set; }
}
} |
GameFoundation/Stats/MonoBehaviours/StatCalculatorBase.cs | d4160/UnityGameFramework | 0 | 7057320 | using d4160.GameFramework;
using d4160.Utilities;
using UltEvents;
using UnityEngine;
using UnityEngine.Events;
using UnityEngine.GameFoundation;
namespace d4160.GameFoundation
{
public class StatCalculatorBase : MonoBehaviour, IStatCalculator
{
[SerializeField] protected StatCalculatorDefinitionBase ... |
Assets/Scripts/REDUCE/DoorShuffle.cs | Emilio2001Rivers2016/USO_3R | 0 | 7057321 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class DoorShuffle : MonoBehaviour {
[SerializeField] private Image leftDoor, middleDoor, rightDoor, lBlink, mBlink, rBlink;
private int leftPos, middlePos, rightPos, randSelect, doorSelect;
public static Do... |
tests/ByteDev.Crypto.UnitTests/Encryption/TestHasAttributes.cs | ByteDev/ByteDev.Crypto | 1 | 7057322 | using ByteDev.Crypto.Encryption;
namespace ByteDev.Crypto.UnitTests.Encryption
{
internal class TestHasAttributes
{
[Encrypt]
public string Name { get; set; }
[Encrypt]
public string Address { get; set; }
// Will be ignored cos it is not string
[Encrypt]
... |
VCSCompiler/MethodCompiler.cs | Yttrmin/CSharpTo2600 | 7 | 7057323 | <filename>VCSCompiler/MethodCompiler.cs
#nullable enable
using Mono.Cecil;
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
using System.Text;
using VCSFramework;
namespace VCSCompiler
{
internal partial class MethodCompiler
{
private readonly Meth... |
Framework/WanderController.cs | Semprini42/Untitle-Game-Demo | 0 | 7057324 | <filename>Framework/WanderController.cs
using Godot;
using System;
public class WanderController : Node2D
{
[Export] int wanderRange = 32;
private Vector2 startPosition;
private Vector2 targetPosition;
private Timer timer;
public override void _Ready()
{
startPosition = GlobalPosition;... |
src/MarginTrading.MarketMaker/Services/ExtPrices/IHedgingPreferenceService.cs | LykkeCity/MT.MarketMaker | 6 | 7057325 | <reponame>LykkeCity/MT.MarketMaker
using System.Collections.Immutable;
namespace MarginTrading.MarketMaker.Services.ExtPrices
{
public interface IHedgingPreferenceService
{
/// <summary>
/// Returns exchanges available for hedging with their preference amount from 0 to 1.
/// 0 means h... |
MVCDemov2/MVCDemo/Models/Flight.cs | wymillerlinux/AircraftSociety | 1 | 7057326 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace MVCDemo.Models
{
public class Flight
{
public int FlightID { get; set; }
public string DepartingAirport { get; set; }
public string ArrivingAirport { get; set; }
public int? AircraftI... |
E_ticaret/E_ticaret/Models/kargo.cs | Buketpeh/E-ticaret-website | 0 | 7057327 | <reponame>Buketpeh/E-ticaret-website
namespace E_ticaret.Models
{
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.Spatial;
[Table("kargo")]
public partial class kargo
... |
EducationalMedicalSystem.Library/Model/LectureGroup.cs | Azonos712/EducationalMedicalSystem | 0 | 7057328 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace EducationalMedicalSystem.Library.Model
{
[Serializable]
public class LectureGroup
{
public string Title { get; }
public int StartLectureIndex { get; }
publi... |
Assets/Scripts/GameManager.cs | AI-In-Games/FormationMovement | 14 | 7057329 | using UnityEngine;
using System.Collections.Generic;
public enum FormationType
{
None,
Testudo,
Orb,
Wedge
}
public class GameManager : MonoBehaviour
{
[Header("Steering Behaviors")]
public float AgentSpeed = 10f;
public float AgentSlowingDistance = 2f;
public float AgentDistance = 1f... |
NUnitTests/Tests/Touch/TouchTests.cs | spasarto/InputStateManager | 4 | 7057330 | // ***************************************************************************
// This is free and unencumbered software released into the public domain.
//
// Anyone is free to copy, modify, publish, use, compile, sell, or
// distribute this software, either in source code form or as a compiled
// binary, for any p... |
CSharpProgrammierHandbuch/HelloWorld/Program.cs | joecare99/CSharp | 1 | 7057331 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
// A Hello World! program in C#.
namespace HelloWorld
{
class Program
{
static int Main(string[] args)
{
// the easiest way to Output something is to use Console.Wri... |
Samples/AdventureWorks/Generated/Nettiers.AdventureWorks.UnitTests/ProductModelIllustrationTest.generated.cs | niemyjski/nettiers | 66 | 7057332 | <filename>Samples/AdventureWorks/Generated/Nettiers.AdventureWorks.UnitTests/ProductModelIllustrationTest.generated.cs
/*
File Generated by NetTiers templates [www.nettiers.com]
Important: Do not modify this file. Edit the file ProductModelIllustrationTest.cs instead.
*/
#region Using directives
using S... |
FDPColumn/FDPColumn/CategoryClasses/med.cs | AegisIK/sopsapp | 0 | 7057333 | using System;
using System.Collections.Generic;
using System.Text;
namespace FDPColumn.CategoryClasses
{
public static class med
{
public static string[] components = new string[16] { "Acute Abdominal/Flank Pain", "Dialysis/Chronic Renal Failure", "Alcohol Intoxication/Withdrawal",
"Altere... |
tema_constructors/Program.cs | Turcu11/tema_constructors | 0 | 7057334 | <filename>tema_constructors/Program.cs
using System;
namespace tema_constructors
{
class Program
{
static void Main(string[] args)
{
Point point1 = new Point(1, 6);
Point point2 = new Point(4, 5);
Point point3 = new Point(2, 8);
point1.PrintPoint... |
tests/QueryRuntime/DateTimeFunctionTest.cs | trylock/viewer | 1 | 7057335 | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq;
using Viewer.Data;
using Viewer.Query;
using Viewer.QueryRuntime;
namespace ViewerTest.QueryRuntime
{
[TestCl... |
Assets/Scripts/Menus/MainMenuUI.cs | intns/Project-404 | 2 | 7057336 | <filename>Assets/Scripts/Menus/MainMenuUI.cs
/*
* MainMenuUI.cs
* Created by: Ambrosia
* Created on: 25/4/2020 (dd/mm/yy)
* Created for: needing a UI for the main menu
*/
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using UnityEngine;
using UnityEngine.SceneManagement... |
WiktionaryMapper/Data/Translation.cs | interjaz/WiktionaryMapper | 7 | 7057337 | <filename>WiktionaryMapper/Data/Translation.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Memoling.Tools.WiktionaryMapper.Data
{
public class Translation
{
public string ExpressionA { get; set; }
public string E... |
Sss.GvErlenacker.Newsletter.DomainLayer/DataLayer/Entities/NewsletterUser.cs | roli81/Sss.GvErlenacker | 0 | 7057338 | <reponame>roli81/Sss.GvErlenacker
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace Sss.GvErlenacker.Newsletter.DomainLayer.DataLayer.Entities
{
public class NewsletterUser
{
[Key]
public Guid NewsletterUserID { get; set; }
public st... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.