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 |
|---|---|---|---|---|---|---|---|---|
80245075fedc01390f968f626ec0b1d91bf463db | Create Product.cs | daniela1991/hack4europecontest | Product.cs | Product.cs | using System.Collections.Generic;
namespace Cdiscount.OpenApi.ProxyClient.Contract.Common
{
/// <summary>
/// Product details
/// </summary>
public class Product
{
/// <summary>
/// Product identifier
/// </summary>
public string Id { get; set; }
/// <summar... | mit | C# | |
ae2461d54c4b8014430f6d5250728dca1ff849dd | Create ConsoleUtils.cs | Sergey-Terekhin/ConsoleHints | ConsoleUtils.cs | ConsoleUtils.cs | using System;
namespace ConsoleHints
{
internal static class ConsoleUtils
{
public static void WriteLine(string line, ConsoleColor color)
{
var currentColor = Console.ForegroundColor;
Console.ForegroundColor = color;
Console.WriteLine(line);
Conso... | mit | C# | |
88099cc1589833b7948a10a0f4be5e2c809e94f4 | Document BackgroundDependencyLoader | peppy/osu-framework,Tom94/osu-framework,DrabWeb/osu-framework,ppy/osu-framework,EVAST9919/osu-framework,paparony03/osu-framework,Tom94/osu-framework,EVAST9919/osu-framework,DrabWeb/osu-framework,smoogipooo/osu-framework,ppy/osu-framework,Nabile-Rahmani/osu-framework,ZLima12/osu-framework,default0/osu-framework,paparony... | osu.Framework/Allocation/BackgroundDependencyLoader.cs | osu.Framework/Allocation/BackgroundDependencyLoader.cs | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
using System;
namespace osu.Framework.Allocation
{
/// <summary>
/// Marks a method as the loader-Method of a <see cref="osu.Framework.Graphi... | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
using System;
namespace osu.Framework.Allocation
{
[AttributeUsage(AttributeTargets.Method)]
public class BackgroundDependencyLoader : Attrib... | mit | C# |
500f079326a6f83c274e4cee999e6d68d9ea5dc2 | Add discovery tests | oocx/acme.net | src/Oocx.ACME.Tests/StagingTests.cs | src/Oocx.ACME.Tests/StagingTests.cs | using System;
using System.Net.Http;
using System.Security.Cryptography;
using System.Threading.Tasks;
using Oocx.ACME.Client;
using Xunit;
namespace Oocx.ACME.Tests
{
public class StagingTests
{
[Fact]
public async Task Can_discovery_urls()
{
var key = RSA.Create(2048);
... | mit | C# | |
946e1d8f78deef1c6022a373c00e41009c3264e0 | Rename a unit test | Rolstenhouse/sarif-sdk,kschecht/sarif-sdk,Rolstenhouse/sarif-sdk,kschecht/sarif-sdk,Rolstenhouse/sarif-sdk,Rolstenhouse/sarif-sdk,kschecht/sarif-sdk,kschecht/sarif-sdk,kschecht/sarif-sdk,Rolstenhouse/sarif-sdk,Rolstenhouse/sarif-sdk,kschecht/sarif-sdk,Rolstenhouse/sarif-sdk,kschecht/sarif-sdk | src/Sarif.UnitTests/Readers/ResultDiffingVisitorTests.cs | src/Sarif.UnitTests/Readers/ResultDiffingVisitorTests.cs | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Microsoft.CodeAnalysis.Sarif.Readers
{
[TestCl... | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Microsoft.CodeAnalysis.Sarif.Readers
{
[TestCl... | mit | C# |
1b824f0444e19bd3138201251c9e361692191cd1 | Add TextureRegion test | ppy/osu-framework,ppy/osu-framework,peppy/osu-framework,peppy/osu-framework,ppy/osu-framework,peppy/osu-framework | osu.Framework.Tests/Graphics/TextureRegionTest.cs | osu.Framework.Tests/Graphics/TextureRegionTest.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.Graphics.Primitives;
using osu.Framework.Graphics.Rendering.Dummy;
namespace osu.Framework.Tests.Graphics
{
[TestFixture]
... | mit | C# | |
b377029c3128e490f2dc9021f2fd90a046742335 | introduce ScheduledCommand<TAggregate> to replace CommandScheduled<TAggregate> event | commonsensesoftware/Its.Cqrs,commonsensesoftware/Its.Cqrs,commonsensesoftware/Its.Cqrs | Domain/Scheduling/ScheduledCommand{T}.cs | Domain/Scheduling/ScheduledCommand{T}.cs | using System;
using System.Diagnostics;
using Microsoft.Its.Domain.Serialization;
using Microsoft.Its.Recipes;
using Newtonsoft.Json;
namespace Microsoft.Its.Domain
{
/// <summary>
/// An event that indicates that a command was scheduled.
/// </summary>
/// <typeparam name="TAggregate">The t... | mit | C# | |
a3d50e88ca7e5fd3e6f960ef468f57ede7506568 | Create basic reflection helper. | dingjimmy/primer | Primer/ReflectionHelpers.cs | Primer/ReflectionHelpers.cs | using System;
using System.Linq.Expressions;
namespace Primer
{
public static class Reflection
{
public static string GetPropertyName<T>(Expression<Func<T>> propertyToInspect)
{
return ((MemberExpression)propertyToInspect.Body).Member.Name;
}
public static string... | mit | C# | |
b1f183c86a82388f3b02a1292de95524cba7f564 | Create ExtendedColor.cs | theandrew61/Starman | ExtendedColor.cs | ExtendedColor.cs | using System;
using System.Collections.Generic;
using System.Drawing;
using System.Text;
// source: http://geekymonkey.com/Programming/CSharp/RGB2HSL_HSL2RGB.htm
namespace Starman {
class ExtendedColor {
public struct ColorRGB {
public byte R;
public byte G;
public by... | mit | C# | |
afc475f2b90ff20a832cc2476af2ee1779382d2d | Create StreamExtensions.cs | strvmarv/Extensions | StreamExtensions.cs | StreamExtensions.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace Extensions
{
public static class StreamExtensions
{
public static byte[] GenerateHash(this Stream stream)
{
return stream.ToByteArray().GenerateHash();
}
... | mit | C# | |
067eacf194b4b88a611016c096394a0151d1c5a3 | Create Problem69.cs | fireheadmx/ProjectEuler,fireheadmx/ProjectEuler | Problems/Problem69.cs | Problems/Problem69.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ProjectEuler.Problems
{
class Problem69
{
int upper = 1000000;
Sieve s;
int[] totients;
public Problem69()
{
DateTime start = DateTime.Now;
s = new Si... | mit | C# | |
94804bf0c0c20f96c932cb3add9ae16282062de7 | disable xunit's parallelization | Construktion/Construktion,Construktion/Construktion | Construktion.Tests/DisableParallelizedTests.cs | Construktion.Tests/DisableParallelizedTests.cs | using Xunit;
[assembly: CollectionBehavior(DisableTestParallelization = true)]
| mit | C# | |
5f4724c0eb352dcdda7686fbdac2364e0e4724ae | Add Q279 | txchen/csharp-leet,txchen/csharp-leet | solutions/Q279.cs | solutions/Q279.cs | public class Solution {
public int NumSquares(int n)
{
int[] dp = new int[n+1];
for (int i=1; i<=n; i++)
{
dp[i] = i;
for (int j = 1; j * j <= i; j++)
{
dp[i] = Math.Min(dp[i - j * j] + 1, dp[i]);
}
}
return ... | mit | C# | |
8b230f1e4bd44d93f9d6351eae2ab290cba8d123 | check in to be safe | bordoley/FacebookPagesApp | FacebookPagesApp/NewPostModel.cs | FacebookPagesApp/NewPostModel.cs | using System;
using System.Windows.Input;
using ReactiveUI;
using RxApp;
using System.Reactive;
using System.Reactive.Linq;
namespace FacebookPagesApp
{
public interface INewPostViewModel : INavigableViewModel, IServiceViewModel
{
bool ShouldPublishPost { set; }
DateTime PublishDate { get; set... | mit | C# | |
227126adb784ed70739f42aec0072bdd8f06de9a | Add MemoryWatchdog class missing from git master a1e9964 | RavenB/opensim,ft-/opensim-optimizations-wip,M-O-S-E-S/opensim,RavenB/opensim,TomDataworks/opensim,ft-/opensim-optimizations-wip-tests,BogusCurry/arribasim-dev,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,ft-/opensim-optimizations-wip,M-O-S-E-S/opensim,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,bravelittlescientist/opensim-performan... | OpenSim/Framework/MemoryWatchdog.cs | OpenSim/Framework/MemoryWatchdog.cs | /*
* Copyright (c) Contributors, http://opensimulator.org/
* See CONTRIBUTORS.TXT for a full list of copyright holders.
*
* 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 r... | bsd-3-clause | C# | |
0c4b134082c0c69de782e572e503dcfbff11b37c | Create second.cs | sargeant45/firstprogram,soops/firstprogram,soops/firstprogram,soops/firstprogram,sargeant45/firstprogram,sargeant45/firstprogram,sargeant45/firstprogram,soops/firstprogram,soops/firstprogram,sargeant45/firstprogram | csharp/second.cs | csharp/second.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
// Added references
// System.Web.Dll
// Added namespaces
using System.Web;
using System.Threading;
namespace TestApp2Demo
{
class Program
{
static void Main(string[] args)
{
... | unlicense | C# | |
ea76dd6a9e1adde6941005ffb6114bcceced2a52 | Add test scene for hitcircles and combo changes | NeoAdonis/osu,ppy/osu,johnneijzen/osu,ppy/osu,UselessToucan/osu,NeoAdonis/osu,johnneijzen/osu,EVAST9919/osu,smoogipoo/osu,peppy/osu,NeoAdonis/osu,peppy/osu,peppy/osu-new,2yangk23/osu,EVAST9919/osu,smoogipooo/osu,ppy/osu,ZLima12/osu,2yangk23/osu,peppy/osu,ZLima12/osu,smoogipoo/osu,smoogipoo/osu,UselessToucan/osu,Useless... | osu.Game.Rulesets.Osu.Tests/TestSceneHitCircleComboChange.cs | osu.Game.Rulesets.Osu.Tests/TestSceneHitCircleComboChange.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Bindables;
using osu.Game.Rulesets.Osu.Objects;
namespace osu.Game.Rulesets.Osu.Tests
{
public class TestSceneHitCircleComboChange : TestSceneHit... | mit | C# | |
54ffb8dc4e61cce3e37cec371a7067e938074062 | Add basic multiplayer gameplay test coverage | ppy/osu,NeoAdonis/osu,UselessToucan/osu,peppy/osu-new,smoogipoo/osu,smoogipoo/osu,smoogipooo/osu,UselessToucan/osu,ppy/osu,NeoAdonis/osu,peppy/osu,UselessToucan/osu,smoogipoo/osu,peppy/osu,peppy/osu,ppy/osu,NeoAdonis/osu | osu.Game.Tests/Visual/Multiplayer/TestMultiplayerGameplay.cs | osu.Game.Tests/Visual/Multiplayer/TestMultiplayerGameplay.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.Game.Screens.OnlinePlay.Multiplayer;
namespace osu.Game.Tests.Visual.Multiplayer
{
public class TestMultiplayerGa... | mit | C# | |
cb769bbbe390631a1a0e3ffb4dad4aa2fba95e03 | Create v2nForkCheck.cs | imba-tjd/CSharp-Code-Repository | 单个文件的程序/v2nForkCheck.cs | 单个文件的程序/v2nForkCheck.cs | // 用来检查v2rayN的所有Forks是否有备份;只会检查默认分支
using System;
using System.Linq;
using System.Net.Http;
using System.Text.RegularExpressions;
using System.IO;
using System.Collections.Generic;
using System.Net;
class Test
{
static List<string> GetForks(HttpClient client)
{
const string network = "https://github.co... | mit | C# | |
7636c533eb019ddf0f9b5b351160872ad816264b | Add typed HttpRequestException for use when response body and error response body do not share a common base type (or are the same). | tintoy/HTTPlease,tintoy/HTTPlease | src/HTTPlease.Core/HttpRequestException.cs | src/HTTPlease.Core/HttpRequestException.cs | using System.Net;
using System.Net.Http;
namespace HTTPlease
{
/// <summary>
/// Exception thrown when an error response is received while making an HTTP request.
/// </summary>
/// <remarks>
/// TODO: Throw this from response.ReadAsAsync<TResponse, TErrorResponse>.
/// </remarks>
public class HttpReque... | mit | C# | |
a7dbb1b4fedb68290d03201e5b9089d1b652c669 | add EnumConverter.cs | NDark/ndinfrastructure,NDark/ndinfrastructure | Unity/EnumConverter/EnumConverter.cs | Unity/EnumConverter/EnumConverter.cs | /*
@file EnumConverter.cs
@author NDark
@date 20170220 file started.
*/
using UnityEngine;
public class EnumIntConverter<S>
{
protected System.Collections.Generic.Dictionary<int , S > m_Converter
= new System.Collections.Generic.Dictionary<int , S > () ;
public virtual void DoInitialize()
{
m_IsInitialized =... | mit | C# | |
3a8d368e56288b927e55c7cc162a18b4f01edb65 | Simplify null checking. | predictive-technology-laboratory/sensus,predictive-technology-laboratory/sensus,haunthy/sensus,haunthy/sensus,jtb8vm/sensus,predictive-technology-laboratory/sensus,haunthy/sensus,jtb8vm/sensus,predictive-technology-laboratory/sensus,wesbonelli/sensus,jtb8vm/sensus,predictive-technology-laboratory/sensus,jtb8vm/sensus,w... | SensusService/Probes/Apps/RunningAppsDatum.cs | SensusService/Probes/Apps/RunningAppsDatum.cs | // Copyright 2014 The Rector & Visitors of the University of Virginia
//
// 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 req... | // Copyright 2014 The Rector & Visitors of the University of Virginia
//
// 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 req... | apache-2.0 | C# |
035c3707e580ade534b312e86959a45efced0115 | Rename template variable. | inordertotest/CppSharp,mono/CppSharp,ddobrev/CppSharp,inordertotest/CppSharp,ktopouzi/CppSharp,u255436/CppSharp,genuinelucifer/CppSharp,zillemarco/CppSharp,ktopouzi/CppSharp,mono/CppSharp,inordertotest/CppSharp,ddobrev/CppSharp,inordertotest/CppSharp,mohtamohit/CppSharp,mono/CppSharp,genuinelucifer/CppSharp,mohtamohit/... | src/Generator/Generators/CSharp/CSharpGenerator.cs | src/Generator/Generators/CSharp/CSharpGenerator.cs | using System.Collections.Generic;
using CppSharp.AST;
using CppSharp.Passes;
namespace CppSharp.Generators.CSharp
{
public class CSharpGenerator : Generator
{
private readonly CSharpTypePrinter typePrinter;
private readonly CSharpExpressionPrinter expressionPrinter;
public CSharpGenera... | using System.Collections.Generic;
using CppSharp.AST;
using CppSharp.Passes;
namespace CppSharp.Generators.CSharp
{
public class CSharpGenerator : Generator
{
private readonly CSharpTypePrinter typePrinter;
private readonly CSharpExpressionPrinter expressionPrinter;
public CSharpGenera... | mit | C# |
d0bc1116ed299e4e64874bdc5607e61c96ff1e50 | Add Storage function unit test | GoogleCloudPlatform/dotnet-docs-samples,GoogleCloudPlatform/dotnet-docs-samples,GoogleCloudPlatform/dotnet-docs-samples,GoogleCloudPlatform/dotnet-docs-samples | functions/helloworld/HelloWorld.Tests/HelloGcsUnitTest.cs | functions/helloworld/HelloWorld.Tests/HelloGcsUnitTest.cs | // Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | apache-2.0 | C# | |
3f5b97dd847e1f337b00bf417a062ec3c9fe4bea | Add GamePlayer model | Chess-Variants-Training/Chess-Variants-Training,Chess-Variants-Training/Chess-Variants-Training,Chess-Variants-Training/Chess-Variants-Training | src/ChessVariantsTraining/Models/Variant960/GamePlayer.cs | src/ChessVariantsTraining/Models/Variant960/GamePlayer.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace ChessVariantsTraining.Models.Variant960
{
public class GamePlayer : IEquatable<GamePlayer>
{
public bool Registered
{
get;
private set;
}
int _use... | agpl-3.0 | C# | |
9c117bbc7aa30af8f562b0ded0c40b415bb8c44a | Create MemoryEncryption.cs | vunvulear/Stuff,vunvulear/Stuff,vunvulear/Stuff | MemoryEncryption/MemoryEncryption.cs | MemoryEncryption/MemoryEncryption.cs | using System;
using System.IO;
using System.Text;
using System.Security.Cryptography;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using static System.Text.Encoding;
namespace VunvuleaR.MemoryEncryption
{
/// <summary>
/// Extensin methods for string padding that can be used for memory encryption.
/... | apache-2.0 | C# | |
55f8ba71853d23a4cfeed9db1163d8c9639d78a2 | Create MoveRocket.cs | highnet/Java-101,highnet/Java-101 | Unity/RocketGame/MoveRocket.cs | Unity/RocketGame/MoveRocket.cs | mit | C# | ||
6c7c6dd94d9c7e656ac8a55d865c29f372ace96e | Add onara.cs | hakatashi/onara,hakatashi/onara,hakatashi/onara,hakatashi/onara,hakatashi/onara,hakatashi/onara,hakatashi/onara,hakatashi/onara,hakatashi/onara,hakatashi/onara,hakatashi/onara,hakatashi/onara | onara.cs | onara.cs | class onara {
static void Main() {
int orz;
orz=3;
}
}
| mit | C# | |
8442395cad4192ecd34cf2b319ce64a59c465def | Add test of BLoomPackInstaller | andrew-polk/BloomDesktop,JohnThomson/BloomDesktop,StephenMcConnel/BloomDesktop,gmartin7/myBloomFork,gmartin7/myBloomFork,gmartin7/myBloomFork,andrew-polk/BloomDesktop,gmartin7/myBloomFork,StephenMcConnel/BloomDesktop,gmartin7/myBloomFork,andrew-polk/BloomDesktop,JohnThomson/BloomDesktop,StephenMcConnel/BloomDesktop,Blo... | src/BloomTests/Collection/BloomPackInstallerTests.cs | src/BloomTests/Collection/BloomPackInstallerTests.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Bloom.Collection.BloomPack;
using NUnit.Framework;
namespace BloomTests.Collection
{
[TestFixture]
public class BloomPackInstallerTests
{
[Test, Ignore("By Hand")]
public void RunIt()
{
using (var dlg = new BloomPa... | mit | C# | |
dd17bae6b7b4dfecdc72992e1af78e8869414574 | Create NotificationsManager.cs | scmcom/unitycode | NotificationsManager.cs | NotificationsManager.cs | //EVENTS MANAGER CLASS
// for receiving notifications and notifying listeners
//==================================================================
using UnityEngine;
using System.Collections;
using System.Collectins.Generic;
public class NotificationsManager : MonoBehaviour
{
//======================================... | mit | C# | |
a6d09b0bb0d4f05533baf2b658b22076e4791c11 | Add labelled enum dropdown variant | NeoAdonis/osu,NeoAdonis/osu,NeoAdonis/osu,smoogipooo/osu,smoogipoo/osu,peppy/osu,peppy/osu-new,peppy/osu,ppy/osu,ppy/osu,smoogipoo/osu,peppy/osu,ppy/osu,smoogipoo/osu | osu.Game/Graphics/UserInterfaceV2/LabelledEnumDropdown.cs | osu.Game/Graphics/UserInterfaceV2/LabelledEnumDropdown.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 osu.Game.Graphics.UserInterface;
namespace osu.Game.Graphics.UserInterfaceV2
{
public class LabelledEnumDropdown<TEnum> : LabelledDropdown<TEnum>... | mit | C# | |
c69dd5aff017e4aa9e2e70b1a439fe5e97bcc1eb | Create Easing.cs | keith-hall/reactive-animation | Easing.cs | Easing.cs | using System;
namespace ReactiveAnimation
{
public static class Easing
{
// Adapted from source : http://www.robertpenner.com/easing/
public static float Ease(double linearStep, float acceleration, EasingType type)
{
float easedStep = acceleration > 0 ? EaseIn(linearStep, type) :
acceleration < 0 ... | apache-2.0 | C# | |
90d4bd2ff3ca57c464c60b90ae4126148c67cf23 | add ImageCheckResult also as texts | volkanceylan/Serenity,volkanceylan/Serenity,volkanceylan/Serenity,volkanceylan/Serenity,volkanceylan/Serenity | src/Serenity.Net.Web/Texts/Texts.Enums.ImageCheckResult.cs | src/Serenity.Net.Web/Texts/Texts.Enums.ImageCheckResult.cs |
namespace Serenity.Web
{
internal static partial class Texts
{
public static partial class Enums
{
public static class ImageCheckResult
{
public static LocalText UnsupportedFormat = "Uploaded image format is not supported!";
pub... | mit | C# | |
b12ccd633900478c83ed2b6aa5b48e591a6a0b27 | test for fingerprint on card token | stripe/stripe-dotnet,richardlawley/stripe.net | src/Stripe.net.Tests.xUnit/tokens/creating_a_card_token.cs | src/Stripe.net.Tests.xUnit/tokens/creating_a_card_token.cs | using FluentAssertions;
using Stripe.Tests.xUnit;
using Xunit;
namespace Stripe.net.Tests.xUnit
{
public class creating_a_card_token : test
{
private StripeToken Token { get; set; }
public creating_a_card_token()
{
Token = new StripeTokenService(_stripe_api_key).CreateAsyn... | apache-2.0 | C# | |
918782804db6d87d6e7f14a8ffed0336ada81e57 | Add AutocompleteRequest with basic constructors. | jcheng31/WundergroundAutocomplete.NET | WundergroundClient/AutocompleteRequest.cs | WundergroundClient/AutocompleteRequest.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WundergroundClient
{
enum ResultFilter
{
CitiesOnly,
HurricanesOnly,
CitiesAndHurricanes
}
class AutocompleteRequest
{
private String _sear... | mit | C# | |
360a87a0e8b2668ae1d89e1d317e96f58ebac727 | Add SKColorExtensions | pauldendulk/Mapsui,charlenni/Mapsui,charlenni/Mapsui | Mapsui.Rendering.Skia/ExtensionMethods/SKColorExtensions.cs | Mapsui.Rendering.Skia/ExtensionMethods/SKColorExtensions.cs | using SkiaSharp;
namespace Mapsui.Rendering.Skia
{
public static class SKColorExtensions
{
public static Styles.Color ToMapsui(this SKColor color)
{
return new Styles.Color(color.Red, color.Green, color.Blue, color.Alpha);
}
}
}
| mit | C# | |
26d99d198bcbb421ccdc14751718c274d9d81661 | Add MethodBinder tests | AlexCatarino/pythonnet,AlexCatarino/pythonnet,AlexCatarino/pythonnet,AlexCatarino/pythonnet | src/embed_tests/TestMethodBinder.cs | src/embed_tests/TestMethodBinder.cs | using System;
using NUnit.Framework;
using Python.Runtime;
namespace Python.EmbeddingTest
{
public class TestMethodBinder
{
private static dynamic module;
private static string testModule = @"
from clr import AddReference
AddReference(""System"")
AddReference(""Python.EmbeddingTest"")
from Py... | mit | C# | |
4b97e3f7f004c35b518db3a95d74c90f8b31daac | add AssemblyInfo | umutozel/DynamicQueryable | src/DynamicQueryable/Properties/AssemblyInfo.cs | src/DynamicQueryable/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("DynamicQueryable - Construct Linq queries ... | mit | C# | |
90a9961a69655de48b05ecef8de33146c09c564d | Add visual test case for report button | peppy/osu,ppy/osu,peppy/osu,ppy/osu,ppy/osu,peppy/osu | osu.Game.Tests/Visual/Online/TestSceneCommentReportButton.cs | osu.Game.Tests/Visual/Online/TestSceneCommentReportButton.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Extensions;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Cursor;
using osu.Framework.Testing;
using osu.Game.Online.API;
using osu.Game.... | mit | C# | |
89bb16698390fd81ae752599425ce86452f4728d | Delete some obselete conditional compilation flags | mono/tao,OpenRA/tao,mono/tao,OpenRA/tao | src/Tao.Sdl/AssemblyInfo.cs | src/Tao.Sdl/AssemblyInfo.cs | #region License
/*
MIT License
Copyright 2003-2006 Tao Framework Team
http://www.taoframework.com
All rights reserved.
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,... | #region License
/*
MIT License
Copyright 2003-2006 Tao Framework Team
http://www.taoframework.com
All rights reserved.
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,... | mit | C# |
c916c555dd9b757548067ebfa4fac9c6787f5b5b | Copy ConnectionInfo into client project. | sharpjs/PSql,sharpjs/PSql | PSql.Client/ConnectionInfo.cs | PSql.Client/ConnectionInfo.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# | |
e19d9db6ff184a0208bf35267efd5ab9a5144af2 | Create DrawLine2D.cs | UnityCommunity/UnityLibrary | Assets/Scripts/2D/Drawing/DrawLine2D.cs | Assets/Scripts/2D/Drawing/DrawLine2D.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class DrawLine2D : MonoBehaviour
{
[SerializeField]
protected LineRenderer m_LineRenderer;
[SerializeField]
protected bool m_AddCollider = false;
[SerializeField]
protected EdgeCollider2D m_EdgeCollider2D;
protected List<Vect... | mit | C# | |
21f5fb0b5c08bf15ea28c910f55a7dbed5167af9 | Debug overlay. fixes #5 | erosson/unityUtils | DebugOverlay.cs | DebugOverlay.cs | using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
namespace ERosson {
/**
* Show debug variables in the bottom left of the screen with a single call.
*/
public class DebugOverlay : MonoBehaviour {
private struct OverlayVar {
public string ... | mit | C# | |
641253621871b59f2e5ce71e66c9464711605ba8 | Add benchmark | smoogipooo/osu-framework,ZLima12/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,ZLima12/osu-framework,ppy/osu-framework,peppy/osu-framework,peppy/osu-framework,ppy/osu-framework,ppy/osu-framework | osu.Framework.Benchmarks/BenchmarkLocalisableString.cs | osu.Framework.Benchmarks/BenchmarkLocalisableString.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.Framework.Localisation;
namespace osu.Framework.Benchmarks
{
[MemoryDiagnoser]
public class BenchmarkLocalisableStrin... | mit | C# | |
83727a2e85a868d612a80bdc7a65bb0bf7b6befd | Add quick-delete tests | smoogipoo/osu,peppy/osu,peppy/osu-new,UselessToucan/osu,peppy/osu,ppy/osu,UselessToucan/osu,NeoAdonis/osu,ppy/osu,smoogipoo/osu,NeoAdonis/osu,peppy/osu,smoogipooo/osu,smoogipoo/osu,UselessToucan/osu,NeoAdonis/osu,ppy/osu | osu.Game.Tests/Visual/Editing/TestSceneEditorQuickDelete.cs | osu.Game.Tests/Visual/Editing/TestSceneEditorQuickDelete.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.Testing;
using osu.Game.Beatmaps;
using osu.Game.Rulesets;
using osu.Game.Rulesets.Objects;
using osu.Game.R... | mit | C# | |
641293a0c5b1f6c0f78df9920919cecca7af7145 | Add missing file. | TechplexEngineer/Aurora-Sim,TechplexEngineer/Aurora-Sim,TechplexEngineer/Aurora-Sim,TechplexEngineer/Aurora-Sim | OpenSim/Framework/ITerrainChannel.cs | OpenSim/Framework/ITerrainChannel.cs | /*
* Copyright (c) Contributors, http://aurora-sim.org/, http://opensimulator.org/
* See CONTRIBUTORS.TXT for a full list of copyright holders.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistr... | bsd-3-clause | C# | |
c7a32ca51ed42cfefb07cbb7e4c83fc77e325809 | fix #1055: падение при отстуствующих параметрах | EvilBeaver/OneScript,EvilBeaver/OneScript,EvilBeaver/OneScript,EvilBeaver/OneScript,EvilBeaver/OneScript | src/oscript/CmdLineHelper.cs | src/oscript/CmdLineHelper.cs | /*----------------------------------------------------------
This Source Code Form is subject to the terms of the
Mozilla Public License, v.2.0. If a copy of the MPL
was not distributed with this file, You can obtain one
at http://mozilla.org/MPL/2.0/.
----------------------------------------------------------*/
us... | /*----------------------------------------------------------
This Source Code Form is subject to the terms of the
Mozilla Public License, v.2.0. If a copy of the MPL
was not distributed with this file, You can obtain one
at http://mozilla.org/MPL/2.0/.
----------------------------------------------------------*/
us... | mpl-2.0 | C# |
83525c7fa83262a169f8930439d9e26182f1accc | Create MainWindow.xaml.cs | wieslawsoltes/Draw2D,wieslawsoltes/Draw2D,wieslawsoltes/Draw2D | src/Draw2D.NetCore/MainWindow.xaml.cs | src/Draw2D.NetCore/MainWindow.xaml.cs | // Copyright (c) Wiesław Šoltés. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using Avalonia;
using Avalonia.Controls;
using Avalonia.Markup.Xaml;
namespace Draw2D.NetCore
{
public class MainWindow : Window
{
public MainWind... | mit | C# | |
477c138ca2d7fa2ef7cab74f47eaddbd168e1a1d | Fix bug. | geffzhang/equeue,tangxuehua/equeue,geffzhang/equeue,Aaron-Liu/equeue,tangxuehua/equeue,tangxuehua/equeue,Aaron-Liu/equeue | src/EQueue/Properties/AssemblyInfo.cs | src/EQueue/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的常规信息通过以下
// 特性集控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("EQueue")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyPro... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的常规信息通过以下
// 特性集控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("EQueue")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyPro... | mit | C# |
0f9580c4e0fd23526e626381970a9a18bfcb9e65 | Create MongoDBTransactionScopeEnlistment.cs | rpaschoal/DynamicRepository | DynamicRepository.MongoDB/MongoDBTransactionScopeEnlistment.cs | DynamicRepository.MongoDB/MongoDBTransactionScopeEnlistment.cs | using DynamicRepository.Transaction;
using System.Transactions;
namespace DynamicRepository.MongoDB
{
internal class MongoDBTransactionScopeEnlistment : IEnlistmentNotification
{
private readonly ITransaction _transaction;
public MongoDBTransactionScopeEnlistment(ITransaction transaction)
... | mit | C# | |
0e50c1ec2fad93efad5f2dcbd49cc8b1df2a120d | Add entry point. Technically not really needed, but fixes a ReSharper warning. | jp7677/hellocoreclr,jp7677/hellocoreclr,jp7677/hellocoreclr,jp7677/hellocoreclr | test/HelloCoreClrApp.Test/Program.cs | test/HelloCoreClrApp.Test/Program.cs | using System;
namespace HelloCoreClrApp.Test
{
public static class Program
{
// Entry point for the application.
public static void Main(string[] args)
{
Console.WriteLine("Please use 'dotnet test' or 'dotnet xunit' to run unit tests.");
}
}
} | mit | C# | |
f401d5082e1685f3715db0c5d733fa7a24927790 | Add SmartyPants tests | lunet-io/markdig | src/Markdig.Tests/TestSmartyPants.cs | src/Markdig.Tests/TestSmartyPants.cs | using Markdig.Extensions.SmartyPants;
using NUnit.Framework;
namespace Markdig.Tests
{
public class TestSmartyPants
{
[Test]
public void MappingCanBeReconfigured()
{
SmartyPantOptions options = new SmartyPantOptions();
options.Mapping[SmartyPantType.LeftAngleQuot... | bsd-2-clause | C# | |
d396e64e244e7bcdf5e7ea43ddcc14f0c23aa69d | Add Czech bank account number validator. | ridercz/ValidationToolkit | Altairis.ValidationToolkit/CzechBankAccountAttribute.cs | Altairis.ValidationToolkit/CzechBankAccountAttribute.cs | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
namespace Altairis.ValidationToolkit {
public class CzechBankAccountAttribute : ValidationAttribute {
// Ba... | mit | C# | |
3e86fa9d9da8403e03f0b574f34e1448f24523ef | Create LandscapeTileProcessor.cs | ScriptGeek/LandscapeTileProcessor | LandscapeTileProcessor.cs | LandscapeTileProcessor.cs | using UnityEngine;
using UnityEditor;
using Rotorz.Tile;
using Rotorz.Tile.Editor;
using System.IO;
public class LandscapeTileProcessor : AssetPostprocessor
{
public void OnPostprocessModel(GameObject obj)
{
ModelImporter importer = assetImporter as ModelImporter;
if (Path.GetDirectoryName(imp... | unlicense | C# | |
22632517abad1531ffb57b802395bf4b620c841d | Create NotesRepository.cs | CarmelSoftware/MVCDataRepositoryXML | Models/NotesRepository.cs | Models/NotesRepository.cs | ////// TODO
| mit | C# | |
e8434a2bea51c66cd83e08385204459011892864 | Add GlobalAssemblyInfo.cs for use on all assemblies Work Item #33154 | tfreitasleal/cslacontrib,MarimerLLC/cslacontrib,MarimerLLC/cslacontrib,MarimerLLC/cslacontrib,tfreitasleal/cslacontrib,tfreitasleal/cslacontrib,MarimerLLC/cslacontrib | trunk/GlobalAssemblyInfo.cs | trunk/GlobalAssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyCompany("CslaContrib project")]
[assembly: AssemblyProduct("MVVM for Windows Forms and Visual WebGUI")]
[assembly: AssemblyCopyright("Copyright CslaContrib 2009-2012")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture... | mit | C# | |
0490639f49aee6b59a93c4e4c399bc62c9b49b13 | Add missing file (to b7f3a06 and later) | roman-yagodin/R7.University,roman-yagodin/R7.University,roman-yagodin/R7.University | R7.University/Components/UniversityPortalConfig.cs | R7.University/Components/UniversityPortalConfig.cs | //
// UniversityPortalConfig.cs
//
// Author:
// Roman M. Yagodin <roman.yagodin@gmail.com>
//
// Copyright (c) 2016 Roman M. Yagodin
//
// 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 Softw... | agpl-3.0 | C# | |
de197152985a43526ab12012844a230f177f0994 | Create AjaxMethodParameterAttribute | faint32/snowflake-1,SnowflakePowered/snowflake,faint32/snowflake-1,RonnChyran/snowflake,faint32/snowflake-1,RonnChyran/snowflake,SnowflakePowered/snowflake,RonnChyran/snowflake,SnowflakePowered/snowflake | Snowflake.API/Ajax/AjaxMethodParameterAttribute.cs | Snowflake.API/Ajax/AjaxMethodParameterAttribute.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Snowflake.Ajax
{
/// <summary>
/// A metadata attribute to indicate parameter methods
/// Does not affect execution.
/// </summary>
[AttributeUsage(AttributeTargets.Method,... | mpl-2.0 | C# | |
685b64c056a55c30f2745ed39d92de223e31242b | Add file again | ginach/msgraph-sdk-dotnet,garethj-msft/msgraph-sdk-dotnet | src/Microsoft.Graph.Core/Models/AsyncOperationStatus.cs | src/Microsoft.Graph.Core/Models/AsyncOperationStatus.cs | // ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
n... | mit | C# | |
a3c56e577ca9f3baf8e2e6451083397bc381f86b | bump version | GeertvanHorrik/Fody,Fody/Fody,ColinDabritzViewpoint/Fody,distantcam/Fody | CommonAssemblyInfo.cs | CommonAssemblyInfo.cs | using System.Reflection;
[assembly: AssemblyTitle("Fody")]
[assembly: AssemblyProduct("Fody")]
[assembly: AssemblyVersion("2.0.7")]
[assembly: AssemblyFileVersion("2.0.7")] | using System.Reflection;
[assembly: AssemblyTitle("Fody")]
[assembly: AssemblyProduct("Fody")]
[assembly: AssemblyVersion("2.0.6")]
[assembly: AssemblyFileVersion("2.0.6")] | mit | C# |
29bc636370daad6cf3effa3e80d2e1f1cebb07f5 | Create CustomerController.cs | thuru/CustomIHttpActionResult | CustomerController.cs | CustomerController.cs | public class CustomerController : ApiController
{
public IHttpActionResult Get()
{
var customresult = new CacheableHttpActionResult<Customer>(Request,
new Customer() { CustomerId = 1, Name = "Thuru" }, 5);
return customresult;
}
}
| mit | C# | |
7d5c1629583d8b93f2136af2507d806b3649e899 | Add GenericMethodGenerator | AspectCore/AspectCore-Framework,AspectCore/AspectCore-Framework,AspectCore/Abstractions,AspectCore/Lite | src/AspectCore.Lite.Abstractions.Generator/GenericMethodGenerator.cs | src/AspectCore.Lite.Abstractions.Generator/GenericMethodGenerator.cs | using System.Reflection.Emit;
namespace AspectCore.Lite.Abstractions.Generator
{
public abstract class GenericMethodGenerator : MethodGenerator
{
public abstract bool IsGenericMethod { get; }
public GenericMethodGenerator(TypeBuilder declaringMember) : base(declaringMember)
{
... | mit | C# | |
67a329f8a838d76d9445e07b6035f92878b11a4c | Create Problem39.cs | fireheadmx/ProjectEuler,fireheadmx/ProjectEuler | Problems/Problem39.cs | Problems/Problem39.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ProjectEuler
{
class Problem39
{
int max = -1;
int maxP = -1;
public string Run(int upper)
{
for(int p=3; p<=upper; p++) {
int val = Solutions(p);
... | mit | C# | |
44837f364988f3e4bd04cf114733bd1ad5a3fdd7 | Create Problem81.cs | fireheadmx/ProjectEuler,fireheadmx/ProjectEuler | Problems/Problem81.cs | Problems/Problem81.cs | using System;
using System.Collections.Generic;
using System.IO;
namespace ProjectEuler.Problems
{
class Problem81
{
int[][] input;
int[][] sum;
public Problem81() {
input = new int[80][];
sum = new int[80][];
}
public void Run()
{
... | mit | C# | |
bc2ef2cb5abb7ebcb2020f6f5191cd3b919db0c7 | Add RandomColorOnStart.cs | felladrin/unity-scripts,felladrin/unity3d-scripts | RandomColorOnStart.cs | RandomColorOnStart.cs | using UnityEngine;
public class RandomColorOnStart : MonoBehaviour
{
public float hueMin = 0.1f;
public float hueMax = 1f;
public float saturationMin = 1f;
public float saturationMax = 1f;
public float valueMin = 0.5f;
public float valueMax = 1f;
void Start ()
{
GetComponent<Renderer> ().material.color = R... | mit | C# | |
812640a24dcf4f5257c91c54ee8fa80c422059ac | Create Example_1.cs | Z3r0Un1x/zeroDll | Examples/CSharp/Example_1.cs | Examples/CSharp/Example_1.cs | mit | C# | ||
39a2279a27d3fa1db30680ac198e3fad5333d744 | Create UpdateHosts.cs | imba-tjd/CSharp-Code-Repository | 单个文件的程序/UpdateHosts.cs | 单个文件的程序/UpdateHosts.cs | using System;
using System.IO;
using System.Net.Http;
using System.Threading.Tasks;
class UH
{
const string ADDR = "https://raw.githubusercontent.com/googlehosts/hosts/master/hosts-files/hosts-compact-no-sni-rst";
const string HOSTSPATH = @"C:\Windows\System32\drivers\etc\hosts";
bool DEBUG => true; // 未来如... | mit | C# | |
b352bf10f538d4a76da2ea4a7d0dac3783653480 | Tweak zone-based sky tinting. | fr1tz/rotc-ethernet-game,fr1tz/rotc-ethernet-game,fr1tz/rotc-ethernet-game,fr1tz/rotc-ethernet-game | ethernet/client/scripts/misc.cs | ethernet/client/scripts/misc.cs | //------------------------------------------------------------------------------
// Revenge Of The Cats: Ethernet
// Copyright (C) 2009, mEthLab Interactive
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
... | //------------------------------------------------------------------------------
// Revenge Of The Cats: Ethernet
// Copyright (C) 2009, mEthLab Interactive
//------------------------------------------------------------------------------
//--------------------------------------------------------------------------... | lgpl-2.1 | C# |
ab1436b15bb44d6d723472a107bea9f3407e9224 | Add time-date test. | SaxxonPike/NextLevelSeven | NextLevelSeven.Test/Conversion/DateTimeConverterTests.cs | NextLevelSeven.Test/Conversion/DateTimeConverterTests.cs | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using NextLevelSeven.Conversion;
using NextLevelSeven.Core;
namespace NextLevelSeven.Test.Conversion
{
[TestClass]
public class DateTimeConverterTests
{
[TestMethod]
public void DateTimeConverter_DecodesTime()
{
... | isc | C# | |
0801446cbb197dc048aee9c5fd3072a72f516c36 | Create Problem1.cs | fireheadmx/ProjectEuler,fireheadmx/ProjectEuler | Problems/Problem1.cs | Problems/Problem1.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ProjectEuler.Problems
{
class Problem1
{
public static void Run()
{
long sum = 0;
for (int n = 1; n < 1000; n++)
{
if (n % 3 == 0 || n % 5 == 0)
... | mit | C# | |
2af41afe09f0ef23ba917549c3c8474f55a1c8aa | Implement show-version command referred to in PROCESSES.md | jskeet/google-cloud-dotnet,jskeet/google-cloud-dotnet,jskeet/google-cloud-dotnet,jskeet/google-cloud-dotnet,googleapis/google-cloud-dotnet,jskeet/gcloud-dotnet,jskeet/google-cloud-dotnet,googleapis/google-cloud-dotnet,googleapis/google-cloud-dotnet | tools/Google.Cloud.Tools.ReleaseManager/ShowVersionCommand.cs | tools/Google.Cloud.Tools.ReleaseManager/ShowVersionCommand.cs | // Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | apache-2.0 | C# | |
f9f9b65c86baf9d3a5f18dc422b720e925614d5f | Add test coverage of deserialisation skin layouts | ppy/osu,ppy/osu,peppy/osu,peppy/osu,peppy/osu,ppy/osu | osu.Game.Tests/Skins/SkinDeserialisationTest.cs | osu.Game.Tests/Skins/SkinDeserialisationTest.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Linq;
using NUnit.Framework;
using osu.Framework.Audio.Sample;
using osu.Framework.Bindables;
using osu.Framework.Graphics.OpenGL.Textures;
usi... | mit | C# | |
ca4e9702d382f351185b0ef2c9f3074acd059733 | change field name in NancyViewData | vladlopes/Nancy,thecodejunkie/Nancy,hitesh97/Nancy,albertjan/Nancy,albertjan/Nancy,Novakov/Nancy,danbarua/Nancy,anton-gogolev/Nancy,guodf/Nancy,joebuschmann/Nancy,JoeStead/Nancy,danbarua/Nancy,jongleur1983/Nancy,Worthaboutapig/Nancy,cgourlay/Nancy,sloncho/Nancy,jeff-pang/Nancy,nicklv/Nancy,tareq-s/Nancy,fly19890211/Nan... | src/Nancy.ViewEngines.Spark/NancyViewData.cs | src/Nancy.ViewEngines.Spark/NancyViewData.cs | namespace Nancy.ViewEngines.Spark
{
public class NancyViewData
{
private readonly NancySparkView view;
public NancyViewData(NancySparkView view)
{
this.view = view;
}
public object Eval(string key)
{
object value;
... | namespace Nancy.ViewEngines.Spark
{
public class NancyViewData
{
private readonly NancySparkView _view;
public NancyViewData(NancySparkView view)
{
_view = view;
}
public object Eval(string key)
{
object value;
... | mit | C# |
4562a154b7c2f56672616d435ff1b941ff7bcfd4 | Add BinarySearchTree.cs | adilmughal/Algorithms-and-Programming-Problems | DataStructure/BinarySearchTree.cs | DataStructure/BinarySearchTree.cs | using System;
namespace DataStructure
{
public class BinarySearchTree<TKey, TValue> where TKey : IComparable<TKey>
{
private BinarySearchTreeNode _root;
public TValue Retrieve(TKey key)
{
if (_root == null)
return default(TValue);
return Retrie... | mit | C# | |
28b5b50caad43774f34c35879c231fdeba29d979 | Add RandomInvestor class. | Si13n7/SilDev.CSharpLib | src/SilDev/Investment/RandomInvestor.cs | src/SilDev/Investment/RandomInvestor.cs | #region auto-generated FILE INFORMATION
// ==============================================
// This file is distributed under the MIT License
// ==============================================
//
// Filename: RandomInvestor.cs
// Version: 2018-06-14 22:14
//
// Copyright (c) 2018, Si13n7 Developments (r)
// All right... | mit | C# | |
250d95dbaf06763eb2beeb910c0944950820857a | Add `SCardControlCode` enumeration | Archie-Yang/PcscDotNet | src/PcscDotNet/SCardControlCode.cs | src/PcscDotNet/SCardControlCode.cs | using System;
namespace PcscDotNet
{
/// <summary>
/// Reader action I/O control codes.
/// </summary>
public enum SCardControlCode
{
/// <summary>
/// IOCTL_CCID_ESCAPE.
/// </summary>
CcidEscape = 3500,
/// <summary>
/// IOCTL_SMARTCARD_CONFISCATE.
... | mit | C# | |
f570ba92d77b7da524e2b98a8d1805d21706d040 | TEST Transaction: no DB connection if not needed, possible to pass DB connection. | pfusik/sooda,pfusik/sooda,pfusik/sooda | tests/TestCases/TransactionTest.cs | tests/TestCases/TransactionTest.cs | //
// Copyright (c) 2014 Piotr Fusik <piotr@fusik.info>
//
// 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 copyri... | bsd-2-clause | C# | |
682fbcd1cfe4a5967273c0173c211d353f9bc5fa | Add contacts api controller | elanderson/ASP.NET-Core-Basics,elanderson/ASP.NET-Core-Basics,elanderson/ASP.NET-Core-Basics,elanderson/ASP.NET-Core-Basics | ASP.NET%20Core%20Basics/src/Contacts/Controllers/ContactsApiController.cs | ASP.NET%20Core%20Basics/src/Contacts/Controllers/ContactsApiController.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using Contacts.Models;
namespace Contacts.Controllers
{
[Produces("application/json")]
[Route("api/ContactsApi")... | mit | C# | |
5b3569d67e6bcfe64e81e26bc413831a40aa3e45 | add controller | ucdavis/Anlab,ucdavis/Anlab,ucdavis/Anlab,ucdavis/Anlab | Anlab.Mvc/Controllers/FinancialServiceController.cs | Anlab.Mvc/Controllers/FinancialServiceController.cs | using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using AnlabMvc.Services;
using Microsoft.AspNetCore.Authorization;
using Anlab.Jobs.MoneyMovement;
namespace AnlabMvc.Controllers
{
[Authorize]
public class FinancialServiceControll... | mit | C# | |
b9d6eafb4cf2467f2d4aa5de758920c86b1c160e | add Event entity | vinhch/BizwebSharp | src/BizwebSharp/Entities/Event.cs | src/BizwebSharp/Entities/Event.cs | using System;
using Newtonsoft.Json;
namespace BizwebSharp.Entities
{
public class Event : BaseEntityWithTimeline
{
/// <summary>
/// Refers to a certain event and its resources.
/// </summary>
[JsonProperty("arguments")]
public string[] Arguments { get; set; }
... | mit | C# | |
5e40457d13193428e1f76db5ce53f67bfa5d1f66 | Test that the container can resolve Test that the container can resolve the engine root object Having this test would have saved some time recently | AnthonySteele/NuKeeper,skolima/NuKeeper,NuKeeperDotNet/NuKeeper,NuKeeperDotNet/NuKeeper,AnthonySteele/NuKeeper,NuKeeperDotNet/NuKeeper,skolima/NuKeeper,skolima/NuKeeper,AnthonySteele/NuKeeper,skolima/NuKeeper,NuKeeperDotNet/NuKeeper,AnthonySteele/NuKeeper | NuKeeper.Tests/ContainerRegistrationTests.cs | NuKeeper.Tests/ContainerRegistrationTests.cs | using System;
using NuKeeper.Configuration;
using NuKeeper.Engine;
using NUnit.Framework;
namespace NuKeeper.Tests
{
[TestFixture]
public class ContainerRegistrationTests
{
[Test]
public void RootCanBeResolved()
{
var container = ContainerRegistration.Init(MakeValidSett... | apache-2.0 | C# | |
bf1af4a809700ae7592bc3bc4db8ea3978ce85ba | Add C# demo | jolaleye/horizon-theme-vscode | demos/csharp.cs | demos/csharp.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xunit;
namespace MyNamespace {
public class MyClass {
public MyClass() {}
public void SomeMethod() {}
private int _variable;
public int Variable {
get { return _variab... | mit | C# | |
5476b874f4c8769bf45bc7502eb63b6c59b852f3 | Create Hack.cs | NakedObjectsGroup/NakedObjectsFramework,NakedObjectsGroup/NakedObjectsFramework,NakedObjectsGroup/NakedObjectsFramework,NakedObjectsGroup/NakedObjectsFramework | Rest/NakedObjects.Rest.Test.Data/Hack.cs | Rest/NakedObjects.Rest.Test.Data/Hack.cs | using System;
using System.Collections.Generic;
using System.Text;
namespace Microsoft.VisualStudio.TestPlatform
{
public class TestSDKAutoGeneratedCodeAttribute : Attribute
{
}
}
| apache-2.0 | C# | |
be253ca37dae43c550dbcda870316c5cf76d5da9 | Create subscribers service. | MarioZisov/Baskerville,MarioZisov/Baskerville,MarioZisov/Baskerville | BaskervilleWebsite/Baskerville.Services/SubscribersService.cs | BaskervilleWebsite/Baskerville.Services/SubscribersService.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Baskerville.Data.Contracts.Repository;
using Baskerville.Models.DataModels;
using Baskerville.Data.Repository;
using Baskerville.Models.ViewModels;
using AutoMapper;
namespace Baskerville.Services... | apache-2.0 | C# | |
67b0b4ce73e53444d83e3d30a8d3fc5a6cdf38f8 | Create Championship.cs | imba-tjd/CSharp-Code-Repository | 单个文件的程序/Championship.cs | 单个文件的程序/Championship.cs | // 给定数组A[0..n-1],试设计一个算法,在最坏情况下用n+logn次比较找出A[0..n-1]中元素的最大值和次大值
using System;
using System.Linq;
using System.Collections.Generic;
class Championship
{
class Node
{
internal Node Win, Lose; // 叶子节点为null,否则分别指向大的和小的节点
internal int Value; // 大的Node的值
// internal Node(Node a, Node b) => a... | mit | C# | |
58ba30fa41b2d851e18d4c50c2c019ceba4cdca4 | Move ChatMessage.cs to its correct place. | bleroy/minecraft.client,Petermarcu/minecraft.client | Decent.Minecraft.Client/ChatMessage.cs | Decent.Minecraft.Client/ChatMessage.cs | namespace Decent.Minecraft.Client
{
public class ChatMessage
{
public ChatMessage(int entityId, string message)
{
EntityId = entityId;
Message = message;
}
public int EntityId { get; }
public string Message { get; }
}
}
| mit | C# | |
3b3300b08d5ab7fea4c9137d6f5fa5985ffaf08e | Add default implementation for RequestProfilers provider | mike-kaufman/Glimpse.Prototype,zanetdev/Glimpse.Prototype,Glimpse/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,pranavkm/Glimpse.Prototype,zanetdev/Glimpse.Prototype,pranavkm/Glimpse.Prototype,pranavkm/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,zanetdev/Glimpse.Prototype,... | src/Glimpse.Agent.Web/Framework/DefaultRequestProfilerProvider.cs | src/Glimpse.Agent.Web/Framework/DefaultRequestProfilerProvider.cs | using System;
using System.Collections.Generic;
using System.Linq;
namespace Glimpse.Agent.Web
{
public class DefaultRequestProfilerProvider : IRequestProfilerProvider
{
private readonly ITypeService _typeService;
public DefaultRequestProfilerProvider(ITypeService typeService)
{
... | mit | C# | |
85d6d087dacf0fd98c9b4fa36f94da52952b42bc | Make generic serializer From methods virtual. | FacilityApi/FacilityCSharp | src/Facility.Core/ServiceSerializer.cs | src/Facility.Core/ServiceSerializer.cs | using System.Diagnostics.CodeAnalysis;
namespace Facility.Core;
/// <summary>
/// Serializes and deserializes values to and from a serialization format.
/// </summary>
public abstract class ServiceSerializer
{
/// <summary>
/// Serializes a value to the serialization format.
/// </summary>
public abstract string ... | using System.Diagnostics.CodeAnalysis;
namespace Facility.Core;
/// <summary>
/// Serializes and deserializes values to and from a serialization format.
/// </summary>
public abstract class ServiceSerializer
{
/// <summary>
/// Serializes a value to the serialization format.
/// </summary>
public abstract string ... | mit | C# |
dd3388e6467ceb142a44c314d964ee233ea15a22 | rename function. | Pavuucek/ArachNGIN,Pavuucek/ArachNGIN | Tests/ClassExtensions/StringColors.cs | Tests/ClassExtensions/StringColors.cs | using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
namespace ArachNGIN.Tests.ClassExtensions
{
public class StringColors
{
[TestMethod]
public void ColorToNamedStringAndBack()
{... | mit | C# | |
e080b4e4a7adde7b1344558e3101f7a0647ee5e7 | Add failing test for assertion of concurrent calls | thomaslevesque/FakeItEasy,thomaslevesque/FakeItEasy,FakeItEasy/FakeItEasy,blairconrad/FakeItEasy,blairconrad/FakeItEasy,adamralph/FakeItEasy,adamralph/FakeItEasy,FakeItEasy/FakeItEasy | tests/FakeItEasy.Tests/ConcurrentCallTests.cs | tests/FakeItEasy.Tests/ConcurrentCallTests.cs | namespace FakeItEasy.Tests
{
using System.Threading;
using System.Threading.Tasks;
using FluentAssertions;
using Xunit;
using Xunit.Abstractions;
public class ConcurrentCallTests
{
private readonly ITestOutputHelper output;
public ConcurrentCallTests(ITestOutput... | mit | C# | |
fee2d60e50a2dc71239bdd9262d1217cb5baf3b8 | check in CourseOffering.cs | teamMnM/slc-student-grouping-tool,teamMnM/slc-student-grouping-tool | SlcClient/SlcClient/Entities/CourseOffering.cs | SlcClient/SlcClient/Entities/CourseOffering.cs | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SlcClient.Entities
{
public class CourseOffering
{
/// <summary>
/// Course offering identifier
/// </summary>
... | apache-2.0 | C# | |
6fa461bf7845873f1a3c2a57142e7575ca64190b | Fix #22 | lucasdavid/Gamedalf,lucasdavid/Gamedalf | Gamedalf.Core/Models/Developer.cs | Gamedalf.Core/Models/Developer.cs | using Gamedalf.Core.Infrastructure;
namespace Gamedalf.Core.Models
{
public class Developer : Player
{
//public virtual ICollection<Game> Games { get; set; }
}
}
| mit | C# | |
73b081fb1b5216a2f7c9036604caa1adb407a989 | Handle projects that miss an entry point | Boddlnagg/VisualRust,vosen/VisualRust,vosen/VisualRust,vadimcn/VisualRust,tempbottle/VisualRust,cmr/VisualRust,PistonDevelopers/VisualRust,tempbottle/VisualRust,PistonDevelopers/VisualRust,xilec/VisualRust,Vbif/VisualRust,Connorcpu/VisualRust,Muraad/VisualRust,Connorcpu/VisualRust,dlsteuer/VisualRust,Stitchous/VisualRu... | VisualRust.Project/RustProjectNode.cs | VisualRust.Project/RustProjectNode.cs | using Microsoft.VisualStudio.Project;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace VisualRust.Project
{
class RustProjectNode : ProjectNode
{
private Microsoft.VisualStudio.Shell.Package package;
... | using Microsoft.VisualStudio.Project;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace VisualRust.Project
{
class RustProjectNode : ProjectNode
{
private Microsoft.VisualStudio.Shell.Package package;
... | mit | C# |
b680a637f344b0db2a82f274a40987b96a558e47 | insert IEntityList | OctoAwesome/octoawesome,ManuelHu/octoawesome,ManuelHu/octoawesome,OctoAwesome/octoawesome | OctoAwesome/OctoAwesome/IEntityList.cs | OctoAwesome/OctoAwesome/IEntityList.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OctoAwesome
{
public interface IEntityList : ICollection<Entity>
{
IEnumerable<FailEntityChunkArgs> FailChunkEntity();
}
public class FailEntityChunkArgs
{
... | mit | C# | |
5e16030dd4109e4091fe3458652baa906581505a | Check branch name to be properly formed | eriawan/octokit.net,rlugojr/octokit.net,shiftkey-tester-org-blah-blah/octokit.net,khellang/octokit.net,rlugojr/octokit.net,thedillonb/octokit.net,gdziadkiewicz/octokit.net,SamTheDev/octokit.net,gdziadkiewicz/octokit.net,shiftkey-tester/octokit.net,Sarmad93/octokit.net,SamTheDev/octokit.net,editor-tools/octokit.net,octo... | Octokit/Helpers/ReferenceExtensions.cs | Octokit/Helpers/ReferenceExtensions.cs | using System;
using System.Threading.Tasks;
namespace Octokit.Helpers
{
/// <summary>
/// Represents operations to simplify working with references
/// </summary>
public static class ReferenceExtensions
{
/// <summary>
/// Creates a branch, based off the branch specified.
/... | using System.Threading.Tasks;
namespace Octokit.Helpers
{
/// <summary>
/// Represents operations to simplify working with references
/// </summary>
public static class ReferenceExtensions
{
/// <summary>
/// Creates a branch, based off the branch specified.
/// </summary>
... | mit | C# |
1e55ce4d05c839922f1b11beb42e7de91b2723c9 | Add tests for the ValidatorFixtureAttribute | horia141/nvalidate,horia141/nvalidate | test/ValidatorFixtureAttributeTest.cs | test/ValidatorFixtureAttributeTest.cs | using NUnit.Framework;
using System;
using System.Reflection;
namespace NValidate.Tests
{
[TestFixture]
public class ValidatorFixtureAttributeTest
{
[ValidatorFixture("WithAttribute")]
class ClassWithAttribute { }
class ClassWithoutAttribute { }
[Test]
... | mit | C# | |
5dfd3c6a1d9f2fcf45af101a81633e3ad54de6e8 | Add tests | wrozmiarek/msbuildtasks | Source/MSBuild.Community.Tasks.Tests/NUnit3Test.cs | Source/MSBuild.Community.Tasks.Tests/NUnit3Test.cs |
using System;
using System.IO;
using System.Reflection;
using System.Text;
using System.Text.RegularExpressions;
using Microsoft.Build.Utilities;
using Microsoft.Win32;
using NUnit.Framework;
namespace MSBuild.Community.Tasks.Tests
{
/// <summary>
/// Summary description for NUnitTest
/// </summary>
... | bsd-2-clause | C# | |
1c4ad0ac3dc3a553626f08952303130c51de3160 | add FileUploadService file | ProjectBlueMonkey/BlueMonkey,ProjectBlueMonkey/BlueMonkey | client/BlueMonkey/BlueMonkey.ExpenseServices.Azure.Shared/AzureFileUploadService.cs | client/BlueMonkey/BlueMonkey.ExpenseServices.Azure.Shared/AzureFileUploadService.cs | using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using BlueMonkey.ExpenseServices;
using BlueMonkey.MediaServices;
namespace BlueMonkey.ExpenseServices.Azure
{
public class AzureFileUploadService : IFileUploadService
{
public Task<Uri> UploadMediaFileAsy... | mit | C# | |
80425f4de0704efc5bd7409462be58ab3fd06585 | Create AssemblyInfo.cs | Excel-DNA/IntelliSense | CustomAddin/Properties/AssemblyInfo.cs | CustomAddin/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("Cus... | mit | C# | |
35a583b2442ea257a56e9e066e8343bf5b4a492d | Include DTO pretty printer extensions | cityindex-attic/CIAPI.CS,cityindex-attic/CIAPI.CS,cityindex-attic/CIAPI.CS | src/CIAPI/PrettyPrinterExtensions.cs | src/CIAPI/PrettyPrinterExtensions.cs | using System;
using System.Text;
namespace CIAPI
{
///<summary>
/// Useful logging and debugging extensions
///</summary>
public static class PrettyPrinterExtensions
{
///<summary>
/// Create string showing values of all public properties for object
///</summary>
//... | apache-2.0 | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.