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 |
|---|---|---|---|---|---|---|---|---|
b93b350d6266f7bec4c2ccdf89a385ac4845d0f2 | implement Case.ToString() | miraimann/Knuth-Morris-Pratt | KnuthMorrisPratt/KnuthMorrisPratt.Tests/Case.cs | KnuthMorrisPratt/KnuthMorrisPratt.Tests/Case.cs | using System.Collections.Generic;
namespace KnuthMorrisPratt.Tests
{
public class Case<T>
{
public Case(IEnumerable<T> pattern, IEnumerable<T> sequence)
{
Pattern = pattern;
Sequence = sequence;
}
public IEnumerable<T> Pattern { get; private set; }
... | using System.Collections.Generic;
namespace KnuthMorrisPratt.Tests
{
public class Case<T>
{
public Case(IEnumerable<T> pattern, IEnumerable<T> sequence)
{
Pattern = pattern;
Sequence = sequence;
}
public IEnumerable<T> Pattern { get; private set; }
... | mit | C# |
afa083f6c03d9e5dfc8f722716edd8158ac65271 | Reduce number of function calls. | jesterret/ReClass.NET,jesterret/ReClass.NET,KN4CK3R/ReClass.NET,jesterret/ReClass.NET,KN4CK3R/ReClass.NET,KN4CK3R/ReClass.NET | MemorySearcher/Comparer/StringMemoryComparer.cs | MemorySearcher/Comparer/StringMemoryComparer.cs | using System;
using System.Diagnostics;
using System.Text;
using ReClassNET.Util;
namespace ReClassNET.MemorySearcher.Comparer
{
public class StringMemoryComparer : IMemoryComparer
{
public SearchCompareType CompareType => SearchCompareType.Equal;
public bool CaseSensitive { get; }
public Encoding Encoding { ... | using System;
using System.Diagnostics;
using System.Text;
using ReClassNET.Util;
namespace ReClassNET.MemorySearcher.Comparer
{
public class StringMemoryComparer : IMemoryComparer
{
public SearchCompareType CompareType => SearchCompareType.Equal;
public bool CaseSensitive { get; }
public Encoding Encoding { ... | mit | C# |
ff5f5f93ca09bd670f48127fc4194d1ce25bf244 | Remove unused namespaces and fix own namespace in Program | pauldendulk/Mapsui,charlenni/Mapsui,charlenni/Mapsui | Samples/Mapsui.Samples.Avalonia/Program.cs | Samples/Mapsui.Samples.Avalonia/Program.cs | using Avalonia;
using Avalonia.ReactiveUI;
using Mapsui.UI.Avalonia;
namespace Mapsui.Samples.Avalonia
{
class Program
{
// Initialization code. Don't use any Avalonia, third-party APIs or any
// SynchronizationContext-reliant code before AppMain is called: things aren't initialized
//... | using System;
using Avalonia;
using Avalonia.Controls.ApplicationLifetimes;
using Avalonia.ReactiveUI;
namespace Mapsui.UI.Avalonia
{
class Program
{
// Initialization code. Don't use any Avalonia, third-party APIs or any
// SynchronizationContext-reliant code before AppMain is called: things ... | mit | C# |
ffd5d73fb91ec8d57d40dd74b8e0d9a4c5564fdf | Refactor retry request interval into a constant | rfgamaral/SlackUI | SlackUI/Handlers/BrowserResourceHandler.cs | SlackUI/Handlers/BrowserResourceHandler.cs | #region Copyright © 2014 Ricardo Amaral
/*
* Use of this source code is governed by an MIT-style license that can be found in the LICENSE file.
*/
#endregion
using System.Net;
using System.Text.RegularExpressions;
using System.Threading;
using CefSharp;
namespace SlackUI {
internal class BrowserResourceHand... | #region Copyright © 2014 Ricardo Amaral
/*
* Use of this source code is governed by an MIT-style license that can be found in the LICENSE file.
*/
#endregion
using System.Net;
using System.Text.RegularExpressions;
using System.Threading;
using CefSharp;
namespace SlackUI {
internal class BrowserResourceHand... | mit | C# |
cc70e407e0cdff34136dbab73b084a67bed1ec96 | extend what a control and what a data frame is | kabsila/WebSocket.Portable,esskar/WebSocket.Portable,lopper/WebSocket.Portable | WebSocket.Portable.Core/WebSocketOpcode.cs | WebSocket.Portable.Core/WebSocketOpcode.cs | namespace WebSocket.Portable
{
public enum WebSocketOpcode : byte
{
/// <summary>
/// Equivalent to numeric value 0.
/// Indicates a continuation frame.
/// </summary>
Continuation = 0x0,
/// <summary>
/// Equivalent to numeric value 1.
/// Indic... | namespace WebSocket.Portable
{
public enum WebSocketOpcode : byte
{
/// <summary>
/// Equivalent to numeric value 0.
/// Indicates a continuation frame.
/// </summary>
Cont = 0x0,
/// <summary>
/// Equivalent to numeric value 1.
/// Indicates a t... | apache-2.0 | C# |
afe59bd09676411cabeb23be96f85fd38fadb713 | Make LruCache configurable | Smartrak/TileSharp,Smartrak/TileSharp | TileSharp.LruCache/LruCache.cs | TileSharp.LruCache/LruCache.cs | using System;
using System.Collections.Generic;
using CSharpTest.Net.Collections;
using NetTopologySuite.Features;
namespace TileSharp.LruCache
{
public class LruCache : IFeatureCache
{
private readonly int _minLevelToCache;
private readonly LurchTable<Key, List<Feature>> _lurchTable;
public LruCache(int max... | using System;
using System.Collections.Generic;
using CSharpTest.Net.Collections;
using NetTopologySuite.Features;
namespace TileSharp.LruCache
{
public class LruCache : IFeatureCache
{
private readonly LurchTable<Key, List<Feature>> _lurchTable = new LurchTable<Key, List<Feature>>(500);
public List<Feature> F... | bsd-2-clause | C# |
747f4f43fa6ff91994b39303f6e3aba8ba81e37f | Add dayOfWeek to TimeSlot | victoria92/university-program-generator,victoria92/university-program-generator | UniProgramGen/Data/TimeSlot.cs | UniProgramGen/Data/TimeSlot.cs | using System;
namespace UniProgramGen.Data
{
public class TimeSlot
{
public readonly DateTime startTime;
public readonly DateTime endTime;
public readonly byte dayOfWeek;
public TimeSlot(DateTime startTime, DateTime endTime, byte dayOfWeek)
{
this.startTime... | using System;
namespace UniProgramGen.Data
{
public class TimeSlot
{
public readonly DateTime startTime;
public readonly DateTime endTime;
public TimeSlot(DateTime startTime, DateTime endTime)
{
this.startTime = startTime;
this.endTime = endTime;
... | bsd-2-clause | C# |
f150554231e8d1167db8db9cb3420168050c9b6c | Fix stop using on exit | duaiwe/ld36 | src/Assets/GameObjects/Aletheia/Scripts/UsageController.cs | src/Assets/GameObjects/Aletheia/Scripts/UsageController.cs | using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System;
public class UsageController : MonoBehaviour
{
private Rigidbody2D rb2d;
private UsableObjectCS collidingWith = null;
private bool isUsing = false;
private bool startedUsing = false;
private bool stoppedUsing = false;
... | using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System;
public class UsageController : MonoBehaviour
{
private Rigidbody2D rb2d;
private UsableObjectCS collidingWith = null;
private bool startedUsing = false;
private bool stoppedUsing = false;
// Use this for initializatio... | mit | C# |
24986270c14e860c8e7e711403ffc37a1d29c8c0 | fix line endings | Unity-Technologies/CodeEditor,Unity-Technologies/CodeEditor | src/CodeEditor.Text.UI.Unity.Engine/ITextViewAdornments.cs | src/CodeEditor.Text.UI.Unity.Engine/ITextViewAdornments.cs | using UnityEngine;
namespace CodeEditor.Text.UI.Unity.Engine
{
internal interface ITextViewAdornments
{
void Draw(ITextViewLine line, Rect lineRect);
}
}
| using UnityEngine;
namespace CodeEditor.Text.UI.Unity.Engine
{
internal interface ITextViewAdornments
{
void Draw(ITextViewLine line, Rect lineRect);
}
} | mit | C# |
b6afd6e8e8e30f62de5c0ad8d371610746f582d8 | Make Provider.Updated nullable | SkillsFundingAgency/das-commitments,SkillsFundingAgency/das-commitments,SkillsFundingAgency/das-commitments | src/CommitmentsV2/SFA.DAS.CommitmentsV2/Models/Provider.cs | src/CommitmentsV2/SFA.DAS.CommitmentsV2/Models/Provider.cs | using System;
using System.Threading.Tasks;
using SFA.DAS.CommitmentsV2.Api.Types.Types;
using SFA.DAS.CommitmentsV2.Domain.Interfaces;
using SFA.DAS.CommitmentsV2.Domain.ValueObjects;
namespace SFA.DAS.CommitmentsV2.Models
{
public class Provider
{
public Provider()
{
}
... | using System;
using System.Threading.Tasks;
using SFA.DAS.CommitmentsV2.Api.Types.Types;
using SFA.DAS.CommitmentsV2.Domain.Interfaces;
using SFA.DAS.CommitmentsV2.Domain.ValueObjects;
namespace SFA.DAS.CommitmentsV2.Models
{
public class Provider
{
public Provider()
{
}
... | mit | C# |
2d4ff1c0a6762fc0cbf62f4e3ba7ddd8dee3af7b | Optimize easings | nikeee/HolzShots | src/HolzShots.Core/Input/Selection/Animation/EasingMath.cs | src/HolzShots.Core/Input/Selection/Animation/EasingMath.cs | using System.Drawing;
using System.Numerics;
using System.Runtime.CompilerServices;
namespace HolzShots.Input.Selection.Animation
{
/// <summary>
/// Ref on some of them:
/// - https://www.febucci.com/2018/08/easing-functions/
/// - https://easings.net
/// </summary>
static class EasingMath
... | using System.Drawing;
namespace HolzShots.Input.Selection.Animation
{
/// <summary>
/// Ref on some of them:
/// - https://www.febucci.com/2018/08/easing-functions/
/// - https://easings.net
/// </summary>
static class EasingMath
{
public static Rectangle EaseOut(float amount, Recta... | agpl-3.0 | C# |
327dabb243112510d403094b89b2ad597fdf02cc | Fix namespace for Clear extension. | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore | src/Microsoft.AspNet.Http.Extensions/ResponseExtensions.cs | src/Microsoft.AspNet.Http.Extensions/ResponseExtensions.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 Microsoft.AspNet.Http.Features;
namespace Microsoft.AspNet.Http
{
public static class ResponseExtensions
{
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 Microsoft.AspNet.Http.Features;
namespace Microsoft.AspNet.Http.Extensions
{
public static class ResponseExtensions
{
... | apache-2.0 | C# |
c18cadf4d0b73d7bebe97c841199264c03d1f0ba | Add IPerformanceMetricDiscoverer.GetMetrics See #10. | ianhays/xunit-performance,Microsoft/xunit-performance,mmitche/xunit-performance,pharring/xunit-performance,visia/xunit-performance,Microsoft/xunit-performance,ericeil/xunit-performance | src/xunit.performance.core/IPerformanceMetricDiscoverer.cs | src/xunit.performance.core/IPerformanceMetricDiscoverer.cs | using System.Collections.Generic;
namespace Microsoft.Xunit.Performance
{
/// <summary>
/// Implemented by discoverers that provide metrics to performance tests.
/// </summary>
public interface IPerformanceMetricDiscoverer
{
/// <summary>
/// Gets the performance metrics from the ... | namespace Microsoft.Xunit.Performance
{
/// <summary>
/// Implemented by discoverers that provide metrics to performance tests.
/// </summary>
public interface IPerformanceMetricDiscoverer
{
}
}
| mit | C# |
bb711862852223ac46b577dbb2f07ef8005a4de7 | Manage initial agents' position | wbap/lis,wbap/lis,wbap/lis | unity-sample-environment/Assets/Scripts/SceneController.cs | unity-sample-environment/Assets/Scripts/SceneController.cs | using UnityEngine;
using System.Collections.Generic;
using System.Threading;
using MsgPack;
namespace MLPlayer {
public class SceneController : MonoBehaviour {
// singleton
protected static SceneController instance;
public static SceneController Instance {
get {
if(instance == null) {
instance = (... | using UnityEngine;
using System.Collections.Generic;
using System.Threading;
using MsgPack;
namespace MLPlayer {
public class SceneController : MonoBehaviour {
// singleton
protected static SceneController instance;
public static SceneController Instance {
get {
if(instance == null) {
instance = (... | apache-2.0 | C# |
87922770c6c2b8f5ed55ad56a56dea808a0e2ef7 | Remove unnecessary enumerator.Reset() from foreach() handling -- causes problems with IEnumerable created from LINQ | kayateia/scriptdotnet,kayateia/scriptdotnet | AST/ScriptForEachStatement.cs | AST/ScriptForEachStatement.cs | #region using
using Irony.Compiler;
using System.Collections;
using ScriptNET.Runtime;
using System;
#endregion
namespace ScriptNET.Ast
{
/// <summary>
/// ForEachStatement
/// </summary>
internal class ScriptForEachStatement : ScriptStatement
{
private Token name;
private ScriptExpr expr;
priva... | #region using
using Irony.Compiler;
using System.Collections;
using ScriptNET.Runtime;
using System;
#endregion
namespace ScriptNET.Ast
{
/// <summary>
/// ForEachStatement
/// </summary>
internal class ScriptForEachStatement : ScriptStatement
{
private Token name;
private ScriptExpr expr;
priva... | mit | C# |
580773e6bd4b98bd02d2a71c295fb0836658916f | Remove some forgotten debugging code | riganti/dotvvm,riganti/dotvvm,riganti/dotvvm,riganti/dotvvm | src/DotVVM.Compiler/Program.cs | src/DotVVM.Compiler/Program.cs | using System;
using System.IO;
using System.Linq;
namespace DotVVM.Compiler
{
public static class Program
{
private static void PrintHelp(TextWriter? writer = null)
{
var executableName = Path.GetFileNameWithoutExtension(Environment.GetCommandLineArgs()[0]);
writer ??= C... | using System;
using System.IO;
using System.Linq;
namespace DotVVM.Compiler
{
public static class Program
{
private static void PrintHelp(TextWriter? writer = null)
{
var executableName = Path.GetFileNameWithoutExtension(Environment.GetCommandLineArgs()[0]);
writer ??= C... | apache-2.0 | C# |
c1eed4ebf73f55dab5c9f4d71acebf68966c20b0 | fix file versions | ssg/SimpleBase32,ssg/SimpleBase,ssg/SimpleBase | src/Properties/AssemblyInfo.cs | src/Properties/AssemblyInfo.cs | using System;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: CLSCompliant(true)]
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated wi... | using System;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: CLSCompliant(true)]
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated wi... | apache-2.0 | C# |
6d705cd7cd26f067ff1e0ad073bb05c1f9f3c2c1 | Remove WorkerCount override | mycroes/SupportManager,mycroes/SupportManager,mycroes/SupportManager | SupportManager.Control/SupportManagerService.cs | SupportManager.Control/SupportManagerService.cs | using Hangfire;
using Hangfire.SqlServer;
using StructureMap;
using SupportManager.Control.Infrastructure;
using Topshelf;
namespace SupportManager.Control
{
public class SupportManagerService : ServiceControl
{
private readonly IContainer container;
private BackgroundJobServer jobServer;
... | using Hangfire;
using Hangfire.SqlServer;
using StructureMap;
using SupportManager.Control.Infrastructure;
using Topshelf;
namespace SupportManager.Control
{
public class SupportManagerService : ServiceControl
{
private readonly IContainer container;
private BackgroundJobServer jobServer;
... | mit | C# |
0d23e180c9d6912fb8acabcd76d579a86498cc87 | Remove sleep. | jhsowter/Berf,jhsowter/Berf,jhsowter/Berf | BerfWeb/Controllers/HomeController.cs | BerfWeb/Controllers/HomeController.cs | using System.Web.Mvc;
//using berf.Controllers;
namespace BerfWeb.Controllers
{
using System.Threading;
public class HomeController : Controller
{
public ActionResult Index()
{
return View();
}
public ActionResult About()
{
ViewBag.Message... | using System.Web.Mvc;
//using berf.Controllers;
namespace BerfWeb.Controllers
{
using System.Threading;
public class HomeController : Controller
{
public ActionResult Index()
{
Thread.Sleep(1300);
return View();
}
public ActionResult About()
... | apache-2.0 | C# |
aa2062ae74e8e49a397542d1b0725af73d25e06c | Fix unneeded viewport refreshes | tzachshabtay/MonoAGS | Source/Engine/AGS.Engine/Graphics/Logic/GLViewportMatrix.cs | Source/Engine/AGS.Engine/Graphics/Logic/GLViewportMatrix.cs | using AGS.API;
namespace AGS.Engine
{
public class GLViewportMatrix : IGLViewportMatrix
{
private Matrix4 _lastMatrix;
private float _lastScaleX, _lastScaleY, _lastX, _lastY, _lastParallaxSpeedX, _lastParallaxSpeedY, _lastRotation;
public GLViewportMatrix()
{
_lastScaleX = 1f;
_lastScaleY = 1f;
_l... | using AGS.API;
namespace AGS.Engine
{
public class GLViewportMatrix : IGLViewportMatrix
{
private Matrix4 _lastMatrix;
private float _lastScaleX, _lastScaleY, _lastX, _lastY, _lastParallaxSpeedX, _lastParallaxSpeedY, _lastRotation;
public GLViewportMatrix()
{
_lastScaleX = 1f;
_lastScaleY = 1f;
_l... | artistic-2.0 | C# |
fa302e269a00eb9e22e56c3d836955743fe0a7b5 | update Copyright (c) 2017 - 2020 NDark | NDark/ndinfrastructure,NDark/ndinfrastructure | DotNet/MathTools/MathTools.cs | DotNet/MathTools/MathTools.cs | /**
MIT License
Copyright (c) 2017 - 2020 NDark
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, merge, publish... | /**
MIT License
Copyright (c) 2017 - 2019 NDark
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, merge, publish... | mit | C# |
cc51036128876d4904cd470973cb9523250c083b | Fix the wrong conditional statement. | mdavid/nuget,mdavid/nuget | src/Dialog/PackageManagerUI/SmartOutputConsoleProvider.cs | src/Dialog/PackageManagerUI/SmartOutputConsoleProvider.cs | using NuGet.OutputWindowConsole;
using NuGetConsole;
namespace NuGet.Dialog.PackageManagerUI {
internal class SmartOutputConsoleProvider : IOutputConsoleProvider {
private readonly IOutputConsoleProvider _baseProvider;
private bool _isFirstTime = true;
public SmartOutputConsoleP... | using NuGet.OutputWindowConsole;
using NuGetConsole;
namespace NuGet.Dialog.PackageManagerUI {
internal class SmartOutputConsoleProvider : IOutputConsoleProvider {
private readonly IOutputConsoleProvider _baseProvider;
private bool _isFirstTime = true;
public SmartOutputConsoleP... | apache-2.0 | C# |
1f5c551fd0b38d2e79e564fbed4f5cf46a790942 | Use Dictionary to hold Playlist songs | GodTamIt/.NET-Google-Music-API | GoogleMusicAPI.NET/Models/Playlist.cs | GoogleMusicAPI.NET/Models/Playlist.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace GoogleMusic
{
public class Playlist
{
#region Properties: Info
[JsonProperty("title")]
public s... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace GoogleMusic
{
public class Playlist
{
#region Properties: Info
[JsonProperty("title")]
public s... | mit | C# |
fd9132e6e94220fc5d6709cce85a82dd1a44f32c | fix for DesignMode | inthehand/InTheHand.Forms | InTheHand.Forms/DesignMode.cs | InTheHand.Forms/DesignMode.cs | using System.Reflection;
using Xamarin.Forms;
namespace InTheHand.Forms
{
/// <summary>
/// Enables you to detect whether your app is in design mode in the Xamarin Forms Previewer.
/// </summary>
public static class DesignMode
{
/// <summary>
/// Gets a value that indicates whether... | using Xamarin.Forms;
namespace InTheHand.Forms
{
/// <summary>
/// Enables you to detect whether your app is in design mode in the Xamarin Forms Previewer.
/// </summary>
public static class DesignMode
{
/// <summary>
/// Gets a value that indicates whether the process is running i... | mit | C# |
048b22e290b3c495a09b3f034e5cba7b852c9e2d | Update Help.cs (#1968) | mbdavid/LiteDB | LiteDB.Shell/Commands/Help.cs | LiteDB.Shell/Commands/Help.cs | using System;
using System.Linq;
using System.Reflection;
using System.Text;
namespace LiteDB.Shell.Commands
{
internal class HelpAttribute : Attribute
{
public string Name { get; set; }
public string Syntax { get; set; }
public string Description { get; set; }
public string[] ... | using System;
using System.Linq;
using System.Reflection;
using System.Text;
namespace LiteDB.Shell.Commands
{
internal class HelpAttribute : Attribute
{
public string Name { get; set; }
public string Syntax { get; set; }
public string Description { get; set; }
public string[] ... | mit | C# |
af76ed3b922302e53c8e660d0a6576a94fd0aba8 | Update AssemblyInfo | MathosProject/Mathos-Parser | MathParser/Properties/AssemblyInfo.cs | MathParser/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
// Управление общими сведениями о сборке осуществляется с помощью
// набора атрибутов. Измените значения этих атрибутов, чтобы изменить сведения,
// связанные со сборкой.
[assembly: AssemblyTitle("MathParser")]
[assembly: AssemblyDescription("http://math... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Resources;
// Управление общими сведениями о сборке осуществляется с помощью
// набора атрибутов. Измените значения этих атрибутов, чтобы изменить сведения,
// связанные со сборкой.
[assembly: AssemblyT... | bsd-3-clause | C# |
1dba5496acda621456ff9fd79cb1d3d08b7c4caa | Fix missing assemblies | ryanvalentin/disqus-oauth-azure | OAuthCallbackHttpTrigger/endpoint.csx | OAuthCallbackHttpTrigger/endpoint.csx | using System.Net;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Text;
private static HttpResponseMessage GetResponse(Dictionary<string, string> payload, HttpStatusCode status)
{
var response = new HttpResponseMessage();
StringBuilder sb = new StringBuilder();
sb.Append("<html><body>");... | using System.Net;
using System.Net.Http;
private static HttpResponseMessage GetResponse(Dictionary<string, string> payload, HttpStatusCode status)
{
var response = new HttpResponseMessage();
StringBuilder sb = new StringBuilder();
sb.Append("<html><body>");
foreach (var kv in payload)
{
sb.... | mit | C# |
fb743db207ea00dea1ef05310b82f41e84ce8053 | Improve exception logging in ForumService. | Midnight-Myth/Mitternacht-NEW,Midnight-Myth/Mitternacht-NEW,Midnight-Myth/Mitternacht-NEW,Midnight-Myth/Mitternacht-NEW | src/MitternachtBot/Modules/Forum/Services/ForumService.cs | src/MitternachtBot/Modules/Forum/Services/ForumService.cs | using System;
using System.Threading.Tasks;
using Mitternacht.Services;
using NLog;
namespace Mitternacht.Modules.Forum.Services {
public class ForumService : IMService {
private readonly IBotCredentials _creds;
private readonly Logger _log;
public GommeHDnetForumAPI.Forum Forum { get; private set; }
public ... | using System.Threading.Tasks;
using Mitternacht.Services;
using NLog;
namespace Mitternacht.Modules.Forum.Services {
public class ForumService : IMService {
private readonly IBotCredentials _creds;
private readonly Logger _log;
public GommeHDnetForumAPI.Forum Forum { get; private set; }
public bool HasForumI... | mit | C# |
1d743b5d3f43894b522af90ee9cb8e6a5583dde1 | Allow restart on unrestricted. | YAFNET/YAFNET,YAFNET/YAFNET,Pathfinder-Fr/YAFNET,YAFNET/YAFNET,mexxanit/YAFNET,mexxanit/YAFNET,moorehojer/YAFNET,mexxanit/YAFNET,moorehojer/YAFNET,Pathfinder-Fr/YAFNET,Pathfinder-Fr/YAFNET,moorehojer/YAFNET,YAFNET/YAFNET | yafsrc/YetAnotherForum.NET/pages/admin/restartapp.ascx.cs | yafsrc/YetAnotherForum.NET/pages/admin/restartapp.ascx.cs | /* Yet Another Forum.NET
* Copyright (C) 2003-2005 Bjørnar Henden
* Copyright (C) 2006-2009 Jaben Cargman
* http://www.yetanotherforum.net/
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software ... | /* Yet Another Forum.NET
* Copyright (C) 2003-2005 Bjørnar Henden
* Copyright (C) 2006-2009 Jaben Cargman
* http://www.yetanotherforum.net/
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software ... | apache-2.0 | C# |
d0472998a677dbe6a41fe67f82a7ef6a1695ef47 | Fix restartroundnow. | space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14 | Content.Server/GameTicking/Commands/RestartRoundCommand.cs | Content.Server/GameTicking/Commands/RestartRoundCommand.cs | using System;
using Content.Server.Administration;
using Content.Server.RoundEnd;
using Content.Shared.Administration;
using Robust.Shared.Console;
using Robust.Shared.GameObjects;
using Robust.Shared.IoC;
namespace Content.Server.GameTicking.Commands
{
[AdminCommand(AdminFlags.Server)]
public class RestartRo... | using System;
using Content.Server.Administration;
using Content.Server.RoundEnd;
using Content.Shared.Administration;
using Robust.Shared.Console;
using Robust.Shared.GameObjects;
using Robust.Shared.IoC;
namespace Content.Server.GameTicking.Commands
{
[AdminCommand(AdminFlags.Server)]
public class RestartRo... | mit | C# |
8ece91241eb42ad2840616a42e43171e60221be1 | Update DisplayHideGridlines.cs | maria-shahid-aspose/Aspose.Cells-for-.NET,aspose-cells/Aspose.Cells-for-.NET,asposecells/Aspose_Cells_NET,aspose-cells/Aspose.Cells-for-.NET,asposecells/Aspose_Cells_NET,aspose-cells/Aspose.Cells-for-.NET,maria-shahid-aspose/Aspose.Cells-for-.NET,maria-shahid-aspose/Aspose.Cells-for-.NET,maria-shahid-aspose/Aspose.Cell... | Examples/CSharp/Worksheets/Display/DisplayHideGridlines.cs | Examples/CSharp/Worksheets/Display/DisplayHideGridlines.cs | using System.IO;
using Aspose.Cells;
namespace Aspose.Cells.Examples.Worksheets.Display
{
public class DisplayHideGridlines
{
public static void Main(string[] args)
{
//ExStart:1
// The path to the documents directory.
string dataDir = Aspose.Cells.Examples.... | using System.IO;
using Aspose.Cells;
namespace Aspose.Cells.Examples.Worksheets.Display
{
public class DisplayHideGridlines
{
public static void Main(string[] args)
{
// The path to the documents directory.
string dataDir = Aspose.Cells.Examples.Utils.GetDataDir(System.... | mit | C# |
0126efff4ca146da283d3f4a1004c4de053951c8 | Put actual content on home page | Chess-Variants-Training/Chess-Variants-Training,Chess-Variants-Training/Chess-Variants-Training,Chess-Variants-Training/Chess-Variants-Training | src/ChessVariantsTraining/Views/Home/Index.cshtml | src/ChessVariantsTraining/Views/Home/Index.cshtml | @section Title {Homepage}
@section Description{Chess Variants Training is a website where you can improve at chess variants.}
<h1>Chess Variants Training</h1>
<p>Welcome to Chess Variants Training! Here you can improve at chess variants. We support these variants: Antichess, Atomic chess, King of the Hill, Three-check... | @section Title {Homepage}
@section Description{Chess Variants Training is a website where you can improve at chess variants.}
Homepage of Chess Variants Training.
| agpl-3.0 | C# |
f175dde2b3197201392e2356baa7fbaabb0928a3 | Clean embed serialization up slightly | AntiTcb/Discord.Net,RogueException/Discord.Net | src/Discord.Net.Rest/API/Rest/UploadFileParams.cs | src/Discord.Net.Rest/API/Rest/UploadFileParams.cs | #pragma warning disable CS1591
using Discord.Net.Converters;
using Discord.Net.Rest;
using Newtonsoft.Json;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
namespace Discord.API.Rest
{
internal class UploadFileParams
{
private static JsonSerializer _ser... | #pragma warning disable CS1591
using Discord.Net.Converters;
using Discord.Net.Rest;
using Newtonsoft.Json;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
namespace Discord.API.Rest
{
internal class UploadFileParams
{
private static JsonSerializer _ser... | mit | C# |
fa2a989b2a065bbca944a464d9ae858c055b1822 | Add icons to completion list. | mrward/typescript-addin,mrward/typescript-addin,chrisber/typescript-addin,chrisber/typescript-addin | src/TypeScriptBinding/TypeScriptCompletionItem.cs | src/TypeScriptBinding/TypeScriptCompletionItem.cs | //
// TypeScriptCompletionItem.cs
//
// Author:
// Matt Ward <ward.matt@gmail.com>
//
// Copyright (C) 2013 Matthew Ward
//
// 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 r... | //
// TypeScriptCompletionItem.cs
//
// Author:
// Matt Ward <ward.matt@gmail.com>
//
// Copyright (C) 2013 Matthew Ward
//
// 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 r... | mit | C# |
56a231d5c376deaea9aa5a74825759c8b3b8975f | Allow SerializableAttribute on Enums (#672) | ronnymgm/csla-light,rockfordlhotka/csla,MarimerLLC/csla,rockfordlhotka/csla,rockfordlhotka/csla,MarimerLLC/csla,ronnymgm/csla-light,JasonBock/csla,ronnymgm/csla-light,JasonBock/csla,jonnybee/csla,jonnybee/csla,JasonBock/csla,jonnybee/csla,MarimerLLC/csla | Source/Csla.Shared/Serialization/SerializationAttribute.cs | Source/Csla.Shared/Serialization/SerializationAttribute.cs | #if NETFX_CORE
//-----------------------------------------------------------------------
// <copyright file="SerializationAttribute.cs" company="Marimer LLC">
// Copyright (c) Marimer LLC. All rights reserved.
// Website: http://www.lhotka.net/cslanet/
// </copyright>
// <summary>Indicates that an object may b... | #if NETFX_CORE
//-----------------------------------------------------------------------
// <copyright file="SerializationAttribute.cs" company="Marimer LLC">
// Copyright (c) Marimer LLC. All rights reserved.
// Website: http://www.lhotka.net/cslanet/
// </copyright>
// <summary>Indicates that an object may b... | mit | C# |
533ed96d61cfcbc4391bd4848461532b7e7c662b | add shortcut constructor to view model | coderUT/Dragablz,ButchersBoy/Dragablz | Dragablz/HeaderedItemViewModel.cs | Dragablz/HeaderedItemViewModel.cs | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
namespace Dragablz
{
/// <summary>
/// Helper class to create view models, particularly for tool/MDI windows.
/// </summar... | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
namespace Dragablz
{
/// <summary>
/// Helper class to create view models, particularly for tool/MDI windows.
/// </summar... | mit | C# |
30fb5832d495d8721ae4ea610f2942bf1f9864cb | Create CheckTargetTransformOcclusion() | bartlomiejwolk/OcclusionTrigger | Trigger.cs | Trigger.cs | using UnityEngine;
using System.Collections;
using UnityEngine.Events;
namespace OcclusionTrigger {
/// <summary>
/// Performs an action when specified transform is occluded.
/// </summary>
/// <remarks>
/// Put it on the camera component.
/// </remarks>
public sealed class Trigger : Mono... | using UnityEngine;
using System.Collections;
using UnityEngine.Events;
namespace OcclusionTrigger {
/// <summary>
/// Performs an action when specified transform is occluded.
/// </summary>
/// <remarks>
/// Put it on the camera component.
/// </remarks>
public sealed class Trigger : Mono... | mit | C# |
130a3bb1ca7dfe42328bf97d4b3857a466abc4dd | Replace app name for special cases in team city check | ericdc1/DTMF,ericdc1/DTMF,ericdc1/DTMF | Source/DTMF.Website/Logic/TeamCity.cs | Source/DTMF.Website/Logic/TeamCity.cs | using System.Linq;
using System.Text;
using TeamCitySharp;
using TeamCitySharp.Locators;
namespace DTMF.Logic
{
public class TeamCity
{
public static bool IsRunning(StringBuilder sb, string appName)
{
//remove prefix and suffixes from app names so same app can go to multiple places... | using System.Linq;
using System.Text;
using TeamCitySharp;
using TeamCitySharp.Locators;
namespace DTMF.Logic
{
public class TeamCity
{
public static bool IsRunning(StringBuilder sb, string appName)
{
//skip if not configured
if (System.Configuration.ConfigurationManage... | mit | C# |
61d69315b07dee95006bc8e1b722360865973342 | Fix a bug in the 'ret void' implementation | jonathanvdc/flame-llvm,jonathanvdc/flame-llvm,jonathanvdc/flame-llvm | Flame.LLVM/Codegen/ReturnBlock.cs | Flame.LLVM/Codegen/ReturnBlock.cs | using System;
using Flame.Compiler;
using LLVMSharp;
using static LLVMSharp.LLVM;
namespace Flame.LLVM.Codegen
{
/// <summary>
/// A code block implementation that returns a value from a method.
/// </summary>
public sealed class ReturnBlock : CodeBlock
{
public ReturnBlock(
LL... | using System;
using Flame.Compiler;
using LLVMSharp;
using static LLVMSharp.LLVM;
namespace Flame.LLVM.Codegen
{
/// <summary>
/// A code block implementation that returns a value from a method.
/// </summary>
public sealed class ReturnBlock : CodeBlock
{
public ReturnBlock(
LL... | mit | C# |
bb8c9badb2d0c8c668207ff04452132e32f0acb9 | update commit | come25136/Function-Key-Setting | FKS/Properties/AssemblyInfo.cs | FKS/Properties/AssemblyInfo.cs | using System.Resources;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// アセンブリに関する一般情報は以下の属性セットをとおして制御されます。
// アセンブリに関連付けられている情報を変更するには、
// これらの属性値を変更してください。
[assembly: AssemblyTitle("Function Key Setting")]
[assembly: AssemblyDescription("")]
[assembly: Assembl... | using System.Resources;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// アセンブリに関する一般情報は以下の属性セットをとおして制御されます。
// アセンブリに関連付けられている情報を変更するには、
// これらの属性値を変更してください。
[assembly: AssemblyTitle("Function Key Setting")]
[assembly: AssemblyDescription("")]
[assembly: Assembl... | mit | C# |
db1d2ca9d3aae64f1d333c47bb26c078c13cb07b | Make ToString() short and provide Details() | manio143/ShadowsOfShadows | src/Items/Item.cs | src/Items/Item.cs | using System;
namespace ShadowsOfShadows.Items
{
public abstract class Item
{
protected string Name { get; set; }
protected string StatsString { get; set; }
public Item(string name, string stats)
{
Name = name;
StatsString = stats;
... | using System;
namespace ShadowsOfShadows.Items
{
public abstract class Item
{
protected String Name { get; set; }
protected String StatsString { get; set; }
public Item(String name, String stats)
{
Name = name;
StatsString = stats;
}
public overri... | mit | C# |
87e2171f324d04fa265669bea16944eeda107b7a | Add UnitTest for EditExpense#Amount. | ProjectBlueMonkey/BlueMonkey,ProjectBlueMonkey/BlueMonkey | client/BlueMonkey/BlueMonkey.Model.Tests/EditExpenseTest.cs | client/BlueMonkey/BlueMonkey.Model.Tests/EditExpenseTest.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BlueMonkey.ExpenseServices;
using BlueMonkey.MediaServices;
using BlueMonkey.TimeService;
using Moq;
using Xunit;
namespace BlueMonkey.Model.Tests
{
public class EditExpenseTest
{
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BlueMonkey.ExpenseServices;
using BlueMonkey.MediaServices;
using BlueMonkey.TimeService;
using Moq;
using Xunit;
namespace BlueMonkey.Model.Tests
{
public class EditExpenseTest
{
... | mit | C# |
5c91a74dd4e168594c0478032131839a77d9e10e | Fix typo in TagFirstLast test names | morelinq/MoreLINQ,fsateler/MoreLINQ,fsateler/MoreLINQ,morelinq/MoreLINQ,ddpruitt/morelinq,ddpruitt/morelinq | MoreLinq.Test/TagFirstLastTest.cs | MoreLinq.Test/TagFirstLastTest.cs | #region License and Terms
// MoreLINQ - Extensions to LINQ to Objects
// Copyright (c) 2008 Jonathan Skeet. All rights reserved.
//
// 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
//
// ... | #region License and Terms
// MoreLINQ - Extensions to LINQ to Objects
// Copyright (c) 2008 Jonathan Skeet. All rights reserved.
//
// 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
//
// ... | apache-2.0 | C# |
0954802ba0f81d186561b4f68701e417984b479a | fix bug #32: Редактирование многострочных сниппетов | schadin/NppGit,schadin/NppKate,schadin/NppKate,schadin/NppKate | NppGitPlugin/Forms/SnippetEdit.cs | NppGitPlugin/Forms/SnippetEdit.cs | using NppGit.Utils;
using System;
using System.Windows.Forms;
namespace NppGit.Forms
{
public partial class SnippetEdit : Form
{
public SnippetEdit()
{
InitializeComponent();
}
private void bOk_Click(object sender, EventArgs e)
{
if (!Utils.Snip... | using NppGit.Utils;
using System;
using System.Windows.Forms;
namespace NppGit.Forms
{
public partial class SnippetEdit : Form
{
public SnippetEdit()
{
InitializeComponent();
}
private void bOk_Click(object sender, EventArgs e)
{
if (!Utils.Snip... | bsd-3-clause | C# |
992501e2f4e465fc55debe29396c37b8933f305b | Make it so that the "objects" dropdown only enables when there are models available. | Bloyteg/RWXViewer,Bloyteg/RWXViewer,Bloyteg/RWXViewer,Bloyteg/RWXViewer | RWXViewer/Views/Home/Index.cshtml | RWXViewer/Views/Home/Index.cshtml | @{
ViewBag.Title = "RWX Viewer by Byte";
}
@section scripts
{
<script src="@Url.Content("~/Scripts/gl-matrix.js")"></script>
<script src="@Url.Content("~/Scripts/knockout-3.1.0.js")"></script>
<script src="@Url.Content("~/Scripts/require.js")" data-main="/Scripts/RWXViewer"></script>
<script src="... | @{
ViewBag.Title = "RWX Viewer by Byte";
}
@section scripts
{
<script src="@Url.Content("~/Scripts/gl-matrix.js")"></script>
<script src="@Url.Content("~/Scripts/knockout-3.1.0.js")"></script>
<script src="@Url.Content("~/Scripts/require.js")" data-main="/Scripts/RWXViewer"></script>
<script src="... | apache-2.0 | C# |
17a73912fd21287a8e8b9c064a9d95e08ee206b6 | Test a slightly more complicated list | Joe4evr/JiiLib,Joe4evr/JiiLib,Joe4evr/JiiLib | test/JiiLib.Components.Tests/DiffListRepoTests.cs | test/JiiLib.Components.Tests/DiffListRepoTests.cs | using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;
using JiiLib.Collections;
using JiiLib.Collections.DiffList;
using Xunit;
namespace JiiLib.Components.Tests
{
public class DiffListRepoTests
{
... | using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;
using JiiLib.Collections;
using JiiLib.Collections.DiffList;
using Xunit;
namespace JiiLib.Components.Tests
{
public class DiffListRepoTests
{
... | mit | C# |
d4635c4ac2253a0b4bbe916d3a9aaaf0021f39d3 | Add Preview interface. | LightPaper/Infrastructure | Contracts/PreviewInterfaces.cs | Contracts/PreviewInterfaces.cs | #region Using
using System.Collections.Generic;
using System.Threading.Tasks;
#endregion
namespace LightPaper.Infrastructure.Contracts
{
public interface IPreviewDecorator
{
string Guid { get; }
string Name { get; }
string GroupName { get; }
string Decorate(stri... | #region Using
using System.Collections.Generic;
#endregion
namespace LightPaper.Infrastructure.Contracts
{
public interface IPreviewDecorator
{
string Guid { get; }
string Name { get; }
string GroupName { get; }
string Decorate(string body);
}
public ... | mit | C# |
0dd396f9a5a2a72c417f07ad46ca01b227eabee0 | increment version number in prep for release | yhtsnda/im-only-resting,yagyemang/im-only-resting,ikazuaki/im-only-resting,ikazuaki/im-only-resting,krishnarajnairmk/im-only-resting,yhtsnda/im-only-resting,ikazuaki/im-only-resting,yagyemang/im-only-resting,yhtsnda/im-only-resting,krishnarajnairmk/im-only-resting,yagyemang/im-only-resting,krishnarajnairmk/im-only-rest... | Ior/Properties/AssemblyInfo.cs | Ior/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: AssemblyTi... | 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: AssemblyTi... | apache-2.0 | C# |
6b9224a656a756c812342b9d8de9e0702d0e3e92 | add utility methods to leastsquares struct | dkackman/LinqStatistics | LinqStatistics/LeastSquares.cs | LinqStatistics/LeastSquares.cs | using System;
namespace LinqStatistics
{
public struct LeastSquares
{
private double _m;
private double _b;
/// <summary>
/// M Coefficient for y = Mx + B
/// </summary>
public double M { get { return _m; } }
/// <summary>
/// B Coefficient for ... |
namespace LinqStatistics
{
public struct LeastSquares
{
private double _m;
private double _b;
/// <summary>
/// M Coefficient for y = Mx + B
/// </summary>
public double M { get { return _m; } }
/// <summary>
/// B Coefficient for y = Mx + B
... | apache-2.0 | C# |
fe7cd8f30f3601300a90fddceb34a3def2e729e1 | Store values of enum user settings as string | google/access-bridge-explorer | src/AccessBridgeExplorer/Utils/Settings/EnumUserSetting.cs | src/AccessBridgeExplorer/Utils/Settings/EnumUserSetting.cs | // Copyright 2016 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by... | // Copyright 2016 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by... | apache-2.0 | C# |
b945b6a2615b849815421dcaa31028cb5cd3390a | Update language version test | OmniSharp/omnisharp-roslyn,OmniSharp/omnisharp-roslyn | tests/OmniSharp.Script.Tests/ScriptProjectProviderTests.cs | tests/OmniSharp.Script.Tests/ScriptProjectProviderTests.cs | using System.IO;
using System.Linq;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.Scripting.Hosting;
using Microsoft.Extensions.Logging;
using OmniSharp.Services;
using Xunit;
namespace OmniSharp.Script.Tests
{
public class ScriptProjectProviderTests
{
... | using System.IO;
using System.Linq;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.Scripting.Hosting;
using Microsoft.Extensions.Logging;
using OmniSharp.Services;
using Xunit;
namespace OmniSharp.Script.Tests
{
public class ScriptProjectProviderTests
{
... | mit | C# |
ee25ec68c68101aa88649817e2fed534adf69167 | remove todo comment already done | QuickPay/quickpay-dotnet-client,AxelAndersen/quickpay-dotnet-client | QuickPay/QuickPayRestClient.cs | QuickPay/QuickPayRestClient.cs | using System;
using System.Net;
using System.Collections.Generic;
using System.Threading.Tasks;
using System.Threading;
using System.Text;
using RestSharp;
using RestSharp.Authenticators;
using Quickpay.Util;
using Quickpay.Models;
namespace Quickpay
{
public abstract class QuickPayRestClient
{
protected RestClie... | using System;
using System.Net;
using System.Collections.Generic;
using System.Threading.Tasks;
using System.Threading;
using System.Text;
using RestSharp;
using RestSharp.Authenticators;
using Quickpay.Util;
using Quickpay.Models;
namespace Quickpay
{
// TODO add to nuget
public abstract class QuickPayRestClient
... | mit | C# |
38e980d3809c447e3b08cf238c42af6375ea7ed1 | Fix build | jquintus/spikes,jquintus/spikes,jquintus/spikes,jquintus/spikes | ConsoleApps/FunWithSpikes/FunWithSpikes/Program.cs | ConsoleApps/FunWithSpikes/FunWithSpikes/Program.cs | using System;
namespace FunWithSpikes
{
internal class Program
{
private static void Main(string[] args)
{
}
}
} | using System;
namespace FunWithSpikes
{
internal class Program
{
private static void Main(string[] args)
{
new ReflectionTests().GetFuncs();
}
}
} | mit | C# |
589ebe7edd418e314aacbffd2ed95691c5af4cc6 | Remove writelines for testing | iron-io/iron_dotnet | src/IronSharp.Core/MqRestClient.cs | src/IronSharp.Core/MqRestClient.cs | using System;
using System.Collections.Specialized;
using System.IO;
using System.Net;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Threading.Tasks;
using System.Web;
using Common.Logging;
using System.Collections.Generic;
using System.Text;
namespace IronSharp.Core
{
public class MqRestClie... | using System;
using System.Collections.Specialized;
using System.IO;
using System.Net;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Threading.Tasks;
using System.Web;
using Common.Logging;
using System.Collections.Generic;
using System.Text;
namespace IronSharp.Core
{
public class MqRestClie... | mit | C# |
005367ab7e05c467a7ff4c54de93e6afad9356d2 | Remove done TODO | jskeet/DemoCode,jskeet/DemoCode,jskeet/DemoCode,jskeet/DemoCode | Drums/VDrumExplorer.Data/Fields/InstrumentField.cs | Drums/VDrumExplorer.Data/Fields/InstrumentField.cs | // Copyright 2019 Jon Skeet. All rights reserved.
// Use of this source code is governed by the Apache License 2.0,
// as found in the LICENSE.txt file.
using System;
namespace VDrumExplorer.Data.Fields
{
public class InstrumentField : NumericFieldBase, IPrimitiveField
{
public InstrumentField(FieldP... | // Copyright 2019 Jon Skeet. All rights reserved.
// Use of this source code is governed by the Apache License 2.0,
// as found in the LICENSE.txt file.
using System;
namespace VDrumExplorer.Data.Fields
{
// TODO: Make this a range field? Or an enum?
public class InstrumentField : NumericFieldBase, IPrimitiv... | apache-2.0 | C# |
8ea9b68971b5c2826da313c6e373ddde3f324a91 | fix adrien shiiit | vmizoules/serviceReseau | JediTournamentWPF/Pages/TournoiCreatorPage.xaml.cs | JediTournamentWPF/Pages/TournoiCreatorPage.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.Med... | 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.Med... | mit | C# |
330edf11062016b62f72da63e537a1cedacfc4f8 | Fix bug causing incorrect results when dateTime was >= dateTime.Now + 363d | DaveSenn/Extend | PortableExtensions/System.DateTime/DateTime.Age.cs | PortableExtensions/System.DateTime/DateTime.Age.cs | #region Using
using System;
#endregion
namespace PortableExtensions
{
/// <summary>
/// Class containing some extension methods for <see cref="DateTime" />.
/// </summary>
public static partial class DateTimeEx
{
/// <summary>
/// Calculates the difference between the yea... | #region Using
using System;
#endregion
namespace PortableExtensions
{
/// <summary>
/// Class containing some extension methods for <see cref="DateTime" />.
/// </summary>
public static partial class DateTimeEx
{
/// <summary>
/// Calculates the difference between the yea... | mit | C# |
be94fa675b48625d7153d6caf00ed3ac04fdcf9b | Update TracingUsage.cs | SimonCropp/NServiceBus.Serilog | src/Tests/Snippets/TracingUsage.cs | src/Tests/Snippets/TracingUsage.cs | using NServiceBus;
using Serilog;
// ReSharper disable UnusedVariable
class TracingUsage
{
TracingUsage()
{
#region SerilogTracingLogger
var tracingLog = new LoggerConfiguration()
.WriteTo.File("log.txt")
.MinimumLevel.Information()
.CreateLogger();
... | using NServiceBus;
using Serilog;
// ReSharper disable UnusedVariable
class TracingUsage
{
TracingUsage()
{
#region SerilogTracingLogger
var tracingLog = new LoggerConfiguration()
.WriteTo.File("log.txt")
.MinimumLevel.Information()
.CreateLogger();
... | mit | C# |
d610c903716356593f9b774c5e768412583e13c5 | Add more tests | ZLima12/osu,UselessToucan/osu,NeoAdonis/osu,NeoAdonis/osu,smoogipoo/osu,ppy/osu,smoogipoo/osu,ZLima12/osu,NeoAdonis/osu,peppy/osu,UselessToucan/osu,UselessToucan/osu,2yangk23/osu,peppy/osu,EVAST9919/osu,smoogipoo/osu,ppy/osu,ppy/osu,peppy/osu,smoogipooo/osu,EVAST9919/osu,peppy/osu-new,2yangk23/osu,johnneijzen/osu,johnn... | osu.Game.Tests/Visual/Online/TestSceneRankingsHeaderFlag.cs | osu.Game.Tests/Visual/Online/TestSceneRankingsHeaderFlag.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Collections.Generic;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Sprites;
using osu.Game.Graphics;
using osu.Game.Overlays.Rank... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Collections.Generic;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Sprites;
using osu.Game.Graphics;
using osu.Game.Overlays.Rank... | mit | C# |
a01a19f6695891eb0f2d390dd47a9d70aa1933a6 | Add the GetEnumeratorOfCopy extension method. | izrik/ChamberLib,izrik/ChamberLib,izrik/ChamberLib | ChamberLib/Collection.cs | ChamberLib/Collection.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ChamberLib
{
public static class Collection
{
public static void AddRange<T>(ICollection<T> collection, IEnumerable<T> items)
{
foreach (T item in items)
{
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ChamberLib
{
public static class Collection
{
public static void AddRange<T>(ICollection<T> collection, IEnumerable<T> items)
{
foreach (T item in items)
{
... | lgpl-2.1 | C# |
477ed0243dd59b9946e1b0ec7bb8b1075a38f7d0 | Update version for proper NuGet package support | TylerCarlson1/Automapper.Collection,AutoMapper/AutoMapper.Collection | src/AutoMapper.Collection/AutoMapper.Collection.EntityFramework/Properties/AssemblyInfo.cs | src/AutoMapper.Collection/AutoMapper.Collection.EntityFramework/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("Au... | 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("Au... | mit | C# |
17d16745c3d299d57d11fea907f37928e4fd4c9f | Update assembly info | SerialKeyManager/SKGL-Extension-for-dot-NET,artemlos/SKGL-Extension-for-dot-NET | SKM/Properties/AssemblyInfo.cs | SKM/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("SK... | 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("SK... | bsd-3-clause | C# |
4ac45379fbd7e38970fd75ddbb100f00c1b5fba7 | Fix typo (#61380) | bartdesmet/roslyn,jasonmalinowski/roslyn,CyrusNajmabadi/roslyn,dotnet/roslyn,bartdesmet/roslyn,mavasani/roslyn,jasonmalinowski/roslyn,jasonmalinowski/roslyn,CyrusNajmabadi/roslyn,weltkante/roslyn,mavasani/roslyn,weltkante/roslyn,shyamnamboodiripad/roslyn,mavasani/roslyn,dotnet/roslyn,dotnet/roslyn,weltkante/roslyn,shya... | src/Workspaces/Core/MSBuild/MSBuild/ProjectLoadOperation.cs | src/Workspaces/Core/MSBuild/MSBuild/ProjectLoadOperation.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 Microsoft.CodeAnalysis.MSBuild
{
/// <summary>
/// Various operations that occur during a project... | // 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 Microsoft.CodeAnalysis.MSBuild
{
/// <summary>
/// Various operations that occur during a project... | mit | C# |
82207a4306850434d9de42949d61b7a2f36d4efd | Fix formatting. | ryanjfitz/SimpSim.NET | build.cake | build.cake | //////////////////////////////////////////////////////////////////////
// ARGUMENTS
//////////////////////////////////////////////////////////////////////
var target = Argument("target", "Default");
var configuration = Argument("configuration", "Release");
/////////////////////////////////////////////////////////////... | //////////////////////////////////////////////////////////////////////
// ARGUMENTS
//////////////////////////////////////////////////////////////////////
var target = Argument("target", "Default");
var configuration = Argument("configuration", "Release");
/////////////////////////////////////////////////////////////... | mit | C# |
063f8b8a275bae6aa17fde1b4a6bd13023feeda4 | Configure release to be configuration for xbuild and msbuild. | sqeezy/FibonacciHeap,sqeezy/FibonacciHeap | build.cake | build.cake | #tool "nuget:?package=xunit.runner.console"
var target = Argument("target", "Default");
var outputDir = "./bin";
Task("Default")
.IsDependentOn("Xunit")
.Does(() =>
{
});
Task("Xunit")
.IsDependentOn("Build")
.Does(()=>
{
XUnit2(outputDir+"/**/*.Tests.dll");
});
Task("Build")
.IsDependentOn("Nuget... | #tool "nuget:?package=xunit.runner.console"
var target = Argument("target", "Default");
var outputDir = "./bin";
Task("Default")
.IsDependentOn("Xunit")
.Does(() =>
{
});
Task("Xunit")
.IsDependentOn("Build")
.Does(()=>
{
XUnit2(outputDir+"/**/*.Tests.dll");
});
Task("Build")
.IsDependentOn("Nuget... | mit | C# |
31b712c3b1f661ce3436ecb07aa6342301d0c60d | Remove some properties in ITouchPad | alvinhochun/touchpad-handwriting | TouchPadInterface/ITouchPad.cs | TouchPadInterface/ITouchPad.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace alvinhc.TouchPadInterface
{
public interface ITouchPad
{
/// <summary>
/// Gets or sets the value indicating whether this object captures the TouchPad exclusively.
/// If true, the device wi... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace alvinhc.TouchPadInterface
{
public interface ITouchPad
{
/// <summary>
/// Gets the value indicating whether a finger is presented on the TouchPad.
/// </summary>
bool IsFingerDown {... | bsd-2-clause | C# |
64190851cdcd003826a7c49444dc6627beaa893c | Fix exception not recording topic name. | aNutForAJarOfTuna/kafka-net,CenturyLinkCloud/kafka-net,BDeus/KafkaNetClient,nightkid1027/kafka-net,bridgewell/kafka-net,PKRoma/kafka-net,geffzhang/kafka-net,EranOfer/KafkaNetClient,Jroland/kafka-net,gigya/KafkaNetClient,martijnhoekstra/kafka-net | kafka-net/DefaultPartitionSelector.cs | kafka-net/DefaultPartitionSelector.cs | using System;
using System.Collections.Concurrent;
using System.Linq;
using KafkaNet.Model;
using KafkaNet.Protocol;
namespace KafkaNet
{
public class DefaultPartitionSelector : IPartitionSelector
{
private readonly ConcurrentDictionary<string, Partition> _roundRobinTracker = new ConcurrentDictionary<... | using System;
using System.Collections.Concurrent;
using System.Linq;
using KafkaNet.Model;
using KafkaNet.Protocol;
namespace KafkaNet
{
public class DefaultPartitionSelector : IPartitionSelector
{
private readonly ConcurrentDictionary<string, Partition> _roundRobinTracker = new ConcurrentDictionary<... | apache-2.0 | C# |
6edd84afc25c8ccbb39d8aa030c2451486d7e111 | Throw when error form account service. | ServiceStack/DiscourseWebHook,ServiceStack/DiscourseWebHook,ServiceStack/DiscourseWebHook | src/DiscourseAutoApprove/DiscourseAutoApprove.ServiceInterface/ServiceStackAccountClient.cs | src/DiscourseAutoApprove/DiscourseAutoApprove.ServiceInterface/ServiceStackAccountClient.cs | using System;
using ServiceStack;
using ServiceStack.Logging;
namespace DiscourseAutoApprove.ServiceInterface
{
public interface IServiceStackAccountClient
{
UserServiceResponse GetUserSubscription(string emailAddress);
}
public class ServiceStackAccountClient : IServiceStackAccountClient
... | using System;
using ServiceStack;
using ServiceStack.Logging;
namespace DiscourseAutoApprove.ServiceInterface
{
public interface IServiceStackAccountClient
{
UserServiceResponse GetUserSubscription(string emailAddress);
}
public class ServiceStackAccountClient : IServiceStackAccountClient
... | apache-2.0 | C# |
60cbe259a5beb1254a33af4a0ed9dad8ab580063 | Update version | Oceanswave/NiL.JS,nilproject/NiL.JS,nilproject/NiL.JS,Oceanswave/NiL.JS,nilproject/NiL.JS,Oceanswave/NiL.JS | NiL.JS/Properties/AssemblyInfo.cs | NiL.JS/Properties/AssemblyInfo.cs | using System;
using System.Reflection;
using System.Resources;
using System.Runtime.InteropServices;
#if DEV
[assembly: AssemblyTitle("NiL.JS for Developers")]
[assembly: AssemblyProduct("NiL.JS Dev")]
#else
[assembly: AssemblyTitle("NiL.JS")]
[assembly: AssemblyProduct("NiL.JS")]
#endif
[assembly: AssemblyDescriptio... | using System;
using System.Reflection;
using System.Resources;
using System.Runtime.InteropServices;
#if DEV
[assembly: AssemblyTitle("NiL.JS for Developers")]
[assembly: AssemblyProduct("NiL.JS Dev")]
#else
[assembly: AssemblyTitle("NiL.JS")]
[assembly: AssemblyProduct("NiL.JS")]
#endif
[assembly: AssemblyDescriptio... | bsd-3-clause | C# |
f41faeb65503444bb11f4e80f9bc1036297dbfd7 | bump version | moyasar/moyasar-dotnet | moyasar/Properties/AssemblyInfo.cs | moyasar/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("mo... | 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("mo... | mit | C# |
13f5c7e720aada2020a5c3f39e9485637a914ffe | Set version to 1.1.2 | SaladbowlCreative/TypeAlias | core/TypeAlias/Properties/AssemblyInfoGenerated.cs | core/TypeAlias/Properties/AssemblyInfoGenerated.cs | // <auto-generated/>
using System.Reflection;
[assembly: AssemblyVersionAttribute("1.0.0")]
[assembly: AssemblyFileVersionAttribute("1.1.2")]
[assembly: AssemblyInformationalVersionAttribute("1.1.2")]
namespace System {
internal static class AssemblyVersionInformation {
internal const string Version = "1.... | // <auto-generated/>
using System.Reflection;
[assembly: AssemblyVersionAttribute("1.0.0")]
[assembly: AssemblyFileVersionAttribute("1.1.1")]
[assembly: AssemblyInformationalVersionAttribute("1.1.1")]
namespace System {
internal static class AssemblyVersionInformation {
internal const string Version = "1.... | mit | C# |
5905316bb22df685832eba53f301ca89ada45802 | Add number to message payload | bording/Angora | samples/Producer/Program.cs | samples/Producer/Program.cs | using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Angora;
namespace Producer
{
class Program
{
const int numberOfMessages = 1_000_000;
static async Task Main()
{
var factory = new ConnectionFactory
{
HostName = ... | using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Angora;
namespace Producer
{
class Program
{
const int numberOfMessages = 1_000_000;
static async Task Main()
{
var factory = new ConnectionFactory
{
HostName = ... | mit | C# |
14c4ab94e0e86471360e309583d71f574e835d6e | add white line to end of file | aliostad/CacheCow,aliostad/CacheCow | src/CacheCow.Common/HttpHeaderNames.cs | src/CacheCow.Common/HttpHeaderNames.cs | namespace CacheCow.Common
{
public class HttpHeaderNames
{
public const string Accept = "Accept";
public const string AcceptLanguage = "Accept-Language";
public const string Authorization = "Authorization";
public const string CacheControl = "Cache-Control";
public const... | namespace CacheCow.Common
{
public class HttpHeaderNames
{
public const string Accept = "Accept";
public const string AcceptLanguage = "Accept-Language";
public const string Authorization = "Authorization";
public const string CacheControl = "Cache-Control";
public const... | mit | C# |
b5fa9508006c76decac0752a6bdaf47598196d4d | Remove unnecessary depth specification | NeoAdonis/osu,peppy/osu,peppy/osu,ppy/osu,smoogipoo/osu,smoogipoo/osu,peppy/osu-new,smoogipoo/osu,UselessToucan/osu,UselessToucan/osu,NeoAdonis/osu,peppy/osu,ppy/osu,ppy/osu,NeoAdonis/osu,UselessToucan/osu,smoogipooo/osu | osu.Game/Overlays/OnlineOverlay.cs | osu.Game/Overlays/OnlineOverlay.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Game.Graphics.UserInterface;
namespace osu.Game.Overlays
{
public abstract class On... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Game.Graphics.UserInterface;
namespace osu.Game.Overlays
{
public abstract class On... | mit | C# |
b3d6f76cfacdca8ec3906c8f92d324b71f1e54fc | Add "None" snap type to fix flags not working correctly | peppy/osu,peppy/osu,NeoAdonis/osu,NeoAdonis/osu,ppy/osu,NeoAdonis/osu,ppy/osu,ppy/osu,peppy/osu | osu.Game/Rulesets/Edit/SnapType.cs | osu.Game/Rulesets/Edit/SnapType.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;
namespace osu.Game.Rulesets.Edit
{
[Flags]
public enum SnapType
{
None = 0,
NearbyObjects = 1 << 0,
Grids = 1 << 1,
... | // 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;
namespace osu.Game.Rulesets.Edit
{
[Flags]
public enum SnapType
{
NearbyObjects = 0,
Grids = 1,
All = NearbyObjects | G... | mit | C# |
dbfce9e4a9dea2dbf7c77af846d1efcd114ca3f9 | Bump NLog.Extended to version 2.1.0 | RichiCoder1/NLog,luigiberrettini/NLog,pwelter34/NLog,mikkelxn/NLog,czema/NLog,ilya-g/NLog,tohosnet/NLog,tmusico/NLog,mikkelxn/NLog,mikkelxn/NLog,kevindaub/NLog,mikkelxn/NLog,vbfox/NLog,ajayanandgit/NLog,littlesmilelove/NLog,czema/NLog,UgurAldanmaz/NLog,vladikk/NLog,pwelter34/NLog,AndreGleichner/NLog,hubo0831/NLog,RRUZ/... | src/NLog.Extended/AssemblyBuildInfo.cs | src/NLog.Extended/AssemblyBuildInfo.cs | // do not modify this file. It will be automatically regenerated
// based on the version number saved in 'D:\Work\NLog2\src\NLog\..\..\NLog.version'
using System.Reflection;
[assembly: AssemblyVersion("2.1.0")]
| // do not modify this file. It will be automatically regenerated
// based on the version number saved in 'D:\Work\NLog2\src\NLog\..\..\NLog.version'
using System.Reflection;
[assembly: AssemblyVersion("2.0.1")]
| bsd-3-clause | C# |
6b9952bd539eef61db2ccc2a3343fc1f2fc0058e | Make BinaryExtensions internal until there is a public use case | NFig/NFig | NFig/BinaryExtensions.cs | NFig/BinaryExtensions.cs | using System.IO;
namespace NFig
{
static class BinaryExtensions
{
public static void WriteNullableString(this BinaryWriter w, string str)
{
if (str == null)
{
w.Write((byte)0);
}
else
{
w.Write((byte)1)... | using System.IO;
namespace NFig
{
public static class BinaryExtensions
{
public static void WriteNullableString(this BinaryWriter w, string str)
{
if (str == null)
{
w.Write((byte)0);
}
else
{
w.Write((... | mit | C# |
d04e2b586e1c3fb5f6cb37ebcccd913cf8b3c658 | fix for order saga sample typo, thanks Eric! | JasperFx/jasper,JasperFx/jasper,JasperFx/jasper | src/Samples/OrderSagaSample/Program.cs | src/Samples/OrderSagaSample/Program.cs | using Jasper;
using Jasper.Persistence.Marten;
using Marten;
using Oakton;
using Oakton.Resources;
using OrderSagaSample;
var builder = WebApplication.CreateBuilder(args);
// Not 100% necessary, but enables some extra command line diagnostics
builder.Host.ApplyOaktonExtensions();
// Adding Marten
builder.Services.Ad... | using Jasper;
using Jasper.Persistence.Marten;
using Marten;
using Oakton;
using Oakton.Resources;
using OrderSagaSample;
var builder = WebApplication.CreateBuilder(args);
// Not 100% necessary, but enables some extra command line diagnostics
builder.Host.ApplyOaktonExtensions();
// Adding Marten
builder.Services.Ad... | mit | C# |
62caf2886d90838f35005f341876f7fff940db1a | Update sortedBitSearch.cs | michaeljwebb/Algorithm-Practice | Other/sortedBitSearch.cs | Other/sortedBitSearch.cs | //Given an array of sorted 0s and 1s, count how many 1st exist
//Space complexity: O(1)
//Time complexity: O(log(N)) where N is the number of digits
//Example: [0,0,0,0,0,1,1,1] -> 3
using System;
public class Program
{
public static void Main()
{
int[] arr = { 0, 0, 0, 1, 1, 1, 1 };
int n = arr.Length;
... | //Given an array of sorted 0s and 1s, count how many 1st exist
//Space complexity: O(1)
//Time complexity: O(log(N)) where N is the number of digits
//Example: [0,0,0,0,0,1,1,1] -> 3
//Not Complete
| mit | C# |
1ddcad4a5dff3b664b8543420f8899053db7b6f6 | Remove console logging. | Gohla/renegadex-launcher | RXL.WPFClient/Program.cs | RXL.WPFClient/Program.cs | using System;
using System.Globalization;
using System.IO;
using System.Reflection;
namespace RXL.WPFClient
{
public class Program
{
[STAThreadAttribute]
public static void Main()
{
AppDomain.CurrentDomain.AssemblyResolve += OnResolveAssembly;
App.Main();
... | using System;
using System.Globalization;
using System.IO;
using System.Reflection;
namespace RXL.WPFClient
{
public class Program
{
[STAThreadAttribute]
public static void Main()
{
AppDomain.CurrentDomain.AssemblyResolve += OnResolveAssembly;
App.Main();
... | mit | C# |
264441d90c0662edfdcf722e7806f9997551c0de | Fix broken test | 2yangk23/osu,ZLima12/osu,johnneijzen/osu,NeoAdonis/osu,smoogipooo/osu,UselessToucan/osu,ppy/osu,NeoAdonis/osu,smoogipoo/osu,UselessToucan/osu,peppy/osu,peppy/osu,ppy/osu,peppy/osu,smoogipoo/osu,EVAST9919/osu,ZLima12/osu,UselessToucan/osu,ppy/osu,2yangk23/osu,NeoAdonis/osu,peppy/osu-new,johnneijzen/osu,EVAST9919/osu,smo... | osu.Game.Tests/WaveformTestBeatmap.cs | osu.Game.Tests/WaveformTestBeatmap.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.IO;
using System.Linq;
using osu.Framework.Audio;
using osu.Framework.Audio.Track;
using osu.Framework.Graphics.Textures;
using osu.Framework.Graphics.Video... | // 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.IO;
using System.Linq;
using osu.Framework.Audio;
using osu.Framework.Audio.Track;
using osu.Framework.Graphics.Textures;
using osu.Game.Beatmaps;
using osu... | mit | C# |
917b790e8b3df74d593d6656755ce78470fde39d | Update src/Avalonia.Controls/Notifications/NotificationPosition.cs | akrisiun/Perspex,Perspex/Perspex,AvaloniaUI/Avalonia,jkoritzinsky/Avalonia,AvaloniaUI/Avalonia,SuperJMN/Avalonia,SuperJMN/Avalonia,grokys/Perspex,jkoritzinsky/Avalonia,jkoritzinsky/Avalonia,AvaloniaUI/Avalonia,AvaloniaUI/Avalonia,Perspex/Perspex,AvaloniaUI/Avalonia,wieslawsoltes/Perspex,jkoritzinsky/Avalonia,AvaloniaUI... | src/Avalonia.Controls/Notifications/NotificationPosition.cs | src/Avalonia.Controls/Notifications/NotificationPosition.cs | // Copyright (c) The Avalonia Project. All rights reserved.
// Licensed under the MIT license. See licence.md file in the project root for full license information.
namespace Avalonia.Controls.Notifications
{
/// <summary>
/// Describes the possible positions for <see cref="Notification"/>s that are displayed... | // Copyright (c) The Avalonia Project. All rights reserved.
// Licensed under the MIT license. See licence.md file in the project root for full license information.
namespace Avalonia.Controls.Notifications
{
/// <summary>
/// Enumeration of Notifications positions.
/// </summary>
public enum Notifica... | mit | C# |
a2469da731c534d610d781fc549421e9e1defb8f | Fix test code | MikhailArkhipov/RTVS,karthiknadig/RTVS,AlexanderSher/RTVS,AlexanderSher/RTVS,MikhailArkhipov/RTVS,karthiknadig/RTVS,karthiknadig/RTVS,karthiknadig/RTVS,karthiknadig/RTVS,MikhailArkhipov/RTVS,MikhailArkhipov/RTVS,karthiknadig/RTVS,MikhailArkhipov/RTVS,AlexanderSher/RTVS,AlexanderSher/RTVS,AlexanderSher/RTVS,AlexanderShe... | src/R/Components/Test/StubFactories/RSettingsStubFactory.cs | src/R/Components/Test/StubFactories/RSettingsStubFactory.cs | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using Microsoft.R.Components.ConnectionManager;
using Microsoft.R.Components.ConnectionManager.Implementati... | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using Microsoft.R.Components.ConnectionManager;
using Microsoft.R.Components.ConnectionManager.Implementati... | mit | C# |
d1eaa97695891f664bd13afff5100c6d16189696 | Update version v4.0.0 | NIFTYCloud-mbaas/ncmb_unity,NIFTYCloud-mbaas/ncmb_unity,NIFTYCloud-mbaas/ncmb_unity | ncmb_unity/Assets/NCMB/Script/CommonConstant.cs | ncmb_unity/Assets/NCMB/Script/CommonConstant.cs | /*******
Copyright 2017-2018 FUJITSU CLOUD TECHNOLOGIES LIMITED All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless requir... | /*******
Copyright 2017-2018 FUJITSU CLOUD TECHNOLOGIES LIMITED All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless requir... | apache-2.0 | C# |
d469084596e066d6bb24a10c70661d353b3a320f | Remove useless line from response | btcpayserver/btcpayserver,btcpayserver/btcpayserver,btcpayserver/btcpayserver,btcpayserver/btcpayserver | BTCPayServer/Models/GetTokensResponse.cs | BTCPayServer/Models/GetTokensResponse.cs | using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using BTCPayServer.Authentication;
using NBitcoin.DataEncoders;
using Microsoft.AspNetCore.Http;
using System.IO;
namespace BTCPayServer.M... | using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using BTCPayServer.Authentication;
using NBitcoin.DataEncoders;
using Microsoft.AspNetCore.Http;
using System.IO;
namespace BTCPayServer.M... | mit | C# |
9ba51b5740df584b0b3e0991d6d35db66e440300 | fix compile error | kheiakiyama/speech-eng-functions | SentenceScraping/run.csx | SentenceScraping/run.csx | #r "System.Configuration"
#r "System.Linq.Expressions"
#load "../QuestionEntity.csx"
using System.Net;
using System.Net.Http;
using System.Configuration;
using System.Linq;
using Newtonsoft.Json;
using Microsoft.Azure;
using Microsoft.WindowsAzure.Storage;
using Microsoft.WindowsAzure.Storage.Table;
using LinqToTwitte... | #r "System.Configuration"
#load "../QuestionEntity.csx"
using System.Net;
using System.Net.Http;
using System.Configuration;
using System.Linq;
using Newtonsoft.Json;
using Microsoft.Azure;
using Microsoft.WindowsAzure.Storage;
using Microsoft.WindowsAzure.Storage.Table;
using LinqToTwitter;
public static async Task<... | mit | C# |
1efb65674085079e955567bb86bb3aa316d361af | Update JobHandler.cs | mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander | 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... | mit | C# |
1654f0878ad0085baa7d1b13223f41784dab0862 | Use a string that already has a translation. | dkoeb/f-spot,GNOME/f-spot,mans0954/f-spot,Yetangitu/f-spot,Yetangitu/f-spot,Sanva/f-spot,NguyenMatthieu/f-spot,nathansamson/F-Spot-Album-Exporter,nathansamson/F-Spot-Album-Exporter,Yetangitu/f-spot,mono/f-spot,Sanva/f-spot,Sanva/f-spot,NguyenMatthieu/f-spot,NguyenMatthieu/f-spot,mans0954/f-spot,GNOME/f-spot,mans0954/f-... | src/Editors/Tilt.cs | src/Editors/Tilt.cs | /*
* TiltEditor.cs
*
* Copyright 2007 Novell Inc.
*
* Author
* Larry Ewing <lewing@novell.com>
*
* See COPYING for license information.
*
*/
using System;
using Gtk;
using FSpot;
using Cairo;
using Mono.Unix;
namespace FSpot.Editors {
public sealed class Tilt : EffectEditor {
Scale scale;
public Tilt... | /*
* TiltEditor.cs
*
* Copyright 2007 Novell Inc.
*
* Author
* Larry Ewing <lewing@novell.com>
*
* See COPYING for license information.
*
*/
using System;
using Gtk;
using FSpot;
using Cairo;
using Mono.Unix;
namespace FSpot.Editors {
public sealed class Tilt : EffectEditor {
Scale scale;
public Tilt... | mit | C# |
5c7c3e171b21674e2d2af67b2eccc9d7a237dc01 | Add a null check | sta/websocket-sharp,sta/websocket-sharp,sta/websocket-sharp,sta/websocket-sharp | Example2/Chat.cs | Example2/Chat.cs | using System;
using System.Threading;
using WebSocketSharp;
using WebSocketSharp.Server;
namespace Example2
{
public class Chat : WebSocketBehavior
{
private string _name;
private static int _number = 0;
private string _prefix;
public Chat ()
{
_prefix = "anon#";
}
publi... | using System;
using System.Threading;
using WebSocketSharp;
using WebSocketSharp.Server;
namespace Example2
{
public class Chat : WebSocketBehavior
{
private string _name;
private static int _number = 0;
private string _prefix;
public Chat ()
{
_prefix = "anon#";
}
publi... | mit | C# |
1c797e7c549f847265092b06c150e70d41521786 | Fix SecuritySerializer | OfficeDev/PnP-Sites-Core,OfficeDev/PnP-Sites-Core,OfficeDev/PnP-Sites-Core | Core/OfficeDevPnP.Core/Framework/Provisioning/Providers/Xml/Serializers/SecuritySerializer.cs | Core/OfficeDevPnP.Core/Framework/Provisioning/Providers/Xml/Serializers/SecuritySerializer.cs | using Microsoft.SharePoint.Client;
using OfficeDevPnP.Core.Framework.Provisioning.Model;
using OfficeDevPnP.Core.Framework.Provisioning.Providers.Xml.Resolvers;
using System;
using System.Collections.Generic;
using System.Linq.Expressions;
namespace OfficeDevPnP.Core.Framework.Provisioning.Providers.Xml.Serializers
{... | using Microsoft.SharePoint.Client;
using OfficeDevPnP.Core.Framework.Provisioning.Model;
using OfficeDevPnP.Core.Framework.Provisioning.Providers.Xml.Resolvers;
using System;
using System.Collections.Generic;
using System.Linq.Expressions;
namespace OfficeDevPnP.Core.Framework.Provisioning.Providers.Xml.Serializers
{... | mit | C# |
0683a19b6741d5ae6962a288558340de2a04a01a | Update TriggerOfT.cs | wieslawsoltes/AvaloniaBehaviors,wieslawsoltes/AvaloniaBehaviors | src/Avalonia.Xaml.Interactivity/TriggerOfT.cs | src/Avalonia.Xaml.Interactivity/TriggerOfT.cs | using System;
namespace Avalonia.Xaml.Interactivity
{
/// <summary>
/// A base class for behaviors, implementing the basic plumbing of <seealso cref="ITrigger"/>.
/// </summary>
/// <typeparam name="T">The object type to attach to</typeparam>
public abstract class Trigger<T> : Trigger where T : cl... | using System;
using System.ComponentModel;
namespace Avalonia.Xaml.Interactivity
{
/// <summary>
/// A base class for behaviors, implementing the basic plumbing of <seealso cref="ITrigger"/>.
/// </summary>
/// <typeparam name="T">The object type to attach to</typeparam>
public abstract class Trig... | mit | C# |
1b59693cbc065f606dd82fc39b5a4901bcad5a54 | Update StefanDeVogelaere.cs | beraybentesen/planetxamarin,planetxamarin/planetxamarin,planetxamarin/planetxamarin,beraybentesen/planetxamarin,MabroukENG/planetxamarin,stvansolano/planetxamarin,stvansolano/planetxamarin,planetxamarin/planetxamarin,MabroukENG/planetxamarin,planetxamarin/planetxamarin,MabroukENG/planetxamarin,beraybentesen/planetxamar... | src/Firehose.Web/Authors/StefanDeVogelaere.cs | src/Firehose.Web/Authors/StefanDeVogelaere.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel.Syndication;
using Firehose.Web.Infrastructure;
namespace Firehose.Web.Authors
{
public class StefanDeVogelaere : IAmACommunityMember, IFilterMyBlogPosts
{
public string FirstName => "Stefan";
public s... | using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel.Syndication;
using Firehose.Web.Infrastructure;
namespace Firehose.Web.Authors
{
public class StefanDeVogelaere : IAmACommunityMember, IFilterMyBlogPosts
{
public string FirstName => "Stefan";
public s... | mit | C# |
fc34e8a4310b2d7fe1069feec7308fd68a97aa58 | Refactor Wait.Until | Abc-Arbitrage/Zebus | src/Abc.Zebus.Testing/Wait.cs | src/Abc.Zebus.Testing/Wait.cs | using System;
using System.Diagnostics;
using System.Threading;
using Abc.Zebus.Util;
using Abc.Zebus.Util.Annotations;
namespace Abc.Zebus.Testing
{
internal static class Wait
{
public static void Until([InstantHandle] Func<bool> exitCondition, int timeoutInSeconds)
=> Until(exitCondition... | using System;
using System.Linq.Expressions;
using System.Threading;
using Abc.Zebus.Util;
using Abc.Zebus.Util.Annotations;
namespace Abc.Zebus.Testing
{
internal static class Wait
{
public static void Until([InstantHandle] Func<bool> exitCondition, int timeoutInSeconds)
{
Until(e... | mit | C# |
03cc5977e2f1ab4bbe6331f6c91f52ace450562f | Update AssemblyInfo.cs | peshen/azure-sdk-for-net,olydis/azure-sdk-for-net,jackmagic313/azure-sdk-for-net,r22016/azure-sdk-for-net,shutchings/azure-sdk-for-net,markcowl/azure-sdk-for-net,nathannfan/azure-sdk-for-net,pankajsn/azure-sdk-for-net,SiddharthChatrolaMs/azure-sdk-for-net,AsrOneSdk/azure-sdk-for-net,begoldsm/azure-sdk-for-net,smithab/a... | src/ResourceManagement/RedisCache/Microsoft.Azure.Management.Redis/Properties/AssemblyInfo.cs | src/ResourceManagement/RedisCache/Microsoft.Azure.Management.Redis/Properties/AssemblyInfo.cs | //
// Copyright (c) Microsoft. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable la... | //
// Copyright (c) Microsoft. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable la... | mit | C# |
29ce2cdf5a31a18dd1c46d21169ca4aae3b588b0 | update author and description | nrjohnstone/AmbientContext | src/ambientContext/Properties/AssemblyInfo.cs | src/ambientContext/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: AssemblyTi... | 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: AssemblyTi... | mit | C# |
fc0e17e8c5f3d0595ab2e40406b3ea7513363ad4 | Fix bug when inheriting from WebDomainClientFactory | Daniel-Svensson/OpenRiaServices,Daniel-Svensson/OpenRiaServiecs,Daniel-Svensson/OpenRiaServices,Daniel-Svensson/OpenRiaServiecs | OpenRiaServices.DomainServices.Client.Web/Framework/Silverlight/Data/WebDomainClientFactory.cs | OpenRiaServices.DomainServices.Client.Web/Framework/Silverlight/Data/WebDomainClientFactory.cs | using System;
using System.Reflection;
namespace OpenRiaServices.DomainServices.Client.Web
{
/// <summary>
/// Creates <see cref="WebDomainClient{TContract}"/> instances
/// </summary>
public class WebDomainClientFactory : DomainClientFactory
{
readonly MethodInfo _createInstanceMethod;
... | using System;
using System.Reflection;
namespace OpenRiaServices.DomainServices.Client.Web
{
/// <summary>
/// Creates <see cref="WebDomainClient{TContract}"/> instances
/// </summary>
public class WebDomainClientFactory : DomainClientFactory
{
readonly MethodInfo _createInstanceMethod;
... | apache-2.0 | C# |
e8c650c7b81e8c5de3a7f952313ee40b44bfc41c | Update LivestreamChecker.cs | LassieME/KiteBot | ConsoleApplication1/LivestreamChecker.cs | ConsoleApplication1/LivestreamChecker.cs | using System.Net;
using System.Timers;
using System.Xml.Linq;
using System.Xml.XPath;
using KiteBot.Properties;
namespace KiteBot
{
public class LivestreamChecker
{
public static string ApiCallUrl;
private static Timer _chatTimer;//Garbage collection doesnt like local variables that only fire a couple times ... | using System.Net;
using System.Timers;
using System.Xml.Linq;
using System.Xml.XPath;
using KiteBot.Properties;
namespace KiteBot
{
public class LivestreamChecker
{
public static string ApiCallUrl;
private static Timer _chatTimer;//Garbage collection doesnt like local variables that only fire a couple times ... | mit | C# |
c147175e16b52155f96d205d5192018c51192d07 | Update help link | ucdavis/DataDictionary,ucdavis/DataDictionary,ucdavis/DataDictionary | DataDictionary/Views/Home/Contact.cshtml | DataDictionary/Views/Home/Contact.cshtml | @{
ViewBag.Title = "Contact";
ViewBag.Message = "Computing Resources Unit (CRU)";
}
<hgroup class="title">
<h1>@ViewBag.Title.</h1>
<h2>@ViewBag.Message</h2>
</hgroup>
<section class="contact">
<header>
<h3>Phone</h3>
</header>
<p>
<span class="label">Applic... | @{
ViewBag.Title = "Contact";
ViewBag.Message = "Computing Resources Unit (CRU)";
}
<hgroup class="title">
<h1>@ViewBag.Title.</h1>
<h2>@ViewBag.Message</h2>
</hgroup>
<section class="contact">
<header>
<h3>Phone</h3>
</header>
<p>
<span class="label">Applic... | bsd-2-clause | C# |
4712f116a486a79bd6bf01b0e8892b62975885de | Update Strings.cs | sitofabi/duplicati,klammbueddel/duplicati,klammbueddel/duplicati,agrajaghh/duplicati,klammbueddel/duplicati,duplicati/duplicati,agrajaghh/duplicati,gerco/duplicati,agrajaghh/duplicati,gerco/duplicati,gerco/duplicati,sitofabi/duplicati,sitofabi/duplicati,duplicati/duplicati,gerco/duplicati,mnaiman/duplicati,agrajaghh/du... | Duplicati/Library/Compression/Strings.cs | Duplicati/Library/Compression/Strings.cs | using Duplicati.Library.Localization.Short;
namespace Duplicati.Library.Compression.Strings {
internal static class FileArchiveZip {
public static string CompressionlevelDeprecated(string optionname) { return LC.L(@"Please use the {0} option instead", optionname); }
public static string Compressionl... | using Duplicati.Library.Localization.Short;
namespace Duplicati.Library.Compression.Strings {
internal static class FileArchiveZip {
public static string CompressionlevelDeprecated(string optionname) { return LC.L(@"Please use the {0} option instead", optionname); }
public static string Compressionl... | lgpl-2.1 | C# |
87d5686fe3e827c4873c40ceb355d3d275df76c5 | Disable automatic registration | larsbrubaker/MatterControl,larsbrubaker/MatterControl,jlewin/MatterControl,larsbrubaker/MatterControl,jlewin/MatterControl,jlewin/MatterControl,jlewin/MatterControl,larsbrubaker/MatterControl | MatterHackers.gsSlicer/gsSlicerPlugin.cs | MatterHackers.gsSlicer/gsSlicerPlugin.cs | /*
Copyright (c) 2019, John Lewin
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following ... | /*
Copyright (c) 2019, John Lewin
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following ... | bsd-2-clause | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.