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
6fa5245a9cefedc0d7537013c2533e9f370e9137
Add tests for ToString()
nunit/nunit-console,nunit/nunit-console,nunit/nunit-console
src/tests/Constraints/ToStringTests.cs
src/tests/Constraints/ToStringTests.cs
// **************************************************************** // Copyright 2010, Charlie Poole // This is free software licensed under the NUnit license. You may // obtain a copy of the license at http://nunit.org // **************************************************************** using System; namespace NUnit...
mit
C#
ac39529404545c15dbf53bbed47c6f096a21a8eb
Add RetentionMode
carbon/Amazon
src/Amazon.S3/Models/RetentionMode.cs
src/Amazon.S3/Models/RetentionMode.cs
namespace Amazon.S3 { public enum RetentionMode : byte { Compliance = 1, Goverance = 2 } }
mit
C#
3bb1aec0b338f56614c81f181368cb78354ba617
Add SwitchMenusExample
alexguirre/RAGENativeUI,alexguirre/RAGENativeUI
Example/SwitchMenusExample.cs
Example/SwitchMenusExample.cs
[assembly: Rage.Attributes.Plugin("SwitchMenusExample", Author = "alexguirre", Description = "Example using the UIMenuSwitchMenusItem class")] namespace SwitchMenusExampleProject { using System.Windows.Forms; using Rage; using RAGENativeUI; using RAGENativeUI.Elements; public static class EntryP...
mit
C#
7372b0fa3cca38e92cc3779c7b2ba5283fa7367b
add integration test to prove laziness
BaylorRae/Let.cs
tests/Let.cs.Tests/IntegrationTest.cs
tests/Let.cs.Tests/IntegrationTest.cs
using Moq; using NUnit.Framework; using System; using LetTestHelper; namespace Let.cs.Tests { [TestFixture] public class IntegrationTest { private Mock<ISpy> MockSpy; private bool DoSomethingWithSpy => LetHelper.Let(() => MockSpy.Object.DoSomething()); [SetUp] public void B...
mit
C#
07d3064f1ff318d55dfcbb22ab595436e8fc961e
add modify
snbbgyth/ItWebSite,snbbgyth/ItWebSite,snbbgyth/ItWebSite,snbbgyth/ItWebSite
Source/ItWebSite.Crawler/Help/Helper.cs
Source/ItWebSite.Crawler/Help/Helper.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Autofac; using ItWebSite.Core.BLL; namespace ItWebSite.Crawler.Help { public class Helper { private static IContainer _container; static Helper() { _cont...
apache-2.0
C#
7ce3c5829171cff36e59ab1709bc4e24e296b853
Fix UpdaterAttribute not existing
Arkhist/Hacknet-Pathfinder,Arkhist/Hacknet-Pathfinder,Arkhist/Hacknet-Pathfinder,Arkhist/Hacknet-Pathfinder
PathfinderAPI/Meta/UpdaterAttribute.cs
PathfinderAPI/Meta/UpdaterAttribute.cs
using System; namespace Pathfinder.Meta { public class UpdaterAttribute : Attribute { public string GithubApiUrl { get; set; } public string AssetFileName { get; set; } public string ZipEntryPath { get; set; } public bool IncludePrerelease { get; set; } public UpdaterA...
mit
C#
fd120b1908329f2a319de1474b3215a3999bc5a5
Add integration test for single and multiple common_words
elastic/elasticsearch-net,elastic/elasticsearch-net
src/Tests/Reproduce/GithubIssue2886.cs
src/Tests/Reproduce/GithubIssue2886.cs
using System; using System.Linq; using Elasticsearch.Net; using FluentAssertions; using Nest; using Tests.Framework; using Tests.Framework.ManagedElasticsearch.Clusters; using Tests.Framework.MockData; using Xunit; namespace Tests.Reproduce { public class GithubIssue2886 : IClusterFixture<WritableCluster> { privat...
apache-2.0
C#
3b21ad961b63bf1386af2c13ebcf3bd97bdbbdbb
Test file 'Value Controller' added
CloudBreadProject/CloudBread-Admin-Web,CloudBreadProject/CloudBread-Admin-Web,yshong93/CloudBread-Admin-Web,yshong93/CloudBread-Admin-Web,CloudBreadProject/CloudBread-Admin-Web,yshong93/CloudBread-Admin-Web
Controllers/ValuesController.cs
Controllers/ValuesController.cs
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using System.Web.Http; namespace CloudBread_Admin_Web.Controllers { public class ValuesController : ApiController { // GET api/values public IEnumerable<string> Get() { ...
mit
C#
d1bfd12cb93f9ff90f7ca89665a9f0786cdeb3a8
Create SimpleSymbols.cs
michaeljwebb/Algorithm-Practice
Coderbyte/SimpleSymbols.cs
Coderbyte/SimpleSymbols.cs
//Each letter in the string must be surrounded by a +. Return true or false. //Not completed using System; using System.Text.RegularExpressions; class MainClass { public static string SimpleSymbols(string str) { char[] cArray = str.ToCharArray(); for(int i = 0; i < cArray.Length; i++){ if("+"...
mit
C#
21cf541150937cd406fa5b55e109ba2f03585078
Add automated testcase
smoogipooo/osu-framework,peppy/osu-framework,ppy/osu-framework,ZLima12/osu-framework,peppy/osu-framework,ZLima12/osu-framework,Tom94/osu-framework,Tom94/osu-framework,EVAST9919/osu-framework,smoogipooo/osu-framework,EVAST9919/osu-framework,DrabWeb/osu-framework,ppy/osu-framework,ppy/osu-framework,DrabWeb/osu-framework,...
osu.Framework.Tests/Visual/TestCaseUpdateBeforeDraw.cs
osu.Framework.Tests/Visual/TestCaseUpdateBeforeDraw.cs
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE using System; using NUnit.Framework; using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Shapes; using osu.Fra...
mit
C#
a9f43b8824758617e5cff4ecccb9424c089971cf
add file
DevExpress/BigQueryProvider
BigQueryProvider/Native/ObjectUtils.cs
BigQueryProvider/Native/ObjectUtils.cs
using System.Globalization; namespace DevExpress.DataAccess.BigQuery.Native { public static class ObjectUtils { public static string ToInvariantString(this object value) { return ToInvariantString(value, "{0}"); } public static string ToInvariantString(this object value, strin...
apache-2.0
C#
df4a54e3328362be1e33de6ff32b12576fdcc4cd
Copy one StringExtensions method to client project.
sharpjs/PSql,sharpjs/PSql
PSql.Client/StringExtensions.cs
PSql.Client/StringExtensions.cs
/* Copyright 2020 Jeffrey Sharp Permission to use, copy, modify, and distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS A...
isc
C#
cbe8936c3b6049b64d46c533963a942997b57706
Create DrawGLLine.cs
UnityCommunity/UnityLibrary
Scripts/Helpers/DrawGLLine.cs
Scripts/Helpers/DrawGLLine.cs
using UnityEngine; // Draws lines with GL : https://docs.unity3d.com/ScriptReference/GL.html // Usage: Attach this script to gameobject in scene public class DrawGLLine : MonoBehaviour { public Color lineColor = Color.red; Material lineMaterial; void CreateLineMaterial() { if (!lineMaterial)...
mit
C#
38d6038980b5e63bcc068f0096b599ffce28dfd2
Add the first prototype of the DirectoryAnnouncer class, no guarantees on this one
alekratz/apphack2-project
transf/FileSystem/DirectoryAnnouncer.cs
transf/FileSystem/DirectoryAnnouncer.cs
using System; using System.Text; using System.Threading; using System.Collections.Generic; using System.Net; using transf.Net; using transf.Utils; // TODO : maybe change this to the Net namespace namespace transf.FileSystem { /// <summary> /// Announces the directories to anyone who asks. Runs as a worker thr...
agpl-3.0
C#
e8f135235c7dd139fd6447b4d3eefabc6aeb853f
add (manual) integration test
one-signal/OneSignal-Xamarin-SDK,one-signal/OneSignal-Xamarin-SDK
Testing/ProtoIntegrationTest.cs
Testing/ProtoIntegrationTest.cs
/* ProtoIntegrationTest.cs - Add the RunTests function to MainActivity/AppDelegate class to test Android/iOS. - Make sure you edit userId, which is the player ID to send the notification to. - Call the function from a separate thread after calling OneSignal.Init (): // Run Tests System.Threading.Thread th = new System....
mit
C#
c23b7f315bd9228d012ce4f02b1311bf712dfd4c
Add file
uo-lca/CalRecycleLCA,uo-lca/CalRecycleLCA
vs/LCIAToolAPI/Entities/Models/FragmentLCIAResource.cs
vs/LCIAToolAPI/Entities/Models/FragmentLCIAResource.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Entities.Models { /// <summary> /// FragmentFlowLCIAResource - derived from FragmentLCIAModel /// </summary> public class FragmentFlowLCIAResource { public int Fragmen...
bsd-2-clause
C#
17ff1b0a5c2d23b98a77f7f118d11f47b42b9efb
Create MainCamera operat
TatukiKonnami/UnityScriptUtilityTools
Script/CharacctorCamera.cs
Script/CharacctorCamera.cs
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; public class CharacctorCamera : MonoBehaviour { [SerializeField] private Vector2 mousePosition; public static Vector3 vec; public static float moveSpeed = 4.0F; // // Use this for initializati...
mit
C#
0c761ccce3ea7f1cb12f53e24c4d2e72355c1688
Add missing file to VC
paiden/Nett
Source/Nett/TomlComment.cs
Source/Nett/TomlComment.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Nett { internal class TomlComment { public string CommentText { get; private set; } public CommentLocation Location { get; private set; } public TomlComment(string commentText, CommentLocat...
mit
C#
8e1f253010736868d37e2d8995af3ced0bf67906
Create program.cs
spymag/RenameFiles
program.cs
program.cs
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace RenameFilesInFolder { class Program { static void Main(string[] args) { string dirpath = @"C:\Users\spyros.magripis\Pictures\LOS_rainbow"; ...
mit
C#
ee18c3d733d6e4314512dae1615f279b44005865
Add News model to Db.
MarioZisov/Baskerville,MarioZisov/Baskerville,MarioZisov/Baskerville
BaskervilleWebsite/Baskerville.Models/DataModels/News.cs
BaskervilleWebsite/Baskerville.Models/DataModels/News.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Baskerville.Models.DataModels { public class News { public int Id { get; set; } public string TitleBg { get; set; } public string TitleEn { get; set; } ...
apache-2.0
C#
093ac2357aac69918a74c5621003e8aa914429a0
Create primeno.cs
ashoktandan007/csharp,wchild30/asterisk
primeno.cs
primeno.cs
using System; class Program { static void Main(string[] args) { bool prime=true; for (int i = 3; i <= 100; i++) { for (int j = 2; j <= 99; j++) { if (i != j && i % j == 0) { prime = false; } ...
apache-2.0
C#
d6898a0f4f9c6eec17aeebb17512e8d042a0db75
Create program.cs
kbalint/ipv6he.net_updater
program.cs
program.cs
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using System.Text; using System.Threading.Tasks; namespace iv6HEnet_Updater { class Program { static void Main(string[] args) { string userid=""; // login userid | tunnelbroker.net ...
mit
C#
376837db6a7cbaebe288ebac3f63bf538eb15546
Create IntRange.cs
DoubleLinePartners/ObjectFiller.NET,HerrLoesch/ObjectFiller.NET,Tynamix/ObjectFiller.NET,blmeyers/ObjectFiller.NET
ObjectFiller/Plugins/Integer/IntRange.cs
ObjectFiller/Plugins/Integer/IntRange.cs
namespace Tynamix.ObjectFiller { public class IntRange : IRandomizerPlugin<int> { private readonly int _min; private readonly int _max; public IntRange(int min, int max) { _min = min; _max = max; } public IntRange(int max) : t...
mit
C#
141780393568d7c8cc1f2a3e3a9eb166e9ceb8a7
Add test file
kraln/Unity_UWP_BTLE
TestBLE.cs
TestBLE.cs
using UnityEngine; using System.Collections; using BTLEPlugin; public class TestBLE : MonoBehaviour { const string Addr_Laptop = "BluetoothLE#BluetoothLE34:02:86:4b:42:fd-e4:83:bb:53:22:23"; const string Addr_Holo = "BluetoothLE#BluetoothLEb4:ae:2b:be:fc:09-e4:83:bb:53:22:23"; string found_addr = ""; ...
mit
C#
104256a054150963b6ffd5a4b68c14fedcfff834
Add test coverage
peppy/osu,ppy/osu,NeoAdonis/osu,peppy/osu,peppy/osu,ppy/osu,ppy/osu,NeoAdonis/osu,NeoAdonis/osu
osu.Game.Rulesets.Osu.Tests/Mods/TestSceneOsuModAimAssist.cs
osu.Game.Rulesets.Osu.Tests/Mods/TestSceneOsuModAimAssist.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 NUnit.Framework; using osu.Game.Rulesets.Osu.Mods; namespace osu.Game.Rulesets.Osu.Tests.Mods { public class TestSceneOsuModAimAssist : OsuModTestScene { ...
mit
C#
440135f128b1e4db4efbfefe9a9ff418287a5824
Fix Linux build by adding missing file (#596416)
oluc/tomboy,MatteoNardi/Tomboy,tomboy-notes/tomboy,rmayr/privatenotes-tomboyaddin,rotty3000/tomboy,MatteoNardi/Tomboy,tomboy-notes/tomboy,grepory/tomboy,oluc/tomboy,rotty3000/tomboy,rmayr/privatenotes-tomboyaddin,rotty3000/tomboy,oluc/tomboy,grepory/tomboy,oluc/tomboy,grepory/tomboy,MatteoNardi/Tomboy,MatteoNardi/Tombo...
Tomboy/gtk-sharp-beans/ImageMenuItem.cs
Tomboy/gtk-sharp-beans/ImageMenuItem.cs
// 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, merge, publish, // distribute, sublicense, and/or sell...
lgpl-2.1
C#
0b5b64dcf2100e1a388315e74448e71cebdafe83
Add a common object to provide wall locking.
aNutForAJarOfTuna/kafka-net,CenturyLinkCloud/kafka-net,BDeus/KafkaNetClient,EranOfer/KafkaNetClient,bridgewell/kafka-net,nightkid1027/kafka-net,geffzhang/kafka-net,Jroland/kafka-net,gigya/KafkaNetClient,martijnhoekstra/kafka-net,PKRoma/kafka-net
src/kafka-net/Common/ThreadWall.cs
src/kafka-net/Common/ThreadWall.cs
using System; using System.Threading; using System.Threading.Tasks; namespace KafkaNet.Common { public class ThreadWall { private readonly SemaphoreSlim _semaphore = new SemaphoreSlim(1, 1); public void Block() { _semaphore.Wait(); } public void Release() ...
apache-2.0
C#
b8642a3c86d8465469036bfcdf18c95db724a2c7
Add CORRELATION_VECTOR structure to Shared
dahall/vanara
PInvoke/Shared/WinNT/CORRELATION_VECTOR.cs
PInvoke/Shared/WinNT/CORRELATION_VECTOR.cs
using System.Runtime.InteropServices; namespace Vanara.PInvoke { /// <summary>Store the correlation vector that is used to reference events and the generated logs for diagnostic purposes.</summary> // https://docs.microsoft.com/en-us/windows-hardware/drivers/ddi/ntddk/ns-ntddk-correlation_vector typedef struct CORR...
mit
C#
cfed060aff994816172a4b6da5adf8826253d9cd
Check for Directory.Exists before deleting
jasonmalinowski/roslyn,mgoertz-msft/roslyn,kelltrick/roslyn,bkoelman/roslyn,abock/roslyn,DustinCampbell/roslyn,TyOverby/roslyn,diryboy/roslyn,amcasey/roslyn,Pvlerick/roslyn,Shiney/roslyn,Pvlerick/roslyn,drognanar/roslyn,vslsnap/roslyn,heejaechang/roslyn,robinsedlaczek/roslyn,swaroop-sridhar/roslyn,khellang/roslyn,lorca...
src/Test/Perf/infra/fetch_build.csx
src/Test/Perf/infra/fetch_build.csx
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // CopyDirectory() #load "../util/tools_util.csx" using System; using System.IO; using System.Linq; using System.Xml; // TODO: Use actual command line argum...
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // CopyDirectory() #load "../util/tools_util.csx" using System; using System.IO; using System.Linq; using System.Xml; // TODO: Use actual command line argum...
mit
C#
909f8d1d9800eb7ffd820463865b38ea4e6f5264
Add visual tests for `Filter`
peppy/osu,ppy/osu,NeoAdonis/osu,smoogipooo/osu,NeoAdonis/osu,smoogipoo/osu,peppy/osu-new,smoogipoo/osu,NeoAdonis/osu,smoogipoo/osu,ppy/osu,ppy/osu,peppy/osu,peppy/osu
osu.Game.Tests/Audio/TestSceneFilter.cs
osu.Game.Tests/Audio/TestSceneFilter.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 ManagedBass.Fx; using NUnit.Framework; using osu.Framework.Allocation; using osu.Framework.Audio; using osu.Framework.Graphics; using osu.Game.Audio.Effects; using ...
mit
C#
25ef0123da5144bcb5dd8c07eff0fe5ebc926db5
Create Geometry.cs
jansky/JanskyMath
Geometry.cs
Geometry.cs
namespace
mit
C#
9614b00d2916934f7bcc2f74322480e8f80221fd
Add test for interface derived classes
AlexCatarino/pythonnet,AlexCatarino/pythonnet,AlexCatarino/pythonnet,AlexCatarino/pythonnet
src/embed_tests/TestInterfaceClasses.cs
src/embed_tests/TestInterfaceClasses.cs
using NUnit.Framework; using Python.Runtime; namespace Python.EmbeddingTest { public class TestInterfaceClasses { public string testCode = @" from clr import AddReference AddReference(""System"") AddReference(""Python.EmbeddingTest"") from Python.EmbeddingTest import * testModule = TestInterfaceClasse...
mit
C#
8732b8c891f16372c8a37b5c328c0da128781aa9
Add a TreeModel implementation with independent backing store
mono-soc-2012/Tasque,mono-soc-2012/Tasque,mono-soc-2012/Tasque
src/tasque/TreeViewModelImplementor.cs
src/tasque/TreeViewModelImplementor.cs
// // TreeViewModelImplementor.cs // // Author: // Antonius Riha <antoniusriha@gmail.com> // // Copyright (c) 2012 Antonius Riha // // 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 wi...
mit
C#
4fbf2e4cc14b79dea5c6802ff3e41869c712e635
Add Bezier Curve for unity3d
Andy-Sun/Unity3d-Plugins
B.cs
B.cs
/* Author: AndySun Date: 2015-08-11 Description:二次B样曲线 */ using UnityEngine; using Vectrosity; using System.Collections.Generic; public class B : MonoBehaviour { public List<Vector2> controlPos; public Material mat; int PointIndex = 0; public float speed = 0.01f; float t = 0;...
mit
C#
3d4068db73a6b9fda14838de6fe8b92b8a2689c8
add tests for non aggregate commands that are directly applied to the target
commonsensesoftware/Its.Cqrs,commonsensesoftware/Its.Cqrs,commonsensesoftware/Its.Cqrs
Domain.Tests/NonAggregateCommandTests.cs
Domain.Tests/NonAggregateCommandTests.cs
using System; using System.Threading.Tasks; using FluentAssertions; using Its.Validation; using Its.Validation.Configuration; using Microsoft.Its.Recipes; using NUnit.Framework; namespace Microsoft.Its.Domain.Tests { [TestFixture] public class NonAggregateCommandTests { internal static int CallCoun...
mit
C#
d8e291119fff41e8e005255abf94c6b7129eb8d1
Create Movement.cs
Moci1/ColorBox
Movement.cs
Movement.cs
using System; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; namespace ColorBox { public enum Transforms { Rotate, Scale, Translate, Skew, Custom } public class Movement { GameManager gm; public Movement(GameManager gm) { this.gm = gm; } public Vector3 GoRotatedDirec...
mit
C#
e7b48699235def7e77f97beaf710538316da41f0
Create ACT.cs
etormadiv/njRAT_0.7d_Stub_ReverseEngineering
j_csharp/OK/ACT.cs
j_csharp/OK/ACT.cs
//Reversed by Etor Madiv public static string ACT() { try { IntPtr foregroundWindowHandle = GetForegroundWindow(); if( foregroundWindowHandle != System.IntPtr.Zero ) { string foregroundWindowTitle = Microsoft.VisualBasic.Strings.Space( GetWindowTextLength( (Int64) foregroundWindowHandle ) + 1 );...
unlicense
C#
5e1b82dbf0c4945424270152d2afd9b462706209
Add test to monitor HighPrecisionTickGenerator interval #106
melanchall/drywetmidi,melanchall/drymidi,melanchall/drywetmidi
DryWetMidi.Tests/Devices/Clock/TickGenerator/HighPrecisionTickGeneratorTests.cs
DryWetMidi.Tests/Devices/Clock/TickGenerator/HighPrecisionTickGeneratorTests.cs
using System; using System.Collections.Generic; using System.Diagnostics; using System.Threading; using Melanchall.DryWetMidi.Devices; using NUnit.Framework; namespace Melanchall.DryWetMidi.Tests.Devices { [TestFixture] public sealed class HighPrecisionTickGeneratorTests { #region Test methods ...
mit
C#
ec9abafb8048b2ca4266bc48c337c02d3519eab0
Create TestCase.cs
jiangxianfu/MiniORM
TestCase.cs
TestCase.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace miniORM.TestCase { public class DataAccess { private static string DBConn = "server=.\\sqlexpress;database=testdb;uid=sa;pwd=sa;"; private static DBHelper CreateDBHelper() { retur...
apache-2.0
C#
9a347af5c79e5f57decfa6be8a420a7f4ef6872e
Add test coverage of `SubmittableScore` serialisation to (roughly) match spec
ppy/osu,NeoAdonis/osu,peppy/osu,ppy/osu,NeoAdonis/osu,NeoAdonis/osu,peppy/osu,peppy/osu,ppy/osu
osu.Game.Tests/Online/TestSubmittableScoreJsonSerialization.cs
osu.Game.Tests/Online/TestSubmittableScoreJsonSerialization.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 Newtonsoft.Json; using NUnit.Framework; using osu.Game.IO.Serialization; using osu.Game.Online.Solo; using osu.Game.Tests.Resources; namespace osu.Game.Tests.Onlin...
mit
C#
f4c7a061149a9a0afe388db9b40bba9ddcd08e1c
Create DrawCrossHair.cs
UnityCommunity/UnityLibrary
Scripts/Helpers/Drawing/DrawCrossHair.cs
Scripts/Helpers/Drawing/DrawCrossHair.cs
using UnityEngine; using System.Collections; // Draws crosshair to mouseposition with GL.Lines, takes line length in pixels // Usage: Attach this script to Main Camera, Assign material (for example some particle shader) public class DrawCrossHair : MonoBehaviour { public Material mat; public float lineLen = 5...
mit
C#
fdb0e4210b57f8d6992073894274b19614283093
Write Camel Case Tests
WarpSpideR/SuitCase
SuitCase.Tests/CamelCasingHelpersTest.cs
SuitCase.Tests/CamelCasingHelpersTest.cs
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Xunit; namespace SuitCase.Tests { public class CamelCasingHelpersTest { public static IEnumerable<object[]> FromData { get { return new List<object[]>...
mit
C#
b51056cf8921b199ca70a7a94f4302e93694594d
Create Permutation.cs
fireheadmx/ProjectEuler,fireheadmx/ProjectEuler
Permutation.cs
Permutation.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ProjectEuler { class Permutation { public static bool NextPermutation(char[] charList) { var largestIndex = -1; for (var i = charList.Length - 2; i >= 0; i--) { ...
mit
C#
29ec498f6c69f779ee55d78c08299109ead9283c
Add failing test case for player sending wrong ruleset ID to spectator server
NeoAdonis/osu,smoogipoo/osu,ppy/osu,NeoAdonis/osu,smoogipooo/osu,peppy/osu-new,peppy/osu,smoogipoo/osu,peppy/osu,smoogipoo/osu,NeoAdonis/osu,ppy/osu,peppy/osu,ppy/osu
osu.Game.Tests/Visual/Gameplay/TestSceneSpectatorHost.cs
osu.Game.Tests/Visual/Gameplay/TestSceneSpectatorHost.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 NUnit.Framework; using osu.Framework.Allocation; using osu.Game.Online.API; using osu.Game.Online.Spectator; using osu.Game.Rulesets; using osu.Game.Rulesets.Mania;...
mit
C#
c4692580235fedf757b16074378ac6c634710ed7
add DelegateTextWriter
WeihanLi/WeihanLi.Common,WeihanLi/WeihanLi.Common,WeihanLi/WeihanLi.Common
src/WeihanLi.Common/Helpers/DelegateTextWriter.cs
src/WeihanLi.Common/Helpers/DelegateTextWriter.cs
using System; using System.IO; using System.Text; using System.Threading.Tasks; namespace WeihanLi.Common.Helpers { public class DelegateTextWriter : TextWriter { public override Encoding Encoding => Encoding.UTF8; private readonly Action<string> _onLineWritten; private readonly Strin...
mit
C#
86db640e1f30cd5929dcf186f15dba29605ba3ef
Add shell sort implementation in csharp
felipecustodio/algorithms,felipecustodio/algorithms,felipecustodio/algorithms,felipecustodio/algorithms,felipecustodio/algorithms,felipecustodio/algorithms,felipecustodio/algorithms,felipecustodio/algorithms,felipecustodio/algorithms,felipecustodio/algorithms,felipecustodio/algorithms,felipecustodio/algorithms,felipecu...
sorting/shell_sort/csharp/ShellSort.cs
sorting/shell_sort/csharp/ShellSort.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace shellsort { public class ShellSort { private readonly int[] _array; public ShellSort(int[] array) { this._array = array; } public ...
mit
C#
97d4fcd36e399f8ff62e26dbc68ebb2f3b20bfa0
Rename twitchconverter to twitchcollectionconverter
Aux/NTwitch,Aux/NTwitch
src/NTwitch.Core/Common/Converters/TwitchCollectionConverter.cs
src/NTwitch.Core/Common/Converters/TwitchCollectionConverter.cs
using Newtonsoft.Json; using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; namespace NTwitch { public class TwitchCollectionConverter : JsonConverter { private string _name; public TwitchCollectionConverter(string name) { _name = name; } ...
mit
C#
aecfe671c3cf7adb237472b387642e99e02f93bc
Add a caching channel factory. (#92)
googleads/google-ads-dotnet,googleads/google-ads-dotnet,googleads/google-ads-dotnet,googleads/google-ads-dotnet
src/Lib/CachedChannelFactory.cs
src/Lib/CachedChannelFactory.cs
// Copyright 2019 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
apache-2.0
C#
88b81b80ff182fd9e9bed96dc658bd23013d173f
Create Tournament.cs
ercsoftworks/bracket_generator
Tournament.cs
Tournament.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Brackets2012; using C5; using System.Collections.ObjectModel; using System.Windows; namespace Brackets2012 { /// <summary> /// /// </summary> public class Tournament { //Naming and basics of tourna...
mit
C#
45c3912e05f7761442961ae2ce9bacb5e9efe6f9
add class HeadInputStream
icarus-consulting/Yaapii.Atoms
src/Yaapii.Atoms/IO/HeadInputStream.cs
src/Yaapii.Atoms/IO/HeadInputStream.cs
using System; using System.Collections.Generic; using System.IO; using System.Text; using System.Threading; using Yaapii.Atoms.Scalar; namespace Yaapii.Atoms.IO { public sealed class HeadInputStream : Stream { private readonly IScalar<Stream> origin; private readonly long length; priva...
mit
C#
2c475abc9d27144098b9023467ae7099ba180a64
add Registry operator
23S163PR/system-programming
Novak.Andriy/RegEditor/RegEditor/RegistryEditor.cs
Novak.Andriy/RegEditor/RegEditor/RegistryEditor.cs
using System; using System.Collections.ObjectModel; using System.Linq; using Microsoft.Win32; namespace RegEditor { class RegistryEditor { private ObservableCollection<TreeItem> _items; public ObservableCollection<TreeItem> Items { get { return _items; } } public RegistryEditor() { _items = new Observ...
cc0-1.0
C#
c66cb85d4d016c9ed56261ecd4354af8c80a6ce1
Create BasWijdenes.cs
planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell
src/Firehose.Web/Authors/BasWijdenes.cs
src/Firehose.Web/Authors/BasWijdenes.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 BasWijdenes : IAmAMicrosoftMVP { public string FirstName => "Bas"; public string LastName ...
mit
C#
5bbd18c711b13609ee5f3ade4ed9d2e4ad448db4
Update the version
Nilambari/azure-sdk-for-net,rohmano/azure-sdk-for-net,jasper-schneider/azure-sdk-for-net,herveyw/azure-sdk-for-net,DeepakRajendranMsft/azure-sdk-for-net,MabOneSdk/azure-sdk-for-net,gubookgu/azure-sdk-for-net,AuxMon/azure-sdk-for-net,Matt-Westphal/azure-sdk-for-net,tonytang-microsoft-com/azure-sdk-for-net,hovsepm/azure-...
src/Insights/Properties/AssemblyInfo.cs
src/Insights/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#
2758c3d3e06f643669579f77cd480d0f87b8c175
Add AsModelTypeInfo extensions
quartz-software/kephas,quartz-software/kephas
src/Kephas.Core/Model/TypeExtensions.cs
src/Kephas.Core/Model/TypeExtensions.cs
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="TypeExtensions.cs" company="Kephas Software SRL"> // Copyright (c) Kephas Software SRL. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project...
mit
C#
013e45ecb3f9e6eed4efd8b70e94d2d414d2d456
Use <c> tag for keywords in docs
Yonom/CupCake
CupCake.Messages/BlockUtils.cs
CupCake.Messages/BlockUtils.cs
using CupCake.Messages.Blocks; namespace CupCake.Messages { public class BlockUtils { public static Layer CorrectLayer(Block id, Layer layer) { if ((id > 0 && (int)id < 500) || id == Block.DecorLabel) { return Layer.Foreground; } ...
mit
C#
a43a316ab6046fd36a9524a937062309e81803d4
Add Guard.cs back in the mix
NickCraver/dotless,NickCraver/dotless,NickCraver/dotless,NickCraver/dotless
src/dotless.Core/Utils/Guard.cs
src/dotless.Core/Utils/Guard.cs
namespace dotless.Core.Utils { using System.Collections.Generic; using Exceptions; using Parser.Infrastructure; using Parser.Infrastructure.Nodes; public static class Guard { public static void Expect(string expected, string actual, object @in, int index) { if (actua...
apache-2.0
C#
7087c06c9a57f74fa278e8412c161392d7d144fb
Add missing file
nicholasham/FluentInstallation,nicholasham/FluentInstallation
src/FluentInstallation/ParametersExtensions.cs
src/FluentInstallation/ParametersExtensions.cs
using System; using System.Collections; using System.Linq; using System.Reflection; namespace FluentInstallation { public static class ParametersCastExtensions { public static object GetValueWithLowerInvariantKey(this IDictionary dictionary, string keyname) { string key = ...
apache-2.0
C#
953e7a689c49006d471d8420a3f1f5d30d3e94d2
Add LeetCode0044.cs
dunso/algorithm,dunso/LeetCode,dunso/LeetCode,dunso/LeetCode,dunso/algorithm,dunso/LeetCode,dunso/algorithm,dunso/algorithm
Csharp/DP/LeetCode0044.cs
Csharp/DP/LeetCode0044.cs
using System; using System.Diagnostics; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Csharp.DP { [TestClass] public class LeetCode0044 { public bool IsMatch(string s, string p) { bool[,] dp = new bool[s.Length + 1, p.Length + 1]; int[] pos = new int...
mit
C#
958aa8c188daf423dbe3544af7ebe458551ae569
Add missing file.
TechplexEngineer/Aurora-Sim,TechplexEngineer/Aurora-Sim,TechplexEngineer/Aurora-Sim,TechplexEngineer/Aurora-Sim
Aurora/Framework/UserSet.cs
Aurora/Framework/UserSet.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Nini.Config; namespace Aurora.Framework { /// <value> /// Different user set names that come in from the configuration file. /// </value> public enum UserSet { All, Administrat...
bsd-3-clause
C#
1f967057fb744f8b038805fab3008092ed2753af
Add C# 7.0 Deconstructors example
devlights/try-csharp
TryCSharp.Samples/CSharp7/Deconstructors.cs
TryCSharp.Samples/CSharp7/Deconstructors.cs
using TryCSharp.Common; namespace TryCSharp.Samples.CSharp7 { [Sample] public class Deconstructors : IExecutable { class Data { private readonly int _x; private readonly int _y; public Data(int x, int y) { this._x = x; ...
mit
C#
6a9b55336cbe28602933f3a5e11a5461d02d3cb6
Create CustomObjects.cs
Quadrat1c/OpJinx
JinxCrawler/WebCrawler/CustomObjects.cs
JinxCrawler/WebCrawler/CustomObjects.cs
using System.Collections.Generic; namespace OpJinx.Web { // Generic Object public class GEN { public string header { get; set; } public string link { get; set; } } }
mit
C#
f306283f1359181a0abceb6bab1aa7f87a5ae7ae
Test file updated to latest base namespace
CoraleStudios/Colore,Sharparam/Colore,WolfspiritM/Colore,danpierce1/Colore
Corale.Colore.Tests/ColoreExceptionTests.cs
Corale.Colore.Tests/ColoreExceptionTests.cs
namespace Corale.Colore.Tests { using System; using NUnit.Framework; [TestFixture] public class ColoreExceptionTests { [Test] public void ShouldSetMessage() { const string Expected = "Test message."; Assert.AreEqual(Expected, new ColoreException("Te...
mit
C#
d5054cfc4ed67ef680bf6d9ecca9c215b213fd4b
Add S3RequestHelper
carbon/Amazon
src/Amazon.S3/Helpers/S3RequestHelper.cs
src/Amazon.S3/Helpers/S3RequestHelper.cs
using System; using System.Collections.Generic; using System.Net.Http; using System.Net.Http.Headers; namespace Amazon.S3.Helpers { internal static class S3RequestExtensions { public static void UpdateHeaders(this S3Request request, IReadOnlyDictionary<string, string> headers) { ...
mit
C#
8931086c4256535558500244e66367ba82007ac3
Add WebAPI Client (Untested)
paulcbetts/bugsnag-dotnet,paulcbetts/bugsnag-dotnet,CodeHex/bugsnag-dotnet
src/Bugsnag.Core/Clients/WebAPIClient.cs
src/Bugsnag.Core/Clients/WebAPIClient.cs
using System; using System.Web; using System.Web.Http.Filters; namespace Bugsnag.Clients { public static class WebAPIClient { [AttributeUsageAttribute(AttributeTargets.Class | AttributeTargets.Method, Inherited = true, AllowMultiple = true)] public sealed class BugsnagExceptionHandler : Except...
mit
C#
e527e4ff5b6e8e2d33147ce31be61e66ef10cb3b
Increase CssSelector test coverage
Carbon/Css
src/Carbon.Css.Tests/CssSelectorTests.cs
src/Carbon.Css.Tests/CssSelectorTests.cs
using System.Collections.Generic; using Xunit; namespace Carbon.Css.Parser.Tests { public class CssSelectorTests { [Fact] public void ParseSelector() { var sheet = StyleSheet.Parse("div > h1 { width: 100px; }"); var style = sheet.Children[0] as St...
mit
C#
a919424e6f5d0bf1b226a45dc047fd937914be9b
Add tests for SqlServerCheckConstraint.
sjp/Schematic,sjp/Schematic,sjp/SJP.Schema,sjp/Schematic,sjp/Schematic
src/SJP.Schematic.SqlServer.Tests/SqlServerCheckConstraintTests.cs
src/SJP.Schematic.SqlServer.Tests/SqlServerCheckConstraintTests.cs
using System; using NUnit.Framework; using Moq; using SJP.Schematic.Core; namespace SJP.Schematic.SqlServer.Tests { [TestFixture] internal class SqlServerCheckConstraintTests { [Test] public void Ctor_GivenNullTable_ThrowsArgumentNullException() { Assert.Throws<Argument...
mit
C#
406818cb317aa151a6e4ac13ea37ab58380dad43
Add a few tests for F.Range
farity/farity
CSharp.Functional.Tests/RangeTests.cs
CSharp.Functional.Tests/RangeTests.cs
using System.Collections; using System.Collections.Generic; using System.Linq; using Xunit; namespace CSharp.Functional.Tests { public class RangeTests { [Theory] [InlineData(0, 1)] public void RangeProvidesAnIEnumerable(int start, int end) { var result = F.Range(st...
mit
C#
9ebdfac5aa7c02d324361c3593cf82c1ca705a60
Update assembly version
msft-shahins/BotBuilder,xiangyan99/BotBuilder,Clairety/ConnectMe,dr-em/BotBuilder,msft-shahins/BotBuilder,mmatkow/BotBuilder,mmatkow/BotBuilder,mmatkow/BotBuilder,yakumo/BotBuilder,Clairety/ConnectMe,msft-shahins/BotBuilder,stevengum97/BotBuilder,stevengum97/BotBuilder,yakumo/BotBuilder,yakumo/BotBuilder,xiangyan99/Bot...
CSharp/Library/Properties/AssemblyInfo.cs
CSharp/Library/Properties/AssemblyInfo.cs
using System.Resources; 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 assembl...
using System.Resources; 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 assembl...
mit
C#
1c0097708f7164f506a8650d3aa51187a605de11
Add missing BootstrapController.cs
dinowang/MvcTrig,dinowang/MvcTrig,dinowang/MvcTrig
Hexon.MvcTrig.Sample/Controllers/BootstrapController.cs
Hexon.MvcTrig.Sample/Controllers/BootstrapController.cs
using System.Web.Mvc; using Hexon.MvcTrig.Bootstrap; namespace Hexon.MvcTrig.Sample.Controllers { public class BootstrapController : Controller { public ActionResult Modal() { this.Trig(x => x.ModalOpen()); return PartialView(); } } }
mit
C#
cc9934e4166e21c7b8f1526a7782b2cc5c305947
Add Q231
txchen/localleet
csharp/Q231_PowerOfTwo.cs
csharp/Q231_PowerOfTwo.cs
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using Xunit; // Given an integer, write a function to determine if it is a power of two. // https://leetcode.com/problems/power-of-two/ namespace LocalLeet { public class Q231 { public bool ...
mit
C#
965380f79a7f8a955281cfc03807b4e52ca8fc87
Create AssemblyInfo.cs
roxanacorina/DecisionTree
DecisionTreeIA/Properties/AssemblyInfo.cs
DecisionTreeIA/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("Dec...
mit
C#
f4b0555dfe8eb62e8c979359ad22347363acc623
add abp localization controller tests
ryancyq/aspnetboilerplate,aspnetboilerplate/aspnetboilerplate,aspnetboilerplate/aspnetboilerplate,ryancyq/aspnetboilerplate,ryancyq/aspnetboilerplate,luchaoshuai/aspnetboilerplate,aspnetboilerplate/aspnetboilerplate,aspnetboilerplate/aspnetboilerplate,luchaoshuai/aspnetboilerplate,ryancyq/aspnetboilerplate
test/Abp.AspNetCore.Tests/Tests/AbpLocalizationController_Tests.cs
test/Abp.AspNetCore.Tests/Tests/AbpLocalizationController_Tests.cs
using System.Linq; using System.Net; using System.Threading.Tasks; using Abp.AspNetCore.Mvc.Controllers; using Shouldly; using Xunit; namespace Abp.AspNetCore.Tests { public class AbpLocalizationControllerTests : AppTestBase { [Theory] [InlineData("en")] [InlineData("en-us")] p...
mit
C#
e9e065b7ee6da5c8fa33d1fcd1ae9aed2d5560b6
Create AugmentedMatrixAtom.cs
ForNeVeR/wpf-math
src/WpfMath/Atoms/AugmentedMatrixAtom.cs
src/WpfMath/Atoms/AugmentedMatrixAtom.cs
using WpfMath.Boxes; namespace WpfMath.Atoms { /// <summary> /// Represents two matrix atoms separated by a single vetical bar. /// </summary> internal class AugmentedMatrixAtom:Atom { public AugmentedMatrixAtom(SourceSpan source, Atom leftatom,Atom rightatom, TexAtomType type = TexAtomType...
mit
C#
c4995d406cae327ac722524c2c55814806785142
Fix spacing
zbrad/poshtools,YOTOV-LIMITED/poshtools,daviwil/poshtools,mgreenegit/poshtools,KevinHorvatin/poshtools,Microsoft/poshtools,adamdriscoll/poshtools,SpotLabsNET/poshtools,erwindevreugd/poshtools
PowerShellTools/Project/ImageListIndex.cs
PowerShellTools/Project/ImageListIndex.cs
using System; namespace PowerShellTools.Project { /// <summary> /// Maps the images in ImageList.bmp to their actual uses. /// </summary> internal enum ImageListIndex { Project = 0, DataFile = 1, Script = 2, Module = 3 } }
using System; namespace PowerShellTools.Project { /// <summary> /// Maps the images in ImageList.bmp to their actual uses. /// </summary> internal enum ImageListIndex { Project = 0, DataFile = 1, Script = 2, Module = 3 } }
apache-2.0
C#
c60c579345eed9928169d6b33bedfc3744cf4b28
Add files via upload
SE2-BAC/BAC-Tracker
User.cs
User.cs
using Android.App; using Android.Widget; using Android.OS; using Android.Views; using Android.Runtime; using System; using Android.Content; using SQLite; public class Person { [PrimaryKey] public int ID { get; set; } public string Gender { get; set; } public int Weight { get; set; } ...
apache-2.0
C#
0246493e96ba0e08e4f29d9d081fda00594768e6
Add newfile Droid/Properties/AssemblyInfo.cs
ArcanaMagus/userAuth.cpl,ArcanaMagus/userAuth.cpl,ArcanaMagus/userAuth.cpl,ArcanaMagus/userAuth.cpl
Droid/Properties/AssemblyInfo.cs
Droid/Properties/AssemblyInfo.cs
using System.Reflection; using System.Runtime.CompilerServices; using Android.App; // Information about this assembly is defined by the following attributes. // Change them to the values specific to your project. [assembly: AssemblyTitle ("userAuth.cpl.Droid")] [assembly: AssemblyDescription ("")] [assembly: Assembl...
mit
C#
28315a3911096082021fad75f289a3608539f70b
Add Q206
txchen/localleet
csharp/Q206_ReverseLinkedList.cs
csharp/Q206_ReverseLinkedList.cs
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using Xunit; // Reverse a singly linked list. // https://leetcode.com/problems/reverse-linked-list/ namespace LocalLeet { public class Q206 { public ListNode<int> ReverseList(ListNode<int> h...
mit
C#
e779bb5961bea4afd70fe7a67640bf3faf1cfa4b
Add AssertEx class
olegoga/wcflib
WcfClient.Test/TestFramework/AssertEx.cs
WcfClient.Test/TestFramework/AssertEx.cs
using System; using System.Threading.Tasks; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Reeb.Wcf.Test.TestFramework { public static class AssertEx { public static async Task Throws<TException>(Func<Task> func) where TException : Exception { try { ...
mit
C#
8eb24dbfedfd3b181729aee61b5a024c7768de4b
add fnv 32 hash algorithm. it's a simple and fast algorithm
yanggujun/commonsfornet,yanggujun/commonsfornet
src/Commons.Collections/Common/FnvHash32.cs
src/Commons.Collections/Common/FnvHash32.cs
// Copyright CommonsForNET 2014. // Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with // this work for additional information regarding copyright ownership. // The ASF licenses this file to You under the Apache License, Version 2....
apache-2.0
C#
d87311c53a455e5052522698be3ef1c3e19bc552
Create Form1.Designer.cs
codedecay/multivalue-lab,codedecay/multivalue-lab,nkesic/multivalue-lab,nkesic/multivalue-lab,RocketSoftware/multivalue-lab,nkesic/multivalue-lab,codedecay/multivalue-lab,RocketSoftware/multivalue-lab,nkesic/multivalue-lab,RocketSoftware/multivalue-lab,codedecay/multivalue-lab,nkesic/multivalue-lab,nkesic/multivalue-la...
U2-Toolkit/DataAdapter/Form1.Designer.cs
U2-Toolkit/DataAdapter/Form1.Designer.cs
namespace DataAdapter { partial class Form1 { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <param n...
mit
C#
b81f8f4595e10a693cdccd08f8be13d77187ff33
include resource instantiation
jbruening/Nent
src/Nent/Resources.cs
src/Nent/Resources.cs
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; using System.Yaml; using System.Yaml.Serialization; using SlimMath; namespace Nent { /// <summary> /// class for loading prefabs /// </summary> ...
mit
C#
11fb6048fabc1cdb2654e66576d751c7a9a46572
Add RuleDescription class.
JasonBock/csla,jonnybee/csla,jonnybee/csla,rockfordlhotka/csla,MarimerLLC/csla,BrettJaner/csla,JasonBock/csla,MarimerLLC/csla,rockfordlhotka/csla,jonnybee/csla,ronnymgm/csla-light,BrettJaner/csla,JasonBock/csla,BrettJaner/csla,ronnymgm/csla-light,MarimerLLC/csla,rockfordlhotka/csla,ronnymgm/csla-light
cslacs/Csla/Validation/RuleDescription.cs
cslacs/Csla/Validation/RuleDescription.cs
using System; using System.Collections.Generic; using System.Text; namespace Csla.Validation { /// <summary> /// Parses a rule:// URI to provide /// easy access to the parts of the URI. /// </summary> public class RuleDescription { private string _scheme; private string _methodName; ...
mit
C#
2a21bb788299d78734e43810923e5efa87fa86e3
Split some methods off into a private class.
baconator/WebsocketGamepad,baconator/WebsocketGamepad
WebsocketGamepad/PhoneHub.Private.cs
WebsocketGamepad/PhoneHub.Private.cs
using Microsoft.AspNet.SignalR; using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; using VJoyWrapper; namespace WebsocketGamepad { public partial class PhoneHub : Hub { private...
mit
C#
ab1b3158b9de0b3f6cf04c3547d9595f5cf4e590
Add producer sample for donet
StyleTang/incubator-rocketmq-externals,StyleTang/incubator-rocketmq-externals,StyleTang/incubator-rocketmq-externals,StyleTang/incubator-rocketmq-externals,StyleTang/incubator-rocketmq-externals,StyleTang/incubator-rocketmq-externals,StyleTang/incubator-rocketmq-externals,StyleTang/incubator-rocketmq-externals,StyleTan...
rocketmq-client-donet/example/producer.cs
rocketmq-client-donet/example/producer.cs
using System; using System.Threading; using RocketMQ.Interop; namespace rocketmq_producer_test { class MainClass { public static void Main(string[] args) { Console.WriteLine("Start create producer."); var producer = ProducerWrap.CreateProducer("xxx"); if (pr...
apache-2.0
C#
1b8378b87f8d1b59ae52d225222986414154c486
add missing file
pchalamet/full-build,pchalamet/full-build,full-build/full-build,full-build/full-build
src/FullBuild.Test/TemporaryDirectory.cs
src/FullBuild.Test/TemporaryDirectory.cs
// Copyright (c) 2014, Pierre Chalamet // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // * Redistributions of source code must retain the above copyright // notice, this list of co...
apache-2.0
C#
d0d2306db6eed066ed79a700427bbf90be3a4dd6
Add KeyAgreementAlgorithm class
ektrah/nsec
src/Cryptography/KeyAgreementAlgorithm.cs
src/Cryptography/KeyAgreementAlgorithm.cs
using System; using System.Diagnostics; namespace NSec.Cryptography { public abstract class KeyAgreementAlgorithm : Algorithm { private readonly int _privateKeySize; private readonly int _publicKeySize; private readonly int _sharedSecretSize; internal KeyAgreementAlgorithm( ...
mit
C#
efaf07dbc8db673737ab14d80f37f8e0fcf18f82
Add benchmark coverage of mod retrieval
NeoAdonis/osu,peppy/osu,smoogipooo/osu,ppy/osu,peppy/osu-new,NeoAdonis/osu,ppy/osu,smoogipoo/osu,smoogipoo/osu,NeoAdonis/osu,peppy/osu,smoogipoo/osu,ppy/osu,peppy/osu
osu.Game.Benchmarks/BenchmarkRuleset.cs
osu.Game.Benchmarks/BenchmarkRuleset.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 BenchmarkDotNet.Attributes; using osu.Game.Online.API; using osu.Game.Rulesets.Osu; namespace osu.Game.Benchmarks { public class BenchmarkRuleset : BenchmarkTe...
mit
C#
49648fcafc36eb6de33219de7e52cdf4b3c10486
add emptyifnull
m5knt/ThunderEgg.Extensions
src/Collections/Empty.cs
src/Collections/Empty.cs
/** * @file * @brief Repeat操作 */ using System; using System.Linq; using System.Collections.Generic; namespace ThunderEgg.Extentions { public static partial class A { /// <summary>nullなら空を返す</summary> public static IEnumerable<T> EmptyIfNull<T>(this IEnumerable<T> @this) { return ...
mit
C#
8f66684ae200b4f1e1343d8ce4c0ea74dfbeaff2
Create MenuInicial.cs
MesoamericaAppsHackatonPanama2013/SimulacionDesastres
MenuInicial.cs
MenuInicial.cs
using UnityEngine; using System.Collections; public class MenuInicial : MonoBehaviour { public GUISkin MyguiStyle; // Use this for initialization void Start () { } // Update is called once per frame void Update () { } void OnGUI(){ GUI.skin = MyguiStyle; GUI.Box(new Rect(Screen.width/2...
mit
C#
190f031b59fc65e1d0225db807ca14c7d74753fb
Add ApiMessageFilterAttribute.cs
qqbuby/Alyio.AspNetCore.ApiMessages
src/Alyio.AspNetCore.ApiMessages/Filters/ApiMessageFilterAttribute.cs
src/Alyio.AspNetCore.ApiMessages/Filters/ApiMessageFilterAttribute.cs
using System; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc.Filters; namespace Alyio.AspNetCore.ApiMessages.Filters { /// <summary> /// Represents an exception filter to handler <see cref="IApiMessage"/> message and writes <see cref="IApiMessage.ApiMessage"/> to...
mit
C#
3989bb464afccec78f46665a37a2dbd138a33115
Add Entity Framework job storage tests
sergezhigunov/Hangfire.EntityFramework
test/Hangfire.EntityFramework.Tests/EntityFrameworkJobStorageTests.cs
test/Hangfire.EntityFramework.Tests/EntityFrameworkJobStorageTests.cs
using System; using Hangfire.EntityFramework.Utils; using Xunit; namespace Hangfire.EntityFramework { public class EntityFrameworkJobStorageTests { private EntityFrameworkJobStorageOptions Options; public EntityFrameworkJobStorageTests() { Options = new EntityFrameworkJobS...
mit
C#
cdcca008ebbfee4b725c4133a56112f1fffa6e72
Add platform specified root exception class
yimlu/Xemi
Xemi.Core/XemiException.cs
Xemi.Core/XemiException.cs
using System; using System.Runtime.Serialization; namespace Xemi.Core { public class XemiException:Exception { public XemiException() { } public XemiException(string message) : base(message) { } public XemiException(string messageFormat, params o...
mit
C#
be944e184cafc087679bcdc94a34ed070bf09c39
add list voice message example
messagebird/csharp-rest-api
Examples/VoiceMessage/ListVoiceMessages.cs
Examples/VoiceMessage/ListVoiceMessages.cs
using System; using MessageBird; using MessageBird.Exceptions; using MessageBird.Net.ProxyConfigurationInjector; using MessageBird.Objects; namespace Examples.VoiceMessage { class ListVoiceMessages { const string YourAccessKey = "YOUR_ACCESS_KEY"; // your access key here. static void Main(stri...
isc
C#
87c8c5959f2adba4593e8f71f94c5c74088227df
Add a integration test to verify we can retrieve the current profile from the ProfileClient
Viincenttt/MollieApi,Viincenttt/MollieApi
Mollie.Tests.Integration/Api/ProfileTests.cs
Mollie.Tests.Integration/Api/ProfileTests.cs
using Mollie.Api.Models.Profile.Response; using Mollie.Tests.Integration.Framework; using NUnit.Framework; using System.Threading.Tasks; namespace Mollie.Tests.Integration.Api { [TestFixture] public class ProfileTests : BaseMollieApiTestClass { [Test] public async Task GetCurrentProfileAsync_R...
mit
C#
5e8ba36cdd510d1bede4ca883b12fb505c642ca3
Remove translation feature. valdisiljuconoks/LocalizationProvider#144
valdisiljuconoks/LocalizationProvider
src/DbLocalizationProvider/Commands/RemoveTranslation.cs
src/DbLocalizationProvider/Commands/RemoveTranslation.cs
// Copyright (c) 2019 Valdis Iljuconoks. // 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, merge, pu...
apache-2.0
C#
390f4f793f38f270cebc3cbf8d1a91f8549ed3b1
Add custom arithmetic
BrandonLWhite/UnitsNet,anjdreas/UnitsNet,BrandonLWhite/UnitsNet,anjdreas/UnitsNet
UnitsNet/CustomCode/UnitClasses/Temperature.extra.cs
UnitsNet/CustomCode/UnitClasses/Temperature.extra.cs
// Copyright © 2007 Andreas Gullberg Larsen (anjdreas@gmail.com). // https://github.com/anjdreas/UnitsNet // // 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, includin...
mit
C#
1d7748aed5b2d91c1ea7f38d5804fbe82eb58fe3
Add a convenience method for converting transform positions to gui positions
mikelovesrobots/daft-pong,mikelovesrobots/daft-pong
app/Assets/Scripts/TransformToGuiFinder.cs
app/Assets/Scripts/TransformToGuiFinder.cs
using UnityEngine; using System.Collections; public class TransformToGuiFinder { public static Vector2 Find(Transform target) { var position = Camera.main.WorldToScreenPoint(target.position); position.y = Screen.height - position.y; return position; } }
mit
C#
c9be88a09ee0fbfefcd1354dfb5782b88e7b2804
Create Configuration.cs
rcvjet15/rent-a-car,rcvjet15/rent-a-car,rcvjet15/rent-a-car
Migrations/UserDbContext/Configuration.cs
Migrations/UserDbContext/Configuration.cs
namespace Migrations.UserDbContext { using RentACar.App_Helpers; using RentACar.Models; using System; using System.Collections.Generic; using System.Data.Entity.Migrations; using System.Linq; internal sealed class Configuration : DbMigrationsConfiguration<RentACar.Models.UserDbContext> ...
mit
C#
4599c6a6d09fc02bf45fd05870ab26f59ea3b543
Create FiniteStateMachine.cs
burnsba/scratch,burnsba/scratch,burnsba/scratch
FiniteStateMachine/FiniteStateMachine.cs
FiniteStateMachine/FiniteStateMachine.cs
public class StateTransitionCriteria { public Func<object, bool> Predicate { get; set; } public State NextState { get; set; } } public class State { private List<StateTransitionCriteria> _acceptCriteria = new List<StateTransitionCriteria>(); public bool OptionDefaultSelfNext { get; set; } publ...
apache-2.0
C#
82b419d865fb47d0807947a80d1cc00bfd80ea0c
Create Terrain.cs
PokemonUnity/PokemonUnity
PokemonUnity.Shared/Overworld/Terrain.cs
PokemonUnity.Shared/Overworld/Terrain.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace PokemonUnity.Overworld { public static class Terrain { public static bool isSurfable (Terrains tag) { return isWater(tag); } public static bool isWater (Terrains tag) { return tag == Terrains.Water || ...
bsd-3-clause
C#