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
67f6d8231b9b36d8c40ece543fc5c94a65fd3af4
Stockfighter/Venue.cs
Stockfighter/Venue.cs
using System.Threading.Tasks; using Stockfighter.Helpers; namespace Stockfighter { public class Venue { public string Symbol { get; private set; } public Venue(string symbol) { Symbol = symbol; } public async Task<bool> IsUp() { using (...
using System.Threading.Tasks; using Stockfighter.Helpers; namespace Stockfighter { public class Venue { public string Symbol { get; private set; } public Venue(string symbol) { Symbol = symbol; } public async Task<bool> IsUp() { using (...
Fix GetStocks by reading the response in the proper format.
Fix GetStocks by reading the response in the proper format.
C#
mit
leddt/Stockfighter
6586c921f0ca944865f0fe74976a72ac9fa56158
build/tasks/ProjectModel/ProjectInfo.cs
build/tasks/ProjectModel/ProjectInfo.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.Collections.Generic; using System.IO; namespace RepoTasks.ProjectModel { internal class ProjectInfo { public...
// 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.Collections.Generic; using System.IO; namespace RepoTasks.ProjectModel { internal class ProjectInfo { public...
Fix compiler error introduced by merge conflict
Fix compiler error introduced by merge conflict
C#
apache-2.0
aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore
eb31c8a785d5522519d9bbf5d8043bcf6469a24d
test/Geocoding.Tests/GoogleAsyncGeocoderTest.cs
test/Geocoding.Tests/GoogleAsyncGeocoderTest.cs
using System; using System.Linq; using System.Threading.Tasks; using Geocoding.Google; using Xunit; namespace Geocoding.Tests { [Collection("Settings")] public class GoogleAsyncGeocoderTest : AsyncGeocoderTest { readonly SettingsFixture settings; GoogleGeocoder geoCoder; public GoogleAsyncGeocoderTest(Setti...
using System; using System.Linq; using System.Threading.Tasks; using Geocoding.Google; using Xunit; namespace Geocoding.Tests { [Collection("Settings")] public class GoogleAsyncGeocoderTest : AsyncGeocoderTest { GoogleGeocoder geoCoder; protected override IGeocoder CreateAsyncGeocoder() { string apiKey =...
Fix issue with tests where settings were not being injected into test class and causing a null error at runtime. Now uses parent settings class. Also changed one expected test return type to reflect change in Google data.
Fix issue with tests where settings were not being injected into test class and causing a null error at runtime. Now uses parent settings class. Also changed one expected test return type to reflect change in Google data.
C#
mit
chadly/Geocoding.net
78598bed11e5dbadbf08d358a3d0945530fd8b66
source/NuGet.Lucene.Web/UnhandledExceptionLogger.cs
source/NuGet.Lucene.Web/UnhandledExceptionLogger.cs
using System; using System.Threading.Tasks; using System.Web; using System.Web.UI; using Common.Logging; namespace NuGet.Lucene.Web { public static class UnhandledExceptionLogger { internal static readonly ILog Log = LogManager.GetLogger(typeof(UnhandledExceptionLogger)); public static void L...
using System; using System.Threading.Tasks; using System.Web; using System.Web.UI; using Common.Logging; namespace NuGet.Lucene.Web { public static class UnhandledExceptionLogger { internal static readonly ILog Log = LogManager.GetLogger(typeof(UnhandledExceptionLogger)); public static void L...
Use FormatMessageHandler instead of eagerly formatting.
Use FormatMessageHandler instead of eagerly formatting.
C#
apache-2.0
Stift/NuGet.Lucene,googol/NuGet.Lucene,themotleyfool/NuGet.Lucene
276943f4ab9d5b62cab3f81f6bdac5513f30a288
src/Glimpse.Common/Broker/DefaultMessageConverter.cs
src/Glimpse.Common/Broker/DefaultMessageConverter.cs
using Newtonsoft.Json; using System; using System.Globalization; using System.IO; using System.Text; namespace Glimpse { public class DefaultMessageConverter : IMessageConverter { private readonly JsonSerializer _jsonSerializer; public DefaultMessageConverter(JsonSerializer jsonSerializer) ...
using Newtonsoft.Json; using System; using System.Globalization; using System.IO; using System.Text; namespace Glimpse { public class DefaultMessageConverter : IMessageConverter { private readonly JsonSerializer _jsonSerializer; private readonly IServiceProvider _serviceProvider; publ...
Update message converter to access context
Update message converter to access context
C#
mit
zanetdev/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,zanetdev/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,pranavkm/Glimpse.Prototype,pranavkm/Glimpse.Prototype,pranavkm/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,mike-kaufman/Glimpse.P...
f75740f07ac32452ffac39f468ab1c51ae4c63b3
DesktopWidgets/Classes/ProcessFile.cs
DesktopWidgets/Classes/ProcessFile.cs
using System.ComponentModel; using System.Diagnostics; using Xceed.Wpf.Toolkit.PropertyGrid.Attributes; namespace DesktopWidgets.Classes { [ExpandableObject] [DisplayName("Process File")] public class ProcessFile : FilePath { public ProcessFile(string path) : base(path) { P...
using System.ComponentModel; using System.Diagnostics; using Xceed.Wpf.Toolkit.PropertyGrid.Attributes; namespace DesktopWidgets.Classes { [ExpandableObject] [DisplayName("Process File")] public class ProcessFile : FilePath { public ProcessFile(string path) : base(path) { P...
Add ToString override to Process File
Add ToString override to Process File Returns path and argument
C#
apache-2.0
danielchalmers/DesktopWidgets
790b1361d5895719ab471d273f3e999aa8d09142
Assets/AdjustImei/Unity/AdjustImei.cs
Assets/AdjustImei/Unity/AdjustImei.cs
using System; using UnityEngine; namespace com.adjust.sdk.imei { public class AdjustImei : MonoBehaviour { private const string errorMsgEditor = "[AdjustImei]: Adjust IMEI plugin can not be used in Editor."; private const string errorMsgPlatform = "[AdjustImei]: Adjust IMEI plugin can only be u...
using System; using UnityEngine; namespace com.adjust.sdk.imei { public class AdjustImei : MonoBehaviour { private const string errorMsgEditor = "[AdjustImei]: Adjust IMEI plugin can not be used in Editor."; private const string errorMsgPlatform = "[AdjustImei]: Adjust IMEI plugin can only be u...
Add Start Manually option to IMEI prefab
Add Start Manually option to IMEI prefab
C#
mit
adjust/unity_sdk,adjust/unity_sdk,adjust/unity_sdk
8d0550d6f602d16e016b609879bcafbae53ddfe6
FSM/Event/OnTrigger2D.cs
FSM/Event/OnTrigger2D.cs
using UnityEngine; namespace Devdayo { [DisallowMultipleComponent] public class TriggerEnter2D : FsmEvent<Collider2D> { void OnTrigger2DEnter(Collider2D other) { Notify(other); } } [DisallowMultipleComponent] public class TriggerStay2D : FsmEvent<Collider2D...
using UnityEngine; namespace Devdayo { [DisallowMultipleComponent] public class TriggerEnter2D : FsmEvent<Collider2D> { void OnTriggerEnter2D(Collider2D other) { Notify(other); } } [DisallowMultipleComponent] public class TriggerStay2D : FsmEvent<Collider2D...
Fix Trigger2D wrong method names
Fix Trigger2D wrong method names
C#
mit
wirunekaewjai/unity-fsm
6d1ef689ae5dc9a3edfb6713c49208adf7a046a7
source/XSharp/Tokens/Variable.cs
source/XSharp/Tokens/Variable.cs
namespace XSharp.Tokens { public class Variable : Identifier { public Variable() { mFirstChars = "."; } protected override bool CheckChar(int aLocalPos, char aChar) { // The name of the variable must start with a alphabet if (aLoca...
namespace XSharp.Tokens { public class Variable : Identifier { public Variable() { mFirstChars = "."; } protected override bool CheckChar(int aLocalPos, char aChar) { // The name of the variable must start with a alphabet if (aLoca...
Change VarAddr to use identifier
Change VarAddr to use identifier
C#
bsd-3-clause
CosmosOS/XSharp,CosmosOS/XSharp,CosmosOS/XSharp
0ee782e8f4fb78ed743cad90fe2105194cfe7fca
CefSharp/IRequest.cs
CefSharp/IRequest.cs
// Copyright © 2010-2015 The CefSharp Authors. All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. using System.Collections.Specialized; namespace CefSharp { public interface IRequest { string Url { get; set; } string Me...
// Copyright © 2010-2015 The CefSharp Authors. All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. using System; using System.Collections.Specialized; namespace CefSharp { public interface IRequest : IDisposable { string Url { g...
Make this interface disposable so taht code analysis should hopefully remind users to call .Dispose on it.
Make this interface disposable so taht code analysis should hopefully remind users to call .Dispose on it.
C#
bsd-3-clause
Haraguroicha/CefSharp,zhangjingpu/CefSharp,dga711/CefSharp,AJDev77/CefSharp,VioletLife/CefSharp,VioletLife/CefSharp,gregmartinhtc/CefSharp,battewr/CefSharp,illfang/CefSharp,wangzheng888520/CefSharp,VioletLife/CefSharp,twxstar/CefSharp,NumbersInternational/CefSharp,haozhouxu/CefSharp,twxstar/CefSharp,twxstar/CefSharp,Li...
b2dcda7b5ddfbd10fdfa9112ccd478c209defe05
src/CommitmentsV2/SFA.DAS.CommitmentsV2.Api/Controllers/LearnerController.cs
src/CommitmentsV2/SFA.DAS.CommitmentsV2.Api/Controllers/LearnerController.cs
using System; using System.Net; using System.Threading.Tasks; using MediatR; using Microsoft.AspNetCore.Mvc; using Newtonsoft.Json; using SFA.DAS.CommitmentsV2.Api.Types.Responses; using SFA.DAS.CommitmentsV2.Application.Queries.GetAllLearners; namespace SFA.DAS.CommitmentsV2.Api.Controllers { [ApiController] ...
using MediatR; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Newtonsoft.Json; using SFA.DAS.CommitmentsV2.Api.Types.Responses; using SFA.DAS.CommitmentsV2.Application.Queries.GetAllLearners; using System; using System.Net; using System.Threading.Tasks; namespace SFA.DAS.CommitmentsV2...
Add auth to Learners endpoint
Add auth to Learners endpoint
C#
mit
SkillsFundingAgency/das-commitments,SkillsFundingAgency/das-commitments,SkillsFundingAgency/das-commitments
d2a5b00748e599a465c42dea7dd2f700c7f3f08d
Andromeda/Andromeda/CredentialManager.cs
Andromeda/Andromeda/CredentialManager.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Andromeda { public static class CredentialManager { public static string GetUser() { return "null"; } public static string GetPass() ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.DirectoryServices.AccountManagement; namespace Andromeda { public static class CredentialManager { public static string UserName { get; set; } public static string GetDomain() { ...
Check for AD credentials, check if local account
Check for AD credentials, check if local account
C#
agpl-3.0
ZXeno/Andromeda
24176ba1024f103b89c84ba1c0aca8823647a3c9
ForwarderConsole/Print.cs
ForwarderConsole/Print.cs
namespace ForwarderConsole { using System; using System.Text; public static class Print { public static void Error(string error) { InternalPrint("--- ERROR --", error, ConsoleColor.Red); } public static void Request(byte[] bytes) { strin...
namespace ForwarderConsole { using System; using System.Text; public static class Print { public static void Error(string error) { InternalPrint("--- ERROR --", error, ConsoleColor.Red); } public static void Request(byte[] bytes) { strin...
Replace the BELL character before writing to the console.
Replace the BELL character before writing to the console.
C#
mit
gnieuwhof/httpforwarder
265913be662436886380735bf87ae4923212dc61
consoleApp/Program.cs
consoleApp/Program.cs
using System; namespace ConsoleApplication { public class Program { public static void Main(string[] args) { Console.WriteLine("Hello World, I was created by my father, Bigsby, in an unidentified evironment!"); Console.WriteLine("Bigsby Gates was here!"); } ...
using System; namespace ConsoleApplication { public class Program { public static void Main(string[] args) { Console.WriteLine("Hello World, I was created by my father, Bigsby, in an unidentified evironment!"); Console.WriteLine("Bigsby Gates was here!"); Co...
Add Bigsby Trovalds was here
Add Bigsby Trovalds was here
C#
apache-2.0
Bigsby/NetCore,Bigsby/NetCore,Bigsby/NetCore
aea7263ffad571df4684057b565969755c7febb1
CloudNotes.DesktopClient/Directories.cs
CloudNotes.DesktopClient/Directories.cs
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net.Mime; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace CloudNotes.DesktopClient { public static class Directories { private const string CloudNotesDataFolder = "Cl...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net.Mime; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace CloudNotes.DesktopClient { public static class Directories { private const string CloudNotesDataFolder = "Cl...
Use the AppData instead of the CommonAppData folder to save the profile and settings, to avoid the UAC.
Use the AppData instead of the CommonAppData folder to save the profile and settings, to avoid the UAC.
C#
apache-2.0
vebin/CloudNotes,vebin/CloudNotes,daxnet/CloudNotes,daxnet/CloudNotes,daxnet/CloudNotes,vebin/CloudNotes
ef28ff53b928aff0088edca811f35cb7b231e383
BrowserControl.xaml.cs
BrowserControl.xaml.cs
using CefSharp.Wpf; using System.Windows.Controls; namespace Cactbot { public partial class BrowserControl : UserControl { public BrowserControl() { DataContext = this; InitializeComponent(); CreationHandlers = delegate {}; } public delegate...
using CefSharp.Wpf; using System.Windows.Controls; namespace Cactbot { public partial class BrowserControl : UserControl { public BrowserControl() { DataContext = this; InitializeComponent(); CreationHandlers = delegate {}; } public delegate...
Clean up old BoundObject code
Clean up old BoundObject code
C#
apache-2.0
quisquous/cactbot,quisquous/cactbot,quisquous/cactbot,sqt/cactbot,quisquous/cactbot,sqt/cactbot,quisquous/cactbot,sqt/cactbot,quisquous/cactbot,sqt/cactbot,sqt/cactbot
aacd65078c3d6d54fdf030d0955c7f29bcdf7473
CSharp/Core/Individual/IndividualDB.cs
CSharp/Core/Individual/IndividualDB.cs
using System; namespace Business.Core { public partial class Individual { public IDatabase Database { get; private set; } public Individual(IDatabase database, UInt64? id = null) { Database = database; if(id != null) Load((UInt64)id); } private void Load(UInt64 id) { // Overwrite this object w...
using System; namespace Business.Core { public partial class Individual { public IDatabase Database { get; private set; } public Individual(IDatabase database, UInt64? id = null) { Database = database; if(id != null) Load((UInt64)id); } private void Load(UInt64 id) { // Overwrite this object w...
Use Id instead of fixed value
Use Id instead of fixed value
C#
mit
jazd/Business,jazd/Business,jazd/Business
2f8f06e1fc6923aa51c959ef4659c97ae91093ba
src/Client/Core/UserInterface/ViewUserControl.cs
src/Client/Core/UserInterface/ViewUserControl.cs
// ViewUserControl.cs // Copyright (c) Nikhil Kothari, 2008. All Rights Reserved. // http://www.nikhilk.net // // Silverlight.FX is an application framework for building RIAs with Silverlight. // This project is licensed under the BSD license. See the accompanying License.txt // file for more information. // For updat...
// ViewUserControl.cs // Copyright (c) Nikhil Kothari, 2008. All Rights Reserved. // http://www.nikhilk.net // // Silverlight.FX is an application framework for building RIAs with Silverlight. // This project is licensed under the BSD license. See the accompanying License.txt // file for more information. // For updat...
Fix ctor to take arbitrary object type as model.
Fix ctor to take arbitrary object type as model.
C#
bsd-3-clause
nikhilk/silverlightfx
1c0d76561dffcce5ec2b60ec4aaa753e097673a9
Nowin/IpIsLocalChecker.cs
Nowin/IpIsLocalChecker.cs
using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Sockets; namespace Nowin { public class IpIsLocalChecker : IIpIsLocalChecker { readonly Dictionary<IPAddress, bool> _dict; public IpIsLocalChecker() { var host = Dns.GetHostEntry(Dns.Get...
using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Sockets; namespace Nowin { public class IpIsLocalChecker : IIpIsLocalChecker { readonly Dictionary<IPAddress, bool> _dict; public IpIsLocalChecker() { var host = Dns.GetHostEntry(Dns.Get...
Remove duplicate addresses before converting to dictionary
Remove duplicate addresses before converting to dictionary
C#
mit
et1975/Nowin,pysco68/Nowin,et1975/Nowin,modulexcite/Nowin,modulexcite/Nowin,Bobris/Nowin,lstefano71/Nowin,Bobris/Nowin,pysco68/Nowin,pysco68/Nowin,lstefano71/Nowin,et1975/Nowin,lstefano71/Nowin,modulexcite/Nowin,Bobris/Nowin
1d310ad42a676b2cb6383684a9a303bfa7c84cda
WebAPI.API/ModelBindings/SearchOptionsModelBinding.cs
WebAPI.API/ModelBindings/SearchOptionsModelBinding.cs
using System; using System.Net.Http; using System.Web.Http.Controllers; using System.Web.Http.ModelBinding; using WebAPI.Domain.InputOptions; namespace WebAPI.API.ModelBindings { public class SearchOptionsModelBinding : IModelBinder { public bool BindModel(HttpActionContext actionContext, ModelBinding...
using System; using System.Net.Http; using System.Web.Http.Controllers; using System.Web.Http.ModelBinding; using WebAPI.Domain.InputOptions; namespace WebAPI.API.ModelBindings { public class SearchOptionsModelBinding : IModelBinder { public bool BindModel(HttpActionContext actionContext, ModelBinding...
Change default attributeStyle to lower for search
Change default attributeStyle to lower for search
C#
mit
agrc/api.mapserv.utah.gov,agrc/api.mapserv.utah.gov,agrc/api.mapserv.utah.gov,agrc/api.mapserv.utah.gov
e48c8ad0c07f14bd96cb755be61a29c9e301f3b3
src/Pfim.Benchmarks/TargaBenchmark.cs
src/Pfim.Benchmarks/TargaBenchmark.cs
using System.IO; using BenchmarkDotNet.Attributes; using FreeImageAPI; using ImageMagick; using DS = DevILSharp; namespace Pfim.Benchmarks { public class TargaBenchmark { [Params("true-32-rle-large.tga", "true-24-large.tga", "true-24.tga", "true-32-rle.tga", "rgb24_top_left")] public string Pa...
using System.IO; using BenchmarkDotNet.Attributes; using FreeImageAPI; using ImageMagick; using DS = DevILSharp; namespace Pfim.Benchmarks { public class TargaBenchmark { [Params("true-32-rle-large.tga", "true-24-large.tga", "true-24.tga", "true-32-rle.tga", "rgb24_top_left.tga")] public strin...
Fix incorrect file path in benchmarks
Fix incorrect file path in benchmarks
C#
mit
nickbabcock/Pfim,nickbabcock/Pfim
4071dd3e9d2fa97c94ebbf56be9dd0618e0b6193
src/Money.UI.Blazor/Pages/About.cshtml
src/Money.UI.Blazor/Pages/About.cshtml
@page "/about" @inject Navigator Navigator <h1>Money</h1> <h4>Neptuo</h4> <p class="gray"> v@(typeof(About).Assembly.GetName().Version.ToString(3)) </p> <p> <a target="_blank" href="@Navigator.UrlMoneyProject()">Documentation</a> </p> <p> <a target="_blank" href="@Navigator.UrlMoneyProjectIssueNew()">Repo...
@page "/about" @inject Navigator Navigator <Title Main="Money" Sub="Nepuo" /> <p class="gray"> v@(typeof(About).Assembly.GetName().Version.ToString(3)) </p> <p> <a target="_blank" href="@Navigator.UrlMoneyProject()">Documentation</a> </p> <p> <a target="_blank" href="@Navigator.UrlMoneyProjectIssueNew()"...
Use <Title in about page.
Use <Title in about page.
C#
apache-2.0
maraf/Money,maraf/Money,maraf/Money
d7e2048b9bcfb51d3de2e4d97840577cc8c75396
JabbR/Middleware/RequireHttpsHandler.cs
JabbR/Middleware/RequireHttpsHandler.cs
using System; using System.Collections.Generic; using System.Threading.Tasks; using Microsoft.AspNet.SignalR.Owin; namespace JabbR.Middleware { using AppFunc = Func<IDictionary<string, object>, Task>; public class RequireHttpsHandler { private readonly AppFunc _next; public RequireHttps...
using System; using System.Collections.Generic; using System.Threading.Tasks; using Microsoft.AspNet.SignalR.Owin; namespace JabbR.Middleware { using AppFunc = Func<IDictionary<string, object>, Task>; public class RequireHttpsHandler { private readonly AppFunc _next; public RequireHttps...
Set port to -1 if port is 80
Set port to -1 if port is 80
C#
mit
timgranstrom/JabbR,JabbR/JabbR,timgranstrom/JabbR,LookLikeAPro/JabbR,CrankyTRex/JabbRMirror,e10/JabbR,M-Zuber/JabbR,yadyn/JabbR,lukehoban/JabbR,SonOfSam/JabbR,fuzeman/vox,lukehoban/JabbR,AAPT/jean0226case1322,18098924759/JabbR,LookLikeAPro/JabbR,meebey/JabbR,mzdv/JabbR,CrankyTRex/JabbRMirror,e10/JabbR,borisyankov/JabbR...
36abe386a1d6d9d36fc62d9e5d938fe96cd824e5
Mapsui/Extensions/ViewportExtensions.cs
Mapsui/Extensions/ViewportExtensions.cs
using Mapsui.Utilities; using System; using System.Collections.Generic; using System.Text; namespace Mapsui.Extensions { public static class ViewportExtensions { /// <summary> /// True if Width and Height are not zero /// </summary> public static bool HasSize(this IReadOnlyView...
using Mapsui.Utilities; using System; using System.Collections.Generic; using System.Text; namespace Mapsui.Extensions { public static class ViewportExtensions { /// <summary> /// True if Width and Height are not zero /// </summary> public static bool HasSize(this IReadOnlyView...
Add GetExtent to viewport extensions
Add GetExtent to viewport extensions
C#
mit
charlenni/Mapsui,charlenni/Mapsui
e66a15e653b7cfa8214ec77d222cb2d82de89e94
MitternachtWeb/Models/PagePermission.cs
MitternachtWeb/Models/PagePermission.cs
using Discord; using System; namespace MitternachtWeb.Models { [Flags] public enum BotLevelPermission { None = 0b_0000, ReadBotConfig = 0b_0001, WriteBotConfig = 0b_0011, ReadAllGuildConfigs = 0b_0100, WriteAllGuildConfigs = 0b_1100, All = 0b_1111, } [Fl...
using Discord; using System; namespace MitternachtWeb.Models { [Flags] public enum BotLevelPermission { None = 0b_0000, ReadBotConfig = 0b_0001, WriteBotConfig = 0b_0011, ReadAllGuildConfigs = 0b_0100, WriteAllGuildConfigs = 0b_1100, All = 0b_1111, } [Fl...
Change guild permissions to have ReadGuildConfig when ViewAuditLog is true.
Change guild permissions to have ReadGuildConfig when ViewAuditLog is true.
C#
mit
Midnight-Myth/Mitternacht-NEW,Midnight-Myth/Mitternacht-NEW,Midnight-Myth/Mitternacht-NEW,Midnight-Myth/Mitternacht-NEW
ec9a25234316acfc98bafef12d42880e8c48f4af
src/ProjectEuler/Puzzles/Puzzle010.cs
src/ProjectEuler/Puzzles/Puzzle010.cs
// Copyright (c) Martin Costello, 2015. All rights reserved. // Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information. namespace MartinCostello.ProjectEuler.Puzzles { using System; using System.Linq; /// <summary> /// A class representing the sol...
// Copyright (c) Martin Costello, 2015. All rights reserved. // Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information. namespace MartinCostello.ProjectEuler.Puzzles { using System; using System.Linq; /// <summary> /// A class representing the sol...
Use ParallelEnumerable in puzzle 10
Use ParallelEnumerable in puzzle 10 Use ParallelEnumerable.Range() instead of Enumerable.Range() and AsParallel().
C#
apache-2.0
martincostello/project-euler
ae89b81ba21e41fa7ff22788f5e8b72d2e095410
Compiler/Common/SourceDirectoryFinder.cs
Compiler/Common/SourceDirectoryFinder.cs
using CommonUtil.Disk; namespace Common { public static class SourceDirectoryFinder { private static string crayonSourceDirectoryCached = null; public static string CrayonSourceDirectory { // Presumably running from source. Walk up to the root directory and find th...
using CommonUtil.Disk; namespace Common { public static class SourceDirectoryFinder { private static string crayonSourceDirectoryCached = null; public static string CrayonSourceDirectory { // Presumably running from source. Walk up to the root directory and find th...
Remove unused variable compiler warning when building release build.
Remove unused variable compiler warning when building release build.
C#
mit
blakeohare/crayon,blakeohare/crayon,blakeohare/crayon,blakeohare/crayon,blakeohare/crayon,blakeohare/crayon,blakeohare/crayon,blakeohare/crayon
7c43f1719ef5afc084637bff65031ba883f29c5c
Stratis.Bitcoin/RPC/WebHostExtensions.cs
Stratis.Bitcoin/RPC/WebHostExtensions.cs
using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.DependencyInjection; using Stratis.Bitcoin.Miner; using Stratis.Bitcoin.RPC.ModelBinders; using Stratis.Bitcoin.Wallet; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Stratis.Bitcoin.RPC { pu...
using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.DependencyInjection; using Stratis.Bitcoin.Miner; using Stratis.Bitcoin.RPC.ModelBinders; using Stratis.Bitcoin.Wallet; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Stratis.Bitcoin.RPC { pu...
Remove manual DI configuration for node in RPC
Remove manual DI configuration for node in RPC DI for RPC now automatically adds full node DI to its DI container. This is done in RPCFeature on startup.
C#
mit
Aprogiena/StratisBitcoinFullNode,mikedennis/StratisBitcoinFullNode,quantumagi/StratisBitcoinFullNode,mikedennis/StratisBitcoinFullNode,bokobza/StratisBitcoinFullNode,bokobza/StratisBitcoinFullNode,Neurosploit/StratisBitcoinFullNode,quantumagi/StratisBitcoinFullNode,Aprogiena/StratisBitcoinFullNode,Aprogiena/StratisBitc...
f8f5162005ff6837e6504f6f5ac847e224f0dea1
SignInCheckIn/SignInCheckIn/Startup.cs
SignInCheckIn/SignInCheckIn/Startup.cs
using System; using Microsoft.AspNet.SignalR; using Microsoft.Owin; using Microsoft.Owin.Cors; using Owin; [assembly: OwinStartup(typeof(SignInCheckIn.Startup))] [assembly: log4net.Config.XmlConfigurator(ConfigFile = "log4net.config", Watch = true)] namespace SignInCheckIn { public class Startup { pub...
using System; using Microsoft.AspNet.SignalR; using Microsoft.Owin; using Microsoft.Owin.Cors; using Owin; [assembly: OwinStartup(typeof(SignInCheckIn.Startup))] [assembly: log4net.Config.XmlConfigurator(ConfigFile = "log4net.config", Watch = true)] namespace SignInCheckIn { public class Startup { pub...
Remove unhelpful line of code.
Remove unhelpful line of code.
C#
bsd-2-clause
crdschurch/crds-signin-checkin,crdschurch/crds-signin-checkin,crdschurch/crds-signin-checkin,crdschurch/crds-signin-checkin
555996b133cf1ebce62a70c771df5059957a0512
Battery-Commander.Web/Jobs/JobHandler.cs
Battery-Commander.Web/Jobs/JobHandler.cs
using FluentScheduler; using Microsoft.AspNetCore.Builder; using Microsoft.Extensions.Logging; using System; namespace BatteryCommander.Web.Jobs { internal static class JobHandler { public static void UseJobScheduler(this IApplicationBuilder app, ILoggerFactory loggerFactory) { var...
using FluentScheduler; using Microsoft.AspNetCore.Builder; using Microsoft.Extensions.Logging; using System; namespace BatteryCommander.Web.Jobs { internal static class JobHandler { public static void UseJobScheduler(this IApplicationBuilder app, ILoggerFactory loggerFactory) { var...
Remove test fire schedule for eval due
Remove test fire schedule for eval due
C#
mit
mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander
67b58f88331085602cb74c007f20dcd0c4d73e60
Source/AssemblyInfo.cs
Source/AssemblyInfo.cs
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="GlobalAssemblyInfo.cs" company="Helix Toolkit"> // Copyright (c) 2014 Helix Toolkit contributors // </copyright> // -------------------------------------------------------------...
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="GlobalAssemblyInfo.cs" company="Helix Toolkit"> // Copyright (c) 2014 Helix Toolkit contributors // </copyright> // -------------------------------------------------------------...
Update assembly info - copyright date
Update assembly info - copyright date
C#
mit
JeremyAnsel/helix-toolkit,holance/helix-toolkit,helix-toolkit/helix-toolkit,chrkon/helix-toolkit
ed49827cf329ae76ac5341772ae093ea5d00c6c2
src/Dangl.WebDocumentation/Views/_ViewImports.cshtml
src/Dangl.WebDocumentation/Views/_ViewImports.cshtml
@using Dangl.WebDocumentation @using Dangl.WebDocumentation.Models @using Dangl.WebDocumentation.ViewModels.Account @using Dangl.WebDocumentation.ViewModels.Manage @using Microsoft.AspNet.Identity @addTagHelper "*, Microsoft.AspNet.Mvc.TagHelpers" @inject Microsoft.ApplicationInsights.Extensibility.TelemetryConfigurat...
@using Dangl.WebDocumentation @using Dangl.WebDocumentation.Models @using Dangl.WebDocumentation.ViewModels.Account @using Dangl.WebDocumentation.ViewModels.Manage @using Microsoft.AspNetCore.Identity @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
Fix Razor tag helpers and usings
Fix Razor tag helpers and usings
C#
mit
GeorgDangl/WebDocu,GeorgDangl/WebDocu,GeorgDangl/WebDocu
43e6ef021473596143883501c47c94cfff77e688
src/Glimpse.Agent.AspNet/Internal/Inspectors/Mvc/Proxies/IViewComponentContext.cs
src/Glimpse.Agent.AspNet/Internal/Inspectors/Mvc/Proxies/IViewComponentContext.cs
 namespace Glimpse.Agent.Internal.Inspectors.Mvc.Proxies { public interface IViewComponentContext { IViewComponentDescriptor ViewComponentDescriptor { get; } object[] Arguments { get; } } }
 using System.Collections.Generic; namespace Glimpse.Agent.Internal.Inspectors.Mvc.Proxies { public interface IViewComponentContext { IViewComponentDescriptor ViewComponentDescriptor { get; } IDictionary<string, object> Arguments { get; } } }
Update ViewComponentContext to respond to changed type
Update ViewComponentContext to respond to changed type
C#
mit
zanetdev/Glimpse.Prototype,Glimpse/Glimpse.Prototype,zanetdev/Glimpse.Prototype,Glimpse/Glimpse.Prototype,Glimpse/Glimpse.Prototype,Glimpse/Glimpse.Prototype,zanetdev/Glimpse.Prototype,zanetdev/Glimpse.Prototype
418838a7fb0e90df9ca50b07bd79f8d14b7a8c53
Dashboard/Views/Jenkins/JobData.cshtml
Dashboard/Views/Jenkins/JobData.cshtml
@model Dashboard.Models.JobSummary @{ ViewBag.Title = $"{Model.Name} Summary"; var summaryValues = string.Join( ";", Model.JobDaySummaryList.Select(x => $"{x.Date.ToLocalTime().ToString("yyyy-MM-dd")},{x.Succeeded},{x.Failed},{x.Aborted}")); var durationDates = string.Join( ";", ...
@model Dashboard.Models.JobSummary @{ ViewBag.Title = $"{Model.Name} Summary"; var jobs = Model.JobDaySummaryList.OrderBy(x => x.Date); var summaryValues = string.Join( ";", jobs.Select(x => $"{x.Date.ToLocalTime().ToString("yyyy-MM-dd")},{x.Succeeded},{x.Failed},{x.Aborted}")); var ...
Convert to minutes in the duration display
Convert to minutes in the duration display
C#
apache-2.0
jaredpar/jenkins,jaredpar/jenkins,jaredpar/jenkins
427666aaa7fb9cc3339dca1fe89b73d374de95a3
src/BloomExe/web/controllers/ProgressDialogApi.cs
src/BloomExe/web/controllers/ProgressDialogApi.cs
using System; using System.IO; using System.Net; using System.Windows.Forms; using Bloom.Api; using Bloom.Book; using Bloom.MiscUI; using Bloom.Publish; using Bloom.Utils; using SIL.IO; namespace Bloom.web.controllers { public class ProgressDialogApi { private static Action _cancelHandler; public static void Se...
using System; using System.IO; using System.Net; using System.Windows.Forms; using Bloom.Api; using Bloom.Book; using Bloom.MiscUI; using Bloom.Publish; using Bloom.Utils; using SIL.IO; namespace Bloom.web.controllers { public class ProgressDialogApi { private static Action _cancelHandler; public static void Se...
Allow progress dialog ready API call to proceed without sync (BL-11484)
Allow progress dialog ready API call to proceed without sync (BL-11484)
C#
mit
BloomBooks/BloomDesktop,BloomBooks/BloomDesktop,BloomBooks/BloomDesktop,BloomBooks/BloomDesktop,gmartin7/myBloomFork,BloomBooks/BloomDesktop,gmartin7/myBloomFork,BloomBooks/BloomDesktop,StephenMcConnel/BloomDesktop,gmartin7/myBloomFork,StephenMcConnel/BloomDesktop,gmartin7/myBloomFork,StephenMcConnel/BloomDesktop,gmart...
a7957298c1de4cab445ca204ff23055994bd09fb
IntervalTimer.cs
IntervalTimer.cs
using System; using Microsoft.SPOT; namespace IntervalTimer { public class IntervalTimer { public TimeSpan ShortDuration { get; set; } public TimeSpan LongDuration { get; set; } public IntervalTimer(TimeSpan shortDuration, TimeSpan longDuration) { Short...
using System; using Microsoft.SPOT; namespace IntervalTimer { public delegate void IntervalEventHandler(object sender, EventArgs e); public class IntervalTimer { public TimeSpan ShortDuration { get; set; } public TimeSpan LongDuration { get; set; } public IntervalTime...
Add (temporary) event handler delegate.
Add (temporary) event handler delegate.
C#
mit
jcheng31/IntervalTimer
fc2bda0a96afffababadd697341a4cf46847d3c9
Views/ClipList.xaml.cs
Views/ClipList.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;...
Add double click to copy functionality
Add double click to copy functionality
C#
apache-2.0
Schlechtwetterfront/snipp
65f04f4158843f9404a963d9d86b5ac7058b5308
Clockwork/InvalidCharacterAction.cs
Clockwork/InvalidCharacterAction.cs
 /// <summary> /// Action to take if the message text contains an invalid character /// Valid characters are defined in the GSM 03.38 character set /// </summary> public enum InvalidCharacterAction { /// <summary> /// Use the default setting from your account /// </summary> AccountDefault = 0, /// ...
 /// <summary> /// Action to take if the message text contains an invalid character /// Valid characters are defined in the GSM 03.38 character set /// </summary> public enum InvalidCharacterAction { /// <summary> /// Use the default setting from your account /// </summary> AccountDefault = 0, /// ...
Change invalid character enum to make more send (None becomes Error)
Change invalid character enum to make more send (None becomes Error)
C#
mit
mediaburst/clockwork-dotnet
1526819afc00be0af3b6f02de3d61b899a29b45f
TrayLeds/Properties/AssemblyInfo.cs
TrayLeds/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("TrayLeds")] [assembly: AssemblyDescription...
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("TrayLeds")] [assembly: AssemblyDescription...
Update version number to 0.3.0.0.
Update version number to 0.3.0.0.
C#
mit
beppler/trayleds
ab3c1b3dddfa86e759eadb8e8c45905d61216e16
Program.cs
Program.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DangerousPanel_Server { class Program { static void Main(string[] args) { } } }
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DangerousPanel_Server { class Program { static void Log(string text, ConsoleColor color) { ConsoleColor oldColor = Console.ForegroundColor; Cons...
Set title for console window.
Set title for console window.
C#
mit
mitchfizz05/DangerousPanel,mitchfizz05/DangerousPanel,mitchfizz05/DangerousPanel
fa7ac5b2640f48dcd9c47e3bb98467fffae59835
src/DocNuget/Startup.cs
src/DocNuget/Startup.cs
using Microsoft.AspNet.Builder; using Microsoft.AspNet.Http; using Microsoft.AspNet.StaticFiles; using Microsoft.Framework.DependencyInjection; using Microsoft.Framework.Logging; namespace DocNuget { public class Startup { public void ConfigureServices(IServiceCollection services) { services.Ad...
using Microsoft.AspNet.Builder; using Microsoft.AspNet.Http; using Microsoft.AspNet.StaticFiles; using Microsoft.Framework.DependencyInjection; using Microsoft.Framework.Logging; namespace DocNuget { public class Startup { public void ConfigureServices(IServiceCollection services) { services.Ad...
Rewrite request path to serve up index instead of sending it without content type
Rewrite request path to serve up index instead of sending it without content type
C#
mit
Nemo157/DocNuget,Nemo157/DocNuget,Nemo157/DocNuget,Nemo157/DocNuget,Nemo157/DocNuget
a8ff714e59c3b93421a1dd67cb4153d6504502db
Scene.cs
Scene.cs
using System; using System.Collections.Generic; namespace FbxSharp { public class Scene : Document { public Scene(string name="") { RootNode = new Node(); Nodes.Add(RootNode); } public List<Node> Nodes = new List<Node>(); public Node RootNode { ...
using System; using System.Collections.Generic; namespace FbxSharp { public class Scene : Document { public Scene(string name="") { RootNode = new Node(); Nodes.Add(RootNode); } public List<Node> Nodes = new List<Node>(); public Node RootNode { ...
Add a GetRootNode method, to match the interface of the sdk.
Add a GetRootNode method, to match the interface of the sdk.
C#
lgpl-2.1
izrik/FbxSharp,izrik/FbxSharp,izrik/FbxSharp,izrik/FbxSharp,izrik/FbxSharp
4baeb11badce77d7df525243f4b6d26e95f3afeb
Octokit/Http/ApiInfo.cs
Octokit/Http/ApiInfo.cs
using System; using System.Collections.Generic; #if NET_45 using System.Collections.ObjectModel; #endif namespace Octokit { /// <summary> /// Extra information returned as part of each api response. /// </summary> public class ApiInfo { public ApiInfo(IDictionary<string, Uri> links, ...
using System; using System.Collections.Generic; #if NET_45 using System.Collections.ObjectModel; #endif namespace Octokit { /// <summary> /// Extra information returned as part of each api response. /// </summary> public class ApiInfo { public ApiInfo(IDictionary<string, Uri> links, ...
Fix typo: ouath -> oauth
Fix typo: ouath -> oauth
C#
mit
chunkychode/octokit.net,Sarmad93/octokit.net,shiftkey-tester/octokit.net,devkhan/octokit.net,octokit-net-test/octokit.net,editor-tools/octokit.net,M-Zuber/octokit.net,SmithAndr/octokit.net,ivandrofly/octokit.net,fake-organization/octokit.net,shiftkey/octokit.net,shana/octokit.net,TattsGroup/octokit.net,octokit-net-test...
128118cd783b070a03fcce4b9832ac85df20b5ed
Octokit/Helpers/CollectionExtensions.cs
Octokit/Helpers/CollectionExtensions.cs
using System; using System.Linq; using System.Collections.Generic; namespace Octokit { internal static class CollectionExtensions { public static TValue SafeGet<TKey, TValue>(this IReadOnlyDictionary<TKey, TValue> dictionary, TKey key) { Ensure.ArgumentNotNull(dictionary, "dictiona...
using System; using System.Linq; using System.Collections.Generic; namespace Octokit { internal static class CollectionExtensions { public static TValue SafeGet<TKey, TValue>(this IReadOnlyDictionary<TKey, TValue> dictionary, TKey key) { Ensure.ArgumentNotNull(dictionary, "dictiona...
Use linq expression to create dictionary
Use linq expression to create dictionary Just feels nicer than mutating a dictionary.
C#
mit
TattsGroup/octokit.net,rlugojr/octokit.net,shana/octokit.net,eriawan/octokit.net,shana/octokit.net,khellang/octokit.net,Sarmad93/octokit.net,octokit/octokit.net,dampir/octokit.net,rlugojr/octokit.net,gabrielweyer/octokit.net,alfhenrik/octokit.net,SamTheDev/octokit.net,thedillonb/octokit.net,khellang/octokit.net,octokit...
09704d8e5f2f65f301ea63042de0f51247665c20
Basics.Algorithms/Properties/AssemblyInfo.cs
Basics.Algorithms/Properties/AssemblyInfo.cs
using System.Reflection; // 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("Basics Algorithms")] [assembly: AssemblyCulture("")]
using System.Reflection; using System.Runtime.CompilerServices; // 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("Basics Algorithms")] [assembly: Assembly...
Make internals visible to test assembly
Make internals visible to test assembly
C#
mit
MSayfullin/Basics
8a6b3327e3e637170ce3a7812868fbf2a3864181
src/CSharpClient/Bit.CSharpClient.OData/ViewModel/Extensions/ContainerBuilderExtensions.cs
src/CSharpClient/Bit.CSharpClient.OData/ViewModel/Extensions/ContainerBuilderExtensions.cs
using Autofac; using Bit.ViewModel.Contracts; using Simple.OData.Client; using System; using System.Net.Http; namespace Prism.Ioc { public static class ContainerBuilderExtensions { public static ContainerBuilder RegisterODataClient(this ContainerBuilder containerBuilder) { if (cont...
using Autofac; using Bit.ViewModel.Contracts; using Simple.OData.Client; using System; using System.Net.Http; namespace Prism.Ioc { public static class ContainerBuilderExtensions { public static ContainerBuilder RegisterODataClient(this ContainerBuilder containerBuilder) { if (cont...
Use prepared http client to build odata client.
Use prepared http client to build odata client.
C#
mit
bit-foundation/bit-framework,bit-foundation/bit-framework,bit-foundation/bit-framework,bit-foundation/bit-framework
542df64f2e1aec4d6d0e645d5b39dff44c2c7f40
Default404Servlet.cs
Default404Servlet.cs
 namespace WebServer { public class Default404Servlet : HTMLServlet { protected override void OnService() { Write( DocType("html"), Tag("html", lang => "en", another => "blah")( Tag("head")( Tag("title")("Er...
 namespace WebServer { public class Default404Servlet : HTMLServlet { protected override void OnService() { Response.StatusCode = 404; Write( DocType("html"), Tag("html", lang => "en", another => "blah")( Tag("head")( ...
Set status code for not found servlet
Set status code for not found servlet
C#
mit
Metapyziks/WebServer
ecee4d4bca1d58216b68fb55c19f53ab824f3ba6
source/Visualizer/DataProvider.cs
source/Visualizer/DataProvider.cs
using System.Collections.Generic; using AgGateway.ADAPT.ApplicationDataModel; using AgGateway.ADAPT.PluginManager; namespace AgGateway.ADAPT.Visualizer { public class DataProvider { private PluginFactory _pluginFactory; public void Initialize(string pluginsPath) { _pluginF...
using System.Collections.Generic; using AgGateway.ADAPT.ApplicationDataModel; using AgGateway.ADAPT.PluginManager; namespace AgGateway.ADAPT.Visualizer { public class DataProvider { private PluginFactory _pluginFactory; public void Initialize(string pluginsPath) { _pluginF...
Check if initialize string is available before setting it
Visualizer: Check if initialize string is available before setting it Signed-off-by: Tarak Reddy <83c0befc10b630ca3a0bb9b7bea0b0bf61554a65@johndeere.com>
C#
epl-1.0
ADAPT/ADAPT,tarakreddy/ADAPT
5cb9d1e2af55da5db7939752684552e165f7c8f2
src/Core2D.Avalonia/MainWindow.xaml.cs
src/Core2D.Avalonia/MainWindow.xaml.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 Avalonia; using Avalonia.Controls; using Avalonia.Markup.Xaml; namespace Core2D.Avalonia { public class MainWindow : Window { public MainWin...
// 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 Avalonia; using Avalonia.Controls; using Avalonia.Markup.Xaml; namespace Core2D.Avalonia { public class MainWindow : Window { public MainWin...
Attach dev tools only in debug builds
Attach dev tools only in debug builds
C#
mit
wieslawsoltes/Draw2D,wieslawsoltes/Draw2D,wieslawsoltes/Draw2D
6d43f6dbbe7c47ac78c251e78746b7345eed34ae
nancy/src/Global.asax.cs
nancy/src/Global.asax.cs
using System; using System.Collections.Generic; using System.Web; using Nancy; using Nancy.ErrorHandling; namespace NancyBenchmark { public class Global : HttpApplication { protected void Application_Start() { } } }
using System; using System.Collections.Generic; using System.Web; using Nancy; using Nancy.ErrorHandling; using System.Threading; namespace NancyBenchmark { public class Global : HttpApplication { protected void Application_Start() { var threads = 40 * Environment.ProcessorCount; ...
Set improved ThreadPool values for nancy
Set improved ThreadPool values for nancy
C#
bsd-3-clause
xitrum-framework/FrameworkBenchmarks,actframework/FrameworkBenchmarks,knewmanTE/FrameworkBenchmarks,Ocramius/FrameworkBenchmarks,zapov/FrameworkBenchmarks,Ocramius/FrameworkBenchmarks,jetty-project/FrameworkBenchmarks,martin-g/FrameworkBenchmarks,knewmanTE/FrameworkBenchmarks,yunspace/FrameworkBenchmarks,testn/Framewor...
a4390c5ca0cbadb34b55c1fe1996527a6c5ef980
log4net.Azure/AzureLoggingEventEntity.cs
log4net.Azure/AzureLoggingEventEntity.cs
using System; using System.Collections; using System.Globalization; using System.Text; using Microsoft.WindowsAzure.Storage.Table; using log4net.Core; namespace log4net.Appender { internal sealed class AzureLoggingEventEntity : TableEntity { public AzureLoggingEventEntity(LoggingEvent e) { ...
using System; using System.Collections; using System.Globalization; using System.Text; using Microsoft.WindowsAzure.Storage.Table; using log4net.Core; namespace log4net.Appender { internal sealed class AzureLoggingEventEntity : TableEntity { public AzureLoggingEventEntity(LoggingEvent e) { ...
Rename TimeStamp to EventTimeStamp to avoid confusion with native Azure Table Storage "Timestamp" column
Rename TimeStamp to EventTimeStamp to avoid confusion with native Azure Table Storage "Timestamp" column
C#
mit
stemarie/log4net.Azure,GrzegorzBlok/log4net.Azure,BhupinderAnand/log4net.azure,baumerik/log4net.Azure
a7ed373d784fa30215ee18ce403a346daefd4ce9
src/Assent/Reporters/DiffPrograms/VsCodeDiffProgram.cs
src/Assent/Reporters/DiffPrograms/VsCodeDiffProgram.cs
using System; using System.Collections.Generic; using System.Linq; namespace Assent.Reporters.DiffPrograms { public class VsCodeDiffProgram : DiffProgramBase { static VsCodeDiffProgram() { var paths = new List<string>(); if (DiffReporter.IsWindows) { ...
using System; using System.Collections.Generic; using System.Linq; namespace Assent.Reporters.DiffPrograms { public class VsCodeDiffProgram : DiffProgramBase { static VsCodeDiffProgram() { var paths = new List<string>(); if (DiffReporter.IsWindows) { ...
Add support for vscode install via snap
Add support for vscode install via snap
C#
mit
droyad/Assent
412df5795756bd26fda0f3497d24a43be039b5d5
Common/StringExtensions.cs
Common/StringExtensions.cs
using System.Linq; using System.Text; namespace ReimuPlugins.Common { public static class StringExtensions { public static string ToCStr(this string str) { return str.Contains('\0') ? str : str + '\0'; } public static string Convert(this string str, Encoding src, E...
using System.Linq; using System.Text; namespace ReimuPlugins.Common { public static class StringExtensions { public static string ToCStr(this string str) { return str.Contains('\0') ? str : str + '\0'; } public static string Convert(this string str, Encoding src, E...
Add the extension method ToSJIS()
Add the extension method ToSJIS()
C#
bsd-2-clause
y-iihoshi/REIMU_Plugins_V2,y-iihoshi/REIMU_Plugins_V2
167e3c09577dcbd9295dbceed5afb7dc9d487d30
EquifaxGuid/EquifaxGuid.cs
EquifaxGuid/EquifaxGuid.cs
using System; namespace Equifax { /// <summary> /// Creates globally secure Equifax-style GUIDs. /// </summary> public static class Guid { /// <summary> /// Creates a new Equifax secure GUID using the current UTC time. /// UTC ensures global consistency and uniqueness. ...
using System; namespace Equifax { /// <summary> /// Creates globally secure Equifax-style GUIDs. /// </summary> public static class Guid { /// <summary> /// Creates a new Equifax secure GUID using the current UTC time. /// UTC ensures global consistency and uniqueness. ...
Fix typo in build. We should add tests.
Fix typo in build. We should add tests.
C#
mit
abock/EquifaxGuid
90aad3b785f4854e768922491bd7ad849fa82a18
src/Avalonia.Visuals/Rendering/SleepLoopRenderTimer.cs
src/Avalonia.Visuals/Rendering/SleepLoopRenderTimer.cs
using System; using System.Diagnostics; using System.Threading; namespace Avalonia.Rendering { public class SleepLoopRenderTimer : IRenderTimer { public event Action<TimeSpan> Tick; public SleepLoopRenderTimer(int fps) { var timeBetweenTicks = TimeSpan.FromSeconds(1d / fps)...
using System; using System.Diagnostics; using System.Threading; namespace Avalonia.Rendering { public class SleepLoopRenderTimer : IRenderTimer { private Action<TimeSpan> _tick; private int _count; private readonly object _lock = new object(); private bool _running; priv...
Stop the loop when there are no subscribers
Stop the loop when there are no subscribers
C#
mit
AvaloniaUI/Avalonia,Perspex/Perspex,jkoritzinsky/Avalonia,jkoritzinsky/Avalonia,AvaloniaUI/Avalonia,wieslawsoltes/Perspex,jkoritzinsky/Avalonia,wieslawsoltes/Perspex,AvaloniaUI/Avalonia,SuperJMN/Avalonia,akrisiun/Perspex,jkoritzinsky/Avalonia,AvaloniaUI/Avalonia,jkoritzinsky/Perspex,AvaloniaUI/Avalonia,grokys/Perspex,w...
8fd8b43f1166f9baedca4b4d1d98a2429f537549
Aggregator.Core/Extensions/LocationServiceExtensions.cs
Aggregator.Core/Extensions/LocationServiceExtensions.cs
#if TFS2015u2 using System; using System.Diagnostics.CodeAnalysis; using Microsoft.TeamFoundation.Framework.Server; using Microsoft.VisualStudio.Services.Location; using Microsoft.VisualStudio.Services.Location.Server; namespace Aggregator.Core.Extensions { public static class LocationServiceExtensions { ...
#if TFS2015u2 using System; using System.Diagnostics.CodeAnalysis; using Microsoft.TeamFoundation.Framework.Server; using Microsoft.VisualStudio.Services.Location; using Microsoft.VisualStudio.Services.Location.Server; namespace Aggregator.Core.Extensions { public static class LocationServiceExtensions { ...
Use th esupplied access mappign instead of looking it up a second time.
Use th esupplied access mappign instead of looking it up a second time.
C#
apache-2.0
tfsaggregator/tfsaggregator,tfsaggregator/tfsaggregator-webhooks
68104c4fee33561a2e31a43a78a7e3cc3c4c52c6
src/NHibernate/Dialect/Oracle9iDialect.cs
src/NHibernate/Dialect/Oracle9iDialect.cs
using System.Data; using NHibernate.SqlCommand; using NHibernate.SqlTypes; namespace NHibernate.Dialect { public class Oracle9iDialect : Oracle8iDialect { public override string CurrentTimestampSelectString { get { return "select systimestamp from dual"; } } public override string CurrentTim...
using System.Data; using NHibernate.SqlCommand; using NHibernate.SqlTypes; namespace NHibernate.Dialect { public class Oracle9iDialect : Oracle8iDialect { public override string CurrentTimestampSelectString { get { return "select systimestamp from dual"; } } public override string CurrentTim...
Fix NH-2927 - Oracle Dialect does not handle the correct resolution for timestamp version columns
Fix NH-2927 - Oracle Dialect does not handle the correct resolution for timestamp version columns Fixes the following tests on Oracle: NHibernate.Test.Component.Basic.ComponentTest.TestComponent NHibernate.Test.Component.Basic.ComponentTest.TestComponentStateChangeAndDirtiness NHibernate.Test.Legacy.CriteriaTest.Crit...
C#
lgpl-2.1
fredericDelaporte/nhibernate-core,RogerKratz/nhibernate-core,ngbrown/nhibernate-core,gliljas/nhibernate-core,ManufacturingIntelligence/nhibernate-core,gliljas/nhibernate-core,lnu/nhibernate-core,RogerKratz/nhibernate-core,lnu/nhibernate-core,nkreipke/nhibernate-core,fredericDelaporte/nhibernate-core,lnu/nhibernate-core...
c54e746370bd0ac8dc9136a7c329d835d82d0a0f
Assets/CellFeatures/NurseryResource.cs
Assets/CellFeatures/NurseryResource.cs
using UnityEngine; using System.Collections; public class NurseryResource : CellFeature { public override int Amount { set { // add _amount - value to the player's resource store _amount = value; Debug.Log("child thingy"); } } // Use this for ...
using UnityEngine; using System.Collections; public class NurseryResource : CellFeature { public override int Amount { set { _amount = value; FindObjectOfType<Resources>().addPlacementResource(_amount - value); } } // Use this for initialization void Sta...
Integrate cell resources with player resources code
Integrate cell resources with player resources code
C#
mit
MarjieVolk/Backfire
40e6b68367ddd71edcb31664a54a9db42eb5b61d
src/live.asp.net/Views/Shared/_ValidationScripts.cshtml
src/live.asp.net/Views/Shared/_ValidationScripts.cshtml
<environment names="Development"> <script src="~/lib/jquery-validation/jquery.validate.js"></script> <script src="~/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.js"></script> </environment> <environment names="Staging,Production"> <script src="https://ajax.aspnetcdn.com/ajax/jquery.validat...
<environment names="Development"> <script src="~/lib/jquery-validation/jquery.validate.js"></script> <script src="~/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.js"></script> </environment> <environment names="Staging,Production"> <script src="https://ajax.aspnetcdn.com/ajax/jquery.validat...
Fix casing of jQuery validation fallback test
Fix casing of jQuery validation fallback test
C#
mit
pakrym/kudutest,pakrym/kudutest,aspnet/live.asp.net,reactiveui/website,sejka/live.asp.net,aspnet/live.asp.net,sejka/live.asp.net,reactiveui/website,aspnet/live.asp.net,reactiveui/website,reactiveui/website
b4976cfcd1712cdf3a27f228f2f5358d10e83a38
TfsHelper/TfsChangeset.cs
TfsHelper/TfsChangeset.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TfsHelperLib { public class TfsChangeset { public int ChangesetId { get; set; } public string Owner { get; set; } public DateTime CreationDate {...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TfsHelperLib { public class TfsChangeset : IComparable { public int ChangesetId { get; set; } public string Owner { get; set; } ...
Implement IComparable interface for sorting
Implement IComparable interface for sorting
C#
mit
jsvasani/TFSHistorySearch
6a433850145c487fe1db09ab9655fc685713050c
NoAdsHere/Commands/Master/MasterModule.cs
NoAdsHere/Commands/Master/MasterModule.cs
using System.Threading.Tasks; using Discord; using Discord.Commands; using NoAdsHere.Common; using NoAdsHere.Common.Preconditions; namespace NoAdsHere.Commands.Master { public class MasterModule : ModuleBase { [Command("Reset Guild")] [RequirePermission(AccessLevel.Master)] public async...
using System.Threading.Tasks; using Discord; using Discord.Commands; using NoAdsHere.Common; using NoAdsHere.Common.Preconditions; namespace NoAdsHere.Commands.Master { public class MasterModule : ModuleBase { [Command("Reset Guild")] [RequirePermission(AccessLevel.Master)] public async...
Change IGuild parameter to ulong
Change IGuild parameter to ulong Implement this at a later date
C#
mit
Nanabell/NoAdsHere
f239aa43d8665c4709258aab9cb255a8e348e2ba
Oogstplanner.Web/Views/Crop/Index.cshtml
Oogstplanner.Web/Views/Crop/Index.cshtml
@model IEnumerable<Zk.Models.Crop> @{ ViewBag.Title = "Gewassen"; } <div id="top"></div> <div id="yearCalendar"> <h1>Dit zijn de gewassen in onze database:</h1> <table class="table table-striped"> <tr> <th>Naam</th><th>Ras</th><th>Categorie</th><th>Opp. per 1</th> <th>Opp. per zak</th><th>Prijs p...
@model IEnumerable<Oogstplanner.Models.Crop> @{ ViewBag.Title = "Gewassen"; } <div id="top"></div> <div id="yearCalendar"> <h1>Dit zijn de gewassen in onze database:</h1> <table class="table table-striped"> <tr> <th>Naam</th><th>Ras</th><th>Categorie</th><th>Opp. per 1</th> <th>Opp. per zak</th><...
Change model reference with old namespace to new
Change model reference with old namespace to new
C#
mit
erooijak/oogstplanner,erooijak/oogstplanner,erooijak/oogstplanner,erooijak/oogstplanner
5b2a1faa1d6a217281689a13fc901fb4b982d030
DynamixelServo.Quadruped/BasicQuadrupedGaitEngine.cs
DynamixelServo.Quadruped/BasicQuadrupedGaitEngine.cs
using System; using System.Numerics; namespace DynamixelServo.Quadruped { public class BasicQuadrupedGaitEngine : QuadrupedGaitEngine { private const int Speed = 12; private int _currentIndex; private readonly Vector3[] _positions = { new Vector3(-5, 5, 3), ...
using System; using System.Numerics; namespace DynamixelServo.Quadruped { public class BasicQuadrupedGaitEngine : QuadrupedGaitEngine { private const int Speed = 12; private float NextStepLength => Speed * 0.001f * TimeSincelastTick; private int _currentIndex; private readonl...
Move next step calculation to a property
Move next step calculation to a property
C#
apache-2.0
dmweis/DynamixelServo,dmweis/DynamixelServo,dmweis/DynamixelServo,dmweis/DynamixelServo
0e966317c31f551cdf363a83ad6e682af41e501c
src/Application/Studios/StudioService.cs
src/Application/Studios/StudioService.cs
using System; using System.Collections.Generic; using System.Linq; using AutoMapper; using ISTS.Domain.Studios; namespace ISTS.Application.Studios { public class StudioService : IStudioService { private readonly IStudioRepository _studioRepository; private readonly IMapper _mapper; p...
using System; using System.Collections.Generic; using System.Linq; using AutoMapper; using ISTS.Domain.Studios; namespace ISTS.Application.Studios { public class StudioService : IStudioService { private readonly IStudioRepository _studioRepository; private readonly IMapper _mapper; p...
Remove studio repo Create call used for testing
Remove studio repo Create call used for testing
C#
mit
meutley/ISTS
01ac19fdbb96cea3f36da3ce4b5ed39d1994658a
osu.Game/Skinning/DefaultLegacySkin.cs
osu.Game/Skinning/DefaultLegacySkin.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.Audio; using osu.Framework.IO.Stores; using osuTK.Graphics; namespace osu.Game.Skinning { public class DefaultLegacySkin : LegacySkin { ...
// 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.Audio; using osu.Framework.IO.Stores; using osuTK.Graphics; namespace osu.Game.Skinning { public class DefaultLegacySkin : LegacySkin { ...
Set legacy version of osu!classic skin to 2.0
Set legacy version of osu!classic skin to 2.0
C#
mit
NeoAdonis/osu,UselessToucan/osu,2yangk23/osu,NeoAdonis/osu,johnneijzen/osu,EVAST9919/osu,NeoAdonis/osu,2yangk23/osu,EVAST9919/osu,smoogipoo/osu,peppy/osu,ppy/osu,smoogipooo/osu,UselessToucan/osu,peppy/osu,UselessToucan/osu,johnneijzen/osu,ppy/osu,smoogipoo/osu,peppy/osu,smoogipoo/osu,ppy/osu,peppy/osu-new
341c0a84b87cfa804cd8ee73c89af708446962a8
bindings/src/Object.cs
bindings/src/Object.cs
// // Urho's Object C# sugar // // Authors: // Miguel de Icaza (miguel@xamarin.com) // // Copyrigh 2015 Xamarin INc // using System; using System.Runtime.InteropServices; namespace Urho { public partial class UrhoObject : RefCounted { // Invoked by the subscribe methods [UnmanagedFunctionPointer(CallingConv...
// // Urho's Object C# sugar // // Authors: // Miguel de Icaza (miguel@xamarin.com) // // Copyrigh 2015 Xamarin INc // using System; using System.Runtime.InteropServices; namespace Urho { public partial class UrhoObject : RefCounted { // Invoked by the subscribe methods static void ObjectCallback (IntPtr da...
Fix build, this is not allwoed on the method itself
Fix build, this is not allwoed on the method itself
C#
mit
florin-chelaru/urho,florin-chelaru/urho,florin-chelaru/urho,florin-chelaru/urho,florin-chelaru/urho,florin-chelaru/urho
d1b1f048ed57a39510c5a809f2b8a3610e014dac
src/CommandLine/Core/Verb.cs
src/CommandLine/Core/Verb.cs
// Copyright 2005-2015 Giacomo Stelluti Scala & Contributors. All rights reserved. See License.md in the project root for license information. using System; using System.Collections.Generic; using System.Linq; #if PLATFORM_DOTNET using System.Reflection; #endif namespace CommandLine.Core { sealed clas...
// Copyright 2005-2015 Giacomo Stelluti Scala & Contributors. All rights reserved. See License.md in the project root for license information. using System; using System.Collections.Generic; using System.Linq; #if !NET40 using System.Reflection; #endif namespace CommandLine.Core { sealed class Verb ...
Use the new reflection API on .NET 4.5 and .NET Core
Use the new reflection API on .NET 4.5 and .NET Core
C#
mit
Thilas/commandline,anthonylangsworth/commandline,anthonylangsworth/commandline,Thilas/commandline
b603bbb894f0e4edd7a4b42c9e9a0dd2c8cfa9a2
src/CurrencyRates/Program.cs
src/CurrencyRates/Program.cs
using CurrencyRates.Entity; using System; namespace CurrencyRates { class Program { static void Main(string[] args) { } } }
using System; namespace CurrencyRates { class Program { enum Actions { Fetch, Show }; static void Main(string[] args) { try { var action = Actions.Fetch; if (args.Length > 0) { ...
Add skeleton code to main program
Add skeleton code to main program
C#
mit
Lc5/CurrencyRates,Lc5/CurrencyRates,Lc5/CurrencyRates
b988d4b64c151be435d39a1150f3c07aaa88df6f
src/Views/Main/_North.cshtml
src/Views/Main/_North.cshtml
@(Html.X().Panel() .Header(false) .Region(Region.North) .Border(false) .Height(70) .Content( @<text> <header class="site-header" role="banner"> <nav class="top-navigation"> <div class="logo-container"> <img src="../../resources/images/extd...
@(Html.X().Panel() .Header(false) .Region(Region.North) .Border(false) .Height(70) .Content( @<text> <header class="site-header" role="banner"> <nav class="top-navigation"> <div class="logo-container"> <img src="../../resources/images/extd...
Update top navigation dropdown menu
Update top navigation dropdown menu
C#
apache-2.0
extnet/Ext.NET.Examples.MVC,extnet/Ext.NET.Examples.MVC,extnet/Ext.NET.Examples.MVC
d40005b360385ae83eab0956422496bf32707509
SDK/Mozu.Api/Cache/CacheManager.cs
SDK/Mozu.Api/Cache/CacheManager.cs
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Caching; using System.Text; using System.Threading.Tasks; namespace Mozu.Api.Cache { public class CacheManager { private readonly ObjectCache _cache; private static readonly object _lockObj = new Object(); ...
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Caching; using System.Text; using System.Threading.Tasks; namespace Mozu.Api.Cache { public class CacheManager { private readonly ObjectCache _cache; private static readonly object _lockObj = new Object(); ...
Add remove method for cache
Add remove method for cache
C#
mit
Mozu/mozu-dotnet,sanjaymandadi/mozu-dotnet,rocky0904/mozu-dotnet,ezekielthao/mozu-dotnet
0c36ff608221f613213d06e98bb406423f73f8a5
SharpCompress/Common/ArchiveEncoding.cs
SharpCompress/Common/ArchiveEncoding.cs
using System.Globalization; using System.Text; namespace SharpCompress.Common { public class ArchiveEncoding { /// <summary> /// Default encoding to use when archive format doesn't specify one. /// </summary> public static Encoding Default; /// <summary> ...
using System.Globalization; using System.Text; namespace SharpCompress.Common { public class ArchiveEncoding { /// <summary> /// Default encoding to use when archive format doesn't specify one. /// </summary> public static Encoding Default; /// <summary> ...
Fix ansi filename decoded as gibberish in zip file
Fix ansi filename decoded as gibberish in zip file
C#
mit
majorsilence/sharpcompress,Gert-Jan/sharpcompress,adamhathcock/sharpcompress,adamhathcock/sharpcompress,KOLANICH/sharpcompress,adamhathcock/sharpcompress,sepehr1014/sharpcompress,Icenium/sharpcompress,weltkante/sharpcompress,RainsSoft/sharpcompress,ycaihua/sharpcompress,catester/sharpcompress,Wagnerp/sharpcompress,tabl...
c5546c803e5ae56af672f6f937eb745a3fce4847
Shuttle.Core.Infrastructure/ThreadSleep.cs
Shuttle.Core.Infrastructure/ThreadSleep.cs
using System; using System.Threading; namespace Shuttle.Core.Infrastructure { public static class ThreadSleep { public const int MaxStepSize = 1000; public static void While(int ms, IThreadState state) { // step size should be as large as possible, // max step s...
using System; using System.Threading; namespace Shuttle.Core.Infrastructure { public static class ThreadSleep { public const int MaxStepSize = 1000; public static void While(int ms, IThreadState state) { // step size should be as large as possible, // max step s...
Update to use UTC instead of local time
Update to use UTC instead of local time Avoid incorrect sleep times due to changes in local time such as daylight savings, for example.
C#
bsd-3-clause
Shuttle/shuttle-core-infrastructure,Shuttle/Shuttle.Core.Infrastructure
05d5dfa18a30a0dabe49dc254dffef1e467c533f
elbgb_core/Memory/NullCartridge.cs
elbgb_core/Memory/NullCartridge.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace elbgb_core.Memory { class NullCartridge : Cartridge { public NullCartridge(CartridgeHeader header, byte[] romData) : base(header, romData) { } public override byte ReadByte(usho...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace elbgb_core.Memory { class NullCartridge : Cartridge { public NullCartridge(CartridgeHeader header, byte[] romData) : base(header, romData) { } public override byte ReadByte(usho...
Return 0xFF for an undefined cartridge read rather than 0x00
Return 0xFF for an undefined cartridge read rather than 0x00
C#
mit
eightlittlebits/elbgb
6eb35ed750ba3981a55ec8021e4650221bb11859
CreviceApp/GM.GestureMachine.cs
CreviceApp/GM.GestureMachine.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Crevice.GestureMachine { using System.Threading; using System.Drawing; using Crevice.Core.FSM; using Crevice.Core.Events; using Crevice.Threading; public class Gesture...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Crevice.GestureMachine { using System.Threading; using System.Drawing; using Crevice.Core.FSM; using Crevice.Core.Events; using Crevice.Threading; public class Gesture...
Change priority of StrokeWatcherScheduler to Highest.
Change priority of StrokeWatcherScheduler to Highest.
C#
mit
rubyu/CreviceApp,rubyu/CreviceApp
8af6a2e74478907a08bcd3aa71cb053061496baa
samples/OwinApp/Program.cs
samples/OwinApp/Program.cs
namespace OwinApp { using System; using Microsoft.Owin.Hosting; using Owin; using Nancy.Owin; public class Program { public static void Main(string[] args) { const string url = "http://localhost:5000"; using (WebApp.Start(url, Configuration)) ...
namespace OwinApp { using System; using Microsoft.Owin.Hosting; using Nancy.Bootstrappers.Autofac; using Owin; using Nancy.Owin; public class Program { public static void Main(string[] args) { const string url = "http://localhost:5000"; using (WebAp...
Make sure the OWIN sample runs
Make sure the OWIN sample runs
C#
apache-2.0
khellang/nancy-bootstrapper-prototype
780cda0faae0142ba86b1f665f928261ce1dc242
Assets/Scripts/Phases/GP_ResourcePhase.cs
Assets/Scripts/Phases/GP_ResourcePhase.cs
using UnityEngine; using System.Collections; public class GP_ResourcePhase : Phase { public override void OnEnter() { base.OnEnter(); var hexes = TowerManager.Instance.GetHexagonsInRange(CurrentPlayer, TowerType.ResourceTower); var vision = RangeUtils.GetPlayerVisionServer(CurrentPla...
using UnityEngine; using System.Collections; public class GP_ResourcePhase : Phase { /* public override void OnEnter() { base.OnEnter(); var hexes = TowerManager.Instance.GetHexagonsInRange(CurrentPlayer, TowerType.ResourceTower); var vision = RangeUtils.GetPlayerVisionServer(Curr...
Fix minor bug for mix mode.
Fix minor bug for mix mode.
C#
mit
shenchi/MiniWar
479d463a4a21836c5cdcf9180e1de86a0e943d1b
ConnectionSettings.cs
ConnectionSettings.cs
using System; namespace Telerik.Windows.Controls.Cloud.Sample { /// <summary> /// Contains properties used to initialize the Backend Services and Analytics connections. /// </summary> public static class ConnectionSettings { /// <summary>  /// Input your Backend Services App ID bel...
using System; namespace Telerik.Windows.Controls.Cloud.Sample { /// <summary> /// Contains properties used to initialize the Backend Services and Analytics connections. /// </summary> public static class ConnectionSettings { /// <summary>  /// Input your Backend Services App ID bel...
Update Exception message to feature app ID, instead of API Key.
Update Exception message to feature app ID, instead of API Key.
C#
bsd-2-clause
telerik/platform-friends-windowsphone
9f71e18a835a0d333d6aac0d9f73c4da24b9ee6a
Grr/ConsoleExtensions.cs
Grr/ConsoleExtensions.cs
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace Grr { public static class ConsoleExtensions { [DllImport("User32.dll")] static extern int SetF...
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace Grr { public static class ConsoleExtensions { [DllImport("User32.dll")] static extern int SetF...
Send keystrokes to the console main window
Send keystrokes to the console main window
C#
mit
awaescher/RepoZ,awaescher/RepoZ
010f7021ba0dff937d6dd92c5bfd851636f1c868
src/tests/MyInfluxDbClient.UnitTests/ShowSeriesTests.cs
src/tests/MyInfluxDbClient.UnitTests/ShowSeriesTests.cs
using FluentAssertions; using NUnit.Framework; namespace MyInfluxDbClient.UnitTests { public class ShowSeriesTests : UnitTestsOf<ShowSeries> { [Test] public void Generate_Should_return_drop_series_When_constructed_empty() { SUT = new ShowSeries(); SUT.Generate()...
using FluentAssertions; using NUnit.Framework; namespace MyInfluxDbClient.UnitTests { public class ShowSeriesTests : UnitTestsOf<ShowSeries> { [Test] public void Generate_Should_return_show_series_When_constructed_empty() { SUT = new ShowSeries(); SUT.Generate()...
Correct names of test methods
Correct names of test methods
C#
mit
danielwertheim/myinfluxdbclient
dc78c68f129ed1413d72f15b7145fd8232fb45bc
Resources/ScriptLoader.cs
Resources/ScriptLoader.cs
using System; using System.IO; using System.Text; using System.Windows.Forms; using CefSharp; using CefSharp.WinForms; namespace TweetDck.Resources{ static class ScriptLoader{ private const string UrlPrefix = "td:"; public static string LoadResource(string name){ try{ ...
using System; using System.IO; using System.Text; using System.Windows.Forms; using CefSharp; using CefSharp.WinForms; namespace TweetDck.Resources{ static class ScriptLoader{ private const string UrlPrefix = "td:"; public static string LoadResource(string name){ try{ ...
Change starting line in script processor to 1 instead of 0 for easier debugging
Change starting line in script processor to 1 instead of 0 for easier debugging
C#
mit
chylex/TweetDuck,chylex/TweetDuck,chylex/TweetDuck,chylex/TweetDuck
3e03a6c98b673c3622e31339ab3d3f9c00ea9489
Selene.Testing/Harness.cs
Selene.Testing/Harness.cs
using System; using NUnit.Framework; using Gtk; using Qyoto; namespace Selene.Testing { [TestFixture] public partial class Harness { [TestFixtureSetUp] public void Setup() { #if GTK string[] Dummy = new string[] { }; Init.Check(ref Dummy); #endif #if QYOTO ...
using System; using NUnit.Framework; using Gtk; using Qyoto; namespace Selene.Testing { [TestFixture] public partial class Harness { [TestFixtureSetUp] public void Setup() { #if GTK string[] Dummy = new string[] { }; Init.Check(ref Dummy); #endif #if QYOTO ...
Fix for segfault on end of Qt test
Fix for segfault on end of Qt test
C#
mit
TobiasKappe/Selene,TobiasKappe/Selene
68911c571c585aeec48ec5074c2bab081571a5d3
Assets/PoolVR/Util/GeneratedSignals.cs
Assets/PoolVR/Util/GeneratedSignals.cs
using System.Collections; using System.Collections.Generic; using UniRx; using UnityEngine; public class GeneratedSignals { public static IObservable<float> CreateTriangleSignal(float period) { return Observable.IntervalFrame(1, FrameCountType.Update) .Scan(0f, (c, _) => c + Time.deltaTime...
using System; using System.Collections; using System.Collections.Generic; using UniRx; using UnityEngine; public static class GeneratedSignals { public static IObservable<float> CreateTriangleSignal(float period) { return Observable.IntervalFrame(1, FrameCountType.Update) .Scan(0f, (c, _) ...
Create a hysteresis observable transform.
Create a hysteresis observable transform.
C#
mit
s-soltys/PoolVR
aba6968c961e24f0bb1935ed3534502b343a411e
DesktopWidgets/Classes/MediaPlayerStore.cs
DesktopWidgets/Classes/MediaPlayerStore.cs
using System.Collections.Generic; using System.IO; using System.Threading; using DesktopWidgets.Properties; using WMPLib; namespace DesktopWidgets.Classes { public static class MediaPlayerStore { private static readonly List<WindowsMediaPlayer> _mediaPlayerList = new List<WindowsMediaPlayer>(); ...
using System.Collections.Generic; using System.IO; using System.Threading; using DesktopWidgets.Properties; using WMPLib; namespace DesktopWidgets.Classes { public static class MediaPlayerStore { private static readonly List<WindowsMediaPlayer> MediaPlayers = new List<WindowsMediaPlayer> { ...
Fix media player allocation error
Fix media player allocation error
C#
apache-2.0
danielchalmers/DesktopWidgets
b67372a10c2e8362d010d23c7aa901858f5c0db4
Rock.Messaging/Routing/XmlMessageParser.cs
Rock.Messaging/Routing/XmlMessageParser.cs
using System; using System.IO; using System.Text.RegularExpressions; using System.Xml.Serialization; namespace Rock.Messaging.Routing { public class XmlMessageParser : IMessageParser { public string GetTypeName(Type type) { var xmlRootAttribute = Attribute.GetCustomAttribute(type, ...
using System; using System.Collections.Concurrent; using System.IO; using System.Text.RegularExpressions; using System.Xml.Serialization; namespace Rock.Messaging.Routing { public class XmlMessageParser : IMessageParser { private readonly ConcurrentDictionary<Type, XmlRootAttribute> _xmlRootAttributes...
Add ability to specify xml root without decorating the target class.
Add ability to specify xml root without decorating the target class.
C#
mit
bfriesen/Rock.Messaging,peteraritchie/Rock.Messaging,RockFramework/Rock.Messaging
bd3a8d8653ee60b07d31859e00cf61ff128a89ae
Services/DbService.cs
Services/DbService.cs
using LiteDB; using Microsoft.Extensions.Logging; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; namespace LanfeustBridge.Services { public class DbService { public DbService(DirectoryService directoryService) { var...
using LiteDB; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Logging; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; namespace LanfeustBridge.Services { public class DbService { public DbService(DirectoryService directo...
Use pure in-memory db in development environment
Use pure in-memory db in development environment
C#
mit
lanfeust69/LanfeustBridge,lanfeust69/LanfeustBridge,lanfeust69/LanfeustBridge,lanfeust69/LanfeustBridge,lanfeust69/LanfeustBridge
ce96b31ad42f1ff6046bbf983e4a31751fd0074c
MvcNG/Controllers/ngAppController.cs
MvcNG/Controllers/ngAppController.cs
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; namespace MvcNG.Controllers { public class ngAppController : BaseTSController { // // GET: /ngApp/main public ActionResult main() { //DON'T USE Index - DON'T WORK! ...
using System; using System.Collections.Generic; using System.Linq; using System.Web using System.Web.Mvc; namespace MvcNG.Controllers { public class ngAppController : BaseTSController { // // GET: /ngApp/main public ActionResult main() { //DON'T USE Index - DON'T WORK! ...
Add logic to inject NAME in ViewBag based of Identity
Add logic to inject NAME in ViewBag based of Identity
C#
mit
dmorosinotto/MVC_NG_TS,dmorosinotto/MVC_NG_TS
98dab48b2007d753eee2358e72348a65b0c55e90
Properties/AssemblyInfo.cs
Properties/AssemblyInfo.cs
using System.Reflection; using System.Runtime.InteropServices; [assembly: AssemblyTitle("VulkanInfo GUI")] [assembly: AssemblyDescription("Small program to obtain information from the Vulkan Runtime.")] #if DEBUG [assembly: AssemblyConfiguration("Debug")] #else [assembly: AssemblyConfiguration("Release")]...
using System.Reflection; using System.Runtime.InteropServices; [assembly: AssemblyTitle("VulkanInfo GUI")] [assembly: AssemblyDescription("Small program to obtain information from the Vulkan Runtime.")] #if DEBUG [assembly: AssemblyConfiguration("Debug")] #else [assembly: AssemblyConfiguration("Release")]...
Replace copyright with LICENSE reference
Replace copyright with LICENSE reference
C#
mit
GuildMasterInfinite/VulkanInfo-GUI
e856d28d6585a59529b9945e1f3c223a2f4e1e14
binder/Generators/Swift/SwiftGenerator.cs
binder/Generators/Swift/SwiftGenerator.cs
using System.Collections.Generic; using System.Linq; using CppSharp.AST; using CppSharp.Generators; namespace Embeddinator.Generators { public class SwiftGenerator : Generator { public SwiftTypePrinter TypePrinter { get; internal set; } public static string IntPtrType = "UnsafePointer<Void>"; ...
using System.Collections.Generic; using System.Linq; using CppSharp.AST; using CppSharp.Generators; namespace Embeddinator.Generators { public class SwiftGenerator : Generator { public SwiftTypePrinter TypePrinter { get; internal set; } public static string IntPtrType = "UnsafeRawPointer"; ...
Use non-deprecated UnsafeRawPointer type to represent untyped native pointers.
[swift] Use non-deprecated UnsafeRawPointer type to represent untyped native pointers.
C#
mit
jonathanpeppers/Embeddinator-4000,mono/Embeddinator-4000,jonathanpeppers/Embeddinator-4000,jonathanpeppers/Embeddinator-4000,jonathanpeppers/Embeddinator-4000,mono/Embeddinator-4000,mono/Embeddinator-4000,jonathanpeppers/Embeddinator-4000,mono/Embeddinator-4000,mono/Embeddinator-4000,mono/Embeddinator-4000,jonathanpepp...
9f7c6adb5849777f77de6ba48c129bf8b53fd130
osu.Game/Tests/CleanRunHeadlessGameHost.cs
osu.Game/Tests/CleanRunHeadlessGameHost.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.Runtime.CompilerServices; using osu.Framework.Platform; namespace osu.Game.Tests { /// <summary> /// A headless host which cleans up before running...
// 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.Runtime.CompilerServices; using osu.Framework.Platform; namespace osu.Game.Tests { /// <summary> /// A headless host which cleans up before running...
Fix test failures due to logger pollution
Fix test failures due to logger pollution As seen at https://github.com/ppy/osu/pull/13831/checks?check_run_id=3025050307. I can't confirm that this will fix the issue but it looks like the only plausible reason. I have confirmed that the logging is not coming from the local (first logging is guaranteed to be after `S...
C#
mit
peppy/osu-new,UselessToucan/osu,peppy/osu,ppy/osu,smoogipoo/osu,peppy/osu,smoogipoo/osu,ppy/osu,NeoAdonis/osu,NeoAdonis/osu,UselessToucan/osu,ppy/osu,smoogipoo/osu,UselessToucan/osu,smoogipooo/osu,NeoAdonis/osu,peppy/osu
0d330630ad1e957607df097e2bd2e6eeef5e4088
src/ApiPorter.Patterns/PatternSearch.cs
src/ApiPorter.Patterns/PatternSearch.cs
using System; using System.Collections.Immutable; namespace ApiPorter.Patterns { public sealed partial class PatternSearch { private PatternSearch(string text, ImmutableArray<PatternVariable> variables) { Text = text; Variables = variables; } public sta...
using System; using System.Collections.Immutable; namespace ApiPorter.Patterns { public sealed partial class PatternSearch { private PatternSearch(string text, ImmutableArray<PatternVariable> variables) { Text = text; Variables = variables; } public sta...
Remove superfluous call to ToImmutableArray
Remove superfluous call to ToImmutableArray
C#
mit
terrajobst/apiporter
64d4e807c3fca4c0471e7019aae8884eff829c55
src/SmugMugModel.v2/Types/SiteEntity.cs
src/SmugMugModel.v2/Types/SiteEntity.cs
// Copyright (c) Alex Ghiondea. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using SmugMug.v2.Authentication; using System.Threading.Tasks; namespace SmugMug.v2.Types { public class SiteEntity : SmugMugEntity { public SiteE...
// Copyright (c) Alex Ghiondea. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using SmugMug.v2.Authentication; using System.Threading.Tasks; namespace SmugMug.v2.Types { public class SiteEntity : SmugMugEntity { public SiteE...
Add the search for user api to the Site.
Add the search for user api to the Site.
C#
mit
AlexGhiondea/SmugMug.NET
d7322c8ebd1c4139eb05bed63d7c936f3305cb67
DesktopWidgets/Widgets/Note/Settings.cs
DesktopWidgets/Widgets/Note/Settings.cs
using System.ComponentModel; using DesktopWidgets.WidgetBase.Settings; namespace DesktopWidgets.Widgets.Note { public class Settings : WidgetSettingsBase { public Settings() { Style.Width = 160; Style.Height = 132; } [DisplayName("Saved Text")] ...
using System.ComponentModel; using DesktopWidgets.WidgetBase.Settings; namespace DesktopWidgets.Widgets.Note { public class Settings : WidgetSettingsBase { public Settings() { Style.MinWidth = 160; Style.MinHeight = 132; } [DisplayName("Saved Text")] ...
Change "Note" default size / minimum size
Change "Note" default size / minimum size
C#
apache-2.0
danielchalmers/DesktopWidgets
8a488c353bf28e368a1706e90964bb905b314736
SteamShutdown/Program.cs
SteamShutdown/Program.cs
using System; using System.IO; using System.Windows.Forms; namespace SteamShutdown { static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void Main() { AppDomain.CurrentDom...
using System; using System.Diagnostics; using System.IO; using System.Windows.Forms; namespace SteamShutdown { static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void Main() { ...
Allow only one instance of application
Allow only one instance of application
C#
mit
akorb/SteamShutdown
ec2c2781456c7da601f383d48af8ca707363438b
src/OpenSage.Game/GameTimer.cs
src/OpenSage.Game/GameTimer.cs
using System; using System.Diagnostics; namespace OpenSage { public sealed class GameTimer : IDisposable { private readonly Stopwatch _stopwatch; private double _startTime; private double _lastUpdate; public GameTime CurrentGameTime { get; private set; } public GameTi...
using System; using System.Diagnostics; namespace OpenSage { public sealed class GameTimer : IDisposable { private readonly Stopwatch _stopwatch; private long _startTime; private long _lastUpdate; public GameTime CurrentGameTime { get; private set; } public GameTimer(...
Use ticks instead of milliseconds for time calculation
Use ticks instead of milliseconds for time calculation This can offer more temporal resolution depending on the platform.
C#
mit
feliwir/openSage,feliwir/openSage
70585a279dc3be236f617ebb70b20407a76cdeaa
osu.Game.Rulesets.Catch/Beatmaps/CatchBeatmapConverter.cs
osu.Game.Rulesets.Catch/Beatmaps/CatchBeatmapConverter.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.Game.Beatmaps; using osu.Game.Rulesets.Catch.Objects; using System.Collections.Generic; using System; using osu.Game.Rulesets.Objects.Types; using osu...
// 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.Game.Beatmaps; using osu.Game.Rulesets.Catch.Objects; using System.Collections.Generic; using System; using osu.Game.Rulesets.Objects.Types; using osu...
Comment out unused variables for now
Comment out unused variables for now
C#
mit
EVAST9919/osu,johnneijzen/osu,NeoAdonis/osu,ZLima12/osu,Damnae/osu,peppy/osu,smoogipoo/osu,ppy/osu,ZLima12/osu,DrabWeb/osu,Nabile-Rahmani/osu,NeoAdonis/osu,naoey/osu,2yangk23/osu,2yangk23/osu,smoogipoo/osu,johnneijzen/osu,ppy/osu,UselessToucan/osu,peppy/osu,smoogipooo/osu,UselessToucan/osu,DrabWeb/osu,naoey/osu,peppy/o...
f48df96725e6946a141ba67a6fe1fd2f951fb8f7
KenticoInspector.Core/AbstractReport.cs
KenticoInspector.Core/AbstractReport.cs
using KenticoInspector.Core.Models; using System; using System.Collections.Generic; namespace KenticoInspector.Core { public abstract class AbstractReport<T> : IReport, IWithMetadata<T> where T : new() { public string Codename => GetCodename(this.GetType()); public static string GetCodename(T...
using KenticoInspector.Core.Models; using KenticoInspector.Core.Services.Interfaces; using System; using System.Collections.Generic; namespace KenticoInspector.Core { public abstract class AbstractReport<T> : IReport, IWithMetadata<T> where T : new() { protected readonly IReportMetadataService reportM...
Add metadata loading to abstract report class
Add metadata loading to abstract report class
C#
mit
Kentico/KInspector,ChristopherJennings/KInspector,ChristopherJennings/KInspector,Kentico/KInspector,Kentico/KInspector,ChristopherJennings/KInspector,Kentico/KInspector,ChristopherJennings/KInspector
b1a6eaae8cd7140455580c5094fe3e32089b3114
Source/ArduinoSketchUploader/Program.cs
Source/ArduinoSketchUploader/Program.cs
using System; using ArduinoUploader; namespace ArduinoSketchUploader { /// <summary> /// The ArduinoSketchUploader can upload a compiled (Intel) HEX file directly to an attached Arduino. /// </summary> internal class Program { private enum StatusCodes { Success, ...
using System; using ArduinoUploader; using NLog; namespace ArduinoSketchUploader { /// <summary> /// The ArduinoSketchUploader can upload a compiled (Intel) HEX file directly to an attached Arduino. /// </summary> internal class Program { private static readonly Logger logger = LogManager....
Add progress example to command line program
Add progress example to command line program
C#
mit
christophediericx/ArduinoSketchUploader
634967d08c4e625d3d5c1e119bfb6cafb922e2e7
Framework/Extension.cs
Framework/Extension.cs
using System; using System.Collections.Generic; using System.Net; using System.Threading; using System.Threading.Tasks; namespace TirkxDownloader.Framework { public static class Extension { public static async Task<HttpWebResponse> GetResponseAsync(this HttpWebRequest request, CancellationToken ct) ...
using System; using System.Collections.Generic; using System.Net; using System.Threading; using System.Threading.Tasks; namespace TirkxDownloader.Framework { public static class Extension { public static async Task<HttpWebResponse> GetResponseAsync(this HttpWebRequest request, CancellationToken ct) ...
Add Dequeue<T>(int count) for dequeue specified items in Queue<T> by count when enumberate
Add Dequeue<T>(int count) for dequeue specified items in Queue<T> by count when enumberate
C#
mit
witoong623/TirkxDownloader,witoong623/TirkxDownloader
733326b329a42ec38b416c27aab0d40855280860
Wox.Core/Configuration/IPortable.cs
Wox.Core/Configuration/IPortable.cs
 namespace Wox.Core.Configuration { public interface IPortable { void RemoveShortcuts(); void RemoveUninstallerEntry(); void CreateShortcuts(); void CreateUninstallerEntry(); void MoveUserDataFolder(string fromLocation, string toLocation); void VerifyUserDataAfte...
 namespace Wox.Core.Configuration { public interface IPortable { void EnablePortableMode(); void DisablePortableMode(); void RemoveShortcuts(); void RemoveUninstallerEntry(); void CreateShortcuts(); void CreateUninstallerEntry(); void MoveUserDataFolder(s...
Revert accidental removal of interface methods
Revert accidental removal of interface methods
C#
mit
Wox-launcher/Wox,Wox-launcher/Wox,qianlifeng/Wox,qianlifeng/Wox,qianlifeng/Wox
693a4ff474ea957bd1d8bc4276b3d75616904278
osu.Game/Screens/Edit/Timing/EffectSection.cs
osu.Game/Screens/Edit/Timing/EffectSection.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.Bindables; using osu.Game.Beatmaps.ControlPoints; using osu.Game.Graphics.UserInterfaceV2; namespace osu.Game.Screens...
// 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.Bindables; using osu.Game.Beatmaps.ControlPoints; using osu.Game.Graphics.UserInterfaceV2; namespace osu.Game.Screens...
Add change handling for effects section
Add change handling for effects section
C#
mit
ppy/osu,smoogipoo/osu,NeoAdonis/osu,ppy/osu,smoogipoo/osu,peppy/osu,peppy/osu-new,smoogipoo/osu,ppy/osu,peppy/osu,UselessToucan/osu,UselessToucan/osu,NeoAdonis/osu,smoogipooo/osu,UselessToucan/osu,peppy/osu,NeoAdonis/osu