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 |
|---|---|---|---|---|
app/Spinner.Test/NothingRight.cs | SpinnerAlloc/Spinner | 2 | 7033620 | using Spinner.Attribute;
using Spinner.Enum;
using System;
namespace Spinner.Test
{
[ObjectMapper(length: 50)]
internal struct NothingRight : IEquatable<NothingRight>
{
public NothingRight(string name, string adress)
{
this.Name = name;
this.Adress = adress;
... |
Code/Max.Tools.DomainGenerator/Model/MapProperty.cs | codetuner/Arebis-MAX-Mapper | 1 | 7033621 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
using System.Runtime.Remoting.Messaging;
using System.Reflection;
using System.Text.RegularExpressions;
namespace Max.Tools.DomainGenerator.Model
{
[Serializable]
public class MapProperty
{
publ... |
src/CoWorker.Models.Abstractions/Stores/TemporaryRsaKey.cs | dcvsling/CoWorker | 1 | 7033622 | <filename>src/CoWorker.Models.Abstractions/Stores/TemporaryRsaKey.cs
using Newtonsoft.Json;
using System.IO;
using System.Security.Cryptography;
namespace CoWorker.Models.Abstractions.Stores
{
internal class TemporaryRsaKey
{
internal static TemporaryRsaKey Empty => new TemporaryRsaKey();
pri... |
YNDIY.Admin/Views/Upload/SupplierExcelTemplate.cshtml | hqqshe/JIAJU | 0 | 7033623 | @{
Layout = null;
}
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<script src="@Path.getJsPath()/jquery-1.7.2.js"></script>
<title>上传供应商EXCEL模板</title>
</head>
<body>
<div>
<form enctype="multipart/form-data" action="/ERPSupplier/uploadTemplate" metho... |
src/Vodamep/Agp/AgpReportDiffer.cs | lizardwine/Vodamep | 0 | 7033624 | <gh_stars>0
using System.Collections.Generic;
using System.Linq;
using Google.Protobuf.Collections;
using Vodamep.Agp.Model;
using Vodamep.ReportBase;
namespace Vodamep.Agp
{
internal class AgpReportDiffer : ActivityReportDifferBase<ActivityType>
{
public AgpReportDiffer()
{
this.... |
src/CosmosDbGaspode/CosmosDbGaspode.Core.Tests/SetUpFixture.cs | ericpopivker/cosmos-db-gaspode | 1 | 7033625 | <gh_stars>1-10
using System;
using NUnit.Framework;
using PandaTech.Infrastructure;
using PandaTech.Infrastructure.Helpers;
namespace CosmosDbGaspode.Core.Tests
{
[SetUpFixture]
public class SetUpFixture
{
[OneTimeSetUp]
public void OneTimeSetUp()
{
var config... |
mayintarlasi/dinamit.cs | enissahillioglu/holyship-oyunu | 0 | 7033626 | <reponame>enissahillioglu/holyship-oyunu<filename>mayintarlasi/dinamit.cs<gh_stars>0
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace mayintarlasi
{
class dinamit : PictureBox
... |
SafeboardSnake.Core/Helpers/LinkedListHelper.cs | DeagleGross/OnlineSnakeTraining | 0 | 7033627 | using System;
using System.Collections.Generic;
namespace SafeboardSnake.Core.Helpers
{
public static class LinkedListHelper
{
/// <summary>
/// Returns (предпоследний) last but one element in linkedList.
/// If passed linkedList doesn't have at least 2 elements throws argument excepti... |
15.Data-Structures-and-Algorithms/Exam-Preparation/ExamPreparation/[Recurssion]Girls Gone Wild/Program.cs | VVoev/Telerik-Academy | 0 | 7033628 | <gh_stars>0
using System;
class CombinationsGeneratorWithReps
{
static int n = 0;
static int k = 0;
static string[] objects = new string[4]
{
"b","a","c","a"
};
static int[] arr;
static void Main()
{
n = int.Parse(Console.ReadLine());
k = int.Parse(Console.ReadL... |
Sources/GAF/TaxesGAFExport/CreatorsForDocs/Builders/GafRecordBuilderByTaxTranCalcedOnDocAmt.cs | Acumatica/GAFFileExport | 0 | 7033629 | <reponame>Acumatica/GAFFileExport<gh_stars>0
using PX.Objects.CM;
using PX.Objects.TX;
using TaxesGAFExport.Data.Records;
using TaxesGAFExport.Repositories;
namespace TaxesGAFExport.CreatorsForDocs.Builders
{
public abstract class GafRecordBuilderByTaxTranCalcedOnDocumentAmt<TGafRecord, TRegister> : GafRecordBuilder... |
Src/Fido2.Models/IMetadataService.cs | fa18swiss/fido2-net-lib | 2 | 7033630 | using System;
using System.Threading.Tasks;
using Newtonsoft.Json;
namespace Fido2NetLib
{
public interface IMetadataService
{
MetadataTOCPayloadEntry GetEntry(Guid aaguid);
bool ConformanceTesting();
bool IsInitialized();
Task Initialize();
}
public class MetadataTOCP... |
src/LibHac/FsService/Creators/RomFileSystemCreator.cs | klear72/LibHac | 0 | 7033631 | using System;
using LibHac.Fs;
namespace LibHac.FsService.Creators
{
public class RomFileSystemCreator : IRomFileSystemCreator
{
public Result Create(out IFileSystem fileSystem, IStorage romFsStorage)
{
throw new NotImplementedException();
}
}
}
|
test/chapter16/Q16.4-tic-tac-test.cs | LuigiAndrea/ctci | 7 | 7033632 | using System;
using Xunit;
using static Chapter16.Q16_4TicTac;
namespace Tests.Chapter16
{
public class Q16_4
{
[TheoryAttribute]
[MemberData(nameof(TestDataTicTac.getWinningXCombinations), MemberType = typeof(TestDataTicTac))]
public void TicTacWinningXTest(value[,] board)
{
... |
ModernWpf/Transitions/TransitionFrame.cs | spartajet/ModernWpf | 0 | 7033633 | // (c) Copyright Microsoft Corporation.
// This source is subject to the Microsoft Public License (Ms-PL).
// Please see http://go.microsoft.com/fwlink/?LinkID=131993 for details.
// All other rights reserved.
using System;
using System.Diagnostics;
using System.Windows;
using System.Windows.Controls;
using System.Wi... |
Acquaintance/Nets/NetValidator.cs | Whiteknight/Acquaintance | 2 | 7033634 | <reponame>Whiteknight/Acquaintance
using System.Collections.Generic;
using System.Linq;
namespace Acquaintance.Nets
{
public class NetValidator
{
private static readonly INetValidation[] _validations = {
new HasAnyChannelsNetValidation(),
new AllInputChannelsExistNetValidation(... |
SharpCaster/Extensions/StreamSocketExtension.cs | marufbd/SharpCaster | 244 | 7033635 | using Windows.Networking.Sockets;
using Windows.Security.Cryptography.Certificates;
namespace SharpCaster.Extensions
{
public static class StreamSocketExtension
{
public static StreamSocket ConfigureForChromecast(this StreamSocket socket)
{
//Chromecast is not using truste... |
Code/UserInterface/TackyTacos.WebApp/Models/TacoSpecial.cs | CrypticEngima/TackyTacos | 18 | 7033636 | <gh_stars>10-100
namespace TackyTacos.WebApp.Models
{
public class TacoSpecial
{
public int Id { get; set; }
public string Name { get; set; }
public decimal BasePrice { get; set; }
public string Description { get; set; }
public string ImageUrl { get; set; }
public string GetFormattedBasePrice() => B... |
src/Avalonia.Base/IStyledPropertyMetadata.cs | Kibnet/Avalonia | 0 | 7033637 | <reponame>Kibnet/Avalonia<filename>src/Avalonia.Base/IStyledPropertyMetadata.cs
using Avalonia.Metadata;
namespace Avalonia
{
/// <summary>
/// Untyped interface to <see cref="StyledPropertyMetadata{TValue}"/>
/// </summary>
[NotClientImplementable]
public interface IStyledPropertyMetadata
{
... |
WordCount/WordCount.WebService/HttpCommunicationClient.cs | dominikfoldi/AzureServiceFabricDemos | 4 | 7033638 | <gh_stars>1-10
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Wo... |
src/bbwm.unittests/HealthFunctionTests.cs | giuliov/BigBankWealthManagement | 0 | 7033639 | <gh_stars>0
using Functions.Tests;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using Xunit;
namespace bbwm.unittests
{
public class HealthFunctionTests : FunctionTestHelper.FunctionTest
{
private readonly ILogger logger = TestFactory.CreateLogger();
[Fact]
publi... |
src/lcdb/Database.cs | 15831944/LitCad-1 | 2 | 7033640 | <reponame>15831944/LitCad-1
using System;
using System.Collections.Generic;
using LitCAD.Colors;
namespace LitCAD.DatabaseServices
{
public class Database
{
private BlockTable _blockTable = null;
private LayerTable _layerTable = null;
private Dictionary<ObjectId, DBObject> _dictId2Ob... |
Editor/Unium/GQL/Root.cs | KosmoDED/EditorTerminal | 187 | 7033641 | // Copyright (c) 2017 <NAME>, https://opensource.org/licenses/MIT
using System;
using System.Collections.Generic;
namespace gw.gql
{
////////////////////////////////////////////////////////////////////////////////////////////////////
public class Root
{
Dictionary<string,object> mRoot... |
Michaelsoft.BodyGuard.Client/Utilities/JwtUtility.cs | michaeldisaro/BodyGuard | 1 | 7033642 | using System;
using System.IdentityModel.Tokens.Jwt;
using System.Linq;
using Michaelsoft.BodyGuard.Common.BaseClasses;
using Michaelsoft.BodyGuard.Common.Extensions;
namespace Michaelsoft.BodyGuard.Client.Utilities
{
public class JwtUtility : InjectedHttpContextBaseStaticClass
{
public static string... |
Functional.AutoFixture/MaybeSpecimenBuilder.cs | bdlane/Functional | 0 | 7033643 | using AutoFixture.Kernel;
using System;
using System.Linq;
namespace Functional.AutoFixture
{
public class MaybeSpecimenBuilder : ISpecimenBuilder
{
public object Create(object request, ISpecimenContext context)
{
if (!(request is Type t))
{
return new N... |
Garmin.Connect/Models/GarminHydrationData.cs | HSyr/dotnet.garmin.connect | 1 | 7033644 | <reponame>HSyr/dotnet.garmin.connect
using System;
using System.Text.Json.Serialization;
namespace Garmin.Connect.Models;
public record GarminHydrationData
{
[JsonPropertyName("userId")]
public long UserId { get; init; }
[JsonPropertyName("calendarDate")]
public DateTime CalendarDate { get; init; }
... |
Samples/VS2012/WcfSample/WcfSample.Client.Entities/Models/CustomerSetting.cs | edi0177/trackable-entities | 107 | 7033645 | using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
using Newtonsoft.Json;
using TrackableEntities;
using TrackableEntities.Client;
namespace WcfSample.Client.Entities.Models
{
[JsonObject(IsReference = true)]
[DataContract(IsReference = true, Namespace = "http://schemas.datacon... |
WebRandomizer/Controllers/Helpers.cs | ardnaxelarak/SMZ3Randomizer | 0 | 7033646 | <gh_stars>0
using System.Collections.Generic;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Serialization;
namespace WebRandomizer.Controllers {
public class Helpers {
static readonly JsonSerializerSettings IndentedCamelCasePropsStringEnums = new() {
Contract... |
prime-dotnet-webapi/Migrations/20200805175204_UpdateComunnityPracticeOrgType.cs | countable-web/moh-prime | 1 | 7033647 | using Microsoft.EntityFrameworkCore.Migrations;
namespace Prime.Migrations
{
public partial class UpdateComunnityPracticeOrgType : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.UpdateData(
table: "OrganizationTypeLookup... |
MyAlbum.BL/Models/Model.cs | PrisonerM13/MyAlbum | 2 | 7033648 | using MyLibrary.DAL;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Runtime.Serialization;
using System.Threading.Tasks;
namespace MyAlbum.BL.Models
{
[JsonObject(MemberSerializa... |
WalletKeeper.Core.Application/Queries/GetReceipts/GetReceiptsHandler.cs | jeydo6/WalletKeeper | 0 | 7033649 | <filename>WalletKeeper.Core.Application/Queries/GetReceipts/GetReceiptsHandler.cs
using MediatR;
using Microsoft.Extensions.Logging;
using System;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using WalletKeeper.Core.Domain.Dto;
using WalletKeeper.Core.Domain.Exceptions;
using WalletKeeper.C... |
005-RockPaperScissorsBoom/Student/Resources/Code/UnitTests/DataBuilders/RoundResultBuilder.cs | kant/WhatTheHack | 991 | 7033650 | <reponame>kant/WhatTheHack
using RockPaperScissor.Core.Game;
using RockPaperScissor.Core.Game.Results;
using RockPaperScissor.Core.Model;
namespace UnitTests.DataBuilders
{
public class RoundResultBuilder
{
private RoundResult _entity = new RoundResult();
public RoundResult Build()
{
... |
src/Invisionware.Settings/Interfaces/Sink/ISettingsValueReaderSinkAsync.cs | Invisionware/Settings | 1 | 7033651 | using System.Threading.Tasks;
namespace Invisionware.Settings
{
public interface ISettingsValueReaderSinkAsync : ISettingsReaderSink, ISettingsSinkAsync
{
Task<T> ReadSettingAsync<T>(string key, T defaultValue = default(T));
}
} |
FileHelpers.Tests/Tests/Helpers/StreamHelperTest.cs | garfiedhuang/FileHelper | 966 | 7033653 | using System;
using System.IO;
using NUnit.Framework;
using NFluent;
namespace FileHelpers.Tests.Helpers
{
/// <summary>
/// FileHelpers Helpers StreamHelper tests
/// Stream Helper opens files and optionally trims off blank lines at the end.
/// We access this through the engine with append... |
src/Comet.Mac/CometViewController.cs | VincentH-Net/Comet | 1 | 7033654 | <reponame>VincentH-Net/Comet<filename>src/Comet.Mac/CometViewController.cs
using System;
using System.Drawing;
using AppKit;
using Comet.Mac.Extensions;
namespace Comet.Mac
{
public class CometViewController : NSViewController, IViewHandler
{
private CometView _containerView;
public CometViewController()
{
... |
LiteApi/LiteApi.Tests/Controllers/DifferentNoRootController.cs | stanac/LiteApi | 5 | 7033655 | <reponame>stanac/LiteApi<gh_stars>1-10
namespace LiteApi.Tests.Controllers
{
[ControllerRoute("DifferentNoRoot")]
public class DifferentNoRootController : LiteController
{
public string Get()
{
return "DifferentNoRoot";
}
}
}
|
scripts/server/weapons/PaintballMarkerGreen.cs | Duion/Uebergame | 125 | 7033656 | <reponame>Duion/Uebergame
//-----------------------------------------------------------------------------
// Copyright (c) 2012 GarageGames, LLC
//
// 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 S... |
Presentacion/Menu.Designer.cs | yackfranco/InventarioEquipos | 0 | 7033657 | <filename>Presentacion/Menu.Designer.cs
namespace Presentacion
{
partial class Menu
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
... |
SW.Infolink.Sdk/Model/SubscriberConfig.cs | simplify9/Infolink | 5 | 7033658 | <filename>SW.Infolink.Sdk/Model/SubscriberConfig.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace SW.Infolink
{
public class SubscriberConfig
{
public string Name { get; set; }
public int KeySetId { get; set; }
public int Doc... |
src/QLNet/Instruments/Bonds/BTP.cs | maittaeb/QLNet | 244 | 7033659 | /*
Copyright (C) 2008-2013 <NAME> (<EMAIL>)
This file is part of QLNet Project https://github.com/amaggiulli/qlnet
QLNet is free software: you can redistribute it and/or modify it
under the terms of the QLNet license. You should have received a
copy of the license along with this program; if not, license is
... |
FatCat.Fakes.Tests/SpeedUp/Models/Nasa.cs | DavidBasarab/FatCat.Fakes | 4 | 7033660 | <filename>FatCat.Fakes.Tests/SpeedUp/Models/Nasa.cs
using System;
using System.Collections.Generic;
namespace FatCat.Fakes.Tests.SpeedUp.Models
{
public class Nasa
{
public List<Administrator> Administrators { get; set; }
public List<Personnel> AllPersonnel { get; set; }
public List<SpaceLaunchCenter> Center... |
UnityProj/Assets/EarthSateliteLoader.cs | GAnatoliy/holo-sky | 1 | 7033661 | <reponame>GAnatoliy/holo-sky<filename>UnityProj/Assets/EarthSateliteLoader.cs
using Assets.Core.Scripts;
using Assets.Scripts;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Events;
public class EarthSateliteLoader : MonoBehaviour
{
public GameObject SatelitePointPrefab;
public Transfo... |
Travel.Web/Views/Details/Index.cshtml | Jas05/TravelTest | 0 | 7033662 | <gh_stars>0
@model Travel.Web.ViewModels.DetailsViewModel
@{
ViewBag.Title = "Index";
Layout = "~/Views/Shared/_Layout.cshtml";
}
<div class="row" style="margin-top: 20px;">
<div class="col-xs-12">
@*<img src="~/Content/img/Beach_hotels_landscape.jpg" />*@
<img src="~/Content/img/detailsb... |
Workshop/WebServer/MyCoolWebServer/ByTheCakeApplication/Controllers/BaseController.cs | pirocorp/CSharp-Web-Basics | 79 | 7033663 | namespace MyCoolWebServer.ByTheCakeApplication.Controllers
{
using Infrastructure;
public abstract class BaseController : Controller
{
protected override string ApplicationDirectory => "ByTheCakeApplication";
}
}
|
Assets/Script/UIScript/MenuHumanAnimation.cs | Anarchy-Massacre-Studio/TheFPSGame | 0 | 7033664 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using DG.Tweening;
public class MenuHumanAnimation : MonoBehaviour
{
public Animator Animator;
public WeaponIK WeaponIK;
#region api
#region The Button named Equip
public void Equip()
{
Animator.SetBool("i... |
NUnitTests/Utils/TinyBctRunner.cs | 2103962345/TinyBCT | 3 | 7033665 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TinyBCT;
namespace NUnitTests
{
class TinyBctRunner
{
public string Run(ProgramOptions options)
{
TinyBCT.Program.Start(options);
return options.Out... |
Source/AmazonSpApiSDK/Api/MerchantFulfillment/MerchantFulfillmentApi.cs | crisweber2600/Amazon-SP-API-CSharp | 0 | 7033666 | /*
* Selling Partner API for Merchant Fulfillment
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*
* Generated by: https://github.com/swagger-a... |
DeviceCode/Targets/Native/Interop/ManagedCode/CQ_NETMF_MP3/MP3Device.cs | Sirokujira/MicroFrameworkPK_v4_3 | 0 | 7033667 | using System;
using Microsoft.SPOT;
using System.Runtime.CompilerServices;
namespace CQ.NETMF.MP3
{
public static class MP3Device
{
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern void MP3Device_MP3_Initialize();
[MethodImpl(MethodImplOptions.InternalCall)]
pr... |
Lexiconner/Lexiconner.Domain/Dtos/CustomCollections/CustomCollectionCreateDto.cs | berkutteam/lexiconner | 0 | 7033668 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Lexiconner.Domain.Dtos.CustomCollections
{
public class CustomCollectionCreateDto
{
public string ParentCollectionId { get; set; }
public string Name { get; set; }
}
}
|
Laison.Lapis.PermissionManagement/src/Laison.Lapis.PermissionManagement.Application.Contracts/Permission/PermissionGroupDto.cs | zwcm2007/Lapis.Framework | 1 | 7033669 | <filename>Laison.Lapis.PermissionManagement/src/Laison.Lapis.PermissionManagement.Application.Contracts/Permission/PermissionGroupDto.cs
using System.Collections.Generic;
namespace Laison.Lapis.PermissionManagement.Application
{
public class PermissionGroupDto
{
public string Name { get; set; }
... |
osu.Game/Screens/Select/FilterQueryParser.cs | ProTheory8/osu | 2 | 7033670 | // Copyright (c) ppy P<NAME> <<EMAIL>>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Globalization;
using System.Text.RegularExpressions;
using osu.Game.Beatmaps;
namespace osu.Game.Screens.Select
{
internal static clas... |
Hayden.WebServer/Routing/ApiModeActionFilter.cs | bbepis/Hayden | 25 | 7033671 | <reponame>bbepis/Hayden<gh_stars>10-100
using System;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Filters;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Options;
namespace Hayden.WebServer.Routing
{
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method)]
... |
src/Alexa.NET.Extensions/Extensions/DateTimeExtensions.cs | thunderluca/Alexa.NET.Extensions | 0 | 7033672 | <filename>src/Alexa.NET.Extensions/Extensions/DateTimeExtensions.cs
using System.Globalization;
namespace System
{
public static class DateTimeExtensions
{
public static DateTime AddWeeks(this DateTime dateTime, int weeks, bool useGregorianCalendar)
{
return useGregorianCalendar
... |
sources/Leak.Tracker.Get.Events/TrackerPacketSent.cs | sora-jp/leak | 76 | 7033673 | using System;
using System.Net;
using Leak.Common;
namespace Leak.Tracker.Get.Events
{
public class TrackerPacketSent
{
public FileHash Hash;
public PeerHash Peer;
public Uri Address;
public IPEndPoint Endpoint;
public int Size;
}
} |
SDL2-CS-OO/GammaRamp.cs | SpaceCurator/SDL2-CS-OO | 1 | 7033674 | using System;
namespace SDL2_CS_OO
{
public struct GammaRamp
{
ushort[] myRed;
ushort[] myGreen;
ushort[] myBlue;
public GammaRamp(ushort[] TheRed, ushort[] TheGreen, ushort[] TheBlue)
{
if(TheRed.Length != 256)
throw new Exception("Inv... |
SourceCode/App/Validators/PersonValidator.cs | proggy/Tellurian.Trains.ModulesRegistryApp | 0 | 7033675 | using FluentValidation;
using Microsoft.Extensions.Localization;
using ModulesRegistry.Data;
namespace ModulesRegistry.Validators
{
public class PersonValidator : AbstractValidator<Person>
{
public PersonValidator(IStringLocalizer<App> localizer)
{
RuleFor(person => person.FirstNam... |
Serialization-Tests/TestClasses/Size.cs | GregFinzer/KellermanSoftware-Serialization | 8 | 7033676 | <gh_stars>1-10
namespace SerializationTests.TestClasses
{
public struct Size
{
public int Width;
public int Height;
}
public struct SizeWithProperties
{
public int Width { get; set; }
public int Height { get; set; }
}
}
|
Horizon.Payment.Alipay/Domain/AntlawSignOperator.cs | bluexray/Horizon.Sample | 1 | 7033677 | <filename>Horizon.Payment.Alipay/Domain/AntlawSignOperator.cs
using System.Text.Json.Serialization;
namespace Horizon.Payment.Alipay.Domain
{
/// <summary>
/// AntlawSignOperator Data Structure.
/// </summary>
public class AntlawSignOperator : AlipayObject
{
/// <summary>
/// 证件类型,... |
Examples/TPInventoryPackage/Editor/InventoryExampleEditor.cs | Prastiwar/TPFrameworkUnity | 9 | 7033678 | using TP.Framework.Unity.Editor;
using UnityEditor;
[CustomEditor(typeof(InventoryExample))]
public class InventoryExampleEditor : ScriptlessEditor<InventoryExample>
{
public override void OnInspectorGUI()
{
TP.Framework.Unity.Editor.EditorGUI.OnButton("Spawn Slots", Target.SpawnSlots);
base.O... |
AlipaySDKNet/Response/AlipayUserDtbankQrcodedataQueryResponse.cs | alipay/alipay-sdk-net | 117 | 7033679 | <filename>AlipaySDKNet/Response/AlipayUserDtbankQrcodedataQueryResponse.cs
using System;
using System.Xml.Serialization;
namespace Aop.Api.Response
{
/// <summary>
/// AlipayUserDtbankQrcodedataQueryResponse.
/// </summary>
public class AlipayUserDtbankQrcodedataQueryResponse : AopResponse
... |
src/Cortex.Net/Api/SharedStateWhenExtensions.cs | wdichler/Cortex.Net | 68 | 7033680 | <reponame>wdichler/Cortex.Net
// <copyright file="SharedStateWhenExtensions.cs" company="<NAME>, <NAME>">
// Copyright 2019 <NAME>, <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 ... |
server/machines/niigata/ToolData.cs | SeedTactics/fms-insight | 9 | 7033681 | <reponame>SeedTactics/fms-insight
/* Copyright (c) 2020, <NAME>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this l... |
CryptoExchange.Net.UnitTests/ExchangeClientTests.cs | mdvx/CryptoExchange.Net | 1 | 7033682 | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Net;
using System.Net.Http;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using CryptoExchange.Net.Authentication;
using CryptoExchange.Net.Interfaces;
using CryptoExchange.Net.Logging;
u... |
Assets/Scripts/GameScripts/MiniGame/ItemPickUp.cs | breached-game/BreachedGame | 0 | 7033683 | <filename>Assets/Scripts/GameScripts/MiniGame/ItemPickUp.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ItemPickUp : MonoBehaviour
{
public GameObject itemBeingHeld;
public string desc;
}
|
MyLibAxolotl/Groups/Ratchet/SenderChainKey.cs | BayrakMustafa/WhatsApp-API-NET | 18 | 7033684 | /**
* Copyright (C) 2015 smndtrl
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distribu... |
src/Simego.DataSync.Providers.Avangate/Parsers/CodeValueParser.cs | Simego-Ltd/datasync-avangate-connector | 0 | 7033685 | <reponame>Simego-Ltd/datasync-avangate-connector<filename>src/Simego.DataSync.Providers.Avangate/Parsers/CodeValueParser.cs
using Newtonsoft.Json.Linq;
using Simego.DataSync.Providers.Avangate.Interfaces;
using System.Collections.Generic;
using System.Linq;
namespace Simego.DataSync.Providers.Avangate.Parsers
{
p... |
src/Burrow.Tests/DefaultMessageHandlerTests/Constructor.cs | telerik/Burrow.NET | 2 | 7033686 | <filename>src/Burrow.Tests/DefaultMessageHandlerTests/Constructor.cs
using System;
using Burrow.Tests.Extras.RabbitSetupTests;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using NSubstitute;
// ReSharper disable InconsistentNaming
namespace Burrow.Tests.DefaultMessageHandlerTests
{
[TestClass]
public c... |
LargoSharedClasses/Music/BitRange.cs | Vladimir1965/LargoComposer | 0 | 7033687 | <filename>LargoSharedClasses/Music/BitRange.cs
// <copyright file="BitRange.cs" company="Traced-Ideas, Czech republic">
// Copyright (c) 1990-2021 All Right Reserved
// </copyright>
// <author>vl</author>
// <email></email>
// <date>2021-09-01</date>
// <summary>Part of Largo Composer</summary>
using System;
using Sys... |
TfsMigrate.Core/CommitTree/CommitterNode.cs | alastairgould/tfs-migrate | 1 | 7033688 | using System;
using TfsMigrate.Core.CommitTree.NodeTypes;
using TfsMigrate.Core.CommitTree.Traverse;
namespace TfsMigrate.Core.CommitTree
{
public class CommitterNode : INameNode
{
public string NodeName => "committer";
public string Name { get; }
public string Email { get; }
... |
source/R5T.D0104.I001/Code/Bases/Extensions/IServiceActionExtensions.cs | SafetyCone/R5T.D0104 | 0 | 7033690 | using System;
using Microsoft.Extensions.DependencyInjection;
using R5T.D0048;
using R5T.T0062;
using R5T.T0063;
namespace R5T.D0104.I001
{
public static class IServiceActionExtensions
{
/// <summary>
/// Adds the <see cref="ServiceCollectionAuditSerializer"/> implementation of <see cref="I... |
LoadEngineAndFile.cs | burque505/Modules.AhkTest2 | 4 | 7033691 | <gh_stars>1-10
using System;
using Robin.Core;
using Robin.Core.Attributes;
using System.ComponentModel;
using System.Windows.Forms;
using sharpAHK;
namespace Modules.AhkTest8
{
[Action(Order = 2)]
[Throws("ActionError")] // TODO: change error name (or delete if not needed)
public class LoadEngineAndFile ... |
CovidPassQr.Tests/Base45Test.cs | mormegil-cz/covidpass | 0 | 7033692 | <reponame>mormegil-cz/covidpass
using System.Text;
using CovidPassQr.Lib;
using NUnit.Framework;
namespace CovidPassQr.Tests
{
public class Base45Test
{
[Test]
public void Encode()
{
// see https://datatracker.ietf.org/doc/draft-faltstrom-base45/ section 4.3
... |
source/ValueObjects/BackupFile.cs | bernik1980/backup | 3 | 7033693 | using System;
namespace ValueObjects
{
/// <summary>
/// A file created from a source provider.
/// </summary>
public class BackupFile
{
/// <summary>
/// A unique identifier for the file. Will be initialized with Guid.NewGuid().
/// The identifier will be used to save the file on disk when creating the ba... |
SimulationAgent/Program.cs | VSChina/pcs-device-simulation | 0 | 7033694 | <gh_stars>0
// Copyright (c) Microsoft. All rights reserved.
using Autofac;
using Microsoft.Azure.IoTSolutions.DeviceSimulation.Services.Diagnostics;
using Microsoft.Azure.IoTSolutions.DeviceSimulation.SimulationAgent.Runtime;
using Microsoft.Azure.IoTSolutions.DeviceSimulation.SimulationAgent.Simulation;
using Newton... |
src/CacheManager.Core/Internal/BinaryCacheSerializer.cs | uQr/CacheManager | 0 | 7033695 | #if !NETSTANDARD
using System;
using System.IO;
using System.Runtime.Serialization.Formatters;
using System.Runtime.Serialization.Formatters.Binary;
using CacheManager.Core.Utility;
namespace CacheManager.Core.Internal
{
/// <summary>
/// Basic binary serialization implementation of the <see cref="ICacheSeria... |
Lingu.Grammars/Lexer.cs | knutjelitto/NuBert | 0 | 7033696 | <reponame>knutjelitto/NuBert
namespace Lingu.Grammars
{
public abstract class Lexer
{
public Lexer(Terminal terminal)
{
Terminal = terminal;
}
public Terminal Terminal { get; }
public Provision Provision => Terminal.Provision;
public Token MakeToken... |
ImaRunnerImaTrackstar/Assets/Polaris - Low Poly Ecosystem/TextureGraph/Core/Runtime/Connection/ITEdge.cs | apurplecaboose/Project-Parkour | 0 | 7033698 | using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System;
namespace Pinwheel.TextureGraph
{
public interface ITEdge : ITGraphSerializeCallbackReceiver, IEquatable<ITEdge>
{
Guid GUID { get; }
TSlotReference OutputSlot { get; }
TSlotReference InputSlot ... |
src/ICU4N/Text/Normalizer2.cs | rclabo/ICU4N | 15 | 7033699 | <reponame>rclabo/ICU4N
using ICU4N.Impl;
using ICU4N.Util;
using J2N.IO;
using J2N.Text;
using System;
using System.IO;
using System.Text;
namespace ICU4N.Text
{
/// <summary>
/// Constants for normalization modes.
/// For details about standard Unicode normalization forms
/// and about the algorithms... |
src/Razor/src/Microsoft.AspNetCore.Razor.LanguageServer/EndpointContracts/Debugging/RazorProximityExpressionsParamsBridge.cs | ryzngard/razor-tooling | 31 | 7033700 | <gh_stars>10-100
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the MIT license. See License.txt in the project root for license information.
using MediatR;
using Microsoft.AspNetCore.Razor.LanguageServer.Protocol;
namespace Microsoft.AspNetCore.Razor.LanguageServer.EndpointContracts.Debugg... |
Public/Src/Cache/DistributedCache.Host/Service/Internal/InterProcessSecretsCommunicator.cs | BearerPipelineTest/BuildXL | 448 | 7033701 | <reponame>BearerPipelineTest/BuildXL
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using System;
using System.Collections.Generic;
using System.IO;
using System.IO.MemoryMappedFiles;
using System.Threading;
using BuildXL.Cache.ContentStore.Extensions;
using BuildXL.Cache.ContentS... |
Assets/DNode/Scripts/Core/DExtract.cs | nattos/dnode | 0 | 7033702 | <reponame>nattos/dnode
using System;
using Unity.VisualScripting;
namespace DNode {
public class DExtract : DArrayOperationBase<DExtract.Data> {
public struct Data {
public DValue Indexes;
public bool Interpolate;
}
[DoNotSerialize][NoEditor] public ValueInput Indexes;
[DoNot... |
Parrot/Displays/pLegend.cs | cdriesler/Aviary | 5 | 7033703 | <reponame>cdriesler/Aviary
using Parrot.Controls;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
using System.Windows.Shapes;
using Wind.Containers;
using Wind.Types;
namespace Parrot.Displays
{
... |
Assets/PolycularCore/JSONApi/Converters/Vector2Converter.cs | polycular/oekogotschi-goes-school | 1 | 7033704 | <filename>Assets/PolycularCore/JSONApi/Converters/Vector2Converter.cs
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System.Collections.Generic;
using System.Linq;
using System;
using UnityEngine;
namespace JSONApi.Converters
{
public class Vector2Converter : JsonConverter
{
public override ... |
CSharpApplications/EliteQuantExcel/Termstructures/RateHelpers.cs | qg0/EliteQuant_Excel | 6 | 7033705 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ExcelDna.Integration;
using ExcelDna.Integration.Rtd;
using Xl = Microsoft.Office.Interop.Excel;
namespace EliteQuantExcel
{
public class RateHelpers
{
static EliteQuant.Calendar cal_gbp = new EliteQuant.U... |
base/Libraries/Eventing/SampleEvent.cs | sphinxlogic/Singularity-RDK-2.0 | 0 | 7033706 | // ----------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ----------------------------------------------------------------------------
using System;
using System.Runtime.CompilerServices;
using Microsoft.Singularity.T... |
Assets/Scripts/addtoOrbit.cs | sarahbroome/Solar-System-Simulator | 0 | 7033708 | <reponame>sarahbroome/Solar-System-Simulator
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class NewBehaviourScript : MonoBehaviour
{
public void addtoOrbitButton ()
{
}
}
|
Shameless/QRGeneration/QrResult.cs | fcancelog/Shameless | 110 | 7033709 | namespace Shameless.QRGeneration
{
using System.Drawing;
public class QrResult
{
public QrResult(string url, Bitmap qrCode)
{
this.Url = url;
this.QrCode = qrCode;
}
public string Url { get; }
public Bitmap QrCode { get; }
}
} |
JYCache/BPlusTree/XBplusTree.cs | stoneson/JYCache | 7 | 7033710 | <reponame>stoneson/JYCache
namespace BPlusTree
{
/// <summary>
/// Tree index mapping strings to strings with unlimited key length
/// </summary>
public class XBplusTree : BplusTree
{
XBplusTreeBytes xtree;
public XBplusTree(XBplusTreeBytes tree)
: base(tree)
{
... |
GymHub/GymHub.Automapper/AutomapperProfiles/SaleProfile.cs | rosenkolev1/GymHub-SoftUni-CSharp-WebProject | 1 | 7033713 | using AutoMapper;
using GymHub.Data.Models;
using GymHub.Web.Models.InputModels;
namespace GymHub.Automapper.AutomapperProfiles
{
public class SaleProfile : Profile
{
public SaleProfile()
{
CreateMap<CheckoutInputModel, Sale>();
}
}
}
|
fusionauth-netcore-client/domain/io/fusionauth/domain/email/EmailTemplate.cs | rdvanbuuren/fusionauth-netcore-client | 0 | 7033714 | /*
* Copyright (c) 2018, FusionAuth, All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... |
src/Foundation/MSSDK/code/Bing/IImageSearchRepository.cs | markstiles/SitecoreCognitiveServices.Core | 0 | 7033715 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Web;
using SitecoreCognitiveServices.Foundation.MSSDK.Enums;
using SitecoreCognitiveServices.Foundation.MSSDK.Bing.Models.ImageSearch;
namespace SitecoreCognitiveServices.Foundation.MSSDK.Bing {
public in... |
QueryBuilder/Clauses/LimitClause.cs | rsr-maersk/querybuilder | 2,305 | 7033716 | <filename>QueryBuilder/Clauses/LimitClause.cs
namespace SqlKata
{
public class LimitClause : AbstractClause
{
private int _limit;
public int Limit
{
get => _limit;
set => _limit = value > 0 ? value : _limit;
}
public bool HasLimit()
{
... |
Rights/App/Views/SysEmailTemp/Edit.cshtml | gaozeqian/rights-master | 0 | 7033717 | @model Langben.DAL.SysEmailTemp
@{
Layout = "~/Views/Shared/Edit.cshtml";
}
@using Common
@using Models
@section CurentPlace {
修改
}
@section CurentPlaceJS {
var oEditor = CKEDITOR.instances.Content.getData();
if(oEditor==null||oEditor=='')
{
alert('内容不能为空');
return false;
... |
extra/SendTest.cs | thakyuu/EasyVirtualMotionCaptureForUnity | 187 | 7033718 | /*
* ExternalReceiver
* https://sabowl.sakura.ne.jp/gpsnmeajp/
*
* MIT License
*
* Copyright (c) 2019 gpsnmeajp
*
* 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 restrict... |
PluginWithDependencies/Plugins/Bonjour.Plugin/Bonjour.cs | merken/Prise.Examples | 24 | 7033719 | using System;
using Contract;
using Prise.Plugin;
namespace Bonjour.Plugin
{
[Plugin(PluginType = typeof(IHelloPlugin))]
public class Bonjour : IHelloPlugin
{
public string SayHello(string input)
{
return $"Bonjour {input}";
}
}
}
|
src/ImageSharp/ImageSharp/src/ImageSharp/ColorSpaces/Conversion/Implementation/Rgb/RgbWorkingSpace.cs | KelsonBall/KoreUI | 8 | 7033720 | // <copyright file="RgbWorkingSpace.cs" company="<NAME>">
// Copyright (c) <NAME> and contributors.
// Licensed under the Apache License, Version 2.0.
// </copyright>
namespace ImageSharp.ColorSpaces.Conversion.Implementation.Rgb
{
/// <summary>
/// Trivial implementation of <see cref="IRgbWorkingSpace"/>
... |
src/Services/Witter.Services.Data/TagsService.cs | Dreed657/Witter | 1 | 7033721 | namespace Witter.Services.Data
{
using System.Linq;
using System.Threading.Tasks;
using Witter.Data.Common.Repositories;
using Witter.Data.Models;
using Witter.Services.Data.Contracts;
public class TagsService : ITagsService
{
private readonly IRepository<Tag> tagRepo;
pu... |
Making a New Game/Assets/Dither.cs | GeorgiosVeropoulos/CubeGame | 0 | 7033722 | <reponame>GeorgiosVeropoulos/CubeGame
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Dither : MonoBehaviour
{
private MeshRenderer mesh;
public bool Dithering = false;
public bool Beinghit = false;
// Start is called before the first frame update
void S... |
ConvNetSharp.Volume/Single/VolumeBuilder.cs | benny-yau/MnistConvNetSharp | 0 | 7033723 | <gh_stars>0
using System;
namespace ConvNetSharp.Volume.Single
{
public class VolumeBuilder : VolumeBuilder<float>
{
public override Volume<float> SameAs(VolumeStorage<float> example, Shape shape)
{
if (example is NcwhVolumeStorage<float>)
{
return new V... |
SDPMemoryPerf/Benchmarks/Program.cs | hmemcpy/SDP2016 | 6 | 7033724 | using BenchmarkDotNet.Running;
using Benchmarks.Tests;
namespace Benchmarks
{
public class Program
{
static void Main(string[] args)
{
BenchmarkRunner.Run<Lambdas>();
//BenchmarkRunner.Run<Loops>();
//BenchmarkRunner.Run<Enums>();
}
}
} |
Microsoft.Research/Contracts/System.ServiceModel/Sources/System.ServiceModel.OperationContext.cs | jeroen-mostert/CodeContracts | 778 | 7033725 | <gh_stars>100-1000
// CodeContracts
//
// Copyright (c) Microsoft Corporation
//
// All rights reserved.
//
// MIT License
//
// 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 restric... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.