commit
stringlengths
40
40
subject
stringlengths
4
1.73k
repos
stringlengths
5
127k
old_file
stringlengths
2
751
new_file
stringlengths
2
751
new_contents
stringlengths
1
8.98k
old_contents
stringlengths
0
6.59k
license
stringclasses
13 values
lang
stringclasses
23 values
6424b01e89fb4c7444b38ed2a1052b67ebd8718c
Create test fixture for Contact class
SICU-Stress-Measurement-System/frontend-cs
StressMeasurementSystem.Tests/Models/ContactTest.cs
StressMeasurementSystem.Tests/Models/ContactTest.cs
using NUnit.Framework; namespace StressMeasurementSystem.Tests.Models { [TestFixture] public class ContactTest { } }
apache-2.0
C#
7a78e45a4ee7ada6291c0f0d2e60b2c556fc77bd
Add a Task extension to handle timeouts
alexandrnikitin/CircuitBreaker.Net,alexandrnikitin/CircuitBreaker.Net
src/CircuitBreaker.Net/TaskExtensions.cs
src/CircuitBreaker.Net/TaskExtensions.cs
using System; using System.Threading; using System.Threading.Tasks; namespace CircuitBreaker.Net { // The following code is taken from "Crafting a Task.TimeoutAfter Method" post by Joe Hoag // http://blogs.msdn.com/b/pfxteam/archive/2011/11/10/10235834.aspx public static class TaskExtensions { ...
mit
C#
95d183e9b86f0b060f5f8dc9fa42ac86df6577d7
add a mock websocket implementation
Mazyod/PhoenixSharp
PhoenixTests/WebSocketImpl/MockWebSocket.cs
PhoenixTests/WebSocketImpl/MockWebSocket.cs
using Phoenix; using System.Collections.Generic; namespace PhoenixTests { public sealed class MockWebsocketAdapter : IWebsocket { public readonly WebsocketConfiguration config; public MockWebsocketAdapter(WebsocketConfiguration config) { this.config = config; } #region IWebsocket methods public Webs...
mit
C#
6a7e5992f4541ba55599d9543109e56c287c6689
add C# implementation for stack datastructure
ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovs...
data_structures/Stack/CSharp/Stack.cs
data_structures/Stack/CSharp/Stack.cs
using System; namespace data_structures.Stack.CSharp { public class Stack { private int _indexRunner; private object[] _storage; private const int LAST_INDEX = -1; public Stack(int length) { _indexRunner = LAST_INDEX; _storage = new object[length...
cc0-1.0
C#
e72b78859a1f54df797d97b0b34572ec4aaacc6b
add forgotten file with repeatable transactions
tiltom/PV247-Expense-manager,tiltom/PV247-Expense-manager,tiltom/PV247-Expense-manager
ExpenseManager/ExpenseManager.Web/Views/Home/UpdateRepeatable.cshtml
ExpenseManager/ExpenseManager.Web/Views/Home/UpdateRepeatable.cshtml
@{ Layout = null; } <!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width" /> <title></title> </head> <body> <div> </div> </body> </html>
mit
C#
5a3bec2ce2a75eeca5e2db2f5965c96f00fe4d64
Create GradientTextureMaker.cs
UnityCommunity/UnityLibrary
Assets/Scripts/Texture/GradientTextureMaker.cs
Assets/Scripts/Texture/GradientTextureMaker.cs
// returns gradient Texture2D (size=256x1) using UnityEngine; namespace UnityLibrary { public static class GradientTextureMaker { const int width = 256; const int height = 1; public static Texture2D Create(Color[] colors, TextureWrapMode textureWrapMode = TextureWrapMode.Clamp, Filter...
mit
C#
ffce697a8fd52c20bc11ea562e9675b69b5d67e7
Add InstituteMappings
denismaster/dcs,denismaster/dcs,denismaster/dcs,denismaster/dcs
src/Diploms.Services/Institutes/InstitutesMappings.cs
src/Diploms.Services/Institutes/InstitutesMappings.cs
using AutoMapper; using Diploms.Core; using Diploms.Dto.Institutes; namespace Diploms.Services.Institutes { public class InstitutesMappings : Profile { public InstitutesMappings() { CreateMap<InstituteEditDto, Institute>(); CreateMap<Institute, InstituteEditDto>(); ...
mit
C#
d6e3214cdbf569e3b39fbd68890392a44d94255b
Add Filters
ValeriyH/training,ValeriyH/training,ValeriyH/training,ValeriyH/training,ValeriyH/training
WebAPI/WebAPI/Filters/TestFilter.cs
WebAPI/WebAPI/Filters/TestFilter.cs
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Http.Controllers; using System.Web.Http.Filters; namespace WebAPI.Filters { public class TestFilterAttribute : ActionFilterAttribute { public override void OnActionExecuting(HttpActionConte...
mit
C#
3c36447ec8baac8d6f59b88b005900dab63a7098
Create IDoorAction.cs
MercedeX/StrangeStateMachineExample
IDoorAction.cs
IDoorAction.cs
namespace Domain { public interface IDoorAction { void Open(); void Close(); void Lock(); void Unlock(); } }
apache-2.0
C#
ba97010062f6a2794e04a3810430c7c0f63ebdbe
Create Command.cs
wieslawsoltes/Core2D,wieslawsoltes/Core2D,wieslawsoltes/Core2D,wieslawsoltes/Core2D
src/Core2D/ViewModels/Command.cs
src/Core2D/ViewModels/Command.cs
using System; using System.Windows.Input; namespace Core2D.ViewModels { public class Command : ICommand { private readonly Action _execute; private readonly Func<bool> _canExecute; public event EventHandler? CanExecuteChanged; public Command(Action execute, Func<bool>? canExe...
mit
C#
5895f615cb83572920a9bb44679c9d2cd1faf92c
Create Singleton.cs
gmich/Gem
Gem.Network/Singleton.cs
Gem.Network/Singleton.cs
public class Singleton<T> : Singleton { static T instance; /// <summary>The singleton instance for the specified type T. Only one instance (at the time) of this object for each type of T.</summary> public static T Instance { get { return instance; } set ...
mit
C#
ba3be146dd39ba3dd78e39ba51954fce9a417ec3
add claims
josealencar/Aritter,josealencar/Aritter,josealencar/Aritter,josealencar/Aritter,josealencar/Aritter,arsouza/Aritter,aritters/Ritter,arsouza/Aritter
src/Aritter.API/Core/Filters/IdentityBasicAuthenticationAttribute.cs
src/Aritter.API/Core/Filters/IdentityBasicAuthenticationAttribute.cs
using Microsoft.AspNet.Identity; using Microsoft.AspNet.Identity.EntityFramework; using System; using System.Collections.Generic; using System.Security.Claims; using System.Security.Principal; using System.Threading; using System.Threading.Tasks; namespace Aritter.API.Core.Filters { public class IdentityBasicAuthent...
using Microsoft.AspNet.Identity; using Microsoft.AspNet.Identity.EntityFramework; using System; using System.Security.Claims; using System.Security.Principal; using System.Threading; using System.Threading.Tasks; namespace Aritter.API.Core.Filters { public class IdentityBasicAuthenticationAttribute : BasicAuthentica...
mit
C#
badb9a4564e43f55e26a6e4d8f4b0ab662b7fe55
return binary data with MVC
djMax/AlienForce
Utilities/Web/BinaryContentResult.cs
Utilities/Web/BinaryContentResult.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Web.Mvc; using ICSharpCode.SharpZipLib.GZip; namespace AlienForce.Utilities.Web { /// <summary> /// A content result which can accept binart data and will write to the output /// stream. If GZip is set to true the c...
mit
C#
5634800720418e6101b7bb604165bef4368bac6d
Create Howl.cs
SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming
Kattis-Solutions/Howl.cs
Kattis-Solutions/Howl.cs
using System; namespace Howl { class Program { static void Main(string[] args) { String s = Console.ReadLine(); if (s.Substring(s.Length - 1, 1) == "W") { s += "H"; } else if (s.Substring(s.Length - 1, 1) == "O") ...
mit
C#
4c0ac28c229d05b31c0970f985bf4aded5743341
Create int.cs
FrostCat/nefarious-octo-spork
int.cs
int.cs
using External; namespace Intermediate { public class Int { public string GetExt() { ext e = new ext(); return e.thing(); } } }
mit
C#
389920276e55c39432e97e5302d81014ddac8108
Add sample class with implementation of IComparable<>
caronyan/CSharpRecipe
CSharpRecipe/Recipe.ClassAndGeneric/ComparableImpl.cs
CSharpRecipe/Recipe.ClassAndGeneric/ComparableImpl.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Recipe.ClassAndGeneric { /// <summary> /// Simple class that implements IComparable<> /// </summary> public class Square : IComparable<Square> { public Square() ...
mit
C#
239befb49851ac9d37c39f7b7798ba4322c9e4e0
Create MathExtensions.cs
AOmelaienko/Camila.ArrayUtils
MathExtensions.cs
MathExtensions.cs
using System.Collections.Generic; using System.Linq; namespace Camila { public static class MathExtensions { public static int Product ( this IEnumerable<int> Enumeration ) { return Enumeration.Aggregate ( 1, ( seed, element ) => seed * element ); } } }
mit
C#
0bcd9252651f04aa5fb278383404a6b70997f2fb
Create GfxEditor.cs
bonimy/MushROMs
Snes/GfxEditor.cs
Snes/GfxEditor.cs
using System; using System.Collections.Generic; using System.Text; using Helper; namespace Snes { public class GfxEditor { /// <summary> /// The raw, unformatted GFX data. /// </summary> /// <remarks> /// This array contains just the data with no information about forma...
agpl-3.0
C#
27f48dca99fe43ef513fc82e52300c125160aa09
Add class to auto-activate touch controls.
cmilr/Unity2D-Components,jguarShark/Unity2D-Components
Camera/AutoEnableTouchControls.cs
Camera/AutoEnableTouchControls.cs
using UnityEngine; using UnityEngine.Assertions; [ExecuteInEditMode] public class AutoEnableTouchControls : BaseBehaviour { private GameObject canvasGo; private GameObject eventSystem; void Start() { canvasGo = gameObject.transform.Find("Canvas").gameObject; Assert.IsNotNull(canvasGo); eventSystem = gameO...
mit
C#
bd32ec38375263f6b1a77a1a0757c032d8f0f2b3
Add basic test for RouteValueEqualityComparer.Equals(...). (#883)
aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore
test/Microsoft.AspNetCore.Routing.Tests/RouteValueEqualityComparerTest.cs
test/Microsoft.AspNetCore.Routing.Tests/RouteValueEqualityComparerTest.cs
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using Xunit; namespace Microsoft.AspNetCore.Routing { public class RouteValueEqualityComparerTest { private readonly RouteValueEqualit...
apache-2.0
C#
f13a1f0e059011fdd544489e727f015c84afa036
test PO generator
rdio/vernacular,dsuess/vernacular,dsuess/vernacular,rdio/vernacular,benoitjadinon/vernacular,StephaneDelcroix/vernacular,mightea/vernacular,mightea/vernacular,StephaneDelcroix/vernacular,gabornemeth/vernacular,gabornemeth/vernacular,benoitjadinon/vernacular
Vernacular.Test/GeneratorTests.cs
Vernacular.Test/GeneratorTests.cs
// // GeneratorTests.cs // // Author: // Aaron Bockover <abock@rd.io> // // Copyright 2012 Rdio, Inc. // // 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 wi...
mit
C#
eb831876324c14cdae58a0451133004cd99171ec
Add Datasource(3rd?
tobyclh/UnityCNTK,tobyclh/UnityCNTK
Assets/UnityCNTK/Scripts/DataSource.cs
Assets/UnityCNTK/Scripts/DataSource.cs
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Events; using System; using UnityEngine.Assertions; using CNTK; namespace UnityCNTK { public class DataSource : MonoBehaviour { public enum PredefinedSource { none, pos, rot...
mit
C#
85d38e8f4a8934aab03c2d6d97df0eec0f83fe54
Add an extension method to the worksheet
jeffgbutler/delete_your_for_loops,jeffgbutler/delete_your_for_loops,jeffgbutler/delete_your_for_loops
csharp/ScriptBuilder/WorksheetExtensions.cs
csharp/ScriptBuilder/WorksheetExtensions.cs
using OfficeOpenXml; public static class WorksheetExtensions { public static string[,] ToStringArray(this ExcelWorksheet sheet) { string[,] answer = new string[sheet.Dimension.Rows, sheet.Dimension.Columns]; for (var rowNumber = 1; rowNumber <= sheet.Dimension.Rows; rowNumber++) { ...
mit
C#
973fef8ec5bdfe1bf63dd4fc43a6dabd83ac80ab
Create EnumerableExtensions.cs
keith-hall/Extensions,keith-hall/Extensions
src/EnumerableExtensions.cs
src/EnumerableExtensions.cs
public static EnumerableExtensions { public static IEnumerable<T> Shuffle<T>(this IEnumerable<T> source, Random rng) { // http://stackoverflow.com/questions/1287567/is-using-random-and-orderby-a-good-shuffle-algorithm T[] elements = source.ToArray(); for (int i = elements.Length - 1; i >= 0; i--) { // Swap...
apache-2.0
C#
889b8ff0491cb963b44695e745473bd31003f8ec
Support for covariance
onurgoker/MvcPaging,martijnboland/MvcPaging,onurgoker/MvcPaging,rippo/MvcPaging,rsaladrigas/MvcPaging
src/MvcPaging/IPagedList.cs
src/MvcPaging/IPagedList.cs
using System.Collections.Generic; namespace MvcPaging { public interface IPagedList { int PageCount { get; } int TotalItemCount { get; } int PageIndex { get; } int PageNumber { get; } int PageSize { get; } bool HasPreviousPage { get; } bool HasNextPage { get; } bool IsFirstPage { get; } bool IsLas...
using System.Collections.Generic; namespace MvcPaging { public interface IPagedList { int PageCount { get; } int TotalItemCount { get; } int PageIndex { get; } int PageNumber { get; } int PageSize { get; } bool HasPreviousPage { get; } bool HasNextPage { get; } bool IsFirstPage { get; } bool IsLas...
mit
C#
00a85400eb83d5a67e4ba581967b5813e057ef7d
Create initial KafkaEndpoint
JasperFx/jasper,JasperFx/jasper,JasperFx/jasper
Jasper.ConfluentKafka/KafkaEndpoint.cs
Jasper.ConfluentKafka/KafkaEndpoint.cs
using System; using System.Collections.Generic; using System.Linq; using Baseline; using Confluent.Kafka; using Jasper.Configuration; using Jasper.ConfluentKafka.Internal; using Jasper.Runtime; using Jasper.Transports; using Jasper.Transports.Sending; using Jasper.Util; namespace Jasper.ConfluentKafka { public cla...
mit
C#
5d43f8f69907191f4ec2a109f43d70dd32267479
Add a CompositeTransition
SuperJMN/Avalonia,wieslawsoltes/Perspex,wieslawsoltes/Perspex,SuperJMN/Avalonia,AvaloniaUI/Avalonia,jkoritzinsky/Avalonia,jkoritzinsky/Avalonia,wieslawsoltes/Perspex,wieslawsoltes/Perspex,AvaloniaUI/Avalonia,akrisiun/Perspex,wieslawsoltes/Perspex,jkoritzinsky/Perspex,Perspex/Perspex,SuperJMN/Avalonia,wieslawsoltes/Pers...
src/Avalonia.Visuals/Animation/CompositeTransition.cs
src/Avalonia.Visuals/Animation/CompositeTransition.cs
using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Avalonia.Metadata; namespace Avalonia.Animation { /// <summary> /// Defines a composite transition that can be used to combine multiple transitions into one. /// </summary> /// <remarks> /// <para> /// Inst...
mit
C#
a5f1e38a3abd6c8c831fc4e29dcee98ab5cfbe62
Fix #51 Added Payments My and Terms
lucasdavid/Gamedalf,lucasdavid/Gamedalf
Gamedalf/Views/Payments/My.cshtml
Gamedalf/Views/Payments/My.cshtml
@model IEnumerable<Payment> @section scripts { @Scripts.Render("~/Scripts/app/ajax/search.js") @Scripts.Render("~/Scripts/app/elements/BtnSubmitter.js") } @Html.Partial("_Search", "/Payments") <div id="list-search"> @Html.Partial("_List", Model) </div>
mit
C#
3543204794b0de6a832d5ba33aeb0ca90ca7f030
Revert "Merge"
Door3Dev/HRI-Umbraco,mstodd/Umbraco-CMS,TimoPerplex/Umbraco-CMS,NikRimington/Umbraco-CMS,timothyleerussell/Umbraco-CMS,m0wo/Umbraco-CMS,JimBobSquarePants/Umbraco-CMS,gavinfaux/Umbraco-CMS,countrywide/Umbraco-CMS,gkonings/Umbraco-CMS,nul800sebastiaan/Umbraco-CMS,zidad/Umbraco-CMS,YsqEvilmax/Umbraco-CMS,VDBBjorn/Umbraco-...
src/Umbraco.Core/Models/Membership/IMembershipUser.cs
src/Umbraco.Core/Models/Membership/IMembershipUser.cs
using System; using System.Collections.Generic; using Umbraco.Core.Models.EntityBase; namespace Umbraco.Core.Models.Membership { public interface IMembershipUser : IAggregateRoot { object ProviderUserKey { get; set; } string Username { get; set; } string Email { get; ...
mit
C#
98b2a216124266eba9d4110cf755710302ee8fdd
Create test.cs
comopra/choirs-submit,comopra/choirs-submit
test.cs
test.cs
import System.Collections;
mit
C#
99209625b02ef9e37dee36684d0b0bf8c4fed65c
Create API.cs
myuulius/omega-kawaii-animeDB,myuulius/omega-kawaii-animeDB
API.cs
API.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using unirest_net; namespace kawaii_animedb { class API { public void GetAPIData(string key, string RequestUrl) { unirest_net.http.HttpResponse<string> request = unire...
bsd-2-clause
C#
52e3b4714e850d5602a496df88467f51356ed519
Create CullingGroupExample.cs
UnityCommunity/UnityLibrary
Assets/Scripts/Docs/UnityEngine/CullingGroupExample.cs
Assets/Scripts/Docs/UnityEngine/CullingGroupExample.cs
// gets nearby objects using CullingGroup // Assign this script to some gameobject, that the distance is measured from using UnityEngine; namespace UnityLibrary { public class CullingGroupExample : MonoBehaviour { // just some dummy prefab to spawn (use default sphere for example) public GameO...
mit
C#
c3c5a817ae5e0954cb82c0e711da5f399f8d9c42
Add Console abstraction for test suites
tsolarin/readline,tsolarin/readline
test/ReadLine.Tests/Abstractions/Console2.cs
test/ReadLine.Tests/Abstractions/Console2.cs
using Internal.ReadLine.Abstractions; using System; namespace ReadLine.Tests.Abstractions { internal class Console2 : IConsole { public int CursorLeft => _cursorLeft; public int CursorTop => _cursorTop; public int BufferWidth => _bufferWidth; public int BufferHeight => _buff...
mit
C#
b8e51979f9a3fa33aff4d163767b501b0a0c7490
Add Default controller
ozlevka/bootsrapmvc4
bootstrapgames/Controllers/DefaultController.cs
bootstrapgames/Controllers/DefaultController.cs
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; namespace bootstrapgames.Controllers { public class DefaultController : Controller { // // GET: /Default/ public ActionResult Index() { return ...
mit
C#
218c5deed74bd0fa87a7f64d730b3f701f7d2811
Add gas mixture tests
space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14-content,space-wizards/space-station-14,space-wizards/space-station-14-content,space-wizards/space-station-14,space-wizards/space-station-14-content,space-wizards/space-station-14
Content.IntegrationTests/Tests/Atmos/GasMixtureTest.cs
Content.IntegrationTests/Tests/Atmos/GasMixtureTest.cs
using System.Threading.Tasks; using Content.Server.Atmos; using Content.Shared.Atmos; using NUnit.Framework; namespace Content.IntegrationTests.Tests.Atmos { [TestFixture] [TestOf(typeof(GasMixture))] public class GasMixtureTest : ContentIntegrationTest { [Test] public async Task TestM...
mit
C#
1a653a2e1576e6e785b6dcb195326125941006ff
Add AuthCmd.
0x2aff/WoWCore
AuthServer/Opcodes/AuthCmd.cs
AuthServer/Opcodes/AuthCmd.cs
namespace WoWCore.AuthServer.Opcodes { public enum AuthCmd : byte { LogonChallenge = 0x00, LogonProof = 0x01, ReconnectChallenge = 0x02, ReconnectProof = 0x03, Realmlist = 0x10 } }
mit
C#
a7c8ba866248e17b80f2d94dc2064d3eb891b297
Create Program.cs
Kivitoe/Web-Status
src/Program.cs
src/Program.cs
using System; using System.Windows.Forms; namespace Web_Stats { /// <summary> /// Class with program entry point. /// </summary> internal sealed class Program { /// <summary> /// Program entry point. /// </summary> [STAThread] private static void Main(string[] args) { Application.EnableVisualStyles...
mit
C#
121e10cbfc4e5af048c0f86475100f2dcee759c2
Add test for changing data type (Thanks @prankaty )
igitur/ClosedXML,b0bi79/ClosedXML,ClosedXML/ClosedXML
ClosedXML_Tests/Excel/Cells/DataTypeTests.cs
ClosedXML_Tests/Excel/Cells/DataTypeTests.cs
using ClosedXML.Excel; using NUnit.Framework; using System; namespace ClosedXML_Tests.Excel.Cells { [TestFixture] public class DataTypeTests { [Test] public void ConvertNonNumericTextToNumberThrowsException() { using (var wb = new XLWorkbook()) { ...
mit
C#
88705c24933c2e4b17a469a0c0f1cacd172ce2b5
Create AssemblyInfo.cs
wieslawsoltes/MatrixPanAndZoomDemo,wieslawsoltes/PanAndZoom,PanAndZoom/PanAndZoom,PanAndZoom/PanAndZoom,wieslawsoltes/PanAndZoom
src/PandAndZoom/Properties/AssemblyInfo.cs
src/PandAndZoom/Properties/AssemblyInfo.cs
// Copyright (c) Wiesław Šoltés. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System.Resources; using System.Reflection; [assembly: AssemblyTitle("PanAndZoom")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")]...
mit
C#
493038e5bd16086092adc0ca407884635dfd0274
Create Models/DatabaseModels/Dewey Class.
Programazing/Open-School-Library,Programazing/Open-School-Library
src/Open-School-Library/Models/DatabaseModels/Dewey.cs
src/Open-School-Library/Models/DatabaseModels/Dewey.cs
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Open_School_Library.Models.DatabaseModels { public class Dewey { public int DeweyID { get; set; } public float Number { get; set; } public string Name { get; set; } } }
mit
C#
c67bc8904db4758268247539741e5b26e43666f6
Test for the behaviour of responder cancellation (#1263)
micdenny/EasyNetQ,EasyNetQ/EasyNetQ
Source/EasyNetQ.IntegrationTests/Rpc/When_request_and_respond_inflight_during_shutdown.cs
Source/EasyNetQ.IntegrationTests/Rpc/When_request_and_respond_inflight_during_shutdown.cs
using System; using System.Threading; using System.Threading.Tasks; using Shouldly; using Xunit; namespace EasyNetQ.IntegrationTests.Rpc { [Collection("RabbitMQ")] public class When_request_and_respond_in_flight_during_shutdown : IDisposable { private readonly IBus bus; public When_request...
mit
C#
46781ad9082ccea3aab7950095238003269cbaad
Add basic benchmarks for Is and Class selectors.
wieslawsoltes/Perspex,wieslawsoltes/Perspex,wieslawsoltes/Perspex,Perspex/Perspex,wieslawsoltes/Perspex,jkoritzinsky/Avalonia,AvaloniaUI/Avalonia,jkoritzinsky/Avalonia,AvaloniaUI/Avalonia,jkoritzinsky/Avalonia,Perspex/Perspex,SuperJMN/Avalonia,wieslawsoltes/Perspex,SuperJMN/Avalonia,grokys/Perspex,AvaloniaUI/Avalonia,A...
tests/Avalonia.Benchmarks/Styling/SelectorBenchmark.cs
tests/Avalonia.Benchmarks/Styling/SelectorBenchmark.cs
using Avalonia.Controls; using Avalonia.Styling; using BenchmarkDotNet.Attributes; namespace Avalonia.Benchmarks.Styling { [MemoryDiagnoser] public class SelectorBenchmark { private readonly Control _notMatchingControl; private readonly Calendar _matchingControl; private readonly S...
mit
C#
be1bb45811e06c28c1a9ec36e4679f745106fa31
Add type to represent range in a text file
daviwil/PSScriptAnalyzer,dlwyatt/PSScriptAnalyzer,PowerShell/PSScriptAnalyzer
Engine/Range.cs
Engine/Range.cs
using System; namespace Microsoft.Windows.PowerShell.ScriptAnalyzer { public class Range { public Position Start { get; } public Position End { get; } public Range(Position start, Position end) { if (start > end) { throw new ArgumentExcept...
mit
C#
fbd51209d515c466e6d81bcf0f17770328c9a748
Create Program.cs
HartmanDev/WimP
Demo/Program.cs
Demo/Program.cs
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; namespace PathFinder { static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void M...
mit
C#
21d1e185cf7843010ee3671d138f7f6609fcb95f
Add test for try disease adding (#10563)
space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14
Content.IntegrationTests/Tests/Disease/TryAddDisease.cs
Content.IntegrationTests/Tests/Disease/TryAddDisease.cs
using System.Threading.Tasks; using Content.Server.Disease; using Content.Shared.Disease; using NUnit.Framework; using Robust.Shared.GameObjects; using Robust.Shared.IoC; using Robust.Shared.Prototypes; namespace Content.IntegrationTests.Tests.Disease; [TestFixture] [TestOf(typeof(DiseaseSystem))] public sealed class...
mit
C#
f6aa28dbcb365e4ba5fc591ff5de397a7e2f75a0
increment the version
dominiqa/azure-sdk-for-net,brjohnstmsft/azure-sdk-for-net,smithab/azure-sdk-for-net,vhamine/azure-sdk-for-net,alextolp/azure-sdk-for-net,shutchings/azure-sdk-for-net,DeepakRajendranMsft/azure-sdk-for-net,divyakgupta/azure-sdk-for-net,brjohnstmsft/azure-sdk-for-net,shuainie/azure-sdk-for-net,yugangw-msft/azure-sdk-for-n...
src/WebSiteManagement/Properties/AssemblyInfo.cs
src/WebSiteManagement/Properties/AssemblyInfo.cs
// // Copyright (c) Microsoft. 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 applicable la...
// // Copyright (c) Microsoft. 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 applicable la...
apache-2.0
C#
f7f241f8ce10b2dbae569cde15a37658db319f62
add mkzip class
qiniu/csharp-sdk,fengyhack/csharp-sdk
Qiniu/PFOP/Mkzip.cs
Qiniu/PFOP/Mkzip.cs
using Qiniu.Auth; using System; using System.Collections.Generic; using System.Linq; using System.Text; using Qiniu.RS; using Qiniu.RPC; using Qiniu.Conf; using Qiniu.Util; using Newtonsoft.Json; namespace Qiniu.PFOP { public class Mkzip { /// <summary> /// 多文件压缩存储为用户提供了批量文件的压缩存储功能 //...
mit
C#
1fb11caf58e2f1dafdfaf7ebb5b9ea32507843f0
Create RepeatNumPattern.cs
Zephyr-Koo/sololearn-challenge
RepeatNumPattern.cs
RepeatNumPattern.cs
using System; using System.Collections.Generic; using System.Linq; // https://www.sololearn.com/Discuss/696268/?ref=app namespace SoloLearn { class Program { const int MAX = 4; static void Main(string[] zephyr_koo) { Enumerable.Range(1, MAX) .Select...
apache-2.0
C#
b5bb9c8c8b7a069d66a391c7c7ad2d39683f8814
Add waveform benchmark
ppy/osu-framework,ppy/osu-framework,peppy/osu-framework,peppy/osu-framework,ppy/osu-framework,peppy/osu-framework
osu.Framework.Benchmarks/BenchmarkWaveform.cs
osu.Framework.Benchmarks/BenchmarkWaveform.cs
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System.Diagnostics; using System.IO; using System.Threading.Tasks; using BenchmarkDotNet.Attributes; using ManagedBass; using NUnit.Framework; using osu.Framework.A...
mit
C#
0fb4b544a58262897b20ea2d3ac589b38e195606
Update AggregateSource/Repository.cs
yreynhout/AggregateSource,ashic/AggregateSource,alexeyzimarev/AggregateSource
AggregateSource/Repository.cs
AggregateSource/Repository.cs
using System; namespace AggregateSource { public abstract class Repository<TAggregateRoot> : IRepository<TAggregateRoot> where TAggregateRoot : AggregateRootEntity { readonly UnitOfWork _unitOfWork; protected Repository(UnitOfWork unitOfWork) { if (unitOfWork == null) throw new ArgumentNullException("...
using System; namespace AggregateSource { public abstract class Repository<TAggregateRoot> : IRepository<TAggregateRoot> where TAggregateRoot : AggregateRootEntity { readonly UnitOfWork _unitOfWork; protected Repository(UnitOfWork unitOfWork) { if (unitOfWork == null) throw new ArgumentNullException("...
bsd-3-clause
C#
e32f62db5bdf473579ee062a67d7c765fb95e2ae
Add missing file
johnneijzen/osu,peppy/osu-new,peppy/osu,2yangk23/osu,smoogipoo/osu,UselessToucan/osu,smoogipooo/osu,peppy/osu,smoogipoo/osu,NeoAdonis/osu,peppy/osu,EVAST9919/osu,ppy/osu,ppy/osu,UselessToucan/osu,2yangk23/osu,EVAST9919/osu,NeoAdonis/osu,ZLima12/osu,ZLima12/osu,ppy/osu,UselessToucan/osu,NeoAdonis/osu,smoogipoo/osu,johnn...
osu.Game.Tests/Visual/UserInterface/OsuGridTestScene.cs
osu.Game.Tests/Visual/UserInterface/OsuGridTestScene.cs
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Extensions; using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; namespace osu.Game.Tests.Visual.UserInterface { /// <summary> ...
mit
C#
3258a2ad9a35ad8e96e872332d36079d707bd0db
Add Node.cs
ouraspnet/HanLP.NET
src/HanLP.Net/Collection/Trie/Bintrie/Node.cs
src/HanLP.Net/Collection/Trie/Bintrie/Node.cs
using System; namespace HanLP.Net.Collection.Trie.Bintrie { public class Node<T> : BaseNode<T> { public Node() { } public Node(char c, Status status, T value) { _c = c; NodeStatus = status; Value = value; } public override BaseNode<...
apache-2.0
C#
211fb6e5236ce55d72670fe3f05a834c68bb2668
Add unimplemented SmartMeterReader
jeroen-corsius/smart-meter
SmartMeter.Business/SmartMeterReader.cs
SmartMeter.Business/SmartMeterReader.cs
using System; namespace SmartMeter.Business { public class SmartMeterReader { public string Read() { throw new NotImplementedException(); } } }
mit
C#
4b5f4cd03cf91c58d2c8f203c18549147bbac233
Add coloredstring tests
Thraka/SadConsole
Tests/SadConsole.Tests/ColoredString.cs
Tests/SadConsole.Tests/ColoredString.cs
using Microsoft.VisualStudio.TestTools.UnitTesting; using SadRogue.Primitives; namespace SadConsole.Tests { [TestClass] public class ColoredString { [TestMethod] public void CombineStringNormal() { var str1 = new SadConsole.ColoredString("string 1", Color.Green, Color.Y...
mit
C#
ba458ef13a388ec8cca7d4637944bee012eb6833
Create audio source controller component
bartlomiejwolk/AnimationPathAnimator
AudioSourceController/AudioSourceController.cs
AudioSourceController/AudioSourceController.cs
using UnityEngine; using System.Collections; namespace ATP.AnimationPathTools.AudioSourceControllerComponent { public class AudioSourceController : MonoBehaviour { private void Start() { } private void Update() { } } }
mit
C#
e384332dedaf639357a560ed29e1997c304273ef
Create Render.cs
zelbo/Number-Guessing
Render.cs
Render.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace NumberGuessing { partial class Program { static void Render() { // blank slate Console.Clear(); switch (gameState) { case GameState.I...
mit
C#
0bfa6fa975e5bb3e0510b2c71d9e62416f17bbf2
Implement UprightUnscaledContainer
peppy/osu,ppy/osu,ppy/osu,peppy/osu,peppy/osu,ppy/osu
osu.Game/Graphics/Containers/UprightContainer.cs
osu.Game/Graphics/Containers/UprightContainer.cs
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; using osu.Framework.Layout; namespace osu.Game.Graphics.Containers { /// <summary> /// A ...
mit
C#
2733885d4798300de6ac6b870586031852a2df36
Add C# 7.0 Expression Body advanced example
devlights/try-csharp
TryCSharp.Samples/CSharp7/MoreExpressionBodiedMembers.cs
TryCSharp.Samples/CSharp7/MoreExpressionBodiedMembers.cs
using TryCSharp.Common; namespace TryCSharp.Samples.CSharp7 { [Sample] public class MoreExpressionBodiedMembers : IExecutable { class Data { private string _value; public Data(string val) => this.Value = val; public string UpperCaseValue => ...
mit
C#
0a6e37ae8cd42de31621b484596cd04c1e1a373a
Create Ext.cs
UnstableMutex/NLog.MongoDB
NLog.MongoDB/Ext.cs
NLog.MongoDB/Ext.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace NLog.MongoDB { public static class Ext { public static void WriteAppStarted(this Logger logger, Version appVersion = null) { if (appVersion == null) { logger.I...
mit
C#
5f211f865d99b79884cac163277725a185b1512f
Create MongoTargetExpireAfter.cs
UnstableMutex/NLog.MongoDB
MongoTargetExpireAfter.cs
MongoTargetExpireAfter.cs
using System; using System.Linq; using MongoDB.Bson; using MongoDB.Driver; using MongoDB.Driver.Builders; using NLog.Common; using NLog.Config; using NLog.Targets; namespace NLog.MongoDB { [Target("MongoDBExpireAfter")] public class MongoTargetExpireAfter : Target { private MongoCollection<BsonDoc...
mit
C#
74c145c1eef7beebdf5ddab8641c0addc8ab7f78
Add tick event listener only once in SyncController
ikkentim/SampSharp,Seprum/SampSharp,ikkentim/SampSharp,Seprum/SampSharp,Seprum/SampSharp,Seprum/SampSharp,ikkentim/SampSharp
src/SampSharp.GameMode/Controllers/SyncController.cs
src/SampSharp.GameMode/Controllers/SyncController.cs
// SampSharp // Copyright 2015 Tim Potze // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law o...
// SampSharp // Copyright 2015 Tim Potze // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law o...
apache-2.0
C#
94e05827106beb6b7b3b57f58ee24f3e5451e4fb
add test cases for issue #113
esskar/Serialize.Linq
src/Serialize.Linq.Tests/Issues/Issue113.cs
src/Serialize.Linq.Tests/Issues/Issue113.cs
using System; using System.Diagnostics; using System.Linq.Expressions; using System.Threading.Tasks; using Microsoft.VisualStudio.TestTools.UnitTesting; using Serialize.Linq.Serializers; namespace Serialize.Linq.Tests.Issues { // https://github.com/esskar/Serialize.Linq/issues/113 [TestClass] public class...
mit
C#
37baf8dadc492180aa050f726ab1a9557ffe44e1
Update IRowReader TRow constraint
yck1509/dnlib,Arthur2e5/dnlib,0xd4d/dnlib,modulexcite/dnlib,jorik041/dnlib,picrap/dnlib,ZixiangBoy/dnlib,ilkerhalil/dnlib,kiootic/dnlib
src/DotNet/MD/IRowReaders.cs
src/DotNet/MD/IRowReaders.cs
namespace dot10.DotNet.MD { /// <summary> /// Reads metadata table columns /// </summary> public interface IColumnReader { /// <summary> /// Reads a column /// </summary> /// <param name="table">The table to read from</param> /// <param name="rid">Table row id</param> /// <param name="column">The colum...
namespace dot10.DotNet.MD { /// <summary> /// Reads metadata table columns /// </summary> public interface IColumnReader { /// <summary> /// Reads a column /// </summary> /// <param name="table">The table to read from</param> /// <param name="rid">Table row id</param> /// <param name="column">The colum...
mit
C#
24f55fbbdc34ac27ccf840ae4b14e11ff29cd2dc
Create TextureCreator.cs
scmcom/unitycode
TextureCreator.cs
TextureCreator.cs
using UnityEngine; [RequireComponent(typeof(MeshFilter), typeof(MeshRenderer))] public class TextureCreator : MonoBehaviour { [Range(2, 512)] public int resolution = 256; public float frequency = 1f; [Range(1, 8)] public int octaves = 1; [Range(1f, 4f)] public float lacunarity = 2f; [Range(0f, 1f)] publ...
mit
C#
d0efecfc9cff723d92a7e9289842737152e6dc61
Add `RulesetStore` for use where realm is not present (ie. other projects)
peppy/osu,NeoAdonis/osu,ppy/osu,NeoAdonis/osu,ppy/osu,ppy/osu,peppy/osu,NeoAdonis/osu,peppy/osu
osu.Game/Rulesets/AssemblyRulesetStore.cs
osu.Game/Rulesets/AssemblyRulesetStore.cs
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System; using System.Collections.Generic; using System.Linq; using osu.Framework.Extensions.ObjectExtensions; using osu.Framework.Platform; #nullable enable names...
mit
C#
b10b5c05a7aaacb3ea2c103a784f1542ffdce998
Create GCVWR.cs
SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming
Kattis-Solutions/GCVWR.cs
Kattis-Solutions/GCVWR.cs
using System; namespace GCVWR { class Program { static void Main(string[] args) { int g, t, n; string[] sarr; sarr = Console.ReadLine().Split(' '); g = int.Parse(sarr[0]); t = int.Parse(sarr[1]); sarr = Console.ReadLine().S...
mit
C#
55c9984be610c98e0062a7b9582b287833476e53
Add Event class (WIP)
HelloFax/hellosign-dotnet-sdk
HelloSign/Models/Event.cs
HelloSign/Models/Event.cs
using System.Collections.Generic; namespace HelloSign { /// <summary> /// Representation of a HelloSign Event. /// </summary> public class Event<T> { public int? EventTime { get; set; } public string EventType { get; set; } public string EventHash { get; set; } publi...
mit
C#
f5c4c901284d6a3dc06fc2c54253a9f7f1ea57b6
test script
senips/FitnesseTutorial,senips/FitnesseTutorial
TestControlFixtures/TestControlFixtures/TestScript.cs
TestControlFixtures/TestControlFixtures/TestScript.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using System.Data.Linq; namespace Testcontrol { public class TestScript { private IList<Instruction> mInstructions = new List<Instruction>(); ...
mit
C#
20dda2ea4a70b3d63d960a037437ee67f95adb67
Fix for partial trust environments Assembly.GetExecutingAssembly() cannot be used in Partial trust environments Also linux type paths report file:// and not file:/// so substring(8) should not be used
chenxizhang/Simple.Data.Mysql,Vidarls/Simple.Data.Mysql,Vidarls/Simple.Data.Mysql,chenxizhang/Simple.Data.Mysql
Src/Simple.Data.Mysql/MysqlConnectorHelper.cs
Src/Simple.Data.Mysql/MysqlConnectorHelper.cs
using System; using System.Data; using System.Data.Common; using System.IO; using System.Reflection; namespace Simple.Data.Mysql { public static class MysqlConnectorHelper { private static DbProviderFactory _dbFactory; private static DbProviderFactory DbFactory { ...
using System; using System.Data; using System.Data.Common; using System.IO; using System.Reflection; namespace Simple.Data.Mysql { public static class MysqlConnectorHelper { private static DbProviderFactory _dbFactory; private static DbProviderFactory DbFactory { ...
mit
C#
b6a5d4e76d22a31e01d997a7e3e220844d0ddcef
Add Incoming grain call filter extensions for ISiloBuilder (#5466)
pherbel/orleans,hoopsomuah/orleans,ElanHasson/orleans,veikkoeeva/orleans,benjaminpetit/orleans,waynemunro/orleans,waynemunro/orleans,hoopsomuah/orleans,jthelin/orleans,ibondy/orleans,yevhen/orleans,yevhen/orleans,pherbel/orleans,galvesribeiro/orleans,sergeybykov/orleans,ReubenBond/orleans,Liversage/orleans,dotnet/orlea...
src/Orleans.Runtime/Hosting/GrainCallFilterExtensions.cs
src/Orleans.Runtime/Hosting/GrainCallFilterExtensions.cs
namespace Orleans.Hosting { public static class GrainCallFilterExtensions { /// <summary> /// Adds an <see cref="IIncomingGrainCallFilter"/> to the filter pipeline. /// </summary> /// <param name="builder">The builder.</param> /// <param name="filter">The filter.</param> ...
mit
C#
927f8dd0f1c56fa9a0121e53c6063e6f8375289c
Add GenericNullable in valid code.
DotNetAnalyzers/WpfAnalyzers
ValidCode/DependencyProperties/GenericNullable.cs
ValidCode/DependencyProperties/GenericNullable.cs
// ReSharper disable All namespace ValidCode.DependencyProperties { using System.Windows; public class GenericNullable<T> : FrameworkElement where T : struct { /// <summary>Identifies the <see cref="Value"/> dependency property.</summary> public static readonly DependencyProperty V...
mit
C#
4f2353387049f95993ad5882336b244411e7cd87
Create LanguagesApiController.cs
letsbelopez/asp.net-snippets,letsbelopez/asp.net-snippets
LanguagesApiController.cs
LanguagesApiController.cs
using Sabio.Web.Domain; using Sabio.Web.Models.Requests; using Sabio.Web.Models.Responses; using Sabio.Web.Services; using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using System.Web.Http; namespace Sabio.Web.Controllers.Api { [RoutePrefix("api/languages")...
mit
C#
002ffba563c566cc890fbdc9a8068ace07c4fa1f
Add missing AssemblyInfo.cs for Tasks project.
kzu/SemanticGit
src/Tasks/Properties/AssemblyInfo.cs
src/Tasks/Properties/AssemblyInfo.cs
 // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: System.Reflection.AssemblyTitle("Tasks")] [assembly: System.Reflection.AssemblyProduct("Tasks")]
apache-2.0
C#
bea888ca036154ca9ab36093a1edda33cbd067b8
Create Answer.cs
Si-143/Application-and-Web-Development
Answer.cs
Answer.cs
public class Answer { int QuestionId; string answer; public int QuestionID { get { return QuestionId; } set { QuestionId = value; } } public string Answers { get { return answer; } set { answer = value; } ...
mit
C#
0ad288075c9e2e6fbbff9e4efe6d3b497d775c88
Add WSAData definition
JeremyKuhne/WInterop,JeremyKuhne/WInterop,JeremyKuhne/WInterop,JeremyKuhne/WInterop
src/WInterop.Desktop/Network/Native/WSAData.cs
src/WInterop.Desktop/Network/Native/WSAData.cs
// ------------------------ // WInterop Framework // ------------------------ // Copyright (c) Jeremy W. Kuhne. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.Runtime.InteropServices; namespace WInter...
mit
C#
0fc07023fe5fe8ad5a37c22b721d105c012d4c5f
Add IAutoReservationService
mweibel/mste-testat
AutoReservation.Service.Wcf/IAutoReservationService.cs
AutoReservation.Service.Wcf/IAutoReservationService.cs
using AutoReservation.Common.DataTransferObjects; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AutoReservation.Service.Wcf { interface IAutoReservationService { public List<DtoBase> findAll(); public DtoBase find...
mit
C#
c4d7ddfbc4c6892ddb6aace2020236bfac3073ae
add missing file
steven-r/stream-import
Stream.Importer.Excel/ExcelImporter.cs
Stream.Importer.Excel/ExcelImporter.cs
using System; using System.Collections.Generic; using System.Linq; using OfficeOpenXml; using StreamImporter.Base; namespace StreamImporter.Excel { public class ExcelImporter : ImporterBase { #region Fields protected bool HasHeader; private object[] _data; protected readonl...
mit
C#
4c22cce456e78b110bdf2d31be9a0f4464f626d6
Create Network.cs
Quadrat1c/OpJinx
Epoch/Network/Network.cs
Epoch/Network/Network.cs
using System; using System.Collections.Generic; using System.Linq; namespace Epoch.Network { public class Network { #region -- Properties -- public double LearnRate { get; set; } public double Momentum { get; set; } public List<Neuron> InputLayer { get; set; } public Lis...
mit
C#
20c779affa4de0a9c349d01160c190ae1e4f7efc
Add PaintTile.cs
DeathCradle/Terraria-s-Dedicated-Server-Mod,DeathCradle/Terraria-s-Dedicated-Server-Mod,DeathCradle/Terraria-s-Dedicated-Server-Mod,DeathCradle/Terraria-s-Dedicated-Server-Mod
Core/PluginHooks/PaintTile.cs
Core/PluginHooks/PaintTile.cs
using OTA.Plugin; namespace TDSM.Core.Plugin.Hooks { public static partial class TDSMHookArgs { public struct PaintTile { public int X { get; set; } public int Y { get; set; } public byte Colour { get; set; } } } public static partial clas...
mit
C#
916e442ee498ede35549e1a84646ca57caf8a24f
Fix errors in log caused by no prevalues beind selected.
Khamull/Umbraco-CMS,ehornbostel/Umbraco-CMS,base33/Umbraco-CMS,hfloyd/Umbraco-CMS,iahdevelop/Umbraco-CMS,qizhiyu/Umbraco-CMS,Nicholas-Westby/Umbraco-CMS,Tronhus/Umbraco-CMS,mattbrailsford/Umbraco-CMS,umbraco/Umbraco-CMS,gavinfaux/Umbraco-CMS,dawoe/Umbraco-CMS,gregoriusxu/Umbraco-CMS,NikRimington/Umbraco-CMS,mittonp/Umb...
src/umbraco.editorControls/DefaultDataKeyValue.cs
src/umbraco.editorControls/DefaultDataKeyValue.cs
using System; using umbraco.DataLayer; namespace umbraco.editorControls { /// <summary> /// Summary description for cms.businesslogic.datatype.DefaultDataKeyValue. /// </summary> public class DefaultDataKeyValue : cms.businesslogic.datatype.DefaultData { public DefaultDataKeyValue(cms.businesslogic...
using System; using umbraco.DataLayer; namespace umbraco.editorControls { /// <summary> /// Summary description for cms.businesslogic.datatype.DefaultDataKeyValue. /// </summary> public class DefaultDataKeyValue : cms.businesslogic.datatype.DefaultData { public DefaultDataKeyValue(cms.businesslogic...
mit
C#
b16bea898bc870533e6efcd8684287bbefd5e898
increment version number in prep for release
SwensenSoftware/im-only-resting,ItsAGeekThing/im-only-resting,nathanwblair/im-only-resting,abhinavwaviz/im-only-resting,MrZANE42/im-only-resting,stephen-swensen/im-only-resting,MrZANE42/im-only-resting,stephen-swensen/im-only-resting,jordanbtucker/im-only-resting,codemonkey493/im-only-resting,nathanwblair/im-only-resti...
Ior/Properties/AssemblyInfo.cs
Ior/Properties/AssemblyInfo.cs
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTi...
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTi...
apache-2.0
C#
5ba77e85a604c30118fdfe925133adc31173b57e
Implement FakeAsyncQueryableExecuter
aspnetboilerplate/aspnetboilerplate,ryancyq/aspnetboilerplate,aspnetboilerplate/aspnetboilerplate,aspnetboilerplate/aspnetboilerplate,ryancyq/aspnetboilerplate,luchaoshuai/aspnetboilerplate,aspnetboilerplate/aspnetboilerplate,ryancyq/aspnetboilerplate,ryancyq/aspnetboilerplate,luchaoshuai/aspnetboilerplate
test/Abp.Zero.SampleApp/Linq/FakeAsyncQueryableExecuter.cs
test/Abp.Zero.SampleApp/Linq/FakeAsyncQueryableExecuter.cs
using Abp.Linq; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Abp.Zero.SampleApp.Linq { /// <summary> /// <see cref="FakeAsyncQueryableExecuter"/> <see langword="await"/>s an asynchronous <see cref="Task"/> before executing an operation synchronously. /// Thi...
mit
C#
ea52fc5ecf756085b240e5ef5b4caaed678a9464
Create PointInTime.cs
Flavoured/UE4_CODE_DUMP,Flavoured/UE4_CODE_DUMP,Flavoured/UE4_CODE_DUMP
RewindComponent/PointInTime.cs
RewindComponent/PointInTime.cs
/* Created by Brackeys https://github.com/Brackeys/Rewind-Time */ using UnityEngine; public class PointInTime { public Vector3 position; public Quaternion rotation; public PointInTime (Vector3 _position, Quaternion _rotation) { position = _position; rotation = _rotation; } }
unlicense
C#
53d60fbd7171d57ffd45c102d385df9b34399be0
Fix #2
LonDC/demos-dotnet
TestViaApi/Collection.cs
TestViaApi/Collection.cs
using System.Collections.Generic; namespace TestViaApi { // This corresponds to the structure of the response to a /1.0/collections GET request public class CollectionList : List<Collection> { } public class Collection { public string collection { get; set; } public int count { get; se...
apache-2.0
C#
1165da576288819aa01c821d270150326ef3681f
Create codingame-Humans_vs_Zombies.cs
israelchen/CodinGame,israelchen/CodinGame
codingame-Humans_vs_Zombies.cs
codingame-Humans_vs_Zombies.cs
using System; using System.Linq; using System.IO; using System.Text; using System.Collections; using System.Collections.Generic; /** * Save humans, destroy zombies! **/ struct ZombieToHuman { public int HumanId; public int ZombieId; public int Distance; public int TurnsToReach; } struct AshToHuman ...
mit
C#
affd1dfc6a30466738a1344753ff8140d7be045f
Add AuthoirzationRequriedAttribute
HelloKitty/GladNet2.0,HelloKitty/GladNet2,HelloKitty/GladNet2.0,HelloKitty/GladNet2
src/GladNet.Payload/Attributes/AuthorizationRequiredAttribute.cs
src/GladNet.Payload/Attributes/AuthorizationRequiredAttribute.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace GladNet.Payload { /// <summary> /// Metadata to indicate that authorization is needed for the marked payload. /// </summary> [AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)] public cla...
bsd-3-clause
C#
19e4f08b6f3e73dde3f808aafa025551ac027d62
Revert "Revert "bullet""
baretata/CSharp2-TeamDevilGame
Bullet/Bullet.cs
Bullet/Bullet.cs
using System; using System.Drawing; namespace DevilInTheSky { class Bullet { public int direction = 0; // move direction (0-up,1-down,2-right,3-left,4-up right,5-up left,6-down right,7-down left public ConsoleColor color = new ConsoleColor(); public Point position = new Point(0, 0); ...
mit
C#
ae76ebcf9f4e2b5b7f0a221ea90a6ef999834fa8
Create FriendlyNumbers.cs
shreeharshas/Algorithms,shreeharshas/hackerrank,shreeharshas/hackerrank,shreeharshas/Algorithms,shreeharshas/Algorithms,shreeharshas/Algorithms,shreeharshas/Algorithms,shreeharshas/hackerrank,shreeharshas/hackerrank
FriendlyNumbers.cs
FriendlyNumbers.cs
/* For x = 220 and y = 284, the output should be friendly_numbers(x, y) = "Yes". The proper divisors of 220 are 1, 2, 4, 5, 10, 11, 20, 22, 44, 55 and 110, which add up to 284; and the proper divisors of 284 are 1, 2, 4, 71 and 142, which add up to 220. Input/Output [time limit] 3000ms (cs) [input] integer x Constr...
mit
C#
b91dd841f7a0337d336be8d8b451dc82133bcab0
Add Ignore tests
NickCraver/StackExchange.Exceptional,NickCraver/StackExchange.Exceptional
tests/StackExchange.Exceptional.Tests/Ignore.cs
tests/StackExchange.Exceptional.Tests/Ignore.cs
using System; using System.Text.RegularExpressions; using StackExchange.Exceptional.Internal; using StackExchange.Exceptional.Stores; using Xunit; namespace StackExchange.Exceptional.Tests { public class Ignore { [Fact] public void ShouldRecordType() { var settings = new Te...
apache-2.0
C#
e9698fe62cae9b5b410085c6de9baa0c7383c1e6
Add index only drawer node
id144/dx11-vvvv,id144/dx11-vvvv,id144/dx11-vvvv
Nodes/VVVV.DX11.Nodes/Nodes/Geometry/AsIndexGeometryNode.cs
Nodes/VVVV.DX11.Nodes/Nodes/Geometry/AsIndexGeometryNode.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.ComponentModel.Composition; using SlimDX; using SlimDX.Direct3D11; using VVVV.PluginInterfaces.V2; using VVVV.PluginInterfaces.V1; using FeralTic.DX11; using FeralTic.DX11.Resources; namespace VVVV.DX11.Nodes { [...
bsd-3-clause
C#
1be4b0cb339124e0dc1409caae9dcf3a899473f6
Add container for non-array results
LordMike/TMDbLib
TMDbLib/Objects/General/SingleResultContainer.cs
TMDbLib/Objects/General/SingleResultContainer.cs
using Newtonsoft.Json; namespace TMDbLib.Objects.General { public class SingleResultContainer<T> { [JsonProperty("id")] public int Id { get; set; } [JsonProperty("results")] public T Results { get; set; } } }
mit
C#
da1a7c7d443a3eece7b820e779e745736d3e7c9f
Add order-credit-marketplace snippet
balanced/balanced-csharp
scenarios/snippets/order-credit-marketplace.cs
scenarios/snippets/order-credit-marketplace.cs
BankAccount bankAccount = Marketplace.Mine.owner_customer.bank_accounts.First(); Dictionary<string, object> payload = new Dictionary<string, object>(); payload.Add("amount", 2000); payload.Add("description", "Credit from order escrow to marketplace bank account"); Credit credit = bankAccount.Credit(payload);
mit
C#
44483298e484bf3ba324a213227d2659df1795c9
Add missing file
countersoft/App-DocStore,countersoft/App-DocStore,countersoft/App-DocStore
App/DocumentModel.cs
App/DocumentModel.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Web.Mvc; using Countersoft.Gemini.Commons.Dto; using Countersoft.Gemini.Models; namespace DocStore.App { public class DocumentsModel : BaseModel { public List<ProjectDocumen...
mit
C#
f46e7908dd35a0191c89509ec41a84db499ab4cc
Create ThomasLee.cs
planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell
src/Firehose.Web/Authors/ThomasLee.cs
src/Firehose.Web/Authors/ThomasLee.cs
using System; using System.Collections.Generic; using System.Linq; using System.ServiceModel.Syndication; using System.Web; using Firehose.Web.Infrastructure; namespace Firehose.Web.Authors { public class ThomasLEe : IAmAMicrosoftMVP { public string FirstName => "Thomas"; public string LastName...
mit
C#
87cded5403562c5379f57157a222d6683a4e798c
Create PaintStyle.cs
wieslawsoltes/Draw2D,wieslawsoltes/Draw2D,wieslawsoltes/Draw2D
src/Draw2D.ViewModels/Style/Core/PaintStyle.cs
src/Draw2D.ViewModels/Style/Core/PaintStyle.cs
// Copyright (c) Wiesław Šoltés. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace Draw2D.ViewModels.Style { public enum PaintStyle { Fill = 0, Stroke = 1, StrokeAndFill = 2 } }
mit
C#
b08c88f76617e1d3a20be3e23c2c5b7e3f26606a
Add stubs of DOMDocumentType members
iolevel/peachpie-concept,iolevel/peachpie-concept,iolevel/peachpie-concept,iolevel/peachpie,iolevel/peachpie,peachpiecompiler/peachpie,peachpiecompiler/peachpie,iolevel/peachpie,peachpiecompiler/peachpie
src/Peachpie.Library.XmlDom/DOMDocumentType.cs
src/Peachpie.Library.XmlDom/DOMDocumentType.cs
using System; using System.Collections.Generic; using System.Text; using System.Xml; using Pchp.Core; // TODO: Enable XmlDocumentType and its usage when available (netstandard2.0) namespace Peachpie.Library.XmlDom { [PhpType(PhpTypeAttribute.InheritName)] public class DOMDocumentType : DOMNode { ...
apache-2.0
C#
55ed3a19206d62c0fe1570030f195de3330ca2ac
Test invalid filter type handling.
bojanrajkovic/pingu
src/Pingu.Tests/FilterTests.cs
src/Pingu.Tests/FilterTests.cs
using System; using Xunit; using Pingu.Filters; namespace Pingu.Tests { public class FilterTests { [Fact] public void Get_filter_throws_for_invalid_filter_type() { var arex = Assert.Throws<ArgumentOutOfRangeException>(() => DefaultFilters.GetFilterForType((FilterType)11));...
mit
C#
166dab004010b9382fc960dd46f48bde4b0d1549
Create CardView.cs
KennethKr/CardViewButton
CardView.cs
CardView.cs
using System; using System.ComponentModel; using CoreGraphics; using Foundation; using UIKit; namespace XamarinApp.Ios { [Register("CardView"), DesignTimeVisible(true)] public class CardView : UIView { private float cornerRadius; private UIColor shadowColor; private int shadowOffset...
mit
C#
ceb22f194b0dcd89294ea494dbc4ae3592d2724d
Create OAFArchiveCommon.cs
shhac/OAFArchive
CSharp/OAFArchiveCommon.cs
CSharp/OAFArchiveCommon.cs
/* * Created by SharpDevelop. * User: Paul * Date: 13/07/2015 * Time: 18:26 * * To change this template use Tools | Options | Coding | Edit Standard Headers. */ using System; using System.IO; using System.Collections.Generic; namespace OAFArchive { public enum EntryType : byte { File = 0, ...
lgpl-2.1
C#
a2906ffbcfe9bff4e8cd62afa3d35d736917b0b9
introduce Case<T>
miraimann/Knuth-Morris-Pratt
KnuthMorrisPratt/KnuthMorrisPratt.Tests/Case.cs
KnuthMorrisPratt/KnuthMorrisPratt.Tests/Case.cs
using System.Collections.Generic; namespace KnuthMorrisPratt.Tests { public class Case<T> { public Case(IEnumerable<T> pattern, IEnumerable<T> sequence) { Pattern = pattern; Sequence = sequence; } public IEnumerable<T> Pattern { get; private set; } ...
mit
C#