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 |
|---|---|---|---|---|---|---|---|---|
07bf7b4fde825bae377928d076d097107a3b433f | Add in a cost property in IGameItem interface | liam-middlebrook/Navier-Boats | Navier-Boats/Navier-Boats/Navier-Boats/Engine/Inventory/IGameItem.cs | Navier-Boats/Navier-Boats/Navier-Boats/Engine/Inventory/IGameItem.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Navier_Boats.Engine.Entities;
namespace Navier_Boats.Engine.Inventory
{
public interface IGameItem : IInteractable
{
Texture2D InventoryTexture
{
get;... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Navier_Boats.Engine.Entities;
namespace Navier_Boats.Engine.Inventory
{
public interface IGameItem : IInteractable
{
Texture2D InventoryTexture
{
get;... | apache-2.0 | C# |
6992cbaa8c400daf5f49b4bfc82f0f8816e5e91e | Add DateTime to NSDate cast | haithemaraissia/monotouch-samples,W3SS/monotouch-samples,labdogg1003/monotouch-samples,albertoms/monotouch-samples,hongnguyenpro/monotouch-samples,davidrynn/monotouch-samples,kingyond/monotouch-samples,nervevau2/monotouch-samples,YOTOV-LIMITED/monotouch-samples,sakthivelnagarajan/monotouch-samples,iFreedive/monotouch-s... | MTDWalkthrough/AppDelegate.cs | MTDWalkthrough/AppDelegate.cs | using System;
using System.Collections.Generic;
using System.Linq;
using Foundation;
using UIKit;
using MonoTouch.Dialog;
namespace MTDWalkthrough
{
[Register ("AppDelegate")]
public partial class AppDelegate : UIApplicationDelegate
{
UIWindow _window;
UINavigationController _nav;
DialogViewController _ro... | using System;
using System.Collections.Generic;
using System.Linq;
using Foundation;
using UIKit;
using MonoTouch.Dialog;
namespace MTDWalkthrough
{
[Register ("AppDelegate")]
public partial class AppDelegate : UIApplicationDelegate
{
UIWindow _window;
UINavigationController _nav;
DialogViewController _ro... | mit | C# |
8b85401de5eba9f770d5c26754212cc908334dc6 | Use library format | shuhari/Shuhari.WinTools | Shuhari.WinTools.Core/Features/Encode/Providers/MD5EncodeProvider.cs | Shuhari.WinTools.Core/Features/Encode/Providers/MD5EncodeProvider.cs | using System.Security.Cryptography;
using System.Text;
using Shuhari.Library.Common.Utils;
namespace Shuhari.WinTools.Core.Features.Encode.Providers
{
public class MD5EncodeProvider : EncodeProvider
{
public override EncodeProviderMetadata Metadata
{
get { return new EncodeProvider... | using System.Security.Cryptography;
using System.Text;
namespace Shuhari.WinTools.Core.Features.Encode.Providers
{
public class MD5EncodeProvider : EncodeProvider
{
public override EncodeProviderMetadata Metadata
{
get { return new EncodeProviderMetadata("MD5", 0, EncodeProviderFun... | mit | C# |
4d98319d5dd54ab53d9e9c226c3704be81adea07 | add a little wait to the tests so that parallel behavior can be better observed | gasparnagy/SpecFlow.xUnitAdapter | src/tests/SpecFlow.xUnitAdapter.TestProject/StepDefinitions.cs | src/tests/SpecFlow.xUnitAdapter.TestProject/StepDefinitions.cs | using System;
using System.Collections.Generic;
using System.Linq;
using TechTalk.SpecFlow;
using Xunit;
using Xunit.Abstractions;
namespace SpecFlow.xUnitAdapter.TestProject
{
[Binding]
public sealed class StepDefinitions : Steps
{
private List<int> numbers = new List<int>();
private int?... | using System;
using System.Collections.Generic;
using System.Linq;
using TechTalk.SpecFlow;
using Xunit;
using Xunit.Abstractions;
namespace SpecFlow.xUnitAdapter.TestProject
{
[Binding]
public sealed class StepDefinitions : Steps
{
private List<int> numbers = new List<int>();
private int?... | apache-2.0 | C# |
f842c3290c5c39c1624571eaa107db0d7620faf8 | fix xaml transformer. | wieslawsoltes/Perspex,jkoritzinsky/Perspex,Perspex/Perspex,AvaloniaUI/Avalonia,jkoritzinsky/Avalonia,wieslawsoltes/Perspex,akrisiun/Perspex,jkoritzinsky/Avalonia,jkoritzinsky/Avalonia,jkoritzinsky/Avalonia,SuperJMN/Avalonia,jkoritzinsky/Avalonia,Perspex/Perspex,wieslawsoltes/Perspex,wieslawsoltes/Perspex,grokys/Perspex... | src/Markup/Avalonia.Markup.Xaml/XamlIl/CompilerExtensions/Transformers/AvaloniaXamlIlResolveByNameMarkupExtensionReplacer.cs | src/Markup/Avalonia.Markup.Xaml/XamlIl/CompilerExtensions/Transformers/AvaloniaXamlIlResolveByNameMarkupExtensionReplacer.cs | using System.Collections;
using System.Collections.Generic;
using System.Linq;
using XamlX.Ast;
using XamlX.Transform;
using XamlX.TypeSystem;
#nullable enable
namespace Avalonia.Markup.Xaml.XamlIl.CompilerExtensions.Transformers
{
class AvaloniaXamlIlResolveByNameMarkupExtensionReplacer : IXamlAstTransformer
... | using System.Collections;
using System.Collections.Generic;
using System.Linq;
using XamlX.Ast;
using XamlX.Transform;
using XamlX.TypeSystem;
#nullable enable
namespace Avalonia.Markup.Xaml.XamlIl.CompilerExtensions.Transformers
{
class AvaloniaXamlIlResolveByNameMarkupExtensionReplacer : IXamlAstTransformer
... | mit | C# |
766e7a1d582e58e8f7e9ea2e9e38a8c549deccc8 | Fix bug with n-level undo of child objects. | rockfordlhotka/csla,JasonBock/csla,JasonBock/csla,JasonBock/csla,jonnybee/csla,rockfordlhotka/csla,MarimerLLC/csla,ronnymgm/csla-light,BrettJaner/csla,MarimerLLC/csla,MarimerLLC/csla,BrettJaner/csla,jonnybee/csla,rockfordlhotka/csla,ronnymgm/csla-light,jonnybee/csla,ronnymgm/csla-light,BrettJaner/csla | cslatest/Csla.Test/LazyLoad/AParent.cs | cslatest/Csla.Test/LazyLoad/AParent.cs | using System;
using System.Collections.Generic;
using System.Text;
namespace Csla.Test.LazyLoad
{
[Serializable]
public class AParent : Csla.BusinessBase<AParent>
{
private Guid _id;
public Guid Id
{
get { return _id; }
set
{
_id = value;
PropertyHasChanged();
... | using System;
using System.Collections.Generic;
using System.Text;
namespace Csla.Test.LazyLoad
{
[Serializable]
public class AParent : Csla.BusinessBase<AParent>
{
private Guid _id;
public Guid Id
{
get { return _id; }
set
{
_id = value;
PropertyHasChanged();
... | mit | C# |
6a9a753ca4f0d5b7cfcd939aee58720e29f700ef | Remove extra references from Startup | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore | test/WebSites/SecurityWebSite/Startup.cs | test/WebSites/SecurityWebSite/Startup.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.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.DependencyInjection;
namespace SecurityWebSite
{
... | // 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.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Dependency... | apache-2.0 | C# |
ff4ad28bca32795c0df7bd61bb8c792c1eb73436 | Fix GtkTestRunner so that test assembly is added to NUnit args | iainx/xwt,hamekoz/xwt,mminns/xwt,cra0zy/xwt,mono/xwt,akrisiun/xwt,directhex/xwt,sevoku/xwt,lytico/xwt,antmicro/xwt,TheBrainTech/xwt,mminns/xwt,steffenWi/xwt,hwthomas/xwt,residuum/xwt | Testing/GtkTestRunner/Main.cs | Testing/GtkTestRunner/Main.cs | //
// Main.cs
//
// Author:
// Lluis Sanchez <lluis@xamarin.com>
//
// Copyright (c) 2013 Xamarin Inc.
//
// 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, includi... | //
// Main.cs
//
// Author:
// Lluis Sanchez <lluis@xamarin.com>
//
// Copyright (c) 2013 Xamarin Inc.
//
// 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, includi... | mit | C# |
1789f72b7ef2a7c3f48134577253fc0f2ccdb00a | Add license terms. | yonglehou/msgpack-rpc-cli,yfakariya/msgpack-rpc-cli | src/MsgPack.Rpc.Client/Rpc/Client/Protocols/ProtocolTrace.FromRpcError.cs | src/MsgPack.Rpc.Client/Rpc/Client/Protocols/ProtocolTrace.FromRpcError.cs | #region -- License Terms --
//
// MessagePack for CLI
//
// Copyright (C) 2010 FUJIWARA, Yusuke
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.or... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
namespace MsgPack.Rpc.Client.Protocols
{
partial class MsgPackRpcClientProtocolsTrace
{
internal static void TraceRpcError( RpcError rpcError, string format, params object[] args )
{
_source.TraceE... | apache-2.0 | C# |
993642dae0e570a63d63c3757b3e3bce7c16005d | Add comment | shyamnamboodiripad/roslyn,mavasani/roslyn,weltkante/roslyn,CyrusNajmabadi/roslyn,jasonmalinowski/roslyn,dotnet/roslyn,dotnet/roslyn,jasonmalinowski/roslyn,weltkante/roslyn,mavasani/roslyn,bartdesmet/roslyn,bartdesmet/roslyn,jasonmalinowski/roslyn,shyamnamboodiripad/roslyn,mavasani/roslyn,bartdesmet/roslyn,shyamnamboodi... | src/Workspaces/Core/Portable/Indentation/FormattingOptions.IndentStyle.cs | src/Workspaces/Core/Portable/Indentation/FormattingOptions.IndentStyle.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
namespace Microsoft.CodeAnalysis.Formatting
{
public static partial class FormattingOptions
{
// Pu... | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
namespace Microsoft.CodeAnalysis.Formatting
{
public static partial class FormattingOptions
{
// Pu... | mit | C# |
85e3cd88ded5826e5403f5e3d221a6794201a646 | Fix snapshots for #252. | ExRam/ExRam.Gremlinq | test/ExRam.Gremlinq.PublicApi.Tests/PublicApiTests.JanusGraph.verified.cs | test/ExRam.Gremlinq.PublicApi.Tests/PublicApiTests.JanusGraph.verified.cs | namespace ExRam.Gremlinq.Core
{
public static class GremlinQueryEnvironmentExtensions
{
public static ExRam.Gremlinq.Core.IGremlinQueryEnvironment UseJanusGraph(this ExRam.Gremlinq.Core.IGremlinQueryEnvironment environment, System.Func<ExRam.Gremlinq.Providers.JanusGraph.IJanusGraphConfigurationBuilder,... | namespace ExRam.Gremlinq.Core
{
public static class GremlinQueryEnvironmentExtensions
{
public static ExRam.Gremlinq.Core.IGremlinQueryEnvironment UseJanusGraph(this ExRam.Gremlinq.Core.IGremlinQueryEnvironment environment, System.Func<ExRam.Gremlinq.Providers.WebSocket.IWebSocketGremlinQueryExecutorBui... | mit | C# |
82a3c458dd09899b0a38a76483b549f60c0d92f6 | Bump version to 0.1.9. | FacilityApi/Facility,ejball/Facility | SolutionInfo.cs | SolutionInfo.cs | using System.Reflection;
[assembly: AssemblyVersion("0.1.9.0")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyCopyright("Copyright 2016 Ed Ball")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
| using System.Reflection;
[assembly: AssemblyVersion("0.1.8.0")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyCopyright("Copyright 2016 Ed Ball")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
| mit | C# |
ffac9884bf6a0a3af9b3ecef14fe254c672eda6a | bump ver | AntonyCorbett/OnlyT,AntonyCorbett/OnlyT | SolutionInfo.cs | SolutionInfo.cs | using System.Reflection;
[assembly: AssemblyCompany("SoundBox")]
[assembly: AssemblyProduct("OnlyT")]
[assembly: AssemblyCopyright("Copyright © 2019, 2020 Antony Corbett")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: AssemblyVersion("1.2.0.26")] | using System.Reflection;
[assembly: AssemblyCompany("SoundBox")]
[assembly: AssemblyProduct("OnlyT")]
[assembly: AssemblyCopyright("Copyright © 2019, 2020 Antony Corbett")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: AssemblyVersion("1.2.0.25")] | mit | C# |
fa294bbe248882b786a82c556bcabab99e476092 | Add properties & methods to IAuthenticationClient | wadewegner/Force.com-Toolkit-for-NET,developerforce/Force.com-Toolkit-for-NET,developerforce/Force.com-Toolkit-for-NET | src/CommonLibrariesForNET/IAuthenticationClient.cs | src/CommonLibrariesForNET/IAuthenticationClient.cs | using System.Threading.Tasks;
namespace Salesforce.Common
{
public interface IAuthenticationClient
{
string InstanceUrl { get; set; }
string AccessToken { get; set; }
string RefreshToken { get; set; }
string Id { get; set; }
string ApiVersion { get; set; }
Task ... | using System.Threading.Tasks;
namespace Salesforce.Common
{
public interface IAuthenticationClient
{
string InstanceUrl { get; set; }
string AccessToken { get; set; }
string ApiVersion { get; set; }
Task UsernamePasswordAsync(string clientId, string clientSecret, string usernam... | bsd-3-clause | C# |
014be649834ed7973de4eca31d1ced814a63dc6c | Check the user-agent string for "Trident" in order to identify IE11 as an IE browser. This is only needed for a workaround for comments within select elements in IE below version 10 and should be abandoned when possible. | vc3/ExoWeb,vc3/ExoWeb,vc3/ExoWeb,vc3/ExoWeb,vc3/ExoWeb | ExoWeb/Templates/MicrosoftAjax/AjaxPage.cs | ExoWeb/Templates/MicrosoftAjax/AjaxPage.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
namespace ExoWeb.Templates.MicrosoftAjax
{
/// <summary>
/// Microsoft AJAX specific implementation of <see cref="ExoWeb.Templates.Page"/> that supports
/// parsing and loading templates using the Microsoft AJAX... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
namespace ExoWeb.Templates.MicrosoftAjax
{
/// <summary>
/// Microsoft AJAX specific implementation of <see cref="ExoWeb.Templates.Page"/> that supports
/// parsing and loading templates using the Microsoft AJAX... | mit | C# |
b6091830abac9019cd3bffcad55101038492418a | Support RequestedAt being nullable | stripe/stripe-dotnet | src/Stripe.net/Entities/Capabilities/Capability.cs | src/Stripe.net/Entities/Capabilities/Capability.cs | namespace Stripe
{
using System;
using System.Collections.Generic;
using Newtonsoft.Json;
using Stripe.Infrastructure;
public class Capability : StripeEntity<Capability>, IHasId, IHasObject
{
/// <summary>
/// Unique identifier for the object.
/// </summary>
[Jso... | namespace Stripe
{
using System;
using System.Collections.Generic;
using Newtonsoft.Json;
using Stripe.Infrastructure;
public class Capability : StripeEntity<Capability>, IHasId, IHasObject
{
/// <summary>
/// Unique identifier for the object.
/// </summary>
[Jso... | apache-2.0 | C# |
1be441166f91dea03c374350f3383f59409d1f85 | Update DevelopexTechClub.cshtml | dncuug/dot-net.in.ua,dncuug/dot-net.in.ua,dncuug/dot-net.in.ua | src/WebSite/Views/Content/DevelopexTechClub.cshtml | src/WebSite/Views/Content/DevelopexTechClub.cshtml | <h1>@ViewData["Title"]</h1>
<div class="row">
<div class="col-md-8">
<img src="https://127fc3e2e552.blob.core.windows.net/devdigest/developex.png" alt="Developex Tech Club" class="img-responsive" />
</div>
<div class="col-md-4">
</div>
</div>
<div class="row">
<div class="col-md-12"... | <h1>@ViewData["Title"]</h1>
<div class="row">
<div class="col-md-8">
<img src="https://scontent-frx5-1.xx.fbcdn.net/v/t1.0-9/26804441_584652555203371_5742271135022082853_n.jpg?oh=6dd4e26a84aaf9b735db6413947c9015&oe=5AF49877" class="img-responsive" />
</div>
<div class="col-md-4">
</div>... | mit | C# |
66dca64d85cc5d9282d5d564901bfa7a9a25a093 | update gateId | janbin16/ParkingSpace,janbin16/ParkingSpace,janbin16/ParkingSpace | ParkingSpace.Web/Views/GateIn/Index.cshtml | ParkingSpace.Web/Views/GateIn/Index.cshtml | @using ParkingSpace.Models
@{
ViewBag.Title = "Index";
var ticket = (ParkingTicket)TempData["newTicket"];
}
<h2>Gate In </h2>
<div class="well well-sm"><h2>[@ViewBag.GateId]</h2></div>
@using(Html.BeginForm("CreateTicket", "GateIn")) {
<div class="row">
<div class="col-lg-2">
Plate No. :
</div>
... | @using ParkingSpace.Models
@{
ViewBag.Title = "Index";
var ticket = (ParkingTicket)TempData["newTicket"];
}
<h2>Gate In [@ViewBag.GateId]</h2>
@using(Html.BeginForm("CreateTicket", "GateIn")) {
<div class="row">
<div class="col-lg-2">
Plate No. :
</div>
<div class="col-lg-3">
@Html.Tex... | mit | C# |
6647832c1e46513fc55b085535fd4ea7925a8d40 | Update WeaverInitialiserTests.cs | Fody/Fody,GeertvanHorrik/Fody | Tests/FodyIsolated/WeaverInitialiserTests.cs | Tests/FodyIsolated/WeaverInitialiserTests.cs | using System.Collections.Generic;
using System.Linq;
using Fody;
using Mono.Cecil;
using ObjectApproval;
using Xunit;
using Xunit.Abstractions;
public class WeaverInitialiserTests :
XunitLoggingBase
{
[Fact]
public void ValidPropsFromBase()
{
var moduleDefinition = ModuleDefinition.CreateModule... | using System.Collections.Generic;
using System.Linq;
using Fody;
using Mono.Cecil;
using Xunit;
using Xunit.Abstractions;
public class WeaverInitialiserTests :
XunitLoggingBase
{
[Fact]
public void ValidPropsFromBase()
{
var moduleDefinition = ModuleDefinition.CreateModule("Foo", ModuleKind.Dll... | mit | C# |
d66a7815fdb313101ada04ee535bdc9448c975dc | increment patch version, | jwChung/Experimentalism,jwChung/Experimentalism | build/CommonAssemblyInfo.cs | build/CommonAssemblyInfo.cs | using System.Reflection;
using System.Resources;
using System.Runtime.InteropServices;
[assembly: AssemblyCompany("Jin-Wook Chung")]
[assembly: AssemblyCopyright("Copyright (c) 2014, Jin-Wook Chung")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: Co... | using System.Reflection;
using System.Resources;
using System.Runtime.InteropServices;
[assembly: AssemblyCompany("Jin-Wook Chung")]
[assembly: AssemblyCopyright("Copyright (c) 2014, Jin-Wook Chung")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: Co... | mit | C# |
aa48f34f99754be62b2cba2904d090ede0117c15 | test pushing package to symbol server. | jwChung/Experimentalism,jwChung/Experimentalism | build/CommonAssemblyInfo.cs | build/CommonAssemblyInfo.cs | using System.Reflection;
using System.Resources;
using System.Runtime.InteropServices;
[assembly: AssemblyCompany("Jin-Wook Chung")]
[assembly: AssemblyCopyright("Copyright (c) 2014, Jin-Wook Chung")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: Co... | using System.Reflection;
using System.Resources;
using System.Runtime.InteropServices;
[assembly: AssemblyCompany("Jin-Wook Chung")]
[assembly: AssemblyCopyright("Copyright (c) 2014, Jin-Wook Chung")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: Co... | mit | C# |
7a8f3bbdcf2536506b2f234815a1d8badf6d7bac | Update HeightCalculatorFromBones.cs | cwesnow/Net_Fiddle | 2017oct/HeightCalculatorFromBones.cs | 2017oct/HeightCalculatorFromBones.cs | // Original Source Information
// Author: GitGub on Reddit
// Link: https://www.reddit.com/r/learnprogramming/comments/77a49n/c_help_refactoring_an_ugly_method_with_lots_of_if/
// Refactored using .NET Fiddle - https://dotnetfiddle.net/F8UcJW
using System;
public class Program
{
static Random random = new Rando... | // Original Source Information
// Author: GitGub on Reddit
// Link: https://www.reddit.com/r/learnprogramming/comments/77a49n/c_help_refactoring_an_ugly_method_with_lots_of_if/
// Refactored using .NET Fiddle - https://dotnetfiddle.net/F8UcJW
using System;
public class Program
{
static Random random = new Rando... | mit | C# |
97093e87807c841256734a66d94d9f49c16ab3ab | Update PointShapeExtensions.cs | wieslawsoltes/Draw2D,wieslawsoltes/Draw2D,wieslawsoltes/Draw2D | src/Draw2D.ViewModels/Shapes/Extensions/PointShapeExtensions.cs | src/Draw2D.ViewModels/Shapes/Extensions/PointShapeExtensions.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 Spatial;
namespace Draw2D.ViewModels.Shapes
{
public static class PointShapeExtensions
{
public static Point2 ToPoint2(this IPointShape poin... | // 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 Spatial;
namespace Draw2D.ViewModels.Shapes
{
public static class PointShapeExtensions
{
public static Point2 ToPoint2(this IPointShape poin... | mit | C# |
fd99aa89f20c5bf07615bb887862a22189283ef3 | Update AuthTest. | jsimonweb/csharp-docs-samples,GoogleCloudPlatform/dotnet-docs-samples,jsimonweb/csharp-docs-samples,GoogleCloudPlatform/dotnet-docs-samples,jsimonweb/csharp-docs-samples,GoogleCloudPlatform/dotnet-docs-samples,jsimonweb/csharp-docs-samples,GoogleCloudPlatform/dotnet-docs-samples | auth/AuthTest/AuthTest.cs | auth/AuthTest/AuthTest.cs | /*
* Copyright (c) 2015 Google 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.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | /*
* Copyright (c) 2015 Google 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.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | apache-2.0 | C# |
9530b7611dd98f19d336e5e1a7d3807ff44af87e | Stop on ctrl-c. | themotleyfool/NuGet.Lucene,googol/NuGet.Lucene,Stift/NuGet.Lucene | source/NuGet.Lucene.Web.OwinHost.Sample/Program.cs | source/NuGet.Lucene.Web.OwinHost.Sample/Program.cs | using System;
using Microsoft.Owin.Hosting;
using System.Threading;
namespace NuGet.Lucene.Web.OwinHost.Sample
{
class Program
{
static void Main(string[] args)
{
const string baseAddress = "http://localhost:9000/";
var cancelToken = new CancellationTokenSource();
... | using System;
using Microsoft.Owin.Hosting;
namespace NuGet.Lucene.Web.OwinHost.Sample
{
class Program
{
static void Main(string[] args)
{
const string baseAddress = "http://localhost:9000/";
try
{
using (WebApp.Start<Startup>(baseAddress))
... | apache-2.0 | C# |
aeeaaf0e8fd9f32e8178e406481c11dfd72184a5 | Add missing call to set content root on WebHostBuilder | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore | samples/MusicStore/Program.cs | samples/MusicStore/Program.cs | using System;
using System.IO;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Server.HttpSys;
using Microsoft.Extensions.Configuration;
namespace MusicStore
{
public static class Program
{
public static void Main(string[] args)
{
var config = new ConfigurationBuilder... | using System;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Server.HttpSys;
using Microsoft.Extensions.Configuration;
namespace MusicStore
{
public static class Program
{
public static void Main(string[] args)
{
var config = new ConfigurationBuilder()
... | apache-2.0 | C# |
b30597b8f167064a127328de20f33e4b727a1e68 | Change the seed saved in NBXplorer to hot wallet (#1652) | btcpayserver/btcpayserver,btcpayserver/btcpayserver,btcpayserver/btcpayserver,btcpayserver/btcpayserver | BTCPayServer/Views/Wallets/WalletSigningMenu.cshtml | BTCPayServer/Views/Wallets/WalletSigningMenu.cshtml | @model (string CryptoCode, bool NBXSeedAvailable)
<div class="dropdown">
<button class="btn btn-primary dropdown-toggle" type="button" id="SendMenu" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Sign with...
</button>
<div class="dropdown-menu" aria-labelledby="SendMenu">
... | @model (string CryptoCode, bool NBXSeedAvailable)
<div class="dropdown">
<button class="btn btn-primary dropdown-toggle" type="button" id="SendMenu" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Sign with...
</button>
<div class="dropdown-menu" aria-labelledby="SendMenu">
... | mit | C# |
7719c91694f96f0e36194a035ffdeb67885b3778 | remove default route | PriceIsByte/WebAPI,PriceIsByte/WebAPI | CountingKs/App_Start/WebApiConfig.cs | CountingKs/App_Start/WebApiConfig.cs | using Newtonsoft.Json.Serialization;
using System.Linq;
using System.Net.Http.Formatting;
using System.Web.Http;
namespace CountingKs
{
public static class WebApiConfig
{
public static void Register(HttpConfiguration config)
{
config.Routes.MapHttpRoute(
name: "Food",
route... | using Newtonsoft.Json.Serialization;
using System.Linq;
using System.Net.Http.Formatting;
using System.Web.Http;
namespace CountingKs
{
public static class WebApiConfig
{
public static void Register(HttpConfiguration config)
{
config.Routes.MapHttpRoute(
name: "Food",
route... | unlicense | C# |
9fe0a20dd8eb6818726f10b4c9e4e21dc2402ccb | fix namespace | Pondidum/Dashen,Pondidum/Dashen,Pondidum/Dashen,Pondidum/Dashen | Dashen/Infrastructure/JsonContent.cs | Dashen/Infrastructure/JsonContent.cs | using System.IO;
using System.Net;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Threading.Tasks;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace Dashen.Infrastructure
{
public class JsonContent : HttpContent
{
private readonly JToken _value;
public JsonContent(JToken value)
... | using System.IO;
using System.Net;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Threading.Tasks;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace Dashen.Endpoints.Stats
{
public class JsonContent : HttpContent
{
private readonly JToken _value;
public JsonContent(JToken value)
... | lgpl-2.1 | C# |
a65237072d13b94435850546637a4b948475d9e9 | Clean up publish code | github/VisualStudio,github/VisualStudio,github/VisualStudio | src/GitHub.App/Services/RepositoryPublishService.cs | src/GitHub.App/Services/RepositoryPublishService.cs | using System;
using System.ComponentModel.Composition;
using System.IO;
using System.Reactive.Linq;
using System.Reactive.Threading.Tasks;
using GitHub.Api;
using GitHub.Models;
using LibGit2Sharp;
namespace GitHub.Services
{
[Export(typeof(IRepositoryPublishService))]
[PartCreationPolicy(CreationPolicy.Share... | using System;
using System.ComponentModel.Composition;
using System.IO;
using System.Reactive.Linq;
using System.Reactive.Threading.Tasks;
using GitHub.Api;
using GitHub.Models;
using LibGit2Sharp;
namespace GitHub.Services
{
[Export(typeof(IRepositoryPublishService))]
[PartCreationPolicy(CreationPolicy.Share... | mit | C# |
c90bc0e39b124ec57604fc8727548f475faa81e8 | Update default converter to handle exception type | stoiveyp/alexa-skills-dotnet,timheuer/alexa-skills-dotnet | Alexa.NET/Request/Type/Converters/DefaultRequestTypeConverter.cs | Alexa.NET/Request/Type/Converters/DefaultRequestTypeConverter.cs | namespace Alexa.NET.Request.Type
{
public class DefaultRequestTypeConverter : IRequestTypeConverter
{
public bool CanConvert(string requestType)
{
return requestType == "IntentRequest" || requestType == "LaunchRequest" || requestType == "SessionEndedRequest" || requestType == "Syste... | namespace Alexa.NET.Request.Type
{
public class DefaultRequestTypeConverter : IRequestTypeConverter
{
public bool CanConvert(string requestType)
{
return requestType == "IntentRequest" || requestType == "LaunchRequest" || requestType == "SessionEndedRequest";
}
publ... | mit | C# |
56799c4378680bd2b1ec395784154f301f3ce565 | change the way caculate price for order item | phamhuyhoang95/online-store-dotnetcore | Database/Services.cs/CartServices.cs | Database/Services.cs/CartServices.cs |
using System.Collections.Generic;
namespace project.Services
{
public class CartServices : ICartServices
{
private readonly CartRespository cartRespository;
private readonly ProductRepository productRepository;
private readonly OrderProductRespository orderProductRespository;
p... |
using System.Collections.Generic;
namespace project.Services
{
public class CartServices : ICartServices
{
private readonly CartRespository cartRespository;
private readonly ProductRepository productRepository;
private readonly OrderProductRespository orderProductRespository;
p... | mit | C# |
43ece6172f8805572749e25b54baacedec730899 | Bump version | oozcitak/imagelistview | ImageListView/Properties/AssemblyInfo.cs | ImageListView/Properties/AssemblyInfo.cs | // ImageListView - A listview control for image files
// Copyright (C) 2009 Ozgur Ozcitak
//
// 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/... | // ImageListView - A listview control for image files
// Copyright (C) 2009 Ozgur Ozcitak
//
// 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/... | apache-2.0 | C# |
0ff5aee88dee0b6634f84abe3b8f8b3a05f5bbef | Add description to envelope. | NaosFramework/Naos.MessageBus,NaosProject/Naos.MessageBus | Naos.MessageBus.DataContract/Envelope.cs | Naos.MessageBus.DataContract/Envelope.cs | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="Envelope.cs" company="Naos">
// Copyright 2015 Naos
// </copyright>
// ----------------------------------------------------------------------------------------------------------... | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="Envelope.cs" company="Naos">
// Copyright 2015 Naos
// </copyright>
// ----------------------------------------------------------------------------------------------------------... | mit | C# |
0d316e1d37ea78a5adee0c13f9a444f1a60cc0e2 | work on CivtracApiError returning | buzzware/cascade | StandardExceptionsDotNet/StandardExceptions/StandardException.cs | StandardExceptionsDotNet/StandardExceptions/StandardException.cs | using System;
namespace StandardExceptions {
public class StandardException : Exception {
public const string DefaultMessage = "An error occurred that could not be identified";
public const int DefaultStatus = 500;
public int Status { get; private set; }
public object Result { get; set; } = null;
publ... | using System;
namespace StandardExceptions {
public class StandardException : Exception {
public const string DefaultMessage = "An error occurred that could not be identified";
public const int DefaultStatus = 500;
public int Status { get; private set; }
public object Data { get; set; } = null;
pub... | mit | C# |
20daf0649fa9d132684a5e9c001e3ffcce07b0db | Add stubbed clean target. | nuke-build/nuke,nuke-build/nuke,nuke-build/nuke,nuke-build/nuke | bootstrapping/DefaultBuild.cs | bootstrapping/DefaultBuild.cs | using System;
using System.Linq;
using Nuke.Common;
using Nuke.Common.Tools.MSBuild;
using Nuke.Core;
using static Nuke.Common.IO.FileSystemTasks;
using static Nuke.Common.Tools.DotNet.DotNetTasks;
using static Nuke.Common.Tools.MSBuild.MSBuildTasks;
using static Nuke.Common.Tools.NuGet.NuGetTasks;
using static Nuke.C... | using System;
using System.Linq;
using Nuke.Common;
using Nuke.Common.Tools.MSBuild;
using Nuke.Core;
using static Nuke.Common.IO.FileSystemTasks;
using static Nuke.Common.Tools.DotNet.DotNetTasks;
using static Nuke.Common.Tools.MSBuild.MSBuildTasks;
using static Nuke.Common.Tools.NuGet.NuGetTasks;
using static Nuke.C... | mit | C# |
2d56d02bea6cc23c4d87247d828507e6410f21f0 | Fix wrong sorting and order numbers | roman-yagodin/R7.University,roman-yagodin/R7.University,roman-yagodin/R7.University | R7.University/ModelExtensions/DivisionExtensions.cs | R7.University/ModelExtensions/DivisionExtensions.cs | //
// DivisionExtensions.cs
//
// Author:
// Roman M. Yagodin <roman.yagodin@gmail.com>
//
// Copyright (c) 2016 Roman M. Yagodin
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundatio... | //
// DivisionExtensions.cs
//
// Author:
// Roman M. Yagodin <roman.yagodin@gmail.com>
//
// Copyright (c) 2016 Roman M. Yagodin
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundatio... | agpl-3.0 | C# |
7b99fc92a1f26e5f910c70b3deed2929136e512f | test failing build compile error | jezzay/Test-Travis-CI,jezzay/Test-Travis-CI | TestWebApp/TestWebApp/Controllers/HomeController.cs | TestWebApp/TestWebApp/Controllers/HomeController.cs | using System.Web.Mvc;
namespace TestWebApp.Controllers
{
public class HomeController : Controller
{
public ActionResult Index()
{
ViewBag.Title = "Home Page test"
return View();
}
}
}
| using System.Web.Mvc;
namespace TestWebApp.Controllers
{
public class HomeController : Controller
{
public ActionResult Index()
{
ViewBag.Title = "Home Page test";
return View();
}
}
} | mit | C# |
9991ff58499d23317e9109972acdb93deba3052e | Update WalletWasabi/Services/Terminate/TerminateService.cs | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet | WalletWasabi/Services/Terminate/TerminateService.cs | WalletWasabi/Services/Terminate/TerminateService.cs | using System;
using System.Threading;
using System.Threading.Tasks;
using WalletWasabi.Logging;
namespace WalletWasabi.Services.Terminate
{
public class TerminateService
{
private Func<Task> _terminateApplicationAsync;
private const long TerminateStatusIdle = 0;
private const long TerminateStatusInProgress = ... | using System;
using System.Threading;
using System.Threading.Tasks;
using WalletWasabi.Logging;
namespace WalletWasabi.Services.Terminate
{
public class TerminateService
{
private Func<Task> _terminateApplicationAsync;
private const long TerminateStatusIdle = 0;
private const long TerminateStatusInProgress = ... | mit | C# |
bbc435a34673e5babc596284cf365448aa6fc093 | Make helper class public | deckar01/libsodium-net,deckar01/libsodium-net,adamcaudill/libsodium-net,fraga/libsodium-net,fraga/libsodium-net,bitbeans/libsodium-net,tabrath/libsodium-core,adamcaudill/libsodium-net,BurningEnlightenment/libsodium-net,BurningEnlightenment/libsodium-net,bitbeans/libsodium-net | libsodium-net/Helper.cs | libsodium-net/Helper.cs | using System;
using System.Linq;
namespace Sodium
{
/// <summary>
/// Various utility methods.
/// </summary>
public static class Helper
{
/// <summary>
/// Takes a byte array and returns a hex-encoded string
/// </summary>
/// <param name="data">Data to be encoded</param>
/// <returns>H... | using System;
using System.Linq;
namespace Sodium
{
internal static class Helper
{
/// <summary>
/// Takes a byte array and returns a hex-encoded string
/// </summary>
/// <param name="data">Data to be encoded</param>
/// <returns>Hex-encoded string, lowercase.</returns>
public static stri... | mit | C# |
61f25dbae71b3a14e8b4a101f1fd485cfcefbe5a | Update AzureBlobTests.cs | A51UK/File-Repository | File-Repository-Tests/AzureBlobTests.cs | File-Repository-Tests/AzureBlobTests.cs | /*
* Copyright 2017 Craig Lee Mark Adams
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agree... | using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Generic;
using System.Text;
namespace ile_Repository_Tests
{
[TestClass]
class AzureBlobTests
{
}
}
| apache-2.0 | C# |
9d1210bfa4dfd42ffe8f15b7284a55d0f25f61af | Change prop type to CorLibTypeSig | Arthur2e5/dnlib,ilkerhalil/dnlib,picrap/dnlib,kiootic/dnlib,jorik041/dnlib,modulexcite/dnlib,0xd4d/dnlib,yck1509/dnlib,ZixiangBoy/dnlib | dot10/dotNET/Hi/ICorLibTypes.cs | dot10/dotNET/Hi/ICorLibTypes.cs | namespace dot10.dotNET.Hi {
/// <summary>
/// Access to .NET core library's simple types
/// </summary>
public interface ICorLibTypes {
/// <summary>
/// Gets a <c>System.Void</c>
/// </summary>
CorLibTypeSig Void { get; }
/// <summary>
/// Gets a <c>System.Boolean</c>
/// </summary>
CorLibTypeSig... | namespace dot10.dotNET.Hi {
/// <summary>
/// Access to .NET core library's simple types
/// </summary>
public interface ICorLibTypes {
/// <summary>
/// Gets a <c>System.Void</c>
/// </summary>
ITypeSig Void { get; }
/// <summary>
/// Gets a <c>System.Boolean</c>
/// </summary>
ITypeSig Boolean {... | mit | C# |
c10dc6ee84b9587fcb97d4d0add601157793679b | test commit | dekloni/MarketPlace,dekloni/MarketPlace,dekloni/MarketPlace | MarketPlaceUI/App_Start/BundleConfig.cs | MarketPlaceUI/App_Start/BundleConfig.cs | using System.Web;
using System.Web.Optimization;
namespace MarketPlaceUI
{
public class BundleConfig
{
// For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
public static void RegisterBundles(BundleCollection bundles)
{
bundles.A... | using System.Web;
using System.Web.Optimization;
namespace MarketPlaceUI
{
public class BundleConfig
{
// For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
public static void RegisterBundles(BundleCollection bundles)
{
bundles.A... | unlicense | C# |
23c5256f3f6723e1a7dd8b70f12e51119985ba81 | Fix issue with AllRowsConstraint and markdown failure messages | Seddryck/NBi,Seddryck/NBi | NBi.NUnit/Query/AllRowsConstraint.cs | NBi.NUnit/Query/AllRowsConstraint.cs | using System;
using System.Data;
using System.Linq;
using NBi.Core;
using NBi.Core.ResultSet;
using NBi.Core.Calculation;
using NBi.Framework.FailureMessage;
using NUnitCtr = NUnit.Framework.Constraints;
using NBi.Framework;
namespace NBi.NUnit.Query
{
public class AllRowsConstraint : RowCountFilterConstraint
... | using System;
using System.Data;
using System.Linq;
using NBi.Core;
using NBi.Core.ResultSet;
using NBi.Core.Calculation;
using NBi.Framework.FailureMessage;
using NUnitCtr = NUnit.Framework.Constraints;
using NBi.Framework;
namespace NBi.NUnit.Query
{
public class AllRowsConstraint : RowCountFilterConstraint
... | apache-2.0 | C# |
0b638d87c7339e914d6c0b6fdfd74575c482c0ad | Use Pins, not ints. We ain't Arduino! | treehopper-electronics/treehopper-sdk,treehopper-electronics/treehopper-sdk,treehopper-electronics/treehopper-sdk,treehopper-electronics/treehopper-sdk,treehopper-electronics/treehopper-sdk,treehopper-electronics/treehopper-sdk | NET/Demos/Console/SoftPwm/Program.cs | NET/Demos/Console/SoftPwm/Program.cs | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Treehopper.Demos.SoftPwm
{
class Program
{
static void Main(string[] args)
{
Run();
}
static TreehopperUsb board;
... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Treehopper.Demos.SoftPwm
{
class Program
{
static void Main(string[] args)
{
Run();
}
static TreehopperUsb board;
... | mit | C# |
ca7e68788d4cba97d973c808f3cab484e5b0e7ef | update quickstart region tag | jsimonweb/csharp-docs-samples,jsimonweb/csharp-docs-samples,GoogleCloudPlatform/dotnet-docs-samples,GoogleCloudPlatform/dotnet-docs-samples,GoogleCloudPlatform/dotnet-docs-samples,GoogleCloudPlatform/dotnet-docs-samples,jsimonweb/csharp-docs-samples,jsimonweb/csharp-docs-samples | video/api/QuickStart/Program.cs | video/api/QuickStart/Program.cs | // Copyright(c) 2017 Google 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.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | // Copyright(c) 2017 Google 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.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | apache-2.0 | C# |
0afdf5b343941ea59f936f5692b097c23200998a | Use ORM instead of open-coded SQL | Dynalon/Rainy,Dynalon/Rainy,Dynalon/Rainy,Dynalon/Rainy | Rainy/WebService/Admin/StatusService.cs | Rainy/WebService/Admin/StatusService.cs | using ServiceStack.ServiceHost;
using Rainy.Db;
using ServiceStack.OrmLite;
using System;
using ServiceStack.Common.Web;
using Tomboy.Db;
namespace Rainy.WebService.Admin
{
[Route("/api/admin/status/","GET, OPTIONS",
Summary = "Get status information about the server.")]
[AdminPasswordRequired]
public class... | using ServiceStack.ServiceHost;
using Rainy.Db;
using ServiceStack.OrmLite;
using System;
using ServiceStack.Common.Web;
namespace Rainy.WebService.Admin
{
[Route("/api/admin/status/","GET, OPTIONS",
Summary = "Get status information about the server.")]
[AdminPasswordRequired]
public class StatusRequest : ... | agpl-3.0 | C# |
e44667e5e073016b471c13d7cce1427d0db89be5 | Use MinValue instead | smoogipoo/osu,peppy/osu-new,peppy/osu,smoogipoo/osu,smoogipoo/osu,NeoAdonis/osu,smoogipooo/osu,NeoAdonis/osu,peppy/osu,ppy/osu,UselessToucan/osu,NeoAdonis/osu,peppy/osu,ppy/osu,UselessToucan/osu,ppy/osu,UselessToucan/osu | osu.Game/Overlays/OnlineOverlay.cs | osu.Game/Overlays/OnlineOverlay.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Game.Graphics.UserInterface;
namespace osu.Game.Overlays
{
public abstract class On... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Game.Graphics.UserInterface;
namespace osu.Game.Overlays
{
public abstract class On... | mit | C# |
38807299b3fd6d442bb86407c98c61c9e3df016c | Update code | sakapon/Samples-2014,sakapon/Samples-2014,sakapon/Samples-2014 | RxSample/MouseRx2Wpf/MainWindow.xaml.cs | RxSample/MouseRx2Wpf/MainWindow.xaml.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reactive.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 S... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reactive.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 S... | mit | C# |
b5fa3b5ff057a5f36e899b3668cd3b640d081efe | Update demo | sunkaixuan/SqlSugar | Src/Asp.Net/SqlServerTest/Program.cs | Src/Asp.Net/SqlServerTest/Program.cs | using System;
namespace OrmTest
{
class Program
{
/// <summary>
/// Set up config.cs file and start directly F5
/// 设置Config.cs文件直接F5启动例子
/// </summary>
/// <param name="args"></param>
static void Main(string[] args)
{
//Demo
De... | using System;
namespace OrmTest
{
class Program
{
/// <summary>
/// Set up config.cs file and start directly F5
/// 设置Config.cs文件直接F5启动例子
/// </summary>
/// <param name="args"></param>
static void Main(string[] args)
{
//Demo
De... | apache-2.0 | C# |
de9a81b03b1558c10e6fb7042438b02ff48e45dd | add time | NDark/ndinfrastructure,NDark/ndinfrastructure | Unity/StateMachine/StateIndexBase.cs | Unity/StateMachine/StateIndexBase.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class StateIndexBase<T>
{
public StateIndexBase()
{
}
public StateIndexBase( T _InitState )
{
m_NextValue = m_CurrentValue = m_PreviousValue = _InitState ;
}
public virtual void CallInit( Dictionary<T,TransitionSet> _Tr... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class StateIndexBase<T>
{
public StateIndexBase()
{
}
public StateIndexBase( T _InitState )
{
m_NextValue = m_CurrentValue = m_PreviousValue = _InitState ;
}
public virtual void CallInit( Dictionary<T,TransitionSet> _Tr... | mit | C# |
fd9b8f7c81681e63e1b849e25930a6be2e8a1271 | Fix wrong parsing of tower state. | babelshift/SteamWebAPI2 | SteamWebAPI2/Models/DOTA2/TowerState.cs | SteamWebAPI2/Models/DOTA2/TowerState.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SteamWebAPI2.Models.DOTA2
{
public class TowerState
{
public TowerState(int towerState)
{
IsAncientBottomAlive = ((towerState >> 10) & 1) == 1 ? true : fals... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SteamWebAPI2.Models.DOTA2
{
public class TowerState
{
public TowerState(int towerState)
{
IsAncientTopAlive = ((towerState >> 10) & 1) == 1 ? true : false;
... | mit | C# |
8d668a9c15f891fd3858414c836a9f6af84be275 | Add MethodImplAttributes.AggressiveOptimization (dotnet/coreclr#20274) (#32930) | mmitche/corefx,BrennanConroy/corefx,wtgodbe/corefx,mmitche/corefx,ericstj/corefx,wtgodbe/corefx,shimingsg/corefx,mmitche/corefx,BrennanConroy/corefx,BrennanConroy/corefx,ericstj/corefx,shimingsg/corefx,ViktorHofer/corefx,ericstj/corefx,ViktorHofer/corefx,mmitche/corefx,ptoonen/corefx,mmitche/corefx,wtgodbe/corefx,ptoon... | src/Common/src/CoreLib/System/Reflection/MethodImplAttributes.cs | src/Common/src/CoreLib/System/Reflection/MethodImplAttributes.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
namespace System.Reflection
{
// This Enum matchs the CorMethodImpl defined in CorHdr.h
public enum MethodIm... | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
namespace System.Reflection
{
// This Enum matchs the CorMethodImpl defined in CorHdr.h
public enum MethodIm... | mit | C# |
9ec7beb2992b6f08017b2e53212bdfd5049626d9 | Adjust XML documentation | zedr0n/AngleSharp.Local,FlorianRappl/AngleSharp,AngleSharp/AngleSharp,FlorianRappl/AngleSharp,AngleSharp/AngleSharp,zedr0n/AngleSharp.Local,Livven/AngleSharp,Livven/AngleSharp,Livven/AngleSharp,AngleSharp/AngleSharp,AngleSharp/AngleSharp,FlorianRappl/AngleSharp,zedr0n/AngleSharp.Local,FlorianRappl/AngleSharp,AngleSharp... | AngleSharp/Dom/StyleSheetList.cs | AngleSharp/Dom/StyleSheetList.cs | namespace AngleSharp.Dom
{
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
/// <summary>
/// A collection of CSS elements.
/// </summary>
sealed class StyleSheetList : IStyleSheetList
{
#region Fields
readonly IEnumerabl... | namespace AngleSharp.Dom
{
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
/// <summary>
/// A collection of CSS elements.
/// </summary>
sealed class StyleSheetList : IStyleSheetList
{
#region Fields
readonly IEnumerabl... | mit | C# |
aeaf7f237c686a9fd3ecf0d9e6f7a12cd1efa7a3 | Refactor AnimationOffset routine, for fewer calls. Solves issue #3. | jguarShark/Unity2D-Components,cmilr/Unity2D-Components | Behaviours/AnimationBehaviour.cs | Behaviours/AnimationBehaviour.cs | using UnityEngine;
using System.Collections;
public class AnimationBehaviour : CacheBehaviour {
protected float previousX = 0f;
protected float previousY = 0f;
protected void OffsetAnimation(float xOffset, float yOffset)
{
if (xOffset != previousX || yOffset != previousY)
transfo... | using UnityEngine;
using System.Collections;
public class AnimationBehaviour : CacheBehaviour {
protected void OffsetAnimation(float xOffset, float yOffset)
{
transform.localPosition = new Vector3(xOffset, yOffset, 0);
}
}
| mit | C# |
cbaf99ac0fe7595d4fefebe43d8ddb8b6017c8f0 | Make Counter.Value a property instead of a field | bretcope/BosunReporter.NET | BosunReporter/Metrics/Counter.cs | BosunReporter/Metrics/Counter.cs | using System;
using System.Threading;
using BosunReporter.Infrastructure;
namespace BosunReporter.Metrics
{
/// <summary>
/// A general-purpose manually incremented long-integer counter.
/// See https://github.com/bretcope/BosunReporter.NET/blob/master/docs/MetricTypes.md#counter
/// </summary>
pu... | using System;
using System.Threading;
using BosunReporter.Infrastructure;
namespace BosunReporter.Metrics
{
/// <summary>
/// A general-purpose manually incremented long-integer counter.
/// See https://github.com/bretcope/BosunReporter.NET/blob/master/docs/MetricTypes.md#counter
/// </summary>
pu... | mit | C# |
9999830b506028ef9c1b25cce697bbcd70552875 | Change IsPortUnused() implementation because of SO_REUSEPORT on Linux | Abc-Arbitrage/Zebus | src/Abc.Zebus/Util/TcpUtil.cs | src/Abc.Zebus/Util/TcpUtil.cs | using System.Linq;
using System.Net;
using System.Net.NetworkInformation;
using System.Net.Sockets;
namespace Abc.Zebus.Util
{
internal static class TcpUtil
{
public static int GetRandomUnusedPort()
{
var listener = new TcpListener(IPAddress.Any, 0);
listener.Start();
... | using System;
using System.Net;
using System.Net.Sockets;
namespace Abc.Zebus.Util
{
internal static class TcpUtil
{
public static int GetRandomUnusedPort()
{
var listener = new TcpListener(IPAddress.Any, 0);
listener.Start();
var port = ((IPEndPoint)listene... | mit | C# |
c0af3632f18d37ebcf6a0092dae79a9bbb70f3c2 | Fix race condition in NUnit integration | csf-dev/CSF.Screenplay,csf-dev/CSF.Screenplay,csf-dev/CSF.Screenplay | CSF.Screenplay.NUnit/IntegrationReader.cs | CSF.Screenplay.NUnit/IntegrationReader.cs | using System;
using System.Reflection;
using CSF.Screenplay.Integration;
using NUnit.Framework.Interfaces;
namespace CSF.Screenplay.NUnit
{
/// <summary>
/// Helper type which provides access to the current Screenplay integration.
/// </summary>
public class IntegrationReader
{
static object syncRoot;
... | using System;
using System.Reflection;
using CSF.Screenplay.Integration;
using NUnit.Framework.Interfaces;
namespace CSF.Screenplay.NUnit
{
/// <summary>
/// Helper type which provides access to the current Screenplay integration.
/// </summary>
public class IntegrationReader
{
IScreenplayIntegration ca... | mit | C# |
8feae0306a66cee795fe589f2d04e9106e8ebdbb | Bump version to 0.8.5 | 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# |
60b5ace93d16dcfff7c60845fd85bda1ff3d113b | improve reliability of test | splitice/IPTables.Net,splitice/IPTables.Net,splitice/IPTables.Net,splitice/IPTables.Net | IPTables.Net.Tests/IptablesLibraryTest.cs | IPTables.Net.Tests/IptablesLibraryTest.cs | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using IPTables.Net.Iptables.NativeLibrary;
using NUnit.Framework;
namespace IPTables.Net.Tests
{
[TestFixture]
class IptablesLibraryTest
{
public static bool IsLinux
{
... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using IPTables.Net.Iptables.NativeLibrary;
using NUnit.Framework;
namespace IPTables.Net.Tests
{
[TestFixture]
class IptablesLibraryTest
{
public static bool IsLinux
{
... | apache-2.0 | C# |
588cbc7ea8aa5ba40a375db769428f78f606c0bd | Add missing TestAttribute to SystemClockTest. | malcolmr/nodatime,malcolmr/nodatime,nodatime/nodatime,malcolmr/nodatime,jskeet/nodatime,malcolmr/nodatime,BenJenkinson/nodatime,jskeet/nodatime,nodatime/nodatime,BenJenkinson/nodatime | src/NodaTime.Test/SystemClockTest.cs | src/NodaTime.Test/SystemClockTest.cs | // Copyright 2011 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;
using NUnit.Framework;
namespace NodaTime.Test
{
public class SystemClockTest
{
[Test]
public void InstanceNow()
... | // Copyright 2011 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;
using NUnit.Framework;
namespace NodaTime.Test
{
public class SystemClockTest
{
public void InstanceNow()
{
... | apache-2.0 | C# |
ae6f6904024a40cba6f85b919b31537021c71b89 | Add NeedsCpp to LinkWithAttribute | cwensley/maccore,jorik041/maccore,mono/maccore | src/ObjCRuntime/LinkWithAttribute.cs | src/ObjCRuntime/LinkWithAttribute.cs | //
// Authors: Jeffrey Stedfast
//
// Copyright 2011 Xamarin Inc.
//
// 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,... | //
// Authors: Jeffrey Stedfast
//
// Copyright 2011 Xamarin Inc.
//
// 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,... | apache-2.0 | C# |
cc4ee2df0591301b420675255a28e0612862654f | add ToString() override to Beatmap class | EVAST9919/osu,UselessToucan/osu,2yangk23/osu,ZLima12/osu,NeoAdonis/osu,johnneijzen/osu,peppy/osu,smoogipooo/osu,2yangk23/osu,peppy/osu,ppy/osu,ZLima12/osu,NeoAdonis/osu,EVAST9919/osu,peppy/osu-new,smoogipoo/osu,smoogipoo/osu,smoogipoo/osu,johnneijzen/osu,ppy/osu,UselessToucan/osu,NeoAdonis/osu,peppy/osu,UselessToucan/o... | osu.Game/Beatmaps/Beatmap.cs | osu.Game/Beatmaps/Beatmap.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Game.Beatmaps.Timing;
using osu.Game.Rulesets.Objects;
using System.Collections.Generic;
using System.Linq;
using osu.Game.Beatmaps.ControlPoints;
using Newtons... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Game.Beatmaps.Timing;
using osu.Game.Rulesets.Objects;
using System.Collections.Generic;
using System.Linq;
using osu.Game.Beatmaps.ControlPoints;
using Newtons... | mit | C# |
f93cdc8d19994cb78133a874b0676bcf9dccb30f | Fix Android compilation issues | peppy/osu-framework,ppy/osu-framework,peppy/osu-framework,peppy/osu-framework,smoogipooo/osu-framework,ZLima12/osu-framework,ZLima12/osu-framework,smoogipooo/osu-framework,ppy/osu-framework,ppy/osu-framework | osu.Framework.Android/AndroidGameWindow.cs | osu.Framework.Android/AndroidGameWindow.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.Configuration;
using osu.Framework.Platform;
using osuTK;
using osuTK.Graphics;
namespace 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;
using System.Collections.Generic;
using osu.Framework.Configuration;
using osu.Framework.Platform;
using osuTK;
using osuTK.Graphics;
using WindowState = o... | mit | C# |
e07aa94fc8701f0a2807ef04cbca20d26f75566c | Allow reloading ipc source | NeoAdonis/osu,ppy/osu,smoogipoo/osu,smoogipoo/osu,peppy/osu,UselessToucan/osu,peppy/osu,ppy/osu,EVAST9919/osu,smoogipoo/osu,ZLima12/osu,NeoAdonis/osu,smoogipooo/osu,2yangk23/osu,peppy/osu,peppy/osu-new,UselessToucan/osu,EVAST9919/osu,UselessToucan/osu,NeoAdonis/osu,johnneijzen/osu,johnneijzen/osu,ZLima12/osu,2yangk23/o... | osu.Game.Tournament/Screens/SetupScreen.cs | osu.Game.Tournament/Screens/SetupScreen.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.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Game.Graphics.Sprites;
using osu.Game.Graph... | // 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.Allocation;
using osu.Framework.Graphics.Sprites;
using osu.Game.Tournament.IPC;
namespace osu.Game.Tournament.Screens
{
public class SetupScreen... | mit | C# |
3b42e9fd8746d7475ed699cac6394e617e8083ae | Return int or decimal for usage stats | MasterOfSomeTrades/CommentEverythingCommunications | CEComms/ClassLibrary1/Communications/Twilio/User/Usage.cs | CEComms/ClassLibrary1/Communications/Twilio/User/Usage.cs | using CommentEverythingCryptography.Encryption;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Twilio;
namespace CEComms.Communications.Twilio.User {
public class Usage {
public decimal GetUsageThisMonth() {
IEncryption... | using CommentEverythingCryptography.Encryption;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Twilio;
namespace CEComms.Communications.Twilio.User {
public class Usage {
public double GetUsageThisMonth() {
IEncryptionP... | mit | C# |
5497b0f31f27a477f2c79f8d855dcf1a71f5d292 | comment Localizable | Lentosy/FileBrowser | MusicFiles/Models/Language/Localizable.cs | MusicFiles/Models/Language/Localizable.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FileBrowser.Models.Language {
/// <summary>
/// Interface that allows a class to be localized
/// </summary>
public interface Localizable {
void UpdateText();
}
}
| using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FileBrowser.Models.Language {
public interface Localizable {
void UpdateText();
}
}
| apache-2.0 | C# |
f3b162adb1ee8abda460a119e2772eeb106b9025 | add register service test | lvermeulen/Nanophone | test/Nanophone.RegistryHost.ConsulRegistry.Tests/ConsulRegistryHostShould.cs | test/Nanophone.RegistryHost.ConsulRegistry.Tests/ConsulRegistryHostShould.cs | using System;
using System.Linq;
using System.Threading.Tasks;
using Nanophone.Core;
using Xunit;
namespace Nanophone.RegistryHost.ConsulRegistry.Tests
{
public class ConsulRegistryHostShould
{
private readonly IRegistryHost _registryHost;
public ConsulRegistryHostShould()
{
... | using System;
using System.Linq;
using System.Threading.Tasks;
using Nanophone.Core;
using Xunit;
namespace Nanophone.RegistryHost.ConsulRegistry.Tests
{
public class ConsulRegistryHostShould
{
private readonly IRegistryHost _registryHost;
public ConsulRegistryHostShould()
{
... | mit | C# |
bed5e857df7d2af44ae5f4bbfa304f04be741da1 | Add missing license header and remove unused usings | peppy/osu-new,UselessToucan/osu,UselessToucan/osu,NeoAdonis/osu,UselessToucan/osu,ppy/osu,ppy/osu,smoogipoo/osu,smoogipoo/osu,peppy/osu,peppy/osu,NeoAdonis/osu,ppy/osu,NeoAdonis/osu,smoogipooo/osu,smoogipoo/osu,peppy/osu | osu.Game/Rulesets/Mods/IApplicableToAudio.cs | osu.Game/Rulesets/Mods/IApplicableToAudio.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.Mods
{
public interface IApplicableToAudio : IApplicableToTrack, IApplicableToSample
{
}
}
| using System;
using System.Collections.Generic;
using System.Text;
namespace osu.Game.Rulesets.Mods
{
public interface IApplicableToAudio : IApplicableToTrack, IApplicableToSample
{
}
}
| mit | C# |
b25d4a49dabc883ee4628fad81b6c518b1efbf5d | Fix test namespaces | brentstineman/nether,brentstineman/nether,navalev/nether,stuartleeks/nether,vflorusso/nether,stuartleeks/nether,ankodu/nether,brentstineman/nether,ankodu/nether,navalev/nether,vflorusso/nether,oliviak/nether,stuartleeks/nether,krist00fer/nether,vflorusso/nether,ankodu/nether,brentstineman/nether,brentstineman/nether,vf... | tests/Leaderboard/Nether.Leaderboard.Web.Tests/LeaderboardControllerTests.cs | tests/Leaderboard/Nether.Leaderboard.Web.Tests/LeaderboardControllerTests.cs | using Microsoft.AspNetCore.Mvc;
using Moq;
using Nether.Leaderboard.Data;
using Nether.Leaderboard.Web.Controllers;
using Nether.Leaderboard.Web.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Xunit;
namespace Nether.Leaderboard.Web.Tests
{
public cla... | using Microsoft.AspNetCore.Mvc;
using Moq;
using Nether.Leaderboard.Data;
using Nether.Leaderboard.Web.Controllers;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Xunit;
namespace Nether.Leaderboard.Web.Tests
{
public class LeaderboardControllerTests
{
... | mit | C# |
765b631cd8e4cbf38429f44ecaa495e0e0f82cca | Simplify merge tables method | paiden/Nett | Source/Nett.Coma/MergedConfig.cs | Source/Nett.Coma/MergedConfig.cs | namespace Nett.Coma
{
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Diagnostics.Debug;
internal class MergedConfig : IPersistableConfig
{
private const string AssertAtLeastOneConfig =
"Constructor should check that there is a config... | namespace Nett.Coma
{
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Diagnostics.Debug;
internal class MergedConfig : IPersistableConfig
{
private const string AssertAtLeastOneConfig =
"Constructor should check that there is a config... | mit | C# |
9dd7ed117ed150ab760286bb65bb7922b5778705 | change form acrion from non-existent Logoff to Logout | dotnet-architecture/eShopOnContainers,dotnet-architecture/eShopOnContainers,albertodall/eShopOnContainers,skynode/eShopOnContainers,skynode/eShopOnContainers,albertodall/eShopOnContainers,dotnet-architecture/eShopOnContainers,albertodall/eShopOnContainers,dotnet-architecture/eShopOnContainers,skynode/eShopOnContainers,... | src/Services/Identity/Identity.API/Views/Shared/_LoginPartial.cshtml | src/Services/Identity/Identity.API/Views/Shared/_LoginPartial.cshtml | @using Microsoft.AspNetCore.Identity
@using Microsoft.eShopOnContainers.Services.Identity.API.Models
@inject SignInManager<ApplicationUser> SignInManager
@inject UserManager<ApplicationUser> UserManager
@if (SignInManager.IsSignedIn(User))
{
<form asp-area="" asp-controller="Account" asp-action="Logout" method=... | @using Microsoft.AspNetCore.Identity
@using Microsoft.eShopOnContainers.Services.Identity.API.Models
@inject SignInManager<ApplicationUser> SignInManager
@inject UserManager<ApplicationUser> UserManager
@if (SignInManager.IsSignedIn(User))
{
<form asp-area="" asp-controller="Account" asp-action="LogOff" method=... | mit | C# |
1488a3767c77ce533f095a9e220773d099c99e61 | Update root lib to Glimpse.Common | Glimpse/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,zanetdev/Glimpse.Prototype,Glimpse/Glimpse.Prototype,Glimpse/Glimpse.Prototype,pranavkm/Glimpse.Prototype,pranavkm/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,pranavkm/Glimpse.Prototype,mi... | src/Glimpse.Common/Reflection/ReflectionDiscoverableCollection.cs | src/Glimpse.Common/Reflection/ReflectionDiscoverableCollection.cs | using System;
using System.Collections;
using System.Collections.Generic;
namespace Glimpse
{
public class ReflectionDiscoverableCollection<T> : List<T>, IDiscoverableCollection<T>
{
private readonly ITypeService _typeService;
public ReflectionDiscoverableCollection(ITypeService typeService)
... | using System;
using System.Collections;
using System.Collections.Generic;
namespace Glimpse
{
public class ReflectionDiscoverableCollection<T> : List<T>, IDiscoverableCollection<T>
{
private readonly ITypeService _typeService;
public ReflectionDiscoverableCollection(ITypeService typeService)
... | mit | C# |
9c86b648fab5f306da951a11184315c09247cd3b | Fix ByondExecutableLock | tgstation/tgstation-server,Cyberboss/tgstation-server,tgstation/tgstation-server,tgstation/tgstation-server-tools,Cyberboss/tgstation-server | src/Tgstation.Server.Host/Components/Byond/ByondExecutableLock.cs | src/Tgstation.Server.Host/Components/Byond/ByondExecutableLock.cs | using System;
namespace Tgstation.Server.Host.Components.Byond
{
/// <inheritdoc />
sealed class ByondExecutableLock : IByondExecutableLock
{
/// <inheritdoc />
public Version Version { get; }
/// <inheritdoc />
public string DreamDaemonPath { get; }
/// <inheritdoc />
public string DreamMakerPath { ... | using System;
namespace Tgstation.Server.Host.Components.Byond
{
/// <inheritdoc />
sealed class ByondExecutableLock : IByondExecutableLock
{
/// <inheritdoc />
public Version Version { get; }
/// <inheritdoc />
public string DreamDaemonPath { get; }
/// <inheritdoc />
public string DreamMakerPath { ... | agpl-3.0 | C# |
8b8be8f784c9df0957c70e5b0d5c938dba776235 | Fix code inspections. | PombeirP/Unity.TypedFactories | src/Unity.TypedFactories/ConstructorArgumentsMismatchException.cs | src/Unity.TypedFactories/ConstructorArgumentsMismatchException.cs | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="ConstructorArgumentsMismatchException.cs" company="Developer In The Flow">
// 2012 Pedro Pombeiro
// </copyright>
// ------------------------------------------------------------... | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="ConstructorArgumentsMismatchException.cs" company="Developer In The Flow">
// 2012 Pedro Pombeiro
// </copyright>
// ------------------------------------------------------------... | mit | C# |
08d7fde620f063274c58a2bc06c64e5f95cff6d9 | fix Microsoft.AspNetCore.Mvc.ControllerBase | BigBabay/AsyncConverter,BigBabay/AsyncConverter | AsyncConverter/AsyncHelpers/RenameCheckers/ControllerRenameChecker.cs | AsyncConverter/AsyncHelpers/RenameCheckers/ControllerRenameChecker.cs | using System.Linq;
using System.Collections.Generic;
using JetBrains.Metadata.Reader.Impl;
using JetBrains.ProjectModel;
using JetBrains.ReSharper.Psi;
using JetBrains.ReSharper.Psi.CSharp.Tree;
using JetBrains.ReSharper.Psi.Util;
using JetBrains.Util;
namespace AsyncConverter.AsyncHelpers.RenameCheckers
{
[Solut... | using System.Linq;
using System.Collections.Generic;
using JetBrains.Metadata.Reader.Impl;
using JetBrains.ProjectModel;
using JetBrains.ReSharper.Psi;
using JetBrains.ReSharper.Psi.CSharp.Tree;
using JetBrains.ReSharper.Psi.Util;
using JetBrains.Util;
namespace AsyncConverter.AsyncHelpers.RenameCheckers
{
[Solut... | mit | C# |
fc6617827fa0bf647498acd7e333200b3a76b942 | change assembly version | dinobenz/toda-api | src/toda-api/Properties/AssemblyInfo.cs | src/toda-api/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("to... | 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("to... | mit | C# |
503a04b47b402ce4042b53beb3b4458837faf42b | Make UserArn readonly | carbon/Amazon | src/Amazon.Rds/Models/UserArn.cs | src/Amazon.Rds/Models/UserArn.cs | namespace Amazon.Rds
{
public readonly struct UserArn
{
private readonly string name;
public UserArn(
AwsRegion region,
string accountId,
string databaseId,
string userName)
{
this.name = $"arn:aws:rds-db:{region.N... | namespace Amazon.Rds
{
public struct UserArn
{
private readonly string name;
public UserArn(
AwsRegion region,
string accountId,
string databaseId,
string userName)
{
this.name = $"arn:aws:rds-db:{region.Name}:{acc... | mit | C# |
cf58fa9da5a759a079c58139ee5a56db65919363 | Add comment for versioning | kovalikp/nuproj,zbrad/nuproj,ericstj/nuproj,faustoscardovi/nuproj,NN---/nuproj,oliver-feng/nuproj,AArnott/nuproj,PedroLamas/nuproj,nuproj/nuproj | src/Common/CommonAssemblyInfo.cs | src/Common/CommonAssemblyInfo.cs | using System.Reflection;
[assembly: AssemblyCompany("Immo Landwerth")]
[assembly: AssemblyProduct("NuProj")]
[assembly: AssemblyCopyright("Copyright © Immo Landwerth")]
[assembly: AssemblyTrademark("")]
[assembly : AssemblyMetadata("PreRelease", "Beta")]
[assembly : AssemblyMetadata("ProjectUrl", "http://nuproj.code... | using System.Reflection;
[assembly: AssemblyCompany("Immo Landwerth")]
[assembly: AssemblyProduct("NuProj")]
[assembly: AssemblyCopyright("Copyright © Immo Landwerth")]
[assembly: AssemblyTrademark("")]
[assembly : AssemblyMetadata("PreRelease", "Beta")]
[assembly : AssemblyMetadata("ProjectUrl", "http://nuproj.code... | mit | C# |
cedf2abaecc229835ebaa89737eb967bbc1f5aa0 | Update CuidCorrelationServiceTests.cs | tiksn/TIKSN-Framework | TIKSN.UnitTests.Shared/Integration/Correlation/CuidCorrelationServiceTests.cs | TIKSN.UnitTests.Shared/Integration/Correlation/CuidCorrelationServiceTests.cs | using FluentAssertions;
using Microsoft.Extensions.DependencyInjection;
using System;
using TIKSN.DependencyInjection;
using Xunit;
using Xunit.Abstractions;
namespace TIKSN.Integration.Correlation.Tests
{
public class CuidCorrelationServiceTests
{
private readonly ICorrelationService _correlationServ... | using FluentAssertions;
using Microsoft.Extensions.DependencyInjection;
using System;
using TIKSN.DependencyInjection;
using Xunit;
using Xunit.Abstractions;
namespace TIKSN.Integration.Correlation.Tests
{
public class CuidCorrelationServiceTests
{
private readonly ICorrelationService _correlationServ... | mit | C# |
af2917ddf5d5da88f1e582e733e488acdcd24d99 | bump version | user1568891/PropertyChanged,Fody/PropertyChanged,0x53A/PropertyChanged | CommonAssemblyInfo.cs | CommonAssemblyInfo.cs | using System.Reflection;
[assembly: AssemblyTitle("PropertyChanged")]
[assembly: AssemblyProduct("PropertyChanged")]
[assembly: AssemblyCompany("Simon Cropp and Contributors")]
[assembly: AssemblyDescription("Fody add-in for injecting INotifyPropertyChanged code into properties.")]
[assembly: AssemblyVersion("1.50.1"... | using System.Reflection;
[assembly: AssemblyTitle("PropertyChanged")]
[assembly: AssemblyProduct("PropertyChanged")]
[assembly: AssemblyCompany("Simon Cropp and Contributors")]
[assembly: AssemblyDescription("Fody add-in for injecting INotifyPropertyChanged code into properties.")]
[assembly: AssemblyVersion("1.50.0"... | mit | C# |
33263037044829a4fcc64cacb94d4b1931d3ed91 | Fix reboot options (#256) | Eclo/nf-debugger,nanoframework/nf-debugger | nanoFramework.Tools.DebugLibrary.Shared/WireProtocol/RebootOptions.cs | nanoFramework.Tools.DebugLibrary.Shared/WireProtocol/RebootOptions.cs | //
// Copyright (c) .NET Foundation and Contributors
// Portions Copyright (c) Microsoft Corporation. All rights reserved.
// See LICENSE file in the project root for full license information.
//
using System;
namespace nanoFramework.Tools.Debugger
{
/// <summary>
/// Reboot options for nanoFramework device... | //
// Copyright (c) .NET Foundation and Contributors
// Portions Copyright (c) Microsoft Corporation. All rights reserved.
// See LICENSE file in the project root for full license information.
//
namespace nanoFramework.Tools.Debugger
{
/// <summary>
/// Reboot options for nanoFramework device.
/// </sum... | apache-2.0 | C# |
7a839df4863e4d88ef45cb8d3d42fa91c0f3c901 | Remove FileVeresion attribute. | sullivac/handlers | GlobalAssemblyInfo.cs | GlobalAssemblyInfo.cs | // Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyV... | // Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyV... | mit | C# |
ee5b0e594506a518fc9b642dcf7080b4945c4658 | Make LocationChangedEventArgs readonly | EddieGarmon/GraduatedCylinder,EddieGarmon/GraduatedCylinder | Source/GraduatedCylinder.Geo/Shared/Geo/LocationChangedEventArgs.cs | Source/GraduatedCylinder.Geo/Shared/Geo/LocationChangedEventArgs.cs | using System;
using System.Collections.Generic;
using System.Text;
namespace GraduatedCylinder.Geo
{
public class LocationChangedEventArgs
{
private readonly GeoPosition _position;
private readonly Heading _heading;
public LocationChangedEventArgs(GeoPosition position, Heading heading... | using System;
using System.Collections.Generic;
using System.Text;
namespace GraduatedCylinder.Geo
{
public class LocationChangedEventArgs
{
public LocationChangedEventArgs(GeoPosition position, Heading heading) {
Position = position;
Heading = heading;
}
publi... | mit | C# |
0bd8ea6968155e7a43865413149ad13c40159873 | Add XML docs for DefaultSettingValueAttribute | NFig/NFig | NFig/DefaultValueAttribute.cs | NFig/DefaultValueAttribute.cs | using System;
namespace NFig
{
/// <summary>
/// This is the base class for all NFig attributes which specify default values, except for the <see cref="SettingAttribute"/> itself. This attribute is
/// abstract because you should provide the attributes which make sense for your individual setup. The subAp... | using System;
namespace NFig
{
[AttributeUsage(AttributeTargets.Property, AllowMultiple = true)]
public abstract class DefaultSettingValueAttribute : Attribute
{
public object DefaultValue { get; protected set; }
public object SubApp { get; protected set; }
public object Tier { get... | mit | C# |
21b5f0afe07d6983d02ddc27c57595ed47671357 | Remove trace | davidebbo/WAWSDeploy,davidebbo/WAWSDeploy | WAWSDeploy/WebDeployHelper.cs | WAWSDeploy/WebDeployHelper.cs | using System;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Xml.Linq;
using Microsoft.Web.Deployment;
namespace WAWSDeploy
{
public class WebDeployHelper
{
public DeploymentChangeSummary DeployContentToOneSite(string contentPath, string publishSettingsFile)
{
... | using System;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Xml.Linq;
using Microsoft.Web.Deployment;
namespace WAWSDeploy
{
public class WebDeployHelper
{
public DeploymentChangeSummary DeployContentToOneSite(string contentPath, string publishSettingsFile)
{
... | apache-2.0 | C# |
1531682427bfa8d957664ab62b70bf87e0c0f687 | fix Game.cs | sfc-sdp/GameCanvas-Unity | Assets/Game.cs | Assets/Game.cs | using Sequence = System.Collections.IEnumerator;
/// <summary>
/// ゲームクラス。
/// 学生が編集すべきソースコードです。
/// </summary>
public sealed class Game : GameBase
{
// 変数の宣言
int sec = 0;
/// <summary>
/// 初期化処理
/// </summary>
public override void InitGame()
{
// キャンバスの大きさを設定します
gc.SetRes... |
using Sequence = System.Collections.IEnumerator;
/// <summary>
/// ゲームクラス。
/// 学生が編集すべきソースコードです。
/// </summary>
public sealed class Game : GameBase
{
// 変数の宣言
int sec = 0;
/// <summary>
/// 初期化処理
/// </summary>
public override void InitGame()
{
// キャンバスの大きさを設定します
gc.SetRe... | mit | C# |
4e2a81ac26ee88679c9693201c1352765383e745 | Make IAudioAdapter read-only | terrafx/terrafx | sources/Audio/IAudioAdapter.cs | sources/Audio/IAudioAdapter.cs | // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information.
namespace TerraFX.Audio
{
/// <summary>An interface representing an audio adapter.</summary>
public interface IAudioAdapter
{
/// <summary>The type of de... | // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information.
namespace TerraFX.Audio
{
/// <summary>An interface representing an audio adapter.</summary>
public interface IAudioAdapter
{
/// <summary>The type of de... | mit | C# |
1cd11ee00ea771b7da465eeab07cd7a889d7468f | Fix doc comments | tgstation/tgstation-server,Cyberboss/tgstation-server,tgstation/tgstation-server-tools,Cyberboss/tgstation-server,tgstation/tgstation-server | src/Tgstation.Server.Host/Security/IAuthenticationContextFactory.cs | src/Tgstation.Server.Host/Security/IAuthenticationContextFactory.cs | using System;
using System.Threading;
using System.Threading.Tasks;
namespace Tgstation.Server.Host.Security
{
/// <summary>
/// For creating and accessing authentication contexts
/// </summary>
public interface IAuthenticationContextFactory
{
/// <summary>
/// The <see cref="IAuthenticationContext"/> the <s... | using System;
using System.Threading;
using System.Threading.Tasks;
namespace Tgstation.Server.Host.Security
{
/// <summary>
/// For creating and accessing authentication contexts
/// </summary>
public interface IAuthenticationContextFactory
{
/// <summary>
/// The <see cref="IAuthenticationContext"/> the <s... | agpl-3.0 | C# |
994c10ce0626b1b13a7c6391874733a83d8c6358 | Update SampleConfiguration.cs | PanagiotisDrakatos/Universal-Encryption-Channel,PanagiotisDrakatos/Universal-Encryption-Channel | SecureUWPChannel/SecureUWPChannel/Configuration/SampleConfiguration.cs | SecureUWPChannel/SecureUWPChannel/Configuration/SampleConfiguration.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.ApplicationModel.Background;
using Windows.Security.Cryptography.Core;
using Windows.Storage;
namespace SecureUWPChannel.Prooperties
{
public class SampleConfiguration
{
//... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.ApplicationModel.Background;
using Windows.Security.Cryptography.Core;
using Windows.Storage;
namespace SecureUWPChannel.Prooperties
{
public class SampleConfiguration
{
//... | mit | C# |
f41e51024e5021505335652bab6ee2b665ecc6da | Document the purpose of [ExternalEndpoint] (#1197) | mgmccarthy/allReady,anobleperson/allReady,gitChuckD/allReady,timstarbuck/allReady,stevejgordon/allReady,pranap/allReady,VishalMadhvani/allReady,colhountech/allReady,dpaquette/allReady,GProulx/allReady,forestcheng/allReady,HamidMosalla/allReady,HamidMosalla/allReady,GProulx/allReady,chinwobble/allReady,jonatwabash/allRe... | AllReadyApp/Web-App/AllReady/Attributes/ExternalEndpointAttribute.cs | AllReadyApp/Web-App/AllReady/Attributes/ExternalEndpointAttribute.cs | using System;
namespace AllReady.Attributes
{
/// <summary>
/// This attribute tells the GlobalControllerTests that the method doesn't need a [ValidateAntiForgeryToken] attribute because the method is designed to be consumed by an external API such as the mobile app.
/// </summary>
public class Extern... | using System;
namespace AllReady.Attributes
{
public class ExternalEndpointAttribute : Attribute
{
}
} | mit | C# |
a989ce0db9fa86779b528d20230c5f1e69205d6f | test for where | christiandelbianco/monitor-table-change-with-sqltabledependency | TableDependency.Tests/TableDependency.DevelopmentTests/WhereTests.cs | TableDependency.Tests/TableDependency.DevelopmentTests/WhereTests.cs | using System;
using System.Linq.Expressions;
namespace ConsoleApplicationSqlServer
{
public partial class Program
{
public static void TestWhere()
{
//Expression<Func<Customers, bool>> query = u =>
// //u.CompanyName.EndsWith("a")
// u.CompanyName.Subs... | using System;
using System.Linq.Expressions;
using TableDependency.SqlClient.Where;
namespace ConsoleApplicationSqlServer
{
public partial class Program
{
public static void TestWhere()
{
Expression<Func<Customers, bool>> query = u =>
//u.CompanyName.EndsWith("a")
... | mit | C# |
c12c7de949d6b7cd680ec3c75edc4b2b6e410fae | Check for specific bit now to check if a game is downloaded at the moment | akorb/SteamShutdown | SteamShutdown/App.cs | SteamShutdown/App.cs | namespace SteamShutdown
{
public class App
{
public int ID { get; set; }
public string Name { get; set; }
public int State { get; set; }
/// <summary>
/// Returns a value indicating whether the game is being downloaded.
/// </summary>
public b... | using System;
namespace SteamShutdown
{
public class App
{
public int ID { get; set; }
public string Name { get; set; }
public int State { get; set; }
/// <summary>
/// Returns a value indicating whether the game is being downloaded. Includes games in queue ... | mit | C# |
3bae24ce80b2b70ac766f111167591ca22c75e07 | Update version number | yas-mnkornym/TaihaToolkit | source/TaihaToolkit.Core/Properties/AssemblyInfo.cs | source/TaihaToolkit.Core/Properties/AssemblyInfo.cs | using System.Resources;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// アセンブリに関する一般情報は以下の属性セットをとおして制御されます。
// アセンブリに関連付けられている情報を変更するには、
// これらの属性値を変更してください。
[assembly: AssemblyTitle("TaihaToolkit.Core")]
[assembly: AssemblyDescription("大破してすまない")]
[assembly: As... | using System.Resources;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// アセンブリに関する一般情報は以下の属性セットをとおして制御されます。
// アセンブリに関連付けられている情報を変更するには、
// これらの属性値を変更してください。
[assembly: AssemblyTitle("TaihaToolkit.Core")]
[assembly: AssemblyDescription("大破してすまない")]
[assembly: As... | mit | C# |
079302a1233d64ee4f738ea6aac464ffa1ef7a7b | Fix bug in AnimatorKeyFrame.ValueProperty registration. | wieslawsoltes/Perspex,akrisiun/Perspex,AvaloniaUI/Avalonia,Perspex/Perspex,jkoritzinsky/Avalonia,Perspex/Perspex,jkoritzinsky/Perspex,SuperJMN/Avalonia,AvaloniaUI/Avalonia,SuperJMN/Avalonia,AvaloniaUI/Avalonia,AvaloniaUI/Avalonia,grokys/Perspex,wieslawsoltes/Perspex,wieslawsoltes/Perspex,AvaloniaUI/Avalonia,jkoritzinsk... | src/Avalonia.Animation/AnimatorKeyFrame.cs | src/Avalonia.Animation/AnimatorKeyFrame.cs | using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using Avalonia.Metadata;
using Avalonia.Collections;
using Avalonia.Data;
using Avalonia.Reactive;
namespace Avalonia.Animation
{
/// <summary>
/// Defines a KeyFrame that is used for
/// <see cref="Animator{T}"... | using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using Avalonia.Metadata;
using Avalonia.Collections;
using Avalonia.Data;
using Avalonia.Reactive;
namespace Avalonia.Animation
{
/// <summary>
/// Defines a KeyFrame that is used for
/// <see cref="Animator{T}"... | mit | C# |
17aec4aaaf8dc3e4cd4fa5a7b298ce315018f6b1 | Implement the GetRecordMutations method for SQL Server | openchain/openchain | src/Openchain.SqlServer/SqlServerLedger.cs | src/Openchain.SqlServer/SqlServerLedger.cs | // Copyright 2015 Coinprism, 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.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agree... | // Copyright 2015 Coinprism, 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.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agree... | apache-2.0 | C# |
538b084b6f4da33c56c4da4e7589e2c0272f58f4 | Comment for dev | Nick-Lucas/EntryPoint,Nick-Lucas/EntryPoint,Nick-Lucas/EntryPoint | src/EntryPoint/Internals/ArgumentArrayExtensions.cs | src/EntryPoint/Internals/ArgumentArrayExtensions.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace EntryPoint.Internals {
internal static class ArgumentArrayExtensions {
// Determines if a given arg array element is a - option
public static bool IsSingleDash(this string arg) {
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace EntryPoint.Internals {
internal static class ArgumentArrayExtensions {
// Determines if a given arg array element is a - option
public static bool IsSingleDash(this string arg) {
... | mit | C# |
23c0aa2b183c8902e1ccde2fae9730006e8c701a | Make RemoveSession virtual. | yungtechboy1/MiNET,InPvP/MiNET,MiPE-JP/RaNET | src/MiNET/MiNET/SessionManager.cs | src/MiNET/MiNET/SessionManager.cs | using System.Collections.Concurrent;
using System.Collections.Generic;
using MiNET.Net;
namespace MiNET
{
public class SessionManager
{
private ConcurrentDictionary<UUID, Session> _sessions = new ConcurrentDictionary<UUID, Session>();
public virtual Session FindSession(Player player)
{
Session session;
... | using System.Collections.Concurrent;
using System.Collections.Generic;
using MiNET.Net;
namespace MiNET
{
public class SessionManager
{
private ConcurrentDictionary<UUID, Session> _sessions = new ConcurrentDictionary<UUID, Session>();
public virtual Session FindSession(Player player)
{
Session session;
... | mpl-2.0 | C# |
2a35aec7a66d63c3298d2d89304148b8c8b9b5dc | Fix a bug where it didn't read .binlog files correctly. | KirillOsenkov/MSBuildStructuredLog,KirillOsenkov/MSBuildStructuredLog | src/StructuredLogger/BinaryLog.cs | src/StructuredLogger/BinaryLog.cs | using System.Diagnostics;
using System.IO;
namespace Microsoft.Build.Logging.StructuredLogger
{
public class BinaryLog
{
public static Build ReadBuild(string filePath)
{
var eventSource = new BinaryLogReplayEventSource();
byte[] sourceArchive = null;
... | using System.Diagnostics;
using System.IO;
namespace Microsoft.Build.Logging.StructuredLogger
{
public class BinaryLog
{
public static Build ReadBuild(string filePath)
{
var eventSource = new BinaryLogReplayEventSource();
byte[] sourceArchive = null;
... | mit | C# |
8db9c9714facaba021d5e2c3126cef7566fcfad0 | Append IIS queues with worker PID. | WaveServiceBus/WaveServiceBus | src/Wave.ServiceHosting.IIS/IISQueueNameResolver.cs | src/Wave.ServiceHosting.IIS/IISQueueNameResolver.cs | /* Copyright 2014 Jonathan Holland.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | /* Copyright 2014 Jonathan Holland.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | apache-2.0 | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.