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/Swtor.Dps.ClassAbilitiesMerger/Program.cs | Vhaerlein/swtor.playground | 2 | 7064848 | <gh_stars>1-10
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Xml;
// ReSharper disable AssignNullToNotNullAttribute
// ReSharper disable PossibleNullReferenceException
namespace Swtor.Dps.ClassAbilityXmlMerger
{
internal static class Program
{
private static boo... |
src/SparkPost/ValueMappers/EnumValueMapper.cs | jgunter7/csharp-sparkpost | 42 | 7064849 | using System;
namespace SparkPost.ValueMappers
{
public class EnumValueMapper : IValueMapper
{
public bool CanMap(Type propertyType, object value)
{
return propertyType.IsEnum;
}
public object Map(Type propertyType, object value)
{
return value.... |
test/test.cs | mono/mono-microthreads | 4 | 7064850 | <gh_stars>1-10
/**
* An iterator implemented with continuations
*/
using System;
using System.Collections.Generic;
using System.Text;
using Mono.MicroThreads;
namespace IteratorTest
{
class IntRange
{
Continuation m_cont;
public int GetNext(int a, int b, int c, int d, int e)
{
if (m_cont == null)
{
... |
Timetabler.DataLoader.Tests.Unit/Load/Xml/GraphTrainPropertiesModelExtensionsUnitTests.cs | caitlinsalt/simple-timetable-editor | 0 | 7064851 | using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Globalization;
using Tests.Utility.Providers;
using Timetabler.Data;
using Timetabler.DataLoader.Load.Xml;
using Timetabler.SerialData.Xml;
namespace Timetabler.DataLoader.Tests.Unit.Lo... |
firestore/testapp/Assets/Firebase/Sample/Firestore/EventAccumulator.cs | LaudateCorpus1/firebase-unity-sdk | 38 | 7064852 | // Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
src/SharperCryptoApiAnalysis.Extensibility/Configuration/ConfigurationManager.cs | AnakinSklavenwalker/SharperCryptoApiAnalysis | 1 | 7064853 | <filename>src/SharperCryptoApiAnalysis.Extensibility/Configuration/ConfigurationManager.cs
using System;
using System.ComponentModel;
using System.Runtime.CompilerServices;
using System.Threading.Tasks;
using JetBrains.Annotations;
using SharperCryptoApiAnalysis.Connectivity;
using SharperCryptoApiAnalysis.Connectivit... |
src/CavemanTools/ITimer.cs | sapiens/cavemantools | 20 | 7064854 | <gh_stars>10-100
using System;
using System.Threading;
namespace CavemanTools
{
public interface ITimer:IDisposable
{
/// <summary>
/// You must set the handler and the interval before calling this
/// </summary>
/// <param name="initialState"></param>
/// <param name="... |
source/Htc.Vita.Core/IO/GraphicsDeviceManager.Windows.cs | markliao-test/vita_core_csharp | 0 | 7064855 | <reponame>markliao-test/vita_core_csharp<filename>source/Htc.Vita.Core/IO/GraphicsDeviceManager.Windows.cs
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using Htc.Vita.Core.Log;
namespace Htc.Vita.Core.IO
{
public static partial class GraphicsDeviceManager
{
int... |
src/NForum/Datastores/ICategoryDatastore.cs | steentottrup/NForum | 27 | 7064856 | <filename>src/NForum/Datastores/ICategoryDatastore.cs
using NForum.Core.Dtos;
using NForum.Domain;
using NForum.Domain.Abstractions;
using System;
using System.Collections.Generic;
namespace NForum.Datastores {
public interface ICategoryDatastore {
ICategoryDto Create(Category category);
ICategoryDto ReadById(S... |
src/Stump.DofusProtocol/Types/Types/Game/House/HouseGuildedInformations.cs | Daymortel/Stump | 2 | 7064857 | namespace Stump.DofusProtocol.Types
{
using System;
using System.Linq;
using System.Text;
using Stump.DofusProtocol.Types;
using Stump.Core.IO;
[Serializable]
public class HouseGuildedInformations : HouseInstanceInformations
{
public new const short Id = 512;
public ove... |
Chapter02_interactiveUI/02_03_panelDepths/_Scripts/ArrangeActions.cs | PacktPublishing/Unity-2018-Cookbook-Second-Edition | 51 | 7064858 | using UnityEngine;
public class ArrangeActions : MonoBehaviour
{
private RectTransform panelRectTransform;
void Awake()
{
// cache reference to parent Rect Transform
panelRectTransform = GetComponent<RectTransform>();
}
//------------------------------
// we change the 'SiblingIndex' of the parent G... |
Assets/Scripts/UI/CalibrationPanelBehaviour.cs | jlcouto/3d-interaction-evaluation | 2 | 7064859 | <reponame>jlcouto/3d-interaction-evaluation
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class CalibrationPanelBehaviour : MonoBehaviour
{
public Text textTitle;
public Text textMessage;
public void ShowPanel(string title, string me... |
Assets/Script/Managers/scrGameWaveManager.cs | JohnnyCenter/spaceshooter | 0 | 7064860 | <reponame>JohnnyCenter/spaceshooter
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class scrGameWaveManager : MonoBehaviour
{
//Make this a singleton
[Tooltip("What wave we start at. Tweakable for testing purposes")]
[SerializeField] private int gameStartWave... |
Language Detection/SnippetParsers/CodeSnippet.cs | skotz/cp-language-detection | 1 | 7064861 | <gh_stars>1-10
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Language_Detection
{
class CodeSnippet
{
public string Snippet { get; set; }
public string Language { get; set; }
public CodeSnippet(string lan... |
Assets/Projects/scripts/Character.cs | NenoTech-Gaming/Push_Me_all | 0 | 7064862 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using DG.Tweening;
using Sirenix.OdinInspector;
using UnityEngine.AI;
public class Character : MonoBehaviour
{
[SerializeField] public Transform m_TargetRoot;
[SerializeField] public Animator m_Animator;
[SerializeField] public ... |
Assets/KinectScripts/SpeechWrapper.cs | gbaelen/RunStickmanRun | 0 | 7064863 | // comment or uncomment the following #define directives
// depending on whether you use KinectExtras together with KinectManager
//#define USE_KINECT_MANAGER
using UnityEngine;
using System;
using System.IO;
using System.Collections;
using System.Runtime.InteropServices;
public class SpeechWrapper
{
public enum ... |
IsoStoreSpy.Plugins.Shared/Controls/RoundButton.cs | tupunco/IsoStoreSpy4wp8 | 1 | 7064864 | using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
namespace IsoStoreSpy.Plugins.Shared.Controls
{
public class MetroButton : Button
{
static MetroButton()
{
DefaultStyleKeyProperty.OverrideMetadata(typeof(MetroButton), new FrameworkPropertyMetadata(ty... |
SHFB/Source/BuildAssembler/BuildComponentTargets/ExtensionMethodReference.cs | dpogudin/SHFB | 2,129 | 7064865 | <reponame>dpogudin/SHFB
// Copyright © Microsoft Corporation.
// This source file is subject to the Microsoft Permissive License.
// See http://www.microsoft.com/resources/sharedsource/licensingbasics/sharedsourcelicenses.mspx.
// All other rights reserved.
// Change History
// 12/26/2012 - EFW - Moved the clas... |
PowerShellCloudProvider.Gateways.pCloud/OAuth/Authenticator.cs | viciousviper/PowerShellCloudProvider | 4 | 7064866 | <gh_stars>1-10
/*
The MIT License(MIT)
Copyright(c) 2015 IgorSoft
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... |
Emulator/Processor/Addressing/Absolute.cs | clavierpaul/Gamemu | 0 | 7064867 | namespace Gamemu.Emulator.Processor.Addressing
{
public class Absolute : IAddressable
{
private readonly ISource _source;
private readonly MemoryMap _memoryMap;
public Absolute(MemoryMap map, ISource source)
{
_source = source;
_memoryMap = map;
}... |
src/Server/Abstractions/IHandlerCollection.cs | SherifSafwat/csharp-language-server-protocol-master | 3 | 7064868 | <reponame>SherifSafwat/csharp-language-server-protocol-master
using System;
using System.Collections.Generic;
using OmniSharp.Extensions.JsonRpc;
namespace OmniSharp.Extensions.LanguageServer.Server.Abstractions
{
public interface IHandlerCollection : IEnumerable<ILspHandlerDescriptor>
{
IDisposable Ad... |
WPFTests/SpriteEditorTest.xaml.cs | mifumi323/funyak | 0 | 7064869 | <reponame>mifumi323/funyak<gh_stars>0
using System.Linq;
using System.Windows;
using System.Windows.Controls;
using Microsoft.Win32;
using MifuminSoft.funyak.View.Resource;
namespace WPFTests
{
/// <summary>
/// SpriteEditorTest.xaml の相互作用ロジック
/// </summary>
public partial class SpriteEdito... |
sdk/batch/Microsoft.Azure.Batch/Azure.Batch/src/Generated/Models/CachingType.Serialization.cs | Petermarcu/azure-sdk-for-net | 0 | 7064870 | <filename>sdk/batch/Microsoft.Azure.Batch/Azure.Batch/src/Generated/Models/CachingType.Serialization.cs
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
namespace Azure.Batch.Models
{
internal static class Cachin... |
src/Core/DiscordBot/Modules/GameServerHost/Commands/ServerScale.cs | Cowlephant/HexacowBot | 1 | 7064871 | <filename>src/Core/DiscordBot/Modules/GameServerHost/Commands/ServerScale.cs
using Discord;
using Discord.Interactions;
namespace HexacowBot.Core.DiscordBot.Modules.GameServerHost;
public sealed partial class GameServerHostModule
{
[RequireOwner(Group = "ServerManagerPermission")]
[RequireRole("Game Server Manager... |
CulinaryBlogCore.Services/Repository/Repository.cs | IvayloIV/CulinaryBlogCore | 1 | 7064872 | <gh_stars>1-10
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using CulinaryBlogCore.DataAccess;
using CulinaryBlogCore.Services.Repository.Contracts;
using Microsoft.EntityFrameworkCore;
namespace CulinaryBlogCore.Services.Repository
{
public class Repository ... |
CSETWebApi/CSETWeb_Api/CSETWebCore.Reports/Views/Crr/CrrReport.cshtml | ekmixon/cset | 907 | 7064873 | @using CSETWebCore.Reports.Models
@model CrrViewModel
@{
ViewData["BrowserTitle"] = "CRR Report - CSET";
}
<header>
@await Html.PartialAsync("_PdfDownload", new PdfDownloadModel
{
Action = "CreatePdf",
Controller = "Crr",
View = "crrReport",
Filename = "CSET CRR Report.pdf"... |
Scripts/Nodes/Events/Unity/OnStart.cs | exAntares/FlowNodes | 1 | 7064874 | using XNode;
namespace Events.UnityNative {
[CreateNodeMenu("Events/OnStart", "Awake", "Start", "Init")]
public class OnStart : EventNode {
private void Start() {
TriggerFlow();
}
public override object GetValue(NodePort port) {
return null;
}
}
}
|
unluacNet/decompile/expression/GlobalExpression.cs | MaxxWyndham/unluacNet | 1 | 7064875 | namespace unluac.decompile.expression
{
using Output = unluac.decompile.Output;
public class GlobalExpression : Expression
{
private readonly string name;
private readonly int index;
public GlobalExpression(string name, int index) : base(PRECEDENCE_ATOMIC)
{
this.name = name;
this.i... |
Controller/Heroes/Conman/Cards/WhosThatNextToYouCardController.cs | wrhyme29/TheDragonRuneMods | 0 | 7064876 | using Handelabra.Sentinels.Engine.Controller;
using Handelabra.Sentinels.Engine.Model;
using System;
using System.Collections;
using System.Collections.Generic;
namespace TheDragonRune.Conman
{
public class WhosThatNextToYouCardController : ConmanUtilityCardController
{
public WhosThatNextToYouCardCo... |
ResourceManagment/Operations/AsyncDiscreetOperation.cs | Omnicrola/ResourceManager | 0 | 7064877 | <filename>ResourceManagment/Operations/AsyncDiscreetOperation.cs
using System;
using System.Windows.Threading;
namespace ResourceManagment.Operations
{
public abstract class AsyncDiscreetOperation : IDiscreetOperation
{
public event EventHandler<OperationEventArgs> OperationStarted;
public eve... |
C# OOP Basics/01 Defining Classes/EXE_DefiningClasses/P02_CreatingConstructors/StartUp.cs | stStoyanov93/SoftUni-CSharp-Fundamentals-2018 | 0 | 7064878 | using System;
public class StartUp
{
static void Main(string[] args)
{
var p1 = new Person();
var p2 = new Person(8);
var p3 = new Person(4, "Pesho");
Console.WriteLine($"{p1.Name} is {p1.Age}");
Console.WriteLine($"{p2.Name} is {p2.Age}");
Console.WriteLine($... |
src/AutoCrane/Models/PodIdentifierOptions.cs | timmydo/AutoCrane | 6 | 7064879 | <reponame>timmydo/AutoCrane
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
using System;
namespace AutoCrane.Models
{
public sealed class PodIdentifierOptions
{
public string? Name { get; set; }
public string? Namespace { get; set; }
public PodIdentifier ... |
NMEAServerLib/NMEAServer.cs | expilu/nmea-server | 4 | 7064880 | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Net;
using System.Net.Sockets;
using System.Text;
using System.Threading;
namespace NMEAServerLib
{
public class NMEAServer
{
public delegate void ServerStarted();
public event ServerStarted OnServerStarted;... |
Chatter.IntegrationEventRelay.Worker/src/Aggregates/Event1/Mappers/SourceDeletedToEvent1DeletedEventMapper.cs | brenpike/Chatter.IntegrationEventRelay | 4 | 7064881 | <gh_stars>1-10
using Chatter.IntegrationEventRelay.Core.Configuration;
using Chatter.IntegrationEventRelay.Core.Mapping;
using Chatter.IntegrationEventRelay.Worker.Aggregates.Event1.IntegrationEvents;
using Chatter.IntegrationEventRelay.Worker.Aggregates.Event1.SourceEvents;
using Chatter.MessageBrokers;
using Chatter... |
DeveloperBox/AboutWindow.Designer.cs | Ayvytr/DeveloperBox | 0 | 7064882 | namespace DeveloperBox
{
partial class AboutWindow
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// ... |
New/src/Tests/Integration/Tests.cs | mohamed-gara/AutoBuyer | 27 | 7064883 | <reponame>mohamed-gara/AutoBuyer
using System.Data;
using System.Data.SqlClient;
namespace Tests.Integration
{
public class Tests
{
internal const string ConnectionString = @"Server=VLADIMIR-PC\SQL2014;Database=AutoBuyer;Trusted_Connection=true;";
public Tests()
{
ClearDat... |
EasyRegression.Core/Common/Maths/StatisticsExtensions.cs | XACT-RobA/EasyRegression.NET | 2 | 7064884 | using System;
using System.Collections.Generic;
using System.Linq;
using EasyRegression.Core.Common.Models;
using EasyRegression.Core.Common.Exceptions;
namespace EasyRegression.Core.Common.Maths
{
public static class StatisticsExtensions
{
// Numeric validation
public static bool IsValidDouble... |
Example.Business/Category/CategoryService.cs | justinscoderepo/CodeGeneratorCSharpDemo | 0 | 7064885 | ///// <autogenerated>Remove this line to stop Code Generation</autogenerated>
///// <by>serverservice.txt</by>
///// <module>Category</module>
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="Category.cs" company="Example">
// ... |
KnowledgeSpreadSystem/KnowledgeSpreadSystem.Web/Controllers/InsightsController.cs | ggnv/KnowledgeSpreadSystem | 1 | 7064886 | namespace KnowledgeSpreadSystem.Web.Controllers
{
using System;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using AutoMapper;
using AutoMapper.QueryableExtensions;
using Kendo.Mvc.Extensions;
using Kendo.Mvc.UI;
using KnowledgeSpreadSystem.Data;
using Knowledge... |
PopForums.Web/Areas/PopForums/Views/Admin/AdminMaster.cshtml | HongJunRen/POPForums | 0 | 7064887 | <!DOCTYPE html>
<html>
<head>
<title>@PopForums.Resources.PopForumsAdmin - @ViewBag.PageTitle</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<script src="~/Scripts/jquery-2.1.1.min.js" type="text/javascript"></script>
<script src="~/Scripts/bootstrap.min.js"></script>
<script... |
Org.BouncyCastle.Crypto.Parameters/SkeinParameters.cs | smdx24/CPI-Source-Code | 8 | 7064888 | // SkeinParameters
using Org.BouncyCastle.Crypto;
using Org.BouncyCastle.Crypto.Parameters;
using Org.BouncyCastle.Utilities;
using System;
using System.Collections;
using System.Globalization;
using System.IO;
using System.Text;
public class SkeinParameters : ICipherParameters
{
public class Builder
{
private IDi... |
Assets/DestroyA.cs | yuriyarabskyy/SpeedTanks-Unity- | 0 | 7064889 | <filename>Assets/DestroyA.cs<gh_stars>0
using UnityEngine;
using System.Collections;
public class DestroyA : MonoBehaviour {
Vector2 startpos;
public GameObject flag1,flag2;
void Start(){
startpos = GameObject.Find ("startpos").transform.position;
}
void OnCollisionEnter2D(Collision2D other){
if (other.gam... |
DigitalLearningSolutions.Data/Models/CourseDelegates/CourseDelegatesData.cs | TechnologyEnhancedLearning/DLSV2 | 2 | 7064890 | <reponame>TechnologyEnhancedLearning/DLSV2<filename>DigitalLearningSolutions.Data/Models/CourseDelegates/CourseDelegatesData.cs
namespace DigitalLearningSolutions.Data.Models.CourseDelegates
{
using System.Collections.Generic;
using DigitalLearningSolutions.Data.Models.Courses;
public class CourseDel... |
ElectronicObserver/Observer/kcsapi/api_req_kaisou/slot_exchange_index.cs | herix001/ElectronicObserver | 5 | 7064891 | <reponame>herix001/ElectronicObserver<filename>ElectronicObserver/Observer/kcsapi/api_req_kaisou/slot_exchange_index.cs
using ElectronicObserver.Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ElectronicObserver.Observer.kcsapi.api_re... |
tests/Plaid.Demo/Controllers/HomeController.cs | chalber/Going.Plaid | 0 | 7064892 | <reponame>chalber/Going.Plaid<gh_stars>0
using System;
using System.Linq;
using System.Net.Http;
using System.Threading.Tasks;
using Going.Plaid.Entity;
using Going.Plaid.Management;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Options;
namespace Going.Plaid.Demo.Controllers
{
public class HomeControll... |
src/Comet.Game/States/BattleSystem.cs | inburst21/ConquerServer | 0 | 7064893 | <filename>src/Comet.Game/States/BattleSystem.cs
// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (C) FTW! Masters
// Keep the headers and the patterns adopted by the project. If you changed anything in the file just insert
// your na... |
MioAPI/CouponSwitchApi/Objects/HdoStatus.cs | atst1996/MioAPI | 1 | 7064894 | <reponame>atst1996/MioAPI
using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
using System.Text;
namespace MioAPI
{
[DataContract]
public class HdoStatus
{
[DataMember(Name = "hdoServiceCode")]
public string HdoServiceCode { get; set; }
[DataMember(... |
Source/Classic/Libs/ManagedIrbis/Source/Reports/Cells/RawPftCell.cs | fossabot/ManagedIrbis | 0 | 7064895 | // This is an open source non-commercial project. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
/* RawPftCell.cs --
* Ars Magna project, http://arsmagna.ru
* -------------------------------------------------------
* Status: poor
*/
#region Using di... |
MVC_CRUD_AJAX/Models/EmployeeDB.cs | sumuongit/asp-mvc-ado-jquery-ajax-crud | 3 | 7064897 | <reponame>sumuongit/asp-mvc-ado-jquery-ajax-crud
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Data;
using System.Data.SqlClient;
namespace MVC_CRUD_AJAX.Models
{
public class EmployeeDB
{
string conString = ConfigurationM... |
src/ext/Slackbot.Net.SlackClients.Http/Models/Requests/ChatPostMessage/ChatPostMessageRequest.cs | ehamberg/fplbot | 0 | 7064898 | using Slackbot.Net.Models.BlockKit;
namespace Slackbot.Net.SlackClients.Http.Models.Requests.ChatPostMessage
{
public class ChatPostMessageRequest
{
public string Channel { get; set; }
public string Text { get; set; }
public string Parse { get; set; }
public bool Link_Names { g... |
src/Orchard.Web/Modules/CloudBust.Application/DataTableMigrations.cs | doticca/Orchard.CloudBust | 1 | 7064899 | using CloudBust.Application.Models;
using CloudBust.Application.Services;
using Orchard.ContentManagement.MetaData;
using Orchard.Core.Contents.Extensions;
using Orchard.Data.Migration;
using System;
namespace CloudBust.Application
{
public class DataTableMigrations : DataMigrationImpl
{
public int Cr... |
MyStealth/Assets/Scripts/Enemy/EnemyAnimation.cs | Guolefeng/Stealth | 0 | 7064900 | <reponame>Guolefeng/Stealth<filename>MyStealth/Assets/Scripts/Enemy/EnemyAnimation.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.AI;
public class EnemyAnimation : MonoBehaviour {
public float deadZone = 5f; // 当角度小于这个变量时 转向将不再使用动画系统控制
private Tran... |
test/BrTypes.Tests/Converters/CpfConverterTests.cs | ircnelson/BrTypes | 3 | 7064901 | using System.Linq;
using BrTypes.Converters;
using BrTypes.Tests.Utils;
using FluentAssertions;
using Newtonsoft.Json;
using Xunit;
namespace BrTypes.Tests.Converters
{
public class CpfConverterTests
{
[Fact]
public void Deve_serializar_para_string()
{
var cpfString = CpfUt... |
Samples/KitchenSink/KitchenSink.Forms.Android/MainActivity.cs | chkn/HybridKit | 31 | 7064902 | using System;
using Android.App;
using Android.Content;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Android.OS;
using Xamarin.Forms;
using Xamarin.Forms.Platform.Android;
using HybridKit.Forms;
namespace KitchenSink.Forms.Android {
[Activity (Label = "KitchenSink.Forms.Android", MainL... |
src/DNTFrameworkCore.Cqrs.EFCore/Behaviors/TransactionBehavior.cs | mzolfaghari71/AFD | 1 | 7064904 | <reponame>mzolfaghari71/AFD<filename>src/DNTFrameworkCore.Cqrs.EFCore/Behaviors/TransactionBehavior.cs
using System;
using System.Threading;
using System.Threading.Tasks;
using DNTFrameworkCore.Cqrs.Commands;
using DNTFrameworkCore.EFCore.Context;
using MediatR;
namespace DNTFrameworkCore.Cqrs.EFCore.Behaviors
{
... |
src/CSG/Content/STL/StlHelper.cs | Kaydax/CSG | 13 | 7064905 | <reponame>Kaydax/CSG
namespace CSG.Content.STL
{
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Numerics;
readonly struct StlTriangle
{
public readonly Vector3 Normal;
public readonly Vector3[] Positions;
public readonly usho... |
SecretSplitterGui/Properties/AssemblyInfo.cs | kdaveid/SecretSplitter | 53 | 7064906 | <filename>SecretSplitterGui/Properties/AssemblyInfo.cs
using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("SecretSplitter GUI")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Moserware")]
[assembly: AssemblyProduct("Se... |
src/Netnr.P/Netnr.Tool/Items/GitPull.cs | xmxth001/np | 48 | 7064907 | namespace Netnr.Tool.Items
{
public class GitPull
{
public static void Run()
{
try
{
var rootPath = string.Empty;
do
{
var dp = Environment.CurrentDirectory.TrimEnd('/').TrimEnd('\\');
... |
src/Web/HTMLPreviewer.Web/Views/Shared/_Layout.cshtml | stanislavstoyanov99/HTMLPreviewer | 1 | 7064908 | <gh_stars>1-10
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>@ViewData["Title"] - HTMLPreviewer</title>
<link href="~/lib/bootstrap/dist/css/bootstrap.css" rel="stylesheet" type="text/css" media="all" asp... |
ConfigParsers/ConfigParsers/Loot/Data/Table.cs | evilC/7DTD-Loot-Viewer | 2 | 7064909 | <reponame>evilC/7DTD-Loot-Viewer
namespace ConfigParsers.Loot.Data
{
/// <summary>
/// Old data structure only used by OldLootParser
/// </summary>
public class Table
{
/// <summary>
/// Key is Item Name, value is a HashSet (List) of Containers that the Item can spawn in
///... |
AdventOfCode2019/Day9.cs | Phrancis/AdventOfCode2019 | 0 | 7064910 | <filename>AdventOfCode2019/Day9.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AdventOfCode2019
{
class Day9 : IAdventOfCodeProblem
{
private readonly string _problemUrl = "https://adventofcode.com/2019/day/9";
p... |
Reverb/Models/SpotifyCategory.cs | golf1052/Reverb | 0 | 7064911 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Newtonsoft.Json;
namespace Reverb.Models
{
public class SpotifyCategory
{
[JsonProperty("href")]
public string Href { get; set; }
[JsonProperty("icons")]
public List<SpotifyImage> Icons... |
TEP.Infra.Persistence/Configurations/CategoryConfiguration.cs | rmcs87/TrainingEvaluationPlatform | 0 | 7064912 | using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using TEP.Domain.Entities;
namespace TEP.Infra.Persistence.Configurations
{
public class CategoryConfiguration : IEntityTypeConfiguration<Category>
{
public void Configure(EntityTypeBuilder<Category> builder)
... |
test/Neutralize.Core.Test/AspNetUser_Tests.cs | mauriciomoccelin/neutralize | 0 | 7064913 | <reponame>mauriciomoccelin/neutralize
using System;
using System.Security.Claims;
using FluentAssertions;
using Microsoft.AspNetCore.Http;
using Moq;
using Neutralize.Identity;
using Xunit;
namespace Neutralize.Core.Test
{
[Collection(nameof(NeutralizeCoreCollection))]
public class AspNetUser_Tests
{
... |
hello-sqs-fulfill/Program.cs | davidpallmann/hello-sqs | 0 | 7064914 | using Amazon.SQS;
using Amazon.SQS.Model;
using System.Text.Json;
namespace helloSqsFulfill
{
class Program
{
const string ORDER_QUEUE = "orders";
static AmazonSQSClient _client = null!;
static string _queueUrl = null!;
static async Task Main(string[] args)
{
... |
tests/WingtipToys.API.Tests/Controllers/ProductsControllerTests.cs | vaibhav-goyal/wingtip-toys | 0 | 7064915 | <reponame>vaibhav-goyal/wingtip-toys<gh_stars>0
using Microsoft.AspNetCore.Mvc;
using Moq;
using System;
using System.Threading;
using System.Threading.Tasks;
using WingtipToys.API.Controllers;
using WingtipToys.Domain.Interfaces;
using WingtipToys.Domain.Models;
using Xunit;
namespace WingtipToys.API.Tests.Controller... |
src/NGenerics.Tests/DataStructures/Mathematical/LUDecompositionTests/Determinant.cs | ngenerics/ngenerics | 93 | 7064916 | <filename>src/NGenerics.Tests/DataStructures/Mathematical/LUDecompositionTests/Determinant.cs
/*
Copyright 2007-2017 The NGenerics Team
(https://github.com/ngenerics/ngenerics/wiki/Team)
This program is licensed under the MIT License. You should
have received a copy of the license along with the source code. ... |
BootstrapTagHelpers/src/BootstrapTagHelpers/Forms/HorizontalFormContainerTagHelper.cs | daniel-kuon/BootstrapTagHelpers | 15 | 7064917 | <reponame>daniel-kuon/BootstrapTagHelpers
using BootstrapTagHelpers.Extensions;
using Microsoft.AspNetCore.Razor.TagHelpers;
namespace BootstrapTagHelpers.Forms {
using BootstrapTagHelpers.Attributes;
public abstract class HorizontalFormContainerTagHelper : BootstrapTagHelper {
public int? Widt... |
proj/Procezor.Optimula/Registry.Providers/OptimulaResults.cs | mzdyhrave/payrollcs | 0 | 7064918 | <reponame>mzdyhrave/payrollcs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using HraveMzdy.Procezor.Service.Interfaces;
using HraveMzdy.Procezor.Optimula.Registry.Constants;
namespace HraveMzdy.Procezor.Optimula.Registry.Providers
{
// Timeshe... |
ORMHowTo.Infrastructure/Models.cs | bunomonteiro/ORMHowTo | 0 | 7064919 | <filename>ORMHowTo.Infrastructure/Models.cs
using System;
using System.Collections.Generic;
namespace ORMHowTo.Infrastructure
{
public class Model { }
public class Artist : Model
{
public virtual int ArtistId { get; set; }
public virtual string Name { get; set; }
public virtual I... |
Assets/ThirdParty/ILRuntime/ILRuntime/Bugfix/DelegateStatements.cs | SixGodZhang/ATILRuntime | 23 | 7064920 | using System;
namespace ILRuntime
{
public class BugfixDelegateStatements
{
// delegate register
public static method_delegate0 GameFramework_Taurus_TestMainHotfix_NM_DoPrivateAction_IN__OUT_System_Void__Delegate;
public static method_delegate0 GameFramework_Taurus_TestMainHotfix_NM_DoAction_IN__OUT_... |
hms-sdk-unity/HuaweiMobileServices/Ads/SplashAd.cs | MustafaCQN/hms-sdk-unity | 6 | 7064921 | <reponame>MustafaCQN/hms-sdk-unity
using HuaweiMobileServices.Utils;
using System;
using System.Collections.Generic;
using System.Text;
using UnityEngine;
namespace HuaweiMobileServices.Ads
{
public class SplashAd : JavaObjectWrapper
{
public SplashAd(AndroidJavaObject javaObject) : base(javaObject) {... |
src/KJU.Core/Regex/RegexToNfaConverter.cs | kju-lang/kju | 3 | 7064923 | <filename>src/KJU.Core/Regex/RegexToNfaConverter.cs
namespace KJU.Core.Regex
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using KJU.Core.Automata;
public static class RegexToNfaConverter<Symbol>
{
public const string InvalidStateMessage = ... |
Sample/Sample.LogicMine.Shop.Service/Mine/Product/Create/ValidationStation.cs | tdinucci/LogicMine | 11 | 7064924 | using System.ComponentModel.DataAnnotations;
using System.Globalization;
using System.Text;
using System.Threading.Tasks;
using LogicMine;
using LogicMine.DataObject.CreateObject;
namespace Sample.LogicMine.Shop.Service.Mine.Product.Create
{
// A sample station that rejects requests (by throwing an exception) if t... |
MicroUpsert/VerificationFailedException.cs | justin-lovell/micro-upsert | 0 | 7064925 | using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
namespace MicroUpsert
{
[Serializable]
public class VerificationFailedException : Exception
{
//
// For guidelines regarding the creation of new exception types, see
// http://msdn.microsoft.com/l... |
IWebsocketManager.cs | drake7707/journal | 53 | 7064926 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Dashboard
{
public interface IWebsocketManager
{
void Send(string message);
}
}
|
SalesApp.Core.Tests/BL/Commissions/DateServiceTest.cs | mkopadev/salesapp | 0 | 7064927 | <gh_stars>0
using System;
using System.Threading.Tasks;
namespace SalesApp.Core.Tests.BL.Commissions
{
public class DateServiceTest
{
// [TestFixture] Todo Fix below issues in each test
public class CustomersControllerTest
{
// [Test] Todo System.FormatException : String wa... |
db/migrations/20201105001331_DutyPermissions.cs | nikola-rados/sheriff-scheduling | 0 | 7064928 | using System;
using Microsoft.EntityFrameworkCore.Migrations;
namespace SS.Db.Migrations
{
public partial class DutyPermissions : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.UpdateData(
table: "LookupCode",
... |
MLNetExamples/AutoMLRanking/Program.cs | wolfbomb/MLNetExamples | 1 | 7064930 | <reponame>wolfbomb/MLNetExamples
using System;
using Microsoft.ML;
using Microsoft.ML.AutoML;
namespace AutoMLRanking
{
class Program
{
static void Main(string[] args)
{
var context = new MLContext();
var data = context.Data.LoadFromTextFile<RankingData>("./ranking.tsv... |
Chance.NET/Attributes/Generated/StreetAttribute.Generated.cs | gmantaos/Chance.NET | 9 | 7064931 | using System;
using System.Reflection;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ChanceNET.Attributes
{
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
public class StreetAttribute : ChanceAttribute
{
Boolean shortSuffix = ... |
Assets/Scripts/Enemy/BossBehaviour.cs | SarenCurrie/the-tower | 1 | 7064932 | using UnityEngine;
using System.Collections;
public class BossBehaviour : Enemy
{
public void RotateToFacePlayer()
{
Vector3 relativePlayerPos = GetRelativePlayerPosition();
float angle = Mathf.Atan2(relativePlayerPos.y, relativePlayerPos.x) * Mathf.Rad2Deg + 270;
transform.rotation = Quaternion.AngleAxis(an... |
Runtime/Utils/WaitUtil.cs | fedorenkosergiy/Grabli | 0 | 7064933 | using Grabli.WrappedUnity;
using System.Threading.Tasks;
namespace Grabli.Utils
{
public static class WaitUtil
{
public static async Task SkipFrame() => await SkipFrames(numberOfFramesToSkip: 1U);
public static async Task SkipFrames(uint numberOfFramesToSkip)
{
Time time = Cxt.Time;
int frameN... |
Assets/Scripts/GameCtrl/GameButtons/GameWindow.cs | FantazmGameDevelopment/EcoSim | 0 | 7064934 | using UnityEngine;
using System.Collections.Generic;
namespace Ecosim.GameCtrl.GameButtons
{
/**
* Simple window manager and window base class for implementing in game windows
*/
public class GameWindow
{
/**
* Sets up windows, closes all currently open windows (OnClose will _not_ be called!)
*/
publi... |
ScriptsServer/Sumpfkraut/EffectSystem/Destinations/DestInit_NPC.cs | JulianVo/SumpfkrautOnline-Khorinis | 11 | 7064935 | using GUC.Scripts.Sumpfkraut.EffectSystem.Changes;
using GUC.Scripts.Sumpfkraut.EffectSystem.EffectHandlers;
using GUC.Scripts.Sumpfkraut.EffectSystem.Enumeration;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace GUC.Scripts.Sumpfkraut.EffectSystem.Destinations
{
pu... |
Human/Human.Library/Man.cs | 1904-apr22-net/priyanka-code | 0 | 7064936 | using System;
namespace Human.Library
{
public class Man
{
public string country { get; set; }
public void nature()
{
Console.WriteLine("natureee");
}
}
}
|
src/coreclr/tools/dotnet-pgo/SPGO/SampleProfile.cs | pyracanda/runtime | 9,402 | 7064937 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using Syste... |
AZALDevToolsServer/AnZwDev.ALTools/TypeInformation/TypeInformationCollector.cs | hemisphera/az-al-dev-tools-server | 0 | 7064938 | <filename>AZALDevToolsServer/AnZwDev.ALTools/TypeInformation/TypeInformationCollector.cs
using AnZwDev.ALTools.ALSymbols.Internal;
using AnZwDev.ALTools.Extensions;
using Microsoft.Dynamics.Nav.CodeAnalysis;
using Microsoft.Dynamics.Nav.CodeAnalysis.Syntax;
using System;
using System.Collections.Generic;
using System.... |
Client/AdditionalEqualsMethodAttribute.cs | postsharp/PostSharp.Community.StructuralEquality | 3 | 7064939 | using System;
namespace PostSharp.Community.StructuralEquality
{
/// <summary>
/// Custom method marker. The annotated method must have the signature <c>bool MethodName(Type)</c>, where <c>Type</c>
/// is the type that contains the method. The method is called by the auto-generated equality comparison afte... |
FYP_WEB_APP/obj/Debug/netcoreapp3.1/Razor/Views/Floors/Floors.cshtml.g.cs | wAikAp/Intelligent-Energy-Management-System-for-Buildings-INB | 10 | 7064940 | #pragma checksum "/Users/shingwaichan/Desktop/INB/Intelligent-Energy-Management-System-for-Buildings-INB/FYP_WEB_APP/Views/Floors/Floors.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "2933483e12b579ffff2c87190f10d75803d64a3c"
// <auto-generated/>
#pragma warning disable 1591
[assembly: global::Microsoft.AspNetCore.R... |
Controls/HUDTextbox.cs | stefanmielke/NodeGames.UI | 0 | 7064941 | <reponame>stefanmielke/NodeGames.UI
using System.Text;
using NodeGames.Core;
using NodeGames.UI.Interfaces;
namespace NodeGames.UI.Controls
{
internal class HUDTextbox<TColor> : HUDControl<TColor>
{
private readonly int _maxCharacters;
private readonly FontSize _iFontSize;
private read... |
src/PossumLabs.DSL.Web/ApplicationElements/CKE4Commands.cs | Possum-Labs/DSL | 3 | 7064942 | using OpenQA.Selenium;
using System.Text.RegularExpressions;
namespace PossumLabs.DSL.Web.ApplicationElements
{
public class CKE4Commands : IApplicationCommandSet
{
/// CKE 4
///<div id = "cke_editor1"
/// class="cke_1 cke cke_reset cke_chrome cke_editor_editor1 cke_ltr cke_browser_web... |
MiniC/Generators/RegisterGetters/BaseRegisterGetter.cs | gordiig/Hexa-C | 0 | 7064943 | <reponame>gordiig/Hexa-C
using System.Collections;
namespace MiniC.Generators.RegisterGetters
{
public abstract class BaseRegisterGetter: IRegisterGetter
{
protected Register[] registers;
protected BaseRegisterGetter(string registerPrefix, int registersCount)
{
registers = ... |
Tests/W3CWebDriver/Screenshot.cs | uyen-novobi/java-appium | 0 | 7064944 | //******************************************************************************
//
// Copyright (c) 2016 Microsoft Corporation. All rights reserved.
//
// This code is licensed under the MIT License (MIT).
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT L... |
Jacere.ConsoleCredentials.Windows/LocalAppDataCredentialSource.cs | jdauie/Jacere.ConsoleCredentials | 0 | 7064945 | using System;
using System.IO;
namespace Jacere.ConsoleCredentials.Windows
{
public class LocalAppDataCredentialSource : ICredentialSource
{
private readonly string _path;
public LocalAppDataCredentialSource(string dirName, string fileName)
{
var appData = Environment.GetF... |
Models/IUserAddress.cs | ggraur/toDoList | 0 | 7064946 | <gh_stars>0
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace toDoList.Models
{
public interface IUserAddress
{
public AppUserAddress Add(AppUserAddress userAddress);
public AppUserAddress Update(AppUserAddress userAddress);
publ... |
Ichnaea.Tests/Unit/InMemoryDomainEventTrackerTest.cs | pete-restall/Ichnaea | 1 | 7064947 | <reponame>pete-restall/Ichnaea
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using FluentAssertions;
using NSubstitute;
using Restall.Ichnaea.Tests.Unit.Stubs;
using Xunit;
namespace Restall.Ichnaea.Tests.Unit
{
public class InMemoryDomainEventTrackerTest
... |
PhoneApiService/Controllers/IdentityController.cs | staneee/OceIdentity | 0 | 7064948 | using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace PhoneApiService.Controllers
{
[Route("api/[controller]")]
[ApiController]
[Authorize]
public class IdentityController : C... |
source/Lexicala.NET/Response/Search/Result.cs | HannoZ/Lexicala.NET | 0 | 7064949 | <reponame>HannoZ/Lexicala.NET
using Newtonsoft.Json;
namespace Lexicala.NET.Response.Search
{
#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member
public class Result
{
[JsonProperty("id")]
public string Id { get; set; }
[JsonProperty("language")]
... |
NodeServerTest/UnitTest1.cs | neurospeech/asp-net-core-node-server | 0 | 7064950 | using System;
using Xunit;
using NeuroSpeech;
namespace NodeServerTest
{
public class ParseNPMPackageTest
{
[Fact]
public void Parse()
{
var (package, version, path) = "root".ParseNPMPath();
Assert.Equal("", version);
Assert.Equal("root", package);
... |
BackPropagation_Implementation/NN_Forms/TSP.cs | aoso3/Neural-Networks-Implementation | 2 | 7064951 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Telerik.WinControls;
using System.Windows.Forms.DataVisualization.Charting;
using Accord.Math;
namespace BackPropagation_Implementation.NN_Forms
{... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.