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 |
|---|---|---|---|---|---|---|---|---|
c38508e9bf4d04bb7aa4af57313659d3738b8138 | Set property store before creating the root collection to make the property store available for some internal file hiding logic | FubarDevelopment/WebDavServer,FubarDevelopment/WebDavServer,FubarDevelopment/WebDavServer | FubarDev.WebDavServer.FileSystem.DotNet/DotNetFileSystem.cs | FubarDev.WebDavServer.FileSystem.DotNet/DotNetFileSystem.cs | // <copyright file="DotNetFileSystem.cs" company="Fubar Development Junker">
// Copyright (c) Fubar Development Junker. All rights reserved.
// </copyright>
using System;
using System.IO;
using System.Threading;
using System.Threading.Tasks;
using FubarDev.WebDavServer.Props.Store;
using Microsoft.VisualStudio.Thre... | // <copyright file="DotNetFileSystem.cs" company="Fubar Development Junker">
// Copyright (c) Fubar Development Junker. All rights reserved.
// </copyright>
using System;
using System.IO;
using System.Threading;
using System.Threading.Tasks;
using FubarDev.WebDavServer.Props.Store;
using Microsoft.VisualStudio.Thre... | mit | C# |
103b8bb475359053d8b3673c072813476206e27f | Add StreamId ToString overload | damianh/Cedar.EventStore,SQLStreamStore/SQLStreamStore,SQLStreamStore/SQLStreamStore | src/SqlStreamStore/Streams/StreamId.cs | src/SqlStreamStore/Streams/StreamId.cs | namespace SqlStreamStore.Streams
{
using System;
using SqlStreamStore.Imports.Ensure.That;
using SqlStreamStore.Infrastructure;
/// <summary>
/// Represents a valid Stream Id. Is implicitly convertable to/from a string.
/// </summary>
public sealed class StreamId : IEquatable<StreamId>... | namespace SqlStreamStore.Streams
{
using System;
using SqlStreamStore.Imports.Ensure.That;
using SqlStreamStore.Infrastructure;
/// <summary>
/// Represents a valid Stream Id. Is implicitly convertable to/from a string.
/// </summary>
public sealed class StreamId : IEquatable<StreamId>... | mit | C# |
34bd25abe6eb3995469ceee045d258bf54812395 | fix compiler warning | reinterpretcat/utymap,reinterpretcat/utymap,reinterpretcat/utymap | unity/library/UtyMap.Unity/Explorer/Customization/CustomizationService.cs | unity/library/UtyMap.Unity/Explorer/Customization/CustomizationService.cs | using System.Collections.Generic;
using UnityEngine;
namespace UtyMap.Unity.Explorer.Customization
{
/// <summary> Maintains list of customization properties. </summary>
public sealed class CustomizationService
{
private readonly Dictionary<string, Material> _sharedMaterials;
/// <summary... | using System;
using System.Collections.Generic;
using UnityEngine;
namespace UtyMap.Unity.Explorer.Customization
{
/// <summary> Maintains list of customization properties. </summary>
public sealed class CustomizationService
{
private readonly Dictionary<string, Type> _modelBehaviours;
pri... | apache-2.0 | C# |
9af939b1416e56b931aaf542885aa2d064a6bf3d | Add attribute for checking if password and conformation password match | ahmedmatem/primus-flex,ahmedmatem/primus-flex,ahmedmatem/primus-flex | PrimusFlex.Web/Areas/Admin/ViewModels/Employees/CreateEmployeeViewModel.cs | PrimusFlex.Web/Areas/Admin/ViewModels/Employees/CreateEmployeeViewModel.cs | namespace PrimusFlex.Web.Areas.Admin.ViewModels.Employees
{
using System.ComponentModel.DataAnnotations;
using Infrastructure.Mapping;
using Data.Models.Types;
using Data.Models;
public class CreateEmployeeViewModel : IMapFrom<Employee>, IMapTo<Employee>
{
[Required]
[StringL... | namespace PrimusFlex.Web.Areas.Admin.ViewModels.Employees
{
using System.ComponentModel.DataAnnotations;
using Infrastructure.Mapping;
using Data.Models.Types;
using Data.Models;
public class CreateEmployeeViewModel : IMapFrom<Employee>, IMapTo<Employee>
{
[Required]
[StringL... | mit | C# |
86eeaef12e98de24f3595263b00678e424556a55 | Bump version to 0.10 | github-for-unity/Unity,mpOzelot/Unity,github-for-unity/Unity,github-for-unity/Unity,mpOzelot/Unity | common/SolutionInfo.cs | common/SolutionInfo.cs | using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyProduct("GitHub for Unity")]
[assembly: AssemblyVersion(System.AssemblyVersionInformation.Version)]
[assembly: AssemblyFileVersion(System.AssemblyVersionInformation.Version)]... | using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyProduct("GitHub for Unity")]
[assembly: AssemblyVersion(System.AssemblyVersionInformation.Version)]
[assembly: AssemblyFileVersion(System.AssemblyVersionInformation.Version)]... | mit | C# |
b2e56530d030b89af781084e2d95546edcc831ff | implement getSG on GameManager.cs for other object can get game's status | GROWrepo/Santa_Inc | Assets/script/monoBehavior/GameManager.cs | Assets/script/monoBehavior/GameManager.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class GameManager : MonoBehaviour {
STATUS_GAME SG;
dialog current;
// Use this for initialization
void Start () {
SG = STATUS_GAME.MENU;
current = null;
}
// Update is called once per frame
void Upda... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class GameManager : MonoBehaviour {
STATUS_GAME SG;
dialog current;
// Use this for initialization
void Start () {
SG = STATUS_GAME.MENU;
current = null;
}
// Update is called once per frame
void Upda... | mit | C# |
d6a7ebaa2bee82395e8b2e5bd4246cce5b1a48e7 | Bump version to 0.13.3 | quisquous/cactbot,quisquous/cactbot,quisquous/cactbot,quisquous/cactbot,quisquous/cactbot,quisquous/cactbot | CactbotOverlay/Properties/AssemblyInfo.cs | CactbotOverlay/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("CactbotOverlay")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("CactbotOverlay")]
[assembly: AssemblyC... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("CactbotOverlay")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("CactbotOverlay")]
[assembly: AssemblyC... | apache-2.0 | C# |
f2c6bc3a5d7e715e7c69bacacb662ff1412f213c | 同步版本号,Senparc.Weixin SDK 全面支持 .NET Core 2.1.0-rc1-final | JeffreySu/WxOpen,JeffreySu/WxOpen | src/Senparc.Weixin.WxOpen/Senparc.Weixin.WxOpen/Properties/AssemblyInfo.cs | src/Senparc.Weixin.WxOpen/Senparc.Weixin.WxOpen/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的一般信息由以下
// 控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("Senparc.Weixin.WxOpen")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: ... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的一般信息由以下
// 控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("Senparc.Weixin.WxOpen")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: ... | apache-2.0 | C# |
0bd8f06467db1bffbd379a630b5558c1af98c60d | Fix Typo | topgenorth/gplus-quickstart-xamarin.android | gplus-quickstart-xamarin/MainActivity.cs | gplus-quickstart-xamarin/MainActivity.cs | using Android.App;
using Android.Content;
using Android.OS;
using Android.Util;
using Android.Views;
using Android.Widget;
namespace com.xamarin.googleplus.quickstart
{
[Activity(Label = "@string/app_name", MainLauncher = true, Icon = "@drawable/ic_launcher")]
public class MainActivity : ListActivity
{
... | using Android.App;
using Android.Content;
using Android.OS;
using Android.Util;
using Android.Views;
using Android.Widget;
namespace com.xamarin.googleplus.quickstart
{
[Activity(Label = "@string/app_name", MainLauncher = true, Icon = "@drawable/ic_launcher")]
public class MainActivity : ListActivity
{
... | apache-2.0 | C# |
db4863f4949b0be14d5ce5f1b4104646d2bbbf28 | Fix build. Woops. | mvpete/aspekt | Aspekt.Target/Program.cs | Aspekt.Target/Program.cs | using Aspekt.Logging;
using System;
namespace Aspekt.Target
{
class Program
{
[Log]
void Foo()
{
LogAttribute la = new LogAttribute();
}
static void Main(string[] args)
{
while (true)
{
Application.Test("Obje... | using Aspekt.Logging;
using System;
namespace Aspekt.Target
{
class Program
{
[Log]
void Foo()
{
LogAttribute la = new LogAttribute();
la.OnEntryLevel = Levels.Debug;
}
static void Main(string[] args)
{
while (true)
... | mit | C# |
a5105af8e2b1b82d74308f0330e73362b33ac63e | Fix up bad test. | gordonwatts/LINQtoROOT,gordonwatts/LINQtoROOT,gordonwatts/LINQtoROOT | LINQToTTree/LINQToTTreeLib.Tests/Statements/StatementRecordPairValuesTest.cs | LINQToTTree/LINQToTTreeLib.Tests/Statements/StatementRecordPairValuesTest.cs | using System.Linq;
using System.Text.RegularExpressions;
using LinqToTTreeInterfacesLib;
using LINQToTTreeLib.Statements;
using LINQToTTreeLib.Utils;
using Microsoft.Pex.Framework;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace LINQToTTreeLib.Tests
{
/// <summary>
///This is a te... | using System.Linq;
using System.Text.RegularExpressions;
using LinqToTTreeInterfacesLib;
using LINQToTTreeLib.Statements;
using LINQToTTreeLib.Utils;
using Microsoft.Pex.Framework;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace LINQToTTreeLib.Tests
{
/// <summary>
///This is a te... | lgpl-2.1 | C# |
625eb78a118566dc72161da36c9b5997d10309e4 | Simplify with an early exit for null sample | UselessToucan/osu,smoogipoo/osu,NeoAdonis/osu,smoogipoo/osu,NeoAdonis/osu,UselessToucan/osu,smoogipooo/osu,peppy/osu,NeoAdonis/osu,peppy/osu,ppy/osu,ppy/osu,peppy/osu,peppy/osu-new,ppy/osu,smoogipoo/osu,UselessToucan/osu | osu.Game/Graphics/UserInterface/HoverSounds.cs | osu.Game/Graphics/UserInterface/HoverSounds.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.ComponentModel;
using osu.Framework.Allocation;
using osu.Framework.Audio;
using osu.Framework.Audio.Sample;
using osu.Framework.Bindables;
using osu.Framew... | // 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.ComponentModel;
using osu.Framework.Allocation;
using osu.Framework.Audio;
using osu.Framework.Audio.Sample;
using osu.Framework.Bindables;
using osu.Framew... | mit | C# |
c964f3c36fd3c75bad4302959ecc748f6394cda4 | Add new property on HstsPreload | LordMike/SslLabsLib | Library/SslLabsLib/Objects/HstsPreload.cs | Library/SslLabsLib/Objects/HstsPreload.cs | using System;
using Newtonsoft.Json;
using SslLabsLib.Code;
using SslLabsLib.Enums;
namespace SslLabsLib.Objects
{
public class HstsPreload
{
/// <summary>
/// Source name
/// </summary>
[JsonProperty("source")]
public string Source { get; set; }
/// <summary>
... | using System;
using Newtonsoft.Json;
using SslLabsLib.Code;
using SslLabsLib.Enums;
namespace SslLabsLib.Objects
{
public class HstsPreload
{
/// <summary>
/// Source name
/// </summary>
[JsonProperty("source")]
public string Source { get; set; }
/// <summary>
... | mit | C# |
f270e5c78f18c843041aeaf0223245c7867bb267 | Bump version. | JohanLarsson/Gu.Roslyn.Asserts | Gu.Roslyn.Asserts/Properties/AssemblyInfo.cs | Gu.Roslyn.Asserts/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("Gu.Roslyn.Asserts.Properties")]
[assembly: AssemblyDescription("Asserts for testing Roslyn analyzers and code fixes.")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Johan Larsson")]
[assembly: AssemblyProduct... | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("Gu.Roslyn.Asserts.Properties")]
[assembly: AssemblyDescription("Asserts for testing Roslyn analyzers and code fixes.")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Johan Larsson")]
[assembly: AssemblyProduct... | mit | C# |
6911376088b15d6fe24a1b3b0c4facb4113f63e0 | Fix array index. | sharpjs/PSql,sharpjs/PSql | PSql.Core/_Utilities/SqlCommandExtensions.cs | PSql.Core/_Utilities/SqlCommandExtensions.cs | using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Management.Automation;
using static System.FormattableString;
namespace PSql
{
internal static class SqlCommandExtensions
{
public static IEnumerable<PSObject> ExecuteAndProjectToPSObjects(this... | using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Management.Automation;
using static System.FormattableString;
namespace PSql
{
internal static class SqlCommandExtensions
{
public static IEnumerable<PSObject> ExecuteAndProjectToPSObjects(this... | isc | C# |
605f26be8343a326fc4b3a78cc21d39ba884217d | Remove unused code | ektrah/nsec | src/Cryptography/Sha256.cs | src/Cryptography/Sha256.cs | using System;
using System.Diagnostics;
using System.Runtime.CompilerServices;
using static Interop.Libsodium;
namespace NSec.Cryptography
{
//
// SHA-256
//
// FIPS Secure Hash Algorithm (SHA) with a 256-bit message digest
//
// References:
//
// RFC 6234 - US Secure Hash A... | using System;
using System.Diagnostics;
using System.Runtime.CompilerServices;
using static Interop.Libsodium;
namespace NSec.Cryptography
{
//
// SHA-256
//
// FIPS Secure Hash Algorithm (SHA) with a 256-bit message digest
//
// References:
//
// RFC 6234 - US Secure Hash A... | mit | C# |
1e6d1bffcdc0d63966a26bf05aaa48436a861d07 | Make Compose a non-extension method | sharper-library/Sharper.C.Function | Sharper.C.Function/Data/FunctionModule.cs | Sharper.C.Function/Data/FunctionModule.cs | using System;
namespace Sharper.C.Data
{
using static UnitModule;
public static class FunctionModule
{
public static Func<A, B> Fun<A, B>(Func<A, B> f)
=>
f;
public static Func<A, Unit> Fun<A>(Action<A> f)
=>
ToFunc(f);
public static Action<A> Act<A>(Action<A> f)
=>
... | using System;
namespace Sharper.C.Data
{
using static UnitModule;
public static class FunctionModule
{
public static Func<A, B> Fun<A, B>(Func<A, B> f)
=>
f;
public static Func<A, Unit> Fun<A>(Action<A> f)
=>
ToFunc(f);
public static Action<A> Act<A>(Action<A> f)
=>
... | mit | C# |
ccb4ca4415be17ef14759df45823c6c2672d3ce7 | Make non-nullable parameters nullable | SICU-Stress-Measurement-System/frontend-cs | StressMeasurementSystem/Models/Patient.cs | StressMeasurementSystem/Models/Patient.cs | using System.Collections.Generic;
using System.Net.Mail;
namespace StressMeasurementSystem.Models
{
public class Patient
{
#region Structs
public struct Name
{
public string Prefix { get; set; }
public string First { get; set; }
public string Middle... | using System.Collections.Generic;
using System.Net.Mail;
namespace StressMeasurementSystem.Models
{
public class Patient
{
#region Structs
public struct Name
{
public string Prefix { get; set; }
public string First { get; set; }
public string Middle... | apache-2.0 | C# |
1eb2c74e57c3d18dfcac974bf7c52101a18806ec | Fix countdown serialisation | peppy/osu,ppy/osu,ppy/osu,ppy/osu,peppy/osu,peppy/osu | osu.Game/Online/Multiplayer/MultiplayerCountdown.cs | osu.Game/Online/Multiplayer/MultiplayerCountdown.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 MessagePack;
using osu.Game.Online.Multiplayer.Countdown;
namespace osu.Game.Online.Multiplayer
{
/// <summary>
/// Describes the current cou... | // 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 MessagePack;
using osu.Game.Online.Multiplayer.Countdown;
namespace osu.Game.Online.Multiplayer
{
/// <summary>
/// Describes the current cou... | mit | C# |
8f5da87f915564c84fe8c068e67bb913c25c25b8 | Change Say nodes to use ToString | exodrifter/unity-rumor | Nodes/Say.cs | Nodes/Say.cs | using Exodrifter.Rumor.Engine;
using Exodrifter.Rumor.Expressions;
using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
namespace Exodrifter.Rumor.Nodes
{
/// <summary>
/// Sets the dialog in the rumor state.
/// </summary>
[Serializable]
public sealed class Say : Node, ISerializab... | using Exodrifter.Rumor.Engine;
using Exodrifter.Rumor.Expressions;
using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
namespace Exodrifter.Rumor.Nodes
{
/// <summary>
/// Sets the dialog in the rumor state.
/// </summary>
[Serializable]
public sealed class Say : Node, ISerializab... | mit | C# |
879bb6df73e46d6880a3d10b3f81283b04612c4f | Clean this up | Cyberboss/tgstation-server,tgstation/tgstation-server,tgstation/tgstation-server,Cyberboss/tgstation-server,tgstation/tgstation-server-tools | src/Tgstation.Server.Client/IServerClientFactory.cs | src/Tgstation.Server.Client/IServerClientFactory.cs | using System;
using System.Threading;
using System.Threading.Tasks;
using Tgstation.Server.Api.Models;
namespace Tgstation.Server.Client
{
/// <summary>
/// Factory for creating <see cref="IServerClient"/>s
/// </summary>
public interface IServerClientFactory
{
/// <summary>
/// Create a <see cref="IServerCl... | using System;
using System.Threading;
using System.Threading.Tasks;
using Tgstation.Server.Api.Models;
namespace Tgstation.Server.Client
{
/// <summary>
/// Factory for creating <see cref="IServerClient"/>s
/// </summary>
public interface IServerClientFactory
{
/// <summary>
/// Create a <see cref="IServerCl... | agpl-3.0 | C# |
69926e399a806e3e6e6aec9381ce834a138ec564 | rename method for clarity | Babblesort/GameOfLife | Engine/GenerationResolver.cs | Engine/GenerationResolver.cs | namespace Engine
{
public static class GenerationResolver
{
public static Generation ResolveNextGeneration(Grid grid, Rules rules, Generation cells)
{
var nextGen = new Generation();
foreach (var cell in cells)
{
nextGen.Add(cell.Key, CellAliv... | namespace Engine
{
public static class GenerationResolver
{
public static Generation ResolveNextGeneration(Grid grid, Rules rules, Generation cells)
{
var nextGen = new Generation();
foreach (var cell in cells)
{
nextGen.Add(cell.Key, CellAliv... | mit | C# |
3716e857852a0990b3e482b3a709b4545a5d58c1 | Fix build issues for TeamCity. | alexmullans/Siftables-Emulator | Siftables/MainWindow.xaml.cs | Siftables/MainWindow.xaml.cs | namespace Siftables
{
public partial class MainWindowView
{
public MainWindowView()
{
InitializeComponent();
}
}
}
| namespace Siftables
{
public partial class MainWindowView
{
public MainWindowView()
{
InitializeComponent();
DoAllOfTheThings();
}
}
}
| bsd-2-clause | C# |
4173fe2616deccbbda175a048fd35e5890ed3fac | update for 0.6.4 | sillsdev/gtk-sharp,antoniusriha/gtk-sharp,orion75/gtk-sharp,antoniusriha/gtk-sharp,sillsdev/gtk-sharp,Gankov/gtk-sharp,openmedicus/gtk-sharp,Gankov/gtk-sharp,akrisiun/gtk-sharp,openmedicus/gtk-sharp,openmedicus/gtk-sharp,Gankov/gtk-sharp,openmedicus/gtk-sharp,sillsdev/gtk-sharp,openmedicus/gtk-sharp,antoniusriha/gtk-sh... | sample/GstPlayer.cs | sample/GstPlayer.cs | // GstPlayer.cs - a simple Vorbis media player using GStreamer
//
// Author: Alp Toker <alp@atoker.com>
//
// Copyright (c) 2002 Alp Toker
using System;
using Gst;
public class GstTest
{
static void Main(string[] args)
{
Application.Init ();
/* create a new bin to hold the elements */
Pipeline bin = new Pipe... | // GstPlayer.cs - a simple Vorbis media player using GStreamer
//
// Author: Alp Toker <alp@atoker.com>
//
// Copyright (c) 2002 Alp Toker
using System;
using Gst;
public class GstTest
{
static void Main(string[] args)
{
Application.Init ();
/* create a new bin to hold the elements */
Pipeline bin = new Pipe... | lgpl-2.1 | C# |
8499b780203a833d1fdf6d101adab497be4a95b2 | Make tests run paralell | nopara73/DotNetTor | src/DotNetTor.Tests/Properties/AssemblyInfo.cs | src/DotNetTor.Tests/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
using Xunit;
// 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: AssemblyConfiguration("")]
[assembly: Assemb... | 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: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")... | mit | C# |
37e3201e8d8b72d526fdeb00a9bc6f0549adef2a | Format tabs | LibertyLocked/webscripthook,LibertyLocked/webscripthook,LibertyLocked/webscripthook,LibertyLocked/webscripthook | VStats-plugin/WorldHelper.cs | VStats-plugin/WorldHelper.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using GTA;
using GTA.Math;
using GTA.Native;
namespace VStats_plugin
{
class WorldHelper
{
static Dictionary<string, string> radioDict = new Dictionary<string, string>
{
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using GTA;
using GTA.Math;
using GTA.Native;
namespace VStats_plugin
{
class WorldHelper
{
static Dictionary<string, string> radioDict = new Dictionary<string, string>
{
... | mit | C# |
2afced7bb0620e9452b98b908650ae9886ad6674 | Change format of JSON for SlideRun to match API | edwardsdl/snaggertown-slide | src/SAJ.SnaggerTown.Hardware.Slide/SlideRun.cs | src/SAJ.SnaggerTown.Hardware.Slide/SlideRun.cs | using System;
namespace SAJ.SnaggerTown.Hardware.Slide
{
/// <summary>
/// Represents an instance of a Snagger traveling down the slide
/// </summary>
internal class SlideRun
{
#region Public Properties
/// <summary>
/// Gets or sets the Snagger's ID
/// </summary>
... | using System;
namespace SAJ.SnaggerTown.Hardware.Slide
{
/// <summary>
/// Represents an instance of a Snagger traveling down the slide
/// </summary>
internal class SlideRun
{
#region Public Properties
/// <summary>
/// Gets or sets the Snagger's ID
/// </summary>
... | mit | C# |
28c5f5af8c11434d36ed3677f4ba80ac22a1ab0d | Fix travis/mono by remove SUO | HelloKitty/SceneJect,HelloKitty/SceneJect | src/Sceneject.Autofac/AutofacServiceAdapter.cs | src/Sceneject.Autofac/AutofacServiceAdapter.cs | using Autofac;
using SceneJect.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
namespace SceneJect.Autofac
{
public class AutofacServiceAdapter : ContainerServiceProvider, IResolver, IServiceRegister
{
private readonly AutofacRegisterationStrat regi... | using Autofac;
using SceneJect.Autofac;
using SceneJect.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
namespace SceneJect.Autofac
{
public class AutofacServiceAdapter : ContainerServiceProvider, IResolver, IServiceRegister
{
private readonly Autof... | mit | C# |
ce382e825a39cc9d03b1dc1ffa392278d711bf66 | Bump version. | FacilityApi/FacilityJavaScript,FacilityApi/FacilityJavaScript,FacilityApi/FacilityJavaScript | SolutionInfo.cs | SolutionInfo.cs | using System.Reflection;
[assembly: AssemblyVersion("0.3.1.0")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyCopyright("Copyright 2016-2017 Ed Ball")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
| using System.Reflection;
[assembly: AssemblyVersion("0.3.0.0")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyCopyright("Copyright 2016-2017 Ed Ball")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
| mit | C# |
4c89ce354bcc45b21ad5fefdf0e3a6835128cb50 | Change unit test output validation in DepartmentTests.cs to use Assert.AreEqual(). | TimCollins/ManagementSpeakGenerator | src/MSG.UnitTests/DepartmentTests.cs | src/MSG.UnitTests/DepartmentTests.cs | using System.Collections.Generic;
using MSG.DomainLogic;
using NUnit.Framework;
namespace MSG.UnitTests
{
[TestFixture]
class DepartmentTests
{
private List<int> _defaults;
[SetUp]
public void SetUpDefaultNumbers()
{
_defaults = new List<int>{17, 6, 1, 17, 2, 1... | using System.Collections.Generic;
using MSG.DomainLogic;
using NUnit.Framework;
namespace MSG.UnitTests
{
[TestFixture]
class DepartmentTests
{
private List<int> _defaults;
[SetUp]
public void SetUpDefaultNumbers()
{
_defaults = new List<int>{17, 6, 1, 17, 2, 1... | mit | C# |
f9af01da8c8fa57c0acd0017670da804e797f567 | Update docs a little | Deadpikle/NetSparkle,Deadpikle/NetSparkle | src/NetSparkle/Enums/SecurityMode.cs | src/NetSparkle/Enums/SecurityMode.cs | namespace NetSparkleUpdater.Enums
{
/// <summary>
/// Controls the situations where files have to be signed with the private key.
/// If both a public key and a signature are present, they always have to be valid.
///
/// We recommend using SecurityMode.Strict if at all possible.
///
/// N... | namespace NetSparkleUpdater.Enums
{
/// <summary>
/// Controls the situations where files have to be signed with the private key.
/// If both a public key and a signature are present, they always have to be valid.
///
/// We recommend using SecurityMode.Strict if at all possible.
/// </summary>... | mit | C# |
b69868394719acefc18df55d43e1858fa9822e12 | Correct in order not to use "Wait" method for synchronized method | hukatama024e/MacroRecoderCsScript,hukatama024e/UserInputMacro | src/UserInputMacro/ScriptExecuter.cs | src/UserInputMacro/ScriptExecuter.cs | using System.IO;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.Scripting;
using Microsoft.CodeAnalysis.CSharp.Scripting;
namespace UserInputMacro
{
static class ScriptExecuter
{
public static async Task ExecuteAsync( string scriptPath )
{
using( var hook = new UserInputHook() ) {
HookSetting... | using System.IO;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.Scripting;
using Microsoft.CodeAnalysis.CSharp.Scripting;
namespace UserInputMacro
{
static class ScriptExecuter
{
public static async Task ExecuteAsync( string scriptPath )
{
using( var hook = new UserInputHook() ) {
HookSetting... | mit | C# |
b4762e0e7ad690fad2137a98c0c07e26d020fff9 | Update CommonAnimations.cs | Microsoft/composition,clarkezone/composition,clarkezone/composition,Microsoft/composition | SDK10069/SlideShow/SlideShow/CommonAnimations.cs | SDK10069/SlideShow/SlideShow/CommonAnimations.cs | //*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// This code is licensed under the MIT License (MIT).
// THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,... | //------------------------------------------------------------------------------
//
// Copyright (C) Microsoft. All rights reserved.
//
//------------------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using Syste... | mit | C# |
87a512afba394a21584af76f52e3cbd5a5348b05 | Update UnityProject/Assets/Scripts/GameModes/NukeOps.cs | fomalsd/unitystation,fomalsd/unitystation,fomalsd/unitystation,krille90/unitystation,fomalsd/unitystation,krille90/unitystation,fomalsd/unitystation,fomalsd/unitystation,krille90/unitystation,fomalsd/unitystation | UnityProject/Assets/Scripts/GameModes/NukeOps.cs | UnityProject/Assets/Scripts/GameModes/NukeOps.cs | using System;
using System.Collections.Generic;
using UnityEngine;
using Antagonists;
[CreateAssetMenu(menuName="ScriptableObjects/GameModes/NukeOps")]
public class NukeOps : GameMode
{
[Tooltip("Ratio of nuke ops to player count. A value of 0.2 means there would be " +
"2 nuke ops when there are 1... | using System;
using System.Collections.Generic;
using UnityEngine;
using Antagonists;
[CreateAssetMenu(menuName="ScriptableObjects/GameModes/NukeOps")]
public class NukeOps : GameMode
{
[Tooltip("Ratio of nuke ops to player count. A value of 0.2 means there would be " +
"2 nuke ops when there are 1... | agpl-3.0 | C# |
a60328cbd9914bc290bceaf18da40344f961e389 | update version | campersau/NuGetPackageExplorer,NuGetPackageExplorer/NuGetPackageExplorer,NuGetPackageExplorer/NuGetPackageExplorer,BreeeZe/NuGetPackageExplorer | Common/CommonAssemblyInfo.cs | Common/CommonAssemblyInfo.cs | using System.Reflection;
using System.Resources;
using System.Runtime.InteropServices;
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("NuGet Package Explorer")]
[assembly: AssemblyCopyright("\x00a9 Luan Nguyen. All rights reserved.")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyTradema... | using System.Reflection;
using System.Resources;
using System.Runtime.InteropServices;
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("NuGet Package Explorer")]
[assembly: AssemblyCopyright("\x00a9 Luan Nguyen. All rights reserved.")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyTradema... | mit | C# |
e4adea0f2e8e6f256bc3f329ce66412532a8d229 | Increase benchmark iterations | EamonNerbonne/a-vs-an,EamonNerbonne/a-vs-an,EamonNerbonne/a-vs-an,EamonNerbonne/a-vs-an | A-vs-An/PerfTest/Program.cs | A-vs-An/PerfTest/Program.cs | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Management;
using AvsAnLib;
namespace PerfTest {
static class Program {
static void Main(string[] args) {
var words = File.ReadAllLines(@"..\..\..\AvsAn-Test\35... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Management;
using AvsAnLib;
namespace PerfTest {
static class Program {
static void Main(string[] args) {
var words = File.ReadAllLines(@"..\..\..\AvsAn-Test\35... | apache-2.0 | C# |
5ea8a9fce9c2b3561be0da042454f3ec6dd0cec2 | Add more Target tests | chkn/Tempest | Desktop/Tempest/Tests/TargetTests.cs | Desktop/Tempest/Tests/TargetTests.cs | //
// TargetTests.cs
//
// Author:
// Eric Maupin <me@ermau.com>
//
// Copyright (c) 2012-2014 Eric Maupin
//
// 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, includ... | //
// TargetTests.cs
//
// Author:
// Eric Maupin <me@ermau.com>
//
// Copyright (c) 2012 Eric Maupin
//
// 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 w... | mit | C# |
f36dfe5deeabeb0a8abdd9c37085a4f37dba8327 | Add AllChat to ChatRepository | ethanmoffat/EndlessClient | EOLib/Domain/Chat/IChatRepository.cs | EOLib/Domain/Chat/IChatRepository.cs | // Original Work Copyright (c) Ethan Moffat 2014-2016
// This file is subject to the GPL v2 License
// For additional details, see the LICENSE file
using System;
using System.Collections.Generic;
using System.Linq;
namespace EOLib.Domain.Chat
{
public interface IChatRepository
{
string LocalTypedText... | // Original Work Copyright (c) Ethan Moffat 2014-2016
// This file is subject to the GPL v2 License
// For additional details, see the LICENSE file
namespace EOLib.Domain.Chat
{
public interface IChatRepository
{
string LocalTypedText { get; set; }
}
public interface IChatProvider
{
... | mit | C# |
050579cc24a7d193ad9929784a2cdab567b16487 | Validate data in the ctors | 0culus/ElectronicCash | ElectronicCash/ActorName.cs | ElectronicCash/ActorName.cs | using System;
namespace ElectronicCash
{
public struct ActorName
{
private readonly string _firstName;
private readonly string _middleName;
private readonly string _lastName;
private readonly string _title;
private readonly string _entityName;
public ActorName(... | namespace ElectronicCash
{
public struct ActorName
{
private readonly string _firstName;
private readonly string _middleName;
private readonly string _lastName;
private readonly string _title;
private readonly string _entityName;
public ActorName(string firstNam... | mit | C# |
080cc8834e95f3d45dd4f8d044d8c8d041f3eb76 | allow providing a custom payload builder | danshapir/JSONAPI.NET,JSONAPIdotNET/JSONAPI.NET,SphtKr/JSONAPI.NET,DefactoSoftware/JSONAPI.NET,SathishN/JSONAPI.NET | JSONAPI/Core/JsonApiConfiguration.cs | JSONAPI/Core/JsonApiConfiguration.cs | using System;
using System.Collections.Generic;
using System.Web.Http;
using System.Web.Http.Dispatcher;
using JSONAPI.ActionFilters;
using JSONAPI.Http;
using JSONAPI.Json;
using JSONAPI.Payload;
namespace JSONAPI.Core
{
/// <summary>
/// Configuration API for JSONAPI.NET
/// </summary>
public class ... | using System;
using System.Collections.Generic;
using System.Web.Http;
using System.Web.Http.Dispatcher;
using JSONAPI.ActionFilters;
using JSONAPI.Http;
using JSONAPI.Json;
using JSONAPI.Payload;
namespace JSONAPI.Core
{
/// <summary>
/// Configuration API for JSONAPI.NET
/// </summary>
public class ... | mit | C# |
b3ca342e16f4515a19271db71091de84cd153491 | Improve time service interface documentation | MarinAtanasov/AppBrix,MarinAtanasov/AppBrix.NetCore | Modules/AppBrix.Time/ITimeService.cs | Modules/AppBrix.Time/ITimeService.cs | // Copyright (c) MarinAtanasov. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the project root for license information.
//
using System;
namespace AppBrix.Time
{
/// <summary>
/// Service which operates with <see cref="DateTime"/>.
/// </summary>
public interface ITim... | // Copyright (c) MarinAtanasov. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the project root for license information.
//
using System;
namespace AppBrix.Time
{
/// <summary>
/// Service which operates with <see cref="DateTime"/>.
/// </summary>
public interface ITim... | mit | C# |
4cf7e486410214320853039d7f45786fc3baaebd | Add ToString to RtTuple | reinforced/Reinforced.Typings | Reinforced.Typings/Ast/TypeNames/RtTuple.cs | Reinforced.Typings/Ast/TypeNames/RtTuple.cs | using System.Collections.Generic;
namespace Reinforced.Typings.Ast.TypeNames
{
/// <summary>
/// AST node for TypeScript tuple type
/// </summary>
public class RtTuple : RtTypeName
{
/// <summary>
/// Constructs new RtTuple
/// </summary>
public RtTuple()
{
... | using System.Collections.Generic;
namespace Reinforced.Typings.Ast.TypeNames
{
/// <summary>
/// AST node for TypeScript tuple type
/// </summary>
public class RtTuple : RtTypeName
{
/// <summary>
/// Constructs new RtTuple
/// </summary>
public RtTuple()
{
... | mit | C# |
8501bb17f315a854306ab2a6d33a79df21202fb8 | change version of the assembly | icanos/SMAStudio | SMAStudio/Properties/AssemblyInfo.cs | SMAStudio/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Windows;
[assembly: log4net.Config.XmlConfigurator(Watch = true)]
// General Information about an assembly is controlled through the following
// set of attributes. Change these... | using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Windows;
[assembly: log4net.Config.XmlConfigurator(Watch = true)]
// General Information about an assembly is controlled through the following
// set of attributes. Change these... | apache-2.0 | C# |
770ec2ac38fc311e16f46f669f50c7966f5a3e98 | remove limit | nukedbit/nukedbit-mvvm | NukedBit.Mvvm.DI.AutoFac/AutoFacExtensions.cs | NukedBit.Mvvm.DI.AutoFac/AutoFacExtensions.cs | using Autofac.Builder;
using NukedBit.Mvvm.Views;
namespace NukedBit.Mvvm.DI.AutoFac
{
public static class AutoFacExtensions
{
public static IRegistrationBuilder<TLimit, TActivatorData, TRegistrationStyle> AsView<TLimit, TActivatorData, TRegistrationStyle>(this IRegistrationBuilder<TLimit, TActivatorD... | using Autofac.Builder;
using NukedBit.Mvvm.Views;
namespace NukedBit.Mvvm.DI.AutoFac
{
public static class AutoFacExtensions
{
public static IRegistrationBuilder<TLimit, TActivatorData, TRegistrationStyle> AsView<TLimit, TActivatorData, TRegistrationStyle>(this IRegistrationBuilder<TLimit, TActivatorD... | apache-2.0 | C# |
9e171f34f35b6634e4c1b4c1f0637711672eeab0 | Use TestCases | ddaspit/libpalaso,glasseyes/libpalaso,gmartin7/libpalaso,glasseyes/libpalaso,andrew-polk/libpalaso,mccarthyrb/libpalaso,gtryus/libpalaso,mccarthyrb/libpalaso,ermshiperete/libpalaso,tombogle/libpalaso,sillsdev/libpalaso,ddaspit/libpalaso,tombogle/libpalaso,tombogle/libpalaso,sillsdev/libpalaso,mccarthyrb/libpalaso,gmart... | Palaso.Tests/Email/LinuxEmailProviderTests.cs | Palaso.Tests/Email/LinuxEmailProviderTests.cs | using System;
using NUnit.Framework;
using Palaso.Email;
namespace Palaso.Tests.Email
{
[TestFixture]
public class LinuxEmailProviderTests
{
// Does not change most things.
[TestCase(@"hello1234 hello", Result =@"hello1234 hello")]
[TestCase("hello\"hello", Result ="hello\"hello")]
[TestCase(@"hello`~!@#$%... | using System;
using NUnit.Framework;
using Palaso.Email;
namespace Palaso.Tests.Email
{
[TestFixture]
public class LinuxEmailProviderTests
{
[Test]
public void EscapeString()
{
string input;
// Does not change most things.
input = @"hello1234 hello";
Assert.That(LinuxEmailProvider.EscapeString(i... | mit | C# |
f998ca1f25cf0847a7c863de4e8bea8c66e376b4 | Remove optional custom object-text mapper. | chasingbob/embark,ideaflare/embark,ubrgw/embark | Embark/Server.cs | Embark/Server.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel.Web;
using System.Text;
using System.Threading.Tasks;
using Embark.Storage;
using Embark.Conversion;
using Embark.Interfaces;
namespace Embark
{
/// <summary>
/// Server that has a TextFileRepository who's commands ge... | using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel.Web;
using System.Text;
using System.Threading.Tasks;
using Embark.Storage;
using Embark.Conversion;
using Embark.Interfaces;
namespace Embark
{
/// <summary>
/// Server that has a TextFileRepository who's commands ge... | mit | C# |
ce75cfbe1d197ef18408e68b329776e607968062 | Remove incorrect mixer setting in AudioManager | NitorInc/NitoriWare,Barleytree/NitoriWare,NitorInc/NitoriWare,Barleytree/NitoriWare | Assets/Scripts/Global/AudioManager.cs | Assets/Scripts/Global/AudioManager.cs | using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Audio;
public class AudioManager : MonoBehaviour
{
public static AudioManager instance;
[SerializeField]
private AudioMixer masterMixer;
public AudioMixer MasterMixer => masterMixer;
[Se... | using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Audio;
public class AudioManager : MonoBehaviour
{
public static AudioManager instance;
[SerializeField]
private AudioMixer masterMixer;
public AudioMixer MasterMixer => masterMixer;
[Se... | mit | C# |
5ecadcce178cf8a6064c3843bd5a7ed21adba2f9 | clean up unused usings | EamonNerbonne/a-vs-an,EamonNerbonne/a-vs-an,EamonNerbonne/a-vs-an,EamonNerbonne/a-vs-an | A-vs-An/AvsAn-Test/StandardCasesWork.cs | A-vs-An/AvsAn-Test/StandardCasesWork.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using AvsAnLib;
using ExpressionToCodeLib;
using NUnit.Framework;
namespace AvsAn_Test {
public class StandardCasesWork {
[TestCase("an", "unanticipated result")]
[TestCase("a", "unanim... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using AvsAnLib;
using ExpressionToCodeLib;
using NUnit.Framework;
namespace AvsAn_Test {
public class StandardCasesWork {
[TestCase("an", "unan... | apache-2.0 | C# |
486efe9611345b9f86951b57916d9158ee7482e3 | fix : remove Itab injection and resize | AlcoholV/Rim.AcEnhancedCrafting | AcEnhancedCrafting.cs | AcEnhancedCrafting.cs | using System.Linq;
using System.Reflection;
using AlcoholV.Detouring;
using Verse;
namespace AlcoholV
{
[StaticConstructorOnStartup]
public class AcEnhancedCrafting
{
private static readonly BindingFlags[] BindingFlagCombos =
{
BindingFlags.Instance | BindingFlags.Public, Bindi... | using System.Linq;
using System.Reflection;
using AlcoholV.Detouring;
using Verse;
namespace AlcoholV
{
[StaticConstructorOnStartup]
public class AcEnhancedCrafting
{
private static readonly BindingFlags[] BindingFlagCombos =
{
BindingFlags.Instance | BindingFlags.Public, Bindi... | mit | C# |
176de4301fbcc3cd28ed3b224faa256353f49cd7 | Revert "test" | dannyhicco/survival-shooter,dannyhicco/survival-shooter | Assets/Scripts/Managers/ScoreManager.cs | Assets/Scripts/Managers/ScoreManager.cs | using UnityEngine;
using UnityEngine.UI;
using System.Collections;
public class ScoreManager : MonoBehaviour
{
public static int score;
Text text;
void Awake ()
{
text = GetComponent <Text> ();
score = 0;
}
void Update ()
{
text.text = "Scor... | using UnityEngine;
using UnityEngine.UI;
using System.Collections;
public class ScoreManager : MonoBehaviour
{
public static int score;
Text text;
void Awake ()
{
text = GetComponent <Text> ();
score = 0;
}
void Update ()
{
text.text = "Scor... | mit | C# |
55bf78c71e0debe143b1b8cdc55135148fd0ec08 | Add the to be implemented interface to MRect2 | charlenni/Mapsui,charlenni/Mapsui | Mapsui/MRect2.cs | Mapsui/MRect2.cs | namespace Mapsui;
public class MRect2
{
//double Bottom { get; }
//MPoint BottomLeft { get; }
//MPoint BottomRight { get; }
//MPoint Centroid { get; }
//double Height { get; }
//double Left { get; }
//MPoint Max { get; set; }
//double MaxX { get; }
//double MaxY { get; }
//MPoi... | namespace Mapsui;
public class MRect2
{
}
| mit | C# |
63b76c0f66ebff4fe9ab9b806141927f775f8764 | Add score controller to GameMenu | lupidan/Tetris | Assets/Scripts/UI/GameMenu.cs | Assets/Scripts/UI/GameMenu.cs | using UnityEngine;
using UnityEngine.UI;
public class GameMenu : MonoBehaviour
{
[SerializeField] private Text _scoreLabel;
[SerializeField] private Text _highscoreLabel;
private IGameController _gameController;
private ScoreController _scoreController;
#region MonoBehaviour
private void OnEnable()
{
SetD... | using UnityEngine;
using UnityEngine.UI;
public class GameMenu : MonoBehaviour
{
[SerializeField] private Text _scoreLabel;
[SerializeField] private Text _highscoreLabel;
private IGameController gameController;
#region MonoBehaviour
private void OnEnable()
{
SetDisplayedScore(0);
SetDisplayedHighscore(10... | mit | C# |
763edf3b8e173221c36cb11901f5a3a598382118 | Send notifications during versioned component installs | QuantConnect/Lean,kaffeebrauer/Lean,Jay-Jay-D/LeanSTP,andrewhart098/Lean,FrancisGauthier/Lean,devalkeralia/Lean,squideyes/Lean,tomhunter-gh/Lean,Jay-Jay-D/LeanSTP,andrewhart098/Lean,Obawoba/Lean,StefanoRaggi/Lean,Mendelone/forex_trading,AnshulYADAV007/Lean,andrewhart098/Lean,Jay-Jay-D/LeanSTP,young-zhang/Lean,squideyes... | Common/Packets/DebugPacket.cs | Common/Packets/DebugPacket.cs | /*
* QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.
* Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation.
*
* 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 ... | /*
* QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.
* Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation.
*
* 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 ... | apache-2.0 | C# |
e4a456832f61c0a00209c92b7ec95fc464590524 | Fix to make path independant to the version | zr40/kyru-dotnet,zr40/kyru-dotnet | Kyru/Core/Config.cs | Kyru/Core/Config.cs | using System;
using System.IO;
namespace Kyru.Core
{
internal sealed class Config
{
internal string storeDirectory;
internal Config()
{
storeDirectory = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData), "Kyru", "objects");
}
}
} | using System;
using System.IO;
namespace Kyru.Core
{
internal sealed class Config
{
internal string storeDirectory;
internal Config()
{
storeDirectory = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "Kyru", "objects");
}
}
} | bsd-3-clause | C# |
833a7286501aa3e4705a4671f791fceff9c93e21 | Revert Parcel to old version to avoid breaking existing clients | goshippo/shippo-csharp-client | Shippo/Parcel.cs | Shippo/Parcel.cs | using System;
using Newtonsoft.Json;
namespace Shippo
{
[JsonObject (MemberSerialization.OptIn)]
public class Parcel : ShippoId
{
[JsonProperty (PropertyName = "object_state")]
public object ObjectState { get; set; }
[JsonProperty (PropertyName = "object_created")]
public ... | using System;
using Newtonsoft.Json;
namespace Shippo
{
[JsonObject (MemberSerialization.OptIn)]
public class Parcel : ShippoId
{
[JsonProperty (PropertyName = "object_state")]
public string ObjectState;
[JsonProperty (PropertyName = "object_created")]
public DateTime? Obj... | apache-2.0 | C# |
db2c64bde05226a17b33429c345b8a814771a304 | Make TypeNameMatcher generic | appharbor/appharbor-cli | src/AppHarbor/TypeNameMatcher.cs | src/AppHarbor/TypeNameMatcher.cs | using System;
using System.Collections.Generic;
namespace AppHarbor
{
public class TypeNameMatcher<T>
{
private readonly IEnumerable<Type> _candidateTypes;
public TypeNameMatcher(IEnumerable<Type> candidateTypes)
{
_candidateTypes = candidateTypes;
}
}
}
| using System;
using System.Collections.Generic;
namespace AppHarbor
{
public class TypeNameMatcher
{
private readonly IEnumerable<Type> _candidateTypes;
public TypeNameMatcher(IEnumerable<Type> candidateTypes)
{
_candidateTypes = candidateTypes;
}
}
}
| mit | C# |
c4a16beebf0425af25d98fd43ef326177b3f97c1 | Add a synchronized RxProperty factory method. | bordoley/RxApp | RxApp/RxProperty.cs | RxApp/RxProperty.cs | using System;
using System.Reactive;
using System.Reactive.Concurrency;
using System.Reactive.Disposables;
using System.Reactive.Linq;
using System.Reactive.Subjects;
using System.Reactive.Threading.Tasks;
using System.Threading;
using System.Threading.Tasks;
namespace RxApp
{
public interface IRxProperty<T> : IO... | using System;
using System.Reactive;
using System.Reactive.Concurrency;
using System.Reactive.Disposables;
using System.Reactive.Linq;
using System.Reactive.Subjects;
using System.Reactive.Threading.Tasks;
using System.Threading;
using System.Threading.Tasks;
namespace RxApp
{
public interface IRxProperty<T> : IO... | apache-2.0 | C# |
244f6e7f84897ad73619c863cb1013c293ff679a | Update ObservableResource.cs | wieslawsoltes/Core2D,wieslawsoltes/Core2D,Core2D/Core2D,Core2D/Core2D,wieslawsoltes/Core2D,wieslawsoltes/Core2D | src/Core2D/ObservableResource.cs | src/Core2D/ObservableResource.cs | // Copyright (c) Wiesław Šoltés. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.Collections.Immutable;
using Core2D.Attributes;
namespace Core2D
{
/// <summary>
/// Observable resources base class.
/// </summary>
... | // Copyright (c) Wiesław Šoltés. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.Collections.Immutable;
using Core2D.Attributes;
namespace Core2D
{
/// <summary>
/// Observable resources base class.
/// </summary>
... | mit | C# |
fda39de66bd3608b5c227f2165e8784beea45503 | fix namespace | collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists | src/FilterLists.Agent/Program.cs | src/FilterLists.Agent/Program.cs | using System;
using System.Threading.Tasks;
using FilterLists.Agent.Extensions;
using FilterLists.Agent.Features.Lists;
using MediatR;
using Microsoft.Extensions.DependencyInjection;
namespace FilterLists.Agent
{
public static class Program
{
private static IServiceProvider _serviceProvider;
... | using System;
using System.Threading.Tasks;
using FilterLists.Agent.Extensions;
using FilterLists.Agent.Features.Archiver;
using MediatR;
using Microsoft.Extensions.DependencyInjection;
namespace FilterLists.Agent
{
public static class Program
{
private static IServiceProvider _serviceProvider;
... | mit | C# |
271fe5f303281420ce1765cca0c69026104ab8eb | stop overwriting the parameter | hibri/HttpMock,mattolenik/HttpMock,oschwald/HttpMock,zhdusurfin/HttpMock | src/HttpMock/RequestProcessor.cs | src/HttpMock/RequestProcessor.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using Kayak;
using Kayak.Http;
namespace HttpMock
{
public class RequestProcessor : IHttpRequestDelegate
{
private readonly string _applicationPath;
private Dictionary<string, RequestHandler> _handlers;
public ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using Kayak;
using Kayak.Http;
namespace HttpMock
{
public class RequestProcessor : IHttpRequestDelegate
{
private readonly string _applicationPath;
private Dictionary<string, RequestHandler> _handlers;
public ... | mit | C# |
35e8bf6fd2159691c5ff824385212fd75bee9218 | Update VBlock.cs | BenVlodgi/VMFParser | VMFParser/VBlock.cs | VMFParser/VBlock.cs | using System.Collections.Generic;
using System.Linq;
namespace VMFParser
{
/// <summary>Represents a block containing other IVNodes in a VMF</summary>
public class VBlock : IVNode
{
public string Name { get; private set; }
public IList<IVNode> Body { get; private set; }
/// <summa... | using System.Collections.Generic;
using System.Linq;
namespace VMFParser
{
/// <summary>Represents a block containing other IVNodes in a VMF</summary>
public class VBlock : IVNode
{
public string Name { get; private set; }
public IList<IVNode> Body { get; private set; }
/// <summa... | mit | C# |
43c5e47b3cb214a312c9e7a9ad7573398561c7a2 | Test GitHub | MagedAlNaamani/DynThings,MagedAlNaamani/DynThings,cmoussalli/DynThings,MagedAlNaamani/DynThings,cmoussalli/DynThings,cmoussalli/DynThings,MagedAlNaamani/DynThings,cmoussalli/DynThings | DynThings.WebPortal/Controllers/HomeController.cs | DynThings.WebPortal/Controllers/HomeController.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace DynThings.WebPortal.Controllers
{
public class HomeController : Controller
{
//TODO: Design a Main Page with review 4
public ActionResult Index()
{
return Vi... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace DynThings.WebPortal.Controllers
{
public class HomeController : Controller
{
//TODO: Design a Main Page with review 3
public ActionResult Index()
{
return Vi... | mit | C# |
a39cbc421df0d9163fb61478fa1552d972016a1c | Update the link. (#1089) | GoogleCloudPlatform/google-cloud-visualstudio,GoogleCloudPlatform/google-cloud-visualstudio,GoogleCloudPlatform/google-cloud-visualstudio,GoogleCloudPlatform/google-cloud-visualstudio,GoogleCloudPlatform/google-cloud-visualstudio | GoogleCloudExtension/GoogleCloudExtension/Analytics/AnalyticsLearnMoreConstants.cs | GoogleCloudExtension/GoogleCloudExtension/Analytics/AnalyticsLearnMoreConstants.cs | // Copyright 2017 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicabl... | // Copyright 2017 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicabl... | apache-2.0 | C# |
76afd7d602e4f2793aa5d400cb674f302bd1e7e6 | Add first implementation of "GL.Begin and GL.End conformity" analyzer | occar421/OpenTKAnalyzer | src/OpenTKAnalyzer/OpenTKAnalyzer/OpenTK/Graphics/OpenGL/BeginEndAnalyzer.cs | src/OpenTKAnalyzer/OpenTKAnalyzer/OpenTK/Graphics/OpenGL/BeginEndAnalyzer.cs | using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis.Diagnostics;
namespace OpenTKAnalyzer.OpenTK.Graphics.OpenGL
{
[DiagnosticAnalyzer(Langu... | using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis.Diagnostics;
namespace Ope... | mit | C# |
a01cddd17fa1a2cad4d18ea14b9b7cb311cd0bf1 | update and add IShape[] in Shapes Main method | ivayloivanof/OOP.CSharp,ivayloivanof/OOP.CSharp | 04.EncapsulationAndPolymorphism/EncapsulationAndPolimophism/Shapes/Program.cs | 04.EncapsulationAndPolymorphism/EncapsulationAndPolimophism/Shapes/Program.cs | using System;
using Shapes.Class;
namespace Shapes
{
using Interfaces;
class Program
{
static void Main()
{
IShape[] shapes = new IShape[3];
//We produce figures of he basics of matryoshka dolls
shapes[0] = new Circle(4);
shapes[1] = new Tria... | using System;
using Shapes.Class;
namespace Shapes
{
using Interfaces;
class Program
{
static void Main()
{
IShape circle = new Circle(4);
Console.WriteLine("circle area: " + circle.CalculateArea());
Console.WriteLine("circle perimeter: " + circle.Calcul... | cc0-1.0 | C# |
bc290ea395bd3c6bed5ddee1dd0e34fef5ba4d8f | Fix FileSystem to return null from property getters if it has not been initialized. | eylvisaker/AgateLib | AgateLib/IO/FileSystem.cs | AgateLib/IO/FileSystem.cs | // The contents of this file are subject to the Mozilla Public License
// Version 1.1 (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.mozilla.org/MPL/
//
// Software distributed under the License is dist... | // The contents of this file are subject to the Mozilla Public License
// Version 1.1 (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.mozilla.org/MPL/
//
// Software distributed under the License is dist... | mit | C# |
10f5c5b0bfe97238337cee776a59caae0d111977 | add EventManager | FrozenMoon/KeepFly | Assets/Script/Common/Game.cs | Assets/Script/Common/Game.cs | using UnityEngine;
using System.Collections;
using GamePlay;
using UI;
namespace Common
{
public class Game : MonoSingleton<Game>
{
public void Start()
{
DontDestroyOnLoad(this);
Init();
}
protected override void OnInit()
{
... | using UnityEngine;
using System.Collections;
using GamePlay;
using UI;
namespace Common
{
public class Game : MonoSingleton<Game>
{
public void Start()
{
DontDestroyOnLoad(this);
Init();
}
protected override void OnInit()
{
... | mit | C# |
6097593e802200e50de6eec43bff630093eeb3de | Update ErrorController.cs | SkillsFundingAgency/das-providerapprenticeshipsservice,SkillsFundingAgency/das-providerapprenticeshipsservice,SkillsFundingAgency/das-providerapprenticeshipsservice | src/SFA.DAS.ProviderApprenticeshipsService.Web/Controllers/ErrorController.cs | src/SFA.DAS.ProviderApprenticeshipsService.Web/Controllers/ErrorController.cs | using System.Web.Mvc;
using SFA.DAS.ProviderApprenticeshipsService.Web.Attributes;
namespace SFA.DAS.ProviderApprenticeshipsService.Web.Controllers
{
using System;
[AllowAllRoles]
[AllowAnonymous]
public class ErrorController : Controller
{
public ViewResult BadRequest()
{
... | using System.Web.Mvc;
using SFA.DAS.ProviderApprenticeshipsService.Web.Attributes;
namespace SFA.DAS.ProviderApprenticeshipsService.Web.Controllers
{
using System;
[AllowAllRoles]
public class ErrorController : Controller
{
public ViewResult BadRequest()
{
Response.StatusC... | mit | C# |
dd3317194f5835ce7fed8ba2da8ce367e8a2992c | Make tower abstract class | TeamLeoTolstoy/Leo | Game/StopTheBunny/Tower.cs | Game/StopTheBunny/Tower.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace StopTheBunny
{
public class abstract Tower : GameObject
{
private int damage;
public override char Sign
{
get
{
throw new NotImplement... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace StopTheBunny
{
public class Tower : GameObject
{
private int damage;
public override char Sign
{
get
{
throw new NotImplementedExcepti... | mit | C# |
1f9926c1f63b1641178464b0be56f78fe9cc9af8 | Add FolioPaymentIndicator as an indicator (doh) | PietroProperties/holms.platformclient.net | csharp/HOLMS.Platform/HOLMS.Platform/Types/Extensions/Folio/FolioPaymentIndicator.cs | csharp/HOLMS.Platform/HOLMS.Platform/Types/Extensions/Folio/FolioPaymentIndicator.cs | using System;
using HOLMS.Support.Conversions;
using HOLMS.Types.Extensions;
using HOLMS.Types.Primitive;
namespace HOLMS.Types.Folio {
public partial class FolioPaymentIndicator : EntityIndicator<FolioPaymentIndicator> {
public FolioPaymentIndicator(Guid id) {
Id = id.ToUUID();
}
... | using System;
using HOLMS.Support.Conversions;
namespace HOLMS.Types.Folio {
public partial class FolioPaymentIndicator {
public FolioPaymentIndicator(Guid id) {
Id = id.ToUUID();
}
}
}
| mit | C# |
6b5c7ad72404ebf11fb7cea8b614d787992e77e0 | Add iFrame option parameters. | jakerman999/YoutubeDesktop,jakerman999/YoutubeDesktop | YoutubeDesktop/Player.cs | YoutubeDesktop/Player.cs | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace YoutubeDesktop
{
public partial class Player : Form
{
const string htmlPrefix = "<!DOCTYP... | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace YoutubeDesktop
{
public partial class Player : Form
{
const string htmlPrefix = "<!DOCTYP... | mit | C# |
547a8d794e00a1f48b09c8dbf4b3bbbe2ea5580e | call for image analyzer | andrewlarkin/Photo-Rainbow | Photo-Rainbow/Main.xaml.cs | Photo-Rainbow/Main.xaml.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Medi... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;... | apache-2.0 | C# |
867c6e85e4cc7290d625f77299d707fa3646eece | 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. | autofac/Autofac.Extras.CommonServiceLocator | Properties/AssemblyInfo.cs | Properties/AssemblyInfo.cs | using System.Reflection;
[assembly: AssemblyTitle("Autofac.Extras.Tests.CommonServiceLocator")]
| using System.Reflection;
[assembly: AssemblyTitle("Autofac.Extras.Tests.CommonServiceLocator")]
[assembly: AssemblyDescription("")]
| mit | C# |
2b55f5830c4ce0fc60772b0c8ace0df5c703bee6 | test clock exposes advanced event to manual scheduler | Liwoj/Metrics.NET,alhardy/Metrics.NET,DeonHeyns/Metrics.NET,alhardy/Metrics.NET,MetaG8/Metrics.NET,MetaG8/Metrics.NET,etishor/Metrics.NET,Liwoj/Metrics.NET,cvent/Metrics.NET,ntent-ad/Metrics.NET,cvent/Metrics.NET,DeonHeyns/Metrics.NET,mnadel/Metrics.NET,huoxudong125/Metrics.NET,Recognos/Metrics.NET,etishor/Metrics.NET,... | Src/Metrics/Utils/Clock.cs | Src/Metrics/Utils/Clock.cs |
using System;
namespace Metrics.Utils
{
public abstract class Clock
{
private sealed class StopwatchClock : Clock
{
private static readonly long factor = (1000L * 1000L * 1000L) / System.Diagnostics.Stopwatch.Frequency;
public override long Nanoseconds { get { return S... |
using System;
namespace Metrics.Utils
{
public abstract class Clock
{
private sealed class StopwatchClock : Clock
{
private static readonly long factor = (1000L * 1000L * 1000L) / System.Diagnostics.Stopwatch.Frequency;
public override long Nanoseconds { get { return S... | apache-2.0 | C# |
feb86313dc0b940dc65d80c231c12ac5d32126e0 | Use standard EventHandler naming | jlewin/MatterControl,jlewin/MatterControl,unlimitedbacon/MatterControl,unlimitedbacon/MatterControl,larsbrubaker/MatterControl,unlimitedbacon/MatterControl,larsbrubaker/MatterControl,larsbrubaker/MatterControl,larsbrubaker/MatterControl,jlewin/MatterControl,jlewin/MatterControl,unlimitedbacon/MatterControl | MatterControlLib/ConfigurationPage/PrintLeveling/WizardPages/HomePrinterPage.cs | MatterControlLib/ConfigurationPage/PrintLeveling/WizardPages/HomePrinterPage.cs | /*
Copyright (c) 2019, 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) 2019, 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# |
0ccaf63b1cc60a30271af8636b82534370b4a9ca | Fix GetDescendantsOfType | jasonmcboyd/Treenumerable | Source/Treenumerable/TreeWalkerExtensions/TreeWalkerExtensions.GetDescendantsOfType.cs | Source/Treenumerable/TreeWalkerExtensions/TreeWalkerExtensions.GetDescendantsOfType.cs | using System;
using System.Collections.Generic;
namespace Treenumerable
{
public static partial class TreeWalkerExtensions
{
public static IEnumerable<TResult> GetDescendantsOfType<TSource, TResult>(
this ITreeWalker<TSource> walker,
IEnumerable<TSource> nodes)
... | using System;
using System.Collections.Generic;
using System.Linq;
namespace Treenumerable
{
public static partial class TreeWalkerExtensions
{
public static IEnumerable<TResult> GetDescendantsOfType<TSource, TResult>(this ITreeWalker<TSource> walker, IEnumerable<TSource> nodes, bool includeNodes)
... | mit | C# |
27b0266d25e5f68288909f7145c44e6f6daab76b | Improve how the link is made and page is cached | 2sic/app-blog,2sic/app-blog,2sic/app-blog | bs4/Links.cs | bs4/Links.cs | using ToSic.Razor.Blade;
public class Links : Custom.Hybrid.Code12
{
/// <Summary>
/// Returns a safe url to a post details page
/// </Summary>
public dynamic LinkToDetailsPage(dynamic post) {
return Link.To(pageId: DetailsPageId, parameters: "details=" + post.UrlKey);
}
/// <Summary>
/// Get / cach... | using ToSic.Razor.Blade;
// todo: change to use Get
public class Links : Custom.Hybrid.Code12
{
// Returns a safe url to a post details page
public dynamic LinkToDetailsPage(dynamic post) {
var detailsPageTabId = Text.Has(Settings.DetailsPage)
? int.Parse((AsEntity(App.Settings).GetBestValue("DetailsPage... | mit | C# |
14ecec2cc66ddaa51f2caa169f71bbd3627e353a | print Debug.Log etc to console | jbruening/UnEngine | src/UnEngine/Engine/Debug.cs | src/UnEngine/Engine/Debug.cs | using System;
#if UNENG
namespace UnEngine
#else
namespace UnityEngine
#endif
{
public sealed class Debug
{
public static void Log(object message)
{
Console.WriteLine (message.ToString ());
}
public static void Warning(object message)
{
Console.W... | using System;
#if UNENG
namespace UnEngine
#else
namespace UnityEngine
#endif
{
public sealed class Debug
{
public static void Log(object message)
{
}
public static void Warning(object message)
{
}
public static void Error(objec... | mit | C# |
b05374404f2365eb3db9bd063a36683d6ee90401 | Update CodeFixProvider.cs | filipw/RemoveRegionAnalyzerAndCodeFix | RemoveRegionAnalyzerAndCodeFix/RemoveRegionAnalyzerAndCodeFix/CodeFixProvider.cs | RemoveRegionAnalyzerAndCodeFix/RemoveRegionAnalyzerAndCodeFix/CodeFixProvider.cs | using System.Collections.Immutable;
using System.Composition;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CodeFixes;
using Microsoft.CodeAnalysis.CodeActions;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
namespace Remo... | using System.Collections.Immutable;
using System.Composition;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CodeFixes;
using Microsoft.CodeAnalysis.CodeActions;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
namespace Remo... | mit | C# |
d4b5603bbae0b2b264b1d436d7966b7c30560c81 | Replace WaitOne(TimeSpan) with WaitOne(TimeSpan,false) so 3.5SP1 not needed. | hibernating-rhinos/rhino-esb,ketiko/rhino-esb,jkells/rhino-esb | Rhino.ServiceBus.Tests/Bugs/Occasional_consumer_resolving_when_not_subscribed.cs | Rhino.ServiceBus.Tests/Bugs/Occasional_consumer_resolving_when_not_subscribed.cs | using System;
using System.Threading;
using Castle.Windsor;
using Castle.Windsor.Configuration.Interpreters;
using Rhino.ServiceBus.Impl;
using Xunit;
namespace Rhino.ServiceBus.Tests.Bugs
{
public class Occasional_consumer_resolving_when_not_subscribed : OccasionalConsumerOf<SimpleMessage>
{
private re... | using System;
using System.Threading;
using Castle.Windsor;
using Castle.Windsor.Configuration.Interpreters;
using Rhino.ServiceBus.Impl;
using Xunit;
namespace Rhino.ServiceBus.Tests.Bugs
{
public class Occasional_consumer_resolving_when_not_subscribed : OccasionalConsumerOf<SimpleMessage>
{
private re... | bsd-3-clause | C# |
a55ff736a634d8d77f771c2f86bbd729f9c33789 | 完成H5支付Demo | mc7246/WeiXinMPSDK,JeffreySu/WeiXinMPSDK,mc7246/WeiXinMPSDK,down4u/WeiXinMPSDK,lishewen/WeiXinMPSDK,wanddy/WeiXinMPSDK,lishewen/WeiXinMPSDK,wanddy/WeiXinMPSDK,JeffreySu/WeiXinMPSDK,mc7246/WeiXinMPSDK,jiehanlin/WeiXinMPSDK,down4u/WeiXinMPSDK,down4u/WeiXinMPSDK,jiehanlin/WeiXinMPSDK,lishewen/WeiXinMPSDK,jiehanlin/WeiXinM... | src/Senparc.Weixin.MP.Sample/Senparc.Weixin.MP.Sample/Views/TenPayV3/ProductList.cshtml | src/Senparc.Weixin.MP.Sample/Senparc.Weixin.MP.Sample/Views/TenPayV3/ProductList.cshtml | @model List<Senparc.Weixin.MP.Sample.Models.ProductModel>
@{
Layout = null;
}
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<title>产品列表</title>
<style>
ul#productList, ul#productList li {
list-style: none;
/*display: inline;*/
... | @model List<Senparc.Weixin.MP.Sample.Models.ProductModel>
@{
Layout = null;
}
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<title>产品列表</title>
<style>
ul#productList, ul#productList li {
list-style: none;
/*display: inline;*/
... | apache-2.0 | C# |
e28c33d8be6e8d66c2505cfa5a84c67aaa21fb58 | Use the correct call to FunctionNameHelper | USDXStartups/CalendarHelper | shared/AppSettingsHelper.csx | shared/AppSettingsHelper.csx | #load "LogHelper.csx"
#load "FunctionNameHelper.csx"
using System.Configuration;
public static class AppSettingsHelper
{
public static string GetAppSetting(string SettingName, bool LogValue = true )
{
string SettingValue = "";
string methodName = this.GetType().FullName;
try
... | #load "LogHelper.csx"
#load "FunctionNameHelper.csx"
using System.Configuration;
public static class AppSettingsHelper
{
public static string GetAppSetting(string SettingName, bool LogValue = true )
{
string SettingValue = "";
string methodName = this.GetType().FullName;
try
... | mit | C# |
f4d323945c69f2953fd543dadae95ffee742dac8 | Implement two MemoryMappedFile methods | Haacked/Rothko | src/Threading/MemoryMappedFileWrapper.cs | src/Threading/MemoryMappedFileWrapper.cs | using System.IO;
using System.IO.MemoryMappedFiles;
namespace Rothko
{
public sealed class MemoryMappedFileWrapper : IMemoryMappedFile
{
private readonly MemoryMappedFile innerFile;
public MemoryMappedFileWrapper(MemoryMappedFile innerFile)
{
this.innerFile = innerFile;
... | using System.IO;
using System.IO.MemoryMappedFiles;
namespace Rothko
{
public sealed class MemoryMappedFileWrapper : IMemoryMappedFile
{
private readonly MemoryMappedFile innerFile;
public MemoryMappedFileWrapper(MemoryMappedFile innerFile)
{
this.innerFile = innerFile;
... | mit | C# |
2b198a2844f4fbfacff4d30f7036058b7f05576f | fix build failure on .NET 4.5 | ptoonen/corefx,Jiayili1/corefx,Jiayili1/corefx,ericstj/corefx,BrennanConroy/corefx,shimingsg/corefx,ptoonen/corefx,ViktorHofer/corefx,mmitche/corefx,ptoonen/corefx,ViktorHofer/corefx,wtgodbe/corefx,BrennanConroy/corefx,ericstj/corefx,ericstj/corefx,shimingsg/corefx,shimingsg/corefx,ViktorHofer/corefx,ViktorHofer/corefx... | src/System.Diagnostics.DiagnosticSource/src/System/Diagnostics/Activity.Current.net45.cs | src/System.Diagnostics.DiagnosticSource/src/System/Diagnostics/Activity.Current.net45.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.Runtime.Remoting;
using System.Runtime.Remoting.Messaging;
using System.Security;
namespace System.Dia... | // 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.Runtime.Remoting;
using System.Runtime.Remoting.Messaging;
using System.Security;
namespace System.Dia... | mit | C# |
8c85f8bb98cb987937d494275df1d34c3f941c87 | Update tests. #386 | Sitecore/Sitecore-Instance-Manager | src/SIM.Sitecore9Installer.Tests/Validation/Validators/SqlPefixValidatorTests.cs | src/SIM.Sitecore9Installer.Tests/Validation/Validators/SqlPefixValidatorTests.cs | using AutoFixture;
using NSubstitute;
using SIM.Sitecore9Installer.Tasks;
using SIM.Sitecore9Installer.Validation;
using SIM.Sitecore9Installer.Validation.Validators;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Xunit;
namespace SIM.Sitecore9Installer.Tests.Validation.Va... | using NSubstitute;
using SIM.Sitecore9Installer.Tasks;
using SIM.Sitecore9Installer.Validation;
using SIM.Sitecore9Installer.Validation.Validators;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Xunit;
namespace SIM.Sitecore9Installer.Tests.Validation.Validators
{
public... | mit | C# |
44794a221458d9cbb9fc67050c2e5c949a0d23fe | Remove extra semicolon | ppy/osu-framework,peppy/osu-framework,peppy/osu-framework,smoogipooo/osu-framework,ppy/osu-framework,ppy/osu-framework,peppy/osu-framework,smoogipooo/osu-framework | osu.Framework/Host.cs | osu.Framework/Host.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 osu.Framework.Platform;
using osu.Framework.Platform.Linux;
using osu.Framework.Platform.MacOS;
using osu.Framework.Platform.Windows;
namespace osu.... | // 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.Platform;
using osu.Framework.Platform.Linux;
using osu.Framework.Platform.MacOS;
using osu.Framework.Platform.Windows;
using System;
namespace osu.... | mit | C# |
0b508827e4af142c6fced073a86df4d9cb84ad2d | Add copy and paste into Procedural model | effekseer/Effekseer,effekseer/Effekseer,effekseer/Effekseer,effekseer/Effekseer,effekseer/Effekseer,effekseer/Effekseer,effekseer/Effekseer | Dev/Editor/Effekseer/GUI/Dock/ProcedualModel.cs | Dev/Editor/Effekseer/GUI/Dock/ProcedualModel.cs | using System;
using Effekseer.Data;
namespace Effekseer.GUI.Dock
{
class ProcedualModel : DockPanel
{
readonly Component.ParameterList paramerterList = null;
Component.CopyAndPaste candp = null;
public ProcedualModel()
{
Label = Icons.PanelDynamicParams + Resources.GetString("ProcedualModel_Name") + "###... | using System;
using Effekseer.Data;
namespace Effekseer.GUI.Dock
{
class ProcedualModel : DockPanel
{
readonly Component.ParameterList paramerterList = null;
public ProcedualModel()
{
Label = Icons.PanelDynamicParams + Resources.GetString("ProcedualModel_Name") + "###ProcedualModel";
paramerterList = n... | mit | C# |
375b3005c8f129b22a99f5a9f917dfa873a515b1 | Add password button to LoggedIn set | ethanmoffat/EndlessClient | EndlessClient/ControlSets/LoggedInControlSet.cs | EndlessClient/ControlSets/LoggedInControlSet.cs | // Original Work Copyright (c) Ethan Moffat 2014-2016
// This file is subject to the GPL v2 License
// For additional details, see the LICENSE file
using System;
using EndlessClient.Controllers;
using EndlessClient.GameExecution;
using Microsoft.Xna.Framework;
using XNAControls;
namespace EndlessClient.ControlSets
{... | // Original Work Copyright (c) Ethan Moffat 2014-2016
// This file is subject to the GPL v2 License
// For additional details, see the LICENSE file
using System;
using EndlessClient.Controllers;
using EndlessClient.GameExecution;
using Microsoft.Xna.Framework;
using XNAControls;
namespace EndlessClient.ControlSets
{... | mit | C# |
63ad6413c86aa8ff0f10dc8d1ed27560a7ccdfb8 | Fix warning. | JohanLarsson/Gu.Roslyn.Asserts | Gu.Roslyn.Asserts.XUnit/AssertExceptionTests.cs | Gu.Roslyn.Asserts.XUnit/AssertExceptionTests.cs | namespace Gu.Roslyn.Asserts.XUnit
{
using Xunit;
public class AssertExceptionTests
{
[Fact]
public void CreateReturnsXunitException()
{
var exception = AssertException.Create("abc");
#pragma warning disable GU0011 // Don't ignore the return value.
Assert.IsTy... | namespace Gu.Roslyn.Asserts.XUnit
{
using Xunit;
public class AssertExceptionTests
{
[Fact]
public void CreateReturnsXunitException()
{
var exception = AssertException.Create("abc");
Assert.IsType<Xunit.Sdk.XunitException>(exception);
Assert.Equal... | mit | C# |
e35377a93653f6bf74d0eb9dc7931698660ab427 | Fix character list | Dreadlow/PolarisServer,cyberkitsune/PolarisServer,PolarisTeam/PolarisServer | PolarisServer/Packets/Handlers/CharacterList.cs | PolarisServer/Packets/Handlers/CharacterList.cs | using PolarisServer.Database;
using System.Linq;
namespace PolarisServer.Packets.Handlers
{
[PacketHandlerAttr(0x11, 0x02)]
public class CharacterList : PacketHandler
{
#region implemented abstract members of PacketHandler
public override void HandlePacket(Client context, byte flags, byte... | using PolarisServer.Database;
using System.Linq;
namespace PolarisServer.Packets.Handlers
{
[PacketHandlerAttr(0x11, 0x02)]
public class RequestCharacterList : PacketHandler
{
#region implemented abstract members of PacketHandler
public override void HandlePacket(Client context, byte flag... | agpl-3.0 | C# |
95b8fb09417d5e2d65a059f72b6689253ac7fdc6 | update slotname in redirect_uri | fashaikh/SimpleWAWS,davidebbo/SimpleWAWS,projectkudu/SimpleWAWS,davidebbo/SimpleWAWS,projectkudu/TryAppService,projectkudu/SimpleWAWS,projectkudu/SimpleWAWS,fashaikh/SimpleWAWS,fashaikh/SimpleWAWS,fashaikh/SimpleWAWS,projectkudu/TryAppService,projectkudu/TryAppService,projectkudu/SimpleWAWS,davidebbo/SimpleWAWS,davideb... | SimpleWAWS/Authentication/GoogleAuthProvider.cs | SimpleWAWS/Authentication/GoogleAuthProvider.cs | using System;
using System.Collections.Generic;
using System.Configuration;
using System.Globalization;
using System.Linq;
using System.Net;
using System.Text;
using System.Web;
namespace SimpleWAWS.Authentication
{
public class GoogleAuthProvider : BaseOpenIdConnectAuthProvider
{
public override stri... | using System;
using System.Collections.Generic;
using System.Configuration;
using System.Globalization;
using System.Linq;
using System.Net;
using System.Text;
using System.Web;
namespace SimpleWAWS.Authentication
{
public class GoogleAuthProvider : BaseOpenIdConnectAuthProvider
{
public override stri... | apache-2.0 | C# |
f35ba6330b263e10d8c4a790105eb16c744ea760 | Adjust papparlell | michael-reichenauer/Dependinator | Dependinator/ModelParsing/Private/MonoCecilReflection/Private/ReflectionService.cs | Dependinator/ModelParsing/Private/MonoCecilReflection/Private/ReflectionService.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Dependinator.ModelParsing.Private.SolutionFileParsing;
using Dependinator.Utils;
namespace Dependinator.ModelParsing.Private.MonoCecilReflection.Private
{
internal class ReflectionService : IReflec... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Dependinator.ModelParsing.Private.SolutionFileParsing;
using Dependinator.Utils;
namespace Dependinator.ModelParsing.Private.MonoCecilReflection.Private
{
internal class ReflectionService : IReflec... | mit | C# |
e116beb13b7ad1a9551b168d4cdd7c630aa9e2d5 | Update JsonGrainStateSerializer.cs | OrleansContrib/Orleans.Providers.MongoDB | Orleans.Providers.MongoDB/StorageProviders/Serializers/JsonGrainStateSerializer.cs | Orleans.Providers.MongoDB/StorageProviders/Serializers/JsonGrainStateSerializer.cs | using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using Orleans.Providers.MongoDB.Configuration;
using Orleans.Runtime;
using Orleans.Serialization;
namespace Orleans.Providers.MongoDB.StorageProviders.Serializers
{
public class JsonGrainStateSerializer : IGrainStateSerializer
{
private readonly Json... | using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using Orleans.Providers.MongoDB.Configuration;
using Orleans.Runtime;
using Orleans.Serialization;
namespace Orleans.Providers.MongoDB.StorageProviders.Serializers
{
public class JsonGrainStateSerializer : IGrainStateSerializer
{
private readonly Json... | mit | C# |
27cc50062262142bfbfda33648d0bf0b92a2c4fc | remove logging | NDark/ndinfrastructure,NDark/ndinfrastructure | Unity/Platform/Region/Plugins/PlatformRegion.cs | Unity/Platform/Region/Plugins/PlatformRegion.cs | /**
MIT License
Copyright (c) 2017 - 2021 NDark
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish... | /**
MIT License
Copyright (c) 2017 - 2021 NDark
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish... | mit | C# |
2a1edcefdccd363ffc89b29986b49a26702d9754 | Update EntryPoint.cs | 5minlab/minamo,5minlab/minamo,5minlab/minamo | UnityProject/Assets/Minamo/Editor/EntryPoint.cs | UnityProject/Assets/Minamo/Editor/EntryPoint.cs | using System.IO;
using UnityEngine;
namespace Assets.Minamo.Editor {
/// <summary>
/// cli entry point
/// </summary>
public class EntryPoint {
public static void Build() {
string configFilePath;
if (!EnvironmentReader.TryRead("CONFIG_PATH", out configFilePath)) {
... | using System.IO;
using UnityEngine;
namespace Assets.Minamo.Editor {
/// <summary>
/// cli entry point
/// </summary>
public class EntryPoint {
public static void Build() {
string configFilePath;
if (!EnvironmentReader.TryRead("CONFIG_PATH", out configFilePath)) {
... | mit | C# |
1a298503a6d65b954405e28d014902e65b1ce5e8 | Initialize GitExecutable with the git executable path | appharbor/appharbor-cli | src/AppHarbor/GitExecutable.cs | src/AppHarbor/GitExecutable.cs | using System;
using System.IO;
namespace AppHarbor
{
public class GitExecutable
{
private readonly FileInfo _gitExecutable;
public GitExecutable()
{
var programFilesPath = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86);
var gitExecutablePath = Path.Combine(programFilesPath, "Git",... | namespace AppHarbor
{
public class GitExecutable
{
}
}
| mit | C# |
fba8a66d70c8ac350abd275af1e9ed9aaf9088aa | increase version no | gigya/microdot | SolutionVersion.cs | SolutionVersion.cs | #region Copyright
// Copyright 2017 Gigya Inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// THI... | #region Copyright
// Copyright 2017 Gigya Inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// THI... | apache-2.0 | C# |
be1151862ddeb89e6142ad7e9fea130c6c0c8c9c | Test the "XmlOnlY" case and unspecified case on .WithAccept() In both cases, content type should be "application/xml" | gregsochanik/SevenDigital.Api.Wrapper,danhaller/SevenDigital.Api.Wrapper,minkaotic/SevenDigital.Api.Wrapper,luiseduardohdbackup/SevenDigital.Api.Wrapper,AnthonySteele/SevenDigital.Api.Wrapper | src/SevenDigital.Api.Wrapper.Integration.Tests/EndpointTests/ResponseAcceptTests.cs | src/SevenDigital.Api.Wrapper.Integration.Tests/EndpointTests/ResponseAcceptTests.cs | using System.Net;
using Newtonsoft.Json.Linq;
using NUnit.Framework;
using SevenDigital.Api.Schema.Releases;
using SevenDigital.Api.Wrapper.Requests;
namespace SevenDigital.Api.Wrapper.Integration.Tests.EndpointTests
{
[TestFixture]
public class ResponseAcceptTests
{
[Test]
public async void Respon... | using System.Net;
using Newtonsoft.Json.Linq;
using NUnit.Framework;
using SevenDigital.Api.Schema.Releases;
using SevenDigital.Api.Wrapper.Requests;
namespace SevenDigital.Api.Wrapper.Integration.Tests.EndpointTests
{
[TestFixture]
public class ResponseAcceptTests
{
[Test]
public async void Respon... | mit | C# |
36f6ba3db36cbab481920f63bed3b695d183f766 | Rename _hashProvider to _hMacProvider. | rahku/corefx,ravimeda/corefx,nelsonsar/corefx,Jiayili1/corefx,shimingsg/corefx,dtrebbien/corefx,stephenmichaelf/corefx,mmitche/corefx,gkhanna79/corefx,cydhaselton/corefx,rahku/corefx,twsouthwick/corefx,cartermp/corefx,shmao/corefx,benpye/corefx,tijoytom/corefx,vidhya-bv/corefx-sorting,Yanjing123/corefx,JosephTremoulet/... | src/System.Security.Cryptography.Algorithms/src/Internal/Cryptography/HMACCommon.cs | src/System.Security.Cryptography.Algorithms/src/Internal/Cryptography/HMACCommon.cs | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Diagnostics;
using System.Security.Cryptography;
using Internal.Cryptography;
namespace Internal.Cryptography
{
//
// This class pr... | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Diagnostics;
using System.Security.Cryptography;
using Internal.Cryptography;
namespace Internal.Cryptography
{
//
// This class pr... | mit | C# |
2ef9d559841b1a794ba825eae6d3f1eef0b810b2 | Correct implementation of configuration | headdetect/ComputerRemote-Server | CLI/Utils/Paramaters.cs | CLI/Utils/Paramaters.cs | using RemoteLib.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ComputerRemote.CLI.Utils
{
public class Paramaters
{
private static Configuration config = new Configuration("options.json");
static Paramaters()
{
if (!... | using RemoteLib.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ComputerRemote.CLI.Utils
{
public class Paramaters
{
static Paramaters()
{
Configuration config = new Configuration("options.json");
if (!config.Ke... | mit | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.