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 |
|---|---|---|---|---|---|---|---|---|
23091ff4ffc8cbc3b53853912a8735c1faf94f5b | Fix issue when adding type to ExtensionsProvider | riganti/dotvvm,riganti/dotvvm,riganti/dotvvm,riganti/dotvvm | src/DotVVM.Framework/Compilation/Binding/DefaultExtensionsProvider.cs | src/DotVVM.Framework/Compilation/Binding/DefaultExtensionsProvider.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
namespace DotVVM.Framework.Compilation.Binding
{
public class DefaultExtensionsProvider : IExtensionsProvider
{
private readonly List<Type> typesLookup;
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
namespace DotVVM.Framework.Compilation.Binding
{
public class DefaultExtensionsProvider : IExtensionsProvider
{
private readonly List<Type> typesLookup;
... | apache-2.0 | C# |
0d72bdd83a4c85064bc0adef8d0f331076c6313e | Support for Microsoft.Data.Sqlite | igitur/fluentmigrator,fluentmigrator/fluentmigrator,eloekset/fluentmigrator,igitur/fluentmigrator,amroel/fluentmigrator,stsrki/fluentmigrator,amroel/fluentmigrator,spaccabit/fluentmigrator,fluentmigrator/fluentmigrator,schambers/fluentmigrator,schambers/fluentmigrator,stsrki/fluentmigrator,eloekset/fluentmigrator,spacc... | src/FluentMigrator.Runner.SQLite/Processors/SQLite/SQLiteDbFactory.cs | src/FluentMigrator.Runner.SQLite/Processors/SQLite/SQLiteDbFactory.cs | namespace FluentMigrator.Runner.Processors.SQLite
{
public class SQLiteDbFactory : ReflectionBasedDbFactory
{
private static readonly TestEntry[] _testEntries =
{
new TestEntry("System.Data.SQLite", "System.Data.SQLite.SQLiteFactory"),
new TestEntry("Mono.Data.Sqlite, Ver... | using System;
namespace FluentMigrator.Runner.Processors.SQLite
{
public class SQLiteDbFactory : ReflectionBasedDbFactory
{
public SQLiteDbFactory()
: base(DefaultAssemblyName, DefaultFactoryClassName)
{
}
private static string DefaultAssemblyName
{
... | apache-2.0 | C# |
a05c5ce715322dc9807b46ab5ebd0ddac0b18126 | put some content in order successful view | lderache/LeTruck,lderache/LeTruck,lderache/LeTruck | src/mvc5/TheTruck.Web/Views/Orders/OrderSuccessful.cshtml | src/mvc5/TheTruck.Web/Views/Orders/OrderSuccessful.cshtml |
<h2>Order successfull!</h2>
<p>Your order has been received and will be processed for the coming week-end!</p>
<p>If you have any question do not hesitate to <a href="/Home/Contact">contact us</a></p> |
<h2>Order successfull!</h2> | mit | C# |
df5a781b1e31473f4baa8c558edc74172b0d1755 | Stop exception when no argument sare suppplied to minigzip | McNeight/SharpZipLib | samples/cs/minigzip/Main.cs | samples/cs/minigzip/Main.cs | // project created on 11.11.2001 at 15:19
using System;
using System.IO;
using ICSharpCode.SharpZipLib.GZip;
class MainClass
{
public static void Main(string[] args)
{
if ( args.Length > 0 ) {
if ( args[0] == "-d" ) { // decompress
Stream s = new GZipInputStream(File.OpenRead(args[1]));
FileStream fs =... | // project created on 11.11.2001 at 15:19
using System;
using System.IO;
using ICSharpCode.SharpZipLib.GZip;
class MainClass
{
public static void Main(string[] args)
{
if (args[0] == "-d") { // decompress
Stream s = new GZipInputStream(File.OpenRead(args[1]));
FileStream fs = File.Create(Path.GetFileNameWit... | mit | C# |
7fdd98a7a2f237e8ac9082ed65a495e40afafadc | Use HostName in Node instead of IpAddress | Teleopti/Stardust | Node/Node/NodeConfiguration.cs | Node/Node/NodeConfiguration.cs | using System;
using System.Net;
using System.Net.Sockets;
using System.Reflection;
namespace Stardust.Node
{
public class NodeConfiguration
{
public NodeConfiguration(Uri managerLocation, Assembly handlerAssembly, int port, string nodeName, int pingToManagerSeconds, int sendDetailsToManagerMilliSeconds)
{
Ba... | using System;
using System.Net;
using System.Net.Sockets;
using System.Reflection;
namespace Stardust.Node
{
public class NodeConfiguration
{
public NodeConfiguration(Uri managerLocation, Assembly handlerAssembly, int port, string nodeName, int pingToManagerSeconds, int sendDetailsToManagerMilliSeconds)
{
Ba... | mit | C# |
1cea040c48466d64f5e637202df3cbb051d692ab | Remove assembly load debug lines. | icedream/citizenmp-server-updater | src/wrapper/Program.cs | src/wrapper/Program.cs | using System;
using System.IO;
using System.Reflection;
// ReSharper disable once CheckNamespace
internal static class Program
{
private static int Main(string[] args)
{
var mainAsm = Assembly.Load("citizenmp_server_updater");
mainAsm.GetType("Costura.AssemblyLoader")
.GetMethod("... | using System;
using System.IO;
using System.Reflection;
// ReSharper disable once CheckNamespace
internal static class Program
{
private static int Main(string[] args)
{
// Mono's XBuild uses assembly redirects to make sure it uses .NET 4.5 target binaries.
// We emulate it using our own assem... | mit | C# |
52f6524c5b5f7207246846bebff2076d279723c1 | Clean usings | OShop/OShop.PayPal,OShop/OShop.PayPal | Services/IPaypalSettingsService.cs | Services/IPaypalSettingsService.cs | using Orchard;
using OShop.PayPal.Models;
namespace OShop.PayPal.Services {
public interface IPaypalSettingsService : IDependency {
PaypalSettings GetSettings();
void SetSettings(PaypalSettings Settings);
}
}
| using Orchard;
using OShop.PayPal.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OShop.PayPal.Services {
public interface IPaypalSettingsService : IDependency {
PaypalSettings GetSettings();
void SetSettings(Pay... | mit | C# |
1247e8053ff624e39a75337b9f3f630be85c3eef | Update Program.cs | sfederella/connect-4-ai | programs/player/Program.cs | programs/player/Program.cs | using connect_4_ai.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace connect_4_ai
{
class Program
{
/* ---- Parameters ---- */
// Board: Complete with 1 or -1 (player 1 always starts)
static Board board... | using connect_4_ai.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace connect_4_ai
{
class Program
{
/* ---- Parameters ---- */
// Board: Complete with 1 or -1 (player 1 always starts)
static Board board... | apache-2.0 | C# |
272aec4235237b3811c6a40387365c452502eaa4 | Swap BoundUnaryExpression.Result and Expression | terrajobst/nquery-vnext | src/NQuery/Binding/BoundUnaryExpression.cs | src/NQuery/Binding/BoundUnaryExpression.cs | using System;
using System.Linq;
namespace NQuery.Binding
{
internal sealed class BoundUnaryExpression : BoundExpression
{
private readonly OverloadResolutionResult<UnaryOperatorSignature> _result;
private readonly BoundExpression _expression;
public BoundUnaryExpression(OverloadResolu... | using System;
using System.Linq;
namespace NQuery.Binding
{
internal sealed class BoundUnaryExpression : BoundExpression
{
private readonly BoundExpression _expression;
private readonly OverloadResolutionResult<UnaryOperatorSignature> _result;
public BoundUnaryExpression(BoundExpressio... | mit | C# |
89b8ed0269244fa96c8972bbdb313681a2eca96b | Remove unused actions | peterblazejewicz/AspNet5Watcher,peterblazejewicz/AspNet5Watcher | Controllers/HomeController.cs | Controllers/HomeController.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNet.Mvc;
namespace AspNet5Watcher.Controllers
{
public class HomeController : Controller
{
public IActionResult Index()
{
return View();
}
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNet.Mvc;
namespace AspNet5Watcher.Controllers
{
public class HomeController : Controller
{
public IActionResult Index()
{
return View();
}
... | mit | C# |
b3ff0a89d24794f2929ead218227c345ec664f46 | Bump version | canton7/SyncTrayzor,canton7/SyncTrayzor,canton7/SyncTrayzor | src/SyncTrayzor/Properties/AssemblyInfo.cs | src/SyncTrayzor/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
// associated ... | 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
// associated ... | mit | C# |
ef220c14cdef4e4844b041795863bab7d76a1fef | Test if a failed test will fail the build | plzb0ss/Saurus-Othello | SaurusConsole.Tests/MoveTests.cs | SaurusConsole.Tests/MoveTests.cs | using Microsoft.VisualStudio.TestTools.UnitTesting;
using SaurusConsole.OthelloAI;
namespace SaurusConsoleTests
{
[TestClass]
public class MoveTests
{
[TestMethod]
public void NotationConstuctorTest()
{
Move e4move = new Move("E4");
Assert.AreEqual("E4", e4mov... | using Microsoft.VisualStudio.TestTools.UnitTesting;
using SaurusConsole.OthelloAI;
namespace SaurusConsoleTests
{
[TestClass]
public class MoveTests
{
[TestMethod]
public void NotationConstuctorTest()
{
Move e4move = new Move("E4");
Assert.AreEqual("E4", e4mov... | mit | C# |
dee0adcd8c61436cf2f88bced371ec9256ca3af3 | Add new overloads. | chkr1011/MQTTnet,JTrotta/MQTTnet,JTrotta/MQTTnet,chkr1011/MQTTnet,chkr1011/MQTTnet,JTrotta/MQTTnet,chkr1011/MQTTnet,chkr1011/MQTTnet,JTrotta/MQTTnet | Source/MQTTnet/MqttFactory.cs | Source/MQTTnet/MqttFactory.cs | using System;
using System.Collections.Generic;
using MQTTnet.Adapter;
using MQTTnet.Client;
using MQTTnet.Diagnostics;
using MQTTnet.Implementations;
using MQTTnet.Server;
namespace MQTTnet
{
public class MqttFactory : IMqttClientFactory, IMqttServerFactory
{
public IMqttClient CreateMqttClient()
... | using System;
using System.Collections.Generic;
using MQTTnet.Adapter;
using MQTTnet.Client;
using MQTTnet.Diagnostics;
using MQTTnet.Implementations;
using MQTTnet.Server;
namespace MQTTnet
{
public class MqttFactory : IMqttClientFactory, IMqttServerFactory
{
public IMqttClient CreateMqttClient()
... | mit | C# |
8f461884c967be466cbfa2457fd982835f66b730 | Update JSCallResultTypeHelper.cs (#25628) | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore | src/Shared/JSInterop/JSCallResultTypeHelper.cs | src/Shared/JSInterop/JSCallResultTypeHelper.cs | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Reflection;
namespace Microsoft.JSInterop
{
internal static class JSCallResultTypeHelper
{
// We avoid using Assembly.GetE... | // 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.
namespace Microsoft.JSInterop
{
internal static class JSCallResultTypeHelper
{
public static JSCallResultType FromGeneric<TResult>()
... | apache-2.0 | C# |
c05a102a54ae3ad1302a8001df72384930de77ae | Remove double licence header | peppy/osu-framework,peppy/osu-framework,peppy/osu-framework,ppy/osu-framework,EVAST9919/osu-framework,EVAST9919/osu-framework,ppy/osu-framework,ZLima12/osu-framework,EVAST9919/osu-framework,ppy/osu-framework,EVAST9919/osu-framework,ZLima12/osu-framework,smoogipooo/osu-framework,smoogipooo/osu-framework | osu.Framework/Testing/TearDownStepsAttribute.cs | osu.Framework/Testing/TearDownStepsAttribute.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 JetBrains.Annotations;
namespace osu.Framework.Testing
{
/// <summary>
/// Denotes a method which adds <see cref="TestScene"/> steps at the e... | // 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.
// 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 ... | mit | C# |
fa3a3f4f0b3e0325d018e0946331b0416e2e1d33 | Set interval to 10 minutes | mycroes/SupportManager,mycroes/SupportManager,mycroes/SupportManager | SupportManager.Web/Program.cs | SupportManager.Web/Program.cs | using System.Diagnostics;
using System.IO;
using Hangfire;
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Server.HttpSys;
using SupportManager.Contracts;
using Topshelf;
namespace SupportManager.Web
{
public class Program
{
private static string[] args;
... | using System.Diagnostics;
using System.IO;
using Hangfire;
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Server.HttpSys;
using SupportManager.Contracts;
using Topshelf;
namespace SupportManager.Web
{
public class Program
{
private static string[] args;
... | mit | C# |
3c10c350723b807f43c3c7ff1e3b5e0fdd6378d1 | delete spaces | sunkaixuan/SqlSugar | Src/Asp.NetCore2/SqlSeverTest/SqlSugar/Enum/ProperyType.cs | Src/Asp.NetCore2/SqlSeverTest/SqlSugar/Enum/ProperyType.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace SqlSugar
{
public enum CSharpDataType
{
@int,
@bool,
@string,
@DateTime,
@decimal,
@double,
@Guid,
@byte,
@enum,
@short,
@long... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace SqlSugar
{
public enum CSharpDataType
{
@int,
@bool,
@string,
@DateTime,
@decimal,
@double,
@Guid,
@byte,
@enum,
@short,
@long... | apache-2.0 | C# |
53af96df6dd139030ca29a9e36dc1ba9a6b7d6d8 | Apply filtering to sessions payload | bugsnag/bugsnag-dotnet,bugsnag/bugsnag-dotnet | src/Bugsnag/Payload/BatchedSessions.cs | src/Bugsnag/Payload/BatchedSessions.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
namespace Bugsnag.Payload
{
public class BatchedSessions : Dictionary<string, object>, IPayload
{
private readonly KeyValuePair<string, string>[] _headers;
private readonly IConfiguration _configuration;
public Batche... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
namespace Bugsnag.Payload
{
public class BatchedSessions : Dictionary<string, object>, IPayload
{
private readonly KeyValuePair<string, string>[] _headers;
public BatchedSessions(IConfiguration configuration, IEnumerable<... | mit | C# |
072ec05a990bd14a55a486d865a059ce4b57d6ad | Update StringExtensions.cs | BenjaminAbt/snippets | CSharp/StringExtensions.cs | CSharp/StringExtensions.cs | public static class StringExtensions
{
/// <summary>
/// Cuts a string with the given max length
/// </summary>
public static string WithMaxLength(this string value, int maxLength)
{
return value?.Substring(0, Math.Min(value.Length, maxLength));
}
}
| public static class StringExtensions
{
public static string WithMaxLength(this string value, int maxLength)
{
return value?.Substring(0, Math.Min(value.Length, maxLength));
}
}
| mit | C# |
80057eabb1049f10db1784ad8ba4e6da6979de76 | Fix null reference exception then accessing viewstate | roman-yagodin/R7.University,roman-yagodin/R7.University,roman-yagodin/R7.University | R7.University/components/XmlSerializationHelper.cs | R7.University/components/XmlSerializationHelper.cs | //
// XmlSerializationHelper.cs
//
// Author:
// Roman M. Yagodin <roman.yagodin@gmail.com>
//
// Copyright (c) 2015
//
// 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 wi... | //
// XmlSerializationHelper.cs
//
// Author:
// Roman M. Yagodin <roman.yagodin@gmail.com>
//
// Copyright (c) 2015
//
// 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 wi... | agpl-3.0 | C# |
3caefc73d2279b39a2fc781c11099f735ad343c7 | Build before first Start if the executable doesn't exist | xilec/VisualRust,dlsteuer/VisualRust,vosen/VisualRust,tempbottle/VisualRust,yacoder/VisualRust,yacoder/VisualRust,drewet/VisualRust,tempbottle/VisualRust,Stitchous/VisualRust,xilec/VisualRust,Vbif/VisualRust,vosen/VisualRust,Boddlnagg/VisualRust,PistonDevelopers/VisualRust,Vbif/VisualRust,cmr/VisualRust,vadimcn/VisualR... | VisualRust.Project/DefaultRustLauncher.cs | VisualRust.Project/DefaultRustLauncher.cs | using System;
using System.Diagnostics;
using System.IO;
using Microsoft.VisualStudio;
using Microsoft.VisualStudioTools;
using Microsoft.VisualStudioTools.Project;
namespace VisualRust.Project
{
sealed class DefaultRustLauncher : IProjectLauncher
{
private readonly RustProjectNode _project;
... | using System;
using System.Diagnostics;
using System.IO;
using Microsoft.VisualStudio;
using Microsoft.VisualStudioTools;
using Microsoft.VisualStudioTools.Project;
namespace VisualRust.Project
{
/// <summary>
/// Simple realization of project launcher for executable file
/// TODO need realize for library... | mit | C# |
d0cbc5ce286697ad2e873e2e07e15b72a2e3d921 | change 'spam' to have same casing than elsewhere | ScottShingler/NuGetGallery,skbkontur/NuGetGallery,projectkudu/SiteExtensionGallery,KuduApps/NugetGallery16Fx45-DeleteMe,mtian/SiteExtensionGallery,KuduApps/NugetGallery21Fx45-DeleteMe,grenade/NuGetGallery_download-count-patch,skbkontur/NuGetGallery,JetBrains/ReSharperGallery,JetBrains/ReSharperGallery,kudustress/NuGetG... | Website/Views/Authentication/LogOn.cshtml | Website/Views/Authentication/LogOn.cshtml | @using NuGetGallery;
@model SignInRequest
<h1>Log On</h1>
<p>
Don't have an account yet? <a href="@Url.Action(MVC.Users.Register())">Register now.</a>
</p>
@using (Html.BeginForm()) {
<fieldset class="form">
<legend>Log On Form</legend>
@Html.AntiForgeryToken()
@Html.ValidationSumma... | @using NuGetGallery;
@model SignInRequest
<h1>Log On</h1>
<p>
Don't have an account yet? <a href="@Url.Action(MVC.Users.Register())">Register now.</a>
</p>
@using (Html.BeginForm()) {
<fieldset class="form">
<legend>Log On Form</legend>
@Html.AntiForgeryToken()
@Html.ValidationSumma... | apache-2.0 | C# |
60ba0abebd66bedcee128bbe428851c1869d44b7 | Revert "[MapperTests]: Refactor CacheMiss test" | vanashimko/MPP.Mapper | MapperTests/DtoMapperTests.cs | MapperTests/DtoMapperTests.cs | using System;
using Xunit;
using Mapper;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Moq;
namespace Mapper.Tests
{
public class DtoMapperTests
{
[Fact]
public void Map_NullPassed_ExceptionThrown()
{
IMapper map... | using System;
using Xunit;
using Mapper;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Moq;
namespace Mapper.Tests
{
public class DtoMapperTests
{
[Fact]
public void Map_NullPassed_ExceptionThrown()
{
IMapper map... | mit | C# |
2261cfc20226ccdeb8857caea1931695ebdbfff7 | Implement some LLVMAssembly methods | jonathanvdc/flame-llvm,jonathanvdc/flame-llvm,jonathanvdc/flame-llvm | Flame.LLVM/LLVMAssembly.cs | Flame.LLVM/LLVMAssembly.cs | using System;
using System.IO;
using System.Runtime.InteropServices;
using Flame.Compiler.Build;
using LLVMSharp;
using static LLVMSharp.LLVM;
namespace Flame.LLVM
{
/// <summary>
/// An assembly builder implementation that creates an LLVM module.
/// </summary>
public sealed class LLVMAssembly : IAss... | using System;
using Flame.Compiler.Build;
namespace Flame.LLVM
{
/// <summary>
/// An assembly builder implementation that creates an LLVM module.
/// </summary>
public sealed class LLVMAssembly : IAssemblyBuilder
{
public LLVMAssembly(
UnqualifiedName Name,
Version... | mit | C# |
319dd424322fe7fa31cfbbe9c63122c3b58a3cac | Update Program.cs | WojcikMike/docs.particular.net,eclaus/docs.particular.net,yuxuac/docs.particular.net,pedroreys/docs.particular.net | samples/unit-of-work/using-childcontainers/Version_5/Sample/Program.cs | samples/unit-of-work/using-childcontainers/Version_5/Sample/Program.cs | using System;
using NServiceBus;
using Raven.Client;
using Raven.Client.Document;
using StructureMap;
static class Program
{
static void Main()
{
BusConfiguration configuration = new BusConfiguration();
configuration.EndpointName("Samples.UoWWithChildContainers");
#region ContainerCon... | using System;
using NServiceBus;
using Raven.Client;
using Raven.Client.Document;
using StructureMap;
static class Program
{
static void Main()
{
BusConfiguration configuration = new BusConfiguration();
configuration.EndpointName("Samples.UoWWithChildContainers");
#region ContainerCon... | apache-2.0 | C# |
62d4704d69b0e15675ec6a088b7e22dc09779bd0 | Make identity-test API easier to consume | vflorusso/nether,stuartleeks/nether,navalev/nether,brentstineman/nether,ankodu/nether,vflorusso/nether,stuartleeks/nether,vflorusso/nether,navalev/nether,krist00fer/nether,MicrosoftDX/nether,ankodu/nether,brentstineman/nether,navalev/nether,ankodu/nether,brentstineman/nether,vflorusso/nether,brentstineman/nether,olivia... | src/Nether.Web/Features/Identity/Controllers/IdentityTestController.cs | src/Nether.Web/Features/Identity/Controllers/IdentityTestController.cs | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using System.Linq;
namespace Nether.Web.Features.Identity
{
[Route("identity-test")]
... | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using System.Linq;
namespace Nether.Web.Features.Identity
{
[Route("identity-test")]
... | mit | C# |
efe4bf67dfb5775d4bcc55b030b2101e2ee1500a | return back | askeip/tasks | Eval/EvalProgram.cs | Eval/EvalProgram.cs | using System;
using System.Linq.Expressions;
namespace EvalTask
{
class EvalProgram
{
static void Main(string[] args)
{
string input = Console.In.ReadToEnd();
var calc = new Sprache.Calc.XtensibleCalculator();
calc.RegisterFunction("sqrt", Math.Sqrt);
input = input.Repla... | using System;
using System.Linq.Expressions;
namespace EvalTask
{
class EvalProgram
{
static void Main(string[] args)
{
string input = Console.In.ReadToEnd();
var calc = new Sprache.Calc.XtensibleCalculator();
calc.RegisterFunction("sqrt", Math.Sqrt);
input = input.Repla... | mit | C# |
607638abc609c3a64a436c3e27620725875a7b57 | Update SharedSlotType.cs | stoiveyp/Alexa.NET.Management | Alexa.NET.Management/SlotType/SharedSlotType.cs | Alexa.NET.Management/SlotType/SharedSlotType.cs | using Newtonsoft.Json;
namespace Alexa.NET.Management.SlotType
{
public class SharedSlotType
{
[JsonProperty("id")]
public string Id { get; set; }
[JsonProperty("name")]
public string Name { get; set; }
[JsonProperty("description",NullValueHandling = NullValueHandling... | using Newtonsoft.Json;
namespace Alexa.NET.Management.SlotType
{
public class SharedSlotType
{
[JsonProperty("name")]
public string Name { get; set; }
[JsonProperty("description",NullValueHandling = NullValueHandling.Ignore)]
public string Description { get; set; }
}
} | mit | C# |
59b65197f5fa35904f3cf047c482241ae7aa94fc | Fix Alpaca error message deserialization | jameschch/Lean,JKarathiya/Lean,StefanoRaggi/Lean,jameschch/Lean,AlexCatarino/Lean,QuantConnect/Lean,QuantConnect/Lean,StefanoRaggi/Lean,AlexCatarino/Lean,AlexCatarino/Lean,AlexCatarino/Lean,StefanoRaggi/Lean,StefanoRaggi/Lean,JKarathiya/Lean,StefanoRaggi/Lean,QuantConnect/Lean,JKarathiya/Lean,JKarathiya/Lean,jameschch/... | Brokerages/Alpaca/Markets/Messages/JsonError.cs | Brokerages/Alpaca/Markets/Messages/JsonError.cs | /*
* The official C# API client for alpaca brokerage
* Sourced from: https://github.com/alpacahq/alpaca-trade-api-csharp/tree/v3.0.2
*/
using System;
using Newtonsoft.Json;
namespace QuantConnect.Brokerages.Alpaca.Markets
{
internal sealed class JsonError
{
[JsonProperty(PropertyName = "code", Requ... | /*
* The official C# API client for alpaca brokerage
* Sourced from: https://github.com/alpacahq/alpaca-trade-api-csharp/tree/v3.0.2
*/
using System;
using Newtonsoft.Json;
namespace QuantConnect.Brokerages.Alpaca.Markets
{
internal sealed class JsonError
{
[JsonProperty(PropertyName = "code", Requ... | apache-2.0 | C# |
17ffd175ca659e2bef1b871e28d57e3782bb485d | add ability to set a local default dialect, just like row fields provider | volkanceylan/Serenity,volkanceylan/Serenity,volkanceylan/Serenity,volkanceylan/Serenity,volkanceylan/Serenity | src/Serenity.Net.Data/SqlHelpers/SqlSettings.cs | src/Serenity.Net.Data/SqlHelpers/SqlSettings.cs |
using System;
using System.Threading;
namespace Serenity.Data
{
/// <summary>
/// Global SQL settings
/// </summary>
public static class SqlSettings
{
private static ISqlDialect defaultDialect;
private static readonly AsyncLocal<ISqlDialect> localDialect;
st... |
using System;
namespace Serenity.Data
{
/// <summary>
/// Global SQL settings
/// </summary>
public static class SqlSettings
{
private static ISqlDialect defaultDialect = new SqlServer2012Dialect();
/// <summary>
/// Gets or sets a value indicating whether to... | mit | C# |
f0783207e57b7551e4be400e90f360f3252d6653 | Fix PreGeneratedSerializerGenerator does not generate async methods. | msgpack/msgpack-cli,msgpack/msgpack-cli | test/MsgPack.UnitTest/Serialization/PreGeneratedSerializerGenerator.cs | test/MsgPack.UnitTest/Serialization/PreGeneratedSerializerGenerator.cs | #region -- License Terms --
//
// MessagePack for CLI
//
// Copyright (C) 2010-2014 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.apac... | #region -- License Terms --
//
// MessagePack for CLI
//
// Copyright (C) 2010-2014 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.apac... | apache-2.0 | C# |
43b59204d3e85c2ef7169f753f4d1ce66e805f29 | Fix AggregationResult error | InfinniPlatform/InfinniPlatform,InfinniPlatform/InfinniPlatform,InfinniPlatform/InfinniPlatform | InfinniPlatform.Core/Index/AggregationResult.cs | InfinniPlatform.Core/Index/AggregationResult.cs | using System.Collections.Generic;
using InfinniPlatform.Sdk.Registers;
namespace InfinniPlatform.Core.Index
{
/// <summary>
/// Результат выполнения агрегации по одному измерению
/// </summary>
public class AggregationResult
{
private readonly List<AggregationResult> _backets;
... | using System.Collections.Generic;
using InfinniPlatform.Sdk.Registers;
namespace InfinniPlatform.Core.Index
{
/// <summary>
/// Результат выполнения агрегации по одному измерению
/// </summary>
public class AggregationResult
{
private readonly List<AggregationResult> _backets;
... | agpl-3.0 | C# |
91af4cc2ab78c55839fa5cf08782c7c25a348b59 | Whitelist RuntimeWrappedException constructor need by System.Linq.Expressions. (#3499) | tijoytom/corert,shrah/corert,shrah/corert,krytarowski/corert,tijoytom/corert,gregkalapos/corert,shrah/corert,tijoytom/corert,shrah/corert,krytarowski/corert,yizhang82/corert,krytarowski/corert,gregkalapos/corert,krytarowski/corert,yizhang82/corert,yizhang82/corert,gregkalapos/corert,yizhang82/corert,gregkalapos/corert,... | src/System.Private.CoreLib/src/System/Runtime/CompilerServices/RuntimeWrappedException.cs | src/System.Private.CoreLib/src/System/Runtime/CompilerServices/RuntimeWrappedException.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.
/*=============================================================================
**
**
**
** Purpose: The exception c... | // 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.
/*=============================================================================
**
**
**
** Purpose: The exception c... | mit | C# |
d17212f6e845eae4f8796ea09a0561f9816c92f9 | allow many config files | kreeben/resin,kreeben/resin | src/Sir/IniConfiguration.cs | src/Sir/IniConfiguration.cs | using System.Collections.Generic;
using System.IO;
namespace Sir
{
public class IniConfiguration : IConfigurationProvider
{
private IDictionary<string, string> _doc;
private readonly string _fileName;
public IniConfiguration(string fileName)
{
_doc = new Dictionary... | using System.Collections.Generic;
using System.IO;
namespace Sir
{
public class IniConfiguration : IConfigurationProvider
{
private IDictionary<string, string> _doc;
private readonly string _fileName;
public IniConfiguration(string fileName)
{
_doc = new Dictionary... | mit | C# |
1013749a83365c54d7585e1a4289c54113754e52 | Change user id type to int | peppy/osu,ppy/osu,NeoAdonis/osu,ppy/osu,peppy/osu,peppy/osu-new,ppy/osu,peppy/osu,smoogipoo/osu,NeoAdonis/osu,smoogipooo/osu,NeoAdonis/osu,smoogipoo/osu,UselessToucan/osu,UselessToucan/osu,UselessToucan/osu,smoogipoo/osu | osu.Game/Online/RealtimeMultiplayer/MultiplayerRoomUser.cs | osu.Game/Online/RealtimeMultiplayer/MultiplayerRoomUser.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.
#nullable enable
using System;
using osu.Game.Users;
namespace osu.Game.Online.RealtimeMultiplayer
{
[Serializable]
public class MultiplayerRoomUser : IEquatabl... | // 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.
#nullable enable
using System;
using osu.Game.Users;
namespace osu.Game.Online.RealtimeMultiplayer
{
[Serializable]
public class MultiplayerRoomUser : IEquatabl... | mit | C# |
c7db3be1af72e04aa1f258d6813e10783a9a439f | Implement Icon saving | Davipb/BluwolfIcons | BluwolfIcons/Icon.cs | BluwolfIcons/Icon.cs | using System;
using System.Collections.Generic;
using System.Drawing;
using System.IO;
namespace BluwolfIcons
{
/// <summary>
/// Represents an icon image file.
/// </summary>
public class Icon
{
public IList<IIconImage> Images { get; } = new List<IIconImage>();
/// <summary>
/// Saves this icon to a spec... | using System;
using System.Collections.Generic;
using System.IO;
namespace BluwolfIcons
{
/// <summary>
/// Represents an icon image file.
/// </summary>
public class Icon
{
public IList<IIconImage> Images { get; } = new List<IIconImage>();
/// <summary>
/// Saves this icon to a specified file.
/// </su... | mit | C# |
ad53ababe89f49a2650a4bcd4eb5368052f9413f | Fix wrong default | NeoAdonis/osu,UselessToucan/osu,ppy/osu,smoogipoo/osu,ppy/osu,peppy/osu,NeoAdonis/osu,UselessToucan/osu,smoogipooo/osu,NeoAdonis/osu,smoogipoo/osu,peppy/osu,peppy/osu-new,peppy/osu,smoogipoo/osu,ppy/osu,UselessToucan/osu | osu.Game.Rulesets.Osu/Skinning/Legacy/LegacyCursor.cs | osu.Game.Rulesets.Osu/Skinning/Legacy/LegacyCursor.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.Allocation;
using osu.Framework.Graphics;
using osu.Game.Rulesets.Osu.UI.Cursor;
using osu.Game.Skinning;
using osuTK;
namespace osu.Game.Rulesets.Os... | // 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;
using osu.Game.Rulesets.Osu.UI.Cursor;
using osu.Game.Skinning;
using osuTK;
namespace osu.Game.Rulesets.Os... | mit | C# |
414c59c54a00bcf8cc1ab6b6dfebbce04dbd6b4d | Raise priority to reduce benchmarking noise | EamonNerbonne/a-vs-an,EamonNerbonne/a-vs-an,EamonNerbonne/a-vs-an,EamonNerbonne/a-vs-an | PerfTest/Program.cs | PerfTest/Program.cs | using System;
using System.Diagnostics;
using System.Linq;
using System.Management;
using System.Threading;
using AvsAnLib;
using AvsAnDemo;
namespace PerfTest
{
static class Program
{
static void Main() {
Process.GetCurrentProcess().PriorityClass = ProcessPriorityClass.High;
... | using System;
using System.Diagnostics;
using System.Linq;
using System.Management;
using System.Threading;
using AvsAnLib;
using AvsAnDemo;
namespace PerfTest
{
static class Program
{
static void Main() {
var benchdict = Dictionaries.LoadEnglishDictionary();
var ... | apache-2.0 | C# |
cffb1a7352fcb934db7ca7785e34dd4474713856 | バージョンアップ (1.1.0) | cube-soft/Cube.Core,cube-soft/Cube.Core | Properties/AssemblyInfo.cs | Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// アセンブリに関する一般情報は以下の属性セットをとおして制御されます。
// アセンブリに関連付けられている情報を変更するには、
// これらの属性値を変更してください。
[assembly: AssemblyTitle("Cube.Core")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[asse... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// アセンブリに関する一般情報は以下の属性セットをとおして制御されます。
// アセンブリに関連付けられている情報を変更するには、
// これらの属性値を変更してください。
[assembly: AssemblyTitle("Cube.Core")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[asse... | apache-2.0 | C# |
3b3b9ee31bcef4cdda6cd5b7417d4117f8257f32 | Bump version | o11c/WebMConverter,Yuisbean/WebMConverter,nixxquality/WebMConverter | Properties/AssemblyInfo.cs | Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("We... | 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("We... | mit | C# |
3b83b8b0fc568399999fba97bf5fe04c6ce70048 | Update version number for nuget | rlittletht/TCore.Settings | Properties/AssemblyInfo.cs | Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("TC... | 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("TC... | mit | C# |
88c15f9fd8519794a9b71d1a54a72ca5c65517e9 | add exists method | Mart-Bogdan/pubsub,upta/pubsub,ortrails/pubsub | PubSub/PubSubExtensions.cs | PubSub/PubSubExtensions.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PubSub
{
static public class PubSubExtensions
{
static private readonly Hub hub = new Hub();
static public bool Exists<T>( this object obj )
{
fore... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PubSub
{
static public class PubSubExtensions
{
static private readonly Hub hub = new Hub();
static public void Publish<T>( this object obj )
{
hub... | apache-2.0 | C# |
876e18c597a58320060b2020df0f89a2112de306 | Mark AccessDenied and UsedUp properties as obsolete - they're not used anywhere | TDaphneB/XeroAPI.Net,XeroAPI/XeroAPI.Net,MatthewSteeples/XeroAPI.Net,jcvandan/XeroAPI.Net | source/XeroApi/OAuth/Utility/Storage/Basic/RequestToken.cs | source/XeroApi/OAuth/Utility/Storage/Basic/RequestToken.cs | #region License
// The MIT License
//
// Copyright (c) 2006-2008 DevDefined Limited.
//
// 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... | #region License
// The MIT License
//
// Copyright (c) 2006-2008 DevDefined Limited.
//
// 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... | mit | C# |
66d270fc28a9b7ff70452576819af9f9b05295ae | Remove locking code and make it possible to have a dummy history, by calling the parameterless constructor. | IvionSauce/MeidoBot | IvionSoft/History.cs | IvionSoft/History.cs | using System;
using System.Collections.Generic;
namespace IvionSoft
{
public class History<T>
{
public int Length { get; private set; }
HashSet<T> hashes;
Queue<T> queue;
public History()
{
Length = 0;
}
public History(int length) : this(l... | using System;
using System.Collections.Generic;
namespace IvionSoft
{
public class History<T>
{
public int Length { get; private set; }
HashSet<T> hashes;
Queue<T> queue;
object _locker = new object();
public History(int length) : this(length, null)
{}
... | bsd-2-clause | C# |
d8375e5fff5691c6fd4f871900d9094842d3738e | Remove Twitchie property | JokkeeZ/Twitchie | TwitchIrcChannel.cs | TwitchIrcChannel.cs | using System;
using System.Threading.Tasks;
namespace Twitchie2
{
public class TwitchIrcChannel
{
public string Name { get; }
public bool Joined { get; private set; }
public TwitchIrcChannel(string channel)
{
if (string.IsNullOrWhiteSpace(channel))
throw new ArgumentException("Invalid channel! Chan... | using System;
using System.Threading.Tasks;
namespace Twitchie2
{
public class TwitchIrcChannel
{
public string Name { get; }
public bool Joined { get; private set; }
public Twitchie Instance => Twitchie.Instance;
public TwitchIrcChannel(string channel)
{
if (string.IsNullOrWhiteSpace(channel))
... | mit | C# |
5f4a79cbef3ab021d5f9e5e06b1acd711a3a6e30 | Use proper highlighting. | jesterret/ReClass.NET,jesterret/ReClass.NET,KN4CK3R/ReClass.NET,KN4CK3R/ReClass.NET,KN4CK3R/ReClass.NET,jesterret/ReClass.NET | Nodes/BaseHexNode.cs | Nodes/BaseHexNode.cs | using System;
using System.Collections.Generic;
using System.Diagnostics.Contracts;
using System.Globalization;
using ReClassNET.UI;
using ReClassNET.Util;
namespace ReClassNET.Nodes
{
public abstract class BaseHexNode : BaseNode
{
public static DateTime CurrentHighlightTime;
public static readonly TimeSpan Hig... | using System;
using System.Collections.Generic;
using System.Diagnostics.Contracts;
using System.Globalization;
using ReClassNET.UI;
namespace ReClassNET.Nodes
{
public abstract class BaseHexNode : BaseNode
{
private readonly byte[] buffer;
private DateTime highlightUntil;
private readonly Dictionary<IntPtr, ... | mit | C# |
acbb6e7cfd8a63f23befe3b05605bf0cbb5cf63c | Add catch for ArgumentException | SkillsFundingAgency/das-employerusers,SkillsFundingAgency/das-employerusers,SkillsFundingAgency/das-employerusers | src/SFA.DAS.EmployerUsers.Web/Authentication/IdsContext.cs | src/SFA.DAS.EmployerUsers.Web/Authentication/IdsContext.cs | using System;
using System.Text;
using System.Web.Security;
using Newtonsoft.Json;
using NLog;
namespace SFA.DAS.EmployerUsers.Web.Authentication
{
public class IdsContext
{
public string ReturnUrl { get; set; }
public string ClientId { get; set; }
public static string CookieName => "IDS"... | using System;
using System.Text;
using System.Web.Security;
using Newtonsoft.Json;
using NLog;
namespace SFA.DAS.EmployerUsers.Web.Authentication
{
public class IdsContext
{
public string ReturnUrl { get; set; }
public string ClientId { get; set; }
public static string CookieName => "ID... | mit | C# |
e43d98b98df5ae91e376c673c1a1355f32576fc7 | Fix RunDocker command | Sitecore/Sitecore-Instance-Manager | src/SIM.Pipelines/Install/Containers/RunDockerProcessor.cs | src/SIM.Pipelines/Install/Containers/RunDockerProcessor.cs | using JetBrains.Annotations;
using SIM.Pipelines.Processors;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SIM.Pipelines.Install.Containers
{
public class RunDockerProcessor : Processor
{
protected virtual string Command => "docke... | using JetBrains.Annotations;
using SIM.Pipelines.Processors;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SIM.Pipelines.Install.Containers
{
public class RunDockerProcessor : Processor
{
protected override void Process([NotNull] ... | mit | C# |
fc48b69296aa56aec121416c6413249196dbf71f | add procedure status peck | ASOS/woodpecker | src/Woodpecker.Core/Sql/AzureSqlDmvGeoReplicationPecker.cs | src/Woodpecker.Core/Sql/AzureSqlDmvGeoReplicationPecker.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Woodpecker.Core.Sql
{
public class AzureSqlDmvGeoReplicationPecker : AzureSqlDmvPeckerBase
{
private const string _query = @"
select @@servername [collection_server_name]
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Woodpecker.Core.Sql
{
public class AzureSqlDmvGeoReplicationPecker : AzureSqlDmvPeckerBase
{
private const string DatabaseGeoReplicationInlineSqlNotSoBad = @"
SELECT
GETUTC... | mit | C# |
ff6a0d325de86183f102bfb10f6e203381e6d87c | Move assignment to initialiser | mmanela/diffplex,mmanela/diffplex,mmanela/diffplex,mmanela/diffplex | DiffPlex/DiffBuilder/Model/DiffPiece.cs | DiffPlex/DiffBuilder/Model/DiffPiece.cs | using System.Collections.Generic;
namespace DiffPlex.DiffBuilder.Model
{
public enum ChangeType
{
Unchanged,
Deleted,
Inserted,
Imaginary,
Modified
}
public class DiffPiece
{
public ChangeType Type { get; set; }
public int? Position { get; s... | using System.Collections.Generic;
namespace DiffPlex.DiffBuilder.Model
{
public enum ChangeType
{
Unchanged,
Deleted,
Inserted,
Imaginary,
Modified
}
public class DiffPiece
{
public ChangeType Type { get; set; }
public int? Position { get; s... | apache-2.0 | C# |
90161e43fdef433a9fbbaa9a95f4772bf21b693e | add dcterms as a builtin simple type | Colectica/cogs | Cogs.Common/CogsTypes.cs | Cogs.Common/CogsTypes.cs | // Copyright (c) 2017 Colectica. All rights reserved
// See the LICENSE file in the project root for more information.
using System;
using System.Collections.Generic;
using System.Text;
namespace Cogs.Common
{
public static class CogsTypes
{
public static readonly string[] SimpleTypeNames =
{... | // Copyright (c) 2017 Colectica. All rights reserved
// See the LICENSE file in the project root for more information.
using System;
using System.Collections.Generic;
using System.Text;
namespace Cogs.Common
{
public static class CogsTypes
{
public static readonly string[] SimpleTypeNames =
{... | mit | C# |
d6d18d189ba6ebc9b414e2504e0376daee2bc39f | Bump version to 1.1.0.0 | courtneyklatt/Mjolnir,hudl/Mjolnir | Hudl.Mjolnir/Properties/AssemblyInfo.cs | Hudl.Mjolnir/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("Hu... | 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("Hu... | apache-2.0 | C# |
743bdb015598a4c8be9fbf174736c942b1205227 | Update UIBlurView.cs | Clancey/iOSHelpers | iOSHelpers/UIBlurView.cs | iOSHelpers/UIBlurView.cs | using System;
using UIKit;
namespace iOSHelpers
{
public class UIBlurView : UIView
{
UIView blurView;
public UIBlurView()
{
var blur = UIBlurEffect.FromStyle(UIBlurEffectStyle.Dark);
blurView = new UIVisualEffectView(blur);
Add(blurView);
}
public override void LayoutSubviews()
{
base... | using System;
using UIKit;
namespace iOSHelpers
{
public class UIBlurView : UIView
{
UIToolbar toolbar;
public UIBlurView ()
{
BackgroundColor = UIColor.Clear;
Add(toolbar = new UIToolbar {
Translucent =true,
});
}
public UIBarStyle Style
{
get{ return toolbar.BarStyle; }
set{ toolba... | apache-2.0 | C# |
76327d6dc8d6c7155fbc5ecd4d5eb562828e02cb | add ac replace test function | tupunco/Tup.AhoCorasick | Tup.AhoCorasick/Program.cs | Tup.AhoCorasick/Program.cs | using System;
using System.Text;
namespace Tup.AhoCorasick
{
class Program
{
static void Main(string[] args)
{
var search = new AhoCorasickSearch();
var keywords = new string[] { "he", "she", "his", "hers" };
search.Build(keywords);
s... | using System;
namespace Tup.AhoCorasick
{
class Program
{
static void Main(string[] args)
{
var search = new AhoCorasickSearch();
var keywords = new string[] { "he", "she", "his", "hers" };
search.Build(keywords);
var res = search.SearchAll("usher... | mit | C# |
44501952c29fdb0733ff19ce7da4bf063ddb19c8 | Add Default static to b2FixtureDef | TukekeSoft/CocosSharp,netonjm/CocosSharp,MSylvia/CocosSharp,mono/CocosSharp,haithemaraissia/CocosSharp,TukekeSoft/CocosSharp,mono/CocosSharp,mono/cocos2d-xna,MSylvia/CocosSharp,zmaruo/CocosSharp,zmaruo/CocosSharp,netonjm/CocosSharp,hig-ag/CocosSharp,mono/cocos2d-xna,hig-ag/CocosSharp,haithemaraissia/CocosSharp | box2d/Dynamics/b2FixtureDef.cs | box2d/Dynamics/b2FixtureDef.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Box2D.Collision.Shapes;
using Box2D.Collision;
namespace Box2D.Dynamics
{
/// This proxy is used internally to connect fixtures to the broad-phase.
public class b2FixtureProxy
{
public b2AABB aabb;
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Box2D.Collision.Shapes;
using Box2D.Collision;
namespace Box2D.Dynamics
{
/// This proxy is used internally to connect fixtures to the broad-phase.
public class b2FixtureProxy
{
public b2AABB aabb;
... | mit | C# |
c441c2cebfca44007e370561a521b485bb8d95ac | Implement ObjectPool object getter. | dimixar/audio-controller-unity | AudioController/Assets/Source/ObjectPool.cs | AudioController/Assets/Source/ObjectPool.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ObjectPool : MonoBehaviour
{
#region Public fields
public List<PrefabBasedPool> pools;
#endregion
#region Public methods and properties
public GameObject GetFreeObject(GameObject prefab = null)
{
... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ObjectPool : MonoBehaviour
{
#region Public fields
public List<PrefabBasedPool> pools;
#endregion
#region Public methods and properties
public AudioObject GetFreeAudioObject(GameObject prefab = null)
{... | mit | C# |
53c5706259993805d903efd031d0173bfb6d7126 | bump version | vevix/DigitalOcean.API | DigitalOcean.API/Properties/AssemblyInfo.cs | DigitalOcean.API/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("DigitalOcean.API")]
[assembly: AssemblyD... | using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("DigitalOcean.API")]
[assembly: AssemblyD... | mit | C# |
08a71b4c6ffadfa711be63a5caa2e95cfa8ef498 | Clarify Address property types and removed getters/setters | goshippo/shippo-csharp-client | Shippo/Address.cs | Shippo/Address.cs | using System;
using System.Collections.Generic;
using Newtonsoft.Json;
namespace Shippo {
[JsonObject (MemberSerialization.OptIn)]
public class Address : ShippoId {
[JsonProperty (PropertyName = "object_state")]
public string ObjectState;
[JsonProperty (PropertyName = "object_purpose"... | using System;
using Newtonsoft.Json;
namespace Shippo {
[JsonObject (MemberSerialization.OptIn)]
public class Address : ShippoId {
[JsonProperty (PropertyName = "object_state")]
public object ObjectState { get; set; }
[JsonProperty (PropertyName = "object_purpose")]
public obj... | apache-2.0 | C# |
23f5e042836287501ae8752b0217119f95f0a369 | Add test | sakapon/Samples-2017 | DrawingSample/BitmapScaleConsole/Program.cs | DrawingSample/BitmapScaleConsole/Program.cs | using System;
using System.Collections.Generic;
using System.Drawing.Drawing2D;
using System.Drawing.Imaging;
using System.IO;
using System.Linq;
namespace BitmapScaleConsole
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Press [Enter] key to st... | using System;
using System.Collections.Generic;
using System.Drawing.Drawing2D;
using System.Drawing.Imaging;
using System.IO;
using System.Linq;
namespace BitmapScaleConsole
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Press [Enter] key to st... | mit | C# |
6d5d48e95b4853efeb5ee30beb1805860fd5e3e7 | Add check constraint and method to output constraint name with no schema for use by rename operations | RivetDB/Rivet,RivetDB/Rivet,RivetDB/Rivet | Source/ConstraintName.cs | Source/ConstraintName.cs | using System;
using System.Collections.Generic;
namespace Rivet
{
public enum ConstraintType
{
Default,
PrimaryKey,
ForeignKey,
Check,
Index,
Unique
}
public class ConstraintName
{
public ConstraintName(string schemaName, string tableName, string[] columnName, ConstraintType type... | using System;
using System.Collections.Generic;
namespace Rivet
{
public enum ConstraintType
{
Default,
PrimaryKey,
ForeignKey,
Index,
Unique
}
public class ConstraintName
{
public ConstraintName(string schemaName, string tableName, string[] columnName, ConstraintType type)
{
... | apache-2.0 | C# |
30b27522cba792f96ebfcd26dd6ee05d3f3fba1f | change name!! | pekarb103/blog- | MvcApplication1/MvcApplication1/Views/Shared/_Layout.cshtml | MvcApplication1/MvcApplication1/Views/Shared/_Layout.cshtml | <!doctype html>
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" href="~/Content/css/reset.css">
<link rel="stylesheet" href="~/Content/css/style.css">
</head>
<body>
<div class="wrap">
<div class="left-column">
<d... | <!doctype html>
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" href="~/Content/css/reset.css">
<link rel="stylesheet" href="~/Content/css/style.css">
</head>
<body>
<div class="wrap">
<div class="left-column">
<d... | mit | C# |
147656cacc52c9d6c6c6b2553098de15594ecd40 | Fix assembly version | andyshao/Hangfire.Ninject,HangfireIO/Hangfire.Ninject | HangFire.Ninject/Properties/AssemblyInfo.cs | HangFire.Ninject/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("HangFire.Ninject")]
[assembly: AssemblyDe... | using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("HangFire.Ninject")]
[assembly: AssemblyDe... | mit | C# |
e6746b4de4a89b2cc89708d3bab9883eb5a4ca12 | Fix admin menu in integrations test | mgmccarthy/allReady,gitChuckD/allReady,GProulx/allReady,bcbeatty/allReady,jonatwabash/allReady,HTBox/allReady,jonatwabash/allReady,jonatwabash/allReady,c0g1t8/allReady,GProulx/allReady,HamidMosalla/allReady,VishalMadhvani/allReady,MisterJames/allReady,BillWagner/allReady,BillWagner/allReady,binaryjanitor/allReady,dpaqu... | AllReadyApp/Web-App/AllReady/Views/Shared/_AdminNavigationPartial.cshtml | AllReadyApp/Web-App/AllReady/Views/Shared/_AdminNavigationPartial.cshtml | @using AllReady.Security
@if (User.IsUserType(UserType.SiteAdmin) || User.IsUserType(UserType.OrgAdmin))
{
var descriptor = (Microsoft.AspNetCore.Mvc.Controllers.ControllerActionDescriptor)ViewContext.ActionDescriptor;
var areaName = descriptor.RouteValues["area"]; // there must be a better way to get the are... | @using AllReady.Security
@if (User.IsUserType(UserType.SiteAdmin) || User.IsUserType(UserType.OrgAdmin))
{
var descriptor = (Microsoft.AspNetCore.Mvc.Controllers.ControllerActionDescriptor)ViewContext.ActionDescriptor;
var areaName = descriptor.RouteValues["area"]; // there must be a better way to get the are... | mit | C# |
dd925a3f0cd3d8e2462c3c82c3ad21e367521e6e | add _startingState (readability++) | miraimann/Knuth-Morris-Pratt | KnuthMorrisPratt/KnuthMorrisPratt/Finder.cs | KnuthMorrisPratt/KnuthMorrisPratt/Finder.cs | using System;
using System.Collections.Generic;
using System.Linq;
namespace KnuthMorrisPratt
{
internal class Finder<T> : IFinder<T>
{
private readonly int[,] _dfa;
private readonly Dictionary<T, int> _abc;
private readonly int _startingState = 0;
private readonly int _finalS... | using System;
using System.Collections.Generic;
using System.Linq;
namespace KnuthMorrisPratt
{
internal class Finder<T> : IFinder<T>
{
private readonly int[,] _dfa;
private readonly Dictionary<T, int> _abc;
private readonly int _finalState;
public Finder(IEnumerable<T> word)
... | mit | C# |
994db55b6d542c187d96d6905552f79d2a352d6a | Simplify check conditionals | ppy/osu,ppy/osu,peppy/osu,peppy/osu,peppy/osu,ppy/osu | osu.Game.Rulesets.Catch/UI/DrawableCatchRuleset.cs | osu.Game.Rulesets.Catch/UI/DrawableCatchRuleset.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.
#nullable disable
using System.Collections.Generic;
using System.Linq;
using osu.Framework.Allocation;
using osu.Framework.Input;
using osu.Game.Beatmaps;
using osu.Gam... | // 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.
#nullable disable
using System.Collections.Generic;
using System.Linq;
using osu.Framework.Allocation;
using osu.Framework.Input;
using osu.Game.Beatmaps;
using osu.Gam... | mit | C# |
940409bb96247ca700739fa6999b0cc15fbc37e1 | Add BgpHeaderLength | mstrother/BmpListener | BmpListener/Constants.cs | BmpListener/Constants.cs | namespace BmpListener
{
static class Constants
{
public const int BgpHeaderLength = 19;
public const int BmpCommonHeaderLength = 6;
public const int BmpPerPeerHeaderLength = 42;
}
}
| namespace BmpListener
{
static class Constants
{
public const int BmpCommonHeaderLength = 6;
public const int BmpPerPeerHeaderLength = 42;
}
}
| mit | C# |
1ade17b0c0ab69d515b53e07ff0492a904c66a3b | put some ifs on the next line | nunit/nunit,nunit/nunit,mjedrzejek/nunit,mjedrzejek/nunit | src/NUnitFramework/framework/Internal/AwaitAdapter.cs | src/NUnitFramework/framework/Internal/AwaitAdapter.cs | // Copyright (c) Charlie Poole, Rob Prouse and Contributors. MIT License - see LICENSE.txt
using System;
namespace NUnit.Framework.Internal
{
/// <summary>
/// Adapts various styles of asynchronous waiting to a common API.
/// </summary>
internal abstract class AwaitAdapter
{
public abstra... | // Copyright (c) Charlie Poole, Rob Prouse and Contributors. MIT License - see LICENSE.txt
using System;
namespace NUnit.Framework.Internal
{
/// <summary>
/// Adapts various styles of asynchronous waiting to a common API.
/// </summary>
internal abstract class AwaitAdapter
{
public abstra... | mit | C# |
d4b35d236c240ca3e90fcb6c4ff31531a4930497 | Support module def in module function | Desolath/Confuserex,Desolath/ConfuserEx3,timnboys/ConfuserEx,yeaicc/ConfuserEx,engdata/ConfuserEx | Confuser.Core/Project/Patterns/ModuleFunction.cs | Confuser.Core/Project/Patterns/ModuleFunction.cs | using System;
using dnlib.DotNet;
namespace Confuser.Core.Project.Patterns {
/// <summary>
/// A function that compare the module of definition.
/// </summary>
public class ModuleFunction : PatternFunction {
internal const string FnName = "module";
/// <inheritdoc />
public override string Name {
ge... | using System;
using dnlib.DotNet;
namespace Confuser.Core.Project.Patterns {
/// <summary>
/// A function that compare the module of definition.
/// </summary>
public class ModuleFunction : PatternFunction {
internal const string FnName = "module";
/// <inheritdoc />
public override string Name {
ge... | mit | C# |
eb34fb5e38adbdeea486e4cfcbb7655234074de9 | fix multiply wind | fanmingfei/HitTMBigTree | Assets/Scripts/EnemyMovement.cs | Assets/Scripts/EnemyMovement.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Random = UnityEngine.Random;
public class EnemyMovement : MonoBehaviour {
GameObject[] players;
UnityEngine.AI.NavMeshAgent nav;
public float maxDistance = 20f;
public float frozenTime = 5f;
public bool isFrozen = false;
pu... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Random = UnityEngine.Random;
public class EnemyMovement : MonoBehaviour {
GameObject[] players;
UnityEngine.AI.NavMeshAgent nav;
public float maxDistance = 20f;
public float frozenTime = 5f;
public bool isFrozen = false;
pu... | mpl-2.0 | C# |
52d747cf410cecf9dcbbc1b7884a4044b453d72e | convert UIViewAnimationCurve to UIViewAnimationOptions | nervevau2/monotouch-samples,W3SS/monotouch-samples,andypaul/monotouch-samples,andypaul/monotouch-samples,a9upam/monotouch-samples,nelzomal/monotouch-samples,hongnguyenpro/monotouch-samples,kingyond/monotouch-samples,haithemaraissia/monotouch-samples,haithemaraissia/monotouch-samples,kingyond/monotouch-samples,YOTOV-LIM... | Chat/Chat/ChatViewController.cs | Chat/Chat/ChatViewController.cs | using System;
using System.Drawing;
using UIKit;
using Foundation;
using CoreGraphics;
namespace Chat
{
public partial class ChatViewController : UIViewController
{
NSObject willShowToken;
NSObject willHideToken;
public ChatViewController (IntPtr handle)
: base (handle)
{
}
public override void Vi... | using System;
using System.Drawing;
using UIKit;
using Foundation;
using CoreGraphics;
namespace Chat
{
public partial class ChatViewController : UIViewController
{
NSObject willShowToken;
NSObject willHideToken;
public ChatViewController (IntPtr handle)
: base (handle)
{
}
public override void Vi... | mit | C# |
e0ba1ddf58b73f8b6bfd86d01e1929352d1a904a | Add helpers for saving in Library and Library/Caches | stampsy/Stampsy.ImageSource | Destinations/FileDestination.cs | Destinations/FileDestination.cs | using System;
using System.IO;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
namespace Stampsy.ImageSource
{
public class FileDestination : IDestination<FileRequest>
{
public static FileDestination InLibrary (params string [] folders)
{
var folder = Path.... | using System;
using System.IO;
using System.Security.Cryptography;
using System.Text;
namespace Stampsy.ImageSource
{
public class FileDestination : IDestination<FileRequest>
{
public string Folder { get; private set; }
public FileDestination (string folder)
{
Folder = fold... | mit | C# |
227ec96f569c50d37eeb7496a9edf86b1d2b8e0e | Enable editing of ImageTextCell | l8s/Eto,PowerOfCode/Eto,l8s/Eto,l8s/Eto,PowerOfCode/Eto,PowerOfCode/Eto,bbqchickenrobot/Eto-1,bbqchickenrobot/Eto-1,bbqchickenrobot/Eto-1 | Source/Eto.Platform.Gtk/Forms/Cells/ImageTextCellHandler.cs | Source/Eto.Platform.Gtk/Forms/Cells/ImageTextCellHandler.cs | using System;
using Eto.Forms;
using Eto.Drawing;
using Eto.Platform.GtkSharp.Drawing;
namespace Eto.Platform.GtkSharp.Forms.Controls
{
public class ImageTextCellHandler : CellHandler<Gtk.CellRendererText, ImageTextCell>, IImageTextCell
{
Gtk.CellRendererPixbuf imageCell;
int imageDataIndex;
int textDataIndex;... | using System;
using Eto.Forms;
using Eto.Drawing;
using Eto.Platform.GtkSharp.Drawing;
namespace Eto.Platform.GtkSharp.Forms.Controls
{
public class ImageTextCellHandler : CellHandler<Gtk.CellRendererText, ImageTextCell>, IImageTextCell
{
Gtk.CellRendererPixbuf imageCell;
int imageDataIndex;
int textDataIndex;... | bsd-3-clause | C# |
d69558fcbb2261bd74b0d6bd71bd07b87f4701fd | Add missing properties to CustomsInfo.cs | EasyPost/easypost-csharp,dmmatson/easypost-csharp,EasyPost/easypost-csharp,jmalatia/easypost-csharp,kendallb/easypost-async-csharp | EasyPost/CustomsInfo.cs | EasyPost/CustomsInfo.cs | using EasyPost;
using RestSharp;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace EasyPost {
public class CustomsInfo : IResource {
public string id { get; set; }
public DateTime created_at { get; set; }
public ... | using EasyPost;
using RestSharp;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace EasyPost {
public class CustomsInfo : IResource {
public string id { get; set; }
public DateTime created_at { get; set; }
public ... | mit | C# |
cac11af516356dcc97b73299c7340e150bf96cb0 | Update ValuesOut.cs | EricZimmerman/RegistryPlugins | RegistryPlugin.OpenSavePidlMRU/ValuesOut.cs | RegistryPlugin.OpenSavePidlMRU/ValuesOut.cs | using System;
using RegistryPluginBase.Interfaces;
namespace RegistryPlugin.OpenSavePidlMRU
{
public class ValuesOut:IValueOut
{
public ValuesOut(string ext, string absolutePath, string details, string valueName, int mruPosition,
DateTimeOffset? openedOn)
{
Extension = ... | using System;
using RegistryPluginBase.Interfaces;
namespace RegistryPlugin.OpenSavePidlMRU
{
public class ValuesOut:IValueOut
{
public ValuesOut(string ext, string absolutePath, string details, string valueName, int mruPosition,
DateTimeOffset? openedOn)
{
Extension = ... | mit | C# |
51957277afb767062f282d5fd7c659f75e00b0f6 | Add missing EnableNotificationAPI flag to DokanOptions enum | dokan-dev/dokan-dotnet,TrabacchinLuigi/dokan-dotnet,dokan-dev/dokan-dotnet,TrabacchinLuigi/dokan-dotnet,TrabacchinLuigi/dokan-dotnet,dokan-dev/dokan-dotnet | DokanNet/DokanOptions.cs | DokanNet/DokanOptions.cs | using System;
using DokanNet.Native;
namespace DokanNet
{
/// <summary>
/// Dokan mount options used to describe dokan device behavior.
/// </summary>
/// \if PRIVATE
/// <seealso cref="DOKAN_OPTIONS.Options"/>
/// \endif
[Flags]
public enum DokanOptions : long
{
... | using System;
using DokanNet.Native;
namespace DokanNet
{
/// <summary>
/// Dokan mount options used to describe dokan device behavior.
/// </summary>
/// \if PRIVATE
/// <seealso cref="DOKAN_OPTIONS.Options"/>
/// \endif
[Flags]
public enum DokanOptions : long
{
... | mit | C# |
1f3d43d92b1f061a6b5c869a98f4f89cb0d7fe70 | Update RuleUpdater.cs | win120a/ACClassRoomUtil,win120a/ACClassRoomUtil | ProcessBlockUtil/RuleUpdater.cs | ProcessBlockUtil/RuleUpdater.cs | /*
Copyright (C) 2011-2014 AC Inc. (Andy Cheung)
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 ... | /*
Copyright (C) 2011-2014 AC Inc. (Andy Cheung)
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 ... | apache-2.0 | C# |
1084b943b4fb4679ca6e2f5d3a69ba4528ba1584 | test fix | argeset/set-web,argeset/set-web | sources/set.web.test/Interface/FormTests.cs | sources/set.web.test/Interface/FormTests.cs | using System;
using System.Drawing.Imaging;
using NUnit.Framework;
using OpenQA.Selenium;
using OpenQA.Selenium.Support.UI;
using set.web.test.Shared;
namespace set.web.test.Interface
{
[TestFixture]
public class FormTests : BaseInterfaceTest
{
[Test]
public void should_save_new_feedback_v... | using System;
using NUnit.Framework;
using set.web.test.Shared;
namespace set.web.test.Interface
{
[TestFixture]
public class FormTests : BaseInterfaceTest
{
[Test]
public void should_save_new_feedback_via_popup_form()
{
var homeUrl = string.Format("{0}{1}", BASE_URL,... | mit | C# |
e64860ad45b44dfe27d36c1389d30af79e498e17 | Fix test case not working as expected | naoey/osu,Nabile-Rahmani/osu,smoogipoo/osu,NeoAdonis/osu,naoey/osu,naoey/osu,johnneijzen/osu,2yangk23/osu,NeoAdonis/osu,UselessToucan/osu,smoogipoo/osu,johnneijzen/osu,smoogipoo/osu,EVAST9919/osu,Frontear/osuKyzer,UselessToucan/osu,DrabWeb/osu,ZLima12/osu,ppy/osu,peppy/osu,UselessToucan/osu,Drezi126/osu,smoogipooo/osu,... | osu.Game/Screens/Edit/Components/Timelines/Summary/Parts/TimelinePart.cs | osu.Game/Screens/Edit/Components/Timelines/Summary/Parts/TimelinePart.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 System;
using OpenTK;
using osu.Framework.Configuration;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Game.Beatmaps;
... | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System;
using OpenTK;
using osu.Framework.Configuration;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Game.Beatmaps;
... | mit | C# |
6cc4566effc8d333bb12eb52062954e85e4889f6 | Support InitAccessorDeclaration in UseExpressionBodyForAccessors | KevinRansom/roslyn,diryboy/roslyn,sharwell/roslyn,eriawan/roslyn,sharwell/roslyn,physhi/roslyn,AmadeusW/roslyn,mavasani/roslyn,mavasani/roslyn,jasonmalinowski/roslyn,diryboy/roslyn,sharwell/roslyn,eriawan/roslyn,wvdd007/roslyn,dotnet/roslyn,bartdesmet/roslyn,weltkante/roslyn,dotnet/roslyn,bartdesmet/roslyn,diryboy/rosl... | src/Analyzers/CSharp/Analyzers/UseExpressionBody/Helpers/UseExpressionBodyForAccessorsHelper.cs | src/Analyzers/CSharp/Analyzers/UseExpressionBody/Helpers/UseExpressionBodyForAccessorsHelper.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Collections.Immutable;
using Microsoft.CodeAnalysis.CSharp.CodeStyle;
using Microsoft.CodeAnalysis.CSh... | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Collections.Immutable;
using Microsoft.CodeAnalysis.CSharp.CodeStyle;
using Microsoft.CodeAnalysis.CSh... | mit | C# |
997aaafb6dde10379403cbaab6ee83ea7b561702 | Allow custom message in ValidationException ctor | IRlyDontKnow/FluentValidation,olcayseker/FluentValidation,GDoronin/FluentValidation,ruisebastiao/FluentValidation,robv8r/FluentValidation,glorylee/FluentValidation,deluxetiky/FluentValidation,cecilphillip/FluentValidation,mgmoody42/FluentValidation,regisbsb/FluentValidation | src/FluentValidation/ValidationException.cs | src/FluentValidation/ValidationException.cs | #region License
// Copyright (c) Jeremy Skinner (http://www.jeremyskinner.co.uk)
//
// 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... | #region License
// Copyright (c) Jeremy Skinner (http://www.jeremyskinner.co.uk)
//
// 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... | apache-2.0 | C# |
410d0b4ee1b23e48032a340d4abd571aaad504cb | Add ability to change the extension of downloaded files (#5017) | ZLima12/osu,peppy/osu,johnneijzen/osu,ppy/osu,smoogipooo/osu,smoogipoo/osu,NeoAdonis/osu,2yangk23/osu,NeoAdonis/osu,NeoAdonis/osu,smoogipoo/osu,UselessToucan/osu,2yangk23/osu,peppy/osu-new,ppy/osu,ZLima12/osu,UselessToucan/osu,smoogipoo/osu,ppy/osu,UselessToucan/osu,EVAST9919/osu,johnneijzen/osu,peppy/osu,peppy/osu,EVA... | osu.Game/Online/API/APIDownloadRequest.cs | osu.Game/Online/API/APIDownloadRequest.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.IO;
using osu.Framework.IO.Network;
namespace osu.Game.Online.API
{
public abstract class APIDownloadRequest : APIRequest
{
private string ... | // 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.IO;
using osu.Framework.IO.Network;
namespace osu.Game.Online.API
{
public abstract class APIDownloadRequest : APIRequest
{
private string ... | mit | C# |
127786cf02e2449abd3da6f9181f18d8a7d9e0a2 | Fix Bacs network_status deserialization | stripe/stripe-dotnet | src/Stripe.net/Entities/Mandates/MandatePaymentMethodDetailsBacsDebit.cs | src/Stripe.net/Entities/Mandates/MandatePaymentMethodDetailsBacsDebit.cs | namespace Stripe
{
using Newtonsoft.Json;
public class MandatePaymentMethodDetailsBacsDebit : StripeEntity<MandatePaymentMethodDetailsBacsDebit>
{
/// <summary>
/// The status of the mandate on the network and whether it's been accepted or revoked.
/// </summary>
[JsonProper... | namespace Stripe
{
using Newtonsoft.Json;
public class MandatePaymentMethodDetailsBacsDebit : StripeEntity<MandatePaymentMethodDetailsBacsDebit>
{
/// <summary>
/// The status of the mandate on the network and whether it's been accepted or revoked.
/// </summary>
[JsonProper... | apache-2.0 | C# |
994d4bfe1260e8684e33b606ec359a7ce868a302 | change menu text | s093294/Thinktecture.AuthorizationServer,s093294/Thinktecture.AuthorizationServer,IdentityModel/AuthorizationServer,yfann/AuthorizationServer,yfann/AuthorizationServer,IdentityModel/AuthorizationServer | source/WebHost/Views/Shared/_LayoutWithMenu.cshtml | source/WebHost/Views/Shared/_LayoutWithMenu.cshtml | @{
Layout = "~/Views/Shared/_Layout.cshtml";
}
<section class="row">
<nav class="span2">
<ul class="nav nav-pills nav-stacked">
<li class="active">@Html.ActionLink("Home", "Index", "Home")</li>
<li>@Html.ActionLink("Configure", "Index", "Home", new { area="Admin" }, null)</li>
... | @{
Layout = "~/Views/Shared/_Layout.cshtml";
}
<section class="row">
<nav class="span2">
<ul class="nav nav-pills nav-stacked">
<li class="active">@Html.ActionLink("Home", "Index", "Home")</li>
<li>@Html.ActionLink("Admin", "Index", "Home", new { area="Admin" }, null)</li>
... | bsd-3-clause | C# |
6e4adb0ac0cea844198a94802628629ca92228c5 | Rename parser factory methods. | ZoolWay/DbNanites | DbNanites.Core/ParserFactory.cs | DbNanites.Core/ParserFactory.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace DbNanites.Core
{
public static class ParserFactory
{
/// <summary>
/// Creates a model parser based on the provided file.
/// Currently supported files: Yaml
/// </summary>
/// <param name="filename">File... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace DbNanites.Core
{
public static class ParserFactory
{
public static IModelParser Factory(string filename)
{
throw new NotImplementedException();
}
public static IModelPar... | bsd-3-clause | C# |
cd09499bbe4017e3fe29f7798177a8264836bec5 | Update to use new User | csengineer13/Simple.MVC,csengineer13/Simple.MVC,csengineer13/Simple.MVC | Simple.Domain/Model/Organization/Organization.cs | Simple.Domain/Model/Organization/Organization.cs | using System;
using System.Collections.Generic;
using Simple.Domain.Entities;
namespace Simple.Domain.Model
{
public class Organization
{
public Guid Id { get; set; }
public string Name { get; set; }
public string CatchPhrase { get; set; }
public string BSPhrase { get; set; }
// Ref
public User Owner {... | using System;
using System.Collections.Generic;
namespace Simple.Domain.Model
{
public class Organization
{
public Guid Id { get; set; }
public string Name { get; set; }
public string CatchPhrase { get; set; }
public string BSPhrase { get; set; }
// Ref
public DomainUser Owner { get; set; }
// List ... | mit | C# |
0a80b701bc04311cf20b4cfd9a05eb3cff7ec304 | Update LegendaryDroppedPopup.cs | prrovoss/THUD | plugins/Prrovoss/LegendaryDroppedPopup.cs | plugins/Prrovoss/LegendaryDroppedPopup.cs | using Turbo.Plugins.Default;
namespace Turbo.Plugins.Prrovoss
{
public class LegendaryDroppedPopup : BasePlugin, ILootGeneratedHandler
{
public void OnLootGenerated(IItem item, bool gambled)
{
if (item.Quality >= ItemQuality.Legendary)
Hud.RunOnPlugin<PopupNotifica... | using Turbo.Plugins.Default;
namespace Turbo.Plugins.Prrovoss
{
public class LegendaryDroppedPopup : BasePlugin, ILootGeneratedHandler
{
public void OnLootGenerated(IItem item, bool gambled)
{
if (item.Quality >= ItemQuality.Legendary)
Hud.GetPlugin<PopupNotificati... | mit | C# |
174f12adbeffc3ff7e521725fb1cf48b3b6311e5 | Fix for Pos in PString<T> that could throw an IndexOutOfRangeException | louthy/language-ext,StanJav/language-ext | LanguageExt.Parsec/PStringIO.cs | LanguageExt.Parsec/PStringIO.cs | using System;
using System.Linq;
using static LanguageExt.Prelude;
namespace LanguageExt.Parsec
{
/// <summary>
/// Represents the parser source string and the parser's
/// positional state.
/// </summary>
public class PString<T>
{
public readonly T[] Value;
public readonly in... | using System;
using System.Linq;
using static LanguageExt.Prelude;
namespace LanguageExt.Parsec
{
/// <summary>
/// Represents the parser source string and the parser's
/// positional state.
/// </summary>
public class PString<T>
{
public readonly T[] Value;
public readonly in... | mit | C# |
ef3db9d71a9bac1f1747a35e3ff098feef5c736a | use string.Join to build the input | benjamin-hodgson/Pidgin | Pidgin.Bench/ExpressionBench.cs | Pidgin.Bench/ExpressionBench.cs | using System;
using System.Collections.Generic;
using System.Linq;
using BenchmarkDotNet.Attributes;
using Pidgin.Expression;
using static Pidgin.Parser;
using static Pidgin.Parser<char>;
namespace Pidgin.Bench
{
[Config(typeof(Config))]
public class ExpressionBench
{
private string _bigExpression;... | using System;
using System.Collections.Generic;
using System.Linq;
using BenchmarkDotNet.Attributes;
using Pidgin.Expression;
using static Pidgin.Parser;
using static Pidgin.Parser<char>;
namespace Pidgin.Bench
{
[Config(typeof(Config))]
public class ExpressionBench
{
private string _bigExpression;... | mit | C# |
32394b2315741cdff6c151c97deb94de292dcffb | Make an enum internal | mdesalvo/RDFSharp | RDFSharp/Store/RDFStoreEnums.cs | RDFSharp/Store/RDFStoreEnums.cs | /*
Copyright 2012-2019 Marco De Salvo
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 2012-2019 Marco De Salvo
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# |
84b6988db41fa2cd885546ba53513c6de2a87912 | Update Time.cs | dimmpixeye/Unity3dTools | Runtime/LibTime/Time.cs | Runtime/LibTime/Time.cs | // Project : ACTORS
// Contacts : Pixeye - ask@pixeye.games
using UnityEngine;
namespace Pixeye.Actors
{
public class time : IKernel
{
protected const float fps = 60;
/// <summary>
/// <para> Default Framework Time. Use it for independent timing</para>
/// </summary>
public static readonly... | // Project : ACTORS
// Contacts : Pixeye - ask@pixeye.games
using UnityEngine;
namespace Pixeye.Actors
{
public class time : IKernel
{
protected const float fps = 60;
/// <summary>
/// <para> Default Framework Time. Use it for independent timing</para>
/// </summary>
internal static time D... | mit | C# |
527d27a84351801bd14f6006100551f491731e96 | Edit console app | daenetCorporation/DurableTaskMicroservices | GetTweetMention/GetTweetsMention/TweetOrchestration/TweetOrchestration.cs | GetTweetMention/GetTweetsMention/TweetOrchestration/TweetOrchestration.cs | using Daenet.DurableTask.Microservices;
using Daenet.DurableTaskMicroservices.Common.BaseClasses;
using DurableTask.Core;
using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace GetTweetsMention
{
public clas... | using Daenet.DurableTask.Microservices;
using Daenet.DurableTaskMicroservices.Common.BaseClasses;
using DurableTask.Core;
using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace GetTweetsMention
{
public clas... | mit | C# |
ee3562c2cd670020fc03d8a1732d75262cb5a59a | fix license header | fachexot/AMOS-SoftwareForge,fachexot/AMOS-SoftwareForge | SoftwareForge.Mvc/SoftwareForge.Mvc/Views/TeamProjects/CodePartial.cshtml | SoftwareForge.Mvc/SoftwareForge.Mvc/Views/TeamProjects/CodePartial.cshtml | <!--
- Copyright (c) 2013 by Denis Bach, Marvin Kampf, Konstantin Tsysin, Taner Tunc, Florian Wittmann
-
- This file is part of the Software Forge Overlay rating application.
-
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU Affero General Public License as... | @model List<string>
<div id="codePartial">
@if (Model.Count > 0)
{
<h5>Filecontent:</h5>
}
<code class="codeview">
@foreach (string line in Model)
{
<text>@line</text>
}
</code>
</div> | agpl-3.0 | C# |
83f7e39fc2919105d6ad8423ada332ebfb2b1f34 | Update ContextTests.cs | wieslawsoltes/Core2D,wieslawsoltes/Core2D,wieslawsoltes/Core2D,Core2D/Core2D,wieslawsoltes/Core2D,Core2D/Core2D | tests/Core2D.UnitTests/Data/ContextTests.cs | tests/Core2D.UnitTests/Data/ContextTests.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 Core2D.Data;
using Xunit;
namespace Core2D.UnitTests
{
public class ContextTests
{
[Fact]
[Trait("Core2D.Data", "Database")]
... | // 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 Core2D.Data;
using Xunit;
namespace Core2D.UnitTests
{
public class ContextTests
{
[Fact]
[Trait("Core2D.Data", "Database")]
... | mit | C# |
b6a5290bb8a135368675fd1256b776426f3630eb | Remove redundant dot | Baggykiin/pass-winmenu | pass-winmenu/src/Configuration/ConfigManager.cs | pass-winmenu/src/Configuration/ConfigManager.cs | using System;
using System.Collections.Generic;
using System.IO;
using YamlDotNet.Serialization;
using YamlDotNet.Serialization.NamingConventions;
namespace PassWinmenu.Configuration
{
internal class ConfigManager
{
public static Config Config { get; private set; } = new Config();
public enum LoadResult
{
... | using System;
using System.Collections.Generic;
using System.IO;
using YamlDotNet.Serialization;
using YamlDotNet.Serialization.NamingConventions;
namespace PassWinmenu.Configuration
{
internal class ConfigManager
{
public static Config Config { get; private set; } = new Config();
public enum LoadResult
{
... | mit | C# |
a87e25ff81dbcb1f6c9f29757fd76cf7f14f1f0b | remove aria-hidden tag | smbc-digital/iag-webapp,smbc-digital/iag-webapp,smbc-digital/iag-webapp | src/StockportWebapp/Views/stockportgov/Shared/Semantic/GlobalAlert.cshtml | src/StockportWebapp/Views/stockportgov/Shared/Semantic/GlobalAlert.cshtml | @using StockportWebapp.Models
@using StockportWebapp.Utils
@inject ICookiesHelper CookiesHelper
@model Alert
@{
var icons = new Dictionary<string, string>()
{
{Severity.Error, "exclamation-circle"},
{Severity.Information, "info-circle"},
{Severity.Warning, "exclamation-triangle"},
{Severity.Success, "check-circle... | @using StockportWebapp.Models
@using StockportWebapp.Utils
@inject ICookiesHelper CookiesHelper
@model Alert
@{
var icons = new Dictionary<string, string>()
{
{Severity.Error, "exclamation-circle"},
{Severity.Information, "info-circle"},
{Severity.Warning, "exclamation-triangle"},
{Severity.Success, "check-circle... | mit | C# |
000c021d81956b48bac83f43e9b9a5ccea2513f0 | Add some helpers and stuff | 0culus/ElectronicCash | ElectronicCash/Alice.cs | ElectronicCash/Alice.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ElectronicCash
{
/// <summary>
/// The customer
/// </summary>
public class Alice : BaseActor
{
public List<MoneyOrder> MoneyOrders { get; private set; }
pu... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ElectronicCash
{
/// <summary>
/// The customer
/// </summary>
public class Alice : BaseActor
{
}
}
| mit | C# |
a6fbb3d40e71ea00365a1ff57d026cc26e47b663 | Kill OutputWriteResult \o/ | palette-software/PaletteInsightAgent,palette-software/PaletteInsightAgent,palette-software/PaletteInsightAgent,palette-software/PaletteInsightAgent | PaletteInsightAgent/Output/OutputDrivers/IOutput.cs | PaletteInsightAgent/Output/OutputDrivers/IOutput.cs | using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PaletteInsightAgent.Output
{
/// <summary>
/// A generic interface for writing data
/// NOTE: since we (possibly) need to close files and/or database connectio... | using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PaletteInsightAgent.Output
{
/// <summary>
/// An output wrapper for the results of an IOutput.Write().
/// </summary>
public class OutputWriteResult
{
... | mit | C# |
f78ed1c3b2987020880a853ff4b9824820bd0fb2 | Update build.cake | predictive-technology-laboratory/Xamarin.Plugins,jamesmontemagno/Xamarin.Plugins | ExternalMaps/build.cake | ExternalMaps/build.cake | #addin "Cake.FileHelpers"
var TARGET = Argument ("target", Argument ("t", "NuGetPack"));
var version = EnvironmentVariable ("APPVEYOR_BUILD_VERSION") ?? Argument("version", "0.0.9999");
Task ("Build").Does (() =>
{
const string sln = "./ExternalMaps.sln";
const string cfg = "Release";
NuGetRestore (sln);
... | #addin "Cake.FileHelpers"
var TARGET = Argument ("target", Argument ("t", "Build"));
var version = EnvironmentVariable ("APPVEYOR_BUILD_VERSION") ?? Argument("version", "0.0.9999");
Task ("Build").Does (() =>
{
const string sln = "./ExternalMaps.sln";
const string cfg = "Release";
NuGetRestore (sln);
if... | mit | C# |
c827de36748478587a744727e5bc89ae31aeb71c | Update AGhost.cs | fomalsd/unitystation,fomalsd/unitystation,fomalsd/unitystation,fomalsd/unitystation,krille90/unitystation,krille90/unitystation,krille90/unitystation,fomalsd/unitystation,fomalsd/unitystation,fomalsd/unitystation | UnityProject/Assets/Scripts/UI/AdminTools/AGhost.cs | UnityProject/Assets/Scripts/UI/AdminTools/AGhost.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class AGhost : MonoBehaviour
{
public void OnClick()
{
if (PlayerManager.LocalPlayerScript == null) return;
PlayerManager.LocalPlayerScript.playerNetworkActions.CmdAGhost();
}
}
| using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class AGhost : MonoBehaviour
{
public void OnClick()
{
if (!PlayerManager.LocalPlayerScript.playerNetworkActions) return;
PlayerManager.LocalPlayerScript.playerNetworkActions.CmdAGhost();
}
}
| agpl-3.0 | C# |
d77a0efc3f3efb388e5dccd3addbda0ba473f3fa | fix build in Demo | yonglehou/WebApiThrottle,lollop-lp/WebApiThrottle,yonglehou/WebApiThrottle,yonglehou/WebApiThrottle,stefanprodan/WebApiThrottle | WebApiThrottle.Demo/Controllers/ValuesController.cs | WebApiThrottle.Demo/Controllers/ValuesController.cs | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
namespace WebApiThrottle.Demo.Controllers
{
public class ValuesController : ApiController
{
// GET api/values
public IEnumerable<string> ... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Net;
using System.Net.Http;
namespace WebApiThrottle.Demo.Controllers
{
public class ValuesController : ApiController
{
// GET api/values
public IEnumerable<string> Get()
{
... | mit | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.