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 |
|---|---|---|---|---|---|---|---|---|---|
087257e210733ac153e3b35502da5efc02b4445f | MediaManager/Platforms/Ios/Video/PlayerViewController.cs | MediaManager/Platforms/Ios/Video/PlayerViewController.cs | using AVKit;
namespace MediaManager.Platforms.Ios.Video
{
public class PlayerViewController : AVPlayerViewController
{
protected MediaManagerImplementation MediaManager => CrossMediaManager.Apple;
public override void ViewWillDisappear(bool animated)
{
base.ViewWillDisappe... | using AVKit;
namespace MediaManager.Platforms.Ios.Video
{
public class PlayerViewController : AVPlayerViewController
{
protected static MediaManagerImplementation MediaManager => CrossMediaManager.Apple;
public override void ViewWillDisappear(bool animated)
{
base.ViewWill... | Make MediaManager a static property | Make MediaManager a static property
| C# | mit | mike-rowley/XamarinMediaManager,mike-rowley/XamarinMediaManager,martijn00/XamarinMediaManager,martijn00/XamarinMediaManager |
0ac346f8d122f00b829a657248fe18882589bb39 | Source/MTW_AncestorSpirits/ThoughtWorker_NoShrineRoom.cs | Source/MTW_AncestorSpirits/ThoughtWorker_NoShrineRoom.cs | using RimWorld;
using Verse;
namespace MTW_AncestorSpirits
{
class ThoughtWorker_NoShrineRoom : ThoughtWorker
{
private static RoomRoleDef shrineRoomDef = DefDatabase<RoomRoleDef>.GetNamed("MTW_ShrineRoom");
protected override ThoughtState CurrentStateInternal(Pawn p)
{
//... | using RimWorld;
using Verse;
namespace MTW_AncestorSpirits
{
class ThoughtWorker_NoShrineRoom : ThoughtWorker
{
private static RoomRoleDef shrineRoomDef = DefDatabase<RoomRoleDef>.GetNamed("MTW_ShrineRoom");
protected override ThoughtState CurrentStateInternal(Pawn p)
{
//... | Fix NoShrineRoom logic if shrine is null | Fix NoShrineRoom logic if shrine is null
If for some reason the Shrine is destroyed, should keep the thought
penalty.
| C# | mit | MoyTW/MTW_AncestorSpirits |
16ef6c2748675dd20255649f443523fff06aaf14 | LINQToTTree/LINQToTTreeLib/ExecutionCommon/IQueryExectuor.cs | LINQToTTree/LINQToTTreeLib/ExecutionCommon/IQueryExectuor.cs |
using System.Collections.Generic;
using System.IO;
namespace LINQToTTreeLib.ExecutionCommon
{
/// <summary>
/// Runs an execution request
/// </summary>
interface IQueryExectuor
{
/// <summary>
/// Run request, and return the results
/// </summary>
/// ... |
using System.Collections.Generic;
using System.IO;
namespace LINQToTTreeLib.ExecutionCommon
{
/// <summary>
/// Runs an execution request
/// </summary>
interface IQueryExectuor
{
/// <summary>
/// Run request, and return the results
/// </summary>
/// ... | Improve comments on the interface. | Improve comments on the interface.
| C# | lgpl-2.1 | gordonwatts/LINQtoROOT,gordonwatts/LINQtoROOT,gordonwatts/LINQtoROOT |
af1aa725a3a5686e0202b87e9d7ac5b37f5c21b7 | WeCantSpell.Tests/Integration/CSharp/CommentSpellingTests.cs | WeCantSpell.Tests/Integration/CSharp/CommentSpellingTests.cs | using System.Collections.Generic;
using System.Threading.Tasks;
using FluentAssertions;
using WeCantSpell.Tests.Utilities;
using Xunit;
namespace WeCantSpell.Tests.Integration.CSharp
{
public class CommentSpellingTests : CSharpTestBase
{
public static IEnumerable<object[]> can_find_mistakes_in_comment... | using System.Collections.Generic;
using System.Threading.Tasks;
using FluentAssertions;
using WeCantSpell.Tests.Utilities;
using Xunit;
namespace WeCantSpell.Tests.Integration.CSharp
{
public class CommentSpellingTests : CSharpTestBase
{
public static IEnumerable<object[]> can_find_mistakes_in_comment... | Add a few more tests | Add a few more tests
| C# | mit | aarondandy/we-cant-spell |
06229ad7b2c39c17bc332ca8ff1ca5e90ba4577f | WebScriptHook.Framework/Messages/Outputs/ChannelRequest.cs | WebScriptHook.Framework/Messages/Outputs/ChannelRequest.cs | namespace WebScriptHook.Framework.Messages.Outputs
{
/// <summary>
/// Sent by the component to request a channel for itself on the server.
/// This tells the server the name of this component, as well as the maximum number of requests
/// the component can handle per tick.
/// Once the server r... | namespace WebScriptHook.Framework.Messages.Outputs
{
/// <summary>
/// Sent by the component to request a channel for itself on the server.
/// This tells the server the name of this component, as well as the maximum number of requests
/// the component can handle per tick.
/// Once the server r... | Fix a typo in const name | Fix a typo in const name
| C# | mit | LibertyLocked/RestRPC,LibertyLocked/RestRPC,LibertyLocked/RestRPC,LibertyLocked/RestRPC |
4e10d191756c505d48a56bcaa499954c17f7f0f1 | src/Microsoft.AspNetCore.ResponseCaching/ResponseCacheOptions.cs | src/Microsoft.AspNetCore.ResponseCaching/ResponseCacheOptions.cs | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.ComponentModel;
using Microsoft.AspNetCore.ResponseCaching.Internal;
namespace Microsoft.AspNetCore.Builder
{
public class ResponseCa... | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.ComponentModel;
using Microsoft.AspNetCore.ResponseCaching.Internal;
namespace Microsoft.AspNetCore.Builder
{
public class ResponseCa... | Update default Max Body Size | Update default Max Body Size
| C# | apache-2.0 | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore |
738c92f1a23b73eebd58d8cd128459d60b284283 | DamageMeter.UI/HistoryLink.xaml.cs | DamageMeter.UI/HistoryLink.xaml.cs | using System;
using System.Diagnostics;
using System.Windows;
using System.Windows.Input;
using System.Windows.Media;
using Data;
using Tera.Game;
namespace DamageMeter.UI
{
/// <summary>
/// Logique d'interaction pour HistoryLink.xaml
/// </summary>
public partial class HistoryLink
{
... | using System;
using System.Diagnostics;
using System.Windows;
using System.Windows.Input;
using System.Windows.Media;
using Data;
using Tera.Game;
namespace DamageMeter.UI
{
/// <summary>
/// Logique d'interaction pour HistoryLink.xaml
/// </summary>
public partial class HistoryLink
{
... | Fix encounter url not opening | Fix encounter url not opening
| C# | mit | neowutran/ShinraMeter,neowutran/TeraDamageMeter,Seyuna/ShinraMeter,radasuka/ShinraMeter |
4ff74cde88ac39a5d78ae90f4dd1f83fd692d96c | src/VGAudio.Cli/Batch.cs | src/VGAudio.Cli/Batch.cs | using System;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
// ReSharper disable AccessToDisposedClosure
namespace VGAudio.Cli
{
internal static class Batch
{
public static bool BatchConvert(Options options)
{
if (options.Job != JobType.Batch) return false;
... | using System;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
// ReSharper disable AccessToDisposedClosure
namespace VGAudio.Cli
{
internal static class Batch
{
public static bool BatchConvert(Options options)
{
if (options.Job != JobType.Batch) return false;
... | Fix single core batch processing | CLI: Fix single core batch processing
An oversight caused the batch converter to try to use '0' cores when running on a single-core processor
| C# | mit | Thealexbarney/VGAudio,Thealexbarney/LibDspAdpcm,Thealexbarney/LibDspAdpcm,Thealexbarney/VGAudio |
4708cb7317f21287ab7448d9209d6c7eedf4681a | osu.Game.Benchmarks/BenchmarkRuleset.cs | osu.Game.Benchmarks/BenchmarkRuleset.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using BenchmarkDotNet.Attributes;
using osu.Game.Online.API;
using osu.Game.Rulesets.Osu;
namespace osu.Game.Benchmarks
{
public class BenchmarkRuleset : BenchmarkTe... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Engines;
using osu.Game.Online.API;
using osu.Game.Rulesets.Osu;
namespace osu.Game.Benchmarks
{
public class... | Fix enumerable not being consumed | Fix enumerable not being consumed
| C# | mit | smoogipoo/osu,NeoAdonis/osu,peppy/osu,smoogipoo/osu,peppy/osu,smoogipoo/osu,ppy/osu,NeoAdonis/osu,NeoAdonis/osu,smoogipooo/osu,peppy/osu-new,peppy/osu,ppy/osu,ppy/osu |
13970713d1dedadd380e4d3386003d966818d456 | DevTyr.Gullap/Model/MetaContentExtensions.cs | DevTyr.Gullap/Model/MetaContentExtensions.cs | using System.IO;
namespace DevTyr.Gullap.Model
{
public static class MetaContentExtensions
{
public static string GetTargetFileName(this MetaContent content, SitePaths paths)
{
var isPage = content.Page != null;
string userDefinedFileName = content.GetOverriddenFileName();
... | using System.IO;
namespace DevTyr.Gullap.Model
{
public static class MetaContentExtensions
{
public static string GetTargetFileName(this MetaContent content, SitePaths paths)
{
var isPage = content.Page != null;
string userDefinedFileName = content.GetOverriddenFileName();
... | Fix target file name generation | Fix target file name generation
| C# | mit | devtyr/gullap |
22a85d633f3458cf1eaa32ab67cf2cfe47ebe7b9 | src/Glimpse.Agent.AspNet.Sample/Startup.cs | src/Glimpse.Agent.AspNet.Sample/Startup.cs | using Glimpse.Agent.Web;
using Microsoft.AspNet.Builder;
using Glimpse.Host.Web.AspNet;
using Microsoft.Framework.DependencyInjection;
namespace Glimpse.Agent.AspNet.Sample
{
public class Startup
{
public void ConfigureServices(IServiceCollection services)
{
services.AddGlimpse()
... | using System.Collections.Generic;
using System.Reflection;
using System.Text.RegularExpressions;
using Glimpse.Agent.Web;
using Glimpse.Agent.Web.Framework;
using Glimpse.Agent.Web.Options;
using Microsoft.AspNet.Builder;
using Glimpse.Host.Web.AspNet;
using Microsoft.Framework.DependencyInjection;
namespace Glimpse.... | Add example of using fixed provider | Add example of using fixed provider
This is to be cleaned up
| C# | mit | peterblazejewicz/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,Glimpse/Glimpse.Prototype,zanetdev/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,pranavkm/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,Glimpse/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,peterblazejewicz/Gli... |
23e169adb6e7b562d5a0922aa4688e0a0fead834 | src/Pioneer.Blog/Views/Home/_Template.cshtml | src/Pioneer.Blog/Views/Home/_Template.cshtml | @{
Layout = "~/Views/Shared/_LayoutPublic.cshtml";
}
@section metaPage
{
<meta property="og:type" content="website">
<meta property="og:image" content="@(AppConfiguration.Value.SiteUrl + "/content/images/logo-og.jpg")">
}
@RenderBody() | @{
Layout = "~/Views/Shared/_LayoutPublic.cshtml";
}
@section metaPage
{
<meta property="og:type" content="website">
<meta property="og:image" content="@(AppConfiguration.Value.SiteUrl + "/images/logo-og.jpg")">
}
@RenderBody() | Fix og:image path for home page | Fix og:image path for home page
| C# | mit | PioneerCode/pioneer-blog,PioneerCode/pioneer-blog,PioneerCode/pioneer-blog,PioneerCode/pioneer-blog |
d472d794b7a57ffff7d701992465e3c8416d13eb | SqlDiffFramework/SqlDiffFramework/Program.cs | SqlDiffFramework/SqlDiffFramework/Program.cs | using System;
using System.Collections.Generic;
using System.Windows.Forms;
namespace SqlDiffFramework
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.Se... | using System;
using System.Collections.Generic;
using System.Windows.Forms;
using SqlDiffFramework.Forms;
namespace SqlDiffFramework
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVis... | Reorganize forms into project subfolder | Reorganize forms into project subfolder
| C# | mit | msorens/SqlDiffFramework |
a5a9a6398966d4f9f61e6cee3ed49ca26425f0a5 | WeatherDataFunctionApp/WeatherDataService.cs | WeatherDataFunctionApp/WeatherDataService.cs | namespace WeatherDataFunctionApp
{
using System;
using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
using Microsoft.Azure.WebJobs;
using Microsoft.Azure.WebJobs.Extensions.Http;
using Microsoft.Azure.WebJobs.Host;
public static class WeatherDataService
{
... | namespace WeatherDataFunctionApp
{
using System;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
using Microsoft.Azure.WebJobs;
using Microsoft.Azure.WebJobs.Extensions.Http;
using Microsoft.Azure.WebJobs.Host;
public static class WeatherDat... | Read querystring instead of using route patterns | Read querystring instead of using route patterns
| C# | mit | DeepakChoudhari/WeatherData-AzureFunction |
03addc3270a596e8df5c9a7965e6f2c982c42c71 | Launcher/Program.cs | Launcher/Program.cs | using Microsoft.Web.Administration;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Data;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices;
using System.Security;
using System.Text;
using System.Threading;
using System.Threading.Task... | using Microsoft.Web.Administration;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Data;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices;
using System.Security;
using System.Text;
using System.Threading;
using System.Threading.Task... | Add informational logging to launcher | Add informational logging to launcher
| C# | apache-2.0 | cloudfoundry-incubator/windows_app_lifecycle,cloudfoundry/windows_app_lifecycle,stefanschneider/windows_app_lifecycle |
53ea6fb1a844e8fd665f9f1e32be8125102a9fce | CreviceApp/Threading.cs | CreviceApp/Threading.cs | using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace CreviceApp.Threading
{
// http://www.codeguru.com/csharp/article.php/c18931/Understanding-the-NET-Ta... | using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace CreviceApp.Threading
{
// http://www.codeguru.com/csharp/article.php/c18931/Understanding-the-NET-Ta... | Refactor verbose log of SingleThreadScheduler. | Refactor verbose log of SingleThreadScheduler.
| C# | mit | rubyu/CreviceApp,rubyu/CreviceApp |
82671c2d839ad7d273b63866ab623b8cd103fc4d | ecologylabFundamentalTestCases/Polymorphic/Configuration.cs | ecologylabFundamentalTestCases/Polymorphic/Configuration.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ecologylab.serialization;
using ecologylab.attributes;
namespace ecologylabFundamentalTestCases.Polymorphic
{
/**
*
* <configuration>
<pref_double name="index_thumb_dist" value="200"/... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ecologylab.serialization;
using ecologylab.attributes;
namespace ecologylabFundamentalTestCases.Polymorphic
{
/**
*
* <configuration>
<pref_double name="index_thumb_dist" value="200"/... | Test case includes string with quotes. | Test case includes string with quotes.
| C# | apache-2.0 | ecologylab/simplCSharp |
904d258dc34c343d75bfd1fb544af9c759565f09 | osu.Game/Overlays/Options/CheckBoxOption.cs | osu.Game/Overlays/Options/CheckBoxOption.cs | using System;
using osu.Framework.Configuration;
using osu.Framework.Graphics.UserInterface;
namespace osu.Game.Overlays.Options
{
public class CheckBoxOption : BasicCheckBox
{
private Bindable<bool> bindable;
public Bindable<bool> Bindable
{
set
{
... | using System;
using osu.Framework.Configuration;
using osu.Framework.Graphics.UserInterface;
namespace osu.Game.Overlays.Options
{
public class CheckBoxOption : BasicCheckBox
{
private Bindable<bool> bindable;
public Bindable<bool> Bindable
{
set
{... | Fix checkbox not updating correctly. | Fix checkbox not updating correctly. | C# | mit | smoogipoo/osu,peppy/osu,nyaamara/osu,peppy/osu,johnneijzen/osu,smoogipooo/osu,ppy/osu,peppy/osu,UselessToucan/osu,default0/osu,EVAST9919/osu,RedNesto/osu,UselessToucan/osu,theguii/osu,UselessToucan/osu,2yangk23/osu,ppy/osu,DrabWeb/osu,ppy/osu,peppy/osu-new,naoey/osu,johnneijzen/osu,smoogipoo/osu,NeoAdonis/osu,Nabile-Ra... |
e1c66282033fd806938e9cc54167d7cd3e2707d8 | src/Atata.WebDriverExtras.Tests/SafeWaitTests.cs | src/Atata.WebDriverExtras.Tests/SafeWaitTests.cs | using System;
using System.Threading;
using NUnit.Framework;
namespace Atata.WebDriverExtras.Tests
{
[TestFixture]
[Parallelizable(ParallelScope.None)]
public class SafeWaitTests
{
private SafeWait<object> wait;
[SetUp]
public void SetUp()
{
wait = new Safe... | using System;
using System.Threading;
using NUnit.Framework;
namespace Atata.WebDriverExtras.Tests
{
[TestFixture]
[Parallelizable(ParallelScope.None)]
public class SafeWaitTests
{
private SafeWait<object> wait;
[SetUp]
public void SetUp()
{
wait = new Safe... | Increase toleranceSeconds in SafeWait_PollingInterval_GreaterThanTimeout test | Increase toleranceSeconds in SafeWait_PollingInterval_GreaterThanTimeout test
| C# | apache-2.0 | atata-framework/atata-webdriverextras,atata-framework/atata-webdriverextras |
8eef2303297a36eac07f51378d4afb3dc41bbd96 | Paymetheus/Send.xaml.cs | Paymetheus/Send.xaml.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;... | using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using S... | Use locale's decimal separator instead of hardcoding period. | Use locale's decimal separator instead of hardcoding period.
Fixes #130.
| C# | isc | jrick/Paymetheus,decred/Paymetheus |
fe494447ea2b1e276e04c8ab4accfd3bdbf44e23 | src/WinApiNet/Properties/AssemblyInfo.cs | src/WinApiNet/Properties/AssemblyInfo.cs | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="AssemblyInfo.cs" company="WinAPI.NET">
// Copyright (c) Marek Dzikiewicz, All Rights Reserved.
// </copyright>
// ---------------------------------------------------------------... | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="AssemblyInfo.cs" company="WinAPI.NET">
// Copyright (c) Marek Dzikiewicz, All Rights Reserved.
// </copyright>
// ---------------------------------------------------------------... | Set WinApiNet assembly as CLS-compliant | Set WinApiNet assembly as CLS-compliant
| C# | mit | MpDzik/winapinet,MpDzik/winapinet |
bae91e339defcc1c3a7c2136f98f4eb5ea18793c | Silk.Data.SQL.ORM/Operations/DataOperation.cs | Silk.Data.SQL.ORM/Operations/DataOperation.cs | using Silk.Data.SQL.Expressions;
using Silk.Data.SQL.Queries;
using System.Threading.Tasks;
namespace Silk.Data.SQL.ORM.Operations
{
public abstract class DataOperation
{
/// <summary>
/// Gets a value indicating if the operation can be executed as part of a batch operation.
/// </summary>
public... | using Silk.Data.SQL.Expressions;
using Silk.Data.SQL.Queries;
using System.Threading.Tasks;
namespace Silk.Data.SQL.ORM.Operations
{
public abstract class DataOperation
{
/// <summary>
/// Gets a value indicating if the operation can be executed as part of a batch operation.
/// </summary>
public... | Add an API for getting the result of an operation without knowing it's type. | Add an API for getting the result of an operation without knowing it's type.
| C# | mit | SilkStack/Silk.Data.SQL.ORM |
1a516f282c24ba3c35cfa835589d9912afce0c63 | SimpleReport.Model/Replacers/ValueReplacer.cs | SimpleReport.Model/Replacers/ValueReplacer.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Xml;
using System.Xml.Linq;
namespace SimpleReport.Model.Replacers
{
/// <summary>
/// Used to replace xml code and remove sty... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Xml;
using System.Xml.Linq;
namespace SimpleReport.Model.Replacers
{
/// <summary>
/// Used to replace xml code and remove sty... | Remove xml encoding in reports. | [8182] Remove xml encoding in reports.
| C# | apache-2.0 | tronelius/simplereport,tronelius/simplereport,tronelius/simplereport |
9b6068be7bf6dd9b9923e18521feae8cc27a6701 | src/Server/Infrastructure/PackageUtility.cs | src/Server/Infrastructure/PackageUtility.cs | using System;
using System.Web;
using System.Web.Hosting;
using System.Configuration;
namespace NuGet.Server.Infrastructure
{
public class PackageUtility
{
internal static string PackagePhysicalPath;
private static string DefaultPackagePhysicalPath = HostingEnvironment.MapPath("~/Pa... | using System;
using System.Web;
using System.Web.Hosting;
using System.Configuration;
using System.IO;
namespace NuGet.Server.Infrastructure
{
public class PackageUtility
{
internal static string PackagePhysicalPath;
private static string DefaultPackagePhysicalPath = HostingEnviron... | Check if the specified path is a physical or a virtual path | Check if the specified path is a physical or a virtual path
| C# | apache-2.0 | mdavid/nuget,mdavid/nuget |
7d697130dee5f03eb58ca33cd8af1e8014e428f5 | src/ConsoleApp/Program.cs | src/ConsoleApp/Program.cs | using static System.Console;
namespace ConsoleApp
{
class Program
{
private static void Main()
{
var connectionString = @"Server=.\SQLEXPRESS;Database=LearnORM;Trusted_Connection=True;";
var schemaName = "dbo";
var tableName = "Book";
var column... | using static System.Console;
namespace ConsoleApp
{
class Program
{
private static void Main(string[] args)
{
if (args.Length != 3)
{
WriteLine("Usage: schema2fm.exe connectionstring schema table");
return;
}
var ... | Read parameters from command line arguments | Read parameters from command line arguments
| C# | mit | TeamnetGroup/schema2fm |
92fa1ea9410295e0ada133bcc077002abb8a4541 | Kooboo.CMS/Kooboo.CMS.ModuleArea/Areas/Empty/ModuleAction.cs | Kooboo.CMS/Kooboo.CMS.ModuleArea/Areas/Empty/ModuleAction.cs | #region License
//
// Copyright (c) 2013, Kooboo team
//
// Licensed under the BSD License
// See the file LICENSE.txt for details.
//
#endregion
using Kooboo.CMS.Sites.Extension.ModuleArea;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;
using Kooboo.CMS.... | #region License
//
// Copyright (c) 2013, Kooboo team
//
// Licensed under the BSD License
// See the file LICENSE.txt for details.
//
#endregion
using Kooboo.CMS.Sites.Extension.ModuleArea;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;
using Kooboo.CMS.... | Update the Empty module template. | Update the Empty module template.
| C# | bsd-3-clause | jtm789/CMS,andyshao/CMS,lingxyd/CMS,Kooboo/CMS,lingxyd/CMS,techwareone/Kooboo-CMS,andyshao/CMS,techwareone/Kooboo-CMS,jtm789/CMS,jtm789/CMS,lingxyd/CMS,techwareone/Kooboo-CMS,andyshao/CMS,Kooboo/CMS,Kooboo/CMS |
761fb9376e696bc017ce2352bd2272b03908d70f | DOAPI/Structs/Droplets.cs | DOAPI/Structs/Droplets.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DigitalOcean.Structs
{
public class Droplet
{
public int id { get; set; }
public string name { get; set; }
public int image_id { get; set; }... | using System.Collections.Generic;
namespace DigitalOcean.Structs
{
public class Droplet
{
public int id { get; set; }
public int image_id { get; set; }
public string name { get; set; }
public int region_id { get; set; }
public int size_id { get; set; }
public bo... | Make way for the extended information which can be requested using the Show Droplet request. | Make way for the extended information which can be requested using the Show Droplet request.
| C# | mit | JamieH/DigitalOcean-CSharp |
b97c63de07571ebf641c119dee78780320627ca8 | JsonNetDal/SubDocument.cs | JsonNetDal/SubDocument.cs | using MyDocs.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Windows.Storage;
using Logic = MyDocs.Common.Model.Logic;
namespace JsonNetDal
{
public class SubDocument
{
public string Title { get; set; }
public string File { get; s... | using MyDocs.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Windows.Storage;
using Logic = MyDocs.Common.Model.Logic;
namespace JsonNetDal
{
public class SubDocument
{
public string Title { get; set; }
public Uri File { g... | Use Uri's for subdocument file and photos | Use Uri's for subdocument file and photos
| C# | mit | eggapauli/MyDocs,eggapauli/MyDocs |
2b1d536ec9d0f844c9ad4ee8ad0b8670f8fc044c | src/Cronus.Core/Eventing/InMemoryEventBus.cs | src/Cronus.Core/Eventing/InMemoryEventBus.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Reflection.Emit;
using System.Threading.Tasks;
namespace Cronus.Core.Eventing
{
/// <summary>
/// Represents an in memory event messaging destribution
/// </summary>
public class InMemo... | using System;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace Cronus.Core.Eventing
{
/// <summary>
/// Represents an in memory event messaging destribution
/// </summary>
public class InMemoryEventBus : AbstractEventBus
{
/// <summary>
/// Publ... | Fix major bug when getting event handlers | Fix major bug when getting event handlers
| C# | apache-2.0 | Elders/Cronus,Elders/Cronus |
10a1557ba86a8b822e11ef1eec370ec3bd0ce75f | src/Daterpillar.CommandLine/Program.cs | src/Daterpillar.CommandLine/Program.cs | using Gigobyte.Daterpillar.Arguments;
using Gigobyte.Daterpillar.Commands;
using System;
namespace Gigobyte.Daterpillar
{
public class Program
{
internal static void Main(string[] args)
{
InitializeWindow();
start:
var options = new Options();
i... | using Gigobyte.Daterpillar.Arguments;
using Gigobyte.Daterpillar.Commands;
using System;
namespace Gigobyte.Daterpillar
{
public class Program
{
internal static void Main(string[] args)
{
InitializeWindow();
do
{
var commandLineOptions = new... | Remove goto statements from command line program | Remove goto statements from command line program
| C# | mit | Ackara/Daterpillar |
ebbb481fea06ca57b8bf16069ac0052272aa2c3c | samples/MvcSample/Program.cs | samples/MvcSample/Program.cs | #if NET45
using System;
using Microsoft.Owin.Hosting;
namespace MvcSample
{
public class Program
{
const string baseUrl = "http://localhost:9001/";
public static void Main()
{
using (WebApp.Start<Startup>(new StartOptions(baseUrl)))
{
Console.Wr... | using System;
#if NET45
using Microsoft.Owin.Hosting;
#endif
namespace MvcSample
{
public class Program
{
const string baseUrl = "http://localhost:9001/";
public static void Main()
{
#if NET45
using (WebApp.Start<Startup>(new StartOptions(baseUrl)))
{
... | Print hello world for k10 project. | Print hello world for k10 project.
| C# | apache-2.0 | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore |
34a54240d724b9b7610ab907f66286c8b9d151c1 | AzureBatchSample/TaskWebJob/Program.cs | AzureBatchSample/TaskWebJob/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Azure.WebJobs;
namespace TaskWebJob
{
// To learn more about Microsoft Azure WebJobs SDK, please see http://go.microsoft.com/fwlink/?LinkID=320976
class Program
{
// Please set the following connection str... | using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Azure.WebJobs;
namespace TaskWebJob
{
// To learn more about Microsoft Azure WebJobs SDK, please see http://go.microsoft.com/fwlink/?LinkID=320976
class Program
{
// Please set the following connection str... | Add classes for prime numbers | Add classes for prime numbers
| C# | mit | sakapon/Samples-2016,sakapon/Samples-2016 |
81658e2485350c0f4f29125eaf2279f3030f201b | vehicle-control/simulation/Assets/Scripts/CarCollisions.cs | vehicle-control/simulation/Assets/Scripts/CarCollisions.cs | /*
----------------------------------------------------------------------
Numenta Platform for Intelligent Computing (NuPIC)
Copyright (C) 2015, Numenta, Inc. Unless you have an agreement
with Numenta, Inc., for a separate license for this software code, the
following terms and conditions apply:
This pro... | /*
----------------------------------------------------------------------
Numenta Platform for Intelligent Computing (NuPIC)
Copyright (C) 2015, Numenta, Inc. Unless you have an agreement
with Numenta, Inc., for a separate license for this software code, the
following terms and conditions apply:
This pro... | Add resets when reloading level | Add resets when reloading level
| C# | agpl-3.0 | neuroidss/nupic.research,ThomasMiconi/htmresearch,ywcui1990/htmresearch,cogmission/nupic.research,ThomasMiconi/htmresearch,ywcui1990/htmresearch,mrcslws/htmresearch,BoltzmannBrain/nupic.research,mrcslws/htmresearch,ThomasMiconi/htmresearch,subutai/htmresearch,BoltzmannBrain/nupic.research,subutai/htmresearch,subutai/ht... |
cea2d7feda0a8e93713308aaf20e268ea0898aba | NBi.Core/Scalar/Comparer/ToleranceFactory.cs | NBi.Core/Scalar/Comparer/ToleranceFactory.cs | using NBi.Core.ResultSet;
using System;
using System.Globalization;
using System.Linq;
namespace NBi.Core.Scalar.Comparer
{
public class ToleranceFactory
{
public static Tolerance Instantiate(IColumnDefinition columnDefinition)
{
if (columnDefinition.Role != ColumnRole.Value)
... | using NBi.Core.ResultSet;
using System;
using System.Globalization;
using System.Linq;
namespace NBi.Core.Scalar.Comparer
{
public class ToleranceFactory
{
public static Tolerance Instantiate(IColumnDefinition columnDefinition)
{
if (string.IsNullOrEmpty(columnDefinition.Tolerance... | Fix huge bug related to instantiation of tolerance | Fix huge bug related to instantiation of tolerance
| C# | apache-2.0 | Seddryck/NBi,Seddryck/NBi |
3c965548269cc15d4b7ab50e230b072640c2d458 | NQuery.Language.ActiproWpf/NQueryLanguage.cs | NQuery.Language.ActiproWpf/NQueryLanguage.cs | using System;
using System.ComponentModel.Composition;
using System.ComponentModel.Composition.Hosting;
using System.ComponentModel.Composition.Primitives;
using ActiproSoftware.Text.Implementation;
using NQuery.Language.Services.BraceMatching;
namespace NQuery.Language.ActiproWpf
{
public sealed class NQueryLan... | using System;
using System.ComponentModel.Composition;
using System.ComponentModel.Composition.Hosting;
using System.ComponentModel.Composition.Primitives;
using ActiproSoftware.Text.Implementation;
using NQuery.Language.Services.BraceMatching;
using NQuery.Language.Wpf;
namespace NQuery.Language.ActiproWpf
{
pu... | Fix Actipro language to construct the correct set of language services | Fix Actipro language to construct the correct set of language services
| C# | mit | terrajobst/nquery-vnext |
bf567e6df56fad7ef637a03b274cad2a1afa10fc | osu.Game/Overlays/Settings/SettingsTextBox.cs | osu.Game/Overlays/Settings/SettingsTextBox.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.Game.Graphics.UserInterface;
namespace osu.Game.Overlays.Settings
{
public class SettingsTextBox : SettingsItem<string>
... | // 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.Game.Graphics.UserInterface;
namespace osu.Game.Overlays.Settings
{
public class SettingsTextBox : SettingsItem<string>
... | Make settings textboxes commit on focus lost | Make settings textboxes commit on focus lost
| C# | mit | peppy/osu,johnneijzen/osu,peppy/osu-new,smoogipoo/osu,NeoAdonis/osu,johnneijzen/osu,ppy/osu,NeoAdonis/osu,ppy/osu,UselessToucan/osu,smoogipoo/osu,smoogipooo/osu,EVAST9919/osu,peppy/osu,peppy/osu,2yangk23/osu,NeoAdonis/osu,UselessToucan/osu,UselessToucan/osu,smoogipoo/osu,EVAST9919/osu,2yangk23/osu,ppy/osu |
e43dba8084b47fc5b9649f49ce4316cf4b855e7c | Core/NuGetConstants.cs | Core/NuGetConstants.cs | namespace NuGetPe
{
public static class NuGetConstants
{
public static readonly string DefaultFeedUrl = "http://www.nuget.org/api/v2/";
public static readonly string V2LegacyFeedUrl = "https://nuget.org/api/v2/";
public static readonly string PluginFeedUrl = "http://www.myget.org/F/npe/... | namespace NuGetPe
{
public static class NuGetConstants
{
public static readonly string DefaultFeedUrl = "https://www.nuget.org/api/v2/";
public static readonly string V2LegacyFeedUrl = "https://nuget.org/api/v2/";
public static readonly string PluginFeedUrl = "http://www.myget.org/F/npe... | Update nuget url to https | Update nuget url to https
| C# | mit | NuGetPackageExplorer/NuGetPackageExplorer,campersau/NuGetPackageExplorer,NuGetPackageExplorer/NuGetPackageExplorer |
f75e6c307df4189a75e56aab01ab0a2ab16c475a | Take2/NuLog/Targets/ConsoleTarget.cs | Take2/NuLog/Targets/ConsoleTarget.cs | /* © 2017 Ivan Pointer
MIT License: https://github.com/ivanpointer/NuLog/blob/master/LICENSE
Source on GitHub: https://github.com/ivanpointer/NuLog */
using NuLog.LogEvents;
using System;
using System.Threading.Tasks;
namespace NuLog.Targets
{
public class ConsoleTarget : LayoutTargetBase
{
public ov... | /* © 2017 Ivan Pointer
MIT License: https://github.com/ivanpointer/NuLog/blob/master/LICENSE
Source on GitHub: https://github.com/ivanpointer/NuLog */
using NuLog.LogEvents;
using System;
namespace NuLog.Targets
{
public class ConsoleTarget : LayoutTargetBase
{
public override void Write(LogEvent log... | Remove reference to unused "Tasks". | Remove reference to unused "Tasks".
| C# | mit | ivanpointer/NuLog,ivanpointer/NuLog,ivanpointer/NuLog,ivanpointer/NuLog,ivanpointer/NuLog |
54f6d569fdc0a5a47ee6cef7e16a35e36fa22950 | packages/QtCreatorBuilder/dev/QtCreatorBuilder.cs | packages/QtCreatorBuilder/dev/QtCreatorBuilder.cs | // <copyright file="QtCreatorBuilder.cs" company="Mark Final">
// Opus package
// </copyright>
// <summary>QtCreator package</summary>
// <author>Mark Final</author>
[assembly: Opus.Core.DeclareBuilder("QtCreator", typeof(QtCreatorBuilder.QtCreatorBuilder))]
// Automatically generated by Opus v0.20
namespace ... | // <copyright file="QtCreatorBuilder.cs" company="Mark Final">
// Opus package
// </copyright>
// <summary>QtCreator package</summary>
// <author>Mark Final</author>
[assembly: Opus.Core.DeclareBuilder("QtCreator", typeof(QtCreatorBuilder.QtCreatorBuilder))]
// Automatically generated by Opus v0.20
namespace ... | Simplify the .pro file names | [qtcreator] Simplify the .pro file names
| C# | bsd-3-clause | markfinal/BuildAMation,markfinal/BuildAMation,markfinal/BuildAMation,markfinal/BuildAMation,markfinal/BuildAMation |
a49d6139f709aad72119ddd290a7c7425b369254 | Zk/App_Start/IocConfig.cs | Zk/App_Start/IocConfig.cs | using System.Web.Mvc;
using Autofac;
using Autofac.Integration.Mvc;
using Zk.Models;
using Zk.Services;
using Zk.Repositories;
namespace Zk
{
public static class IocConfig
{
public static void RegisterDependencies()
{
var builder = new ContainerBuilder();
builder.Regist... | using System.Web.Mvc;
using Autofac;
using Autofac.Integration.Mvc;
using Zk.Models;
using Zk.Services;
using Zk.Repositories;
namespace Zk
{
public static class IocConfig
{
public static void RegisterDependencies()
{
var builder = new ContainerBuilder();
builder.Regist... | Add instanceperrequest lifetime scope to all services | Add instanceperrequest lifetime scope to all services
| C# | mit | erooijak/oogstplanner,erooijak/oogstplanner,erooijak/oogstplanner,erooijak/oogstplanner |
6c602edd18faea59c6a9d2351c175fffebe739a1 | DAQ/PHBonesawFileSystem.cs | DAQ/PHBonesawFileSystem.cs | using System;
namespace DAQ.Environment
{
public class PHBonesawFileSystem : DAQ.Environment.FileSystem
{
public PHBonesawFileSystem()
{
Paths.Add("MOTMasterDataPath", "C:\\Users\\cafmot\\Box\\CaF MOT\\MOTData\\MOTMasterData\\");
Paths.Add("scriptListPath", "C:\\Control... | using System;
namespace DAQ.Environment
{
public class PHBonesawFileSystem : DAQ.Environment.FileSystem
{
public PHBonesawFileSystem()
{
Paths.Add("MOTMasterDataPath", "C:\\Users\\cafmot\\Box Sync\\CaF MOT\\MOTData\\MOTMasterData\\");
Paths.Add("scriptListPath", "C:\\Co... | Change CaF file system paths | Change CaF file system paths
- We've moved back to using Box sync (instead of Box drive) on lab
computer so file paths have changed
| C# | mit | ColdMatter/EDMSuite,ColdMatter/EDMSuite,ColdMatter/EDMSuite,ColdMatter/EDMSuite |
93411463f182d623d9904aa002ccf7cba8759294 | src/VisualStudio/Core/Def/Telemetry/ProjectTypeLookupService.cs | src/VisualStudio/Core/Def/Telemetry/ProjectTypeLookupService.cs | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Composition;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.Host;
using Microsoft.CodeAnalysis.Host.Mef;
using Microsoft.VisualStudi... | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Composition;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.Host;
using Microsoft.CodeAnalysis.Host.Mef;
using Microsoft.VisualStudi... | Fix incorrect assumption that a workspace is a Visual Studio workspace | Fix incorrect assumption that a workspace is a Visual Studio workspace
Fixes #27128
| C# | mit | paulvanbrenk/roslyn,ErikSchierboom/roslyn,tmeschter/roslyn,weltkante/roslyn,genlu/roslyn,cston/roslyn,davkean/roslyn,abock/roslyn,KevinRansom/roslyn,tmeschter/roslyn,aelij/roslyn,shyamnamboodiripad/roslyn,nguerrera/roslyn,MichalStrehovsky/roslyn,OmarTawfik/roslyn,dotnet/roslyn,AdamSpeight2008/roslyn-AdamSpeight2008,pan... |
b37197f66aa4ae86ee7fba0393b38a41e96c347f | src/Umbraco.Web.UI/Views/Partials/Grid/Editors/Media.cshtml | src/Umbraco.Web.UI/Views/Partials/Grid/Editors/Media.cshtml | @model dynamic
@using Umbraco.Web.Templates
@if (Model.value != null)
{
var url = Model.value.image;
if(Model.editor.config != null && Model.editor.config.size != null){
url += "?width=" + Model.editor.config.size.width;
url += "&height=" + Model.editor.config.size.height;
if(Model... | @model dynamic
@using Umbraco.Web.Templates
@if (Model.value != null)
{
var url = Model.value.image;
if(Model.editor.config != null && Model.editor.config.size != null){
url += "?width=" + Model.editor.config.size.width;
url += "&height=" + Model.editor.config.size.height;
if(Model... | Fix for U4-10821, render alt text attribute from grid image editor, or empty string if null (for screen readers) | Fix for U4-10821, render alt text attribute from grid image editor, or empty string if null (for screen readers)
| C# | mit | abjerner/Umbraco-CMS,umbraco/Umbraco-CMS,rasmuseeg/Umbraco-CMS,KevinJump/Umbraco-CMS,abryukhov/Umbraco-CMS,tcmorris/Umbraco-CMS,NikRimington/Umbraco-CMS,umbraco/Umbraco-CMS,leekelleher/Umbraco-CMS,aaronpowell/Umbraco-CMS,marcemarc/Umbraco-CMS,lars-erik/Umbraco-CMS,marcemarc/Umbraco-CMS,abjerner/Umbraco-CMS,lars-erik/Um... |
f59271f3592c2bdd8e1e8a9ab7834d121cc77be8 | samples/TabletDesigner/TabletDesignerPage.xaml.cs | samples/TabletDesigner/TabletDesignerPage.xaml.cs | using System;
using Sancho.DOM.XamarinForms;
using Sancho.XAMLParser;
using TabletDesigner.Helpers;
using Xamarin.Forms;
namespace TabletDesigner
{
public interface ILogAccess
{
void Clear();
string Log { get; }
}
public partial class TabletDesignerPage : ContentPage
{
ILo... | using System;
using Sancho.DOM.XamarinForms;
using Sancho.XAMLParser;
using TabletDesigner.Helpers;
using Xamarin.Forms;
namespace TabletDesigner
{
public interface ILogAccess
{
void Clear();
string Log { get; }
}
public partial class TabletDesignerPage : ContentPage
{
ILo... | Handle content pages as well | Handle content pages as well
| C# | mit | MassivePixel/Sancho.XAMLParser |
78f2f09c264637170dd969004a4d5eadf1844b65 | JSIL/DeclarationHoister.cs | JSIL/DeclarationHoister.cs | using System;
using System.Collections.Generic;
using ICSharpCode.Decompiler;
using ICSharpCode.Decompiler.Ast.Transforms;
using ICSharpCode.NRefactory.CSharp;
namespace JSIL {
public class DeclarationHoister : ContextTrackingVisitor<object> {
public readonly BlockStatement Output;
public Variable... | using System;
using System.Collections.Generic;
using ICSharpCode.Decompiler;
using ICSharpCode.Decompiler.Ast.Transforms;
using ICSharpCode.NRefactory.CSharp;
namespace JSIL {
public class DeclarationHoister : ContextTrackingVisitor<object> {
public readonly BlockStatement Output;
public Variable... | Fix hoisting of null initializers | Fix hoisting of null initializers
| C# | mit | x335/JSIL,acourtney2015/JSIL,antiufo/JSIL,dmirmilshteyn/JSIL,sq/JSIL,volkd/JSIL,hach-que/JSIL,dmirmilshteyn/JSIL,FUSEEProjectTeam/JSIL,Trattpingvin/JSIL,FUSEEProjectTeam/JSIL,volkd/JSIL,FUSEEProjectTeam/JSIL,acourtney2015/JSIL,iskiselev/JSIL,Trattpingvin/JSIL,hach-que/JSIL,dmirmilshteyn/JSIL,x335/JSIL,antiufo/JSIL,Trat... |
f423dbbb1de22222abf01bdfdcd9f7fec5c20d8c | src/Avalonia.Base/Data/Core/SettableNode.cs | src/Avalonia.Base/Data/Core/SettableNode.cs | using Avalonia.Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Avalonia.Data.Core
{
internal abstract class SettableNode : ExpressionNode
{
public bool SetTargetValue(object value, BindingPriority priority)
{
... | using Avalonia.Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Avalonia.Data.Core
{
internal abstract class SettableNode : ExpressionNode
{
public bool SetTargetValue(object value, BindingPriority priority)
{
... | Fix codepath where the property is a value type but the weakreference has been collected. | Fix codepath where the property is a value type but the weakreference has been collected.
| C# | mit | wieslawsoltes/Perspex,SuperJMN/Avalonia,wieslawsoltes/Perspex,SuperJMN/Avalonia,jkoritzinsky/Avalonia,jkoritzinsky/Avalonia,SuperJMN/Avalonia,jkoritzinsky/Avalonia,jkoritzinsky/Avalonia,jkoritzinsky/Avalonia,jkoritzinsky/Avalonia,wieslawsoltes/Perspex,SuperJMN/Avalonia,grokys/Perspex,jkoritzinsky/Avalonia,AvaloniaUI/Av... |
fee2f0d58872c0a0ab56e16322d7d0bd20015439 | services/SharedKernel/FilterLists.SharedKernel.Logging/HostRunner.cs | services/SharedKernel/FilterLists.SharedKernel.Logging/HostRunner.cs | using System;
using System.Threading.Tasks;
using Microsoft.ApplicationInsights.Extensibility;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Serilog;
namespace FilterLists.SharedKernel.Logging
{
public static class HostRunner
... | using System;
using System.Threading.Tasks;
using Microsoft.ApplicationInsights.Extensibility;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Serilog;
namespace FilterLists.SharedKernel.Logging
{
public static class HostRunner
{
public static async Task TryRu... | Revert "fix(logging): 🐛 try yet another AppInsights config" | Revert "fix(logging): 🐛 try yet another AppInsights config"
This reverts commit a313ce949202d3cc6263b8ff7136a34cf99715de.
| C# | mit | collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists |
4eb6026cc3a0b785bd77faa80a64e202a48d1491 | src/FluentNHibernate/Mapping/ImportPart.cs | src/FluentNHibernate/Mapping/ImportPart.cs | using System;
using System.Xml;
namespace FluentNHibernate.Mapping
{
public class ImportPart : IMappingPart
{
private readonly Cache<string, string> attributes = new Cache<string, string>();
private readonly Type importType;
public ImportPart(Type importType)
{
... | using System;
using System.Xml;
namespace FluentNHibernate.Mapping
{
public class ImportPart : IMappingPart
{
private readonly Cache<string, string> attributes = new Cache<string, string>();
private readonly Type importType;
public ImportPart(Type importType)
{
... | Fix import tag to have correct namespace | Fix import tag to have correct namespace
git-svn-id: a161142445158cf41e00e2afdd70bb78aded5464@138 48f0ce17-cc52-0410-af8c-857c09b6549b
| C# | bsd-3-clause | hzhgis/ss,HermanSchoenfeld/fluent-nhibernate,chester89/fluent-nhibernate,narnau/fluent-nhibernate,bogdan7/nhibernate,narnau/fluent-nhibernate,oceanho/fluent-nhibernate,lingxyd/fluent-nhibernate,hzhgis/ss,bogdan7/nhibernate,MiguelMadero/fluent-nhibernate,oceanho/fluent-nhibernate,hzhgis/ss,owerkop/fluent-nhibernate,ling... |
4b5e57a4dcb6058077cc547940b874feceae8ea6 | Source/Monitorian.Core/Views/Behaviors/FocusElementAction.cs | Source/Monitorian.Core/Views/Behaviors/FocusElementAction.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using Microsoft.Xaml.Behaviors;
namespace Monitorian.Core.Views.Behaviors
{
public class FocusElementAction : TriggerAction<DependencyObject>
{
public UIElement Tar... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using Microsoft.Xaml.Behaviors;
namespace Monitorian.Core.Views.Behaviors
{
public class FocusElementAction : TriggerAction<DependencyObject>
{
public UIElement Tar... | Modify PropertyMetadata for correct overloading | Modify PropertyMetadata for correct overloading
| C# | mit | emoacht/Monitorian |
da5d641a9ec7306de0f8147650dc8cac29366b62 | Assets/FullSerializer/Source/Converters/Unity/UnityEvent_Converter.cs | Assets/FullSerializer/Source/Converters/Unity/UnityEvent_Converter.cs | #if !NO_UNITY
using System;
using UnityEngine;
using UnityEngine.Events;
namespace FullSerializer {
partial class fsConverterRegistrar {
public static Internal.Converters.UnityEvent_Converter Register_UnityEvent_Converter;
}
}
namespace FullSerializer.Internal.Converters {
// The standard FS refle... | #if !NO_UNITY
using System;
using UnityEngine;
using UnityEngine.Events;
namespace FullSerializer {
partial class fsConverterRegistrar {
// Disable the converter for the time being. Unity's JsonUtility API cannot be called from
// within a C# ISerializationCallbackReceiver callback.
// pub... | Disable UnityEvent workaround since it is broken in Full Inspector | Disable UnityEvent workaround since it is broken in Full Inspector
| C# | mit | jacobdufault/fullserializer,jacobdufault/fullserializer,jacobdufault/fullserializer |
6896a68f2c177e8c9d052bab2e15830c539b757b | SurveyMonkey/Containers/Recipient.cs | SurveyMonkey/Containers/Recipient.cs | using System.Collections.Generic;
using Newtonsoft.Json;
using SurveyMonkey.Enums;
namespace SurveyMonkey.Containers
{
[JsonConverter(typeof(TolerantJsonConverter))]
public class Recipient : IPageableContainer
{
public long? Id { get; set; }
public long? SurveyId { get; set; }
inte... | using System.Collections.Generic;
using Newtonsoft.Json;
using SurveyMonkey.Enums;
namespace SurveyMonkey.Containers
{
[JsonConverter(typeof(TolerantJsonConverter))]
public class Recipient : IPageableContainer
{
public long? Id { get; set; }
public long? SurveyId { get; set; }
inte... | Include first & last names for recipients | Include first & last names for recipients
| C# | mit | bcemmett/SurveyMonkeyApi-v3 |
5c1f87a719d3c06d0bef766bc57be3ffe03a6b13 | DspAdpcm/DspAdpcm.Cli/DspAdpcmCli.cs | DspAdpcm/DspAdpcm.Cli/DspAdpcmCli.cs | using System;
using System.Diagnostics;
using System.IO;
using DspAdpcm.Encode.Adpcm;
using DspAdpcm.Encode.Adpcm.Formats;
using DspAdpcm.Encode.Pcm;
using DspAdpcm.Encode.Pcm.Formats;
namespace DspAdpcm.Cli
{
public static class DspAdpcmCli
{
public static int Main(string[] args)
{
... | using System;
using System.Diagnostics;
using System.IO;
using DspAdpcm.Encode.Adpcm;
using DspAdpcm.Encode.Adpcm.Formats;
using DspAdpcm.Encode.Pcm;
using DspAdpcm.Encode.Pcm.Formats;
namespace DspAdpcm.Cli
{
public static class DspAdpcmCli
{
public static int Main(string[] args)
{
... | Make brstm instead of dsp. Encode adpcm channels in parallel | CLI: Make brstm instead of dsp. Encode adpcm channels in parallel
| C# | mit | Thealexbarney/VGAudio,Thealexbarney/VGAudio,Thealexbarney/LibDspAdpcm,Thealexbarney/LibDspAdpcm |
aaa0c4fe7da73944a8b7d9e862ba458f14880227 | SkypeSharp/Chat.cs | SkypeSharp/Chat.cs | using System.Collections.Generic;
using System.Linq;
namespace SkypeSharp {
/// <summary>
/// Class representing a Skype CHAT object
/// </summary>
public class Chat : SkypeObject {
/// <summary>
/// List of users in this chat
/// </summary>
public IEnumerable<U... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
namespace SkypeSharp {
/// <summary>
/// Class representing a Skype CHAT object
/// </summary>
public class Chat : SkypeObject {
/// <summary>
/// List of users in this chat
///... | Add raw message sending, requires xdotool | Add raw message sending, requires xdotool
| C# | mit | Goz3rr/SkypeSharp |
3b3f4c5fb0218cbd14c2fe523c8a4903613fb93b | SeleniumExtension/SauceLabs/SauceDriverKeys.cs | SeleniumExtension/SauceLabs/SauceDriverKeys.cs | using System;
namespace SeleniumExtension.SauceLabs
{
public class SauceDriverKeys
{
public static string SAUCELABS_USERNAME
{
get
{
var userName = Environment.GetEnvironmentVariable("SAUCELABS_USERNAME", EnvironmentVariableTarget.User);
... | using System;
namespace SeleniumExtension.SauceLabs
{
public class SauceDriverKeys
{
public static string SAUCELABS_USERNAME
{
get
{
var userName = Environment.GetEnvironmentVariable("SAUCELABS_USERNAME");
if(string.IsNullOrEmpty(userNam... | Change the target to get working on build server | Change the target to get working on build server
| C# | mit | rcasady616/Selenium.WeDriver.Equip,rcasady616/Selenium.WeDriver.Equip |
3fa0c5723a64ce6ec994b48a1cd375103eea6b18 | src/Metrics.Integrations.Linters.Cli/LogManager.cs | src/Metrics.Integrations.Linters.Cli/LogManager.cs | namespace Metrics.Integrations.Linters
{
using System;
using System.IO;
using System.Text;
// TODO: Improve logging.
public class LogManager : IDisposable
{
public StringBuilder LogWriter { get; }
private bool saved = false;
public LogManager()
{
Log... | namespace Metrics.Integrations.Linters
{
using System;
using System.IO;
using System.Text;
// TODO: Improve logging.
public class LogManager : IDisposable
{
public StringBuilder LogWriter { get; }
private bool saved = false;
private bool error = false;
public Lo... | Write logs to console only in case of error | Write logs to console only in case of error
| C# | mit | repometric/linterhub-cli,repometric/linterhub-cli,binore/linterhub-cli,repometric/linterhub-cli,binore/linterhub-cli,binore/linterhub-cli |
824ab3196e49d657d3185e3c65e838af0fbf01f5 | KAGTools/Helpers/ApiHelper.cs | KAGTools/Helpers/ApiHelper.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using KAGTools.Data;
using Newtonsoft.Json;
namespace KAGTools.Helpers
{
public static class ApiHelper
{
private const string UrlPlayer = "ht... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using KAGTools.Data;
using Newtonsoft.Json;
namespace KAGTools.Helpers
{
public static class ApiHelper
{
private const string UrlPlayer = "ht... | Include request URL in HTTP error message | Include request URL in HTTP error message
| C# | mit | CalebChalmers/KAGTools |
26dda4aa0650a17ff0cd7b8f1a70cf9a5e66cb0c | gtksharp_clock/Program.cs | gtksharp_clock/Program.cs | using System;
using Gtk;
namespace gtksharp_clock
{
class MainClass
{
public static void Main(string[] args)
{
Application.Init();
MainWindow win = new MainWindow();
win.Show();
Application.Run();
}
}
}
| using System;
using Gtk;
// http://www.mono-project.com/docs/gui/gtksharp/widgets/widget-colours/
namespace gtksharp_clock
{
class MainClass
{
public static void Main(string[] args)
{
Application.Init();
ClockWindow win = new ClockWindow ();
win.Show();
Application.Run();
}
}
class ClockWindow... | Add clock Face and Window classes. Draw a line. Setting FG color is TODO. | Add clock Face and Window classes. Draw a line. Setting FG color is TODO.
| C# | mit | clicketyclack/gtksharp_clock |
576548773f3372fcfaee69c9e8238ace66da276c | Enumerable.cs | Enumerable.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace RabidWarren.Collections.Generic
{
public static class Enumerable
{
public static Multimap<TKey, TElement> ToMultimap<TSource, TKey, TElement>(
this IEnumerable<TSource> source,
Func<... | // -----------------------------------------------------------------------
// <copyright file="Enumerable.cs" company="Ron Parker">
// Copyright 2014 Ron Parker
// </copyright>
// <summary>
// Provides an extension method for converting IEnumerables to Multimaps.
// </summary>
// ------------------------------... | Document and clean up the binding code | Document and clean up the binding code
| C# | mit | rdparker/RabidWarren.Collections |
5b86faaaa273e1c6270401265e2c957f31589e13 | VotingApplication/VotingApplication.Web/Views/Poll/Index.cshtml | VotingApplication/VotingApplication.Web/Views/Poll/Index.cshtml | <!DOCTYPE html>
<html ng-app="VoteOn-Poll">
<head>
<title>Vote On</title>
<meta name="viewport" content="initial-scale=1">
@Styles.Render("~/Bundles/StyleLib/AngularMaterial")
@Styles.Render("~/Bundles/StyleLib/FontAwesome")
@Styles.Render("~/Bundles/VotingStyle")
</head>
<body>
<div layout=... | <!DOCTYPE html>
<html ng-app="VoteOn-Poll">
<head>
<title>Vote On</title>
<meta name="viewport" content="initial-scale=1">
@Styles.Render("~/Bundles/StyleLib/AngularMaterial")
@Styles.Render("~/Bundles/StyleLib/FontAwesome")
@Styles.Render("~/Bundles/VotingStyle")
</head>
<body>
<div layout=... | Remove semicolons from poll page | Remove semicolons from poll page
| C# | apache-2.0 | stevenhillcox/voting-application,tpkelly/voting-application,stevenhillcox/voting-application,tpkelly/voting-application,stevenhillcox/voting-application,Generic-Voting-Application/voting-application,Generic-Voting-Application/voting-application,JDawes-ScottLogic/voting-application,JDawes-ScottLogic/voting-application,t... |
1a474592625ccc97b47b11bdb953dcdbf3fdd8a9 | osu.Game.Rulesets.Taiko/Mods/TaikoModDifficultyAdjust.cs | osu.Game.Rulesets.Taiko/Mods/TaikoModDifficultyAdjust.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Linq;
using osu.Game.Beatmaps;
using osu.Game.Configuration;
using osu.Game.Rulesets.Mods;
namespace osu.Game.Rulesets.Taiko.Mods
{
public class TaikoMo... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Linq;
using osu.Game.Beatmaps;
using osu.Game.Configuration;
using osu.Game.Rulesets.Mods;
namespace osu.Game.Rulesets.Taiko.Mods
{
public class TaikoMo... | Fix taiko difficulty adjust scroll speed being shown with too low precision | Fix taiko difficulty adjust scroll speed being shown with too low precision
| C# | mit | ppy/osu,ppy/osu,NeoAdonis/osu,peppy/osu,peppy/osu,peppy/osu,NeoAdonis/osu,NeoAdonis/osu,ppy/osu |
a7bcae48694a1ead3949cedcf866c59d3b77d751 | osu.Game/Screens/Play/ReplaySettings/PlaybackSettings.cs | osu.Game/Screens/Play/ReplaySettings/PlaybackSettings.cs | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Framework.Timing;
using osu.Framework.Configuration;
namespace osu.Game.Screens.Play.ReplaySettings
{
public class PlaybackSettings : ReplayGroup... | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Framework.Timing;
using osu.Framework.Configuration;
namespace osu.Game.Screens.Play.ReplaySettings
{
public class PlaybackSettings : ReplayGroup... | Add startup value for the slider | Add startup value for the slider
| C# | mit | peppy/osu,DrabWeb/osu,peppy/osu,naoey/osu,ZLima12/osu,ppy/osu,EVAST9919/osu,Nabile-Rahmani/osu,johnneijzen/osu,UselessToucan/osu,smoogipoo/osu,NeoAdonis/osu,DrabWeb/osu,smoogipoo/osu,ppy/osu,2yangk23/osu,NeoAdonis/osu,peppy/osu-new,naoey/osu,2yangk23/osu,UselessToucan/osu,Frontear/osuKyzer,ZLima12/osu,EVAST9919/osu,Neo... |
e96dd7982334b22c12e2eec2e3ca08bd48e1fd5c | src/Stripe.net/Entities/StripeStatusTransitions.cs | src/Stripe.net/Entities/StripeStatusTransitions.cs | using System;
using Newtonsoft.Json;
using Stripe.Infrastructure;
namespace Stripe
{
public class StripeStatusTransitions : StripeEntity
{
[JsonConverter(typeof(StripeDateTimeConverter))]
[JsonProperty("canceled")]
public DateTime? Canceled { get; set; }
[JsonConverter(typeof(... | using System;
using Newtonsoft.Json;
using Stripe.Infrastructure;
namespace Stripe
{
public class StripeStatusTransitions : StripeEntity
{
[JsonConverter(typeof(StripeDateTimeConverter))]
[JsonProperty("canceled")]
public DateTime? Canceled { get; set; }
[JsonConverter(typeof(... | Change name of the property for the status transition to match the API too | Change name of the property for the status transition to match the API too
| C# | apache-2.0 | richardlawley/stripe.net,stripe/stripe-dotnet |
641656b2e3717f830439bd7eb41157efc410a8c6 | src/Daterpillar.Core/TextTransformation/ScriptBuilderFactory.cs | src/Daterpillar.Core/TextTransformation/ScriptBuilderFactory.cs | using System;
using System.Collections.Generic;
using System.Reflection;
namespace Acklann.Daterpillar.TextTransformation
{
public class ScriptBuilderFactory
{
public ScriptBuilderFactory()
{
LoadAssemblyTypes();
}
public IScriptBuilder CreateInstance(string name)
... | using System;
using System.Collections.Generic;
using System.Reflection;
namespace Acklann.Daterpillar.TextTransformation
{
public class ScriptBuilderFactory
{
public ScriptBuilderFactory()
{
LoadAssemblyTypes();
}
public IScriptBuilder CreateInstance(string name)
... | Add new createInstance overloads to scriptbuilderfactory.cs to support scriptbuildersettings args | Add new createInstance overloads to scriptbuilderfactory.cs to support scriptbuildersettings args
| C# | mit | Ackara/Daterpillar |
a23f8baf25f006956fc66bdcbc9515644450abd4 | source/CroquetAustralia.WebApi/Controllers/TournamentEntryController.cs | source/CroquetAustralia.WebApi/Controllers/TournamentEntryController.cs | using System.Threading.Tasks;
using System.Web.Http;
using CroquetAustralia.Domain.Features.TournamentEntry.Commands;
using CroquetAustralia.Domain.Features.TournamentEntry.Events;
using CroquetAustralia.Domain.Services.Queues;
namespace CroquetAustralia.WebApi.Controllers
{
[RoutePrefix("tournament-entry... | using System;
using System.Threading.Tasks;
using System.Web.Http;
using CroquetAustralia.Domain.Features.TournamentEntry;
using CroquetAustralia.Domain.Features.TournamentEntry.Commands;
using CroquetAustralia.Domain.Features.TournamentEntry.Events;
using CroquetAustralia.Domain.Services.Queues;
namespace Cr... | Fix EOI emails are not sent | Fix EOI emails are not sent
| C# | mit | croquet-australia/api.croquet-australia.com.au |
9733593f3eba2c700fc83312c5829a3b256779b1 | DevelopmentInProgress.DipState/DipStateType.cs | DevelopmentInProgress.DipState/DipStateType.cs | using System.Xml.Serialization;
namespace DevelopmentInProgress.DipState
{
public enum DipStateType
{
[XmlEnum("1")]
Standard = 1,
[XmlEnum("2")]
Auto = 3
}
} | using System.Xml.Serialization;
namespace DevelopmentInProgress.DipState
{
public enum DipStateType
{
[XmlEnum("1")]
Standard = 1,
[XmlEnum("2")]
Auto = 2,
[XmlEnum("3")]
Root = 3
}
} | Add a root state type | Add a root state type
Add a root state type
| C# | apache-2.0 | grantcolley/dipstate |
08ebe7b55b3e0b60ceed0f3f25084b43d0f1e2af | test/Sitecore.FakeDb.Serialization.Tests/Deserialize/DeserializeTree.cs | test/Sitecore.FakeDb.Serialization.Tests/Deserialize/DeserializeTree.cs | namespace Sitecore.FakeDb.Serialization.Tests.Deserialize
{
using System.Linq;
using Xunit;
[Trait("Deserialize", "Deserializing a tree of items")]
public class DeserializeTree : DeserializeTestBase
{
public DeserializeTree()
{
this.Db.Add(new DsDbItem(SerializationId.SampleTemplateFolder, tru... | namespace Sitecore.FakeDb.Serialization.Tests.Deserialize
{
using System.Linq;
using Xunit;
[Trait("Deserialize", "Deserializing a tree of items")]
public class DeserializeTree : DeserializeTestBase
{
public DeserializeTree()
{
this.Db.Add(new DsDbItem(SerializationId.SampleTemplateFolder, tru... | Fix broken tests getting items from the valid root | Fix broken tests getting items from the valid root
| C# | mit | pveller/Sitecore.FakeDb,sergeyshushlyapin/Sitecore.FakeDb |
1c853a5f501506d98b51a6fd5189cdfa60e8fa56 | PluginLoader.Tests/Plugins_Tests.cs | PluginLoader.Tests/Plugins_Tests.cs | using PluginContracts;
using System;
using System.Collections.Generic;
using Xunit;
namespace PluginLoader.Tests
{
public class Plugins_Tests
{
[Fact]
public void PluginsFoundFromLibsFolder()
{
// Arrange
var path = @"..\..\..\..\LAN\bin\Debug\netstandard1.3";
... | using PluginContracts;
using System;
using System.Collections.Generic;
using Xunit;
namespace PluginLoader.Tests
{
public class Plugins_Tests
{
[Fact]
public void PluginsFoundFromLibsFolder()
{
// Arrange
var path = @"..\..\..\..\Libs";
// Act
... | Change the plugin library load path | Change the plugin library load path
Instead of pointing to netstandard1.3 folder this change will change the library load path to point to Libs folder that will contain libraries after code has been compiled.
| C# | mit | tparviainen/oscilloscope |
589578d1f403ff8df19078470edfc161536a6876 | SimpleMvcSitemap/BaseUrlProvider.cs | SimpleMvcSitemap/BaseUrlProvider.cs | using System.Web;
using System.Web.Mvc;
namespace SimpleMvcSitemap
{
class BaseUrlProvider : IBaseUrlProvider
{
public string GetBaseUrl(HttpContextBase httpContext)
{
//http://stackoverflow.com/a/1288383/205859
HttpRequestBase request = httpContext.Request;
... | using System.Web;
using System.Web.Mvc;
namespace SimpleMvcSitemap
{
class BaseUrlProvider : IBaseUrlProvider
{
public string GetBaseUrl(HttpContextBase httpContext)
{
//http://stackoverflow.com/a/1288383/205859
HttpRequestBase request = httpContext.Request;
... | Remove trailing slash from base URL | Remove trailing slash from base URL
| C# | mit | uhaciogullari/SimpleMvcSitemap,FeodorFitsner/SimpleMvcSitemap |
b2815afbd8071426b8ed21cfdee71b44dc1c220c | test/FetcherTest.cs | test/FetcherTest.cs | using System.Collections.Specialized;
using System.Text;
using Moq;
using NUnit.Framework;
namespace LastPass.Test
{
[TestFixture]
class FetcherTest
{
[Test]
public void Login()
{
var webClient = new Mock<IWebClient>();
webClient
.Setup(x => x... | using System.Collections.Specialized;
using System.Linq;
using System.Text;
using Moq;
using NUnit.Framework;
namespace LastPass.Test
{
[TestFixture]
class FetcherTest
{
[Test]
public void Login()
{
const string url = "https://lastpass.com/login.php";
const s... | Test Fetcher.Login POSTs with correct values | Test Fetcher.Login POSTs with correct values
| C# | mit | detunized/lastpass-sharp,detunized/lastpass-sharp,rottenorange/lastpass-sharp |
03dc518f26d92fbe4d839f1f422c3654681c43df | examples/simple/PodList.cs | examples/simple/PodList.cs | namespace simple
{
using System;
using System.IO;
using k8s;
class PodList
{
static void Main(string[] args)
{
var k8sClientConfig = new KubernetesClientConfiguration();
IKubernetes client = new Kubernetes(k8sClientConfig);
Console.Wri... | namespace simple
{
using System;
using System.IO;
using k8s;
class PodList
{
static void Main(string[] args)
{
var k8sClientConfig = KubernetesClientConfiguration.BuildConfigFromConfigFile();
IKubernetes client = new Kubernetes(k8sClientConfig);
... | Update example for new config file loading. | Update example for new config file loading.
| C# | apache-2.0 | kubernetes-client/csharp,kubernetes-client/csharp |
c0e708933e3a055392ba7242004605f43472b907 | SketchSolveC#.NET.Spec/Test.cs | SketchSolveC#.NET.Spec/Test.cs | using System;
using NUnit.Framework;
using FluentAssertions;
using SketchSolve;
using System.Linq;
namespace SketchSolve.Spec
{
[TestFixture()]
public class Solver
{
[Test()]
public void HorizontalConstraintShouldWork ()
{
var parameters = new Parameter[]{
new Parameter(0),
new Parameter(1),
n... | using System;
using NUnit.Framework;
using FluentAssertions;
using SketchSolve;
using System.Linq;
namespace SketchSolve.Spec
{
[TestFixture()]
public class Solver
{
[Test()]
public void HorizontalConstraintShouldWork ()
{
var parameters = new Parameter[]{
new Parameter(0),
new Parameter(1),
n... | Use range check for floating point | Use range check for floating point | C# | bsd-3-clause | bradphelan/SketchSolve.NET,bradphelan/SketchSolve.NET,bradphelan/SketchSolve.NET |
bc0943d47147a8127c7cf69fafe5e68bfa065236 | osu.Framework/Development/DebugUtils.cs | osu.Framework/Development/DebugUtils.cs | // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
using System;
using System.Diagnostics;
using System.Linq;
using System.Reflection;
namespace osu.Framework.Development
{
public static class DebugUtils
... | // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
using System;
using System.Diagnostics;
using System.Linq;
using System.Reflection;
namespace osu.Framework.Development
{
public static class DebugUtils
... | Add reference to source of debug lookup method | Add reference to source of debug lookup method
| C# | mit | smoogipooo/osu-framework,ppy/osu-framework,Tom94/osu-framework,smoogipooo/osu-framework,ppy/osu-framework,ZLima12/osu-framework,EVAST9919/osu-framework,EVAST9919/osu-framework,Tom94/osu-framework,peppy/osu-framework,DrabWeb/osu-framework,DrabWeb/osu-framework,peppy/osu-framework,ppy/osu-framework,EVAST9919/osu-framewor... |
60aec44c57c68bae7c10772492b9ed97c31acb8d | CommonMarkSharp/InlineParsers/AnyParser.cs | CommonMarkSharp/InlineParsers/AnyParser.cs | using CommonMarkSharp.Blocks;
using CommonMarkSharp.Inlines;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CommonMarkSharp.InlineParsers
{
public class AnyParser : IParser<InlineString>
{
public AnyParser(strin... | using CommonMarkSharp.Blocks;
using CommonMarkSharp.Inlines;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
namespace CommonMarkSharp.InlineParsers
{
public class AnyParser : IParser<InlineString>... | Use string in stead of HashSet - much faster | Use string in stead of HashSet - much faster
| C# | mit | MortenHoustonLudvigsen/CommonMarkSharp,binki/CommonMarkSharp,MortenHoustonLudvigsen/CommonMarkSharp |
d7a9c5fd410e370f89e83ef1bd3475a418ffe4ed | osu.Game/Overlays/Settings/Sections/DebugSettings/MemorySettings.cs | osu.Game/Overlays/Settings/Sections/DebugSettings/MemorySettings.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.Framework.Platform;
using osu.Game.Database;
using osu.Game.Loc... | // 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 System.Threading.Tasks;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Localisation;
using osu.Framework... | Add settings buttons to allow temporarily blocking realm access | Add settings buttons to allow temporarily blocking realm access
| C# | mit | peppy/osu,peppy/osu,ppy/osu,ppy/osu,ppy/osu,peppy/osu,NeoAdonis/osu,NeoAdonis/osu,NeoAdonis/osu |
60f922ce1b67f434d6d6afbeaa68fa52866283a4 | src/Nest/Domain/Settings/SynonymTokenFilter.cs | src/Nest/Domain/Settings/SynonymTokenFilter.cs | using Newtonsoft.Json;
using System.Collections.Generic;
namespace Nest
{
public class SynonymTokenFilter : TokenFilterSettings
{
public SynonymTokenFilter() : base("synonym")
{
}
[JsonProperty("synonyms_path", NullValueHandling = NullValueHandling.Ignore)]
... | using Newtonsoft.Json;
using System.Collections.Generic;
namespace Nest
{
public class SynonymTokenFilter : TokenFilterSettings
{
public SynonymTokenFilter() : base("synonym")
{
}
[JsonProperty("synonyms_path", NullValueHandling = NullValueHandling.Ignore)]
... | Add ignore_case and expand properties to synonym filter | Add ignore_case and expand properties to synonym filter
| C# | apache-2.0 | UdiBen/elasticsearch-net,geofeedia/elasticsearch-net,azubanov/elasticsearch-net,joehmchan/elasticsearch-net,alanprot/elasticsearch-net,abibell/elasticsearch-net,junlapong/elasticsearch-net,jonyadamit/elasticsearch-net,ststeiger/elasticsearch-net,faisal00813/elasticsearch-net,adam-mccoy/elasticsearch-net,LeoYao/elastics... |
a947ad6755ae34fb114d94129b46525170abd33e | Assets/HexMap/HexMap.cs | Assets/HexMap/HexMap.cs | /* Copyright (c) 2016 Kevin Fischer
*
* This Source Code Form is subject to the terms of the MIT License.
* If a copy of the license was not distributed with this file,
* You can obtain one at https://opensource.org/licenses/MIT. */
using UnityEngine;
using System.Collections.Generic;
using System.Collections.Obj... | /* Copyright (c) 2016 Kevin Fischer
*
* This Source Code Form is subject to the terms of the MIT License.
* If a copy of the license was not distributed with this file,
* You can obtain one at https://opensource.org/licenses/MIT. */
using UnityEngine;
using System.Collections.Generic;
using System.Collections.Obj... | Fix missing object reference error. | Fix missing object reference error.
| C# | mit | DerTraveler/unity-hex-map |
e426c0fa04d5a6ab8fe94a554202c752e3b2e83b | WalletWasabi.Gui/Controls/WalletExplorer/ClosedWalletViewModel.cs | WalletWasabi.Gui/Controls/WalletExplorer/ClosedWalletViewModel.cs | using AvalonStudio.Extensibility;
using ReactiveUI;
using Splat;
using System;
using System.Linq;
using System.Reactive;
using System.Reactive.Linq;
using System.Threading;
using WalletWasabi.Gui.Helpers;
using WalletWasabi.Logging;
using WalletWasabi.Wallets;
namespace WalletWasabi.Gui.Controls.WalletExplorer
{
publ... | using AvalonStudio.Extensibility;
using ReactiveUI;
using Splat;
using System;
using System.Linq;
using System.Reactive;
using System.Reactive.Linq;
using System.Threading;
using WalletWasabi.Gui.Helpers;
using WalletWasabi.Logging;
using WalletWasabi.Wallets;
namespace WalletWasabi.Gui.Controls.WalletExplorer
{
publ... | Set IsBusy immediately, so there is no chance to run the command more than once. | Set IsBusy immediately, so there is no chance to run the command more than once.
| C# | mit | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet |
767f2900f9faeff247d48a4b4a96c91a846b339a | samples/SignalRSamples/ObservableExtensions.cs | samples/SignalRSamples/ObservableExtensions.cs | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Reactive.Linq;
using System.Threading.Channels;
namespace SignalRSamples
{
public static class ObservableExtensions
... | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Reactive.Linq;
using System.Threading.Channels;
namespace SignalRSamples
{
public static class ObservableExtensions
... | Add support for creating a bounded channel in helper | Add support for creating a bounded channel in helper
| C# | apache-2.0 | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore |
5a74e8dd400131b40f3fcda7eb2e4eb5e43203b5 | src/Totem/Runtime/Timeline/ITimeline.cs | src/Totem/Runtime/Timeline/ITimeline.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Totem.Runtime.Timeline
{
/// <summary>
/// Describes a series of domain events
/// </summary>
public interface ITimeline : IFluent
{
void Append(TimelinePosition cause, IReadOnlyList<Event> events);
Ta... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Totem.Runtime.Timeline
{
/// <summary>
/// Describes a series of domain events
/// </summary>
public interface ITimeline : IFluent
{
void Append(TimelinePosition cause, Many<Event> events);
void Append... | Add scheduling of events to occur later on the timeline | Add scheduling of events to occur later on the timeline
| C# | mit | bwatts/Totem,bwatts/Totem |
43d2cdbe1d757d39b486f717b52258f0953e2b89 | Espera/GlobalAssemblyInfo.cs | Espera/GlobalAssemblyInfo.cs | using System.Reflection;
[assembly: AssemblyProduct("Espera")]
[assembly: AssemblyCopyright("Copyright © 2013 Dennis Daume")]
[assembly: AssemblyVersion("1.7.0.6")]
[assembly: AssemblyFileVersion("1.7.0.6")] | using System.Reflection;
[assembly: AssemblyProduct("Espera")]
[assembly: AssemblyCopyright("Copyright © 2013 Dennis Daume")]
[assembly: AssemblyVersion("1.7.6")]
[assembly: AssemblyFileVersion("1.7.6")]
[assembly: AssemblyInformationalVersion("1.7.6")] | Fix assembly version for Shimmer | Fix assembly version for Shimmer
| C# | mit | flagbug/Espera,punker76/Espera |
9967bb85ea6f6425a14863c1fafc8c29b4696ec6 | src/SFA.DAS.EmployerAccounts.Web/Controllers/ErrorController.cs | src/SFA.DAS.EmployerAccounts.Web/Controllers/ErrorController.cs | using System.Net;
using System.Web.Mvc;
namespace SFA.DAS.EmployerAccounts.Web.Controllers
{
public class ErrorController : Controller
{
[Route("accessdenied")]
public ActionResult AccessDenied()
{
Response.StatusCode = (int)HttpStatusCode.Forbidden;
return Vie... | using System.Net;
using System.Web.Mvc;
using SFA.DAS.Authentication;
using SFA.DAS.EmployerAccounts.Interfaces;
using SFA.DAS.EmployerAccounts.Web.ViewModels;
namespace SFA.DAS.EmployerAccounts.Web.Controllers
{
public class ErrorController : BaseController
{
public ErrorController(
IAuth... | Add base class to error controller so that it can find Base SupportUserBanner child action | Add base class to error controller so that it can find Base SupportUserBanner child action
| C# | mit | SkillsFundingAgency/das-employerapprenticeshipsservice,SkillsFundingAgency/das-employerapprenticeshipsservice,SkillsFundingAgency/das-employerapprenticeshipsservice |
266f7ad13e9ffa5e08c88517feaec32c831ff4f2 | Repository/SignInActivity.cs | Repository/SignInActivity.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Android.App;
using Android.Content;
using Android.OS;
using Android.Runtime;
using Android.Views;
using Android.Webkit;
using Android.Widget;
using Repository.Internal;
using static Repository.Internal.Verify;
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Android.App;
using Android.Content;
using Android.OS;
using Android.Runtime;
using Android.Views;
using Android.Webkit;
using Android.Widget;
using Repository.Internal;
using static Repository.Internal.Verify;
... | Enable JS in the browser so the user can authorize the app | [SignIn] Enable JS in the browser so the user can authorize the app
| C# | mit | jamesqo/Repository,jamesqo/Repository,jamesqo/Repository |
a967a89aaa2cf5a8cbe191dcfb0aa4f78b5d8549 | SlackAPI/Response.cs | SlackAPI/Response.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SlackAPI
{
public abstract class Response
{
/// <summary>
/// Should always be checked before trying to process a response.
/// </summary>
public bool o... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SlackAPI
{
public abstract class Response
{
/// <summary>
/// Should always be checked before trying to process a response.
/// </summary>
public bool o... | Add the attribute needed, provided | Add the attribute needed, provided
Some time when we have a connection failure, the error message need some information, ex: missing_scope
So we need to know what are the "needed" scope to add them.
with provided we can see what are the permission that we already provided to app. | C# | mit | Inumedia/SlackAPI |
67477a20a004c97d795e203f745acb2d7999214e | Assets/CloudBread/API/OAuth/OAuth2Setting.cs | Assets/CloudBread/API/OAuth/OAuth2Setting.cs | using System;
using UnityEngine;
namespace CloudBread.OAuth
{
public class OAuth2Setting : ScriptableObject
{
static bool _useFacebook;
static public string FaceBookRedirectAddress;
static bool _useGooglePlay;
public static string GooglePlayRedirectAddress;
static bool _useKaKao;
public static... | using System;
using System.Collections.Generic;
using System.IO;
using UnityEngine;
using UnityEditor;
namespace CloudBread.OAuth
{
public class OAuth2Setting : ScriptableObject
{
private const string SettingAssetName = "CBOAuth2Setting";
private const string SettingsPath = "CloudBread/Resources";
private con... | Update Setting Values for OAuth2 setting | Update Setting Values for OAuth2 setting
| C# | mit | CloudBreadProject/CloudBread-Unity-SDK |
3669e5f4de6ef9a43ca45e071e8c6a513d4111f9 | src/Glimpse.Common/Internal/Serialization/TimeSpanConverter.cs | src/Glimpse.Common/Internal/Serialization/TimeSpanConverter.cs | using System;
using Newtonsoft.Json;
namespace Glimpse.Internal
{
public class TimeSpanConverter : JsonConverter
{
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
{
var result = 0.0;
var convertedNullable = value a... | using System;
using System.Globalization;
using Newtonsoft.Json;
namespace Glimpse.Internal
{
public class TimeSpanConverter : JsonConverter
{
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
{
var result = 0.0;
var... | Fix invalid JSON caused by localized decimal mark | Fix invalid JSON caused by localized decimal mark
Using InvariantCulture to convert the double to string to generate a dot instead of a comma.
| C# | mit | zanetdev/Glimpse.Prototype,zanetdev/Glimpse.Prototype,Glimpse/Glimpse.Prototype,zanetdev/Glimpse.Prototype,Glimpse/Glimpse.Prototype,Glimpse/Glimpse.Prototype,Glimpse/Glimpse.Prototype,zanetdev/Glimpse.Prototype |
d403c72fcf934da32d1db5d287a54406df512881 | Digirati.IIIF/Model/Types/Collection.cs | Digirati.IIIF/Model/Types/Collection.cs | using Newtonsoft.Json;
namespace Digirati.IIIF.Model.Types
{
public class Collection : IIIFPresentationBase
{
[JsonProperty(Order = 100, PropertyName = "collections")]
public Collection[] Collections { get; set; }
[JsonProperty(Order = 101, PropertyName = "manifests")]
public ... | using Newtonsoft.Json;
namespace Digirati.IIIF.Model.Types
{
public class Collection : IIIFPresentationBase
{
[JsonProperty(Order = 100, PropertyName = "collections")]
public Collection[] Collections { get; set; }
[JsonProperty(Order = 101, PropertyName = "manifests")]
public ... | Add members property to collection | Add members property to collection
| C# | mit | digirati-co-uk/iiif-model |
612dfe57fdabf3f6a99f3ce0a7a2e073e908ed70 | MadCat/NutPackerLib/OriginalNameAttribute.cs | MadCat/NutPackerLib/OriginalNameAttribute.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace NutPackerLib
{
public class OriginalNameAttribute : Attribute
{
public string Name { get; private set; }
public OriginalNameAttribute(string name)
{
... | using System;
namespace NutPackerLib
{
/// <summary>
/// Original name of something.
/// </summary>
public class OriginalNameAttribute : Attribute
{
public string Name { get; private set; }
public OriginalNameAttribute(string name)
{
Name = name;
}
... | Remove unnecessary using's, add comment | Remove unnecessary using's, add comment
| C# | mit | EasyPeasyLemonSqueezy/MadCat |
088342a3198645996377e571233f144cb1fa2774 | src/CommonAssemblyInfo.cs | src/CommonAssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyCompany("Yevgeniy Shunevych")]
[assembly: AssemblyProduct("Atata Framework")]
[assembly: AssemblyCopyright("Copyright © Yevgeniy Shunevych 2017")]
[assembly: AssemblyCulture("")]
[assembly: ComVisible(false)]
[assembly: Assembly... | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyCompany("Yevgeniy Shunevych")]
[assembly: AssemblyProduct("Atata Framework")]
[assembly: AssemblyCopyright("Copyright © Yevgeniy Shunevych 2017")]
[assembly: AssemblyCulture("")]
[assembly: ComVisible(false)]
[assembly: Assembly... | Increase project version number to 0.14.0 | Increase project version number to 0.14.0
| C# | apache-2.0 | atata-framework/atata,atata-framework/atata,YevgeniyShunevych/Atata,YevgeniyShunevych/Atata |
4daeca013588066a09d7fb6ecf8a2300d1dd9533 | src/CommonAssemblyInfo.cs | src/CommonAssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyCompany("Yevgeniy Shunevych")]
[assembly: AssemblyProduct("Atata Framework")]
[assembly: AssemblyCopyright("Copyright © Yevgeniy Shunevych 2017")]
[assembly: AssemblyCulture("")]
[assembly: ComVisible(false)]
[assembly: Assembly... | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyCompany("Yevgeniy Shunevych")]
[assembly: AssemblyProduct("Atata Framework")]
[assembly: AssemblyCopyright("Copyright © Yevgeniy Shunevych 2017")]
[assembly: AssemblyCulture("")]
[assembly: ComVisible(false)]
[assembly: Assembly... | Increase project version to 0.16.0 | Increase project version to 0.16.0
| C# | apache-2.0 | atata-framework/atata-sample-app-tests |
00b17402814209cc0f54abd211ec051a92f1cbd4 | PaletteInsightAgentService/Service.cs | PaletteInsightAgentService/Service.cs | using Topshelf;
namespace PaletteInsightAgentService
{
/// <summary>
/// Service layer that wraps the PaletteInsightAgentLib. Topshelf keeps this pretty thin for us.
/// </summary>
internal class PaletteInsightAgentService
{
// Service name & description.
private const string Serv... | using Topshelf;
namespace PaletteInsightAgentService
{
/// <summary>
/// Service layer that wraps the PaletteInsightAgentLib. Topshelf keeps this pretty thin for us.
/// </summary>
internal class PaletteInsightAgentService
{
// Service name & description.
private const string Serv... | Add spaces into displayed Palette Insight Agent service name | Add spaces into displayed Palette Insight Agent service name
| C# | mit | palette-software/PaletteInsightAgent,palette-software/PaletteInsightAgent,palette-software/PaletteInsightAgent,palette-software/PaletteInsightAgent |
a6da86e32d1d4a7f74dd4ccbed654943cef8ffba | Source/DTMF.Website/Logic/TeamCity.cs | Source/DTMF.Website/Logic/TeamCity.cs | using System.Linq;
using System.Text;
using TeamCitySharp;
using TeamCitySharp.Locators;
namespace DTMF.Logic
{
public class TeamCity
{
public static bool IsRunning(StringBuilder sb, string appName)
{
//remove prefix and suffixes from app names so same app can go to multiple places... | using System.Linq;
using System.Text;
using TeamCitySharp;
using TeamCitySharp.Locators;
namespace DTMF.Logic
{
public class TeamCity
{
public static bool IsRunning(StringBuilder sb, string appName)
{
//remove prefix and suffixes from app names so same app can go to multiple places... | Fix for buildtypeid case mismatch | Fix for buildtypeid case mismatch
| C# | mit | ericdc1/DTMF,ericdc1/DTMF,ericdc1/DTMF |
a140440196eda89710e44f18b5d884b07476e260 | src/Microsoft.AspNet.Mvc.Razor.Host.VSRC1/Properties/AssemblyInfo.cs | src/Microsoft.AspNet.Mvc.Razor.Host.VSRC1/Properties/AssemblyInfo.cs | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
[assembly: AssemblyMetadata("Serviceable", "True")]
[assembly: ... | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
[assembly: AssemblyMetadata("Serviceable", "True")]
[assembly: ... | Add `AssemblyCompany`, `AssemblyCopyright` and `AssemblyProduct` attributes to the assembly. | Add `AssemblyCompany`, `AssemblyCopyright` and `AssemblyProduct` attributes to the assembly.
| C# | apache-2.0 | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore |
620e503371b4a31974fd438e18e45fc623b823bb | ChamberLib/MathHelper.cs | ChamberLib/MathHelper.cs | using System;
namespace ChamberLib
{
public static class MathHelper
{
public static int RoundToInt(this float x)
{
return (int)Math.Round(x);
}
public static float ToRadians(this float degrees)
{
return degrees * 0.01745329251994f; // pi / 180
... | using System;
namespace ChamberLib
{
public static class MathHelper
{
public static int RoundToInt(this float x)
{
return (int)Math.Round(x);
}
public static float ToRadians(this float degrees)
{
return degrees * 0.01745329251994f; // pi / 180
... | Replace Xna's Clamp method with our own. | Replace Xna's Clamp method with our own.
| C# | lgpl-2.1 | izrik/ChamberLib,izrik/ChamberLib,izrik/ChamberLib |
a9142409d646957a48c651af3d2923cf44a90a00 | zap/main.cs | zap/main.cs | //------------------------------------------------------------------------------
// Revenge Of The Cats: Ethernet
// Copyright (C) 2009, mEthLab Interactive
//------------------------------------------------------------------------------
//-----------------------------------------------------------------------------
/... | //------------------------------------------------------------------------------
// Revenge Of The Cats: Ethernet
// Copyright (C) 2009, mEthLab Interactive
//------------------------------------------------------------------------------
//-----------------------------------------------------------------------------
/... | Fix Zap mod dedicated server. | Fix Zap mod dedicated server.
| C# | lgpl-2.1 | fr1tz/rotc-ethernet-game,fr1tz/rotc-ethernet-game,fr1tz/rotc-ethernet-game,fr1tz/rotc-ethernet-game |
9f7874c78d40a7e27aaeeaaa1787c0f5d987d51f | src/AppHarbor.Tests/AutoCommandDataAttribute.cs | src/AppHarbor.Tests/AutoCommandDataAttribute.cs | using Ploeh.AutoFixture;
using Ploeh.AutoFixture.AutoMoq;
using Ploeh.AutoFixture.Xunit;
namespace AppHarbor.Tests
{
public class AutoCommandDataAttribute : AutoDataAttribute
{
public AutoCommandDataAttribute()
: base(new Fixture().Customize(new AutoMoqCustomization()))
{
}
}
}
| using Ploeh.AutoFixture;
using Ploeh.AutoFixture.AutoMoq;
using Ploeh.AutoFixture.Xunit;
namespace AppHarbor.Tests
{
public class AutoCommandDataAttribute : AutoDataAttribute
{
public AutoCommandDataAttribute()
: base(new Fixture().Customize(new DomainCustomization()))
{
}
}
}
| Use DomainCustomization rather than AutoMoqCustomization directly | Use DomainCustomization rather than AutoMoqCustomization directly
| C# | mit | appharbor/appharbor-cli |
2976cd1ce4aef0eef6ae17591ec6434dd9d0a013 | Gu.Wpf.UiAutomation/AutomationElements/Thumb.cs | Gu.Wpf.UiAutomation/AutomationElements/Thumb.cs | namespace Gu.Wpf.UiAutomation
{
using System.Windows.Automation;
public class Thumb : UiElement
{
public Thumb(AutomationElement automationElement)
: base(automationElement)
{
}
public TransformPattern TransformPattern => this.AutomationElement.TransformPattern(... | namespace Gu.Wpf.UiAutomation
{
using System.Windows;
using System.Windows.Automation;
public class Thumb : UiElement
{
private const int DragSpeed = 500;
public Thumb(AutomationElement automationElement)
: base(automationElement)
{
}
public Transfo... | Fix SliderTest.SlideHorizontally on Win 10 | Fix SliderTest.SlideHorizontally on Win 10
Fix #55
| C# | mit | JohanLarsson/Gu.Wpf.UiAutomation |
fd0cd2c948e95eb25d24930f22c65e7a59c385e0 | resharper/resharper-yaml/src/Psi/YamlProjectFileLanguageService.cs | resharper/resharper-yaml/src/Psi/YamlProjectFileLanguageService.cs | using JetBrains.ProjectModel;
using JetBrains.ReSharper.Plugins.Yaml.ProjectModel;
using JetBrains.ReSharper.Plugins.Yaml.Settings;
using JetBrains.ReSharper.Psi;
using JetBrains.ReSharper.Psi.CSharp.Resources;
using JetBrains.ReSharper.Psi.Parsing;
using JetBrains.Text;
using JetBrains.UI.Icons;
namespace JetBrains.... | using JetBrains.Application.UI.Icons.Special.ThemedIcons;
using JetBrains.ProjectModel;
using JetBrains.ReSharper.Plugins.Yaml.ProjectModel;
using JetBrains.ReSharper.Plugins.Yaml.Settings;
using JetBrains.ReSharper.Psi;
using JetBrains.ReSharper.Psi.Parsing;
using JetBrains.Text;
using JetBrains.UI.Icons;
namespace ... | Use less confusing placeholder icon for YAML | Use less confusing placeholder icon for YAML
| C# | apache-2.0 | JetBrains/resharper-unity,JetBrains/resharper-unity,JetBrains/resharper-unity |
71c603072906823028642dda66f9f0a0afdc76d5 | src/PowerShellEditorServices.Protocol/LanguageServer/Definition.cs | src/PowerShellEditorServices.Protocol/LanguageServer/Definition.cs | //
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
using Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol;
namespace Microsoft.PowerShell.EditorServices.Protocol.LanguageServer
{
public class Defi... | //
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
using Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol;
namespace Microsoft.PowerShell.EditorServices.Protocol.LanguageServer
{
public class Defi... | Add registration options for definition request | Add registration options for definition request
| C# | mit | PowerShell/PowerShellEditorServices |
883dee3a84f3a72d9576e4489902849abe4df2ee | Website/Migrations/201304030226233_CuratedFeedPackageUniqueness.cs | Website/Migrations/201304030226233_CuratedFeedPackageUniqueness.cs | namespace NuGetGallery.Migrations
{
using System.Data.Entity.Migrations;
public partial class CuratedFeedPackageUniqueness : DbMigration
{
public override void Up()
{
// ADD uniqueness constraint - as an Index, since it seems reasonable to look up curated package entries by ... | namespace NuGetGallery.Migrations
{
using System.Data.Entity.Migrations;
public partial class CuratedFeedPackageUniqueness : DbMigration
{
public override void Up()
{
// ADD uniqueness constraint - as an Index, since it seems reasonable to look up curated package entries by ... | Fix having the wrong Index name in migration CuratedFeedPackageUniqueness.Down() | Fix having the wrong Index name in migration CuratedFeedPackageUniqueness.Down()
| C# | apache-2.0 | KuduApps/NuGetGallery,KuduApps/NuGetGallery,grenade/NuGetGallery_download-count-patch,ScottShingler/NuGetGallery,mtian/SiteExtensionGallery,JetBrains/ReSharperGallery,projectkudu/SiteExtensionGallery,grenade/NuGetGallery_download-count-patch,JetBrains/ReSharperGallery,skbkontur/NuGetGallery,ScottShingler/NuGetGallery,K... |
236e55a107ad752b837841d7696ace5ff479a2dd | Mongo.Migration/Migrations/Locators/TypeMigrationDependencyLocator.cs | Mongo.Migration/Migrations/Locators/TypeMigrationDependencyLocator.cs | using System;
using System.Linq;
using System.Reflection;
using Mongo.Migration.Extensions;
using Mongo.Migration.Migrations.Adapters;
namespace Mongo.Migration.Migrations.Locators
{
internal class TypeMigrationDependencyLocator<TMigrationType> : MigrationLocator<TMigrationType>
where TMigrationType: clas... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using Mongo.Migration.Extensions;
using Mongo.Migration.Migrations.Adapters;
namespace Mongo.Migration.Migrations.Locators
{
internal class TypeMigrationDependencyLocator<TMigrationType> : MigrationLocator<TMigrationType>
... | Add an implementation IEqualityComparer<Type> to ensure the .Distinct call in the Locate() method works as expected. | Add an implementation IEqualityComparer<Type> to ensure the .Distinct call in the Locate() method works as expected.
| C# | mit | SRoddis/Mongo.Migration |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.