commit stringlengths 40 40 | subject stringlengths 4 1.73k | repos stringlengths 5 127k | old_file stringlengths 2 751 | new_file stringlengths 2 751 | new_contents stringlengths 1 8.98k | old_contents stringlengths 0 6.59k | license stringclasses 13
values | lang stringclasses 23
values |
|---|---|---|---|---|---|---|---|---|
dfe7215a053860ead47b829ff11587b2b2497478 | Hide Gallery menu items on other tenants than Default. (#7511) | gcsuk/Orchard,Lombiq/Orchard,OrchardCMS/Orchard,omidnasri/Orchard,Lombiq/Orchard,omidnasri/Orchard,omidnasri/Orchard,jersiovic/Orchard,fassetar/Orchard,Fogolan/OrchardForWork,Lombiq/Orchard,IDeliverable/Orchard,gcsuk/Orchard,aaronamm/Orchard,fassetar/Orchard,gcsuk/Orchard,IDeliverable/Orchard,yersans/Orchard,hbulzy/Orc... | src/Orchard.Web/Modules/Orchard.Packaging/AdminMenu.cs | src/Orchard.Web/Modules/Orchard.Packaging/AdminMenu.cs | using Orchard.Environment.Extensions;
using Orchard.Localization;
using Orchard.UI.Navigation;
using Orchard.Security;
using Orchard.Environment.Configuration;
namespace Orchard.Packaging {
[OrchardFeature("Gallery")]
public class AdminMenu : INavigationProvider {
public Localizer T { get; set; }
... | using Orchard.Environment.Extensions;
using Orchard.Localization;
using Orchard.UI.Navigation;
using Orchard.Security;
namespace Orchard.Packaging {
[OrchardFeature("Gallery")]
public class AdminMenu : INavigationProvider {
public Localizer T { get; set; }
public string MenuName {
... | bsd-3-clause | C# |
50f681ef78a4523025afd3a64f4fc35a6193a503 | fix encode | t-ashula/bl4n | bl4n/Data/AddProjectCategoryOptions.cs | bl4n/Data/AddProjectCategoryOptions.cs | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="AddProjectCategoryOptions.cs">
// bl4n - Backlog.jp API Client library
// this file is part of bl4n, license under MIT license. http://t-ashula.mit-license.org/2015/
// </copyr... | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="AddProjectCategoryOptions.cs">
// bl4n - Backlog.jp API Client library
// this file is part of bl4n, license under MIT license. http://t-ashula.mit-license.org/2015/
// </copyr... | mit | C# |
d527e066a5d343e8c7cacf083102a6cd6c413c1f | Refactor introduce SetUp in test | Suui/SlothUnit,Suui/SlothUnit,Suui/SlothUnit | SlothUnit/SlothUnit.Parser.Test/ClangWrapperShould.cs | SlothUnit/SlothUnit.Parser.Test/ClangWrapperShould.cs | using System.IO;
using System.Linq;
using ClangSharp;
using FluentAssertions;
using NUnit.Framework;
using SlothUnitParser;
/* TODO
*/
namespace SlothUnit.Parser.Test
{
[TestFixture]
class ClangWrapperShould : FileSystemTest
{
private CXCursor ClassCursor { get; set; }
private string FilePath { get; set; }... | using System.IO;
using System.Linq;
using FluentAssertions;
using NUnit.Framework;
using SlothUnitParser;
/* TODO
*/
namespace SlothUnit.Parser.Test
{
[TestFixture]
class ClangWrapperShould : FileSystemTest
{
[Test]
public void retrieve_the_name_of_a_cursor()
{
var filePath = Path.Combine(TestProjectD... | mit | C# |
dfa92e860c93c307b3063e4fbf6069aee575d9e0 | bump version | AntonyCorbett/OnlyT,AntonyCorbett/OnlyT | SolutionInfo.cs | SolutionInfo.cs | using System.Reflection;
[assembly: AssemblyCompany("SoundBox")]
[assembly: AssemblyProduct("OnlyT")]
[assembly: AssemblyCopyright("Copyright © 2019 Antony Corbett")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: AssemblyVersion("1.2.0.9")] | using System.Reflection;
[assembly: AssemblyCompany("SoundBox")]
[assembly: AssemblyProduct("OnlyT")]
[assembly: AssemblyCopyright("Copyright © 2019 Antony Corbett")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: AssemblyVersion("1.2.0.8")] | mit | C# |
e3778daf600b047ada08da2529faea48ca76a818 | Bump development to 1.4. | IgniteInteractiveStudio/SLSharp,pratikv/SLSharp,IgniteInteractiveStudio/SLSharp,pratikv/SLSharp,hach-que/SLSharp,hach-que/SLSharp | SolutionInfo.cs | SolutionInfo.cs | using System;
using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyCompany("Ignite Interactive Studio")]
[assembly: AssemblyProduct("SL#")]
[assembly: AssemblyCopyright("Copyright Ignite Interactive Studio")]
[assembly: AssemblyTrademark("MIT (Expat) License")]
[assembly: AssemblyVersion(... | using System;
using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyCompany("Ignite Interactive Studio")]
[assembly: AssemblyProduct("SL#")]
[assembly: AssemblyCopyright("Copyright Ignite Interactive Studio")]
[assembly: AssemblyTrademark("MIT (Expat) License")]
[assembly: AssemblyVersion(... | mit | C# |
20af90869e27c707527733cc686206514e8be001 | clean up whitespace | mgutekunst/ace-jump,jsturtevant/ace-jump | AceJump/LetterReference.xaml.cs | AceJump/LetterReference.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.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;... | mit | C# |
a35ad9680a5e2731f0a1ce834364924c73ced9ad | Correct transitions | bymsa17/EMAX | Assets/Scripts/CinematicTime.cs | Assets/Scripts/CinematicTime.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CinematicTime : MonoBehaviour
{
private LevelManager levelManager;
public GameObject text;
float currentTime;
float timeDuration;
int buildIndex;
void Start()
{
timeDuration = 5;
bu... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CinematicTime : MonoBehaviour
{
public SceneTransition transition;
public GameObject text;
float currentTime;
float timeDuration;
void Start()
{
timeDuration = 5;
}
void Update()
{... | mit | C# |
d9df5a57aaefd3abfb55a9fc771b2ead9ade3de1 | Disable FPSDisplay globally | NitorInc/NitoriWare,Barleytree/NitoriWare,NitorInc/NitoriWare,Barleytree/NitoriWare | Assets/Scripts/UI/FPSDisplay.cs | Assets/Scripts/UI/FPSDisplay.cs | using UnityEngine;
using System.Collections;
public class FPSDisplay : MonoBehaviour
{
private static bool DisableGlobally = true;
float deltaTime = 0.0f;
void Start()
{
if (DisableGlobally)
{
enabled = false;
return;
}
}
void Update()
{
deltaTime... | using UnityEngine;
using System.Collections;
public class FPSDisplay : MonoBehaviour
{
private static bool DisableGlobally = false;
float deltaTime = 0.0f;
void Start()
{
if (DisableGlobally)
{
enabled = false;
return;
}
}
void Update()
{
deltaTim... | mit | C# |
c7878ce356bf0bf6dc37f97650f66bb2f0b026a6 | Delete redundant wrapper method | alastairs/BobTheBuilder | BobTheBuilder/DynamicBuilder.cs | BobTheBuilder/DynamicBuilder.cs | using BobTheBuilder.ArgumentStore;
using BobTheBuilder.ArgumentStore.Queries;
using BobTheBuilder.Syntax;
using System;
using System.Collections.Generic;
using System.Dynamic;
using System.Linq;
namespace BobTheBuilder
{
public class DynamicBuilder<T> : DynamicObject where T : class
{
private readonly ... | using BobTheBuilder.ArgumentStore;
using BobTheBuilder.ArgumentStore.Queries;
using BobTheBuilder.Syntax;
using System;
using System.Collections.Generic;
using System.Dynamic;
using System.Linq;
namespace BobTheBuilder
{
public class DynamicBuilder<T> : DynamicObject where T : class
{
private readonly ... | apache-2.0 | C# |
5a0ec5409860bfe4cda1c6799822c5508b62226a | Fix MovieClip's constructor. | Dia6lo/Bridge.Pixi | Bridge.Pixi/Extras/MovieClip.cs | Bridge.Pixi/Extras/MovieClip.cs | namespace Bridge.Pixi.Extras
{
/// <summary>
/// A MovieClip is a simple way to display an animation depicted by a list of textures.
/// </summary>
[External]
[Namespace("PIXI.extras")]
public class MovieClip: Sprite
{
/// <summary>
/// A short hand way of creating a MovieClip from an array of frame ids.
... | namespace Bridge.Pixi.Extras
{
/// <summary>
/// A MovieClip is a simple way to display an animation depicted by a list of textures.
/// </summary>
[External]
[Namespace("PIXI.extras")]
public class MovieClip: Sprite
{
/// <summary>
/// A short hand way of creating a MovieClip from an array of frame ids.
... | mit | C# |
2cc6222490bc46de8aeb60de3c9c26eece2908f8 | Remove Funda logo | sboulema/WebVRPano,sboulema/WebVRPano | src/AndroidPano/Views/Home/Index.cshtml | src/AndroidPano/Views/Home/Index.cshtml | <!DOCTYPE html>
<html>
<head>
<title>WebVRPano</title>
<meta name="viewport" content="target-densitydpi=device-dpi, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, minimal-ui" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-sta... | <!DOCTYPE html>
<html>
<head>
<title>WebVRPano</title>
<meta name="viewport" content="target-densitydpi=device-dpi, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, minimal-ui" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-sta... | mit | C# |
ad45ab327d6c526a3ff8932c6b2578a12c350ccd | Fix `KendoComboBox` test | atata-framework/atata-kendoui,atata-framework/atata-kendoui | test/Atata.KendoUI.Tests/KendoComboBoxTests.cs | test/Atata.KendoUI.Tests/KendoComboBoxTests.cs | using NUnit.Framework;
namespace Atata.KendoUI.Tests
{
public class KendoComboBoxTests : UITestFixture
{
private ComboBoxPage page;
protected override void OnSetUp()
{
page = Go.To<ComboBoxPage>();
}
[Test]
public void KendoComboBox()
{
... | using NUnit.Framework;
namespace Atata.KendoUI.Tests
{
public class KendoComboBoxTests : UITestFixture
{
private ComboBoxPage page;
protected override void OnSetUp()
{
page = Go.To<ComboBoxPage>();
}
[Test]
public void KendoComboBox()
{
... | apache-2.0 | C# |
2add8ee373e08117406a2cf2fe97595beefce6f6 | Support uploading empty files | saguiitay/DropboxRestAPI,hurricanepkt/DropboxRestAPI | src/DropboxRestAPI/LargeFileUploader.cs | src/DropboxRestAPI/LargeFileUploader.cs | using System;
using System.IO;
using System.Threading.Tasks;
using DropboxRestAPI.Models.Core;
namespace DropboxRestAPI
{
public class LargeFileUploader
{
public static long BufferSize = 4 * 1024 * 1024;
private readonly Client _client;
private readonly Stream _dataSource;
pu... | using System;
using System.IO;
using System.Threading.Tasks;
using DropboxRestAPI.Models.Core;
namespace DropboxRestAPI
{
public class LargeFileUploader
{
public static long BufferSize = 4 * 1024 * 1024;
private readonly Client _client;
private readonly Stream _dataSource;
pu... | mit | C# |
857a0aa4ee3bcbbee1d4c985acf750624962fc7d | Remove Space | planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell | src/Firehose.Web/Authors/XajuanSmith.cs | src/Firehose.Web/Authors/XajuanSmith.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel.Syndication;
using System.Web;
using Firehose.Web.Infrastructure;
namespace Firehose.Web.Authors
{
public class XajuanSmith : IAmACommunityMember, IFilterMyBlogPosts
{
public string FirstName => "Xajuan";
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel.Syndication;
using System.Web;
using Firehose.Web.Infrastructure;
namespace Firehose.Web.Authors
{
public class XajuanSmith : IAmACommunityMember, IFilterMyBlogPosts
{
public string FirstName => "Xajuan";
... | mit | C# |
2e9cd827b0db60ad42f7df1f34ee1fada1951e5f | Move COM object lifetime control tests to CoreCLR. (#24990) | poizan42/coreclr,cshung/coreclr,cshung/coreclr,cshung/coreclr,wtgodbe/coreclr,krk/coreclr,wtgodbe/coreclr,wtgodbe/coreclr,poizan42/coreclr,krk/coreclr,wtgodbe/coreclr,wtgodbe/coreclr,cshung/coreclr,krk/coreclr,poizan42/coreclr,poizan42/coreclr,cshung/coreclr,wtgodbe/coreclr,krk/coreclr,cshung/coreclr,krk/coreclr,poizan... | tests/src/Interop/COM/NETClients/Primitives/Program.cs | tests/src/Interop/COM/NETClients/Primitives/Program.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
namespace NetClient
{
using System;
using System.Threading;
using System.Runtime.InteropServices;
u... | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
namespace NetClient
{
using System;
class Program
{
static int Main(string[] doNotUse)
... | mit | C# |
7cb30a6ecdb6fe8ad3ada63052684e6f3f513108 | Stop corrupting the PATH environment variable | wesrupert/MIEngine,pieandcakes/MIEngine,pieandcakes/MIEngine,pieandcakes/MIEngine,devilman3d/MIEngine,faxue-msft/MIEngine,faxue-msft/MIEngine,edumunoz/MIEngine,edumunoz/MIEngine,orbitcowboy/MIEngine,csiusers/MIEngine,rajkumar42/MIEngine,wesrupert/MIEngine,chuckries/MIEngine,devilman3d/MIEngine,pieandcakes/MIEngine,casl... | src/MICore/Transports/LocalTransport.cs | src/MICore/Transports/LocalTransport.cs | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using System.Diagnostics;
using System.IO;
using System.Collections.Speciali... | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using System.Diagnostics;
using System.IO;
using System.Collections.Speciali... | mit | C# |
b48814d1b9bdded45d5da228abede7db0f247ba1 | Exit game function added | DigiArt-project/WordpressUnity3DEditor,DigiArt-project/WordpressUnity3DEditor,DigiArt-project/WordpressUnity3DEditor,DigiArt-project/WordpressUnity3DEditor | StandardAssets/Chemistry/Scripts/Managers/SceneLoader.cs | StandardAssets/Chemistry/Scripts/Managers/SceneLoader.cs | using System.Collections;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
public class SceneLoader : MonoBehaviour {
public GameObject loadingPanel;
public Slider loadingBar;
private float progress;
public void LoadScene(string sceneName)
{
StartCoroutine(Load... | using System.Collections;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
public class SceneLoader : MonoBehaviour {
public GameObject loadingPanel;
public Slider loadingBar;
private float progress;
public void LoadScene(string sceneName)
{
StartCoroutine(Loa... | apache-2.0 | C# |
5769f4a9167384f1b96a502248b4fe3d8c018a4c | fix build break | Azure-Samples/MyDriving,Azure-Samples/MyDriving,Azure-Samples/MyDriving | XamarinApp/MyTrips/MyTrips.UWP/Views/GetStarted5.xaml.cs | XamarinApp/MyTrips/MyTrips.UWP/Views/GetStarted5.xaml.cs | using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Input;
using MyTrips.Utils;
// The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=234238
namespace MyTrips.UWP.Views
{
/// <summary>
/// An empty page that can be used on its own or navigated to wit... | using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Input;
// The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=234238
namespace MyTrips.UWP.Views
{
/// <summary>
/// An empty page that can be used on its own or navigated to within a Frame.
/// ... | mit | C# |
aee66580ccf895a840464e5372f49f985287d64f | remove suppression after StyleCop.MSBuild upgrade | config-r/config-r | tests/ConfigR.Tests.Smoke.Website/Global.asax.cs | tests/ConfigR.Tests.Smoke.Website/Global.asax.cs | // <copyright file="Global.asax.cs" company="ConfigR contributors">
// Copyright (c) ConfigR contributors. (configr.net@gmail.com)
// </copyright>
namespace ConfigR.Tests.Smoke.Website
{
using System.Web;
using ConfigR;
public class Global : HttpApplication
{
public static dynamic... | // <copyright file="Global.asax.cs" company="ConfigR contributors">
// Copyright (c) ConfigR contributors. (configr.net@gmail.com)
// </copyright>
namespace ConfigR.Tests.Smoke.Website
{
using System.Diagnostics.CodeAnalysis;
using System.Web;
using ConfigR;
public class Global : HttpAppli... | mit | C# |
a0ecd443dc2ab2778f4b8812a17412b40728dea5 | Add comment for logging issue | martincostello/alexa-london-travel | src/LondonTravel.Skill/Log.cs | src/LondonTravel.Skill/Log.cs | // Copyright (c) Martin Costello, 2017. All rights reserved.
// Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information.
using Microsoft.Extensions.Logging;
//// TODO Cannot use file-scoped namespace due to https://github.com/dotnet/runtime/issues/57880
namespace ... | // Copyright (c) Martin Costello, 2017. All rights reserved.
// Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information.
using Microsoft.Extensions.Logging;
namespace MartinCostello.LondonTravel.Skill
{
/// <summary>
/// A class containing log messages for ... | apache-2.0 | C# |
f8d58fae3540e5e3fb2f81620ad28ecf210d4d44 | Include from in BCC | mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander | Battery-Commander.Web/Services/ReportService.cs | Battery-Commander.Web/Services/ReportService.cs | using BatteryCommander.Web.Models;
using FluentEmail.Core;
using System.IO;
using System.Threading.Tasks;
namespace BatteryCommander.Web.Services
{
public class ReportService
{
private readonly Database db;
private readonly IFluentEmailFactory emailSvc;
public ReportService(Database d... | using BatteryCommander.Web.Models;
using FluentEmail.Core;
using System.IO;
using System.Threading.Tasks;
namespace BatteryCommander.Web.Services
{
public class ReportService
{
private readonly Database db;
private readonly IFluentEmailFactory emailSvc;
public ReportService(Database d... | mit | C# |
5e09d92cb58678a485e8ba86fc8c7451ffc83b05 | Fix continuing historic time entries. | peeedge/mobile,ZhangLeiCharles/mobile,eatskolnikov/mobile,eatskolnikov/mobile,peeedge/mobile,masterrr/mobile,eatskolnikov/mobile,masterrr/mobile,ZhangLeiCharles/mobile | Joey/UI/Fragments/LogTimeEntriesListFragment.cs | Joey/UI/Fragments/LogTimeEntriesListFragment.cs | using System;
using System.Linq;
using Android.App;
using Android.OS;
using Android.Views;
using Android.Widget;
using Toggl.Joey.UI.Adapters;
namespace Toggl.Joey.UI.Fragments
{
public class LogTimeEntriesListFragment : ListFragment
{
public override void OnViewCreated (View view, Bundle savedInstanc... | using System;
using System.Linq;
using Android.App;
using Android.OS;
using Android.Views;
using Android.Widget;
using Toggl.Joey.UI.Adapters;
namespace Toggl.Joey.UI.Fragments
{
public class LogTimeEntriesListFragment : ListFragment
{
public override void OnViewCreated (View view, Bundle savedInstanc... | bsd-3-clause | C# |
f57222f1fdfef80245a8c1672c47efca7a5ea3f9 | Rename StockParentGroup to ParentStockGroup | techphernalia/MyPersonalAccounts | MyPersonalAccountsModel/Inventory/StockGroup.cs | MyPersonalAccountsModel/Inventory/StockGroup.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace com.techphernalia.MyPersonalAccounts.Model.Inventory
{
public class StockGroup
{
public int StockGroupId { get; set; }
public string StockGroupName { get; set; }
public int ParentStockGroup ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace com.techphernalia.MyPersonalAccounts.Model.Inventory
{
public class StockGroup
{
public int StockGroupId { get; set; }
public string StockGroupName { get; set; }
public int StockParentGroup ... | mit | C# |
5993c50bd22aa2734f33ca812faad3fad9985266 | add helper to make collision-safe names | Red-Folder/octokit.net,dlsteuer/octokit.net,octokit-net-test-org/octokit.net,rlugojr/octokit.net,chunkychode/octokit.net,editor-tools/octokit.net,bslliw/octokit.net,M-Zuber/octokit.net,gabrielweyer/octokit.net,forki/octokit.net,eriawan/octokit.net,devkhan/octokit.net,editor-tools/octokit.net,hahmed/octokit.net,mminns/o... | Octokit.Tests.Integration/AutomationSettings.cs | Octokit.Tests.Integration/AutomationSettings.cs | using System;
using Octokit.Http;
namespace Octokit.Tests.Integration
{
/// <summary>
/// Settings for executing automated tests.
/// </summary>
public class AutomationSettings
{
static readonly Lazy<AutomationSettings> automationSettingsThunk = new Lazy<AutomationSettings>(() =>
{... | using System;
using Octokit.Http;
namespace Octokit.Tests.Integration
{
/// <summary>
/// Settings for executing automated tests.
/// </summary>
public class AutomationSettings
{
static readonly Lazy<AutomationSettings> automationSettingsThunk = new Lazy<AutomationSettings>(() =>
{... | mit | C# |
5363ad30f639d88f27de61c2cef18abe683306f4 | fix Examples | acple/ParsecSharp | ParsecSharp.Examples/ReversePolishCalculator.cs | ParsecSharp.Examples/ReversePolishCalculator.cs | using System;
using System.Linq;
using static ParsecSharp.Parser;
using static ParsecSharp.Text;
namespace ParsecSharp.Examples
{
// 逆ポーランド記法の式をパーサで計算してみるネタ
public static class ReversePolishCalculator
{
// 整数または小数にマッチし、doubleにして返す
private static readonly Parser<char, double> num =
... | using System;
using System.Linq;
using static ParsecSharp.Parser;
using static ParsecSharp.Text;
namespace ParsecSharp.Examples
{
// 逆ポーランド記法の式をパーサで計算してみるネタ
public static class ReversePolishCalculator
{
// 整数または小数にマッチし、doubleにして返す
private static readonly Parser<char, double> num =
... | mit | C# |
743e069e812ce1c8c4017dc3f4294d6688f5fa3c | Fix character list | Dreadlow/PolarisServer,PolarisTeam/PolarisServer,cyberkitsune/PolarisServer | PolarisServer/Packets/Handlers/CharacterList.cs | PolarisServer/Packets/Handlers/CharacterList.cs | using PolarisServer.Database;
using System.Linq;
namespace PolarisServer.Packets.Handlers
{
[PacketHandlerAttr(0x11, 0x02)]
public class CharacterList : PacketHandler
{
#region implemented abstract members of PacketHandler
public override void HandlePacket(Client context, byte flags, byte... | using PolarisServer.Database;
using System.Linq;
namespace PolarisServer.Packets.Handlers
{
[PacketHandlerAttr(0x11, 0x02)]
public class RequestCharacterList : PacketHandler
{
#region implemented abstract members of PacketHandler
public override void HandlePacket(Client context, byte flag... | agpl-3.0 | C# |
46db5bdc013a5479bc871724688fe386c50fb1bf | bump version from pre-release to release | hudl/HudlFfmpeg | Hudl.Ffmpeg/Properties/AssemblyInfo.cs | Hudl.Ffmpeg/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Hu... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Hu... | apache-2.0 | C# |
b2308fac79dba74543e17ac980feab1a5028dbd7 | add data extensions | etechi/ServiceFramework,etechi/ServiceFramework,etechi/ServiceFramework,etechi/ServiceFramework | Projects/Server/Sys/SF.Sys.Data/DataContextExtension.cs | Projects/Server/Sys/SF.Sys.Data/DataContextExtension.cs | #region Apache License Version 2.0
/*----------------------------------------------------------------
Copyright 2017 Yang Chen (cy2000@gmail.com)
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of the License at
htt... | #region Apache License Version 2.0
/*----------------------------------------------------------------
Copyright 2017 Yang Chen (cy2000@gmail.com)
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of the License at
htt... | apache-2.0 | C# |
385907b9208e0c0df509e1a5c521466ccf998bfe | Bump version to 0.13.1 | whampson/cascara,whampson/bft-spec | Src/WHampson.Cascara/Properties/AssemblyInfo.cs | Src/WHampson.Cascara/Properties/AssemblyInfo.cs | #region License
/* Copyright (c) 2017 Wes Hampson
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, ... | #region License
/* Copyright (c) 2017 Wes Hampson
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, ... | mit | C# |
8751a403bc1ce053af23750dec0ea5ef3ede9392 | Add project GUID, fix assembly copyright, company | danielchalmers/SteamAccountSwitcher | SteamAccountSwitcher/Properties/AssemblyInfo.cs | SteamAccountSwitcher/Properties/AssemblyInfo.cs | #region
using System.Reflection;
using System.Runtime.InteropServices;
using System.Windows;
#endregion
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitl... | #region
using System.Reflection;
using System.Runtime.InteropServices;
using System.Windows;
#endregion
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitl... | mit | C# |
70a3bafec231b6ccb80bee707aab2e1db7394006 | Change in output to viewer count log | lancespeelmon/WinterBot,DarkAutumn/WinterBot | WinterBot/WinterExtensions/ViewerCountLogger.cs | WinterBot/WinterExtensions/ViewerCountLogger.cs | using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Winter;
namespace WinterExtensions
{
class ViewerCountLogger
{
ConcurrentQueue<string> m_queue = new ConcurrentQueue<string>()... | using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Winter;
namespace WinterExtensions
{
class ViewerCountLogger
{
ConcurrentQueue<string> m_queue = new ConcurrentQueue<string>()... | mit | C# |
2d21d5c958894944e0e2a7b0febc2325a0ac02fb | Disable DebugIL2CPU to test all kernels | CosmosOS/Cosmos,CosmosOS/Cosmos,zarlo/Cosmos,CosmosOS/Cosmos,CosmosOS/Cosmos,zarlo/Cosmos,zarlo/Cosmos,zarlo/Cosmos | Tests/Cosmos.TestRunner.Full/DefaultEngineConfiguration.cs | Tests/Cosmos.TestRunner.Full/DefaultEngineConfiguration.cs | using System;
using System.Collections.Generic;
using Cosmos.Build.Common;
using Cosmos.TestRunner.Core;
namespace Cosmos.TestRunner.Full
{
public class DefaultEngineConfiguration : IEngineConfiguration
{
public virtual int AllowedSecondsInKernel => 6000;
public virtual IEnumerable<RunTarget... | using System;
using System.Collections.Generic;
using Cosmos.Build.Common;
using Cosmos.TestRunner.Core;
namespace Cosmos.TestRunner.Full
{
public class DefaultEngineConfiguration : IEngineConfiguration
{
public virtual int AllowedSecondsInKernel => 6000;
public virtual IEnumerable<RunTarget... | bsd-3-clause | C# |
ee27faf6662addbbb8a0ad2b9058c9682d166a03 | Add the ability to create a readonly deploy key | mminns/octokit.net,octokit/octokit.net,dampir/octokit.net,bslliw/octokit.net,octokit-net-test-org/octokit.net,hahmed/octokit.net,cH40z-Lord/octokit.net,octokit-net-test-org/octokit.net,devkhan/octokit.net,rlugojr/octokit.net,ivandrofly/octokit.net,shiftkey-tester-org-blah-blah/octokit.net,chunkychode/octokit.net,shiftk... | Octokit/Models/Request/NewDeployKey.cs | Octokit/Models/Request/NewDeployKey.cs | using System;
using System.Diagnostics;
using System.Globalization;
namespace Octokit
{
/// <summary>
/// Describes a new deployment key to create.
/// </summary>
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class NewDeployKey
{
public string Title { get; set; }
public str... | using System;
using System.Diagnostics;
using System.Globalization;
namespace Octokit
{
/// <summary>
/// Describes a new deployment key to create.
/// </summary>
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class NewDeployKey
{
public string Title { get; set; }
public str... | mit | C# |
88aec782ccf15f226263afd368762acc85981d1d | Return if git remote is added | appharbor/appharbor-cli | src/AppHarbor/ApplicationConfiguration.cs | src/AppHarbor/ApplicationConfiguration.cs | using System;
using System.IO;
using AppHarbor.Model;
namespace AppHarbor
{
public class ApplicationConfiguration
{
private readonly IFileSystem _fileSystem;
private readonly IGitExecutor _gitExecutor;
public ApplicationConfiguration(IFileSystem fileSystem, IGitExecutor gitExecutor)
{
_fileSystem = file... | using System;
using System.IO;
using AppHarbor.Model;
namespace AppHarbor
{
public class ApplicationConfiguration
{
private readonly IFileSystem _fileSystem;
private readonly IGitExecutor _gitExecutor;
public ApplicationConfiguration(IFileSystem fileSystem, IGitExecutor gitExecutor)
{
_fileSystem = file... | mit | C# |
7097ac5f52cd26b8d4f8f5a0cec169c8fade49fa | Update filter to support PWSH | planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell | src/Firehose.Web/Extensions/SyndicationItemExtensions.cs | src/Firehose.Web/Extensions/SyndicationItemExtensions.cs | using System.Linq;
using System.ServiceModel.Syndication;
namespace Firehose.Web.Extensions
{
public static class SyndicationItemExtensions
{
public static bool ApplyDefaultFilter(this SyndicationItem item)
{
if (item == null)
return false;
var hasPowerS... | using System.Linq;
using System.ServiceModel.Syndication;
namespace Firehose.Web.Extensions
{
public static class SyndicationItemExtensions
{
public static bool ApplyDefaultFilter(this SyndicationItem item)
{
if (item == null)
return false;
var hasPowerS... | mit | C# |
8e0ac0be15263a6efe715edf085e799d5019b755 | check if HttpClientHandler supports automatic decompression | tmenier/Flurl | src/Flurl.Http/Configuration/DefaultHttpClientFactory.cs | src/Flurl.Http/Configuration/DefaultHttpClientFactory.cs | using System;
using System.Net;
using System.Net.Http;
namespace Flurl.Http.Configuration
{
/// <summary>
/// Default implementation of IHttpClientFactory used by FlurlHttp. The created HttpClient includes hooks
/// that enable FlurlHttp's testing features and respect its configuration settings. Therefore, custom ... | using System;
using System.Net;
using System.Net.Http;
namespace Flurl.Http.Configuration
{
/// <summary>
/// Default implementation of IHttpClientFactory used by FlurlHttp. The created HttpClient includes hooks
/// that enable FlurlHttp's testing features and respect its configuration settings. Therefore, custom ... | mit | C# |
012ed590799bdfc358352b46f3c97c68a1d5fd38 | make the browser close if the variable to close browser after each test is set. | mvbalaw/FluentWebUITesting | src/FluentWebUITesting/BrowserProvider.cs | src/FluentWebUITesting/BrowserProvider.cs | using System;
using System.Collections.Generic;
using System.Linq;
using WatiN.Core;
namespace FluentWebUITesting
{
public class BrowserProvider
{
private readonly List<Browser> _browsers = new List<Browser>();
private readonly BrowserSetUp _browserSetUp;
public BrowserProvider(BrowserSetUp brow... | using System;
using System.Collections.Generic;
using System.Linq;
using WatiN.Core;
namespace FluentWebUITesting
{
public class BrowserProvider
{
private readonly List<Browser> _browsers = new List<Browser>();
private readonly BrowserSetUp _browserSetUp;
public BrowserProvider(BrowserSetUp brow... | mit | C# |
c403d10f0e98d81efddd046605677f3d9b817f0d | Update Gfx.cs | bonimy/MushROMs | Snes/GfxEditor.cs | Snes/GfxEditor.cs | using System;
using System.Collections.Generic;
using System.Text;
using Helper;
namespace Snes
{
public class GfxEditor
{
/// <summary>
/// The raw, unformatted GFX data.
/// </summary>
/// <remarks>
/// This array contains just the data with no information about forma... | using System;
using System.Collections.Generic;
using System.Text;
using Helper;
namespace Snes
{
public class GfxEditor
{
/// <summary>
/// The raw, unformatted GFX data.
/// </summary>
/// <remarks>
/// This array contains just the data with no information about forma... | agpl-3.0 | C# |
0f00f170a1a5e950c1f2b2538b957dad7b48535d | Update AssemblyInfo.cs | rajfidel/appium-dotnet-driver,appium/appium-dotnet-driver,Brillio/appium-dotnet-driver,rajfidel/appium-dotnet-driver,suryarend/appium-dotnet-driver,Astro03/appium-dotnet-driver | appium-dotnet-driver/Properties/AssemblyInfo.cs | appium-dotnet-driver/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your project.
[assembly: AssemblyTitle ("appium-dotnet-driver")]
[assembly: AssemblyDescription ("Appium Dotnet Driver")]
[assembly: Asse... | using System.Reflection;
using System.Runtime.CompilerServices;
// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your project.
[assembly: AssemblyTitle ("appium-dotnet-driver")]
[assembly: AssemblyDescription ("Appium Dotnet Driver")]
[assembly: Asse... | apache-2.0 | C# |
b9da25dd1d4f113fe6fb32ff7222eba53084a817 | Fix typo in DeleteWebhookEndpointFormat | KyleGobel/Hipchat-CS,modulexcite/Hipchat-CS | src/Api/HipchatEndpoints.cs | src/Api/HipchatEndpoints.cs | using ServiceStack;
namespace HipchatApiV2
{
public class HipchatEndpoints
{
private HipchatEndpoints() {}
public static readonly string CreateWebhookEndpointFormat = "https://api.hipchat.com/v2/room/{0}/webhook";
private const string SendMessageEndpointFormat = "https://api.hipchat.co... | using ServiceStack;
namespace HipchatApiV2
{
public class HipchatEndpoints
{
private HipchatEndpoints() {}
public static readonly string CreateWebhookEndpointFormat = "https://api.hipchat.com/v2/room/{0}/webhook";
private const string SendMessageEndpointFormat = "https://api.hipchat.co... | mit | C# |
525e93fbd52c9c2f54a8f2f0e6f5b7498589150d | revert dispatchonset not wise change | sebas77/Svelto.ECS,sebas77/Svelto-ECS | Svelto.ECS/Dispatcher/DispatchOnSet.cs | Svelto.ECS/Dispatcher/DispatchOnSet.cs | using Svelto.WeakEvents;
namespace Svelto.ECS
{
public class DispatchOnSet<T> where T:struct
{
public DispatchOnSet(int senderID)
{
_senderID = senderID;
_subscribers = new WeakEvent<int, T>();
}
public DispatchOnSet()
{
_sub... | using Svelto.WeakEvents;
namespace Svelto.ECS
{
public class DispatchOnSet<T> where T:struct
{
public DispatchOnSet(int senderID)
{
_senderID = senderID;
_subscribers = new WeakEvent<int, T>();
}
public DispatchOnSet()
{
_sub... | mit | C# |
fa0bdfbd5186a9997eb43cca7ca24420442addc4 | Update EventCollector | plainerman/TicTacTube | TicTacTubeTest/Utils/EventCollector.cs | TicTacTubeTest/Utils/EventCollector.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
namespace TicTacTubeTest.Utils
{
public class EventCollector<T> where T : EventArgs
{
private readonly Predicate<T> _filter;
private readonly List<T> _events;
private readonly List<(Predicate<T> condition, ManualResetE... | using System;
using System.Collections.Generic;
using System.Threading;
namespace TicTacTubeTest.Utils
{
public class EventCollector<T> where T : EventArgs
{
private readonly Predicate<T> _filter;
private readonly List<T> _events;
private readonly List<(Predicate<T> condition, ManualResetEventSlim wait)> _wa... | mit | C# |
ca7dbbfb643ccb120f363c0596d3d3cbc9cf4358 | update how identities are dumped | StephenClearyExamples/FunctionsAuth0 | src/FunctionApp/Function.cs | src/FunctionApp/Function.cs | using System;
using System.Linq;
using System.Net;
using System.Net.Http;
using Microsoft.Azure.WebJobs;
using Microsoft.Azure.WebJobs.Extensions.Http;
using Microsoft.Azure.WebJobs.Host;
using System.Threading.Tasks;
namespace FunctionApp
{
public static class Function
{
[FunctionName("Function")]
... | using System;
using System.Linq;
using System.Net;
using System.Net.Http;
using Microsoft.Azure.WebJobs;
using Microsoft.Azure.WebJobs.Extensions.Http;
using Microsoft.Azure.WebJobs.Host;
using System.Threading.Tasks;
namespace FunctionApp
{
public static class Function
{
[FunctionName("Function")]
... | mit | C# |
fc4bdb611eb3d0ff903717343e49d0100fc6584e | use IP to avoid DNS lookup error | buybackoff/Ractor,buybackoff/Ractor.CLR,buybackoff/Ractor.CLR,buybackoff/Ractor | src/Ractor.Tests/Program.cs | src/Ractor.Tests/Program.cs | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Threading.Tasks;
namespace Ractor.Tests {
public class Program {
public static void Main(string[] args) {
Run().Wait();
}
public static async Task Run() {
using (var... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Threading.Tasks;
namespace Ractor.Tests {
public class Program {
public static void Main(string[] args) {
Run().Wait();
}
public static async Task Run() {
using (var... | apache-2.0 | C# |
b962b30b0399c9e4c434e18c5534942837e5c141 | Simplify using statement | martincostello/alexa-london-travel | src/LondonTravel.Skill/Clients/SystemTextJsonContentSerializer.cs | src/LondonTravel.Skill/Clients/SystemTextJsonContentSerializer.cs | // Copyright (c) Martin Costello, 2017. All rights reserved.
// Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information.
using System;
using System.IO;
using System.Net.Http;
using System.Text.Json;
using System.Threading.Tasks;
using Refit;
namespace MartinCostell... | // Copyright (c) Martin Costello, 2017. All rights reserved.
// Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information.
using System;
using System.IO;
using System.Net.Http;
using System.Text.Json;
using System.Threading.Tasks;
using Refit;
namespace MartinCostell... | apache-2.0 | C# |
d5551ba1aae61b00b0a07010b318eeade6e00111 | Refactor ValueStylesTests | JohanLarsson/Gu.Wpf.PropertyGrid | Gu.Wpf.PropertyGrid.UiTests/ValueStylesTests.cs | Gu.Wpf.PropertyGrid.UiTests/ValueStylesTests.cs | namespace Gu.Wpf.PropertyGrid.UiTests
{
using Gu.Wpf.UiAutomation;
using NUnit.Framework;
public class ValueStylesTests
{
private static readonly string WindowName = "ValueStylesWindow";
[OneTimeTearDown]
public void OneTimeTearDown()
{
Application.KillLaunc... | namespace Gu.Wpf.PropertyGrid.UiTests
{
using NUnit.Framework;
using TestStack.White.UIItems;
using TestStack.White.UIItems.ListBoxItems;
public class ValueStylesTests : WindowTests
{
protected override string WindowName { get; } = "ValueStylesWindow";
[Test]
public void U... | mit | C# |
62cbde55c5c2d58e1ab27b39dcddfab28d8377cc | Make TimeServiceBase's constructor protected. | MarinAtanasov/AppBrix.NetCore,MarinAtanasov/AppBrix | src/AppBrix.Time/TimeServiceBase.cs | src/AppBrix.Time/TimeServiceBase.cs | // Copyright (c) MarinAtanasov. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the project root for license information.
//
using System;
using System.Globalization;
using System.Linq;
namespace AppBrix.Time
{
internal abstract class TimeServiceBase : ITimeService
{
#... | // Copyright (c) MarinAtanasov. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the project root for license information.
//
using System;
using System.Globalization;
using System.Linq;
namespace AppBrix.Time
{
internal abstract class TimeServiceBase : ITimeService
{
#... | mit | C# |
32d2aeeed8b65096b8f7505dd6311632167809a5 | Remove redundant SegmentReference.CanUpdateOffsets | Washi1337/AsmResolver,Washi1337/AsmResolver,Washi1337/AsmResolver,Washi1337/AsmResolver | src/AsmResolver/SegmentReference.cs | src/AsmResolver/SegmentReference.cs | using System;
using System.Diagnostics.CodeAnalysis;
using AsmResolver.IO;
namespace AsmResolver
{
/// <summary>
/// Provides a base implementation for a reference to a segment in a binary file.
/// </summary>
public sealed class SegmentReference : ISegmentReference
{
/// <summary>
... | using System;
using System.Diagnostics.CodeAnalysis;
using AsmResolver.IO;
namespace AsmResolver
{
/// <summary>
/// Provides a base implementation for a reference to a segment in a binary file.
/// </summary>
public sealed class SegmentReference : ISegmentReference
{
/// <summary>
... | mit | C# |
d468e504a05058d1002f7de9504ad519ac602e2b | Update WindowSettings.cs | wieslawsoltes/Draw2D,wieslawsoltes/Draw2D,wieslawsoltes/Draw2D | src/Draw2D/Editor/WindowSettings.cs | src/Draw2D/Editor/WindowSettings.cs | // Copyright (c) Wiesław Šoltés. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.Runtime.Serialization;
using Avalonia.Controls;
using Draw2D.ViewModels;
namespace Draw2D.Editor
{
[DataContract(IsReference = true)]
public ... | // Copyright (c) Wiesław Šoltés. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.Runtime.Serialization;
using Avalonia;
using Avalonia.Controls;
using Draw2D.ViewModels;
namespace Draw2D.Editor
{
[DataContract(IsReference = tr... | mit | C# |
e481e629950802471af297d4f20db803fef22eb7 | Make ConstraintUtils static | JustinRChou/nunit,appel1/nunit,nunit/nunit,jadarnel27/nunit,agray/nunit,jadarnel27/nunit,appel1/nunit,mikkelbu/nunit,ggeurts/nunit,agray/nunit,ggeurts/nunit,mjedrzejek/nunit,agray/nunit,mikkelbu/nunit,OmicronPersei/nunit,OmicronPersei/nunit,mjedrzejek/nunit,NikolayPianikov/nunit,JustinRChou/nunit,nunit/nunit,NikolayPia... | src/NUnitFramework/framework/Internal/ConstraintUtil.cs | src/NUnitFramework/framework/Internal/ConstraintUtil.cs | // ***********************************************************************
// Copyright (c) 2017 Charlie Poole, Rob Prouse
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restri... | // ***********************************************************************
// Copyright (c) 2017 Charlie Poole, Rob Prouse
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restri... | mit | C# |
1a1bc2cc9d0b3359cb24160eb526a7e5e5225da5 | Add null check | mvno/Okanshi.Dashboard,mvno/Okanshi.Dashboard,mvno/Okanshi.Dashboard,mvno/Okanshi.Dashboard | src/Okanshi.Dashboard/GetMetrics.cs | src/Okanshi.Dashboard/GetMetrics.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using Okanshi.Dashboard.Models;
namespace Okanshi.Dashboard
{
public interface IGetMetrics
{
IEnumerable<Metric> Execute(string instanceName);
}
public class GetMetrics : IGet... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using Okanshi.Dashboard.Models;
namespace Okanshi.Dashboard
{
public interface IGetMetrics
{
IEnumerable<Metric> Execute(string instanceName);
}
public class GetMetrics : IGet... | mit | C# |
fa73fa9290db661827a5f457a957b8ad8fb2222f | Fix an issue with the default URI | PlainConcepts/AdventureWorksSkiApp,PlainConcepts/AdventureWorksSkiApp,PlainConcepts/AdventureWorksSkiApp,PlainConcepts/AdventureWorksSkiApp,PlainConcepts/AdventureWorksSkiApp | src/SkiResort.XamarinApp/SkiResort.XamarinApp/Config.cs | src/SkiResort.XamarinApp/SkiResort.XamarinApp/Config.cs | using SkiResort.XamarinApp.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xamarin.Forms;
namespace SkiResort.XamarinApp
{
public static class Config
{
public const string API_URL = "__SERVERURI__";
public cons... | using SkiResort.XamarinApp.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xamarin.Forms;
namespace SkiResort.XamarinApp
{
public static class Config
{
public const string API_URL = "__SERVERURI__/api";
public ... | mit | C# |
fab77f5154af29ed3a211fd7331e341f6fd2459e | fix thumbnail | lianzhao/WikiaWP,lianzhao/WikiaWP,lianzhao/WikiaWP | src/WikiaSdk/Mercury/Relatedpage.cs | src/WikiaSdk/Mercury/Relatedpage.cs | using System.Globalization;
using System.Text.RegularExpressions;
namespace Wikia.Mercury
{
public class Relatedpage
{
public const string WindowWidthReplacePattern = @"window-width/(\w+)";
public const string WindowHeightReplacePattern = @"window-height/(\w+)";
public cons... | using System.Globalization;
using System.Text.RegularExpressions;
namespace Wikia.Mercury
{
public class Relatedpage
{
public const string WindowWidthReplacePattern = @"window-width/(\w+)";
public const string WindowHeightReplacePattern = @"window-height/(\w+)";
public cons... | mit | C# |
2d17cb830d24a2abe1045f9234b5f95685675d10 | Fix Node_GetComponent (it has 3 arguments) | florin-chelaru/urho,florin-chelaru/urho,florin-chelaru/urho,florin-chelaru/urho,florin-chelaru/urho,florin-chelaru/urho | bindings/src/Node.cs | bindings/src/Node.cs | //
// Node C# sugar
//
// Authors:
// Miguel de Icaza (miguel@xamarin.com)
//
// Copyrigh 2015 Xamarin INc
//
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Reflection;
namespace Urho {
internal partial class NodeHelper {
[DllImport ("mono-urho", CallingConvent... | //
// Node C# sugar
//
// Authors:
// Miguel de Icaza (miguel@xamarin.com)
//
// Copyrigh 2015 Xamarin INc
//
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Reflection;
namespace Urho {
internal partial class NodeHelper {
[DllImport ("mono-urho", CallingConvent... | mit | C# |
6c9aa565b36c8489ac81b2232f5144e79344faf1 | update version | Giten2004/zookeeper,ewhauser/zookeeper,ewhauser/zookeeper,crtynes/zookeeper,ewhauser/zookeeper,Giten2004/zookeeper,Giten2004/zookeeper,pengweiqhca/zookeeper,crtynes/zookeeper,pengweiqhca/zookeeper,crtynes/zookeeper,mikeqian/zookeeper,mikeqian/zookeeper,Giten2004/zookeeper,ewhauser/zookeeper,mikeqian/zookeeper,crtynes/z... | src/dotnet/SolutionVersion.cs | src/dotnet/SolutionVersion.cs | using System;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Security;
[assembly: AssemblyDescription("ZooKeeper Client for .NET http://zookeeper.apache.org")]
[assembly: AssemblyProduct("ZooKeeperNet")]
[assembly: AssemblyCopyright("Copyright 2007-2012 ewhauser, omwok. - All rights reserv... | using System;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Security;
[assembly: AssemblyDescription("ZooKeeper Client for .NET http://zookeeper.apache.org")]
[assembly: AssemblyProduct("ZooKeeperNet")]
[assembly: AssemblyCopyright("Copyright 2007-2012 ewhauser, omwok. - All rights reserv... | apache-2.0 | C# |
0f84a738c74c3d0fafebcd3bc86e0e8d2ef0276c | fix rte.cshtml | Jeavon/Slimsy,Jeavon/Slimsy,Jeavon/Slimsy | TestSite/Views/Partials/Grid/Editors/Rte.cshtml | TestSite/Views/Partials/Grid/Editors/Rte.cshtml | @model dynamic
@using Umbraco.Web.Composing
@using Umbraco.Web.Templates
@{
//var value = TemplateUtilities.ParseInternalLinks(Model.value.ToString(), Current.UmbracoContext.UrlProvider);
//value = TemplateUtilities.ResolveUrlsFromTextString(value);
//value = TemplateUtilities.ResolveMediaFromTextString(value);
}
@Sl... | @model dynamic
@using Umbraco.Web.Composing
@using Umbraco.Web.Templates
@{
//var value = TemplateUtilities.ParseInternalLinks(Model.value.ToString(), Current.UmbracoContext.UrlProvider);
//value = TemplateUtilities.ResolveUrlsFromTextString(value);
//value = TemplateUtilities.ResolveMediaFromTextString(value);
@... | mit | C# |
4ac66748346ccb4b492656f17f47dc3928c18d38 | Refactor AtataSamples.AppConfig.SetUpFixture | atata-framework/atata-samples | AppConfig/AtataSamples.AppConfig/SetUpFixture.cs | AppConfig/AtataSamples.AppConfig/SetUpFixture.cs | using Atata;
using NUnit.Framework;
namespace AtataSamples.AppConfig
{
[SetUpFixture]
public class SetUpFixture
{
[OneTimeSetUp]
public void GlobalSetUp()
{
AtataContext.GlobalConfiguration
.UseChrome()
.WithArguments("start-maximized... | using Atata;
using NUnit.Framework;
namespace AtataSamples.AppConfig
{
[SetUpFixture]
public class SetUpFixture
{
[OneTimeSetUp]
public void GlobalSetUp()
{
AtataContext.GlobalConfiguration
.UseChrome()
.WithArguments("start-maximized... | apache-2.0 | C# |
7af03232c45090d52902e8a5b35d6fd5ef699058 | Add Is any key function | insthync/unity-utilities | Assets/UnityUtilities/Scripts/Misc/UnityUtils.cs | Assets/UnityUtilities/Scripts/Misc/UnityUtils.cs | using UnityEngine;
using UnityEngine.Rendering;
using UnityEngine.Networking;
public static class UnityUtils
{
public static bool IsAnyKeyUp(KeyCode[] keys)
{
foreach (KeyCode key in keys)
{
if (Input.GetKeyUp(key))
return true;
}
return false;
}
... | using UnityEngine;
using UnityEngine.Rendering;
using UnityEngine.Networking;
public static class UnityUtils
{
public static bool IsAnyKeyUp(KeyCode[] keys)
{
foreach (KeyCode key in keys)
{
if (Input.GetKeyUp(key))
return true;
}
return false;
}
... | mit | C# |
ea3933f11af6e264bdb29c946e6b22183c8e32af | Add comment. | yas-mnkornym/VirtualDesktop,Grabacr07/VirtualDesktop | source/VirtualDesktop/Interop/IVirtualDesktopManager.cs | source/VirtualDesktop/Interop/IVirtualDesktopManager.cs | using System;
using System.Runtime.InteropServices;
namespace WindowsDesktop.Interop
{
[ComImport]
[Guid("a5cd92ff-29be-454c-8d04-d82879fb3f1b")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface IVirtualDesktopManager
{
bool IsWindowOnCurrentVirtualDesktop(IntPtr topLevelWindow);... | using System;
using System.Runtime.InteropServices;
namespace WindowsDesktop.Interop
{
[ComImport]
[Guid("a5cd92ff-29be-454c-8d04-d82879fb3f1b")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface IVirtualDesktopManager
{
bool IsWindowOnCurrentVirtualDesktop(IntPtr topLevelWindow);... | mit | C# |
891680b2392b5de8392f985c04313fbf31f14dbc | Update Index.cshtml | ucdavis/Anlab,ucdavis/Anlab,ucdavis/Anlab,ucdavis/Anlab | Anlab.Mvc/Views/Home/Index.cshtml | Anlab.Mvc/Views/Home/Index.cshtml | @{
ViewData["Title"] = "Home Page";
}
<div class="col-8">
<h2 style="color: blue">The Analytical Lab will be closed from Thursday March 19th through Tuesday April 7th in support of curbing the spread of COVID-19. <br />
Please email us at <a href='mailto:anlab@ucdavis.edu'>anlab@ucdavis.edu</a> i... | @{
ViewData["Title"] = "Home Page";
}
<div class="col-8">
<h2 style="color: blue">The Analytical Lab is currently open and we are working hard to process samples. Please check back here for updates as we navigate these uncertain times.</h2>
<p class="lead">The UC Davis Analytical Laboratory is a cor... | mit | C# |
46b2c8d2e0d41b25107d3a349171acce37c6e49d | fix to prevent NREs | MassTransit/MassTransit,SanSYS/MassTransit,SanSYS/MassTransit,jacobpovar/MassTransit,jacobpovar/MassTransit,MassTransit/MassTransit,phatboyg/MassTransit,phatboyg/MassTransit | MassTransit.ServiceBus.MSMQ/MsmqMessageSender.cs | MassTransit.ServiceBus.MSMQ/MsmqMessageSender.cs | /// Copyright 2007-2008 The Apache Software Foundation.
///
/// Licensed under the Apache License, Version 2.0 (the "License"); you may not use
/// this file except in compliance with the License. You may obtain a copy of the
/// License at
///
/// http://www.apache.org/licenses/LICENSE-2.0
///
/// Unl... | /// Copyright 2007-2008 The Apache Software Foundation.
///
/// Licensed under the Apache License, Version 2.0 (the "License"); you may not use
/// this file except in compliance with the License. You may obtain a copy of the
/// License at
///
/// http://www.apache.org/licenses/LICENSE-2.0
///
/// Unl... | apache-2.0 | C# |
9536779fe87b71dbc7464f0a295cc7edd038bfb4 | Fix Someone command | Ervie/Homunculus | MarekMotykaBot/ExtensionsMethods/SocketGuildExtensions.cs | MarekMotykaBot/ExtensionsMethods/SocketGuildExtensions.cs | using Discord.WebSocket;
using System;
using System.Linq;
namespace MarekMotykaBot.ExtensionsMethods
{
public static class SocketGuildExtensions
{
private static readonly string MarekDiscordId = "Erina#5946";
private static readonly string MarekBotDiscordId = "MarekMotykaBot#2213";
public static string GetRa... | using Discord.WebSocket;
using System;
using System.Linq;
namespace MarekMotykaBot.ExtensionsMethods
{
public static class SocketGuildExtensions
{
private static readonly string MarekDiscordId = "Erina#5946";
private static readonly string MarekBotDiscordId = "MarekMotykaBot#2213";
public static string GetRa... | mit | C# |
febc51430bbd52f09ad3c3b55ea24c8c04c318d8 | Bump version number to push new version to nuget.org | XeroAPI/XeroAPI.Net,jcvandan/XeroAPI.Net,TDaphneB/XeroAPI.Net,MatthewSteeples/XeroAPI.Net | source/XeroApi/Properties/AssemblyInfo.cs | source/XeroApi/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("XeroApi")]
[assembly: AssemblyDesc... | using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("XeroApi")]
[assembly: AssemblyDesc... | mit | C# |
3358f2a8959daff67a7841c4e273c1be690a0711 | enable byteserializer tests | halforbit/data-stores | Halforbit.DataStores.Tests/LocalFileStoreByteSerializationTests.cs | Halforbit.DataStores.Tests/LocalFileStoreByteSerializationTests.cs | using Halforbit.DataStores.FileStores.Implementation;
using Halforbit.DataStores.FileStores.LocalStorage.Implementation;
using Halforbit.DataStores.FileStores.Serialization.ByteSerialization.Implementation;
using Halforbit.DataStores.Tests;
using System;
using System.IO;
using Xunit;
namespace Halforbit.DataSt... | using Halforbit.DataStores.FileStores.Implementation;
using Halforbit.DataStores.FileStores.LocalStorage.Implementation;
using Halforbit.DataStores.FileStores.Serialization.Yaml.Implementation;
using Halforbit.DataStores.Tests;
using System;
using System.IO;
using Xunit;
namespace Halforbit.DataStores.FileStor... | mit | C# |
8598756b9f06c019d25f30533efb4d3a7ef9dd41 | fix build | mstyura/Anotar,Fody/Anotar,distantcam/Anotar,modulexcite/Anotar | ReferenceAssembly/StringFormatMethodAttribute.cs | ReferenceAssembly/StringFormatMethodAttribute.cs | using System;
namespace JetBrains.Annotations
{
[Obsolete("Not for external use.")]
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Constructor, AllowMultiple = false, Inherited = true)]
public sealed class StringFormatMethodAttribute : Attribute
{
// ReSharper disable UnusedParameter.Loca... | using System;
using System.ComponentModel;
namespace JetBrains.Annotations
{
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("Not for external use.")]
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Constructor, AllowMultiple = false, Inherited = true)]
public sealed class StringFo... | mit | C# |
8562e6d2964f9f82aca9622a9702d4d34eb9f3ca | Update Program.cs | aloisdg/algo | Algo/FisherYates/Program.cs | Algo/FisherYates/Program.cs | using System;
using System.Collections.Generic;
namespace FisherYates
{
class Program
{
static void Main(string[] args)
{
var nums = Enumerable.Range(0, 10);
var numsShuffled = nums.Shuffle<int>();
foreach (var item in numsShuffled)
Console.Write("{0... | using System;
using System.Collections.Generic;
namespace FisherYates
{
class Program
{
static void Main(string[] args)
{
List<int> nums = new List<int>( ) { 0, 1, 2, 3 };
FisherYates.Shuffle<int>(nums);
foreach (var item in nums)
Console.Wr... | bsd-3-clause | C# |
8cae18d92ad88fb70ecaba7aba6ef27c6786a415 | Modify language service | emoacht/Monitorian | Source/Monitorian.Core/Models/LanguageService.cs | Source/Monitorian.Core/Models/LanguageService.cs | using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace Monitorian.Core.Models
{
public class LanguageService
{
public static IReadOnlyCollection<string> Options => new[] { Option ... | using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace Monitorian.Core.Models
{
public class LanguageService
{
public static IReadOnlyCollection<string> Options => new[] { Option ... | mit | C# |
113617aa4f1d64dc877de9865afd2765c38d3618 | Replace with an english version. | TTExtensions/MouseClickSimulator | TTMouseclickSimulator/Properties/AssemblyInfo.cs | TTMouseclickSimulator/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Windows;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated ... | using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Windows;
// Allgemeine Informationen über eine Assembly werden über die folgenden
// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
// die e... | mit | C# |
216348aab29fb9d42c34a99aaf7bbb36027be0d8 | Add BindToDelegate to EventTriggerBinder | wiyonoaten/XMvvmApp | XMvvmApp/Mvvm/Binders/EventTriggerBinderCoreExtensions.cs | XMvvmApp/Mvvm/Binders/EventTriggerBinderCoreExtensions.cs | using System;
using System.Linq.Expressions;
using XMvvmApp.Mvvm.Bindings;
using XMvvmApp.Utils;
namespace XMvvmApp.Mvvm.Binders
{
public static class EventTriggerBinderCoreExtensions
{
public static EventTriggerBinder<T> BindToDelegate<T>(this EventTriggerBinder<T> binder,
Action<T> actio... | using System;
using System.Linq.Expressions;
using XMvvmApp.Mvvm.Bindings;
using XMvvmApp.Utils;
namespace XMvvmApp.Mvvm.Binders
{
public static class EventTriggerBinderCoreExtensions
{
public static EventTriggerBinder<T> BindToProperty<T, V>(this EventTriggerBinder<T> binder,
Expression<F... | apache-2.0 | C# |
e9c27af4906f2fd9bca6bedd5e0f2c56418285c6 | add OverwriteFile() | marinaRupe/FER.RAUPJC-PROJEKT,marinaRupe/FER.RAUPJC-PROJEKT,marinaRupe/FER.RAUPJC-PROJEKT | SimpleWebEditor/src/SimpleWebEditorApplication/Core/Models/Page.cs | SimpleWebEditor/src/SimpleWebEditorApplication/Core/Models/Page.cs | using System;
using System.IO;
using System.ComponentModel.DataAnnotations;
namespace SimpleWebEditorApplication.Core.Models
{
public class Page
{
public const string PUBLISHED_PAGE_PATH = "/publishedPages/";
public const string WORK_PAGE_PATH = "/workPages/";
[Key]
public Gui... | using System;
using System.IO;
using System.ComponentModel.DataAnnotations;
namespace SimpleWebEditorApplication.Core.Models
{
public class Page
{
public const string PUBLISHED_PAGE_PATH = "/publishedPages/";
public const string WORK_PAGE_PATH = "/workPages/";
[Key]
public Gui... | mit | C# |
5550370ca81116f272d40a098a525407014e951d | Increase ForBlock test coverage | Carbon/Css | src/Carbon.Css.Tests/Scss/ForRuleTests.cs | src/Carbon.Css.Tests/Scss/ForRuleTests.cs | using System.Collections.Generic;
using Xunit;
namespace Carbon.Css.Tests
{
public class ForRuleTests
{
[Fact]
public void A()
{
var sheet = StyleSheet.Parse(@"
@for $i from 1 through 5 {
div { width: #{$i}px }
}
");
Assert.Equal(@"
div { ... | using Xunit;
namespace Carbon.Css.Tests
{
public class ForRuleTests
{
[Fact]
public void A()
{
var sheet = StyleSheet.Parse(@"
@for $i from 1 through 5 {
div { width: #{$i}px }
}
");
Assert.Equal(@"
div { width: 1px; }
div { width: 2px; }
... | mit | C# |
f4f2a77b3588684cea0b7f7ded4faf694ef9f067 | Fix failing unit tests | plainerman/TicTacTube | TicTacTubeTest/Processors/Media/Songs/TestGeniusSongInfoFetcher.cs | TicTacTubeTest/Processors/Media/Songs/TestGeniusSongInfoFetcher.cs | using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.IO;
using TicTacTubeCore.Genius.Processors.Media.Songs;
using TicTacTubeCore.Processors.Media.Songs;
namespace TicTacTubeTest.Processors.Media.Songs
{
[TestClass]
public class TestGeniusSongInfoFetcher
{
/// <summary>
/// The path to the toke... | using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.IO;
using TicTacTubeCore.Genius.Processors.Media.Songs;
using TicTacTubeCore.Processors.Media.Songs;
namespace TicTacTubeTest.Processors.Media.Songs
{
[TestClass]
public class TestGeniusSongInfoFetcher
{
/// <summary>
/// The path to the toke... | mit | C# |
6a723bc27886c89b7e879ea222787b8341371498 | Add Travis to contact page. | jpfultonzm/trainingsandbox,jpfultonzm/trainingsandbox,jpfultonzm/trainingsandbox | ZirMed.TrainingSandbox/Views/Home/Contact.cshtml | ZirMed.TrainingSandbox/Views/Home/Contact.cshtml | @{
ViewBag.Title = "Contact";
}
<h2>@ViewBag.Title.</h2>
<h3>@ViewBag.Message</h3>
<address>
One Microsoft Way<br />
Redmond, WA 98052-6399<br />
<abbr title="Phone">P:</abbr>
425.555.0100
</address>
<address>
<strong>Support:</strong> <a href="mailto:Support@example.com">Support@wechangedt... | @{
ViewBag.Title = "Contact";
}
<h2>@ViewBag.Title.</h2>
<h3>@ViewBag.Message</h3>
<address>
One Microsoft Way<br />
Redmond, WA 98052-6399<br />
<abbr title="Phone">P:</abbr>
425.555.0100
</address>
<address>
<strong>Support:</strong> <a href="mailto:Support@example.com">Support@wechangedt... | mit | C# |
bbbaba581af490bd4f4fdbc0e54028b9144b8f09 | Add Harry to contact page. | jpfultonzm/trainingsandbox,jpfultonzm/trainingsandbox,jpfultonzm/trainingsandbox | ZirMed.TrainingSandbox/Views/Home/Contact.cshtml | ZirMed.TrainingSandbox/Views/Home/Contact.cshtml | @{
ViewBag.Title = "Contact";
}
<h2>@ViewBag.Title.</h2>
<h3>@ViewBag.Message</h3>
<address>
One Microsoft Way<br />
Redmond, WA 98052-6399<br />
<abbr title="Phone">P:</abbr>
425.555.0100
</address>
<address>
<strong>Support:</strong> <a href="mailto:Support@example.com">Support@example.co... | @{
ViewBag.Title = "Contact";
}
<h2>@ViewBag.Title.</h2>
<h3>@ViewBag.Message</h3>
<address>
One Microsoft Way<br />
Redmond, WA 98052-6399<br />
<abbr title="Phone">P:</abbr>
425.555.0100
</address>
<address>
<strong>Support:</strong> <a href="mailto:Support@example.com">Support@example.co... | mit | C# |
2eb8e555cebd55bb117361acfe21fd4a23186d61 | handle null value in CheckBox data bugz: 25851 | mvbalaw/FluentWebControls | src/FluentWebControls/CheckBoxListData.cs | src/FluentWebControls/CheckBoxListData.cs | using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentWebControls.Extensions;
namespace FluentWebControls
{
public class CheckBoxListData : ValidatableWebControlBase
{
private readonly IEnumerable<KeyValuePair<string, string>> _items;
public CheckBoxListData(IEnumerable<KeyValuePa... | using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentWebControls.Extensions;
namespace FluentWebControls
{
public class CheckBoxListData : ValidatableWebControlBase
{
private readonly IEnumerable<KeyValuePair<string, string>> _items;
public CheckBoxListData(IEnumerable<KeyValuePa... | mit | C# |
b9c52c500e1f6b777cca712fe437b184e1514373 | Add isMainRoom property to Room | Saduras/DungeonGenerator | Assets/SourceCode/Room.cs | Assets/SourceCode/Room.cs | using UnityEngine;
public class Room : MonoBehaviour
{
public Material defaultMaterial;
public Material mainRoomMaterial;
public float width { get { return transform.localScale.x; } }
public float length { get { return transform.localScale.z; } }
public float top { get { return transform.localPosition.z + len... | using UnityEngine;
public class Room : MonoBehaviour
{
public float width { get { return transform.localScale.x; } }
public float length { get { return transform.localScale.z; } }
public float top
{
get {
return transform.localPosition.z + length / 2;
}
}
public float bottom
{
get {
retur... | mit | C# |
190b28514da03f844a0f6dc24eb37cad964b5b77 | Add a wait. | JohanLarsson/Gu.Wpf.UiAutomation | Gu.Wpf.UiAutomation.UITests/Elements/ContextMenuTests.cs | Gu.Wpf.UiAutomation.UITests/Elements/ContextMenuTests.cs | namespace Gu.Wpf.UiAutomation.UITests.Elements
{
using System.IO;
using NUnit.Framework;
public class ContextMenuTests
{
private static readonly string ExeFileName = Path.Combine(
TestContext.CurrentContext.TestDirectory,
@"..\..\TestApplications\WpfApplication\bin\WpfA... | namespace Gu.Wpf.UiAutomation.UITests.Elements
{
using System.IO;
using NUnit.Framework;
public class ContextMenuTests
{
private static readonly string ExeFileName = Path.Combine(
TestContext.CurrentContext.TestDirectory,
@"..\..\TestApplications\WpfApplication\bin\WpfA... | mit | C# |
c83fb13e21fb4a4412bd1483f8f73e0966f8bc09 | Update FirstReverse.cs | michaeljwebb/Algorithm-Practice | Coderbyte/FirstReverse.cs | Coderbyte/FirstReverse.cs | //Take the input string and return it in reversed order.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class FirstReverse
{
static void Main(string[] args)
{
Console.WriteLine(First_Reverse(Console.ReadLine()));
}
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class FirstReverse
{
static void Main(string[] args)
{
Console.WriteLine(First_Reverse(Console.ReadLine()));
}
public static string First_Reverse(string str)
... | mit | C# |
e123cbb8b2013b3e3d971a0eafe8e426c98228e5 | Modify the RemoveCommand.cs file. | Zongsoft/Zongsoft.Externals.Redis | Commands/RemoveCommand.cs | Commands/RemoveCommand.cs | using System;
using System.Collections.Generic;
namespace Zongsoft.Externals.Redis.Commands
{
public class RemoveCommand : RedisCommandBase
{
#region 构造函数
public RemoveCommand() : base("Remove")
{
}
public RemoveCommand(ServiceStack.Redis.IRedisClient redis) : base(redis, "Remove")
{
}
#endregion
... | using System;
using System.Collections.Generic;
namespace Zongsoft.Externals.Redis.Commands
{
public class RemoveCommand : RedisCommandBase
{
#region 构造函数
public RemoveCommand() : base("Set")
{
}
public RemoveCommand(ServiceStack.Redis.IRedisClient redis) : base(redis, "Set")
{
}
#endregion
#reg... | lgpl-2.1 | C# |
6ba18d7bc3d6d9ba0a8a2dcd5163d1a2df09e7b5 | Bump version to 2.1.0 for bug fix | dustyburwell/garlic | Garlic/Properties/AssemblyInfo.cs | Garlic/Properties/AssemblyInfo.cs | using System.Reflection;
[assembly: AssemblyTitle("Garlic")]
[assembly: AssemblyDescription("Google Analytics Client for .Net")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyCompany("Dusty Burwell")]
[assembly: AssemblyProduct("Garlic Google Analytics Client")]
[assembly: AssemblyCopyright("Copyrig... | using System.Reflection;
[assembly: AssemblyTitle("Garlic")]
[assembly: AssemblyDescription("Google Analytics Client for .Net")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyCompany("Dusty Burwell")]
[assembly: AssemblyProduct("Garlic Google Analytics Client")]
[assembly: AssemblyCopyright("Copyrig... | mit | C# |
97d778c31c72ba09b418f3c9e236585e0bf0220c | Add a firstTimeFullscreen parameter to WindowState.Restore | chylex/TweetDuck,chylex/TweetDuck,chylex/TweetDuck,chylex/TweetDuck | Core/Utils/WindowState.cs | Core/Utils/WindowState.cs | using System;
using System.Drawing;
using System.Linq;
using System.Windows.Forms;
namespace TweetDck.Core.Utils{
[Serializable]
class WindowState{
private Rectangle rect;
private bool isMaximized;
public void Save(Form form){
rect = form.WindowState == FormWindowState.Nor... | using System;
using System.Drawing;
using System.Linq;
using System.Windows.Forms;
namespace TweetDck.Core.Utils{
[Serializable]
class WindowState{
private Rectangle rect;
private bool isMaximized;
public void Save(Form form){
rect = form.WindowState == FormWindowState.Nor... | mit | C# |
340125dcde60b86aab617905786db8872adb16db | Work through all issues | jefking/King.Service.ServiceBus | King.Service.ServiceBus.Unit.Tests/Models/QueuedTests.cs | King.Service.ServiceBus.Unit.Tests/Models/QueuedTests.cs | namespace King.Service.ServiceBus.Unit.Tests
{
using System;
using System.Threading.Tasks;
using King.Service.ServiceBus.Models;
using Microsoft.ServiceBus.Messaging;
using Newtonsoft.Json;
using NUnit.Framework;
using ServiceBus.Wrappers;
[TestFixture]
public class QueuedTests
... | namespace King.Service.ServiceBus.Unit.Tests
{
using System;
using System.Threading.Tasks;
using King.Service.ServiceBus.Models;
using Microsoft.ServiceBus.Messaging;
using Newtonsoft.Json;
using NUnit.Framework;
using ServiceBus.Wrappers;
[TestFixture]
public class QueuedTests
... | mit | C# |
d00628d4d01f5faaa296d03f9851216772725821 | Add email, first, last, and full name to RaygunIdentifierMessage | nelsonsar/raygun4net,ddunkin/raygun4net,ddunkin/raygun4net,MindscapeHQ/raygun4net,tdiehl/raygun4net,MindscapeHQ/raygun4net,articulate/raygun4net,nelsonsar/raygun4net,articulate/raygun4net,tdiehl/raygun4net,MindscapeHQ/raygun4net | Mindscape.Raygun4Net/Messages/RaygunIdentifierMessage.cs | Mindscape.Raygun4Net/Messages/RaygunIdentifierMessage.cs | namespace Mindscape.Raygun4Net.Messages
{
public class RaygunIdentifierMessage
{
public RaygunIdentifierMessage(string user)
{
Identifier = user;
}
public string Identifier { get; set; }
public bool IsAnonymous { get; set; }
public string Email { get; set; }
public string Full... | namespace Mindscape.Raygun4Net.Messages
{
public class RaygunIdentifierMessage
{
public RaygunIdentifierMessage(string user)
{
Identifier = user;
}
public string Identifier { get; set; }
public bool IsAnonymous { get; set; }
}
}
| mit | C# |
881275436b5fd80a34681fb60fe2843907871bdc | Fix TextFieldReader | Core2D/Core2D,Core2D/Core2D,wieslawsoltes/Core2D,wieslawsoltes/Core2D,wieslawsoltes/Core2D,wieslawsoltes/Core2D | dependencies/TextFieldReader.CsvHelper/CsvHelperReader.cs | dependencies/TextFieldReader.CsvHelper/CsvHelperReader.cs | // Copyright (c) Wiesław Šoltés. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using Core2D.Data.Database;
using Core2D.Interfaces;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using CSV = ... | // Copyright (c) Wiesław Šoltés. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using Core2D.Data.Database;
using Core2D.Interfaces;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using CSV = CsvHelper;
namespa... | mit | C# |
3d72c8fa7bdb9b7c0715cb5d389e471e33826f49 | Fix the TODO item in Ushelve so it can support multiple TFS remotes | modulexcite/git-tfs,timotei/git-tfs,steveandpeggyb/Public,spraints/git-tfs,jeremy-sylvis-tmg/git-tfs,NathanLBCooper/git-tfs,bleissem/git-tfs,allansson/git-tfs,allansson/git-tfs,hazzik/git-tfs,hazzik/git-tfs,bleissem/git-tfs,adbre/git-tfs,vzabavnov/git-tfs,NathanLBCooper/git-tfs,hazzik/git-tfs,guyboltonking/git-tfs,guyb... | GitTfs/Commands/Unshelve.cs | GitTfs/Commands/Unshelve.cs | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text.RegularExpressions;
using CommandLine.OptParse;
using Sep.Git.Tfs.Core;
using StructureMap;
namespace Sep.Git.Tfs.Commands
{
[Pluggable("unshelve")]
... | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using CommandLine.OptParse;
using Sep.Git.Tfs.Core;
using Sep.Git.Tfs.Core.TfsInterop;
using StructureMap;
namespace Sep.Git.Tfs.Commands
{
[Pluggable("unshelve")]
[Description("unshelve [options] (-l | shelveset-n... | apache-2.0 | C# |
3bfa30cfc516226767818f014ff4e06690b1e21f | remove this and unised usings | mika-f/Sagitta | Source/Sagitta/Handlers/OAuth2HttpClientHandler.cs | Source/Sagitta/Handlers/OAuth2HttpClientHandler.cs | using System.Net.Http;
using System.Net.Http.Headers;
using System.Threading;
using System.Threading.Tasks;
namespace Sagitta.Handlers
{
internal class OAuth2HttpClientHandler : HttpClientHandler
{
private readonly PixivClient _client;
public OAuth2HttpClientHandler(PixivClient client)
... | using System;
using System.Collections.Generic;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace Sagitta.Handlers
{
internal class OAuth2HttpClientHandler : HttpClientHandler
{
private readonly PixivClient _client;... | mit | C# |
ee589b57b5c7d18e24b00c5bdd962cda626d2dc0 | Add AsEnumerable() extension method to ListItemCollection | roman-yagodin/R7.University,roman-yagodin/R7.University,roman-yagodin/R7.University | R7.University/ControlExtensions/ListControlExtensions.cs | R7.University/ControlExtensions/ListControlExtensions.cs | //
// ListControlExtensions.cs
//
// Author:
// Roman M. Yagodin <roman.yagodin@gmail.com>
//
// Copyright (c) 2016-2017 Roman M. Yagodin
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Soft... | //
// ListControlExtensions.cs
//
// Author:
// Roman M. Yagodin <roman.yagodin@gmail.com>
//
// Copyright (c) 2016 Roman M. Yagodin
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software ... | agpl-3.0 | C# |
dbd864ac89c57ce10b7bf261ca7901ea74322160 | Fix filename in url source | plainerman/TicTacTube | TicTacTubeCore/Sources/Files/External/UrlSource.cs | TicTacTubeCore/Sources/Files/External/UrlSource.cs | using System;
using System.IO;
using System.Net;
using System.Net.Mime;
namespace TicTacTubeCore.Sources.Files.External
{
/// <summary>
/// An external source that fetches from an http url.
/// </summary>
public class UrlSource : BaseExternalFileSource
{
/// <summary>
/// The url from which the file ... | using System;
using System.IO;
using System.Net;
using System.Net.Mime;
namespace TicTacTubeCore.Sources.Files.External
{
/// <summary>
/// An external source that fetches from an http url.
/// </summary>
public class UrlSource : BaseExternalFileSource
{
/// <summary>
/// The url from which the file ... | mit | C# |
dac733cced62e30089f52fa6147f5210197b3e20 | Fix field name and accessibility | smoogipoo/osu,ppy/osu,peppy/osu,NeoAdonis/osu,smoogipoo/osu,ppy/osu,peppy/osu,UselessToucan/osu,UselessToucan/osu,peppy/osu-new,smoogipoo/osu,NeoAdonis/osu,NeoAdonis/osu,ppy/osu,peppy/osu,smoogipooo/osu,UselessToucan/osu | osu.Game.Rulesets.Osu/Edit/OsuChecker.cs | osu.Game.Rulesets.Osu/Edit/OsuChecker.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Collections.Generic;
using System.Linq;
using osu.Game.Beatmaps;
using osu.Game.Rulesets.Edit;
using osu.Game.Rulesets.Edit.Checks.Components;
using osu.Game... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Collections.Generic;
using System.Linq;
using osu.Game.Beatmaps;
using osu.Game.Rulesets.Edit;
using osu.Game.Rulesets.Edit.Checks.Components;
using osu.Game... | mit | C# |
28f3b4993a21dc2f54b1af19ac7d2264632704eb | Update TableName.cs | tamasflamich/effort | Main/Source/Effort.Shared/Internal/DbManagement/Schema/TableName.cs | Main/Source/Effort.Shared/Internal/DbManagement/Schema/TableName.cs | // --------------------------------------------------------------------------------------------
// <copyright file="TableName.cs" company="Effort Team">
// Copyright (C) Effort Team
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documen... | // --------------------------------------------------------------------------------------------
// <copyright file="TableName.cs" company="Effort Team">
// Copyright (C) Effort Team
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documen... | mit | C# |
d0bd83f0207a734011a050402c7d2debd0f8ecac | Fix source dir path (doesn't like "./") | Redth/Cake.FileHelpers,Redth/Cake.FileHelpers | setup.cake | setup.cake | #load nuget:https://www.myget.org/F/cake-contrib/api/v2?package=Cake.Recipe&prerelease
Environment.SetVariableNames();
BuildParameters.SetParameters(context: Context,
buildSystem: BuildSystem,
sourceDirectoryPath: Context.Environment.WorkingDirectory,
... | #load nuget:https://www.myget.org/F/cake-contrib/api/v2?package=Cake.Recipe&prerelease
Environment.SetVariableNames();
BuildParameters.SetParameters(context: Context,
buildSystem: BuildSystem,
sourceDirectoryPath: "./",
title: "Cake.F... | apache-2.0 | C# |
92f212f07b0d00f1d96e6aa6b5cf968270b8ab90 | Fix bug with reassigning the variable. | sys27/xFunc | xFunc.Library.Maths/Expressions/AssignMathExpression.cs | xFunc.Library.Maths/Expressions/AssignMathExpression.cs | using System;
namespace xFunc.Library.Maths.Expressions
{
public class AssignMathExpression : IMathExpression
{
private VariableMathExpression variable;
private IMathExpression value;
public AssignMathExpression()
: this(null, null)
{
}
public A... | using System;
namespace xFunc.Library.Maths.Expressions
{
public class AssignMathExpression : IMathExpression
{
private VariableMathExpression variable;
private IMathExpression value;
public AssignMathExpression()
: this(null, null)
{
}
public A... | mit | C# |
2e4bde0db6637f4c4396d6a006af44789910405b | Revert "Add Id to Item." | wangjun/windows-app,wangjun/windows-app | wallabag/wallabag.Shared/Models/Item.cs | wallabag/wallabag.Shared/Models/Item.cs | using System;
using SQLite;
namespace wallabag.Models
{
[Table("Items")]
public class Item
{
public string Title { get; set; }
public string Content { get; set; }
public Uri Url { get; set; }
public bool IsRead { get; set; }
public bool IsFavourite { get; set; }
... | using System;
namespace wallabag.Models
{
public class Item
{
public string Id { get; set; }
public string Title { get; set; }
public string Content { get; set; }
public Uri Url { get; set; }
public bool IsRead { get; set; }
public bool IsFavourite { get; set; ... | mit | C# |
0bccd737d3c13bce2ee7f5253fd836650b66f15c | Remove project site link | bradyholt/cron-expression-descriptor,sadedil/cron-expression-descriptor,bradyholt/cron-expression-descriptor,sadedil/cron-expression-descriptor | CronExpressionDescriptor.Demo/Views/Default/Index.cshtml | CronExpressionDescriptor.Demo/Views/Default/Index.cshtml | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Cron Expression Descriptor</title>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel='stylesheet' type='text/css' />
<link... | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Cron Expression Descriptor</title>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel='stylesheet' type='text/css' />
<link... | mit | C# |
c93dd204330e6fc2dbfba94e2499281f2a6bc8d5 | Update CustomKeySequence.cs | willrawls/xlg,willrawls/xlg | WPMT2/Custom/CustomKeySequence.cs | WPMT2/Custom/CustomKeySequence.cs | using System;
using System.Collections.Generic;
using System.Drawing;
using MetX.Standard.Library.Extensions;
using NHotPhrase.Keyboard;
using NHotPhrase.Phrase;
using WilliamPersonalMultiTool.Acting;
namespace WilliamPersonalMultiTool.Custom
{
public class CustomKeySequence : KeySequence
{
public sta... | using System;
using System.Collections.Generic;
using System.Drawing;
using MetX.Standard.Library.Extensions;
using NHotPhrase.Keyboard;
using NHotPhrase.Phrase;
using WilliamPersonalMultiTool.Acting;
namespace WilliamPersonalMultiTool.Custom
{
public class CustomKeySequence : KeySequence
{
public sta... | mit | C# |
66744f36cfcbab4f8ee5c06b5846b2167ca3f6f2 | Remove test code | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet | WalletWasabi/Helpers/Constants.cs | WalletWasabi/Helpers/Constants.cs | using NBitcoin;
using NBitcoin.Protocol;
using System;
using WalletWasabi.Backend.Models.Responses;
namespace WalletWasabi.Helpers
{
public static class Constants
{
public static readonly Version ClientVersion = new Version(1, 1, 5);
public const string BackendMajorVersion = "3";
public static readonly Version... | using NBitcoin;
using NBitcoin.Protocol;
using System;
using WalletWasabi.Backend.Models.Responses;
namespace WalletWasabi.Helpers
{
public static class Constants
{
public static readonly Version ClientVersion = new Version(1, 0, 5);
public const string BackendMajorVersion = "3";
public static readonly Version... | mit | C# |
262a4bac529a3e212282eec6428cb39de74fd8c2 | Use fullname for sure that it will not duplicate with other | insthync/LiteNetLibManager,insthync/LiteNetLibManager | Scripts/Utils/Reflection.cs | Scripts/Utils/Reflection.cs | using System;
using System.Collections.Generic;
using System.Linq.Expressions;
namespace LiteNetLibManager.Utils
{
public class Reflection
{
private static readonly Dictionary<string, ObjectActivator> objectActivators = new Dictionary<string, ObjectActivator>();
private static string tempTypeN... | using System;
using System.Collections.Generic;
using System.Linq.Expressions;
namespace LiteNetLibManager.Utils
{
public class Reflection
{
private static readonly Dictionary<string, ObjectActivator> objectActivators = new Dictionary<string, ObjectActivator>();
private static string tempTypeN... | mit | C# |
ed1d0bea997d3514b3da69343a6715c3465f5398 | Update ServiceResponse.cs | dtrammer/AxisActionEventLib | AxisActionEventLib/types/ServiceResponse.cs | AxisActionEventLib/types/ServiceResponse.cs | using ActionEventLib.action;
using ActionEventLib.events;
using ActionEventLib.templates;
using AxisActionEventLib.events;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Linq;
namespace ActionEventLib.t... | using ActionEventLib.action;
using ActionEventLib.events;
using ActionEventLib.templates;
using AxisActionEventLib.events;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Linq;
namespace ActionEventLib.t... | mit | C# |
86b6e0e302102774d7810bb46baa3afa96655e4b | Add other mocking libs in dependency contraints | adamchester/AutoFixture,sergeyshushlyapin/AutoFixture,adamchester/AutoFixture,dcastro/AutoFixture,sbrockway/AutoFixture,hackle/AutoFixture,AutoFixture/AutoFixture,dcastro/AutoFixture,sbrockway/AutoFixture,Pvlerick/AutoFixture,zvirja/AutoFixture,sergeyshushlyapin/AutoFixture,hackle/AutoFixture,sean-gilliam/AutoFixture | Src/AutoFixture.NUnit3.UnitTest/DependencyConstraints.cs | Src/AutoFixture.NUnit3.UnitTest/DependencyConstraints.cs | using System.Linq;
using NUnit.Framework;
namespace Ploeh.AutoFixture.NUnit3.UnitTest
{
[TestFixture]
public class DependencyConstraints
{
[TestCase("FakeItEasy")]
[TestCase("Foq")]
[TestCase("FsCheck")]
[TestCase("Moq")]
[TestCase("NSubstitute")]
[TestCase(... | using System.Linq;
using NUnit.Framework;
namespace Ploeh.AutoFixture.NUnit3.UnitTest
{
[TestFixture]
public class DependencyConstraints
{
[TestCase("Moq")]
[TestCase("Rhino.Mocks")]
public void AutoFixtureNUnit3DoesNotReference(string assemblyName)
{
// Fixture... | mit | C# |
529d340d541569a1371491e4fea2900c7fc0d64b | Fix for #435 | brunck/crisischeckin,mjmilan/crisischeckin,HTBox/crisischeckin,pottereric/crisischeckin,jsucupira/crisischeckin,HTBox/crisischeckin,brunck/crisischeckin,andrewhart098/crisischeckin,mjmilan/crisischeckin,jsucupira/crisischeckin,pottereric/crisischeckin,mjmilan/crisischeckin,lloydfaulkner/crisischeckin,HTBox/crisischecki... | crisischeckin/crisicheckinweb/Views/Account/Login.cshtml | crisischeckin/crisicheckinweb/Views/Account/Login.cshtml | @model crisicheckinweb.ViewModels.LoginModel
@{
ViewBag.Title = "Log in to existing account...";
Layout = "/Views/Shared/_VolunteerLayout.cshtml";
}
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
<h3>Log In</h3>
@using (Html.BeginForm(new { ReturnUrl = ViewBag.ReturnUrl }))
{
@Html.... | @model crisicheckinweb.ViewModels.LoginModel
@{
ViewBag.Title = "Log in to existing account...";
Layout = "/Views/Shared/_VolunteerLayout.cshtml";
}
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
<h3>Log In</h3>
@using (Html.BeginForm(new { ReturnUrl = ViewBag.ReturnUrl }))
{
@Html.... | apache-2.0 | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.