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 |
|---|---|---|---|---|---|---|---|---|
d7d0dde5d27c84cfb2e7380158d1c4e26b1cd40a | use created storyboard to check for drawables instead | ppy/osu,UselessToucan/osu,smoogipoo/osu,ppy/osu,smoogipoo/osu,peppy/osu,UselessToucan/osu,NeoAdonis/osu,smoogipooo/osu,smoogipoo/osu,ppy/osu,peppy/osu,NeoAdonis/osu,peppy/osu-new,NeoAdonis/osu,peppy/osu,UselessToucan/osu | osu.Game/Graphics/Backgrounds/BeatmapBackgroundWithStoryboard.cs | osu.Game/Graphics/Backgrounds/BeatmapBackgroundWithStoryboard.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Linq;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Textures;
using osu.Framework.Timing;
using osu.Game.Beatmap... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Linq;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Textures;
using osu.Framework.Timing;
using osu.Game.Beatmap... | mit | C# |
e211a6bf451d5c435ebec834aebc1087431dbc50 | update sample | MarcBruins/TTGSnackbar-Xamarin-iOS | Sample/TTGSnackbarSample/ViewController.cs | Sample/TTGSnackbarSample/ViewController.cs | using System;
using TTGSnackBar;
using UIKit;
namespace TTGSnackbarSample
{
public partial class ViewController : UIViewController
{
protected ViewController(IntPtr handle) : base(handle)
{
// Note: this .ctor should not contain any initialization logic.
}
public o... | using System;
using TTGSnackBar;
using UIKit;
namespace TTGSnackbarSample
{
public partial class ViewController : UIViewController
{
protected ViewController(IntPtr handle) : base(handle)
{
// Note: this .ctor should not contain any initialization logic.
}
public o... | mit | C# |
8f465e4867c3e76f2d668294924531e5541c3d47 | improve backwards compatibility | janjonas/OpenContent,janjonas/OpenContent,janjonas/OpenContent,janjonas/OpenContent,janjonas/OpenContent | AddEdit.ascx.cs | AddEdit.ascx.cs | #region Copyright
//
// Copyright (c) 2015
// by Satrabel
//
#endregion
#region Using Statements
using System;
using DotNetNuke.Entities.Modules;
using DotNetNuke.Common;
using DotNetNuke.Framework.JavaScriptLibraries;
using DotNetNuke.Framework;
using DotNetNuke.Services.Localization;
using System.IO;
using DotN... | #region Copyright
//
// Copyright (c) 2015
// by Satrabel
//
#endregion
#region Using Statements
using System;
using DotNetNuke.Entities.Modules;
using DotNetNuke.Common;
using DotNetNuke.Framework.JavaScriptLibraries;
using DotNetNuke.Framework;
using DotNetNuke.Services.Localization;
using System.IO;
using DotN... | mit | C# |
6477ba3ebec2027ad32be8db1b47679b612be74b | Replace tabs with spaces | zeroc-ice/ice-builder-visualstudio | IceBuilder_VS2010/Package.cs | IceBuilder_VS2010/Package.cs | // **********************************************************************
//
// Copyright (c) 2009-2016 ZeroC, Inc. All rights reserved.
//
// **********************************************************************
using System;
using System.Reflection;
using System.IO;
using System.Diagnostics;
using System.Runtime.In... | // **********************************************************************
//
// Copyright (c) 2009-2016 ZeroC, Inc. All rights reserved.
//
// **********************************************************************
using System;
using System.Reflection;
using System.IO;
using System.Diagnostics;
using System.Runtime.In... | bsd-3-clause | C# |
5b037b3c6baf27a222b2cacf51eab195d705500e | Update version to 1.3.3 | anonymousthing/ListenMoeClient | 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("Listen.moe Client")]
[assembly: Ass... | 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("Listen.moe Client")]
[assembly: Ass... | mit | C# |
7987598ee42077cafdee556e456cc7454caba400 | Bump version to 0.1.4 | sirmmo/FatturaElettronicaPA,FatturaElettronicaPA/FatturaElettronicaPA | Properties/AssemblyInfo.cs | Properties/AssemblyInfo.cs | using System.Reflection;
using System.Resources;
// 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("FatturaElettronicaPA")]
[assembly: AssemblyDescription(... | using System.Reflection;
using System.Resources;
// 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("FatturaElettronicaPA")]
[assembly: AssemblyDescription(... | bsd-3-clause | C# |
4a94cca41362c8c35d2db61adcd8382fd56a74f0 | Add the missing `TestMethod` | justinyoo/EntityFramework.Testing,justinyoo/EntityFramework.Testing,scott-xu/EntityFramework.Testing | test/EntityFramework.Testing.Moq.Tests/FakeDbSetDataTests.cs | test/EntityFramework.Testing.Moq.Tests/FakeDbSetDataTests.cs | using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace EntityFramework.Testing.Moq.Tests
{
[TestClass]
public class FakeDbSetDataTests
{
[TestMethod]
public void Data_... | using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace EntityFramework.Testing.Moq.Tests
{
[TestClass]
public class FakeDbSetDataTests
{
public void Data_is_addded_to_set()
... | apache-2.0 | C# |
25a6ba9412ce416766ec72a9ae7e002bef690ba7 | change the access to constructors back to public | ecologylab/simplCSharp | Simpl.Serialization/Attributes/SimplMap.cs | Simpl.Serialization/Attributes/SimplMap.cs | using System;
namespace Simpl.Serialization.Attributes
{
/// <summary>
/// Annotation describes a class field as a collection.
/// This includes Lists which can be both mono-morphic and
/// poly-morphic
/// </summary>
[AttributeUsage(AttributeTargets.Field | AttributeTar... | using System;
namespace Simpl.Serialization.Attributes
{
/// <summary>
/// Annotation describes a class field as a collection.
/// This includes Lists which can be both mono-morphic and
/// poly-morphic
/// </summary>
[AttributeUsage(AttributeTargets.Field | AttributeTar... | apache-2.0 | C# |
815895f2f5b56f836255c930909cd06a68148523 | Fix the proxy test, why the body was even there? | PKRoma/RestSharp,restsharp/RestSharp | test/RestSharp.IntegrationTests/ProxyTests.cs | test/RestSharp.IntegrationTests/ProxyTests.cs | using System;
using System.Net;
using NUnit.Framework;
using RestSharp.Tests.Shared.Fixtures;
namespace RestSharp.IntegrationTests
{
[TestFixture]
public class ProxyTests
{
[Test]
public void Set_Invalid_Proxy_Fails()
{
using var server = HttpServerFixture.StartServer((... | using System;
using System.Net;
using NUnit.Framework;
using RestSharp.Tests.Shared.Fixtures;
namespace RestSharp.IntegrationTests
{
[TestFixture]
public class ProxyTests
{
class RequestBodyCapturer
{
public const string RESOURCE = "Capture";
}
[Test]
p... | apache-2.0 | C# |
707ec9571786db888dc01e804a30265b6f355931 | Add SocketRole.Members property (#659) | RogueException/Discord.Net,Confruggy/Discord.Net,AntiTcb/Discord.Net | src/Discord.Net.WebSocket/Entities/Roles/SocketRole.cs | src/Discord.Net.WebSocket/Entities/Roles/SocketRole.cs | using Discord.Rest;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;
using Model = Discord.API.Role;
namespace Discord.WebSocket
{
[DebuggerDisplay(@"{DebuggerDisplay,nq}")]
public class SocketRole : SocketEntity<ulong>, IRole
{
... | using Discord.Rest;
using System;
using System.Diagnostics;
using System.Threading.Tasks;
using Model = Discord.API.Role;
namespace Discord.WebSocket
{
[DebuggerDisplay(@"{DebuggerDisplay,nq}")]
public class SocketRole : SocketEntity<ulong>, IRole
{
public SocketGuild Guild { get; }
publi... | mit | C# |
56ffa1d850ed3eec13c93f50a2d6a20e5e9d31f2 | Add storage location | jasonmalinowski/roslyn,KevinRansom/roslyn,shyamnamboodiripad/roslyn,mavasani/roslyn,physhi/roslyn,mavasani/roslyn,wvdd007/roslyn,physhi/roslyn,shyamnamboodiripad/roslyn,diryboy/roslyn,wvdd007/roslyn,dotnet/roslyn,sharwell/roslyn,jasonmalinowski/roslyn,weltkante/roslyn,bartdesmet/roslyn,KevinRansom/roslyn,dotnet/roslyn,... | src/Workspaces/Core/Portable/Storage/StorageOptions.cs | src/Workspaces/Core/Portable/Storage/StorageOptions.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.
using System;
using System.Collections.Immutable;
using System.Composition;
using Microsoft.CodeAnalysis.Host.Mef;
... | // 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;
using System.Collections.Immutable;
using System.Composition;
using Microsoft.CodeAnalysis.Host.Mef;
... | mit | C# |
f3c7856f0c4a401510fc879a9405c732334287a4 | Remove Dispose from the Data Service class because Ninject handles that for us | brunck/crisischeckin,mheggeseth/crisischeckin,andrewhart098/crisischeckin,lloydfaulkner/crisischeckin,brunck/crisischeckin,pooran/crisischeckin,jplwood/crisischeckin,pottereric/crisischeckin,jsucupira/crisischeckin,HTBox/crisischeckin,brunck/crisischeckin,mjmilan/crisischeckin,lloydfaulkner/crisischeckin,RyanBetker/cri... | crisischeckin/Services/DataService.cs | crisischeckin/Services/DataService.cs | using Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Services
{
public class DataService : IDataService
{
// This class does not dispose of the context,
// because the Ninject librar takes care o... | using Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Services
{
public class DataService : IDisposable, IDataService
{
private readonly CrisisCheckin context;
public DataService(CrisisCheckin c... | apache-2.0 | C# |
1ac0b19dec8d75f8af82345e6a5e2dfb287b94c9 | Fix build | mono/maccore | src/Foundation/NSUuid.cs | src/Foundation/NSUuid.cs | //
// NSUuid.cs: support code for the NSUUID binding
//
// Authors:
// MIguel de Icaza (miguel@xamarin.com)
//
// Copyright 2012-2013 Xamarin Inc
//
using System;
using System.Runtime.InteropServices;
using MonoMac.ObjCRuntime;
namespace MonoMac.Foundation {
partial class NSUuid {
static unsafe IntPtr GetIntPtr ... | //
// NSUuid.cs: support code for the NSUUID binding
//
// Authors:
// MIguel de Icaza (miguel@xamarin.com)
//
// Copyright 2012-2013 Xamarin Inc
//
using System;
using System.Runtime.InteropServices;
using MonoMac.ObjCRuntime;
namespace MonoMac.Foundation {
partial class NSUuid {
static unsafe IntPtr GetIntPtr ... | apache-2.0 | C# |
afab9800a8e0edae8955786829ce01b8c7820740 | Make (unused) UnixMonoTransport internal too | openmedicus/dbus-sharp,mono/dbus-sharp,openmedicus/dbus-sharp,arfbtwn/dbus-sharp,Tragetaschen/dbus-sharp,Tragetaschen/dbus-sharp,mono/dbus-sharp,arfbtwn/dbus-sharp | src/UnixMonoTransport.cs | src/UnixMonoTransport.cs | // Copyright 2006 Alp Toker <alp@atoker.com>
// This software is made available under the MIT License
// See COPYING for details
using System;
using System.IO;
using System.Net;
using System.Net.Sockets;
using Mono.Unix;
using Mono.Unix.Native;
namespace NDesk.DBus.Transports
{
class UnixMonoTransport : UnixTranspo... | // Copyright 2006 Alp Toker <alp@atoker.com>
// This software is made available under the MIT License
// See COPYING for details
using System;
using System.IO;
using System.Net;
using System.Net.Sockets;
using Mono.Unix;
using Mono.Unix.Native;
namespace NDesk.DBus.Transports
{
public class UnixMonoTransport : Unix... | mit | C# |
28cf5794ae51b574db1f4986c7a3b5512dd3125d | fix compilation | jefking/King.Service | King.Service.Tests/Data/QueueSimplifiedScalerTests.cs | King.Service.Tests/Data/QueueSimplifiedScalerTests.cs | namespace King.Service.Tests.Data
{
using King.Azure.Data;
using King.Service.Data;
using NSubstitute;
using NUnit.Framework;
using System;
using System.Collections.Generic;
[TestFixture]
public class QueueSimplifiedScalerTests
{
public class MyQScaler : QueueSimplifiedScal... | namespace King.Service.Tests.Data
{
using King.Azure.Data;
using King.Service.Data;
using NSubstitute;
using NUnit.Framework;
using System;
using System.Collections.Generic;
[TestFixture]
public class QueueSimplifiedScalerTests
{
public class MyQScaler : QueueSimplifiedScal... | mit | C# |
4dcfd49f20e5866ccb1d6812fcb97f9b8a34cd51 | Fix formatting warning | CyrusNajmabadi/roslyn,CyrusNajmabadi/roslyn,shyamnamboodiripad/roslyn,mavasani/roslyn,dotnet/roslyn,bartdesmet/roslyn,dotnet/roslyn,jasonmalinowski/roslyn,bartdesmet/roslyn,CyrusNajmabadi/roslyn,mavasani/roslyn,weltkante/roslyn,weltkante/roslyn,dotnet/roslyn,jasonmalinowski/roslyn,jasonmalinowski/roslyn,mavasani/roslyn... | src/Features/Core/Portable/Common/DocumentNavigationOperation.cs | src/Features/Core/Portable/Common/DocumentNavigationOperation.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.
using System;
using System.Threading;
using Microsoft.CodeAnalysis.Navigation;
using Microsoft.CodeAnalysis.Shared.... | // 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;
using System.Threading;
using Microsoft.CodeAnalysis.Navigation;
using Microsoft.CodeAnalysis.Shared.... | mit | C# |
22711e9623eb9e3b367758b3c3e3865962492ad1 | Add a comment about when the MoE calculation will be wrong. | christopher-bimson/VstsMetrics | VstsMetrics/Commands/CycleTime/WorkItemCycleTimeExtensions.cs | VstsMetrics/Commands/CycleTime/WorkItemCycleTimeExtensions.cs | using System;
using System.Collections.Generic;
using System.Linq;
using MathNet.Numerics.Statistics;
namespace VstsMetrics.Commands.CycleTime
{
public static class WorkItemCycleTimeExtensions
{
public static IEnumerable<WorkItemCycleTimeSummary> Summarise(this IEnumerable<WorkItemCycleTime> cycleTimes... | using System;
using System.Collections.Generic;
using System.Linq;
using MathNet.Numerics.Statistics;
namespace VstsMetrics.Commands.CycleTime
{
public static class WorkItemCycleTimeExtensions
{
public static IEnumerable<WorkItemCycleTimeSummary> Summarise(this IEnumerable<WorkItemCycleTime> cycleTimes... | agpl-3.0 | C# |
49b6f7b28c004a803cd2f27075b9afd46eb6b18a | Increment version number | roberthardy/Synthesis,kamsar/Synthesis | Source/SharedAssemblyInfo.cs | Source/SharedAssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
using System;
[assembly: AssemblyCompany("ISITE Design")]
[assembly: AssemblyProduct("Synthesis")]
[assembly: AssemblyCopyright("Copyright © Kam Figy, ISITE Design")]
[assembly: ComVisible(false)]
[assembly: AssemblyVersion("7.2.1.0")]
[assembly: Assembly... | using System.Reflection;
using System.Runtime.InteropServices;
using System;
[assembly: AssemblyCompany("ISITE Design")]
[assembly: AssemblyProduct("Synthesis")]
[assembly: AssemblyCopyright("Copyright © Kam Figy, ISITE Design")]
[assembly: ComVisible(false)]
[assembly: AssemblyVersion("7.2.0.0")]
[assembly: Assembly... | mit | C# |
c1cd31a4b21d961979a77ba9c84c1385c3158590 | Add a todo | mikedennis/StratisBitcoinFullNode,bokobza/StratisBitcoinFullNode,bokobza/StratisBitcoinFullNode,mikedennis/StratisBitcoinFullNode,Derrick-/StratisBitcoinFullNode,quantumagi/StratisBitcoinFullNode,Neurosploit/StratisBitcoinFullNode,bokobza/StratisBitcoinFullNode,stratisproject/StratisBitcoinFullNode,Neurosploit/StratisB... | Stratis.Bitcoin/MemoryPool/MempoolModule.cs | Stratis.Bitcoin/MemoryPool/MempoolModule.cs | using System;
using Microsoft.Extensions.DependencyInjection;
using NBitcoin;
namespace Stratis.Bitcoin.MemoryPool
{
public class MempoolModule : Module
{
public override void Configure(FullNode node, ServiceCollection serviceCollection)
{
// TODO: some of this types are required and will move to a NodeBuilde... | using System;
using Microsoft.Extensions.DependencyInjection;
using NBitcoin;
namespace Stratis.Bitcoin.MemoryPool
{
public class MempoolModule : Module
{
public override void Configure(FullNode node, ServiceCollection serviceCollection)
{
// temporary types
serviceCollection.AddSingleton(node.Chain);
s... | mit | C# |
b18559a0719b1611e922dcd7b4bfa2d4ef214535 | check Connected in GetState() | TakeAsh/cs-TakeAshUtility | TakeAshUtility/TcpClientExtensionMethods.cs | TakeAshUtility/TcpClientExtensionMethods.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.NetworkInformation;
using System.Net.Sockets;
using System.Text;
namespace TakeAshUtility {
public static class TcpClientExtensionMethods {
/// <summary>
/// Get TCP connection state
/// </su... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.NetworkInformation;
using System.Net.Sockets;
using System.Text;
namespace TakeAshUtility {
public static class TcpClientExtensionMethods {
/// <summary>
/// Get TCP connection state
/// </su... | mit | C# |
1bc58ab05aa03ca8158fb6f39dd7f069e7607d50 | Add new file userAuth.cpl/Droid/Properties/AssemblyInfo.cs | ArcanaMagus/userAuth.cpl,ArcanaMagus/userAuth.cpl,ArcanaMagus/userAuth.cpl,ArcanaMagus/userAuth.cpl | userAuth.cpl/Droid/Properties/AssemblyInfo.cs | userAuth.cpl/Droid/Properties/AssemblyInfo.cs | �
using System.Reflection;
using System.Runtime.CompilerServices;
using Android.App;
// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your project.
[assembly: AssemblyTitle ("userAuth.cpl.Droid")]
[assembly: AssemblyDescription ("")]
[assembly... | � using System.Reflection;
using System.Runtime.CompilerServices;
using Android.App;
// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your project.
[assembly: AssemblyTitle ("userAuth.cpl.Droid")]
[assembly: AssemblyDescription ("")]
[assembly: Asse... | mit | C# |
3644d8e86e6de314bd6fabcd1c02825c115977e3 | modify Performance improvement | darkcrash/bjd5,darkcrash/bjd5,darkcrash/bjd5,darkcrash/bjd5,darkcrash/bjd5 | Bjd.Common/Logs/LogFileWriter.cs | Bjd.Common/Logs/LogFileWriter.cs | using System;
using System.IO;
using System.Text;
using System.Threading.Tasks;
namespace Bjd.Logs
{
//生成時に1つのファイルをオープンしてset()で1行ずつ格納するクラス
public class LogFileWriter : IDisposable
{
private FileStream _fs;
private StreamWriter _sw;
private readonly string _fileName;
private... | using System;
using System.IO;
using System.Text;
namespace Bjd.Logs
{
//生成時に1つのファイルをオープンしてset()で1行ずつ格納するクラス
public class LogFileWriter : IDisposable
{
private FileStream _fs;
private StreamWriter _sw;
private readonly string _fileName;
private int disposeCount = 0;
... | apache-2.0 | C# |
3a2763b3cdfb66369d69148ed84fd63c6e24ad76 | Change location of the output ods | noahmorrison/genodf | test/GenodfTest.cs | test/GenodfTest.cs | using System;
using System.IO;
using System.Reflection;
using Genodf;
namespace GenodfTest
{
public class GenodfTest
{
public static void Main()
{
var path = Assembly.GetExecutingAssembly().Location;
var dir = Path.GetDirectoryName(path);
var filePath = Path... | using System;
using System.IO;
using Genodf;
namespace GenodfTest
{
public class GenodfTest
{
public static void Main()
{
var cwd = Directory.GetCurrentDirectory();
if (!cwd.EndsWith("build"))
cwd = Path.Combine(cwd, "build");
var filePath = ... | mit | C# |
bd79539fed24b1f630c3d69d9dbac3a5ce9f2727 | Update version for next release | lmagyar/Orleans.Activities,OrleansContrib/Orleans.Activities | src/GlobalAssemblyInfo.cs | src/GlobalAssemblyInfo.cs | using System.Reflection;
[assembly: AssemblyCompany("https://github.com/OrleansContrib")]
[assembly: AssemblyProduct("Orleans.Activities - https://github.com/OrleansContrib/Orleans.Activities")]
[assembly: AssemblyCopyright("Copyright https://github.com/OrleansContrib 2016")]
[assembly: AssemblyVersion("0.2.0.0")]
[... | using System.Reflection;
[assembly: AssemblyCompany("https://github.com/OrleansContrib")]
[assembly: AssemblyProduct("Orleans.Activities - https://github.com/OrleansContrib/Orleans.Activities")]
[assembly: AssemblyCopyright("Copyright https://github.com/OrleansContrib 2016")]
[assembly: AssemblyVersion("0.1.1.0")]
[... | apache-2.0 | C# |
6bc9f5bb974607fbf0a0e6fdbec0325308e36b58 | write to console if can't write to window | ZornTaov/ZIRC | ZIRC/Commands/CommandBase.cs | ZIRC/Commands/CommandBase.cs |
using System;
namespace ZIRC.Commands
{
public abstract class CommandBase
{
public virtual bool Do( ServerWindow window, string channel, string[] args )
{
if ( args.Length < this.MinLength() || args.Length > this.MaxLength() )
{
this.ErrorLength( window, channel, args.Length, args.Length < this.MinLen... |
using System;
namespace ZIRC.Commands
{
public abstract class CommandBase
{
public virtual bool Do( ServerWindow window, string channel, string[] args )
{
if ( args.Length < this.MinLength() || args.Length > this.MaxLength() )
{
this.ErrorLength( window, channel, args.Length, args.Length < this.MinLen... | mit | C# |
0a7e909708eba3135d683750732cc3e45f201e79 | Update Program.cs | ershadnozari/GitTest | ConsoleApp/ConsoleApp/Program.cs | ConsoleApp/ConsoleApp/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp
{
class Program
{
static void Main(string[] args)
{
// Code updated in GitHub.
}
}
}
| using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp
{
class Program
{
static void Main(string[] args)
{
}
}
}
| mit | C# |
fabb3acc505014bd521a915a5abd8537d3974995 | Move musig class in the musig namespace | MetacoSA/NBitcoin,MetacoSA/NBitcoin | NBitcoin/Secp256k1/Musig/MusigPartialSignature.cs | NBitcoin/Secp256k1/Musig/MusigPartialSignature.cs | #if HAS_SPAN
#nullable enable
using NBitcoin.Secp256k1.Musig;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.Runtime.CompilerServices;
using System.Text;
namespace NBitcoin.Secp256k1.Musig
{
#if SECP256K1_LIB
public
#endif
class MusigPar... | #if HAS_SPAN
#nullable enable
using NBitcoin.Secp256k1.Musig;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.Runtime.CompilerServices;
using System.Text;
namespace NBitcoin.Secp256k1
{
#if SECP256K1_LIB
public
#endif
class MusigPartialSi... | mit | C# |
e5b956635928ab8354977a9b0043b5ef423a89aa | Support PUT index operations | khalidabuhakmeh/NElasticsearch,synhershko/NElasticsearch | NElasticsearch/Commands/SingleDocumentCommands.cs | NElasticsearch/Commands/SingleDocumentCommands.cs | using System.Threading.Tasks;
using NElasticsearch.Models;
namespace NElasticsearch.Commands
{
/// <summary>
/// See http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/docs.html
/// </summary>
public static class SingleDocumentCommands
{
public static async Task<GetRespo... | using System.Threading.Tasks;
using NElasticsearch.Models;
namespace NElasticsearch.Commands
{
/// <summary>
/// See http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/docs.html
/// </summary>
public static class SingleDocumentCommands
{
public static async Task<GetRespo... | apache-2.0 | C# |
cc6598f6aa708f3f1f527553665c7fc9e15fd180 | Remove unused lastOutputLine calculation | jlewin/MatterControl,larsbrubaker/MatterControl,jlewin/MatterControl,larsbrubaker/MatterControl,mmoening/MatterControl,mmoening/MatterControl,unlimitedbacon/MatterControl,unlimitedbacon/MatterControl,unlimitedbacon/MatterControl,unlimitedbacon/MatterControl,larsbrubaker/MatterControl,larsbrubaker/MatterControl,mmoening... | PartPreviewWindow/View3D/SliceProgressReporter.cs | PartPreviewWindow/View3D/SliceProgressReporter.cs | /*
Copyright (c) 2017, Lars Brubaker, 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... | /*
Copyright (c) 2017, Lars Brubaker, 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... | bsd-2-clause | C# |
f950e6e378f4ff6ee1313f4aeac957e7f4b19735 | Tweak commandline options just a bit | RadicalZephyr/DesktopNotifier | DesktopNotifier/Program.cs | DesktopNotifier/Program.cs | using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using System.Drawing;
using CommandLine;
using CommandLine.Text;
using System.Threading;
namespace DesktopNotifier
{
class Program
{
[STAThreadAttribute]
static void Main(string[] args)
{
... | using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using System.Drawing;
using CommandLine;
using CommandLine.Text;
using System.Threading;
namespace DesktopNotifier
{
class Program
{
[STAThreadAttribute]
static void Main(string[] args)
{
... | mit | C# |
e6a8b4c4feabf9942845f89080082de255bb8fd2 | move to .net standard 2.0 | VictorScherbakov/SharpChannels | SharpChannels.Protobuf/Properties/AssemblyInfo.cs | SharpChannels.Protobuf/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: ComVisible(false)] | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// Управление общими сведениями о сборке осуществляется с помощью
// набора атрибутов. Измените значения этих атрибутов, чтобы изменить сведения,
// связанные со сборкой.
[assembly: AssemblyTitle("SharpChannels.Prot... | mit | C# |
ea8cbe700cb2fba502c743456b7cb02fb8831b08 | Update ErrorResponse.cs | bugfi5h/Alexa-Smart-Home | RKon.Alexa.NET/Response/ErrorResponses/ErrorResponse.cs | RKon.Alexa.NET/Response/ErrorResponses/ErrorResponse.cs | using System;
using RKon.Alexa.NET.Request;
using Newtonsoft.Json;
using RKon.Alexa.NET.Types;
namespace RKon.Alexa.NET.Response.ErrorResponses
{
/// <summary>
/// Exception, if this error response is for a DiscoverApplianceRequest
/// </summary>
public class UnvalidDiscoveryResponseException : Exce... | using System;
using RKon.Alexa.NET.Request;
using Newtonsoft.Json;
using RKon.Alexa.NET.Types;
namespace RKon.Alexa.NET.Response.ErrorResponses
{
/// <summary>
/// Exception, if this error response is for a DiscoverApplianceRequest
/// </summary>
public class UnvalidDiscoveryResponseException : Exce... | mit | C# |
23bd8c0cb53f1d17c3555783c0806470e1b76737 | bump 1.0.4 | GangZhuo/BaiduPCS_NET | Sample/Sample_0_FileExplorer/Properties/AssemblyInfo.cs | Sample/Sample_0_FileExplorer/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("Ex... | 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("Ex... | mit | C# |
cdc9140e3d6d5b5e93afd9f27fd6c50c690faa84 | Print x and y distance on touch events | villor/Styr | Droid/TouchPadGestureListener.cs | Droid/TouchPadGestureListener.cs | using Android.Views;
using System;
namespace StyrClient.Droid
{
public class TouchPadGestureListener : GestureDetector.SimpleOnGestureListener
{
public override void OnLongPress (MotionEvent e)
{
Console.WriteLine ("OnLongPress");
base.OnLongPress (e);
}
public override bool OnDoubleTap (MotionEvent ... | using Android.Views;
using System;
namespace StyrClient.Droid
{
public class TouchPadGestureListener : GestureDetector.SimpleOnGestureListener
{
public override void OnLongPress (MotionEvent e)
{
Console.WriteLine ("OnLongPress");
base.OnLongPress (e);
}
public override bool OnDoubleTap (MotionEvent ... | mit | C# |
7e12c63190c5e6e11846ceec005df7a7084c7406 | Fix native AdjustImei class path | adjust/unity_sdk,adjust/unity_sdk,adjust/unity_sdk | Assets/AdjustImei/Android/AdjustImeiAndroid.cs | Assets/AdjustImei/Android/AdjustImeiAndroid.cs | using System;
using System.Runtime.InteropServices;
using UnityEngine;
namespace com.adjust.sdk.imei
{
#if UNITY_ANDROID
public class AdjustImeiAndroid
{
private static AndroidJavaClass ajcAdjustImei = new AndroidJavaClass("com.adjust.sdk.imei.AdjustImei");
public static void ReadImei()
... | using System;
using System.Runtime.InteropServices;
using UnityEngine;
namespace com.adjust.sdk.imei
{
#if UNITY_ANDROID
public class AdjustImeiAndroid
{
private static AndroidJavaClass ajcAdjustImei = new AndroidJavaClass("com.adjust.sdk.imei.AdjustImei");
public static void ReadImei()
... | mit | C# |
3b17db84578eb70ecc19aa1dfad90256b06fa634 | Add comments | drazmazen/Hodorizer | Hodor.Scheduler/Program.cs | Hodor.Scheduler/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Win32.TaskScheduler;
using System.Threading;
using System.IO;
namespace Hodor.Scheduler
{
class Program
{
static void Main(string[] args)
{
using (Tas... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Win32.TaskScheduler;
using System.Threading;
using System.IO;
namespace Hodor.Scheduler
{
class Program
{
static void Main(string[] args)
{
using (Tas... | mit | C# |
e50bdef2cc01b764a7972cf25563dc5b7238ce0d | fix ConcurrentQueue Dequeue memory leak bug | sdgdsffdsfff/hermes.net | Arch.CMessaging.Client/Net/Core/Write/DefaultWriteRequestQueue.cs | Arch.CMessaging.Client/Net/Core/Write/DefaultWriteRequestQueue.cs | using System;
using System.Collections.Concurrent;
using Arch.CMessaging.Client.Net.Core.Session;
namespace Arch.CMessaging.Client.Net.Core.Write
{
class DefaultWriteRequestQueue : IWriteRequestQueue
{
private ConcurrentQueue<ItemWrapper<IWriteRequest>> q = new ConcurrentQueue<ItemWrapper<IWriteReques... | using System;
using System.Collections.Concurrent;
using Arch.CMessaging.Client.Net.Core.Session;
namespace Arch.CMessaging.Client.Net.Core.Write
{
class DefaultWriteRequestQueue : IWriteRequestQueue
{
private ConcurrentQueue<IWriteRequest> q = new ConcurrentQueue<IWriteRequest>();
public Int... | apache-2.0 | C# |
bf206aadb595225f75c109ef33d80ab5889295ee | Update version number and remove logging | ahockersten/ScrollsKeepChatOpen | KeepChatOpen.mod/KeepChatOpen.cs | KeepChatOpen.mod/KeepChatOpen.cs | using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Reflection;
using ScrollsModLoader.Interfaces;
using UnityEngine;
using Mono.Cecil;
namespace KeepChatOpen.mod {
public class KeepChatOpen : BaseMod {
public KeepChatOpen() {
}
... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Reflection;
using ScrollsModLoader.Interfaces;
using UnityEngine;
using Mono.Cecil;
namespace KeepChatOpen.mod {
public class KeepChatOpen : BaseMod {
public KeepChatOpen() {
}
... | bsd-2-clause | C# |
650ff8fe98b7b77163aee56e12baad60bc3641fb | Fix name violation | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet | WalletWasabi/Crypto/ZeroKnowledge/SyntheticSecretNonceProvider.cs | WalletWasabi/Crypto/ZeroKnowledge/SyntheticSecretNonceProvider.cs | using NBitcoin.Secp256k1;
using System.Collections.Generic;
using System.Linq;
using WalletWasabi.Crypto.Randomness;
using WalletWasabi.Crypto.StrobeProtocol;
using WalletWasabi.Helpers;
namespace WalletWasabi.Crypto.ZeroKnowledge
{
public class SyntheticSecretNonceProvider
{
private readonly Strobe128 Strobe;
p... | using NBitcoin.Secp256k1;
using System.Collections.Generic;
using System.Linq;
using WalletWasabi.Crypto.Randomness;
using WalletWasabi.Crypto.StrobeProtocol;
using WalletWasabi.Helpers;
namespace WalletWasabi.Crypto.ZeroKnowledge
{
public class SyntheticSecretNonceProvider
{
private readonly Strobe128 _strobe;
... | mit | C# |
a2f48887901abae7b6d2bccd0000436559cb4cf4 | Update frame method in elbgb_console to fix appveyor build | eightlittlebits/elbgb | elbgb_console/Program.cs | elbgb_console/Program.cs | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using elbgb_core;
namespace elbgb_console
{
class Program
{
static void Main(string[] args)
{
string romPath = args[0];
//romPath = @"roms\cpu_ins... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using elbgb_core;
namespace elbgb_console
{
class Program
{
static void Main(string[] args)
{
string romPath = args[0];
//romPath = @"roms\cpu_ins... | mit | C# |
8d5977d158f87068060c684cb9fc0efb52bf22f8 | Include git information in json file | pdelvo/StyleCop.Analyzers.Status,sharwell/StyleCop.Analyzers.Status,pdelvo/StyleCop.Analyzers.Status,sharwell/StyleCop.Analyzers.Status,DotNetAnalyzers/StyleCopAnalyzers,sharwell/StyleCop.Analyzers.Status,pdelvo/StyleCop.Analyzers.Status | StyleCop.Analyzers.Status.Generator/Program.cs | StyleCop.Analyzers.Status.Generator/Program.cs | namespace StyleCop.Analyzers.Status.Generator
{
using System;
using System.IO;
using System.Linq;
using LibGit2Sharp;
using Newtonsoft.Json;
/// <summary>
/// The starting point of this application.
/// </summary>
internal class Program
{
/// <summary>
/// The s... | namespace StyleCop.Analyzers.Status.Generator
{
using System;
using System.IO;
using LibGit2Sharp;
using Newtonsoft.Json;
/// <summary>
/// The starting point of this application.
/// </summary>
internal class Program
{
/// <summary>
/// The starting point of this a... | mit | C# |
9be4715bd2eba1c5a135639d966ef4b3ca86b43b | Update RavenUnitOfWorkBase.cs | tiksn/TIKSN-Framework | TIKSN.Core/Data/RavenDB/RavenUnitOfWorkBase.cs | TIKSN.Core/Data/RavenDB/RavenUnitOfWorkBase.cs | using System;
using System.Threading;
using System.Threading.Tasks;
using Raven.Client.Documents;
using Raven.Client.Documents.Session;
namespace TIKSN.Data.RavenDB
{
public abstract class RavenUnitOfWorkBase : UnitOfWorkBase
{
protected readonly IAsyncDocumentSession _session;
protected Rave... | using Raven.Client.Documents;
using Raven.Client.Documents.Session;
using System;
using System.Threading;
using System.Threading.Tasks;
namespace TIKSN.Data.RavenDB
{
public abstract class RavenUnitOfWorkBase : UnitOfWorkBase
{
protected readonly IAsyncDocumentSession _session;
protected Rave... | mit | C# |
4fdff3ad31d0888a98acea60de4c3627d3a45121 | Remove unused code | danielmundt/csremote | source/Remoting.Server/Server.cs | source/Remoting.Server/Server.cs | #region Header
// Copyright (C) 2012 Daniel Schubert
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software
// and associated documentation files (the "Software"), to deal in the Software without restriction,
// including without limitation the rights to use, copy, modify,... | #region Header
// Copyright (C) 2012 Daniel Schubert
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software
// and associated documentation files (the "Software"), to deal in the Software without restriction,
// including without limitation the rights to use, copy, modify, ... | mit | C# |
c532d5343760be0d4ba52cf0d34865327a7b9d87 | Switch to Environment.NewLine | AmadeusW/roslyn,heejaechang/roslyn,heejaechang/roslyn,genlu/roslyn,jasonmalinowski/roslyn,jmarolf/roslyn,diryboy/roslyn,ErikSchierboom/roslyn,physhi/roslyn,panopticoncentral/roslyn,davkean/roslyn,aelij/roslyn,physhi/roslyn,panopticoncentral/roslyn,genlu/roslyn,mavasani/roslyn,davkean/roslyn,ErikSchierboom/roslyn,weltka... | src/Features/Lsif/Generator/Writing/JsonModeLsifJsonWriter.cs | src/Features/Lsif/Generator/Writing/JsonModeLsifJsonWriter.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.
using System;
using System.IO;
using Microsoft.CodeAnalysis.LanguageServerIndexFormat.Generator.Graph;
using Newton... | // 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;
using System.IO;
using Microsoft.CodeAnalysis.LanguageServerIndexFormat.Generator.Graph;
using Newton... | mit | C# |
91ca58037ee8337e43ab906b3a042f575a1271ec | bump to 1.15.1 | Terradue/DotNetOpenSearch | Terradue.OpenSearch/Properties/AssemblyInfo.cs | Terradue.OpenSearch/Properties/AssemblyInfo.cs | /*
* Copyright (C) 2010-2014 Terradue S.r.l.
*
* This file is part of Terradue.OpenSearch.
*
* Foobar 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 Foundation... | /*
* Copyright (C) 2010-2014 Terradue S.r.l.
*
* This file is part of Terradue.OpenSearch.
*
* Foobar 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 Foundation... | agpl-3.0 | C# |
5c7e19d344f1da731f739e3f994a02dffa6d217b | Update FromCommandExtensions.cs | Flepper/flepper,Flepper/flepper | Flepper.QueryBuilder/Commands/Extensions/FromCommandExtensions.cs | Flepper.QueryBuilder/Commands/Extensions/FromCommandExtensions.cs | namespace Flepper.QueryBuilder
{
/// <summary>
/// From Command extensions
/// </summary>
public static class FromCommandExtensions
{
/// <summary>
/// Add Where to query
/// </summary>
/// <param name="fromCommand">From command instance</param>
/// <param na... | namespace Flepper.QueryBuilder
{
/// <summary>
/// From Command extensions
/// </summary>
public static class FromCommandExtensions
{
/// <summary>
/// Add Where to query
/// </summary>
/// <param name="fromCommand">From command instance</param>
/// <param na... | mit | C# |
90e0b3374e2a975e2df4e99cffebb520653d12c9 | Add `#nullable enable` | NeoAdonis/osu,ppy/osu,smoogipooo/osu,smoogipoo/osu,peppy/osu,NeoAdonis/osu,ppy/osu,peppy/osu,NeoAdonis/osu,peppy/osu-new,UselessToucan/osu,UselessToucan/osu,UselessToucan/osu,smoogipoo/osu,smoogipoo/osu,ppy/osu,peppy/osu | osu.Game/Rulesets/Edit/BeatmapVerifierContext.cs | osu.Game/Rulesets/Edit/BeatmapVerifierContext.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.Game.Beatmaps;
#nullable enable
namespace osu.Game.Rulesets.Edit
{
/// <summary>
/// Represents the context provided by the beatmap verifier to the che... | // 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.Game.Beatmaps;
namespace osu.Game.Rulesets.Edit
{
/// <summary>
/// Represents the context provided by the beatmap verifier to the checks it runs.
... | mit | C# |
e1b32162aabb4e91ac51d87ae9448473dff8d311 | Fix the CommonAssemblyInfo file so build version substitutions work | ravengerUA/serilog-sinks-elasticsearch,mookid8000/serilog-sinks-elasticsearch,tilign/serilog-sinks-elasticsearch,serilog/serilog-sinks-elasticsearch | assets/CommonAssemblyInfo.cs | assets/CommonAssemblyInfo.cs | using System.Reflection;
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.1.1.1")]
[assembly: AssemblyInformationalVersion("1.0.0")]
| using System.Reflection;
[assembly: AssemblyVersion("0.0.0")]
[assembly: AssemblyFileVersion("0..0")]
[assembly: AssemblyInformationalVersion("0.")]
| apache-2.0 | C# |
c5e59a39324a311b560caa1608bd957a5ea8f01a | correct grammer | wangkanai/Detection | src/Responsive.Core/src/ResponsiveOptionsBuilderExtensions.cs | src/Responsive.Core/src/ResponsiveOptionsBuilderExtensions.cs | using System;
using System.Collections.Generic;
using System.Text;
using Wangkanai.Detection;
using Wangkanai.Responsive;
namespace Microsoft.AspNetCore.Builder
{
public static class ResponsiveOptionsBuilderExtensions
{
public static IResponsiveOptionsBuilder MapView(
this IResponsiveOption... | using System;
using System.Collections.Generic;
using System.Text;
using Wangkanai.Detection;
using Wangkanai.Responsive;
namespace Microsoft.AspNetCore.Builder
{
public static class ResponsiveOptionsBuilderExtensions
{
public static IResponsiveOptionsBuilder MapView(
this IResponsiveOption... | apache-2.0 | C# |
533e109a267ff4b8be9ace16f116e8c06e502667 | Update TomaszCielecki.cs | stvansolano/planetxamarin,beraybentesen/planetxamarin,planetxamarin/planetxamarin,stvansolano/planetxamarin,beraybentesen/planetxamarin,planetxamarin/planetxamarin,planetxamarin/planetxamarin,MabroukENG/planetxamarin,stvansolano/planetxamarin,planetxamarin/planetxamarin,MabroukENG/planetxamarin,beraybentesen/planetxama... | src/Firehose.Web/Authors/TomaszCielecki.cs | src/Firehose.Web/Authors/TomaszCielecki.cs | using System;
using System.Collections.Generic;
using Firehose.Web.Infrastructure;
namespace Firehose.Web.Authors
{
public class TomaszCielecki : IAmAXamarinMVP
{
public IEnumerable<Uri> FeedUris
{
get { yield return new Uri("http://blog.ostebaronen.dk/feeds/posts/default"); }
... | using System;
using System.Collections.Generic;
using Firehose.Web.Infrastructure;
namespace Firehose.Web.Authors
{
public class TomaszCielecki : IAmAXamarinMVP
{
public IEnumerable<Uri> FeedUris
{
get { yield return new Uri("http://blog.ostebaronen.dk/feeds/posts/default"); }
... | mit | C# |
011b14ca5cf162b87fd62ade83706de97b8842ef | Build script now writes the package name and version into the AssemblyDescription attibute. This allows the package information to be seen in Visual Studio avoiding confusion with the assembly version that remains at the major. | caioproiete/Autofac.Wcf,autofac/Autofac.Wcf | Properties/AssemblyInfo.cs | Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("Autofac.Integration.Wcf")]
[assembly: InternalsVisibleTo("Autofac.Tests.Integration.Wcf, PublicKey=00240000048000009400000006020000002400005253413100040000010001008728425885ef385e049261... | using System;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("Autofac.Integration.Wcf")]
[assembly: AssemblyDescription("Autofac WCF Integration")]
[assembly: InternalsVisibleTo("Autofac.Tests.Integration.Wcf, PublicKey=00240000048... | mit | C# |
671c610ea37990734da8b966e13b4c15d7779933 | Set version to 1.8. | xanotech/.net-XTools | Properties/AssemblyInfo.cs | Properties/AssemblyInfo.cs | using System.Reflection;
[assembly: AssemblyTitle("XTools: common tools")]
[assembly: AssemblyCompany("Xanotech LLC")]
[assembly: AssemblyCopyright(" 2017 Xanotech LLC")]
[assembly: AssemblyProduct("XTools")]
[assembly: AssemblyFileVersion("1.8")]
[assembly: AssemblyVersion("1.8")] | using System.Reflection;
[assembly: AssemblyTitle("XTools: common tools")]
[assembly: AssemblyCompany("Xanotech LLC")]
[assembly: AssemblyCopyright(" 2016 Xanotech LLC")]
[assembly: AssemblyProduct("XTools")]
[assembly: AssemblyFileVersion("1.7")]
[assembly: AssemblyVersion("1.7")] | mit | C# |
36e6146c2c18511b22dca4116c21a8693d40b711 | Use fasterflect to reflect | HelloKitty/SceneJect,HelloKitty/SceneJect | src/SceneJect.Common/Injection/Injector.cs | src/SceneJect.Common/Injection/Injector.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using Fasterflect;
namespace SceneJect.Common
{
public class Injector
{
private readonly IResolver resolver;
private readonly Type objectType;
private readonly object objectInstance;
public Inje... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
namespace SceneJect.Common
{
public class Injector
{
private readonly IResolver resolver;
private readonly Type objectType;
private readonly object objectInstance;
public Injector(object instanc... | mit | C# |
718f9736f31c26d91d89f69f08d69e32d2f6002c | Update CarroDA.cs | cayodonatti/TopGearApi | TopGearApi.DataAccess/CarroDA.cs | TopGearApi.DataAccess/CarroDA.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TopGearApi.Domain.Models;
namespace TopGearApi.DataAccess
{
public class CarroDA : TopGearDA<Carro>
{
public static IEnumerable<Carro> GetByItem(int ItemId)
{
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TopGearApi.Domain.Models;
namespace TopGearApi.DataAccess
{
public class CarroDA : TopGearDA<Carro>
{
public IEnumerable<Carro> GetByItem(int ItemId)
{
... | mit | C# |
99aa25e4d8b362fba717753a44686be67548b9ad | Add Missing File Header (#1560) | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore | test/Microsoft.AspNetCore.SignalR.Tests/HttpHeaderEndPoint.cs | test/Microsoft.AspNetCore.SignalR.Tests/HttpHeaderEndPoint.cs | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Buffers;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsof... | using System;
using System.Buffers;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Protocols;
using Microsoft.AspNetCore.Sockets;
using Microsoft.AspNetCore.Sockets.Http.Features;
namespace Microsoft.AspNetCore.SignalR.Tests
{
public... | apache-2.0 | C# |
4e3ca43d7b29e6d81a0700a20a5800f46a7bf3bf | Update IMapper.cs | tiksn/TIKSN-Framework | TIKSN.Core/Data/IMapper.cs | TIKSN.Core/Data/IMapper.cs | namespace TIKSN.Data
{
public interface IMapper<TSource, TDestination>
{
TDestination Map(TSource source);
}
}
| namespace TIKSN.Data
{
public interface IMapper<TSource, TDestination>
{
TDestination Map(TSource source);
}
} | mit | C# |
236943314621d1aaffdfca13d69744ed76c0d99b | Update CommentsDisqus.cshtml | Shazwazza/Articulate,Shazwazza/Articulate,readingdancer/Articulate,readingdancer/Articulate,Shazwazza/Articulate,readingdancer/Articulate | src/Articulate.Web/App_Plugins/Articulate/Themes/Material/Views/Partials/CommentsDisqus.cshtml | src/Articulate.Web/App_Plugins/Articulate/Themes/Material/Views/Partials/CommentsDisqus.cshtml | @model Articulate.Models.PostModel
@if (Model.DisqusShortName.IsNullOrWhiteSpace())
{
<p>
<em>
To enable comments sign up for a <a href="http://disqus.com" target="_blank">Disqus</a> account and
enter your Disqus shortname in the Articulate node settings.
</em>
</p>
}
el... | @model Articulate.Models.PostModel
@if (Model.DisqusShortName.IsNullOrWhiteSpace())
{
<p>
<em>
To enable comments sign up for a <a href="http://disqus.com" target="_blank">Disqus</a> account and
enter your Disqus shortname in the Articulate node settings.
</em>
</p>
}
el... | mit | C# |
1c0fb619327c014b92aece84ce1a659450b9c1fa | Change WCF timeout from 10 seconds to 2 seconds | Livit/CefSharp,jamespearce2006/CefSharp,jamespearce2006/CefSharp,jamespearce2006/CefSharp,Livit/CefSharp,jamespearce2006/CefSharp,Livit/CefSharp,jamespearce2006/CefSharp,Livit/CefSharp | CefSharp/CefSharpSettings.cs | CefSharp/CefSharpSettings.cs | // Copyright © 2010-2016 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
using System;
namespace CefSharp
{
/// <summary>
/// Use this static class to configure some CefSharp specific settings like WcfTimeout
... | // Copyright © 2010-2016 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
using System;
namespace CefSharp
{
/// <summary>
/// Use this static class to configure some CefSharp specific settings like WcfTimeout
... | bsd-3-clause | C# |
a8f4a22692e8566491584113474a0df3880eea73 | Apply .EnsureTrailingSlash() to base URI | 1and1/TypedRest-DotNet,TypedRest/TypedRest-DotNet,TypedRest/TypedRest-DotNet,1and1/TypedRest-DotNet | TypedRest/EntryEndpoint.cs | TypedRest/EntryEndpoint.cs | using System;
using System.Collections.Generic;
using System.Net;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
namespace TypedRest
{
/// <summary>
/// Entry point to a REST interface. Derive from this class and add your own set of child-<see cref="IEndpoint"/>s as properties.
... | using System;
using System.Collections.Generic;
using System.Net;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
namespace TypedRest
{
/// <summary>
/// Entry point to a REST interface. Derive from this class and add your own set of child-<see cref="IEndpoint"/>s as properties.
... | mit | C# |
5444a7bfe230ae9d8707f426fe563940f1cb16ff | add <br> to match the delete view | SoftwareFans/AstroPhotoGallery,SoftwareFans/AstroPhotoGallery,SoftwareFans/AstroPhotoGallery | AstroPhotoGallery/AstroPhotoGallery/Views/Category/Edit.cshtml | AstroPhotoGallery/AstroPhotoGallery/Views/Category/Edit.cshtml | @model AstroPhotoGallery.Models.Category
@{
ViewBag.Title = "Admin - edit category";
}
<div class="container">
<div class="well">
<h2>@ViewBag.Title</h2>
<br />
<h3 style="color: #e74c3c; text-align: center">
Are you sure you want to edit the below category's name?
... | @model AstroPhotoGallery.Models.Category
@{
ViewBag.Title = "Admin - edit category";
}
<div class="container">
<div class="well">
<h2>@ViewBag.Title</h2>
<h3 style="color: #e74c3c; text-align: center">
Are you sure you want to edit the below category's name?
<br/>
... | mit | C# |
fb354ed1cc3dcefca803843882a087cb3417012e | remove other languages | DotNetRu/App,DotNetRu/App | DotNetRu.Android/Localize.cs | DotNetRu.Android/Localize.cs | using System.Globalization;
using System.Threading;
using Android.Content;
using Xamarin.Forms;
using XamarinEvolve.Clients.Portable.Helpers;
using XamarinEvolve.Clients.Portable.Interfaces;
[assembly: Dependency(typeof(DotNetRu.Droid.Localize))]
namespace DotNetRu.Droid
{
public class Localize : ILocalize
{... | using System.Globalization;
using System.Threading;
using Android.Content;
using Xamarin.Forms;
using XamarinEvolve.Clients.Portable.Helpers;
using XamarinEvolve.Clients.Portable.Interfaces;
[assembly: Dependency(typeof(DotNetRu.Droid.Localize))]
namespace DotNetRu.Droid
{
public class Localize : ILocalize
{... | mit | C# |
c04156deb01e0f3b1306e8b3cac152670f94dc86 | Initialize CommandException with a message | appharbor/appharbor-cli | src/AppHarbor/CommandException.cs | src/AppHarbor/CommandException.cs | using System;
namespace AppHarbor
{
public class CommandException : Exception
{
public CommandException(string message)
: base(message)
{
}
}
}
| using System;
namespace AppHarbor
{
public class CommandException : Exception
{
}
}
| mit | C# |
4fb93463f5d493c8c5939006ff4763026972c960 | Add data contract attributes to ComparisionReport.cs | Ackara/Daterpillar | src/Daterpillar.Core/Compare/ComparisonReport.cs | src/Daterpillar.Core/Compare/ComparisonReport.cs | using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
namespace Gigobyte.Daterpillar.Compare
{
[DataContract]
public class ComparisonReport : IEnumerable<Discrepancy>
{
public Counter Counters;
[DataMember]
public Outcome Summary { get; se... | using System.Collections.Generic;
namespace Gigobyte.Daterpillar.Compare
{
public class ComparisonReport
{
public Counter Counters;
public Outcome Summary { get; set; }
public IList<Discrepancy> Discrepancies { get; set; }
public struct Counter
{
public in... | mit | C# |
44fce6beef95d7c5034aadb9cec261578a56c4f0 | Remove unused Seq.Deconstruct | linqpadless/LinqPadless,linqpadless/LinqPadless | src/Seq.cs | src/Seq.cs | #region Copyright (c) 2016 Atif Aziz. 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 ap... | #region Copyright (c) 2016 Atif Aziz. 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 ap... | apache-2.0 | C# |
4a8b4afcefff5ebb76f9ae137a1d8b07cf91b401 | Clean up. Interview time. | fffej/codekatas,fffej/codekatas,fffej/codekatas | MineField/MineSweeperTest.cs | MineField/MineSweeperTest.cs | using NUnit.Framework;
using FluentAssertions;
namespace Fatvat.Katas.MineSweeper
{
[TestFixture]
public class MineSweeperTest
{
}
}
| using NUnit.Framework;
using FluentAssertions;
namespace Fatvat.Katas.MineSweeper
{
[TestFixture]
public class MineSweeperTest
{
[Test]
public void EmptyMineField()
{
var mineField = new MineField(".");
Assert.That(mineField.Show(), Is.EqualTo("0"));
... | mit | C# |
57ce3918e934a5e6b2b39e09806363eaec1a5e76 | add swap methods | pashchuk/Numerical-methods,pashchuk/Numerical-methods | CSharp/lab1/Matrix.cs | CSharp/lab1/Matrix.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace lab1
{
public class Matrix<T> where T : struct
{
#region Fields
private T[,] _matrix;
#endregion
#region Properties
public T this[int row, int column]
{
get { return _mat... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace lab1
{
public class Matrix<T> where T : struct
{
#region Fields
private T[,] _matrix;
#endregion
#region Properties
public T this[int row, int column]
{
get { return _mat... | mit | C# |
369dab053edf4a003fdf84cf17fbd5e5b0f9c505 | fix book link | tugberkugurlu/tugberk-web,tugberkugurlu/tugberk-web,tugberkugurlu/tugberk-web,tugberkugurlu/tugberk-web | src/Tugberk.Web/Views/Shared/RightSection.cshtml | src/Tugberk.Web/Views/Shared/RightSection.cshtml | <div class="right-side-holder">
<div class="row">
<div class="col">
<iframe style="width: 120px; height: 240px;" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" src="//ws-eu.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&OneJS=1&Operation=GetAdHtml&MarketPlace=GB&source=ss... | <div class="right-side-holder">
<div class="row">
<div class="col">
<iframe style="width:120px;height:240px;" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" src="//ws-na.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&OneJS=1&Operation=GetAdHtml&MarketPlace=US&source=ss&re... | agpl-3.0 | C# |
ee5c0b3aa70c5c210210033f19338292575fdb6b | Update Copyright | kgybels/git-tfs,pmiossec/git-tfs,git-tfs/git-tfs,guyboltonking/git-tfs,steveandpeggyb/Public,modulexcite/git-tfs,vzabavnov/git-tfs,WolfVR/git-tfs,andyrooger/git-tfs,adbre/git-tfs,steveandpeggyb/Public,guyboltonking/git-tfs,jeremy-sylvis-tmg/git-tfs,WolfVR/git-tfs,codemerlin/git-tfs,WolfVR/git-tfs,kgybels/git-tfs,Nathan... | CommonAssemblyInfo.cs | CommonAssemblyInfo.cs | using System.Reflection;
[assembly: AssemblyCompany("SEP")]
[assembly: AssemblyProduct("GitTfs")]
[assembly: AssemblyCopyright("Copyright © 2009-2015")]
[assembly: AssemblyVersion(GitTfsProperties.Version)]
[assembly: AssemblyFileVersion(GitTfsProperties.Version)]
| using System.Reflection;
[assembly: AssemblyCompany("SEP")]
[assembly: AssemblyProduct("GitTfs")]
[assembly: AssemblyCopyright("Copyright © 2009-2010")]
[assembly: AssemblyVersion(GitTfsProperties.Version)]
[assembly: AssemblyFileVersion(GitTfsProperties.Version)]
| apache-2.0 | C# |
b91ac895b6866cc33f79fc47c06042a0c81d8a36 | Make TimeZoneDemo work when running in different cultures | malcolmr/nodatime,malcolmr/nodatime,malcolmr/nodatime,BenJenkinson/nodatime,nodatime/nodatime,BenJenkinson/nodatime,nodatime/nodatime,malcolmr/nodatime | src/NodaTime.Demo/TimeZoneDemo.cs | src/NodaTime.Demo/TimeZoneDemo.cs | // Copyright 2010 The Noda Time Authors. All rights reserved.
// Use of this source code is governed by the Apache License 2.0,
// as found in the LICENSE.txt file.
using NodaTime.TimeZones;
using NUnit.Framework;
using System.Globalization;
namespace NodaTime.Demo
{
public class TimeZoneDemo
{
[Test]... | // Copyright 2010 The Noda Time Authors. All rights reserved.
// Use of this source code is governed by the Apache License 2.0,
// as found in the LICENSE.txt file.
using NUnit.Framework;
using NodaTime.TimeZones;
namespace NodaTime.Demo
{
public class TimeZoneDemo
{
[Test]
public void EarlyPa... | apache-2.0 | C# |
d46ea35a81e3a0ff02253140515b7eed8eb8fa9d | Add comment | sharwell/roslyn,AmadeusW/roslyn,weltkante/roslyn,shyamnamboodiripad/roslyn,AmadeusW/roslyn,jasonmalinowski/roslyn,wvdd007/roslyn,CyrusNajmabadi/roslyn,diryboy/roslyn,physhi/roslyn,weltkante/roslyn,diryboy/roslyn,KevinRansom/roslyn,jasonmalinowski/roslyn,wvdd007/roslyn,AmadeusW/roslyn,bartdesmet/roslyn,wvdd007/roslyn,ba... | src/VisualStudio/Core/Def/Implementation/ProjectSystem/CPS/IWorkspaceProjectContextFactory.cs | src/VisualStudio/Core/Def/Implementation/ProjectSystem/CPS/IWorkspaceProjectContextFactory.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.
#nullable disable
using System;
using System.Threading;
using System.Threading.Tasks;
namespace Microsoft.VisualS... | // 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.
#nullable disable
using System;
using System.Threading;
using System.Threading.Tasks;
namespace Microsoft.VisualS... | mit | C# |
baa555f769d7cbfd7b0d95f7bf80282ffb8669f0 | Update Constants.cs | nProdanov/Team-French-75 | TravelAgency/TravelAgency.Common/Constants.cs | TravelAgency/TravelAgency.Common/Constants.cs | namespace TravelAgency.Common
{
public class Constants
{
public const string MongoDbConnectionString = "mongodb://localhost";
public const string MongoDbDatabaseName = "travelagency";
public const string MongoDbCollectionName = "touroperators";
public const string MySQLConnectio... | namespace TravelAgency.Common
{
public class Constants
{
public const string MongoDbConnectionString = "mongodb://localhost";
public const string MongoDbDatabaseName = "travelagency";
public const string MongoDbCollectionName = "touroperators";
public const string MySQLConnectio... | mit | C# |
1ec732611de9d891b8896f3fca8defdfe8c9107e | fix for child compress | BlarghLabs/MoarUtils | filters/Compress.cs | filters/Compress.cs | using System.IO.Compression;
using System.Web.Mvc;
namespace MoarUtils.filters {
public class Compress : ActionFilterAttribute {
public override void OnActionExecuting(ActionExecutingContext filterContext) {
//http://stackoverflow.com/questions/15067049/asp-net-mvc-response-filter-is-null-when-using-... | using System.IO.Compression;
using System.Web.Mvc;
namespace MoarUtils.filters {
public class Compress : ActionFilterAttribute {
public override void OnActionExecuting(ActionExecutingContext filterContext) {
var encodingsAccepted = filterContext.HttpContext.Request.Headers["Accept-Encoding"];
... | mit | C# |
451207c6a8c522461c8d253fa5a8abc62b8c81ee | Fix metaData JSON property name case. | peeedge/mobile,eatskolnikov/mobile,ZhangLeiCharles/mobile,eatskolnikov/mobile,peeedge/mobile,eatskolnikov/mobile,masterrr/mobile,ZhangLeiCharles/mobile,masterrr/mobile | Phoebe/Bugsnag/Data/Event.cs | Phoebe/Bugsnag/Data/Event.cs | using System;
using Newtonsoft.Json;
using Toggl.Phoebe.Bugsnag.Json;
using System.Collections.Generic;
namespace Toggl.Phoebe.Bugsnag.Data
{
[JsonObject (MemberSerialization.OptIn)]
public class Event
{
[JsonProperty ("user", DefaultValueHandling = DefaultValueHandling.Ignore)]
public User... | using System;
using Newtonsoft.Json;
using Toggl.Phoebe.Bugsnag.Json;
using System.Collections.Generic;
namespace Toggl.Phoebe.Bugsnag.Data
{
[JsonObject (MemberSerialization.OptIn)]
public class Event
{
[JsonProperty ("user", DefaultValueHandling = DefaultValueHandling.Ignore)]
public User... | bsd-3-clause | C# |
a287f61d603917662c0d5a74ad9ea020f878ef13 | Add static fonts folder to UIConventions (#17) | bwatts/Totem,bwatts/Totem | Source/Totem.Web/WebUIApp.cs | Source/Totem.Web/WebUIApp.cs | using System;
using System.Collections.Generic;
using System.Linq;
using Nancy;
using Nancy.Conventions;
namespace Totem.Web
{
/// <summary>
/// An HTTP-bound API serving a user interface
/// </summary>
public abstract class WebUIApp : WebApiApp, IRootPathProvider
{
protected WebUIApp(WebUIContext context) : b... | using System;
using System.Collections.Generic;
using System.Linq;
using Nancy;
using Nancy.Conventions;
namespace Totem.Web
{
/// <summary>
/// An HTTP-bound API serving a user interface
/// </summary>
public abstract class WebUIApp : WebApiApp, IRootPathProvider
{
protected WebUIApp(WebUIContext context) : b... | mit | C# |
c7c7c00c412f5590644eeafebd9ac19fe26bec58 | Add tests around ordering of public enum values | noobot/SlackConnector | tests/SlackConnector.Tests.Unit/Models/MessageSubTypeEnumTests.cs | tests/SlackConnector.Tests.Unit/Models/MessageSubTypeEnumTests.cs | using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using Shouldly;
using SlackConnector.Connections.Sockets.Messages.Inbound;
using SlackConnector.Models;
using Xunit;
namespace SlackConnector.Tests.Unit.Models
{
public class MessageSubTypeEnumTests
{
[Fact]... | using System;
using System.Linq;
using Shouldly;
using SlackConnector.Connections.Sockets.Messages.Inbound;
using SlackConnector.Models;
using Xunit;
namespace SlackConnector.Tests.Unit.Models
{
public class MessageSubTypeEnumTests
{
[Fact]
public void should_have_same_number_of_enum_values_as... | mit | C# |
676473da784dc942b33b9455e21fa111f3840232 | Resolve #AG169 - Fix URL encoding for labels | csf-dev/agiil,csf-dev/agiil,csf-dev/agiil,csf-dev/agiil | Agiil.Web.Models/Labels/LabelDto.cs | Agiil.Web.Models/Labels/LabelDto.cs | using System;
using System.Web;
namespace Agiil.Web.Models.Labels
{
public class LabelDto
{
public string Name { get; set; }
public string UrlEncodedName
{
get {
if(Name == null) return null;
// #AG169 - UrlEncode is replacing spaces with plus characters,
// but that's ... | using System;
using System.Web;
namespace Agiil.Web.Models.Labels
{
public class LabelDto
{
public string Name { get; set; }
public string UrlEncodedName => HttpUtility.UrlEncode(Name);
}
}
| mit | C# |
300b311a3f644ed654b8c2bc751646d1a96af69a | Fix namespace | antony-liu/npoi,tonyqus/npoi | testcases/main/SS/Format/TestCellFormatResult.cs | testcases/main/SS/Format/TestCellFormatResult.cs | /* ====================================================================
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for Additional information regarding copyright ownership.
The ASF licenses this file to Y... | /* ====================================================================
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for Additional information regarding copyright ownership.
The ASF licenses this file to Y... | apache-2.0 | C# |
0980cbca4d3d883b87420df97ab4ad4d6124fee5 | fix for CorrectAi | kmarcell/ELTE-2015-Component-Team4 | ArtificialIntelligence/CorrectAi.cs | ArtificialIntelligence/CorrectAi.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using GTInterfacesLibrary;
namespace ArtificialIntelligence
{
using TaskReturnType = GTGameSpaceInterface<GTGameSpaceElementInterface, IPosition>;
public class CorrectAi : GTArtificialIntelligen... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using GTInterfacesLibrary;
namespace ArtificialIntelligence
{
using TaskReturnType = GTGameSpaceInterface<GTGameSpaceElementInterface, IPosition>;
public class CorrectAi : GTArtificialIntelligen... | mit | C# |
28cc613515a420008dbb6c7c201b7820f3f83654 | Update ILandscapeFactory.cs | LANDIS-II-Foundation/Landis-Spatial-Modeling-Library | src/api/ILandscapeFactory.cs | src/api/ILandscapeFactory.cs | // Contributors:
// James Domingo, Green Code LLC
namespace Landis.SpatialModeling
{
/// <summary>
/// A factory that produces data structures for landscapes.
/// </summary>
public interface ILandscapeFactory
{
/// <summary>
/// Creates a new landscape using an input gr... | // Copyright 2012 Green Code LLC
// All rights reserved.
//
// The copyright holders license this file under the New (3-clause) BSD
// License (the "License"). You may not use this file except in
// compliance with the License. A copy of the License is available at
//
// http://www.opensource.org/licenses/B... | apache-2.0 | C# |
5bd7913cfb6f187ac2df29d3cab7cc178aa245da | Make sure MercuryId do not get serialized. | gOOvaUY/Plexo.Models,gOOvaUY/Goova.Plexo.Models | Currency.cs | Currency.cs | using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace Plexo
{
[DataContract]
public class Currency
{
[DataMember]
public int CurrencyId { get; set; }
[DataMember]
public string Name { get; set; }
[DataMember]
public string Plural { get; set; }
... | using System.Runtime.Serialization;
namespace Plexo
{
[DataContract]
public class Currency
{
[DataMember]
public int CurrencyId { get; set; }
[DataMember]
public string Name { get; set; }
[DataMember]
public string Plural { get; set; }
[DataMember]
... | agpl-3.0 | C# |
7b7c129c25268a3dfc5c735c9652184a1b95cb10 | Remove empty navigation list in anydiff module (invalid HTML). | pkdevbox/trac,pkdevbox/trac,pkdevbox/trac,pkdevbox/trac | templates/anydiff.cs | templates/anydiff.cs | <?cs include "header.cs"?>
<div id="ctxtnav" class="nav"></div>
<div id="content" class="changeset">
<div id="title">
<h1>Select Base and Target for Diff:</h1>
</div>
<div id="anydiff">
<form action="<?cs var:anydiff.changeset_href ?>" method="get">
<table>
<tr>
<th><label for="old_path">From:</... | <?cs include "header.cs"?>
<div id="ctxtnav" class="nav">
<h2>Navigation</h2><?cs
with:links = chrome.links ?>
<ul>
</ul><?cs
/with ?>
</div>
<div id="content" class="changeset">
<div id="title">
<h1>Select Base and Target for Diff:</h1>
</div>
<div id="anydiff">
<form action="<?cs var:anydiff.change... | bsd-3-clause | C# |
e7664911fe097fb7b8565432b4a88c2d95420596 | Use a different name for driver options in CleanUnitPass so it does not hide an inherited name. | nalkaro/CppSharp,mono/CppSharp,zillemarco/CppSharp,zillemarco/CppSharp,ddobrev/CppSharp,imazen/CppSharp,imazen/CppSharp,nalkaro/CppSharp,txdv/CppSharp,zillemarco/CppSharp,u255436/CppSharp,inordertotest/CppSharp,zillemarco/CppSharp,mono/CppSharp,txdv/CppSharp,xistoso/CppSharp,nalkaro/CppSharp,mohtamohit/CppSharp,txdv/Cp... | src/Generator/Passes/CleanUnitPass.cs | src/Generator/Passes/CleanUnitPass.cs | namespace Cxxi.Passes
{
public class CleanUnitPass : TranslationUnitPass
{
public DriverOptions DriverOptions;
public PassBuilder Passes;
public CleanUnitPass(DriverOptions options)
{
DriverOptions = options;
}
public override bool VisitTranslationUn... | namespace Cxxi.Passes
{
public class CleanUnitPass : TranslationUnitPass
{
public DriverOptions Options;
public PassBuilder Passes;
public CleanUnitPass(DriverOptions options)
{
Options = options;
}
public override bool VisitTranslationUnit(Translati... | mit | C# |
1124dc90b88909a761640e9134db77e7abf7291f | use async name convention for Notes class | bartsaintgermain/SharpAgileCRM | AgileAPI/Notes.cs | AgileAPI/Notes.cs | // <copyright file="Notes.cs" company="Quamotion">
// Copyright (c) Quamotion. All rights reserved.
// </copyright>
namespace AgileAPI
{
using System;
using System.Collections.Generic;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
using AgileAPI.Models;
using Newt... | // <copyright file="Notes.cs" company="Quamotion">
// Copyright (c) Quamotion. All rights reserved.
// </copyright>
namespace AgileAPI
{
using System;
using System.Collections.Generic;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
using AgileAPI.Models;
using Newt... | mit | C# |
922ef365b0df8de1cc3084ad953472288145158f | add TODO | dimaaan/pgEdit | PgEdit/Program.cs | PgEdit/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace PgEdit
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace PgEdit
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main... | mit | C# |
d69e94740867b96d92548e4cfdade0f9d644d52d | add whitespaces | 1MiKHalyCH1/tasks | Eval/EvalProgram.cs | Eval/EvalProgram.cs | using System;
using ExpressionEvaluator;
namespace EvalTask
{
class EvalProgram
{
static void Main(string[] args)
{
//string input = Console.In.ReadToEnd();
string input = Console.ReadLine();
input = input.Replace("-", " - ");
var expresion = new CompiledExpression(input);
... | using System;
using ExpressionEvaluator;
namespace EvalTask
{
class EvalProgram
{
static void Main(string[] args)
{
string input = Console.In.ReadToEnd();
// string input = Console.ReadLine();
var expresion = new CompiledExpression(input);
var output = expresion.Eval();
Con... | mit | C# |
1096539ff789bf0b18e2bcc257aab5b54b110c08 | Revert "cosmetic" | stormsw/ladm.rrr | Example1/Program.cs | Example1/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Ladm.DataModel;
namespace Example1
{
class Program
{
static void Main(string[] args)
{
using (var ctx = new Ladm.DataModel.LadmDbContext())
{
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Ladm.DataModel;
namespace Example1
{
class Program
{
static void Main(string[] args)
{
using (var context = new Ladm.DataModel.LadmDbContext())
{
... | mit | C# |
91b78710f8760d64ba50e2e9bfccaf9fff4f551d | Fix some tests that were failing on Linux | andrew-polk/BloomDesktop,gmartin7/myBloomFork,BloomBooks/BloomDesktop,gmartin7/myBloomFork,BloomBooks/BloomDesktop,JohnThomson/BloomDesktop,JohnThomson/BloomDesktop,andrew-polk/BloomDesktop,andrew-polk/BloomDesktop,andrew-polk/BloomDesktop,JohnThomson/BloomDesktop,JohnThomson/BloomDesktop,JohnThomson/BloomDesktop,Bloom... | src/BloomTests/Book/TestBook.cs | src/BloomTests/Book/TestBook.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using Bloom;
using Bloom.Book;
using Bloom.Collection;
using Bloom.Edit;
using BloomTemp;
using SIL.IO;
namespace BloomTests.Book
{
/// <summary>
/// This cla... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using Bloom;
using Bloom.Book;
using Bloom.Collection;
using Bloom.Edit;
using BloomTemp;
using SIL.IO;
namespace BloomTests.Book
{
/// <summary>
/// This cla... | mit | C# |
4174f441aef91e72bd3ef1d8891e4cb31d2ad81a | Change Version | AyrA/fcfh | fcfh/Properties/AssemblyInfo.cs | fcfh/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("fcfh")]
[assembly: AssemblyDescription("E... | 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("fcfh")]
[assembly: AssemblyDescription(""... | mit | C# |
b00a8cb069fc72cb33b6e4ccd42c8bdda9d5cbf7 | Remove input/output interfaces for now | graphql-dotnet/graphql-dotnet,joemcbride/graphql-dotnet,graphql-dotnet/graphql-dotnet,graphql-dotnet/graphql-dotnet,joemcbride/graphql-dotnet | src/GraphQL/Types/IGraphType.cs | src/GraphQL/Types/IGraphType.cs | namespace GraphQL.Types
{
public interface INamedType
{
string Name { get; set; }
}
public interface IGraphType : IProvideMetadata, INamedType
{
string Description { get; set; }
string DeprecationReason { get; set; }
string CollectTypes(TypeCollectionContext contex... | namespace GraphQL.Types
{
public interface INamedType
{
string Name { get; set; }
}
public interface IGraphType : IProvideMetadata, INamedType
{
string Description { get; set; }
string DeprecationReason { get; set; }
string CollectTypes(TypeCollectionContext contex... | mit | C# |
4c9bbadab29ef8cd4f95909e25a3d9add0760d5c | Indent json formatting | timothyparez/net-ipfs-api,TrekDev/net-ipfs-api | src/Ipfs/Json/JsonSerializer.cs | src/Ipfs/Json/JsonSerializer.cs | using Newtonsoft.Json;
namespace Ipfs.Json
{
public class JsonSerializer : IJsonSerializer
{
private readonly JsonSerializerSettings _settings;
public JsonSerializer()
{
_settings = new JsonSerializerSettings
{
Formatting = Formatting.Indented
... | using Newtonsoft.Json;
namespace Ipfs.Json
{
public class JsonSerializer : IJsonSerializer
{
public T Deserialize<T>(string json)
{
return JsonConvert.DeserializeObject<T>(json);
}
public string Serialize(object obj)
{
return JsonConvert.Seriali... | mit | C# |
1b264a2dd0ec1a08bfd0662f3e47d792a40b91db | make user lookup string public | ppy/osu,ppy/osu,NeoAdonis/osu,NeoAdonis/osu,peppy/osu,peppy/osu-new,smoogipoo/osu,peppy/osu,ppy/osu,smoogipoo/osu,smoogipooo/osu,peppy/osu,smoogipoo/osu,NeoAdonis/osu | osu.Game/Online/API/Requests/GetUserRequest.cs | osu.Game/Online/API/Requests/GetUserRequest.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.Game.Users;
using osu.Game.Rulesets;
namespace osu.Game.Online.API.Requests
{
public class GetUserRequest : APIRequest<User>
{
public readonly... | // 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.Game.Users;
using osu.Game.Rulesets;
namespace osu.Game.Online.API.Requests
{
public class GetUserRequest : APIRequest<User>
{
private readonl... | mit | C# |
c06e99ef82934f7f07f963ea8b59aa9c36bfffb1 | Fix registration of tooltip only highlighter | JetBrains/resharper-unity,JetBrains/resharper-unity,JetBrains/resharper-unity | resharper/resharper-unity/src/AsmDef/Feature/Services/Daemon/Attributes/AsmDefHighlightingAttributeIds.cs | resharper/resharper-unity/src/AsmDef/Feature/Services/Daemon/Attributes/AsmDefHighlightingAttributeIds.cs | using JetBrains.TextControl.DocumentMarkup;
namespace JetBrains.ReSharper.Plugins.Unity.AsmDef.Feature.Services.Daemon.Attributes
{
// Rider doesn't support an empty set of attributes (all the implementations of IRiderHighlighterModelCreator
// return null), so we must define something. If we define an EffectT... | using JetBrains.TextControl.DocumentMarkup;
namespace JetBrains.ReSharper.Plugins.Unity.AsmDef.Feature.Services.Daemon.Attributes
{
[RegisterHighlighter(GUID_REFERENCE_TOOLTIP, EffectType = EffectType.TEXT)]
public static class AsmDefHighlightingAttributeIds
{
public const string GUID_REFERENCE_TOO... | apache-2.0 | C# |
dc71a5198562ee821f4958810471457cc1b66fb2 | allow cookies on demo | NakedObjectsGroup/NakedObjectsFramework,NakedObjectsGroup/NakedObjectsFramework,NakedObjectsGroup/NakedObjectsFramework,NakedObjectsGroup/NakedObjectsFramework | Demo/NakedObjects.Rest.App.Demo/App_Start/CorsConfig.cs | Demo/NakedObjects.Rest.App.Demo/App_Start/CorsConfig.cs | using System.Web.Http;
using Thinktecture.IdentityModel.Http.Cors.WebApi;
public class CorsConfig {
public static void RegisterCors(HttpConfiguration httpConfig) {
var corsConfig = new WebApiCorsConfiguration();
// this adds the CorsMessageHandler to the HttpConfiguration’s
// MessageHan... | using System.Web.Http;
using Thinktecture.IdentityModel.Http.Cors.WebApi;
public class CorsConfig {
public static void RegisterCors(HttpConfiguration httpConfig) {
var corsConfig = new WebApiCorsConfiguration();
// this adds the CorsMessageHandler to the HttpConfiguration’s
// MessageHan... | apache-2.0 | C# |
5f010ba9ee004d78b1d64262fb06ae2b68c4cf23 | test commit 2 | abmes/UnityExtensions | Semba.UnityExtensions/UnityContainerExtensionMethods.cs | Semba.UnityExtensions/UnityContainerExtensionMethods.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Practices.Unity;
namespace Semba.UnityExtensions
{
public static class UnityContainerExtensionMethods
{
public static IUnityContainer RegisterTypeSingleton<TFr... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Practices.Unity;
namespace Semba.UnityExtensions
{
public static class UnityContainerExtensionMethods
{
public static IUnityContainer RegisterTypeSingleton<TFr... | mit | C# |
c1d285932955aa58ac7575a9ae0872213cf47259 | bump version to 1.7.2 | Franiac/TwitchLeecher | TwitchLeecher/GlobalAssemblyInfo.cs | TwitchLeecher/GlobalAssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyProduct("Twitch Leecher")]
[assembly: AssemblyDescription("Twitch Broadcast Downloader")]
[assembly: AssemblyCompany("Franiac")]
[assembly: AssemblyCopyright("Copyright 2018 Dominik Rebitzer")]
[assembly: AssemblyVersion("1.0.0.0")]
[as... | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyProduct("Twitch Leecher")]
[assembly: AssemblyDescription("Twitch Broadcast Downloader")]
[assembly: AssemblyCompany("Franiac")]
[assembly: AssemblyCopyright("Copyright 2018 Dominik Rebitzer")]
[assembly: AssemblyVersion("1.0.0.0")]
[as... | mit | C# |
51ea5876fcc18ca27d25e1d6e78de8bced0403b9 | Make json keys match data | QuantumLeap/Vi3W,QuantumLeap/Vi3W | Assets/Helpers/HTML.cs | Assets/Helpers/HTML.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Assets.Helpers;
using Assets.Models;
using System.Globalization;
public class HTMLInterface : MonoBehaviour {
private bool fetching = true;
public JSONObject data;
public List<List<W3Object>> lists;
public IEnumerator getJSON(Di... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Assets.Helpers;
using Assets.Models;
using System.Globalization;
public class HTMLInterface : MonoBehaviour {
private bool fetching = true;
public JSONObject data;
public List<List<W3Object>> lists;
public IEnumerator getJSON(Di... | mit | C# |
a07ef8c34ac1ed3cb15494a90c11504b4c807e52 | add descriptions | Recognos/CodeChalenges | Challenge2/Challenge2/Program.cs | Challenge2/Challenge2/Program.cs | using System;
using System.Threading;
using System.Threading.Tasks;
namespace Challenge2
{
/// <summary>
/// Intro:
/// You need to execute a potentially large number of operations that are IO and CPU intensive (like OCRing a document) and you need to
/// limit the level of concurrency at which the ... | using System;
using System.Threading;
using System.Threading.Tasks;
namespace Challenge2
{
class Program
{
static int counter = 0;
static void Main(string[] args)
{
const int totalCount = 20;
Task[] tasks = new Task[totalCount];
for (int i = 0; i <... | apache-2.0 | C# |
2820492248bc46d4716ef4cb4961e43683380d3b | Use IEnumerable | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet | WalletWasabi.Fluent/ViewModels/Dialogs/DialogScreenViewModel.cs | WalletWasabi.Fluent/ViewModels/Dialogs/DialogScreenViewModel.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reactive;
using System.Reactive.Linq;
using ReactiveUI;
using WalletWasabi.Gui.ViewModels;
namespace WalletWasabi.Fluent.ViewModels.Dialogs
{
public class DialogScreenViewModel : ViewModelBase, IScreen
{
private bool _isDialogOpen;
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reactive;
using System.Reactive.Linq;
using ReactiveUI;
using WalletWasabi.Gui.ViewModels;
namespace WalletWasabi.Fluent.ViewModels.Dialogs
{
public class DialogScreenViewModel : ViewModelBase, IScreen
{
private bool _isDialogOpen;
... | mit | C# |
a2b79cda829a58f98d09d016d0696f9826e8981a | Update CorsExtensions.cs | koistya/aspnet-starter-kit,kriasoft/AspNet-Server-Template,kriasoft/aspnet-starter-kit,hcngo/craft-exercise-intuit,giokats/AspNet-Server-Template,kriasoft/aspnet-starter-kit,jmptrader/AspNet-Server-Template,koistya/aspnet-starter-kit,hcngo/craft-exercise-intuit,jmptrader/AspNet-Server-Template | src/App.Server/Http/Cors/CorsExtensions.cs | src/App.Server/Http/Cors/CorsExtensions.cs | // Copyright (c) KriaSoft, LLC. All rights reserved.
// Licensed under the Apache License, Version 2.0. See LICENSE.txt in the project root for license information.
using System.Threading;
using System.Threading.Tasks;
using System.Web.Configuration;
using System.Web.Cors;
using System.Web.Http;
using System.Web.Ht... | // Copyright (c) KriaSoft, LLC. All rights reserved.
// Licensed under the Apache License, Version 2.0. See LICENSE.txt in the project root for license information.
using System.Threading;
using System.Threading.Tasks;
using System.Web.Configuration;
using System.Web.Cors;
using System.Web.Http;
using System.Web.Ht... | mit | C# |
01406f3b5ff43140dfee753304914d46c5188768 | Verify that scoped command is matched | appharbor/appharbor-cli | src/AppHarbor.Tests/TypeNameMatcherTest.cs | src/AppHarbor.Tests/TypeNameMatcherTest.cs | using System;
using System.Collections.Generic;
using Xunit;
using Xunit.Extensions;
namespace AppHarbor.Tests
{
public class TypeNameMatcherTest
{
interface IFoo
{
}
class FooCommand : IFoo { }
class FooBarCommand : IFoo { }
private static Type FooCommandType = typeof(FooCommand);
private static T... | using System;
using System.Collections.Generic;
using Xunit;
using Xunit.Extensions;
namespace AppHarbor.Tests
{
public class TypeNameMatcherTest
{
interface IFoo
{
}
class FooCommand : IFoo { }
class FooBarCommand : IFoo { }
private static Type FooCommandType = typeof(FooCommand);
private static T... | mit | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.