commit stringlengths 40 40 | subject stringlengths 4 1.73k | repos stringlengths 5 127k | old_file stringlengths 2 751 | new_file stringlengths 2 751 | new_contents stringlengths 1 8.98k | old_contents stringlengths 0 6.59k | license stringclasses 13
values | lang stringclasses 23
values |
|---|---|---|---|---|---|---|---|---|
ff401a82dcb5b50d6850dacc0d50c70da48ff860 | Remove namespace | Haacked/Rothko | src/Threading/SystemSemaphore.cs | src/Threading/SystemSemaphore.cs | using System.Threading;
namespace Rothko
{
public sealed class SystemSemaphore : ISystemSemaphore
{
readonly Semaphore innerSemaphore;
public SystemSemaphore(int initialCount, int maximumCount, string name)
{
bool createdNewSemaphore;
innerSemaphore = new Semap... | using System.Threading;
namespace Rothko.Threading
{
public sealed class SystemSemaphore : ISystemSemaphore
{
readonly Semaphore innerSemaphore;
public SystemSemaphore(int initialCount, int maximumCount, string name)
{
bool createdNewSemaphore;
innerSemaphore =... | mit | C# |
57fdb2835b59035ad759a4dd3ec7a916591648a3 | Add test URL to libvideo.debug | jamesqo/libvideo,nguyenkien/libvideo,James-Ko/libvideo,i3arnon/libvideo,PFCKrutonium/libvideo,PFCKrutonium/libvideo,nguyenkien/libvideo,James-Ko/libvideo,jamesqo/libvideo | src/libvideo.debug/Program.cs | src/libvideo.debug/Program.cs | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using YoutubeExtractor;
namespace VideoLibrary.Debug
{
class Program
{
static void Main(string[] args)
{
string[] queries =
{
... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using YoutubeExtractor;
namespace VideoLibrary.Debug
{
class Program
{
static void Main(string[] args)
{
string[] queries =
{
... | bsd-2-clause | C# |
b9215d214e282fdf9764583b692770bfb3044e22 | Fix ContainerSlot not serializing correctly when empty. | space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14-content,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14-content,space-wizards/space-station-14,space-wizards/space-station-14-content | Content.Server/GameObjects/ContainerSlot.cs | Content.Server/GameObjects/ContainerSlot.cs | using System;
using Robust.Server.GameObjects.Components.Container;
using Robust.Server.Interfaces.GameObjects;
using Robust.Shared.Interfaces.GameObjects;
using System.Collections.Generic;
using Robust.Shared.ViewVariables;
namespace Content.Server.GameObjects
{
public class ContainerSlot : BaseContainer
{
... | using Robust.Server.GameObjects.Components.Container;
using Robust.Server.Interfaces.GameObjects;
using Robust.Shared.Interfaces.GameObjects;
using System.Collections.Generic;
using Robust.Shared.ViewVariables;
namespace Content.Server.GameObjects
{
public class ContainerSlot : BaseContainer
{
[ViewVa... | mit | C# |
8a6977213a285344f81a987af80cd0d6337ac243 | Fix displayed scores in gameplay leaderboard not tracking display mode changes | ppy/osu,peppy/osu,ppy/osu,peppy/osu,ppy/osu,peppy/osu | osu.Game/Screens/Play/HUD/SoloGameplayLeaderboard.cs | osu.Game/Screens/Play/HUD/SoloGameplayLeaderboard.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.Collections.Generic;
using System.Linq;
using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Game.Online.Leaderboards;
using osu.Game.Rul... | // 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.Bindables;
using osu.Game.Online.Leaderboards;
using osu.Game.Rul... | mit | C# |
a6d7fa5fe4eb2a61739259c0b586204f94ac9d4b | Send empty line for StackTrace to Bugsnag if Stack is absent in the Exception object | awseward/Bugsnag.NET,awseward/Bugsnag.NET | Bugsnag.NET/Extensions/Extensions.cs | Bugsnag.NET/Extensions/Extensions.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
namespace Bugsnag.NET.Extensions
{
static class Extensions
{
/// <remarks>Not sure I'm really thrilled with this...</remarks>
public static IEnumerable<Exception> Unwrap(... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
namespace Bugsnag.NET.Extensions
{
static class Extensions
{
/// <remarks>Not sure I'm really thrilled with this...</remarks>
public static IEnumerable<Exception> Unwrap(... | mit | C# |
7463b81a1f205fd7e5d1cba012f001bf57eaf0ef | Add test ensuring that user id is copied from request if present | Microsoft/ApplicationInsights-SDK-Labs | WCF/Shared.Tests/UserTelemetryInitializerTests.cs | WCF/Shared.Tests/UserTelemetryInitializerTests.cs | using Microsoft.ApplicationInsights.DataContracts;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Security.Principal;
using System.ServiceModel;
namespace Microsoft.ApplicationInsights.Wcf.Tests
{
[TestClass]
public class UserTelemetryInitializerTests
{
[TestMethod]... | using Microsoft.ApplicationInsights.DataContracts;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Security.Principal;
using System.ServiceModel;
namespace Microsoft.ApplicationInsights.Wcf.Tests
{
[TestClass]
public class UserTelemetryInitializerTests
{
[TestMethod]... | mit | C# |
fd6fd44a1dfa836df15798adbbaaf8171a22270d | Update assembly | Ulterius/server | RemoteTaskServer/Properties/AssemblyInfo.cs | RemoteTaskServer/Properties/AssemblyInfo.cs | #region
using System.Reflection;
using System.Runtime.InteropServices;
using log4net.Config;
#endregion
// 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: AssemblyTitl... | #region
using System.Reflection;
using System.Runtime.InteropServices;
using log4net.Config;
#endregion
// 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: AssemblyTitl... | mpl-2.0 | C# |
e4eed71802e01d243739c8e8f029a594b25c3eef | Replace default fav icon | melvinlee/nancy-api,melvinlee/nancy-api | src/nancy-api/Bootstrapper.cs | src/nancy-api/Bootstrapper.cs | using Nancy;
using NancyApi.Repository;
namespace NancyApi
{
public class Bootstrapper : DefaultNancyBootstrapper
{
// The bootstrapper enables you to reconfigure the composition of the framework,
// by overriding the various methods and properties.
// For more information https://gith... | using Nancy;
using NancyApi.Repository;
namespace NancyApi
{
public class Bootstrapper : DefaultNancyBootstrapper
{
// The bootstrapper enables you to reconfigure the composition of the framework,
// by overriding the various methods and properties.
// For more information https://gith... | mit | C# |
199f7a85adf55ad36e14f252270b8ce5f197a702 | Support for netstandard2.1 as per Issue #116 | mariotoffia/FluentDocker,mariotoffia/FluentDocker,mariotoffia/FluentDocker,mariotoffia/FluentDocker | Ductus.FluentDocker/Common/Logger.cs | Ductus.FluentDocker/Common/Logger.cs | #if NETSTANDARD2_1
using Microsoft.Extensions.Logging.Debug;
#endif
#if COREFX
using System;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
#endif
namespace Ductus.FluentDocker.Common
{
internal static class Logger
{
internal static bool Enabled = true;
public static ... | #if COREFX
#if NETSTANDARD2_1
using Microsoft.Extensions.Logging.Debug;
#endif
using System;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
#endif
namespace Ductus.FluentDocker.Common
{
internal static class Logger
{
internal static bool Enabled = true;
public static... | apache-2.0 | C# |
0b8f328e63773339f966131d396f63a94192c497 | Add comment about comment source | mattgwagner/CertiPay.Payroll.Common | CertiPay.Payroll.Common/TaxCalculationType.cs | CertiPay.Payroll.Common/TaxCalculationType.cs | using System.Collections.Generic;
namespace CertiPay.Payroll.Common
{
/// <summary>
/// The tax method indicates the tax calculation method to be used for the pay.
/// </summary>
public enum TaxCalculationType : byte
{
// Note: These descriptions were from the Oracle/PeopleSoft documentati... | using System.Collections.Generic;
namespace CertiPay.Payroll.Common
{
/// <summary>
/// The tax method indicates the tax calculation method to be used for the pay.
/// </summary>
public enum TaxCalculationType : byte
{
/// <summary>
/// Annualized: Select to annualize the earnings,... | mit | C# |
07e45906fb143b9c0cc3d8dd7ea3a1527bb4d4d5 | return empty list if no data in database | UNOPS/nofy | Nofy.EntityFrameworkCore/Extensions.cs | Nofy.EntityFrameworkCore/Extensions.cs | namespace Nofy.EntityFrameworkCore
{
using System;
using System.Collections.Generic;
using System.Linq;
using LinqKit;
using Microsoft.EntityFrameworkCore;
using Nofy.Core;
using Nofy.Core.Helper;
using Nofy.Core.Model;
internal static class Extensions
{
public static void AddConfiguration<TEntity>(
th... | namespace Nofy.EntityFrameworkCore
{
using System;
using System.Linq;
using LinqKit;
using Microsoft.EntityFrameworkCore;
using Nofy.Core;
using Nofy.Core.Helper;
using Nofy.Core.Model;
internal static class Extensions
{
public static void AddConfiguration<TEntity>(
this ModelBuilder modelBuilder,
Db... | mit | C# |
60db1da561df9af4a58fc06ee1b5f031d651584d | Fix extension folder detection in StringExtensions | Arkhist/Hacknet-Pathfinder,Arkhist/Hacknet-Pathfinder,Arkhist/Hacknet-Pathfinder,Arkhist/Hacknet-Pathfinder | PathfinderAPI/Util/StringExtensions.cs | PathfinderAPI/Util/StringExtensions.cs | using System;
using System.IO;
using Hacknet;
using Hacknet.Extensions;
namespace Pathfinder.Util
{
public static class StringExtensions
{
public static bool HasContent(this string s) => !string.IsNullOrWhiteSpace(s);
public static bool ContentFileExists(this string filename) => File.Exists(f... | using System;
using System.IO;
using Hacknet;
using Hacknet.Extensions;
namespace Pathfinder.Util
{
public static class StringExtensions
{
public static bool HasContent(this string s) => !string.IsNullOrWhiteSpace(s);
public static bool ContentFileExists(this string filename) => File.Exists(f... | mit | C# |
4c746dfda428f251a275703c5e691b8b746e3e12 | Fix assembly title | punker76/Espera,flagbug/Espera | Espera/Espera.View/Properties/AssemblyInfo.cs | Espera/Espera.View/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
using System.Windows;
[assembly: AssemblyTitle("Espera")]
[assembly: ComVisible(false)]
//In order to begin building localizable applications, set
//<UICulture>CultureYouAreCodingWith</UICulture> in your .csproj file
//inside a <PropertyGroup>. For exam... | using System.Reflection;
using System.Runtime.InteropServices;
using System.Windows;
[assembly: AssemblyTitle("Espera.View")]
[assembly: ComVisible(false)]
//In order to begin building localizable applications, set
//<UICulture>CultureYouAreCodingWith</UICulture> in your .csproj file
//inside a <PropertyGroup>. For... | mit | C# |
c91156563143e011c5302e4006fc2dd5d716bd61 | bump version | adamabdelhamed/PowerArgs,BlackFrog1/PowerArgs,BlackFrog1/PowerArgs,workabyte/PowerArgs,adamabdelhamed/PowerArgs,workabyte/PowerArgs | PowerArgs/Properties/AssemblyInfo.cs | PowerArgs/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Po... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Po... | mit | C# |
920580c3368c4a0ad86d2bf9f8c640ab19c68656 | Resolve #691 -- Split help command to multiple messages (#690) | LeagueSandbox/GameServer | GameServerLib/Chatbox/Commands/HelpCommand.cs | GameServerLib/Chatbox/Commands/HelpCommand.cs | using ENet;
namespace LeagueSandbox.GameServer.Chatbox.Commands
{
public class HelpCommand : ChatCommandBase
{
private const string COMMAND_PREFIX = "<font color=\"#E175FF\"><b>";
private const string COMMAND_SUFFIX = "</b></font>, ";
private readonly int MESSAGE_MAX_SIZE = 512;
... | using ENet;
namespace LeagueSandbox.GameServer.Chatbox.Commands
{
public class HelpCommand : ChatCommandBase
{
private const string COMMAND_PREFIX = "<font color =\"#E175FF\"><b>";
private const string COMMAND_SUFFIX = "</b></font>, ";
public override string Command => "help";
... | agpl-3.0 | C# |
c5d92d29b2a8b95d1a4cf01b73d5d57ec5bac7b2 | Add Util for getting scripts of a specific type | PearMed/Pear-Interaction-Engine | Scripts/Utils/ComponentExtensions.cs | Scripts/Utils/ComponentExtensions.cs | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using UnityEngine;
namespace Pear.InteractionEngine.Utils
{
/// <summary>
/// Extension methods for components
/// </summary>
static public class ComponentExtensions
{
/// <summary>
/// Ge... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Reflection;
using UnityEngine;
namespace Pear.InteractionEngine.Utils
{
/// <summary>
/// Extension methods for components
/// </summary>
static public class ComponentExtensions
{
/// <summary>
/// Gets or add a compone... | mit | C# |
2098c36163e29e317b9c4d5a8ac6963a84f3e507 | update task | zhouyongtao/my_aspnetmvc_learning,zhouyongtao/my_aspnetmvc_learning | my_aspnetmvc_learning/Controllers/ParallelController.cs | my_aspnetmvc_learning/Controllers/ParallelController.cs | using NLog;
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Web;
using System.Web.Mvc;
namespace my_aspnetmvc_learning.Controllers
{
public class ParallelController : Controller
{
private static readonly... | using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Web;
using System.Web.Mvc;
namespace my_aspnetmvc_learning.Controllers
{
public class ParallelController : Controller
{
// GET: Parallel
public Act... | mit | C# |
35625c2dad732fa7d40de0b38d4f744989d5dfd6 | Increase default count to 500 | Azure/azure-sdk-for-java,Azure/azure-sdk-for-java,selvasingh/azure-sdk-for-java,Azure/azure-sdk-for-java,Azure/azure-sdk-for-java,selvasingh/azure-sdk-for-java,Azure/azure-sdk-for-java,selvasingh/azure-sdk-for-java | net/Azure.Storage.Blobs.PerfStress/Core/CountOptions.cs | net/Azure.Storage.Blobs.PerfStress/Core/CountOptions.cs | using Azure.Test.PerfStress;
using CommandLine;
namespace Azure.Storage.Blobs.PerfStress.Core
{
public class CountOptions : PerfStressOptions
{
[Option('c', "count", Default = 500, HelpText = "Number of blobs")]
public int Count { get; set; }
}
}
| using Azure.Test.PerfStress;
using CommandLine;
namespace Azure.Storage.Blobs.PerfStress.Core
{
public class CountOptions : PerfStressOptions
{
[Option('c', "count", Default = 100, HelpText = "Number of blobs")]
public int Count { get; set; }
}
}
| mit | C# |
54dbe609eefc707ecb19d31886faae76303cb6bd | Build and publish nuget package 0.2.2 | QuickenLoans/XSerializer,rlyczynski/XSerializer | XSerializer/Properties/AssemblyInfo.cs | XSerializer/Properties/AssemblyInfo.cs | using System;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: Ass... | using System;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: Ass... | mit | C# |
509906cafeddbd1fda3d8244bcc5bad835bab95f | check session id | fandrei/AppMetrics,fandrei/AppMetrics | AppMetrics.DataCollector/LogEvent.ashx.cs | AppMetrics.DataCollector/LogEvent.ashx.cs | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Web;
namespace AppMetrics.DataCollector
{
/// <summary>
/// Summary description for LogEvent
/// </summary>
public class LogEvent : IHttpHandler
{
public ... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Web;
namespace AppMetrics.DataCollector
{
/// <summary>
/// Summary description for LogEvent
/// </summary>
public class LogEvent : IHttpHandler
{
public ... | apache-2.0 | C# |
83934af041721625cb4338ba695381dadb66b1aa | Bump to 0.9.1 | i3at/ArchiSteamFarm,blackpanther989/ArchiSteamFarm,KlappPc/ArchiSteamFarm,KlappPc/ArchiSteamFarm,JustArchi/ArchiSteamFarm,i3at/ArchiSteamFarm,JustArchi/ArchiSteamFarm,JustArchi/ArchiSteamFarm,KlappPc/ArchiSteamFarm,JustArchi/ArchiSteamFarm,blackpanther989/ArchiSteamFarm | ArchiSteamFarm/Properties/AssemblyInfo.cs | ArchiSteamFarm/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Ar... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Ar... | apache-2.0 | C# |
b7ad51f81fa87c4d36aacf7502e1df402a3c6fb9 | Refactor zip args | setchi/n_back_tracer,setchi/n_back_tracer | Assets/Scripts/BackgroundPatternTracer.cs | Assets/Scripts/BackgroundPatternTracer.cs | using UnityEngine;
using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using UniRx;
public class BackgroundPatternTracer : MonoBehaviour {
public GameObject Tile;
public int col;
public int row;
void Awake () {
transform.localPosition = new Vector3(-col * 1.7f / 2, -row... | using UnityEngine;
using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using UniRx;
public class BackgroundPatternTracer : MonoBehaviour {
public GameObject Tile;
public int col;
public int row;
void Awake () {
transform.localPosition = new Vector3(-col * 1.7f / 2, -row... | mit | C# |
9b89744729548c14bb80c211c8e4d74446298cea | Use proper case for text showing the current VM operation | dtzar/AzureBot,dtzar/AzureBot | AzureBot/Forms/VirtualMachineFormState.cs | AzureBot/Forms/VirtualMachineFormState.cs | namespace AzureBot.Forms
{
using System;
using System.Collections.Generic;
using System.Linq;
using Azure.Management.Models;
[Serializable]
public class VirtualMachineFormState
{
public VirtualMachineFormState(IEnumerable<VirtualMachine> availableVMs, Operations operation... | namespace AzureBot.Forms
{
using System;
using System.Collections.Generic;
using System.Linq;
using Azure.Management.Models;
[Serializable]
public class VirtualMachineFormState
{
public VirtualMachineFormState(IEnumerable<VirtualMachine> availableVMs, Operations operation... | mit | C# |
fc3305d7bfa28b15a19957a7ba6ca075ce6c1407 | Change the tests to not use reflection anymore but instead use the TestHttpMessageHandler | AlexGhiondea/OAuth.net,AlexGhiondea/OAuth.net | test/TestHelper.cs | test/TestHelper.cs | using System;
using System.Linq;
using System.Net.Http;
using System.Reflection;
using System.Threading.Tasks;
namespace OAuth.Net.Tests
{
public class TestHelper
{
private readonly string _apiKey;
private readonly string _clientSecret;
private readonly string _authToken;
priva... | using System;
using System.Net.Http;
using System.Reflection;
using System.Threading.Tasks;
namespace OAuth.Net.Tests
{
public class TestHelper
{
private readonly string _apiKey;
private readonly string _secret;
private readonly string _authToken;
private readonly string _authT... | mit | C# |
0998391684a1f2189d74d56d8c58e55920891be5 | Fix behavior of LuceneCommon.GetIndexMetadataPath to support unit tests | mtian/SiteExtensionGallery,KuduApps/NuGetGallery,projectkudu/SiteExtensionGallery,JetBrains/ReSharperGallery,grenade/NuGetGallery_download-count-patch,skbkontur/NuGetGallery,JetBrains/ReSharperGallery,KuduApps/NuGetGallery,ScottShingler/NuGetGallery,projectkudu/SiteExtensionGallery,skbkontur/NuGetGallery,grenade/NuGetG... | Website/Infrastructure/Lucene/LuceneCommon.cs | Website/Infrastructure/Lucene/LuceneCommon.cs | using System.IO;
using Lucene.Net.Util;
using System.Web.Hosting;
using Lucene.Net.Store;
using NuGetGallery.Configuration;
namespace NuGetGallery
{
internal static class LuceneCommon
{
internal static readonly Version LuceneVersion = Version.LUCENE_30;
private static SingleInstanceLockFactor... | using System.IO;
using Lucene.Net.Util;
using System.Web.Hosting;
using Lucene.Net.Store;
using NuGetGallery.Configuration;
namespace NuGetGallery
{
internal static class LuceneCommon
{
internal static readonly Version LuceneVersion = Version.LUCENE_30;
private static SingleInstanceLockFactor... | apache-2.0 | C# |
b09e3adb959a27f272700acd3501d7d90826b28b | Fix VerbosityMappingAttribute to allow multiple use | nuke-build/nuke,nuke-build/nuke,nuke-build/nuke,nuke-build/nuke | source/Nuke.Common/Tooling/VerbosityMappingAttribute.cs | source/Nuke.Common/Tooling/VerbosityMappingAttribute.cs | // Copyright 2019 Maintainers of NUKE.
// Distributed under the MIT License.
// https://github.com/nuke-build/nuke/blob/master/LICENSE
using System;
using System.Collections.Generic;
using System.Linq;
using JetBrains.Annotations;
using Nuke.Common.Execution;
namespace Nuke.Common.Tooling
{
[PublicAPI]
[Attri... | // Copyright 2019 Maintainers of NUKE.
// Distributed under the MIT License.
// https://github.com/nuke-build/nuke/blob/master/LICENSE
using System;
using System.Collections.Generic;
using System.Linq;
using JetBrains.Annotations;
using Nuke.Common.Execution;
namespace Nuke.Common.Tooling
{
[PublicAPI]
public... | mit | C# |
f1bb760e28aaafa4541a5a6e1cff2d47b1b13da2 | add 'available' boolean to Size response, add back missing Size response fields | vevix/DigitalOcean.API | DigitalOcean.API/Models/Responses/Size.cs | DigitalOcean.API/Models/Responses/Size.cs | using System.Collections.Generic;
namespace DigitalOcean.API.Models.Responses {
public class Size {
/// <summary>
/// A human-readable string that is used to uniquely identify each size.
/// </summary>
public string Slug { get; set; }
/// <summary>
/// The amount o... | using System.Collections.Generic;
namespace DigitalOcean.API.Models.Responses {
public class Size {
/// <summary>
/// A human-readable string that is used to uniquely identify each size.
/// </summary>
public string Slug { get; set; }
/// <summary>
/// The amount o... | mit | C# |
d9a1b470cd7b3b1f921db416610c4dfe2fbdaf0d | Fix overkill and use `switch` statement | peppy/osu-framework,peppy/osu-framework,ppy/osu-framework,ppy/osu-framework,ppy/osu-framework,peppy/osu-framework,smoogipooo/osu-framework,smoogipooo/osu-framework | osu.Framework/Host.cs | osu.Framework/Host.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.Platform;
using osu.Framework.Platform.Linux;
using osu.Framework.Platform.MacOS;
using osu.Framework.Platform.Windows;
using System;
namespace osu.... | // 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.Platform;
using osu.Framework.Platform.Linux;
using osu.Framework.Platform.MacOS;
using osu.Framework.Platform.Windows;
using System;
namespace osu.... | mit | C# |
89deb4be08b8d4d51be15b8bcc5b70b915bb2e15 | add test for Startup Request trace | shibayan/kudu,badescuga/kudu,YOTOV-LIMITED/kudu,WeAreMammoth/kudu-obsolete,uQr/kudu,juvchan/kudu,kali786516/kudu,chrisrpatterson/kudu,duncansmart/kudu,barnyp/kudu,projectkudu/kudu,shanselman/kudu,EricSten-MSFT/kudu,bbauya/kudu,mauricionr/kudu,mauricionr/kudu,shibayan/kudu,dev-enthusiast/kudu,chrisrpatterson/kudu,duncan... | Kudu.FunctionalTests/GitStabilityTests.cs | Kudu.FunctionalTests/GitStabilityTests.cs | using System;
using System.Linq;
using Kudu.Core.Deployment;
using Kudu.FunctionalTests.Infrastructure;
using Kudu.TestHarness;
using Xunit;
namespace Kudu.FunctionalTests
{
public class GitStabilityTests
{
[Fact]
public void NSimpleDeployments()
{
string repositoryName = "... | using System;
using System.Linq;
using Kudu.Core.Deployment;
using Kudu.FunctionalTests.Infrastructure;
using Kudu.TestHarness;
using Xunit;
namespace Kudu.FunctionalTests
{
public class GitStabilityTests
{
[Fact]
public void NSimpleDeployments()
{
string repositoryName = "... | apache-2.0 | C# |
9111e60a6f5931c97bc2bc5d7236384a0082bd05 | Update LineCap.cs | Core2D/Core2D,wieslawsoltes/Core2D,wieslawsoltes/Core2D,Core2D/Core2D,wieslawsoltes/Core2D,wieslawsoltes/Core2D | src/Core2D/Model/Style/LineCap.cs | src/Core2D/Model/Style/LineCap.cs | namespace Core2D.Style
{
public enum LineCap
{
Flat = 0,
Square = 1,
Round = 2
}
}
|
namespace Core2D.Style
{
public enum LineCap
{
Flat = 0,
Square = 1,
Round = 2
}
}
| mit | C# |
115c41f2884544b381ff6199ecb0d76a6473ba56 | Fix bug which was making the app crash when clicking outside of the spoiler form | Abc-Arbitrage/Abc.NCrafts.AllocationQuiz | Abc.NCrafts.App/Views/Performance2018GameView.xaml.cs | Abc.NCrafts.App/Views/Performance2018GameView.xaml.cs | using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using System.Windows.Navigation;
using Abc.NCrafts.App.ViewModels;
namespace Abc.NCrafts.App.Views
{
/// <summary>
/// Interaction logic for GameView.xaml
/// </summary>
public partial class Performance2018GameView : ... | using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using System.Windows.Navigation;
using Abc.NCrafts.App.ViewModels;
namespace Abc.NCrafts.App.Views
{
/// <summary>
/// Interaction logic for GameView.xaml
/// </summary>
public partial class Performance2018GameView : ... | mit | C# |
ff20941eb501fc848256af53229f9fea62b942ec | Update helpbox text | PhannGor/unity3d-rainbow-folders | Assets/RainbowFoldersAsset/RainbowFolders/Editor/Settings/RainbowFoldersSettingsEditor.cs | Assets/RainbowFoldersAsset/RainbowFolders/Editor/Settings/RainbowFoldersSettingsEditor.cs | /*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distrib... | /*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distrib... | apache-2.0 | C# |
d4c79cca3adfd02d83f7457a0e50c65c9727cdd5 | fix provider type | quandl/quandl-excel-windows | Quandl.Shared.Modules/models/DataArray.cs | Quandl.Shared.Modules/models/DataArray.cs | using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace Quandl.Shared.Models
{
public class DataArray
{
[JsonExtensionData] private IDictionary<string, JToken> _additionalData;
public List<List<objec... | using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace Quandl.Shared.Models
{
public class DataArray
{
[JsonExtensionData] private IDictionary<string, JToken> _additionalData;
public List<List<objec... | mit | C# |
8c2e2c380f762d3c84e82f21a8da4c20fd39cf6b | Fix runsynchronously exception | seiggy/AsterNET.ARI,skrusty/AsterNET.ARI,skrusty/AsterNET.ARI,skrusty/AsterNET.ARI,seiggy/AsterNET.ARI,seiggy/AsterNET.ARI | AsterNET.ARI/Middleware/Default/RESTActionConsumer.cs | AsterNET.ARI/Middleware/Default/RESTActionConsumer.cs | using System;
using System.Threading.Tasks;
namespace AsterNET.ARI.Middleware.Default
{
public class RestActionConsumer : IActionConsumer
{
private readonly StasisEndpoint _connectionInfo;
public RestActionConsumer(StasisEndpoint connectionInfo)
{
_connectionInfo = connect... | using System;
using System.Threading.Tasks;
namespace AsterNET.ARI.Middleware.Default
{
public class RestActionConsumer : IActionConsumer
{
private readonly StasisEndpoint _connectionInfo;
public RestActionConsumer(StasisEndpoint connectionInfo)
{
_connectionInfo = connect... | mit | C# |
e5f0b2a6146fca15c1fe1567baae704dda98198f | Build and publish nuget package | RockFramework/Rock.Messaging | Rock.Messaging/Properties/AssemblyInfo.cs | Rock.Messaging/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Ro... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Ro... | mit | C# |
538d5398c0dfa5f8dd2e963634673f138e7793f8 | Define Email struct | SICU-Stress-Measurement-System/frontend-cs | StressMeasurementSystem/Models/Patient.cs | StressMeasurementSystem/Models/Patient.cs | using System.Net.Mail;
namespace StressMeasurementSystem.Models
{
public class Patient
{
#region Structs
struct Name
{
public string Prefix { get; set; }
public string First { get; set; }
public string Middle { get; set; }
public string ... | namespace StressMeasurementSystem.Models
{
public class Patient
{
#region Structs
struct Name
{
public string Prefix { get; set; }
public string First { get; set; }
public string Middle { get; set; }
public string Last { get; set; }
... | apache-2.0 | C# |
c6c4369bdd251983b439faa24d30f9e0c330728e | Migrate JustMock test projects to new VS2017 format | telerik/JustMockLite | Telerik.JustMock.Tests.Base/Attributes.cs | Telerik.JustMock.Tests.Base/Attributes.cs | #if XUNIT
using System;
#if XUNIT2
using System.Collections.Generic;
using System.Linq;
#endif
using Xunit;
#if XUNIT2
using Xunit.Abstractions;
#endif
#endif
#if XUNIT2
#pragma warning disable xUnit1013
#endif
namespace Telerik.JustMock.XUnit.Test.Attributes
{
#if XUNIT
[SerializableAttribute]
[AttributeUs... | #if XUNIT
using System;
#if XUNIT2
using System.Collections.Generic;
using System.Linq;
#endif
using Xunit;
#if XUNIT2
using Xunit.Abstractions;
#endif
#endif
#if XUNIT2
#pragma warning disable xUnit1013
#endif
namespace Telerik.JustMock.XUnit.Test.Attributes
{
#if XUNIT
[SerializableAttribute]
[AttributeUs... | apache-2.0 | C# |
656599906b8ea5efd2291b733846dfbd94e51a60 | Fix size calculation for extracted Custom Widget | hwthomas/xwt,TheBrainTech/xwt,residuum/xwt,mminns/xwt,lytico/xwt,antmicro/xwt,iainx/xwt,mminns/xwt,mono/xwt,hamekoz/xwt,cra0zy/xwt,steffenWi/xwt,akrisiun/xwt | Xwt.XamMac/Xwt.Mac/CustomWidgetBackend.cs | Xwt.XamMac/Xwt.Mac/CustomWidgetBackend.cs | //
// CustomWidgetBackend.cs
//
// Author:
// Alex Corrado <corrado@xamarin.com>
//
// Copyright (c) 2013 Xamarin Inc
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without ... | //
// CustomWidgetBackend.cs
//
// Author:
// Alex Corrado <corrado@xamarin.com>
//
// Copyright (c) 2013 Xamarin Inc
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without ... | mit | C# |
c9dcfd6b69468c1f29dca0d4dae7e7323097087c | Bump version to 0.13.5 | quisquous/cactbot,quisquous/cactbot,quisquous/cactbot,quisquous/cactbot,quisquous/cactbot,quisquous/cactbot | CactbotOverlay/Properties/AssemblyInfo.cs | CactbotOverlay/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("CactbotOverlay")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("CactbotOverlay")]
[assembly: AssemblyC... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("CactbotOverlay")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("CactbotOverlay")]
[assembly: AssemblyC... | apache-2.0 | C# |
23f9ccffda386029e5949fc992f01f5a928a2e67 | fix issue with console quickedit mode where app hangs until key press | titanium007/Titanium-Web-Proxy,justcoding121/Titanium-Web-Proxy,titanium007/Titanium | Examples/Titanium.Web.Proxy.Examples.Basic/Program.cs | Examples/Titanium.Web.Proxy.Examples.Basic/Program.cs | using System;
using System.Diagnostics;
using System.Runtime.InteropServices;
namespace Titanium.Web.Proxy.Examples.Basic
{
public class Program
{
private static readonly ProxyTestController controller = new ProxyTestController();
public static void Main(string[] args)
{
/... | using System;
using System.Runtime.InteropServices;
namespace Titanium.Web.Proxy.Examples.Basic
{
public class Program
{
private static readonly ProxyTestController controller = new ProxyTestController();
public static void Main(string[] args)
{
//On Console exit make sure... | mit | C# |
d062f86af23be9f083123b93bb695b7877bc8c8f | Fix indentation | RockyTV/Duality.IronPython | 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;
namespace RockyTV.Duality.Plugins.IronPy... | 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;
namespace RockyTV.Duality.Plugins.IronPy... | mit | C# |
6292fa3bc12fe7f322286a20a062fb7f73e333be | Add ctor | mstrother/BmpListener | BmpListener/Bgp/ASPathSegment.cs | BmpListener/Bgp/ASPathSegment.cs | namespace BmpListener.Bgp
{
public class ASPathSegment
{
public ASPathSegment(Type type, int[] asns)
{
SegmentType = Type;
ASNs = asns;
}
public enum Type
{
AS_SET = 1,
AS_SEQUENCE,
AS_CONFED_SEQUENCE,
... | namespace BmpListener.Bgp
{
public class ASPathSegment
{
public enum Type
{
AS_SET = 1,
AS_SEQUENCE,
AS_CONFED_SEQUENCE,
AS_CONFED_SET
}
public Type SegmentType { get; set; }
public int[] ASNs { get; set; }
}
} | mit | C# |
b917fd7f206cbf0a15247fd029a031c7228bf8b6 | Implement Dispose pattern | vazgriz/CSharpGameLibrary,vazgriz/CSharpGameLibrary,rhynodegreat/CSharpGameLibrary,rhynodegreat/CSharpGameLibrary | CSGL.Vulkan/Vulkan/BufferView.cs | CSGL.Vulkan/Vulkan/BufferView.cs | using System;
using System.Collections.Generic;
namespace CSGL.Vulkan {
public class BufferViewCreateInfo {
public Buffer buffer;
public VkFormat format;
public ulong offset;
public ulong range;
}
public class BufferView : INative<VkBufferView>, IDisposable {
bool ... | using System;
using System.Collections.Generic;
namespace CSGL.Vulkan {
public class BufferViewCreateInfo {
public Buffer buffer;
public VkFormat format;
public ulong offset;
public ulong range;
}
public class BufferView : INative<VkBufferView>, IDisposable {
bool ... | mit | C# |
58022ab17d8de71fbc81b63505ea448cd6fb458b | Check digit: recognize infrastructural code and domain logic | ttitto/CSharp | CheckDigit/CheckDigit/Program.cs | CheckDigit/CheckDigit/Program.cs | namespace CheckDigit
{
class Program
{
static int GetControllDigit(long number)
{
int sum = 0;
bool isOddPos = true;
while (number > 0) // infrastructure
{
int digit = (int)(number % 10); // infrastructure
... | namespace CheckDigit
{
class Program
{
static int GetControllDigit(long number)
{
int sum = 0;
bool isOddPos = true;
while (number > 0)
{
int digit = (int)(number % 10);
if (isOddPos)
{
... | mit | C# |
70c57a17b9491c4385fb9c50ff8086bdecb707dd | Update IExceptionTelemeter.cs | tiksn/TIKSN-Framework | TIKSN.Core/Analytics/Telemetry/IExceptionTelemeter.cs | TIKSN.Core/Analytics/Telemetry/IExceptionTelemeter.cs | using System;
using System.Threading.Tasks;
namespace TIKSN.Analytics.Telemetry
{
public interface IExceptionTelemeter
{
Task TrackException(Exception exception);
Task TrackException(Exception exception, TelemetrySeverityLevel severityLevel);
}
}
| using System;
using System.Threading.Tasks;
namespace TIKSN.Analytics.Telemetry
{
public interface IExceptionTelemeter
{
Task TrackException(Exception exception);
Task TrackException(Exception exception, TelemetrySeverityLevel severityLevel);
}
} | mit | C# |
bd054e5008527632ec87934de3258b712a8242bd | Use default portrait if provided one is null | joshbayley/spacetrader-unity,spriest487/spacetrader-unity | Assets/Crew/CrewConfiguration.cs | Assets/Crew/CrewConfiguration.cs | #pragma warning disable 0649
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
public class CrewConfiguration : ScriptableObject
{
[SerializeField]
private TextAsset forenameList;
[SerializeField]
private TextAsset surnameList;
private string[] forenames;
private strin... | #pragma warning disable 0649
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
public class CrewConfiguration : ScriptableObject
{
[SerializeField]
private TextAsset forenameList;
[SerializeField]
private TextAsset surnameList;
private string[] forenames;
private strin... | mit | C# |
8f0b0901f6890db319069f1f91a684983b152dce | reset speed on level load | lukaselmer/ethz-game-lab,lukaselmer/ethz-game-lab,lukaselmer/ethz-game-lab | Assets/Scripts/LevelSelection.cs | Assets/Scripts/LevelSelection.cs | using UnityEngine;
using System.Collections.Generic;
using Game;
using System;
class LevelSelection {
public void LoadLevels () {
Application.LoadLevel("Levels");
}
public void LoadNextLevel () {
TimeManager.Speed1();
// TODO: refactor this
if(Application.loadedLevelName == "Spring")
Application.LoadLe... | using UnityEngine;
using System.Collections.Generic;
using Game;
using System;
class LevelSelection {
public void LoadLevels () {
Application.LoadLevel("Levels");
}
public void LoadNextLevel () {
// TODO: refactor this
if(Application.loadedLevelName == "Spring")
Application.LoadLevel("Summer");
if(Appli... | mit | C# |
146bf5491604bd29ecee6904b6fac880f89f0873 | rename version const | bddckr/VRTK-PUN-NetworkTest | Assets/Scripts/NetworkManager.cs | Assets/Scripts/NetworkManager.cs | namespace NetworkTest
{
using Photon;
using UnityEngine;
public sealed class NetworkManager : PunBehaviour
{
private const string NetworkVersion = "0.0.1";
private void OnEnable()
{
PhotonNetwork.ConnectUsingSettings(NetworkVersion);
}
public overr... | namespace NetworkTest
{
using Photon;
using UnityEngine;
public sealed class NetworkManager : PunBehaviour
{
private const string GameNetworkVersion = "0.0.1";
private void OnEnable()
{
PhotonNetwork.ConnectUsingSettings(GameNetworkVersion);
}
publ... | mit | C# |
3e8b51f72264c4c051cac35c2da357faa6e32f92 | Add default cookie container | joelverhagen/SocketToMe | Knapcode.SocketToMe/Http/CookieHandler.cs | Knapcode.SocketToMe/Http/CookieHandler.cs | using System.Linq;
using System.Net;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
namespace Knapcode.SocketToMe.Http
{
public class CookieHandler : DelegatingHandler
{
private const string CookieKey = "Cookie";
private const string SetCookieKey = "Set-Cookie";
... | using System.Linq;
using System.Net;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
namespace Knapcode.SocketToMe.Http
{
public class CookieHandler : DelegatingHandler
{
private const string CookieKey = "Cookie";
private const string SetCookieKey = "Set-Cookie";
... | mit | C# |
2fe798d1f2c3388d3ca9656a46332a1c3e78ae10 | Add option to ignore unrecognized characters and encode/decode them as "?". Might be a bit hackish, but this avoids having to reload the game info. | Prof9/TextPet | LibTextPet/Text/CustomFallbackEncoding.cs | LibTextPet/Text/CustomFallbackEncoding.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace LibTextPet.Text
{
/// <summary>
/// An abstract encoding that makes the encoder and decoder fallbacks mutable.
/// </summary>
public abstract class CustomFallbackEncoding : Encoding
{
/// <summary>
/// The e... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace LibTextPet.Text
{
/// <summary>
/// An abstract encoding that makes the encoder and decoder fallbacks mutable.
/// </summary>
public abstract class CustomFallbackEncoding : Encoding
{
/// <summary>
/// The e... | mit | C# |
354065dfbcfc149d266d7940f7507923a8c9ea33 | Fix line endings | avitalb/nodejstools,avitalb/nodejstools,mjbvz/nodejstools,AustinHull/nodejstools,kant2002/nodejstools,Microsoft/nodejstools,paladique/nodejstools,Microsoft/nodejstools,kant2002/nodejstools,kant2002/nodejstools,paladique/nodejstools,AustinHull/nodejstools,mousetraps/nodejstools,paladique/nodejstools,mousetraps/nodejstoo... | Nodejs/Tests/Core/Mocks/MockTextBuffer.cs | Nodejs/Tests/Core/Mocks/MockTextBuffer.cs | using System.IO;
using Microsoft.NodejsTools;
namespace NodejsTests.Mocks {
class MockTextBuffer : TestUtilities.Mocks.MockTextBuffer {
public MockTextBuffer(string content) : base(content: content, contentType: NodejsConstants.Nodejs) {
}
private static string GetRandomFileNameIfNull(string fi... | using System.IO;
using Microsoft.NodejsTools;
namespace NodejsTests.Mocks {
class MockTextBuffer : TestUtilities.Mocks.MockTextBuffer {
public MockTextBuffer(string content) : base(content: content, contentType: NodejsConstants.Nodejs) {
}
private static string GetRandomFileNameIfNull(s... | apache-2.0 | C# |
9ab90a2405604210d442501689452c5fac77cbc2 | Include 'as-instance' in the inheritance test | jonathanvdc/flame-llvm,jonathanvdc/flame-llvm,jonathanvdc/flame-llvm | tests/inheritance/inheritance.cs | tests/inheritance/inheritance.cs | using System;
public class Point2
{
public Point2(int X, int Y)
{
this.X = X;
this.Y = Y;
}
public int X;
public int Y;
}
public class Point3 : Point2
{
public Point3(int X, int Y, int Z)
: base(X, Y)
{
this.Z = Z;
}
public int Z;
}
public class P... | using System;
public class Point2
{
public Point2(int X, int Y)
{
this.X = X;
this.Y = Y;
}
public int X;
public int Y;
}
public class Point3 : Point2
{
public Point3(int X, int Y, int Z)
: base(X, Y)
{
this.Z = Z;
}
public int Z;
}
public class P... | mit | C# |
17b758e93d2e03370113d97402ef762ee37eab20 | Fix filepath drawer. | Chaser324/unity-build | Editor/Generic/FilePathDrawer.cs | Editor/Generic/FilePathDrawer.cs | using UnityEngine;
using UnityEditor;
using System.IO;
namespace SuperSystems.UnityBuild
{
[CustomPropertyDrawer(typeof(FilePathAttribute))]
public class FilePathDrawer : PropertyDrawer
{
public override float GetPropertyHeight(SerializedProperty property, GUIContent label)
{
return 0;
}
pub... | using UnityEngine;
using UnityEditor;
using System.IO;
namespace SuperSystems.UnityBuild
{
[CustomPropertyDrawer(typeof(FilePathAttribute))]
public class FilePathDrawer : PropertyDrawer
{
public override float GetPropertyHeight(SerializedProperty property, GUIContent label)
{
return 0;
}
pub... | mit | C# |
2046f63652df66155b06c5b30f4a5c77497a01bd | Fix warning. | JohanLarsson/Gu.Localization | Gu.Localization/ErrorHandling.cs | Gu.Localization/ErrorHandling.cs | namespace Gu.Localization
{
/// <summary>Specify a strategy for how translation errors are handled.</summary>
public enum ErrorHandling
{
/// <summary>Inherits behaviour from <see cref="Translator.ErrorHandling"/> or defaults to throw.</summary>
Inherit,
/// <summary>Throws if some... | namespace Gu.Localization
{
/// <summary>Specify a strategy for how translation errors are handled.</summary>
public enum ErrorHandling
{
/// <summary>Inherits behaviour from <see cref="Translator.ErrorHandling"/> or defaults to throw.</summary>
Inherit,
/// <summary>Throws if some... | mit | C# |
0d455b3503de165e32d61581dc3c5924248d00ca | Update version number. | Damnae/storybrew | editor/Properties/AssemblyInfo.cs | editor/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("storybrew editor")]
[assembly: AssemblyDe... | 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("storybrew editor")]
[assembly: AssemblyDe... | mit | C# |
e45c37747c827f67539f7ddd24175def906aa06b | update namespace | sqlkata/querybuilder | QueryBuilder.Tests/InfrastructureTests.cs | QueryBuilder.Tests/InfrastructureTests.cs | using System;
using System.Linq;
using SqlKata.Compilers;
using SqlKata.Tests.Infrastructure;
using Xunit;
namespace SqlKata.Tests
{
public class InfrastructureTests : TestSupport
{
[Fact]
public void CanGetCompiler()
{
var compiler = Compilers.Get(EngineCodes.SqlServer);
... | using System;
using System.Linq;
using SqlKata.Compilers;
using Xunit;
namespace SqlKata.Tests.Infrastructure
{
public class InfrastructureTests : TestSupport
{
[Fact]
public void CanGetCompiler()
{
var compiler = Compilers.Get(EngineCodes.SqlServer);
Assert.No... | mit | C# |
c2ebdec35598deed99d17fc1320a2e213c7d021e | Update version number in AssemblyInfo.cs. | google/protobuf,google/protobuf,Livefyre/protobuf,google/protobuf,google/protobuf,google/protobuf,Livefyre/protobuf,Livefyre/protobuf,Livefyre/protobuf,google/protobuf,google/protobuf,Livefyre/protobuf,google/protobuf,google/protobuf,google/protobuf,google/protobuf | csharp/src/Google.Protobuf/Properties/AssemblyInfo.cs | csharp/src/Google.Protobuf/Properties/AssemblyInfo.cs | #region Copyright notice and license
// Protocol Buffers - Google's data interchange format
// Copyright 2008 Google Inc. All rights reserved.
// https://developers.google.com/protocol-buffers/
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that t... | #region Copyright notice and license
// Protocol Buffers - Google's data interchange format
// Copyright 2008 Google Inc. All rights reserved.
// https://developers.google.com/protocol-buffers/
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that t... | bsd-3-clause | C# |
d71ed81e5c2b1b1e8f8c6af6f0b991003351d35a | Add Skip Duplicate for Azure Artifacts feed | cake-build/frosting | build/Tasks/PublishAzureArtifacts.cs | build/Tasks/PublishAzureArtifacts.cs | using Cake.Common.Tools.NuGet;
using Cake.Common.Tools.NuGet.Push;
using Cake.Common.Tools.NuGet.Sources;
using Cake.Core;
using Cake.Core.IO;
using Cake.Frosting;
[Dependency(typeof(Package))]
[Dependency(typeof(AppVeyorArtifacts))]
public class PublishAzureArtifacts : FrostingTask<Context>
{
public override bool... | using Cake.Common.Tools.NuGet;
using Cake.Common.Tools.NuGet.Push;
using Cake.Common.Tools.NuGet.Sources;
using Cake.Core;
using Cake.Core.IO;
using Cake.Frosting;
[Dependency(typeof(Package))]
[Dependency(typeof(AppVeyorArtifacts))]
public class PublishAzureArtifacts : FrostingTask<Context>
{
public override bool... | mit | C# |
eebfaa7f4e32d6f44e2404210ba7e4b67d2e48b1 | Use imperative in help messages. | saschb2b/mugo | mugo/CommandLineOptions.cs | mugo/CommandLineOptions.cs | using System;
using CommandLine;
using CommandLine.Text;
namespace Mugo
{
/// <summary>
/// Command line options of the game.
/// </summary>
public class CommandLineOptions
{
[Option ('m', "noBackgroundMusic",
DefaultValue = false,
HelpText = "Disable background music. It can still be enabled via the m... | using System;
using CommandLine;
using CommandLine.Text;
namespace Mugo
{
/// <summary>
/// Command line options of the game.
/// </summary>
public class CommandLineOptions
{
[Option ('m', "noBackgroundMusic",
DefaultValue = false,
HelpText = "Disables background music. It can still be enabled via the ... | mit | C# |
607a2cf304c50cde8a835de970345a3e48b3ea08 | Update AddingLinkToURL.cs | asposecells/Aspose_Cells_NET,maria-shahid-aspose/Aspose.Cells-for-.NET,aspose-cells/Aspose.Cells-for-.NET,maria-shahid-aspose/Aspose.Cells-for-.NET,asposecells/Aspose_Cells_NET,asposecells/Aspose_Cells_NET,maria-shahid-aspose/Aspose.Cells-for-.NET,aspose-cells/Aspose.Cells-for-.NET,aspose-cells/Aspose.Cells-for-.NET,ma... | Examples/CSharp/Data/AddOn/Hyperlinks/AddingLinkToURL.cs | Examples/CSharp/Data/AddOn/Hyperlinks/AddingLinkToURL.cs | using System.IO;
using Aspose.Cells;
namespace Aspose.Cells.Examples.Data.AddOn.Hyperlinks
{
public class AddingLinkToURL
{
public static void Main(string[] args)
{
//ExStart:1
// The path to the documents directory.
string dataDir = Aspose.Cells.Examples.Ut... | using System.IO;
using Aspose.Cells;
namespace Aspose.Cells.Examples.Data.AddOn.Hyperlinks
{
public class AddingLinkToURL
{
public static void Main(string[] args)
{
// The path to the documents directory.
string dataDir = Aspose.Cells.Examples.Utils.GetDataDir(System.Re... | mit | C# |
ecfc412ad9ef0e34287638bf07168fccfb0d5cec | Rename UniversalCompiler.txt to *.log | SaladbowlCreative/Unity3D.IncrementalCompiler,SaladLab/Unity3D.IncrementalCompiler | extra/UniversalCompiler/Logger.cs | extra/UniversalCompiler/Logger.cs | using System;
using System.IO;
using System.Text;
using System.Threading;
internal class Logger : IDisposable
{
private enum LoggingMethod
{
Immediate,
Retained,
/*
- Immediate
Every message will be written to the log file right away in real time.
- Retained
All the messages will be retained in a ... | using System;
using System.IO;
using System.Text;
using System.Threading;
internal class Logger : IDisposable
{
private enum LoggingMethod
{
Immediate,
Retained,
/*
- Immediate
Every message will be written to the log file right away in real time.
- Retained
All the messages will be retained in a ... | mit | C# |
bef17d81e45086e2b1abb56631909e440fc3e3a0 | Clean up code. | ronnymgm/csla-light,BrettJaner/csla,jonnybee/csla,ronnymgm/csla-light,ronnymgm/csla-light,JasonBock/csla,BrettJaner/csla,jonnybee/csla,JasonBock/csla,rockfordlhotka/csla,MarimerLLC/csla,JasonBock/csla,rockfordlhotka/csla,jonnybee/csla,MarimerLLC/csla,MarimerLLC/csla,rockfordlhotka/csla,BrettJaner/csla | ProjectTrackercs/PTWcfServiceAuth/CredentialValidator.cs | ProjectTrackercs/PTWcfServiceAuth/CredentialValidator.cs | using System;
using System.Configuration;
using System.Web;
using System.IdentityModel.Selectors;
using System.ServiceModel;
using ProjectTracker.Library.Security;
namespace PTWcfServiceAuth
{
/// <summary>
/// Summary description for CredentialValidator
/// </summary>
public class CredentialValid... | using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.IdentityModel.Selectors;
using System.ServiceModel;
using ProjectTracker.Library.Security;
namespace PTWcfServiceAuth
{
/// <summary>
/// Summary description for CredentialValidator
/// </summary>
public c... | mit | C# |
0f2c686c03a3958b3e3e480c77536ab58467f2da | Update About.cshtml | mishrsud/sudhanshutheone.com,mishrsud/sudhanshutheone.com,daveaglick/daveaglick,mishrsud/sudhanshutheone.com,daveaglick/daveaglick | Somedave/Views/Home/About.cshtml | Somedave/Views/Home/About.cshtml | @{
Title = "About";
}
@Html.Partial(MVC.Shared.Views.Title, "icon-megaphone")
@using (var container = Bootstrap.Container())
{
@Bootstrap.Lead("Hello, my name is Dave Glick.")
<p>I am currently the Principal Software Engineer at the @Bootstrap.Link("Securities Investor Protection Corporation (SIPC)", "ht... | @{
Title = "About";
}
@Html.Partial(MVC.Shared.Views.Title, "icon-megaphone")
@using (var container = Bootstrap.Container())
{
@Bootstrap.Lead("Hello, my name is Dave Glick.")
<p>I am currently the Principal Software Engineer at the @Bootstrap.Link("Securities Investor Protection Corporation (SIPC)", "ht... | mit | C# |
93f485a681524768351b4f9e3ede702433ddb0e0 | Update comment | ZLima12/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,ppy/osu-framework,ZLima12/osu-framework,peppy/osu-framework,ppy/osu-framework,peppy/osu-framework,smoogipooo/osu-framework,ppy/osu-framework | osu.Framework/Audio/AudioCollectionManager.cs | osu.Framework/Audio/AudioCollectionManager.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.Collections.Generic;
using System.Linq;
namespace osu.Framework.Audio
{
/// <summary>
/// A collection of audio components which need central prope... | // 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;
namespace osu.Framework.Audio
{
/// <summary>
/// A collection of audio components which need central prope... | mit | C# |
9e1d140427022b432b687af0698a6ef35e90c0a8 | Test improved. | thedmi/Finalist,thedmi/MiniGuard,thedmi/MayBee,thedmi/Finalist,thedmi/Equ,thedmi/Equ | Sources/BeltTest/LazyTest.cs | Sources/BeltTest/LazyTest.cs | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="LazyTest.cs" company="Dani Michel">
// Dani Michel 2013
// </copyright>
// --------------------------------------------------------------------------------------------------... | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="LazyTest.cs" company="Dani Michel">
// Dani Michel 2013
// </copyright>
// --------------------------------------------------------------------------------------------------... | mit | C# |
a2d51ad533cf7308f1180e2dc6cfcdf4226de1bc | Add Do Feature | seyedk/Staffing | Staffing/Staffing/Program.cs | Staffing/Staffing/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Staffing
{
class Program
{
static void Main(string[] args)
{
}
static void DoSomthing()
{
Console.WriteLine("I'm doing ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Staffing
{
class Program
{
static void Main(string[] args)
{
}
static void DoSomthing()
{
Console.WriteLine("I'm doing ... | mit | C# |
27eda8b5412218dc26b2d79a6a1371a4d223fdf4 | Fix unhandled error causing crash | danielchalmers/SteamAccountSwitcher | SteamAccountSwitcher/App.xaml.cs | SteamAccountSwitcher/App.xaml.cs | #region
using System.Windows;
using SteamAccountSwitcher.Properties;
#endregion
namespace SteamAccountSwitcher
{
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
public App()
{
Dispatcher.UnhandledException +... | #region
using System.Windows;
using SteamAccountSwitcher.Properties;
#endregion
namespace SteamAccountSwitcher
{
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
protected override void OnExit(ExitEventArgs e)
{
... | mit | C# |
e23397c6b6ad51d661119733f93fceba8ff336c4 | Bump version to 0.13.0 | ar3cka/Journalist | src/SolutionInfo.cs | src/SolutionInfo.cs | // <auto-generated/>
using System.Reflection;
[assembly: AssemblyProductAttribute("Journalist")]
[assembly: AssemblyVersionAttribute("0.13.0")]
[assembly: AssemblyInformationalVersionAttribute("0.13.0")]
[assembly: AssemblyFileVersionAttribute("0.13.0")]
[assembly: AssemblyCompanyAttribute("Anton Mednonogov")]
namesp... | // <auto-generated/>
using System.Reflection;
[assembly: AssemblyProductAttribute("Journalist")]
[assembly: AssemblyVersionAttribute("0.12.0")]
[assembly: AssemblyInformationalVersionAttribute("0.12.0")]
[assembly: AssemblyFileVersionAttribute("0.12.0")]
[assembly: AssemblyCompanyAttribute("Anton Mednonogov")]
namesp... | apache-2.0 | C# |
9b1837d51a44d220372e9b58937eaad9a45758c1 | Bump version to 0.6.5 | ar3cka/Journalist | src/SolutionInfo.cs | src/SolutionInfo.cs | // <auto-generated/>
using System.Reflection;
[assembly: AssemblyProductAttribute("Journalist")]
[assembly: AssemblyVersionAttribute("0.6.5")]
[assembly: AssemblyInformationalVersionAttribute("0.6.5")]
[assembly: AssemblyFileVersionAttribute("0.6.5")]
[assembly: AssemblyCompanyAttribute("Anton Mednonogov")]
namespace... | // <auto-generated/>
using System.Reflection;
[assembly: AssemblyProductAttribute("Journalist")]
[assembly: AssemblyVersionAttribute("0.6.4")]
[assembly: AssemblyInformationalVersionAttribute("0.6.4")]
[assembly: AssemblyFileVersionAttribute("0.6.4")]
[assembly: AssemblyCompanyAttribute("Anton Mednonogov")]
namespace... | apache-2.0 | C# |
c50cdcef559bf230a65975018ecdbe4c132029ec | Teste Atualização Maq2 | wevertoncouy/TestHitRub | TestGitHub/TestGitHub/Program.cs | TestGitHub/TestGitHub/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TestGitHub
{
class Program
{
static void EscrevaNaTela(String txt)
{
Console.WriteLine(txt);
}
static void Main(string[] args)
{
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TestGitHub
{
class Program
{
static void EscrevaNaTela(String txt)
{
Console.WriteLine(txt);
}
static void Main(string[] args)
{
... | mit | C# |
f37aa465a65c621195f4d9ca7468133127c2c1c0 | Fix crashes related to saving Slow effect incorrectly. | jeongroseok/magecrawl,AndrewBaker/magecrawl | Trunk/GameEngine/Effects/Slow.cs | Trunk/GameEngine/Effects/Slow.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Magecrawl.GameEngine.Actors;
using Magecrawl.Utilities;
namespace Magecrawl.GameEngine.Effects
{
internal class Slow : NegativeEffect
{
private double m_modifier;
public Slow() : base(0)
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Magecrawl.GameEngine.Actors;
using Magecrawl.Utilities;
namespace Magecrawl.GameEngine.Effects
{
internal class Slow : NegativeEffect
{
private double m_modifier;
public Slow() : base(0)
... | bsd-2-clause | C# |
d6ee133ee419619d9fca5ca073a8d3845dc9a344 | Fix for navigating homepage. | cube-soft/Cube.Core,cube-soft/Cube.Core | Behaviors/WindowsFormsBehavior.cs | Behaviors/WindowsFormsBehavior.cs | /* ------------------------------------------------------------------------- */
//
// Copyright (c) 2010 CubeSoft, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www... | /* ------------------------------------------------------------------------- */
//
// Copyright (c) 2010 CubeSoft, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www... | apache-2.0 | C# |
f809cc56fd418815fcc6ac89efeb3495bedee8a5 | Use the .After() method in NUnit instead of Thread.Sleep | airbrake/SharpBrake,kayoom/SharpBrake,cbtnuggets/SharpBrake,airbrake/SharpBrake | Tests/AirbrakeClientTests.cs | Tests/AirbrakeClientTests.cs | using System;
using NUnit.Framework;
using SharpBrake;
using SharpBrake.Serialization;
namespace Tests
{
[TestFixture]
public class AirbrakeClientTests
{
#region Setup/Teardown
[SetUp]
public void SetUp()
{
this.client = new AirbrakeClient();
}
... | using System;
using System.Threading;
using NUnit.Framework;
using SharpBrake;
using SharpBrake.Serialization;
namespace Tests
{
[TestFixture]
public class AirbrakeClientTests
{
#region Setup/Teardown
[SetUp]
public void SetUp()
{
this.client = new AirbrakeCli... | mit | C# |
26bdd31c813785c0227cec8ce723672fc1e3fae9 | switch to AllFailingTestsClipboardReporter | pascalberger/GitVersion,dazinator/GitVersion,FireHost/GitVersion,anobleperson/GitVersion,gep13/GitVersion,distantcam/GitVersion,Philo/GitVersion,Philo/GitVersion,openkas/GitVersion,ParticularLabs/GitVersion,gep13/GitVersion,anobleperson/GitVersion,asbjornu/GitVersion,MarkZuber/GitVersion,GeertvanHorrik/GitVersion,ermsh... | Tests/ApprovalTestsConfig.cs | Tests/ApprovalTestsConfig.cs | using ApprovalTests.Reporters;
[assembly: UseReporter(typeof(DiffReporter), typeof(AllFailingTestsClipboardReporter))] | using ApprovalTests.Reporters;
[assembly: UseReporter(typeof(DiffReporter), typeof(ClipboardReporter))] | mit | C# |
be271602a48596ab5db206e7ff917d066491aede | Print objects in JSON format | whampson/cascara,whampson/bft-spec | examples/Program.cs | examples/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WHampson.Cascara;
namespace WHampson.CascaraExamples
{
class Program
{
const string LayoutXml = @"
<cascaraLayout name='a layout' description='A Test Layout'>
<struct name='test'>
<int name='foo'/>
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WHampson.Cascara;
namespace WHampson.CascaraExamples
{
class Program
{
const string LayoutXml = @"
<cascaraLayout name='a layout' description='A Test Layout'>
<struct name='test'>
<int name='foo'/>
... | mit | C# |
fcbc1a2d9e4f64632b35ab7ee7718e3687acb2d7 | bump version to 2.1.0 | Fody/Fody,GeertvanHorrik/Fody | CommonAssemblyInfo.cs | CommonAssemblyInfo.cs | using System.Reflection;
[assembly: AssemblyTitle("Fody")]
[assembly: AssemblyProduct("Fody")]
[assembly: AssemblyVersion("2.1.0")]
[assembly: AssemblyFileVersion("2.1.0")] | using System.Reflection;
[assembly: AssemblyTitle("Fody")]
[assembly: AssemblyProduct("Fody")]
[assembly: AssemblyVersion("2.0.11")]
[assembly: AssemblyFileVersion("2.0.11")] | mit | C# |
427f0baabb69b17689fb15af99c2f0a756dd5a5e | bump version | user1568891/PropertyChanged,Fody/PropertyChanged | CommonAssemblyInfo.cs | CommonAssemblyInfo.cs | using System.Reflection;
[assembly: AssemblyTitle("PropertyChanged")]
[assembly: AssemblyProduct("PropertyChanged")]
[assembly: AssemblyCompany("Simon Cropp and Contributors")]
[assembly: AssemblyDescription("Fody add-in for injecting INotifyPropertyChanged code into properties.")]
[assembly: AssemblyVersion("1.52.1"... | using System.Reflection;
[assembly: AssemblyTitle("PropertyChanged")]
[assembly: AssemblyProduct("PropertyChanged")]
[assembly: AssemblyCompany("Simon Cropp and Contributors")]
[assembly: AssemblyDescription("Fody add-in for injecting INotifyPropertyChanged code into properties.")]
[assembly: AssemblyVersion("1.52.0"... | mit | C# |
b300bc1e24d758416e2f6c1e2e27621e44b0cdee | Fix ever-increasing flashlight-strain | peppy/osu,ppy/osu,peppy/osu,peppy/osu,ppy/osu,ppy/osu | osu.Game.Rulesets.Osu/Difficulty/Skills/Flashlight.cs | osu.Game.Rulesets.Osu/Difficulty/Skills/Flashlight.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Linq;
using osu.Game.Rulesets.Difficulty.Preprocessing;
using osu.Game.Rulesets.Mods;
using osu.Game.Rulesets.Osu.Difficulty.Evaluators;
using... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Linq;
using osu.Game.Rulesets.Difficulty.Preprocessing;
using osu.Game.Rulesets.Mods;
using osu.Game.Rulesets.Osu.Difficulty.Evaluators;
using... | mit | C# |
85359ca4e9f62015412145830d8e1e0796ddc130 | Fix login URL | RomeuCarvalhoAntunes/2017.1-Forum-Coordenadores-DEG,vitorfhc/2017.1-Forum-Coordenadores-DEG,MarianaPicolo/2017.1-Forum-Coordenadores-DEG,vitorbertulucci/2017.1-Forum-Coordenadores-DEG | ForumDEG/ForumDEG/Helpers/User.cs | ForumDEG/ForumDEG/Helpers/User.cs | using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
namespace ForumDEG.Helpers {
class User {
private HttpClient _client;
public User() {
_cl... | using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
namespace ForumDEG.Helpers {
class User {
private HttpClient _client;
public User() {
_cl... | mit | C# |
fafe080f5c904b04f51504b2edaa1991c66f9cb1 | fix error due to non-public Automate API class (#119) | Pathoschild/StardewMods | Automate/Framework/AutomateAPI.cs | Automate/Framework/AutomateAPI.cs | using System.Collections.Generic;
using StardewValley;
namespace Pathoschild.Stardew.Automate.Framework
{
/// <summary>The API which lets other mods interact with Automate.</summary>
public class AutomateAPI : IAutomateAPI
{
/*********
** Properties
*********/
/// <summary>C... | using System.Collections.Generic;
using StardewValley;
namespace Pathoschild.Stardew.Automate.Framework
{
/// <summary>The API which lets other mods interact with Automate.</summary>
internal class AutomateAPI : IAutomateAPI
{
/*********
** Properties
*********/
/// <summary... | mit | C# |
8063ef471371482a82d2b8348907d0c7108830b7 | Update Settings class | rmarinho/babysmash | BabySmash.Apps/Models/Settings.cs | BabySmash.Apps/Models/Settings.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BabySmash.Core.Models
{
public class Settings
{
private static Settings defaultInstance;
public static Settings Default {
get {
return defaultInstance ?? ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BabySmash.Core.Models
{
public class Settings
{
private static Settings defaultInstance;
public static Settings Default {
get {
return defaultInstance ?? ... | mit | C# |
006879a33f0f6e8e3ee6bc1d10622063822a3543 | Remove unnecessary qualifier | darrencauthon/csharp-sparkpost,SparkPost/csharp-sparkpost,kirilsi/csharp-sparkpost,kirilsi/csharp-sparkpost,darrencauthon/csharp-sparkpost | src/SparkPost/File.cs | src/SparkPost/File.cs | using System;
using System.IO;
using System.Web;
namespace SparkPost
{
public abstract class File
{
public string Type { get; set; }
public string Name { get; set; }
public string Data { get; set; }
public static T Create<T>(string filename) where T : File, new()
{
... | using System;
using System.IO;
using System.Web;
namespace SparkPost
{
public abstract class File
{
public string Type { get; set; }
public string Name { get; set; }
public string Data { get; set; }
public static T Create<T>(string filename) where T : File, new()
{
... | apache-2.0 | C# |
0dcc5dd3179aeacb22f0baf3d61c39d25de18ec7 | rewrite TextStream to use Buffer<TToken> | acple/ParsecSharp | ParsecSharp/Data/TextStream.cs | ParsecSharp/Data/TextStream.cs | using System;
using System.IO;
using System.Linq;
using System.Text;
using ParsecSharp.Internal;
namespace ParsecSharp
{
public sealed class TextStream : IParsecStateStream<char>
{
private const int MaxBufferSize = 1024;
private readonly IDisposable resource;
private readonly Buffer<c... | using System;
using System.IO;
using System.Text;
using ParsecSharp.Internal;
namespace ParsecSharp
{
public sealed class TextStream : IParsecStateStream<char>
{
private readonly IDisposable disposable;
private readonly TextPosition _position;
private readonly Lazy<IParsecStateStream<... | mit | C# |
63d4cda7615afaa952cfe61177b8df6d9fb1de53 | Add missing attributes to DeviceType | WolfspiritM/Colore,CoraleStudios/Colore | Corale.Colore/Razer/DeviceType.cs | Corale.Colore/Razer/DeviceType.cs | // ---------------------------------------------------------------------------------------
// <copyright file="DeviceType.cs" company="Corale">
// Copyright © 2015 by Adam Hellberg and Brandon Scott.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and ... | // ---------------------------------------------------------------------------------------
// <copyright file="DeviceType.cs" company="Corale">
// Copyright © 2015 by Adam Hellberg and Brandon Scott.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and ... | mit | C# |
5db6472502c751c3a67bd385d6b3a1ab10e71224 | Test package 8 publish module has to be filtered too | markfinal/BuildAMation,markfinal/BuildAMation,markfinal/BuildAMation,markfinal/BuildAMation,markfinal/BuildAMation | testpackages/Test8/dev/Test8.cs | testpackages/Test8/dev/Test8.cs | // Automatically generated by Opus v0.00
namespace Test8
{
// Define module classes here
[Opus.Core.ModuleTargets(new string[] { "win.*-.*-.*" })]
class ApplicationTest : C.Application
{
private const string WinVCTarget = "win.*-.*-visualc";
public ApplicationTest()
... | // Automatically generated by Opus v0.00
namespace Test8
{
// Define module classes here
[Opus.Core.ModuleTargets(new string[] { "win.*-.*-.*" })]
class ApplicationTest : C.Application
{
private const string WinVCTarget = "win.*-.*-visualc";
public ApplicationTest()
... | bsd-3-clause | C# |
d966d206baaa0cca908cedbe5ba121cb6f8343a8 | Enable DoubleBuffer, just because | jnwatts/cs320_project2_group11,jnwatts/cs320_project2_group11 | mainview.cs | mainview.cs | using System;
using System.Data;
using System.Drawing;
using System.Windows.Forms;
using MySql.Data.MySqlClient;
public class MainView : Form
{
TabControl tabControl = null;
TabPage rsvTab = null;
TabPage pvTab = null;
RawSqlView rsv = null;
PreferencesView pv = null;
public PreferencesView Pr... | using System;
using System.Data;
using System.Drawing;
using System.Windows.Forms;
using MySql.Data.MySqlClient;
public class MainView : Form
{
TabControl tabControl = null;
TabPage rsvTab = null;
TabPage pvTab = null;
RawSqlView rsv = null;
PreferencesView pv = null;
public PreferencesView Pr... | apache-2.0 | C# |
5c149a4ada5f1a4e23ead98560605bba61540037 | use TreeLibrary in TreeConsole | kusl/Tree | VisualTree/TreeConsole/Program.cs | VisualTree/TreeConsole/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TreeLibrary;
namespace TreeConsole
{
class Program
{
static readonly int numberOfNumbers = 100000;
static void Main(string[] args)
{
int[] inputArray = ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TreeConsole
{
class Program
{
static void Main(string[] args)
{
}
}
}
| agpl-3.0 | C# |
76503edeb15809f456a80f26fb8db6c177243dac | Edit error page | erlingsjostrom/TSS,erlingsjostrom/TSS,erlingsjostrom/TSS | TESS/Views/Shared/Error.cshtml | TESS/Views/Shared/Error.cshtml | @model System.Web.Mvc.HandleErrorInfo
@{
ViewBag.Title = "Error";
}
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="error-template">
<h1>
Oops something went wrong!
</h1>
<div clas... | @model System.Web.Mvc.HandleErrorInfo
@{
ViewBag.Title = "Error";
}
<h1 class="text-danger">Error.</h1>
<h2 class="text-danger">An error occurred while processing your request.</h2>
<div class="col-md-12">
<div class="error-template">
<h1>
Oops something went wrong!
... | mit | C# |
b1dbeb5e6aaa6d4e0d5b5e1ac63fbc7133f95ab6 | Fix baseAddress typo | bringking/mailgun_csharp | Mailgun/Service/MessageService.cs | Mailgun/Service/MessageService.cs | using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Text;
using System.Threading.Tasks;
using Mailgun.Core.Messages;
using Mailgun.Core.Service;
using Mailgun.Exceptions;
namespace Mailgun.Service
{
/// <summary>
/// The core mailgun service
/// </summary>
public class Mes... | using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Text;
using System.Threading.Tasks;
using Mailgun.Core.Messages;
using Mailgun.Core.Service;
using Mailgun.Exceptions;
namespace Mailgun.Service
{
/// <summary>
/// The core mailgun service
/// </summary>
public class Mes... | mit | C# |
7d5d3c74a3f2e2d9241030bea435800d594c2564 | fix contains generic parameter for FunctionPointerType | joj/cecil,kzu/cecil,jbevain/cecil,fnajera-rac-de/cecil,cgourlay/cecil,xen2/cecil,SiliconStudio/Mono.Cecil,sailro/cecil,gluck/cecil,mono/cecil,ttRevan/cecil,furesoft/cecil,saynomoo/cecil | Mono.Cecil/FunctionPointerType.cs | Mono.Cecil/FunctionPointerType.cs | //
// FunctionPointerType.cs
//
// Author:
// Jb Evain (jbevain@gmail.com)
//
// Copyright (c) 2008 - 2010 Jb Evain
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction... | //
// FunctionPointerType.cs
//
// Author:
// Jb Evain (jbevain@gmail.com)
//
// Copyright (c) 2008 - 2010 Jb Evain
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction... | mit | C# |
60325f8246841051663c4aca69dc69df0cfbb263 | Fix NRE | nikeee/HolzShots | src/HolzShots.Core/Composition/IUploaderSource.cs | src/HolzShots.Core/Composition/IUploaderSource.cs | using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using HolzShots.Net;
namespace HolzShots.Composition
{
public interface IUploaderSource
{
bool Loaded { get; }
UploaderEntry/*?*/ GetUploaderByName(string name);
IReadOnlyList<string> GetUploaderNames();
... | using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using HolzShots.Net;
namespace HolzShots.Composition
{
public interface IUploaderSource
{
bool Loaded { get; }
UploaderEntry/*?*/ GetUploaderByName(string name);
IReadOnlyList<string> GetUploaderNames();
... | agpl-3.0 | C# |
a0e2656a45661061acd0c96b6d21aa618b6314f0 | FIX typos in VS vocabulary | mdesalvo/RDFSharp | RDFSharp/Model/Vocabularies/VS.cs | RDFSharp/Model/Vocabularies/VS.cs | /*
Copyright 2012-2020 Marco De Salvo
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | /*
Copyright 2012-2020 Marco De Salvo
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | apache-2.0 | C# |
41d7866b0613a3a3c5adf6e7ba5df4e0476c5558 | bump version | raml-org/raml-dotnet-parser-2,raml-org/raml-dotnet-parser-2 | source/Raml.Parser/Properties/AssemblyInfo.cs | source/Raml.Parser/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("RAML.Parser")]
[assembly: AssemblyDescri... | 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("RAML.Parser")]
[assembly: AssemblyDescri... | apache-2.0 | C# |
ac9c951d4c4bee7032a42a1d4ff8cadba96f4fd3 | fix the To type check for admin initiated message | intercom/intercom-dotnet | src/Intercom/Data/AdminConversationMessage.cs | src/Intercom/Data/AdminConversationMessage.cs | using System;
using Intercom.Core;
using Intercom.Data;
using Intercom.Clients;
using Intercom.Exceptions;
namespace Intercom.Data
{
public class AdminConversationMessage : Message
{
public class From {
public String id { set; get; }
public String type { private set; get; }
public From(Strin... | using System;
using Intercom.Core;
using Intercom.Data;
using Intercom.Clients;
using Intercom.Exceptions;
namespace Intercom.Data
{
public class AdminConversationMessage : Message
{
public class From {
public String id { set; get; }
public String type { private set; get; }
public From(Strin... | apache-2.0 | C# |
066ceb41f5e1a0eb5b5d165b76fbab1d372fcc13 | Add homepage CTAs | martincostello/alexa-london-travel-site,martincostello/alexa-london-travel-site,martincostello/alexa-london-travel-site,martincostello/alexa-london-travel-site | src/LondonTravel.Site/Views/Home/Index.cshtml | src/LondonTravel.Site/Views/Home/Index.cshtml | @inject SiteOptions Options
@{
ViewBag.Title = "Home";
}
<div class="jumbotron">
<h1>London Travel</h1>
<p class="lead">
An Amazon Alexa skill for checking the status of travel in London.
</p>
<p>
<a class="btn btn-primary btn-lg" href="@Options?.ExternalLinks?.Skill" rel="noopener"... | @inject SiteOptions Options
@{
ViewBag.Title = "Home";
}
<div class="jumbotron">
<h1>London Travel</h1>
<p class="lead">
An Amazon Alexa skill for checking the status of travel in London.
</p>
<p>
<a class="btn btn-primary" id="link-install" href="@Options?.ExternalLinks?.Skill" rel... | apache-2.0 | C# |
34470a847ac44dfe6fcbcaf2d0388bbe9f529ddb | Test RelabelingFunction | lou1306/CIV,lou1306/CIV | CIV.Test/RelabelingFunctionTest.cs | CIV.Test/RelabelingFunctionTest.cs | using Xunit;
using System;
using CIV.Ccs;
namespace CIV.Test
{
public class RelabelingFunctionTest
{
[Theory]
[InlineData("action", "relabeled")]
[InlineData("action", "tau")]
public void ShouldRelabelCoaction(string action, string relabeled)
{
var relabeling = new Rela... | using Xunit;
using CIV.Ccs;
namespace CIV.Test
{
public class RelabelingFunctionTest
{
[Fact]
public void ShouldAddInputAction()
{
var relabeling = new RelabelingFunction
{
{"action", "relabeled"}
};
Assert.Equal(1, relabe... | mit | C# |
8029d9c55772414509a09d3926dd430a70903489 | Make IConsulClient public | PlayFab/consuldotnet,yonglehou/consuldotnet,highlyunavailable/consuldotnet | Consul/Interfaces/IConsulClient.cs | Consul/Interfaces/IConsulClient.cs | using System;
using System.Threading;
namespace Consul
{
public interface IConsulClient
{
IACLEndpoint ACL { get; }
IDisposableLock AcquireLock(LockOptions opts);
IDisposableLock AcquireLock(LockOptions opts, CancellationToken ct);
IDisposableLock AcquireLock(string key);
... | using System;
using System.Threading;
namespace Consul
{
interface IConsulClient
{
IACLEndpoint ACL { get; }
IDisposableLock AcquireLock(LockOptions opts);
IDisposableLock AcquireLock(LockOptions opts, CancellationToken ct);
IDisposableLock AcquireLock(string key);
IDisp... | apache-2.0 | C# |
518a785a86710d437f73a66126cea8763f44e43e | Use multiples of 10. | csjune/mathnet-spatial,csjune/mathnet-spatial,csjune/mathnet-spatial | src/Spatial.Benchmarks/Polygon2DBenchmarks.cs | src/Spatial.Benchmarks/Polygon2DBenchmarks.cs | namespace Spatial.Benchmarks
{
using System;
using System.Collections.Generic;
using System.Linq;
using BenchmarkDotNet.Attributes;
using MathNet.Spatial.Euclidean;
public class Polygon2DBenchmarks
{
private static readonly Random Random = new Random();
private static reado... | namespace Spatial.Benchmarks
{
using System;
using System.Collections.Generic;
using System.Linq;
using BenchmarkDotNet.Attributes;
using MathNet.Spatial.Euclidean;
public class Polygon2DBenchmarks
{
private static readonly Random Random = new Random();
private static reado... | mit | C# |
343b0e5a87a2b6b7251c64599b51231481d0f1a3 | Fix bug in TimeSlot.Overlaps | victoria92/university-program-generator,victoria92/university-program-generator | UniProgramGen/Helpers/TimeSlot.cs | UniProgramGen/Helpers/TimeSlot.cs | using System;
using System.Collections.Generic;
namespace UniProgramGen.Helpers
{
public class TimeSlot
{
public const uint START_HOUR = 7;
public const uint END_HOUR = 22;
public const uint TOTAL_DAY_HOURS = END_HOUR - START_HOUR;
public TimeSlot(DayOfWeek day, uint startHour,... | using System;
using System.Collections.Generic;
namespace UniProgramGen.Helpers
{
public class TimeSlot
{
public const uint START_HOUR = 7;
public const uint END_HOUR = 22;
public const uint TOTAL_DAY_HOURS = END_HOUR - START_HOUR;
public TimeSlot(DayOfWeek day, uint startHour,... | bsd-2-clause | C# |
33bfe235db5b73abbdaf401b870a882c010136f1 | fix .NET compatibility | ophilbinbriscoe/BoldTween | Interpolators/AlphaInterpolator.cs | Interpolators/AlphaInterpolator.cs | using System.Collections;
using System.Collections.Generic;
using System.Reflection;
using UnityEngine;
using UnityEngine.Events;
using UnityEngine.UI;
namespace BoldTween
{
[RequireComponent( typeof( CanvasGroup ) )]
public class AlphaInterpolator : Interpolator
{
[System.Serializable]
private class AlphaEve... | using System.Collections;
using System.Collections.Generic;
using System.Reflection;
using UnityEngine;
using UnityEngine.Events;
using UnityEngine.UI;
namespace BoldTween
{
[RequireComponent( typeof( CanvasGroup ) )]
public class AlphaInterpolator : Interpolator
{
[System.Serializable]
private class AlphaEve... | mit | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.