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
e324e41aee0585765193fd532868054e86fa7645
remove debug logging for memory usage
TravisTX/TfsSlackFactory
src/TfsBot/Services/FormatService.cs
src/TfsBot/Services/FormatService.cs
using System; using System.Collections.Generic; using System.Security.Cryptography; using System.Text; using System.Threading.Tasks; using Microsoft.CodeAnalysis.CSharp.Scripting; using Microsoft.CodeAnalysis.Scripting; namespace TfsBot.Services { public class FormatService { private static readonly D...
using System; using System.Collections.Generic; using System.Security.Cryptography; using System.Text; using System.Threading.Tasks; using Microsoft.CodeAnalysis.CSharp.Scripting; using Microsoft.CodeAnalysis.Scripting; namespace TfsBot.Services { public class FormatService { private static readonly D...
mit
C#
0a06080e25a7b8f78e748a17f6636ea47688a913
fix bad merge
un-loop/wareentryresourceguide,un-loop/wareentryresourceguide
WaReentryResourceGuide/WaReentryResourceGuide/Global.asax.cs
WaReentryResourceGuide/WaReentryResourceGuide/Global.asax.cs
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Http; using System.Web.Mvc; using System.Web.Optimization; using System.Web.Routing; namespace WaReentryResourceGuide { using System.Data.Entity; using DAL; public class WebApiApplication : System.Web.Htt...
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Http; using System.Web.Mvc; using System.Web.Optimization; using System.Web.Routing; namespace WaReentryResourceGuide { using System.Data.Entity; using DAL; public class WebApiApplication : System.Web.Htt...
mit
C#
146d9b90de6c3e79ae6b82b0e5cffe6524d280bb
Apply a random color on each vertex
fredimachado/FlatShadedLowPolyTerrain
Assets/Scripts/TerrainGenerator.cs
Assets/Scripts/TerrainGenerator.cs
using UnityEngine; [RequireComponent(typeof(MeshFilter))] public class TerrainGenerator : MonoBehaviour { [SerializeField] private int size; private void Start() { var vertices = new Vector3[(size + 1) * (size + 1)]; for (int i = 0, z = 0; z <= size; z++) { for (in...
using UnityEngine; [RequireComponent(typeof(MeshFilter))] public class TerrainGenerator : MonoBehaviour { [SerializeField] private int size; private void Start() { var vertices = new Vector3[(size + 1) * (size + 1)]; for (int i = 0, z = 0; z <= size; z++) { for (in...
mit
C#
ffa84136bb0cc2e6bddd96d24c1657b6c1b0c70c
add an example for Updating a page
OneNoteDev/VanillaAddIn
VanillaConsole/Program.cs
VanillaConsole/Program.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.Office.Interop.OneNote; using System.Xml.Linq; namespace VanillaConsole { class Program { static void Main(string[] args) { // skipping error checking...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.Office.Interop.OneNote; using System.Xml.Linq; namespace VanillaConsole { class Program { static void Main(string[] args) { // skipping error checking...
mit
C#
658a1d159f03df2a55339c5eab7e11085c75ac43
Add legacy flag value for mirror mod
ppy/osu,smoogipoo/osu,NeoAdonis/osu,UselessToucan/osu,NeoAdonis/osu,UselessToucan/osu,ppy/osu,UselessToucan/osu,peppy/osu,smoogipoo/osu,NeoAdonis/osu,smoogipoo/osu,peppy/osu-new,smoogipooo/osu,peppy/osu,peppy/osu,ppy/osu
osu.Game/Beatmaps/Legacy/LegacyMods.cs
osu.Game/Beatmaps/Legacy/LegacyMods.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.Beatmaps.Legacy { [Flags] public enum LegacyMods { None = 0, NoFail = 1, Easy = 1 << 1, Tou...
// 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.Beatmaps.Legacy { [Flags] public enum LegacyMods { None = 0, NoFail = 1, Easy = 1 << 1, Tou...
mit
C#
b6bd187a97e778c39a37cc54d64237b2f64a2139
Add new file Droid/MainActivity.cs
ArcanaMagus/userAuth.cpl,ArcanaMagus/userAuth.cpl,ArcanaMagus/userAuth.cpl,ArcanaMagus/userAuth.cpl
Droid/MainActivity.cs
Droid/MainActivity.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Android.App; using Android.Content; using Android.OS; using Android.Runtime; using Android.Views; using Android.Widget; namespace userAuth.cpl.Droid { [Activity (Label = "userAuth.cpl.Droid", Icon = "@drawable/icon", MainL...
 using System; using System.Collections.Generic; using System.Linq; using System.Text; using Android.App; using Android.Content; using Android.OS; using Android.Runtime; using Android.Views; using Android.Widget; namespace userAuth.cpl.Droid { [Activity (Label = "userAuth.cpl.Droid", Icon = "@drawable/icon", MainLa...
mit
C#
70f463756188ae73b8c6f52e5475bf136aae5d18
Disable run/debug commands for Dart projects
modulexcite/DartVS,DartVS/DartVS,modulexcite/DartVS,modulexcite/DartVS,DartVS/DartVS,DartVS/DartVS
DanTup.DartVS.Vsix/ProjectSystem/DartProjectConfig.cs
DanTup.DartVS.Vsix/ProjectSystem/DartProjectConfig.cs
namespace DanTup.DartVS.ProjectSystem { using Microsoft.VisualStudio; using Microsoft.VisualStudio.Project; public class DartProjectConfig : ProjectConfig { internal DartProjectConfig(DartProjectNode project, string configuration, string platform) : base(project, configuration, pla...
namespace DanTup.DartVS.ProjectSystem { using Microsoft.VisualStudio.Project; public class DartProjectConfig : ProjectConfig { internal DartProjectConfig(DartProjectNode project, string configuration, string platform) : base(project, configuration, platform) { } ...
mit
C#
628dce8d424fa4b4df99b90ad82f05875271802f
Implement shutdown for vbox
zarlo/Cosmos,CosmosOS/Cosmos,zarlo/Cosmos,CosmosOS/Cosmos,CosmosOS/Cosmos,zarlo/Cosmos,zarlo/Cosmos,CosmosOS/Cosmos
source/Cosmos.System2/Power.cs
source/Cosmos.System2/Power.cs
using Cosmos.Core; using sysIO = System.IO; namespace Cosmos.System { /// <summary> /// Power class. /// </summary> public static class Power { /// <summary> /// Reboot with CPU. /// </summary> public static void Reboot() { HAL.Power.CPUReboot(); ...
using Cosmos.Core; using sysIO = System.IO; namespace Cosmos.System { /// <summary> /// Power class. /// </summary> public static class Power { /// <summary> /// Reboot with CPU. /// </summary> public static void Reboot() { HAL.Power.CPUReboot(); ...
bsd-3-clause
C#
226a1bea488a493c3ef100306e007c9e5673c27f
add ToLong
acple/ParsecSharp
ParsecSharp/Parser/Text/Text.Combinator.Extensions.cs
ParsecSharp/Parser/Text/Text.Combinator.Extensions.cs
using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Runtime.CompilerServices; namespace ParsecSharp { public static partial class Text { [MethodImpl(MethodImplOptions.AggressiveInlining)] public static Parser<char, string> AsString(this Parser<char, cha...
using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Runtime.CompilerServices; namespace ParsecSharp { public static partial class Text { [MethodImpl(MethodImplOptions.AggressiveInlining)] public static Parser<char, string> AsString(this Parser<char, cha...
mit
C#
648c369151936ffe161e609a57dd31d6c6302ad0
Test commit 2
XzXzTeam/BookShop
Model/Book.cs
Model/Book.cs
namespace Model { public class Book : PersistableObject { public string Name { get; set; } public string Publisher { get; set; } public int Year { get; set; } } }
namespace Model { public class Book : PersistableObject { public string Name { get; set; } public string Publisher { get; set; } } }
epl-1.0
C#
2175e9de4efeebd76ee7ab8ce9ae3ab0271bfef2
Set default LocalProxy config for aspnetcore apps
rockfordlhotka/csla,MarimerLLC/csla,MarimerLLC/csla,rockfordlhotka/csla,rockfordlhotka/csla,MarimerLLC/csla
Source/Csla.Web.Mvc.Shared/ConfigurationExtensions.cs
Source/Csla.Web.Mvc.Shared/ConfigurationExtensions.cs
//----------------------------------------------------------------------- // <copyright file="AspNetCoreConfigurationExtensions.cs" company="Marimer LLC"> // Copyright (c) Marimer LLC. All rights reserved. // Website: https://cslanet.com // </copyright> // <summary>Implement extension methods for AspNet configu...
//----------------------------------------------------------------------- // <copyright file="AspNetCoreConfigurationExtensions.cs" company="Marimer LLC"> // Copyright (c) Marimer LLC. All rights reserved. // Website: https://cslanet.com // </copyright> // <summary>Implement extension methods for AspNet configu...
mit
C#
bb3230afb8baa7bd5bcdfcdef0dc9da656cc0351
fix minor typo in HttpZipkinSender
criteo/zipkin4net,criteo/zipkin4net
Src/zipkin4net/Src/Transport/Http/HttpZipkinSender.cs
Src/zipkin4net/Src/Transport/Http/HttpZipkinSender.cs
using zipkin4net.Tracers.Zipkin; using System; using System.Net.Http; namespace zipkin4net.Transport.Http { public class HttpZipkinSender : IZipkinSender { private string _zipkinCollectorUrl; private HttpClient _httpClient; private readonly string _contentType; public HttpZipk...
using zipkin4net.Tracers.Zipkin; using System; using System.Net.Http; namespace zipkin4net.Transport.Http { public class HttpZipkinSender : IZipkinSender { private string _zipkinCollectorUrl; private HttpClient _httpClient; private readonly string _contentType; public HttpZipk...
apache-2.0
C#
ddf4fca6a0dae8d62039aedfd86ecd2ab2ec6ac4
remove header from GlobalAssemblyInfo
AITGmbH/VisualStudioTextTransform,AITGmbH/VisualStudioTextTransform
GlobalAssemblyInfo.cs
GlobalAssemblyInfo.cs
#region Using Directives using System.Reflection; using System.Resources; #endregion [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("AIT GmbH & Co. KG")] [assembly: AssemblyProduct("AIT.Tools.VisualStudioTextTransform")] [assembly: AssemblyCopyright("Copyright © 2011, AIT GmbH & Co. KG")] [assembl...
// --------------------------------------------------------------------------------------------------------------- // Copyright (C) 2011 AIT - Applied Information Technologies GmbH & Co. KG All Rights Reserved // AIT - Applied Information Technologies Confidential Proprietary Information // This Software is confidenti...
mit
C#
38bd71371ea5b7824ab8d2fbc49dca3fcd16d307
Increase round time
Goat-Improvement-Suite/The-Chinese-Room
Assets/Scripts/GameController.cs
Assets/Scripts/GameController.cs
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class GameController : MonoBehaviour { [SerializeField] private int score; public const float totalTime = 240f; private float timeRemaining; public GameObject scoreText; publi...
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class GameController : MonoBehaviour { [SerializeField] private int score; public const float totalTime = 120f; private float timeRemaining; public GameObject scoreText; publi...
mit
C#
68e76778f3df5768477629d2f86beaffbb78edd1
Build fix 3
ashmind/SharpLab,ashmind/SharpLab,ashmind/SharpLab,ashmind/SharpLab,ashmind/SharpLab,ashmind/SharpLab
source/Tests/Internal/TestAssemblyLog.cs
source/Tests/Internal/TestAssemblyLog.cs
using System; using System.Diagnostics; using System.IO; using System.Reflection; using System.Text.RegularExpressions; using SharpLab.Server.Common.Diagnostics; using Xunit.Abstractions; namespace SharpLab.Tests.Internal { public static class TestAssemblyLog { [Conditional("DEBUG")] pub...
using System; using System.Diagnostics; using System.IO; using System.Reflection; using System.Text.RegularExpressions; using SharpLab.Server.Common.Diagnostics; using Xunit.Abstractions; namespace SharpLab.Tests.Internal { public static class TestAssemblyLog { [Conditional("DEBUG")] pub...
bsd-2-clause
C#
7f4b5185d7288559f01263467641c43882fe7eb3
Bump version
InEngine-NET/InEngine.NET,InEngine-NET/InEngine.NET,InEngine-NET/InEngine.NET
src/SharedAssemblyInfo.cs
src/SharedAssemblyInfo.cs
using System.Reflection; // Assembly Info that is shared across the product [assembly: AssemblyProduct("InEngine.NET")] [assembly: AssemblyVersion("3.2.0.*")] [assembly: AssemblyInformationalVersion("3.2.0")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("Ethan Hann")] [assembly: AssemblyCopyright(...
using System.Reflection; // Assembly Info that is shared across the product [assembly: AssemblyProduct("InEngine.NET")] [assembly: AssemblyVersion("3.1.0.*")] [assembly: AssemblyInformationalVersion("3.1.0")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("Ethan Hann")] [assembly: AssemblyCopyright(...
mit
C#
bc9e85687f19b2a06f1da43345053f4f12a8e593
Add workaround for mono bug mentioned in previous commit.
mdavid/manos-spdy,jacksonh/manos,jacksonh/manos,jmptrader/manos,jacksonh/manos,jmptrader/manos,jmptrader/manos,jmptrader/manos,jmptrader/manos,jmptrader/manos,mdavid/manos-spdy,jacksonh/manos,mdavid/manos-spdy,mdavid/manos-spdy,mdavid/manos-spdy,jmptrader/manos,mdavid/manos-spdy,jacksonh/manos,jacksonh/manos,jacksonh/m...
test/TestApp/HttpTests.cs
test/TestApp/HttpTests.cs
// // Copyright (C) 2010 Jackson Harper (jackson@manosdemono.com) // // 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,...
// // Copyright (C) 2010 Jackson Harper (jackson@manosdemono.com) // // 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,...
mit
C#
858be51923cb1f1f9df5427790c8043341d99153
Remove Enum.Parse (as intended)
x335/scriptsharp,nikhilk/scriptsharp,x335/scriptsharp,nikhilk/scriptsharp,x335/scriptsharp,nikhilk/scriptsharp
src/Libraries/CoreLib/Enum.cs
src/Libraries/CoreLib/Enum.cs
// Enum.cs // Script#/Libraries/CoreLib // Copyright (c) Nikhil Kothari. // Copyright (c) Microsoft Corporation. // This source code is subject to terms and conditions of the Microsoft // Public License. A copy of the license can be found in License.txt. // using System.Runtime.CompilerServices; namespace System { ...
// Enum.cs // Script#/Libraries/CoreLib // Copyright (c) Nikhil Kothari. // Copyright (c) Microsoft Corporation. // This source code is subject to terms and conditions of the Microsoft // Public License. A copy of the license can be found in License.txt. // using System.Runtime.CompilerServices; namespace System { ...
apache-2.0
C#
30227a22be9bd3270ef01934c5f83bf01352dc4f
Patch method added to DeviceClient.
nseckinoral/xomni-sdk-dotnet
XOMNI.SDK/XOMNI.SDK.Public/Clients/Company/DeviceClient.cs
XOMNI.SDK/XOMNI.SDK.Public/Clients/Company/DeviceClient.cs
using System; using System.Collections.Generic; using System.Net.Http; using System.Threading.Tasks; using XOMNI.SDK.Public.Clients; using XOMNI.SDK.Public.Models; using XOMNI.SDK.Public.Models.Company; using XOMNI.SDK.Public.Extensions; namespace XOMNI.SDK.Public.Clients.Company { public class DeviceClient : BaseCli...
using System; using System.Collections.Generic; using System.Net.Http; using System.Threading.Tasks; using XOMNI.SDK.Public.Clients; using XOMNI.SDK.Public.Models; using XOMNI.SDK.Public.Models.Company; namespace XOMNI.SDK.Public.Clients.Company { public class DeviceClient : BaseClient { public DeviceClient(HttpCl...
mit
C#
c326207aa37549c017d63fd6980a77e86f51195c
Change method to static
kiyoaki/bitflyer-api-dotnet-client
src/BitFlyer.Apis/PublicApi.cs
src/BitFlyer.Apis/PublicApi.cs
using System; using System.Net.Http; using System.Threading.Tasks; using Newtonsoft.Json; using System.Collections.Generic; namespace BitFlyer.Apis { public partial class PublicApi { private static readonly HttpClient HttpClient = new HttpClient { BaseAddress = BitFlyerConstants.Ba...
using System; using System.Net.Http; using System.Threading.Tasks; using Newtonsoft.Json; using System.Collections.Generic; namespace BitFlyer.Apis { public partial class PublicApi { private static readonly HttpClient HttpClient = new HttpClient { BaseAddress = BitFlyerConstants.Ba...
mit
C#
ee2545b2a06f0ffac0dd21f011cc0ea4e6b8a1f5
Put using under namespace in TripleMine.cs
kiko81/HQC---Battle-Field-4-TeamWork
src/GameObjects/TripleMine.cs
src/GameObjects/TripleMine.cs
namespace BattleField.GameObjects { using System; using System.Collections.Generic; using System.Linq; using System.Text; public class TripleMine : Mine { private readonly int[,] mine = { {0, 0, 1, 0, 0}, {0, 1, 1, 1, 0}, {1, 1, 1, 1, 1},...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace BattleField.GameObjects { public class TripleMine : Mine { private readonly int[,] mine = { {0, 0, 1, 0, 0}, {0, 1, 1, 1, 0}, {1, 1, 1, 1, 1}, {0, 1, ...
mit
C#
555f68185983abda8242198d5a98fc21e076e1fb
Remove obsolete ToFriendlyString.
Faithlife/FaithlifeUtility
src/Faithlife.Utility/TimeSpanUtility.cs
src/Faithlife.Utility/TimeSpanUtility.cs
using System; namespace Faithlife.Utility { /// <summary> /// Helper methods for working with <see cref="TimeSpan"/>. /// </summary> public static class TimeSpanUtility { /// <summary> /// Formats <paramref name="timeSpan"/> as a concise string suitable for logging; the precision of the returned /// string ...
using System; namespace Faithlife.Utility { /// <summary> /// Helper methods for working with <see cref="TimeSpan"/>. /// </summary> public static class TimeSpanUtility { /// <summary> /// Formats <paramref name="timeSpan"/> as a "friendly" string; the precision of the returned string (which is not culture-se...
mit
C#
170f848f6581f55a7a7c5ca9e72793400beb87ae
Update ChatMessage.cs
marska/habitrpg-api-dotnet-client
src/HabitRPG.Client/Model/ChatMessage.cs
src/HabitRPG.Client/Model/ChatMessage.cs
using System; using System.Collections.Generic; using HabitRPG.Client.Converters; using Newtonsoft.Json; namespace HabitRPG.Client.Model { public class ChatMessage { public ChatMessage() { Likes = new Dictionary<Guid, bool>(); } [JsonProperty("id")] public Guid Id { get; ...
using System; using System.Collections.Generic; using HabitRPG.Client.Converters; using Newtonsoft.Json; namespace HabitRPG.Client.Model { public class ChatMessage { public ChatMessage() { Likes = new Dictionary<Guid, bool>(); } public Guid Id { get; set; } public string...
apache-2.0
C#
6b20b1473e28d0feeedb79683b6dd6502eab75e3
Remove blank line.
CyrusNajmabadi/roslyn,mgoertz-msft/roslyn,tannergooding/roslyn,abock/roslyn,abock/roslyn,DustinCampbell/roslyn,swaroop-sridhar/roslyn,VSadov/roslyn,gafter/roslyn,physhi/roslyn,nguerrera/roslyn,diryboy/roslyn,jcouv/roslyn,tmeschter/roslyn,cston/roslyn,OmarTawfik/roslyn,aelij/roslyn,agocke/roslyn,bartdesmet/roslyn,dotnet...
src/Features/Core/Portable/RemoveUnnecessaryParentheses/OperationKind.cs
src/Features/Core/Portable/RemoveUnnecessaryParentheses/OperationKind.cs
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. namespace Microsoft.CodeAnalysis.RemoveUnnecessaryParentheses { internal enum PrecedenceKind { Arithmetic, Shift, Relational,...
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. namespace Microsoft.CodeAnalysis.RemoveUnnecessaryParentheses { internal enum PrecedenceKind { Arithmetic, Shift, Relational...
mit
C#
07a8eac94cf192b1af32946c7dbbe1edd5e5b198
Bump version
transistor1/SQLFormatterPlugin
Properties/AssemblyInfo.cs
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("SQ...
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("SQ...
bsd-3-clause
C#
256b3a034233e58d9c9d3ae7fcbf6850be5fc7d3
Update version.
ForNeVeR/ProjectAutomata
Properties/AssemblyInfo.cs
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("ProjectAutomata")] [assembly: AssemblyDes...
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("ProjectAutomata")] [assembly: AssemblyDes...
mit
C#
8571ce5c5a3ffb7629ce39b5010d24a1b5064498
make drawmesh public
ruarai/Trigrad,ruarai/Trigrad
Trigrad/Extensions.cs
Trigrad/Extensions.cs
using System.Collections.Generic; using TriangleNet.Data; using System.Drawing; using TriangleNet; using Trigrad.DataTypes; namespace Trigrad { public static class Extensions { public static Point Point(this Vertex t) { return new Point((int)t.X, (int)t.Y); } publi...
using System.Collections.Generic; using TriangleNet.Data; using System.Drawing; using TriangleNet; using Trigrad.DataTypes; namespace Trigrad { internal static class Extensions { public static Point Point(this Vertex t) { return new Point((int)t.X, (int)t.Y); } pub...
mit
C#
c1d0de291ceb5b088dd7d87a2d2a06ea8f227f52
Create inclusive greater/less than operators
rmterra/NesZord
src/NesZord.Core/Memory/MemoryAddress.cs
src/NesZord.Core/Memory/MemoryAddress.cs
using NesZord.Core.Extensions; using System; namespace NesZord.Core.Memory { public class MemoryAddress : IComparable<int>, IComparable<MemoryAddress> { public MemoryAddress(byte page, byte offset) { this.Page = page; this.Offset = offset; } public byte Offset { get; private set; } public byte Pag...
using NesZord.Core.Extensions; using System; namespace NesZord.Core.Memory { public class MemoryAddress : IComparable<int>, IComparable<MemoryAddress> { public MemoryAddress(byte page, byte offset) { this.Page = page; this.Offset = offset; } public byte Offset { get; private set; } public byte Pag...
apache-2.0
C#
fb764f58840309fc9408075127c0fe2f48778c4e
Update the Null.cs test case
jonathanvdc/ecsc
tests/cs/null/Null.cs
tests/cs/null/Null.cs
using System; public static class Program { public static void Main() { var c = new object(); Console.WriteLine(c != null); Console.WriteLine("hi" != null); } }
using System; public static class Program { public static void Main() { var c = new object(); Console.WriteLine(c != null); } }
mit
C#
31e73662122ffcedf33935b6b917f82c399f97e3
update cake script
Azure-Samples/MyDriving,Azure-Samples/MyDriving,Azure-Samples/MyDriving
XamarinApp/build.cake
XamarinApp/build.cake
#addin nuget:https://nuget.org/api/v2/?package=Cake.FileHelpers&version=1.0.3.2 #addin nuget:https://nuget.org/api/v2/?package=Cake.Xamarin&version=1.2.3 var username = EnvironmentVariable("XamarinLicenseUser"); var password = EnvironmentVariable("XamarinLicensePassword"); var TARGET = Argument ("target", Argument ("...
#addin nuget:https://nuget.org/api/v2/?package=Cake.FileHelpers&version=1.0.3.2 #addin nuget:https://nuget.org/api/v2/?package=Cake.Xamarin&version=1.2.3 var username = EnvironmentVariable("XamarinLicenseUser", ""); var password = EnvironmentVariable("XamarinLicensePassword", ""); var TARGET = Argument ("target", Arg...
mit
C#
15dc7743b28040203025ac1579a176bb7f9d2ed2
Allow libsodium already initialized
ektrah/nsec
src/Cryptography/Sodium.cs
src/Cryptography/Sodium.cs
using System; using static Interop.Libsodium; namespace NSec.Cryptography { internal static class Sodium { private static readonly Lazy<int> s_initialized = new Lazy<int>(new Func<int>(sodium_init)); private static readonly Lazy<int> s_versionMajor = new Lazy<int>(new Func<int>(sodium_library_v...
using System; using static Interop.Libsodium; namespace NSec.Cryptography { internal static class Sodium { private static readonly Lazy<int> s_initialized = new Lazy<int>(new Func<int>(sodium_init)); private static readonly Lazy<int> s_versionMajor = new Lazy<int>(new Func<int>(sodium_library_v...
mit
C#
64a084e071351b0adb1f888098735f0945a87e76
Make AssemblyContainer open to extend
bit-foundation/bit-framework,bit-foundation/bit-framework,bit-foundation/bit-framework,bit-foundation/bit-framework
src/Server/Bit.Core/AssemblyContainer.cs
src/Server/Bit.Core/AssemblyContainer.cs
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Runtime.CompilerServices; namespace Bit.Core { /// <summary> /// Contains assembly parts of your app. These assemblies are used to find web api controllers, signalr hubs etc. /// </summary> public ...
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Runtime.CompilerServices; namespace Bit.Core { /// <summary> /// Contains assembly parts of your app. These assemblies are used to find web api controllers, signalr hubs etc. /// </summary> public ...
mit
C#
5afaf3bb8c19185020943537139efeef1aa3d0fc
Use a project-specific temporary path
jeffkl/msbuild,jeffkl/msbuild,Microsoft/msbuild,Microsoft/msbuild,jeffkl/msbuild,rainersigwald/msbuild,mono/msbuild,sean-gilliam/msbuild,cdmihai/msbuild,Microsoft/msbuild,jeffkl/msbuild,chipitsine/msbuild,mono/msbuild,chipitsine/msbuild,AndyGerlicher/msbuild,sean-gilliam/msbuild,AndyGerlicher/msbuild,AndyGerlicher/msbu...
src/Shared/UnitTests/TestAssemblyInfo.cs
src/Shared/UnitTests/TestAssemblyInfo.cs
 using System; using System.IO; using System.Linq; using System.Runtime.InteropServices; using System.Xml.Linq; using Xunit; [assembly: CollectionBehavior(CollectionBehavior.CollectionPerAssembly)] // Register test framework for assembly fixture [assembly: TestFramework("Xunit.NetCore.Extensions.XunitTestFrameworkW...
 using System; using System.IO; using System.Linq; using System.Runtime.InteropServices; using System.Xml.Linq; using Xunit; [assembly: CollectionBehavior(CollectionBehavior.CollectionPerAssembly)] // Register test framework for assembly fixture [assembly: TestFramework("Xunit.NetCore.Extensions.XunitTestFrameworkW...
mit
C#
04a5a094cc55ab458b8c2747adaa097191b1f5e8
Fix AddTodoItem to autoincrement the item id
OkraFramework/Okra-Todo
Okra-Todo/Data/TodoRepository.cs
Okra-Todo/Data/TodoRepository.cs
using System; using System.Collections.Generic; using System.Composition; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Okra.TodoSample.Data { [Export(typeof(ITodoRepository))] public class TodoRepository : ITodoRepository { private IList<TodoItem> todoItems; ...
using System; using System.Collections.Generic; using System.Composition; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Okra.TodoSample.Data { [Export(typeof(ITodoRepository))] public class TodoRepository : ITodoRepository { private IList<TodoItem> todoItems; ...
apache-2.0
C#
c9a124635dbfc0ec3958f06093cd5196b00b47b1
Remove reflection from ThreadPoolHelpers test class (#40810)
shimingsg/corefx,shimingsg/corefx,ericstj/corefx,shimingsg/corefx,ViktorHofer/corefx,wtgodbe/corefx,shimingsg/corefx,wtgodbe/corefx,wtgodbe/corefx,ericstj/corefx,shimingsg/corefx,ericstj/corefx,ericstj/corefx,wtgodbe/corefx,wtgodbe/corefx,ericstj/corefx,shimingsg/corefx,ViktorHofer/corefx,ViktorHofer/corefx,shimingsg/c...
src/Common/tests/System/Threading/ThreadPoolHelpers.cs
src/Common/tests/System/Threading/ThreadPoolHelpers.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 System.Threading { internal static class ThreadPoolHelpers { internal static ThreadCountRe...
// 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. using System.Reflection; namespace System.Threading { internal static class ThreadPoolHelpers { // ...
mit
C#
418a79810eef0f8361f5eeb2509a6e0a2ec4f144
Fix "Value cannot be null." error
mariocatch/MODiX,mariocatch/MODiX,mariocatch/MODiX,mariocatch/MODiX
Modix.Data/Utilities/Extensions.cs
Modix.Data/Utilities/Extensions.cs
using System; using System.Linq; namespace Modix.Data.Utilities { public static class Extensions { public static string Truncate(this string value, int maxLength, int maxLines, string suffix = "…") { if (string.IsNullOrEmpty(value)) return value; if (value.Length <= ma...
using System; using System.Linq; namespace Modix.Data.Utilities { public static class Extensions { public static string Truncate(this string value, int maxLength, int maxLines, string suffix = "…") { if (string.IsNullOrEmpty(value)) return value; if (value.Length <= ma...
mit
C#
31a649bea1b327274875cfb2696d1c08ce52ed4b
Add instructions for deleting account/data
martincostello/alexa-london-travel-site,martincostello/alexa-london-travel-site,martincostello/alexa-london-travel-site,martincostello/alexa-london-travel-site
src/LondonTravel.Site/Pages/PrivacyPolicy/Index.cshtml
src/LondonTravel.Site/Pages/PrivacyPolicy/Index.cshtml
@page "/privacy-policy" @model MartinCostello.LondonTravel.Site.Pages.PrivacyPolicy.Index @{ ViewBag.MetaDescription = SR.PrivacyPolicyMetaDescription; ViewBag.Title = SR.PrivacyPolicyMetaTitle; } <div> <h1>@SR.PrivacyPolicyTitle</h1> <p> Your privacy is important to us. </p> <p> ...
@page "/privacy-policy" @model MartinCostello.LondonTravel.Site.Pages.PrivacyPolicy.Index @{ ViewBag.MetaDescription = SR.PrivacyPolicyMetaDescription; ViewBag.Title = SR.PrivacyPolicyMetaTitle; } <div> <h1>@SR.PrivacyPolicyTitle</h1> <p> Your privacy is important to us. </p> <p> ...
apache-2.0
C#
231fe4944cbcf9247842f60f3db644d18a95b05c
Implement DeviceList
alesliehughes/monoDX,alesliehughes/monoDX
Microsoft.DirectX.DirectInput/Microsoft.DirectX.DirectInput/DeviceList.cs
Microsoft.DirectX.DirectInput/Microsoft.DirectX.DirectInput/DeviceList.cs
/* * The MIT License (MIT) * * Copyright (c) 2013 Alistair Leslie-Hughes * * 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 ...
/* * The MIT License (MIT) * * Copyright (c) 2013 Alistair Leslie-Hughes * * 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 ...
mit
C#
ef74d425380b7dc0a8e190605652abaf48c936bd
Make voices scale with timeScale less intensely
Barleytree/NitoriWare,NitorInc/NitoriWare,plrusek/NitoriWare,uulltt/NitoriWare,Barleytree/NitoriWare,NitorInc/NitoriWare
Assets/Scripts/Stage/VoicePlayer.cs
Assets/Scripts/Stage/VoicePlayer.cs
using System.Collections; using System.Collections.Generic; using UnityEngine; public class VoicePlayer : MonoBehaviour { [SerializeField] private AudioSource voiceSource; private List<AudioClip> victoryClips, lossClips; private bool soundQueued, victory; private AudioClip lastClip; public enum VoiceSet { ...
using System.Collections; using System.Collections.Generic; using UnityEngine; public class VoicePlayer : MonoBehaviour { [SerializeField] private AudioSource voiceSource; private List<AudioClip> victoryClips, lossClips; private bool soundQueued, victory; private AudioClip lastClip; public enum VoiceSet { ...
mit
C#
91ae11e2153d44cbe8780e32b1987f62b370b6b9
Add const to LinterError
repometric/linterhub-cli,repometric/linterhub-cli,binore/linterhub-cli,binore/linterhub-cli,repometric/linterhub-cli,binore/linterhub-cli
src/Metrics.Integrations.Linters/Linters/phpcs/Lint.cs
src/Metrics.Integrations.Linters/Linters/phpcs/Lint.cs
namespace Metrics.Integrations.Linters.Phpcs { using System.IO; using Extensions; using System.Collections.Generic; public class Lint : Linter { public override ILinterResult Parse(Stream stream) { return stream.DeserializeAsJson<LintResult>(); } public ...
namespace Metrics.Integrations.Linters.Phpcs { using System.IO; using Extensions; using System.Collections.Generic; public class Lint : Linter { public override ILinterResult Parse(Stream stream) { return stream.DeserializeAsJson<LintResult>(); } public ...
mit
C#
f86f02f35794cf905a6728cbfb8e9e608e0030e1
Update SharedAssemblyInfo.cs
wieslawsoltes/AvaloniaBehaviors,XamlBehaviors/XamlBehaviors,wieslawsoltes/AvaloniaBehaviors,XamlBehaviors/XamlBehaviors
src/Shared/SharedAssemblyInfo.cs
src/Shared/SharedAssemblyInfo.cs
// Copyright (c) Wiesław Šoltés. All rights reserved. // Licensed under the MIT license. See licence.md file in the project root for full license information. using System.Reflection; using System.Resources; [assembly: AssemblyCompany("Wiesław Šoltés")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCopyri...
// Copyright (c) Wiesław Šoltés. All rights reserved. // Licensed under the MIT license. See licence.md file in the project root for full license information. using System.Reflection; using System.Resources; [assembly: AssemblyCompany("Wiesław Šoltés")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCopyri...
mit
C#
23d838d904f3a63ea1081cd4dec35e3e4558d795
Refactor to use own method for getting files recursively
appharbor/appharbor-cli
src/AppHarbor/CompressionExtensions.cs
src/AppHarbor/CompressionExtensions.cs
using System.Collections.Generic; using System.IO; using System.Linq; using ICSharpCode.SharpZipLib.Tar; namespace AppHarbor { public static class CompressionExtensions { public static void ToTar(this DirectoryInfo sourceDirectory, Stream output) { var archive = TarArchive.CreateOutputTarArchive(output); ...
using System.IO; using System.Linq; using ICSharpCode.SharpZipLib.Tar; namespace AppHarbor { public static class CompressionExtensions { public static void ToTar(this DirectoryInfo sourceDirectory, Stream output) { var archive = TarArchive.CreateOutputTarArchive(output); archive.RootPath = sourceDirector...
mit
C#
330724b13870f1108f077021a97d10d5e6029ca5
Remove comments
mstrother/BmpListener
src/BmpListener/MiscUtil/Conversion/BigEndianBitConverter.cs
src/BmpListener/MiscUtil/Conversion/BigEndianBitConverter.cs
namespace BmpListener.MiscUtil.Conversion { public sealed class BigEndianBitConverter : EndianBitConverter { public override bool IsLittleEndian() { return false; } public override Endianness Endianness => Endianness.BigEndian; protected ove...
namespace BmpListener.MiscUtil.Conversion { /// <summary> /// Implementation of EndianBitConverter which converts to/from big-endian /// byte arrays. /// </summary> public sealed class BigEndianBitConverter : EndianBitConverter { /// <summary> /// Indicates the byte order ("endi...
mit
C#
8542542a2cc76e33fa07a3f23eeb39320f5fd6bf
Write cleaner test html in Index.cshtml
lukaskabrt/Orchard2,jtkech/Orchard2,petedavis/Orchard2,alexbocharov/Orchard2,OrchardCMS/Brochard,stevetayloruk/Orchard2,lukaskabrt/Orchard2,alexbocharov/Orchard2,xkproject/Orchard2,stevetayloruk/Orchard2,alexbocharov/Orchard2,xkproject/Orchard2,xkproject/Orchard2,yiji/Orchard2,stevetayloruk/Orchard2,yiji/Orchard2,jtkec...
src/Orchard.Web/Modules/Orchard.Demo/Views/Home/Index.cshtml
src/Orchard.Web/Modules/Orchard.Demo/Views/Home/Index.cshtml
@using Microsoft.Extensions.DependencyInjection; @* Adding meta tags *@ <meta asp-name="foo" content="bar" /> <meta asp-name="foo" content="baz" /> @* Inline definition of resources and dependencies *@ <script asp-name="blitz" asp-src="blitz.min.js" debug-src="blitz.js"></script> <script asp-name="baz" asp-src="baz....
@using Microsoft.Extensions.DependencyInjection; @* Adding meta tags *@ <meta asp-name="foo" content="bar" /> <meta asp-name="foo" content="baz" /> @* Inline definition of resources and dependencies *@ <script asp-name="blitz" asp-src="blitz.min.js" debug-src="blitz.js"></script> <script asp-name="baz" asp-src="baz....
bsd-3-clause
C#
1c90c6829f8e2e9863db6b34c77b5d1696609bc1
Tweak help text
MHeasell/SnappyMap,MHeasell/SnappyMap
SnappyMap/CommandLine/Options.cs
SnappyMap/CommandLine/Options.cs
namespace SnappyMap.CommandLine { using System.Collections.Generic; using global::CommandLine; using global::CommandLine.Text; public class Options { [Option('s', "size", DefaultValue = "8x8", HelpText = "Set the size of the output map.")] public string Size { get; set; ...
namespace SnappyMap.CommandLine { using System.Collections.Generic; using global::CommandLine; using global::CommandLine.Text; public class Options { [Option('s', "size", DefaultValue = "8x8", HelpText = "Set the size of the output map.")] public string Size { get; set; ...
mit
C#
5ca597a55b925bf8e390448b7a86b4bebc61a5ca
Fix someone asserting areequal(true, boolean value) for some reason
CrustyJew/RedditSharp,pimanac/RedditSharp,justcool393/RedditSharp-1
RedditSharpTests/Wiki/WikiTests.cs
RedditSharpTests/Wiki/WikiTests.cs
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Xunit; namespace RedditSharpTests.Wiki { [Collection("AuthenticatedTests")] public class WikiTests { private AuthenticatedTestsFixture authFixture; private RedditSharp.Reddit reddit; ...
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Xunit; namespace RedditSharpTests.Wiki { [Collection("AuthenticatedTests")] public class WikiTests { private AuthenticatedTestsFixture authFixture; private RedditSharp.Reddit reddit; ...
mit
C#
3c0451e33e155ffaaedb7987caf41be7e67cfd95
Remove transactions which are never committed or rolled back
SkillsFundingAgency/das-employerapprenticeshipsservice,SkillsFundingAgency/das-employerapprenticeshipsservice,SkillsFundingAgency/das-employerapprenticeshipsservice
src/SFA.DAS.EmployerFinance/Data/EmployerFinanceDbContext.cs
src/SFA.DAS.EmployerFinance/Data/EmployerFinanceDbContext.cs
using SFA.DAS.EmployerFinance.Models; using SFA.DAS.EmployerFinance.Models.Payments; using SFA.DAS.EmployerFinance.Models.Transaction; using SFA.DAS.EntityFramework; using System.Collections.Generic; using System.Data.Common; using System.Data.Entity; using System.Data.Entity.ModelConfiguration.Conventions; using Syst...
using SFA.DAS.EmployerFinance.Models; using SFA.DAS.EmployerFinance.Models.Payments; using SFA.DAS.EmployerFinance.Models.Transaction; using SFA.DAS.EntityFramework; using System.Collections.Generic; using System.Data.Common; using System.Data.Entity; using System.Data.Entity.ModelConfiguration.Conventions; using Syst...
mit
C#
bac4af108f0600de401d40f0f24633a32d15099e
change name for simple dispather without validation
jarocki76/SimpleCQS.Autofac
src/SimpleCQS.Autofac/ContainerBuilderSimpleCQSExtensions.cs
src/SimpleCQS.Autofac/ContainerBuilderSimpleCQSExtensions.cs
using System.Diagnostics.CodeAnalysis; using System.Reflection; using Autofac; using FluentValidation; using SimpleCQS.Command; using SimpleCQS.Command.Validation; using SimpleCQS.Query; namespace SimpleCQS.Autofac { [ExcludeFromCodeCoverage] public static class ContainerBuilderSimpleCQSExtensions { public ...
using System.Diagnostics.CodeAnalysis; using System.Reflection; using Autofac; using FluentValidation; using SimpleCQS.Command; using SimpleCQS.Command.Validation; using SimpleCQS.Query; namespace SimpleCQS.Autofac { [ExcludeFromCodeCoverage] public static class ContainerBuilderSimpleCQSExtensions { public ...
apache-2.0
C#
680077cb11173c30a0d446379cd27a51ba18c04e
Update author name
planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell
src/Firehose.Web/Authors/JamesPetty.cs
src/Firehose.Web/Authors/JamesPetty.cs
using System; using System.Collections.Generic; using System.Linq; using System.ServiceModel.Syndication; using System.Web; using Firehose.Web.Infrastructure; namespace Firehose.Web.Authors { public class JamesPetty : IAmACommunityMember, IFilterMyBlogPosts { public string FirstName => "James"; ...
using System; using System.Collections.Generic; using System.Linq; using System.ServiceModel.Syndication; using System.Web; using Firehose.Web.Infrastructure; namespace Firehose.Web.Authors { public class MarkKraus : IAmACommunityMember, IFilterMyBlogPosts { public string FirstName => "James"; ...
mit
C#
7c161d6efcc800af20f54a865ed7cfe4be2d2ec6
Fix DateTimeExtensions
WebCentrum/Umbraco-CMS,WebCentrum/Umbraco-CMS,WebCentrum/Umbraco-CMS
src/Umbraco.Core/DateTimeExtensions.cs
src/Umbraco.Core/DateTimeExtensions.cs
using System; namespace Umbraco.Core { public static class DateTimeExtensions { /// <summary> /// Returns the DateTime as an ISO formatted string that is globally expectable /// </summary> /// <param name="dt"></param> /// <returns></returns> public...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Umbraco.Core { public static class DateTimeExtensions { /// <summary> /// Returns the DateTime as an ISO formatted string that is globally expectable /// </summary> ///...
mit
C#
cdb44d7239e3ad92a56e40bd04ce5a6ee7ad86c7
Fix match footer test scene not working in visual testing
peppy/osu,NeoAdonis/osu,smoogipoo/osu,peppy/osu,smoogipoo/osu,ppy/osu,ppy/osu,peppy/osu-new,NeoAdonis/osu,ppy/osu,peppy/osu,smoogipooo/osu,smoogipoo/osu,NeoAdonis/osu
osu.Game.Tests/Visual/Multiplayer/TestSceneMultiplayerMatchFooter.cs
osu.Game.Tests/Visual/Multiplayer/TestSceneMultiplayerMatchFooter.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 NUnit.Framework; using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; using osu.Game.Online.Rooms; using osu.Game.Screens.OnlinePlay.Multiplayer.M...
// 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 NUnit.Framework; using osu.Framework.Graphics; using osu.Game.Online.Rooms; using osu.Game.Screens.OnlinePlay.Multiplayer.Match; namespace osu.Game.Tests.Visual.Mu...
mit
C#
edf8e85d89f833fe22d046ec9904a113f88bec2e
update FusionToken.cs
gaulinsoft/fusion,gaulinsoft/fusion,gaulinsoft/fusion
src/dll/extension/FusionToken.cs
src/dll/extension/FusionToken.cs
/*! ------------------------------------------------------------------------ // Fusion // ------------------------------------------------------------------------ // // Copyright 2014 Nicholas Gaulin // // Licensed under the Apache License, Version 2.0 (th...
/*! ------------------------------------------------------------------------ // Fusion // ------------------------------------------------------------------------ // // Copyright 2014 Nicholas Gaulin // // Licensed under the Apache License, Version 2.0 (th...
apache-2.0
C#
533ff61a008c04ca1c65fe3b330191e7549939c4
Update Damage.cs
jappi00/Mittelalter-2D-Game
Assets/Scripts/Player/Damage.cs
Assets/Scripts/Player/Damage.cs
using UnityEngine; using System.Collections; using UnityEngine.UI; public class Damage : MonoBehaviour { private float currentHealth; public Slider healthbar; //Lebens anzeige public float damage; // Update is called once per frame void OnTriggerEnter2D(Collider2D col) { currentHeal...
using UnityEngine; using System.Collections; using UnityEngine.UI; public class Damage : MonoBehaviour { private Transform player; private float currentHealth; public Slider healthbar; //Lebens anzeige public float damage; void Start() { player = GameObject.FindGameObjectWithTag("P...
apache-2.0
C#
9900b3656b79e1924d536cf603c604fe97173999
add clear method to LogWriter
FireCube-/HarvesterBot
TexasHoldEm/LogWriter.cs
TexasHoldEm/LogWriter.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; public static class LogWriter { private static String path = "output.log"; public static void clear() { File.Delete(path); } public static void writeData(String data) { File.A...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; public static class LogWriter { private static String path = "output.log"; public static void writeData(String data) { File.WriteAllText(path, data); } }
mit
C#
9711b66c3f2c043987b009c876ee899294a39d9c
update c# sample
BlueHouseLab/sms-openapi,BlueHouseLab/sms-openapi,BlueHouseLab/sms-openapi,BlueHouseLab/sms-openapi,BlueHouseLab/sms-openapi,BlueHouseLab/sms-openapi,BlueHouseLab/sms-openapi,BlueHouseLab/sms-openapi,BlueHouseLab/sms-openapi
c#/result.cs
c#/result.cs
using System; using System.Net; using System.Text; class Result {     static void Main(string[] args)     { if(args.Length != 1) { Console.WriteLine("Usage:"); Console.WriteLine(" result.exe deliveryid"); return; } string url = "https://api.bluehouse...
using System; using System.Net; using System.Text; class SendSMS {     static void Main(string[] args)     { if(args.Length != 1) { Console.WriteLine("Usage:"); Console.WriteLine(" result.exe deliveryid"); return; } string url = "https://api.bluehous...
apache-2.0
C#
3de42d562d7d4c9ce9e5942c059af088cb476712
Add basic bindable instantiation benchmark
smoogipooo/osu-framework,ppy/osu-framework,ZLima12/osu-framework,peppy/osu-framework,peppy/osu-framework,ppy/osu-framework,peppy/osu-framework,smoogipooo/osu-framework,ZLima12/osu-framework,ppy/osu-framework
osu.Framework.Benchmarks/BenchmarkBindableInstantiation.cs
osu.Framework.Benchmarks/BenchmarkBindableInstantiation.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 BenchmarkDotNet.Attributes; using osu.Framework.Bindables; namespace osu.Framework.Benchmarks { [MemoryDiagnoser] public class BenchmarkBinda...
// 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 BenchmarkDotNet.Attributes; using osu.Framework.Bindables; namespace osu.Framework.Benchmarks { public class BenchmarkBindableInstantiation {...
mit
C#
5498ee9cb8a40d8d54b371bce1f4bec13870cc35
Remove actions initializer temporarily
allmonty/BrokenShield,allmonty/BrokenShield
Assets/Scripts/AI/State.cs
Assets/Scripts/AI/State.cs
using UnityEngine; [CreateAssetMenu (menuName = "AI/State")] public class State : ScriptableObject { public Action[] actions; public Transition[] transitions; public Color sceneGizmoColor = Color.gray; public void Init() { foreach(Action action in actions) { // action.Init(); ...
using UnityEngine; [CreateAssetMenu (menuName = "AI/State")] public class State : ScriptableObject { public Action[] actions; public Transition[] transitions; public Color sceneGizmoColor = Color.gray; public void Init() { foreach(Action action in actions) { action.Init(); ...
apache-2.0
C#
1f2a6831b2da5da2b449d14a9a614b4ce055b863
rename parameters
douglasPinheiro/Selenium-Webdriver-helpers
src/SeleniumWebdriverHelpers/SeleniumWebdriverHelpers/SelectExtensions.cs
src/SeleniumWebdriverHelpers/SeleniumWebdriverHelpers/SelectExtensions.cs
using OpenQA.Selenium; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SeleniumWebdriverHelpers { public static class SelectExtensions { public static IWebElement SelectElement(this IWebDriver browser, By locator) { ...
using OpenQA.Selenium; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SeleniumWebdriverHelpers { public static class SelectExtensions { public static IWebElement SelectElement(this IWebDriver browser, By by) { ...
mit
C#
1f570b39bbe5a7a336c8c9680036472bf5b8ed81
Unify finding option value from EditorConfigStorageLocation
physhi/roslyn,tannergooding/roslyn,diryboy/roslyn,diryboy/roslyn,aelij/roslyn,KirillOsenkov/roslyn,KirillOsenkov/roslyn,KevinRansom/roslyn,brettfo/roslyn,bartdesmet/roslyn,bartdesmet/roslyn,tmat/roslyn,jasonmalinowski/roslyn,mgoertz-msft/roslyn,gafter/roslyn,shyamnamboodiripad/roslyn,panopticoncentral/roslyn,mavasani/r...
src/Workspaces/Core/Portable/CodeStyle/AnalyzerConfigOptionsExtensions.cs
src/Workspaces/Core/Portable/CodeStyle/AnalyzerConfigOptionsExtensions.cs
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using Microsoft.CodeAnalysis.Diagnostics; using Microsoft.CodeAnalysis.Options; namespace Microsoft.CodeAnalysis { internal static class A...
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Reflection; using Microsoft.CodeAnalysis.Diagnostics; using Microsoft.CodeAnalysis.Options; namespace Microsoft.CodeAnalysis { internal sta...
mit
C#
a7687bbc9cacbdf82f2672d29770754ceb4645c4
Add GetProperty to MetadataCollectionExtensions
riganti/dotvvm-samples-academy,riganti/dotvvm-samples-academy,riganti/dotvvm-samples-academy
src/DotvvmAcademy.Validation/MetadataCollectionExtensions.cs
src/DotvvmAcademy.Validation/MetadataCollectionExtensions.cs
using System; using System.Collections.Generic; using System.Text; namespace DotvvmAcademy.Validation { public static class MetadataCollectionExtensions { public static TProperty GetProperty<TIdentifier, TProperty>(this IMetadataCollection<TIdentifier> collection, TIdentifier identifier, string key) ...
using System; using System.Collections.Generic; using System.Text; namespace DotvvmAcademy.Validation { public static class MetadataCollectionExtensions { public static TProperty GetRequiredProperty<TIdentifier, TProperty>(this IMetadataCollection<TIdentifier> collection, TIdentifier identifier, strin...
apache-2.0
C#
42f13a51ee44fe7475fc8df49cf8c4c5207c4175
Use configureAwait(false) for sql server json log store
bit-foundation/bit-framework,bit-foundation/bit-framework,bit-foundation/bit-framework,bit-foundation/bit-framework
src/Server/Bit.Data/Implementations/SqlServerJsonLogStore.cs
src/Server/Bit.Data/Implementations/SqlServerJsonLogStore.cs
using Bit.Core.Contracts; using Bit.Core.Models; using System.Data.SqlClient; using System.Threading.Tasks; namespace Bit.Data.Implementations { public class SqlServerJsonLogStore : ILogStore { public virtual AppEnvironment ActiveAppEnvironment { get; set; } public virtual IContentFormatter Fo...
using Bit.Core.Contracts; using Bit.Core.Models; using System.Data.SqlClient; using System.Threading.Tasks; namespace Bit.Data.Implementations { public class SqlServerJsonLogStore : ILogStore { public virtual AppEnvironment ActiveAppEnvironment { get; set; } public virtual IContentFormatter Fo...
mit
C#
1a05feac02452e3e411ecff05ce94535afdc92bc
Clean up
KevinJump/Umbraco-CMS,abjerner/Umbraco-CMS,robertjf/Umbraco-CMS,marcemarc/Umbraco-CMS,dawoe/Umbraco-CMS,KevinJump/Umbraco-CMS,abryukhov/Umbraco-CMS,marcemarc/Umbraco-CMS,abryukhov/Umbraco-CMS,robertjf/Umbraco-CMS,umbraco/Umbraco-CMS,dawoe/Umbraco-CMS,umbraco/Umbraco-CMS,JimBobSquarePants/Umbraco-CMS,JimBobSquarePants/U...
src/Umbraco.Infrastructure/Models/ContentEditing/UserSave.cs
src/Umbraco.Infrastructure/Models/ContentEditing/UserSave.cs
using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Runtime.Serialization; using Newtonsoft.Json; namespace Umbraco.Web.Models.ContentEditing { /// <summary> /// Represents the data used to persist a user /// </summary> /// <remarks> /// T...
using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Runtime.Serialization; using Newtonsoft.Json; namespace Umbraco.Web.Models.ContentEditing { /// <summary> /// Represents the data used to persist a user /// </summary> /// <remarks> /// T...
mit
C#
bf67d67a96736ad53c4319f6a613267b56a80dd8
Make the enum internal (#3776)
AzureAD/microsoft-authentication-library-for-dotnet,AzureAD/microsoft-authentication-library-for-dotnet,AzureAD/microsoft-authentication-library-for-dotnet,AzureAD/microsoft-authentication-library-for-dotnet
src/client/Microsoft.Identity.Client/AuthScheme/TokenType.cs
src/client/Microsoft.Identity.Client/AuthScheme/TokenType.cs
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. namespace Microsoft.Identity.Client.AuthScheme { /// <summary> /// Specifies the token type to log to telemetry. /// </summary> internal enum TokenType { /// <summary> /// Bearer token t...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. namespace Microsoft.Identity.Client.AuthScheme { /// <summary> /// Specifies the token type to log to telemetry. /// </summary> public enum TokenType { /// <summary> /// Bearer token typ...
mit
C#
19ac7f4ca11865facab7d3005e43bfecefbe08e6
add public filter without provider
18098924759/IdentityServer3,charoco/IdentityServer3,johnkors/Thinktecture.IdentityServer.v3,olohmann/IdentityServer3,roflkins/IdentityServer3,wondertrap/IdentityServer3,ryanvgates/IdentityServer3,iamkoch/IdentityServer3,johnkors/Thinktecture.IdentityServer.v3,feanz/Thinktecture.IdentityServer.v3,18098924759/IdentitySer...
source/Core/Services/ExternalClaimsFilter/NormalizingClaimsFilter.cs
source/Core/Services/ExternalClaimsFilter/NormalizingClaimsFilter.cs
/* * Copyright 2014 Dominick Baier, Brock Allen * * 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 2014 Dominick Baier, Brock Allen * * 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...
apache-2.0
C#
51537e7c03d15d49ef2b93802e56d1a79c6696c2
Bump version to 1.12
InfinniPlatform/InfinniPlatform,InfinniPlatform/InfinniPlatform,InfinniPlatform/InfinniPlatform
Files/Packaging/GlobalAssemblyInfo.cs
Files/Packaging/GlobalAssemblyInfo.cs
using System.Reflection; using System.Runtime.InteropServices; [assembly: AssemblyCompany("Infinnity Solutions")] [assembly: AssemblyProduct("InfinniPlatform")] [assembly: AssemblyCopyright("Copyright © Infinnity Solutions 2015")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] [assembly: ComVisible...
using System.Reflection; using System.Runtime.InteropServices; [assembly: AssemblyCompany("Infinnity Solutions")] [assembly: AssemblyProduct("InfinniPlatform")] [assembly: AssemblyCopyright("Copyright © Infinnity Solutions 2015")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] [assembly: ComVisible...
agpl-3.0
C#
54ec6d52392f75f0d376b447af54024a7e41ef60
update to avoid any future issues between web vs app configs
ninianne98/CarrotCakeCMS,ninianne98/CarrotCakeCMS,ninianne98/CarrotCakeCMS
CarrotCMSData/CarrotCMS.cs
CarrotCMSData/CarrotCMS.cs
using System; using System.Configuration; namespace Carrotware.CMS.Data { public partial class CarrotCMSDataContext { public static CarrotCMSDataContext GetDataContext() { CarrotCMSDataContext _db = null; _db = GetDataContext(ConfigurationManager.ConnectionStrings["CarrotwareCMSConnectionString"].C...
using System; namespace Carrotware.CMS.Data { public partial class CarrotCMSDataContext { public static CarrotCMSDataContext GetDataContext() { CarrotCMSDataContext _db = new CarrotCMSDataContext(); #if DEBUG _db.Log = new DebugTextWriter(); #endif return _db; } public static CarrotCMS...
mit
C#
bcec95b344f706694f6ae5cd4a716ba223a6d773
Revoke loggly
cmdr2/trooper2c,cmdr2/trooper2c,cmdr2/trooper2c
Assets/Scripts/util/LogglyCredential.cs
Assets/Scripts/util/LogglyCredential.cs
/** * This class does NOT get checked in (thanks to a .gitignore file). * The default file in the repo uses an empty token. * Set the correct token after checking out the repo. * * !! * DO NOT REMOVE THIS FILE FROM THE .gitignore FILE OTHERWISE YOUR * LOGGLY PASSWORD/TOKEN WILL BE VISIBLE TO EVERYONE WITH SOUR...
/** * This class does NOT get checked in (thanks to a .gitignore file). * The default file in the repo uses an empty token. * Set the correct token after checking out the repo. * * !! * DO NOT REMOVE THIS FILE FROM THE .gitignore FILE OTHERWISE YOUR * LOGGLY PASSWORD/TOKEN WILL BE VISIBLE TO EVERYONE WITH SOUR...
mit
C#
1c67e4c27f4cdfbfe14d5df7080003586c390d84
make convenience methods avaialble to other projects
ArsenShnurkov/BitSharp
BitSharp.Blockchain/ExtensionMethods.cs
BitSharp.Blockchain/ExtensionMethods.cs
using BitSharp.Common; using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Linq; using System.Text; using System.Threading.Tasks; using BitSharp.Blockchain; using BitSharp.Data; using BitSharp.Storage; namespace BitSharp.Blockchain.ExtensionMethods { publi...
using BitSharp.Common; using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Linq; using System.Text; using System.Threading.Tasks; using BitSharp.Blockchain; using BitSharp.Data; using BitSharp.Storage; namespace BitSharp.Blockchain.ExtensionMethods { inter...
unlicense
C#
60d54500b216ae157fcb55204c96359fbe6408b8
Set title on Cache Administration page
opencolorado/.NET-Wrapper-for-CKAN-API,opencolorado/.NET-Wrapper-for-CKAN-API,DenverDev/.NET-Wrapper-for-CKAN-API,opencolorado/.NET-Wrapper-for-CKAN-API,DenverDev/.NET-Wrapper-for-CKAN-API
CkanDotNet.Web/Views/Cache/Index.cshtml
CkanDotNet.Web/Views/Cache/Index.cshtml
@using CkanDotNet.Api.Model @using CkanDotNet.Api.Helper @model List<CacheEntrySummary> @{ ViewBag.Title = "Cache Administration"; } <section class="container"> <h2 class="container-title">Cache Contents</h2> <div class="container-content"> @if (Model.Count > 0) { <p> <input type="button" valu...
@using CkanDotNet.Api.Model @using CkanDotNet.Api.Helper @model List<CacheEntrySummary> @{ ViewBag.Title = "Index"; } <section class="container"> <h2 class="container-title">Cache Contents</h2> <div class="container-content"> @if (Model.Count > 0) { <p> <input type="button" value="Refresh" onc...
apache-2.0
C#
0a7d077e0214fe4173af4cd5a7ea5b6f89b44911
Fix specials characters for memegen
Grinjr/NadekoBot,ShadowNoire/NadekoBot,halitalf/NadekoMods,Taknok/NadekoBot,Midnight-Myth/Mitternacht-NEW,ScarletKuro/NadekoBot,powered-by-moe/MikuBot,miraai/NadekoBot,Blacnova/NadekoBot,Youngsie1997/NadekoBot,gfrewqpoiu/NadekoBot,Midnight-Myth/Mitternacht-NEW,PravEF/EFNadekoBot,shikhir-arora/NadekoBot,WoodenGlaze/Nade...
src/NadekoBot/Modules/Searches/Commands/MemegenCommands.cs
src/NadekoBot/Modules/Searches/Commands/MemegenCommands.cs
using Newtonsoft.Json; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; using NadekoBot.Attributes; using System.Net.Http; using System.Text; using NadekoBot.Extensions; namespace NadekoBot.Modules.Searches { public partial class Searches { ...
using Newtonsoft.Json; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; using NadekoBot.Attributes; using System.Net.Http; using NadekoBot.Extensions; namespace NadekoBot.Modules.Searches { public partial class Searches { [NadekoCommand, ...
unlicense
C#
4e9d583041853f97986d9a255fd7505980c41cab
Revert "Changed name for bitmap data from bitmapStream to bitmapData, because bitmapStream is misleading."
pauldendulk/Mapsui,charlenni/Mapsui,charlenni/Mapsui
Mapsui.Rendering.Skia/BitmapHelper.cs
Mapsui.Rendering.Skia/BitmapHelper.cs
using System.IO; using System.Text; using Mapsui.Extensions; using Mapsui.Styles; using SkiaSharp; using Svg.Skia; namespace Mapsui.Rendering.Skia { public static class BitmapHelper { public static BitmapInfo LoadBitmap(object bitmapStream) { // todo: Our BitmapRegistry stores not ...
using System.IO; using System.Text; using Mapsui.Extensions; using Mapsui.Styles; using SkiaSharp; using Svg.Skia; namespace Mapsui.Rendering.Skia { public static class BitmapHelper { public static BitmapInfo LoadBitmap(object bitmapData) { // todo: Our BitmapRegistry stores not on...
mit
C#
15a10ab96a7fbc5cf79d67dcf5ed041f0c5e128b
Update CrewCheck.cs
Magion/WernherChecker,Kerbas-ad-astra/WernherChecker,linuxgurugamer/WernherChecker
Source/CrewCheck.cs
Source/CrewCheck.cs
using System; using System.Collections.Generic; using UnityEngine; using PreFlightTests; namespace WernherChecker { class CrewCheck : IPreFlightTest { static PreFlightCheck checks; public static void OnButtonInput(ref POINTER_INFO ptr) { if (ptr.evt == POINTER_INFO.INPUT_EV...
using System; using System.Collections.Generic; using UnityEngine; using PreFlightTests; namespace WernherChecker { class CrewCheck : IPreFlightTest { static PreFlightCheck checks; public static void OnButtonInput(ref POINTER_INFO ptr) { if (ptr.evt == POINTER_INFO.INPUT_EV...
mit
C#
8aca33063f854d9f6db153624b6b068e8830ddf2
update version
prodot/ReCommended-Extension
Sources/ReCommendedExtension/Properties/AssemblyInfo.cs
Sources/ReCommendedExtension/Properties/AssemblyInfo.cs
using System.Reflection; using ReCommendedExtension; // 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(ZoneMarker.ExtensionName)] [assembly: AssemblyDescript...
using System.Reflection; using ReCommendedExtension; // 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(ZoneMarker.ExtensionName)] [assembly: AssemblyDescript...
apache-2.0
C#
00b417b80e1dac3829d1e9b13ab95792975f6b3d
Update controller implementation to use Twilio settings
peterblazejewicz/asp5-mvc6-examples,peterblazejewicz/asp5-mvc6-examples,peterblazejewicz/asp5-mvc6-examples,peterblazejewicz/asp5-mvc6-examples
TwilioMakeAndReceiveCalls/Controllers/HomeController.cs
TwilioMakeAndReceiveCalls/Controllers/HomeController.cs
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNet.Mvc; using Twilio; using Twilio.TwiML; using Microsoft.Framework.OptionsModel; namespace TwilioMakeAndReceiveCalls.Controllers { public class HomeController : Controller { ...
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNet.Mvc; using Twilio; using Twilio.TwiML; using Microsoft.Framework.OptionsModel; namespace TwilioMakeAndReceiveCalls.Controllers { public class HomeController : Controller { ...
mit
C#
b6068a242e7ae0b33abeeb273e2fd9e4c3de0d3d
Update ValuesOut.cs
EricZimmerman/RegistryPlugins
RegistryPlugin.USB/ValuesOut.cs
RegistryPlugin.USB/ValuesOut.cs
using System; using RegistryPluginBase.Interfaces; namespace RegistryPlugin.USB { public class ValuesOut : IValueOut { public ValuesOut(string keyName, string serialNumber, string deviceName, string friendlyName, string locationinformation, DateTimeOffset? timestamp) { KeyName = ke...
using System; using RegistryPluginBase.Interfaces; namespace RegistryPlugin.USB { public class ValuesOut : IValueOut { public ValuesOut(string keyName, string serialNumber, string deviceName, string friendlyName, string locationinformation, DateTimeOffset? timestamp) { KeyName = ke...
mit
C#
d19e363bffc1e0e0493b5a7b7d0da30855bcae57
Handle null
nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet
WalletWasabi.Gui/Converters/RpcStatusStringConverter.cs
WalletWasabi.Gui/Converters/RpcStatusStringConverter.cs
using Avalonia.Data.Converters; using System; using System.Collections.Generic; using System.Globalization; using System.Text; using WalletWasabi.BitcoinCore.Monitor; using WalletWasabi.Exceptions; using WalletWasabi.Helpers; namespace WalletWasabi.Gui.Converters { public class RpcStatusStringConverter : IValueConver...
using Avalonia.Data.Converters; using System; using System.Collections.Generic; using System.Globalization; using System.Text; using WalletWasabi.BitcoinCore.Monitor; using WalletWasabi.Exceptions; using WalletWasabi.Helpers; namespace WalletWasabi.Gui.Converters { public class RpcStatusStringConverter : IValueConver...
mit
C#
c598240fa3abd85a0f7fc5937f4c0304e33a8e72
Fix uninstall for project k projects
xoofx/NuGet,mrward/nuget,mrward/NuGet.V2,GearedToWar/NuGet2,oliver-feng/nuget,jholovacs/NuGet,mrward/NuGet.V2,antiufo/NuGet2,mrward/NuGet.V2,jholovacs/NuGet,RichiCoder1/nuget-chocolatey,akrisiun/NuGet,jmezach/NuGet2,jholovacs/NuGet,jmezach/NuGet2,xoofx/NuGet,antiufo/NuGet2,oliver-feng/nuget,mrward/nuget,mrward/NuGet.V2...
src/V3/NuGet.Client/Installation/UninstallActionHandler.cs
src/V3/NuGet.Client/Installation/UninstallActionHandler.cs
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; using NewPackageAction = NuGet.Client.Resolution.PackageAction; namespace NuGet.Client.Installation { public class UninstallActionHandler : IActionH...
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; using NewPackageAction = NuGet.Client.Resolution.PackageAction; namespace NuGet.Client.Installation { public class UninstallActionHandler : IActionH...
apache-2.0
C#
6d6df94ee955e6ba39c4e471279fe1ad6ca2f92d
Create Error message in Title
Team-Code-Ninjas/SpaceBlog,Team-Code-Ninjas/SpaceBlog,Team-Code-Ninjas/SpaceBlog
SpaceBlog/SpaceBlog/Models/Article.cs
SpaceBlog/SpaceBlog/Models/Article.cs
using System; using System.ComponentModel.DataAnnotations; namespace SpaceBlog.Models { public class Article { public Article() { Date = DateTime.Now; } [Key] public int Id { get; set; } [Required] [MaxLength(50, ErrorMessage = "The Title m...
using System; using System.ComponentModel.DataAnnotations; namespace SpaceBlog.Models { public class Article { public Article() { Date = DateTime.Now; } [Key] public int Id { get; set; } [Required] [MaxLength(50)] public string Titl...
mit
C#
9dd3d28436e9b2fd44b3de3117654e7d89f3d0d9
Fix SettingsTextBox having width of 0
naoey/osu,2yangk23/osu,UselessToucan/osu,EVAST9919/osu,ppy/osu,ZLima12/osu,peppy/osu,NeoAdonis/osu,smoogipoo/osu,peppy/osu-new,smoogipooo/osu,ppy/osu,UselessToucan/osu,2yangk23/osu,DrabWeb/osu,DrabWeb/osu,naoey/osu,naoey/osu,EVAST9919/osu,DrabWeb/osu,peppy/osu,smoogipoo/osu,ppy/osu,johnneijzen/osu,NeoAdonis/osu,Useless...
osu.Game/Overlays/Settings/SettingsTextBox.cs
osu.Game/Overlays/Settings/SettingsTextBox.cs
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using osu.Framework.Graphics; using osu.Game.Graphics.UserInterface; namespace osu.Game.Overlays.Settings { public class SettingsTextBox : SettingsItem<string> ...
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using osu.Framework.Graphics; using osu.Game.Graphics.UserInterface; namespace osu.Game.Overlays.Settings { public class SettingsTextBox : SettingsItem<string> ...
mit
C#
ceae3a6644e629690c7931a5976d7b27e77a90e8
Change to jobs on resume page
travistme/PersonalSite
TElkins.Web/Views/Resume/Index.cshtml
TElkins.Web/Views/Resume/Index.cshtml
 @{ ViewBag.Title = "Resume"; } <div class="col-sm-8 col-sm-offset-2"> <div class="col-xs-12 col-sm-6 col-sm-offset-3 list-group" id="aboutButtonGroup"> <button type="button" class="list-group-item storyList" id="2015"><p class="text-center">Information Technology Intern</p></button> <button ...
 @{ ViewBag.Title = "Resume"; } <div class="col-sm-8 col-sm-offset-2"> <div class="col-xs-12 col-sm-6 col-sm-offset-3 list-group" id="aboutButtonGroup"> <button type="button" class="list-group-item storyList" id="2015"><p class="text-center">2015</p></button> <button type="button" class="list...
mit
C#
de32e0714eb0b2a0a741fa246548cfe16517ff5b
Move mouse state setting to SetHost.
EVAST9919/osu-framework,smoogipooo/osu-framework,ZLima12/osu-framework,RedNesto/osu-framework,paparony03/osu-framework,paparony03/osu-framework,ppy/osu-framework,Nabile-Rahmani/osu-framework,Nabile-Rahmani/osu-framework,EVAST9919/osu-framework,DrabWeb/osu-framework,peppy/osu-framework,Tom94/osu-framework,DrabWeb/osu-fr...
osu.Framework.VisualTests/VisualTestGame.cs
osu.Framework.VisualTests/VisualTestGame.cs
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE using osu.Framework.Allocation; using osu.Framework.Graphics; using osu.Framework.Graphics.Cursor; using osu.Framework.Platform; using osu.Framework.Sc...
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE using osu.Framework.Allocation; using osu.Framework.Graphics; using osu.Framework.Graphics.Cursor; using osu.Framework.Platform; using osu.Framework.Sc...
mit
C#
c30adec9aee2cc7296a1923adcca8f80f4342033
Fix Trumbowyg: Missing Shortcodes icon (#9708)
xkproject/Orchard2,stevetayloruk/Orchard2,stevetayloruk/Orchard2,xkproject/Orchard2,stevetayloruk/Orchard2,xkproject/Orchard2,stevetayloruk/Orchard2,xkproject/Orchard2,xkproject/Orchard2,stevetayloruk/Orchard2
src/OrchardCore.Modules/OrchardCore.ContentFields/Views/HtmlField-Wysiwyg.Edit.cshtml
src/OrchardCore.Modules/OrchardCore.ContentFields/Views/HtmlField-Wysiwyg.Edit.cshtml
@model OrchardCore.ContentFields.ViewModels.EditHtmlFieldViewModel @using OrchardCore.ContentManagement.Metadata.Models @using OrchardCore.ContentFields.Settings; @{ var settings = Model.PartFieldDefinition.GetSettings<HtmlFieldSettings>(); var culture = await Orchard.GetContentCultureAsync(Model.Field.Content...
@model OrchardCore.ContentFields.ViewModels.EditHtmlFieldViewModel @using OrchardCore.ContentManagement.Metadata.Models @using OrchardCore.ContentFields.Settings; @{ var settings = Model.PartFieldDefinition.GetSettings<HtmlFieldSettings>(); var culture = await Orchard.GetContentCultureAsync(Model.Field.Content...
bsd-3-clause
C#
49e1a728265cebd09f28f948ea62322751450596
Create predefined JsonValue instances for boolean values to save memory.
PenguinF/sandra-three
Eutherion/Shared/Text/Json/JsonValue.cs
Eutherion/Shared/Text/Json/JsonValue.cs
#region License /********************************************************************************* * JsonValue.cs * * Copyright (c) 2004-2019 Henk Nicolai * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obt...
#region License /********************************************************************************* * JsonValue.cs * * Copyright (c) 2004-2019 Henk Nicolai * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obt...
apache-2.0
C#
8ecb660682451524e67812c9e82156646f8b4190
Fix the wording at tx build
nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet
WalletWasabi.Gui/Controls/WalletExplorer/BuildTabViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/BuildTabViewModel.cs
using AvalonStudio.Extensibility; using AvalonStudio.Shell; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using WalletWasabi.Blockchain.TransactionBuilding; using WalletWasabi.Gui.Helpers; namespace WalletWasabi.Gui.Controls.WalletExplorer { public...
using AvalonStudio.Extensibility; using AvalonStudio.Shell; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using WalletWasabi.Blockchain.TransactionBuilding; using WalletWasabi.Gui.Helpers; namespace WalletWasabi.Gui.Controls.WalletExplorer { public...
mit
C#
3276db60722910035ba0b007c09a7f50605c2907
add null case handling
yasokada/unity-150912-findParentCanvasOfPanel
Assets/FindParentCanvas.cs
Assets/FindParentCanvas.cs
using UnityEngine; using System.Collections; using UnityEngine.UI; /* * v0.3 2015/09/15 * - add null case handling for GetComponentInParent() * v0.2 2015/09/15 * - brush up getMyParentCanvasName() by using GetComponentInParent() * v0.1 2015/09/12 * - getMyParentCanvasName() worked as expected */ public...
using UnityEngine; using System.Collections; using UnityEngine.UI; /* * v0.2 2015/09/15 * - brush up getMyParentCanvasName() by using GetComponentInParent() * v0.1 2015/09/12 * - getMyParentCanvasName() worked as expected */ public class FindParentCanvas : MonoBehaviour { string getMyParentCanvasName(Ga...
mit
C#
b09d9b7e1f761e9070c0f3aa3629928729c1c7a1
Add todo in slider tail to avoid confusion
smoogipoo/osu,ZLima12/osu,ppy/osu,UselessToucan/osu,NeoAdonis/osu,smoogipoo/osu,ZLima12/osu,peppy/osu,NeoAdonis/osu,johnneijzen/osu,EVAST9919/osu,peppy/osu-new,peppy/osu,ppy/osu,UselessToucan/osu,UselessToucan/osu,ppy/osu,2yangk23/osu,EVAST9919/osu,peppy/osu,johnneijzen/osu,smoogipooo/osu,2yangk23/osu,NeoAdonis/osu,smo...
osu.Game.Rulesets.Osu/Objects/Drawables/DrawableSliderTail.cs
osu.Game.Rulesets.Osu/Objects/Drawables/DrawableSliderTail.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.Bindables; using osu.Framework.Graphics; using osu.Game.Rulesets.Objects; using osu.Game.Rulesets.Scoring; using osuTK; namespace osu.Game.Rulesets....
// 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.Bindables; using osu.Framework.Graphics; using osu.Game.Rulesets.Objects; using osu.Game.Rulesets.Scoring; using osuTK; namespace osu.Game.Rulesets....
mit
C#
8b08dd0ac4f1a2cfa8e992c3263898d59339ec85
Fix the response always to be error.
yonglehou/msgpack-rpc-cli,yfakariya/msgpack-rpc-cli
src/MsgPack.Rpc.Client/Rpc/Client/ErrorInterpreter.cs
src/MsgPack.Rpc.Client/Rpc/Client/ErrorInterpreter.cs
#region -- License Terms -- // // MessagePack for CLI // // Copyright (C) 2010 FUJIWARA, Yusuke // // 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.or...
#region -- License Terms -- // // MessagePack for CLI // // Copyright (C) 2010 FUJIWARA, Yusuke // // 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.or...
apache-2.0
C#
3ad66b4f25a1a751b570375b97d0d66b66bd60cc
fix FeedConectorExtended model
lvermeulen/ProGet.Net
src/ProGet.Net/Native/Models/FeedConnectorExtended.cs
src/ProGet.Net/Native/Models/FeedConnectorExtended.cs
// ReSharper disable InconsistentNaming namespace ProGet.Net.Native.Models { public class FeedConnectorExtended { public int Feed_Id { get; set; } public string Feed_Name { get; set; } public bool Feed_Active_Indicator { get; set; } public string Connector_Name { get; set; } ...
// ReSharper disable InconsistentNaming namespace ProGet.Net.Native.Models { public class FeedConnectorExtended { public int Feed_Id { get; set; } public string Feed_Name { get; set; } public bool Feed_Active_Indicator { get; set; } public string Connector_Name { get; set; } ...
mit
C#
593890e5a5a78e51fc4df9ad0942ea6d46e572ff
Remove useless `set` properties
xavierfoucrier/gmail-notifier,xavierfoucrier/gmail-notifier
code/Core.cs
code/Core.cs
using System; using System.Diagnostics; using System.IO; using System.Windows.Forms; using notifier.Properties; namespace notifier { static class Core { #region #attributes #endregion #region #methods /// <summary> /// Class constructor /// </summary> static Core() { // initialize the applicatio...
using System; using System.Diagnostics; using System.IO; using System.Windows.Forms; using notifier.Properties; namespace notifier { static class Core { #region #attributes #endregion #region #methods /// <summary> /// Class constructor /// </summary> static Core() { // initialize the applicatio...
mit
C#
82cb8884485c16a45e4720ec7c2ae4d4c30acdf4
set title in demo widget
Pondidum/Dashen,Pondidum/Dashen,Pondidum/Dashen,Pondidum/Dashen
Dashen.Tests/Scratchpad.cs
Dashen.Tests/Scratchpad.cs
using System; using System.Diagnostics; using System.Threading; using Dashen.Components; using Xunit; namespace Dashen.Tests { public class Scratchpad { [Fact] public void When_running_the_dashboard() { if (Debugger.IsAttached == false) { return; } var dashboard = DashboardBuilder.Create(new ...
using System; using System.Diagnostics; using System.Threading; using Dashen.Components; using Xunit; namespace Dashen.Tests { public class Scratchpad { [Fact] public void When_running_the_dashboard() { if (Debugger.IsAttached == false) { return; } var dashboard = DashboardBuilder.Create(new ...
lgpl-2.1
C#
5dd044b60f001760f887ef6a21f804bb829953bb
Use MouseEventArgs
sakapon/Samples-2014,sakapon/Samples-2014,sakapon/Samples-2014
RxSample/MouseRx2Wpf/EventsExtension.cs
RxSample/MouseRx2Wpf/EventsExtension.cs
using System; using System.Collections.Generic; using System.Linq; using System.Reactive.Linq; using System.Windows; using System.Windows.Controls; using System.Windows.Input; namespace MouseRx2Wpf { public class EventsExtension { public Control Target { get; } public IObservable<IObservable<V...
using System; using System.Collections.Generic; using System.Linq; using System.Reactive.Linq; using System.Windows; using System.Windows.Controls; using System.Windows.Input; namespace MouseRx2Wpf { public class EventsExtension { public Control Target { get; } public IObservable<IObservable<V...
mit
C#
d6c2328c867e8fb940e0e5214620dacff3760c6b
Fix Luhn tests not running (#168)
exercism/xcsharp,robkeim/xcsharp,ErikSchierboom/xcsharp,GKotfis/csharp,GKotfis/csharp,exercism/xcsharp,ErikSchierboom/xcsharp,robkeim/xcsharp
exercises/luhn/LuhnTest.cs
exercises/luhn/LuhnTest.cs
using NUnit.Framework; [TestFixture] public class LuhnTest { [TestCase("1", ExpectedResult = false)] // single digit strings can not be valid [TestCase("0", ExpectedResult = false, Ignore = "Remove to run test case")] // a single zero is invalid [TestCase("046 454 286", ExpectedResult = true, Ignore = "Rem...
using NUnit.Framework; [TestFixture] public class LuhnTest { [TestCase("1", ExpectedResult = false)] // single digit strings can not be valid [TestCase("0", ExpectedResult = false, Ignore = "Remove to run test")] // a single zero is invalid [TestCase("046 454 286", ExpectedResult = true, Ignore = "Remove t...
mit
C#
bc5f90c61514bb9d2becd236fdec3212ad37723f
clarify pubsub example
VictorScherbakov/SharpChannels
Examples/PubSub/Program.cs
Examples/PubSub/Program.cs
using System; using System.Net; using SharpChannels.Core; using SharpChannels.Core.Channels; using SharpChannels.Core.Channels.Tcp; using SharpChannels.Core.Communication; using SharpChannels.Core.Messages; using SharpChannels.Core.Serialization; namespace Examples.PubSub { class Program { private sta...
using System; using System.Net; using SharpChannels.Core; using SharpChannels.Core.Channels; using SharpChannels.Core.Channels.Tcp; using SharpChannels.Core.Communication; using SharpChannels.Core.Messages; using SharpChannels.Core.Serialization; namespace Examples.PubSub { class Program { private sta...
mit
C#
15e2c09e9d9253b4baf67d82e2ebf233fbe98b18
Test executing invalid SQL.
gitsno/MySqlConnector,mysql-net/MySqlConnector,mysql-net/MySqlConnector,gitsno/MySqlConnector
tests/SideBySide.New/QueryTests.cs
tests/SideBySide.New/QueryTests.cs
using System.Threading.Tasks; using MySql.Data.MySqlClient; using Xunit; namespace SideBySide { public class QueryTests : IClassFixture<DatabaseFixture> { public QueryTests(DatabaseFixture database) { m_database = database; } [Fact] public void WithoutUserVariables() { var csb = Constants.CreateC...
using MySql.Data.MySqlClient; using Xunit; namespace SideBySide { public class QueryTests : IClassFixture<DatabaseFixture> { public QueryTests(DatabaseFixture database) { m_database = database; } [Fact] public void WithoutUserVariables() { var csb = Constants.CreateConnectionStringBuilder(); c...
mit
C#
744b52c61f3460925c279fdcaa4f61c876a699a7
mark conn string not ever used yet
collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists
src/FilterLists.Agent/AppSettings/ConnectionStringSettings.cs
src/FilterLists.Agent/AppSettings/ConnectionStringSettings.cs
namespace FilterLists.Agent.AppSettings { public class ConnectionStringSettings { public string FilterListsConnection { get; set; } } }
using JetBrains.Annotations; namespace FilterLists.Agent.AppSettings { [UsedImplicitly] public class ConnectionStringSettings { public string FilterListsConnection { get; set; } } }
mit
C#
b8b36698ebad81e79602a263407b1aaee0fef58e
Change CouchException to include the request URI
tekbird/LoveSeat
LoveSeat/CouchException.cs
LoveSeat/CouchException.cs
using System.Net; using LoveSeat.Support; namespace LoveSeat { public class CouchException : System.Exception { private readonly HttpWebRequest request; private readonly HttpWebResponse response; public CouchException(HttpWebRequest request, HttpWebResponse response, string mesg) ...
using System.Net; using LoveSeat.Support; namespace LoveSeat { public class CouchException : System.Exception { private readonly HttpWebRequest request; private readonly HttpWebResponse response; public CouchException(HttpWebRequest request, HttpWebResponse response, string mesg) : base(...
mit
C#
1febe17dbc85da83242c1b10af8fd3e757ed4d13
update CheckBoxWrapper to check based on the selected value
mvbalaw/FluentBrowserAutomation
src/FluentBrowserAutomation/Controls/CheckBoxWrapper.cs
src/FluentBrowserAutomation/Controls/CheckBoxWrapper.cs
using FluentBrowserAutomation.Accessors; using OpenQA.Selenium; namespace FluentBrowserAutomation.Controls { public class CheckBoxWrapper : BasicInfoWrapper, ICanBeClicked, IAmInputThatCanBeChanged, IAmToggleableInput, INeedFocus { public CheckBoxWrapper(IWebElement checkBox, string howFound, IBrowserContext brow...
using FluentBrowserAutomation.Accessors; using OpenQA.Selenium; namespace FluentBrowserAutomation.Controls { public class CheckBoxWrapper : BasicInfoWrapper, ICanBeClicked, IAmInputThatCanBeChanged, IAmToggleableInput, INeedFocus { public CheckBoxWrapper(IWebElement checkBox, string howFound, IBrowserContext brow...
mit
C#
ed246fb88b01348d6981c517801f8615e7232c6b
Update Benchmark project
AArnott/Nerdbank.GitVersioning,AArnott/Nerdbank.GitVersioning,AArnott/Nerdbank.GitVersioning
src/NerdBank.GitVersioning.Benchmarks/GetVersionBenchmarks.cs
src/NerdBank.GitVersioning.Benchmarks/GetVersionBenchmarks.cs
using System; using System.IO; using BenchmarkDotNet.Attributes; using Nerdbank.GitVersioning; using NerdBank.GitVersioning.Managed; namespace NerdBank.GitVersioning.Benchmarks { public class GetVersionBenchmarks { [Params( "xunit;version.json", "Cuemon;version.json", ...
using System; using System.IO; using BenchmarkDotNet.Attributes; using Nerdbank.GitVersioning; namespace NerdBank.GitVersioning.Benchmarks { class GetVersionBenchmarks { [Params( "xunit;version.json", "Cuemon;version.json", "SuperSocket;version.json", "N...
mit
C#
cd8660a884967cb91540fcb80ec8cae1590043d9
Fix resource manifest for gallery -- should enable with the Gallery feature
aaronamm/Orchard,harmony7/Orchard,m2cms/Orchard,tobydodds/folklife,spraiin/Orchard,ericschultz/outercurve-orchard,geertdoornbos/Orchard,patricmutwiri/Orchard,dcinzona/Orchard,asabbott/chicagodevnet-website,mgrowan/Orchard,jersiovic/Orchard,RoyalVeterinaryCollege/Orchard,Serlead/Orchard,armanforghani/Orchard,sfmskywalke...
src/Orchard.Web/Modules/Orchard.Packaging/ResourceManifest.cs
src/Orchard.Web/Modules/Orchard.Packaging/ResourceManifest.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Orchard.Environment.Extensions; using Orchard.UI.Resources; namespace Orchard.Packaging { [OrchardFeature("Gallery")] public class ResourceManifest : IResourceManifestProvider { public void BuildManife...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Orchard.UI.Resources; namespace Orchard.Packaging { public class ResourceManifest : IResourceManifestProvider { public void BuildManifests(ResourceManifestBuilder builder) { builder.Add().Define...
bsd-3-clause
C#
d9d359057877c540fb7b1fbadedcfd1e9c902885
Add more properties to DotNetProjectInformation
OmniSharp/omnisharp-roslyn,nabychan/omnisharp-roslyn,DustinCampbell/omnisharp-roslyn,hal-ler/omnisharp-roslyn,nabychan/omnisharp-roslyn,DustinCampbell/omnisharp-roslyn,jtbm37/omnisharp-roslyn,jtbm37/omnisharp-roslyn,hal-ler/omnisharp-roslyn,OmniSharp/omnisharp-roslyn
src/OmniSharp.DotNet/Models/DotNetProjectInformation.cs
src/OmniSharp.DotNet/Models/DotNetProjectInformation.cs
using System.Collections.Generic; using Microsoft.DotNet.ProjectModel; namespace OmniSharp.DotNet.Models { internal class DotNetProjectInformation { public DotNetProjectInformation(ProjectContext projectContext, string configuration, bool includeSourceFiles = false) { this.Path = p...
using System.Collections.Generic; using Microsoft.DotNet.ProjectModel; namespace OmniSharp.DotNet.Models { internal class DotNetProjectInformation { public DotNetProjectInformation(ProjectContext projectContext, string configuration, bool includeSourceFiles = false) { this.Path = p...
mit
C#