commit stringlengths 40 40 | old_file stringlengths 4 264 | new_file stringlengths 4 264 | old_contents stringlengths 0 4.24k | new_contents stringlengths 1 5.44k | subject stringlengths 14 778 | message stringlengths 15 9.92k | lang stringclasses 277
values | license stringclasses 13
values | repos stringlengths 5 127k |
|---|---|---|---|---|---|---|---|---|---|
9ba17068fe9978121210a2652deadf655e58e28d | Samples/Core.CrossDomainImages/Core.CrossDomainImagesWeb/Pages/Default.aspx.cs | Samples/Core.CrossDomainImages/Core.CrossDomainImagesWeb/Pages/Default.aspx.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace Core.CrossDomainImagesWeb
{
public partial class Default : System.Web.UI.Page
{
protected void Page_PreInit(object sender, EventArgs e)
{
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace Core.CrossDomainImagesWeb
{
public partial class Default : System.Web.UI.Page
{
protected void Page_PreInit(object sender, EventArgs e)
{
... | Revert "Revert "added try catch, test commit"" | Revert "Revert "added try catch, test commit""
This reverts commit 9478cd97486e0e1a2ff1759161b29d53ec3c2014.
| C# | mit | durayakar/PnP,SPDoctor/PnP,rencoreab/PnP,SPDoctor/PnP,SuryaArup/PnP,MaurizioPz/PnP,SPDoctor/PnP,jlsfernandez/PnP,Arknev/PnP,kendomen/PnP,grazies/PnP,GSoft-SharePoint/PnP,Chowdarysandhya/PnPTest,OfficeDev/PnP,svarukala/PnP,levesquesamuel/PnP,dalehhirt/PnP,rencoreab/PnP,BartSnyckers/PnP,erwinvanhunen/PnP,OneBitSoftware/P... |
cc64a61480e7510d81c91c600a0fcc4d4ab3d386 | src/MitternachtBot/Modules/Games/Services/GamesService.cs | src/MitternachtBot/Modules/Games/Services/GamesService.cs | using System;
using System.Collections.Concurrent;
using System.Collections.Immutable;
using System.Linq;
using System.Threading;
using Mitternacht.Modules.Games.Common;
using Mitternacht.Services;
namespace Mitternacht.Modules.Games.Services {
public class GamesService : IMService {
private readonly IBotConfigProv... | using System;
using System.Collections.Concurrent;
using System.Collections.Immutable;
using System.Linq;
using System.Threading;
using Mitternacht.Modules.Games.Common;
using Mitternacht.Services;
namespace Mitternacht.Modules.Games.Services {
public class GamesService : IMService {
private readonly IBotConfigProv... | Rename field to better match type. | Rename field to better match type.
| C# | mit | Midnight-Myth/Mitternacht-NEW,Midnight-Myth/Mitternacht-NEW,Midnight-Myth/Mitternacht-NEW,Midnight-Myth/Mitternacht-NEW |
ee500b7b58e26d862f0e455d73af34366695a9a7 | src/Core/Utility/ExceptionUtility.cs | src/Core/Utility/ExceptionUtility.cs | using System;
using System.Reflection;
namespace NuGet {
public static class ExceptionUtility {
public static Exception Unwrap(Exception exception) {
if (exception == null) {
throw new ArgumentNullException("exception");
}
if (exception.InnerE... | using System;
using System.Reflection;
namespace NuGet {
public static class ExceptionUtility {
public static Exception Unwrap(Exception exception) {
if (exception == null) {
throw new ArgumentNullException("exception");
}
if (exception.InnerE... | Call GetBaseException instead of manually unwrapping exception types. | Call GetBaseException instead of manually unwrapping exception types.
| C# | apache-2.0 | OneGet/nuget,xoofx/NuGet,chocolatey/nuget-chocolatey,jholovacs/NuGet,ctaggart/nuget,jmezach/NuGet2,xero-github/Nuget,themotleyfool/NuGet,oliver-feng/nuget,oliver-feng/nuget,alluran/node.net,RichiCoder1/nuget-chocolatey,mrward/NuGet.V2,mrward/nuget,antiufo/NuGet2,anurse/NuGet,ctaggart/nuget,rikoe/nuget,dolkensp/node.net... |
dde7e28f60ebc2282f6ea55b6ce42188183ea69a | source/Runtime/SharpLabObjectExtensions.cs | source/Runtime/SharpLabObjectExtensions.cs | using System.ComponentModel;
using System.Text;
using SharpLab.Runtime.Internal;
public static class SharpLabObjectExtensions {
// LinqPad/etc compatibility only
[EditorBrowsable(EditorBrowsableState.Never)]
public static T Dump<T>(this T value)
=> value.Inspect(title: "Dump");
publ... | using System.ComponentModel;
using System.Text;
using SharpLab.Runtime.Internal;
public static class SharpLabObjectExtensions {
// LinqPad/etc compatibility only
[EditorBrowsable(EditorBrowsableState.Never)]
public static T Dump<T>(this T value) {
value.Inspect(title: "Dump");
retu... | Return value in Dump ext. method. | Return value in Dump ext. method. | C# | bsd-2-clause | ashmind/SharpLab,ashmind/SharpLab,ashmind/SharpLab,ashmind/SharpLab,ashmind/SharpLab,ashmind/SharpLab |
2dee9fe7753c8873f111e479baf100d0f6811e69 | Assets/Alensia/Core/Locomotion/LocomotionControl.cs | Assets/Alensia/Core/Locomotion/LocomotionControl.cs | using Alensia.Core.Input;
using UnityEngine.Assertions;
namespace Alensia.Core.Locomotion
{
public abstract class LocomotionControl<T> : Control.Control, ILocomotionControl<T>
where T : class, ILocomotion
{
public T Locomotion { get; }
public override bool Valid => base.Valid && Locom... | using Alensia.Core.Input;
namespace Alensia.Core.Locomotion
{
public abstract class LocomotionControl<T> : Control.Control, ILocomotionControl<T>
where T : class, ILocomotion
{
public abstract T Locomotion { get; }
public override bool Valid => base.Valid && Locomotion != null && Loco... | Allow overriding of locomotion implementation | Allow overriding of locomotion implementation
| C# | apache-2.0 | mysticfall/Alensia |
7acc6ae567902eaca53a6517cbad9151c10a84bd | source/ArcMapAddinVisibility/ArcMapAddinVisibility/MapPointTool.cs | source/ArcMapAddinVisibility/ArcMapAddinVisibility/MapPointTool.cs | using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
namespace ArcMapAddinVisibility
{
public class MapPointTool : ESRI.ArcGIS.Desktop.AddIns.Tool
{
public MapPointTool()
{
}
protected override void OnUpdate()
{
Enabled = ArcM... | using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using ESRI.ArcGIS.Carto;
using ESRI.ArcGIS.Geometry;
using ArcMapAddinVisibility.Helpers;
namespace ArcMapAddinVisibility
{
public class MapPointTool : ESRI.ArcGIS.Desktop.AddIns.Tool
{
public MapPointTool()
{
... | Implement Map Point Tool Mouse events | Implement Map Point Tool Mouse events
| C# | apache-2.0 | Esri/visibility-addin-dotnet |
f118cae2a0dde164a5378c12b41db06347f98bb4 | src/AppHarbor/Commands/AddConfigCommand.cs | src/AppHarbor/Commands/AddConfigCommand.cs | using System;
namespace AppHarbor.Commands
{
public class AddConfigCommand : ICommand
{
private readonly IApplicationConfiguration _applicationConfiguration;
public AddConfigCommand(IApplicationConfiguration applicationConfiguration)
{
_applicationConfiguration = applicationConfiguration;
}
public vo... | using System;
namespace AppHarbor.Commands
{
public class AddConfigCommand : ICommand
{
private readonly IApplicationConfiguration _applicationConfiguration;
private readonly IAppHarborClient _appharborClient;
public AddConfigCommand(IApplicationConfiguration applicationConfiguration, IAppHarborClient apphar... | Initialize AppConfigCommand with an IAppHarborClient | Initialize AppConfigCommand with an IAppHarborClient
| C# | mit | appharbor/appharbor-cli |
50a669a0339c9e26bdf36513e949e57651aecaa4 | src/DocFunctions.Lib/Models/Github/AbstractAction.cs | src/DocFunctions.Lib/Models/Github/AbstractAction.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DocFunctions.Lib.Models.Github
{
public abstract class AbstractAction
{
public string FullFilename { get; set; }
public string CommitSha { get; set; }
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DocFunctions.Lib.Models.Github
{
public abstract class AbstractAction
{
public string FullFilename { get; set; }
public string CommitSha { get; set; }
... | Fix for filename lowercase matches - to fix missing .PNG images | Fix for filename lowercase matches - to fix missing .PNG images
| C# | mit | Red-Folder/docs.functions |
c87d894ebf10d975b253ed9294bc4d69b2cb793d | src/Kernel32.Shared/Kernel32+FindFirstFileExFlags.cs | src/Kernel32.Shared/Kernel32+FindFirstFileExFlags.cs | // Copyright (c) to owners found in https://github.com/AArnott/pinvoke/blob/master/COPYRIGHT.md. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
namespace PInvoke
{
using System;
/// <content>
/// Contains the <see cref="FindF... | // Copyright (c) to owners found in https://github.com/AArnott/pinvoke/blob/master/COPYRIGHT.md. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
namespace PInvoke
{
using System;
/// <content>
/// Contains the <see cref="FindF... | Apply fixes to duplicate file | Apply fixes to duplicate file
The files shouldn't be duplicated (tracked by #32). But this change is defensive so that whichever one is selected as winner won't regress the fix for #28.
| C# | mit | vbfox/pinvoke,fearthecowboy/pinvoke,AArnott/pinvoke,jmelosegui/pinvoke |
69dcfe966ba7bf7ffd3dd2b000943590279da358 | tests/src/JIT/Regression/CLR-x86-JIT/V1-M11-Beta1/b43313/b43313.cs | tests/src/JIT/Regression/CLR-x86-JIT/V1-M11-Beta1/b43313/b43313.cs | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
namespace Test
{
using System;
struct AA
{
static float[] m_afStatic1;
static void Main1()
{
ulong[] param2 = new u... | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
namespace Test
{
using System;
struct AA
{
static float[] m_afStatic1;
static void Main1()
{
ulong[] param2 = new u... | Disable test failing on VS2015 | Disable test failing on VS2015
Failure tracked by #1421 RyuJIT generates incorrect exception handling scopes for IL generated by Roslyn
| C# | mit | pgavlin/coreclr,wtgodbe/coreclr,andschwa/coreclr,neurospeech/coreclr,poizan42/coreclr,wtgodbe/coreclr,mmitche/coreclr,JonHanna/coreclr,Dmitry-Me/coreclr,taylorjonl/coreclr,russellhadley/coreclr,DasAllFolks/coreclr,ragmani/coreclr,chuck-mitchell/coreclr,qiudesong/coreclr,krixalis/coreclr,cmckinsey/coreclr,wateret/corecl... |
cb77f3e123707ca617da8da9d973beb9be6524a4 | src/Firehose.Web/Authors/AndreasBittner.cs | src/Firehose.Web/Authors/AndreasBittner.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 AndreasBittner : IAmACommunityMember
{
public string FirstName => "Andreas";
public string ... | 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 AndreasBittner : IAmACommunityMember
{
public string FirstName => "Andreas";
public string ... | Add RSS Infomation for Andreas Bittner | Add RSS Infomation for Andreas Bittner
| C# | mit | planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell |
6df2b666ac395e3d0df748937777a66a381ef43e | src/Certify.UI/Properties/AssemblyInfo.cs | src/Certify.UI/Properties/AssemblyInfo.cs | using System.Runtime.InteropServices;
using System.Windows;
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
//In order to b... | using System.Reflection;
using System.Runtime.InteropServices;
using System.Windows;
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(... | Set UI exe assembly title | Set UI exe assembly title
| C# | mit | webprofusion/Certify |
a6ad48c49778abe03e8d928f3540ee6d64fc54dc | Opserver.Core/OpserverCore.cs | Opserver.Core/OpserverCore.cs | using StackExchange.Elastic;
namespace StackExchange.Opserver
{
public class OpserverCore
{
// Initializes various bits in OpserverCore like exception logging and such so that projects using the core need not load up all references to do so.
public static void Init()
{
try
... | using System.Net;
using StackExchange.Elastic;
namespace StackExchange.Opserver
{
public class OpserverCore
{
// Initializes various bits in OpserverCore like exception logging and such so that projects using the core need not load up all references to do so.
public static void Init()
... | Enable TLS 1.1 and 1.2 and disable SSLv3 for external calls. | Enable TLS 1.1 and 1.2 and disable SSLv3 for external calls.
| C# | mit | opserver/Opserver,opserver/Opserver,vebin/Opserver,michaelholzheimer/Opserver,rducom/Opserver,manesiotise/Opserver,rducom/Opserver,GABeech/Opserver,michaelholzheimer/Opserver,volkd/Opserver,dteg/Opserver,vbfox/Opserver,maurobennici/Opserver,wuanunet/Opserver,GABeech/Opserver,mqbk/Opserver,dteg/Opserver,mqbk/Opserver,je... |
1363c238d7eebf0de5462c6e0200fe0a56f0ff1c | src/Mirage.Urbanization.WinForms/ToolstripMenuInitializer.cs | src/Mirage.Urbanization.WinForms/ToolstripMenuInitializer.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
namespace Mirage.Urbanization.WinForms
{
public abstract class ToolstripMenuInitializer<TOption>
where TOption : IToolstripMenuOption
{
protected ToolstripMenuInitializer(ToolStripMenuItem targetToop... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
namespace Mirage.Urbanization.WinForms
{
public abstract class ToolstripMenuInitializer<TOption>
where TOption : IToolstripMenuOption
{
protected ToolstripMenuInitializer(ToolStripMenuItem targetToop... | Implement unconditional toggle of the first item when a toolstrip menu is initialized. | Implement unconditional toggle of the first item when a toolstrip menu is initialized.
| C# | mit | Miragecoder/Urbanization,Miragecoder/Urbanization,Miragecoder/Urbanization |
fb40cb20535fbb7071931d8eb3d82d6f4c762022 | IdentityManagement.Store.Mocking/Properties/AssemblyInfo.cs | IdentityManagement.Store.Mocking/Properties/AssemblyInfo.cs | using System.Reflection;
[assembly: AssemblyTitle("Affecto.IdentityManagement.Store.Mocking")]
[assembly: AssemblyDescription("Identity Management store layer using Effort mock database.")]
[assembly: AssemblyProduct("Affecto.IdentityManagement")]
[assembly: AssemblyCompany("Affecto")]
[assembly: AssemblyVersion("8.... | using System.Reflection;
[assembly: AssemblyTitle("Affecto.IdentityManagement.Store.Mocking")]
[assembly: AssemblyDescription("Identity Management store layer using Effort mock database.")]
[assembly: AssemblyProduct("Affecto.IdentityManagement")]
[assembly: AssemblyCompany("Affecto")]
[assembly: AssemblyVersion("8.... | Raise store mocking project version. | Raise store mocking project version.
| C# | mit | affecto/dotnet-IdentityManagement |
9b0274ecaabf14728bb44de43135429ee41809a9 | DebugUtil.cs | DebugUtil.cs | using System.Diagnostics;
using UnityEngine;
namespace Finegamedesign.Utils
{
/// <summary>
/// Wrapper of logging.
/// Conditionally compiles if in debug mode or editor.
/// </summary>
public sealed class DebugUtil
{
[Conditional("DEBUG")]
[Conditional("UNITY_EDITOR")]
... | using System.Diagnostics;
using UnityEngine;
namespace Finegamedesign.Utils
{
/// <summary>
/// Wrapper of logging.
/// Conditionally compiles if in debug mode or editor.
/// </summary>
public sealed class DebugUtil
{
[Conditional("DEBUG")]
[Conditional("UNITY_EDITOR")]
... | Debug Util: Wraps log error. | Debug Util: Wraps log error.
| C# | mit | ethankennerly/UnityToykit |
d62f08d5896558d14331c20cddb5b0cc7ea09344 | Xamarin.Forms.GoogleMaps/Xamarin.Forms.GoogleMaps/Internals/ProductInformation.cs | Xamarin.Forms.GoogleMaps/Xamarin.Forms.GoogleMaps/Internals/ProductInformation.cs | using System;
namespace Xamarin.Forms.GoogleMaps.Internals
{
internal class ProductInformation
{
public const string Author = "amay077";
public const string Name = "Xamarin.Forms.GoogleMaps";
public const string Copyright = "Copyright © amay077. 2016 - 2018";
public const string... | using System;
namespace Xamarin.Forms.GoogleMaps.Internals
{
internal class ProductInformation
{
public const string Author = "amay077";
public const string Name = "Xamarin.Forms.GoogleMaps";
public const string Copyright = "Copyright © amay077. 2016 - 2018";
public const string... | Update file version to 3.0.4.0 | Update file version to 3.0.4.0
| C# | mit | JKennedy24/Xamarin.Forms.GoogleMaps,JKennedy24/Xamarin.Forms.GoogleMaps,amay077/Xamarin.Forms.GoogleMaps |
926539af91919bf0579d9408f65a31856b27e036 | source/XeroApi/Model/ManualJournal.cs | source/XeroApi/Model/ManualJournal.cs | using System;
using System.Xml.Serialization;
namespace XeroApi.Model
{
public class ManualJournal : ModelBase
{
[ItemUpdatedDate]
public DateTime? UpdatedDateUTC { get; set; }
[ItemId]
public Guid ManualJournalID { get; set; }
public DateTime? Date { get; set; }
... | using System;
using System.Xml.Serialization;
namespace XeroApi.Model
{
public class ManualJournal : ModelBase
{
[ItemUpdatedDate]
public DateTime? UpdatedDateUTC { get; set; }
[ItemId]
public Guid ManualJournalID { get; set; }
public DateTime? Date { get; set; }
... | Add optional Url and ShowOnCashBasisReports fields for MJs | Add optional Url and ShowOnCashBasisReports fields for MJs [v2.15]
| C# | mit | jcvandan/XeroAPI.Net,MatthewSteeples/XeroAPI.Net,TDaphneB/XeroAPI.Net,XeroAPI/XeroAPI.Net |
d354aa6d83b327e0e4f84a258091fad37b7e0140 | src/System.Diagnostics.PerformanceCounter/src/misc/EnvironmentHelpers.cs | src/System.Diagnostics.PerformanceCounter/src/misc/EnvironmentHelpers.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.ComponentModel;
using System.Security;
using System.Security.Principal;
namespace System
{
interna... | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.ComponentModel;
using System.Security;
using System.Security.Principal;
namespace System
{
interna... | Fix IsAppContainerProcess for Windows 7 | Fix IsAppContainerProcess for Windows 7
| C# | mit | axelheer/corefx,fgreinacher/corefx,ericstj/corefx,Jiayili1/corefx,zhenlan/corefx,zhenlan/corefx,Ermiar/corefx,BrennanConroy/corefx,shimingsg/corefx,ViktorHofer/corefx,ViktorHofer/corefx,shimingsg/corefx,Ermiar/corefx,wtgodbe/corefx,shimingsg/corefx,axelheer/corefx,seanshpark/corefx,ptoonen/corefx,Jiayili1/corefx,mmitch... |
0e702a952787815734e435fc3fb540ff61b0826b | src/WebDav/WebDav.Client/Request/PropfindRequestBuilder.cs | src/WebDav/WebDav.Client/Request/PropfindRequestBuilder.cs | using System.Linq;
using System.Xml.Linq;
using WebDav.Helpers;
namespace WebDav.Request
{
internal static class PropfindRequestBuilder
{
public static string BuildRequestBody(string[] customProperties)
{
XNamespace webDavNs = "DAV:";
var doc = new XDocument(new XDeclar... | using System.Linq;
using System.Xml.Linq;
using WebDav.Helpers;
namespace WebDav.Request
{
internal static class PropfindRequestBuilder
{
public static string BuildRequestBody(string[] customProperties)
{
var doc = new XDocument(new XDeclaration("1.0", "utf-8", null));
... | Use standard syntax to build propfind requests | Use standard syntax to build propfind requests
| C# | mit | skazantsev/WebDavClient |
3df3086c2794c7b8829a0c9a662ca3e6a3c215c9 | MaterialColor.Core/State.cs | MaterialColor.Core/State.cs | using MaterialColor.Common.Data;
using System.Collections.Generic;
using UnityEngine;
namespace MaterialColor.Core
{
public static class State
{
public static Dictionary<string, Color32> TypeColorOffsets = new Dictionary<string, Color32>();
public static Dictionary<SimHashes, ElementColorInfo>... | using MaterialColor.Common.Data;
using System.Collections.Generic;
using UnityEngine;
namespace MaterialColor.Core
{
public static class State
{
public static Dictionary<string, Color32> TypeColorOffsets = new Dictionary<string, Color32>();
public static Dictionary<SimHashes, ElementColorInfo>... | Add TilePOI to list of tile names | Add TilePOI to list of tile names
| C# | mit | fistak/MaterialColor |
e485728109869c1e3704056e1c2b9c98708c43d1 | osu.Game/Overlays/Settings/Sections/Audio/OffsetSettings.cs | osu.Game/Overlays/Settings/Sections/Audio/OffsetSettings.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.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Localisation;
using osu.Game.Configuration;
using osu.Game.Graphics.UserInterface;
nam... | // 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.Collections.Generic;
using System.Linq;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Localisation;
using osu.Game.Confi... | Add keywords to make finding audio offset adjustments easier in settings | Add keywords to make finding audio offset adjustments easier in settings
| C# | mit | smoogipooo/osu,smoogipoo/osu,peppy/osu,peppy/osu,ppy/osu,NeoAdonis/osu,ppy/osu,peppy/osu,smoogipoo/osu,peppy/osu-new,NeoAdonis/osu,ppy/osu,smoogipoo/osu,NeoAdonis/osu |
83e2b6c198b74ba0eab08903fe4e99f37b6f5577 | ConsoleApps/FunWithSpikes/Wix.CustomActions/CustomAction.cs | ConsoleApps/FunWithSpikes/Wix.CustomActions/CustomAction.cs | using System;
using Microsoft.Deployment.WindowsInstaller;
namespace Wix.CustomActions
{
using System.IO;
public class CustomActions
{
[CustomAction]
public static ActionResult CloseIt(Session session)
{
try
{
const string fileFullPath = @"c... | using System;
using Microsoft.Deployment.WindowsInstaller;
namespace Wix.CustomActions
{
using System.IO;
using System.Diagnostics;
public class CustomActions
{
[CustomAction]
public static ActionResult CloseIt(Session session)
{
try
{
... | Add more logic to the custom action. | Add more logic to the custom action.
| C# | mit | jquintus/spikes,jquintus/spikes,jquintus/spikes,jquintus/spikes |
503330a6267d144cef09ff0624fe6ff1256fb9ef | src/FlatFile.FixedLength.Attributes/Infrastructure/FixedLayoutDescriptorProvider.cs | src/FlatFile.FixedLength.Attributes/Infrastructure/FixedLayoutDescriptorProvider.cs | namespace FlatFile.FixedLength.Attributes.Infrastructure
{
using System;
using System.Linq;
using FlatFile.Core;
using FlatFile.Core.Attributes.Extensions;
using FlatFile.Core.Attributes.Infrastructure;
using FlatFile.Core.Base;
public class FixedLayoutDescriptorProvider : ILayoutDescriptor... | namespace FlatFile.FixedLength.Attributes.Infrastructure
{
using System;
using System.Linq;
using FlatFile.Core;
using FlatFile.Core.Attributes.Extensions;
using FlatFile.Core.Attributes.Infrastructure;
using FlatFile.Core.Base;
public class FixedLayoutDescriptorProvider : ILayoutDescriptor... | Fix header behavior for the fixed length types | Fix header behavior for the fixed length types
| C# | mit | forcewake/FlatFile |
4ac8c43176a28851e0f494b35424696604c946a3 | Assets/Adjust/Test/TestFactoryAndroid.cs | Assets/Adjust/Test/TestFactoryAndroid.cs | using UnityEngine;
namespace com.adjust.sdk.test
{
public class TestFactoryAndroid : ITestFactory
{
private string _baseUrl;
private AndroidJavaObject ajoTestLibrary;
private CommandListenerAndroid onCommandReceivedListener;
public TestFactoryAndroid(string baseUrl)
{
... | using UnityEngine;
namespace com.adjust.sdk.test
{
public class TestFactoryAndroid : ITestFactory
{
private string _baseUrl;
private AndroidJavaObject ajoTestLibrary;
private CommandListenerAndroid onCommandReceivedListener;
public TestFactoryAndroid(string baseUrl)
{
... | Initialize android test library on contructor | Initialize android test library on contructor
| C# | mit | adjust/unity_sdk,adjust/unity_sdk,adjust/unity_sdk |
d8a696c968f03ad900d9c0068016dc26ef1b7e4d | CI/build.cake | CI/build.cake | #addin "Cake.FileHelpers"
var TARGET = Argument ("target", Argument ("t", "Default"));
var version = EnvironmentVariable ("APPVEYOR_BUILD_VERSION") ?? Argument("version", "0.0.9999");
Task ("Default").Does (() =>
{
const string sln = "./../Vibrate.sln";
const string cfg = "Release";
NuGetRestore (sln);
... | #addin "Cake.FileHelpers"
var TARGET = Argument ("target", Argument ("t", "Default"));
var version = EnvironmentVariable ("APPVEYOR_BUILD_VERSION") ?? Argument("version", "0.0.9999");
Task ("Default").Does (() =>
{
const string sln = "./../Vibrate.sln";
const string cfg = "Release";
NuGetRestore (sln);
... | Adjust output directory in script | Adjust output directory in script
| C# | mit | PluginsForXamarin/vibrate |
cea5f4d9374fafc6bc30304d897b4188bd6db637 | CertiPay.Payroll.Common/EmployeePayType.cs | CertiPay.Payroll.Common/EmployeePayType.cs | using System.Collections.Generic;
namespace CertiPay.Payroll.Common
{
/// <summary>
/// Describes how an employee pay is calculated
/// </summary>
public enum EmployeePayType : byte
{
/// <summary>
/// Employee earns a set salary per period of time, i.e. $70,000 yearly
/// ... | using System.Collections.Generic;
namespace CertiPay.Payroll.Common
{
/// <summary>
/// Describes how an employee pay is calculated
/// </summary>
public enum EmployeePayType : byte
{
/// <summary>
/// Employee earns a set salary per period of time, i.e. $70,000 yearly
/// ... | Add commission as Employee Pay Type | Add commission as Employee Pay Type
| C# | mit | mattgwagner/CertiPay.Payroll.Common |
e441261a512a218a1b37bac8f62649f8e47ec1c7 | guides/request-validation-csharp/example-2/example-2.4.x.cs | guides/request-validation-csharp/example-2/example-2.4.x.cs | using System.Web.Mvc;
using Twilio.TwiML;
using Twilio.TwiML.Mvc;
using ValidateRequestExample.Filters;
namespace ValidateRequestExample.Controllers
{
public class IncomingController : TwilioController
{
[ValidateTwilioRequest]
public ActionResult Voice(string from)
{
var re... | using System.Web.Mvc;
using Twilio.AspNet.Mvc;
using Twilio.TwiML;
using ValidateRequestExample.Filters;
namespace ValidateRequestExample.Controllers
{
public class IncomingController : TwilioController
{
[ValidateTwilioRequest]
public ActionResult Voice(string from)
{
var m... | Update controller for request validation | Update controller for request validation
| C# | mit | TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets |
b4608c2e68fb1ea8704f164d281b92e9ed86b355 | DevTyr.Gullap.Tests/With_Guard/For_NotNullOrEmpty/When_argument_is_not_null.cs | DevTyr.Gullap.Tests/With_Guard/For_NotNullOrEmpty/When_argument_is_not_null.cs | using System;
using NUnit.Framework;
using DevTyr.Gullap;
namespace DevTyr.Gullap.Tests.With_Guard.For_NotNullOrEmpty
{
[TestFixture]
public class When_argument_is_not_null
{
[Test]
public void Should_pass ()
{
Guard.NotNullOrEmpty ("", null);
Assert.Pass ();
}
}
}
| using System;
using NUnit.Framework;
using DevTyr.Gullap;
namespace DevTyr.Gullap.Tests.With_Guard.For_NotNullOrEmpty
{
[TestFixture]
public class When_argument_is_not_null_or_empty
{
[Test]
public void Should_pass ()
{
Guard.NotNullOrEmpty ("Test", null);
Assert.Pass ();
}
}
}
| Fix test for NotNullOrEmpty passing check. | Fix test for NotNullOrEmpty passing check.
| C# | mit | devtyr/gullap |
528d959c9113bffff69caac713e873658d30d758 | BankService/BankService.Api/Controllers/AccountHolderController.cs | BankService/BankService.Api/Controllers/AccountHolderController.cs | using BankService.Domain.Contracts;
using BankService.Domain.Models;
using Microsoft.AspNet.Cors;
using Microsoft.AspNet.Mvc;
using System.Collections.Generic;
namespace BankService.Api.Controllers
{
[EnableCors("MyPolicy")]
[Route("api/accountHolders")]
public class AccountHolderController : Controller
... | using BankService.Domain.Contracts;
using BankService.Domain.Models;
using Microsoft.AspNet.Mvc;
using System.Collections.Generic;
namespace BankService.Api.Controllers
{
[Route("api/accountHolders")]
public class AccountHolderController : Controller
{
private readonly IAccountHolderRepository acc... | Remove EnableCors attribute from controller | Remove EnableCors attribute from controller
| C# | mit | mersocarlin/aspnet-core-docker-sample,mersocarlin/aspnet-core-docker-sample,mersocarlin/aspnet-core-docker-sample |
bb4a0049525c979c44af2a71e343212515aca3d8 | VotingSystem.Web/Areas/User/ViewModels/UserPollsViewModel.cs | VotingSystem.Web/Areas/User/ViewModels/UserPollsViewModel.cs | namespace VotingSystem.Web.Areas.User.ViewModels
{
using System;
using System.Collections.Generic;
using System.Web.Mvc;
using VotingSystem.Models;
using VotingSystem.Web.Infrastructure.Mapping;
using AutoMapper;
public class UserPollsViewModel : IMapFrom<Poll>, IHaveCustomMap... | namespace VotingSystem.Web.Areas.User.ViewModels
{
using System;
using System.Collections.Generic;
using System.Web.Mvc;
using VotingSystem.Models;
using VotingSystem.Web.Infrastructure.Mapping;
using AutoMapper;
public class UserPollsViewModel : IMapFrom<Poll>, IHaveCustomMap... | Hide UserId by Editing in KendoGrid PopUp | Hide UserId by Editing in KendoGrid PopUp | C# | mit | KristianMariyanov/VotingSystem,KristianMariyanov/VotingSystem,KristianMariyanov/VotingSystem |
6e39661223431c78d83d2d7cd274fd6ab3855cab | Core/VVVV.DX11.Lib/Effects/Pins/Resources/SamplerShaderPin.cs | Core/VVVV.DX11.Lib/Effects/Pins/Resources/SamplerShaderPin.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using VVVV.DX11.Internals.Effects.Pins;
using VVVV.PluginInterfaces.V2;
using SlimDX.Direct3D11;
using VVVV.PluginInterfaces.V1;
using VVVV.Hosting.Pins;
using VVVV.DX11.Lib.Effects.Pins;
using FeralTic.DX11;
namespace VVVV.DX11.Int... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using VVVV.DX11.Internals.Effects.Pins;
using VVVV.PluginInterfaces.V2;
using SlimDX.Direct3D11;
using VVVV.PluginInterfaces.V1;
using VVVV.Hosting.Pins;
using VVVV.DX11.Lib.Effects.Pins;
using FeralTic.DX11;
namespace VVVV.DX11.Int... | Fix error in sampler state pin connection | Fix error in sampler state pin connection
| C# | bsd-3-clause | id144/dx11-vvvv,id144/dx11-vvvv,id144/dx11-vvvv |
d17bd100346011cab4e0d92127247e0c46f0f086 | Harvest.Net.Tests/ResourceFacts/TimeTrackingFacts.cs | Harvest.Net.Tests/ResourceFacts/TimeTrackingFacts.cs | using Harvest.Net.Models;
using System;
using System.Linq;
using Xunit;
namespace Harvest.Net.Tests
{
public class TimeTrackingFacts : FactBase, IDisposable
{
DayEntry _todelete = null;
[Fact]
public void Daily_ReturnsResult()
{
var result = Api.Daily();
... | using Harvest.Net.Models;
using System;
using System.Linq;
using Xunit;
namespace Harvest.Net.Tests
{
public class TimeTrackingFacts : FactBase, IDisposable
{
DayEntry _todelete = null;
[Fact]
public void Daily_ReturnsResult()
{
var result = Api.Daily();
... | Fix test to work in any timezone | Fix test to work in any timezone
| C# | mit | ithielnor/harvest.net |
57b9f79801e0649a8e7bda74a75ff3b3ce183587 | Infrastructure/Formatters/ProtobufOutputFormatter.cs | Infrastructure/Formatters/ProtobufOutputFormatter.cs | using System;
using Microsoft.Net.Http.Headers;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc.Formatters;
using ProtoBuf.Meta;
namespace Infrastructure
{
public class ProtobufOutputFormatter : OutputFormatter
{
private static Lazy<RuntimeTypeModel> model = new Lazy<RuntimeTypeModel>(Cre... | using System;
using Microsoft.Net.Http.Headers;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc.Formatters;
using ProtoBuf.Meta;
namespace Infrastructure
{
public class ProtobufOutputFormatter : OutputFormatter
{
private static Lazy<RuntimeTypeModel> model = new Lazy<RuntimeTypeModel>(Cre... | Add encoding header to protobuf content | Add encoding header to protobuf content
| C# | mit | Hypnobrew/StockMonitor |
5b4f9e2bdac71bd78b7a9aa457902f0e5d63efa3 | src/Abp.AspNetCore/AspNetCore/EntityHistory/HttpRequestEntityChangeSetReasonProvider.cs | src/Abp.AspNetCore/AspNetCore/EntityHistory/HttpRequestEntityChangeSetReasonProvider.cs | using Abp.Dependency;
using Abp.EntityHistory;
using Abp.Runtime;
using JetBrains.Annotations;
using Microsoft.AspNetCore.Http;
using System.Text;
namespace Abp.AspNetCore.EntityHistory
{
/// <summary>
/// Implements <see cref="IEntityChangeSetReasonProvider"/> to get reason from HTTP request.
/// </summa... | using Abp.Dependency;
using Abp.EntityHistory;
using Abp.Runtime;
using JetBrains.Annotations;
using Microsoft.AspNetCore.Http;
using System.Text;
using Microsoft.AspNetCore.Http.Extensions;
namespace Abp.AspNetCore.EntityHistory
{
/// <summary>
/// Implements <see cref="IEntityChangeSetReasonProvider"/> to g... | Use the aspnet core built-in GetDisplayUrl method. | Use the aspnet core built-in GetDisplayUrl method.
Resolve #4946 | C# | mit | verdentk/aspnetboilerplate,ryancyq/aspnetboilerplate,ilyhacker/aspnetboilerplate,ilyhacker/aspnetboilerplate,aspnetboilerplate/aspnetboilerplate,aspnetboilerplate/aspnetboilerplate,aspnetboilerplate/aspnetboilerplate,verdentk/aspnetboilerplate,carldai0106/aspnetboilerplate,ilyhacker/aspnetboilerplate,ryancyq/aspnetboil... |
0c13b3a2a6b1126d09154b0405cf51b733f28bec | PhotoLife/PhotoLife.Data/UnitOfWork.cs | PhotoLife/PhotoLife.Data/UnitOfWork.cs | using System;
using System.Data.Entity;
using PhotoLife.Data.Contracts;
namespace PhotoLife.Data
{
public class UnitOfWork : IUnitOfWork
{
private readonly DbContext dbContext;
public UnitOfWork(DbContext context)
{
if (context == null)
{
throw ... | using System;
using PhotoLife.Data.Contracts;
namespace PhotoLife.Data
{
public class UnitOfWork : IUnitOfWork
{
private readonly IPhotoLifeEntities dbContext;
public UnitOfWork(IPhotoLifeEntities context)
{
if (context == null)
{
throw new Argu... | Fix unit of work ctor param | Fix unit of work ctor param
| C# | mit | Branimir123/PhotoLife,Branimir123/PhotoLife,Branimir123/PhotoLife |
621b278807db7e52bb1054dfffbd142a1529ee75 | Worker/Scalable/ScalableTask.cs | Worker/Scalable/ScalableTask.cs | namespace Worker.Scalable
{
using King.Service;
using System.Diagnostics;
using System.Threading.Tasks;
public class ScalableTask : IDynamicRuns
{
public int MaximumPeriodInSeconds
{
get { return 30; }
}
public int MinimumPeriodInSeconds
{
... | namespace Worker.Scalable
{
using King.Service;
using System;
using System.Diagnostics;
using System.Threading.Tasks;
public class ScalableTask : IDynamicRuns
{
public int MaximumPeriodInSeconds
{
get
{
return 30;
}
}
... | Scale up and down in demo | Scale up and down in demo
| C# | mit | jefking/King.Service |
a756358200cb0d7ebe9f396ae5f4db567186bd40 | Source/Lib/TraktApiSharp/Requests/WithoutOAuth/Shows/Common/TraktShowsTrendingRequest.cs | Source/Lib/TraktApiSharp/Requests/WithoutOAuth/Shows/Common/TraktShowsTrendingRequest.cs | namespace TraktApiSharp.Requests.WithoutOAuth.Shows.Common
{
using Base.Get;
using Objects.Basic;
using Objects.Get.Shows.Common;
internal class TraktShowsTrendingRequest : TraktGetRequest<TraktPaginationListResult<TraktTrendingShow>, TraktTrendingShow>
{
internal TraktShowsTrendingRequest... | namespace TraktApiSharp.Requests.WithoutOAuth.Shows.Common
{
using Base;
using Base.Get;
using Objects.Basic;
using Objects.Get.Shows.Common;
internal class TraktShowsTrendingRequest : TraktGetRequest<TraktPaginationListResult<TraktTrendingShow>, TraktTrendingShow>
{
internal TraktShow... | Add filter property to trending shows request. | Add filter property to trending shows request.
| C# | mit | henrikfroehling/TraktApiSharp |
977c46804d75312f3e21e9050c92a8e51fffd50e | Tests/Linq/UserTests/Issue1556Tests.cs | Tests/Linq/UserTests/Issue1556Tests.cs | using System;
using System.Linq;
using LinqToDB;
using NUnit.Framework;
namespace Tests.UserTests
{
[TestFixture]
public class Issue1556Tests : TestBase
{
[Test]
public void Issue1556Test([DataSources(ProviderName.Sybase, ProviderName.OracleNative)] string context)
{
using (var db = GetDataContext(conte... | using System;
using System.Linq;
using LinqToDB;
using NUnit.Framework;
namespace Tests.UserTests
{
[TestFixture]
public class Issue1556Tests : TestBase
{
[Test]
public void Issue1556Test(
[DataSources(ProviderName.Sybase, ProviderName.OracleNative, ProviderName.Access)] string context)
{
using (var ... | Access dos not support such join syntax. | Access dos not support such join syntax.
(cherry picked from commit 8d08686469e98c88d2d4594c32a91dfd5c0f3892)
| C# | mit | MaceWindu/linq2db,linq2db/linq2db,LinqToDB4iSeries/linq2db,linq2db/linq2db,MaceWindu/linq2db,LinqToDB4iSeries/linq2db |
37364f46da00e2f84e0179cd0ce44ca686c09d1e | src/Anemonis.MicrosoftOffice.AddinHost.IntegrationTests/RequestTracingMiddlewareTests.cs | src/Anemonis.MicrosoftOffice.AddinHost.IntegrationTests/RequestTracingMiddlewareTests.cs | using System.Net.Http;
using System.Threading.Tasks;
using Anemonis.MicrosoftOffice.AddinHost.Middleware;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.TestHost;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.VisualStudio.TestTools.UnitTesting;
usin... | using System.Net.Http;
using System.Threading.Tasks;
using Anemonis.MicrosoftOffice.AddinHost.Middleware;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.TestHost;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.VisualStudio.TestTools.UnitTesting;
usin... | Fix integration tests for tracing | Fix integration tests for tracing
| C# | mit | alexanderkozlenko/oads,alexanderkozlenko/oads |
0cc77ddda55f3204a86e471515fcd2a3978c4c6a | src/GRA.Controllers/ParticipatingBranchesController.cs | src/GRA.Controllers/ParticipatingBranchesController.cs | using GRA.Domain.Service;
using GRA.Controllers.ViewModel.ParticipatingBranches;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Threading.Tasks;
namespace GRA.Controllers
{
public class ParticipatingBranchesController : Base.UserController
{
private readonly SiteService _siteService;
... | using GRA.Domain.Service;
using GRA.Controllers.ViewModel.ParticipatingBranches;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Threading.Tasks;
namespace GRA.Controllers
{
public class ParticipatingBranchesController : Base.UserController
{
private readonly SiteService _siteService;
... | Access always to list of branches | Access always to list of branches
| C# | mit | MCLD/greatreadingadventure,MCLD/greatreadingadventure,MCLD/greatreadingadventure,MCLD/greatreadingadventure,MCLD/greatreadingadventure |
6764644f231ff4b6e6a19f10fb1d65945597f24b | OpenWeatherMap.Standard/Models/Wind.cs | OpenWeatherMap.Standard/Models/Wind.cs | using System;
namespace OpenWeatherMap.Standard.Models
{
/// <summary>
/// wind model
/// </summary>
[Serializable]
public class Wind : BaseModel
{
private float speed, gust;
private int deg;
/// <summary>
/// wind speed
/// </summary>
public fl... | using Newtonsoft.Json;
using System;
namespace OpenWeatherMap.Standard.Models
{
/// <summary>
/// wind model
/// </summary>
[Serializable]
public class Wind : BaseModel
{
private float speed, gust;
private int deg;
/// <summary>
/// wind speed
/// </sum... | Fix wind Degree not using the right name for the json file | Fix wind Degree not using the right name for the json file
| C# | mit | vb2ae/OpenWeatherMap.Standard,vb2ae/OpenWeatherMap.Standard,vb2ae/OpenWeatherMap.Standard |
05fbaacb272d81182ee0444b79fce29ba202745f | RepoZ.Api.Mac/IO/MacDriveEnumerator.cs | RepoZ.Api.Mac/IO/MacDriveEnumerator.cs | using RepoZ.Api.IO;
using System;
using System.Linq;
namespace RepoZ.Api.Mac.IO
{
public class MacDriveEnumerator : IPathProvider
{
public string[] GetPaths()
{
return System.IO.DriveInfo.GetDrives()
.Where(d => d.DriveType == System.IO.DriveType.Fixed)
... | using RepoZ.Api.IO;
using System;
using System.Linq;
namespace RepoZ.Api.Mac.IO
{
public class MacDriveEnumerator : IPathProvider
{
public string[] GetPaths()
{
return new string[] { Environment.GetFolderPath(Environment.SpecialFolder.UserProfile) };
}
}
} | Use the user profile as scan entry point instead of drives like in Windows | Use the user profile as scan entry point instead of drives like in Windows
| C# | mit | awaescher/RepoZ,awaescher/RepoZ |
53c8345feee4e9b468c013d3dfbcdff2ef8b46fc | KVLib/KVParser.cs | KVLib/KVParser.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Sprache;
using System.Text.RegularExpressions;
using KVLib.KeyValues;
namespace KVLib
{
/// <summary>
/// Parser entry point for reading Key Value strings
/// </summary>
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Sprache;
using System.Text.RegularExpressions;
using KVLib.KeyValues;
namespace KVLib
{
/// <summary>
/// Parser entry point for reading Key Value strings
/// </summary>
... | Set the default parser to the Penguin Parser as it has better error reporting and is faster | Set the default parser to the Penguin Parser as it has better error reporting and is faster
| C# | mit | GoeGaming/KVLib,RoyAwesome/KVLib |
7a5b2aa5f6fcac4b77adb0392097f22f8592aa80 | src/ReverseMarkdown/Converters/Li.cs | src/ReverseMarkdown/Converters/Li.cs |
using System;
using System.Linq;
using HtmlAgilityPack;
namespace ReverseMarkdown.Converters
{
public class Li
: ConverterBase
{
public Li(Converter converter)
: base(converter)
{
this.Converter.Register("li", this);
}
public override string Convert(HtmlNode node)
{
string content = this.Tre... |
using System;
using System.Linq;
using HtmlAgilityPack;
namespace ReverseMarkdown.Converters
{
public class Li
: ConverterBase
{
public Li(Converter converter)
: base(converter)
{
this.Converter.Register("li", this);
}
public override string Convert(HtmlNode node)
{
string content = this.Tre... | Fix nested list item space before to 2 characters GH-14 | Fix nested list item space before to 2 characters GH-14
| C# | mit | mysticmind/reversemarkdown-net |
a71357a8e2bd44e10873f9d56e66cb6937514e0b | DungeonsAndDragons/DOF/Character.cs | DungeonsAndDragons/DOF/Character.cs |
namespace DungeonsAndDragons.DOF
{
public class Character
{
public int Level { get; set; }
public int Strength { get; set; }
public int Dexterity { get; set; }
public IWeapon CurrentWeapon { get; set; }
public int StrengthModifier
{
get { return Str... |
namespace DungeonsAndDragons.DOF
{
public class Character
{
public int Level { get; set; }
public int Strength { get; set; }
public int Dexterity { get; set; }
public IWeapon CurrentWeapon { get; set; }
public int StrengthModifier
{
get { return Str... | Use racial attack bonus to compute current attack. | Use racial attack bonus to compute current attack.
| C# | mit | michaellperry/dof |
0b280b32de15585d04b7c305404f76e8c0344efc | src/Stripe.net/Entities/Issuing/Authorizations/VerificationData.cs | src/Stripe.net/Entities/Issuing/Authorizations/VerificationData.cs | namespace Stripe.Issuing
{
using Newtonsoft.Json;
public class VerificationData : StripeEntity<VerificationData>
{
/// <summary>
/// One of <c>match</c>, <c>mismatch</c>, or <c>not_provided</c>.
/// </summary>
[JsonProperty("address_line1_check")]
public string Addre... | namespace Stripe.Issuing
{
using Newtonsoft.Json;
public class VerificationData : StripeEntity<VerificationData>
{
/// <summary>
/// One of <c>match</c>, <c>mismatch</c>, or <c>not_provided</c>.
/// </summary>
[JsonProperty("address_line1_check")]
public string Addre... | Add support for `ExpiryCheck` on Issuing `Authorization` | Add support for `ExpiryCheck` on Issuing `Authorization`
| C# | apache-2.0 | stripe/stripe-dotnet |
76f177f93951d3ad7201904b53c534ae1ce5f204 | Requests/Schema.cs | Requests/Schema.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Requests
{
public class Schema
{
public string Url { get; private set; }
public string Base { get; private set; }
public string Path { get; private set; }
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Requests
{
public class Schema
{
public string Url { get; private set; }
public string Base { get; private set; }
public string Path { get; private set; }
... | Fix trailing slash in Url | Fix trailing slash in Url
| C# | apache-2.0 | Pathio/excel-requests |
b406be4e32e33b88271b9fa29df0afe740b170d0 | ConsoleApp1/Program.cs | ConsoleApp1/Program.cs | using System;
namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
int x = ClassLibrary1.Class1.ReturnFive();
Console.WriteLine("Hello World!");
}
}
}
| using System;
namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
// Quick little demo of using a function from the shared class library
int x = ClassLibrary1.Class1.ReturnFive();
System.Diagnostics.Debug.Assert(x == 5);
Co... | Add a quick little demo of using a function from the shared class library to ConsoleApp1 | Add a quick little demo of using a function from the shared class library to ConsoleApp1
| C# | unlicense | PhilboBaggins/ci-experiments-dotnetcore,PhilboBaggins/ci-experiments-dotnetcore |
4757bda5f153689faca9be8037ff72bbb84e0b2e | Battery-Commander.Web/Views/Units/List.cshtml | Battery-Commander.Web/Views/Units/List.cshtml | @model IEnumerable<Unit>
<div class="page-header">
<h1>Units @Html.ActionLink("Add New", "New", "Units", null, new { @class = "btn btn-default" })</h1>
</div>
<table class="table table-striped">
<thead>
<tr>
<th>@Html.DisplayNameFor(_ => _.FirstOrDefault().Name)</th>
<th>@Html... | @model IEnumerable<Unit>
<div class="page-header">
<h1>Units @Html.ActionLink("Add New", "New", "Units", null, new { @class = "btn btn-default" })</h1>
</div>
<table class="table table-striped">
<thead>
<tr>
<th>@Html.DisplayNameFor(_ => _.FirstOrDefault().Name)</th>
<th>@Html... | Add link to org chart | Add link to org chart
| C# | mit | mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander |
db840d36b052720052669d4c51c5e3f4125d6eb1 | src/Meraki/MerakiClient.cs | src/Meraki/MerakiClient.cs | using System;
using System.Net.Http;
using System.Threading.Tasks;
using Microsoft.Extensions.Options;
using Newtonsoft.Json;
namespace Meraki {
public partial class MerakiClient {
private readonly HttpClient _client;
private readonly UrlFormatProvider _formatter = new UrlFormatProvider();
... | using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using System.Net.Http;
using System.Threading.Tasks;
using Microsoft.Extensions.Options;
using Newtonsoft.Json;
namespace Meraki {
public partial class MerakiClient {
private readonly HttpClient _client;
private readonl... | Allow settings to be passed as well | Allow settings to be passed as well
| C# | mit | anthonylangsworth/Meraki |
557324bc06051250305cd6c0d50816ee91540c1a | CorePlugin/ScriptExecutor.cs | CorePlugin/ScriptExecutor.cs | using System;
using System.Collections.Generic;
using System.Linq;
using Duality;
using RockyTV.Duality.Plugins.IronPython.Resources;
using IronPython.Hosting;
using IronPython.Runtime;
using IronPython.Compiler;
using Microsoft.Scripting;
using Microsoft.Scripting.Hosting;
using Duality.Editor;
namespace RockyTV.... | using System;
using System.Collections.Generic;
using System.Linq;
using Duality;
using RockyTV.Duality.Plugins.IronPython.Resources;
using IronPython.Hosting;
using IronPython.Runtime;
using IronPython.Compiler;
using Microsoft.Scripting;
using Microsoft.Scripting.Hosting;
using Duality.Editor;
namespace RockyTV.... | Create exec engine on load and pass context to script | Create exec engine on load and pass context to script
| C# | mit | RockyTV/Duality.IronPython |
ad1cdc80ed734a67e7690c9c32a4f99f569c2e59 | src/SFA.DAS.EmployerUsers.Api/Controllers/StatusController.cs | src/SFA.DAS.EmployerUsers.Api/Controllers/StatusController.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
namespace SFA.DAS.EmployerUsers.Api.Controllers
{
[RoutePrefix("api/status")]
public class StatusController : ApiController
{
[Route("")]
public IHttpActionRe... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
using System.Web.Http;
using SFA.DAS.EmployerUsers.Api.Orchestrators;
namespace SFA.DAS.EmployerUsers.Api.Controllers
{
[RoutePrefix("api/status")]
public class StatusCont... | Add smoke test to Status controller | Add smoke test to Status controller
| C# | mit | SkillsFundingAgency/das-employerusers,SkillsFundingAgency/das-employerusers,SkillsFundingAgency/das-employerusers |
a9737d09a7b8da42135b672169bfd24462d03618 | Siftables/MainWindow.xaml.cs | Siftables/MainWindow.xaml.cs | namespace Siftables
{
public partial class MainWindowView
{
public MainWindowView()
{
InitializeComponent();
}
}
}
| namespace Siftables
{
public partial class MainWindowView
{
public MainWindowView()
{
InitializeComponent();
DoSomething();
}
}
}
| Break build to test TeamCity. | Break build to test TeamCity.
Signed-off-by: Alexander J Mullans <60c6d277a8bd81de7fdde19201bf9c58a3df08f4@alexmullans.com>
| C# | bsd-2-clause | alexmullans/Siftables-Emulator |
0f3a3d1ba67dbee1ca8c3bbef61714b0ad66e637 | src/Fixie/Discovery.cs | src/Fixie/Discovery.cs | namespace Fixie
{
using Internal;
using Internal.Expressions;
/// <summary>
/// Subclass Discovery to customize test discovery rules.
///
/// The default discovery rules are applied to a test assembly whenever the test
/// assembly includes no such subclass.
///
/// By defualt,
... | namespace Fixie
{
using Internal;
using Internal.Expressions;
/// <summary>
/// Subclass Discovery to customize test discovery rules.
///
/// The default discovery rules are applied to a test assembly whenever the test
/// assembly includes no such subclass.
///
/// By default,
... | Fix spelling error in summary comment. | Fix spelling error in summary comment.
| C# | mit | fixie/fixie |
701a8faaba9c5139513bd39e42b2f84ae36c270b | if-ws-jquerymobile/Resources.cs | if-ws-jquerymobile/Resources.cs | using System.Web.UI;
using IntelliFactory.WebSharper;
namespace IntelliFactory.WebSharper.JQuery.Mobile.Resources
{
[IntelliFactory.WebSharper.Core.Attributes.Require(typeof(IntelliFactory.WebSharper.JQuery.Resources.JQuery))]
public class JQueryMobile : IntelliFactory.WebSharper.Core.Resources.BaseResou... | using System.Web.UI;
using IntelliFactory.WebSharper;
namespace IntelliFactory.WebSharper.JQuery.Mobile.Resources
{
[IntelliFactory.WebSharper.Core.Attributes.Require(typeof(IntelliFactory.WebSharper.JQuery.Resources.JQuery))]
public class JQueryMobile : IntelliFactory.WebSharper.Core.Resources.BaseResou... | Use stable version of JQueryMobile. | Use stable version of JQueryMobile.
| C# | apache-2.0 | intellifactory/websharper.jquerymobile,intellifactory/websharper.jquerymobile |
b805b0d505c09945786acb260866ec12fbe55a6c | Test/MarcinHoppe.LangtonsAnts.Tests/AntTests.cs | Test/MarcinHoppe.LangtonsAnts.Tests/AntTests.cs | using System;
using Moq;
using Xunit;
namespace MarcinHoppe.LangtonsAnts.Tests
{
public class AntTests
{
[Fact]
public void AntTurnsRightOnWhiteSquare()
{
// Arrange
var ant = AntAt(10, 7);
var board = Mock.Of<Board>(b => b.ColorAt(PositionAt(10, 7)... | using System;
using Moq;
using Xunit;
namespace MarcinHoppe.LangtonsAnts.Tests
{
public class AntTests
{
[Fact]
public void AntTurnsRightOnWhiteSquare()
{
// Arrange
var ant = AntAt(10, 7);
var board = Mock.Of<Board>(b => b.ColorAt(PositionAt(10, 7)... | Fix typo in unit test name | Fix typo in unit test name
| C# | mit | MarcinHoppe/LangtonsAnts |
45232902e029268c7f7fd96df4ad6d8e8bd9d686 | src/FakeHttpContext.Tests/Properties/AssemblyInfo.cs | src/FakeHttpContext.Tests/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("FakeHttpContext.Tests")]
[assembly: Assemb... | using System.Reflection;
using System.Runtime.InteropServices;
using Xunit;
[assembly: CollectionBehavior(DisableTestParallelization = true)]
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an... | Disable parallel execution for tests | Disable parallel execution for tests
Tests for `FakeHostEnvironment` and `FakeHttpContext` can't be executed
in parallel as they are changing state of static classes.
I used to run tests with NCrunch with disabled parallel execution,
thats why I didn't see a problem.
| C# | mit | vadimzozulya/FakeHttpContext |
ad6db7d37240d7433852137ed181e82c0de935eb | UnitTests/UnitTest1.cs | UnitTests/UnitTest1.cs | #region Usings
using NUnit.Framework;
#endregion
namespace UnitTests
{
[TestFixture]
public class UnitTest1
{
[Test]
public void TestMethod1()
{
Assert.True(true);
}
}
} | #region Usings
using NUnit.Framework;
using WebApplication.Controllers;
#endregion
namespace UnitTests
{
[TestFixture]
public class UnitTest1
{
[Test]
public void TestMethod1()
{
var controller = new HabitController();
Assert.True(true);
}
}
} | Replace test with test stub | Replace test with test stub
| C# | mit | SmartStepGroup/AgileCamp2015_Master,SmartStepGroup/AgileCamp2015_Master,SmartStepGroup/AgileCamp2015_Master |
54188aa5b9b6c0dd0a40edbd1627bffce4f2465d | src/MobileApps/MyDriving/MyDriving.AzureClient/AzureClient.cs | src/MobileApps/MyDriving/MyDriving.AzureClient/AzureClient.cs | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for details.
using Microsoft.WindowsAzure.MobileServices;
namespace MyDriving.AzureClient
{
public class AzureClient : IAzureClient
{
const string DefaultMobileServiceU... | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for details.
using Microsoft.WindowsAzure.MobileServices;
namespace MyDriving.AzureClient
{
public class AzureClient : IAzureClient
{
const string DefaultMobileServiceU... | Make sure there is only one MobileServiceClient | Make sure there is only one MobileServiceClient
| C# | mit | Azure-Samples/MyDriving,Azure-Samples/MyDriving,Azure-Samples/MyDriving |
5f89e4ff2fa111d9e90dace0c6439fa5c00c0944 | Lombiq.HelpfulExtensions/Extensions/SiteTexts/Startup.cs | Lombiq.HelpfulExtensions/Extensions/SiteTexts/Startup.cs | using Lombiq.HelpfulExtensions.Extensions.SiteTexts.Services;
using Microsoft.Extensions.DependencyInjection;
using OrchardCore.Data.Migration;
using OrchardCore.Modules;
namespace Lombiq.HelpfulExtensions.Extensions.SiteTexts;
[Feature(FeatureIds.SiteTexts)]
public class Startup : StartupBase
{
public override v... | using Lombiq.HelpfulExtensions.Extensions.SiteTexts.Services;
using Microsoft.Extensions.DependencyInjection;
using OrchardCore.Data.Migration;
using OrchardCore.Modules;
namespace Lombiq.HelpfulExtensions.Extensions.SiteTexts;
[Feature(FeatureIds.SiteTexts)]
public class Startup : StartupBase
{
public override v... | Correct feature attribute to indicate dependency. | Correct feature attribute to indicate dependency. | C# | bsd-3-clause | Lombiq/Helpful-Extensions,Lombiq/Helpful-Extensions |
909e88cb112c59e5256f14771c675202b5a8c0f4 | Clubhouse.io.net/Entities/Labels/ClubhouseCreateLabelParams.cs | Clubhouse.io.net/Entities/Labels/ClubhouseCreateLabelParams.cs | using Newtonsoft.Json;
namespace Clubhouse.io.net.Entities.Labels
{
public class ClubhouseCreateLabelParams
{
[JsonProperty(PropertyName = "color")]
public string Color { get; set; }
[JsonProperty(PropertyName = "external_id")]
public string ExternalID { get; set; }
[... | using Newtonsoft.Json;
namespace Clubhouse.io.net.Entities.Labels
{
public class ClubhouseCreateLabelParams
{
[JsonProperty(PropertyName = "color", NullValueHandling = NullValueHandling.Ignore)]
public string Color { get; set; }
[JsonProperty(PropertyName = "external_id", NullValueHan... | Create Label failing due to null Color & ExternalID being sent to API | Create Label failing due to null Color & ExternalID being sent to API
| C# | mit | MartynJones87/clubhouse.io.net |
93e369d0942cb42df4fb092543091295daa17481 | KotoriCore/Configuration/Kotori.cs | KotoriCore/Configuration/Kotori.cs | using System.Collections.Generic;
namespace KotoriCore.Configuration
{
/// <summary>
/// Kotori main configuration.
/// </summary>
public class Kotori
{
/// <summary>
/// Gets or sets the instance.
/// </summary>
/// <value>The instance.</value>
public strin... | using System.Collections.Generic;
namespace KotoriCore.Configuration
{
/// <summary>
/// Kotori main configuration.
/// </summary>
public class Kotori
{
/// <summary>
/// Gets or sets the instance.
/// </summary>
/// <value>The instance.</value>
public strin... | Add DocumentDb connection to main kotori config | Add DocumentDb connection to main kotori config
| C# | mit | kotorihq/kotori-core |
8d412de750da8df3da62afcd138b08232e44fa32 | tests/Magick.NET.Tests/Shared/MagickNETTests/TheDelegatesProperty.cs | tests/Magick.NET.Tests/Shared/MagickNETTests/TheDelegatesProperty.cs | // Copyright 2013-2020 Dirk Lemstra <https://github.com/dlemstra/Magick.NET/>
//
// Licensed under the ImageMagick License (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.imagemagick.org/script/license.php
//
// Unless req... | // Copyright 2013-2020 Dirk Lemstra <https://github.com/dlemstra/Magick.NET/>
//
// Licensed under the ImageMagick License (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.imagemagick.org/script/license.php
//
// Unless req... | Change because lqr support was added to the Linux and macOS build. | Change because lqr support was added to the Linux and macOS build.
| C# | apache-2.0 | dlemstra/Magick.NET,dlemstra/Magick.NET |
5a9de9d039042c6d56e3700b43932cf164f240c3 | PalasoUIWindowsForms.Tests/FontTests/FontHelperTests.cs | PalasoUIWindowsForms.Tests/FontTests/FontHelperTests.cs | using System;
using System.Drawing;
using NUnit.Framework;
using Palaso.UI.WindowsForms;
namespace PalasoUIWindowsForms.Tests.FontTests
{
[TestFixture]
public class FontHelperTests
{
[SetUp]
public void SetUp()
{
// setup code goes here
}
[TearDown]
public void TearDown()
{
// tear down code ... | using System;
using System.Drawing;
using System.Linq;
using NUnit.Framework;
using Palaso.UI.WindowsForms;
namespace PalasoUIWindowsForms.Tests.FontTests
{
[TestFixture]
public class FontHelperTests
{
[Test]
public void MakeFont_FontName_ValidFont()
{
using (var sourceFont = SystemFonts.DefaultFont)
{... | Fix mono bug in the FontHelper class | Fix mono bug in the FontHelper class
| C# | mit | chrisvire/libpalaso,ermshiperete/libpalaso,gtryus/libpalaso,mccarthyrb/libpalaso,chrisvire/libpalaso,glasseyes/libpalaso,ermshiperete/libpalaso,hatton/libpalaso,mccarthyrb/libpalaso,darcywong00/libpalaso,ermshiperete/libpalaso,JohnThomson/libpalaso,glasseyes/libpalaso,JohnThomson/libpalaso,chrisvire/libpalaso,gtryus/li... |
ce2e4cf47d4edcb357630d0f8db8732cf16e6ad8 | Src/CrossStitch.Core/Modules/Stitches/StitchesConfiguration.cs | Src/CrossStitch.Core/Modules/Stitches/StitchesConfiguration.cs | using CrossStitch.Core.Configuration;
namespace CrossStitch.Core.Modules.Stitches
{
public class StitchesConfiguration : IModuleConfiguration
{
public static StitchesConfiguration GetDefault()
{
return ConfigurationLoader.GetConfiguration<StitchesConfiguration>("stitches.json");
... | using CrossStitch.Core.Configuration;
namespace CrossStitch.Core.Modules.Stitches
{
public class StitchesConfiguration : IModuleConfiguration
{
public static StitchesConfiguration GetDefault()
{
return ConfigurationLoader.GetConfiguration<StitchesConfiguration>("stitches.json");
... | Add some default values for StitchConfiguration | [Stitches] Add some default values for StitchConfiguration
| C# | apache-2.0 | Whiteknight/CrossStitch,Whiteknight/CrossStitch |
e50df97b1092eac24210f3f86fed53249cfa41fc | osu.Framework.Tests/Audio/AudioCollectionManagerTest.cs | osu.Framework.Tests/Audio/AudioCollectionManagerTest.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 NUnit.Framework;
using osu.Framework.Audio;
namespace osu.Framework.Tests.Audio
{
[TestFixture]
public class AudioCollectionManage... | // 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 NUnit.Framework;
using osu.Framework.Audio;
namespace osu.Framework.Tests.Audio
{
[TestFixture]
public class AudioCollectionManage... | Increase test wait times (appveyor be slow) | Increase test wait times (appveyor be slow)
| C# | mit | peppy/osu-framework,smoogipooo/osu-framework,ppy/osu-framework,smoogipooo/osu-framework,ZLima12/osu-framework,ppy/osu-framework,ppy/osu-framework,ZLima12/osu-framework,peppy/osu-framework,peppy/osu-framework |
002aab3e76d2e84518fa2f8fa06c85ee068757cc | ElectronicCash.Tests/SecretSplittingTests.cs | ElectronicCash.Tests/SecretSplittingTests.cs | using NUnit.Framework;
using SecretSplitting;
namespace ElectronicCash.Tests
{
[TestFixture]
class SecretSplittingTests
{
private static readonly byte[] Message = Helpers.GetBytes("Supersecretmessage");
private static readonly byte[] RandBytes = Helpers.GetRandomBytes(Helpers.GetString(Mes... | using NUnit.Framework;
using SecretSplitting;
namespace ElectronicCash.Tests
{
[TestFixture]
class SecretSplittingTests
{
private static readonly byte[] Message = Helpers.GetBytes("Supersecretmessage");
private static readonly byte[] RandBytes = Helpers.GetRandomBytes(Helpers.GetString(Mes... | Fix unit test so it does unprotecting and padding | Fix unit test so it does unprotecting and padding
| C# | mit | 0culus/ElectronicCash |
317da2d01f457db22b5d2cc66729ff73988dbc4e | XHRTool.UI.WPF/ViewModels/UrlHistoryModel.cs | XHRTool.UI.WPF/ViewModels/UrlHistoryModel.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Policy;
using System.Text;
using System.Threading.Tasks;
using XHRTool.XHRLogic.Common;
namespace XHRTool.UI.WPF.ViewModels
{
[Serializable]
public class UrlHistoryModel
{
public UrlHistoryModel(string url, st... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Policy;
using System.Text;
using System.Threading.Tasks;
using XHRTool.XHRLogic.Common;
namespace XHRTool.UI.WPF.ViewModels
{
[Serializable]
public class UrlHistoryModel
{
public UrlHistoryModel(string url, st... | Fix string comparison for URL history | Fix string comparison for URL history
| C# | agpl-3.0 | oda1560/XHRTool,oda1560/XHRTool |
545fc0d5726f4740296808ec8c9f5c1ba712a9bc | src/Stripe.net/Services/PaymentMethods/BillingDetailsOptions.cs | src/Stripe.net/Services/PaymentMethods/BillingDetailsOptions.cs | namespace Stripe
{
using Newtonsoft.Json;
public class BillingDetailsOptions : INestedOptions
{
[JsonProperty("address")]
public AddressOptions Address { get; set; }
[JsonProperty("country")]
public string Country { get; set; }
[JsonProperty("line1")]
publi... | namespace Stripe
{
using Newtonsoft.Json;
public class BillingDetailsOptions : INestedOptions
{
[JsonProperty("address")]
public AddressOptions Address { get; set; }
[JsonProperty("email")]
public string Email { get; set; }
[JsonProperty("name")]
public str... | Fix BillingDetails on PaymentMethod creation to have the right params | Fix BillingDetails on PaymentMethod creation to have the right params
| C# | apache-2.0 | stripe/stripe-dotnet,richardlawley/stripe.net |
7d145a74704d61a1a44360cac41cd20be0180495 | osu.Game.Tests/Visual/UserInterface/TestSceneLoadingSpinner.cs | osu.Game.Tests/Visual/UserInterface/TestSceneLoadingSpinner.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Graphics;
using osu.Framework.Graphics.Shapes;
using osu.Game.Graphics.UserInterface;
using osuTK.Graphics;
namespace osu.Game.Tests.Visual.UserInte... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Graphics;
using osu.Framework.Graphics.Shapes;
using osu.Game.Graphics.UserInterface;
using osuTK.Graphics;
namespace osu.Game.Tests.Visual.UserInte... | Add test for loading spinner with box | Add test for loading spinner with box
| C# | mit | ppy/osu,smoogipoo/osu,peppy/osu,EVAST9919/osu,smoogipooo/osu,NeoAdonis/osu,EVAST9919/osu,smoogipoo/osu,johnneijzen/osu,peppy/osu,2yangk23/osu,NeoAdonis/osu,2yangk23/osu,ppy/osu,johnneijzen/osu,UselessToucan/osu,UselessToucan/osu,ppy/osu,smoogipoo/osu,NeoAdonis/osu,peppy/osu-new,peppy/osu,UselessToucan/osu |
614dc8f4d19e6a0c618fa1ba42ff1e6b6979883e | src/umbraco.editorControls/imagecropper/DataTypeData.cs | src/umbraco.editorControls/imagecropper/DataTypeData.cs | using System.Xml;
namespace umbraco.editorControls.imagecropper
{
public class DataTypeData : umbraco.cms.businesslogic.datatype.DefaultData
{
public DataTypeData(umbraco.cms.businesslogic.datatype.BaseDataType DataType) : base(DataType) { }
public override XmlNode ToXMl(XmlDocument d... | using System.Xml;
namespace umbraco.editorControls.imagecropper
{
public class DataTypeData : umbraco.cms.businesslogic.datatype.DefaultData
{
public DataTypeData(umbraco.cms.businesslogic.datatype.BaseDataType DataType) : base(DataType) { }
public override XmlNode ToXMl(XmlDocument d... | Fix U4-2711 add Null Check to ToXMl method | Fix U4-2711 add Null Check to ToXMl method
Fixes Object reference not set to an instance of an object. at
umbraco.editorControls.imagecropper.DataTypeData.ToXMl(XmlDocument data)
| C# | mit | mittonp/Umbraco-CMS,AndyButland/Umbraco-CMS,VDBBjorn/Umbraco-CMS,JimBobSquarePants/Umbraco-CMS,abryukhov/Umbraco-CMS,dawoe/Umbraco-CMS,engern/Umbraco-CMS,aaronpowell/Umbraco-CMS,m0wo/Umbraco-CMS,Jeavon/Umbraco-CMS-RollbackTweak,rajendra1809/Umbraco-CMS,gavinfaux/Umbraco-CMS,YsqEvilmax/Umbraco-CMS,m0wo/Umbraco-CMS,hfloy... |
567a9b38a37ea4d22f649c62a13cee1445615f48 | NET/Libraries/Demos/Displays/LedShiftRegister/Program.cs | NET/Libraries/Demos/Displays/LedShiftRegister/Program.cs | using System;
using System.Threading.Tasks;
using Treehopper;
using Treehopper.Libraries.Displays;
namespace LedShiftRegisterDemo
{
class Program
{
static void Main(string[] args)
{
App().Wait();
}
static async Task App()
{
var board = await Con... | using System;
using System.Linq;
using System.Threading.Tasks;
using Treehopper;
using Treehopper.Libraries.Displays;
namespace LedShiftRegisterDemo
{
class Program
{
static void Main(string[] args)
{
App().Wait();
}
static async Task App()
{
va... | Use two shift registers with two bar graphs and an collection | Use two shift registers with two bar graphs and an collection
| C# | mit | treehopper-electronics/treehopper-sdk,treehopper-electronics/treehopper-sdk,treehopper-electronics/treehopper-sdk,treehopper-electronics/treehopper-sdk,treehopper-electronics/treehopper-sdk,treehopper-electronics/treehopper-sdk |
2fef9efd50817e0460b965b6594ad0c6b6c646c1 | Source/Tests/TraktApiSharp.Tests/Experimental/Requests/Users/OAuth/TraktUserListLikeRequestTests.cs | Source/Tests/TraktApiSharp.Tests/Experimental/Requests/Users/OAuth/TraktUserListLikeRequestTests.cs | namespace TraktApiSharp.Tests.Experimental.Requests.Users.OAuth
{
using FluentAssertions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using TraktApiSharp.Experimental.Requests.Base.Post.Bodyless;
using TraktApiSharp.Experimental.Requests.Users.OAuth;
[TestClass]
public class TraktUserL... | namespace TraktApiSharp.Tests.Experimental.Requests.Users.OAuth
{
using FluentAssertions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using TraktApiSharp.Experimental.Requests.Base.Post.Bodyless;
using TraktApiSharp.Experimental.Requests.Users.OAuth;
using TraktApiSharp.Requests;
[Test... | Add test for authorization requirement in TraktUserListLikeRequest | Add test for authorization requirement in TraktUserListLikeRequest
| C# | mit | henrikfroehling/TraktApiSharp |
64489f329d3362946db5261a69a168dd3c87ab30 | Common/InterfaceSelector.cs | Common/InterfaceSelector.cs | using System.Net.NetworkInformation;
using System.Net.Sockets;
using System.Windows.Forms;
namespace Common
{
public partial class InterfaceSelectorComboBox : ComboBox
{
public InterfaceSelectorComboBox()
{
InitializeComponent();
NetworkInterface[] interfaces... | using System.Net.NetworkInformation;
using System.Net.Sockets;
using System.Windows.Forms;
namespace Common
{
public partial class InterfaceSelectorComboBox : ComboBox
{
public InterfaceSelectorComboBox()
{
InitializeComponent();
Initalize();
... | Refresh interface list on change | Refresh interface list on change
| C# | mit | tewarid/net-tools,tewarid/NetTools |
867d23581666bf52bea0371f8c1c14b6e9d04b15 | MaxMind.MaxMindDb.Test/ThreadingTest.cs | MaxMind.MaxMindDb.Test/ThreadingTest.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Threading.Tasks;
using NUnit.Framework;
namespace MaxMind.MaxMindDb.Test
{
[TestFixture]
public class ThreadingTest
{
[Test]
public void TestParallelFor()
{
var reader = ne... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Threading.Tasks;
using NUnit.Framework;
namespace MaxMind.MaxMindDb.Test
{
[TestFixture]
public class ThreadingTest
{
[Test]
public void TestParallelFor()
{
var reader = ne... | Correct error message in thread test | Correct error message in thread test
| C# | apache-2.0 | am11/MaxMind-DB-Reader-dotnet,am11/MaxMind-DB-Reader-dotnet,maxmind/MaxMind-DB-Reader-dotnet |
723410c0577a581b2530477b0f54c3e35fed532e | src/Esri.ArcGISRuntime.Toolkit/XamarinForms/Shared/ExtensionMethods.cs | src/Esri.ArcGISRuntime.Toolkit/XamarinForms/Shared/ExtensionMethods.cs | using Xamarin.Forms;
#if __ANDROID__
using NativePoint = Android.Graphics.PointF;
using NativeColor = Android.Graphics.Color;
#elif __IOS__
using NativePoint = CoreGraphics.CGPoint;
#elif NETFX_CORE
using NativePoint = Windows.Foundation.Point;
#endif
#if NETFX_CORE
using NativeColor = Windows.UI.Color;
#endif
namesp... | using Xamarin.Forms;
#if __ANDROID__
using NativePoint = Android.Graphics.PointF;
using NativeColor = Android.Graphics.Color;
#elif __IOS__
using NativePoint = CoreGraphics.CGPoint;
#elif NETFX_CORE
using NativePoint = Windows.Foundation.Point;
#endif
#if NETFX_CORE
using NativeColor = Windows.UI.Color;
#endif
namesp... | Fix conversion from Xamarin Forms color to native color | Fix conversion from Xamarin Forms color to native color
| C# | apache-2.0 | Esri/arcgis-toolkit-dotnet |
de9c5a4b5ce780a17c7f0a5f8e7b3a7ce2fb46e0 | CertiPay.Common.Notifications/Notifications/EmailNotification.cs | CertiPay.Common.Notifications/Notifications/EmailNotification.cs | using System;
using System.Collections.Generic;
namespace CertiPay.Common.Notifications
{
/// <summary>
/// Represents an email notification sent a user, employee, or administrator
/// </summary>
public class EmailNotification : Notification
{
public static String QueueName { get { return ... | using System;
using System.Collections.Generic;
namespace CertiPay.Common.Notifications
{
/// <summary>
/// Represents an email notification sent a user, employee, or administrator
/// </summary>
public class EmailNotification : Notification
{
public static String QueueName { get { return ... | Tweak initialization for email notification | :lipstick: Tweak initialization for email notification
| C# | mit | mattgwagner/CertiPay.Common |
5aa2ce14c434b3e58e08bd0470507475df55a1c5 | WalletWasabi.Gui/Converters/WindowStateAfterSartJsonConverter.cs | WalletWasabi.Gui/Converters/WindowStateAfterSartJsonConverter.cs | using Avalonia.Controls;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Text;
namespace WalletWasabi.Gui.Converters
{
public class WindowStateAfterSartJsonConverter : JsonConverter
{
/// <inheritdoc />
public override bool CanConvert(Type objectType)
{
return objectType ... | using Avalonia.Controls;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Text;
namespace WalletWasabi.Gui.Converters
{
public class WindowStateAfterSartJsonConverter : JsonConverter
{
/// <inheritdoc />
public override bool CanConvert(Type objectType)
{
return objectType ... | Remove duplicae null check, simplified state check | Remove duplicae null check, simplified state check
| C# | mit | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet |
c6b99091d98f77e8c70890d69b665120efbdd92b | src/SFA.DAS.EmployerFinance.Jobs/ScheduledJobs/ExpireFundsJob.cs | src/SFA.DAS.EmployerFinance.Jobs/ScheduledJobs/ExpireFundsJob.cs | using System.Linq;
using System.Threading.Tasks;
using Microsoft.Azure.WebJobs;
using Microsoft.Extensions.Logging;
using NServiceBus;
using SFA.DAS.EmployerFinance.Data;
using SFA.DAS.EmployerFinance.Interfaces;
using SFA.DAS.EmployerFinance.Messages.Commands;
namespace SFA.DAS.EmployerFinance.Jobs.ScheduledJobs
{
... | using System.Linq;
using System.Threading.Tasks;
using Microsoft.Azure.WebJobs;
using Microsoft.Extensions.Logging;
using NServiceBus;
using SFA.DAS.EmployerFinance.Data;
using SFA.DAS.EmployerFinance.Interfaces;
using SFA.DAS.EmployerFinance.Messages.Commands;
namespace SFA.DAS.EmployerFinance.Jobs.ScheduledJobs
{
... | Add logging to webjob start and end | [CON-2942] Add logging to webjob start and end
| C# | mit | SkillsFundingAgency/das-employerapprenticeshipsservice,SkillsFundingAgency/das-employerapprenticeshipsservice,SkillsFundingAgency/das-employerapprenticeshipsservice |
391576039c6f7fc6dfaae300d5447a1888a34b6d | Tests/DisplayTests/FullScreen.cs | Tests/DisplayTests/FullScreen.cs | using System;
using System.Collections.Generic;
using AgateLib;
using AgateLib.DisplayLib;
using AgateLib.Geometry;
using AgateLib.InputLib;
namespace Tests.DisplayTests
{
class FullscreenTest : IAgateTest
{
public string Name
{
get { return "Full Screen"; }
}
public string Category
{... | using System;
using System.Collections.Generic;
using AgateLib;
using AgateLib.DisplayLib;
using AgateLib.Geometry;
using AgateLib.InputLib;
namespace Tests.DisplayTests
{
class FullscreenTest : IAgateTest
{
public string Name
{
get { return "Full Screen"; }
}
public string Category
{... | Add text to fullscreen test. | Add text to fullscreen test. | C# | mit | eylvisaker/AgateLib |
5094bd4ac1d8d4337f3721f5a93357d36e6cd380 | Voxalia/ServerGame/TagSystem/TagBases/PlayerTagBase.cs | Voxalia/ServerGame/TagSystem/TagBases/PlayerTagBase.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Frenetic.TagHandlers;
using Frenetic.TagHandlers.Objects;
using Voxalia.ServerGame.TagSystem.TagObjects;
using Voxalia.ServerGame.ServerMainSystem;
using Voxalia.ServerGame.EntitySystem;
using Voxalia.Shared;
namespace Voxalia... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Frenetic.TagHandlers;
using Frenetic.TagHandlers.Objects;
using Voxalia.ServerGame.TagSystem.TagObjects;
using Voxalia.ServerGame.ServerMainSystem;
using Voxalia.ServerGame.EntitySystem;
using Voxalia.Shared;
namespace Voxalia... | Extend PlayerTags to accept name or entityID | Extend PlayerTags to accept name or entityID
| C# | mit | Morphan1/Voxalia,Morphan1/Voxalia,Morphan1/Voxalia |
c3c9a6da3c25cf467e6ba8cb1fb6bb53dbde46b8 | Trappist/src/Promact.Trappist.Repository/Questions/QuestionRepository.cs | Trappist/src/Promact.Trappist.Repository/Questions/QuestionRepository.cs | using System.Collections.Generic;
using Promact.Trappist.DomainModel.Models.Question;
using System.Linq;
using Promact.Trappist.DomainModel.DbContext;
namespace Promact.Trappist.Repository.Questions
{
public class QuestionRepository : IQuestionRepository
{
private readonly TrappistDbContext _dbContext... | using System.Collections.Generic;
using Promact.Trappist.DomainModel.Models.Question;
using System.Linq;
using Promact.Trappist.DomainModel.DbContext;
namespace Promact.Trappist.Repository.Questions
{
public class QuestionRepository : IQuestionRepository
{
private readonly TrappistDbContext _dbContext... | Create server side API for single multiple answer question | Create server side API for single multiple answer question
| C# | mit | Promact/trappist,Promact/trappist,Promact/trappist,Promact/trappist,Promact/trappist |
1f6e098f74623ddb83f456f3b14023ad69d523ab | src/Google.Events.Protobuf/Cloud/PubSub/V1/ConverterAttributes.cs | src/Google.Events.Protobuf/Cloud/PubSub/V1/ConverterAttributes.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 i... | // 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 i... | Fix PubSub converter attribute in protobuf | Fix PubSub converter attribute in protobuf
PubsubMessage is now wrapped by MessagePublishedData
| C# | apache-2.0 | googleapis/google-cloudevents-dotnet,googleapis/google-cloudevents-dotnet |
93f1804cd7b51e23eed3d2f54c4943f0f8c02175 | PrehensilePonyTail/PPTail/Program.cs | PrehensilePonyTail/PPTail/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Extensions.DependencyInjection;
using PPTail.Entities;
using PPTail.Interfaces;
namespace PPTail
{
public class Program
{
public static void Main(string[] args)
{
(var argsAreValid, var argumentErrro... | using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Extensions.DependencyInjection;
using PPTail.Entities;
using PPTail.Interfaces;
using PPTail.Extensions;
namespace PPTail
{
public class Program
{
const string _connectionStringProviderKey = "Provider";
public ... | Make the system respect the Target ConnectionString Provider designation. | Make the system respect the Target ConnectionString Provider designation.
| C# | mit | bsstahl/PPTail,bsstahl/PPTail |
148f68b7bd0f765a56122ae66fc2bc6ec31b624d | Wukong/Controllers/AuthController.cs | Wukong/Controllers/AuthController.cs | using System.Collections.Generic;
using System.Linq;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Authentication;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authentication.Cookies;
using Microsoft.AspNetCore.Authentication.OpenIdConnect;
using Wukong.Models;
namespace Wukong.Controllers
{
... | using System.Collections.Generic;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Authentication;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authentication.Cookies;
using Microsoft.AspNetCore.Authentication.OpenIdConnect;
using Wukong.Models;
namespace Wukong.Controllers
{
[Route("oauth")]... | Make cookie valid for 30 days. | Make cookie valid for 30 days.
| C# | mit | gyrosworkshop/Wukong,gyrosworkshop/Wukong |
1442fefd15cb10fd78127c841b3a3ba8b0c0925a | test/GitHub.VisualStudio.UnitTests/GitHubAssemblyTests.cs | test/GitHub.VisualStudio.UnitTests/GitHubAssemblyTests.cs | using System.IO;
using System.Reflection;
using NUnit.Framework;
public class GitHubAssemblyTests
{
[Theory]
public void GitHub_Assembly_Should_Not_Reference_DesignTime_Assembly(string assemblyFile)
{
var asm = Assembly.LoadFrom(assemblyFile);
foreach (var referencedAssembly in asm.GetRefe... | using System;
using System.IO;
using System.Reflection;
using NUnit.Framework;
public class GitHubAssemblyTests
{
[Theory]
public void GitHub_Assembly_Should_Not_Reference_DesignTime_Assembly(string assemblyFile)
{
var asm = Assembly.LoadFrom(assemblyFile);
foreach (var referencedAssembly ... | Check assemblies reference System.Net.Http v4.0 | Check assemblies reference System.Net.Http v4.0
Check all GitHub.* assemblies reference System.Net.Http v4.0.0.0.
| C# | mit | github/VisualStudio,github/VisualStudio,github/VisualStudio |
c933bf70dfc3487d5013fef6ab3d4f87dd000a2b | src/QuartzNET-DynamoDB.Tests/Unit/CalendarSerialisationTests.cs | src/QuartzNET-DynamoDB.Tests/Unit/CalendarSerialisationTests.cs | using System;
using Quartz.Impl.Calendar;
using Xunit;
namespace Quartz.DynamoDB.Tests
{
/// <summary>
/// Tests the DynamoCalendar serialisation for all quartz derived calendar types.
/// </summary>
public class CalendarSerialisationTests
{
[Fact]
[Trait("Category", "Unit")]
... | using System;
using Quartz.Impl.Calendar;
using Xunit;
namespace Quartz.DynamoDB.Tests
{
/// <summary>
/// Tests the DynamoCalendar serialisation for all quartz derived calendar types.
/// </summary>
public class CalendarSerialisationTests
{
/// <summary>
/// Tests that the descrip... | Add unit test for annual calendar | Add unit test for annual calendar
| C# | apache-2.0 | lukeryannetnz/quartznet-dynamodb,lukeryannetnz/quartznet-dynamodb |
b50f93d07d2163fb70b183e32a54a2eae1921379 | KitKare.Server/Controllers/ValuesController.cs | KitKare.Server/Controllers/ValuesController.cs | using KitKare.Data.Models;
using KitKare.Data.Repositories;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using AutoMapper.QueryableExtensions;
using KitKare.Server.ViewModels;
namespace KitKare.Server.Controllers
{
public class ... | using KitKare.Data.Models;
using KitKare.Data.Repositories;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using AutoMapper.QueryableExtensions;
using KitKare.Server.ViewModels;
namespace KitKare.Server.Controllers
{
public class ... | Debug try catch added to values controller | Debug try catch added to values controller
| C# | mit | KitKare/KitKareService,KitKare/KitKareService |
9da139fdc07438fc45563e28fab3016d7ab78b60 | src/ILCompiler.DependencyAnalysisFramework/src/IDependencyNode.cs | src/ILCompiler.DependencyAnalysisFramework/src/IDependencyNode.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ILCompiler.DependencyAnalysisFramework
{
public interface IDependencyNode
{
bool Marked
{
get;
}
}
public interface IDependencyNode<Depende... | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Collections.Generic;
namespace ILCompiler.DependencyAnalysisFramework
{
public interface IDepende... | Add copyright header to new file | Add copyright header to new file
[tfs-changeset: 1650235]
| C# | mit | tijoytom/corert,gregkalapos/corert,botaberg/corert,tijoytom/corert,gregkalapos/corert,krytarowski/corert,shrah/corert,yizhang82/corert,tijoytom/corert,gregkalapos/corert,shrah/corert,krytarowski/corert,botaberg/corert,shrah/corert,yizhang82/corert,yizhang82/corert,botaberg/corert,gregkalapos/corert,krytarowski/corert,t... |
042bb9bba00f6a68279a0867344c421fb2449f03 | MSBuild/MSBuild.cs | MSBuild/MSBuild.cs | using System.Collections.Generic;
namespace Casper {
public class MSBuild : TaskBase {
public string WorkingDirectory { get; set; }
public string ProjectFile { get; set; }
public string[] Targets { get; set; }
public IDictionary<string, string> Properties { get; set; }
public override void Execute() {
... | using System.Collections.Generic;
using System.Collections;
namespace Casper {
public class MSBuild : TaskBase {
public string WorkingDirectory { get; set; }
public string ProjectFile { get; set; }
public IList Targets { get; set; }
public IDictionary Properties { get; set; }
public override void Execute(... | Change property types to better match up with Boo syntax | Change property types to better match up with Boo syntax
| C# | mit | eatdrinksleepcode/casper,eatdrinksleepcode/casper |
3f78163e875d68cc1227b05b20215f158146e035 | Tests/Cosmos.TestRunner.Core/TestKernelSets.cs | Tests/Cosmos.TestRunner.Core/TestKernelSets.cs | using System;
using System.Collections.Generic;
namespace Cosmos.TestRunner.Core
{
public static class TestKernelSets
{
public static IEnumerable<Type> GetStableKernelTypes()
{
yield return typeof(VGACompilerCrash.Kernel);
////yield return typeof(Cosmos.Compiler.Tests.E... | using System;
using System.Collections.Generic;
namespace Cosmos.TestRunner.Core
{
public static class TestKernelSets
{
public static IEnumerable<Type> GetStableKernelTypes()
{
yield return typeof(VGACompilerCrash.Kernel);
//yield return typeof(Cosmos.Compiler.Tests.Enc... | Enable all kernels except FAT. | Enable all kernels except FAT.
| C# | bsd-3-clause | tgiphil/Cosmos,jp2masa/Cosmos,tgiphil/Cosmos,zarlo/Cosmos,jp2masa/Cosmos,CosmosOS/Cosmos,fanoI/Cosmos,CosmosOS/Cosmos,zarlo/Cosmos,zarlo/Cosmos,fanoI/Cosmos,CosmosOS/Cosmos,trivalik/Cosmos,trivalik/Cosmos,fanoI/Cosmos,trivalik/Cosmos,CosmosOS/Cosmos,tgiphil/Cosmos,jp2masa/Cosmos,zarlo/Cosmos |
1e38e219b5a3b97c2832f8b6237f66b1b41a5ebf | BudgetAnalyser.Engine/Statement/Data/TransactionToTransactionDtoMapper.cs | BudgetAnalyser.Engine/Statement/Data/TransactionToTransactionDtoMapper.cs | using System;
using BudgetAnalyser.Engine.BankAccount;
using BudgetAnalyser.Engine.Budget;
using JetBrains.Annotations;
namespace BudgetAnalyser.Engine.Statement.Data
{
[AutoRegisterWithIoC]
internal partial class Mapper_TransactionDto_Transaction
{
private readonly IAccountTypeRepositor... | using System;
using BudgetAnalyser.Engine.BankAccount;
using BudgetAnalyser.Engine.Budget;
using JetBrains.Annotations;
namespace BudgetAnalyser.Engine.Statement.Data
{
[AutoRegisterWithIoC]
internal partial class Mapper_TransactionDto_Transaction
{
private readonly IAccountTypeRepositor... | Fix bug in Statement DTO mapper that expected bucket code to always have a value - it can be null. | Fix bug in Statement DTO mapper that expected bucket code to always have a value - it can be null.
| C# | mit | Benrnz/BudgetAnalyser |
b97ec37683c501fa7f1b371d71c61d6ef69012ea | src/Vlc.DotNet.Core/IAudioManagement.cs | src/Vlc.DotNet.Core/IAudioManagement.cs | namespace Vlc.DotNet.Core
{
public interface IAudioManagement
{
IAudioOutputsManagement Outputs { get; }
}
}
| namespace Vlc.DotNet.Core
{
public interface IAudioManagement
{
IAudioOutputsManagement Outputs { get; }
bool IsMute { get; set; }
void ToggleMute();
int Volume { get; set; }
ITracksManagement Tracks { get; }
int Channel { get; set; }
long Delay { g... | Add Audio properties to IAudiomanagement | Add Audio properties to IAudiomanagement
| C# | mit | RickyGAkl/Vlc.DotNet,marcomeyer/Vlc.DotNet,marcomeyer/Vlc.DotNet,raydtang/Vlc.DotNet,someonehan/Vlc.DotNet,agherardi/Vlc.DotNet,xue-blood/wpfVlc,thephez/Vlc.DotNet,thephez/Vlc.DotNet,raydtang/Vlc.DotNet,RickyGAkl/Vlc.DotNet,ZeBobo5/Vlc.DotNet,jeremyVignelles/Vlc.DotNet,agherardi/Vlc.DotNet,xue-blood/wpfVlc,briancowan/V... |
70cda655c8ef00c9de57ead8cb4d7f7b88f10186 | src/dotnet/ReSharperPlugin.PresentationAssistant/ActionIdBlacklist.cs | src/dotnet/ReSharperPlugin.PresentationAssistant/ActionIdBlacklist.cs | using System.Collections.Generic;
namespace JetBrains.ReSharper.Plugins.PresentationAssistant
{
public static class ActionIdBlacklist
{
private static readonly HashSet<string> ActionIds = new HashSet<string>
{
// These are the only actions that should be hidden
"TextCon... | using System.Collections.Generic;
namespace JetBrains.ReSharper.Plugins.PresentationAssistant
{
public static class ActionIdBlacklist
{
private static readonly HashSet<string> ActionIds = new HashSet<string>
{
// These are the only actions that should be hidden
"TextCon... | Improve text control black list | Improve text control black list
| C# | apache-2.0 | JetBrains/resharper-presentation-assistant |
b2445b0b0cf63211affc53163f74348d4baf7f19 | src/Nest/Modules/Indices/Fielddata/String/StringFielddataFormat.cs | src/Nest/Modules/Indices/Fielddata/String/StringFielddataFormat.cs | using System.Runtime.Serialization;
namespace Nest
{
public enum StringFielddataFormat
{
[EnumMember(Value = "paged_bytes")]
PagedBytes,
[EnumMember(Value = "doc_values")]
DocValues,
[EnumMember(Value = "disabled")]
Disabled
}
}
| using System.Runtime.Serialization;
namespace Nest
{
public enum StringFielddataFormat
{
[EnumMember(Value = "paged_bytes")]
PagedBytes,
[EnumMember(Value = "disabled")]
Disabled
}
}
| Remove doc_values fielddata format for strings | Remove doc_values fielddata format for strings
Looks like this was deprecated in 2.0 - https://www.elastic.co/guide/en/elasticsearch/reference/2.0/fielddata.html#fielddata-format
Will mark as obsolete in 2.x branch with note that removed in 5.0
| C# | apache-2.0 | elastic/elasticsearch-net,TheFireCookie/elasticsearch-net,TheFireCookie/elasticsearch-net,CSGOpenSource/elasticsearch-net,adam-mccoy/elasticsearch-net,CSGOpenSource/elasticsearch-net,CSGOpenSource/elasticsearch-net,TheFireCookie/elasticsearch-net,adam-mccoy/elasticsearch-net,adam-mccoy/elasticsearch-net,elastic/elastic... |
44007de31c3c77280b6564cf286582a81f3d89ae | ConsoleApps/Repack/Repack/Program.cs | ConsoleApps/Repack/Repack/Program.cs | using System;
using Humanizer;
namespace Repack
{
internal class Program
{
public static void Main(string[] args)
{
Console.WriteLine("Usage: repack [date]");
Console.WriteLine("Prints how long it is until your birthday.");
Console.WriteLine("If you don't ... | using System;
using Humanizer;
namespace Repack
{
internal class Program
{
public static void Main(string[] args)
{
Console.WriteLine("Usage: repack [date]");
Console.WriteLine("Prints how long it is until your birthday.");
Console.WriteLine("If you don't ... | Simplify the code that ensures a birthday is in the future. | Simplify the code that ensures a birthday is in the future.
| C# | mit | jquintus/spikes,jquintus/spikes,jquintus/spikes,jquintus/spikes |
4dcba802e8ec68a9ae5f7f30e3e2bb317c8850b5 | Builder/Options.cs | Builder/Options.cs | using CommandLine;
using CommandLine.Text;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Builder
{
public class Options
{
[Option('a', "buildDir", Required = true, HelpText = "")]
public string BuildDir { get; set;... | using CommandLine;
using CommandLine.Text;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Builder
{
public class Options
{
[Option('a', "buildDir", Required = true, HelpText = "")]
public string BuildDir { get; set;... | Add new command option "skipDetect" | Add new command option "skipDetect"
Our cmd line parser currently blows up if it receives a param it does not
know about, and thus the new "skipDetect" arg has to be added to the list.
| C# | apache-2.0 | cloudfoundry/windows_app_lifecycle,cloudfoundry-incubator/windows_app_lifecycle,stefanschneider/windows_app_lifecycle |
dd53aa50bc0fa38839cbc0471bc8a6debe399013 | LogicalShift.Reason/Solvers/SimpleSingleClauseSolver.cs | LogicalShift.Reason/Solvers/SimpleSingleClauseSolver.cs | using LogicalShift.Reason.Api;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace LogicalShift.Reason.Solvers
{
/// <summary>
/// Represents a solver that can solve a single clause
/// </summary>
public class SimpleSingleClauseSolver : ISolver
... | using LogicalShift.Reason.Api;
using LogicalShift.Reason.Assignment;
using LogicalShift.Reason.Literals;
using LogicalShift.Reason.Unification;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace LogicalShift.Reason.Solvers
{
/// <summary>
/// Represents ... | Add a method to get the assignments from a particular literal when it's used as a predicate | Add a method to get the assignments from a particular literal when it's used as a predicate
| C# | apache-2.0 | Logicalshift/Reason |
deb167086212faa8d6c51fe911bcd54c1cc85c73 | osu.Game/Database/EmptyRealmSet.cs | osu.Game/Database/EmptyRealmSet.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.ComponentModel;
using Realms;
using Realms.Sc... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.ComponentModel;
using Realms;
using Realms.Sc... | Use `Array.Empty` instead of constructed list | Use `Array.Empty` instead of constructed list
| C# | mit | NeoAdonis/osu,NeoAdonis/osu,ppy/osu,ppy/osu,ppy/osu,NeoAdonis/osu,peppy/osu,peppy/osu,peppy/osu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.