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
d403a1525ccb420f2b138893d98ad9718f40d538
Add PasswordHelperUtil for SecureString enhanced manipulations.
kingsamchen/EasyKeeper
PasswordHelperUtil.cs
PasswordHelperUtil.cs
/* @ 0xCCCCCCCC */ using System; using System.Runtime.InteropServices; using System.Security; namespace EasyKeeper { static class SecureStringUtil { public static string ConvertToUnsecureString(this SecureString secured) { if (secured == null) { throw new ArgumentNullE...
mit
C#
5c6fd1f35344d664579a5727f2701ec382a707eb
add (BlockHeaderEntity.cs)
oggy83/BlendReader
BlendReader/Domain/BlockHeaderEntity.cs
BlendReader/Domain/BlockHeaderEntity.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Diagnostics; namespace Blender { public class BlockHeaderEntity : BlendEntityBase { #region properties private BlendAddress m_address; public BlendAddress OldAddress { get ...
mit
C#
56b896cd5d8fdad871d8b1a71c75a5a3742ccd5c
add forget extension method
aloneguid/support
src/NetBox/Extensions/TaskExtensions.cs
src/NetBox/Extensions/TaskExtensions.cs
using System.Diagnostics.CodeAnalysis; using System.Threading.Tasks; namespace NetBox.Extensions { public static class TaskExtensions { [SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "task")] public static void Forget(this Task task) { } } }
mit
C#
af47b768412a182ba7c3d4fe2ef8c9d809910683
Add WaitHandleExtensions
KodamaSakuno/Sakuno.Base
src/Sakuno.Base/WaitHandleExtensions.cs
src/Sakuno.Base/WaitHandleExtensions.cs
using Sakuno.Threading; using System; using System.Threading; using System.Threading.Tasks; namespace Sakuno { public static class WaitHandleExtensions { public static Task WaitOneAsync(this WaitHandle waitHandle) { if (waitHandle == null) throw new ArgumentNullExce...
mit
C#
5792f08ab58979795c1388dad62a15ab5dc8f050
Add Q238
txchen/localleet
csharp/Q238_ProductOfArrayExceptSelf.cs
csharp/Q238_ProductOfArrayExceptSelf.cs
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using Xunit; // Given an array of n integers where n > 1, nums, return an array output such that output[i] is equal to the product of all the elements of nums except nums[i]. // // Solve it without division ...
mit
C#
6ed2b3bd728d2eeb15287ff43b8ffb2e584dfc7d
Add DemoScript
c0nnex/SPAD.neXt,c0nnex/SPAD.neXt
Scripts/DemoScript.cs
Scripts/DemoScript.cs
using SPAD.neXt.Interfaces; using SPAD.neXt.Interfaces.Configuration; using SPAD.neXt.Interfaces.Events; using SPAD.neXt.Interfaces.Scripting; namespace myScript { public class myMultipanel : IScriptValueProvider { public double ProvideValue(IApplication app) { int radio_selected = ...
mit
C#
056b16d189e4e25f2e73a748ba6135e8e1d9a22d
Fix Broken Unit Test
andrewhart098/Lean,JKarathiya/Lean,tomhunter-gh/Lean,kaffeebrauer/Lean,andrewhart098/Lean,tomhunter-gh/Lean,AnshulYADAV007/Lean,redmeros/Lean,redmeros/Lean,AlexCatarino/Lean,StefanoRaggi/Lean,jameschch/Lean,QuantConnect/Lean,AlexCatarino/Lean,QuantConnect/Lean,Mendelone/forex_trading,Jay-Jay-D/LeanSTP,Jay-Jay-D/LeanSTP...
Tests/Common/Util/FuncTextWriterTests.cs
Tests/Common/Util/FuncTextWriterTests.cs
/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation. * * 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 ...
/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation. * * 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 ...
apache-2.0
C#
b6ced0432cb45028d156737688be8960a3026412
Add missing file FunctionBuilder
ilovepi/Compiler,ilovepi/Compiler
compiler/middleend/ir/FunctionBuilder.cs
compiler/middleend/ir/FunctionBuilder.cs
#region Basic header // MIT License // // Copyright (c) 2016 Paul Kirth // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights ...
mit
C#
00eca8d118dbad76473225f576e24faa870b54d7
Change name to match what's being tested
bitbeans/libsodium-net,deckar01/libsodium-net,BurningEnlightenment/libsodium-net,tabrath/libsodium-core,fraga/libsodium-net,adamcaudill/libsodium-net,adamcaudill/libsodium-net,deckar01/libsodium-net,fraga/libsodium-net,BurningEnlightenment/libsodium-net,bitbeans/libsodium-net
Tests/RandomBytesTest.cs
Tests/RandomBytesTest.cs
using System.Text; using Sodium; using NUnit.Framework; namespace Tests { /// <summary> /// Tests for Random Bytes support /// </summary> [TestFixture] public class RandomBytesTest { /// <summary> /// Does SodiumCore.GetRandomBytes() return something /// </summary> [Test] public void G...
using System.Text; using Sodium; using NUnit.Framework; namespace Tests { /// <summary> /// Tests for Random Bytes support /// </summary> [TestFixture] public class RandomBytesTest { /// <summary> /// Does SodiumCore.GetRandomBytes() return something /// </summary> [Test] public void G...
mit
C#
2edd5a217e3d439527869bbac7c79d0671b03c0c
Create interiorFloorByRoom.cs
Gytaco/RevitAPI,Gytaco/RevitAPI
Macros/CS/Rooms/interiorFloorByRoom.cs
Macros/CS/Rooms/interiorFloorByRoom.cs
/* The code will get all the rooms in the project and make an individual floor to each of the internal boundaries. It will then offset the floor by the floor type thickness. It is just set to the current floor for now. */ public void interiorFloorByRoom() { //SETUP public ILIST in the CLASS!!!! /...
mit
C#
dbbe63c22d9084e2e7f0314dc5e98fa570b23dc6
Add print command
Baggykiin/Netstack
Netstack/Language/Framework/IO/Print.cs
Netstack/Language/Framework/IO/Print.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Netstack.Language.Exceptions; namespace Netstack.Language.Framework.IO { class Print:Function { public override void Execute(NetStack stack) { try {...
mit
C#
5e66b1a45086e469738f1f85b4b0d72b7a09ece7
Add concrete implementation for IContactHubSpotEntity
skarpdev/dotnetcore-hubspot-client
src/Dto/ContactHubSpotEntity.cs
src/Dto/ContactHubSpotEntity.cs
using System; using System.Collections.Generic; using System.Text; using Skarp.HubSpotClient.Interfaces; namespace Skarp.HubSpotClient.Dto { public class ContactHubSpotEntity : IContactHubSpotEntity { public string Email { get; set; } public string FirstName { get; set; } public string...
mit
C#
4f04d533e484884cc03da3503408c89704077389
Create Lunar.cs
jon-lad/Battlefleet-Gothic
Ships/Imperial/Cruiser/Lunar.cs
Ships/Imperial/Cruiser/Lunar.cs
using UnityEngine; using System.Collections; using System.Collections.Generic; public class Lunar : Ship { // Use this for initialization public override void Start () { base.Start (); stand = (GameObject)Instantiate(GameData.instance.SmallStandPrefab, transform.position, Quaternion.Euler(new Vector3())); ...
mit
C#
0649526e2204ed6fef10f3dd68c95ff495005535
Add the IComponentBuilder interface
openchain/openchain
src/Openchain.Ledger/IComponentBuilder.cs
src/Openchain.Ledger/IComponentBuilder.cs
// Copyright 2015 Coinprism, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agree...
apache-2.0
C#
6384ee0ce1a2221dc416363128d76bb7f9c28cdd
Add DiplomContext definition
denismaster/dcs,denismaster/dcs,denismaster/dcs,denismaster/dcs
src/Diploms.DataLayer/DiplomContext.cs
src/Diploms.DataLayer/DiplomContext.cs
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.EntityFrameworkCore; using Diploms.Core; namespace Diploms.DataLayer { public class DiplomContext : DbContext { public DbSet<Department> Departments { get; set; } public Dip...
mit
C#
5e84f84bc37a5c2027ca72e823005fff0be54a1e
Add test
terrajobst/nquery-vnext
src/NQuery.Tests/Evaluation/InExpressionTests.cs
src/NQuery.Tests/Evaluation/InExpressionTests.cs
using System; using Xunit; namespace NQuery.Tests.Evaluation { public class InExpressionTests { private void AssertProduces<T>(string text, T[] expected) { var expectedColumns = new[] { typeof(T) }; var expectedRows = new object[expected.Length][]; for (var...
mit
C#
dceb87c3296574db58d5cf583d9792f25831aece
Update src/Nancy.Hosting.Self/FileSystemRootPathProvider.cs
nicklv/Nancy,duszekmestre/Nancy,tareq-s/Nancy,thecodejunkie/Nancy,jonathanfoster/Nancy,jongleur1983/Nancy,blairconrad/Nancy,daniellor/Nancy,adamhathcock/Nancy,malikdiarra/Nancy,tparnell8/Nancy,asbjornu/Nancy,SaveTrees/Nancy,VQComms/Nancy,sadiqhirani/Nancy,lijunle/Nancy,malikdiarra/Nancy,cgourlay/Nancy,tparnell8/Nancy,a...
src/Nancy.Hosting.Self/FileSystemRootPathProvider.cs
src/Nancy.Hosting.Self/FileSystemRootPathProvider.cs
using System; using System.IO; using System.Reflection; namespace Nancy.Hosting.Self { public class FileSystemRootPathProvider : IRootPathProvider { public string GetRootPath() { var assembly = Assembly.GetEntryAssembly(); return assembly != null ? ...
using System; using System.IO; using System.Reflection; namespace Nancy.Hosting.Self { public class FileSystemRootPathProvider : IRootPathProvider { public string GetRootPath() { var assembly = Assembly.GetEntryAssembly(); return assembly == null ? Path.GetD...
mit
C#
cec0d98c6b47a11a13b68f66f8d0490552a03e7c
add demo snippets for the OffsetDateTime type
malcolmr/nodatime,BenJenkinson/nodatime,malcolmr/nodatime,nodatime/nodatime,BenJenkinson/nodatime,malcolmr/nodatime,malcolmr/nodatime,jskeet/nodatime,nodatime/nodatime,jskeet/nodatime
src/NodaTime.Demo/OffsetDateTimeDemo.cs
src/NodaTime.Demo/OffsetDateTimeDemo.cs
// Copyright 2019 The Noda Time Authors. All rights reserved. // Use of this source code is governed by the Apache License 2.0, // as found in the LICENSE.txt file. using NUnit.Framework; namespace NodaTime.Demo { public class OffsetDateTimeDemo { [Test] public void Construction() ...
apache-2.0
C#
7ecca7ebf6113878e35fbeef963093021b5c0085
Add AuthorizationKey to IConnection, fixes issue #125
bbqchickenrobot/rethinkdb-net,LukeForder/rethinkdb-net,bbqchickenrobot/rethinkdb-net,kangkot/rethinkdb-net,LukeForder/rethinkdb-net,Ernesto99/rethinkdb-net,nkreipke/rethinkdb-net,nkreipke/rethinkdb-net,kangkot/rethinkdb-net,Ernesto99/rethinkdb-net
rethinkdb-net/Interfaces/IConnection.cs
rethinkdb-net/Interfaces/IConnection.cs
using System; using System.Collections.Generic; using System.Net; using System.Threading.Tasks; namespace RethinkDb { public interface IConnection { IEnumerable<EndPoint> EndPoints { get; set; } IDatumConverterFactory DatumConverterFactory { ...
using System; using System.Collections.Generic; using System.Net; using System.Threading.Tasks; namespace RethinkDb { public interface IConnection { IEnumerable<EndPoint> EndPoints { get; set; } IDatumConverterFactory DatumConverterFactory { ...
apache-2.0
C#
6d2cfae800965076052610209ed4b8e1f80d9018
Bump version
EamonNerbonne/ExpressionToCode,asd-and-Rizzo/ExpressionToCode
ExpressionToCodeLib/Properties/AssemblyInfo.cs
ExpressionToCodeLib/Properties/AssemblyInfo.cs
using System.Reflection; 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: AssemblyTitle("ExpressionToCodeLib")] [assembly: ...
using System.Reflection; 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: AssemblyTitle("ExpressionToCodeLib")] [assembly: ...
apache-2.0
C#
def87ed7822031164bebbf3ef474286a3533c91a
Add failing test for editor gameplay test using wrong ruleset
ppy/osu,ppy/osu,peppy/osu,peppy/osu,ppy/osu,peppy/osu
osu.Game.Tests/Visual/Editing/TestSceneEditorNavigation.cs
osu.Game.Tests/Visual/Editing/TestSceneEditorNavigation.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.Linq; using NUnit.Framework; using osu.Framework.Extensions; using osu.Framework.Extensions.IEnumerableExtensions; using osu.Framework.Extensions.ObjectExten...
mit
C#
c024c3ea61d02fb488b3d4ae03e2a35b5be33750
add rtwbi class
jasarsoft/mmrtw
Class/RtwBi.cs
Class/RtwBi.cs
using System; using System.IO; using System.Collections.Generic; using System.Text; namespace Jasarsoft.ModManager.RTW { public class RtwBi { private const string name = "RomeTW-BI.exe"; private const string title = "Rome: Total War™ - Barbarian Invasion"; private const string folder =...
apache-2.0
C#
55ad1c61149678f8c0317f4bfbeb3f6e9a5baadc
define the raven bus message
esskar/SignalR.RavenDB
src/SignalR.RavenDB/RavenMessage.cs
src/SignalR.RavenDB/RavenMessage.cs
using System.Collections.Generic; using Microsoft.AspNet.SignalR.Messaging; namespace SignalR.RavenDB { public class RavenMessage { public string Id { get; set; } public byte[] Data { get; set; } internal RavenMessage FromMessages(IList<Message> messages) { var sc...
apache-2.0
C#
1d0c2991702d109f1a4bb733b9755e809043b781
Create Program_LinkedList.cs
alchemz/ARL_Training
CSharpDotNet_Programming/Collections/Program_LinkedList.cs
CSharpDotNet_Programming/Collections/Program_LinkedList.cs
class Program_LinkedList { static void Main(string[] args) { var presidents= new LinkedList<string>(); presidents.AddLast(“JFK”); presidents.AddLast*”Lyndon B Johnson”); presidents.AddLast(“Richard Nixon”); presidents.AddLast(“Jimmy Carter”); //replace the first element //remove the first element p...
mit
C#
6cd703b9e708805ef028b83d4fd8b99b829a0146
Create XlsBiffMSODrawing.cs
thriolsson/ExcelDataReader,foufure/ExcelDataReader,appel1/ExcelDataReader,Xciles/ExcelDataReader,Xciles/ExcelDataReader,jbendson/ExcelDataReader,wizardgsz/ExcelDataReader,ExcelDataReader/ExcelDataReader,java02014/ExcelDataReader,Convey-Compliance/ExcelDataReader,foufure/ExcelDataReader,Convey-Compliance/ExcelDataReader...
Excel/Core/BinaryFormat/XlsBiffMSODrawing.cs
Excel/Core/BinaryFormat/XlsBiffMSODrawing.cs
namespace Excel.Core.BinaryFormat { /// <summary> /// Represents MSO Drawing record /// </summary> internal class XlsBiffMSODrawing : XlsBiffRecord { internal XlsBiffMSODrawing(byte[] bytes, uint offset, ExcelBinaryReader reader) : base(bytes, offset, reader) { } } }
mit
C#
68f0db1c4a2ea9bada261b71499b8216dc19d481
Create StringExtensions.cs
BenjaminAbt/snippets
CSharp/StringExtensions.cs
CSharp/StringExtensions.cs
public static class StringExtensions { public static string WithMaxLength(this string value, int maxLength) { return value?.Substring(0, Math.Min(value.Length, maxLength)); } }
mit
C#
461234c58d9ea841773641dcd5232598c8961b85
Insert interval
Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews
NewAge/leetcode_57_insert_interval.cs
NewAge/leetcode_57_insert_interval.cs
// https://leetcode.com/problems/insert-interval/ // https://leetcode.com/submissions/detail/87604007/ /** * Definition for an interval. * public class Interval { * public int start; * public int end; * public Interval() { start = 0; end = 0; } * public Interval(int s, int e) { start = s; end =...
mit
C#
2a7a5cbe66816743187de530b4f3b8ca4b330890
Add bindable Wisej.Web.LinkMenuItem
MvvmFx/MvvmFx,tfreitasleal/MvvmFx
Source/BoundControls/MvvmFx.WisejWeb.Net45/LinkMenuItem.cs
Source/BoundControls/MvvmFx.WisejWeb.Net45/LinkMenuItem.cs
using System.ComponentModel; using Wisej.Web; namespace MvvmFx.WisejWeb { /// <summary> /// Data binding enabled LinkMenuItem. /// </summary> public class LinkMenuItem : Wisej.Web.LinkMenuItem, INamedBindable { #region IBindableComponent Members private BindingContext _bindingCont...
mit
C#
1dea43c53aa708d762b093912f2cf26d2325f236
Add EventManager.cs
JuhaKiili/RageEvent
Assets/RageEvent/EventManager.cs
Assets/RageEvent/EventManager.cs
using System; using System.Collections.Generic; using System.Reflection; using UnityEngine; using Object = System.Object; namespace RageEvent { [AttributeUsage(AttributeTargets.Method)] public class Listen : Attribute { private string m_Name; public string name { get { return m_Name; } } public Listen(string ...
mit
C#
84978f2e92cc50d8974a97ed81fc9560fe5821fe
Create Neuron.cs
Quadrat1c/OpJinx
Epoch/Network/Neuron.cs
Epoch/Network/Neuron.cs
using System.Collections.Generic; using System.Linq; namespace Epoch.Network { public class Neuron { #region -- Properties -- public List<Synapse> InputSynapses { get; set; } public List<Synapse> OutputSynapses { get; set; } public double Bias { get; set; } public double...
mit
C#
2de5d74e388bbd25121f086ed41ff36024dff634
Add Histogram class
MihaelaNicoleta/compression-algorithms
Prediction/Histogram.cs
Prediction/Histogram.cs
using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Prediction { class Histogram { Bitmap histogramPicture; double scaleValue; public Histogram() { } public Histo...
mit
C#
0ad83ac4db1a95b4a5bf7512ed29300317415590
Create BrokerContext.cs
hprose/hprose-dotnet
src/Hprose.RPC.Plugins/Push/BrokerContext.cs
src/Hprose.RPC.Plugins/Push/BrokerContext.cs
/*--------------------------------------------------------*\ | | | hprose | | | | Official WebSite: https://hprose.com | | ...
mit
C#
6bfcf56aef8efd0f1d6e6d2612f238fefe38e0ec
Make the dashboard actually refresh, big oops that 0 was committed
michaelholzheimer/Opserver,VictoriaD/Opserver,manesiotise/Opserver,baflynn/Opserver,GABeech/Opserver,a9261/Opserver,volkd/Opserver,GABeech/Opserver,maurobennici/Opserver,geffzhang/Opserver,vebin/Opserver,18098924759/Opserver,vbfox/Opserver,baflynn/Opserver,volkd/Opserver,IDisposable/Opserver,a9261/Opserver,mqbk/Opserve...
Opserver/Views/Dashboard/Dashboard.cshtml
Opserver/Views/Dashboard/Dashboard.cshtml
@using StackExchange.Opserver.Data.Dashboard @using StackExchange.Opserver.Views.Dashboard @model DashboardModel @{ this.SetPageTitle("Dashboard"); this.SetMainTab(MainTab.Dashboard); this.SetTopNodes(DashboardData.AllNodes, "Dashboard", url: "/dashboard/node"); var start = DateTime.UtcNow.AddDays(-1)....
@using StackExchange.Opserver.Data.Dashboard @using StackExchange.Opserver.Views.Dashboard @model DashboardModel @{ this.SetPageTitle("Dashboard"); this.SetMainTab(MainTab.Dashboard); this.SetTopNodes(DashboardData.AllNodes, "Dashboard", url: "/dashboard/node"); var start = DateTime.UtcNow.AddDays(-1)....
mit
C#
396a8e8cde3633a7c6d50e978930100dfc47176c
Create FileNameConverter.cs
UnstableMutex/WPF.Converters
FileNameConverter.cs
FileNameConverter.cs
class FileNameConverter:IValueConverter { public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { var v = value.ToString(); return Path.GetFileName(v); } public object ConvertBack(object value, Type targetType, object pa...
mit
C#
848968580adda0457ede121c817df0882e8e8943
add test for sorting a list
jaxx-rep/Humanizer,aloisdg/Humanizer,schalpat/Humanizer,HalidCisse/Humanizer,MehdiK/Humanizer,schalpat/Humanizer,mrchief/Humanizer,Flatlineato/Humanizer,mrchief/Humanizer,ErikSchierboom/Humanizer,mrchief/Humanizer,HalidCisse/Humanizer,ErikSchierboom/Humanizer,Flatlineato/Humanizer,HalidCisse/Humanizer,hazzik/Humanizer
src/Humanizer.Tests/Bytes/ComparingTests.cs
src/Humanizer.Tests/Bytes/ComparingTests.cs
using System.Collections.Generic; using System.Linq; using Humanizer.Bytes; using Xunit; using Xunit.Extensions; namespace Humanizer.Tests.Bytes { public class ComparingTests { [Theory] [InlineData(13, 23, -1)] [InlineData(23, 23, 0)] [InlineData(45, 23, 1)] public void...
using Humanizer.Bytes; using Xunit; using Xunit.Extensions; namespace Humanizer.Tests.Bytes { public class ComparingTests { [Theory] [InlineData(13, 23, -1)] [InlineData(23, 23, 0)] [InlineData(45, 23, 1)] public void CompareStrongTyped(double value, double valueToCompa...
mit
C#
16db95123d895602aaeb367907ab65440d1aefa1
Fix join-path tests on Unix.
sburnicki/Pash,mrward/Pash,WimObiwan/Pash,sillvan/Pash,mrward/Pash,sburnicki/Pash,mrward/Pash,sburnicki/Pash,WimObiwan/Pash,WimObiwan/Pash,sillvan/Pash,sillvan/Pash,ForNeVeR/Pash,sburnicki/Pash,Jaykul/Pash,mrward/Pash,WimObiwan/Pash,Jaykul/Pash,ForNeVeR/Pash,sillvan/Pash,Jaykul/Pash,ForNeVeR/Pash,Jaykul/Pash,ForNeVeR/P...
Source/TestHost/Cmdlets/JoinPathTests.cs
Source/TestHost/Cmdlets/JoinPathTests.cs
// Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ using NUnit.Framework; using System; namespace TestHost.Cmdlets { [TestFixture] public class JoinPathTests { [Test] [Platform("Win")] public void OneParentFolderAndChildFolderUnderWindow...
// Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ using NUnit.Framework; using System; namespace TestHost.Cmdlets { [TestFixture] public class JoinPathTests { [Test] public void OneParentFolderAndChildFolder() { string resul...
bsd-3-clause
C#
747854aad3019cea460ab478c8b5afffaa1cae2f
Rename test.
darrencauthon/AutoMoq,darrencauthon/AutoMoq,darrencauthon/AutoMoq
src/AutoMoq.Tests/QuestionsAboutMockerGettingCalledTwice.cs
src/AutoMoq.Tests/QuestionsAboutMockerGettingCalledTwice.cs
using NUnit.Framework; namespace AutoMoq.Tests { [TestFixture] public class QuestionsAboutMockerGettingCalledTwice { [Test] public void Can_a_mock_generated_by_automoq_be_called_twice() { var mocker = new AutoMoqer(); var id = "the id"; ...
mit
C#
3a6f7db29b83d49fa0f3a25318eea6443b1f0c1e
Add Sylvain Moingeon (#698)
planetxamarin/planetxamarin,planetxamarin/planetxamarin,planetxamarin/planetxamarin,planetxamarin/planetxamarin
src/Firehose.Web/Authors/SylvainMoingeon.cs
src/Firehose.Web/Authors/SylvainMoingeon.cs
using Firehose.Web.Infrastructure; using System; using System.Collections.Generic; using System.Linq; using System.ServiceModel.Syndication; using System.Web; namespace Firehose.Web.Authors { public class SylvainMoingeon : IAmACommunityMember, IFilterMyBlogPosts { public string FirstName => "Sylvain"; public s...
mit
C#
4bed75b98c30f80f0d5b01230bc8400348629e9d
add another enum file
arrowflex/FreeAgent
src/FreeAgent/Enums/AccessRequestType.cs
src/FreeAgent/Enums/AccessRequestType.cs
using System.Runtime.Serialization; namespace FreeAgent.Model { public enum AccessRequestType { [EnumMember(Value = "authorization_code")] authorization_code, [EnumMember(Value = "refresh_token")] refresh_token } }
apache-2.0
C#
1f046fbb76935e5f3ba08dd9a3b9f018a2a5ec1c
Add guidelines
mattrobineau/dotnetsignals,mattrobineau/dotnetsignals,mattrobineau/dotnetsignals,mattrobineau/dotnetsignals,mattrobineau/dotnetsignals
src/Stories/Views/Home/Guidelines.cshtml
src/Stories/Views/Home/Guidelines.cshtml
<h2>What is dotnet signals?</h2> .NET Signals is a community driven link aggregator for the sharing of knowledge in the .NET community. Our focus is to give the .NET community a place to post ideas and knowledge as voted by the community while avoiding the clutter found in traditional sources. <h2>Posts</h2> <ul> ...
mit
C#
cab330e0df6b13be7cbe8b42d0cdf87779c054e9
replace SetInputFieldSelected.cs with this generic one
UnityCommunity/UnityLibrary
Assets/Scripts/UI/SetSelected.cs
Assets/Scripts/UI/SetSelected.cs
// sets UI element selected // usage: attach to gameobject with UI selectable component (inputfield, button, dropdown. toggle..) using UnityEngine; using UnityEngine.UI; namespace UnityLibrary { public class SetSelected : MonoBehaviour { void Start() { var element = GetComponent<Se...
mit
C#
048c568e4e6c27b6bff7eb2488d1af81ba98f0ab
Create PascalsTriangle.cs
bluee/hackerrank
code/PascalsTriangle.cs
code/PascalsTriangle.cs
using System; namespace ConsoleApplication { class Program { public static void PascalsTriangle(int n) { for (int i = 0; i < n; i++) { int c = 1; for (int k = 0; k <= i; k++) { Console.Out.Write(c.ToStri...
mit
C#
483238cb19a151fc4e8b4813caf002aff1097d4d
add author file for Jeremy Murrah
planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell
src/Firehose.Web/Authors/JeremyMurrah.cs
src/Firehose.Web/Authors/JeremyMurrah.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 JeremyMurrah : IAmACommunityMember { public string FirstName => "Jeremy"; public string La...
mit
C#
6448d33dad10c664e20cdb57e556e0cb82f5258d
Create FibonacciNumbersSum.cs
DuckBoss/Programming-Challenges,DuckBoss/Programming-Challenges,DuckBoss/Programming-Challenges,DuckBoss/Programming-Challenges
Fibonacci_Numbers_Sum/FibonacciNumbersSum.cs
Fibonacci_Numbers_Sum/FibonacciNumbersSum.cs
using System; namespace FibonacciNumbers { class MainClass { public static void Main(string[] args) { if (args.Length != 3) { Console.WriteLine("This program requires 2 starting integers, and the max terms to count!\n"); Environment.Exit(0); } int start1 = Convert.ToInt32(args[0]); int st...
unlicense
C#
8751ccd97433d1d0ceccf8d9d93a84f4a11d3ed1
Add skeleton of DBWriter class.
palette-software/PaletteInsightAgent,palette-software/PaletteInsightAgent,palette-software/PaletteInsightAgent,palette-software/PaletteInsightAgent
PalMon/Output/DBWriter.cs
PalMon/Output/DBWriter.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace PalMon.Output { // CSV Folder: // serverlog-2016-01-28-15-06-00.csv // serverlog-2016-01-28-15-06-30.csv // threadinfo-2016-01-28-15-06-00.csv class DBWriter { ...
mit
C#
95a367353554a16a438b4ba3f14ceb0fda1b1272
Create Problem49W.cs
fireheadmx/ProjectEuler,fireheadmx/ProjectEuler
Problems/Problem49W.cs
Problems/Problem49W.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ProjectEuler.Problems { class Problem49W { private Sieve s; private int upper = 10000; public Problem49W() { s = new Sieve(upper); } private List<int> Get...
mit
C#
0104b03f1fbbfbeb5598d443380cf6bd9326c1ca
Create UWaterlooApiManager.cs
RobinsonMann/UWaterlooApi
UWaterlooApiManager.cs
UWaterlooApiManager.cs
using System.Net; using Newtonsoft.Json; namespace UWaterlooApi.ApiManager { /// <summary> /// Meta information from each function call /// </summary> public class Meta { public int Requests, Timestamp, Status, MethodId, Version; public string Message; } /// <summary> /// API Call wrapper. /// </sum...
mit
C#
85bee70b77d581ca8ef7256a588ceeb33866cc80
Add localisable description benchmark
ppy/osu-framework,ZLima12/osu-framework,ZLima12/osu-framework,ppy/osu-framework,peppy/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,ppy/osu-framework
osu.Framework.Benchmarks/BenchmarkLocalisableDescription.cs
osu.Framework.Benchmarks/BenchmarkLocalisableDescription.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 BenchmarkDotNet.Attributes; using osu.Framework.Extensions; using osu.Framework.Localisation; namespace osu.Framework.Benchmarks { public class B...
mit
C#
e3cbb279b6160bbeac7e915319478a62e600ac08
Create IWInvoker
xamarin/XamarinComponents,xamarin/XamarinComponents,xamarin/XamarinComponents,xamarin/XamarinComponents,xamarin/XamarinComponents,xamarin/XamarinComponents
Android/SceneForm/source/Animation/IWInvoker.cs
Android/SceneForm/source/Animation/IWInvoker.cs
using Android.Runtime; using Java.Interop; using System; namespace Xamarin.Android.SceneForm.Animation { public partial class IWInvoker { } }
mit
C#
cf241d54b8a32cdb1242c114881f3d80e7f8467b
Create WrapMatcher.cs
Zephyr-Koo/sololearn-challenge
WrapMatcher.cs
WrapMatcher.cs
using System; using System.Collections.Generic; // https://www.sololearn.com/Discuss/711001/?ref=app namespace SoloLearn { class Program { static Dictionary<char, char> BRACKET_PAIRS = new Dictionary<char, char> { { '<', '>' }, { '(', ')' }, { '[', ']' } ...
apache-2.0
C#
1543589205584b248b0c2051a4f7337d8527b4b3
Create GetVideoAspectRatioEditor.cs
UnityCommunity/UnityLibrary
Assets/Scripts/Editor/ContextMenu/GetVideoAspectRatioEditor.cs
Assets/Scripts/Editor/ContextMenu/GetVideoAspectRatioEditor.cs
// Custom Contect menu for VideoPlayer component // used for scaling quad mesh transform localscale.y to match videoplayer aspect ratio using UnityEngine; using UnityEditor; using UnityEngine.Video; namespace UnityLibrary { public class GetVideoAspectRatioEditor : MonoBehaviour { [MenuItem("CONTEXT/Vi...
mit
C#
67dbb69a73a48edaa48f4a8685a3a4d7f49e106e
Create Game.cs
WNxpyromania/Main-Menu
Game.cs
Game.cs
using System; using System.Collections.Generic; using System.Linq; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Audio; using Microsoft.Xna.Framework.Content; using Microsoft.Xna.Framework.GamerServices; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework.Input; using Microsoft.Xna.Fram...
bsd-3-clause
C#
4f9f715c56cabc8a282e6178447ee82d3eb34518
Add interface for voting service
Branimir123/PhotoLife,Branimir123/PhotoLife,Branimir123/PhotoLife
PhotoLife/PhotoLife.Services/Contracts/IVotingService.cs
PhotoLife/PhotoLife.Services/Contracts/IVotingService.cs
namespace PhotoLife.Services.Contracts { public interface IVotingService { int Vote(int postId, string userId); } }
mit
C#
d4b0f88f2de9d31528811d35c23ddc1f4e4c9b72
Add missing file.
fr1tz/rotc-ethernet-game,fr1tz/rotc-ethernet-game,fr1tz/rotc-ethernet-game,fr1tz/rotc-ethernet-game
game/arenas/rotc-ethernet/eth-archipelago/mission.env.cs
game/arenas/rotc-ethernet/eth-archipelago/mission.env.cs
// Mission environment script // This script is executed from the mission init script in game/server/missions //------------------------------------------------------------------------------ // Lights //------------------------------------------------------------------------------ $sgLightEditor::lightDBPath = $Serve...
lgpl-2.1
C#
b06caa870d98497d42cde2fabfc24dc68735dc04
Add /dev/null channel
splitice/SimpleChannel.Net,splitice/SimpleChannel.Net
SimpleChannel.Net/Threading/NullChannel.cs
SimpleChannel.Net/Threading/NullChannel.cs
using System; using System.Threading; namespace SimpleChannel.Net.Threading { public class NullChannel<T>: IChannel<T> where T: class { private bool _producing = true; public bool Offer(T toPut, int ms) { return true; } public void Put(T item) { ...
mit
C#
d8e467a9ef92c627b51dd1751473644bcd175deb
Add Q165
txchen/localleet
csharp/Q165_CompareVersionNumbers.cs
csharp/Q165_CompareVersionNumbers.cs
using System; using System.Collections.Generic; using System.Linq; using Xunit; // Compare two version numbers version1 and version2. // If version1 > version2 return 1, if version1 < version2 return -1, otherwise return 0. // // You may assume that the version strings are non-empty and contain only digits and the . c...
mit
C#
58fa8b6269f3596bcc8259c842e0ead4dae3b86c
move that
tugberkugurlu/tugberk-web,tugberkugurlu/tugberk-web,tugberkugurlu/tugberk-web,tugberkugurlu/tugberk-web
src/Tugberk.Web/BlogDbContextExtensions.cs
src/Tugberk.Web/BlogDbContextExtensions.cs
using Microsoft.AspNetCore.Identity; using Microsoft.EntityFrameworkCore; using Tugberk.Persistance.SqlServer; namespace Tugberk.Web { public static class BlogDbContextExtensions { public static void EnsureSeedData(this BlogDbContext context, UserManager<IdentityUser> userManager) { ...
agpl-3.0
C#
0a8d0f8c549f4fc12699f25d673140521d04adb8
Add Should_be_go_backed.
nuitsjp/KAMISHIBAI
Kamishibai.Test/PresentationServiceTest/Should_be_go_backed.cs
Kamishibai.Test/PresentationServiceTest/Should_be_go_backed.cs
using System.Threading.Tasks; using System.Windows.Controls; using FluentAssertions; using Xunit; namespace Kamishibai.Test.PresentationServiceTest; // ReSharper disable once InconsistentNaming public class Should_be_go_backed : PresentationServiceTestBase { [WpfFact] public async Task When_call() { ...
mit
C#
c1cea529fc5ed86e16c6b27b8c3c73f1e3a377ad
Create Startup.cs
tugberkugurlu/travis-test,tugberkugurlu/travis-test
src/HelloWeb/Startup.cs
src/HelloWeb/Startup.cs
using Microsoft.AspNet.Builder; using Microsoft.Framework.Logging; namespace HelloWeb { public class Startup { public void Configure(IApplicationBuilder app, ILoggerFactory loggerFactory) { loggerFactory.AddConsole(); app.UseStaticFiles(); app.UseWelcomePage(...
mit
C#
0a8043fbbde22de40a7ce905289d4e45235ec15b
add kernel_gaussian_modular.cs example
sorig/shogun,Saurabh7/shogun,Saurabh7/shogun,karlnapf/shogun,lisitsyn/shogun,Saurabh7/shogun,besser82/shogun,lisitsyn/shogun,lisitsyn/shogun,sorig/shogun,lambday/shogun,lambday/shogun,geektoni/shogun,shogun-toolbox/shogun,Saurabh7/shogun,Saurabh7/shogun,shogun-toolbox/shogun,Saurabh7/shogun,karlnapf/shogun,besser82/sho...
examples/undocumented/csharp_modular/kernel_gaussian_modular.cs
examples/undocumented/csharp_modular/kernel_gaussian_modular.cs
using System; public class kernel_gaussian_modular { public static void Main() { modshogun.init_shogun_with_defaults(); double width = 1.3; double[,] traindata_real = Load.load_numbers("../data/fm_train_real.dat"); double[,] testdata_real = Load.load_numbers("../data/fm_test_real.dat"); RealFeatures feats...
bsd-3-clause
C#
b652fa39f87f272f5ba30bcf537c94e2b5f75778
Revert "Revert "Create MabroukMahdhi.cs""
MabroukENG/planetxamarin,MabroukENG/planetxamarin,MabroukENG/planetxamarin
src/Firehose.Web/Authors/MabroukMahdhi.cs
src/Firehose.Web/Authors/MabroukMahdhi.cs
using Firehose.Web.Infrastructure; using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace Firehose.Web.Authors { public class MabroukMahdhi : IAmACommunityMember { public string EmailAddress => "mabrouk@mahdhi.com"; public IEnumerable<Uri> FeedUris => ne...
mit
C#
713a4b6f46f33b60fefa19fbba27bbc131edd305
Add 'CascaraBool8'
whampson/cascara,whampson/bft-spec
Src/WHampson.Cascara/Types/CascaraBool8.cs
Src/WHampson.Cascara/Types/CascaraBool8.cs
#region License /* Copyright (c) 2017 Wes Hampson * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, ...
mit
C#
f72be51a211c0d6f1557d9b09b637e9f1d8ede17
Add a broken test for issue #564.
PKRoma/simple-binary-encoding,PKRoma/simple-binary-encoding,real-logic/simple-binary-encoding,marksantos/simple-binary-encoding,marksantos/simple-binary-encoding,PKRoma/simple-binary-encoding,marksantos/simple-binary-encoding,real-logic/simple-binary-encoding,real-logic/simple-binary-encoding,PKRoma/simple-binary-encod...
csharp/sbe-tests/Issue564Tests.cs
csharp/sbe-tests/Issue564Tests.cs
using System; using Baseline; using Microsoft.VisualStudio.TestTools.UnitTesting; using Org.SbeTool.Sbe.Dll; namespace Org.SbeTool.Sbe.Tests { [TestClass] public class Issue564Tests { [TestMethod] public void ShouldFailToEncodeGroupsThatExceedTheMaximumRepresentableSize() { ...
apache-2.0
C#
ce72833344792e31a2b16b5e5afa8ca5c2e278f2
Create RefundedPlayer.cs
ercsoftworks/bracket_generator
RefundedPlayer.cs
RefundedPlayer.cs
using System; namespace Brackets2012 { public class RefundedPlayer { private String _name; public String Name { get { return this._name; } set { this._name = value; } } ...
mit
C#
8686e43af57c7b35a53bb28ebefc044fa7931044
Range Overlaps
SuperJMN/Zafiro
Zafiro.Core/RangeMixin.cs
Zafiro.Core/RangeMixin.cs
using System; using System.Collections.Generic; using System.Linq; namespace Zafiro.Core { public static class RangeMixin { public static bool Overlap<T>(this IEnumerable<T> self, Func<T, int> start, Func<T, int> end) { return self .OrderBy(start) .S...
mit
C#
853b66a9657e52772e45c841ee565a86a5a2573e
Add DelayedCopy class to Weaver.
FloodProject/flood,FloodProject/flood,FloodProject/flood
src/Tools/Weaver/Util/DelayedCopy.cs
src/Tools/Weaver/Util/DelayedCopy.cs
 namespace Weaver.Util { interface IDelayedCopy { void Copy(); } class DelayedCopy<T> : IDelayedCopy { private readonly T originObject; private readonly T destObject; private readonly CopyDelegate action; public delegate void CopyDelegate(T originObject, T d...
bsd-2-clause
C#
2be14e6191a995c4ce5bd9294f45890b79c469e8
Create timer.cs
FireVolkhov/space-engineers-scripts
timer.cs
timer.cs
//Запуск таймеров чаще раз в сек private static int Delay = 0; private static int FrameDuration = 20; const string Timer1Name = "Таймер"; const string Timer2Name = "Спуск"; void Main(){ Delay++; IMyTimerBlock timer1 = (IMyTimerBlock)GridTerminalSystem.GetBlockWithName(Timer1Name); timer1.GetActio...
mit
C#
4f6ee14ecbabe6c071cc8191515dcbda28841244
Add BmpListener
mstrother/BmpListener
BMPClient/BmpListener.cs
BMPClient/BmpListener.cs
using System.Net; using System.Net.Sockets; using System.Threading; using System.Threading.Tasks; using BmpListener.BMP; namespace BmpListener { public class BmpListener { private readonly TcpListener tcpListener; public BmpListener(IPAddress ip, int port = 11019) { tcpLis...
mit
C#
54abb777041fef06953b29f6227f1847368e75f6
Add BlindTransferAction
skrusty/AsterNET,AsterNET/AsterNET
Asterisk.2013/Asterisk.NET/Manager/Action/BlindTransferAction.cs
Asterisk.2013/Asterisk.NET/Manager/Action/BlindTransferAction.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace AsterNET.Manager.Action { /// <summary> /// Redirect all channels currently bridged to the specified channel to the specified destination. /// /// See <see target="_blank" href="https://wiki.a...
mit
C#
5a259041a7eebe45416a46e7abdc3beef6db6918
add operator / for frequency (period = 1/f)
objorke/QuantityTypes
Source/QuantityTypes/Operators/Frequency.cs
Source/QuantityTypes/Operators/Frequency.cs
using System; using System.Collections.Generic; using System.Threading.Tasks; namespace QuantityTypes { public partial struct Frequency { /// <summary> /// Implements the operator /. /// </summary> /// <param name="x"> The x. </param> /// <param name="y"> The y. </p...
mit
C#
e15fb2bcc0831fd502803a71515fa01c7d6c9c37
Add SignatureAlgorithm class
ektrah/nsec
src/Cryptography/SignatureAlgorithm.cs
src/Cryptography/SignatureAlgorithm.cs
using System; using System.Diagnostics; namespace NSec.Cryptography { public abstract class SignatureAlgorithm : Algorithm { private readonly int _privateKeySize; private readonly int _publicKeySize; private readonly int _signatureSize; internal SignatureAlgorithm( ...
mit
C#
d6bd462c5f63fdf0941c453732d29af38711148f
Add Networking.cs
HarkerRobo/digital-core
Networking/Networking.cs
Networking/Networking.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using ImageProcessing2014; using java.util; using edu.wpi.first.wpilibj.networktables; using System.Threading; namespace ImageProcessing2014 { public class Networking { static NetworkTable...
mit
C#
cfba6adee294fad32486c91b3abcf357821660fd
include file size
0xFireball/PenguinUpload,0xFireball/PenguinUpload,0xFireball/PenguinUpload,0xFireball/PenguinUpload
PenguinUpload/src/PenguinUpload/Utilities/HumanReadableFileSize.cs
PenguinUpload/src/PenguinUpload/Utilities/HumanReadableFileSize.cs
$HEADER$namespace $NAMESPACE$ { public class $CLASS$ {$END$} }
apache-2.0
C#
97ed9878826cc23f91a9fbe62f1d4945a0b586a5
Add property file
Kerbas-ad-astra/Orbital-Science,DMagic1/Orbital-Science
Source/Properties/AssemblyInfo.cs
Source/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: AssemblyTitle("DM...
bsd-3-clause
C#
cdbcec1f70925ee38ddaa18bd63fdc40b88021c0
stop hurting Raven's thread-unsafe brain
half-ogre/qed,Haacked/qed
RavenCommands/AppendBuidOutput.cs
RavenCommands/AppendBuidOutput.cs
using System; namespace qed { public static partial class Functions { static readonly object semaphore = new object(); public static void AppendBuildOutput( Build build, string output) { using (var ravenSession = OpenRavenSession()) { ...
using System; namespace qed { public static partial class Functions { public static void AppendBuildOutput( Build build, string output) { using (var ravenSession = OpenRavenSession()) { build.Ouput += output + Environment.NewLine;...
mit
C#
9d8f4ba515a22a855bc4e67dc53c809d013afac0
Create ColorOrder.cs
zarlo/Cosmos,zarlo/Cosmos,CosmosOS/Cosmos,CosmosOS/Cosmos,CosmosOS/Cosmos,CosmosOS/Cosmos,zarlo/Cosmos,zarlo/Cosmos
source/Cosmos.System2/Graphics/ColorOrder.cs
source/Cosmos.System2/Graphics/ColorOrder.cs
namespace Cosmos.System.Graphics { /// <summary> /// Describes the order in which the colors are stored in each pixel of an image /// </summary> public enum ColorOrder { RGB, BGR } }
bsd-3-clause
C#
cf7699b4b9bb96bac906a7052f890d524f375677
Add tests for WildcardPattern.Escape() and Unescape() (#10090)
JamesWTruher/PowerShell-1,daxian-dbw/PowerShell,TravisEz13/PowerShell,PaulHigin/PowerShell,daxian-dbw/PowerShell,JamesWTruher/PowerShell-1,daxian-dbw/PowerShell,PaulHigin/PowerShell,PaulHigin/PowerShell,TravisEz13/PowerShell,PaulHigin/PowerShell,TravisEz13/PowerShell,JamesWTruher/PowerShell-1,TravisEz13/PowerShell,daxi...
test/xUnit/csharp/test_WildcardPattern.cs
test/xUnit/csharp/test_WildcardPattern.cs
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using System; using System.Management.Automation; using Xunit; namespace PSTests.Parallel { public class WildcardPatternTests { [Fact] public void TestEscape_Null() { Assert.Thro...
mit
C#
faf43b7573efce7f669e2e8b28dd8744314959d9
add MathTools.cs
NDark/ndinfrastructure,NDark/ndinfrastructure
DoNet/MathTools.cs
DoNet/MathTools.cs
 public partial class MathTools { /** * http://floating-point-gui.de/errors/comparison/ */ public static bool RelativeEqual(float a, float b, float _RatioUnderSum ) { float absA = System.Math.Abs(a); float absB = System.Math.Abs(b); float diff = System.Math.Abs(a - b); if (a == b) { // shortcut...
mit
C#
f7867ee9ece6acb3d9d7ad227273964db33ee843
Create Problem243.cs
fireheadmx/ProjectEuler,fireheadmx/ProjectEuler
Problem243.cs
Problem243.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ProjectEuler.Problems { class Problem243 { Phi p; //long upper = 50000000; long upper = 50000; public Problem243() { DateTime start = DateTime.Now; p ...
mit
C#
d67b0869cec1c875b7a77215640b0af99b017dab
Add Event Emitter
AlmirKadric/mage-sdk-unity,mage/mage-sdk-unity
EventEmitter/EventEmitter.cs
EventEmitter/EventEmitter.cs
using System; using System.Collections.Generic; using System.ComponentModel; public class EventEmitter<T> { // private Dictionary<string, object> eventTags = new Dictionary<string, object>(); private EventHandlerList eventsList = new EventHandlerList(); // public void on(string eventTag, Action<object, T> handl...
mit
C#
cb9e66ce937cb582548b3675409d6973e94791f0
Create CameraLookAtTarget.cs
MatrixNAN/Unity-Artist-Tools
CameraLookAtTarget.cs
CameraLookAtTarget.cs
using UnityEngine; using System.Collections; public class CameraLookAtTarget : MonoBehaviour { public Camera Cam; void Start () { Cam.transform.LookAt(transform); } void Update () { Cam.transform.LookAt(transform); } }
apache-2.0
C#
f5b33cb83062a8adc31987b4eb929465512a4217
Create Singleton.cs
efruchter/UnityUtilities
Management/Singleton.cs
Management/Singleton.cs
using System; using System.Collections.Generic; using UnityEngine.Assertions; /// <summary> /// Singleton manager. Provides a warning when trying to double-add or get null singletons. /// </summary> public static class Singleton<T> where T : class { private static T _singleton; private static Action<T> _onAdd; /// ...
mit
C#
9f6ece2280fc17bd7139332d862f5794bb0aac41
Add a (disabled by default) map loading test for Generals
feliwir/openSage,feliwir/openSage
src/OpenSage.Game.Tests/Content/LoadMapsTests.cs
src/OpenSage.Game.Tests/Content/LoadMapsTests.cs
using System.Linq; using OpenSage.Data; using OpenSage.Mods.Generals; using OpenSage.Tests.Data; using Veldrid; using Xunit; using Xunit.Abstractions; namespace OpenSage.Tests.Content { public class LoadMapsTests { private readonly ITestOutputHelper _testOutputHelper; public LoadMapsTests(ITe...
mit
C#
2a6ec259058df6cce2e199f2dab3f32c6c971853
Create process should use fully qualified path to exe.
AlexanderSher/RTVS,karthiknadig/RTVS,MikhailArkhipov/RTVS,karthiknadig/RTVS,MikhailArkhipov/RTVS,karthiknadig/RTVS,MikhailArkhipov/RTVS,AlexanderSher/RTVS,AlexanderSher/RTVS,karthiknadig/RTVS,MikhailArkhipov/RTVS,AlexanderSher/RTVS,MikhailArkhipov/RTVS,AlexanderSher/RTVS,karthiknadig/RTVS,AlexanderSher/RTVS,AlexanderSh...
src/Package/Impl/ProjectSystem/Commands/OpenCommandPromptCommand.cs
src/Package/Impl/ProjectSystem/Commands/OpenCommandPromptCommand.cs
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. using System; using System.ComponentModel.Composition; using System.Diagnostics; using System.IO; using Microsoft.Common.Core.Services; using Microsoft.VisualStudio....
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. using System.Diagnostics; using Microsoft.VisualStudio.ProjectSystem; using Microsoft.VisualStudio.R.Package.Commands; using Microsoft.Common.Core.OS; using System.C...
mit
C#
0ae769fe28056ebca27ed03a4ced6cb1420176c4
add executeAttribute
przemekwa/ProgramingStudy
ProgramingStudy/Study/ExecuteAttribute.cs
ProgramingStudy/Study/ExecuteAttribute.cs
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ProgramingStudy.Study { [AttributeUsage(AttributeTargets.Class)] public class ExecuteAttribute : Attribute { public string DateTime {get;set;} ...
mit
C#
af56395d4e273a6fb7d63c45af295de7720e42e5
Add C# 7.0 Local Methods example
devlights/try-csharp
TryCSharp.Samples/CSharp7/LocalMethods.cs
TryCSharp.Samples/CSharp7/LocalMethods.cs
using System; using TryCSharp.Common; namespace TryCSharp.Samples.CSharp7 { [Sample] public class LocalMethods : IExecutable { public void Execute() { // C# 7.0 にて ローカルメソッド が導入された // ローカルメソッド は、メソッドの中でローカルに利用できるメソッドを定義する機能 // 元々 Action や Func を用いても同様のことが出...
mit
C#
9686bf507d7b49419e802f44d841579a954536b4
Add failing tests for coverage of `GetDisplayString()`
smoogipoo/osu,NeoAdonis/osu,smoogipoo/osu,ppy/osu,peppy/osu,peppy/osu,peppy/osu,NeoAdonis/osu,ppy/osu,NeoAdonis/osu,smoogipoo/osu,ppy/osu,smoogipooo/osu
osu.Game.Tests/Models/DisplayStringTest.cs
osu.Game.Tests/Models/DisplayStringTest.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 Moq; using NUnit.Framework; using osu.Game.Beatmaps; using osu.Game.Extensions; using osu.Game.Online.API.Requests.Responses; using osu.Game.Rulesets; using osu.Gam...
mit
C#
be14c04fd54a7a0115ab8fb4e49c7dd797339611
Add simple use integration tests
northspb/RawRabbit,pardahlman/RawRabbit
src/RawRabbit.IntegrationTests/SimpleUse/PublishAndSubscribeTests.cs
src/RawRabbit.IntegrationTests/SimpleUse/PublishAndSubscribeTests.cs
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using RawRabbit.Client; using RawRabbit.IntegrationTests.TestMessages; using Xunit; namespace RawRabbit.IntegrationTests.SimpleUse { public class PublishAndSubscribeTests : IntegrationTestBase { public override void D...
mit
C#
4b13f1468216447a178c989a8b6fa0ebc2c0b69b
Add player interface
kmarcell/ELTE-2015-Component-Team4
GTInterfacesLibrary/GTInterfacesLibrary/GTPlayerInterface.cs
GTInterfacesLibrary/GTInterfacesLibrary/GTPlayerInterface.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace GTInterfacesLibrary { public interface GTPlayerInterface<E, P> where E : GTGameSpaceElementInterface where P : GTPosition { GTPlayerInterface<E, P> playerWithRe...
mit
C#
21f52ee1546be05ee43e7960cd9c9bb2fec1225b
Add an optimization test problem to check the implementation of the differential evolution algorithm.
geoem/MSolve,geoem/MSolve
ISAAR.MSolve.SamplesConsole/Optimization/OptimizationTest.cs
ISAAR.MSolve.SamplesConsole/Optimization/OptimizationTest.cs
using ISAAR.MSolve.Analyzers.Optimization; using ISAAR.MSolve.Analyzers.Optimization.Algorithms; using ISAAR.MSolve.SamplesConsole.Optimization.BenchmarkFunctions; using System; namespace ISAAR.MSolve.SamplesConsole.Optimization { public class OptimizationTest { public static void Main() { ...
apache-2.0
C#
537451723fdd5e8388dc137adf95979d288c8998
Fix wrong debug assert message
aalhour/C-Sharp-Algorithms,ivandrofly/C-Sharp-Algorithms
MainProgram/AlgorithmsTests/ShellSortTest.cs
MainProgram/AlgorithmsTests/ShellSortTest.cs
using System.Collections.Generic; using System.Diagnostics; using System.Linq; using Algorithms.Sorting; namespace C_Sharp_Algorithms.AlgorithmsTests { public static class ShellSortTest { public static void DoTest() { DoTestAscending(); DoTestDescending(); } ...
using System.Collections.Generic; using System.Diagnostics; using System.Linq; using Algorithms.Sorting; namespace C_Sharp_Algorithms.AlgorithmsTests { public static class ShellSortTest { public static void DoTest() { DoTestAscending(); DoTestDescending(); } ...
mit
C#
970eb85280551651ccda4a98abfeaa31807db00e
test for issue #293
dadhi/FastExpressionCompiler
test/FastExpressionCompiler.IssueTests/Issue293_Recursive_Methods.cs
test/FastExpressionCompiler.IssueTests/Issue293_Recursive_Methods.cs
using NUnit.Framework; using System; using System.Linq.Expressions; #if LIGHT_EXPRESSION using System.Text; using static FastExpressionCompiler.LightExpression.Expression; namespace FastExpressionCompiler.LightExpression.IssueTests #else using static System.Linq.Expressions.Expression; namespace FastExpressionCompile...
mit
C#
a85f37697c1b689fda9f4484b014338af18d9898
Add SSL+Upgrade regression test
aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore
test/Microsoft.AspNet.Server.KestrelTests/StreamSocketOutputTests.cs
test/Microsoft.AspNet.Server.KestrelTests/StreamSocketOutputTests.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 System; using System.IO; using Microsoft.AspNet.Server.Kestrel.Filter; using Microsoft.AspNet.Server.Kestrel.Http; using Xunit; namespace Micros...
apache-2.0
C#
efff0ae2819c9abe7851908c1aeadd01d67e4459
Add new tests to ExpirationDatabaseDriverDecoratorFacts
takenet/elephant
src/Take.Elephant.Tests/Sql/ExpirationDatabaseDriverDecoratorFacts.cs
src/Take.Elephant.Tests/Sql/ExpirationDatabaseDriverDecoratorFacts.cs
using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; using NSubstitute; using Take.Elephant.Sql; using Xunit; namespace Take.Elephant.Tests.Sql { public class ExpirationDatabaseDriverDecoratorFacts : FactsBase { private readonly IDatabaseDriver _databaseDriv...
apache-2.0
C#
961ecdd54463dc35216458c637483286500c70c0
Fix test - explicitly set the NancyBootstrapperLocator.Bootstrapper
ccellar/Nancy,grumpydev/Nancy,sadiqhirani/Nancy,grumpydev/Nancy,dbolkensteyn/Nancy,jeff-pang/Nancy,jonathanfoster/Nancy,felipeleusin/Nancy,sadiqhirani/Nancy,phillip-haydon/Nancy,wtilton/Nancy,xt0rted/Nancy,VQComms/Nancy,dbolkensteyn/Nancy,charleypeng/Nancy,ccellar/Nancy,dbolkensteyn/Nancy,jchannon/Nancy,VQComms/Nancy,j...
src/Nancy.Tests/Unit/NancyOptionsFixture.cs
src/Nancy.Tests/Unit/NancyOptionsFixture.cs
namespace Nancy.Tests.Unit { using Nancy.Bootstrapper; using Nancy.Owin; using Xunit; public class NancyOptionsFixture { private readonly NancyOptions nancyOptions; public NancyOptionsFixture() { this.nancyOptions = new NancyOptions(); } ...
namespace Nancy.Tests.Unit { using Nancy.Owin; using Xunit; public class NancyOptionsFixture { private readonly NancyOptions nancyOptions; public NancyOptionsFixture() { this.nancyOptions = new NancyOptions(); } [Fact] publi...
mit
C#
f9b5521fd05bcb640577f04484f1e08c70a6cc9f
Add near-empty cell file
12joan/hangman
cell.cs
cell.cs
using System; namespace Hangman { public class Cell { public Cell() { } } }
unlicense
C#
bc4bbbe6b346e5a24302294683797582ff21cef5
Create Soundex.cs
SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming
Kattis-Solutions/Soundex.cs
Kattis-Solutions/Soundex.cs
using System; using System.Collections.Generic; namespace Soundex { class Program { static string reduce(string s) { string b = s.Substring(0, 1); string curr = s.Substring(0, 1); string temp; for(int i=1; i<s.Length;i++) { ...
mit
C#
a24a1f0be94a64c329ef7f43995bbac1aa9d9647
add test for UrlHelper
ryancyq/aspnetboilerplate,ryancyq/aspnetboilerplate,ryancyq/aspnetboilerplate,aspnetboilerplate/aspnetboilerplate,luchaoshuai/aspnetboilerplate,aspnetboilerplate/aspnetboilerplate,aspnetboilerplate/aspnetboilerplate,luchaoshuai/aspnetboilerplate,ryancyq/aspnetboilerplate,aspnetboilerplate/aspnetboilerplate
test/Abp.Tests/Web/Http/UrlHelper_Tests.cs
test/Abp.Tests/Web/Http/UrlHelper_Tests.cs
using Abp.Web.Http; using Shouldly; using Xunit; namespace Abp.Tests.Web.Http { public class UrlHelper_Tests : TestBaseWithLocalIocManager { public UrlHelper_Tests() { LocalIocManager.Register<IUrlHelper, AbpUrlHelper>(); } [Theory] [InlineData("/relative/p...
mit
C#
e15f79680f9a8e6c62e589f6b6817e12d685703e
Add JsonHttpContent
WeihanLi/WeihanLi.Common,WeihanLi/WeihanLi.Common,WeihanLi/WeihanLi.Common
src/WeihanLi.Common/Http/JsonHttpContent.cs
src/WeihanLi.Common/Http/JsonHttpContent.cs
// Copyright (c) Weihan Li. All rights reserved. // Licensed under the MIT license. using Newtonsoft.Json; using System.Text; namespace WeihanLi.Common.Http; public sealed class JsonHttpContent : StringContent { public JsonHttpContent(object obj, JsonSerializerSettings? jsonSerializerSettings = null) : ...
mit
C#
2f8b6abad9830359677de506d400d42c45d0aee4
Create GlobalVariables.cs
UnityCommunity/UnityLibrary
Assets/Scripts/Utilities/GlobalVariables.cs
Assets/Scripts/Utilities/GlobalVariables.cs
using System.Collections.Generic; /// <summary> /// A simple static class to get and set globally accessible variables through a key-value approach. /// </summary> /// <remarks> /// <para>Uses a key-value approach (dictionary) for storing and modifying variables.</para> /// <para>It also uses a lock to ensure consiste...
mit
C#