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 |
|---|---|---|---|---|---|---|---|---|
2216ad4f10ac3155e1a4912c0fa6294b22831381 | Fix SQL Server tests | danielgerlag/workflow-core | test/WorkflowCore.Tests.SqlServer/DockerSetup.cs | test/WorkflowCore.Tests.SqlServer/DockerSetup.cs | using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using Docker.Testify;
using Xunit;
namespace WorkflowCore.Tests.SqlServer
{
public class SqlDockerSetup : DockerSetup
{
public static string ConnectionString { get; set; }
public static string ScenarioConnectionString... | using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using Docker.Testify;
using Xunit;
namespace WorkflowCore.Tests.SqlServer
{
public class SqlDockerSetup : DockerSetup
{
public static string ConnectionString { get; set; }
public static string ScenarioConnectionString... | mit | C# |
3d79534d9896370c7431e2af8c433e6624d8d342 | update AsyncLock | WeihanLi/WeihanLi.Common,WeihanLi/WeihanLi.Common,WeihanLi/WeihanLi.Common | src/WeihanLi.Common/AsyncLock.cs | src/WeihanLi.Common/AsyncLock.cs | using System;
using System.Threading;
using System.Threading.Tasks;
namespace WeihanLi.Common
{
/// <summary>
/// AsyncLock basedOn SemaphoreSlim
/// 基于 SemaphoreSlim 的 异步锁
/// </summary>
public sealed class AsyncLock : IDisposable
{
private readonly SemaphoreSlim _mutex = new Semaphor... | using System;
using System.Threading;
using System.Threading.Tasks;
namespace WeihanLi.Common
{
/// <summary>
/// AsyncLock basedOn SemaphoreSlim
/// 基于 SemaphoreSlim 的 异步锁
/// </summary>
public sealed class AsyncLock : IDisposable
{
private readonly SemaphoreSlim _mutex = new Semaphor... | mit | C# |
0400f88da8c4f556aecc9e43f9c35d92788280e2 | Add Func with 3 params | dahall/vanara | Core/BkwdComp/Func.NET2.cs | Core/BkwdComp/Func.NET2.cs | #if (NET20)
namespace System
{
/// <summary>Encapsulates a method that returns a value of the type specified by the TResult parameter.</summary>
/// <typeparam name="TResult">The type of the return value of the method that this delegate encapsulates.</typeparam>
/// <returns>The return value of the method that this ... | #if (NET20)
namespace System
{
/// <summary>Encapsulates a method that returns a value of the type specified by the TResult parameter.</summary>
/// <typeparam name="TResult">The type of the return value of the method that this delegate encapsulates.</typeparam>
/// <returns>The return value of the method that this ... | mit | C# |
21ae453289ff2bbac0d80307c7c2767dc0aa0db8 | Fix tests not running on windows | EVAST9919/osu-framework,ppy/osu-framework,EVAST9919/osu-framework,ZLima12/osu-framework,peppy/osu-framework,ppy/osu-framework,ZLima12/osu-framework,peppy/osu-framework,EVAST9919/osu-framework,peppy/osu-framework,smoogipooo/osu-framework,EVAST9919/osu-framework,smoogipooo/osu-framework,ppy/osu-framework | osu.Framework.Tests/Platform/TrackBassTest.cs | osu.Framework.Tests/Platform/TrackBassTest.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.Threading;
using ManagedBass;
using NUnit.Framework;
using osu.Framework.Audio.Track;
using osu.Framework.IO.Stores;
using osu.Framework.Platform;
namespace... | // 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.Threading;
using ManagedBass;
using NUnit.Framework;
using osu.Framework.Audio.Track;
using osu.Framework.IO.Stores;
namespace osu.Framework.Tests.Platform
... | mit | C# |
2df71a5c9b7576594679d0a79d3e7704d0a18f1d | Add whitespace to type enum definitions | SICU-Stress-Measurement-System/frontend-cs | StressMeasurementSystem/Models/Patient.cs | StressMeasurementSystem/Models/Patient.cs | using System.Collections.Generic;
using System.Net.Mail;
namespace StressMeasurementSystem.Models
{
public class Patient
{
#region Structs
public struct Name
{
public string Prefix { get; set; }
public string First { get; set; }
public string Middle... | using System.Collections.Generic;
using System.Net.Mail;
namespace StressMeasurementSystem.Models
{
public class Patient
{
#region Structs
public struct Name
{
public string Prefix { get; set; }
public string First { get; set; }
public string Middle... | apache-2.0 | C# |
faff413575d5bfe426fe24ddc82c1ce8563e29fa | Fix to avoid CA1307 | y-iihoshi/ThScoreFileConverter,y-iihoshi/ThScoreFileConverter | ThScoreFileConverter/Squirrel/SQString.cs | ThScoreFileConverter/Squirrel/SQString.cs | //-----------------------------------------------------------------------
// <copyright file="SQString.cs" company="None">
// Copyright (c) IIHOSHI Yoshinori.
// Licensed under the BSD-2-Clause license. See LICENSE.txt file in the project root for full license information.
// </copyright>
//---------------------------... | //-----------------------------------------------------------------------
// <copyright file="SQString.cs" company="None">
// Copyright (c) IIHOSHI Yoshinori.
// Licensed under the BSD-2-Clause license. See LICENSE.txt file in the project root for full license information.
// </copyright>
//---------------------------... | bsd-2-clause | C# |
4391885572aba25e27013ad8699a303fc61d068e | fix build error | steven-r/Oberon0Compiler | oberon0/Expressions/Arithmetic/ArithmeticRepository.cs | oberon0/Expressions/Arithmetic/ArithmeticRepository.cs | using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.ComponentModel.Composition.Hosting;
using Oberon0.Compiler.Solver;
namespace Oberon0.Compiler.Expressions.Arithmetic
{
class ArithmeticRepository
{
#pragma warning disable 649
[ImportMany(typeof(ICal... | using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.ComponentModel.Composition.Hosting;
using System.ComponentModel.Composition.Registration;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using Oberon0.Compiler.Solver;
na... | mit | C# |
0a7b64e0fd8a61f51d87a538b830888d5700bb6f | Bump version | alecgorge/adzerk-dot-net | StackExchange.Adzerk/Properties/AssemblyInfo.cs | StackExchange.Adzerk/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("St... | 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("St... | mit | C# |
81cfe057e95ffb27605716c3fd7f8f8281fc5b6b | Update DotNetXmlSerializer.cs | tiksn/TIKSN-Framework | TIKSN.Core/Serialization/DotNetXmlSerializer.cs | TIKSN.Core/Serialization/DotNetXmlSerializer.cs | using System.IO;
using System.Xml.Serialization;
namespace TIKSN.Serialization
{
public class DotNetXmlSerializer : SerializerBase<string>
{
protected override string SerializeInternal<T>(T obj)
{
var serializer = new XmlSerializer(obj.GetType());
var writer = new String... | using System.IO;
using System.Xml.Serialization;
namespace TIKSN.Serialization
{
public class DotNetXmlSerializer : SerializerBase<string>
{
protected override string SerializeInternal<T>(T obj)
{
var serializer = new XmlSerializer(obj.GetType());
var writer = new String... | mit | C# |
96bfb808a8e554f0c78be0a395fd371ffbc6f758 | add missing registration | zmira/abremir.AllMyBricks | abremir.AllMyBricks.Device/Configuration/IoC.cs | abremir.AllMyBricks.Device/Configuration/IoC.cs | using abremir.AllMyBricks.Device.Interfaces;
using abremir.AllMyBricks.Device.Services;
using SimpleInjector;
using Xamarin.Essentials.Implementation;
using Xamarin.Essentials.Interfaces;
namespace abremir.AllMyBricks.Device.Configuration
{
public static class IoC
{
public static Container Configure(C... | using abremir.AllMyBricks.Device.Interfaces;
using abremir.AllMyBricks.Device.Services;
using SimpleInjector;
using Xamarin.Essentials.Implementation;
using Xamarin.Essentials.Interfaces;
namespace abremir.AllMyBricks.Device.Configuration
{
public static class IoC
{
public static Container Configure(C... | mit | C# |
67dd07c8d0486d4758be62701d7be0300808673d | Fix migration | CollActionteam/CollAction,CollActionteam/CollAction,CollActionteam/CollAction,CollActionteam/CollAction,CollActionteam/CollAction | CollAction/Migrations/20180710223436_ProjectEmails.cs | CollAction/Migrations/20180710223436_ProjectEmails.cs | using System;
using Microsoft.EntityFrameworkCore.Migrations;
namespace CollAction.Migrations
{
public partial class unsubscribetoken : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<int>(
name: "NumberProjectE... | using System;
using Microsoft.EntityFrameworkCore.Migrations;
namespace CollAction.Migrations
{
public partial class unsubscribetoken : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<int>(
name: "NumberProjectE... | agpl-3.0 | C# |
1039d82d161681ab35048720fb751531eb056cfc | Update KpsHandler.cs | yugecin/osukps | osukps/KpsHandler.cs | osukps/KpsHandler.cs | using System.Drawing;
using System.Windows.Forms;
namespace osukps
{
class KpsHandler
{
private Label lblKps;
private Label lblTotal;
private byte index;
private byte[] kps;
private int total;
private int max=0;
public KpsHandler( Label lblKps, Label lblTotal )
{
this.lblK... | using System.Drawing;
using System.Windows.Forms;
namespace osukps
{
class KpsHandler
{
private Label lblKps;
private Label lblTotal;
private byte index;
private byte[] kps;
private int total;
private int max=0;
public KpsHandler( Label lblKps, Label lblTotal )
{
this.lblKps = lblKps;
... | mit | C# |
e17cd9e964e5eaeded62b3b2a4584a813bec5470 | Reduce length of tests | johnneijzen/osu,peppy/osu-new,peppy/osu,smoogipoo/osu,EVAST9919/osu,ppy/osu,ppy/osu,peppy/osu,NeoAdonis/osu,NeoAdonis/osu,EVAST9919/osu,UselessToucan/osu,smoogipoo/osu,ZLima12/osu,peppy/osu,UselessToucan/osu,2yangk23/osu,johnneijzen/osu,ZLima12/osu,smoogipoo/osu,smoogipooo/osu,NeoAdonis/osu,UselessToucan/osu,ppy/osu,2y... | osu.Game.Tests/Visual/Gameplay/TestSceneAutoplay.cs | osu.Game.Tests/Visual/Gameplay/TestSceneAutoplay.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.ComponentModel;
using System.Linq;
using osu.Game.Beatmaps;
using osu.Game.Rulesets;
using osu.Game.Rulesets.Scoring;
using osu.Game.Screens.Play;
namespac... | // 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.ComponentModel;
using System.Linq;
using osu.Game.Beatmaps;
using osu.Game.Rulesets;
using osu.Game.Rulesets.Scoring;
using osu.Game.Screens.Play;
namespac... | mit | C# |
df975d5aa7d55c5d5cad2162060b93da01f81830 | Fix build problem | Nabile-Rahmani/osu-framework,ppy/osu-framework,RedNesto/osu-framework,DrabWeb/osu-framework,naoey/osu-framework,EVAST9919/osu-framework,default0/osu-framework,EVAST9919/osu-framework,EVAST9919/osu-framework,RedNesto/osu-framework,DrabWeb/osu-framework,ZLima12/osu-framework,smoogipooo/osu-framework,naoey/osu-framework,p... | osu.Framework.VisualTests/Tests/TestCaseSliderbar.cs | osu.Framework.VisualTests/Tests/TestCaseSliderbar.cs | using System;
using osu.Framework.Configuration;
using osu.Framework.GameModes.Testing;
using osu.Framework.Graphics.Sprites;
using osu.Framework.Graphics.UserInterface;
using OpenTK;
using OpenTK.Graphics;
namespace osu.Framework.VisualTests.Tests
{
public class TestCaseSliderbar : TestCase
{
... | using System;
using osu.Framework.Configuration;
using osu.Framework.GameModes.Testing;
using osu.Framework.Graphics.Sprites;
using osu.Framework.Graphics.UserInterface;
using OpenTK;
using OpenTK.Graphics;
namespace osu.Framework.VisualTests.Tests
{
public class TestCaseSliderbar : TestCase
{
... | mit | C# |
bd351535177d0ba388b00cacae85aef856a04f57 | Fix incorrect default value in interface. | NeoAdonis/osu-framework,EVAST9919/osu-framework,ZLima12/osu-framework,EVAST9919/osu-framework,smoogipooo/osu-framework,DrabWeb/osu-framework,naoey/osu-framework,ppy/osu-framework,peppy/osu-framework,Nabile-Rahmani/osu-framework,smoogipooo/osu-framework,paparony03/osu-framework,peppy/osu-framework,Tom94/osu-framework,Re... | osu.Framework/Graphics/Transformations/ITransform.cs | osu.Framework/Graphics/Transformations/ITransform.cs | //Copyright (c) 2007-2016 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.Graphics.Transformations
{
public interface ITransform
{
double Duration { get; }
bool ... | //Copyright (c) 2007-2016 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.Graphics.Transformations
{
public interface ITransform
{
double Duration { get; }
bool ... | mit | C# |
f085c0c60117c8669aa0b6e5f1225c2ab0f4a4ed | update version | rajfidel/appium-dotnet-driver,appium/appium-dotnet-driver,Astro03/appium-dotnet-driver,rajfidel/appium-dotnet-driver,suryarend/appium-dotnet-driver | appium-dotnet-driver/Properties/AssemblyInfo.cs | appium-dotnet-driver/Properties/AssemblyInfo.cs | using System.Reflection;
// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your project.
[assembly: AssemblyTitle ("appium-dotnet-driver")]
[assembly: AssemblyDescription ("Appium Dotnet Driver")]
[assembly: AssemblyConfiguration ("")]
[assembly: Asse... | using System.Reflection;
// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your project.
[assembly: AssemblyTitle ("appium-dotnet-driver")]
[assembly: AssemblyDescription ("Appium Dotnet Driver")]
[assembly: AssemblyConfiguration ("")]
[assembly: Asse... | apache-2.0 | C# |
8446d8b8dedba9a89c6397e98cc5fc6d797ab597 | Fix to read in dlv attribute A correctly from xml --Signed-off-by Kathleen Oneal | ADAPT/ISOv4Plugin | ISOv4Plugin/ImportMappers/LogMappers/XmlReaders/DlvReader.cs | ISOv4Plugin/ImportMappers/LogMappers/XmlReaders/DlvReader.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Xml.Linq;
using AgGateway.ADAPT.ISOv4Plugin.ObjectModel;
namespace AgGateway.ADAPT.ISOv4Plugin.ImportMappers.LogMappers.XmlReaders
{
public interface IDlvReader
{
IEnumerable<DLVHeader> Read(List<XElement> dlvElement);
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Xml.Linq;
using AgGateway.ADAPT.ISOv4Plugin.ObjectModel;
namespace AgGateway.ADAPT.ISOv4Plugin.ImportMappers.LogMappers.XmlReaders
{
public interface IDlvReader
{
IEnumerable<DLVHeader> Read(List<XElement> dlvElement);
... | epl-1.0 | C# |
72023606ff239d07092f661d5cba6cb4b7267b30 | Fix typo in exception message | gael-ltd/NEventStore | src/NEventStore/CommonDomain/Core/ExtensionMethods.cs | src/NEventStore/CommonDomain/Core/ExtensionMethods.cs | namespace CommonDomain.Core
{
using System.Globalization;
internal static class ExtensionMethods
{
public static string FormatWith(this string format, params object[] args)
{
return string.Format(CultureInfo.InvariantCulture, format ?? string.Empty, args);
}
public static void ThrowHandlerNotFound(this ... | namespace CommonDomain.Core
{
using System.Globalization;
internal static class ExtensionMethods
{
public static string FormatWith(this string format, params object[] args)
{
return string.Format(CultureInfo.InvariantCulture, format ?? string.Empty, args);
}
public static void ThrowHandlerNotFound(this ... | mit | C# |
848d422bd1865df4920504ece278eb2a628b12e2 | Make NegotiationToken public for manual check type (#141) | SteveSyfuhs/Kerberos.NET | Kerberos.NET/Entities/SpNego/NegotiateContextToken.cs | Kerberos.NET/Entities/SpNego/NegotiateContextToken.cs | using Kerberos.NET.Crypto;
using System;
namespace Kerberos.NET.Entities
{
public sealed class NegotiateContextToken : ContextToken
{
public NegotiateContextToken(GssApiToken gssToken)
{
// SPNego tokens optimistically include a token of the first MechType
// so if mech... | using Kerberos.NET.Crypto;
using System;
namespace Kerberos.NET.Entities
{
public sealed class NegotiateContextToken : ContextToken
{
private readonly NegotiationToken token;
public NegotiateContextToken(GssApiToken gssToken)
{
// SPNego tokens optimistically include a tok... | mit | C# |
3b32ff1a0ff754c6c8a59ef3a90202353564b1c0 | fix encoding of GlobalSuppressions | adamralph/xbehave.net,hitesh97/xbehave.net,xbehave/xbehave.net,mvalipour/xbehave.net,modulexcite/xbehave.net,modulexcite/xbehave.net,mvalipour/xbehave.net,hitesh97/xbehave.net | src/Xbehave.2.Execution.desktop/GlobalSuppressions.cs | src/Xbehave.2.Execution.desktop/GlobalSuppressions.cs | // <copyright file="GlobalSuppressions.cs" company="xBehave.net contributors">
// Copyright (c) xBehave.net contributors. All rights reserved.
// </copyright>
// This file is used by Code Analysis to maintain SuppressMessage
// attributes that are applied to this project.
// Project-level suppressions either h... | / / < |