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 |
|---|---|---|---|---|---|---|---|---|
b6e98b6ba8c7a05a1c847198cd5574162985f6a4 | move configs to app.config | AzureDay/2016-WebSite,AzureDay/2016-WebSite | TeamSpark.AzureDay.WebSite.CLI/Data/KaznacheyTest.cs | TeamSpark.AzureDay.WebSite.CLI/Data/KaznacheyTest.cs | using System;
using System.Collections.Generic;
using Kaznachey.KaznacheyPayment;
using TeamSpark.AzureDay.WebSite.Config;
namespace TeamSpark.AzureDay.WebSite.CLI.Data
{
internal static class KaznacheyTest
{
public static void Pay()
{
Console.WriteLine("Kaznachey pay");
var kaznachey = new KaznacheyPaym... | using System;
using System.Collections.Generic;
using Kaznachey.KaznacheyPayment;
namespace TeamSpark.AzureDay.WebSite.CLI.Data
{
internal static class KaznacheyTest
{
public static void Pay()
{
Console.WriteLine("Kaznachey pay");
var kaznachey = new KaznacheyPaymentSystem(Guid.Parse("13FB1448-4DB5-4796-... | mit | C# |
4edf8c5b388b96f3f7f94f983b5f0535cf1733f4 | Use method group instead of lambda | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet | WalletWasabi.Gui/Dialogs/TextInputDialogViewModel.cs | WalletWasabi.Gui/Dialogs/TextInputDialogViewModel.cs | using AvalonStudio.Extensibility.Dialogs;
using ReactiveUI;
using System;
using System.Collections.Generic;
using System.Reactive;
using System.Reactive.Linq;
using System.Text;
using WalletWasabi.Helpers;
namespace WalletWasabi.Gui.Dialogs
{
public class TextInputDialogViewModel : ModalDialogViewModelBase
{
priva... | using AvalonStudio.Extensibility.Dialogs;
using ReactiveUI;
using System;
using System.Collections.Generic;
using System.Reactive;
using System.Reactive.Linq;
using System.Text;
using WalletWasabi.Helpers;
namespace WalletWasabi.Gui.Dialogs
{
public class TextInputDialogViewModel : ModalDialogViewModelBase
{
priva... | mit | C# |
d12103c4578f19660a1cf14e764bf5d518d8c90e | Update to use Global | modulexcite/Demos-1,bridgedotnet/Demos,modulexcite/Demos-1,bridgedotnet/Demos,bridgedotnet/Demos,bridgedotnet/Demos,modulexcite/Demos-1,modulexcite/Demos-1,bridgedotnet/Demos | VSCode/Demo/Demo.cs | VSCode/Demo/Demo.cs | using Bridge;
using Bridge.Html5;
namespace Demo
{
public class App
{
[Ready]
public static void Main()
{
Global.Alert("Success!");
}
}
} | using Bridge;
using Bridge.Html5;
namespace Demo
{
public class App
{
[Ready]
public static void Main()
{
Window.Alert("Success!");
}
}
} | apache-2.0 | C# |
5df9dafb0cc11361975d938a6836c9a79edee5b7 | change version to 1.3 | jittuu/NSupport | NSupport/Properties/AssemblyInfo.cs | NSupport/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("NSupport")]
[assembly: AssemblyDescriptio... | 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("NSupport")]
[assembly: AssemblyDescriptio... | mit | C# |
f9bfe5bf42a97f4f1c60bfbdbb2c01488fd26d6e | Allow empty database definitions | micahhahn/Passado | Passado/Model/Database/IDatabase.cs | Passado/Model/Database/IDatabase.cs | using System;
using System.Collections.Generic;
using System.Text;
namespace Passado.Model.Database
{
public interface IDatabase<TDatabase> : ITableBuilder<TDatabase>
, IDatabaseModelBuilder<TDatabase>
{
}
}
| using System;
using System.Collections.Generic;
using System.Text;
namespace Passado.Model.Database
{
public interface IDatabase<TDatabase> : ITableBuilder<TDatabase>
{
}
}
| mit | C# |
02851a3e2ca0a4a0e1f7a92bb93452b89ca282ce | Fix IndexOutOfRangeException when Parsing instructions | FetzenRndy/Creative,FetzenRndy/Creative,FetzenRndy/Creative,FetzenRndy/Creative,FetzenRndy/Creative | Codesignal/csharp/CpuEmulator/CpuEmulator.Emulator/InstructionParser.cs | Codesignal/csharp/CpuEmulator/CpuEmulator.Emulator/InstructionParser.cs | using System;
using System.Collections.Generic;
using CpuEmulator.Emulator.Exceptions;
using CpuEmulator.Emulator.Instructions;
namespace CpuEmulator.Emulator
{
public class InstructionParser
{
public static List<Instruction> Parse(string[] instructions)
{
var result = new List<Instruction>();
foreach (va... | using System;
using System.Collections.Generic;
using CpuEmulator.Emulator.Exceptions;
using CpuEmulator.Emulator.Instructions;
namespace CpuEmulator.Emulator
{
public class InstructionParser
{
public static List<Instruction> Parse(string[] instructions)
{
var result = new List<Instruction>();
foreach (va... | mit | C# |
d24c51942260e0fae48055ae349b6c57c5eb3c14 | Fix json test | xtrmstep/MvcAjaxGridSample,xtrmstep/MvcAjaxGridSample | MvcAjaxGridSampleTests/Models/GridViewModelTests.cs | MvcAjaxGridSampleTests/Models/GridViewModelTests.cs | using System.Web.Helpers;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace MvcAjaxGridSample.Models.Tests
{
[TestClass]
public class GridViewModelTests
{
[TestMethod]
public void JsonEncoder_should_generate_a_string_forOptions()
{
var model = new GridViewMo... | using System.Web.Helpers;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace MvcAjaxGridSample.Models.Tests
{
[TestClass]
public class GridViewModelTests
{
[TestMethod]
public void JsonEncoder_should_generate_a_string_forOptions()
{
var model = new GridViewMo... | mit | C# |
19a0d1cd1d61564c0fb3715bae9d779b6185e050 | add Format("G") | signumsoftware/framework,AlejandroCano/extensions,signumsoftware/extensions,signumsoftware/extensions,AlejandroCano/extensions,MehdyKarimpour/extensions,signumsoftware/framework,MehdyKarimpour/extensions | Signum.Entities.Extensions/ViewLog/ViewLogEntity.cs | Signum.Entities.Extensions/ViewLog/ViewLogEntity.cs | using System;
using Signum.Entities.Basics;
using System.Linq.Expressions;
using Signum.Utilities;
namespace Signum.Entities.ViewLog
{
[Serializable, EntityKind(EntityKind.System, EntityData.Transactional)]
public class ViewLogEntity : Entity
{
public ViewLogEntity()
{
... | using System;
using Signum.Entities.Basics;
using System.Linq.Expressions;
using Signum.Utilities;
namespace Signum.Entities.ViewLog
{
[Serializable, EntityKind(EntityKind.System, EntityData.Transactional)]
public class ViewLogEntity : Entity
{
public ViewLogEntity()
{
... | mit | C# |
aedd548c3be0c7aaf09fbdf3a649a4ac9a7e8856 | Fix sample perf (Option 1) | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore | samples/SampleApp/Startup.cs | samples/SampleApp/Startup.cs | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using Microsoft.AspNet.Builder;
using Microsoft.AspNet.Http;
namespace SampleApp
{
public class Startup
{
public void Co... | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using Microsoft.AspNet.Builder;
using Microsoft.AspNet.Http;
namespace SampleApp
{
public class Startup
{
public void Co... | apache-2.0 | C# |
252ae6bce7573ef75d22afb4acacf52d7308d076 | Fix projectJsonPath | syedhassaanahmed/aspnet-core-crud-demo,syedhassaanahmed/aspnet-core-crud-demo,syedhassaanahmed/aspnet-core-crud-demo | build.cake | build.cake | #tool "nuget:?package=GitVersion.CommandLine"
var target = Argument("target", "Default");
var outputDir = "./artifacts/";
var artifactName = "artifact.zip";
var solutionPath = "./AspNetCore.CrudDemo.sln";
var projectPath = "./AspNetCore.CrudDemo";
var projectJsonPath = projectPath + "/project.json";
var buildConfig = ... | #tool "nuget:?package=GitVersion.CommandLine"
var target = Argument("target", "Default");
var outputDir = "./artifacts/";
var artifactName = "artifact.zip";
var solutionPath = "./AspNetCore.CrudDemo.sln";
var projectPath = "./AspNetCore.CrudDemo";
var buildConfig = "Release";
Task("Clean")
.Does(() =>
{
if (Dire... | mit | C# |
3ce94b9e8f68ce4389968d28d41c96c64d27b5e4 | add a space | OdeToCode/aspcoreclass,OdeToCode/aspcoreclass | Startup.cs | Startup.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using aspcoreclass.Middleware;
using aspcoreclass.Services;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
using Microsoft.EntityFrameworkCore;
using Microsoft.Exte... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using aspcoreclass.Middleware;
using aspcoreclass.Services;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
using Microsoft.EntityFrameworkCore;
using Microsoft.Exte... | mit | C# |
8425ac329908ff28a61e1f5d23106191eac592ee | Correct way to wait for indexing | dlidstrom/Snittlistan,dlidstrom/Snittlistan,dlidstrom/Snittlistan | Snittlistan.Test/PlayerStat_Test.cs | Snittlistan.Test/PlayerStat_Test.cs | using System;
using System.Linq;
using MvcContrib.TestHelper;
using Snittlistan.Infrastructure.Indexes;
using Snittlistan.Models;
using Xunit;
namespace Snittlistan.Test
{
public class PlayerStat_Test : DbTest
{
[Fact]
public void VerifyIndex()
{
// Arrange
IndexCreator.CreateIndexes(Stor... | using System;
using System.Linq;
using MvcContrib.TestHelper;
using Snittlistan.Infrastructure.Indexes;
using Snittlistan.Models;
using Xunit;
namespace Snittlistan.Test
{
public class PlayerStat_Test : DbTest
{
[Fact]
public void VerifyIndex()
{
// Arrange
IndexCreator.CreateIndexes(Stor... | mit | C# |
6eea226ab73e4b5e4d0069ef02c2d06d6a9ffb83 | Update dample | akrisiun/gtk-sharp,openmedicus/gtk-sharp,Gankov/gtk-sharp,openmedicus/gtk-sharp,akrisiun/gtk-sharp,orion75/gtk-sharp,Gankov/gtk-sharp,akrisiun/gtk-sharp,sillsdev/gtk-sharp,openmedicus/gtk-sharp,openmedicus/gtk-sharp,openmedicus/gtk-sharp,Gankov/gtk-sharp,akrisiun/gtk-sharp,orion75/gtk-sharp,sillsdev/gtk-sharp,antoniusr... | sample/gtk-html-sample.cs | sample/gtk-html-sample.cs | // mcs -pkg:gtkhtml-sharp -pkg:gtk-sharp gtk-html-sample.cs
using Gtk;
using System;
using System.IO;
class HTMLSample {
static int Main (string [] args)
{
HTML html;
Window win;
Application.Init ();
html = new HTML ();
win = new Window ("Test");
win.Add (html);
HTMLStream s = html.Begin ("text/html");... | using Gtk;
using GtkSharp;
using System;
// mcs -r gtkhtml-sharp -r gtk-sharp gtk-html-sample.cs
class HTMLSample {
static int Main (string [] args)
{
HTML html;
Window win;
Application.Init ();
html = new HTML ();
win = new Window ("Test");
win.Add (html);
HTMLStream s = html.Begin ("text/html");
s.... | lgpl-2.1 | C# |
4497aae15d435378301ff31b10a1e688ae716c90 | Fix build issues. | planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell | src/Firehose.Web/Authors/JoshRickard.cs | src/Firehose.Web/Authors/JoshRickard.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel.Syndication;
using System.Web;
using Firehose.Web.Infrastructure;
namespace Firehose.Web.Authors
{
public class JoshRickard : IFilterMyBlogPosts
{
public string FirstName => "Josh";
public string LastNa... | using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel.Syndication;
using System.Web;
using Firehose.Web.Infrastructure;
namespace Firehose.Web.Authors
{
public class JoshRickard : IFilterMyBlogPosts
{
public string FirstName => "Josh";
public string LastNa... | mit | C# |
0cd03b27bda272224a599e2c0f00da18be4dccb9 | Add missing namespace and using statements. | planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell | src/Firehose.Web/Authors/MikeKanakos.cs | src/Firehose.Web/Authors/MikeKanakos.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel.Syndication;
using System.Web;
using Firehose.Web.Infrastructure;
namespace Firehose.Web.Authors
{
public class MikeKanakos : IAmACommunityMember
{
public string FirstName => "Mike";
public string LastN... | public class MikeKanakos : IAmACommunityMember
{
public string FirstName => "Mike";
public string LastName => "Kanakos";
public string ShortBioOrTagLine => "Windows IT pro located in the RTP area of North Carolina. Active Directory, Azure AD, Group Policy, and automation.";
public st... | mit | C# |
44ced08db7442e0007103c40d883bcabab13ee9f | fix bug where field is null on the last game of the season | RagtimeWilly/FplClient | src/FplClient/Data/FplGlobalSettings.cs | src/FplClient/Data/FplGlobalSettings.cs | using System.Collections.Generic;
using Newtonsoft.Json;
namespace FplClient.Data
{
public class FplGlobalSettings
{
[JsonProperty("current-event")]
public int? CurrentEvent { get; set; }
[JsonProperty("next-event")]
public int? NextEvent { get; set; }
[JsonProperty("... | using System.Collections.Generic;
using Newtonsoft.Json;
namespace FplClient.Data
{
public class FplGlobalSettings
{
[JsonProperty("current-event")]
public int? CurrentEvent { get; set; }
[JsonProperty("next-event")]
public int NextEvent { get; set; }
[JsonProperty("l... | mit | C# |
1cc83fdd052366f52cf2500e669b7cdd39410a19 | Add status to cat indices response | faisal00813/elasticsearch-net,UdiBen/elasticsearch-net,TheFireCookie/elasticsearch-net,jonyadamit/elasticsearch-net,starckgates/elasticsearch-net,junlapong/elasticsearch-net,ststeiger/elasticsearch-net,geofeedia/elasticsearch-net,CSGOpenSource/elasticsearch-net,azubanov/elasticsearch-net,cstlaurent/elasticsearch-net,st... | src/Nest/Domain/Cat/CatIndicesRecord.cs | src/Nest/Domain/Cat/CatIndicesRecord.cs | using Newtonsoft.Json;
namespace Nest
{
[JsonObject]
public class CatIndicesRecord : ICatRecord
{
[JsonProperty("docs.count")]
public string DocsCount { get; set; }
[JsonProperty("docs.deleted")]
public string DocsDeleted { get; set; }
[JsonProperty("health")]
public string Health { get; set; }
[J... | using Newtonsoft.Json;
namespace Nest
{
[JsonObject]
public class CatIndicesRecord : ICatRecord
{
[JsonProperty("docs.count")]
public string DocsCount { get; set; }
[JsonProperty("docs.deleted")]
public string DocsDeleted { get; set; }
[JsonProperty("health")]
public string Health { get; set; }
[J... | apache-2.0 | C# |
3acfd0b659f813bf205f10748317c14d72c07edc | Update AssemblyInfo.cs | ryanande/T4Config | src/T4Config/Properties/AssemblyInfo.cs | src/T4Config/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("T4... | 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("T4... | mit | C# |
6cb7b318ef43ef682cacda6d48a8ba740064d4bb | Normalize all file headers to the expected Apache 2.0 license | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore | src/Testing/src/CollectDumpAttribute.cs | src/Testing/src/CollectDumpAttribute.cs | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Diagnostics;
using System.IO;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Testing;
name... | // Copyright(c) .NET Foundation.All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Diagnostics;
using System.IO;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Testing;
namesp... | apache-2.0 | C# |
a85a592f70245b01f8bde3db136f913912da67c4 | Add lookup for spinner background colour | smoogipoo/osu,NeoAdonis/osu,UselessToucan/osu,peppy/osu-new,ppy/osu,ppy/osu,peppy/osu,NeoAdonis/osu,UselessToucan/osu,smoogipooo/osu,smoogipoo/osu,ppy/osu,peppy/osu,peppy/osu,NeoAdonis/osu,UselessToucan/osu,smoogipoo/osu | osu.Game.Rulesets.Osu/Skinning/OsuSkinColour.cs | osu.Game.Rulesets.Osu/Skinning/OsuSkinColour.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
namespace osu.Game.Rulesets.Osu.Skinning
{
public enum OsuSkinColour
{
SliderTrackOverride,
SliderBorder,
SliderBall,
SpinnerBackg... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
namespace osu.Game.Rulesets.Osu.Skinning
{
public enum OsuSkinColour
{
SliderTrackOverride,
SliderBorder,
SliderBall
}
}
| mit | C# |
1850423ca50ffd883c8ef30f59bcad8f6590ea39 | edit dotnet stub to obey the 'rules' | ouspg/trytls,ouspg/trytls,ouspg/trytls,ouspg/trytls,ouspg/trytls,ouspg/trytls,ouspg/trytls,ouspg/trytls | stubs/dotnet-https/Program.cs | stubs/dotnet-https/Program.cs | using System;
using System.Net.Http;
using System.Threading.Tasks;
class Program
{
static void Main(string[] args)
{
if (args.Length == 3) {
Console.WriteLine("UNSUPPORTED");
System.Environment.Exit(0);
} else if (args.Length != 2) {
Console.WriteLine("Usage: dotnettest <HOST> <PORT>");
System.Envir... | using System;
using System.Net.Http;
using System.Threading.Tasks;
class Program
{
static void Main(string[] args)
{
if (args.Length != 2) {
Console.WriteLine("UNSUPPORTED");
System.Environment.Exit(0);
}
try {
string url = "https://"+args[0]+":"+args[1];
GetURL(url).Wait();
Console.WriteLi... | mit | C# |
2fc3b0232fb8be5f65f4da7360f896363bf9a39c | fix using | autumn009/TanoCSharpSamples | chap36/PatternMatching/PatternMatching/Program.cs | chap36/PatternMatching/PatternMatching/Program.cs | using System;
class Program
{
static bool IsLetterOld(char c) => c >= 'a' && c <= 'z' || c >= 'A' && c <= 'Z';
static bool IsLetterNew(char c) => c is >= 'a' and <= 'z' or >= 'A' and <= 'Z';
static void Main()
{
// and/or sample
for (int i = 0; i < 0xff; i++) Console.Write($"{(IsLetter... | using System;
using System.Security.Cryptography.X509Certificates;
class Program
{
static bool IsLetterOld(char c) => c >= 'a' && c <= 'z' || c >= 'A' && c <= 'Z';
static bool IsLetterNew(char c) => c is >= 'a' and <= 'z' or >= 'A' and <= 'Z';
static void Main()
{
// and/or sample
for ... | mit | C# |
3b4732de2745ad92eaf20217e79b04921773506d | Add code documentation for ID getter/setter in ITile interface. | mitchfizz05/Citysim,pigant/Citysim | Citysim/Map/Tiles/ITile.cs | Citysim/Map/Tiles/ITile.cs | using System;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace Citysim.Map.Tiles
{
public interface ITile
{
/// <summary>
/// Unique ID for the tile. Mustn't be used by any other tile.
/// </summary>
int id { get; set; }
/// <summary>
... | using System;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace Citysim.Map.Tiles
{
public interface ITile
{
int id { get; set; }
/// <summary>
/// Load the texture from the texture path variable.
/// This is called automatically once the game is... | mit | C# |
3788cdb1b70810e7ea96ca587f12f233ae9f75e5 | fix probe test to be cross platform | ClogenyTechnologies/azure-powershell,ClogenyTechnologies/azure-powershell,AzureAutomationTeam/azure-powershell,ClogenyTechnologies/azure-powershell,AzureAutomationTeam/azure-powershell,AzureAutomationTeam/azure-powershell,AzureAutomationTeam/azure-powershell,devigned/azure-powershell,AzureAutomationTeam/azure-powershel... | src/Common/Commands.Common.Tests/ProbeTests.cs | src/Common/Commands.Common.Tests/ProbeTests.cs | using Microsoft.WindowsAzure.Commands.ScenarioTest;
using Microsoft.WindowsAzure.Commands.Utilities.Common;
using System;
using System.Linq;
using Xunit;
namespace Commands.Common.Tests
{
public class ProbeTests
{
private readonly string _pwsh;
public ProbeTests()
{
_pwsh =... | using Microsoft.WindowsAzure.Commands.ScenarioTest;
using Microsoft.WindowsAzure.Commands.Utilities.Common;
using System;
using System.Linq;
using Xunit;
namespace Commands.Common.Tests
{
public class ProbeTests
{
[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void Fal... | apache-2.0 | C# |
3731a2dac186e925a446e4f3335daa5e9277b08c | Check if the topic is in the subtopiclist of its parent before deleting it. | pzurek/psycho | src/Core/Psycho.Core/Psycho.Core.Data/Topic.cs | src/Core/Psycho.Core/Psycho.Core.Data/Topic.cs | //------10--------20--------30--------40--------50--------60--------70--------80
//
// Topic.cs
//
// Copyright (C) 2009 Piotr Zurek p.zurek@gmail.com
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software ... | //------10--------20--------30--------40--------50--------60--------70--------80
//
// Topic.cs
//
// Copyright (C) 2009 Piotr Zurek p.zurek@gmail.com
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software ... | mit | C# |
81f262888abe8ff172461123511cbe42ae54c32c | Make the palette provide a friendlier error message | tom-overton/fe12-guide-name-tool | Palette.cs | Palette.cs | // Copyright (c) 2016 Tom Overton
// Class for converting palette index to RGB color and vice versa.
using System;
using System.Collections.Generic;
using System.Drawing;
namespace FE12GuideNameTool
{
public static class Palette
{
private static Dictionary<int, Color> palette = new Dictionary<int, Co... | // Copyright (c) 2016 Tom Overton
// Class for converting palette index to RGB color and vice versa.
using System;
using System.Collections.Generic;
using System.Drawing;
namespace FE12GuideNameTool
{
public static class Palette
{
private static Dictionary<int, Color> palette = new Dictionary<int, Co... | mit | C# |
9aeb8ee65961998a4beca1cd8e5a83fd83eaa47b | Update build.cake | xamarin/XamarinComponents,xamarin/XamarinComponents,xamarin/XamarinComponents,xamarin/XamarinComponents,xamarin/XamarinComponents,xamarin/XamarinComponents | XPlat/OfficeUIFabric/iOS/build.cake | XPlat/OfficeUIFabric/iOS/build.cake |
var TARGET = Argument ("t", Argument ("target", "Default"));
var PODFILE_VERSION = "0.2.13";
var NUGET_VERSION = PODFILE_VERSION + "-pre2";
Task ("externals")
.WithCriteria (!DirectoryExists ("./externals/OfficeUIFabric.framework"))
.Does (() =>
{
EnsureDirectoryExists ("./externals");
// Download and build De... |
var TARGET = Argument ("t", Argument ("target", "Default"));
var PODFILE_VERSION = "0.2.13";
var NUGET_VERSION = PODFILE_VERSION + "-pre1";
Task ("externals")
.WithCriteria (!DirectoryExists ("./externals/OfficeUIFabric.framework"))
.Does (() =>
{
EnsureDirectoryExists ("./externals");
// Download and build De... | mit | C# |
7d1501e18cd06e56b4539f171297262e86d809c9 | fix race generation | Tyzeppelin/petitmondetemp,Tyzeppelin/petitmondetemp,Tyzeppelin/petitmondetemp | dix-nez-lande/dix-nez-lande/Implem/RaceFactory.cs | dix-nez-lande/dix-nez-lande/Implem/RaceFactory.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace dix_nez_lande.Implem
{
/**
* @author François Boschet
* @author Aurélien Fontaine
* @version 0.1 (still in alpha)
*/
public class RaceFactory
{
#region Sing... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace dix_nez_lande.Implem
{
/**
* @author François Boschet
* @author Aurélien Fontaine
* @version 0.1 (still in alpha)
*/
public class RaceFactory
{
#region Sing... | mit | C# |
bbcf624d8390280ac37a42edc1b56ef583fab3cd | Fix build. | JetBrains/Nitra,rsdn/nitra,JetBrains/Nitra,rsdn/nitra | Grammars/Json/Tests/Sample.Json.Cs/Program.cs | Grammars/Json/Tests/Sample.Json.Cs/Program.cs | using Nitra;
using Nitra.Tests;
using System;
using System.IO;
namespace Sample.Json.Cs
{
class Program
{
static void Main(string[] args)
{
if (args.Length > 0)
text = File.ReadAllText(args[0]);
var parseResult = JsonParser.Start(new SourceSnapshot(text), new ParserHos... | using Nitra;
using Nitra.Tests;
using System;
using System.IO;
namespace Sample.Json.Cs
{
class Program
{
static void Main(string[] args)
{
if (args.Length > 0)
text = File.ReadAllText(args[0]);
var parseResult = JsonParser.Start(new SourceSnapshot(text), new ParserHos... | apache-2.0 | C# |
b770ab303e3fea43dc9021cea6c8615083c65203 | change read logic, every line is a different message. (way saner now) | NextLight/PokeBattle_Client | PokeBattle_Client/PokeBattle_Client/Server.cs | PokeBattle_Client/PokeBattle_Client/Server.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Threading;
using System.Net;
using System.Net.Sockets;
using System.Web.Script.Serialization;
using System.IO;
namespace PokeBattle_Client
{
class Server
{
Tc... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Threading;
using System.Net;
using System.Net.Sockets;
using System.Web.Script.Serialization;
namespace PokeBattle_Client
{
class Server
{
TcpClient client;
... | mit | C# |
efc6f6cf97c6fad05c5da3a98100e2bf83fbbb05 | Add new method stub for generating routes | stevehodgkiss/restful-routing,stevehodgkiss/restful-routing,restful-routing/restful-routing,restful-routing/restful-routing,stevehodgkiss/restful-routing,restful-routing/restful-routing | src/RestfulRouting/Mapper.cs | src/RestfulRouting/Mapper.cs | using System;
using System.Web.Routing;
namespace RestfulRouting
{
public abstract class Mapper
{
protected Route GenerateRoute(string path, string controller, string action, string[] httpMethods)
{
throw new NotImplementedException();
}
}
}
| namespace RestfulRouting
{
public abstract class Mapper
{
}
}
| mit | C# |
801f4bac62e498207f8680d5cbd43ba3ccb80341 | fix #12 | nerai/Unlog | src/Unlog.AdditionalTargets/WpfRtfLogTarget.cs | src/Unlog.AdditionalTargets/WpfRtfLogTarget.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Media;
using Unlog;
using Unlog.Util;
namespace Unlog.AdditionalTargets
{
public class WpfRtfLogTarget : ILogTarget
{
private readonly RichTextB... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Media;
using Unlog;
using Unlog.Util;
namespace Unlog.AdditionalTargets
{
public class WpfRtfLogTarget : ILogTarget
{
private readonly RichTextB... | mit | C# |
ab78de66857f9594f98d1e60e20e91b9241c7210 | Refactor BinaryOperation, redesign to support new types | ajlopez/TensorSharp | Src/TensorSharp/Operations/BinaryOperation.cs | Src/TensorSharp/Operations/BinaryOperation.cs | namespace TensorSharp.Operations
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TensorSharp.Nodes;
public abstract class BinaryOperation<T, R> : BaseNode<R>
{
private INode<T> left;
private INode<T> right;
p... | namespace TensorSharp.Operations
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TensorSharp.Nodes;
public abstract class BinaryOperation<T> : BaseNode<T>
{
private INode<T> left;
private INode<T> right;
priv... | mit | C# |
911e3caf741718b71ac360c99541511ce5d596dd | Bump version number | IRlyDontKnow/FluentValidation,glorylee/FluentValidation,mgmoody42/FluentValidation,cecilphillip/FluentValidation,robv8r/FluentValidation,olcayseker/FluentValidation,ruisebastiao/FluentValidation,GDoronin/FluentValidation,regisbsb/FluentValidation,deluxetiky/FluentValidation | src/CommonAssemblyInfo.cs | src/CommonAssemblyInfo.cs | using System.Reflection;
[assembly : AssemblyVersion("5.5.0.0")]
[assembly : AssemblyFileVersion("5.5.0.0")] | using System.Reflection;
[assembly : AssemblyVersion("5.4.0.0")]
[assembly : AssemblyFileVersion("5.4.0.0")] | apache-2.0 | C# |
74de1bf42d2e508d51307918f9db26982ac5595c | Build the new version | ProjectExtensions/ProjectExtensions.Azure.ServiceBus | src/CommonAssemblyInfo.cs | src/CommonAssemblyInfo.cs | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.18052
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//--... | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.18052
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//--... | bsd-3-clause | C# |
9d765e252c678194b7f618285ca7e9ef42a3a5ef | Update version num | glorylee/FluentValidation,regisbsb/FluentValidation,deluxetiky/FluentValidation,olcayseker/FluentValidation,GDoronin/FluentValidation,mgmoody42/FluentValidation,robv8r/FluentValidation,ruisebastiao/FluentValidation,cecilphillip/FluentValidation,IRlyDontKnow/FluentValidation | src/CommonAssemblyInfo.cs | src/CommonAssemblyInfo.cs | using System.Reflection;
[assembly : AssemblyVersion("5.6.1.0")]
[assembly : AssemblyFileVersion("5.6.1.0")] | using System.Reflection;
[assembly : AssemblyVersion("5.6.0.0")]
[assembly : AssemblyFileVersion("5.6.0.0")] | apache-2.0 | C# |
79a3a9dfbaf9093a977d102aaccab399c236b6f8 | Rename PushStored to PushPending on static Connect to be consistent | getconnect/connect-net,getconnect/connect-net-sdk | src/ConnectSdk/Connect.cs | src/ConnectSdk/Connect.cs | using System.Collections.Generic;
using System.Threading.Tasks;
using ConnectSdk.Config;
namespace ConnectSdk
{
public static class Connect
{
private static IConnect _connect;
public static void Inititialize(IConfiguration configuration)
{
_connect = new ConnectClient(conf... | using System.Collections.Generic;
using System.Threading.Tasks;
using ConnectSdk.Config;
namespace ConnectSdk
{
public static class Connect
{
private static IConnect _connect;
public static void Inititialize(IConfiguration configuration)
{
_connect = new ConnectClient(conf... | mit | C# |
324952eb265aad95179cd16e85fdd953c5057731 | Fix duplicate binding. | gigya/microdot | Gigya.Microdot.Ninject/MicrodotHostingModule.cs | Gigya.Microdot.Ninject/MicrodotHostingModule.cs | #region Copyright
// Copyright 2017 Gigya Inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// THIS... | #region Copyright
// Copyright 2017 Gigya Inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// THIS... | apache-2.0 | C# |
d1591491e5c818b903b6bf51900c3a4d1721bbeb | Replace reference by using regex | networm/NCrunchAdapterForUnity | NCrunchAdapterForUnity.cs | NCrunchAdapterForUnity.cs | using System.Text.RegularExpressions;
using SyntaxTree.VisualStudio.Unity.Bridge;
using UnityEditor;
[InitializeOnLoad]
public class NCrunchAdapterForUnity
{
public const string NUnitUnityReference = @"<Reference Include=""nunit.framework"">
<HintPath>.*nunit.framework.dll</HintPath>
</Referenc... | using SyntaxTree.VisualStudio.Unity.Bridge;
using UnityEditor;
[InitializeOnLoad]
public class NCrunchAdapterForUnity
{
public const string NUnitUnityReference = @"<Reference Include=""nunit.framework"">
<HintPath>Library\UnityAssemblies\nunit.framework.dll</HintPath>
</Reference>";
publi... | mit | C# |
79e584cd272292c39a25ce96f65a91d6f066c395 | Remove tall grass metadata when dropping seed | flibitijibibo/TrueCraft,robinkanters/TrueCraft,christopherbauer/TrueCraft,creatorfromhell/TrueCraft,blha303/TrueCraft,Mitch528/TrueCraft,christopherbauer/TrueCraft,flibitijibibo/TrueCraft,SirCmpwn/TrueCraft,thdtjsdn/TrueCraft,SirCmpwn/TrueCraft,blha303/TrueCraft,thdtjsdn/TrueCraft,flibitijibibo/TrueCraft,robinkanters/T... | TrueCraft.Core/Logic/Blocks/TallGrassBlock.cs | TrueCraft.Core/Logic/Blocks/TallGrassBlock.cs | using System;
using TrueCraft.API.Logic;
using TrueCraft.Core.Logic.Items;
using TrueCraft.API;
namespace TrueCraft.Core.Logic.Blocks
{
public class TallGrassBlock : BlockProvider
{
public static readonly byte BlockID = 0x1F;
public override byte ID { get { return 0x1F; } }
... | using System;
using TrueCraft.API.Logic;
using TrueCraft.Core.Logic.Items;
using TrueCraft.API;
namespace TrueCraft.Core.Logic.Blocks
{
public class TallGrassBlock : BlockProvider
{
public static readonly byte BlockID = 0x1F;
public override byte ID { get { return 0x1F; } }
... | mit | C# |
d581f642281c069296463eff3441fe1112dd4132 | Make the LogSource available to NLog target layouts | PatrickMcDonald/Akka.Logger.NLog,akkadotnet/Akka.Logger.NLog,Danthar/Akka.Logger.NLog | src/Akka.Logger.NLog/NLogLogger.cs | src/Akka.Logger.NLog/NLogLogger.cs | //-----------------------------------------------------------------------
// <copyright file="NLogLogger.cs" company="Akka.NET Project">
// Copyright (C) 2009-2016 Typesafe Inc. <http://www.typesafe.com>
// Copyright (C) 2013-2016 Akka.NET project <https://github.com/akkadotnet/akka.net>
// </copyright>
//----... | //-----------------------------------------------------------------------
// <copyright file="NLogLogger.cs" company="Akka.NET Project">
// Copyright (C) 2009-2016 Typesafe Inc. <http://www.typesafe.com>
// Copyright (C) 2013-2016 Akka.NET project <https://github.com/akkadotnet/akka.net>
// </copyright>
//----... | apache-2.0 | C# |
33aff2d13268f42f0c87317a2e6a8c5930bc1ac1 | Add overload for Write to bot. | Corniel/Arenaii | src/Arenaii/Platform/ConsoleBot.cs | src/Arenaii/Platform/ConsoleBot.cs | using Arenaii.Data;
using System;
using System.Diagnostics;
using System.IO;
using System.Threading;
using System.Threading.Tasks;
namespace Arenaii.Platform
{
public class ConsoleBot : IDisposable
{
public Bot Bot { get; protected set; }
private readonly Stopwatch Timer = new Stopwatch();
/// <summary>Star... | using Arenaii.Data;
using System;
using System.Diagnostics;
using System.IO;
using System.Threading;
using System.Threading.Tasks;
namespace Arenaii.Platform
{
public class ConsoleBot : IDisposable
{
public Bot Bot { get; protected set; }
private readonly Stopwatch Timer = new Stopwatch();
/// <summary>Star... | mit | C# |
e4e30b4e347f90d0868a3c741c739de5d13b3965 | Update DateTimeExtensions.cs | keith-hall/Extensions,keith-hall/Extensions | src/DateTimeExtensions.cs | src/DateTimeExtensions.cs | /// <summary>
/// Contains extension methods for working with <see cref="DateTime" />s.
/// </summary>
public static class DateTimeExtensions
{
/// <summary>
/// Converts the specified <see cref="DateTime"/> to a <see cref="String"/>, in ISO-8601 format.
/// </summary>
/// <param name="dt">The date to convert.</par... | /// <summary>
/// Contains extension methods for working with <see cref="DateTime" />s.
/// </summary>
public static class DateTimeExtensions
{
/// <summary>
/// Converts the specified <see cref="DateTime"/> to a <see cref="String"/>, in ISO-8601 format.
/// </summary>
/// <param name="dt">The date to convert.</par... | apache-2.0 | C# |
ef7f5b23990cee08d2c86ef4ce1a32e819bd9ef7 | revert last commit | zkweb-framework/ZKWeb,zkweb-framework/ZKWeb,zkweb-framework/ZKWeb,303248153/ZKWeb,zkweb-framework/ZKWeb,zkweb-framework/ZKWeb,zkweb-framework/ZKWeb | ZKWeb/ZKWeb.Hosting.AspNetCore/StartupBase.cs | ZKWeb/ZKWeb.Hosting.AspNetCore/StartupBase.cs | using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.PlatformAbstractions;
using System;
using System.IO;
using System.Threading.Tasks;
using ZKWebStandard.Ioc;
namespace ZKWeb.Hosting.AspNetCore {
/// <summary>
/// Base startup class for Asp.Net Core
/// </... | using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.PlatformAbstractions;
using System;
using System.IO;
using System.Threading.Tasks;
using ZKWebStandard.Ioc;
namespace ZKWeb.Hosting.AspNetCore {
/// <summary>
/// Base startup class for Asp.Net Core
/// </... | mit | C# |
3d54ad2ff473b58240f08505cd13efb205d2fbc8 | Rename SearchServiceOptions to SearchServiceFlags. | GetTabster/Tabster.Core | Plugins/ISearchService.cs | Plugins/ISearchService.cs | #region
using System;
#endregion
namespace Tabster.Core.Plugins
{
/// <summary>
/// Tab service which enables searching.
/// </summary>
public interface ISearchService
{
/// <summary>
/// Service name.
/// </summary>
string Name { get; }
... | #region
using System;
#endregion
namespace Tabster.Core.Plugins
{
/// <summary>
/// Tab service which enables searching.
/// </summary>
public interface ISearchService
{
/// <summary>
/// Service name.
/// </summary>
string Name { get; }
... | apache-2.0 | C# |
933d1a1b6dcf8cd9e534a1005611e79e1cf4f590 | Comment RPGStat | jkpenner/RPGSystemTutorial | Assets/Scripts/RPGSystems/RPGStat.cs | Assets/Scripts/RPGSystems/RPGStat.cs | using UnityEngine;
using System.Collections;
/// <summary>
/// The base class for all other Stats.
/// </summary>
[System.Serializable]
public class RPGStat {
/// <summary>
/// Used by the StatName Property
/// </summary>
[SerializeField]
private string _statName;
/// <summary>
/// Used b... | using UnityEngine;
using System.Collections;
public class RPGStat {
private string _statName;
private int _statBaseValue;
public string StatName {
get { return _statName; }
set { _statName = value; }
}
public virtual int StatValue {
get { return StatBaseValue; }
}
... | mit | C# |
42a49dd2e2f6f201cd4861bc4f5480cef4ceecdf | Update assembly info | arthurrump/4OpEenRijScreensaver | 4OpEenRijScreensaver/Properties/AssemblyInfo.cs | 4OpEenRijScreensaver/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Windows;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated w... | using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Windows;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated w... | mit | C# |
90dcbe9e33684cf05504de0e9ab22d939ad8d710 | Add other to the enum | ucdavis/Anlab,ucdavis/Anlab,ucdavis/Anlab,ucdavis/Anlab | Anlab.Core/Domain/TestItem.cs | Anlab.Core/Domain/TestItem.cs | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
namespace Anlab.Core.Domain
{
public class TestItem
{
[Key]
public int Id { get; set; }
[Required]
[StringLength(7)]
public string FeeSchedule { get; set; }
... | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
namespace Anlab.Core.Domain
{
public class TestItem
{
[Key]
public int Id { get; set; }
[Required]
[StringLength(7)]
public string FeeSchedule { get; set; }
... | mit | C# |
466563cf9fe02b49835346bf71edeee0014925e6 | Fix duplicated index fields | Alain-es/uDynamic,Alain-es/uDynamic,Alain-es/uDynamic | uDynamic/App_Code/Extensions/IListExtensions.cs | uDynamic/App_Code/Extensions/IListExtensions.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Umbraco.Core;
namespace uDynamic.Extensions
{
internal static class IListExtensions
{
public static void AddRangeUnique<T>(this IList<T> self, IEnumerable<T> items)
{
foreach (var item in it... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace uDynamic.Extensions
{
internal static class IListExtensions
{
public static void AddRangeUnique<T>(this IList<T> self, IEnumerable<T> items)
{
foreach (var item in items)
{
... | mit | C# |
faef1209619e54189f6c8b587a1b1a3af094627a | Improve test coverage for the AccountKey class | openchain/openchain | test/Openchain.Ledger.Tests/AccountKeyTests.cs | test/Openchain.Ledger.Tests/AccountKeyTests.cs | // Copyright 2015 Coinprism, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agree... | // Copyright 2015 Coinprism, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agree... | apache-2.0 | C# |
51d1cad33b4d26eb9d3d5ba41b699c40d8b4fdb1 | Fix bug in which class members polluted the surrounding namespace. | plioi/rook | src/Rook.Compiling/Syntax/Class.cs | src/Rook.Compiling/Syntax/Class.cs | using System.Collections.Generic;
using System.Linq;
using Parsley;
using Rook.Compiling.Types;
namespace Rook.Compiling.Syntax
{
public class Class : TypedSyntaxTree, Binding
{
public Position Position { get; private set; }
public Name Name { get; private set; }
public IEnumerable<Func... | using System.Collections.Generic;
using System.Linq;
using Parsley;
using Rook.Compiling.Types;
namespace Rook.Compiling.Syntax
{
public class Class : TypedSyntaxTree, Binding
{
public Position Position { get; private set; }
public Name Name { get; private set; }
public IEnumerable<Func... | mit | C# |
3309c8a02c17412b35a33149925cad31f29da3a7 | Use local function instead. | dlemstra/Magick.NET,dlemstra/Magick.NET | tests/Magick.NET.Tests/Coders/ThePangoCoder.cs | tests/Magick.NET.Tests/Coders/ThePangoCoder.cs | // Copyright 2013-2020 Dirk Lemstra <https://github.com/dlemstra/Magick.NET/>
//
// Licensed under the ImageMagick License (the "License"); you may not use this file except in
// compliance with the License. You may obtain a copy of the License at
//
// https://www.imagemagick.org/script/license.php
//
// Unless req... | // Copyright 2013-2020 Dirk Lemstra <https://github.com/dlemstra/Magick.NET/>
//
// Licensed under the ImageMagick License (the "License"); you may not use this file except in
// compliance with the License. You may obtain a copy of the License at
//
// https://www.imagemagick.org/script/license.php
//
// Unless req... | apache-2.0 | C# |
9e91fac4bdf433880137ac7b9ccc212cb310d9ed | Update ByteExtensions.cs | Flamtap/Flamtap | Flamtap/Flamtap/Extensions/ByteExtensions.cs | Flamtap/Flamtap/Extensions/ByteExtensions.cs | using System;
namespace Flamtap.Extensions
{
public static class ByteExtensions
{
public static byte ReadFirstNBits(this byte value, byte n)
{
if (n > 8)
throw new ArgumentException($"{nameof(n)} cannot be greater than 8.", nameof(n));
return (byte) (va... | using System;
namespace mcThings.Extensions
{
public static class ByteExtensions
{
public static byte ReadFirstNBits(this byte value, byte n)
{
if (n > 8)
throw new ArgumentException($"{nameof(n)} cannot be greater than 8.", nameof(n));
return (byte) (v... | mit | C# |
3368213acfc03fba855cd4f2814af51c8df67fee | fix file encode. | stu43005/KanColleViewer | Grabacr07.KanColleWrapper/Models/ShipSlot.cs | Grabacr07.KanColleWrapper/Models/ShipSlot.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Livet;
namespace Grabacr07.KanColleWrapper.Models
{
public class ShipSlot : NotificationObject
{
public SlotItem Item { get; private set; }
public int Maximum { get; private set; }
public bool... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Livet;
namespace Grabacr07.KanColleWrapper.Models
{
public class ShipSlot : NotificationObject
{
public SlotItem Item { get; private set; }
public int Maximum { get; private set; }
public bool... | mit | C# |
44c437983c43bc882fc8c434fb154db616ea5980 | Test for Jame's Github mirror | hzhgis/ss,HermanSchoenfeld/fluent-nhibernate,chester89/fluent-nhibernate,bogdan7/nhibernate,chester89/fluent-nhibernate,MiguelMadero/fluent-nhibernate,lingxyd/fluent-nhibernate,lingxyd/fluent-nhibernate,owerkop/fluent-nhibernate,hzhgis/ss,HermanSchoenfeld/fluent-nhibernate,oceanho/fluent-nhibernate,hzhgis/ss,bogdan7/nh... | src/CommonAssemblyInfo.cs | src/CommonAssemblyInfo.cs | using System.Reflection;
using System.Security;
[assembly: AssemblyVersion("0.1.0.0")]
[assembly: AssemblyCopyright("Copyright 2008-2009 James Gregory and contributors (Paul Batum, Andrew Stewart, Chad Myers, Hudson Akridge et al). All rights reserved.")]
[assembly: AssemblyProduct("Fluent NHibernate")]
[assembl... | using System.Reflection;
using System.Security;
[assembly: AssemblyVersion("0.1.0.0")]
[assembly: AssemblyCopyright("Copyright 2008-2009 James Gregory and contributors (Paul Batum, Andrew Stewart, Chad Myers et al). All rights reserved.")]
[assembly: AssemblyProduct("Fluent NHibernate")]
[assembly: AssemblyCompa... | bsd-3-clause | C# |
700951f4a308a3864e6944c3ea5c720877d3ffe9 | Disable IIS integration | ap0llo/SyncTool | src/SyncTool.WebUI/main/Program.cs | src/SyncTool.WebUI/main/Program.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Hosting;
namespace SyncTool.WebUI
{
public class Program
{
public static void Main(string[] args)
{
var host = new WebHostBuilder()
... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Hosting;
namespace SyncTool.WebUI
{
public class Program
{
public static void Main(string[] args)
{
var host = new WebHostBuilder()
... | mit | C# |
d40e7ad325a36b5eb13dea4d0fe99cd0c999cd32 | Update Version Number | RickDB/HyperionScreenCap,hanselb/HyperionScreenCap | HyperionScreenCap/Properties/AssemblyInfo.cs | HyperionScreenCap/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("HyperionScreenCap")]
[assembly: AssemblyD... | using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("HyperionScreenCap")]
[assembly: AssemblyD... | mit | C# |
ff918c8cc24f9b9bc3bc48f8ac3b673590256553 | use NRT | sharwell/roslyn,physhi/roslyn,KevinRansom/roslyn,sharwell/roslyn,eriawan/roslyn,wvdd007/roslyn,eriawan/roslyn,KevinRansom/roslyn,mavasani/roslyn,jasonmalinowski/roslyn,AmadeusW/roslyn,AmadeusW/roslyn,CyrusNajmabadi/roslyn,diryboy/roslyn,bartdesmet/roslyn,weltkante/roslyn,bartdesmet/roslyn,jasonmalinowski/roslyn,weltkan... | src/Features/Core/Portable/GenerateDefaultConstructors/GenerateDefaultConstructorsCodeRefactoringProvider.cs | src/Features/Core/Portable/GenerateDefaultConstructors/GenerateDefaultConstructorsCodeRefactoringProvider.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Composition;
using System.Diagnostics.CodeAnalysis;
using System.Threading.Tasks;
using Microsoft.Code... | // 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 disable
using System.Composition;
using System.Diagnostics.CodeAnalysis;
using System.Threading.Tasks;
u... | mit | C# |
7affe6f04ec975a67760a64f58ecf500a8afdf30 | Update TriggerOfT.cs | wieslawsoltes/AvaloniaBehaviors,XamlBehaviors/XamlBehaviors,wieslawsoltes/AvaloniaBehaviors,XamlBehaviors/XamlBehaviors | src/Avalonia.Xaml.Interactivity/TriggerOfT.cs | src/Avalonia.Xaml.Interactivity/TriggerOfT.cs | // Copyright (c) Wiesław Šoltés. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.ComponentModel;
namespace Avalonia.Xaml.Interactivity
{
/// <summary>
/// A base class for behaviors, implementing the basic p... | // Copyright (c) Wiesław Šoltés. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.ComponentModel;
namespace Avalonia.Xaml.Interactivity
{
/// <summary>
/// A base class for behaviors, implementing the basic p... | mit | C# |
a63a82772f6655c0c56099d2139978665187de1e | update viewimports | sgwzxg/Ixy,sgwzxg/Ixy,sgwzxg/Ixy,sgwzxg/Ixy,sgwzxg/Ixy | src/Ixy.Web/Areas/Backend/_ViewImports.cshtml | src/Ixy.Web/Areas/Backend/_ViewImports.cshtml | @using Ixy.Web
@using Ixy.Web.ViewModels.AccountViewModels
@using Ixy.Web.ViewModels.ManageViewModels
@using Microsoft.AspNetCore.Identity
@using Ixy.Core
@using Ixy.AppService;
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
| @using Ixy.Web
@using Ixy.Application.ViewModels.AccountViewModels
@using Ixy.Application.ViewModels.ManageViewModels
@using Microsoft.AspNetCore.Identity
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
| mit | C# |
814b92893770771ef3993b1b63d08908a0aa16a0 | Access allwed for all addresses (by CORS) | Krzyrok/FsxWebApi,Krzyrok/FsxWithGoogleMaps | FsxWebApi/FsxWebApi/Services/PlaneController.cs | FsxWebApi/FsxWebApi/Services/PlaneController.cs | namespace FsxWebApi.Services
{
using System.Web.Http.Cors;
using Infrastructure;
using Model;
using System.Web.Http;
[EnableCors(origins: "*", headers: "*", methods: "*")]
public class PlaneController : ApiController
{
private readonly FsxManager _fsxManager = new FsxManager();
... | namespace FsxWebApi.Services
{
using System.Web.Http.Cors;
using Infrastructure;
using Model;
using System.Web.Http;
[EnableCors(origins: "http://localhost:26759", headers: "*", methods: "*")]
public class PlaneController : ApiController
{
private readonly FsxManager _fsxManager = ... | mit | C# |
ae361010099074c897d12427508049c4ad50506e | Fix un bug qui faisait en sorte que le joueur restait dans l'équipe lorsqu'on le désélectionnait | Tri125/lama,Lan-Manager/lama | Lama/UI/UC/Creation/ParticipantsView.xaml.cs | Lama/UI/UC/Creation/ParticipantsView.xaml.cs | using System.Windows.Controls;
using System.Collections.ObjectModel;
using Lama.Logic.Model;
using System.Windows;
using Microsoft.Win32;
using System.IO;
using LamaBD.helper;
using LamaBD;
using System.Collections.Generic;
using System.Linq;
namespace Lama.UI.UC.Creation
{
/// <summary>
/// Logique d'interac... | using System.Windows.Controls;
using System.Collections.ObjectModel;
using Lama.Logic.Model;
using System.Windows;
using Microsoft.Win32;
using System.IO;
using LamaBD.helper;
using LamaBD;
using System.Collections.Generic;
using System.Linq;
namespace Lama.UI.UC.Creation
{
/// <summary>
/// Logique d'interac... | mit | C# |
aa37caf1328c324e27a8147bba1983b51162b3f3 | Use real equality instead of hash code for PropertyPath equality. Running the test code in NH-3638 demonstrates that the bug disappears with this change. No unit test committed since reproduction requires relatively complex long-running scenario. | nhibernate/nhibernate-core,fredericDelaporte/nhibernate-core,ngbrown/nhibernate-core,ngbrown/nhibernate-core,gliljas/nhibernate-core,RogerKratz/nhibernate-core,hazzik/nhibernate-core,hazzik/nhibernate-core,livioc/nhibernate-core,fredericDelaporte/nhibernate-core,alobakov/nhibernate-core,lnu/nhibernate-core,ngbrown/nhib... | src/NHibernate/Mapping/ByCode/PropertyPath.cs | src/NHibernate/Mapping/ByCode/PropertyPath.cs | using System;
using System.Reflection;
namespace NHibernate.Mapping.ByCode
{
public class PropertyPath
{
private readonly int hashCode;
private readonly MemberInfo localMember;
private readonly PropertyPath previousPath;
public PropertyPath(PropertyPath previousPath, MemberInfo localMember)
{
... | using System;
using System.Reflection;
namespace NHibernate.Mapping.ByCode
{
public class PropertyPath
{
private readonly int hashCode;
private readonly MemberInfo localMember;
private readonly PropertyPath previousPath;
public PropertyPath(PropertyPath previousPath, MemberInfo localMember)
{
... | lgpl-2.1 | C# |
45b6c2e25f134effe536e79125ca10c0d4cd9e3e | Add comment | tmat/roslyn,tannergooding/roslyn,KirillOsenkov/roslyn,jmarolf/roslyn,tmat/roslyn,genlu/roslyn,ErikSchierboom/roslyn,jasonmalinowski/roslyn,physhi/roslyn,KirillOsenkov/roslyn,tannergooding/roslyn,dotnet/roslyn,dotnet/roslyn,wvdd007/roslyn,AlekseyTs/roslyn,aelij/roslyn,aelij/roslyn,brettfo/roslyn,mgoertz-msft/roslyn,welt... | src/Workspaces/Core/Portable/CodeGeneration/NullableSyntaxAnnotation.cs | src/Workspaces/Core/Portable/CodeGeneration/NullableSyntaxAnnotation.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using Microsoft.CodeAnalysis.Editing;
namespace Microsoft.CodeAnalysis.CodeGeneration
{
/// <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.
namespace Microsoft.CodeAnalysis.CodeGeneration
{
/// <summary>
/// Annotation placed if the code generator... | mit | C# |
066ea7d6548dfbcf36fee32f008802d09886411f | Add XML comments for Note, add NoteAmount field | jzebedee/lcapi | LCAPI/LCAPI/Models/Note.cs | LCAPI/LCAPI/Models/Note.cs | using System;
using LCAPI.JSON;
namespace LendingClub.Models
{
/// <summary>
/// Details of a note owned by the investor
/// </summary>
public class Note
{
/// <summary>
/// Loan Status
/// </summary>
public string LoanStatus { get; set; }
/// <summ... | using System;
namespace LendingClub.Models
{
/// <summary>
/// Details of a note owned by the investor
/// </summary>
public class Note
{
public string LoanStatus { get; set; }
public long LoanId { get; set; }
public long NoteId { get; set; }
public string Gr... | agpl-3.0 | C# |
98632fc8153c99de14883c7a48ef0366702b4acd | upgrade C# | hahoyer/reni.cs,hahoyer/reni.cs,hahoyer/reni.cs | src/ReniUI/Test/Formatting/CommentsOfLists.cs | src/ReniUI/Test/Formatting/CommentsOfLists.cs | using hw.UnitTest;
namespace ReniUI.Test.Formatting;
[UnitTest]
[Lists]
public class CommentsOfLists : DependenceProvider
{
[UnitTest]
public void ComplexText1()
{
const string text =
@"#( asdf )# head
#( asdf)# comment )# waggon
";
const string expectedText =
@"#( ... | using hw.UnitTest;
namespace ReniUI.Test.Formatting
{
[UnitTest]
[Lists]
public class CommentsOfLists : DependenceProvider
{
[UnitTest]
public void ComplexText1()
{
const string text =
@"#( asdf )# head
#( asdf)# comment )# waggon
";
const... | mit | C# |
1b8012dfe591ccf0933172276dfbdad582523866 | Remove redundant login widget in page | ParcelForMe/p4m-demo-shop,ParcelForMe/p4m-demo-shop,ParcelForMe/p4m-demo-shop,ParcelForMe/p4m-demo-shop | OpenOrderFramework/Views/P4M/P4MCheckout.cshtml | OpenOrderFramework/Views/P4M/P4MCheckout.cshtml | @model OpenOrderFramework.Models.Order
@{
ViewBag.Title = "P4MCheckout";
}
<link rel="import" href="/Scripts/widgets/p4m-checkout/p4m-checkout.html">
<link rel="import" href="/Scripts/widgets/p4m-login/p4m-login.html">
<h2>Parcel For Me</h2>
<p4m-checkout></p4m-checkout> | @model OpenOrderFramework.Models.Order
@{
ViewBag.Title = "P4MCheckout";
}
<link rel="import" href="/Scripts/widgets/p4m-checkout/p4m-checkout.html">
<link rel="import" href="/Scripts/widgets/p4m-login/p4m-login.html">
<h2>Parcel For Me</h2>
<p4m-login></p4m-login>
<p4m-checkout></p4m-checkout> | mit | C# |
be82d0df867912239ecb48d4ef74dda3e66b571f | Add default value for frame in constructor | EasyPeasyLemonSqueezy/MadCat | MadCat/NutEngine/Sprite.cs | MadCat/NutEngine/Sprite.cs | using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace NutEngine
{
public class Sprite : Node, IDrawable
{
public Texture2D Atlas { get; }
public Rectangle? Frame { get; set; }
public Color Color { get; set; }
public Vector2 Origin { get; set; }
... | using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace NutEngine
{
public class Sprite : Node, IDrawable
{
public Texture2D Atlas { get; }
public Rectangle? Frame { get; set; }
public Color Color { get; set; }
public Vector2 Origin { get; set; }
... | mit | C# |
47be8207d5f1da234ceb3f1635ea32ab6b8f1632 | update task | zhouyongtao/my_aspnetmvc_learning,zhouyongtao/my_aspnetmvc_learning | my_aspnetmvc_learning/Controllers/TaskController.cs | my_aspnetmvc_learning/Controllers/TaskController.cs | using NLog;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using System.Web;
using System.Web.Mvc;
namespace my_aspnetmvc_learning.Controllers
{
public class TaskController : Controller
{
private static readonly Logger logger = LogMana... | using NLog;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using System.Web;
using System.Web.Mvc;
namespace my_aspnetmvc_learning.Controllers
{
public class TaskController : Controller
{
private static readonly Logger logger = LogMana... | mit | C# |
126258b62da1a790015b4122deb415f00bb03fed | connect gesture fix | ezg/PanoramicDataWin8,ezg/PanoramicDataWin8 | PanoramicDataWin8/view/inq/ConnectGesture.cs | PanoramicDataWin8/view/inq/ConnectGesture.cs | using System.Linq;
using PanoramicDataWin8.model.view;
using PanoramicDataWin8.utils;
using PanoramicDataWin8.view.vis;
namespace PanoramicDataWin8.view.inq
{
public class ConnectGesture : IGesture
{
private InkableScene _inkableScene = null;
public ConnectGesture(InkableScene inkableScene)
... | using System.Linq;
using PanoramicDataWin8.model.view;
using PanoramicDataWin8.utils;
using PanoramicDataWin8.view.vis;
namespace PanoramicDataWin8.view.inq
{
public class ConnectGesture : IGesture
{
private InkableScene _inkableScene = null;
public ConnectGesture(InkableScene inkableScene)
... | apache-2.0 | C# |
50e6da312319385b842347a0e917cf7f13d13f94 | Fix compilation error | red-gate/RedGate.AppHost | RedGate.AppHost.Server/ChildProcessHandle.cs | RedGate.AppHost.Server/ChildProcessHandle.cs | using System;
using System.Diagnostics;
using System.Runtime.Remoting;
using System.Windows;
using RedGate.AppHost.Interfaces;
using RedGate.AppHost.Remoting.WPF;
namespace RedGate.AppHost.Server
{
internal class ChildProcessHandle : IChildProcessHandle
{
private readonly ISafeChildProcessH... | using System;
using System.Diagnostics;
using System.Runtime.Remoting;
using System.Windows;
using RedGate.AppHost.Interfaces;
using RedGate.AppHost.Remoting.WPF;
namespace RedGate.AppHost.Server
{
internal class ChildProcessHandle : IChildProcessHandle
{
private readonly ISafeChildProcessH... | apache-2.0 | C# |
e136f72c8ec8cae0e3e43ec057eeabc38e33b249 | Fix incorrect access definitions | NeoAdonis/osu,peppy/osu,2yangk23/osu,ppy/osu,smoogipooo/osu,ppy/osu,UselessToucan/osu,NeoAdonis/osu,2yangk23/osu,UselessToucan/osu,EVAST9919/osu,EVAST9919/osu,smoogipoo/osu,ZLima12/osu,UselessToucan/osu,smoogipoo/osu,smoogipoo/osu,NeoAdonis/osu,johnneijzen/osu,ZLima12/osu,ppy/osu,peppy/osu,johnneijzen/osu,peppy/osu,pep... | osu.Game.Tournament.Tests/TestCaseBeatmapPanel.cs | osu.Game.Tournament.Tests/TestCaseBeatmapPanel.cs | // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Game.Beatmaps;
using osu.Game.Online.API;
using osu.Game.Online.API.Requests;
using osu.Game.Onli... | // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Game.Beatmaps;
using osu.Game.Online.API;
using osu.Game.Online.API.Requests;
using osu.Game.Onli... | mit | C# |
92106622d61ace42f10f7961562acd9e680a3189 | test PDF func | GusJassal/agri-nmp,GusJassal/agri-nmp,GusJassal/agri-nmp,GusJassal/agri-nmp | Server/src/SERVERAPI/Views/Home/Print.cshtml | Server/src/SERVERAPI/Views/Home/Print.cshtml |
@{
ViewBag.Title = "Print";
}
<!-- BODY CONTENT -->
<div id="topicTemplate" class="template container gov-container">
<!-- PAGE CONTENT -->
<div class="row">
<div id="main-content" class="contentPageMainColumn col-xs-12">
<h3>Print Information</h3>
<div>
... |
@{
ViewBag.Title = "Print";
}
<!-- BODY CONTENT -->
<div id="topicTemplate" class="template container gov-container">
<!-- PAGE CONTENT -->
<div class="row">
<div id="main-content" class="contentPageMainColumn col-xs-12">
<h3>Print Information</h3>
<div>
... | apache-2.0 | C# |
38fa56fdd5c749377f69d0f0ce7b2792613b0d62 | remove commented out code | yfann/AuthorizationServer,s093294/Thinktecture.AuthorizationServer,s093294/Thinktecture.AuthorizationServer,IdentityModel/AuthorizationServer,yfann/AuthorizationServer,IdentityModel/AuthorizationServer | source/WebHost/Areas/Admin/Api/CertificateController.cs | source/WebHost/Areas/Admin/Api/CertificateController.cs | using System;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using Thinktecture.AuthorizationServer.Interfaces;
using Thinktecture.AuthorizationServer.Models;
using Thinktecture.AuthorizationServer.WebHost.Areas.Admin.Api.Formatters;
using Thinktecture.AuthorizationServer.WebHost.Ar... | using System;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using Thinktecture.AuthorizationServer.Interfaces;
using Thinktecture.AuthorizationServer.Models;
using Thinktecture.AuthorizationServer.WebHost.Areas.Admin.Api.Formatters;
using Thinktecture.AuthorizationServer.WebHost.Ar... | bsd-3-clause | C# |
28a6b6bc81037a5677208c84ccfccf29c5ba8faf | Include capture | DragonSpark/Framework,DragonSpark/Framework,DragonSpark/Framework,DragonSpark/Framework | DragonSpark.Presentation/Text/MarkDownify.cs | DragonSpark.Presentation/Text/MarkDownify.cs | using DragonSpark.Model.Selection;
using Markdig;
using Microsoft.AspNetCore.Components;
using System.Text.RegularExpressions;
namespace DragonSpark.Presentation.Text;
sealed class MarkDownify : ISelect<string, MarkupString>
{
readonly Regex _expression;
readonly string _replace;
public static MarkDownify Defaul... | using DragonSpark.Model.Selection;
using Markdig;
using Microsoft.AspNetCore.Components;
using System.Text.RegularExpressions;
namespace DragonSpark.Presentation.Text;
sealed class MarkDownify : ISelect<string, MarkupString>
{
readonly Regex _expression;
readonly string _replace;
public static MarkDownify Defaul... | mit | C# |
6285a094743f55debd7149aeb2dbc99f63f21fa8 | Fix internal field name | NServiceBusSqlPersistence/NServiceBus.SqlPersistence | src/AcceptanceTestHelper/EndpointConfigurationExtensions.cs | src/AcceptanceTestHelper/EndpointConfigurationExtensions.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using NServiceBus;
using NServiceBus.Configuration.AdvancedExtensibility;
public static class EndpointConfigurationExtensions
{
public static List<Type> ScannedTypes(this EndpointConfiguration configuration)
{
v... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using NServiceBus;
using NServiceBus.Configuration.AdvancedExtensibility;
public static class EndpointConfigurationExtensions
{
public static List<Type> ScannedTypes(this EndpointConfiguration configuration)
{
v... | mit | C# |
6cec6788bc67b9758a528487f03b3304dd6c1c88 | Change Yeast.Modules ServiceCollectionExtensions namespace | YeastFx/Yeast | src/Yeast.Modules/Extensions/ServiceCollectionExtensions.cs | src/Yeast.Modules/Extensions/ServiceCollectionExtensions.cs | using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using System;
namespace Yeast.Modules
{
/// <summary>
/// Contains extension methods to <see cref="IServiceCollection"/> for using modules
/// </summary>
public static class ServiceCollectionExtensions
{
//... | using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using System;
namespace Yeast.Modules.Extensions
{
/// <summary>
/// Contains extension methods to <see cref="IServiceCollection"/> for using modules
/// </summary>
public static class ServiceCollectionExtensions
{... | mit | C# |
f075c029543cde6ef31eac4536f390fd181dfa83 | Fix copyright notice in AssemblyInfo | Majiir/GeodesicGrid | Properties/AssemblyInfo.cs | Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Ge... | 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("Ge... | bsd-2-clause | C# |
a4ac85e422caba78b0cd4715a156c8686e6ecb57 | order serialization bug fixed | rachmann/qboAccess,rachmann/qboAccess,rachmann/qboAccess | src/QuickBooksOnlineAccess/Models/CreateOrders/Order.cs | src/QuickBooksOnlineAccess/Models/CreateOrders/Order.cs | using System;
using System.Collections.Generic;
using QuickBooksOnlineAccess.Misc;
namespace QuickBooksOnlineAccess.Models.CreateOrders
{
public class Order : IManualSerializable
{
public string ToJson()
{
try
{
var res = String.Format( "{{DocNumber:{0}, CustomerId:{1}, CustomerName:{2}, TnxDate:{3}, ... | using System;
using System.Collections.Generic;
using QuickBooksOnlineAccess.Misc;
namespace QuickBooksOnlineAccess.Models.CreateOrders
{
public class Order : IManualSerializable
{
public string ToJson()
{
try
{
var res = String.Format( "{{DocNumber:{0}, CustomerId:{1}, CustomerName:{2}, TnxDate:{3}, ... | bsd-3-clause | C# |
1296a0c11d2773fb6986e949e458ff75b208bab3 | Bump version for last patch | pluralsight/git-switch | GitSwitch/Properties/AssemblyInfo.cs | GitSwitch/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTi... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTi... | mit | C# |
21ed9df1ea49fe4c97b9156f737ab62adea4711d | Add xmldoc for OnBackButton | ppy/osu,peppy/osu,smoogipoo/osu,ppy/osu,smoogipooo/osu,smoogipoo/osu,UselessToucan/osu,peppy/osu,ppy/osu,UselessToucan/osu,peppy/osu,NeoAdonis/osu,NeoAdonis/osu,NeoAdonis/osu,UselessToucan/osu,smoogipoo/osu,peppy/osu-new | osu.Game/Screens/IOsuScreen.cs | osu.Game/Screens/IOsuScreen.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Bindables;
using osu.Framework.Screens;
using osu.Game.Beatmaps;
using osu.Game.Overlays;
using osu.Game.Rulesets;
namespace osu.Game.Screens
{
p... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Bindables;
using osu.Framework.Screens;
using osu.Game.Beatmaps;
using osu.Game.Overlays;
using osu.Game.Rulesets;
namespace osu.Game.Screens
{
p... | mit | C# |
9333f8d104605a249265ae2f17ccfd2a2de2ea90 | Fix Disk_Read_Write unit test | mbdavid/LiteDB | LiteDB.Tests/Internals/Disk_Tests.cs | LiteDB.Tests/Internals/Disk_Tests.cs | using System.IO;
using System.Collections.Generic;
using FluentAssertions;
using LiteDB.Engine;
using Xunit;
namespace LiteDB.Internals
{
public class Disk_Tests
{
[Fact]
public void Disk_Read_Write()
{
var settings = new EngineSettings
{
MemoryS... | using System.IO;
using System.Collections.Generic;
using FluentAssertions;
using LiteDB.Engine;
using Xunit;
namespace LiteDB.Internals
{
public class Disk_Tests
{
[Fact]
public void Disk_Read_Write()
{
var settings = new EngineSettings
{
MemoryS... | mit | C# |
0f5449dddf776f1f9d216d0c9592122985eb331c | Switch to BarcodeWriter for ZXing.Net compat | Redth/ZXing.Net.Mobile | Source/ZXing.Net.Mobile.iOS/BarcodeWriter.cs | Source/ZXing.Net.Mobile.iOS/BarcodeWriter.cs | /*
* Copyright 2012 ZXing.Net 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 required by applicable law or ag... | /*
* Copyright 2012 ZXing.Net 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 required by applicable law or ag... | apache-2.0 | C# |
234b8045785a57f5a62214f93c902c6f7f4676d5 | rename init() to startThread() | yasokada/unity-150917-udpEmu,yasokada/unity-150829-udpEcho | Assets/UdpEchoServer.cs | Assets/UdpEchoServer.cs | using UnityEngine;
using System.Collections;
using UnityEngine.UI; // for Text
using System;
using System.Text;
using System.Net;
using System.Net.Sockets;
using System.Threading;
/*
* v0.1 2015/08/29
* following features have been implemented.
* - delay before echo back
* - echo back
*/
public class Udp... | using UnityEngine;
using System.Collections;
using UnityEngine.UI; // for Text
using System;
using System.Text;
using System.Net;
using System.Net.Sockets;
using System.Threading;
/*
* v0.1 2015/08/29
* following features have been implemented.
* - delay before echo back
* - echo back
*/
public class Udp... | mit | C# |
64c5d352a3c671f7eecb0c66eddb9a9d62f9927b | Increment assembly version to 1.1.2 | jasonmcboyd/Treenumerable | Source/Treenumerable/Properties/AssemblyInfo.cs | Source/Treenumerable/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Resources;
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.Reflection;
using System.Resources;
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# |
5828b5e6f8d6a26231035048db0c7a88c9389d52 | Add Id to ForwardRegistration | mycroes/SupportManager,mycroes/SupportManager,mycroes/SupportManager | SupportManager.Api/Teams/ForwardRegistration.cs | SupportManager.Api/Teams/ForwardRegistration.cs | using System;
using SupportManager.Api.Users;
namespace SupportManager.Api.Teams
{
public class ForwardRegistration
{
public int Id { get; set; }
public User User { get; set; }
public PhoneNumber PhoneNumber { get; set; }
public DateTimeOffset When { get; set; }
}
} | using System;
using SupportManager.Api.Users;
namespace SupportManager.Api.Teams
{
public class ForwardRegistration
{
public User User { get; set; }
public PhoneNumber PhoneNumber { get; set; }
public DateTimeOffset When { get; set; }
}
} | mit | C# |
fe7dfebe956cbf7af8e8dafe4ddef3f6468c1dc8 | use toLanguageTag | NDark/ndinfrastructure,NDark/ndinfrastructure | Unity/Platform/Region/Plugins/PlatformRegion.cs | Unity/Platform/Region/Plugins/PlatformRegion.cs | /**
MIT License
Copyright (c) 2017 - 2021 NDark
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish... | /**
MIT License
Copyright (c) 2017 - 2021 NDark
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish... | mit | C# |
1dd4ce922e7d28038605a4476dce207f1440122f | remove the noise while running nunit from console | Hitcents/Xamarin.Forms,Hitcents/Xamarin.Forms,Hitcents/Xamarin.Forms | Xamarin.Forms.Core.UnitTests/BaseTestFixture.cs | Xamarin.Forms.Core.UnitTests/BaseTestFixture.cs | using System;
using System.Globalization;
using System.Threading;
using NUnit.Framework;
namespace Xamarin.Forms.Core.UnitTests
{
public class BaseTestFixture
{
[SetUp]
public virtual void Setup ()
{
#if !WINDOWS_PHONE
var culture = Environment.GetEnvironmentVariable ("UNIT_TEST_CULTURE");
if (!stri... | using System;
using System.Globalization;
using System.Threading;
using NUnit.Framework;
using NUnit.Framework.Constraints;
namespace Xamarin.Forms.Core.UnitTests
{
public class BaseTestFixture
{
[SetUp]
public virtual void Setup ()
{
#if !WINDOWS_PHONE
var culture = Environment.GetEnvironmentVariable ("UN... | mit | C# |
87a740de156ad8fdc7716e1fff944a99e4bf822f | Fix problem of cursor disappearing after closing menu | mysticfall/Alensia | Assets/Alensia/Core/Control/PlayerController.cs | Assets/Alensia/Core/Control/PlayerController.cs | using System.Collections.Generic;
using System.Linq;
using Alensia.Core.Character;
using Alensia.Core.Common;
using UniRx;
using UnityEngine.Assertions;
using Zenject;
namespace Alensia.Core.Control
{
public class PlayerController : Controller, IPlayerController
{
public const string PlayerAliasName =... | using System.Collections.Generic;
using System.Linq;
using Alensia.Core.Character;
using Alensia.Core.Common;
using UniRx;
using UnityEngine.Assertions;
using Zenject;
namespace Alensia.Core.Control
{
public class PlayerController : Controller, IPlayerController
{
public const string PlayerAliasName =... | apache-2.0 | C# |
b5ebd14589a5473b04023d67e0b1b5e5d131cd79 | Fix NRE in BaseService.StopAsync | btcpayserver/btcpayserver,btcpayserver/btcpayserver,btcpayserver/btcpayserver,btcpayserver/btcpayserver | BTCPayServer/HostedServices/BaseAsyncService.cs | BTCPayServer/HostedServices/BaseAsyncService.cs | using System;
using System.Runtime.CompilerServices;
using System.Threading;
using System.Threading.Tasks;
using BTCPayServer.Logging;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
namespace BTCPayServer.HostedServices
{
public abstract class BaseAsyncService : IHostedService
{
... | using System;
using System.Runtime.CompilerServices;
using System.Threading;
using System.Threading.Tasks;
using BTCPayServer.Logging;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
namespace BTCPayServer.HostedServices
{
public abstract class BaseAsyncService : IHostedService
{
... | mit | C# |
452a8c3296a3fb8173b91df0b2b5f9d266087884 | Improve specs | OlegAxenow/Method.Injection | Method.Inject.Spec/MethodBuilderRegistrySpec.cs | Method.Inject.Spec/MethodBuilderRegistrySpec.cs | using System.Collections.Generic;
using Method.Inject.Spec.Injections;
using NUnit.Framework;
namespace Method.Inject.Spec
{
[TestFixture]
public class MethodBuilderRegistrySpec
{
[Test]
public void Registered_builders_should_be_returned()
{
// arrange
ResetRegistry();
// act
var methodBuild... | using System.Collections.Generic;
using Method.Inject.Spec.Injections;
using NUnit.Framework;
namespace Method.Inject.Spec
{
[TestFixture]
public class MethodBuilderRegistrySpec
{
[Test]
public void Registered_builders_should_be_returned()
{
// arrange
MethodBuilderRegistry.Clear();
MethodBuilderRe... | mit | C# |
f42fa5942fac2cf72615edb7a5ba10f6ef079238 | Update NumericalFilter.cs | Facepunch/Facepunch.Steamworks,Facepunch/Facepunch.Steamworks,Facepunch/Facepunch.Steamworks | Facepunch.Steamworks/Structs/NumericalFilter.cs | Facepunch.Steamworks/Structs/NumericalFilter.cs | namespace Steamworks.Data
{
struct NumericalFilter
{
public string Key { get; internal set; }
public int Value { get; internal set; }
public LobbyComparison Comparer { get; internal set; }
internal NumericalFilter ( string k, int v, LobbyComparison c )
{
Key = k;
Value = v;
Comparer = c;
}
}
}... | using System;
using System.Collections.Generic;
using System.Text;
namespace Steamworks.Data
{
struct NumericalFilter
{
public string Key { get; internal set; }
public int Value { get; internal set; }
public LobbyComparison Comparer { get; internal set; }
internal NumericalFilter ( string k, int v, LobbyCo... | mit | C# |
56ccc1086f656e92431c3c26f36cc19922835ee8 | Add [KnownType(typeof(Dictionary<string,object>))] to allow for Object mapping to be passed over WCF channel | NumbersInternational/CefSharp,zhangjingpu/CefSharp,zhangjingpu/CefSharp,Livit/CefSharp,twxstar/CefSharp,jamespearce2006/CefSharp,ITGlobal/CefSharp,zhangjingpu/CefSharp,Octopus-ITSM/CefSharp,rlmcneary2/CefSharp,illfang/CefSharp,ruisebastiao/CefSharp,Livit/CefSharp,ITGlobal/CefSharp,battewr/CefSharp,AJDev77/CefSharp,rove... | CefSharp/JavascriptResponse.cs | CefSharp/JavascriptResponse.cs | using System.Collections.Generic;
using System.Runtime.Serialization;
namespace CefSharp
{
[DataContract]
[KnownType(typeof(object[]))]
[KnownType(typeof(Dictionary<string,object>))]
public class JavascriptResponse
{
[DataMember]
public string Message { get; set; }
[DataMember]
public bool Success { get... | using System.Runtime.Serialization;
namespace CefSharp
{
[DataContract]
[KnownType(typeof(object[]))]
public class JavascriptResponse
{
[DataMember]
public string Message { get; set; }
[DataMember]
public bool Success { get; set; }
[DataMember]
public object Result { get; set; }
}
}
| bsd-3-clause | C# |
28675a5883edce39a84ea05d57ea66dd2d025870 | Fix TeachersQuery | roman-yagodin/R7.University,roman-yagodin/R7.University,roman-yagodin/R7.University | R7.University.Employees/Queries/TeachersQuery.cs | R7.University.Employees/Queries/TeachersQuery.cs | //
// TeachersQuery.cs
//
// Author:
// Roman M. Yagodin <roman.yagodin@gmail.com>
//
// Copyright (c) 2016-2018 Roman M. Yagodin
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Fou... | //
// TeachersQuery.cs
//
// Author:
// Roman M. Yagodin <roman.yagodin@gmail.com>
//
// Copyright (c) 2016-2018 Roman M. Yagodin
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Fou... | agpl-3.0 | C# |
b5536230b799ef72f3908f25945fc687123f6091 | Make the OnMouseMove method abstract for BasePaintBrush. | jakeclawson/Pinta,PintaProject/Pinta,Fenex/Pinta,jakeclawson/Pinta,Mailaender/Pinta,Fenex/Pinta,PintaProject/Pinta,PintaProject/Pinta,Mailaender/Pinta | Pinta.Core/Classes/BasePaintBrush.cs | Pinta.Core/Classes/BasePaintBrush.cs | //
// BasePaintBrush.cs
//
// Author:
// Aaron Bockover <abockover@novell.com>
//
// Copyright (c) 2010 Novell, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without re... | //
// BasePaintBrush.cs
//
// Author:
// Aaron Bockover <abockover@novell.com>
//
// Copyright (c) 2010 Novell, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without re... | mit | C# |
deecdc122a01aa3291cf41092d7c21002b347ebd | fix #2927. Avoid throwing WarningException by skip call gitPreparer when building a tagged version. | GitTools/GitVersion,asbjornu/GitVersion,gep13/GitVersion,asbjornu/GitVersion,GitTools/GitVersion,gep13/GitVersion | src/GitVersion.Core/Core/GitVersionCalculateTool.cs | src/GitVersion.Core/Core/GitVersionCalculateTool.cs | using GitVersion.Extensions;
using GitVersion.Logging;
using GitVersion.OutputVariables;
using GitVersion.VersionCalculation;
using GitVersion.VersionCalculation.Cache;
using Microsoft.Extensions.Options;
namespace GitVersion;
public class GitVersionCalculateTool : IGitVersionCalculateTool
{
private readonly ILog... | using GitVersion.Extensions;
using GitVersion.Logging;
using GitVersion.OutputVariables;
using GitVersion.VersionCalculation;
using GitVersion.VersionCalculation.Cache;
using Microsoft.Extensions.Options;
namespace GitVersion;
public class GitVersionCalculateTool : IGitVersionCalculateTool
{
private readonly ILog... | mit | C# |
7b5db0b952b870df44389b05bee31538ea64471f | update app | BandToThePole/MobileApp | CrossPlatform/BTTP/App.xaml.cs | CrossPlatform/BTTP/App.xaml.cs | using System;
using System.Threading.Tasks;
using Xamarin.Forms;
namespace BTTP
{
public partial class App : Application
{
public static RestService RestService { get; private set; }
public App()
{
InitializeComponent();
RestService = new RestService();
... | using System;
using System.Threading.Tasks;
using Xamarin.Forms;
namespace BTTP
{
public partial class App : Application
{
public static RestService RestService { get; private set; }
public App()
{
InitializeComponent();
RestService = new RestService();
... | apache-2.0 | C# |
30208098226fce123def7c9b29807a1ac009b9de | add id | signumsoftware/framework,signumsoftware/extensions,MehdyKarimpour/extensions,AlejandroCano/extensions,AlejandroCano/extensions,signumsoftware/framework,MehdyKarimpour/extensions,signumsoftware/extensions | Signum.Engine.Extensions/RestLog/RestLogLogic.cs | Signum.Engine.Extensions/RestLog/RestLogLogic.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using Signum.Engine.DynamicQuery;
using Signum.Engine.Maps;
using Signum.Entities.Basics;
using Signum.Entities.RestLog;
namespace Signum.Engine.RestLog
{
publi... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using Signum.Engine.DynamicQuery;
using Signum.Engine.Maps;
using Signum.Entities.Basics;
using Signum.Entities.RestLog;
namespace Signum.Engine.RestLog
{
publi... | mit | C# |
e3ebb3b084cdbebdc269d7c6a52dffbec3eb1e64 | fix server | NTumbleBit/NTumbleBit,DanGould/NTumbleBit | NTumbleBit.ClassicTumbler.Server.CLI/Program.cs | NTumbleBit.ClassicTumbler.Server.CLI/Program.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using NBitcoin;
using Microsoft.Extensions.Logging.Console;
using Microsoft.Extensions.Logging;
using NTumbleBit.Services;
usin... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using NBitcoin;
using Microsoft.Extensions.Logging.Console;
using Microsoft.Extensions.Logging;
using NTumbleBit.Services;
usin... | mit | C# |
99ea66d9f15d5db215af041583b252996072b53f | Update _20151230_05_Create_Indexes_For_AbpOrganizationUnits.cs | lemestrez/module-zero,aspnetboilerplate/module-zero,ilyhacker/module-zero,abdllhbyrktr/module-zero,lemestrez/module-zero | src/Abp.Zero.NHibernate/Zero/FluentMigrator/Migrations/_20151230_05_Create_Indexes_For_AbpOrganizationUnits.cs | src/Abp.Zero.NHibernate/Zero/FluentMigrator/Migrations/_20151230_05_Create_Indexes_For_AbpOrganizationUnits.cs | using FluentMigrator;
namespace Abp.Zero.FluentMigrator.Migrations
{
[Migration(2015123005)]
public class _20151230_05_Create_Indexes_For_AbpOrganizationUnits : AutoReversingMigration
{
public override void Up()
{
Create.Index("IX_TenantId_ParentId")
.OnTable("Ab... | using FluentMigrator;
namespace Abp.Zero.FluentMigrator.Migrations
{
[Migration(2015123005)]
public class _20151230_05_Create_Indexes_For_AbpOrganizationUnits : AutoReversingMigration
{
public override void Up()
{
Create.Index("IX_TenantId_Code")
.OnTable("AbpOrg... | mit | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.