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 |
|---|---|---|---|---|---|---|---|---|
76ffc24841745fd92b4b84f495d6dd37d4ab5aec | add experimental unused types | glorylo/Joyride | Joyride.Specflow/Configuration/JoyrideConfig.cs | Joyride.Specflow/Configuration/JoyrideConfig.cs | using System.Configuration;
namespace Joyride.Specflow.Configuration
{
public class JoyrideConfig : ConfigurationSection
{
private static readonly JoyrideConfig _settings = ConfigurationManager.GetSection("joyride") as JoyrideConfig;
public static JoyrideConfig Settings { get { return _setti... | using System;
using System.Collections.Specialized;
using System.Configuration;
using System.Runtime.InteropServices.ComTypes;
namespace Joyride.Specflow.Configuration
{
public class JoyrideConfig : ConfigurationSection
{
private static readonly JoyrideConfig _settings = ConfigurationManager.GetSecti... | bsd-3-clause | C# |
fe744632e8e79b664ffccee8a7388ace5e739230 | Add docs | yishn/GTPWrapper | GTPWrapper/Sgf/GoExtensions.cs | GTPWrapper/Sgf/GoExtensions.cs | using GTPWrapper.DataTypes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace GTPWrapper.Sgf {
public static class GoExtensions {
/// <summary>
/// Converts given vertex on given board into SGF coordinates.
/// </s... | using GTPWrapper.DataTypes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace GTPWrapper.Sgf {
public static class GoExtensions {
public static string VertexToSgf(this Board board, Vertex vertex) {
if (vertex == Vertex... | mit | C# |
a784181bbdedd8c10778d4551130f69aa3b204cc | Add InvokerParameterNameAttribute | danielwertheim/Ensure.That,danielwertheim/Ensure.That | src/projects/EnsureThat/Annotations/JetBrains.cs | src/projects/EnsureThat/Annotations/JetBrains.cs | /* MIT License
Copyright (c) 2016 JetBrains http://www.jetbrains.com
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, mo... | /* MIT License
Copyright (c) 2016 JetBrains http://www.jetbrains.com
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, mo... | mit | C# |
019535f57162d13d29e7a9c92c2213365cf27f2c | Update IntuitionB.cs | Keripo/fgo-data | webservice/src/Models/Data/ActiveSkills/IntuitionB.cs | webservice/src/Models/Data/ActiveSkills/IntuitionB.cs | using FGOData.Models.Serialization;
using System.Collections.Generic;
namespace FGOData.Models.Data
{
public class IntuitionB : ActiveSkill
{
public IntuitionB()
{
Name_EN = "Intuition B";
Name_JP = "直感 B";
Cooldown = 7;
Effects = new List<Effect>... | using FGOData.Models.Serialization;
using System.Collections.Generic;
namespace FGOData.Models.Data
{
public class IntuitionB : ActiveSkill
{
public IntuitionB()
{
Name_EN = "Intuition B";
Name_JP = "直感 B";
Cooldown = 7;
RequiredAscension = 1;
... | apache-2.0 | C# |
b113d9954476c1a24f881973cb1b982f934edbb7 | fix typo in FaultSetCollection | maul-esel/ssharp,isse-augsburg/ssharp,isse-augsburg/ssharp,maul-esel/ssharp,isse-augsburg/ssharp,isse-augsburg/ssharp,maul-esel/ssharp,isse-augsburg/ssharp,maul-esel/ssharp | Source/SafetySharp/Analysis/FaultSetCollection.cs | Source/SafetySharp/Analysis/FaultSetCollection.cs | using System.Collections.Generic;
using System.Linq;
using SafetySharp.Runtime;
namespace SafetySharp.Analysis
{
class FaultSetCollection
{
private readonly int numFaults;
private readonly HashSet<FaultSet>[] elementsByCardinality;
public FaultSetCollection(int numFaults)
{
this.numFaults = numFaults;
... | using System.Collections.Generic;
using System.Linq;
using SafetySharp.Runtime;
namespace SafetySharp.Analysis
{
class FaultSetCollection
{
private readonly int numFaults;
private readonly HashSet<FaultSet>[] elementsByCardinality;
public FaultSetCollection(int numFaults)
{
this.numFaults = numFaults;
... | mit | C# |
e85aa4c645e3e75d26b4b478500440b52dce4fe1 | Fix ProfilingEventEndArgs.Success inversion | bungeemonkee/Utilitron | Utilitron/Data/Profiling/ProfilingEventEndArgs.cs | Utilitron/Data/Profiling/ProfilingEventEndArgs.cs | using System;
namespace Utilitron.Data.Profiling
{
public class ProfilingEventEndArgs<T>: ProfilingEventStartArgs<T>
{
public readonly DateTimeOffset EndTime;
public readonly Exception Exception;
public TimeSpan Duration => EndTime - StartTime;
public bool Success => Exceptio... | using System;
namespace Utilitron.Data.Profiling
{
public class ProfilingEventEndArgs<T>: ProfilingEventStartArgs<T>
{
public readonly DateTimeOffset EndTime;
public readonly Exception Exception;
public TimeSpan Duration => EndTime - StartTime;
public bool Success => Exceptio... | mit | C# |
f56cc5371ca05303615feebfbe5392c8120b1783 | Handle elements without elevation data | pacurrie/KmlToGpxConverter | KmlToGpxConverter/KmlReader.cs | KmlToGpxConverter/KmlReader.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml;
namespace KmlToGpxConverter
{
internal static class KmlReader
{
public const string FileExtension = "kml";
public static IList<GpsTimePoint> ReadFile(string fi... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml;
namespace KmlToGpxConverter
{
internal static class KmlReader
{
public const string FileExtension = "kml";
public static IList<GpsTimePoint> ReadFile(string fi... | mit | C# |
e11d363019b524639ed10d7f4fddde2af1092edf | Update Auth0Settings.cs | mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander | Battery-Commander.Web/Models/Settings/Auth0Settings.cs | Battery-Commander.Web/Models/Settings/Auth0Settings.cs | namespace BatteryCommander.Web.Models
{
public class Auth0Settings
{
public string Domain { get; set; }
public string ClientId { get; set; }
public string ClientSecret { get; set; }
public string ApiIdentifier { get; set; }
}
}
| namespace BatteryCommander.Web.Models
{
public class Auth0Settings
{
public string Domain { get; set; }
public string CallbackUrl { get; set; }
public string ClientId { get; set; }
public string ClientSecret { get; set; }
public string ApiIdentifier { get; set; }
... | mit | C# |
cb827e0697a3015c768ab0efd09e5b620cdd0fbe | fix save endpoint | mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander | Battery-Commander.Web/Views/Evaluations/Details.cshtml | Battery-Commander.Web/Views/Evaluations/Details.cshtml | @model Evaluation
<!-- Edit link, if available -->
<!-- Workflow steps available -->
<fieldset>
@Html.DisplayForModel()
</fieldset>
<h2>@Html.DisplayNameFor(_ => Model.Events)</h2>
<div>
@using (Html.BeginForm("Comment", "Evaluations", FormMethod.Post, new { @class = "form-horitzontal" }))
{
@H... | @model Evaluation
<!-- Edit link, if available -->
<!-- Workflow steps available -->
<fieldset>
@Html.DisplayForModel()
</fieldset>
<h2>@Html.DisplayNameFor(_ => Model.Events)</h2>
<div>
@using (Html.BeginForm("Comment", "Evaluation", FormMethod.Post, new { @class = "form-horitzontal" }))
{
@Ht... | mit | C# |
2b2e22c056de76db930e8988bdfb9cf254d17c36 | Fix ScrollOnNewItem so it does work | Weingartner/SolidworksAddinFramework | SolidworksAddinFramework/Wpf/ScrollOnNewItem.cs | SolidworksAddinFramework/Wpf/ScrollOnNewItem.cs | using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Interactivity;
namespace SolidworksAddinFramework.Wpf
{
/... | using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Interactivity;
namespace SolidworksAddinFramework.Wpf
{
/... | mit | C# |
068060b83ad3616bff382dca543518c448b4576f | prepare release of version 1.2.2 | dfensgmbh/biz.dfch.CS.Abiquo.Client | src/AssemblyVersion.cs | src/AssemblyVersion.cs | using System.Reflection;
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
//
/... | using System.Reflection;
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
//
/... | apache-2.0 | C# |
56eebd86d7fd261c92100857d550a3d974e136a9 | Reset board at start of the game. | pjbgf/shogi,pjbgf/shogi | Core.Shogi.Tests/BitVersion/BitboardShogiGameShould.cs | Core.Shogi.Tests/BitVersion/BitboardShogiGameShould.cs | using NSubstitute;
using Xunit;
namespace Core.Shogi.Tests.BitVersion
{
public class BitboardShogiGameShould
{
[Fact]
public void IdentifyACheckMateState()
{
var blackPlayer = new Player(PlayerType.Black);
var whitePlayer = new Player(PlayerType.White);
... | using NSubstitute;
using Xunit;
namespace Core.Shogi.Tests.BitVersion
{
public class BitboardShogiGameShould
{
[Fact]
public void IdentifyACheckMateState()
{
var blackPlayer = new Player(PlayerType.Black);
var whitePlayer = new Player(PlayerType.White);
... | mit | C# |
09e350d14d069def409a82a1b56128bdd79fb17d | Remove canBNull specification | peppy/osu,NeoAdonis/osu,ppy/osu,peppy/osu-new,smoogipoo/osu,NeoAdonis/osu,UselessToucan/osu,smoogipoo/osu,NeoAdonis/osu,UselessToucan/osu,peppy/osu,ppy/osu,peppy/osu,smoogipooo/osu,smoogipoo/osu,ppy/osu,UselessToucan/osu | osu.Desktop/Windows/GameplayWinKeyBlocker.cs | osu.Desktop/Windows/GameplayWinKeyBlocker.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Framework.Graphics;
using osu.Framework.Platform;
using osu.Game;
using osu.Game.Configuration;
... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Framework.Graphics;
using osu.Framework.Platform;
using osu.Game;
using osu.Game.Configuration;
... | mit | C# |
93a8092da6504019b871ba4f219e8b9634715b28 | Increase usable width slightly further | peppy/osu,NeoAdonis/osu,peppy/osu,ppy/osu,ppy/osu,NeoAdonis/osu,peppy/osu,NeoAdonis/osu,ppy/osu | osu.Game/Screens/Edit/Verify/VerifyScreen.cs | osu.Game/Screens/Edit/Verify/VerifyScreen.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Game.Beatmaps;
using osu.G... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Game.Beatmaps;
using osu.G... | mit | C# |
bed5a55b216f501f3528315f57bf7e0bf4f51fdc | Add message to test failure | benallred/Icing | Icing/Icing.Tests/Core/Diagnostics/TestOf_Algorithm.cs | Icing/Icing.Tests/Core/Diagnostics/TestOf_Algorithm.cs | using System;
using System.Threading;
using Icing.Diagnostics;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Icing.Tests.Core.Diagnostics
{
[TestClass]
public class TestOf_Algorithm
{
[TestMethod]
public void Constructor()
{
Algorithm algorithm;
Action action;
action = () => { ... | using System;
using System.Threading;
using Icing.Diagnostics;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Icing.Tests.Core.Diagnostics
{
[TestClass]
public class TestOf_Algorithm
{
[TestMethod]
public void Constructor()
{
Algorithm algorithm;
Action action;
action = () => { ... | mit | C# |
f45f5288376fc366d526b9f655c65a067a3fe1c3 | Add optional parameter to UseCloudFoundryHosting() to set port in code [delivers #154771454] | SteelToeOSS/Configuration,SteelToeOSS/Configuration,SteelToeOSS/Configuration | src/Steeltoe.Extensions.Configuration.CloudFoundryCore/CloudFoundryHostBuilderExtensions.cs | src/Steeltoe.Extensions.Configuration.CloudFoundryCore/CloudFoundryHostBuilderExtensions.cs | // Copyright 2017 the original author or 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... | // Copyright 2017 the original author or 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... | apache-2.0 | C# |
dc70450bd5ad5bffe6867e1891666b022ac2e007 | fix parse | RaghavAbboy/Orchard.ParkingData,CityofSantaMonica/Orchard.ParkingData | Services/ParkingLotsService.cs | Services/ParkingLotsService.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Xml.Linq;
using CSM.ParkingData.ViewModels;
using Microsoft.WindowsAzure;
namespace CSM.ParkingData.Services
{
public class ParkingLotsService : IParkingLotsService
{
public IEnumerable<ParkingLot> Get()
{
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Xml.Linq;
using CSM.ParkingData.ViewModels;
using Microsoft.WindowsAzure;
namespace CSM.ParkingData.Services
{
public class ParkingLotsService : IParkingLotsService
{
public IEnumerable<ParkingLot> Get()
{
... | mit | C# |
9ef323d49636fc2396c753535d9e63ba56d4b886 | Test change | geaz/coreDox,geaz/coreDox,geaz/coreDox | tests/coreDox.Core.Tests/Project/ProjectTests.cs | tests/coreDox.Core.Tests/Project/ProjectTests.cs | using coreDox.Core.Project;
using coreDox.Core.Project.Config;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.IO;
namespace coreDox.Core.Tests.Projects
{
[TestClass]
public class ProjectTests
{
private string _tmpPath = Path.Combine(Path.GetTempPath(), "testProject");
[Te... | using coreDox.Core.Project;
using coreDox.Core.Project.Config;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.IO;
namespace coreDox.Core.Tests.Projects
{
[TestClass]
public class ProjectTests
{
private string _tmpPath = Path.Combine(Path.GetTempPath(), "testProject");
[Te... | mit | C# |
bd1007d44ae046998941412a9bad4324a21052af | Set version to 0.1.0. | ruisebastiao/gong-wpf-dragdrop,emsaks/gong-wpf-dragdrop,Haukinger/gong-wpf-dragdrop,JohnnyJoe/Johnny-s-repository,Livit/Mailbird.Gong.WPF.DragDrop,JohnnyJoe/Johnny-s-repository,punker76/gong-wpf-dragdrop,huoxudong125/gong-wpf-dragdrop | GongSolutions.Wpf.DragDrop/Properties/AssemblyInfo.cs | GongSolutions.Wpf.DragDrop/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... | bsd-3-clause | C# |
9785e4c3720d047fe5eb224875a53f11bfe51b75 | Change assembly version | lury-lang/lury-lexer | lury-lexer/Properties/AssemblyInfo.cs | lury-lexer/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// アセンブリに関する一般情報は以下の属性セットをとおして制御されます。
// アセンブリに関連付けられている情報を変更するには、
// これらの属性値を変更してください。
[assembly: AssemblyTitle("lury-lexer")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: Ass... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// アセンブリに関する一般情報は以下の属性セットをとおして制御されます。
// アセンブリに関連付けられている情報を変更するには、
// これらの属性値を変更してください。
[assembly: AssemblyTitle("lury-lexer")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: Ass... | mit | C# |
212fe092effde0af598e66e85f62bc5d9430fab9 | Update button helper | litsungyi/Camus | Scripts/UiUtilities/ButtonHelper.cs | Scripts/UiUtilities/ButtonHelper.cs | using System;
using Camus.Validators;
using UnityEngine;
using UnityEngine.Assertions;
using UnityEngine.UI;
namespace Camus.UiUtilities
{
public class ButtonHelper : MonoBehaviour, IButtonProcessingExternalHandler
{
[SerializeField, NotNull]
private Button button;
private Text uiText;... | using System;
using Camus.Validators;
using UnityEngine;
using UnityEngine.Assertions;
using UnityEngine.UI;
namespace Camus.UiUtilities
{
public class ButtonHelper : MonoBehaviour, IButtonProcessingExternalHandler
{
[SerializeField, NotNull]
private Button button;
public void SetOnCl... | mit | C# |
e256d4a58138fd52c1c583dc07ab11412f5ea24b | Use the shortest path if assemblies have the same file name | hruan/Pennyworth | Pennyworth/DropHelper.cs | Pennyworth/DropHelper.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace Pennyworth {
public static class DropHelper {
public static IEnumerable<String> GetAssembliesFromDropData(IEnumerable<FileInfo> data) {
Func<FileInfo, Boolean> isDir = fi => ((fi.Attributes & FileAtt... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace Pennyworth {
public static class DropHelper {
public static IEnumerable<String> GetAssembliesFromDropData(IEnumerable<FileInfo> data) {
Func<FileInfo, Boolean> isDir = fi => ((fi.Attributes & FileAttr... | mit | C# |
d83337e7c1094a1626c9325024387a6a35f56e9f | Make XHud MaskType cast-able to AndHud MaskType | Redth/AndHUD,Redth/AndHUD | AndHUD/XHUD.cs | AndHUD/XHUD.cs | using System;
using Android.App;
using AndroidHUD;
namespace XHUD
{
public enum MaskType
{
// None = 1,
Clear = 2,
Black = 3,
// Gradient
}
public static class HUD
{
public static Activity MyActivity;
public static void Show(string message, int progress = -1, MaskType maskType = MaskType.Black)
{
... | using System;
using Android.App;
using AndroidHUD;
namespace XHUD
{
public enum MaskType
{
// None = 1,
Clear,
Black,
// Gradient
}
public static class HUD
{
public static Activity MyActivity;
public static void Show(string message, int progress = -1, MaskType maskType = MaskType.Black)
{
AndHU... | apache-2.0 | C# |
e1dff722541227a32cc964603853b55202ff6e4b | build script updated, not to use fixed version | flubu-core/flubu.core,flubu-core/flubu.core,flubu-core/flubu.core,flubu-core/flubu.core | BuildScript.cs | BuildScript.cs | using System;
using FlubuCore.Context;
using FlubuCore.Scripting;
using FlubuCore.Targeting;
using FlubuCore.Tasks.NetCore;
using FlubuCore.Tasks.Text;
using FlubuCore.Tasks.Versioning;
public class MyBuildScript : DefaultBuildScript
{
protected override void ConfigureBuildProperties(ITaskSession session)
{
... | using System;
using FlubuCore.Context;
using FlubuCore.Scripting;
using FlubuCore.Targeting;
using FlubuCore.Tasks.NetCore;
using FlubuCore.Tasks.Text;
using FlubuCore.Tasks.Versioning;
public class MyBuildScript : DefaultBuildScript
{
protected override void ConfigureBuildProperties(ITaskSession session)
{
... | bsd-2-clause | C# |
76d2dc40d94b1a79f100fe3a4f6521bb095cf9b0 | Make the code in the entrypoint even shorter. | DavidLievrouw/WordList | src/WordList/Program.cs | src/WordList/Program.cs | using System;
using Autofac;
using WordList.Composition;
namespace WordList {
public class Program {
public static void Main(string[] args) {
CompositionRoot.Compose().Resolve<IWordListProgram>().Run();
Console.WriteLine("Press any key to quit...");
Console.ReadKey();
}
}
} | using System;
using Autofac;
using WordList.Composition;
namespace WordList {
public class Program {
public static void Main(string[] args) {
var compositionRoot = CompositionRoot.Compose();
var wordListProgram = compositionRoot.Resolve<IWordListProgram>();
wordListProgram.Run();
Consol... | mit | C# |
241cb9c50b62b273ba33e5c066c17418c11abe2d | add LocalCacheDeadLockInGetTest | mc7246/WeiXinMPSDK,wanddy/WeiXinMPSDK,down4u/WeiXinMPSDK,lishewen/WeiXinMPSDK,wanddy/WeiXinMPSDK,JeffreySu/WeiXinMPSDK,JeffreySu/WeiXinMPSDK,jiehanlin/WeiXinMPSDK,mc7246/WeiXinMPSDK,jiehanlin/WeiXinMPSDK,down4u/WeiXinMPSDK,lishewen/WeiXinMPSDK,wanddy/WeiXinMPSDK,JeffreySu/WeiXinMPSDK,jiehanlin/WeiXinMPSDK,down4u/WeiXin... | src/Senparc.Weixin.MP/Senparc.Weixin.MP.Test/CacheTests/CacheTests.cs | src/Senparc.Weixin.MP/Senparc.Weixin.MP.Test/CacheTests/CacheTests.cs | using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Senparc.Weixin.Cache;
using Senparc.Weixin.Cache.Redis;
using Senparc.Weixin.MP.AdvancedAPIs;
using Senparc.Weixin.MP.Test.CommonAPIs;
namespace Senparc.Weixin.MP.Test.CacheTests
{
... | using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Senparc.Weixin.Cache;
using Senparc.Weixin.Cache.Redis;
using Senparc.Weixin.MP.AdvancedAPIs;
using Senparc.Weixin.MP.Test.CommonAPIs;
namespace Senparc.Weixin.MP.Test.CacheTests
{
... | apache-2.0 | C# |
b66a7c6decc78a763e7d5220df41c239bab8c119 | Make points orderable | TheEadie/PlayerRank,TheEadie/PlayerRank | PlayerRank/Points.cs | PlayerRank/Points.cs | using System;
namespace PlayerRank
{
public class Points : IComparable
{
private readonly double m_Points;
public Points(double points)
{
m_Points = points;
}
[Obsolete("This getter will be removed in a future version")]
internal double GetValue()
... | using System;
namespace PlayerRank
{
public class Points
{
private readonly double m_Points;
public Points(double points)
{
m_Points = points;
}
[Obsolete("This getter will be removed in a future version")]
internal double GetValue()
{
... | mit | C# |
030865cf921b6fb731d26bce98cc2f873d9eaff1 | Add FirstLetterToLower() to each exception message | lecaillon/Evolve | src/Evolve/Exception/EvolveConfigurationException.cs | src/Evolve/Exception/EvolveConfigurationException.cs | using System;
namespace Evolve
{
public class EvolveConfigurationException : EvolveException
{
private const string EvolveConfigurationError = "Evolve configuration error: ";
public EvolveConfigurationException(string message) : base(EvolveConfigurationError + FirstLetterToLower(message)) { }... | using System;
namespace Evolve
{
public class EvolveConfigurationException : EvolveException
{
private const string EvolveConfigurationError = "Evolve configuration error: ";
public EvolveConfigurationException(string message) : base(EvolveConfigurationError + message) { }
public Evo... | mit | C# |
4739a03e0a7663f164d8804693f442f1962a509a | Fix integration test | tgstation/tgstation-server,tgstation/tgstation-server,Cyberboss/tgstation-server,Cyberboss/tgstation-server,tgstation/tgstation-server-tools | tests/Tgstation.Server.Tests/TestingServer.cs | tests/Tgstation.Server.Tests/TestingServer.cs | using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Globalization;
using System.IO;
using System.Threading;
using System.Threading.Tasks;
using Tgstation.Server.Host;
namespace Tgstation.Server.Tests
{
sealed class TestingServer : IServer
{
public Uri Url { get; }
public string Direc... | using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Globalization;
using System.IO;
using System.Threading;
using System.Threading.Tasks;
using Tgstation.Server.Host;
namespace Tgstation.Server.Tests
{
sealed class TestingServer : IServer
{
public Uri Url { get; }
public string Direc... | agpl-3.0 | C# |
045dfd1ddfaf96ed10e5cd779633b32ff407a8ef | Tidy up DependsOnAttribute | eightlittlebits/elbsms | elbemu_shared/Configuration/DependsOnAttribute.cs | elbemu_shared/Configuration/DependsOnAttribute.cs | using System;
namespace elbemu_shared.Configuration
{
[AttributeUsage(AttributeTargets.Property, Inherited = false, AllowMultiple = false)]
public sealed class DependsOnAttribute : Attribute
{
public string PropertyName { get; }
public DependsOnAttribute(string propertyName)
{
... | using System;
namespace elbemu_shared.Configuration
{
[AttributeUsage(System.AttributeTargets.Property, Inherited = false, AllowMultiple = false)]
public sealed class DependsOnAttribute : System.Attribute
{
public string PropertyName { get; }
// This is a positional argument
publi... | mit | C# |
333194f5b16f968d93d48b54f5ff8b1ed1387ebd | Disable Kestrel server header | martincostello/api,martincostello/api,martincostello/api | src/API/Program.cs | src/API/Program.cs | // Copyright (c) Martin Costello, 2016. All rights reserved.
// Licensed under the MIT license. See the LICENSE file in the project root for full license information.
namespace MartinCostello.Api
{
using System;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Hosting;
/// <summary>
... | // Copyright (c) Martin Costello, 2016. All rights reserved.
// Licensed under the MIT license. See the LICENSE file in the project root for full license information.
namespace MartinCostello.Api
{
using System;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Hosting;
/// <summary>
... | mit | C# |
6bb4e11e8c758232ebbc451658f31da8ffe9a803 | Remove unused attribute in RunnerInvocation | BennieCopeland/NSpec,mattflo/NSpec,mattflo/NSpec,nspec/NSpec,mattflo/NSpec,mattflo/NSpec,nspectator/NSpectator,nspectator/NSpectator,nspec/NSpec,BennieCopeland/NSpec | NSpec/Domain/RunnerInvocation.cs | NSpec/Domain/RunnerInvocation.cs | using System;
using NSpec.Domain.Formatters;
namespace NSpec.Domain
{
[Serializable]
public class RunnerInvocation
{
public ContextCollection Run()
{
var reflector = new Reflector(this.dll);
var finder = new SpecFinder(reflector);
var tagsFilter = new T... | using System;
using NSpec.Domain.Formatters;
namespace NSpec.Domain
{
[Serializable]
public class RunnerInvocation
{
public ContextCollection Run()
{
var reflector = new Reflector(this.dll);
var finder = new SpecFinder(reflector);
var tagsFilter = new T... | mit | C# |
8b876c76384fcdf4d71f5b094922b99cbe92f8e0 | put swagger test into sequential test group | os2kitos/kitos,os2kitos/kitos,os2kitos/kitos,os2kitos/kitos | Tests.Integration.Presentation.Web/Swagger/SwaggerDocumentationTest.cs | Tests.Integration.Presentation.Web/Swagger/SwaggerDocumentationTest.cs | using System.Net;
using System.Threading.Tasks;
using Tests.Integration.Presentation.Web.Tools;
using Tests.Integration.Presentation.Web.Tools.XUnit;
using Xunit;
namespace Tests.Integration.Presentation.Web.Swagger
{
[Collection(nameof(SequentialTestGroup))]
public class SwaggerDocumentationTest
{
... | using System.Net;
using System.Threading.Tasks;
using Tests.Integration.Presentation.Web.Tools;
using Xunit;
namespace Tests.Integration.Presentation.Web.Swagger
{
public class SwaggerDocumentationTest
{
public class SwaggerDoc
{
public string Swagger { get; set; }
publ... | mpl-2.0 | C# |
18a924c5e4f276cd8bf3e98694c717449387b0f9 | clear color for bitmap | Meragon/Unity-WinForms | System/Drawing/Bitmap.cs | System/Drawing/Bitmap.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace System.Drawing
{
[Serializable]
public class Bitmap : Image
{
public static implicit operator UnityEngine.Texture2D(Bitmap image)
{
if (image == null) return null;
return... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace System.Drawing
{
[Serializable]
public class Bitmap : Image
{
public static implicit operator UnityEngine.Texture2D(Bitmap image)
{
if (image == null) return null;
return... | mit | C# |
6249e33dafa8bf5e9c1a1e044a12d59b75e90314 | bump version | raml-org/raml-dotnet-parser,raml-org/raml-dotnet-parser | source/AMF.Parser/Properties/AssemblyInfo.cs | source/AMF.Parser/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("AMF... | 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("AMF... | apache-2.0 | C# |
d3c7fec81ac153e03da1faafb3d0333e21ac5ed1 | Fix readonly property issue. | sdcb/sdmap | sdmap/src/sdmap/Parser/Visitor/CoreSqlVisitor.cs | sdmap/src/sdmap/Parser/Visitor/CoreSqlVisitor.cs | using sdmap.Functional;
using sdmap.Parser.Context;
using sdmap.Parser.G4;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Reflection.Emit;
using System.Threading.Tasks;
using static sdmap.Parser.G4.SdmapParser;
using Antlr4.Runtime.Misc;
using sdmap.Parser.Util... | using sdmap.Functional;
using sdmap.Parser.Context;
using sdmap.Parser.G4;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Reflection.Emit;
using System.Threading.Tasks;
using static sdmap.Parser.G4.SdmapParser;
using Antlr4.Runtime.Misc;
using sdmap.Parser.Util... | mit | C# |
f7a78b4ca6e9ec116424e15eaab127b4d8c0b00d | Add ApplicationCommand#ApplicationId property | appharbor/appharbor-cli | src/AppHarbor/Commands/ApplicationCommand.cs | src/AppHarbor/Commands/ApplicationCommand.cs | namespace AppHarbor.Commands
{
public abstract class ApplicationCommand : Command
{
private readonly IApplicationConfiguration _applicationConfiguration;
public ApplicationCommand(IApplicationConfiguration applicationConfiguration)
{
_applicationConfiguration = applicationConfiguration;
}
protected st... | namespace AppHarbor.Commands
{
public abstract class ApplicationCommand : Command
{
private readonly IApplicationConfiguration _applicationConfiguration;
public ApplicationCommand(IApplicationConfiguration applicationConfiguration)
{
_applicationConfiguration = applicationConfiguration;
}
}
}
| mit | C# |
fd22b6522de76f1178c4f996838985668aa3a727 | Fix type | banguit/fluentfilters | src/FluentFilters/Properties/AssemblyInfo.cs | src/FluentFilters/Properties/AssemblyInfo.cs | #region License
// Copyright (c) Dmitry Antonenko (http://hystrix.com.ua)
//
// 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
//
// Unl... | #region License
// Copyright (c) Dmitry Antonenko (http://hystrix.com.ua)
//
// 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
//
// Unl... | apache-2.0 | C# |
9272ac5a1241b8df409363649736518b6edb247b | Add default constructor to VersionedRoute | infrabel/GNaP.WebApi.Versioning,infrabel/GNaP.WebApi.Versioning | src/GNaP.WebApi.Versioning/VersionedRoute.cs | src/GNaP.WebApi.Versioning/VersionedRoute.cs | namespace GNaP.WebApi.Versioning
{
using System.Collections.Generic;
using System.Web.Http.Routing;
public class VersionedRoute : RouteFactoryAttribute
{
public int Version { get; private set; }
public override IDictionary<string, object> Constraints
{
get
... | namespace GNaP.WebApi.Versioning
{
using System.Collections.Generic;
using System.Web.Http.Routing;
public class VersionedRoute : RouteFactoryAttribute
{
public int Version { get; private set; }
public override IDictionary<string, object> Constraints
{
get
... | bsd-3-clause | C# |
dc9775742ca0dfc20f65e9de2d043c714a6f1a61 | Fix incorrect code migration | peppy/osu,NeoAdonis/osu,peppy/osu,2yangk23/osu,2yangk23/osu,NeoAdonis/osu,peppy/osu,peppy/osu-new,UselessToucan/osu,UselessToucan/osu,ppy/osu,smoogipoo/osu,EVAST9919/osu,smoogipoo/osu,johnneijzen/osu,ppy/osu,NeoAdonis/osu,UselessToucan/osu,EVAST9919/osu,johnneijzen/osu,smoogipoo/osu,smoogipooo/osu,ppy/osu | osu.Game/Rulesets/Mods/ModTimeRamp.cs | osu.Game/Rulesets/Mods/ModTimeRamp.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Linq;
using osu.Framework.Audio.Track;
using osu.Game.Beatmaps;
using osu.Game.Rulesets.UI;
using osu.Game.Rulesets.Objects;
namespace osu.Gam... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Linq;
using osu.Framework.Audio.Track;
using osu.Game.Beatmaps;
using osu.Game.Rulesets.UI;
using osu.Game.Rulesets.Objects;
namespace osu.Gam... | mit | C# |
ec241ae48a8082d7516bfd84fd4e790d20730fea | Add assertion to check for cycles in ExecutionTree | symbooglix/symbooglix,symbooglix/symbooglix,symbooglix/symbooglix | src/Symbooglix/Executor/ExecutionTreeNode.cs | src/Symbooglix/Executor/ExecutionTreeNode.cs | using System;
using System.Collections.Generic;
using System.Diagnostics;
namespace Symbooglix
{
public class ExecutionTreeNode
{
public readonly ExecutionTreeNode Parent;
public readonly ProgramLocation CreatedAt;
public readonly ExecutionState State; // Should this be a weak referenc... | using System;
using System.Collections.Generic;
using System.Diagnostics;
namespace Symbooglix
{
public class ExecutionTreeNode
{
public readonly ExecutionTreeNode Parent;
public readonly ProgramLocation CreatedAt;
public readonly ExecutionState State; // Should this be a weak referenc... | bsd-2-clause | C# |
0557a3a3b3c9d9ea5353ea869f9e17e333b39910 | Remove unnecessary constructor | proyecto26/RestClient | src/Proyecto26.RestClient/Utils/RequestHelper.cs | src/Proyecto26.RestClient/Utils/RequestHelper.cs | using System;
using UnityEngine;
using System.Collections.Generic;
using UnityEngine.Networking;
namespace Proyecto26
{
public class RequestHelper
{
public string url;
public int? timeout;
private Dictionary<string, string> _headers;
public Dictionary<string, string> headers ... | using System;
using UnityEngine;
using System.Collections.Generic;
using UnityEngine.Networking;
namespace Proyecto26
{
public class RequestHelper
{
public RequestHelper()
{
headers = new Dictionary<string, string>();
}
public string url;
public int? timeo... | mit | C# |
0694e17b3edc903b41ce886e4d335e3ee1e598f1 | Fix header for table | mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander | BatteryCommander.Web/Views/Soldier/Bulk.cshtml | BatteryCommander.Web/Views/Soldier/Bulk.cshtml | @model IEnumerable<BatteryCommander.Web.Models.SoldierEditModel>
@{
ViewBag.Title = "Bulk Add/Edit";
}
<h2>@ViewBag.Title</h2>
@using (Html.BeginForm("Bulk", "Soldier", FormMethod.Post))
{
<div class="form-horizontal">
@Html.ValidationSummary(true, "", new { @class = "text-danger" })
@Html.A... | @model IEnumerable<BatteryCommander.Web.Models.SoldierEditModel>
@{
ViewBag.Title = "Bulk Add/Edit";
}
<h2>@ViewBag.Title</h2>
@using (Html.BeginForm("Bulk", "Soldier", FormMethod.Post))
{
<div class="form-horizontal">
@Html.ValidationSummary(true, "", new { @class = "text-danger" })
@Html.A... | mit | C# |
6c88ccc73e9adeae0a4b813ae2f3f6f2a9ff4407 | Bump version | beekmanlabs/Storage,beekmanlabs/Storage | BeekmanLabs.Storage/Properties/AssemblyInfo.cs | BeekmanLabs.Storage/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyVersion("0.0.2.*")]
[assembly: AssemblyInformationalVersion("0.0.2")]
[assembly: AssemblyTitle("BeekmanLabs.Storage")]
[assembly: AssemblyCompany("Beekman Labs")]
[assembly: AssemblyProduct("BeekmanLabs.Storage")]
[assembly: AssemblyCop... | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyVersion("0.0.1.*")]
[assembly: AssemblyInformationalVersion("0.0.1")]
[assembly: AssemblyTitle("BeekmanLabs.Storage")]
[assembly: AssemblyCompany("Beekman Labs")]
[assembly: AssemblyProduct("BeekmanLabs.Storage")]
[assembly: AssemblyCop... | mit | C# |
49a3685e27c985d0a2cbbff8b80b84bdf2165055 | Use dictionary instead of lists | ozim/CakeStuff | ReverseWords/BracesValidator/BracesValidator.cs | ReverseWords/BracesValidator/BracesValidator.cs | namespace BracesValidator
{
using System.Collections.Generic;
public class BracesValidator
{
public bool Validate(string code)
{
char[] codeArray = code.ToCharArray();
Dictionary<char, char> openersClosersMap = new Dictionary<char, char>();
openersClose... | namespace BracesValidator
{
using System.Collections.Generic;
public class BracesValidator
{
public bool Validate(string code)
{
char[] codeArray = code.ToCharArray();
List<char> openers = new List<char> { '{', '[', '(' };
List<char> closers = new List<c... | apache-2.0 | C# |
0cd5fde8061aa7cea98c6847ad2312fe4f14f9a7 | handle CompareValues for RowListField type | WasimAhmad/Serenity,rolembergfilho/Serenity,WasimAhmad/Serenity,dfaruque/Serenity,WasimAhmad/Serenity,volkanceylan/Serenity,rolembergfilho/Serenity,volkanceylan/Serenity,rolembergfilho/Serenity,volkanceylan/Serenity,dfaruque/Serenity,rolembergfilho/Serenity,WasimAhmad/Serenity,volkanceylan/Serenity,dfaruque/Serenity,ro... | Serenity.Data.Entity/FieldTypes/RowListField.cs | Serenity.Data.Entity/FieldTypes/RowListField.cs | using System;
using System.Collections.Generic;
namespace Serenity.Data
{
public class RowListField<TForeign> : CustomClassField<List<TForeign>> where TForeign: Row
{
public RowListField(ICollection<Field> collection, string name, LocalText caption = null, int size = 0, FieldFlags flags = Field... | using System;
using System.Collections.Generic;
namespace Serenity.Data
{
public class RowListField<TForeign> : CustomClassField<List<TForeign>> where TForeign: Row
{
public RowListField(ICollection<Field> collection, string name, LocalText caption = null, int size = 0, FieldFlags flags = Field... | mit | C# |
41daadc7afa6fd39e39851b1d0ef7f1aebe2411d | Sort usings | projecteon/thecollection,projecteon/thecollection,projecteon/thecollection,projecteon/thecollection | TheCollection.Web/Commands/SearchBagsCommand.cs | TheCollection.Web/Commands/SearchBagsCommand.cs | using Microsoft.AspNetCore.Mvc;
using Microsoft.Azure.Documents;
using System.Linq;
using System.Threading.Tasks;
using TheCollection.Business.Tea;
using TheCollection.Web.Constants;
using TheCollection.Web.Extensions;
using TheCollection.Web.Models;
using TheCollection.Web.Services;
namespace TheCollection.Web.Comma... | using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Azure.Documents;
using TheCollection.Web.Constants;
using TheCollection.Business.Tea;
using TheCollection.Web.Services;
using System.Linq;
using TheCollection.Web.Models;
using TheCollection.Web.Extensions;
namespace TheCollection.Web.Comma... | apache-2.0 | C# |
5caa7920629419327460d12745fd60a8c6c928ba | Add comment. | Microsoft/xunit-performance,ericeil/xunit-performance,ianhays/xunit-performance,visia/xunit-performance,mmitche/xunit-performance,Microsoft/xunit-performance,pharring/xunit-performance | src/xunit.performance.analysis/MathExtensions.cs | src/xunit.performance.analysis/MathExtensions.cs | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using MathNet.Numerics;
using MathNet.Numerics.Statistics;
using System;
using System.Collections.Generic;
namespace Microsoft.Xunit.Performance.Analysis
{
public... | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using MathNet.Numerics;
using MathNet.Numerics.Statistics;
using System;
using System.Collections.Generic;
namespace Microsoft.Xunit.Performance.Analysis
{
public... | mit | C# |
1635197d94ae9f2f18aac8d07914e0374840450f | Implement ExecuteInstructionFromConsole() in Main | vejuhust/msft-scooter | ScooterController/ScooterController/Program.cs | ScooterController/ScooterController/Program.cs | using System;
namespace ScooterController
{
class Program
{
private static void ExecuteInstructionFromFile(string filename)
{
var parser = new InstructionInterpreter(filename);
var controller = new HardwareController();
HardwareInstruction instruction;
... | using System;
namespace ScooterController
{
class Program
{
private static void ExecuteInstructionFromFile(string filename)
{
var parser = new InstructionInterpreter(filename);
var controller = new HardwareController();
HardwareInstruction instruction;
... | mit | C# |
6d15dcf1ca4a9f34d7d70dd6de08fde11b0a6cdd | Use TryAdd for ISessionStore service #2755 | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore | src/Microsoft.AspNetCore.Session/SessionServiceCollectionExtensions.cs | src/Microsoft.AspNetCore.Session/SessionServiceCollectionExtensions.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.AspNetCore.Builder;
using Microsoft.AspNetCore.Session;
using Microsoft.Extensions.DependencyInjection.Extensions;
namesp... | // 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.AspNetCore.Builder;
using Microsoft.AspNetCore.Session;
namespace Microsoft.Extensions.DependencyInjection
{
/// <sum... | apache-2.0 | C# |
0acc010734b7e64a8b0b2a562d19a4d540473f5a | Change FileParsingBenchmark to use parsing defaults (#308) | sebastienros/esprima-dotnet,sebastienros/esprima-dotnet | samples/Esprima.Benchmark/FileParsingBenchmark.cs | samples/Esprima.Benchmark/FileParsingBenchmark.cs | using System.Collections.Generic;
using System.IO;
using System.Linq;
using BenchmarkDotNet.Attributes;
namespace Esprima.Benchmark;
[MemoryDiagnoser]
public class FileParsingBenchmark
{
private static readonly Dictionary<string, string> files = new()
{
{ "underscore-1.5.2", null },
{ "backbo... | using System.Collections.Generic;
using System.IO;
using System.Linq;
using BenchmarkDotNet.Attributes;
namespace Esprima.Benchmark;
[MemoryDiagnoser]
public class FileParsingBenchmark
{
private static readonly Dictionary<string, string> files = new()
{
{ "underscore-1.5.2", null },
{ "backbo... | bsd-3-clause | C# |
51f447a5f2594a56c20988f1a57dc1f6dd51d380 | Remove warnings from Ably log to reduce noise. | StephenClearyApps/DotNetApis,StephenClearyApps/DotNetApis,StephenClearyApps/DotNetApis,StephenClearyApps/DotNetApis | service/DotNetApis.Common/AsyncLocalAblyLogger.cs | service/DotNetApis.Common/AsyncLocalAblyLogger.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using DotNetApis.Common.Internals;
using Microsoft.Extensions.Logging;
namespace DotNetApis.Common
{
/// <summary>
/// A logger that attempts to write to an implicit Ably channel. This type can be safely created before ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using DotNetApis.Common.Internals;
using Microsoft.Extensions.Logging;
namespace DotNetApis.Common
{
/// <summary>
/// A logger that attempts to write to an implicit Ably channel. This type can be safely created before ... | mit | C# |
14e22810e7c386e9ab0a31492295e8e3e72ae056 | fix for max wild level when creating test creatures | cadon/ARKStatsExtractor | ARKBreedingStats/library/AddDummyCreaturesSettings.cs | ARKBreedingStats/library/AddDummyCreaturesSettings.cs | using System;
using System.Windows.Forms;
namespace ARKBreedingStats.library
{
public partial class AddDummyCreaturesSettings : Form
{
public AddDummyCreaturesSettings()
{
InitializeComponent();
var settings = DummyCreatures.LastSettings != null
? Dummy... | using System;
using System.Windows.Forms;
namespace ARKBreedingStats.library
{
public partial class AddDummyCreaturesSettings : Form
{
public AddDummyCreaturesSettings()
{
InitializeComponent();
var settings = DummyCreatures.LastSettings != null
? Dummy... | mit | C# |
84c00bdbb63df193e1e956e7d634de5cdfb68d22 | Test against test data | stofte/ream-query | test/ReamQuery.Test/QueryTemplateEndpoint.cs | test/ReamQuery.Test/QueryTemplateEndpoint.cs | namespace ReamQuery.Test
{
using System;
using Xunit;
using System.Linq;
using ReamQuery.Models;
using System.Net.Http;
using Newtonsoft.Json;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
public class QueryTemplateEndpoint : E2EBase
{
[... | namespace ReamQuery.Test
{
using System;
using Xunit;
using System.Linq;
using ReamQuery.Models;
using System.Net.Http;
using Newtonsoft.Json;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
public class QueryTemplateEndpoint : E2EBase
{
[... | mit | C# |
b3c52aaa296db6bf9928cd09dca75dbdda7dac72 | add hover text for player totem on the game board | pseale/monopoly-dotnet,pseale/monopoly-dotnet | src/MonopolyDotNet/MonopolyWeb/Views/Game/Index.cshtml | src/MonopolyDotNet/MonopolyWeb/Views/Game/Index.cshtml | @model MonopolyWeb.Models.ViewModels.GameStatusViewModel
@using Microsoft.Web.Mvc
@using MonopolyWeb.Controllers
@{
ViewBag.Title = "Your turn";
}
@section styles
{
<style>
.monopoly-board {
height: 720px;
width: 720px;
background-image: url('@Url.Content("~/img/board.png")');
backgroun... | @model MonopolyWeb.Models.ViewModels.GameStatusViewModel
@using Microsoft.Web.Mvc
@using MonopolyWeb.Controllers
@{
ViewBag.Title = "Your turn";
}
@section styles
{
<style>
.monopoly-board {
height: 720px;
width: 720px;
background-image: url('@Url.Content("~/img/board.png")');
backgroun... | mit | C# |
dcb8688154edb3b58f2f41e7a5107c671f496c81 | Remove excessive debug messages | mono/dbus-sharp-glib,mono/dbus-sharp-glib | glib/GLib.cs | glib/GLib.cs | // Copyright 2006 Alp Toker <alp@atoker.com>
// This software is made available under the MIT License
// See COPYING for details
using System;
//using GLib;
//using Gtk;
using NDesk.DBus;
using NDesk.GLib;
using org.freedesktop.DBus;
namespace NDesk.DBus
{
//FIXME: this API needs review and de-unixification
public ... | // Copyright 2006 Alp Toker <alp@atoker.com>
// This software is made available under the MIT License
// See COPYING for details
using System;
//using GLib;
//using Gtk;
using NDesk.DBus;
using NDesk.GLib;
using org.freedesktop.DBus;
namespace NDesk.DBus
{
public static class DApplication
{
public static bool Dis... | mit | C# |
9bc96d2bbf17e574c9563ee8a71d928cf6a2951e | Make sure we only ever initialize once | mono/dbus-sharp-glib,mono/dbus-sharp-glib | glib/GLib.cs | glib/GLib.cs | // Copyright 2006 Alp Toker <alp@atoker.com>
// This software is made available under the MIT License
// See COPYING for details
using System;
//using GLib;
//using Gtk;
using NDesk.DBus;
using NDesk.GLib;
using org.freedesktop.DBus;
namespace NDesk.DBus
{
//FIXME: this API needs review and de-unixification. It is h... | // Copyright 2006 Alp Toker <alp@atoker.com>
// This software is made available under the MIT License
// See COPYING for details
using System;
//using GLib;
//using Gtk;
using NDesk.DBus;
using NDesk.GLib;
using org.freedesktop.DBus;
namespace NDesk.DBus
{
//FIXME: this API needs review and de-unixification. It is h... | mit | C# |
6a288024ef35a56f52b9e54035d1eabbe8e5b3a6 | Increase Version Number | BYteWareGmbH/XAF.ElasticSearch | BYteWare.XAF.ElasticSearch/Properties/AssemblyInfo.cs | BYteWare.XAF.ElasticSearch/Properties/AssemblyInfo.cs | using System;
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 a... | using System;
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 a... | mpl-2.0 | C# |
20412a3d3a4ce709eaa1823a3c83ac0c19de9855 | add TODO | collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists | src/FilterLists.Services/Implementations/TableService.cs | src/FilterLists.Services/Implementations/TableService.cs | using System.IO;
using System.Net.Http;
using System.Threading.Tasks;
using FilterLists.Data.Repositories.Contracts;
using FilterLists.Services.Contracts;
namespace FilterLists.Services.Implementations
{
public class TableService : ITableService
{
private readonly ITableCsvRepository _tableCsvReposito... | using System.IO;
using System.Net.Http;
using System.Threading.Tasks;
using FilterLists.Data.Repositories.Contracts;
using FilterLists.Services.Contracts;
namespace FilterLists.Services.Implementations
{
public class TableService : ITableService
{
private readonly ITableCsvRepository _tableCsvReposito... | mit | C# |
0029b8f0539f181ce0dad0f24b4387ca188d1d08 | Use non-pinnable buffer for zero byte read (#3094) | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore | src/Kestrel.Transport.Sockets/Internal/SocketReceiver.cs | src/Kestrel.Transport.Sockets/Internal/SocketReceiver.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.IO.Pipelines;
using System.Net.Sockets;
namespace Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.Internal
{
publ... | // 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.IO.Pipelines;
using System.Net.Sockets;
namespace Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.Internal
{
publ... | apache-2.0 | C# |
7d32089f8c496005925ff6848c5a69f942d2896b | Set version to 0.5.0 | morgen2009/DelegateDecompiler,hazzik/DelegateDecompiler,jaenyph/DelegateDecompiler | src/DelegateDecompiler/Properties/AssemblyInfo.cs | src/DelegateDecompiler/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# |
fe2024809eee6f01bbce8ca34c1023ebe9507070 | Update version number for new publish | GibraltarSoftware/DistributedLocking | src/DistributedLocking/Properties/AssemblyInfo.cs | src/DistributedLocking/Properties/AssemblyInfo.cs | #region File Header and License
// /*
// AssemblyInfo.cs
// Copyright 2008-2017 Gibraltar Software, 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
//
// ... | #region File Header and License
// /*
// AssemblyInfo.cs
// Copyright 2008-2017 Gibraltar Software, 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
//
// ... | apache-2.0 | C# |
5fe97a9a06da256268f3e60c49bdd50b9961b280 | Fix build | Cyberboss/tgstation-server,Cyberboss/tgstation-server,tgstation/tgstation-server,tgstation/tgstation-server,tgstation/tgstation-server-tools | src/Tgstation.Server.Host/Components/Interop/JsonFile.cs | src/Tgstation.Server.Host/Components/Interop/JsonFile.cs | using System.Collections.Generic;
using Tgstation.Server.Api.Models;
using Tgstation.Server.Api.Models.Internal;
namespace Tgstation.Server.Host.Components.Interop
{
/// <summary>
/// Representation of the initial json passed to DreamDaemon
/// </summary>
sealed class JsonFile
{
/// <summary>
/// The code us... | using System.Collections.Generic;
using Tgstation.Server.Api.Models;
using Tgstation.Server.Api.Models.Internal;
namespace Tgstation.Server.Host.Components.Interop
{
/// <summary>
/// Representation of the initial json passed to DreamDaemon
/// </summary>
sealed class JsonFile
{
/// <summary>
/// The code us... | agpl-3.0 | C# |
3685093930195e7f73bc2704027886b7fe95f3cf | Fix time for shaking the camera | matiasbeckerle/perspektiva,matiasbeckerle/breakout,matiasbeckerle/arkanoid | source/Assets/Scripts/Camera/CameraShake.cs | source/Assets/Scripts/Camera/CameraShake.cs | using UnityEngine;
using System.Collections;
public class CameraShake : MonoBehaviour
{
/// <summary>
/// Shake amount.
/// </summary>
public float shakeAmount = 0.1f;
/// <summary>
/// Shake decrease factor.
/// </summary>
public float shakeDecreaseFactor = 1f;
//... | using UnityEngine;
using System.Collections;
public class CameraShake : MonoBehaviour
{
/// <summary>
/// Shake amount.
/// </summary>
public float shakeAmount = 0.1f;
/// <summary>
/// Shake decrease factor.
/// </summary>
public float shakeDecreaseFactor = 1f;
//... | unknown | C# |
1b3d6420af8d723b2e9137229f1e14c6aa778221 | Make queue extension methods public | ghkim69/win-beacon,huysentruitw/win-beacon | src/WinBeacon.Stack/Extensions/QueueExtensions.cs | src/WinBeacon.Stack/Extensions/QueueExtensions.cs | /*
* Copyright 2015 Huysentruit Wouter
*
* 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 agre... | /*
* Copyright 2015 Huysentruit Wouter
*
* 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 agre... | mit | C# |
d402f17e2e20cb445b250b315331b37d8d2ae017 | Update to correct version strings | PyramidTechnologies/netPyramid-RS-232 | Apex7000_BillValidator/Properties/AssemblyInfo.cs | Apex7000_BillValidator/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("NE... | 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("NE... | mit | C# |
cdceb44c2aac8701f448dcb8da032ac6ffd2f8ef | Update AssemblyInfo.cs | BaamStudios/SharpAngie,BaamStudios/SharpAngie,BaamStudios/SharpAngie | BaamStudios.SharpAngie/Properties/AssemblyInfo.cs | BaamStudios.SharpAngie/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# |
f3e041492fb92f68389afb5e9657c323bec21cd9 | Add test data for Teacher to DbInitializer. | Programazing/Open-School-Library,Programazing/Open-School-Library | src/Open-School-Library/Data/DbInitializer.cs | src/Open-School-Library/Data/DbInitializer.cs | using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;
using System.Threading.Tasks;
using Open_School_Library.Models.DatabaseModels;
namespace Open_School_Library.Data
{
public class DbInitializer
{
publi... | using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;
using System.Threading.Tasks;
using Open_School_Library.Models.DatabaseModels;
namespace Open_School_Library.Data
{
public class DbInitializer
{
publi... | mit | C# |
24bc198b9131dbf6567fc8a03d2cb0adf2aac41a | Update plug in version of MenuBar | pergerch/DotSpatial,JasminMarinelli/DotSpatial,bdgza/DotSpatial,bdgza/DotSpatial,DotSpatial/DotSpatial,pergerch/DotSpatial,pedwik/DotSpatial,pergerch/DotSpatial,DotSpatial/DotSpatial,pedwik/DotSpatial,CGX-GROUP/DotSpatial,donogst/DotSpatial,bdgza/DotSpatial,swsglobal/DotSpatial,CGX-GROUP/DotSpatial,DotSpatial/DotSpatia... | DotSpatial.Plugins.MenuBar/Properties/AssemblyInfo.cs | DotSpatial.Plugins.MenuBar/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("DotSpatial.Plugins.MenuBar")]
[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("DotSpatial.Plugins.MenuBar")]
[asse... | mit | C# |
d3a1e82d76719bd8c9d439946f6d365a964174ed | Call Dispose and the GC to avoid leaking memory. | xamarin/SignaturePad,xamarin/SignaturePad | src/SignaturePad.Android/ClearingImageView.cs | src/SignaturePad.Android/ClearingImageView.cs |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Android.App;
using Android.Content;
using Android.OS;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Android.Util;
using Android.Graphics;
namespace SignaturePad {
public class ClearingImageView : I... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Android.App;
using Android.Content;
using Android.OS;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Android.Util;
using Android.Graphics;
namespace SignaturePad {
public class ClearingImageView : I... | mit | C# |
9a753140fd9d671f45601c9c5480a0845808b43d | Fix failing tests. | AvaloniaUI/Avalonia,susloparovdenis/Perspex,SuperJMN/Avalonia,AvaloniaUI/Avalonia,wieslawsoltes/Perspex,wieslawsoltes/Perspex,Perspex/Perspex,AvaloniaUI/Avalonia,AvaloniaUI/Avalonia,AvaloniaUI/Avalonia,SuperJMN/Avalonia,SuperJMN/Avalonia,jkoritzinsky/Perspex,wieslawsoltes/Perspex,OronDF343/Avalonia,SuperJMN/Avalonia,wi... | tests/Perspex.Controls.UnitTests/TestRoot.cs | tests/Perspex.Controls.UnitTests/TestRoot.cs | // Copyright (c) The Perspex Project. All rights reserved.
// Licensed under the MIT license. See licence.md file in the project root for full license information.
using System;
using Moq;
using Perspex.Layout;
using Perspex.Platform;
using Perspex.Rendering;
using Perspex.Styling;
namespace Perspex.Controls.UnitTes... | // Copyright (c) The Perspex Project. All rights reserved.
// Licensed under the MIT license. See licence.md file in the project root for full license information.
using System;
using Moq;
using Perspex.Layout;
using Perspex.Platform;
using Perspex.Rendering;
using Perspex.Styling;
namespace Perspex.Controls.UnitTes... | mit | C# |
620312e479ea03e2f9cdb3771d4fde53ce8a1692 | Use 0.0.0.0. | FacilityApi/FacilityGeneratorApi,FacilityApi/FacilityGeneratorApi,FacilityApi/FacilityGeneratorApi | src/Facility.GeneratorApi.WebApi/Program.cs | src/Facility.GeneratorApi.WebApi/Program.cs | using System.IO;
using Microsoft.AspNetCore.Hosting;
namespace Facility.GeneratorApi.WebApi
{
public class Program
{
public static void Main(string[] args)
{
var host = new WebHostBuilder()
.UseKestrel()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseUrls("http://0.0.0.0:45054")
.UseIIS... | using System.IO;
using Microsoft.AspNetCore.Hosting;
namespace Facility.GeneratorApi.WebApi
{
public class Program
{
public static void Main(string[] args)
{
var host = new WebHostBuilder()
.UseKestrel()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseUrls("http://local.fsdgenapi.facility.io... | mit | C# |
39d0682a220505735036eb1fc2b9cfe85bf0b4d1 | use mongodb provider's IdentityUser | g0t4/aspnet-identity-mongo-sample,g0t4/aspnet-identity-mongo-sample,g0t4/aspnet-identity-mongo-sample | src/IdentitySample/Models/IdentityModels.cs | src/IdentitySample/Models/IdentityModels.cs | using AspNet.Identity.MongoDB;
using Microsoft.AspNet.Identity;
using System.Data.Entity;
using System.Security.Claims;
using System.Threading.Tasks;
namespace IdentitySample.Models {
// You can add profile data for the user by adding more properties to your ApplicationUser class, please visit http://go.microsoft... | using Microsoft.AspNet.Identity;
using System.Data.Entity;
using System.Security.Claims;
using System.Threading.Tasks;
namespace IdentitySample.Models {
// You can add profile data for the user by adding more properties to your ApplicationUser class, please visit http://go.microsoft.com/fwlink/?LinkID=317594 to l... | mit | C# |
f60ccdb8547aefbf7388ae97c64ab6b4343cb8c0 | Update VotePopUp.cs | fomalsd/unitystation,fomalsd/unitystation,fomalsd/unitystation,fomalsd/unitystation,fomalsd/unitystation,fomalsd/unitystation,fomalsd/unitystation | UnityProject/Assets/Scripts/Voting/VotePopUp.cs | UnityProject/Assets/Scripts/Voting/VotePopUp.cs | using System.Collections;
using System.Collections.Generic;
using DatabaseAPI;
using UnityEngine;
using UnityEngine.UI;
public class VotePopUp : MonoBehaviour
{
[SerializeField] private Text voteTitle = null;
[SerializeField] private Text voteInstigator = null;
[SerializeField] private Text voteCount = null;
[Ser... | using System.Collections;
using System.Collections.Generic;
using DatabaseAPI;
using UnityEngine;
using UnityEngine.UI;
public class VotePopUp : MonoBehaviour
{
[SerializeField] private Text voteTitle = null;
[SerializeField] private Text voteInstigator = null;
[SerializeField] private Text voteCount = null;
[Ser... | agpl-3.0 | C# |
abb22c24f294e7bd0a810a905e5dfe552173c56a | Fix homepage layout on small mobile screens | martincostello/alexa-london-travel-site,martincostello/alexa-london-travel-site,martincostello/alexa-london-travel-site,martincostello/alexa-london-travel-site | src/LondonTravel.Site/Views/Home/Index.cshtml | src/LondonTravel.Site/Views/Home/Index.cshtml | @inject SiteOptions Options
@{
ViewBag.Title = "Home";
}
@if (User.Identity.IsAuthenticated &&
string.Equals(Context.Request.Query["Message"], nameof(SiteMessage.AccountCreated), StringComparison.OrdinalIgnoreCase))
{
<div class="alert alert-success" role="alert">
<button type="button" class="clos... | @inject SiteOptions Options
@{
ViewBag.Title = "Home";
}
@if (User.Identity.IsAuthenticated &&
string.Equals(Context.Request.Query["Message"], nameof(SiteMessage.AccountCreated), StringComparison.OrdinalIgnoreCase))
{
<div class="alert alert-success" role="alert">
<button type="button" class="clos... | apache-2.0 | C# |
14c4c5b072f3e653eb473b9c863ced11146203cf | enable Unknown FacebookPostType | losttech/Facebook.Models | src/FacebookPostType.cs | src/FacebookPostType.cs | namespace Facebook.Models
{
using System.Runtime.Serialization;
public enum FacebookPostType
{
[EnumMember(Value = "")]
Unknown,
[EnumMember(Value = "mobile_status_update")]
Mobile,
[EnumMember(Value = "created_note")]
Note,
[EnumMember(Value = "adde... | namespace Facebook.Models
{
using System.Runtime.Serialization;
public enum FacebookPostType
{
[EnumMember(Value = "mobile_status_update")]
Mobile,
[EnumMember(Value = "created_note")]
Note,
[EnumMember(Value = "added_photos")]
Photos,
[EnumMember(Va... | apache-2.0 | C# |
1f7909117f1fd7d565b8a6bc2c51003191034802 | Add parallelism to Tests project | atata-framework/atata,YevgeniyShunevych/Atata,YevgeniyShunevych/Atata,atata-framework/atata | src/Atata.Tests/Properties/AssemblyInfo.cs | src/Atata.Tests/Properties/AssemblyInfo.cs | using NUnit.Framework;
using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("Atata.Tests")]
[assembly: Guid("9d0aa4f2-4987-4395-be95-76abc329b7a0")]
[assembly: LevelOfParallelism(4)]
[assembly: Parallelizable(ParallelScope.Fixtures)]
[assembly: Atata.Culture("en-us")] | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("Atata.Tests")]
[assembly: Guid("9d0aa4f2-4987-4395-be95-76abc329b7a0")] | apache-2.0 | C# |
88719cbb7526046aaa7f64951fef0de22087193d | update profile ssl and Microsoft MVP (#380) | planetxamarin/planetxamarin,planetxamarin/planetxamarin,planetxamarin/planetxamarin,planetxamarin/planetxamarin | src/Firehose.Web/Authors/MichaelRidland.cs | src/Firehose.Web/Authors/MichaelRidland.cs | using System;
using System.Collections.Generic;
using Firehose.Web.Infrastructure;
namespace Firehose.Web.Authors
{
public class MichaelRidland : IAmAXamarinMVP, IAmAMicrosoftMVP
{
public string FirstName => "Michael";
public string LastName => "Ridland";
public string StateOrRegion ... | using System;
using System.Collections.Generic;
using Firehose.Web.Infrastructure;
namespace Firehose.Web.Authors
{
public class MichaelRidland : IAmAXamarinMVP
{
public string FirstName => "Michael";
public string LastName => "Ridland";
public string StateOrRegion => "Sydney, Austra... | mit | C# |
32957c47d08dd0815bdbe8782b8a137b017a071d | Update CloneExtension.cs | NMSLanX/Natasha | src/Natasha/ExtensionApi/CloneExtension.cs | src/Natasha/ExtensionApi/CloneExtension.cs | using System;
using System.Collections.Generic;
using System.Text;
namespace Natasha.Clone
{
public static class CloneExtension
{
public static T Clone<T>(this T instance)
{
return CloneOperator.Clone(instance);
}
}
}
| using System;
using System.Collections.Generic;
using System.Text;
namespace Natasha.Clone
{
public static class CloneExtension
{
public static T Clone<T>(this T instance) where T : Delegate
{
return CloneOperator.Clone(instance);
}
}
}
| mpl-2.0 | C# |
88fb2596e00ee156ead29966076260914caf0658 | Make ServerFactory public | tgstation/tgstation-server,tgstation/tgstation-server-tools,tgstation/tgstation-server,Cyberboss/tgstation-server,Cyberboss/tgstation-server | src/Tgstation.Server.Host/ServerFactory.cs | src/Tgstation.Server.Host/ServerFactory.cs | using Microsoft.AspNetCore;
namespace Tgstation.Server.Host
{
/// <inheritdoc />
public sealed class ServerFactory : IServerFactory
{
/// <inheritdoc />
public IServer CreateServer(string[] args, string updatePath) => new Server(WebHost.CreateDefaultBuilder(args), updatePath);
}
}
| using Microsoft.AspNetCore;
namespace Tgstation.Server.Host
{
/// <inheritdoc />
sealed class ServerFactory : IServerFactory
{
/// <inheritdoc />
public IServer CreateServer(string[] args, string updatePath) => new Server(WebHost.CreateDefaultBuilder(args), updatePath);
}
}
| agpl-3.0 | C# |
cba5bd3195c82e46aa1009860e3385ae8a5e7524 | Fix init firebase manager. | Senspark/ee-x,Senspark/ee-x,Senspark/ee-x,Senspark/ee-x,Senspark/ee-x,Senspark/ee-x,Senspark/ee-x,Senspark/ee-x,Senspark/ee-x | src/unity/Runtime/Services/Internal/FirebaseManager.cs | src/unity/Runtime/Services/Internal/FirebaseManager.cs | using System;
using System.Threading.Tasks;
using UnityEngine;
using UnityEngine.Assertions;
namespace EE.Internal {
internal static class FirebaseManager {
private static Task<bool> _initializer;
public static Task<bool> Initialize() => _initializer = _initializer ?? (_initializer = InitializeIm... | using System;
using System.Threading.Tasks;
using UnityEngine;
using UnityEngine.Assertions;
namespace EE.Internal {
internal static class FirebaseManager {
private static Task<bool> _initializer;
public static Task<bool> Initialize() => _initializer = _initializer ?? (_initializer = InitializeIm... | mit | C# |
605ad57d0165ff19abb20bd53ecf8421c1e3fdf3 | Fix GameWindow.AllowUserResizing | sharpdx/Toolkit,tomba/Toolkit,sharpdx/Toolkit | Source/Toolkit/SharpDX.Toolkit.Game/GameWindowForm.cs | Source/Toolkit/SharpDX.Toolkit.Game/GameWindowForm.cs | // Copyright (c) 2010-2012 SharpDX - Alexandre Mutel
//
// 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, modi... | // Copyright (c) 2010-2012 SharpDX - Alexandre Mutel
//
// 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, modi... | mit | C# |
94d6820c13dd609ae4b9bf36e79e955d5a070cf0 | Swap to IUserComposer | Gibe/Gibe.Navigation | Gibe.Navigation.Umbraco/GibeNavigationComposer.cs | Gibe.Navigation.Umbraco/GibeNavigationComposer.cs | using Gibe.Navigation.Models;
using Gibe.Navigation.Umbraco.Filters;
using Gibe.UmbracoWrappers;
using Umbraco.Core;
using Umbraco.Core.Composing;
namespace Gibe.Navigation.Umbraco
{
public class GibeNavigationComposer : IUserComposer
{
public void Compose(Composition composition)
{
composition.Register<INav... | using Gibe.Navigation.Models;
using Gibe.Navigation.Umbraco.Filters;
using Gibe.UmbracoWrappers;
using Umbraco.Core;
using Umbraco.Core.Composing;
namespace Gibe.Navigation.Umbraco
{
public class GibeNavigationComposer : IComposer
{
public void Compose(Composition composition)
{
composition.Register<INavigat... | mit | C# |
1d0afd15b666f370854eded251f7dfb313d6aed5 | Fix typo. | JohanLarsson/Gu.State,JohanLarsson/Gu.State,JohanLarsson/Gu.ChangeTracking | Gu.State/Internals/Reflection/IGetterAndSetter.cs | Gu.State/Internals/Reflection/IGetterAndSetter.cs | namespace Gu.State
{
using System;
using System.Reflection;
/// <summary>Provides functionlaity for getting and setting values for a member.</summary>
internal interface IGetterAndSetter
{
/// <summary>Gets the declaring type of the member.</summary>
Type SourceType { get; }
... | namespace Gu.State
{
using System;
using System.Reflection;
/// <summary>Provides functionlaity for getting and setting values for a member.</summary>
internal interface IGetterAndSetter
{
/// <summary>Gets the declaring type of the member.</summary>
Type SourceType { get; }
... | mit | C# |
02be323fb3f4d9b3b274bec4393285d15b1cf8fd | Update source reader tests according to new specs | IfElseSwitch/hc-engine,IfElseSwitch/hc-engine | HCEngine/HCEngine.UnitTesting/SourceReaderTest.cs | HCEngine/HCEngine.UnitTesting/SourceReaderTest.cs | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using HCEngine.Default;
namespace HCEngine.UnitTesting
{
[TestClass]
public class SourceReaderTest
{
[TestMethod]
public void TestReadingNormal()
{
string[] expected = new string[] { "reading", "this", "s... | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using HCEngine.Default;
namespace HCEngine.UnitTesting
{
[TestClass]
public class SourceReaderTest
{
[TestMethod]
public void TestReadingNormal()
{
string[] expected = new string[] { "reading", "this", "s... | mit | C# |
b76fbbf8e51014995bb2e6aed0735430abbe3af6 | Fix crew to reference by BroeCrewId | MelHarbour/HeadRaceTiming-Site,MelHarbour/HeadRaceTiming-Site,MelHarbour/HeadRaceTiming-Site | HeadRaceTiming-Site/Controllers/CrewController.cs | HeadRaceTiming-Site/Controllers/CrewController.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using HeadRaceTimingSite.Models;
using Microsoft.EntityFrameworkCore;
namespace HeadRaceTimingSite.Controllers
{
public class CrewController : BaseController
{
public CrewCon... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using HeadRaceTimingSite.Models;
using Microsoft.EntityFrameworkCore;
namespace HeadRaceTimingSite.Controllers
{
public class CrewController : BaseController
{
public CrewCon... | mit | C# |
eaffe33a22a86ee59ed07f4ad79dcd254a664d09 | Update DeliveryClientFactory.cs | Kentico/delivery-sdk-net,Kentico/Deliver-.NET-SDK | Kentico.Kontent.Delivery/DeliveryClientFactory.cs | Kentico.Kontent.Delivery/DeliveryClientFactory.cs | using System;
using Kentico.Kontent.Delivery.Abstractions;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Options;
using Newtonsoft.Json;
namespace Kentico.Kontent.Delivery
{
/// <summary>
/// A factory class for <see cref="IDeliveryClient"/>
/// </summary>
public class Del... | using System;
using Kentico.Kontent.Delivery.Abstractions;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Options;
using Newtonsoft.Json;
namespace Kentico.Kontent.Delivery
{
/// <summary>
/// A factory class for <see cref="IDeliveryClient"/>
/// </summary>
public class Del... | mit | C# |
0d3d889e480a3e1a33d4b0319d75a20858cc193b | fix the position | Steguer/MTLGJ,Steguer/MTLGJ | Assets/Scripts/Gui.cs | Assets/Scripts/Gui.cs | using UnityEngine;
using System.Collections;
public class Gui : MonoBehaviour {
public float timer = 100;
private GameObject[] playerArray;
private float timeBuffer;
// Use this for initialization
void Start () {
playerArray = GameObject.FindGameObjectsWithTag("Player");
timeBuffer = Time.time;
}
// U... | using UnityEngine;
using System.Collections;
public class Gui : MonoBehaviour {
public float timer = 100;
private GameObject[] playerArray;
private float timeBuffer;
// Use this for initialization
void Start () {
playerArray = GameObject.FindGameObjectsWithTag("Player");
timeBuffer = Time.time;
}
// U... | mit | C# |
886bee57c85901d09f815da232a4fb5969e01a4c | Mark the empty method detour test as NoInlining | AngelDE98/MonoMod,0x0ade/MonoMod | MonoMod.UnitTest/RuntimeDetour/DetourEmptyTest.cs | MonoMod.UnitTest/RuntimeDetour/DetourEmptyTest.cs | #pragma warning disable CS1720 // Expression will always cause a System.NullReferenceException because the type's default value is null
#pragma warning disable xUnit1013 // Public method should be marked as test
using Xunit;
using MonoMod.RuntimeDetour;
using System;
using System.Reflection;
using System.Runtime.Comp... | #pragma warning disable CS1720 // Expression will always cause a System.NullReferenceException because the type's default value is null
#pragma warning disable xUnit1013 // Public method should be marked as test
using Xunit;
using MonoMod.RuntimeDetour;
using System;
using System.Reflection;
using System.Runtime.Comp... | mit | C# |
d38cc62c354e51bb6ab8f85fe0c470e7cd7bfecc | Disable GenerateSchemaTaskTest.cs | Ackara/Daterpillar | tests/MSTest.Daterpillar/Tests/GenerateSchemaTaskTest.cs | tests/MSTest.Daterpillar/Tests/GenerateSchemaTaskTest.cs | using Ackara.Daterpillar.MSBuild;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Shouldly;
using System;
using System.IO;
using System.Linq;
using System.Reflection;
namespace MSTest.Daterpillar.Tests
{
[TestClass]
public class GenerateSchemaTaskTest
{
//[TestMethod]
public void... | using Ackara.Daterpillar.MSBuild;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Shouldly;
using System;
using System.IO;
using System.Linq;
using System.Reflection;
namespace MSTest.Daterpillar.Tests
{
[TestClass]
public class GenerateSchemaTaskTest
{
[TestMethod]
public void E... | mit | C# |
ebb847ff40fd173a45dd4de6c2a7e1e442ba3c35 | Test commit for identity. | predictive-technology-laboratory/sensus,predictive-technology-laboratory/sensus,predictive-technology-laboratory/sensus,predictive-technology-laboratory/sensus,predictive-technology-laboratory/sensus,predictive-technology-laboratory/sensus | Sensus.Tests.AppCenter.Shared/UnitTestsFixture.cs | Sensus.Tests.AppCenter.Shared/UnitTestsFixture.cs | // Copyright 2014 The Rector & Visitors of the University of Virginia
//
// 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 re... | // Copyright 2014 The Rector & Visitors of the University of Virginia
//
// 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 re... | apache-2.0 | C# |
0075fc88e610237ac80bf3be8080558f46f325b2 | Add public property | StefanoFiumara/Harry-Potter-Unity | Assets/Scripts/HarryPotterUnity/Cards/BasicBehavior/DirectDamageSpell.cs | Assets/Scripts/HarryPotterUnity/Cards/BasicBehavior/DirectDamageSpell.cs | using System.Collections.Generic;
using JetBrains.Annotations;
using UnityEngine;
namespace HarryPotterUnity.Cards.BasicBehavior
{
public class DirectDamageSpell : BaseSpell {
[Header("Direct Damage Spell Settings"), Space(10)]
[UsedImplicitly, SerializeField]
private int _damageA... | using System.Collections.Generic;
using JetBrains.Annotations;
using UnityEngine;
namespace HarryPotterUnity.Cards.BasicBehavior
{
public class DirectDamageSpell : BaseSpell {
[Header("Direct Damage Spell Settings"), Space(10)]
[UsedImplicitly, SerializeField]
private int _damageA... | mit | C# |
0cafa81aa282031c7f934c178545cb0bff322b98 | bump version | Fody/Obsolete | CommonAssemblyInfo.cs | CommonAssemblyInfo.cs | using System.Reflection;
[assembly: AssemblyTitle("Obsolete")]
[assembly: AssemblyProduct("Obsolete")]
[assembly: AssemblyVersion("1.4.2.0")]
[assembly: AssemblyFileVersion("1.4.2.0")]
| using System.Reflection;
[assembly: AssemblyTitle("Obsolete")]
[assembly: AssemblyProduct("Obsolete")]
[assembly: AssemblyVersion("1.4.1.0")]
[assembly: AssemblyFileVersion("1.4.1.0")]
| mit | C# |
6f92b46999af97d5d43285679a23aa79b00d79f7 | Make user voice content provider work with https. | e10/JabbR,ClarkL/test09jabbr,test0925/test0925,mogultest2/Project92104,aapttester/jack12051317,LookLikeAPro/JabbR,M-Zuber/JabbR,mogulTest1/Project13171109,test0925/test0925,mogulTest1/Project13231109,LookLikeAPro/JabbR,meebey/JabbR,AAPT/jean0226case1322,ClarkL/1317on17jabbr,MogulTestOrg914/Project91407,mogulTest1/Proje... | JabbR/ContentProviders/UserVoiceContentProvider.cs | JabbR/ContentProviders/UserVoiceContentProvider.cs | using System;
using System.Threading.Tasks;
using JabbR.ContentProviders.Core;
using JabbR.Infrastructure;
namespace JabbR.ContentProviders
{
public class UserVoiceContentProvider : CollapsibleContentProvider
{
private static readonly string _uservoiceAPIURL = "https://{0}/api/v1/oembed.json?url={1}";... | using System;
using System.Threading.Tasks;
using JabbR.ContentProviders.Core;
using JabbR.Infrastructure;
namespace JabbR.ContentProviders
{
public class UserVoiceContentProvider : CollapsibleContentProvider
{
private static readonly string _uservoiceAPIURL = "http://{0}/api/v1/oembed.json?url={1}";
... | mit | C# |
cb3f142a849bd21547f6256501ee80ab379dd983 | Update AutoMapperConfiguration.cs - update SkillEntity mapping | NinjaVault/NinjaHive,NinjaVault/NinjaHive | NinjaHive.BusinessLayer/AutoMapperConfiguration.cs | NinjaHive.BusinessLayer/AutoMapperConfiguration.cs | using AutoMapper;
using NinjaHive.Contract.DTOs;
using NinjaHive.Domain;
namespace NinjaHive.BusinessLayer
{
public class AutoMapperConfiguration
{
public static void Configure()
{
Mapper.CreateMap<EquipmentItemEntity, EquipmentItem>()
.ForMember(destination => de... | using AutoMapper;
using NinjaHive.Contract.DTOs;
using NinjaHive.Domain;
namespace NinjaHive.BusinessLayer
{
public class AutoMapperConfiguration
{
public static void Configure()
{
Mapper.CreateMap<EquipmentItemEntity, EquipmentItem>()
.ForMember(destination => de... | apache-2.0 | C# |
81d49852455c85b58a9efac2acda25b0357d3a28 | fix silly null ref mistake | dabutvin/ImgBot,dabutvin/ImgBot,dabutvin/ImgBot | OpenPrFunction/OpenPr.cs | OpenPrFunction/OpenPr.cs | using System;
using System.IO;
using System.Threading.Tasks;
using Common;
using Common.Messages;
using Common.TableModels;
using Install;
using Microsoft.Azure.WebJobs;
using Microsoft.Extensions.Logging;
namespace OpenPrFunction
{
public static class OpenPr
{
[Singleton("{InstallationId}")] // https:... | using System;
using System.IO;
using System.Threading.Tasks;
using Common;
using Common.Messages;
using Common.TableModels;
using Install;
using Microsoft.Azure.WebJobs;
using Microsoft.Extensions.Logging;
namespace OpenPrFunction
{
public static class OpenPr
{
[Singleton("{InstallationId}")] // https:... | mit | C# |
b66566e96d4f22d7e4351443ea8d999fd7f9bce7 | Use explicit culture info rather than `null` | NeoAdonis/osu,ppy/osu,ppy/osu,peppy/osu,ppy/osu,NeoAdonis/osu,NeoAdonis/osu,peppy/osu,peppy/osu | osu.Game/Overlays/Settings/Sections/SizeSlider.cs | osu.Game/Overlays/Settings/Sections/SizeSlider.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Globalization;
using osu.Framework.Localisation;
using osu.Game.Graphics.UserInterface;
namespace osu.Game.Overlays.Settings.Sections
{
//... | // 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.Localisation;
using osu.Game.Graphics.UserInterface;
namespace osu.Game.Overlays.Settings.Sections
{
/// <summary>
/// A slider... | mit | C# |
e3b8d8ee1875d357db0198894fb8c475969f090e | Add support for overlay-coloured links | UselessToucan/osu,smoogipoo/osu,UselessToucan/osu,smoogipoo/osu,peppy/osu-new,peppy/osu,peppy/osu,NeoAdonis/osu,UselessToucan/osu,NeoAdonis/osu,smoogipoo/osu,ppy/osu,peppy/osu,ppy/osu,smoogipooo/osu,ppy/osu,NeoAdonis/osu | osu.Game/Online/Chat/DrawableLinkCompiler.cs | osu.Game/Online/Chat/DrawableLinkCompiler.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.Collections.Generic;
using System.Linq;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Game.Graphics;
using osu.Game.Graphics.Conta... | // 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.Collections.Generic;
using System.Linq;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Game.Graphics;
using osu.Game.Graphics.Conta... | mit | C# |
24494db95ddd6c6b102400f7be3ecf9e39ab696b | Update CrossSettings.cs | LostBalloon1/Xamarin.Plugins,JC-Chris/Xamarin.Plugins,labdogg1003/Xamarin.Plugins,jamesmontemagno/Xamarin.Plugins,monostefan/Xamarin.Plugins,predictive-technology-laboratory/Xamarin.Plugins,tim-hoff/Xamarin.Plugins | Settings/Refractored.Xam.Settings/CrossSettings.cs | Settings/Refractored.Xam.Settings/CrossSettings.cs | /*
* MvxSettings:
* Copyright (C) 2014 Refractored:
*
* Contributors:
* http://github.com/JamesMontemagno
*
* 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.ap... | /*
* MvxSettings:
* Copyright (C) 2014 Refractored:
*
* Contributors:
* http://github.com/JamesMontemagno
*
* 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.ap... | mit | C# |
5ab8c688da25178a6c0522b33288e4315b8a1d73 | Fix baseline tests. | mysql-net/MySqlConnector,mysql-net/MySqlConnector | tests/SideBySide/CharacterSetTests.cs | tests/SideBySide/CharacterSetTests.cs | using Dapper;
#if !BASELINE
using MySql.Data.Serialization;
#endif
using Xunit;
namespace SideBySide
{
public class CharacterSetTests : IClassFixture<DatabaseFixture>
{
public CharacterSetTests(DatabaseFixture database)
{
m_database = database;
}
#if !BASELINE
[Fact]
public void MaxLength()
{
usin... | using Dapper;
using MySql.Data.Serialization;
using Xunit;
namespace SideBySide
{
public class CharacterSetTests : IClassFixture<DatabaseFixture>
{
public CharacterSetTests(DatabaseFixture database)
{
m_database = database;
}
#if !BASELINE
[Fact]
public void MaxLength()
{
using (var reader = m_dat... | mit | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.