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 |
|---|---|---|---|---|---|---|---|---|
d4468da7b8522a99db04d995e16b6e5a95be51ee | Remove redundant code. | mans0954/f-spot,mans0954/f-spot,mono/f-spot,mans0954/f-spot,mono/f-spot,mans0954/f-spot,NguyenMatthieu/f-spot,dkoeb/f-spot,dkoeb/f-spot,dkoeb/f-spot,NguyenMatthieu/f-spot,dkoeb/f-spot,dkoeb/f-spot,mono/f-spot,mono/f-spot,mono/f-spot,mono/f-spot,mans0954/f-spot,mans0954/f-spot,dkoeb/f-spot,NguyenMatthieu/f-spot,NguyenMa... | src/Clients/MainApp/FSpot.Loaders/ImageLoader.cs | src/Clients/MainApp/FSpot.Loaders/ImageLoader.cs | //
// ImageLoader.cs
//
// Author:
// Daniel Köb <daniel.koeb@peony.at>
// Gabriel Burt <gabriel.burt@gmail.com>
// Ruben Vermeersch <ruben@savanne.be>
//
// Copyright (C) 2016 Daniel Köb
// Copyright (C) 2009-2010 Novell, Inc.
// Copyright (C) 2009 Gabriel Burt
// Copyright (C) 2009-2010 Ruben Vermeersch
//
// P... | //
// ImageLoader.cs
//
// Author:
// Gabriel Burt <gabriel.burt@gmail.com>
// Ruben Vermeersch <ruben@savanne.be>
//
// Copyright (C) 2009-2010 Novell, Inc.
// Copyright (C) 2009 Gabriel Burt
// Copyright (C) 2009-2010 Ruben Vermeersch
//
// Permission is hereby granted, free of charge, to any person obtaining
// ... | mit | C# |
6a681d13524b0c9e47576edd72aeb04576d6cfe2 | Add missing XML docblock | SaltyDH/React.NET,radnor/React.NET,ShikiGami/React.NET,rickbeerendonk/React.NET,radnor/React.NET,IveWong/React.NET,SaltyDH/React.NET,chriscamplejohn/React.NET,alexsoftua/React.NET,reactjs/React.NET,reactjs/React.NET,ShikiGami/React.NET,IveWong/React.NET,alexsoftua/React.NET,chriscamplejohn/React.NET,radnor/React.NET,Iv... | src/React.Web/Exceptions/ReactAspNetException.cs | src/React.Web/Exceptions/ReactAspNetException.cs | /*
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
using System... | /*
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
using System... | bsd-3-clause | C# |
dfe4aebd2e84882c44c5a0bebdf31bc378f473f0 | Fix issue with sending commit to other instance | michael-reichenauer/GitMind | GitMind/ApplicationHandling/CommandLine.cs | GitMind/ApplicationHandling/CommandLine.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
namespace GitMind.ApplicationHandling
{
internal class CommandLine : ICommandLine
{
private readonly Lazy<IReadOnlyList<string>> lazyBranchNames;
private readonly string[] args;
public CommandLine(st... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
namespace GitMind.ApplicationHandling
{
internal class CommandLine : ICommandLine
{
private readonly Lazy<IReadOnlyList<string>> lazyBranchNames;
private readonly string[] args;
public CommandLine(st... | mit | C# |
fea1e7530ccc9be145d712bb3862fc74c9e2857a | Add generic collection | caronyan/CSharpRecipe | CSharpRecipe/Recipe.ClassAndGeneric/GenericSample.cs | CSharpRecipe/Recipe.ClassAndGeneric/GenericSample.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
namespace Recipe.ClassAndGeneric
{
/// <summary>
/// Sample generic dictionary like class implementation
/// </summary>
/// <typeparam name="T1"></... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Recipe.ClassAndGeneric
{
/// <summary>
/// Sample generic dictionary like class implementation
/// </summary>
/// <typeparam name="T1"></typeparam>
/// <typeparam name="T2"... | mit | C# |
a1a568d3654b1d8f34b3b80b5692d2762f96f16e | fix typo | dfaruque/Serenity,WasimAhmad/Serenity,volkanceylan/Serenity,volkanceylan/Serenity,dfaruque/Serenity,dfaruque/Serenity,rolembergfilho/Serenity,volkanceylan/Serenity,WasimAhmad/Serenity,WasimAhmad/Serenity,dfaruque/Serenity,rolembergfilho/Serenity,rolembergfilho/Serenity,volkanceylan/Serenity,dfaruque/Serenity,rolembergf... | Serenity.Core/ComponentModel/Upload/MultipleFileUploadEditorAttribute.cs | Serenity.Core/ComponentModel/Upload/MultipleFileUploadEditorAttribute.cs | namespace Serenity.ComponentModel
{
public class MultipleFileUploadEditorAttribute : ImageUploadEditorAttribute
{
public MultipleFileUploadEditorAttribute()
: base("MultipleImageUpload")
{
AllowNonImage = true;
JsonEncodeValue = true;
}
... | namespace Serenity.ComponentModel
{
public class MultipleFileUploadEditorAttribute : ImageUploadEditorAttribute
{
public MultipleFileUploadEditorAttribute()
: base("MultipleImageUpload")
{
AllowNonImage = true;
JsonEncodeValue = true;.
}
... | mit | C# |
056e0cdb78a714112b22a52ee7afad8c745fd461 | Update SplatExplicitSample.cs | Fody/FodyAddinSamples,Fody/FodyAddinSamples | Samples/AnotarSplatSample/SplatExplicitSample.cs | Samples/AnotarSplatSample/SplatExplicitSample.cs | using Anotar.Splat;
using Xunit;
namespace AnotarSplatSample
{
public class SplatExplicitSample
{
[Fact]
public void Run()
{
MyMethod();
Assert.Equal("Method: 'Void MyMethod()'. Line: ~18. TheMessage", LogCaptureBuilder.LastMessage);
}
static v... | using Anotar.Splat;
using Xunit;
namespace AnotarSplatSample
{
public class SplatExplicitSample
{
[Fact]
public void Run()
{
MyMethod();
Assert.Equal("SplatExplicitSample: Method: 'Void MyMethod()'. Line: ~18. TheMessage", LogCaptureBuilder.LastMessage);
... | mit | C# |
a3b2f6c442f6df22da8d4b0fdc246ec8b15fe710 | Set global rule exception name to GLOBAL (#146) | tsqllint/tsqllint,tsqllint/tsqllint | TSQLLint.Lib/Parser/RuleExceptions/GlobalRuleException.cs | TSQLLint.Lib/Parser/RuleExceptions/GlobalRuleException.cs | namespace TSQLLint.Lib.Parser.RuleExceptions
{
public class GlobalRuleException : IExtendedRuleException
{
public GlobalRuleException(int startLine, int endLine)
{
EndLine = endLine;
StartLine = startLine;
}
public int EndLine { get; private set... | namespace TSQLLint.Lib.Parser.RuleExceptions
{
public class GlobalRuleException : IExtendedRuleException
{
public GlobalRuleException(int startLine, int endLine)
{
EndLine = endLine;
StartLine = startLine;
}
public int EndLine { get; private set... | mit | C# |
d542846bd56c64d8838fea9a56b9587772934ca4 | convert spaces to tabs | krille90/unitystation,fomalsd/unitystation,Necromunger/unitystation,krille90/unitystation,Necromunger/unitystation,fomalsd/unitystation,fomalsd/unitystation,Necromunger/unitystation,Necromunger/unitystation,fomalsd/unitystation,fomalsd/unitystation,krille90/unitystation,fomalsd/unitystation,Necromunger/unitystation,Nec... | UnityProject/Assets/Scripts/UI/OptionsMenu/OptionsMenu.cs | UnityProject/Assets/Scripts/UI/OptionsMenu/OptionsMenu.cs | using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
namespace Unitystation.Options
{
/// <summary>
/// Main controller for the Options Screen
/// It is spawned via managers on manager start
/// and persists across scene changes
/// </summary>
public class OptionsMen... | using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
namespace Unitystation.Options
{
/// <summary>
/// Main controller for the Options Screen
/// It is spawned via managers on manager start
/// and persists across scene changes
/// </summary>
publi... | agpl-3.0 | C# |
6f32747aa7b3ca65a1f9dcd5a693d70541cef4cc | handle missing asset references failure more elegantly | krille90/unitystation,Necromunger/unitystation,krille90/unitystation,Necromunger/unitystation,fomalsd/unitystation,Necromunger/unitystation,fomalsd/unitystation,fomalsd/unitystation,krille90/unitystation,Necromunger/unitystation,Necromunger/unitystation,fomalsd/unitystation,fomalsd/unitystation,Necromunger/unitystation... | UnityProject/Assets/Tests/Asset/MissingAssetReferences.cs | UnityProject/Assets/Tests/Asset/MissingAssetReferences.cs | using System.Collections.Generic;
using NUnit.Framework;
using UnityEngine;
using UnityEditor;
namespace Tests
{
public class MissingAssetReferences
{
[Test]
public void TestAllChannelsTag()
{
List<string> listResult = new List<string>();
string[] allPrefabs = SearchAndDestroy.GetAllPrefabs();
forea... |
using System.Collections;
using System.Collections.Generic;
using NUnit.Framework;
using UnityEngine;
using UnityEditor;
using System.Linq;
namespace Tests
{
public class MissingAssetReferences
{
[Test]
public void TestAllChannelsTag()
{
List<string> listResult = new List<string>();
string[] allPrefab... | agpl-3.0 | C# |
bf49f64688863a0a8cc156385cb4d71531494a17 | Allow to run build even if git repo informations are not available | Abc-Arbitrage/Zebus,Abc-Arbitrage/Zebus.Directory | build/scripts/utilities.cake | build/scripts/utilities.cake | #tool "nuget:?package=GitVersion.CommandLine"
#addin "Cake.Yaml"
public class ContextInfo
{
public string NugetVersion { get; set; }
public string AssemblyVersion { get; set; }
public GitVersion Git { get; set; }
public string BuildVersion
{
get { return NugetVersion + "-" + Git.Sha; }
... | #tool "nuget:?package=GitVersion.CommandLine"
#addin "Cake.Yaml"
public class ContextInfo
{
public string NugetVersion { get; set; }
public string AssemblyVersion { get; set; }
public GitVersion Git { get; set; }
public string BuildVersion
{
get { return NugetVersion + "-" + Git.Sha; }
... | mit | C# |
b124b667b31b6908aeaf3c6079747db0542362f9 | remove TODOs no longer needed | collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists | src/FilterLists.Data/EntityTypeConfigurations/ForkTypeConfiguration.cs | src/FilterLists.Data/EntityTypeConfigurations/ForkTypeConfiguration.cs | using FilterLists.Data.Entities;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace FilterLists.Data.EntityTypeConfigurations
{
public class ForkTypeConfiguration : BaseEntityTypeConfiguration<Fork>
{
public override void Configure(EntityTypeBuilder<F... | using FilterLists.Data.Entities;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace FilterLists.Data.EntityTypeConfigurations
{
public class ForkTypeConfiguration : BaseEntityTypeConfiguration<Fork>
{
public override void Configure(EntityTypeBuilder<F... | mit | C# |
389d759344a58e8ae2be85623905b11da0b8e969 | improve doc comments for SerializationContext | ctiller/grpc,grpc/grpc,jtattermusch/grpc,pszemus/grpc,jboeuf/grpc,jtattermusch/grpc,jtattermusch/grpc,stanley-cheung/grpc,donnadionne/grpc,ejona86/grpc,stanley-cheung/grpc,nicolasnoble/grpc,ejona86/grpc,ejona86/grpc,grpc/grpc,muxi/grpc,donnadionne/grpc,vjpai/grpc,stanley-cheung/grpc,jboeuf/grpc,donnadionne/grpc,muxi/gr... | src/csharp/Grpc.Core.Api/SerializationContext.cs | src/csharp/Grpc.Core.Api/SerializationContext.cs | #region Copyright notice and license
// Copyright 2018 The gRPC Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless ... | #region Copyright notice and license
// Copyright 2018 The gRPC Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless ... | apache-2.0 | C# |
1d2906a280efefef5ebf5839d76dbf7c477798fb | Update Form1.cs | 60071jimmy/UartOscilloscope,60071jimmy/UartOscilloscope | QueueDataGraphic/QueueDataGraphic/Form1.cs | QueueDataGraphic/QueueDataGraphic/Form1.cs | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace QueueDataGraphic
{
public partial class Form1 : Form
{
public Form1()
{
InitializeCom... | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace QueueDataGraphic
{
public partial class Form1 : Form
{
public Form1()
{
InitializeCom... | apache-2.0 | C# |
44acd16393fa91fdc7ac4836e48ad8197ba2fa40 | Fix typos | Shaddix/realm-dotnet,Shaddix/realm-dotnet,realm/realm-dotnet,Shaddix/realm-dotnet,Shaddix/realm-dotnet,realm/realm-dotnet,realm/realm-dotnet | Tests/WeaverTests/AssemblyToProcess/FaultyClasses.cs | Tests/WeaverTests/AssemblyToProcess/FaultyClasses.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Realms;
namespace AssemblyToProcess
{
public class IllegalObjectId : RealmObject
{
[ObjectId]
public float FloatObjectId { get; set; }
}
public class RealmListWith... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Realms;
namespace AssemblyToProcess
{
public class IllegalObjectId : RealmObject
{
[ObjectId]
public float FloatObjectId { get; set; }
}
public class RealmListWith... | apache-2.0 | C# |
0158f565c3e0d8592e8be60f1e94493915d88287 | fix ScheduleTaskRunner | signumsoftware/framework,signumsoftware/framework | Signum.React.Extensions/Scheduler/SchedulerServer.cs | Signum.React.Extensions/Scheduler/SchedulerServer.cs | using Signum.Engine.Scheduler;
using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.Hosting;
namespace Signum.React.Scheduler;
public static class SchedulerServer
{
public static void Start(IApplicationBuilder app, IHostApplicationLifetime lifetime)
{
SignumControllerFactory.Regist... | using Signum.Engine.Scheduler;
using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.Hosting;
namespace Signum.React.Scheduler;
public static class SchedulerServer
{
public static void Start(IApplicationBuilder app, IHostApplicationLifetime lifetime)
{
SignumControllerFactory.Regist... | mit | C# |
fa4a50a923bd259f21445ca683d3101c7a7eb2d5 | Fix typo | tzachshabtay/MonoAGS | Source/Engine/AGS.Engine/Misc/AGSCustomProperties.cs | Source/Engine/AGS.Engine/Misc/AGSCustomProperties.cs | using System;
using AGS.API;
namespace AGS.Engine
{
public class AGSCustomProperties : AGSComponent, ICustomProperties
{
private AGSCustomPropertiesPerType<int> _ints;
private AGSCustomPropertiesPerType<float> _floats;
private AGSCustomPropertiesPerType<string> _strings;
privat... | using System;
using AGS.API;
namespace AGS.Engine
{
public class AGSCustomProperties : AGSComponent, ICustomProperties
{
private AGSCustomPropertiesPerType<int> _ints;
private AGSCustomPropertiesPerType<float> _floats;
private AGSCustomPropertiesPerType<string> _strings;
privat... | artistic-2.0 | C# |
57da688828ba1b55cc2b91a997c3722f8663cfca | Add tests to check if contracts are working (currently disabled) | HongJunRen/RazorEngine,csantero/RazorEngine,bcuff/RazorEngine,csantero/RazorEngine,aviatrix/RazorEngine,MetSystem/RazorEngine,MetSystem/RazorEngine,HongJunRen/RazorEngine,SharpeRAD/RazorEngine,SharpeRAD/RazorEngine,Antaris/RazorEngine,bcuff/RazorEngine,aviatrix/RazorEngine,Antaris/RazorEngine | src/test/Test.RazorEngine.Core/VariousTestsFixture.cs | src/test/Test.RazorEngine.Core/VariousTestsFixture.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using RazorEngine;
using NUnit.Framework;
namespace Test.RazorEngine
{
/// <summary>
/// Various general tests.
/// </summary>
[TestFixture]
public class VariousTestsFixture
{
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using RazorEngine;
using NUnit.Framework;
namespace Test.RazorEngine
{
/// <summary>
/// Various general tests.
/// </summary>
[TestFixture]
public class VariousTestsFixture
{
... | apache-2.0 | C# |
e085e2f4a4a1d7407fa3e07c77bf4a99e35b2af7 | mark helper methods in tests as internal | ryancyq/aspnetboilerplate,aspnetboilerplate/aspnetboilerplate,aspnetboilerplate/aspnetboilerplate,aspnetboilerplate/aspnetboilerplate,ryancyq/aspnetboilerplate,aspnetboilerplate/aspnetboilerplate,luchaoshuai/aspnetboilerplate,luchaoshuai/aspnetboilerplate,ryancyq/aspnetboilerplate,ryancyq/aspnetboilerplate | test/Abp.Tests/Experimental/GenericMethodCallTests.cs | test/Abp.Tests/Experimental/GenericMethodCallTests.cs | using Abp.Domain.Entities;
using Abp.Events.Bus.Entities;
using Xunit;
namespace Abp.Tests.Experimental
{
public class GenericMethodCallTests
{
[Fact]
public void Test_Method_BaseEvent_BaseArg()
{
Method_BaseEvent_BaseArg(new EntityEventData<Person>(new Person())); //TODO: <... | using Abp.Domain.Entities;
using Abp.Events.Bus.Entities;
using Xunit;
namespace Abp.Tests.Experimental
{
public class GenericMethodCallTests
{
[Fact]
public void Test_Method_BaseEvent_BaseArg()
{
Method_BaseEvent_BaseArg(new EntityEventData<Person>(new Person())); //TODO: <... | mit | C# |
6e78a214b7b7da01bea3d459d45571a810611090 | Change color sequence | fredatgithub/PaperBoy | TestConsoleAppColor/Program.cs | TestConsoleAppColor/Program.cs | using System;
namespace TestConsoleAppColor
{
internal class Program
{
private static void Main()
{
WriteTextInColor(ConsoleColor.DarkGreen);
WriteTextInColor(ConsoleColor.White);
WriteTextInColor(ConsoleColor.Gray);
WriteTextInColor(ConsoleColor.Cyan);
WriteTextInColor(Conso... | using System;
namespace TestConsoleAppColor
{
internal class Program
{
private static void Main()
{
WriteTextInColor(ConsoleColor.Red);
WriteTextInColor(ConsoleColor.Green);
WriteTextInColor(ConsoleColor.DarkGreen);
WriteTextInColor(ConsoleColor.White);
Console.ForegroundCol... | mit | C# |
3db6306bda717af951b4f78ee3d11486b3eb66c0 | Comment updated. | Oxoron/TestGit | TestGitLib/SilverCutCounter.cs | TestGitLib/SilverCutCounter.cs | namespace TestGitLib
{
public static class SilverCutCounter
{
// 1-3-4-7-11 sequence. Do not remember it's name.
public static int GetNumber(int index)
{
if (index == 1)
{
return 1;
}
else if (index == 2)
{
... | namespace TestGitLib
{
public static class SilverCutCounter
{
// 1-3-4-7-11 sequence
public static int GetNumber(int index)
{
if (index == 1)
{
return 1;
}
else if (index == 2)
{
return 3;
... | mit | C# |
f61246d8b4cbf70efb0db57e4253c80e80fa3a67 | Add incrementing Build and Revision Numbers | stefan-baumann/AeroSuite | AeroSuite/Properties/AssemblyInfo.cs | AeroSuite/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("Ae... | 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("Ae... | mit | C# |
faa5eff246bdc5e7eea2041234baa4e9e44cf88f | Fix rotation fault in Sub60PlayerAttackStepOneCommand | HelloKitty/Booma.Proxy | src/Booma.Proxy.Packets.BlockServer/Commands/Command60/Sub60PlayerAttackStepOneCommand.cs | src/Booma.Proxy.Packets.BlockServer/Commands/Command60/Sub60PlayerAttackStepOneCommand.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FreecraftCore.Serializer;
namespace Booma.Proxy
{
//https://sylverant.net/wiki/index.php/Packet_0x60#Subcommand_0x43
[WireDataContract]
[SubCommand60(SubCommand60OperationCode.AttackStepOne)]
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FreecraftCore.Serializer;
namespace Booma.Proxy
{
//https://sylverant.net/wiki/index.php/Packet_0x60#Subcommand_0x43
[WireDataContract]
[SubCommand60(SubCommand60OperationCode.AttackStepOne)]
... | agpl-3.0 | C# |
d81fc3589a166ab78096dee0a4ddf0cd2fbd17d7 | Fix nullability mismatch on partial declarations | shimingsg/corefx,ericstj/corefx,ericstj/corefx,BrennanConroy/corefx,ViktorHofer/corefx,ViktorHofer/corefx,wtgodbe/corefx,shimingsg/corefx,shimingsg/corefx,BrennanConroy/corefx,ViktorHofer/corefx,wtgodbe/corefx,ViktorHofer/corefx,ericstj/corefx,shimingsg/corefx,ViktorHofer/corefx,BrennanConroy/corefx,ViktorHofer/corefx,... | src/System.Text.RegularExpressions/src/System/Collections/Generic/ValueListBuilder.Pop.cs | src/System.Text.RegularExpressions/src/System/Collections/Generic/ValueListBuilder.Pop.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
#nullable enable
using System.Runtime.CompilerServices;
namespace System.Collections.Generic
{
/// <summary>
... | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Runtime.CompilerServices;
namespace System.Collections.Generic
{
/// <summary>
/// These publ... | mit | C# |
c7eaa82354f5155992d748bb769bd61636b159c1 | Change exception message (#1762) | serilog/serilog,serilog/serilog | test/Serilog.Tests/ArgumentNullTests.cs | test/Serilog.Tests/ArgumentNullTests.cs | using System.Runtime.CompilerServices;
using File = System.IO.File;
namespace Serilog.Tests;
public class ArgumentNullTests
{
[Fact]
public void Run()
{
var solutionDirectory = GetSolutionDirectory();
var serilogDirectory = Path.Combine(solutionDirectory, "src/Serilog");
foreach (... | using System.Runtime.CompilerServices;
using File = System.IO.File;
namespace Serilog.Tests;
public class ArgumentNullTests
{
[Fact]
public void Run()
{
var solutionDirectory = GetSolutionDirectory();
var serilogDirectory = Path.Combine(solutionDirectory, "src/Serilog");
foreach ... | apache-2.0 | C# |
bfb78d7ea053f1692647494d9316b06df33f6df7 | test fields | M-Zuber/octokit.net,daukantas/octokit.net,gabrielweyer/octokit.net,TattsGroup/octokit.net,shiftkey-tester-org-blah-blah/octokit.net,shiftkey-tester/octokit.net,brramos/octokit.net,geek0r/octokit.net,TattsGroup/octokit.net,kolbasov/octokit.net,khellang/octokit.net,thedillonb/octokit.net,gdziadkiewicz/octokit.net,SamTheD... | Octokit.Tests.Integration/Clients/SearchClientTests.cs | Octokit.Tests.Integration/Clients/SearchClientTests.cs | using System.Threading.Tasks;
using Octokit;
using Octokit.Tests.Integration;
using Xunit;
public class SearchClientTests
{
readonly IGitHubClient _gitHubClient;
public SearchClientTests()
{
_gitHubClient = new GitHubClient(new ProductHeaderValue("OctokitTests"))
{
Credentials... | using System.Threading.Tasks;
using Octokit;
using Octokit.Tests.Integration;
using Xunit;
public class SearchClientTests
{
readonly IGitHubClient _gitHubClient;
public SearchClientTests()
{
_gitHubClient = new GitHubClient(new ProductHeaderValue("OctokitTests"))
{
Credentials... | mit | C# |
879fe17e92c984b893c3507be87efe84f8488c47 | Read panorama name entries into a list | SteamDatabase/ValveResourceFormat | ValveResourceFormat/Resource/ResourceTypes/Panorama.cs | ValveResourceFormat/Resource/ResourceTypes/Panorama.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
namespace ValveResourceFormat.ResourceTypes
{
public class Panorama : Blocks.ResourceData
{
public class NameEntry
{
public string Name { get; set; }
public uint CRC32 { get; set; } // T... | using System;
using System.IO;
using System.Text;
namespace ValveResourceFormat.ResourceTypes
{
public class Panorama : Blocks.ResourceData
{
public byte[] Data { get; private set; }
public uint Crc32 { get; private set; }
public override void Read(BinaryReader reader, Resource resour... | mit | C# |
ad559111db20a81d48d7e676869831471643d107 | add support for extendedSchems attribute in srcSchema | cumpstey/campaign-sync,cumpstey/campaign-sync | Zone.Campaign.Sync.Common/Mappings/SrcSchemaMapping.cs | Zone.Campaign.Sync.Common/Mappings/SrcSchemaMapping.cs | using System;
using System.Collections.Generic;
using Zone.Campaign.Sync.Mappings.Abstract;
using Zone.Campaign.WebServices.Model;
namespace Zone.Campaign.Sync.Mappings
{
public class SrcSchemaMapping : EntityMapping<SrcSchema>
{
#region Fields
private readonly IEnumerable<string> _attributes... | using System;
using System.Collections.Generic;
using Zone.Campaign.Sync.Mappings.Abstract;
using Zone.Campaign.WebServices.Model;
namespace Zone.Campaign.Sync.Mappings
{
public class SrcSchemaMapping : EntityMapping<SrcSchema>
{
#region Fields
private readonly IEnumerable<string> _attributes... | mit | C# |
d5052d6d1c6b92ec910cc1e0b093e9c2223ea8ad | Set waitAttempts to 10 and waitInterval to 5000 (5 seconds). | kjelliverb/condep-dsl-operations | ConDep.Dsl/Operations/Application/Deployment/CopyDir/CopyDirProvider.cs | ConDep.Dsl/Operations/Application/Deployment/CopyDir/CopyDirProvider.cs | using System.IO;
using ConDep.Dsl.SemanticModel;
using ConDep.Dsl.SemanticModel.WebDeploy;
using Microsoft.Web.Deployment;
namespace ConDep.Dsl.Operations.Application.Deployment.CopyDir
{
public class CopyDirProvider : WebDeployProviderBase
{
private const string NAME = "dirPath";
public CopyDirPr... | using System.IO;
using ConDep.Dsl.SemanticModel;
using ConDep.Dsl.SemanticModel.WebDeploy;
using Microsoft.Web.Deployment;
namespace ConDep.Dsl.Operations.Application.Deployment.CopyDir
{
public class CopyDirProvider : WebDeployProviderBase
{
private const string NAME = "dirPath";
public CopyDirPr... | bsd-2-clause | C# |
29732f5c17d4de65b9200c27e232771677753685 | Update stack trace decoding to match Java | asimarslan/hazelcast-csharp-client,asimarslan/hazelcast-csharp-client | Hazelcast.Net/Hazelcast.Client.Protocol.Codec/StackTraceElementCodec.cs | Hazelcast.Net/Hazelcast.Client.Protocol.Codec/StackTraceElementCodec.cs | // Copyright (c) 2008-2015, Hazelcast, Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required... | // Copyright (c) 2008-2015, Hazelcast, Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required... | apache-2.0 | C# |
7a95895fa3be3bb879ef20a29e6fe8b9026a1fd7 | fix duplicated signature problem | rkttu/Log4net-with-Caller-Info | Log4netWithCallerInfo/ClouDeveloper.Log4net.CallerInfo/CallerInfoLog.cs | Log4netWithCallerInfo/ClouDeveloper.Log4net.CallerInfo/CallerInfoLog.cs | using log4net;
using System;
using System.Threading;
namespace ClouDeveloper.Log4net.CallerInfo
{
/// <summary>
/// CallerInfoLog
/// </summary>
public sealed partial class CallerInfoLog
{
private static long InternalSignatureCount = 0L;
/// <summary>
/// Initializes a new... | using log4net;
using System;
namespace ClouDeveloper.Log4net.CallerInfo
{
/// <summary>
/// CallerInfoLog
/// </summary>
public sealed partial class CallerInfoLog
{
/// <summary>
/// Initializes a new instance of the <see cref="CallerInfoLog" /> class.
/// </summary>
... | apache-2.0 | C# |
53052b25a8ea1a5ffba4ad48cf7e2be28ab93393 | Edit Debug.cs | 60071jimmy/UartOscilloscope,60071jimmy/UartOscilloscope | QueueDataGraphic/QueueDataGraphic/CSharpFiles/Debug.cs | QueueDataGraphic/QueueDataGraphic/CSharpFiles/Debug.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace QueueDataGraphic.CSharpFiles
{
class Debug
{
/// <summary>
/// DebugMode would be setted "true" during debugging.
/// 在偵錯模式中將DebugMode設為true
/// </summary>
public readonly static b... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace QueueDataGraphic.CSharpFiles
{
class Debug
{
}
}
| apache-2.0 | C# |
fd1dfb796aeb971a4e1cf29a22e4b2a156961276 | Add External attribute to EventEmitter, so it won't be in generated code. | Dia6lo/Bridge.Pixi | Bridge.Pixi/External/EventEmitter.cs | Bridge.Pixi/External/EventEmitter.cs | using System;
namespace Bridge.Pixi.External
{
/// <summary>
/// https://github.com/primus/eventemitter3
/// </summary>
[External]
public abstract class EventEmitter
{
public extern Action GetListeners(string @event);
public extern bool Emit(string @event, params object[] args);
public extern EventEmitt... | using System;
namespace Bridge.Pixi.External
{
/// <summary>
/// https://github.com/primus/eventemitter3
/// </summary>
public abstract class EventEmitter
{
public extern Action GetListeners(string @event);
public extern bool Emit(string @event, params object[] args);
public extern EventEmitter On(string... | mit | C# |
ce01b4ac3c9d114f948f7e96b0b7aad10680cd4e | set BadMemeException class public to be used outside the project | Willster419/RelicModManager,Willster419/RelhaxModpack,Willster419/RelhaxModpack | RelhaxModpack/RelhaxModpack/Common/BadMemeException.cs | RelhaxModpack/RelhaxModpack/Common/BadMemeException.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace RelhaxModpack
{ [Serializable]
public class BadMemeException : Exception
{
public BadMemeException(string message) : base(message)
{
}
}
}
| using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace RelhaxModpack
{ [Serializable]
class BadMemeException : Exception
{
public BadMemeException(string message) : base(message)
{
}
}
}
| apache-2.0 | C# |
bbbba6c0312eda8cb1183a892a3ed24ee06ad90b | check ForeignKey is set of MasterDetailRelationAttribute | WasimAhmad/Serenity,rolembergfilho/Serenity,dfaruque/Serenity,dfaruque/Serenity,linpiero/Serenity,linpiero/Serenity,WasimAhmad/Serenity,WasimAhmad/Serenity,rolembergfilho/Serenity,volkanceylan/Serenity,WasimAhmad/Serenity,linpiero/Serenity,volkanceylan/Serenity,rolembergfilho/Serenity,rolembergfilho/Serenity,rolembergf... | Serenity.Data/Mapping/MasterDetailRelationAttribute.cs | Serenity.Data/Mapping/MasterDetailRelationAttribute.cs | using System;
namespace Serenity.Data.Mapping
{
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
public sealed class MasterDetailRelationAttribute : Attribute
{
public MasterDetailRelationAttribute(string foreignKey)
{
Check.NotNullOrEmpty(foreignKey,... | using System;
namespace Serenity.Data.Mapping
{
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
public sealed class MasterDetailRelationAttribute : Attribute
{
public MasterDetailRelationAttribute(string foreignKey)
{
this.ForeignKey = foreignKey;
... | mit | C# |
8be2db7a572c2286a3d46520c9234954c7dc4806 | rename SystemEventServer.LogStartStop | AlejandroCano/extensions,signumsoftware/extensions,AlejandroCano/extensions,MehdyKarimpour/extensions,signumsoftware/framework,MehdyKarimpour/extensions,signumsoftware/extensions,signumsoftware/framework | Signum.React.Extensions/Scheduler/SystemEventServer.cs | Signum.React.Extensions/Scheduler/SystemEventServer.cs | using Signum.Engine.Scheduler;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Hosting;
namespace Signum.React.Scheduler
{
public static class SystemEventServer
{
public static void LogStartStop(IApplicationBuilder app, IHostApplicationLifetim... | using Signum.Engine.Scheduler;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Hosting;
namespace Signum.React.Scheduler
{
public static class SystemEventServer
{
public static void Start(IApplicationBuilder app, IHostApplicationLifetime lifet... | mit | C# |
3160f8ce8f11c7e92f9445a2aa30185c952c85f9 | Use an extension to parse the RTE macros into rendered macros | tomfulton/Archetype,imulus/Archetype,kipusoep/Archetype,Nicholas-Westby/Archetype,Nicholas-Westby/Archetype,tomfulton/Archetype,Nicholas-Westby/Archetype,kgiszewski/Archetype,kjac/Archetype,kipusoep/Archetype,imulus/Archetype,kgiszewski/Archetype,kjac/Archetype,kjac/Archetype,kipusoep/Archetype,tomfulton/Archetype,imul... | app/Umbraco/Umbraco.Archetype/Extensions/Extensions.cs | app/Umbraco/Umbraco.Archetype/Extensions/Extensions.cs | using System;
using System.Web;
using System.Text;
using System.Text.RegularExpressions;
using System.Collections.Generic;
using Umbraco.Core;
using Umbraco.Web;
using Archetype.Umbraco.Models;
namespace Archetype.Umbraco.Extensions
{
public static class Extensions
{
//lifted from the core as it is ma... | using Umbraco.Core;
using Archetype.Umbraco.Models;
namespace Archetype.Umbraco.Extensions
{
public static class Extensions
{
//lifted from the core as it is marked 'internal'
public static bool DetectIsJson(this string input)
{
input = input.Trim();
return inpu... | mit | C# |
cf33869aa2e3679579cc397cbfa46329f3f12e91 | Fix click on item event after adding header wrapper | peeedge/mobile,peeedge/mobile,masterrr/mobile,ZhangLeiCharles/mobile,eatskolnikov/mobile,eatskolnikov/mobile,masterrr/mobile,eatskolnikov/mobile,ZhangLeiCharles/mobile | Joey/UI/Fragments/RecentTimeEntriesListFragment.cs | Joey/UI/Fragments/RecentTimeEntriesListFragment.cs | using System;
using System.Linq;
using Android.OS;
using Android.Views;
using Android.Widget;
using Toggl.Joey.UI.Adapters;
using ListFragment = Android.Support.V4.App.ListFragment;
namespace Toggl.Joey.UI.Fragments
{
public class RecentTimeEntriesListFragment : ListFragment
{
public override void OnV... | using System;
using System.Linq;
using Android.OS;
using Android.Views;
using Android.Widget;
using Toggl.Joey.UI.Adapters;
using ListFragment = Android.Support.V4.App.ListFragment;
namespace Toggl.Joey.UI.Fragments
{
public class RecentTimeEntriesListFragment : ListFragment
{
public override void OnV... | bsd-3-clause | C# |
d90d27acbafb9b58b798f3956edd76912f5a3389 | Fix regression in `IHasCustomTooltip` disallowing struct usage | ppy/osu-framework,smoogipooo/osu-framework,ppy/osu-framework,peppy/osu-framework,ppy/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,peppy/osu-framework | osu.Framework/Graphics/Cursor/IHasCustomTooltip.cs | osu.Framework/Graphics/Cursor/IHasCustomTooltip.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.Framework.Graphics.Cursor
{
/// <summary>
/// Implementing this interface allows the implementing <see cref="Drawable"/> to display a custom toolti... | // 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.Framework.Graphics.Cursor
{
/// <summary>
/// Implementing this interface allows the implementing <see cref="Drawable"/> to display a custom toolti... | mit | C# |
91335a83ec5121a4434e1b5cc67d68a03f334869 | Remove unnecessary whitespace | DrabWeb/osu,smoogipoo/osu,2yangk23/osu,UselessToucan/osu,naoey/osu,ppy/osu,NeoAdonis/osu,peppy/osu,EVAST9919/osu,peppy/osu-new,peppy/osu,ppy/osu,smoogipoo/osu,johnneijzen/osu,smoogipoo/osu,UselessToucan/osu,smoogipooo/osu,naoey/osu,NeoAdonis/osu,NeoAdonis/osu,DrabWeb/osu,2yangk23/osu,johnneijzen/osu,naoey/osu,peppy/osu... | osu.Game.Tests/Visual/TestCaseHistoricalSection.cs | osu.Game.Tests/Visual/TestCaseHistoricalSection.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 System.Collections.Generic;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Shapes;
usin... | // 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 System.Collections.Generic;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Shapes;
usin... | mit | C# |
09e5e2629ab2ffa0ad052683bcb91000e18a87fe | Add user beatmap availability property | peppy/osu,UselessToucan/osu,ppy/osu,UselessToucan/osu,smoogipoo/osu,UselessToucan/osu,NeoAdonis/osu,ppy/osu,peppy/osu,NeoAdonis/osu,peppy/osu,smoogipooo/osu,smoogipoo/osu,NeoAdonis/osu,peppy/osu-new,smoogipoo/osu,ppy/osu | osu.Game/Online/Multiplayer/MultiplayerRoomUser.cs | osu.Game/Online/Multiplayer/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 Newtonsoft.Json;
using osu.Game.Online.Rooms;
using osu.Game.Users;
namespace osu.Game.Online.Multiplayer
{
[Serializable]
... | // 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 Newtonsoft.Json;
using osu.Game.Users;
namespace osu.Game.Online.Multiplayer
{
[Serializable]
public class MultiplayerRoomU... | mit | C# |
6fad03f03d451903fc11455453bb25a4e19248ec | Test commit after fixing git configuration. | yrshaikh/Issue-Tracker,yrshaikh/Issue-Tracker,yrshaikh/Issue-Tracker,yrshaikh/Issue-Tracker | Src/WebApplication/Controllers/IssueController.cs | Src/WebApplication/Controllers/IssueController.cs | using System.Net;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Service.Services.Issue;
using Service.Services.Project;
using Service.ViewModels.Issue;
using WebApplication.Security;
namespace WebApplication.Controllers
{
[Authorize]
public class IssueController : Controller
{
p... | using System.Net;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Service.Services.Issue;
using Service.Services.Project;
using Service.ViewModels.Issue;
using WebApplication.Security;
namespace WebApplication.Controllers
{
[Authorize]
public class IssueController : Controller
{
p... | mit | C# |
24173f4ccc49826ac50cdd9d82b65532b2b492bc | Fix regression (unit tests were failing because of this) | blaise-braye/my-accounts | MyAccounts.Business/Extensions/ObjectExtensions.cs | MyAccounts.Business/Extensions/ObjectExtensions.cs | using System.Collections.Generic;
using System.Linq;
using FastMember;
using Newtonsoft.Json;
namespace MyAccounts.Business.Extensions
{
public static class ObjectExtensions
{
public static IDictionary<string, string> ToRawMembersDictionary(this object obj)
{
var accessor = TypeAcc... | using System.Collections.Generic;
using System.Linq;
using FastMember;
using Newtonsoft.Json;
namespace MyAccounts.Business.Extensions
{
public static class ObjectExtensions
{
public static IDictionary<string, string> ToRawMembersDictionary(this object obj)
{
var accessor = TypeAcc... | mit | C# |
6364239b897a49259c381240027d89fdd7e59fb9 | update to latest version for release | Appleseed/portal,Appleseed/portal,Appleseed/portal,Appleseed/portal,Appleseed/portal,Appleseed/portal,Appleseed/portal | Master/Appleseed/Projects/Appleseed.Framework.Web.UI.WebControls/Properties/AssemblyInfo.cs | Master/Appleseed/Projects/Appleseed.Framework.Web.UI.WebControls/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Ap... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Ap... | apache-2.0 | C# |
5efb13e028a65c40d8b3032dbe16ea3c971a94b8 | fix to never lose time | LithiumToast/MonoGame.Extended,Aurioch/MonoGame.Extended,cra0zy/MonoGame.Extended,HyperionMT/MonoGame.Extended,rafaelalmeidatk/MonoGame.Extended,rafaelalmeidatk/MonoGame.Extended | Source/MonoGame.Extended/FramesPerSecondCounter.cs | Source/MonoGame.Extended/FramesPerSecondCounter.cs | using System;
using Microsoft.Xna.Framework;
namespace MonoGame.Extended
{
public class FramesPerSecondCounter : IUpdate
{
private static readonly TimeSpan OneSecondTimeSpan = new TimeSpan(0, 0, 1);
private TimeSpan _timer = OneSecondTimeSpan;
private int _framesCounter;
publi... | using System;
using Microsoft.Xna.Framework;
namespace MonoGame.Extended
{
public class FramesPerSecondCounter : IUpdate
{
private static readonly TimeSpan OneSecondTimeSpan = new TimeSpan(0, 0, 1);
private TimeSpan _timer = OneSecondTimeSpan;
private int _framesCounter;
publi... | mit | C# |
8aac07cf30992d71ea9b1d8870088c90356dc911 | enhance CommandHttpClient DoCommand with timeout feature | IvanZheng/IFramework,IvanZheng/IFramework,IvanZheng/IFramework | Src/iFramework.Plugins/iFramework.Infrastructure.Mvc/CommandHttpClient.cs | Src/iFramework.Plugins/iFramework.Infrastructure.Mvc/CommandHttpClient.cs | using IFramework.Command;
using IFramework.Config;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
namespace IFramework.Infrastructure.Mvc
{
public static class CommandHttpClient
{
static readonly string Command... | using IFramework.Command;
using IFramework.Config;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
namespace IFramework.Infrastructure.Mvc
{
public static class CommandHttpClient
{
static readonly string Command... | mit | C# |
a48151f2cd40627d544c21898c6b396f5197a5f4 | Add generic test class chain | greymind/WebApiToTypeScript,greymind/WebApiToTypeScript,greymind/WebApiToTypeScript | src/WebApiTestApplication/Controllers/ThingyController.cs | src/WebApiTestApplication/Controllers/ThingyController.cs | using System.Web.Http;
using Newtonsoft.Json;
namespace WebApiTestApplication.Controllers
{
public class MegaClass : AnotherClass
{
public int Something { get; set; }
}
public class Chain1<T>
{
public T Value1 { get; set; }
}
public class Chain2<TValue> : Chain1<TValue>
... | using System.Web.Http;
using Newtonsoft.Json;
namespace WebApiTestApplication.Controllers
{
public class MegaClass : AnotherClass
{
public int Something { get; set; }
}
[RoutePrefix("api/thingy")]
public class ThingyController : ApiController
{
[HttpGet]
[Route("")]
... | mit | C# |
852084a23b33ceb9942c4ecdfa98e97b37de24ad | Fix imported images being scaled on some systems. | Prof9/PixelPet | PixelPet/Commands/ImportBitmapCmd.cs | PixelPet/Commands/ImportBitmapCmd.cs | using System;
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Drawing.Imaging;
using System.IO;
using System.Linq;
using System.Text;
namespace PixelPet.Commands {
internal class ImportBitmapCmd : CliCommand {
public ImportBitmapCmd()
: base ("Import-Bitmap",... | using System;
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Drawing.Imaging;
using System.IO;
using System.Linq;
using System.Text;
namespace PixelPet.Commands {
internal class ImportBitmapCmd : CliCommand {
public ImportBitmapCmd()
: base ("Import-Bitmap",... | mit | C# |
6e354afdb1c57a2ca68bc1037a30ccf046007fd9 | add ForceAdd method | SignalGo/SignalGo-full-net | SignalGo.Server/Models/Extensions.cs | SignalGo.Server/Models/Extensions.cs | using System.Collections.Concurrent;
using System.Collections.Generic;
namespace SignalGo.Server.Models
{
public static class Extensions
{
public static void Add(this IDictionary<string, string[]> headers, string key, string value)
{
headers.Add(key, value.Split(','));
}
... | using System.Collections.Generic;
namespace SignalGo.Server.Models
{
public static class Extensions
{
public static void Add(this IDictionary<string, string[]> headers, string key, string value)
{
headers.Add(key, value.Split(','));
}
public static void Add(this ID... | mit | C# |
56ec33a463fa7426ef18ab6eda0fc0ba00d6cac4 | Fix CS0675 warning in c# | rmarinho/yoga,rmarinho/yoga,facebook/yoga,facebook/css-layout,facebook/yoga,facebook/css-layout,yihuang/css-layout,facebook/css-layout,facebook/css-layout,facebook/yoga,facebook/yoga,yihuang/css-layout,rmarinho/yoga,yihuang/css-layout,yihuang/css-layout,facebook/yoga,facebook/css-layout,yihuang/css-layout,rmarinho/yoga... | csharp/Facebook.CSSLayout/MeasureOutput.cs | csharp/Facebook.CSSLayout/MeasureOutput.cs | /**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
namespace ... | /**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
namespace ... | mit | C# |
60d22cfa68407e909540fae7b93a2e729edcdb47 | Add first implementation of glEnable for Lighting analyzer | occar421/OpenTKAnalyzer | src/OpenTKAnalyzer/OpenTKAnalyzer/OpenTK_/Graphics_/OpenGL_/EnableLighting.cs | src/OpenTKAnalyzer/OpenTKAnalyzer/OpenTK_/Graphics_/OpenGL_/EnableLighting.cs | using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis.Diagnostics;
using OpenTK.Graphics.OpenGL;
namespace OpenTKAnalyzer.OpenTK_.Graphics_.Op... | using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis.Diagnostics;
using OpenTK.Graphics.OpenGL;
namespace OpenTKAnalyzer.OpenTK_.Graphics_.Op... | mit | C# |
614d6e0722193957bcebf1c23399303a9fab4506 | Make internals of Taut visible to Taut.Test. | CuriousCurmudgeon/taut | Taut/Taut/Properties/AssemblyInfo.cs | Taut/Taut/Properties/AssemblyInfo.cs | using System.Resources;
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.
[ass... | using System.Resources;
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.
[ass... | mit | C# |
36868dbdb4d8f480ebbbd68d268c4e35c8fd4ba0 | Add the ability to override the user setting for hold-to-confirm containers | ppy/osu,peppy/osu,NeoAdonis/osu,peppy/osu,NeoAdonis/osu,ppy/osu,ppy/osu,NeoAdonis/osu,peppy/osu | osu.Game/Graphics/Containers/HoldToConfirmContainer.cs | osu.Game/Graphics/Containers/HoldToConfirmContainer.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.Bindables;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Game.Config... | // 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.Bindables;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Game.Config... | mit | C# |
9c5147d406c6e520898eb0bf9a4b5a8be07e4e8b | Increase test stability | madelson/DistributedLock | DistributedLock.Tests/AbstractTestCases/Redis/RedisExtensionTestCases.cs | DistributedLock.Tests/AbstractTestCases/Redis/RedisExtensionTestCases.cs | using Medallion.Threading.Tests.Redis;
using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
namespace Medallion.Threading.Tests.Redis
{
public abstract class RedisExtensionTestCases<TLockProvider, TDatabaseProvider>
where TLockProvider : T... | using Medallion.Threading.Tests.Redis;
using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
namespace Medallion.Threading.Tests.Redis
{
public abstract class RedisExtensionTestCases<TLockProvider, TDatabaseProvider>
where TLockProvider : T... | mit | C# |
9511c22abef7b2aebd85f8d5c09b59495da45516 | Prepare for 2016.1.0-beta1. | Bloomcredit/SSH.NET,miniter/SSH.NET,sshnet/SSH.NET | src/Renci.SshNet/Properties/CommonAssemblyInfo.cs | src/Renci.SshNet/Properties/CommonAssemblyInfo.cs | using System;
using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyDescription("SSH.NET is a Secure Shell (SSH) library for .NET, optimized for parallelism.")]
[assembly: AssemblyCompany("Renci")]
[assembly: AssemblyProduct("SSH.NET")]
[assembly: AssemblyCopyright("Copyright Renci 2010-20... | using System;
using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyDescription("SSH.NET is a Secure Shell (SSH) library for .NET, optimized for parallelism.")]
[assembly: AssemblyCompany("Renci")]
[assembly: AssemblyProduct("SSH.NET")]
[assembly: AssemblyCopyright("Copyright Renci 2010-20... | mit | C# |
9802776e7461ca3ce0c03ed34295258efe4a4b51 | Reword exception to be more descriptive | peppy/osu-framework,ppy/osu-framework,peppy/osu-framework,smoogipooo/osu-framework,ppy/osu-framework,smoogipooo/osu-framework,ZLima12/osu-framework,ppy/osu-framework,ZLima12/osu-framework,peppy/osu-framework | osu.Framework/Localisation/LocalisableEnumAttribute.cs | osu.Framework/Localisation/LocalisableEnumAttribute.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.Extensions.TypeExtensions;
namespace osu.Framework.Localisation
{
/// <summary>
/// Indicates that the members of an enum can b... | // 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;
namespace osu.Framework.Localisation
{
/// <summary>
/// Indicates that the members of an enum can be localised.
/// </summary>
[AttributeU... | mit | C# |
79218bbc0036b081a85759b41b88f09a825b976f | Reset cookies before setting (otherwise merges existing with new) | FlorianRappl/AngleSharp,FlorianRappl/AngleSharp,zedr0n/AngleSharp.Local,Livven/AngleSharp,AngleSharp/AngleSharp,zedr0n/AngleSharp.Local,AngleSharp/AngleSharp,FlorianRappl/AngleSharp,AngleSharp/AngleSharp,Livven/AngleSharp,Livven/AngleSharp,AngleSharp/AngleSharp,zedr0n/AngleSharp.Local,FlorianRappl/AngleSharp,AngleSharp... | AngleSharp/Services/Default/MemoryCookieService.cs | AngleSharp/Services/Default/MemoryCookieService.cs | namespace AngleSharp.Services.Default
{
using System;
using System.Net;
/// <summary>
/// Represents the default cookie service. This class can be inherited.
/// </summary>
public class MemoryCookieService : ICookieService
{
readonly CookieContainer _container;
/// <summar... | namespace AngleSharp.Services.Default
{
using System;
using System.Net;
/// <summary>
/// Represents the default cookie service. This class can be inherited.
/// </summary>
public class MemoryCookieService : ICookieService
{
readonly CookieContainer _container;
/// <summar... | mit | C# |
d06498051475096f95711569af2353f324f46470 | add copyright | MienDev/IdentityServer4,IdentityServer/IdentityServer4,MienDev/IdentityServer4,siyo-wang/IdentityServer4,chrisowhite/IdentityServer4,MienDev/IdentityServer4,IdentityServer/IdentityServer4,IdentityServer/IdentityServer4,MienDev/IdentityServer4,IdentityServer/IdentityServer4,jbijlsma/IdentityServer4,jbijlsma/IdentityServ... | src/IdentityServer4/Extensions/DictionaryExtensions.cs | src/IdentityServer4/Extensions/DictionaryExtensions.cs | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Reflection;
namespace IdentityServer4.Extensions
{
... | using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Reflection;
namespace IdentityServer4.Extensions
{
public static class DictionaryExtensions
{
public static void AddDictionary(this JObject jobject, Dictionary<string, object> dictionary)
{
for... | apache-2.0 | C# |
f27fcdb4c87534cb40e817cd8778a3b947967719 | Allow multiple TransitiveMetadataReferencesAttribute | JohanLarsson/Gu.Roslyn.Asserts | Gu.Roslyn.Asserts/TransitiveMetadataReferencesAttribute.cs | Gu.Roslyn.Asserts/TransitiveMetadataReferencesAttribute.cs | namespace Gu.Roslyn.Asserts
{
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.CodeAnalysis;
/// <summary>
/// Specify what default metadata reference to use.
/// </summary>
[AttributeUsage(AttributeTargets.Assembly)]
public class TransitiveMetadat... | namespace Gu.Roslyn.Asserts
{
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.CodeAnalysis;
/// <summary>
/// Specify what default metadata reference to use.
/// </summary>
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = false)]
public ... | mit | C# |
f4a13b1496cd5b8d3694f45a5508b99fd9c19111 | Fix FxCop error. | mrward/nuget,mrward/nuget,GearedToWar/NuGet2,alluran/node.net,pratikkagda/nuget,chocolatey/nuget-chocolatey,xoofx/NuGet,alluran/node.net,mrward/nuget,ctaggart/nuget,zskullz/nuget,GearedToWar/NuGet2,OneGet/nuget,oliver-feng/nuget,dolkensp/node.net,mrward/nuget,xero-github/Nuget,GearedToWar/NuGet2,themotleyfool/NuGet,kum... | src/Dialog/PackageManagerUI/LicenseWindowOpener.cs | src/Dialog/PackageManagerUI/LicenseWindowOpener.cs | using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.Windows.Threading;
namespace NuGet.Dialog.PackageManagerUI {
[Export(typeof(ILicenseWindowOpener))]
public sealed class LicenseWindowOpener : ILicenseWindowOpener {
private readonly Dispat... | using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.Windows.Threading;
namespace NuGet.Dialog.PackageManagerUI {
[Export(typeof(ILicenseWindowOpener))]
public class LicenseWindowOpener : ILicenseWindowOpener {
private readonly Dispatcher _u... | apache-2.0 | C# |
63f43049266e0951c32b26af2320f85ad887fd32 | Fix error with fastest lap ranking | Krusen/ErgastApi.Net | src/ErgastApi/Requests/Standard/StandardRequest.cs | src/ErgastApi/Requests/Standard/StandardRequest.cs | using ErgastApi.Client.Attributes;
using ErgastApi.Responses;
using ErgastApi.Responses.Models;
namespace ErgastApi.Requests
{
public abstract class StandardRequest<TResponse> : ErgastRequest<TResponse> where TResponse : ErgastResponse
{
[UrlSegment("constructors")]
public virtual string Constr... | using ErgastApi.Client.Attributes;
using ErgastApi.Responses;
using ErgastApi.Responses.Models;
namespace ErgastApi.Requests
{
public abstract class StandardRequest<TResponse> : ErgastRequest<TResponse> where TResponse : ErgastResponse
{
[UrlSegment("constructors")]
public virtual string Constr... | unlicense | C# |
ecfcba9fb35c35064851e37000dfad7a7c5da6fa | remove duplicated default value on dates | collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists | src/FilterLists.Data/EntityTypeConfigurations/BaseEntityConfiguration.cs | src/FilterLists.Data/EntityTypeConfigurations/BaseEntityConfiguration.cs | using FilterLists.Data.Entities;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace FilterLists.Data.EntityTypeConfigurations
{
public class BaseEntityTypeConfiguration<TBase> : IEntityTypeConfiguration<TBase> where TBase : BaseEntity
{
public virtual... | using FilterLists.Data.Entities;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace FilterLists.Data.EntityTypeConfigurations
{
public class BaseEntityTypeConfiguration<TBase> : IEntityTypeConfiguration<TBase> where TBase : BaseEntity
{
public virtual... | mit | C# |
4db1ad7c174b7ba6825b9cc8623c30ef6a76ec5a | Remove permission request to storage | OvidiuCaba/StatisticsRomania,OvidiuCaba/StatisticsRomania,OvidiuCaba/StatisticsRomania,OvidiuCaba/StatisticsRomania | src/StatisticsRomania/StatisticsRomania.Droid/Properties/AssemblyInfo.cs | src/StatisticsRomania/StatisticsRomania.Droid/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using Android.App;
// 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... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using Android.App;
// 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... | mit | C# |
458f643f7c637c1a9b4285a6ac9a9b3565c94735 | Fix build break. | KevinRansom/roslyn,CyrusNajmabadi/roslyn,mgoertz-msft/roslyn,physhi/roslyn,shyamnamboodiripad/roslyn,jasonmalinowski/roslyn,tmat/roslyn,AmadeusW/roslyn,bartdesmet/roslyn,mavasani/roslyn,jasonmalinowski/roslyn,CyrusNajmabadi/roslyn,dotnet/roslyn,wvdd007/roslyn,eriawan/roslyn,dotnet/roslyn,eriawan/roslyn,KevinRansom/rosl... | src/Tools/ExternalAccess/Razor/RazorCSharpProximityExpressionResolver.cs | src/Tools/ExternalAccess/Razor/RazorCSharpProximityExpressionResolver.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
#nullable enable
using System.Collections.Generic;
using Microsoft.CodeAnalysis.CSharp.Debugging;
namespace Micro... | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
#nullable enable
using System.Collections.Generic;
using Microsoft.CodeAnalysis.CSharp.Debugging;
namespace Micro... | mit | C# |
19e95d15aeb113108702ba5b248b80534088de7e | Fix main window not displaying map difficulty when watching | Piotrekol/StreamCompanion,Piotrekol/StreamCompanion | osu!StreamCompanion/Code/Modules/MapDataGetters/Window/WindowDataGetter.cs | osu!StreamCompanion/Code/Modules/MapDataGetters/Window/WindowDataGetter.cs | using osu_StreamCompanion.Code.Core.DataTypes;
using osu_StreamCompanion.Code.Interfeaces;
using osu_StreamCompanion.Code.Windows;
namespace osu_StreamCompanion.Code.Modules.MapDataGetters.Window
{
public class WindowDataGetter :IModule,IMapDataGetter,IMainWindowUpdater
{
private MainWindowUpdater _ma... | using osu_StreamCompanion.Code.Core.DataTypes;
using osu_StreamCompanion.Code.Interfeaces;
using osu_StreamCompanion.Code.Windows;
namespace osu_StreamCompanion.Code.Modules.MapDataGetters.Window
{
public class WindowDataGetter :IModule,IMapDataGetter,IMainWindowUpdater
{
private MainWindowUpdater _ma... | mit | C# |
6863432670e54717656f8e60091ea9313d207abe | Fix macOS plataform Unit Testing | codeyu/Hangfire.LiteDB | test/Hangfire.LiteDB.Test/Utils/ConnectionUtils.cs | test/Hangfire.LiteDB.Test/Utils/ConnectionUtils.cs | using System;
using System.IO;
namespace Hangfire.LiteDB.Test.Utils
{
#pragma warning disable 1591
public static class ConnectionUtils
{
private const string Ext = "db";
private static string GetConnectionString()
{
var pathDb = Path.GetFullPath(string.Format("Hang... | using System;
using System.IO;
namespace Hangfire.LiteDB.Test.Utils
{
#pragma warning disable 1591
public static class ConnectionUtils
{
private const string Ext = "db";
private static string GetConnectionString()
{
return Path.GetFullPath(string.Format("Hangfire-L... | mit | C# |
78b17fc79cb89620e50ab03ddf364727257f6d19 | Update SnapshotSpanExtensionMethods.cs | Zebrina/PapyrusScriptEditorVSIX,Zebrina/PapyrusScriptEditorVSIX | PapyrusScriptEditorVSIX/Common/Extensions/SnapshotSpanExtensionMethods.cs | PapyrusScriptEditorVSIX/Common/Extensions/SnapshotSpanExtensionMethods.cs | using Microsoft.VisualStudio.Text;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Papyrus.Common.Extensions {
internal static class TextSnapshotSpanExtensionMethods {
public static SnapshotSpan Subspan(this SnapshotSpan span, in... | using Microsoft.VisualStudio.Text;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Papyrus.Common.Extensions {
internal static class TextSnapshotExtensionMethods {
#region ITextSnapshot
public static SnapshotSpan... | mit | C# |
064f7f01c182552b36474062e4ef120c2b4a540c | test mode email | Appleseed/base,Appleseed/base | Applications/Appleseed.Base.Alerts.Console/Appleseed.Base.Alerts/Program.cs | Applications/Appleseed.Base.Alerts.Console/Appleseed.Base.Alerts/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SendGrid;
using SendGrid.Helpers.Mail;
using System.Net;
using System.IO;
using Newtonsoft.Json;
using System.Data.SqlClient;
using System.Data;
using System.Configuration;
using Dapper;
namespac... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SendGrid;
using SendGrid.Helpers.Mail;
using System.Net;
using System.IO;
using Newtonsoft.Json;
using System.Data.SqlClient;
using System.Data;
using System.Configuration;
using Dapper;
namespac... | apache-2.0 | C# |
1edbd2791fe152e4e7ee39ce8601a71173a0268a | Add roles check in PetitionController. | enarod/enarod-web-api,enarod/enarod-web-api,enarod/enarod-web-api | Infopulse.EDemocracy.Web/Areas/Admin/Controllers/API/PetitionsController.cs | Infopulse.EDemocracy.Web/Areas/Admin/Controllers/API/PetitionsController.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using AutoMapper;
using Infopulse.EDemocracy.Common.Operations;
using Infopulse.EDemocracy.Data.Interfaces;
using Infopulse.EDemocracy.Data.Repositories;
using Infopulse.EDemocracy.Model.B... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using AutoMapper;
using Infopulse.EDemocracy.Common.Operations;
using Infopulse.EDemocracy.Data.Interfaces;
using Infopulse.EDemocracy.Data.Repositories;
using Infopulse.EDemocracy.Model.B... | cc0-1.0 | C# |
91b498240b177366006dc88ca40f6295c76eb36d | Fix my idiotic Coroutine firing | ashbash1987/ktanemod-modselector | Assets/Scripts/Pages/Extras/ClockText.cs | Assets/Scripts/Pages/Extras/ClockText.cs | using System;
using System.Collections;
using UnityEngine;
public class ClockText : MonoBehaviour
{
private TextMesh _textMesh = null;
private void Awake()
{
_textMesh = GetComponent<TextMesh>();
}
private void OnEnable()
{
StartCoroutine(UpdatePerSecond());
}
privat... | using System;
using System.Collections;
using UnityEngine;
public class ClockText : MonoBehaviour
{
private TextMesh _textMesh = null;
private void Awake()
{
_textMesh = GetComponent<TextMesh>();
}
private void Update()
{
StartCoroutine(UpdatePerSecond());
}
private ... | mit | C# |
f0dae46a70811cfeee7d8009074849412837ea69 | Add missing `<` | erichexter/twitter.bootstrap.mvc,mohamedabdlaal/twitter.bootstrap.mvc,mohamedabdlaal/twitter.bootstrap.mvc,erichexter/twitter.bootstrap.mvc | src/Bootstrap/Views/Shared/_validationSummary.cshtml | src/Bootstrap/Views/Shared/_validationSummary.cshtml | @if (ViewData.ModelState.Any(x => x.Value.Errors.Any()))
{
<div class="alert alert-error">
<a class="close" data-dismiss="alert">×</a>
@Html.ValidationSummary(true)
</div>
}
| @if (ViewData.ModelState.Any(x => x.Value.Errors.Any()))
{
<div class="alert alert-error">
<a class="close" data-dismiss="alert">×/a>
@Html.ValidationSummary(true)
</div>
}
| apache-2.0 | C# |
0d8a5e0a14fa66357d028a1f85e01c6a1e2cbca1 | add a BaseViewModel with first cut of common properties | wislon/xamforms-template | src/XamForms/XamForms.UI/ViewModels/BaseViewModel.cs | src/XamForms/XamForms.UI/ViewModels/BaseViewModel.cs | using ReactiveUI;
using Splat;
using XamForms.UI.Interfaces;
namespace XamForms.UI.ViewModels
{
public class BaseViewModel : ReactiveObject
{
protected readonly INavigationService NavService;
// [Reactive]
public string Title { get; set; }
// [Reactive]
public bool IsBusy { g... | using ReactiveUI;
namespace XamForms.UI.ViewModels
{
public class BaseViewModel : ReactiveObject
{
// [Reactive]
public string Title { get; set; }
// [Reactive]
public bool IsBusy { get; set; }
}
} | mit | C# |
a890d005765b3c2d3ea6fc254eab6d942458fe7c | Update RouteConfig to serve index.html with redirect to https | RikkiGibson/Corvallis-Bus-Server,RikkiGibson/Corvallis-Bus-Server | CorvallisBusWeb/App_Start/RouteConfig.cs | CorvallisBusWeb/App_Start/RouteConfig.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
namespace CorvallisBusWeb
{
public class RouteConfig
{
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
namespace CorvallisBusWeb
{
public class RouteConfig
{
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd... | mit | C# |
b716d90ad62e89c27877173b74c3ebfa65e3909e | bump version | raml-org/raml-dotnet-parser-2,raml-org/raml-dotnet-parser-2 | source/Raml.Parser/Properties/AssemblyInfo.cs | source/Raml.Parser/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("RAML.Parser")]
[assembly: AssemblyDescri... | 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("RAML.Parser")]
[assembly: AssemblyDescri... | apache-2.0 | C# |
3887bf44d63bcbf41f4c7553f96b7749c9c97f97 | fix build | corvusalba/my-little-lispy,corvusalba/my-little-lispy | src/CorvusAlba.MyLittleLispy.Runtime/Frame.cs | src/CorvusAlba.MyLittleLispy.Runtime/Frame.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
namespace CorvusAlba.MyLittleLispy.Runtime
{
public class Frame
{
private readonly Dictionary<string, Value> _locals;
public Frame(IEnumerable<string> args, IEnumerable<Value> values)
{
_locals = ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
namespace CorvusAlba.MyLittleLispy.Runtime
{
public class Frame
{
private readonly Dictionary<string, Value> _locals;
public Frame(IEnumerable<string> args, IEnumerable<Value> values)
{
_locals = ... | mit | C# |
e4ca87a67145ade72a91cddc45a313c64f675076 | remove out of date todo | SkillsFundingAgency/das-employerapprenticeshipsservice,SkillsFundingAgency/das-employerapprenticeshipsservice,SkillsFundingAgency/das-employerapprenticeshipsservice | src/SFA.DAS.EAS.Portal.Client/PortalClient.cs | src/SFA.DAS.EAS.Portal.Client/PortalClient.cs | using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using SFA.DAS.EAS.Portal.Client.Application.Queries;
using SFA.DAS.EAS.Portal.Client.Services.DasRecruit;
using SFA.DAS.EAS.Portal.Client.Types;
using StructureMap;
namespace SFA.DAS.EAS.Portal.Client
{
public class PortalClient : IPortalClie... | using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using SFA.DAS.EAS.Portal.Client.Application.Queries;
using SFA.DAS.EAS.Portal.Client.Services.DasRecruit;
using SFA.DAS.EAS.Portal.Client.Types;
using StructureMap;
namespace SFA.DAS.EAS.Portal.Client
{
public class PortalClient : IPortalClie... | mit | C# |
8150bb2407109ed1489c74772b9823e34b665f80 | Add InlineAlert to QuestionJson | smbc-digital/iag-contentapi | src/StockportContentApi/Model/QuestionJson.cs | src/StockportContentApi/Model/QuestionJson.cs | using System.Collections.Generic;
namespace StockportContentApi.Model
{
public class QuestionJson
{
public int pageId { get; set; }
public string buttonText { get; set; }
public bool ShouldCache { get; set; }
public bool IsLastPage { get; set; }
public List<Question> qu... | using System.Collections.Generic;
namespace StockportContentApi.Model
{
public class QuestionJson
{
public int pageId { get; set; }
public string buttonText { get; set; }
public bool ShouldCache { get; set; }
public bool IsLastPage { get; set; }
public List<Question> qu... | mit | C# |
8378d76c75d94a2b8560a4e4c3c24d0d11a20efa | Fix AssemblyInfo.cs | electroly/sqlnotebook,electroly/sqlnotebook,electroly/sqlnotebook | src/SqlNotebookScript/Properties/AssemblyInfo.cs | src/SqlNotebookScript/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("Sq... | 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("Sq... | mit | C# |
761eb50f3d1c5b6a9f07f7d851470c138ba07a6b | Fix typo | justinyoo/Tennis,justinyoo/Tennis,justinyoo/Tennis,justinyoo/Tennis | src/Tennis.WebApp/Views/Competition/Index.cshtml | src/Tennis.WebApp/Views/Competition/Index.cshtml | @model Tennis.ViewModels.CompetitionCollectionViewModel
@{
ViewData["Title"] = "Competitions";
}
<div class="row">
<h1>Competitions</h1>
<div class="col-xs-12 col-sm-6 col-md-6 col-lg-6">
<ul>
@foreach (var competition in Model.Competitions)
{
<li>@competit... | @model Tennis.ViewModels.CompetitionCollectionViewModel
@{
ViewData["Title"] = "Competitions";
}
<div class="row">
<h1>Competitions</h1>
<div class="col-xs-12 col-sm-6 col-md-6 col-lg-6">
<ul>
@foreach (var competition in Model.Competions)
{
<li>@competitio... | mit | C# |
63c3282e5c46555306df34d40198d4f465511289 | remove -w because we already have a process not awaiting for it | physhi/roslyn,paulvanbrenk/roslyn,dotnet/roslyn,shyamnamboodiripad/roslyn,AnthonyDGreen/roslyn,davkean/roslyn,MichalStrehovsky/roslyn,robinsedlaczek/roslyn,tmat/roslyn,bartdesmet/roslyn,heejaechang/roslyn,mgoertz-msft/roslyn,jkotas/roslyn,AdamSpeight2008/roslyn-AdamSpeight2008,pdelvo/roslyn,mavasani/roslyn,panopticonce... | src/Test/Utilities/Portable/FX/DumpProcRunner.cs | src/Test/Utilities/Portable/FX/DumpProcRunner.cs | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Diagnostics;
using System.IO;
namespace Microsoft.CodeAnalysis.Test.Utilities
{
public class ProcDumpRunner
{
pub... | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Diagnostics;
using System.IO;
namespace Microsoft.CodeAnalysis.Test.Utilities
{
public class ProcDumpRunner
{
pub... | mit | C# |
d01d43d7d96890c33f30803b6dd47db870c6a8fa | Add logging to home controller. | DimensionDataCBUSydney/akka-cluster-demo,DimensionDataCBUSydney/akka-cluster-demo,DimensionDataCBUSydney/akka-cluster-demo | src/TrivialWebApiWithActor/Web/HomeController.cs | src/TrivialWebApiWithActor/Web/HomeController.cs | using Akka.Actor;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using System.Threading.Tasks;
namespace TrivialWebApiWithActor.Web
{
public class GreetController
: Controller
{
readonly IActorRef _greeter;
public GreetController(ILogger<GreetController> logger, IA... | using Akka.Actor;
using Microsoft.AspNetCore.Mvc;
using System.Threading.Tasks;
namespace TrivialWebApiWithActor.Web
{
public class GreetController
: Controller
{
readonly IActorRef _greeter;
public GreetController(IActorRef greeter)
{
_greeter = greeter;
}
... | apache-2.0 | C# |
823d717a7d986e5551b50d87f1d3abefdffb560b | Reduce the serialised size of LegacyReplayFrame | peppy/osu,smoogipoo/osu,UselessToucan/osu,ppy/osu,smoogipooo/osu,smoogipoo/osu,NeoAdonis/osu,NeoAdonis/osu,NeoAdonis/osu,peppy/osu-new,UselessToucan/osu,ppy/osu,smoogipoo/osu,peppy/osu,ppy/osu,peppy/osu,UselessToucan/osu | osu.Game/Replays/Legacy/LegacyReplayFrame.cs | osu.Game/Replays/Legacy/LegacyReplayFrame.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 Newtonsoft.Json;
using osu.Game.Rulesets.Replays;
using osuTK;
namespace osu.Game.Replays.Legacy
{
public class LegacyReplayFrame : ReplayFrame
{
... | // 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.Rulesets.Replays;
using osuTK;
namespace osu.Game.Replays.Legacy
{
public class LegacyReplayFrame : ReplayFrame
{
public Vector2 Position... | mit | C# |
37f52e5ea6d1aa1571edae3dfb2f9b1afa44b031 | Implement receiver | sakapon/Samples-2017 | Network/UdpSample/UdpReceiver/Program.cs | Network/UdpSample/UdpReceiver/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Sockets;
using System.Text;
using System.Threading.Tasks;
namespace UdpReceiver
{
class Program
{
const int ReceiverPort = 8100;
static void Main(string[] args)
{
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace UdpReceiver
{
class Program
{
static void Main(string[] args)
{
}
}
}
| mit | C# |
1709598fd884a63c0880eafbddb4f5f1148571ca | Update RenderersEServices.cs | rafaelrmou/AppCursoZ | RenderersEServices/RenderersEServices.cs | RenderersEServices/RenderersEServices.cs | using System;
using Xamarin.Forms;
namespace RenderersEServices
{
public class App : Application
{
public App ()
{
// The root page of your application
MainPage = new CustomNavigationPage (
new ContentPage () {
Content = new Label (){ Text = "Icone Star" }
},
"star.png");
Dependency... | using System;
using Xamarin.Forms;
namespace RenderersEServices
{
public class App : Application
{
public App ()
{
// The root page of your application
MainPage = new CustomNavigationPage (
new ContentPage () {
Content = new Label (){ Text = "Icone Star" }
},
"star.png");
Dependency... | mit | C# |
8879886f8fb694cd2f274cca7675442b3996d812 | Add exception to ApplicationExecuted (#1885) | AntShares/AntShares | src/neo/Ledger/Blockchain.ApplicationExecuted.cs | src/neo/Ledger/Blockchain.ApplicationExecuted.cs | using Neo.Network.P2P.Payloads;
using Neo.SmartContract;
using Neo.VM;
using Neo.VM.Types;
using System;
using System.Linq;
namespace Neo.Ledger
{
partial class Blockchain
{
partial class ApplicationExecuted
{
public Transaction Transaction;
public TriggerType Trigger { ... | using Neo.Network.P2P.Payloads;
using Neo.SmartContract;
using Neo.VM;
using Neo.VM.Types;
using System.Linq;
namespace Neo.Ledger
{
partial class Blockchain
{
partial class ApplicationExecuted
{
public Transaction Transaction;
public TriggerType Trigger { get; internal ... | mit | C# |
eaebaf555d42fe13b05f35d0ec264a5f5906eba0 | simplify more | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet | WalletWasabi.Fluent/AddWallet/CreateWallet/ConfirmRecoveryWordsViewModel.cs | WalletWasabi.Fluent/AddWallet/CreateWallet/ConfirmRecoveryWordsViewModel.cs | using DynamicData;
using DynamicData.Binding;
using ReactiveUI;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Reactive.Linq;
using System.Windows.Input;
using WalletWasabi.Blockchain.Keys;
using WalletWasabi.Fluent.Models;
using WalletWasabi.Gui;
u... | using DynamicData;
using DynamicData.Binding;
using ReactiveUI;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Reactive.Linq;
using System.Windows.Input;
using WalletWasabi.Blockchain.Keys;
using WalletWasabi.Fluent.Models;
using WalletWasabi.Gui;
u... | mit | C# |
ab629950649f1f180d60e68aedb2dd8190db7736 | Make BaseInputHandler.Update virtual (#5338) | killerantz/HoloToolkit-Unity,killerantz/HoloToolkit-Unity,killerantz/HoloToolkit-Unity,DDReaper/MixedRealityToolkit-Unity,killerantz/HoloToolkit-Unity | Assets/MixedRealityToolkit.SDK/Features/Input/Handlers/BaseInputHandler.cs | Assets/MixedRealityToolkit.SDK/Features/Input/Handlers/BaseInputHandler.cs | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using UnityEngine;
namespace Microsoft.MixedReality.Toolkit.Input
{
/// <summary>
/// Base class for the Mixed Reality Toolkit's SDK input handlers.
///... | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using UnityEngine;
namespace Microsoft.MixedReality.Toolkit.Input
{
/// <summary>
/// Base class for the Mixed Reality Toolkit's SDK input handlers.
///... | mit | C# |
381fee9358136cec41d1db36ae53875b5a0f770f | fix terms and conditions expander | markeldigital/design-system,markeldigital/design-system,markeldigital/design-system,markeldigital/design-system,markeldigital/design-system | Markel.REMUS.DesignSystem.Web/Components/expander/template/Expander.cshtml | Markel.REMUS.DesignSystem.Web/Components/expander/template/Expander.cshtml | <div class="expander">
<a href="" class="expander-trigger"><i class="icon-angle-right"></i>@Text.Content.label_By_activating_you_agree</a>
<div class="expander-content scroll-area hidden" >Hello</div>
</div>
| <div class="expander">
<a href="" class="expander-trigger"><i class="icon-angle-right"></i>@Text.Content.label_By_activating_you_agree</a>
<div class="expander-content scroll-area hidden" ></div>
</div> | mit | C# |
f47b50a60b7a894574f304f93f3fd50d554c09da | Make lookup of runtime hierarchy manifest compatible for the VS Toolkit | thedevopsmachine/aws-lambda-dotnet,thedevopsmachine/aws-lambda-dotnet,thedevopsmachine/aws-lambda-dotnet,thedevopsmachine/aws-lambda-dotnet | Libraries/src/Amazon.Lambda.Tools/Constants.cs | Libraries/src/Amazon.Lambda.Tools/Constants.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Amazon.Lambda.Tools
{
public static class Constants
{
public const string IAM_ARN_PREFIX = "arn:aws:iam::";
public const string AWS_MANAGED_POLICY_ARN_PREFIX = "arn:aws:iam::aws:policy";
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Amazon.Lambda.Tools
{
public static class Constants
{
public const string IAM_ARN_PREFIX = "arn:aws:iam::";
public const string AWS_MANAGED_POLICY_ARN_PREFIX = "arn:aws:iam::aws:policy";
... | apache-2.0 | C# |
6f785fa9d63497786fe24fc0977cab9c9fc94ed0 | replace deprecated OnLevelWasLoaded method | fomalsd/unitystation,krille90/unitystation,fomalsd/unitystation,krille90/unitystation,fomalsd/unitystation,fomalsd/unitystation,fomalsd/unitystation,krille90/unitystation,fomalsd/unitystation,fomalsd/unitystation | UnityProject/Assets/Scripts/UI/CameraZoomHandler.cs | UnityProject/Assets/Scripts/UI/CameraZoomHandler.cs | using System;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.U2D;
using UnityEngine.SceneManagement;
public class CameraZoomHandler : MonoBehaviour
{
public float ZoomLevel => displaySettings.ZoomLevel;
public bool ScrollWheelZoom => displaySettings.ScrollWheelZoom;
private DisplaySettings ... | using System;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.U2D;
public class CameraZoomHandler : MonoBehaviour
{
public float ZoomLevel => displaySettings.ZoomLevel;
public bool ScrollWheelZoom => displaySettings.ScrollWheelZoom;
private DisplaySettings displaySettings = null;
private Pi... | agpl-3.0 | C# |
2b343b63b2385f0549b0bd6fe9d0e172e419c5f8 | Fix bug in 40_methods.csx | riganti/dotvvm-samples-academy,riganti/dotvvm-samples-academy,riganti/dotvvm-samples-academy | src/DotvvmAcademy.Web/Course/resources/10_calculator/40_methods.csharp.csx | src/DotvvmAcademy.Web/Course/resources/10_calculator/40_methods.csharp.csx | #load "./10_viewmodel.csharp.csx"
Unit.SetDefault("./CalculatorViewModel_30.cs");
Unit.SetCorrect("./CalculatorViewModel_40.cs");
var @void = Unit.GetType(WellKnownTypes.Void)
.Allow();
var random = new Random();
void ValidateMethod(string name, Func<int, int, int> operation)
{
viewModelType.GetMethod(name... | #load "./10_viewmodel.csharp.csx"
Unit.SetDefault("./CalculatorViewModel_30.cs");
Unit.SetCorrect("./CalculatorViewModel_40.cs");
var @void = Unit.GetType(WellKnownTypes.Void)
.Allow();
var random = new Random();
void ValidateMethod(string name, Func<int, int, int> operation)
{
viewModelType.GetMethod(name... | apache-2.0 | C# |
58972d4a81ab789627374365826596ae772879ca | bump cache up to 24 hours | collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists | src/FilterLists.Api/V1/Controllers/BaseController.cs | src/FilterLists.Api/V1/Controllers/BaseController.cs | using System;
using System.Runtime.CompilerServices;
using System.Threading.Tasks;
using FilterLists.Services.Seed;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Caching.Memory;
namespace FilterLists.Api.V1.Controllers
{
[ApiVersion("1.0")]
//TODO: use versioning without needing to manually speci... | using System;
using System.Runtime.CompilerServices;
using System.Threading.Tasks;
using FilterLists.Services.Seed;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Caching.Memory;
namespace FilterLists.Api.V1.Controllers
{
[ApiVersion("1.0")]
//TODO: use versioning without needing to manually speci... | mit | C# |
35c6a477b10a1e8d62f1660ac87f3f2ec04f3f36 | Add a test helper that allows marking spans in the query text | terrajobst/nquery-vnext | src/NQuery.Authoring.UnitTests/CompilationFactory.cs | src/NQuery.Authoring.UnitTests/CompilationFactory.cs | using System;
using NQuery.Data.Samples;
using NQuery.Text;
namespace NQuery.Authoring.UnitTests
{
internal static class CompilationFactory
{
private static readonly DataContext DataContext = DataContextFactory.CreateNorthwind();
public static Compilation CreateQuery(string query)
{
... | using System;
using NQuery.Data.Samples;
namespace NQuery.Authoring.UnitTests
{
internal static class CompilationFactory
{
private static readonly DataContext DataContext = DataContextFactory.CreateNorthwind();
public static Compilation CreateQuery(string query)
{
int posi... | mit | C# |
8053cedc51401c838bc31294a3addb806b8ca4ad | Set obsolete Bus.Defer extension methods to error rather than warn. We'll remove these shortly. | KodrAus/Nimbus,KodrAus/Nimbus,NimbusAPI/Nimbus,NimbusAPI/Nimbus,KodrAus/Nimbus | src/Nimbus/BackwardCompatibilityAdaptorExtensions.cs | src/Nimbus/BackwardCompatibilityAdaptorExtensions.cs | using System;
using System.Threading.Tasks;
using Nimbus.MessageContracts;
namespace Nimbus
{
public static class BackwardCompatibilityAdaptorExtensions
{
[Obsolete("Deprecated in favour of .SendAt(...) and .SendAfter(...) methods. This adaptor method will be removed in a future release.", true)]
... | using System;
using System.Threading.Tasks;
using Nimbus.MessageContracts;
namespace Nimbus
{
public static class BackwardCompatibilityAdaptorExtensions
{
[Obsolete("Deprecated in favour of .SendAt(...) and .SendAfter(...) methods. This adaptor method will be removed in a future release.")]
pu... | mit | C# |
eee3dabe3b78b7cea9cdbd3e3c9cf4df5278653c | Update generate-twiml-sms.5.x.cs | TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets | rest/messages/generate-twiml-sms/generate-twiml-sms.5.x.cs | rest/messages/generate-twiml-sms/generate-twiml-sms.5.x.cs | // In Package Manager, run:
// Install-Package Twilio.AspNet.Mvc -DependencyVersion HighestMinor
using System.Web.Mvc;
using Twilio.AspNet.Mvc;
using Twilio.TwiML;
public class SmsController : TwilioController
{
[HttpPost]
public TwiMLResult Index()
{
var messagingResponse = new MessagingResponse(... | // In Package Manager, run:
// Install-Package Twilio.AspNet.Mvc -DependencyVersion HighestMinor
using System.Web.Mvc;
using Twilio.AspNet.Mvc;
using Twilio.TwiML;
public class SmsController : TwilioController
{
[HttpPost]
public ActionResult Index()
{
var messagingResponse = new MessagingResponse... | mit | C# |
0481c67ed1d7be74f2cbf9e2c6268b54e80081de | Remove delegate allocation per ThreadPoolBoundHandleOverlapped | mskvortsov/coreclr,gkhanna79/coreclr,James-Ko/coreclr,JosephTremoulet/coreclr,pgavlin/coreclr,alexperovich/coreclr,ragmani/coreclr,wateret/coreclr,alexperovich/coreclr,tijoytom/coreclr,krk/coreclr,ragmani/coreclr,James-Ko/coreclr,botaberg/coreclr,botaberg/coreclr,parjong/coreclr,gkhanna79/coreclr,cydhaselton/coreclr,ms... | src/mscorlib/corefx/System/Threading/ClrThreadPoolBoundHandleOverlapped.cs | src/mscorlib/corefx/System/Threading/ClrThreadPoolBoundHandleOverlapped.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.Threading
{
/// <summary>
/// Overlapped subclass adding data needed by ThreadPoolBoundHand... | // 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.Threading
{
/// <summary>
/// Overlapped subclass adding data needed by ThreadPoolBoundHand... | mit | C# |
3b5d2f3bb2ab43dc2cc4c3f402ca9d9ad6e8ee39 | use new c#6 syntax | beginor/beginor.owin,beginor/beginor.owin | src/Beginor.Owin.StaticFile/StaticFileMiddlewareOptions.cs | src/Beginor.Owin.StaticFile/StaticFileMiddlewareOptions.cs | namespace Beginor.Owin.StaticFile {
public class StaticFileMiddlewareOptions {
public string RootDirectory { get; set; } = "wwwroot";
public string DefaultFile { get; set; } = "index.html";
public bool EnableETag { get; set; } = true;
public bool EnableHtml5LocationMode { get; s... | using System;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace Beginor.Owin.StaticFile {
using AppFunc = Func<IDictionary<string, object>, Task>;
public class StaticFileMiddlewareOptions {
string defaultFile = "index.html";
string rootDirectory = "wwwroot";
b... | mit | C# |
4d2827cb0c7109757947581d65fb8019f02fcdd5 | Fix bug: delete likes to the calendar with the specified id | erooijak/oogstplanner,erooijak/oogstplanner,erooijak/oogstplanner,erooijak/oogstplanner | Oogstplanner.Services/CalendarLikingService.cs | Oogstplanner.Services/CalendarLikingService.cs | using System;
using System.Collections.Generic;
using System.Linq;
using Oogstplanner.Data;
using Oogstplanner.Models;
namespace Oogstplanner.Services
{
public class CalendarLikingService : ServiceBase, ICalendarLikingService
{
readonly IUserService userService;
public CalendarLikingService(... | using System;
using System.Collections.Generic;
using System.Linq;
using Oogstplanner.Data;
using Oogstplanner.Models;
namespace Oogstplanner.Services
{
public class CalendarLikingService : ServiceBase, ICalendarLikingService
{
readonly IUserService userService;
public CalendarLikingService(... | mit | C# |
2971a2fb96e57bffa91aba4cb1a894d441e2bcdb | increment version | YatoDev/DirectXOverlay | Project/GameOverlay/Properties/AssemblyInfo.cs | Project/GameOverlay/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("")]
[assembly: AssemblyDescription("")]
[asse... | 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("")]
[assembly: AssemblyDescription("")]
[asse... | mit | C# |
c8e5f5a3e1fac9e1f834f8159860296d0958aa95 | Fix improper initialiser usage | csf-dev/CSF.Screenplay,csf-dev/CSF.Screenplay,csf-dev/CSF.Screenplay | CSF.Screenplay/Scenarios/LazySingletonRegistration.cs | CSF.Screenplay/Scenarios/LazySingletonRegistration.cs | using System;
namespace CSF.Screenplay.Scenarios
{
public class LazySingletonRegistration : IServiceRegistration
{
/// <summary>
/// Gets the registration metadata, by which the service may be identified.
/// </summary>
/// <value>The metadata.</value>
public ServiceMetadata Metadata { get; pri... | using System;
namespace CSF.Screenplay.Scenarios
{
public class LazySingletonRegistration : IServiceRegistration
{
/// <summary>
/// Gets the registration metadata, by which the service may be identified.
/// </summary>
/// <value>The metadata.</value>
public ServiceMetadata Metadata { get; pri... | mit | C# |
a2008a6627135a571d83ab2ba496dd7202b080df | Fix error in AnalysisServices | naveedaz/azure-powershell,AzureRT/azure-powershell,AzureRT/azure-powershell,atpham256/azure-powershell,AzureRT/azure-powershell,rohmano/azure-powershell,rohmano/azure-powershell,pankajsn/azure-powershell,krkhan/azure-powershell,devigned/azure-powershell,seanbamsft/azure-powershell,AzureAutomationTeam/azure-powershell,z... | src/ResourceManager/AnalysisServices/Commands.AnalysisServices.Test/Properties/AssemblyInfo.cs | src/ResourceManager/AnalysisServices/Commands.AnalysisServices.Test/Properties/AssemblyInfo.cs | // ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apa... | // ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apa... | apache-2.0 | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.