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 |
|---|---|---|---|---|---|---|---|---|
6db371bed6a3af588235a4df351ff9c731d7de8e | Update CommentsDisqus.cshtml | Shazwazza/Articulate,readingdancer/Articulate,readingdancer/Articulate,readingdancer/Articulate,Shazwazza/Articulate,Shazwazza/Articulate | src/Articulate.Web/App_Plugins/Articulate/Themes/Mini/Views/Partials/CommentsDisqus.cshtml | src/Articulate.Web/App_Plugins/Articulate/Themes/Mini/Views/Partials/CommentsDisqus.cshtml | @model Articulate.Models.PostModel
<div class="post-comment">
@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 A... | @model Articulate.Models.PostModel
<div class="post-comment">
@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 A... | mit | C# |
d800c2a9ef47e77b4ed417e54f850e7202b100c7 | Add magnet debug output | MorganR/wizards-chess,MorganR/wizards-chess | WizardsChess/WizardsChess/Movement/Drv/MagnetDrv.cs | WizardsChess/WizardsChess/Movement/Drv/MagnetDrv.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.Devices.Gpio;
namespace WizardsChess.Movement.Drv
{
class MagnetDrv : IMagnetDrv
{
public MagnetDrv(int pinNum)
{
var gpio = GpioController.GetDefault();
pin = gpio.OpenPin(pin... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.Devices.Gpio;
namespace WizardsChess.Movement.Drv
{
class MagnetDrv : IMagnetDrv
{
public MagnetDrv(int pinNum)
{
var gpio = GpioController.GetDefault();
pin = gpio.OpenPin(pin... | apache-2.0 | C# |
9afdbdeb781bf2a81ea13faa058dd19de2803a95 | update controls prop | Appleseed/portal,Appleseed/portal,Appleseed/portal,Appleseed/portal,Appleseed/portal,Appleseed/portal,Appleseed/portal | Master/Appleseed/Projects/Appleseed.Framework.Web.UI.WebControls/Properties/AssemblyInfo.cs | Master/Appleseed/Projects/Appleseed.Framework.Web.UI.WebControls/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("Ap... | 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("Ap... | apache-2.0 | C# |
4625f6976a71fdad89c19803b9ac44cebc8f5b69 | remove unused variables (#620) | Hitcents/Xamarin.Forms,Hitcents/Xamarin.Forms,Hitcents/Xamarin.Forms | Xamarin.Forms.Build.Tasks/MethodBodyExtensions.cs | Xamarin.Forms.Build.Tasks/MethodBodyExtensions.cs | using Mono.Cecil.Cil;
using Mono.Cecil.Rocks;
using System;
using System.Linq;
using System.Collections.Generic;
namespace Xamarin.Forms.Build.Tasks
{
static class MethodBodyExtensions
{
public static void Optimize(this MethodBody self)
{
if (self == null)
throw new ArgumentNullException(nameof(self));
... | using Mono.Cecil.Cil;
using Mono.Cecil.Rocks;
using System;
namespace Xamarin.Forms.Build.Tasks
{
static class MethodBodyExtensions
{
public static void Optimize(this MethodBody self)
{
if (self == null)
throw new ArgumentNullException(nameof(self));
self.OptimizeLongs();
self.OptimizeStLdLoc();
... | mit | C# |
8369a163f6adb9bcf91e2a2357386caff1407bd4 | print connection string when generating db | dinazil/blogsamples,dinazil/blogsamples,dinazil/blogsamples | ef_model_db_mismatch/DbGenerator/Program.cs | ef_model_db_mismatch/DbGenerator/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DbGenerator
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Rebuilding your DB...");
using (var ctx = new SampleDbContex... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DbGenerator
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Rebuilding your DB...");
using (var ctx = new SampleDbContex... | mit | C# |
68fe477b6ea3d6ccbc3fec84b669ed2c7868e23a | Build error resolved | Promact/trappist,Promact/trappist,Promact/trappist,Promact/trappist,Promact/trappist | Trappist/src/Promact.Trappist.Repository/Questions/QuestionRepository.cs | Trappist/src/Promact.Trappist.Repository/Questions/QuestionRepository.cs | using System.Collections.Generic;
using Promact.Trappist.DomainModel.Models.Question;
using System.Linq;
using Promact.Trappist.DomainModel.DbContext;
namespace Promact.Trappist.Repository.Questions
{
public class QuestionRepository : IQuestionRespository
{
private readonly TrappistDbContext _dbContex... | using System.Collections.Generic;
using Promact.Trappist.DomainModel.Models.Question;
using System.Linq;
using Promact.Trappist.DomainModel.DbContext;
namespace Promact.Trappist.Repository.Questions
{
public class QuestionRepository : IQuestionRespository
{
private readonly TrappistDbContext _dbContex... | mit | C# |
9f7b65400e1a3ce210eff923063b7c24e9d2956e | Convert bits to bytes. | appharbor/AppHarbor.Web.Security | AppHarbor.Web.Security/SymmetricEncryption.cs | AppHarbor.Web.Security/SymmetricEncryption.cs | using System.IO;
using System.Security.Cryptography;
using System;
namespace AppHarbor.Web.Security
{
public class SymmetricEncryption : Encryption
{
private readonly SymmetricAlgorithm _algorithm;
private readonly byte[] _secretKey;
public SymmetricEncryption(SymmetricAlgorithm algorithm, byte[] secretKey)
... | using System.IO;
using System.Security.Cryptography;
using System;
namespace AppHarbor.Web.Security
{
public class SymmetricEncryption : Encryption
{
private readonly SymmetricAlgorithm _algorithm;
private readonly byte[] _secretKey;
public SymmetricEncryption(SymmetricAlgorithm algorithm, byte[] secretKey)
... | mit | C# |
dcc0a6f3b787e63d929249f93606bc330910a0cc | Apply camera offset in all directions | mysticfall/Alensia | Assets/Alensia/Core/Camera/CharacterCamera.cs | Assets/Alensia/Core/Camera/CharacterCamera.cs | using System;
using Alensia.Core.Character;
using Alensia.Core.Common;
using UnityEngine;
using Zenject;
namespace Alensia.Core.Camera
{
public class CharacterCamera : OrbitingCamera, ITrackingCamera<IHumanoid>
{
public override RotationalConstraints RotationalConstraints => _settings.Rotation;
... | using System;
using Alensia.Core.Character;
using Alensia.Core.Common;
using UnityEngine;
using Zenject;
namespace Alensia.Core.Camera
{
public class CharacterCamera : OrbitingCamera, ITrackingCamera<IHumanoid>
{
public override RotationalConstraints RotationalConstraints => _settings.Rotation;
... | apache-2.0 | C# |
50984c87ab46ff9200c463b25dd9332a12b1755a | add ondisable method to yesandinspector component | YesAndGames/YesAndEngine | Assets/Editor/YesAndEditor/YesAndInspector.cs | Assets/Editor/YesAndEditor/YesAndInspector.cs | using UnityEngine;
using UnityEditor;
using System.Collections;
namespace YesAndEditor {
// Yes And editor layer for the object inspector window.
public abstract class YesAndInspector<T> : Editor where T:UnityEngine.Object {
// Layout object for this editor.
protected YesAndLayout Layout;
// The object thi... | using UnityEngine;
using UnityEditor;
using System.Collections;
namespace YesAndEditor {
// Yes And editor layer for the object inspector window.
public abstract class YesAndInspector<T> : Editor where T:UnityEngine.Object {
// Layout object for this editor.
protected YesAndLayout Layout;
// The object thi... | apache-2.0 | C# |
b2ad2dbf5bf46e43b04c83c2a624082d150286e1 | allow admins to see outcome management | ucdavis/Badges,ucdavis/Badges | Badges/Areas/Admin/Views/Landing/Index.cshtml | Badges/Areas/Admin/Views/Landing/Index.cshtml | @model dynamic
@{
ViewBag.Title = "Admin Homepage";
}
<h2>Admin Homepage</h2>
<ul class="nav nav-pills nav-stacked">
<li>@Html.ActionLink("Manage Titles", "Index", "Title")</li>
<li>@Html.ActionLink("Manage Organizations", "Index", "Organization")</li>
<li>@Html.ActionLink("Manage Instructors",... | @model dynamic
@{
ViewBag.Title = "Admin Homepage";
}
<h2>Admin Homepage</h2>
<ul class="nav nav-pills nav-stacked">
<li>@Html.ActionLink("Manage Titles", "Index", "Title")</li>
<li>@Html.ActionLink("Manage Organizations", "Index", "Organization")</li>
<li>@Html.ActionLink("Manage Instructors",... | mpl-2.0 | C# |
75c2e9ad4fa8cd1160d3d49cd4b0d4b34c354473 | fix for cake.git version | bugsnag/bugsnag-unity,bugsnag/bugsnag-unity,bugsnag/bugsnag-unity,bugsnag/bugsnag-unity,bugsnag/bugsnag-unity,bugsnag/bugsnag-unity | build.cake | build.cake | #addin nuget:?package=Cake.Git&version=1.1.0
#tool "nuget:?package=NUnit.ConsoleRunner"
var target = Argument("target", "Default");
var solution = File("./BugsnagUnity.sln");
var configuration = Argument("configuration", "Release");
var project = File("./src/BugsnagUnity/BugsnagUnity.csproj");
var version = "5.4.2";
... | #addin nuget:?package=Cake.Git
#tool "nuget:?package=NUnit.ConsoleRunner"
var target = Argument("target", "Default");
var solution = File("./BugsnagUnity.sln");
var configuration = Argument("configuration", "Release");
var project = File("./src/BugsnagUnity/BugsnagUnity.csproj");
var version = "5.4.2";
Task("Restore-... | mit | C# |
59d583416d8b667b7aa0c0ddc98535b8be830f37 | Add GetPosition test | PawelStroinski/StreamReaderSeeker,PawelStroinski/StreamReaderSeeker | Test/StreamReaderSeekerTest.cs | Test/StreamReaderSeekerTest.cs | using System.IO;
using System.Reflection;
using NUnit.Framework;
namespace StreamUtils
{
public class StreamReaderSeekerTest
{
[Test]
public void DiscardsBufferedDataWhenCharacterPositionIsNegative()
{
var stream = Assembly.GetExecutingAssembly().GetManifestResou... | using System.IO;
using System.Reflection;
using NUnit.Framework;
namespace StreamUtils
{
public class StreamReaderSeekerTest
{
[Test]
public void DiscardsBufferedDataWhenCharacterPositionIsNegative()
{
var stream = Assembly.GetExecutingAssembly().GetManifestResou... | mit | C# |
108e972435e316ff0f867b6c832662f1bd735c5a | bump version | nosami/XSTerm,nosami/XSTerm,nosami/XSTerm | XSTerm/Properties/AddinInfo.cs | XSTerm/Properties/AddinInfo.cs | using System;
using Mono.Addins;
using Mono.Addins.Description;
[assembly: Addin(
"XSTerm",
Namespace = "XSTerm",
Version = "1.0.2"
)]
[assembly: AddinName("XSTerm")]
[assembly: AddinCategory("IDE extensions")]
[assembly: AddinDescription("XSTerm")]
[assembly: AddinAuthor("jason")]
| using System;
using Mono.Addins;
using Mono.Addins.Description;
[assembly: Addin(
"XSTerm",
Namespace = "XSTerm",
Version = "1.0.1"
)]
[assembly: AddinName("XSTerm")]
[assembly: AddinCategory("IDE extensions")]
[assembly: AddinDescription("XSTerm")]
[assembly: AddinAuthor("jason")]
| mit | C# |
1a024787a94e307713a3cfc8b8656b62871779c7 | Test of CD | mswietlicki/Oopm,mswietlicki/Oopm | Oopm.Web/Views/Home/Index.cshtml | Oopm.Web/Views/Home/Index.cshtml | @{
ViewBag.Title = "Home Page";
}
<div class="jumbotron">
<h1>ASP.NET</h1>
<p class="lead">ASP.NET is a free web framework for building great Web sites and Web applications using HTML, CSS and JavaScript.</p>
<p><a href="http://asp.net" class="btn btn-primary btn-lg">Learn more »</a></p>
</div>
... | @{
ViewBag.Title = "Home Page";
}
<div class="jumbotron">
<h1>ASP.NET</h1>
<p class="lead">ASP.NET is a free web framework for building great Web sites and Web applications using HTML, CSS and JavaScript.</p>
<p><a href="http://asp.net" class="btn btn-primary btn-lg">Learn more »</a></p>
</div>
... | mit | C# |
d4da5ceaa1695caa25534835785e0b324138806a | add note | StefanoFiumara/Harry-Potter-Unity | Assets/Scripts/HarryPotterUnity/Enums/Enums.cs | Assets/Scripts/HarryPotterUnity/Enums/Enums.cs | using System;
namespace HarryPotterUnity.Enums
{
public enum State
{
InDeck, InHand, InPlay, Discarded
}
public enum Type
{
Lesson, Creature, Spell, Item, Location, Match, Adventure, Character
}
//TODO: Add [Flags] attribute and proper values
public enum Tag
{
... | using System;
namespace HarryPotterUnity.Enums
{
public enum State
{
InDeck, InHand, InPlay, Discarded
}
public enum Type
{
Lesson, Creature, Spell, Item, Location, Match, Adventure, Character
}
public enum Tag
{
Unique, Healing, Wand, Cauldron, Broom
}
... | mit | C# |
ab7ed721667f1126bcf4e61c894836b4ca997b37 | Update AzureClient.cs | jonathanpeppers/Xamarin.InAppPurchasing,jonathanpeppers/Xamarin.InAppPurchasing | Xamarin.InAppPurchasing/Models/AzureClient.cs | Xamarin.InAppPurchasing/Models/AzureClient.cs | using System;
using System.Threading.Tasks;
using System.Net.Http;
namespace Xamarin.InAppPurchasing
{
public class AzureClient
{
private const string BaseUrl = "https://YOUR_DOMAIN.azurewebsites.net/api/";
private readonly HttpClient _client = new HttpClient();
public async Task Veri... | using System;
using System.Threading.Tasks;
using System.Net.Http;
namespace Xamarin.InAppPurchasing
{
public class AzureClient
{
private const string BaseUrl = "https://xamarin-iap.azurewebsites.net/api/";
private readonly HttpClient _client = new HttpClient();
public async Task Veri... | mit | C# |
bb9be865ef5eb3059bd96aa8caf50e0a51a54b75 | Replace tournament routes with generic {year}/{discipline}/{slug} | croquet-australia/website-application,croquet-australia/website-application,croquet-australia/croquet-australia-website,croquet-australia/website-application,croquet-australia/croquet-australia.com.au,croquet-australia/website-application,croquet-australia/croquet-australia.com.au,croquet-australia/croquet-australia.co... | source/CroquetAustralia.Website/app/tournaments/TournamentsController.cs | source/CroquetAustralia.Website/app/tournaments/TournamentsController.cs | using System;
using System.Threading.Tasks;
using System.Web.Mvc;
using CroquetAustralia.Website.App.Infrastructure;
namespace CroquetAustralia.Website.App.tournaments
{
[RoutePrefix("tournaments")]
public class TournamentsController : ApplicationController
{
private readonly WebApi _webApi;
... | using System;
using System.Threading.Tasks;
using System.Web.Mvc;
using CroquetAustralia.Website.App.Infrastructure;
namespace CroquetAustralia.Website.App.tournaments
{
[RoutePrefix("tournaments")]
public class TournamentsController : ApplicationController
{
private readonly WebApi _webApi;
... | mit | C# |
8b7e2d31c1d0b80dc80cca140b9a6fb98cd60de9 | Update IDragInfoBuilder.cs | punker76/gong-wpf-dragdrop | src/GongSolutions.WPF.DragDrop/IDragInfoBuilder.cs | src/GongSolutions.WPF.DragDrop/IDragInfoBuilder.cs | using System.Windows.Input;
namespace GongSolutions.Wpf.DragDrop
{
/// <summary>
/// Interface implemented by Drag Info Builders.
/// It enables custom construction of DragInfo objects to support 3rd party controls like DevExpress, Telerik, etc.
/// </summary>
public interface IDragInfoBuilder
... | using System.Windows.Input;
namespace GongSolutions.Wpf.DragDrop
{
/// <summary>
/// Interface implemented by Drag Info Builders.
/// It enables custom construction of DragInfo objects from 3rd party controls like DevExpress, Telerik, etc.
/// </summary>
public interface IDragInfoBuilder
{
... | bsd-3-clause | C# |
69278192fc85f46fed56f3b1669ad18fc9e037cb | Make code more compact | nikeee/HolzShots | src/HolzShots.Windows/Forms/Controls/PluginItem.cs | src/HolzShots.Windows/Forms/Controls/PluginItem.cs | using System.ComponentModel;
using System.Windows.Forms;
using HolzShots.Composition;
using Semver;
using System.Diagnostics;
namespace HolzShots.Windows.Forms.Controls
{
public partial class PluginItem : UserControl
{
private IPluginMetadata _model = new DummyMetadata();
public PluginItem() =... | using System.ComponentModel;
using System.Windows.Forms;
using HolzShots.Composition;
using Semver;
using System.Diagnostics;
namespace HolzShots.Windows.Forms.Controls
{
public partial class PluginItem : UserControl
{
private IPluginMetadata _model = new DummyMetadata();
public PluginItem()
... | agpl-3.0 | C# |
204a720a156f466a5c2f7daf78106e86b132d016 | Fix minor typo | Azure/azure-webjobs-sdk,Azure/azure-webjobs-sdk | src/Microsoft.Azure.WebJobs.Extensions.Storage/StorageAccountProvider.cs | src/Microsoft.Azure.WebJobs.Extensions.Storage/StorageAccountProvider.cs | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
using System;
using Microsoft.Azure.WebJobs.Host;
using Microsoft.Extensions.Configuration;
namespace Microsoft.Azure.WebJobs
{
/// <summary>
/// Abstraction ... | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
using System;
using Microsoft.Azure.WebJobs.Host;
using Microsoft.Extensions.Configuration;
namespace Microsoft.Azure.WebJobs
{
/// <summary>
/// Abstraction ... | mit | C# |
5c712fff821de6f25650bdea628264b9f1121736 | check to see if chatClient exists in the lobby and show login window if it doesn't | Necromunger/unitystation,fomalsd/unitystation,krille90/unitystation,Necromunger/unitystation,MrLeebo/unitystation,MrLeebo/unitystation,Necromunger/unitystation,fomalsd/unitystation,fomalsd/unitystation,Necromunger/unitystation,Lancemaker/unitystation,MrLeebo/unitystation,MrLeebo/unitystation,fomalsd/unitystation,fomals... | Assets/scripts/UI/ControlDisplays.cs | Assets/scripts/UI/ControlDisplays.cs | using UnityEngine;
using System.Collections;
namespace UI
{
public class ControlDisplays : MonoBehaviour {
public UIManager parentScript;
public GameObject logInWindow;
public GameObject backGround;
public GameObject[] UIObjs;
//Temp buttons
public GameObject tempSceneButton;
public GameObject tempMen... | using UnityEngine;
using System.Collections;
namespace UI
{
public class ControlDisplays : MonoBehaviour {
public UIManager parentScript;
public GameObject logInWindow;
public GameObject backGround;
public GameObject[] UIObjs;
//Temp buttons
public GameObject tempSceneButton;
public GameObject tempMen... | agpl-3.0 | C# |
72fb426c98f30415ac44c24e6c535b0c0960f5de | Fix initializing the auth view' | mpOzelot/Unity,mpOzelot/Unity,github-for-unity/Unity,github-for-unity/Unity,github-for-unity/Unity | src/UnityExtension/Assets/Editor/GitHub.Unity/UI/AuthenticationWindow.cs | src/UnityExtension/Assets/Editor/GitHub.Unity/UI/AuthenticationWindow.cs | using System;
using UnityEditor;
using UnityEngine;
namespace GitHub.Unity
{
[Serializable]
class AuthenticationWindow : BaseWindow
{
private const string Title = "Sign in";
[SerializeField] private AuthenticationView authView;
[MenuItem("GitHub/Authenticate")]
public sta... | using System;
using UnityEditor;
using UnityEngine;
namespace GitHub.Unity
{
[Serializable]
class AuthenticationWindow : BaseWindow
{
private const string Title = "Sign in";
[SerializeField] private AuthenticationView authView;
[MenuItem("GitHub/Authenticate")]
public sta... | mit | C# |
7daff28e6884cc6d5f1e7146d1b0c9f1c18734fe | Switch back to tabbed winforms example being the default (maybe one day create a method to switch between the two) | joshvera/CefSharp,jamespearce2006/CefSharp,yoder/CefSharp,battewr/CefSharp,rlmcneary2/CefSharp,wangzheng888520/CefSharp,VioletLife/CefSharp,Livit/CefSharp,illfang/CefSharp,joshvera/CefSharp,NumbersInternational/CefSharp,Haraguroicha/CefSharp,illfang/CefSharp,VioletLife/CefSharp,rover886/CefSharp,twxstar/CefSharp,gregma... | CefSharp.WinForms.Example/Program.cs | CefSharp.WinForms.Example/Program.cs | // Copyright © 2010-2014 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
using System;
using System.Windows.Forms;
using CefSharp.Example;
using CefSharp.WinForms.Example.Minimal;
namespace CefSharp.WinForms.Example
{
... | // Copyright © 2010-2014 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
using System;
using System.Windows.Forms;
using CefSharp.Example;
using CefSharp.WinForms.Example.Minimal;
namespace CefSharp.WinForms.Example
{
... | bsd-3-clause | C# |
a03758e06aa3d7da643dc5b77c1d2451557f94d3 | increase log buffer | kreeben/resin,kreeben/resin | src/Sir/Logging.cs | src/Sir/Logging.cs | using System;
using System.IO;
namespace Sir
{
public static class Logging
{
private static TextWriter Writer;
private static object Sync = new object();
public static bool SendToConsole { get; set; }
private static void Write(object message)
{
var writer ... | using System;
using System.IO;
namespace Sir
{
public static class Logging
{
private static TextWriter Writer;
private static object Sync = new object();
public static bool SendToConsole { get; set; }
private static void Write(object message)
{
var writer ... | mit | C# |
ee9dba486701627a429cacc06dbb92c50efbedcf | add constructor to Parser | ilovepi/Compiler,ilovepi/Compiler | compiler/frontend/Parser.cs | compiler/frontend/Parser.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using compiler.frontend;
namespace compiler.frontend
{
class Parser
{
public Token t;
public Lexer s;
string filename;
public Parser(string p_fileName)
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using compiler.frontend;
namespace compiler.frontend
{
class Parser
{
public Token t;
public Lexer s;
string filename;
int lineno;
int pos;
publ... | mit | C# |
607430d8ff26981430a7fcaf08f1d2aff87ee14b | disable test | poxet/tharga-console | Tharga.Toolkit.Console.Tests/TextInputTests.cs | Tharga.Toolkit.Console.Tests/TextInputTests.cs | using System;
using System.Collections.Generic;
using System.Threading;
using Moq;
using NUnit.Framework;
using Tharga.Toolkit.Console.Commands.Base;
using Tharga.Toolkit.Console.Commands.Helpers;
using Tharga.Toolkit.Console.Interfaces;
namespace Tharga.Toolkit.Console.Tests
{
[TestFixture]
public class TextI... | using System;
using System.Collections.Generic;
using System.Threading;
using Moq;
using NUnit.Framework;
using Tharga.Toolkit.Console.Commands.Base;
using Tharga.Toolkit.Console.Commands.Helpers;
using Tharga.Toolkit.Console.Interfaces;
namespace Tharga.Toolkit.Console.Tests
{
[TestFixture]
public class TextI... | mit | C# |
2f303eb64812b61ca570b93ebc7799b07636e3ae | update version | 0xFireball/FireCryptEx-Mono | FireCrypt/FireCryptEx/Properties/AssemblyInfo.cs | FireCrypt/FireCryptEx/Properties/AssemblyInfo.cs | #region Using directives
using System;
using System.Reflection;
using System.Runtime.InteropServices;
#endregion
// 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: Assembl... | #region Using directives
using System;
using System.Reflection;
using System.Runtime.InteropServices;
#endregion
// 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: Assembl... | agpl-3.0 | C# |
d63ef44c7a7e43f98260664dcdfa109a98737e53 | rename InlineComparer with InlineEqualityComparer | TakeAsh/cs-TakeAshUtility | TakeAshUtility/InlineComparer.cs | TakeAshUtility/InlineComparer.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace TakeAshUtility {
/// <summary>
/// Create comparer from lambda
/// </summary>
/// <typeparam name="T">Type of the object to compare</typeparam>
/// <remarks>
/// [c# - Using IEqualityCo... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace TakeAshUtility {
/// <summary>
/// Create comparer from lambda
/// </summary>
/// <typeparam name="T">Type of the object to compare</typeparam>
/// <remarks>
/// [c# - Using IEqualityCo... | mit | C# |
5336123b31b7803e9a5feaf359f3fefec2dafafc | Test parallezation will work only in not debug mode | linkelf/GridDomain,andreyleskov/GridDomain | GridDomain.Tests.Unit/Properties/AssemblyInfo.cs | GridDomain.Tests.Unit/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
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: Ass... | using System.Reflection;
using System.Runtime.CompilerServices;
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: Ass... | apache-2.0 | C# |
069d927e0e2cd0a9bae94b1201641bd1d9d2a6bc | Update Token.cs | gavronek/L2PAccess-Win | L2PAccess/Authentication/Model/Response/Token.cs | L2PAccess/Authentication/Model/Response/Token.cs | using System;
namespace L2PAccess.Authentication.Model.Response
{
public class Token
{
public string status { get; set; }
public string access_token { get; set; }
public string token_type { get; set; }
public int expires_in
{
get
{
... | using System;
namespace L2PAccess.Authentication.Model.Response
{
public class Token
{
public string status { get; set; }
public string access_token { get; set; }
public string token_type { get; set; }
public int expires_in
{
get
{
... | apache-2.0 | C# |
12d0f2851691570a51187bfb2c6ae652b5c943bc | Fix ExceptionExtensions | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet | WalletWasabi/Extensions/ExceptionExtensions.cs | WalletWasabi/Extensions/ExceptionExtensions.cs | using System.Collections.Generic;
using System.Net.Http;
using WalletWasabi.Helpers;
namespace System
{
public static class ExceptionExtensions
{
public static string ToTypeMessageString(this Exception ex)
{
var trimmed = Guard.Correct(ex.Message);
if (trimmed == "")
{
return ex.GetType().Name;
}... | using System.Collections.Generic;
using System.Net.Http;
namespace System
{
public static class ExceptionExtensions
{
public static string ToTypeMessageString(this Exception ex)
{
return $"{ex.GetType().Name}: {ex.Message}";
}
public static string ToUserFriendlyString(this HttpRequestException ex)
{
... | mit | C# |
10a1948720b15e8de61149ff7abfcad89d5eca8d | remove using directive | peppy/osu,smoogipoo/osu,ppy/osu,UselessToucan/osu,ppy/osu,smoogipooo/osu,peppy/osu,peppy/osu-new,UselessToucan/osu,NeoAdonis/osu,NeoAdonis/osu,peppy/osu,EVAST9919/osu,ppy/osu,EVAST9919/osu,smoogipoo/osu,smoogipoo/osu,UselessToucan/osu,NeoAdonis/osu | osu.Game.Rulesets.Osu/Mods/OsuModSpunOut.cs | osu.Game.Rulesets.Osu/Mods/OsuModSpunOut.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Collections.Generic;
using osu.Framework.Graphics.Sprites;
using osu.Game.Graphics;
using osu.Game.Rulesets.Mods;
using osu.Game.Rulesets.Obje... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Collections.Generic;
using osu.Framework.Graphics.Sprites;
using osu.Game.Graphics;
using osu.Game.Rulesets.Mods;
using osu.Game.Rulesets.Obje... | mit | C# |
c4d95d3b6c08b7d3d2950d9c6405c980df0330f9 | Remove duplicated `[External]` for `Thread` class | bridgedotnet/Bridge,bridgedotnet/Bridge,AndreyZM/Bridge,AndreyZM/Bridge,AndreyZM/Bridge,bridgedotnet/Bridge,bridgedotnet/Bridge,AndreyZM/Bridge | Bridge/System/Threading/Thread.cs | Bridge/System/Threading/Thread.cs | using Bridge;
using System.ComponentModel;
namespace System.Threading
{
[External]
[Namespace("Bridge.Threading")]
[EditorBrowsable(EditorBrowsableState.Never)]
public sealed class Thread
{
//public extern int ManagedThreadId
//{
// get;
//}
//public st... | using Bridge;
using System.ComponentModel;
namespace System.Threading
{
[External]
[Namespace("Bridge.Threading")]
[EditorBrowsable(EditorBrowsableState.Never)]
[External]
public sealed class Thread
{
//public extern int ManagedThreadId
//{
// get;
//}
... | apache-2.0 | C# |
afbbbaf445f6b33ea72f59461598ce85843c74e9 | Update UnitFactory.createArmy() | Tyzeppelin/petitmondetemp,Tyzeppelin/petitmondetemp,Tyzeppelin/petitmondetemp | dix-nez-lande/dix-nez-lande/Implem/UnitFactory.cs | dix-nez-lande/dix-nez-lande/Implem/UnitFactory.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace dix_nez_lande
{
public class UnitFactory
{
#region Singleton
private static UnitFactory _instance = null;
private UnitFactory()
{
}
public static UnitFactory getUn... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace dix_nez_lande
{
public class UnitFactory
{
#region Singleton
private static UnitFactory _instance = null;
private UnitFactory()
{
}
public static UnitFactory getUn... | mit | C# |
34566d3962ccb11156c7ba777f2da5acbc2e76ea | Remove empty OnGet function. | Learnosity/learnosity-sdk-asp.net,Learnosity/learnosity-sdk-asp.net,Learnosity/learnosity-sdk-asp.net | LearnosityDemo/Pages/Index.cshtml.cs | LearnosityDemo/Pages/Index.cshtml.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.Extensions.Logging;
namespace LearnosityDemo.Pages
{
public class IndexModel : PageModel
{
private readonly ILogge... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.Extensions.Logging;
namespace LearnosityDemo.Pages
{
public class IndexModel : PageModel
{
private readonly ILogge... | apache-2.0 | C# |
396a566a0e577b0f2b1a2ba71ee2f1aa687b6c7b | Add some randomness to click samples | ppy/osu,ppy/osu,peppy/osu,NeoAdonis/osu,peppy/osu,ppy/osu,peppy/osu,NeoAdonis/osu,NeoAdonis/osu | osu.Game/Graphics/UserInterface/HoverClickSounds.cs | osu.Game/Graphics/UserInterface/HoverClickSounds.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.Audio;
using osu.Framework.Audio.Sample;
using osu.Framework.Extensions;
using osu.Framework.Input.... | // 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.Audio;
using osu.Framework.Audio.Sample;
using osu.Framework.Extensions;
using osu.Framework.Input.... | mit | C# |
df9535d195700205380bc624f2a9999cfa9e228c | Update RPM calculation for readability | ppy/osu,NeoAdonis/osu,peppy/osu,peppy/osu,peppy/osu,NeoAdonis/osu,NeoAdonis/osu,ppy/osu,ppy/osu | osu.Game.Rulesets.Osu/Mods/OsuModSpunOut.cs | osu.Game.Rulesets.Osu/Mods/OsuModSpunOut.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.Graphics;
using osu.Framework.Graphics.Sprites;
using osu.Framework.Utils;
using osu.Game.Graphics;
using osu.Game.Rulesets.Mods;
using... | // 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.Graphics;
using osu.Framework.Graphics.Sprites;
using osu.Framework.Utils;
using osu.Game.Graphics;
using osu.Game.Rulesets.Mods;
using... | mit | C# |
89d8a85db7ac78ebde48f2f56c4df7d38336aed9 | Update AssemblyInfo.cs (#281) | sergeyzwezdin/Hangfire.Mongo,sergeyzwezdin/Hangfire.Mongo,sergeyzwezdin/Hangfire.Mongo | src/Hangfire.Mongo/Properties/AssemblyInfo.cs | src/Hangfire.Mongo/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("Hang... | 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("Hang... | mit | C# |
614246e0e932be0f5bfed902f35a5be33b678233 | Update contact page a bit. | ForNeVeR/fornever.me,ForNeVeR/fornever.me,ForNeVeR/fornever.me | ForneverMind/views/Contact.cshtml | ForneverMind/views/Contact.cshtml | @using RazorEngine.Templating
@inherits TemplateBase
@{
Layout = "_Layout.cshtml";
ViewBag.Title = "Контакты";
}
<p>
<a class="so-badge" href="http://stackoverflow.com/users/2684760/fornever">
<img src="http://stackoverflow.com/users/flair/2684760.png"
width="208"
height=... | @using RazorEngine.Templating
@inherits TemplateBase
@{
Layout = "_Layout.cshtml";
ViewBag.Title = "Контакты";
}
<p>
<a class="so-badge" href="http://stackoverflow.com/users/2684760/fornever">
<img src="http://stackoverflow.com/users/flair/2684760.png"
width="208"
height=... | mit | C# |
5ede2a2316fd57a52051f340c184380af9b84eba | fix #458 isconditionless on filtered | robrich/elasticsearch-net,NickCraver/NEST,jonyadamit/elasticsearch-net,SeanKilleen/elasticsearch-net,geofeedia/elasticsearch-net,amyzheng424/elasticsearch-net,mac2000/elasticsearch-net,abibell/elasticsearch-net,RossLieberman/NEST,Grastveit/NEST,RossLieberman/NEST,jonyadamit/elasticsearch-net,elastic/elasticsearch-net,m... | src/Nest/DSL/Query/FilteredQueryDescriptor.cs | src/Nest/DSL/Query/FilteredQueryDescriptor.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Newtonsoft.Json;
namespace Nest
{
[JsonObject(MemberSerialization = MemberSerialization.OptIn)]
public class FilteredQueryDescriptor<T> : IQuery where T : class
{
[JsonProperty(PropertyName = "query")]
internal BaseQuer... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Newtonsoft.Json;
namespace Nest
{
[JsonObject(MemberSerialization = MemberSerialization.OptIn)]
public class FilteredQueryDescriptor<T> : IQuery where T : class
{
[JsonProperty(PropertyName = "query")]
internal BaseQuer... | apache-2.0 | C# |
fbb3728eef74ddef12a9fbba5d2703c573e1ca81 | Update version. | Squidex/squidex,Squidex/squidex,Squidex/squidex,Squidex/squidex,Squidex/squidex | backend/src/Squidex/Areas/Api/Controllers/News/Service/FeaturesService.cs | backend/src/Squidex/Areas/Api/Controllers/News/Service/FeaturesService.cs | // ==========================================================================
// Squidex Headless CMS
// ==========================================================================
// Copyright (c) Squidex UG (haftungsbeschraenkt)
// All rights reserved. Licensed under the MIT license.
// ===========================... | // ==========================================================================
// Squidex Headless CMS
// ==========================================================================
// Copyright (c) Squidex UG (haftungsbeschraenkt)
// All rights reserved. Licensed under the MIT license.
// ===========================... | mit | C# |
87c551840f2b2ee29d2c96a57ce5185324c0bda0 | Remove unnecessary code | angellaa/RetailStoreSpike | RetailStore/RetailStore/Inventory.cs | RetailStore/RetailStore/Inventory.cs | using System.Collections.Generic;
namespace RetailStore
{
public class Inventory
{
public Inventory(Dictionary<string, Product> products)
{
Products = products;
}
private Dictionary<string, Product> Products { get; }
public Product FindProduct(string barco... | using System.Collections.Generic;
namespace RetailStore
{
public class Inventory
{
public Inventory(Dictionary<string, Product> products)
{
Products = products;
}
private Dictionary<string, Product> Products { get; }
public Product FindProduct(string barco... | mit | C# |
06d24206a06fdcc06d32d91174756a96afc934d5 | Increment build number | emoacht/SnowyImageCopy | Source/SnowyImageCopy/Properties/AssemblyInfo.cs | Source/SnowyImageCopy/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Windows;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// ass... | using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Windows;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// ass... | mit | C# |
a886a15dbd1836a1c1dc4606ff16c983a1b0cd7b | Remove unused statements. | cube-soft/Cube.Core,cube-soft/Cube.Core | Tests/Sources/Details/GlobalSetup.cs | Tests/Sources/Details/GlobalSetup.cs | /* ------------------------------------------------------------------------- */
//
// Copyright (c) 2010 CubeSoft, Inc.
//
// 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.... | /* ------------------------------------------------------------------------- */
//
// Copyright (c) 2010 CubeSoft, Inc.
//
// 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-2.0 | C# |
f8b120aa73f9d6068680508a0e2fb770b7cee1fe | update version to 1.12.1 | mike-mo/MoreTerra | WorldView/Properties/AssemblyInfo.cs | WorldView/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTi... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTi... | mit | C# |
e44abc390bc8a1f0fcb7d3607b5f80dfb6f6c403 | Add more invalid script tests | TheBerkin/Rant | Rant.Tests/Expressions/Invalid.cs | Rant.Tests/Expressions/Invalid.cs | using NUnit.Framework;
namespace Rant.Tests.Expressions
{
public class Invalid
{
private readonly RantEngine rant = new RantEngine();
[Test]
[ExpectedException(typeof(RantCompilerException))]
public void BlockAsVariable() => rant.Do("[@ x = { 2 } ]");
[Test]
[ExpectedExcepti... | using NUnit.Framework;
namespace Rant.Tests.Expressions
{
public class Invalid
{
private readonly RantEngine rant = new RantEngine();
[Test]
[ExpectedException(typeof(RantCompilerException))]
public void BlockAsVariable()
{
rant.Do("[@ x = { 2 } ]");
}
... | mit | C# |
32ccd19ff3e9acfdee8c349cd18c474c39ce2338 | Set the max number of expected elements. | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet | WalletWasabi.Fluent/CrashReport/CrashReporter.cs | WalletWasabi.Fluent/CrashReport/CrashReporter.cs | using System;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using WalletWasabi.Logging;
using WalletWasabi.Microservices;
using WalletWasabi.Models;
namespace WalletWasabi.Fluent.CrashReport
{
public static class CrashReporter
{
public static void Invoke(Exception exceptionToReport)
{
try
... | using System;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using WalletWasabi.Logging;
using WalletWasabi.Microservices;
using WalletWasabi.Models;
namespace WalletWasabi.Fluent.CrashReport
{
public static class CrashReporter
{
public static void Invoke(Exception exceptionToReport)
{
try
... | mit | C# |
264907a030a3a69da886027e2989dee3a330d987 | remove unused field | cvent/Metrics.NET,alhardy/Metrics.NET,Liwoj/Metrics.NET,etishor/Metrics.NET,huoxudong125/Metrics.NET,cvent/Metrics.NET,DeonHeyns/Metrics.NET,MetaG8/Metrics.NET,ntent-ad/Metrics.NET,Recognos/Metrics.NET,alhardy/Metrics.NET,DeonHeyns/Metrics.NET,Liwoj/Metrics.NET,etishor/Metrics.NET,MetaG8/Metrics.NET,mnadel/Metrics.NET,... | Src/Metrics/Json/JsonBuilderV2.cs | Src/Metrics/Json/JsonBuilderV2.cs | using System.Globalization;
using System.Linq;
using Metrics.MetricData;
using Metrics.Utils;
namespace Metrics.Json
{
public sealed class JsonBuilderV2
{
public const int Version = 2;
public const string MetricsMimeType = "application/vnd.metrics.net.v2.metrics+json";
#if !DEBUG
priv... | using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using Metrics.MetricData;
using Metrics.Utils;
namespace Metrics.Json
{
public sealed class JsonBuilderV2
{
public const int Version = 2;
public const string MetricsMimeType = "application/vnd.metrics.net.v2.metri... | apache-2.0 | C# |
efff1ebc1d20283d482c99c7b1f2649ddc15a6e6 | Update Interop.PlatformDetection.cs with FreeBSD | seanshpark/corefx,jlin177/corefx,benpye/corefx,shimingsg/corefx,heXelium/corefx,Priya91/corefx-1,lggomez/corefx,nchikanov/corefx,jhendrixMSFT/corefx,shmao/corefx,popolan1986/corefx,wtgodbe/corefx,rajansingh10/corefx,josguil/corefx,chenxizhang/corefx,anjumrizwi/corefx,manu-silicon/corefx,uhaciogullari/corefx,richlander/... | src/Common/src/Interop/Interop.PlatformDetection.cs | src/Common/src/Interop/Interop.PlatformDetection.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.Runtime.InteropServices;
// TODO: This implementation is temporary until System.Runtime.InteropServices.RuntimeInformation
// is avail... | // 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.Runtime.InteropServices;
// TODO: This implementation is temporary until System.Runtime.InteropServices.RuntimeInformation
// is avail... | mit | C# |
cc0a742d0ae4483771f61d6798b9e79167e5abf4 | add test around internally-used class | fluffynuts/PeanutButter,fluffynuts/PeanutButter,fluffynuts/PeanutButter | source/Utils/PeanutButter.DuckTyping.Tests/Extensions/TestDictionaryWrappingNameValueCollection.cs | source/Utils/PeanutButter.DuckTyping.Tests/Extensions/TestDictionaryWrappingNameValueCollection.cs | using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using NUnit.Framework;
using PeanutButter.DuckTyping.Extensions;
using PeanutButter.Utils;
using static PeanutButter.RandomGenerators.RandomValueGen;
namespace PeanutButter.DuckTyping.Tests.Extensions
{
... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using NUnit.Framework;
using PeanutButter.DuckTyping.Extensions;
using PeanutButter.Utils;
using static PeanutButter.RandomGenerators.RandomValueGen;
namespace PeanutButter.DuckTyping.Tests.Extensions
{
... | bsd-3-clause | C# |
9a1b943df0bf6b67bf359e461a3bf1889d829873 | Fix ConcurrentDictionary usages in PubSubSimpleDispatchStrategy | Whiteknight/Acquaintance,Whiteknight/Acquaintance | Acquaintance/PubSub/PubSubSimpleDispatchStrategy.cs | Acquaintance/PubSub/PubSubSimpleDispatchStrategy.cs | using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
namespace Acquaintance.PubSub
{
public class PubSubSimpleDispatchStrategy : IPubSubChannelDispatchStrategy
{
private readonly ConcurrentDictionary<string, IPubSubChannel> _pubSubChannels;
p... | using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
namespace Acquaintance.PubSub
{
public class PubSubSimpleDispatchStrategy : IPubSubChannelDispatchStrategy
{
private readonly ConcurrentDictionary<string, IPubSubChannel> _pubSubChannels;
p... | apache-2.0 | C# |
a9024911a2c7d328b8bfa553e19a0cc628a4435a | Write to debug in debug env | LibertyLocked/RestRPC,LibertyLocked/RestRPC,LibertyLocked/RestRPC,LibertyLocked/RestRPC | WebScriptHook.Framework/Logger.cs | WebScriptHook.Framework/Logger.cs | using System;
using System.IO;
using System.Diagnostics;
namespace WebScriptHook.Framework
{
public class Logger
{
public static string FileName
{
get;
internal set;
} = "WebScriptHook.log";
public static LogType LogLevel
{
get;
... | using System;
using System.IO;
namespace WebScriptHook.Framework
{
public class Logger
{
public static string FileName
{
get;
internal set;
} = "WebScriptHook.log";
public static LogType LogLevel
{
get;
internal set;
... | mit | C# |
00bb58a9b2c17c1502cee26d1385429155a495a6 | Add InputNullWillBeEmpty | sdcb/sdmap | sdmap/test/sdmap.test/MacroImplTest/ValTest.cs | sdmap/test/sdmap.test/MacroImplTest/ValTest.cs | using sdmap.Macros.Implements;
using sdmap.Runtime;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Xunit;
namespace sdmap.test.MacroImplTest
{
public class ValTest
{
[Fact]
public void HelloWorld()
{
var val = "Hello... | using sdmap.Macros.Implements;
using sdmap.Runtime;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Xunit;
namespace sdmap.test.MacroImplTest
{
public class ValTest
{
[Fact]
public void HelloWorld()
{
var val = "Hello W... | mit | C# |
1642e1f7c8d6c7687c350fd08356a7e09beccdac | Drop player after teleporting | aornelas/Tiny-Planets,aornelas/Tiny-Planets | Assets/GameController.cs | Assets/GameController.cs | using UnityEngine;
using System.Collections;
public class GameController : MonoBehaviour {
public GameObject currentPlanet;
private PlanetController planetController;
private int collectedCount;
private bool portalOpened;
void Start()
{
ResetPlanet();
}
void Update()
{
if (collectedCount >= 3 && !port... | using UnityEngine;
using System.Collections;
public class GameController : MonoBehaviour {
public GameObject currentPlanet;
private PlanetController planetController;
private int collectedCount;
private bool portalOpened;
void Start()
{
ResetPlanet();
}
void Update()
{
if (collectedCount >= 3 && !port... | mit | C# |
1cfd3aea71e3c04c6bd4d012ea1343c0fa49f0dd | Fix collision issue in Ladder. | holycattle/towerofgod | Assets/Scripts/Ladder.cs | Assets/Scripts/Ladder.cs | using UnityEngine;
using System.Collections;
public class Ladder : MonoBehaviour {
private float climbingSpeed = 1.75f;
private bool withinLadder = false;
private GameObject player;
// Use this for initialization
void Start () {
}
void FixedUpdate() {
if(withinLadder) {
float direction = Input.GetAxis... | using UnityEngine;
using System.Collections;
public class Ladder : MonoBehaviour {
private float climbingSpeed = 1.75f;
private bool withinLadder = false;
private GameObject player;
// Use this for initialization
void Start () {
}
void FixedUpdate() {
if(withinLadder) {
float direction = Input.GetAxis... | mit | C# |
6de08db65316679f99830c6448540aeb5b89ea06 | Add removed skin component back | peppy/osu-new,smoogipoo/osu,smoogipoo/osu,UselessToucan/osu,ppy/osu,ppy/osu,UselessToucan/osu,NeoAdonis/osu,ppy/osu,peppy/osu,NeoAdonis/osu,UselessToucan/osu,smoogipoo/osu,smoogipooo/osu,NeoAdonis/osu,peppy/osu,peppy/osu | osu.Game.Rulesets.Taiko/TaikoSkinComponents.cs | osu.Game.Rulesets.Taiko/TaikoSkinComponents.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.
namespace osu.Game.Rulesets.Taiko
{
public enum TaikoSkinComponents
{
InputDrum,
CentreHit,
RimHit,
DrumRollBody,
DrumRoll... | // 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.
namespace osu.Game.Rulesets.Taiko
{
public enum TaikoSkinComponents
{
InputDrum,
RimHit,
DrumRollBody,
DrumRollTick,
Swell... | mit | C# |
59f192ce9b5bd45196bb63c52ac0a558dd2e0b45 | add documentation | Ackara/Daterpillar | Code/Daterpillar.Core/Annotation/ColumnAttribute.cs | Code/Daterpillar.Core/Annotation/ColumnAttribute.cs | using System;
namespace Gigobyte.Daterpillar.Annotation
{
/// <summary>
/// Specifies the property is mapped to a table column.
/// </summary>
/// <seealso cref="System.Attribute" />
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
public sealed cla... | using System;
namespace Gigobyte.Daterpillar.Annotation
{
/// <summary>
///
/// </summary>
/// <seealso cref="System.Attribute" />
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
public sealed class ColumnAttribute : Attribute
{
public ColumnAt... | mit | C# |
6929b8c21a62433bce6cc9b284b2f0a644ec2d92 | Update AssemblyInfo version ranges to allow 0.6.0-* | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore | tooling/Microsoft.VisualStudio.BlazorExtension/Properties/AssemblyInfo.cs | tooling/Microsoft.VisualStudio.BlazorExtension/Properties/AssemblyInfo.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 Microsoft.VisualStudio.Shell;
// Add binding redirects for each assembly we ship in VS. This is required so that these assemblies show
// up in t... | // 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 Microsoft.VisualStudio.Shell;
// Add binding redirects for each assembly we ship in VS. This is required so that these assemblies show
// up in t... | apache-2.0 | C# |
69a4ff8e83144ac452d6cbe6d4b6961031ca2c12 | Fix MathExtensions.AsDouble() affecting HtmlViewer. | wasteam/waslibs,wasteam/waslibs,pellea/waslibs,wasteam/waslibs,janabimustafa/waslibs,pellea/waslibs,pellea/waslibs,janabimustafa/waslibs,janabimustafa/waslibs | src/AppStudio.Uwp/Extensions/MathExtensions.cs | src/AppStudio.Uwp/Extensions/MathExtensions.cs | using System;
using System.Globalization;
namespace AppStudio.Uwp
{
public static class MathExtensions
{
public static int Mod(this int value, int module)
{
int res = value % module;
return res >= 0 ? res : (res + module) % module;
}
public static int I... | using System;
namespace AppStudio.Uwp
{
public static class MathExtensions
{
public static int Mod(this int value, int module)
{
int res = value % module;
return res >= 0 ? res : (res + module) % module;
}
public static int IncMod(this int value, int mo... | mit | C# |
5e7867c097a02d554d056b89764a12af362cba66 | add ApplicationName to Role | ifilipenko/Building-Blocks,ifilipenko/Building-Blocks,ifilipenko/Building-Blocks | src/BuildingBlocks.Membership/Entities/Role.cs | src/BuildingBlocks.Membership/Entities/Role.cs | using System;
using System.Collections.Generic;
namespace BuildingBlocks.Membership.Entities
{
public class Role
{
public Role()
{
Users = new List<string>();
}
public Guid RoleId { get; set; }
public string ApplicationName { get; set; }
... | using System;
using System.Collections.Generic;
namespace BuildingBlocks.Membership.Entities
{
public class Role
{
private IList<string> _users;
public Role()
{
_users = new List<string>();
}
public virtual Guid RoleId { get; set; }
... | apache-2.0 | C# |
f5543101c90d7187872192905870409263a587ef | Rephrase ConventionDiscoverer in preparation for splitting Convention into separate Discovery and Lifecycle concerns. | fixie/fixie | src/Fixie/Execution/ConventionDiscoverer.cs | src/Fixie/Execution/ConventionDiscoverer.cs | namespace Fixie.Execution
{
using System;
using System.Linq;
using System.Reflection;
using Cli;
using Conventions;
class ConventionDiscoverer
{
readonly Assembly assembly;
readonly string[] conventionArguments;
public ConventionDiscoverer(Assembly assembly, string... | namespace Fixie.Execution
{
using System;
using System.Linq;
using System.Reflection;
using Cli;
using Conventions;
class ConventionDiscoverer
{
readonly Assembly assembly;
readonly string[] conventionArguments;
public ConventionDiscoverer(Assembly assembly, string... | mit | C# |
6bbcf83e1e3e6c32f0e41ada956796921f74cbc8 | Add action | muhammedikinci/FuzzyCore | FuzzyCore/ConcreteCommands/GetFolderList_Command.cs | FuzzyCore/ConcreteCommands/GetFolderList_Command.cs | using FuzzyCore.Data;
using FuzzyCore.Commands;
namespace FuzzyCore.Server
{
public class GetFolderList_Command : Command
{
public GetFolderList_Command(JsonCommand comm) : base(comm)
{
}
public override void Execute()
{
GetFolderList folderList = new GetFo... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FuzzyCore.Data;
using FuzzyCore.Commands;
namespace FuzzyCore.Server
{
public class GetFolderList_Command : Command
{
public GetFolderList_Command(JsonCommand comm) : base(comm)
... | mit | C# |
b9741cd1fce32479ae7ecb4b6563d8acd0cd13f8 | remove double ; | RadicalFx/radical | src/Radical/Extensions/EntityViewExtensions.cs | src/Radical/Extensions/EntityViewExtensions.cs | using Radical.ComponentModel;
using Radical.Validation;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
namespace Radical
{
public static class EntityViewExtensions
{
public static IEnumerable<T> AsEntityItems<T>(this IEntityView<T> view)
where T : class
... | using Radical.ComponentModel;
using Radical.Validation;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
namespace Radical
{
public static class EntityViewExtensions
{
public static IEnumerable<T> AsEntityItems<T>(this IEntityView<T> view)
where T : class
... | mit | C# |
e02ec11f03552a48d409fb3707d0d24f9067dc24 | Fix for unsubscribe freezing ui thread | JKorf/Binance.Net | Binance.Net/Objects/BinanceStreamConnection.cs | Binance.Net/Objects/BinanceStreamConnection.cs | using System.Threading.Tasks;
using CryptoExchange.Net.Interfaces;
namespace Binance.Net.Objects
{
internal class BinanceStream
{
internal bool TryReconnect { get; set; } = true;
public IWebsocket Socket { get; set; }
public BinanceStreamSubscription StreamResult { get; set; }
... | using System.Threading.Tasks;
using CryptoExchange.Net.Interfaces;
namespace Binance.Net.Objects
{
internal class BinanceStream
{
internal bool TryReconnect { get; set; } = true;
public IWebsocket Socket { get; set; }
public BinanceStreamSubscription StreamResult { get; set; }
... | mit | C# |
022d5b205fda8f99f7adccea838142abe9a7da32 | Update IAsyncStreamWriter.cs | jboeuf/grpc,donnadionne/grpc,grpc/grpc,grpc/grpc,ejona86/grpc,ejona86/grpc,jtattermusch/grpc,ejona86/grpc,firebase/grpc,ctiller/grpc,ejona86/grpc,firebase/grpc,grpc/grpc,jtattermusch/grpc,jboeuf/grpc,jtattermusch/grpc,firebase/grpc,ejona86/grpc,donnadionne/grpc,ejona86/grpc,jboeuf/grpc,nicolasnoble/grpc,vjpai/grpc,donn... | src/csharp/Grpc.Core.Api/IAsyncStreamWriter.cs | src/csharp/Grpc.Core.Api/IAsyncStreamWriter.cs | #region Copyright notice and license
// Copyright 2015 gRPC authors.
//
// 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 req... | #region Copyright notice and license
// Copyright 2015 gRPC authors.
//
// 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 req... | apache-2.0 | C# |
1cd9c1c3123dec7a6b1385cf1c20f6057881c0f3 | Revert "Set correct output type for RemoveRoleDefinition" | yadavbdev/azure-powershell,SarahRogers/azure-powershell,stankovski/azure-powershell,juvchan/azure-powershell,DeepakRajendranMsft/azure-powershell,haocs/azure-powershell,dulems/azure-powershell,chef-partners/azure-powershell,AzureAutomationTeam/azure-powershell,nickheppleston/azure-powershell,atpham256/azure-powershell,... | src/ResourceManager/Resources/Commands.Resources/RoleDefinitions/RemoveAzureRoleDefinitionCommand.cs | src/ResourceManager/Resources/Commands.Resources/RoleDefinitions/RemoveAzureRoleDefinitionCommand.cs | // ----------------------------------------------------------------------------------
//
// Copyright Microsoft 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 of the License at
// http://www.apa... | // ----------------------------------------------------------------------------------
//
// Copyright Microsoft 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 of the License at
// http://www.apa... | apache-2.0 | C# |
ca26901cdafc94e0dc0ed6c2b7a78f3c8cd21744 | Print "Other:" for single choice questions | bcemmett/SurveyMonkeyApi-v3 | SurveyMonkey/ProcessedAnswers/SingleChoiceAnswer.cs | SurveyMonkey/ProcessedAnswers/SingleChoiceAnswer.cs | using System;
using System.Text;
using SurveyMonkey.Helpers;
namespace SurveyMonkey.ProcessedAnswers
{
public class SingleChoiceAnswer : IProcessedResponse
{
public string Choice { get; set; }
public string OtherText { get; set; }
public string Printable
{
get
... | using System;
using System.Text;
using SurveyMonkey.Helpers;
namespace SurveyMonkey.ProcessedAnswers
{
public class SingleChoiceAnswer : IProcessedResponse
{
public string Choice { get; set; }
public string OtherText { get; set; }
public string Printable
{
get
... | mit | C# |
a42c79895d907351d3764f019f9e6ca475a41760 | Remove unnecessary private field | NeoAdonis/osu,ppy/osu,EVAST9919/osu,ppy/osu,johnneijzen/osu,peppy/osu,ZLima12/osu,UselessToucan/osu,ppy/osu,peppy/osu,EVAST9919/osu,smoogipooo/osu,2yangk23/osu,UselessToucan/osu,NeoAdonis/osu,johnneijzen/osu,smoogipoo/osu,peppy/osu-new,smoogipoo/osu,ZLima12/osu,NeoAdonis/osu,peppy/osu,smoogipoo/osu,2yangk23/osu,Useless... | osu.Game/Rulesets/Mods/ModBlockFail.cs | osu.Game/Rulesets/Mods/ModBlockFail.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Bindables;
using osu.Framework.Graphics;
using osu.Game.Configuration;
using osu.Game.Screens.Play;
namespace osu.Game.Rulesets.Mods
{
public abs... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Bindables;
using osu.Framework.Graphics;
using osu.Game.Configuration;
using osu.Game.Screens.Play;
using osu.Game.Screens.Play.HUD;
namespace osu.Ga... | mit | C# |
e4326c981428c3d28823d1f9f39f48e25e8531b9 | Fix typos in Log.cs (#599) | NicolasDorier/NBitcoin,MetacoSA/NBitcoin,MetacoSA/NBitcoin | NBitcoin/Logging/Logs.cs | NBitcoin/Logging/Logs.cs | using System;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Logging.Abstractions;
namespace NBitcoin.Logging
{
public class Logs
{
static Logs()
{
Configure(new FuncLoggerFactory(n => NullLogger.Instance));
}
public static void Configure(ILoggerFactory factory)
{
NodeServer = factor... | using System;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Logging.Abstractions;
namespace NBitcoin.Logging
{
public class Logs
{
static Logs()
{
Configure(new FuncLoggerFactory(n => NullLogger.Instance));
}
public static void Configure(ILoggerFactory factory)
{
NodeServer = factor... | mit | C# |
5721b239e068ea62dfc8f20a26bd1de65fc4aa9e | Add SourceCode metadata | riganti/dotvvm-samples-academy,riganti/dotvvm-samples-academy,riganti/dotvvm-samples-academy | src/DotvvmAcademy.Validation/ISourceCode.cs | src/DotvvmAcademy.Validation/ISourceCode.cs | namespace DotvvmAcademy.Validation
{
public interface ISourceCode
{
string FileName { get; }
bool IsValidated { get; }
string GetContent();
}
} | namespace DotvvmAcademy.Validation
{
public interface ISourceCode
{
string GetContent();
}
} | apache-2.0 | C# |
51d5ea78807b546edec090d5066fdd32e03835e0 | Add nullability in extension method (#48) | tlycken/RdbmsEventStore | src/RdbmsEventStore/EventStoreExtensions.cs | src/RdbmsEventStore/EventStoreExtensions.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace RdbmsEventStore
{
public static class EventStoreExtensions
{
public static Task<IEnumerable<TEvent>> Events<TStreamId, TEvent, TEventMetadata>(this IEventStore<TStreamId, TEvent, TEventMetadata> ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace RdbmsEventStore
{
public static class EventStoreExtensions
{
public static Task<IEnumerable<TEvent>> Events<TStreamId, TEvent, TEventMetadata>(this IEventStore<TStreamId, TEvent, TEventMetadata> ... | mit | C# |
1a7d06324bef845a4f60764f55cbd77c84ad1903 | Add checks to TwitterRepository to see if any of the Twitter authetication settings are the default value. If there is any default values, TwitterRepository will return null and not attempt to use LinqToTwitter to authorize with the SingleUserAuthorizer | binaryjanitor/allReady,enderdickerson/allReady,enderdickerson/allReady,MisterJames/allReady,anobleperson/allReady,chinwobble/allReady,gitChuckD/allReady,bcbeatty/allReady,bcbeatty/allReady,jonatwabash/allReady,binaryjanitor/allReady,jonatwabash/allReady,VishalMadhvani/allReady,anobleperson/allReady,JowenMei/allReady,Bi... | AllReadyApp/Web-App/AllReady/Providers/ExternalUserInformationProviders/Providers/TwitterRepository.cs | AllReadyApp/Web-App/AllReady/Providers/ExternalUserInformationProviders/Providers/TwitterRepository.cs | using System.Linq;
using System.Threading.Tasks;
using LinqToTwitter;
using Microsoft.Extensions.Options;
namespace AllReady.Providers.ExternalUserInformationProviders.Providers
{
public class TwitterRepository : ITwitterRepository
{
private readonly IOptions<TwitterAuthenticationSettings> twitterAuth... | using System.Linq;
using System.Threading.Tasks;
using LinqToTwitter;
using Microsoft.Extensions.Options;
namespace AllReady.Providers.ExternalUserInformationProviders.Providers
{
public class TwitterRepository : ITwitterRepository
{
private readonly IOptions<TwitterAuthenticationSettings> twitterAuth... | mit | C# |
536b016613da9ef9445badfd4b46984ad7db0a0e | add some buffering when reading | kreeben/resin,kreeben/resin | src/ResinCore/FullTextReadSessionFactory.cs | src/ResinCore/FullTextReadSessionFactory.cs | using DocumentTable;
using StreamIndex;
using System;
using System.IO;
using System.Linq;
namespace Resin
{
public class FullTextReadSessionFactory : IReadSessionFactory, IDisposable
{
private readonly string _directory;
private readonly FileStream _compoundFile;
public FullTextReadSe... | using DocumentTable;
using StreamIndex;
using System;
using System.IO;
using System.Linq;
namespace Resin
{
public class FullTextReadSessionFactory : IReadSessionFactory, IDisposable
{
private readonly string _directory;
private readonly FileStream _compoundFile;
public FullTextReadSe... | mit | C# |
3b659677509eded99ceed3d2140209e6286cbd8b | remove jsonignore attr | vmlf01/OdooRpc.CoreCLR.Client | src/OdooRpc.CoreCLR.Client/Models/OdooMetadata.cs | src/OdooRpc.CoreCLR.Client/Models/OdooMetadata.cs | using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace OdooRpc.CoreCLR.Client.Models
{
public class OdooMetadata
{
[JsonProperty("id")]
public int Id { get; internal set; }
[JsonProperty("xmlid")]
publi... | using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace OdooRpc.CoreCLR.Client.Models
{
public class OdooMetadata
{
[JsonProperty("id")]
public int Id { get; internal set; }
[JsonIgnore]
[JsonProperty("x... | mit | C# |
b63456444547df64b99c3ee2965479422bdab599 | Make tests runnable on mono | philipcpresley/FAKE,dlsteuer/FAKE,beeker/FAKE,dlsteuer/FAKE,warnergodfrey/FAKE,naveensrinivasan/FAKE,mfalda/FAKE,darrelmiller/FAKE,MiloszKrajewski/FAKE,ilkerde/FAKE,mglodack/FAKE,Kazark/FAKE,yonglehou/FAKE,haithemaraissia/FAKE,hitesh97/FAKE,warnergodfrey/FAKE,MichalDepta/FAKE,yonglehou/FAKE,mat-mcloughlin/FAKE,dmorgan3... | src/test/Test.FAKECore/AssemblyInfoSpecs.cs | src/test/Test.FAKECore/AssemblyInfoSpecs.cs | using System;
using System.Collections.Generic;
using System.IO;
using Machine.Specifications;
namespace Test.FAKECore
{
public class when_accessing_internals
{
It should_have_access_to_FAKE_internals =
() => AssemblyInfoFile.getDependencies(new List<AssemblyInfoFile.Attribute>());
}
... | using System.Collections.Generic;
using System.IO;
using Fake;
using Machine.Specifications;
namespace Test.FAKECore
{
public class when_accessing_internals
{
It should_have_access_to_FAKE_internals = () => AssemblyInfoFile.getDependencies(new List<AssemblyInfoFile.Attribute>());
}
public clas... | apache-2.0 | C# |
7298fbf6c78602a056b6bbc4e5e5eb4c84fe6ed5 | make less code | jefking/King.Azure.Imaging,jefking/King.Azure.Imaging,jefking/King.Azure.Imaging | King.Azure.Imaging.Mvc/Controllers/HomeController.cs | King.Azure.Imaging.Mvc/Controllers/HomeController.cs | namespace King.Azure.Imaging.Mvc.Controllers
{
using System.Threading.Tasks;
using System.Web.Mvc;
using King.Azure.Data;
using King.Azure.Imaging.Entities;
using King.Azure.Imaging.Models;
using Microsoft.Azure;
public class HomeController : Controller
{
private static readonl... | namespace King.Azure.Imaging.Mvc.Controllers
{
using System.Threading.Tasks;
using System.Web.Mvc;
using King.Azure.Data;
using King.Azure.Imaging.Entities;
using King.Azure.Imaging.Models;
using Microsoft.Azure;
public class HomeController : Controller
{
#region Members
... | mit | C# |
d3a300eb485c791f610b741c5d177f5be2a78548 | Adjust the CoinWarz price / exchange rate so that BTC is 1 (100%) | IWBWbiz/MultiMiner,IWBWbiz/MultiMiner,nwoolls/MultiMiner,nwoolls/MultiMiner | MultiMiner.CoinWarz.Api/CoinInformationExtensions.cs | MultiMiner.CoinWarz.Api/CoinInformationExtensions.cs | using MultiMiner.Coin.Api;
using Newtonsoft.Json.Linq;
namespace MultiMiner.CoinWarz.Api
{
public static class CoinInformationExtensions
{
public static void PopulateFromJson(this CoinInformation coinInformation, JToken jToken)
{
coinInformation.Symbol = jToken.Value<string>("CoinT... | using MultiMiner.Coin.Api;
using Newtonsoft.Json.Linq;
namespace MultiMiner.CoinWarz.Api
{
public static class CoinInformationExtensions
{
public static void PopulateFromJson(this CoinInformation coinInformation, JToken jToken)
{
coinInformation.Symbol = jToken.Value<string>("CoinT... | mit | C# |
909ea5762519a35eff63dcdf673d32c2e1838b5a | add timestamp to image files | yizeng/EventFiringWebDriverExamples | TestOnExceptionThrown.cs | TestOnExceptionThrown.cs | using System;
using System.Drawing.Imaging;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using OpenQA.Selenium;
using OpenQA.Selenium.Firefox;
using OpenQA.Selenium.Support.Events;
using OpenQA.Selenium.Support.Extensions;
namespace EventFiringWebDriverExamples {
[TestClass]
public class TestOnEx... | using System;
using System.Drawing.Imaging;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using OpenQA.Selenium;
using OpenQA.Selenium.Firefox;
using OpenQA.Selenium.Support.Events;
using OpenQA.Selenium.Support.Extensions;
namespace EventFiringWebDriverExamples {
[TestClass]
public class TestOnEx... | apache-2.0 | C# |
48d33a7c7aef56a077f8d0d11002de6f9b3691a5 | Revert "Added log of exceptions" | karolberezicki/EasySnippets | EasySnippets/App.xaml.cs | EasySnippets/App.xaml.cs | using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Threading;
namespace EasySnippets
{
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial ... | using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Threading;
namespace EasySnippets
{
/// <summary>
/// Interaction logic for Ap... | mit | C# |
d5b794f5007b1a8a4858657f8e989c0dac92301f | Add ReplaceUnicode | nuke-build/nuke,nuke-build/nuke,nuke-build/nuke,nuke-build/nuke | source/Nuke.Common/Utilities/String.Replace.cs | source/Nuke.Common/Utilities/String.Replace.cs | // Copyright 2019 Maintainers of NUKE.
// Distributed under the MIT License.
// https://github.com/nuke-build/nuke/blob/master/LICENSE
using System;
using System.Diagnostics;
using System.Globalization;
using System.Linq;
using System.Text.RegularExpressions;
using JetBrains.Annotations;
namespace Nuke.Common.Utiliti... | // Copyright 2019 Maintainers of NUKE.
// Distributed under the MIT License.
// https://github.com/nuke-build/nuke/blob/master/LICENSE
using System;
using System.Diagnostics;
using System.Linq;
using System.Text.RegularExpressions;
using JetBrains.Annotations;
namespace Nuke.Common.Utilities
{
[PublicAPI]
[De... | mit | C# |
911e308f4d51aa729abc046c61f3be3f39e1e4d5 | make TheoremAttribute concrete. | jwChung/Experimentalism,jwChung/Experimentalism | src/Experiment.AutoFixture/TheoremAttribute.cs | src/Experiment.AutoFixture/TheoremAttribute.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using Ploeh.AutoFixture;
using Ploeh.AutoFixture.Xunit;
namespace Jwc.Experiment
{
/// <summary>
/// A test attribute declared on a test method to indicate a test case.
/// This attribute can be used for non-parame... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using Ploeh.AutoFixture;
using Ploeh.AutoFixture.Xunit;
namespace Jwc.Experiment
{
/// <summary>
/// A test attribute declared on a test method to indicate a test case.
/// This attribute can be used for non-parame... | mit | C# |
ec29641b3c4e3585fc987b091f1310aa4794a52e | Add a quit button. | bklimt/LandTheEagleUnity | Assets/SplashGUI.cs | Assets/SplashGUI.cs | using UnityEngine;
using System.Collections;
public class SplashGUI : MonoBehaviour {
public GUISkin defaultSkin;
void Start() {
}
void Update() {
}
void OnGUI() {
GameState state = GameState.Instance;
state.Crashed = false;
state.Landed = false;
GUI.skin = defaultSkin;
if (Screen.dpi > 200) {
... | using UnityEngine;
using System.Collections;
public class SplashGUI : MonoBehaviour {
public GUISkin defaultSkin;
void Start() {
}
void Update() {
}
void OnGUI() {
GameState state = GameState.Instance;
state.Crashed = false;
state.Landed = false;
GUI.skin = defaultSkin;
if (Screen.dpi > 200) {
... | mit | C# |
dda81d7526559db3ae0007804f5ed8b705c0efd9 | Improve documentation of immutability. | nodatime/nodatime,malcolmr/nodatime,zaccharles/nodatime,BenJenkinson/nodatime,malcolmr/nodatime,BenJenkinson/nodatime,zaccharles/nodatime,zaccharles/nodatime,zaccharles/nodatime,zaccharles/nodatime,jskeet/nodatime,malcolmr/nodatime,zaccharles/nodatime,malcolmr/nodatime,nodatime/nodatime,jskeet/nodatime | src/NodaTime/Annotations/ImmutableAttribute.cs | src/NodaTime/Annotations/ImmutableAttribute.cs | // Copyright 2013 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 System;
namespace NodaTime.Annotations
{
/// <summary>
/// Indicates that a type is immutable. After construction, the publicly vis... | // Copyright 2013 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 System;
namespace NodaTime.Annotations
{
/// <summary>
/// Indicates that a type is mutable.
/// </summary>
/// <remarks>... | apache-2.0 | C# |
ac2315099f897ef8b456eb72d646feec09950a6a | Fix test | JimBobSquarePants/Zoombraco,JimBobSquarePants/Zoombraco,JimBobSquarePants/Zoombraco | tests/Zoombraco.Tests/VersionParserTests.cs | tests/Zoombraco.Tests/VersionParserTests.cs | namespace Zoombraco.Tests
{
using System;
using Semver;
using Xunit;
using Zoombraco.Helpers;
public class VersionParserTests
{
[Fact]
public void VersionParserThrowsWhenGivenNull()
{
Assert.Throws(typeof(ArgumentNullException), () =>
{
... | namespace Zoombraco.Tests
{
using System;
using Semver;
using Xunit;
using Zoombraco.Helpers;
public class VersionParserTests
{
[Fact]
public void VersionParserThrowsWhenGivenNull()
{
Assert.Throws(typeof(ArgumentNullException), () =>
{
... | apache-2.0 | C# |
a1a7e61c4744095e74119f6a3554b3d04daf81b9 | Make CallingConvention enum public | ilkerhalil/dnlib,0xd4d/dnlib,modulexcite/dnlib,jorik041/dnlib,Arthur2e5/dnlib,picrap/dnlib,ZixiangBoy/dnlib,yck1509/dnlib,kiootic/dnlib | dot10/dotNET/Hi/CallingConvention.cs | dot10/dotNET/Hi/CallingConvention.cs | namespace dot10.dotNET.Hi {
/// <summary>
/// See CorHdr.h/CorCallingConvention
/// </summary>
public enum CallingConvention : byte {
/// <summary></summary>
Default = 0x0,
/// <summary></summary>
C = 0x1,
/// <summary></summary>
StdCall = 0x2,
/// <summary></summary>
ThisCall = 0x3,
/// ... | namespace dot10.dotNET.Hi {
/// <summary>
/// See CorHdr.h/CorCallingConvention
/// </summary>
enum CallingConvention : byte {
/// <summary></summary>
Default = 0x0,
/// <summary></summary>
C = 0x1,
/// <summary></summary>
StdCall = 0x2,
/// <summary></summary>
ThisCall = 0x3,
/// <summar... | mit | C# |
0cb1e3997403284570f75e53f49772a5fe33005d | Add extension method for App.Start() | MarinAtanasov/AppBrix,MarinAtanasov/AppBrix.NetCore | Core/AppBrix/App.cs | Core/AppBrix/App.cs | // Copyright (c) MarinAtanasov. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the project root for license information.
//
using AppBrix.Application;
using AppBrix.Configuration;
using AppBrix.Modules;
namespace AppBrix;
/// <summary>
/// Static class used for loading of a default a... | // Copyright (c) MarinAtanasov. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the project root for license information.
//
using AppBrix.Application;
using AppBrix.Configuration;
using AppBrix.Modules;
namespace AppBrix;
/// <summary>
/// Static class used for loading of a default a... | mit | C# |
5171854c34eee042ea31cf15d57a475d718466f5 | Revert "zpt fix" | XomakNet/tasks | Eval/EvalProgram.cs | Eval/EvalProgram.cs | using System;
using System.Globalization;
using System.Security.Cryptography.X509Certificates;
using System.Text.RegularExpressions;
using System.Threading;
using Newtonsoft.Json.Linq;
using NUnit.Framework;
namespace EvalTask
{
class EvalProgram
{
static void Main(string[] args)
{
... | using System;
using System.Globalization;
using System.Security.Cryptography.X509Certificates;
using System.Text.RegularExpressions;
using System.Threading;
using Newtonsoft.Json.Linq;
using NUnit.Framework;
namespace EvalTask
{
class EvalProgram
{
static void Main(string[] args)
{
... | mit | C# |
924d7ff221e5e4f1ece1a8ab7cca01efc4232aec | Remove unused directives | kinosang/QcloudSharp | ApiResult.cs | ApiResult.cs | using System.Collections.Generic;
using System.Dynamic;
namespace QcloudSharp
{
public class ApiResult : DynamicObject
{
private Dictionary<string, object> _attr = new Dictionary<string, object>();
public int Code { get; set; }
public string Message { get; set; }
public overri... | using System;
using System.Collections.Generic;
using System.Dynamic;
namespace QcloudSharp
{
public class ApiResult : DynamicObject
{
private Dictionary<string, object> _attr = new Dictionary<string, object>();
public int Code { get; set; }
public string Message { get; set; }
... | mit | C# |
de54837390ed94aace46803c2aa0f07d62993ca9 | Fix bug in reset code | wbap/hackathon-2017-sample,wbap/hackathon-2017-sample,wbap/hackathon-2017-sample,wbap/hackathon-2017-sample | environment/Assets/Scripts/Trials.cs | environment/Assets/Scripts/Trials.cs | using UnityEngine;
public class Trials {
public static void Reset() {
PlayerPrefs.SetString("Trials", "");
}
public static void AddSuccess() {
string trials = PlayerPrefs.GetString("Trials");
trials += "S";
while(trials.Length > 100) {
trials = trials.Substri... | using UnityEngine;
public class Trials {
public static void Reset() {
Debug.Log("Reset trials");
}
public static void AddSuccess() {
string trials = PlayerPrefs.GetString("Trials");
trials += "S";
while(trials.Length > 100) {
trials = trials.Substring(1);
... | apache-2.0 | C# |
0914dfbc8f41a27f5603a665424f7e72d056d4f8 | add cloud build preprocessor keyword. | sassembla/Autoya,sassembla/Autoya,sassembla/Autoya | Assets/AutoyaTests/Editor/MiyamasuIgniter.cs | Assets/AutoyaTests/Editor/MiyamasuIgniter.cs | using Miyamasu;
using UnityEditor;
using UnityEngine;
[InitializeOnLoad] public class MiyamasuIgniter {
static MiyamasuIgniter () {
#if CLOUDBUILD
{
Debug.LogError("hereComes!!");
}
#else
// {
// Debug.LogWarning("miyamasu start running.");
// var testRunner = new MiyamasuTestRunner();
// testRu... | using Miyamasu;
using UnityEditor;
using UnityEngine;
[InitializeOnLoad] public class MiyamasuIgniter {
static MiyamasuIgniter () {
Debug.LogWarning("miyamasu start running.");
var testRunner = new MiyamasuTestRunner();
testRunner.RunTestsOnMainThread();
}
} | mit | C# |
ce3c6bf550937096280c3147d93205e79ac93b9a | Update AssemblyInfo.cs (#3886) | fassadlr/StratisBitcoinFullNode,stratisproject/StratisBitcoinFullNode,quantumagi/StratisBitcoinFullNode,stratisproject/StratisBitcoinFullNode,quantumagi/StratisBitcoinFullNode,fassadlr/StratisBitcoinFullNode | src/Stratis.Bitcoin/Properties/AssemblyInfo.cs | src/Stratis.Bitcoin/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("Str... | 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("Str... | mit | C# |
75f2023ad3cac95bab01d801287a72a7d0fbdb38 | 添加 HtmlCommentRenderType 枚举 | wukaixian/Jumony,wukaixian/Jumony,zpzgone/Jumony,zpzgone/Jumony,yonglehou/Jumony,yonglehou/Jumony | Ivony.Html/IHtmlComment.cs | Ivony.Html/IHtmlComment.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Ivony.Html
{
/// <summary>
/// 定义一个 HTML 注释,或应当被忽略的 HTML 内容
/// </summary>
public interface IHtmlComment : IHtmlNode
{
/// <summary>
/// 注释文本
/// </summary>
string Comment
{
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Ivony.Html
{
/// <summary>
/// 定义一个 HTML 注释,或应当被忽略的 HTML 内容
/// </summary>
public interface IHtmlComment : IHtmlNode
{
/// <summary>
/// 注释文本
/// </summary>
string Comment
{
... | apache-2.0 | C# |
13661061a6a676680db932b547d0ffb7c82c76c3 | Convert code to use extension method | Weingartner/SolidworksAddinFramework | SolidworksAddinFramework/Geometry/BSpline3D.cs | SolidworksAddinFramework/Geometry/BSpline3D.cs | using System;
using System.Diagnostics;
using System.Linq;
using System.DoubleNumerics;
using JetBrains.Annotations;
using SolidworksAddinFramework.OpenGl;
using SolidWorks.Interop.sldworks;
namespace SolidworksAddinFramework.Geometry
{
public class BSpline3D : BSpline<Vector4>
{
public BSpline3D([NotN... | using System;
using System.Diagnostics;
using System.Linq;
using System.DoubleNumerics;
using JetBrains.Annotations;
using SolidworksAddinFramework.OpenGl;
using SolidWorks.Interop.sldworks;
namespace SolidworksAddinFramework.Geometry
{
public class BSpline3D : BSpline<Vector4>
{
public BSpline3D([NotN... | mit | C# |
9e57218fd6f689946804b7fd6c4477e1f3c05ce6 | Replace printing tokens with time's measurement | Nezaboodka/Nevod.TextParsing,Nezaboodka/Nevod.TextParsing | Source/TextParserDemoApplication/ParserDemo.cs | Source/TextParserDemoApplication/ParserDemo.cs | using System;
using System.Diagnostics;
using System.IO;
using TextParser;
using TextParser.Common;
namespace TextParserDemoApplication
{
class ParserDemo
{
static void Main(string[] args)
{
string fileName = args[0];
string text = File.ReadAllText(fileName);
... | using System;
using TextParser;
using TextParser.Common;
namespace TextParserDemoApplication
{
class ParserDemo
{
static void Main(string[] args)
{
foreach (string arg in args)
{
ParsedText parsedText = Parser.ParsePlainText(arg);
foreach... | mit | C# |
24e78d015e40b633cdbd5b326aab94f82c504465 | Make UpdateScrollPosition virtual. | Nabile-Rahmani/osu,naoey/osu,EVAST9919/osu,johnneijzen/osu,UselessToucan/osu,peppy/osu-new,Drezi126/osu,RedNesto/osu,NeoAdonis/osu,DrabWeb/osu,naoey/osu,NeoAdonis/osu,Damnae/osu,peppy/osu,nyaamara/osu,osu-RP/osu-RP,smoogipoo/osu,tacchinotacchi/osu,Frontear/osuKyzer,ZLima12/osu,DrabWeb/osu,2yangk23/osu,smoogipoo/osu,smo... | osu.Game.Modes.Taiko/Objects/Drawable/DrawableTaikoHitObject.cs | osu.Game.Modes.Taiko/Objects/Drawable/DrawableTaikoHitObject.cs | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using OpenTK.Graphics;
using osu.Framework.Graphics;
using osu.Game.Modes.Objects.Drawables;
using osu.Game.Modes.Taiko.Judgements;
namespace osu.Game.Modes.Ta... | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using OpenTK.Graphics;
using osu.Framework.Graphics;
using osu.Game.Modes.Objects.Drawables;
using osu.Game.Modes.Taiko.Judgements;
namespace osu.Game.Modes.Ta... | mit | C# |
2859532705ca35641ddcc92c8d3905e54076dc83 | Mark 'GC.Allocate' with 'ReadNoneAttribute' | jonathanvdc/flame-llvm,jonathanvdc/flame-llvm,jonathanvdc/flame-llvm | runtime/GC.cs | runtime/GC.cs | namespace __compiler_rt
{
/// <summary>
/// Garbage collection functionality that can be used by the compiler.
/// </summary>
public static unsafe class GC
{
[#builtin_attribute(NoAliasAttribute)]
[#builtin_attribute(NoThrowAttribute)]
[#builtin_attribute(ReadNoneAttribute)]
... | namespace __compiler_rt
{
/// <summary>
/// Garbage collection functionality that can be used by the compiler.
/// </summary>
public static unsafe class GC
{
[#builtin_attribute(NoAliasAttribute)]
[#builtin_attribute(NoThrowAttribute)]
private static extern void* GC_malloc(ul... | mit | C# |
fd7b976d437459607581d916a7378707f7a4afb3 | Fix null reference check logic when unlocking a password. | bussemac/n2cms,SntsDev/n2cms,EzyWebwerkstaden/n2cms,DejanMilicic/n2cms,SntsDev/n2cms,EzyWebwerkstaden/n2cms,nimore/n2cms,VoidPointerAB/n2cms,SntsDev/n2cms,bussemac/n2cms,nicklv/n2cms,VoidPointerAB/n2cms,nicklv/n2cms,n2cms/n2cms,bussemac/n2cms,DejanMilicic/n2cms,bussemac/n2cms,n2cms/n2cms,nicklv/n2cms,bussemac/n2cms,Dej... | src/Mvc/MvcTemplates/N2/Users/Password.aspx.cs | src/Mvc/MvcTemplates/N2/Users/Password.aspx.cs | using N2.Edit.Web;
using System;
using System.Web.Security;
using N2.Security;
namespace N2.Edit.Membership
{
public partial class Password : EditPage
{
string SelectedUserName;
private IAccountInfo SelectedUser;
private AccountManager AccountManager { get { return N2.Context.Current... | using N2.Edit.Web;
using System;
using System.Web.Security;
using N2.Security;
namespace N2.Edit.Membership
{
public partial class Password : EditPage
{
string SelectedUserName;
private IAccountInfo SelectedUser;
private AccountManager AccountManager { get { return N2.Context.Current... | lgpl-2.1 | C# |
995f4412b19a56790635e622cd27fc874dbe49f6 | include temp in indexname so we don't accidentally drop existing indexes and indicate that they are supposed to be temporary in case the drop statement gets lost | prebenh/Pregress.SqlPlanProblemFinder | src/Pregress.SqlPlanProblemFinder/IndexScan.cs | src/Pregress.SqlPlanProblemFinder/IndexScan.cs | using System.Linq;
using System.Xml.Linq;
namespace Pregress.SqlPlanProblemFinder
{
internal struct IndexScan
{
public string Table { get; set; }
public string Column { get; set; }
public XAttribute TableCardinality { get; set; }
public XAttribute AvgRowSize { get; set; }
... | using System.Linq;
using System.Xml.Linq;
namespace Pregress.SqlPlanProblemFinder
{
internal struct IndexScan
{
public string Table { get; set; }
public string Column { get; set; }
public XAttribute TableCardinality { get; set; }
public XAttribute AvgRowSize { get; set; }
... | mit | C# |
3109634e3e7f71c402d4df1ca86e1ca223b28a3b | Add ConnectionConfig to RawRabbitConfig | northspb/RawRabbit,pardahlman/RawRabbit | src/RawRabbit/Client/RawRabbitConfiguration.cs | src/RawRabbit/Client/RawRabbitConfiguration.cs | using System.Collections.Generic;
namespace RawRabbit.Client
{
public class RawRabbitConfiguration
{
public string Hostname { get; set; }
public List<ConnectionConfiguration> Connection { get; set; }
public static RawRabbitConfiguration Default = new RawRabbitConfiguration
{
Hostname = "localhost"
};
... | namespace RawRabbit.Client
{
public class RawRabbitConfiguration
{
public string Hostname { get; set; }
public static RawRabbitConfiguration Default = new RawRabbitConfiguration
{
Hostname = "localhost"
};
}
}
| mit | C# |
1078feb24cabdddd9b77a04aed3a5ba39158e0c6 | Move DMPPluginAttribute into the DarkMultiPlayerServer namespace, and only allow usage on classes. | RockyTV/DarkMultiPlayer,Dan-Shields/DarkMultiPlayer,Sanmilie/DarkMultiPlayer,81ninja/DarkMultiPlayer,godarklight/DarkMultiPlayer,rewdmister4/rewd-mod-packs,godarklight/DarkMultiPlayer,Kerbas-ad-astra/DarkMultiPlayer,RockyTV/DarkMultiPlayer,81ninja/DarkMultiPlayer,dsonbill/DarkMultiPlayer | Server/DMPPlugin.cs | Server/DMPPlugin.cs | using System;
using DarkMultiPlayerCommon;
namespace DarkMultiPlayerServer
{
[AttributeUsage(AttributeTargets.Class)]
public class DMPPluginAttribute : System.Attribute
{
//DMP will look for this attribute to load classes.
}
//Call your methods in your [DMPPlugin] class any of the followi... | using System;
using DarkMultiPlayerCommon;
public class DMPPluginAttribute : System.Attribute
{
//DMP will look for this attribute to load classes.
}
namespace DarkMultiPlayerServer
{
//Call your methods in your [DMPPlugin] class any of the following, minus the 'DMP' part. So DMPUpdate events require a method... | mit | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.