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 |
|---|---|---|---|---|
CSharp/RayTracerChallenge.App.Library/Extensions/CanvasExtensions.cs | jrockwood/RayTracerChallenge | 0 | 7046754 | // ---------------------------------------------------------------------------------------------------------------------
// <copyright file="CanvasExtensions.cs" company="<NAME>">
// Copyright (c) <NAME>. All Rights Reserved. Licensed under the Apache License, Version 2.0. See
// LICENSE.txt in the project root fo... |
ambeth/Ambeth.Bytecode/ambeth/bytecode/FieldInstance.cs | Dennis-Koch/ambeth | 0 | 7046755 | using De.Osthus.Ambeth.Bytecode.Behavior;
using De.Osthus.Ambeth.Util;
using System;
using System.Reflection;
using System.Text;
namespace De.Osthus.Ambeth.Bytecode
{
public class FieldInstance
{
protected FieldInfo field;
protected readonly NewType owner;
protected readonly FieldAttributes access;... |
Section 6/PresentationalWebsite/PresentationalWebsite/Pages/ToDosPage.cshtml.cs | PacktPublishing/C-8-and-.NET-Core-3.1-Recipes-2nd-Edition | 6 | 7046756 | <filename>Section 6/PresentationalWebsite/PresentationalWebsite/Pages/ToDosPage.cshtml.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using System.Text.Json;
using Pres... |
NModbusAsync/IO/ModbusTransport.cs | wolf8196/NModbusAsync | 13 | 7046757 | <filename>NModbusAsync/IO/ModbusTransport.cs<gh_stars>10-100
using System;
using System.IO;
using System.Net.Sockets;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
using NModbusAsync.IO.Abstractions;
using NModbusAsync.Messages;
namespace NModbusAsync.IO
{
internal abst... |
src/BeFaster.App/Checkout/CheckoutEngine.cs | CX-Checkout/pdto01 | 0 | 7046758 | using System.Collections.Generic;
namespace BeFaster.App.Checkout
{
public class CheckoutEngine
{
private readonly IDictionary<char, Item> _priceList = new Dictionary<char, Item>
{
{'A', new Item('A', 50)},
{'B', new Item('B', 30)},
{'C', new Item('C', 20)},
... |
Monifier.BusinessLogic.Queries.IntegrationTests/AccountCommandsTests.cs | Ivan-Proskurin/Monifier | 0 | 7046759 | <gh_stars>0
using System;
using System.Linq;
using FluentAssertions;
using Monifier.BusinessLogic.Model.Accounts;
using Monifier.BusinessLogic.Model.Base;
using Monifier.BusinessLogic.Queries.Transactions;
using Monifier.DataAccess.Model.Base;
using Monifier.DataAccess.Model.Expenses;
using Monifier.DataAccess... |
Pandaros.API/Monsters/MonsterManager.cs | JBurlison/Pandaros.API | 1 | 7046760 | using Monsters;
using NPC;
using Pandaros.API.ColonyManagement;
using Pandaros.API.Entities;
using Pandaros.API.Items;
using Pandaros.API.Models;
using Pipliz;
using Shared;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using static AI.PathFinder;
using static AI.PathingMa... |
src/Cofoundry.Domain/Domain/Users/Helpers/UserCommandPermissionsHelper.cs | aTiKhan/cofoundry | 780 | 7046761 | <gh_stars>100-1000
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
using Cofoundry.Domain.Data;
using Cofoundry.Domain.CQS;
using Cofoundry.Core;
namespace Cofoundry.Domain.Internal
{
public class UserCommandP... |
ProgramingStudy/Study/RegexpTests.cs | przemekwa/ProgramingStudy | 0 | 7046762 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
namespace ProgramingStudy.Study
{
public class RegexpTests : IStudyTest
{
public void Study()
{
var result = Test8(null);
... |
TechRadarApi/V1/Controllers/TechRadarApiController.cs | LBHackney-IT/tech-radar-api | 0 | 7046763 | using TechRadarApi.V1.Boundary.Response;
using TechRadarApi.V1.UseCase.Interfaces;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Threading.Tasks;
namespace TechRadarApi.V1.Controllers
{
[ApiController]
[Route("api/v1/technologies")]
[Produces("application/json"... |
src/Snarfz.Core/IScanErrorHandler.cs | asipe/snarfz | 0 | 7046764 | // Copyright (c) <NAME>. All rights reserved. Licensed under the MIT License (MIT). See License.txt in the project root for license information.
using System;
namespace Snarfz.Core {
public interface IScanErrorHandler {
void Handle(Config config, ScanErrorSource source, string currentPath, Exception exce... |
URI REPETIÇÃO/1155/Program.cs | CaioLBorges/ExerciciosURI | 0 | 7046765 | using System;
using System.Globalization;
namespace _1155
{
class Program
{
static void Main(string[] args)
{
double S = 0.0;
for (int i = 1; i <= 100; i++)
{
S += 1.0 / i;
}
Console.WriteLine(S.ToString("F2"), Culture... |
ComfyPWA/ComfyPWA/Client/Services/AuthService.cs | comfycoder/BlazorMDN | 0 | 7046766 | <gh_stars>0
using Blazored.LocalStorage;
using ComfyPWA.Client.Common;
using ComfyPWA.Shared.Models;
using Microsoft.AspNetCore.Components.Authorization;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Threading.Tasks;
namespace ComfyPWA.Client.Services
{
public class AuthService : IAuthService... |
MobaClientCom/ListPool.cs | moto2002/mobahero_src | 4 | 7046767 | <reponame>moto2002/mobahero_src
using System;
using System.Collections.Generic;
namespace MobaClientCom
{
public class ListPool
{
public static List<T> get<T>()
{
return ObjPool<List<T>>.get();
}
public static void release<T>(List<T> list)
{
list.Clear();
ObjPool<List<T>>.release(l... |
sdk/databox/Azure.Management.DataBox/src/Generated/Models/CloudError.Serialization.cs | t-vajana/azure-sdk-for-net | 0 | 7046768 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System.Collections.Generic;
using System.Text.Json;
using Azure.Core;
namespace Azure.Management.DataBox.Models
{
public partial class CloudError : IUtf8JsonSerializable
... |
QRCodeReader/Test/TestCase.cs | zzvio/wpfps1 | 0 | 7046769 | <gh_stars>0
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZXing;
namespace SCapture.Test
{
[TestClass]
internal class TestCase
{
[TestMethod]
p... |
unity-commons/commons/scripts/GameFPS.cs | EyeTribe/tet-unity-devkit | 5 | 7046770 | /*
* Copyright (c) 2013-present, The Eye Tribe.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree.
*
*/
using UnityEngine;
using System.Linq;
using System.Collections.Generic;
using System.Collections.Concurr... |
Plugins/UI/XmlLayout/Tags/Button.cs | exporl/lars-core | 0 | 7046771 | using UnityEngine;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine.UI;
using System.Linq;
using UI.Tables;
#if TEXTMESHPRO_PRESENT
using TMPro;
#endif
namespace UI.Xml.Tags
{
public class ButtonTagHandler : ElementTagHandler
{
public override MonoBehaviour p... |
src/HoneybeeSchema.Test/Model/ShadeTests.cs | AntoineDao/honeybee-schema-dotnet | 0 | 7046772 | /*
* Honeybee Model Schema
*
* This is the documentation for Honeybee model schema.
*
* The version of the OpenAPI document: 1.13.0
* Contact: <EMAIL>
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
using NUnit.Framework;
using System;
using System.Linq;
using System.IO;
using Syste... |
ThawaniSDKNET/Models/PaymentIntentModels/ConfirmPaymentIntentRequestModel.cs | ghulamostafa/ThawaniSDKNET | 0 | 7046773 | <filename>ThawaniSDKNET/Models/PaymentIntentModels/ConfirmPaymentIntentRequestModel.cs<gh_stars>0
namespace ThawaniSDKNET.Models.PaymentIntentModels
{
public class ConfirmPaymentIntentRequestModel
{
public string payment_method_id { get; set; }
public int amount { get; set; }
}
}
|
Server/NultienShop.IDataAccess/IInventoryRepository.cs | nubara300/shop-nultien | 0 | 7046774 | <gh_stars>0
using NultienShop.DataAccess.Domain.Models;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace NultienShop.IDataAccess
{
public interface IInventoryRepository
{
Task<List<InventoryArticle>> GetArticleInventoriesByQuantity(int articleId, int quantity);
}
} |
Public/Src/Utilities/Plugin/PluginGrpcInterceptor.cs | miniksa/BuildXL | 448 | 7046775 | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;
using Grpc.Core;
using Grpc.Core.Interceptors;
using Grpc.Core.Logging;
namespace BuildXL.Plugin
{
internal sealed class PluginGrpcInterceptor : Interc... |
src/Orient/Orient.NUnit/Graph/GraphClassesTests.cs | emman-ok/OrientDB-NET.binary | 0 | 7046776 | using System;
using System.Linq;
using NUnit.Framework;
using Orient.Client;
namespace Orient.Tests.Graph
{
[TestFixture]
public class GraphClassesTests
{
[Test]
public void ShouldNotThrowExceptionWhenCreatingVerticesWithNonASCIIChars()
{
using (TestDatabas... |
source/MikhailKhalizev.Max/source/Program/Auto/z-1013-1716.cs | mikhail-khalizev/max | 3 | 7046777 | <reponame>mikhail-khalizev/max
using System;
using MikhailKhalizev.Processor.x86.BinToCSharp;
namespace MikhailKhalizev.Max.Program
{
public partial class RawProgram
{
[MethodInfo("0x1013_1716-f7c556")]
public void Method_1013_1716()
{
ii(0x1013_1716, 5); push(0x3... |
FieldScribeAPI/Models/Event/Event.cs | FieldScribe/FieldScribeAPI | 0 | 7046778 | <reponame>FieldScribe/FieldScribeAPI<gh_stars>0
using FieldScribeAPI.Infrastructure;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace FieldScribeAPI.Models
{
public class Event : Resource
{
public Link Meet { get; set; }
public Link Ev... |
TestApps/WebsocketsSimple.TestApps.Client/Program.cs | LiveOrDevTrying/WebsocketsSimple | 11 | 7046779 | <filename>TestApps/WebsocketsSimple.TestApps.Client/Program.cs
using PHS.Networking.Enums;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using WebsocketsSimple.Client;
using WebsocketsSimple.Client.Events.Args;
using WebsocketsSimple.Client.Models;
using WebsocketsSimple.Core;
namespac... |
src/ZoDream.Shared/Interfaces/IUrlProvider.cs | zx648383079/ZoDream.Spider | 3 | 7046780 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZoDream.Shared.Events;
using ZoDream.Shared.Models;
namespace ZoDream.Shared.Interfaces
{
/// <summary>
/// 这是转载所有网址的容器,用于验证网址是否重复
/// </summary>
public interface IUrlProvider: IEn... |
Assets/MK/Utilities/LerpScaler.cs | marcuskaraker/FireSphere | 0 | 7046781 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class LerpScaler : MonoBehaviour
{
public Vector3 targetScale = new Vector3(1, 1, 1);
public float speed = 5f;
public float destroyTime = -1;
private void Start()
{
if (destroyTime > 0)
{
... |
src/ArmChair.Core/Exceptions/CouchDbException.cs | dbones-labs/arm-chair | 0 | 7046782 | <reponame>dbones-labs/arm-chair
// Copyright 2014 - <EMAIL> (<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 ... |
EventCoordinator/Common/EventCoordinatorException.cs | sd797994/EventCoordinator | 6 | 7046783 | <reponame>sd797994/EventCoordinator<filename>EventCoordinator/Common/EventCoordinatorException.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace EventCoordinator.Common
{
public class EventCoordinatorException : Exception
{
... |
samples/graph-app-installation-lifecycle/csharp/AppInstallation/Views/Home/Index.cshtml | paul-cheung/Microsoft-Teams-Samples | 264 | 7046784 | @model AppInstallation.Models.AppViewModel
<link rel="stylesheet" href="../Styles/index.css" />
<button type="button" class="btn btn-outline-info" id="btngetUserApps">Get User Apps</button>
<button type="button" class="btn btn-outline-info" id="btnAddApp">Add Polly App</button>
<div class="modal fade" id="getAppModa... |
A Walk/Assets/Scripts/utilities.cs | willemOH/aWalk | 0 | 7046785 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public struct Utilities
{
public static Vector3 VectorAbs(Vector3 v)
{
return new Vector3(Mathf.Abs(v.x), Mathf.Abs(v.y), Mathf.Abs(v.z));
}
}
//public class Utilities
//{
//}
|
src/Commands/QuoterCommands.cs | delightedcat/DevExchangeBot | 3 | 7046786 | <reponame>delightedcat/DevExchangeBot
using System;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using DevExchangeBot.Storage;
using DSharpPlus;
using DSharpPlus.Entities;
using DSharpPlus.SlashCommands;
using DSharpPlus.SlashCommands.Attributes;
using Microsoft.Extensions.Logging;
// ReSharper... |
Source/Ultraviolet/Shared/Graphics/VertexElementFormat.cs | Spool5520/ultraviolet | 0 | 7046787 | <reponame>Spool5520/ultraviolet<filename>Source/Ultraviolet/Shared/Graphics/VertexElementFormat.cs
namespace Ultraviolet.Graphics
{
/// <summary>
/// Represents the supported formats for vertex data.
/// </summary>
public enum VertexElementFormat
{
/// <summary>
/// 32-bit floating... |
aspnet/web-forms/overview/older-versions-getting-started/tailspin-spyworks/tailspin-spyworks-part-8/samples/sample1.cs | Sarathir1/Docs | 159 | 7046788 | protected void ImageButton_Submit_Click(object sender, ImageClickEventArgs e)
{
try
{
MailMessage mMailMessage = new MailMessage();
mMailMessage.From = new MailAddress(HttpUtility.HtmlEncode(TextBoxEmail.Text));
mMailMessage.To.Add(new MailAddress("Your Email Here"));
// mMailMessage.Bcc.Add(... |
src/DND.Domain.DynamicForms/Questions/Dtos/QuestionValidationDto.cs | davidikin45/DigitalNomadDaveAspNetCore | 0 | 7046789 | using AutoMapper;
using DND.Common.Domain.Dtos;
using DND.Common.Domain.ModelMetadata;
using DND.Common.Infrastructure.Interfaces.Automapper;
using DND.Domain.DynamicForms.Questions.Enums;
using Microsoft.AspNetCore.Mvc;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace DND.Doma... |
SmartEnergyContracts/CustomExceptions/Device/DeviceAlreadyAttachedException.cs | AnLong98/Predmet-projekat | 0 | 7046790 | using System;
using System.Collections.Generic;
using System.Text;
namespace SmartEnergy.Contract.CustomExceptions.Device
{
public class DeviceAlreadyAttachedException : Exception
{
public DeviceAlreadyAttachedException(string message) : base(message)
{
}
}
}
|
06.Loops/Matrix output/Program.cs | baretata/CSharpPartOne | 1 | 7046791 | <filename>06.Loops/Matrix output/Program.cs<gh_stars>1-10
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class MatrixOfNumbers
{
static void Main()
{
Console.WriteLine("Enter matrix size:");
int n = int.Parse(Console.ReadLine... |
src/SharpArch/SharpArch.VsSharpArchTemplate/SharpArchApplicationTemplate/VS2008/SharpArchProject.Web/CastleWindsor/ComponentRegistrar.cs | DavidChristiansen/Sharp-Architecture | 2 | 7046792 | using Castle.Windsor;
using SharpArch.Core.PersistenceSupport.NHibernate;
using SharpArch.Data.NHibernate;
using SharpArch.Core.PersistenceSupport;
using SharpArch.Web.Castle;
using Castle.MicroKernel.Registration;
using SharpArch.Core.CommonValidator;
using SharpArch.Core.NHibernateValidator.CommonValidatorAdapter;
... |
Mamba/Kinect/KinectControllerConfiguration.cs | gitter-badger/mamba | 1 | 7046793 | namespace Enklu.Mamba.Kinect
{
/// <summary>
/// Configuration for Kinect.
/// </summary>
public class KinectControllerConfiguration
{
/// <summary>
/// The amount of time between sending network updates.
/// </summary>
public int SendIntervalMs = 16;
... |
src/Core/Requests/ConcreteStateEntityRequest.cs | TESTARtool/ChangeDetection.NET | 0 | 7046794 | <gh_stars>0
using MediatR;
namespace Testar.ChangeDetection.Core.Requests;
public class ConcreteStateEntityRequest : IRequest<ConcreteState>
{
public ConcreteStateId ConcreteStateId { get; init; }
}
public class ConcreteStateEntityRequestHandler : IRequestHandler<ConcreteStateEntityRequest, ConcreteState?>
{
... |
KanbanTasker/ViewModels/BoardViewModel.cs | daguilae/Kanban-Tasker | 0 | 7046795 | using KanbanTasker.Base;
using KanbanTasker.Models;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using KanbanTasker.Model;
using System.Windows.Input;
using System.Linq;
using Windows.UI.Xaml.Controls;
using Syncfusion.UI.Xaml.Kanban;
using Microsoft.Toolkit.Uwp.UI.Controls;
us... |
Core/Infrastructure/DependencyInjection/ServiceProviderExtensions.cs | statisticspoland/VTL-Processing | 0 | 7046796 | <gh_stars>0
namespace StatisticsPoland.VtlProcessing.Core.Infrastructure.DependencyInjection
{
using Microsoft.Extensions.DependencyInjection;
using StatisticsPoland.VtlProcessing.Core.BackEnd;
using StatisticsPoland.VtlProcessing.Core.FrontEnd.Interfaces;
using StatisticsPoland.VtlProcessing.Core.Infr... |
MicrosoftStoreServices/V1/Reviews/ReviewsQuery.cs | colinkiama/MicrosoftStoreServicesAPI | 4 | 7046797 | <gh_stars>1-10
using MicrosoftStoreServicesAPI.V1.Common;
namespace MicrosoftStoreServicesAPI.V1.Reviews
{
/// <summary>
/// Query for reviews
/// </summary>
public class ReviewsQuery : OrderedQuery<ReviewsOrderBy>
{
/// <summary>
/// Gets the URL of the query
/// </summary... |
HotelsApi.Tests/DemoDataReaderTests.cs | rstropek/devcamp-vienna-2019 | 1 | 7046798 | <reponame>rstropek/devcamp-vienna-2019
using HotelsApi.DataAccess;
using Moq;
using Moq.Protected;
using System;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using Xunit;
namespace HotelsApi.Tests
{
public class DemoDataReaderTests
{
... |
Smooth/Smooth.Foundations.Extensions/Collections/CollectionExtensions.cs | Volodej/smooth.foundations | 8 | 7046799 | <reponame>Volodej/smooth.foundations<gh_stars>1-10
using System.Collections.Generic;
namespace Smooth.Extensions.Collections
{
public static class CollectionExtensions
{
public static TCollection WithItem<TItem, TCollection>(this TCollection collection, TItem item)
where TCollection : IColl... |
Cshit_SERV/LoginServ.cs | karust/qol_server | 0 | 7046800 | <reponame>karust/qol_server<filename>Cshit_SERV/LoginServ.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using System.Net.Sockets;
using System.Threading;
using System.Threading.Tasks;
namespace Cshit_SERV
{
class LoginServ
{
private int por... |
src/managed/OpenLiveWriter.Interop.Mshtml/mshtml/_htmlListType.cs | palzj/OpenLiveWriter | 2,766 | 7046801 | <reponame>palzj/OpenLiveWriter<filename>src/managed/OpenLiveWriter.Interop.Mshtml/mshtml/_htmlListType.cs
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for details.
namespace mshtml
{
using System;
public enum _htmlListType
{... |
Assets/DialogSystem/Editor/DialogIdAllocator.cs | Flavelius/DialogSystem | 1 | 7046802 | <reponame>Flavelius/DialogSystem
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
// ReSharper disable once CheckNamespace
namespace DialogSystem.Internal
{
public class DialogIdAllocator: ScriptableObject
{
[SerializeField, HideInInspector] int _lastUsedDialogId;
//if ... |
Majorsilence.MediaService.Client/Common/Downloads.cs | majorsilence/MediaService | 0 | 7046803 | <gh_stars>0
using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using System.IO;
using System.Net;
namespace Majorsilence.MediaService.Client.Common
{
/// <summary>
/// Once centrilized class for downloading items/webpages/xml/images from the Project2 server.... |
src/MassTransit/RequestHandle.cs | viktorshevchenko210/MassTransit | 4,222 | 7046804 | namespace MassTransit
{
using System;
using System.Threading.Tasks;
/// <summary>
/// A request handle manages the client-side request, and allows the request to be configured, response types added, etc. The handle
/// should be disposed once it is no longer in-use, and the request has been compl... |
Men.Telegram.ClientApi/TL/TL/TLPhoneCallWaiting.cs | slctr/Men.Telegram.ClientApi | 1 | 7046805 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TeleSharp.TL;
namespace TeleSharp.TL
{
[TLObject(462375633)]
public class TLPhoneCallWaiting : TLAbsPhoneCall
{
public override int Constructor
{
... |
gView.DataSources.GeoJson/GeoJsonServiceFeatureClass.cs | jugstalt/gview5 | 8 | 7046806 | <reponame>jugstalt/gview5
using gView.Framework.Data;
using gView.Framework.Geometry;
using gView.Framework.system;
using System;
using System.Linq;
using System.Threading.Tasks;
namespace gView.DataSources.GeoJson
{
class GeoJsonServiceFeatureClass : IFeatureClass
{
private readonly GeoJsonServiceDat... |
templates/LogoFX.Templates.WPF/LogoFX.Templates.WPF.Data.Fake.Containers/WarehouseContainer.cs | FeodorFitsner/cli-dotnet | 1 | 7046807 | <filename>templates/LogoFX.Templates.WPF/LogoFX.Templates.WPF.Data.Fake.Containers/WarehouseContainer.cs<gh_stars>1-10
using System.Collections.Generic;
using LogoFX.Templates.WPF.Data.Contracts.Dto;
using LogoFX.Templates.WPF.Data.Fake.Containers.Contracts;
namespace LogoFX.Templates.WPF.Data.Fake.Containers
{
p... |
src/AoC.Common/Vectors/Vector2.cs | EwoutSchrotenboer/AdventOfCode2021 | 0 | 7046808 | using System;
using System.Collections;
using System.Collections.Generic;
namespace AoC.Common.Vectors;
public readonly struct Vector2 : IVector<Vector2>
{
public static Vector2 Zero { get; } = Vector.Zero<Vector2>();
public static Vector2 UnitX { get; } = new Vector2(1, 0);
public static Vector2 UnitY { ... |
Assets/Scripts/UI/SpotlightRandomizer.cs | Bobbsify/Blade-Dancer | 1 | 7046809 | <reponame>Bobbsify/Blade-Dancer
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
[RequireComponent(typeof(Image))]
public class SpotlightRandomizer : MonoBehaviour
{
[SerializeField]
private float maxAlpha = 0.7f;
[Header("Light popup duration")]
[... |
Zu1779.GenUtil/Zu1779.GenUtil/Extension/EnumerableExtension/EnumerableExtension.cs | zu1779/GenericUtility | 0 | 7046810 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Zu1779.GenUtil.Extension.EnumerableExtension
{
public static class EnumerableExtension
{
/// <summary>
/// Join an enumerable of string by an optional separator.
... |
src/SeleniumFixture.xUnit/FireFoxDriverAttribute.cs | ipjohnson/SeleniumFixture | 15 | 7046811 | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using OpenQA.Selenium;
using OpenQA.Selenium.Firefox;
using OpenQA.Selenium.Remote;
using SeleniumFixture.xUnit.Impl;
using Xunit;
using Xunit.Abstracti... |
RubberChicken.Shell/DiFactory.cs | mzszoticon/RubberChicken | 0 | 7046813 | using Ninject;
using Wdh.RubberChicken.Application;
using Wdh.RubberChicken.BL;
using Wdh.RubberChicken.DAL;
using Wdh.RubberChicken.Logging;
namespace Wdh.RubberChicken.Shell
{
public static class DiFactory
{
public static KernelBase GetContainer()
{
var kernel = new StandardKerne... |
Tools/ZwGen/ZwGen/Program.cs | fengjixuchui/MINT | 1 | 7046814 | <reponame>fengjixuchui/MINT
using System;
using System.IO;
using System.Text.RegularExpressions;
namespace ZwGen
{
class Program
{
static void Main(string[] args)
{
string currentFilePath = "C:\\repos\\MINT\\Tools\\amalgamate\\MINT.h";
string text = File.ReadAllText(cu... |
Assets/Scripts/GUI/DebugPrintLocation.cs | VisualSweden/Mixed | 0 | 7046815 | using UnityEngine;
using UnityEngine.UI;
using System.Collections;
public class DebugPrintLocation : MonoBehaviour {
private Text text;
private OnlineMapsLocationService location;
void Start() {
if (Debug.isDebugBuild) {
text = GetComponent<Text>();
location = MapManager.... |
libs/net/dal/Configuration/ContentLinkConfiguration.cs | Fosol/TNO | 2 | 7046816 | <reponame>Fosol/TNO
namespace TNO.DAL.Configuration;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using TNO.Entities;
public class ContentLinkConfiguration : AuditColumnsConfiguration<ContentLink>
{
public override void Configure(EntityTypeBuilder<ContentLink> builde... |
src/CashFlow.Client.Lib/Services/AssetService.cs | b-a-x/CashFlowManagement | 0 | 7046817 | using System;
using System.Collections.Generic;
using System.Net.Http;
using System.Text;
using System.Text.Json;
using System.Threading.Tasks;
using CashFlow.Model.Dto.Request;
using CashFlow.Services.Interfaces;
namespace CashFlow.Client.Lib.Services
{
public class AssetService : IAssetService
{
pri... |
src/Microsoft.MobileBlazorBindings/Elements/ToolbarItem.generated.cs | Dreamescaper/MobileBlazorBindings | 0 | 7046818 | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
using Microsoft.AspNetCore.Components;
using Microsoft.MobileBlazorBindings.Core;
using Microsoft.MobileBlazorBindings.Elements.Handlers;
using System.Threading.Tasks;
using XF = Xamarin.Forms;
namespace Microsoft.MobileBlazorBindings.Elements... |
Features/IntegrationPlatform-svn/Test/MigrationTest/MigrationTestLibrary/ConfigCustomizer.cs | adamdriscoll/TfsIntegrationPlatform | 6 | 7046819 | // Copyright © Microsoft Corporation. All Rights Reserved.
// This code released under the terms of the
// Microsoft Public License (MS-PL, http://opensource.org/licenses/ms-pl.html.)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.TeamFoundation.Migration.Busin... |
src/SolutionDeploy.Core/Logging.cs | shladdergoo/solution-deploy | 0 | 7046820 | <gh_stars>0
namespace SolutionDeploy.Core
{
using Microsoft.Extensions.Logging;
public static class Logging
{
private static ILoggerFactory loggerFactory;
public static void Build(ILoggerFactory loggerFactory)
{
Logging.loggerFactory = loggerFactory;
}
... |
buildtools/CustomRoslynAnalyzers/CustomRoslynAnalyzers.Test/PreventDateTimeNowUseAnalyzerTests.cs | sudoudaisuke/aws-sdk-net | 1,705 | 7046821 | using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.Diagnostics;
using CustomRoslynAnalyzers.Test.TestHelper;
using Xunit;
using CustomRoslynAnalyzers.CodeFix;
using Microsoft.CodeAnalysis.CodeFixes;
namespace CustomRoslynAnalyzers.Test
{
p... |
Area.cs | cammac360/C-Procedural-Level-Generator | 2 | 7046823 | using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class Area{
public int cost;
public int x;
public int y;
public int floor;
//Room number
public int identity;
public int parent;
public bool start;
public bool end;
bool [] child = new bool[4];
public int[,... |
src/Overwurd.Domain/Entities/EntityDescription.cs | kgorbenko/overwurd | 0 | 7046824 | namespace Overwurd.Domain.Entities;
public record EntityDescription
{
public string Value { get; }
public EntityDescription(string description)
{
var validationModel = new EntityDescriptionValidationModel(description);
ValidationHelper.EnsureValid(validationModel, SetRules);
Value... |
test/VisualStudio.Test/VsPackageManagerTest.Operation.cs | mrward/mono-nuget | 96 | 7046825 | using Moq;
using NuGet.Test.Mocks;
using Xunit;
namespace NuGet.VisualStudio.Test
{
using PackageUtility = NuGet.Test.PackageUtility;
public partial class VsPackageManagerTest
{
[Fact]
public void InstallPackageSetOperationToInstall1()
{
// Arrange
var loca... |
tests/Magick.NET.Core.Tests/Profiles/Exif/ExifProfileTests/TheSetValueMethod.cs | coldwarrior5/Magick.NET | 1 | 7046826 | // Copyright 2013-2020 <NAME> <https://github.com/dlemstra/Magick.NET/>
//
// Licensed under the ImageMagick License (the "License"); you may not use this file except in
// compliance with the License. You may obtain a copy of the License at
//
// https://www.imagemagick.org/script/license.php
//
// Unless required ... |
BTCPayServer/Views/Account/ForgotPasswordConfirmation.cshtml | darosior/btcpayserver | 3,562 | 7046827 | @{
ViewData["Title"] = "Email sent!";
}
<h2></h2>
<p>
</p>
<section>
<div class="container">
<div class="row">
<div class="col-md-4">
<h4>@ViewData["Title"]</h4>
<hr />
<p>
Please check your email to reset your password.... |
src/SuitHostBuilder.cs | Plastic-Metal/MobileSu | 4 | 7046829 | <filename>src/SuitHostBuilder.cs
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using PlasticMetal.MobileSuit.Core;
using PlasticMetal.MobileSuit.Core.Midd... |
Assets/Scripts/Input/VirtualJumpButton.cs | SardineFish/MAJIKA | 30 | 7046830 | using UnityEngine;
using System.Collections;
using UnityEngine.InputSystem;
public class VirtualJumpButton : VirtualButton
{
[UnityEngine.InputSystem.Layouts.InputControl(layout ="Button")]
public string ClimbControlPath;
[UnityEngine.InputSystem.Layouts.InputControl(layout = "Button")]
publi... |
zsyncnet/Util/EndianConverter.cs | BeowulfStratOps/zsyncnet | 0 | 7046831 | <reponame>BeowulfStratOps/zsyncnet
using System;
namespace zsyncnet.Util
{
internal static class EndianConverter
{
public static byte[] ToBigEndian(uint value, int byteCount)
{
if (byteCount is < 2 or > 4) throw new ArgumentException(null, nameof(byteCount));
... |
Apps/SmallTalk.Web/Views/Home/Lesson.cshtml | DavidVeksler/SmallTalk | 0 | 7046832 | <gh_stars>0
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>Registration</title>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integri... |
src/Grillbot/Models/Unverify/UnverifyCurrentStatusViewModel.cs | qwerelt/GrillBot | 0 | 7046833 | using System.Collections.Generic;
namespace Grillbot.Models.Unverify
{
public class UnverifyCurrentStatusViewModel
{
public List<UnverifyInfo> Unverifies { get; }
public UnverifyCurrentStatusViewModel(List<UnverifyInfo> unverifies)
{
Unverifies = unverifies;
}
}... |
src/NumberToWords/CurrencyInfo.cs | Henka-Programmer/NumberToWords | 6 | 7046834 | <reponame>Henka-Programmer/NumberToWords<filename>src/NumberToWords/CurrencyInfo.cs
using NumberToWords.Interfaces;
using System;
using System.Collections.Generic;
using System.Text;
namespace NumberToWords {
public class CurrencyInfo : ICurrencyInfo {
public string Code { get; set; }
public string Name { ... |
DFC.Digital/DFC.Digital.Web.Sitefinity.ContactUsModule.UnitTests/Controllers/TrimCarriageReturnStringLengthAttributeTests.cs | Muthuramana/dfc-digital | 5 | 7046835 | using DFC.Digital.Web.Core;
using FluentAssertions;
using Xunit;
namespace DFC.Digital.Web.Sitefinity.ContactUsModule.UnitTests
{
public class TrimCarriageReturnStringLengthAttributeTests
{
#region Action Tests
[Theory]
[InlineData("\r\n", 1, true)]
[InlineData("\n", 1, true)]... |
Frontend/Packets/Play/EntityStatus.cs | Tobi406/SM3 | 15 | 7046836 | <reponame>Tobi406/SM3<filename>Frontend/Packets/Play/EntityStatus.cs
namespace Frontend.Packets.Play
{
public readonly struct EntityStatus : IWriteablePacket
{
public int Id => 0x1C;
public readonly int EntityId;
public readonly byte Status;
public EntityStatus(int entityId, by... |
src/Microsoft.ServiceFabric.Common/Generated/ValidationFailedChaosEvent.cs | MedAnd/service-fabric-client-dotnet | 40 | 7046837 | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Microsoft.ServiceFabr... |
DynamicMVC.DynamicEntityMetadataLibrary/Interfaces/IDynamicPropertyMetadataBuilder.cs | cornelha/DynamicMVC | 17 | 7046838 | using System.Collections.Generic;
using DynamicMVC.DynamicEntityMetadataLibrary.Models;
using ReflectionLibrary.Interfaces;
namespace DynamicMVC.DynamicEntityMetadataLibrary.Interfaces
{
public interface IDynamicPropertyMetadataBuilder
{
IEnumerable<DynamicPropertyMetadata> Build(IReflectedClass refle... |
C#Databases/Entity Framework Core - 10.2019/Exams/01.09.2018/01. Model Definition_Skeleton + Datasets/VaporStore/DataProcessor/ExportDto/ExportGameDto.cs | deedeedextor/Software-University | 0 | 7046839 | <gh_stars>0
using System.Xml.Serialization;
namespace VaporStore.DataProcessor.ExportDto
{
[XmlType("Game")]
public class ExportGameDto
{
[XmlAttribute(AttributeName = "title")]
public string Title { get; set; }
[XmlElement(ElementName = "Genre")]
public string Genre { get... |
OntraportApi.IntegrationTests/OntraportTransactionsTests.cs | mysteryx93/OntraportApi.NET | 1 | 7046840 | using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using HanumanInstitute.OntraportApi.Models;
using Xunit;
using Xunit.Abstractions;
namespace HanumanInstitute.OntraportApi.IntegrationTests
{
public class OntraportTransactionsTests : OntraportBaseReadTests<OntraportTransactions, ApiTra... |
src/Project/Website/Components/Marketing Icons/MarketingIconModel.cs | cassidydotdk/Sym2018 | 7 | 7046841 | namespace Project.Website.Components.Marketing_Icons
{
public class MarketingIconModel
{
public string Title { get; set; }
public string Text { get; set; }
public string TargetUrl { get; set; }
public string LinkText { get; set; }
}
} |
RCAR/Views/Admin/Index.cshtml | radoslawpyrcioch/RCAR | 0 | 7046842 | <gh_stars>0
@model RCAR.Models.AdminPanelVM.AdminIndexVM
@{ ViewBag.Title = "Index";}
<div class="main-container">
<div class="card">
<div class="card-body">
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a asp-controll... |
Tools/Apps/Microsoft.PowerApps.Tools.AppMerger/Model/EntityModel.cs | taiki-yoshida/powerapps-tools | 2 | 7046843 | using System.ComponentModel;
namespace Microsoft.PowerApps.Tools.AppMerger
{
public class EntityModel : INotifyPropertyChanged
{
#region private
private bool _isSelected = true;
private bool _isNew = false;
public event PropertyChangedEventHandler PropertyChanged;
#e... |
EssentialUIKit/Models/Category.cs | fformigli/UCPapp | 0 | 7046844 | using System.Collections.Generic;
using Xamarin.Forms.Internals;
namespace EssentialUIKit.Models
{
[Preserve(AllMembers = true)]
public class Category
{
#region Constructor
public Category(string name, string icon, string description, string pageName)
{
this.Name = nam... |
ZptSharp/Bootstrap/RenderingRegistrations.cs | csf-dev/ZPT-Sharp | 1 | 7046845 | using Microsoft.Extensions.DependencyInjection;
using ZptSharp.Rendering;
namespace ZptSharp.Bootstrap
{
/// <summary>
/// Dependency injection registrations for types in the Rendering namespace.
/// </summary>
static class RenderingRegistrations
{
static internal void RegisterServices(ISe... |
Assets/Scripts/GameManager.cs | AndrewAndronikou/Data-Defense | 0 | 7046846 | <gh_stars>0
using System.Collections;
using UnityEngine;
public class GameManager : MonoBehaviour
{
public static bool GameIsOver;
[SerializeField] GameObject gameOverUI;
[SerializeField] GameObject completeLevelUI;
private void Start()
{
GameIsOver = false;
}
// Update is calle... |
src/Authentication/Authentication/Cmdlets/DisconnectMgGraph.cs | msewaweru/msgraph-sdk-powershell | 406 | 7046847 | // ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
n... |
src/Alphaleonis.Reflection.Metadata/TypeIdentifier/TypeIdentifier.cs | alphaleonis/Alphaleonis.Reflection.Metadata | 3 | 7046848 | <reponame>alphaleonis/Alphaleonis.Reflection.Metadata<filename>src/Alphaleonis.Reflection.Metadata/TypeIdentifier/TypeIdentifier.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
namespace Alphaleonis.Reflection.Metadata
{
/// <summary>Represe... |
CobWeb/CobWeb.Test/Program.cs | AmayerGogh/CobWeb | 0 | 7046849 | <gh_stars>0
using CobWeb.Util;
using CobWeb.Util.FlashLog;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CobWeb.Test
{
public class LogManager
{
static FlashLogger _lc流程;
public static FlashLogger lc流程
{
... |
Cognifide.PowerShell/Commandlets/Presentation/ResetLayoutCommand.cs | orifjonmelibayev/Console | 0 | 7046850 | using System.Management.Automation;
using Cognifide.PowerShell.Core.Extensions;
using Cognifide.PowerShell.Core.Utility;
using Sitecore.Data.Fields;
using Sitecore.Data.Items;
namespace Cognifide.PowerShell.Commandlets.Presentation
{
[Cmdlet(VerbsCommon.Reset, "Layout", SupportsShouldProcess = true)]
public c... |
src/Bet.Extensions.Options/OptionsConfiguration.cs | mlnethub/Bet.AspNetCore | 2 | 7046851 | using System;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Options;
namespace Bet.Extensions.Options
{
/// <summary>
/// Use to configure the options binding from the configurations.
/// </summary>
/// <typeparam name="TOptions"></typeparam>
public class OptionsConfigurati... |
src/StrawberryShake/CodeGeneration/src/CodeGeneration.CSharp/Builders/CodeInlineBuilder.cs | anadale/hotchocolate | 3,399 | 7046853 | using System;
namespace StrawberryShake.CodeGeneration.CSharp.Builders
{
public class CodeInlineBuilder : ICode
{
private string? _value;
public static CodeInlineBuilder New() => new();
public static CodeInlineBuilder From(string sourceText) =>
New().SetText(sourceText);
... |
lab/t06_Lists/p06_SquareNumbers/p06_SquareNumbers.cs | Packo0/SoftUniProgrammingFundamentals | 0 | 7046854 | using System;
using System.Collections.Generic;
using System.Linq;
namespace p06_SquareNumbers
{
class p06_SquareNumbers
{
static void Main(string[] args)
{
var numbers = Console.ReadLine().Split(' ').Select(int.Parse).ToList();
List<int> squares = new List<int>();
... |
Data/YJC.Toolkit.Razor.Web.Common/Web/BootcssCommonUtil.cs | madiantech/tkcore | 4 | 7046855 | using System.Collections.Generic;
using System.Text;
using YJC.Toolkit.Data;
using YJC.Toolkit.Razor;
using YJC.Toolkit.Right;
using YJC.Toolkit.Sys;
namespace YJC.Toolkit.Web
{
public static class BootcssCommonUtil
{
private static readonly string[] BUTTON_ARRAY = new string[] { "btn-default",
... |
HttpServer/websites/mathieu_morrissette/model/Error.cs | MathieuMorrissette/Simple-HTTP-Server | 0 | 7046856 | <reponame>MathieuMorrissette/Simple-HTTP-Server
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HttpServer.websites.mathieu_morrissette.model
{
public class Error
{
public Error(string message)
{
this.Mes... |
JL.Windows/GUI/ManageFrequenciesWindow.xaml.cs | rampaa/JL | 11 | 7046857 | using System.Diagnostics;
using System.IO;
using System.Runtime;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using System.Windows.Media;
using JL.Core;
using JL.Core.Frequency;
using JL.Core.Utilities;
using Path = System.IO.Path;
namespace JL.Windows.GUI;
/// <summary>
/// Inter... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.