commit stringlengths 40 40 | old_file stringlengths 4 264 | new_file stringlengths 4 264 | old_contents stringlengths 0 4.24k | new_contents stringlengths 1 5.44k | subject stringlengths 14 778 | message stringlengths 15 9.92k | lang stringclasses 277
values | license stringclasses 13
values | repos stringlengths 5 127k |
|---|---|---|---|---|---|---|---|---|---|
74d3703892141f79a367d81b43556f702f2617d6 | Msiler/DialogPages/ExtensionDisplayOptions.cs | Msiler/DialogPages/ExtensionDisplayOptions.cs | using System.ComponentModel;
namespace Msiler.DialogPages
{
public class ExtensionDisplayOptions : MsilerDialogPage
{
[Category("Display")]
[DisplayName("Listing font name")]
[Description("")]
public string FontName { get; set; } = "Consolas";
[Category("Display")]
... | using System.ComponentModel;
namespace Msiler.DialogPages
{
public class ExtensionDisplayOptions : MsilerDialogPage
{
[Category("Display")]
[DisplayName("Listing font name")]
[Description("")]
public string FontName { get; set; } = "Consolas";
[Category("Display")]
... | Disable line numbers by default | Disable line numbers by default
| C# | mit | segrived/Msiler |
30e6bde4a79fcd797de571d2561211172f8f5788 | OpcMock/OpcMockTests/ProtocolComparerTests.cs | OpcMock/OpcMockTests/ProtocolComparerTests.cs | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using OpcMock;
namespace OpcMockTests
{
[TestClass]
public class ProtocolComparerTests
{
private const int EQUALITY = 0;
[TestMethod]
public void Protocols_With_The_Same_Name_Are_Equal()
{
Protoc... | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using OpcMock;
namespace OpcMockTests
{
[TestClass]
public class ProtocolComparerTests
{
private const int EQUALITY = 0;
[TestMethod]
public void ProtocolsWithTheSameNameShould_Be_Equal()
{
Proto... | Test names changed to Should notation | Test names changed to Should notation
| C# | mit | msdeibel/opcmock |
f09fd206f17c9de6d65fbcb4693891e2cf4b8bfe | src/Glimpse.Common/Broker/IMessageBus.cs | src/Glimpse.Common/Broker/IMessageBus.cs | using System;
namespace Glimpse
{
public interface IMessageBus
{
IObservable<T> Listen<T>();
IObservable<T> ListenIncludeLatest<T>();
void SendMessage(object message);
}
} | using System;
namespace Glimpse
{
public interface IMessageBus
{
IObservable<T> Listen<T>()
where T : IMessage;
IObservable<T> ListenIncludeLatest<T>()
where T : IMessage;
void SendMessage(IMessage message);
}
} | Update types on Message Bus definition | Update types on Message Bus definition
| C# | mit | mike-kaufman/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,pranavkm/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,zanetdev/Glimpse.Prototype,pranavkm/Glimpse.Prototype,zanetdev/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,Glimpse/Glimpse.Prototype,pranavkm/Glimpse.Prototype,Glimpse/Glimpse.Prototype,m... |
e306b01895369d35102ab47ad0ea24ccf3def80c | src/SFA.DAS.EmployerApprenticeshipsService.Infrastructure/Services/HashingService.cs | src/SFA.DAS.EmployerApprenticeshipsService.Infrastructure/Services/HashingService.cs | using SFA.DAS.EmployerApprenticeshipsService.Domain.Interfaces;
using HashidsNet;
namespace SFA.DAS.EmployerApprenticeshipsService.Infrastructure.Services
{
public class HashingService : IHashingService
{
public string HashValue(long id)
{
var hashIds = new Hashids("SFA: digital ap... | using SFA.DAS.EmployerApprenticeshipsService.Domain.Interfaces;
using HashidsNet;
namespace SFA.DAS.EmployerApprenticeshipsService.Infrastructure.Services
{
public class HashingService : IHashingService
{
public string HashValue(long id)
{
var hashIds = new Hashids("SFA: digital ap... | Change so that the minimum hash length is 6 characters and not 10 | Change so that the minimum hash length is 6 characters and not 10
| C# | mit | SkillsFundingAgency/das-employerapprenticeshipsservice,SkillsFundingAgency/das-employerapprenticeshipsservice,SkillsFundingAgency/das-employerapprenticeshipsservice |
b8e07e786c893af6e5ac550021ede9d27fd6d183 | src/bindings/TAPCfgTest.cs | src/bindings/TAPCfgTest.cs |
using TAP;
using System;
using System.Net;
public class TAPCfgTest {
private static void Main(string[] args) {
EthernetDevice dev = new EthernetDevice();
dev.Start("Device name");
Console.WriteLine("Got device name: {0}", dev.DeviceName);
dev.MTU = 1280;
dev.SetAddress(IPAddress.Parse("192.168.1.1"), 16);
... |
using TAP;
using System;
using System.Net;
public class TAPCfgTest {
private static void Main(string[] args) {
EthernetDevice dev = new EthernetDevice();
dev.Start("Device name");
Console.WriteLine("Got device name: {0}", dev.DeviceName);
dev.MTU = 1280;
dev.SetAddress(IPAddress.Parse("192.168.1.1"), 16);
... | Print source and destination addresses on ICMPv6 packets | Print source and destination addresses on ICMPv6 packets | C# | lgpl-2.1 | zhanleewo/tapcfg,zhanleewo/tapcfg,juhovh/tapcfg,juhovh/tapcfg,juhovh/tapcfg,zhanleewo/tapcfg,eyecreate/tapcfg,juhovh/tapcfg,juhovh/tapcfg,juhovh/tapcfg,eyecreate/tapcfg,eyecreate/tapcfg,zhanleewo/tapcfg,eyecreate/tapcfg,eyecreate/tapcfg,zhanleewo/tapcfg |
e79ba9a1299fc54728d9762af30e5e38a02f0e4b | osu.Game/Utils/FormatUtils.cs | osu.Game/Utils/FormatUtils.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.Utils
{
public static class FormatUtils
{
/// <summary>
/// Turns the provided accuracy into a percentage with 2 decimal places... | // 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.Utils
{
public static class FormatUtils
{
/// <summary>
/// Turns the provided accuracy into a percentage with 2 decimal places... | Add alwaysShowDecimals param to FormatAccuracy | Add alwaysShowDecimals param to FormatAccuracy
This allows us to specify whether we want it to show decimal places if accuracy is 100%.
| C# | mit | NeoAdonis/osu,smoogipooo/osu,smoogipoo/osu,UselessToucan/osu,ppy/osu,2yangk23/osu,johnneijzen/osu,ppy/osu,EVAST9919/osu,smoogipoo/osu,NeoAdonis/osu,johnneijzen/osu,NeoAdonis/osu,2yangk23/osu,ppy/osu,UselessToucan/osu,peppy/osu,peppy/osu,peppy/osu-new,peppy/osu,UselessToucan/osu,smoogipoo/osu,EVAST9919/osu |
5d66dbd61002e02441420dd6649bd56b8c9ab0e1 | build.cake | build.cake | //////////////////////////////////////////////////////////////////////
// ARGUMENTS
//////////////////////////////////////////////////////////////////////
var target = Argument("target", "Default");
var configuration = Argument("configuration", "Release");
/////////////////////////////////////////////////////////////... | //////////////////////////////////////////////////////////////////////
// ARGUMENTS
//////////////////////////////////////////////////////////////////////
var target = Argument("target", "Default");
var configuration = Argument("configuration", "Release");
/////////////////////////////////////////////////////////////... | Use DotNetCoreBuild in Cake script. | Use DotNetCoreBuild in Cake script.
| C# | mit | ryanjfitz/SimpSim.NET |
42b77cf0fce04fc60997827c389e31237dc80192 | ECS/EntityComponentSystem.cs | ECS/EntityComponentSystem.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ECS
{
public class EntityComponentSystem
{
private EntityManager entityManager;
private SystemManager systemManager;
public EntityComponentSystem()
{
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ECS
{
public class EntityComponentSystem
{
private EntityManager entityManager;
private SystemManager systemManager;
public EntityComponentSystem()
{
... | Add method for querying active entities | Add method for querying active entities
| C# | apache-2.0 | isurakka/ecs |
112070c536e34b31124c68c2a0309d5754a79ed4 | starboard-remote/Properties/AssemblyInfo.cs | starboard-remote/Properties/AssemblyInfo.cs | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="AssemblyInfo.cs" company="Starboard">
// Copyright © 2011 All Rights Reserved
// </copyright>
// <summary>
// AssemblyInfo.cs
// </summary>
// --------------------------------... | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="AssemblyInfo.cs" company="Starboard">
// Copyright © 2011 All Rights Reserved
// </copyright>
// <summary>
// AssemblyInfo.cs
// </summary>
// --------------------------------... | Change remote app version to v0.1 | Change remote app version to v0.1
| C# | mit | ascendedguard/starboard-sc2 |
10cc9ba0745d07e5616b58133ec60dd1b220482d | Samples/Toolkit/Desktop/MiniCube/Program.cs | Samples/Toolkit/Desktop/MiniCube/Program.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... | Fix compilation error in sample | [Build] Fix compilation error in sample
| C# | mit | tomba/Toolkit,sharpdx/Toolkit,sharpdx/Toolkit |
90f7e83a68dc2372b3b648f228768c0f4d38902e | dev/Manisero.DSLExecutor.Parser.SampleDSL/ExpressionGeneration/FunctionExpressionGeneration/FunctionTypeResolvers/TypeSamplesAndSuffixConventionBasedFunctionTypeResolver.cs | dev/Manisero.DSLExecutor.Parser.SampleDSL/ExpressionGeneration/FunctionExpressionGeneration/FunctionTypeResolvers/TypeSamplesAndSuffixConventionBasedFunctionTypeResolver.cs | using System;
using System.Collections.Generic;
using Manisero.DSLExecutor.Parser.SampleDSL.Parsing.Tokens;
namespace Manisero.DSLExecutor.Parser.SampleDSL.ExpressionGeneration.FunctionExpressionGeneration.FunctionTypeResolvers
{
public class TypeSamplesAndSuffixConventionBasedFunctionTypeResolver : IFuncti... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using Manisero.DSLExecutor.Domain.FunctionsDomain;
using Manisero.DSLExecutor.Extensions;
using Manisero.DSLExecutor.Parser.SampleDSL.Parsing.Tokens;
namespace Manisero.DSLExecutor.Parser.SampleDSL.ExpressionGeneration... | Implement scanning assemblies for function types | Implement scanning assemblies for function types
| C# | mit | manisero/DSLExecutor |
2188c50ee44b4b42a5d27c0342776364ecb30413 | Assets/MixedRealityToolkit.Services/InputSystem/DefaultRaycastProvider.cs | Assets/MixedRealityToolkit.Services/InputSystem/DefaultRaycastProvider.cs | using Microsoft.MixedReality.Toolkit.Physics;
using UnityEngine;
namespace Microsoft.MixedReality.Toolkit.Input
{
/// <summary>
/// The default implementation of IMixedRealityRaycastProvider.
/// </summary>
public class DefaultRaycastProvider : BaseDataProvider, IMixedRealityRaycastProvider
{
... | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using Microsoft.MixedReality.Toolkit.Physics;
using UnityEngine;
namespace Microsoft.MixedReality.Toolkit.Input
{
/// <summary>
/// The default implementati... | Add missing copyright header text. | Add missing copyright header text.
| C# | mit | killerantz/HoloToolkit-Unity,killerantz/HoloToolkit-Unity,killerantz/HoloToolkit-Unity,DDReaper/MixedRealityToolkit-Unity,killerantz/HoloToolkit-Unity |
04446b0633116305a02376c0787526467be409db | XamarinApp/MyTrips/MyTrips.iOS/Screens/Trips/TripSummaryViewController.cs | XamarinApp/MyTrips/MyTrips.iOS/Screens/Trips/TripSummaryViewController.cs | using System;
using UIKit;
namespace MyTrips.iOS
{
public partial class TripSummaryViewController : UIViewController
{
public ViewModel.CurrentTripViewModel ViewModel { get; set; }
public TripSummaryViewController(IntPtr handle) : base(handle) { }
public override void ViewDidLoad()
{
lblDateTime.T... | using System;
using UIKit;
namespace MyTrips.iOS
{
public partial class TripSummaryViewController : UIViewController
{
public ViewModel.CurrentTripViewModel ViewModel { get; set; }
public TripSummaryViewController(IntPtr handle) : base(handle) { }
public override void ViewDidLoad()
{
lblDateTime.T... | Save trip before dismissing summary. | [iOS] Save trip before dismissing summary.
| C# | mit | Azure-Samples/MyDriving,Azure-Samples/MyDriving,Azure-Samples/MyDriving |
830fc7900b5807f10790e0f134313f994f0f0c1e | WalletWasabi/Io/MutexIoManager.cs | WalletWasabi/Io/MutexIoManager.cs | using Nito.AsyncEx;
using WalletWasabi.Crypto;
namespace WalletWasabi.Io
{
public class MutexIoManager : IoManager
{
public MutexIoManager(string filePath) : base(filePath)
{
var shortHash = HashHelpers.GenerateSha256Hash(FilePath).Substring(1, 7);
// https://docs.microsoft.com/en-us/dotnet/api/system.thr... | using Nito.AsyncEx;
using WalletWasabi.Crypto;
namespace WalletWasabi.Io
{
public class MutexIoManager : IoManager
{
public MutexIoManager(string filePath) : base(filePath)
{
var shortHash = HashHelpers.GenerateSha256Hash(FilePath).Substring(0, 7);
// https://docs.microsoft.com/en-us/dotnet/api/system.thr... | Fix off by one bug | Fix off by one bug
| C# | mit | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet |
47010a1cf7b4524ce919f59474aaac0a58ccea16 | Mathematicians.UnitTests/SqlGeneratorTests.cs | Mathematicians.UnitTests/SqlGeneratorTests.cs | using FluentAssertions;
using MergableMigrations.EF6;
using MergableMigrations.Specification.Implementation;
using System;
using System.Linq;
using Xunit;
namespace Mathematicians.UnitTests
{
public class SqlGeneratorTests
{
[Fact]
public void CanGenerateSql()
{
var migrati... | using FluentAssertions;
using MergableMigrations.EF6;
using MergableMigrations.Specification;
using MergableMigrations.Specification.Implementation;
using System;
using System.Linq;
using Xunit;
namespace Mathematicians.UnitTests
{
public class SqlGeneratorTests
{
[Fact]
public void CanGenerat... | Test for migrations up to date. | Test for migrations up to date.
| C# | mit | schemavolution/schemavolution,schemavolution/schemavolution |
b8c5b18fb61b394bfed594fc71137a17ea36015c | Criteo.Profiling.Tracing/Utils/RandomUtils.cs | Criteo.Profiling.Tracing/Utils/RandomUtils.cs | using System;
using System.Threading;
namespace Criteo.Profiling.Tracing.Utils
{
/// <summary>
/// Thread-safe random long generator.
///
/// See "Correct way to use Random in multithread application"
/// http://stackoverflow.com/questions/19270507/correct-way-to-use-random-in-multithread-applicat... | using System;
using System.Threading;
namespace Criteo.Profiling.Tracing.Utils
{
/// <summary>
/// Thread-safe random long generator.
///
/// See "Correct way to use Random in multithread application"
/// http://stackoverflow.com/questions/19270507/correct-way-to-use-random-in-multithread-applicat... | Change random to avoid identical seed | Change random to avoid identical seed
It seems it is possible for two processes started at the exact same time to get the same seed.
This could be the case for IIS where 2 handlers are started simultaneously.
Change-Id: I156fac5fe8c91c0931d38b0b6e5fe5cfb0e83665
| C# | apache-2.0 | criteo/zipkin4net,criteo/zipkin4net |
8b60af548da68814cde28002dee42f290c233d47 | NuPack/PackageAuthoring.cs | NuPack/PackageAuthoring.cs | using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
namespace NuPack {
public class PackageAuthoring {
private static readonly HashSet<string> _exclude = new HashSet<string>(new[] { ".nupack", ".nuspec" },
... | using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
namespace NuPack {
public class PackageAuthoring {
private static readonly HashSet<string> _exclude = new HashSet<string>(new[] { ".nupack", ".nuspec" },
... | Allow output directory to be specified as a second parameter. | Allow output directory to be specified as a second parameter.
| C# | apache-2.0 | oliver-feng/nuget,indsoft/NuGet2,xoofx/NuGet,indsoft/NuGet2,dolkensp/node.net,chocolatey/nuget-chocolatey,antiufo/NuGet2,alluran/node.net,mrward/NuGet.V2,jmezach/NuGet2,dolkensp/node.net,chocolatey/nuget-chocolatey,ctaggart/nuget,OneGet/nuget,RichiCoder1/nuget-chocolatey,themotleyfool/NuGet,ctaggart/nuget,oliver-feng/n... |
15fb0c0690bc141ec464488194a07fc6e8544e30 | osu.Framework/Allocation/AsyncDisposalQueue.cs | osu.Framework/Allocation/AsyncDisposalQueue.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using osu.Framework.Statistics;
namespace osu.Framework.Allocation
{
/// <summary>
... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using osu.Framework.Statistics;
namespace osu.Framework.Allocation
{
/// <summary>
... | Make the queue into a list | Make the queue into a list
| C# | mit | EVAST9919/osu-framework,ppy/osu-framework,EVAST9919/osu-framework,ZLima12/osu-framework,ppy/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,EVAST9919/osu-framework,ZLima12/osu-framework,ppy/osu-framework,peppy/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,EVAST9919/osu-framework |
4a1e3fbd42b1a00c07c81527e40512f2eb1c5eba | tests/Okanshi.Tests/PerformanceCounterTest.cs | tests/Okanshi.Tests/PerformanceCounterTest.cs | using System.Diagnostics;
using FluentAssertions;
using Xunit;
namespace Okanshi.Test
{
public class PerformanceCounterTest
{
[Fact]
public void Performance_counter_without_instance_name()
{
var performanceCounter = new PerformanceCounter("Memory", "Available Bytes");
var monitor = new PerformanceCount... | using System.Diagnostics;
using FluentAssertions;
using Xunit;
namespace Okanshi.Test
{
public class PerformanceCounterTest
{
[Fact]
public void Performance_counter_without_instance_name()
{
var performanceCounter = new PerformanceCounter("Memory", "Available Bytes");
var monitor = new PerformanceCount... | Make performance counter tests more stable | Make performance counter tests more stable
| C# | mit | mvno/Okanshi,mvno/Okanshi,mvno/Okanshi |
736aa068ccbc58ca4a38221be9514c641f9fa754 | mvcWebApp/Controllers/HomeController.cs | mvcWebApp/Controllers/HomeController.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Web;
using System.Web.Hosting;
using System.Web.Mvc;
namespace mvcWebApp.Controllers
{
public class HomeController : Controller
{
//
// GET: /Home/
public ActionResult Index()
{
... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Web;
using System.Web.Hosting;
using System.Web.Mvc;
namespace mvcWebApp.Controllers
{
public class HomeController : Controller
{
public string domain
{
get
{
... | Make domain a property for reuse. | Make domain a property for reuse.
| C# | mit | bigfont/sweet-water-revolver |
48e50ba37c24cc2a3125ed0853708f3ca51f13bb | src/Nest/Domain/Responses/SearchShardsResponse.cs | src/Nest/Domain/Responses/SearchShardsResponse.cs | using System.Collections.Generic;
using Nest.Domain;
using Newtonsoft.Json;
using System.Linq.Expressions;
using System;
using System.Linq;
namespace Nest
{
[JsonObject(MemberSerialization.OptIn)]
public interface ISearchShardsResponse : IResponse
{
[JsonProperty("shards")]
IEnumerable<IEnumerable<SearchShard... | using Nest.Domain;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
namespace Nest
{
[JsonObject(MemberSerialization.OptIn)]
public interface ISearchShardsResponse : IResponse
{
[JsonProperty("shards")]
IEnumerable<IEnumerable... | Fix wrong property mapping in SearchShard | Fix wrong property mapping in SearchShard
| C# | apache-2.0 | CSGOpenSource/elasticsearch-net,tkirill/elasticsearch-net,CSGOpenSource/elasticsearch-net,robertlyson/elasticsearch-net,ststeiger/elasticsearch-net,UdiBen/elasticsearch-net,faisal00813/elasticsearch-net,DavidSSL/elasticsearch-net,KodrAus/elasticsearch-net,tkirill/elasticsearch-net,tkirill/elasticsearch-net,adam-mccoy/e... |
fecd3d778a6dcd5722637e092a1f3e6c6ae8c466 | Src/Glimpse.Nancy/GlimpseRegistrations.cs | Src/Glimpse.Nancy/GlimpseRegistrations.cs | using System.Collections.Generic;
using Glimpse.Core.Extensibility;
using Nancy.Bootstrapper;
namespace Glimpse.Nancy
{
public class GlimpseRegistrations : IApplicationRegistrations
{
public GlimpseRegistrations()
{
AppDomainAssemblyTypeScanner.AddAssembliesToScan(typeof(Glimpse.Co... | using System.Collections.Generic;
using Glimpse.Core.Extensibility;
using Nancy.Bootstrapper;
namespace Glimpse.Nancy
{
public class GlimpseRegistrations : IRegistrations
{
public GlimpseRegistrations()
{
AppDomainAssemblyTypeScanner.AddAssembliesToScan(typeof(Glimpse.Core.Tab.Time... | Remove usage of obsolete IApplicationRegistration | Remove usage of obsolete IApplicationRegistration
| C# | mit | csainty/Glimpse.Nancy,csainty/Glimpse.Nancy,csainty/Glimpse.Nancy |
1f90b9f159b4a190c815b90e5a2057c6b5955b3d | Battery-Commander.Web/Models/EvaluationListViewModel.cs | Battery-Commander.Web/Models/EvaluationListViewModel.cs | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
namespace BatteryCommander.Web.Models
{
public class EvaluationListViewModel
{
public IEnumerable<Evaluation> Evaluations { get; set; } = Enumerable.Empty<Evaluation>();
[Display(Na... | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
namespace BatteryCommander.Web.Models
{
public class EvaluationListViewModel
{
public IEnumerable<Evaluation> Evaluations { get; set; } = Enumerable.Empty<Evaluation>();
[Display(Na... | Fix logic on 30/60/90 day buckets | Fix logic on 30/60/90 day buckets
| C# | mit | mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander |
18e54b8bdc2e427a4929c8b7177478c3d370fd74 | src/Tests/NamespaceTests.cs | src/Tests/NamespaceTests.cs | using System;
using System.Linq;
using FluentAssertions;
using NSaga;
using Xunit;
namespace Tests
{
public class NamespaceTests
{
[Fact]
public void NSaga_Contains_Only_One_Namespace()
{
//Arrange
var assembly = typeof(ISagaMediator).Assembly;
// A... | using System;
using System.Linq;
using FluentAssertions;
using NSaga;
using Xunit;
namespace Tests
{
public class NamespaceTests
{
[Fact]
public void NSaga_Contains_Only_One_Namespace()
{
//Arrange
var assembly = typeof(ISagaMediator).Assembly;
// A... | Test to check tinyioc is internal | Test to check tinyioc is internal
| C# | mit | AMVSoftware/NSaga |
94441380f5586776b487ae70e2b8ccdc0254d982 | src/Yio/Views/Shared/_AboutPanelPartial.cshtml | src/Yio/Views/Shared/_AboutPanelPartial.cshtml | @{
var version = "";
var versionName = Yio.Data.Constants.VersionConstant.Codename.ToString();
if(Yio.Data.Constants.VersionConstant.Patch == 0) {
version = Yio.Data.Constants.VersionConstant.Release.ToString();
} else {
version = Yio.Data.Constants.VersionConstant.Release.ToString() + ... | @{
var version = "";
var versionName = Yio.Data.Constants.VersionConstant.Codename.ToString();
if(Yio.Data.Constants.VersionConstant.Patch == 0) {
version = Yio.Data.Constants.VersionConstant.Release.ToString();
} else {
version = Yio.Data.Constants.VersionConstant.Release.ToString() + ... | Add license and disclaimer to About panel | Add license and disclaimer to About panel
| C# | mit | Zyrio/ictus,Zyrio/ictus |
7ee8f0cca2fee7ee576bb40995d07c03d0746c29 | src/ResourceManager/Profile/Commands.Profile/DataCollection/EnableAzureRMDataCollection.cs | src/ResourceManager/Profile/Commands.Profile/DataCollection/EnableAzureRMDataCollection.cs | // ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apa... | // ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apa... | Fix data collection cmdlets to not require login | Fix data collection cmdlets to not require login
| C# | apache-2.0 | zhencui/azure-powershell,naveedaz/azure-powershell,alfantp/azure-powershell,yantang-msft/azure-powershell,pomortaz/azure-powershell,devigned/azure-powershell,zhencui/azure-powershell,zhencui/azure-powershell,dulems/azure-powershell,yoavrubin/azure-powershell,dominiqa/azure-powershell,akurmi/azure-powershell,atpham256/a... |
b93b6ba2ca215fac5a66e224695a908ff57925e9 | osu.Game.Rulesets.Osu/Mods/OsuModSingleTap.cs | osu.Game.Rulesets.Osu/Mods/OsuModSingleTap.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;
namespace osu.Game.Rulesets.Osu.Mods
{
public class OsuModSingleTap : InputBlockingMod
{
public override string Name => ... | // 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;
namespace osu.Game.Rulesets.Osu.Mods
{
public class OsuModSingleTap : InputBlockingMod
{
public override string Name => ... | Change "single tap" mod acronym to not conflict with "strict tracking" | Change "single tap" mod acronym to not conflict with "strict tracking"
| C# | mit | ppy/osu,peppy/osu,ppy/osu,peppy/osu,peppy/osu,ppy/osu |
f324072d44d70ec439fe8ef17e95f7dff2d426a2 | osu.Game.Tournament.Tests/TestCaseMapPool.cs | osu.Game.Tournament.Tests/TestCaseMapPool.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 System.Linq;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Game.Tournament.Components;
using osu... | // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System.Linq;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Game.Screens;
using osu.Game.Tourname... | Make map pool layout more correct | Make map pool layout more correct
| C# | mit | johnneijzen/osu,EVAST9919/osu,2yangk23/osu,UselessToucan/osu,peppy/osu-new,smoogipoo/osu,ppy/osu,peppy/osu,smoogipoo/osu,UselessToucan/osu,EVAST9919/osu,2yangk23/osu,smoogipooo/osu,UselessToucan/osu,ppy/osu,smoogipoo/osu,peppy/osu,NeoAdonis/osu,johnneijzen/osu,ZLima12/osu,NeoAdonis/osu,peppy/osu,ppy/osu,NeoAdonis/osu,Z... |
30a5a4abed9fb2519b6e72308977f624484b5b57 | BobTheBuilder/NamedArgumentsDynamicBuilder.cs | BobTheBuilder/NamedArgumentsDynamicBuilder.cs | using System;
using System.Dynamic;
namespace BobTheBuilder
{
public class NamedArgumentsDynamicBuilder<T> : DynamicObject, IDynamicBuilder<T> where T : class
{
private readonly IDynamicBuilder<T> wrappedBuilder;
private readonly IArgumentStore argumentStore;
internal NamedArgumentsDy... | using System;
using System.Dynamic;
using System.Linq;
namespace BobTheBuilder
{
public class NamedArgumentsDynamicBuilder<T> : DynamicObject, IDynamicBuilder<T> where T : class
{
private readonly IDynamicBuilder<T> wrappedBuilder;
private readonly IArgumentStore argumentStore;
intern... | Add support for named argument parsing. | Add support for named argument parsing.
The argument name munging is not pretty and needs improving (and perhaps
breaking out into another class?), but it does at least currently work.
| C# | apache-2.0 | alastairs/BobTheBuilder,fffej/BobTheBuilder |
f5aa6b09edc9338111114e4e8ea425be37f99cce | src/NodaTime/Extensions/StopwatchExtensions.cs | src/NodaTime/Extensions/StopwatchExtensions.cs | // Copyright 2014 The Noda Time Authors. All rights reserved.
// Use of this source code is governed by the Apache License 2.0,
// as found in the LICENSE.txt file.
#if !PCL
using System.Diagnostics;
using JetBrains.Annotations;
using NodaTime.Utility;
namespace NodaTime.Extensions
{
/// <summary>
/// Extensi... | // Copyright 2014 The Noda Time Authors. All rights reserved.
// Use of this source code is governed by the Apache License 2.0,
// as found in the LICENSE.txt file.
using System.Diagnostics;
using JetBrains.Annotations;
using NodaTime.Utility;
namespace NodaTime.Extensions
{
/// <summary>
/// Extension method... | Enable stopwatch extension methods for .NET Core | Enable stopwatch extension methods for .NET Core
I suspect Stopwatch wasn't available in earlier versions of .NET
Standard - or possibly not in netstandard1.1 when we targeted that.
But it's fine for netstandard1.3.
| C# | apache-2.0 | malcolmr/nodatime,nodatime/nodatime,malcolmr/nodatime,jskeet/nodatime,jskeet/nodatime,nodatime/nodatime,malcolmr/nodatime,BenJenkinson/nodatime,BenJenkinson/nodatime,malcolmr/nodatime |
e466e3d15f8522d4db37575a6665d943d8c6e1e6 | src/RedCard.API/Controllers/StatsController.cs | src/RedCard.API/Controllers/StatsController.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using RedCard.API.Contexts;
// For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
namespace RedCard.API.Controllers
{
[Route("... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using RedCard.API.Contexts;
using RedCard.API.Models;
// For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
namespace RedCard.API.... | Add group by yellow cards count | Add group by yellow cards count
| C# | mit | mglodack/RedCard.API,mglodack/RedCard.API |
f0cf94f283aaca7981561800cc250eea11742d42 | Client/Utilities/CoroutineUtil.cs | Client/Utilities/CoroutineUtil.cs | using System;
using System.Collections;
using UnityEngine;
namespace LunaClient.Utilities
{
public class CoroutineUtil
{
public static void StartDelayedRoutine(string routineName, Action action, float delayInSec)
{
Client.Singleton.StartCoroutine(DelaySeconds(routineName, action, d... | using System;
using System.Collections;
using UnityEngine;
namespace LunaClient.Utilities
{
public class CoroutineUtil
{
public static void StartDelayedRoutine(string routineName, Action action, float delayInSec)
{
Client.Singleton.StartCoroutine(DelaySeconds(routineName, action, d... | Allow coroutines of 0 sec delay | Allow coroutines of 0 sec delay
| C# | mit | gavazquez/LunaMultiPlayer,DaggerES/LunaMultiPlayer,gavazquez/LunaMultiPlayer,gavazquez/LunaMultiPlayer |
6b17d8bab2977129f97f3960307e2728d0ef74c4 | uSync/uSync.cs | uSync/uSync.cs | namespace uSync
{
/// <summary>
/// we only have this class, so there is a dll in the root
/// uSync package.
///
/// With a root dll, the package can be stopped from installing
/// on .netframework sites.
/// </summary>
public static class uSync
{
// private static st... | using System;
using Umbraco.Cms.Core.IO;
using Umbraco.Cms.Core.Packaging;
using Umbraco.Cms.Core.PropertyEditors;
using Umbraco.Cms.Core.Services;
using Umbraco.Cms.Core.Strings;
using Umbraco.Cms.Infrastructure.Migrations;
using Umbraco.Cms.Infrastructure.Packaging;
namespace uSync
{
/// <summary>
/// we ... | Add blank package migration (to get into the list) | Add blank package migration (to get into the list)
| C# | mpl-2.0 | KevinJump/uSync,KevinJump/uSync,KevinJump/uSync |
0ded40800b7f6395fb5a18278a58a379ececb763 | Web/Controllers/HomeController.cs | Web/Controllers/HomeController.cs | using System;
using System.Net.Http.Headers;
using System.Threading.Tasks;
using Infrastructure.Model;
using Microsoft.AspNetCore.Mvc;
namespace Web.Controllers
{
public class HomeController : Controller
{
[HttpGet]
public async Task<string> Index()
{
var client = new System... | using System;
using System.Net.Http.Headers;
using System.Threading.Tasks;
using Infrastructure.Model;
using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json;
namespace Web.Controllers
{
public class HomeController : Controller
{
[HttpGet]
public async Task<string> Index()
{
... | Add check for content type when parsing in client. Fallback to Json if Protobuf is not available | Add check for content type when parsing in client. Fallback to Json if Protobuf is not available
| C# | mit | Hypnobrew/StockMonitor |
5c958ebeb8e847fd47a7fc383b82e42a4beea1a1 | ExpressionToCodeTest/ExceptionsSerialization.cs | ExpressionToCodeTest/ExceptionsSerialization.cs | using System;
using System.IO;
using System.Runtime.CompilerServices;
using ExpressionToCodeLib;
using Xunit;
//requires binary serialization, which is omitted in older .net cores - but those are out of support: https://docs.microsoft.com/en-us/lifecycle/products/microsoft-net-and-net-core
namespace ExpressionToCodeT... | using System;
using System.IO;
using System.Runtime.CompilerServices;
using ExpressionToCodeLib;
using Xunit;
//requires binary serialization, which is omitted in older .net cores - but those are out of support: https://docs.microsoft.com/en-us/lifecycle/products/microsoft-net-and-net-core
namespace ExpressionToCodeT... | Disable warnings about obsoletion since the point is testing the obsolete stuff still works | Disable warnings about obsoletion since the point is testing the obsolete stuff still works
| C# | apache-2.0 | EamonNerbonne/ExpressionToCode |
27b3f23ff3c7b040885784b46a90e9523e633e93 | OpenSim/Services/Interfaces/IAttachmentsService.cs | OpenSim/Services/Interfaces/IAttachmentsService.cs | ////////////////////////////////////////////////////////////////
//
// (c) 2009, 2010 Careminster Limited and Melanie Thielker
//
// All rights reserved
//
using System;
using System.Diagnostics;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Threading;
using System.Reflection;
using... | ////////////////////////////////////////////////////////////////
//
// (c) 2009, 2010 Careminster Limited and Melanie Thielker
//
// All rights reserved
//
using System;
using Nini.Config;
namespace OpenSim.Services.Interfaces
{
public interface IAttachmentsService
{
string Get(string id);
void... | Remove some usings that stopped compilation | Remove some usings that stopped compilation
| C# | bsd-3-clause | RavenB/opensim,RavenB/opensim,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,TomDataworks/opensim,RavenB/opensim,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,RavenB/opensim,TomDataworks/opensim,TomDataworks/opensim,RavenB/opensim,RavenB/opensim,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,RavenB/opensim,TomD... |
28bd86e720ffdb3dbb2440484fd5b0bdf92a6f3a | IntermediatorBotSample/Controllers/Api/ConversationsController.cs | IntermediatorBotSample/Controllers/Api/ConversationsController.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using FizzWare.NBuilder;
using IntermediatorBotSample.Models;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Bot.Schema;
using Newtonsoft.Json;
namespace IntermediatorBotSample.Controller... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using FizzWare.NBuilder;
using IntermediatorBotSample.Models;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Bot.Schema;
using Newtonsoft.Json;
namespace IntermediatorBotSample.Controller... | Add intermediate comments to help explain what to do | Add intermediate comments to help explain what to do
| C# | mit | tompaana/intermediator-bot-sample,tompaana/intermediator-bot-sample |
a5cfc060d903486786102726db324ae8b9b2d82e | game/server/weapons/minigun.projectile.sfx.cs | game/server/weapons/minigun.projectile.sfx.cs | //------------------------------------------------------------------------------
// Revenge Of The Cats: Ethernet
// Copyright (C) 2008, mEthLab Interactive
//------------------------------------------------------------------------------
datablock AudioProfile(MinigunProjectileImpactSound)
{
filename = "share/sounds/... | //------------------------------------------------------------------------------
// Revenge Of The Cats: Ethernet
// Copyright (C) 2008, mEthLab Interactive
//------------------------------------------------------------------------------
datablock AudioProfile(MinigunProjectileImpactSound)
{
filename = "share/sounds/... | Use different sounds for minigun's missed enemy effect. | Use different sounds for minigun's missed enemy effect.
| C# | lgpl-2.1 | fr1tz/rotc-ethernet-game,fr1tz/rotc-ethernet-game,fr1tz/rotc-ethernet-game,fr1tz/rotc-ethernet-game |
cd56b49e34486d1733a97a5c6dd593abacee9993 | EchoServer/Program.cs | EchoServer/Program.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Net.Sockets;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace EchoServer
{
class Program
{
static void Main(string[] args)
{
Task main = MainAsync(args);
mai... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Net.Sockets;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace EchoServer
{
class Program
{
static void Main(string[] args)
{
Task main = MainAsync(args);
mai... | Move client handling into a separate method. | Move client handling into a separate method.
| C# | mit | darkriszty/NetworkCardsGame |
66a2a54aebcc6197c1bacf84b0aa5105b86e3f27 | src/Generator/Passes/FieldToPropertyPass.cs | src/Generator/Passes/FieldToPropertyPass.cs | using System.Linq;
using CppSharp.AST;
using CppSharp.Generators;
namespace CppSharp.Passes
{
public class FieldToPropertyPass : TranslationUnitPass
{
public override bool VisitClassDecl(Class @class)
{
if (@class.CompleteDeclaration != null)
return VisitClassDecl(@... | using System.Linq;
using CppSharp.AST;
using CppSharp.Generators;
namespace CppSharp.Passes
{
public class FieldToPropertyPass : TranslationUnitPass
{
public override bool VisitClassDecl(Class @class)
{
if (@class.CompleteDeclaration != null)
return VisitClassDecl(@... | Clean up the diagnostic in FieldToProperty pass. | Clean up the diagnostic in FieldToProperty pass.
| C# | mit | mono/CppSharp,inordertotest/CppSharp,mohtamohit/CppSharp,zillemarco/CppSharp,u255436/CppSharp,mono/CppSharp,mono/CppSharp,inordertotest/CppSharp,ddobrev/CppSharp,inordertotest/CppSharp,mono/CppSharp,ktopouzi/CppSharp,zillemarco/CppSharp,ddobrev/CppSharp,mohtamohit/CppSharp,genuinelucifer/CppSharp,inordertotest/CppSharp... |
9a89c1721f0767da2ee7fc8863e02ce3b80c27bc | src/HttpMock.Unit.Tests/HttpFactoryTests.cs | src/HttpMock.Unit.Tests/HttpFactoryTests.cs |
using System;
using NUnit.Framework;
namespace HttpMock.Unit.Tests
{
[TestFixture]
public class HttpFactoryTests
{
[Test]
public void ShouldBeAbleToHostAtSameAddressIfPreviousWasDisposed()
{
var serverFactory = new HttpServerFactory();
var uri = new Uri(String.Format("http://localhost:{... |
using System;
using NUnit.Framework;
namespace HttpMock.Unit.Tests
{
[TestFixture]
public class HttpFactoryTests
{
[Test]
[Ignore ("Makes the test suite flaky (???)")]
public void ShouldBeAbleToHostAtSameAddressIfPreviousWasDisposed()
{
var serverFactory = new HttpServerFactory();
va... | Mark evil test as ignore, again | UnitTest: Mark evil test as ignore, again
| C# | mit | mattolenik/HttpMock,hibri/HttpMock,oschwald/HttpMock,zhdusurfin/HttpMock |
00a4d60e8910869457d3e70ec04b6727b705d15f | osu.Game.Rulesets.Osu/Difficulty/Skills/Speed.cs | osu.Game.Rulesets.Osu/Difficulty/Skills/Speed.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 System;
using osu.Game.Rulesets.Osu.Difficulty.Preprocessing;
namespace osu.Game.Rulesets.Osu.Difficulty.Skills
{
/// <summary>
/// Represents the skill ... | // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System;
using osu.Game.Rulesets.Osu.Difficulty.Preprocessing;
namespace osu.Game.Rulesets.Osu.Difficulty.Skills
{
/// <summary>
/// Represents the skill ... | Make sure distance is clamped to sane values | Make sure distance is clamped to sane values
| C# | mit | johnneijzen/osu,EVAST9919/osu,2yangk23/osu,EVAST9919/osu,peppy/osu,UselessToucan/osu,NeoAdonis/osu,ppy/osu,peppy/osu,smoogipoo/osu,naoey/osu,ZLima12/osu,DrabWeb/osu,DrabWeb/osu,peppy/osu,UselessToucan/osu,ppy/osu,2yangk23/osu,smoogipoo/osu,peppy/osu-new,ppy/osu,UselessToucan/osu,NeoAdonis/osu,naoey/osu,naoey/osu,ZLima1... |
b7c20065a46d23a1032285cb97ed66b46129f2c8 | Src/Qart.Testing/TestSystem.cs | Src/Qart.Testing/TestSystem.cs | using Qart.Core.DataStore;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Qart.Testing
{
public class TestSystem
{
public IDataStore DataStorage { get; private set; }
public TestSystem(IDataStore d... | using Qart.Core.DataStore;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Qart.Testing
{
public class TestSystem
{
public IDataStore DataStorage { get; private set; }
public TestSystem(IDataStore d... | Fix for GetTestCases not returning current folder | Fix for GetTestCases not returning current folder
| C# | apache-2.0 | avao/Qart,mcraveiro/Qart,tudway/Qart |
cc61c53579ea9714abfc881565a89c7c9882dc9b | src/JoyOI.OnlineJudge.Models/VirtualJudgeUser.cs | src/JoyOI.OnlineJudge.Models/VirtualJudgeUser.cs | using System;
using System.ComponentModel.DataAnnotations;
namespace JoyOI.OnlineJudge.Models
{
public class VirtualJudgeUser
{
/// <summary>
/// Gets or sets the identifier.
/// </summary>
/// <value>The identifier.</value>
public Guid Id { get; set; }
/// <su... | using System;
using System.ComponentModel.DataAnnotations;
namespace JoyOI.OnlineJudge.Models
{
public class VirtualJudgeUser
{
/// <summary>
/// Gets or sets the identifier.
/// </summary>
/// <value>The identifier.</value>
public Guid Id { get; set; }
/// <su... | Refactor virtual judge user table schema | Refactor virtual judge user table schema
| C# | mit | JoyOI/OnlineJudge,JoyOI/OnlineJudge,JoyOI/OnlineJudge,JoyOI/OnlineJudge |
cf079690e528cadd4387402ca2a050d388604796 | osu.Game/Beatmaps/Drawables/BeatmapSetCover.cs | osu.Game/Beatmaps/Drawables/BeatmapSetCover.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 System;
using osu.Framework.Allocation;
using osu.Framework.Graphics.Sprites;
using osu.Framework.Graphics.Textures;
namespace osu.Game.Beatmaps.Drawables
{
... | // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System;
using osu.Framework.Allocation;
using osu.Framework.Graphics.Sprites;
using osu.Framework.Graphics.Textures;
namespace osu.Game.Beatmaps.Drawables
{
... | Use LargeTextureStore for online retrievals | Use LargeTextureStore for online retrievals
| C# | mit | UselessToucan/osu,EVAST9919/osu,DrabWeb/osu,DrabWeb/osu,DrabWeb/osu,peppy/osu,peppy/osu-new,NeoAdonis/osu,naoey/osu,ppy/osu,smoogipoo/osu,2yangk23/osu,johnneijzen/osu,naoey/osu,naoey/osu,peppy/osu,ZLima12/osu,johnneijzen/osu,EVAST9919/osu,UselessToucan/osu,ZLima12/osu,2yangk23/osu,smoogipoo/osu,ppy/osu,NeoAdonis/osu,Us... |
37053608f1544f0a6a294b6695cbac323730931c | EOLib/Net/Handlers/PacketHandlingTypeFinder.cs | EOLib/Net/Handlers/PacketHandlingTypeFinder.cs | // Original Work Copyright (c) Ethan Moffat 2014-2016
// This file is subject to the GPL v2 License
// For additional details, see the LICENSE file
using System.Collections.Generic;
namespace EOLib.Net.Handlers
{
public class PacketHandlingTypeFinder : IPacketHandlingTypeFinder
{
private readonly List<FamilyActi... | // Original Work Copyright (c) Ethan Moffat 2014-2016
// This file is subject to the GPL v2 License
// For additional details, see the LICENSE file
using System.Collections.Generic;
using System.Linq;
namespace EOLib.Net.Handlers
{
public class PacketHandlingTypeFinder : IPacketHandlingTypeFinder
{
private reado... | Use registered types for Out of Band handlers in packet handling type finder | Use registered types for Out of Band handlers in packet handling type finder
Replaces manually built up collection. Should be able to eventually have just 1 collection where it is either in-band or not in-band.
| C# | mit | ethanmoffat/EndlessClient |
084e7fc2d8bd4f9dd169395bb33ed0fff65ff520 | Chainey/SentenceConstruct.cs | Chainey/SentenceConstruct.cs | using System;
using System.Collections.Generic;
namespace Chainey
{
internal class SentenceConstruct
{
internal int WordCount
{
get { return Forwards.Count + Backwards.Count - order; }
}
internal string Sentence
{
get
{
... | using System;
using System.Collections.Generic;
namespace Chainey
{
internal class SentenceConstruct
{
internal int WordCount { get; private set; }
internal string Sentence
{
get
{
var sen = new List<string>(Backwards);
sen.Remov... | Fix latest chain properties, simplify WordCount property and make it deduce the order from the passed initial chain. | Fix latest chain properties, simplify WordCount property and make it deduce the order from the passed initial chain. | C# | bsd-2-clause | IvionSauce/MeidoBot |
597f3ee243aa7d6bbeff4ca991bec61f2cf8f29f | src/keypay-dotnet/Properties/AssemblyInfo.cs | src/keypay-dotnet/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("KeyPay")]
[assembly: AssemblyDescription("... | 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("KeyPay")]
[assembly: AssemblyDescription("... | Update Nuget version of package to 1.1.0.10-rc | Update Nuget version of package to 1.1.0.10-rc
| C# | mit | KeyPay/keypay-dotnet,KeyPay/keypay-dotnet,KeyPay/keypay-dotnet,KeyPay/keypay-dotnet |
32cc1d99aaa4c844657cc9199d8b7b6223cda738 | nunit.migrator/CodeActions/AssertUserMessageDecorator.cs | nunit.migrator/CodeActions/AssertUserMessageDecorator.cs | using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using NUnit.Migrator.Model;
namespace NUnit.Migrator.CodeActions
{
internal class AssertUserMessageDecorator : AssertExceptionBlockDecorator
{
private readonly ExceptionExpectancyAtAttributeLe... | using System;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using NUnit.Migrator.Model;
namespace NUnit.Migrator.CodeActions
{
internal class AssertUserMessageDecorator : AssertExceptionBlockDecorator
{
private readonly string _userMessag... | Refactor - UserMessage instead of attribute | Refactor - UserMessage instead of attribute
| C# | mit | wachulski/nunit-migrator |
8057202fe1cd718c20225dc8065d33f5391eedbd | MFlow.Core/Internal/ExpressionBuilder.cs | MFlow.Core/Internal/ExpressionBuilder.cs |
using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using System.Linq;
namespace MFlow.Core.Internal
{
/// <summary>
/// An expression builder
/// </summary>
class ExpressionBuilder<T> : IExpressionBuilder<T>
{
static IDictionary<object, object> _expressions= new Di... |
using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using System.Linq;
namespace MFlow.Core.Internal
{
/// <summary>
/// An expression builder
/// </summary>
class ExpressionBuilder<T> : IExpressionBuilder<T>
{
static IDictionary<object, object> _expressions= new Di... | Remove caching of invoked expressions as it is hard to do and adds little benefit | Remove caching of invoked expressions as it is hard to do and adds little benefit
| C# | mit | ccoton/MFlow,ccoton/MFlow,ccoton/MFlow |
ba32cc21d92bed02a0b08c16d8a8131c7e57ec53 | SSMScripter/Scripter/Smo/SmoObjectMetadata.cs | SSMScripter/Scripter/Smo/SmoObjectMetadata.cs | using SSMScripter.Integration;
using System;
using System.Data;
namespace SSMScripter.Scripter.Smo
{
public class SmoObjectMetadata
{
public SmoObjectType Type { get; protected set; }
public string Schema { get; protected set; }
public string Name { get; protected set; }
public... | using SSMScripter.Integration;
using System;
using System.Data;
namespace SSMScripter.Scripter.Smo
{
public class SmoObjectMetadata
{
public SmoObjectType Type { get; protected set; }
public string Schema { get; protected set; }
public string Name { get; protected set; }
public... | Add missing ctor field initializations | Add missing ctor field initializations
| C# | mit | mkoscielniak/SSMScripter |
a2fccb073d6aa0b636b0f4b63fae22182d91930d | SpaceBlog/SpaceBlog/Views/Comment/Edit.cshtml | SpaceBlog/SpaceBlog/Views/Comment/Edit.cshtml | @model SpaceBlog.Models.CommentViewModel
@{
ViewBag.Title = "Edit";
}
<h2>Edit</h2>
@using (Html.BeginForm())
{
@Html.AntiForgeryToken()
<div class="form-horizontal">
<h4>Comment</h4>
<hr />
@Html.ValidationSummary(true, "", new { @class = "text-danger" })
@Html.Hid... | @model SpaceBlog.Models.CommentViewModel
@{
ViewBag.Title = "Edit";
ViewBag.Message = "Comment";
}
@using (Html.BeginForm())
{
@Html.AntiForgeryToken()
<div class="container">
<h2>@ViewBag.Title</h2>
<h4>@ViewBag.Message</h4>
<hr />
@Html.ValidationSummary(true, "... | Change div class and change the position of button back | Change div class and change the position of button back
| C# | mit | Team-Code-Ninjas/SpaceBlog,Team-Code-Ninjas/SpaceBlog,Team-Code-Ninjas/SpaceBlog |
0263707a5971a00bfd23b9d0a70c0b1afd44f63b | tests/YouTrackSharp.Tests/Integration/Issues/GetIssuesInProject.cs | tests/YouTrackSharp.Tests/Integration/Issues/GetIssuesInProject.cs | using System.Threading.Tasks;
using Xunit;
using YouTrackSharp.Issues;
using YouTrackSharp.Tests.Infrastructure;
namespace YouTrackSharp.Tests.Integration.Issues
{
public partial class IssuesServiceTests
{
public class GetIssuesInProject
{
[Fact]
public async Task Valid_... | using System.Threading.Tasks;
using Xunit;
using YouTrackSharp.Issues;
using YouTrackSharp.Tests.Infrastructure;
namespace YouTrackSharp.Tests.Integration.Issues
{
public partial class IssuesServiceTests
{
public class GetIssuesInProject
{
[Fact]
public async Task Valid_... | Change assertion to support multiple issues in test | Change assertion to support multiple issues in test
| C# | apache-2.0 | JetBrains/YouTrackSharp,JetBrains/YouTrackSharp |
244f8289c8501f16d306c156be724a831ac651d8 | src/Glimpse.Host.Web.AspNet/GlimpseExtension.cs | src/Glimpse.Host.Web.AspNet/GlimpseExtension.cs |
using Microsoft.AspNet.Builder;
using System;
namespace Glimpse.Host.Web.AspNet
{
public static class GlimpseExtension
{
/// <summary>
/// Adds a middleware that allows GLimpse to be registered into the system.
/// </summary>
/// <param name="app"></param>
/// <returns... |
using Glimpse.Web;
using Microsoft.AspNet.Builder;
using System;
namespace Glimpse.Host.Web.AspNet
{
public static class GlimpseExtension
{
/// <summary>
/// Adds a middleware that allows GLimpse to be registered into the system.
/// </summary>
/// <param name="app"></param>
... | Update aspnet middleware extension message to allow shouldRun to be passed in | Update aspnet middleware extension message to allow shouldRun to be passed in
| C# | mit | Glimpse/Glimpse.Prototype,zanetdev/Glimpse.Prototype,Glimpse/Glimpse.Prototype,Glimpse/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,pranavkm/Glimpse.Prototype,zanetdev/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,pranavkm/Glimpse.Prototype,pe... |
0e99f212146096d953d93a7f9230888055e3b3ac | MbCacheTest/Logic/Concurrency/SimultaneousCachePutTest.cs | MbCacheTest/Logic/Concurrency/SimultaneousCachePutTest.cs | using System;
using System.Threading;
using MbCacheTest.TestData;
using NUnit.Framework;
using SharpTestsEx;
namespace MbCacheTest.Logic.Concurrency
{
public class SimultaneousCachePutTest : TestCase
{
public SimultaneousCachePutTest(Type proxyType) : base(proxyType)
{
}
[Test]
public void ShouldNotMakeT... | using System;
using System.Threading;
using MbCacheTest.TestData;
using NUnit.Framework;
using SharpTestsEx;
namespace MbCacheTest.Logic.Concurrency
{
public class SimultaneousCachePutTest : TestCase
{
public SimultaneousCachePutTest(Type proxyType) : base(proxyType)
{
}
[Test]
public void ShouldNotMakeT... | Make sure test fails more often if locks are removed | Make sure test fails more often if locks are removed
| C# | mit | RogerKratz/mbcache |
9588cf302179f60a5ad81430caac0523d0509f0c | Telerik.JustMock.MSTest2.Tests/Properties/AssemblyInfo.cs | Telerik.JustMock.MSTest2.Tests/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("MigrateMSTest")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("MigrateMSTest")]
[assembly: AssemblyCopy... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("MigrateMSTest")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("MigrateMSTest")]
[assembly: AssemblyCopy... | Make internals in MSTest2 visible for JustMock dll in lite version | Make internals in MSTest2 visible for JustMock dll in lite version
| C# | apache-2.0 | telerik/JustMockLite |
af5d06384ece596659efb6db4ee71a8dfb9e7024 | src/Fixie.Tests/TestExtensions.cs | src/Fixie.Tests/TestExtensions.cs | namespace Fixie.Tests
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text.RegularExpressions;
using System.Threading;
using Fixie.Execution;
public static class TestExtensions
{
const BindingFlags InstanceMethods =... | namespace Fixie.Tests
{
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Reflection;
using System.Text.RegularExpressions;
using Fixie.Execution;
public static class TestExtensions
{
const BindingFlags InstanceMetho... | Rephrase culture-neutral number format helper so that it can successfully compile against both the full .NET Framework and .NET Core. | Rephrase culture-neutral number format helper so that it can successfully compile against both the full .NET Framework and .NET Core.
| C# | mit | fixie/fixie |
86ca19686bd40a184ad322d705fdb0d2bda88f17 | MultiMiner.Win/ApplicationConfiguration.cs | MultiMiner.Win/ApplicationConfiguration.cs | using MultiMiner.Engine.Configuration;
using System;
using System.IO;
namespace MultiMiner.Win
{
public class ApplicationConfiguration
{
public ApplicationConfiguration()
{
this.StartupMiningDelay = 45;
}
public bool LaunchOnWindowsLogin { get; set; }
publi... | using Microsoft.Win32;
using MultiMiner.Engine.Configuration;
using System;
using System.IO;
using System.Windows.Forms;
namespace MultiMiner.Win
{
public class ApplicationConfiguration
{
public ApplicationConfiguration()
{
this.StartupMiningDelay = 45;
}
public bo... | Implement the option to start the app when logging into Windows | Implement the option to start the app when logging into Windows
| C# | mit | IWBWbiz/MultiMiner,nwoolls/MultiMiner,IWBWbiz/MultiMiner,nwoolls/MultiMiner |
656cf0725ad22da1da3a7a39350d8ee928394dad | Battlezeppelins/Models/PlayerTable/GameTable.cs | Battlezeppelins/Models/PlayerTable/GameTable.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Battlezeppelins.Models
{
public class GameTable
{
public const int TABLE_ROWS = 10;
public const int TABLE_COLS = 10;
public Game.Role role { get; private set; }
publi... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Battlezeppelins.Models
{
public class GameTable
{
public const int TABLE_ROWS = 10;
public const int TABLE_COLS = 10;
public Game.Role role { get; private set; }
publi... | Add non-args constructor for serialization. | Add non-args constructor for serialization.
| C# | apache-2.0 | Mikuz/Battlezeppelins,Mikuz/Battlezeppelins |
a34e407999b381770bfe5a98c75758c461ec903d | tests/NBench.VisualStudio.TestAdapter.Tests.Unit/NBenchTestDiscoverer/NBenchTestDiscoverer/WhenTheNBenchFunctionalityWRapperIsNotNull.cs | tests/NBench.VisualStudio.TestAdapter.Tests.Unit/NBenchTestDiscoverer/NBenchTestDiscoverer/WhenTheNBenchFunctionalityWRapperIsNotNull.cs | namespace NBench.VisualStudio.TestAdapter.Tests.Unit.NBenchTestDiscoverer.NBenchTestDiscoverer
{
using JustBehave;
using NBench.VisualStudio.TestAdapter;
using NBench.VisualStudio.TestAdapter.Helpers;
using Ploeh.AutoFixture;
using Ploeh.AutoFixture.AutoNSubstitute;
using Xunit;
public... | namespace NBench.VisualStudio.TestAdapter.Tests.Unit.NBenchTestDiscoverer.NBenchTestDiscoverer
{
using JustBehave;
using NBench.VisualStudio.TestAdapter;
using NBench.VisualStudio.TestAdapter.Helpers;
using Ploeh.AutoFixture;
using Ploeh.AutoFixture.AutoNSubstitute;
using Xunit;
public... | Create a non-null functionality wrapper in the required test. | Create a non-null functionality wrapper in the required test.
| C# | apache-2.0 | SeanFarrow/NBench.VisualStudio |
6dd0479fd1dd5a3fd39dbe45fcede1ee42babc0f | FonctionsUtiles.Fred.Csharp/FunctionsWindows.cs | FonctionsUtiles.Fred.Csharp/FunctionsWindows.cs | using System;
using System.Diagnostics;
using System.Reflection;
namespace FonctionsUtiles.Fred.Csharp
{
public class FunctionsWindows
{
public static bool IsInWinPath(string substring)
{
bool result = false;
string winPath = Environment.GetEnvironmentVariable("Path", EnvironmentVariableTarget... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Reflection;
using System.Security.Principal;
namespace FonctionsUtiles.Fred.Csharp
{
public class FunctionsWindows
{
public static bool IsInWinPath(string substring)
{
bool result = false;
... | Add several methods for Windows: IsAdmin | Add several methods for Windows: IsAdmin
| C# | mit | fredatgithub/UsefulFunctions |
5a89383ed6005d90ecd486fc7de9cdb4c87d9304 | OutlookMatters.Core.Test/Settings/EnumMatchToBooleanConverterTest.cs | OutlookMatters.Core.Test/Settings/EnumMatchToBooleanConverterTest.cs | using System.Globalization;
using System.Reflection;
using FluentAssertions;
using Microsoft.Office.Interop.Outlook;
using Moq;
using NUnit.Framework;
using OutlookMatters.Core.Settings;
namespace Test.OutlookMatters.Core.Settings
{
[TestFixture]
public class EnumMatchToBooleanConverterTest
{
[Tes... | using System.Globalization;
using System.Reflection;
using FluentAssertions;
using Microsoft.Office.Interop.Outlook;
using Moq;
using NUnit.Framework;
using OutlookMatters.Core.Settings;
namespace Test.OutlookMatters.Core.Settings
{
[TestFixture]
public class EnumMatchToBooleanConverterTest
{
[Tes... | Add additional tests for EnumMatchToBooleanConverter | Add additional tests for EnumMatchToBooleanConverter
| C# | mit | maxlmo/outlook-matters,maxlmo/outlook-matters,makmu/outlook-matters,makmu/outlook-matters |
2bc17f2941863312957adbd1ee5f19b59056b2b3 | ChutesAndLaddersDemo/Simulation/Chute/Program.cs | ChutesAndLaddersDemo/Simulation/Chute/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ChutesAndLadders.GamePlay;
using ChutesAndLadders.Entities;
using System.Diagnostics;
namespace Chute
{
class Program
{
static void Main(string[] args)
{
var bo... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ChutesAndLadders.GamePlay;
using ChutesAndLadders.Entities;
using System.Diagnostics;
namespace Chute
{
class Program
{
static void Main(string[] args)
{
var bo... | Reset Chutes & Ladders demos to run demo 1 by default | Reset Chutes & Ladders demos to run demo 1 by default
| C# | mit | bsstahl/AIDemos,bsstahl/AIDemos |
1890e818f910c35e530150701c34141c9ea02088 | Dexiom.EPPlusExporterTests/Helpers/TestHelper.cs | Dexiom.EPPlusExporterTests/Helpers/TestHelper.cs | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Bogus;
using Dexiom.EPPlusExporter;
using OfficeOpenXml;
namespace Dexiom.EPPlusExporterTests.Helpers
{
public static class TestHelper
{
... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Bogus;
using Dexiom.EPPlusExporter;
using OfficeOpenXml;
namespace Dexiom.EPPlusExporterTests.Helpers
{
public static class TestHelper
{
... | Remove output on some tests | Remove output on some tests
| C# | mit | Dexiom/Dexiom.EPPlusExporter |
af129b3eaba1233654e87b6de4185876933ba033 | osu.Game.Rulesets.Mania/Objects/ManiaHitObject.cs | osu.Game.Rulesets.Mania/Objects/ManiaHitObject.cs | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Game.Rulesets.Mania.Objects.Types;
using osu.Game.Rulesets.Objects;
namespace osu.Game.Rulesets.Mania.Objects
{
public abstract class ManiaHitObj... | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Game.Rulesets.Mania.Objects.Types;
using osu.Game.Rulesets.Objects;
namespace osu.Game.Rulesets.Mania.Objects
{
public abstract class ManiaHitObj... | Add siblings, will be used in generator branches. | Add siblings, will be used in generator branches.
| C# | mit | osu-RP/osu-RP,DrabWeb/osu,johnneijzen/osu,ZLima12/osu,EVAST9919/osu,smoogipooo/osu,Frontear/osuKyzer,naoey/osu,ZLima12/osu,peppy/osu-new,Nabile-Rahmani/osu,ppy/osu,DrabWeb/osu,DrabWeb/osu,johnneijzen/osu,NeoAdonis/osu,smoogipoo/osu,2yangk23/osu,Damnae/osu,UselessToucan/osu,UselessToucan/osu,naoey/osu,ppy/osu,naoey/osu,... |
76314fe193306f89b762d12657f57dd9f4748eab | LtiLibrary.Core/Outcomes/v2/LineItemContainer.cs | LtiLibrary.Core/Outcomes/v2/LineItemContainer.cs | using LtiLibrary.Core.Common;
using Newtonsoft.Json;
namespace LtiLibrary.Core.Outcomes.v2
{
/// <summary>
/// A LineItemContainer defines the endpoint to which clients POST new LineItem resources
/// and from which they GET the list of LineItems associated with a a given learning context.
/// </summ... | using LtiLibrary.Core.Common;
using Newtonsoft.Json;
namespace LtiLibrary.Core.Outcomes.v2
{
/// <summary>
/// A LineItemContainer defines the endpoint to which clients POST new LineItem resources
/// and from which they GET the list of LineItems associated with a a given learning context.
/// </summ... | Simplify property name for LineItemMembershipSubject | Simplify property name for LineItemMembershipSubject
| C# | apache-2.0 | andyfmiller/LtiLibrary |
a93b22803dfb1384bb7055f0798b0f55f5212985 | src/Nest/Domain/Responses/SearchShardsResponse.cs | src/Nest/Domain/Responses/SearchShardsResponse.cs | using System.Collections.Generic;
using Nest.Domain;
using Newtonsoft.Json;
using System.Linq.Expressions;
using System;
using System.Linq;
namespace Nest
{
[JsonObject(MemberSerialization.OptIn)]
public interface ISearchShardsResponse : IResponse
{
[JsonProperty("shards")]
IEnumerable<IEnumerable<SearchShard... | using Nest.Domain;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
namespace Nest
{
[JsonObject(MemberSerialization.OptIn)]
public interface ISearchShardsResponse : IResponse
{
[JsonProperty("shards")]
IEnumerable<IEnumerable... | Fix wrong property mapping in SearchShard | Fix wrong property mapping in SearchShard
| C# | apache-2.0 | KodrAus/elasticsearch-net,RossLieberman/NEST,starckgates/elasticsearch-net,gayancc/elasticsearch-net,amyzheng424/elasticsearch-net,CSGOpenSource/elasticsearch-net,mac2000/elasticsearch-net,abibell/elasticsearch-net,ststeiger/elasticsearch-net,DavidSSL/elasticsearch-net,jonyadamit/elasticsearch-net,DavidSSL/elasticsearc... |
190d0522fc1180f260608cbe99529c9836b53b78 | src/Snowflake.Support.GraphQLFrameworkQueries/Queries/Filesystem/FilesystemQueries.cs | src/Snowflake.Support.GraphQLFrameworkQueries/Queries/Filesystem/FilesystemQueries.cs | using HotChocolate.Types;
using Snowflake.Framework.Remoting.GraphQL.Model.Filesystem;
using Snowflake.Framework.Remoting.GraphQL.Model.Filesystem.Contextual;
using Snowflake.Framework.Remoting.GraphQL.Schema;
using Snowflake.Services;
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;... | using HotChocolate.Types;
using Microsoft.DotNet.PlatformAbstractions;
using Snowflake.Framework.Remoting.GraphQL.Model.Filesystem;
using Snowflake.Framework.Remoting.GraphQL.Model.Filesystem.Contextual;
using Snowflake.Framework.Remoting.GraphQL.Schema;
using Snowflake.Services;
using System;
using System.Collections... | Clarify behaviour on non-Windows systems | HC.filesystem: Clarify behaviour on non-Windows systems
| C# | mpl-2.0 | SnowflakePowered/snowflake,RonnChyran/snowflake,RonnChyran/snowflake,SnowflakePowered/snowflake,SnowflakePowered/snowflake,RonnChyran/snowflake |
f8802b3778ba30219b7415ed7037a2b8f419782c | Tiny-JSON/Tiny-JSON/AssemblyInfo.cs | Tiny-JSON/Tiny-JSON/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your project.
[assembly: AssemblyTitle("Tiny-JSON")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly:... | using System.Reflection;
using System.Runtime.CompilerServices;
// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your project.
[assembly: AssemblyTitle("Tiny-JSON")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly:... | Increase assembly version to 1.2.0 | Increase assembly version to 1.2.0
| C# | mit | gering/Tiny-JSON |
5c8511e3c01e3a7183a00ad1d04db4ea9e122bac | Utility/Extensions/ConcurrentDictionaryExtensions.cs | Utility/Extensions/ConcurrentDictionaryExtensions.cs | using System.Collections.Concurrent;
using System.Collections.Generic;
namespace Utility.Extensions
{
public static class ConcurrentDictionaryExtensions
{
public static bool TryRemove<TKey, TValue>(this ConcurrentDictionary<TKey, TValue> dictionary, TKey key)
{
TValue value;
... | using System.Collections.Concurrent;
using System.Collections.Generic;
namespace Utility.Extensions
{
public static class ConcurrentDictionaryExtensions
{
public static bool TryRemove<TKey, TValue>(this ConcurrentDictionary<TKey, TValue> dictionary, TKey key)
{
TValue value;
... | Change try remove key pair method semantics | Change try remove key pair method semantics
| C# | mit | Ben-Barron/Utility |
6c928ace917c525c84b685fdc27df48679337f2a | IdeaWeb.Test/Controllers/HomeControllerTests.cs | IdeaWeb.Test/Controllers/HomeControllerTests.cs | using IdeaWeb.Controllers;
using Microsoft.AspNetCore.Mvc;
using NUnit.Framework;
namespace IdeaWeb.Test
{
[TestFixture]
public class HomeControllerTests
{
HomeController _controller;
[SetUp]
public void SetUp()
{
_controller = new HomeController();
}
... | using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using IdeaWeb.Controllers;
using IdeaWeb.Data;
using IdeaWeb.Models;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using NUnit.Framework;
namespace IdeaWeb.Test
{
[TestFixture]
public class HomeController... | Use the in-memory database for testing the home controller | Use the in-memory database for testing the home controller
| C# | mit | rprouse/IdeaWeb,rprouse/IdeaWeb |
4a263e12ffee4de8bade20184193f3f08e05cdff | src/DependencyInjection.Console/PatternApp.cs | src/DependencyInjection.Console/PatternApp.cs | namespace DependencyInjection.Console
{
internal class PatternApp
{
private readonly PatternWriter _patternWriter;
private readonly PatternGenerator _patternGenerator;
public PatternApp(bool useColours)
{
_patternWriter = new PatternWriter(useColours);
_... | namespace DependencyInjection.Console
{
internal class PatternApp
{
private readonly PatternWriter _patternWriter;
private readonly PatternGenerator _patternGenerator;
public PatternApp(bool useColours)
{
_patternWriter = new PatternWriter(useColours);
_... | Adjust initial size to look nicer | Adjust initial size to look nicer
| C# | mit | jcrang/dependency-injection-kata-series,mjac/dependency-injection-kata-series |
5c6aed889194147895c53baa910e057990a26fd5 | src/EmotionAPI.Tests/EmotionAPIClientTests.cs | src/EmotionAPI.Tests/EmotionAPIClientTests.cs | using Xunit;
namespace EmotionAPI.Tests
{
public class EmotionAPIClientTests : EmotionAPITestsBase
{
[Fact]
public void Can_Create_EmotionAPIClient_Controller()
{
var controller = new EmotionAPIClient(mockOcpApimSubscriptionKey);
Assert.NotNull(cont... | using Xunit;
namespace EmotionAPI.Tests
{
public class EmotionAPIClientTests : EmotionAPITestsBase
{
[Fact]
public void Can_Create_EmotionAPIClient_Class()
{
var sut = new EmotionAPIClient(mockOcpApimSubscriptionKey);
Assert.NotNull(sut);
}
... | Split test into two separate tests | Split test into two separate tests
| C# | mit | Felsig/Emotion-API |
50b58cd6a658164d153c7b5284e3d6c9c73691a7 | Core/Handling/KeyboardHandlerBase.cs | Core/Handling/KeyboardHandlerBase.cs | using System.Windows.Forms;
using CefSharp;
namespace TweetDuck.Core.Handling{
class KeyboardHandlerBase : IKeyboardHandler{
protected virtual bool HandleRawKey(IWebBrowser browserControl, IBrowser browser, Keys key, CefEventFlags modifiers){
return false;
}
bool IKeyboardHand... | using System.Windows.Forms;
using CefSharp;
using TweetDuck.Core.Controls;
using TweetDuck.Core.Other;
using TweetDuck.Core.Utils;
namespace TweetDuck.Core.Handling{
class KeyboardHandlerBase : IKeyboardHandler{
protected virtual bool HandleRawKey(IWebBrowser browserControl, IBrowser browser, Keys key, Ce... | Add keyboard shortcut to open dev tools (Ctrl+Shift+I) | Add keyboard shortcut to open dev tools (Ctrl+Shift+I)
| C# | mit | chylex/TweetDuck,chylex/TweetDuck,chylex/TweetDuck,chylex/TweetDuck |
1b780e242e02c4d28ac8691794fc3661c897a736 | src/Orchard.Web/Packages/Orchard.Pages/Controllers/PageController.cs | src/Orchard.Web/Packages/Orchard.Pages/Controllers/PageController.cs | using System;
using System.Web.Mvc;
using Orchard.Localization;
using Orchard.ContentManagement;
using Orchard.Pages.Services;
using Orchard.Pages.ViewModels;
using Orchard.Security;
namespace Orchard.Pages.Controllers {
[ValidateInput(false)]
public class PageController : Controller, IUpdateModel {... | using System;
using System.Web.Mvc;
using Orchard.Localization;
using Orchard.ContentManagement;
using Orchard.Mvc.Results;
using Orchard.Pages.Services;
using Orchard.Pages.ViewModels;
using Orchard.Security;
namespace Orchard.Pages.Controllers {
[ValidateInput(false)]
public class PageController ... | Fix pages slug to not be case sensitive when used in url | Fix pages slug to not be case sensitive when used in url
There was one line of code left to be resurrected from the old cms pages module
--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045978
| C# | bsd-3-clause | dburriss/Orchard,Cphusion/Orchard,princeppy/JPYSites-Orchard-Azure-Live-SourceCode,stormleoxia/Orchard,luchaoshuai/Orchard,grapto/Orchard.CloudBust,AndreVolksdorf/Orchard,planetClaire/Orchard-LETS,omidnasri/Orchard,openbizgit/Orchard,patricmutwiri/Orchard,neTp9c/Orchard,Cphusion/Orchard,NIKASoftwareDevs/Orchard,arminka... |
e6b449fe0b602a76a7d61efb5bff0a609fb241cd | osu.Game/Screens/Play/GameplayClockExtensions.cs | osu.Game/Screens/Play/GameplayClockExtensions.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;
namespace osu.Game.Screens.Play
{
public static class GameplayClockExtensions
{
/// <summary>
/// The rate of gameplay when playbac... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
namespace osu.Game.Screens.Play
{
public static class GameplayClockExtensions
{
/// <summary>
/// The rate of gameplay when playbac... | Fix case of zero rate calculating a zero true gameplay rate | Fix case of zero rate calculating a zero true gameplay rate
| C# | mit | ppy/osu,peppy/osu,ppy/osu,peppy/osu,peppy/osu,ppy/osu |
f451a24cba190c3e302c285f57e02a0503a594ab | MonoHaven.Client/Input/InputEvent.cs | MonoHaven.Client/Input/InputEvent.cs | using OpenTK.Input;
namespace MonoHaven.Input
{
public abstract class InputEvent
{
private readonly KeyModifiers mods;
protected InputEvent()
{
mods = GetCurrentKeyModifiers();
}
public bool Handled
{
get;
set;
}
public KeyModifiers Modifiers
{
get { return mods; }
}
private st... | using System;
using OpenTK.Input;
namespace MonoHaven.Input
{
public abstract class InputEvent : EventArgs
{
private readonly KeyModifiers mods;
protected InputEvent()
{
mods = GetCurrentKeyModifiers();
}
public bool Handled
{
get;
set;
}
public KeyModifiers Modifiers
{
get { return... | Allow to use input event arguments in the event handlers | Allow to use input event arguments in the event handlers
| C# | mit | k-t/SharpHaven |
a56bb9f2e9cefc0b518346b60371e8e49232a7e1 | ShopifySharp/Enums/ShopifyAuthorizationScope.cs | ShopifySharp/Enums/ShopifyAuthorizationScope.cs | using Newtonsoft.Json;
using ShopifySharp.Converters;
using System.Runtime.Serialization;
namespace ShopifySharp.Enums
{
[JsonConverter(typeof(NullableEnumConverter<ShopifyAuthorizationScope>))]
public enum ShopifyAuthorizationScope
{
[EnumMember(Value = "read_content")]
ReadContent,
... | using Newtonsoft.Json;
using ShopifySharp.Converters;
using System.Runtime.Serialization;
namespace ShopifySharp.Enums
{
[JsonConverter(typeof(NullableEnumConverter<ShopifyAuthorizationScope>))]
public enum ShopifyAuthorizationScope
{
[EnumMember(Value = "read_content")]
ReadContent,
... | Add missing authorization scopes read_analytics, read_users and write_users | Add missing authorization scopes read_analytics, read_users and write_users
| C# | mit | addsb/ShopifySharp,clement911/ShopifySharp,nozzlegear/ShopifySharp,Yitzchok/ShopifySharp |
e4f772a514b1066ca12a2f3e814922476ad0d2bc | src/Slugity.Tests/CustomSlugityConfig.cs | src/Slugity.Tests/CustomSlugityConfig.cs | using SlugityLib.Configuration;
namespace SlugityLib.Tests
{
public class CustomSlugityConfig : ISlugityConfig
{
public CustomSlugityConfig()
{
TextCase = TextCase.LowerCase;
StripStopWords = false;
MaxLength = 30;
StringSeparator = ' ';
... | namespace SlugityLib.Tests
{
public class CustomSlugityConfig : ISlugityConfig
{
public CustomSlugityConfig()
{
TextCase = TextCase.LowerCase;
StripStopWords = false;
MaxLength = 30;
StringSeparator = ' ';
ReplacementCharacters = new C... | Add vscode to git ignore | Add vscode to git ignore
| C# | mit | JosephWoodward/SlugityDotNet,JosephWoodward/StringToUrlSanitizer,JosephWoodward/SlugityDotNet |
b06ba330638245b15beac973847a05cfe1068d67 | src/Yio/Views/Shared/_ErrorPanelPartial.cshtml | src/Yio/Views/Shared/_ErrorPanelPartial.cshtml | <div class="panel" id="error-panel">
<div class="panel-inner">
<div class="panel-close">
<a href="#" id="about-panel-close"><i class="fa fa-fw fa-times"></i></a>
</div>
<h1 id="error-title">Error!</h1>
<p id="error-message">
Oh no!
</p>
</div>
</di... | <div class="panel" id="error-panel">
<div class="panel-inner">
<div class="panel-close">
<a href="#" id="error-panel-close"><i class="fa fa-fw fa-times"></i></a>
</div>
<h1 id="error-title">Error!</h1>
<p id="error-message">
<img src="http://i.imgur.com/ne6uoF... | Fix error dialog close button not working | Fix error dialog close button not working
| C# | mit | Zyrio/ictus,Zyrio/ictus |
1042205b3291889b6974b66ab9770b9973548483 | src/Firehose.Web/Authors/ChristianHoejsager.cs | src/Firehose.Web/Authors/ChristianHoejsager.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 ChristianHoejsager : IFilterMyBlogPosts, IAmACommunityMember
{
public string FirstName => "Christi... | 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 ChristianHoejsager : IAmACommunityMember
{
public string FirstName => "Christian";
public ... | Remove filter (default will work) | Remove filter (default will work) | C# | mit | planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell |
be8dbcbfbd73d09d207ad8a1d4673a815e0e7570 | src/app/SharpRaven/Utilities/CircularBuffer.cs | src/app/SharpRaven/Utilities/CircularBuffer.cs | using System.Collections.Generic;
using System.Linq;
namespace SharpRaven.Utilities {
public class CircularBuffer<T>
{
private readonly int size;
private readonly Queue<T> queue;
public CircularBuffer(int size = 100)
{
this.size = size;
queue = new Queu... | using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
namespace SharpRaven.Utilities {
public class CircularBuffer<T>
{
private readonly int size;
private ConcurrentQueue<T> queue;
public CircularBuffer(int size = 100)
{
... | Refactor to a thread-safe queue. | Refactor to a thread-safe queue.
| C# | bsd-3-clause | getsentry/raven-csharp,xpicio/raven-csharp,xpicio/raven-csharp,getsentry/raven-csharp,getsentry/raven-csharp |
58ae086a7385c46cd5d99b290a81f679ada16869 | src/Nancy.ViewEngines.Razor/EncodedHtmlString.cs | src/Nancy.ViewEngines.Razor/EncodedHtmlString.cs | using System;
using Nancy.Helpers;
namespace Nancy.ViewEngines.Razor
{
/// <summary>
/// An html string that is encoded.
/// </summary>
public class EncodedHtmlString : IHtmlString
{
/// <summary>
/// Represents the empty <see cref="EncodedHtmlString"/>. This field is readonly.
... | namespace Nancy.ViewEngines.Razor
{
using System;
using Nancy.Helpers;
/// <summary>
/// An html string that is encoded.
/// </summary>
public class EncodedHtmlString : IHtmlString
{
/// <summary>
/// Represents the empty <see cref="EncodedHtmlString"/>. This field is readon... | Move using-statements within namespace declaration. | Move using-statements within namespace declaration.
Also update stored encoded-value type from Lazy<T> to string.
Previous pattern is an outlier (generating the encoded value multiple times from a view-helper) and not really worth the extra baggage. | C# | mit | AcklenAvenue/Nancy,asbjornu/Nancy,khellang/Nancy,ayoung/Nancy,hitesh97/Nancy,asbjornu/Nancy,charleypeng/Nancy,sadiqhirani/Nancy,AlexPuiu/Nancy,thecodejunkie/Nancy,guodf/Nancy,albertjan/Nancy,EliotJones/NancyTest,sloncho/Nancy,ayoung/Nancy,jchannon/Nancy,tparnell8/Nancy,anton-gogolev/Nancy,JoeStead/Nancy,danbarua/Nancy,... |
b32d6017ab2168cad0654518c1ff9eb32b7b7ae8 | src/Core/Vipr/FileWriter.cs | src/Core/Vipr/FileWriter.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Threading.Tasks;
using Vipr.Core;
namespace Vipr
{
internal static class FileWriter
{
public static async void WriteAsync(IEnumerable<TextFile> textFilesToWrite, string outputDirectoryPath = null)
... | using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Vipr.Core;
namespace Vipr
{
internal static class FileWriter
{
public static async void WriteAsync(IEnumerable<TextFile> textFilesToWrite, string outpu... | Add case for locked files | Add case for locked files
| C# | mit | Microsoft/Vipr |
6b8ef40129c1c258e67ad0d767c1e113b52b98b2 | Gu.Analyzers.Benchmarks/Benchmarks/Analyzer.cs | Gu.Analyzers.Benchmarks/Benchmarks/Analyzer.cs | namespace Gu.Analyzers.Benchmarks.Benchmarks
{
using System.Collections.Immutable;
using System.Threading;
using System.Threading.Tasks;
using BenchmarkDotNet.Attributes;
using Microsoft.CodeAnalysis.Diagnostics;
public abstract class Analyzer
{
private readonly CompilationWithAnal... | namespace Gu.Analyzers.Benchmarks.Benchmarks
{
using System.Collections.Immutable;
using System.Threading;
using BenchmarkDotNet.Attributes;
using Microsoft.CodeAnalysis.Diagnostics;
public abstract class Analyzer
{
private readonly CompilationWithAnalyzers compilation;
protec... | Tweak benchmarks, still don't trust the results. | Tweak benchmarks, still don't trust the results.
| C# | mit | JohanLarsson/Gu.Analyzers |
9727b64d6568dfda6000444c55e8a304b7ee789c | InfinniPlatform.Sdk/Hosting/IHostAddressParser.cs | InfinniPlatform.Sdk/Hosting/IHostAddressParser.cs | namespace InfinniPlatform.Sdk.Hosting
{
/// <summary>
/// .
/// </summary>
public interface IHostAddressParser
{
/// <summary>
/// , .
/// </summary>
/// <param name="hostNameOrAddress"> .</param>
/// <returns> <c>true</c>, ; <c>false</c>.</retu... | namespace InfinniPlatform.Sdk.Hosting
{
/// <summary>
/// Интерфейс для разбора адресов узлов.
/// </summary>
public interface IHostAddressParser
{
/// <summary>
/// Определяет, является ли адрес локальным.
/// </summary>
/// <param name="hostNameOrAddress">Имя узла ... | Fix files encoding to UTF-8 | MC-4363: Fix files encoding to UTF-8
| C# | agpl-3.0 | InfinniPlatform/InfinniPlatform,InfinniPlatform/InfinniPlatform,InfinniPlatform/InfinniPlatform |
10ce7595bdd95121d114c74110c63cf82064f876 | Mindscape.Raygun4Net.Core/RaygunBreadcrumb.cs | Mindscape.Raygun4Net.Core/RaygunBreadcrumb.cs | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Mindscape.Raygun4Net
{
public class RaygunBreadcrumb
{
public string Message { get; set; }
public string Category { get; set; }
public RaygunBreadcrumbs.Level Level { get; set; } =... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Mindscape.Raygun4Net
{
public class RaygunBreadcrumb
{
public string Message { get; set; }
public string Category { get; set; }
public RaygunBreadcrumbs.Level Level { get; set; } =... | Change LineNumber to nullable so it does not get serialized unless set | Change LineNumber to nullable so it does not get serialized unless set
| C# | mit | MindscapeHQ/raygun4net,MindscapeHQ/raygun4net,MindscapeHQ/raygun4net |
b5562eae2b40ee16cff5b915e81d0e40835c4e99 | TwitchPlaysAssembly/Src/Holdables/Vanilla/AlarmClockHoldableHandler.cs | TwitchPlaysAssembly/Src/Holdables/Vanilla/AlarmClockHoldableHandler.cs | using System.Collections;
using System.Reflection;
using Assets.Scripts.Props;
using UnityEngine;
public class AlarmClockHoldableHandler : HoldableHandler
{
public AlarmClockHoldableHandler(KMHoldableCommander commander, FloatingHoldable holdable, IRCConnection connection, CoroutineCanceller canceller) : base(comman... | using System.Collections;
using System.Reflection;
using Assets.Scripts.Props;
using UnityEngine;
public class AlarmClockHoldableHandler : HoldableHandler
{
public AlarmClockHoldableHandler(KMHoldableCommander commander, FloatingHoldable holdable, IRCConnection connection, CoroutineCanceller canceller) : base(comman... | Add help message to !alarmclock | Add help message to !alarmclock
| C# | mit | CaitSith2/KtaneTwitchPlays,samfun123/KtaneTwitchPlays |
af2316e48c3b0f066374886a301ee0026c22f5f2 | EvilDICOM.Core/EvilDICOM.Core/Helpers/EnumHelper.cs | EvilDICOM.Core/EvilDICOM.Core/Helpers/EnumHelper.cs | using System;
namespace EvilDICOM.Core.Helpers
{
public class EnumHelper
{
public static T StringToEnum<T>(string name)
{
return (T) Enum.Parse(typeof (T), name);
}
}
} | using System;
namespace EvilDICOM.Core.Helpers
{
public class EnumHelper
{
public static T StringToEnum<T>(string name)
{
return (T) Enum.Parse(typeof (T), name, false);
}
}
} | Use Enum.Parse overload available in PCL | Use Enum.Parse overload available in PCL
| C# | mit | cureos/Evil-DICOM |
8f57fd4495433a4b3d7a608fac00f4dfed1bbc05 | MonoGameUtils/UI/GameComponents/Button.cs | MonoGameUtils/UI/GameComponents/Button.cs | using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace MonoGameUtils.UI.GameComponents
{
/// <summary>
/// Represents a rectangular button that can be clicked in a game.
/// </summary>
public class Button : DrawableGameComponent
{
public SpriteFont Font { get; set... | using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace MonoGameUtils.UI.GameComponents
{
/// <summary>
/// Represents a rectangular button that can be clicked in a game.
/// </summary>
public class Button : DrawableGameComponent
{
public SpriteFont Font { get; set... | Tag release with updated version number. | Tag release with updated version number.
| C# | mit | dneelyep/MonoGameUtils |
94e75e84f91a39c696e39c8eb6a6d03978768c8b | NutzCode.CloudFileSystem/AuthorizationFactory.cs | NutzCode.CloudFileSystem/AuthorizationFactory.cs | using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.ComponentModel.Composition.Hosting;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using NutzCode.Libraries.Web.StreamProvider;
namespace NutzCode.CloudFileSystem
{
p... | using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.ComponentModel.Composition.Hosting;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using NutzCode.Libraries.Web.StreamProvider;
namespace NutzCode.CloudFileSystem
{
p... | Handle dir separator better for Mono | Handle dir separator better for Mono
| C# | apache-2.0 | maxpiva/CloudFileSystem |
78324bb08e378c25fde367ed0349f64b713fab5b | EFRepository/IRepository.cs | EFRepository/IRepository.cs | namespace EFRepository
{
/// <summary>
/// IRepository
/// </summary>
/// <typeparam name="TEntity">The type of the entity.</typeparam>
public interface IRepository<TEntity> where TEntity : class
{
/// <summary>
/// Adds the specified data.
/// </summary>
/// <pa... | using System.Collections.Generic;
namespace EFRepository
{
/// <summary>
/// IRepository
/// </summary>
/// <typeparam name="TEntity">The type of the entity.</typeparam>
public interface IRepository<TEntity> where TEntity : class
{
/// <summary>
/// Adds the specified data.
... | Add add range funciton to interface | feat(repository): Add add range funciton to interface
Add add range function to IRepository interface
| C# | mit | kirkchen/EFRepository |
6f864db660c061dd666b20dc5ea59518485782ca | Assets/MixedRealityToolkit.Examples/Experimental/Demos/UX/ObjectManipulator/Scripts/ReturnToBounds.cs | Assets/MixedRealityToolkit.Examples/Experimental/Demos/UX/ObjectManipulator/Scripts/ReturnToBounds.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ReturnToBounds : MonoBehaviour
{
[SerializeField]
Transform frontBounds = null;
[SerializeField]
Transform backBounds = null;
[SerializeField]
Transform leftBounds = null;
[SerializeField]
Tr... | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Microsoft.MixedReality.Toolkit.Examples.Experimental.Demos
{
public cla... | Make demo script comply with guidelines | Make demo script comply with guidelines
| C# | mit | DDReaper/MixedRealityToolkit-Unity,killerantz/HoloToolkit-Unity,killerantz/HoloToolkit-Unity,killerantz/HoloToolkit-Unity,killerantz/HoloToolkit-Unity |
365502a6878cd270efd1236240a4f8dcc5504efc | BmpListener/Bgp/IPAddrPrefix.cs | BmpListener/Bgp/IPAddrPrefix.cs | using System;
using System.Linq;
using System.Net;
namespace BmpListener.Bgp
{
public class IPAddrPrefix
{
public IPAddrPrefix(ArraySegment<byte> data, AddressFamily afi = AddressFamily.IP)
{
DecodeFromBytes(data, afi);
}
public byte Length { get; private set; }
... | using System;
using System.Net;
namespace BmpListener.Bgp
{
public class IPAddrPrefix
{
public IPAddrPrefix(byte[] data, AddressFamily afi = AddressFamily.IP)
{
DecodeFromBytes(data, afi);
}
public byte Length { get; private set; }
public IPAddress Prefix {... | Change ctor parameter to byte array | Change ctor parameter to byte array
| C# | mit | mstrother/BmpListener |
ec71d448297599e79eff87a428a65b2680e9da91 | Core/Link.cs | Core/Link.cs | using System;
using System.Net.Http;
using System.Threading.Tasks;
namespace Archon.WebApi
{
public abstract class Link
{
public Authorization Authorization { get; set; }
public HttpRequestMessage CreateRequest()
{
var req = CreateRequestInternal();
if (Authorization != null)
req.Headers.Authoriza... | using System;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
namespace Archon.WebApi
{
public abstract class Link
{
public Authorization Authorization { get; set; }
public HttpRequestMessage CreateRequest()
{
var req = CreateRequestInternal();
var authToken = GetAuthToken... | Use current principal if provided for auth | Use current principal if provided for auth
| C# | mit | civicsource/http,civicsource/webapi-utils |
800c18bcc20d2281314e54c876fb0d663e7bb4e2 | test/Atata.Bootstrap.TestApp/Pages/v5/_Layout.cshtml | test/Atata.Bootstrap.TestApp/Pages/v5/_Layout.cshtml | <!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>@ViewBag.Title - Atata.Bootstrap.TestApp v5</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-giJF6kkoqNQ00vy+HM... | <!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>@ViewBag.Title - Atata.Bootstrap.TestApp v5</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/css/bootstrap.min.css" rel="stylesheet">
@RenderSection("styles", false)
</hea... | Update Bootstrap package in v5 test pages to v5.2.2 | Update Bootstrap package in v5 test pages to v5.2.2
| C# | apache-2.0 | atata-framework/atata-bootstrap,atata-framework/atata-bootstrap |
6e49d6464c000d81fb31730209246b36f4bc17a2 | AdmoTests/CustomActionTests/CustomActionTests.cs | AdmoTests/CustomActionTests/CustomActionTests.cs | using System;
using System.Threading;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using AdmoInstallerCustomAction;
using System.Windows;
namespace AdmoTests.CustomActionTests
{
[TestClass]
public class CustomActionTests
{
[TestMethod]
public void TestMethod1()
{
... | using System;
using System.Threading;
using Admo;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using AdmoInstallerCustomAction;
using System.Windows;
namespace AdmoTests.CustomActionTests
{
[TestClass]
public class CustomActionTests
{
[TestMethod]
public void TestRunWPFOnSTAThread... | Test to run gui on STA thread | Test to run gui on STA thread
| C# | mit | admoexperience/admo-kinect,admoexperience/admo-kinect |
5db49cb2a557354883cf4d00a5b599cc26266e60 | Specification/AutomationLayer/StepDefinitions.cs | Specification/AutomationLayer/StepDefinitions.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TechTalk.SpecFlow;
namespace FizzBuzz.Specification.AutomationLayer
{
[Binding]
public class StepDefinitions
{
[Given(@"the current number is '(.*)'")]
public void GivenTheCurrentNumberIs(int p0)
{
Scen... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TechTalk.SpecFlow;
namespace FizzBuzz.Specification.AutomationLayer
{
[Binding]
public class StepDefinitions
{
private int currentNumber;
[Given(@"the current number is '(.*)'")]
public void GivenTheCurrentN... | Implement first step of automation layer | Implement first step of automation layer
| C# | mit | dirkrombauts/fizz-buzz |
d41ab6a42965397218c9c91cc808201d24c382dd | src/Umbraco.Infrastructure/DependencyInjection/UmbracoBuilder.Installer.cs | src/Umbraco.Infrastructure/DependencyInjection/UmbracoBuilder.Installer.cs | using Microsoft.Extensions.DependencyInjection;
using Umbraco.Cms.Core.DependencyInjection;
using Umbraco.Cms.Core.Install.InstallSteps;
using Umbraco.Cms.Core.Install.Models;
using Umbraco.Cms.Infrastructure.Install;
using Umbraco.Cms.Infrastructure.Install.InstallSteps;
using Umbraco.Extensions;
namespace Umbraco.Cm... | using Microsoft.Extensions.DependencyInjection;
using Umbraco.Cms.Core.DependencyInjection;
using Umbraco.Cms.Core.Install.InstallSteps;
using Umbraco.Cms.Core.Install.Models;
using Umbraco.Cms.Infrastructure.Install;
using Umbraco.Cms.Infrastructure.Install.InstallSteps;
using Umbraco.Extensions;
namespace Umbraco.Cm... | Fix integration tests - register PackageMigrationRunner | Fix integration tests - register PackageMigrationRunner
| C# | mit | dawoe/Umbraco-CMS,arknu/Umbraco-CMS,abjerner/Umbraco-CMS,umbraco/Umbraco-CMS,abjerner/Umbraco-CMS,dawoe/Umbraco-CMS,dawoe/Umbraco-CMS,marcemarc/Umbraco-CMS,marcemarc/Umbraco-CMS,umbraco/Umbraco-CMS,robertjf/Umbraco-CMS,arknu/Umbraco-CMS,abjerner/Umbraco-CMS,robertjf/Umbraco-CMS,KevinJump/Umbraco-CMS,robertjf/Umbraco-CM... |
978fdd31093e139323bf500b90aafe3aed6638e0 | Foundation/Server/Foundation.Api/Middlewares/OwinCacheResponseMiddleware.cs | Foundation/Server/Foundation.Api/Middlewares/OwinCacheResponseMiddleware.cs | using System.Threading.Tasks;
using Microsoft.Owin;
using System.Linq;
using System;
using Foundation.Api.Implementations;
using System.Threading;
namespace Foundation.Api.Middlewares
{
public class OwinCacheResponseMiddleware : DefaultOwinActionFilterMiddleware
{
public OwinCacheResponseMiddleware()
... | using System.Threading.Tasks;
using Microsoft.Owin;
using System.Linq;
using System;
using Foundation.Api.Implementations;
namespace Foundation.Api.Middlewares
{
public class OwinCacheResponseMiddleware : DefaultOwinActionFilterMiddleware
{
public OwinCacheResponseMiddleware()
{
}
... | Set expires header to max when response is intented to be cached, so browsers will not use try-get pattern for those resources next time. | Set expires header to max when response is intented to be cached, so browsers will not use try-get pattern for those resources next time.
| C# | mit | bit-foundation/bit-framework,bit-foundation/bit-framework,bit-foundation/bit-framework,bit-foundation/bit-framework |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.